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
0865ed4db37f6e94882a18c9be5d58c793051bd6
2,458
ex
Elixir
clients/drive/lib/google_api/drive/v3/model/file_list.ex
CertifiedrLi/elixir-google-api
4e0e261dd06ee7753c356cca413783f3facd5f03
[ "Apache-2.0" ]
null
null
null
clients/drive/lib/google_api/drive/v3/model/file_list.ex
CertifiedrLi/elixir-google-api
4e0e261dd06ee7753c356cca413783f3facd5f03
[ "Apache-2.0" ]
null
null
null
clients/drive/lib/google_api/drive/v3/model/file_list.ex
CertifiedrLi/elixir-google-api
4e0e261dd06ee7753c356cca413783f3facd5f03
[ "Apache-2.0" ]
1
2018-07-28T20:50:50.000Z
2018-07-28T20:50:50.000Z
# Copyright 2018 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
46.377358
480
0.751424
086633d9cf141c521abb92b7e25a2a94f7813f03
1,593
ex
Elixir
clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p4beta1_gcs_source.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p4beta1_gcs_source.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p4beta1_gcs_source.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.1875
117
0.748274
0866868935f595f2933e60618ddbc5e3b2d261c4
606
ex
Elixir
lib/helpers/patch_startup_scripts.ex
corka149/burrito
fa7d9af37b83e59a6429c19c6645ca8da170a86f
[ "MIT" ]
1
2021-12-07T18:11:14.000Z
2021-12-07T18:11:14.000Z
lib/helpers/patch_startup_scripts.ex
wojtekmach/burrito
2a3baf280a69b9fc2692d55386caca2c86e2c358
[ "MIT" ]
null
null
null
lib/helpers/patch_startup_scripts.ex
wojtekmach/burrito
2a3baf280a69b9fc2692d55386caca2c86e2c358
[ "MIT" ]
null
null
null
defmodule Burrito.Helpers.PatchStartupScripts do require Logger def run(self_path, release_path, release_name) do Logger.info("Patching shell script for release...") shell_patch_path = Path.join(self_path, ["/src", "/pass_args_patch_posix.diff"]) bat_patch_path = Path.join(self_path, ["/src", "/pass_a...
35.647059
84
0.706271
086689196a0f69499fa64f5b82476d29f0f2ef3c
3,365
exs
Elixir
test/absinthe/phoenix/controller_test.exs
matrinox/absinthe_phoenix
e0ae14c04a55550f9cd7a6845583ad0bcce79305
[ "MIT" ]
263
2016-05-12T21:26:08.000Z
2022-03-29T04:06:46.000Z
test/absinthe/phoenix/controller_test.exs
matrinox/absinthe_phoenix
e0ae14c04a55550f9cd7a6845583ad0bcce79305
[ "MIT" ]
79
2017-06-25T08:18:46.000Z
2021-12-14T15:13:06.000Z
test/absinthe/phoenix/controller_test.exs
matrinox/absinthe_phoenix
e0ae14c04a55550f9cd7a6845583ad0bcce79305
[ "MIT" ]
86
2016-05-19T09:52:32.000Z
2022-03-26T13:46:52.000Z
defmodule Absinthe.Phoenix.ControllerTest do use ExUnit.Case, async: true use Absinthe.Phoenix.ConnCase defmodule Schema do use Absinthe.Schema query do field :string, :string do arg :echo, :string resolve &resolve_echo/3 end field :integer, :integer do arg :ec...
25.884615
92
0.585736
0866992f2713d75bfe5f358811d7e41c8510197d
2,287
ex
Elixir
clients/proximity_beacon/lib/google_api/proximity_beacon/v1beta1/model/beacon_info.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/proximity_beacon/lib/google_api/proximity_beacon/v1beta1/model/beacon_info.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/proximity_beacon/lib/google_api/proximity_beacon/v1beta1/model/beacon_info.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 "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 ...
41.581818
158
0.746393
0866a395dd72b131ce31219cc3bd17cf8d998a0b
2,243
ex
Elixir
lib/zam_web.ex
praxis-of-nines/zam-search
d58261f35a22b7fd84df83674e74d59c925461f5
[ "MIT" ]
11
2019-05-27T23:43:46.000Z
2021-08-24T06:37:23.000Z
lib/zam_web.ex
praxis-of-nines/zam-search
d58261f35a22b7fd84df83674e74d59c925461f5
[ "MIT" ]
1
2020-05-17T04:51:52.000Z
2021-03-25T15:38:33.000Z
lib/zam_web.ex
praxis-of-nines/zam-search
d58261f35a22b7fd84df83674e74d59c925461f5
[ "MIT" ]
2
2019-05-27T23:43:52.000Z
2020-10-15T09:09:58.000Z
defmodule ZamWeb 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 ZamWeb, :controller use ZamWeb, :view The definitions below will be executed for every view, controller, etc, so keep...
21.990196
83
0.676326
0866b60b5c6f9b755cad1b615364272531740ff2
363
ex
Elixir
lib/otp_demo/accounts/otp_helpers.ex
moroz/phoenix-totp-demo
b07b1925a1116ecbade15cb37764e4aebf442b5b
[ "MIT" ]
null
null
null
lib/otp_demo/accounts/otp_helpers.ex
moroz/phoenix-totp-demo
b07b1925a1116ecbade15cb37764e4aebf442b5b
[ "MIT" ]
null
null
null
lib/otp_demo/accounts/otp_helpers.ex
moroz/phoenix-totp-demo
b07b1925a1116ecbade15cb37764e4aebf442b5b
[ "MIT" ]
null
null
null
defmodule OtpDemo.OtpHelpers do alias OtpDemo.Accounts.User def subject_for_otpauth(%User{} = user) do "OtpDemo:#{user.email}" end def otpauth_uri_for_user(%User{} = user) do secret = NimbleTOTP.secret() uri = user |> subject_for_otpauth() |> NimbleTOTP.otpauth_uri(secret, issue...
19.105263
58
0.658402
0866b6c5a0bef403e849752753b439fd3c99259b
702
ex
Elixir
lib/mango_web/gettext.ex
jacruzca/mango
9978dc609ed1fc86aa40386e35fae06cb95f80fc
[ "MIT" ]
121
2017-06-24T10:33:38.000Z
2022-03-17T16:02:16.000Z
lib/mango_web/gettext.ex
jacruzca/mango
9978dc609ed1fc86aa40386e35fae06cb95f80fc
[ "MIT" ]
6
2017-06-24T22:48:21.000Z
2018-03-17T01:20:32.000Z
lib/mango_web/gettext.ex
jacruzca/mango
9978dc609ed1fc86aa40386e35fae06cb95f80fc
[ "MIT" ]
29
2017-07-03T04:09:15.000Z
2022-03-02T15:45:49.000Z
defmodule MangoWeb.Gettext do @moduledoc """ A module providing Internationalization with a gettext-based API. By using [Gettext](https://hexdocs.pm/gettext), your module gains a set of macros for translations, for example: import MangoWeb.Gettext # Simple translation gettext "Here is the s...
28.08
72
0.678063
0866cfcdb538dcd046c6600b00c28c2e45948c49
3,288
ex
Elixir
web/channels/document_channel.ex
Microflow/how-can-we-fix
62f84e1c1d69a84d81cfbfcb08e2733165aa4ec6
[ "MIT" ]
93
2017-08-17T13:52:53.000Z
2022-02-06T17:28:35.000Z
web/channels/document_channel.ex
rudi-c/alchemy-book
979e1f08711eb3449913be47cddf1969beff518c
[ "MIT" ]
6
2017-10-07T22:55:46.000Z
2019-04-03T20:05:30.000Z
web/channels/document_channel.ex
Microflow/how-can-we-fix
62f84e1c1d69a84d81cfbfcb08e2733165aa4ec6
[ "MIT" ]
11
2017-08-17T13:54:54.000Z
2022-01-14T09:53:58.000Z
defmodule AlchemyBook.DocumentChannel do require Logger use AlchemyBook.Web, :channel alias AlchemyBook.Presence alias AlchemyBook.User alias AlchemyBook.Document alias AlchemyBook.DocumentRegistry alias AlchemyBook.DocumentSession intercept ["change"] def join("documents:" <> s...
30.165138
99
0.599148
0866d817d3c3ef4eba5d15e829c85bf289ab946b
2,757
ex
Elixir
clients/compute/lib/google_api/compute/v1/model/target_vpn_gateway_aggregated_list.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
null
null
null
clients/compute/lib/google_api/compute/v1/model/target_vpn_gateway_aggregated_list.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
null
null
null
clients/compute/lib/google_api/compute/v1/model/target_vpn_gateway_aggregated_list.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
1
2020-11-10T16:58:27.000Z
2020-11-10T16:58:27.000Z
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the &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.761905
381
0.739935
0866dad715e679d81f4bcda1e141cdaff719cbd0
142
ex
Elixir
aula2/lib/file_reader.ex
cenezaraujo/unifor_prog_funcional
08b5d75c535b10b7dca8ac26efc1dba14fe2a4f1
[ "Apache-2.0" ]
null
null
null
aula2/lib/file_reader.ex
cenezaraujo/unifor_prog_funcional
08b5d75c535b10b7dca8ac26efc1dba14fe2a4f1
[ "Apache-2.0" ]
null
null
null
aula2/lib/file_reader.ex
cenezaraujo/unifor_prog_funcional
08b5d75c535b10b7dca8ac26efc1dba14fe2a4f1
[ "Apache-2.0" ]
null
null
null
defmodule FileReader do def parse_data(file_name) do file_name |> File.read! |> String.split(~r{\s}, trim: true) end end
15.777778
41
0.626761
0866e2c92e7ad659c58468aeb339f8e1086873b2
1,099
ex
Elixir
web/controllers/user_controller.ex
Microflow/how-can-we-fix
62f84e1c1d69a84d81cfbfcb08e2733165aa4ec6
[ "MIT" ]
93
2017-08-17T13:52:53.000Z
2022-02-06T17:28:35.000Z
web/controllers/user_controller.ex
rudi-c/alchemy-book
979e1f08711eb3449913be47cddf1969beff518c
[ "MIT" ]
6
2017-10-07T22:55:46.000Z
2019-04-03T20:05:30.000Z
web/controllers/user_controller.ex
Microflow/how-can-we-fix
62f84e1c1d69a84d81cfbfcb08e2733165aa4ec6
[ "MIT" ]
11
2017-08-17T13:54:54.000Z
2022-01-14T09:53:58.000Z
defmodule AlchemyBook.UserController do use AlchemyBook.Web, :controller plug :authenticate_user when action in [:index, :show] alias AlchemyBook.User def new(conn, _params) do changeset = User.changeset(%User{}) render conn, "new.html", changeset: changeset end def create(conn, %{"user" => user_...
30.527778
94
0.66242
086711811131d73bd958ea89b0a3f438456c774a
132
exs
Elixir
filas/test/filas_test.exs
henriquecido/ChallengesRocketseat
9b85fefc38692dfcb9b49d07873b61555a91400d
[ "MIT" ]
null
null
null
filas/test/filas_test.exs
henriquecido/ChallengesRocketseat
9b85fefc38692dfcb9b49d07873b61555a91400d
[ "MIT" ]
null
null
null
filas/test/filas_test.exs
henriquecido/ChallengesRocketseat
9b85fefc38692dfcb9b49d07873b61555a91400d
[ "MIT" ]
null
null
null
defmodule FilasTest do use ExUnit.Case doctest Filas test "greets the world" do assert Filas.hello() == :world end end
14.666667
34
0.69697
086711a3098b88da0120b31c9baf2e853e873382
4,325
ex
Elixir
lib/images.ex
alexanderttalvarez/igdb
b5b3fa661ff48a31b97e10b1c78b3c3f38d0c342
[ "Apache-2.0" ]
null
null
null
lib/images.ex
alexanderttalvarez/igdb
b5b3fa661ff48a31b97e10b1c78b3c3f38d0c342
[ "Apache-2.0" ]
null
null
null
lib/images.ex
alexanderttalvarez/igdb
b5b3fa661ff48a31b97e10b1c78b3c3f38d0c342
[ "Apache-2.0" ]
null
null
null
defmodule Igdb.Images do @moduledoc """ Modules to retrieve the images from the API """ @images_url "http://images.igdb.com/igdb/image/upload/t_" @images_sizes ["cover_small", "screenshot_med", "cover_big", "logo_med", "screenshot_big", "screenshot_huge", "thumb", "micro", "72...
36.344538
121
0.609711
0867149e93431b96b29bd846b1e25f5fabcd3cfd
1,601
ex
Elixir
clients/dlp/lib/google_api/dlp/v2beta1/model/google_privacy_dlp_v2beta1_projection.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/dlp/lib/google_api/dlp/v2beta1/model/google_privacy_dlp_v2beta1_projection.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/dlp/lib/google_api/dlp/v2beta1/model/google_privacy_dlp_v2beta1_projection.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
1
2018-07-28T20:50:50.000Z
2018-07-28T20:50:50.000Z
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
33.354167
119
0.772642
08677a7f914b5818b5325b61bc84380f24c61fac
836
ex
Elixir
cowboy_rest_example/lib/resource/single_todo_resource.ex
ErikMejerHansen/REST-service-examples
88358f74b490f718b7c6882fc1265a2b360b8ef2
[ "Unlicense" ]
1
2019-04-22T13:39:19.000Z
2019-04-22T13:39:19.000Z
cowboy_rest_example/lib/resource/single_todo_resource.ex
ErikMejerHansen/REST-service-examples
88358f74b490f718b7c6882fc1265a2b360b8ef2
[ "Unlicense" ]
1
2017-10-06T11:54:24.000Z
2017-10-09T09:29:04.000Z
cowboy_rest_example/lib/resource/single_todo_resource.ex
ErikMejerHansen/REST-service-examples
88358f74b490f718b7c6882fc1265a2b360b8ef2
[ "Unlicense" ]
null
null
null
defmodule CowboyRestExample.SingleTodoResource do use CowboyRestExample.Defaults def allowed_methods(request, state) do {["GET", "HEAD", "OPTIONS"], request, state} end def resource_exists(request, state) do {id, request} = :cowboy_req.binding(:id, request) IO.inspect(id) case Repo.get(Cowbo...
26.967742
86
0.639952
08677e999c43adeefd942f68de73d87bae3efb0e
297
exs
Elixir
server/priv/repo/migrations/20220506230516_users.exs
thooton/secure-notepad
e780c660a9ea6e425a0e06ff1f9469f527251815
[ "MIT" ]
null
null
null
server/priv/repo/migrations/20220506230516_users.exs
thooton/secure-notepad
e780c660a9ea6e425a0e06ff1f9469f527251815
[ "MIT" ]
null
null
null
server/priv/repo/migrations/20220506230516_users.exs
thooton/secure-notepad
e780c660a9ea6e425a0e06ff1f9469f527251815
[ "MIT" ]
null
null
null
defmodule SecureNotepadServer.Database.Repo.Migrations.Users do use Ecto.Migration def change do create_if_not_exists table ("users") do add :username, :string, primary_key: true add :password, :string add :notes, :string add :note_salt, :binary end end end
22.846154
63
0.693603
0867904c80e8c1df658eb5f00a1b8f9e2126c57f
912
ex
Elixir
test/support/schemas/people_struct_with_prepare_option.ex
wmorris92/algoliax
b05d5861e694008f51289d0af7a9a4475367d1e0
[ "BSD-2-Clause" ]
null
null
null
test/support/schemas/people_struct_with_prepare_option.ex
wmorris92/algoliax
b05d5861e694008f51289d0af7a9a4475367d1e0
[ "BSD-2-Clause" ]
null
null
null
test/support/schemas/people_struct_with_prepare_option.ex
wmorris92/algoliax
b05d5861e694008f51289d0af7a9a4475367d1e0
[ "BSD-2-Clause" ]
null
null
null
defmodule Algoliax.Schemas.PeopleStructWithPrepareObject do @moduledoc false use Algoliax.Indexer, index_name: :algoliax_people_with_prepare_object_struct, object_id: :reference, prepare_object: &__MODULE__.prepare/2, algolia: [ attributes_for_faceting: ["age"], searchable_attributes: [...
24.648649
76
0.678728
08679d62a9d7741ed9d73a401c869b29e08ec873
763
exs
Elixir
integration_test/sojourn/protector_test.exs
ericentin/db_connection
5a11383dd250e77b8475fddba92e26e2bf9efad8
[ "Apache-2.0" ]
null
null
null
integration_test/sojourn/protector_test.exs
ericentin/db_connection
5a11383dd250e77b8475fddba92e26e2bf9efad8
[ "Apache-2.0" ]
null
null
null
integration_test/sojourn/protector_test.exs
ericentin/db_connection
5a11383dd250e77b8475fddba92e26e2bf9efad8
[ "Apache-2.0" ]
null
null
null
defmodule TestProtector do use ExUnit.Case, async: true alias TestPool, as: P alias TestAgent, as: A test "protector drops requests" do stack = [{:ok, :state}] {:ok, agent} = A.start_link(stack) opts = [agent: agent, parent: self(), queue_timeout: 5, protector: true, protector_update:...
27.25
76
0.613368
086820b5d41fcedc33f41396eeb2fa92cff21305
482
ex
Elixir
lib/battle_box/installed_games.ex
GrantJamesPowell/battle_box
301091955b68cd4672f6513d645eca4e3c4e17d0
[ "Apache-2.0" ]
2
2020-10-17T05:48:49.000Z
2020-11-11T02:34:15.000Z
lib/battle_box/installed_games.ex
FlyingDutchmanGames/battle_box
301091955b68cd4672f6513d645eca4e3c4e17d0
[ "Apache-2.0" ]
3
2020-05-18T05:52:21.000Z
2020-06-09T07:24:14.000Z
lib/battle_box/installed_games.ex
FlyingDutchmanGames/battle_box
301091955b68cd4672f6513d645eca4e3c4e17d0
[ "Apache-2.0" ]
null
null
null
defmodule BattleBox.InstalledGames do import BattleBox.Utilities.Humanize, only: [kebabify: 1] @games Application.get_env(:battle_box, BattleBox.GameEngine)[:games] || raise("Must set the :battle_box, BattleBox.GameEngine, :games config value") def installed_games, do: @games for game <- @games, ...
34.428571
87
0.717842
08684330f0880d1b1f926acf31649d0b291200b2
2,799
exs
Elixir
test/jumubase/accounts/user_test.exs
richeterre/jumubase-phoenix
7584f890af117d496971b5284bf9de798e22266f
[ "MIT" ]
2
2019-01-20T07:03:30.000Z
2019-04-11T10:20:14.000Z
test/jumubase/accounts/user_test.exs
richeterre/jumubase-phoenix
7584f890af117d496971b5284bf9de798e22266f
[ "MIT" ]
6
2018-09-20T05:52:14.000Z
2019-04-23T19:27:39.000Z
test/jumubase/accounts/user_test.exs
richeterre/jumubase-phoenix
7584f890af117d496971b5284bf9de798e22266f
[ "MIT" ]
null
null
null
defmodule Jumubase.UserTest do use Jumubase.DataCase alias Jumubase.Accounts.User describe "create_changeset/2" do test "is valid with valid attributes" do params = valid_user_params() changeset = User.create_changeset(%User{}, params) assert changeset.valid? end test "is invalid w...
31.449438
73
0.656306
086845966d11600b8da30d0e78fa5b9b53cbf05a
1,796
ex
Elixir
lib/slack_autolinker.ex
wojtekmach/slack_autolinker
a3623e406439f387a19456055644263993c974ff
[ "MIT" ]
3
2017-07-28T14:19:20.000Z
2021-02-09T15:01:25.000Z
lib/slack_autolinker.ex
socialpaymentsbv/slack_autolinker
a3623e406439f387a19456055644263993c974ff
[ "MIT" ]
7
2017-02-27T08:54:41.000Z
2020-03-18T10:18:49.000Z
lib/slack_autolinker.ex
socialpaymentsbv/slack_autolinker
a3623e406439f387a19456055644263993c974ff
[ "MIT" ]
2
2017-03-16T12:13:55.000Z
2021-01-14T11:51:11.000Z
defmodule SlackAutolinker do @default_repo_aliases %{ "elixir" => "elixir-lang/elixir", "ecto" => "elixir-ecto/ecto", "phoenix" => "phoenixframework/phoenix", } @github Application.get_env(:slack_autolinker, :github_adapter) alias SlackAutolinker.GitHub.Issue require Logger def reply(text, rep...
27.212121
68
0.589644
086871df2319a804c340b011869cdf79326d56ca
93
ex
Elixir
lib/bus_car_dsl/prefix.ex
elbow-jason/bus_car_dsl
a83a16b9c5c1c954b7b2284dd6a5636dbb7f4157
[ "MIT" ]
null
null
null
lib/bus_car_dsl/prefix.ex
elbow-jason/bus_car_dsl
a83a16b9c5c1c954b7b2284dd6a5636dbb7f4157
[ "MIT" ]
2
2017-04-13T22:02:38.000Z
2017-04-13T22:17:26.000Z
lib/bus_car_dsl/prefix.ex
elbow-jason/bus_car_dsl
a83a16b9c5c1c954b7b2284dd6a5636dbb7f4157
[ "MIT" ]
null
null
null
defmodule BusCarDsl.Prefix do use BusCarDsl.Element TreeLeaf.rule(:prefix, :value) end
13.285714
32
0.763441
0868ce5c088deed1b6767032a0d834a69d168464
3,097
exs
Elixir
test/real_world_web/controllers/user_controller_test.exs
mihkelal/mihkels-elixir-phoenix-realworld-example-app
f241093522b394c816e7bab8ccf5f18fdd854ac6
[ "MIT" ]
null
null
null
test/real_world_web/controllers/user_controller_test.exs
mihkelal/mihkels-elixir-phoenix-realworld-example-app
f241093522b394c816e7bab8ccf5f18fdd854ac6
[ "MIT" ]
4
2021-03-23T19:01:21.000Z
2021-03-30T18:27:24.000Z
test/real_world_web/controllers/user_controller_test.exs
mihkelal/mihkels-elixir-phoenix-realworld-example-app
f241093522b394c816e7bab8ccf5f18fdd854ac6
[ "MIT" ]
null
null
null
defmodule RealWorldWeb.UserControllerTest do use RealWorldWeb.ConnCase alias RealWorld.Account alias RealWorld.Account.User @create_attrs %{ bio: "some bio", email: "some email", image: "some image", password: "some password", username: "some username" } @update_attrs %{ bio: "some...
29.495238
88
0.586697
0868e49878b0ce608e5536c96d0a76bb700e77f4
834
ex
Elixir
lib/chameleon/util.ex
joydrive/chameleon
e314f57129a9d5db7c7526dcfeb15d82493e16a0
[ "Apache-2.0" ]
20
2018-05-21T17:06:06.000Z
2022-02-02T18:25:44.000Z
lib/chameleon/util.ex
joydrive/chameleon
e314f57129a9d5db7c7526dcfeb15d82493e16a0
[ "Apache-2.0" ]
12
2018-05-24T19:04:11.000Z
2022-01-24T22:28:30.000Z
lib/chameleon/util.ex
joydrive/chameleon
e314f57129a9d5db7c7526dcfeb15d82493e16a0
[ "Apache-2.0" ]
13
2018-05-20T10:39:59.000Z
2022-01-23T01:04:12.000Z
defmodule Chameleon.Util do @moduledoc false def keyword_to_rgb_map do Chameleon.KeywordToRGB.load() end def keyword_to_hex_map do Chameleon.KeywordToHex.load() end def pantone_to_hex_map do Chameleon.PantoneToHex.load() end def derive_input_struct(string) do cond do match = Re...
23.828571
77
0.629496
086941f1b8547c29d1c01bf263987234c43a32fd
1,725
ex
Elixir
apps/site/lib/excluded_stops.ex
noisecapella/dotcom
d5ef869412102d2230fac3dcc216f01a29726227
[ "MIT" ]
42
2019-05-29T16:05:30.000Z
2021-08-09T16:03:37.000Z
apps/site/lib/excluded_stops.ex
noisecapella/dotcom
d5ef869412102d2230fac3dcc216f01a29726227
[ "MIT" ]
872
2019-05-29T17:55:50.000Z
2022-03-30T09:28:43.000Z
apps/site/lib/excluded_stops.ex
noisecapella/dotcom
d5ef869412102d2230fac3dcc216f01a29726227
[ "MIT" ]
12
2019-07-01T18:33:21.000Z
2022-03-10T02:13:57.000Z
defmodule ExcludedStops do @moduledoc """ Responsible for determing which, if any, stops should be filtered out of the list of all_stops based on origin, route ID, and direction ID. """ @braintree_stops [ "place-brntn", "place-qamnl", "place-qnctr", "place-wlsta", "place-nqncy" ] @ash...
26.538462
97
0.693913
08694a0fce9189bbd54c3d7d01c45fe553e90bb7
4,901
ex
Elixir
lib/ex_admin/view_helpers.ex
IvanIvanoff/ex_admin
550f748c3b8e18f02ea86b63c67e4e674b2edb41
[ "MIT" ]
1
2020-08-07T19:51:47.000Z
2020-08-07T19:51:47.000Z
lib/ex_admin/view_helpers.ex
IvanIvanoff/ex_admin
550f748c3b8e18f02ea86b63c67e4e674b2edb41
[ "MIT" ]
null
null
null
lib/ex_admin/view_helpers.ex
IvanIvanoff/ex_admin
550f748c3b8e18f02ea86b63c67e4e674b2edb41
[ "MIT" ]
1
2019-11-24T12:39:38.000Z
2019-11-24T12:39:38.000Z
defmodule ExAdmin.ViewHelpers do @moduledoc false use Xain import ExAdmin.Utils import ExAdmin.Gettext require Logger @endpoint Application.get_env(:ex_admin, :endpoint) def endpoint, do: @endpoint # defmacro __using__(_opts) do # import unquote(__MODULE__) # import UcxNotifier.Admin.ViewHelp...
24.628141
96
0.537849
086986e470db2b309fb544cce01391dd58b1b5f4
1,574
ex
Elixir
lib/remote_ip/headers/generic.ex
almirsarajcic/remote_ip
ccaa8b93aadcaae356f149e6253fe9671bc455d9
[ "MIT" ]
null
null
null
lib/remote_ip/headers/generic.ex
almirsarajcic/remote_ip
ccaa8b93aadcaae356f149e6253fe9671bc455d9
[ "MIT" ]
null
null
null
lib/remote_ip/headers/generic.ex
almirsarajcic/remote_ip
ccaa8b93aadcaae356f149e6253fe9671bc455d9
[ "MIT" ]
null
null
null
defmodule RemoteIp.Headers.Generic do @moduledoc """ Generic parser for forwarding headers. When there is no other special `RemoteIp.Headers.*` parser submodule, `RemoteIp.Headers.parse/2` will use this module to parse the header value. So, `RemoteIp.Headers.Generic` is used to parse `X-Forwarded-For`, `X-...
25.803279
77
0.617535
0869a5301da810f0e184ccec922a22c402f0155b
984
exs
Elixir
test/bitcoin/node/storage/engine/postgres_test.exs
JohnSmall/bitcoin-elixir
db82ced4c7d0ae7638fcbe67d2312e44905c5f35
[ "Apache-2.0" ]
null
null
null
test/bitcoin/node/storage/engine/postgres_test.exs
JohnSmall/bitcoin-elixir
db82ced4c7d0ae7638fcbe67d2312e44905c5f35
[ "Apache-2.0" ]
null
null
null
test/bitcoin/node/storage/engine/postgres_test.exs
JohnSmall/bitcoin-elixir
db82ced4c7d0ae7638fcbe67d2312e44905c5f35
[ "Apache-2.0" ]
null
null
null
defmodule Bitcoin.Node.Storage.Engine.PostgesTest do use ExUnit.Case alias Bitcoin.Node.Storage.Engine.Postgres alias Bitcoin.Protocol.Messages @moduletag :postgres setup do # Explicitly get a connection before each test {:ok, _pid} = Postgres.start_link(%{}) Ecto.Adapters.SQL.Sandbox.mode(Post...
28.941176
76
0.698171
0869d4ee5ce95b3aaebbca2a749ea130eaa0f903
764
exs
Elixir
integration_test/pool/pool.exs
ashneyderman/ecto
16f27f64c5ca2480568fad10e40c26522ffbf793
[ "Apache-2.0" ]
null
null
null
integration_test/pool/pool.exs
ashneyderman/ecto
16f27f64c5ca2480568fad10e40c26522ffbf793
[ "Apache-2.0" ]
null
null
null
integration_test/pool/pool.exs
ashneyderman/ecto
16f27f64c5ca2480568fad10e40c26522ffbf793
[ "Apache-2.0" ]
null
null
null
defmodule Ecto.Integration.Pool do alias Ecto.Adapters.Pool defmodule Connection do @behaviour Ecto.Adapters.Connection def connect(_opts) do Agent.start_link(fn -> [] end) end def disconnect(conn) do Agent.stop(conn) end end defmacro __using__(pool_mod) do quote do ...
21.828571
67
0.646597
0869dd03918c0a1561b3834cce74d6cfe3de63b6
814
ex
Elixir
test/support/noop_runtime.ex
doyobi/livebook
136d5039c42b406dd0b31aea188deb4fce3b1328
[ "Apache-2.0" ]
1
2022-02-16T09:13:27.000Z
2022-02-16T09:13:27.000Z
test/support/noop_runtime.ex
doyobi/livebook
136d5039c42b406dd0b31aea188deb4fce3b1328
[ "Apache-2.0" ]
null
null
null
test/support/noop_runtime.ex
doyobi/livebook
136d5039c42b406dd0b31aea188deb4fce3b1328
[ "Apache-2.0" ]
null
null
null
defmodule Livebook.Runtime.NoopRuntime do @moduledoc false # A runtime that doesn't do any actual evaluation, # thus not requiring any underlying resources. defstruct [] def new(), do: %__MODULE__{} defimpl Livebook.Runtime do def connect(_, _), do: make_ref() def disconnect(_), do: :ok def ...
28.068966
86
0.62285
0869df60e7186ad0f60043706342441349dda348
1,975
ex
Elixir
clients/sheets/lib/google_api/sheets/v4/model/update_protected_range_request.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/sheets/lib/google_api/sheets/v4/model/update_protected_range_request.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/sheets/lib/google_api/sheets/v4/model/update_protected_range_request.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 ...
37.264151
152
0.739747
086a16a8d358610eeee80e9970959ec11af2e5b5
70,423
ex
Elixir
lib/ecto/repo.ex
sthagen/elixir-ecto-ecto
a71dc13ba376663279f0c607ebec510018802b30
[ "Apache-2.0" ]
null
null
null
lib/ecto/repo.ex
sthagen/elixir-ecto-ecto
a71dc13ba376663279f0c607ebec510018802b30
[ "Apache-2.0" ]
null
null
null
lib/ecto/repo.ex
sthagen/elixir-ecto-ecto
a71dc13ba376663279f0c607ebec510018802b30
[ "Apache-2.0" ]
null
null
null
defmodule Ecto.Repo do @moduledoc """ Defines a repository. A repository maps to an underlying data store, controlled by the adapter. For example, Ecto ships with a Postgres adapter that stores data into a PostgreSQL database. When used, the repository expects the `:otp_app` and `:adapter` as option. Th...
38.045921
164
0.673388
086a17a29f3c8007d14403e0e3d6a2ed79d66c44
490
ex
Elixir
lib/providers/internal_token.ex
Betterez/btrz_ex_auth_api
cf4fc4826a4b41d527b2cf50d1cbfbe34973c1ed
[ "MIT" ]
1
2018-10-16T08:13:12.000Z
2018-10-16T08:13:12.000Z
lib/providers/internal_token.ex
Betterez/btrz_ex_auth_api
cf4fc4826a4b41d527b2cf50d1cbfbe34973c1ed
[ "MIT" ]
null
null
null
lib/providers/internal_token.ex
Betterez/btrz_ex_auth_api
cf4fc4826a4b41d527b2cf50d1cbfbe34973c1ed
[ "MIT" ]
null
null
null
defmodule BtrzAuth.Providers.InternalToken do @moduledoc """ InternalTokenToken will generate tokens for internal services authentication """ @doc """ Gets a token with the internal options """ @spec get_token(Keyword.t()) :: {:ok, Guardian.Token.token(), Guardian.Token.claims()} | {:error, any...
30.625
83
0.67551
086a5d5b402699e32e8682f376e97b93e0f24529
5,713
ex
Elixir
lib/plug/session/cookie.ex
gjaldon/plug
bfe88530b429c7b9b29b69b737772ef7c6aa2f6b
[ "Apache-2.0" ]
null
null
null
lib/plug/session/cookie.ex
gjaldon/plug
bfe88530b429c7b9b29b69b737772ef7c6aa2f6b
[ "Apache-2.0" ]
null
null
null
lib/plug/session/cookie.ex
gjaldon/plug
bfe88530b429c7b9b29b69b737772ef7c6aa2f6b
[ "Apache-2.0" ]
1
2019-11-23T12:09:14.000Z
2019-11-23T12:09:14.000Z
defmodule Plug.Session.COOKIE do @moduledoc """ Stores the session in a cookie. This cookie store is based on `Plug.Crypto.MessageVerifier` and `Plug.Crypto.Message.Encryptor` which encrypts and signs each cookie to ensure they can't be read nor tampered with. Since this store uses crypto features, it req...
32.833333
97
0.653422
086a77dd5c782b5fa9a09fa39fe314a519a401d8
4,300
ex
Elixir
lib/faker/industry/hy.ex
joshillian/faker
eeede9d7c35c543dcf6abe72dc476e755c80415b
[ "MIT" ]
540
2015-01-05T16:31:49.000Z
2019-09-25T00:40:27.000Z
lib/faker/industry/hy.ex
joshillian/faker
eeede9d7c35c543dcf6abe72dc476e755c80415b
[ "MIT" ]
172
2015-01-06T03:55:17.000Z
2019-10-03T12:58:02.000Z
lib/faker/industry/hy.ex
joshillian/faker
eeede9d7c35c543dcf6abe72dc476e755c80415b
[ "MIT" ]
163
2015-01-05T21:24:54.000Z
2019-10-03T07:59:42.000Z
defmodule Faker.Industry.Hy do import Faker, only: [sampler: 2] @moduledoc """ Functions for generating industry related data in Armenian """ @doc """ Returns an industry name. ## Examples iex> Faker.Industry.Hy.industry "Հյուրընկալություն" iex> Faker.Industry.Hy.industry "Բժշկ...
27.564103
60
0.684186
086ab1916ce68492ae2e8af71b20259a96c69461
282
exs
Elixir
priv/repo/migrations/20171223111152_add_cms_author_id_to_posts.exs
DavidAlphaFox/coderplanets_server
3fd47bf3bba6cc04c9a34698201a60ad2f3e8254
[ "Apache-2.0" ]
1
2019-05-07T15:03:54.000Z
2019-05-07T15:03:54.000Z
priv/repo/migrations/20171223111152_add_cms_author_id_to_posts.exs
DavidAlphaFox/coderplanets_server
3fd47bf3bba6cc04c9a34698201a60ad2f3e8254
[ "Apache-2.0" ]
null
null
null
priv/repo/migrations/20171223111152_add_cms_author_id_to_posts.exs
DavidAlphaFox/coderplanets_server
3fd47bf3bba6cc04c9a34698201a60ad2f3e8254
[ "Apache-2.0" ]
null
null
null
defmodule MastaniServer.Repo.Migrations.AddCmsAuthorIdToPosts do use Ecto.Migration def change do alter table(:cms_posts) do add(:author_id, references(:cms_authors, on_delete: :delete_all), null: false) end create(index(:cms_posts, [:author_id])) end end
23.5
84
0.730496
086ab6a8988a0c587b231760c38b2663cde08c5b
1,641
ex
Elixir
clients/container/lib/google_api/container/v1/model/legacy_abac.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/container/lib/google_api/container/v1/model/legacy_abac.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/container/lib/google_api/container/v1/model/legacy_abac.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
34.914894
303
0.748324
086ac49fd2c8f9ac83396235e5dfa9783116c5cc
212
ex
Elixir
testData/org/elixir_lang/formatting/map_update_arguments_align_keywords.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/formatting/map_update_arguments_align_keywords.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/formatting/map_update_arguments_align_keywords.ex
keyno63/intellij-elixir
4033e319992c53ddd42a683ee7123a97b5e34f02
[ "Apache-2.0" ]
145
2015-01-15T11:37:16.000Z
2021-12-22T05:51:02.000Z
%{ state | request_by_correlation_id: Map.put( state.request_by_correlation_id, correlation_id, %Retort.Client.Request{ from: from, method: String.to_existing_atom(method) } ) }
17.666667
45
0.665094
086b00049d4e2a6a4031a1baec23c4238946c8d0
1,306
exs
Elixir
test/mango_web/acceptance/registration_test.exs
sophiabrandt/mango
c42c2e463c7bdeb7f18400a3001a8cc6e326159d
[ "MIT" ]
4
2019-07-17T04:46:37.000Z
2020-09-20T14:15:23.000Z
test/mango_web/acceptance/registration_test.exs
sophiabrandt/mango
c42c2e463c7bdeb7f18400a3001a8cc6e326159d
[ "MIT" ]
null
null
null
test/mango_web/acceptance/registration_test.exs
sophiabrandt/mango
c42c2e463c7bdeb7f18400a3001a8cc6e326159d
[ "MIT" ]
1
2019-07-17T04:46:39.000Z
2019-07-17T04:46:39.000Z
defmodule MangoWeb.Acceptance.RegistrationTest do use Mango.DataCase use Hound.Helpers hound_session() test "registers an account with valid data" do navigate_to("/register") form = find_element(:id, "registration-form") find_within_element(form, :name, "registration[name]") |> fill_field("J...
25.607843
82
0.677642
086b1c8a4874502c98ddcbda70e98011eae1ca78
409
exs
Elixir
test/ctrlv_web/views/error_view_test.exs
ryanwinchester/ctrlv
eee44962dda062ba2154cc8bb57d86a6d814c71f
[ "Apache-2.0" ]
1
2022-03-31T17:55:16.000Z
2022-03-31T17:55:16.000Z
test/ctrlv_web/views/error_view_test.exs
ryanwinchester/ctrlv
eee44962dda062ba2154cc8bb57d86a6d814c71f
[ "Apache-2.0" ]
7
2022-03-30T02:52:54.000Z
2022-03-30T23:11:01.000Z
test/ctrlv_web/views/error_view_test.exs
ryanwinchester/ctrlv
eee44962dda062ba2154cc8bb57d86a6d814c71f
[ "Apache-2.0" ]
1
2022-03-31T03:37:16.000Z
2022-03-31T03:37:16.000Z
defmodule CtrlvWeb.ErrorViewTest do use CtrlvWeb.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(CtrlvWeb.ErrorView, "404.html", []) == "Not Found" end test "renders 500.html" do assert r...
27.266667
90
0.728606
086b2c82ec399f214dea8a67cedd8aea5f9af3f2
3,575
exs
Elixir
test/user/refute_called_once_test.exs
kianmeng/patch
d7d8d70a0285129ec67a43473db587011524fe0c
[ "MIT" ]
57
2020-04-22T00:19:04.000Z
2022-03-20T11:57:00.000Z
test/user/refute_called_once_test.exs
kianmeng/patch
d7d8d70a0285129ec67a43473db587011524fe0c
[ "MIT" ]
9
2021-10-29T20:54:56.000Z
2022-02-19T03:41:01.000Z
test/user/refute_called_once_test.exs
kianmeng/patch
d7d8d70a0285129ec67a43473db587011524fe0c
[ "MIT" ]
2
2021-07-02T14:41:48.000Z
2022-01-12T11:47:26.000Z
defmodule Patch.Test.User.RefuteCalledOnecTest do use ExUnit.Case use Patch alias Patch.Test.Support.User.RefuteCalledOnce describe "refute_called_once/1" do test "exact call can be refuted" do patch(RefuteCalledOnce, :example, :patched) assert RefuteCalledOnce.example(1, 2) == :patched ...
30.29661
94
0.696503
086b3579f599638a49f78de76324104174a5195a
1,018
exs
Elixir
test/ranking_test.exs
jannikbecher/schocken
ea45d27dbbbbfa540aebeba55f82f420c7ddda8f
[ "MIT" ]
null
null
null
test/ranking_test.exs
jannikbecher/schocken
ea45d27dbbbbfa540aebeba55f82f420c7ddda8f
[ "MIT" ]
null
null
null
test/ranking_test.exs
jannikbecher/schocken
ea45d27dbbbbfa540aebeba55f82f420c7ddda8f
[ "MIT" ]
null
null
null
defmodule Schocken.Game.RankingTest do use ExUnit.Case alias Schocken.Game.Ranking setup do toss = %{ one_toss: true, score: nil, tries: 1 } {:ok, toss: toss} end test "ranking of house number", context do assert {1, 331, 1} == get_eval([1, 3, 3], context.toss) end t...
21.659574
59
0.603143
086b4f914b55d1d969170684deb8e1183a011fec
920
ex
Elixir
elixir/advent_of_code/lib/day2/part1.ex
childss/aoc-2016
8570cf4bcf42e1ea85cfdf5e3444baf71c5c5312
[ "MIT" ]
null
null
null
elixir/advent_of_code/lib/day2/part1.ex
childss/aoc-2016
8570cf4bcf42e1ea85cfdf5e3444baf71c5c5312
[ "MIT" ]
null
null
null
elixir/advent_of_code/lib/day2/part1.ex
childss/aoc-2016
8570cf4bcf42e1ea85cfdf5e3444baf71c5c5312
[ "MIT" ]
null
null
null
defmodule Day2.Part1 do @states %{ # U, D, L, R 1 => {1, 4, 1, 2}, 2 => {2, 5, 1, 3}, 3 => {3, 6, 2, 3}, 4 => {1, 7, 4, 5}, 5 => {2, 8, 4, 6}, 6 => {3, 9, 5, 6}, 7 => {4, 7, 7, 8}, 8 => {5, 8, 7, 9}, 9 => {6, 9, 8, 9} } def run(input) do input |> File.read! ...
23
65
0.488043
086b56bdc982492ef5a25b7780a1a29f52274c6d
884
ex
Elixir
clients/workflows/lib/google_api/workflows/v1/metadata.ex
renovate-bot/elixir-google-api
1da34cd39b670c99f067011e05ab90af93fef1f6
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/workflows/lib/google_api/workflows/v1/metadata.ex
swansoffiee/elixir-google-api
9ea6d39f273fb430634788c258b3189d3613dde0
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/workflows/lib/google_api/workflows/v1/metadata.ex
dazuma/elixir-google-api
6a9897168008efe07a6081d2326735fe332e522c
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
32.740741
74
0.75905
086b63cb3327b60dd25d8a78d2494a9f1db84751
490
ex
Elixir
lib/koans/04_atoms.ex
tootoobeepbeep/elixir-koans-ans
01b0962e1db0c51a72e33820a360c216ce466f31
[ "MIT" ]
null
null
null
lib/koans/04_atoms.ex
tootoobeepbeep/elixir-koans-ans
01b0962e1db0c51a72e33820a360c216ce466f31
[ "MIT" ]
null
null
null
lib/koans/04_atoms.ex
tootoobeepbeep/elixir-koans-ans
01b0962e1db0c51a72e33820a360c216ce466f31
[ "MIT" ]
null
null
null
defmodule Atoms do use Koans @intro "Atoms" koan "Atoms are constants where their name is their own value" do adam = :human assert adam == :human end koan "It is surprising to find out that booleans are atoms" do assert is_atom(true) == true assert is_boolean(false) == true assert tru...
21.304348
67
0.653061
086b77fa4cba9ce964557712a7c6400df7e4e333
1,561
ex
Elixir
farmbot_ext/lib/farmbot_ext/api/eager_loader/supervisor.ex
adamswsk/farmbot_os
d177d3b74888c1e7bcbf8f8595818708ee97f73b
[ "MIT" ]
1
2021-08-23T13:36:14.000Z
2021-08-23T13:36:14.000Z
farmbot_ext/lib/farmbot_ext/api/eager_loader/supervisor.ex
adamswsk/farmbot_os
d177d3b74888c1e7bcbf8f8595818708ee97f73b
[ "MIT" ]
null
null
null
farmbot_ext/lib/farmbot_ext/api/eager_loader/supervisor.ex
adamswsk/farmbot_os
d177d3b74888c1e7bcbf8f8595818708ee97f73b
[ "MIT" ]
null
null
null
defmodule FarmbotExt.API.EagerLoader.Supervisor do @moduledoc """ Responsible for supervising all assets that need to be eagerloaded """ use Supervisor alias FarmbotExt.API.EagerLoader alias FarmbotCore.Asset.{ Device, FarmEvent, FarmwareEnv, FirstPartyFarmware, FarmwareInstallation,...
22.955882
91
0.668161
086b79d3183818604c3ff6ce38ad479832dedd0e
1,745
exs
Elixir
mix.exs
Dania02525/widget_saas
17b853f07be08a851c3e355863c18e15755cb7cb
[ "MIT" ]
12
2016-01-27T01:30:42.000Z
2019-12-07T20:31:01.000Z
mix.exs
Dania02525/widget_saas
17b853f07be08a851c3e355863c18e15755cb7cb
[ "MIT" ]
3
2016-11-22T12:22:59.000Z
2017-08-01T17:26:40.000Z
mix.exs
Dania02525/widget_saas
17b853f07be08a851c3e355863c18e15755cb7cb
[ "MIT" ]
5
2016-07-11T18:39:02.000Z
2019-10-23T03:22:49.000Z
defmodule WidgetSaas.Mixfile do use Mix.Project def project do [ app: :widget_saas, version: "0.0.2", elixir: "~> 1.4", elixirc_paths: elixirc_paths(Mix.env), compilers: [:phoenix, :gettext] ++ Mix.compilers, build_embedded: Mix.env == :prod, start_permanent: Mix.env =...
27.265625
79
0.574212
086b8e969e22235600dcb7b7c7dc1c16208041bc
1,810
ex
Elixir
clients/games/lib/google_api/games/v1/model/profile_settings.ex
kolorahl/elixir-google-api
46bec1e092eb84c6a79d06c72016cb1a13777fa6
[ "Apache-2.0" ]
null
null
null
clients/games/lib/google_api/games/v1/model/profile_settings.ex
kolorahl/elixir-google-api
46bec1e092eb84c6a79d06c72016cb1a13777fa6
[ "Apache-2.0" ]
null
null
null
clients/games/lib/google_api/games/v1/model/profile_settings.ex
kolorahl/elixir-google-api
46bec1e092eb84c6a79d06c72016cb1a13777fa6
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
34.150943
174
0.720442
086b918bf30dae04fe9f6e0bd44745ab4aab9c32
1,662
exs
Elixir
config/dev.exs
tairone-livinalli/rocketpay
f58be9330b678a486d717613790e9e3d9f0fe9d1
[ "MIT" ]
null
null
null
config/dev.exs
tairone-livinalli/rocketpay
f58be9330b678a486d717613790e9e3d9f0fe9d1
[ "MIT" ]
null
null
null
config/dev.exs
tairone-livinalli/rocketpay
f58be9330b678a486d717613790e9e3d9f0fe9d1
[ "MIT" ]
null
null
null
use Mix.Config # Configure your database config :rocketpay, Rocketpay.Repo, username: "postgres", password: "rocketpay", database: "rocketpay_dev", hostname: "localhost", show_sensitive_data_on_connection_error: true, pool_size: 10 # For development, we disable any cache and enable # debugging and code re...
28.655172
68
0.728039
086b95d530d8b5f9a11a3a7246e5ea0e3725e9aa
2,902
exs
Elixir
test/tracer/pid_handler_test.exs
gabiz/tracer
4659bf3cc9e0cc86e653794b800e9eb5bbe9f0a2
[ "MIT" ]
125
2017-09-08T06:33:28.000Z
2022-03-09T10:48:04.000Z
test/tracer/pid_handler_test.exs
Gazler/tracer
4659bf3cc9e0cc86e653794b800e9eb5bbe9f0a2
[ "MIT" ]
3
2017-09-21T01:56:24.000Z
2020-10-29T13:27:44.000Z
test/tracer/pid_handler_test.exs
Gazler/tracer
4659bf3cc9e0cc86e653794b800e9eb5bbe9f0a2
[ "MIT" ]
6
2017-09-08T21:41:32.000Z
2019-11-16T10:39:16.000Z
defmodule Tracer.PidHandler.Test do use ExUnit.Case alias Tracer.PidHandler test "start raises an error when no callback is passed" do assert_raise ArgumentError, "missing event_callback configuration", fn -> PidHandler.start(max_message_count: 1) end end test "start spawn a process and retur...
33.356322
78
0.639904
086ba231546fda220797479b09b81b6d9608b959
133
ex
Elixir
03-chapter/04_checkout.ex
herminiotorres/learn-funcional-programming-with-elixir
01b0696e0859da20f389a6e53c51b5ab6c4f6e24
[ "MIT" ]
1
2022-03-01T13:54:43.000Z
2022-03-01T13:54:43.000Z
03-chapter/04_checkout.ex
herminiotorres/learn-funcional-programming-with-elixir
01b0696e0859da20f389a6e53c51b5ab6c4f6e24
[ "MIT" ]
null
null
null
03-chapter/04_checkout.ex
herminiotorres/learn-funcional-programming-with-elixir
01b0696e0859da20f389a6e53c51b5ab6c4f6e24
[ "MIT" ]
null
null
null
defmodule Checkout do def total_cost(price), do: total_cost(price, 10) def total_cost(price, quantity), do: price * quantity end
26.6
55
0.75188
086bb4972d3bfae39eb6c46663e80afa21d68b99
68
exs
Elixir
test/test_helper.exs
yoossaland/yoossa
1e1ab968d12c7690a76fc670c47c91c29efb2979
[ "BSD-2-Clause" ]
null
null
null
test/test_helper.exs
yoossaland/yoossa
1e1ab968d12c7690a76fc670c47c91c29efb2979
[ "BSD-2-Clause" ]
null
null
null
test/test_helper.exs
yoossaland/yoossa
1e1ab968d12c7690a76fc670c47c91c29efb2979
[ "BSD-2-Clause" ]
null
null
null
ExUnit.start() Ecto.Adapters.SQL.Sandbox.mode(Madari.Repo, :manual)
22.666667
52
0.779412
086bd5c3aa2f2178f92916382a928ea5ff5203ad
4,127
ex
Elixir
lib/repo/queryable.ex
scripbox/ex_audit
6478d72816e9357c9ba4eb5eeafd0244010133b4
[ "MIT" ]
null
null
null
lib/repo/queryable.ex
scripbox/ex_audit
6478d72816e9357c9ba4eb5eeafd0244010133b4
[ "MIT" ]
null
null
null
lib/repo/queryable.ex
scripbox/ex_audit
6478d72816e9357c9ba4eb5eeafd0244010133b4
[ "MIT" ]
null
null
null
defmodule ExAudit.Queryable do @version_schema Application.get_env(:ex_audit, :version_schema) require Logger def update_all(module, adapter, queryable, updates, opts) do Ecto.Repo.Queryable.update_all(module, adapter, queryable, updates, opts) end def delete_all(module, adapter, queryable, opts) do ...
29.269504
114
0.62709
086be317b7382ebeb459fc3281cb3b6e690e8217
1,084
ex
Elixir
lib/bootstrap_form/email_input.ex
feliperenan/bootstrap_form
a12d0665973687bfefeee499f8581398a25ccf75
[ "MIT" ]
6
2019-02-07T00:37:24.000Z
2021-05-29T23:37:32.000Z
lib/bootstrap_form/email_input.ex
feliperenan/bootstrap_form
a12d0665973687bfefeee499f8581398a25ccf75
[ "MIT" ]
7
2019-02-07T00:19:39.000Z
2019-11-04T17:01:50.000Z
lib/bootstrap_form/email_input.ex
feliperenan/bootstrap_form
a12d0665973687bfefeee499f8581398a25ccf75
[ "MIT" ]
3
2019-10-30T13:49:44.000Z
2021-09-26T23:45:02.000Z
defmodule BootstrapForm.EmailInput do @moduledoc false import Phoenix.HTML.Form, only: [email_input: 3, label: 3] alias BootstrapForm.{Input, InputBuilder, Wrapper} @label_class "control-label" @default_classes [input_class: "form-control", wrapper_class: "form-group"] @behaviour InputBuilder @doc ""...
27.1
104
0.665129
086bebca0a04c7e27e7738d59fb254690e04d177
544
ex
Elixir
lib/quiz_site/page/card.ex
rbgraham/quiz_site
57ded7991e355e2cf9f5edecc823b67833ee0ceb
[ "MIT" ]
2
2017-10-30T00:42:01.000Z
2017-10-30T21:29:15.000Z
lib/quiz_site/page/card.ex
rbgraham/quiz_site
57ded7991e355e2cf9f5edecc823b67833ee0ceb
[ "MIT" ]
null
null
null
lib/quiz_site/page/card.ex
rbgraham/quiz_site
57ded7991e355e2cf9f5edecc823b67833ee0ceb
[ "MIT" ]
null
null
null
defmodule QuizSite.Page.Card do use Ecto.Schema import Ecto.Changeset alias QuizSite.Page.Card schema "cards" do field :navigation, :string field :title, :string field :sequence, :integer field :site, :string has_many :questions, QuizSite.Cards.Question has_many :sections, QuizSite.Ca...
20.923077
59
0.674632
086bec0d185af35477663158b7f776b89e9d3ea0
2,757
ex
Elixir
clients/app_engine/lib/google_api/app_engine/v1/model/firewall_rule.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/app_engine/lib/google_api/app_engine/v1/model/firewall_rule.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/app_engine/lib/google_api/app_engine/v1/model/firewall_rule.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-10-04T10:12:44.000Z
2020-10-04T10:12:44.000Z
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
49.232143
589
0.725426
086c041722b7fffd20c3d7f47892345b42ffe673
1,292
exs
Elixir
mix.exs
zacck/plaid-elixir
5467e5fcd5bd16f0d7a738da22e17c9be4e447b3
[ "MIT" ]
null
null
null
mix.exs
zacck/plaid-elixir
5467e5fcd5bd16f0d7a738da22e17c9be4e447b3
[ "MIT" ]
null
null
null
mix.exs
zacck/plaid-elixir
5467e5fcd5bd16f0d7a738da22e17c9be4e447b3
[ "MIT" ]
null
null
null
defmodule Plaid.Mixfile do use Mix.Project @description """ An Elixir Library for Plaid's V2 API """ def project do [app: :plaid, version: "1.1.3", description: @description, elixir: "~> 1.5", elixirc_paths: elixirc_paths(Mix.env), package: package(), deps: deps(), d...
22.666667
70
0.554954
086c09dd563ad9ff2ddf02cbf01fd299318b4fc9
1,256
ex
Elixir
lib/ergo/telemetry_server.ex
mmower/ergo
f0cfa8debd6697c56509e7856578dc49666f3ff2
[ "MIT" ]
5
2021-07-11T13:01:56.000Z
2021-12-29T17:02:00.000Z
lib/ergo/telemetry_server.ex
mmower/ergo
f0cfa8debd6697c56509e7856578dc49666f3ff2
[ "MIT" ]
null
null
null
lib/ergo/telemetry_server.ex
mmower/ergo
f0cfa8debd6697c56509e7856578dc49666f3ff2
[ "MIT" ]
null
null
null
defmodule Ergo.TelemetryServer do use GenServer @name :ergo_telemetry_server defmodule State do defstruct runs: %{} end def init(args) do {:ok, args} end def get_events(id) do GenServer.call(@name, {:get_events, id}) end def reset() do GenServer.call(@name, :reset) end def st...
19.030303
84
0.590764
086c4ac79a6980f791b6ef4a54f6b8dd5ddab72c
1,612
exs
Elixir
examples/chuck_ex/test/chuck_norris_api_test.exs
igor-i/bookish_spork
bcefdc6d911044d6438a1efa74d69e9d0921db4f
[ "Apache-2.0" ]
null
null
null
examples/chuck_ex/test/chuck_norris_api_test.exs
igor-i/bookish_spork
bcefdc6d911044d6438a1efa74d69e9d0921db4f
[ "Apache-2.0" ]
null
null
null
examples/chuck_ex/test/chuck_norris_api_test.exs
igor-i/bookish_spork
bcefdc6d911044d6438a1efa74d69e9d0921db4f
[ "Apache-2.0" ]
null
null
null
defmodule ChuckNorrisApiTest do use ExUnit.Case doctest ChuckNorrisApi setup_all do {:ok, _} = :bookish_spork.start_server {:ok, %{}} end test "retrieves random joke" do :bookish_spork.stub_request([200, %{}, "{ \"value\": \"Chuck norris tried to crank that soulja boy but it wouldn't crank...
36.636364
169
0.680521
086c8820c96aa713eb243b5e6508c1986e12119c
1,555
ex
Elixir
assistant/lib/assistant_web/views/error_helpers.ex
dainst/bibliography-assistant
6495055bf852964d416a02d92729406a6a1a33e9
[ "Apache-2.0" ]
null
null
null
assistant/lib/assistant_web/views/error_helpers.ex
dainst/bibliography-assistant
6495055bf852964d416a02d92729406a6a1a33e9
[ "Apache-2.0" ]
null
null
null
assistant/lib/assistant_web/views/error_helpers.ex
dainst/bibliography-assistant
6495055bf852964d416a02d92729406a6a1a33e9
[ "Apache-2.0" ]
null
null
null
defmodule AssistantWeb.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_ta...
32.395833
78
0.666881
086cae28ff9a73dc9959e8afb715155fa2f2ba67
9,989
ex
Elixir
lib/aws/code_build.ex
hosh/aws-elixir
3ef18a94ed3b628b09ba1aaf297161f16c48867e
[ "Apache-2.0" ]
2
2019-11-17T02:31:18.000Z
2019-11-20T22:00:29.000Z
lib/aws/code_build.ex
hosh/aws-elixir
3ef18a94ed3b628b09ba1aaf297161f16c48867e
[ "Apache-2.0" ]
null
null
null
lib/aws/code_build.ex
hosh/aws-elixir
3ef18a94ed3b628b09ba1aaf297161f16c48867e
[ "Apache-2.0" ]
1
2019-11-16T18:08:18.000Z
2019-11-16T18:08:18.000Z
# WARNING: DO NOT EDIT, AUTO-GENERATED CODE! # See https://github.com/jkakar/aws-codegen for more details. defmodule AWS.CodeBuild do @moduledoc """ AWS CodeBuild AWS CodeBuild is a fully managed build service in the cloud. AWS CodeBuild compiles your source code, runs unit tests, and produces artifacts that ...
35.172535
111
0.704675
086cdee929a7893fa0a14cf41192a16608566394
412
exs
Elixir
test/ex_algo/sort/distribution_test.exs
code-shoily/ex_algo
7837c222fd2844a151b6b92038f94ea088bec0a2
[ "MIT" ]
21
2021-11-21T08:07:38.000Z
2022-03-13T06:19:35.000Z
test/ex_algo/sort/distribution_test.exs
code-shoily/ex_algo
7837c222fd2844a151b6b92038f94ea088bec0a2
[ "MIT" ]
3
2021-11-26T22:54:09.000Z
2022-03-06T21:16:12.000Z
test/ex_algo/sort/distribution_test.exs
code-shoily/ex_algo
7837c222fd2844a151b6b92038f94ea088bec0a2
[ "MIT" ]
null
null
null
defmodule ExAlgo.Sort.DistributionTest do use ExUnit.Case use ExUnitProperties @moduletag :distribution_sort alias ExAlgo.Sort.Distribution doctest ExAlgo.Sort.Distribution describe "pigeonhole_sort/1" do property "pigeonhole_sort sorts properly" do check all list <- list_of(integer()) do ...
22.888889
68
0.737864
086d2906e35e4ab1380cb5b71ad02d2d1a802229
28,405
ex
Elixir
apps/core/lib/core/declaration_requests/api/v1/creator.ex
ehealth-ua/ehealth.api
4ffe26a464fe40c95fb841a4aa2e147068f65ca2
[ "Apache-2.0" ]
8
2019-06-14T11:34:49.000Z
2021-08-05T19:14:24.000Z
apps/core/lib/core/declaration_requests/api/v1/creator.ex
edenlabllc/ehealth.api.public
4ffe26a464fe40c95fb841a4aa2e147068f65ca2
[ "Apache-2.0" ]
1
2019-07-08T15:20:22.000Z
2019-07-08T15:20:22.000Z
apps/core/lib/core/declaration_requests/api/v1/creator.ex
ehealth-ua/ehealth.api
4ffe26a464fe40c95fb841a4aa2e147068f65ca2
[ "Apache-2.0" ]
6
2018-05-11T13:59:32.000Z
2022-01-19T20:15:22.000Z
defmodule Core.DeclarationRequests.API.V1.Creator do @moduledoc false use Confex, otp_app: :core use Timex import Ecto.Changeset import Ecto.Query import Core.Utils.TypesConverter, only: [string_to_integer: 1] alias Core.DeclarationRequests alias Core.DeclarationRequests.API.Documents alias Core.De...
32.762399
115
0.682274
086d3e69f66b85395040a78ba5880b6a5deffe87
761
ex
Elixir
lib/builder/car.ex
Fulnir/Elixir_Design_Pattern
77e77541ac604968bfbfe9ebbd6b51f1c3442c1a
[ "MIT" ]
3
2018-03-06T13:45:42.000Z
2019-07-22T00:16:54.000Z
lib/builder/car.ex
Fulnir/Elixir_Design_Pattern
77e77541ac604968bfbfe9ebbd6b51f1c3442c1a
[ "MIT" ]
null
null
null
lib/builder/car.ex
Fulnir/Elixir_Design_Pattern
77e77541ac604968bfbfe9ebbd6b51f1c3442c1a
[ "MIT" ]
null
null
null
defmodule Car do @moduledoc """ Copyright © 2018 Edwin Buehler. All rights reserved. """ @doc """ A simple struct. iex> %Car{name: "Blue Ocean", color: :blue, color_doors: :cyan} %Car{name: "Blue Ocean", color: :blue, color_doors: :cyan} """ defstruct name: String, ...
20.567568
71
0.521682
086d4f7bdc3f4f75d4e70ea776d980253e0bf7f3
772
ex
Elixir
test/support/fixtures/accounts_fixtures.ex
jahio/lifelog
a3660e65acb3abdaac388b494736a645d825df1f
[ "MIT" ]
null
null
null
test/support/fixtures/accounts_fixtures.ex
jahio/lifelog
a3660e65acb3abdaac388b494736a645d825df1f
[ "MIT" ]
null
null
null
test/support/fixtures/accounts_fixtures.ex
jahio/lifelog
a3660e65acb3abdaac388b494736a645d825df1f
[ "MIT" ]
null
null
null
defmodule Lifelog.AccountsFixtures do @moduledoc """ This module defines test helpers for creating entities via the `Lifelog.Accounts` context. """ def unique_user_email, do: "user#{System.unique_integer()}@example.com" def valid_user_password, do: "hello world!" def valid_user_attributes(attrs \\ %{}) ...
24.125
73
0.65544
086d66876f6da83f3192b0670592df1a9eb998d7
237
ex
Elixir
lib/absinthe/blueprint/input/raw_value.ex
TheRealReal/absinthe
6eae5bc36283e58f42d032b8afd90de3ad64f97b
[ "MIT" ]
4,101
2016-03-02T03:49:20.000Z
2022-03-31T05:46:01.000Z
lib/absinthe/blueprint/input/raw_value.ex
TheRealReal/absinthe
6eae5bc36283e58f42d032b8afd90de3ad64f97b
[ "MIT" ]
889
2016-03-02T16:06:59.000Z
2022-03-31T20:24:12.000Z
lib/absinthe/blueprint/input/raw_value.ex
TheRealReal/absinthe
6eae5bc36283e58f42d032b8afd90de3ad64f97b
[ "MIT" ]
564
2016-03-02T07:49:59.000Z
2022-03-06T14:40:59.000Z
defmodule Absinthe.Blueprint.Input.RawValue do @moduledoc false alias Absinthe.Blueprint.Input.Object @enforce_keys [:content] defstruct [ :content ] @type t :: %__MODULE__{ content: Object.t() } end
15.8
46
0.654008
086d75be5276d65a5fcf767f57f8340ca03359b0
286
exs
Elixir
priv/repo/migrations/20161114001005_create_region.exs
rob05c/tox
f54847ca058ad24b909341ad65d595a4069d2471
[ "Apache-2.0" ]
2
2016-11-16T17:24:21.000Z
2019-02-15T05:38:27.000Z
priv/repo/migrations/20161114001005_create_region.exs
rob05c/tox
f54847ca058ad24b909341ad65d595a4069d2471
[ "Apache-2.0" ]
null
null
null
priv/repo/migrations/20161114001005_create_region.exs
rob05c/tox
f54847ca058ad24b909341ad65d595a4069d2471
[ "Apache-2.0" ]
null
null
null
defmodule Tox.Repo.Migrations.CreateRegion do use Ecto.Migration def change do create table(:regions, primary_key: false) do add :name, :text, primary_key: true add :division, references(:divisions, column: :name, type: :text) timestamps() end end end
22
71
0.685315
086d7ca67599db86acb502ac8da51db28efdcd29
1,362
exs
Elixir
test/depot_s3_test.exs
mindreframer/depot_s3
a984ff8747a21e7aa1c74f5049f4c909d7c6454d
[ "Apache-2.0" ]
null
null
null
test/depot_s3_test.exs
mindreframer/depot_s3
a984ff8747a21e7aa1c74f5049f4c909d7c6454d
[ "Apache-2.0" ]
null
null
null
test/depot_s3_test.exs
mindreframer/depot_s3
a984ff8747a21e7aa1c74f5049f4c909d7c6454d
[ "Apache-2.0" ]
null
null
null
defmodule DepotS3Test do use ExUnit.Case import DepotS3.AdapterTest setup do config = DepotS3.Minio.config() DepotS3.Minio.clean_bucket("default") DepotS3.Minio.recreate_bucket("default") on_exit(fn -> DepotS3.Minio.clean_bucket("default") end) {:ok, config: config, bucket: "defau...
26.705882
77
0.639501
086d93ceda21e169abf9b7b0fc31065b42327911
532
exs
Elixir
config/runtime.exs
hanam1ni/codewar-web
0d7c46ac32d85b1d76c604226e0f3d6f2b76b0ad
[ "MIT" ]
null
null
null
config/runtime.exs
hanam1ni/codewar-web
0d7c46ac32d85b1d76c604226e0f3d6f2b76b0ad
[ "MIT" ]
null
null
null
config/runtime.exs
hanam1ni/codewar-web
0d7c46ac32d85b1d76c604226e0f3d6f2b76b0ad
[ "MIT" ]
null
null
null
import Config if config_env() == :prod do config :codewar, Codewar.Repo, ssl: true, url: System.fetch_env!("DATABASE_URL"), pool_size: String.to_integer(System.get_env("DATABASE_POOL_SIZE") || "10") config :codewar, CodewarWeb.Endpoint, http: [ port: String.to_integer(System.get_env("PORT") ...
26.6
78
0.654135
086d94bd181456e54598c396fb986a281a13b0c4
55
exs
Elixir
.formatter.exs
thbar/ex-portmidi
ad4abde02af60686f9dee8b066b92b5ffb79019b
[ "MIT" ]
8
2021-05-01T19:01:07.000Z
2021-05-18T12:19:25.000Z
.formatter.exs
thbar/ex-portmidi
ad4abde02af60686f9dee8b066b92b5ffb79019b
[ "MIT" ]
1
2021-10-13T13:55:47.000Z
2021-10-13T13:55:47.000Z
.formatter.exs
thbar/ex-portmidi
ad4abde02af60686f9dee8b066b92b5ffb79019b
[ "MIT" ]
null
null
null
[ inputs: ["mix.exs", "{lib,test}/**/*.{ex, exs}"] ]
13.75
50
0.436364
086dcb19ba3daa489b7894be8b84e40581df3e3f
1,214
exs
Elixir
config/config.exs
cschneid/approximate_histogram
ee48b3003a0a1543043ed353da4fa6b7a4ee11ee
[ "MIT" ]
2
2017-03-30T17:00:04.000Z
2020-03-29T15:54:03.000Z
config/config.exs
cschneid/approximate_histogram
ee48b3003a0a1543043ed353da4fa6b7a4ee11ee
[ "MIT" ]
null
null
null
config/config.exs
cschneid/approximate_histogram
ee48b3003a0a1543043ed353da4fa6b7a4ee11ee
[ "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...
33.722222
73
0.751236
086dd76e43e3317e0fc4997f785df5328f181ade
2,161
ex
Elixir
test/support/test_cluster.ex
pggalaviz/exnowflake
efd273a7f9c143e03130dcde960b90428cf460d0
[ "MIT" ]
11
2020-01-29T03:18:26.000Z
2021-03-31T22:00:11.000Z
test/support/test_cluster.ex
pggalaviz/exnowflake
efd273a7f9c143e03130dcde960b90428cf460d0
[ "MIT" ]
null
null
null
test/support/test_cluster.ex
pggalaviz/exnowflake
efd273a7f9c143e03130dcde960b90428cf460d0
[ "MIT" ]
1
2021-02-12T02:46:24.000Z
2021-02-12T02:46:24.000Z
defmodule Exnowflake.TestCluster do @moduledoc """ This module starts 3 slave nodes to run tests in a cluster environment. Example: mix test --include cluster """ require Logger @node_names [:"exnow-1", :"exnow-2", :"exnow-3"] def start do IO.puts("==> Starting tests in cluster mode...") # ...
25.127907
102
0.633966
086de1503d4dfd6beffb5835c927f37e04a1a3c2
1,513
exs
Elixir
test/yuri_template_test.exs
sirikid/yuri_template
66846ed0f5a8407749408a4ebf526f9c27cb9366
[ "Apache-2.0" ]
3
2020-05-03T15:30:21.000Z
2021-05-09T01:35:41.000Z
test/yuri_template_test.exs
sirikid/yuri_template
66846ed0f5a8407749408a4ebf526f9c27cb9366
[ "Apache-2.0" ]
1
2021-04-15T20:08:14.000Z
2021-04-18T20:48:17.000Z
test/yuri_template_test.exs
sirikid/yuri_template
66846ed0f5a8407749408a4ebf526f9c27cb9366
[ "Apache-2.0" ]
null
null
null
defmodule YuriTemplateTest do use ExUnit.Case test "parse/1 #1" do assert match?({:ok, _}, YuriTemplate.parse("a string")) end test "parse/1 #2" do assert match?({:ok, _}, YuriTemplate.parse("correct {template}")) end test "parse/1 #3" do assert match?({:error, _}, YuriTemplate.parse("incorre...
26.54386
94
0.634501
086e29fda4e2727ad2774ae30692c7f8a026090f
2,796
ex
Elixir
lib/chisel/font/bdf/lexer.ex
fstiewitz/chisel
98d0351e337a83ba21c4bedfd56eb340e0606711
[ "Apache-2.0" ]
34
2019-12-05T02:15:21.000Z
2022-03-11T10:07:28.000Z
lib/chisel/font/bdf/lexer.ex
fstiewitz/chisel
98d0351e337a83ba21c4bedfd56eb340e0606711
[ "Apache-2.0" ]
5
2019-12-03T04:20:39.000Z
2021-05-24T23:38:09.000Z
lib/chisel/font/bdf/lexer.ex
fstiewitz/chisel
98d0351e337a83ba21c4bedfd56eb340e0606711
[ "Apache-2.0" ]
2
2019-12-22T10:41:00.000Z
2021-05-24T19:53:54.000Z
defmodule Chisel.Font.BDF.Lexer do @moduledoc false defstruct line: nil, col: nil, buffer: [], tokens: [], in_string?: false, in_comment?: false @token_whitespace [" ", "\t", "\r", "\n"] @keywords [ "STARTFONT", "COMMENT", "FONT", "SIZE", "FONTBOUNDINGBOX", "STARTPROPERTIES", "END...
21.022556
97
0.578326
086e52882254f2257dc112a44e3bd13ed01448c9
3,598
ex
Elixir
lib/trademark_free_strategic_land_warfare/players/semi_random_another.ex
WizardOfOgz/trademark_free_strategic_land_warfare
a14287eab1f60c13d43f70ac2309391c291a6704
[ "MIT" ]
1
2020-06-30T16:37:50.000Z
2020-06-30T16:37:50.000Z
lib/trademark_free_strategic_land_warfare/players/semi_random_another.ex
WizardOfOgz/trademark_free_strategic_land_warfare
a14287eab1f60c13d43f70ac2309391c291a6704
[ "MIT" ]
null
null
null
lib/trademark_free_strategic_land_warfare/players/semi_random_another.ex
WizardOfOgz/trademark_free_strategic_land_warfare
a14287eab1f60c13d43f70ac2309391c291a6704
[ "MIT" ]
13
2020-06-04T23:10:19.000Z
2020-06-05T01:25:26.000Z
defmodule TrademarkFreeStrategicLandWarfare.Players.SemiRandomAnother do alias TrademarkFreeStrategicLandWarfare.{Board, Player, Piece} @behaviour Player @type direction() :: :north | :west | :east | :south @type count() :: Integer.t() @type state() :: any() @spec name() :: binary() def name() do "S...
31.017241
94
0.555586
086f2aee3918c6f864c3ccb0ddbf7bf4a0fd3497
286
exs
Elixir
priv/repo/migrations/20180111202738_create_users.exs
djordje/budget_app.backend
3febe64892e700f3174b8eddbc4b96260c444308
[ "MIT" ]
null
null
null
priv/repo/migrations/20180111202738_create_users.exs
djordje/budget_app.backend
3febe64892e700f3174b8eddbc4b96260c444308
[ "MIT" ]
null
null
null
priv/repo/migrations/20180111202738_create_users.exs
djordje/budget_app.backend
3febe64892e700f3174b8eddbc4b96260c444308
[ "MIT" ]
null
null
null
defmodule BudgetApp.Repo.Migrations.CreateUsers do use Ecto.Migration def change do create table(:users) do add :email, :string, size: 50, unique: true add :secret, :string, size: 128 timestamps() end create unique_index(:users, [:email]) end end
19.066667
50
0.660839
086f2f7d058963fe4ab5ffc4a59529a1715ef941
233
ex
Elixir
lib/zygalski.ex
lucidstack/zygalski
6c39f8f6cd47852f15e8d2ea800b407059235874
[ "MIT" ]
null
null
null
lib/zygalski.ex
lucidstack/zygalski
6c39f8f6cd47852f15e8d2ea800b407059235874
[ "MIT" ]
null
null
null
lib/zygalski.ex
lucidstack/zygalski
6c39f8f6cd47852f15e8d2ea800b407059235874
[ "MIT" ]
null
null
null
defmodule Zygalski do use Application alias Zygalski.Router def start(_type, _args) do Plug.Adapters.Cowboy.http Router, [], port: port {:ok, self()} end defp port, do: Application.get_env(:zygalski, :port) end
17.923077
52
0.686695
086f30c6d8d0d79e34d88a3c2c47ab5d734d43ee
3,490
ex
Elixir
lib/splitwise/expenses.ex
nathanbegbie/ex_splitwise
6de8b9f59db9834b342b86dfcd5c41354f349e5d
[ "MIT" ]
3
2019-09-29T04:15:29.000Z
2021-04-02T14:52:04.000Z
lib/splitwise/expenses.ex
nathanbegbie/ex_splitwise
6de8b9f59db9834b342b86dfcd5c41354f349e5d
[ "MIT" ]
null
null
null
lib/splitwise/expenses.ex
nathanbegbie/ex_splitwise
6de8b9f59db9834b342b86dfcd5c41354f349e5d
[ "MIT" ]
1
2022-02-22T15:32:16.000Z
2022-02-22T15:32:16.000Z
defmodule ExSplitwise.Expenses do @moduledoc """ This module defines the functions to manage Splitwise expenses. """ alias ExSplitwise.Client @doc """ Get user's expenses. ## Example iex> ExSplitwise.Expenses.all() %ExSplitwise.Client.Response{ body: %{ "expenses" => [ ...
22.371795
94
0.495415
086f3322dad6f2d7eba00e94715acfa882bb17de
2,004
exs
Elixir
test/hipchat_test.exs
ymtszw/hipchat_elixir
36d8e329f4f24d3cf1f3aacbeff1eaf603287904
[ "MIT" ]
6
2016-12-19T21:11:05.000Z
2018-06-15T03:36:47.000Z
test/hipchat_test.exs
ymtszw/hipchat_elixir
36d8e329f4f24d3cf1f3aacbeff1eaf603287904
[ "MIT" ]
2
2018-06-06T14:51:59.000Z
2018-06-12T04:32:34.000Z
test/hipchat_test.exs
ymtszw/hipchat_elixir
36d8e329f4f24d3cf1f3aacbeff1eaf603287904
[ "MIT" ]
4
2017-01-19T12:23:54.000Z
2018-06-06T15:00:07.000Z
defmodule HipchatTest do use ExUnit.Case use ExUnitProperties alias Hipchat.{Typespec, Httpc.Response} all_v2_modules = :code.lib_dir(:hipchat_elixir, :ebin) |> File.ls!() |> Enum.filter(&String.starts_with?(&1, "Elixir.Hipchat.V2")) |> Enum.map(fn beam_file_name -> beam_file_name |...
40.897959
131
0.687625
086f391cb87893e149c2d7b84a971f79be5e4930
547
exs
Elixir
apps/management/mix.exs
msomji/smartcitiesdata
fc96abc1ef1306f7af6bd42bbcb4ed041a6d922c
[ "Apache-2.0" ]
null
null
null
apps/management/mix.exs
msomji/smartcitiesdata
fc96abc1ef1306f7af6bd42bbcb4ed041a6d922c
[ "Apache-2.0" ]
null
null
null
apps/management/mix.exs
msomji/smartcitiesdata
fc96abc1ef1306f7af6bd42bbcb4ed041a6d922c
[ "Apache-2.0" ]
null
null
null
defmodule Management.MixProject do use Mix.Project def project do [ app: :management, version: "0.1.0", build_path: "../../_build", config_path: "../../config/config.exs", deps_path: "../../deps", lockfile: "../../mix.lock", elixir: "~> 1.8", start_permanent: Mix...
17.645161
45
0.499086
086f4343edea9d8fa8e40af06db2a76b4070945b
113
exs
Elixir
exercises/02-higher-order-functions/02-goodbye-loops/10-all/student.exs
engelenv/distributed-applications
e78693a4ffa22b653e2e840427bcc1704040af4e
[ "BSD-3-Clause" ]
null
null
null
exercises/02-higher-order-functions/02-goodbye-loops/10-all/student.exs
engelenv/distributed-applications
e78693a4ffa22b653e2e840427bcc1704040af4e
[ "BSD-3-Clause" ]
null
null
null
exercises/02-higher-order-functions/02-goodbye-loops/10-all/student.exs
engelenv/distributed-applications
e78693a4ffa22b653e2e840427bcc1704040af4e
[ "BSD-3-Clause" ]
null
null
null
defmodule Grades do def all_passed?(grades) do Enum.all?(grades, fn x -> x == :na or x >= 10 end) end end
22.6
54
0.628319
086f6e00b4956b4be40e86d078f4c00c37e364ee
2,687
ex
Elixir
lib/flamelex/fluxus/reducers/radix_reducer.ex
JediLuke/franklin
8eb77a342547de3eb43d28dcf9f835ff443ad489
[ "Apache-2.0" ]
1
2020-02-09T23:04:33.000Z
2020-02-09T23:04:33.000Z
lib/flamelex/fluxus/reducers/radix_reducer.ex
JediLuke/franklin
8eb77a342547de3eb43d28dcf9f835ff443ad489
[ "Apache-2.0" ]
null
null
null
lib/flamelex/fluxus/reducers/radix_reducer.ex
JediLuke/franklin
8eb77a342547de3eb43d28dcf9f835ff443ad489
[ "Apache-2.0" ]
null
null
null
defmodule Flamelex.Fluxus.RadixReducer do @moduledoc """ The RootReducer for all flamelex actions. These pure-functions are called by ActionListener, to handle specific actions within the application. Every action that gets processed, is routed down to the sub-reducers, through this module. Every possible ...
33.5875
96
0.743952
086f76497387d38e9a1a4330a42aa42354280a2f
13,610
exs
Elixir
test/mix/tasks/hex.build_test.exs
hexpm/hex
e732ccb3daf13a7c271b3c8442b5db6832a7f298
[ "Apache-2.0" ]
824
2015-01-05T09:12:36.000Z
2022-03-28T12:02:29.000Z
test/mix/tasks/hex.build_test.exs
hexpm/hex
e732ccb3daf13a7c271b3c8442b5db6832a7f298
[ "Apache-2.0" ]
737
2015-01-01T05:48:46.000Z
2022-03-29T12:56:12.000Z
test/mix/tasks/hex.build_test.exs
hexpm/hex
e732ccb3daf13a7c271b3c8442b5db6832a7f298
[ "Apache-2.0" ]
220
2015-03-14T17:55:11.000Z
2022-03-23T22:17:07.000Z
defmodule Mix.Tasks.Hex.BuildTest do use HexTest.IntegrationCase defp package_created?(name) do File.exists?("#{name}.tar") end defp extract(name, path) do {:ok, files} = :mix_hex_erl_tar.extract(name, [:memory]) files = Enum.into(files, %{}) :ok = :mix_hex_erl_tar.extract({:binary, files['co...
30.515695
166
0.657384
086f79cdf79751f197c78e359756c2ef94779d81
2,063
exs
Elixir
phoenix/phoenix_tailwind/config/prod.exs
toff63/elixir-sandbox
ac63f839b97ccb7a11e07fb1e505b7cd24e19cb3
[ "Apache-2.0" ]
null
null
null
phoenix/phoenix_tailwind/config/prod.exs
toff63/elixir-sandbox
ac63f839b97ccb7a11e07fb1e505b7cd24e19cb3
[ "Apache-2.0" ]
null
null
null
phoenix/phoenix_tailwind/config/prod.exs
toff63/elixir-sandbox
ac63f839b97ccb7a11e07fb1e505b7cd24e19cb3
[ "Apache-2.0" ]
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, # ...
36.839286
66
0.721764
086f85e8c82d89a48c6bd681ac640ed8c90194f7
3,751
ex
Elixir
lib/kommissar/resources.ex
patatoid/kommissar
c6c06ba29257ba7641daf03e8e4a94fa967ecfd6
[ "MIT" ]
null
null
null
lib/kommissar/resources.ex
patatoid/kommissar
c6c06ba29257ba7641daf03e8e4a94fa967ecfd6
[ "MIT" ]
null
null
null
lib/kommissar/resources.ex
patatoid/kommissar
c6c06ba29257ba7641daf03e8e4a94fa967ecfd6
[ "MIT" ]
null
null
null
defmodule Kommissar.Resources do @moduledoc """ The Resources context. """ import Ecto.Query, warn: false alias Kommissar.Repo alias Kommissar.Resources.Client @doc """ Returns the list of clients. ## Examples iex> list_clients() [%Client{}, ...] """ def list_clients do Clien...
17.610329
65
0.603572
086f965ac951e0230df052468d487c66d8acc992
5,800
exs
Elixir
test/ex_oauth2_provider/device_grants/device_grants_test.exs
heroinbob/ex_oauth2_provider
80c21a53bba0955ab3b66f1bd32cc81db0f04f49
[ "MIT" ]
null
null
null
test/ex_oauth2_provider/device_grants/device_grants_test.exs
heroinbob/ex_oauth2_provider
80c21a53bba0955ab3b66f1bd32cc81db0f04f49
[ "MIT" ]
null
null
null
test/ex_oauth2_provider/device_grants/device_grants_test.exs
heroinbob/ex_oauth2_provider
80c21a53bba0955ab3b66f1bd32cc81db0f04f49
[ "MIT" ]
null
null
null
defmodule ExOauth2Provider.DeviceGrantsTest do use ExOauth2Provider.TestCase alias ExOauth2Provider.DeviceGrants alias ExOauth2Provider.Test.Fixtures alias ExOauth2Provider.Test.QueryHelpers alias Dummy.{OauthDeviceGrants.OauthDeviceGrant, Users.User} @config [otp_app: :ex_oauth2_provider] setup do ...
29.145729
88
0.669483
086f9fbac46fcb76fc322625edc66503b8dc2271
16,789
ex
Elixir
lib/mix/lib/mix/utils.ex
maartenvanvliet/elixir
62d75fd7c657b2e08bfaff4002a851efaccf5a65
[ "Apache-2.0" ]
null
null
null
lib/mix/lib/mix/utils.ex
maartenvanvliet/elixir
62d75fd7c657b2e08bfaff4002a851efaccf5a65
[ "Apache-2.0" ]
null
null
null
lib/mix/lib/mix/utils.ex
maartenvanvliet/elixir
62d75fd7c657b2e08bfaff4002a851efaccf5a65
[ "Apache-2.0" ]
null
null
null
defmodule Mix.Utils do @moduledoc false @doc """ Gets the Mix home. It defaults to `~/.mix` unless the `MIX_HOME` environment variable is set. Developers should only store entries in the `MIX_HOME` directory which are guaranteed to work across multiple Elixir versions, as it is not recommended to s...
26.15109
106
0.614033
086fad5478100ce2a049407a00e892c0c299aa4a
1,306
ex
Elixir
apps/dockup_ui/lib/dockup_ui/application.ex
rudydydy/dockup
0d05d1ef65cc5523800bd852178361521cd3e7d8
[ "MIT" ]
null
null
null
apps/dockup_ui/lib/dockup_ui/application.ex
rudydydy/dockup
0d05d1ef65cc5523800bd852178361521cd3e7d8
[ "MIT" ]
null
null
null
apps/dockup_ui/lib/dockup_ui/application.ex
rudydydy/dockup
0d05d1ef65cc5523800bd852178361521cd3e7d8
[ "MIT" ]
null
null
null
defmodule DockupUi.Application do use Application # See https://hexdocs.pm/elixir/Application.html # for more information on OTP Applications def start(_type, _args) do import Supervisor.Spec # Overrides configurations from ENV variables DockupUi.Config.set_configs_from_env() backend = Applica...
31.853659
77
0.718224
086fdda444ba7dcad907719155c2afcd40bc1a1b
8,051
ex
Elixir
lib/mix/lib/mix/deps.ex
Nicd/elixir
e62ef92a4be1b562033d35b2d822cc9d6c661077
[ "Apache-2.0" ]
null
null
null
lib/mix/lib/mix/deps.ex
Nicd/elixir
e62ef92a4be1b562033d35b2d822cc9d6c661077
[ "Apache-2.0" ]
null
null
null
lib/mix/lib/mix/deps.ex
Nicd/elixir
e62ef92a4be1b562033d35b2d822cc9d6c661077
[ "Apache-2.0" ]
null
null
null
defrecord Mix.Dep, [ scm: nil, app: nil, requirement: nil, status: nil, opts: nil, deps: [], source: nil, manager: nil ] do @moduledoc """ This is a record that keeps information about your project dependencies. It keeps: * scm - a module representing the source code management tool (SCM) ...
28.448763
96
0.632965
087005129ed8ebdf8c9e4693b5a059ffb0e3b14c
4,465
ex
Elixir
lib/teiserver/account/caches/user_cache.ex
badosu/teiserver
19b623aeb7c2ab28756405f7486e92b714777c54
[ "MIT" ]
4
2021-07-29T16:23:20.000Z
2022-02-23T05:34:36.000Z
lib/teiserver/account/caches/user_cache.ex
badosu/teiserver
19b623aeb7c2ab28756405f7486e92b714777c54
[ "MIT" ]
14
2021-08-01T02:36:14.000Z
2022-01-30T21:15:03.000Z
lib/teiserver/account/caches/user_cache.ex
badosu/teiserver
19b623aeb7c2ab28756405f7486e92b714777c54
[ "MIT" ]
7
2021-05-13T12:55:28.000Z
2022-01-14T06:39:06.000Z
defmodule Teiserver.Account.UserCache do import Central.Helpers.NumberHelper, only: [int_parse: 1] alias Teiserver.{Account, User} alias Teiserver.Data.Types, as: T alias Central.Account.Guardian alias Teiserver.Client require Logger @spec get_username(T.userid()) :: String.t() def get_username(userid)...
26.577381
98
0.649496
08700b4cb92969c043c50d25a17e42fb36d4d449
1,042
ex
Elixir
lib/mlpp.ex
ayarodionov/xtlsmlpp
bf9d3cf7b3097ed8cc01035cd9aec43379823f99
[ "MIT" ]
null
null
null
lib/mlpp.ex
ayarodionov/xtlsmlpp
bf9d3cf7b3097ed8cc01035cd9aec43379823f99
[ "MIT" ]
null
null
null
lib/mlpp.ex
ayarodionov/xtlsmlpp
bf9d3cf7b3097ed8cc01035cd9aec43379823f99
[ "MIT" ]
null
null
null
# ----------------------------------------------------------------------------------------------- defmodule MLPP do @moduledoc """ MLLP coder and decoder.H See <a href="https://www.hl7.org/documentcenter/public/wg/inm/mllp_transport_specification.PDF">mlpp specification</a> """ @sb 0x0B @eb 0x1C @cr 0...
28.944444
121
0.365643
087025bb5a40f2b3da3fb9b75b3ad9fe9192af70
353
exs
Elixir
apps/astarte_realm_management/config/prod.exs
Spidey20202022/astarte
3950855c592b34363af0cf7f8a921762ce64e512
[ "Apache-2.0" ]
1
2020-02-04T13:15:22.000Z
2020-02-04T13:15:22.000Z
apps/astarte_realm_management/config/prod.exs
Spidey20202022/astarte
3950855c592b34363af0cf7f8a921762ce64e512
[ "Apache-2.0" ]
1
2020-01-20T09:52:48.000Z
2020-01-20T09:52:48.000Z
apps/astarte_realm_management/config/prod.exs
Spidey20202022/astarte
3950855c592b34363af0cf7f8a921762ce64e512
[ "Apache-2.0" ]
1
2020-02-04T13:15:50.000Z
2020-02-04T13:15:50.000Z
use Mix.Config config :cqerl, cassandra_nodes: [{System.get_env("CASSANDRA_DB_HOST"), System.get_env("CASSANDRA_DB_PORT")}] config :logger, compile_time_purge_matching: [ [level_lower_than: :info] ] config :logger, :console, format: {PrettyLog.LogfmtFormatter, :format}, metadata: [ :realm, :mod...
18.578947
95
0.685552
087057485a357515c41ce7a08266d9281d39e259
178
ex
Elixir
lib/hexpm_web/views/api/audit_log_view.ex
Benjamin-Philip/hexpm
6f38244f81bbabd234c660f46ea973849ba77a7f
[ "Apache-2.0" ]
691
2017-03-08T09:15:45.000Z
2022-03-23T22:04:47.000Z
lib/hexpm_web/views/api/audit_log_view.ex
Benjamin-Philip/hexpm
6f38244f81bbabd234c660f46ea973849ba77a7f
[ "Apache-2.0" ]
491
2017-03-07T12:58:42.000Z
2022-03-29T23:32:54.000Z
lib/hexpm_web/views/api/audit_log_view.ex
Benjamin-Philip/hexpm
6f38244f81bbabd234c660f46ea973849ba77a7f
[ "Apache-2.0" ]
200
2017-03-12T23:03:39.000Z
2022-03-05T17:55:52.000Z
defmodule HexpmWeb.API.AuditLogView do use HexpmWeb, :view def render("show", %{audit_log: audit_log}) do Map.take(audit_log, [:action, :user_agent, :params]) end end
22.25
56
0.707865
0870601398c29e2ce922ba3280862ea77c1c6da1
2,289
exs
Elixir
test/mix/tasks/ecto.migrations_test.exs
dgvncsz0f/ecto
bae06fe650328cc1060c09fe889a2de9a10edb1b
[ "Apache-2.0" ]
null
null
null
test/mix/tasks/ecto.migrations_test.exs
dgvncsz0f/ecto
bae06fe650328cc1060c09fe889a2de9a10edb1b
[ "Apache-2.0" ]
null
null
null
test/mix/tasks/ecto.migrations_test.exs
dgvncsz0f/ecto
bae06fe650328cc1060c09fe889a2de9a10edb1b
[ "Apache-2.0" ]
1
2018-09-21T16:05:29.000Z
2018-09-21T16:05:29.000Z
defmodule Mix.Tasks.Ecto.MigrationsTest do use ExUnit.Case import Mix.Tasks.Ecto.Migrations, only: [run: 3] import Support.FileHelpers migrations_path = Path.join([tmp_path(), inspect(Ecto.Migrations), "migrations"]) setup do File.mkdir_p!(unquote(migrations_path)) :ok end defmodule Repo do ...
26.011364
85
0.584972
08706d3db21290d2ff994432ae403dd01cead8c8
1,006
ex
Elixir
lib/mix/tasks/create_secrets.ex
fletchermoore/cip
5dd1c6f105d6a4c8c34a9e824cbad2fcf78a0655
[ "Unlicense" ]
null
null
null
lib/mix/tasks/create_secrets.ex
fletchermoore/cip
5dd1c6f105d6a4c8c34a9e824cbad2fcf78a0655
[ "Unlicense" ]
null
null
null
lib/mix/tasks/create_secrets.ex
fletchermoore/cip
5dd1c6f105d6a4c8c34a9e824cbad2fcf78a0655
[ "Unlicense" ]
null
null
null
defmodule Mix.Tasks.CreateSecrets do use Mix.Task def run(_) do # Mix.Task.run "app.start", [] IO.puts "Generating secrets file." guardian_secret = gen_secret() phx_secret = gen_secret() IO.puts "Guardian: #{guardian_secret}" IO.puts "Phx: #{phx_secret}" lines = [ "use Mix.Config...
25.15
86
0.594433
087071918bf9a77ebf673cf1a4ca5aaaf559a5ed
133
ex
Elixir
lib/w/role.ex
ponyatov/w
3211fd253018f07da382871cf2d08b80574b72e6
[ "MIT" ]
null
null
null
lib/w/role.ex
ponyatov/w
3211fd253018f07da382871cf2d08b80574b72e6
[ "MIT" ]
null
null
null
lib/w/role.ex
ponyatov/w
3211fd253018f07da382871cf2d08b80574b72e6
[ "MIT" ]
null
null
null
defmodule W.Role do use Ecto.Schema schema "role" do field :name, :string field :skr, :integer end # %W.Role{} end
12.090909
24
0.616541
08707c3466cfda5fe0b8f54e209d85b3fa5db40e
2,938
ex
Elixir
lib/changeset.ex
Brate/Brcpfcnpj
be2c14e85d0a13dcd837311e18192b02a56841d4
[ "MIT" ]
null
null
null
lib/changeset.ex
Brate/Brcpfcnpj
be2c14e85d0a13dcd837311e18192b02a56841d4
[ "MIT" ]
null
null
null
lib/changeset.ex
Brate/Brcpfcnpj
be2c14e85d0a13dcd837311e18192b02a56841d4
[ "MIT" ]
null
null
null
if Code.ensure_compiled(Ecto) do defmodule Brcpfcnpj.Changeset do @moduledoc """ Define funções para serem utilizadas em conjunto com a API de changeset do Ecto. """ @type changeset :: Ecto.Changeset.t() @type error :: {atom, error_message} @type error_message :: String.t() | {String.t(), Key...
29.38
84
0.618108
087089a034d7d2a6014f88506e9821f7f6f318e8
505
ex
Elixir
apps/web/lib/web_web/router.ex
bitwalker/distillery-umbrella-test
8ef95eba16f769eacf7a636cabc6dcc7b3d9f7e7
[ "Apache-2.0" ]
31
2016-11-14T20:44:37.000Z
2021-12-06T09:27:17.000Z
apps/web/lib/web_web/router.ex
bitwalker/distillery-umbrella-test
8ef95eba16f769eacf7a636cabc6dcc7b3d9f7e7
[ "Apache-2.0" ]
8
2016-11-01T17:59:34.000Z
2021-05-07T15:52:26.000Z
apps/web/lib/web_web/router.ex
bitwalker/distillery-umbrella-test
8ef95eba16f769eacf7a636cabc6dcc7b3d9f7e7
[ "Apache-2.0" ]
11
2016-11-01T21:24:13.000Z
2020-01-24T22:34:52.000Z
defmodule WebWeb.Router do use WebWeb, :router pipeline :browser do plug :accepts, ["html"] plug :fetch_session plug :fetch_flash plug :protect_from_forgery plug :put_secure_browser_headers end pipeline :api do plug :accepts, ["json"] end scope "/", WebWeb do pipe_through :bro...
18.703704
57
0.669307
08709e892501eca23201e62ace1b04981bedfb7c
2,630
ex
Elixir
lib/phoenix/live_dashboard/live/ets_info_component.ex
Blond11516/phoenix_live_dashboard
9b70670d4ad1dc49ebe2eef45f2f082ff6b03a1b
[ "MIT" ]
1
2020-04-23T11:36:03.000Z
2020-04-23T11:36:03.000Z
lib/phoenix/live_dashboard/live/ets_info_component.ex
Blond11516/phoenix_live_dashboard
9b70670d4ad1dc49ebe2eef45f2f082ff6b03a1b
[ "MIT" ]
null
null
null
lib/phoenix/live_dashboard/live/ets_info_component.ex
Blond11516/phoenix_live_dashboard
9b70670d4ad1dc49ebe2eef45f2f082ff6b03a1b
[ "MIT" ]
1
2021-02-04T03:06:20.000Z
2021-02-04T03:06:20.000Z
defmodule Phoenix.LiveDashboard.EtsInfoComponent do use Phoenix.LiveDashboard.Web, :live_component alias Phoenix.LiveDashboard.SystemInfo @info_keys [ :id, :name, :size, :node, :named_table, :read_concurrency, :write_concurrency, :compressed, :memory, :owner, :heir, ...
31.686747
104
0.538783