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
1d40701b2e894a025da07e875672224a72acf712
803
exs
Elixir
mix.exs
TimLang/elixir_hessian
578cac071f3434ee2380e8ae506cfafd6145c639
[ "MIT" ]
null
null
null
mix.exs
TimLang/elixir_hessian
578cac071f3434ee2380e8ae506cfafd6145c639
[ "MIT" ]
null
null
null
mix.exs
TimLang/elixir_hessian
578cac071f3434ee2380e8ae506cfafd6145c639
[ "MIT" ]
null
null
null
defmodule ElixirHessian.Mixfile do use Mix.Project def project do [app: :elixir_hessian, version: "0.1.0", elixir: "~> 1.3", build_embedded: Mix.env == :prod, start_permanent: Mix.env == :prod, deps: deps()] end # Configuration for the OTP application # # Type "mix help compil...
21.131579
77
0.60274
1d4078effd167496a8a38b88a100d278ad402a04
892
ex
Elixir
clients/sql_admin/lib/google_api/sql_admin/v1beta4/metadata.ex
myskoach/elixir-google-api
4f8cbc2fc38f70ffc120fd7ec48e27e46807b563
[ "Apache-2.0" ]
null
null
null
clients/sql_admin/lib/google_api/sql_admin/v1beta4/metadata.ex
myskoach/elixir-google-api
4f8cbc2fc38f70ffc120fd7ec48e27e46807b563
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/sql_admin/lib/google_api/sql_admin/v1beta4/metadata.ex
myskoach/elixir-google-api
4f8cbc2fc38f70ffc120fd7ec48e27e46807b563
[ "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...
33.037037
74
0.761211
1d408587b011dc6f0b1dfb9d485b273894675599
4,347
exs
Elixir
13-card-deck.exs
feng19/30-days-of-elixir
8a493366b32c0bb9abc2630c5bfb12f3e4578a83
[ "MIT" ]
null
null
null
13-card-deck.exs
feng19/30-days-of-elixir
8a493366b32c0bb9abc2630c5bfb12f3e4578a83
[ "MIT" ]
null
null
null
13-card-deck.exs
feng19/30-days-of-elixir
8a493366b32c0bb9abc2630c5bfb12f3e4578a83
[ "MIT" ]
null
null
null
defmodule Deck do @moduledoc """ Create, shuffle, deal a set of 52 cards. """ @doc """ Returns a list of tuples, in sorted order. """ def new do for suit <- ~w(Hearts Clubs Diamonds Spades), face <- [2, 3, 4, 5, 6, 7, 8, 9, 10, "J", "Q", "K", "A"], do: {suit, face} end @doc "...
29.571429
118
0.463538
1d408ca2875be9529d3dd16cfec4da2a7851d9a3
2,431
ex
Elixir
lib/extras/my_ex_pi/my_pi.ex
marick/ecto_test_dsl
6d460af093367098b7c78db709753deb45904d77
[ "Unlicense" ]
4
2021-02-09T17:26:34.000Z
2021-08-08T01:42:52.000Z
lib/extras/my_ex_pi/my_pi.ex
marick/transformer_test_support
6d460af093367098b7c78db709753deb45904d77
[ "Unlicense" ]
null
null
null
lib/extras/my_ex_pi/my_pi.ex
marick/transformer_test_support
6d460af093367098b7c78db709753deb45904d77
[ "Unlicense" ]
null
null
null
defmodule EctoTestDSL.MyPI do defmacro __using__(_) do quote do import(EctoTestDSL.MyPI) end end require Logger @default_options [ pretty: true, syntax_colors: [ number: :red, atom: :cyan, string: :green, binary: :yellow, map: :light_yellow, tuple: :wh...
25.861702
93
0.602221
1d4093422e8ef017352d90fc46e0327ee0dd824c
1,671
ex
Elixir
lib/git_exec.ex
vitaliel/breakout_sshd
a30ea0f47a009c557411f7b0ba5d4d2202469461
[ "MIT" ]
null
null
null
lib/git_exec.ex
vitaliel/breakout_sshd
a30ea0f47a009c557411f7b0ba5d4d2202469461
[ "MIT" ]
null
null
null
lib/git_exec.ex
vitaliel/breakout_sshd
a30ea0f47a009c557411f7b0ba5d4d2202469461
[ "MIT" ]
null
null
null
defmodule Breakout.GitExec do # %info{conn: conn, channel_id: 0} def start(info) do %{cmd: cmd} = info [bin, repo] = String.split cmd, ~r{\s+}, parts: 2 # strips 'test.git' and remove any ".." repo = repo |> String.strip(?') |> String.replace("..", "") info = Dict.merge info, %{bin: bin, repo...
27.85
79
0.587672
1d40a7f18586434a07c5b185bd03d78326049ef4
1,178
ex
Elixir
lib/fusion_jwt_authentication/support/http_fusion_mock.ex
nulian/fusion_jwt_authentication
293965ff94fe84fef7a422c21c6ef7e5a6e475cf
[ "MIT" ]
null
null
null
lib/fusion_jwt_authentication/support/http_fusion_mock.ex
nulian/fusion_jwt_authentication
293965ff94fe84fef7a422c21c6ef7e5a6e475cf
[ "MIT" ]
null
null
null
lib/fusion_jwt_authentication/support/http_fusion_mock.ex
nulian/fusion_jwt_authentication
293965ff94fe84fef7a422c21c6ef7e5a6e475cf
[ "MIT" ]
1
2021-03-25T14:46:52.000Z
2021-03-25T14:46:52.000Z
defmodule FusionJWTAuthentication.Support.HTTPFusionMock do @moduledoc """ Mock client for calls to fusionauth """ alias FusionJWTAuthentication.Support.FusionGlobalAppCertificate alias FusionJWTAuthentication.Support.TestUtils alias HTTPoison.Response def get("/api/jwt/public-key?applicationId=11111111-...
31
98
0.677419
1d40f7fa309c5f300e72392fd54381eab68ff191
614
exs
Elixir
test/miotwo_web/views/error_view_test.exs
jakswa/miotwo
b8455c0e019c952891f108dc5cd5ad134c57cbfc
[ "MIT" ]
2
2018-08-24T18:09:34.000Z
2020-07-20T01:42:37.000Z
test/miotwo_web/views/error_view_test.exs
jakswa/miotwo
b8455c0e019c952891f108dc5cd5ad134c57cbfc
[ "MIT" ]
null
null
null
test/miotwo_web/views/error_view_test.exs
jakswa/miotwo
b8455c0e019c952891f108dc5cd5ad134c57cbfc
[ "MIT" ]
1
2018-05-16T22:57:57.000Z
2018-05-16T22:57:57.000Z
defmodule MiotwoWeb.ErrorViewTest do use MiotwoWeb.ConnCase, async: true # Bring render/3 and render_to_string/3 for testing custom views import Phoenix.View test "renders 404.json" do assert render(MiotwoWeb.ErrorView, "404.json", []) == %{errors: %{detail: "Page not found"}} end test "re...
27.909091
66
0.651466
1d4124689860896a35c6d76e79c0cfb3ce04f7fb
251
ex
Elixir
lib/tarkus_web/mailers/generic_email.ex
ramonsantos/tarkus
fe59b810b448824e149c19c7568bd284aef6407a
[ "MIT" ]
1
2020-11-07T01:59:11.000Z
2020-11-07T01:59:11.000Z
lib/tarkus_web/mailers/generic_email.ex
ramonsantos/tarkus
fe59b810b448824e149c19c7568bd284aef6407a
[ "MIT" ]
null
null
null
lib/tarkus_web/mailers/generic_email.ex
ramonsantos/tarkus
fe59b810b448824e149c19c7568bd284aef6407a
[ "MIT" ]
null
null
null
defmodule Tarkus.GenericEmail do import Bamboo.Email def send(recipient, msg) do new_email() |> to(recipient) |> from("ramonsantos.wk@gmail.com") |> subject("Products Report") |> html_body(msg) |> text_body(msg) end end
19.307692
39
0.649402
1d41332c981bfc4b69cec0b9ea2c475e71107ac7
882
ex
Elixir
lib/myelin/cmd/task/task_spec.ex
neocortexlab/myelin
0f352c90b41de61133402fe32474a880b544d199
[ "Apache-2.0" ]
null
null
null
lib/myelin/cmd/task/task_spec.ex
neocortexlab/myelin
0f352c90b41de61133402fe32474a880b544d199
[ "Apache-2.0" ]
null
null
null
lib/myelin/cmd/task/task_spec.ex
neocortexlab/myelin
0f352c90b41de61133402fe32474a880b544d199
[ "Apache-2.0" ]
null
null
null
defmodule Myelin.Cmd.Task.CmdSpec do @moduledoc """ Command Spec for 'task' """ def spec do { :task, [ name: "task", about: "Operations with tasks", flags: [ new: [ short: "-n", long: "--new", help: "Create new task", mu...
21
68
0.379819
1d41364926e4b2b58ea1f81104d4fde8c9eb6cdc
2,012
ex
Elixir
clients/games/lib/google_api/games/v1/model/application_verify_response.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/games/lib/google_api/games/v1/model/application_verify_response.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/games/lib/google_api/games/v1/model/application_verify_response.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...
37.962264
211
0.727137
1d4171abf2760d7f044ea3c9a8ff094aae5105a8
2,404
ex
Elixir
clients/fitness/lib/google_api/fitness/v1/model/list_sessions_response.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/fitness/lib/google_api/fitness/v1/model/list_sessions_response.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/fitness/lib/google_api/fitness/v1/model/list_sessions_response.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...
42.928571
259
0.728369
1d417c1e12879418c9af148b1c4fcec46068a1a7
6,242
exs
Elixir
apps/dead_letter/test/unit/dead_letter_test.exs
PillarTechnology/smartcitiesdata
9420a26820e38267513cd1bfa82c7f5583222bb1
[ "Apache-2.0" ]
null
null
null
apps/dead_letter/test/unit/dead_letter_test.exs
PillarTechnology/smartcitiesdata
9420a26820e38267513cd1bfa82c7f5583222bb1
[ "Apache-2.0" ]
null
null
null
apps/dead_letter/test/unit/dead_letter_test.exs
PillarTechnology/smartcitiesdata
9420a26820e38267513cd1bfa82c7f5583222bb1
[ "Apache-2.0" ]
null
null
null
defmodule DeadLetterTest do use ExUnit.Case use Placebo import Assertions alias DeadLetter.Carrier.Test, as: Carrier @default_stacktrace [ {:erlang, :/, [1, 0], []}, {DeadLetter, :catcher, 1, [file: 'lib/dead_letter.ex', line: 26]}, {:erl_eval, :do_apply, 6, [file: 'erl_eval.erl', line: 680]}, ...
32.680628
119
0.635373
1d418e978ac42a60356f908d41c2c024767b8658
3,196
exs
Elixir
test/config/config.exs
jmerriweather/nerves_system_vibeq
94fcfa90f22c2af3192f57418ae926cf93837632
[ "Apache-2.0" ]
1
2018-09-27T10:50:22.000Z
2018-09-27T10:50:22.000Z
test/config/config.exs
jmerriweather/nerves_system_vibeq
94fcfa90f22c2af3192f57418ae926cf93837632
[ "Apache-2.0" ]
null
null
null
test/config/config.exs
jmerriweather/nerves_system_vibeq
94fcfa90f22c2af3192f57418ae926cf93837632
[ "Apache-2.0" ]
null
null
null
use Mix.Config # Repository specific configuration system = :nerves_system_vibeq platform = "vibeq" arch = "arm" app_part_devparth = "/dev/mmcblk0p4" network_interface = System.get_env("NERVES_NETWORK_INTERFACE") || "eth0" # Environment specific configuration # Nerves Project test farm configuration # NERVES_TEST...
36.318182
86
0.765957
1d419efd1de60aee9e99ac8a1d60c08cbb7d2ebf
451
ex
Elixir
lib/nostrum/error/voice_error.ex
phereford/nostrum
3d273671f51d839eedac4d6e52ba9cf70720ac01
[ "MIT" ]
637
2017-03-07T11:25:35.000Z
2022-03-31T13:37:51.000Z
lib/nostrum/error/voice_error.ex
phereford/nostrum
3d273671f51d839eedac4d6e52ba9cf70720ac01
[ "MIT" ]
372
2017-03-07T20:42:03.000Z
2022-03-30T22:46:46.000Z
lib/nostrum/error/voice_error.ex
phereford/nostrum
3d273671f51d839eedac4d6e52ba9cf70720ac01
[ "MIT" ]
149
2017-03-07T12:11:58.000Z
2022-03-19T22:11:51.000Z
defmodule Nostrum.Error.VoiceError do @moduledoc """ Represents an error when playing sound through voice channels. This occurs when attempting to play audio and Porcelain can't find either the ffmpeg executable or the youtube-dl executable. """ defexception [:message] def exception(reason: reason, exe...
28.1875
75
0.740576
1d41a1f46701d2a4e16f868df8cdcd1bb52de87a
646
exs
Elixir
config/test.exs
jhonisds/bank
d053a8ddf47839b12ffde0397cc6be5ec86b4de3
[ "MIT" ]
null
null
null
config/test.exs
jhonisds/bank
d053a8ddf47839b12ffde0397cc6be5ec86b4de3
[ "MIT" ]
null
null
null
config/test.exs
jhonisds/bank
d053a8ddf47839b12ffde0397cc6be5ec86b4de3
[ "MIT" ]
null
null
null
use Mix.Config # Configure your database # # The MIX_TEST_PARTITION environment variable can be used # to provide built-in test partitioning in CI environment. # Run `mix help test` for more information. config :bank, Bank.Repo, username: "postgres", password: "postgres", database: "bank_test#{System.get_env("MI...
28.086957
63
0.743034
1d41c987b7c45433cac88e3401ccba015cb88f29
2,113
ex
Elixir
lib/bitcoin/protocol/messages/get_headers.ex
coinscript/bitcoinsv-elixir
2dda03c81edc5662743ed2922abb5b1910d9c09a
[ "Apache-2.0" ]
2
2019-08-12T04:53:57.000Z
2019-09-03T03:47:33.000Z
lib/bitcoin/protocol/messages/get_headers.ex
coinscript/bitcoinsv-elixir
2dda03c81edc5662743ed2922abb5b1910d9c09a
[ "Apache-2.0" ]
null
null
null
lib/bitcoin/protocol/messages/get_headers.ex
coinscript/bitcoinsv-elixir
2dda03c81edc5662743ed2922abb5b1910d9c09a
[ "Apache-2.0" ]
null
null
null
defmodule Bitcoin.Protocol.Messages.GetHeaders do @moduledoc """ Return a headers packet containing the headers of blocks starting right after the last known hash in the block locator object, up to hash_stop or 2000 blocks, whichever comes first. To receive the next block headers, one needs to issue gethe...
39.12963
119
0.67203
1d41d75a62dc5b6c50b104817755a44478ceae90
316
ex
Elixir
lib/ewebmachine/compat.ex
awetzel/ewebmachine
64b7ed15aa10bee8b012c46383259c24a46a5309
[ "MIT" ]
66
2015-01-22T06:40:13.000Z
2017-04-19T09:16:32.000Z
lib/ewebmachine/compat.ex
awetzel/ewebmachine
64b7ed15aa10bee8b012c46383259c24a46a5309
[ "MIT" ]
19
2015-01-22T12:12:46.000Z
2017-02-09T10:47:38.000Z
lib/ewebmachine/compat.ex
awetzel/ewebmachine
64b7ed15aa10bee8b012c46383259c24a46a5309
[ "MIT" ]
10
2015-01-25T11:27:34.000Z
2016-10-03T12:56:11.000Z
defmodule Ewebmachine.Compat do @moduledoc false end defmodule Ewebmachine.Compat.Enum do @moduledoc false case Version.compare(System.version(), "1.4.0") do :gt -> defdelegate split_with(arg0, arg1), to: Enum _ -> defdelegate split_with(arg0, arg1), to: Enum, as: :partition end end
21.066667
66
0.686709
1d41ed2745c07166038f64a3cb822bee8087c68f
25,215
ex
Elixir
lib/mix/lib/mix/release.ex
britto/elixir
1f6e7093cff4b68dada60b924399bc8404d39a7e
[ "Apache-2.0" ]
2
2020-06-02T18:00:28.000Z
2021-12-10T03:21:42.000Z
lib/mix/lib/mix/release.ex
britto/elixir
1f6e7093cff4b68dada60b924399bc8404d39a7e
[ "Apache-2.0" ]
null
null
null
lib/mix/lib/mix/release.ex
britto/elixir
1f6e7093cff4b68dada60b924399bc8404d39a7e
[ "Apache-2.0" ]
null
null
null
defmodule Mix.Release do @moduledoc """ Defines the release structure and convenience for assembling releases. """ @doc """ The Mix.Release struct has the following read-only fields: * `:name` - the name of the release as an atom * `:version` - the version of the release as a string or `{:fro...
31.284119
104
0.624232
1d420d37aa7d59ecf82ff1cae05d16dca62f42d8
2,000
exs
Elixir
config/config.exs
rawdamedia/quoil
8d7be55d15442e2f0cf8743d5ceb1dd5761e9356
[ "MIT" ]
1
2015-07-17T13:42:12.000Z
2015-07-17T13:42:12.000Z
config/config.exs
rawdamedia/quoil
8d7be55d15442e2f0cf8743d5ceb1dd5761e9356
[ "MIT" ]
3
2015-07-17T07:52:30.000Z
2016-03-16T11:34:48.000Z
config/config.exs
rawdamedia/quoil
8d7be55d15442e2f0cf8743d5ceb1dd5761e9356
[ "MIT" ]
1
2015-07-17T11:50:44.000Z
2015-07-17T11:50:44.000Z
# 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...
35.714286
107
0.6815
1d424dd9bd4e45b0a42af34c42468ce74c4ab28b
346
exs
Elixir
test/mafia_interface_web/live/page_live_test.exs
menxs/mafia_interface
311f709e512dca4e26b0c0faccf5dfe07df20673
[ "MIT" ]
null
null
null
test/mafia_interface_web/live/page_live_test.exs
menxs/mafia_interface
311f709e512dca4e26b0c0faccf5dfe07df20673
[ "MIT" ]
null
null
null
test/mafia_interface_web/live/page_live_test.exs
menxs/mafia_interface
311f709e512dca4e26b0c0faccf5dfe07df20673
[ "MIT" ]
1
2022-03-28T06:09:12.000Z
2022-03-28T06:09:12.000Z
defmodule MafiaInterfaceWeb.PageLiveTest do use MafiaInterfaceWeb.ConnCase import Phoenix.LiveViewTest test "disconnected and connected render", %{conn: conn} do {:ok, page_live, disconnected_html} = live(conn, "/") assert disconnected_html =~ "Welcome to Phoenix!" assert render(page_live) =~ "Welco...
28.833333
60
0.736994
1d4250d3cf0279cd2243abd8f9590d64af34b29e
2,137
ex
Elixir
clients/monitoring/lib/google_api/monitoring/v3/model/request_based_sli.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/monitoring/lib/google_api/monitoring/v3/model/request_based_sli.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/monitoring/lib/google_api/monitoring/v3/model/request_based_sli.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...
42.74
308
0.762284
1d4252257782a535f3da19dfa0f821a85e2bdbe5
18,293
ex
Elixir
farmbot_os/platform/target/nerves_hub_client.ex
Arti4ever/farmbot_os
a238c1d5ae78c08d1f5894cac41ed61035fb3266
[ "MIT" ]
null
null
null
farmbot_os/platform/target/nerves_hub_client.ex
Arti4ever/farmbot_os
a238c1d5ae78c08d1f5894cac41ed61035fb3266
[ "MIT" ]
null
null
null
farmbot_os/platform/target/nerves_hub_client.ex
Arti4ever/farmbot_os
a238c1d5ae78c08d1f5894cac41ed61035fb3266
[ "MIT" ]
null
null
null
defmodule FarmbotOS.Platform.Target.NervesHubClient do @moduledoc """ NervesHub.Client implementation. This should be one of the very first processes to be started. Because it is started so early, it has to check for things that might not be available in the environment. Environment is checked in this orde...
27.221726
96
0.63456
1d4260dfaf7102001ab086ba04418c5a9d2a5fcc
906
ex
Elixir
test/support/conn_case.ex
sreecodeslayer/hello-phoenix-genserver
a30b95af71cacb7df53222bd34dcbae682b98282
[ "MIT" ]
1
2020-01-31T20:38:34.000Z
2020-01-31T20:38:34.000Z
test/support/conn_case.ex
sreecodeslayer/hello-phoenix-genserver
a30b95af71cacb7df53222bd34dcbae682b98282
[ "MIT" ]
null
null
null
test/support/conn_case.ex
sreecodeslayer/hello-phoenix-genserver
a30b95af71cacb7df53222bd34dcbae682b98282
[ "MIT" ]
null
null
null
defmodule HelloGenserverWeb.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...
27.454545
59
0.735099
1d4276b7ddaf30732d930c3ba8ea5f8296e59ce3
1,184
ex
Elixir
lib/components.ex
BinaryNoggin/scenic_keypad
e5e627082377c537617c568106cc66146fd620c4
[ "MIT" ]
6
2018-09-18T13:38:31.000Z
2021-05-14T01:08:16.000Z
lib/components.ex
BinaryNoggin/scenic_keypad
e5e627082377c537617c568106cc66146fd620c4
[ "MIT" ]
1
2018-09-29T23:44:16.000Z
2018-09-29T23:44:16.000Z
lib/components.ex
BinaryNoggin/scenic_keypad
e5e627082377c537617c568106cc66146fd620c4
[ "MIT" ]
2
2018-09-29T23:28:53.000Z
2020-01-09T01:24:05.000Z
defmodule Scenic.Keypad.Components do @moduledoc """ A set of helper functions to make it easy to add, or modify, keypads to a graph. The options available are the basic options for any component (ie. :scale, :translate, etc). Keypad also take a second options of `:buttons`. The `:buttons` option takes in the ...
31.157895
101
0.67652
1d428266680928340945d63287969f0f33d9068e
61
exs
Elixir
test/owl_test.exs
kianmeng/owl
55c0f31438866d79526d1feab44e23728ad88dd6
[ "Apache-2.0" ]
null
null
null
test/owl_test.exs
kianmeng/owl
55c0f31438866d79526d1feab44e23728ad88dd6
[ "Apache-2.0" ]
null
null
null
test/owl_test.exs
kianmeng/owl
55c0f31438866d79526d1feab44e23728ad88dd6
[ "Apache-2.0" ]
null
null
null
defmodule OwlTest do use ExUnit.Case doctest Owl.Tag end
12.2
20
0.770492
1d429b19f488b9e1fe9b36923c790695b08519ed
1,581
ex
Elixir
apps/seren/lib/seren_web/endpoint.ex
allen-garvey/phoenix-umbrella
1d444bbd62a5e7b5f51d317ce2be71ee994125d5
[ "MIT" ]
4
2019-10-04T16:11:15.000Z
2021-08-18T21:00:13.000Z
apps/seren/lib/seren_web/endpoint.ex
allen-garvey/phoenix-umbrella
1d444bbd62a5e7b5f51d317ce2be71ee994125d5
[ "MIT" ]
5
2020-03-16T23:52:25.000Z
2021-09-03T16:52:17.000Z
apps/seren/lib/seren_web/endpoint.ex
allen-garvey/phoenix-umbrella
1d444bbd62a5e7b5f51d317ce2be71ee994125d5
[ "MIT" ]
null
null
null
defmodule SerenWeb.Endpoint do use Phoenix.Endpoint, otp_app: :seren # Serve at "/" the static files from "priv/static" directory. # # You should set gzip to true if you are running phoenix.digest # when deploying your static files in production. plug Plug.Static, at: "/", from: :seren, gzip: false, ...
29.830189
95
0.71284
1d42c7800f564d5bd072478a5243b0642ebd9989
462
ex
Elixir
test/support/mock_models.ex
kianmeng/ex_aws_dynamo
e7870700c0c8ed740e31c487fc90fbca08e6c677
[ "MIT", "Unlicense" ]
null
null
null
test/support/mock_models.ex
kianmeng/ex_aws_dynamo
e7870700c0c8ed740e31c487fc90fbca08e6c677
[ "MIT", "Unlicense" ]
null
null
null
test/support/mock_models.ex
kianmeng/ex_aws_dynamo
e7870700c0c8ed740e31c487fc90fbca08e6c677
[ "MIT", "Unlicense" ]
null
null
null
defmodule Test.User do @moduledoc false @derive ExAws.Dynamo.Encodable defstruct [:email, :name, :age, :admin] defimpl ExAws.Dynamo.Decodable do def decode(%{name: %{"first" => first, "last" => last}} = user) do %{user | name: %{first: first, last: last}} end def decode(value), do: value e...
23.1
70
0.655844
1d42d53f87df4c9218bfb22f4d2aa6ca74a35abe
1,679
exs
Elixir
test/ueberauth/strategy/cas/user_test.exs
egillet/ueberauth_cas
9c546226e59eace0504a275431710ec67d8e0370
[ "MIT" ]
null
null
null
test/ueberauth/strategy/cas/user_test.exs
egillet/ueberauth_cas
9c546226e59eace0504a275431710ec67d8e0370
[ "MIT" ]
null
null
null
test/ueberauth/strategy/cas/user_test.exs
egillet/ueberauth_cas
9c546226e59eace0504a275431710ec67d8e0370
[ "MIT" ]
1
2020-05-13T13:13:09.000Z
2020-05-13T13:13:09.000Z
defmodule Ueberauth.Strategy.CAS.User.Test do use ExUnit.Case alias Ueberauth.Strategy.CAS.User setup do xml = """ <cas:serviceResponse xmlns:cas="http://www.yale.edu/tp/cas"> <cas:authenticationSuccess> <cas:user>Mail@marceldegraaf.net</cas:user> <cas:attributes> <cas:au...
30.527273
104
0.642644
1d42e20c5a90f3ddc9f9239c09f775b433978d76
30,198
exs
Elixir
test/ecto/adapters/mysql_test.exs
jwarwick/ecto
d1e43287775579e337a2e6a3763fa53ce2a33e4d
[ "Apache-2.0" ]
null
null
null
test/ecto/adapters/mysql_test.exs
jwarwick/ecto
d1e43287775579e337a2e6a3763fa53ce2a33e4d
[ "Apache-2.0" ]
null
null
null
test/ecto/adapters/mysql_test.exs
jwarwick/ecto
d1e43287775579e337a2e6a3763fa53ce2a33e4d
[ "Apache-2.0" ]
null
null
null
Code.require_file "../../../integration_test/support/types.exs", __DIR__ defmodule Ecto.Adapters.MySQLTest do use ExUnit.Case, async: true import Ecto.Query alias Ecto.Queryable alias Ecto.Adapters.MySQL.Connection, as: SQL defmodule Schema do use Ecto.Schema schema "schema" do field :x, :i...
40.863329
126
0.58335
1d42e5281cdf2d7c8ee2cbdbaf301439bcec2ff0
1,391
ex
Elixir
clients/cloud_search/lib/google_api/cloud_search/v1/model/email_address.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/email_address.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/email_address.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...
29.595745
80
0.734004
1d42eb9787e1ac51e9dfbd2f5717fa1a5b434256
676
exs
Elixir
bench/exhmac_bench.exs
lizhaochao/ExHmac
9e7e00999362107e17528d6d9af97da7f461d6a9
[ "MIT" ]
null
null
null
bench/exhmac_bench.exs
lizhaochao/ExHmac
9e7e00999362107e17528d6d9af97da7f461d6a9
[ "MIT" ]
null
null
null
bench/exhmac_bench.exs
lizhaochao/ExHmac
9e7e00999362107e17528d6d9af97da7f461d6a9
[ "MIT" ]
null
null
null
defmodule ExHmacBench do use Benchfella alias ExHmac.{Config, Core} alias ExHmac.Use.Helper @long_string "StringShouldChange-some_stuffStringShouldChange-some_stuffStringShouldChange-some_stuffStringShouldChange-some_stuffStringShouldChange-some_stuff" @config Config.get_config([]) bench "sign/4" do ...
24.142857
162
0.695266
1d42ef0343bc9c62452575aa4e411d06fab08b6e
21,114
exs
Elixir
test_fixtures/precompiled/good-fragments.exs
nallwhy/Serum
ed9f51a83e328789ccfca18d2a0397b45ac4be0f
[ "MIT" ]
null
null
null
test_fixtures/precompiled/good-fragments.exs
nallwhy/Serum
ed9f51a83e328789ccfca18d2a0397b45ac4be0f
[ "MIT" ]
null
null
null
test_fixtures/precompiled/good-fragments.exs
nallwhy/Serum
ed9f51a83e328789ccfca18d2a0397b45ac4be0f
[ "MIT" ]
null
null
null
[%{__struct__: Serum.Fragment, data: "\n<h2>All Posts</h2>\n<ul>\n \n <li>\n <p><a href=\"/test-site/home/dalgona/repo/Serum/priv/fixtures/posts/good-post.html\">Test Post</a>\n &mdash;\n <span class=\"date\">2019-01-01</span></p>\n </li>\n \n <li>\n <p><a href=\"/test-site/home/dalgona/r...
1,242
2,157
0.655395
1d432e4b547cb698f7a4dcea0cd0bbba48c0d1ad
379
ex
Elixir
apps/server_web/lib/server_web/controllers/fallback_controller.ex
shtanaka/gs-cup
697f000f79dd61221b6fbaac08abd2366613679c
[ "MIT" ]
null
null
null
apps/server_web/lib/server_web/controllers/fallback_controller.ex
shtanaka/gs-cup
697f000f79dd61221b6fbaac08abd2366613679c
[ "MIT" ]
null
null
null
apps/server_web/lib/server_web/controllers/fallback_controller.ex
shtanaka/gs-cup
697f000f79dd61221b6fbaac08abd2366613679c
[ "MIT" ]
null
null
null
defmodule ServerWeb.FallbackController do use Phoenix.Controller alias ServerWeb.ErrorView def call(conn, {:error, :not_found}) do conn |> put_status(:not_found) |> put_view(ErrorView) |> render(:"404") end def call(conn, {:error, :unauthorized}) do conn |> put_status(:unauthorized) ...
19.947368
44
0.654354
1d43bcb2fe0d4004c4ba497aad02fa2934587333
613
ex
Elixir
lib/live_sup/core/widgets/wordpress/core_health_status/worker.ex
livesup-dev/livesup
eaf9ffc78d3043bd9e3408f0f4df26ed16eb8446
[ "Apache-2.0", "MIT" ]
null
null
null
lib/live_sup/core/widgets/wordpress/core_health_status/worker.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/widgets/wordpress/core_health_status/worker.ex
livesup-dev/livesup
eaf9ffc78d3043bd9e3408f0f4df26ed16eb8446
[ "Apache-2.0", "MIT" ]
null
null
null
defmodule LiveSup.Core.Widgets.Wordpress.CoreHealthStatus.Worker do use LiveSup.Core.Widgets.WidgetServer alias LiveSup.Core.Widgets.Wordpress.CoreHealthStatus.Handler alias LiveSup.Schemas.WidgetInstance alias LiveSup.Core.Widgets.Wordpress.WordpressConfig @default_title "Wordpress Core Health" @impl tr...
21.892857
67
0.755302
1d43d449378eac2f144035c340b7f3b8bd8d1190
1,215
exs
Elixir
apps/api/mix.exs
evansb/conifer
926b9a60c15711877e5869459b837c825edbe693
[ "MIT" ]
null
null
null
apps/api/mix.exs
evansb/conifer
926b9a60c15711877e5869459b837c825edbe693
[ "MIT" ]
null
null
null
apps/api/mix.exs
evansb/conifer
926b9a60c15711877e5869459b837c825edbe693
[ "MIT" ]
null
null
null
defmodule Api.Mixfile do use Mix.Project def project do [app: :api, version: "0.0.1", build_path: "../../_build", config_path: "../../config/config.exs", deps_path: "../../deps", lockfile: "../../mix.lock", elixir: "~> 1.2", elixirc_paths: elixirc_paths(Mix.env), compile...
23.823529
63
0.567901
1d4415e1c0f99ec1a56bd0b454de825b1434bba3
6,479
ex
Elixir
test/support/live_views/elements.ex
ucwaldo/phoenix_live_view
aa192420dc3b3b4158bbc7582ce39cb149221170
[ "MIT" ]
1
2020-12-23T18:28:30.000Z
2020-12-23T18:28:30.000Z
test/support/live_views/elements.ex
ucwaldo/phoenix_live_view
aa192420dc3b3b4158bbc7582ce39cb149221170
[ "MIT" ]
null
null
null
test/support/live_views/elements.ex
ucwaldo/phoenix_live_view
aa192420dc3b3b4158bbc7582ce39cb149221170
[ "MIT" ]
1
2020-09-23T17:11:30.000Z
2020-09-23T17:11:30.000Z
defmodule Phoenix.LiveViewTest.ElementsLive do use Phoenix.LiveView def render(assigns) do ~L""" <%# lookups %> <div id="last-event"><%= @event %></div> <div id="scoped-render"><span>This</span> is a div</div> <div>This</div> <%# basic render_* %> <span id="span-no-attr">This is a span...
53.106557
147
0.647631
1d443fe7d239c062a7505be417eb6f4b18298760
2,399
exs
Elixir
test/float_16_test.exs
gridgentoo/cuda
e758c05674605e4601c568160904bcd5e2e7be94
[ "MIT" ]
4
2019-09-18T14:25:02.000Z
2021-12-16T12:09:10.000Z
test/float_16_test.exs
gridgentoo/cuda
e758c05674605e4601c568160904bcd5e2e7be94
[ "MIT" ]
null
null
null
test/float_16_test.exs
gridgentoo/cuda
e758c05674605e4601c568160904bcd5e2e7be94
[ "MIT" ]
1
2021-11-08T11:50:08.000Z
2021-11-08T11:50:08.000Z
defmodule Cuda.Float16Test do use ExUnit.Case import Cuda.Float16 describe "pack/1" do test "Positive value without fraction" do assert pack(2) == <<0::size(1),16::size(5),0::size(10)>> end test "Negative value without fraction" do assert pack(-2) == <<1::size(1),16::size(5),0::size(10)>...
26.955056
81
0.571071
1d44500ceebd7c65fb685121c73e26f7ba18652e
10,629
ex
Elixir
lib/moebius/document_query.ex
KritR/moebius
fc242bfd474ed4c030487749fe0354469fa7d5b8
[ "BSD-3-Clause" ]
null
null
null
lib/moebius/document_query.ex
KritR/moebius
fc242bfd474ed4c030487749fe0354469fa7d5b8
[ "BSD-3-Clause" ]
null
null
null
lib/moebius/document_query.ex
KritR/moebius
fc242bfd474ed4c030487749fe0354469fa7d5b8
[ "BSD-3-Clause" ]
null
null
null
defmodule Moebius.DocumentQuery do @moduledoc """ If you like your Postgres doing document goodness, then you'll want to use this interface. Just include it in your module and you can work directly with JSONB in PostgreSQL. We've tried to keep reasonable parity with the Query interface, but there are some conc...
29.040984
140
0.642582
1d4462d8eb36940682e38295097be16b5479b46d
1,992
ex
Elixir
lib/esx/model/response.ex
gor181/esx
8cc247ff92e2dac7f4ee4601298521622597f10c
[ "MIT" ]
null
null
null
lib/esx/model/response.ex
gor181/esx
8cc247ff92e2dac7f4ee4601298521622597f10c
[ "MIT" ]
null
null
null
lib/esx/model/response.ex
gor181/esx
8cc247ff92e2dac7f4ee4601298521622597f10c
[ "MIT" ]
null
null
null
defmodule ESx.Model.Response do @moduledoc """ Parse query result, there's suggest, aggregations, hits, etc.. """ defstruct [ :took, :timed_out, :shards, :total, :max_score, :suggest, :aggregations, :response, :__schema__, :__model__, hits: [], records: [] ] ...
22.896552
75
0.591867
1d449e7c7940a0317f40127441ed6da78bbae3b3
1,816
exs
Elixir
config/prod.exs
karolsluszniak/live_auth_and_avatars-phoenix-1.6
9a7ecae14cd4ce15094adcbaf7f7daec5f2cd5ab
[ "MIT" ]
null
null
null
config/prod.exs
karolsluszniak/live_auth_and_avatars-phoenix-1.6
9a7ecae14cd4ce15094adcbaf7f7daec5f2cd5ab
[ "MIT" ]
null
null
null
config/prod.exs
karolsluszniak/live_auth_and_avatars-phoenix-1.6
9a7ecae14cd4ce15094adcbaf7f7daec5f2cd5ab
[ "MIT" ]
null
null
null
import Config # For production, don't forget to configure the url host # to something meaningful, Phoenix uses this information # when generating URLs. # # Note we also include the path to a cache manifest # containing the digested version of static files. This # manifest is generated by the `mix phx.digest` task, # w...
34.923077
66
0.702093
1d44a9c461e7e97541432fd2082c90853e07d0b6
3,440
ex
Elixir
lib/xema/ref.ex
kianmeng/xema
a990d64fb4bcd708249514daa55426ee003da25d
[ "MIT" ]
49
2018-06-05T09:42:19.000Z
2022-02-15T12:50:51.000Z
lib/xema/ref.ex
kianmeng/xema
a990d64fb4bcd708249514daa55426ee003da25d
[ "MIT" ]
152
2017-06-11T13:43:06.000Z
2022-01-09T17:13:45.000Z
lib/xema/ref.ex
kianmeng/xema
a990d64fb4bcd708249514daa55426ee003da25d
[ "MIT" ]
6
2019-05-31T05:41:47.000Z
2021-12-14T08:09:36.000Z
defmodule Xema.Ref do @moduledoc """ This module contains a struct and functions to represent and handle references. """ alias Xema.{Ref, Schema, Utils, Validator} require Logger @typedoc """ A reference contains a `pointer` and an optional `uri`. """ @type t :: %__MODULE__{ pointer: St...
25.481481
78
0.584302
1d44be3e50ee368ec5779e72b152ef77d0bb2e1e
3,631
ex
Elixir
lib/atom_tweaks/accounts.ex
amymariparker/atom-style-tweaks
9f17b626e4a527d17d2da85ac575029b52fb6a25
[ "MIT" ]
14
2017-01-08T14:51:25.000Z
2022-03-14T09:23:17.000Z
lib/atom_tweaks/accounts.ex
amymariparker/atom-style-tweaks
9f17b626e4a527d17d2da85ac575029b52fb6a25
[ "MIT" ]
654
2017-05-23T22:55:21.000Z
2022-03-30T09:02:25.000Z
lib/atom_tweaks/accounts.ex
amymariparker/atom-style-tweaks
9f17b626e4a527d17d2da85ac575029b52fb6a25
[ "MIT" ]
4
2019-07-10T23:09:25.000Z
2020-02-09T12:14:00.000Z
defmodule AtomTweaks.Accounts do @moduledoc """ Context for handling accounts and their operations. """ import Ecto.Query, warn: false alias Ecto.Changeset alias AtomTweaks.Accounts.Token alias AtomTweaks.Accounts.User alias AtomTweaks.Repo alias AtomTweaks.Tweaks.Star alias AtomTweaks.Tweaks.Twea...
24.869863
96
0.614156
1d44d637be9537bd21471c04abc4092312257aee
3,275
ex
Elixir
lib/cqrs/domain_event.ex
sebaughman/elixir_cqrs_tools
3f226e23af568d0422765e8bb526d966d83d34da
[ "MIT" ]
17
2021-05-04T09:27:48.000Z
2022-02-02T00:53:28.000Z
lib/cqrs/domain_event.ex
sebaughman/elixir_cqrs_tools
3f226e23af568d0422765e8bb526d966d83d34da
[ "MIT" ]
18
2021-05-05T21:17:54.000Z
2021-12-08T19:25:21.000Z
lib/cqrs/domain_event.ex
sebaughman/elixir_cqrs_tools
3f226e23af568d0422765e8bb526d966d83d34da
[ "MIT" ]
2
2021-05-04T13:35:00.000Z
2021-07-08T22:28:32.000Z
defmodule Cqrs.DomainEvent do @moduledoc """ Defines a new domain event struct ## Options * `:from` _optional_ - a struct to derive fields from. * `:with` _optional_ - a list of `atom` field names to add. * `:drop` _optional_ - a list of `atom` field names to remove from any field derived from the struct ...
27.291667
125
0.612214
1d44e15300348cf9681d7e66045cf712fe40d950
207
exs
Elixir
test/mailgun_ex_test.exs
aforward/mailgun_ex
70456f4086ff5207c9c4b184f6237447448f0f9c
[ "MIT" ]
null
null
null
test/mailgun_ex_test.exs
aforward/mailgun_ex
70456f4086ff5207c9c4b184f6237447448f0f9c
[ "MIT" ]
null
null
null
test/mailgun_ex_test.exs
aforward/mailgun_ex
70456f4086ff5207c9c4b184f6237447448f0f9c
[ "MIT" ]
1
2019-05-10T13:32:19.000Z
2019-05-10T13:32:19.000Z
defmodule MailgunExTest do use ExUnit.Case doctest MailgunEx.Api doctest MailgunEx.Content doctest MailgunEx.Opts doctest MailgunEx.Url doctest MailgunEx.Request doctest MailgunEx.Response end
20.7
28
0.811594
1d44e32702836d4949681414d142e717dac1c062
1,928
ex
Elixir
lib/nflrushing_web.ex
mvanlamz/nflrushing
7b796fe7633e54795dc3a60193cdb66c578988c7
[ "MIT" ]
null
null
null
lib/nflrushing_web.ex
mvanlamz/nflrushing
7b796fe7633e54795dc3a60193cdb66c578988c7
[ "MIT" ]
null
null
null
lib/nflrushing_web.ex
mvanlamz/nflrushing
7b796fe7633e54795dc3a60193cdb66c578988c7
[ "MIT" ]
null
null
null
defmodule NflrushingWeb do @moduledoc """ The entrypoint for defining your web interface, such as controllers, views, channels and so on. This can be used in your application as: use NflrushingWeb, :controller use NflrushingWeb, :view The definitions below will be executed for every view, con...
23.512195
76
0.69139
1d44ff2df8fad43d8ee58590d83f0069a470e9b1
614
ex
Elixir
lib/poker.ex
Dogzhou/poker
614c4ecd4edc844f003ee3cb723191e159dbacde
[ "MIT" ]
null
null
null
lib/poker.ex
Dogzhou/poker
614c4ecd4edc844f003ee3cb723191e159dbacde
[ "MIT" ]
null
null
null
lib/poker.ex
Dogzhou/poker
614c4ecd4edc844f003ee3cb723191e159dbacde
[ "MIT" ]
null
null
null
defmodule Poker do @moduledoc false alias Poker.{Hand, BestHand} @doc """ Given a list of poker hands, return a list containing the highest scoring hand. ## Examples iex(1)> high_of_8 = ~w(4D 5S 6S 8D 3C) iex(2)> high_of_10 = ~w(2S 4C 7S 9H 10H) iex(3)> high_of_jack = ~w(3S 4S 5D 6H JH) iex(...
26.695652
81
0.630293
1d452bc93fe5f928cf8a701c742f1b7b88eb799a
2,585
ex
Elixir
lib/changelog_web/controllers/admin/podcast_controller.ex
boneskull/changelog.com
2fa2e356bb0e8fcf038c46a4a947fef98822e37d
[ "MIT" ]
null
null
null
lib/changelog_web/controllers/admin/podcast_controller.ex
boneskull/changelog.com
2fa2e356bb0e8fcf038c46a4a947fef98822e37d
[ "MIT" ]
null
null
null
lib/changelog_web/controllers/admin/podcast_controller.ex
boneskull/changelog.com
2fa2e356bb0e8fcf038c46a4a947fef98822e37d
[ "MIT" ]
null
null
null
defmodule ChangelogWeb.Admin.PodcastController do use ChangelogWeb, :controller alias Changelog.{Cache, Podcast} plug :assign_podcast when action in [:show, :edit, :update] plug Authorize, [Policies.Podcast, :podcast] plug :scrub_params, "podcast" when action in [:create, :update] def index(conn = %{assi...
29.375
96
0.644487
1d452e483d6278e55cbae3ed1b222ec95d7ea308
957
ex
Elixir
lib/pummpcomm/session/exchange/read_pump_model.ex
infinity-aps/pummpcomm
7380585ecd110ab1c19d2aea3880e51e3f433050
[ "MIT" ]
15
2017-08-31T00:58:47.000Z
2020-01-12T03:53:13.000Z
lib/pummpcomm/session/exchange/read_pump_model.ex
vladhj38/pummpcomm
7380585ecd110ab1c19d2aea3880e51e3f433050
[ "MIT" ]
1
2017-09-15T02:09:31.000Z
2017-09-15T02:09:31.000Z
lib/pummpcomm/session/exchange/read_pump_model.ex
vladhj38/pummpcomm
7380585ecd110ab1c19d2aea3880e51e3f433050
[ "MIT" ]
3
2017-09-10T17:24:59.000Z
2019-09-10T19:41:49.000Z
defmodule Pummpcomm.Session.Exchange.ReadPumpModel do @moduledoc """ Reads `Pumpcomm.PumpModel.pump_model` from pump """ alias Pummpcomm.PumpModel alias Pummpcomm.Session.{Command, Response} # Constants @opcode 0x8D # Functions @doc """ Decodes `Pummpcomm.PumpModel.pump_model` from `Pummpcomm.S...
28.147059
95
0.711599
1d45981e03969c9d6ebcd77aea2a747e1e4465cd
478
ex
Elixir
lib/web_driver_client/compatibility_macros.ex
fimassuda/web_driver_client
09d373c9a8a923c5e2860f107f84b16565e338f7
[ "MIT" ]
8
2019-11-24T18:33:12.000Z
2020-12-09T10:20:09.000Z
lib/web_driver_client/compatibility_macros.ex
fimassuda/web_driver_client
09d373c9a8a923c5e2860f107f84b16565e338f7
[ "MIT" ]
67
2019-12-20T16:33:30.000Z
2021-09-14T03:50:10.000Z
lib/web_driver_client/compatibility_macros.ex
fimassuda/web_driver_client
09d373c9a8a923c5e2860f107f84b16565e338f7
[ "MIT" ]
10
2020-06-19T16:15:03.000Z
2021-09-13T17:56:25.000Z
defmodule WebDriverClient.CompatibilityMacros do @moduledoc false defmacro doc_metadata(opts) do if System.version() |> Version.match?(">= 1.7.0") do quote do @doc unquote(opts) end end end defmacro prerelease_moduledoc(opts) do if Application.get_env(:web_driver_client, :inclu...
19.916667
75
0.648536
1d45be10c6b208a28292c7933cd61dd096091342
1,149
ex
Elixir
lib/cforum_web/controllers/api/v1/user_controller.ex
jrieger/cforum_ex
61f6ce84708cb55bd0feedf69853dae64146a7a0
[ "MIT" ]
16
2019-04-04T06:33:33.000Z
2021-08-16T19:34:31.000Z
lib/cforum_web/controllers/api/v1/user_controller.ex
jrieger/cforum_ex
61f6ce84708cb55bd0feedf69853dae64146a7a0
[ "MIT" ]
294
2019-02-10T11:10:27.000Z
2022-03-30T04:52:53.000Z
lib/cforum_web/controllers/api/v1/user_controller.ex
jrieger/cforum_ex
61f6ce84708cb55bd0feedf69853dae64146a7a0
[ "MIT" ]
10
2019-02-10T10:39:24.000Z
2021-07-06T11:46:05.000Z
defmodule CforumWeb.Api.V1.UserController do use CforumWeb, :controller alias Cforum.Users alias Cforum.MessagesUsers def index(conn, %{"ids" => ids}) do users = Cforum.Users.get_users(ids, order: [desc: :activity]) render(conn, "index.json", users: users) end def index(conn, params) do users...
26.72093
88
0.636205
1d45ef4d26953a0f1c7dca63e20dae1720ee44d9
16,766
ex
Elixir
lib/mix/tasks/docs.ex
bortzmeyer/ex_doc
dd10dd43c0ac135ef1d9c029e75a5da251f550af
[ "Apache-2.0", "CC-BY-4.0" ]
null
null
null
lib/mix/tasks/docs.ex
bortzmeyer/ex_doc
dd10dd43c0ac135ef1d9c029e75a5da251f550af
[ "Apache-2.0", "CC-BY-4.0" ]
1
2022-03-02T13:27:20.000Z
2022-03-02T13:27:20.000Z
lib/mix/tasks/docs.ex
LaudateCorpus1/ex_doc
0612bac649cbb44ef09c20dedcf7e588a150606c
[ "Apache-2.0", "CC-BY-4.0" ]
null
null
null
defmodule Mix.Tasks.Docs do use Mix.Task @shortdoc "Generate documentation for the project" @moduledoc ~S""" Uses ExDoc to generate a static web page from the project documentation. ## Command line options * `--canonical`, `-n` - Indicate the preferred URL with rel="canonical" link element, defa...
35.748401
102
0.675295
1d46153b4f4e353c14114271c466c0850014789d
606
exs
Elixir
config/test.exs
RyoWakabayashi/phoenix-liveview-example
1f7020d142a88fb2f68c4e58fd7635133cbaf8bc
[ "MIT" ]
null
null
null
config/test.exs
RyoWakabayashi/phoenix-liveview-example
1f7020d142a88fb2f68c4e58fd7635133cbaf8bc
[ "MIT" ]
null
null
null
config/test.exs
RyoWakabayashi/phoenix-liveview-example
1f7020d142a88fb2f68c4e58fd7635133cbaf8bc
[ "MIT" ]
null
null
null
import Config # We don't run a server during test. If one is required, # you can enable the server option below. config :live_view_example, LiveViewExampleWeb.Endpoint, http: [ip: {127, 0, 0, 1}, port: 4002], secret_key_base: "xXlHf9ZXtG4AOEW3TnBsCGjjgie8fxBylII0A5LFqbjuLFbxSdvVtrEfdQlJCHYd", server: false # In...
33.666667
86
0.782178
1d46276bdeab1b240c0e39afcfa4b15c28e2e111
200
ex
Elixir
lib/squadster/accounts/services/update_user.ex
Squadster/squadster-api
cf04af79317148d7a08c649d5b5d0197722acb7a
[ "MIT" ]
null
null
null
lib/squadster/accounts/services/update_user.ex
Squadster/squadster-api
cf04af79317148d7a08c649d5b5d0197722acb7a
[ "MIT" ]
null
null
null
lib/squadster/accounts/services/update_user.ex
Squadster/squadster-api
cf04af79317148d7a08c649d5b5d0197722acb7a
[ "MIT" ]
null
null
null
defmodule Squadster.Accounts.Services.UpdateUser do alias Squadster.Repo alias Squadster.Accounts.User def call(user, args) do user |> User.changeset(args) |> Repo.update end end
18.181818
51
0.72
1d46292b611f62fb87c001a85ed74ba888379755
1,482
ex
Elixir
lib/utils.ex
JediLuke/scenic-widget-contrib
16d4be858b686c486c1c9610e9c1106a30035d64
[ "Apache-2.0" ]
5
2019-05-29T20:59:16.000Z
2022-01-14T12:22:43.000Z
lib/utils.ex
JediLuke/scenic-widget-contrib
16d4be858b686c486c1c9610e9c1106a30035d64
[ "Apache-2.0" ]
10
2019-05-28T07:49:24.000Z
2022-01-24T04:33:47.000Z
lib/utils.ex
JediLuke/scenic-widget-contrib
16d4be858b686c486c1c9610e9c1106a30035d64
[ "Apache-2.0" ]
2
2022-01-05T02:33:43.000Z
2022-01-13T05:43:36.000Z
defmodule ScenicWidgets.Utils do @doc """ Wrap and shorten text to a set number of lines iex> {:ok, {_type, fm}} = Scenic.Assets.Static.meta(:roboto) iex> line_width = 130 iex> num_lines = 2 iex> font_size = 16 iex> wrap_and_shorten_text("Some text that needs to be wrapped and shortened", line_...
33.681818
120
0.631579
1d46308dd9caed3ee0dcee69a1d103e327f1ecef
3,852
ex
Elixir
lib/riak_ecto/encoder.ex
pma/riak_ecto
0a98299f6d8f592690f231084663eda9dc61d77f
[ "Unlicense" ]
32
2015-08-10T22:40:37.000Z
2020-09-15T06:37:50.000Z
lib/riak_ecto/encoder.ex
pma/riak_ecto
0a98299f6d8f592690f231084663eda9dc61d77f
[ "Unlicense" ]
10
2016-01-20T09:24:54.000Z
2016-05-01T11:05:28.000Z
lib/riak_ecto/encoder.ex
pma/riak_ecto
0a98299f6d8f592690f231084663eda9dc61d77f
[ "Unlicense" ]
8
2016-04-13T01:41:24.000Z
2018-11-01T17:18:49.000Z
defmodule Riak.Ecto.Encoder do @moduledoc false import Riak.Ecto.Utils alias Ecto.Query.Tagged def encode(doc, params, pk) when is_keyword(doc), do: document(doc, params, pk) def encode(list, params, pk) when is_list(list), do: map_list(list, &encode(&1, params, pk)) def encode({:^, _, [idx]}, par...
28.116788
90
0.585929
1d46562fae8a937112014532b53d4b6512ef08f5
680
ex
Elixir
lib/wabanex/imc.ex
EternalLearnerProgramming/Wabanex-NLW
a6fb37af9867d15b723c928ee6eb1a9a24b40925
[ "MIT" ]
null
null
null
lib/wabanex/imc.ex
EternalLearnerProgramming/Wabanex-NLW
a6fb37af9867d15b723c928ee6eb1a9a24b40925
[ "MIT" ]
null
null
null
lib/wabanex/imc.ex
EternalLearnerProgramming/Wabanex-NLW
a6fb37af9867d15b723c928ee6eb1a9a24b40925
[ "MIT" ]
null
null
null
defmodule Wabanex.IMC do def calculate(%{"filename" => filename}) do filename |> File.read() |> handle_file() end defp handle_file({:ok, content}) do data = content |> String.split("\r\n") |> Enum.map(fn line -> parse_line(line) end) |> Enum.into(%{}) {:ok, data} end d...
21.25
84
0.6
1d465a55490aa65f61ca7a7965bd2be7aa0f36cd
9,240
exs
Elixir
apps/admin_api/test/admin_api/v1/controllers/account_wallet_controller_test.exs
AndonMitev/EWallet
898cde38933d6f134734528b3e594eedf5fa50f3
[ "Apache-2.0" ]
322
2018-02-28T07:38:44.000Z
2020-05-27T23:09:55.000Z
apps/admin_api/test/admin_api/v1/controllers/account_wallet_controller_test.exs
AndonMitev/EWallet
898cde38933d6f134734528b3e594eedf5fa50f3
[ "Apache-2.0" ]
643
2018-02-28T12:05:20.000Z
2020-05-22T08:34:38.000Z
apps/admin_api/test/admin_api/v1/controllers/account_wallet_controller_test.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 ...
32.650177
114
0.621212
1d468c733e33fd58e8fc148553447d9b4bea9c29
773
ex
Elixir
lib/ambrosia_web/api_auth_error_handler.ex
emeric-martineau/ambrosia
74c55d35cf66537d7c8a33ef6057e89d44abd347
[ "MIT" ]
2
2020-05-25T05:28:31.000Z
2020-05-25T08:10:43.000Z
lib/ambrosia_web/api_auth_error_handler.ex
emeric-martineau/ambrosia
74c55d35cf66537d7c8a33ef6057e89d44abd347
[ "MIT" ]
9
2020-05-25T16:39:15.000Z
2020-11-11T16:51:37.000Z
lib/ambrosia_web/api_auth_error_handler.ex
emeric-martineau/ambrosia
74c55d35cf66537d7c8a33ef6057e89d44abd347
[ "MIT" ]
null
null
null
defmodule AmbrosiaWeb.ApiAuthErrorHandler do use AmbrosiaWeb, :controller alias Plug.Conn @spec call(Conn.t(), :not_authenticated) :: Conn.t() def call(conn, :not_authenticated) do conn |> put_status(401) |> json(%{error: %{code: 401, message: "Not authenticated"}}) end @spec call(Conn.t(), :i...
30.92
101
0.67141
1d46dcc1c8d112c185d5580d02b31f56136f45e3
5,146
ex
Elixir
clients/you_tube/lib/google_api/you_tube/v3/api/activities.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/activities.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/activities.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...
49.961165
564
0.652934
1d46e539e7a5f2e60f906934f671e7741b109e43
1,379
ex
Elixir
back/test/support/data_case.ex
giovanecosta/zebra-xantis
92e5937d51c44e75544bb539f5d95f6b0cc61b94
[ "MIT" ]
null
null
null
back/test/support/data_case.ex
giovanecosta/zebra-xantis
92e5937d51c44e75544bb539f5d95f6b0cc61b94
[ "MIT" ]
null
null
null
back/test/support/data_case.ex
giovanecosta/zebra-xantis
92e5937d51c44e75544bb539f5d95f6b0cc61b94
[ "MIT" ]
1
2019-08-29T17:37:51.000Z
2019-08-29T17:37:51.000Z
defmodule Zx.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, it cannot be async. For this reason, every test runs...
25.537037
77
0.673677
1d46ee71bf2572f919b864731f27bc913d5c183b
1,160
ex
Elixir
admin/web/channels/user_socket.ex
shipperizer/symmetrical-octo-parakeet
6c9c428898d3529c04d872fec8f099456cc54633
[ "MIT" ]
null
null
null
admin/web/channels/user_socket.ex
shipperizer/symmetrical-octo-parakeet
6c9c428898d3529c04d872fec8f099456cc54633
[ "MIT" ]
null
null
null
admin/web/channels/user_socket.ex
shipperizer/symmetrical-octo-parakeet
6c9c428898d3529c04d872fec8f099456cc54633
[ "MIT" ]
null
null
null
defmodule Admin.UserSocket do use Phoenix.Socket ## Channels # channel "room:*", Admin.RoomChannel ## Transports transport :websocket, Phoenix.Transports.WebSocket # transport :longpoll, Phoenix.Transports.LongPoll # Socket params are passed from the client and can # be used to verify and authenticat...
30.526316
83
0.7
1d46efdcfbedf58d5cd82cc6c1a84cc3f2c8649d
199
ex
Elixir
apps/artemis_web/lib/artemis_web/csv.ex
chrislaskey/atlas_platform
969aea95814f62d3471f93000ee5ad77edb9d1bf
[ "MIT" ]
10
2019-07-05T19:59:20.000Z
2021-05-23T07:36:11.000Z
apps/artemis_web/lib/artemis_web/csv.ex
chrislaskey/atlas_platform
969aea95814f62d3471f93000ee5ad77edb9d1bf
[ "MIT" ]
7
2019-07-12T21:41:01.000Z
2020-08-17T21:29:22.000Z
apps/artemis_web/lib/artemis_web/csv.ex
chrislaskey/atlas_platform
969aea95814f62d3471f93000ee5ad77edb9d1bf
[ "MIT" ]
4
2019-07-05T20:04:08.000Z
2021-05-13T16:28:33.000Z
defmodule ArtemisWeb.CSV do NimbleCSV.define(CustomParser, separator: ",", escape: "\"") def create(data) do data |> CustomParser.dump_to_iodata() |> IO.iodata_to_binary() end end
19.9
62
0.678392
1d46f0686b5606b104a974344b82467a6d7d9ac7
1,617
exs
Elixir
kousa/test/broth/user/revoke_api_key_test.exs
LeonardSSH/dogehouse
584055ad407bc37fa35cdf36ebb271622e29d436
[ "MIT" ]
9
2021-03-17T03:56:18.000Z
2021-09-24T22:45:14.000Z
kousa/test/broth/user/revoke_api_key_test.exs
LeonardSSH/dogehouse
584055ad407bc37fa35cdf36ebb271622e29d436
[ "MIT" ]
12
2021-07-06T12:51:13.000Z
2022-03-16T12:38:18.000Z
kousa/test/broth/user/revoke_api_key_test.exs
LeonardSSH/dogehouse
584055ad407bc37fa35cdf36ebb271622e29d436
[ "MIT" ]
4
2021-07-15T20:33:50.000Z
2022-03-27T12:46:47.000Z
defmodule BrothTest.User.RevokeApiKeyTest do use ExUnit.Case, async: true use KousaTest.Support.EctoSandbox alias Beef.Schemas.User alias BrothTest.WsClient alias BrothTest.WsClientFactory alias KousaTest.Support.Factory require WsClient setup do user = Factory.create(User) client_ws = WsClie...
27.87931
89
0.664811
1d46f306c3d0016a74f9cce3e2bb090452f172c6
314
ex
Elixir
lib/cep_parser.ex
zyzmoz/XCep_elixir
665d008e96c174eec37a9cfc7b69024e011d1785
[ "MIT" ]
null
null
null
lib/cep_parser.ex
zyzmoz/XCep_elixir
665d008e96c174eec37a9cfc7b69024e011d1785
[ "MIT" ]
null
null
null
lib/cep_parser.ex
zyzmoz/XCep_elixir
665d008e96c174eec37a9cfc7b69024e011d1785
[ "MIT" ]
null
null
null
defmodule XCep.Parser do def parse_body(city) do %{ :district => city["bairro"], :code => String.replace(city["cep"], ~r"[/\D/g]", ""), :complentent => city["complemento"], :city => city["localidade"], :address => city["logradouro"], :ustate => city["uf"] } end end
24.153846
60
0.535032
1d473899dc4bf37c95ec70ab1b41f7d1a0bb687d
1,314
ex
Elixir
lib/various/server_utils.ex
aratz-lasa/exchange
c82690ec621401e8062185c3039aa92c76a1e6fa
[ "MIT" ]
null
null
null
lib/various/server_utils.ex
aratz-lasa/exchange
c82690ec621401e8062185c3039aa92c76a1e6fa
[ "MIT" ]
null
null
null
lib/various/server_utils.ex
aratz-lasa/exchange
c82690ec621401e8062185c3039aa92c76a1e6fa
[ "MIT" ]
null
null
null
defmodule Exchange.Server.Utils do alias Exchange.User def check_banned(guest, state) do state |> Map.get(:banned) |> MapSet.member?(guest) end def handle_offer({opcode, offer_id}, %{id: id, offers: offers} = state) do guest = Map.get(offers, offer_id) msg = msg_ok_user(to_string(id) <> "#...
23.464286
87
0.6621
1d4759fc3107c3c526a8fd09f3729876674bdcd8
768
ex
Elixir
lib/big_brother/application.ex
luismasuelli/elixir-websockets-auth
845b826c4f2b612565930771497188081e6af71c
[ "MIT" ]
null
null
null
lib/big_brother/application.ex
luismasuelli/elixir-websockets-auth
845b826c4f2b612565930771497188081e6af71c
[ "MIT" ]
null
null
null
lib/big_brother/application.ex
luismasuelli/elixir-websockets-auth
845b826c4f2b612565930771497188081e6af71c
[ "MIT" ]
null
null
null
defmodule BigBrother.Application do # See https://hexdocs.pm/elixir/Application.html # for more information on OTP Applications @moduledoc """ Stub application supporting these features: - User authentication / permissions - WebSockets - Logging? Perhaps later """ use Application def start(_type, ...
28.444444
69
0.714844
1d4793a41f60c6c7e227ccba8654e08af6e2c9b4
3,692
exs
Elixir
test/pantone_test.exs
joydrive/chameleon
e314f57129a9d5db7c7526dcfeb15d82493e16a0
[ "Apache-2.0" ]
20
2018-05-21T17:06:06.000Z
2022-02-02T18:25:44.000Z
test/pantone_test.exs
joydrive/chameleon
e314f57129a9d5db7c7526dcfeb15d82493e16a0
[ "Apache-2.0" ]
12
2018-05-24T19:04:11.000Z
2022-01-24T22:28:30.000Z
test/pantone_test.exs
joydrive/chameleon
e314f57129a9d5db7c7526dcfeb15d82493e16a0
[ "Apache-2.0" ]
13
2018-05-20T10:39:59.000Z
2022-01-23T01:04:12.000Z
defmodule PantoneTest do use ExUnit.Case use ChameleonTest.Case alias Chameleon.{Color, CMYK, Hex, HSL, HSV, Keyword, Pantone, RGB} doctest Chameleon.Pantone describe "RGB and Pantone conversions" do test "converts from RGB to Pantone" do for %{rgb: [r, g, b], pantone: pantone} <- color_table(), ...
36.92
93
0.651138
1d47bdab1aa29a9677fb7ea4f29955051be7b8ad
2,057
ex
Elixir
apps/eigr_functions/lib/functions/action/handler.ex
sleipnir/permastate-elixir
43cda3a186819c9cfd3ce993907f24251c9ef42b
[ "Apache-2.0" ]
2
2021-07-28T23:02:24.000Z
2021-07-29T00:34:42.000Z
apps/eigr_functions/lib/functions/action/handler.ex
sleipnir/permastate-elixir
43cda3a186819c9cfd3ce993907f24251c9ef42b
[ "Apache-2.0" ]
null
null
null
apps/eigr_functions/lib/functions/action/handler.ex
sleipnir/permastate-elixir
43cda3a186819c9cfd3ce993907f24251c9ef42b
[ "Apache-2.0" ]
1
2021-07-28T21:31:12.000Z
2021-07-28T21:31:12.000Z
defmodule Functions.Action.Handler do @moduledoc """ GenServer for Handle Actions requests """ use GenServer require Logger @impl true @spec init(any) :: {:ok, any} def init(service) do {:ok, service} end @impl true def handle_call({:call_unary, command}, from, service) do # In order to ...
27.426667
106
0.638794
1d47be63799061d9aa7d3230f1a1ead435395d7b
1,269
exs
Elixir
channel-sender/test/channel_sender_ex/core/rules_provider_test.exs
santitigaga/async-dataflow
66132c7353ae0b3b9d5a3704699b5ba130b4da9d
[ "MIT" ]
2
2022-01-11T21:03:44.000Z
2022-03-15T15:13:11.000Z
channel-sender/test/channel_sender_ex/core/rules_provider_test.exs
santitigaga/async-dataflow
66132c7353ae0b3b9d5a3704699b5ba130b4da9d
[ "MIT" ]
3
2021-12-21T21:04:20.000Z
2022-03-15T16:16:45.000Z
channel-sender/test/channel_sender_ex/core/rules_provider_test.exs
santitigaga/async-dataflow
66132c7353ae0b3b9d5a3704699b5ba130b4da9d
[ "MIT" ]
2
2022-02-08T22:33:36.000Z
2022-03-25T19:55:18.000Z
Code.compiler_options(ignore_module_conflict: true) defmodule Test.NewModule do def get(_), do: raise("Not compiled") end defmodule ChannelSenderEx.Core.RulesProviderTest do use ExUnit.Case alias ChannelSenderEx.Core.RulesProvider.Compiler alias ChannelSenderEx.Core.RulesProvider alias ChannelSenderEx.Core...
32.538462
85
0.765957
1d47e2d1c10ae5737b4b78c6be8d136d95685aa8
643
ex
Elixir
test/support/quotes.ex
GunnarPDX/workbench
11bcd762fd1b3bbfa5fefa1aac55c89cd7b2a7c7
[ "MIT" ]
85
2020-05-03T22:23:18.000Z
2022-02-22T14:45:37.000Z
test/support/quotes.ex
GunnarPDX/workbench
11bcd762fd1b3bbfa5fefa1aac55c89cd7b2a7c7
[ "MIT" ]
101
2020-04-26T03:07:51.000Z
2022-03-27T06:17:52.000Z
test/support/quotes.ex
GunnarPDX/workbench
11bcd762fd1b3bbfa5fefa1aac55c89cd7b2a7c7
[ "MIT" ]
18
2020-04-26T10:57:55.000Z
2022-01-26T01:50:03.000Z
defmodule TestSupport.Quotes do alias Tai.Markets.{PricePoint, Quote} def build_quote( venue: venue, symbol: symbol, bid: {bid_price, bid_size}, ask: {ask_price, ask_size} ) do inside_bid = struct(PricePoint, price: bid_price, size: bid_size) inside_ask = struct(PriceP...
24.730769
78
0.639191
1d47e4c7475b370ff6eb2aa584ace73405bd1b2f
610
ex
Elixir
lib/bonfire/pushes/schemas/push.ex
qhwa/bonfire
4a368d6d5300539399dcaff167ac69e3165c2bff
[ "MIT" ]
71
2020-03-09T02:09:30.000Z
2022-03-09T06:10:23.000Z
lib/bonfire/pushes/schemas/push.ex
qhwa/bonfire
4a368d6d5300539399dcaff167ac69e3165c2bff
[ "MIT" ]
null
null
null
lib/bonfire/pushes/schemas/push.ex
qhwa/bonfire
4a368d6d5300539399dcaff167ac69e3165c2bff
[ "MIT" ]
4
2020-04-03T02:28:05.000Z
2021-11-24T20:07:25.000Z
defmodule Bonfire.Pushes.Schemas.Push do @moduledoc """ Ecto schema for pushes. """ use Ecto.Schema import Ecto.Changeset @primary_key {:id, :binary_id, autogenerate: true} schema "pushes" do field :content, :string field :state, :string field :actions, Util.Term field :allow_dismiss, :...
18.484848
52
0.65082
1d4822957f70570b9d134b1e7031edc8f9d12b78
6,846
exs
Elixir
backend/test/edgehog_web/controllers/astarte_trigger_controller_test.exs
szakhlypa/edgehog
b1193c26f403132dead6964c1c052e5dcae533af
[ "Apache-2.0" ]
14
2021-12-02T16:31:16.000Z
2022-03-18T17:40:44.000Z
backend/test/edgehog_web/controllers/astarte_trigger_controller_test.exs
szakhlypa/edgehog
b1193c26f403132dead6964c1c052e5dcae533af
[ "Apache-2.0" ]
77
2021-11-03T15:14:41.000Z
2022-03-30T14:13:32.000Z
backend/test/edgehog_web/controllers/astarte_trigger_controller_test.exs
szakhlypa/edgehog
b1193c26f403132dead6964c1c052e5dcae533af
[ "Apache-2.0" ]
7
2021-11-03T10:58:37.000Z
2022-02-28T14:00:03.000Z
# # This file is part of Edgehog. # # Copyright 2021 SECO Mind 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 app...
29.131915
98
0.644172
1d4851f4c34d5dc63e8dbac593f051fb257d1284
5,287
ex
Elixir
lib/hangman/player_worker.ex
brpandey/elixir-hangman
458502af766b42e492ebb9ca543fc8b855687b09
[ "MIT" ]
1
2016-12-19T00:10:34.000Z
2016-12-19T00:10:34.000Z
lib/hangman/player_worker.ex
brpandey/elixir-hangman
458502af766b42e492ebb9ca543fc8b855687b09
[ "MIT" ]
null
null
null
lib/hangman/player_worker.ex
brpandey/elixir-hangman
458502af766b42e492ebb9ca543fc8b855687b09
[ "MIT" ]
null
null
null
defmodule Hangman.Player.Worker do @moduledoc """ GenServer module to implement Player Worker, managed by `Player.Controller`. Module uses gproc to manage process registry of workers. The module represents the highest effective player worker abstraction. It sits in conjunction with other player components...
29.372222
96
0.669945
1d48696803a377c20ec0db990665d750bf8e36ae
13,810
ex
Elixir
deps/phoenix/lib/phoenix/socket/transport.ex
dmitrinesterenko/sample_phoenix_ecs
d6b94f35680163302e372cf30c70d3e409b0c9b1
[ "MIT" ]
1
2016-08-17T11:39:26.000Z
2016-08-17T11:39:26.000Z
deps/phoenix/lib/phoenix/socket/transport.ex
dmitrinesterenko/sample_phoenix_ecs
d6b94f35680163302e372cf30c70d3e409b0c9b1
[ "MIT" ]
null
null
null
deps/phoenix/lib/phoenix/socket/transport.ex
dmitrinesterenko/sample_phoenix_ecs
d6b94f35680163302e372cf30c70d3e409b0c9b1
[ "MIT" ]
null
null
null
defmodule Phoenix.Socket.Transport do @moduledoc """ API for building transports. This module describes what is required to build a Phoenix transport. The transport sits between the socket and channels, forwarding client messages to channels and vice-versa. A transport is responsible for: * Implement...
34.438903
102
0.670529
1d4875f89c49cc4af3043b34a10e6ac4b583434a
1,960
ex
Elixir
lib/pixel_conversion_server/router.ex
kacperduras/pixelconversionserver
e8a170411395ce9d787b20d0bde775c8babe8b6a
[ "MIT" ]
1
2021-06-26T14:18:35.000Z
2021-06-26T14:18:35.000Z
lib/pixel_conversion_server/router.ex
mypolitics/pixelconversionserver
e8a170411395ce9d787b20d0bde775c8babe8b6a
[ "MIT" ]
null
null
null
lib/pixel_conversion_server/router.ex
mypolitics/pixelconversionserver
e8a170411395ce9d787b20d0bde775c8babe8b6a
[ "MIT" ]
2
2021-06-20T23:29:35.000Z
2021-06-20T23:52:12.000Z
defmodule PixelConversionServer.Router do use Plug.Router use Plug.ErrorHandler if Mix.env == :dev do use Plug.Debugger plug Plug.Logger end plug Plug.Parsers, parsers: [:json], pass: ["application/json"], json_decoder: Poison plug :match plug :dispatch post "/track" do data = if Map.has...
32.131148
105
0.639286
1d488f9a4e909f45e753315a9dd279ccf599a77a
2,478
exs
Elixir
config/prod.exs
JPYamamoto/PhoenixLiveView-GameOfLife
20e671c178c91ad1ccf6d7572ff6c51421f878bd
[ "MIT" ]
null
null
null
config/prod.exs
JPYamamoto/PhoenixLiveView-GameOfLife
20e671c178c91ad1ccf6d7572ff6c51421f878bd
[ "MIT" ]
null
null
null
config/prod.exs
JPYamamoto/PhoenixLiveView-GameOfLife
20e671c178c91ad1ccf6d7572ff6c51421f878bd
[ "MIT" ]
null
null
null
use Mix.Config # For production, don't forget to configure the url host # to something meaningful, Phoenix uses this information # when generating URLs. # # Note we also include the path to a cache manifest # containing the digested version of static files. This # manifest is generated by the `mix phx.digest` task, # ...
34.416667
69
0.716707
1d489336cb7f0c567b3144e023c642cd2732046c
716
ex
Elixir
lib/topshelf_web/live/shelf_live/show.ex
Baradoy/topshelf
bd3d5f96b3d3840990231cf244cc5f14bd807997
[ "MIT" ]
null
null
null
lib/topshelf_web/live/shelf_live/show.ex
Baradoy/topshelf
bd3d5f96b3d3840990231cf244cc5f14bd807997
[ "MIT" ]
null
null
null
lib/topshelf_web/live/shelf_live/show.ex
Baradoy/topshelf
bd3d5f96b3d3840990231cf244cc5f14bd807997
[ "MIT" ]
null
null
null
defmodule TopshelfWeb.ShelfLive.Show do use TopshelfWeb, :live_view use PetalComponents import TopshelfWeb.LiveComponents alias Topshelf.Inventory @impl true def mount(_params, _session, socket) do {:ok, socket} end @impl true def handle_params(%{"id" => id}, _, socket) do {:noreply, ...
23.096774
90
0.691341
1d491517b33108799718aa56e2827fd80c60095a
6,100
ex
Elixir
lib/brando/images/processors/sharp.ex
brandocms/brando
4198e0c0920031bd909969055064e4e2b7230d21
[ "MIT" ]
4
2020-10-30T08:40:38.000Z
2022-01-07T22:21:37.000Z
lib/brando/images/processors/sharp.ex
brandocms/brando
4198e0c0920031bd909969055064e4e2b7230d21
[ "MIT" ]
1,162
2020-07-05T11:20:15.000Z
2022-03-31T06:01:49.000Z
lib/brando/images/processors/sharp.ex
brandocms/brando
4198e0c0920031bd909969055064e4e2b7230d21
[ "MIT" ]
null
null
null
defmodule Brando.Images.Processor.Sharp do @moduledoc """ Process image with Sharp """ require Logger alias Brando.Images alias Brando.Images.Processor @behaviour Brando.Images.Processor @doc """ Wrapper for System.cmd """ def command(cmd, params, opts), do: System.cmd(cmd, params, opts) @do...
23.643411
133
0.571475
1d4926d7755546dd1df63510af782c26294d65d9
413
exs
Elixir
test/bitpal_web/views/error_view_test.exs
bitpal/bitpal
0e10eeaacf7a65b23945cfb95e4dbda8bffd4590
[ "BSD-3-Clause-Clear" ]
5
2021-05-04T21:28:00.000Z
2021-12-01T11:19:48.000Z
test/bitpal_web/views/error_view_test.exs
bitpal/bitpal
0e10eeaacf7a65b23945cfb95e4dbda8bffd4590
[ "BSD-3-Clause-Clear" ]
71
2021-04-21T05:48:49.000Z
2022-03-23T06:30:37.000Z
test/bitpal_web/views/error_view_test.exs
bitpal/bitpal
0e10eeaacf7a65b23945cfb95e4dbda8bffd4590
[ "BSD-3-Clause-Clear" ]
1
2021-04-25T10:35:41.000Z
2021-04-25T10:35:41.000Z
defmodule BitPalWeb.ErrorViewTest do use BitPalWeb.ConnCase, async: true # Bring render/3 and render_to_string/3 for testing custom views import Phoenix.View test "renders 404.html" do assert render_to_string(BitPalWeb.ErrorView, "404.html", []) == "Not Found" end test "renders 500.html" do asser...
27.533333
91
0.731235
1d493217bd7685dc6542cdc2418affdc60bea8ba
492
ex
Elixir
lib/mix/tasks/ggity_visual.ex
kianmeng/ggity
75f0097464eae4086f8c70e4bea995d60571eba9
[ "MIT" ]
null
null
null
lib/mix/tasks/ggity_visual.ex
kianmeng/ggity
75f0097464eae4086f8c70e4bea995d60571eba9
[ "MIT" ]
null
null
null
lib/mix/tasks/ggity_visual.ex
kianmeng/ggity
75f0097464eae4086f8c70e4bea995d60571eba9
[ "MIT" ]
null
null
null
defmodule Mix.Tasks.Ggity.Visual do @shortdoc "Launch a browser and display all sample pages." @moduledoc @shortdoc use Mix.Task alias Mix.Tasks.Ggity.Visual @doc false @spec run(list(any)) :: any def run(argv) do [ Visual.Geom.Point, Visual.Geom.Line, Visual.Geom.Bar, Visua...
20.5
62
0.638211
1d495fe901871e8c825ab2e7291d9facac6fb902
29,306
ex
Elixir
clients/iap/lib/google_api/iap/v1/api/projects.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/iap/lib/google_api/iap/v1/api/projects.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/iap/lib/google_api/iap/v1/api/projects.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...
45.719189
196
0.624923
1d49788213fb68b9300f1bbb8eabc135ce11060e
11,490
ex
Elixir
lib/x509/certificate/extension.ex
fhunleth/x509
24c5fcc42207cc74e1e00a322f4809caf058eb6b
[ "BSD-3-Clause" ]
null
null
null
lib/x509/certificate/extension.ex
fhunleth/x509
24c5fcc42207cc74e1e00a322f4809caf058eb6b
[ "BSD-3-Clause" ]
null
null
null
lib/x509/certificate/extension.ex
fhunleth/x509
24c5fcc42207cc74e1e00a322f4809caf058eb6b
[ "BSD-3-Clause" ]
null
null
null
defmodule X509.Certificate.Extension do @moduledoc """ Convenience functions for creating `:Extension` records for use in certificates. """ import X509.ASN1, except: [basic_constraints: 2, authority_key_identifier: 1] @typedoc "`:Extension` record, as used in Erlang's `:public_key` module" @type t :: X5...
35.794393
98
0.692863
1d497de7a6c20506e720e15681e81a2ee710e0c6
2,702
ex
Elixir
lib/mnesia_versioning/behaviour/schema_behaviour.ex
kimidesu/MnesiaVersioning
fa7b01c9117e448b0cf9d38b5245c27a87e25c7d
[ "MIT" ]
1
2020-06-10T05:44:08.000Z
2020-06-10T05:44:08.000Z
lib/mnesia_versioning/behaviour/schema_behaviour.ex
kimidesu/MnesiaVersioning
fa7b01c9117e448b0cf9d38b5245c27a87e25c7d
[ "MIT" ]
null
null
null
lib/mnesia_versioning/behaviour/schema_behaviour.ex
kimidesu/MnesiaVersioning
fa7b01c9117e448b0cf9d38b5245c27a87e25c7d
[ "MIT" ]
null
null
null
#------------------------------------------------------------------------------- # Author: Keith Brings <keith.brings@noizu.com> # Copyright (C) 2017 Noizu Labs, Inc. All rights reserved. #------------------------------------------------------------------------------- defmodule Noizu.MnesiaVersioning.SchemaBehaviour d...
32.554217
111
0.593264
1d4984066d8419dd014e005846cd23140d674387
1,373
exs
Elixir
config/config.exs
documents-org/documents.design-el
6976254e175232afe5e913c29b04c13a86d2e9a2
[ "MIT" ]
null
null
null
config/config.exs
documents-org/documents.design-el
6976254e175232afe5e913c29b04c13a86d2e9a2
[ "MIT" ]
null
null
null
config/config.exs
documents-org/documents.design-el
6976254e175232afe5e913c29b04c13a86d2e9a2
[ "MIT" ]
null
null
null
# This file is responsible for configuring your application # and its dependencies with the aid of the Mix.Config module. # # This configuration file is loaded before any dependency and # is restricted to this project. # General application configuration use Mix.Config config :documents_design, ecto_repos: [Documen...
35.205128
86
0.779315
1d498de87cbc275c2c45c9a2502017d9c58fa6b8
831
exs
Elixir
test/lib/util/term_util_test.exs
wses-yoshida/antikythera
e108e59d2339edd0b0fad31ad4f41f56df45be55
[ "Apache-2.0" ]
null
null
null
test/lib/util/term_util_test.exs
wses-yoshida/antikythera
e108e59d2339edd0b0fad31ad4f41f56df45be55
[ "Apache-2.0" ]
null
null
null
test/lib/util/term_util_test.exs
wses-yoshida/antikythera
e108e59d2339edd0b0fad31ad4f41f56df45be55
[ "Apache-2.0" ]
null
null
null
# Copyright(c) 2015-2019 ACCESS CO., LTD. All rights reserved. defmodule Antikythera.TermUtilTest do use Croma.TestCase use ExUnitProperties defp assert_term_size(t) do size = TermUtil.size(t) assert is_integer(size) assert size >= 0 assert TermUtil.size_smaller_or_equal?(t, size) if size > ...
21.868421
62
0.666667
1d49f8d17deda822a25f409ebfcc432c0b90513b
465
exs
Elixir
priv/repo/migrations/20170812102346_create_assessment_programming_answers.exs
trewdys/source-academy2-debug
6146e1fac81472184877f47aa32dee7fdceb4fb6
[ "Unlicense" ]
null
null
null
priv/repo/migrations/20170812102346_create_assessment_programming_answers.exs
trewdys/source-academy2-debug
6146e1fac81472184877f47aa32dee7fdceb4fb6
[ "Unlicense" ]
null
null
null
priv/repo/migrations/20170812102346_create_assessment_programming_answers.exs
trewdys/source-academy2-debug
6146e1fac81472184877f47aa32dee7fdceb4fb6
[ "Unlicense" ]
null
null
null
defmodule SourceAcademy.Repo.Migrations.CreateAssessmentProgrammingAnswers do @moduledoc false use Ecto.Migration def change do create table(:assessment_programming_answers) do add :marks, :integer add :code, references(:codes, on_delete: :nilify_all) add :submission, references(:submissio...
29.0625
77
0.744086
1d49fbc4e9ba415a6c561316e3532b985d0df742
2,716
ex
Elixir
clients/translate/lib/google_api/translate/v3/model/translation.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/translate/lib/google_api/translate/v3/model/translation.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/translate/lib/google_api/translate/v3/model/translation.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...
48.5
405
0.738586
1d4a09e6202c471e519547c1946e1857bca11298
1,033
ex
Elixir
lib/ex_rss/user/registration.ex
cruessler/exrss
6ac17b7533d78460a1c34cabaae86fec317f460a
[ "MIT" ]
4
2020-02-16T07:18:35.000Z
2021-12-09T14:43:10.000Z
lib/ex_rss/user/registration.ex
cruessler/exrss
6ac17b7533d78460a1c34cabaae86fec317f460a
[ "MIT" ]
27
2019-10-16T18:35:19.000Z
2022-03-13T16:39:57.000Z
lib/ex_rss/user/registration.ex
cruessler/exrss
6ac17b7533d78460a1c34cabaae86fec317f460a
[ "MIT" ]
null
null
null
defmodule ExRss.User.Registration do use ExRssWeb, :model @timestamps_opts [type: :utc_datetime] schema "users" do field :email, :string field :password, :string, virtual: true field :password_confirmation, :string, virtual: true field :hashed_password, :string timestamps() end def cha...
25.825
72
0.68635
1d4a0d2229bfb4084e2e7149d77a007cc653d6d1
184
exs
Elixir
priv/repo/migrations/20161211162736_add_last_known_state_to_room_table.exs
Poniverse/LunaTube-API
433473f32ec04a636f6de60642e445fd2e478f98
[ "Apache-2.0" ]
null
null
null
priv/repo/migrations/20161211162736_add_last_known_state_to_room_table.exs
Poniverse/LunaTube-API
433473f32ec04a636f6de60642e445fd2e478f98
[ "Apache-2.0" ]
null
null
null
priv/repo/migrations/20161211162736_add_last_known_state_to_room_table.exs
Poniverse/LunaTube-API
433473f32ec04a636f6de60642e445fd2e478f98
[ "Apache-2.0" ]
null
null
null
defmodule Lunatube.Repo.Migrations.AddLastKnownStateToRoomTable do use Ecto.Migration def change do alter table(:rooms) do add :last_known_state, :map end end end
18.4
66
0.73913
1d4a1961873264d42d3b8cbab4870397135ea5b3
211
exs
Elixir
priv/repo/migrations/20180730233605_add_forced_nick_to_infraction_type_enum.exs
CyberFlameGO/bolt
225e6276983bec646e7f13519df066e8e1e770ed
[ "ISC" ]
31
2018-12-06T23:12:33.000Z
2022-03-29T18:34:25.000Z
priv/repo/migrations/20180730233605_add_forced_nick_to_infraction_type_enum.exs
CyberFlameGO/bolt
225e6276983bec646e7f13519df066e8e1e770ed
[ "ISC" ]
18
2021-06-14T19:03:26.000Z
2022-03-15T17:46:22.000Z
priv/repo/migrations/20180730233605_add_forced_nick_to_infraction_type_enum.exs
CyberFlameGO/bolt
225e6276983bec646e7f13519df066e8e1e770ed
[ "ISC" ]
4
2018-11-07T18:52:28.000Z
2022-03-16T00:14:38.000Z
defmodule Bolt.Repo.Migrations.AddForcedNickToInfractionTypeEnum do use Ecto.Migration @disable_ddl_transaction true def up do execute("ALTER TYPE infraction_type ADD VALUE 'forced_nick';") end end
23.444444
67
0.796209
1d4a26e23ed10381880c0c1c990f7221082736c6
672
exs
Elixir
mix.exs
StephaneRob/authit
e5b3f637676ba7b16aa0c8d28c29f73d368bc3c4
[ "BSD-2-Clause" ]
1
2021-09-28T15:29:15.000Z
2021-09-28T15:29:15.000Z
mix.exs
StephaneRob/authit
e5b3f637676ba7b16aa0c8d28c29f73d368bc3c4
[ "BSD-2-Clause" ]
null
null
null
mix.exs
StephaneRob/authit
e5b3f637676ba7b16aa0c8d28c29f73d368bc3c4
[ "BSD-2-Clause" ]
null
null
null
defmodule Authit.MixProject do use Mix.Project def project do [ app: :authit, version: "0.1.0", elixir: "~> 1.10", start_permanent: Mix.env() == :prod, deps: deps(), elixirc_paths: elixirc_paths(Mix.env()) ] end # Run "mix help compile.app" to learn about applicatio...
20.363636
59
0.602679
1d4a5108ee3b958a7b73595bf82bf120b9c5b229
757
ex
Elixir
lib/beam/process/process.ex
itsemilano/beam
afa79d7f31d2e2d4ded381656735d08cabd4f9ea
[ "Apache-2.0" ]
null
null
null
lib/beam/process/process.ex
itsemilano/beam
afa79d7f31d2e2d4ded381656735d08cabd4f9ea
[ "Apache-2.0" ]
null
null
null
lib/beam/process/process.ex
itsemilano/beam
afa79d7f31d2e2d4ded381656735d08cabd4f9ea
[ "Apache-2.0" ]
null
null
null
defmodule Example_Pr do def start do Process.put(:comments, ["comment", "other comment"]) Process.delete(:comments) end def start2 do pid = spawn(fn -> 2 * 3 end) ref = Process.monitor(pid) Process.demonitor(ref) end def start3 do Process.put(:locale, "fr") Process.get(:locale, "...
16.822222
71
0.622193
1d4a651197129f0f3e27dee424990f3ac8055545
805
exs
Elixir
code/general/string_split_large_strings.exs
the-shank/fast-elixir
997331f1f29f3eea02281f5dab47996c838dce54
[ "CC0-1.0" ]
null
null
null
code/general/string_split_large_strings.exs
the-shank/fast-elixir
997331f1f29f3eea02281f5dab47996c838dce54
[ "CC0-1.0" ]
null
null
null
code/general/string_split_large_strings.exs
the-shank/fast-elixir
997331f1f29f3eea02281f5dab47996c838dce54
[ "CC0-1.0" ]
null
null
null
defmodule Split.Fast do def split(str) do str |> String.splitter(",") |> Enum.to_list end end defmodule Split.Slow do def split(str) do String.split(str, ",") end end defmodule Split.Benchmark do @inputs %{ "Large string (1 Million Numbers)" => Enum.join((1..1_000_000), ","), "Medium stri...
24.393939
76
0.609938
1d4a811adae1d5b6c29ff3ad0271b505bfdd770a
1,058
ex
Elixir
lib/bbb_lti_web/controllers/login_controller.ex
IBM/bbb_l
01d2a2ad9a7056b02f6f0d85f17949126256c549
[ "Apache-2.0" ]
null
null
null
lib/bbb_lti_web/controllers/login_controller.ex
IBM/bbb_l
01d2a2ad9a7056b02f6f0d85f17949126256c549
[ "Apache-2.0" ]
null
null
null
lib/bbb_lti_web/controllers/login_controller.ex
IBM/bbb_l
01d2a2ad9a7056b02f6f0d85f17949126256c549
[ "Apache-2.0" ]
null
null
null
defmodule BbbLtiWeb.LoginController do use BbbLtiWeb, :controller plug :redirect_if_admin when action in [:index, :create] def index(conn, _), do: render(conn, "index.html") def create(conn, %{"access_key" => access_key, "secret_key" => secret_key}) do case valid_credentials?(access_key, secret_key) do ...
29.388889
87
0.653119
1d4ae5bf8d331365ca10adfd1ff85e0db1c8e436
1,883
exs
Elixir
test/rabbit_mq/connection/connection_test.exs
qworks-io/rabbitex
3359fc573b8e8e60cdd2cc03b6ebc2bdcc8a3d70
[ "MIT" ]
29
2020-05-02T18:25:31.000Z
2021-02-16T19:43:39.000Z
test/rabbit_mq/connection/connection_test.exs
qworks-io/rabbit_ex_mq
3359fc573b8e8e60cdd2cc03b6ebc2bdcc8a3d70
[ "MIT" ]
43
2020-04-30T16:34:46.000Z
2021-07-26T06:22:43.000Z
test/rabbit_mq/connection/connection_test.exs
qworks-io/rabbit_ex_mq
3359fc573b8e8e60cdd2cc03b6ebc2bdcc8a3d70
[ "MIT" ]
3
2020-05-03T15:47:16.000Z
2021-04-05T05:05:47.000Z
defmodule RabbitMQTest.Connection do alias AMQP.Connection, as: AMQPConnection alias RabbitMQ.Connection use ExUnit.Case @connection __MODULE__ describe "#{__MODULE__}" do test "establishes a connection" do assert {:ok, pid} = start_supervised({Connection, [name: @connection]}) %AMQPConnect...
31.915254
77
0.672862
1d4aee644f2e346e32ff588fb8f1daafbf1cef5b
15,105
ex
Elixir
apps/buzzcms/lib/buzzcms/data_importer.ex
buzzcms/buzzcms
8ca8e6dea381350f94cc4a666448b5dba6676520
[ "Apache-2.0" ]
null
null
null
apps/buzzcms/lib/buzzcms/data_importer.ex
buzzcms/buzzcms
8ca8e6dea381350f94cc4a666448b5dba6676520
[ "Apache-2.0" ]
41
2020-02-12T07:53:14.000Z
2020-03-30T02:18:14.000Z
apps/buzzcms/lib/buzzcms/data_importer.ex
buzzcms/buzzcms
8ca8e6dea381350f94cc4a666448b5dba6676520
[ "Apache-2.0" ]
null
null
null
defmodule Buzzcms.DataImporter do import Ecto.Query alias Buzzcms.Repo alias Buzzcms.EmbeddedSchema.{ ImageItem, Seo } alias Buzzcms.Schema.{ EmailSender, EmailTemplate, Entry, EntryBooleanValue, EntryDecimalValue, EntryIntegerValue, EntryJsonValue, EntrySelectValue, ...
26.925134
96
0.553261
1d4af30f3cdfc8a53794a904af44a2966da7bc25
679
ex
Elixir
apps/ranking/lib/ranking/ticker.ex
alejandrodnm/ranking_poller
f7d231e928f1c467bfbffd8bab2b6947bdb0b87a
[ "MIT" ]
null
null
null
apps/ranking/lib/ranking/ticker.ex
alejandrodnm/ranking_poller
f7d231e928f1c467bfbffd8bab2b6947bdb0b87a
[ "MIT" ]
null
null
null
apps/ranking/lib/ranking/ticker.ex
alejandrodnm/ranking_poller
f7d231e928f1c467bfbffd8bab2b6947bdb0b87a
[ "MIT" ]
null
null
null
defmodule Ranking.Ticker do @moduledoc """ Executes the ranking import """ use GenServer alias Ranking.Import @default_timeout 5_000 def start_link(opts) do GenServer.start_link(__MODULE__, [], opts) end def init(_opts) do {:ok, [], 0} end def handle_info(:timeout, state) do Import...
17.410256
59
0.599411
1d4b31588018c6a6978e5cec5cbfb30efb4bc35d
1,953
ex
Elixir
lib/cforum_web/views/moderation_view.ex
MatthiasApsel/cforum_ex
52c621a583182d82692b74694b0b2792ac23b8ff
[ "MIT" ]
null
null
null
lib/cforum_web/views/moderation_view.ex
MatthiasApsel/cforum_ex
52c621a583182d82692b74694b0b2792ac23b8ff
[ "MIT" ]
null
null
null
lib/cforum_web/views/moderation_view.ex
MatthiasApsel/cforum_ex
52c621a583182d82692b74694b0b2792ac23b8ff
[ "MIT" ]
null
null
null
defmodule CforumWeb.ModerationView do use CforumWeb, :view alias Cforum.Abilities alias Cforum.Helpers alias CforumWeb.Views.ViewHelpers alias CforumWeb.Views.ViewHelpers.Path alias CforumWeb.ErrorHelpers alias Cforum.ModerationQueue.ModerationQueueEntry def page_heading(action, assigns), do: page_t...
39.857143
119
0.749616
1d4b471cd8b8d212fb65cfa780118b02b1d67c34
26,114
exs
Elixir
lib/elixir/test/elixir/kernel_test.exs
bryanhunter/elixir
9e232a60a12bd3f9762156fef2ba1454de094205
[ "Apache-2.0" ]
1
2021-05-20T13:08:37.000Z
2021-05-20T13:08:37.000Z
lib/elixir/test/elixir/kernel_test.exs
bryanhunter/elixir
9e232a60a12bd3f9762156fef2ba1454de094205
[ "Apache-2.0" ]
null
null
null
lib/elixir/test/elixir/kernel_test.exs
bryanhunter/elixir
9e232a60a12bd3f9762156fef2ba1454de094205
[ "Apache-2.0" ]
null
null
null
Code.require_file("test_helper.exs", __DIR__) defmodule KernelTest do use ExUnit.Case, async: true doctest Kernel defp empty_list(), do: [] test "=~/2" do assert "abcd" =~ ~r/c(d)/ == true assert "abcd" =~ ~r/e/ == false assert "abcd" =~ ~R/c(d)/ == true assert "abcd" =~ ~R/e/ == false ...
27.810437
118
0.547905
1d4b4a7a8fd46aed67b9d631f53a94fc903f17d8
1,387
exs
Elixir
test/features/existing_user_chooses_retro_format_test.exs
pwjablonski/remote_retro
1b6acf359b362ae2ec187cfbd1a38dc8266aa546
[ "MIT" ]
null
null
null
test/features/existing_user_chooses_retro_format_test.exs
pwjablonski/remote_retro
1b6acf359b362ae2ec187cfbd1a38dc8266aa546
[ "MIT" ]
null
null
null
test/features/existing_user_chooses_retro_format_test.exs
pwjablonski/remote_retro
1b6acf359b362ae2ec187cfbd1a38dc8266aa546
[ "MIT" ]
null
null
null
defmodule ExistingUserChoosesRetroFormatTest do use RemoteRetro.IntegrationCase, async: false import ShorterMaps describe "a user with prior retro experience" do setup [:ensure_user_has_prior_retro_experience] test "is allowed to choose a retro format upon creation", ~M{session} do visit(session,...
31.522727
121
0.703677