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
91b95c720ef4e99527b33de2901927213b7c5126
1,705
ex
Elixir
lib/glimesh/streams/policy.ex
Cykotiq/glimesh.tv
6b998fa0b170b04916378df7246b6c64dd9f401e
[ "MIT" ]
null
null
null
lib/glimesh/streams/policy.ex
Cykotiq/glimesh.tv
6b998fa0b170b04916378df7246b6c64dd9f401e
[ "MIT" ]
null
null
null
lib/glimesh/streams/policy.ex
Cykotiq/glimesh.tv
6b998fa0b170b04916378df7246b6c64dd9f401e
[ "MIT" ]
null
null
null
defmodule Glimesh.Streams.Policy do @moduledoc """ Glimesh Streams Policy """ @behaviour Bodyguard.Policy alias Glimesh.Accounts.User alias Glimesh.Streams.Channel def authorize(:create_channel, %User{}, _nothing), do: true # Admins def authorize(:update_channel, %User{is_admin: true}, _channel), ...
34.795918
98
0.721408
91b98556f9d38bd81c1426f6c033dfa6a4eafaa2
2,378
exs
Elixir
apps/omg_child_chain/test/omg_child_chain/release_tasks/set_fee_file_adapter_opts_test.exs
omgnetwork/omg-childchain-v1
1e2313029ece2282c22ce411edc078a17e6bba09
[ "Apache-2.0" ]
1
2020-10-06T03:07:47.000Z
2020-10-06T03:07:47.000Z
apps/omg_child_chain/test/omg_child_chain/release_tasks/set_fee_file_adapter_opts_test.exs
omgnetwork/omg-childchain-v1
1e2313029ece2282c22ce411edc078a17e6bba09
[ "Apache-2.0" ]
9
2020-09-16T15:31:17.000Z
2021-03-17T07:12:35.000Z
apps/omg_child_chain/test/omg_child_chain/release_tasks/set_fee_file_adapter_opts_test.exs
omgnetwork/omg-childchain-v1
1e2313029ece2282c22ce411edc078a17e6bba09
[ "Apache-2.0" ]
1
2020-09-30T17:17:27.000Z
2020-09-30T17:17:27.000Z
# Copyright 2019-2020 OmiseGO Pte Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
36.584615
118
0.727923
91b9c3630f4f0fb07f810c19fc3e4dcad27fb6fc
303
exs
Elixir
cards/test/cards_test.exs
lalaman/elixir-tuts
c7d25a5f3bbc5a6ebd00162af326646ddf9555f8
[ "MIT" ]
null
null
null
cards/test/cards_test.exs
lalaman/elixir-tuts
c7d25a5f3bbc5a6ebd00162af326646ddf9555f8
[ "MIT" ]
null
null
null
cards/test/cards_test.exs
lalaman/elixir-tuts
c7d25a5f3bbc5a6ebd00162af326646ddf9555f8
[ "MIT" ]
null
null
null
defmodule CardsTest do use ExUnit.Case doctest Cards test "create_deck makes 20 cards" do deck_length = length(Cards.create_deck) assert deck_length == 20 end test "shuffling a deck should randomize it" do deck = Cards.create_deck assert deck!= Cards.shuffle(deck) end end
20.2
48
0.719472
91b9ce41fb406de2d6fec882857a94e0945cddb7
2,825
ex
Elixir
lib/prima_auth0_ex/token_provider/encrypted_redis_token_cache.ex
primait/auth0_ex
15ef5d6d91d8fe00ff703a4f58e1cb32bb169a82
[ "MIT" ]
5
2021-12-01T10:50:40.000Z
2022-02-15T13:07:02.000Z
lib/prima_auth0_ex/token_provider/encrypted_redis_token_cache.ex
primait/auth0_ex
15ef5d6d91d8fe00ff703a4f58e1cb32bb169a82
[ "MIT" ]
11
2021-12-22T09:19:28.000Z
2022-03-24T06:15:04.000Z
lib/prima_auth0_ex/token_provider/encrypted_redis_token_cache.ex
primait/auth0_ex
15ef5d6d91d8fe00ff703a4f58e1cb32bb169a82
[ "MIT" ]
null
null
null
defmodule PrimaAuth0Ex.TokenProvider.EncryptedRedisTokenCache do @moduledoc """ Implementation of `PrimaAuth0Ex.TokenProvider.TokenCache` that persists encrypted copies of tokens on Redis. Encryption-related functionalities are implemented in `PrimaAuth0Ex.TokenProvider.TokenEncryptor`. """ require Logger ...
33.630952
110
0.687788
91b9e6fc9effa8787add1152cd8276f534e2ac55
1,798
exs
Elixir
test/optional_callbacks_test.exs
patrick7777776/arfficionado
8684a918f2f6c89023bd484965d0e19fa82a57ff
[ "Apache-2.0" ]
null
null
null
test/optional_callbacks_test.exs
patrick7777776/arfficionado
8684a918f2f6c89023bd484965d0e19fa82a57ff
[ "Apache-2.0" ]
null
null
null
test/optional_callbacks_test.exs
patrick7777776/arfficionado
8684a918f2f6c89023bd484965d0e19fa82a57ff
[ "Apache-2.0" ]
null
null
null
defmodule OptionalCallbacksTest do use ExUnit.Case import Arfficionado, only: [read: 2] defmodule Recorder do @behaviour Arfficionado.Handler @impl Handler def init(_), do: [] @impl Handler def line_comment(comment, state), do: {:cont, [{:line_comment, comment} | state]} @impl Handler ...
28.09375
89
0.525028
91b9ed2ebe0e2da0b4c92dfcabb207310ca8303b
5,546
ex
Elixir
clients/partners/lib/google_api/partners/v2/api/analytics.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/partners/lib/google_api/partners/v2/api/analytics.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/partners/lib/google_api/partners/v2/api/analytics.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
1
2020-10-04T10:12:44.000Z
2020-10-04T10:12:44.000Z
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
57.175258
429
0.718897
91b9f85371af962cc64320f5647718317593d531
2,847
exs
Elixir
test/stellar/base/asset_test.exs
turbo-play/elixir-stellar-sdk
ed0711d69493ed2723a1197120667a7fa2c97f9f
[ "MIT" ]
1
2019-12-19T14:12:20.000Z
2019-12-19T14:12:20.000Z
test/stellar/base/asset_test.exs
turbo-play/elixir-stellar-sdk
ed0711d69493ed2723a1197120667a7fa2c97f9f
[ "MIT" ]
null
null
null
test/stellar/base/asset_test.exs
turbo-play/elixir-stellar-sdk
ed0711d69493ed2723a1197120667a7fa2c97f9f
[ "MIT" ]
4
2019-10-09T20:58:35.000Z
2021-12-06T23:00:46.000Z
defmodule Stellar.Base.Asset.Test do use ExUnit.Case, async: true describe "asset constructor" do test "fails when there's no issuer for non XLM type asset" do assert {:error, "Issuer cannot be nil"} = Stellar.Base.Asset.new("USD", nil) end test "fails when code is invalid" do assert {:err...
33.892857
98
0.637162
91ba07c19598437c769f81160ef2f2fb951190aa
235
exs
Elixir
template/$PROJECT_NAME$/apps/$PROJECT_NAME$_web/test/$PROJECT_NAME$_web/integration/page_test.exs
fadeojo/mithril
d84ff2d42f895c27c46c0feb09b70ccbac5827ac
[ "MIT" ]
54
2018-01-24T00:22:57.000Z
2019-01-15T20:03:52.000Z
template/$PROJECT_NAME$/apps/$PROJECT_NAME$_web/test/$PROJECT_NAME$_web/integration/page_test.exs
infinitered/mithril
0bbad29f86c63d9a827dcaaf6fed78a176ab90d7
[ "MIT" ]
3
2018-02-05T18:00:39.000Z
2018-05-04T00:05:20.000Z
template/$PROJECT_NAME$/apps/$PROJECT_NAME$_web/test/$PROJECT_NAME$_web/integration/page_test.exs
fadeojo/mithril
d84ff2d42f895c27c46c0feb09b70ccbac5827ac
[ "MIT" ]
3
2019-07-12T11:16:42.000Z
2020-06-08T15:03:36.000Z
defmodule <%= @project_name_camel_case %>Web.PageTest do use <%= @project_name_camel_case %>Web.IntegrationCase test "home page loads" do navigate_to("/") assert page_source() =~ "<%= @project_name_camel_case %>" end end
29.375
61
0.702128
91ba604618ef26d06a6d2b4807bdc398cf57411d
558
exs
Elixir
alerts/priv/repo/migrations/20190602132229_create_alerts.exs
juanseph/elixir_alerts
c9e777417ff33e8ca6d766f770ae63d68d111a8a
[ "MIT" ]
1
2020-04-27T17:54:12.000Z
2020-04-27T17:54:12.000Z
alerts/priv/repo/migrations/20190602132229_create_alerts.exs
juanseph/elixir_alerts
c9e777417ff33e8ca6d766f770ae63d68d111a8a
[ "MIT" ]
null
null
null
alerts/priv/repo/migrations/20190602132229_create_alerts.exs
juanseph/elixir_alerts
c9e777417ff33e8ca6d766f770ae63d68d111a8a
[ "MIT" ]
null
null
null
defmodule Alerts.Repo.Migrations.CreateAlerts do use Ecto.Migration def change do create table(:alert) do add(:context, :varchar, null: false) add(:name, :varchar, null: false) add(:query, :text, null: false) add(:description, :text) add(:last_run, :timestamp) timestamps(...
20.666667
50
0.612903
91ba841bb38bf88ed6e5fc2cd1217f0334f52943
2,642
ex
Elixir
lib/exenv/adapter.ex
nsweeting/exenv
88a9863fd055aa4d99ab9bf416c0b35bc86eadac
[ "MIT" ]
35
2019-03-10T05:16:16.000Z
2021-12-05T00:12:55.000Z
lib/exenv/adapter.ex
nsweeting/exenv
88a9863fd055aa4d99ab9bf416c0b35bc86eadac
[ "MIT" ]
2
2019-03-08T17:01:50.000Z
2019-03-14T09:20:22.000Z
lib/exenv/adapter.ex
nsweeting/exenv
88a9863fd055aa4d99ab9bf416c0b35bc86eadac
[ "MIT" ]
null
null
null
defmodule Exenv.Adapter do @moduledoc """ Defines an Exenv adapter. An Exenv adapter is simply a module that adheres to the callbacks required. It can be as simple as: defmodule MyAdapter do use Exenv.Adapter @imple true def load(opts) do # load some system env vars ...
23.589286
80
0.613929
91bab8b325ec38b3b582d22072bb613eb2602957
1,143
exs
Elixir
config/config.exs
hongsw/ex_leaky_limiter
84733f0e3176d0cbf4bca6e35c192baea0763ee3
[ "MIT" ]
null
null
null
config/config.exs
hongsw/ex_leaky_limiter
84733f0e3176d0cbf4bca6e35c192baea0763ee3
[ "MIT" ]
null
null
null
config/config.exs
hongsw/ex_leaky_limiter
84733f0e3176d0cbf4bca6e35c192baea0763ee3
[ "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.870968
73
0.754156
91baf2b0710d0b0e472e542ab44dffd4a311b59f
1,005
exs
Elixir
test/thunder/router/path_pattern_test.exs
rastasheep/thunder
d095628329b05fb55961603d52a5999e325c6a3e
[ "MIT" ]
1
2015-07-26T13:33:45.000Z
2015-07-26T13:33:45.000Z
test/thunder/router/path_pattern_test.exs
rastasheep/thunder
d095628329b05fb55961603d52a5999e325c6a3e
[ "MIT" ]
null
null
null
test/thunder/router/path_pattern_test.exs
rastasheep/thunder
d095628329b05fb55961603d52a5999e325c6a3e
[ "MIT" ]
null
null
null
defmodule Thunder.Router.PathPatternTest do use ExUnit.Case require Thunder.Router.PathPattern, as: P test "parse /albums" do path = "/albums" assert P.parse(path) == [segment: "albums"] end test "parse /albums/:id" do path = "/albums/:id" assert P.parse(path) == [segment: "albums", bindi...
25.769231
92
0.583085
91bb2e2357167f4407a7d4bfdad05f9f11a01cb9
16,402
ex
Elixir
lib/ecto/ulid.ex
ukazap/ecto-ulid
77452235958fb51b00570f555558582cac02b8cb
[ "MIT" ]
null
null
null
lib/ecto/ulid.ex
ukazap/ecto-ulid
77452235958fb51b00570f555558582cac02b8cb
[ "MIT" ]
null
null
null
lib/ecto/ulid.ex
ukazap/ecto-ulid
77452235958fb51b00570f555558582cac02b8cb
[ "MIT" ]
null
null
null
defmodule Ecto.ULID do @moduledoc """ An Ecto type for ULID strings. """ @default_params %{variant: :b32} # replace with `use Ecto.ParameterizedType` after Ecto 3.2.0 is required @behaviour Ecto.ParameterizedType # and remove both of these functions def embed_as(_, _params), do: :self def equal?(ter...
30.150735
193
0.539995
91bb36416b1527e2825c80289a96a21f3a516bdf
29,223
ex
Elixir
lib/logger/lib/logger.ex
favetelinguis/elixir
e395b5d7491184acc9cfc9f14cd9673e423f5382
[ "Apache-2.0" ]
null
null
null
lib/logger/lib/logger.ex
favetelinguis/elixir
e395b5d7491184acc9cfc9f14cd9673e423f5382
[ "Apache-2.0" ]
null
null
null
lib/logger/lib/logger.ex
favetelinguis/elixir
e395b5d7491184acc9cfc9f14cd9673e423f5382
[ "Apache-2.0" ]
null
null
null
defmodule Logger do @moduledoc ~S""" A logger for Elixir applications. It includes many features: * Provides debug, info, warn, and error levels. * Supports multiple backends which are automatically supervised when plugged into `Logger`. * Formats and truncates messages on the client t...
33.359589
101
0.681758
91bb56e1f8feb1677a8c4e434247125618f5e744
915
exs
Elixir
test/registration_test.exs
yieldbot/datomic_gen_server
a1df454a9b78034c4ac68820dd625128799fc2c1
[ "Unlicense", "MIT" ]
23
2016-02-16T16:55:05.000Z
2021-07-23T17:06:29.000Z
test/registration_test.exs
yieldbot/datomic_gen_server
a1df454a9b78034c4ac68820dd625128799fc2c1
[ "Unlicense", "MIT" ]
1
2017-01-20T20:55:56.000Z
2017-01-20T20:55:56.000Z
test/registration_test.exs
yieldbot/datomic_gen_server
a1df454a9b78034c4ac68820dd625128799fc2c1
[ "Unlicense", "MIT" ]
6
2017-01-17T16:12:23.000Z
2020-09-19T15:30:59.000Z
defmodule RegistrationTest do use ExUnit.Case, async: false # Need long timeouts to let the JVM start. test "can register global name" do DatomicGenServer.start_link( "datomic:mem://test", true, [{:timeout, 20_000}, {:default_message_timeout, 20_000}, {:name, {:global, :foo}}] ) ...
27.727273
89
0.614208
91bb5ff092e3d7778f77bd70c0a72a82840f1dba
23
ex
Elixir
lib/dossh.ex
smcabrera/dossh
9181b9c917f28d5ea2c795313a0e861ffd44ca0a
[ "MIT" ]
null
null
null
lib/dossh.ex
smcabrera/dossh
9181b9c917f28d5ea2c795313a0e861ffd44ca0a
[ "MIT" ]
null
null
null
lib/dossh.ex
smcabrera/dossh
9181b9c917f28d5ea2c795313a0e861ffd44ca0a
[ "MIT" ]
null
null
null
defmodule Dossh do end
7.666667
18
0.826087
91bb650c1da76ae461e61d1929c52bee51e4a86b
643
exs
Elixir
src/proto_app/config/config.exs
cjimison/ethermint_prototype
5d8924e2ddc167c59cf712c2496f43976bcbad00
[ "MIT" ]
null
null
null
src/proto_app/config/config.exs
cjimison/ethermint_prototype
5d8924e2ddc167c59cf712c2496f43976bcbad00
[ "MIT" ]
null
null
null
src/proto_app/config/config.exs
cjimison/ethermint_prototype
5d8924e2ddc167c59cf712c2496f43976bcbad00
[ "MIT" ]
null
null
null
# This file is responsible for configuring your umbrella # and **all applications** and their dependencies with the # help of the Config module. # # Note that all applications in your umbrella share the # same configuration and dependencies, which is why they # all use the same configuration file. If you want different...
30.619048
60
0.720062
91bb67fd38a9cf13856ec78e5fe38dd3e734af76
5,085
ex
Elixir
lib/rabbit_mq/producer/producer_worker.ex
szTheory/rabbit_mq
14d9be5ae488bee82528f8ead279f6dabac48be5
[ "MIT" ]
null
null
null
lib/rabbit_mq/producer/producer_worker.ex
szTheory/rabbit_mq
14d9be5ae488bee82528f8ead279f6dabac48be5
[ "MIT" ]
null
null
null
lib/rabbit_mq/producer/producer_worker.ex
szTheory/rabbit_mq
14d9be5ae488bee82528f8ead279f6dabac48be5
[ "MIT" ]
null
null
null
defmodule RabbitMQ.Producer.Worker do @moduledoc """ The single Producer worker used to publish messages onto an exchange. """ alias AMQP.{Basic, Channel, Confirm} require Logger use GenServer @this_module __MODULE__ defmodule State do @moduledoc """ The internal state held in the `RabbitMQ...
29.563953
116
0.639135
91bb68f4bdc1f5ebbef99ca4dd62e6179b3e62cc
236
ex
Elixir
lib/exception/payment_processing_error.ex
Chatatata/iyzico
99f195e51b732e124bba82ad78c12d8f5ecbdf08
[ "MIT" ]
6
2017-08-22T15:27:33.000Z
2019-01-25T10:31:10.000Z
lib/exception/payment_processing_error.ex
i386-64/iyzico
99f195e51b732e124bba82ad78c12d8f5ecbdf08
[ "MIT" ]
12
2017-08-23T13:21:26.000Z
2020-03-31T21:07:23.000Z
lib/exception/payment_processing_error.ex
i386-64/iyzico
99f195e51b732e124bba82ad78c12d8f5ecbdf08
[ "MIT" ]
4
2017-09-24T15:40:08.000Z
2020-01-31T10:21:32.000Z
defmodule Iyzico.PaymentProcessingError do defexception [:code] def exception(code) do %Iyzico.PaymentProcessingError{code: code} end def message(_exception) do "Payment could not be processed successfully." end end
19.666667
50
0.754237
91bb73e71518e9bf6bc791b081ab902a0f7dc636
550
ex
Elixir
lib/cepex/http/http.ex
vinibrsl/cep.ex
f83b059f5d4c4ea343cc6395c1936ce6fbb57241
[ "MIT" ]
7
2021-05-14T02:22:18.000Z
2021-05-17T14:09:56.000Z
lib/cepex/http/http.ex
vinibrsl/cep.ex
f83b059f5d4c4ea343cc6395c1936ce6fbb57241
[ "MIT" ]
null
null
null
lib/cepex/http/http.ex
vinibrsl/cep.ex
f83b059f5d4c4ea343cc6395c1936ce6fbb57241
[ "MIT" ]
null
null
null
defmodule Cepex.HTTP do @moduledoc """ This is the behaviour to implement HTTP clients to use with Cepex. The library has a built-in implementation of hackney (check `Cepex.HTTP.Hackney`). """ @type url :: String.t() @type header :: {key :: String.t(), value :: String.t()} @doc """ Performs a GET HTTP...
32.352941
91
0.645455
91bb7b765eb68b3b03066b5ac156413e2ef2728a
3,913
ex
Elixir
apps/omg_watcher_rpc/lib/web/router.ex
omisego/elixir-omg
2c68973d8f29033d137f63a6e060f12e2a7dcd59
[ "Apache-2.0" ]
177
2018-08-24T03:51:02.000Z
2020-05-30T13:29:25.000Z
apps/omg_watcher_rpc/lib/web/router.ex
omisego/elixir-omg
2c68973d8f29033d137f63a6e060f12e2a7dcd59
[ "Apache-2.0" ]
1,042
2018-08-25T00:52:39.000Z
2020-06-01T05:15:17.000Z
apps/omg_watcher_rpc/lib/web/router.ex
omisego/elixir-omg
2c68973d8f29033d137f63a6e060f12e2a7dcd59
[ "Apache-2.0" ]
47
2018-08-24T12:06:33.000Z
2020-04-28T11:49:25.000Z
# Copyright 2019-2020 OMG Network Pte Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
37.266667
106
0.735753
91bb7fff1da8641b300388bdeea52767c2b2ba9f
5,037
ex
Elixir
clients/analytics_reporting/lib/google_api/analytics_reporting/v4/model/report_data.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/analytics_reporting/lib/google_api/analytics_reporting/v4/model/report_data.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/analytics_reporting/lib/google_api/analytics_reporting/v4/model/report_data.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...
52.46875
181
0.712924
91bb8b90659a0f3fb6cfa0a37ea7076183e70526
1,166
exs
Elixir
config/config.exs
Pliavi/NLW-4-Rocketpay
fc146eb534e8dac634d618c7779b928b6172cbb2
[ "MIT" ]
null
null
null
config/config.exs
Pliavi/NLW-4-Rocketpay
fc146eb534e8dac634d618c7779b928b6172cbb2
[ "MIT" ]
1
2021-03-05T12:39:11.000Z
2021-03-05T12:39:11.000Z
config/config.exs
Pliavi/NLW-4-Rocketpay
fc146eb534e8dac634d618c7779b928b6172cbb2
[ "MIT" ]
null
null
null
# This file is responsible for configuring your application # and its dependencies with the aid of the Mix.Config module. # # This configuration file is loaded before any dependency and # is restricted to this project. # General application configuration use Mix.Config config :rocketpay, ecto_repos: [Rocketpay.Repo...
31.513514
86
0.770154
91bbdc15212ecc84fd0194194626bae9702cbaf5
573
exs
Elixir
test/views/error_view_test.exs
jscheel42/heatbeat
0f24374546f053bc0ddad6bcc51ce2d75f2b5252
[ "MIT" ]
null
null
null
test/views/error_view_test.exs
jscheel42/heatbeat
0f24374546f053bc0ddad6bcc51ce2d75f2b5252
[ "MIT" ]
null
null
null
test/views/error_view_test.exs
jscheel42/heatbeat
0f24374546f053bc0ddad6bcc51ce2d75f2b5252
[ "MIT" ]
null
null
null
defmodule Heatbeat.ErrorViewTest do use Heatbeat.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(Heatbeat.ErrorView, "404.html", []) == "Page not found" end test "render 500.html" ...
26.045455
66
0.678883
91bc0d974f9619d077bfe4302d09f0d515f01ad4
3,416
ex
Elixir
lib/bsv/crypto/ecies.ex
0xwallet/bsv-ex
9dc966a17dfd69c65f591dcf03e69fb11f59e930
[ "Apache-2.0" ]
null
null
null
lib/bsv/crypto/ecies.ex
0xwallet/bsv-ex
9dc966a17dfd69c65f591dcf03e69fb11f59e930
[ "Apache-2.0" ]
null
null
null
lib/bsv/crypto/ecies.ex
0xwallet/bsv-ex
9dc966a17dfd69c65f591dcf03e69fb11f59e930
[ "Apache-2.0" ]
null
null
null
defmodule BSV.Crypto.ECIES do @moduledoc """ Functions for use with ECIES asymmetric encryption. Is compatible with ElectrumSV and bsv.js. Internally uses `libsecp256k1` NIF bindings. ## Examples iex> {public_key, private_key} = BSV.Crypto.ECDSA.generate_key_pair ...> ...> "hello world" ...
27.548387
110
0.661885
91bc255092a91eee8692cd697da09eba8ff4ebbc
22,362
ex
Elixir
lib/romeo/xmlns.ex
crewstad/romeo
94ebe08c9de92c21a5d10018df0512d05bc1fa7a
[ "MIT" ]
78
2015-11-17T14:24:27.000Z
2022-01-18T05:24:23.000Z
lib/romeo/xmlns.ex
crewstad/romeo
94ebe08c9de92c21a5d10018df0512d05bc1fa7a
[ "MIT" ]
38
2015-12-16T07:35:28.000Z
2021-04-06T08:52:01.000Z
lib/romeo/xmlns.ex
crewstad/romeo
94ebe08c9de92c21a5d10018df0512d05bc1fa7a
[ "MIT" ]
56
2015-11-23T17:57:52.000Z
2022-01-20T16:17:29.000Z
defmodule Romeo.XMLNS do @moduledoc """ XMPP XML Namespaces. This module provides functions for returning XML namespace strings for XMPP stanzas. """ defmacro __using__([]) do quote do import unquote __MODULE__ end end # Defined by XML. def ns_xml, do: "http://www.w3.org/XML/1998/...
25.941995
77
0.705214
91bc2d25903824bfd74bf1e2c5135f5fafb22777
1,644
exs
Elixir
test/mix/tasks/reset_event_handler_test.exs
jccf091/commanded
5d68a2b1b7a222b6f204c48d886f3d2c9670f26a
[ "MIT" ]
1
2022-02-20T10:42:07.000Z
2022-02-20T10:42:07.000Z
test/mix/tasks/reset_event_handler_test.exs
jccf091/commanded
5d68a2b1b7a222b6f204c48d886f3d2c9670f26a
[ "MIT" ]
null
null
null
test/mix/tasks/reset_event_handler_test.exs
jccf091/commanded
5d68a2b1b7a222b6f204c48d886f3d2c9670f26a
[ "MIT" ]
null
null
null
defmodule Commanded.Mix.Tasks.ResetEventHandlerTest do use ExUnit.Case alias Commanded.Event.{Handler, Mapper} alias Commanded.{EventStore, Registration} alias Commanded.ExampleDomain.BankAccount.BankAccountHandler alias Commanded.ExampleDomain.BankAccount.Events.BankAccountOpened alias Commanded.ExampleDo...
26.95082
95
0.694647
91bc401264fc186314ead28b17cf5a2e24be992d
5,618
exs
Elixir
test/changelog/kits/string_kit_test.exs
gustavoarmoa/changelog.com
e898a9979a237ae66962714821ed8633a4966f37
[ "MIT" ]
2,599
2016-10-25T15:02:53.000Z
2022-03-26T02:34:42.000Z
test/changelog/kits/string_kit_test.exs
sdrees/changelog.com
955cdcf93d74991062f19a03e34c9f083ade1705
[ "MIT" ]
253
2016-10-25T20:29:24.000Z
2022-03-29T21:52:36.000Z
test/changelog/kits/string_kit_test.exs
sdrees/changelog.com
955cdcf93d74991062f19a03e34c9f083ade1705
[ "MIT" ]
298
2016-10-25T15:18:31.000Z
2022-01-18T21:25:52.000Z
defmodule Changelog.StringKitTest do use ExUnit.Case alias Changelog.StringKit test "blank?/1" do assert StringKit.blank?(nil) assert StringKit.blank?("") assert StringKit.blank?(" ") refute StringKit.blank?("stuff") end test "is_number/1" do assert StringKit.is_number("123") as...
29.413613
114
0.629761
91bc5e1b76c142f6328d46814d06bde6cf68a5f5
1,729
exs
Elixir
test/appsignal/error_logger_handler_test.exs
taverngoal/appsignal-elixir
b7a991e14ff2482131daef0071f27b3d6b32b649
[ "MIT" ]
1
2020-08-11T08:13:25.000Z
2020-08-11T08:13:25.000Z
test/appsignal/error_logger_handler_test.exs
gjaldon/appsignal-elixir
36d872d96d4c53152e365558bcfe96a3ba689fb9
[ "MIT" ]
null
null
null
test/appsignal/error_logger_handler_test.exs
gjaldon/appsignal-elixir
36d872d96d4c53152e365558bcfe96a3ba689fb9
[ "MIT" ]
1
2020-10-08T20:22:54.000Z
2020-10-08T20:22:54.000Z
defmodule Appsignal.ErrorLoggerHandlerTest do alias Appsignal.{FakeTransaction, Transaction} import AppsignalTest.Utils use ExUnit.Case setup do Appsignal.remove_report_handler() Appsignal.ErrorLoggerHandler.add() on_exit(fn -> Appsignal.ErrorLoggerHandler.remove() Appsignal.add_report...
26.19697
100
0.65587
91bc85b347f185f88ebf96b370bca04c78fc95c1
362
exs
Elixir
priv/repo/seeds.exs
iandeherdt/phoenix-logger
598a049078a262771d77a078ac7383c0cb0d37d8
[ "MIT" ]
null
null
null
priv/repo/seeds.exs
iandeherdt/phoenix-logger
598a049078a262771d77a078ac7383c0cb0d37d8
[ "MIT" ]
null
null
null
priv/repo/seeds.exs
iandeherdt/phoenix-logger
598a049078a262771d77a078ac7383c0cb0d37d8
[ "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: # # PhoenixLogger.Repo.insert!(%PhoenixLogger.SomeModel{}) # # We recommend using the bang functions (`insert!`, `update!` # and so on) a...
30.166667
61
0.71547
91bc96b14fe6564b06037fd11a4bd14997bf051d
2,348
ex
Elixir
clients/dialogflow/lib/google_api/dialogflow/v3/model/google_cloud_dialogflow_v2beta1_knowledge_operation_metadata.ex
MMore/elixir-google-api
0574ec1439d9bbfe22d63965be1681b0f45a94c9
[ "Apache-2.0" ]
null
null
null
clients/dialogflow/lib/google_api/dialogflow/v3/model/google_cloud_dialogflow_v2beta1_knowledge_operation_metadata.ex
MMore/elixir-google-api
0574ec1439d9bbfe22d63965be1681b0f45a94c9
[ "Apache-2.0" ]
null
null
null
clients/dialogflow/lib/google_api/dialogflow/v3/model/google_cloud_dialogflow_v2beta1_knowledge_operation_metadata.ex
MMore/elixir-google-api
0574ec1439d9bbfe22d63965be1681b0f45a94c9
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
37.269841
221
0.747019
91bcdd50b8bec600f5a855c889a743ce28d27b3e
2,174
ex
Elixir
clients/machine_learning/lib/google_api/machine_learning/v1/model/google_cloud_ml_v1__measurement.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/machine_learning/lib/google_api/machine_learning/v1/model/google_cloud_ml_v1__measurement.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/machine_learning/lib/google_api/machine_learning/v1/model/google_cloud_ml_v1__measurement.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...
36.847458
200
0.736891
91bce7cd4380e72d38fb769fbdd1969600ab98fd
377
ex
Elixir
lib/inch_ex/reporter.ex
AndrewDryga/inch_ex
59997ce05b60902c9b482409b09da7697b267c17
[ "MIT" ]
4
2017-10-01T18:00:25.000Z
2022-02-23T18:26:53.000Z
lib/inch_ex/reporter.ex
AndrewDryga/inch_ex
59997ce05b60902c9b482409b09da7697b267c17
[ "MIT" ]
107
2016-08-03T18:16:51.000Z
2021-07-23T08:42:51.000Z
lib/inch_ex/reporter.ex
AndrewDryga/inch_ex
59997ce05b60902c9b482409b09da7697b267c17
[ "MIT" ]
10
2017-10-31T16:16:05.000Z
2022-02-16T10:31:04.000Z
defmodule InchEx.Reporter do def handle_success(output) do # is this really the only way to binwrite to stdout? {:ok, pid} = StringIO.open("") IO.binwrite pid, output {_, contents} = StringIO.contents(pid) StringIO.close pid IO.write contents {:ok, contents} end def handle_error(outp...
20.944444
56
0.66313
91bcfee1e4d2e8836e3f16eb8f16cb5875dfb930
1,555
ex
Elixir
lib/docker_build/plugins/elm.ex
chazsconi/k8s_deploy
fb8746f766e3de18908ab55c82f9f26494f0a112
[ "MIT" ]
null
null
null
lib/docker_build/plugins/elm.ex
chazsconi/k8s_deploy
fb8746f766e3de18908ab55c82f9f26494f0a112
[ "MIT" ]
null
null
null
lib/docker_build/plugins/elm.ex
chazsconi/k8s_deploy
fb8746f766e3de18908ab55c82f9f26494f0a112
[ "MIT" ]
null
null
null
defmodule DockerBuild.Plugins.Elm do @moduledoc """ Handles Elm assets. To use Elm you need to configure your assets pipeline to build Elm however this plugin ensures the `elm_build` and `elm-stuff` folders in the assets folders are added to .dockerignore. ## Config options * `use_elm_install: true` - ...
31.1
112
0.72926
91bd17a07e27d7e0357108bdc62394cbce96df69
4,288
exs
Elixir
test/actions/destroy_test.exs
joshprice/ash
e452c4091918a88d51063000f7dc44b2f54f5f96
[ "MIT" ]
null
null
null
test/actions/destroy_test.exs
joshprice/ash
e452c4091918a88d51063000f7dc44b2f54f5f96
[ "MIT" ]
null
null
null
test/actions/destroy_test.exs
joshprice/ash
e452c4091918a88d51063000f7dc44b2f54f5f96
[ "MIT" ]
null
null
null
defmodule Ash.Test.Actions.DestroyTest do @moduledoc false use ExUnit.Case, async: true import Ash.Changeset require Ash.Query defmodule Profile do @moduledoc false use Ash.Resource, data_layer: Ash.DataLayer.Ets ets do private?(true) end actions do read :read create ...
20.917073
89
0.609841
91bd2d54fe4a4321dbb7d111798ed90b7300e623
119
ex
Elixir
lib/situation_room/repo.ex
mojotech/situation-room
d43b0e35376ec6fe1c2d69810b4eee8cb752f286
[ "MIT" ]
9
2015-10-04T11:47:19.000Z
2019-12-09T16:02:23.000Z
lib/situation_room/repo.ex
mojotech/situation-room
d43b0e35376ec6fe1c2d69810b4eee8cb752f286
[ "MIT" ]
14
2015-07-28T04:41:57.000Z
2022-03-31T18:12:51.000Z
lib/situation_room/repo.ex
mojotech/situation-room
d43b0e35376ec6fe1c2d69810b4eee8cb752f286
[ "MIT" ]
1
2017-07-26T03:17:02.000Z
2017-07-26T03:17:02.000Z
defmodule SituationRoom.Repo do use Ecto.Repo, otp_app: :situation_room, adapter: Ecto.Adapters.Postgres end
19.833333
35
0.756303
91bd30682a508a277ce81aba5d8624a878a49d5e
106
exs
Elixir
test/is/validators/length_test.exs
bydooweedoo/is
2d6acf61b397f7297d42a83b09c1181e22cb5230
[ "MIT" ]
17
2018-06-23T11:16:17.000Z
2021-11-17T18:28:37.000Z
test/is/validators/length_test.exs
bydooweedoo/is
2d6acf61b397f7297d42a83b09c1181e22cb5230
[ "MIT" ]
null
null
null
test/is/validators/length_test.exs
bydooweedoo/is
2d6acf61b397f7297d42a83b09c1181e22cb5230
[ "MIT" ]
2
2018-10-24T20:12:54.000Z
2019-12-25T17:45:41.000Z
defmodule Is.Validators.LengthTest do use ExUnit.Case doctest Is.Validators.Length, import: true end
17.666667
44
0.792453
91bd3b828dfe447cc121c2fee014c985cae08056
783
ex
Elixir
test/support/fixtures/meetings_fixtures.ex
ashton314/rostrum2
e392190b27f7dae4cc2de3668c1f4fea5cca63c1
[ "MIT" ]
null
null
null
test/support/fixtures/meetings_fixtures.ex
ashton314/rostrum2
e392190b27f7dae4cc2de3668c1f4fea5cca63c1
[ "MIT" ]
3
2021-11-25T05:44:03.000Z
2021-11-26T06:33:53.000Z
test/support/fixtures/meetings_fixtures.ex
ashton314/rostrum2
e392190b27f7dae4cc2de3668c1f4fea5cca63c1
[ "MIT" ]
null
null
null
defmodule Rostrum.MeetingsFixtures do @moduledoc """ This module defines test helpers for creating entities via the `Rostrum.Meetings` context. """ @doc """ Generate a meeting. """ def meeting_fixture(attrs \\ %{}) do {:ok, meeting} = attrs |> Enum.into(%{ date: ~N[2021-11-24 04...
19.097561
47
0.547893
91bd9462022bf7f2e18ff6f45a404c1b2246a9a4
6,523
ex
Elixir
lib/elixir/lib/float.ex
liveforeverx/elixir
cf3cf0bd5443b59206e5733602244bc3543f0a53
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/float.ex
liveforeverx/elixir
cf3cf0bd5443b59206e5733602244bc3543f0a53
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/float.ex
liveforeverx/elixir
cf3cf0bd5443b59206e5733602244bc3543f0a53
[ "Apache-2.0" ]
null
null
null
import Kernel, except: [round: 1] defmodule Float do @moduledoc """ Functions for working with floating point numbers. """ @doc """ Parses a binary into a float. If successful, returns a tuple of the form `{float, remainder_of_binary}`; otherwise, `:error`. If a float formatted string wants to be di...
26.733607
98
0.63851
91bdf3f93c51bde669b255c8d8a064930736f130
307
ex
Elixir
lib/tashkent/repo.ex
michaelkpfeifer/tashkent
3de2c72d445cb0e03bab1720572a463e358df62f
[ "MIT" ]
null
null
null
lib/tashkent/repo.ex
michaelkpfeifer/tashkent
3de2c72d445cb0e03bab1720572a463e358df62f
[ "MIT" ]
null
null
null
lib/tashkent/repo.ex
michaelkpfeifer/tashkent
3de2c72d445cb0e03bab1720572a463e358df62f
[ "MIT" ]
null
null
null
defmodule Tashkent.Repo do use Ecto.Repo, otp_app: :tashkent, adapter: Ecto.Adapters.Postgres @doc """ Dynamically loads the repository url from the DATABASE_URL environment variable. """ def init(_, opts) do {:ok, Keyword.put(opts, :url, System.get_env("DATABASE_URL"))} end end
21.928571
66
0.693811
91bdfc2fbcfdd589b47dc8c1be68cb979db0e701
4,059
ex
Elixir
lib/teiserver/agents/battlehost_agent_server.ex
Jazcash/teiserver
fec14784901cb2965d8c1350fe84107c57451877
[ "MIT" ]
1
2021-02-23T22:34:12.000Z
2021-02-23T22:34:12.000Z
lib/teiserver/agents/battlehost_agent_server.ex
Jazcash/teiserver
fec14784901cb2965d8c1350fe84107c57451877
[ "MIT" ]
null
null
null
lib/teiserver/agents/battlehost_agent_server.ex
Jazcash/teiserver
fec14784901cb2965d8c1350fe84107c57451877
[ "MIT" ]
null
null
null
defmodule Teiserver.Agents.BattlehostAgentServer do use GenServer alias Teiserver.Agents.AgentLib alias Teiserver.Battle.Lobby require Logger @tick_period 5000 @inaction_chance 0.5 @leave_chance 0.5 @password_chance 0.5 @map_hash "1565299817" @game_hash "393009621" @game_name "Beyond All Reason ...
27.993103
106
0.621335
91be32b650f8c8bd33208531d4acf6a4707e652e
2,931
ex
Elixir
deps/makeup/lib/makeup/lexer.ex
arduino-man/fona_modern
61845bbbbc46a61a50e59a97c68709f2722078a6
[ "MIT" ]
null
null
null
deps/makeup/lib/makeup/lexer.ex
arduino-man/fona_modern
61845bbbbc46a61a50e59a97c68709f2722078a6
[ "MIT" ]
null
null
null
deps/makeup/lib/makeup/lexer.ex
arduino-man/fona_modern
61845bbbbc46a61a50e59a97c68709f2722078a6
[ "MIT" ]
null
null
null
defmodule Makeup.Lexer do @moduledoc """ A lexer turns raw source code into a list of tokens. """ alias Makeup.Lexer.Types, as: T alias Makeup.Lexer.Postprocess @doc """ Parses the smallest number of tokens that make sense. It's a `parsec`. """ @callback root_element(String.t) :: T.parse...
30.216495
86
0.591948
91be66fea57f03bef90c714cc2391babec49dd55
5,423
exs
Elixir
api/deps/phoenix/priv/templates/phx.gen.live/live_test.exs
makao95/scrumpoker
de235a049a360612cde23ae5992375cb01a7feba
[ "MIT" ]
2
2020-05-06T14:51:56.000Z
2020-05-06T14:52:21.000Z
api/deps/phoenix/priv/templates/phx.gen.live/live_test.exs
makao95/scrumpoker
de235a049a360612cde23ae5992375cb01a7feba
[ "MIT" ]
3
2021-06-20T14:51:14.000Z
2021-06-25T00:56:11.000Z
deps/phoenix/priv/templates/phx.gen.live/live_test.exs
carlosviana/blog
1dcf58c3ca40bc3a7105d75de6f51954eb44bca8
[ "MIT" ]
1
2020-05-16T22:44:14.000Z
2020-05-16T22:44:14.000Z
defmodule <%= inspect context.web_module %>.<%= inspect Module.concat(schema.web_namespace, schema.alias) %>LiveTest do use <%= inspect context.web_module %>.ConnCase import Phoenix.LiveViewTest alias <%= inspect context.module %> @create_attrs <%= inspect schema.params.create %> @update_attrs <%= inspect ...
46.350427
124
0.60059
91be8134c4ed34564d313a8aa07cdb500c295842
743
exs
Elixir
otp-pingpong/mix.exs
nonis3/otp-exercises
a0b9714ab35b074a6511694bbe1669d29de23334
[ "MIT" ]
null
null
null
otp-pingpong/mix.exs
nonis3/otp-exercises
a0b9714ab35b074a6511694bbe1669d29de23334
[ "MIT" ]
null
null
null
otp-pingpong/mix.exs
nonis3/otp-exercises
a0b9714ab35b074a6511694bbe1669d29de23334
[ "MIT" ]
null
null
null
defmodule Pingpong.Mixfile do use Mix.Project def project do [app: :pingpong, version: "0.1.0", elixir: "~> 1.4", build_embedded: Mix.env == :prod, start_permanent: Mix.env == :prod, deps: deps()] end # Configuration for the OTP application # # Type "mix help compile.app" for ...
21.852941
79
0.625841
91be92ce1356de2fdce5376bf6f6205ab13a6527
90
exs
Elixir
test/support_pairs_web/views/page_view_test.exs
SonofNun15/support-pairs
6001b04a42f5fa9be02a00dad5cdc0fd76859f9a
[ "MIT" ]
null
null
null
test/support_pairs_web/views/page_view_test.exs
SonofNun15/support-pairs
6001b04a42f5fa9be02a00dad5cdc0fd76859f9a
[ "MIT" ]
null
null
null
test/support_pairs_web/views/page_view_test.exs
SonofNun15/support-pairs
6001b04a42f5fa9be02a00dad5cdc0fd76859f9a
[ "MIT" ]
null
null
null
defmodule SupportPairsWeb.PageViewTest do use SupportPairsWeb.ConnCase, async: true end
22.5
43
0.844444
91be9a56617e1a9ee1f143cb69967284ecf11003
1,335
ex
Elixir
lib/bitcoin/common.ex
rosettacash/book
2937c90e2c3595984e6f5eee91eb454f03b82ef0
[ "Apache-2.0" ]
2
2019-08-12T04:53:57.000Z
2019-09-03T03:47:33.000Z
lib/bitcoin/common.ex
rosettacash/book
2937c90e2c3595984e6f5eee91eb454f03b82ef0
[ "Apache-2.0" ]
null
null
null
lib/bitcoin/common.ex
rosettacash/book
2937c90e2c3595984e6f5eee91eb454f03b82ef0
[ "Apache-2.0" ]
null
null
null
defmodule Bitcoin.Common do # We do everything with __using__ macro so that we can use constants later in code # as something that is known at compilation time (e.g. in guards) defmacro __using__(_opts) do quote do use Bitcoin.Const ## CONFIGURABLE MODULES @modules [ # Addrs manag...
39.264706
104
0.669663
91beb750348e24b3c93addd54d268b7c666b814e
10,597
ex
Elixir
apps/evm/lib/evm/operation/logging.ex
wolflee/mana
db66dac85addfaad98d40da5bd4082b3a0198bb1
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
152
2018-10-27T04:52:03.000Z
2022-03-26T10:34:00.000Z
apps/evm/lib/evm/operation/logging.ex
wolflee/mana
db66dac85addfaad98d40da5bd4082b3a0198bb1
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
270
2018-04-14T07:34:57.000Z
2018-10-25T18:10:45.000Z
apps/evm/lib/evm/operation/logging.ex
wolflee/mana
db66dac85addfaad98d40da5bd4082b3a0198bb1
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
25
2018-10-27T12:15:13.000Z
2022-01-25T20:31:14.000Z
defmodule EVM.Operation.Logging do alias EVM.{MachineState, Memory, Operation, SubState} @doc """ Append log record with no topics. ## Examples iex> env = %EVM.ExecEnv{ ...> account_repo: %EVM.Mock.MockAccountRepo{}, ...> address: 87579061662017136990230301793909925042452127430, ......
40.601533
177
0.529395
91bee50c7797e9c3fbd4768c016fa279a720627a
2,892
ex
Elixir
lib/tentacat/issues/issues.ex
cetinajero/tentacat
486cebe6134033f87dd3ab9106b72765baf22581
[ "MIT" ]
null
null
null
lib/tentacat/issues/issues.ex
cetinajero/tentacat
486cebe6134033f87dd3ab9106b72765baf22581
[ "MIT" ]
null
null
null
lib/tentacat/issues/issues.ex
cetinajero/tentacat
486cebe6134033f87dd3ab9106b72765baf22581
[ "MIT" ]
null
null
null
defmodule Tentacat.Issues do import Tentacat alias Tentacat.Client @doc """ List issues ## Example Tentacat.Issues.list "elixir-lang", "elixir" Tentacat.Issues.list client, "elixir-lang", "elixir" More info at: https://developer.github.com/v3/issues/#list-issues """ @spec list(Client.t()...
29.814433
104
0.629322
91beeb908d269a43c94f5520e9185cfcb620b4d3
1,135
exs
Elixir
config/config.exs
xiongxin/plug_samples
290037cc60da1b54ccbb81d26b4ae9ac9d3bd52e
[ "MIT" ]
null
null
null
config/config.exs
xiongxin/plug_samples
290037cc60da1b54ccbb81d26b4ae9ac9d3bd52e
[ "MIT" ]
null
null
null
config/config.exs
xiongxin/plug_samples
290037cc60da1b54ccbb81d26b4ae9ac9d3bd52e
[ "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.612903
73
0.752423
91bef551c1032ef8bda2d358647116f560292e23
1,816
ex
Elixir
lib/pub_sub_example/client.ex
kevindwells/broadway_cloud_pub_sub_example
65109ac6f710527ee7ddf8e924f0f1c9c517abc3
[ "Apache-2.0" ]
2
2020-11-16T20:41:05.000Z
2021-02-24T14:09:53.000Z
lib/pub_sub_example/client.ex
kevindwells/broadway_cloud_pub_sub_example
65109ac6f710527ee7ddf8e924f0f1c9c517abc3
[ "Apache-2.0" ]
null
null
null
lib/pub_sub_example/client.ex
kevindwells/broadway_cloud_pub_sub_example
65109ac6f710527ee7ddf8e924f0f1c9c517abc3
[ "Apache-2.0" ]
null
null
null
defmodule PubSubExample.Client do @moduledoc """ Minimal implementation of the Pub/Sub REST API v1. This module exists to simplify bootstrapping the example environment. """ import GoogleApi.PubSub.V1.Api.Projects import PubSubExample, only: [project_id: 0] @doc """ Creates a PubSub topic. """ def ...
22.987342
81
0.650881
91bf0334b0b377f74e8ef9bbcd487a6fd96253b4
86
exs
Elixir
test/example_app_web/views/page_view_test.exs
elixirasturias/example-app
d68d3c141446cf81a9181198b22d51a41b26ce71
[ "MIT" ]
3
2018-05-31T13:06:48.000Z
2020-01-14T03:29:30.000Z
test/example_app_web/views/page_view_test.exs
elixirasturias/example-app
d68d3c141446cf81a9181198b22d51a41b26ce71
[ "MIT" ]
null
null
null
test/example_app_web/views/page_view_test.exs
elixirasturias/example-app
d68d3c141446cf81a9181198b22d51a41b26ce71
[ "MIT" ]
null
null
null
defmodule ExampleAppWeb.PageViewTest do use ExampleAppWeb.ConnCase, async: true end
21.5
41
0.837209
91bf0dd5ef56bfbd1e14563791862344be02cee1
1,401
ex
Elixir
priv/perf/apps/load_test/lib/ethereum/nonce_tracker.ex
boolafish/elixir-omg
46b568404972f6e4b4da3195d42d4fb622edb934
[ "Apache-2.0" ]
null
null
null
priv/perf/apps/load_test/lib/ethereum/nonce_tracker.ex
boolafish/elixir-omg
46b568404972f6e4b4da3195d42d4fb622edb934
[ "Apache-2.0" ]
null
null
null
priv/perf/apps/load_test/lib/ethereum/nonce_tracker.ex
boolafish/elixir-omg
46b568404972f6e4b4da3195d42d4fb622edb934
[ "Apache-2.0" ]
null
null
null
# Copyright 2019-2020 OmiseGO Pte Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
32.581395
85
0.708066
91bf28a37b26acf99cbeca648188db88ae925b00
1,303
ex
Elixir
lib/chameleon.ex
Cameron-Kurth/chameleon
4b66b2a591b84dbb32a4b2a4ca77c513b146ef88
[ "Apache-2.0" ]
20
2018-05-21T17:06:06.000Z
2022-02-02T18:25:44.000Z
lib/chameleon.ex
Cameron-Kurth/chameleon
4b66b2a591b84dbb32a4b2a4ca77c513b146ef88
[ "Apache-2.0" ]
12
2018-05-24T19:04:11.000Z
2022-01-24T22:28:30.000Z
lib/chameleon.ex
Cameron-Kurth/chameleon
4b66b2a591b84dbb32a4b2a4ca77c513b146ef88
[ "Apache-2.0" ]
13
2018-05-20T10:39:59.000Z
2022-01-23T01:04:12.000Z
defmodule Chameleon do @external_resource "README.md" @moduledoc File.read!("README.md") |> String.split(~r/<!-- MDOC !-->/) |> Enum.fetch!(1) @doc """ Handles conversion from the input color struct to the requested output color model. ## Examples iex> input = Chameleon.Hex....
28.955556
85
0.651573
91bf32ca0c872563ff0fe71535adcfe1cf9bab61
1,795
ex
Elixir
clients/os_config/lib/google_api/os_config/v1/model/os_policy_assignment_report_os_policy_compliance_os_policy_resource_compliance_exec_resource_output.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/os_config/lib/google_api/os_config/v1/model/os_policy_assignment_report_os_policy_compliance_os_policy_resource_compliance_exec_resource_output.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/os_config/lib/google_api/os_config/v1/model/os_policy_assignment_report_os_policy_compliance_os_policy_resource_compliance_exec_resource_output.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...
33.240741
156
0.769916
91bf3606fb2e6235ec4d074bdb30acf496e85b13
1,181
ex
Elixir
test/support/gen/plug/test_sign_bearer_auth.ex
feng19/oasis
36e81db1413f24f153f960b1ee3706858ec1f952
[ "MIT" ]
11
2021-02-24T09:21:11.000Z
2021-12-26T03:51:25.000Z
test/support/gen/plug/test_sign_bearer_auth.ex
feng19/oasis
36e81db1413f24f153f960b1ee3706858ec1f952
[ "MIT" ]
5
2021-03-18T14:15:37.000Z
2022-03-02T09:53:42.000Z
test/support/gen/plug/test_sign_bearer_auth.ex
feng19/oasis
36e81db1413f24f153f960b1ee3706858ec1f952
[ "MIT" ]
6
2021-02-24T09:21:01.000Z
2021-11-16T08:45:03.000Z
defmodule Oasis.Gen.Plug.TestSignBearerAuth do use Oasis.Controller alias Oasis.BadRequestError @match [ username: "a", password: "123", id: "abcdef" ] def init(opts), do: opts def call(conn, _opts) do valid_username? = Plug.Crypto.secure_compare(@match[:username], Map.get(conn.body_pa...
31.078947
153
0.670618
91bf3c6ef8fd38b0c4052a089df5422ef9e66acb
882
ex
Elixir
clients/content/lib/google_api/content/v21/metadata.ex
mopp/elixir-google-api
d496227d17600bccbdf8f6be9ad1b7e7219d7ec6
[ "Apache-2.0" ]
null
null
null
clients/content/lib/google_api/content/v21/metadata.ex
mopp/elixir-google-api
d496227d17600bccbdf8f6be9ad1b7e7219d7ec6
[ "Apache-2.0" ]
null
null
null
clients/content/lib/google_api/content/v21/metadata.ex
mopp/elixir-google-api
d496227d17600bccbdf8f6be9ad1b7e7219d7ec6
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
32.666667
74
0.758503
91bf53673c2e056dbc9c6db06c5e73a3cff299f7
583
exs
Elixir
test/views/error_view_test.exs
bhelx/AndroidTracker
f628701e5680874cf67e2d4cf8ed0ad1599b3308
[ "MIT" ]
4
2016-05-02T11:40:19.000Z
2019-02-26T20:31:18.000Z
test/views/error_view_test.exs
bhelx/AndroidTracker
f628701e5680874cf67e2d4cf8ed0ad1599b3308
[ "MIT" ]
null
null
null
test/views/error_view_test.exs
bhelx/AndroidTracker
f628701e5680874cf67e2d4cf8ed0ad1599b3308
[ "MIT" ]
null
null
null
defmodule BhelxTrack.ErrorViewTest do use BhelxTrack.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(BhelxTrack.ErrorView, "404.html", []) == "Page not found" end test "render 500....
26.5
68
0.684391
91bf5619971b2d8b57a1d7648edeb60df7adcf9c
2,782
ex
Elixir
lib/militerm/components/flags.ex
jgsmith/militerm
c4252d0a93f5620b90750ac2b61baf282e9ef7eb
[ "Apache-2.0" ]
6
2017-06-16T10:26:35.000Z
2021-04-07T15:01:00.000Z
lib/militerm/components/flags.ex
jgsmith/militerm
c4252d0a93f5620b90750ac2b61baf282e9ef7eb
[ "Apache-2.0" ]
2
2020-04-14T02:17:46.000Z
2021-03-10T11:09:05.000Z
lib/militerm/components/flags.ex
jgsmith/militerm
c4252d0a93f5620b90750ac2b61baf282e9ef7eb
[ "Apache-2.0" ]
null
null
null
defmodule Militerm.Components.Flags do use Militerm.ECS.EctoComponent, default: MapSet.new(), schema: Militerm.Data.Flags @moduledoc """ Ephemeral flags are used during run-time and aren't appropriate for saving across restarts. These are useful to coordinate command execution. """ def write_data(map, dat...
26.245283
98
0.596693
91bf592ce8798f4fac62767b9988abc5e4bddb46
2,048
ex
Elixir
clients/genomics/lib/google_api/genomics/v1/model/delayed_event.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/genomics/lib/google_api/genomics/v1/model/delayed_event.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/genomics/lib/google_api/genomics/v1/model/delayed_event.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 ...
36.571429
131
0.724121
91bf859be08531ee069066e3db57d7c7d477ea41
29,049
exs
Elixir
test/h2_worker_test.exs
Switch168/sparrow
fbf16b0ce2f648791dd2654a16e42fcf7152be7e
[ "Apache-2.0" ]
20
2019-01-15T10:13:16.000Z
2021-12-30T09:39:30.000Z
test/h2_worker_test.exs
Switch168/sparrow
fbf16b0ce2f648791dd2654a16e42fcf7152be7e
[ "Apache-2.0" ]
45
2018-10-02T10:14:57.000Z
2021-04-30T21:57:28.000Z
test/h2_worker_test.exs
Switch168/sparrow
fbf16b0ce2f648791dd2654a16e42fcf7152be7e
[ "Apache-2.0" ]
9
2019-05-08T17:25:56.000Z
2022-03-06T10:16:41.000Z
defmodule Sparrow.H2WorkerTest do alias Helpers.SetupHelper, as: Tools use ExUnit.Case use Quixir use AssertEventually require Logger import Mock import Mox setup :set_mox_global setup :verify_on_exit! alias Sparrow.H2ClientAdapter.Chatterbox, as: H2Adapter alias Sparrow.H2Worker.Config alias ...
31.269107
100
0.534511
91bf9b8e4830c0a572e00f12b5c6b1b648da08f7
1,348
exs
Elixir
test/lib/mix/tasks/apartmentex.gen.migration_test.exs
jasonalmaturner/apartmentex
ccfe696e201149f7755c14ce87366db6ba3bcef7
[ "MIT" ]
194
2015-10-06T17:06:59.000Z
2022-02-02T01:59:01.000Z
test/lib/mix/tasks/apartmentex.gen.migration_test.exs
jasonalmaturner/apartmentex
ccfe696e201149f7755c14ce87366db6ba3bcef7
[ "MIT" ]
43
2015-12-18T11:11:14.000Z
2018-10-06T01:37:17.000Z
test/lib/mix/tasks/apartmentex.gen.migration_test.exs
jasonalmaturner/apartmentex
ccfe696e201149f7755c14ce87366db6ba3bcef7
[ "MIT" ]
38
2015-12-06T19:12:39.000Z
2021-08-04T16:32:43.000Z
defmodule Mix.Tasks.Apartmentex.Gen.MigrationTest do use ExUnit.Case, async: true import Support.FileHelpers import Mix.Tasks.Apartmentex.Gen.Migration, only: [run: 1] tmp_path = Path.join(tmp_path(), inspect(Apartmentex.Gen.Migration)) @migrations_path Path.join(tmp_path, "tenant_migrations") defmodule ...
29.304348
109
0.688427
91bfb36d62c261712f98ced0e017704a865257cb
2,949
ex
Elixir
apps/booklist/lib/booklist_web/controllers/rating_controller.ex
allen-garvey/phoenix-umbrella
1d444bbd62a5e7b5f51d317ce2be71ee994125d5
[ "MIT" ]
4
2019-10-04T16:11:15.000Z
2021-08-18T21:00:13.000Z
apps/booklist/lib/booklist_web/controllers/rating_controller.ex
allen-garvey/phoenix-umbrella
1d444bbd62a5e7b5f51d317ce2be71ee994125d5
[ "MIT" ]
5
2020-03-16T23:52:25.000Z
2021-09-03T16:52:17.000Z
apps/booklist/lib/booklist_web/controllers/rating_controller.ex
allen-garvey/phoenix-umbrella
1d444bbd62a5e7b5f51d317ce2be71ee994125d5
[ "MIT" ]
null
null
null
defmodule BooklistWeb.RatingController do use BooklistWeb, :controller alias Booklist.Admin alias Booklist.Admin.Rating def related_fields() do [ books: Admin.list_books() |> BooklistWeb.BookView.map_for_form, ] end def index(conn, %{"sort" => "score"}) do ratings = Admin.list_ratings_b...
32.766667
134
0.660224
91bfe96be0c58efbf76c851e79aa24c9c217492f
1,447
ex
Elixir
lib/tasks/scaffold.ex
PavelVesnin/phx_scaffold
2cee102cae110f60a7527d8068fc296a5d5e5f69
[ "MIT" ]
null
null
null
lib/tasks/scaffold.ex
PavelVesnin/phx_scaffold
2cee102cae110f60a7527d8068fc296a5d5e5f69
[ "MIT" ]
null
null
null
lib/tasks/scaffold.ex
PavelVesnin/phx_scaffold
2cee102cae110f60a7527d8068fc296a5d5e5f69
[ "MIT" ]
null
null
null
defmodule Mix.Tasks.Scaffold do use Mix.Task @recursive true @moduledoc """ Scaffold Phoenix source files using phx.gen tasks from YAML configuration file. """ @doc false def run(_args) do Application.start(:yamerl) :yamerl_app.set_param(:node_mods, [:yamerl_node_erlang_atom]) yamerl_parse_o...
26.309091
116
0.675881
91bfecf6cd0076fa6436c2506e9a7e9cc35239f0
3,493
ex
Elixir
deps/mazurka/lib/mazurka/resource/affordance.ex
conorfoley/dota_hero_combos
d75a3f0673fc1f1d0845c9d5c692c0605d3b445d
[ "MIT" ]
null
null
null
deps/mazurka/lib/mazurka/resource/affordance.ex
conorfoley/dota_hero_combos
d75a3f0673fc1f1d0845c9d5c692c0605d3b445d
[ "MIT" ]
null
null
null
deps/mazurka/lib/mazurka/resource/affordance.ex
conorfoley/dota_hero_combos
d75a3f0673fc1f1d0845c9d5c692c0605d3b445d
[ "MIT" ]
null
null
null
defmodule Mazurka.Resource.Affordance do @moduledoc false alias Mazurka.Resource.Utils defmacro __using__(_) do quote do @doc """ Create an affordance block mediatype #{inspect(__MODULE__)} do affordance do # affordance goes here end end...
37.55914
143
0.565417
91bff941d4c259cc700fa7afee50862f3baee396
1,572
ex
Elixir
clients/recommendation_engine/lib/google_api/recommendation_engine/v1beta1/model/google_protobuf_empty.ex
yoshi-code-bot/elixir-google-api
cdb6032f01fac5ab704803113c39f2207e9e019d
[ "Apache-2.0" ]
null
null
null
clients/recommendation_engine/lib/google_api/recommendation_engine/v1beta1/model/google_protobuf_empty.ex
yoshi-code-bot/elixir-google-api
cdb6032f01fac5ab704803113c39f2207e9e019d
[ "Apache-2.0" ]
null
null
null
clients/recommendation_engine/lib/google_api/recommendation_engine/v1beta1/model/google_protobuf_empty.ex
yoshi-code-bot/elixir-google-api
cdb6032f01fac5ab704803113c39f2207e9e019d
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
37.428571
282
0.775445
91c010b8dbc5fa879347504288997111ad6573ff
1,833
ex
Elixir
clients/sas_portal/lib/google_api/sas_portal/v1alpha1/model/sas_portal_update_signed_device_request.ex
mcrumm/elixir-google-api
544f22797cec52b3a23dfb6e39117f0018448610
[ "Apache-2.0" ]
null
null
null
clients/sas_portal/lib/google_api/sas_portal/v1alpha1/model/sas_portal_update_signed_device_request.ex
mcrumm/elixir-google-api
544f22797cec52b3a23dfb6e39117f0018448610
[ "Apache-2.0" ]
null
null
null
clients/sas_portal/lib/google_api/sas_portal/v1alpha1/model/sas_portal_update_signed_device_request.ex
mcrumm/elixir-google-api
544f22797cec52b3a23dfb6e39117f0018448610
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
36.66
203
0.747954
91c063adcd3408a7767746df708512ad28c32801
2,345
ex
Elixir
clients/monitoring/lib/google_api/monitoring/v3/model/monitored_resource_metadata.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/monitoring/lib/google_api/monitoring/v3/model/monitored_resource_metadata.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/monitoring/lib/google_api/monitoring/v3/model/monitored_resource_metadata.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
43.425926
359
0.736887
91c063bc223e0d0acbf87f133e7bbadd02e2c696
1,057
ex
Elixir
test/fixtures/mocks/test_world_tweann/test_world_tweann.ex
upstarter/automata
c97badb2ea4ff7fef3bb35fe3311ae80d26f576a
[ "Apache-2.0" ]
150
2020-02-04T15:10:52.000Z
2022-02-19T15:33:17.000Z
test/fixtures/mocks/test_world_tweann/test_world_tweann.ex
upstarter/automata
c97badb2ea4ff7fef3bb35fe3311ae80d26f576a
[ "Apache-2.0" ]
31
2020-02-09T01:37:23.000Z
2020-05-21T01:50:14.000Z
test/fixtures/mocks/test_world_tweann/test_world_tweann.ex
upstarter/automata
c97badb2ea4ff7fef3bb35fe3311ae80d26f576a
[ "Apache-2.0" ]
8
2020-02-06T04:42:20.000Z
2022-01-21T00:21:20.000Z
defmodule TestWorldTweann do @moduledoc """ Used for experimentation and QA testing until testing strategy devised. """ use Automata.World, # highest level meta representations. Ontological working memory can be used # to describe meta-state & relations in the world in terms of perspectives, # const...
48.045455
80
0.74456
91c07c7de70a1f8279d9651b85adf42440bef681
7,242
exs
Elixir
test/test_helper.exs
fishcakez/elixir-mux
8be71643a79d8eddd93b78b9c74fd14cac436a21
[ "Apache-2.0" ]
2
2017-07-26T07:28:33.000Z
2017-08-08T16:26:05.000Z
test/test_helper.exs
fishcakez/elixir-mux
8be71643a79d8eddd93b78b9c74fd14cac436a21
[ "Apache-2.0" ]
null
null
null
test/test_helper.exs
fishcakez/elixir-mux
8be71643a79d8eddd93b78b9c74fd14cac436a21
[ "Apache-2.0" ]
1
2021-03-13T23:02:29.000Z
2021-03-13T23:02:29.000Z
defmodule MuxProxy do @behaviour Mux.Connection def commands(pid, commands), do: send(pid, {:commands, commands}) def spawn_link(socket, opts) do pid = :proc_lib.spawn_link(__MODULE__, :init_it, [self(), opts]) :ok = :gen_tcp.controlling_process(socket, pid) send(pid, {self(), socket}) pid ...
21.945455
80
0.617233
91c0961c3df0b8c34603f5e5cb0df381f1ab6a01
210
ex
Elixir
apps/montreal_elixir_web/lib/montreal_elixir_web/views/page_view.ex
montrealelixir/website
251e3869bfeb441c8307309cee7abe0c3ebe8fef
[ "MIT" ]
13
2017-05-09T15:15:19.000Z
2020-12-17T08:16:59.000Z
apps/montreal_elixir_web/lib/montreal_elixir_web/views/page_view.ex
montrealelixir/website
251e3869bfeb441c8307309cee7abe0c3ebe8fef
[ "MIT" ]
65
2017-05-29T12:59:12.000Z
2022-02-20T16:02:15.000Z
apps/montreal_elixir_web/lib/montreal_elixir_web/views/page_view.ex
montrealelixir/website
251e3869bfeb441c8307309cee7abe0c3ebe8fef
[ "MIT" ]
13
2017-05-27T16:17:44.000Z
2020-10-01T05:50:57.000Z
defmodule MontrealElixirWeb.PageView do use MontrealElixirWeb, :view import MontrealElixirWeb.DateTimeHelpers defp human_date(date_time) do Timex.format!(date_time, "{D} {Mshort} {YYYY}") end end
21
51
0.761905
91c0a33d96bcde6a272d4cff74e9933d3dc86132
3,708
ex
Elixir
lib/raml/v1/root.ex
zachdaniel/ramoulade
11fa7745b595c199d708eb15c46526bc7a249b37
[ "MIT" ]
1
2018-02-21T23:45:02.000Z
2018-02-21T23:45:02.000Z
lib/raml/v1/root.ex
zachdaniel/ramoulade
11fa7745b595c199d708eb15c46526bc7a249b37
[ "MIT" ]
null
null
null
lib/raml/v1/root.ex
zachdaniel/ramoulade
11fa7745b595c199d708eb15c46526bc7a249b37
[ "MIT" ]
null
null
null
defmodule Ramoulade.Raml.V1.Root do defstruct [ title: nil, media_type: [], description: nil, version: nil, base_uri: nil, protocols: [], media_type: [], documentation: nil, schemas: [], types: %{}, traits: [], resource_types: [], annotation_types: [], annotatio...
26.869565
127
0.64671
91c0a7f2aee89a225545a3fa0131ff05d3404420
2,019
ex
Elixir
elixir/lib/homework/merchants.ex
sirryanscott/web-homework
f705ea05a76f68b759a486595351313289ac6e85
[ "MIT" ]
null
null
null
elixir/lib/homework/merchants.ex
sirryanscott/web-homework
f705ea05a76f68b759a486595351313289ac6e85
[ "MIT" ]
null
null
null
elixir/lib/homework/merchants.ex
sirryanscott/web-homework
f705ea05a76f68b759a486595351313289ac6e85
[ "MIT" ]
null
null
null
defmodule Homework.Merchants do @moduledoc """ The Merchants context. """ import Ecto.Query, warn: false alias Homework.Repo alias Homework.Merchants.Merchant @doc """ Returns the list of merchants. ## Examples iex> list_merchants([]) [%Merchant{}, ...] """ def list_merchants(_ar...
17.867257
63
0.611194
91c0b1981085a2977f7be59c22a5941842c6557b
88
ex
Elixir
elixir/dsl/lib/my_test.ex
drichardson/examples
d8b285db4ad1cfd9a92091deab2eb385748f97c8
[ "Unlicense" ]
33
2015-04-21T20:10:42.000Z
2021-09-28T05:54:37.000Z
elixir/dsl/lib/my_test.ex
drichardson/examples
d8b285db4ad1cfd9a92091deab2eb385748f97c8
[ "Unlicense" ]
1
2020-03-15T18:54:19.000Z
2020-03-15T18:54:19.000Z
elixir/dsl/lib/my_test.ex
drichardson/examples
d8b285db4ad1cfd9a92091deab2eb385748f97c8
[ "Unlicense" ]
19
2015-01-09T13:39:06.000Z
2021-09-15T05:39:33.000Z
defmodule MyTest do use TestCase test "hello" do "hello" = "world" end end
8.8
21
0.625
91c0e122b5a543f1e57df698939e757524ebbe94
2,713
ex
Elixir
elixir/lib/homework/users.ex
c-amer/web-homework
0f086762ce0248b0a78de4c876cd69fc91311ed8
[ "MIT" ]
null
null
null
elixir/lib/homework/users.ex
c-amer/web-homework
0f086762ce0248b0a78de4c876cd69fc91311ed8
[ "MIT" ]
null
null
null
elixir/lib/homework/users.ex
c-amer/web-homework
0f086762ce0248b0a78de4c876cd69fc91311ed8
[ "MIT" ]
null
null
null
defmodule Homework.Users do @moduledoc """ The Users context. """ import Ecto.Query, warn: false alias Homework.Repo alias Homework.Users.User @doc """ Returns the list of users. ## Examples iex> list_users([]) [%User{}, ...] """ @spec list_users(List.t) :: List.t def list_user...
20.246269
130
0.60634
91c0e7282f65adf49ffa97bfed8573a7e2ceefce
552
ex
Elixir
lib/glimesh/accounts/user_preference.ex
itsUnsmart/glimesh.tv
22c532184bb5046f6c6d8232e8bd66ba534c01c1
[ "MIT" ]
null
null
null
lib/glimesh/accounts/user_preference.ex
itsUnsmart/glimesh.tv
22c532184bb5046f6c6d8232e8bd66ba534c01c1
[ "MIT" ]
null
null
null
lib/glimesh/accounts/user_preference.ex
itsUnsmart/glimesh.tv
22c532184bb5046f6c6d8232e8bd66ba534c01c1
[ "MIT" ]
null
null
null
defmodule Glimesh.Accounts.UserPreference do @moduledoc false use Ecto.Schema use Waffle.Ecto.Schema import Ecto.Changeset schema "user_preferences" do belongs_to :user, Glimesh.Accounts.User field :site_theme, :string, default: "dark" field :show_timestamps, :boolean, default: false times...
19.714286
54
0.695652
91c0f51cc6417301be6ecd64b7912177a70b5716
1,760
exs
Elixir
apps/tai/test/tai/advisor_test.exs
ihorkatkov/tai
09f9f15d2c385efe762ae138a8570f1e3fd41f26
[ "MIT" ]
1
2019-12-19T05:16:26.000Z
2019-12-19T05:16:26.000Z
apps/tai/test/tai/advisor_test.exs
ihorkatkov/tai
09f9f15d2c385efe762ae138a8570f1e3fd41f26
[ "MIT" ]
null
null
null
apps/tai/test/tai/advisor_test.exs
ihorkatkov/tai
09f9f15d2c385efe762ae138a8570f1e3fd41f26
[ "MIT" ]
1
2020-05-03T23:32:11.000Z
2020-05-03T23:32:11.000Z
defmodule Tai.AdvisorTest do use ExUnit.Case, async: false defmodule NoOpAdvisor do use Tai.Advisor def handle_event(_, state), do: {:ok, state.store} end defmodule CallbackAdvisor do use Tai.Advisor def handle_event(_, state), do: {:ok, state.store} def after_start(state) do send(...
25.882353
90
0.646023
91c0f5f1726c3cfcf0db49449632eff3f32b7cd7
1,973
exs
Elixir
config/dev.exs
KZeillmann/MenuPlanner
56bd6afca8e321261720dc290f180f4944b8b483
[ "MIT" ]
null
null
null
config/dev.exs
KZeillmann/MenuPlanner
56bd6afca8e321261720dc290f180f4944b8b483
[ "MIT" ]
null
null
null
config/dev.exs
KZeillmann/MenuPlanner
56bd6afca8e321261720dc290f180f4944b8b483
[ "MIT" ]
null
null
null
use Mix.Config # For development, we disable any cache and enable # debugging and code reloading. # # The watchers configuration can be used to run external # watchers to your application. For example, we use it # with brunch.io to recompile .js and .css sources. config :menu_planner, MenuPlanner.Web.Endpoint, http:...
33.440678
170
0.707552
91c127983a359430b49d9c106091ae0758d6757d
2,051
ex
Elixir
lib/mix/surface/component/slots.ex
lastobelus/sfc_gen_live
12557794317bf29163844a7007c010e7eac47c17
[ "MIT" ]
6
2021-04-15T18:21:03.000Z
2022-03-28T16:00:38.000Z
lib/mix/surface/component/slots.ex
lastobelus/sfc_gen_live
12557794317bf29163844a7007c010e7eac47c17
[ "MIT" ]
2
2021-04-19T01:24:09.000Z
2021-04-25T05:16:18.000Z
lib/mix/surface/component/slots.ex
lastobelus/sfc_gen_live
12557794317bf29163844a7007c010e7eac47c17
[ "MIT" ]
1
2022-03-28T16:12:35.000Z
2022-03-28T16:12:35.000Z
defmodule Mix.Surface.Component.Slots do @moduledoc false @slot_opt_regex ~r/[[\]]/ # mix sfc.gen.component Hero section:string title:string --slot default --slot header --slot footer[section]:required --slot sidebar:required def parse(slots) do slots |> Keyword.get_values(:slot) |> Enum.map(&par...
23.574713
143
0.595807
91c12b41f2cf4931f43776c134807a51312a22c5
1,287
exs
Elixir
test/assertions/eq_test.exs
MeneDev/espec
ec4b3d579c5192999e930224a8a2650bb1fdf0bc
[ "Apache-2.0" ]
807
2015-03-25T14:00:19.000Z
2022-03-24T08:08:15.000Z
test/assertions/eq_test.exs
MeneDev/espec
ec4b3d579c5192999e930224a8a2650bb1fdf0bc
[ "Apache-2.0" ]
254
2015-03-27T10:12:25.000Z
2021-07-12T01:40:15.000Z
test/assertions/eq_test.exs
MeneDev/espec
ec4b3d579c5192999e930224a8a2650bb1fdf0bc
[ "Apache-2.0" ]
85
2015-04-02T10:25:19.000Z
2021-01-30T21:30:43.000Z
defmodule EqTest do use ExUnit.Case, async: true defmodule SomeSpec do use ESpec context "Success" do ESpec.Context.describe "ESpec.Assertions.Eq" do it do: expect(1 + 1) |> to(eq(2.0)) it do: expect(1 + 1) |> to_not(eq(3)) end ESpec.Context.describe "be" do it d...
26.8125
83
0.566434
91c14746df11cbf9ad05267c91ca5f488b7c7ebd
3,388
ex
Elixir
lib/tinkoff_invest.ex
reetou/tinkoff-invest-elixir
5eeb27a89c65be6cb2b34d965332bbcc17f3f244
[ "MIT" ]
1
2021-05-26T11:38:42.000Z
2021-05-26T11:38:42.000Z
lib/tinkoff_invest.ex
reetou/tinkoff-invest-elixir
5eeb27a89c65be6cb2b34d965332bbcc17f3f244
[ "MIT" ]
null
null
null
lib/tinkoff_invest.ex
reetou/tinkoff-invest-elixir
5eeb27a89c65be6cb2b34d965332bbcc17f3f244
[ "MIT" ]
null
null
null
defmodule TinkoffInvest do @moduledoc """ Convenient functions for frequent use-cases """ @type mode() :: :sandbox | :production @default_endpoint "https://api-invest.tinkoff.ru/openapi" alias TinkoffInvest.Portfolio alias TinkoffInvest.User alias TinkoffInvest.Orders alias TinkoffInvest.Model.Api....
25.666667
132
0.690083
91c174c3d9856735e5c98cd009c83ee631d2d235
1,232
ex
Elixir
elixir/bank-account/lib/bank_account.ex
paulfioravanti/exercism
b3bf15814b89b0ef50b9bf062b3c800e80e37e75
[ "MIT" ]
6
2019-06-19T15:43:20.000Z
2020-07-17T19:46:09.000Z
elixir/bank-account/lib/bank_account.ex
paulfioravanti/exercism
b3bf15814b89b0ef50b9bf062b3c800e80e37e75
[ "MIT" ]
10
2021-05-10T21:02:55.000Z
2021-05-11T20:29:41.000Z
elixir/bank-account/lib/bank_account.ex
paulfioravanti/exercism
b3bf15814b89b0ef50b9bf062b3c800e80e37e75
[ "MIT" ]
1
2019-06-25T10:42:14.000Z
2019-06-25T10:42:14.000Z
defmodule BankAccount do @moduledoc """ A bank account that supports access from multiple processes. """ use Agent @initial_balance 0 @typedoc """ An account handle. """ @opaque account :: pid @doc """ Open the bank. Makes the account available. """ @spec open_bank() :: account def open_...
20.533333
80
0.647727
91c18cea53285a6ee89546b0f5f7a20991e159e2
2,282
ex
Elixir
lib/elasticsearch_elixir_bulk_processor/bulk/bulk_stage.ex
szTheory/elasticsearch_elixir_bulk_processor
04fe11a7faff41f42b8119271a8c2ba148b95484
[ "Apache-2.0" ]
null
null
null
lib/elasticsearch_elixir_bulk_processor/bulk/bulk_stage.ex
szTheory/elasticsearch_elixir_bulk_processor
04fe11a7faff41f42b8119271a8c2ba148b95484
[ "Apache-2.0" ]
null
null
null
lib/elasticsearch_elixir_bulk_processor/bulk/bulk_stage.ex
szTheory/elasticsearch_elixir_bulk_processor
04fe11a7faff41f42b8119271a8c2ba148b95484
[ "Apache-2.0" ]
null
null
null
defmodule ElasticsearchElixirBulkProcessor.Bulk.BulkStage do use GenStage alias ElasticsearchElixirBulkProcessor.Bulk.{QueueStage, Payload, Handlers} # 60mb @default_byte_threshold 62_914_560 @default_event_count_threshold nil @init_state %{ queue: [], byte_threshold: @default_byte_threshold, ...
31.260274
93
0.730938
91c21a1bb73dab4afd7664b0a2598e52188ad10c
46
exs
Elixir
test/lexdee_test.exs
upmaru/lexdee
77efeb7193826329f3d164dc131b315dea06422e
[ "MIT" ]
1
2021-09-04T13:08:34.000Z
2021-09-04T13:08:34.000Z
test/lexdee_test.exs
upmaru/lexdee
77efeb7193826329f3d164dc131b315dea06422e
[ "MIT" ]
null
null
null
test/lexdee_test.exs
upmaru/lexdee
77efeb7193826329f3d164dc131b315dea06422e
[ "MIT" ]
2
2021-01-11T21:18:04.000Z
2021-04-04T20:03:53.000Z
defmodule LexdeeTest do use ExUnit.Case end
11.5
23
0.804348
91c227a1d071e9b814b6eb859ac25cbefcccb069
7,061
ex
Elixir
apps/mishka_content/lib/blog/post.ex
mojtaba-naseri/mishka-cms
1fb35b49177b9b27f5e68c1b0bf9d72dc0ff9935
[ "Apache-2.0" ]
null
null
null
apps/mishka_content/lib/blog/post.ex
mojtaba-naseri/mishka-cms
1fb35b49177b9b27f5e68c1b0bf9d72dc0ff9935
[ "Apache-2.0" ]
null
null
null
apps/mishka_content/lib/blog/post.ex
mojtaba-naseri/mishka-cms
1fb35b49177b9b27f5e68c1b0bf9d72dc0ff9935
[ "Apache-2.0" ]
null
null
null
defmodule MishkaContent.Blog.Post do alias MishkaDatabase.Schema.MishkaContent.Blog.Post alias MishkaContent.Blog.Like, as: UserLiked import Ecto.Query use MishkaDeveloperTools.DB.CRUD, module: Post, error_atom: :post, repo: MishkaDatabase.Repo @type data_uuid() :: Ecto.UUID....
36.02551
140
0.673842
91c26cf1103fc9712edbcd256234601505ff03e8
65
ex
Elixir
web/views/page_view.ex
masato25/open_lambda
b8b51371126dc59539a71c80d7f81b08408c7ae1
[ "Apache-2.0" ]
null
null
null
web/views/page_view.ex
masato25/open_lambda
b8b51371126dc59539a71c80d7f81b08408c7ae1
[ "Apache-2.0" ]
null
null
null
web/views/page_view.ex
masato25/open_lambda
b8b51371126dc59539a71c80d7f81b08408c7ae1
[ "Apache-2.0" ]
null
null
null
defmodule OpenLambda.PageView do use OpenLambda.Web, :view end
16.25
32
0.8
91c2741bc6740b720e6f63fb35f0eca3bc7afad0
1,097
exs
Elixir
test/live_sup/core/datasources/google_timezone_datasource_test.exs
livesup-dev/livesup
eaf9ffc78d3043bd9e3408f0f4df26ed16eb8446
[ "Apache-2.0", "MIT" ]
null
null
null
test/live_sup/core/datasources/google_timezone_datasource_test.exs
livesup-dev/livesup
eaf9ffc78d3043bd9e3408f0f4df26ed16eb8446
[ "Apache-2.0", "MIT" ]
3
2022-02-23T15:51:48.000Z
2022-03-14T22:52:43.000Z
test/live_sup/core/datasources/google_timezone_datasource_test.exs
livesup-dev/livesup
eaf9ffc78d3043bd9e3408f0f4df26ed16eb8446
[ "Apache-2.0", "MIT" ]
null
null
null
defmodule LiveSup.Test.Core.Datasources.GoogleTimezoneDatasourceTest do use LiveSup.DataCase, async: true alias LiveSup.Core.Datasources.GoogleTimezoneDatasource @response """ { "dstOffset": 0, "rawOffset": -28800, "status": "OK", "timeZoneId": "America/Los_Angeles", "timeZoneName": "Pacif...
24.377778
75
0.608022
91c299c64f6305bcc80bfe993c5bb4de2ec4ecdc
2,166
ex
Elixir
lib/sgp30.ex
fhunleth/sgp30
39971417cda617ca913d7fe04c57583232925d85
[ "Apache-2.0" ]
null
null
null
lib/sgp30.ex
fhunleth/sgp30
39971417cda617ca913d7fe04c57583232925d85
[ "Apache-2.0" ]
null
null
null
lib/sgp30.ex
fhunleth/sgp30
39971417cda617ca913d7fe04c57583232925d85
[ "Apache-2.0" ]
null
null
null
defmodule Sgp30 do use GenServer require Logger alias Circuits.I2C defstruct address: 0x58, serial: nil, tvoc: 0, eco2: 0, i2c: nil, h2_raw: nil, ethenol_raw: nil @spec start_link([bus_name: String.t()]) :: :ignore | {:error, any} | {:ok, pid} def start_link(opts \\ []) do GenServer.start_link(__MOD...
28.12987
97
0.589566
91c2a2b2ef2ded39ce87e5fd7264dc8bd3316be7
217
exs
Elixir
concurrency/concurrency.exs
demensdeum/Elixir-Experiments
dbd72e7d991a623ba9e2014fdac0c533913fd00e
[ "MIT" ]
null
null
null
concurrency/concurrency.exs
demensdeum/Elixir-Experiments
dbd72e7d991a623ba9e2014fdac0c533913fd00e
[ "MIT" ]
null
null
null
concurrency/concurrency.exs
demensdeum/Elixir-Experiments
dbd72e7d991a623ba9e2014fdac0c533913fd00e
[ "MIT" ]
null
null
null
defmodule Printer do def print(text) do IO.puts text end end # synchronized Printer.print "sync 1" Printer.print "sync 2" # asynchronized spawn(Printer, :print, ["async 1"]) spawn(Printer, :print, ["async 2"])
14.466667
35
0.705069
91c2cea112a1b80e4d890c45d0bcdcd9c3dacd86
2,466
exs
Elixir
apps/game_of_life/test/game_of_life_test.exs
tslim/elixir-phoenix-life
c86fd69198c9193bdcd5b3b1b504f41f67268139
[ "MIT" ]
1
2016-09-28T07:38:55.000Z
2016-09-28T07:38:55.000Z
apps/game_of_life/test/game_of_life_test.exs
tslim/elixir-phoenix-life
c86fd69198c9193bdcd5b3b1b504f41f67268139
[ "MIT" ]
null
null
null
apps/game_of_life/test/game_of_life_test.exs
tslim/elixir-phoenix-life
c86fd69198c9193bdcd5b3b1b504f41f67268139
[ "MIT" ]
null
null
null
defmodule GameOfLifeTest do use ExUnit.Case, async: true doctest GameOfLife test "Transform current board state to the next iteration" do state = [[1,2], [2,2], [3,2]] board_size = [3,3] new_state = [[2,3], [2,2], [2,1]] assert GameOfLife.tick(state, board_size) == new_state state = [[2,2], ...
36.264706
99
0.56326
91c2d0e5e616d8f063494ed3e478dcbe3dca9e35
1,078
ex
Elixir
lib/status/time.ex
shinyscorpion/elixir-status
3af86483cbbca99295f88d152f2cefdd8259a89e
[ "MIT" ]
2
2018-07-18T02:33:48.000Z
2020-01-12T03:45:32.000Z
lib/status/time.ex
shinyscorpion/elixir-status
3af86483cbbca99295f88d152f2cefdd8259a89e
[ "MIT" ]
null
null
null
lib/status/time.ex
shinyscorpion/elixir-status
3af86483cbbca99295f88d152f2cefdd8259a89e
[ "MIT" ]
null
null
null
defmodule Status.Time do @moduledoc false def deploy do {utime, _} = :erlang.statistics(:wall_clock) deploy = :millisecond |> :os.system_time() |> Kernel.-(utime) |> DateTime.from_unix!(:millisecond) %{ deploy: deploy, now: DateTime.utc_now() } end def bui...
19.6
66
0.528757
91c2d54f7bc744a0d4171cf5249656dcd534c438
2,178
exs
Elixir
apps/pingring/config/prod.exs
kanatohodets/phoenix-ricor-kv
cae24fd7fcbf7575241d2e541cc37c882c692d50
[ "MIT" ]
21
2016-06-25T16:10:16.000Z
2021-04-03T05:06:07.000Z
apps/pingring/config/prod.exs
kanatohodets/ping-ring
cae24fd7fcbf7575241d2e541cc37c882c692d50
[ "MIT" ]
1
2016-12-09T20:01:34.000Z
2016-12-09T23:06:03.000Z
apps/pingring/config/prod.exs
kanatohodets/ping-ring
cae24fd7fcbf7575241d2e541cc37c882c692d50
[ "MIT" ]
3
2016-10-10T16:52:40.000Z
2018-01-25T16:44:55.000Z
use Mix.Config # For production, we configure the host to read the PORT # from the system environment. Therefore, you will need # to set PORT=80 before running your server. # # You should also configure the url host to something # meaningful, we use this information when generating URLs. # # Finally, we also include t...
33
67
0.713499
91c2dd83a65738887419d085190eaa50bd2b5394
242
exs
Elixir
priv/repo/migrations/20190210070555_add_orignal_community_to_video.exs
coderplanets/coderplanets_server
3663e56340d6d050e974c91f7e499d8424fc25e9
[ "Apache-2.0" ]
240
2018-11-06T09:36:54.000Z
2022-02-20T07:12:36.000Z
priv/repo/migrations/20190210070555_add_orignal_community_to_video.exs
coderplanets/coderplanets_server
3663e56340d6d050e974c91f7e499d8424fc25e9
[ "Apache-2.0" ]
363
2018-07-11T03:38:14.000Z
2021-12-14T01:42:40.000Z
priv/repo/migrations/20190210070555_add_orignal_community_to_video.exs
mydearxym/mastani_server
f24034a4a5449200165cf4a547964a0961793eab
[ "Apache-2.0" ]
22
2019-01-27T11:47:56.000Z
2021-02-28T13:17:52.000Z
defmodule GroupherServer.Repo.Migrations.AddOrignalCommunityToVideo do use Ecto.Migration def change do alter table(:cms_videos) do add(:origial_community_id, references(:communities, on_delete: :delete_all)) end end end
24.2
82
0.768595
91c2f346f5315ea7275d11f4f6db957ace1c8383
1,386
ex
Elixir
lib/mix/ecto_tablestore.ex
xosdy/ecto_tablestore
bea08b70fcf7a12932e677b63882cfb936956b1a
[ "MIT" ]
7
2019-09-09T01:42:21.000Z
2021-03-03T07:19:52.000Z
lib/mix/ecto_tablestore.ex
xosdy/ecto_tablestore
bea08b70fcf7a12932e677b63882cfb936956b1a
[ "MIT" ]
17
2020-04-10T04:10:00.000Z
2022-03-21T10:27:04.000Z
lib/mix/ecto_tablestore.ex
xosdy/ecto_tablestore
bea08b70fcf7a12932e677b63882cfb936956b1a
[ "MIT" ]
7
2019-12-04T08:39:43.000Z
2022-03-18T09:24:42.000Z
defmodule Mix.EctoTablestore do @moduledoc false @doc """ Ensures the given repository's migrations path exists on the file system. """ @spec ensure_migrations_path(Ecto.Repo.t(), Keyword.t()) :: String.t() def ensure_migrations_path(repo, opts) do path = opts[:migrations_path] || Path.join(source_repo...
29.489362
88
0.686869
91c2fdc559aa4b58ca9f3e86015513b335f80541
2,734
ex
Elixir
lib/ecto_rescope.ex
sobolevn/ecto_rescope
7eaf2befefc44856f7b7077b6e31db08d00ed5f1
[ "Apache-2.0" ]
null
null
null
lib/ecto_rescope.ex
sobolevn/ecto_rescope
7eaf2befefc44856f7b7077b6e31db08d00ed5f1
[ "Apache-2.0" ]
null
null
null
lib/ecto_rescope.ex
sobolevn/ecto_rescope
7eaf2befefc44856f7b7077b6e31db08d00ed5f1
[ "Apache-2.0" ]
null
null
null
defmodule Ecto.Rescope do @moduledoc """ Rescopes the default query on an Ecto schema. An Ecto Schmea is typically scoped by the `Ecto.Schema.schema/2` macro, which defines the query as: def __schema__(:query) do %Ecto.Query{ from: %Ecto.Query.FromExpr{ source: {unquote(sou...
31.068182
93
0.669349
91c309ca4933c0df54bbf1ad6cb741164cfdfad7
560
ex
Elixir
lib/freshcom_web/views/stockable_view.ex
freshcom/freshcom_web
fab44c9468e86b1770eef9971a97ad2b11545e9c
[ "BSD-3-Clause" ]
9
2018-12-16T14:02:59.000Z
2021-01-19T07:25:40.000Z
lib/freshcom_web/views/stockable_view.ex
freshcom/freshcom_web
fab44c9468e86b1770eef9971a97ad2b11545e9c
[ "BSD-3-Clause" ]
null
null
null
lib/freshcom_web/views/stockable_view.ex
freshcom/freshcom_web
fab44c9468e86b1770eef9971a97ad2b11545e9c
[ "BSD-3-Clause" ]
4
2018-12-16T17:50:01.000Z
2021-01-19T07:25:51.000Z
defmodule FreshcomWeb.StockableView do use FreshcomWeb, :view use JaSerializer.PhoenixView attributes [ :status, :number, :barcode, :name, :label, :print_name, :unit_of_measure, :specification, :variable_weight, :weight, :weight_unit, :storage_type, :storage...
13.333333
38
0.614286
91c3175a2e35df1e46006c69c8e03b1a64a6ea74
5,693
ex
Elixir
robotica_ui/lib/scenic_clock/analog.ex
brianmay/robotica-elixir
8656510e54b7e32a547e3a54bf946f0e327911c9
[ "RSA-MD" ]
1
2019-04-23T09:16:44.000Z
2019-04-23T09:16:44.000Z
robotica_ui/lib/scenic_clock/analog.ex
brianmay/robotica-elixir
8656510e54b7e32a547e3a54bf946f0e327911c9
[ "RSA-MD" ]
107
2019-05-26T08:03:26.000Z
2022-02-03T19:13:56.000Z
robotica_ui/lib/scenic_clock/analog.ex
brianmay/robotica-elixir
8656510e54b7e32a547e3a54bf946f0e327911c9
[ "RSA-MD" ]
1
2019-08-10T20:44:24.000Z
2019-08-10T20:44:24.000Z
# # Created by Boyd Multerer on August 8, 2018. # Copyright © 2018 Kry10 Industries. All rights reserved. # defmodule Scenic.Clock.Analog do @moduledoc """ A component that runs an analog clock. See the [Components](Scenic.Clock.Components.html#analog_clock/2) module for useage """ use Scenic.Component, ...
26.47907
86
0.545231
91c3206ad1e7d83568fc00c05f6623dfefa9d8ad
20,881
ex
Elixir
clients/big_query/lib/google_api/big_query/v2/api/jobs.ex
linjunpop/elixir-google-api
444cb2b2fb02726894535461a474beddd8b86db4
[ "Apache-2.0" ]
null
null
null
clients/big_query/lib/google_api/big_query/v2/api/jobs.ex
linjunpop/elixir-google-api
444cb2b2fb02726894535461a474beddd8b86db4
[ "Apache-2.0" ]
null
null
null
clients/big_query/lib/google_api/big_query/v2/api/jobs.ex
linjunpop/elixir-google-api
444cb2b2fb02726894535461a474beddd8b86db4
[ "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.775681
303
0.673914
91c327bc405e2a5beb0109ba55a89353a9cb417d
824
exs
Elixir
test/unit/web/controllers/label_controller_test.exs
Nebo15/printout.api
292f20add1c92396194dc232eca43c5a93966a1f
[ "MIT" ]
7
2017-06-08T21:15:11.000Z
2021-12-28T16:57:10.000Z
test/unit/web/controllers/label_controller_test.exs
Nebo15/man.api
292f20add1c92396194dc232eca43c5a93966a1f
[ "MIT" ]
11
2017-04-16T17:59:55.000Z
2019-01-28T17:18:36.000Z
test/unit/web/controllers/label_controller_test.exs
Nebo15/printout.api
292f20add1c92396194dc232eca43c5a93966a1f
[ "MIT" ]
3
2017-07-27T16:10:42.000Z
2021-12-28T17:00:44.000Z
defmodule Man.Web.LabelControllerTest do use Man.Web.ConnCase, async: true alias Man.FixturesFactory setup %{conn: conn} do {:ok, conn: put_req_header(conn, "accept", "application/json")} end test "lists all entries on index", %{conn: conn} do assert [] == conn |> get(label_path(conn, :i...
24.235294
67
0.576456
91c344413087333f4b9181ae2c1c79ab8c02c022
498
ex
Elixir
lib/gen/elixir/impl/bool.ex
ProtoDef-io/elixir-protodef
9176d2439d66c713a5db7f57f26dfc5dc18f8d6f
[ "MIT" ]
2
2016-03-31T16:23:39.000Z
2016-05-20T17:42:38.000Z
lib/gen/elixir/impl/bool.ex
McEx/ProtoDef
9176d2439d66c713a5db7f57f26dfc5dc18f8d6f
[ "MIT" ]
1
2016-04-02T08:54:49.000Z
2016-04-02T08:54:49.000Z
lib/gen/elixir/impl/bool.ex
McEx/ProtoDef
9176d2439d66c713a5db7f57f26dfc5dc18f8d6f
[ "MIT" ]
null
null
null
defimpl ProtoDef.Gen.Elixir.Protocol, for: ProtoDef.Type.Bool do @data_var ProtoDef.Type.data_var @input_var ProtoDef.Type.input_var def decoder(descr, ctx) do quote do with do <<val::unsigned-integer-1*8, unquote(@data_var)::binary>> = unquote(@data_var) {val == 1, unquote(@data_var)}...
19.153846
86
0.596386
91c355ef9e2d7cf00e2ad337c0285fe380ff6a7d
5,313
ex
Elixir
lib/extensions/invitation/ecto/schema.ex
patrickbiermann/pow
ebc2ac7d6e15961dac4be38091ff75dae0d26554
[ "MIT" ]
4
2018-05-07T16:37:15.000Z
2018-07-14T00:44:12.000Z
lib/extensions/invitation/ecto/schema.ex
patrickbiermann/pow
ebc2ac7d6e15961dac4be38091ff75dae0d26554
[ "MIT" ]
null
null
null
lib/extensions/invitation/ecto/schema.ex
patrickbiermann/pow
ebc2ac7d6e15961dac4be38091ff75dae0d26554
[ "MIT" ]
null
null
null
defmodule PowInvitation.Ecto.Schema do @moduledoc """ Handles the invitation schema for user. ## Customize PowInvitation associations or fields If you need to modify any of the associations or fields that `PowInvitation` adds to the user schema, you can override them by defining them before `pow_user_fiel...
30.710983
126
0.704122