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
3f957eab34fc7c42a26848334c68328ac5cec203
144
exs
Elixir
test/pretty_boi_test.exs
dark-elixir/pretty_boi
d88c25855ebec3dab442b35b89dae200a979f3dd
[ "Apache-2.0" ]
null
null
null
test/pretty_boi_test.exs
dark-elixir/pretty_boi
d88c25855ebec3dab442b35b89dae200a979f3dd
[ "Apache-2.0" ]
null
null
null
test/pretty_boi_test.exs
dark-elixir/pretty_boi
d88c25855ebec3dab442b35b89dae200a979f3dd
[ "Apache-2.0" ]
null
null
null
defmodule PrettyBoiTest do use ExUnit.Case doctest PrettyBoi test "greets the world" do assert PrettyBoi.hello() == :world end end
16
38
0.722222
3f958d06dca8bae325d66858c25252a7fcaa9973
6,094
ex
Elixir
apps/snitch_core/lib/core/domain/shipment.ex
Acrecio/avia
54d264fc179b5b5f17d174854bdca063e1d935e9
[ "MIT" ]
456
2018-09-20T02:40:59.000Z
2022-03-07T08:53:48.000Z
apps/snitch_core/lib/core/domain/shipment.ex
Acrecio/avia
54d264fc179b5b5f17d174854bdca063e1d935e9
[ "MIT" ]
273
2018-09-19T06:43:43.000Z
2021-08-07T12:58:26.000Z
apps/snitch_core/lib/core/domain/shipment.ex
Acrecio/avia
54d264fc179b5b5f17d174854bdca063e1d935e9
[ "MIT" ]
122
2018-09-26T16:32:46.000Z
2022-03-13T11:44:19.000Z
defmodule Snitch.Domain.Shipment do # TODO: migrate to the Package schema. @moduledoc """ The coordinator, packer, estimator and prioritizer -- all in one. The package struct: ``` %{ hash: TBD items: [ %{ variant: %Product{}, line_item: %LineItem{}, product_id: 0, ...
29.019048
89
0.601575
3f95c957ef8403689f2daa00db6c73132145d16d
4,334
ex
Elixir
lib/elixir/lib/range.ex
kenichi/elixir
8c27da88c70623cbe516d5310c885943395a82a2
[ "Apache-2.0" ]
1
2019-08-13T23:22:33.000Z
2019-08-13T23:22:33.000Z
lib/elixir/lib/range.ex
kenichi/elixir
8c27da88c70623cbe516d5310c885943395a82a2
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/range.ex
kenichi/elixir
8c27da88c70623cbe516d5310c885943395a82a2
[ "Apache-2.0" ]
null
null
null
defmodule Range do @moduledoc """ Defines a range. A range represents a sequence of one or many, ascending or descending, consecutive integers. Ranges can be either increasing (`first <= last`) or decreasing (`first > last`). Ranges are also always inclusive. A range is represented internally as a st...
26.266667
93
0.620674
3f95f0f698aec9b658c399a4f6ccd3ede7e21b18
2,611
ex
Elixir
lib/evaluation/graph/graph_creation.ex
DriesDeBackker/bquarp-reactivity
28c28fba7c60dcf0a4bee6cbcb2c67545dc5122c
[ "MIT" ]
1
2019-07-18T12:44:08.000Z
2019-07-18T12:44:08.000Z
lib/evaluation/graph/graph_creation.ex
DriesDeBackker/bquarp-reactivity
28c28fba7c60dcf0a4bee6cbcb2c67545dc5122c
[ "MIT" ]
null
null
null
lib/evaluation/graph/graph_creation.ex
DriesDeBackker/bquarp-reactivity
28c28fba7c60dcf0a4bee6cbcb2c67545dc5122c
[ "MIT" ]
null
null
null
defmodule Evaluation.Graph.GraphCreation do @moduledoc false alias Evaluation.Graph def generateGraph(params) do Graph.new(Keyword.get(params, :hosts)) |> generateVars(Keyword.get(params, :nb_of_vars)) |> generateSignalLevels(params) end defp generateVars(g, 0), do: g defp generateVars(g, n) when is_inte...
30.717647
94
0.675603
3f9646c4261ba2f190d04d217352abb4c43f2c11
2,095
ex
Elixir
lib/ex_aws/operation/json.ex
appunite/ex_aws
cfc56d89e51b691bc20cac0c9347d84fd3e06663
[ "MIT" ]
643
2017-10-17T12:55:11.000Z
2022-03-24T15:23:37.000Z
lib/ex_aws/operation/json.ex
appunite/ex_aws
cfc56d89e51b691bc20cac0c9347d84fd3e06663
[ "MIT" ]
338
2017-10-17T11:12:21.000Z
2022-03-20T09:48:23.000Z
lib/ex_aws/operation/json.ex
appunite/ex_aws
cfc56d89e51b691bc20cac0c9347d84fd3e06663
[ "MIT" ]
319
2017-10-17T17:39:44.000Z
2022-03-29T13:35:34.000Z
defmodule ExAws.Operation.JSON do @moduledoc """ Datastructure representing an operation on a JSON based AWS service. This module is generally not used directly, but rather is constructed by one of the relevant AWS services. These include: - DynamoDB - Kinesis - Lambda (Rest style) - ElasticTranscod...
25.240964
89
0.646301
3f964abb46ca3eb6f2aad2c0ce0687ce354e9ccb
1,986
ex
Elixir
clients/document_ai/lib/google_api/document_ai/v1beta3/model/google_cloud_documentai_uiv1beta3_update_labeler_pool_operation_metadata.ex
mcrumm/elixir-google-api
544f22797cec52b3a23dfb6e39117f0018448610
[ "Apache-2.0" ]
null
null
null
clients/document_ai/lib/google_api/document_ai/v1beta3/model/google_cloud_documentai_uiv1beta3_update_labeler_pool_operation_metadata.ex
mcrumm/elixir-google-api
544f22797cec52b3a23dfb6e39117f0018448610
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/document_ai/lib/google_api/document_ai/v1beta3/model/google_cloud_documentai_uiv1beta3_update_labeler_pool_operation_metadata.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.842105
195
0.778953
3f966cd0013093f8672ee08b5b5d3bf97a97ebfb
190
ex
Elixir
lib/correios/frete.ex
prodis/correios-frete-elixir
baba966a0fd3eca6596d2f84a991398c87d6ec74
[ "Apache-2.0" ]
3
2020-07-23T08:43:39.000Z
2020-07-23T14:26:01.000Z
lib/correios/frete.ex
prodis/correios-frete-elixir
baba966a0fd3eca6596d2f84a991398c87d6ec74
[ "Apache-2.0" ]
null
null
null
lib/correios/frete.ex
prodis/correios-frete-elixir
baba966a0fd3eca6596d2f84a991398c87d6ec74
[ "Apache-2.0" ]
null
null
null
defmodule Correios.Frete do @moduledoc """ WIP """ @doc """ Hello world. ## Examples iex> Correios.Frete.hello() :world """ def hello do :world end end
10
33
0.547368
3f966d96d1088c0287a3500131d6b6908fab13ac
311
exs
Elixir
test/fixtures/system_v1/mix.exs
opencollective/nerves
81f5d30de283e77f3720a87fa1435619f0da12de
[ "Apache-2.0" ]
1
2019-06-12T17:34:10.000Z
2019-06-12T17:34:10.000Z
test/fixtures/system_v1/mix.exs
opencollective/nerves
81f5d30de283e77f3720a87fa1435619f0da12de
[ "Apache-2.0" ]
null
null
null
test/fixtures/system_v1/mix.exs
opencollective/nerves
81f5d30de283e77f3720a87fa1435619f0da12de
[ "Apache-2.0" ]
null
null
null
defmodule SystemV1.Fixture.Mixfile do use Mix.Project @version Path.join(__DIR__, "VERSION") |> File.read! |> String.trim def project do [app: :system_v1, version: @version, deps: deps()] end defp deps do [{:toolchain_v1, path: "../toolchain_v1"}] end end
17.277778
46
0.598071
3f966f2eba9f28211c590fb0af944d202f0e0bef
249
ex
Elixir
test/support/users.ex
jeroenvisser101/absinthe_relay_keyset_connection
61a2b251a74ba5cbd0a8382372901af49abb74f9
[ "MIT" ]
4
2021-11-25T08:33:42.000Z
2022-02-22T21:17:49.000Z
test/support/users.ex
jeroenvisser101/absinthe_relay_keyset_connection
61a2b251a74ba5cbd0a8382372901af49abb74f9
[ "MIT" ]
1
2022-03-11T15:20:18.000Z
2022-03-11T15:53:45.000Z
test/support/users.ex
jeroenvisser101/absinthe_relay_keyset_connection
61a2b251a74ba5cbd0a8382372901af49abb74f9
[ "MIT" ]
2
2022-03-01T17:35:17.000Z
2022-03-04T19:58:33.000Z
defmodule AbsintheRelayKeysetConnection.Users do @moduledoc """ Query functions for tests. """ import Ecto.Query alias AbsintheRelayKeysetConnection.{Repo, User} def all do from(u in User, order_by: :id) |> Repo.all() end end
19.153846
50
0.702811
3f967a9be074750dc71236cb4872fcd738364c40
2,424
ex
Elixir
fade/lib/diagnostics/probes/unroutable_message_probe.ex
ahives/Fade
7094b6703933e41a1400b1053764335e32928b0a
[ "Apache-2.0" ]
null
null
null
fade/lib/diagnostics/probes/unroutable_message_probe.ex
ahives/Fade
7094b6703933e41a1400b1053764335e32928b0a
[ "Apache-2.0" ]
null
null
null
fade/lib/diagnostics/probes/unroutable_message_probe.ex
ahives/Fade
7094b6703933e41a1400b1053764335e32928b0a
[ "Apache-2.0" ]
null
null
null
defmodule Fade.Diagnostic.Probes.UnroutableMessageProbe do alias Fade.Diagnostic.Config.Types.DiagnosticsConfig alias Fade.Diagnostic.DiagnosticProbe alias Fade.Diagnostic.Types.{ DiagnosticProbeMetadata, ProbeData, ProbeResult } alias Fade.Diagnostic.Types.KnowledgeBaseArticle alias Fade.Diag...
25.787234
103
0.67203
3f967d12b5a7eea3177d02b8de9793a231212629
110
exs
Elixir
language-practice/Elixir/elixir-pdx/pang/test/pang_test.exs
cjschneider2/practice_code
5d9b793eccca39262fb452fa1f3f53e6b54bc7aa
[ "Unlicense" ]
null
null
null
language-practice/Elixir/elixir-pdx/pang/test/pang_test.exs
cjschneider2/practice_code
5d9b793eccca39262fb452fa1f3f53e6b54bc7aa
[ "Unlicense" ]
null
null
null
language-practice/Elixir/elixir-pdx/pang/test/pang_test.exs
cjschneider2/practice_code
5d9b793eccca39262fb452fa1f3f53e6b54bc7aa
[ "Unlicense" ]
null
null
null
defmodule PangTest do use ExUnit.Case doctest Pang test "the truth" do assert 1 + 1 == 2 end end
12.222222
21
0.654545
3f96887f74a4c7f28f8889f3faf804484b092769
4,871
exs
Elixir
config/runtime.exs
bikebrigade/dispatch
eb622fe4f6dab7c917d678d3d7a322a01f97da44
[ "Apache-2.0" ]
28
2021-10-11T01:53:53.000Z
2022-03-24T17:45:55.000Z
config/runtime.exs
bikebrigade/dispatch
eb622fe4f6dab7c917d678d3d7a322a01f97da44
[ "Apache-2.0" ]
20
2021-10-21T08:12:31.000Z
2022-03-31T13:35:53.000Z
config/runtime.exs
bikebrigade/dispatch
eb622fe4f6dab7c917d678d3d7a322a01f97da44
[ "Apache-2.0" ]
null
null
null
import Config # Set Endpoint and repo configs if we're in production case config_env() do :dev -> if System.get_env("CODESPACES") == "true" do config :bike_brigade, BikeBrigade.Repo, hostname: "postgres" end :prod -> app_env = case System.get_env("APP_ENV") do "production" -> :prod...
30.44375
98
0.629029
3f9690f3cac5ed321bd9c05f2fdd2a559cb1083b
2,226
ex
Elixir
clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/handler.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/handler.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/handler.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...
42
191
0.744834
3f96aa6f8fe4e089e2105cd47f021153726452c5
148
exs
Elixir
config/test.exs
cogini/acme_client
2285dd1d528d26a10fec6d9ddc91a448f8b392bd
[ "Apache-2.0" ]
null
null
null
config/test.exs
cogini/acme_client
2285dd1d528d26a10fec6d9ddc91a448f8b392bd
[ "Apache-2.0" ]
null
null
null
config/test.exs
cogini/acme_client
2285dd1d528d26a10fec6d9ddc91a448f8b392bd
[ "Apache-2.0" ]
null
null
null
use Mix.Config # config :logger, level: :debug # config :logger, # level: :debug, # backends: [:console], # compile_time_purge_level: :debug
18.5
36
0.675676
3f96e2eac4b3858a306ac5fa77d1ba51253201c1
4,139
ex
Elixir
lib/small_url/links.ex
AlexJuca/small-url
25f4828ac3566a435b15e6b9581e1e1e508d6650
[ "Apache-2.0" ]
7
2021-06-28T14:43:10.000Z
2021-09-21T21:00:30.000Z
lib/small_url/links.ex
AlexJuca/small-url
25f4828ac3566a435b15e6b9581e1e1e508d6650
[ "Apache-2.0" ]
2
2021-06-30T21:43:06.000Z
2021-07-01T16:40:10.000Z
lib/small_url/links.ex
AlexJuca/small-url
25f4828ac3566a435b15e6b9581e1e1e508d6650
[ "Apache-2.0" ]
null
null
null
defmodule SmallUrl.Links do @moduledoc """ The Links context. """ import Ecto.Query, warn: false alias SmallUrl.Repo alias SmallUrl.Links.ShortLinks alias SmallUrl.Links.Click @doc """ Returns the list of shortlinks. ## Examples iex> list_shortlinks() [%ShortLinks{}, ...] """ d...
18.728507
83
0.607876
3f97013c7fea37b3a07a444531d22ae8e8cf9d6b
1,099
exs
Elixir
mix.exs
skunkwerks/wax_demo
e0c562ea168654d2475f70cba1ef29e74fc0dd24
[ "Apache-2.0" ]
null
null
null
mix.exs
skunkwerks/wax_demo
e0c562ea168654d2475f70cba1ef29e74fc0dd24
[ "Apache-2.0" ]
null
null
null
mix.exs
skunkwerks/wax_demo
e0c562ea168654d2475f70cba1ef29e74fc0dd24
[ "Apache-2.0" ]
null
null
null
defmodule WaxDemo.MixProject do use Mix.Project def project do [ app: :wax_demo, version: "0.1.0", elixir: "~> 1.12", elixirc_paths: elixirc_paths(Mix.env()), compilers: [:phoenix, :gettext] ++ Mix.compilers(), start_permanent: Mix.env() == :prod, deps: deps() ] ...
23.891304
57
0.568699
3f97024084aa614994c5fc4d904d469ea2815140
924
ex
Elixir
lib/challenge_gov/messages/message_context.ex
smartlogic/Challenge_gov
b4203d1fcfb742dd17ecfadb9e9c56ad836d4254
[ "CC0-1.0" ]
null
null
null
lib/challenge_gov/messages/message_context.ex
smartlogic/Challenge_gov
b4203d1fcfb742dd17ecfadb9e9c56ad836d4254
[ "CC0-1.0" ]
null
null
null
lib/challenge_gov/messages/message_context.ex
smartlogic/Challenge_gov
b4203d1fcfb742dd17ecfadb9e9c56ad836d4254
[ "CC0-1.0" ]
null
null
null
defmodule ChallengeGov.Messages.MessageContext do @moduledoc """ MessageContext schema """ use Ecto.Schema import Ecto.Changeset alias ChallengeGov.Messages.Message alias ChallengeGov.Messages.MessageContextStatus @valid_contexts [ "challenge", "submission" ] # @valid_audiences [ # "...
19.659574
59
0.66342
3f970ada0b4d9bad99d86a9574430a5c848ba364
486
ex
Elixir
install/packaging/armoreconfig/configs/debian/emacsen-remove.ex
GridProtectionAlliance/ARMORE
0e5a73b0343873114b897365976bd956bd9948bb
[ "MIT" ]
8
2016-08-31T20:50:57.000Z
2021-10-04T01:48:37.000Z
install/packaging/armoreconfig/configs/debian/emacsen-remove.ex
GridProtectionAlliance/ARMORE
0e5a73b0343873114b897365976bd956bd9948bb
[ "MIT" ]
null
null
null
install/packaging/armoreconfig/configs/debian/emacsen-remove.ex
GridProtectionAlliance/ARMORE
0e5a73b0343873114b897365976bd956bd9948bb
[ "MIT" ]
6
2016-12-26T05:03:16.000Z
2020-04-08T04:30:24.000Z
#!/bin/sh -e # /usr/lib/emacsen-common/packages/remove/armoreconfig FLAVOR=$1 PACKAGE=armoreconfig if [ ${FLAVOR} != emacs ]; then if test -x /usr/sbin/install-info-altdir; then echo remove/${PACKAGE}: removing Info links for ${FLAVOR} install-info-altdir --quiet --remove --dirname=${FLAVOR} /usr/...
30.375
101
0.679012
3f972e400e9e86a0dab7ad739d471f595e3b0a7d
3,808
ex
Elixir
apps/ewallet/lib/ewallet/web/orchestrator.ex
AndonMitev/EWallet
898cde38933d6f134734528b3e594eedf5fa50f3
[ "Apache-2.0" ]
322
2018-02-28T07:38:44.000Z
2020-05-27T23:09:55.000Z
apps/ewallet/lib/ewallet/web/orchestrator.ex
AndonMitev/EWallet
898cde38933d6f134734528b3e594eedf5fa50f3
[ "Apache-2.0" ]
643
2018-02-28T12:05:20.000Z
2020-05-22T08:34:38.000Z
apps/ewallet/lib/ewallet/web/orchestrator.ex
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 ...
30.95935
99
0.675945
3f976b90a8758e016e92eb14579290e9ae11c1fb
78,080
ex
Elixir
lib/elixir/lib/module.ex
tnascimento/elixir
9a4d10e702f33d2fa47718cde05375b506b4a3d6
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/module.ex
tnascimento/elixir
9a4d10e702f33d2fa47718cde05375b506b4a3d6
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/module.ex
tnascimento/elixir
9a4d10e702f33d2fa47718cde05375b506b4a3d6
[ "Apache-2.0" ]
null
null
null
defmodule Module do @moduledoc ~S''' Provides functions to deal with modules during compilation time. It allows a developer to dynamically add, delete and register attributes, attach documentation and so forth. After a module is compiled, using many of the functions in this module will raise errors, since...
32
121
0.658914
3f9794dfdbbac07d3c23e1fcf892c1aa2e2aa3e6
13,100
ex
Elixir
lib/mojito/base.ex
Vaysman/mojito
abfbedceea04bbdd66a1bbe20d3cb22b10642039
[ "MIT" ]
367
2019-02-25T23:50:14.000Z
2022-02-11T23:05:16.000Z
lib/mojito/base.ex
Vaysman/mojito
abfbedceea04bbdd66a1bbe20d3cb22b10642039
[ "MIT" ]
72
2019-02-26T00:30:49.000Z
2022-02-03T22:24:04.000Z
lib/mojito/base.ex
Vaysman/mojito
abfbedceea04bbdd66a1bbe20d3cb22b10642039
[ "MIT" ]
36
2019-03-18T15:34:18.000Z
2021-08-31T21:25:18.000Z
defmodule Mojito.Base do @moduledoc ~S""" Provides a default implementation for Mojito functions. This module is meant to be `use`'d in custom modules in order to wrap the functionalities provided by Mojiti. For example, this is very useful to build custom API clients around Mojito: defmodule CustomAP...
34.564644
108
0.544351
3f97a93d8e797b68d479abb223cbd7cedfd72013
417
exs
Elixir
test/exred_node_redis_out_test.exs
exredorg/exred_node_redis_out
5f82bf35bbd7b4dbd57a0ff4ab4a6f472f0d9726
[ "MIT" ]
null
null
null
test/exred_node_redis_out_test.exs
exredorg/exred_node_redis_out
5f82bf35bbd7b4dbd57a0ff4ab4a6f472f0d9726
[ "MIT" ]
null
null
null
test/exred_node_redis_out_test.exs
exredorg/exred_node_redis_out
5f82bf35bbd7b4dbd57a0ff4ab4a6f472f0d9726
[ "MIT" ]
null
null
null
defmodule Exred.Node.RedisOutTest do use ExUnit.Case doctest Exred.Node.RedisOut use Exred.NodeTest, module: Exred.Node.RedisOut setup_all do start_node(Exred.Node.RedisDaemon) start_node() end test "SET hello", context do Exred.Node.RedisOut.add_out_node(context.pid, self) msg = %{payloa...
20.85
55
0.70024
3f97b4de5d5c9e1331576debb1d7dc1eca0a892b
158
ex
Elixir
testData/org/elixir_lang/parser_definition/at_bracket_operation_parsing_test_case/EmptyBlock.ex
ArtemGordinsky/intellij-elixir
e2d9b4dfc65651b293d499043edeaad606cf5652
[ "Apache-2.0" ]
null
null
null
testData/org/elixir_lang/parser_definition/at_bracket_operation_parsing_test_case/EmptyBlock.ex
ArtemGordinsky/intellij-elixir
e2d9b4dfc65651b293d499043edeaad606cf5652
[ "Apache-2.0" ]
null
null
null
testData/org/elixir_lang/parser_definition/at_bracket_operation_parsing_test_case/EmptyBlock.ex
ArtemGordinsky/intellij-elixir
e2d9b4dfc65651b293d499043edeaad606cf5652
[ "Apache-2.0" ]
null
null
null
@(;)[key: value] @(;) [key: value] @(;)[()] @(;) [()] @(;)[matched_expression] @(;) [matched_expression] @(;)[matched_expression,] @(;) [matched_expression,]
17.555556
26
0.556962
3f97cc041649f3866302150e79490f0d2a23f4da
1,869
ex
Elixir
test/support/conn_case.ex
byhbt/linkir
8ac72cd0da2696b628f6981595e75164adfc5945
[ "MIT" ]
null
null
null
test/support/conn_case.ex
byhbt/linkir
8ac72cd0da2696b628f6981595e75164adfc5945
[ "MIT" ]
null
null
null
test/support/conn_case.ex
byhbt/linkir
8ac72cd0da2696b628f6981595e75164adfc5945
[ "MIT" ]
null
null
null
defmodule LinkirWeb.ConnCase do @moduledoc """ This module defines the test case to be used by tests that require setting up a connection. Such tests rely on `Phoenix.ConnTest` and also import other functionality to make it easier to build common data structures and query the data layer. Finally, if the...
27.086957
62
0.71054
3f97dc068db0a04c2704411c51ae60b764212b48
6,613
ex
Elixir
lib/ash_policy_authorizer/policy.ex
ash-project/ash_policy_authorizer
096607194d19d2fc7d776ce46d4f07400d648dbb
[ "MIT" ]
3
2020-10-06T06:36:53.000Z
2021-09-22T13:31:53.000Z
lib/ash_policy_authorizer/policy.ex
ash-project/ash_policy_authorizer
096607194d19d2fc7d776ce46d4f07400d648dbb
[ "MIT" ]
19
2020-06-09T05:16:13.000Z
2021-04-20T18:27:43.000Z
lib/ash_policy_authorizer/policy.ex
ash-project/ash_policy_authorizer
096607194d19d2fc7d776ce46d4f07400d648dbb
[ "MIT" ]
4
2020-08-27T19:12:02.000Z
2021-12-19T22:50:35.000Z
defmodule AshPolicyAuthorizer.Policy do @moduledoc false # For now we just write to `checks` and move them to `policies` # on build, when we support nested policies we can change that. defstruct [ :condition, :policies, :bypass?, :checks, :description, :access_type ] @type t :: %__M...
24.135036
96
0.61122
3f97fcfa6a7f33b3d2cca75711874a871ae1e418
11,599
ex
Elixir
lib/exexif/decode.ex
szTheory/exexif
f901585dff9653139f69b08733d33c27737e0040
[ "MIT" ]
null
null
null
lib/exexif/decode.ex
szTheory/exexif
f901585dff9653139f69b08733d33c27737e0040
[ "MIT" ]
null
null
null
lib/exexif/decode.ex
szTheory/exexif
f901585dff9653139f69b08733d33c27737e0040
[ "MIT" ]
null
null
null
defmodule Exexif.Decode do @moduledoc """ Decode tags and (in some cases) their parameters """ def tag(:tiff, 0x0100, value), do: { :image_width, value } def tag(:tiff, 0x0101, value), do: { :image_height, value } def tag(:tiff, 0x010d, value), do: { :document_name, value } def tag(:tiff, 0x010e, valu...
44.783784
103
0.681869
3f980226f2fd033628f722996153bb196a1006fc
7,065
ex
Elixir
lib/cte/adapter/memory.ex
50kudos/closure_table
4c1a8e321318dc2dcb2d178b9dbc58431e0211e4
[ "Apache-2.0" ]
null
null
null
lib/cte/adapter/memory.ex
50kudos/closure_table
4c1a8e321318dc2dcb2d178b9dbc58431e0211e4
[ "Apache-2.0" ]
null
null
null
lib/cte/adapter/memory.ex
50kudos/closure_table
4c1a8e321318dc2dcb2d178b9dbc58431e0211e4
[ "Apache-2.0" ]
null
null
null
defmodule CTE.Adapter.Memory do @moduledoc """ Basic implementation of the CTE, using the memory for persisting the models. Adapter provided as a convenient way of using CTE in tests or during the development """ use CTE.Adapter @doc false def descendants(pid, ancestor, opts) do GenServer.call(pid, {:d...
27.705882
163
0.620382
3f9810238364f53e2c758189297fd5e076b17808
548
ex
Elixir
lib/timber/cache.ex
axelson/timber-elixir
def9de8ebbb64a6f6d5dd85f8958d8b24f8d6c31
[ "0BSD" ]
244
2016-10-10T15:30:32.000Z
2021-08-11T08:45:53.000Z
lib/timber/cache.ex
axelson/timber-elixir
def9de8ebbb64a6f6d5dd85f8958d8b24f8d6c31
[ "0BSD" ]
242
2016-10-10T19:34:44.000Z
2020-11-20T18:56:43.000Z
lib/timber/cache.ex
axelson/timber-elixir
def9de8ebbb64a6f6d5dd85f8958d8b24f8d6c31
[ "0BSD" ]
35
2016-12-04T07:33:04.000Z
2020-06-17T20:22:11.000Z
defmodule Timber.Cache do @moduledoc false @doc """ Creates the ets table and inserts initial values. """ def init do update_hostname() :ok end @doc """ Fetches the cached system hostname. """ def hostname do Application.get_env(:timber, :hostname) end @doc """ Updates the cache...
17.677419
60
0.669708
3f98285021f24129d3b0fbd7ee53a0323f5242b0
1,055
ex
Elixir
lib/faker/uuid.ex
joshillian/faker
eeede9d7c35c543dcf6abe72dc476e755c80415b
[ "MIT" ]
540
2015-01-05T16:31:49.000Z
2019-09-25T00:40:27.000Z
lib/faker/uuid.ex
joshillian/faker
eeede9d7c35c543dcf6abe72dc476e755c80415b
[ "MIT" ]
172
2015-01-06T03:55:17.000Z
2019-10-03T12:58:02.000Z
lib/faker/uuid.ex
joshillian/faker
eeede9d7c35c543dcf6abe72dc476e755c80415b
[ "MIT" ]
163
2015-01-05T21:24:54.000Z
2019-10-03T07:59:42.000Z
defmodule Faker.UUID do @moduledoc """ Functions for generating UUID's. """ @uuid_v4 4 @variant10 2 @doc """ Generate a random v4 UUID. ## Examples iex> Faker.UUID.v4() "d6d98b88-c866-4496-9bd4-de7ba48d0f52" iex> Faker.UUID.v4() "29fa7bf9-0728-4272-a7bc-5b7c964f332d" i...
22.446809
68
0.550711
3f9850a75c4bfff3fe39363963f7ed5afb4ea686
18,983
exs
Elixir
test/acceptance/html/gfm_list_test.exs
feld/earmark
149a174e8955de2c6833d4497e5d445dceea63dc
[ "Apache-1.1" ]
null
null
null
test/acceptance/html/gfm_list_test.exs
feld/earmark
149a174e8955de2c6833d4497e5d445dceea63dc
[ "Apache-1.1" ]
null
null
null
test/acceptance/html/gfm_list_test.exs
feld/earmark
149a174e8955de2c6833d4497e5d445dceea63dc
[ "Apache-1.1" ]
null
null
null
defmodule Acceptance.Html.GfmListTest do use Support.AcceptanceTestCase import Support.Html1Helpers describe "Lists and ListItems according to https://github.com/github/cmark-gfm/tree/master/test" do test "List items #231" do markdown = "A paragraph\nwith two lines.\n\n indented code\n\n> A block q...
40.911638
190
0.562503
3f989d414b991d89acac07d7eb3e1eb0063a65f5
1,706
ex
Elixir
clients/compute/lib/google_api/compute/v1/model/guest_attributes_entry.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/compute/lib/google_api/compute/v1/model/guest_attributes_entry.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/compute/lib/google_api/compute/v1/model/guest_attributes_entry.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.188679
99
0.709261
3f98a349bf4b0ab67de636f42b8f870587a8bd1d
740
exs
Elixir
demo/mix.exs
PJUllrich/event-sourcing-with-elixir
7f70e6bc49d9d93f1d86513a1f358e41e07b8304
[ "MIT" ]
19
2020-10-08T14:05:30.000Z
2022-03-18T08:43:11.000Z
demo/mix.exs
PJUllrich/event-sourcing-with-elixir
7f70e6bc49d9d93f1d86513a1f358e41e07b8304
[ "MIT" ]
null
null
null
demo/mix.exs
PJUllrich/event-sourcing-with-elixir
7f70e6bc49d9d93f1d86513a1f358e41e07b8304
[ "MIT" ]
3
2021-02-19T08:31:58.000Z
2021-12-09T05:28:55.000Z
defmodule Demo.MixProject do use Mix.Project def project do [ app: :event_store_example, version: "0.1.0", elixir: "~> 1.10", start_permanent: Mix.env() == :prod, aliases: aliases(), deps: deps() ] end # Run "mix help compile.app" to learn about applications. def ...
19.473684
70
0.57027
3f98b24f9ff5f9e39085082e576175ce7b0ccfe5
409
ex
Elixir
priv/templates/phx.gen.theme/api_controller.ex
yithanglee/damien_phoenix
c21fa17afc9f550c337b255ac88890630d4bbb75
[ "MIT" ]
null
null
null
priv/templates/phx.gen.theme/api_controller.ex
yithanglee/damien_phoenix
c21fa17afc9f550c337b255ac88890630d4bbb75
[ "MIT" ]
null
null
null
priv/templates/phx.gen.theme/api_controller.ex
yithanglee/damien_phoenix
c21fa17afc9f550c337b255ac88890630d4bbb75
[ "MIT" ]
null
null
null
defmodule <%= project.name %>Web.ApiController do use <%= project.name %>Web, :controller def webhook(conn, params) do final = case params["scope"] do "gen_inputs" -> Utility.test_module(params["module"]) _ -> %{status: "received"} end conn |> put_res...
21.526316
50
0.589242
3f98c62cafbd317fdfab497eb638a8b32b314767
215
exs
Elixir
phoenix/test/mehr_schulferien_web/controllers/page_controller_test.exs
komlanvi/www.mehr-schulferien.de
fe74772f2cc8ce430e04adf6e66023971456ce57
[ "MIT" ]
null
null
null
phoenix/test/mehr_schulferien_web/controllers/page_controller_test.exs
komlanvi/www.mehr-schulferien.de
fe74772f2cc8ce430e04adf6e66023971456ce57
[ "MIT" ]
null
null
null
phoenix/test/mehr_schulferien_web/controllers/page_controller_test.exs
komlanvi/www.mehr-schulferien.de
fe74772f2cc8ce430e04adf6e66023971456ce57
[ "MIT" ]
null
null
null
defmodule MehrSchulferienWeb.PageControllerTest do use MehrSchulferienWeb.ConnCase test "GET /", %{conn: conn} do conn = get conn, "/" assert html_response(conn, 200) =~ "Welcome to Phoenix!" end end
23.888889
60
0.706977
3f98d9ed3213de8d796989ff4488cd7005125180
2,484
ex
Elixir
clients/analytics_admin/lib/google_api/analytics_admin/v1alpha/model/google_analytics_admin_v1alpha_firebase_link.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/analytics_admin/lib/google_api/analytics_admin/v1alpha/model/google_analytics_admin_v1alpha_firebase_link.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/analytics_admin/lib/google_api/analytics_admin/v1alpha/model/google_analytics_admin_v1alpha_firebase_link.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...
40.721311
394
0.733494
3f98df730c76a1d807bbc391e935e228d166113f
742
ex
Elixir
lib/jit_jerky_web/live/live_helpers.ex
Wobblesday/JIT-Jerky
b60c52ee76cf9ae4836ee99f3deccda72fccc656
[ "Apache-2.0" ]
null
null
null
lib/jit_jerky_web/live/live_helpers.ex
Wobblesday/JIT-Jerky
b60c52ee76cf9ae4836ee99f3deccda72fccc656
[ "Apache-2.0" ]
null
null
null
lib/jit_jerky_web/live/live_helpers.ex
Wobblesday/JIT-Jerky
b60c52ee76cf9ae4836ee99f3deccda72fccc656
[ "Apache-2.0" ]
null
null
null
defmodule JITJerkyWeb.LiveHelpers do import Phoenix.LiveView.Helpers @doc """ Renders a component inside the `JITJerkyWeb.ModalComponent` component. The rendered modal receives a `:return_to` option to properly update the URL when the modal is closed. ## Examples <%= live_modal @socket, JITJerkyWe...
30.916667
80
0.699461
3f9907c2914907846e09f7f9d81f011208f7b1fc
2,150
ex
Elixir
lib/ex_twilio/config.ex
BenMorganIO/ex_twilio
c528d005277b28cf4804d466e8b75994140fb02a
[ "MIT" ]
null
null
null
lib/ex_twilio/config.ex
BenMorganIO/ex_twilio
c528d005277b28cf4804d466e8b75994140fb02a
[ "MIT" ]
null
null
null
lib/ex_twilio/config.ex
BenMorganIO/ex_twilio
c528d005277b28cf4804d466e8b75994140fb02a
[ "MIT" ]
null
null
null
defmodule ExTwilio.Config do @moduledoc """ Stores configuration variables used to communicate with Twilio's API. All settings also accept `{:system, "ENV_VAR_NAME"}` to read their values from environment variables at runtime. """ @doc """ Returns the Twilio Account SID. Set it in `mix.exs`: conf...
31.15942
89
0.699535
3f99530902cb42773e8830d6ba0703d7bc900635
229
ex
Elixir
lib/tamiya_item_crawler.ex
Hafizuddin-Darman/crawly_sample-tamiya_price_crawler
697a6a1cbd57c3bf2d21de72bc1a8ccf7f7be052
[ "MIT" ]
null
null
null
lib/tamiya_item_crawler.ex
Hafizuddin-Darman/crawly_sample-tamiya_price_crawler
697a6a1cbd57c3bf2d21de72bc1a8ccf7f7be052
[ "MIT" ]
null
null
null
lib/tamiya_item_crawler.ex
Hafizuddin-Darman/crawly_sample-tamiya_price_crawler
697a6a1cbd57c3bf2d21de72bc1a8ccf7f7be052
[ "MIT" ]
null
null
null
defmodule TamiyaItemCrawler do @moduledoc """ Documentation for TamiyaItemCrawler. """ @doc """ Hello world. ## Examples iex> TamiyaItemCrawler.hello() :world """ def hello do :world end end
12.052632
38
0.620087
3f99ae7beb81dab29c3ca21e7834140224ec0110
238
ex
Elixir
test/support/function_record.ex
olafura/beam_to_ex_ast
5451d189105c3a4b52aedbf4fbc4f0beca3b9b80
[ "Apache-2.0" ]
16
2016-02-12T15:15:58.000Z
2021-08-24T21:48:34.000Z
test/support/function_record.ex
olafura/beam_to_ex_ast
5451d189105c3a4b52aedbf4fbc4f0beca3b9b80
[ "Apache-2.0" ]
1
2016-02-17T04:58:38.000Z
2016-02-17T04:58:38.000Z
test/support/function_record.ex
olafura/beam_to_ex_ast
5451d189105c3a4b52aedbf4fbc4f0beca3b9b80
[ "Apache-2.0" ]
2
2016-02-17T03:21:23.000Z
2016-03-08T09:23:27.000Z
defmodule TestFunctionRecord do require Record Record.defrecord(:user, name: "Olaf", age: 36) @type user :: record(:user, name: String.t(), age: integer) def hello() do u1 = user() IO.puts("Hello " <> u1.name) end end
19.833333
61
0.638655
3f99e92e3d5b6c5edb2052e7511276d3f912a4bc
2,127
exs
Elixir
test/tablespoon/transport/fake_btd_test.exs
paulswartz/tablespoon
3637ee22cce16755fa50461058a079fa18d33b1b
[ "MIT" ]
2
2020-04-03T14:39:23.000Z
2020-12-17T23:12:58.000Z
test/tablespoon/transport/fake_btd_test.exs
mbta/tablespoon
4303ad8498f3e619b081ffbd6892156e0214b61e
[ "MIT" ]
107
2019-09-16T12:52:17.000Z
2022-02-28T10:25:15.000Z
test/tablespoon/transport/fake_btd_test.exs
mbta/tablespoon
4303ad8498f3e619b081ffbd6892156e0214b61e
[ "MIT" ]
null
null
null
defmodule Tablespoon.Transport.FakeBtdTest do @moduledoc false use ExUnit.Case, async: true alias Tablespoon.Protocol.NTCIP1211Extended, as: NTCIP alias Tablespoon.Transport.FakeBtd ntcip_message = %NTCIP.PriorityRequest{ id: 1, vehicle_id: "1", vehicle_class: 2, vehicle_class_level: 0, ...
28.36
97
0.61448
3f99f61b242624c528a80495a7d2b1e28e83381b
1,960
ex
Elixir
lib/zappa/block_helpers/each.ex
fireproofsocks/zappa
d89d983b73652e761861bd7c2c5d03a45fc4badd
[ "Apache-2.0" ]
1
2021-08-23T21:48:14.000Z
2021-08-23T21:48:14.000Z
lib/zappa/block_helpers/each.ex
fireproofsocks/zappa
d89d983b73652e761861bd7c2c5d03a45fc4badd
[ "Apache-2.0" ]
null
null
null
lib/zappa/block_helpers/each.ex
fireproofsocks/zappa
d89d983b73652e761861bd7c2c5d03a45fc4badd
[ "Apache-2.0" ]
null
null
null
defmodule Zappa.BlockHelpers.Each do @moduledoc false # # This helper must include options. # See https://elixirforum.com/t/complex-loop-in-eex/27698/2 alias Zappa.{OptionParser, Tag} # The name of the index variable should match up with the index helper. @index_var "index___helper" def parse(%Tag{a...
34.385965
109
0.571939
3f9a185851be8f700ff6b6f6cb565130efeff405
498
ex
Elixir
lib/tentacat/teams/repositories.ex
supersimple/tentacat
b7df1fbb3e8e9dee50cdb5c28291f406fd589a06
[ "MIT" ]
null
null
null
lib/tentacat/teams/repositories.ex
supersimple/tentacat
b7df1fbb3e8e9dee50cdb5c28291f406fd589a06
[ "MIT" ]
null
null
null
lib/tentacat/teams/repositories.ex
supersimple/tentacat
b7df1fbb3e8e9dee50cdb5c28291f406fd589a06
[ "MIT" ]
null
null
null
defmodule Tentacat.Teams.Repositories do import Tentacat, [:except, :delete, 2] alias Tentacat.Client @doc """ List all team repositories ## Example Tentacat.Teams.Repositories.list 210840 Tentacat.Teams.Repositories.list client, 210840 More info at: https://developer.github.com/v3/orgs/team...
24.9
75
0.694779
3f9a1a4162f074ad2d107ec2a237ac63bbbfc3d0
2,284
ex
Elixir
lib/rummage_ecto/schema/sort.ex
acolin/rummage_ecto
69b83579437c9d88de6b1951b6ee831424cfaec3
[ "MIT" ]
99
2018-08-19T10:31:42.000Z
2021-10-31T03:36:53.000Z
lib/rummage_ecto/schema/sort.ex
acolin/rummage_ecto
69b83579437c9d88de6b1951b6ee831424cfaec3
[ "MIT" ]
43
2017-03-14T02:00:41.000Z
2018-07-05T16:28:39.000Z
lib/rummage_ecto/schema/sort.ex
acolin/rummage_ecto
69b83579437c9d88de6b1951b6ee831424cfaec3
[ "MIT" ]
26
2018-08-23T06:13:42.000Z
2021-10-19T06:57:18.000Z
defmodule Rummage.Ecto.Schema.Sort do @moduledoc """ Usage: ```elixir defmodule MyApp.Rummage.MyModel.Sort do use Rummage.Schema.Sort, default_name: "inserted_at", handlers: [ category_name: %{field: :name, assoc: [inner: :category], ci: true}, name: %{ci: true}, price:...
23.070707
76
0.553853
3f9a20f1bef4852ab17b0ecad08a787f5790025a
1,522
exs
Elixir
test/coinfloor/coinfloor_test.exs
HPJM/crypto_apis
fe8b191a7b95ec3d066bf1881277c3f920df1457
[ "MIT" ]
null
null
null
test/coinfloor/coinfloor_test.exs
HPJM/crypto_apis
fe8b191a7b95ec3d066bf1881277c3f920df1457
[ "MIT" ]
null
null
null
test/coinfloor/coinfloor_test.exs
HPJM/crypto_apis
fe8b191a7b95ec3d066bf1881277c3f920df1457
[ "MIT" ]
null
null
null
defmodule CryptoApis.CoinfloorTest do use ExUnit.Case import Mock alias CryptoApis.Coinfloor import CryptoApis.Fixtures describe "order_book" do test "order_book/1 responds ok" do with_mock HTTPoison, get: fn url, _headers, options -> {:ok, successful_response(url: url, options: o...
32.382979
98
0.640604
3f9a57cba42270659c2cd80e53762881b1de33b7
696
ex
Elixir
web/gettext.ex
kensupermen/javex
f7774e83f64980f3c1eb4b5701f46d835edd76da
[ "MIT" ]
null
null
null
web/gettext.ex
kensupermen/javex
f7774e83f64980f3c1eb4b5701f46d835edd76da
[ "MIT" ]
null
null
null
web/gettext.ex
kensupermen/javex
f7774e83f64980f3c1eb4b5701f46d835edd76da
[ "MIT" ]
null
null
null
defmodule Javex.Gettext do @moduledoc """ A module providing Internationalization with a gettext-based API. By using [Gettext](https://hexdocs.pm/gettext), your module gains a set of macros for translations, for example: import Javex.Gettext # Simple translation gettext "Here is the string ...
27.84
72
0.675287
3f9a9e8489d8df962c2940dff2d593985afa759c
1,982
ex
Elixir
lib/conduit/blog/aggregates/comment.ex
rudyyazdi/conduit
8defa60962482fb81f5093ea5d58b71a160db3c4
[ "MIT" ]
298
2017-06-05T14:28:23.000Z
2022-03-30T16:53:44.000Z
lib/conduit/blog/aggregates/comment.ex
rudyyazdi/conduit
8defa60962482fb81f5093ea5d58b71a160db3c4
[ "MIT" ]
28
2017-07-21T01:06:47.000Z
2021-03-07T12:32:56.000Z
lib/conduit/blog/aggregates/comment.ex
rudyyazdi/conduit
8defa60962482fb81f5093ea5d58b71a160db3c4
[ "MIT" ]
77
2017-08-14T20:12:03.000Z
2021-12-08T22:24:59.000Z
defmodule Conduit.Blog.Aggregates.Comment do @behaviour Commanded.Aggregates.AggregateLifespan defstruct uuid: nil, body: nil, article_uuid: nil, author_uuid: nil, deleted?: false alias Conduit.Blog.Aggregates.Comment alias Conduit.Blog.Commands.{ CommentOn...
23.879518
98
0.641271
3f9ad114dd022a7f88f3916a2f253a942bacc9c6
1,673
exs
Elixir
config/dev.exs
VictorMenegazzo/rocketpay
101073e2dabf7c332eddb6d5dee66c9cf3440a97
[ "MIT" ]
5
2021-02-23T01:25:33.000Z
2021-02-24T20:01:16.000Z
config/dev.exs
VictorMenegazzo/rocketpay
101073e2dabf7c332eddb6d5dee66c9cf3440a97
[ "MIT" ]
null
null
null
config/dev.exs
VictorMenegazzo/rocketpay
101073e2dabf7c332eddb6d5dee66c9cf3440a97
[ "MIT" ]
1
2021-03-03T19:16:23.000Z
2021-03-03T19:16:23.000Z
use Mix.Config # Configure your database config :rocketpay, Rocketpay.Repo, username: "postgres", password: "docker", database: "rocketpay_dev", hostname: "localhost", port: 5433, show_sensitive_data_on_connection_error: true, pool_size: 10 # For development, we disable any cache and enable # debugging ...
28.355932
68
0.72624
3f9af4163a9e6852ab8b66fd37ae0a945482d310
743
ex
Elixir
lib/juvet/slack_api/rtm.ex
juvet/juvet
5590ff7b1e5f411195d0becfe8b5740deb977cc5
[ "MIT" ]
19
2018-07-14T16:54:11.000Z
2022-03-01T09:02:19.000Z
lib/juvet/slack_api/rtm.ex
juvet/juvet
5590ff7b1e5f411195d0becfe8b5740deb977cc5
[ "MIT" ]
31
2018-06-29T15:30:40.000Z
2022-02-26T01:07:12.000Z
lib/juvet/slack_api/rtm.ex
juvet/juvet
5590ff7b1e5f411195d0becfe8b5740deb977cc5
[ "MIT" ]
null
null
null
defmodule Juvet.SlackAPI.RTM do @moduledoc """ A wrapper around the rtm methods on the Slack API. """ alias Juvet.SlackAPI @doc """ Requests a new connection via websockets for the Slack API and retrieves a websocket address as well as some information about the team and the user that requested the co...
21.228571
63
0.628533
3f9b03f7947189385c29ac3a5f83223139518d2c
391
ex
Elixir
lib/crypto_bot.ex
amrfaissal/crypto_bot
cc6983230c9388572778198f21d426142ed5d793
[ "Unlicense" ]
1
2019-01-07T22:45:54.000Z
2019-01-07T22:45:54.000Z
lib/crypto_bot.ex
amrfaissal/crypto_bot
cc6983230c9388572778198f21d426142ed5d793
[ "Unlicense" ]
null
null
null
lib/crypto_bot.ex
amrfaissal/crypto_bot
cc6983230c9388572778198f21d426142ed5d793
[ "Unlicense" ]
null
null
null
defmodule CryptoBot do @moduledoc """ Slack Bot to get real-time pricing of coins and currency pairs. """ @application :crypto_bot def provider do Application.get_env(@application, :crypto)[:provider] end def base_url do Application.get_env(@application, :crypto)[:base_url] end def api_key...
19.55
65
0.713555
3f9b1ad6531792dc09ab78738e368e94cf7e6bce
3,667
exs
Elixir
src/test/harald/hci/events/le_meta_test.exs
keeplabs/harald
1c273a47e224032996a744b79c0525cfa967e878
[ "MIT" ]
59
2019-02-16T00:09:58.000Z
2020-03-29T23:37:36.000Z
src/test/harald/hci/events/le_meta_test.exs
keeplabs/harald
1c273a47e224032996a744b79c0525cfa967e878
[ "MIT" ]
19
2019-02-15T22:41:43.000Z
2020-02-15T19:20:57.000Z
src/test/harald/hci/events/le_meta_test.exs
keeplabs/harald
1c273a47e224032996a744b79c0525cfa967e878
[ "MIT" ]
9
2020-05-07T00:02:36.000Z
2021-09-17T18:17:46.000Z
defmodule Harald.HCI.Events.LEMetaTest do use Harald.HaraldCase alias Harald.HCI.Events.{LEMeta, LEMeta.ConnectionComplete} test "decode/1" do sub_event_code = ConnectionComplete.sub_event_code() sub_event_module = ConnectionComplete status = 0 connection_handle = 1 connection_handle_rfu = 2 ...
29.336
87
0.716389
3f9b97b4a95b4864fed5baa2f991fb3d677c60a5
913
exs
Elixir
config/config.exs
kevinastone/absinthe_tutorial
867060f1d379056773af6039aac8f2ec580cb974
[ "MIT" ]
69
2017-11-15T17:26:57.000Z
2022-01-25T16:37:40.000Z
config/config.exs
kevinastone/absinthe_tutorial
867060f1d379056773af6039aac8f2ec580cb974
[ "MIT" ]
24
2020-01-27T20:44:40.000Z
2020-10-29T05:48:31.000Z
config/config.exs
kevinastone/absinthe_tutorial
867060f1d379056773af6039aac8f2ec580cb974
[ "MIT" ]
35
2017-11-12T22:04:10.000Z
2021-07-22T18:00:39.000Z
# This file is responsible for configuring your application # and its dependencies with the aid of the Mix.Config module. # # This configuration file is loaded before any dependency and # is restricted to this project. use Mix.Config # General application configuration config :blog, ecto_repos: [Blog.Repo] # Config...
32.607143
86
0.756846
3f9bce07b80d4691cfef0ab93175c5af30c16694
4,025
ex
Elixir
examples/erl_records.ex
philosophers-stone/transform
1eb2de475c5734aa09d1e04ce75104bb074c78d9
[ "Apache-2.0" ]
29
2015-11-23T21:33:02.000Z
2022-02-16T22:36:12.000Z
examples/erl_records.ex
philosophers-stone/transform
1eb2de475c5734aa09d1e04ce75104bb074c78d9
[ "Apache-2.0" ]
1
2015-11-26T16:26:35.000Z
2015-11-27T18:23:08.000Z
examples/erl_records.ex
philosophers-stone/transform
1eb2de475c5734aa09d1e04ce75104bb074c78d9
[ "Apache-2.0" ]
3
2015-11-26T04:19:29.000Z
2019-08-19T16:42:32.000Z
defmodule ErlRecords do @moduledoc """ Helper functions for converting nested Erlang Record structures to Keyword lists. iex> data = :inet_res.resolve( 'google.com', :in, :a ) iex> fields = Record.extract_all(from_lib: "kernel/src/inet_dns.hrl") iex> ErlRecords.to_keyword(data, fields) {:ok, [header: [id:...
47.916667
184
0.618882
3f9bfcf955abaf8e947c1831ba28fad050ce3f3e
1,422
ex
Elixir
lib/crawly/data_storage/data_storage_worker.ex
harlantwood/crawly
d57a1b97e4a909d20f03f063a27157c8209367c4
[ "Apache-2.0" ]
null
null
null
lib/crawly/data_storage/data_storage_worker.ex
harlantwood/crawly
d57a1b97e4a909d20f03f063a27157c8209367c4
[ "Apache-2.0" ]
null
null
null
lib/crawly/data_storage/data_storage_worker.ex
harlantwood/crawly
d57a1b97e4a909d20f03f063a27157c8209367c4
[ "Apache-2.0" ]
null
null
null
defmodule Crawly.DataStorage.Worker do @moduledoc """ A worker process which stores items for individual spiders. All items are pre-processed by item_pipelines. All pipelines are using the state of this process for their internal needs (persistancy). The DataStorage.Worker will not write anything to a fil...
26.333333
76
0.69339
3f9c13675ae3ce3fbe79b4ccffa5a5e924cc1f4f
179
exs
Elixir
priv/repo/migrations/20200507193500_add_user_roles.exs
fossabot/ve_collector
dd003f9d1e332b5495756a483098ad8bbd75adf0
[ "MIT" ]
null
null
null
priv/repo/migrations/20200507193500_add_user_roles.exs
fossabot/ve_collector
dd003f9d1e332b5495756a483098ad8bbd75adf0
[ "MIT" ]
2
2020-06-02T08:28:31.000Z
2021-03-10T17:07:09.000Z
priv/repo/migrations/20200507193500_add_user_roles.exs
fossabot/ve_collector
dd003f9d1e332b5495756a483098ad8bbd75adf0
[ "MIT" ]
1
2020-06-02T08:06:48.000Z
2020-06-02T08:06:48.000Z
defmodule VeCollector.Repo.Migrations.AddUserRoles do use Ecto.Migration def change do alter table(:users) do add :role, :string, default: "user" end end end
17.9
53
0.698324
3f9c353f696bc2711ecb644850d8cd244cd86962
2,710
ex
Elixir
clients/life_sciences/lib/google_api/life_sciences/v2beta/model/metadata.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/life_sciences/lib/google_api/life_sciences/v2beta/model/metadata.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/life_sciences/lib/google_api/life_sciences/v2beta/model/metadata.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.709677
181
0.713284
3f9c4a36344073849575054ec9fadde0da02f2f9
1,500
ex
Elixir
server/cardinal/lib/cardinal/schemas/user_anime.ex
llucasreis/cardinal
714d89d37ef0fa305d78622ff7228864bf382035
[ "MIT" ]
null
null
null
server/cardinal/lib/cardinal/schemas/user_anime.ex
llucasreis/cardinal
714d89d37ef0fa305d78622ff7228864bf382035
[ "MIT" ]
null
null
null
server/cardinal/lib/cardinal/schemas/user_anime.ex
llucasreis/cardinal
714d89d37ef0fa305d78622ff7228864bf382035
[ "MIT" ]
null
null
null
defmodule Cardinal.Schemas.UserAnime do use Ecto.Schema import Ecto.Changeset alias Cardinal.Schemas.{Anime, User} @primary_key {:id, Ecto.UUID, autogenerate: true} @foreign_key_type Ecto.UUID @watch_status_enum %{ plan_to_watch: "PLAN_TO_WATCH", watching: "WATCHING", on_hold: "ON_HOLD", d...
26.315789
85
0.710667
3f9c5d226e778df1c49c149df60a38d1c73a4afe
503
ex
Elixir
lib/chat_api_web/views/customer_view.ex
rlanga/papercups
358ca46c344908585cd0214a0de96e5676120c68
[ "MIT" ]
2
2020-09-21T07:27:13.000Z
2021-12-20T13:23:56.000Z
lib/chat_api_web/views/customer_view.ex
rlanga/papercups
358ca46c344908585cd0214a0de96e5676120c68
[ "MIT" ]
null
null
null
lib/chat_api_web/views/customer_view.ex
rlanga/papercups
358ca46c344908585cd0214a0de96e5676120c68
[ "MIT" ]
1
2021-08-29T14:10:18.000Z
2021-08-29T14:10:18.000Z
defmodule ChatApiWeb.CustomerView do use ChatApiWeb, :view alias ChatApiWeb.CustomerView def render("index.json", %{customers: customers}) do %{data: render_many(customers, CustomerView, "customer.json")} end def render("show.json", %{customer: customer}) do %{data: render_one(customer, CustomerView...
29.588235
89
0.713718
3f9c64171fdb20de036fed682db559e8a8dbfc7b
2,933
ex
Elixir
lib/pgex/error.ex
karlseguin/pgex
2921f350c9f8c8f72cc75c7ede85728ea5dba1bf
[ "MIT" ]
null
null
null
lib/pgex/error.ex
karlseguin/pgex
2921f350c9f8c8f72cc75c7ede85728ea5dba1bf
[ "MIT" ]
null
null
null
lib/pgex/error.ex
karlseguin/pgex
2921f350c9f8c8f72cc75c7ede85728ea5dba1bf
[ "MIT" ]
null
null
null
defmodule PgEx.Error do @moduledoc """ Used to build an PgEx.Error based on various error conditions. There should be no need to call these functions from application code. """ alias PgEx.Parser defstruct [ # The error message received by the server. Nil in the case of a non-server- # generated err...
27.411215
98
0.622571
3f9cccd11a9068b3c1dde37e8ac99f2cea874922
429
ex
Elixir
daniel/prog_elix/apdx2/simple/lib/simple.ex
jdashton/glowing-succotash
44580c2d4cb300e33156d42e358e8a055948a079
[ "MIT" ]
null
null
null
daniel/prog_elix/apdx2/simple/lib/simple.ex
jdashton/glowing-succotash
44580c2d4cb300e33156d42e358e8a055948a079
[ "MIT" ]
1
2020-02-26T14:55:23.000Z
2020-02-26T14:55:23.000Z
daniel/prog_elix/apdx2/simple/lib/simple.ex
jdashton/glowing-succotash
44580c2d4cb300e33156d42e358e8a055948a079
[ "MIT" ]
null
null
null
defmodule Simple do @type atom_list :: list(atom) @spec count_atoms(atom_list) :: non_neg_integer def count_atoms(list) do length list end end defmodule Client do @spec other_function() :: non_neg_integer def other_function do Simple.count_atoms [:a, :b, :c] end end defmodule NoSpecs do def le...
17.16
49
0.692308
3f9d1ba06ba80621aeed73215076c837f666076a
951
ex
Elixir
test/support/transport.ex
cjfreeze/Flux
ea1eb29932db806c06fcd6cdcc625df04b83f8bc
[ "MIT" ]
1
2021-10-05T02:22:22.000Z
2021-10-05T02:22:22.000Z
test/support/transport.ex
cjfreeze/Flux
ea1eb29932db806c06fcd6cdcc625df04b83f8bc
[ "MIT" ]
null
null
null
test/support/transport.ex
cjfreeze/Flux
ea1eb29932db806c06fcd6cdcc625df04b83f8bc
[ "MIT" ]
null
null
null
defmodule Flux.Support.Transport do @behaviour Flux.Pool.Transport def listen(_, _), do: {:ok, :fake_socket} def accept(:fake_socket, _), do: Agent.start_link(fn -> "" end) def acknowlege(_, _), do: :ok def send(_, "socket ded"), do: {:error, :econnrefused} def send(_, _), do: :ok def send_file(_, "socket...
27.171429
65
0.611987
3f9d41cb9ecdb56286fe6d3fcce1da2cbe78262f
1,300
ex
Elixir
apps/csv2sql/lib/csv2sql/job_queue_server.ex
Arp-G/csv2sql
21c7310d768afa38282708120af07bb66c8c3f42
[ "MIT" ]
26
2020-09-13T13:54:59.000Z
2022-03-30T08:12:55.000Z
apps/csv2sql/lib/csv2sql/job_queue_server.ex
Arp-G/csv2sql
21c7310d768afa38282708120af07bb66c8c3f42
[ "MIT" ]
11
2020-10-18T14:27:16.000Z
2022-03-19T09:11:31.000Z
apps/csv2sql/lib/csv2sql/job_queue_server.ex
Arp-G/csv2sql
21c7310d768afa38282708120af07bb66c8c3f42
[ "MIT" ]
1
2021-12-22T14:10:16.000Z
2021-12-22T14:10:16.000Z
defmodule Csv2sql.JobQueueServer do use GenServer def start_link(_) do GenServer.start_link(__MODULE__, :no_args, name: __MODULE__) end def init(_) do {:ok, []} end def add_data_chunk(file, data_chunk) do GenServer.cast(__MODULE__, {:add_new_data_chunk, file, data_chunk}) end def get_wor...
21.666667
72
0.653077
3f9d685c0880ec751653f00ead8498aa5923ff19
555
ex
Elixir
lib/webapp_web/views/changeset_view.ex
runhyve/webapp
434b074f98c1ebac657b56062c1c1a54e683dea1
[ "BSD-2-Clause" ]
12
2019-07-02T14:30:06.000Z
2022-03-12T08:22:18.000Z
lib/webapp_web/views/changeset_view.ex
runhyve/webapp
434b074f98c1ebac657b56062c1c1a54e683dea1
[ "BSD-2-Clause" ]
9
2020-03-16T20:10:50.000Z
2021-06-17T17:45:44.000Z
lib/webapp_web/views/changeset_view.ex
runhyve/webapp
434b074f98c1ebac657b56062c1c1a54e683dea1
[ "BSD-2-Clause" ]
null
null
null
defmodule WebappWeb.ChangesetView do use WebappWeb, :view @doc """ Traverses and translates changeset errors. See `Ecto.Changeset.traverse_errors/2` and `WebappWeb.ErrorHelpers.translate_error/1` for more details. """ def translate_errors(changeset) do Ecto.Changeset.traverse_errors(changeset, &tran...
27.75
65
0.736937
3f9d7a2568dd53908574bac4fd4b9eeea40e5e73
2,221
ex
Elixir
clients/firebase/lib/google_api/firebase/v1beta1/model/firebase_app_info.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/firebase/lib/google_api/firebase/v1beta1/model/firebase_app_info.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/firebase/lib/google_api/firebase/v1beta1/model/firebase_app_info.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.822581
127
0.695182
3f9d7fe2481a06d30f191242989be2724ef960a3
2,037
ex
Elixir
lib/exotus/plug/post.ex
elixir-depot/exotus
6441ccb4312a182cffa9fd6042c1497b523f1c62
[ "Apache-2.0" ]
null
null
null
lib/exotus/plug/post.ex
elixir-depot/exotus
6441ccb4312a182cffa9fd6042c1497b523f1c62
[ "Apache-2.0" ]
null
null
null
lib/exotus/plug/post.ex
elixir-depot/exotus
6441ccb4312a182cffa9fd6042c1497b523f1c62
[ "Apache-2.0" ]
null
null
null
defmodule Exotus.Plug.Post do @moduledoc false use Plug.Router plug :fetch_length plug :match plug :dispatch match _ do {:ok, file} = Exotus.Upload.start_link(%{ id: "abc", content_length: conn.assigns.length, metadata: metadata(conn) }) with %{halted: false} =...
24.841463
86
0.567992
3f9d9176ec65c0a356cf379209890dd27b294eb7
341
exs
Elixir
priv/repo/migrations/20180625123051_create_items.exs
artjimlop/loki
4ac5f7b4313564971f8dd4213a2022698600786a
[ "Apache-2.0" ]
null
null
null
priv/repo/migrations/20180625123051_create_items.exs
artjimlop/loki
4ac5f7b4313564971f8dd4213a2022698600786a
[ "Apache-2.0" ]
null
null
null
priv/repo/migrations/20180625123051_create_items.exs
artjimlop/loki
4ac5f7b4313564971f8dd4213a2022698600786a
[ "Apache-2.0" ]
null
null
null
defmodule Loki.Repo.Migrations.CreateItems do use Ecto.Migration def change do create table(:items, primary_key: false) do add(:id, :uuid, primary_key: true) add(:title, :string) add(:content, :string) add(:user_id, references(:users, on_delete: :nothing, type: :uuid)) timestamps...
22.733333
73
0.653959
3f9da5ececc0c23c4b53e62a59cb3770595bbde3
1,128
ex
Elixir
lib/changelog/buffer/buffer.ex
joebew42/changelog.com
da4ec68d15f3a2b4b6c29033443d7e7afe814d18
[ "MIT" ]
1
2018-01-22T20:07:10.000Z
2018-01-22T20:07:10.000Z
lib/changelog/buffer/buffer.ex
joebew42/changelog.com
da4ec68d15f3a2b4b6c29033443d7e7afe814d18
[ "MIT" ]
null
null
null
lib/changelog/buffer/buffer.ex
joebew42/changelog.com
da4ec68d15f3a2b4b6c29033443d7e7afe814d18
[ "MIT" ]
null
null
null
defmodule Changelog.Buffer do alias Changelog.NewsItem alias Changelog.Buffer.{Client, Content} @changelog ~w(4f3ad7c8512f7ef962000004 506b005149bbd8223400006b 5226807fe2965a1f3100001c) @jsparty ~w(5734d7fc1b14578733224a70 506b005149bbd8223400006b 5226807fe2965a1f3100001c) @gotime ~w(5734d7fc1b145787332...
36.387097
91
0.718972
3f9daadd45edf25b8be0d9ddbf6d0b7d1aa4b935
383
ex
Elixir
lib/hologram/compiler/transformers/less_than_operator_transformer.ex
gregjohnsonsaltaire/hologram
aa8e9ea0d599def864c263cc37cc8ee31f02ac4a
[ "MIT" ]
40
2022-01-19T20:27:36.000Z
2022-03-31T18:17:41.000Z
lib/hologram/compiler/transformers/less_than_operator_transformer.ex
gregjohnsonsaltaire/hologram
aa8e9ea0d599def864c263cc37cc8ee31f02ac4a
[ "MIT" ]
42
2022-02-03T22:52:43.000Z
2022-03-26T20:57:32.000Z
lib/hologram/compiler/transformers/less_than_operator_transformer.ex
gregjohnsonsaltaire/hologram
aa8e9ea0d599def864c263cc37cc8ee31f02ac4a
[ "MIT" ]
3
2022-02-10T04:00:37.000Z
2022-03-08T22:07:45.000Z
defmodule Hologram.Compiler.LessThanOperatorTransformer do alias Hologram.Compiler.Context alias Hologram.Compiler.Transformer alias Hologram.Compiler.IR.LessThanOperator def transform({:<, _, [left, right]}, %Context{} = context) do %LessThanOperator{ left: Transformer.transform(left, context), ...
29.461538
64
0.744125
3f9de6ff522e33635bf91f2b6bb124b599d065a1
1,515
exs
Elixir
apps/tanx_web/config/dev.exs
4eek/tanx
32750c15966d6272db9d96fa620fb277a61520e4
[ "MIT" ]
112
2016-05-10T17:17:08.000Z
2022-01-25T22:41:29.000Z
apps/tanx_web/config/dev.exs
4eek/tanx
32750c15966d6272db9d96fa620fb277a61520e4
[ "MIT" ]
3
2016-05-10T04:39:02.000Z
2019-07-19T12:50:07.000Z
apps/tanx_web/config/dev.exs
4eek/tanx
32750c15966d6272db9d96fa620fb277a61520e4
[ "MIT" ]
22
2016-05-17T01:51:51.000Z
2022-03-15T03:21:02.000Z
use Mix.Config # For development, we disable any cache and enable # debugging and code reloading. # # The watchers configuration can be used to run external # watchers to your application. For example, we use it # with brunch.io to recompile .js and .css sources. config :tanx_web, TanxWeb.Endpoint, http: [port: Syst...
30.3
170
0.662706
3f9df439cc895e1432e61704c60d4191cdf30030
24
ex
Elixir
testData/org/elixir_lang/parser_definition/string_line_parsing_test_case/Interpolation.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/string_line_parsing_test_case/Interpolation.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/string_line_parsing_test_case/Interpolation.ex
keyno63/intellij-elixir
4033e319992c53ddd42a683ee7123a97b5e34f02
[ "Apache-2.0" ]
145
2015-01-15T11:37:16.000Z
2021-12-22T05:51:02.000Z
"The answer is #{0x2A}"
12
23
0.625
3f9e2f4a372e643059ca5288c136b6904606c2e5
78
exs
Elixir
test/my_blog_web/views/page_view_test.exs
bechanh5/final-nabo
bfa5d57b1a8a4f647151f10442ffa1069cd76fdb
[ "MIT" ]
1
2018-09-08T16:04:47.000Z
2018-09-08T16:04:47.000Z
test/my_blog_web/views/page_view_test.exs
bechanh5/final-nabo
bfa5d57b1a8a4f647151f10442ffa1069cd76fdb
[ "MIT" ]
1
2018-09-08T20:04:46.000Z
2018-09-08T20:04:46.000Z
test/my_blog_web/views/page_view_test.exs
bechanh5/final-nabo
bfa5d57b1a8a4f647151f10442ffa1069cd76fdb
[ "MIT" ]
2
2017-11-13T21:15:57.000Z
2018-09-08T16:10:22.000Z
defmodule MyBlogWeb.PageViewTest do use MyBlogWeb.ConnCase, async: true end
19.5
37
0.820513
3f9e3d3b98e0ee609d5c5290dc056937cac7ff10
695
ex
Elixir
src/turtlebot2_src/src/orocos-bayesian-filtering/orocos_bfl/debian/preinst.ex
alexoterno/turtlebot2_with_head
ac714f77379dd0f47ddb76d83896fdabee269a03
[ "MIT" ]
null
null
null
src/turtlebot2_src/src/orocos-bayesian-filtering/orocos_bfl/debian/preinst.ex
alexoterno/turtlebot2_with_head
ac714f77379dd0f47ddb76d83896fdabee269a03
[ "MIT" ]
null
null
null
src/turtlebot2_src/src/orocos-bayesian-filtering/orocos_bfl/debian/preinst.ex
alexoterno/turtlebot2_with_head
ac714f77379dd0f47ddb76d83896fdabee269a03
[ "MIT" ]
null
null
null
#!/bin/sh # preinst script for orocos-bfl # # see: dh_installdeb(1) set -e # summary of how this script can be called: # * <new-preinst> `install' # * <new-preinst> `install' <old-version> # * <new-preinst> `upgrade' <old-version> # * <old-preinst> `abort-upgrade' <new-version> # for detai...
18.289474
63
0.625899
3f9e4642583019d0e5ac7b91bfc5446c549419ad
1,251
exs
Elixir
Chapter08/vocial-demo-chapter-8/test/vocial_web/channels/polls_channel_test.exs
PacktPublishing/Phoenix-Web-Development
a071392abe2a459be1896580446b006126c393bf
[ "MIT" ]
10
2018-05-13T14:53:05.000Z
2021-11-08T13:10:44.000Z
Chapter09/vocial-demo-chapter-9/test/vocial_web/channels/polls_channel_test.exs
PacktPublishing/Phoenix-Web-Development
a071392abe2a459be1896580446b006126c393bf
[ "MIT" ]
null
null
null
Chapter09/vocial-demo-chapter-9/test/vocial_web/channels/polls_channel_test.exs
PacktPublishing/Phoenix-Web-Development
a071392abe2a459be1896580446b006126c393bf
[ "MIT" ]
2
2019-04-23T10:54:33.000Z
2019-04-27T15:47:07.000Z
defmodule VocialWeb.PollChannelTest do use VocialWeb.ChannelCase alias VocialWeb.PollsChannel setup do {:ok, user} = Vocial.Accounts.create_user(%{ username: "test", email: "test@test.com", password: "test", password_confirmation: "test" }) {:ok, poll} = Vocial.Votes.create_p...
30.512195
78
0.615508
3f9e5c9f12fd4f4c8751b1f2499a584f2b4891be
166
ex
Elixir
processes/lib/processes.ex
pascal-p/elixir-etudes
097937783f33ce19af0b61e1c331482226d1fd96
[ "BSD-2-Clause" ]
null
null
null
processes/lib/processes.ex
pascal-p/elixir-etudes
097937783f33ce19af0b61e1c331482226d1fd96
[ "BSD-2-Clause" ]
null
null
null
processes/lib/processes.ex
pascal-p/elixir-etudes
097937783f33ce19af0b61e1c331482226d1fd96
[ "BSD-2-Clause" ]
null
null
null
defmodule Processes do require Game require Cards require Players # call Game, which calls Cards and Players ... def launch do Game.init end end
12.769231
48
0.692771
3f9e7f4802966c423cddcb9fa6c5c521f9f1ec46
2,474
ex
Elixir
lib/coherence/plugs/authentication/credential_store/session.ex
caironoleto/coherence
a9974b30686bbc1922c58803dda6448579c8d9ca
[ "MIT" ]
null
null
null
lib/coherence/plugs/authentication/credential_store/session.ex
caironoleto/coherence
a9974b30686bbc1922c58803dda6448579c8d9ca
[ "MIT" ]
null
null
null
lib/coherence/plugs/authentication/credential_store/session.ex
caironoleto/coherence
a9974b30686bbc1922c58803dda6448579c8d9ca
[ "MIT" ]
null
null
null
defmodule Coherence.CredentialStore.Session do @moduledoc """ Stores current credential information. Uses an Server to save logged in credentials. Note: If you restart the phoenix server, this information is lost, requiring the user to log in again. If you would like to preserve login status across serve...
25.770833
79
0.691188
3f9ec83256dcb7b659fc8b5027caac736a39aba8
2,115
exs
Elixir
test/phoenix_test.exs
luc-tielen/plug_ets_cache
0de6aa8e58f6b4cc99b9365375bed918d1abdf9f
[ "MIT" ]
null
null
null
test/phoenix_test.exs
luc-tielen/plug_ets_cache
0de6aa8e58f6b4cc99b9365375bed918d1abdf9f
[ "MIT" ]
null
null
null
test/phoenix_test.exs
luc-tielen/plug_ets_cache
0de6aa8e58f6b4cc99b9365375bed918d1abdf9f
[ "MIT" ]
null
null
null
if Code.ensure_loaded?(Phoenix.Controller) do defmodule FakeController do use Phoenix.Controller use PlugEtsCache.Phoenix plug(:put_layout, false) def index(conn, _params) do render(conn, "index.txt", %{value: "cache"}) |> cache_response end def index_with_ttl(conn, _params) do ...
33.571429
95
0.675177
3f9ed66de57ac252452191b2d569b1e1ded7b776
1,141
ex
Elixir
lib/diode_client/random.ex
diodechain/diode_client_ex
0aec3aa7a2e3448cccfc255b4d4e8d2cbf475c7f
[ "Apache-2.0" ]
null
null
null
lib/diode_client/random.ex
diodechain/diode_client_ex
0aec3aa7a2e3448cccfc255b4d4e8d2cbf475c7f
[ "Apache-2.0" ]
null
null
null
lib/diode_client/random.ex
diodechain/diode_client_ex
0aec3aa7a2e3448cccfc255b4d4e8d2cbf475c7f
[ "Apache-2.0" ]
null
null
null
defmodule DiodeClient.Random do @moduledoc """ Random provides random aliases for the range of machine types uint8-uint64, int8-int64 as well as additional aliases uint8h-uint64h generating random numbers starting at the lower types range end. """ def uint8(), do: random(0, 255) def uint16(), do: random(...
36.806452
80
0.717791
3f9ed9c4cfb9264ea8328d1fd757ffa3585d37c8
3,384
ex
Elixir
web/controllers/confirmation_controller.ex
remigijusj/coherence
36fe35b0bfe7ac63b44b4046f3ba62f2fe69603a
[ "MIT" ]
null
null
null
web/controllers/confirmation_controller.ex
remigijusj/coherence
36fe35b0bfe7ac63b44b4046f3ba62f2fe69603a
[ "MIT" ]
null
null
null
web/controllers/confirmation_controller.ex
remigijusj/coherence
36fe35b0bfe7ac63b44b4046f3ba62f2fe69603a
[ "MIT" ]
null
null
null
defmodule Coherence.ConfirmationController do @moduledoc """ Handle confirmation actions. A single action, `edit`, is required for the confirmation module. """ use Coherence.Web, :controller require Logger use Timex alias Coherence.ControllerHelpers, as: Helpers plug Coherence.ValidateOption, :conf...
31.924528
111
0.643913
3f9eff05dd24bd388166150f7ce476078567fc0a
1,159
ex
Elixir
lib/sanbase_web/graphql/cache/cache_provider.ex
sitedata/sanbase2
8da5e44a343288fbc41b68668c6c80ae8547d557
[ "MIT" ]
81
2017-11-20T01:20:22.000Z
2022-03-05T12:04:25.000Z
lib/sanbase_web/graphql/cache/cache_provider.ex
rmoorman/sanbase2
226784ab43a24219e7332c49156b198d09a6dd85
[ "MIT" ]
359
2017-10-15T14:40:53.000Z
2022-01-25T13:34:20.000Z
lib/sanbase_web/graphql/cache/cache_provider.ex
sitedata/sanbase2
8da5e44a343288fbc41b68668c6c80ae8547d557
[ "MIT" ]
16
2017-11-19T13:57:40.000Z
2022-02-07T08:13:02.000Z
defmodule SanbaseWeb.Graphql.CacheProvider do @moduledoc """ Behaviour that the cache needs to conform to. """ @type hash :: String.t() @type key :: hash | {atom, hash} | {non_neg_integer(), non_neg_integer()} @type error :: String.t() @type stored_value :: any() @type cache :: atom() @type size_type...
33.114286
87
0.66264
3f9f5b14169f81ad28b51e02452213b81eb18667
9,161
exs
Elixir
apps/local_ledger_db/priv/repo/migrations/20180430105449_update_predictable_minted_token_id.exs
jimpeebles/ewallet
ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405
[ "Apache-2.0" ]
null
null
null
apps/local_ledger_db/priv/repo/migrations/20180430105449_update_predictable_minted_token_id.exs
jimpeebles/ewallet
ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405
[ "Apache-2.0" ]
null
null
null
apps/local_ledger_db/priv/repo/migrations/20180430105449_update_predictable_minted_token_id.exs
jimpeebles/ewallet
ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405
[ "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...
36.498008
103
0.599389
3f9f8c863aae35b274aa10c9165079ddac662f59
291
exs
Elixir
test/commands/user_test.exs
Celeo/simple_irc_server
090dfdff236c51216922733412339ef477fe43da
[ "MIT" ]
null
null
null
test/commands/user_test.exs
Celeo/simple_irc_server
090dfdff236c51216922733412339ef477fe43da
[ "MIT" ]
null
null
null
test/commands/user_test.exs
Celeo/simple_irc_server
090dfdff236c51216922733412339ef477fe43da
[ "MIT" ]
null
null
null
defmodule IRC.Commands.User.Test do use ExUnit.Case alias IRC.Commands.User test "mode_to_letters" do assert(User.mode_to_letters(6) == "iw") assert(User.mode_to_letters(4) == "i") assert(User.mode_to_letters(2) == "w") assert(User.mode_to_letters(0) == "") end end
24.25
43
0.680412
3f9fa7f5785fce6622e7b0523b66bcd703559ea1
16,722
exs
Elixir
test/rummage_ecto_test.exs
ramansah/rummage_ecto
0f24fdccfe504e3c5b8337698446c17fefc60766
[ "MIT" ]
1
2019-02-11T19:54:24.000Z
2019-02-11T19:54:24.000Z
test/rummage_ecto_test.exs
ramansah/rummage_ecto
0f24fdccfe504e3c5b8337698446c17fefc60766
[ "MIT" ]
null
null
null
test/rummage_ecto_test.exs
ramansah/rummage_ecto
0f24fdccfe504e3c5b8337698446c17fefc60766
[ "MIT" ]
2
2019-11-02T21:36:27.000Z
2021-03-02T15:58:31.000Z
defmodule Rummage.EctoTest do use ExUnit.Case doctest Rummage.Ecto alias Rummage.Ecto.Repo alias Rummage.Ecto.Product alias Rummage.Ecto.Category setup do :ok = Ecto.Adapters.SQL.Sandbox.checkout(Repo) end defp create_categories_and_products() do for x <- 1..4 do parent_category = %Cate...
30.459016
146
0.599868
3f9faf47634b67bcb5e4a09ed6f1389beaf870fb
282
exs
Elixir
triangle/triangle.exs
wobh/xelixir
63e5beec40d5c441cf6cf87f30c29848f481bb1b
[ "MIT" ]
1
2021-08-16T20:24:14.000Z
2021-08-16T20:24:14.000Z
exercises/triangle/triangle.exs
Triangle-Elixir/xelixir
08d23bf47f57799f286567cb26f635291de2fde5
[ "MIT" ]
null
null
null
exercises/triangle/triangle.exs
Triangle-Elixir/xelixir
08d23bf47f57799f286567cb26f635291de2fde5
[ "MIT" ]
null
null
null
defmodule Triangle do @type kind :: :equilateral | :isosceles | :scalene @doc """ Return the kind of triangle of a triangle with 'a', 'b' and 'c' as lengths. """ @spec kind(number, number, number) :: { :ok, kind } | { :error, String.t } def kind(a, b, c) do end end
23.5
77
0.609929
3f9fbd8fdb186d655f56c43d1348efef47a2da20
6,877
ex
Elixir
lib/firmware.ex
nerves-project-attic/nerves_firmware
0e6b730438cf31ebfb6befc5cf803b39711c6262
[ "Apache-2.0" ]
null
null
null
lib/firmware.ex
nerves-project-attic/nerves_firmware
0e6b730438cf31ebfb6befc5cf803b39711c6262
[ "Apache-2.0" ]
1
2022-01-24T16:53:34.000Z
2022-01-24T17:11:36.000Z
lib/firmware.ex
nerves-project-attic/nerves_firmware
0e6b730438cf31ebfb6befc5cf803b39711c6262
[ "Apache-2.0" ]
1
2022-01-24T14:33:24.000Z
2022-01-24T14:33:24.000Z
defmodule Nerves.Firmware do @moduledoc """ API for upgrading and managing firmware on a Nerves device. Handles firmware for a single block device (like /dev/mmcblk0). Delegates a lot to Frank Hunleth's excellent [fwup](https://github.com/fhunleth/fwup). Provides: - Firmware upgrades - Firmware status ...
31.837963
93
0.697543
3f9fc373315cb461845d3b20e622dbb1e08653da
1,062
ex
Elixir
lib/mldht/search/supervisor.ex
cit/MLDHT
3ada20ab01cf1eb312bf673f7ddd244f45319744
[ "MIT" ]
49
2015-11-24T12:12:48.000Z
2017-06-14T05:18:51.000Z
lib/mldht/search/supervisor.ex
faried/MlDHT
3ada20ab01cf1eb312bf673f7ddd244f45319744
[ "MIT" ]
4
2019-07-03T15:18:51.000Z
2019-12-01T07:25:14.000Z
lib/mldht/search/supervisor.ex
faried/MlDHT
3ada20ab01cf1eb312bf673f7ddd244f45319744
[ "MIT" ]
7
2017-07-14T03:19:00.000Z
2022-01-25T23:02:01.000Z
defmodule MlDHT.Search.Supervisor do use DynamicSupervisor require Logger def start_link(opts) do DynamicSupervisor.start_link(__MODULE__, {:ok, opts[:strategy]}, name: opts[:name]) end def init({:ok, strategy}) do DynamicSupervisor.init(strategy: strategy) end def start_child(pid, type, socke...
27.947368
87
0.645009
3f9fca65359cea8aa51542fc7003978521dd6a62
727
ex
Elixir
apps/heimdall_ql/lib/heimdall_ql.ex
thebugcatcher/heimdall
5da4d2afcf80a8dabd23bbd22b19e24bcbd507a9
[ "MIT" ]
2
2021-04-03T14:10:20.000Z
2021-07-07T21:17:35.000Z
apps/heimdall_ql/lib/heimdall_ql.ex
thebugcatcher/heimdall
5da4d2afcf80a8dabd23bbd22b19e24bcbd507a9
[ "MIT" ]
null
null
null
apps/heimdall_ql/lib/heimdall_ql.ex
thebugcatcher/heimdall
5da4d2afcf80a8dabd23bbd22b19e24bcbd507a9
[ "MIT" ]
1
2021-11-09T00:59:46.000Z
2021-11-09T00:59:46.000Z
defmodule HeimdallQL do @moduledoc """ QL context for Heimdall """ @behaviour Plug import Plug.Conn def init(opts), do: opts def call(conn, _) do case authorize(conn) do :ok -> Absinthe.Plug.put_options(conn, context: %{authorized: true}) :error -> conn |> put_...
17.731707
71
0.591472
3f9fd46b4b61544825be5d5a7a70e50d25926b6f
657
exs
Elixir
test/suite/draft7/min_items_test.exs
depressed-pho/xema
56de4a5d3b3f37827c70f6052f895c59feb0bb51
[ "MIT" ]
null
null
null
test/suite/draft7/min_items_test.exs
depressed-pho/xema
56de4a5d3b3f37827c70f6052f895c59feb0bb51
[ "MIT" ]
null
null
null
test/suite/draft7/min_items_test.exs
depressed-pho/xema
56de4a5d3b3f37827c70f6052f895c59feb0bb51
[ "MIT" ]
null
null
null
defmodule Draft7.MinItemsTest do use ExUnit.Case, async: true import Xema, only: [valid?: 2] describe "minItems validation" do setup do %{schema: Xema.new(min_items: 1)} end test "longer is valid", %{schema: schema} do data = [1, 2] assert valid?(schema, data) end test "e...
20.53125
54
0.592085
3f9fdb9380a889f83e618ff3628176c558867306
847
ex
Elixir
lib/mongooseice/evaluator/request.ex
glassechidna/MongooseICE
c2ea99f47460fd7293b51eaa72fbce122a60affe
[ "Apache-2.0" ]
90
2017-09-26T12:20:06.000Z
2022-01-30T17:58:11.000Z
lib/mongooseice/evaluator/request.ex
glassechidna/MongooseICE
c2ea99f47460fd7293b51eaa72fbce122a60affe
[ "Apache-2.0" ]
39
2017-01-20T08:54:13.000Z
2017-09-13T11:30:14.000Z
lib/mongooseice/evaluator/request.ex
glassechidna/MongooseICE
c2ea99f47460fd7293b51eaa72fbce122a60affe
[ "Apache-2.0" ]
13
2018-03-29T07:03:25.000Z
2022-03-06T10:21:45.000Z
defmodule MongooseICE.Evaluator.Request do @moduledoc false alias Jerboa.Params alias MongooseICE.Evaluator alias MongooseICE.TURN @spec service(Params.t, MongooseICE.client_info, MongooseICE.UDP.server_opts, TURN.t) :: {Params.t, TURN.t} def service(params, client, server, turn_state) do service_...
29.206897
87
0.695396
3f9fe19e4b418bf9b54ff4fc14c35646a73dbea0
269
ex
Elixir
apps/fz_http/lib/fz_http_web/controllers/device_controller.ex
jasonboukheir/firezone
79d610b94f67ae25c8ca26f391c0edf288f6aaa5
[ "Apache-2.0" ]
5
2020-05-22T00:24:39.000Z
2021-06-18T18:28:45.000Z
apps/fz_http/lib/fz_http_web/controllers/device_controller.ex
jasonboukheir/firezone
79d610b94f67ae25c8ca26f391c0edf288f6aaa5
[ "Apache-2.0" ]
64
2020-05-22T00:31:00.000Z
2021-06-28T15:21:33.000Z
apps/fz_http/lib/fz_http_web/controllers/device_controller.ex
jasonboukheir/firezone
79d610b94f67ae25c8ca26f391c0edf288f6aaa5
[ "Apache-2.0" ]
2
2020-05-22T00:27:52.000Z
2021-03-14T19:37:27.000Z
defmodule FzHttpWeb.DeviceController do @moduledoc """ Entrypoint for Device LiveView """ use FzHttpWeb, :controller plug :redirect_unauthenticated def index(conn, _params) do conn |> redirect(to: Routes.device_index_path(conn, :index)) end end
19.214286
59
0.724907
3f9fe37ed323eacb9b3d5c52e4a3bac3ec47f733
4,586
ex
Elixir
app/lib/noodl_web/live/messaging/audience_chat.ex
nathanjohnson320/noodl
2e449aab15b54fc5a1dc45ebf4b79e7b64b7c967
[ "MIT" ]
1
2021-01-20T20:00:50.000Z
2021-01-20T20:00:50.000Z
app/lib/noodl_web/live/messaging/audience_chat.ex
nathanjohnson320/noodl
2e449aab15b54fc5a1dc45ebf4b79e7b64b7c967
[ "MIT" ]
null
null
null
app/lib/noodl_web/live/messaging/audience_chat.ex
nathanjohnson320/noodl
2e449aab15b54fc5a1dc45ebf4b79e7b64b7c967
[ "MIT" ]
null
null
null
defmodule NoodlWeb.Live.Messaging.AudienceChat do @moduledoc """ Chat Component for all the people in a stream """ use NoodlWeb, :live_view alias Noodl.{Accounts, Events, Messages} alias Noodl.Messages.Message alias NoodlWeb.Endpoint @impl true def mount( _params, %{ "user...
24.923913
96
0.577846
3f9fee7307961b1dc4e213765a80b36a2ac634b4
3,883
exs
Elixir
apps/forklift/test/unit/forklift/data_writer_test.exs
msomji/smartcitiesdata
fc96abc1ef1306f7af6bd42bbcb4ed041a6d922c
[ "Apache-2.0" ]
null
null
null
apps/forklift/test/unit/forklift/data_writer_test.exs
msomji/smartcitiesdata
fc96abc1ef1306f7af6bd42bbcb4ed041a6d922c
[ "Apache-2.0" ]
null
null
null
apps/forklift/test/unit/forklift/data_writer_test.exs
msomji/smartcitiesdata
fc96abc1ef1306f7af6bd42bbcb4ed041a6d922c
[ "Apache-2.0" ]
null
null
null
defmodule Forklift.DataWriterTest do use ExUnit.Case use Placebo alias Forklift.DataWriter alias SmartCity.TestDataGenerator, as: TDG import Mox setup :set_mox_global setup :verify_on_exit! describe "compact_datasets/0" do test "compacts other tables if one fails" do test = self() da...
28.762963
118
0.62529
3fa08733a25cb70d19bb531c9fa354607b1e7c8e
360
exs
Elixir
test/git_bisect_app/hello/message_test.exs
bdubaut/git-bisect-talk
5b8691935a4e73307d3099d8b1b3af7dddbc2904
[ "MIT" ]
null
null
null
test/git_bisect_app/hello/message_test.exs
bdubaut/git-bisect-talk
5b8691935a4e73307d3099d8b1b3af7dddbc2904
[ "MIT" ]
null
null
null
test/git_bisect_app/hello/message_test.exs
bdubaut/git-bisect-talk
5b8691935a4e73307d3099d8b1b3af7dddbc2904
[ "MIT" ]
null
null
null
defmodule GitBisectApp.Hello.MessageTest do use ExUnit.Case, async: true alias GitBisectApp.Hello.Message describe "hello/0" do test "Returns 'Hello World'" do assert Message.hello() == "Hello World!" end end describe "good_bye/0" do test "Returns 'Hello World'" do assert Message.goo...
21.176471
46
0.675
3fa0abc93101d034e4ce1367e86e69b5f0472ca8
8,928
ex
Elixir
lib/oban/worker.ex
hartzell/oban
2901cd4655d61eda95813cc1880b003f37cd8983
[ "Apache-2.0" ]
null
null
null
lib/oban/worker.ex
hartzell/oban
2901cd4655d61eda95813cc1880b003f37cd8983
[ "Apache-2.0" ]
null
null
null
lib/oban/worker.ex
hartzell/oban
2901cd4655d61eda95813cc1880b003f37cd8983
[ "Apache-2.0" ]
null
null
null
defmodule Oban.Worker do @moduledoc """ Defines a behavior and macro to guide the creation of worker modules. Worker modules do the work of processing a job. At a minimum they must define a `perform/2` function, which will be called with an `args` map and the job struct. ## Defining Workers Define a work...
34.471042
98
0.68918
3fa0f498e0c9be561877e3995e328fcad97685ef
19,641
ex
Elixir
lib/phoenix/code_reloader.ex
samkenxstream/phoenix
18433f95a90fc948e1d6d0f5606dfa339fdc6d61
[ "MIT" ]
null
null
null
lib/phoenix/code_reloader.ex
samkenxstream/phoenix
18433f95a90fc948e1d6d0f5606dfa339fdc6d61
[ "MIT" ]
null
null
null
lib/phoenix/code_reloader.ex
samkenxstream/phoenix
18433f95a90fc948e1d6d0f5606dfa339fdc6d61
[ "MIT" ]
null
null
null
defmodule Phoenix.CodeReloader do @moduledoc """ A plug and module to handle automatic code reloading. To avoid race conditions, all code reloads are funneled through a sequential call operation. """ ## Server delegation @doc """ Reloads code for the current Mix project by invoking the `:reloadable...
67.961938
10,131
0.780357
3fa187f5de9adfd97d1e32cb25b0ac297ce9e46e
1,177
exs
Elixir
mix.exs
fewlinesco/kaur
01f492ff6a7acfb4b65e5ffebb1acac5b9b86ed6
[ "MIT" ]
20
2017-09-06T14:46:27.000Z
2021-03-01T02:43:08.000Z
mix.exs
fewlinesco/kaur
01f492ff6a7acfb4b65e5ffebb1acac5b9b86ed6
[ "MIT" ]
17
2017-09-06T15:13:14.000Z
2018-07-31T01:10:05.000Z
mix.exs
fewlinesco/kaur
01f492ff6a7acfb4b65e5ffebb1acac5b9b86ed6
[ "MIT" ]
4
2017-10-06T17:37:50.000Z
2018-07-30T19:51:44.000Z
defmodule Kaur.Mixfile do use Mix.Project @project_url "https://github.com/fewlinesco/kaur" def project do [ app: :kaur, build_embedded: Mix.env() == :prod, deps: deps(), description: "A bunch of helper functions to ease the development of your applications", docs: [main: "read...
23.078431
94
0.542056
3fa1dc5fc364d6235b782ae9104e689fea7dd92c
1,314
exs
Elixir
charts_live/test/live/stacked_column_live/chart_component_test.exs
Refined-Process/charts_ex
6d23eff5903496b7a4518a3208486a15a3354ae2
[ "MIT" ]
null
null
null
charts_live/test/live/stacked_column_live/chart_component_test.exs
Refined-Process/charts_ex
6d23eff5903496b7a4518a3208486a15a3354ae2
[ "MIT" ]
null
null
null
charts_live/test/live/stacked_column_live/chart_component_test.exs
Refined-Process/charts_ex
6d23eff5903496b7a4518a3208486a15a3354ae2
[ "MIT" ]
null
null
null
defmodule ChartsLive.Live.StackedColumnLive.ChartComponentTest do @moduledoc false import Phoenix.LiveViewTest use ExUnit.Case alias ChartsLive.Live.StackedColumnLive.ChartComponent alias Charts.Axes.{MagnitudeAxis, BaseAxes} alias Charts.{BaseChart, BaseDatum} alias Charts.ColumnChart.Dataset @endpo...
22.271186
79
0.557078
3fa1e5f1f317d11e85232429c2b8d25ae79dd674
161
exs
Elixir
modules_and_named_functions/times2.exs
leogtzr/elixir_code_snippets
5c8c921dc165de8fc29bb14046386efa81ce7542
[ "MIT" ]
null
null
null
modules_and_named_functions/times2.exs
leogtzr/elixir_code_snippets
5c8c921dc165de8fc29bb14046386efa81ce7542
[ "MIT" ]
null
null
null
modules_and_named_functions/times2.exs
leogtzr/elixir_code_snippets
5c8c921dc165de8fc29bb14046386efa81ce7542
[ "MIT" ]
null
null
null
defmodule Times do def double(n), do: n * 2 def square(n), do: n * n def triple(n), do: n * 3 # ...: def quatruple(n), do: triple(n) * 4 end
20.125
39
0.521739
3fa2127916dd03da41e1e05dfb10dff4f3f77aef
1,732
ex
Elixir
clients/firestore/lib/google_api/firestore/v1beta1/model/document_mask.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/firestore/lib/google_api/firestore/v1beta1/model/document_mask.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/firestore/lib/google_api/firestore/v1beta1/model/document_mask.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.307692
134
0.738453
3fa23b58c97ba169f94cde650cd94ac123484f11
2,046
ex
Elixir
clients/document_ai/lib/google_api/document_ai/v1beta3/model/google_cloud_documentai_v1beta1_batch_process_documents_response.ex
mcrumm/elixir-google-api
544f22797cec52b3a23dfb6e39117f0018448610
[ "Apache-2.0" ]
null
null
null
clients/document_ai/lib/google_api/document_ai/v1beta3/model/google_cloud_documentai_v1beta1_batch_process_documents_response.ex
mcrumm/elixir-google-api
544f22797cec52b3a23dfb6e39117f0018448610
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/document_ai/lib/google_api/document_ai/v1beta3/model/google_cloud_documentai_v1beta1_batch_process_documents_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...
34.1
184
0.760508
3fa27fccf6ab8ff7ad65054688ccd5a23be95f59
855
exs
Elixir
priv/repo/migrations/20201126121657_create_user_profiles.exs
feelja-tech/feelja-api
03ce15430460cf2dac24a7740242c7e5ac5c5804
[ "MIT" ]
null
null
null
priv/repo/migrations/20201126121657_create_user_profiles.exs
feelja-tech/feelja-api
03ce15430460cf2dac24a7740242c7e5ac5c5804
[ "MIT" ]
null
null
null
priv/repo/migrations/20201126121657_create_user_profiles.exs
feelja-tech/feelja-api
03ce15430460cf2dac24a7740242c7e5ac5c5804
[ "MIT" ]
null
null
null
defmodule NudgeApi.Repo.Migrations.CreateUserProfiles do use Ecto.Migration def change do create table(:user_profiles) do # OCR results add :gender, :string # Direct inputs add :name, :string add :age, :integer add :height, :integer add :employment, :string add ...
25.147059
75
0.650292
3fa295734364060a46975606f44675468a26f456
595
ex
Elixir
test/support/test_client.ex
mickel8/membrane_quic_plugin
f50f3658f6a18f5791398ade8102dfc9f08f11fd
[ "Apache-2.0" ]
null
null
null
test/support/test_client.ex
mickel8/membrane_quic_plugin
f50f3658f6a18f5791398ade8102dfc9f08f11fd
[ "Apache-2.0" ]
null
null
null
test/support/test_client.ex
mickel8/membrane_quic_plugin
f50f3658f6a18f5791398ade8102dfc9f08f11fd
[ "Apache-2.0" ]
null
null
null
defmodule Membrane.QUIC.Support.TestClient do @moduledoc false use Membrane.Pipeline @impl true def handle_init(_opts) do children = %{ file_src: %Membrane.File.Source{ location: "./test_file" }, quic_client: %Membrane.QUIC.Client{ ip_address: {127, 0, 0, 1}, port...
19.833333
73
0.578151