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
c8f4d8f4aa226c4af7a6aa5f718f1c829f59520d
540
exs
Elixir
test/test_helper.exs
rtvu/define_constants
538ab09c6a4505ba3110aeabf1c308942452ddd2
[ "MIT" ]
null
null
null
test/test_helper.exs
rtvu/define_constants
538ab09c6a4505ba3110aeabf1c308942452ddd2
[ "MIT" ]
null
null
null
test/test_helper.exs
rtvu/define_constants
538ab09c6a4505ba3110aeabf1c308942452ddd2
[ "MIT" ]
null
null
null
ExUnit.start() # Testing macro exception # https://elixirforum.com/t/testing-macro-exception/7105 defmodule CompileTimeAssertions do defmodule DidNotRaise, do: defstruct(message: nil) defmacro assert_compile_time_raise(expected_exception, quoted) do actual_exception = try do Module.eval_quoted(_...
23.478261
81
0.705556
c8f4e80690b9edb73e633b6e23a4ea166e5f28b2
135
ex
Elixir
lib/jabbax/document/relationship.ex
surgeventures/jabbax
69c90ef620c5a44705015601e5f5a4dd739bd593
[ "MIT" ]
14
2017-03-20T12:43:20.000Z
2021-11-24T13:19:16.000Z
lib/jabbax/document/relationship.ex
surgeventures/jabbax
69c90ef620c5a44705015601e5f5a4dd739bd593
[ "MIT" ]
3
2017-04-27T15:00:33.000Z
2022-02-14T11:45:53.000Z
lib/jabbax/document/relationship.ex
surgeventures/jabbax
69c90ef620c5a44705015601e5f5a4dd739bd593
[ "MIT" ]
1
2019-09-09T13:57:58.000Z
2019-09-09T13:57:58.000Z
defmodule Jabbax.Document.Relationship do @moduledoc false defstruct data: nil, links: %{}, meta: %{} end
16.875
41
0.585185
c8f4e91d5d6ef44281339a9a349e6f4ca8e9711f
2,152
exs
Elixir
test/day_04_giant_squid_test.exs
scmx/advent-of-code-2021-elixir
5712c62947e3d5266deebee11ab59f2d803edbe3
[ "MIT" ]
null
null
null
test/day_04_giant_squid_test.exs
scmx/advent-of-code-2021-elixir
5712c62947e3d5266deebee11ab59f2d803edbe3
[ "MIT" ]
null
null
null
test/day_04_giant_squid_test.exs
scmx/advent-of-code-2021-elixir
5712c62947e3d5266deebee11ab59f2d803edbe3
[ "MIT" ]
null
null
null
defmodule Adventofcode.Day04GiantSquidTest do use Adventofcode.FancyCase import Adventofcode.Day04GiantSquid alias Adventofcode.Day04GiantSquid.{Board, Parser} @example """ 7,4,9,5,11,17,23,2,0,14,21,24,10,16,13,6,15,25,12,22,18,20,8,19,3,26,1 22 13 17 11 0 8 2 23 4 24 21 9 14 16 7 6 10 3 ...
23.911111
97
0.563197
c8f51d9b217ebd225e9091d2d92e4ec3d46a634a
1,118
ex
Elixir
lib/cog/command/service/chat.ex
matusf/cog
71708301c7dc570fb0d3498a50f47a70ef957788
[ "Apache-2.0" ]
1,003
2016-02-23T17:21:12.000Z
2022-02-20T14:39:35.000Z
lib/cog/command/service/chat.ex
matusf/cog
71708301c7dc570fb0d3498a50f47a70ef957788
[ "Apache-2.0" ]
906
2016-02-22T22:54:19.000Z
2022-03-11T15:19:43.000Z
lib/cog/command/service/chat.ex
matusf/cog
71708301c7dc570fb0d3498a50f47a70ef957788
[ "Apache-2.0" ]
95
2016-02-23T13:42:31.000Z
2021-11-30T14:39:55.000Z
defmodule Cog.Command.Service.Chat do require Logger alias Cog.Chat.Adapter def send_message(destination, message) do {:ok, provider} = Cog.Util.Misc.chat_provider_module case build_target(provider, destination) do {:ok, target} -> Cog.Chat.Adapter.send(provider, target, message, %{origin...
28.666667
91
0.63059
c8f561abbc33c101f8e8935ea103d85801d2a4ec
1,992
ex
Elixir
clients/container_analysis/lib/google_api/container_analysis/v1/model/non_compliant_file.ex
MMore/elixir-google-api
0574ec1439d9bbfe22d63965be1681b0f45a94c9
[ "Apache-2.0" ]
null
null
null
clients/container_analysis/lib/google_api/container_analysis/v1/model/non_compliant_file.ex
MMore/elixir-google-api
0574ec1439d9bbfe22d63965be1681b0f45a94c9
[ "Apache-2.0" ]
null
null
null
clients/container_analysis/lib/google_api/container_analysis/v1/model/non_compliant_file.ex
MMore/elixir-google-api
0574ec1439d9bbfe22d63965be1681b0f45a94c9
[ "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...
37.584906
250
0.721386
c8f5b7649be0472615848d69681928bb96da0d43
3,774
ex
Elixir
lib/zabbix/api/client.ex
ileamo/zabbix
5a8c7c798f264b0d2a5843c473f99c3e88b7940f
[ "MIT" ]
null
null
null
lib/zabbix/api/client.ex
ileamo/zabbix
5a8c7c798f264b0d2a5843c473f99c3e88b7940f
[ "MIT" ]
null
null
null
lib/zabbix/api/client.ex
ileamo/zabbix
5a8c7c798f264b0d2a5843c473f99c3e88b7940f
[ "MIT" ]
null
null
null
defmodule Zabbix.API.Client do @moduledoc false use Agent @endpoint "/api_jsonrpc.php" def start_link(_) do Agent.start_link(&init/0, name: __MODULE__) end defp init() do %{client: nil, token: nil, id: 1} end defp init(_, %Tesla.Client{} = client) do %{client: client, token: nil, id: 1}...
27.151079
144
0.6407
c8f5ecf4bca709e9933d75a16702a7c5fcac2698
7,444
ex
Elixir
lib/resx/producer.ex
ScrimpyCat/Resx
b7ed996a6202ecaa6e411ebd989198e16d97719d
[ "BSD-2-Clause" ]
null
null
null
lib/resx/producer.ex
ScrimpyCat/Resx
b7ed996a6202ecaa6e411ebd989198e16d97719d
[ "BSD-2-Clause" ]
null
null
null
lib/resx/producer.ex
ScrimpyCat/Resx
b7ed996a6202ecaa6e411ebd989198e16d97719d
[ "BSD-2-Clause" ]
null
null
null
defmodule Resx.Producer do @moduledoc """ A producer is an interface for working with a referenceable resource. This could be anything from a type of storage or networking protocol, to generation of content (e.g. you might expose some procedural generation algorithm as a producer), to manip...
40.677596
195
0.636351
c8f611036188243bc57e5f059288738b11540182
2,077
ex
Elixir
web/models/artist.ex
ImpossibilityLabs/artheon
2fd1284c8bd087107e56432ebefc3345db10e60e
[ "Apache-2.0" ]
null
null
null
web/models/artist.ex
ImpossibilityLabs/artheon
2fd1284c8bd087107e56432ebefc3345db10e60e
[ "Apache-2.0" ]
null
null
null
web/models/artist.ex
ImpossibilityLabs/artheon
2fd1284c8bd087107e56432ebefc3345db10e60e
[ "Apache-2.0" ]
null
null
null
defmodule Artheon.Artist do use Artheon.Web, :model @gender_female 0 @gender_male 1 @gender_unknown 2 schema "artists" do field :uid, :string field :name, :string field :slug, :string field :nationality, :string field :birthday, :integer field :gender, :integer field :hometown, :...
24.435294
67
0.648532
c8f6156aa0df8776e713afc20dab531ac509671d
2,010
ex
Elixir
clients/container_analysis/lib/google_api/container_analysis/v1alpha1/model/basis.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/container_analysis/lib/google_api/container_analysis/v1alpha1/model/basis.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/container_analysis/lib/google_api/container_analysis/v1alpha1/model/basis.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...
36.545455
143
0.746269
c8f62af971c6dea68c5f58eff1914aa7e55a6ad4
3,057
exs
Elixir
test/mix/tasks/ecto.migrations_test.exs
hauleth/ecto_sql
1d7f4b73bfa04e02a26bba8b3ea79a457850af0f
[ "Apache-2.0" ]
4
2019-06-26T22:43:55.000Z
2020-01-19T17:37:07.000Z
test/mix/tasks/ecto.migrations_test.exs
hauleth/ecto_sql
1d7f4b73bfa04e02a26bba8b3ea79a457850af0f
[ "Apache-2.0" ]
3
2019-07-15T06:54:40.000Z
2020-02-09T16:36:44.000Z
test/mix/tasks/ecto.migrations_test.exs
hauleth/ecto_sql
1d7f4b73bfa04e02a26bba8b3ea79a457850af0f
[ "Apache-2.0" ]
15
2019-01-15T18:17:44.000Z
2020-01-12T03:52:35.000Z
defmodule Mix.Tasks.Ecto.MigrationsTest do use ExUnit.Case import Mix.Tasks.Ecto.Migrations, only: [run: 3] import Support.FileHelpers migrations_path = Path.join([tmp_path(), inspect(Ecto.Migrations), "migrations"]) setup do File.mkdir_p!(unquote(migrations_path)) :ok end defmodule Repo do ...
27.294643
88
0.578999
c8f632b0ac31e581d261b4a8b0692c2c40136cd5
584
exs
Elixir
test/unit/hologram/template/renderers/expression_test.exs
gregjohnsonsaltaire/hologram
aa8e9ea0d599def864c263cc37cc8ee31f02ac4a
[ "MIT" ]
40
2022-01-19T20:27:36.000Z
2022-03-31T18:17:41.000Z
test/unit/hologram/template/renderers/expression_test.exs
gregjohnsonsaltaire/hologram
aa8e9ea0d599def864c263cc37cc8ee31f02ac4a
[ "MIT" ]
42
2022-02-03T22:52:43.000Z
2022-03-26T20:57:32.000Z
test/unit/hologram/template/renderers/expression_test.exs
gregjohnsonsaltaire/hologram
aa8e9ea0d599def864c263cc37cc8ee31f02ac4a
[ "MIT" ]
3
2022-02-10T04:00:37.000Z
2022-03-08T22:07:45.000Z
defmodule Hologram.Template.Renderer.ExpressionTest do use Hologram.Test.UnitCase, async: true alias Hologram.Compiler.IR.ModuleAttributeOperator alias Hologram.Compiler.IR.TupleType alias Hologram.Conn alias Hologram.Template.Renderer alias Hologram.Template.VDOM.Expression test "render/4" do expre...
23.36
59
0.696918
c8f64a4e8e9dd050c041e941b3e42d1676897918
3,259
ex
Elixir
clients/tool_results/lib/google_api/tool_results/v1beta3/model/test_suite_overview.ex
nuxlli/elixir-google-api
ecb8679ac7282b7dd314c3e20c250710ec6a7870
[ "Apache-2.0" ]
null
null
null
clients/tool_results/lib/google_api/tool_results/v1beta3/model/test_suite_overview.ex
nuxlli/elixir-google-api
ecb8679ac7282b7dd314c3e20c250710ec6a7870
[ "Apache-2.0" ]
null
null
null
clients/tool_results/lib/google_api/tool_results/v1beta3/model/test_suite_overview.ex
nuxlli/elixir-google-api
ecb8679ac7282b7dd314c3e20c250710ec6a7870
[ "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...
51.730159
325
0.738263
c8f6b2b6658eb70e7647a83f028a4ba2ae5e7f78
267
ex
Elixir
lib/temple/parsers/empty.ex
rktjmp/temple
6fe46cbb4998477d76147fa95c9fd9c7841545ef
[ "MIT" ]
null
null
null
lib/temple/parsers/empty.ex
rktjmp/temple
6fe46cbb4998477d76147fa95c9fd9c7841545ef
[ "MIT" ]
null
null
null
lib/temple/parsers/empty.ex
rktjmp/temple
6fe46cbb4998477d76147fa95c9fd9c7841545ef
[ "MIT" ]
null
null
null
defmodule Temple.Parser.Empty do @moduledoc false @behaviour Temple.Parser alias Temple.Parser @impl Parser def applicable?(ast) when ast in [nil, []], do: true def applicable?(_), do: false @impl Parser def run(_ast, _buffer) do :ok end end
16.6875
54
0.681648
c8f6c4dabaf41556383c41ff199241dd9fdaf814
4,366
exs
Elixir
kousa/test/broth/_message/room/update_test.exs
jobveldhuis/dogehouse
78afa9a62f9b243bbdb3a94ae452c08c21b6df40
[ "MIT" ]
2
2021-05-15T12:46:12.000Z
2021-05-15T14:15:16.000Z
kousa/test/broth/_message/room/update_test.exs
jobveldhuis/dogehouse
78afa9a62f9b243bbdb3a94ae452c08c21b6df40
[ "MIT" ]
null
null
null
kousa/test/broth/_message/room/update_test.exs
jobveldhuis/dogehouse
78afa9a62f9b243bbdb3a94ae452c08c21b6df40
[ "MIT" ]
null
null
null
defmodule BrothTest.Message.Room.UpdateTest do use ExUnit.Case, async: true use KousaTest.Support.EctoSandbox @moduletag :message alias Beef.Schemas.User alias Beef.Schemas.Room alias Broth.Message.Room.Update alias KousaTest.Support.Factory setup do user = Factory.create(User) _room = Factor...
32.340741
97
0.460605
c8f6df8e81fa2f5971631d7d2a03ed0731ed4d9e
2,332
ex
Elixir
clients/language/lib/google_api/language/v1/model/status.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/language/lib/google_api/language/v1/model/status.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/language/lib/google_api/language/v1/model/status.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...
37.612903
134
0.710978
c8f6f8805a4a325b2e4f21769acd9fae2f4cd331
1,409
ex
Elixir
lib/singyeong/gateway/handler/dispatch_event.ex
queer/singyeong
3d2f5c1052100ed70bb3a4dddd8e22e3ef0df15a
[ "BSD-3-Clause" ]
70
2018-10-25T06:06:37.000Z
2022-03-14T19:51:56.000Z
lib/singyeong/gateway/handler/dispatch_event.ex
queer/singyeong
3d2f5c1052100ed70bb3a4dddd8e22e3ef0df15a
[ "BSD-3-Clause" ]
140
2019-02-19T06:52:59.000Z
2022-03-01T11:13:41.000Z
lib/singyeong/gateway/handler/dispatch_event.ex
queer/singyeong
3d2f5c1052100ed70bb3a4dddd8e22e3ef0df15a
[ "BSD-3-Clause" ]
9
2019-03-20T12:17:28.000Z
2021-03-11T18:51:00.000Z
defmodule Singyeong.Gateway.Handler.DispatchEvent do @moduledoc false use Singyeong.Gateway.Handler alias Singyeong.Gateway.{Dispatch, Pipeline} def handle(socket, payload) do dispatch_type = payload.t if Dispatch.can_dispatch?(socket, dispatch_type) do processed_payload = Pipeline.process_event...
27.096154
109
0.64088
c8f72eb0488068c9e4173cbe9198e9fe186bf2b8
1,361
exs
Elixir
mix.exs
donatoaz/oauth2_example
9692dae4fbf636dd423907116c672e3298dea84b
[ "MIT" ]
null
null
null
mix.exs
donatoaz/oauth2_example
9692dae4fbf636dd423907116c672e3298dea84b
[ "MIT" ]
null
null
null
mix.exs
donatoaz/oauth2_example
9692dae4fbf636dd423907116c672e3298dea84b
[ "MIT" ]
1
2020-04-15T13:07:06.000Z
2020-04-15T13:07:06.000Z
defmodule OAuth2Example.Mixfile do use Mix.Project def project do [app: :oauth2_example, version: "0.0.1", elixir: "~> 1.0", elixirc_paths: elixirc_paths(Mix.env), compilers: [:phoenix] ++ Mix.compilers, build_embedded: Mix.env == :prod, start_permanent: Mix.env == :prod, dep...
27.77551
78
0.590007
c8f74aa27c4eeb8ebef2c3865ed49ada097b8684
1,654
exs
Elixir
config/dev.exs
GleisonAndrade/easiest_api
d30298974fbd0d2538ba25ab1a43e125ea4cf6bf
[ "Apache-2.0" ]
null
null
null
config/dev.exs
GleisonAndrade/easiest_api
d30298974fbd0d2538ba25ab1a43e125ea4cf6bf
[ "Apache-2.0" ]
null
null
null
config/dev.exs
GleisonAndrade/easiest_api
d30298974fbd0d2538ba25ab1a43e125ea4cf6bf
[ "Apache-2.0" ]
null
null
null
use Mix.Config # Configure your database config :easiest, EasiestApp.Repo, username: "postgres", password: "root", database: "easiest_dev", hostname: "localhost", show_sensitive_data_on_connection_error: true, pool_size: 10 # For development, we disable any cache and enable # debugging and code reloading....
28.517241
68
0.726723
c8f763d0061599e560a59f8d9e59d551db2a7307
4,539
ex
Elixir
clients/cloud_tasks/lib/google_api/cloud_tasks/v2beta2/model/task.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/cloud_tasks/lib/google_api/cloud_tasks/v2beta2/model/task.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/cloud_tasks/lib/google_api/cloud_tasks/v2beta2/model/task.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...
43.644231
181
0.696409
c8f790e4618337ebea5b6fb2052c341820e3651f
932
exs
Elixir
test/cli_test.exs
adamtew/elixir-issues
3b12eee180a4ef5cb8e226c1c5d08269fd9a24f2
[ "MIT" ]
null
null
null
test/cli_test.exs
adamtew/elixir-issues
3b12eee180a4ef5cb8e226c1c5d08269fd9a24f2
[ "MIT" ]
null
null
null
test/cli_test.exs
adamtew/elixir-issues
3b12eee180a4ef5cb8e226c1c5d08269fd9a24f2
[ "MIT" ]
null
null
null
defmodule CliTest do use ExUnit.Case doctest Issues import Issues.Cli, only: [parse_args: 1, sort_into_ascending_order: 1] test ":help returned by option parsing with -h and --help options" do assert parse_args(["-h", "anything"]) == :help assert parse_args(["--help", "anything"]) == :help end te...
31.066667
77
0.657725
c8f7abb5cce913703fa712449848a9a7e8c56747
1,801
ex
Elixir
clients/android_enterprise/lib/google_api/android_enterprise/v1/model/enterprise_account.ex
nuxlli/elixir-google-api
ecb8679ac7282b7dd314c3e20c250710ec6a7870
[ "Apache-2.0" ]
null
null
null
clients/android_enterprise/lib/google_api/android_enterprise/v1/model/enterprise_account.ex
nuxlli/elixir-google-api
ecb8679ac7282b7dd314c3e20c250710ec6a7870
[ "Apache-2.0" ]
null
null
null
clients/android_enterprise/lib/google_api/android_enterprise/v1/model/enterprise_account.ex
nuxlli/elixir-google-api
ecb8679ac7282b7dd314c3e20c250710ec6a7870
[ "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.313725
158
0.748473
c8f7ff1885e567b66836bcdbc1686a6aa0c57b9b
1,209
ex
Elixir
clients/tpu/lib/google_api/tpu/v1/model/stop_node_request.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/tpu/lib/google_api/tpu/v1/model/stop_node_request.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/tpu/lib/google_api/tpu/v1/model/stop_node_request.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "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...
28.785714
74
0.754342
c8f824db2f076f652f25086f3dbb78108090318c
282
exs
Elixir
priv/repo/migrations/20180602015634_add_generated_slug.exs
netsudo/hexedio
3e0e1ff7cfffcd704ba60394d0a38c4d8608e100
[ "MIT" ]
null
null
null
priv/repo/migrations/20180602015634_add_generated_slug.exs
netsudo/hexedio
3e0e1ff7cfffcd704ba60394d0a38c4d8608e100
[ "MIT" ]
3
2020-07-16T05:37:16.000Z
2022-03-16T08:58:28.000Z
priv/repo/migrations/20180602015634_add_generated_slug.exs
netsudo/hexedio
3e0e1ff7cfffcd704ba60394d0a38c4d8608e100
[ "MIT" ]
null
null
null
defmodule Hexedio.Repo.Migrations.AddGeneratedSlug do use Ecto.Migration # Generated with "mix ecto.gen.migration generate_slug" def change do alter table(:posts) do add :slug, :string end create unique_index(:posts, [:slug]) # Should be unique end end
20.142857
59
0.70922
c8f863673fabc0e846bbb996a53e83e3d4b3183b
767
ex
Elixir
test/support/channel_case.ex
leandrocp/diff
be6d57be5a2dbbc6d117cc4686cad3a3f4a3e46b
[ "Apache-2.0" ]
59
2020-01-20T20:32:31.000Z
2022-02-11T07:25:45.000Z
test/support/channel_case.ex
leandrocp/diff
be6d57be5a2dbbc6d117cc4686cad3a3f4a3e46b
[ "Apache-2.0" ]
33
2020-01-20T19:38:09.000Z
2021-11-19T10:08:25.000Z
test/support/channel_case.ex
leandrocp/diff
be6d57be5a2dbbc6d117cc4686cad3a3f4a3e46b
[ "Apache-2.0" ]
12
2020-01-20T21:11:14.000Z
2021-05-10T19:56:47.000Z
defmodule DiffWeb.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 interacts with...
23.96875
59
0.724902
c8f87ed49ffcefbb2a2f3b9c1d440aa9aef47341
14,445
ex
Elixir
clients/spanner/lib/google_api/spanner/v1/model/transaction_options.ex
mcrumm/elixir-google-api
544f22797cec52b3a23dfb6e39117f0018448610
[ "Apache-2.0" ]
null
null
null
clients/spanner/lib/google_api/spanner/v1/model/transaction_options.ex
mcrumm/elixir-google-api
544f22797cec52b3a23dfb6e39117f0018448610
[ "Apache-2.0" ]
null
null
null
clients/spanner/lib/google_api/spanner/v1/model/transaction_options.ex
mcrumm/elixir-google-api
544f22797cec52b3a23dfb6e39117f0018448610
[ "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...
272.54717
12,026
0.808377
c8f89f0187182806df192f1663e08b8b97f8cf16
3,784
exs
Elixir
apps/artemis_web/test/artemis_web/browser/event_instance_page_test.exs
artemis-platform/artemis_teams
9930c3d9528e37b76f0525390e32b66eed7eadde
[ "MIT" ]
2
2020-04-23T02:29:18.000Z
2020-07-07T13:13:17.000Z
apps/artemis_web/test/artemis_web/browser/event_instance_page_test.exs
chrislaskey/artemis_teams
9930c3d9528e37b76f0525390e32b66eed7eadde
[ "MIT" ]
4
2020-04-26T20:35:36.000Z
2020-11-10T22:13:19.000Z
apps/artemis_web/test/artemis_web/browser/event_instance_page_test.exs
chrislaskey/artemis_teams
9930c3d9528e37b76f0525390e32b66eed7eadde
[ "MIT" ]
null
null
null
defmodule ArtemisWeb.EventInstancePageTest do use ArtemisWeb.ConnCase use ExUnit.Case use Hound.Helpers import Artemis.Factories import ArtemisWeb.BrowserHelpers import ArtemisWeb.Router.Helpers @moduletag :browser hound_session() describe "authentication" do test "requires authentication" do ...
23.358025
107
0.677061
c8f8b37ca3db638702434a8c800662f6b7f2ef8f
75
exs
Elixir
test/test_helper.exs
MarvinKweyu/LiveViewTodos
89c48d1692be56d50c779587cac4e6a654c68919
[ "MIT" ]
null
null
null
test/test_helper.exs
MarvinKweyu/LiveViewTodos
89c48d1692be56d50c779587cac4e6a654c68919
[ "MIT" ]
null
null
null
test/test_helper.exs
MarvinKweyu/LiveViewTodos
89c48d1692be56d50c779587cac4e6a654c68919
[ "MIT" ]
null
null
null
ExUnit.start() Ecto.Adapters.SQL.Sandbox.mode(LiveViewTodos.Repo, :manual)
25
59
0.8
c8f8b60b3dab1da2dbeb97ad9343c130db7eedac
564
exs
Elixir
config/dev.exs
appcues/elixometer
1f95425d8e1df02edd0b267c57c6d579d45c4c8d
[ "Apache-2.0" ]
900
2015-12-18T20:40:12.000Z
2022-03-27T08:22:51.000Z
config/dev.exs
appcues/elixometer
1f95425d8e1df02edd0b267c57c6d579d45c4c8d
[ "Apache-2.0" ]
126
2015-12-19T17:02:57.000Z
2022-03-23T18:43:27.000Z
config/dev.exs
appcues/elixometer
1f95425d8e1df02edd0b267c57c6d579d45c4c8d
[ "Apache-2.0" ]
76
2015-12-18T21:55:52.000Z
2021-04-10T14:15:59.000Z
use Mix.Config config :exometer_core, report: [reporters: []] config :lager, log_root: 'log', handlers: [ lager_console_backend: [level: :info], lager_file_backend: [ file: 'error.log', level: :error, formatter: :lager_default_formatter, formatter_config: [:date, " ", :time, " [", ...
24.521739
92
0.634752
c8f8dbedabe7edde3914f6a4f3144633c33cdf75
2,696
ex
Elixir
clients/digital_asset_links/lib/google_api/digital_asset_links/v1/model/web_asset.ex
nuxlli/elixir-google-api
ecb8679ac7282b7dd314c3e20c250710ec6a7870
[ "Apache-2.0" ]
null
null
null
clients/digital_asset_links/lib/google_api/digital_asset_links/v1/model/web_asset.ex
nuxlli/elixir-google-api
ecb8679ac7282b7dd314c3e20c250710ec6a7870
[ "Apache-2.0" ]
null
null
null
clients/digital_asset_links/lib/google_api/digital_asset_links/v1/model/web_asset.ex
nuxlli/elixir-google-api
ecb8679ac7282b7dd314c3e20c250710ec6a7870
[ "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...
56.166667
1,331
0.709199
c8f8ddd43c8caf5341bb605caa06450fb95ffbda
490
ex
Elixir
lib/mcc/rpc/builder.ex
getong/mcc
5e4dd398a7f5ac0869aa8208724ee1c4b2a9df40
[ "Apache-2.0" ]
13
2019-02-28T05:24:35.000Z
2021-11-10T16:39:07.000Z
lib/mcc/rpc/builder.ex
getong/mcc
5e4dd398a7f5ac0869aa8208724ee1c4b2a9df40
[ "Apache-2.0" ]
1
2019-03-02T16:20:26.000Z
2019-03-15T09:18:57.000Z
lib/mcc/rpc/builder.ex
getong/mcc
5e4dd398a7f5ac0869aa8208724ee1c4b2a9df40
[ "Apache-2.0" ]
2
2019-02-28T00:00:02.000Z
2019-08-15T13:55:17.000Z
defmodule Mcc.Rpc.Builder do @moduledoc """ Macro for building RPC easily """ defmacro rpc(operation) do {operation_name, o_1, operation_params} = operation new_operation = {String.to_atom("rpc_#{operation_name}"), o_1, operation_params} quote do def unquote(new_operation) do params ...
23.333333
84
0.691837
c8f8f1d7f37386cc7f3cc3f37dd766730a6d85db
755
ex
Elixir
lib/cldr/number/backend/compiler.ex
jeroenvisser101/cldr_numbers
9a529817fe8d9f61be330fa970a5a0ffa443a177
[ "Apache-2.0" ]
21
2019-12-21T23:25:14.000Z
2022-03-22T00:40:34.000Z
lib/cldr/number/backend/compiler.ex
jeroenvisser101/cldr_numbers
9a529817fe8d9f61be330fa970a5a0ffa443a177
[ "Apache-2.0" ]
15
2019-06-14T16:29:23.000Z
2022-03-02T07:56:33.000Z
lib/cldr/number/backend/compiler.ex
jeroenvisser101/cldr_numbers
9a529817fe8d9f61be330fa970a5a0ffa443a177
[ "Apache-2.0" ]
7
2017-10-05T11:35:36.000Z
2018-08-20T12:17:03.000Z
defmodule Cldr.Number.Backend do @moduledoc false def define_number_modules(config) do quote location: :keep do unquote(Cldr.Number.Backend.Number.define_number_module(config)) unquote(Cldr.Number.Backend.Format.define_number_module(config)) unquote(Cldr.Number.Backend.Transliterate.define_nu...
39.736842
81
0.776159
c8f8f33ec0be3e4ec6e3072abfe2d2a8633d380b
211
ex
Elixir
lib/example_and_and.ex
aforward/fn_expr
b2eba09a0caff50255c8fdafe1ec5e2f1e0601d3
[ "MIT" ]
2
2017-08-17T18:45:11.000Z
2020-04-05T14:15:20.000Z
lib/example_and_and.ex
aforward/fn_expr
b2eba09a0caff50255c8fdafe1ec5e2f1e0601d3
[ "MIT" ]
null
null
null
lib/example_and_and.ex
aforward/fn_expr
b2eba09a0caff50255c8fdafe1ec5e2f1e0601d3
[ "MIT" ]
null
null
null
defmodule FnExpr.ExampleAndAnd do require FnExpr @moduledoc false def combine(atom) do atom |> FnExpr.&&(Atom.to_string(&1) <> "__post") |> FnExpr.&&(String.to_atom("pre__" <> &1)) end end
17.583333
48
0.635071
c8f8f63bff23b433977783b6b4d8d0c4079fcc58
4,255
ex
Elixir
messages/elixir/lib/cucumber_messages/generated/elixir_cucumber_messages_location.ex
alvivi/cucumber
647e4c9a46d441fb6d86b22138ad44580d500f75
[ "MIT" ]
1
2021-01-22T09:13:21.000Z
2021-01-22T09:13:21.000Z
messages/elixir/lib/cucumber_messages/generated/elixir_cucumber_messages_location.ex
alvivi/cucumber
647e4c9a46d441fb6d86b22138ad44580d500f75
[ "MIT" ]
null
null
null
messages/elixir/lib/cucumber_messages/generated/elixir_cucumber_messages_location.ex
alvivi/cucumber
647e4c9a46d441fb6d86b22138ad44580d500f75
[ "MIT" ]
null
null
null
# credo:disable-for-this-file defmodule(CucumberMessages.Location) do @moduledoc(false) ( defstruct(line: 0, column: 0, __uf__: []) ( @spec(encode(struct) :: {:ok, iodata} | {:error, any}) def(encode(msg)) do try do {:ok, encode!(msg)} rescue e -> ...
32.480916
116
0.533255
c8f93d73746b1a558ef76436e92f409c257ab73d
11,742
ex
Elixir
lib/mix/lib/mix/tasks/compile.app.ex
mattwwatson/elixir
8bd47b6cdd11aa893fc1625801429595f756eaf0
[ "Apache-2.0" ]
null
null
null
lib/mix/lib/mix/tasks/compile.app.ex
mattwwatson/elixir
8bd47b6cdd11aa893fc1625801429595f756eaf0
[ "Apache-2.0" ]
null
null
null
lib/mix/lib/mix/tasks/compile.app.ex
mattwwatson/elixir
8bd47b6cdd11aa893fc1625801429595f756eaf0
[ "Apache-2.0" ]
null
null
null
defmodule Mix.Tasks.Compile.App do use Mix.Task.Compiler @recursive true @moduledoc """ Writes an .app file. An `.app` file is a file containing Erlang terms that defines your application. Mix automatically generates this file based on your `mix.exs` configuration. In order to generate the `.app` fi...
32.436464
108
0.635837
c8f96709f3e4a0e7eafd9e32f7b00981aaea884d
1,234
ex
Elixir
apps/jetlog_web/test/support/conn_case.ex
jvdvleuten/jetlog
916ebaa4c163279c078ebe0a7c0e14f7d0a3c3f2
[ "Apache-2.0" ]
null
null
null
apps/jetlog_web/test/support/conn_case.ex
jvdvleuten/jetlog
916ebaa4c163279c078ebe0a7c0e14f7d0a3c3f2
[ "Apache-2.0" ]
null
null
null
apps/jetlog_web/test/support/conn_case.ex
jvdvleuten/jetlog
916ebaa4c163279c078ebe0a7c0e14f7d0a3c3f2
[ "Apache-2.0" ]
null
null
null
defmodule JetlogWeb.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...
28.045455
68
0.722853
c8f970cc51df1cfb7c06fd4150f4b061504aee6a
615
ex
Elixir
lib/resource_cache/sources/cache.ex
IanLuites/resource_cache
95fc2a2310e3a0714a421c761a784054d1cbf0d1
[ "MIT" ]
3
2020-11-02T18:01:58.000Z
2020-11-06T23:25:04.000Z
lib/resource_cache/sources/cache.ex
IanLuites/resource_cache
95fc2a2310e3a0714a421c761a784054d1cbf0d1
[ "MIT" ]
null
null
null
lib/resource_cache/sources/cache.ex
IanLuites/resource_cache
95fc2a2310e3a0714a421c761a784054d1cbf0d1
[ "MIT" ]
null
null
null
defmodule ResourceCache.Sources.Cache do use ResourceCache.Source, type: :interrupt @impl ResourceCache.Source def fingerprint(cache, opts) def fingerprint(_cache, opts), do: opts[:cache] @impl ResourceCache.Source def init(cache, fingerprint, opts) def init(_cache, fingerprint, _opts), do: fingerp...
27.954545
63
0.756098
c8f9712dc19673e481eaedd0bd8b070352c06af5
6,532
ex
Elixir
lib/console/devices/device_resolver.ex
helium/console
c6912b521926455ee0d4172dbd8e8183bdbae186
[ "Apache-2.0" ]
83
2018-05-31T14:49:10.000Z
2022-03-27T16:49:49.000Z
lib/console/devices/device_resolver.ex
helium/console
c6912b521926455ee0d4172dbd8e8183bdbae186
[ "Apache-2.0" ]
267
2018-05-22T23:19:02.000Z
2022-03-31T04:31:06.000Z
lib/console/devices/device_resolver.ex
helium/console
c6912b521926455ee0d4172dbd8e8183bdbae186
[ "Apache-2.0" ]
18
2018-11-20T05:15:54.000Z
2022-03-28T08:20:13.000Z
defmodule Console.Devices.DeviceResolver do alias Console.Repo alias Console.Devices.Device alias Console.Helpers alias Console.Devices.DeviceImports alias Console.Events.Event alias Console.Labels alias Console.Labels.DevicesLabels import Ecto.Query alias Console.Alerts def paginate(%{page: page, ...
34.020833
292
0.644979
c8f97137324fa687485ab980fdc1335ea6e9e200
948
exs
Elixir
apps/ae_channel_interface/test/channel_interface_web/channels/socket_connector_channel_test.exs
davidyuk/ae-channel-service
bfde1d3e6ca4fc6bcc4a387381d4838cd3f1ec42
[ "0BSD" ]
9
2019-04-24T17:21:18.000Z
2021-07-19T16:41:33.000Z
apps/ae_channel_interface/test/channel_interface_web/channels/socket_connector_channel_test.exs
davidyuk/ae-channel-service
bfde1d3e6ca4fc6bcc4a387381d4838cd3f1ec42
[ "0BSD" ]
68
2019-08-06T09:25:13.000Z
2021-03-10T11:04:41.000Z
apps/ae_channel_interface/test/channel_interface_web/channels/socket_connector_channel_test.exs
isabella232/ae-channel-service
bfde1d3e6ca4fc6bcc4a387381d4838cd3f1ec42
[ "ISC" ]
6
2019-10-23T18:23:48.000Z
2022-03-06T07:02:45.000Z
defmodule AeChannelInterfaceWeb.SocketConnectorChannelTest do use AeChannelInterfaceWeb.ChannelCase # setup do # {:ok, _, socket} = # socket(AeChannelInterfaceWeb.UserSocket, "user_id", %{some: :assign}) # |> subscribe_and_join(AeChannelInterfaceWeb.SocketConnectorChannel, "socket_connector:lobby",...
35.111111
134
0.64346
c8f97c412c1e4194cc260f801807c78453790140
959
ex
Elixir
clients/mirror/lib/google_api/mirror/v1/request_builder.ex
mocknen/elixir-google-api
dac4877b5da2694eca6a0b07b3bd0e179e5f3b70
[ "Apache-2.0" ]
null
null
null
clients/mirror/lib/google_api/mirror/v1/request_builder.ex
mocknen/elixir-google-api
dac4877b5da2694eca6a0b07b3bd0e179e5f3b70
[ "Apache-2.0" ]
null
null
null
clients/mirror/lib/google_api/mirror/v1/request_builder.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 &quot;License&quot;); # 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...
36.884615
77
0.763295
c8f994e658eb493c755702f10576b421808a2edc
855
exs
Elixir
mix.exs
gimc/mix_darkly
9c79144d3329cfbbe08fc3625a9a9e179cf96d4a
[ "MIT" ]
null
null
null
mix.exs
gimc/mix_darkly
9c79144d3329cfbbe08fc3625a9a9e179cf96d4a
[ "MIT" ]
null
null
null
mix.exs
gimc/mix_darkly
9c79144d3329cfbbe08fc3625a9a9e179cf96d4a
[ "MIT" ]
null
null
null
defmodule MixDarkly.Mixfile do use Mix.Project def project do [app: :mix_darkly, version: "0.1.0", elixir: "~> 1.4", build_embedded: Mix.env == :prod, start_permanent: Mix.env == :prod, deps: deps()] end # Configuration for the OTP application # # Type "mix help compile.app" f...
23.75
79
0.605848
c8f997d280f806ed2893578c15e31b8f1fe63718
10,633
exs
Elixir
lib/elixir/test/elixir/io/ansi/docs_test.exs
Joe-noh/elixir
34bf464bc1a035b6015366463e04f1bf9d2065f3
[ "Apache-2.0" ]
null
null
null
lib/elixir/test/elixir/io/ansi/docs_test.exs
Joe-noh/elixir
34bf464bc1a035b6015366463e04f1bf9d2065f3
[ "Apache-2.0" ]
null
null
null
lib/elixir/test/elixir/io/ansi/docs_test.exs
Joe-noh/elixir
34bf464bc1a035b6015366463e04f1bf9d2065f3
[ "Apache-2.0" ]
null
null
null
Code.require_file "../../test_helper.exs", __DIR__ defmodule IO.ANSI.DocsTest do use ExUnit.Case, async: true import ExUnit.CaptureIO def format_heading(str) do capture_io(fn -> IO.ANSI.Docs.print_heading(str, []) end) |> String.trim_trailing end def format(str) do capture_io(fn -> IO.ANSI.Docs.pri...
33.124611
121
0.617041
c8f99fb6bc36934daba18595961a3d59fbc46fa7
2,487
ex
Elixir
apps/cluster_manager/lib/cluster_manager.ex
Alezrik/game_services_umbrella
9b9dd6707c200b10c5a73568913deb4d5d8320be
[ "MIT" ]
4
2018-11-09T16:57:06.000Z
2021-03-02T22:57:17.000Z
apps/cluster_manager/lib/cluster_manager.ex
Alezrik/game_services_umbrella
9b9dd6707c200b10c5a73568913deb4d5d8320be
[ "MIT" ]
29
2018-10-26T08:29:37.000Z
2018-12-09T21:02:05.000Z
apps/cluster_manager/lib/cluster_manager.ex
Alezrik/game_services_umbrella
9b9dd6707c200b10c5a73568913deb4d5d8320be
[ "MIT" ]
null
null
null
defmodule ClusterManager do @moduledoc """ Handles the cluster or lack there of when running in environments set cluster_status in config to true to enable cluster or false (default) """ @cluster_active Application.get_env(:cluster_manager, :cluster_status, false) @doc """ gets the tag to call the Au...
30.703704
87
0.667873
c8f9b3674e5d2cc38c7b63076ab5238989b25988
2,572
ex
Elixir
clients/you_tube/lib/google_api/you_tube/v3/model/third_party_link.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/model/third_party_link.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/model/third_party_link.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...
43.59322
177
0.721229
c8f9f016cad4104aeb431484918ed833ab5bd85a
1,477
ex
Elixir
lib/grizzly/zwave/commands/alarm_type_supported_report.ex
jellybob/grizzly
290bee04cb16acbb9dc996925f5c501697b7ac94
[ "Apache-2.0" ]
76
2019-09-04T16:56:58.000Z
2022-03-29T06:54:36.000Z
lib/grizzly/zwave/commands/alarm_type_supported_report.ex
jellybob/grizzly
290bee04cb16acbb9dc996925f5c501697b7ac94
[ "Apache-2.0" ]
124
2019-09-05T14:01:24.000Z
2022-02-28T22:58:14.000Z
lib/grizzly/zwave/commands/alarm_type_supported_report.ex
jellybob/grizzly
290bee04cb16acbb9dc996925f5c501697b7ac94
[ "Apache-2.0" ]
10
2019-10-23T19:25:45.000Z
2021-11-17T13:21:20.000Z
defmodule Grizzly.ZWave.Commands.AlarmTypeSupportedReport do @moduledoc """ This command is used to advertise supported Alarm/Notification Types. Versions 2+ are supported. Params: * `:types` - the types of alarms supported by the device """ @behaviour Grizzly.ZWave.Command alias Grizzly.ZWave.{C...
25.465517
91
0.646581
c8fa18c41c7502d70212f79b78b67e247274013f
137,693
exs
Elixir
test/compiler_test.exs
floatn/axon
7b4eb6134397d74b20b0a18d8b847468754360fb
[ "Apache-2.0" ]
null
null
null
test/compiler_test.exs
floatn/axon
7b4eb6134397d74b20b0a18d8b847468754360fb
[ "Apache-2.0" ]
null
null
null
test/compiler_test.exs
floatn/axon
7b4eb6134397d74b20b0a18d8b847468754360fb
[ "Apache-2.0" ]
null
null
null
defmodule CompilerTest do use ExUnit.Case, async: true import ExUnit.CaptureLog import AxonTestUtil require Axon alias Axon.MixedPrecision, as: AMP setup config do Nx.Defn.default_options(compiler: test_compiler()) Process.register(self(), config.test) :ok end describe "input" do test ...
34.234958
104
0.533462
c8fa399b4007289cfa2193c5aad195a28efc5e78
245
ex
Elixir
lib/changelog_web/controllers/benefit_controller.ex
PsOverflow/changelog.com
53f4ecfc39b021c6b8cfcc0fa11f29aff8038a7f
[ "MIT" ]
1
2021-03-14T21:12:49.000Z
2021-03-14T21:12:49.000Z
lib/changelog_web/controllers/benefit_controller.ex
type1fool/changelog.com
fbec3528cc3f5adfdc75b008bb92b17efc4f248f
[ "MIT" ]
null
null
null
lib/changelog_web/controllers/benefit_controller.ex
type1fool/changelog.com
fbec3528cc3f5adfdc75b008bb92b17efc4f248f
[ "MIT" ]
1
2018-10-03T20:55:52.000Z
2018-10-03T20:55:52.000Z
defmodule ChangelogWeb.BenefitController do use ChangelogWeb, :controller alias Changelog.Benefit def index(conn, _params) do benefits = Repo.all(Benefit) |> Benefit.preload_all render(conn, :index, benefits: benefits) end end
22.272727
55
0.75102
c8fa4911a351c490d5ac3c26a983ec3a3a2dd439
12
ex
Elixir
testData/org/elixir_lang/parser_definition/matched_when_operation_parsing_test_case/HexadecimalWholeNumber.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/matched_when_operation_parsing_test_case/HexadecimalWholeNumber.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/matched_when_operation_parsing_test_case/HexadecimalWholeNumber.ex
keyno63/intellij-elixir
4033e319992c53ddd42a683ee7123a97b5e34f02
[ "Apache-2.0" ]
145
2015-01-15T11:37:16.000Z
2021-12-22T05:51:02.000Z
0x1 when 0x2
12
12
0.833333
c8fa581a884a19df04a725616cb15db6d8c1616f
2,862
ex
Elixir
clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1beta1_entry_group.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1beta1_entry_group.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1beta1_entry_group.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...
43.363636
295
0.742488
c8fa5f690f7a9e308aa60ee6971c62172a85144e
1,819
exs
Elixir
rel/config.exs
cogini/elixir-deploy-template
eebe9e335ebbc54ef9388faf50c6fd64936a85aa
[ "MIT" ]
82
2018-01-08T16:57:13.000Z
2021-12-25T07:34:21.000Z
rel/config.exs
cogini/elixir-deploy-template
eebe9e335ebbc54ef9388faf50c6fd64936a85aa
[ "MIT" ]
8
2018-05-21T10:31:27.000Z
2018-11-25T07:17:56.000Z
rel/config.exs
cogini/elixir-deploy-template
eebe9e335ebbc54ef9388faf50c6fd64936a85aa
[ "MIT" ]
15
2018-05-21T10:18:16.000Z
2021-03-30T17:14:40.000Z
# Import all plugins from `rel/plugins` # They can then be used by adding `plugin MyPlugin` to # either an environment, or release definition, where # `MyPlugin` is the name of the plugin module. Path.join(["rel", "plugins", "*.exs"]) |> Path.wildcard() |> Enum.map(&Code.eval_file(&1)) use Mix.Releases.Config, # T...
31.912281
74
0.737218
c8fa672c0f21a1bb5a4c011b7121eb11719f0b05
405
exs
Elixir
apps/robby_web/test/models/profile_test.exs
jeffweiss/openrobby
9fed2024e6ce87a6fe27ef3af85558f3116aca2a
[ "Apache-2.0" ]
null
null
null
apps/robby_web/test/models/profile_test.exs
jeffweiss/openrobby
9fed2024e6ce87a6fe27ef3af85558f3116aca2a
[ "Apache-2.0" ]
null
null
null
apps/robby_web/test/models/profile_test.exs
jeffweiss/openrobby
9fed2024e6ce87a6fe27ef3af85558f3116aca2a
[ "Apache-2.0" ]
null
null
null
defmodule RobbyWeb.ProfileTest do use RobbyWeb.ModelCase alias RobbyWeb.Profile @attrs %{displayName: "some content", employeeType: "some content", interestingFact: "allergic to coffee; owns 18 bicycles"} test "changeset with valid attributes" do changeset = Profile.changeset(%Profile{ob...
25.3125
90
0.71358
c8fa8881614afdcf5a6bfbdf0e21d47d229c0636
579
ex
Elixir
apps/correcthorse_web/lib/correcthorse_web/live/radio_selection_component.ex
paulanthonywilson/correct-horse-elixir
63853f0dff8f3255b7714d12316deccc0879c740
[ "MIT" ]
3
2020-09-11T09:41:05.000Z
2021-01-29T00:16:39.000Z
apps/correcthorse_web/lib/correcthorse_web/live/radio_selection_component.ex
paulanthonywilson/correct-horse-elixir
63853f0dff8f3255b7714d12316deccc0879c740
[ "MIT" ]
4
2020-07-21T09:31:22.000Z
2021-06-07T09:27:51.000Z
apps/correcthorse_web/lib/correcthorse_web/live/radio_selection_component.ex
paulanthonywilson/correct-horse-elixir
63853f0dff8f3255b7714d12316deccc0879c740
[ "MIT" ]
null
null
null
defmodule CorrecthorseWeb.RadioSelectionComponent do @moduledoc """ Checkboxes for radio selection buttons Pass in * `values`: the possible values * `name`: the checkbox name * `current_value`: the currently checked value """ use CorrecthorseWeb, :live_component def render(assigns) do ~L""" ...
24.125
78
0.585492
c8faa02db4ddfcede3aee27e39229d3c8be090d0
2,634
ex
Elixir
lib/live_sup/core/datasources/http_datasource.ex
livesup-dev/livesup
eaf9ffc78d3043bd9e3408f0f4df26ed16eb8446
[ "Apache-2.0", "MIT" ]
null
null
null
lib/live_sup/core/datasources/http_datasource.ex
livesup-dev/livesup
eaf9ffc78d3043bd9e3408f0f4df26ed16eb8446
[ "Apache-2.0", "MIT" ]
3
2022-02-23T15:51:48.000Z
2022-03-14T22:52:43.000Z
lib/live_sup/core/datasources/http_datasource.ex
livesup-dev/livesup
eaf9ffc78d3043bd9e3408f0f4df26ed16eb8446
[ "Apache-2.0", "MIT" ]
null
null
null
defmodule LiveSup.Core.Datasources.HttpDatasource do use Timex import Logger import LiveSup.Core.Datasources.Helper alias LiveSup.Helpers.StringHelper @error_message "Something happened, but we don't have too many details" def get(url: url, headers: headers) do manage_request(:get, url, headers) en...
28.945055
84
0.648064
c8faa32cc862c244be56d660e4deb398c921f1e6
1,766
exs
Elixir
rel/config.exs
mikehelmick/meme-bot
52a84cfb3f5ddcdddadf59b0ba3976f9e3f23800
[ "Apache-2.0" ]
7
2019-04-05T06:12:56.000Z
2021-04-03T11:39:40.000Z
rel/config.exs
mikehelmick/meme-bot
52a84cfb3f5ddcdddadf59b0ba3976f9e3f23800
[ "Apache-2.0" ]
null
null
null
rel/config.exs
mikehelmick/meme-bot
52a84cfb3f5ddcdddadf59b0ba3976f9e3f23800
[ "Apache-2.0" ]
3
2019-04-20T13:05:48.000Z
2019-06-05T16:52:46.000Z
# Import all plugins from `rel/plugins` # They can then be used by adding `plugin MyPlugin` to # either an environment, or release definition, where # `MyPlugin` is the name of the plugin module. Path.join(["rel", "plugins", "*.exs"]) |> Path.wildcard() |> Enum.map(&Code.eval_file(&1)) use Mix.Releases.Config, # T...
32.703704
81
0.733296
c8faf2fc63a93c4443db9c88ec1c180d2c1c2900
641
ex
Elixir
lib/fernet_ecto/string.ex
jkakar/fernet-ecto
39fd365bf8aa92d34d30a44faea995f3d5e65ea2
[ "Apache-2.0" ]
3
2018-12-14T21:46:38.000Z
2020-05-01T23:26:17.000Z
lib/fernet_ecto/string.ex
jkakar/fernet-ecto
39fd365bf8aa92d34d30a44faea995f3d5e65ea2
[ "Apache-2.0" ]
4
2017-03-19T16:29:15.000Z
2019-10-14T17:43:35.000Z
lib/fernet_ecto/string.ex
jkakar/fernet-ecto
39fd365bf8aa92d34d30a44faea995f3d5e65ea2
[ "Apache-2.0" ]
3
2017-04-29T05:20:08.000Z
2018-12-14T21:46:40.000Z
defmodule Fernet.Ecto.String do @moduledoc """ An Ecto type for Fernet-encrypted strings. """ import Fernet.Ecto.Type @behaviour Ecto.Type @doc """ Fernet-encrypted data is stored as a binary in the database. """ def type, do: :binary @doc """ Only accept binary and string plaintext values. "...
21.366667
69
0.670827
c8fb20cc61e1f77c64f20b9ccc116e94d69effde
2,007
ex
Elixir
lib/prestige/client/response_parser.ex
dorilla/prestige
796db3dd2cf4d6dfb908c3932d1ae84c685b8c03
[ "Apache-2.0" ]
null
null
null
lib/prestige/client/response_parser.ex
dorilla/prestige
796db3dd2cf4d6dfb908c3932d1ae84c685b8c03
[ "Apache-2.0" ]
null
null
null
lib/prestige/client/response_parser.ex
dorilla/prestige
796db3dd2cf4d6dfb908c3932d1ae84c685b8c03
[ "Apache-2.0" ]
null
null
null
defmodule Prestige.Client.ResponseParser do @moduledoc false defmodule Accumulator do @moduledoc false @presto_prefix "x-presto" defstruct headers: [], sent: false, columns: [] def new(opts \\ []) do struct!(__MODULE__, opts) end def new(%__MODULE__{} = ...
23.068966
96
0.580967
c8fb2f39fcbbcc4081343e27bce4e8cf60fa1a12
10,555
exs
Elixir
test/mockatron_web/controllers/request_condition_controller_test.exs
rzcastilho/mockatron
237b2bad3e1bf167a6ebac218c7a46b74a9063ee
[ "MIT" ]
1
2018-12-13T16:52:22.000Z
2018-12-13T16:52:22.000Z
test/mockatron_web/controllers/request_condition_controller_test.exs
rzcastilho/mockatron
237b2bad3e1bf167a6ebac218c7a46b74a9063ee
[ "MIT" ]
28
2019-07-04T08:42:33.000Z
2022-03-28T08:24:07.000Z
test/mockatron_web/controllers/request_condition_controller_test.exs
rzcastilho/mockatron
237b2bad3e1bf167a6ebac218c7a46b74a9063ee
[ "MIT" ]
null
null
null
defmodule MockatronWeb.RequestConditionControllerTest do use MockatronWeb.ConnCase import Ecto.Query alias Mockatron.Repo alias Mockatron.Core alias Mockatron.Core.Filter alias Mockatron.Core.RequestCondition alias Mockatron.Guardian alias Mockatron.Auth @user_valid_attrs %{ email: "test@mock...
26.126238
99
0.56324
c8fb3287c47aaeb2d8cbde00ae388d2a33f583b8
1,715
ex
Elixir
clients/os_config/lib/google_api/os_config/v1/model/os_policy_resource_file_remote.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/os_config/lib/google_api/os_config/v1/model/os_policy_resource_file_remote.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/os_config/lib/google_api/os_config/v1/model/os_policy_resource_file_remote.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...
34.3
191
0.728863
c8fb3749fc423ff19a7fa7d77e37e363f582252e
4,397
ex
Elixir
lib/battle_box/connection/logic.ex
GrantJamesPowell/battle_box
301091955b68cd4672f6513d645eca4e3c4e17d0
[ "Apache-2.0" ]
2
2020-10-17T05:48:49.000Z
2020-11-11T02:34:15.000Z
lib/battle_box/connection/logic.ex
FlyingDutchmanGames/battle_box
301091955b68cd4672f6513d645eca4e3c4e17d0
[ "Apache-2.0" ]
3
2020-05-18T05:52:21.000Z
2020-06-09T07:24:14.000Z
lib/battle_box/connection/logic.ex
FlyingDutchmanGames/battle_box
301091955b68cd4672f6513d645eca4e3c4e17d0
[ "Apache-2.0" ]
null
null
null
defmodule BattleBox.Connection.Logic do alias BattleBox.{Arena, GameEngine, GameEngine.BotServer} import BattleBox.Connection.Message alias BattleBox.GameEngine.Message.{ CommandsRequest, DebugInfo, GameInfo, GameOver, GameRequest, GameCanceled } def init(%{names: %{game_engine: _}} ...
30.964789
95
0.598135
c8fb412336d1b585c9458242c7f932798a8decfa
3,700
ex
Elixir
clients/dfa_reporting/lib/google_api/dfa_reporting/v35/model/video_settings.ex
renovate-bot/elixir-google-api
1da34cd39b670c99f067011e05ab90af93fef1f6
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/dfa_reporting/lib/google_api/dfa_reporting/v35/model/video_settings.ex
swansoffiee/elixir-google-api
9ea6d39f273fb430634788c258b3189d3613dde0
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/dfa_reporting/lib/google_api/dfa_reporting/v35/model/video_settings.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...
54.411765
270
0.734324
c8fb44aeafd0eda2c1d3c679366b8f51ba3e6cbb
2,925
ex
Elixir
clients/composer/lib/google_api/composer/v1/model/private_environment_config.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/composer/lib/google_api/composer/v1/model/private_environment_config.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/composer/lib/google_api/composer/v1/model/private_environment_config.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...
49.576271
256
0.750769
c8fb4bbc79c085b8c03028dda7e77784a38a6481
580
exs
Elixir
exercises/concept/bread-and-potions/mix.exs
devtayls/elixir
67824de8209ff1b6ed2f736deedfb5bd815130ca
[ "MIT" ]
343
2017-06-22T16:28:28.000Z
2022-03-25T21:33:32.000Z
exercises/concept/bread-and-potions/mix.exs
devtayls/elixir
67824de8209ff1b6ed2f736deedfb5bd815130ca
[ "MIT" ]
1,938
2019-12-12T08:07:10.000Z
2021-01-29T12:56:13.000Z
exercises/concept/bread-and-potions/mix.exs
devtayls/elixir
67824de8209ff1b6ed2f736deedfb5bd815130ca
[ "MIT" ]
239
2019-12-12T14:09:08.000Z
2022-03-18T00:04:07.000Z
defmodule RPG.MixProject do use Mix.Project def project do [ app: :bread_and_potions, version: "0.1.0", # elixir: "~> 1.10", start_permanent: Mix.env() == :prod, deps: deps() ] end # Run "mix help compile.app" to learn about applications. def application do [ ...
20
87
0.57931
c8fb8dbd97d3d9fcab24fbd897573585a5d372f5
1,403
ex
Elixir
2017/elixir/day20/lib/day20-naive.ex
zakora/elixir-aoc2017
216e92cef370081cc0792102e0b40dd3a518d8bf
[ "Unlicense" ]
null
null
null
2017/elixir/day20/lib/day20-naive.ex
zakora/elixir-aoc2017
216e92cef370081cc0792102e0b40dd3a518d8bf
[ "Unlicense" ]
null
null
null
2017/elixir/day20/lib/day20-naive.ex
zakora/elixir-aoc2017
216e92cef370081cc0792102e0b40dd3a518d8bf
[ "Unlicense" ]
null
null
null
defmodule Day20Naive do @regex ~r/p=<(-?\d+),(-?\d+),(-?\d+)>, v=<(-?\d+),(-?\d+),(-?\d+)>, a=<(-?\d+),(-?\d+),(-?\d+)>/ def solveA(filename) do particules = filename |> File.stream!([:utf8], :line) |> Enum.map(&parse_line/1) # We will consider 1 million iteration to be "in the long term"...
24.614035
98
0.520314
c8fba49a13c8eea35f5e1094f64f04c700796c23
57,636
ex
Elixir
lib/baiji/service/elastic_load_balancing_v2.ex
wrren/baiji
d3d9e1cad875c6e1ddb47bf52511c3a07321764a
[ "MIT" ]
null
null
null
lib/baiji/service/elastic_load_balancing_v2.ex
wrren/baiji
d3d9e1cad875c6e1ddb47bf52511c3a07321764a
[ "MIT" ]
null
null
null
lib/baiji/service/elastic_load_balancing_v2.ex
wrren/baiji
d3d9e1cad875c6e1ddb47bf52511c3a07321764a
[ "MIT" ]
null
null
null
defmodule Baiji.ElasticLoadBalancingv2 do @moduledoc """ Elastic Load Balancing A load balancer distributes incoming traffic across targets, such as your EC2 instances. This enables you to increase the availability of your application. The load balancer also monitors the health of its registered targets ...
74.082262
29,339
0.60745
c8fbd1ba20b97874664352597a4e014787b1be84
84
ex
Elixir
lib/web/views/admin/class_view.ex
stevegrossi/ex_venture
e02d5a63fdb882d92cfb4af3e15f7b48ad7054aa
[ "MIT" ]
2
2019-05-14T11:36:44.000Z
2020-07-01T08:54:04.000Z
lib/web/views/admin/class_view.ex
nickwalton/ex_venture
d8ff1b0181db03f9ddcb7610ae7ab533feecbfbb
[ "MIT" ]
null
null
null
lib/web/views/admin/class_view.ex
nickwalton/ex_venture
d8ff1b0181db03f9ddcb7610ae7ab533feecbfbb
[ "MIT" ]
1
2021-01-29T14:12:40.000Z
2021-01-29T14:12:40.000Z
defmodule Web.Admin.ClassView do use Web, :view alias Web.Admin.SharedView end
14
32
0.761905
c8fbd54f8735bee2167e4caada82848abdfd8acb
1,502
exs
Elixir
mix.exs
mishka-group/mishka_developer_tools
cc03f1cdfb8873476e147a5051aaf5890e6ef803
[ "Apache-2.0" ]
4
2021-12-07T06:24:18.000Z
2022-03-20T23:10:51.000Z
mix.exs
mishka-group/mishka_developer_tools
cc03f1cdfb8873476e147a5051aaf5890e6ef803
[ "Apache-2.0" ]
4
2022-01-02T09:22:29.000Z
2022-03-27T17:17:13.000Z
mix.exs
mishka-group/mishka_developer_tools
cc03f1cdfb8873476e147a5051aaf5890e6ef803
[ "Apache-2.0" ]
1
2022-01-21T20:18:33.000Z
2022-01-21T20:18:33.000Z
defmodule MishkaDeveloperTools.MixProject do use Mix.Project @version "0.0.6" def project do [ app: :mishka_developer_tools, version: @version, elixir: "~> 1.13", name: "Mishka developer tools", elixirc_paths: elixirc_paths(Mix.env()), start_permanent: Mix.env() == :prod, ...
26.350877
115
0.61984
c8fbda168970e224ea20b08e32dd7ddfa6d34b6d
336
ex
Elixir
lib/panda/brain.ex
mazarynxyz/panda
0e5025b2fad3f166430558b48e6349666c929dfe
[ "Apache-2.0" ]
1
2021-09-06T07:42:45.000Z
2021-09-06T07:42:45.000Z
lib/panda/brain.ex
mazarynxyz/panda
0e5025b2fad3f166430558b48e6349666c929dfe
[ "Apache-2.0" ]
null
null
null
lib/panda/brain.ex
mazarynxyz/panda
0e5025b2fad3f166430558b48e6349666c929dfe
[ "Apache-2.0" ]
null
null
null
defmodule Panda.Brain do @moduledoc """ Provides an interface for persistent storage. Adapters are expected to accept any term and manage serialization and deserialization. """ @callback start_link(Keyword.t()) :: term() @callback get(atom(), String.t()) :: term() @callback set(atom(), String.t(), term()...
30.545455
72
0.690476
c8fbe1e67f6fdf9b6789674a36079bc364e6e1d0
332
exs
Elixir
test/test_helper.exs
x-ji/guardian
576997d3701306ccfa40b42e18b1bec5a6ac98a7
[ "MIT" ]
3,135
2015-12-19T05:35:41.000Z
2022-03-29T00:27:25.000Z
test/test_helper.exs
x-ji/guardian
576997d3701306ccfa40b42e18b1bec5a6ac98a7
[ "MIT" ]
536
2015-12-28T04:40:31.000Z
2022-03-30T22:45:59.000Z
test/test_helper.exs
x-ji/guardian
576997d3701306ccfa40b42e18b1bec5a6ac98a7
[ "MIT" ]
451
2015-12-20T23:43:49.000Z
2022-03-24T10:36:14.000Z
defmodule Guardian.TestHelper do @moduledoc false defmacro __using__(_ \\ []) do quote do def subject_for_token(%{id: id}, _claims), do: {:ok, id} def subject_for_token(%{"id" => id}, _claims), do: {:ok, id} def resource_from_claims(%{"sub" => id}), do: {:ok, %{id: id}} end end end ExU...
23.714286
68
0.60241
c8fbe59d15892d6ec2b53adc109f82de0c411ae5
1,331
ex
Elixir
clients/cloud_search/lib/google_api/cloud_search/v1/model/photo.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/cloud_search/lib/google_api/cloud_search/v1/model/photo.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/cloud_search/lib/google_api/cloud_search/v1/model/photo.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...
28.319149
74
0.721262
c8fbe84329f41b7e6ffbfef96278877ce6a15934
115
exs
Elixir
test/logger_logstash_backend_test.exs
defndaines/logger_logstash_backend
0670cda41374a3d899dbd3aa00780ced08a9b9f5
[ "Apache-2.0" ]
null
null
null
test/logger_logstash_backend_test.exs
defndaines/logger_logstash_backend
0670cda41374a3d899dbd3aa00780ced08a9b9f5
[ "Apache-2.0" ]
null
null
null
test/logger_logstash_backend_test.exs
defndaines/logger_logstash_backend
0670cda41374a3d899dbd3aa00780ced08a9b9f5
[ "Apache-2.0" ]
null
null
null
defmodule Logger.Backends.LogstashTest do use ExUnit.Case test "the truth" do assert 1 + 1 == 2 end end
14.375
41
0.686957
c8fc42e9c33fbbe865b1d9760d292efc80e73e8d
992
ex
Elixir
lib/exchema/type.ex
bamorim/exchema
4e11136fae6092e0e64870b455fd6a68cf36603c
[ "Apache-2.0" ]
21
2018-01-06T22:33:20.000Z
2020-02-07T18:49:22.000Z
lib/exchema/type.ex
bamorim/exchema
4e11136fae6092e0e64870b455fd6a68cf36603c
[ "Apache-2.0" ]
5
2018-02-15T16:39:14.000Z
2018-11-30T21:06:08.000Z
lib/exchema/type.ex
bamorim/exchema
4e11136fae6092e0e64870b455fd6a68cf36603c
[ "Apache-2.0" ]
4
2018-05-21T21:26:27.000Z
2019-04-17T16:45:14.000Z
defmodule Exchema.Type do @moduledoc """ This is the contract of a type module. To implement your own type you should just implement the `___type__/1` callback which receives a tuple with your type arguments. If you have a concrete type, then it should match on receiving an empty tuple `{}`. """ @type ...
28.342857
59
0.706653
c8fc566592d0c62f7c2b71e02dce2726b70e3b0d
2,542
ex
Elixir
apps/ex_wire/lib/ex_wire/handler.ex
InoMurko/ethereum
282ca2a23a897c5b9684ddf9abae2bf65691b039
[ "MIT" ]
22
2017-06-22T02:50:34.000Z
2022-01-26T20:43:21.000Z
apps/ex_wire/lib/ex_wire/handler.ex
InoMurko/ethereum
282ca2a23a897c5b9684ddf9abae2bf65691b039
[ "MIT" ]
9
2018-10-08T22:56:56.000Z
2018-10-18T20:41:55.000Z
apps/ex_wire/lib/ex_wire/handler.ex
InoMurko/ethereum
282ca2a23a897c5b9684ddf9abae2bf65691b039
[ "MIT" ]
5
2018-10-06T16:30:48.000Z
2022-01-26T20:43:26.000Z
defmodule ExWire.Handler do @moduledoc """ Defines a behavior for all message handlers of RLPx messages. Message handlers tell us how we should respond to a given incoming transmission, after it has been decoded. """ alias ExWire.Message alias ExWire.Crypto require Logger @handlers %{ 0x01 => ...
28.244444
100
0.568843
c8fc70defc58d75c398adf7997adc4981b583f37
3,529
ex
Elixir
lib/clickhouse_ecto/query.ex
scarfacedeb/clickhouse_ecto
d65cc3d0600b27c155cca79cb9972defad8136cf
[ "Apache-2.0" ]
null
null
null
lib/clickhouse_ecto/query.ex
scarfacedeb/clickhouse_ecto
d65cc3d0600b27c155cca79cb9972defad8136cf
[ "Apache-2.0" ]
1
2018-08-06T11:38:19.000Z
2018-08-08T10:55:48.000Z
lib/clickhouse_ecto/query.ex
santiment/clickhouse_ecto
bf8835b10bbb491664f679efe167c9514b03bfca
[ "Apache-2.0" ]
1
2018-08-03T17:46:10.000Z
2018-08-03T17:46:10.000Z
defmodule ClickhouseEcto.Query do alias ClickhouseEcto.QueryString import ClickhouseEcto.Helpers require IEx @doc """ Receives a query and must return a SELECT query. """ @spec all(query :: Ecto.Query.t) :: String.t def all(query) do sources = QueryString.create_names(query) {select_distinct...
31.230088
123
0.634457
c8fc7441ee96e128396ded86753633c81caa19f5
6,349
ex
Elixir
clients/data_migration/lib/google_api/data_migration/v1/model/migration_job.ex
renovate-bot/elixir-google-api
1da34cd39b670c99f067011e05ab90af93fef1f6
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/data_migration/lib/google_api/data_migration/v1/model/migration_job.ex
swansoffiee/elixir-google-api
9ea6d39f273fb430634788c258b3189d3613dde0
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/data_migration/lib/google_api/data_migration/v1/model/migration_job.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...
61.048077
287
0.693338
c8fc82ad0b9cd87779658708f18e35be7de527f7
510
ex
Elixir
lib/minecraft/packet/client/status/ping.ex
thecodeboss/minecraft
e5e6c54a1e93497432363aef4700e4be7a145bb3
[ "MIT" ]
29
2018-09-03T15:34:33.000Z
2021-12-30T19:36:42.000Z
lib/minecraft/packet/client/status/ping.ex
thecodeboss/minecraft
e5e6c54a1e93497432363aef4700e4be7a145bb3
[ "MIT" ]
76
2018-07-13T13:19:09.000Z
2022-03-23T15:27:43.000Z
lib/minecraft/packet/client/status/ping.ex
thecodeboss/minecraft
e5e6c54a1e93497432363aef4700e4be7a145bb3
[ "MIT" ]
2
2020-10-06T15:50:17.000Z
2021-12-29T08:06:48.000Z
defmodule Minecraft.Packet.Client.Status.Ping do @moduledoc false @type t :: %__MODULE__{packet_id: 1, payload: integer} defstruct packet_id: 1, payload: nil @spec serialize(t) :: {packet_id :: 1, binary} def serialize(%__MODULE__{payload: payload}) do {1, <<payload::64-signed>>} e...
28.333333
57
0.639216
c8fcc84bbc1a386e33db0c93d7cbca6e87edec34
886
ex
Elixir
clients/health_care/lib/google_api/health_care/v1/metadata.ex
Contractbook/elixir-google-api
342751041aaf8c2e7f76f9922cf24b9c5895802b
[ "Apache-2.0" ]
null
null
null
clients/health_care/lib/google_api/health_care/v1/metadata.ex
Contractbook/elixir-google-api
342751041aaf8c2e7f76f9922cf24b9c5895802b
[ "Apache-2.0" ]
null
null
null
clients/health_care/lib/google_api/health_care/v1/metadata.ex
Contractbook/elixir-google-api
342751041aaf8c2e7f76f9922cf24b9c5895802b
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 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...
32.814815
74
0.759594
c8fd1c44d1655d4bf64b5d695371b4eade5b693d
837
ex
Elixir
server/apps/boardr_api/lib/boardr_api/api_root/api_root_view.ex
AlphaHydrae/boardr
98eed02801f88c065a24bf13051c5cf96270a5f7
[ "MIT" ]
1
2021-04-08T17:26:27.000Z
2021-04-08T17:26:27.000Z
server/apps/boardr_api/lib/boardr_api/api_root/api_root_view.ex
AlphaHydrae/boardr
98eed02801f88c065a24bf13051c5cf96270a5f7
[ "MIT" ]
1
2022-02-13T05:50:46.000Z
2022-02-13T05:50:46.000Z
server/apps/boardr_api/lib/boardr_api/api_root/api_root_view.ex
AlphaHydrae/boardr
98eed02801f88c065a24bf13051c5cf96270a5f7
[ "MIT" ]
null
null
null
defmodule BoardrApi.ApiRootView do use BoardrApi, :view def render("index.json", _assigns) do api_document(%{ version: List.to_string(Application.spec(:boardr, :vsn)) }) |> put_boardr_link(:game, Routes.games_url(Endpoint, :show, "") <> "{id}", :templated) |> put_boardr_link(:games, Routes.ga...
44.052632
99
0.691756
c8fd224a42694b15743b34ecbec0eb113233ce23
46
exs
Elixir
test/api_doc_test.exs
IanLuites/api_doc
b93ac8d82888c96bde7c55a08ec5716926976097
[ "MIT" ]
1
2020-01-12T03:41:03.000Z
2020-01-12T03:41:03.000Z
test/api_doc_test.exs
IanLuites/api_doc
b93ac8d82888c96bde7c55a08ec5716926976097
[ "MIT" ]
1
2019-04-17T15:32:15.000Z
2019-04-17T15:32:15.000Z
test/api_doc_test.exs
IanLuites/api_doc
b93ac8d82888c96bde7c55a08ec5716926976097
[ "MIT" ]
null
null
null
defmodule APIDocTest do use ExUnit.Case end
11.5
23
0.804348
c8fd2b7bb0f78ebeb97f229cff246ae7b8130411
125
exs
Elixir
lib/system/targets/rpi2/system_updates.exs
KRISHITECH/farmbot_os
4220baf8f3ef930ce3b861b178ca6a76e2fd7591
[ "MIT" ]
null
null
null
lib/system/targets/rpi2/system_updates.exs
KRISHITECH/farmbot_os
4220baf8f3ef930ce3b861b178ca6a76e2fd7591
[ "MIT" ]
null
null
null
lib/system/targets/rpi2/system_updates.exs
KRISHITECH/farmbot_os
4220baf8f3ef930ce3b861b178ca6a76e2fd7591
[ "MIT" ]
null
null
null
defmodule Module.concat([Farmbot, System, "rpi2", Updates]) do use Farmbot.System.NervesCommon.Updates, target: "rpi2" end
31.25
62
0.76
c8fd656b6db366016c23eb256334dd81e1374624
1,552
ex
Elixir
lib/red_potion/web/web.ex
mvdwg/red_potion
3026b13d80d9157a598b08e959beb5e56c6f9ff9
[ "MIT" ]
null
null
null
lib/red_potion/web/web.ex
mvdwg/red_potion
3026b13d80d9157a598b08e959beb5e56c6f9ff9
[ "MIT" ]
null
null
null
lib/red_potion/web/web.ex
mvdwg/red_potion
3026b13d80d9157a598b08e959beb5e56c6f9ff9
[ "MIT" ]
null
null
null
defmodule RedPotion.Web do @moduledoc """ A module that keeps using definitions for controllers, views and so on. This can be used in your application as: use RedPotion.Web, :controller use RedPotion.Web, :view The definitions below will be executed for every view, controller, etc, so keep th...
23.164179
88
0.679768
c8fd98d04ed7a78785f1c882fa5809199f81c50d
1,407
exs
Elixir
example/config/target.exs
pragdave/grizzly
bcd7b46ab2cff1797dac04bc3cd12a36209dd579
[ "Apache-2.0" ]
null
null
null
example/config/target.exs
pragdave/grizzly
bcd7b46ab2cff1797dac04bc3cd12a36209dd579
[ "Apache-2.0" ]
null
null
null
example/config/target.exs
pragdave/grizzly
bcd7b46ab2cff1797dac04bc3cd12a36209dd579
[ "Apache-2.0" ]
null
null
null
use Mix.Config # Authorize the device to receive firmware using your public key. # See https://hexdocs.pm/nerves_firmware_ssh/readme.html for more information # on configuring nerves_firmware_ssh. keys = [ Path.join([System.user_home!(), ".ssh", "id_rsa.pub"]), Path.join([System.user_home!(), ".ssh", "id_ec...
31.266667
77
0.719972
c8fd9f7cf6cdd5960beec366fbd5941cde12e698
1,645
ex
Elixir
lib/fcmex/subscription.ex
nietaki/fcmex
ae503ddf9b23db40101c8c5378aa2d31cd92cacc
[ "MIT" ]
null
null
null
lib/fcmex/subscription.ex
nietaki/fcmex
ae503ddf9b23db40101c8c5378aa2d31cd92cacc
[ "MIT" ]
null
null
null
lib/fcmex/subscription.ex
nietaki/fcmex
ae503ddf9b23db40101c8c5378aa2d31cd92cacc
[ "MIT" ]
null
null
null
defmodule Fcmex.Subscription do @moduledoc """ This module manages subscritioins """ use Retry alias Fcmex.{Config, Util} @base_url "https://iid.googleapis.com/iid" @endpoint "/info" def get(token) do request(fn -> HTTPoison.get("#{@base_url}#{@endpoint}/#{token}?details=true", Config.new()...
22.847222
97
0.607295
c8fdc1f8febf6968d2745f7c76fb1281ddc64d75
4,032
ex
Elixir
lib/oriel/cache/server.ex
sgeos/oriel
145c563e1ef30119881b1c589b57e9ede7de083f
[ "BSD-3-Clause" ]
1
2022-01-27T08:17:53.000Z
2022-01-27T08:17:53.000Z
lib/oriel/cache/server.ex
sgeos/oriel
145c563e1ef30119881b1c589b57e9ede7de083f
[ "BSD-3-Clause" ]
null
null
null
lib/oriel/cache/server.ex
sgeos/oriel
145c563e1ef30119881b1c589b57e9ede7de083f
[ "BSD-3-Clause" ]
null
null
null
defmodule Oriel.Cache.Server do use GenServer alias Oriel.Config alias Oriel.Cache.Store @application :oriel @timeout (1 * 60 * 1000) ## Utility Functions #defp get_setting(map, key) do # map # |> Enum.into(%{}) # |> Map.get(key) # |> Kernel.||(Config.get(@application, key)) #end defp ...
30.545455
109
0.66121
c8fdc584ddfab24d43de9c365fb5f15e2ddf63ef
5,417
exs
Elixir
test/entice/logic/casting_test.exs
entice/logic
e66b753d67f9ffcedf48a3097f2428f60de38d06
[ "WTFPL" ]
12
2015-02-11T21:50:03.000Z
2020-12-24T23:05:07.000Z
test/entice/logic/casting_test.exs
entice/logic
e66b753d67f9ffcedf48a3097f2428f60de38d06
[ "WTFPL" ]
12
2015-09-21T11:19:27.000Z
2016-09-11T08:13:58.000Z
test/entice/logic/casting_test.exs
entice/logic
e66b753d67f9ffcedf48a3097f2428f60de38d06
[ "WTFPL" ]
7
2015-09-20T14:37:31.000Z
2021-07-19T18:10:51.000Z
defmodule Entice.Logic.CastingTest do use ExUnit.Case, async: true use Entice.Logic.Attributes alias Entice.Entity alias Entice.Entity.Attribute alias Entice.Entity.Test.Spy alias Entice.Logic.Skills alias Entice.Logic.Casting alias Entice.Logic.Vitals @moduletag :casting # setup all tags programm...
45.141667
142
0.730109
c8fde0476c4c7e76562be2a8d3e10b3f8647f368
2,078
ex
Elixir
clients/big_query/lib/google_api/big_query/v2/model/query_parameter_type.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/big_query/lib/google_api/big_query/v2/model/query_parameter_type.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/big_query/lib/google_api/big_query/v2/model/query_parameter_type.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "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...
39.207547
199
0.732435
c8fe056553e60d9a1c02a71573bcd311c9b0a039
1,761
ex
Elixir
clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/sizes_list_response.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/sizes_list_response.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/sizes_list_response.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); # 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.22
180
0.735378
c8fe1591deb20ac57fa61ddcaa19ae3ccea744c5
388
ex
Elixir
lib/fe.ex
Nirei/fe
2b9a1fe230e0c84ad60833864dd55ae87094c918
[ "MIT" ]
23
2019-11-15T18:36:43.000Z
2022-03-16T14:12:27.000Z
lib/fe.ex
Nirei/fe
2b9a1fe230e0c84ad60833864dd55ae87094c918
[ "MIT" ]
5
2018-11-25T10:07:15.000Z
2019-07-04T07:21:48.000Z
lib/fe.ex
Nirei/fe
2b9a1fe230e0c84ad60833864dd55ae87094c918
[ "MIT" ]
4
2020-01-05T14:18:54.000Z
2021-02-26T17:41:35.000Z
defmodule FE do @moduledoc """ Basic functional programming idioms. """ @doc """ Always return the argument unchanged. """ @spec id(a) :: a when a: var def id(a), do: a @doc """ Create a unary function that always returns the same value, regardless of what it was called with. """ @spec const...
20.421053
72
0.618557
c8fe54751d33934d87ad6b78c7d026d243076848
1,510
ex
Elixir
test/support/data_case.ex
karolsluszniak/clustered_queue_and_pool-phoenix1.6
cbf8f51a3c72cb7a5bde31839c1de056775af4f3
[ "MIT" ]
null
null
null
test/support/data_case.ex
karolsluszniak/clustered_queue_and_pool-phoenix1.6
cbf8f51a3c72cb7a5bde31839c1de056775af4f3
[ "MIT" ]
null
null
null
test/support/data_case.ex
karolsluszniak/clustered_queue_and_pool-phoenix1.6
cbf8f51a3c72cb7a5bde31839c1de056775af4f3
[ "MIT" ]
null
null
null
defmodule Outer.DataCase do @moduledoc """ This module defines the setup for tests requiring access to the application's data layer. You may define functions here to be used as helpers in your tests. Finally, if the test case interacts with the database, we enable the SQL sandbox, so changes done to the...
29.038462
86
0.693377
c8fe6a299c1eae67a125a875af40da04e4491ff9
257
ex
Elixir
lib/lighthouse.ex
thomasvolk/lighthouse
566f4029a1ef1e5863e45b7f9b1b7afa914980ec
[ "Apache-2.0" ]
null
null
null
lib/lighthouse.ex
thomasvolk/lighthouse
566f4029a1ef1e5863e45b7f9b1b7afa914980ec
[ "Apache-2.0" ]
null
null
null
lib/lighthouse.ex
thomasvolk/lighthouse
566f4029a1ef1e5863e45b7f9b1b7afa914980ec
[ "Apache-2.0" ]
null
null
null
defmodule Lighthouse do @moduledoc """ Lighthouse keeps the contexts that define your domain and business logic. Contexts are also responsible for managing your data, regardless if it comes from the database, an external API or others. """ end
25.7
66
0.758755
c8fe78e57f1b0e741cc7bfda57540c5a57b495b3
2,200
ex
Elixir
clients/policy_troubleshooter/lib/google_api/policy_troubleshooter/v1/model/google_iam_v1_audit_log_config.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/policy_troubleshooter/lib/google_api/policy_troubleshooter/v1/model/google_iam_v1_audit_log_config.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/policy_troubleshooter/lib/google_api/policy_troubleshooter/v1/model/google_iam_v1_audit_log_config.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...
31.428571
138
0.689091
c8feb22598247f9e0a49ed92e5c0de62eb8a412d
1,004
ex
Elixir
lib/chat_api/slack_conversation_threads/slack_conversation_thread.ex
raditya3/papercups
4657b258ee381ac0b7517e57e4d6261ce94b5871
[ "MIT" ]
2
2020-09-21T07:27:13.000Z
2021-12-20T13:23:56.000Z
lib/chat_api/slack_conversation_threads/slack_conversation_thread.ex
raditya3/papercups
4657b258ee381ac0b7517e57e4d6261ce94b5871
[ "MIT" ]
null
null
null
lib/chat_api/slack_conversation_threads/slack_conversation_thread.ex
raditya3/papercups
4657b258ee381ac0b7517e57e4d6261ce94b5871
[ "MIT" ]
1
2021-08-29T14:10:18.000Z
2021-08-29T14:10:18.000Z
defmodule ChatApi.SlackConversationThreads.SlackConversationThread do use Ecto.Schema import Ecto.Changeset alias ChatApi.Accounts.Account alias ChatApi.Conversations.Conversation @primary_key {:id, :binary_id, autogenerate: true} @foreign_key_type :binary_id schema "slack_conversation_threads" do f...
32.387097
93
0.719124
c8fecae12b5ef1ee404ab8bb47f7c35e1544786f
1,691
exs
Elixir
nomads/src/config/config.exs
HarpBytes/nomads
10c79953e19262d9d095a190eecb09a5e57e6bf2
[ "MIT" ]
null
null
null
nomads/src/config/config.exs
HarpBytes/nomads
10c79953e19262d9d095a190eecb09a5e57e6bf2
[ "MIT" ]
null
null
null
nomads/src/config/config.exs
HarpBytes/nomads
10c79953e19262d9d095a190eecb09a5e57e6bf2
[ "MIT" ]
null
null
null
# This file is responsible for configuring your application # and its dependencies with the aid of the Config module. # # This configuration file is loaded before any dependency and # is restricted to this project. # General application configuration import Config config :nomads, ecto_repos: [Nomads.Repo] # Config...
31.90566
117
0.73152
c8fecd71a0f3cdf05b7aba5c57109f24e138312f
331
exs
Elixir
priv/repo/migrations/20180316005946_remove-not-null-constraint-from-users-family-name.exs
octosteve/remote_retro
3385b0db3c2daab934ce12a2f7642a5f10ac5147
[ "MIT" ]
523
2017-03-15T15:21:11.000Z
2022-03-14T03:04:18.000Z
priv/repo/migrations/20180316005946_remove-not-null-constraint-from-users-family-name.exs
octosteve/remote_retro
3385b0db3c2daab934ce12a2f7642a5f10ac5147
[ "MIT" ]
524
2017-03-16T18:31:09.000Z
2022-02-26T10:02:06.000Z
priv/repo/migrations/20180316005946_remove-not-null-constraint-from-users-family-name.exs
octosteve/remote_retro
3385b0db3c2daab934ce12a2f7642a5f10ac5147
[ "MIT" ]
60
2017-05-01T18:02:28.000Z
2022-03-04T21:04:56.000Z
defmodule :"Elixir.RemoteRetro.Repo.Migrations.Remove-not-null-constraint-from-users-family-name" do use Ecto.Migration def up do alter table(:users) do modify :family_name, :string, null: true end end def down do alter table(:users) do modify :family_name, :string, null: false end...
20.6875
100
0.688822
c8fee2e1c3d40b7f99f58a7f383f538293f6bab6
1,801
ex
Elixir
lib/database.ex
Z1an-Wang/60009_Distributed_Algorithms
ab63dca86c8db5ae319cfd3a309dfb40279199c8
[ "MIT" ]
null
null
null
lib/database.ex
Z1an-Wang/60009_Distributed_Algorithms
ab63dca86c8db5ae319cfd3a309dfb40279199c8
[ "MIT" ]
null
null
null
lib/database.ex
Z1an-Wang/60009_Distributed_Algorithms
ab63dca86c8db5ae319cfd3a309dfb40279199c8
[ "MIT" ]
null
null
null
# distributed algorithms, n.dulay, 8 feb 2022 # coursework, raft consensus, v2 defmodule Database do # d = database process state (c.f. self/this) # _________________________________________________________ Database setters() # 设置 sequence number/交易编号 def seqnum(d, v), do: Map.put(d, :seqnum, v) # 设置 余额 def ba...
28.587302
87
0.674625
c8ff41b502b853de29b899ae3595f70863f4a59a
1,812
ex
Elixir
lib/revive_web/telemetry.ex
TenTakano/Colonists
8d989181705b06c91ecd17a7132291a417367893
[ "MIT" ]
1
2020-12-06T16:33:01.000Z
2020-12-06T16:33:01.000Z
lib/revive_web/telemetry.ex
TenTakano/Revive
2f65b6c2b0c063c1224c24060cb17b93a9974002
[ "MIT" ]
2
2020-12-31T14:17:00.000Z
2020-12-31T14:25:48.000Z
lib/revive_web/telemetry.ex
TenTakano/Colonists
8d989181705b06c91ecd17a7132291a417367893
[ "MIT" ]
null
null
null
defmodule ReviveWeb.Telemetry do use Supervisor import Telemetry.Metrics def start_link(arg) do Supervisor.start_link(__MODULE__, arg, name: __MODULE__) end @impl true def init(_arg) do children = [ # Telemetry poller will execute the given period measurements # every 10_000ms. Learn m...
32.357143
86
0.67053
c8ffa755a1afb1b7386cf90c9bf7e533b6051fa8
1,026
ex
Elixir
lib/rir.ex
hertogp/rircheck
ea7cb4c8e3867995d50eedc482e53bcf11cee958
[ "MIT" ]
null
null
null
lib/rir.ex
hertogp/rircheck
ea7cb4c8e3867995d50eedc482e53bcf11cee958
[ "MIT" ]
null
null
null
lib/rir.ex
hertogp/rircheck
ea7cb4c8e3867995d50eedc482e53bcf11cee958
[ "MIT" ]
null
null
null
defmodule Rir do @moduledoc """ Check your RIR registions. """ alias Rir.Api alias Rir.Ctx @doc """ Check an AS registration at [RIPEstat Data API](https://stat.ripe.net/docs/02.data-api/). Given `resource` is either - an IP address (will be translated to the ASN it belongs to) - an IP prefix (...
23.318182
75
0.635478
c8ffdc8e0fe75b72e728acaea8cfdb3fe32c99a7
1,622
ex
Elixir
lib/keriex/events/delegated/rotation.ex
m00sey/keriex
cb1442b5793f2c3e2ea381eeb1cab9dea14c39a8
[ "Apache-2.0" ]
null
null
null
lib/keriex/events/delegated/rotation.ex
m00sey/keriex
cb1442b5793f2c3e2ea381eeb1cab9dea14c39a8
[ "Apache-2.0" ]
null
null
null
lib/keriex/events/delegated/rotation.ex
m00sey/keriex
cb1442b5793f2c3e2ea381eeb1cab9dea14c39a8
[ "Apache-2.0" ]
null
null
null
defmodule Keriex.Events.Delegated.Rotation do alias Keriex.Seals.Location @moduledoc """ 'drt' - Delegated rotation event { "v" : "KERI10JSON00011c_", "i" : "EZAoTNZH3ULvaU6Z-i0d8JJR2nmwyYAfSVPzhzS6b5CM", "s" : "1", "t" : "rot", "p" : "EULvaU6JR2nmwyZ-i0d8JZAoTNZH3YAfSVPzhzS6b5CM", "...
28.45614
66
0.506165
c8ffe9637218f87e6f0abc443da5a574e5e16298
2,173
exs
Elixir
config/prod.exs
sgeos/memo_api
d57d0a1190296364a559510de9b4dd9d50b034e8
[ "CC0-1.0" ]
null
null
null
config/prod.exs
sgeos/memo_api
d57d0a1190296364a559510de9b4dd9d50b034e8
[ "CC0-1.0" ]
null
null
null
config/prod.exs
sgeos/memo_api
d57d0a1190296364a559510de9b4dd9d50b034e8
[ "CC0-1.0" ]
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.924242
67
0.712839
c8ffeeb8aec19a9facefbd7a92cb2f4492169a3c
882
ex
Elixir
clients/os_config/lib/google_api/os_config/v1/metadata.ex
corp-momenti/elixir-google-api
fe1580e305789ab2ca0741791b8ffe924bd3240c
[ "Apache-2.0" ]
null
null
null
clients/os_config/lib/google_api/os_config/v1/metadata.ex
corp-momenti/elixir-google-api
fe1580e305789ab2ca0741791b8ffe924bd3240c
[ "Apache-2.0" ]
null
null
null
clients/os_config/lib/google_api/os_config/v1/metadata.ex
corp-momenti/elixir-google-api
fe1580e305789ab2ca0741791b8ffe924bd3240c
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 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...
32.666667
74
0.758503
c8ffffed076f8a42c18432bff0b76a3275cc25b6
5,365
ex
Elixir
lib/perf/metrics_analyzer.ex
bancolombia/perf-analizer
16a90dad045413ee168fd2a45f975f3c03099fb3
[ "MIT" ]
1
2020-03-03T18:17:37.000Z
2020-03-03T18:17:37.000Z
lib/perf/metrics_analyzer.ex
bancolombia/perf-analizer
16a90dad045413ee168fd2a45f975f3c03099fb3
[ "MIT" ]
3
2020-02-20T18:53:59.000Z
2020-02-20T19:00:06.000Z
lib/perf/metrics_analyzer.ex
bancolombia/perf-analizer
16a90dad045413ee168fd2a45f975f3c03099fb3
[ "MIT" ]
null
null
null
defmodule Perf.MetricsAnalyzer do @moduledoc false use GenServer alias Perf.MetricsCollector def compute_metrics do GenServer.cast(__MODULE__, :compute) end def start_link(conf) do GenServer.start_link(__MODULE__, conf, name: __MODULE__) end @impl true def init(conf) do {:ok, conf} en...
32.125749
171
0.606151
7400007ea1b70c35fa0f6d5d2e177f3b56dcd9a4
2,213
exs
Elixir
mix.exs
lex-mala/ex_aws
06f3962d4077d00560b3bff99647eb82cd68fa8f
[ "MIT" ]
null
null
null
mix.exs
lex-mala/ex_aws
06f3962d4077d00560b3bff99647eb82cd68fa8f
[ "MIT" ]
null
null
null
mix.exs
lex-mala/ex_aws
06f3962d4077d00560b3bff99647eb82cd68fa8f
[ "MIT" ]
null
null
null
defmodule ExAws.Mixfile do use Mix.Project @source_url "https://github.com/ex-aws/ex_aws" @version "2.2.10" def project do [ app: :ex_aws, version: @version, elixir: "~> 1.7", elixirc_paths: elixirc_paths(Mix.env()), description: "Generic AWS client", name: "ExAws", ...
25.732558
73
0.535924