hexsha stringlengths 40 40 | size int64 2 991k | ext stringclasses 2
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 4 208 | max_stars_repo_name stringlengths 6 106 | max_stars_repo_head_hexsha stringlengths 40 40 | max_stars_repo_licenses list | max_stars_count int64 1 33.5k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 4 208 | max_issues_repo_name stringlengths 6 106 | max_issues_repo_head_hexsha stringlengths 40 40 | max_issues_repo_licenses list | max_issues_count int64 1 16.3k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 4 208 | max_forks_repo_name stringlengths 6 106 | max_forks_repo_head_hexsha stringlengths 40 40 | max_forks_repo_licenses list | max_forks_count int64 1 6.91k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 2 991k | avg_line_length float64 1 36k | max_line_length int64 1 977k | alphanum_fraction float64 0 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5a0e373ecb6cbaa3f8e54b5fd8372a1e8f5fbd46 | 2,058 | ex | Elixir | clients/ad_sense/lib/google_api/ad_sense/v14/model/accounts.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/ad_sense/lib/google_api/ad_sense/v14/model/accounts.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/ad_sense/lib/google_api/ad_sense/v14/model/accounts.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 36.75 | 200 | 0.701166 |
5a0e9a685e2e83766d16716aa3df20c28a6b666b | 7,973 | ex | Elixir | lib/tesla_api/auth/login.ex | Ed-M72/teslamate | 2c3e8e0560da352ff3124ba0ae089a25bc119e1f | [
"MIT"
] | null | null | null | lib/tesla_api/auth/login.ex | Ed-M72/teslamate | 2c3e8e0560da352ff3124ba0ae089a25bc119e1f | [
"MIT"
] | 20 | 2021-12-01T11:05:21.000Z | 2022-03-01T11:08:34.000Z | lib/tesla_api/auth/login.ex | Ed-M72/teslamate | 2c3e8e0560da352ff3124ba0ae089a25bc119e1f | [
"MIT"
] | null | null | null | defmodule TeslaApi.Auth.Login do
import TeslaApi.Auth, only: [get: 2, post: 2, post: 3]
alias TeslaApi.Error
alias TeslaApi.Auth.{MFA, OwnerApi, Util}
require Logger
@web_client_id TeslaApi.Auth.web_client_id()
@redirect_uri TeslaApi.Auth.redirect_uri()
defmodule Ctx do
@derive {Inspect, except: [... | 29.973684 | 97 | 0.565408 |
5a0e9fe95bc55c1141fc5cdb6cbf0b9455dc3c91 | 31,610 | ex | Elixir | lib/ecto/migration.ex | chulkilee/ecto_sql | ba4627f1d1ad7af849eaf53041b27d7c45a8ccd2 | [
"Apache-2.0"
] | null | null | null | lib/ecto/migration.ex | chulkilee/ecto_sql | ba4627f1d1ad7af849eaf53041b27d7c45a8ccd2 | [
"Apache-2.0"
] | null | null | null | lib/ecto/migration.ex | chulkilee/ecto_sql | ba4627f1d1ad7af849eaf53041b27d7c45a8ccd2 | [
"Apache-2.0"
] | null | null | null | defmodule Ecto.Migration do
@moduledoc """
Migrations are used to modify your database schema over time.
This module provides many helpers for migrating the database,
allowing developers to use Elixir to alter their storage in
a way that is database independent.
Here is an example:
defmodule MyRepo... | 31.484064 | 137 | 0.668333 |
5a0ea10b374dac54bcff1c5aa25adda638d62821 | 8,942 | ex | Elixir | lib/quantum/execution_broadcaster.ex | ericdude4/quantum-core | faf6522e08a590472301864f2c8be492c60db332 | [
"Apache-2.0"
] | null | null | null | lib/quantum/execution_broadcaster.ex | ericdude4/quantum-core | faf6522e08a590472301864f2c8be492c60db332 | [
"Apache-2.0"
] | null | null | null | lib/quantum/execution_broadcaster.ex | ericdude4/quantum-core | faf6522e08a590472301864f2c8be492c60db332 | [
"Apache-2.0"
] | null | null | null | defmodule Quantum.ExecutionBroadcaster do
@moduledoc false
# Receives Added / Removed Jobs, Broadcasts Executions of Jobs
use GenStage
require Logger
alias Crontab.CronExpression
alias Crontab.Scheduler, as: CrontabScheduler
alias Quantum.ClockBroadcaster.Event, as: ClockEvent
alias Quantum.{
... | 26.692537 | 103 | 0.60132 |
5a0f020028952a508f6484427cf47f3f4b61d3bc | 4,706 | ex | Elixir | apps/astarte_appengine_api/lib/astarte_appengine_api_web/telemetry.ex | Annopaolo/astarte | f8190e8bf044759a9b84bdeb5786a55b6f793a4f | [
"Apache-2.0"
] | 191 | 2018-03-30T13:23:08.000Z | 2022-03-02T12:05:32.000Z | apps/astarte_appengine_api/lib/astarte_appengine_api_web/telemetry.ex | Annopaolo/astarte | f8190e8bf044759a9b84bdeb5786a55b6f793a4f | [
"Apache-2.0"
] | 402 | 2018-03-30T13:37:00.000Z | 2022-03-31T16:47:10.000Z | apps/astarte_appengine_api/lib/astarte_appengine_api_web/telemetry.ex | Annopaolo/astarte | f8190e8bf044759a9b84bdeb5786a55b6f793a4f | [
"Apache-2.0"
] | 24 | 2018-03-30T13:29:48.000Z | 2022-02-28T11:10:26.000Z | #
# This file is part of Astarte.
#
# Copyright 2020 Ispirata Srl
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appl... | 30.166667 | 88 | 0.624309 |
5a0f1ab60878ace083bde2a2e10548c69ee692a0 | 146 | exs | Elixir | priv/repo/migrations/20210117174213_creator_uniqness.exs | zephraph/readtome | 64a5f773bdc3c19d9c5ac50a04aa14e446e36c55 | [
"MIT"
] | 1 | 2021-09-05T20:54:57.000Z | 2021-09-05T20:54:57.000Z | priv/repo/migrations/20210117174213_creator_uniqness.exs | zephraph/readtome | 64a5f773bdc3c19d9c5ac50a04aa14e446e36c55 | [
"MIT"
] | 17 | 2019-07-06T17:31:56.000Z | 2021-06-22T15:31:06.000Z | priv/repo/migrations/20210117174213_creator_uniqness.exs | zephraph/readtome | 64a5f773bdc3c19d9c5ac50a04aa14e446e36c55 | [
"MIT"
] | 1 | 2021-03-15T20:50:27.000Z | 2021-03-15T20:50:27.000Z | defmodule Readtome.Repo.Migrations.CreatorUniqness do
use Ecto.Migration
def change do
create unique_index(:creators, [:name])
end
end
| 18.25 | 53 | 0.760274 |
5a0f2633f82e772e8efcdd8ed0fc3def42615edf | 288 | exs | Elixir | package.exs | glejeune/elixir-tar | 7c93cc790a71d4c275987c765d6e92b9890a2072 | [
"FSFAP"
] | 4 | 2016-10-04T05:49:38.000Z | 2020-01-13T22:15:20.000Z | package.exs | glejeune/elixir-tar | 7c93cc790a71d4c275987c765d6e92b9890a2072 | [
"FSFAP"
] | null | null | null | package.exs | glejeune/elixir-tar | 7c93cc790a71d4c275987c765d6e92b9890a2072 | [
"FSFAP"
] | 3 | 2017-05-19T08:14:26.000Z | 2018-12-15T21:12:23.000Z | Expm.Package.new(
name: "tar",
description: "Manipulate tar archives",
version: "0.1",
keywords: ["Elixir","Erlang","tar","archive"],
maintainers: [[name: "Gregoire Lejeune", email: "gregoire.lejeune@free.fr"]],
repositories: [[github: "glejeune/elixir-tar", tag: "0.1"]]
)
| 32 | 79 | 0.652778 |
5a0f2bf747c834a46a7bf7c73a833aed84697190 | 1,350 | ex | Elixir | lib/codes/codes_w52.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_w52.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_w52.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | defmodule IcdCode.ICDCode.Codes_W52 do
alias IcdCode.ICDCode
def _W52XXXA do
%ICDCode{full_code: "W52XXXA",
category_code: "W52",
short_code: "XXXA",
full_name: "Crushed, pushed or stepped on by crowd or human stampede, initial encounter",
short_name: "Crushed, pushed or s... | 39.705882 | 105 | 0.665926 |
5a0f46c37e63de4276ab8070a4ec38f1c2d92122 | 2,111 | ex | Elixir | clients/replica_pool/lib/google_api/replica_pool/v1beta2/model/operation_warnings.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/replica_pool/lib/google_api/replica_pool/v1beta2/model/operation_warnings.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/replica_pool/lib/google_api/replica_pool/v1beta2/model/operation_warnings.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 40.596154 | 367 | 0.779252 |
5a0f79dfd4a38f4fe2c95ed1649adc232f41b83e | 535 | exs | Elixir | mix.exs | bunnylushington/geo_distance | 99f90434aa8ebaf6ef56a3e93e763b8faa96d8c9 | [
"MIT"
] | null | null | null | mix.exs | bunnylushington/geo_distance | 99f90434aa8ebaf6ef56a3e93e763b8faa96d8c9 | [
"MIT"
] | null | null | null | mix.exs | bunnylushington/geo_distance | 99f90434aa8ebaf6ef56a3e93e763b8faa96d8c9 | [
"MIT"
] | null | null | null | defmodule GeoDistance.Mixfile do
use Mix.Project
def project do
[app: :geo_distance,
version: "1.0.0",
elixir: "~> 1.0",
package: package,
deps: deps]
end
def application do
[applications: [:logger]]
end
defp package do
[
files: ["lib", "mix.exs", "README*", "LICEN... | 17.833333 | 65 | 0.517757 |
5a0f87ba5df760c58ff57404f070c5af10442aa3 | 146 | ex | Elixir | template/$PROJECT_NAME$/apps/$PROJECT_NAME$_web/lib/$PROJECT_NAME$_web/views/accounts/forgot_password_view.ex | fadeojo/mithril | d84ff2d42f895c27c46c0feb09b70ccbac5827ac | [
"MIT"
] | 54 | 2018-01-24T00:22:57.000Z | 2019-01-15T20:03:52.000Z | template/$PROJECT_NAME$/apps/$PROJECT_NAME$_web/lib/$PROJECT_NAME$_web/views/accounts/forgot_password_view.ex | infinitered/mithril | 0bbad29f86c63d9a827dcaaf6fed78a176ab90d7 | [
"MIT"
] | 3 | 2018-02-05T18:00:39.000Z | 2018-05-04T00:05:20.000Z | template/$PROJECT_NAME$/apps/$PROJECT_NAME$_web/lib/$PROJECT_NAME$_web/views/accounts/forgot_password_view.ex | fadeojo/mithril | d84ff2d42f895c27c46c0feb09b70ccbac5827ac | [
"MIT"
] | 3 | 2018-02-15T19:08:23.000Z | 2018-09-28T13:49:27.000Z | defmodule <%= @project_name_camel_case %>Web.Accounts.ForgotPasswordView do
@moduledoc false
use <%= @project_name_camel_case %>Web, :view
end | 36.5 | 75 | 0.773973 |
5a0faa84bd5cb3526fb19e1cc26b60c78b96dc87 | 1,030 | exs | Elixir | mix.exs | Axelancerr/blog | 0c8b6e0f561f91792e7f377126b6469f22d320aa | [
"MIT"
] | 1 | 2022-03-28T11:28:54.000Z | 2022-03-28T11:28:54.000Z | mix.exs | Axelancerr/blog | 0c8b6e0f561f91792e7f377126b6469f22d320aa | [
"MIT"
] | null | null | null | mix.exs | Axelancerr/blog | 0c8b6e0f561f91792e7f377126b6469f22d320aa | [
"MIT"
] | null | null | null | defmodule Blog.MixProject do
use Mix.Project
def project do
[
app: :blog,
version: "0.1.0",
elixir: "~> 1.12",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix, :gettext] ++ Mix.compilers(),
start_permanent: Mix.env() == :dev,
aliases: aliases(),
dep... | 21.458333 | 60 | 0.529126 |
5a0fb8582bc03e6eee59b68afbfca97026cbb8f7 | 1,556 | exs | Elixir | apps/esperanto/mix.exs | betrybe/esperanto | 65e40c28914397ef77f5d2c4c29001330beba19f | [
"Apache-2.0"
] | 6 | 2021-07-19T20:00:22.000Z | 2021-11-03T03:27:40.000Z | apps/esperanto/mix.exs | betrybe/esperanto | 65e40c28914397ef77f5d2c4c29001330beba19f | [
"Apache-2.0"
] | null | null | null | apps/esperanto/mix.exs | betrybe/esperanto | 65e40c28914397ef77f5d2c4c29001330beba19f | [
"Apache-2.0"
] | null | null | null | defmodule Esperanto.MixProject do
use Mix.Project
def project do
[
app: :esperanto,
version: "0.1.0",
build_path: "../../_build",
config_path: "../../config/config.exs",
deps_path: "../../deps",
lockfile: "../../mix.lock",
elixir: "~> 1.11",
start_permanent: Mix.... | 26.827586 | 88 | 0.548843 |
5a0fba0bc575751dd8319bb5c5ea5bbb1d106d8a | 1,157 | exs | Elixir | test/vim_compiler/helpers/lexer/all_lexer_tokens_test.exs | RobertDober/vim_compiler | 7bb4f4b26a62d12cb0433279275fadee9abda617 | [
"Apache-2.0"
] | null | null | null | test/vim_compiler/helpers/lexer/all_lexer_tokens_test.exs | RobertDober/vim_compiler | 7bb4f4b26a62d12cb0433279275fadee9abda617 | [
"Apache-2.0"
] | null | null | null | test/vim_compiler/helpers/lexer/all_lexer_tokens_test.exs | RobertDober/vim_compiler | 7bb4f4b26a62d12cb0433279275fadee9abda617 | [
"Apache-2.0"
] | null | null | null | defmodule Test.VimCompiler.Helpers.AllLexerTokensTest do
use ExUnit.Case
import VimCompiler.Helpers.LeexHelpers, only: [tokenize: 2]
# from a b to {"a", :b},
# ^i{"ea"ebhhi,lli:A},j
[
{"+", :op6},
{"-", :op6},
{"*", :op9},
{"/", :op9},
{"//", :op9},
{"defp", :kw_def},
{"def... | 22.25 | 72 | 0.457217 |
5a0ffd496df0355e519b6e3309b8736f0b786df5 | 2,036 | ex | Elixir | lib/plugs/plugfilterclaims.ex | Sonato/jwt-google-tokens | 8c9ebea70b758d6e49e11597fb7e1147867f11bd | [
"Apache-2.0"
] | 25 | 2017-03-15T15:54:39.000Z | 2021-04-26T08:23:01.000Z | lib/plugs/plugfilterclaims.ex | Sonato/jwt-google-tokens | 8c9ebea70b758d6e49e11597fb7e1147867f11bd | [
"Apache-2.0"
] | 12 | 2016-09-10T04:08:46.000Z | 2020-06-15T08:15:03.000Z | lib/plugs/plugfilterclaims.ex | Sonato/jwt-google-tokens | 8c9ebea70b758d6e49e11597fb7e1147867f11bd | [
"Apache-2.0"
] | 26 | 2017-06-02T00:14:32.000Z | 2022-03-17T14:48:14.000Z | defmodule Jwt.Plugs.FilterClaims do
import Plug.Conn
require Logger
def init(opts), do: opts
def call(conn, []), do: send_401(conn)
def call(conn, opts) do
filter_claims(conn.assigns[:jwtclaims], conn, opts)
end
defp filter_claims([], conn, _), do: send_401(conn)
defp filter_claims(nil, conn, _... | 25.135802 | 94 | 0.6778 |
5a100edffcae1a21234f86196fad216a2c086bb4 | 1,691 | ex | Elixir | clients/machine_learning/lib/google_api/machine_learning/v1/model/google_cloud_ml_v1__predict_request.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/machine_learning/lib/google_api/machine_learning/v1/model/google_cloud_ml_v1__predict_request.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/machine_learning/lib/google_api/machine_learning/v1/model/google_cloud_ml_v1__predict_request.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 35.229167 | 96 | 0.768185 |
5a100fdb108add28dd7661260a750c5fe17acea3 | 144 | exs | Elixir | apps/dead_letter/.formatter.exs | calebcarroll1/smartcitiesdata | b0f03496f6c592c82ba14aebf6c5996311cf3cd0 | [
"Apache-2.0"
] | 26 | 2019-09-20T23:54:45.000Z | 2020-08-20T14:23:32.000Z | apps/dead_letter/.formatter.exs | calebcarroll1/smartcitiesdata | b0f03496f6c592c82ba14aebf6c5996311cf3cd0 | [
"Apache-2.0"
] | 757 | 2019-08-15T18:15:07.000Z | 2020-09-18T20:55:31.000Z | apps/dead_letter/.formatter.exs | jakeprem/smartcitiesdata | da309ac0d2261527278951cbae88604455207589 | [
"Apache-2.0"
] | 9 | 2019-11-12T16:43:46.000Z | 2020-03-25T16:23:16.000Z | # Used by "mix format"
[
inputs: ["{mix,.formatter}.exs", "{config,lib,test}/**/*.{ex,exs}"],
line_length: 120,
import_deps: [:placebo]
]
| 20.571429 | 70 | 0.597222 |
5a101021b7cc635b9dc728166e3fe4548bc2301e | 12,374 | ex | Elixir | clients/logging/lib/google_api/logging/v2/api/entries.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/logging/lib/google_api/logging/v2/api/entries.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/logging/lib/google_api/logging/v2/api/entries.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 46.871212 | 363 | 0.628657 |
5a10218511977f79d1a1bd6e85d8a8de20bd9707 | 949 | exs | Elixir | test/resources/submittal_packages_test.exs | procore/elixir-sdk | abff2935702a5e9f0290a072e90c2f219bca3cb8 | [
"MIT"
] | 6 | 2018-02-01T01:34:16.000Z | 2020-08-31T15:15:08.000Z | test/resources/submittal_packages_test.exs | procore/elixir-sdk | abff2935702a5e9f0290a072e90c2f219bca3cb8 | [
"MIT"
] | 6 | 2018-02-03T03:01:48.000Z | 2021-06-08T18:39:40.000Z | test/resources/submittal_packages_test.exs | procore/elixir-sdk | abff2935702a5e9f0290a072e90c2f219bca3cb8 | [
"MIT"
] | 3 | 2018-08-12T03:51:52.000Z | 2020-02-27T14:29:14.000Z | defmodule Procore.Resources.SubmittalPackagessTest do
use ExUnit.Case
alias Procore.ResponseResult
alias Procore.Resources.SubmittalPackages
test "list/1 with default API version" do
client = Procore.client()
params = %{"project_id" => 1}
assert %ResponseResult{reply: :ok, status_code: 200, parsed... | 31.633333 | 75 | 0.674394 |
5a1094491cbb8fc78c3eada4eee971f4b38b5062 | 1,119 | exs | Elixir | learn/config/config.exs | Electrux/Elixir-Code | d0e2cf0c3caa7269f6438a378b750ced7531e0f4 | [
"BSD-3-Clause"
] | null | null | null | learn/config/config.exs | Electrux/Elixir-Code | d0e2cf0c3caa7269f6438a378b750ced7531e0f4 | [
"BSD-3-Clause"
] | null | null | null | learn/config/config.exs | Electrux/Elixir-Code | d0e2cf0c3caa7269f6438a378b750ced7531e0f4 | [
"BSD-3-Clause"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on this project, this
# file won't be loaded nor affect the paren... | 36.096774 | 73 | 0.75067 |
5a109cec05ce5bf80c5d64c627c1f278203d039c | 10,802 | exs | Elixir | test/teslamate/locations/geofences_test.exs | DP19/teslamate | 7218286f39d2689566dd7188264ebdb7aea62663 | [
"MIT"
] | null | null | null | test/teslamate/locations/geofences_test.exs | DP19/teslamate | 7218286f39d2689566dd7188264ebdb7aea62663 | [
"MIT"
] | null | null | null | test/teslamate/locations/geofences_test.exs | DP19/teslamate | 7218286f39d2689566dd7188264ebdb7aea62663 | [
"MIT"
] | null | null | null | defmodule TeslaMate.LocationsGeofencesTest do
use TeslaMate.DataCase
alias TeslaMate.{Locations, Log, Repo}
alias TeslaMate.Locations.GeoFence
describe "geofences" do
@valid_attrs %{name: "foo", latitude: 52.514521, longitude: 13.350144, radius: 42}
@update_attrs %{
name: "bar",
latitude: ... | 32.341317 | 99 | 0.595445 |
5a10a386833319c5fed3dd60c0124c5c133d00c6 | 5,254 | ex | Elixir | lib/cardigan_web/live/table_live.ex | Nagasaki45/gigalixir | 8d0d96ddc2eb0d44a25651cfd28c07cc401139c8 | [
"MIT"
] | 2 | 2020-05-05T06:07:16.000Z | 2020-05-09T02:12:32.000Z | lib/cardigan_web/live/table_live.ex | Nagasaki45/gigalixir | 8d0d96ddc2eb0d44a25651cfd28c07cc401139c8 | [
"MIT"
] | 21 | 2020-05-05T16:06:57.000Z | 2020-07-07T17:25:46.000Z | lib/cardigan_web/live/table_live.ex | Nagasaki45/gigalixir | 8d0d96ddc2eb0d44a25651cfd28c07cc401139c8 | [
"MIT"
] | null | null | null | defmodule CardiganWeb.TableLive do
use CardiganWeb, :live_view
@impl true
def mount(%{"table_id" => table_id} = params, _session, socket) do
{:ok, table} = Cardigan.TableManager.lookup(table_id)
game = Cardigan.Table.get_game(table)
if connected?(socket), do: Cardigan.Table.subscribe(table_id)
... | 24.100917 | 95 | 0.544728 |
5a10b31322668e13684b7b7a39cdb64d0a16f486 | 1,262 | ex | Elixir | lib/expected/login.ex | ejpcmac/expected | c2b03bfa9bcb7efd52cf4003fb46f1309e8aa3c4 | [
"MIT"
] | 33 | 2018-01-18T12:16:19.000Z | 2021-07-30T00:33:26.000Z | lib/expected/login.ex | ejpcmac/expected | c2b03bfa9bcb7efd52cf4003fb46f1309e8aa3c4 | [
"MIT"
] | 5 | 2018-01-18T12:56:28.000Z | 2019-09-30T07:16:00.000Z | lib/expected/login.ex | ejpcmac/expected | c2b03bfa9bcb7efd52cf4003fb46f1309e8aa3c4 | [
"MIT"
] | 1 | 2018-08-08T12:02:44.000Z | 2018-08-08T12:02:44.000Z | defmodule Expected.Login do
@moduledoc """
A struct defining login information.
## Fields
* `username` - the login username
* `serial` - the login serial (*i.e.* a kind of persistent session ID for a
given machine)
* `token` - the token for next authentication
* `sid` - the curr... | 25.24 | 79 | 0.568146 |
5a10bb694d59652fae781c6b13dc6dc27caa6f8b | 35,744 | ex | Elixir | clients/deployment_manager/lib/google_api/deployment_manager/v2/api/deployments.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/deployment_manager/lib/google_api/deployment_manager/v2/api/deployments.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/deployment_manager/lib/google_api/deployment_manager/v2/api/deployments.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 46.481144 | 720 | 0.635044 |
5a10bdaf27d6fa9f0cbbc2cfbbf4845f0fd5b338 | 1,247 | exs | Elixir | apps/ewallet_db/priv/repo/migrations/20180410032138_rename_consumption_timestamp_columns.exs | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 322 | 2018-02-28T07:38:44.000Z | 2020-05-27T23:09:55.000Z | apps/ewallet_db/priv/repo/migrations/20180410032138_rename_consumption_timestamp_columns.exs | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 643 | 2018-02-28T12:05:20.000Z | 2020-05-22T08:34:38.000Z | apps/ewallet_db/priv/repo/migrations/20180410032138_rename_consumption_timestamp_columns.exs | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 63 | 2018-02-28T10:57:06.000Z | 2020-05-27T23:10:38.000Z | # Copyright 2018-2019 OmiseGO Pte Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 31.175 | 75 | 0.744186 |
5a111955f048d4511340dc26390407f367776991 | 3,655 | exs | Elixir | test/enum_transform_s_to_s_runner1_test.exs | ianrumford/plymio_enum | 019165e369508eadcb723579e02a86670d894bb4 | [
"MIT"
] | null | null | null | test/enum_transform_s_to_s_runner1_test.exs | ianrumford/plymio_enum | 019165e369508eadcb723579e02a86670d894bb4 | [
"MIT"
] | null | null | null | test/enum_transform_s_to_s_runner1_test.exs | ianrumford/plymio_enum | 019165e369508eadcb723579e02a86670d894bb4 | [
"MIT"
] | null | null | null | defmodule PlymioEnumTransformStoSRunner1Test do
use PlymioEnumHelpersTest
test "functions: s to s" do
test_value = [a: 1, b: 2, c: 3]
helper_run_and_realise_tests_default1(
test_value: test_value,
test_specs: [
# SCAN/2
[[1,3,6], [scan: fn v,s -> v + s end], [1,2,3]],
... | 31.239316 | 117 | 0.351026 |
5a1130236976ec0760d2b9b6c1b2a01ce1b17946 | 2,311 | ex | Elixir | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v2beta1/model/list_non_billable_winning_bids_response.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v2beta1/model/list_non_billable_winning_bids_response.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v2beta1/model/list_non_billable_winning_bids_response.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 37.274194 | 272 | 0.765469 |
5a11464c7cbf77e275b7dcb0dc4db7f794b17a2b | 760 | exs | Elixir | nucleotide-count/nucleotide_count.exs | ChrisWilding/exercism-elixir | ee966439b460f82ef9581611f71c2f626402d14a | [
"MIT"
] | null | null | null | nucleotide-count/nucleotide_count.exs | ChrisWilding/exercism-elixir | ee966439b460f82ef9581611f71c2f626402d14a | [
"MIT"
] | null | null | null | nucleotide-count/nucleotide_count.exs | ChrisWilding/exercism-elixir | ee966439b460f82ef9581611f71c2f626402d14a | [
"MIT"
] | null | null | null | defmodule NucleotideCount do
@nucleotides [?A, ?C, ?G, ?T]
@doc """
Counts individual nucleotides in a NucleotideCount strand.
## Examples
iex> NucleotideCount.count('AATAA', ?A)
4
iex> NucleotideCount.count('AATAA', ?T)
1
"""
@spec count([char], char) :: non_neg_integer
def count(strand, nucl... | 21.714286 | 78 | 0.594737 |
5a114c50a79d2d212e274f880b5877ceebc4d66b | 2,211 | ex | Elixir | discuss/web/controllers/topic_controller.ex | brunomenezes/elixir-projects | 1bc365131bf0f4d10fc99d14813a94fc7178b1e5 | [
"Apache-2.0"
] | null | null | null | discuss/web/controllers/topic_controller.ex | brunomenezes/elixir-projects | 1bc365131bf0f4d10fc99d14813a94fc7178b1e5 | [
"Apache-2.0"
] | null | null | null | discuss/web/controllers/topic_controller.ex | brunomenezes/elixir-projects | 1bc365131bf0f4d10fc99d14813a94fc7178b1e5 | [
"Apache-2.0"
] | null | null | null | defmodule Discuss.TopicController do
use Discuss.Web, :controller
alias Discuss.Topic
plug Discuss.Plugs.RequireAuth when action in [:new, :create, :edit, :update, :delete]
plug :check_topic_owner when action in [:update, :edit, :delete]
def index(conn, _params) do
render(conn, "index.html", topics: Re... | 25.709302 | 88 | 0.616915 |
5a117bd551540c593ff36941dcc9937dff669b2f | 1,752 | ex | Elixir | apps/info_sys/lib/info_sys.ex | isavita/diet-umbrella | 0eee4d0dc4d9567888e4b69ccc7993e95d95ed29 | [
"MIT"
] | 1 | 2020-06-01T21:25:54.000Z | 2020-06-01T21:25:54.000Z | apps/info_sys/lib/info_sys.ex | isavita/diet-umbrella | 0eee4d0dc4d9567888e4b69ccc7993e95d95ed29 | [
"MIT"
] | 221 | 2019-07-20T17:20:49.000Z | 2021-08-02T06:21:10.000Z | apps/info_sys/lib/info_sys.ex | isavita/diet-umbrella | 0eee4d0dc4d9567888e4b69ccc7993e95d95ed29 | [
"MIT"
] | null | null | null | defmodule InfoSys do
alias InfoSys.Cache
@backends [InfoSys.Wolfram]
@timeout :timer.seconds(10)
@limit 10
defmodule Result do
defstruct backend: nil, score: 0, text: nil
end
def compute(query, opts \\ []) do
opts = Keyword.put_new(opts, :limit, @limit)
timeout = opts[:timeout] || @timeout
... | 27.809524 | 85 | 0.635274 |
5a11a59e66e08817a3f05beccdf271b080d9753d | 108 | exs | Elixir | apps/moroxite_server/.iex.exs | Hadescho/Moroxite | 66c3c35a6317d82349ec0b5ddebc8106a86444b2 | [
"MIT"
] | null | null | null | apps/moroxite_server/.iex.exs | Hadescho/Moroxite | 66c3c35a6317d82349ec0b5ddebc8106a86444b2 | [
"MIT"
] | null | null | null | apps/moroxite_server/.iex.exs | Hadescho/Moroxite | 66c3c35a6317d82349ec0b5ddebc8106a86444b2 | [
"MIT"
] | null | null | null | alias MoroxiteServer.Providers.Reddit.Fetcher
alias MoroxiteServer.MimeType
alias MoroxiteServer.Downloader
| 27 | 45 | 0.898148 |
5a11cc5ecd55a0a10020a6cf6b0e4b41b6ff1037 | 599 | exs | Elixir | test/ex_sieve/config_test.exs | s33m4nn/ex_sieve | 20c54e6f9f2b48dca09aa97a750a218c15812d2d | [
"MIT"
] | 35 | 2016-10-09T14:20:11.000Z | 2022-01-06T20:05:10.000Z | test/ex_sieve/config_test.exs | s33m4nn/ex_sieve | 20c54e6f9f2b48dca09aa97a750a218c15812d2d | [
"MIT"
] | 10 | 2016-10-26T09:55:24.000Z | 2020-05-28T12:09:10.000Z | test/ex_sieve/config_test.exs | s33m4nn/ex_sieve | 20c54e6f9f2b48dca09aa97a750a218c15812d2d | [
"MIT"
] | 12 | 2016-10-19T08:13:58.000Z | 2020-05-12T08:55:36.000Z | defmodule ExSieve.ConfigTest do
use ExUnit.Case
alias ExSieve.{Post, Address}
alias ExSieve.Config
test "invalid options are discarded" do
refute Config.new([], %{foo: 1}, Address) |> Map.has_key?(:foo)
end
test "repo options override defaults" do
assert %Config{max_depth: 4} = Config.new([max_de... | 26.043478 | 75 | 0.676127 |
5a123c51b824fc6658fc4840d5f0e8049be25f38 | 273 | exs | Elixir | priv/repo/migrations/20160212033932_message.exs | philosodad/bridge_queue | 33b2ca93a5e7d41af851e8ac1eb2a3e7ed601b2e | [
"MIT"
] | null | null | null | priv/repo/migrations/20160212033932_message.exs | philosodad/bridge_queue | 33b2ca93a5e7d41af851e8ac1eb2a3e7ed601b2e | [
"MIT"
] | null | null | null | priv/repo/migrations/20160212033932_message.exs | philosodad/bridge_queue | 33b2ca93a5e7d41af851e8ac1eb2a3e7ed601b2e | [
"MIT"
] | null | null | null | defmodule IfsBq.Repo.Migrations.Message do
use Ecto.Migration
def change do
create table(:messages) do
add :message_body, :string
add :shard_id, :string
add :sent, :boolean, default: false
timestamps
end
end
end
| 19.5 | 52 | 0.615385 |
5a12599063d81aaf2152cf960ceb5686b1e2df85 | 32,101 | exs | Elixir | lib/iex/test/iex/helpers_test.exs | bsmr-erlang/elixir | 0e72d4839cda97edce75ca0c537555ce4ead7a6a | [
"Apache-2.0"
] | null | null | null | lib/iex/test/iex/helpers_test.exs | bsmr-erlang/elixir | 0e72d4839cda97edce75ca0c537555ce4ead7a6a | [
"Apache-2.0"
] | null | null | null | lib/iex/test/iex/helpers_test.exs | bsmr-erlang/elixir | 0e72d4839cda97edce75ca0c537555ce4ead7a6a | [
"Apache-2.0"
] | null | null | null | Code.require_file("../test_helper.exs", __DIR__)
defmodule IEx.HelpersTest do
use IEx.Case
import IEx.Helpers
describe "whereami" do
test "is disabled by default" do
assert capture_iex("whereami()") =~ "Pry session is not currently enabled"
end
test "shows current location for custom envs" d... | 31.783168 | 124 | 0.577241 |
5a127b80e841b6795d4380aa21d1e8f1bf820a1a | 431 | exs | Elixir | priv/repo/migrations/20181102174534_remove_pin_in_community_flags.exs | DavidAlphaFox/coderplanets_server | 3fd47bf3bba6cc04c9a34698201a60ad2f3e8254 | [
"Apache-2.0"
] | 1 | 2019-05-07T15:03:54.000Z | 2019-05-07T15:03:54.000Z | priv/repo/migrations/20181102174534_remove_pin_in_community_flags.exs | DavidAlphaFox/coderplanets_server | 3fd47bf3bba6cc04c9a34698201a60ad2f3e8254 | [
"Apache-2.0"
] | null | null | null | priv/repo/migrations/20181102174534_remove_pin_in_community_flags.exs | DavidAlphaFox/coderplanets_server | 3fd47bf3bba6cc04c9a34698201a60ad2f3e8254 | [
"Apache-2.0"
] | null | null | null | defmodule MastaniServer.Repo.Migrations.RemovePinInCommunityFlags do
use Ecto.Migration
def change do
alter table(:posts_communities_flags) do
remove(:pin)
remove(:refined)
end
alter table(:jobs_communities_flags) do
remove(:pin)
end
alter table(:videos_communities_flags) do... | 18.73913 | 68 | 0.689095 |
5a128c3b35b677e053843b065adf87cedc87782e | 1,088 | ex | Elixir | web/channels/call_channel.ex | Redorb/SpeakEasy | ef9176ae9d9c9064abd3a287852ba897238e3516 | [
"MIT"
] | null | null | null | web/channels/call_channel.ex | Redorb/SpeakEasy | ef9176ae9d9c9064abd3a287852ba897238e3516 | [
"MIT"
] | null | null | null | web/channels/call_channel.ex | Redorb/SpeakEasy | ef9176ae9d9c9064abd3a287852ba897238e3516 | [
"MIT"
] | null | null | null | defmodule Speakeasy.CallChannel do
use Speakeasy.Web, :channel
alias Speakeasy.Presence
def join("call:" <> callers, payload, socket) do
[caller_id, other_id] = String.split(callers, ",")
if caller_id == socket.assigns.user_id || other_id == socket.assigns.user_id do
send(self, :after_join)
{:... | 27.897436 | 83 | 0.659007 |
5a12bb9c31d55d82c06f61e6f2ae838277a1c736 | 369 | ex | Elixir | episode-024/web/controllers/page_controller.ex | thaterikperson/elmseeds | 72b09358926287ab4ea79893196d1ba002f190b3 | [
"MIT"
] | 84 | 2016-07-02T05:21:36.000Z | 2021-02-12T22:45:45.000Z | episode-024/web/controllers/page_controller.ex | thaterikperson/elmseeds | 72b09358926287ab4ea79893196d1ba002f190b3 | [
"MIT"
] | 3 | 2016-07-02T06:03:47.000Z | 2017-06-03T14:11:06.000Z | episode-024/web/controllers/page_controller.ex | thaterikperson/elmseeds | 72b09358926287ab4ea79893196d1ba002f190b3 | [
"MIT"
] | 6 | 2017-02-16T19:33:49.000Z | 2019-04-05T19:27:17.000Z | defmodule ElmIsFun.PageController do
use ElmIsFun.Web, :controller
def index(conn, _params) do
render conn, "index.html"
end
def large(conn, params) do
ElmIsFun.Endpoint.broadcast!("all", "derp", %{derpy: "do"})
text =
:crypto.strong_rand_bytes(10)
|> Base.encode64(padding: false)
... | 21.705882 | 63 | 0.663957 |
5a12c6213bf3451520f52f88a53bcbda6ae13cb7 | 373 | ex | Elixir | lib/grizzly/command_handlers/ack_response.ex | jellybob/grizzly | 290bee04cb16acbb9dc996925f5c501697b7ac94 | [
"Apache-2.0"
] | 76 | 2019-09-04T16:56:58.000Z | 2022-03-29T06:54:36.000Z | lib/grizzly/command_handlers/ack_response.ex | jellybob/grizzly | 290bee04cb16acbb9dc996925f5c501697b7ac94 | [
"Apache-2.0"
] | 124 | 2019-09-05T14:01:24.000Z | 2022-02-28T22:58:14.000Z | lib/grizzly/command_handlers/ack_response.ex | jellybob/grizzly | 290bee04cb16acbb9dc996925f5c501697b7ac94 | [
"Apache-2.0"
] | 10 | 2019-10-23T19:25:45.000Z | 2021-11-17T13:21:20.000Z | defmodule Grizzly.CommandHandlers.AckResponse do
@moduledoc """
This handler is useful for most set commands that only needs to be
acknowledged
"""
@behaviour Grizzly.CommandHandler
@impl true
def init(_) do
{:ok, nil}
end
@impl true
def handle_ack(_), do: {:complete, :ok}
@impl true
def ... | 19.631579 | 68 | 0.691689 |
5a12f06eeb2d4f3c12f2ceede3b5b2358aea83e4 | 1,256 | exs | Elixir | mix.exs | bennyhat/xml_json | c204da66c581cbfb66ef40cb6230331408eaf219 | [
"MIT"
] | 2 | 2020-10-08T06:49:02.000Z | 2020-10-29T16:24:20.000Z | mix.exs | bennyhat/xml_json | c204da66c581cbfb66ef40cb6230331408eaf219 | [
"MIT"
] | 2 | 2020-10-08T12:15:38.000Z | 2021-06-01T18:15:31.000Z | mix.exs | bennyhat/xml_json | c204da66c581cbfb66ef40cb6230331408eaf219 | [
"MIT"
] | 2 | 2020-10-08T11:56:39.000Z | 2021-06-01T16:42:43.000Z | defmodule XmlJson.MixProject do
use Mix.Project
@source_url "https://github.com/bennyhat/xml_json"
def project do
[
app: :xml_json,
version: "0.4.1",
elixir: "~> 1.10",
start_permanent: Mix.env() == :prod,
deps: deps(),
description: description(),
docs: docs(),
... | 21.288136 | 81 | 0.554936 |
5a132366566a344643f6ef88ea90efa796c56740 | 1,498 | ex | Elixir | backend/test/support/fixtures/appliances_fixtures.ex | bejolithic/honeyland | 8c4a0d3b56543648d3acb96cc6906df86526743b | [
"Apache-2.0"
] | null | null | null | backend/test/support/fixtures/appliances_fixtures.ex | bejolithic/honeyland | 8c4a0d3b56543648d3acb96cc6906df86526743b | [
"Apache-2.0"
] | null | null | null | backend/test/support/fixtures/appliances_fixtures.ex | bejolithic/honeyland | 8c4a0d3b56543648d3acb96cc6906df86526743b | [
"Apache-2.0"
] | null | null | null | #
# This file is part of Honeyland.
#
# Copyright 2022 Nervive Studio
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by ... | 25.827586 | 94 | 0.676903 |
5a1324ccd69dc349b3e11ab7d6d011a921077cc5 | 6,787 | ex | Elixir | clients/big_query/lib/google_api/big_query/v2/model/dataset.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/big_query/lib/google_api/big_query/v2/model/dataset.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/big_query/lib/google_api/big_query/v2/model/dataset.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 75.411111 | 922 | 0.73405 |
5a1336d919ed0e460bbc2c92bb289adbe78451c8 | 1,940 | ex | Elixir | clients/script/lib/google_api/script/v1/model/deployment_config.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/script/lib/google_api/script/v1/model/deployment_config.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/script/lib/google_api/script/v1/model/deployment_config.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 34.035088 | 105 | 0.726804 |
5a13543ac489d6ef747c5ddb4f8b09245e1806ba | 2,466 | exs | Elixir | config/prod.exs | AbdullahDahmash/peep-stack-api-tutorial | 3e6d98be33fbee0ae79022e6a74940e0ea70cc96 | [
"MIT"
] | 1 | 2020-12-23T18:28:54.000Z | 2020-12-23T18:28:54.000Z | config/prod.exs | AbdullahDahmash/peep-stack-api-tutorial | 3e6d98be33fbee0ae79022e6a74940e0ea70cc96 | [
"MIT"
] | null | null | null | config/prod.exs | AbdullahDahmash/peep-stack-api-tutorial | 3e6d98be33fbee0ae79022e6a74940e0ea70cc96 | [
"MIT"
] | null | null | null | use Mix.Config
# For production, we configure the host to read the PORT
# from the system environment. Therefore, you will need
# to set PORT=80 before running your server.
#
# You should also configure the url host to something
# meaningful, we use this information when generating URLs.
#
# Finally, we also include t... | 32.025974 | 67 | 0.718573 |
5a13686b2f9031b95ec1bc0be9262240d309d0aa | 4,279 | exs | Elixir | test/arf_test.exs | bgianfo/arf | ac1b6e58454a5d89f90f86b925020bca2af3918e | [
"BSD-2-Clause"
] | 4 | 2015-07-23T08:03:15.000Z | 2021-11-17T10:41:23.000Z | test/arf_test.exs | bgianfo/arf | ac1b6e58454a5d89f90f86b925020bca2af3918e | [
"BSD-2-Clause"
] | 7 | 2019-08-08T18:02:11.000Z | 2020-12-22T13:31:00.000Z | test/arf_test.exs | bgianfo/arf | ac1b6e58454a5d89f90f86b925020bca2af3918e | [
"BSD-2-Clause"
] | null | null | null | defmodule ArfTest do
use ExUnit.Case, async: true
doctest Arf
require Record
"""
Macro for bulk asserting membership.
"""
defmacrop assert_members(arf, list) do
for val <- list do
quote do
assert Arf.contains(unquote(arf), unquote(val))
end
end
end
"""
Macro for bulk... | 23.905028 | 70 | 0.539145 |
5a137428c15852741ddf08128f914893dbf55c87 | 5,289 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/instance_properties.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/instance_properties.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/instance_properties.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 65.296296 | 452 | 0.748157 |
5a137ce99f8d4b0328709a84ae90211e64736c6a | 8,486 | ex | Elixir | lib/elixir/lib/calendar.ex | namjae/elixir | 6d1561a5939d68fb61f422b83271fbc824847395 | [
"Apache-2.0"
] | 1 | 2021-05-20T13:08:37.000Z | 2021-05-20T13:08:37.000Z | lib/elixir/lib/calendar.ex | namjae/elixir | 6d1561a5939d68fb61f422b83271fbc824847395 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/calendar.ex | namjae/elixir | 6d1561a5939d68fb61f422b83271fbc824847395 | [
"Apache-2.0"
] | null | null | null | defmodule Calendar do
@moduledoc """
This module defines the responsibilities for working with
calendars, dates, times and datetimes in Elixir.
Currently it defines types and the minimal implementation
for a calendar behaviour in Elixir. The goal of the Calendar
features in Elixir is to provide a base for ... | 33.278431 | 95 | 0.675937 |
5a139b9e7a9541d2d1182da0670f16ce9235c785 | 190 | ex | Elixir | lib/break.ex | sitedata/sanbase2 | 8da5e44a343288fbc41b68668c6c80ae8547d557 | [
"MIT"
] | null | null | null | lib/break.ex | sitedata/sanbase2 | 8da5e44a343288fbc41b68668c6c80ae8547d557 | [
"MIT"
] | 1 | 2021-07-24T16:26:03.000Z | 2021-07-24T16:26:03.000Z | lib/break.ex | sitedata/sanbase2 | 8da5e44a343288fbc41b68668c6c80ae8547d557 | [
"MIT"
] | null | null | null | defmodule Sanbase.Break do
defmodule CompileError do
defexception [:message]
end
defmacro break(value) do
quote do
raise(CompileError, unquote(value))
end
end
end
| 15.833333 | 41 | 0.7 |
5a13f38f9ed4fcdb430eb4cce5d4378d86294c2c | 254 | ex | Elixir | web/routers/base_router.ex | azukiapp/scarecrow | c5d500d36173c74ed8c7e6e4923293de8b39ea9b | [
"Apache-2.0"
] | 1 | 2015-06-13T03:35:02.000Z | 2015-06-13T03:35:02.000Z | web/routers/base_router.ex | azukiapp/scarecrow | c5d500d36173c74ed8c7e6e4923293de8b39ea9b | [
"Apache-2.0"
] | null | null | null | web/routers/base_router.ex | azukiapp/scarecrow | c5d500d36173c74ed8c7e6e4923293de8b39ea9b | [
"Apache-2.0"
] | null | null | null | defmodule BaseRouter do
defmacro __using__(_) do
quote do
use Dynamo.Router
import unquote(__MODULE__)
end
end
def base_conn(conn) do
conn
.resp_content_type("application/json")
.resp_charset("utf-8")
end
end
| 16.933333 | 44 | 0.661417 |
5a13fe9f1b7ef211098d5d2fb71ff2ed0bce385f | 309 | ex | Elixir | fixtures/elixir_output/put_basic_auth_json_data.ex | martinsirbe/curlconverter | c5324e85d2ca24ef4743fb2bb36139d23367e293 | [
"MIT"
] | 4,955 | 2015-01-02T09:04:20.000Z | 2021-10-06T03:54:43.000Z | fixtures/elixir_output/put_basic_auth_json_data.ex | martinsirbe/curlconverter | c5324e85d2ca24ef4743fb2bb36139d23367e293 | [
"MIT"
] | 242 | 2015-03-27T05:59:11.000Z | 2021-10-03T08:36:05.000Z | fixtures/elixir_output/put_basic_auth_json_data.ex | martinsirbe/curlconverter | c5324e85d2ca24ef4743fb2bb36139d23367e293 | [
"MIT"
] | 504 | 2015-01-02T16:04:36.000Z | 2021-10-01T03:43:55.000Z | request = %HTTPoison.Request{
method: :put,
url: "http://localhost:5984/test/_security",
options: [hackney: [basic_auth: {~s|admin|, ~s|123|}]],
headers: [],
params: [],
body: ~s|{"admins":{"names":[], "roles":[]}, "readers":{"names":["joe"],"roles":[]}}|
}
response = HTTPoison.request(request)
| 28.090909 | 87 | 0.595469 |
5a13ff0a56e07829c619942134bedc722ddc7ab5 | 27 | ex | Elixir | ex/lib/aoc/day3.ex | wrren/aoc2019 | 7ab6f99eb4116afef5326f53e039631d7ca02d97 | [
"MIT"
] | null | null | null | ex/lib/aoc/day3.ex | wrren/aoc2019 | 7ab6f99eb4116afef5326f53e039631d7ca02d97 | [
"MIT"
] | null | null | null | ex/lib/aoc/day3.ex | wrren/aoc2019 | 7ab6f99eb4116afef5326f53e039631d7ca02d97 | [
"MIT"
] | null | null | null | defmodule AOC.Day3 do
end
| 6.75 | 21 | 0.777778 |
5a14035540c42385a0406ff015f0cd275fb6c79b | 9 | ex | Elixir | testData/org/elixir_lang/parser_definition/eol_to_whitespace/Semicolon.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 1,668 | 2015-01-03T05:54:27.000Z | 2022-03-25T08:01:20.000Z | testData/org/elixir_lang/parser_definition/eol_to_whitespace/Semicolon.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 2,018 | 2015-01-01T22:43:39.000Z | 2022-03-31T20:13:08.000Z | testData/org/elixir_lang/parser_definition/eol_to_whitespace/Semicolon.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 145 | 2015-01-15T11:37:16.000Z | 2021-12-22T05:51:02.000Z |
1
;
2
| 1.285714 | 1 | 0.222222 |
5a14131b27c85c08785350085459c998e02beba1 | 7,903 | exs | Elixir | test/domo/type_ensurer_factory/resolver/remote_test.exs | cuevacreativa/Domo | 5f2f5ff3cb57dfe774408dcae6ccb5b79d1a3089 | [
"MIT"
] | null | null | null | test/domo/type_ensurer_factory/resolver/remote_test.exs | cuevacreativa/Domo | 5f2f5ff3cb57dfe774408dcae6ccb5b79d1a3089 | [
"MIT"
] | null | null | null | test/domo/type_ensurer_factory/resolver/remote_test.exs | cuevacreativa/Domo | 5f2f5ff3cb57dfe774408dcae6ccb5b79d1a3089 | [
"MIT"
] | null | null | null | defmodule Domo.TypeEnsurerFactory.Resolver.RemoteTest do
use Domo.FileCase
alias Domo.TypeEnsurerFactory.Error
alias Domo.TypeEnsurerFactory.Resolver
import ResolverTestHelper
setup [:setup_project_planner]
describe "TypeEnsurerFactory.Resolver should" do
test "treat remote types to any() according ... | 30.992157 | 118 | 0.603695 |
5a141d433d2f37c7ff6afd4ccdca98cb8f010747 | 17,017 | exs | Elixir | lib/elixir/test/elixir/inspect_test.exs | BlakeWilliams/elixir | f77cc2657cf981fdf819915f1ee15e69c3cd91ad | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/inspect_test.exs | BlakeWilliams/elixir | f77cc2657cf981fdf819915f1ee15e69c3cd91ad | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/inspect_test.exs | BlakeWilliams/elixir | f77cc2657cf981fdf819915f1ee15e69c3cd91ad | [
"Apache-2.0"
] | null | null | null | Code.require_file("test_helper.exs", __DIR__)
defmodule Inspect.AtomTest do
use ExUnit.Case, async: true
doctest Inspect
test "basic" do
assert inspect(:foo) == ":foo"
end
test "empty" do
assert inspect(:"") == ":\"\""
end
test "true, false, nil" do
assert inspect(false) == "false"
as... | 29.492201 | 98 | 0.55756 |
5a1487f341076e7eecd851e720ac4d36914c289d | 1,076 | ex | Elixir | services/fc_inventory/lib/fc_inventory/stores/serial_number_store.ex | fleadope/freshcom | 8d5944befaa6eea8d31e5f5995939be2a1a44262 | [
"BSD-3-Clause"
] | 46 | 2018-10-13T23:18:13.000Z | 2021-08-07T07:46:51.000Z | services/fc_inventory/lib/fc_inventory/stores/serial_number_store.ex | fleadope/freshcom | 8d5944befaa6eea8d31e5f5995939be2a1a44262 | [
"BSD-3-Clause"
] | 25 | 2018-10-14T00:56:07.000Z | 2019-12-23T19:41:02.000Z | services/fc_inventory/lib/fc_inventory/stores/serial_number_store.ex | fleadope/freshcom | 8d5944befaa6eea8d31e5f5995939be2a1a44262 | [
"BSD-3-Clause"
] | 5 | 2018-12-16T04:39:51.000Z | 2020-10-01T12:17:03.000Z | defmodule FCInventory.SerialNumberStore do
import FCSupport.Normalization
@doc """
Keep the data of serial number for future use.
"""
@spec put(String.t(), String.t(), map()) :: :ok
def put(account_id, serial_number, data) do
key = generate_key(account_id, serial_number)
{:ok, _} = FCStateStorage.... | 24.454545 | 64 | 0.680297 |
5a152c63df69d69302a506c4fd50122788efd2e6 | 1,480 | ex | Elixir | lib/gremlin_to_graphql.ex | Fulnir/ExDgraph-Gremlin | 01488aa04df5c7a92b094d6a1acd4434b3c5e009 | [
"Apache-2.0"
] | 3 | 2018-03-21T20:09:13.000Z | 2019-06-19T03:07:55.000Z | lib/gremlin_to_graphql.ex | Fulnir/ExDgraph-Gremlin | 01488aa04df5c7a92b094d6a1acd4434b3c5e009 | [
"Apache-2.0"
] | null | null | null | lib/gremlin_to_graphql.ex | Fulnir/ExDgraph-Gremlin | 01488aa04df5c7a92b094d6a1acd4434b3c5e009 | [
"Apache-2.0"
] | null | null | null | defmodule ExdgraphGremlin.GremlinToQraphQL do
require Logger
import ExdgraphGremlin
# import ExdgraphGremlin.GremlinToQraphQL
alias ExdgraphGremlin.Vertex
alias ExdgraphGremlin.Edge
alias ExdgraphGremlin.GremlinGraphQL
@spec query(GremlinGraphQL) :: GremlinGraphQL
def query(graph_in) do
case graph_... | 25.517241 | 68 | 0.577027 |
5a15588787b5bb8ba8d0f7c94ef19e8b7a916783 | 22,777 | ex | Elixir | lib/handler.ex | lafka/cicadabus | d40a9d8456dff80f81706a4425833b877abdcf36 | [
"BSD-3-Clause"
] | null | null | null | lib/handler.ex | lafka/cicadabus | d40a9d8456dff80f81706a4425833b877abdcf36 | [
"BSD-3-Clause"
] | null | null | null | lib/handler.ex | lafka/cicadabus | d40a9d8456dff80f81706a4425833b877abdcf36 | [
"BSD-3-Clause"
] | null | null | null | defmodule CicadaBus.Handler do
@moduledoc """
The topic handler used to process incoming data
A event may match several topics subscribers. It is always delivered
to all of them.
A handler is a process consuming incoming events and the delegating to
it's subscribers (which is any process or a topic - impl... | 30.40988 | 118 | 0.583527 |
5a156691a628ba17733f83f6b42b78dcf77418da | 2,537 | exs | Elixir | mix.exs | joseph-lozano/ex_platform | 55208dfc50e1bd1ed232141798579fdcb6fc54af | [
"MIT"
] | null | null | null | mix.exs | joseph-lozano/ex_platform | 55208dfc50e1bd1ed232141798579fdcb6fc54af | [
"MIT"
] | null | null | null | mix.exs | joseph-lozano/ex_platform | 55208dfc50e1bd1ed232141798579fdcb6fc54af | [
"MIT"
] | null | null | null | defmodule ExPlatform.MixProject do
use Mix.Project
def project do
[
app: :ex_platform,
version: "0.1.0",
elixir: "~> 1.7",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix, :gettext] ++ Mix.compilers(),
start_permanent: Mix.env() == :prod,
aliases: aliases... | 30.202381 | 84 | 0.551833 |
5a1571b9de21bda774caf5c8c80c04a217b154ac | 1,994 | ex | Elixir | clients/games/lib/google_api/games/v1/model/aggregate_stats.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/games/lib/google_api/games/v1/model/aggregate_stats.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/games/lib/google_api/games/v1/model/aggregate_stats.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 33.233333 | 143 | 0.705115 |
5a158339fd8a6cb6ee9f632e145d6d7b34e0c9ad | 140 | ex | Elixir | lib/igdb/resources/platform_version.ex | facto/igdb | 9662e9ffd41e0925c22b1d3cd4774ae49b68e89e | [
"MIT"
] | 2 | 2018-04-09T07:34:37.000Z | 2020-03-08T06:50:03.000Z | lib/igdb/resources/platform_version.ex | tomasz-tomczyk/igdb | 98d777798503f427e6c302da0251e819b9583c65 | [
"MIT"
] | null | null | null | lib/igdb/resources/platform_version.ex | tomasz-tomczyk/igdb | 98d777798503f427e6c302da0251e819b9583c65 | [
"MIT"
] | null | null | null | defmodule Igdb.PlatformVersion do
@moduledoc """
Represents a Platform Version resource in the IGDB API.
"""
use Igdb.Resource
end
| 17.5 | 57 | 0.735714 |
5a159700841fb8516f48371c4a80f18258ba40e5 | 802 | exs | Elixir | test/xandra_test.exs | lexmag/xandra | eadd1be7fa36a0973c2b7fe525fe5aaba2ce264d | [
"0BSD"
] | null | null | null | test/xandra_test.exs | lexmag/xandra | eadd1be7fa36a0973c2b7fe525fe5aaba2ce264d | [
"0BSD"
] | null | null | null | test/xandra_test.exs | lexmag/xandra | eadd1be7fa36a0973c2b7fe525fe5aaba2ce264d | [
"0BSD"
] | null | null | null | defmodule XandraTest do
use ExUnit.Case, async: true
test "options validation in Xandra.start_link/1" do
assert_raise NimbleOptions.ValidationError, ~r{invalid node: "foo:bar"}, fn ->
Xandra.start_link(nodes: ["foo:bar"])
end
assert_raise ArgumentError, ~r{cannot use multiple nodes in the :nodes... | 29.703704 | 89 | 0.705736 |
5a15a4aef1090e849834fd0615eb4a30b5b22f59 | 3,377 | ex | Elixir | clients/analytics_admin/lib/google_api/analytics_admin/v1alpha/model/google_analytics_admin_v1alpha_custom_metric.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/analytics_admin/lib/google_api/analytics_admin/v1alpha/model/google_analytics_admin_v1alpha_custom_metric.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/analytics_admin/lib/google_api/analytics_admin/v1alpha/model/google_analytics_admin_v1alpha_custom_metric.ex | dazuma/elixir-google-api | 6a9897168008efe07a6081d2326735fe332e522c | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 48.242857 | 356 | 0.722831 |
5a15c55ebd3e39b2275ae948e4cab87c87bbc25d | 523 | exs | Elixir | config/test.exs | KazuCocoa/react_phoenix | 7cd2fe0bdcddf8a0fdd876517232893783bf21e5 | [
"MIT"
] | null | null | null | config/test.exs | KazuCocoa/react_phoenix | 7cd2fe0bdcddf8a0fdd876517232893783bf21e5 | [
"MIT"
] | null | null | null | config/test.exs | KazuCocoa/react_phoenix | 7cd2fe0bdcddf8a0fdd876517232893783bf21e5 | [
"MIT"
] | null | null | null | use Mix.Config
# We don't run a server during test. If one is required,
# you can enable the server option below.
config :react_phonenix, ReactPhoenix.Endpoint,
http: [port: 4001],
server: false
# Print only warnings and errors during test
config :logger, level: :warn
# Configure your database
config :react_phon... | 27.526316 | 59 | 0.753346 |
5a15d0f29f6bcbe74ced35d175cc7ac896498d1c | 4,155 | ex | Elixir | clients/storage_transfer/lib/google_api/storage_transfer/v1/model/metadata_options.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/storage_transfer/lib/google_api/storage_transfer/v1/model/metadata_options.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/storage_transfer/lib/google_api/storage_transfer/v1/model/metadata_options.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 58.521127 | 285 | 0.72515 |
5a15d2f1f6466cc52b1ca3f876384617801e4d03 | 712 | ex | Elixir | lib/hub/auth/admin.ex | Poeticode/hub | 39df28dd5f18fe61899b72f18935c1508dd166ee | [
"MIT"
] | null | null | null | lib/hub/auth/admin.ex | Poeticode/hub | 39df28dd5f18fe61899b72f18935c1508dd166ee | [
"MIT"
] | null | null | null | lib/hub/auth/admin.ex | Poeticode/hub | 39df28dd5f18fe61899b72f18935c1508dd166ee | [
"MIT"
] | null | null | null | defmodule Hub.Auth.Admin do
use Ecto.Schema
import Ecto.Changeset
schema "admins" do
field :emails, {:array, :string}
field :password, :string, virtual: true
field :password_hash, :string
field :username, :string
timestamps()
end
@doc false
def changeset(admin, attrs) do
admin
... | 21.575758 | 77 | 0.682584 |
5a15dcf87aba39ce9a5da6a241b673eb556b2bec | 4,636 | ex | Elixir | clients/app_engine/lib/google_api/app_engine/v1/model/application.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/app_engine/lib/google_api/app_engine/v1/model/application.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/app_engine/lib/google_api/app_engine/v1/model/application.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 54.541176 | 356 | 0.739215 |
5a15f4ce3324aa0fcf7d0b61b50e47487b7c55d5 | 4,434 | ex | Elixir | lib/ec_cart/cart.ex | ramortegui/EcCart | c6aa0632ed913c825103d158db84fcf7e5193998 | [
"Apache-2.0"
] | 1 | 2019-03-31T16:20:16.000Z | 2019-03-31T16:20:16.000Z | lib/ec_cart/cart.ex | ramortegui/EcCart | c6aa0632ed913c825103d158db84fcf7e5193998 | [
"Apache-2.0"
] | 1 | 2018-04-01T03:27:12.000Z | 2018-04-01T03:27:12.000Z | lib/ec_cart/cart.ex | ramortegui/EcCart | c6aa0632ed913c825103d158db84fcf7e5193998 | [
"Apache-2.0"
] | null | null | null | defmodule EcCart.Cart do
@moduledoc """
Module to handle `EcCart` structures.
"""
defstruct items: [], adjustments: []
@doc """
Creates an empty %EcCart.Cart{} structure, this strucure has by default
and empty list of items and and empty list of adjustments
## Examples
iex> EcCart.Ca... | 28.980392 | 111 | 0.612314 |
5a161dee57eb466cc3786462133143dde26599a2 | 1,185 | ex | Elixir | web/channels/user_socket.ex | MarcAntoine-Arnaud/ecto_relations | 477853429af12adb33cd8000b29da044649c1283 | [
"MIT"
] | null | null | null | web/channels/user_socket.ex | MarcAntoine-Arnaud/ecto_relations | 477853429af12adb33cd8000b29da044649c1283 | [
"MIT"
] | null | null | null | web/channels/user_socket.ex | MarcAntoine-Arnaud/ecto_relations | 477853429af12adb33cd8000b29da044649c1283 | [
"MIT"
] | null | null | null | defmodule EctoRelations.UserSocket do
use Phoenix.Socket
## Channels
# channel "rooms:*", EctoRelations.RoomChannel
## Transports
transport :websocket, Phoenix.Transports.WebSocket
# transport :longpoll, Phoenix.Transports.LongPoll
# Socket params are passed from the client and can
# be used to verif... | 31.184211 | 86 | 0.706329 |
5a1679b88c93f9d5f74d86db0439e5d8c4adff50 | 520 | ex | Elixir | lib/livebook_web/live/output/vega_lite_static_component.ex | shanesveller/livebook | 7c5560f74e493cce6d067d535892848fc3bd22d4 | [
"Apache-2.0"
] | null | null | null | lib/livebook_web/live/output/vega_lite_static_component.ex | shanesveller/livebook | 7c5560f74e493cce6d067d535892848fc3bd22d4 | [
"Apache-2.0"
] | null | null | null | lib/livebook_web/live/output/vega_lite_static_component.ex | shanesveller/livebook | 7c5560f74e493cce6d067d535892848fc3bd22d4 | [
"Apache-2.0"
] | null | null | null | defmodule LivebookWeb.Output.VegaLiteStaticComponent do
use LivebookWeb, :live_component
@impl true
def mount(socket) do
{:ok, socket}
end
@impl true
def update(assigns, socket) do
socket = assign(socket, id: assigns.id)
{:ok, push_event(socket, "vega_lite:#{socket.assigns.id}:init", %{"spec" ... | 22.608696 | 96 | 0.630769 |
5a167f91f5baeb82bba7e47494fe43f5a94a838e | 1,919 | ex | Elixir | clients/storage/lib/google_api/storage/v1/model/buckets.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/storage/lib/google_api/storage/v1/model/buckets.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/storage/lib/google_api/storage/v1/model/buckets.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 36.207547 | 205 | 0.709745 |
5a16a426811b549291d188d91fcf3b3c48049616 | 779 | exs | Elixir | test/banchan/studios_test.exs | riamaria/banchan | c4f8bd9374acaf0a8bb2c501e2ae1eb78f96579f | [
"BlueOak-1.0.0",
"Apache-2.0"
] | null | null | null | test/banchan/studios_test.exs | riamaria/banchan | c4f8bd9374acaf0a8bb2c501e2ae1eb78f96579f | [
"BlueOak-1.0.0",
"Apache-2.0"
] | null | null | null | test/banchan/studios_test.exs | riamaria/banchan | c4f8bd9374acaf0a8bb2c501e2ae1eb78f96579f | [
"BlueOak-1.0.0",
"Apache-2.0"
] | null | null | null | defmodule Banchan.StudiosTest do
@moduledoc """
Tests for Studios-related functionality.
"""
use Banchan.DataCase
import Banchan.AccountsFixtures
import Banchan.StudiosFixtures
alias Banchan.Studios.Studio
describe "validation" do
test "cannot use an existing handle" do
existing_studio = st... | 20.5 | 63 | 0.630295 |
5a16cce285fc52ca0bafe0282fc4c44becceabe3 | 425 | ex | Elixir | test/support/pet.ex | OnigiriJack/flop_phoenix | 1f9f64ac9fef82b9e502c4d0f48207b202fcc691 | [
"MIT"
] | null | null | null | test/support/pet.ex | OnigiriJack/flop_phoenix | 1f9f64ac9fef82b9e502c4d0f48207b202fcc691 | [
"MIT"
] | null | null | null | test/support/pet.ex | OnigiriJack/flop_phoenix | 1f9f64ac9fef82b9e502c4d0f48207b202fcc691 | [
"MIT"
] | null | null | null | defmodule Flop.Phoenix.Pet do
@moduledoc """
Defines an Ecto schema for testing.
"""
use Ecto.Schema
@derive {
Flop.Schema,
filterable: [:name, :age],
sortable: [:name, :age],
default_limit: 20,
max_limit: 200,
default_order_by: [:name],
default_order_directions: [:asc]
}
sch... | 18.478261 | 37 | 0.621176 |
5a16d1fff8d70bc6801f1f1a840f044408a52daf | 2,056 | ex | Elixir | lib/pony_factor/git.ex | lee-dohm/pony-factor | 09a57ed03985d72c09fb8e001ef2533c437a4ab0 | [
"MIT"
] | null | null | null | lib/pony_factor/git.ex | lee-dohm/pony-factor | 09a57ed03985d72c09fb8e001ef2533c437a4ab0 | [
"MIT"
] | 1 | 2016-10-16T22:09:03.000Z | 2016-10-16T22:15:44.000Z | lib/pony_factor/git.ex | lee-dohm/pony-factor | 09a57ed03985d72c09fb8e001ef2533c437a4ab0 | [
"MIT"
] | null | null | null | require Logger
defmodule PonyFactor.Git do
@moduledoc """
Interfaces with Git to extract needed information from the repository.
"""
@commit_pattern ~r/(?<hash>[0-9a-f]+)\s+(?<date>\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2} [+-]\d{4})\s+(?<name>.+)/
@doc """
Clones the GitHub repository named by `[owner]/[repo]... | 29.797101 | 119 | 0.64786 |
5a16e6939b8169d0fa7d08fa1b8357461b5fc054 | 665 | ex | Elixir | web/models/activity.ex | taylonr/couchjitsu_track | 0a31c450ac734f9d8b69849cb766de0e99f178c4 | [
"MIT"
] | null | null | null | web/models/activity.ex | taylonr/couchjitsu_track | 0a31c450ac734f9d8b69849cb766de0e99f178c4 | [
"MIT"
] | null | null | null | web/models/activity.ex | taylonr/couchjitsu_track | 0a31c450ac734f9d8b69849cb766de0e99f178c4 | [
"MIT"
] | null | null | null | defmodule CouchjitsuTrack.Activity do
use Ecto.Schema
import Ecto.Changeset
schema "activities" do
field :name
field :user_id, :integer
field :default_duration, :float
belongs_to :category, CouchjitsuTrack.Category
end
@required_fields ~w(name user_id)
@optiona... | 24.62963 | 71 | 0.657143 |
5a16ed2d3a7e9f494eec92bc6e7c80beb49f797b | 339 | ex | Elixir | lib/awesome_elixir/awesome_list/repository.ex | sprql/awesome_elixir | ae1a372bf3060142a546aaf6cb28ffda491d9fa0 | [
"MIT"
] | 1 | 2017-04-13T05:37:08.000Z | 2017-04-13T05:37:08.000Z | lib/awesome_elixir/awesome_list/repository.ex | sprql/awesome_elixir | ae1a372bf3060142a546aaf6cb28ffda491d9fa0 | [
"MIT"
] | null | null | null | lib/awesome_elixir/awesome_list/repository.ex | sprql/awesome_elixir | ae1a372bf3060142a546aaf6cb28ffda491d9fa0 | [
"MIT"
] | null | null | null | defmodule AwesomeElixir.AwesomeList.Repository do
use Ecto.Schema
schema "awesome_list_repositories" do
field :description, :string
field :last_updated_at, :date
field :name, :string
field :stars, :integer
field :url, :string
timestamps()
belongs_to :section, AwesomeElixir.AwesomeList... | 21.1875 | 58 | 0.728614 |
5a16f94e0391e66e111f2852551aa679c428b6c4 | 2,426 | ex | Elixir | phone/lib/phone/phone.ex | ejc123/music_phone | 868dae9fc40224e52a63386672bb0ae8cff2f97d | [
"Apache-2.0"
] | 2 | 2021-04-01T18:18:02.000Z | 2021-04-01T18:18:02.000Z | phone/lib/phone/phone.ex | ejc123/music_phone | 868dae9fc40224e52a63386672bb0ae8cff2f97d | [
"Apache-2.0"
] | null | null | null | phone/lib/phone/phone.ex | ejc123/music_phone | 868dae9fc40224e52a63386672bb0ae8cff2f97d | [
"Apache-2.0"
] | null | null | null | defmodule Phone.Phone do
@moduledoc """
Set up and use phone
"""
use GenServer
require Logger
alias Circuits.UART
# Startup
@spec start_link :: :ignore | {:error, any} | {:ok, pid}
def start_link, do: start_link([])
@spec start_link(any) :: :ignore | {:error, any} | {:ok, pid}
def start_link(... | 22.672897 | 80 | 0.624485 |
5a170ae4002ecdc89bdb5437279cfa876d6714cc | 2,462 | ex | Elixir | lib/quadquizaminos_web/live/leaderboard/index.ex | sparrell/quizquadaminos | 6388252b7c32aa4101486cbf45d0d57d4e3a79da | [
"MIT"
] | 1 | 2022-01-11T20:06:31.000Z | 2022-01-11T20:06:31.000Z | lib/quadquizaminos_web/live/leaderboard/index.ex | sFractal-Podii/quizquadaminos | 4c9023b9c6212a92741b0f21d9eb05871aa73916 | [
"MIT"
] | 484 | 2021-02-15T18:43:40.000Z | 2022-03-29T12:27:24.000Z | lib/quadquizaminos_web/live/leaderboard/index.ex | sFractal-Podii/quizquadaminos | 4c9023b9c6212a92741b0f21d9eb05871aa73916 | [
"MIT"
] | 8 | 2021-02-15T19:12:51.000Z | 2021-12-15T03:02:46.000Z | defmodule QuadquizaminosWeb.LeaderboardLive do
use Phoenix.LiveView
alias QuadquizaminosWeb.Router.Helpers, as: Routes
alias Quadquizaminos.GameBoard.Records
alias Quadquizaminos.Util
def mount(_params, _session, socket) do
{:ok, socket |> assign(page: 1, records: Records.fetch_records(), sort_by: "sco... | 33.27027 | 142 | 0.638099 |
5a170e245cb439223d9355330198e0489d7504ca | 200 | exs | Elixir | test/reserva_web/controllers/page_controller_test.exs | AminArria/reserva | 13faef72927aeb84d456f080d65249b8ef50180e | [
"MIT"
] | null | null | null | test/reserva_web/controllers/page_controller_test.exs | AminArria/reserva | 13faef72927aeb84d456f080d65249b8ef50180e | [
"MIT"
] | 2 | 2021-03-09T00:49:12.000Z | 2021-05-08T03:13:05.000Z | test/reserva_web/controllers/page_controller_test.exs | AminArria/reserva | 13faef72927aeb84d456f080d65249b8ef50180e | [
"MIT"
] | null | null | null | defmodule ReservaWeb.PageControllerTest do
use ReservaWeb.ConnCase
test "GET /", %{conn: conn} do
conn = get(conn, "/")
assert html_response(conn, 200) =~ "Welcome to Phoenix!"
end
end
| 22.222222 | 60 | 0.68 |
5a170ffc6349752cf4aac5c3a21662045646073f | 958 | ex | Elixir | test/support/channel_case.ex | manojsamanta/codebreaker-prototype | 14d521db45784dee692de9e7252dd6a54bb793bb | [
"MIT"
] | null | null | null | test/support/channel_case.ex | manojsamanta/codebreaker-prototype | 14d521db45784dee692de9e7252dd6a54bb793bb | [
"MIT"
] | null | null | null | test/support/channel_case.ex | manojsamanta/codebreaker-prototype | 14d521db45784dee692de9e7252dd6a54bb793bb | [
"MIT"
] | null | null | null | defmodule LiveViewDemoWeb.ChannelCase do
@moduledoc """
This module defines the test case to be used by
channel tests.
Such tests rely on `Phoenix.ChannelTest` and also
import other functionality to make it easier
to build common data structures and query the data layer.
Finally, if the test case intera... | 25.210526 | 74 | 0.721294 |
5a171e6dde0aaacb2ba420fd5edda5bbcde7f9ba | 865 | ex | Elixir | lib/animina/games/team.ex | wintermeyer/animina | 44fb98b4cd2efd4ab425fc37e1ae68a6fa1c1f5a | [
"MIT"
] | 1 | 2021-04-17T20:36:24.000Z | 2021-04-17T20:36:24.000Z | lib/animina/games/team.ex | wintermeyer/animina | 44fb98b4cd2efd4ab425fc37e1ae68a6fa1c1f5a | [
"MIT"
] | 3 | 2021-04-15T19:45:43.000Z | 2021-04-16T06:08:24.000Z | lib/animina/games/team.ex | wintermeyer/animina | 44fb98b4cd2efd4ab425fc37e1ae68a6fa1c1f5a | [
"MIT"
] | null | null | null | defmodule Animina.Games.Team do
use Ecto.Schema
import Ecto.Changeset
alias Animina.Slugs.NameSlug
schema "teams" do
field :description, :string
field :name, :string
field :slug, NameSlug.Type
belongs_to :owner, Animina.Accounts.User, foreign_key: :owner_id
has_many :team_memberships, Animi... | 27.903226 | 68 | 0.685549 |
5a1728cc6a66473a9f594304736518e123692135 | 878 | exs | Elixir | apps/admin_api/test/test_helper.exs | jimpeebles/ewallet | ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405 | [
"Apache-2.0"
] | null | null | null | apps/admin_api/test/test_helper.exs | jimpeebles/ewallet | ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405 | [
"Apache-2.0"
] | null | null | null | apps/admin_api/test/test_helper.exs | jimpeebles/ewallet | ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405 | [
"Apache-2.0"
] | null | null | null | # Copyright 2018 OmiseGO Pte Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writi... | 39.909091 | 74 | 0.769932 |
5a177aa554eba973dd9b57ab84864c05f8d809c5 | 317 | ex | Elixir | test/support/auth_conn_case.ex | shanesveller/ex_venture | 68507da11442a9e0423073fcd305e9021f649ca1 | [
"MIT"
] | null | null | null | test/support/auth_conn_case.ex | shanesveller/ex_venture | 68507da11442a9e0423073fcd305e9021f649ca1 | [
"MIT"
] | null | null | null | test/support/auth_conn_case.ex | shanesveller/ex_venture | 68507da11442a9e0423073fcd305e9021f649ca1 | [
"MIT"
] | null | null | null | defmodule Web.AuthConnCase do
defmacro __using__(_opts) do
quote do
use Web.ConnCase
setup %{conn: conn} do
user = create_user(%{name: "user", password: "password", flags: ["admin"]})
conn = conn |> assign(:user, user)
%{conn: conn, user: user}
end
end
end
end
| 21.133333 | 83 | 0.583596 |
5a178637a609109fcfb14430ec2eb70449f93a9f | 761 | ex | Elixir | lib/postgrex/extensions/interval.ex | activeprospect/postgrex | d267e419de5db61ac8705210dec8527e4bf94a84 | [
"Apache-2.0"
] | null | null | null | lib/postgrex/extensions/interval.ex | activeprospect/postgrex | d267e419de5db61ac8705210dec8527e4bf94a84 | [
"Apache-2.0"
] | 1 | 2020-07-17T10:07:44.000Z | 2020-07-17T10:07:44.000Z | lib/postgrex/extensions/interval.ex | activeprospect/postgrex | d267e419de5db61ac8705210dec8527e4bf94a84 | [
"Apache-2.0"
] | null | null | null | defmodule Postgrex.Extensions.Interval do
@moduledoc false
import Postgrex.BinaryUtils, warn: false
use Postgrex.BinaryExtension, send: "interval_send"
def encode(_) do
quote location: :keep do
%Postgrex.Interval{months: months, days: days, secs: secs} ->
microsecs = secs * 1_000_000
... | 31.708333 | 91 | 0.655716 |
5a17aa811235ad45e92f24b8c496532ca17d0aa5 | 1,426 | exs | Elixir | test/commands/min_test.exs | matusf/cog | 71708301c7dc570fb0d3498a50f47a70ef957788 | [
"Apache-2.0"
] | 1,003 | 2016-02-23T17:21:12.000Z | 2022-02-20T14:39:35.000Z | test/commands/min_test.exs | matusf/cog | 71708301c7dc570fb0d3498a50f47a70ef957788 | [
"Apache-2.0"
] | 906 | 2016-02-22T22:54:19.000Z | 2022-03-11T15:19:43.000Z | test/commands/min_test.exs | matusf/cog | 71708301c7dc570fb0d3498a50f47a70ef957788 | [
"Apache-2.0"
] | 95 | 2016-02-23T13:42:31.000Z | 2021-11-30T14:39:55.000Z | defmodule Cog.Test.Commands.MinTest do
use Cog.CommandCase, command_module: Cog.Commands.Min
test "basic min" do
inv_id = "basic_min"
memory_accum(inv_id, %{"a" => 1})
memory_accum(inv_id, %{"a" => 3})
response = new_req(invocation_id: inv_id, cog_env: %{"a" => 2})
|> send_req()
... | 27.423077 | 92 | 0.525245 |
5a17ac615494d7703ae1a0684c52359eb79ddbc2 | 20,023 | ex | Elixir | lib/nostrum/struct/channel.ex | phereford/nostrum | 3d273671f51d839eedac4d6e52ba9cf70720ac01 | [
"MIT"
] | 637 | 2017-03-07T11:25:35.000Z | 2022-03-31T13:37:51.000Z | lib/nostrum/struct/channel.ex | phereford/nostrum | 3d273671f51d839eedac4d6e52ba9cf70720ac01 | [
"MIT"
] | 372 | 2017-03-07T20:42:03.000Z | 2022-03-30T22:46:46.000Z | lib/nostrum/struct/channel.ex | phereford/nostrum | 3d273671f51d839eedac4d6e52ba9cf70720ac01 | [
"MIT"
] | 149 | 2017-03-07T12:11:58.000Z | 2022-03-19T22:11:51.000Z | defmodule Nostrum.Struct.Channel do
@moduledoc """
Struct and helper functions for working with channels.
## Channel Struct
The channel struct is used by Nostrum to represent a _Discord Channel Object_. More information can be found on the [Discord API Channel Documentation](https://discord.com/developers/doc... | 30.663093 | 298 | 0.63462 |
5a17d0e758fa9752cea7f5400407a83ad63598d8 | 1,267 | ex | Elixir | lib/files.ex | RJSkorski/excoverage | 21aa25cb9ac61aafc9efb65f0593e07d583ddebf | [
"Apache-2.0"
] | null | null | null | lib/files.ex | RJSkorski/excoverage | 21aa25cb9ac61aafc9efb65f0593e07d583ddebf | [
"Apache-2.0"
] | null | null | null | lib/files.ex | RJSkorski/excoverage | 21aa25cb9ac61aafc9efb65f0593e07d583ddebf | [
"Apache-2.0"
] | null | null | null | defmodule Excoverage.Files do
@moduledoc """
Helper module fot handling an access to source code files.
"""
@doc """
Gets a list of elixir file names
"""
@spec get_file_names(paths :: [], ignore_files :: [String.t()]) :: list()
def get_file_names([], ignore_files) do
get_file_names(["lib"], ignore_... | 25.857143 | 97 | 0.590371 |
5a17eada3e5b0e44f250f1f4812160684b9a5e01 | 55 | ex | Elixir | apps/hefty/lib/hefty/algos/naive.ex | Cinderella-Man/crypto-streamer | b1e990d375f7143c5149930be991249f0d9c3ee3 | [
"MIT"
] | 49 | 2019-10-28T22:27:28.000Z | 2021-10-11T06:40:29.000Z | apps/hefty/lib/hefty/algos/naive.ex | Cinderella-Man/crypto-streamer | b1e990d375f7143c5149930be991249f0d9c3ee3 | [
"MIT"
] | 9 | 2019-08-30T13:15:36.000Z | 2019-10-10T21:25:14.000Z | apps/hefty/lib/hefty/algos/naive.ex | Cinderella-Man/crypto-streamer | b1e990d375f7143c5149930be991249f0d9c3ee3 | [
"MIT"
] | 7 | 2019-10-31T06:19:26.000Z | 2021-09-30T04:20:58.000Z | defmodule Hefty.Algos.Naive do
@moduledoc false
end
| 11 | 30 | 0.781818 |
5a18096878c12e27547e4b69f77c53e654bb2df8 | 2,990 | exs | Elixir | integration_test/pool/pool_transaction.exs | ashneyderman/ecto | 16f27f64c5ca2480568fad10e40c26522ffbf793 | [
"Apache-2.0"
] | null | null | null | integration_test/pool/pool_transaction.exs | ashneyderman/ecto | 16f27f64c5ca2480568fad10e40c26522ffbf793 | [
"Apache-2.0"
] | null | null | null | integration_test/pool/pool_transaction.exs | ashneyderman/ecto | 16f27f64c5ca2480568fad10e40c26522ffbf793 | [
"Apache-2.0"
] | null | null | null | defmodule Ecto.Integration.PoolTransactionTest do
use ExUnit.Case, async: true
alias Ecto.Adapters.Pool
alias Ecto.Integration.TestPool
@timeout :infinity
test "worker cleans up the connection when it crashes" do
{:ok, pool} = TestPool.start_link([lazy: false])
assert {:ok, conn1} =
TestPool... | 30.510204 | 90 | 0.611371 |
5a180a7be8960acaab2e412d7407ec07dd4e2e90 | 13,775 | ex | Elixir | clients/you_tube/lib/google_api/you_tube/v3/api/third_party_links.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/you_tube/lib/google_api/you_tube/v3/api/third_party_links.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/you_tube/lib/google_api/you_tube/v3/api/third_party_links.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 45.612583 | 210 | 0.619601 |
5a181403595c5889fcb76cbf63068179476fffa0 | 2,035 | exs | Elixir | test/dynamo/http/case_test.exs | stevedomin/dynamo | 3c28f27603a480d2755a89aba3a91e88df3469ce | [
"Apache-2.0"
] | 415 | 2015-01-04T15:59:47.000Z | 2022-02-02T21:12:46.000Z | test/dynamo/http/case_test.exs | stevedomin/dynamo | 3c28f27603a480d2755a89aba3a91e88df3469ce | [
"Apache-2.0"
] | 9 | 2015-02-06T16:09:46.000Z | 2018-08-08T06:33:50.000Z | test/dynamo/http/case_test.exs | stevedomin/dynamo | 3c28f27603a480d2755a89aba3a91e88df3469ce | [
"Apache-2.0"
] | 44 | 2015-02-01T15:49:50.000Z | 2021-11-29T09:08:37.000Z | defmodule Dynamo.HTTP.CaseTest do
defmodule SessionApp do
use Dynamo
use Dynamo.Router
config :dynamo,
session_store: Session.CookieStore,
session_options:
[ key: "_my_app_session", secret: String.duplicate("1234567890", 8)]
prepare do
conn.fetch(:session)
end
get ... | 25.4375 | 85 | 0.633907 |
5a18393457a947184e049b387384b6534b5a9a3c | 730 | exs | Elixir | apps/forklift/config/dev.exs | PillarTechnology/smartcitiesdata | 9420a26820e38267513cd1bfa82c7f5583222bb1 | [
"Apache-2.0"
] | null | null | null | apps/forklift/config/dev.exs | PillarTechnology/smartcitiesdata | 9420a26820e38267513cd1bfa82c7f5583222bb1 | [
"Apache-2.0"
] | null | null | null | apps/forklift/config/dev.exs | PillarTechnology/smartcitiesdata | 9420a26820e38267513cd1bfa82c7f5583222bb1 | [
"Apache-2.0"
] | null | null | null | use Mix.Config
config :forklift,
topic_writer: MockTopic,
table_writer: MockTable,
message_processing_cadence: 15_000,
user: "forklift"
config :prestige, base_url: "http://127.0.0.1:8080"
config :redix,
args: [host: "localhost"]
config :forklift, :brook,
instance: :forklift,
handlers: [Forklift.E... | 18.717949 | 51 | 0.634247 |
5a185e365c10934536895107b5d0bf2d90c6b9e8 | 1,046 | exs | Elixir | test/test_helper.exs | sashman/bourne | fd5dfe73666f0ee18e9ad447dba2a5dc0fd02917 | [
"Unlicense"
] | null | null | null | test/test_helper.exs | sashman/bourne | fd5dfe73666f0ee18e9ad447dba2a5dc0fd02917 | [
"Unlicense"
] | null | null | null | test/test_helper.exs | sashman/bourne | fd5dfe73666f0ee18e9ad447dba2a5dc0fd02917 | [
"Unlicense"
] | 1 | 2020-03-30T20:47:05.000Z | 2020-03-30T20:47:05.000Z | Logger.configure(level: :info)
# TODO(mtwilliams): Test against other adapters.
Application.put_env(:bourne, Bourne.Test.Repo,
adapter: Ecto.Adapters.Postgres,
url: System.get_env("DATABASE_URL") || "ecto://postgres:postgres@localhost/bourne",
pool: Ecto.Adapters.SQL.Sandbox
)
for file <- ~W{support/repo.exs su... | 32.6875 | 90 | 0.755258 |
5a187f23c5a485d70f662b2bacf65032310f77dc | 882 | ex | Elixir | lib/app/state/orders.ex | wilk/ranciobot | 8951bac59130341b9b96a48a0ed50e3b5c3d13ee | [
"MIT"
] | null | null | null | lib/app/state/orders.ex | wilk/ranciobot | 8951bac59130341b9b96a48a0ed50e3b5c3d13ee | [
"MIT"
] | null | null | null | lib/app/state/orders.ex | wilk/ranciobot | 8951bac59130341b9b96a48a0ed50e3b5c3d13ee | [
"MIT"
] | null | null | null | defmodule App.State.Orders do
use Agent
@initial_state %{}
def start_link() do
Agent.start_link(fn() -> @initial_state end, name: :orders)
end
# add a new dish to the user's order
def add(username, dish) do
Agent.update(:orders, fn(state) ->
Map.update(state, username, [dish], &(&1 ++ [dish]... | 22.615385 | 63 | 0.632653 |
5a1888649c981ac27c132e9c6b3d7fd4c58a3b45 | 1,121 | ex | Elixir | test/support/conn_case.ex | malav2110/oli-torus | 8af64e762a7c8a2058bd27a7ab8e96539ffc055f | [
"MIT"
] | 45 | 2020-04-17T15:40:27.000Z | 2022-03-25T00:13:30.000Z | test/support/conn_case.ex | malav2110/oli-torus | 8af64e762a7c8a2058bd27a7ab8e96539ffc055f | [
"MIT"
] | 944 | 2020-02-13T02:37:01.000Z | 2022-03-31T17:50:07.000Z | test/support/conn_case.ex | malav2110/oli-torus | 8af64e762a7c8a2058bd27a7ab8e96539ffc055f | [
"MIT"
] | 23 | 2020-07-28T03:36:13.000Z | 2022-03-17T14:29:02.000Z | defmodule OliWeb.ConnCase do
@moduledoc """
This module defines the test case to be used by
tests that require setting up a connection.
Such tests rely on `Phoenix.ConnTest` and also
import other functionality to make it easier
to build common data structures and query the data layer.
Finally, if the te... | 26.069767 | 65 | 0.71008 |
5a189465d3c29e642be7fb20e07bf7b5bc1e617f | 618 | ex | Elixir | daniel/prog_elix/ch25/eval/apps/line_sigil/lib/line_sigil.ex | jdashton/glowing-succotash | 44580c2d4cb300e33156d42e358e8a055948a079 | [
"MIT"
] | null | null | null | daniel/prog_elix/ch25/eval/apps/line_sigil/lib/line_sigil.ex | jdashton/glowing-succotash | 44580c2d4cb300e33156d42e358e8a055948a079 | [
"MIT"
] | 1 | 2020-02-26T14:55:23.000Z | 2020-02-26T14:55:23.000Z | daniel/prog_elix/ch25/eval/apps/line_sigil/lib/line_sigil.ex | jdashton/glowing-succotash | 44580c2d4cb300e33156d42e358e8a055948a079 | [
"MIT"
] | null | null | null | defmodule LineSigil do
@doc """
Implement the `~l` sigil, which takes a string containing
multiple lines and returns a list of those lines.
## Example usage
iex> import LineSigil
LineSigil
iex> ~l\"""
...> one
...> two
...> three
...> \"""
["one","two","three"]
... | 17.657143 | 59 | 0.556634 |
5a18d057f515479dfb0c3b0e8111d249f47f7e9e | 491 | ex | Elixir | Inmana/lib/inmana/welcome.ex | Samuel-Ricardo/Inmana | 603d20ecc507eebda24d80fc8216de547b1c5778 | [
"MIT"
] | 5 | 2021-04-19T21:33:31.000Z | 2021-07-14T18:55:36.000Z | Inmana/lib/inmana/welcome.ex | Samuel-Ricardo/Inmana | 603d20ecc507eebda24d80fc8216de547b1c5778 | [
"MIT"
] | null | null | null | Inmana/lib/inmana/welcome.ex | Samuel-Ricardo/Inmana | 603d20ecc507eebda24d80fc8216de547b1c5778 | [
"MIT"
] | null | null | null | defmodule Inmana.Welcomer do
def welcome (%{"name" => name, "age" => age}) do
age = String.to_integer(age)
name
|> String.trim()
|> String.downcase()
|> evaluate(age)
end
defp evaluate("pedro >()", 18) do
{:ok, "You are a very Special Pedro :()"}
end
defp evaluate(_name, age)... | 18.884615 | 71 | 0.574338 |
5a18f4299802e8c1dc0abb298b88c3dd9461ad39 | 1,264 | exs | Elixir | mix.exs | ColaCheng/ex_trends | 0c45e369372fe4f2f428df4f1bebeb0428537059 | [
"MIT"
] | 2 | 2020-03-12T14:25:25.000Z | 2020-03-13T03:12:50.000Z | mix.exs | ColaCheng/ex_trends | 0c45e369372fe4f2f428df4f1bebeb0428537059 | [
"MIT"
] | null | null | null | mix.exs | ColaCheng/ex_trends | 0c45e369372fe4f2f428df4f1bebeb0428537059 | [
"MIT"
] | 1 | 2021-05-05T00:39:49.000Z | 2021-05-05T00:39:49.000Z | defmodule ExTrends.MixProject do
use Mix.Project
@description """
Elixir Google Trends client
"""
@version "0.1.1"
def project do
[
app: :ex_trends,
version: @version,
elixir: "~> 1.6",
start_permanent: Mix.env() == :prod,
deps: deps(),
description: @description,
... | 19.151515 | 64 | 0.512658 |
5a18f964ccdde9655fbbfa7ebdca74205a6cf9e9 | 1,192 | exs | Elixir | clients/container/mix.exs | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/container/mix.exs | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/container/mix.exs | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | defmodule GoogleApi.Container.V1.Mixfile do
use Mix.Project
@version "0.10.0"
def project do
[app: :google_api_container,
version: @version,
elixir: "~> 1.4",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
description: description(),
package: package(),
... | 24.833333 | 149 | 0.61745 |
5a19256e7486893370ed836966c169c7ee3e1f8b | 640 | ex | Elixir | gen/envoy/api/v2/ratelimit/ratelimit.pb.ex | aclemmensen/relay | 4bce71ed7d8bd4936f96d62ed08d007729c4253d | [
"BSD-3-Clause"
] | 5 | 2018-10-12T13:13:19.000Z | 2020-10-03T17:51:37.000Z | gen/envoy/api/v2/ratelimit/ratelimit.pb.ex | aclemmensen/relay | 4bce71ed7d8bd4936f96d62ed08d007729c4253d | [
"BSD-3-Clause"
] | 207 | 2018-02-09T14:24:14.000Z | 2020-07-25T11:09:19.000Z | gen/envoy/api/v2/ratelimit/ratelimit.pb.ex | aclemmensen/relay | 4bce71ed7d8bd4936f96d62ed08d007729c4253d | [
"BSD-3-Clause"
] | 1 | 2019-08-08T11:30:59.000Z | 2019-08-08T11:30:59.000Z | defmodule Envoy.Api.V2.Ratelimit.RateLimitDescriptor do
@moduledoc false
use Protobuf, syntax: :proto3
@type t :: %__MODULE__{
entries: [Envoy.Api.V2.Ratelimit.RateLimitDescriptor.Entry.t()]
}
defstruct [:entries]
field :entries, 1, repeated: true, type: Envoy.Api.V2.Ratelimit.RateLimitDes... | 24.615385 | 91 | 0.673438 |
5a192b12f0be608c0283434859edbf249a962ec7 | 5,473 | ex | Elixir | clients/dataproc/lib/google_api/dataproc/v1/model/policy.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/dataproc/lib/google_api/dataproc/v1/model/policy.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/dataproc/lib/google_api/dataproc/v1/model/policy.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 55.282828 | 806 | 0.725562 |
5a1933351c91dfbb71e80c36c77198e42c553f51 | 1,561 | ex | Elixir | test/support/model_case.ex | voidlock/ssl_bench | 49dcea2ea8596cfcc7073df90d42536c168351c3 | [
"MIT"
] | null | null | null | test/support/model_case.ex | voidlock/ssl_bench | 49dcea2ea8596cfcc7073df90d42536c168351c3 | [
"MIT"
] | null | null | null | test/support/model_case.ex | voidlock/ssl_bench | 49dcea2ea8596cfcc7073df90d42536c168351c3 | [
"MIT"
] | null | null | null | defmodule SslBench.ModelCase do
@moduledoc """
This module defines the test case to be used by
model tests.
You may define functions here to be used as helpers in
your model tests. See `errors_on/2`'s definition as reference.
Finally, if the test case interacts with the database,
it cannot be async. For... | 26.016667 | 81 | 0.689942 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.