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
653aafa801670674f93f207de1889f29ff9377ad
1,540
ex
Elixir
lib/sanbase/clickhouse/gas_used.ex
sitedata/sanbase2
8da5e44a343288fbc41b68668c6c80ae8547d557
[ "MIT" ]
81
2017-11-20T01:20:22.000Z
2022-03-05T12:04:25.000Z
lib/sanbase/clickhouse/gas_used.ex
santiment/sanbase2
9ef6e2dd1e377744a6d2bba570ea6bd477a1db31
[ "MIT" ]
359
2017-10-15T14:40:53.000Z
2022-01-25T13:34:20.000Z
lib/sanbase/clickhouse/gas_used.ex
sitedata/sanbase2
8da5e44a343288fbc41b68668c6c80ae8547d557
[ "MIT" ]
16
2017-11-19T13:57:40.000Z
2022-02-07T08:13:02.000Z
defmodule Sanbase.Clickhouse.GasUsed do @moduledoc ~s""" Uses ClickHouse to calculate used gas. """ import Sanbase.Math, only: [to_integer: 1] alias Sanbase.DateTimeUtils alias Sanbase.ClickhouseRepo @type gas_used :: %{ datetime: DateTime.t(), eth_gas_used: non_neg_integer(), ...
24.83871
81
0.606494
653adbd56675903c0f247606e54c466dcf13c8fc
752
ex
Elixir
lib/file_presenter_web/channels/chat_channel.ex
echavezNS/file_presenter
534c8393dc589dc98086613ec080780175865d34
[ "MIT" ]
1
2017-03-13T04:29:03.000Z
2017-03-13T04:29:03.000Z
lib/file_presenter_web/channels/chat_channel.ex
echavezNS/file_presenter
534c8393dc589dc98086613ec080780175865d34
[ "MIT" ]
null
null
null
lib/file_presenter_web/channels/chat_channel.ex
echavezNS/file_presenter
534c8393dc589dc98086613ec080780175865d34
[ "MIT" ]
null
null
null
defmodule FilePresenterWeb.ChatChannel do use FilePresenterWeb, :channel alias FilePresenter.ChatMonitor def join("chat", _, socket) do {:ok, messages} = ChatMonitor.get_messages() {:ok, %{messages: messages} ,socket} end def handle_in("new_message", message, socket) do broadcast(socket, "new_me...
25.931034
57
0.704787
653ae574e8e67eed01b85a7fe09fa6dcb76d0f5c
6,493
ex
Elixir
lib/phoenix_live_view/router.ex
petermm/phoenix_live_view
d4fcefd666aac4a08b8cdcd14ba82b523b25ac75
[ "MIT" ]
null
null
null
lib/phoenix_live_view/router.ex
petermm/phoenix_live_view
d4fcefd666aac4a08b8cdcd14ba82b523b25ac75
[ "MIT" ]
null
null
null
lib/phoenix_live_view/router.ex
petermm/phoenix_live_view
d4fcefd666aac4a08b8cdcd14ba82b523b25ac75
[ "MIT" ]
null
null
null
defmodule Phoenix.LiveView.Router do @moduledoc """ Provides LiveView routing for Phoenix routers. """ @cookie_key "__phoenix_flash__" @doc """ Defines a LiveView route. A LiveView can be routed to by using the `live` macro with a path and the name of the LiveView: live "/thermostat", Thermost...
33.642487
99
0.663176
653b287fa65061b2f1a57b346f9f08205b42d7a2
1,612
ex
Elixir
lib/polyglot/repos.ex
lubien/polyglot
88d24ad0e88c42a72489a9c42c1361812a81cbbd
[ "MIT" ]
2
2016-10-26T04:47:17.000Z
2016-10-28T06:13:33.000Z
lib/polyglot/repos.ex
lubien/polyglot
88d24ad0e88c42a72489a9c42c1361812a81cbbd
[ "MIT" ]
3
2016-10-26T04:10:51.000Z
2016-11-10T11:41:04.000Z
lib/polyglot/repos.ex
lubien/polyglot
88d24ad0e88c42a72489a9c42c1361812a81cbbd
[ "MIT" ]
null
null
null
defmodule Polyglot.Repos do @per_page 100 def get_all(username, token) do get_all(username, token, 1, []) end defp get_all(username, token, page, acc) do case get(repos_endpoint(username, page), token) do {:error, _} = response -> response %{body: body, headers: headers} -> next ...
25.587302
87
0.620347
653b3f5ecb9e8ce7ebc35411b0046c8044a88f0b
1,566
exs
Elixir
mix.exs
hexedpackets/fault_tree
340d08e8ea7733999531f79bdc712515053e0e85
[ "Apache-2.0" ]
3
2019-06-05T14:16:24.000Z
2020-08-10T00:33:05.000Z
mix.exs
hexedpackets/fault_tree
340d08e8ea7733999531f79bdc712515053e0e85
[ "Apache-2.0" ]
15
2019-05-15T21:38:48.000Z
2019-06-04T17:26:43.000Z
mix.exs
hexedpackets/fault_tree
340d08e8ea7733999531f79bdc712515053e0e85
[ "Apache-2.0" ]
null
null
null
defmodule FaultTree.MixProject do use Mix.Project @version "0.2.0" def project() do [ app: :fault_tree, version: @version, elixir: "~> 1.8", start_permanent: Mix.env() == :prod, deps: deps(), name: "FaultTree", source_url: "https://github.com/hexedpackets/fault_tree...
25.672131
115
0.574713
653b4f0a79ecdb7e926803fb83cb56dedb99e43e
1,787
ex
Elixir
lib/hanzi/map.ex
kianmeng/hanyutils
d6b9ef5579856e540484987c8f0860b363327b67
[ "MIT" ]
null
null
null
lib/hanzi/map.ex
kianmeng/hanyutils
d6b9ef5579856e540484987c8f0860b363327b67
[ "MIT" ]
1
2022-03-18T15:26:44.000Z
2022-03-23T20:06:31.000Z
lib/hanzi/map.ex
kianmeng/hanyutils
d6b9ef5579856e540484987c8f0860b363327b67
[ "MIT" ]
null
null
null
defmodule Hanzi.Map do @moduledoc false # lookup/1 is implemented by generating clauses for each hanzi defined by the unicode standard. # Therefore, compiling this module does take some time. @doc """ Obtain the `t:Hanzi.t/0` struct for a given character. """ def lookup(character) __DIR__ |> Path.jo...
34.365385
97
0.605484
653b656a7630c530c1a752f3362cfc45a3ae0396
24,984
ex
Elixir
lib/ex_unit/lib/ex_unit/doc_test.ex
andrewtimberlake/elixir
a1c4ffc897f9407fe7e739e20e697805fbbff810
[ "Apache-2.0" ]
1
2019-10-11T01:36:26.000Z
2019-10-11T01:36:26.000Z
lib/ex_unit/lib/ex_unit/doc_test.ex
andrewtimberlake/elixir
a1c4ffc897f9407fe7e739e20e697805fbbff810
[ "Apache-2.0" ]
1
2019-04-25T12:52:49.000Z
2019-04-25T13:27:31.000Z
lib/ex_unit/lib/ex_unit/doc_test.ex
andrewtimberlake/elixir
a1c4ffc897f9407fe7e739e20e697805fbbff810
[ "Apache-2.0" ]
null
null
null
defmodule ExUnit.DocTest do @moduledoc """ ExUnit.DocTest implements functionality similar to [Python's doctest](https://docs.python.org/2/library/doctest.html). It allows us to generate tests from the code examples in a module/function/macro's documentation. To do this, invoke the `doctest/1` macro from w...
29.289566
98
0.612512
653b657d6c99aa507035c0f6921b347ebff49bf9
1,157
ex
Elixir
web/channels/user_socket.ex
chayelheinsen/ElixirBook
40797c0d84c101ae331100a4b8467df95fa9efd6
[ "MIT" ]
null
null
null
web/channels/user_socket.ex
chayelheinsen/ElixirBook
40797c0d84c101ae331100a4b8467df95fa9efd6
[ "MIT" ]
null
null
null
web/channels/user_socket.ex
chayelheinsen/ElixirBook
40797c0d84c101ae331100a4b8467df95fa9efd6
[ "MIT" ]
null
null
null
defmodule Book.UserSocket do use Phoenix.Socket ## Channels # channel "room:*", Book.RoomChannel ## Transports transport :websocket, Phoenix.Transports.WebSocket # transport :longpoll, Phoenix.Transports.LongPoll # Socket params are passed from the client and can # be used to verify and authenticate ...
30.447368
83
0.699222
653b76e0100d06239a8bc65a8585312276f14493
1,171
ex
Elixir
apps/rig_api/lib/rig_api/endpoint.ex
vanillebear/reactive-interaction-gateway
5eb2afa00b8e74bddfd712ba282a3768e8ede239
[ "Apache-2.0" ]
null
null
null
apps/rig_api/lib/rig_api/endpoint.ex
vanillebear/reactive-interaction-gateway
5eb2afa00b8e74bddfd712ba282a3768e8ede239
[ "Apache-2.0" ]
132
2018-11-26T14:00:54.000Z
2022-03-11T04:17:54.000Z
apps/rig_api/lib/rig_api/endpoint.ex
vanillebear/reactive-interaction-gateway
5eb2afa00b8e74bddfd712ba282a3768e8ede239
[ "Apache-2.0" ]
null
null
null
defmodule RigApi.Endpoint do use Phoenix.Endpoint, otp_app: :rig_api use Rig.Config alias Rig.Config # Code reloading can be explicitly enabled under the # :code_reloader configuration of your endpoint. if code_reloading? do plug(Phoenix.CodeReloader) end plug(Plug.RequestId) plug(Plug.Logger) ...
23.42
70
0.707088
653b918cf35a5bd7d173131c32de7565c1263d7e
40,825
ex
Elixir
lib/aws/generated/codeartifact.ex
justinludwig/aws-elixir
c66dfebecec62587dada50602c31c76d307d812c
[ "Apache-2.0" ]
null
null
null
lib/aws/generated/codeartifact.ex
justinludwig/aws-elixir
c66dfebecec62587dada50602c31c76d307d812c
[ "Apache-2.0" ]
null
null
null
lib/aws/generated/codeartifact.ex
justinludwig/aws-elixir
c66dfebecec62587dada50602c31c76d307d812c
[ "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.Codeartifact do @moduledoc """ AWS CodeArtifact is a fully managed artifact repository compatible with language-native package managers and build tools such as npm, Apache Maven, and pip. ...
25.805942
153
0.629173
653b93f72626f4ad51c8986988eba62239e0fb31
839
ex
Elixir
lib/smoke/application.ex
Baradoy/smoke
1e12bd76d2af6ca67db9d330625c6f3652778dee
[ "Apache-2.0" ]
1
2019-10-03T16:54:48.000Z
2019-10-03T16:54:48.000Z
lib/smoke/application.ex
Baradoy/smoke
1e12bd76d2af6ca67db9d330625c6f3652778dee
[ "Apache-2.0" ]
3
2019-09-26T22:55:13.000Z
2021-05-10T02:17:12.000Z
lib/smoke/application.ex
Baradoy/smoke
1e12bd76d2af6ca67db9d330625c6f3652778dee
[ "Apache-2.0" ]
1
2019-07-22T16:40:01.000Z
2019-07-22T16:40:01.000Z
defmodule Smoke.Application do @moduledoc """ Handles starting supervisors and workers for the Smoke Application """ use Application def start(_type, _args) do import Supervisor.Spec instrument = Application.get_env(:smoke, :instrument, []) standalone_endpoint = Application.get_env(:smoke, :stan...
23.305556
82
0.665077
653bdf5efc8c83c7c7683b2ed76bea4114dc915c
984
ex
Elixir
lib/mix/lib/mix/dep/elixir_scm.ex
BlakeWilliams/elixir
f77cc2657cf981fdf819915f1ee15e69c3cd91ad
[ "Apache-2.0" ]
null
null
null
lib/mix/lib/mix/dep/elixir_scm.ex
BlakeWilliams/elixir
f77cc2657cf981fdf819915f1ee15e69c3cd91ad
[ "Apache-2.0" ]
null
null
null
lib/mix/lib/mix/dep/elixir_scm.ex
BlakeWilliams/elixir
f77cc2657cf981fdf819915f1ee15e69c3cd91ad
[ "Apache-2.0" ]
null
null
null
# Manifest file where we treat Elixir and SCMs as a dependency. defmodule Mix.Dep.ElixirSCM do @moduledoc false @manifest ".compile.elixir_scm" @manifest_vsn :v2 def manifest(manifest_path \\ Mix.Project.manifest_path()) do Path.join(manifest_path, @manifest) end def update(manifest_path \\ Mix.Projec...
26.594595
96
0.644309
653be9e83c2a81f5becc8a83e25687309effdf67
1,089
ex
Elixir
integration-tests/mysql-client-tests/elixir/lib/simple.ex
fairhopeweb/dolt
276b85b7b1287f883640ef3fcacb0bdb112749b2
[ "Apache-2.0" ]
1
2020-04-01T06:09:46.000Z
2020-04-01T06:09:46.000Z
integration-tests/mysql-client-tests/elixir/lib/simple.ex
fairhopeweb/dolt
276b85b7b1287f883640ef3fcacb0bdb112749b2
[ "Apache-2.0" ]
null
null
null
integration-tests/mysql-client-tests/elixir/lib/simple.ex
fairhopeweb/dolt
276b85b7b1287f883640ef3fcacb0bdb112749b2
[ "Apache-2.0" ]
null
null
null
defmodule SmokeTest do def myTestFunc(arg1, arg2) do if arg1 != arg2 do raise "Test error" end end @spec run :: nil def run do args = System.argv() user = Enum.at(args, 0) {port, _} = Integer.parse(Enum.at(args, 1)) database = Enum.at(args, 2) {:ok, pid} = MyXQL.start_link(us...
32.029412
91
0.625344
653c310800daac3f66094aaa27d245cf25a361cb
537
ex
Elixir
basics/basic.ex
sachin-goyal-github/elixir-dojos
6b05eaaccc186dc456de5ac195dd0640d7fe6cab
[ "Apache-2.0" ]
null
null
null
basics/basic.ex
sachin-goyal-github/elixir-dojos
6b05eaaccc186dc456de5ac195dd0640d7fe6cab
[ "Apache-2.0" ]
null
null
null
basics/basic.ex
sachin-goyal-github/elixir-dojos
6b05eaaccc186dc456de5ac195dd0640d7fe6cab
[ "Apache-2.0" ]
null
null
null
defmodule BasicDojo do def data_types do i = 1 IO.puts(is_integer(i)) f = 1.2 IO.puts(is_float(f)) a = :Something IO.puts(is_atom(a)) end def inputs do name = IO.gets("What is your name? ") |> String.trim() IO.puts("Hello #{name}") end def strings do str = "Some string"...
16.78125
58
0.564246
653c33e105d19a04dce5247544f7983ca617956a
930
ex
Elixir
debian/postrm.ex
onealbao/lstore
9a4d925deff5f474547bc015a45dec7f7fb0fb54
[ "Apache-2.0" ]
1
2016-09-06T13:36:37.000Z
2016-09-06T13:36:37.000Z
debian/postrm.ex
onealbao/lstore
9a4d925deff5f474547bc015a45dec7f7fb0fb54
[ "Apache-2.0" ]
null
null
null
debian/postrm.ex
onealbao/lstore
9a4d925deff5f474547bc015a45dec7f7fb0fb54
[ "Apache-2.0" ]
1
2016-09-06T13:50:48.000Z
2016-09-06T13:50:48.000Z
#!/bin/sh # postrm script for lstore # # see: dh_installdeb(1) set -e # summary of how this script can be called: # * <postrm> `remove' # * <postrm> `purge' # * <old-postrm> `upgrade' <new-version> # * <new-postrm> `failed-upgrade' <old-version> # * <new-postrm> `abort-install' # ...
24.473684
78
0.627957
653c9774804bd0e1fa06e6c9257d6c95ff566390
263
ex
Elixir
lib/web/views/session_token_view.ex
random-mud-pie/grapevine
40688da3413e5216df5ee19ad6f7272932d49e23
[ "MIT" ]
107
2018-10-05T18:20:32.000Z
2022-02-28T04:02:50.000Z
lib/web/views/session_token_view.ex
random-mud-pie/grapevine
40688da3413e5216df5ee19ad6f7272932d49e23
[ "MIT" ]
33
2018-10-05T14:11:18.000Z
2022-02-10T22:19:18.000Z
lib/web/views/session_token_view.ex
random-mud-pie/grapevine
40688da3413e5216df5ee19ad6f7272932d49e23
[ "MIT" ]
18
2019-02-03T03:08:20.000Z
2021-12-28T04:29:36.000Z
defmodule Web.SessionTokenView do use Web, :view def render("token.json", %{session_token: token}) do token |> show() |> Representer.transform("json") end def show(token) do %Representer.Item{ data: %{token: token} } end end
16.4375
54
0.619772
653cc8fc9d7afd0bc0477b8042e9b3b81dbf3862
4,233
ex
Elixir
lib/instagram_clone_web/live/user_live/profile.ex
hminy572/InstagramClonePETAL
577cdad0e17399e47ef9d3f8e789bd07e33012b9
[ "MIT" ]
1
2021-08-18T13:01:26.000Z
2021-08-18T13:01:26.000Z
lib/instagram_clone_web/live/user_live/profile.ex
hminy572/InstagramClonePETAL
577cdad0e17399e47ef9d3f8e789bd07e33012b9
[ "MIT" ]
null
null
null
lib/instagram_clone_web/live/user_live/profile.ex
hminy572/InstagramClonePETAL
577cdad0e17399e47ef9d3f8e789bd07e33012b9
[ "MIT" ]
null
null
null
defmodule InstagramCloneWeb.UserLive.Profile do use InstagramCloneWeb, :live_view alias InstagramClone.Accounts alias InstagramCloneWeb.UserLive.FollowComponent alias InstagramClone.Posts @impl true def mount(%{"username" => username}, session, socket) do socket = assign_defaults(session, socket) ...
25.810976
83
0.686038
653d14951be78187908569132ded76c585b2179c
10,749
ex
Elixir
lib/tensor/matrix.ex
Qqwy/tensor
dcc328f9cda8b9cfe7cb7ab987857fc51621ff8c
[ "MIT" ]
116
2016-07-06T18:26:55.000Z
2019-08-07T18:34:15.000Z
lib/tensor/matrix.ex
Qqwy/elixir-tensor
dcc328f9cda8b9cfe7cb7ab987857fc51621ff8c
[ "MIT" ]
32
2019-08-17T21:26:13.000Z
2022-03-23T10:50:41.000Z
lib/tensor/matrix.ex
Qqwy/tensor
dcc328f9cda8b9cfe7cb7ab987857fc51621ff8c
[ "MIT" ]
9
2017-01-01T19:18:57.000Z
2019-07-16T01:57:39.000Z
defmodule Tensor.Matrix do alias Tensor.{Vector, Matrix, Tensor} defmodule Inspect do @doc false def inspect(matrix, _opts) do """ #Matrix<(#{Tensor.Inspect.dimension_string(matrix)}) #{inspect_contents(matrix)} > """ end defp inspect_contents(matrix) do content...
30.109244
133
0.661364
653d2f6ae3487afbb7187a9c96411d1c879cbebb
885
ex
Elixir
D01/solution.ex
EragonpeerGynt/AoC2021
69cfa5c2043db1a14089e5d0f6a56d15ce3b8acf
[ "MIT" ]
null
null
null
D01/solution.ex
EragonpeerGynt/AoC2021
69cfa5c2043db1a14089e5d0f6a56d15ce3b8acf
[ "MIT" ]
null
null
null
D01/solution.ex
EragonpeerGynt/AoC2021
69cfa5c2043db1a14089e5d0f6a56d15ce3b8acf
[ "MIT" ]
null
null
null
defmodule D01 do def part1(_, [], total) do total end def part1(previous, [head|tail], total) do case (head - previous) do n when n > 0 -> D01.part1(head, tail, total+1) _ -> D01.part1(head, tail, total) end end def part2(_, [_], total) do total end def part2(previoussum, [head|tail], total) do c...
22.692308
55
0.624859
653d94856eab2c2d5d280a45d9c578714fed86bd
1,068
ex
Elixir
lib/koans/11_sigils.ex
KoStard/elixir-koans
df722b5acbaeb329497e7e0250b9b10054cec748
[ "MIT" ]
null
null
null
lib/koans/11_sigils.ex
KoStard/elixir-koans
df722b5acbaeb329497e7e0250b9b10054cec748
[ "MIT" ]
null
null
null
lib/koans/11_sigils.ex
KoStard/elixir-koans
df722b5acbaeb329497e7e0250b9b10054cec748
[ "MIT" ]
null
null
null
defmodule Sigils do use Koans @intro "Sigils" koan "The ~s sigil is a different way of expressing string literals" do assert ~s{This is a string} == "This is a string" end koan "Sigils are useful to avoid escaping quotes in strings" do assert "\"Welcome to the jungle\", they said." == ~s{"Welcome t...
27.384615
93
0.61236
653da0f5d4d077c010b2360a1d12760b03d66dd7
4,105
ex
Elixir
lib/operate/cache.ex
operate-bsv/agent
4f3d69b7eb33f3afe5c880c10e39485b18b27ec5
[ "Apache-2.0" ]
13
2019-02-14T05:27:03.000Z
2019-08-14T03:35:52.000Z
lib/operate/cache.ex
operate-bsv/agent
4f3d69b7eb33f3afe5c880c10e39485b18b27ec5
[ "Apache-2.0" ]
3
2019-11-28T11:38:39.000Z
2021-12-15T01:23:09.000Z
lib/operate/cache.ex
operate-bsv/agent
4f3d69b7eb33f3afe5c880c10e39485b18b27ec5
[ "Apache-2.0" ]
2
2019-12-16T10:46:51.000Z
2020-10-10T11:23:46.000Z
defmodule Operate.Cache do @moduledoc """ Operate cache specification. A cache is responsible for storing and retrieving tapes and ops from a cache, and if necessary instructing an adapter to fetch items from a data source. Operate comes bundled with a `ConCache` ETS cache, although by default runs with...
31.098485
117
0.619732
653dc944247db7112e6c9cbfddcddf36845024e7
1,581
exs
Elixir
mix.exs
TobiG77/phoenix_api_sample
5d2e69537562ce921b8aa6c2b0d8cd3710490907
[ "MIT" ]
null
null
null
mix.exs
TobiG77/phoenix_api_sample
5d2e69537562ce921b8aa6c2b0d8cd3710490907
[ "MIT" ]
null
null
null
mix.exs
TobiG77/phoenix_api_sample
5d2e69537562ce921b8aa6c2b0d8cd3710490907
[ "MIT" ]
null
null
null
defmodule PhoenixApiSample.Mixfile do use Mix.Project def project do [app: :phoenix_api_sample, version: "0.0.1", elixir: "~> 1.0", elixirc_paths: elixirc_paths(Mix.env), compilers: [:phoenix, :gettext] ++ Mix.compilers, build_embedded: Mix.env == :prod, start_permanent: Mix.env =...
29.277778
78
0.607211
653dccf9317d074be81972fab5bbf06c1f53ceaa
1,692
ex
Elixir
lib/blog_web/endpoint.ex
Miradorn/absinthe_tutorial
fbe63be1d4acc92c7a85d4a04fd259ac6b5ef072
[ "MIT" ]
null
null
null
lib/blog_web/endpoint.ex
Miradorn/absinthe_tutorial
fbe63be1d4acc92c7a85d4a04fd259ac6b5ef072
[ "MIT" ]
null
null
null
lib/blog_web/endpoint.ex
Miradorn/absinthe_tutorial
fbe63be1d4acc92c7a85d4a04fd259ac6b5ef072
[ "MIT" ]
null
null
null
defmodule BlogWeb.Endpoint do use Phoenix.Endpoint, otp_app: :blog socket("/socket", BlogWeb.UserSocket, websocket: []) # Serve at "/" the static files from "priv/static" directory. # # You should set gzip to true if you are running phoenix.digest # when deploying your static files in production. plug(P...
26.4375
95
0.688534
653ddae08b447c355f8509045ab4d5d6fe6c7e3e
37,730
ex
Elixir
clients/cloud_resource_manager/lib/google_api/cloud_resource_manager/v1/api/organizations.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/cloud_resource_manager/lib/google_api/cloud_resource_manager/v1/api/organizations.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/cloud_resource_manager/lib/google_api/cloud_resource_manager/v1/api/organizations.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...
44.650888
196
0.630294
653e063599698f4420d77b1396855ef42074c2d8
1,690
ex
Elixir
clients/content/lib/google_api/content/v21/model/orders_update_shipment_response.ex
mcrumm/elixir-google-api
544f22797cec52b3a23dfb6e39117f0018448610
[ "Apache-2.0" ]
null
null
null
clients/content/lib/google_api/content/v21/model/orders_update_shipment_response.ex
mcrumm/elixir-google-api
544f22797cec52b3a23dfb6e39117f0018448610
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/content/lib/google_api/content/v21/model/orders_update_shipment_response.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...
33.8
159
0.731361
653e080b2eb45df29dfb70518647a74aac2c3eae
503
ex
Elixir
rocketpay/lib/rocketpay_web/views/users_view.ex
alfredots/next-level-week-4-elixir
ea47b53a27540454efba2f3007125ee5964a760e
[ "MIT" ]
null
null
null
rocketpay/lib/rocketpay_web/views/users_view.ex
alfredots/next-level-week-4-elixir
ea47b53a27540454efba2f3007125ee5964a760e
[ "MIT" ]
null
null
null
rocketpay/lib/rocketpay_web/views/users_view.ex
alfredots/next-level-week-4-elixir
ea47b53a27540454efba2f3007125ee5964a760e
[ "MIT" ]
null
null
null
defmodule RocketpayWeb.UsersView do alias Rocketpay.{User, Account} def render("create.json", %{ user: %User{ account: %Account{id: account_id, balance: balance}, id: id, name: name, nickname: nickname } }) do %{ message: "User created", ...
18.62963
62
0.483101
653e580944d8be4cfc0dcff930324839beb611e1
479
exs
Elixir
test/pinboard_test.exs
thilko/expinboard
76aa64b8fb79c26d23e3904c1fd5a21179535b62
[ "Unlicense" ]
2
2016-01-11T21:22:36.000Z
2016-09-08T07:15:26.000Z
test/pinboard_test.exs
thilko/expinboard
76aa64b8fb79c26d23e3904c1fd5a21179535b62
[ "Unlicense" ]
null
null
null
test/pinboard_test.exs
thilko/expinboard
76aa64b8fb79c26d23e3904c1fd5a21179535b62
[ "Unlicense" ]
null
null
null
defmodule PinboardTest do use ExUnit.Case test "fetch returns all bookmarks" do bookmarks = Pinboard.all(System.get_env("PINBOARD_API_TOKEN"), [limit: 50]) assert length(bookmarks) == 50 end @tag timeout: 1000000 test "fetch broken bookmarks" do bookmarks = Pinboard.broken(System.get_env("PINBOA...
26.611111
82
0.691023
653e5e156019eb3c6e8ae8ad9b3bd833e9dea1ff
41
ex
Elixir
testData/org/elixir_lang/parser_definition/matched_relational_operation_parsing_test_case/EmptyBlock.ex
ArtemGordinsky/intellij-elixir
e2d9b4dfc65651b293d499043edeaad606cf5652
[ "Apache-2.0" ]
null
null
null
testData/org/elixir_lang/parser_definition/matched_relational_operation_parsing_test_case/EmptyBlock.ex
ArtemGordinsky/intellij-elixir
e2d9b4dfc65651b293d499043edeaad606cf5652
[ "Apache-2.0" ]
null
null
null
testData/org/elixir_lang/parser_definition/matched_relational_operation_parsing_test_case/EmptyBlock.ex
ArtemGordinsky/intellij-elixir
e2d9b4dfc65651b293d499043edeaad606cf5652
[ "Apache-2.0" ]
null
null
null
(;) < (;) (;) > (;) (;) <= (;) (;) >= (;)
10.25
10
0
653e6cabc85d77437eca6a951de522b018651412
1,257
ex
Elixir
src/proto_app/apps/gateway/lib/gateway/application.ex
cjimison/ethermint_prototype
5d8924e2ddc167c59cf712c2496f43976bcbad00
[ "MIT" ]
null
null
null
src/proto_app/apps/gateway/lib/gateway/application.ex
cjimison/ethermint_prototype
5d8924e2ddc167c59cf712c2496f43976bcbad00
[ "MIT" ]
null
null
null
src/proto_app/apps/gateway/lib/gateway/application.ex
cjimison/ethermint_prototype
5d8924e2ddc167c59cf712c2496f43976bcbad00
[ "MIT" ]
null
null
null
defmodule Gateway.Application do # See https://hexdocs.pm/elixir/Application.html # for more information on OTP Applications @moduledoc false use Application @doc """ """ def start(_type, _args) do children = enableNodeRouter([]) |> enablePortalRouter() |> enableMarketplaceRouter()...
22.854545
68
0.638823
653e6d9a389e6f1c5986eadea20223a3ae018297
1,167
exs
Elixir
mix.exs
windfish-studio/dlex
c5ee6b67b77e626c7e1f8b7f7665c168ddd87863
[ "Apache-2.0" ]
null
null
null
mix.exs
windfish-studio/dlex
c5ee6b67b77e626c7e1f8b7f7665c168ddd87863
[ "Apache-2.0" ]
null
null
null
mix.exs
windfish-studio/dlex
c5ee6b67b77e626c7e1f8b7f7665c168ddd87863
[ "Apache-2.0" ]
null
null
null
defmodule Dlex.MixProject do use Mix.Project def project do [ app: :dlex, version: "0.4.0", elixir: "~> 1.7", start_permanent: Mix.env() == :prod, deps: deps(), description: description(), package: package() ] end # Run "mix help compile.app" to learn about ap...
22.882353
66
0.532991
653e88389f3be5c6b4347210addb26e571af736d
3,101
ex
Elixir
clients/service_control/lib/google_api/service_control/v1/model/allocate_quota_response.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/service_control/lib/google_api/service_control/v1/model/allocate_quota_response.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/service_control/lib/google_api/service_control/v1/model/allocate_quota_response.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-10-04T10:12:44.000Z
2020-10-04T10:12:44.000Z
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
52.559322
553
0.749758
653e8a89c30dde83f6d05e97b1fade8bdf20607e
332
exs
Elixir
mix.exs
afronski/potion
d892787acd59ef14610f60d0ebf1cde8cdace0da
[ "MIT" ]
null
null
null
mix.exs
afronski/potion
d892787acd59ef14610f60d0ebf1cde8cdace0da
[ "MIT" ]
null
null
null
mix.exs
afronski/potion
d892787acd59ef14610f60d0ebf1cde8cdace0da
[ "MIT" ]
null
null
null
defmodule Potion.Mixfile do use Mix.Project def project do [ app: :potion, version: "0.0.1", elixir: "~> 1.0", deps: deps, escript: [ main_module: ExamplePotion ] ] end def application do [ applications: [ :logger ] ] end defp deps do ...
13.28
34
0.51506
653ebbeafb0400a93d63be23b2d8220c4747ff6e
2,585
exs
Elixir
apps/interface_web/config/prod.exs
artvinn/phoenix-tictactoe
14f9a7dcc18449d8cba755c5625b665b7cfccfff
[ "MIT" ]
1
2019-03-11T09:12:16.000Z
2019-03-11T09:12:16.000Z
apps/interface_web/config/prod.exs
artvinn/phoenix-tictactoe
14f9a7dcc18449d8cba755c5625b665b7cfccfff
[ "MIT" ]
null
null
null
apps/interface_web/config/prod.exs
artvinn/phoenix-tictactoe
14f9a7dcc18449d8cba755c5625b665b7cfccfff
[ "MIT" ]
1
2020-09-26T00:37:30.000Z
2020-09-26T00:37:30.000Z
use Mix.Config # For production, don't forget to configure the url host # to something meaningful, Phoenix uses this information # when generating URLs. # # Note we also include the path to a cache manifest # containing the digested version of static files. This # manifest is generated by the `mix phx.digest` task, # ...
35.410959
77
0.715667
653ed1008bd7db35346f1802b6a023a6d9c21b2b
754
exs
Elixir
apps/streamer/mix.exs
joaop21/hermes
2e274221ef8365edec847307231c134921db0270
[ "Apache-2.0" ]
null
null
null
apps/streamer/mix.exs
joaop21/hermes
2e274221ef8365edec847307231c134921db0270
[ "Apache-2.0" ]
null
null
null
apps/streamer/mix.exs
joaop21/hermes
2e274221ef8365edec847307231c134921db0270
[ "Apache-2.0" ]
null
null
null
defmodule Streamer.MixProject do use Mix.Project def project do [ app: :streamer, version: "0.1.0", build_path: "../../_build", config_path: "../../config/config.exs", deps_path: "../../deps", lockfile: "../../mix.lock", elixir: "~> 1.12", start_permanent: Mix.en...
20.944444
59
0.527851
653eddf65ee669e58c30c4ea4bc2500c3dc3d20a
469
exs
Elixir
test/phoenix_postgres_react_web/views/error_view_test.exs
CTMoney/phoenix-postgres-react
b51c298fdcef339324a601dd874a82e1e0cc8e6e
[ "MIT" ]
null
null
null
test/phoenix_postgres_react_web/views/error_view_test.exs
CTMoney/phoenix-postgres-react
b51c298fdcef339324a601dd874a82e1e0cc8e6e
[ "MIT" ]
1
2021-03-09T11:33:04.000Z
2021-03-09T11:33:04.000Z
test/phoenix_postgres_react_web/views/error_view_test.exs
CTMoney/phoenix_
b51c298fdcef339324a601dd874a82e1e0cc8e6e
[ "MIT" ]
null
null
null
defmodule PhoenixPostgresReactWeb.ErrorViewTest do use PhoenixPostgresReactWeb.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(PhoenixPostgresReactWeb.ErrorView, "404.html", []) == "Not Found" e...
31.266667
105
0.763326
653f2a42f2ab4edb94333d7495c2f21db559077e
757
ex
Elixir
plugins/demo_plugin.py.ex
absltkaos/mwpf
f4329e99cd90a9bddf8b62a172e1a0eae40fd4d1
[ "MIT" ]
null
null
null
plugins/demo_plugin.py.ex
absltkaos/mwpf
f4329e99cd90a9bddf8b62a172e1a0eae40fd4d1
[ "MIT" ]
null
null
null
plugins/demo_plugin.py.ex
absltkaos/mwpf
f4329e99cd90a9bddf8b62a172e1a0eae40fd4d1
[ "MIT" ]
null
null
null
from bottle import Bottle mount_point='demo' descr="Demo plugin to show how plugins work" name="Demo Plugin" def init(conf): #We don't care about "conf" in this demo so don't do anything with it. #Create a Bottle object app=Bottle() #Add some routes @app.route("/") def callback(): return """ <!DOC...
16.822222
72
0.627477
653f531325e39512b3b09ae023224119b05f23db
19,511
ex
Elixir
lib/surface/catalogue/components/playground_tools.ex
rowofpixels/surface_catalogue
34440d13ab81b3be7192d3846cfab32d6d833b07
[ "MIT" ]
null
null
null
lib/surface/catalogue/components/playground_tools.ex
rowofpixels/surface_catalogue
34440d13ab81b3be7192d3846cfab32d6d833b07
[ "MIT" ]
null
null
null
lib/surface/catalogue/components/playground_tools.ex
rowofpixels/surface_catalogue
34440d13ab81b3be7192d3846cfab32d6d833b07
[ "MIT" ]
null
null
null
defmodule Surface.Catalogue.Components.PlaygroundTools do use Surface.LiveView alias Surface.Catalogue.Components.Tabs alias Surface.Catalogue.Components.Tabs.TabItem alias Surface.Catalogue.Components.PropInput alias Surface.Catalogue.Components.StateDialog alias Surface.Components.Form alias Surface.Ca...
33.873264
128
0.596074
653f5bb55a9a354eef419eef989def01b2b0190b
76
ex
Elixir
testData/org/elixir_lang/parser_definition/issue_580/Fn2.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/parser_definition/issue_580/Fn2.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/parser_definition/issue_580/Fn2.ex
keyno63/intellij-elixir
4033e319992c53ddd42a683ee7123a97b5e34f02
[ "Apache-2.0" ]
145
2015-01-15T11:37:16.000Z
2021-12-22T05:51:02.000Z
defmodule A do def a do fn -> fn -> end end end end
8.444444
14
0.447368
653f83f3bff55ca66b4c61a0a246fc22eb3a939a
20,534
exs
Elixir
lib/elixir/test/elixir/calendar_test.exs
chulkilee/elixir
699231dcad52916a76f38856cbd7cf7c7bdadc51
[ "Apache-2.0" ]
1
2021-04-28T21:35:01.000Z
2021-04-28T21:35:01.000Z
lib/elixir/test/elixir/calendar_test.exs
chulkilee/elixir
699231dcad52916a76f38856cbd7cf7c7bdadc51
[ "Apache-2.0" ]
null
null
null
lib/elixir/test/elixir/calendar_test.exs
chulkilee/elixir
699231dcad52916a76f38856cbd7cf7c7bdadc51
[ "Apache-2.0" ]
1
2021-09-30T01:21:02.000Z
2021-09-30T01:21:02.000Z
Code.require_file("test_helper.exs", __DIR__) Code.require_file("fixtures/calendar/holocene.exs", __DIR__) defmodule FakeCalendar do def date_to_string(_, _, _), do: "boom" def time_to_string(_, _, _, _), do: "boom" def naive_datetime_to_string(_, _, _, _, _, _, _), do: "boom" def datetime_to_string(_, _, _, _...
29.376252
100
0.556248
653fd3443aa9525f9ec48bfbe4403656d7deccfa
875
ex
Elixir
lib/vim_snake_web/controllers/fallback_controller.ex
theanht1/vim_snake
a7650acf579721917a27d2f6c65f3e0d03e2d893
[ "MIT" ]
19
2020-01-15T05:34:44.000Z
2022-03-01T14:11:00.000Z
lib/vim_snake_web/controllers/fallback_controller.ex
theanht1/vim_snake
a7650acf579721917a27d2f6c65f3e0d03e2d893
[ "MIT" ]
2
2021-09-14T03:06:58.000Z
2022-02-12T04:31:34.000Z
lib/vim_snake_web/controllers/fallback_controller.ex
theanht1/vim_snake
a7650acf579721917a27d2f6c65f3e0d03e2d893
[ "MIT" ]
null
null
null
defmodule VimSnakeWeb.FallbackController do @moduledoc """ Translates controller action results into valid `Plug.Conn` responses. See `Phoenix.Controller.action_fallback/1` for more details. """ use VimSnakeWeb, :controller def call(conn, {:error, %Ecto.Changeset{} = changeset}) do conn |> put_sta...
25
72
0.667429
653fdb332fc5d041f807817418f1412257f7fba5
1,653
exs
Elixir
mix.exs
shawn-mcginty/phoenix-webpack-skeleton
311559c860da97157d643d06cd2601aee81c6a3a
[ "MIT" ]
null
null
null
mix.exs
shawn-mcginty/phoenix-webpack-skeleton
311559c860da97157d643d06cd2601aee81c6a3a
[ "MIT" ]
null
null
null
mix.exs
shawn-mcginty/phoenix-webpack-skeleton
311559c860da97157d643d06cd2601aee81c6a3a
[ "MIT" ]
null
null
null
defmodule TimeVoice.Mixfile do use Mix.Project def project do [app: :time_voice, version: "0.0.1", elixir: "~> 1.2", elixirc_paths: elixirc_paths(Mix.env), compilers: [:phoenix, :gettext] ++ Mix.compilers, build_embedded: Mix.env == :prod, start_permanent: Mix.env == :prod, a...
30.054545
89
0.603751
653fefe9dbc2dafebb28c979eda7d1fb566c2756
6,566
ex
Elixir
lib/paddle/subscription/subscription.ex
MMore/paddlex
f84bb525446a13fe5d8af20975276eb712149744
[ "MIT" ]
null
null
null
lib/paddle/subscription/subscription.ex
MMore/paddlex
f84bb525446a13fe5d8af20975276eb712149744
[ "MIT" ]
null
null
null
lib/paddle/subscription/subscription.ex
MMore/paddlex
f84bb525446a13fe5d8af20975276eb712149744
[ "MIT" ]
null
null
null
defmodule Paddle.Subscription do @moduledoc """ This module corresponds to the `subscription/users` endpoint in the Paddle API, I've changed the name to Subscription as I found it to be more accurate. """ @type t :: %{ subscription_id: integer, plan_id: integer, user_id: integer...
32.666667
293
0.595797
65404321666565af6c7dbcf35f55f5ecede3594e
1,555
ex
Elixir
test/support/data_case.ex
fremantle-industries/paged_query
73ee7a734f777aded90f2cd50979e577504b9abb
[ "MIT" ]
1
2021-06-04T14:57:20.000Z
2021-06-04T14:57:20.000Z
test/support/data_case.ex
fremantle-industries/paged_query
73ee7a734f777aded90f2cd50979e577504b9abb
[ "MIT" ]
13
2021-08-01T15:03:37.000Z
2022-03-01T15:01:58.000Z
test/support/data_case.ex
fremantle-industries/paged_query
73ee7a734f777aded90f2cd50979e577504b9abb
[ "MIT" ]
null
null
null
defmodule PagedQuery.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, we enable the SQL sandbox, so changes done t...
27.767857
77
0.693248
6540510dc18cb98f5a95972d8308b93472fb224b
1,628
ex
Elixir
lib/mix/lib/mix/dep/lock.ex
nurugger07/elixir
c859e49199bb24190656e6d3acb6cf35fe70e8bb
[ "Apache-2.0" ]
null
null
null
lib/mix/lib/mix/dep/lock.ex
nurugger07/elixir
c859e49199bb24190656e6d3acb6cf35fe70e8bb
[ "Apache-2.0" ]
null
null
null
lib/mix/lib/mix/dep/lock.ex
nurugger07/elixir
c859e49199bb24190656e6d3acb6cf35fe70e8bb
[ "Apache-2.0" ]
null
null
null
# This module keeps a lock file and the manifest for the lock file. # The lockfile keeps the latest dependency information while the # manifest is used whenever a dependency is affected via any of the # deps.* tasks. We also keep the Elixir version in the manifest file. defmodule Mix.Dep.Lock do @moduledoc false @...
24.666667
70
0.619165
65406f9e55a8bb68a84a916ab54303945689851e
2,689
ex
Elixir
rustler_mix/lib/rustler/compiler/messages.ex
davydog187/rustler
64b49f7bbda4b24836ad53e6bebd847a39c56bc8
[ "Apache-2.0", "MIT" ]
null
null
null
rustler_mix/lib/rustler/compiler/messages.ex
davydog187/rustler
64b49f7bbda4b24836ad53e6bebd847a39c56bc8
[ "Apache-2.0", "MIT" ]
null
null
null
rustler_mix/lib/rustler/compiler/messages.ex
davydog187/rustler
64b49f7bbda4b24836ad53e6bebd847a39c56bc8
[ "Apache-2.0", "MIT" ]
null
null
null
defmodule Rustler.Compiler.Messages do def message(:rustup_not_installed) do """ Rustup could not be found on your machine. It is required for building NIF crates automatically. Follow the instructions in https://www.rustup.rs/ to install it. """ end def message({:nonexistent_crate_director...
28.010417
103
0.685757
65407e0c806bee83972b86e1dfb0884aa260f61c
1,203
ex
Elixir
lib/markright/finalizers/blockquote.ex
betrybe/markright
1b81a2d9931b70645f9eff70d2605f0e9a58f396
[ "MIT" ]
15
2017-01-12T19:24:35.000Z
2021-04-27T14:44:08.000Z
lib/markright/finalizers/blockquote.ex
betrybe/markright
1b81a2d9931b70645f9eff70d2605f0e9a58f396
[ "MIT" ]
8
2017-02-13T17:01:35.000Z
2021-07-27T16:20:52.000Z
lib/markright/finalizers/blockquote.ex
betrybe/markright
1b81a2d9931b70645f9eff70d2605f0e9a58f396
[ "MIT" ]
1
2021-04-24T18:40:11.000Z
2021-04-24T18:40:11.000Z
defmodule Markright.Finalizers.Blockquote do @moduledoc ~S""" Finalizer for `blockquote` tag: makes last AST element fancy if it’s a link. """ @behaviour Markright.Finalizer @spec finalize(Markright.Continuation.t()) :: Markright.Continuation.t() def finalize(%Markright.Continuation{ast: {:blockquote, bq_...
30.846154
92
0.491272
654085f07a3edc9d5e1c041f229a1e0703195ade
215
exs
Elixir
priv/repo/migrations/20201231190003_add_unique_index_on_user_id_and_fundraiser_id_to_participants.exs
jfcloutier/freegiving
2ab3821595996fc295c5b55515d6f60cbce05181
[ "Unlicense" ]
null
null
null
priv/repo/migrations/20201231190003_add_unique_index_on_user_id_and_fundraiser_id_to_participants.exs
jfcloutier/freegiving
2ab3821595996fc295c5b55515d6f60cbce05181
[ "Unlicense" ]
null
null
null
priv/repo/migrations/20201231190003_add_unique_index_on_user_id_and_fundraiser_id_to_participants.exs
jfcloutier/freegiving
2ab3821595996fc295c5b55515d6f60cbce05181
[ "Unlicense" ]
null
null
null
defmodule Freegiving.Repo.Migrations.AddUniqueIndexOnUserIdAndFundraiserIdToParticipants do use Ecto.Migration def change do create index("participants", [:user_id, :fundraiser_id], unique: true) end end
26.875
91
0.8
6540c8bd3cf543f0d69372f655bffaa1a4b844c9
1,630
ex
Elixir
clients/service_networking/lib/google_api/service_networking/v1/model/control.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/service_networking/lib/google_api/service_networking/v1/model/control.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/service_networking/lib/google_api/service_networking/v1/model/control.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...
32.6
127
0.741718
6540eb48621eb6851460a6183f519d9822f9386b
1,142
ex
Elixir
lib/ecto_pg_geom/box.ex
aseigo/ecto_pg_geom
bf90436794e91912ba67e7778bcbe11c4010de6e
[ "Apache-2.0" ]
3
2020-08-30T12:08:17.000Z
2021-03-20T21:38:41.000Z
lib/ecto_pg_geom/box.ex
aseigo/ecto_pg_geom
bf90436794e91912ba67e7778bcbe11c4010de6e
[ "Apache-2.0" ]
null
null
null
lib/ecto_pg_geom/box.ex
aseigo/ecto_pg_geom
bf90436794e91912ba67e7778bcbe11c4010de6e
[ "Apache-2.0" ]
null
null
null
defmodule EctoPgGeom.Box do @moduledoc """ An Ecto type for [boxes](https://www.postgresql.org/docs/current/datatype-geometric.html#id-1.5.7.16.8). May be used as a field in an `Ecto.Schema` for automatic use of box data stored in the database: field :box, EctoPgGeom.Box Assigning to a box field can be...
30.052632
111
0.669002
6540f58e0761f667c64f930fda4cd301d3104ae6
5,694
ex
Elixir
lib/mix/tasks/edeliver.ex
Fastcomm/edeliver
b75c691cb2e29ae586584fa2aa99113d521456e3
[ "MIT", "Unlicense" ]
807
2017-06-30T04:50:01.000Z
2022-03-24T09:57:48.000Z
lib/mix/tasks/edeliver.ex
Fastcomm/edeliver
b75c691cb2e29ae586584fa2aa99113d521456e3
[ "MIT", "Unlicense" ]
165
2017-06-26T12:57:43.000Z
2022-03-29T14:36:49.000Z
lib/mix/tasks/edeliver.ex
Fastcomm/edeliver
b75c691cb2e29ae586584fa2aa99113d521456e3
[ "MIT", "Unlicense" ]
96
2017-07-01T17:30:22.000Z
2022-03-21T09:34:34.000Z
defmodule Mix.Tasks.Edeliver do use Mix.Task @shortdoc "Build and deploy releases" @moduledoc """ Build and deploy Elixir applications and perform hot-code upgrades # Usage: * mix edeliver <build-command|deploy-command|node-command|local-command> command-info [Options] * mix edeliver --help|--vers...
45.919355
204
0.665789
654101cfaa789489977f627ce03ac0d4652411f5
2,101
ex
Elixir
lib/credo/check/refactor/double_boolean_negation.ex
harlantwood/credo
4569c9c8cfcf74a2074d6911541da0265e52ae99
[ "MIT" ]
null
null
null
lib/credo/check/refactor/double_boolean_negation.ex
harlantwood/credo
4569c9c8cfcf74a2074d6911541da0265e52ae99
[ "MIT" ]
null
null
null
lib/credo/check/refactor/double_boolean_negation.ex
harlantwood/credo
4569c9c8cfcf74a2074d6911541da0265e52ae99
[ "MIT" ]
null
null
null
defmodule Credo.Check.Refactor.DoubleBooleanNegation do @moduledoc """ Having double negations in your code obscures a parameters original value. # NOT preferred !!var This will return `false` for `false` and `nil`, and `true` for anything else. At first this seems like an extra clever shorthand...
28.013333
81
0.663018
654112fb502d406f25dc12b2ad345dbe0098a48d
1,767
ex
Elixir
clients/blogger/lib/google_api/blogger/v3/model/post_location.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/post_location.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/blogger/lib/google_api/blogger/v3/model/post_location.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 ...
31.553571
121
0.684776
6541309a9af65f1959fedf77f970a3afc35291e2
1,522
ex
Elixir
lib/excoveralls/cover.ex
brauliobz/excoveralls
8108405bda1c6ef27253edc294415f02d78760f4
[ "MIT" ]
null
null
null
lib/excoveralls/cover.ex
brauliobz/excoveralls
8108405bda1c6ef27253edc294415f02d78760f4
[ "MIT" ]
null
null
null
lib/excoveralls/cover.ex
brauliobz/excoveralls
8108405bda1c6ef27253edc294415f02d78760f4
[ "MIT" ]
2
2019-03-15T08:12:53.000Z
2019-06-11T11:34:04.000Z
defmodule ExCoveralls.Cover do @moduledoc """ Wrapper class for Erlang's cover tool. """ @doc """ Compile the beam files for coverage analysis. """ def compile(compile_path) do :cover.stop :cover.start :cover.compile_beam_directory(compile_path |> string_to_charlist) end @doc """ Retur...
24.548387
124
0.670828
654147412fce421019d44def742d133b069560ad
1,613
exs
Elixir
test/lib/timber/events/controller_call_event_test.exs
montebrown/timber-elixir
1e177cc426422be3617479143038f5882037752f
[ "0BSD" ]
null
null
null
test/lib/timber/events/controller_call_event_test.exs
montebrown/timber-elixir
1e177cc426422be3617479143038f5882037752f
[ "0BSD" ]
null
null
null
test/lib/timber/events/controller_call_event_test.exs
montebrown/timber-elixir
1e177cc426422be3617479143038f5882037752f
[ "0BSD" ]
null
null
null
defmodule Timber.Events.ControllerCallEventTest do use Timber.TestCase alias Timber.Events.ControllerCallEvent describe "Timber.Events.ControllerCallEvent.new/1" do test "converts params to params_json" do event = ControllerCallEvent.new( action: "action", controller: "cont...
24.074627
59
0.49535
654189777082b8c850d990cca9aabe37ceb92cdf
1,578
ex
Elixir
clients/analytics_data/lib/google_api/analytics_data/v1alpha/model/entity.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/analytics_data/lib/google_api/analytics_data/v1alpha/model/entity.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/analytics_data/lib/google_api/analytics_data/v1alpha/model/entity.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
33.574468
229
0.742712
6541dc4b38e5fb9779e1f173ca2a503991742bd8
2,270
exs
Elixir
config/prod.exs
xenu256/phoenix_auth_api
2f1c812a78b3cce82d9f2ded6ed7b1b080c8a379
[ "MIT" ]
null
null
null
config/prod.exs
xenu256/phoenix_auth_api
2f1c812a78b3cce82d9f2ded6ed7b1b080c8a379
[ "MIT" ]
null
null
null
config/prod.exs
xenu256/phoenix_auth_api
2f1c812a78b3cce82d9f2ded6ed7b1b080c8a379
[ "MIT" ]
null
null
null
use Mix.Config # For production, we often load configuration from external # sources, such as your system environment. For this reason, # you won't find the :http configuration below, but set inside # ApiWeb.Endpoint.init/2 when load_from_system_env is # true. Any dynamic configuration should be done there. # # Don't ...
32.428571
67
0.692952
65423832ebb568ce9f747cf7fc8d6d8f10a42803
122
exs
Elixir
test/riemann_mux_test.exs
krakatoa/riemann-mux
d7b88c2c0e1f07574251c035026b9c677df0fe5b
[ "MIT" ]
null
null
null
test/riemann_mux_test.exs
krakatoa/riemann-mux
d7b88c2c0e1f07574251c035026b9c677df0fe5b
[ "MIT" ]
null
null
null
test/riemann_mux_test.exs
krakatoa/riemann-mux
d7b88c2c0e1f07574251c035026b9c677df0fe5b
[ "MIT" ]
null
null
null
defmodule RiemannMuxTest do use ExUnit.Case doctest RiemannMux test "the truth" do assert 1 + 1 == 2 end end
13.555556
27
0.688525
6542521292e7aeb5efbe720a7dfd0a0cec5197e8
4,299
ex
Elixir
lib/hexpm/web/plugs.ex
hubertpompecki/hexpm
5cd4208b07a70bf2e1490930bf5d577978793b50
[ "Apache-2.0" ]
null
null
null
lib/hexpm/web/plugs.ex
hubertpompecki/hexpm
5cd4208b07a70bf2e1490930bf5d577978793b50
[ "Apache-2.0" ]
null
null
null
lib/hexpm/web/plugs.ex
hubertpompecki/hexpm
5cd4208b07a70bf2e1490930bf5d577978793b50
[ "Apache-2.0" ]
null
null
null
defmodule Hexpm.Web.Plugs do import Plug.Conn, except: [read_body: 1] alias Hexpm.Web.ControllerHelpers # Max filesize: ~10mb # Min upload speed: ~10kb/s # Read 100kb every 10s @read_body_opts [ length: 10_000_000, read_length: 100_000, read_timeout: 10_000 ] def validate_url(conn, _opts)...
25.89759
95
0.615725
6542d5003c47f15ea122a9f19b3f2c1b53ce9ce2
714
exs
Elixir
test/formatters/weekly_test.exs
rcdilorenzo/repeatex
eb7e1ec5d0431bef936a01e656b4454ed555ae00
[ "MIT" ]
51
2015-01-22T14:16:59.000Z
2021-07-27T15:51:47.000Z
test/formatters/weekly_test.exs
ruby2elixir/repeatex
eb7e1ec5d0431bef936a01e656b4454ed555ae00
[ "MIT" ]
15
2015-02-07T19:33:04.000Z
2019-03-22T19:51:04.000Z
test/formatters/weekly_test.exs
ruby2elixir/repeatex
eb7e1ec5d0431bef936a01e656b4454ed555ae00
[ "MIT" ]
6
2016-01-08T05:41:10.000Z
2019-04-02T12:27:34.000Z
defmodule Formatters.WeeklyTest do use ExUnit.Case alias Repeatex.Formatter.Weekly test "should print description of a repeat" do assert Weekly.format(%Repeatex{days: [:monday, :tuesday], type: :weekly, frequency: 1}) == "Every week on Mon and Tue" assert Weekly.format(%Repeatex{days: [:monday, :t...
37.578947
103
0.673669
6542d534e57b228a6aced6161184871256926cc8
200
ex
Elixir
test/support/factory.ex
ARKultur/naboo
ab26c2e82cdc485e23d428fbb1d4798f1fb1388b
[ "MIT" ]
16
2021-12-14T12:25:59.000Z
2021-12-16T21:56:27.000Z
test/support/factory.ex
ARKultur/naboo
ab26c2e82cdc485e23d428fbb1d4798f1fb1388b
[ "MIT" ]
19
2021-12-06T08:35:30.000Z
2022-03-23T18:20:46.000Z
test/support/factory.ex
ARKultur/naboo
ab26c2e82cdc485e23d428fbb1d4798f1fb1388b
[ "MIT" ]
null
null
null
defmodule Naboo.Factory do use ExMachina.Ecto, repo: Naboo.Repo # This is a sample factory to make sure our setup is working correctly. def name_factory(_) do Faker.Person.name() end end
22.222222
73
0.735
6542eb28a4b01737e517c23ffac6ad2ddc9c26cd
497
ex
Elixir
lib/receptar_web/plugs/language.ex
johannes-mueller/receptar
6ab2cbf93c5da01409a9d8ed3d56a825e8350a1e
[ "Apache-2.0" ]
null
null
null
lib/receptar_web/plugs/language.ex
johannes-mueller/receptar
6ab2cbf93c5da01409a9d8ed3d56a825e8350a1e
[ "Apache-2.0" ]
null
null
null
lib/receptar_web/plugs/language.ex
johannes-mueller/receptar
6ab2cbf93c5da01409a9d8ed3d56a825e8350a1e
[ "Apache-2.0" ]
null
null
null
defmodule ReceptarWeb.Plugs.Language do use ReceptarWeb, :controller import Plug.Conn def init(_default), do: ReceptarWeb.Cldr.default_locale.language def call(%Plug.Conn{params: %{"language" => language}} = conn, _default) do put_session(conn, "language", language) |> assign(:language, language) en...
27.611111
77
0.706237
6543024d4d16561dd8f8aa0553101e851824e583
1,555
ex
Elixir
lib/stone_bank_web/views/error_helpers.ex
brunoguedesit/stone_bank
ce99b3269595866faf7eb95f89b0d78f7cd62f2a
[ "MIT" ]
null
null
null
lib/stone_bank_web/views/error_helpers.ex
brunoguedesit/stone_bank
ce99b3269595866faf7eb95f89b0d78f7cd62f2a
[ "MIT" ]
null
null
null
lib/stone_bank_web/views/error_helpers.ex
brunoguedesit/stone_bank
ce99b3269595866faf7eb95f89b0d78f7cd62f2a
[ "MIT" ]
null
null
null
defmodule StoneBankWeb.ErrorHelpers do @moduledoc """ Conveniences for translating and building error messages. """ use Phoenix.HTML @doc """ Generates tag for inlined form input errors. """ def error_tag(form, field) do Enum.map(Keyword.get_values(form.errors, field), fn error -> content_ta...
32.395833
78
0.666881
654306f5284c5bd859e29c169d1f60542004a0b9
1,459
ex
Elixir
lib/phoenix.ex
alanpeabody/phoenix
94e38415da40e0b317c30e1d114dd05594955d95
[ "MIT" ]
null
null
null
lib/phoenix.ex
alanpeabody/phoenix
94e38415da40e0b317c30e1d114dd05594955d95
[ "MIT" ]
null
null
null
lib/phoenix.ex
alanpeabody/phoenix
94e38415da40e0b317c30e1d114dd05594955d95
[ "MIT" ]
1
2020-02-08T16:23:00.000Z
2020-02-08T16:23:00.000Z
defmodule Phoenix do @moduledoc """ This is the documentation for the Phoenix project. By default, Phoenix applications depend on the following packages: * [Ecto](https://hexdocs.pm/ecto) - a language integrated query and database wrapper * [Phoenix](https://hexdocs.pm/phoenix) - the Phoenix web ...
30.395833
77
0.717615
6543228f32c7913ff65ddbebe94b70e166501de3
2,765
ex
Elixir
clients/compute/lib/google_api/compute/v1/model/router_list.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/compute/lib/google_api/compute/v1/model/router_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/router_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...
44.596774
393
0.705606
6543272d91590e4d4e745922bd9ca8b49b353369
1,756
ex
Elixir
example_avialia/test/support/data_case.ex
kianmeng/Domo
1dcd2a0fb7d11b8c99db45b76aca95825db27d3b
[ "MIT" ]
101
2020-06-11T23:51:50.000Z
2022-03-30T16:29:18.000Z
example_avialia/test/support/data_case.ex
kianmeng/Domo
1dcd2a0fb7d11b8c99db45b76aca95825db27d3b
[ "MIT" ]
11
2020-10-11T11:50:24.000Z
2022-02-12T08:54:50.000Z
example_avialia/test/support/data_case.ex
kianmeng/Domo
1dcd2a0fb7d11b8c99db45b76aca95825db27d3b
[ "MIT" ]
4
2020-07-02T08:54:22.000Z
2021-12-26T09:59:15.000Z
defmodule ExampleAvialia.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, we enable the SQL sandbox, so changes do...
30.275862
85
0.70615
65432cca3b3a592c02f861db9039fa9dad9c0816
1,753
exs
Elixir
mix.exs
lorenzosinisi/drama
b86c31535adb7eaf2c68c78f87e5b6cd5ba1e298
[ "MIT" ]
1
2020-01-14T05:03:27.000Z
2020-01-14T05:03:27.000Z
mix.exs
lorenzosinisi/drama
b86c31535adb7eaf2c68c78f87e5b6cd5ba1e298
[ "MIT" ]
null
null
null
mix.exs
lorenzosinisi/drama
b86c31535adb7eaf2c68c78f87e5b6cd5ba1e298
[ "MIT" ]
null
null
null
defmodule Drama.MixProject do use Mix.Project @github "https://github.com/lorenzosinisi/drama" def project do [ app: :drama, version: "0.2.0", elixir: "~> 1.7", elixirc_paths: elixirc_paths(Mix.env()), build_embedded: Mix.env() == :prod, start_permanent: Mix.env() == :pro...
23.065789
72
0.534512
65435eab2754051d148b290a0c2ba5c462a086c4
956
exs
Elixir
mix.exs
jessiahr/map_diff
18277259e413962f084d30b88bdf42d54e9cc709
[ "Apache-2.0" ]
null
null
null
mix.exs
jessiahr/map_diff
18277259e413962f084d30b88bdf42d54e9cc709
[ "Apache-2.0" ]
null
null
null
mix.exs
jessiahr/map_diff
18277259e413962f084d30b88bdf42d54e9cc709
[ "Apache-2.0" ]
null
null
null
defmodule MapDiff.Mixfile do use Mix.Project def project do [ app: :map_diff, version: "0.1.0", elixir: "~> 1.4", package: package(), description: description(), source_url: "https://github.com/jessiahr/map_diff", name: "MapDiff", build_embedded: Mix.env == :prod...
20.340426
66
0.558577
65438bca8c2043f0d0c1ca1af4223d2031504a81
1,403
ex
Elixir
huffman/lib/huffman.ex
lucas-larsson/ID1019
b21a79bfa7fbbaaba0b4db88ec8b44fc5e9f291c
[ "MIT" ]
null
null
null
huffman/lib/huffman.ex
lucas-larsson/ID1019
b21a79bfa7fbbaaba0b4db88ec8b44fc5e9f291c
[ "MIT" ]
null
null
null
huffman/lib/huffman.ex
lucas-larsson/ID1019
b21a79bfa7fbbaaba0b4db88ec8b44fc5e9f291c
[ "MIT" ]
null
null
null
defmodule Huffman do @moduledoc """ Documentation for `Huffman`. """ @doc """ Hello world. ## Examples iex> Huffman.hello() :world """ def hello do :world end # A sampel text contaaining all charecters to be encoded. def sample do 'the quick brown fox jumps over the lazy ...
21.257576
61
0.606557
6543ba6f589d9665fbc90dc1d829e73ce4eaca35
2,101
ex
Elixir
clients/big_query/lib/google_api/big_query/v2/model/argument.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/big_query/lib/google_api/big_query/v2/model/argument.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/big_query/lib/google_api/big_query/v2/model/argument.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
36.224138
140
0.70871
654422db545281c9830dc5e71bfd51c022b043ee
1,433
exs
Elixir
samples/macro_benchmark.exs
gomoripeti/benchee
bd5185bcfdc8320c237959505e63a89d31e044a9
[ "MIT" ]
636
2016-06-06T07:58:36.000Z
2019-03-19T15:27:37.000Z
samples/macro_benchmark.exs
gomoripeti/benchee
bd5185bcfdc8320c237959505e63a89d31e044a9
[ "MIT" ]
198
2016-06-18T08:19:15.000Z
2019-03-19T15:32:37.000Z
samples/macro_benchmark.exs
gomoripeti/benchee
bd5185bcfdc8320c237959505e63a89d31e044a9
[ "MIT" ]
43
2016-06-08T08:04:30.000Z
2019-02-13T17:10:24.000Z
# Intentionally not a real fibonacci to make it both slower and more memory hungry defmodule Fib do def fib(0), do: 0 def fib(1), do: 1 def fib(n), do: "#{fib(n - 1)} #{fib(n - 2)}" end Benchee.run( %{ "35 fibonacci numbers" => fn -> Fib.fib(35) end, "43 fibonacci numbers" => fn -> Fib.fib(43) end },...
28.098039
92
0.614794
654426a1214b04f567502c2db2a438701e3a29bf
2,371
ex
Elixir
apps/re_integrations/lib/routific/payload/inbound.ex
ruby2elixir/emcasa-backend
70d7f4f233555417941ffa6ada84cf8740c21dd2
[ "MIT" ]
4
2019-11-01T16:29:31.000Z
2020-10-10T21:20:12.000Z
apps/re_integrations/lib/routific/payload/inbound.ex
eduardomartines/emcasa-backend
70d7f4f233555417941ffa6ada84cf8740c21dd2
[ "MIT" ]
null
null
null
apps/re_integrations/lib/routific/payload/inbound.ex
eduardomartines/emcasa-backend
70d7f4f233555417941ffa6ada84cf8740c21dd2
[ "MIT" ]
5
2019-11-04T21:25:45.000Z
2020-02-13T23:49:36.000Z
defmodule ReIntegrations.Routific.Payload.Inbound do @moduledoc """ Parses routific response. """ @derive Jason.Encoder defstruct [:id, :status, :solution, :unserved, :options] @status_types ["finished", "pending", "error"] def build(%{"status" => "finished", "id" => id, "output" => output, "input" => ...
31.197368
91
0.614509
654429ef9645f74400761a37cdb12e64e14822f7
108
exs
Elixir
test/app_test.exs
johannesE/elixir-telegram-bot-boilerplate
af6ceb910183e1927d0c22f8d0f10805662326d9
[ "MIT" ]
148
2016-11-19T05:59:26.000Z
2022-02-28T05:09:29.000Z
test/app_test.exs
johannesE/elixir-telegram-bot-boilerplate
af6ceb910183e1927d0c22f8d0f10805662326d9
[ "MIT" ]
17
2017-01-14T23:49:04.000Z
2020-06-02T13:35:21.000Z
test/app_test.exs
johannesE/elixir-telegram-bot-boilerplate
af6ceb910183e1927d0c22f8d0f10805662326d9
[ "MIT" ]
37
2016-11-19T08:40:55.000Z
2022-02-25T23:37:39.000Z
defmodule AppTest do use ExUnit.Case doctest App test "the truth" do assert 1 + 1 == 2 end end
12
21
0.648148
65443c2f4eccc597a8711861ce8cf98266114893
486
exs
Elixir
exercises/run-length-encoding/rle.exs
martinsvalin/xelixir
9469d92e7eecb528a05a8da923d8271ed303c058
[ "MIT" ]
null
null
null
exercises/run-length-encoding/rle.exs
martinsvalin/xelixir
9469d92e7eecb528a05a8da923d8271ed303c058
[ "MIT" ]
null
null
null
exercises/run-length-encoding/rle.exs
martinsvalin/xelixir
9469d92e7eecb528a05a8da923d8271ed303c058
[ "MIT" ]
null
null
null
defmodule RunLengthEncoder do @doc """ Generates a string where consecutive elements are represented as a data value and count. "HORSE" => "1H1O1R1S1E" For this example, assume all input are strings, that are all uppercase letters. It should also be able to reconstruct the data into its original form. "1H1O...
25.578947
90
0.711934
6544404074e12816784d299a0c567b608946d9c8
129
exs
Elixir
test/kina_test.exs
insprac/kina
44936ac1372f73471591b5798db8161b27afa001
[ "MIT" ]
1
2021-04-12T13:02:06.000Z
2021-04-12T13:02:06.000Z
test/kina_test.exs
insprac/kina
44936ac1372f73471591b5798db8161b27afa001
[ "MIT" ]
null
null
null
test/kina_test.exs
insprac/kina
44936ac1372f73471591b5798db8161b27afa001
[ "MIT" ]
null
null
null
defmodule KinaTest do use ExUnit.Case doctest Kina test "greets the world" do assert Kina.hello() == :world end end
14.333333
33
0.689922
65444ef2def66f76a0d2c87b2fa76a5cdbb79eef
2,154
ex
Elixir
lib/bamboo/adapters/sendin_blue_helper.ex
maysam/bamboo_sendinblue
882511499ce8088b46713dbae06eee1bd84c860a
[ "MIT" ]
null
null
null
lib/bamboo/adapters/sendin_blue_helper.ex
maysam/bamboo_sendinblue
882511499ce8088b46713dbae06eee1bd84c860a
[ "MIT" ]
null
null
null
lib/bamboo/adapters/sendin_blue_helper.ex
maysam/bamboo_sendinblue
882511499ce8088b46713dbae06eee1bd84c860a
[ "MIT" ]
null
null
null
defmodule Bamboo.SendinBlueHelper do @moduledoc """ Functions for using features specific to SendinBlue's templates. """ alias Bamboo.Email @doc """ Set a single tag for an email that allows you to categorize outgoing emails and get detailed statistics. A convenience function for `put_private(email, ...
27.615385
116
0.651346
65446d223c53a666762d888f071ae5a348fb2f03
124
exs
Elixir
apps/transformer/.formatter.exs
rucker/hindsight
876a5d344c5d8eebbea37684ee07e0a91e4430f0
[ "Apache-2.0" ]
26
2019-09-20T23:54:45.000Z
2020-08-20T14:23:32.000Z
apps/transformer/.formatter.exs
rucker/hindsight
876a5d344c5d8eebbea37684ee07e0a91e4430f0
[ "Apache-2.0" ]
757
2019-08-15T18:15:07.000Z
2020-09-18T20:55:31.000Z
apps/transformer/.formatter.exs
rucker/hindsight
876a5d344c5d8eebbea37684ee07e0a91e4430f0
[ "Apache-2.0" ]
10
2020-02-13T21:24:09.000Z
2020-05-21T18:39:35.000Z
# Used by "mix format" [ inputs: ["{mix,.formatter}.exs", "{config,lib,test}/**/*.{ex,exs}"], import_deps: [:checkov] ]
20.666667
70
0.580645
65448da50ee40df64711f994fd77ee81d95a26ff
3,969
ex
Elixir
lib/ex_admin/query.ex
erikmueller/ex_admin
af8f3e23a03148d8365cc3b71286f855fb919f8c
[ "MIT" ]
null
null
null
lib/ex_admin/query.ex
erikmueller/ex_admin
af8f3e23a03148d8365cc3b71286f855fb919f8c
[ "MIT" ]
null
null
null
lib/ex_admin/query.ex
erikmueller/ex_admin
af8f3e23a03148d8365cc3b71286f855fb919f8c
[ "MIT" ]
null
null
null
defmodule ExAdmin.Query do @moduledoc false import Ecto.Query, except: [count: 1] require Logger # alias ExAdmin.Helpers import ExQueb alias ExAdmin.Schema @doc false def get_scope(scopes, nil) do (Enum.find(scopes, fn({_, v}) -> v[:default] == true end) || hd(scopes)) |> elem(0) end def get_s...
28.148936
87
0.622323
65451e27c55f9630a6c687caf909f6d42949ed87
869
exs
Elixir
mix.exs
daniloescolin/elixir-opentelemetry-example
d74107ad4707eea5d8d206519bb17b165daff58c
[ "Apache-2.0" ]
null
null
null
mix.exs
daniloescolin/elixir-opentelemetry-example
d74107ad4707eea5d8d206519bb17b165daff58c
[ "Apache-2.0" ]
null
null
null
mix.exs
daniloescolin/elixir-opentelemetry-example
d74107ad4707eea5d8d206519bb17b165daff58c
[ "Apache-2.0" ]
null
null
null
defmodule OpentelemetryDemo.MixProject do use Mix.Project def project do [ app: :opentelemetry_demo, version: "0.1.0", elixir: "~> 1.9", start_permanent: Mix.env() == :prod, deps: deps(), releases: [ opentelemetry_demo: [ applications: [opentelemetry: :temp...
22.868421
87
0.571922
65457d704b689f3a782f1db48bd1645683c0080e
2,199
exs
Elixir
config/dev.exs
chownces/cadet
0d8b264e4fad1c9aaab7ef3f037ac4e07a4c9b22
[ "Apache-2.0" ]
null
null
null
config/dev.exs
chownces/cadet
0d8b264e4fad1c9aaab7ef3f037ac4e07a4c9b22
[ "Apache-2.0" ]
10
2022-02-24T17:57:38.000Z
2022-03-31T07:43:05.000Z
config/dev.exs
chownces/cadet
0d8b264e4fad1c9aaab7ef3f037ac4e07a4c9b22
[ "Apache-2.0" ]
1
2019-07-17T15:51:58.000Z
2019-07-17T15:51:58.000Z
import Config config :cadet, environment: :dev # 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 :cadet, CadetWe...
28.558442
170
0.698499
6545978ec13279cfca13f5b9e907b508c46efc1f
2,209
ex
Elixir
apps/theta_web/lib/theta_web/live/media_live.ex
LangPham/thetaproject
c6479d1b761ff58fe6ae5f82e2d9de87a8658883
[ "MIT" ]
null
null
null
apps/theta_web/lib/theta_web/live/media_live.ex
LangPham/thetaproject
c6479d1b761ff58fe6ae5f82e2d9de87a8658883
[ "MIT" ]
11
2020-07-21T09:34:54.000Z
2021-08-29T07:38:02.000Z
apps/theta_web/lib/theta_web/live/media_live.ex
LangPham/thetaproject
c6479d1b761ff58fe6ae5f82e2d9de87a8658883
[ "MIT" ]
null
null
null
defmodule ThetaWeb.MediaLive do use ThetaWeb, :live_view use ThetaMedia @impl true def render(assigns) do Phoenix.View.render(ThetaWeb.MediaView, "layout.html", assigns) end @impl true def mount(_params, session, socket) do base = Base.new() dir = Dir.ls(base) pages = %{layout: "home.htm...
27.6125
72
0.578995
6545bddfbcb68a03ce41683b36662aa6618cdbc7
2,957
ex
Elixir
clients/memcache/lib/google_api/memcache/v1/model/google_cloud_saasaccelerator_management_providers_v1_maintenance_schedule.ex
jechol/elixir-google-api
0290b683dfc6491ca2ef755a80bc329378738d03
[ "Apache-2.0" ]
null
null
null
clients/memcache/lib/google_api/memcache/v1/model/google_cloud_saasaccelerator_management_providers_v1_maintenance_schedule.ex
jechol/elixir-google-api
0290b683dfc6491ca2ef755a80bc329378738d03
[ "Apache-2.0" ]
null
null
null
clients/memcache/lib/google_api/memcache/v1/model/google_cloud_saasaccelerator_management_providers_v1_maintenance_schedule.ex
jechol/elixir-google-api
0290b683dfc6491ca2ef755a80bc329378738d03
[ "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...
44.80303
338
0.742645
6545c04288407b6851785a3044601464aa2d5247
589
ex
Elixir
apps/service_orchestrate/lib/orchestrate/application.ex
kennyatpillar/hindsight
e90e2150a14218e5d6fdf5874f57eb055fd2dd07
[ "Apache-2.0" ]
null
null
null
apps/service_orchestrate/lib/orchestrate/application.ex
kennyatpillar/hindsight
e90e2150a14218e5d6fdf5874f57eb055fd2dd07
[ "Apache-2.0" ]
null
null
null
apps/service_orchestrate/lib/orchestrate/application.ex
kennyatpillar/hindsight
e90e2150a14218e5d6fdf5874f57eb055fd2dd07
[ "Apache-2.0" ]
null
null
null
defmodule Orchestrate.Application do @moduledoc false use Application use Properties, otp_app: :service_orchestrate def instance(), do: :orchestrate_instance def start(_type, _args) do children = [ Orchestrate.Scheduler, brook() ] |> List.flatten() opts = [strateg...
21.035714
67
0.65365
6545cc254a9dc6b725ac7500aa992aed8cdd3d8e
789
exs
Elixir
test/alternate_helper.exs
Frameio/ex_aws
3b335b6ed7932b5cf991323d26cf5497e1e6c122
[ "Unlicense", "MIT" ]
null
null
null
test/alternate_helper.exs
Frameio/ex_aws
3b335b6ed7932b5cf991323d26cf5497e1e6c122
[ "Unlicense", "MIT" ]
null
null
null
test/alternate_helper.exs
Frameio/ex_aws
3b335b6ed7932b5cf991323d26cf5497e1e6c122
[ "Unlicense", "MIT" ]
1
2021-01-22T12:16:23.000Z
2021-01-22T12:16:23.000Z
defmodule Test.KinesisAlt do def config_root do Application.get_all_env(:ex_aws) |> Keyword.put(:http_client, ExAws.Request.HTTPotion) |> Keyword.put(:json_codec, ExAws.JSON.JSX) end end Application.ensure_all_started(:httpotion) defmodule Test.HTTPotion do def request(method, url, body, headers) do...
19.243902
105
0.640051
6545d2e79fefbdb814a423ab4f87a0b5d89de086
1,551
exs
Elixir
test/encoder_test.exs
revzilla/csv
2913d53c0e1c8744ecdacedac716565dd9867b9f
[ "MIT" ]
null
null
null
test/encoder_test.exs
revzilla/csv
2913d53c0e1c8744ecdacedac716565dd9867b9f
[ "MIT" ]
null
null
null
test/encoder_test.exs
revzilla/csv
2913d53c0e1c8744ecdacedac716565dd9867b9f
[ "MIT" ]
2
2016-08-25T14:22:04.000Z
2020-03-03T20:06:34.000Z
defmodule EncoderTest do use ExUnit.Case alias CSV.Encoder, as: Encoder doctest Encoder test "encodes streams to csv strings" do result = Encoder.encode([~w(a b), ~w(c d)]) |> Enum.take(2) assert result == ["a,b\r\n", "c,d\r\n"] end test "allows custom separators and delimiters" do result = En...
37.829268
113
0.579626
6545e83d86553b2022fe73e13c3c9b15fac602da
47
exs
Elixir
test/test_helper.exs
jeremysquires/shipsim
cacf0b7b825a3086e1cc1676374691de3d1cb0c5
[ "MIT" ]
null
null
null
test/test_helper.exs
jeremysquires/shipsim
cacf0b7b825a3086e1cc1676374691de3d1cb0c5
[ "MIT" ]
null
null
null
test/test_helper.exs
jeremysquires/shipsim
cacf0b7b825a3086e1cc1676374691de3d1cb0c5
[ "MIT" ]
1
2019-06-04T04:49:42.000Z
2019-06-04T04:49:42.000Z
ExUnit.configure([trace: true]) ExUnit.start()
15.666667
31
0.744681
6545f01a4f6c3534dc309eec1f792c134142e0da
1,849
ex
Elixir
clients/comment_analyzer/lib/google_api/comment_analyzer/v1alpha1/model/attribute_parameters.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/comment_analyzer/lib/google_api/comment_analyzer/v1alpha1/model/attribute_parameters.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/comment_analyzer/lib/google_api/comment_analyzer/v1alpha1/model/attribute_parameters.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.557692
136
0.739319
65461456cdd1e70a3fa2ba65b4af5267ca0ecdc1
951
ex
Elixir
lib/yummy_web/schema/middleware/translate_messages.ex
MatthieuSegret/yummy-phoenix-graphql
f0b258293697b0b120ef8e8a3b3905043c998617
[ "MIT" ]
122
2017-11-24T11:28:17.000Z
2022-02-25T17:05:20.000Z
lib/yummy_web/schema/middleware/translate_messages.ex
MatthieuSegret/yummy-phoenix-graphql
f0b258293697b0b120ef8e8a3b3905043c998617
[ "MIT" ]
6
2018-01-11T22:07:44.000Z
2021-11-21T15:41:42.000Z
lib/yummy_web/schema/middleware/translate_messages.ex
MatthieuSegret/yummy-phoenix-graphql
f0b258293697b0b120ef8e8a3b3905043c998617
[ "MIT" ]
25
2018-04-01T02:43:21.000Z
2022-02-15T03:22:54.000Z
defmodule YummyWeb.Schema.Middleware.TranslateMessages do @behaviour Absinthe.Middleware def call(%{value: value} = resolution, _config) do result = do_translate_messages(value) Absinthe.Resolution.put_result(resolution, {:ok, result}) end defp do_translate_messages(%Kronky.Payload{} = payload) do ...
31.7
86
0.715037
6546ccd3a725922e2e3f6f911a7211b46102c545
1,509
exs
Elixir
test/bus_test.exs
lets-talk/ex-queue-bus-client
64de7faa0d6d3f88df6fa185d7a664404b90cab5
[ "MIT" ]
3
2019-08-03T14:01:07.000Z
2020-08-28T14:33:43.000Z
test/bus_test.exs
lets-talk/ex-queue-bus-client
64de7faa0d6d3f88df6fa185d7a664404b90cab5
[ "MIT" ]
10
2019-05-07T19:30:14.000Z
2020-03-04T19:24:14.000Z
test/bus_test.exs
lets-talk/ex-queue-bus-client
64de7faa0d6d3f88df6fa185d7a664404b90cab5
[ "MIT" ]
null
null
null
defmodule ExQueueBusClient.BusTest do use ExUnit.Case, async: false defmodule DummyBus do use ExQueueBusClient.Bus, otp_app: :ex_queue_bus_client, event_handler: ExQueueBusClient.EventHandler, tx: :sns, rx: :sqs end @settings [consumers_count: 3, sns_topic_arn: "test-topic", sqs_qu...
29.019231
91
0.643472
6546d81dca54b0f39354906916809bcbd357a8cf
9,931
ex
Elixir
lib/cldr/backend.ex
petrus-jvrensburg/cldr_locale_display
511f7bf23df96d67bda36a6c9b9bc3425c9cb1b1
[ "Apache-2.0" ]
null
null
null
lib/cldr/backend.ex
petrus-jvrensburg/cldr_locale_display
511f7bf23df96d67bda36a6c9b9bc3425c9cb1b1
[ "Apache-2.0" ]
null
null
null
lib/cldr/backend.ex
petrus-jvrensburg/cldr_locale_display
511f7bf23df96d67bda36a6c9b9bc3425c9cb1b1
[ "Apache-2.0" ]
null
null
null
defmodule Cldr.LocaleDisplay.Backend do @moduledoc false def define_locale_display_module(config) do require Cldr require Cldr.Config module = inspect(__MODULE__) backend = config.backend config = Macro.escape(config) quote location: :keep, bind_quoted: [module: module, backend: backend, ...
31.328076
147
0.602457
6546e396659e951affc82b6cdd0e675afa0942a1
2,553
exs
Elixir
config/dev.exs
adrianomota/blog
ef3b2d2ed54f038368ead8234d76c18983caa75b
[ "MIT" ]
null
null
null
config/dev.exs
adrianomota/blog
ef3b2d2ed54f038368ead8234d76c18983caa75b
[ "MIT" ]
4
2021-03-04T13:00:52.000Z
2021-03-12T12:42:09.000Z
config/dev.exs
adrianomota/blog
ef3b2d2ed54f038368ead8234d76c18983caa75b
[ "MIT" ]
null
null
null
import Config # Configure your database config :blog, Blog.Repo, username: "postgres", password: "postgres", database: "blog_dev", hostname: "localhost", show_sensitive_data_on_connection_error: true, pool_size: 10 # For development, we disable any cache and enable # debugging and code reloading. # # The ...
30.759036
86
0.690168
654702f0ef0dec4d29f804d29d6ced22de3a658a
2,646
ex
Elixir
lib/banchan/studios/studios.ex
riamaria/banchan
c4f8bd9374acaf0a8bb2c501e2ae1eb78f96579f
[ "BlueOak-1.0.0", "Apache-2.0" ]
null
null
null
lib/banchan/studios/studios.ex
riamaria/banchan
c4f8bd9374acaf0a8bb2c501e2ae1eb78f96579f
[ "BlueOak-1.0.0", "Apache-2.0" ]
null
null
null
lib/banchan/studios/studios.ex
riamaria/banchan
c4f8bd9374acaf0a8bb2c501e2ae1eb78f96579f
[ "BlueOak-1.0.0", "Apache-2.0" ]
null
null
null
defmodule Banchan.Studios do @moduledoc """ The Studios context. """ import Ecto.Query, warn: false alias Banchan.Offerings.Offering alias Banchan.Repo alias Banchan.Studios.Studio @doc """ Gets a studio by its handle. ## Examples iex> get_studio_by_handle!("foo") %Studio{} i...
20.353846
94
0.626228
65471da46f8878c3d7232b18b90f323258b6aded
7,323
ex
Elixir
lib/abi.ex
tsutsu/ethereum_abi
ce5a380abd2329796120bc5e3ef4ad6d74e53e5b
[ "MIT" ]
22
2017-11-30T23:48:52.000Z
2020-02-01T23:18:11.000Z
lib/abi.ex
tsutsu/ethereum_abi
ce5a380abd2329796120bc5e3ef4ad6d74e53e5b
[ "MIT" ]
25
2018-01-16T03:20:17.000Z
2020-10-19T16:09:48.000Z
lib/abi.ex
tsutsu/ethereum_abi
ce5a380abd2329796120bc5e3ef4ad6d74e53e5b
[ "MIT" ]
18
2018-01-15T02:25:59.000Z
2021-12-21T22:47:13.000Z
defmodule ABI do @moduledoc """ Documentation for ABI, the function interface language for Solidity. Generally, the ABI describes how to take binary Ethereum and transform it to or from types that Solidity understands. """ @doc """ Encodes the given data into the function signature or tuple signature. ...
48.177632
453
0.706541
654734c1f75f53f5dc82561faf2d0c22f7b7e752
1,021
ex
Elixir
lib/appsignal/monitor.ex
MeterSoft/appsignal-elixir
52e3505b9dc90bce0795c4753a758d40bdf41463
[ "MIT" ]
null
null
null
lib/appsignal/monitor.ex
MeterSoft/appsignal-elixir
52e3505b9dc90bce0795c4753a758d40bdf41463
[ "MIT" ]
null
null
null
lib/appsignal/monitor.ex
MeterSoft/appsignal-elixir
52e3505b9dc90bce0795c4753a758d40bdf41463
[ "MIT" ]
null
null
null
defmodule Appsignal.Monitor do @moduledoc false @deletion_delay Application.get_env(:appsignal, :deletion_delay, 5_000) use GenServer alias Appsignal.Tracer def start_link do GenServer.start_link(__MODULE__, [], name: __MODULE__) end def init(state) do {:ok, state} end def add do GenSe...
21.723404
73
0.660137
654747b0f6d6521dbeaf4b5b030b7852737dba24
341
exs
Elixir
priv/repo/seeds.exs
joakimk/exremit
6c0a5fb32208b98cc1baac11d6a7bd248a1aa3bc
[ "Unlicense", "MIT" ]
27
2016-09-21T09:11:25.000Z
2020-12-16T04:04:50.000Z
priv/repo/seeds.exs
barsoom/exremit
6c0a5fb32208b98cc1baac11d6a7bd248a1aa3bc
[ "Unlicense", "MIT" ]
2
2016-12-02T08:05:13.000Z
2020-03-27T08:07:59.000Z
priv/repo/seeds.exs
barsoom/exremit
6c0a5fb32208b98cc1baac11d6a7bd248a1aa3bc
[ "Unlicense", "MIT" ]
4
2016-09-25T09:58:17.000Z
2020-04-27T15:07:36.000Z
# Script for populating the database. You can run it as: # # mix run priv/repo/seeds.exs # # Inside the script, you can read and write to any of your # repositories directly: # # Review.Repo.insert!(%SomeModel{}) # # We recommend using the bang functions (`insert!`, `update!` # and so on) as they will fail if s...
28.416667
61
0.70088
65474ee08ab342c7e7a92bcc181f4208da6378b7
25,934
ex
Elixir
lib/surface/compiler.ex
edgarmiadzieles/surface
24d1162cc25004df9d40a11dd65fca98d7b65c64
[ "MIT" ]
null
null
null
lib/surface/compiler.ex
edgarmiadzieles/surface
24d1162cc25004df9d40a11dd65fca98d7b65c64
[ "MIT" ]
null
null
null
lib/surface/compiler.ex
edgarmiadzieles/surface
24d1162cc25004df9d40a11dd65fca98d7b65c64
[ "MIT" ]
null
null
null
defmodule Surface.Compiler do @moduledoc """ Defines a behaviour that must be implemented by all HTML/Surface node translators. This module also contains the main logic to translate Surface code. """ alias Surface.Compiler.Parser alias Surface.IOHelper alias Surface.AST alias Surface.Compiler.Helpers ...
28.751663
132
0.604805
6547654df2b710ce4fae7b76f928e9be84b48aeb
985
exs
Elixir
test/lib/code_corps_web/views/error_view_test.exs
fikape/code-corps-api
c21674b0b2a19fa26945c94268db8894420ca181
[ "MIT" ]
275
2015-06-23T00:20:51.000Z
2021-08-19T16:17:37.000Z
test/lib/code_corps_web/views/error_view_test.exs
fikape/code-corps-api
c21674b0b2a19fa26945c94268db8894420ca181
[ "MIT" ]
1,304
2015-06-26T02:11:54.000Z
2019-12-12T21:08:00.000Z
test/lib/code_corps_web/views/error_view_test.exs
fikape/code-corps-api
c21674b0b2a19fa26945c94268db8894420ca181
[ "MIT" ]
140
2016-01-01T18:19:47.000Z
2020-11-22T06:24:47.000Z
defmodule CodeCorpsWeb.ErrorViewTest do use CodeCorpsWeb.ViewCase # Bring render/3 and render_to_string/3 for testing custom views import Phoenix.View test "renders 404.json-api" do rendered_json = render(CodeCorpsWeb.ErrorView, "404.json-api", []) expected_json = %{ "errors" => [%{title: "404...
29.848485
110
0.654822
6547aa3ffa8c1da68f6ca70be91e00f5d87f03e2
448
exs
Elixir
priv/repo/migrations/20181114115657_create_machines_networks.exs
runhyve/webapp
434b074f98c1ebac657b56062c1c1a54e683dea1
[ "BSD-2-Clause" ]
12
2019-07-02T14:30:06.000Z
2022-03-12T08:22:18.000Z
priv/repo/migrations/20181114115657_create_machines_networks.exs
runhyve/webapp
434b074f98c1ebac657b56062c1c1a54e683dea1
[ "BSD-2-Clause" ]
9
2020-03-16T20:10:50.000Z
2021-06-17T17:45:44.000Z
priv/repo/migrations/20181114115657_create_machines_networks.exs
runhyve/webapp
434b074f98c1ebac657b56062c1c1a54e683dea1
[ "BSD-2-Clause" ]
null
null
null
defmodule Webapp.Repo.Migrations.CreateMachinesNetworks do use Ecto.Migration def change do create table(:machines_networks, primary_key: false) do add(:machine_id, references(:machines, on_delete: :delete_all), null: false) add(:network_id, references(:networks, on_delete: :delete_all), null: fals...
32
82
0.734375
6547f327cece889de5edfdc9ab558723ffb2423d
7,183
ex
Elixir
implementations/elixir/ockam/ockam/lib/ockam/stream/client/publisher.ex
twittner/ockam
96eadf99da42f7c35539c6e29010a657c579ccba
[ "Apache-2.0" ]
null
null
null
implementations/elixir/ockam/ockam/lib/ockam/stream/client/publisher.ex
twittner/ockam
96eadf99da42f7c35539c6e29010a657c579ccba
[ "Apache-2.0" ]
23
2021-10-12T16:43:06.000Z
2022-03-23T22:07:22.000Z
implementations/elixir/ockam/ockam/lib/ockam/stream/client/publisher.ex
twittner/ockam
96eadf99da42f7c35539c6e29010a657c579ccba
[ "Apache-2.0" ]
1
2021-12-01T19:40:11.000Z
2021-12-01T19:40:11.000Z
defmodule Ockam.Stream.Client.Publisher do @moduledoc false use Ockam.Worker use Ockam.Protocol.Mapping alias Ockam.Message alias Ockam.Protocol.Stream, as: StreamProtocol require Logger defstruct address: nil, stream_name: nil, stream_route: nil, last_message: 0, ...
27.733591
99
0.626201
6547f8ef70e44b0bd22bae50a9c75c686092bd13
2,462
ex
Elixir
test/fixtures/good_example.ex
jjcarstens/slipstream
00376311e23504a71d00c627a0399b07587192a7
[ "Apache-2.0" ]
null
null
null
test/fixtures/good_example.ex
jjcarstens/slipstream
00376311e23504a71d00c627a0399b07587192a7
[ "Apache-2.0" ]
null
null
null
test/fixtures/good_example.ex
jjcarstens/slipstream
00376311e23504a71d00c627a0399b07587192a7
[ "Apache-2.0" ]
null
null
null
defmodule Slipstream.GoodExample do @moduledoc """ An example slipstream socket client """ use Slipstream, restart: :transient @config Application.compile_env!(:slipstream, __MODULE__) def start_link(opts) do Slipstream.start_link(__MODULE__, opts) end @impl Slipstream def init(test_proc) do ...
21.787611
78
0.668156
65480f7359d40942917566b14fa3003dab3ca27b
878
ex
Elixir
lib/phoenix_events_live/liveevents/event.ex
D-D-ing/phoenix-events-live
b68bdfdac1afc241574a0a8ffce25cf43bb71abe
[ "MIT" ]
null
null
null
lib/phoenix_events_live/liveevents/event.ex
D-D-ing/phoenix-events-live
b68bdfdac1afc241574a0a8ffce25cf43bb71abe
[ "MIT" ]
null
null
null
lib/phoenix_events_live/liveevents/event.ex
D-D-ing/phoenix-events-live
b68bdfdac1afc241574a0a8ffce25cf43bb71abe
[ "MIT" ]
null
null
null
defmodule PhoenixEventsLive.LiveEvents.LiveEvent do use Ecto.Schema import Ecto.Changeset schema "live_events" do field :access_token, :string field :description, :string field :name, :string has_many :interactions, PhoenixEventsLive.LiveEvents.Interaction timestamps() end @doc false ...
26.606061
84
0.732346