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
d59ac9f1857c9ff07c156a8d2c41f386791b3c93
683
ex
Elixir
lib/quarry/join.ex
enewbury/ecto_quarry
396f2a2156c33595213cd822111c0832a9e1a757
[ "MIT" ]
5
2021-12-27T02:03:17.000Z
2022-03-04T16:05:38.000Z
lib/quarry/join.ex
enewbury/ecto_quarry
396f2a2156c33595213cd822111c0832a9e1a757
[ "MIT" ]
1
2021-12-27T05:30:12.000Z
2022-02-10T05:33:47.000Z
lib/quarry/join.ex
enewbury/quarry
396f2a2156c33595213cd822111c0832a9e1a757
[ "MIT" ]
null
null
null
defmodule Quarry.Join do @moduledoc false require Ecto.Query alias Quarry.QueryStruct def with_join(query, parent_binding, assoc) do binding = String.to_atom("#{parent_binding}_#{assoc}") if Ecto.Query.has_named_binding?(query, binding) do {query, binding} else query = query ...
25.296296
85
0.661786
d59acc6b66340c2e13d9a7cbc5d2300076ff5c6c
4,245
ex
Elixir
clients/dfa_reporting/lib/google_api/dfa_reporting/v34/api/dimension_values.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/dfa_reporting/lib/google_api/dfa_reporting/v34/api/dimension_values.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/dfa_reporting/lib/google_api/dfa_reporting/v34/api/dimension_values.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...
43.316327
196
0.648763
d59accbb106a438358bb47525b437650345cdcc8
4,879
ex
Elixir
apps/omg_api/lib/fee_checker.ex
SingularityMatrix/elixir-omg
7db3fcc3adfa303e30ff7703148cc5110b587d20
[ "Apache-2.0" ]
null
null
null
apps/omg_api/lib/fee_checker.ex
SingularityMatrix/elixir-omg
7db3fcc3adfa303e30ff7703148cc5110b587d20
[ "Apache-2.0" ]
null
null
null
apps/omg_api/lib/fee_checker.ex
SingularityMatrix/elixir-omg
7db3fcc3adfa303e30ff7703148cc5110b587d20
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 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 writi...
30.685535
110
0.676778
d59afc0c078eb7c7920cd6e5c88a0a4c06c9cba5
964
ex
Elixir
apps/tai/lib/tai/trading/order_submissions/buy_limit_gtc.ex
ihorkatkov/tai
09f9f15d2c385efe762ae138a8570f1e3fd41f26
[ "MIT" ]
1
2019-12-19T05:16:26.000Z
2019-12-19T05:16:26.000Z
apps/tai/lib/tai/trading/order_submissions/buy_limit_gtc.ex
ihorkatkov/tai
09f9f15d2c385efe762ae138a8570f1e3fd41f26
[ "MIT" ]
null
null
null
apps/tai/lib/tai/trading/order_submissions/buy_limit_gtc.ex
ihorkatkov/tai
09f9f15d2c385efe762ae138a8570f1e3fd41f26
[ "MIT" ]
null
null
null
defmodule Tai.Trading.OrderSubmissions.BuyLimitGtc do @type venue_id :: Tai.Venues.Adapter.venue_id() @type account_id :: Tai.Venues.Adapter.account_id() @type product_symbol :: Tai.Venues.Product.symbol() @type product_type :: Tai.Venues.Product.type() @type callback :: Tai.Trading.Order.callback() @type t...
24.1
55
0.650415
d59b0c5a14046d6f377b1488a7698d44a5e286a2
374
ex
Elixir
lib/plotex/axis.ex
k-cross/plotex
5b5634bf47d677172e7c8da4877ebe38f62d16a1
[ "Apache-2.0" ]
null
null
null
lib/plotex/axis.ex
k-cross/plotex
5b5634bf47d677172e7c8da4877ebe38f62d16a1
[ "Apache-2.0" ]
null
null
null
lib/plotex/axis.ex
k-cross/plotex
5b5634bf47d677172e7c8da4877ebe38f62d16a1
[ "Apache-2.0" ]
null
null
null
defmodule Plotex.Axis do alias Plotex.ViewRange defstruct limits: %ViewRange{}, view: %ViewRange{}, name: "", basis: %{}, units: nil, formatter: nil @type t :: %Plotex.Axis{ limits: ViewRange.t(), view: ViewRange.t(), name: String.t(), ...
17.809524
33
0.518717
d59b182485d2c621eb363c37326cf2fc421187bd
1,244
ex
Elixir
backend/lib/budgetsh_web/resolvers/accounts.ex
djquan/budget.sh.old
e0c3ac772ce061c4a8c990ef86ea341172146d18
[ "MIT" ]
2
2019-09-08T23:26:20.000Z
2019-10-04T21:05:40.000Z
backend/lib/budgetsh_web/resolvers/accounts.ex
djquan/budget.sh
e0c3ac772ce061c4a8c990ef86ea341172146d18
[ "MIT" ]
null
null
null
backend/lib/budgetsh_web/resolvers/accounts.ex
djquan/budget.sh
e0c3ac772ce061c4a8c990ef86ea341172146d18
[ "MIT" ]
null
null
null
defmodule BudgetSHWeb.Resolvers.Accounts do alias BudgetSH.Accounts alias BudgetSH.Accounts.User alias BudgetSHWeb.AuthToken alias BudgetSHWeb.Schema.ChangesetErrors @spec me(any, any, any) :: {:ok, %User{} | nil} def me(_, _, %{context: %{current_user: user}}) do {:ok, user} end def me(_, _, _) d...
28.272727
96
0.573955
d59b1952cb22883eb9e4e3ca17e37fb45c950d58
395
ex
Elixir
lib/codes/codes_c19.ex
badubizzle/icd_code
4c625733f92b7b1d616e272abc3009bb8b916c0c
[ "Apache-2.0" ]
null
null
null
lib/codes/codes_c19.ex
badubizzle/icd_code
4c625733f92b7b1d616e272abc3009bb8b916c0c
[ "Apache-2.0" ]
null
null
null
lib/codes/codes_c19.ex
badubizzle/icd_code
4c625733f92b7b1d616e272abc3009bb8b916c0c
[ "Apache-2.0" ]
null
null
null
defmodule IcdCode.ICDCode.Codes_C19 do alias IcdCode.ICDCode def _C19 do %ICDCode{full_code: "C19", category_code: "C19", short_code: "", full_name: "Malignant neoplasm of rectosigmoid junction", short_name: "Malignant neoplasm of rectosigmoid junction", category...
24.6875
70
0.663291
d59b1a529370a340c01c00210d98e3211d4f6fa6
2,901
ex
Elixir
clients/cloud_channel/lib/google_api/cloud_channel/v1/model/google_cloud_channel_v1_plan.ex
renovate-bot/elixir-google-api
1da34cd39b670c99f067011e05ab90af93fef1f6
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/cloud_channel/lib/google_api/cloud_channel/v1/model/google_cloud_channel_v1_plan.ex
swansoffiee/elixir-google-api
9ea6d39f273fb430634788c258b3189d3613dde0
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/cloud_channel/lib/google_api/cloud_channel/v1/model/google_cloud_channel_v1_plan.ex
dazuma/elixir-google-api
6a9897168008efe07a6081d2326735fe332e522c
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
49.169492
424
0.742158
d59b3b85c53cc560a49332d065e97490846c5d83
502
ex
Elixir
lib/policr_mini_web/views/admin/api/operation_view.ex
WOCyo/policr-mini
23e5e9f927d083cba5993f39e9f122e3a0ad1be2
[ "MIT" ]
487
2020-06-08T03:04:21.000Z
2022-03-31T14:51:36.000Z
lib/policr_mini_web/views/admin/api/operation_view.ex
WOCyo/policr-mini
23e5e9f927d083cba5993f39e9f122e3a0ad1be2
[ "MIT" ]
141
2020-06-11T01:03:29.000Z
2022-03-30T20:23:32.000Z
lib/policr_mini_web/views/admin/api/operation_view.ex
WOCyo/policr-mini
23e5e9f927d083cba5993f39e9f122e3a0ad1be2
[ "MIT" ]
61
2020-06-10T05:25:03.000Z
2022-03-23T15:54:26.000Z
defmodule PolicrMiniWeb.Admin.API.OperationView do @moduledoc """ 渲染后台操作数据。 """ use PolicrMiniWeb, :view @spec render(String.t(), map()) :: map() def render("operation.json", %{operation: operation}) do verification = render_one( operation.verification, PolicrMiniWeb.Admin.API.Ve...
22.818182
59
0.655378
d59b59a5375074dddc49cabcbc9448d82c782f14
1,984
exs
Elixir
mix.exs
tschmidleithner/surface_bootstrap4_demo
9034762e3df1b31832a88a7a08931fe6571e1456
[ "MIT" ]
null
null
null
mix.exs
tschmidleithner/surface_bootstrap4_demo
9034762e3df1b31832a88a7a08931fe6571e1456
[ "MIT" ]
null
null
null
mix.exs
tschmidleithner/surface_bootstrap4_demo
9034762e3df1b31832a88a7a08931fe6571e1456
[ "MIT" ]
null
null
null
defmodule SurfaceBootstrap4Demo.MixProject do use Mix.Project def project do [ app: :surface_bootstrap4_demo, version: "0.1.0", elixir: "~> 1.7", elixirc_paths: elixirc_paths(Mix.env()), compilers: [:phoenix, :gettext] ++ Mix.compilers(), start_permanent: Mix.env() == :prod,...
29.176471
84
0.594758
d59b7eff7e9a4c205024bc6af1fc218ef6f41af9
26,645
ex
Elixir
lib/aws/generated/kendra.ex
onno-vos-dev/aws-elixir
00f02c2bce689b932948b6a4d603fd44bb5fc0e9
[ "Apache-2.0" ]
null
null
null
lib/aws/generated/kendra.ex
onno-vos-dev/aws-elixir
00f02c2bce689b932948b6a4d603fd44bb5fc0e9
[ "Apache-2.0" ]
null
null
null
lib/aws/generated/kendra.ex
onno-vos-dev/aws-elixir
00f02c2bce689b932948b6a4d603fd44bb5fc0e9
[ "Apache-2.0" ]
null
null
null
# WARNING: DO NOT EDIT, AUTO-GENERATED CODE! # See https://github.com/aws-beam/aws-codegen for more details. defmodule AWS.Kendra do @moduledoc """ Amazon Kendra is a service for indexing large document sets. """ alias AWS.Client alias AWS.Request def metadata do %AWS.ServiceMetadata{ abbreviat...
39.828102
154
0.736123
d59b8430630e1987905638c6409849fd16c6cd24
30,009
ex
Elixir
lib/ecto/repo/schema.ex
AndrewDryga/ecto
9460e610928240800571c4e364fc8041f63e88f1
[ "Apache-2.0" ]
null
null
null
lib/ecto/repo/schema.ex
AndrewDryga/ecto
9460e610928240800571c4e364fc8041f63e88f1
[ "Apache-2.0" ]
null
null
null
lib/ecto/repo/schema.ex
AndrewDryga/ecto
9460e610928240800571c4e364fc8041f63e88f1
[ "Apache-2.0" ]
1
2018-09-21T16:05:29.000Z
2018-09-21T16:05:29.000Z
defmodule Ecto.Repo.Schema do # The module invoked by user defined repos # for schema related functionality. @moduledoc false alias Ecto.Changeset alias Ecto.Changeset.Relation require Ecto.Query @doc """ Implementation for `Ecto.Repo.insert_all/3`. """ def insert_all(name, schema, rows, opts) whe...
35.982014
114
0.631511
d59b8b1700308fbd082af3dbe7c8949c1cf4e9a0
1,546
ex
Elixir
lib/icon/schema/types/block.ex
alexdesousa/icon
2b363582b129bc0485a39e9845d2a18eabd2f6d6
[ "MIT" ]
4
2022-01-27T09:10:05.000Z
2022-03-09T04:38:13.000Z
lib/icon/schema/types/block.ex
alexdesousa/icon
2b363582b129bc0485a39e9845d2a18eabd2f6d6
[ "MIT" ]
null
null
null
lib/icon/schema/types/block.ex
alexdesousa/icon
2b363582b129bc0485a39e9845d2a18eabd2f6d6
[ "MIT" ]
null
null
null
defmodule Icon.Schema.Types.Block do @moduledoc """ This module defines a block. A block has the following keys: Key | Type | Description :--------------------------- | :------------------------------------------ | :---------- `block_hash` ...
44.171429
110
0.522639
d59bbf00eb7b2edfb4f007f8d6741ca231c8c0f0
1,662
exs
Elixir
mix.exs
bforchhammer/spandex_phoenix
e0fab43a35de2e49ddc42bd6722cc37be96a3fe1
[ "MIT" ]
null
null
null
mix.exs
bforchhammer/spandex_phoenix
e0fab43a35de2e49ddc42bd6722cc37be96a3fe1
[ "MIT" ]
null
null
null
mix.exs
bforchhammer/spandex_phoenix
e0fab43a35de2e49ddc42bd6722cc37be96a3fe1
[ "MIT" ]
null
null
null
defmodule SpandexPhoenix.MixProject do use Mix.Project @version "1.0.3" def project do [ app: :spandex_phoenix, version: @version, elixir: "~> 1.6", elixirc_paths: elixirc_paths(Mix.env()), compilers: compilers(Mix.env()), start_permanent: Mix.env() == :prod, packag...
23.083333
80
0.554152
d59bbf2f0fe327522f5f52516073d9b8a67102f4
2,485
ex
Elixir
apps/asf_web/lib/asf_web/router.ex
LazarRistic/asf
2c557f06839a129b35174142c91f60696be2fa89
[ "MIT" ]
null
null
null
apps/asf_web/lib/asf_web/router.ex
LazarRistic/asf
2c557f06839a129b35174142c91f60696be2fa89
[ "MIT" ]
null
null
null
apps/asf_web/lib/asf_web/router.ex
LazarRistic/asf
2c557f06839a129b35174142c91f60696be2fa89
[ "MIT" ]
null
null
null
defmodule AsfWeb.Router do use AsfWeb, :router import AsfWeb.UserAuth pipeline :browser do plug :accepts, ["html"] plug :fetch_session plug :fetch_live_flash plug :protect_from_forgery plug :put_secure_browser_headers plug :fetch_current_user plug :put_root_layout, {AsfWeb.LayoutView...
29.939759
86
0.717103
d59bc6def932f4bc492c01a62b14b61160582351
1,575
ex
Elixir
implementations/elixir/ockam/ockam/lib/ockam/api/client/static_forwarding_client.ex
0x00A5/ockam
9710804e20606e70057d65c70d1af7236194aeeb
[ "Apache-2.0" ]
null
null
null
implementations/elixir/ockam/ockam/lib/ockam/api/client/static_forwarding_client.ex
0x00A5/ockam
9710804e20606e70057d65c70d1af7236194aeeb
[ "Apache-2.0" ]
null
null
null
implementations/elixir/ockam/ockam/lib/ockam/api/client/static_forwarding_client.ex
0x00A5/ockam
9710804e20606e70057d65c70d1af7236194aeeb
[ "Apache-2.0" ]
null
null
null
defmodule Ockam.API.Client.StaticForwarding do @moduledoc """ API client for static forwarding service API """ alias Ockam.API.Response @doc """ Subscribe the current worker in the static forwarding service Arguments: `alias_str` - used to create a forwarding alias `api_route` - route to the static...
33.510638
97
0.667302
d59c06f06b966013bd5f261729e18148a26a8add
55,551
ex
Elixir
lib/codes/codes_t59.ex
badubizzle/icd_code
4c625733f92b7b1d616e272abc3009bb8b916c0c
[ "Apache-2.0" ]
null
null
null
lib/codes/codes_t59.ex
badubizzle/icd_code
4c625733f92b7b1d616e272abc3009bb8b916c0c
[ "Apache-2.0" ]
null
null
null
lib/codes/codes_t59.ex
badubizzle/icd_code
4c625733f92b7b1d616e272abc3009bb8b916c0c
[ "Apache-2.0" ]
null
null
null
defmodule IcdCode.ICDCode.Codes_T59 do alias IcdCode.ICDCode def _T590X1A do %ICDCode{full_code: "T590X1A", category_code: "T59", short_code: "0X1A", full_name: "Toxic effect of nitrogen oxides, accidental (unintentional), initial encounter", short_name: "Toxic effect of n...
46.486192
132
0.665965
d59c2528b7ba1bbd1b08b16b1770018c8bc4f77f
1,684
ex
Elixir
clients/you_tube/lib/google_api/you_tube/v3/model/live_stream_status.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/you_tube/lib/google_api/you_tube/v3/model/live_stream_status.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/you_tube/lib/google_api/you_tube/v3/model/live_stream_status.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
1
2020-10-04T10:12:44.000Z
2020-10-04T10:12:44.000Z
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
33.68
137
0.736342
d59c2ef0a0c7e6c3e4e474dd9011b75eff789bd7
2,954
ex
Elixir
lib/example/custom_type_lang.ex
haskric/map_schema
615d6428e168a0d3991d334cba76c2d8e5c417b6
[ "MIT" ]
3
2020-12-15T09:04:57.000Z
2021-06-11T02:01:09.000Z
lib/example/custom_type_lang.ex
haskric/map_schema
615d6428e168a0d3991d334cba76c2d8e5c417b6
[ "MIT" ]
null
null
null
lib/example/custom_type_lang.ex
haskric/map_schema
615d6428e168a0d3991d334cba76c2d8e5c417b6
[ "MIT" ]
null
null
null
defmodule MapSchema.Examples.CustomTypeLang do @moduledoc """ MapSchema.Examples.CustomTypeLang Imagine here a query to Database or any place where you have the list https://www.iso.org/iso-639-language-codes.html https://es.wikipedia.org/wiki/ISO_639-1 only if the value exist it will be valid in o...
29.54
91
0.658429
d59c638bc9e89064701f53f03bb0ec3d1bb77f0d
1,814
exs
Elixir
my_list.exs
karlosmid/book_programming_elixir_12
53769b35728a82eddde3a21d4cbd45c1c21596a4
[ "MIT" ]
null
null
null
my_list.exs
karlosmid/book_programming_elixir_12
53769b35728a82eddde3a21d4cbd45c1c21596a4
[ "MIT" ]
null
null
null
my_list.exs
karlosmid/book_programming_elixir_12
53769b35728a82eddde3a21d4cbd45c1c21596a4
[ "MIT" ]
null
null
null
defmodule MyList do def len([]), do: 0 def len([_|tail]), do: 1 + len(tail) def square([]), do: [] def square([head|tail]), do: [head*head|square(tail)] def add([]), do: [] def add([head|tail]), do: [head+1|add(tail)] def map([],_func), do: [] def map([head|tail], func), do: [func.(head) | map(tail,func...
47.736842
131
0.633407
d59c67d5b50111d7ef284bef08357191601ae0de
1,353
ex
Elixir
lib/kiq/timestamp.ex
locaweb/kiq
fa561b9a1a2361e99b4af5eafc4d3c7ece576ea9
[ "MIT" ]
59
2018-07-13T23:17:00.000Z
2021-12-21T07:03:03.000Z
lib/kiq/timestamp.ex
locaweb/kiq
fa561b9a1a2361e99b4af5eafc4d3c7ece576ea9
[ "MIT" ]
5
2019-08-05T13:14:42.000Z
2022-03-09T12:38:46.000Z
lib/kiq/timestamp.ex
locaweb/kiq
fa561b9a1a2361e99b4af5eafc4d3c7ece576ea9
[ "MIT" ]
6
2018-09-24T13:16:21.000Z
2021-05-03T08:26:52.000Z
defmodule Kiq.Timestamp do @moduledoc false @type t :: float() @doc false @spec from_unix(value :: t()) :: DateTime.t() def from_unix(value) when is_float(value) do value |> Kernel.*(1_000_000) |> trunc() |> DateTime.from_unix!(:microsecond) end @doc false @spec date_now() :: binary()...
21.47619
72
0.63119
d59c7d8e80aef187e20ccb69f22b515a888a027f
2,214
ex
Elixir
clients/content/lib/google_api/content/v2/model/shipment_invoice.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/content/lib/google_api/content/v2/model/shipment_invoice.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/content/lib/google_api/content/v2/model/shipment_invoice.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...
37.525424
248
0.731707
d59cb43761735f4384c7fa2d4b24a30e5796b2d4
1,549
ex
Elixir
web/controllers/wine_controller.ex
maxdec/cellar
056202b1d90748378e16edc9fdcade8c0491f2b1
[ "MIT" ]
null
null
null
web/controllers/wine_controller.ex
maxdec/cellar
056202b1d90748378e16edc9fdcade8c0491f2b1
[ "MIT" ]
null
null
null
web/controllers/wine_controller.ex
maxdec/cellar
056202b1d90748378e16edc9fdcade8c0491f2b1
[ "MIT" ]
null
null
null
defmodule Cellar.WineController do use Cellar.Web, :controller alias Cellar.Wine plug :scrub_params, "wine" when action in [:create, :update] def index(conn, _params) do wines = Repo.all(Wine) render(conn, "index.json", wines: wines) end def create(conn, %{"wine" => wine_params}) do changese...
26.706897
75
0.60878
d59cb7740052dc04829c92a1a854364d01c88a86
1,030
exs
Elixir
test/checkdigit/luhn_test.exs
tacomeet/checkdigit
450452140d212891bd29f8fa9b534b4edaf45ecd
[ "MIT" ]
null
null
null
test/checkdigit/luhn_test.exs
tacomeet/checkdigit
450452140d212891bd29f8fa9b534b4edaf45ecd
[ "MIT" ]
null
null
null
test/checkdigit/luhn_test.exs
tacomeet/checkdigit
450452140d212891bd29f8fa9b534b4edaf45ecd
[ "MIT" ]
null
null
null
defmodule CheckdigitLuhnTest do use ExUnit.Case doctest Checkdigit.Luhn import Checkdigit.Luhn, only: [generate: 1, verify: 1] test "generate with regular patterns" do assert generate("424242424242424") == {:ok, 2} assert generate("510510510510510") == {:ok, 0} assert generate("37144963539843") ==...
30.294118
68
0.662136
d59cd2f21359c1d28837562a001697f0e025b498
107
ex
Elixir
lib/flexflow/context.ex
clszzyh/flexflow
93df67c41278c2ca89c680dd8badb7a1f9f86cdf
[ "MIT" ]
2
2021-02-05T02:07:17.000Z
2021-07-31T22:38:54.000Z
lib/flexflow/context.ex
clszzyh/flexflow
93df67c41278c2ca89c680dd8badb7a1f9f86cdf
[ "MIT" ]
79
2021-01-14T02:39:36.000Z
2022-03-31T02:06:27.000Z
lib/flexflow/context.ex
clszzyh/flexflow
93df67c41278c2ca89c680dd8badb7a1f9f86cdf
[ "MIT" ]
null
null
null
defmodule Flexflow.Context do @moduledoc """ Context """ @type t :: map() def new, do: %{} end
10.7
29
0.570093
d59d5c0b0ab96b4d42f8930ae264777cd265b835
974
ex
Elixir
lib/collidex/detection/circles.ex
IdahoEv/collidex
ef86928ef264723db8129a9de94acce8183d01bc
[ "MIT" ]
4
2018-08-19T23:05:06.000Z
2021-01-17T09:17:45.000Z
lib/collidex/detection/circles.ex
IdahoEv/collidex
ef86928ef264723db8129a9de94acce8183d01bc
[ "MIT" ]
2
2016-09-14T19:47:17.000Z
2016-09-14T19:49:17.000Z
lib/collidex/detection/circles.ex
IdahoEv/collidex
ef86928ef264723db8129a9de94acce8183d01bc
[ "MIT" ]
null
null
null
defmodule Collidex.Detection.Circles do @moduledoc """ Detect collisions (or not) between pairs of circles """ @doc """ Check for a collision between two circles c1 and c2. Return value is truthy if the two circles overlap on the plane. ## Examples ``` iex> Collidex.Detection.Circles.collision?( ...
22.651163
61
0.580082
d59d6b3dfee6d28dfa797712739c073d62416934
2,864
ex
Elixir
clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/city.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/city.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/city.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
40.338028
140
0.668296
d59db156cba55815137f0bf63918af672587a7ae
1,028
ex
Elixir
lib/opensource_challenge_web/views/error_helpers.ex
topaxi/opensource-challenge-api
27e5da9c5162a8f0f4533f9f7f14ca1d145bac31
[ "MIT" ]
3
2016-11-29T10:58:11.000Z
2020-04-29T12:17:23.000Z
lib/opensource_challenge_web/views/error_helpers.ex
topaxi/opensource-challenge-api
27e5da9c5162a8f0f4533f9f7f14ca1d145bac31
[ "MIT" ]
50
2016-12-04T15:02:31.000Z
2021-07-23T04:21:55.000Z
lib/opensource_challenge_web/views/error_helpers.ex
topaxi/opensource-challenge-api
27e5da9c5162a8f0f4533f9f7f14ca1d145bac31
[ "MIT" ]
5
2019-11-24T11:17:39.000Z
2020-04-29T12:19:36.000Z
defmodule OpensourceChallengeWeb.ErrorHelpers do @moduledoc """ Conveniences for translating and building error messages. """ alias OpensourceChallengeWeb.Gettext @doc """ Translates an error message using gettext. """ def translate_error({msg, opts}) do # Because error messages were defined withi...
32.125
65
0.678016
d59db93c3e0d4fed1bfcd011c2cfd371894a41c0
2,065
ex
Elixir
lib/scraper/scraper.ex
plausible/location
ca240782e98adcbb7470ef37c5f5ebb3619528b8
[ "MIT" ]
null
null
null
lib/scraper/scraper.ex
plausible/location
ca240782e98adcbb7470ef37c5f5ebb3619528b8
[ "MIT" ]
null
null
null
lib/scraper/scraper.ex
plausible/location
ca240782e98adcbb7470ef37c5f5ebb3619528b8
[ "MIT" ]
null
null
null
defmodule Location.Scraper do @base_url "https://en.wikipedia.org" @subdivision_base_url @base_url <> "/wiki/ISO_3166-2:" @translations_dest Application.app_dir(:location, "/priv/iso_3166-2.en-translations.json") @countries_to_skip [ "EE", # For Estonia the local names are better than English ones "JP"...
28.680556
111
0.644068
d59e1d622c7b64e32b959dcfa598cc32ca1d6915
861
exs
Elixir
priv/repo/migrations/20180418014745_standardize_value_type_columns.exs
leonardocouy/accent
29fb324395ff998cc5cdc6947c60070ffabe647c
[ "BSD-3-Clause" ]
null
null
null
priv/repo/migrations/20180418014745_standardize_value_type_columns.exs
leonardocouy/accent
29fb324395ff998cc5cdc6947c60070ffabe647c
[ "BSD-3-Clause" ]
null
null
null
priv/repo/migrations/20180418014745_standardize_value_type_columns.exs
leonardocouy/accent
29fb324395ff998cc5cdc6947c60070ffabe647c
[ "BSD-3-Clause" ]
null
null
null
defmodule Accent.Repo.Migrations.StandardizeValueTypeColumns do use Ecto.Migration def change do execute """ UPDATE "operations" AS o0 SET "previous_translation" = replace(previous_translation::TEXT,'"value_type": ""','"value_type": "string"')::jsonb """ execute """ UPDATE "operations" AS ...
28.7
147
0.628339
d59e4ab6aba62f545b6838d0a7c669bc0514f787
2,827
ex
Elixir
clients/cloud_billing/lib/google_api/cloud_billing/v1/model/project_billing_info.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/cloud_billing/lib/google_api/cloud_billing/v1/model/project_billing_info.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/cloud_billing/lib/google_api/cloud_billing/v1/model/project_billing_info.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...
50.482143
331
0.734347
d59e73a16e38f3ce811e97a902151215ec239308
55
ex
Elixir
lib/tosh_web/views/page_view.ex
korczis/tosh
dc197f223b460e5769ceaa47d8058202aeab66b8
[ "MIT" ]
null
null
null
lib/tosh_web/views/page_view.ex
korczis/tosh
dc197f223b460e5769ceaa47d8058202aeab66b8
[ "MIT" ]
null
null
null
lib/tosh_web/views/page_view.ex
korczis/tosh
dc197f223b460e5769ceaa47d8058202aeab66b8
[ "MIT" ]
null
null
null
defmodule ToshWeb.PageView do use ToshWeb, :view end
13.75
29
0.781818
d59e7abc676294e00299f650dd3054b527364ef0
7,949
exs
Elixir
samples/.credo.exs
fnando/vscode-linter
d3e6054c13983e467886d0ec8466819d3c171614
[ "MIT" ]
22
2021-07-08T12:06:41.000Z
2022-02-25T17:04:10.000Z
samples/.credo.exs
fnando/vscode-linter
d3e6054c13983e467886d0ec8466819d3c171614
[ "MIT" ]
6
2021-07-23T06:29:50.000Z
2022-02-04T22:23:54.000Z
samples/.credo.exs
fnando/vscode-linter
d3e6054c13983e467886d0ec8466819d3c171614
[ "MIT" ]
3
2021-09-24T22:02:28.000Z
2021-11-26T06:33:56.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 ...
39.547264
97
0.614291
d59e881a3a1273f92fb997ae9835aa5ae8342d6c
695
ex
Elixir
lib/dailymeal/user.ex
LuizFerK/DailyMealRelations
57f9cc60bf263267fb8c5a3da8e25e86a0e0aca4
[ "MIT" ]
null
null
null
lib/dailymeal/user.ex
LuizFerK/DailyMealRelations
57f9cc60bf263267fb8c5a3da8e25e86a0e0aca4
[ "MIT" ]
null
null
null
lib/dailymeal/user.ex
LuizFerK/DailyMealRelations
57f9cc60bf263267fb8c5a3da8e25e86a0e0aca4
[ "MIT" ]
null
null
null
defmodule Dailymeal.User do use Ecto.Schema import Ecto.Changeset alias Dailymeal.Meal @primary_key {:id, :binary_id, autogenerate: true} @required_params [:name, :cpf, :email] @derive {Jason.Encoder, only: [:id] ++ @required_params} schema "users" do field :name, :string field :cpf, :string ...
21.060606
58
0.656115
d59e9b48f03f976efae5ef0373cd882bdedcc82c
1,331
ex
Elixir
home_weather_phx/lib/home_weather_phx/application.ex
NervesJP/fukuokaex11
8bd3e5bf5f4c0a2f08a2a3e16a94a56468eb1aa3
[ "Apache-2.0" ]
13
2018-06-22T10:41:17.000Z
2018-09-01T02:34:33.000Z
home_weather_phx/lib/home_weather_phx/application.ex
takasehideki/fukuokaex11
8bd3e5bf5f4c0a2f08a2a3e16a94a56468eb1aa3
[ "Apache-2.0" ]
null
null
null
home_weather_phx/lib/home_weather_phx/application.ex
takasehideki/fukuokaex11
8bd3e5bf5f4c0a2f08a2a3e16a94a56468eb1aa3
[ "Apache-2.0" ]
1
2022-01-20T13:12:18.000Z
2022-01-20T13:12:18.000Z
defmodule HomeWeatherPhx.Application do use Application # RGB LCD Screen should use the IC2-1 port @dht_pin 7 # Use port 7 for the DHT @dht_poll_interval 10_000 # poll every 10 second # See https://hexdocs.pm/elixir/Application.html # for more information on OTP Applications def start(_type, _args) do ...
33.275
92
0.719008
d59ea1727550499f2796ea0c67a5db766c998e57
556
ex
Elixir
lib/event_store/storage/initializer.ex
uberbrodt/eventstore
2bcdc7f8bcea6af87a08a4c719141f780e7a4fc4
[ "MIT" ]
null
null
null
lib/event_store/storage/initializer.ex
uberbrodt/eventstore
2bcdc7f8bcea6af87a08a4c719141f780e7a4fc4
[ "MIT" ]
1
2018-08-23T16:47:17.000Z
2018-08-23T19:56:42.000Z
lib/event_store/storage/initializer.ex
uberbrodt/eventstore
2bcdc7f8bcea6af87a08a4c719141f780e7a4fc4
[ "MIT" ]
1
2018-07-30T18:25:06.000Z
2018-07-30T18:25:06.000Z
defmodule EventStore.Storage.Initializer do @moduledoc false alias EventStore.Sql.Statements def run!(conn, opts \\ []), do: execute(conn, Statements.initializers(), opts) def reset!(conn, opts \\ []), do: execute(conn, Statements.reset(), opts) defp execute(conn, statements, opts) do Postgrex.transac...
23.166667
80
0.651079
d59ebb525838218ca9cd8b5c6520c0757d844692
1,475
ex
Elixir
lib/benchee/suite.ex
mayel/benchee
faf3c85c241a4c7eeaab8edfc85094bbbb10c44d
[ "MIT" ]
636
2016-06-06T07:58:36.000Z
2019-03-19T15:27:37.000Z
lib/benchee/suite.ex
mayel/benchee
faf3c85c241a4c7eeaab8edfc85094bbbb10c44d
[ "MIT" ]
198
2016-06-18T08:19:15.000Z
2019-03-19T15:32:37.000Z
lib/benchee/suite.ex
mayel/benchee
faf3c85c241a4c7eeaab8edfc85094bbbb10c44d
[ "MIT" ]
43
2016-06-08T08:04:30.000Z
2019-02-13T17:10:24.000Z
defmodule Benchee.Suite do @moduledoc """ Main Benchee data structure that aggregates the results from every step. Different layers of the benchmarking rely on different data being present here. For instance for `Benchee.Statistics.statistics/1` to work the `run_time_data` key of each scenario needs to be fi...
29.5
92
0.688136
d59ee1179cdceef2b46c0351f8e7d338621e8ef9
1,887
ex
Elixir
clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1__video_segment.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1__video_segment.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1__video_segment.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
33.105263
117
0.738739
d59ef6ced3e6367fd6fe1b9800ce31eec853c7ea
17,175
exs
Elixir
apps/ewallet/test/ewallet/web/filters/match_any_query_test.exs
AndonMitev/EWallet
898cde38933d6f134734528b3e594eedf5fa50f3
[ "Apache-2.0" ]
322
2018-02-28T07:38:44.000Z
2020-05-27T23:09:55.000Z
apps/ewallet/test/ewallet/web/filters/match_any_query_test.exs
AndonMitev/EWallet
898cde38933d6f134734528b3e594eedf5fa50f3
[ "Apache-2.0" ]
643
2018-02-28T12:05:20.000Z
2020-05-22T08:34:38.000Z
apps/ewallet/test/ewallet/web/filters/match_any_query_test.exs
AndonMitev/EWallet
898cde38933d6f134734528b3e594eedf5fa50f3
[ "Apache-2.0" ]
63
2018-02-28T10:57:06.000Z
2020-05-27T23:10:38.000Z
# Copyright 2018-2019 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 ...
28.962901
97
0.62329
d59f5f010ecb42b4cbfb79d1625284eb8b93ad8c
6,743
ex
Elixir
apps/core/lib/core/contract_requests/storage.ex
ehealth-ua/ehealth.api
4ffe26a464fe40c95fb841a4aa2e147068f65ca2
[ "Apache-2.0" ]
8
2019-06-14T11:34:49.000Z
2021-08-05T19:14:24.000Z
apps/core/lib/core/contract_requests/storage.ex
edenlabllc/ehealth.api.public
4ffe26a464fe40c95fb841a4aa2e147068f65ca2
[ "Apache-2.0" ]
1
2019-07-08T15:20:22.000Z
2019-07-08T15:20:22.000Z
apps/core/lib/core/contract_requests/storage.ex
ehealth-ua/ehealth.api
4ffe26a464fe40c95fb841a4aa2e147068f65ca2
[ "Apache-2.0" ]
6
2018-05-11T13:59:32.000Z
2022-01-19T20:15:22.000Z
defmodule Core.ContractRequests.Storage do @moduledoc false alias Core.API.MediaStorage alias Core.ContractRequests.CapitationContractRequest alias Core.ContractRequests.RequestPack alias Core.Validators.Signature, as: SignatureValidator alias Ecto.UUID require Logger @signature_api Application.get_e...
35.677249
120
0.66202
d59fa12a7dc938fda4d683727632c0aa8e07d178
3,059
ex
Elixir
clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/flag.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/flag.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/flag.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.084507
211
0.681595
d59fe30d39a194ec13d0043a37013bfe18931f5e
741
ex
Elixir
lib/ketbin/pastes/utils.ex
ATechnoHazard/katbin
20a0b45954cf7819cd9d51c401db06be0f47666b
[ "MIT" ]
4
2020-08-05T20:05:34.000Z
2020-10-01T10:01:56.000Z
lib/ketbin/pastes/utils.ex
ATechnoHazard/katbin
20a0b45954cf7819cd9d51c401db06be0f47666b
[ "MIT" ]
1
2020-07-08T05:02:12.000Z
2020-09-25T10:05:11.000Z
lib/ketbin/pastes/utils.ex
ATechnoHazard/katbin
20a0b45954cf7819cd9d51c401db06be0f47666b
[ "MIT" ]
1
2020-08-30T12:59:49.000Z
2020-08-30T12:59:49.000Z
defmodule Ketbin.Pastes.Utils do defp rand_vowel do String.graphemes("aeiou") |> Enum.take_random(1) |> Enum.at(0) end defp rand_consonant do String.graphemes("bcdfghjklmnpqrstvwxyz") |> Enum.take_random(1) |> Enum.at(0) end def generate_key(length \\ 10) do random = Enum.random(...
21.794118
89
0.592443
d59ff8d7377f2cc038b40b06f4e744276eefb664
1,232
exs
Elixir
config/config.exs
symptog/ElixirNode
db0c33691b6c02a965e5c66c68c5033510d3254a
[ "MIT" ]
1
2015-11-16T19:48:05.000Z
2015-11-16T19:48:05.000Z
config/config.exs
symptog/ElixirNode
db0c33691b6c02a965e5c66c68c5033510d3254a
[ "MIT" ]
null
null
null
config/config.exs
symptog/ElixirNode
db0c33691b6c02a965e5c66c68c5033510d3254a
[ "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.235294
73
0.75
d5a03840e616d466fd7712e6f2b2476c3abb1204
251
ex
Elixir
lib/ex_binance/usd_margin_futures/public/server_time.ex
rupurt/ex_binance
fa3fe75878758eef73508c72533e881fbf6ea0d7
[ "MIT" ]
7
2019-04-12T12:46:53.000Z
2021-06-29T19:43:41.000Z
lib/ex_binance/usd_margin_futures/public/server_time.ex
rupurt/ex_binance
fa3fe75878758eef73508c72533e881fbf6ea0d7
[ "MIT" ]
18
2020-05-25T09:03:58.000Z
2021-06-24T19:44:29.000Z
lib/ex_binance/usd_margin_futures/public/server_time.ex
rupurt/ex_binance
fa3fe75878758eef73508c72533e881fbf6ea0d7
[ "MIT" ]
12
2019-08-08T09:20:59.000Z
2021-04-12T19:19:43.000Z
defmodule ExBinance.UsdMarginFutures.Public.ServerTime do import ExBinance.Rest.UsdMarginFuturesClient, only: [get: 2] def server_time do with {:ok, %{"serverTime" => time}} <- get("/fapi/v1/time", %{}) do {:ok, time} end end end
25.1
71
0.665339
d5a06ed62922a20c5eee37be1485eb96edda1515
1,627
ex
Elixir
lib/exprotobuf/delimited.ex
xinz/exprotobuf
f9dbdc8c4e08ac00ed64481d0e11b31e70099df5
[ "Apache-2.0" ]
493
2015-01-05T03:33:34.000Z
2022-03-05T01:12:15.000Z
lib/exprotobuf/delimited.ex
xinz/exprotobuf
f9dbdc8c4e08ac00ed64481d0e11b31e70099df5
[ "Apache-2.0" ]
99
2015-01-08T14:06:50.000Z
2021-08-20T08:47:41.000Z
lib/exprotobuf/delimited.ex
xinz/exprotobuf
f9dbdc8c4e08ac00ed64481d0e11b31e70099df5
[ "Apache-2.0" ]
89
2015-01-07T21:17:24.000Z
2021-07-31T17:48:59.000Z
defmodule Protobuf.Delimited do @moduledoc """ Handles serialization/deserialization of multi-message encoded binaries. """ @doc """ Loops over messages and encodes them. Also creates a final byte stream which contains the messages delimited by their byte size. ## Example input = [m1, m2, m3] ...
27.116667
92
0.669945
d5a089120cb776a64c890d1dd63d2a1e17e24f9d
1,947
exs
Elixir
proxy/run.exs
joshnuss/design-patterns-in-elixir
7f07cae0701ad460b6b275e382fad03324656989
[ "MIT" ]
516
2015-09-25T18:43:37.000Z
2022-03-22T16:33:08.000Z
proxy/run.exs
joshnuss/design-patterns-in-elixir
7f07cae0701ad460b6b275e382fad03324656989
[ "MIT" ]
2
2017-10-01T22:33:34.000Z
2019-02-21T18:21:54.000Z
proxy/run.exs
joshnuss/design-patterns-in-elixir
7f07cae0701ad460b6b275e382fad03324656989
[ "MIT" ]
52
2015-11-15T05:58:45.000Z
2022-01-21T20:01:17.000Z
defmodule BankAccount do use GenServer @initial_state %{ balance: 0, transactions: [] } def start_link do GenServer.start_link(__MODULE__, @initial_state) end def init(state) do {:ok, state} end def deposit(account, money) do GenServer.call(account, {:deposit, money}) end de...
23.743902
97
0.664612
d5a0eeb52e2683598d48f9b78b018d3d7841c09f
2,871
exs
Elixir
apps/ewallet/test/ewallet/fetchers/token_fetcher_test.exs
saturnial/ewallet
a0a6a7604fca0891d495b3aebaead37fe02aae2c
[ "Apache-2.0" ]
1
2018-12-07T06:21:21.000Z
2018-12-07T06:21:21.000Z
apps/ewallet/test/ewallet/fetchers/token_fetcher_test.exs
saturnial/ewallet
a0a6a7604fca0891d495b3aebaead37fe02aae2c
[ "Apache-2.0" ]
null
null
null
apps/ewallet/test/ewallet/fetchers/token_fetcher_test.exs
saturnial/ewallet
a0a6a7604fca0891d495b3aebaead37fe02aae2c
[ "Apache-2.0" ]
null
null
null
defmodule EWallet.TokenFetcherTest do use EWallet.LocalLedgerCase, async: true alias EWallet.TokenFetcher describe "fetch/3 with token_id" do test "sets the token in both from_token and to_token" do token = insert(:token) {res, from, to} = TokenFetcher.fetch( %{ "to...
23.341463
115
0.522466
d5a12b982a37153b9a9621fc232bcd39d472abf6
9,363
ex
Elixir
lib/elixir/lib/supervisor/spec.ex
lytedev/elixir
dc25bb8e1484e2328eef819402d268dec7bb908a
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/supervisor/spec.ex
lytedev/elixir
dc25bb8e1484e2328eef819402d268dec7bb908a
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/supervisor/spec.ex
lytedev/elixir
dc25bb8e1484e2328eef819402d268dec7bb908a
[ "Apache-2.0" ]
null
null
null
defmodule Supervisor.Spec do @moduledoc """ Outdated functions for building child specifications. The functions in this module are deprecated and they do not work with the module-based child specs introduced in Elixir v1.5. Please see the `Supervisor` documentation instead. Convenience functions for defin...
32.737762
105
0.675531
d5a1b2d81a1bcb3247f55a2517185c1caec48676
1,517
ex
Elixir
clients/spanner/lib/google_api/spanner/v1/model/authorization_logging_options.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/spanner/lib/google_api/spanner/v1/model/authorization_logging_options.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/spanner/lib/google_api/spanner/v1/model/authorization_logging_options.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
1
2018-07-28T20:50:50.000Z
2018-07-28T20:50:50.000Z
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
32.276596
97
0.764008
d5a1be59f7ba982de563c962d9e0167164380840
666
exs
Elixir
wabanex/config/test.exs
shonorio/nlwt_elixir
029b731c747e4b4954bc0197881b325fb80b4ab6
[ "MIT" ]
null
null
null
wabanex/config/test.exs
shonorio/nlwt_elixir
029b731c747e4b4954bc0197881b325fb80b4ab6
[ "MIT" ]
null
null
null
wabanex/config/test.exs
shonorio/nlwt_elixir
029b731c747e4b4954bc0197881b325fb80b4ab6
[ "MIT" ]
null
null
null
use Mix.Config # Configure your database # # The MIX_TEST_PARTITION environment variable can be used # to provide built-in test partitioning in CI environment. # Run `mix help test` for more information. config :wabanex, Wabanex.Repo, username: "wabanex", password: "SenhaSegura123", database: "wabanex_test#{Syst...
28.956522
66
0.750751
d5a1d2a99b40c03d11a728c937b65146c3a61eef
2,624
ex
Elixir
clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1p3beta1__speech_transcription.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1p3beta1__speech_transcription.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1p3beta1__speech_transcription.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.757576
404
0.75343
d5a1f48476966a99c2c87b97f30655e62ebd4811
3,608
ex
Elixir
lib/stripe/converter.ex
staffing-coop/stripity_stripe
b6a25cac6e912b050db664db4991574b46959448
[ "BSD-3-Clause" ]
null
null
null
lib/stripe/converter.ex
staffing-coop/stripity_stripe
b6a25cac6e912b050db664db4991574b46959448
[ "BSD-3-Clause" ]
null
null
null
lib/stripe/converter.ex
staffing-coop/stripity_stripe
b6a25cac6e912b050db664db4991574b46959448
[ "BSD-3-Clause" ]
null
null
null
defmodule Stripe.Converter do @doc """ Takes a result map or list of maps from a Stripe response and returns a struct (e.g. `%Stripe.Card{}`) or list of structs. If the result is not a supported Stripe object, it just returns a plain map with atomized keys. """ @spec convert_result(%{String.t() => any})...
24.053333
88
0.648559
d5a24750162d34d6b839c70e85c0ccf2a4e1d9c8
55
exs
Elixir
Elixir/main.exs
urholaukkarinen/devcontainers
aaa93887d091e1876a7736a0fa9f18d3934e000b
[ "MIT" ]
null
null
null
Elixir/main.exs
urholaukkarinen/devcontainers
aaa93887d091e1876a7736a0fa9f18d3934e000b
[ "MIT" ]
null
null
null
Elixir/main.exs
urholaukkarinen/devcontainers
aaa93887d091e1876a7736a0fa9f18d3934e000b
[ "MIT" ]
null
null
null
defmodule HelloWorld do IO.puts "Hello, World!" end
18.333333
26
0.727273
d5a2c8b40af234508e989d0e81d0e66cbf010fbf
12,876
exs
Elixir
test/sanbase_web/graphql/projects/project_api_wallet_transactions_test.exs
santiment/sanbase2
9ef6e2dd1e377744a6d2bba570ea6bd477a1db31
[ "MIT" ]
81
2017-11-20T01:20:22.000Z
2022-03-05T12:04:25.000Z
test/sanbase_web/graphql/projects/project_api_wallet_transactions_test.exs
rmoorman/sanbase2
226784ab43a24219e7332c49156b198d09a6dd85
[ "MIT" ]
359
2017-10-15T14:40:53.000Z
2022-01-25T13:34:20.000Z
test/sanbase_web/graphql/projects/project_api_wallet_transactions_test.exs
rmoorman/sanbase2
226784ab43a24219e7332c49156b198d09a6dd85
[ "MIT" ]
16
2017-11-19T13:57:40.000Z
2022-02-07T08:13:02.000Z
defmodule SanbaseWeb.Graphql.ProjectApiWalletTransactionsTest do use SanbaseWeb.ConnCase, async: false alias Sanbase.Model.Project import Mock import SanbaseWeb.Graphql.TestHelpers import Sanbase.Factory import ExUnit.CaptureLog import Sanbase.TestHelpers @datetime1 ~U[2017-05-13 15:00:00Z] @dateti...
33.357513
93
0.501631
d5a2dc16c0962d411ebb47f039266292a96cd07d
1,121
exs
Elixir
config/config.exs
7hoenix/Chess
8b57b2d6dd4235e2ee67622f6521f83cd237417b
[ "MIT" ]
8
2018-11-12T13:45:42.000Z
2022-03-15T14:45:26.000Z
config/config.exs
7hoenix/Chess
8b57b2d6dd4235e2ee67622f6521f83cd237417b
[ "MIT" ]
1
2021-08-30T08:58:53.000Z
2021-10-13T09:15:36.000Z
config/config.exs
7hoenix/Chess
8b57b2d6dd4235e2ee67622f6521f83cd237417b
[ "MIT" ]
3
2020-12-08T22:32:37.000Z
2022-01-27T17:54:55.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.16129
73
0.749331
d5a33bd29e9a9f77f9184e67dcaacdc2f1d38023
2,329
exs
Elixir
test/data_quacker/skipper_test.exs
fiodorbaczynski/trivial_csv
5d80a260f385bf2cbbd296a5ca359c9865510317
[ "Apache-2.0" ]
20
2019-08-02T08:25:51.000Z
2021-05-18T21:28:47.000Z
test/data_quacker/skipper_test.exs
fiodorbaczynski/trivial_csv
5d80a260f385bf2cbbd296a5ca359c9865510317
[ "Apache-2.0" ]
null
null
null
test/data_quacker/skipper_test.exs
fiodorbaczynski/trivial_csv
5d80a260f385bf2cbbd296a5ca359c9865510317
[ "Apache-2.0" ]
null
null
null
defmodule DataQuacker.SkipperTest do use ExUnit.Case, async: true alias DataQuacker.Skipper alias DataQuacker.Context alias DataQuacker.Schema.WrappedFun describe "call/3" do setup do skipper_fun_1 = %WrappedFun{arity: 1, callable: fn value -> value == "abc" end} skipper_fun_2 = %WrappedF...
36.968254
117
0.683985
d5a34ca13a0f05ad02f311c813fec07ba4815e3f
447
exs
Elixir
apps/core/priv/prm_repo/migrations/20171026104218_create_black_list_users.exs
ehealth-ua/ehealth.api
4ffe26a464fe40c95fb841a4aa2e147068f65ca2
[ "Apache-2.0" ]
8
2019-06-14T11:34:49.000Z
2021-08-05T19:14:24.000Z
apps/core/priv/prm_repo/migrations/20171026104218_create_black_list_users.exs
edenlabllc/ehealth.api.public
4ffe26a464fe40c95fb841a4aa2e147068f65ca2
[ "Apache-2.0" ]
1
2019-07-08T15:20:22.000Z
2019-07-08T15:20:22.000Z
apps/core/priv/prm_repo/migrations/20171026104218_create_black_list_users.exs
ehealth-ua/ehealth.api
4ffe26a464fe40c95fb841a4aa2e147068f65ca2
[ "Apache-2.0" ]
6
2018-05-11T13:59:32.000Z
2022-01-19T20:15:22.000Z
defmodule Core.PRMRepo.Migrations.CreateBlackListUsers do use Ecto.Migration def change do create table(:black_list_users, primary_key: false) do add(:id, :uuid, primary_key: true) add(:tax_id, :string, null: false) add(:is_active, :boolean, default: false, null: false) add(:inserted_by...
27.9375
60
0.682327
d5a358becf3648d1d1b904670fbd03c18f285ab6
208
exs
Elixir
config/test.exs
myskoach/events
84e270b9f4546a32a033cc2cba3e3961b9a86a75
[ "MIT" ]
null
null
null
config/test.exs
myskoach/events
84e270b9f4546a32a033cc2cba3e3961b9a86a75
[ "MIT" ]
null
null
null
config/test.exs
myskoach/events
84e270b9f4546a32a033cc2cba3e3961b9a86a75
[ "MIT" ]
null
null
null
use Mix.Config config :logger, level: :warn config :forum, pub_sub: Forum.PubSub.MockPubSub, consumers: [Forum.TestConsumer] config :forum, Forum.PubSub.PhoenixPubSub, server: :some_server
18.909091
43
0.721154
d5a37d8ceab464fb28aa0d1b7c32803cf587d741
516
exs
Elixir
config/test.exs
haighis/romulus_app
d1c85ecb72d935eb9dd314617448bd56b53789e9
[ "MIT" ]
null
null
null
config/test.exs
haighis/romulus_app
d1c85ecb72d935eb9dd314617448bd56b53789e9
[ "MIT" ]
null
null
null
config/test.exs
haighis/romulus_app
d1c85ecb72d935eb9dd314617448bd56b53789e9
[ "MIT" ]
null
null
null
use Mix.Config # We don't run a server during test. If one is required, # you can enable the server option below. config :romulus_app, RomulusWeb.Endpoint, http: [port: 4001], server: false # Print only warnings and errors during test config :logger, level: :warn # Configure your database # config :real_world, T...
25.8
56
0.718992
d5a38980c953e07918d110142954f4e62d033a55
1,660
ex
Elixir
clients/classroom/lib/google_api/classroom/v1/model/cloud_pubsub_topic.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/classroom/lib/google_api/classroom/v1/model/cloud_pubsub_topic.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/classroom/lib/google_api/classroom/v1/model/cloud_pubsub_topic.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...
35.319149
199
0.745783
d5a3bba721c404ebf8175217ad826fa8c9c55f82
7,632
exs
Elixir
test/sample_app_build_test.exs
kayodeosagbemi/elixir-runtime
1746adf362444e3e0cc2daa5e461be24f1cb624a
[ "Apache-2.0" ]
170
2017-08-25T06:40:14.000Z
2022-01-10T22:18:51.000Z
test/sample_app_build_test.exs
kayodeosagbemi/elixir-runtime
1746adf362444e3e0cc2daa5e461be24f1cb624a
[ "Apache-2.0" ]
27
2017-09-07T05:57:37.000Z
2022-03-22T13:40:47.000Z
test/sample_app_build_test.exs
kayodeosagbemi/elixir-runtime
1746adf362444e3e0cc2daa5e461be24f1cb624a
[ "Apache-2.0" ]
16
2017-11-14T01:45:00.000Z
2021-10-09T03:26:39.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 writing, ...
25.355482
97
0.565252
d5a3fd56592fcf1a0801e834d9a41c850a60644a
463
exs
Elixir
test/doritos_web/views/error_view_test.exs
sean-clayton/doritos
384f47b2a1acddf67701b4f1bcf58e4b1a8a599f
[ "0BSD" ]
null
null
null
test/doritos_web/views/error_view_test.exs
sean-clayton/doritos
384f47b2a1acddf67701b4f1bcf58e4b1a8a599f
[ "0BSD" ]
null
null
null
test/doritos_web/views/error_view_test.exs
sean-clayton/doritos
384f47b2a1acddf67701b4f1bcf58e4b1a8a599f
[ "0BSD" ]
null
null
null
defmodule DoritosWeb.ErrorViewTest do use DoritosWeb.ConnCase, async: true # Bring render/3 and render_to_string/3 for testing custom views import Phoenix.View test "renders 404.json" do assert render(DoritosWeb.ErrorView, "404.json", []) == %{errors: %{detail: "Not Found"}} end test "rend...
27.235294
66
0.669546
d5a4054907c1ef08bc82d5dcac58065fa1a47a9a
3,091
ex
Elixir
clients/compute/lib/google_api/compute/v1/model/external_vpn_gateway_list.ex
kyleVsteger/elixir-google-api
3a0dd498af066a4361b5b0fd66ffc04a57539488
[ "Apache-2.0" ]
null
null
null
clients/compute/lib/google_api/compute/v1/model/external_vpn_gateway_list.ex
kyleVsteger/elixir-google-api
3a0dd498af066a4361b5b0fd66ffc04a57539488
[ "Apache-2.0" ]
null
null
null
clients/compute/lib/google_api/compute/v1/model/external_vpn_gateway_list.ex
kyleVsteger/elixir-google-api
3a0dd498af066a4361b5b0fd66ffc04a57539488
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
47.553846
393
0.714655
d5a455f91f9a5a4ac05fd97ed23a7dfe0b4b16f4
515
ex
Elixir
apps/persistence/lib/persistence/application.ex
alejandrodnm/ranking_poller
f7d231e928f1c467bfbffd8bab2b6947bdb0b87a
[ "MIT" ]
null
null
null
apps/persistence/lib/persistence/application.ex
alejandrodnm/ranking_poller
f7d231e928f1c467bfbffd8bab2b6947bdb0b87a
[ "MIT" ]
null
null
null
apps/persistence/lib/persistence/application.ex
alejandrodnm/ranking_poller
f7d231e928f1c467bfbffd8bab2b6947bdb0b87a
[ "MIT" ]
null
null
null
defmodule Persistence.Application do @moduledoc """ The Persistence Application Service. The persistence system business domain lives in this application. Exposes API to clients such as the `Persistence.Web` application for use in channels, controllers, and elsewhere. """ use Application def start(_t...
25.75
67
0.737864
d5a4bbfa8ad03875cfb883215ed35ec05faed539
3,346
ex
Elixir
lib/con_cache_provider.ex
IvanIvanoff/absinthe_cache
53d65d111a431fd2d53f54f458622c875885d685
[ "MIT" ]
19
2020-02-06T09:26:28.000Z
2022-02-18T01:17:40.000Z
lib/con_cache_provider.ex
IvanIvanoff/absinthe_cache
53d65d111a431fd2d53f54f458622c875885d685
[ "MIT" ]
1
2021-06-21T16:52:30.000Z
2021-07-12T00:03:10.000Z
lib/con_cache_provider.ex
IvanIvanoff/absinthe_cache
53d65d111a431fd2d53f54f458622c875885d685
[ "MIT" ]
3
2021-05-24T08:36:11.000Z
2021-08-05T07:47:26.000Z
defmodule AbsintheCache.ConCacheProvider do @moduledoc ~s""" Implements Sanbase.Cache.Behaviour for con_cache """ # TODO: Check if con_cache is available @behaviour AbsintheCache.Behaviour @compile {:inline, get: 2, store: 3, get_or_store: 4, cache_item: 3, ...
25.738462
93
0.62104
d5a4d6aac63b98cc86da1d8e8ecdb382a890e6cc
1,199
ex
Elixir
plugins/ucc_chat/lib/ucc_chat/models/schema/pinned_message.ex
josephkabraham/ucx_ucc
0dbd9e3eb5940336b4870cff033482ceba5f6ee7
[ "MIT" ]
null
null
null
plugins/ucc_chat/lib/ucc_chat/models/schema/pinned_message.ex
josephkabraham/ucx_ucc
0dbd9e3eb5940336b4870cff033482ceba5f6ee7
[ "MIT" ]
null
null
null
plugins/ucc_chat/lib/ucc_chat/models/schema/pinned_message.ex
josephkabraham/ucx_ucc
0dbd9e3eb5940336b4870cff033482ceba5f6ee7
[ "MIT" ]
null
null
null
defmodule UccChat.Schema.PinnedMessage do use UccChat.Shared, :schema alias UccChat.Schema.{Message, Channel} alias UcxUcc.UccPubSub require Logger schema "pinned_messages" do belongs_to :message, Message belongs_to :channel, Channel timestamps(type: :utc_datetime) end @fields ~w(message_...
24.469388
83
0.704754
d5a51e1a20ced9861e88538878fdfef9b8c648bf
8,707
exs
Elixir
lib/elixir/test/elixir/kernel/lexical_tracker_test.exs
BlakeWilliams/elixir
f77cc2657cf981fdf819915f1ee15e69c3cd91ad
[ "Apache-2.0" ]
null
null
null
lib/elixir/test/elixir/kernel/lexical_tracker_test.exs
BlakeWilliams/elixir
f77cc2657cf981fdf819915f1ee15e69c3cd91ad
[ "Apache-2.0" ]
null
null
null
lib/elixir/test/elixir/kernel/lexical_tracker_test.exs
BlakeWilliams/elixir
f77cc2657cf981fdf819915f1ee15e69c3cd91ad
[ "Apache-2.0" ]
null
null
null
Code.require_file("../test_helper.exs", __DIR__) defmodule Kernel.LexicalTrackerTest do use ExUnit.Case, async: true alias Kernel.LexicalTracker, as: D setup do {:ok, pid} = D.start_link("dest") {:ok, [pid: pid]} end test "gets the destination", config do assert D.dest(config[:pid]) == "dest" ...
37.051064
93
0.63604
d5a562fa1f265d374a2ba93fa90ca7c2f5c3af34
262
ex
Elixir
lib/maintainable_api_documentation.ex
pierce-h/maintainable_api_documentation
854772687e0647019702b28e68a8283f4ab66039
[ "Apache-2.0" ]
null
null
null
lib/maintainable_api_documentation.ex
pierce-h/maintainable_api_documentation
854772687e0647019702b28e68a8283f4ab66039
[ "Apache-2.0" ]
null
null
null
lib/maintainable_api_documentation.ex
pierce-h/maintainable_api_documentation
854772687e0647019702b28e68a8283f4ab66039
[ "Apache-2.0" ]
null
null
null
defmodule MaintainableApiDocumentation do @moduledoc """ Documentation for MaintainableApiDocumentation. """ @doc """ Hello world. ## Examples iex> MaintainableApiDocumentation.hello() :world """ def hello do :world end end
13.789474
49
0.667939
d5a5800e3551bf340c7f7e9f0da2dad26f9818f9
81,516
ex
Elixir
lib/asteroid/config.ex
tanguilp/asteroid
8e03221d365da7f03f82df192c535d3ba2101f4d
[ "Apache-2.0" ]
36
2019-07-23T20:01:05.000Z
2021-08-05T00:52:34.000Z
lib/asteroid/config.ex
tanguilp/asteroid
8e03221d365da7f03f82df192c535d3ba2101f4d
[ "Apache-2.0" ]
19
2019-08-23T19:04:50.000Z
2021-05-07T22:12:25.000Z
lib/asteroid/config.ex
tanguilp/asteroid
8e03221d365da7f03f82df192c535d3ba2101f4d
[ "Apache-2.0" ]
3
2019-09-06T10:47:20.000Z
2020-09-09T03:43:31.000Z
defmodule Asteroid.Config do @moduledoc """ Specification of configuration options and callbacks """ require Asteroid.Config.Builder alias Asteroid.Client alias Asteroid.Crypto alias Asteroid.OIDC alias Asteroid.Subject @typedoc """ A map describing scope configuration The map keys are the sco...
30.714393
97
0.708781
d5a5803c1486dff9783ff22adba01f6249ac8045
7,487
ex
Elixir
lib/socket/handler/core.ex
random-mud-pie/grapevine
40688da3413e5216df5ee19ad6f7272932d49e23
[ "MIT" ]
null
null
null
lib/socket/handler/core.ex
random-mud-pie/grapevine
40688da3413e5216df5ee19ad6f7272932d49e23
[ "MIT" ]
null
null
null
lib/socket/handler/core.ex
random-mud-pie/grapevine
40688da3413e5216df5ee19ad6f7272932d49e23
[ "MIT" ]
null
null
null
defmodule Socket.Handler.Core do @moduledoc """ Core events Authenticate, heartbeat, etc """ use Socket.Web.Module require Logger alias GrapevineData.Channels alias GrapevineData.Games alias GrapevineData.Messages alias Socket.Presence alias Socket.Handler.Core.Authenticate alias Socket.PubS...
27.424908
97
0.620275
d5a5859ce0dda02c4601fda18f4d0ec216d15694
7,016
ex
Elixir
lib/grizzly/firmware_updates/firmware_update_runner.ex
smartrent/grizzly
65a397ea7bfedb5518fe63a3f058a0b6af473e39
[ "Apache-2.0" ]
76
2019-09-04T16:56:58.000Z
2022-03-29T06:54:36.000Z
lib/grizzly/firmware_updates/firmware_update_runner.ex
smartrent/grizzly
65a397ea7bfedb5518fe63a3f058a0b6af473e39
[ "Apache-2.0" ]
124
2019-09-05T14:01:24.000Z
2022-02-28T22:58:14.000Z
lib/grizzly/firmware_updates/firmware_update_runner.ex
smartrent/grizzly
65a397ea7bfedb5518fe63a3f058a0b6af473e39
[ "Apache-2.0" ]
10
2019-10-23T19:25:45.000Z
2021-11-17T13:21:20.000Z
defmodule Grizzly.FirmwareUpdates.FirmwareUpdateRunner do @moduledoc false use GenServer alias Grizzly.{Connection, FirmwareUpdates, Options, Report} alias Grizzly.FirmwareUpdates.FirmwareUpdateRunner.{FirmwareUpdate, Image} alias Grizzly.Connections.AsyncConnection require Logger @typedoc """ At any ...
32.03653
119
0.717218
d5a59e6c33cbd84a91f1bb67752f8def3040b70c
3,826
ex
Elixir
lib/ex_plasma/typed_data/transaction.ex
omisego/ex_plasma
27c33206297a4d6832a9419c4e61e04b3c2c9f71
[ "Apache-2.0" ]
6
2019-11-15T13:34:24.000Z
2020-03-02T11:38:01.000Z
lib/ex_plasma/typed_data/transaction.ex
omisego/ex_plasma
27c33206297a4d6832a9419c4e61e04b3c2c9f71
[ "Apache-2.0" ]
34
2019-11-20T03:33:22.000Z
2020-05-27T18:40:10.000Z
lib/ex_plasma/typed_data/transaction.ex
omisego/ex_plasma
27c33206297a4d6832a9419c4e61e04b3c2c9f71
[ "Apache-2.0" ]
6
2020-06-02T19:00:36.000Z
2021-08-19T11:06:33.000Z
defimpl ExPlasma.TypedData, for: ExPlasma.Transaction do import ExPlasma.Crypto, only: [keccak_hash: 1] import ExPlasma.Encoding, only: [to_binary!: 1] import ABI.TypeEncoder, only: [encode_raw: 2] alias ExPlasma.Configuration alias ExPlasma.Output alias ExPlasma.TypedData # Prefix and version byte moti...
31.619835
186
0.706482
d5a5c63a6794ac15f209128de0e2941eb294c0ac
222
ex
Elixir
lib/rabbitmq_stress.ex
dario-castano/rabbitmq-stress
7c1f43be655c0cd3353709036754205dfd1da21c
[ "BSD-3-Clause" ]
null
null
null
lib/rabbitmq_stress.ex
dario-castano/rabbitmq-stress
7c1f43be655c0cd3353709036754205dfd1da21c
[ "BSD-3-Clause" ]
null
null
null
lib/rabbitmq_stress.ex
dario-castano/rabbitmq-stress
7c1f43be655c0cd3353709036754205dfd1da21c
[ "BSD-3-Clause" ]
null
null
null
defmodule RabbitmqStress do @moduledoc """ Documentation for `RabbitmqStress`. """ @doc """ Hello world. ## Examples iex> RabbitmqStress.hello() :world """ def hello do :world end end
11.684211
37
0.599099
d5a62e27f9629c8b94a6f773af4320923af40d97
2,292
ex
Elixir
lib/xandra/connection_error.ex
team-telnyx/xandra
93857c488efa10a07de833b36385a07782ea496b
[ "ISC" ]
318
2017-01-17T13:24:29.000Z
2022-03-17T20:31:39.000Z
lib/xandra/connection_error.ex
team-telnyx/xandra
93857c488efa10a07de833b36385a07782ea496b
[ "ISC" ]
117
2017-01-17T14:20:15.000Z
2022-03-30T11:22:32.000Z
lib/xandra/connection_error.ex
team-telnyx/xandra
93857c488efa10a07de833b36385a07782ea496b
[ "ISC" ]
49
2017-02-06T19:18:03.000Z
2022-03-22T13:08:46.000Z
defmodule Xandra.ConnectionError do @moduledoc """ An exception struct that represents an error in the connection to the Cassandra server. For more information on when this error is returned or raised, see the documentation for the `Xandra` module. The `:action` field represents the action that was being ...
35.8125
80
0.717714
d5a648cdf63e3391864f5681f58807455f104b1c
136
exs
Elixir
times.exs
tristanles/prog-elixir
9694bb934d9e5a510d4ff47980cd792a8defcdb2
[ "MIT" ]
null
null
null
times.exs
tristanles/prog-elixir
9694bb934d9e5a510d4ff47980cd792a8defcdb2
[ "MIT" ]
null
null
null
times.exs
tristanles/prog-elixir
9694bb934d9e5a510d4ff47980cd792a8defcdb2
[ "MIT" ]
null
null
null
defmodule Times do def once(n), do: n def twice(n), do: n * 2 def triple(n), do: n * 3 def quadrule(n), do: twice(twice(n)) end
19.428571
38
0.602941
d5a67fce5d48e790cd0c0641db9e81f814b750aa
417
exs
Elixir
test/tapebas_web/views/error_view_test.exs
cristineguadelupe/tapebas
5f8c70d5ac36b2a606fe4630cc659161b2f4d7bf
[ "MIT" ]
3
2022-03-24T16:48:38.000Z
2022-03-24T16:50:04.000Z
test/tapebas_web/views/error_view_test.exs
cristineguadelupe/tapebas
5f8c70d5ac36b2a606fe4630cc659161b2f4d7bf
[ "MIT" ]
null
null
null
test/tapebas_web/views/error_view_test.exs
cristineguadelupe/tapebas
5f8c70d5ac36b2a606fe4630cc659161b2f4d7bf
[ "MIT" ]
1
2022-03-20T01:11:12.000Z
2022-03-20T01:11:12.000Z
defmodule TapebasWeb.ErrorViewTest do use TapebasWeb.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(TapebasWeb.ErrorView, "404.html", []) == "Not Found" end test "renders 500.html" do as...
27.8
92
0.733813
d5a689515b3fb58bf48df178c1820f13e4f07134
4,087
exs
Elixir
list-ops/test/list_ops_test.exs
okaram/exercism-elixir
66429a50738a16da5d352ad4455a483622625949
[ "Unlicense" ]
null
null
null
list-ops/test/list_ops_test.exs
okaram/exercism-elixir
66429a50738a16da5d352ad4455a483622625949
[ "Unlicense" ]
null
null
null
list-ops/test/list_ops_test.exs
okaram/exercism-elixir
66429a50738a16da5d352ad4455a483622625949
[ "Unlicense" ]
null
null
null
defmodule ListOpsTest do alias ListOps, as: L use ExUnit.Case defp odd?(n), do: rem(n, 2) == 1 describe "length" do # @tag :pending test "empty list" do assert L.length([]) == 0 end test "normal list" do assert L.length([1, 2, 3, 4]) == 4 end @tag :slow test "huge li...
24.620482
97
0.523122
d5a692c280a1d5a7c44bf895e597ca96cf5aa030
505
exs
Elixir
config/config.exs
reachfh/brod_group_subscriber_example
9976d5e9c74f658f3c8ba6802e7e4aa80e62bc10
[ "Apache-2.0" ]
null
null
null
config/config.exs
reachfh/brod_group_subscriber_example
9976d5e9c74f658f3c8ba6802e7e4aa80e62bc10
[ "Apache-2.0" ]
null
null
null
config/config.exs
reachfh/brod_group_subscriber_example
9976d5e9c74f658f3c8ba6802e7e4aa80e62bc10
[ "Apache-2.0" ]
null
null
null
# This file is responsible for configuring your application # and its dependencies with the aid of the Config module. # # This configuration file is loaded before any dependency and # is restricted to this project. # General application configuration import Config config :logger, :console, format: "$time $metadata[$l...
33.666667
70
0.778218
d5a6a72a213199169f1cbcbfa7e52b004e479b44
5,053
exs
Elixir
test/core/defaulter_test.exs
lizhaochao/Argx
d2fb6e346d824a2775603e2eb779bb588870636d
[ "MIT" ]
2
2021-05-07T03:27:19.000Z
2021-05-19T02:04:01.000Z
test/core/defaulter_test.exs
lizhaochao/Argx
d2fb6e346d824a2775603e2eb779bb588870636d
[ "MIT" ]
1
2021-05-10T14:09:36.000Z
2021-05-10T14:10:11.000Z
test/core/defaulter_test.exs
lizhaochao/Argx
d2fb6e346d824a2775603e2eb779bb588870636d
[ "MIT" ]
null
null
null
defmodule Test.DefaulterYesterday do def yesterday_ts, do: 1_618_650_000 def get_yesterday_ts, do: yesterday_ts() def get_yesterday_ts(precision), do: precision end defmodule DefaulterTest do @moduledoc false use ExUnit.Case alias Argx.Defaulter, as: D @fixed_curr_ts 1_618_653_110 ### describe "s...
24.64878
69
0.583416
d5a6ac46479adcac5316d10af9b1eb92797c27f5
874
exs
Elixir
lib/perspective/core/authentication/tests/authentication_vault_test.exs
backmath/perspective
a0a577d0ffb06805b64e4dcb171a093e051884b0
[ "MIT" ]
2
2020-04-24T19:43:06.000Z
2020-04-24T19:52:27.000Z
lib/perspective/core/authentication/tests/authentication_vault_test.exs
backmath/perspective
a0a577d0ffb06805b64e4dcb171a093e051884b0
[ "MIT" ]
null
null
null
lib/perspective/core/authentication/tests/authentication_vault_test.exs
backmath/perspective
a0a577d0ffb06805b64e4dcb171a093e051884b0
[ "MIT" ]
null
null
null
defmodule Perspective.Core.AuthenticationVault.Test do use ExUnit.Case, async: true use Perspective.SetUniqueAppID setup(opts) do Perspective.ConfigureProcessAppId.configure(opts) Perspective.Core.start(opts) :ok end test "the authentication vault stores state correctly" do assert {:error, %...
38
107
0.728833
d5a6ac92ba6f4eddaa8b69367cbaa8cee56750ca
1,883
ex
Elixir
clients/web_security_scanner/lib/google_api/web_security_scanner/v1/model/list_crawled_urls_response.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/web_security_scanner/lib/google_api/web_security_scanner/v1/model/list_crawled_urls_response.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/web_security_scanner/lib/google_api/web_security_scanner/v1/model/list_crawled_urls_response.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...
37.66
157
0.74615
d5a6ad66cb614ef6034daca70117d067f924d5bc
565
ex
Elixir
lib/hap/services/speaker.ex
kim-company/hap
93836cefcde2529064170461a3ee8dda754bac02
[ "MIT" ]
40
2019-10-26T01:58:42.000Z
2022-03-09T18:18:39.000Z
lib/hap/services/speaker.ex
kim-company/hap
93836cefcde2529064170461a3ee8dda754bac02
[ "MIT" ]
11
2021-04-02T14:55:02.000Z
2021-11-05T13:49:55.000Z
lib/hap/services/speaker.ex
kim-company/hap
93836cefcde2529064170461a3ee8dda754bac02
[ "MIT" ]
6
2020-05-18T09:34:14.000Z
2021-11-04T11:14:15.000Z
defmodule HAP.Services.Speaker do @moduledoc """ Struct representing an instance of the `public.hap.service.speaker` service """ defstruct mute: nil, name: nil, volume: nil defimpl HAP.ServiceSource do def compile(value) do HAP.Service.ensure_required!(__MODULE__, "mute", value.mute) %HAP.S...
24.565217
77
0.638938
d5a6e480b65d39cf96f4cfd3091d74cd1eca38c0
13,329
ex
Elixir
lib/specify/parsers.ex
tanguilp/elixir-specify
c526d96d30fd7166336ee2be9c4261056cb1e72c
[ "MIT" ]
null
null
null
lib/specify/parsers.ex
tanguilp/elixir-specify
c526d96d30fd7166336ee2be9c4261056cb1e72c
[ "MIT" ]
null
null
null
lib/specify/parsers.ex
tanguilp/elixir-specify
c526d96d30fd7166336ee2be9c4261056cb1e72c
[ "MIT" ]
null
null
null
defmodule Specify.Parsers do @moduledoc """ Simple functions to parse strings to datatypes commonly used during configuration. These functions can be used as parser/validator function in a call to `Specify.Schema.field`, by using their shorthand name (`:integer` as shorthand for `&Specify.Parsers.integer/1`). ...
30.431507
176
0.624203
d5a6f04f310ce7141e48e0d6c748abb9f5d212c5
5,337
exs
Elixir
test/guardian/plug/verify_session_test.exs
gestsol/guardian
ee173c7ff0343d77cf10c559bd11ac2c88804ad8
[ "MIT" ]
null
null
null
test/guardian/plug/verify_session_test.exs
gestsol/guardian
ee173c7ff0343d77cf10c559bd11ac2c88804ad8
[ "MIT" ]
null
null
null
test/guardian/plug/verify_session_test.exs
gestsol/guardian
ee173c7ff0343d77cf10c559bd11ac2c88804ad8
[ "MIT" ]
null
null
null
defmodule Guardian.Plug.VerifySessionTest do @moduledoc false import Plug.Test alias Guardian.Plug, as: GPlug alias GPlug.{VerifySession, Pipeline} use ExUnit.Case, async: true defmodule Handler do @moduledoc false import Plug.Conn def auth_error(conn, {type, reason}, _opts) do body ...
28.693548
95
0.642308
d5a73b71bffe4f47f0a5ecde719d7d9e606e47ce
932
ex
Elixir
lib/vector/investment.ex
5HT/plm
5f03461f7f07586e26f3b370775539d94dac2188
[ "0BSD" ]
8
2019-08-02T01:50:01.000Z
2021-12-20T07:33:27.000Z
lib/vector/investment.ex
5HT/plm
5f03461f7f07586e26f3b370775539d94dac2188
[ "0BSD" ]
12
2019-07-08T14:21:01.000Z
2019-07-22T12:58:09.000Z
lib/vector/investment.ex
enterprizing/plm
5f03461f7f07586e26f3b370775539d94dac2188
[ "0BSD" ]
4
2019-07-23T12:28:47.000Z
2021-11-29T12:49:37.000Z
defmodule PLM.Rows.Investment do use N2O, with: [:n2o, :kvs, :nitro] use FORM, with: [:form] use BPE require Record require ERP require Logger def doc(), do: "This is the actor trace row (step) representation. " <> "Used to draw trace of the processes" def id(), do: ERP."Payment"(vol...
20.26087
78
0.490343
d5a7456f3e7ca8621470568b30c6d8a4cde98609
4,803
ex
Elixir
lib/ash/resource/actions/read.ex
joshprice/ash
e452c4091918a88d51063000f7dc44b2f54f5f96
[ "MIT" ]
null
null
null
lib/ash/resource/actions/read.ex
joshprice/ash
e452c4091918a88d51063000f7dc44b2f54f5f96
[ "MIT" ]
null
null
null
lib/ash/resource/actions/read.ex
joshprice/ash
e452c4091918a88d51063000f7dc44b2f54f5f96
[ "MIT" ]
null
null
null
defmodule Ash.Resource.Actions.Read do @moduledoc "Represents a read action on a resource." defstruct [ :name, :pagination, :primary?, :filter, :description, :get?, modify_query: nil, transaction?: false, arguments: [], preparations: [], touches_resources: [], type: ...
31.598684
181
0.544451
d5a763baee2192582194b617d44b3b0b66483d3e
1,620
exs
Elixir
test/evm/vm_test.exs
oraclesorg/evm
04076d31356b3ec64c935cf9896e8115c0209c88
[ "MIT" ]
1
2018-04-23T01:57:52.000Z
2018-04-23T01:57:52.000Z
test/evm/vm_test.exs
poanetwork/evm
04076d31356b3ec64c935cf9896e8115c0209c88
[ "MIT" ]
null
null
null
test/evm/vm_test.exs
poanetwork/evm
04076d31356b3ec64c935cf9896e8115c0209c88
[ "MIT" ]
1
2018-04-25T22:58:39.000Z
2018-04-25T22:58:39.000Z
defmodule EVM.VMTest do use ExUnit.Case, async: true doctest EVM.VM setup do account_interface = EVM.Interface.Mock.MockAccountInterface.new() {:ok, %{ account_interface: account_interface }} end test "simple program with return value", %{} do instructions = [ :push1, ...
21.6
95
0.602469
d5a770eba845e7f065aa8da6b88964267ffb8bf4
491
ex
Elixir
apps/demo_web/lib/demo_web_web/views/error_view.ex
kimlindholm/gigalixir_umbrella_demo
369cd029687bb05273d881082afe72e9ac3bc0c1
[ "MIT" ]
2
2019-05-26T12:57:38.000Z
2020-01-22T20:28:32.000Z
apps/demo_web/lib/demo_web_web/views/error_view.ex
kimlindholm/gigalixir_umbrella_demo
369cd029687bb05273d881082afe72e9ac3bc0c1
[ "MIT" ]
null
null
null
apps/demo_web/lib/demo_web_web/views/error_view.ex
kimlindholm/gigalixir_umbrella_demo
369cd029687bb05273d881082afe72e9ac3bc0c1
[ "MIT" ]
null
null
null
defmodule DemoWebWeb.ErrorView do use DemoWebWeb, :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
d5a77870d9e5fab5e400cf2f4a0a9d89aae82d72
1,644
ex
Elixir
clients/alert_center/lib/google_api/alert_center/v1beta1/model/user_defined_detector_info.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/alert_center/lib/google_api/alert_center/v1beta1/model/user_defined_detector_info.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/alert_center/lib/google_api/alert_center/v1beta1/model/user_defined_detector_info.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
1
2020-10-04T10:12:44.000Z
2020-10-04T10:12:44.000Z
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
32.88
114
0.737835
d5a783fb9572c9acde358c6a1f7398370adf77ff
1,706
ex
Elixir
clients/domains/lib/google_api/domains/v1beta1/model/management_settings.ex
mcrumm/elixir-google-api
544f22797cec52b3a23dfb6e39117f0018448610
[ "Apache-2.0" ]
null
null
null
clients/domains/lib/google_api/domains/v1beta1/model/management_settings.ex
mcrumm/elixir-google-api
544f22797cec52b3a23dfb6e39117f0018448610
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/domains/lib/google_api/domains/v1beta1/model/management_settings.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...
34.12
135
0.736811
d5a799f90a96d7d5ceabc033f0b9ff511c56e297
3,046
ex
Elixir
lib/title/word.ex
tverlaan/titlex
2ab335fa1f9cd76e9eb01b0b85c2dc146ec9b563
[ "MIT" ]
1
2020-11-17T09:30:24.000Z
2020-11-17T09:30:24.000Z
lib/title/word.ex
tverlaan/titlex
2ab335fa1f9cd76e9eb01b0b85c2dc146ec9b563
[ "MIT" ]
1
2020-11-23T13:24:31.000Z
2020-11-24T13:53:17.000Z
lib/title/word.ex
tverlaan/titlex
2ab335fa1f9cd76e9eb01b0b85c2dc146ec9b563
[ "MIT" ]
null
null
null
defmodule Title.Word do @moduledoc false @articles [ "a", "an", "the" ] @conjunctions [ "for", "and", "nor", "but", "or", "yet", "so" ] @prepositions [ "aboard", "about", "above", "across", "after", "against", "along", "amid", "a...
19.779221
97
0.539068
d5a7b70be55526623f21b1e03c5d93317d2223e0
519
ex
Elixir
unsilo/lib/unsilo_web/views/spot_view.ex
TehSnappy/unsilo_elixir
d0dd592dee71ed5b994ac08cd347aa357d5845f4
[ "MIT" ]
1
2019-03-21T02:43:06.000Z
2019-03-21T02:43:06.000Z
unsilo/lib/unsilo_web/views/spot_view.ex
TehSnappy/unsilo_elixir
d0dd592dee71ed5b994ac08cd347aa357d5845f4
[ "MIT" ]
3
2021-03-09T01:43:16.000Z
2022-02-10T17:04:55.000Z
unsilo/lib/unsilo_web/views/spot_view.ex
TehSnappy/unsilo_elixir
d0dd592dee71ed5b994ac08cd347aa357d5845f4
[ "MIT" ]
null
null
null
defmodule UnsiloWeb.SpotView do use UnsiloWeb, :view alias Unsilo.Domains.Spot def get_logo_url(spot) do Unsilo.Logo.url({spot.logo, spot}, :thumb) end def display_title(spot) do spot.name || Enum.at(spot.domains, 0) end def background_color(%Spot{background_color: nil}) do "#55575c" end...
19.961538
68
0.720617
d5a7c851f9b4699d4a3fb885f1c195688dba38bf
157
exs
Elixir
priv/repo/migrations/20170304112523_add_name_to_user.exs
bagilevi/uptom
50894abb8f7bd052e12c37155b5c33450abcc9bd
[ "MIT" ]
6
2017-05-12T04:20:09.000Z
2020-11-07T02:00:56.000Z
priv/repo/migrations/20170304112523_add_name_to_user.exs
bagilevi/uptom
50894abb8f7bd052e12c37155b5c33450abcc9bd
[ "MIT" ]
null
null
null
priv/repo/migrations/20170304112523_add_name_to_user.exs
bagilevi/uptom
50894abb8f7bd052e12c37155b5c33450abcc9bd
[ "MIT" ]
2
2020-05-18T08:06:22.000Z
2020-12-19T14:24:40.000Z
defmodule Uptom.Repo.Migrations.AddNameToUser do use Ecto.Migration def change do alter table(:users) do add :name, :string end end end
15.7
48
0.694268
d5a7dde22f9273080144ab6c34851b63298caf00
307
ex
Elixir
web/views/error_view.ex
dmccown/kanban
bf955b2b1f30176c3380b2ee7e1c5ba1174b8d72
[ "MIT" ]
1
2020-06-30T11:42:09.000Z
2020-06-30T11:42:09.000Z
web/views/error_view.ex
dmccown/kanban
bf955b2b1f30176c3380b2ee7e1c5ba1174b8d72
[ "MIT" ]
null
null
null
web/views/error_view.ex
dmccown/kanban
bf955b2b1f30176c3380b2ee7e1c5ba1174b8d72
[ "MIT" ]
null
null
null
defmodule Kanban.ErrorView do use Kanban.View def render("404.html", _assigns) do "Page not found - 404" end def render("500.html", _assigns) do "Server internal error - 500" end # Render all other templates as 500 def render(_, assigns) do render "500.html", assigns end end
18.058824
37
0.674267
d5a8471d93cf35537bb549bb7273d440d06243ff
2,157
ex
Elixir
clients/drive_activity/lib/google_api/drive_activity/v2/model/create.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/drive_activity/lib/google_api/drive_activity/v2/model/create.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/drive_activity/lib/google_api/drive_activity/v2/model/create.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
40.698113
213
0.727863
d5a858dbf5227ac57792725d16ca50472e34f723
256
ex
Elixir
lib/rps/repo.ex
cabol/rps
813028c4b7bb18f8c7cbcf4422249a81ccb9f059
[ "MIT" ]
3
2018-05-28T15:10:11.000Z
2020-08-02T21:14:25.000Z
lib/rps/repo.ex
cabol/rps
813028c4b7bb18f8c7cbcf4422249a81ccb9f059
[ "MIT" ]
null
null
null
lib/rps/repo.ex
cabol/rps
813028c4b7bb18f8c7cbcf4422249a81ccb9f059
[ "MIT" ]
null
null
null
defmodule Rps.Repo do use Ecto.Repo, otp_app: :rps @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.333333
66
0.6875
d5a86051aafc12324d3ff06942c321334618de6e
176
ex
Elixir
lib/ambry_web/live/book_live/header.ex
froseph/ambry
86c1a8528b9f3cc7e4a7debd8005df4116a7d1b1
[ "MIT" ]
null
null
null
lib/ambry_web/live/book_live/header.ex
froseph/ambry
86c1a8528b9f3cc7e4a7debd8005df4116a7d1b1
[ "MIT" ]
null
null
null
lib/ambry_web/live/book_live/header.ex
froseph/ambry
86c1a8528b9f3cc7e4a7debd8005df4116a7d1b1
[ "MIT" ]
null
null
null
defmodule AmbryWeb.BookLive.Header do @moduledoc false use AmbryWeb, :component alias AmbryWeb.Endpoint alias Surface.Components.LiveRedirect prop book, :any end
14.666667
39
0.772727
d5a8729bf7129380acf43ab59d638bea1ec88a5b
614
exs
Elixir
chat_bots/mix.exs
easco/Index2018_IntroToElixir
5a1ebc21838c806db616a9b6581ae1d4d3b74bfd
[ "MIT" ]
null
null
null
chat_bots/mix.exs
easco/Index2018_IntroToElixir
5a1ebc21838c806db616a9b6581ae1d4d3b74bfd
[ "MIT" ]
null
null
null
chat_bots/mix.exs
easco/Index2018_IntroToElixir
5a1ebc21838c806db616a9b6581ae1d4d3b74bfd
[ "MIT" ]
null
null
null
defmodule ChatBots.MixProject do use Mix.Project def project do [ app: :chat_bots, version: "0.1.0", elixir: "~> 1.6", start_permanent: Mix.env() == :prod, deps: deps() ] end # Run "mix help compile.app" to learn about applications. def application do [ extra_...
20.466667
88
0.576547
d5a887fc2c0fb985b47b42990645107d98c89f3d
5,062
exs
Elixir
test/test_helper.exs
nunopolonia/psc-api
2e358503851cc04cdaa89201a3f56586f8746736
[ "MIT" ]
1
2017-09-10T23:51:40.000Z
2017-09-10T23:51:40.000Z
test/test_helper.exs
nunopolonia/psc-api
2e358503851cc04cdaa89201a3f56586f8746736
[ "MIT" ]
24
2018-03-14T18:17:00.000Z
2021-03-01T07:47:53.000Z
test/test_helper.exs
portosummerofcode/psc-api
2e358503851cc04cdaa89201a3f56586f8746736
[ "MIT" ]
null
null
null
ExUnit.start Ecto.Adapters.SQL.Sandbox.mode(Api.Repo, :manual) defmodule ApiWeb.TestHelper do import Ecto.Query, warn: false alias Api.Repo alias Api.Accounts.User alias Api.Workshops.{Workshop, Attendance} alias Api.Teams.{Team, Membership, Invite} alias Api.Competitions alias Api.Competitions.Competi...
22.801802
92
0.642236
d5a8914e73604a472377f9406f63d86b55f5f798
1,806
ex
Elixir
clients/blogger/lib/google_api/blogger/v3/model/blog_posts.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/blogger/lib/google_api/blogger/v3/model/blog_posts.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/blogger/lib/google_api/blogger/v3/model/blog_posts.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 ...
34.075472
118
0.70598