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
626526fc10646f873f846a118398cec7e93a3286
1,471
ex
Elixir
lib/zapex_web/views/error_helpers.ex
julioleitao/zapex
7249360a1a3417831e53150686def0f7c987ff32
[ "MIT" ]
null
null
null
lib/zapex_web/views/error_helpers.ex
julioleitao/zapex
7249360a1a3417831e53150686def0f7c987ff32
[ "MIT" ]
null
null
null
lib/zapex_web/views/error_helpers.ex
julioleitao/zapex
7249360a1a3417831e53150686def0f7c987ff32
[ "MIT" ]
null
null
null
defmodule ZapexWeb.ErrorHelpers do @moduledoc """ Conveniences for translating and building error messages. """ use Phoenix.HTML @doc """ Generates tag for inlined form input errors. """ def error_tag(form, field) do Enum.map(Keyword.get_values(form.errors, field), fn error -> content_tag(:s...
32.688889
74
0.668933
62653b40e49f16105942b1ac1fd4318f04983309
551
exs
Elixir
benchmark/bin/worker.exs
braverhealth/grpc
eff8a8828d27ddd7f63a3c1dd5aae86246df215e
[ "Apache-2.0" ]
561
2019-03-18T09:10:57.000Z
2022-03-27T17:34:59.000Z
benchmark/bin/worker.exs
braverhealth/grpc
eff8a8828d27ddd7f63a3c1dd5aae86246df215e
[ "Apache-2.0" ]
94
2019-03-20T09:34:38.000Z
2022-02-27T20:44:04.000Z
benchmark/bin/worker.exs
braverhealth/grpc
eff8a8828d27ddd7f63a3c1dd5aae86246df215e
[ "Apache-2.0" ]
112
2019-03-25T03:27:26.000Z
2022-03-21T12:43:59.000Z
require Logger [arg] = System.argv() [_, port] = String.split(arg, "=") port = String.to_integer(port) {:ok, pid, port} = GRPC.Server.start(Grpc.Testing.WorkerService.Server, port, local: %{main_pid: self()}) defmodule Main do def loop do receive do {:quit, _} -> Logger.debug("Got msg quit") ...
20.407407
88
0.611615
62657b591617b8877ef9495b09dcf728bc3bbab2
222
ex
Elixir
robotica_docker/lib/robotica_docker.ex
brianmay/robotica-elixir
8656510e54b7e32a547e3a54bf946f0e327911c9
[ "RSA-MD" ]
1
2019-04-23T09:16:44.000Z
2019-04-23T09:16:44.000Z
robotica_docker/lib/robotica_docker.ex
brianmay/robotica-elixir
8656510e54b7e32a547e3a54bf946f0e327911c9
[ "RSA-MD" ]
107
2019-05-26T08:03:26.000Z
2022-02-03T19:13:56.000Z
robotica_docker/lib/robotica_docker.ex
brianmay/robotica-elixir
8656510e54b7e32a547e3a54bf946f0e327911c9
[ "RSA-MD" ]
1
2019-08-10T20:44:24.000Z
2019-08-10T20:44:24.000Z
defmodule RoboticaDocker do @moduledoc """ Documentation for `RoboticaDocker`. """ @doc """ Hello world. ## Examples iex> RoboticaDocker.hello() :world """ def hello do :world end end
11.684211
37
0.599099
626585361f53bc6fe3fdc48c8a97995078d57c21
38,911
exs
Elixir
lib/elixir/test/elixir/enum_test.exs
diogovk/elixir
7b8213affaad38b50afaa3dfc3a43717f35ba4e7
[ "Apache-2.0" ]
null
null
null
lib/elixir/test/elixir/enum_test.exs
diogovk/elixir
7b8213affaad38b50afaa3dfc3a43717f35ba4e7
[ "Apache-2.0" ]
null
null
null
lib/elixir/test/elixir/enum_test.exs
diogovk/elixir
7b8213affaad38b50afaa3dfc3a43717f35ba4e7
[ "Apache-2.0" ]
null
null
null
Code.require_file "test_helper.exs", __DIR__ defmodule EnumTest do use ExUnit.Case, async: true doctest Enum test "empty?" do assert Enum.empty?([]) refute Enum.empty?([1, 2, 3]) refute Enum.empty?(1..3) end test "member?" do assert Enum.member?([1, 2, 3], 2) refute Enum.member?([], 0) ...
31.894262
114
0.513377
62658722f3b4a49b72639c8fff802f0872c5d1a2
572
exs
Elixir
test/email_checker/check/format_test.exs
jshmrtn/email_checker
8cb1901a794726f9318788d05ab72e283227b11c
[ "MIT" ]
51
2017-04-21T19:46:42.000Z
2022-03-16T19:23:37.000Z
test/email_checker/check/format_test.exs
jshmrtn/email_checker
8cb1901a794726f9318788d05ab72e283227b11c
[ "MIT" ]
16
2017-02-27T13:36:15.000Z
2022-02-28T13:47:20.000Z
test/email_checker/check/format_test.exs
jshmrtn/email_checker
8cb1901a794726f9318788d05ab72e283227b11c
[ "MIT" ]
11
2017-07-20T10:12:13.000Z
2022-01-11T07:02:24.000Z
defmodule EmailChecker.Check.FormatTest do use ExUnit.Case doctest EmailChecker.Check.Format describe "valid?" do for email <- ["user@domain.com", "user+addition@domain.com", "user.name+addition@domain.com"] do test "#{email} format returns true" do assert true == EmailChecker.Check.Format.vali...
30.105263
100
0.664336
626594061cc3aaf4357fe19b95bfb73fce740580
1,514
ex
Elixir
clients/redis/lib/google_api/redis/v1beta1/model/input_config.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/redis/lib/google_api/redis/v1beta1/model/input_config.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/redis/lib/google_api/redis/v1beta1/model/input_config.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...
32.212766
153
0.745046
62659818f5228bf32bc27b4e861b71717ca41901
2,724
ex
Elixir
clients/compute/lib/google_api/compute/v1/model/disk_list.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/compute/lib/google_api/compute/v1/model/disk_list.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/compute/lib/google_api/compute/v1/model/disk_list.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 ...
43.935484
393
0.705947
6265aef9e034e4c2f850e1bec6493ee6c685b41c
2,954
ex
Elixir
lib/radiator_web/controllers/api/collaborator_controller.ex
bhtabor/radiator
39c137a18d36d6f418f9d1ffb7aa2c99011d66cf
[ "MIT" ]
92
2019-01-03T11:46:23.000Z
2022-02-19T21:28:44.000Z
lib/radiator_web/controllers/api/collaborator_controller.ex
bhtabor/radiator
39c137a18d36d6f418f9d1ffb7aa2c99011d66cf
[ "MIT" ]
350
2019-04-11T07:55:51.000Z
2021-08-03T11:19:05.000Z
lib/radiator_web/controllers/api/collaborator_controller.ex
bhtabor/radiator
39c137a18d36d6f418f9d1ffb7aa2c99011d66cf
[ "MIT" ]
10
2019-04-18T12:47:27.000Z
2022-01-25T20:49:15.000Z
defmodule RadiatorWeb.Api.CollaboratorController do use RadiatorWeb, :rest_controller alias Radiator.Directory.Editor alias Radiator.Directory.Collaborator alias Radiator.Auth def create(conn, %{"username" => username, "permission" => permission} = params) do with actor <- current_user(conn), {...
31.425532
86
0.631009
6265bf97662180f55491da20c484cda9007225fa
25
ex
Elixir
testData/org/elixir_lang/parser_definition/matched_at_non_numeric_operation_parsing_test_case/UnaryLeftOperation.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_at_non_numeric_operation_parsing_test_case/UnaryLeftOperation.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_at_non_numeric_operation_parsing_test_case/UnaryLeftOperation.ex
keyno63/intellij-elixir
4033e319992c53ddd42a683ee7123a97b5e34f02
[ "Apache-2.0" ]
145
2015-01-15T11:37:16.000Z
2021-12-22T05:51:02.000Z
@!variable @not variable
8.333333
13
0.76
6265ea78b0b5a6bb6b2c5ca39e41ddfab861ceba
1,264
ex
Elixir
apps/viztube_web/lib/viztube_web/channels/user_socket.ex
vizlegal/viztube
9519ec2bcea9d4085ec3287412b0a26104d4c826
[ "Apache-2.0" ]
null
null
null
apps/viztube_web/lib/viztube_web/channels/user_socket.ex
vizlegal/viztube
9519ec2bcea9d4085ec3287412b0a26104d4c826
[ "Apache-2.0" ]
3
2020-07-16T23:48:01.000Z
2021-05-08T15:54:04.000Z
apps/viztube_web/lib/viztube_web/channels/user_socket.ex
vizlegal/viztube
9519ec2bcea9d4085ec3287412b0a26104d4c826
[ "Apache-2.0" ]
null
null
null
defmodule ViztubeWeb.UserSocket do use Phoenix.Socket ## Channels # channel "room:*", ViztubeWeb.RoomChannel ## Transports channel "query:*", ViztubeWeb.QueryChannel channel "video:*", ViztubeWeb.VideoChannel transport :websocket, Phoenix.Transports.WebSocket # transport :longpoll, Phoenix.Transports...
30.829268
83
0.706487
626600c5848c0c6c282e7d66d0e790d7e580608d
1,753
ex
Elixir
lib/sorting/merge_sort.ex
iccowan/Elixir
cc346493c0b24796fb07ad05de5b065ff132089e
[ "MIT" ]
131
2019-10-28T19:44:55.000Z
2022-03-27T21:48:48.000Z
lib/sorting/merge_sort.ex
iccowan/Elixir
cc346493c0b24796fb07ad05de5b065ff132089e
[ "MIT" ]
52
2021-08-09T22:40:20.000Z
2022-03-07T16:56:36.000Z
lib/sorting/merge_sort.ex
iccowan/Elixir
cc346493c0b24796fb07ad05de5b065ff132089e
[ "MIT" ]
50
2019-11-17T16:59:04.000Z
2022-03-23T00:16:51.000Z
defmodule Algorithms.Sorting.MergeSort do @moduledoc """ Implementation of MergeSort algorithm (https://en.wikipedia.org/wiki/Merge_sort) You will be given an array of numbers, you have to sort numbers in ascending order using merge sort algorithm. Merge sort algorithm uses a divide and conquer strategy. ...
31.303571
84
0.641187
6266367faceae6d90e5137ad0ab1ea69f9093506
2,090
ex
Elixir
lib/op_api_web/endpoint.ex
operate-bsv/api.operatebsv.org
c31a5d2a050cd88d99a94ed2a0e3bcc987114220
[ "MIT" ]
3
2019-11-06T23:40:55.000Z
2020-06-20T22:33:25.000Z
lib/op_api_web/endpoint.ex
operate-bsv/api.operatebsv.org
c31a5d2a050cd88d99a94ed2a0e3bcc987114220
[ "MIT" ]
null
null
null
lib/op_api_web/endpoint.ex
operate-bsv/api.operatebsv.org
c31a5d2a050cd88d99a94ed2a0e3bcc987114220
[ "MIT" ]
null
null
null
defmodule OpApiWeb.Endpoint do use Phoenix.Endpoint, otp_app: :op_api @doc """ Callback invoked for dynamically configuring the endpoint. It receives the endpoint configuration and checks if configuration should be loaded from the system environment. """ def init(_key, config) do if config[:load_fr...
28.630137
116
0.692823
62665d75e8944db29037de14adc2436edbaf4f41
2,032
ex
Elixir
clients/compute/lib/google_api/compute/v1/model/router_aggregated_list_warning_data.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/compute/lib/google_api/compute/v1/model/router_aggregated_list_warning_data.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/compute/lib/google_api/compute/v1/model/router_aggregated_list_warning_data.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 ...
40.64
527
0.743602
626661063f9ae6f3a8300bd067501ca2a32fa908
1,430
ex
Elixir
packages/templates/src/project/potionx/lib/{{ appName }}/users/user_service.ex
shuv1824/potionx
a5888413b13a520d8ddf79fb26b7483e441737c3
[ "MIT" ]
31
2021-02-16T20:50:46.000Z
2022-02-03T10:38:07.000Z
packages/templates/src/project/potionx/lib/{{ appName }}/users/user_service.ex
shuv1824/potionx
a5888413b13a520d8ddf79fb26b7483e441737c3
[ "MIT" ]
6
2021-04-07T21:50:20.000Z
2022-02-06T21:54:04.000Z
packages/templates/src/project/potionx/lib/{{ appName }}/users/user_service.ex
shuv1824/potionx
a5888413b13a520d8ddf79fb26b7483e441737c3
[ "MIT" ]
4
2021-03-25T17:59:44.000Z
2021-04-25T16:28:22.000Z
defmodule <%= appModule %>.Users.UserService do alias Potionx.Context.Service alias <%= appModule %>.Users.User alias <%= appModule %>.Repo import Ecto.Query def count(%Service{} = ctx) do from(item in query(ctx)) |> select([i], count(i.id)) |> exclude(:order_by) |> Repo.one! end...
21.029412
74
0.516783
6266e0b55609a3fd9058a940245b0aaaa3b05860
186
exs
Elixir
priv/repo/migrations/20190209231153_add_drafted_at_to_draft_pick.exs
axelclark/ex338
3fb3c260d93bda61f7636ee1a677770d2dc1b89a
[ "MIT" ]
17
2016-12-22T06:39:26.000Z
2021-01-20T13:51:13.000Z
priv/repo/migrations/20190209231153_add_drafted_at_to_draft_pick.exs
axelclark/ex338
3fb3c260d93bda61f7636ee1a677770d2dc1b89a
[ "MIT" ]
608
2016-08-06T18:57:58.000Z
2022-03-01T02:48:17.000Z
priv/repo/migrations/20190209231153_add_drafted_at_to_draft_pick.exs
axelclark/ex338
3fb3c260d93bda61f7636ee1a677770d2dc1b89a
[ "MIT" ]
6
2017-11-21T22:35:45.000Z
2022-01-11T21:37:40.000Z
defmodule Ex338.Repo.Migrations.AddDraftedAtToDraftPick do use Ecto.Migration def change do alter table(:draft_picks) do add(:drafted_at, :utc_datetime) end end end
18.6
58
0.736559
6266e190e04869b854324cd152748b83ed17b2ce
2,429
ex
Elixir
clients/service_networking/lib/google_api/service_networking/v1/model/secondary_ip_range_spec.ex
kyleVsteger/elixir-google-api
3a0dd498af066a4361b5b0fd66ffc04a57539488
[ "Apache-2.0" ]
1
2021-10-01T09:20:41.000Z
2021-10-01T09:20:41.000Z
clients/service_networking/lib/google_api/service_networking/v1/model/secondary_ip_range_spec.ex
kyleVsteger/elixir-google-api
3a0dd498af066a4361b5b0fd66ffc04a57539488
[ "Apache-2.0" ]
null
null
null
clients/service_networking/lib/google_api/service_networking/v1/model/secondary_ip_range_spec.ex
kyleVsteger/elixir-google-api
3a0dd498af066a4361b5b0fd66ffc04a57539488
[ "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.830189
403
0.73734
6267443c76ef603bcbc67cf092d1be8d5aa7a627
412
ex
Elixir
lib/hangman/word.ex
Hajto/hangmanelixir
a05cc0b73e0a5d464405f63d274ae622565728ca
[ "MIT" ]
null
null
null
lib/hangman/word.ex
Hajto/hangmanelixir
a05cc0b73e0a5d464405f63d274ae622565728ca
[ "MIT" ]
null
null
null
lib/hangman/word.ex
Hajto/hangmanelixir
a05cc0b73e0a5d464405f63d274ae622565728ca
[ "MIT" ]
null
null
null
defmodule Hangman.Word do use Hangman.Web, :model use Ecto.Model schema "words" do field :content, :string belongs_to :category, Hangman.Category timestamps end @required_fields ~w(content) @optional_fields ~w() def changeset(model, params \\ :empty) do model |> cast(params, @requi...
18.727273
55
0.68932
62675414ea0671240a0aeaf42f63347701545658
636
ex
Elixir
test/support/dealer_rater_mock.ex
andrhevictor/review_scraper
7628b814d7d35b185bd9bfbe83400c68486bd19a
[ "MIT" ]
null
null
null
test/support/dealer_rater_mock.ex
andrhevictor/review_scraper
7628b814d7d35b185bd9bfbe83400c68486bd19a
[ "MIT" ]
null
null
null
test/support/dealer_rater_mock.ex
andrhevictor/review_scraper
7628b814d7d35b185bd9bfbe83400c68486bd19a
[ "MIT" ]
null
null
null
defmodule ReviewScraper.DealerRaterMock do @moduledoc """ Functions to help testing the DealerRater API. """ import Tesla.Mock @base_url Application.fetch_env!(:review_scraper, :dealer_rater_base_url) def mock_dealer_rater_endpoint(status) do mock_global(fn %{method: :get, url: @base_url <> "/j...
26.5
92
0.672956
62675bf7728a1627634d6adfef2b5df3257b09cd
1,647
ex
Elixir
user_api/lib/user_api_web/endpoint.ex
uttamk/sip-of-elixr-talk
08b4f2fddea5c3c60ecb7f646071c2ce0a46dc59
[ "MIT" ]
null
null
null
user_api/lib/user_api_web/endpoint.ex
uttamk/sip-of-elixr-talk
08b4f2fddea5c3c60ecb7f646071c2ce0a46dc59
[ "MIT" ]
null
null
null
user_api/lib/user_api_web/endpoint.ex
uttamk/sip-of-elixr-talk
08b4f2fddea5c3c60ecb7f646071c2ce0a46dc59
[ "MIT" ]
null
null
null
defmodule UserApiWeb.Endpoint do use Phoenix.Endpoint, otp_app: :user_api socket "/socket", UserApiWeb.UserSocket # 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.St...
28.894737
95
0.70674
6267a6b7a0525ac778361a71fb0d7b2ff4e6ba1f
3,897
exs
Elixir
test/nostrum/struct/guild/member_test.exs
PurgePJ/nostrum
9ca0b3816416a2bd25d077bccd76d42a6b5dffa6
[ "MIT" ]
null
null
null
test/nostrum/struct/guild/member_test.exs
PurgePJ/nostrum
9ca0b3816416a2bd25d077bccd76d42a6b5dffa6
[ "MIT" ]
null
null
null
test/nostrum/struct/guild/member_test.exs
PurgePJ/nostrum
9ca0b3816416a2bd25d077bccd76d42a6b5dffa6
[ "MIT" ]
null
null
null
defmodule Nostrum.Struct.MemberTest do use ExUnit.Case, async: true alias Nostrum.Struct.{Channel, Guild, Permission, User, Overwrite} alias Nostrum.Struct.Guild.{Member, Role} doctest Member describe "mention/1" do test "matches `Nostrum.Struct.User.mention/1`" do member = %Member{user: %User{id...
29.08209
97
0.649987
6267a7d8ecbfe75ea7ae66811b55c90056543035
1,636
ex
Elixir
lib/inertia_phoenix/plug.ex
totaltrash/inertia_phoenix
c6cafd8a14c93409126d442d7fe90f1fbf91c405
[ "MIT" ]
null
null
null
lib/inertia_phoenix/plug.ex
totaltrash/inertia_phoenix
c6cafd8a14c93409126d442d7fe90f1fbf91c405
[ "MIT" ]
null
null
null
lib/inertia_phoenix/plug.ex
totaltrash/inertia_phoenix
c6cafd8a14c93409126d442d7fe90f1fbf91c405
[ "MIT" ]
null
null
null
defmodule InertiaPhoenix.Plug do @moduledoc false import Plug.Conn import InertiaPhoenix def init(default), do: default def call(conn, _) do conn |> check_inertia_req end defp check_inertia_req(conn) do case get_req_header(conn, "x-inertia") do ["true"] -> conn |> chec...
23.371429
83
0.643643
6267c757016b93bb3fbe8ee1b8da2428224f810c
63
ex
Elixir
lib/quest/web/views/question_view.ex
ench0/quest
844043205aa78e6937243f6993cbd560b6a5765b
[ "MIT" ]
null
null
null
lib/quest/web/views/question_view.ex
ench0/quest
844043205aa78e6937243f6993cbd560b6a5765b
[ "MIT" ]
null
null
null
lib/quest/web/views/question_view.ex
ench0/quest
844043205aa78e6937243f6993cbd560b6a5765b
[ "MIT" ]
null
null
null
defmodule Quest.Web.QuestionView do use Quest.Web, :view end
15.75
35
0.777778
6267d033547aa2c5d220e90a639cc41f979dfcd6
485
ex
Elixir
lib/reactive_db.ex
ReactiveWeb/reactive_db
764eda0b59156fd92fd424141b050937dcc8983a
[ "MIT" ]
1
2016-02-16T11:48:37.000Z
2016-02-16T11:48:37.000Z
lib/reactive_db.ex
ReactiveWeb/reactive_db
764eda0b59156fd92fd424141b050937dcc8983a
[ "MIT" ]
null
null
null
lib/reactive_db.ex
ReactiveWeb/reactive_db
764eda0b59156fd92fd424141b050937dcc8983a
[ "MIT" ]
null
null
null
defmodule ReactiveDb do use Application def start(_type, []) do import Supervisor.Spec, warn: false children = [ # Define workers and child supervisors to be supervised # worker(ReactiveDb.Worker, [arg1, arg2, arg3]) ] # See http://elixir-lang.org/docs/stable/elixir/Supervisor.html ...
25.526316
67
0.698969
6267f18a93bd8c532e022aa319bfc68a0ed0985c
1,925
ex
Elixir
clients/cloud_debugger/lib/google_api/cloud_debugger/v2/model/format_message.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/cloud_debugger/lib/google_api/cloud_debugger/v2/model/format_message.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/cloud_debugger/lib/google_api/cloud_debugger/v2/model/format_message.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...
33.189655
125
0.699221
6267f9554c8cdeb28dac90803843cf9411a19291
327
ex
Elixir
lib/kalevala/character/foreman/supervisor.ex
fugufish/kalevala
34d9e63fac0e51ae5c0f40da340c9f3eaaed6b94
[ "MIT" ]
125
2020-02-09T17:05:27.000Z
2022-03-31T03:31:00.000Z
lib/kalevala/character/foreman/supervisor.ex
fugufish/kalevala
34d9e63fac0e51ae5c0f40da340c9f3eaaed6b94
[ "MIT" ]
19
2020-02-20T02:36:38.000Z
2021-08-03T16:24:19.000Z
lib/kalevala/character/foreman/supervisor.ex
fugufish/kalevala
34d9e63fac0e51ae5c0f40da340c9f3eaaed6b94
[ "MIT" ]
8
2020-04-07T05:06:20.000Z
2021-11-20T06:43:14.000Z
defmodule Kalevala.Character.Foreman.Supervisor do @moduledoc """ Supervisor for foreman processes """ use DynamicSupervisor @doc false def start_link(opts) do DynamicSupervisor.start_link(__MODULE__, [], opts) end @impl true def init(_) do DynamicSupervisor.init(strategy: :one_for_one) e...
18.166667
54
0.727829
6268065084f926daf27add96bf7c0da50fc8f17e
33,214
ex
Elixir
deps/phoenix_html/lib/phoenix_html/form.ex
Hajto/hangmanelixir
a05cc0b73e0a5d464405f63d274ae622565728ca
[ "MIT" ]
null
null
null
deps/phoenix_html/lib/phoenix_html/form.ex
Hajto/hangmanelixir
a05cc0b73e0a5d464405f63d274ae622565728ca
[ "MIT" ]
null
null
null
deps/phoenix_html/lib/phoenix_html/form.ex
Hajto/hangmanelixir
a05cc0b73e0a5d464405f63d274ae622565728ca
[ "MIT" ]
null
null
null
defmodule Phoenix.HTML.Form do @moduledoc ~S""" Helpers related to producing HTML forms. The functions in this module can be used in three distinct scenario: * with model data - when information to populate the form comes from a model * with connection data - when a form is created based ...
30.839369
103
0.629825
626833bd36ba9acf5a7a5df15e202c91aba4eb01
1,084
ex
Elixir
test/support/conn_case.ex
bagilevi/fluff-web-ui
800967961ecee0b4f7d8b846ccd0507e1000a719
[ "MIT" ]
1
2017-10-31T17:06:35.000Z
2017-10-31T17:06:35.000Z
test/support/conn_case.ex
bagilevi/fluff-web-ui
800967961ecee0b4f7d8b846ccd0507e1000a719
[ "MIT" ]
null
null
null
test/support/conn_case.ex
bagilevi/fluff-web-ui
800967961ecee0b4f7d8b846ccd0507e1000a719
[ "MIT" ]
null
null
null
defmodule Fluff.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 and query models. Finally, if the test case interacts with the datab...
24.088889
67
0.701107
62683e9993e379929e17b0c2ae141852dd5fecb9
840
exs
Elixir
config/test.exs
dbernheisel/elixir-regex
250258474396269e278d23c052e714d2bf80f763
[ "MIT" ]
null
null
null
config/test.exs
dbernheisel/elixir-regex
250258474396269e278d23c052e714d2bf80f763
[ "MIT" ]
null
null
null
config/test.exs
dbernheisel/elixir-regex
250258474396269e278d23c052e714d2bf80f763
[ "MIT" ]
null
null
null
import Config config :utility, cache: Utility.Test.MockCache config :utility, Utility.Repo, database: "utility_test#{System.get_env("MIX_TEST_PARTITION")}", show_sensitive_data_on_connection_error: true, hostname: "localhost", pool_size: 10, pool: Ecto.Adapters.SQL.Sandbox if System.get_env("CI") do conf...
24
66
0.733333
62687b1262d3781f9a37e9a014278153e7382c90
373
ex
Elixir
test/support/support.ex
cassiofariasmachado/rockelivery
3d88d4d8af1cdc3f2988edc69162d848009babbd
[ "MIT" ]
1
2021-09-27T06:15:08.000Z
2021-09-27T06:15:08.000Z
test/support/support.ex
cassiofariasmachado/rockelivery
3d88d4d8af1cdc3f2988edc69162d848009babbd
[ "MIT" ]
null
null
null
test/support/support.ex
cassiofariasmachado/rockelivery
3d88d4d8af1cdc3f2988edc69162d848009babbd
[ "MIT" ]
1
2021-12-21T12:47:59.000Z
2021-12-21T12:47:59.000Z
defmodule Rockelivery.Support do import Plug.Conn alias Rockelivery.User alias RockeliveryWeb.Auth.Guardian def put_bearer_auth(conn, token) do put_req_header(conn, "authorization", "Bearer #{token}") end def puth_auth_header(conn, %User{} = user) do {:ok, token, _claims} = Guardian.encode_and_si...
21.941176
60
0.729223
62687dc7561dcf44332ceada2235b158e9b3033e
1,451
ex
Elixir
lib/ibanity/util/query_params_util.ex
ibanity/ibanity-elixir
c2e1feedbfc2376678c9db78c6365a82a654b00b
[ "MIT" ]
3
2018-11-17T18:12:15.000Z
2020-12-09T06:26:59.000Z
lib/ibanity/util/query_params_util.ex
ibanity/ibanity-elixir
c2e1feedbfc2376678c9db78c6365a82a654b00b
[ "MIT" ]
2
2018-12-12T14:14:56.000Z
2019-07-01T14:13:57.000Z
lib/ibanity/util/query_params_util.ex
ibanity/ibanity-elixir
c2e1feedbfc2376678c9db78c6365a82a654b00b
[ "MIT" ]
null
null
null
# # Credit: code adapted from the function `Plug.Conn.Query.encode/2` # from the `elixir-plug` library. # defmodule Ibanity.QueryParamsUtil do @moduledoc false def encode_query([]), do: "" def encode_query(query_params) do IO.iodata_to_binary(encode_pair("", query_params)) end #covers structs defp en...
21.656716
83
0.612681
62688bdf186bed058f7279aa059ed8646d48d2a3
2,607
exs
Elixir
test/resource/attributes_test.exs
smt116/ash
880a17f197873eb1c8dc8d81a8b4d6d9cb570b3f
[ "MIT" ]
null
null
null
test/resource/attributes_test.exs
smt116/ash
880a17f197873eb1c8dc8d81a8b4d6d9cb570b3f
[ "MIT" ]
null
null
null
test/resource/attributes_test.exs
smt116/ash
880a17f197873eb1c8dc8d81a8b4d6d9cb570b3f
[ "MIT" ]
null
null
null
defmodule Ash.Test.Resource.AttributesTest do @moduledoc false use ExUnit.Case, async: true alias Ash.Resource.Attribute defmacrop defposts(do: body) do quote do defmodule Post do @moduledoc false use Ash.Resource attributes do uuid_primary_key :id end ...
27.15625
149
0.567702
6268c7d79c8fe1b81d4ef476647fadeed7b5fe9e
4,462
exs
Elixir
test/service_test.exs
kieraneglin/activestorage_ex
3cc00c212f2e87f9e04651e16e6701af8893cc7b
[ "MIT" ]
null
null
null
test/service_test.exs
kieraneglin/activestorage_ex
3cc00c212f2e87f9e04651e16e6701af8893cc7b
[ "MIT" ]
null
null
null
test/service_test.exs
kieraneglin/activestorage_ex
3cc00c212f2e87f9e04651e16e6701af8893cc7b
[ "MIT" ]
2
2019-05-30T18:29:37.000Z
2020-06-27T18:40:03.000Z
defmodule ActivestorageExTest.ServiceTest do use ExUnit.Case doctest ActivestorageEx.Service alias ActivestorageEx.Service describe "Service.content_disposition_with/3" do test "Returns inline disposition if specified" do disposition = Service.content_disposition_with("inline", "") assert Stri...
34.589147
90
0.6645
6268db901f6047186a39a1864204d4c0a3103e06
3,251
exs
Elixir
test/cachex/actions/expire_at_test.exs
botwerk/cachex
d37996d3be35b0d8281e347d44c024ecf2735131
[ "MIT" ]
946
2017-06-26T00:36:58.000Z
2022-03-29T19:52:31.000Z
test/cachex/actions/expire_at_test.exs
botwerk/cachex
d37996d3be35b0d8281e347d44c024ecf2735131
[ "MIT" ]
152
2017-06-28T10:01:24.000Z
2022-03-24T18:46:13.000Z
test/cachex/actions/expire_at_test.exs
botwerk/cachex
d37996d3be35b0d8281e347d44c024ecf2735131
[ "MIT" ]
84
2017-06-30T05:30:31.000Z
2022-03-01T20:23:16.000Z
defmodule Cachex.Actions.ExpireAtTest do use CachexCase # This test updates the expire time on a key to expire at a given timestamp. # We make sure that TTLs are updated accordingly. If a date in the past is # given, the key is immediately removed. We also make sure that we can handle # setting expire times ...
34.221053
79
0.642264
62691a66171390a17587091ea88203616c530344
3,407
ex
Elixir
lib/storeHall_web/plugs/set_user.ex
macypa/storeHall
9fe810f763527cc87fa165138bdfb3cda92fa553
[ "MIT" ]
null
null
null
lib/storeHall_web/plugs/set_user.ex
macypa/storeHall
9fe810f763527cc87fa165138bdfb3cda92fa553
[ "MIT" ]
4
2019-07-16T06:24:42.000Z
2021-05-07T22:26:14.000Z
lib/storeHall_web/plugs/set_user.ex
macypa/storeHall
9fe810f763527cc87fa165138bdfb3cda92fa553
[ "MIT" ]
1
2018-11-23T21:13:31.000Z
2018-11-23T21:13:31.000Z
defmodule StoreHall.Plugs.SetUser do import Plug.Conn alias StoreHallWeb.AuthController alias StoreHall.Users alias StoreHall.Items alias StoreHall.Marketing.Mails def init(_params) do end def call(conn, params) do case AuthController.get_logged_user_id(conn) do nil -> conn ...
27.699187
96
0.678016
62694d140f0f71dcf85e287d9d1f33d6e54d36cb
1,925
ex
Elixir
lib/liveman_web.ex
nimblehq/liveman-demo-api
e184349983f949c8434b8651f9223db597ef1025
[ "MIT" ]
null
null
null
lib/liveman_web.ex
nimblehq/liveman-demo-api
e184349983f949c8434b8651f9223db597ef1025
[ "MIT" ]
19
2021-07-02T08:14:52.000Z
2021-07-30T09:33:12.000Z
lib/liveman_web.ex
nimblehq/liveman
e184349983f949c8434b8651f9223db597ef1025
[ "MIT" ]
null
null
null
defmodule LivemanWeb 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 LivemanWeb, :controller use LivemanWeb, :view The definitions below will be executed for every view, controller, ...
22.916667
76
0.685714
62695139cbd65d551af3f724cf36c1140c39f647
4,419
ex
Elixir
lib/vessel/mapper.ex
zackehh/vessel
401b5139d4680c6065f4024214718019068bf74e
[ "MIT" ]
14
2016-12-06T03:55:52.000Z
2017-05-23T12:07:07.000Z
lib/vessel/mapper.ex
whitfin/vessel
401b5139d4680c6065f4024214718019068bf74e
[ "MIT" ]
3
2016-11-28T20:58:05.000Z
2017-05-31T23:51:52.000Z
lib/vessel/mapper.ex
zackehh/vessel
401b5139d4680c6065f4024214718019068bf74e
[ "MIT" ]
1
2020-03-03T21:07:44.000Z
2020-03-03T21:07:44.000Z
defmodule Vessel.Mapper do @moduledoc """ This module contains the implementation of the Mapper behaviour for Vessel. A Mapper uses a Vessel Pipe in order to receive input split by lines and pass them through to the mapping function. The key for the Mapper is just a binary representation of the nth record - ...
36.520661
82
0.69948
6269835c2cad485cac2acc7015646622ce9c08a8
1,729
ex
Elixir
lib/messenger_bot/client/base.ex
mustafaturan/messenger_bot
c6c634ace2b2df02acf4a06c9b24790893d88d60
[ "Unlicense" ]
16
2018-04-19T23:50:47.000Z
2020-07-18T08:28:07.000Z
lib/messenger_bot/client/base.ex
mustafaturan/messenger_bot
c6c634ace2b2df02acf4a06c9b24790893d88d60
[ "Unlicense" ]
62
2018-11-05T08:21:23.000Z
2021-08-02T13:15:16.000Z
lib/messenger_bot/client/base.ex
mustafaturan/messenger_bot
c6c634ace2b2df02acf4a06c9b24790893d88d60
[ "Unlicense" ]
4
2019-04-25T13:30:45.000Z
2020-07-12T15:39:23.000Z
defmodule MessengerBot.Client.Base do @moduledoc false ############################################################################ # MessengerBot Client core implementation # ############################################################################ use Tesla, only: ~w(ge...
27.444444
78
0.524581
62698cdde6ee63a7412e24a0fe8015b56eaefba8
163
exs
Elixir
config/config.exs
VoiceLayer/dispatch
fe9b108c381be472cb5c8237e077ae823a512c9f
[ "MIT" ]
118
2016-08-30T09:58:05.000Z
2021-12-27T10:00:51.000Z
config/config.exs
VoiceLayer/dispatch
fe9b108c381be472cb5c8237e077ae823a512c9f
[ "MIT" ]
2
2017-05-08T18:35:43.000Z
2020-05-10T09:01:09.000Z
config/config.exs
VoiceLayer/dispatch
fe9b108c381be472cb5c8237e077ae823a512c9f
[ "MIT" ]
5
2016-12-03T02:33:02.000Z
2019-07-11T11:37:15.000Z
use Mix.Config if Mix.env() == :test do config :dispatch, pubsub: [name: Phoenix.PubSub.Test.PubSub, adapter: Phoenix.PubSub.PG2, opts: [pool_size: 1]] end
23.285714
97
0.693252
6269a78741712987964ddcce3a733513f4635802
1,642
ex
Elixir
lib/checkers_web.ex
AmazingSuka/checkers
ef85e329eeb86bb64a80bebb1214247aec2b89a5
[ "MIT" ]
null
null
null
lib/checkers_web.ex
AmazingSuka/checkers
ef85e329eeb86bb64a80bebb1214247aec2b89a5
[ "MIT" ]
null
null
null
lib/checkers_web.ex
AmazingSuka/checkers
ef85e329eeb86bb64a80bebb1214247aec2b89a5
[ "MIT" ]
null
null
null
defmodule CheckersWeb 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 CheckersWeb, :controller use CheckersWeb, :view The definitions below will be executed for every view, controlle...
23.457143
83
0.69123
6269c0ed6ccd4df853f08b3426e339cf544e18f4
2,629
ex
Elixir
lib/matcher.ex
3decibels/serex
1ae1b92d02e7e1a7ce5ff900908dd72e9b784738
[ "MIT" ]
2
2021-02-26T04:49:37.000Z
2022-02-07T04:50:43.000Z
lib/matcher.ex
3decibels/serex
1ae1b92d02e7e1a7ce5ff900908dd72e9b784738
[ "MIT" ]
null
null
null
lib/matcher.ex
3decibels/serex
1ae1b92d02e7e1a7ce5ff900908dd72e9b784738
[ "MIT" ]
null
null
null
defmodule Serex.Matcher do @moduledoc """ This module provides functions used to match regular expressions against text. """ @doc """ Searches for a regular expression match in supplied text and returns true if found. """ def match(regex, text) when is_binary(regex) and is_binary(text) do tokens = Se...
31.297619
112
0.642069
6269c5b2dcca3b8a29fad48a58d23bb7b2c06f4f
3,375
ex
Elixir
apps/api/lib/api_web/controllers/chart_museum_controller.ex
michaeljguarino/forge
50ee583ecb4aad5dee4ef08fce29a8eaed1a0824
[ "Apache-2.0" ]
59
2021-09-16T19:29:39.000Z
2022-03-31T20:44:24.000Z
apps/api/lib/api_web/controllers/chart_museum_controller.ex
svilenkov/plural
ac6c6cc15ac4b66a3b5e32ed4a7bee4d46d1f026
[ "Apache-2.0" ]
111
2021-08-15T09:56:37.000Z
2022-03-31T23:59:32.000Z
apps/api/lib/api_web/controllers/chart_museum_controller.ex
svilenkov/plural
ac6c6cc15ac4b66a3b5e32ed4a7bee4d46d1f026
[ "Apache-2.0" ]
4
2021-12-13T09:43:01.000Z
2022-03-29T18:08:44.000Z
defmodule ApiWeb.ChartMuseumController do use ApiWeb, :controller import ApiWeb.Plugs.ReverseProxy alias Core.Services.{Charts, Repositories} alias Core.Policies.Repository, as: RepoPolicy alias Core.Schema.Version plug :fetch_repository plug :authorize def index(conn, %{"repo" => repo}) do url = ...
31.542056
109
0.620444
6269f9aff85c2bca0896dd8e4ca5cdd131b7c45f
72
ex
Elixir
apps/maintenance_web/lib/maintenance_web/views/project_view.ex
eksperimental/maintenance
5d332f4886b59510e37d32ad89c724840989ada0
[ "CC0-1.0", "MIT-0" ]
3
2021-11-13T04:50:40.000Z
2022-01-09T21:27:33.000Z
apps/maintenance_web/lib/maintenance_web/views/project_view.ex
eksperimental/maintenance
5d332f4886b59510e37d32ad89c724840989ada0
[ "CC0-1.0", "MIT-0" ]
null
null
null
apps/maintenance_web/lib/maintenance_web/views/project_view.ex
eksperimental/maintenance
5d332f4886b59510e37d32ad89c724840989ada0
[ "CC0-1.0", "MIT-0" ]
null
null
null
defmodule MaintenanceWeb.ProjectView do use MaintenanceWeb, :view end
18
39
0.833333
626a0eb9ac813ddbf3150ce575cdd6f67f93ac43
2,146
ex
Elixir
clients/pub_sub/lib/google_api/pub_sub/v1/model/pull_request.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/pub_sub/lib/google_api/pub_sub/v1/model/pull_request.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/pub_sub/lib/google_api/pub_sub/v1/model/pull_request.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
148
0.724604
626a1d618a54fdb8f4bb735266bea06de830401d
7,967
exs
Elixir
deps/db_connection/integration_test/cases/after_connect_test.exs
scouten/crash_esqlite_case
986f0b0721399c7ed520f6b9df133980906e3f51
[ "MIT" ]
null
null
null
deps/db_connection/integration_test/cases/after_connect_test.exs
scouten/crash_esqlite_case
986f0b0721399c7ed520f6b9df133980906e3f51
[ "MIT" ]
null
null
null
deps/db_connection/integration_test/cases/after_connect_test.exs
scouten/crash_esqlite_case
986f0b0721399c7ed520f6b9df133980906e3f51
[ "MIT" ]
null
null
null
defmodule AfterConnectTest do use ExUnit.Case, async: true alias TestPool, as: P alias TestAgent, as: A alias TestQuery, as: Q alias TestResult, as: R test "after_connect execute" do stack = [ {:ok, :state}, {:ok, %R{}, :new_state}, {:ok, %R{}, :newer_state}, {:ok, %R{}, :newes...
29.290441
84
0.546253
626a24feabb50ffda6f163f2800005d15c94d068
795
ex
Elixir
lib/surface_bulma_widgets/components/card_with_icon.ex
elcritch/surface_bulma_widgets
94e0d129b6dda95b2dda45ce797e54a60266878b
[ "MIT" ]
null
null
null
lib/surface_bulma_widgets/components/card_with_icon.ex
elcritch/surface_bulma_widgets
94e0d129b6dda95b2dda45ce797e54a60266878b
[ "MIT" ]
null
null
null
lib/surface_bulma_widgets/components/card_with_icon.ex
elcritch/surface_bulma_widgets
94e0d129b6dda95b2dda45ce797e54a60266878b
[ "MIT" ]
null
null
null
defmodule SurfaceBulmaWidgets.Components.CardWithIcon do use Surface.Component prop icon, :string, required: true prop title, :string, required: true slot default def render(assigns) do ~F""" <div class="card" style="box-shadow: 0 2px 3px rgba(10,10,10,.1), 0 0 0 1px rgba(10,10,10,.1);"> <div...
27.413793
100
0.566038
626a514d34c276c2cd49351e021caac691c56145
132
exs
Elixir
apps/alphavantage/test/tools_test.exs
curoles/gex
fe5d4ecc76302b6e7b0cc44244d7fa7af90eb71a
[ "MIT" ]
null
null
null
apps/alphavantage/test/tools_test.exs
curoles/gex
fe5d4ecc76302b6e7b0cc44244d7fa7af90eb71a
[ "MIT" ]
null
null
null
apps/alphavantage/test/tools_test.exs
curoles/gex
fe5d4ecc76302b6e7b0cc44244d7fa7af90eb71a
[ "MIT" ]
null
null
null
defmodule ToolsTest do use ExUnit.Case doctest Tools test "greets the world" do assert Tools.hello() == :world end end
14.666667
34
0.69697
626a7b0bb5a2b0a8013fa2e42168b2c67edd5ae0
795
ex
Elixir
lib/bot/chat_bot/chat/supervisor.ex
kingdomcoding/telegram
6b8e6997fb744fa56692eb9ed1ead3e593a85cc9
[ "MIT" ]
87
2017-10-24T17:52:13.000Z
2022-03-30T19:31:43.000Z
lib/bot/chat_bot/chat/supervisor.ex
kingdomcoding/telegram
6b8e6997fb744fa56692eb9ed1ead3e593a85cc9
[ "MIT" ]
115
2017-09-16T20:01:34.000Z
2021-08-05T09:20:02.000Z
lib/bot/chat_bot/chat/supervisor.ex
kingdomcoding/telegram
6b8e6997fb744fa56692eb9ed1ead3e593a85cc9
[ "MIT" ]
19
2018-01-27T20:11:43.000Z
2022-03-19T14:08:53.000Z
defmodule Telegram.Bot.ChatBot.Chat.Supervisor do @moduledoc """ ChatBot chat supervisor. """ use Supervisor alias Telegram.Bot.{ChatBot.Chat, Utils} @spec start_link({module(), Telegram.Types.token()}) :: Supervisor.on_start() def start_link({chatbot_behaviour, max_bot_concurrency}) do Supervisor.s...
29.444444
92
0.737107
626aa77cad61c8f5306f8ada67242e2f4191bb8b
3,611
exs
Elixir
test/ratatouille/renderer/element/row_test.exs
Fitblip/ratatouille
873f8a51b0f824ce9e39b7575850fcc585cfc7b1
[ "MIT" ]
504
2019-01-13T21:53:21.000Z
2022-03-31T20:58:21.000Z
test/ratatouille/renderer/element/row_test.exs
iboard/ratatouille
cc7b6a37e0b1757cd89cc5084343814a79dd86dc
[ "MIT" ]
28
2019-01-26T21:00:23.000Z
2021-12-28T19:06:15.000Z
test/ratatouille/renderer/element/row_test.exs
iboard/ratatouille
cc7b6a37e0b1757cd89cc5084343814a79dd86dc
[ "MIT" ]
21
2019-02-21T09:08:27.000Z
2021-12-20T15:51:10.000Z
defmodule Ratatouille.Renderer.Element.RowTest do use ExUnit.Case, async: true alias Ratatouille.Renderer alias Ratatouille.Renderer.Canvas alias Ratatouille.Renderer.Element.Row import Ratatouille.View @three_equal_columns (row do column size: 4 do p...
31.12931
69
0.391027
626ac72893c71465e2c76581b8ad0ceff11e1910
2,037
ex
Elixir
server/lib/realtime_web/channels/user_socket.ex
Omneedia/realtime
90a72170aa1502e211c9f5cbf638c60add6faaf6
[ "Apache-2.0" ]
null
null
null
server/lib/realtime_web/channels/user_socket.ex
Omneedia/realtime
90a72170aa1502e211c9f5cbf638c60add6faaf6
[ "Apache-2.0" ]
null
null
null
server/lib/realtime_web/channels/user_socket.ex
Omneedia/realtime
90a72170aa1502e211c9f5cbf638c60add6faaf6
[ "Apache-2.0" ]
null
null
null
defmodule RealtimeWeb.UserSocket do use Phoenix.Socket alias RealtimeWeb.ChannelsAuthorization defoverridable init: 1 def init(state) do res = {:ok, {_, socket}} = super(state) Realtime.Metrics.SocketMonitor.track_socket(socket) res end ## Channels channel "realtime:*", RealtimeWeb.Realtim...
29.1
83
0.648012
626ad2b613fe8c875653588c7585bb1d46cfe4a6
271
ex
Elixir
learning/craft_graphql/PlateSlate/lib/plate_slate/repo.ex
Mdlkxzmcp/various_elixir
c87527b7118a0c74a042073c04d2228025888ddf
[ "MIT" ]
2
2020-01-20T20:15:20.000Z
2020-02-27T11:08:42.000Z
learning/craft_graphql/PlateSlate/lib/plate_slate/repo.ex
Mdlkxzmcp/various_elixir
c87527b7118a0c74a042073c04d2228025888ddf
[ "MIT" ]
null
null
null
learning/craft_graphql/PlateSlate/lib/plate_slate/repo.ex
Mdlkxzmcp/various_elixir
c87527b7118a0c74a042073c04d2228025888ddf
[ "MIT" ]
null
null
null
defmodule PlateSlate.Repo do use Ecto.Repo, otp_app: :plate_slate @doc """ Dynamically loads the repository url from the DATABASE_URL environment variable. """ def init(_, opts) do {:ok, Keyword.put(opts, :url, System.get_env("DATABASE_URL"))} end end
22.583333
66
0.704797
626af7011d15050ef66291e92a83128bb067c56b
4,970
ex
Elixir
lib/plug.ex
sabiwara/plug
bbe7f00cbb3e47197ce13e011407eddfafe67c70
[ "Apache-2.0" ]
null
null
null
lib/plug.ex
sabiwara/plug
bbe7f00cbb3e47197ce13e011407eddfafe67c70
[ "Apache-2.0" ]
null
null
null
lib/plug.ex
sabiwara/plug
bbe7f00cbb3e47197ce13e011407eddfafe67c70
[ "Apache-2.0" ]
null
null
null
defmodule Plug do @moduledoc """ The plug specification. There are two kind of plugs: function plugs and module plugs. #### Function plugs A function plug is any function that receives a connection and a set of options and returns a connection. Its type signature must be: (Plug.Conn.t, Plug.opts) ...
28.4
97
0.626358
626aff2fe7f01303e390f45150d0d51ac47fa750
998
exs
Elixir
test/config_test.exs
elixir-twister/quantum-elixir
c13cd11fbb1791e9161413810373914df0dbf11f
[ "Apache-2.0" ]
null
null
null
test/config_test.exs
elixir-twister/quantum-elixir
c13cd11fbb1791e9161413810373914df0dbf11f
[ "Apache-2.0" ]
null
null
null
test/config_test.exs
elixir-twister/quantum-elixir
c13cd11fbb1791e9161413810373914df0dbf11f
[ "Apache-2.0" ]
null
null
null
defmodule Quantum.ConfigTest do use ExUnit.Case import ExUnit.CaptureLog alias Quantum.Config setup do # Clear Env Application.get_all_env(:quantum) |> Enum.each(fn {key, _value} -> Application.delete_env(:quantum, key) end) end test "get/0 extracts all configuration for all applications" do...
24.341463
90
0.637275
626b03a1a43a80877b397156afece9c02755609b
2,732
ex
Elixir
lib/pjon_elixir_serial/port.ex
elcritch/pjon-elixir
3b80995826778dc86ea124c376bd01a42d0c305d
[ "Apache-2.0" ]
3
2018-11-29T14:23:27.000Z
2018-11-29T20:11:58.000Z
lib/pjon_elixir_serial/port.ex
elcritch/pjon-elixir-serial
3b80995826778dc86ea124c376bd01a42d0c305d
[ "Apache-2.0" ]
null
null
null
lib/pjon_elixir_serial/port.ex
elcritch/pjon-elixir-serial
3b80995826778dc86ea124c376bd01a42d0c305d
[ "Apache-2.0" ]
null
null
null
defmodule PjonElixirSerial.Port do require Logger @moduledoc """ Documentation for PjonElixirSerial. """ use GenServer def pack!(data) do # MsgPax.pack!(data) data end def unpack!(data) do # MsgPax.unpack!(data) data end @doc """ """ def start_link(opts \\ []) do Logger....
27.59596
96
0.625915
626b2171ca6c30f97e0e14188fbc749df41d6ffa
13,822
ex
Elixir
clients/service_usage/lib/google_api/service_usage/v1/api/operations.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/service_usage/lib/google_api/service_usage/v1/api/operations.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/service_usage/lib/google_api/service_usage/v1/api/operations.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...
46.695946
196
0.638764
626b2a8299eafa2a1cf1e3de68c69e2bfc73dd32
2,500
ex
Elixir
clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v2beta1/model/list_creative_status_breakdown_by_detail_response.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v2beta1/model/list_creative_status_breakdown_by_detail_response.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v2beta1/model/list_creative_status_breakdown_by_detail_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...
35.714286
204
0.7408
626b612919010b8acab308022e1685bc9a1cd713
352
ex
Elixir
web/models/sale__type.ex
GoberInfinity/ExamplePhoenix
4f2e016000a55dd4dbc28409dd214f0923e38e32
[ "MIT" ]
null
null
null
web/models/sale__type.ex
GoberInfinity/ExamplePhoenix
4f2e016000a55dd4dbc28409dd214f0923e38e32
[ "MIT" ]
null
null
null
web/models/sale__type.ex
GoberInfinity/ExamplePhoenix
4f2e016000a55dd4dbc28409dd214f0923e38e32
[ "MIT" ]
null
null
null
defmodule Otherpool.Sale_Type do use Otherpool.Web, :model schema "sale_types" do field :name_sale, :string timestamps() end @doc """ Builds a changeset based on the `struct` and `params`. """ def changeset(struct, params \\ %{}) do struct |> cast(params, [:name_sale]) |> validate_r...
18.526316
56
0.644886
626b640ea53ce327231f6e352fd8872bc3bb6380
5,363
exs
Elixir
test/wax_api_rest/plug_test.exs
tanguilp/wax_api_rest
c5580775afe2bad91e49083a80629da043258dd5
[ "Apache-2.0" ]
null
null
null
test/wax_api_rest/plug_test.exs
tanguilp/wax_api_rest
c5580775afe2bad91e49083a80629da043258dd5
[ "Apache-2.0" ]
null
null
null
test/wax_api_rest/plug_test.exs
tanguilp/wax_api_rest
c5580775afe2bad91e49083a80629da043258dd5
[ "Apache-2.0" ]
null
null
null
defmodule WaxAPIREST.PlugTest do use ExUnit.Case use Plug.Test defmodule AppRouter do use Plug.Router plug Plug.Session, store: :ets, key: "sid", table: :session plug(:match) plug(:dispatch) forward("/", to: WaxAPIREST.Plug) end test "attestation" do request = %{ "username" ...
43.959016
1,242
0.71639
626b8fec6d825878f1d4bca07002d20d78c64fb6
1,137
exs
Elixir
config/config.exs
alignd/ueberauth_procore
7a3b9ff77086a233d65b4b60f80b57d73de35f2d
[ "MIT" ]
null
null
null
config/config.exs
alignd/ueberauth_procore
7a3b9ff77086a233d65b4b60f80b57d73de35f2d
[ "MIT" ]
2
2019-04-03T07:36:00.000Z
2019-04-22T07:26:56.000Z
config/config.exs
alignd/ueberauth_procore
7a3b9ff77086a233d65b4b60f80b57d73de35f2d
[ "MIT" ]
1
2019-04-01T22:34:46.000Z
2019-04-01T22:34:46.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...
36.677419
73
0.755497
626b9d12e4be589a0809ecb18ffefef6aea36778
2,174
ex
Elixir
lib/heartcheck/caching_plug/server.ex
fcapovilla/heartcheck-elixir
b46bc0f8ab46edcf1b14a20de59529868de1ca32
[ "MIT" ]
31
2018-01-09T14:34:22.000Z
2022-03-30T18:14:01.000Z
lib/heartcheck/caching_plug/server.ex
fcapovilla/heartcheck-elixir
b46bc0f8ab46edcf1b14a20de59529868de1ca32
[ "MIT" ]
7
2018-12-24T01:18:34.000Z
2021-10-13T03:10:06.000Z
lib/heartcheck/caching_plug/server.ex
fcapovilla/heartcheck-elixir
b46bc0f8ab46edcf1b14a20de59529868de1ca32
[ "MIT" ]
6
2018-12-22T19:19:38.000Z
2021-09-30T17:04:56.000Z
defmodule HeartCheck.CachingPlug.Server do @moduledoc """ GenServer that serves health check results from it's internal state. """ use GenServer require Logger import HeartCheck.Plug, only: [execute: 1] @default_name __MODULE__ @doc """ Starts a server that caches the given `heartcheck` module re...
25.27907
83
0.674793
626baf8bb5bcb98bb6459ce647d7eeb3b8e46b63
12,342
ex
Elixir
lib/phoenix_live_view/test/live_view_test.ex
merongivian/phoenix_live_view
8be46f4de515c50d001f23dd0587fdf5edc87b7e
[ "MIT" ]
1
2020-12-21T16:28:29.000Z
2020-12-21T16:28:29.000Z
lib/phoenix_live_view/test/live_view_test.ex
lpil/phoenix_live_view
1942dbdf8eb503c8f170d09e1016d2ec327d4d0a
[ "MIT" ]
null
null
null
lib/phoenix_live_view/test/live_view_test.ex
lpil/phoenix_live_view
1942dbdf8eb503c8f170d09e1016d2ec327d4d0a
[ "MIT" ]
null
null
null
defmodule Phoenix.LiveViewTest do @moduledoc """ Conveniences for testing Phoenix live views. In LiveView tests, we interact with views via process communication in substitution of a browser. Like a browser, our test process receives messages about the rendered updates from the view which can be asserted a...
32.478947
109
0.656701
626bb8222ef550e0d7c097312716ad37dde7059d
2,347
ex
Elixir
apps/tai/lib/tai/venues/product.ex
ihorkatkov/tai
09f9f15d2c385efe762ae138a8570f1e3fd41f26
[ "MIT" ]
1
2019-12-19T05:16:26.000Z
2019-12-19T05:16:26.000Z
apps/tai/lib/tai/venues/product.ex
ihorkatkov/tai
09f9f15d2c385efe762ae138a8570f1e3fd41f26
[ "MIT" ]
null
null
null
apps/tai/lib/tai/venues/product.ex
ihorkatkov/tai
09f9f15d2c385efe762ae138a8570f1e3fd41f26
[ "MIT" ]
null
null
null
defmodule Tai.Venues.Product do @type status :: :pre_trading | :trading | :post_trading | :end_of_day | :halt | :auction_match | :break | :settled | :unlisted @typedoc """ The product to buy/sell or the underlying product u...
22.567308
102
0.585854
626c0b9d90831173dec1331e2def2879f8d813e9
996
ex
Elixir
lib/pande/endpoint.ex
superbogy/pande
30ebb683febd1cd10711e562863fc73b87827c53
[ "MIT" ]
1
2016-08-17T11:39:26.000Z
2016-08-17T11:39:26.000Z
lib/pande/endpoint.ex
superbogy/pande
30ebb683febd1cd10711e562863fc73b87827c53
[ "MIT" ]
null
null
null
lib/pande/endpoint.ex
superbogy/pande
30ebb683febd1cd10711e562863fc73b87827c53
[ "MIT" ]
null
null
null
defmodule Pande.Endpoint do use Phoenix.Endpoint, otp_app: :pande socket "/socket", Pande.UserSocket # 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:...
24.9
69
0.705823
626c1dc053048220471ee7dd57fb9ebed9e52fc9
468
ex
Elixir
lib/app_unite_web/views/error_helpers.ex
JakTomczak/AppUniteTask
05694bef7c9867cd873ebce308e3fe1bb8e89bf4
[ "Unlicense" ]
null
null
null
lib/app_unite_web/views/error_helpers.ex
JakTomczak/AppUniteTask
05694bef7c9867cd873ebce308e3fe1bb8e89bf4
[ "Unlicense" ]
null
null
null
lib/app_unite_web/views/error_helpers.ex
JakTomczak/AppUniteTask
05694bef7c9867cd873ebce308e3fe1bb8e89bf4
[ "Unlicense" ]
null
null
null
defmodule AppUniteWeb.ErrorHelpers do @moduledoc """ Conveniences for translating and building error messages. """ @doc """ Translates an error message. """ def translate_error({msg, opts}) do # Because the error messages we show in our forms and APIs # are defined inside Ecto, we need to transla...
27.529412
69
0.67735
626c35e9c37fdb79fbb2d24f8fd045c6d6e0473c
291
exs
Elixir
apps/re_integrations/test/test_helper.exs
ruby2elixir/emcasa-backend
70d7f4f233555417941ffa6ada84cf8740c21dd2
[ "MIT" ]
4
2019-11-01T16:29:31.000Z
2020-10-10T21:20:12.000Z
apps/re_integrations/test/test_helper.exs
eduardomartines/emcasa-backend
70d7f4f233555417941ffa6ada84cf8740c21dd2
[ "MIT" ]
null
null
null
apps/re_integrations/test/test_helper.exs
eduardomartines/emcasa-backend
70d7f4f233555417941ffa6ada84cf8740c21dd2
[ "MIT" ]
5
2019-11-04T21:25:45.000Z
2020-02-13T23:49:36.000Z
ExUnit.configure(formatters: [JUnitFormatter, ExUnit.CLIFormatter]) ExUnit.start() Ecto.Adapters.SQL.Sandbox.mode(Re.Repo, :manual) Ecto.Adapters.SQL.Sandbox.mode(ReIntegrations.Repo, :manual) Faker.start() case File.ls("temp") do {:error, :enoent} -> File.mkdir("temp") _ -> :ok end
22.384615
67
0.728522
626c375471c1024f8db2e244b4ae2d95eb95e1ad
152
ex
Elixir
chapter_1_macros/unless.ex
dev-cyprium/metaprogramming_elixir
5035ba82d1a794d032dc5eb7f8b4eaa4b550fd36
[ "MIT" ]
null
null
null
chapter_1_macros/unless.ex
dev-cyprium/metaprogramming_elixir
5035ba82d1a794d032dc5eb7f8b4eaa4b550fd36
[ "MIT" ]
null
null
null
chapter_1_macros/unless.ex
dev-cyprium/metaprogramming_elixir
5035ba82d1a794d032dc5eb7f8b4eaa4b550fd36
[ "MIT" ]
null
null
null
defmodule ControlFlow do defmacro unless(expression, do: block) do quote do if !(unquote(expression)), do: unquote(block) end end end
19
51
0.684211
626c40657076cd57f153bc526ac39231fdc70089
6,680
ex
Elixir
core/alert/handler/handler.ex
sylph01/antikythera
47a93f3d4c70975f7296725c9bde2ea823867436
[ "Apache-2.0" ]
144
2018-04-27T07:24:49.000Z
2022-03-15T05:19:37.000Z
core/alert/handler/handler.ex
sylph01/antikythera
47a93f3d4c70975f7296725c9bde2ea823867436
[ "Apache-2.0" ]
123
2018-05-01T02:54:43.000Z
2022-01-28T01:30:52.000Z
core/alert/handler/handler.ex
sylph01/antikythera
47a93f3d4c70975f7296725c9bde2ea823867436
[ "Apache-2.0" ]
14
2018-05-01T02:30:47.000Z
2022-02-21T04:38:56.000Z
# Copyright(c) 2015-2021 ACCESS CO., LTD. All rights reserved. use Croma defmodule AntikytheraCore.Alert.Message do use Croma.SubtypeOfTuple, elem_modules: [Antikythera.Time, Croma.String] end defmodule AntikytheraCore.Alert.HandlerState do alias AntikytheraCore.Alert.Message use Croma.Struct, recursive_n...
31.961722
149
0.693413
626c761d54389a9f24a3dc082cf92c1bc2907d54
224
ex
Elixir
pi_control_manager/web/controllers/api_controller.ex
harmon25/picontrol
90a203ac63c94cd0ab975313225100170c9c589a
[ "MIT" ]
2
2016-07-14T06:51:32.000Z
2017-02-10T19:19:08.000Z
pi_control_manager/web/controllers/api_controller.ex
harmon25/picontrol
90a203ac63c94cd0ab975313225100170c9c589a
[ "MIT" ]
null
null
null
pi_control_manager/web/controllers/api_controller.ex
harmon25/picontrol
90a203ac63c94cd0ab975313225100170c9c589a
[ "MIT" ]
null
null
null
defmodule PiCntrlMngr.ApiController do use PiCntrlMngr.Web, :controller def verify_token(conn, _params) do user = Guardian.Plug.current_resource(conn) json conn, %{user: user.name, admin: user.admin} end end
22.4
52
0.741071
626c84a5cb9944822f63c67dfd90e017bfb47a5a
851
ex
Elixir
lib/mastani_server/cms/job_comment_like.ex
DavidAlphaFox/coderplanets_server
3fd47bf3bba6cc04c9a34698201a60ad2f3e8254
[ "Apache-2.0" ]
1
2019-05-07T15:03:54.000Z
2019-05-07T15:03:54.000Z
lib/mastani_server/cms/job_comment_like.ex
DavidAlphaFox/coderplanets_server
3fd47bf3bba6cc04c9a34698201a60ad2f3e8254
[ "Apache-2.0" ]
null
null
null
lib/mastani_server/cms/job_comment_like.ex
DavidAlphaFox/coderplanets_server
3fd47bf3bba6cc04c9a34698201a60ad2f3e8254
[ "Apache-2.0" ]
null
null
null
defmodule MastaniServer.CMS.JobCommentLike do @moduledoc false alias __MODULE__ use Ecto.Schema import Ecto.Changeset alias MastaniServer.Accounts alias MastaniServer.CMS.JobComment @required_fields ~w(job_comment_id user_id)a @type t :: %JobCommentLike{} schema "jobs_comments_likes" do belongs...
28.366667
91
0.761457
626cd31bb528898587d8cf00aa138cc63a51dff5
1,119
exs
Elixir
apps/shopping/config/config.exs
evuez/genos
3d919bc269566a5160f21a0290d41f11b0633d15
[ "MIT" ]
null
null
null
apps/shopping/config/config.exs
evuez/genos
3d919bc269566a5160f21a0290d41f11b0633d15
[ "MIT" ]
null
null
null
apps/shopping/config/config.exs
evuez/genos
3d919bc269566a5160f21a0290d41f11b0633d15
[ "MIT" ]
null
null
null
# This file is responsible for configuring your application # and its dependencies with the aid of the Mix.Config module. use Mix.Config # This configuration is loaded before any dependency and is restricted # to this project. If another project depends on this project, this # file won't be loaded nor affect the paren...
36.096774
73
0.751564
626d02ffa9284cb31d9bf965fb54b2bbfc2390c4
2,048
ex
Elixir
clients/android_management/lib/google_api/android_management/v1/model/block_action.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/android_management/lib/google_api/android_management/v1/model/block_action.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/android_management/lib/google_api/android_management/v1/model/block_action.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...
40.96
297
0.74707
626d56d3f658d41fad6c0862291062e6306a3326
1,993
ex
Elixir
lib/sue/mailbox/telegram.ex
alwayswimmin/Sue
33dfd860e7d5b6dce11e2dc202924efad6a9474c
[ "MIT" ]
1
2020-06-21T01:50:12.000Z
2020-06-21T01:50:12.000Z
lib/sue/mailbox/telegram.ex
alwayswimmin/Sue
33dfd860e7d5b6dce11e2dc202924efad6a9474c
[ "MIT" ]
null
null
null
lib/sue/mailbox/telegram.ex
alwayswimmin/Sue
33dfd860e7d5b6dce11e2dc202924efad6a9474c
[ "MIT" ]
null
null
null
defmodule Sue.Mailbox.Telegram do @bot :sue @dialyzer [ {:no_return, [init: 1, maybe_setup_commands: 3, maybe_fetch_bot: 2]}, {:no_unused, [regexes: 0, middlewares: 0, maybe_fetch_bot: 2, handle_error_mf: 0, handle_mf: 0]} ] require Logger alias Sue.Models.{Message, Response} use ExGram.Bot,...
26.573333
97
0.663823
626db780e7867ca8ff74f89470c12384fbb101dc
95,688
ex
Elixir
clients/sas_portal/lib/google_api/sas_portal/v1alpha1/api/nodes.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/sas_portal/lib/google_api/sas_portal/v1alpha1/api/nodes.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/sas_portal/lib/google_api/sas_portal/v1alpha1/api/nodes.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
46.450485
237
0.61411
626dbaa0464b39f6ebc53c9c676dbd408c76d759
3,575
exs
Elixir
mix.exs
jvanbaarsen/appsignal-elixir
e8c481f905736ed54402dc5304efd3269cda1574
[ "MIT" ]
null
null
null
mix.exs
jvanbaarsen/appsignal-elixir
e8c481f905736ed54402dc5304efd3269cda1574
[ "MIT" ]
null
null
null
mix.exs
jvanbaarsen/appsignal-elixir
e8c481f905736ed54402dc5304efd3269cda1574
[ "MIT" ]
null
null
null
defmodule Mix.Tasks.Compile.Appsignal do use Mix.Task def run(_args) do {_, _} = Code.eval_file("mix_helpers.exs") case Mix.Appsignal.Helper.verify_system_architecture() do {:ok, arch} -> case Mix.Appsignal.Helper.ensure_downloaded(arch) do :ok -> :ok = Mix.Appsignal.He...
31.637168
97
0.59049
626dbae28b82e382875365af16036f520138cfee
6,535
ex
Elixir
lib/app/router.ex
rasjonell/noided_bot
5538201e7c5a3902e07ccb4061f38418e7b110dd
[ "MIT" ]
1
2020-01-03T07:57:50.000Z
2020-01-03T07:57:50.000Z
lib/app/router.ex
rasjonell/noided_bot
5538201e7c5a3902e07ccb4061f38418e7b110dd
[ "MIT" ]
null
null
null
lib/app/router.ex
rasjonell/noided_bot
5538201e7c5a3902e07ccb4061f38418e7b110dd
[ "MIT" ]
null
null
null
defmodule App.Router do @bot_name Application.get_env(:app, :bot_name) # Code injectors defmacro __using__(_opts) do quote do require Logger import App.Router def match_message(message) do try do apply(__MODULE__, :do_match_message, [message]) rescue er...
25.134615
86
0.609487
626de1f3687657b10e635e5109014be802cc687d
65
ex
Elixir
apps/asf_bo_web/lib/asf_bo_web/views/user_settings_view.ex
LazarRistic/asf
2c557f06839a129b35174142c91f60696be2fa89
[ "MIT" ]
null
null
null
apps/asf_bo_web/lib/asf_bo_web/views/user_settings_view.ex
LazarRistic/asf
2c557f06839a129b35174142c91f60696be2fa89
[ "MIT" ]
null
null
null
apps/asf_bo_web/lib/asf_bo_web/views/user_settings_view.ex
LazarRistic/asf
2c557f06839a129b35174142c91f60696be2fa89
[ "MIT" ]
null
null
null
defmodule AsfBOWeb.UserSettingsView do use AsfBOWeb, :view end
16.25
38
0.815385
626dfaef47464c133f7a25d1a814725775e9a684
6,977
exs
Elixir
test/livebook_web/controllers/session_controller_test.exs
howard0su/livebook
6b7825871338af0ec3f4196ec3e17d2670e6a92c
[ "Apache-2.0" ]
null
null
null
test/livebook_web/controllers/session_controller_test.exs
howard0su/livebook
6b7825871338af0ec3f4196ec3e17d2670e6a92c
[ "Apache-2.0" ]
null
null
null
test/livebook_web/controllers/session_controller_test.exs
howard0su/livebook
6b7825871338af0ec3f4196ec3e17d2670e6a92c
[ "Apache-2.0" ]
null
null
null
defmodule LivebookWeb.SessionControllerTest do use LivebookWeb.ConnCase, async: true alias Livebook.{Sessions, Session, Notebook, FileSystem} describe "show_image" do test "returns not found when the given session does not exist", %{conn: conn} do id = Livebook.Utils.random_node_aware_id() conn ...
31.147321
96
0.605274
626e307b02cc9ed7319aa51e2edb31c360d50354
11,254
ex
Elixir
lib/iex/lib/iex/autocomplete.ex
evalphobia/elixir
a07a2362e5827b09d8b27be2c1ad2980d25b9768
[ "Apache-2.0" ]
null
null
null
lib/iex/lib/iex/autocomplete.ex
evalphobia/elixir
a07a2362e5827b09d8b27be2c1ad2980d25b9768
[ "Apache-2.0" ]
null
null
null
lib/iex/lib/iex/autocomplete.ex
evalphobia/elixir
a07a2362e5827b09d8b27be2c1ad2980d25b9768
[ "Apache-2.0" ]
null
null
null
defmodule IEx.Autocomplete do @moduledoc false def expand(expr, server \\ IEx.Server) def expand('', server) do expand_variable_or_import("", server) end def expand([h | t] = expr, server) do cond do h === ?. and t != [] -> expand_dot(reduce(t), server) h === ?: and t == [] -> ...
27.381995
100
0.622179
626e3734e6d8df352d0b7e3eb8133bb050b1c47d
3,287
ex
Elixir
lib/pact.ex
BlakeWilliams/pact
bc3da192c9b5fe3ab02a05d43bc3ae3513b8f666
[ "MIT" ]
77
2015-01-06T19:46:45.000Z
2021-11-20T20:04:14.000Z
lib/pact.ex
BlakeWilliams/pact
bc3da192c9b5fe3ab02a05d43bc3ae3513b8f666
[ "MIT" ]
8
2015-02-26T16:58:40.000Z
2018-09-10T17:44:11.000Z
lib/pact.ex
BlakeWilliams/pact
bc3da192c9b5fe3ab02a05d43bc3ae3513b8f666
[ "MIT" ]
8
2015-02-25T18:35:33.000Z
2018-09-10T16:34:28.000Z
defmodule Pact do @moduledoc """ A module for managing dependecies in your applicaiton without having to "inject" dependencies all the way down your aplication. Pact allows you to set and get dependencies in your application code, and generate fakes and replace modules in your tests. To use Pact, define a ...
24.901515
81
0.632492
626e3a7f05687fe3439471091bcc2a105239a4e1
5,377
ex
Elixir
lib/oli_web/live/api_keys/api_keys_live.ex
malav2110/oli-torus
8af64e762a7c8a2058bd27a7ab8e96539ffc055f
[ "MIT" ]
null
null
null
lib/oli_web/live/api_keys/api_keys_live.ex
malav2110/oli-torus
8af64e762a7c8a2058bd27a7ab8e96539ffc055f
[ "MIT" ]
null
null
null
lib/oli_web/live/api_keys/api_keys_live.ex
malav2110/oli-torus
8af64e762a7c8a2058bd27a7ab8e96539ffc055f
[ "MIT" ]
null
null
null
defmodule OliWeb.ApiKeys.ApiKeysLive do @moduledoc """ LiveView implementation of a API Keys management. """ use OliWeb, :live_view alias OliWeb.Common.Breadcrumb defp set_breadcrumbs() do OliWeb.Admin.AdminView.breadcrumb() ++ [ Breadcrumb.new(%{ full_title: "Manage API Keys"...
32.786585
227
0.531895
626e519dd9ebabf84f7042e74940e99091b163b1
49,455
ex
Elixir
lib/hpack/huffman.ex
lucacorti/elixir-hpack
0f88d5be96b616148c63d2ec6c6b00e159c308db
[ "Unlicense", "MIT" ]
31
2016-03-11T08:45:08.000Z
2017-08-05T13:33:59.000Z
lib/hpack/huffman.ex
lucacorti/elixir-hpack
0f88d5be96b616148c63d2ec6c6b00e159c308db
[ "Unlicense", "MIT" ]
8
2018-12-03T19:36:58.000Z
2021-09-22T20:39:16.000Z
lib/hpack/huffman.ex
OleMchls/elixir-hpack
0f88d5be96b616148c63d2ec6c6b00e159c308db
[ "Unlicense", "MIT" ]
8
2016-05-05T11:59:38.000Z
2017-08-04T15:08:19.000Z
defmodule HPack.Huffman do @moduledoc """ Huffman static table de/encoding as defined in RFC 7541. """ @doc """ Decodes a Huffman encoded string with the HPACK static table. Returns the decoded String. ### Examples iex> HPack.Huffman.decode(<< 0x27::6, 0x5::5, 0x28::6, 0x28::6, 0x7::5 >>) ...
86.915641
109
0.598544
626e5faba13829e0f323a181ee63a3ee39476034
8,782
ex
Elixir
lib/ct_watcher.ex
alsyia/certstream-server
e930e7b30688f24ff16497eda68f04e63afbd910
[ "MIT" ]
null
null
null
lib/ct_watcher.ex
alsyia/certstream-server
e930e7b30688f24ff16497eda68f04e63afbd910
[ "MIT" ]
null
null
null
lib/ct_watcher.ex
alsyia/certstream-server
e930e7b30688f24ff16497eda68f04e63afbd910
[ "MIT" ]
null
null
null
require Logger defmodule Certstream.CTWatcher do @moduledoc """ The GenServer responsible for watching a specific CT server. It ticks every 15 seconds via `schedule_update`, and uses Process.send_after to trigger new requests to see if there are any certificates to fetch and broadcast. """ use GenServer ...
38.182609
179
0.634707
626e76413469c3b15d701e7e788b49fbe127b336
3,724
exs
Elixir
test/game/command/target_test.exs
shanesveller/ex_venture
68507da11442a9e0423073fcd305e9021f649ca1
[ "MIT" ]
null
null
null
test/game/command/target_test.exs
shanesveller/ex_venture
68507da11442a9e0423073fcd305e9021f649ca1
[ "MIT" ]
null
null
null
test/game/command/target_test.exs
shanesveller/ex_venture
68507da11442a9e0423073fcd305e9021f649ca1
[ "MIT" ]
null
null
null
defmodule Game.Command.TargetTest do use Data.ModelCase doctest Game.Command.Target @socket Test.Networking.Socket @room Test.Game.Room setup do npc = %{id: 1, name: "Bandit"} room = @room._room() |> Map.put(:npcs, [npc]) |> Map.put(:players, [%{id: 2, name: "Player", save: %{stats: %{healt...
36.15534
110
0.620569
626e8ef02dcd996e905564a0c252a23fa946ac89
27
ex
Elixir
lib/genomixer.ex
elbow-jason/elixir-genomics-toolkit
7317ed297802b9ed7aaacdbe11600c4225f97166
[ "MIT" ]
1
2015-02-01T23:16:08.000Z
2015-02-01T23:16:08.000Z
lib/genomixer.ex
elbow-jason/elixir-genomics-toolkit
7317ed297802b9ed7aaacdbe11600c4225f97166
[ "MIT" ]
null
null
null
lib/genomixer.ex
elbow-jason/elixir-genomics-toolkit
7317ed297802b9ed7aaacdbe11600c4225f97166
[ "MIT" ]
null
null
null
defmodule Genomixer do end
9
22
0.851852
626e9bef6f71305ce46d3c6c5d37d04ea1eb6733
1,784
ex
Elixir
lib/send_latency/receiver.ex
VoiceLayer/send_latency
8eccc764774582b41f2b331a83621014fed35dd9
[ "MIT" ]
6
2016-06-04T13:51:40.000Z
2021-06-06T13:54:38.000Z
lib/send_latency/receiver.ex
VoiceLayer/send_latency
8eccc764774582b41f2b331a83621014fed35dd9
[ "MIT" ]
null
null
null
lib/send_latency/receiver.ex
VoiceLayer/send_latency
8eccc764774582b41f2b331a83621014fed35dd9
[ "MIT" ]
null
null
null
defmodule SendLatency.Receiver do use GenServer alias __MODULE__ alias SendLatency.Quantization defstruct index: 0, pkt_count: 0, rcv_bytes: 0, latencies: [], collector: nil def start_link(params, opts \\ []) do GenServer.start_link(__MODULE__, pa...
23.786667
78
0.61491
626eb2028a9c45fe92a86290a94f4cf5085cbbae
1,985
ex
Elixir
lib/kazan.ex
ahovgaard/kazan
a93ea241ae9d94f327f741875ff43f509f72b2c6
[ "MIT" ]
139
2017-01-02T08:11:23.000Z
2022-02-10T19:23:29.000Z
lib/kazan.ex
ahovgaard/kazan
a93ea241ae9d94f327f741875ff43f509f72b2c6
[ "MIT" ]
64
2017-01-05T13:27:04.000Z
2022-02-21T15:42:23.000Z
lib/kazan.ex
ahovgaard/kazan
a93ea241ae9d94f327f741875ff43f509f72b2c6
[ "MIT" ]
30
2017-01-02T08:11:27.000Z
2021-06-24T14:24:58.000Z
defmodule Kazan do @moduledoc """ Kazan is a Kubernetes API client for Elixir. ### Module Overview - `Kazan.Apis` contains modules for building requests to send to the kube API. - `Kazan.Apis.*` modules represent one of the "groups" of API functionality exposed by k8s. The root of these modules usua...
35.446429
80
0.698741
626eb236298a52e9cd78e0dfff1d691cff471bd2
19,555
exs
Elixir
test/parse_default_test.exs
algorocom/timex
0772d4a82eb3f9d9ee3d2f5a5513fc18e3487340
[ "MIT" ]
null
null
null
test/parse_default_test.exs
algorocom/timex
0772d4a82eb3f9d9ee3d2f5a5513fc18e3487340
[ "MIT" ]
null
null
null
test/parse_default_test.exs
algorocom/timex
0772d4a82eb3f9d9ee3d2f5a5513fc18e3487340
[ "MIT" ]
null
null
null
defmodule DateFormatTest.ParseDefault do use ExUnit.Case, async: true use Timex test "exceptions" do date = "2013-03-02" assert %NaiveDateTime{:year => 2013, :month => 3, :day => 2} = Timex.parse!(date, "{YYYY}-{0M}-{0D}") assert_raise(Timex.Parse.ParseError, fn -> Timex.parse!(d...
42.418655
98
0.577448
626eccd6a041ed086803e7989b9472c0b708d63b
3,899
exs
Elixir
test/redix/start_options_test.exs
SoCal-Software-Labs/safe-redix
6ac3d42c104ee3a2bcd5d726aaca1474e95cc29f
[ "MIT" ]
968
2015-08-17T14:14:57.000Z
2022-03-29T03:39:17.000Z
test/redix/start_options_test.exs
SoCal-Software-Labs/safe-redix
6ac3d42c104ee3a2bcd5d726aaca1474e95cc29f
[ "MIT" ]
192
2015-08-17T20:39:57.000Z
2022-03-23T08:48:36.000Z
test/redix/start_options_test.exs
SoCal-Software-Labs/safe-redix
6ac3d42c104ee3a2bcd5d726aaca1474e95cc29f
[ "MIT" ]
145
2015-08-17T20:38:22.000Z
2022-03-04T22:59:47.000Z
defmodule Redix.StartOptionsTest do use ExUnit.Case, async: true alias Redix.StartOptions describe "sanitize/1" do test "fills in defaults" do opts = StartOptions.sanitize(host: "foo.com", backoff_max: 0, sync_connect: true) assert opts[:host] == 'foo.com' assert opts[:backoff_max] == 0 ...
33.324786
96
0.650167
626f196224012d0c92b074c1f30201e1c9a3afc1
219
exs
Elixir
priv/repo/migrations/20210218012209_create_meetings.exs
davemenninger/ohio_elixir
9472b71fa906e30a2a5fdc013256a5e80caedc2f
[ "MIT" ]
7
2021-01-22T00:20:04.000Z
2022-03-30T22:07:32.000Z
priv/repo/migrations/20210218012209_create_meetings.exs
davemenninger/ohio_elixir
9472b71fa906e30a2a5fdc013256a5e80caedc2f
[ "MIT" ]
11
2021-10-05T03:59:28.000Z
2022-03-20T21:54:44.000Z
priv/repo/migrations/20210218012209_create_meetings.exs
davemenninger/ohio_elixir
9472b71fa906e30a2a5fdc013256a5e80caedc2f
[ "MIT" ]
3
2021-06-10T02:48:54.000Z
2021-10-09T03:43:06.000Z
defmodule OhioElixir.Repo.Migrations.CreateMeetings do use Ecto.Migration def change do create table(:meetings) do add :date, :utc_datetime add :title, :string timestamps() end end end
16.846154
54
0.680365
626f2b92d9415a36a90215cc90236791b79fd42d
877
ex
Elixir
apps/cashtrail/test/support/factory/entities_factory.ex
maxmaccari/cashtrail
74ec7ff1f8a41299a6086dc98719a32cbfbe9ee7
[ "MIT" ]
6
2020-05-02T01:12:24.000Z
2020-06-23T12:31:32.000Z
apps/cashtrail/test/support/factory/entities_factory.ex
maxmaccari/cashtrail
74ec7ff1f8a41299a6086dc98719a32cbfbe9ee7
[ "MIT" ]
16
2020-05-02T00:07:51.000Z
2021-06-11T01:54:11.000Z
apps/cashtrail/test/support/factory/entities_factory.ex
maxmaccari/cashtrail
74ec7ff1f8a41299a6086dc98719a32cbfbe9ee7
[ "MIT" ]
null
null
null
defmodule Cashtrail.Factory.EntitiesFactory do @moduledoc false alias Cashtrail.Entities defmacro __using__(_opts) do quote do def entity_factory(attrs \\ %{}) do entity = %Entities.Entity{ name: "personal finances", type: Enum.random([:personal, :company, :other]), ...
29.233333
89
0.615735
626f2c224ff94dffbd1eaff7c41750b834213dee
1,337
ex
Elixir
clients/data_migration/lib/google_api/data_migration/v1beta1/model/resume_migration_job_request.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/data_migration/lib/google_api/data_migration/v1beta1/model/resume_migration_job_request.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/data_migration/lib/google_api/data_migration/v1beta1/model/resume_migration_job_request.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...
31.833333
95
0.774869
626f569e976f14ae8b1774774acbe1904f3c9d56
700
ex
Elixir
web_finngen_r3/lib/risteys/cox_hr.ex
vincent-octo/risteys
5bb1e70b78988770048b91b42fad025faf98d84a
[ "MIT" ]
null
null
null
web_finngen_r3/lib/risteys/cox_hr.ex
vincent-octo/risteys
5bb1e70b78988770048b91b42fad025faf98d84a
[ "MIT" ]
null
null
null
web_finngen_r3/lib/risteys/cox_hr.ex
vincent-octo/risteys
5bb1e70b78988770048b91b42fad025faf98d84a
[ "MIT" ]
null
null
null
defmodule Risteys.CoxHR do use Ecto.Schema import Ecto.Changeset schema "cox_hrs" do field :ci_max, :float field :ci_min, :float field :hr, :float field :n_individuals, :integer field :prior_id, :id field :pvalue, :float field :outcome_id, :id timestamps() end @doc false d...
25.925926
92
0.67
626f581475c01a719f2e25faf68313c709182d01
281
exs
Elixir
config/config.exs
evuez/fttz
dcf7385a2dd3aa054248abbf5cb3c03329802126
[ "MIT" ]
1
2017-03-30T08:41:19.000Z
2017-03-30T08:41:19.000Z
config/config.exs
evuez/fttz
dcf7385a2dd3aa054248abbf5cb3c03329802126
[ "MIT" ]
null
null
null
config/config.exs
evuez/fttz
dcf7385a2dd3aa054248abbf5cb3c03329802126
[ "MIT" ]
null
null
null
use Mix.Config config :extwitter, :oauth, [ consumer_key: "Your Twitter consumer key", consumer_secret: "Your Twitter consumer secret", access_token: "Your Twitter access token", access_token_secret: "Your Twitter access token secret" ] import_config "config.secret.exs"
25.545455
57
0.765125
626f72cb47f69c0abb85740ee91b96d374217d15
6,663
exs
Elixir
test/custom_event_test.exs
kianmeng/elixir_agent
3362715cf9b69a3ec95ea4c1751c65b3c4f6b4cc
[ "Apache-2.0" ]
null
null
null
test/custom_event_test.exs
kianmeng/elixir_agent
3362715cf9b69a3ec95ea4c1751c65b3c4f6b4cc
[ "Apache-2.0" ]
null
null
null
test/custom_event_test.exs
kianmeng/elixir_agent
3362715cf9b69a3ec95ea4c1751c65b3c4f6b4cc
[ "Apache-2.0" ]
null
null
null
defmodule CustomEventTest do use ExUnit.Case alias NewRelic.Harvest.Collector alias NewRelic.Custom.Event test "post a custom event" do agent_run_id = Collector.AgentRun.agent_run_id() tr_1 = %Event{ timestamp: System.system_time(:millisecond) / 1_000, type: "CustomEventTest", attri...
32.502439
95
0.7264
626f8b8a32334ba95791d271adf6022fc251d828
1,426
ex
Elixir
lib/caravan/epmd/dist.ex
c-kaieong/caravan
e639364e0e725eb5b5c80aeac473c2151db47165
[ "Apache-2.0" ]
55
2018-01-16T16:42:15.000Z
2022-03-10T09:16:57.000Z
lib/caravan/epmd/dist.ex
c-kaieong/caravan
e639364e0e725eb5b5c80aeac473c2151db47165
[ "Apache-2.0" ]
7
2018-03-29T13:21:46.000Z
2021-05-07T18:33:43.000Z
lib/caravan/epmd/dist.ex
c-kaieong/caravan
e639364e0e725eb5b5c80aeac473c2151db47165
[ "Apache-2.0" ]
5
2018-03-27T15:01:22.000Z
2021-05-27T14:50:48.000Z
defmodule Caravan.Epmd.Dist_dist do @moduledoc """ Implements the Erlang distribution protocol. Forwards most calls to `:inet_tcp_dist` with the exception of `listen/1` which uses `Caravan.Epmd` to get the distribution port instead of calling out to `epmd`. The `_dist` part of the module name is required for ...
29.102041
86
0.725105
626fbbe233fbcb79c527c167c1c378c396d63fbf
461
ex
Elixir
lib/mixwars.ex
xfxian/mixwars
871077e81170738173cc32bfe63ae18399d38bfc
[ "Apache-2.0" ]
null
null
null
lib/mixwars.ex
xfxian/mixwars
871077e81170738173cc32bfe63ae18399d38bfc
[ "Apache-2.0" ]
null
null
null
lib/mixwars.ex
xfxian/mixwars
871077e81170738173cc32bfe63ae18399d38bfc
[ "Apache-2.0" ]
null
null
null
defmodule Mixwars do use Tesla plug Tesla.Middleware.BaseUrl, "https://www.codewars.com" plug Tesla.Middleware.JSON @moduledoc """ Functions for interacting with the Codewars API. """ @doc """ Returns a kata with the given id or slug. ## Examples iex> Mixwars.get_kata("valid-braces")["name"...
18.44
59
0.655098
626fc5cb48355517ebc707b78615873d31e39a31
72
ex
Elixir
lib/opencensus_erlang_prometheus.ex
opencensus-beam/prometheus
1909783ab63fd8a14c347a8dcd83f541782c98de
[ "MIT" ]
8
2018-06-16T18:06:53.000Z
2019-01-14T15:18:23.000Z
lib/opencensus_erlang_prometheus.ex
deadtrickster/opencensus-erlang-prometheus
1909783ab63fd8a14c347a8dcd83f541782c98de
[ "MIT" ]
1
2018-11-19T21:30:17.000Z
2018-11-19T21:49:47.000Z
lib/opencensus_erlang_prometheus.ex
deadtrickster/opencensus-erlang-prometheus
1909783ab63fd8a14c347a8dcd83f541782c98de
[ "MIT" ]
1
2018-02-07T11:41:04.000Z
2018-02-07T11:41:04.000Z
defmodule OpencensusErlangPrometheus do @moduledoc """ """ end
9
39
0.680556
626ff4719e120404bf66660607524ec85eaf77ef
8,380
ex
Elixir
lib/teiserver/account/lib/user_lib.ex
badosu/teiserver
19b623aeb7c2ab28756405f7486e92b714777c54
[ "MIT" ]
4
2021-07-29T16:23:20.000Z
2022-02-23T05:34:36.000Z
lib/teiserver/account/lib/user_lib.ex
badosu/teiserver
19b623aeb7c2ab28756405f7486e92b714777c54
[ "MIT" ]
14
2021-08-01T02:36:14.000Z
2022-01-30T21:15:03.000Z
lib/teiserver/account/lib/user_lib.ex
badosu/teiserver
19b623aeb7c2ab28756405f7486e92b714777c54
[ "MIT" ]
7
2021-05-13T12:55:28.000Z
2022-01-14T06:39:06.000Z
defmodule Teiserver.Account.UserLib do use CentralWeb, :library alias Central.Account.UserQueries require Logger # Functions @spec icon :: String.t() def icon, do: "far fa-user-robot" @spec colours :: {String.t(), String.t(), String.t()} def colours, do: Central.Helpers.StylingHelper.colours(:success)...
29.611307
103
0.598329
62700cbbafcb978dc1e909de69014f7efe4169cf
1,568
ex
Elixir
lib/console/functions/functions.ex
isabella232/console-2
d4a4aca0e11c945c9698f46cb171d4645177038a
[ "Apache-2.0" ]
null
null
null
lib/console/functions/functions.ex
isabella232/console-2
d4a4aca0e11c945c9698f46cb171d4645177038a
[ "Apache-2.0" ]
1
2021-04-03T09:29:31.000Z
2021-04-03T09:29:31.000Z
lib/console/functions/functions.ex
isabella232/console-2
d4a4aca0e11c945c9698f46cb171d4645177038a
[ "Apache-2.0" ]
null
null
null
defmodule Console.Functions do import Ecto.Query, warn: false alias Console.Repo alias Console.Functions.Function alias Console.Organizations.Organization alias Console.Labels.Label def get_function!(organization, id) do Repo.get_by!(Function, [id: id, organization_id: organization.id]) end def ...
27.034483
95
0.664541
6270119106de4081e2df12e291d95701481842a5
1,147
ex
Elixir
lib/surface/components/form/inputs.ex
EddyLane/surface
1f13259cbdf81b5a4740ee13349a48f8b6c54bb5
[ "MIT" ]
1
2021-04-30T14:28:08.000Z
2021-04-30T14:28:08.000Z
lib/surface/components/form/inputs.ex
EddyLane/surface
1f13259cbdf81b5a4740ee13349a48f8b6c54bb5
[ "MIT" ]
null
null
null
lib/surface/components/form/inputs.ex
EddyLane/surface
1f13259cbdf81b5a4740ee13349a48f8b6c54bb5
[ "MIT" ]
null
null
null
defmodule Surface.Components.Form.Inputs do @moduledoc """ A wrapper for `Phoenix.HTML.Form.html.inputs_for/3`. Additionally, adds the generated form instance that is returned by `inputs_for/3` into the context, making it available to any child input. """ use Surface.Component import Phoenix.HTML.Form ...
24.404255
89
0.639058
62705d31319d8f88ef729329eb0cdf8930b3bf47
1,340
exs
Elixir
config/releases.exs
andrewgy8/postoffice
eadd84c613e20af9fd4afe4591c3a336733d3f0b
[ "Apache-2.0" ]
null
null
null
config/releases.exs
andrewgy8/postoffice
eadd84c613e20af9fd4afe4591c3a336733d3f0b
[ "Apache-2.0" ]
null
null
null
config/releases.exs
andrewgy8/postoffice
eadd84c613e20af9fd4afe4591c3a336733d3f0b
[ "Apache-2.0" ]
null
null
null
import Config config :postoffice, PostofficeWeb.Endpoint, secret_key_base: {:system, "SECRET_KEY_BASE", default: "12121212"} config :postoffice, pubsub_project_name: {:system, "GCLOUD_PUBSUB_PROJECT_ID", default: "test"} config :postoffice, max_bulk_messages: {:system, "MAX_BULK_MESSAGES", default: 3000} config :p...
38.285714
95
0.696269