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
7a5f81259a468bb2bd7b7d560329dd8576354dbd
2,709
exs
Elixir
test/bsoneach/each_read_test.exs
szTheory/bsoneach
deb0a6721518ed9712cef4fc952df5ae3ba23c69
[ "MIT" ]
8
2016-08-05T19:28:16.000Z
2021-07-15T22:00:30.000Z
test/bsoneach/each_read_test.exs
szTheory/bsoneach
deb0a6721518ed9712cef4fc952df5ae3ba23c69
[ "MIT" ]
5
2016-08-29T13:07:15.000Z
2016-11-24T16:58:01.000Z
test/bsoneach/each_read_test.exs
szTheory/bsoneach
deb0a6721518ed9712cef4fc952df5ae3ba23c69
[ "MIT" ]
5
2018-06-19T02:43:46.000Z
2021-07-15T22:00:36.000Z
defmodule BSONEach.EachReadTest do use ExUnit.Case, async: true import Test.Support.DocumentAssertions doctest BSONEach @fixtures [ notfound: "test/fixtures/x.bson", empty: "test/fixtures/0.bson", single: "test/fixtures/1.bson", three: "test/fixtures/3.bson", many: "test/fixtures/30.bson", ...
26.821782
80
0.662606
7a5f8683971d9e68b49081ab6f9a7d8807848516
1,392
ex
Elixir
Microsoft.Azure.Management.Features/lib/microsoft/azure/management/features/deserializer.ex
chgeuer/ex_microsoft_azure_management
99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603
[ "Apache-2.0" ]
4
2018-09-29T03:43:15.000Z
2021-04-01T18:30:46.000Z
Microsoft.Azure.Management.Features/lib/microsoft/azure/management/features/deserializer.ex
chgeuer/ex_microsoft_azure_management
99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603
[ "Apache-2.0" ]
null
null
null
Microsoft.Azure.Management.Features/lib/microsoft/azure/management/features/deserializer.ex
chgeuer/ex_microsoft_azure_management
99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603
[ "Apache-2.0" ]
null
null
null
# NOTE: This class is auto generated by the swagger code generator program. # https://github.com/swagger-api/swagger-codegen.git # Do not edit the class manually. defmodule Microsoft.Azure.Management.Features.Deserializer do @moduledoc """ Helper functions for deserializing responses into models """ @doc """ ...
35.692308
139
0.637931
7a600eb02662ea70acb177f93e4cf875c23d2c7f
1,419
ex
Elixir
test/support/endpoint.ex
nicolasblanco/phoenix_live_view
f2bd37302f704fca3c1e4f8db7a1cbf8ddf012f2
[ "MIT" ]
null
null
null
test/support/endpoint.ex
nicolasblanco/phoenix_live_view
f2bd37302f704fca3c1e4f8db7a1cbf8ddf012f2
[ "MIT" ]
null
null
null
test/support/endpoint.ex
nicolasblanco/phoenix_live_view
f2bd37302f704fca3c1e4f8db7a1cbf8ddf012f2
[ "MIT" ]
1
2021-01-14T12:58:22.000Z
2021-01-14T12:58:22.000Z
defmodule Phoenix.LiveViewTest.EndpointOverridable do defmacro __before_compile__(_env) do quote do @parsers Plug.Parsers.init( parsers: [:urlencoded, :multipart, :json], pass: ["*/*"], json_decoder: Phoenix.json_library() ) defoverridable...
35.475
91
0.689218
7a60212bce822e1b1d4de6e050dd50137034b17d
817
ex
Elixir
lib/edgedb/protocol/type_descriptors/type_annotation_descriptor.ex
nsidnev/edgedb-elixir
bade2b9daba2e83bfaa5915b2addb74f41610968
[ "MIT" ]
30
2021-05-19T08:54:44.000Z
2022-03-11T22:52:25.000Z
lib/edgedb/protocol/type_descriptors/type_annotation_descriptor.ex
nsidnev/edgedb-elixir
bade2b9daba2e83bfaa5915b2addb74f41610968
[ "MIT" ]
3
2021-11-17T21:26:01.000Z
2022-03-12T09:49:25.000Z
lib/edgedb/protocol/type_descriptors/type_annotation_descriptor.ex
nsidnev/edgedb-elixir
bade2b9daba2e83bfaa5915b2addb74f41610968
[ "MIT" ]
3
2021-08-29T14:55:41.000Z
2022-03-12T01:30:35.000Z
defmodule EdgeDB.Protocol.TypeDescriptors.TypeAnnotationDescriptor do use EdgeDB.Protocol.TypeDescriptor alias EdgeDB.Protocol.{ Codecs, Datatypes } @start_code 0x80 @end_code 0xFE defguard is_supported_type(type) when @start_code <= type and type <= @end_code # id of type here is always known...
27.233333
81
0.723378
7a60623f511f63c61a6904707a73c9561b2feaae
603
ex
Elixir
notebooks/modulo_4/parte_2/ecto_example/lib/ecto_example/university/schemas/college.ex
igorgbr/curso-alquimia-stone
c5e40b0efcb7eef282f0f13a421671580c2762c1
[ "MIT" ]
14
2021-11-19T00:22:09.000Z
2022-01-29T03:58:09.000Z
notebooks/modulo_4/parte_2/ecto_example/lib/ecto_example/university/schemas/college.ex
igorgbr/curso-alquimia-stone
c5e40b0efcb7eef282f0f13a421671580c2762c1
[ "MIT" ]
null
null
null
notebooks/modulo_4/parte_2/ecto_example/lib/ecto_example/university/schemas/college.ex
igorgbr/curso-alquimia-stone
c5e40b0efcb7eef282f0f13a421671580c2762c1
[ "MIT" ]
1
2022-03-01T00:49:50.000Z
2022-03-01T00:49:50.000Z
defmodule EctoExample.University.Schemas.College do use Ecto.Schema import Ecto.Changeset alias EctoExample.University.Schemas.Enrollment schema "colleges" do field(:college_name, :string) field(:state, :string) field(:price, :decimal) has_many(:enrollments, Enrollment, on_delete: :delete_al...
24.12
71
0.701493
7a606790b083d42e09f07c8911e774ca93deb07a
706
ex
Elixir
day6/part2.ex
michaljanocko/aoc
fe3af43536013af1787e0c0685aec5bbb096bd87
[ "WTFPL" ]
1
2021-12-06T14:40:38.000Z
2021-12-06T14:40:38.000Z
day6/part2.ex
michaljanocko/aoc
fe3af43536013af1787e0c0685aec5bbb096bd87
[ "WTFPL" ]
null
null
null
day6/part2.ex
michaljanocko/aoc
fe3af43536013af1787e0c0685aec5bbb096bd87
[ "WTFPL" ]
null
null
null
defmodule Fish do def simulate_generation(pop, counter) do if counter == 0 do pop |> Map.to_list() |> Enum.map(&elem(&1, 1)) |> Enum.sum() else %{ 0 => pop[1] || 0, 1 => pop[2] || 0, 2 => pop[3] || 0, 3 => pop[4] || 0, 4 => pop[5] || 0, ...
20.764706
43
0.457507
7a6073937fa4f623012f32696919499145096a4f
1,750
ex
Elixir
lib/sanbase/available_slugs/available_slugs.ex
sitedata/sanbase2
8da5e44a343288fbc41b68668c6c80ae8547d557
[ "MIT" ]
null
null
null
lib/sanbase/available_slugs/available_slugs.ex
sitedata/sanbase2
8da5e44a343288fbc41b68668c6c80ae8547d557
[ "MIT" ]
1
2021-07-24T16:26:03.000Z
2021-07-24T16:26:03.000Z
lib/sanbase/available_slugs/available_slugs.ex
sitedata/sanbase2
8da5e44a343288fbc41b68668c6c80ae8547d557
[ "MIT" ]
null
null
null
defmodule Sanbase.AvailableSlugs do @behaviour Sanbase.AvailableSlugs.Behaviour @moduledoc ~s""" Module for fast checking if a slug is existing. The slugs are stored in an ETS table and the check is done via :ets.lookup/2. This is faster than caching all slugs, retrieving them in the caller process and che...
30.172414
94
0.701143
7a607e17830e5dba2ffb2157be260f4ead117c17
997
ex
Elixir
flights/web/views/error_helpers.ex
sifxtreme/phoenix-flights
afc8724e9a9d6f9158305d57df8132327943894d
[ "MIT" ]
null
null
null
flights/web/views/error_helpers.ex
sifxtreme/phoenix-flights
afc8724e9a9d6f9158305d57df8132327943894d
[ "MIT" ]
null
null
null
flights/web/views/error_helpers.ex
sifxtreme/phoenix-flights
afc8724e9a9d6f9158305d57df8132327943894d
[ "MIT" ]
null
null
null
defmodule Flights.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 if error = form.errors[field] do content_tag :span, translate_error(error), ...
27.694444
78
0.679037
7a6107321b9d3d88f65beafad752b0195fcdfecd
1,880
ex
Elixir
clients/deployment_manager/lib/google_api/deployment_manager/v2/model/log_config_data_access_options.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/deployment_manager/lib/google_api/deployment_manager/v2/model/log_config_data_access_options.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/deployment_manager/lib/google_api/deployment_manager/v2/model/log_config_data_access_options.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 ...
38.367347
286
0.757447
7a612bd3169edcb44a137f7089c20f908009193e
626
exs
Elixir
test/rocketpay/numbers_test.exs
librity/nlw_elixir
09476067f0695014705af0480dd60894f9e0a6d8
[ "MIT" ]
1
2021-02-26T17:31:13.000Z
2021-02-26T17:31:13.000Z
test/rocketpay/numbers_test.exs
librity/nlw_elixir
09476067f0695014705af0480dd60894f9e0a6d8
[ "MIT" ]
null
null
null
test/rocketpay/numbers_test.exs
librity/nlw_elixir
09476067f0695014705af0480dd60894f9e0a6d8
[ "MIT" ]
null
null
null
defmodule Rocketpay.NumbersTest do use ExUnit.Case, async: true alias Rocketpay.Numbers describe "sum_from_file/1" do test "when csv file with $1 name exists, it returns the sum of its contents" do response = Numbers.sum_from_file("numbers") expected_response = {:ok, %{total: 37}} assert ...
28.454545
84
0.694888
7a616c0e0d7f839fff2793ad3a486a8c8080816c
63
ex
Elixir
lib/webchat_web/views/layout_view.ex
Bwuak/webchat
b6668be508481a1ff480303affaebdaf28604f41
[ "MIT" ]
null
null
null
lib/webchat_web/views/layout_view.ex
Bwuak/webchat
b6668be508481a1ff480303affaebdaf28604f41
[ "MIT" ]
1
2020-08-04T19:50:09.000Z
2020-08-04T19:50:09.000Z
lib/webchat_web/views/layout_view.ex
Bwuak/webchat
b6668be508481a1ff480303affaebdaf28604f41
[ "MIT" ]
null
null
null
defmodule WebchatWeb.LayoutView do use WebchatWeb, :view end
15.75
34
0.809524
7a617a381d76286ae022a4504b763daf751841bd
1,302
ex
Elixir
lib/kaffe/consumer_group/worker/worker_supervisor.ex
aravindanck/kaffe
921fd1a895cf3bc5f07bfa7d431730fbd5975f08
[ "MIT" ]
null
null
null
lib/kaffe/consumer_group/worker/worker_supervisor.ex
aravindanck/kaffe
921fd1a895cf3bc5f07bfa7d431730fbd5975f08
[ "MIT" ]
null
null
null
lib/kaffe/consumer_group/worker/worker_supervisor.ex
aravindanck/kaffe
921fd1a895cf3bc5f07bfa7d431730fbd5975f08
[ "MIT" ]
null
null
null
defmodule Kaffe.WorkerSupervisor do @moduledoc """ Supervise the individual workers. """ use Supervisor require Logger def start_link(subscriber_name) do Supervisor.start_link(__MODULE__, subscriber_name, name: name(subscriber_name)) end def start_worker_manager(pid, subscriber_name) do Super...
25.529412
86
0.683564
7a617f7b8e1ee043d03b5c31713bc7ca83a69737
584
ex
Elixir
lib/chex/piece/queen.ex
sprql/chex
f2c82e6b8db0377ed283597bdd6b7c33d6601099
[ "MIT" ]
10
2020-01-11T19:53:11.000Z
2021-06-07T14:41:24.000Z
lib/chex/piece/queen.ex
sprql/chex
f2c82e6b8db0377ed283597bdd6b7c33d6601099
[ "MIT" ]
45
2019-10-23T01:10:32.000Z
2022-03-23T17:34:22.000Z
lib/chex/piece/queen.ex
sprql/chex
f2c82e6b8db0377ed283597bdd6b7c33d6601099
[ "MIT" ]
5
2019-10-16T23:45:16.000Z
2022-02-06T16:00:58.000Z
defmodule Chex.Piece.Queen do @moduledoc false @behaviour Chex.Piece import Chex.Piece.Movement @impl true def possible_moves(game, square, color) do walk(game, square, color, :n) ++ walk(game, square, color, :s) ++ walk(game, square, color, :e) ++ walk(game, square, color, :w) ++ ...
25.391304
85
0.626712
7a6182ad518c75baa42082c2f79bcc8488bb04d8
3,534
ex
Elixir
apps/snitch_core/lib/core/data/model/payment/card_payment.ex
Acrecio/avia
54d264fc179b5b5f17d174854bdca063e1d935e9
[ "MIT" ]
456
2018-09-20T02:40:59.000Z
2022-03-07T08:53:48.000Z
apps/snitch_core/lib/core/data/model/payment/card_payment.ex
Acrecio/avia
54d264fc179b5b5f17d174854bdca063e1d935e9
[ "MIT" ]
273
2018-09-19T06:43:43.000Z
2021-08-07T12:58:26.000Z
apps/snitch_core/lib/core/data/model/payment/card_payment.ex
Acrecio/avia
54d264fc179b5b5f17d174854bdca063e1d935e9
[ "MIT" ]
122
2018-09-26T16:32:46.000Z
2022-03-13T11:44:19.000Z
defmodule Snitch.Data.Model.CardPayment do @moduledoc """ CardPayment API and utilities. `CardPayment` is a concrete payment subtype in Snitch. By `create/4`ing a CardPayment, the supertype Payment is automatically created in the same transaction. > For other supported payment sources, see `Snitch.Dat...
34.31068
85
0.702886
7a61b1422b150f20da9079f0846d97dc9dde6e74
1,976
ex
Elixir
lib/cizen/effects/all.ex
ryo33/cizen
e1d3e232e4d3e72dfc7ef122d936ae26fa60c084
[ "MIT" ]
1
2019-04-08T08:00:06.000Z
2019-04-08T08:00:06.000Z
lib/cizen/effects/all.ex
ryo33/cizen
e1d3e232e4d3e72dfc7ef122d936ae26fa60c084
[ "MIT" ]
null
null
null
lib/cizen/effects/all.ex
ryo33/cizen
e1d3e232e4d3e72dfc7ef122d936ae26fa60c084
[ "MIT" ]
null
null
null
defmodule Cizen.Effects.All do @moduledoc """ An effect to perform multiple effects. Returns the list of resolved values. ## Example [result1, result2] = perform id, %All{ effects: [effect1, effect2] } """ @keys [:effects] @enforce_keys @keys defstruct @keys alias Cizen.E...
22.712644
78
0.543016
7a61bc8a72224526faa27efee7b37add6e69686c
4,118
ex
Elixir
clients/service_control/lib/google_api/service_control/v1/model/log_entry.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/service_control/lib/google_api/service_control/v1/model/log_entry.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/service_control/lib/google_api/service_control/v1/model/log_entry.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 ...
45.755556
178
0.687227
7a62136339a6f54e03b0030db8fd133612a175ff
1,129
ex
Elixir
lib/video/timed_point.ex
breunigs/veloroute
ac3b1eeb2ef2369c27186a138f6ffd8284652dab
[ "0BSD" ]
12
2018-06-15T10:18:43.000Z
2022-01-24T12:50:54.000Z
lib/video/timed_point.ex
breunigs/veloroute
ac3b1eeb2ef2369c27186a138f6ffd8284652dab
[ "0BSD" ]
15
2018-06-21T18:04:12.000Z
2021-10-16T12:54:39.000Z
lib/video/timed_point.ex
breunigs/veloroute
ac3b1eeb2ef2369c27186a138f6ffd8284652dab
[ "0BSD" ]
2
2020-03-09T19:21:36.000Z
2022-01-16T03:29:51.000Z
defmodule Video.TimedPoint do @params [:lon, :lat, :time_offset_ms] @enforce_keys @params defstruct @params @type t :: %__MODULE__{ lat: float(), lon: float(), time_offset_ms: integer() } @spec interpolate(t(), t(), float()) :: t() def interpolate(a, b, t) when t >= 0...
25.088889
93
0.573074
7a621844a883ad49780f92953f59a1e8daa2244a
3,836
ex
Elixir
lib/topics.ex
kmiecikt/simple_mqtt
59d5258810d236ad9bc506a837a1d13be7b63934
[ "Apache-2.0" ]
null
null
null
lib/topics.ex
kmiecikt/simple_mqtt
59d5258810d236ad9bc506a837a1d13be7b63934
[ "Apache-2.0" ]
null
null
null
lib/topics.ex
kmiecikt/simple_mqtt
59d5258810d236ad9bc506a837a1d13be7b63934
[ "Apache-2.0" ]
null
null
null
defmodule SimpleMqtt.Topics do @type published_topic() :: [String.t()] @type subscribed_topic() :: [String.t()] @doc """ Parses topic for published message. ## Examples iex> SimpleMqtt.Topics.parse_published_topic("things/switch_1/on") {:ok, ["things", "switch_1", "on"]} iex> SimpleMqtt.Topics.parse_...
27.4
120
0.636601
7a62248769067bc0707b2df88a287c25104bef40
1,925
ex
Elixir
lib/raft/fs/log.ex
lerencao/raft.ex
f8fc21874354073d1831f9ad0cc933128392935b
[ "MIT" ]
5
2016-05-23T16:28:53.000Z
2016-08-17T09:56:00.000Z
lib/raft/fs/log.ex
lerencao/raft.ex
f8fc21874354073d1831f9ad0cc933128392935b
[ "MIT" ]
5
2016-05-27T03:01:11.000Z
2016-07-06T15:22:19.000Z
lib/raft/fs/log.ex
lerencao/raft.ex
f8fc21874354073d1831f9ad0cc933128392935b
[ "MIT" ]
null
null
null
defmodule Raft.FS.Log do require Logger defmodule Configuration do @type t :: %__MODULE__{ term: non_neg_integer, index: non_neg_integer, members: list(term) } defstruct [ term: nil, index: nil, members: [] ] end defmodule Meta do @type t :: %__MODULE__{...
18.872549
99
0.547013
7a622bcc59128668474399e14eaca7326756d42c
1,339
ex
Elixir
clients/compute/lib/google_api/compute/v1/model/accelerator_types_scoped_list.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/compute/lib/google_api/compute/v1/model/accelerator_types_scoped_list.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/compute/lib/google_api/compute/v1/model/accelerator_types_scoped_list.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
1
2018-07-28T20:50:50.000Z
2018-07-28T20:50:50.000Z
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
32.658537
111
0.755041
7a627a891824327b19bba2c9f48193abab843dbe
3,322
exs
Elixir
test/phoenix_live_view/leex_extension_test.exs
feliperenan/phoenix_live_view
af65bb51fe12ea88e7c66808d2b1118e1c491ddd
[ "MIT" ]
4,659
2019-03-14T20:22:43.000Z
2022-03-31T20:13:30.000Z
test/phoenix_live_view/leex_extension_test.exs
feliperenan/phoenix_live_view
af65bb51fe12ea88e7c66808d2b1118e1c491ddd
[ "MIT" ]
1,745
2019-03-14T22:04:38.000Z
2022-03-31T17:26:25.000Z
test/phoenix_live_view/leex_extension_test.exs
feliperenan/phoenix_live_view
af65bb51fe12ea88e7c66808d2b1118e1c491ddd
[ "MIT" ]
744
2019-03-14T20:48:05.000Z
2022-03-25T14:35:04.000Z
defmodule Phoenix.LiveView.LEEXTest do use ExUnit.Case, async: true alias Phoenix.LiveView.{Engine, Rendered, Component} defmodule View do use Phoenix.View, root: "test/support/templates/leex", path: "" end defmodule SampleComponent do use Phoenix.LiveComponent def render(assigns), do: ~L"FROM ...
32.891089
103
0.605057
7a62eca578fdcff08dd1972921bf27e26aa3578b
33
exs
Elixir
hello.exs
edmilson-dk/learn-elixir
25cb7a1369d9367cd0ddea0fadace956df500358
[ "MIT" ]
null
null
null
hello.exs
edmilson-dk/learn-elixir
25cb7a1369d9367cd0ddea0fadace956df500358
[ "MIT" ]
null
null
null
hello.exs
edmilson-dk/learn-elixir
25cb7a1369d9367cd0ddea0fadace956df500358
[ "MIT" ]
null
null
null
list = ['a', 'b'] IO.puts(list)
8.25
17
0.484848
7a63358d9f64b1763eb00bd37a911345d48b0ebc
1,833
exs
Elixir
clients/cloud_build/mix.exs
MMore/elixir-google-api
0574ec1439d9bbfe22d63965be1681b0f45a94c9
[ "Apache-2.0" ]
null
null
null
clients/cloud_build/mix.exs
MMore/elixir-google-api
0574ec1439d9bbfe22d63965be1681b0f45a94c9
[ "Apache-2.0" ]
null
null
null
clients/cloud_build/mix.exs
MMore/elixir-google-api
0574ec1439d9bbfe22d63965be1681b0f45a94c9
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
27.358209
102
0.654664
7a633f9c344d3eda63ca107edd6f465602bccb14
1,575
ex
Elixir
clients/sheets/lib/google_api/sheets/v4/model/add_protected_range_response.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/sheets/lib/google_api/sheets/v4/model/add_protected_range_response.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/sheets/lib/google_api/sheets/v4/model/add_protected_range_response.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
33.510638
130
0.751746
7a63449ff2099e91d022346f377c16ea9335597b
874
exs
Elixir
test/inmana/restaurant_test.exs
alexfariac/inmana
8ff51040c7c4902ef7a62b129373e5cad054c275
[ "MIT" ]
null
null
null
test/inmana/restaurant_test.exs
alexfariac/inmana
8ff51040c7c4902ef7a62b129373e5cad054c275
[ "MIT" ]
null
null
null
test/inmana/restaurant_test.exs
alexfariac/inmana
8ff51040c7c4902ef7a62b129373e5cad054c275
[ "MIT" ]
null
null
null
defmodule Inmana.RestaurantTest do use Inmana.DataCase, async: true alias Inmana.Restaurant alias Ecto.Changeset describe "changeset/1" do test "when all params are valid, returns a valid changeset" do params = %{name: "Siri cascudo", email: "siri@cascudo.com"} response = Restaurant.changeset...
26.484848
100
0.646453
7a634763b4192e9915203259bf52928fa6472bf8
6,119
exs
Elixir
apps/ewallet_db/priv/repo/seeds_sample/30_transaction_request_and_consumption.exs
jimpeebles/ewallet
ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405
[ "Apache-2.0" ]
null
null
null
apps/ewallet_db/priv/repo/seeds_sample/30_transaction_request_and_consumption.exs
jimpeebles/ewallet
ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405
[ "Apache-2.0" ]
null
null
null
apps/ewallet_db/priv/repo/seeds_sample/30_transaction_request_and_consumption.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...
33.437158
98
0.653865
7a6360f2b3f1106ff6c6b2072aa9273fbc14cc88
630
ex
Elixir
apps/bankingAPI_web/lib/bankingAPI_web/endpoint.ex
danielkv7/bankingAPI
d84b9a12c72d6bbd7d3077346501fde6db25ef19
[ "Apache-2.0" ]
null
null
null
apps/bankingAPI_web/lib/bankingAPI_web/endpoint.ex
danielkv7/bankingAPI
d84b9a12c72d6bbd7d3077346501fde6db25ef19
[ "Apache-2.0" ]
null
null
null
apps/bankingAPI_web/lib/bankingAPI_web/endpoint.ex
danielkv7/bankingAPI
d84b9a12c72d6bbd7d3077346501fde6db25ef19
[ "Apache-2.0" ]
null
null
null
defmodule BankingAPIWeb.Endpoint do use Phoenix.Endpoint, otp_app: :bankingAPI_web @session_options [ store: :cookie, key: "_bankingAPI_web_key", signing_salt: "hZ+imCEs" ] if code_reloading? do plug(Phoenix.CodeReloader) plug(Phoenix.Ecto.CheckRepoStatus, otp_app: :bankingAPI_web) end ...
21.724138
64
0.706349
7a637f3c6de08aba3e916c041bc15af0e863bff7
2,095
exs
Elixir
test/changelog/slack/countdown_test.exs
PsOverflow/changelog.com
53f4ecfc39b021c6b8cfcc0fa11f29aff8038a7f
[ "MIT" ]
1
2020-05-20T16:58:17.000Z
2020-05-20T16:58:17.000Z
test/changelog/slack/countdown_test.exs
type1fool/changelog.com
fbec3528cc3f5adfdc75b008bb92b17efc4f248f
[ "MIT" ]
null
null
null
test/changelog/slack/countdown_test.exs
type1fool/changelog.com
fbec3528cc3f5adfdc75b008bb92b17efc4f248f
[ "MIT" ]
null
null
null
defmodule Changelog.Slack.CountdownTest do use ExUnit.Case import Mock import ChangelogWeb.TimeView, only: [hours_from_now: 1, hours_ago: 1] alias Changelog.Slack.Countdown alias Changelog.Icecast describe "live" do test "when there's no upcoming recording" do response = Countdown.live(nil) ...
36.754386
102
0.665394
7a639364830ca0437e7c34526371bf5e47bf478e
962
ex
Elixir
test/support/channel_case.ex
joeletizia/blogger
64b7b5665cdd75cbf24f5cfd938faf5135eb914a
[ "MIT" ]
null
null
null
test/support/channel_case.ex
joeletizia/blogger
64b7b5665cdd75cbf24f5cfd938faf5135eb914a
[ "MIT" ]
null
null
null
test/support/channel_case.ex
joeletizia/blogger
64b7b5665cdd75cbf24f5cfd938faf5135eb914a
[ "MIT" ]
null
null
null
defmodule Blogger.ChannelCase do @moduledoc """ This module defines the test case to be used by channel tests. Such tests rely on `Phoenix.ChannelTest` and also imports other functionality to make it easier to build and query models. Finally, if the test case interacts with the database, it cannot be ...
22.904762
66
0.700624
7a63a0c546100ed270016c4270740150409519f5
842
exs
Elixir
priv/repo/migrations/20180515163808_create_audit_trail_table.exs
maco2035/console
2a9a65678b8c671c7d92cdb62dfcfc71b84957c5
[ "Apache-2.0" ]
83
2018-05-31T14:49:10.000Z
2022-03-27T16:49:49.000Z
priv/repo/migrations/20180515163808_create_audit_trail_table.exs
maco2035/console
2a9a65678b8c671c7d92cdb62dfcfc71b84957c5
[ "Apache-2.0" ]
267
2018-05-22T23:19:02.000Z
2022-03-31T04:31:06.000Z
priv/repo/migrations/20180515163808_create_audit_trail_table.exs
maco2035/console
2a9a65678b8c671c7d92cdb62dfcfc71b84957c5
[ "Apache-2.0" ]
18
2018-11-20T05:15:54.000Z
2022-03-28T08:20:13.000Z
defmodule Console.Repo.Migrations.CreateAuditTrailTable do use Ecto.Migration def change do create table(:audit_trails, primary_key: false) do add :id, :binary_id, primary_key: true add :user_id, references(:users, on_delete: :nothing, type: :binary_id) add :user_email, :string add :obj...
31.185185
77
0.678147
7a63a3d2bcf040642c8c807f051ea7d3c07afe13
77
ex
Elixir
apps/core/lib/core_web/views/layout_view.ex
votiakov/petal
ec03551da6dadc0c3482b25a5f5dcd400c36db43
[ "MIT" ]
null
null
null
apps/core/lib/core_web/views/layout_view.ex
votiakov/petal
ec03551da6dadc0c3482b25a5f5dcd400c36db43
[ "MIT" ]
null
null
null
apps/core/lib/core_web/views/layout_view.ex
votiakov/petal
ec03551da6dadc0c3482b25a5f5dcd400c36db43
[ "MIT" ]
null
null
null
defmodule Legendary.CoreWeb.LayoutView do use Legendary.CoreWeb, :view end
19.25
41
0.818182
7a63b0d0287c269f2ec466ff55baa920d8e61a83
640
ex
Elixir
web/ex_mon/lib/ex_mon/trainer/pokemon/update.ex
herminiotorres/curso_elixir
19519a2ac27b7c3e4973cdb2053c32dd61647cb5
[ "MIT" ]
1
2021-08-08T22:50:44.000Z
2021-08-08T22:50:44.000Z
web/ex_mon/lib/ex_mon/trainer/pokemon/update.ex
herminiotorres/curso-elixir
19519a2ac27b7c3e4973cdb2053c32dd61647cb5
[ "MIT" ]
null
null
null
web/ex_mon/lib/ex_mon/trainer/pokemon/update.ex
herminiotorres/curso-elixir
19519a2ac27b7c3e4973cdb2053c32dd61647cb5
[ "MIT" ]
null
null
null
defmodule ExMon.Trainer.Pokemon.Update do alias Ecto.UUID alias ExMon.Repo alias ExMon.Trainer.Pokemon def call(%{"id" => uuid} = params) do case UUID.cast(uuid) do :error -> {:error, "Invalid ID Format"} {:ok, _uuid} -> update(params) end end defp update(%{"id" => uuid} = params) do ...
22.857143
55
0.64375
7a63bc02e9778b03c1940fe3a884927e57e700f4
134
ex
Elixir
lib/makrinos/client.ex
tsutsu/makrinos
fbf5429deb9315e64e8108b69cb9b485186ea6ba
[ "MIT" ]
null
null
null
lib/makrinos/client.ex
tsutsu/makrinos
fbf5429deb9315e64e8108b69cb9b485186ea6ba
[ "MIT" ]
1
2018-10-20T00:58:44.000Z
2018-10-22T23:58:24.000Z
lib/makrinos/client.ex
tsutsu/makrinos
fbf5429deb9315e64e8108b69cb9b485186ea6ba
[ "MIT" ]
null
null
null
defprotocol Makrinos.Client do def call(client, rpc_method, rpc_params) def batch_call(client, rpc_method, rpc_params_stream) end
26.8
55
0.813433
7a63c49ed98cad63a16b4fb5f4ae70f644259a83
1,785
exs
Elixir
test/ecto/model/validations_test.exs
scrogson/ecto
fdcf807901683c73c1117d89751e0d5a7a318154
[ "Apache-2.0" ]
null
null
null
test/ecto/model/validations_test.exs
scrogson/ecto
fdcf807901683c73c1117d89751e0d5a7a318154
[ "Apache-2.0" ]
null
null
null
test/ecto/model/validations_test.exs
scrogson/ecto
fdcf807901683c73c1117d89751e0d5a7a318154
[ "Apache-2.0" ]
null
null
null
defmodule Ecto.Model.ValidationsTest do use ExUnit.Case, async: true import Support.CompileHelpers defmodule User do use Ecto.Model schema "users" do field :name, :string field :age, :string field :filename, :string end validate user, name: present(), age:...
24.791667
94
0.626891
7a63c8865d3afdd918a45b3ca01357c1e22b5706
1,706
ex
Elixir
web/models/post.ex
soleo/changelog.com
621c7471b23379e1cdd4a0c960b66ed98d8d1a53
[ "MIT" ]
null
null
null
web/models/post.ex
soleo/changelog.com
621c7471b23379e1cdd4a0c960b66ed98d8d1a53
[ "MIT" ]
null
null
null
web/models/post.ex
soleo/changelog.com
621c7471b23379e1cdd4a0c960b66ed98d8d1a53
[ "MIT" ]
null
null
null
defmodule Changelog.Post do use Changelog.Web, :model alias Changelog.Regexp schema "posts" do field :title, :string field :slug, :string field :guid, :string field :tldr, :string field :body, :string field :published, :boolean, default: false field :published_at, Timex.Ecto.DateT...
23.369863
81
0.685229
7a63db64113e3594b1fea2b8bf457ba0bb9eb210
1,228
ex
Elixir
lib/benchee_dsl.ex
hrzndhrn/benchee_dsl
a6061e751fdd625147fdd320dd6ef3dedb903b30
[ "MIT" ]
3
2020-07-18T11:02:23.000Z
2021-06-24T12:32:56.000Z
lib/benchee_dsl.ex
hrzndhrn/benchee_dsl
a6061e751fdd625147fdd320dd6ef3dedb903b30
[ "MIT" ]
6
2020-05-02T15:32:26.000Z
2020-10-22T11:33:08.000Z
lib/benchee_dsl.ex
hrzndhrn/benchee_dsl
a6061e751fdd625147fdd320dd6ef3dedb903b30
[ "MIT" ]
1
2020-10-22T11:06:05.000Z
2020-10-22T11:06:05.000Z
defmodule BencheeDsl do @moduledoc """ A DSL for `Benchee`. """ alias BencheeDsl.Server @ending "_bench.exs" @default_config [formatters: [Benchee.Formatters.Console]] @doc """ Runs the benchmarks. """ def run(config \\ []) do Server.path() |> benchmarks() |> Enum.each(&Code.require_f...
19.492063
60
0.587948
7a640e75c07da7dcface7ec3ccd4e8ed0d41b943
1,961
exs
Elixir
test/heartcheck/checks/firewall_test.exs
fcapovilla/heartcheck-elixir
b46bc0f8ab46edcf1b14a20de59529868de1ca32
[ "MIT" ]
31
2018-01-09T14:34:22.000Z
2022-03-30T18:14:01.000Z
test/heartcheck/checks/firewall_test.exs
fcapovilla/heartcheck-elixir
b46bc0f8ab46edcf1b14a20de59529868de1ca32
[ "MIT" ]
7
2018-12-24T01:18:34.000Z
2021-10-13T03:10:06.000Z
test/heartcheck/checks/firewall_test.exs
fcapovilla/heartcheck-elixir
b46bc0f8ab46edcf1b14a20de59529868de1ca32
[ "MIT" ]
6
2018-12-22T19:19:38.000Z
2021-09-30T17:04:56.000Z
defmodule HeartCheck.Checks.FirewallTest do use ExUnit.Case, async: true alias HeartCheck.Checks.Firewall setup _tags do {:ok, s} = :ranch_tcp.listen(port: 0) {:ok, port} = :inet.port(s) :erlang.port_close(s) {:ok, port: port} end describe "validate" do test "connects to a open port", ...
28.838235
94
0.597654
7a642e1a20d37c913bd2e393129f11158715995e
865
exs
Elixir
mix.exs
adnikiforov/iuliia-ex
b3b52c16021e688cd09caa52d715c7caeafb82eb
[ "MIT" ]
2
2021-04-12T14:06:08.000Z
2021-04-12T14:12:35.000Z
mix.exs
adnikiforov/iuliia-ex
b3b52c16021e688cd09caa52d715c7caeafb82eb
[ "MIT" ]
null
null
null
mix.exs
adnikiforov/iuliia-ex
b3b52c16021e688cd09caa52d715c7caeafb82eb
[ "MIT" ]
null
null
null
defmodule Iuliia.MixProject do use Mix.Project def project do [ app: :iuliia, description: "Russian transliteration using nalgeon/iuliia schemas", version: "0.1.3", elixir: "~> 1.11", start_permanent: Mix.env() == :prod, deps: deps(), source_url: "https://github.com/ad...
21.625
74
0.560694
7a643c12142c19f06e1415219dbefd26105003ba
839
ex
Elixir
apps/aehttpserver/lib/aehttpserver/web/controllers/tx_pool_controller.ex
SingularityMatrix/elixir-node
ad126aa97931165185cf35454718ed2eee40ceed
[ "ISC" ]
131
2018-03-10T01:35:56.000Z
2021-12-27T13:44:41.000Z
apps/aehttpserver/lib/aehttpserver/web/controllers/tx_pool_controller.ex
SingularityMatrix/elixir-node
ad126aa97931165185cf35454718ed2eee40ceed
[ "ISC" ]
445
2018-03-12T09:46:17.000Z
2018-12-12T09:52:07.000Z
apps/aehttpserver/lib/aehttpserver/web/controllers/tx_pool_controller.ex
SingularityMatrix/elixir-node
ad126aa97931165185cf35454718ed2eee40ceed
[ "ISC" ]
23
2018-03-12T12:01:28.000Z
2022-03-06T09:22:17.000Z
defmodule Aehttpserver.Web.TxPoolController do use Aehttpserver.Web, :controller alias Aecore.Tx.Pool.Worker, as: Pool alias Aecore.Tx.SignedTx alias Aecore.Account.Account alias Aecore.Chain.Identifier def show(conn, params) do pool_txs = Map.values(Pool.get_pool()) acc = Account.base58c_decode(p...
26.21875
70
0.68534
7a646ef9a530a482dbb58fd1cb18ca0fbf198951
906
exs
Elixir
mix.exs
karpov-dn/triton
65dd7ee4dc2d899ca0e5874e82fa5b8744f99f98
[ "MIT" ]
71
2017-11-29T03:40:54.000Z
2022-01-10T22:11:48.000Z
mix.exs
karpov-dn/triton
65dd7ee4dc2d899ca0e5874e82fa5b8744f99f98
[ "MIT" ]
19
2018-04-13T18:25:05.000Z
2020-12-24T05:22:41.000Z
mix.exs
karpov-dn/triton
65dd7ee4dc2d899ca0e5874e82fa5b8744f99f98
[ "MIT" ]
23
2017-11-02T21:34:54.000Z
2021-08-24T08:29:34.000Z
defmodule Triton.Mixfile do use Mix.Project @version "0.2.4" @url "https://github.com/blitzstudios/triton" @maintainers ["Weixi Yen"] def project do [name: "Triton", app: :triton, version: @version, source_url: @url, elixir: "~> 1.4", description: "Pure Elixir Cassandra ORM buil...
20.590909
70
0.562914
7a6487125691bd7757b53fe8e6acaf9706e0414c
61
exs
Elixir
test/medic_test.exs
eahanson/medic
01f35f2aa22e7120cf1bd492e6e5400a29224791
[ "MIT" ]
3
2021-06-18T18:42:35.000Z
2022-02-09T01:54:58.000Z
test/medic_test.exs
eahanson/medic
01f35f2aa22e7120cf1bd492e6e5400a29224791
[ "MIT" ]
3
2021-06-17T19:02:32.000Z
2021-06-17T19:44:35.000Z
test/medic_test.exs
eahanson/medic
01f35f2aa22e7120cf1bd492e6e5400a29224791
[ "MIT" ]
1
2022-03-10T19:16:14.000Z
2022-03-10T19:16:14.000Z
defmodule MedicTest do use ExUnit.Case doctest Medic end
12.2
22
0.786885
7a64da3e4df8746008c4460d6261f75944ef9ffb
1,966
ex
Elixir
lib/graphql/resolvers/comment.ex
leonardocouy/accent
29fb324395ff998cc5cdc6947c60070ffabe647c
[ "BSD-3-Clause" ]
null
null
null
lib/graphql/resolvers/comment.ex
leonardocouy/accent
29fb324395ff998cc5cdc6947c60070ffabe647c
[ "BSD-3-Clause" ]
null
null
null
lib/graphql/resolvers/comment.ex
leonardocouy/accent
29fb324395ff998cc5cdc6947c60070ffabe647c
[ "BSD-3-Clause" ]
null
null
null
defmodule Accent.GraphQL.Resolvers.Comment do alias Accent.Scopes.Comment, as: CommentScope alias Accent.{ Repo, Comment, Translation, Project, Hook, GraphQL.Paginated, Plugs.GraphQLContext } @typep comment_operation :: {:ok, %{comment: Comment.t() | nil, errors: [String.t()] | nil...
29.343284
115
0.619023
7a64e16cb34b2a554ed925bc96cddcc6161eb9f6
1,165
exs
Elixir
config/config.exs
andruby/whois.ex
07a33eeac40bf14907e9ee1c9032a6a694157a74
[ "MIT" ]
null
null
null
config/config.exs
andruby/whois.ex
07a33eeac40bf14907e9ee1c9032a6a694157a74
[ "MIT" ]
null
null
null
config/config.exs
andruby/whois.ex
07a33eeac40bf14907e9ee1c9032a6a694157a74
[ "MIT" ]
null
null
null
# This file is responsible for configuring your application # and its dependencies with the aid of the Mix.Config module. use Mix.Config config :whois, domains_file: "config/domains.json" # This configuration is loaded before any dependency and is restricted # to this project. If another project depends on this proje...
35.30303
73
0.751073
7a64e8c57a4aeb1cd8c59c0b28763789afc911b7
58
exs
Elixir
test/test_helper.exs
fschuindt/Ace
08262123d1c37797191769e1f92670d30f625dec
[ "MIT" ]
null
null
null
test/test_helper.exs
fschuindt/Ace
08262123d1c37797191769e1f92670d30f625dec
[ "MIT" ]
null
null
null
test/test_helper.exs
fschuindt/Ace
08262123d1c37797191769e1f92670d30f625dec
[ "MIT" ]
null
null
null
Code.require_file("support.exs", __DIR__) ExUnit.start()
14.5
41
0.758621
7a6507d315fd5d7382006788485df6b1587f543a
2,814
exs
Elixir
test/exzeitable/html/action_button_test.exs
e-fu/exzeitable
195da90e7fbab867c4964acab717e1ccb68ab226
[ "MIT" ]
138
2019-10-04T19:55:35.000Z
2022-03-31T10:24:32.000Z
test/exzeitable/html/action_button_test.exs
e-fu/exzeitable
195da90e7fbab867c4964acab717e1ccb68ab226
[ "MIT" ]
127
2019-10-03T21:51:27.000Z
2022-03-31T02:57:00.000Z
test/exzeitable/html/action_button_test.exs
e-fu/exzeitable
195da90e7fbab867c4964acab717e1ccb68ab226
[ "MIT" ]
14
2019-10-04T19:55:41.000Z
2022-03-27T04:47:30.000Z
defmodule Exzeitable.HTML.ActionButtonTest do @moduledoc false use TestWeb.DataCase, async: true alias Exzeitable.{Database, HTML.Filter} alias Exzeitable.HTML.ActionButton alias TestWeb.{Post, User} @assigns %{ query: from(p in Post, preload: [:user]), parent: nil, routes: TestWeb.Router.Helpe...
25.816514
85
0.560412
7a654df55ae2df3faaeb720f284535f7e0a0e66f
2,976
exs
Elixir
test/absinthe_generator/schema_test.exs
MikaAK/absinthe_generator
2025daeac092c5a2fa8030bcddf770fd3104cd0f
[ "MIT" ]
1
2022-02-28T14:58:08.000Z
2022-02-28T14:58:08.000Z
test/absinthe_generator/schema_test.exs
MikaAK/absinthe_generator
2025daeac092c5a2fa8030bcddf770fd3104cd0f
[ "MIT" ]
null
null
null
test/absinthe_generator/schema_test.exs
MikaAK/absinthe_generator
2025daeac092c5a2fa8030bcddf770fd3104cd0f
[ "MIT" ]
null
null
null
defmodule AbsintheGenerator.SchemaTest do use ExUnit.Case, async: true @test_struct %AbsintheGenerator.Schema{ app_name: "MyApp", mutations: ["user", "summoner"], queries: ["user", "summoner"], subscriptions: ["user"], types: ["User", "Summoner"], post_middleware: [ %AbsintheGenerator...
24.393443
87
0.655914
7a65597ec8530490afd03db8740ae4d681ac1def
4,138
ex
Elixir
lib/wechat/work/chat_robot.ex
feng19/wechat
431c22818c60cd01fc5c676aa060feb303d0c444
[ "Apache-2.0" ]
7
2021-01-22T04:07:29.000Z
2021-12-14T14:01:30.000Z
lib/wechat/work/chat_robot.ex
feng19/wechat
431c22818c60cd01fc5c676aa060feb303d0c444
[ "Apache-2.0" ]
1
2021-03-17T15:44:26.000Z
2021-03-17T15:44:26.000Z
lib/wechat/work/chat_robot.ex
feng19/wechat
431c22818c60cd01fc5c676aa060feb303d0c444
[ "Apache-2.0" ]
2
2021-03-17T14:35:56.000Z
2021-08-10T07:44:10.000Z
defmodule WeChat.Work.ChatRobot do @moduledoc """ 群机器人 在终端某个群组添加机器人之后,创建者可以在机器人详情页看的该机器人特有的webhookurl。 开发者可以按以下说明a向这个地址发起HTTP POST 请求,即可实现给该群组发送消息。 当前自定义机器人支持文本(text)、markdown(markdown)、图片(image)、图文(news)四种消息类型。 机器人的text/markdown类型消息支持在content中使用<@userid>扩展语法来@群成员 消息发送频率限制: 每个机器人发送的消息不能超过20条/分钟。 """...
29.140845
96
0.665297
7a656d5daa46fc33b32a92cb7aaf7972bd91dd77
1,057
exs
Elixir
config/config.exs
Dhall777/systemstats
380426af8fc898521201311b11881cc8d2db3388
[ "BSD-3-Clause" ]
null
null
null
config/config.exs
Dhall777/systemstats
380426af8fc898521201311b11881cc8d2db3388
[ "BSD-3-Clause" ]
null
null
null
config/config.exs
Dhall777/systemstats
380426af8fc898521201311b11881cc8d2db3388
[ "BSD-3-Clause" ]
null
null
null
# This file is responsible for configuring your application # and its dependencies with the aid of the Mix.Config module. # # This configuration file is loaded before any dependency and # is restricted to this project. # General application configuration use Mix.Config config :systemstats, ecto_repos: [Systemstats....
33.03125
89
0.776727
7a65bc577e1271d790df67de7b177337a22a895a
374
ex
Elixir
lib/delivery/content/model/organization.ex
Simon-Initiative/proving-ground
ab6ba03051e55edbaa09535f11d9192776c8d901
[ "MIT" ]
null
null
null
lib/delivery/content/model/organization.ex
Simon-Initiative/proving-ground
ab6ba03051e55edbaa09535f11d9192776c8d901
[ "MIT" ]
4
2021-03-01T20:51:23.000Z
2021-09-20T21:37:12.000Z
lib/delivery/content/model/organization.ex
Simon-Initiative/proving-ground
ab6ba03051e55edbaa09535f11d9192776c8d901
[ "MIT" ]
null
null
null
defmodule Delivery.Content.Organization do defstruct nodes: [], object: "organization", id: "default_org", title: "Default organization" defimpl Inspect do def inspect(%Delivery.Content.Organization{nodes: nodes}, _) do n = Enum.map(nodes, fn a -> a.type end) |> Enum.join("\n") "<O...
26.714286
95
0.644385
7a65bea185fdf51d77b7a2e91b5f6b74874e3d52
51
exs
Elixir
v01/ch03/variable.edit1.exs
oiax/elixir-primer
c8b89a29f108cc335b8e1341b7a1e90ec12adc66
[ "MIT" ]
null
null
null
v01/ch03/variable.edit1.exs
oiax/elixir-primer
c8b89a29f108cc335b8e1341b7a1e90ec12adc66
[ "MIT" ]
null
null
null
v01/ch03/variable.edit1.exs
oiax/elixir-primer
c8b89a29f108cc335b8e1341b7a1e90ec12adc66
[ "MIT" ]
null
null
null
# この行全体がコメント。 n = 1 n = n + 1 IO.puts n # 行末のコメント。
10.2
20
0.568627
7a65cc448eaa56dad77e925d8bd165500dcd58a5
186
exs
Elixir
config/test.exs
dcdourado/auth_blog
29ed5d5d0d90d83a1a0a05176d0378e56de79823
[ "MIT" ]
null
null
null
config/test.exs
dcdourado/auth_blog
29ed5d5d0d90d83a1a0a05176d0378e56de79823
[ "MIT" ]
1
2021-09-11T13:23:29.000Z
2021-09-11T13:23:29.000Z
config/test.exs
dcdourado/auth_blog
29ed5d5d0d90d83a1a0a05176d0378e56de79823
[ "MIT" ]
null
null
null
import Config config :auth_blog, AuthBlog.Repo, database: "auth_blog_test", username: "postgres", password: "postgres", hostname: "localhost", pool: Ecto.Adapters.SQL.Sandbox
20.666667
33
0.731183
7a6614e5de50c66e40f7fd5734fcb3ffeae37f63
318
ex
Elixir
fade/lib/snapshot/types/memory_snapshot.ex
ahives/Fade
7094b6703933e41a1400b1053764335e32928b0a
[ "Apache-2.0" ]
null
null
null
fade/lib/snapshot/types/memory_snapshot.ex
ahives/Fade
7094b6703933e41a1400b1053764335e32928b0a
[ "Apache-2.0" ]
null
null
null
fade/lib/snapshot/types/memory_snapshot.ex
ahives/Fade
7094b6703933e41a1400b1053764335e32928b0a
[ "Apache-2.0" ]
null
null
null
defmodule Fade.Snapshot.Types.MemorySnapshot do use TypedStruct typedstruct do field(:node_identifier, String.t()) field(:used, integer()) field(:usage_rate, integer()) field(:limit, integer()) field(:alarm_in_effect, integer()) def new(fields), do: struct!(__MODULE__, fields) end end
22.714286
52
0.691824
7a661fdcb9d903e5f45265d88fa067be7cb6f2c2
1,127
ex
Elixir
examples/server/lib/server_web/channels/user_socket.ex
charaku/phoenix_wings
b2881ecaea0841d6c27e903ca8965c3ccb6a39c9
[ "MIT" ]
132
2017-12-30T06:12:34.000Z
2022-03-13T16:16:24.000Z
examples/server/lib/server_web/channels/user_socket.ex
charaku/phoenix_wings
b2881ecaea0841d6c27e903ca8965c3ccb6a39c9
[ "MIT" ]
25
2018-04-04T14:40:30.000Z
2022-03-23T21:25:17.000Z
examples/server/lib/server_web/channels/user_socket.ex
charaku/phoenix_wings
b2881ecaea0841d6c27e903ca8965c3ccb6a39c9
[ "MIT" ]
46
2018-03-18T17:35:21.000Z
2022-03-23T20:37:01.000Z
defmodule ServerWeb.UserSocket do use Phoenix.Socket ## Channels # channel "room:*", ServerWeb.RoomChannel # channel "flutter_chat:lobby", ServerWeb.FlutterChatChannel # Socket params are passed from the client and can # be used to verify and authenticate a user. After # verification, you can put defa...
31.305556
83
0.700976
7a662d3126f15542987c0cc1a808128a9eaf3886
449
ex
Elixir
lib/types/library.ex
FreedomBen/tex
8c94703c3dbd7e6adc40d4f29ff45568a6a152df
[ "MIT" ]
null
null
null
lib/types/library.ex
FreedomBen/tex
8c94703c3dbd7e6adc40d4f29ff45568a6a152df
[ "MIT" ]
null
null
null
lib/types/library.ex
FreedomBen/tex
8c94703c3dbd7e6adc40d4f29ff45568a6a152df
[ "MIT" ]
null
null
null
defmodule Tex.Types.Library do @moduledoc false use TypedStruct use Tex.Util.StructBuilder typedstruct do field :name, String.t(), enforce: true, default: "" field :version, String.t(), enforce: true, default: "" field :checksum, String.t(), enforce: true, default: "" field :tarball, binary(),...
26.411765
76
0.665924
7a663d3c2855b225a088502402090f36e08f27db
1,164
ex
Elixir
lib/votr_web/channels/user_socket.ex
wjanssens/votr
4fdd2a6e5ac9178a7fa90578f75a248e2bf161b6
[ "MIT" ]
1
2018-04-27T09:43:27.000Z
2018-04-27T09:43:27.000Z
lib/votr_web/channels/user_socket.ex
wjanssens/votr
4fdd2a6e5ac9178a7fa90578f75a248e2bf161b6
[ "MIT" ]
null
null
null
lib/votr_web/channels/user_socket.ex
wjanssens/votr
4fdd2a6e5ac9178a7fa90578f75a248e2bf161b6
[ "MIT" ]
null
null
null
defmodule VotrWeb.UserSocket do use Phoenix.Socket ## Channels # channel "room:*", VotrWeb.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 authent...
30.631579
83
0.701031
7a6646d07483f8f36a98e29a9d6859ff82cfc25b
2,226
ex
Elixir
exercism/elixir/grep/lib/grep.ex
Tyyagoo/studies
f8fcc3a539cfb6d04a149174c88bf2208e220b96
[ "Unlicense" ]
null
null
null
exercism/elixir/grep/lib/grep.ex
Tyyagoo/studies
f8fcc3a539cfb6d04a149174c88bf2208e220b96
[ "Unlicense" ]
null
null
null
exercism/elixir/grep/lib/grep.ex
Tyyagoo/studies
f8fcc3a539cfb6d04a149174c88bf2208e220b96
[ "Unlicense" ]
null
null
null
defmodule Grep do @typep line :: {content :: String.t(), line_number :: pos_integer()} @typep parsed_file :: {file_name :: String.t(), matched_lines :: [line]} @spec grep(String.t(), [String.t()], [String.t()]) :: String.t() def grep(pattern, flags, files) do match_fun = parse_match_flags(flags, pattern) ...
31.352113
94
0.563792
7a6649beab83aa32ccd0ca0bd3d335a4043ec9a1
45,241
ex
Elixir
lib/phoenix_live_view.ex
almirsarajcic/phoenix_live_view
6cecf857494d4ec43d89be5d6cc4d4d4ff53780d
[ "MIT" ]
null
null
null
lib/phoenix_live_view.ex
almirsarajcic/phoenix_live_view
6cecf857494d4ec43d89be5d6cc4d4d4ff53780d
[ "MIT" ]
null
null
null
lib/phoenix_live_view.ex
almirsarajcic/phoenix_live_view
6cecf857494d4ec43d89be5d6cc4d4d4ff53780d
[ "MIT" ]
null
null
null
defmodule Phoenix.LiveView do @moduledoc ~S''' LiveView provides rich, real-time user experiences with server-rendered HTML. The LiveView programming model is declarative: instead of saying "once event X happens, change Y on the page", events in LiveView are regular messages which may cause changes to it...
36.811229
148
0.682522
7a6650a842ec9d0e5fd020599b096fdbc3e09a3d
922
ex
Elixir
apps/xomg_tasks/lib/mix/tasks/child_chain.ex
kendricktan/elixir-omg
834c103fd5c4b9e063c1d32b9b4e5728abb64009
[ "Apache-2.0" ]
null
null
null
apps/xomg_tasks/lib/mix/tasks/child_chain.ex
kendricktan/elixir-omg
834c103fd5c4b9e063c1d32b9b4e5728abb64009
[ "Apache-2.0" ]
null
null
null
apps/xomg_tasks/lib/mix/tasks/child_chain.ex
kendricktan/elixir-omg
834c103fd5c4b9e063c1d32b9b4e5728abb64009
[ "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...
28.8125
74
0.735358
7a6671b6db38a7ba7f33802ad985865712d425b9
425
exs
Elixir
test/f06_test.exs
vpsinc/modbus
e1b04916dc12c104e032122738815a1e3910394b
[ "Apache-2.0" ]
null
null
null
test/f06_test.exs
vpsinc/modbus
e1b04916dc12c104e032122738815a1e3910394b
[ "Apache-2.0" ]
null
null
null
test/f06_test.exs
vpsinc/modbus
e1b04916dc12c104e032122738815a1e3910394b
[ "Apache-2.0" ]
null
null
null
defmodule Modbus.F06Test do use ExUnit.Case import Modbus.TestHelper test "Write 0x6162 to Single Holding Register" do model0 = %{0x50 => %{{:hr, 0x5152} => 0}} model1 = %{0x50 => %{{:hr, 0x5152} => 0x6162}} val0 = 0x6162 cmd0 = {:phr, 0x50, 0x5152, val0} req0 = <<0x50, 6, 0x51, 0x52, 0x61, 0...
28.333333
51
0.602353
7a668c2966a486f5303b2a36257e869653c2440b
829
ex
Elixir
lib/slack_throttle.ex
jh2/slack_throttle
bfe2c6a5d9be5189e644210e3b9b6c4882bac886
[ "MIT" ]
1
2017-06-30T03:42:27.000Z
2017-06-30T03:42:27.000Z
lib/slack_throttle.ex
jh2/slack_throttle
bfe2c6a5d9be5189e644210e3b9b6c4882bac886
[ "MIT" ]
null
null
null
lib/slack_throttle.ex
jh2/slack_throttle
bfe2c6a5d9be5189e644210e3b9b6c4882bac886
[ "MIT" ]
null
null
null
defmodule SlackThrottle do @moduledoc false use Application # See http://elixir-lang.org/docs/stable/elixir/Application.html # for more information on OTP Applications def start(_type, _args) do import Supervisor.Spec, warn: false # Define workers and child supervisors to be supervised children...
33.16
85
0.722557
7a66a4abb414e88ef7eae5d08a2f3d40a3f81d1f
435
exs
Elixir
test/unit/hologram/compiler/decoders/module_type_decoder_test.exs
gregjohnsonsaltaire/hologram
aa8e9ea0d599def864c263cc37cc8ee31f02ac4a
[ "MIT" ]
40
2022-01-19T20:27:36.000Z
2022-03-31T18:17:41.000Z
test/unit/hologram/compiler/decoders/module_type_decoder_test.exs
gregjohnsonsaltaire/hologram
aa8e9ea0d599def864c263cc37cc8ee31f02ac4a
[ "MIT" ]
42
2022-02-03T22:52:43.000Z
2022-03-26T20:57:32.000Z
test/unit/hologram/compiler/decoders/module_type_decoder_test.exs
gregjohnsonsaltaire/hologram
aa8e9ea0d599def864c263cc37cc8ee31f02ac4a
[ "MIT" ]
3
2022-02-10T04:00:37.000Z
2022-03-08T22:07:45.000Z
defmodule Hologram.Compiler.ModuleTypeDecoderTest do use Hologram.Test.UnitCase, async: true alias Hologram.Compiler.ModuleTypeDecoder test "encoded module decoding" do value = %{ "type" => "module", "className" => "Elixir_Hologram_Compiler_ModuleTypeDecoderTest" } result = ModuleTypeDec...
25.588235
69
0.735632
7a66b8eda50a232368c02ab030b0152e37de00f9
1,791
ex
Elixir
lib/libelium_smart-water.ex
eagle-te/element-parsers
c5fdec8c859f510bc7c416d7150f46c3a9f8bd7e
[ "MIT" ]
null
null
null
lib/libelium_smart-water.ex
eagle-te/element-parsers
c5fdec8c859f510bc7c416d7150f46c3a9f8bd7e
[ "MIT" ]
null
null
null
lib/libelium_smart-water.ex
eagle-te/element-parsers
c5fdec8c859f510bc7c416d7150f46c3a9f8bd7e
[ "MIT" ]
null
null
null
defmodule Parser do use Platform.Parsing.Behaviour # ELEMENT IoT Parser for Libelium Smart Environment Device # According to documentation provided by Libelium # Link: http://www.libelium.com/development/plug-sense # Documentation: http://www.libelium.com/downloads/documentation/waspmote_plug_and_sense_techn...
24.534247
111
0.509771
7a66cbe3e16c343f31f04f57ef31a232a1972e37
1,425
ex
Elixir
clients/app_engine/lib/google_api/app_engine/v1/model/entrypoint.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/app_engine/lib/google_api/app_engine/v1/model/entrypoint.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/app_engine/lib/google_api/app_engine/v1/model/entrypoint.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 ...
30.319149
119
0.731228
7a6729af5fe02d1795610004630f580f4a3e2945
1,102
exs
Elixir
mix.exs
dwhelan/ok_computer
538abcc5b325a0d41dbf642c22bbbbe86c95a164
[ "MIT" ]
null
null
null
mix.exs
dwhelan/ok_computer
538abcc5b325a0d41dbf642c22bbbbe86c95a164
[ "MIT" ]
null
null
null
mix.exs
dwhelan/ok_computer
538abcc5b325a0d41dbf642c22bbbbe86c95a164
[ "MIT" ]
null
null
null
defmodule OkComputer.MixProject do use Mix.Project def project do [ app: :ok_computer, version: "0.1.0", name: "ok_computer", description: "Supports railroad style processing for ok and error values.", source_url: "https://github.com/dwhelan/ok_computer", package: package(),...
22.489796
81
0.573503
7a67484f45a1832b3fb2731a7e6e3d2572a9c830
448
ex
Elixir
lib/f1_calendar_bot/cal.ex
evbogdanov/f1_calendar_bot
cc9fb51cea19062dde1cb1b1194406de4ff19938
[ "BSD-3-Clause" ]
null
null
null
lib/f1_calendar_bot/cal.ex
evbogdanov/f1_calendar_bot
cc9fb51cea19062dde1cb1b1194406de4ff19938
[ "BSD-3-Clause" ]
null
null
null
lib/f1_calendar_bot/cal.ex
evbogdanov/f1_calendar_bot
cc9fb51cea19062dde1cb1b1194406de4ff19938
[ "BSD-3-Clause" ]
null
null
null
defmodule F1CalendarBot.Cal do def parse_date(string) do [year, month, day] = string |> String.split("-") |> Enum.map(&String.to_integer/1) {:ok, date} = Date.new(year, month, day) date end def days_between(date1, date2) do days1 = Date.to_erl(date1) |> :calendar....
26.352941
68
0.622768
7a676d4d05ca78085ba716b337737459949abf05
3,560
exs
Elixir
apps/omg_eth/test/omg_eth/eth_test.exs
kendricktan/elixir-omg
834c103fd5c4b9e063c1d32b9b4e5728abb64009
[ "Apache-2.0" ]
null
null
null
apps/omg_eth/test/omg_eth/eth_test.exs
kendricktan/elixir-omg
834c103fd5c4b9e063c1d32b9b4e5728abb64009
[ "Apache-2.0" ]
null
null
null
apps/omg_eth/test/omg_eth/eth_test.exs
kendricktan/elixir-omg
834c103fd5c4b9e063c1d32b9b4e5728abb64009
[ "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...
37.473684
121
0.701124
7a67787ea73d7402b2947b1437f548f71f1719c8
753
exs
Elixir
mix.exs
xkulale/eredis_cluster
69dd345867bd14353890c559ed07820e6c001ef2
[ "MIT" ]
70
2015-05-22T08:17:08.000Z
2022-01-08T03:10:09.000Z
mix.exs
xkulale/eredis_cluster
69dd345867bd14353890c559ed07820e6c001ef2
[ "MIT" ]
27
2015-10-08T20:30:36.000Z
2022-02-14T03:56:35.000Z
mix.exs
xkulale/eredis_cluster
69dd345867bd14353890c559ed07820e6c001ef2
[ "MIT" ]
49
2015-08-07T03:10:24.000Z
2022-01-08T03:09:54.000Z
defmodule EredisCluster.Mixfile do use Mix.Project @version String.trim(File.read!("VERSION")) def project do [app: :eredis_cluster, version: @version, description: "An erlang wrapper for eredis library to support cluster mode", package: package(), deps: deps()] end def application ...
22.818182
81
0.616202
7a679af8851299bf136ee6335e447597fe514209
4,803
ex
Elixir
lib/app/placa/placa.ex
krlsdu/placamercosul
46f1f404eca14897887179d46c00b75c614427ff
[ "MIT" ]
null
null
null
lib/app/placa/placa.ex
krlsdu/placamercosul
46f1f404eca14897887179d46c00b75c614427ff
[ "MIT" ]
null
null
null
lib/app/placa/placa.ex
krlsdu/placamercosul
46f1f404eca14897887179d46c00b75c614427ff
[ "MIT" ]
null
null
null
require IEx defmodule App.Placa do @moduledoc """ The Placa context. """ import Ecto.Query, warn: false alias App.Repo alias App.Placa.PlacaMercosul @doc """ Returns the list of placamercosul. ## Examples iex> list_placamercosul() [%PlacaMercosul{}, ...] """ def list_placamercos...
18.262357
72
0.580054
7a679cb0fdea009ff8fbe129ae392e6fd509c0da
9,871
ex
Elixir
lib/livebook_web/live/session_live/persistence_live.ex
chriskdon/livebook
b1b573b5f4b49b2e90585e8f511e7b261dcae550
[ "Apache-2.0" ]
1,846
2021-04-13T14:46:36.000Z
2021-07-14T20:37:40.000Z
lib/livebook_web/live/session_live/persistence_live.ex
chriskdon/livebook
b1b573b5f4b49b2e90585e8f511e7b261dcae550
[ "Apache-2.0" ]
411
2021-07-15T07:41:54.000Z
2022-03-31T21:34:22.000Z
lib/livebook_web/live/session_live/persistence_live.ex
chriskdon/livebook
b1b573b5f4b49b2e90585e8f511e7b261dcae550
[ "Apache-2.0" ]
130
2021-04-13T15:43:55.000Z
2021-07-12T16:57:46.000Z
defmodule LivebookWeb.SessionLive.PersistenceLive do # TODO: rewrite this live view as a component, once live_view # has a unified way of sending events programmatically from a child # component to parent live view or component. Currently we send an # event to self() from FileSelectComponent and use handle_info...
31.841935
122
0.575119
7a67b220171e2d43199ff6205d9bbf15b16e7d13
25,333
ex
Elixir
lib/cldr/number/system.ex
mediapress-ltd/cldr_numbers
e9c1bded034ef13932328a9ad383798c7d853928
[ "Apache-2.0" ]
null
null
null
lib/cldr/number/system.ex
mediapress-ltd/cldr_numbers
e9c1bded034ef13932328a9ad383798c7d853928
[ "Apache-2.0" ]
null
null
null
lib/cldr/number/system.ex
mediapress-ltd/cldr_numbers
e9c1bded034ef13932328a9ad383798c7d853928
[ "Apache-2.0" ]
null
null
null
defmodule Cldr.Number.System do @moduledoc """ Functions to manage number systems which describe the numbering characteristics for a locale. A number system defines the digits (if they exist in this number system) or or rules (if the number system does not have decimal digits). The system name is also used ...
29.909091
139
0.672798
7a67b72892cc385b08e21f68aac4355bc38ba633
3,165
ex
Elixir
lib/slack/state.ex
christhekeele/Elixir-Slack
322fd7ee96709f35b48b6885d976343214d1dc14
[ "MIT" ]
null
null
null
lib/slack/state.ex
christhekeele/Elixir-Slack
322fd7ee96709f35b48b6885d976343214d1dc14
[ "MIT" ]
1
2017-01-08T19:04:57.000Z
2017-01-08T20:35:02.000Z
lib/slack/state.ex
christhekeele/Elixir-Slack
322fd7ee96709f35b48b6885d976343214d1dc14
[ "MIT" ]
null
null
null
defmodule Slack.State do @behaviour Access def fetch(client, key) defdelegate fetch(client, key), to: Map def get_and_update(client, key, function) defdelegate get_and_update(client, key, function), to: Map defstruct [ :process, :client, :token, :me, :team, :bots, :channels, ...
31.029412
110
0.64139
7a67db06ddee475361a3227d8ad83a1e87541a3f
106,383
ex
Elixir
lib/elixir/lib/enum.ex
voltone/elixir
e208e1066e484c46726e4d931c18e54aba036f6e
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/enum.ex
voltone/elixir
e208e1066e484c46726e4d931c18e54aba036f6e
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/enum.ex
voltone/elixir
e208e1066e484c46726e4d931c18e54aba036f6e
[ "Apache-2.0" ]
null
null
null
defprotocol Enumerable do @moduledoc """ Enumerable protocol used by `Enum` and `Stream` modules. When you invoke a function in the `Enum` module, the first argument is usually a collection that must implement this protocol. For example, the expression: Enum.map([1, 2, 3], &(&1 * 2)) invokes `Enume...
28.467487
105
0.616875
7a67ecfc2eab260237ac89613a8861e0168bab6a
7,634
exs
Elixir
test/phoenix_live_view/integrations/update_test.exs
dbi1/phoenix_live_view
1fff01e0234a75b369ac9085b3b4ec096ef0b52b
[ "MIT" ]
null
null
null
test/phoenix_live_view/integrations/update_test.exs
dbi1/phoenix_live_view
1fff01e0234a75b369ac9085b3b4ec096ef0b52b
[ "MIT" ]
null
null
null
test/phoenix_live_view/integrations/update_test.exs
dbi1/phoenix_live_view
1fff01e0234a75b369ac9085b3b4ec096ef0b52b
[ "MIT" ]
null
null
null
defmodule Phoenix.LiveView.UpdateTest do use ExUnit.Case, async: true use Phoenix.ConnTest import Phoenix.LiveViewTest alias Phoenix.LiveViewTest.{Endpoint, DOM} @endpoint Endpoint setup config do {:ok, conn: Plug.Test.init_test_session(Phoenix.ConnTest.build_conn(), config[:session] || %{})} ...
37.605911
95
0.495284
7a67f37fe2e61a04c0c2b8b3985af08bc96dfdc9
5,358
ex
Elixir
lib/ex_wikipedia/page/page_parser.ex
luoken/ex-wikipedia
1d98078682bf56e9f17331159c59a5343e7325ec
[ "Apache-2.0" ]
2
2022-01-15T00:21:42.000Z
2022-01-16T20:12:38.000Z
lib/ex_wikipedia/page/page_parser.ex
luoken/ex-wikipedia
1d98078682bf56e9f17331159c59a5343e7325ec
[ "Apache-2.0" ]
1
2022-02-01T12:48:51.000Z
2022-02-10T21:32:37.000Z
lib/ex_wikipedia/page/page_parser.ex
luoken/ex-wikipedia
1d98078682bf56e9f17331159c59a5343e7325ec
[ "Apache-2.0" ]
1
2022-01-11T21:18:12.000Z
2022-01-11T21:18:12.000Z
defmodule ExWikipedia.PageParser do @moduledoc """ Parses Wikipedia's JSON response for a page. The response returned from the Wikipedia API should be valid JSON but we still need to sanitize it before returning to the user. Any HTML tags will get sanitized during this stage. """ @behaviour ExWikipedia.Pa...
28.962162
108
0.581374
7a67f41f576056d692e2f367707e99cf382e9957
1,189
exs
Elixir
examples/editor.exs
Fitblip/ratatouille
873f8a51b0f824ce9e39b7575850fcc585cfc7b1
[ "MIT" ]
504
2019-01-13T21:53:21.000Z
2022-03-31T20:58:21.000Z
examples/editor.exs
iboard/ratatouille
cc7b6a37e0b1757cd89cc5084343814a79dd86dc
[ "MIT" ]
28
2019-01-26T21:00:23.000Z
2021-12-28T19:06:15.000Z
examples/editor.exs
iboard/ratatouille
cc7b6a37e0b1757cd89cc5084343814a79dd86dc
[ "MIT" ]
21
2019-02-21T09:08:27.000Z
2021-12-20T15:51:10.000Z
# A sample application that shows how to accept user input and render it to the # terminal. # # Supports editing a single line of text with support for entering characters # and spaces and deleting them. No support moving the cursor or multiline # entry---that's left as an exercise for the reader. # # Run this example ...
19.491803
79
0.618167
7a67ff88b596b3d6fc753182511e33c0ac9ec59d
29,823
ex
Elixir
lib/kafka_ex/gen_consumer.ex
surgeventures/kafka_ex
e8ca36dd2de4c107a40db4ed5c388dc9523dac01
[ "MIT" ]
null
null
null
lib/kafka_ex/gen_consumer.ex
surgeventures/kafka_ex
e8ca36dd2de4c107a40db4ed5c388dc9523dac01
[ "MIT" ]
null
null
null
lib/kafka_ex/gen_consumer.ex
surgeventures/kafka_ex
e8ca36dd2de4c107a40db4ed5c388dc9523dac01
[ "MIT" ]
null
null
null
defmodule KafkaEx.GenConsumer do @moduledoc """ A behaviour module for implementing a Kafka consumer. A `KafkaEx.GenConsumer` is an Elixir process that consumes messages from Kafka. A single `KafkaEx.GenConsumer` process consumes from a single partition of a Kafka topic. Several `KafkaEx.GenConsumer` process...
31.163009
93
0.653657
7a680cb0af45aab688dc4d4af056e95ec4d5483a
862
exs
Elixir
test/ex_pwned_test.exs
techgaun/ex_pwned
776dc6638aaa17b0e2c11afee6295054b87aeffd
[ "Apache-2.0" ]
18
2017-03-04T11:35:34.000Z
2020-04-29T22:24:26.000Z
test/ex_pwned_test.exs
techgaun/ex_pwned
776dc6638aaa17b0e2c11afee6295054b87aeffd
[ "Apache-2.0" ]
11
2018-05-16T04:36:57.000Z
2020-04-07T19:47:40.000Z
test/ex_pwned_test.exs
techgaun/ex_pwned
776dc6638aaa17b0e2c11afee6295054b87aeffd
[ "Apache-2.0" ]
8
2018-05-16T18:15:51.000Z
2020-06-23T16:58:52.000Z
defmodule ExPwnedTest do use ExUnit.Case describe "password_breached?/1" do test "Known breached password" do assert true == ExPwned.password_breached?("123456") end test "Probably good password" do assert false == ExPwned.password_breached?(UUID.uuid1()) end end describe "passwor...
23.944444
70
0.670534
7a682a48e1a864c274da86170b18944cafa28f96
2,878
ex
Elixir
lib/templates/bootstrap.ex
ianatha/formex
7dbf2de83da05e167bbac5a0ed93fbb7dbfe5408
[ "MIT" ]
221
2017-01-15T18:14:55.000Z
2021-08-17T14:15:40.000Z
lib/templates/bootstrap.ex
ianatha/formex
7dbf2de83da05e167bbac5a0ed93fbb7dbfe5408
[ "MIT" ]
25
2017-04-09T01:01:20.000Z
2019-04-17T01:36:01.000Z
lib/templates/bootstrap.ex
ianatha/formex
7dbf2de83da05e167bbac5a0ed93fbb7dbfe5408
[ "MIT" ]
24
2017-04-08T22:15:06.000Z
2021-11-15T11:55:41.000Z
defmodule Formex.Template.Bootstrap do use Formex.Template, :helper @moduledoc false defmacro __using__([]) do quote do use Formex.Template, :helper import Formex.Template.Bootstrap @spec generate_input(form :: Form.t(), field :: Field.t()) :: Phoenix.HTML.safe() def generate_input(...
25.696429
90
0.56845
7a6832fcee59268eceeac1650c9ac32ad73460fc
701
exs
Elixir
test/one/peer_test.exs
supaiku0/elixir-client
2d5549ce3a876a18750a36a14ff769427688c5bb
[ "MIT" ]
null
null
null
test/one/peer_test.exs
supaiku0/elixir-client
2d5549ce3a876a18750a36a14ff769427688c5bb
[ "MIT" ]
null
null
null
test/one/peer_test.exs
supaiku0/elixir-client
2d5549ce3a876a18750a36a14ff769427688c5bb
[ "MIT" ]
null
null
null
defmodule ArkEcosystem.Client.PeerTest do use ExUnit.Case import ArkEcosystem.Client.Peer @client ArkEcosystem.Client.new(%{ host: "https://dexplorer.ark.io:8443/api", nethash: "578e820911f24e039733b45e4882b73e301f813a0d2c31330dafda84534ffa23", version: "1.1.1" }) ...
24.172414
88
0.660485
7a68530842cdbf88c1b83ca7a4fe2b9151a7b88c
14,375
exs
Elixir
test/chat_api/customers_test.exs
jalford14/papercups
fbe5e5ce4ff51702a0f898c39a9be47c33e9cb4a
[ "MIT" ]
null
null
null
test/chat_api/customers_test.exs
jalford14/papercups
fbe5e5ce4ff51702a0f898c39a9be47c33e9cb4a
[ "MIT" ]
1
2021-01-17T10:42:34.000Z
2021-01-17T10:42:34.000Z
test/chat_api/customers_test.exs
jalford14/papercups
fbe5e5ce4ff51702a0f898c39a9be47c33e9cb4a
[ "MIT" ]
null
null
null
defmodule ChatApi.CustomersTest do use ChatApi.DataCase, async: true import ChatApi.Factory alias ChatApi.Customers describe "customers" do alias ChatApi.Customers.Customer @update_attrs %{ first_seen: ~D[2020-01-01], last_seen: ~D[2020-01-02], name: "Test User", email: "user@...
39.275956
461
0.668452
7a68be326a75d8a9932d709f8063f8c34e0fa393
2,848
ex
Elixir
lib/console_web/controllers/flows_controller.ex
DasThink/console
54cde903e3f4e2ca93b14c1d3a7bf3b8a2c7372b
[ "Apache-2.0" ]
1
2021-08-20T17:48:47.000Z
2021-08-20T17:48:47.000Z
lib/console_web/controllers/flows_controller.ex
mfalkvidd/console
6427c82bc4f8619b5bb3a5940099a8bdd6167a9e
[ "Apache-2.0" ]
null
null
null
lib/console_web/controllers/flows_controller.ex
mfalkvidd/console
6427c82bc4f8619b5bb3a5940099a8bdd6167a9e
[ "Apache-2.0" ]
null
null
null
defmodule ConsoleWeb.FlowsController do use ConsoleWeb, :controller import Ecto.Query alias Console.Repo alias Console.Organizations alias Console.Flows.Flow alias Console.Devices plug ConsoleWeb.Plug.AuthorizeAction action_fallback(ConsoleWeb.FallbackController) def update_edges(conn, %{"completeF...
39.555556
143
0.62816
7a68cdbb57070d5febf825a31422e2545ee51d8f
1,807
ex
Elixir
clients/big_query/lib/google_api/big_query/v2/model/range_partitioning.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/big_query/lib/google_api/big_query/v2/model/range_partitioning.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/big_query/lib/google_api/big_query/v2/model/range_partitioning.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...
36.14
218
0.73824
7a68d7b4ab23870b2812882242adc3b54af9a37d
412
ex
Elixir
lib/mix/lib/mix/tasks/clean.ex
ekosz/elixir
62e375bc711b4072e1b68de776e96cc31f571d45
[ "Apache-2.0" ]
1
2017-10-29T16:37:08.000Z
2017-10-29T16:37:08.000Z
lib/mix/lib/mix/tasks/clean.ex
ekosz/elixir
62e375bc711b4072e1b68de776e96cc31f571d45
[ "Apache-2.0" ]
null
null
null
lib/mix/lib/mix/tasks/clean.ex
ekosz/elixir
62e375bc711b4072e1b68de776e96cc31f571d45
[ "Apache-2.0" ]
null
null
null
defmodule Mix.Tasks.Clean do use Mix.Task @shortdoc "Clean generated application files" @moduledoc """ Clean generated application files. ## Command line options * `--all` - Clean everything, including dependencies """ def run(args) do { opts, _ } = OptionParser.parse(args) File.rm_rf Mix.p...
21.684211
54
0.67233
7a68ef76955c9fbf3af43d2e50ef6d5d0eeec50b
7,721
ex
Elixir
clients/my_business_lodging/lib/google_api/my_business_lodging/v1/model/wellness.ex
renovate-bot/elixir-google-api
1da34cd39b670c99f067011e05ab90af93fef1f6
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/my_business_lodging/lib/google_api/my_business_lodging/v1/model/wellness.ex
swansoffiee/elixir-google-api
9ea6d39f273fb430634788c258b3189d3613dde0
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/my_business_lodging/lib/google_api/my_business_lodging/v1/model/wellness.ex
dazuma/elixir-google-api
6a9897168008efe07a6081d2326735fe332e522c
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
70.190909
582
0.710271
7a690d7701c1fe89e6d9cf6c90a3742c92d05d84
4,223
ex
Elixir
api_gateway/lib/controllers/clubs_controller.ex
lcnascimento/pokerapp
d7928aebc867c49f01546611ed65a5befa3a6429
[ "MIT" ]
2
2020-04-20T16:31:01.000Z
2020-04-20T16:45:03.000Z
api_gateway/lib/controllers/clubs_controller.ex
lcnascimento/pokerapp
d7928aebc867c49f01546611ed65a5befa3a6429
[ "MIT" ]
null
null
null
api_gateway/lib/controllers/clubs_controller.ex
lcnascimento/pokerapp
d7928aebc867c49f01546611ed65a5befa3a6429
[ "MIT" ]
null
null
null
defmodule ApiGateway.ClubsController do use ApiGateway, :controller def index(conn, _params) do {status, payload} = case clubs_service().list() do {:ok, clubs} -> {200, clubs} {:error, reason} -> {500, reason} end conn |> put_status(status) |> json(payload) end def show(co...
28.727891
92
0.560265
7a6926d29e8967ea6f4fdda171a43429bb4352c0
195
exs
Elixir
priv/repo/migrations/20150104144712_create_users.exs
Baltazore/elapi
afd107433f2e0a0b91d96e7addf8c8b4843a4a55
[ "MIT" ]
null
null
null
priv/repo/migrations/20150104144712_create_users.exs
Baltazore/elapi
afd107433f2e0a0b91d96e7addf8c8b4843a4a55
[ "MIT" ]
null
null
null
priv/repo/migrations/20150104144712_create_users.exs
Baltazore/elapi
afd107433f2e0a0b91d96e7addf8c8b4843a4a55
[ "MIT" ]
null
null
null
defmodule Repo.Migrations.CreateUsers do use Ecto.Migration def up do "CREATE TABLE users(id serial primary key, name varchar(40))" end def down do "DROP TABLE users" end end
16.25
65
0.707692
7a6927ae8ab02f25b9dd02d093b6a155bfd59256
1,962
exs
Elixir
clients/accelerated_mobile_page_url/mix.exs
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/accelerated_mobile_page_url/mix.exs
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/accelerated_mobile_page_url/mix.exs
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...
29.283582
157
0.667686
7a692df50ed839c82982901f47af9ebaaf97fd50
4,296
exs
Elixir
test/models/user_test.exs
inaka/credo_server
fabdf5429974d0dbf9e0a1eaaf1c6305fb98e2aa
[ "Apache-2.0" ]
12
2016-05-27T23:37:37.000Z
2019-11-09T04:03:03.000Z
test/models/user_test.exs
inaka/credo_server
fabdf5429974d0dbf9e0a1eaaf1c6305fb98e2aa
[ "Apache-2.0" ]
18
2016-05-27T14:57:30.000Z
2016-09-20T17:05:22.000Z
test/models/user_test.exs
inaka/credo_server
fabdf5429974d0dbf9e0a1eaaf1c6305fb98e2aa
[ "Apache-2.0" ]
1
2019-11-09T04:03:06.000Z
2019-11-09T04:03:06.000Z
defmodule CredoServer.UserTest do use ExUnit.Case, async: true alias CredoServer.{TestUtils, User, Repo, Repository} use ExVCR.Mock, adapter: ExVCR.Adapter.Hackney setup do Ecto.Adapters.SQL.restart_test_transaction(CredoServer.Repo) ExVCR.Config.cassette_library_dir("fixture/vcr_cassettes") :ok ...
35.213115
80
0.644786
7a6930c7e580aaa7b36b4e04b72e004257cdea72
2,071
ex
Elixir
clients/service_control/lib/google_api/service_control/v1/model/service_account_delegation_info.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/service_control/lib/google_api/service_control/v1/model/service_account_delegation_info.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/service_control/lib/google_api/service_control/v1/model/service_account_delegation_info.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 ...
41.42
168
0.770159
7a6957c150729e4304d972a6e25532437bdd0347
590
ex
Elixir
lib/four_lucha/resource/person.ex
Thomas-Jean/four_lucha
591627059c02edc3315b5cac2c35eacb821108ff
[ "Apache-2.0" ]
1
2021-02-21T19:15:27.000Z
2021-02-21T19:15:27.000Z
lib/four_lucha/resource/person.ex
Thomas-Jean/four_lucha
591627059c02edc3315b5cac2c35eacb821108ff
[ "Apache-2.0" ]
null
null
null
lib/four_lucha/resource/person.ex
Thomas-Jean/four_lucha
591627059c02edc3315b5cac2c35eacb821108ff
[ "Apache-2.0" ]
null
null
null
defmodule FourLucha.Resource.Person do @moduledoc false defstruct( aliases: nil, api_detail_url: nil, birth_date: nil, characters: nil, concepts: nil, country: nil, date_added: nil, date_last_updated: nil, death_date: nil, deck: nil, description: nil, enemies: nil, ...
18.4375
38
0.616949
7a6968991f3f0c8dcd474880953fd254f1309825
1,992
exs
Elixir
apps/idp/test/idp/permissions/permissions_test.exs
lbrty/idp-backend
81d5f10ef6177a1e678b994331c5a09abbdca8d6
[ "Apache-2.0" ]
null
null
null
apps/idp/test/idp/permissions/permissions_test.exs
lbrty/idp-backend
81d5f10ef6177a1e678b994331c5a09abbdca8d6
[ "Apache-2.0" ]
null
null
null
apps/idp/test/idp/permissions/permissions_test.exs
lbrty/idp-backend
81d5f10ef6177a1e678b994331c5a09abbdca8d6
[ "Apache-2.0" ]
null
null
null
defmodule Idp.PermissionsTest do @moduledoc false use Idp.DataCase use Idp.Base.Query alias Idp.{Accounts, Permissions, Projects} describe "permissions 🎲 ::" do test "find all works as expected" do assert Permissions.all() |> length() > 0 end test "find_by_id works as expected" do o...
25.87013
67
0.62249
7a698984c118cf2974adaaaa57b1ac7d919c6227
332
ex
Elixir
2021/day8/lib/task1.runner.ex
SuddenGunter/adventofcode
702dd927b1d23c4c5c4b2e67898f4b3c914abfcf
[ "MIT" ]
null
null
null
2021/day8/lib/task1.runner.ex
SuddenGunter/adventofcode
702dd927b1d23c4c5c4b2e67898f4b3c914abfcf
[ "MIT" ]
null
null
null
2021/day8/lib/task1.runner.ex
SuddenGunter/adventofcode
702dd927b1d23c4c5c4b2e67898f4b3c914abfcf
[ "MIT" ]
null
null
null
defmodule Task1Runner do def main do case File.read("data.txt") do {:ok, contents} -> contents |> process {:error, reason} -> "failed to read file 'data.txt': #{reason}" end |> IO.puts() end def process(contents) do contents |> String.split("\n", trim: true) |> Task1.solution(...
20.75
69
0.590361
7a69ab366de02b0a6a2ac1d8c1147b0407234940
26,792
exs
Elixir
lib/elixir/test/elixir/kernel/errors_test.exs
DavidAlphaFox/elixir
de414fe998efcb07e05210a2c07b2496319716fd
[ "Apache-2.0" ]
1
2019-06-11T20:22:20.000Z
2019-06-11T20:22:20.000Z
lib/elixir/test/elixir/kernel/errors_test.exs
DavidAlphaFox/elixir
de414fe998efcb07e05210a2c07b2496319716fd
[ "Apache-2.0" ]
null
null
null
lib/elixir/test/elixir/kernel/errors_test.exs
DavidAlphaFox/elixir
de414fe998efcb07e05210a2c07b2496319716fd
[ "Apache-2.0" ]
null
null
null
Code.require_file "../test_helper.exs", __DIR__ defmodule Kernel.ErrorsTest do use ExUnit.Case, async: true import CompileAssertion defmodule UnproperMacro do defmacro unproper(args), do: args defmacro exit(args), do: args end test "invalid token" do assert_compile_fail SyntaxError, "nofi...
29.637168
128
0.640938
7a69cb71a590b96ec8ff64a215d540c094b9e737
4,020
exs
Elixir
test/elixir_console/sandbox/command_validator_test.exs
wyeworks/elixir_console
f72147224131cb43ebea4a5929030928cdf155d0
[ "MIT" ]
60
2019-11-23T15:54:24.000Z
2022-03-24T15:56:32.000Z
test/elixir_console/sandbox/command_validator_test.exs
wyeworks/elixir_console
f72147224131cb43ebea4a5929030928cdf155d0
[ "MIT" ]
62
2019-11-11T00:44:38.000Z
2022-01-10T13:12:48.000Z
test/elixir_console/sandbox/command_validator_test.exs
wyeworks/elixir_console
f72147224131cb43ebea4a5929030928cdf155d0
[ "MIT" ]
5
2020-01-15T00:44:30.000Z
2021-05-25T05:06:27.000Z
defmodule ElixirConsole.Sandbox.CommandValidatorTest do use ExUnit.Case, async: true alias ElixirConsole.Sandbox.CommandValidator describe "safe_command?/1" do test "returns :ok when the command is valid" do assert :ok == CommandValidator.safe_command?("List.first([1,2,3])") end test "returns ...
41.443299
93
0.619652
7a69d13ea7230cc3e31d498b35b85caafb758390
1,262
exs
Elixir
test/headers/x_frame_options_test.exs
anotherhale/secure_headers
04c354351562a2211d4fafa4ef10947cfbfacb14
[ "Apache-2.0" ]
44
2016-01-14T06:30:37.000Z
2021-10-21T03:22:55.000Z
test/headers/x_frame_options_test.exs
anotherhale/plug_secure_headers
04c354351562a2211d4fafa4ef10947cfbfacb14
[ "Apache-2.0" ]
3
2017-08-08T17:18:33.000Z
2018-02-18T06:47:24.000Z
test/headers/x_frame_options_test.exs
anotherhale/plug_secure_headers
04c354351562a2211d4fafa4ef10947cfbfacb14
[ "Apache-2.0" ]
12
2017-01-09T15:18:40.000Z
2020-12-22T08:53:08.000Z
defmodule SecureHeaders.XFrameOptionsTest do use ExUnit.Case, async: true alias SecureHeaders.XFrameOptions # # test valid config # test "should allow string value 'deny'" do assert {:ok, _} = XFrameOptions.validate([config: [x_frame_options: "deny"]]) end test "should allow string value 'sam...
38.242424
108
0.692552
7a6a149b3c8447dc53b925720dce5d0818633b25
1,033
ex
Elixir
elixir/quick-elixir-blog/blog_phoenix/lib/blog_phoenix.ex
Jufebrown/learning-projects
9b8e0718c18ad00b7bb40a72c5c204471b28a100
[ "MIT" ]
null
null
null
elixir/quick-elixir-blog/blog_phoenix/lib/blog_phoenix.ex
Jufebrown/learning-projects
9b8e0718c18ad00b7bb40a72c5c204471b28a100
[ "MIT" ]
null
null
null
elixir/quick-elixir-blog/blog_phoenix/lib/blog_phoenix.ex
Jufebrown/learning-projects
9b8e0718c18ad00b7bb40a72c5c204471b28a100
[ "MIT" ]
null
null
null
defmodule BlogPhoenix do use Application # See https://hexdocs.pm/elixir/Application.html # for more information on OTP Applications def start(_type, _args) do import Supervisor.Spec # Define workers and child supervisors to be supervised children = [ # Start the Ecto repository superv...
32.28125
89
0.717328
7a6a175dd4c5f7ad0450866e3e3afb8bbd94bf91
2,222
ex
Elixir
clients/service_networking/lib/google_api/service_networking/v1/model/route.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/service_networking/lib/google_api/service_networking/v1/model/route.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/service_networking/lib/google_api/service_networking/v1/model/route.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
39.678571
234
0.716472
7a6a191e110b3a45985f90b7d737c5eb15e06af8
3,742
ex
Elixir
clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_deidentify_content_request.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_deidentify_content_request.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_deidentify_content_request.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 ...
49.893333
177
0.749599
7a6a3aca60db3105a7d173c349f1867eb48f1f7a
1,125
exs
Elixir
12/p2_solution/config/config.exs
jochumb/aoc2015
4348372a79966bc4d6324d0874e018e6fe3c26df
[ "MIT" ]
null
null
null
12/p2_solution/config/config.exs
jochumb/aoc2015
4348372a79966bc4d6324d0874e018e6fe3c26df
[ "MIT" ]
null
null
null
12/p2_solution/config/config.exs
jochumb/aoc2015
4348372a79966bc4d6324d0874e018e6fe3c26df
[ "MIT" ]
null
null
null
# This file is responsible for configuring your application # and its dependencies with the aid of the Mix.Config module. use Mix.Config # This configuration is loaded before any dependency and is restricted # to this project. If another project depends on this project, this # file won't be loaded nor affect the paren...
36.290323
73
0.752889
7a6a43a9ace97e31c696691df036c2c50a5b75ea
8,750
ex
Elixir
lib/credo/config_file.ex
egze/credo
59ee836e9ee07c478421df3078a56230a86c3860
[ "MIT" ]
1
2021-12-01T13:37:43.000Z
2021-12-01T13:37:43.000Z
lib/credo/config_file.ex
egze/credo
59ee836e9ee07c478421df3078a56230a86c3860
[ "MIT" ]
null
null
null
lib/credo/config_file.ex
egze/credo
59ee836e9ee07c478421df3078a56230a86c3860
[ "MIT" ]
1
2020-06-28T00:36:07.000Z
2020-06-28T00:36:07.000Z
defmodule Credo.ConfigFile do @doc """ `ConfigFile` structs represent all loaded and merged config files in a run. """ @config_filename ".credo.exs" @default_config_name "default" @origin_user :file @default_glob "**/*.{ex,exs}" @default_files_included [@default_glob] @default_files_excluded [] @d...
27.602524
93
0.652457