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
e96375352b0cdfb08fe271a46f6b816322cd84a4
1,290
ex
Elixir
lib/ex_raft/rpc.ex
bajankristof/ex_raft
09c3234355d2792922b17a71e3c32b3e57f0a277
[ "Apache-2.0" ]
1
2021-08-25T10:49:26.000Z
2021-08-25T10:49:26.000Z
lib/ex_raft/rpc.ex
bajankristof/ex_raft
09c3234355d2792922b17a71e3c32b3e57f0a277
[ "Apache-2.0" ]
null
null
null
lib/ex_raft/rpc.ex
bajankristof/ex_raft
09c3234355d2792922b17a71e3c32b3e57f0a277
[ "Apache-2.0" ]
null
null
null
defmodule ExRaft.RPC do @moduledoc false require Logger defmodule Conn do @moduledoc false defstruct [:server, :timeout] end defmodule VoteRequest do @moduledoc false defstruct [:from, :term, :last_entry] end defmodule VoteResponse do @moduledoc false defstruct [:from, :term, :...
26.875
89
0.67907
e9637ffa47756a1b90a16ea7b4a9a4a0a87ae22a
1,508
ex
Elixir
lib/plugin_manager/event/reference/on_user_before_login.ex
mishka-group/mishka_installer
ab19e3e1e8aaa984ec48d6277a77d567eb5f61ea
[ "Apache-2.0" ]
3
2022-03-18T14:32:15.000Z
2022-03-24T06:33:21.000Z
lib/plugin_manager/event/reference/on_user_before_login.ex
mishka-group/mishka_installer
ab19e3e1e8aaa984ec48d6277a77d567eb5f61ea
[ "Apache-2.0" ]
3
2022-03-25T08:30:42.000Z
2022-03-27T17:13:46.000Z
lib/plugin_manager/event/reference/on_user_before_login.ex
mishka-group/mishka_installer
ab19e3e1e8aaa984ec48d6277a77d567eb5f61ea
[ "Apache-2.0" ]
null
null
null
defmodule MishkaInstaller.Reference.OnUserBeforeLogin do defstruct [:ip, :assigns, :output, :input] @type input() :: map() @type assigns() :: Phoenix.LiveView.Socket.assigns() @type output() :: Phoenix.LiveView.Rendered.t() | nil @type ip() :: String.t() | tuple() # User's IP from both side endpoints connec...
62.833333
128
0.693634
e9639c5b3e95dd1aca80492eeb5a39fff1f56aad
84
exs
Elixir
test/views/layout_view_test.exs
van-mronov/ex_money
39010f02fd822657e3b5694e08b872bd2ab72c26
[ "0BSD" ]
184
2015-11-23T20:51:50.000Z
2022-03-30T01:01:39.000Z
test/views/layout_view_test.exs
van-mronov/ex_money
39010f02fd822657e3b5694e08b872bd2ab72c26
[ "0BSD" ]
15
2015-11-26T16:00:20.000Z
2018-05-25T20:13:39.000Z
test/views/layout_view_test.exs
van-mronov/ex_money
39010f02fd822657e3b5694e08b872bd2ab72c26
[ "0BSD" ]
21
2015-11-26T21:34:40.000Z
2022-03-26T02:56:42.000Z
defmodule ExMoney.Web.LayoutViewTest do use ExMoney.Web.ConnCase, async: true end
21
39
0.809524
e963b454dadee5918aad177b1edab34acefaacac
1,707
exs
Elixir
apps/viztube/mix.exs
vizlegal/viztube
9519ec2bcea9d4085ec3287412b0a26104d4c826
[ "Apache-2.0" ]
null
null
null
apps/viztube/mix.exs
vizlegal/viztube
9519ec2bcea9d4085ec3287412b0a26104d4c826
[ "Apache-2.0" ]
3
2020-07-16T23:48:01.000Z
2021-05-08T15:54:04.000Z
apps/viztube/mix.exs
vizlegal/viztube
9519ec2bcea9d4085ec3287412b0a26104d4c826
[ "Apache-2.0" ]
null
null
null
defmodule Viztube.Mixfile do use Mix.Project def project do [ app: :viztube, version: "0.0.1", build_path: "../../_build", config_path: "../../config/config.exs", deps_path: "../../deps", lockfile: "../../mix.lock", elixir: "~> 1.4", elixirc_paths: elixirc_paths(...
27.095238
96
0.581722
e963cc9da9295521f539ae8a3a2d5a4d93fedb9e
166
ex
Elixir
daniel/almeida/ch3/even_or_odd.ex
jdashton/glowing-succotash
44580c2d4cb300e33156d42e358e8a055948a079
[ "MIT" ]
null
null
null
daniel/almeida/ch3/even_or_odd.ex
jdashton/glowing-succotash
44580c2d4cb300e33156d42e358e8a055948a079
[ "MIT" ]
1
2020-02-26T14:55:23.000Z
2020-02-26T14:55:23.000Z
daniel/almeida/ch3/even_or_odd.ex
jdashton/glowing-succotash
44580c2d4cb300e33156d42e358e8a055948a079
[ "MIT" ]
null
null
null
defmodule EvenOrOdd do require Integer def check(number) when Integer.is_even(number), do: "even" def check(number) when Integer.is_odd(number), do: "odd" end
23.714286
60
0.740964
e963d7b779329d286c7459618ed096997f4e3140
2,753
exs
Elixir
app/test/app_web/controllers/item_controller_test.exs
Cate-Lukner/cate-lukner-internship
43e8b467287ea3a7955e23f18180cb4f849e6620
[ "MIT" ]
null
null
null
app/test/app_web/controllers/item_controller_test.exs
Cate-Lukner/cate-lukner-internship
43e8b467287ea3a7955e23f18180cb4f849e6620
[ "MIT" ]
null
null
null
app/test/app_web/controllers/item_controller_test.exs
Cate-Lukner/cate-lukner-internship
43e8b467287ea3a7955e23f18180cb4f849e6620
[ "MIT" ]
1
2020-05-22T19:21:24.000Z
2020-05-22T19:21:24.000Z
defmodule AppWeb.ItemControllerTest do use AppWeb.ConnCase alias App.Todo @create_attrs %{person_id: 42, status: 42, text: "some text"} @update_attrs %{person_id: 43, status: 43, text: "some updated text"} @invalid_attrs %{person_id: nil, status: nil, text: nil} def fixture(:item) do {:ok, item} = To...
29.923913
83
0.652016
e963fc47b3235dc694d7168bc28e299c34c8c65c
1,117
ex
Elixir
server/test/support/channel_case.ex
blogsley/blogsley-absinthe
7266f80a0638f8c30c37b37296ba5d78dcf8fb8b
[ "MIT" ]
3
2020-01-23T06:37:18.000Z
2020-12-05T08:31:00.000Z
server/test/support/channel_case.ex
blogsley/blogsley-absinthe
7266f80a0638f8c30c37b37296ba5d78dcf8fb8b
[ "MIT" ]
16
2020-04-04T05:13:52.000Z
2022-03-31T11:19:20.000Z
server/test/support/channel_case.ex
blogsley/blogsley
7266f80a0638f8c30c37b37296ba5d78dcf8fb8b
[ "MIT" ]
null
null
null
defmodule BlogsleyWeb.ChannelCase do @moduledoc """ This module defines the test case to be used by channel tests. Such tests rely on `Phoenix.ChannelTest` and also import other functionality to make it easier to build common data structures and query the data layer. Finally, if the test case interacts ...
27.243902
70
0.728738
e9642d6939d7db8d23d88a9574b4513d2e76155f
138,591
ex
Elixir
clients/monitoring/lib/google_api/monitoring/v3/api/projects.ex
ukrbublik/elixir-google-api
364cec36bc76f60bec94cbcad34844367a29d174
[ "Apache-2.0" ]
null
null
null
clients/monitoring/lib/google_api/monitoring/v3/api/projects.ex
ukrbublik/elixir-google-api
364cec36bc76f60bec94cbcad34844367a29d174
[ "Apache-2.0" ]
null
null
null
clients/monitoring/lib/google_api/monitoring/v3/api/projects.ex
ukrbublik/elixir-google-api
364cec36bc76f60bec94cbcad34844367a29d174
[ "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...
50.72877
1,300
0.636434
e96445f311a2b3df5abd111faa5ce7516434526d
589
exs
Elixir
elixir/etl/etl.exs
joeletizia/exercism-elixir
9a386978c7c62f551ed72d9e0dd7d59ee7f24618
[ "MIT" ]
null
null
null
elixir/etl/etl.exs
joeletizia/exercism-elixir
9a386978c7c62f551ed72d9e0dd7d59ee7f24618
[ "MIT" ]
null
null
null
elixir/etl/etl.exs
joeletizia/exercism-elixir
9a386978c7c62f551ed72d9e0dd7d59ee7f24618
[ "MIT" ]
null
null
null
defmodule ETL do @doc """ Transform an index into an inverted index. ## Examples iex> ETL.transform(%{"a" => ["ABILITY", "AARDVARK"], "b" => ["BALLAST", "BEAUTY"]}) %{"ability" => "a", "aardvark" => "a", "ballast" => "b", "beauty" =>"b"} """ @spec transform(map) :: map def transform(input) do tupl...
25.608696
85
0.587436
e96454d9ebbb9ca539428e41078633b95e725ae1
5,835
ex
Elixir
messages/elixir/lib/cucumber_messages/generated/elixir_cucumber_messages_test_case_started.ex
alvivi/cucumber
647e4c9a46d441fb6d86b22138ad44580d500f75
[ "MIT" ]
1
2021-01-22T09:13:21.000Z
2021-01-22T09:13:21.000Z
messages/elixir/lib/cucumber_messages/generated/elixir_cucumber_messages_test_case_started.ex
alvivi/cucumber
647e4c9a46d441fb6d86b22138ad44580d500f75
[ "MIT" ]
null
null
null
messages/elixir/lib/cucumber_messages/generated/elixir_cucumber_messages_test_case_started.ex
alvivi/cucumber
647e4c9a46d441fb6d86b22138ad44580d500f75
[ "MIT" ]
null
null
null
# credo:disable-for-this-file defmodule(CucumberMessages.TestCaseStarted) do @moduledoc(false) ( defstruct(timestamp: nil, attempt: 0, test_case_id: "", id: "", __uf__: []) ( @spec(encode(struct) :: {:ok, iodata} | {:error, any}) def(encode(msg)) do try do {:ok, encode!(msg)} ...
35.797546
208
0.537618
e9645eddb6740415e2f8fde10d4bff3739763b35
717
ex
Elixir
lib/companies_web/gettext.ex
bglusman/elixir-companies
d6a728cf9136888367e261feb876c5d2a266ed57
[ "MIT" ]
333
2019-05-18T14:01:17.000Z
2022-03-22T05:07:40.000Z
lib/companies_web/gettext.ex
bglusman/elixir-companies
d6a728cf9136888367e261feb876c5d2a266ed57
[ "MIT" ]
89
2019-05-18T10:01:54.000Z
2021-05-12T15:19:26.000Z
lib/companies_web/gettext.ex
envato/elixir-companies
7488075d1a372c9ca8fa6603f93e384b73977526
[ "MIT" ]
33
2019-06-07T00:33:53.000Z
2022-03-21T05:38:28.000Z
defmodule CompaniesWeb.Gettext do @moduledoc """ A module providing Internationalization with a gettext-based API. By using [Gettext](https://hexdocs.pm/gettext), your module gains a set of macros for translations, for example: import CompaniesWeb.Gettext # Simple translation gettext("Here ...
28.68
72
0.680614
e96471229d63f27781c985503a1594bd2eb2628f
834
ex
Elixir
lib/anchore_engine_api_server/model/event_response.ex
michaeljguarino/anchore-elixir-client
156a44f429ecb62433729a2b4c52de5dc0ef44d2
[ "MIT" ]
null
null
null
lib/anchore_engine_api_server/model/event_response.ex
michaeljguarino/anchore-elixir-client
156a44f429ecb62433729a2b4c52de5dc0ef44d2
[ "MIT" ]
null
null
null
lib/anchore_engine_api_server/model/event_response.ex
michaeljguarino/anchore-elixir-client
156a44f429ecb62433729a2b4c52de5dc0ef44d2
[ "MIT" ]
null
null
null
# NOTE: This class is auto generated by the swagger code generator program. # https://github.com/swagger-api/swagger-codegen.git # Do not edit the class manually. defmodule AnchoreEngineAPIServer.Model.EventResponse do @moduledoc """ A record of occurance of an asynchronous event triggered either by system or by u...
26.0625
95
0.73741
e964aa874c37962be9a01a05902c4f28840425db
3,774
ex
Elixir
implementations/elixir/lib/router/protocol/encoding/default/decode.ex
nondejus/ockam
4dba6c3b9d377643cc8a0e46a8c0e632e8aa48ad
[ "Apache-2.0" ]
null
null
null
implementations/elixir/lib/router/protocol/encoding/default/decode.ex
nondejus/ockam
4dba6c3b9d377643cc8a0e46a8c0e632e8aa48ad
[ "Apache-2.0" ]
null
null
null
implementations/elixir/lib/router/protocol/encoding/default/decode.ex
nondejus/ockam
4dba6c3b9d377643cc8a0e46a8c0e632e8aa48ad
[ "Apache-2.0" ]
null
null
null
defmodule Ockam.Router.Protocol.Encoding.Default.Decode do @moduledoc """ Decodes encoded values using the `Default` decoder. """ import Ockam.Router.Protocol.Encoding.Helpers alias Ockam.Router.Protocol.DecodeError alias Ockam.Router.Protocol.Encoding.Default.Decoder @opaque opts :: map() @type type...
30.682927
87
0.644939
e964abf3c0903291122c3cfd17a56800d24f66db
1,512
exs
Elixir
products/mix.exs
DivvyPayHQ/federation_poc
74839abf7d3eb8e3029468bbe4d335d7b240da97
[ "MIT" ]
2
2021-09-21T13:36:49.000Z
2021-09-25T13:17:40.000Z
products/mix.exs
DivvyPayHQ/federation_poc
74839abf7d3eb8e3029468bbe4d335d7b240da97
[ "MIT" ]
null
null
null
products/mix.exs
DivvyPayHQ/federation_poc
74839abf7d3eb8e3029468bbe4d335d7b240da97
[ "MIT" ]
null
null
null
defmodule Products.MixProject do use Mix.Project def project do [ app: :products, version: "0.1.0", elixir: "~> 1.7", elixirc_paths: elixirc_paths(Mix.env()), compilers: [:phoenix, :gettext] ++ Mix.compilers(), start_permanent: Mix.env() == :prod, aliases: aliases(), ...
24.786885
84
0.585317
e964b75cd12a7aec33245e0f20b2572d55e617be
518
ex
Elixir
lib/banchan_web/controllers/dispatch_controller.ex
tacohole/banchan
04c9f2fd5464e697d9b69e4bc524ace5f6487487
[ "BlueOak-1.0.0", "Apache-2.0" ]
null
null
null
lib/banchan_web/controllers/dispatch_controller.ex
tacohole/banchan
04c9f2fd5464e697d9b69e4bc524ace5f6487487
[ "BlueOak-1.0.0", "Apache-2.0" ]
null
null
null
lib/banchan_web/controllers/dispatch_controller.ex
tacohole/banchan
04c9f2fd5464e697d9b69e4bc524ace5f6487487
[ "BlueOak-1.0.0", "Apache-2.0" ]
null
null
null
defmodule BanchanWeb.DispatchController do use BanchanWeb, :controller alias Banchan.Accounts.User alias Banchan.Identities alias Banchan.Studios.Studio def dispatch(conn, %{"handle" => handle}) do {:ok, found} = Identities.get_user_or_studio_by_handle(handle) case found do %User{} -> ...
23.545455
70
0.664093
e964ca498f53dbd90905a4b66103b2367bc196a5
8,454
exs
Elixir
.credo.exs
froseph/ambry
86c1a8528b9f3cc7e4a7debd8005df4116a7d1b1
[ "MIT" ]
12
2021-09-30T20:51:49.000Z
2022-01-27T04:09:32.000Z
.credo.exs
froseph/ambry
86c1a8528b9f3cc7e4a7debd8005df4116a7d1b1
[ "MIT" ]
76
2021-10-01T05:45:11.000Z
2022-03-28T04:12:39.000Z
.credo.exs
froseph/ambry
86c1a8528b9f3cc7e4a7debd8005df4116a7d1b1
[ "MIT" ]
2
2021-10-04T19:27:28.000Z
2022-01-13T22:36:38.000Z
# This file contains the configuration for Credo and you are probably reading # this after creating it with `mix credo.gen.config`. # # If you find anything wrong or unclear in this file, please report an # issue on GitHub: https://github.com/rrrene/credo/issues # %{ # # You can have as many configs as you like in ...
40.257143
92
0.586941
e964ebde8b287fda8a69fcd392ded0b6d9996c47
729
ex
Elixir
lib/absinthe/language/list_value.ex
dmarkow/absinthe
707690bf06189b3a4b13959908a2eb52a3951179
[ "MIT" ]
null
null
null
lib/absinthe/language/list_value.ex
dmarkow/absinthe
707690bf06189b3a4b13959908a2eb52a3951179
[ "MIT" ]
null
null
null
lib/absinthe/language/list_value.ex
dmarkow/absinthe
707690bf06189b3a4b13959908a2eb52a3951179
[ "MIT" ]
null
null
null
defmodule Absinthe.Language.ListValue do @moduledoc false alias Absinthe.{Blueprint, Language} defstruct values: [], loc: nil @type t :: %__MODULE__{ values: [Language.value_t()], loc: Language.loc_t() } defimpl Blueprint.Draft do def convert(node, doc) do ...
24.3
95
0.611797
e964f9bcc80962375675ba60704f0383d636889a
165
exs
Elixir
.formatter.exs
KamilZielinski/ecto_enum
4cbcb359b63102edea3db4e984a33d4d09e3f0c0
[ "MIT" ]
null
null
null
.formatter.exs
KamilZielinski/ecto_enum
4cbcb359b63102edea3db4e984a33d4d09e3f0c0
[ "MIT" ]
null
null
null
.formatter.exs
KamilZielinski/ecto_enum
4cbcb359b63102edea3db4e984a33d4d09e3f0c0
[ "MIT" ]
null
null
null
locals_without_parens = [ defenum: 3, defenum: 2 ] [ locals_without_parens: locals_without_parens, export: [locals_without_parens: locals_without_parens] ]
16.5
56
0.769697
e964fbf8214ec9f94e213ab7d69e34aa752ff105
686
ex
Elixir
moustashe_server.ex
ivan-golubev/MoustashedServer
a42059c3edb2a638ff480cd8d7b0634a5f59e56e
[ "MIT" ]
null
null
null
moustashe_server.ex
ivan-golubev/MoustashedServer
a42059c3edb2a638ff480cd8d7b0634a5f59e56e
[ "MIT" ]
null
null
null
moustashe_server.ex
ivan-golubev/MoustashedServer
a42059c3edb2a638ff480cd8d7b0634a5f59e56e
[ "MIT" ]
null
null
null
defmodule MoustasheServer do use GenServer alias Network.Handler require Logger @doc """ Starts the server. """ def start_link(args) do GenServer.start_link(__MODULE__, args, name: __MODULE__) end def init(args) do {:ok, args} end def start(port: port) when is_integer(port) do ...
19.055556
79
0.618076
e9650df9dae22ddff57ea313e194e5c081cf6f04
8,411
ex
Elixir
lib/type/_properties.ex
kianmeng/mavis
6ba154efdfadcce1aca92ac735dadb209380c25b
[ "MIT" ]
null
null
null
lib/type/_properties.ex
kianmeng/mavis
6ba154efdfadcce1aca92ac735dadb209380c25b
[ "MIT" ]
null
null
null
lib/type/_properties.ex
kianmeng/mavis
6ba154efdfadcce1aca92ac735dadb209380c25b
[ "MIT" ]
null
null
null
defprotocol Type.Properties do @spec usable_as(Type.t, Type.t, keyword) :: Type.ternary def usable_as(subject, target, meta) @spec subtype?(Type.t, Type.t) :: boolean def subtype?(subject, target) @spec compare(Type.t, Type.t) :: :gt | :eq | :lt def compare(a, b) @spec typegroup(Type.t) :: Type.group ...
35.192469
106
0.599691
e9651405dd31750de9b25e7807dfd1e7b9e9b348
607
exs
Elixir
priv/templates/brando.install/migrations/20150123230712_create_users.exs
brandocms/brando
4198e0c0920031bd909969055064e4e2b7230d21
[ "MIT" ]
4
2020-10-30T08:40:38.000Z
2022-01-07T22:21:37.000Z
priv/templates/brando.install/migrations/20150123230712_create_users.exs
brandocms/brando
4198e0c0920031bd909969055064e4e2b7230d21
[ "MIT" ]
1,162
2020-07-05T11:20:15.000Z
2022-03-31T06:01:49.000Z
priv/templates/brando.install/migrations/20150123230712_create_users.exs
brandocms/brando
4198e0c0920031bd909969055064e4e2b7230d21
[ "MIT" ]
null
null
null
defmodule <%= application_module %>.Repo.Migrations.CreateUsers do use Ecto.Migration def up do create table(:users) do add :full_name, :text add :email, :text add :password, :text add :avatar, :jsonb add :language, :text, default: "no" add :role...
25.291667
66
0.578254
e965146259fa38dd93750e278817dcac12fe57ea
3,893
exs
Elixir
test/multiple_products_web/controllers/user_reset_password_controller_test.exs
manojsamanta/stripe-multiple-products
746895c2a4ef375c74bf0a643cbd3db7a8e19bcc
[ "MIT" ]
null
null
null
test/multiple_products_web/controllers/user_reset_password_controller_test.exs
manojsamanta/stripe-multiple-products
746895c2a4ef375c74bf0a643cbd3db7a8e19bcc
[ "MIT" ]
null
null
null
test/multiple_products_web/controllers/user_reset_password_controller_test.exs
manojsamanta/stripe-multiple-products
746895c2a4ef375c74bf0a643cbd3db7a8e19bcc
[ "MIT" ]
null
null
null
defmodule MultipleProductsWeb.UserResetPasswordControllerTest do use MultipleProductsWeb.ConnCase, async: true alias MultipleProducts.Accounts alias MultipleProducts.Repo import MultipleProducts.AccountsFixtures setup do %{user: user_fixture()} end describe "GET /users/reset_password" do test "...
34.149123
91
0.638325
e9652214f87a9c40bd1c86db2f810f26daa24875
1,163
ex
Elixir
lib/fika/code.ex
v0idpwn/fika
4453d1c9222f7c2ab09f03d436f2222c7e325344
[ "Apache-2.0" ]
null
null
null
lib/fika/code.ex
v0idpwn/fika
4453d1c9222f7c2ab09f03d436f2222c7e325344
[ "Apache-2.0" ]
null
null
null
lib/fika/code.ex
v0idpwn/fika
4453d1c9222f7c2ab09f03d436f2222c7e325344
[ "Apache-2.0" ]
null
null
null
defmodule Fika.Code do alias Fika.{ Parser, TypeChecker, ErlTranslate, Env } require Logger def load_file(file) do case File.read(file) do {:ok, str} -> load_string(str, file) {:error, error} -> IO.puts("Cannot read file: #{inspect(error)}") end end de...
24.229167
80
0.632846
e96538a20a5389c1430b0de36caa036612abe0b6
141
exs
Elixir
test/hogwarts_test.exs
fireproofsocks/hogwarts
45d1955bb4d33db6886957f0cfdb9bab6c13a443
[ "Apache-2.0" ]
null
null
null
test/hogwarts_test.exs
fireproofsocks/hogwarts
45d1955bb4d33db6886957f0cfdb9bab6c13a443
[ "Apache-2.0" ]
null
null
null
test/hogwarts_test.exs
fireproofsocks/hogwarts
45d1955bb4d33db6886957f0cfdb9bab6c13a443
[ "Apache-2.0" ]
null
null
null
defmodule HogwartsTest do use ExUnit.Case doctest Hogwarts test "greets the world" do assert Hogwarts.hello() == :world end end
15.666667
37
0.716312
e9653f81cde173bc4ab589ee5363d996009f01d7
1,701
ex
Elixir
lib/phat_web.ex
tajchumber/live-view-chat
d98d445b145a197eadc4381e264f3d1918f0b90f
[ "Apache-2.0" ]
50
2019-05-23T11:59:30.000Z
2022-03-11T04:12:36.000Z
lib/phat_web.ex
tajchumber/live-view-chat
d98d445b145a197eadc4381e264f3d1918f0b90f
[ "Apache-2.0" ]
6
2019-05-18T09:53:46.000Z
2021-01-27T11:26:15.000Z
lib/phat_web.ex
tajchumber/live-view-chat
d98d445b145a197eadc4381e264f3d1918f0b90f
[ "Apache-2.0" ]
18
2019-05-18T08:13:51.000Z
2021-11-23T13:57:33.000Z
defmodule PhatWeb do @moduledoc """ The entrypoint for defining your web interface, such as controllers, views, channels and so on. This can be used in your application as: use PhatWeb, :controller use PhatWeb, :view The definitions below will be executed for every view, controller, etc, so k...
23.625
83
0.683715
e96549f032b80e7c652f96c1afe92235308d86c7
358
ex
Elixir
lib/httparrot/cowboy.ex
idabmat/httparrot
1bc15bf4c7330341b36f7dc7d933285cda7bbf67
[ "MIT" ]
null
null
null
lib/httparrot/cowboy.ex
idabmat/httparrot
1bc15bf4c7330341b36f7dc7d933285cda7bbf67
[ "MIT" ]
null
null
null
lib/httparrot/cowboy.ex
idabmat/httparrot
1bc15bf4c7330341b36f7dc7d933285cda7bbf67
[ "MIT" ]
null
null
null
defmodule HTTParrot.Cowboy do defmacro __using__(opts) do methods = Keyword.get(opts, :methods, []) quote bind_quoted: [methods: methods] do def init(_transport, _req, _opts) do {:upgrade, :protocol, :cowboy_rest} end def allowed_methods(req, state) do {unquote(methods), re...
22.375
45
0.636872
e9654f47be0ffcc2b64387ae869953bb239192f2
11,908
ex
Elixir
lib/mix/lib/mix/dep.ex
scrogson/elixir
f6b2ddd81b9e679d67fca7876d446bd74c4901ad
[ "Apache-2.0" ]
1
2019-06-11T20:22:20.000Z
2019-06-11T20:22:20.000Z
lib/mix/lib/mix/dep.ex
scrogson/elixir
f6b2ddd81b9e679d67fca7876d446bd74c4901ad
[ "Apache-2.0" ]
null
null
null
lib/mix/lib/mix/dep.ex
scrogson/elixir
f6b2ddd81b9e679d67fca7876d446bd74c4901ad
[ "Apache-2.0" ]
null
null
null
defmodule Mix.Dep do @moduledoc false @doc """ The Mix.Dep struct keeps information about your project dependencies. It contains: * `scm` - a module representing the source code management tool (SCM) operations * `app` - the application name as an atom * `requirement` - a binary or regex ...
32.097035
132
0.640074
e96550f55c58359853131f2f36a6aae43caf26d4
1,659
ex
Elixir
lib/betex_web/telemetry.ex
esl/betex
b887d95c9c6edac4bcadb8da188fae215d04fe6c
[ "Apache-2.0" ]
1
2021-06-15T08:18:50.000Z
2021-06-15T08:18:50.000Z
lib/betex_web/telemetry.ex
AdiletAbylov/betex
b887d95c9c6edac4bcadb8da188fae215d04fe6c
[ "Apache-2.0" ]
null
null
null
lib/betex_web/telemetry.ex
AdiletAbylov/betex
b887d95c9c6edac4bcadb8da188fae215d04fe6c
[ "Apache-2.0" ]
2
2021-06-23T16:35:04.000Z
2021-06-23T16:35:44.000Z
defmodule BetexWeb.Telemetry do use Supervisor import Telemetry.Metrics def start_link(arg) do Supervisor.start_link(__MODULE__, arg, name: __MODULE__) end @impl true def init(_arg) do children = [ {:telemetry_poller, measurements: periodic_measurements(), period: 10_000} # Add reporte...
30.722222
86
0.662447
e965794bd584a9e38abdfd7bc078a86060822544
1,468
exs
Elixir
mix.exs
libitx/txpost
ae97fc92214e22ea4621c9fef82596b0f780cbfb
[ "Apache-2.0" ]
7
2021-02-12T11:45:44.000Z
2022-01-17T15:50:47.000Z
mix.exs
libitx/txpost
ae97fc92214e22ea4621c9fef82596b0f780cbfb
[ "Apache-2.0" ]
null
null
null
mix.exs
libitx/txpost
ae97fc92214e22ea4621c9fef82596b0f780cbfb
[ "Apache-2.0" ]
null
null
null
defmodule Txpost.MixProject do use Mix.Project def project do [ app: :txpost, version: "0.1.0-beta.3", elixir: "~> 1.10", start_permanent: Mix.env() == :prod, deps: deps(), name: "Txpost", description: "Receive Bitcoin transactions over HTTP in a concise and efficient ...
24.065574
116
0.521798
e965f6d625d0df123deb7bbab329122e77b4e124
2,094
exs
Elixir
apps/toniefy/test/toniex/library_test.exs
benvp/toniefy.me
9a432380e43f1c9a15ccd1910357d491d64a1dc0
[ "MIT" ]
17
2021-04-12T10:01:14.000Z
2022-02-25T17:30:27.000Z
apps/toniefy/test/toniex/library_test.exs
benvp/toniefy.me
9a432380e43f1c9a15ccd1910357d491d64a1dc0
[ "MIT" ]
1
2022-03-09T09:35:00.000Z
2022-03-09T11:46:14.000Z
apps/toniefy/test/toniex/library_test.exs
benvp/toniefy
9a432380e43f1c9a15ccd1910357d491d64a1dc0
[ "MIT" ]
null
null
null
defmodule Toniex.LibraryTest do use Toniex.DataCase alias Toniex.Library describe "playlists" do alias Toniex.Library.Playlist @valid_attrs %{title: "some title"} @update_attrs %{title: "some updated title"} @invalid_attrs %{title: nil} def playlist_fixture(attrs \\ %{}) do {:ok, pla...
32.215385
93
0.688157
e96629740e5c03b43a201b533814c7ea04c1dccf
1,065
ex
Elixir
lib/yacco_web/router.ex
rengel-de/yacco
b8714165d2d1ace07f4116719b54e8ea077c3587
[ "Apache-2.0" ]
null
null
null
lib/yacco_web/router.ex
rengel-de/yacco
b8714165d2d1ace07f4116719b54e8ea077c3587
[ "Apache-2.0" ]
null
null
null
lib/yacco_web/router.ex
rengel-de/yacco
b8714165d2d1ace07f4116719b54e8ea077c3587
[ "Apache-2.0" ]
null
null
null
defmodule YaccoWeb.Router do use YaccoWeb, :router pipeline :browser do plug :accepts, ["html"] plug :fetch_session plug :fetch_flash plug :protect_from_forgery plug :put_secure_browser_headers end pipeline :api do plug :accepts, ["json"] end scope "/", YaccoWeb do pipe_throug...
24.767442
70
0.695775
e96659e3dd900a4b20b7b16b362c13eb3d936e77
1,093
exs
Elixir
test/invoices/invoice_manager_test.exs
fstromback/bitpal
2c50e6700d7383b4f025b3734ba37257c69ce47e
[ "BSD-3-Clause-Clear" ]
null
null
null
test/invoices/invoice_manager_test.exs
fstromback/bitpal
2c50e6700d7383b4f025b3734ba37257c69ce47e
[ "BSD-3-Clause-Clear" ]
null
null
null
test/invoices/invoice_manager_test.exs
fstromback/bitpal
2c50e6700d7383b4f025b3734ba37257c69ce47e
[ "BSD-3-Clause-Clear" ]
null
null
null
defmodule InvoiceManagerTest do use BitPal.IntegrationCase alias BitPal.Currencies alias BitPal.ExchangeRate alias BitPal.InvoiceManager @tag backends: true test "initialize" do Currencies.register!(:BCH) assert {:ok, inv1} = Invoices.register(%{ amount: Money.parse!(2....
28.763158
88
0.632205
e96667ad34338a0074bf951eaa311e035e4ad058
2,609
ex
Elixir
lib/new_relic/telemetry/phoenix.ex
tpitale/elixir_agent
f356b588fe9d7cc3b9db00d9a251e009a20b3e0e
[ "Apache-2.0" ]
227
2018-09-05T15:33:23.000Z
2022-02-25T18:12:06.000Z
lib/new_relic/telemetry/phoenix.ex
tpitale/elixir_agent
f356b588fe9d7cc3b9db00d9a251e009a20b3e0e
[ "Apache-2.0" ]
211
2018-09-05T21:42:41.000Z
2022-03-25T17:51:56.000Z
lib/new_relic/telemetry/phoenix.ex
tpitale/elixir_agent
f356b588fe9d7cc3b9db00d9a251e009a20b3e0e
[ "Apache-2.0" ]
84
2018-09-05T04:26:26.000Z
2022-03-09T14:28:14.000Z
defmodule NewRelic.Telemetry.Phoenix do use GenServer @moduledoc """ Provides `Phoenix` instrumentation via `telemetry`. This instrumentation adds extra Phoenix specific instrumentation on top of the base `NewRelic.Telemetry.Plug` instrumentation. """ def start_link(_) do config = %{ enabled?:...
26.353535
89
0.652741
e966be63f654fdbbf3c85b4a0610753de16f3564
523
ex
Elixir
lib/maru/builder/versioning/none.ex
davidenko87/maru
62b6ca0e42dd550683af8743f50e67048c4027d0
[ "BSD-3-Clause" ]
819
2016-11-25T07:12:04.000Z
2022-03-16T06:59:36.000Z
lib/maru/builder/versioning/none.ex
davidenko87/maru
62b6ca0e42dd550683af8743f50e67048c4027d0
[ "BSD-3-Clause" ]
71
2016-11-24T20:19:09.000Z
2021-06-09T10:12:23.000Z
lib/maru/builder/versioning/none.ex
davidenko87/maru
62b6ca0e42dd550683af8743f50e67048c4027d0
[ "BSD-3-Clause" ]
56
2015-01-10T23:34:12.000Z
2016-11-17T00:13:56.000Z
defmodule Maru.Builder.Versioning.None do @moduledoc """ Adapter for no versioning module. """ use Maru.Builder.Versioning @doc false def conn_for_match(:match, _, path) do quote do %Plug.Conn{ path_info: unquote(path_for_match(path)) } end end def conn_for_match(method, _...
18.678571
51
0.629063
e966d4e29ae3ee356942c2a1d4b2b0fba195ff78
617
ex
Elixir
lib/kitting_system/flash/arduino.ex
rosetta-home/kitting_system
deb92ae1726e4140aefebb0d6841d109182d7282
[ "Apache-2.0" ]
3
2018-01-26T18:21:27.000Z
2018-05-27T02:35:45.000Z
lib/kitting_system/flash/arduino.ex
rosetta-home/kitting_system
deb92ae1726e4140aefebb0d6841d109182d7282
[ "Apache-2.0" ]
null
null
null
lib/kitting_system/flash/arduino.ex
rosetta-home/kitting_system
deb92ae1726e4140aefebb0d6841d109182d7282
[ "Apache-2.0" ]
1
2019-09-14T03:16:40.000Z
2019-09-14T03:16:40.000Z
defmodule KittingSystem.Flash.Arduino do require Logger @arduino_type "atmega328p" @baud_rate "115200" def flash(firmware, interface) do fw = Path.join(:code.priv_dir(:kitting_system), firmware) res = System.cmd("docker", [ "run", "--rm", "-v=#{fw}:/firmware.ino", "--device=#{i...
21.275862
61
0.568882
e966e0a81c28cf705fa364ce7d5e8dd376c5f1e2
267
exs
Elixir
priv/repo/migrations/20170104113708_add_stripe_connect_account_reference_to_external_accounts.exs
superdev999/Phoenix-project
ab13ac9366cdd0aa9581da7faf993b11aaa5344c
[ "MIT" ]
275
2015-06-23T00:20:51.000Z
2021-08-19T16:17:37.000Z
priv/repo/migrations/20170104113708_add_stripe_connect_account_reference_to_external_accounts.exs
superdev999/Phoenix-project
ab13ac9366cdd0aa9581da7faf993b11aaa5344c
[ "MIT" ]
1,304
2015-06-26T02:11:54.000Z
2019-12-12T21:08:00.000Z
priv/repo/migrations/20170104113708_add_stripe_connect_account_reference_to_external_accounts.exs
superdev999/Phoenix-project
ab13ac9366cdd0aa9581da7faf993b11aaa5344c
[ "MIT" ]
140
2016-01-01T18:19:47.000Z
2020-11-22T06:24:47.000Z
defmodule CodeCorps.Repo.Migrations.AddStripeConnectAccountReferenceToExternalAccounts do use Ecto.Migration def change do alter table(:stripe_external_accounts) do add :stripe_connect_account_id, references(:stripe_connect_accounts) end end end
26.7
89
0.812734
e9670438b3e7a667d350724e0ab736925ac5d321
1,941
ex
Elixir
lib/netstrings/stream.ex
mwmiller/netstrings_ex
a36095a24614dbfcb723712582482931a6d855bc
[ "MIT" ]
1
2016-02-07T18:40:52.000Z
2016-02-07T18:40:52.000Z
lib/netstrings/stream.ex
mwmiller/ex_netstrings
a36095a24614dbfcb723712582482931a6d855bc
[ "MIT" ]
null
null
null
lib/netstrings/stream.ex
mwmiller/ex_netstrings
a36095a24614dbfcb723712582482931a6d855bc
[ "MIT" ]
null
null
null
# This implementation was cribbed from IO.stream. # It may require some further readjustment or reconsideration defmodule Netstrings.StreamError do defexception [:reason, :message] def exception(opts) do reason = opts[:reason] formatted = IO.iodata_to_binary(:file.format_error(reason)) %Netstrings.Stre...
25.539474
92
0.618753
e96726c8a21d85b60ecfd98f406c5bc648eaa8a4
3,915
ex
Elixir
lib/contexsample_web/live/scales.ex
zdenal/contex-samples
44cfea6f218d7903451839c27bf48f75eb64d943
[ "MIT" ]
15
2020-01-26T16:46:14.000Z
2021-07-06T07:27:44.000Z
lib/contexsample_web/live/scales.ex
zdenal/contex-samples
44cfea6f218d7903451839c27bf48f75eb64d943
[ "MIT" ]
4
2020-01-26T09:06:24.000Z
2021-10-05T01:41:23.000Z
lib/contexsample_web/live/scales.ex
zdenal/contex-samples
44cfea6f218d7903451839c27bf48f75eb64d943
[ "MIT" ]
6
2020-05-13T02:00:03.000Z
2022-02-14T17:55:56.000Z
defmodule ContexSampleWeb.ScalesLive do use Phoenix.LiveView use Phoenix.HTML alias Contex.{Axis, Scale, TimeScale, ContinuousLinearScale} def render(assigns) do ~L""" <h3>Fun With Scales</h3> <div class="container"> <div class="row"> <div class="column"> <table> ...
40.78125
126
0.611239
e9672c48e505e405d2f2107cd014161038aba275
683
exs
Elixir
test/cpf_test.exs
heliohead/cpf_cnpj
43311c7ef014c121d236aa78af5616b1841871db
[ "MIT" ]
null
null
null
test/cpf_test.exs
heliohead/cpf_cnpj
43311c7ef014c121d236aa78af5616b1841871db
[ "MIT" ]
null
null
null
test/cpf_test.exs
heliohead/cpf_cnpj
43311c7ef014c121d236aa78af5616b1841871db
[ "MIT" ]
null
null
null
defmodule CpfTest do use ExUnit.Case doctest Cpf test "strip" do assert Cpf.strip("415.276.500-30") == "41527650030" end test "valid?" do assert Cpf.valid?("415.276.500-30") assert Cpf.valid?("68894480062") refute Cpf.valid?("415.276.500-00") refute Cpf.valid?("41527650000") end tes...
22.032258
55
0.66325
e9674ec948220d3adf61c20f6c50784537fc3c2e
1,297
ex
Elixir
frameworks/Elixir/plug/lib/framework_benchmarks/handlers/update.ex
xsoheilalizadeh/FrameworkBenchmarks
855527008f7488e4fd508d1e72dfa9953874a2c6
[ "BSD-3-Clause" ]
5,300
2015-01-02T08:04:20.000Z
2022-03-31T10:08:33.000Z
frameworks/Elixir/plug/lib/framework_benchmarks/handlers/update.ex
xsoheilalizadeh/FrameworkBenchmarks
855527008f7488e4fd508d1e72dfa9953874a2c6
[ "BSD-3-Clause" ]
3,075
2015-01-01T05:11:45.000Z
2022-03-31T23:56:33.000Z
frameworks/Elixir/plug/lib/framework_benchmarks/handlers/update.ex
xsoheilalizadeh/FrameworkBenchmarks
855527008f7488e4fd508d1e72dfa9953874a2c6
[ "BSD-3-Clause" ]
2,151
2015-01-02T14:16:09.000Z
2022-03-30T00:15:26.000Z
defmodule FrameworkBenchmarks.Handlers.Update do @moduledoc """ handler for the /updates route """ defp random_but(not_this_value) do case :rand.uniform(10_000) do new_value when new_value == not_this_value -> random_but(not_this_value) new_value -> new_value end end d...
22.754386
91
0.578258
e967c07f0de8d10e424bf4c3d6317b4215a7177f
1,937
exs
Elixir
test/erlef_web/controllers/admin/app_key_test.exs
joaquinalcerro/website
52dc89c70cd0b42127ab233a4c0d10f626d2b698
[ "Apache-2.0" ]
71
2019-07-02T18:06:15.000Z
2022-03-09T15:30:08.000Z
test/erlef_web/controllers/admin/app_key_test.exs
joaquinalcerro/website
52dc89c70cd0b42127ab233a4c0d10f626d2b698
[ "Apache-2.0" ]
157
2019-07-02T01:21:16.000Z
2022-03-30T16:08:12.000Z
test/erlef_web/controllers/admin/app_key_test.exs
joaquinalcerro/website
52dc89c70cd0b42127ab233a4c0d10f626d2b698
[ "Apache-2.0" ]
45
2019-07-04T05:51:11.000Z
2022-02-27T11:56:02.000Z
defmodule ErlefWeb.Admin.AppKeyTest do use ErlefWeb.ConnCase alias Erlef.Integrations @create_attrs %{ name: "Key name", type: :webhook } @invalid_attrs %{name: nil, type: :foo} @audit_opts [audit: %{member_id: Ecto.UUID.generate()}] def fixture(:app) do {:ok, app} = Integrations.create_a...
29.8
96
0.672173
e96807e23c5d4c6c47b8df8a95984701d16f6dfa
2,151
ex
Elixir
clients/remote_build_execution/lib/google_api/remote_build_execution/v2/model/build_bazel_remote_execution_v2_results_cache_policy.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/remote_build_execution/lib/google_api/remote_build_execution/v2/model/build_bazel_remote_execution_v2_results_cache_policy.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/remote_build_execution/lib/google_api/remote_build_execution/v2/model/build_bazel_remote_execution_v2_results_cache_policy.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
35.85
131
0.752208
e968134d2a7ddbc4bdfff7fbf41a297fa9ccb342
2,535
ex
Elixir
clients/games/lib/google_api/games/v1/model/instance_ios_details.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/games/lib/google_api/games/v1/model/instance_ios_details.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/games/lib/google_api/games/v1/model/instance_ios_details.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
161
0.698619
e96827e8caaac05f76fe80b8481dc16b28d408a9
2,543
ex
Elixir
lib/docdog_web/controllers/project_controller.ex
wunsh/docdog-engine
a3044d21a6ac00098a295249358a367059453b8d
[ "MIT" ]
40
2017-04-19T15:35:42.000Z
2020-02-14T11:07:44.000Z
lib/docdog_web/controllers/project_controller.ex
wunsh/docdog-engine
a3044d21a6ac00098a295249358a367059453b8d
[ "MIT" ]
43
2017-01-17T23:03:47.000Z
2018-08-16T01:25:24.000Z
lib/docdog_web/controllers/project_controller.ex
wunsh/docdog-engine
a3044d21a6ac00098a295249358a367059453b8d
[ "MIT" ]
6
2018-02-15T09:43:15.000Z
2018-04-10T21:08:36.000Z
defmodule DocdogWeb.ProjectController do use DocdogWeb, :controller plug(DocdogWeb.AuthorizationRequiredPlug) alias Docdog.Editor alias Docdog.Editor.Project def index(conn, _params) do user = conn.assigns.current_user projects = Editor.full_list_projects(user) render(conn, "index.html", proje...
31.395062
91
0.668502
e9682d43baaf7e247a5a6e891ae8dcd20461aef9
402
ex
Elixir
lib/ash/error/invalid.ex
savish/ash
7faf73097a6c6f801851e9d89569b6f5e6e87f81
[ "MIT" ]
null
null
null
lib/ash/error/invalid.ex
savish/ash
7faf73097a6c6f801851e9d89569b6f5e6e87f81
[ "MIT" ]
null
null
null
lib/ash/error/invalid.ex
savish/ash
7faf73097a6c6f801851e9d89569b6f5e6e87f81
[ "MIT" ]
null
null
null
defmodule Ash.Error.Invalid do @moduledoc "The top level invalid error" use Ash.Error.Exception def_ash_error([:errors, :stacktraces?], class: :invalid) defimpl Ash.ErrorKind do def id(_), do: Ash.UUID.generate() def code(_), do: "invalid" def message(%{errors: errors, stacktraces?: stacktraces?...
23.647059
65
0.691542
e96848aedfc924d7392da3ee324fa23d588bb4e5
932
ex
Elixir
lib/kvstore/record.ex
Ellocsys/KVstore
f5ee23a189bdf537e0ffa8ee7489f39880a21971
[ "MIT" ]
null
null
null
lib/kvstore/record.ex
Ellocsys/KVstore
f5ee23a189bdf537e0ffa8ee7489f39880a21971
[ "MIT" ]
null
null
null
lib/kvstore/record.ex
Ellocsys/KVstore
f5ee23a189bdf537e0ffa8ee7489f39880a21971
[ "MIT" ]
null
null
null
defmodule StorageRecord do defstruct key: nil, value: nil, ttl: 0 @type t(key, value, ttl) :: %StorageRecord{key: key, value: value, ttl: ttl} @type t :: %StorageRecord{key: any, value: any, ttl: integer} @doc """ Конвертирует в кортедж вида {key, val, ttl} ## Параметры - record: ...
28.242424
84
0.648069
e9685406a433aa9d86b07da913cb14612505902d
2,525
ex
Elixir
lib/ecto/updater.ex
ArcBlock/utility_belt
382c6f8c9b8cf1db1d394476a2c47972430f798e
[ "MIT" ]
1
2020-06-06T19:35:43.000Z
2020-06-06T19:35:43.000Z
lib/ecto/updater.ex
ArcBlock/utility_belt
382c6f8c9b8cf1db1d394476a2c47972430f798e
[ "MIT" ]
11
2018-11-27T17:06:16.000Z
2019-02-14T07:11:36.000Z
lib/ecto/updater.ex
ArcBlock/utility_belt
382c6f8c9b8cf1db1d394476a2c47972430f798e
[ "MIT" ]
1
2018-08-13T21:07:03.000Z
2018-08-13T21:07:03.000Z
defmodule UtilityBelt.Ecto.Updater do @moduledoc """ Helper functions to update database """ def insert(context), do: process(context, :insert) def upsert(context, opts) do new_opts = Keyword.merge(context.opts || [], opts || []) process(%{context | opts: new_opts}, :upsert) end def update(con...
25.505051
91
0.662574
e9686cbbf5c3512fa06ab1ceb6ba0d255abf54bd
79
ex
Elixir
config/page.js.ex
lawshe/boda
ebcb3af27bca294cb5d7e786a37b1d49f9af4b19
[ "MIT" ]
1
2018-02-03T21:37:43.000Z
2018-02-03T21:37:43.000Z
config/page.js.ex
lawshe/boda
ebcb3af27bca294cb5d7e786a37b1d49f9af4b19
[ "MIT" ]
null
null
null
config/page.js.ex
lawshe/boda
ebcb3af27bca294cb5d7e786a37b1d49f9af4b19
[ "MIT" ]
null
null
null
module.exports = { port: 3000, host: '', token_secret: 'bodabodaboda' };
13.166667
30
0.620253
e9687278b1a543f56d9bdf902dcb892543ee60e8
4,921
exs
Elixir
test/gcloud_speech_to_text/samples_queue_test.exs
membraneframework/membrane-element-gcloud-speech-to-text
18483aae342af59f0dbbec1cf26cfbc9ccb9fd3b
[ "Apache-2.0" ]
null
null
null
test/gcloud_speech_to_text/samples_queue_test.exs
membraneframework/membrane-element-gcloud-speech-to-text
18483aae342af59f0dbbec1cf26cfbc9ccb9fd3b
[ "Apache-2.0" ]
null
null
null
test/gcloud_speech_to_text/samples_queue_test.exs
membraneframework/membrane-element-gcloud-speech-to-text
18483aae342af59f0dbbec1cf26cfbc9ccb9fd3b
[ "Apache-2.0" ]
null
null
null
defmodule Membrane.Element.GCloud.SpeechToText.SamplesQueueTest do use ExUnit.Case, async: true alias Membrane.Element.GCloud.SpeechToText.SamplesQueue test "new without arguments" do result = SamplesQueue.new() assert result.q |> Enum.to_list() == [] assert result.total == 0 assert result.limit...
30.565217
98
0.592359
e9687b0313d0a498f102d16e00e26f72f0315b10
553
ex
Elixir
apps/admin_api/lib/admin_api/v1/views/api_key_view.ex
vanmil/ewallet
6c1aca95a83e0a9d93007670a40d8c45764a8122
[ "Apache-2.0" ]
1
2018-12-07T06:21:21.000Z
2018-12-07T06:21:21.000Z
apps/admin_api/lib/admin_api/v1/views/api_key_view.ex
vanmil/ewallet
6c1aca95a83e0a9d93007670a40d8c45764a8122
[ "Apache-2.0" ]
null
null
null
apps/admin_api/lib/admin_api/v1/views/api_key_view.ex
vanmil/ewallet
6c1aca95a83e0a9d93007670a40d8c45764a8122
[ "Apache-2.0" ]
null
null
null
defmodule AdminAPI.V1.APIKeyView do use AdminAPI, :view alias EWallet.Web.V1.{APIKeySerializer, ResponseSerializer} def render("api_key.json", %{api_key: api_key}) do api_key |> APIKeySerializer.serialize() |> ResponseSerializer.serialize(success: true) end def render("api_keys.json", %{api_keys...
26.333333
61
0.719711
e96883aa5698e3178cd0d609fcf543db95d7d483
3,890
exs
Elixir
test/membrane/rtp/jitter_buffer/pipeline_test.exs
membraneframework/membrane_rtp
1df5f0bdb66d5c89bc63122c8b29af6cd4e600aa
[ "Apache-2.0" ]
null
null
null
test/membrane/rtp/jitter_buffer/pipeline_test.exs
membraneframework/membrane_rtp
1df5f0bdb66d5c89bc63122c8b29af6cd4e600aa
[ "Apache-2.0" ]
2
2020-04-01T14:06:34.000Z
2020-04-08T11:48:59.000Z
test/membrane/rtp/jitter_buffer/pipeline_test.exs
membraneframework/membrane_rtp
1df5f0bdb66d5c89bc63122c8b29af6cd4e600aa
[ "Apache-2.0" ]
null
null
null
defmodule Membrane.RTP.JitterBuffer.PipelineTest do use ExUnit.Case import Membrane.Testing.Assertions alias Membrane.RTP.JitterBuffer, as: RTPJitterBuffer alias Membrane.RTP.BufferFactory alias Membrane.Testing @seq_number_limit 65_536 defmodule PushTestingSrc do use Membrane.Source alias Mem...
27.588652
87
0.611311
e968bc1976fa73bb8b3084c9bba00233366ec5f4
2,216
ex
Elixir
clients/content/lib/google_api/content/v2/model/table.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/content/lib/google_api/content/v2/model/table.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/content/lib/google_api/content/v2/model/table.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.571429
182
0.709838
e968c2536ef781b0dfb93d70310c9908a208969c
2,273
ex
Elixir
lib/callbacks.ex
sproutapp/pavlov
7f3c0d7c75c8c2875e21b495511a291194bfc85a
[ "MIT" ]
148
2015-01-04T16:44:30.000Z
2022-02-15T03:08:28.000Z
lib/callbacks.ex
sproutapp/pavlov
7f3c0d7c75c8c2875e21b495511a291194bfc85a
[ "MIT" ]
25
2015-01-05T16:24:24.000Z
2016-05-05T05:28:07.000Z
lib/callbacks.ex
sproutapp/pavlov
7f3c0d7c75c8c2875e21b495511a291194bfc85a
[ "MIT" ]
11
2015-01-06T11:08:29.000Z
2019-11-10T01:41:45.000Z
defmodule Pavlov.Callbacks do @moduledoc """ Allows running tasks in-between test executions. Currently only supports running tasks before tests are executed. ## Context If you return `{:ok, <dict>}` from `before :all`, the dictionary will be merged into the current context and be available in all subseq...
27.059524
113
0.650682
e968e7711a8ad203fe34494cc2fcc7b7dc182808
775
ex
Elixir
lib/simple_budget/token_auth/email.ex
corybuecker/simple-budget
d86241ff712552267da87052120468b01d2b8f41
[ "MIT" ]
2
2019-04-02T01:06:40.000Z
2019-05-13T01:12:24.000Z
lib/simple_budget/token_auth/email.ex
corybuecker/simple-budget
d86241ff712552267da87052120468b01d2b8f41
[ "MIT" ]
7
2018-12-27T12:33:38.000Z
2021-03-08T22:31:14.000Z
lib/simple_budget/token_auth/email.ex
corybuecker/simple-budget
d86241ff712552267da87052120468b01d2b8f41
[ "MIT" ]
null
null
null
defmodule SimpleBudget.TokenAuth.Email do @moduledoc false @behaviour SimpleBudget.TokenAuth.Google @impl SimpleBudget.TokenAuth.Google def verify_and_validate_token(token) do signer = Joken.Signer.create("HS256", Application.get_env(:simple_budget, :token_key)) config = Joken.Config.default_claims()...
24.21875
90
0.656774
e9694558a54ee97e1d9da89a3c721acaa3e267b2
1,962
exs
Elixir
config/dev.exs
xorvo/elixir_blog
67123c05eb4cacfa482604ce62c4f5a7e9bc1690
[ "MIT" ]
null
null
null
config/dev.exs
xorvo/elixir_blog
67123c05eb4cacfa482604ce62c4f5a7e9bc1690
[ "MIT" ]
null
null
null
config/dev.exs
xorvo/elixir_blog
67123c05eb4cacfa482604ce62c4f5a7e9bc1690
[ "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 :elixir_blog, ElixirBlogWeb.Endpoint, http: [p...
33.254237
170
0.707951
e96959633ae555cc4897e6a4de24cd66b9bbd03c
3,717
exs
Elixir
languages/elixir/exercises/concept/secrets/test/secrets_test.exs
AlexLeSang/v3
3d35961a961b5a2129b1d42f1d118972d9665357
[ "MIT" ]
200
2019-12-12T13:50:59.000Z
2022-02-20T22:38:42.000Z
languages/elixir/exercises/concept/secrets/test/secrets_test.exs
AlexLeSang/v3
3d35961a961b5a2129b1d42f1d118972d9665357
[ "MIT" ]
1,938
2019-12-12T08:07:10.000Z
2021-01-29T12:56:13.000Z
languages/elixir/exercises/concept/secrets/test/secrets_test.exs
AlexLeSang/v3
3d35961a961b5a2129b1d42f1d118972d9665357
[ "MIT" ]
239
2019-12-12T14:09:08.000Z
2022-03-18T00:04:07.000Z
defmodule SecretsTest do use ExUnit.Case describe "secret_add" do # @tag :pending test "add 3" do add = Secrets.secret_add(3) assert add.(3) === 6 end @tag :pending test "add 6" do add = Secrets.secret_add(6) assert add.(9) === 15 end end describe "secret_subtr...
20.65
48
0.572236
e9697228352433890d9fa47227296296832940b1
720
ex
Elixir
graphql/web/gettext.ex
leighshepperson/got-stats
820e7aab68a0de39f55ed55fd18ca9e658a084ff
[ "MIT" ]
null
null
null
graphql/web/gettext.ex
leighshepperson/got-stats
820e7aab68a0de39f55ed55fd18ca9e658a084ff
[ "MIT" ]
null
null
null
graphql/web/gettext.ex
leighshepperson/got-stats
820e7aab68a0de39f55ed55fd18ca9e658a084ff
[ "MIT" ]
null
null
null
defmodule GOTStats.GraphQL.Gettext do @moduledoc """ A module providing Internationalization with a gettext-based API. By using [Gettext](https://hexdocs.pm/gettext), your module gains a set of macros for translations, for example: import GOTStats.GraphQL.Gettext # Simple translation gettex...
28.8
72
0.683333
e969a98fcdca03e6db1591adec0524b56e25c4c7
72,347
ex
Elixir
clients/big_query_reservation/lib/google_api/big_query_reservation/v1/api/projects.ex
richiboi1977/elixir-google-api
c495bb3548090eb7a63d12f6fb145ec48aecdc0b
[ "Apache-2.0" ]
1
2021-10-01T09:20:41.000Z
2021-10-01T09:20:41.000Z
clients/big_query_reservation/lib/google_api/big_query_reservation/v1/api/projects.ex
richiboi1977/elixir-google-api
c495bb3548090eb7a63d12f6fb145ec48aecdc0b
[ "Apache-2.0" ]
null
null
null
clients/big_query_reservation/lib/google_api/big_query_reservation/v1/api/projects.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...
48.039177
1,495
0.629425
e969ad4ab994c6e2570c3456155166fd7a5585ed
5,267
ex
Elixir
lib/construct.ex
ExpressApp/struct
301df7388b9283f39ee43bb209c06f3aa055c8e7
[ "MIT" ]
5
2017-12-25T16:09:22.000Z
2017-12-26T12:42:40.000Z
lib/construct.ex
ExpressApp/struct
301df7388b9283f39ee43bb209c06f3aa055c8e7
[ "MIT" ]
null
null
null
lib/construct.ex
ExpressApp/struct
301df7388b9283f39ee43bb209c06f3aa055c8e7
[ "MIT" ]
1
2017-12-26T10:07:56.000Z
2017-12-26T10:07:56.000Z
defmodule Construct do @moduledoc """ Construct internally divided into three components: * `Construct` — defining structures; * `Construct.Cast` — making structure instances; * `Construct.Type` — type-coercion and custom type behaviour. ## Construct definition defmodule StructureName do ...
29.757062
116
0.665654
e969f0ce13cff461aa12add5c7df3bbaff78450b
1,117
exs
Elixir
apps/example/config/config.exs
jfis/ex-gulp
806d305ede7df3c2b42d21c2e7b574987832c8d6
[ "MIT" ]
33
2015-04-21T20:10:42.000Z
2021-09-28T05:54:37.000Z
example/config/config.exs
IdahoEv/prez-tdd-in-elixir
9742dab3801e1363831d85666a39e3579fa058ff
[ "MIT" ]
1
2018-01-23T16:50:46.000Z
2018-01-23T16:53:23.000Z
example/config/config.exs
IdahoEv/prez-tdd-in-elixir
9742dab3801e1363831d85666a39e3579fa058ff
[ "MIT" ]
19
2015-01-09T13:39:06.000Z
2021-09-15T05:39:33.000Z
# This file is responsible for configuring your application # and its dependencies with the aid of the Mix.Config module. use Mix.Config # This configuration is loaded before any dependency and is restricted # to this project. If another project depends on this project, this # file won't be loaded nor affect the paren...
36.032258
73
0.751119
e96a373e4e65986e0745996fd162ab649502987a
2,550
ex
Elixir
lib/koans/14_enums.ex
teamertibebu/elixir-koans
eab85c01c34e9e9676e0258713945a4d868e5d87
[ "MIT" ]
null
null
null
lib/koans/14_enums.ex
teamertibebu/elixir-koans
eab85c01c34e9e9676e0258713945a4d868e5d87
[ "MIT" ]
null
null
null
lib/koans/14_enums.ex
teamertibebu/elixir-koans
eab85c01c34e9e9676e0258713945a4d868e5d87
[ "MIT" ]
null
null
null
defmodule Enums do use Koans @intro "Enums" koan "Knowing how many elements are in a list is important for book-keeping" do assert Enum.count([1, 2, 3]) == 3 end koan "Depending on the type, it counts pairs" do assert Enum.count(%{a: :foo, b: :bar}) == 2 end def less_than_five?(n), do: n < 5 ...
29.651163
95
0.613333
e96a7733e57f96296557e909ae022c376f111f9a
2,798
ex
Elixir
clients/pub_sub/lib/google_api/pub_sub/v1/model/big_query_config.ex
yoshi-code-bot/elixir-google-api
cdb6032f01fac5ab704803113c39f2207e9e019d
[ "Apache-2.0" ]
null
null
null
clients/pub_sub/lib/google_api/pub_sub/v1/model/big_query_config.ex
yoshi-code-bot/elixir-google-api
cdb6032f01fac5ab704803113c39f2207e9e019d
[ "Apache-2.0" ]
null
null
null
clients/pub_sub/lib/google_api/pub_sub/v1/model/big_query_config.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...
47.423729
390
0.721944
e96a78b9f369fd02a6630a6df8ad798f3c6c7668
2,901
ex
Elixir
lib/ex_unit/runner.ex
tlossen/elixir
38567f7f84bfce69a58c0be0ee6959cc7c6b3d6b
[ "MIT" ]
1
2015-10-25T11:30:13.000Z
2015-10-25T11:30:13.000Z
lib/ex_unit/runner.ex
tlossen/elixir
38567f7f84bfce69a58c0be0ee6959cc7c6b3d6b
[ "MIT" ]
null
null
null
lib/ex_unit/runner.ex
tlossen/elixir
38567f7f84bfce69a58c0be0ee6959cc7c6b3d6b
[ "MIT" ]
null
null
null
module ExUnit::Runner def __bound__(formatter, cases, max_cases) @( 'formatter: formatter, 'cases: cases, 'max_cases: max_cases, 'taken_cases: 0, 'sync_cases: [] ) end % The runner entry point. At first, it will simply spawn cases and start % looping expecting messages. Wh...
26.614679
80
0.645984
e96a7c0eaa854c843376b502a58f9a4ae795f734
316
ex
Elixir
lib/bitfinex/public.ex
hosh/ex-bitfinex-api
d72efbd8573dfbe71c700f445f40a9a3ef1239cf
[ "MIT" ]
null
null
null
lib/bitfinex/public.ex
hosh/ex-bitfinex-api
d72efbd8573dfbe71c700f445f40a9a3ef1239cf
[ "MIT" ]
null
null
null
lib/bitfinex/public.ex
hosh/ex-bitfinex-api
d72efbd8573dfbe71c700f445f40a9a3ef1239cf
[ "MIT" ]
null
null
null
defmodule Bitfinex.Public do use HTTPoison.Base def order_book(first, second) do with {:ok, response} <- get("/book/" <> first <> second), {:ok, data} <- Poison.Parser.parse(response.body), do: {:ok, data} end def process_url(url) do "https://api.bitfinex.com/v1" <> url end end
22.571429
62
0.613924
e96ac599975e6965ffbe8d2421696474ae933a92
38
ex
Elixir
testData/org/elixir_lang/psi/operation/prefix/zero_operands.ex
keyno63/intellij-elixir
4033e319992c53ddd42a683ee7123a97b5e34f02
[ "Apache-2.0" ]
1,668
2015-01-03T05:54:27.000Z
2022-03-25T08:01:20.000Z
testData/org/elixir_lang/psi/operation/prefix/zero_operands.ex
keyno63/intellij-elixir
4033e319992c53ddd42a683ee7123a97b5e34f02
[ "Apache-2.0" ]
2,018
2015-01-01T22:43:39.000Z
2022-03-31T20:13:08.000Z
testData/org/elixir_lang/psi/operation/prefix/zero_operands.ex
keyno63/intellij-elixir
4033e319992c53ddd42a683ee7123a97b5e34f02
[ "Apache-2.0" ]
145
2015-01-15T11:37:16.000Z
2021-12-22T05:51:02.000Z
defmodule Prefix do <caret>!<<a end
9.5
19
0.684211
e96ae6a138a856bbcbbb76e4377b5ca790188af2
971
exs
Elixir
test/alice/handlers/roller_test.exs
adamzaninovich/alice_roller
6109bd8c73d218bf62a31390d6468d41c8ae3a92
[ "MIT" ]
null
null
null
test/alice/handlers/roller_test.exs
adamzaninovich/alice_roller
6109bd8c73d218bf62a31390d6468d41c8ae3a92
[ "MIT" ]
null
null
null
test/alice/handlers/roller_test.exs
adamzaninovich/alice_roller
6109bd8c73d218bf62a31390d6468d41c8ae3a92
[ "MIT" ]
null
null
null
defmodule Alice.Handlers.RollerTest do use ExUnit.Case alias Alice.Conn def conn_with_text(text) do Conn.make(%{text: text}, %{}) end test "it rolls a single dice appropriately" do result = "roll 3d1+1" |> conn_with_text |> Conn.add_captures(~r/roll (?<term>.+)/i) |> Alice.H...
24.275
86
0.624099
e96aeddf69e433170b6acb7b659664db9df4868e
2,671
exs
Elixir
test/simple_api_web/controllers/user_controller_test.exs
miklt/api-simples
1344928f647d72fad76307228849532c9c76b473
[ "MIT" ]
null
null
null
test/simple_api_web/controllers/user_controller_test.exs
miklt/api-simples
1344928f647d72fad76307228849532c9c76b473
[ "MIT" ]
null
null
null
test/simple_api_web/controllers/user_controller_test.exs
miklt/api-simples
1344928f647d72fad76307228849532c9c76b473
[ "MIT" ]
null
null
null
defmodule SimpleApiWeb.UserControllerTest do use SimpleApiWeb.ConnCase alias SimpleApi.Auth alias SimpleApi.Auth.User @create_attrs %{ email: "some email", is_active: true, password: "some password" } @update_attrs %{ email: "some updated email", is_active: false, password: "some u...
28.115789
88
0.593785
e96b0f511f36e3b7979e991b94a114bf70023819
3,691
ex
Elixir
lib/buildable.ex
eksperimental/buildable
cf6be3dee76bf6dab39517b58bfa5de441b05427
[ "MIT" ]
9
2021-01-02T07:29:14.000Z
2021-12-20T01:34:34.000Z
lib/buildable.ex
eksperimental/buildable
cf6be3dee76bf6dab39517b58bfa5de441b05427
[ "MIT" ]
null
null
null
lib/buildable.ex
eksperimental/buildable
cf6be3dee76bf6dab39517b58bfa5de441b05427
[ "MIT" ]
2
2021-11-07T19:42:31.000Z
2021-11-07T19:43:02.000Z
defprotocol Buildable do @moduledoc """ Documentation for `Buildable`. """ @type t :: term() @type element :: term() @type options :: keyword() @type position :: :first | :last @required_attributes [ :extract_position, :insert_position, :into_position, :reversible? ] @doc false K...
31.818966
117
0.659713
e96b20fa721a2918d4ad2d4c75015fd4ebbab8f1
491
ex
Elixir
recallr/lib/recallr_web/views/error_view.ex
myfoundea/liveview_march_2021
8aef6225271bbc8e9985746505d74dc850f295fb
[ "MIT" ]
null
null
null
recallr/lib/recallr_web/views/error_view.ex
myfoundea/liveview_march_2021
8aef6225271bbc8e9985746505d74dc850f295fb
[ "MIT" ]
1
2021-03-24T14:49:29.000Z
2021-03-24T14:49:29.000Z
recallr/lib/recallr_web/views/error_view.ex
myfoundea/liveview_march_2021
8aef6225271bbc8e9985746505d74dc850f295fb
[ "MIT" ]
5
2021-03-21T19:45:38.000Z
2021-03-24T14:53:07.000Z
defmodule RecallrWeb.ErrorView do use RecallrWeb, :view # If you want to customize a particular status code # for a certain format, you may uncomment below. # def render("500.html", _assigns) do # "Internal Server Error" # end # By default, Phoenix returns the status message from # the template name...
28.882353
61
0.735234
e96b471648488add4ff55b7e56381c8672cb405e
368
ex
Elixir
other/using-phoenix/fall/web/views/error_view.ex
MaraniMatias/elixir-hola-mundo
325a6ba623378521ec6f79bd4627a0eb7c6cd1fa
[ "MIT" ]
1
2016-12-25T09:53:53.000Z
2016-12-25T09:53:53.000Z
other/using-phoenix/fall/web/views/error_view.ex
MaraniMatias/elixir-hola-mundo
325a6ba623378521ec6f79bd4627a0eb7c6cd1fa
[ "MIT" ]
null
null
null
other/using-phoenix/fall/web/views/error_view.ex
MaraniMatias/elixir-hola-mundo
325a6ba623378521ec6f79bd4627a0eb7c6cd1fa
[ "MIT" ]
null
null
null
defmodule Fall.ErrorView do use Fall.Web, :view def render("404.html", _assigns) do "Page not found" end def render("500.html", _assigns) do "Internal server error" end # In case no render clause matches or no # template is found, let's render it as 500 def template_not_found(_template, assig...
20.444444
47
0.692935
e96b521e924108c7ca16f9d4509545ca09d5b2e2
1,607
ex
Elixir
lib/20_run/from.ex
marick/ecto_test_dsl
6d460af093367098b7c78db709753deb45904d77
[ "Unlicense" ]
4
2021-02-09T17:26:34.000Z
2021-08-08T01:42:52.000Z
lib/20_run/from.ex
marick/transformer_test_support
6d460af093367098b7c78db709753deb45904d77
[ "Unlicense" ]
null
null
null
lib/20_run/from.ex
marick/transformer_test_support
6d460af093367098b7c78db709753deb45904d77
[ "Unlicense" ]
null
null
null
defmodule EctoTestDSL.Run.From do use EctoTestDSL.Drink.Me use EctoTestDSL.Drink.Assertively use EctoTestDSL.Drink.AndRun defmacro from(running, use: keys) do assert_existence(keys, 1) varlist = Enum.map(keys, &one_var/1) calls = Enum.map(keys, &(field_access(&1, running))) emit(varlist, ...
30.320755
80
0.645924
e96b54207335cda883c67916eea043841aecfcb2
225
ex
Elixir
elixir/camp/greeter.ex
gilmoreg/learn
0c4f34387f0d2235ecd88ac62fb86a51f87eb5c2
[ "MIT" ]
null
null
null
elixir/camp/greeter.ex
gilmoreg/learn
0c4f34387f0d2235ecd88ac62fb86a51f87eb5c2
[ "MIT" ]
null
null
null
elixir/camp/greeter.ex
gilmoreg/learn
0c4f34387f0d2235ecd88ac62fb86a51f87eb5c2
[ "MIT" ]
null
null
null
defmodule Greeter do def start do name = IO.gets "Hi! What's your name?\n" case String.trim(name) do "Grayson" -> IO.puts "That's my favorite name!" name -> IO.puts "Hi there #{name}!" end end end
22.5
53
0.604444
e96b54a5a701f820e09199edf1578e12ffd6556a
185
ex
Elixir
lib/wise_homex/models/add_start_readings_result.ex
wise-home/wise_homex
851f13191ed67acb1003888c12f4e6b71800d31b
[ "MIT" ]
2
2019-03-14T09:09:14.000Z
2020-11-25T06:44:46.000Z
lib/wise_homex/models/add_start_readings_result.ex
wise-home/wise_homex
851f13191ed67acb1003888c12f4e6b71800d31b
[ "MIT" ]
139
2019-03-14T06:58:55.000Z
2022-03-29T12:28:09.000Z
lib/wise_homex/models/add_start_readings_result.ex
wise-home/wise_homex
851f13191ed67acb1003888c12f4e6b71800d31b
[ "MIT" ]
7
2021-04-09T13:55:45.000Z
2021-04-16T15:49:36.000Z
defmodule WiseHomex.AddStartReadingsResult do @moduledoc false use WiseHomex.BaseModel @primary_key false embedded_schema do field :reading_count_by_date, :map end end
15.416667
45
0.783784
e96b774b99b8c3c1a84bf90d4c77feb106189c34
899
ex
Elixir
test/support/conn_case.ex
fiqus/prexent
e5c24fe1802d7d912dfc3f318e1602b7907930c2
[ "MIT" ]
33
2019-11-05T15:26:40.000Z
2022-02-05T16:27:01.000Z
test/support/conn_case.ex
fiqus/prexent
e5c24fe1802d7d912dfc3f318e1602b7907930c2
[ "MIT" ]
8
2019-11-05T18:46:04.000Z
2021-05-11T13:18:08.000Z
test/support/conn_case.ex
fiqus/prexent
e5c24fe1802d7d912dfc3f318e1602b7907930c2
[ "MIT" ]
1
2020-05-06T11:38:11.000Z
2020-05-06T11:38:11.000Z
defmodule PrexentWeb.ConnCase do @moduledoc false # This module defines the test case to be used by # tests that require setting up a connection. # Such tests rely on `Phoenix.ConnTest` and also # import other functionality to make it easier # to build common data structures and query the data layer. # ...
28.09375
61
0.723026
e96b97a2e1528205c8a45a2ef4858e4732bf1986
8,044
ex
Elixir
apps/tai/lib/tai/venue_adapters/deribit/stream/connection.ex
ccamateur/tai
41c4b3e09dafc77987fa3f6b300c15461d981e16
[ "MIT" ]
276
2018-01-16T06:36:06.000Z
2021-03-20T21:48:01.000Z
apps/tai/lib/tai/venue_adapters/deribit/stream/connection.ex
ccamateur/tai
41c4b3e09dafc77987fa3f6b300c15461d981e16
[ "MIT" ]
73
2018-10-05T18:45:06.000Z
2021-02-08T05:46:33.000Z
apps/tai/lib/tai/venue_adapters/deribit/stream/connection.ex
ccamateur/tai
41c4b3e09dafc77987fa3f6b300c15461d981e16
[ "MIT" ]
43
2018-06-09T09:54:51.000Z
2021-03-07T07:35:17.000Z
defmodule Tai.VenueAdapters.Deribit.Stream.Connection do use WebSockex alias Tai.VenueAdapters.Deribit.Stream defmodule State do @type product :: Tai.Venues.Product.t() @type account :: Tai.Venues.Account.t() @type venue :: Tai.Venue.id() @type credential_id :: Tai.Venue.credential_id() @type...
24.981366
92
0.590129
e96ba8762dfd5a531614de9885d1145e781a2420
2,473
exs
Elixir
test/protocol/stateful_test.exs
usir/usir_ex
059cc1679dcdc9defcad17a4aac3492a33e529e5
[ "MIT" ]
null
null
null
test/protocol/stateful_test.exs
usir/usir_ex
059cc1679dcdc9defcad17a4aac3492a33e529e5
[ "MIT" ]
null
null
null
test/protocol/stateful_test.exs
usir/usir_ex
059cc1679dcdc9defcad17a4aac3492a33e529e5
[ "MIT" ]
null
null
null
defmodule Test.Usir.Protocol.Stateful do use ExUnit.Case alias Usir.Message alias Usir.Protocol.Stateful, as: Protocol defmodule Handler do def init(_, _) do {:ok, %{}} end def mount(_handler, %{instance: instance, path: "/error" = path}) do raise %Message.Server.Error{instance: instan...
24.009709
119
0.628791
e96c0fc271247b77540c3031226b3673b0d92518
201
exs
Elixir
priv/repo/migrations/20180706011948_add_hidden_to_channels.exs
shanesveller/grapevine
fe74ade1adff88dfe4c1ab55fee3902dbb4664fe
[ "MIT" ]
null
null
null
priv/repo/migrations/20180706011948_add_hidden_to_channels.exs
shanesveller/grapevine
fe74ade1adff88dfe4c1ab55fee3902dbb4664fe
[ "MIT" ]
null
null
null
priv/repo/migrations/20180706011948_add_hidden_to_channels.exs
shanesveller/grapevine
fe74ade1adff88dfe4c1ab55fee3902dbb4664fe
[ "MIT" ]
null
null
null
defmodule Grapevine.Repo.Migrations.AddHiddenToChannels do use Ecto.Migration def change do alter table(:channels) do add :hidden, :boolean, default: true, null: false end end end
20.1
58
0.721393
e96c137de2a552b027736e489b5f2e7bf4161d2c
465
ex
Elixir
2020/elixir/bob/lib/mom.ex
herminiotorres/programmer_passport
d1786518a3a5f82471457e0ace41c4c33343739a
[ "MIT" ]
null
null
null
2020/elixir/bob/lib/mom.ex
herminiotorres/programmer_passport
d1786518a3a5f82471457e0ace41c4c33343739a
[ "MIT" ]
null
null
null
2020/elixir/bob/lib/mom.ex
herminiotorres/programmer_passport
d1786518a3a5f82471457e0ace41c4c33343739a
[ "MIT" ]
null
null
null
defmodule Mom do defstruct(shouting: false, question: false, silence: false) defimpl Personality, for: Mom do def say(%{silence: true}) do "That all you got to say?" end def say(%{shouting: true, question: true}) do "Go to your room." end def say(%{question: true}) do "Go as...
17.884615
61
0.582796
e96c26bbceb66e837e25f0bbbb9a8ec14704302e
762
exs
Elixir
apps/bytepack/priv/repo/migrations/20200316103722_create_user_auth_tables.exs
dashbitco/bytepack_archive
79f8e62149d020f2afcc501592ed399f7ce7a60b
[ "Unlicense" ]
313
2020-12-03T17:26:24.000Z
2022-03-18T09:05:14.000Z
apps/bytepack/priv/repo/migrations/20200316103722_create_user_auth_tables.exs
dashbitco/bytepack_archive
79f8e62149d020f2afcc501592ed399f7ce7a60b
[ "Unlicense" ]
null
null
null
apps/bytepack/priv/repo/migrations/20200316103722_create_user_auth_tables.exs
dashbitco/bytepack_archive
79f8e62149d020f2afcc501592ed399f7ce7a60b
[ "Unlicense" ]
57
2020-12-03T17:41:53.000Z
2022-03-17T17:28:16.000Z
defmodule Bytepack.Repo.Migrations.CreateUserAuthTables do use Ecto.Migration def change do execute "CREATE EXTENSION IF NOT EXISTS citext", "" create table(:users) do add :email, :citext, null: false add :hashed_password, :string, null: false add :confirmed_at, :utc_datetime_usec ...
27.214286
75
0.674541
e96c9d0c8d43bd36e282153e6592689f99e47da7
474
exs
Elixir
installer/priv/mix.exs
kevinlang/extatic
36d693b0fadf68041214b869ee3dbd775b10cece
[ "Apache-2.0" ]
1
2021-08-28T00:17:22.000Z
2021-08-28T00:17:22.000Z
installer/priv/mix.exs
kevinlang/extatic
36d693b0fadf68041214b869ee3dbd775b10cece
[ "Apache-2.0" ]
null
null
null
installer/priv/mix.exs
kevinlang/extatic
36d693b0fadf68041214b869ee3dbd775b10cece
[ "Apache-2.0" ]
null
null
null
defmodule Extatic.MixProject do use Mix.Project def project do [ app: :<%= @app %>, 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 [ extr...
16.928571
59
0.552743
e96ce97e9f085afd1d1b08f02345be9d15bebcd2
1,404
ex
Elixir
discuss/test/support/data_case.ex
hiroshisiq/elixir-sandbox
3f014d2f15ae1eeda1c22db30ef111cbc22e9afc
[ "MIT" ]
null
null
null
discuss/test/support/data_case.ex
hiroshisiq/elixir-sandbox
3f014d2f15ae1eeda1c22db30ef111cbc22e9afc
[ "MIT" ]
null
null
null
discuss/test/support/data_case.ex
hiroshisiq/elixir-sandbox
3f014d2f15ae1eeda1c22db30ef111cbc22e9afc
[ "MIT" ]
null
null
null
defmodule Discuss.DataCase do @moduledoc """ This module defines the setup for tests requiring access to the application's data layer. You may define functions here to be used as helpers in your tests. Finally, if the test case interacts with the database, it cannot be async. For this reason, every test...
26
77
0.679487
e96ceeee2ebf0fa98bdcd27685a80cbcd76bc222
3,436
exs
Elixir
test/ueberauth/strategy/cas_test.exs
egillet/ueberauth_cas
9c546226e59eace0504a275431710ec67d8e0370
[ "MIT" ]
null
null
null
test/ueberauth/strategy/cas_test.exs
egillet/ueberauth_cas
9c546226e59eace0504a275431710ec67d8e0370
[ "MIT" ]
null
null
null
test/ueberauth/strategy/cas_test.exs
egillet/ueberauth_cas
9c546226e59eace0504a275431710ec67d8e0370
[ "MIT" ]
1
2020-05-13T13:13:09.000Z
2020-05-13T13:13:09.000Z
defmodule Ueberauth.Strategy.CAS.Test do use ExUnit.Case use Plug.Test import Mock alias Ueberauth.Strategy.CAS setup do conn = %Plug.Conn{ private: %{ cas_user: %CAS.User{name: "Marcel de Graaf", email: "mail@marceldegraaf.net", roles: ["developer"]}, cas_ticket: "ST-XXXXX", ...
28.633333
117
0.644354
e96cf45532e366dd156ab159a8a1c7b07f6515f4
2,654
ex
Elixir
clients/analytics_admin/lib/google_api/analytics_admin/v1alpha/model/google_analytics_admin_v1alpha_account.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-10-01T09:20:41.000Z
2021-10-01T09:20:41.000Z
clients/analytics_admin/lib/google_api/analytics_admin/v1alpha/model/google_analytics_admin_v1alpha_account.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/analytics_admin/lib/google_api/analytics_admin/v1alpha/model/google_analytics_admin_v1alpha_account.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...
39.61194
204
0.706481
e96d248eece3f656051f077edb6994b975af193e
82
exs
Elixir
apps/wdpa_phoenix/test/views/page_view_test.exs
lucidstack/wdpa-tracker
da9a10d08bf5b23aff696aee33f5d6ad1089079d
[ "MIT" ]
4
2016-05-08T10:17:19.000Z
2019-06-10T15:23:20.000Z
apps/wdpa_phoenix/test/views/page_view_test.exs
lucidstack/wdpa-tracker
da9a10d08bf5b23aff696aee33f5d6ad1089079d
[ "MIT" ]
null
null
null
apps/wdpa_phoenix/test/views/page_view_test.exs
lucidstack/wdpa-tracker
da9a10d08bf5b23aff696aee33f5d6ad1089079d
[ "MIT" ]
null
null
null
defmodule WdpaPhoenix.PageViewTest do use WdpaPhoenix.ConnCase, async: true end
20.5
39
0.829268
e96d2c741f34aa561bbe6c4af0fb229c96a06411
656
exs
Elixir
24/mix.exs
rikkus/adventofcode2016
dceb9af8e3f1f460109bb881e9d9d33fb0892d6e
[ "MIT" ]
null
null
null
24/mix.exs
rikkus/adventofcode2016
dceb9af8e3f1f460109bb881e9d9d33fb0892d6e
[ "MIT" ]
null
null
null
24/mix.exs
rikkus/adventofcode2016
dceb9af8e3f1f460109bb881e9d9d33fb0892d6e
[ "MIT" ]
null
null
null
defmodule E24.Mixfile do use Mix.Project def project do [ app: :e24, version: "0.1.0", elixir: "~> 1.5", start_permanent: Mix.env == :prod, deps: deps() ] end # Run "mix help compile.app" to learn about applications. def application do [ extra_applications: [:...
20.5
88
0.542683
e96d3cb78a0eefbe33be1700d21a3b46b6a1221f
767
ex
Elixir
Microsoft.Azure.Management.ManagedServiceIdentity/lib/microsoft/azure/management/managed_service_identity/model/identity_properties.ex
chgeuer/ex_microsoft_azure_management
99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603
[ "Apache-2.0" ]
4
2018-09-29T03:43:15.000Z
2021-04-01T18:30:46.000Z
Microsoft.Azure.Management.ManagedServiceIdentity/lib/microsoft/azure/management/managed_service_identity/model/identity_properties.ex
chgeuer/ex_microsoft_azure_management
99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603
[ "Apache-2.0" ]
null
null
null
Microsoft.Azure.Management.ManagedServiceIdentity/lib/microsoft/azure/management/managed_service_identity/model/identity_properties.ex
chgeuer/ex_microsoft_azure_management
99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603
[ "Apache-2.0" ]
null
null
null
# NOTE: This class is auto generated by the swagger code generator program. # https://github.com/swagger-api/swagger-codegen.git # Do not edit the class manually. defmodule Microsoft.Azure.Management.ManagedServiceIdentity.Model.IdentityProperties do @moduledoc """ The properties associated with the identity. ""...
23.96875
106
0.704042
e96d462167f10a38e6b5cb6af06e09383aaae34c
23,413
ex
Elixir
clients/content/lib/google_api/content/v21/model/product.ex
MMore/elixir-google-api
0574ec1439d9bbfe22d63965be1681b0f45a94c9
[ "Apache-2.0" ]
null
null
null
clients/content/lib/google_api/content/v21/model/product.ex
MMore/elixir-google-api
0574ec1439d9bbfe22d63965be1681b0f45a94c9
[ "Apache-2.0" ]
null
null
null
clients/content/lib/google_api/content/v21/model/product.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...
75.041667
481
0.678982
e96d5c579dd4151a62798f3eee1a4ad8e8c687c2
1,677
exs
Elixir
tests/ex_tuple_test.exs
keithalpichi/practical-elixir
d9ad1f4c18a75179a893201706d30a0f4eee19bb
[ "MIT" ]
4
2018-12-13T17:01:10.000Z
2021-09-24T02:16:08.000Z
tests/ex_tuple_test.exs
keithalpichi/practical-elixir
d9ad1f4c18a75179a893201706d30a0f4eee19bb
[ "MIT" ]
null
null
null
tests/ex_tuple_test.exs
keithalpichi/practical-elixir
d9ad1f4c18a75179a893201706d30a0f4eee19bb
[ "MIT" ]
null
null
null
Code.load_file("ex_tuple.exs", "./lib/") ExUnit.start ExUnit.configure exclude: :pending, trace: true defmodule ExTupleTest do use ExUnit.Case test "returns nil for nonexistent key in map" do assert ExTuple.get_value(%{a: 2, b: 7, c: 9}, :d) == :nil end @tag :pending test "return tuple for existence o...
28.423729
93
0.653548
e96d656113d6d9dd2b2a621ef93c56765107bd22
874
ex
Elixir
lib/ex_gremlin/application.ex
chaehb/ex_gremlin
209e00f8dceeb80d0d3765e99b7387285ff103ce
[ "MIT" ]
1
2021-05-10T06:10:54.000Z
2021-05-10T06:10:54.000Z
lib/ex_gremlin/application.ex
chaehb/ex_gremlin
209e00f8dceeb80d0d3765e99b7387285ff103ce
[ "MIT" ]
null
null
null
lib/ex_gremlin/application.ex
chaehb/ex_gremlin
209e00f8dceeb80d0d3765e99b7387285ff103ce
[ "MIT" ]
null
null
null
defmodule ExGremlin.Application do @moduledoc false use Application @default_pool %{ size: 8, max_overflow: 16 } @default_gremlin_server %{ host: "localhost", port: 8182, path: "/gremlin", secure: false, ping_delay: 0 } @impl Application def start(_type, _args) do ...
23.621622
98
0.67849
e96d6b85a207d1f514efe87429293fe065eca494
1,080
exs
Elixir
apps/tai/test/tai/iex/commands/stop_advisors_test.exs
ccamateur/tai
41c4b3e09dafc77987fa3f6b300c15461d981e16
[ "MIT" ]
276
2018-01-16T06:36:06.000Z
2021-03-20T21:48:01.000Z
apps/tai/test/tai/iex/commands/stop_advisors_test.exs
ccamateur/tai
41c4b3e09dafc77987fa3f6b300c15461d981e16
[ "MIT" ]
73
2018-10-05T18:45:06.000Z
2021-02-08T05:46:33.000Z
apps/tai/test/tai/iex/commands/stop_advisors_test.exs
ccamateur/tai
41c4b3e09dafc77987fa3f6b300c15461d981e16
[ "MIT" ]
43
2018-06-09T09:54:51.000Z
2021-03-07T07:35:17.000Z
defmodule Tai.IEx.Commands.StopAdvisorsTest do use Tai.TestSupport.DataCase, async: false import ExUnit.CaptureIO setup do mock_advisor_config(%{fleet_id: :fleet_a, advisor_id: :main}) mock_advisor_config(%{fleet_id: :fleet_b, advisor_id: :main}) capture_io(&Tai.IEx.start_advisors/0) :ok end ...
31.764706
86
0.643519
e96dd74d932f27c71ad1d5a1d680cd8b9a562986
340
ex
Elixir
lib/dislixir.ex
Tsugami/Dislixir
9aea2024f6a27cb6fd7511bb627a424e1f6303bb
[ "MIT" ]
2
2020-11-24T22:16:50.000Z
2020-11-27T18:29:46.000Z
lib/dislixir.ex
Tsugami/Dislixir
9aea2024f6a27cb6fd7511bb627a424e1f6303bb
[ "MIT" ]
null
null
null
lib/dislixir.ex
Tsugami/Dislixir
9aea2024f6a27cb6fd7511bb627a424e1f6303bb
[ "MIT" ]
null
null
null
defmodule Dislixir do alias Dislixir.Endpoints alias Dislixir.RequestHandler @moduledoc """ Modulo para mandar requisições a API do discord """ def create_message(channel_id, content) do message = Poison.encode!(%{"content" => content}) RequestHandler.post! Endpoints.channel_messages(channel_id)...
24.285714
72
0.741176
e96e27263e8c9cf705cb53eb822a7c1440cc0d94
2,900
ex
Elixir
clients/compute/lib/google_api/compute/v1/model/packet_mirroring_list.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-10-01T09:20:41.000Z
2021-10-01T09:20:41.000Z
clients/compute/lib/google_api/compute/v1/model/packet_mirroring_list.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/compute/lib/google_api/compute/v1/model/packet_mirroring_list.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
46.774194
393
0.71931
e96e4309fd98f7b9f6af89dec90ff7cac28c7abe
86
exs
Elixir
Chapter02/apps/elixir_drip_web/test/elixir_drip_web/views/page_view_test.exs
sthagen/Mastering-Elixir
1b52ee79afe6b2ae80767a5e55c2be51df3c4c1d
[ "MIT" ]
28
2018-08-09T05:05:29.000Z
2022-03-14T06:59:07.000Z
Chapter02/apps/elixir_drip_web/test/elixir_drip_web/views/page_view_test.exs
sthagen/Mastering-Elixir
1b52ee79afe6b2ae80767a5e55c2be51df3c4c1d
[ "MIT" ]
1
2019-02-11T09:11:33.000Z
2019-05-06T06:40:19.000Z
Chapter02/apps/elixir_drip_web/test/elixir_drip_web/views/page_view_test.exs
sthagen/Mastering-Elixir
1b52ee79afe6b2ae80767a5e55c2be51df3c4c1d
[ "MIT" ]
8
2018-08-09T14:53:02.000Z
2020-12-14T19:31:21.000Z
defmodule ElixirDripWeb.PageViewTest do use ElixirDripWeb.ConnCase, async: true end
21.5
41
0.837209
e96e436f8672a8c5c1a16b8d973277be8290727b
5,158
exs
Elixir
test/slash/builder_test.exs
chaseconey/slash
f5d21f992b5ee7bbe2d3079b2e1057be32e935bb
[ "MIT" ]
5
2019-03-28T06:56:51.000Z
2021-03-17T11:05:00.000Z
test/slash/builder_test.exs
chaseconey/slash
f5d21f992b5ee7bbe2d3079b2e1057be32e935bb
[ "MIT" ]
6
2019-03-28T07:06:12.000Z
2019-05-15T17:04:10.000Z
test/slash/builder_test.exs
chaseconey/slash
f5d21f992b5ee7bbe2d3079b2e1057be32e935bb
[ "MIT" ]
2
2019-04-24T01:12:02.000Z
2019-09-20T00:26:00.000Z
defmodule Slash.BuilderTest do use ExUnit.Case use Plug.Test use Slash.Test defmodule BeforeErrorMock do use Slash.Builder before :error before :next_error def error(_command) do {:error, "Error, not sure what happened here"} end def next_error(_command) do throw(:not_imp...
22.722467
89
0.596937
e96e5ddb98c847b5a77f05bd7ca8f20d60a55bf6
961
ex
Elixir
parrot/lib/parrot.ex
DanLindeman/otpv_2021
b19c5993435f113e6411fe4d9cda72b640ec1606
[ "MIT" ]
null
null
null
parrot/lib/parrot.ex
DanLindeman/otpv_2021
b19c5993435f113e6411fe4d9cda72b640ec1606
[ "MIT" ]
null
null
null
parrot/lib/parrot.ex
DanLindeman/otpv_2021
b19c5993435f113e6411fe4d9cda72b640ec1606
[ "MIT" ]
3
2021-04-22T17:15:08.000Z
2021-04-26T13:10:55.000Z
defmodule Parrot do @moduledoc """ Documentation for Parrot. """ @doc """ Parrot provides a memory game, gradually deleting characters from a string This file implements the GenServer which can be used to run the game. """ use GenServer alias Parrot.{Eraser, Phrase} def start_link({name, phras...
21.840909
78
0.669095
e96e61918b98a083847ea2b5421ed9a5569871ae
1,886
ex
Elixir
clients/analytics_admin/lib/google_api/analytics_admin/v1alpha/model/google_analytics_admin_v1alpha_property_summary.ex
corp-momenti/elixir-google-api
fe1580e305789ab2ca0741791b8ffe924bd3240c
[ "Apache-2.0" ]
null
null
null
clients/analytics_admin/lib/google_api/analytics_admin/v1alpha/model/google_analytics_admin_v1alpha_property_summary.ex
corp-momenti/elixir-google-api
fe1580e305789ab2ca0741791b8ffe924bd3240c
[ "Apache-2.0" ]
null
null
null
clients/analytics_admin/lib/google_api/analytics_admin/v1alpha/model/google_analytics_admin_v1alpha_property_summary.ex
corp-momenti/elixir-google-api
fe1580e305789ab2ca0741791b8ffe924bd3240c
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
34.290909
180
0.743372
e96e65775de0da047ad6d1ea1e7949d99f643721
1,815
exs
Elixir
test/logstash_json_tcp_connection_test.exs
fast-radius/logstash-json
67a8961dc8493ecc12d4502db03e3b1031a11bbd
[ "MIT" ]
null
null
null
test/logstash_json_tcp_connection_test.exs
fast-radius/logstash-json
67a8961dc8493ecc12d4502db03e3b1031a11bbd
[ "MIT" ]
null
null
null
test/logstash_json_tcp_connection_test.exs
fast-radius/logstash-json
67a8961dc8493ecc12d4502db03e3b1031a11bbd
[ "MIT" ]
1
2021-05-12T02:29:46.000Z
2021-05-12T02:29:46.000Z
defmodule LogstashJsonTcpConnectionTest do use ExUnit.Case, async: false require Logger test "Sends message when connection open" do {listener, port} = new_listener() {:ok, queue} = BlockingQueue.start_link(1) {:ok, conn} = LogstashJson.TCP.Connection.start_link('localhost', port, queue) Logstas...
29.754098
87
0.664463
e96e759288087c11f15d5760848a0bf75d8eb1ed
1,034
exs
Elixir
test/survey_tool/questions_file_errors_test.exs
paulfioravanti/survey_tool_elixir
aacf14c97d9e00697c81e6d27f16506644a337c8
[ "MIT" ]
1
2020-01-18T23:27:50.000Z
2020-01-18T23:27:50.000Z
test/survey_tool/questions_file_errors_test.exs
paulfioravanti/survey_tool_elixir
aacf14c97d9e00697c81e6d27f16506644a337c8
[ "MIT" ]
null
null
null
test/survey_tool/questions_file_errors_test.exs
paulfioravanti/survey_tool_elixir
aacf14c97d9e00697c81e6d27f16506644a337c8
[ "MIT" ]
null
null
null
defmodule QuestionsFileErrorsTest do use ExUnit.Case import ExUnit.CaptureIO setup(%{argv: argv}) do output = capture_io(fn -> SurveyTool.main(argv) end) {:ok, [output: output]} end describe "Non-existent Questions File" do @error_message "Could not generate report: " |> Utili...
28.722222
78
0.616054
e96e8a9e333362aa8560cb7d05573c112c708a29
454
ex
Elixir
lib/repo/types/table_type.ex
mojidabckuu/ex_audit
6c74b65a28edd80076bad3f7e56e55e9c3218e6a
[ "MIT" ]
null
null
null
lib/repo/types/table_type.ex
mojidabckuu/ex_audit
6c74b65a28edd80076bad3f7e56e55e9c3218e6a
[ "MIT" ]
null
null
null
lib/repo/types/table_type.ex
mojidabckuu/ex_audit
6c74b65a28edd80076bad3f7e56e55e9c3218e6a
[ "MIT" ]
null
null
null
defmodule ExAudit.Type.Table do use Ecto.Type def type, do: :string def cast(schema) when is_atom(schema) do {:ok, schema} end def cast(table_name) when is_binary(table_name) do {:ok, table_name} end def cast(_), do: :error def load(table) do {:ok, table} end def dump(schema) when ...
16.214286
52
0.651982
e96ef29ed10631af8fbc1c3431109e34af42ee97
752
exs
Elixir
examples/bank/mix.exs
Tuxified/elixirconf-eu-2017-talk
919a39c3864e65a868bafa3ee0a68983c488537c
[ "MIT" ]
2
2017-06-14T02:38:00.000Z
2017-11-09T21:56:59.000Z
examples/bank/mix.exs
Tuxified/elixirconf-eu-2017-talk
919a39c3864e65a868bafa3ee0a68983c488537c
[ "MIT" ]
null
null
null
examples/bank/mix.exs
Tuxified/elixirconf-eu-2017-talk
919a39c3864e65a868bafa3ee0a68983c488537c
[ "MIT" ]
null
null
null
defmodule Bank.Mixfile do use Mix.Project def project do [app: :bank, 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 more inf...
22.117647
79
0.617021