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
e81c1f2878bcf892dfbd359ce65d685bc26a72c4
1,304
exs
Elixir
test/unit/strong_migrations/classifiers/add_index_concurrently_in_transaction_test.exs
maximemenager/strong_migrations
b7e091d2cfed73098d3bf683c7ce5c8ceee3159b
[ "MIT" ]
23
2021-10-29T19:58:35.000Z
2021-11-13T21:42:45.000Z
test/unit/strong_migrations/classifiers/add_index_concurrently_in_transaction_test.exs
maximemenager/strong_migrations
b7e091d2cfed73098d3bf683c7ce5c8ceee3159b
[ "MIT" ]
1
2021-10-31T03:57:47.000Z
2021-10-31T14:33:45.000Z
test/unit/strong_migrations/classifiers/add_index_concurrently_in_transaction_test.exs
surgeventures/strong_migrations
3c82e34a6e7a372c6de17ba7a0b07da7664baa26
[ "MIT" ]
3
2021-10-31T02:14:10.000Z
2021-11-09T08:07:22.000Z
defmodule StrongMigrations.Classifiers.AddIndexConcurrentlyInTransactionTest do use ExUnit.Case, async: true alias StrongMigrations.Classifiers.AddIndexConcurrentlyInTransaction alias StrongMigrations.Migration test "it has failed when creating an index concurrently with disabled ddl transaction" do migra...
32.6
97
0.736196
e81c31f0b5398b777c43ab24e88b70b739f82625
1,001
ex
Elixir
lib/membrane/core/element/pad_spec_handler.ex
treble37/membrane-core
3f7c7200a80eef370092ef252b5f75dc9eb16cbd
[ "Apache-2.0" ]
null
null
null
lib/membrane/core/element/pad_spec_handler.ex
treble37/membrane-core
3f7c7200a80eef370092ef252b5f75dc9eb16cbd
[ "Apache-2.0" ]
null
null
null
lib/membrane/core/element/pad_spec_handler.ex
treble37/membrane-core
3f7c7200a80eef370092ef252b5f75dc9eb16cbd
[ "Apache-2.0" ]
null
null
null
defmodule Membrane.Core.Element.PadSpecHandler do @moduledoc false # Module parsing pads specifications in elements. alias Membrane.{Core, Element} alias Element.Pad alias Core.Element.{PadModel, PadsSpecsParser, State} require Pad use Bunch use Core.Element.Log @doc """ Initializes pads info basi...
26.342105
96
0.664336
e81c84fc584f7af34d6f8d076ea34424feeb2af1
620
exs
Elixir
nerves.exs
guidoholz/nerves_custom_rpi0_opencv
1f9860d3d6fd12b81cf9762a1382c31da25c4ae5
[ "Apache-2.0" ]
null
null
null
nerves.exs
guidoholz/nerves_custom_rpi0_opencv
1f9860d3d6fd12b81cf9762a1382c31da25c4ae5
[ "Apache-2.0" ]
null
null
null
nerves.exs
guidoholz/nerves_custom_rpi0_opencv
1f9860d3d6fd12b81cf9762a1382c31da25c4ae5
[ "Apache-2.0" ]
null
null
null
use Mix.Config version = Path.join(__DIR__, "VERSION") |> File.read! |> String.trim pkg = :nerves_custom_rpi0_opencv config pkg, :nerves_env, type: :system, version: version, compiler: :nerves_package, # artifact_url: [ # "https://github.com/nerves-project/#{pkg}/releases/download/v#{version}/#{pkg}-...
20
104
0.641935
e81c893fc0b3e11c4cbba4098f5e5c0911af13b2
1,856
exs
Elixir
mix.exs
marnen/contraq-elixir
69798c1b92a08c76a63e200eadeeb19986d56d91
[ "MIT" ]
null
null
null
mix.exs
marnen/contraq-elixir
69798c1b92a08c76a63e200eadeeb19986d56d91
[ "MIT" ]
3
2016-11-25T20:35:54.000Z
2016-11-26T19:45:35.000Z
mix.exs
marnen/contraq-elixir
69798c1b92a08c76a63e200eadeeb19986d56d91
[ "MIT" ]
null
null
null
defmodule Contraq.Mixfile do use Mix.Project def project do [ app: :contraq, version: "0.0.1", elixir: "~> 1.2", elixirc_paths: elixirc_paths(Mix.env), compilers: [:phoenix, :gettext] ++ Mix.compilers, build_embedded: Mix.env == :prod, start_permanent: Mix.env == :prod...
29.935484
89
0.583513
e81c95412fadf1a5741523f43b724a7917ad8ca1
6,947
ex
Elixir
clients/dfa_reporting/lib/google_api/dfa_reporting/v34/api/postal_codes.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/dfa_reporting/lib/google_api/dfa_reporting/v34/api/postal_codes.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/dfa_reporting/lib/google_api/dfa_reporting/v34/api/postal_codes.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...
42.359756
196
0.625162
e81c9923f456b7a373c4ed9200d056bd13850fc6
4,230
ex
Elixir
lib/livebook_web/live/session_live/mix_standalone_live.ex
doyobi/livebook
136d5039c42b406dd0b31aea188deb4fce3b1328
[ "Apache-2.0" ]
1
2022-02-16T09:13:27.000Z
2022-02-16T09:13:27.000Z
lib/livebook_web/live/session_live/mix_standalone_live.ex
doyobi/livebook
136d5039c42b406dd0b31aea188deb4fce3b1328
[ "Apache-2.0" ]
null
null
null
lib/livebook_web/live/session_live/mix_standalone_live.ex
doyobi/livebook
136d5039c42b406dd0b31aea188deb4fce3b1328
[ "Apache-2.0" ]
null
null
null
defmodule LivebookWeb.SessionLive.MixStandaloneLive do use LivebookWeb, :live_view alias Livebook.{Session, Runtime, Utils, FileSystem} @type status :: :initial | :initializing | :finished @impl true def mount(_params, %{"session" => session, "current_runtime" => current_runtime}, socket) do if connect...
31.804511
138
0.629078
e81cd8aef4a8331d9f04724aa534474134285ff1
1,350
ex
Elixir
lib/sanbase_web/graphql/resolvers/report_resolver.ex
santiment/sanbase2
9ef6e2dd1e377744a6d2bba570ea6bd477a1db31
[ "MIT" ]
81
2017-11-20T01:20:22.000Z
2022-03-05T12:04:25.000Z
lib/sanbase_web/graphql/resolvers/report_resolver.ex
rmoorman/sanbase2
226784ab43a24219e7332c49156b198d09a6dd85
[ "MIT" ]
359
2017-10-15T14:40:53.000Z
2022-01-25T13:34:20.000Z
lib/sanbase_web/graphql/resolvers/report_resolver.ex
rmoorman/sanbase2
226784ab43a24219e7332c49156b198d09a6dd85
[ "MIT" ]
16
2017-11-19T13:57:40.000Z
2022-02-07T08:13:02.000Z
defmodule SanbaseWeb.Graphql.Resolvers.ReportResolver do require Logger alias Sanbase.Report alias Sanbase.Billing.{Subscription, Product} @product_sanbase Product.product_sanbase() def upload_report(_root, %{report: report} = args, _resolution) do {params, _} = Map.split(args, [:name, :description]) ...
29.347826
94
0.69037
e81ce3f29f7988fc92b78318355188621531092e
376
ex
Elixir
kousa/lib/onion/telemetry.ex
movwf/dogehouse
c97c04164e98853c6221100a97cc4ff1af84de7b
[ "MIT" ]
9
2021-03-17T03:56:18.000Z
2021-09-24T22:45:14.000Z
kousa/lib/onion/telemetry.ex
movwf/dogehouse
c97c04164e98853c6221100a97cc4ff1af84de7b
[ "MIT" ]
12
2021-07-06T12:51:13.000Z
2022-03-16T12:38:18.000Z
kousa/lib/onion/telemetry.ex
movwf/dogehouse
c97c04164e98853c6221100a97cc4ff1af84de7b
[ "MIT" ]
4
2021-07-15T20:33:50.000Z
2022-03-27T12:46:47.000Z
defmodule Onion.Telemetry do use GenServer def start_link(_) do GenServer.start_link(__MODULE__, [], name: __MODULE__) end def init(_opts) do :timer.send_interval(10_000, self(), :collect_metrics) {:ok, %{}} end def handle_info(:collect_metrics, state) do Kousa.Metric.UserSessions.set(Oni...
20.888889
60
0.696809
e81ce8608930d096599cdb2695ff5b360cd92eed
329
ex
Elixir
lib/codes/codes_n62.ex
badubizzle/icd_code
4c625733f92b7b1d616e272abc3009bb8b916c0c
[ "Apache-2.0" ]
null
null
null
lib/codes/codes_n62.ex
badubizzle/icd_code
4c625733f92b7b1d616e272abc3009bb8b916c0c
[ "Apache-2.0" ]
null
null
null
lib/codes/codes_n62.ex
badubizzle/icd_code
4c625733f92b7b1d616e272abc3009bb8b916c0c
[ "Apache-2.0" ]
null
null
null
defmodule IcdCode.ICDCode.Codes_N62 do alias IcdCode.ICDCode def _N62 do %ICDCode{full_code: "N62", category_code: "N62", short_code: "", full_name: "Hypertrophy of breast", short_name: "Hypertrophy of breast", category_name: "Hypertrophy of breast" } ...
20.5625
48
0.613982
e81cf52c46920ef143f23e53f531e9d7bb7b586b
1,951
exs
Elixir
mix.exs
Drahcirius/crux_structs
53ba17c6ab0adfadbf69e236ec936fed8015420e
[ "MIT" ]
null
null
null
mix.exs
Drahcirius/crux_structs
53ba17c6ab0adfadbf69e236ec936fed8015420e
[ "MIT" ]
null
null
null
mix.exs
Drahcirius/crux_structs
53ba17c6ab0adfadbf69e236ec936fed8015420e
[ "MIT" ]
null
null
null
defmodule Crux.Structs.MixProject do use Mix.Project @vsn "0.2.1" @name :crux_structs def project do [ start_permanent: Mix.env() == :prod, package: package(), app: @name, version: @vsn, elixir: "~> 1.6", description: "Library providing Discord API structs for crux.", ...
24.3875
85
0.540748
e81cfcf45f27f19b4f0c46d86614f49ab81b3434
291
ex
Elixir
elixir/advent_of_code/lib/day3.ex
karlwnw/adventofcode2019
7a01a0dd9c3f93ae3f9aa123a91641a37289eb7a
[ "MIT" ]
2
2020-01-02T12:59:44.000Z
2020-01-04T19:21:31.000Z
elixir/advent_of_code/lib/day3.ex
karlwnw/adventofcode2019
7a01a0dd9c3f93ae3f9aa123a91641a37289eb7a
[ "MIT" ]
null
null
null
elixir/advent_of_code/lib/day3.ex
karlwnw/adventofcode2019
7a01a0dd9c3f93ae3f9aa123a91641a37289eb7a
[ "MIT" ]
null
null
null
defmodule Day3 do @moduledoc """ iex -S mix Day3.part1() todo """ def part1(input) do input |> parse # |> IO.inspect(label: "part1") end def parse(input) do input |> String.split("\n", trim: true) |> Enum.map(&String.to_integer/1) end end
13.227273
37
0.553265
e81d07562a62682bb633914c5e8c2343bc717235
4,384
ex
Elixir
lib/cforum/badges.ex
multitain/cforum_ex
95634a547893f5392345b173f3c264b149e2b124
[ "MIT" ]
16
2019-04-04T06:33:33.000Z
2021-08-16T19:34:31.000Z
lib/cforum/badges.ex
multitain/cforum_ex
95634a547893f5392345b173f3c264b149e2b124
[ "MIT" ]
294
2019-02-10T11:10:27.000Z
2022-03-30T04:52:53.000Z
lib/cforum/badges.ex
multitain/cforum_ex
95634a547893f5392345b173f3c264b149e2b124
[ "MIT" ]
10
2019-02-10T10:39:24.000Z
2021-07-06T11:46:05.000Z
defmodule Cforum.Badges do @moduledoc """ The boundary for the Accounts system. """ import Ecto.Query, warn: false import CforumWeb.Gettext alias Cforum.Repo alias Cforum.Badges.{Badge, BadgeUser, BadgeGroup} alias Cforum.Notifications alias Cforum.System alias Cforum.Users @doc """ Returns t...
21.596059
117
0.611542
e81dcd3e6e7abfefdf2b5d13dd99994adad8f6af
211
exs
Elixir
priv/repo/migrations/20170626133913_create_listing.exs
diemesleno/backend
a55f9c846cc826b5269f3fd6ce19223f0c6a1682
[ "MIT" ]
1
2020-01-23T04:24:58.000Z
2020-01-23T04:24:58.000Z
priv/repo/migrations/20170626133913_create_listing.exs
diemesleno/backend
a55f9c846cc826b5269f3fd6ce19223f0c6a1682
[ "MIT" ]
null
null
null
priv/repo/migrations/20170626133913_create_listing.exs
diemesleno/backend
a55f9c846cc826b5269f3fd6ce19223f0c6a1682
[ "MIT" ]
1
2019-12-31T16:11:21.000Z
2019-12-31T16:11:21.000Z
defmodule Re.Repo.Migrations.CreateListing do use Ecto.Migration def change do create table(:listings) do add :description, :string add :name, :string timestamps() end end end
15.071429
45
0.663507
e81dd79acb95f197d7f9459ffd2c07b14bfd583c
1,871
ex
Elixir
clients/sheets/lib/google_api/sheets/v4/model/batch_get_values_response.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/sheets/lib/google_api/sheets/v4/model/batch_get_values_response.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/sheets/lib/google_api/sheets/v4/model/batch_get_values_response.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 "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 ...
36.686275
166
0.737039
e81dda849668f2f499620f95120e553235f0e768
521
ex
Elixir
apps/demarest_mays/lib/demarest_mays/application.ex
bravely/demarest_mays
9786efa1c589b23e7f8aeb7182cdc140c451fe92
[ "MIT" ]
null
null
null
apps/demarest_mays/lib/demarest_mays/application.ex
bravely/demarest_mays
9786efa1c589b23e7f8aeb7182cdc140c451fe92
[ "MIT" ]
null
null
null
apps/demarest_mays/lib/demarest_mays/application.ex
bravely/demarest_mays
9786efa1c589b23e7f8aeb7182cdc140c451fe92
[ "MIT" ]
null
null
null
defmodule DemarestMays.Application do @moduledoc """ The DemarestMays Application Service. The demarest_mays system business domain lives in this application. Exposes API to clients such as the `DemarestMaysWeb` application for use in channels, controllers, and elsewhere. """ use Application def star...
26.05
69
0.742802
e81e420286e7efb38e415c95cd12df2743f24741
1,376
ex
Elixir
lib/cadet/assessments/library.ex
chownces/cadet
0d8b264e4fad1c9aaab7ef3f037ac4e07a4c9b22
[ "Apache-2.0" ]
27
2018-01-20T05:56:24.000Z
2021-05-24T03:21:55.000Z
lib/cadet/assessments/library.ex
chownces/cadet
0d8b264e4fad1c9aaab7ef3f037ac4e07a4c9b22
[ "Apache-2.0" ]
731
2018-04-16T13:25:49.000Z
2021-06-22T07:16:12.000Z
lib/cadet/assessments/library.ex
chownces/cadet
0d8b264e4fad1c9aaab7ef3f037ac4e07a4c9b22
[ "Apache-2.0" ]
43
2018-01-20T06:35:46.000Z
2021-05-05T03:22:35.000Z
defmodule Cadet.Assessments.Library do @moduledoc """ The library entity represents a library to be used in a question. """ use Cadet, :model alias Cadet.Assessments.Library.ExternalLibrary @primary_key false embedded_schema do field(:chapter, :integer, default: 1) field(:globals, :map, default:...
25.962264
96
0.659157
e81e4a7e1577011261aa8738f05cd333a51b4b8a
3,105
exs
Elixir
mix.exs
univers-agency/brando
69c3c52498a3f64518da3522cd9f27294a52cc68
[ "Apache-2.0" ]
1
2020-04-26T09:53:02.000Z
2020-04-26T09:53:02.000Z
mix.exs
univers-agency/brando
69c3c52498a3f64518da3522cd9f27294a52cc68
[ "Apache-2.0" ]
198
2019-08-20T16:16:07.000Z
2020-07-03T15:42:07.000Z
mix.exs
univers-agency/brando
69c3c52498a3f64518da3522cd9f27294a52cc68
[ "Apache-2.0" ]
null
null
null
defmodule Brando.Mixfile do use Mix.Project @version "0.53.0-dev" @description "Brando CMS" def project do [ app: :brando, version: @version, elixir: "~> 1.10", deps: deps(), package: package(), compilers: [:gettext] ++ Mix.compilers(), elixirc_paths: elixirc_path...
23.171642
79
0.490821
e81e5a40d4cecaef18a3cdddb33118de74e98d78
2,210
ex
Elixir
lib/local_uploader.ex
mathieuprog/uploader
bafb1810d316444118adbe02cec3d9ce0f9ebba9
[ "Apache-2.0" ]
7
2019-11-04T14:41:59.000Z
2020-03-01T00:42:49.000Z
lib/local_uploader.ex
mathieuprog/uploader
bafb1810d316444118adbe02cec3d9ce0f9ebba9
[ "Apache-2.0" ]
null
null
null
lib/local_uploader.ex
mathieuprog/uploader
bafb1810d316444118adbe02cec3d9ce0f9ebba9
[ "Apache-2.0" ]
null
null
null
defmodule Uploader.LocalUploader do @moduledoc ~S""" Store file uploads locally. This module implements the `maybe_copy_file/4` callback function defined in the `Uploader` module. """ import Uploader.FileHasher, only: [hash_file_content: 1] @behaviour Uploader @doc ~S""" Copies the uploaded file to a...
35.079365
89
0.747059
e81e72d1cf32884a8a69f57f0396998570ad0f41
3,724
ex
Elixir
samples/client/petstore/elixir/lib/openapi_petstore/request_builder.ex
aaronclong/openapi-generator
7437084cd35f5e084ffc684205241438cc2984f9
[ "Apache-2.0" ]
5
2019-12-03T13:50:09.000Z
2021-11-14T12:59:48.000Z
samples/client/petstore/elixir/lib/openapi_petstore/request_builder.ex
cedricziel/openapi-generator
a6a1264f252abd7c55e58a6653cdf308df88826e
[ "Apache-2.0" ]
4
2021-09-20T22:32:46.000Z
2022-02-27T15:31:33.000Z
samples/client/petstore/elixir/lib/openapi_petstore/request_builder.ex
cedricziel/openapi-generator
a6a1264f252abd7c55e58a6653cdf308df88826e
[ "Apache-2.0" ]
2
2020-03-05T14:10:41.000Z
2022-03-19T23:52:35.000Z
# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). # https://openapi-generator.tech # Do not edit the class manually. defmodule OpenapiPetstore.RequestBuilder do @moduledoc """ Helper functions for building Tesla requests """ @doc """ Specify the request method when ...
28.646154
137
0.64232
e81ebe759939e91e084d9415e3b44c4120f4f34c
7,584
ex
Elixir
lib/mldht/search/worker.ex
cit/MLDHT
3ada20ab01cf1eb312bf673f7ddd244f45319744
[ "MIT" ]
49
2015-11-24T12:12:48.000Z
2017-06-14T05:18:51.000Z
lib/mldht/search/worker.ex
faried/MlDHT
3ada20ab01cf1eb312bf673f7ddd244f45319744
[ "MIT" ]
4
2019-07-03T15:18:51.000Z
2019-12-01T07:25:14.000Z
lib/mldht/search/worker.ex
faried/MlDHT
3ada20ab01cf1eb312bf673f7ddd244f45319744
[ "MIT" ]
7
2017-07-14T03:19:00.000Z
2022-01-25T23:02:01.000Z
defmodule MlDHT.Search.Worker do @moduledoc false @typedoc """ A transaction_id (tid) is a two bytes binary. """ @type transaction_id :: <<_::16>> @typedoc """ A DHT search is divided in a :get_peers or a :find_node search. """ @type search_type :: :get_peers | :find_node use GenServer, restart: ...
28.088889
87
0.635812
e81ec743175bb606b7e2346c35e09e6f7cc2a2aa
2,267
ex
Elixir
deps/credo/lib/credo/check/readability/predicate_function_names.ex
BandanaPandey/nary_tree
fb1eeb69e38e43c9f9ffb54297cef52dff5c928d
[ "MIT" ]
13
2018-09-19T21:03:29.000Z
2022-01-27T04:06:32.000Z
deps/credo/lib/credo/check/readability/predicate_function_names.ex
BandanaPandey/nary_tree
fb1eeb69e38e43c9f9ffb54297cef52dff5c928d
[ "MIT" ]
1
2020-05-26T04:16:57.000Z
2020-05-26T04:16:57.000Z
deps/credo/lib/credo/check/readability/predicate_function_names.ex
BandanaPandey/nary_tree
fb1eeb69e38e43c9f9ffb54297cef52dff5c928d
[ "MIT" ]
3
2020-05-21T04:32:08.000Z
2021-07-28T05:14:01.000Z
defmodule Credo.Check.Readability.PredicateFunctionNames do @moduledoc """ Predicate functions/macros should be named accordingly: * For functions, they should end in a question mark. # preferred defp user?(cookie) do end defp has_attachment?(mail) do end # NOT preferred ...
27.313253
105
0.659462
e81ef10070b2caf11184482cb24c69097b8acacb
61,793
ex
Elixir
lib/swarm/tracker/tracker.ex
walnut92/swarm
4be4e60d99b47da1b909dfd089d932edddd5a403
[ "MIT" ]
null
null
null
lib/swarm/tracker/tracker.ex
walnut92/swarm
4be4e60d99b47da1b909dfd089d932edddd5a403
[ "MIT" ]
null
null
null
lib/swarm/tracker/tracker.ex
walnut92/swarm
4be4e60d99b47da1b909dfd089d932edddd5a403
[ "MIT" ]
null
null
null
defmodule Swarm.Tracker do @moduledoc """ This module implements the distributed tracker for process registrations and groups. It is implemented as a finite state machine, via `:gen_statem`. Each node Swarm runs on will have a single instance of this process, and the trackers will replicate data between each...
35.249857
141
0.613807
e81efa6058a511f380b47e607d04b5cb3968e40a
203
ex
Elixir
sensor_hub_poncho/sensor_hub/lib/sensor_hub.ex
colindensem/weather-station-phoenix-nerves
8193a6e540c406d4412ba3dfb0ab548d38a982ff
[ "MIT" ]
null
null
null
sensor_hub_poncho/sensor_hub/lib/sensor_hub.ex
colindensem/weather-station-phoenix-nerves
8193a6e540c406d4412ba3dfb0ab548d38a982ff
[ "MIT" ]
null
null
null
sensor_hub_poncho/sensor_hub/lib/sensor_hub.ex
colindensem/weather-station-phoenix-nerves
8193a6e540c406d4412ba3dfb0ab548d38a982ff
[ "MIT" ]
null
null
null
defmodule SensorHub do @moduledoc """ Documentation for SensorHub. """ @doc """ Hello world. ## Examples iex> SensorHub.hello :world """ def hello do :world end end
10.684211
30
0.581281
e81f038016ccd99d9f6480fe03c203071ce12372
3,991
ex
Elixir
lib/toolshed.ex
ConnorRigby/toolshed
0f5cd4bb4f3f6fdbe54d58e3327e117176f06e97
[ "Apache-2.0" ]
null
null
null
lib/toolshed.ex
ConnorRigby/toolshed
0f5cd4bb4f3f6fdbe54d58e3327e117176f06e97
[ "Apache-2.0" ]
null
null
null
lib/toolshed.ex
ConnorRigby/toolshed
0f5cd4bb4f3f6fdbe54d58e3327e117176f06e97
[ "Apache-2.0" ]
null
null
null
defmodule Toolshed do @moduledoc """ Making the IEx console friendlier one command at a time To use the helpers, run: iex> use Toolshed Add this to your `.iex.exs` to load automatically. The following is a list of helpers: * `cat/1` - print out a file * `cmd/1` - run a sys...
33.537815
92
0.611626
e81f109c93353f66fb5bdaf865457aadbc882fd1
666
ex
Elixir
test/elixir/lib/setup/common.ex
mtenrero/couchdb-vetcontrol
b7ede3ededdf0072c73f08d8f1217cb723b03f7a
[ "Apache-2.0" ]
1
2020-09-11T19:23:27.000Z
2020-09-11T19:23:27.000Z
test/elixir/lib/setup/common.ex
mtenrero/couchdb-vetcontrol
b7ede3ededdf0072c73f08d8f1217cb723b03f7a
[ "Apache-2.0" ]
null
null
null
test/elixir/lib/setup/common.ex
mtenrero/couchdb-vetcontrol
b7ede3ededdf0072c73f08d8f1217cb723b03f7a
[ "Apache-2.0" ]
null
null
null
defmodule Couch.Test.Setup.Common do @moduledoc """ A set of common setup pipelines for reuse - httpd_with_admin - chttpd is started and new admin is created - httpd_with_db - httpd_with_admin and new database is created """ alias Couch.Test.Setup.Step def httpd_with_admin(setup) do setup |> S...
24.666667
65
0.663664
e81f142a56fcda3dfdbe7783928bcd81ba3fd5c0
265
exs
Elixir
test/map_diff_test.exs
Qqwy/elixir-map_diff
7a0e0292d44bfc9a87bccfe1430c3867caab2592
[ "MIT" ]
55
2019-08-19T04:14:39.000Z
2022-03-28T08:10:04.000Z
test/map_diff_test.exs
Qqwy/elixir-map_diff
7a0e0292d44bfc9a87bccfe1430c3867caab2592
[ "MIT" ]
46
2019-08-17T20:52:52.000Z
2022-03-25T11:15:12.000Z
test/map_diff_test.exs
Qqwy/elixir_map_diff
7a0e0292d44bfc9a87bccfe1430c3867caab2592
[ "MIT" ]
7
2016-12-20T20:39:16.000Z
2019-08-05T19:05:49.000Z
defmodule MapDiffTest do use ExUnit.Case # Simple example structs # that are used in some of the doctests. defmodule Foo do defstruct a: 1, b: 2, c: 3 end defmodule Bar do defstruct a: "foo", b: "bar", z: "baz" end doctest MapDiff end
13.947368
42
0.649057
e81f2990938d3d7ec0e330df2a331914c108e8bf
18,039
ex
Elixir
clients/storage_transfer/lib/google_api/storage_transfer/v1/api/transfer_operations.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/storage_transfer/lib/google_api/storage_transfer/v1/api/transfer_operations.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/storage_transfer/lib/google_api/storage_transfer/v1/api/transfer_operations.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
46.372751
1,244
0.624092
e81f48d977dc19ae06654e8971a640d947b6b6ef
431
ex
Elixir
lib/hap/characteristics/current_heater_cooler_state.ex
petermm/hap
550433a78bccd586ab6a7d8bf85765bfae58b13b
[ "MIT" ]
40
2019-10-26T01:58:42.000Z
2022-03-09T18:18:39.000Z
lib/hap/characteristics/current_heater_cooler_state.ex
petermm/hap
550433a78bccd586ab6a7d8bf85765bfae58b13b
[ "MIT" ]
11
2021-04-02T14:55:02.000Z
2021-11-05T13:49:55.000Z
lib/hap/characteristics/current_heater_cooler_state.ex
petermm/hap
550433a78bccd586ab6a7d8bf85765bfae58b13b
[ "MIT" ]
6
2020-05-18T09:34:14.000Z
2021-11-04T11:14:15.000Z
defmodule HAP.Characteristics.CurrentHeaterCoolerState do @moduledoc """ Definition of the `public.hap.characteristic.heater-cooler.state.current` characteristic Valid values: 0 Inactive 1 Idle 2 Heating 3 Cooling """ @behaviour HAP.CharacteristicDefinition def type, do: "B1" def perms, do: ["...
19.590909
90
0.707657
e81f4aa378efcf4a3b2faec1671f759eaaccaa92
251
ex
Elixir
apps/buzzcms/lib/buzzcms.ex
buzzcms/buzzcms
8ca8e6dea381350f94cc4a666448b5dba6676520
[ "Apache-2.0" ]
null
null
null
apps/buzzcms/lib/buzzcms.ex
buzzcms/buzzcms
8ca8e6dea381350f94cc4a666448b5dba6676520
[ "Apache-2.0" ]
41
2020-02-12T07:53:14.000Z
2020-03-30T02:18:14.000Z
apps/buzzcms/lib/buzzcms.ex
buzzcms/buzzcms
8ca8e6dea381350f94cc4a666448b5dba6676520
[ "Apache-2.0" ]
null
null
null
defmodule Buzzcms do @moduledoc """ Buzzcms keeps the contexts that define your domain and business logic. Contexts are also responsible for managing your data, regardless if it comes from the database, an external API or others. """ end
25.1
66
0.752988
e81f977e3b049099b741c9f87105db92e631ce4b
966
ex
Elixir
deps/postgrex/lib/postgrex/extensions/jsonb.ex
rchervin/phoenixportfolio
a5a6a60168d7261647a10a8dbd395b440db8a4f9
[ "MIT" ]
null
null
null
deps/postgrex/lib/postgrex/extensions/jsonb.ex
rchervin/phoenixportfolio
a5a6a60168d7261647a10a8dbd395b440db8a4f9
[ "MIT" ]
null
null
null
deps/postgrex/lib/postgrex/extensions/jsonb.ex
rchervin/phoenixportfolio
a5a6a60168d7261647a10a8dbd395b440db8a4f9
[ "MIT" ]
null
null
null
defmodule Postgrex.Extensions.JSONB do @moduledoc false import Postgrex.BinaryUtils, warn: false def init(opts) do {Keyword.get(opts, :json), Keyword.get(opts, :decode_binary, :copy)} end def matching({nil, _}), do: [] def matching(_), do: [type: "jsonb"] def format(_), do: :binary d...
23
72
0.568323
e81fa7438c69e1fb1c3e343b80df2bbde7a6c5d4
1,453
exs
Elixir
mix.exs
tubone24/elixir_performance_tool
d7d8bb44b276ed349c4c3f3d188d15111aabbee0
[ "MIT" ]
null
null
null
mix.exs
tubone24/elixir_performance_tool
d7d8bb44b276ed349c4c3f3d188d15111aabbee0
[ "MIT" ]
null
null
null
mix.exs
tubone24/elixir_performance_tool
d7d8bb44b276ed349c4c3f3d188d15111aabbee0
[ "MIT" ]
null
null
null
defmodule ElixirPerformanceTool.MixProject do use Mix.Project @description """ Checking TAT benchmark test tools for Parallel HTTP requests by Elixir. """ def project do [ app: :elixir_performance_tool, version: "0.1.0", elixir: "~> 1.9", name: "ElixirPerformanceTool", de...
24.216667
87
0.569855
e81fc4d7dd7fa9ff879bd998b2c7c72b6f6f6157
1,635
exs
Elixir
mix.exs
jungsoft/uploadex
3f9748ffd9b6a13c52c3093f9d8e112e2afecf19
[ "MIT" ]
11
2020-04-20T15:45:47.000Z
2022-01-07T22:24:27.000Z
mix.exs
gabrielpra1/uploadex
3f9748ffd9b6a13c52c3093f9d8e112e2afecf19
[ "MIT" ]
7
2019-09-11T15:36:34.000Z
2020-01-31T14:04:12.000Z
mix.exs
jungsoft/uploadex
3f9748ffd9b6a13c52c3093f9d8e112e2afecf19
[ "MIT" ]
2
2020-11-18T19:02:04.000Z
2020-11-18T19:59:02.000Z
defmodule Uploadex.MixProject do use Mix.Project def project do [ app: :uploadex, version: "3.0.0-rc.1", elixir: "~> 1.8", start_permanent: Mix.env() == :prod, deps: deps(), name: "Uploadex", source_url: "https://github.com/gabrielpra1/uploadex", description: "El...
26.370968
87
0.543119
e82020570d896f94b1a443c641208e11ec5c18cf
68
exs
Elixir
tags/test/views/page_view_test.exs
merxer/kata
5dbbca8b4173029f9311398148de9437a329cf9a
[ "MIT" ]
null
null
null
tags/test/views/page_view_test.exs
merxer/kata
5dbbca8b4173029f9311398148de9437a329cf9a
[ "MIT" ]
null
null
null
tags/test/views/page_view_test.exs
merxer/kata
5dbbca8b4173029f9311398148de9437a329cf9a
[ "MIT" ]
null
null
null
defmodule Tags.PageViewTest do use Tags.ConnCase, async: true end
17
32
0.794118
e82023817f20a9adecfe4ac8dd17008a46dc0fd2
2,126
exs
Elixir
test/widecolumn_read_test.exs
Yarnus/ex_aliyun_ots
1d2ed426cb18fca68811e7a6297da9583cbd0a77
[ "MIT" ]
19
2018-05-10T09:33:25.000Z
2022-01-25T11:57:33.000Z
test/widecolumn_read_test.exs
Yarnus/ex_aliyun_ots
1d2ed426cb18fca68811e7a6297da9583cbd0a77
[ "MIT" ]
23
2019-11-28T07:51:52.000Z
2022-03-09T08:33:42.000Z
test/widecolumn_read_test.exs
Yarnus/ex_aliyun_ots
1d2ed426cb18fca68811e7a6297da9583cbd0a77
[ "MIT" ]
9
2019-01-30T03:17:12.000Z
2021-12-14T02:23:32.000Z
defmodule ExAliyunOtsTest.WideColumnRead do use ExUnit.Case use ExAliyunOts, instance: EDCEXTestInstance require Logger alias ExAliyunOts.Const.PKType require PKType test "wide column read" do cur_timestamp = System.os_time(:second) table_name = "test_wcr_#{cur_timestamp}" create_table_r...
28.346667
101
0.556444
e82080922e4d14e179ba6370c91ab5368069274a
1,925
ex
Elixir
lib/dgraph_ex/mutation/mutation_set.ex
WolfDan/dgraph_ex
4dad42983f2387f10febf9996ac8f2db20aea710
[ "MIT" ]
21
2017-08-20T06:19:37.000Z
2021-02-04T23:22:10.000Z
lib/dgraph_ex/mutation/mutation_set.ex
WolfDan/dgraph_ex
4dad42983f2387f10febf9996ac8f2db20aea710
[ "MIT" ]
43
2017-08-06T21:03:28.000Z
2018-09-08T13:00:35.000Z
lib/dgraph_ex/mutation/mutation_set.ex
WolfDan/dgraph_ex
4dad42983f2387f10febf9996ac8f2db20aea710
[ "MIT" ]
1
2017-10-12T02:20:13.000Z
2017-10-12T02:20:13.000Z
defmodule DgraphEx.Mutation.MutationSet do alias DgraphEx.Mutation.MutationSet alias DgraphEx.Field defstruct [ fields: [] ] defmacro __using__(_) do quote do alias DgraphEx.{Mutation, Vertex} alias Mutation.MutationSet def set(%Mutation{} = mut) do Mutation.put_sequence(m...
24.679487
84
0.622857
e820cef07e88170c541fafcbb3968ad6309c094e
42,603
ex
Elixir
lib/date/date.ex
appcues/timex
700643279531bbf1711cd721b3851f025cc28a95
[ "MIT" ]
null
null
null
lib/date/date.ex
appcues/timex
700643279531bbf1711cd721b3851f025cc28a95
[ "MIT" ]
null
null
null
lib/date/date.ex
appcues/timex
700643279531bbf1711cd721b3851f025cc28a95
[ "MIT" ]
null
null
null
defmodule Timex.Date do @moduledoc """ Module for working with dates. Functions that produce time intervals use UNIX epoch (or simly Epoch) as the default reference date. Epoch is defined as UTC midnight of January 1, 1970. Time intervals in this module don't account for leap seconds. Supported tasks: ...
32.872685
140
0.603666
e820fa9c116c5bb148fef25b4f4e47f824b15923
1,063
exs
Elixir
test/fdb/native_test.exs
VinogradovAlexandr/fdb
312b0a173337993ce28024f338f0977ccf81ae25
[ "MIT" ]
null
null
null
test/fdb/native_test.exs
VinogradovAlexandr/fdb
312b0a173337993ce28024f338f0977ccf81ae25
[ "MIT" ]
null
null
null
test/fdb/native_test.exs
VinogradovAlexandr/fdb
312b0a173337993ce28024f338f0977ccf81ae25
[ "MIT" ]
null
null
null
defmodule FDB.NativeTest do use ExUnit.Case, async: false import FDB.Native @current 600 test "get_max_api_version" do assert get_max_api_version() >= @current end test "select_api_version_impl" do assert_raise ErlangError, ~r/runtime_version/, fn -> select_api_version_impl("hello", @curren...
27.25641
68
0.710254
e821058c354f9b9547fc07744d7df6b30fbcbbde
3,691
exs
Elixir
lib/mix/test/mix/tasks/deps.tree_test.exs
tsloughter/elixir
44a9f505c14c58878010cb07349802f99ca225ac
[ "Apache-2.0" ]
null
null
null
lib/mix/test/mix/tasks/deps.tree_test.exs
tsloughter/elixir
44a9f505c14c58878010cb07349802f99ca225ac
[ "Apache-2.0" ]
null
null
null
lib/mix/test/mix/tasks/deps.tree_test.exs
tsloughter/elixir
44a9f505c14c58878010cb07349802f99ca225ac
[ "Apache-2.0" ]
null
null
null
Code.require_file "../../test_helper.exs", __DIR__ defmodule Mix.Tasks.Deps.TreeTest do use MixTest.Case defmodule ConvergedDepsApp do def project do [ app: :sample, version: "0.1.0", deps: [ {:deps_on_git_repo, "0.2.0", git: fixture_path("deps_on_git_repo")}, ...
33.554545
93
0.596044
e8213c28d57c3160a382e4b98c54929193805663
946
ex
Elixir
test/support/channel_case.ex
mzavoloka/kamleague
ba29263ed54cac5c67b537c4b7d1dbc522215341
[ "MIT" ]
null
null
null
test/support/channel_case.ex
mzavoloka/kamleague
ba29263ed54cac5c67b537c4b7d1dbc522215341
[ "MIT" ]
2
2021-11-04T21:05:24.000Z
2021-11-04T21:51:48.000Z
test/support/channel_case.ex
mzavoloka/kamleague
ba29263ed54cac5c67b537c4b7d1dbc522215341
[ "MIT" ]
1
2021-11-04T18:40:26.000Z
2021-11-04T18:40:26.000Z
defmodule KamleagueWeb.ChannelCase do @moduledoc """ This module defines the test case to be used by channel tests. Such tests rely on `Phoenix.ChannelTest` and also import other functionality to make it easier to build common data structures and query the data layer. Finally, if the test case interacts...
24.894737
71
0.717759
e821519b3897a42e8abc4e5f4e46c73b045c2d23
104
ex
Elixir
lib/supreme_tsugu_chan_web/scheduler.ex
c18t/supreme-tsugu-chan
9d1d4cffcd917f2454a8a2918389ea239f2a6cdc
[ "MIT" ]
null
null
null
lib/supreme_tsugu_chan_web/scheduler.ex
c18t/supreme-tsugu-chan
9d1d4cffcd917f2454a8a2918389ea239f2a6cdc
[ "MIT" ]
null
null
null
lib/supreme_tsugu_chan_web/scheduler.ex
c18t/supreme-tsugu-chan
9d1d4cffcd917f2454a8a2918389ea239f2a6cdc
[ "MIT" ]
null
null
null
defmodule SupremeTsuguChanWeb.Scheduler do use Quantum.Scheduler, otp_app: :supreme_tsugu_chan end
26
42
0.826923
e8216541cb5675d13b7f6459ec1f6aca08aa9f28
3,674
ex
Elixir
clients/content/lib/google_api/content/v21/model/settlement_transaction_amount.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/content/lib/google_api/content/v21/model/settlement_transaction_amount.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/content/lib/google_api/content/v21/model/settlement_transaction_amount.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...
34.018519
145
0.653783
e82169b986818d8845a1130a90045f0038f75bcd
2,234
ex
Elixir
lib/mix/tasks/phoenix.gen.component.ex
san650/phoenix_components
17429dc60a8ed0e469fc828396378fad777533a4
[ "MIT" ]
31
2018-04-03T15:14:47.000Z
2021-09-28T03:12:20.000Z
lib/mix/tasks/phoenix.gen.component.ex
mvdwg/phoenix_components
17429dc60a8ed0e469fc828396378fad777533a4
[ "MIT" ]
13
2017-06-11T01:13:25.000Z
2017-07-24T18:29:17.000Z
lib/mix/tasks/phoenix.gen.component.ex
mvdwg/phoenix_components
17429dc60a8ed0e469fc828396378fad777533a4
[ "MIT" ]
4
2018-08-24T11:59:14.000Z
2020-06-09T01:33:51.000Z
defmodule Mix.Tasks.Phoenix.Gen.Component do use Mix.Task import Mix.Generator import PhoenixComponents.Helpers, only: [to_pascal_case: 1] @shortdoc "Creates a new Phoenix component" @moduledoc """ Creates a new Phoenix component. It expects the name of the component as argument. mix phoenix.comp...
24.282609
99
0.634736
e8217faba98853613ca9a4ab1960963d027a863e
13,145
ex
Elixir
lib/phoenix/router/helpers.ex
Mikeylikesit666/phoenix
2226c7863033eb55f99c9a4f1000b1bca6708cb3
[ "MIT" ]
null
null
null
lib/phoenix/router/helpers.ex
Mikeylikesit666/phoenix
2226c7863033eb55f99c9a4f1000b1bca6708cb3
[ "MIT" ]
1
2020-11-08T08:30:10.000Z
2020-11-08T08:30:10.000Z
lib/phoenix/router/helpers.ex
Mikeylikesit666/phoenix
2226c7863033eb55f99c9a4f1000b1bca6708cb3
[ "MIT" ]
null
null
null
defmodule Phoenix.Router.Helpers do # Module that generates the routing helpers. @moduledoc false alias Phoenix.Router.Route alias Plug.Conn @anno (if :erlang.system_info(:otp_release) >= '19' do [generated: true, unquote: false] else [line: -1, unquote: false] end) @doc """ Callback invoke...
32.944862
147
0.629593
e821a0c9880d2947eb996f912f23fd643192b88a
37
ex
Elixir
lib/avd_simple_controller.ex
jorgwel/avd_simple_controller
0bc6c6ca39703b25039efd3cdabf817eec508c60
[ "MIT" ]
2
2019-01-14T07:56:25.000Z
2019-02-08T11:35:40.000Z
lib/avd_simple_controller.ex
jorgwel/avd_simple_controller
0bc6c6ca39703b25039efd3cdabf817eec508c60
[ "MIT" ]
null
null
null
lib/avd_simple_controller.ex
jorgwel/avd_simple_controller
0bc6c6ca39703b25039efd3cdabf817eec508c60
[ "MIT" ]
null
null
null
defmodule AvdSimpleController do end
12.333333
32
0.891892
e821b394ed95377c07f57e3ada98c0660c73e42f
5,400
exs
Elixir
test/instream/encoder/line_test.exs
qgadrian/instream
3dc828fe476817d442b83dc5da58ceca56e9886f
[ "Apache-2.0" ]
null
null
null
test/instream/encoder/line_test.exs
qgadrian/instream
3dc828fe476817d442b83dc5da58ceca56e9886f
[ "Apache-2.0" ]
null
null
null
test/instream/encoder/line_test.exs
qgadrian/instream
3dc828fe476817d442b83dc5da58ceca56e9886f
[ "Apache-2.0" ]
null
null
null
defmodule Instream.Encoder.LineTest do use ExUnit.Case alias Instream.Encoder.Line # This test suite is a direct port of: # https://influxdb.com/docs/v0.9/write_protocols/write_syntax.html test "simplest valid point" do expected = "disk_free value=442221834240i" points = [ %{ measure...
21.686747
144
0.552778
e821cabce7e43cdeaff772f764f8f7ec71b42b21
4,714
ex
Elixir
day18/lib/day18.ex
bjorng/advent-of-code-2017
bd58a36864a4d82809253770f8a6d0c4e02cb59a
[ "Apache-2.0" ]
null
null
null
day18/lib/day18.ex
bjorng/advent-of-code-2017
bd58a36864a4d82809253770f8a6d0c4e02cb59a
[ "Apache-2.0" ]
null
null
null
day18/lib/day18.ex
bjorng/advent-of-code-2017
bd58a36864a4d82809253770f8a6d0c4e02cb59a
[ "Apache-2.0" ]
null
null
null
defmodule Day18 do def part1(input) do Machine.new(input) |> Machine.execute |> Machine.get_output |> elem(0) |> List.last end def part2(input) do machine0 = Machine.new(input, 0) machine1 = Machine.new(input, 1) machine0 = Machine.execute(machine0) machine1 = Machine.execute(...
25.759563
68
0.58252
e821cfe5ef2ece53f8f8e8ca1f72ea20db23b735
8,246
ex
Elixir
lib/thrift/parser/file_group.ex
CultivateHQ/elixir-thrift
d285ddc0f134afc6f7d8c5d0b504a8d27157da9a
[ "Apache-2.0" ]
null
null
null
lib/thrift/parser/file_group.ex
CultivateHQ/elixir-thrift
d285ddc0f134afc6f7d8c5d0b504a8d27157da9a
[ "Apache-2.0" ]
1
2018-03-08T18:17:35.000Z
2021-06-10T15:34:13.000Z
lib/thrift/parser/file_group.ex
CultivateHQ/elixir-thrift
d285ddc0f134afc6f7d8c5d0b504a8d27157da9a
[ "Apache-2.0" ]
null
null
null
defmodule Thrift.Parser.FileGroup do @moduledoc """ Represents a group of parsed files. When you parse a file, it might include other thrift files. These files are in turn accumulated and parsed and added to this module. Additionally, this module allows resolution of the names of Structs / Enums / Unions etc...
30.540741
100
0.655106
e821dea8f89ea69a7886aedc0af90031b8e00efb
725
ex
Elixir
lib/nookal/address.ex
theo-agilelab/nookal-elixir
09db7cc48c48ed1e714fb74c5c38c9a21e7e189a
[ "MIT" ]
1
2020-06-11T07:57:06.000Z
2020-06-11T07:57:06.000Z
lib/nookal/address.ex
theo-agilelab/nookal-elixir
09db7cc48c48ed1e714fb74c5c38c9a21e7e189a
[ "MIT" ]
null
null
null
lib/nookal/address.ex
theo-agilelab/nookal-elixir
09db7cc48c48ed1e714fb74c5c38c9a21e7e189a
[ "MIT" ]
1
2019-09-05T08:30:48.000Z
2019-09-05T08:30:48.000Z
defmodule Nookal.Address do import Nookal.Utils @type t() :: %__MODULE__{ line1: String.t(), line2: String.t(), line3: String.t(), city: String.t(), state: String.t(), country: String.t(), postcode: String.t() } defstruct [:line1, :li...
24.166667
72
0.550345
e821f71bcc24edd069c19aa4ceed8280138c3ac0
3,014
exs
Elixir
apps/ewallet/test/ewallet/fetchers/transaction_consumption_fetcher_test.exs
jimpeebles/ewallet
ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405
[ "Apache-2.0" ]
null
null
null
apps/ewallet/test/ewallet/fetchers/transaction_consumption_fetcher_test.exs
jimpeebles/ewallet
ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405
[ "Apache-2.0" ]
null
null
null
apps/ewallet/test/ewallet/fetchers/transaction_consumption_fetcher_test.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...
30.14
83
0.671533
e821f7c6d0b916f7e3efc328de88ecb44ce69e93
8,113
ex
Elixir
lib/sanbase_web/graphql/schema/types/user_types.ex
santiment/sanbase2
9ef6e2dd1e377744a6d2bba570ea6bd477a1db31
[ "MIT" ]
81
2017-11-20T01:20:22.000Z
2022-03-05T12:04:25.000Z
lib/sanbase_web/graphql/schema/types/user_types.ex
santiment/sanbase2
9ef6e2dd1e377744a6d2bba570ea6bd477a1db31
[ "MIT" ]
359
2017-10-15T14:40:53.000Z
2022-01-25T13:34:20.000Z
lib/sanbase_web/graphql/schema/types/user_types.ex
santiment/sanbase2
9ef6e2dd1e377744a6d2bba570ea6bd477a1db31
[ "MIT" ]
16
2017-11-19T13:57:40.000Z
2022-02-07T08:13:02.000Z
defmodule SanbaseWeb.Graphql.UserTypes do use Absinthe.Schema.Notation import SanbaseWeb.Graphql.Cache, only: [cache_resolve: 1, cache_resolve: 2] import Absinthe.Resolution.Helpers alias SanbaseWeb.Graphql.SanbaseRepo alias SanbaseWeb.Graphql.Resolvers.{ ApikeyResolver, UserResolver, UserChart...
28.268293
91
0.698632
e822027f697fa4d982b3e1b3b1cd8c030aab1afc
1,176
ex
Elixir
lib/wechat/tools/auth.ex
sjava/ex_wechat
521e119be8cc960453002c099d57f7474bfd7735
[ "MIT" ]
null
null
null
lib/wechat/tools/auth.ex
sjava/ex_wechat
521e119be8cc960453002c099d57f7474bfd7735
[ "MIT" ]
null
null
null
lib/wechat/tools/auth.ex
sjava/ex_wechat
521e119be8cc960453002c099d57f7474bfd7735
[ "MIT" ]
null
null
null
defmodule Wechat.Auth do alias Wechat.Http @api_endpoint "https://api.weixin.qq.com" @api_path "/sns/oauth2/access_token" @userinfo_path "/sns/userinfo" def info(code, options) do callback = &Http.parse_wechat_site/1 # fetch for openid result = Http.get(request_auth_opts(code, options), callb...
23.058824
72
0.630102
e8221655a1fe30fb62a3a1e3c4ed75dfa7934972
1,689
ex
Elixir
clients/content/lib/google_api/content/v2/model/lia_on_display_to_order_settings.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/content/lib/google_api/content/v2/model/lia_on_display_to_order_settings.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/content/lib/google_api/content/v2/model/lia_on_display_to_order_settings.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...
30.709091
104
0.714032
e8221bcaf4b05f80221b096bb43f5e6ab023b722
5,866
exs
Elixir
elixir/day14/day14-2.exs
teemid/aoc2021
9cfea309e01fc463ffa20ca64a4a6468ffdc23d4
[ "MIT" ]
null
null
null
elixir/day14/day14-2.exs
teemid/aoc2021
9cfea309e01fc463ffa20ca64a4a6468ffdc23d4
[ "MIT" ]
null
null
null
elixir/day14/day14-2.exs
teemid/aoc2021
9cfea309e01fc463ffa20ca64a4a6468ffdc23d4
[ "MIT" ]
null
null
null
defmodule Day14 do def read_input(filename) do parts = File.open!(filename) |> IO.read(:all) |> String.split("\n\n") polymer_template = Enum.at(parts, 0) mapping = parts |> Enum.at(1) |> String.split("\n", trim: true) |> Enum.map(&...
32.230769
111
0.650528
e82238d4e50b475c12cc524c327c75b24970c2b0
2,203
ex
Elixir
lib/syslog.ex
evnu/syslog
03da5ff2b8c0f148aba6dcec2e7fc35cae2e2fc4
[ "MIT" ]
41
2015-01-14T05:57:05.000Z
2021-12-21T13:40:57.000Z
lib/syslog.ex
evnu/syslog
03da5ff2b8c0f148aba6dcec2e7fc35cae2e2fc4
[ "MIT" ]
9
2015-10-14T14:29:00.000Z
2019-06-12T08:22:04.000Z
lib/syslog.ex
evnu/syslog
03da5ff2b8c0f148aba6dcec2e7fc35cae2e2fc4
[ "MIT" ]
17
2015-05-07T10:04:50.000Z
2021-01-05T13:40:40.000Z
defmodule Logger.Backends.Syslog do @behaviour :gen_event use Bitwise def init(_) do if user = Process.whereis(:user) do Process.group_leader(self(), user) {:ok, socket} = :gen_udp.open(0) {:ok, configure([socket: socket])} else {:error, :ignore} end end def handle_call(...
32.397059
95
0.643668
e822503b2d039546672c187170a65e689e9c6fb7
72
exs
Elixir
test/test_helper.exs
Fomich686/buy_the_food
ca4638a4efbb5f86347948ad07bcf7827f6523f9
[ "Apache-2.0" ]
null
null
null
test/test_helper.exs
Fomich686/buy_the_food
ca4638a4efbb5f86347948ad07bcf7827f6523f9
[ "Apache-2.0" ]
null
null
null
test/test_helper.exs
Fomich686/buy_the_food
ca4638a4efbb5f86347948ad07bcf7827f6523f9
[ "Apache-2.0" ]
null
null
null
ExUnit.start() Ecto.Adapters.SQL.Sandbox.mode(BuyTheFood.Repo, :manual)
24
56
0.791667
e82255af16f7459cff4820dc1d543a8840e6f076
1,343
ex
Elixir
lib/live_store/middlewares.ex
patricklafleur/live_store
575b151188bf58246471aa4147eb3fa7cea4aa61
[ "MIT" ]
2
2021-01-29T03:02:21.000Z
2021-01-29T20:00:23.000Z
lib/live_store/middlewares.ex
patricklafleur/live_store
575b151188bf58246471aa4147eb3fa7cea4aa61
[ "MIT" ]
null
null
null
lib/live_store/middlewares.ex
patricklafleur/live_store
575b151188bf58246471aa4147eb3fa7cea4aa61
[ "MIT" ]
null
null
null
defmodule LiveStore.Middleware do require Logger def log_action() do fn _store -> fn next -> fn %{} = state, {_, _} = action -> Logger.info("dispatching action #{inspect(action)}...") new_state = next.(state, action) Logger.debug("processed action #{inspect(action)}....
29.195652
98
0.559196
e8226758db9d4bc5b44a57a53ed559ef8b432c5d
853
exs
Elixir
twitter/config/config.exs
SushmitDharurkar/Twitter-Clone
1f0c6126d79877549fc312e263c69a6e44dc3254
[ "MIT" ]
null
null
null
twitter/config/config.exs
SushmitDharurkar/Twitter-Clone
1f0c6126d79877549fc312e263c69a6e44dc3254
[ "MIT" ]
null
null
null
twitter/config/config.exs
SushmitDharurkar/Twitter-Clone
1f0c6126d79877549fc312e263c69a6e44dc3254
[ "MIT" ]
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. use Mix.Config # Configures the endpoint config :twitter, TwitterWeb.Endpoint, url: [host: "localh...
35.541667
86
0.760844
e82274d1b7b50ea8a79d934de06d9858aeeba97e
64,793
ex
Elixir
data/auto_generated/video/3b9a13385e69b6b3bf18724083610d21.ex
breunigs/veloroute
ac3b1eeb2ef2369c27186a138f6ffd8284652dab
[ "0BSD" ]
12
2018-06-15T10:18:43.000Z
2022-01-24T12:50:54.000Z
data/auto_generated/video/3b9a13385e69b6b3bf18724083610d21.ex
breunigs/veloroute
ac3b1eeb2ef2369c27186a138f6ffd8284652dab
[ "0BSD" ]
15
2018-06-21T18:04:12.000Z
2021-10-16T12:54:39.000Z
data/auto_generated/video/3b9a13385e69b6b3bf18724083610d21.ex
breunigs/veloroute
ac3b1eeb2ef2369c27186a138f6ffd8284652dab
[ "0BSD" ]
2
2020-03-09T19:21:36.000Z
2022-01-16T03:29:51.000Z
defmodule(Data.AutoGenerated.Video.Rendered_3b9a13385e69b6b3bf18724083610d21) do @moduledoc "#{"1. Grüner Ring (FR0): gegen Uhrzeigersinn entlang der Wallanlagen"} AUTOGENERATED. To update this file, run mix velo.videos.generate. See Video.Rendered for functionality. " @behaviour Video.Rendered @impl Vid...
77.503589
96
0.700955
e82287bd2df39b73c182c9a7087a65dbd3c6dac2
718
ex
Elixir
lib/wanikani/review.ex
eltercero/wanikani
5ed47f315ee9800ab5dbbc21848a337d24d52778
[ "MIT" ]
2
2018-01-29T02:02:05.000Z
2018-07-09T18:24:28.000Z
lib/wanikani/review.ex
eltercero/wanikani
5ed47f315ee9800ab5dbbc21848a337d24d52778
[ "MIT" ]
null
null
null
lib/wanikani/review.ex
eltercero/wanikani
5ed47f315ee9800ab5dbbc21848a337d24d52778
[ "MIT" ]
null
null
null
defmodule Wanikani.Review do @moduledoc """ Module for the requests to the Reviews endpoint """ @doc """ Get a list of reviews. Accepted params: * ids Integers Return results tied to ids * subject_ids Integers Return result tied to subject_ids * updated_after ISO8601 timestamp in the past Return r...
21.757576
106
0.671309
e82294f664b3ff75025eb3b98e39e55166d13972
260
ex
Elixir
apps/massa_proxy/lib/massa_proxy/runtime/grpc/protocol/eventsourced/eventsourced_handler.ex
drowzy/massa
624cb02e0039b0624c534636f96fd157b1e34a95
[ "Apache-2.0" ]
5
2021-04-21T22:26:04.000Z
2021-11-08T12:00:24.000Z
apps/massa_proxy/lib/massa_proxy/runtime/grpc/protocol/eventsourced/eventsourced_handler.ex
drowzy/massa
624cb02e0039b0624c534636f96fd157b1e34a95
[ "Apache-2.0" ]
15
2021-08-03T15:39:44.000Z
2022-02-28T19:21:35.000Z
apps/massa_proxy/lib/massa_proxy/runtime/grpc/protocol/eventsourced/eventsourced_handler.ex
drowzy/massa
624cb02e0039b0624c534636f96fd157b1e34a95
[ "Apache-2.0" ]
null
null
null
defmodule MassaProxy.Runtime.Grpc.Protocol.EventSourced.Handler do @moduledoc """ This module is responsible for handling requests of the EventSourced protocol """ @behaviour MassaProxy.Protocol.Handler @impl true def handle(payload) do end end
23.636364
79
0.773077
e822d52a2a4ba042a56598515095b0280fee2eb5
2,106
exs
Elixir
hello/config/dev.exs
MarioMorales7x7/Slack-Elixir
f858c698f035ee8a04a1b8837f1512a69d6b1dc0
[ "MIT" ]
null
null
null
hello/config/dev.exs
MarioMorales7x7/Slack-Elixir
f858c698f035ee8a04a1b8837f1512a69d6b1dc0
[ "MIT" ]
2
2021-03-09T21:31:07.000Z
2021-05-10T18:21:47.000Z
hello/config/dev.exs
MarioMorales7x7/Slack-Elixir
f858c698f035ee8a04a1b8837f1512a69d6b1dc0
[ "MIT" ]
null
null
null
use Mix.Config # Configure your database config :hello, Hello.Repo, username: "root", password: "", database: "hello_dev", hostname: "localhost", show_sensitive_data_on_connection_error: true, pool_size: 10 # For development, we disable any cache and enable # debugging and code reloading. # # The watchers...
27.350649
68
0.686135
e822d856f301042212fa536e229976f48ffaf939
221
exs
Elixir
test/regressions/i041_hr_incorrect_html_test.exs
brianbroderick/monocle
eeabecea658468479c04a02352271f6304447736
[ "Apache-2.0" ]
2
2018-02-11T01:18:24.000Z
2020-01-12T17:19:22.000Z
test/regressions/i041_hr_incorrect_html_test.exs
brianbroderick/monocle
eeabecea658468479c04a02352271f6304447736
[ "Apache-2.0" ]
null
null
null
test/regressions/i041_hr_incorrect_html_test.exs
brianbroderick/monocle
eeabecea658468479c04a02352271f6304447736
[ "Apache-2.0" ]
null
null
null
defmodule Regressions.I041HrIncorrectHtmlTest do use ExUnit.Case test "https://github.com/pragdave/earmark/issues/41" do result = Monocle.as_html! "****" assert result == ~s[<hr class="thick"/>\n] end end
22.1
57
0.692308
e8230088f9263aae9622b7f199d01e0f4e59c767
1,247
ex
Elixir
test/support/conn_case.ex
EasterPeanut/phoenix-playground
391e52c7cf805d8acabb265989c801923438c624
[ "MIT" ]
null
null
null
test/support/conn_case.ex
EasterPeanut/phoenix-playground
391e52c7cf805d8acabb265989c801923438c624
[ "MIT" ]
null
null
null
test/support/conn_case.ex
EasterPeanut/phoenix-playground
391e52c7cf805d8acabb265989c801923438c624
[ "MIT" ]
null
null
null
defmodule PlaygroundWeb.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...
31.175
91
0.736969
e8232a574b61111c5abe7bf25f8872d2924c8815
769
ex
Elixir
lib/scrivener/page.ex
vernomcrp/scrivener
22f4a1b4f9b7c37417a849deed102a2dac75f48b
[ "MIT" ]
1
2019-02-15T18:10:53.000Z
2019-02-15T18:10:53.000Z
lib/scrivener/page.ex
vernomcrp/scrivener
22f4a1b4f9b7c37417a849deed102a2dac75f48b
[ "MIT" ]
null
null
null
lib/scrivener/page.ex
vernomcrp/scrivener
22f4a1b4f9b7c37417a849deed102a2dac75f48b
[ "MIT" ]
null
null
null
defmodule Scrivener.Page do @moduledoc """ A `Scrivener.Page` has 5 fields that can be accessed: `entries`, `page_number`, `page_size`, `total_entries` and `total_pages`. page = MyApp.Module.paginate(params) page.entries page.page_number page.page_size page.total_entries page.t...
25.633333
129
0.672302
e8232ae8ad3144c63238937e4f3342e97fa174b7
3,185
exs
Elixir
test/threehundred60/locations_test.exs
nesimtunc/ThreeHundred60
1dd8465b44f037ecf7d43be9ebd99b9eadcee6af
[ "MIT" ]
13
2020-06-03T08:17:45.000Z
2021-03-11T04:37:52.000Z
test/threehundred60/locations_test.exs
nesimtunc/ThreeHundred60
1dd8465b44f037ecf7d43be9ebd99b9eadcee6af
[ "MIT" ]
null
null
null
test/threehundred60/locations_test.exs
nesimtunc/ThreeHundred60
1dd8465b44f037ecf7d43be9ebd99b9eadcee6af
[ "MIT" ]
1
2020-06-26T16:53:14.000Z
2020-06-26T16:53:14.000Z
defmodule Threehundred60.LocationsTest do use Threehundred60.DataCase alias Threehundred60.Locations alias Threehundred60.Categories describe "locations" do alias Threehundred60.Locations.Location @valid_attrs %{information: "some information", latitude: 120.5, longtitude: 120.5, name: "some name", v...
36.609195
160
0.697959
e8232e02f7bd164c3bf5defd64dde3585b055ae8
739
exs
Elixir
priv/repo/seeds.exs
jgsmith/exinfiltr8
cabe92dd44e9d6ac390856e9983f5897989a5bfc
[ "Apache-2.0" ]
null
null
null
priv/repo/seeds.exs
jgsmith/exinfiltr8
cabe92dd44e9d6ac390856e9983f5897989a5bfc
[ "Apache-2.0" ]
2
2021-03-10T14:09:03.000Z
2021-05-11T09:54:54.000Z
priv/repo/seeds.exs
jgsmith/exinfiltr8
cabe92dd44e9d6ac390856e9983f5897989a5bfc
[ "Apache-2.0" ]
null
null
null
# Script for populating the database. You can run it as: # # mix run priv/repo/seeds.exs # # Inside the script, you can read and write to any of your # repositories directly: # # Exinfiltr8.Repo.insert!(%Exinfiltr8.SomeSchema{}) # # We recommend using the bang functions (`insert!`, `update!` # and so on) as the...
29.56
61
0.719892
e8234d6700785c3639aa2f17b8fe18e3cb18a8f0
1,010
ex
Elixir
lib/booking/application.ex
mattiaslundberg/booking
469d1469f306b2ab62ce1ee971a825101af6fc7e
[ "MIT" ]
null
null
null
lib/booking/application.ex
mattiaslundberg/booking
469d1469f306b2ab62ce1ee971a825101af6fc7e
[ "MIT" ]
2
2021-03-10T16:49:07.000Z
2021-05-11T12:50:22.000Z
lib/booking/application.ex
mattiaslundberg/booking
469d1469f306b2ab62ce1ee971a825101af6fc7e
[ "MIT" ]
null
null
null
defmodule Booking.Application do # See https://hexdocs.pm/elixir/Application.html # for more information on OTP Applications @moduledoc false use Application def start(_type, _args) do children = [ # Start the Ecto repository Booking.Repo, # Start the Telemetry supervisor Booking...
28.857143
65
0.70198
e823549750feefaf1dca01fccf1538976cc6babb
313
ex
Elixir
web/views/auth_view.ex
AlexKovalevych/evolution
2271546f045d475d676f5993c25824496026694b
[ "MIT" ]
null
null
null
web/views/auth_view.ex
AlexKovalevych/evolution
2271546f045d475d676f5993c25824496026694b
[ "MIT" ]
null
null
null
web/views/auth_view.ex
AlexKovalevych/evolution
2271546f045d475d676f5993c25824496026694b
[ "MIT" ]
null
null
null
defmodule Evolution.AuthView do use Evolution.Web, :view def render("login.json", %{token: token, user: user}) do %{ token: token, user: user } end def render("signup.json", %{error: {field, error}}) do errors = Map.new() |> Map.put(field, error) %{errors: errors} end end
19.5625
58
0.600639
e8236130c8edcfa9ada5faaa57b1fc98620b39c0
6,308
ex
Elixir
lib/carrier/messaging/tracker.ex
matusf/cog
71708301c7dc570fb0d3498a50f47a70ef957788
[ "Apache-2.0" ]
1,003
2016-02-23T17:21:12.000Z
2022-02-20T14:39:35.000Z
lib/carrier/messaging/tracker.ex
matusf/cog
71708301c7dc570fb0d3498a50f47a70ef957788
[ "Apache-2.0" ]
906
2016-02-22T22:54:19.000Z
2022-03-11T15:19:43.000Z
lib/carrier/messaging/tracker.ex
matusf/cog
71708301c7dc570fb0d3498a50f47a70ef957788
[ "Apache-2.0" ]
95
2016-02-23T13:42:31.000Z
2021-11-30T14:39:55.000Z
defmodule Carrier.Messaging.Tracker do defstruct [reply_endpoints: %{}, subscriptions: %{}, monitors: %{}, unused_topics: []] @spec add_reply_endpoint(Tracker.t, pid()) :: {Tracker.t, String.t} def add_reply_endpoint(%__MODULE__{reply_endpoints: reps}=tracker, subscriber) do case Map.get(reps, subscriber) d...
35.840909
128
0.656785
e8238866fb5592cd8b8e109c7963f92a65369afc
315
exs
Elixir
priv/repo/migrations/20180612040545_create_images.exs
the-mikedavis/mole
73d884b5dca4e5371b1b399d7e65c0f4a0229851
[ "BSD-3-Clause" ]
1
2020-07-15T14:39:10.000Z
2020-07-15T14:39:10.000Z
priv/repo/migrations/20180612040545_create_images.exs
the-mikedavis/mole
73d884b5dca4e5371b1b399d7e65c0f4a0229851
[ "BSD-3-Clause" ]
59
2018-11-05T23:09:10.000Z
2020-07-11T20:44:14.000Z
priv/repo/migrations/20180612040545_create_images.exs
the-mikedavis/mole
73d884b5dca4e5371b1b399d7e65c0f4a0229851
[ "BSD-3-Clause" ]
null
null
null
defmodule Mole.Repo.Migrations.CreateImages do use Ecto.Migration def change do create table(:images) do add :origin_id, :string add :malignant, :boolean, default: false, null: false add :type, :string timestamps() end create unique_index(:images, [:origin_id]) end end
19.6875
59
0.666667
e823a02fefe15630dbe3389956c03163f2326556
890
ex
Elixir
apps/badge_fw/lib/badge_fw.ex
nickveys/elixirconf-2016-badge
9c49e0b3c4a6eeffa7ff60a073ad12c50523a882
[ "Unlicense" ]
null
null
null
apps/badge_fw/lib/badge_fw.ex
nickveys/elixirconf-2016-badge
9c49e0b3c4a6eeffa7ff60a073ad12c50523a882
[ "Unlicense" ]
null
null
null
apps/badge_fw/lib/badge_fw.ex
nickveys/elixirconf-2016-badge
9c49e0b3c4a6eeffa7ff60a073ad12c50523a882
[ "Unlicense" ]
null
null
null
defmodule BadgeFw do use Application alias Nerves.InterimWiFi, as: WiFi # 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 # load driver for wifi device :os.cmd('modprobe mt760...
28.709677
67
0.697753
e823c4a34180d7e214cce0e7b6a12a7bb50a3bb7
434
exs
Elixir
test/server/dummy_test.exs
stirlab/elixir-dynamic-server-manager
1b8dc327373456ab6b1f6b9997eee160d140c5f6
[ "MIT" ]
2
2020-08-07T14:56:42.000Z
2020-08-26T12:17:26.000Z
test/server/dummy_test.exs
stirlab/elixir-dynamic-server-manager
1b8dc327373456ab6b1f6b9997eee160d140c5f6
[ "MIT" ]
null
null
null
test/server/dummy_test.exs
stirlab/elixir-dynamic-server-manager
1b8dc327373456ab6b1f6b9997eee160d140c5f6
[ "MIT" ]
1
2020-08-07T14:56:49.000Z
2020-08-07T14:56:49.000Z
defmodule DynamicServerManager.Server.DummyTest do use ExUnit.Case doctest DynamicServerManager alias DynamicServerManager.Server.Dummy test "application starts with permanent arg, named server" do assert is_pid(Process.whereis(Dummy)) end test "started with no permanent arg, unnamed server" do a...
24.111111
63
0.751152
e824009edf12f011e8bbd2d4ce760c0d88aaeaa5
1,183
exs
Elixir
apps/discovery_api/config/test.exs
msomji/smartcitiesdata
fc96abc1ef1306f7af6bd42bbcb4ed041a6d922c
[ "Apache-2.0" ]
null
null
null
apps/discovery_api/config/test.exs
msomji/smartcitiesdata
fc96abc1ef1306f7af6bd42bbcb4ed041a6d922c
[ "Apache-2.0" ]
null
null
null
apps/discovery_api/config/test.exs
msomji/smartcitiesdata
fc96abc1ef1306f7af6bd42bbcb4ed041a6d922c
[ "Apache-2.0" ]
null
null
null
use Mix.Config config :prestige, :session_opts, url: "http://localhost:8080" config :discovery_api, DiscoveryApiWeb.Endpoint, http: [port: 4001], server: false, url: [scheme: "https", host: "data.tests.example.com", port: 443] config :discovery_api, user_info_endpoint: "pretend-this-is-a-url/userinfo", jwk...
25.717391
67
0.72612
e82409b0e80be42e51c1434048734717b290e9d2
3,970
exs
Elixir
apps/activity_logger/test/activity_logger/activity_repo_test.exs
jimpeebles/ewallet
ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405
[ "Apache-2.0" ]
null
null
null
apps/activity_logger/test/activity_logger/activity_repo_test.exs
jimpeebles/ewallet
ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405
[ "Apache-2.0" ]
null
null
null
apps/activity_logger/test/activity_logger/activity_repo_test.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.361345
86
0.675063
e82418aa5b78e31e3a81c3a87e859d66b5650524
9,752
ex
Elixir
lib/sentry/event.ex
Wojnr/sentry-elixir
3d06ac3cf5210ca6c206e674ef0224af402e91c4
[ "MIT" ]
null
null
null
lib/sentry/event.ex
Wojnr/sentry-elixir
3d06ac3cf5210ca6c206e674ef0224af402e91c4
[ "MIT" ]
null
null
null
lib/sentry/event.ex
Wojnr/sentry-elixir
3d06ac3cf5210ca6c206e674ef0224af402e91c4
[ "MIT" ]
null
null
null
defmodule Sentry.Event do @moduledoc """ Provides an Event Struct as well as transformation of Logger entries into Sentry Events. ### Configuration * `:in_app_module_allow_list` - Expects a list of modules that is used to distinguish among stacktrace frames that belong to your app and ones that are part...
30.763407
467
0.627051
e82429849ee726a2a5ce7e8e47506a7ae362699e
3,701
exs
Elixir
apps/ex_wire/test/ex_wire/struct/block_queue_test.exs
wolflee/mana
db66dac85addfaad98d40da5bd4082b3a0198bb1
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
152
2018-10-27T04:52:03.000Z
2022-03-26T10:34:00.000Z
apps/ex_wire/test/ex_wire/struct/block_queue_test.exs
wolflee/mana
db66dac85addfaad98d40da5bd4082b3a0198bb1
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
270
2018-04-14T07:34:57.000Z
2018-10-25T18:10:45.000Z
apps/ex_wire/test/ex_wire/struct/block_queue_test.exs
wolflee/mana
db66dac85addfaad98d40da5bd4082b3a0198bb1
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
25
2018-10-27T12:15:13.000Z
2022-01-25T20:31:14.000Z
defmodule ExWire.Struct.BlockQueueTest do use ExUnit.Case, async: true doctest ExWire.Struct.BlockQueue test "add_header/7" do chain = Blockchain.Test.ropsten_chain() db = MerklePatriciaTree.Test.random_ets_db(:proces_block_queue) header = %Block.Header{ number: 5, parent_hash: <<0::256>...
29.141732
98
0.545798
e8245e327f5d83356f4776c828b24fe62f05c724
1,912
ex
Elixir
clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1beta1_schema.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1beta1_schema.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1beta1_schema.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...
34.142857
224
0.745816
e8247e7fc66735772670c7e261d99f04cadcb6a7
2,175
exs
Elixir
packages/tai_events/test/tai_events_test.exs
ccamateur/tai
41c4b3e09dafc77987fa3f6b300c15461d981e16
[ "MIT" ]
276
2018-01-16T06:36:06.000Z
2021-03-20T21:48:01.000Z
packages/tai_events/test/tai_events_test.exs
ccamateur/tai
41c4b3e09dafc77987fa3f6b300c15461d981e16
[ "MIT" ]
73
2018-10-05T18:45:06.000Z
2021-02-08T05:46:33.000Z
packages/tai_events/test/tai_events_test.exs
ccamateur/tai
41c4b3e09dafc77987fa3f6b300c15461d981e16
[ "MIT" ]
43
2018-06-09T09:54:51.000Z
2021-03-07T07:35:17.000Z
defmodule TaiEventsTest do use ExUnit.Case, async: false defmodule MyEvent do defstruct [] end defmodule MyOtherEvent do defstruct [] end describe ".firehose_subscribe/0" do test "creates a registry entry for the :firehose topic" do start_supervised!({TaiEvents, 1}) TaiEvents.fir...
25.892857
71
0.626207
e824b91a726be6e35aa390cec13150bfd1550929
761
ex
Elixir
lib/extatus/sandbox/counter.ex
gmtprime/extatus
e9bf16cb1e83d2c4225c66d7c0bfdfb40993de03
[ "MIT" ]
17
2017-03-01T07:19:46.000Z
2021-11-25T21:57:38.000Z
lib/extatus/sandbox/counter.ex
gmtprime/extatus
e9bf16cb1e83d2c4225c66d7c0bfdfb40993de03
[ "MIT" ]
1
2018-04-02T11:09:28.000Z
2018-04-02T14:33:30.000Z
lib/extatus/sandbox/counter.ex
gmtprime/extatus
e9bf16cb1e83d2c4225c66d7c0bfdfb40993de03
[ "MIT" ]
1
2021-12-14T20:49:02.000Z
2021-12-14T20:49:02.000Z
defmodule Extatus.Sandbox.Counter do @moduledoc """ This module defines a sandbox for testing Prometheus counter calls without a prometheus server. """ alias Extatus.Sandbox.Metric @doc false def new(spec) do Metric.new(__MODULE__, spec) end @doc false def declare(spec) do Metric.declare(_...
17.697674
78
0.680683
e824c6aa73b7264e26ca493525c30760e375e826
515
exs
Elixir
backend/priv/repo/migrations/20191130184230_create_messages.exs
danesjenovdan/kjer.si
185410ede2d42892e4d91c000099283254c5dc7a
[ "Unlicense" ]
2
2019-11-02T21:28:34.000Z
2019-11-28T18:01:08.000Z
backend/priv/repo/migrations/20191130184230_create_messages.exs
danesjenovdan/kjer.si
185410ede2d42892e4d91c000099283254c5dc7a
[ "Unlicense" ]
17
2019-11-29T16:23:38.000Z
2022-02-14T05:11:41.000Z
backend/priv/repo/migrations/20191130184230_create_messages.exs
danesjenovdan/kjer.si
185410ede2d42892e4d91c000099283254c5dc7a
[ "Unlicense" ]
null
null
null
defmodule KjerSi.Repo.Migrations.CreateMessages do use Ecto.Migration def change do create table(:messages, primary_key: false) do add :id, :binary_id, primary_key: true add :content, :string add :user_id, references(:users, on_delete: :nothing, type: :binary_id) add :room_id, reference...
28.611111
80
0.693204
e824cc1b6782201b28293995bac502323193d5be
1,258
ex
Elixir
lib/ecto_gss/schema.ex
danielgrieve/ecto_gss
4c5c82c5252fbd01be287b4e80ab7f86057ce9aa
[ "MIT" ]
null
null
null
lib/ecto_gss/schema.ex
danielgrieve/ecto_gss
4c5c82c5252fbd01be287b4e80ab7f86057ce9aa
[ "MIT" ]
null
null
null
lib/ecto_gss/schema.ex
danielgrieve/ecto_gss
4c5c82c5252fbd01be287b4e80ab7f86057ce9aa
[ "MIT" ]
null
null
null
defmodule EctoGSS.Schema do def model(opts) do spreadsheet = Keyword.get(opts, :spreadsheet) list = Keyword.get(opts, :list) for gss_column <- Keyword.get(opts, :columns, []) do code = quote do @behaviour Ecto.Type def type, do: :string def cast(integer) when ...
27.347826
83
0.597774
e824e5deaa4fe6215bee3c4c48f21864bafe5f7c
1,733
ex
Elixir
clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v2beta1/model/row_dimensions.ex
nuxlli/elixir-google-api
ecb8679ac7282b7dd314c3e20c250710ec6a7870
[ "Apache-2.0" ]
null
null
null
clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v2beta1/model/row_dimensions.ex
nuxlli/elixir-google-api
ecb8679ac7282b7dd314c3e20c250710ec6a7870
[ "Apache-2.0" ]
null
null
null
clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v2beta1/model/row_dimensions.ex
nuxlli/elixir-google-api
ecb8679ac7282b7dd314c3e20c250710ec6a7870
[ "Apache-2.0" ]
1
2020-11-10T16:58:27.000Z
2020-11-10T16:58:27.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...
36.104167
138
0.766301
e8250ab00a8c6fe7c0a8a1a74a16de7d71e02d66
2,897
exs
Elixir
test/oled/display/impl/ssd_1306/line_h_test.exs
pappersverk/oled
bae090796bc289268b06b7db58eb62111c422690
[ "Apache-2.0" ]
11
2019-12-06T10:32:33.000Z
2022-02-03T19:28:06.000Z
test/oled/display/impl/ssd_1306/line_h_test.exs
pappersverk/oled
bae090796bc289268b06b7db58eb62111c422690
[ "Apache-2.0" ]
7
2020-03-04T19:36:07.000Z
2021-12-26T01:23:36.000Z
test/oled/display/impl/ssd_1306/line_h_test.exs
pappersverk/oled
bae090796bc289268b06b7db58eb62111c422690
[ "Apache-2.0" ]
1
2022-01-12T05:04:53.000Z
2022-01-12T05:04:53.000Z
defmodule OLED.Display.Impl.SSD1306.LineHTest do use ExUnit.Case alias OLED.Display.Impl.SSD1306.Draw import OLED.BufferTestHelper, only: [build_state: 2, ascii_render: 1] @w 32 @h 8 test "draw inside" do assert build_state(@w, @h) |> Draw.line_h(1, 1, 10, []) |> ascii_render()...
33.686047
71
0.158785
e82576fa58d7321cd2ce193b68a9b8754a535b14
1,763
ex
Elixir
clients/calendar/lib/google_api/calendar/v3/model/event_source.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/calendar/lib/google_api/calendar/v3/model/event_source.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/calendar/lib/google_api/calendar/v3/model/event_source.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...
35.26
208
0.72093
e82590bfd18fc17cd3b3db135e2c29c124dcac7e
17,953
ex
Elixir
lib/mix/lib/releases/models/release.ex
rozap/distillery
1853c58b36c56bb5a996ac5a278ae31410d81de9
[ "MIT" ]
null
null
null
lib/mix/lib/releases/models/release.ex
rozap/distillery
1853c58b36c56bb5a996ac5a278ae31410d81de9
[ "MIT" ]
null
null
null
lib/mix/lib/releases/models/release.ex
rozap/distillery
1853c58b36c56bb5a996ac5a278ae31410d81de9
[ "MIT" ]
null
null
null
defmodule Mix.Releases.Release do @moduledoc """ Represents metadata about a release """ alias Mix.Releases.App alias Mix.Releases.Profile alias Mix.Releases.Overlays alias Mix.Releases.Config alias Mix.Releases.Utils alias Mix.Releases.Environment alias Mix.Releases.Shell defstruct name: nil, ...
29.097245
143
0.586754
e8259b75a4fb30c16de6ac889f3b01e393c2876c
1,998
exs
Elixir
test/git_diff_test.exs
mononym/git_diff
230a3a554c624e02b73c4a56cc172d7964d2851e
[ "MIT" ]
14
2019-10-28T13:52:48.000Z
2021-01-03T08:42:52.000Z
test/git_diff_test.exs
mononym/git_diff
230a3a554c624e02b73c4a56cc172d7964d2851e
[ "MIT" ]
5
2019-10-26T19:31:28.000Z
2021-01-13T11:59:26.000Z
test/git_diff_test.exs
mononym/git_diff
230a3a554c624e02b73c4a56cc172d7964d2851e
[ "MIT" ]
6
2018-09-24T21:08:24.000Z
2021-01-01T05:34:26.000Z
defmodule GitDiffTest do use ExUnit.Case import File test "parse a valid diff" do text = read!("test/diff.txt") {flag, _} = GitDiff.parse_patch(text) assert flag == :ok end test "stream a valid diff" do stream = stream!("test/diff.txt") Enum.to_list(GitDiff.stream_patch(stream)) end ...
33.864407
121
0.657157
e825b9c0074ec55c134731ca3b65ee6708f5fcbe
1,091
ex
Elixir
lib/rocketpay_web/controllers/accounts_controller.ex
gabrielkim13/nlw4-rocketpay
7d43ba56beb99bdf271be2af73d4b16df7b81317
[ "RSA-MD" ]
1
2021-12-15T17:32:15.000Z
2021-12-15T17:32:15.000Z
lib/rocketpay_web/controllers/accounts_controller.ex
gabrielkim13/nlw4-rocketpay
7d43ba56beb99bdf271be2af73d4b16df7b81317
[ "RSA-MD" ]
null
null
null
lib/rocketpay_web/controllers/accounts_controller.ex
gabrielkim13/nlw4-rocketpay
7d43ba56beb99bdf271be2af73d4b16df7b81317
[ "RSA-MD" ]
null
null
null
defmodule RocketpayWeb.AccountsController do use RocketpayWeb, :controller alias Rocketpay.Account alias Rocketpay.Accounts.Transactions.Response, as: TransactionResponse action_fallback RocketpayWeb.FallbackController def deposit(conn, params) do with {:ok, %Account{} = account} <- Rocketpay.deposit(p...
27.974359
75
0.672777
e825c60287355bfb00a300262983ef4dc87cfced
3,574
ex
Elixir
lib/mix/lib/mix/tasks/deps.clean.ex
Joe-noh/elixir
34bf464bc1a035b6015366463e04f1bf9d2065f3
[ "Apache-2.0" ]
null
null
null
lib/mix/lib/mix/tasks/deps.clean.ex
Joe-noh/elixir
34bf464bc1a035b6015366463e04f1bf9d2065f3
[ "Apache-2.0" ]
null
null
null
lib/mix/lib/mix/tasks/deps.clean.ex
Joe-noh/elixir
34bf464bc1a035b6015366463e04f1bf9d2065f3
[ "Apache-2.0" ]
null
null
null
defmodule Mix.Tasks.Deps.Clean do use Mix.Task @shortdoc "Deletes the given dependencies' files" @moduledoc """ Deletes the given dependencies' files, including build artifacts and fetched sources. Since this is a destructive action, cleaning of dependencies can only happen by passing arguments/options...
31.078261
97
0.645215
e825d1dbd969cb557e9d08dcb57068ca8dceeb36
80,598
ex
Elixir
lib/aws/generated/s3_control.ex
justinludwig/aws-elixir
c66dfebecec62587dada50602c31c76d307d812c
[ "Apache-2.0" ]
null
null
null
lib/aws/generated/s3_control.ex
justinludwig/aws-elixir
c66dfebecec62587dada50602c31c76d307d812c
[ "Apache-2.0" ]
null
null
null
lib/aws/generated/s3_control.ex
justinludwig/aws-elixir
c66dfebecec62587dada50602c31c76d307d812c
[ "Apache-2.0" ]
null
null
null
# WARNING: DO NOT EDIT, AUTO-GENERATED CODE! # See https://github.com/aws-beam/aws-codegen for more details. defmodule AWS.S3Control do @moduledoc """ AWS S3 Control provides access to Amazon S3 control plane actions. """ alias AWS.Client alias AWS.Request def metadata do %AWS.ServiceMetadata{ ...
32.736799
227
0.700414
e825d2080c937918b007c133942b1dd91b8e3eff
5,731
ex
Elixir
lib/livebook_web/live/settings_live.ex
doyobi/livebook
136d5039c42b406dd0b31aea188deb4fce3b1328
[ "Apache-2.0" ]
null
null
null
lib/livebook_web/live/settings_live.ex
doyobi/livebook
136d5039c42b406dd0b31aea188deb4fce3b1328
[ "Apache-2.0" ]
null
null
null
lib/livebook_web/live/settings_live.ex
doyobi/livebook
136d5039c42b406dd0b31aea188deb4fce3b1328
[ "Apache-2.0" ]
null
null
null
defmodule LivebookWeb.SettingsLive do use LivebookWeb, :live_view import LivebookWeb.UserHelpers alias LivebookWeb.{SidebarHelpers, PageHelpers} @impl true def mount(_params, _session, socket) do file_systems = Livebook.Settings.file_systems() {:ok, socket |> SidebarHelpers.shared_home_h...
36.272152
97
0.548595
e825e5b2bbfab64c1751515331ca6ed5b3a86810
1,166
ex
Elixir
2021/03/3a.ex
cybrox/adventofcode
974b1265f84e7769385adcc4883ea4bec3dd0482
[ "MIT" ]
null
null
null
2021/03/3a.ex
cybrox/adventofcode
974b1265f84e7769385adcc4883ea4bec3dd0482
[ "MIT" ]
null
null
null
2021/03/3a.ex
cybrox/adventofcode
974b1265f84e7769385adcc4883ea4bec3dd0482
[ "MIT" ]
null
null
null
input = "./3.input.txt" |> File.read!() |> String.trim() |> String.split("\n", trim: true) |> Enum.map(&String.split(&1, "", trim: true)) defmodule Solution do def evaluate(input) do gamma = zipmap(input) epsilon = invert(gamma) list_to_int(gamma) * list_to_int(epsilon) end defp zipmap(in...
26.5
77
0.585763
e82602d994f44beb5e4be9206cb98a7ad8dfbfcb
72
exs
Elixir
apps/omg_performance/config/test.exs
SingularityMatrix/elixir-omg
7db3fcc3adfa303e30ff7703148cc5110b587d20
[ "Apache-2.0" ]
null
null
null
apps/omg_performance/config/test.exs
SingularityMatrix/elixir-omg
7db3fcc3adfa303e30ff7703148cc5110b587d20
[ "Apache-2.0" ]
null
null
null
apps/omg_performance/config/test.exs
SingularityMatrix/elixir-omg
7db3fcc3adfa303e30ff7703148cc5110b587d20
[ "Apache-2.0" ]
null
null
null
use Mix.Config config :omg_api, rootchain_height_sync_interval_ms: 100
18
55
0.847222
e8263469364ce3fc66484b3e74dcf18a1713ce79
413
ex
Elixir
hackerrank/simple_array_sum/simple_array_sum.ex
lowks/levelup
805e48cbf33d48616f55ef1b3740bb15b548054d
[ "MIT" ]
null
null
null
hackerrank/simple_array_sum/simple_array_sum.ex
lowks/levelup
805e48cbf33d48616f55ef1b3740bb15b548054d
[ "MIT" ]
39
2018-04-15T12:36:36.000Z
2018-09-16T15:31:50.000Z
hackerrank/simple_array_sum/simple_array_sum.ex
lowks/levelup
805e48cbf33d48616f55ef1b3740bb15b548054d
[ "MIT" ]
null
null
null
defmodule Solution do #Enter your code here. Read input from STDIN. Print output to STDOUT def sum() do times = IO.gets("") |> String.trim |> String.to_integer result = IO.gets("") |> String.trim |> String.split("") |> Enum.map(fn(x) -> String.to_integer(x) end) |> Enum.take(times) |...
29.5
68
0.598063
e8264ca85fb719c434a6b910cf2326535b8ea0ef
2,425
ex
Elixir
clients/fitness/lib/google_api/fitness/v1/model/list_sessions_response.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/fitness/lib/google_api/fitness/v1/model/list_sessions_response.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/fitness/lib/google_api/fitness/v1/model/list_sessions_response.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
43.303571
259
0.729072
e82653014e856f9896884a45830fcaf7ab15c2c3
4,701
ex
Elixir
core/sup_tree_common/alert_manager.ex
ikeyasu/antikythera
544fdd22e46b1f34177053d87d9e2a9708c74113
[ "Apache-2.0" ]
null
null
null
core/sup_tree_common/alert_manager.ex
ikeyasu/antikythera
544fdd22e46b1f34177053d87d9e2a9708c74113
[ "Apache-2.0" ]
null
null
null
core/sup_tree_common/alert_manager.ex
ikeyasu/antikythera
544fdd22e46b1f34177053d87d9e2a9708c74113
[ "Apache-2.0" ]
null
null
null
# Copyright(c) 2015-2018 ACCESS CO., LTD. All rights reserved. use Croma defmodule AntikytheraCore.Alert.Manager do @moduledoc """ An event manager hosting multiple `AntikytheraCore.Alert.Handler`s. Managers are spawned per OTP application (antikythera and each gear). Each handler has its own buffer to store...
39.504202
189
0.708147
e8266de30245fe0b62708ffcfe3846def3ad7209
17,079
exs
Elixir
test/sengo/accounts_test.exs
henrikcoll/sengo
d5ef840843bffbc858dc18d331e4ebc74e6837cb
[ "MIT" ]
null
null
null
test/sengo/accounts_test.exs
henrikcoll/sengo
d5ef840843bffbc858dc18d331e4ebc74e6837cb
[ "MIT" ]
null
null
null
test/sengo/accounts_test.exs
henrikcoll/sengo
d5ef840843bffbc858dc18d331e4ebc74e6837cb
[ "MIT" ]
null
null
null
defmodule Sengo.AccountsTest do use Sengo.DataCase alias Sengo.Accounts import Sengo.AccountsFixtures alias Sengo.Accounts.{User, UserToken} describe "get_user_by_email/1" do test "does not return the user if the email does not exist" do refute Accounts.get_user_by_email("unknown@example.com") ...
33.554028
97
0.658996
e82687d442b299d05bf42617307b4410cb9a180a
181
exs
Elixir
test/controllers/page_controller_test.exs
ne1ro/argo
87f6c0de8311cb3e1e4eb05fa63bb0b71068a743
[ "MIT" ]
null
null
null
test/controllers/page_controller_test.exs
ne1ro/argo
87f6c0de8311cb3e1e4eb05fa63bb0b71068a743
[ "MIT" ]
null
null
null
test/controllers/page_controller_test.exs
ne1ro/argo
87f6c0de8311cb3e1e4eb05fa63bb0b71068a743
[ "MIT" ]
null
null
null
defmodule Argo.PageControllerTest do use Argo.ConnCase test "GET /", %{conn: conn} do conn = get conn, "/" assert html_response(conn, 200) =~ "Арго Белгород" end end
20.111111
54
0.662983
e8268be057f959012913f6b471f149b4ee74b26e
2,467
exs
Elixir
test/search_test.exs
sandisk/tentacat
523791d47d8454e87dc75cf77181b1fc78c125cf
[ "MIT" ]
432
2015-01-19T20:38:35.000Z
2022-01-11T14:32:28.000Z
test/search_test.exs
sandisk/tentacat
523791d47d8454e87dc75cf77181b1fc78c125cf
[ "MIT" ]
183
2015-01-19T08:55:29.000Z
2022-03-01T20:26:03.000Z
test/search_test.exs
sandisk/tentacat
523791d47d8454e87dc75cf77181b1fc78c125cf
[ "MIT" ]
189
2015-01-04T14:56:59.000Z
2021-12-14T20:48:18.000Z
defmodule Tentacat.SearchTest do use ExUnit.Case, async: false use ExVCR.Mock, adapter: ExVCR.Adapter.Hackney import Tentacat.Search doctest Tentacat.Search @client Tentacat.Client.new() setup_all do HTTPoison.start() end test "code/2" do use_cassette "search#code" do params = %{q: "co...
30.45679
93
0.621808
e826a32204a433d9241c647d3075eeea2b937691
1,239
ex
Elixir
lib/ueberauth/strategy/steam/openid.ex
selarom-epilef/ueberauth_steam
e8de1018f7447d7bf79c69b99a22bd91d6b46a38
[ "MIT" ]
null
null
null
lib/ueberauth/strategy/steam/openid.ex
selarom-epilef/ueberauth_steam
e8de1018f7447d7bf79c69b99a22bd91d6b46a38
[ "MIT" ]
null
null
null
lib/ueberauth/strategy/steam/openid.ex
selarom-epilef/ueberauth_steam
e8de1018f7447d7bf79c69b99a22bd91d6b46a38
[ "MIT" ]
null
null
null
defmodule Ueberauth.Strategy.Steam.OpenID do @url_namespace "http://specs.openid.net/auth/2.0" @url_login "https://steamcommunity.com/openid/login" def checkid_setup_url(callback_url) do query = checkid_setup_query(callback_url, callback_url) @url_login <> "?" <> URI.encode_query(query) end defp...
35.4
89
0.656981
e826da7a39f250dcc0e56c786d36f50e36d7e5a9
1,428
ex
Elixir
test/support/data_case.ex
paulfioravanti/phoenix-and-elm
ed3dd942a597913fa675c6a60eff87f06a6f59cf
[ "MIT" ]
2
2019-05-24T14:10:01.000Z
2019-12-16T02:57:41.000Z
test/support/data_case.ex
paulfioravanti/phoenix-and-elm
ed3dd942a597913fa675c6a60eff87f06a6f59cf
[ "MIT" ]
1
2018-11-01T08:12:02.000Z
2018-11-01T09:37:56.000Z
test/support/data_case.ex
The-Vikings/phoenix-and-elm
c6c6bcc2415a479b81cae09cd62872873c7b7e78
[ "MIT" ]
4
2018-07-16T12:16:35.000Z
2019-05-24T14:10:04.000Z
defmodule PhoenixAndElm.DataCase do @moduledoc """ This module defines the setup for tests requiring access to the application's data layer. You may define functions here to be used as helpers in your tests. Finally, if the test case interacts with the database, it cannot be async. For this reason, ever...
25.052632
77
0.684174