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
e869892c1ccb7cfdbf0e15cd0f503025006dd133
1,106
exs
Elixir
mix.exs
pejrich/ancestry
cf5815b1df1d7bd30ad6e1de37e94a6e4ba11795
[ "MIT" ]
null
null
null
mix.exs
pejrich/ancestry
cf5815b1df1d7bd30ad6e1de37e94a6e4ba11795
[ "MIT" ]
null
null
null
mix.exs
pejrich/ancestry
cf5815b1df1d7bd30ad6e1de37e94a6e4ba11795
[ "MIT" ]
null
null
null
defmodule Ancestry.Mixfile do use Mix.Project def project do [app: :ancestry, description: "A materialized-path based ancestry tree library for Elixir / Phoenix / Ecto projects", version: "0.1.0", elixir: "~> 1.3", build_embedded: Mix.env == :prod, start_permanent: Mix.env == :prod, ...
22.12
105
0.58047
e8698bfac6419706a6bc94c245903212492dc237
136
exs
Elixir
test/hummingbirdserver_test.exs
xiangmingliu/hummingbirdserver
6ba84eb42cdcae2003032042427e75d0144a3402
[ "Apache-2.0" ]
null
null
null
test/hummingbirdserver_test.exs
xiangmingliu/hummingbirdserver
6ba84eb42cdcae2003032042427e75d0144a3402
[ "Apache-2.0" ]
null
null
null
test/hummingbirdserver_test.exs
xiangmingliu/hummingbirdserver
6ba84eb42cdcae2003032042427e75d0144a3402
[ "Apache-2.0" ]
null
null
null
defmodule HummingbirdserverTest do use ExUnit.Case doctest Hummingbirdserver test "the truth" do assert 1 + 1 == 2 end end
15.111111
34
0.720588
e8699afe979ac7a2e60a2f3ac7e0c834c3ce86fe
5,168
exs
Elixir
apps/tai/test/tai/trading/orders/cancel_error_test.exs
chrism2671/tai-1
847827bd23908adfad4a82c83d5295bdbc022796
[ "MIT" ]
null
null
null
apps/tai/test/tai/trading/orders/cancel_error_test.exs
chrism2671/tai-1
847827bd23908adfad4a82c83d5295bdbc022796
[ "MIT" ]
null
null
null
apps/tai/test/tai/trading/orders/cancel_error_test.exs
chrism2671/tai-1
847827bd23908adfad4a82c83d5295bdbc022796
[ "MIT" ]
1
2020-05-03T23:32:11.000Z
2020-05-03T23:32:11.000Z
defmodule Tai.Trading.Orders.CancelErrorTest do use ExUnit.Case, async: false alias Tai.Trading.OrderSubmissions.SellLimitGtc alias Tai.Trading.{Order, Orders, OrderStore} alias Tai.Events alias Tai.TestSupport.Mocks defmodule TestFilledProvider do @venue_order_id "df8e6bd0-a40a-42fb-8fea-b33ef4e34f14"...
32.099379
92
0.68692
e869a22a3dd8493db0f175391b92509e2cb3938d
2,636
ex
Elixir
lib/teiserver/protocols/spring/spring_matchmaking_in.ex
badosu/teiserver
19b623aeb7c2ab28756405f7486e92b714777c54
[ "MIT" ]
4
2021-07-29T16:23:20.000Z
2022-02-23T05:34:36.000Z
lib/teiserver/protocols/spring/spring_matchmaking_in.ex
badosu/teiserver
19b623aeb7c2ab28756405f7486e92b714777c54
[ "MIT" ]
14
2021-08-01T02:36:14.000Z
2022-01-30T21:15:03.000Z
lib/teiserver/protocols/spring/spring_matchmaking_in.ex
badosu/teiserver
19b623aeb7c2ab28756405f7486e92b714777c54
[ "MIT" ]
7
2021-05-13T12:55:28.000Z
2022-01-14T06:39:06.000Z
defmodule Teiserver.Protocols.Spring.MatchmakingIn do alias Teiserver.Data.Matchmaking alias Teiserver.Protocols.SpringIn import Teiserver.Protocols.SpringOut, only: [reply: 5] import Central.Helpers.NumberHelper, only: [int_parse: 1] require Logger @spec do_handle(String.t(), String.t(), String.t() | nil,...
29.617978
89
0.674127
e869b8f2f25b949b0b26b683fb2e67c8fda1c7fa
1,617
ex
Elixir
lib/hex/crypto/encryption.ex
hrzndhrn/hex
f74e2ed979e74130bdc4a6974660aa986333f33f
[ "Apache-2.0" ]
824
2015-01-05T09:12:36.000Z
2022-03-28T12:02:29.000Z
lib/hex/crypto/encryption.ex
hrzndhrn/hex
f74e2ed979e74130bdc4a6974660aa986333f33f
[ "Apache-2.0" ]
737
2015-01-01T05:48:46.000Z
2022-03-29T12:56:12.000Z
lib/hex/crypto/encryption.ex
hrzndhrn/hex
f74e2ed979e74130bdc4a6974660aa986333f33f
[ "Apache-2.0" ]
220
2015-03-14T17:55:11.000Z
2022-03-23T22:17:07.000Z
defmodule Hex.Crypto.Encryption do @moduledoc false alias Hex.Crypto alias Hex.Crypto.ContentEncryptor alias Hex.Crypto.KeyManager def encrypt({tag, plain_text}, protected, opts) do case KeyManager.encrypt(protected, opts) do {:ok, protected, key, encrypted_key, content_encryptor} -> iv = C...
27.87931
92
0.65739
e86a660c03a13e3518d76097eca809e1944dc566
839
exs
Elixir
mix.exs
XiaoweiQian/bitmex
da66e41efb2ccb77362416031d672b3fa3692d12
[ "MIT" ]
null
null
null
mix.exs
XiaoweiQian/bitmex
da66e41efb2ccb77362416031d672b3fa3692d12
[ "MIT" ]
null
null
null
mix.exs
XiaoweiQian/bitmex
da66e41efb2ccb77362416031d672b3fa3692d12
[ "MIT" ]
null
null
null
defmodule Bitmex.Mixfile do use Mix.Project def project do [app: :bitmex, version: "0.2.2", elixir: "~> 1.4", build_embedded: Mix.env == :prod, start_permanent: Mix.env == :prod, description: "BitMEX client library for Elixir", source_url: "https://github.com/nobrick/bitmex", ...
22.078947
55
0.562574
e86a9fa9fec8bc503a8f6035670d22e80756fa1d
6,655
ex
Elixir
lib/rcon/client.ex
wisq/elixir-rcon
e7fce868c9fd607ad7122cef3f3e2ca7ce4b2468
[ "MIT" ]
null
null
null
lib/rcon/client.ex
wisq/elixir-rcon
e7fce868c9fd607ad7122cef3f3e2ca7ce4b2468
[ "MIT" ]
null
null
null
lib/rcon/client.ex
wisq/elixir-rcon
e7fce868c9fd607ad7122cef3f3e2ca7ce4b2468
[ "MIT" ]
null
null
null
defmodule RCON.Client do @moduledoc """ Provides functionality to connect to a RCON server. """ alias RCON.Packet @type connection :: {Socket.TCP.t, Packet.id} @type options :: [ timeout: timeout ] @auth_failed_id Packet.auth_failed_id @unexpected_packet_error "Unexpected packet" @unexp...
37.59887
272
0.661908
e86ae37c5ab383d6a5854a420e47a4d8bcb579d6
251
ex
Elixir
lib/ffaker/ja_jp/job.ex
marocchino/ffaker
5bb4420a8034db9f954a2464cd72039129ef2307
[ "MIT" ]
9
2016-11-09T15:50:05.000Z
2021-02-02T05:45:06.000Z
lib/ffaker/ja_jp/job.ex
marocchino/ffaker
5bb4420a8034db9f954a2464cd72039129ef2307
[ "MIT" ]
3
2016-09-01T09:54:46.000Z
2017-07-25T05:23:56.000Z
lib/ffaker/ja_jp/job.ex
marocchino/ffaker
5bb4420a8034db9f954a2464cd72039129ef2307
[ "MIT" ]
4
2016-11-22T17:51:48.000Z
2021-02-02T05:45:01.000Z
defmodule Ffaker.JaJp.Job do @moduledoc""" 日本語職業データを返す関数 """ use Ffaker @doc""" 職業を返す ## Examples iex> Ffaker.JaJp.Job.title "プログラマー" """ @spec title() :: String.t def title do Enum.random(~F(titles)) end end
11.952381
32
0.585657
e86afc61e4d7a0ed5d517712ffdfa8632ab39d6b
546
ex
Elixir
examples/basic_elixir/lib/basic_elixir/application.ex
raphaklaus/opentelemetry-erlang-contrib
b4046eb07395c1751f3a222982720c682a0339fa
[ "Apache-2.0" ]
24
2021-05-07T18:37:11.000Z
2022-03-13T06:21:00.000Z
examples/basic_elixir/lib/basic_elixir/application.ex
raphaklaus/opentelemetry-erlang-contrib
b4046eb07395c1751f3a222982720c682a0339fa
[ "Apache-2.0" ]
42
2021-05-10T20:19:22.000Z
2022-03-31T17:48:13.000Z
examples/basic_elixir/lib/basic_elixir/application.ex
raphaklaus/opentelemetry-erlang-contrib
b4046eb07395c1751f3a222982720c682a0339fa
[ "Apache-2.0" ]
19
2021-08-30T01:33:54.000Z
2022-03-20T22:01:15.000Z
defmodule BasicElixir.Application do # See https://hexdocs.pm/elixir/Application.html # for more information on OTP Applications @moduledoc false use Application def start(_type, _args) do children = [ # Starts a worker by calling: BasicElixir.Worker.start_link(arg) {BasicElixir.Worker, []} ...
27.3
70
0.716117
e86b26084eb693c6075102c96a3fff2187cc88a6
110
exs
Elixir
test/arangoex/aql_test.exs
alakra/arangoex
6fbea0335bcc1adeaa4b4299ce8028c2e4080980
[ "MIT" ]
24
2016-11-02T14:53:55.000Z
2021-12-25T13:08:09.000Z
test/arangoex/aql_test.exs
alakra/arangoex
6fbea0335bcc1adeaa4b4299ce8028c2e4080980
[ "MIT" ]
22
2016-12-06T15:09:50.000Z
2022-03-24T02:16:20.000Z
test/arangoex/aql_test.exs
alakra/arangoex
6fbea0335bcc1adeaa4b4299ce8028c2e4080980
[ "MIT" ]
8
2016-12-12T21:27:25.000Z
2019-05-24T04:27:30.000Z
defmodule Arangoex.AQLTest do # alias Arangoex.AQL use ExUnit.Case, async: true # todo - AQL tests end
13.75
30
0.718182
e86b3d64a51c982437e547cc0c300890f9102984
1,788
ex
Elixir
lib/ex_unit/lib/ex_unit/case_template.ex
Tica2/elixir
6cf1dcbfe4572fc75619f05e40c10fd0844083ef
[ "Apache-2.0" ]
1
2019-06-11T20:22:20.000Z
2019-06-11T20:22:20.000Z
lib/ex_unit/lib/ex_unit/case_template.ex
Tica2/elixir
6cf1dcbfe4572fc75619f05e40c10fd0844083ef
[ "Apache-2.0" ]
null
null
null
lib/ex_unit/lib/ex_unit/case_template.ex
Tica2/elixir
6cf1dcbfe4572fc75619f05e40c10fd0844083ef
[ "Apache-2.0" ]
null
null
null
defmodule ExUnit.CaseTemplate do @moduledoc """ This module allows a developer to define a test case template to be used throughout their tests. This is useful when there are a set of functions that should be shared between tests or a set of setup callbacks. By using this module, the callbacks and assertio...
21.035294
70
0.635906
e86b6a714ac8b459526261672e0812abd545daaf
642
exs
Elixir
apps/decoder_gtfs/test/decoder/gtfs_test.exs
jdenen/hindsight
ef69b4c1a74c94729dd838a9a0849a48c9b6e04c
[ "Apache-2.0" ]
12
2020-01-27T19:43:02.000Z
2021-07-28T19:46:29.000Z
apps/decoder_gtfs/test/decoder/gtfs_test.exs
jdenen/hindsight
ef69b4c1a74c94729dd838a9a0849a48c9b6e04c
[ "Apache-2.0" ]
81
2020-01-28T18:07:23.000Z
2021-11-22T02:12:13.000Z
apps/decoder_gtfs/test/decoder/gtfs_test.exs
jdenen/hindsight
ef69b4c1a74c94729dd838a9a0849a48c9b6e04c
[ "Apache-2.0" ]
10
2020-02-13T21:24:09.000Z
2020-05-21T18:39:35.000Z
defmodule Decoder.GtfsTest do use ExUnit.Case test "can be serialized" do struct = Decoder.Gtfs.new!([]) serialized = JsonSerde.serialize!(struct) assert JsonSerde.deserialize!(serialized) == struct end describe "Decoder" do test "decodes gtfs into batch of messages" do decoder = Decod...
22.137931
55
0.643302
e86b706e76af403d86ca168aa60059235d9cc2c1
151
exs
Elixir
test/test_helper.exs
CristianOliveiraDaRosa/doitbetter
8ce9f1b558a966d199df369a84d2c66cee58b8d7
[ "MIT" ]
null
null
null
test/test_helper.exs
CristianOliveiraDaRosa/doitbetter
8ce9f1b558a966d199df369a84d2c66cee58b8d7
[ "MIT" ]
null
null
null
test/test_helper.exs
CristianOliveiraDaRosa/doitbetter
8ce9f1b558a966d199df369a84d2c66cee58b8d7
[ "MIT" ]
null
null
null
ExUnit.start Mix.Task.run "ecto.create", ["--quiet"] Mix.Task.run "ecto.migrate", ["--quiet"] Ecto.Adapters.SQL.begin_test_transaction(DibSite.Repo)
21.571429
54
0.728477
e86b898e0bd327679c845a6b74ee0874effe05b0
400
exs
Elixir
clients/groups_settings/test/test_helper.exs
nuxlli/elixir-google-api
ecb8679ac7282b7dd314c3e20c250710ec6a7870
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/groups_settings/test/test_helper.exs
nuxlli/elixir-google-api
ecb8679ac7282b7dd314c3e20c250710ec6a7870
[ "Apache-2.0" ]
null
null
null
clients/groups_settings/test/test_helper.exs
nuxlli/elixir-google-api
ecb8679ac7282b7dd314c3e20c250710ec6a7870
[ "Apache-2.0" ]
1
2020-11-10T16:58:27.000Z
2020-11-10T16:58:27.000Z
ExUnit.start() defmodule GoogleApi.GroupsSettings.V1.TestHelper do defmacro __using__(opts) do quote do use ExUnit.Case, unquote(opts) import GoogleApi.GroupsSettings.V1.TestHelper end end def for_scope(scopes) when is_list(scopes), do: for_scope(Enum.join(scopes, " ")) def for_scope(scop...
21.052632
83
0.7075
e86badbfca98d705837bf924321fb7992d0f01a4
29,135
exs
Elixir
test/ex_zipper/zipper/struct_test.exs
mikowitz/ex_zipper
9ae652af30941ae6bab2b5f6d4f18e853c151280
[ "Unlicense" ]
5
2017-11-28T16:59:27.000Z
2021-05-24T00:39:39.000Z
test/ex_zipper/zipper/struct_test.exs
mikowitz/ex_zipper
9ae652af30941ae6bab2b5f6d4f18e853c151280
[ "Unlicense" ]
null
null
null
test/ex_zipper/zipper/struct_test.exs
mikowitz/ex_zipper
9ae652af30941ae6bab2b5f6d4f18e853c151280
[ "Unlicense" ]
1
2018-09-20T21:26:50.000Z
2018-09-20T21:26:50.000Z
defmodule ExZipper.Zipper.StructTest do use ExUnit.Case, async: true alias ExZipper.Zipper, as: Z defmodule Measure do defstruct [:time_signature, :music] end defmodule Voice do defstruct [:name, :music] end defmodule Note do defstruct [:note] end setup do measure = %Measure{ ...
29.548682
123
0.409507
e86bb59f9c672a4cfa5f44d048e95c9ae6687570
2,529
ex
Elixir
lib/lonely/option.ex
arnau/lonely
ee7fd0c5c1af243cbeaeeb038c8b59a829e9a52b
[ "MIT" ]
1
2017-05-28T20:12:49.000Z
2017-05-28T20:12:49.000Z
lib/lonely/option.ex
arnau/lonely
ee7fd0c5c1af243cbeaeeb038c8b59a829e9a52b
[ "MIT" ]
null
null
null
lib/lonely/option.ex
arnau/lonely
ee7fd0c5c1af243cbeaeeb038c8b59a829e9a52b
[ "MIT" ]
null
null
null
defmodule Lonely.Option do @moduledoc """ Handles any value that could be `nil` as well. Some functions result in either the value or just `nil`. For these ocasions you can either transform it to a result with `Lonely.Result.wrap/1` or use this module. iex> import Lonely.Option ...> [1, 2, 3] ...
22.580357
77
0.529458
e86be1036ed95c2603f3c7bab57c35277260442e
630
ex
Elixir
lib/data/bug.ex
stevegrossi/ex_venture
e02d5a63fdb882d92cfb4af3e15f7b48ad7054aa
[ "MIT" ]
2
2019-05-14T11:36:44.000Z
2020-07-01T08:54:04.000Z
lib/data/bug.ex
nickwalton/ex_venture
d8ff1b0181db03f9ddcb7610ae7ab533feecbfbb
[ "MIT" ]
null
null
null
lib/data/bug.ex
nickwalton/ex_venture
d8ff1b0181db03f9ddcb7610ae7ab533feecbfbb
[ "MIT" ]
1
2021-01-29T14:12:40.000Z
2021-01-29T14:12:40.000Z
defmodule Data.Bug do @moduledoc """ Bug schema """ use Data.Schema alias Data.Character schema "bugs" do field(:title, :string) field(:body, :string) field(:is_completed, :boolean, default: false) belongs_to(:reporter, Character) timestamps() end def changeset(struct, params) ...
19.090909
50
0.660317
e86be4544ecde82f99d475f1cf529b941ac01e54
464
exs
Elixir
plugins/ucc_chat/priv/repo/migrations/04420180112042490_add_friend_to_directs.exs
josephkabraham/ucx_ucc
0dbd9e3eb5940336b4870cff033482ceba5f6ee7
[ "MIT" ]
null
null
null
plugins/ucc_chat/priv/repo/migrations/04420180112042490_add_friend_to_directs.exs
josephkabraham/ucx_ucc
0dbd9e3eb5940336b4870cff033482ceba5f6ee7
[ "MIT" ]
null
null
null
plugins/ucc_chat/priv/repo/migrations/04420180112042490_add_friend_to_directs.exs
josephkabraham/ucx_ucc
0dbd9e3eb5940336b4870cff033482ceba5f6ee7
[ "MIT" ]
null
null
null
defmodule UcxUcc.Repo.Migrations.AddFriendToDirects do use Ecto.Migration def up do alter table(:directs) do add :friend_id, references(:users, on_delete: :nilify_all, type: :binary_id) end create unique_index(:directs, [:user_id, :friend_id], name: :directs_user_id_friend_id_index) execute "...
25.777778
97
0.726293
e86bfc984a2e01f6b03705843710ef1f101a1ad1
4,471
ex
Elixir
clients/secret_manager/lib/google_api/secret_manager/v1beta1/model/binding.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/secret_manager/lib/google_api/secret_manager/v1beta1/model/binding.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/secret_manager/lib/google_api/secret_manager/v1beta1/model/binding.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...
79.839286
1,972
0.750839
e86c2a93b8b45457c7b532446a80b5e085b91db1
442
exs
Elixir
exercises/control_flow_1,2.exs
renanlage/programming-elixir-book
71e58398269cde2b76a377d28cc906fb528c4134
[ "MIT" ]
8
2018-08-26T08:10:08.000Z
2021-04-05T16:05:05.000Z
exercises/control_flow_1,2.exs
renanlage/programming-elixir-book
71e58398269cde2b76a377d28cc906fb528c4134
[ "MIT" ]
null
null
null
exercises/control_flow_1,2.exs
renanlage/programming-elixir-book
71e58398269cde2b76a377d28cc906fb528c4134
[ "MIT" ]
1
2019-10-08T09:56:43.000Z
2019-10-08T09:56:43.000Z
defmodule ControlFlow.FizzBuzz do def upto(n) do 1..n |> Enum.map(&fizzbuzz/1) end def fizzbuzz(n) do case {n, rem(n, 3), rem(n, 5)} do ({_n, 0, 0}) -> "FizzBuzz" ({_n, 0, _}) -> "Fizz" ({_n, _, 0}) -> "Buzz" ({n, _, _}) -> n end end end IO.puts(ControlFlow.FizzBuzz.upto(20...
26
157
0.5
e86c2ae4451f4c2a3b40ee6587fe497b03de84cc
364
ex
Elixir
lib/accounts/user.ex
irisTa56/sdo_elixir
de856596c462141477bb27aee5d63cb7b95a3b67
[ "MIT" ]
null
null
null
lib/accounts/user.ex
irisTa56/sdo_elixir
de856596c462141477bb27aee5d63cb7b95a3b67
[ "MIT" ]
2
2021-03-10T17:42:11.000Z
2021-05-11T13:38:31.000Z
lib/accounts/user.ex
irisTa56/sdo_elixir
de856596c462141477bb27aee5d63cb7b95a3b67
[ "MIT" ]
null
null
null
defmodule SdoPhoenix.Accounts.User do use Ecto.Schema import Ecto.Changeset schema "users" do field :name, :string field :username, :string timestamps() end @doc false def changeset(user, attrs) do user |> cast(attrs, [:name, :username]) |> validate_required([:name, :username]) ...
18.2
44
0.662088
e86c36b8267da7eb0e06bed9e3f92d4aded09a2c
9,753
ex
Elixir
lib/mix/lib/mix/config.ex
ludios/elixir
1a4018adb9863c1265b306028a6b5d1146479266
[ "Apache-2.0" ]
1
2019-05-07T12:01:44.000Z
2019-05-07T12:01:44.000Z
lib/mix/lib/mix/config.ex
ludios/elixir
1a4018adb9863c1265b306028a6b5d1146479266
[ "Apache-2.0" ]
null
null
null
lib/mix/lib/mix/config.ex
ludios/elixir
1a4018adb9863c1265b306028a6b5d1146479266
[ "Apache-2.0" ]
null
null
null
defmodule Mix.Config do @moduledoc ~S""" A simple configuration API and functions for managing config files. ## Setting configuration Most commonly, this module is used to define your own configuration: use Mix.Config config :root_key, key1: "value1", key2: "value2" import...
26.430894
93
0.658156
e86c5673f1d98fc8ec61c9ad741e0ae44f594347
1,686
exs
Elixir
test/argument_names_test.exs
ankhers/argument_names
c9c980d178dbe42fc2c904e16e2a5261717ff708
[ "MIT" ]
1
2020-06-03T10:47:40.000Z
2020-06-03T10:47:40.000Z
test/argument_names_test.exs
ankhers/argument_names
c9c980d178dbe42fc2c904e16e2a5261717ff708
[ "MIT" ]
null
null
null
test/argument_names_test.exs
ankhers/argument_names
c9c980d178dbe42fc2c904e16e2a5261717ff708
[ "MIT" ]
null
null
null
defmodule ArgumentNamesTest do use ExUnit.Case doctest ArgumentNames import Helpers test "No named arguments" do assert named(1, 2, 3) == [1, 2, 3] end describe "one named argument" do test "first position" do assert named(a ~> 1, 2, 3) == [1, 2, 3] assert named(2, a ~> 1, 3) == [1, 2...
25.164179
55
0.482206
e86c5988f107f5c106f61e83ec2608d3dcd8e3a7
2,068
exs
Elixir
apps/forklift/mix.exs
SmartColumbusOS/smartcitiesdata
c8553d34631c822b034945eebf396994bf1001ff
[ "Apache-2.0" ]
1
2021-04-05T19:17:18.000Z
2021-04-05T19:17:18.000Z
apps/forklift/mix.exs
SmartColumbusOS/smartcitiesdata
c8553d34631c822b034945eebf396994bf1001ff
[ "Apache-2.0" ]
11
2020-01-07T15:43:42.000Z
2020-12-22T15:23:25.000Z
apps/forklift/mix.exs
SmartColumbusOS/smartcitiesdata
c8553d34631c822b034945eebf396994bf1001ff
[ "Apache-2.0" ]
null
null
null
defmodule Forklift.MixProject do use Mix.Project def project do [ app: :forklift, version: "0.10.6", elixir: "~> 1.8", build_path: "../../_build", config_path: "../../config/config.exs", deps_path: "../../deps", lockfile: "../../mix.lock", start_permanent: Mix.en...
28.722222
88
0.504352
e86c61685e8e5f299289a0982315dd863968d8d1
116
ex
Elixir
test/support/stubs/slack_rtm.ex
mgwidmann/slack_coder
3ff4375777c1bdbc94ba1491fdf4e1c0fa465edf
[ "MIT" ]
15
2015-09-23T16:03:28.000Z
2018-12-04T21:48:04.000Z
test/support/stubs/slack_rtm.ex
mgwidmann/slack_coder
3ff4375777c1bdbc94ba1491fdf4e1c0fa465edf
[ "MIT" ]
27
2016-01-12T16:44:31.000Z
2017-10-13T16:09:36.000Z
test/support/stubs/slack_rtm.ex
mgwidmann/slack_coder
3ff4375777c1bdbc94ba1491fdf4e1c0fa465edf
[ "MIT" ]
4
2016-09-01T12:08:24.000Z
2017-09-21T15:07:57.000Z
defmodule SlackCoder.Stubs.SlackRtm do def start(_token) do {:ok, %{url: "http://www.example.com"}} end end
19.333333
43
0.672414
e86c6472e55ec407473912ddc08a6f65c746c718
2,853
exs
Elixir
test/blocks/lua_mapper_test.exs
rbino/astarte_flow
21a1a4ae9594cccd00db6a1ba2f857be8ba7da9a
[ "Apache-2.0" ]
null
null
null
test/blocks/lua_mapper_test.exs
rbino/astarte_flow
21a1a4ae9594cccd00db6a1ba2f857be8ba7da9a
[ "Apache-2.0" ]
null
null
null
test/blocks/lua_mapper_test.exs
rbino/astarte_flow
21a1a4ae9594cccd00db6a1ba2f857be8ba7da9a
[ "Apache-2.0" ]
null
null
null
# # This file is part of Astarte. # # Copyright 2019 Ispirata Srl # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appl...
27.699029
82
0.630214
e86c82431800bf319ccb96077826c6d41122105a
318
ex
Elixir
apps/prometheus/lib/prometheus/accounts/user.ex
thluiz/prometheus
0936e0b1e066ed35917221628d060adf8d7aed29
[ "MIT" ]
null
null
null
apps/prometheus/lib/prometheus/accounts/user.ex
thluiz/prometheus
0936e0b1e066ed35917221628d060adf8d7aed29
[ "MIT" ]
null
null
null
apps/prometheus/lib/prometheus/accounts/user.ex
thluiz/prometheus
0936e0b1e066ed35917221628d060adf8d7aed29
[ "MIT" ]
1
2020-11-04T06:04:51.000Z
2020-11-04T06:04:51.000Z
defmodule Prometheus.Accounts.User do use Ecto.Schema import Ecto.Changeset schema "users" do field :name, :string field :userkey, :string timestamps() end @doc false def changeset(user, attrs) do user |> cast(attrs, [:name, :userkey]) |> validate_required([:userkey]) end end
16.736842
37
0.657233
e86ca703c220b56e278f54a4a78a7d8d7190b698
2,113
ex
Elixir
clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/revision_template.ex
chingor13/elixir-google-api
85e13fa25c4c9f4618bb463ab4c79245fc6d2a7b
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/revision_template.ex
chingor13/elixir-google-api
85e13fa25c4c9f4618bb463ab4c79245fc6d2a7b
[ "Apache-2.0" ]
null
null
null
clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/revision_template.ex
chingor13/elixir-google-api
85e13fa25c4c9f4618bb463ab4c79245fc6d2a7b
[ "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 ...
39.867925
171
0.752485
e86cc2d50fad1118dac3284583821a7c3ae078b5
215
exs
Elixir
test/crypto_test.exs
termoose/nkn_client
f7b7ea2401d16ea6eeddb90317bd4231cc2f9c83
[ "MIT" ]
2
2019-02-14T19:13:55.000Z
2020-01-21T14:18:30.000Z
test/crypto_test.exs
termoose/nkn_client
f7b7ea2401d16ea6eeddb90317bd4231cc2f9c83
[ "MIT" ]
2
2020-02-03T10:51:19.000Z
2020-04-12T10:13:23.000Z
test/crypto_test.exs
termoose/nkn_client
f7b7ea2401d16ea6eeddb90317bd4231cc2f9c83
[ "MIT" ]
1
2020-04-11T06:38:23.000Z
2020-04-11T06:38:23.000Z
defmodule NknClientTest.Crypto do use ExUnit.Case test "get public key" do key = NknClient.Crypto.pub_key() <<first_byte::binary-size(2), _::binary>> = key assert String.length(key) == 64 end end
21.5
51
0.67907
e86ccdc7ea953469764e19c274f3b0c654269f59
1,283
exs
Elixir
mix.exs
ejc123/nerves_system_xu4
8b02cf9e2432c299d190c08afb574a17585bb708
[ "Apache-2.0" ]
null
null
null
mix.exs
ejc123/nerves_system_xu4
8b02cf9e2432c299d190c08afb574a17585bb708
[ "Apache-2.0" ]
null
null
null
mix.exs
ejc123/nerves_system_xu4
8b02cf9e2432c299d190c08afb574a17585bb708
[ "Apache-2.0" ]
null
null
null
defmodule NervesSystemXu4.Mixfile do use Mix.Project @version Path.join(__DIR__, "VERSION") |> File.read!() |> String.trim() def project do [ app: :nerves_system_xu4, version: @version, elixir: "~> 1.3", compilers: Mix.compilers() ++ [:nerves_package], des...
21.383333
82
0.545596
e86ce54e8f064b84afc6e5acbfa79f11221385b6
2,893
ex
Elixir
lib/game/command/drop.ex
jgsmith/ex_venture
546adaa8fe80d45a72fde6de8d8d6906902c12d4
[ "MIT" ]
2
2019-05-14T11:36:44.000Z
2020-07-01T08:54:04.000Z
lib/game/command/drop.ex
nickwalton/ex_venture
d8ff1b0181db03f9ddcb7610ae7ab533feecbfbb
[ "MIT" ]
null
null
null
lib/game/command/drop.ex
nickwalton/ex_venture
d8ff1b0181db03f9ddcb7610ae7ab533feecbfbb
[ "MIT" ]
1
2021-01-29T14:12:40.000Z
2021-01-29T14:12:40.000Z
defmodule Game.Command.Drop do @moduledoc """ The "drop" command """ use Game.Command use Game.Currency alias Game.Character alias Game.Environment alias Game.Item alias Game.Items alias Game.Player @must_be_alive true commands(["drop"]) @impl Game.Command def help(:topic), do: "Drop" ...
24.108333
102
0.627722
e86d102f7d75635b09741d2a4b1e3e20738b873f
1,459
ex
Elixir
clients/proximity_beacon/lib/google_api/proximity_beacon/v1beta1/model/indoor_level.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/proximity_beacon/lib/google_api/proximity_beacon/v1beta1/model/indoor_level.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/proximity_beacon/lib/google_api/proximity_beacon/v1beta1/model/indoor_level.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...
31.717391
141
0.758739
e86d1052c8d11e5d4828fb4626a98ab4bfc7e047
1,062
ex
Elixir
lib/oli_web/live/objectives/actions.ex
malav2110/oli-torus
8af64e762a7c8a2058bd27a7ab8e96539ffc055f
[ "MIT" ]
45
2020-04-17T15:40:27.000Z
2022-03-25T00:13:30.000Z
lib/oli_web/live/objectives/actions.ex
malav2110/oli-torus
8af64e762a7c8a2058bd27a7ab8e96539ffc055f
[ "MIT" ]
944
2020-02-13T02:37:01.000Z
2022-03-31T17:50:07.000Z
lib/oli_web/live/objectives/actions.ex
malav2110/oli-torus
8af64e762a7c8a2058bd27a7ab8e96539ffc055f
[ "MIT" ]
23
2020-07-28T03:36:13.000Z
2022-03-17T14:29:02.000Z
defmodule OliWeb.Objectives.Actions do use Phoenix.LiveComponent use Phoenix.HTML def render(assigns) do ~L""" <div class="objective-actions p-2"> <%= if !@has_children and @depth < 2 do %> <button class="ml-1 btn btn-sm btn-light" phx-click="show_breakdown_mo...
26.55
58
0.50565
e86d4aae33a0cfd7788377e82cc9e03591dab3fe
6,787
ex
Elixir
lib/generate.ex
tmorton/puppeteer-pdf-1
5f36cd08de42cf7e675e6d0641b962968d016f64
[ "MIT" ]
null
null
null
lib/generate.ex
tmorton/puppeteer-pdf-1
5f36cd08de42cf7e675e6d0641b962968d016f64
[ "MIT" ]
null
null
null
lib/generate.ex
tmorton/puppeteer-pdf-1
5f36cd08de42cf7e675e6d0641b962968d016f64
[ "MIT" ]
null
null
null
defmodule PuppeteerPdf.Generate do @moduledoc """ Generate a PDF file from multiple available sources. """ @doc """ Generate PDF file given an HTML string input ## Options - `header_template` - HTML template for the print header. - `footer_template` - HTML template for the print footer. - `display_h...
32.78744
103
0.497864
e86d5735cca439b563835f752ebb9f4a74a432e5
7,125
ex
Elixir
lib/ecto/query/util.ex
MSch/ecto
648f785b2202193921fe00d68bc334399f5edb93
[ "Apache-2.0" ]
null
null
null
lib/ecto/query/util.ex
MSch/ecto
648f785b2202193921fe00d68bc334399f5edb93
[ "Apache-2.0" ]
null
null
null
lib/ecto/query/util.ex
MSch/ecto
648f785b2202193921fe00d68bc334399f5edb93
[ "Apache-2.0" ]
null
null
null
defmodule Ecto.Query.Util do @moduledoc """ This module provide utility functions on queries. """ alias Ecto.Query.Query import Decimal, only: [is_decimal: 1] @doc """ Look up a source with a variable. """ def find_source(sources, { :&, _, [ix] }) when is_tuple(sources) do elem(sources, ix) en...
28.963415
92
0.602807
e86d7553abdd05d395d406005b6c29987b842e06
3,721
ex
Elixir
lib/grapevine/achievements.ex
shanesveller/grapevine
fe74ade1adff88dfe4c1ab55fee3902dbb4664fe
[ "MIT" ]
null
null
null
lib/grapevine/achievements.ex
shanesveller/grapevine
fe74ade1adff88dfe4c1ab55fee3902dbb4664fe
[ "MIT" ]
null
null
null
lib/grapevine/achievements.ex
shanesveller/grapevine
fe74ade1adff88dfe4c1ab55fee3902dbb4664fe
[ "MIT" ]
null
null
null
defmodule Grapevine.Achievements do @moduledoc """ Contect for managing a game's achievements """ import Ecto.Query alias Grapevine.Achievements.Achievement alias Grapevine.Repo @max_points 500 @doc """ New changeset for an achievement """ def new(game) do game |> Ecto.build_assoc(:ach...
21.262857
98
0.58022
e86d8358aced1dad57afc455dda8d52ba0d9db58
1,272
ex
Elixir
create_fun_umbrella/apps/create_fun_cms/lib/create_fun_cms/views/error_helpers.ex
Vorzious/CreateFun
5744c913ef706bc29062fa90a8ec5de12d267dab
[ "MIT" ]
null
null
null
create_fun_umbrella/apps/create_fun_cms/lib/create_fun_cms/views/error_helpers.ex
Vorzious/CreateFun
5744c913ef706bc29062fa90a8ec5de12d267dab
[ "MIT" ]
9
2018-06-17T09:54:03.000Z
2018-06-17T09:55:20.000Z
create_fun_umbrella/apps/create_fun_cms/lib/create_fun_cms/views/error_helpers.ex
Vorzious/CreateFun
5744c913ef706bc29062fa90a8ec5de12d267dab
[ "MIT" ]
1
2018-06-05T18:38:01.000Z
2018-06-05T18:38:01.000Z
defmodule CreateFunCms.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_...
31.02439
78
0.67217
e86d92f7f5d7428801bcfe4fce5e833991147373
13,793
ex
Elixir
lib/aws/generated/media_connect.ex
smanolloff/aws-elixir
c7cb6577802f5010be7e7b6ccb2c0f3c8c73ea84
[ "Apache-2.0" ]
null
null
null
lib/aws/generated/media_connect.ex
smanolloff/aws-elixir
c7cb6577802f5010be7e7b6ccb2c0f3c8c73ea84
[ "Apache-2.0" ]
null
null
null
lib/aws/generated/media_connect.ex
smanolloff/aws-elixir
c7cb6577802f5010be7e7b6ccb2c0f3c8c73ea84
[ "Apache-2.0" ]
null
null
null
# WARNING: DO NOT EDIT, AUTO-GENERATED CODE! # See https://github.com/aws-beam/aws-codegen for more details. defmodule AWS.MediaConnect do @moduledoc """ API for AWS Elemental MediaConnect """ @doc """ Adds outputs to an existing flow. You can create up to 50 outputs per flow. """ def add_flow_output...
31.347727
100
0.656782
e86da82b5320b0c8a86212807c6c18fcd0076158
1,053
exs
Elixir
test/cadet/incentives/achievement_test.exs
source-academy/cadet
c447552453f78799755de73f66999e4c9d20383c
[ "Apache-2.0" ]
27
2018-01-20T05:56:24.000Z
2021-05-24T03:21:55.000Z
test/cadet/incentives/achievement_test.exs
source-academy/cadet
c447552453f78799755de73f66999e4c9d20383c
[ "Apache-2.0" ]
731
2018-04-16T13:25:49.000Z
2021-06-22T07:16:12.000Z
test/cadet/incentives/achievement_test.exs
source-academy/cadet
c447552453f78799755de73f66999e4c9d20383c
[ "Apache-2.0" ]
43
2018-01-20T06:35:46.000Z
2021-05-05T03:22:35.000Z
defmodule Cadet.Incentives.AchievementTest do alias Cadet.Incentives.Achievement use Cadet.ChangesetCase, entity: Achievement describe "Changesets" do test "valid changesets" do course = insert(:course) assert_changeset( %{ uuid: "d1fdae3f-2775-4503-ab6b-e043149d4a15", ...
27
81
0.577398
e86dccd4c11078d6ca258482b10524c138afc5a4
2,891
ex
Elixir
lib/trifolium/endpoints/genus.ex
daskycodes/trifolium
322f01f89948c51d974e64b049ca2ce2d0f8b45f
[ "MIT" ]
1
2021-04-19T15:09:35.000Z
2021-04-19T15:09:35.000Z
lib/trifolium/endpoints/genus.ex
daskycodes/trifolium
322f01f89948c51d974e64b049ca2ce2d0f8b45f
[ "MIT" ]
1
2021-04-19T18:08:05.000Z
2021-04-19T18:08:05.000Z
lib/trifolium/endpoints/genus.ex
daskycodes/trifolium
322f01f89948c51d974e64b049ca2ce2d0f8b45f
[ "MIT" ]
2
2021-04-19T15:09:39.000Z
2021-04-28T14:05:21.000Z
defmodule Trifolium.Genus do @moduledoc """ Module to be used to interact with Trefle [Genus](https://docs.trefle.io/reference/#tag/Genus) related endpoints. """ alias Trifolium.Config alias Trifolium.API @endpoint_path "api/v1/genus/" @http_client Config.http_client() @doc """ List every possi...
28.343137
117
0.607056
e86dec8ae3bca1d72c077b1ab35178916a812991
169
ex
Elixir
lib/urldome/use_cases/minify_behaviour.ex
Brinuz/url-dome
6f01b598f51ccad422e7172b99a26fcc58c86a72
[ "MIT" ]
3
2020-06-26T16:17:43.000Z
2020-08-17T08:40:27.000Z
lib/urldome/use_cases/minify_behaviour.ex
Brinuz/url-dome
6f01b598f51ccad422e7172b99a26fcc58c86a72
[ "MIT" ]
null
null
null
lib/urldome/use_cases/minify_behaviour.ex
Brinuz/url-dome
6f01b598f51ccad422e7172b99a26fcc58c86a72
[ "MIT" ]
null
null
null
defmodule Urldome.UseCases.MinifyBehaviour do @callback run(String.t(), integer) :: {:ok, String.t()} | {:error, :required | :duplicated | :unknown} end
33.8
78
0.639053
e86e68b3f99f8085cfb24227dab078e34943e10d
5,124
exs
Elixir
test/ex338_web/controllers/draft_queue_controller_test.exs
axelclark/ex338
3fb3c260d93bda61f7636ee1a677770d2dc1b89a
[ "MIT" ]
17
2016-12-22T06:39:26.000Z
2021-01-20T13:51:13.000Z
test/ex338_web/controllers/draft_queue_controller_test.exs
axelclark/ex338
3fb3c260d93bda61f7636ee1a677770d2dc1b89a
[ "MIT" ]
608
2016-08-06T18:57:58.000Z
2022-03-01T02:48:17.000Z
test/ex338_web/controllers/draft_queue_controller_test.exs
axelclark/ex338
3fb3c260d93bda61f7636ee1a677770d2dc1b89a
[ "MIT" ]
6
2017-11-21T22:35:45.000Z
2022-01-11T21:37:40.000Z
defmodule Ex338Web.DraftQueueControllerTest do use Ex338Web.ConnCase alias Ex338.{Accounts.User, DraftQueues.DraftQueue} setup %{conn: conn} do user = %User{name: "test", email: "test@example.com", id: 1} {:ok, conn: assign(conn, :current_user, user), user: user} end describe "new/2" do test "r...
38.526316
83
0.688525
e86e841cb55c2b9f0eef5b4de3dc14a3e4f34433
1,174
exs
Elixir
mix.exs
capdiz/africastalking_elixir
65b35ac930c433288f406ee5ced750336649cf91
[ "MIT" ]
null
null
null
mix.exs
capdiz/africastalking_elixir
65b35ac930c433288f406ee5ced750336649cf91
[ "MIT" ]
null
null
null
mix.exs
capdiz/africastalking_elixir
65b35ac930c433288f406ee5ced750336649cf91
[ "MIT" ]
null
null
null
defmodule AfricastalkingElixir.MixProject do use Mix.Project def project do [ app: :africastalking_elixir, version: "0.1.0", elixir: "~> 1.7", start_permanent: Mix.env() == :prod, deps: deps(), description: description(), package: package() ] end # Run "mix he...
23.959184
118
0.59029
e86e964b24ad7e3a4d36b29e4abdc490f8029f8e
7,034
ex
Elixir
lib/aws/generated/connect_participant.ex
kw7oe/aws-elixir
4ba60502dde270c83143822c9964018c7770bad7
[ "Apache-2.0" ]
341
2018-04-04T19:06:19.000Z
2022-03-25T21:34:23.000Z
lib/aws/generated/connect_participant.ex
kw7oe/aws-elixir
4ba60502dde270c83143822c9964018c7770bad7
[ "Apache-2.0" ]
82
2018-04-04T17:32:33.000Z
2022-03-24T15:12:04.000Z
lib/aws/generated/connect_participant.ex
kw7oe/aws-elixir
4ba60502dde270c83143822c9964018c7770bad7
[ "Apache-2.0" ]
76
2018-04-10T20:19:44.000Z
2022-03-15T13:49:19.000Z
# WARNING: DO NOT EDIT, AUTO-GENERATED CODE! # See https://github.com/aws-beam/aws-codegen for more details. defmodule AWS.ConnectParticipant do @moduledoc """ Amazon Connect is a cloud-based contact center solution that makes it easy to set up and manage a customer contact center and provide reliable customer ...
23.844068
166
0.642451
e86ed217529b211ac2d0908ad9fca18716e8ee1a
494
exs
Elixir
mix.exs
Fayhen/ElixirCardDealer
d311f8c3fb4eb514f17bc577707e1ef3c8b402ef
[ "MIT" ]
null
null
null
mix.exs
Fayhen/ElixirCardDealer
d311f8c3fb4eb514f17bc577707e1ef3c8b402ef
[ "MIT" ]
null
null
null
mix.exs
Fayhen/ElixirCardDealer
d311f8c3fb4eb514f17bc577707e1ef3c8b402ef
[ "MIT" ]
null
null
null
defmodule ElixirCardDealer.MixProject do use Mix.Project def project do [ app: :elixir_card_dealer, version: "0.1.0", elixir: "~> 1.12", start_permanent: Mix.env() == :prod, deps: deps() ] end # Run "mix help compile.app" to learn about applications. def application do ...
17.642857
59
0.58502
e86edd49fbc16799ba4e14a4a6e0ac75285e5c6c
2,175
ex
Elixir
advent_umbrella_2016/apps/day7/lib/circuit_runner.ex
lauromoura/adventofcode
320dc1ea7099fbc7c3ffcbc406bfc0aa236c3b78
[ "Unlicense" ]
null
null
null
advent_umbrella_2016/apps/day7/lib/circuit_runner.ex
lauromoura/adventofcode
320dc1ea7099fbc7c3ffcbc406bfc0aa236c3b78
[ "Unlicense" ]
null
null
null
advent_umbrella_2016/apps/day7/lib/circuit_runner.ex
lauromoura/adventofcode
320dc1ea7099fbc7c3ffcbc406bfc0aa236c3b78
[ "Unlicense" ]
null
null
null
defmodule CircuitRunner do use Bitwise require CircuitParser def main([filename, output|_]) do circuit = parse_file(filename) {circuit, value} = get_gate(circuit, String.to_atom(output)) IO.inspect(value) end def main([filename|_]) do IO.puts("No output gate. Defaulting to 'a'") main([fi...
28.618421
83
0.646897
e86efb31203e692f3be11e9621de57d1c4f1ed03
597
ex
Elixir
lib/ecto/module.ex
cloud8421/ada
384f5e5e85e95c4d5883298259e781cc0a54bd07
[ "MIT" ]
7
2019-05-11T12:14:48.000Z
2021-04-02T18:42:51.000Z
lib/ecto/module.ex
cloud8421/ada
384f5e5e85e95c4d5883298259e781cc0a54bd07
[ "MIT" ]
3
2019-05-11T08:01:47.000Z
2019-05-14T12:06:50.000Z
lib/ecto/module.ex
cloud8421/ada
384f5e5e85e95c4d5883298259e781cc0a54bd07
[ "MIT" ]
1
2021-01-06T14:57:32.000Z
2021-01-06T14:57:32.000Z
defmodule Ecto.Module do @moduledoc false @behaviour Ecto.Type def type, do: :string def cast(value) when is_atom(value), do: {:ok, value} def cast("Elixir." <> _rest = mod_name) do {:ok, String.to_existing_atom(mod_name)} end def cast(mod_name_without_prefix) when is_binary(mod_name_without_prefi...
24.875
78
0.698492
e86f58210c381b075f49218dc98df31547b2ed18
21,808
ex
Elixir
clients/container/lib/google_api/container/v1/model/cluster.ex
richiboi1977/elixir-google-api
c495bb3548090eb7a63d12f6fb145ec48aecdc0b
[ "Apache-2.0" ]
1
2021-10-01T09:20:41.000Z
2021-10-01T09:20:41.000Z
clients/container/lib/google_api/container/v1/model/cluster.ex
richiboi1977/elixir-google-api
c495bb3548090eb7a63d12f6fb145ec48aecdc0b
[ "Apache-2.0" ]
null
null
null
clients/container/lib/google_api/container/v1/model/cluster.ex
richiboi1977/elixir-google-api
c495bb3548090eb7a63d12f6fb145ec48aecdc0b
[ "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...
97.793722
738
0.727806
e86f655c3fc776bd28ca8139212f4b1d4dab5ada
1,931
exs
Elixir
clients/reseller/mix.exs
richiboi1977/elixir-google-api
c495bb3548090eb7a63d12f6fb145ec48aecdc0b
[ "Apache-2.0" ]
1
2021-10-01T09:20:41.000Z
2021-10-01T09:20:41.000Z
clients/reseller/mix.exs
richiboi1977/elixir-google-api
c495bb3548090eb7a63d12f6fb145ec48aecdc0b
[ "Apache-2.0" ]
null
null
null
clients/reseller/mix.exs
richiboi1977/elixir-google-api
c495bb3548090eb7a63d12f6fb145ec48aecdc0b
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
28.820896
188
0.665458
e86f7441430f71a9ee07d1a274df0558a643daa4
1,609
ex
Elixir
elevator/lib/output.ex
mariugul/TTK4145-Real-Time-Programming
1cc12b51851ef42e934330f12ca0d964d9d583b3
[ "MIT" ]
null
null
null
elevator/lib/output.ex
mariugul/TTK4145-Real-Time-Programming
1cc12b51851ef42e934330f12ca0d964d9d583b3
[ "MIT" ]
null
null
null
elevator/lib/output.ex
mariugul/TTK4145-Real-Time-Programming
1cc12b51851ef42e934330f12ca0d964d9d583b3
[ "MIT" ]
null
null
null
defmodule Output do @moduledoc """ A module that passes button presses and floor changes as messages, abstracting away the polling of memory-mapped IO to fit into the message-passing paradigm. """ use Supervisor require Driver require Button @topFloor Application.compile_env(:elevator, :topFloor) # ...
31.54902
161
0.650093
e86fad6ca51e374b45d98defa3b749a398a88990
2,003
ex
Elixir
clients/you_tube/lib/google_api/you_tube/v3/model/live_chat_ban_snippet.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/you_tube/lib/google_api/you_tube/v3/model/live_chat_ban_snippet.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/you_tube/lib/google_api/you_tube/v3/model/live_chat_ban_snippet.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...
35.767857
133
0.711433
e86fb2ba4250f7a6d75a1ab730b63fc15c696564
2,949
ex
Elixir
web/models/vote_repository.ex
leolorenzoluis/poll
c1009e0796904414a94ef2e7509f7682d2910abf
[ "Apache-2.0" ]
1
2016-08-05T23:37:29.000Z
2016-08-05T23:37:29.000Z
web/models/vote_repository.ex
leolorenzoluis/poll
c1009e0796904414a94ef2e7509f7682d2910abf
[ "Apache-2.0" ]
null
null
null
web/models/vote_repository.ex
leolorenzoluis/poll
c1009e0796904414a94ef2e7509f7682d2910abf
[ "Apache-2.0" ]
null
null
null
defmodule Poll.VoteRepository do import Poll.Database import RethinkDB.Query alias RethinkDB.Record require RethinkDB.Lambda import RethinkDB.Lambda def get_all() do result = db("poll") |> table("ZamboangaSibugay") |> run #Enum.each(result.data, fn x -> # validCity = String.re...
25.643478
91
0.599864
e86fbaa073bd2ff5845d18fc383f14a5170fbdb4
1,954
ex
Elixir
clients/cloud_scheduler/lib/google_api/cloud_scheduler/v1/model/list_jobs_response.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/cloud_scheduler/lib/google_api/cloud_scheduler/v1/model/list_jobs_response.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/cloud_scheduler/lib/google_api/cloud_scheduler/v1/model/list_jobs_response.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...
39.08
347
0.740532
e86ff10cdec613833b92ea56db081fd557bb1524
1,132
ex
Elixir
lib/scipio/scheduler.ex
e8t-elixir/cap-scipio
b370c6b9f3b2bef5b43db91786001148bde70fab
[ "MIT" ]
null
null
null
lib/scipio/scheduler.ex
e8t-elixir/cap-scipio
b370c6b9f3b2bef5b43db91786001148bde70fab
[ "MIT" ]
null
null
null
lib/scipio/scheduler.ex
e8t-elixir/cap-scipio
b370c6b9f3b2bef5b43db91786001148bde70fab
[ "MIT" ]
null
null
null
defmodule Scipio.Scheduler do use GenServer # alias def start_link(_opts, [state: state, name: name]) do # opts [strategy: :one_for_one, name: Scipio.Scheduler.DynamicSupervisor] # arg [state: state, name: name] GenServer.start_link(__MODULE__, [state: state, name: via_tuple(name)]) end def chil...
20.581818
77
0.64311
e87003251ea44a84047d1a85315eb63d898ccfc1
1,117
exs
Elixir
config/config.exs
tlux/delx
8510f5ae2a6d9ec3886a3feed050ffcfd795937d
[ "MIT" ]
2
2021-02-26T05:46:07.000Z
2021-04-01T16:43:03.000Z
config/config.exs
tlux/delx
8510f5ae2a6d9ec3886a3feed050ffcfd795937d
[ "MIT" ]
1
2019-07-28T21:15:47.000Z
2019-07-28T21:15:47.000Z
config/config.exs
tlux/delx
8510f5ae2a6d9ec3886a3feed050ffcfd795937d
[ "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.032258
73
0.753805
e870269a77f12a7ab7c4e67410551607a0fa397d
1,618
exs
Elixir
mix.exs
simonprev/elixir_agent
56e6bf32259706ba45f3a158079f8e5a26f28b91
[ "Apache-2.0" ]
null
null
null
mix.exs
simonprev/elixir_agent
56e6bf32259706ba45f3a158079f8e5a26f28b91
[ "Apache-2.0" ]
null
null
null
mix.exs
simonprev/elixir_agent
56e6bf32259706ba45f3a158079f8e5a26f28b91
[ "Apache-2.0" ]
null
null
null
defmodule NewRelic.Mixfile do use Mix.Project def project do [ app: :new_relic_agent, description: "New Relic's Open-Source Elixir Agent", version: agent_version(), elixir: "~> 1.8", build_embedded: Mix.env() == :prod, start_permanent: Mix.env() == :prod, name: "New Re...
24.892308
80
0.558096
e87026ca3f687ed72f42fcc66853b825c920023f
9,062
ex
Elixir
lib/installer/run_time_sourcing.ex
mishka-group/mishka_installer
ab19e3e1e8aaa984ec48d6277a77d567eb5f61ea
[ "Apache-2.0" ]
3
2022-03-18T14:32:15.000Z
2022-03-24T06:33:21.000Z
lib/installer/run_time_sourcing.ex
mishka-group/mishka_installer
ab19e3e1e8aaa984ec48d6277a77d567eb5f61ea
[ "Apache-2.0" ]
3
2022-03-25T08:30:42.000Z
2022-03-27T17:13:46.000Z
lib/installer/run_time_sourcing.ex
mishka-group/mishka_installer
ab19e3e1e8aaa984ec48d6277a77d567eb5f61ea
[ "Apache-2.0" ]
null
null
null
defmodule MishkaInstaller.Installer.RunTimeSourcing do @moduledoc """ This module is created just for compiling and sourcing, hence if you want to work with Json file and the other compiling dependencies please see the `MishkaInstaller.Installer.DepHandler` module. """ use Agent @module "run_time_sourcing" ...
46.234694
174
0.660561
e87028d2f3323dc9bfa27e9e3a34173a2fca880f
5,021
ex
Elixir
lib/upvest/api.ex
upvestco/upvest-elixir
4c04e6428e5795b7be88af8e516e604d4ff7009a
[ "MIT" ]
null
null
null
lib/upvest/api.ex
upvestco/upvest-elixir
4c04e6428e5795b7be88af8e516e604d4ff7009a
[ "MIT" ]
null
null
null
lib/upvest/api.ex
upvestco/upvest-elixir
4c04e6428e5795b7be88af8e516e604d4ff7009a
[ "MIT" ]
null
null
null
defmodule Upvest.API do @moduledoc """ Shared utilities for interacting with the Upvest API. It contains shared implementations of endpoints methods for creating, listing, retrieving and deleting resources. Where possible, transforms the raw result from the Upvest API into a final struct. This is achieved ...
34.627586
96
0.563234
e87057cde4dfcd60802b65ea797aa575b59ae950
806
ex
Elixir
test/support/reauthorization/phoenix/endpoint.ex
mitcheaton1/pow_assent
f3e9e6cc7dd16a3f2d9add885bd160d227abb713
[ "MIT" ]
193
2019-10-30T00:58:21.000Z
2022-03-09T20:26:37.000Z
test/support/reauthorization/phoenix/endpoint.ex
mitcheaton1/pow_assent
f3e9e6cc7dd16a3f2d9add885bd160d227abb713
[ "MIT" ]
82
2019-10-29T20:19:38.000Z
2022-03-22T04:09:27.000Z
test/support/reauthorization/phoenix/endpoint.ex
mitcheaton1/pow_assent
f3e9e6cc7dd16a3f2d9add885bd160d227abb713
[ "MIT" ]
28
2019-10-31T12:38:10.000Z
2021-11-01T18:05:23.000Z
defmodule PowAssent.Test.Reauthorization.Phoenix.Endpoint do @moduledoc false use Phoenix.Endpoint, otp_app: :pow_assent plug Plug.RequestId plug Plug.Logger plug Plug.Parsers, parsers: [:urlencoded, :multipart, :json], pass: ["*/*"], json_decoder: Phoenix.json_library() plug Plug.MethodOverr...
23.028571
60
0.69727
e87058d546290a6d69e5c0401efe59ca508428e9
19,998
ex
Elixir
lib/surface/compiler/eex_engine.ex
neilpennell/surface
6d7c67a288b7190ea524288c1f56dccde5bbdbe1
[ "MIT" ]
null
null
null
lib/surface/compiler/eex_engine.ex
neilpennell/surface
6d7c67a288b7190ea524288c1f56dccde5bbdbe1
[ "MIT" ]
null
null
null
lib/surface/compiler/eex_engine.ex
neilpennell/surface
6d7c67a288b7190ea524288c1f56dccde5bbdbe1
[ "MIT" ]
null
null
null
defmodule Surface.Compiler.EExEngine do @moduledoc """ This module glues together surface's AST and Phoenix.LiveView.Engine to actually render an AST. It takes a list of Surface AST nodes, and processes them into a sequence of static raw html items and dynamic pieces. It then converts these into tokens which a...
28.126582
120
0.60136
e87073b1db7bbbb503816f01014425061a9f3d0b
5,772
ex
Elixir
lib/jollacn/db/util.ex
TylerTemp/jollacn-api
4e0d887ea9bf4c5fd94dd1880682de1f6384a078
[ "MIT" ]
null
null
null
lib/jollacn/db/util.ex
TylerTemp/jollacn-api
4e0d887ea9bf4c5fd94dd1880682de1f6384a078
[ "MIT" ]
null
null
null
lib/jollacn/db/util.ex
TylerTemp/jollacn-api
4e0d887ea9bf4c5fd94dd1880682de1f6384a078
[ "MIT" ]
null
null
null
defmodule JollaCNAPI.DB.Util.Type.JSON do @behaviour Ecto.Type def type, do: :json def cast(any), do: {:ok, any} # def load(value) do # IO.puts("try load #{inspect value}") # result = :jiffy.decode(value, [:use_nil, :return_maps]) # IO.puts("load #{inspect value} to #{inspect result}") # {:ok...
26.356164
98
0.597367
e870f411279750d6dcd09626291a4554e9da403b
1,546
exs
Elixir
test/smart_city/user_test.exs
Datastillery/smart_city
4f697f4c2a107c4283b4ab9f8f92e15d264d1879
[ "Apache-2.0" ]
null
null
null
test/smart_city/user_test.exs
Datastillery/smart_city
4f697f4c2a107c4283b4ab9f8f92e15d264d1879
[ "Apache-2.0" ]
2
2021-05-28T16:42:32.000Z
2021-05-28T16:43:38.000Z
test/smart_city/user_test.exs
Datastillery/smart_city
4f697f4c2a107c4283b4ab9f8f92e15d264d1879
[ "Apache-2.0" ]
null
null
null
defmodule SmartCity.UserTest do use ExUnit.Case use Placebo alias SmartCity.User setup do string_key_message = %{ "subject_id" => "Cam", "email" => "cam@cam.com" } json_message = Jason.encode!(string_key_message) atom_key_message = %{subject_id: "Cam", email: "cam@cam.com"} i...
28.109091
100
0.66947
e8710bf4fc0f37ff4403bbce2e3a97bedfbc318d
1,941
ex
Elixir
clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/user_role_permissions_list_response.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/user_role_permissions_list_response.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/user_role_permissions_list_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...
38.058824
208
0.759402
e8711ae8dbf9b37e7b1698578b5fca1c245bf5b9
8,397
exs
Elixir
test/constructors_test.exs
X4lldux/disc_union
e5b5a2d775a0536fa492c311bc297f71b0a5980d
[ "MIT" ]
58
2016-05-14T03:56:22.000Z
2019-04-18T14:45:27.000Z
test/constructors_test.exs
X4lldux/disc_union
e5b5a2d775a0536fa492c311bc297f71b0a5980d
[ "MIT" ]
5
2016-08-30T19:47:33.000Z
2017-02-04T22:50:40.000Z
test/constructors_test.exs
x4lldux/disc_union
e5b5a2d775a0536fa492c311bc297f71b0a5980d
[ "MIT" ]
2
2017-02-03T15:39:23.000Z
2018-11-21T15:30:59.000Z
defmodule DiscUnionTest.Constructors do use ExUnit.Case, async: true test "discriminated union can be constructed via `from/1` and `from!/1` from valid cases" do use ExampleDU use ExampleDUa asd_case = struct ExampleDU, %{case: Asd} rty_case = struct ExampleDU, %{case: {Rty, 1, :ok}} assert Ex...
36.991189
121
0.572943
e8711b101317414bf5b62272d83d3d6ae5269c89
2,713
exs
Elixir
test/xml_stream_writer_test.exs
bettio/xml_stream_writer
0bab7d293de5069aff37d123ff389ab7b4d38cac
[ "Apache-2.0" ]
null
null
null
test/xml_stream_writer_test.exs
bettio/xml_stream_writer
0bab7d293de5069aff37d123ff389ab7b4d38cac
[ "Apache-2.0" ]
null
null
null
test/xml_stream_writer_test.exs
bettio/xml_stream_writer
0bab7d293de5069aff37d123ff389ab7b4d38cac
[ "Apache-2.0" ]
null
null
null
defmodule XMLStreamWriterTest do use ExUnit.Case doctest XMLStreamWriter test "greets the world in XML" do {:ok, s1, state} = XMLStreamWriter.new_document() {:ok, s2, state} = XMLStreamWriter.start_document(state) {:ok, s3, state} = XMLStreamWriter.start_element(state, "test", []) {:ok, s4, state...
42.390625
98
0.651309
e8713903f00ec4b7739b92588c95c0b601e0d600
17,593
ex
Elixir
lib/erl2ex/convert/context.ex
axelson/erl2ex
382d87ab5fe4a3a3bdb03001226c9c514b889eb0
[ "BSD-3-Clause" ]
77
2015-12-28T10:54:32.000Z
2021-11-17T16:14:41.000Z
lib/erl2ex/convert/context.ex
axelson/erl2ex
382d87ab5fe4a3a3bdb03001226c9c514b889eb0
[ "BSD-3-Clause" ]
5
2016-02-13T09:36:59.000Z
2022-02-23T16:57:58.000Z
lib/erl2ex/convert/context.ex
axelson/erl2ex
382d87ab5fe4a3a3bdb03001226c9c514b889eb0
[ "BSD-3-Clause" ]
13
2016-06-04T06:49:19.000Z
2021-10-14T03:00:54.000Z
# The conversion context describes the "state" of a conversion, holding # information needed to select names, make variable scoping decisions, decide # how to call functions and macros, and so forth. It is passed down the # function tree during conversion and modified as needed. defmodule Erl2ex.Convert.Context do ...
31.92922
105
0.696811
e8714aec78a7885b9e315d3bb351c91b1391aba7
24,501
exs
Elixir
test/xema/map_test.exs
depressed-pho/xema
56de4a5d3b3f37827c70f6052f895c59feb0bb51
[ "MIT" ]
null
null
null
test/xema/map_test.exs
depressed-pho/xema
56de4a5d3b3f37827c70f6052f895c59feb0bb51
[ "MIT" ]
null
null
null
test/xema/map_test.exs
depressed-pho/xema
56de4a5d3b3f37827c70f6052f895c59feb0bb51
[ "MIT" ]
null
null
null
defmodule Xema.MapTest do use ExUnit.Case, async: true import Xema, only: [valid?: 2, validate: 2] alias Xema.ValidationError describe "empty map schema" do setup do %{schema: Xema.new(:map)} end test "validate/2 with an empty map", %{schema: schema} do assert validate(schema, %{}) =...
27.591216
97
0.466267
e87154e1792ea5047d354501c8870265abfa4202
1,100
ex
Elixir
apps/andi/lib/andi_web/endpoint.ex
calebcarroll1/smartcitiesdata
b0f03496f6c592c82ba14aebf6c5996311cf3cd0
[ "Apache-2.0" ]
26
2019-09-20T23:54:45.000Z
2020-08-20T14:23:32.000Z
apps/andi/lib/andi_web/endpoint.ex
calebcarroll1/smartcitiesdata
b0f03496f6c592c82ba14aebf6c5996311cf3cd0
[ "Apache-2.0" ]
757
2019-08-15T18:15:07.000Z
2020-09-18T20:55:31.000Z
apps/andi/lib/andi_web/endpoint.ex
calebcarroll1/smartcitiesdata
b0f03496f6c592c82ba14aebf6c5996311cf3cd0
[ "Apache-2.0" ]
9
2019-11-12T16:43:46.000Z
2020-03-25T16:23:16.000Z
defmodule AndiWeb.Endpoint do @session_options [ store: :cookie, key: "_andi_key", signing_salt: "SekoFX7T" ] use Phoenix.Endpoint, otp_app: :andi plug Plug.Static, at: "/", from: :andi, gzip: false, only: ~w(css fonts images js favicon.ico robots.txt) if code_reloading? do ...
25.581395
101
0.711818
e8716e2f3f13356ab5289409176f33216b5d0479
2,541
exs
Elixir
test/integration/player_sees_incorrect_flags_at_end_test.exs
lottetreg/minesweeper
72f85eb86b792346263ab4997a83c88873e0a04b
[ "MIT" ]
null
null
null
test/integration/player_sees_incorrect_flags_at_end_test.exs
lottetreg/minesweeper
72f85eb86b792346263ab4997a83c88873e0a04b
[ "MIT" ]
8
2019-05-20T20:53:46.000Z
2019-06-27T13:50:24.000Z
test/integration/player_sees_incorrect_flags_at_end_test.exs
lottetreg/minesweeper
72f85eb86b792346263ab4997a83c88873e0a04b
[ "MIT" ]
null
null
null
defmodule PlayerSeesIncorrectFlagsAtEnd do use ExUnit.Case import IntegrationTestHelper test "the player sees which flags were incorrect when they lose the game" do bomb_locations = [ {0, 0}, {1, 1}, {2, 2}, {3, 3}, {4, 4}, {5, 5}, {6, 6}, {7, 7}, {8, 8}...
24.2
78
0.232586
e87172829ca51661e666d9933732cb0e3b705083
1,264
ex
Elixir
lib/weirding/chain.ex
kianmeng/weirding
f912d15177db9c2148e36f1382e492c2354a1382
[ "MIT" ]
null
null
null
lib/weirding/chain.ex
kianmeng/weirding
f912d15177db9c2148e36f1382e492c2354a1382
[ "MIT" ]
null
null
null
lib/weirding/chain.ex
kianmeng/weirding
f912d15177db9c2148e36f1382e492c2354a1382
[ "MIT" ]
null
null
null
defmodule Weirding.Chain do @moduledoc false # This module provides a basic markov chain for generating text. def build(corpus) do corpus |> cleanup |> create_wordlist(%{}) end defp create_wordlist([], wordlist), do: wordlist defp create_wordlist([_], wordlist), do: wordlist defp create_word...
22.981818
77
0.570411
e871c8f05a12c684b87bebc8684b72fcc2cd2249
665
ex
Elixir
lib/ex_trends/operation/interest_by_region.ex
gjaldon/ex_trends
2240be9c28f5f13754f97e7849d01330122dbf07
[ "MIT" ]
null
null
null
lib/ex_trends/operation/interest_by_region.ex
gjaldon/ex_trends
2240be9c28f5f13754f97e7849d01330122dbf07
[ "MIT" ]
null
null
null
lib/ex_trends/operation/interest_by_region.ex
gjaldon/ex_trends
2240be9c28f5f13754f97e7849d01330122dbf07
[ "MIT" ]
null
null
null
defmodule ExTrends.Operation.InterestByRegion do defstruct http_method: :get, url: "https://trends.google.com", path: "/trends/api/widgetdata/comparedgeo", params: [], parser: &ExTrends.Operation.InterestByRegion.parser/1 @type t :: %__MODULE__{} @doc false def ...
28.913043
75
0.598496
e8722c243f905ed62b64a7399cd905031532abf7
2,798
ex
Elixir
clients/compute/lib/google_api/compute/v1/model/router_status_nat_status.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_status_nat_status.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/compute/lib/google_api/compute/v1/model/router_status_nat_status.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 ...
45.129032
294
0.71158
e87248b9573b153432d7c0f5d2b8108601535706
1,593
ex
Elixir
clients/dialogflow/lib/google_api/dialogflow/v3/model/google_cloud_dialogflow_cx_v3_environment_version_config.ex
renovate-bot/elixir-google-api
1da34cd39b670c99f067011e05ab90af93fef1f6
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/dialogflow/lib/google_api/dialogflow/v3/model/google_cloud_dialogflow_cx_v3_environment_version_config.ex
swansoffiee/elixir-google-api
9ea6d39f273fb430634788c258b3189d3613dde0
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/dialogflow/lib/google_api/dialogflow/v3/model/google_cloud_dialogflow_cx_v3_environment_version_config.ex
dazuma/elixir-google-api
6a9897168008efe07a6081d2326735fe332e522c
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
30.634615
121
0.747646
e87277c7771884ae6a190188754366d70cb45571
3,525
ex
Elixir
clients/recaptcha_enterprise/lib/google_api/recaptcha_enterprise/v1/model/google_cloud_recaptchaenterprise_v1_assessment.ex
renovate-bot/elixir-google-api
1da34cd39b670c99f067011e05ab90af93fef1f6
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/recaptcha_enterprise/lib/google_api/recaptcha_enterprise/v1/model/google_cloud_recaptchaenterprise_v1_assessment.ex
swansoffiee/elixir-google-api
9ea6d39f273fb430634788c258b3189d3613dde0
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/recaptcha_enterprise/lib/google_api/recaptcha_enterprise/v1/model/google_cloud_recaptchaenterprise_v1_assessment.ex
dazuma/elixir-google-api
6a9897168008efe07a6081d2326735fe332e522c
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
43.518519
242
0.756312
e872ad2ef30129a10312354c3d66adeec7482ae1
1,095
ex
Elixir
lib/type_check/builtin/tuple.ex
ktec/elixir-type_check
42bde40b4a67e999653c5336294dc651c98a747a
[ "MIT" ]
null
null
null
lib/type_check/builtin/tuple.ex
ktec/elixir-type_check
42bde40b4a67e999653c5336294dc651c98a747a
[ "MIT" ]
null
null
null
lib/type_check/builtin/tuple.ex
ktec/elixir-type_check
42bde40b4a67e999653c5336294dc651c98a747a
[ "MIT" ]
null
null
null
defmodule TypeCheck.Builtin.Tuple do defstruct [] @moduledoc """ Checks whether the value is any tuple. Returns a problem tuple with the reason `:no_match` otherwise. """ use TypeCheck @type! t :: %__MODULE__{} @type! problem_tuple :: {t(), :no_match, map(), any()} defimpl TypeCheck.Protocols.ToCh...
21.9
80
0.606393
e872d8df531a3442904c9f70760e9326945a3896
6,659
ex
Elixir
lib/mix/tasks/zachaeus.gen.license.ex
railsmechanic/zachaeus
4a9a6d424a1080cb54fdcaa3536d773fe7b1dc01
[ "MIT" ]
16
2020-01-12T16:29:22.000Z
2021-10-30T22:31:54.000Z
lib/mix/tasks/zachaeus.gen.license.ex
railsmechanic/zachaeus
4a9a6d424a1080cb54fdcaa3536d773fe7b1dc01
[ "MIT" ]
null
null
null
lib/mix/tasks/zachaeus.gen.license.ex
railsmechanic/zachaeus
4a9a6d424a1080cb54fdcaa3536d773fe7b1dc01
[ "MIT" ]
null
null
null
defmodule Mix.Tasks.Zachaeus.Gen.License do @shortdoc "Generates a license with a configured secret key" @moduledoc """ Generates a Zachaeus license. mix zachaeus.gen.license --identifier user_1 --plan default_plan --valid-from 2020-01-01 --valid-until 2020-12-31 Generation of a license only works when...
33.462312
140
0.629374
e872de0131d5124210726a028f41a04077ea93ee
3,127
ex
Elixir
lib/attribute_repository/search/filter.ex
tanguilp/attribute_repository
dfbe52bba681dc6ae4a2c228a522d00bc9fc0e7e
[ "Apache-2.0" ]
null
null
null
lib/attribute_repository/search/filter.ex
tanguilp/attribute_repository
dfbe52bba681dc6ae4a2c228a522d00bc9fc0e7e
[ "Apache-2.0" ]
null
null
null
lib/attribute_repository/search/filter.ex
tanguilp/attribute_repository
dfbe52bba681dc6ae4a2c228a522d00bc9fc0e7e
[ "Apache-2.0" ]
null
null
null
defmodule AttributeRepository.Search.Filter do @type t :: {:attrExp, attr_exp()} | log_exp() | value_path() | {:not, t()} @type attr_exp :: {:pr, attr_path()} | {compare_op(), attr_path(), comp_value()} @type log_exp :: {:and, t(), t()} | {:or, t(), t()} @type value_path :: {:valuePath, attr_path(), val_filt...
29.5
165
0.565718
e872f48498deebaa87559d4025ccbad1b5966c38
1,185
ex
Elixir
lib/hexpm/web/controllers/login_controller.ex
hubertpompecki/hexpm
5cd4208b07a70bf2e1490930bf5d577978793b50
[ "Apache-2.0" ]
null
null
null
lib/hexpm/web/controllers/login_controller.ex
hubertpompecki/hexpm
5cd4208b07a70bf2e1490930bf5d577978793b50
[ "Apache-2.0" ]
null
null
null
lib/hexpm/web/controllers/login_controller.ex
hubertpompecki/hexpm
5cd4208b07a70bf2e1490930bf5d577978793b50
[ "Apache-2.0" ]
null
null
null
defmodule Hexpm.Web.LoginController do use Hexpm.Web, :controller plug :nillify_params, ["return"] def show(conn, _params) do if logged_in?(conn) do path = conn.params["return"] || Routes.user_path(conn, :show, conn.assigns.current_user) redirect(conn, to: path) else render_show(conn) ...
24.183673
94
0.605063
e87308ecf434c7dd0ad8b4224a25a928aa1cc9d3
339
exs
Elixir
test/straw_hat_graphql/scalar/json_test.exs
straw-hat-team/straw_hat_graphql
1694f937ed3bfc3c97f9db98f366ebc8934cfbfb
[ "MIT" ]
4
2018-01-23T10:03:22.000Z
2019-05-14T04:18:38.000Z
test/straw_hat_graphql/scalar/json_test.exs
straw-hat-team/straw_hat_graphql
1694f937ed3bfc3c97f9db98f366ebc8934cfbfb
[ "MIT" ]
51
2018-01-19T12:46:20.000Z
2019-11-01T10:12:48.000Z
test/straw_hat_graphql/scalar/json_test.exs
straw-hat-labs/straw_hat_graphql
1694f937ed3bfc3c97f9db98f366ebc8934cfbfb
[ "MIT" ]
1
2018-01-19T12:42:28.000Z
2018-01-19T12:42:28.000Z
defmodule StrawHat.GraphQL.Scalar.JSONTest do use ExUnit.Case alias StrawHat.GraphQL.Scalar.JSON doctest JSON test "serialize/1" do assert "{\"hello\":\"world\"}" == JSON.serialize(%{hello: "world"}) end test "parse/1" do assert {:ok, %{"hello" => "world"}} == JSON.parse(%{value: "{\"hello\":\"wor...
24.214286
88
0.625369
e873137d5b8fca37488c427e4c31c25d856ed512
3,735
ex
Elixir
lib/elixir/lib/map.ex
pap/elixir
c803afe90c766663823c74397fb23ed40ec52c5b
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/map.ex
pap/elixir
c803afe90c766663823c74397fb23ed40ec52c5b
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/map.ex
pap/elixir
c803afe90c766663823c74397fb23ed40ec52c5b
[ "Apache-2.0" ]
null
null
null
defmodule Map do @moduledoc """ A `Dict` implementation that works on maps. Maps are key-value stores where keys are compared using the match operator (`===`). Maps can be created with the `%{}` special form defined in the `Kernel.SpecialForms` module. For more information about the functions in this mo...
22.636364
82
0.587149
e87314cb07620f021b634c46a91d44b830e60d40
744
exs
Elixir
test/test_helper.exs
andersonmcook/credo
cea1ac63dc378316f5e6dd050165a00e5b20ca2f
[ "MIT" ]
null
null
null
test/test_helper.exs
andersonmcook/credo
cea1ac63dc378316f5e6dd050165a00e5b20ca2f
[ "MIT" ]
null
null
null
test/test_helper.exs
andersonmcook/credo
cea1ac63dc378316f5e6dd050165a00e5b20ca2f
[ "MIT" ]
1
2021-07-05T19:04:48.000Z
2021-07-05T19:04:48.000Z
ExUnit.start() check_version = ~w(1.6.5 1.7.0) |> Enum.reduce([], fn version, acc -> # allow -dev versions so we can test before the Elixir release. if System.version() |> Version.match?("< #{version}-dev") do acc ++ [needs_elixir: version] else acc end end) exclude = Keyword.merge([...
20.666667
67
0.606183
e87317ed139a0ca921125a0684545b72a79023f5
741
ex
Elixir
lib/blog_post_api/posts/post.ex
dannielb/blog-post-api
214520beb57164375bc6596e85cbc42be67c0fb9
[ "MIT" ]
null
null
null
lib/blog_post_api/posts/post.ex
dannielb/blog-post-api
214520beb57164375bc6596e85cbc42be67c0fb9
[ "MIT" ]
null
null
null
lib/blog_post_api/posts/post.ex
dannielb/blog-post-api
214520beb57164375bc6596e85cbc42be67c0fb9
[ "MIT" ]
null
null
null
defmodule BlogPostApi.Posts.Post do @moduledoc false use BlogPostApi.Schema alias BlogPostApi.Accounts.User @forbidden_update_fields ~w(id published updated)a schema "posts" do field :content, :string field :title, :string belongs_to :user, User timestamps(inserted_at: :published, updated_a...
23.15625
79
0.712551
e873390a1196435d7fc3a4d11a22a322696903e4
9,993
exs
Elixir
test/faktory_worker/worker/heartbeat_server_test.exs
MValle21/faktory_worker
47a2224778f7ff45800bff3cb2dd3de283f9cbd9
[ "MIT" ]
13
2020-02-12T20:29:33.000Z
2021-04-17T10:18:00.000Z
test/faktory_worker/worker/heartbeat_server_test.exs
MValle21/faktory_worker
47a2224778f7ff45800bff3cb2dd3de283f9cbd9
[ "MIT" ]
51
2020-02-01T05:22:15.000Z
2021-11-03T15:46:02.000Z
test/faktory_worker/worker/heartbeat_server_test.exs
MValle21/faktory_worker
47a2224778f7ff45800bff3cb2dd3de283f9cbd9
[ "MIT" ]
4
2020-10-26T17:21:59.000Z
2021-04-17T18:05:10.000Z
defmodule FaktoryWorker.Worker.HeartbeatServerTest do use ExUnit.Case import Mox import FaktoryWorker.ConnectionHelpers import FaktoryWorker.EventHandlerTestHelpers alias FaktoryWorker.Random alias FaktoryWorker.ConnectionManager alias FaktoryWorker.Worker.HeartbeatServer setup :set_mox_global setu...
26.436508
98
0.61423
e8733b3374199ff05a10e0c4ad8963dc6dda3b4a
1,711
ex
Elixir
lib/glimesh/oauth.ex
coredreamstudios/glimesh.tv
736f4f03aa51a7fbcaaf276ffee2af470afc2fa7
[ "MIT" ]
328
2020-07-23T22:13:49.000Z
2022-03-31T21:22:28.000Z
lib/glimesh/oauth.ex
coredreamstudios/glimesh.tv
736f4f03aa51a7fbcaaf276ffee2af470afc2fa7
[ "MIT" ]
362
2020-07-23T22:38:38.000Z
2022-03-24T02:11:16.000Z
lib/glimesh/oauth.ex
coredreamstudios/glimesh.tv
736f4f03aa51a7fbcaaf276ffee2af470afc2fa7
[ "MIT" ]
72
2020-07-23T22:50:46.000Z
2022-02-02T11:59:32.000Z
defmodule Glimesh.Oauth do @moduledoc """ Helper functions for resolving oauth actions """ require Logger # # API Access Resolution # def get_api_access_from_token(%Boruta.Oauth.Token{} = token) do resolve_resource_owner(token.resource_owner, token) end def get_unprivileged_api_access_from_cl...
24.098592
81
0.634717
e8733fd62928caf74b4e4309ad9baab3194c0dad
50
exs
Elixir
test/cachex/hook_test.exs
botwerk/cachex
d37996d3be35b0d8281e347d44c024ecf2735131
[ "MIT" ]
946
2017-06-26T00:36:58.000Z
2022-03-29T19:52:31.000Z
test/cachex/hook_test.exs
botwerk/cachex
d37996d3be35b0d8281e347d44c024ecf2735131
[ "MIT" ]
152
2017-06-28T10:01:24.000Z
2022-03-24T18:46:13.000Z
test/cachex/hook_test.exs
botwerk/cachex
d37996d3be35b0d8281e347d44c024ecf2735131
[ "MIT" ]
84
2017-06-30T05:30:31.000Z
2022-03-01T20:23:16.000Z
defmodule Cachex.HookTest do use CachexCase end
12.5
28
0.82
e8734494195a41c7b6b401994e71f9096fbdb43a
1,379
ex
Elixir
lib/reddit_wrapper/api/subreddit/subreddit.ex
barons03/reddit_wrapper
a696a6f99ce0f0c6a64dcd86b76fa3d68efee6df
[ "MIT" ]
1
2018-11-26T21:40:40.000Z
2018-11-26T21:40:40.000Z
lib/reddit_wrapper/api/subreddit/subreddit.ex
barons03/reddit_wrapper
a696a6f99ce0f0c6a64dcd86b76fa3d68efee6df
[ "MIT" ]
null
null
null
lib/reddit_wrapper/api/subreddit/subreddit.ex
barons03/reddit_wrapper
a696a6f99ce0f0c6a64dcd86b76fa3d68efee6df
[ "MIT" ]
null
null
null
defmodule RedditWrapper.Subreddit do alias RedditWrapper.Http.Requester alias RedditWrapper.Structs.Subreddit alias RedditWrapper.Structs.Post alias RedditWrapper.Common.DataHandler def about(subreddit, params \\ %{}) when is_bitstring(subreddit) do Requester.request("/r/" <> subreddit <> "/about.json", ...
32.069767
73
0.700508
e8734522944f6951182d996bd716ee64af4d11ae
6,614
ex
Elixir
clients/private_ca/lib/google_api/private_ca/v1/model/certificate_authority.ex
renovate-bot/elixir-google-api
1da34cd39b670c99f067011e05ab90af93fef1f6
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/private_ca/lib/google_api/private_ca/v1/model/certificate_authority.ex
swansoffiee/elixir-google-api
9ea6d39f273fb430634788c258b3189d3613dde0
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/private_ca/lib/google_api/private_ca/v1/model/certificate_authority.ex
dazuma/elixir-google-api
6a9897168008efe07a6081d2326735fe332e522c
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
65.485149
441
0.713638
e87393dd2aa522dec94aa0099149b9a844215baa
25,159
ex
Elixir
clients/blogger/lib/google_api/blogger/v3/api/posts.ex
mocknen/elixir-google-api
dac4877b5da2694eca6a0b07b3bd0e179e5f3b70
[ "Apache-2.0" ]
null
null
null
clients/blogger/lib/google_api/blogger/v3/api/posts.ex
mocknen/elixir-google-api
dac4877b5da2694eca6a0b07b3bd0e179e5f3b70
[ "Apache-2.0" ]
null
null
null
clients/blogger/lib/google_api/blogger/v3/api/posts.ex
mocknen/elixir-google-api
dac4877b5da2694eca6a0b07b3bd0e179e5f3b70
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
43.154374
308
0.664891
e8739ba7c72da82f598453e21136e4b3c99be658
625
exs
Elixir
test/edgedb/protocol/codecs/builtin/relative_duration_test.exs
f0lio/edgedb-elixir
b285bd8037b0b951aabfa1d1733889880f8bfd66
[ "MIT" ]
30
2021-05-19T08:54:44.000Z
2022-03-11T22:52:25.000Z
test/edgedb/protocol/codecs/builtin/relative_duration_test.exs
f0lio/edgedb-elixir
b285bd8037b0b951aabfa1d1733889880f8bfd66
[ "MIT" ]
3
2021-11-17T21:26:01.000Z
2022-03-12T09:49:25.000Z
test/edgedb/protocol/codecs/builtin/relative_duration_test.exs
f0lio/edgedb-elixir
b285bd8037b0b951aabfa1d1733889880f8bfd66
[ "MIT" ]
3
2021-08-29T14:55:41.000Z
2022-03-12T01:30:35.000Z
defmodule Tests.EdgeDB.Protocol.Codecs.Builtin.RelativeDurationTest do use Tests.Support.EdgeDBCase alias EdgeDB.RelativeDuration setup :edgedb_connection test "decoding cal::relative_duration value", %{conn: conn} do assert %RelativeDuration{months: 12} = EdgeDB.query_single!(conn, "SELECT ...
27.173913
92
0.6992
e873c94ba92ddfeacf2c4c554f109293c98b073b
932
ex
Elixir
lib/satellite/request.ex
joshnuss/satellite-prototype
9cf813d8b75efab9a8118f9fecb9ac6f70bd841a
[ "MIT" ]
null
null
null
lib/satellite/request.ex
joshnuss/satellite-prototype
9cf813d8b75efab9a8118f9fecb9ac6f70bd841a
[ "MIT" ]
null
null
null
lib/satellite/request.ex
joshnuss/satellite-prototype
9cf813d8b75efab9a8118f9fecb9ac6f70bd841a
[ "MIT" ]
null
null
null
defmodule Satellite.Request do use Ecto.Schema import Ecto.Changeset @primary_key false @timestamps_opts updated_at: false schema "requests" do field :id, :string field :host, :string field :app, :string field :environment, :string field :language, :string field :client, :string f...
18.27451
40
0.572961
e873da80e5fc05c56e51c21777bbed761eed3f71
21,360
ex
Elixir
clients/compute/lib/google_api/compute/v1/api/target_tcp_proxies.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/api/target_tcp_proxies.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/compute/lib/google_api/compute/v1/api/target_tcp_proxies.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 ...
51.594203
414
0.662125
e8740d634304483039227b7c4713fd6ca61279f6
357
exs
Elixir
priv/repo/seeds.exs
TiagoDanin/Aquamarine-Monitor
432e50f0bddc6c04689a65e1dd25843f0efe2cce
[ "MIT" ]
1
2022-01-25T22:07:43.000Z
2022-01-25T22:07:43.000Z
priv/repo/seeds.exs
TiagoDanin/Aquamarine-Monitor
432e50f0bddc6c04689a65e1dd25843f0efe2cce
[ "MIT" ]
null
null
null
priv/repo/seeds.exs
TiagoDanin/Aquamarine-Monitor
432e50f0bddc6c04689a65e1dd25843f0efe2cce
[ "MIT" ]
null
null
null
# Script for populating the database. You can run it as: # # mix run priv/repo/seeds.exs # # Inside the script, you can read and write to any of your # repositories directly: # # Aquamarine.Repo.insert!(%Aquamarine.SomeSchema{}) # # We recommend using the bang functions (`insert!`, `update!` # and so on) as the...
29.75
61
0.711485
e8740ed39ef75ec15f25839dec72123af72ce7fc
2,616
ex
Elixir
lib/smart_city/registry/dataset/technical.ex
SmartColumbusOS/smart_city_registry
6e656cfd7d34443fac44f87207218dc2670e60c0
[ "Apache-2.0" ]
1
2019-07-09T15:48:32.000Z
2019-07-09T15:48:32.000Z
lib/smart_city/registry/dataset/technical.ex
SmartColumbusOS/smart_city_registry
6e656cfd7d34443fac44f87207218dc2670e60c0
[ "Apache-2.0" ]
6
2019-05-21T04:16:45.000Z
2019-12-12T21:36:01.000Z
lib/smart_city/registry/dataset/technical.ex
SmartColumbusOS/smart_city_registry
6e656cfd7d34443fac44f87207218dc2670e60c0
[ "Apache-2.0" ]
null
null
null
defmodule SmartCity.Registry.Dataset.Technical do @moduledoc """ A struct defining technical metadata on a registry event message. """ alias SmartCity.Helpers @type not_required(type) :: type | nil @type t() :: %SmartCity.Registry.Dataset.Technical{ dataName: String.t(), orgName: Strin...
30.068966
92
0.58448
e87412d80322f990aa3e4aa08e634d8381c148a3
1,397
ex
Elixir
lib/event_store/streams/stream_info.ex
davydog187/eventstore
085602a8cfae7401e6d89472a053fd52f586832f
[ "MIT" ]
576
2017-11-03T14:11:07.000Z
2022-03-29T06:18:47.000Z
lib/event_store/streams/stream_info.ex
davydog187/eventstore
085602a8cfae7401e6d89472a053fd52f586832f
[ "MIT" ]
129
2017-11-08T06:10:20.000Z
2021-09-15T16:18:14.000Z
lib/event_store/streams/stream_info.ex
davydog187/eventstore
085602a8cfae7401e6d89472a053fd52f586832f
[ "MIT" ]
118
2017-11-14T14:10:09.000Z
2022-03-28T13:13:56.000Z
defmodule EventStore.Streams.StreamInfo do alias EventStore.Streams.StreamInfo @type t :: %StreamInfo{ stream_uuid: String.t(), stream_id: non_neg_integer() | nil, stream_version: non_neg_integer(), created_at: DateTime.t(), deleted_at: DateTime.t() | nil, ...
30.369565
101
0.654975
e874155c1a0ee0a623858019fcb3438519eab1ce
5,502
ex
Elixir
lib/async_with/runner.ex
adrianomitre/async_with
1886fb27ec4cab2b592ea2ebfe667adeccb93234
[ "MIT" ]
148
2017-09-07T18:20:25.000Z
2021-09-20T17:36:37.000Z
lib/async_with/runner.ex
adrianomitre/async_with
1886fb27ec4cab2b592ea2ebfe667adeccb93234
[ "MIT" ]
65
2017-09-10T15:22:33.000Z
2022-03-23T11:58:17.000Z
lib/async_with/runner.ex
adrianomitre/async_with
1886fb27ec4cab2b592ea2ebfe667adeccb93234
[ "MIT" ]
6
2018-02-28T21:49:35.000Z
2021-09-20T17:38:20.000Z
defmodule AsyncWith.Runner do @moduledoc false import AsyncWith.Clauses import AsyncWith.Macro, only: [rename_ignored_vars: 1, var_map: 1] @doc """ Transforms the list of `clauses` into a format that the runner can work with. The runner expects each clause to be represented by a map with these fields: ...
32.946108
90
0.633951
e8743310f46082c4798f673695b241467f530bbd
1,200
ex
Elixir
lib/hammoc/search/in_memory/autocomplete.ex
hammoc-app/hammoc-elixir
00cd24e2170cc3dee65c7848868ea3d1096ac25c
[ "MIT" ]
5
2019-07-13T22:20:50.000Z
2020-07-13T05:05:43.000Z
lib/hammoc/search/in_memory/autocomplete.ex
hammoc-app/hammoc-elixir
00cd24e2170cc3dee65c7848868ea3d1096ac25c
[ "MIT" ]
33
2019-08-01T03:48:23.000Z
2021-07-28T03:29:40.000Z
lib/hammoc/search/in_memory/autocomplete.ex
hammoc-app/hammoc-elixir
00cd24e2170cc3dee65c7848868ea3d1096ac25c
[ "MIT" ]
2
2019-09-03T22:45:11.000Z
2020-01-01T23:56:58.000Z
defmodule Hammoc.Search.InMemory.Autocomplete do @moduledoc "Provides basic auto-complete." def for(enum, mapper, query, limit \\ 5) do add_autocomplete_from(query, enum, mapper, limit, [], MapSet.new()) |> MapSet.to_list() end defp add_autocomplete_from(_query, [], _mapper, _limit, [], results), do: ...
31.578947
86
0.6625
e87433ed3c697d91c289a6782bcb1c0acd8a2523
2,281
ex
Elixir
clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v2beta1/model/time_of_day.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v2beta1/model/time_of_day.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v2beta1/model/time_of_day.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...
40.732143
214
0.707584
e87442a770c24cae440b9bd8ad76e9e3f1c216c1
1,613
ex
Elixir
lib/vintage_net/wifi/access_point.ex
jjcarstens/vintage_net
221b27f4ea5ff2d43d27357eb3b0a008fe364ecc
[ "Apache-2.0" ]
null
null
null
lib/vintage_net/wifi/access_point.ex
jjcarstens/vintage_net
221b27f4ea5ff2d43d27357eb3b0a008fe364ecc
[ "Apache-2.0" ]
null
null
null
lib/vintage_net/wifi/access_point.ex
jjcarstens/vintage_net
221b27f4ea5ff2d43d27357eb3b0a008fe364ecc
[ "Apache-2.0" ]
null
null
null
defmodule VintageNet.WiFi.AccessPoint do alias VintageNet.WiFi.Utils @moduledoc """ Information about a WiFi access point * `:bssid` - a unique address for the access point * `:flags` - a list of flags describing properties on the access point * `:frequency` - the access point's frequency in MHz * `:sig...
26.442623
94
0.587105
e8744cba0ef2297d8ebcdaf0073a5c1edcebb010
805
exs
Elixir
test/test_helper.exs
h-j-k/advent20
e14d0789987347ec3061302422e008dd5be852fd
[ "Apache-2.0" ]
null
null
null
test/test_helper.exs
h-j-k/advent20
e14d0789987347ec3061302422e008dd5be852fd
[ "Apache-2.0" ]
null
null
null
test/test_helper.exs
h-j-k/advent20
e14d0789987347ec3061302422e008dd5be852fd
[ "Apache-2.0" ]
null
null
null
defmodule AdventOfCode.TestUtils do import Stream, only: [reject: 2, chunk_by: 2, map: 2, with_index: 1] defmacro test_file(opts \\ []) do empty_line = &(&1 == "") grouped = fn s -> reject(chunk_by(s, empty_line), &(Enum.all?(&1, empty_line))) end apply_if = fn (s, opt, apply) -> if Keyword.get(opts, ...
38.333333
97
0.597516
e8745093ff535dc29eb9a531fe285465a96e9957
3,789
ex
Elixir
lib/socket/handler/tells.ex
sb8244/grapevine
effaaa01294d30114090c20f9cc40b8665d834f2
[ "MIT" ]
null
null
null
lib/socket/handler/tells.ex
sb8244/grapevine
effaaa01294d30114090c20f9cc40b8665d834f2
[ "MIT" ]
null
null
null
lib/socket/handler/tells.ex
sb8244/grapevine
effaaa01294d30114090c20f9cc40b8665d834f2
[ "MIT" ]
null
null
null
defmodule Socket.Handler.Tells do @moduledoc """ Implementation for the `tells` flag """ use Socket.Web.Module alias Socket.Presence alias Socket.PubSub @doc """ Subscribe to the game's tells internal channel if the socket supports it """ def maybe_subscribe(state) do case supports_tells?(sta...
23.830189
95
0.611243