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
9169a574d425b2ca3f660edc8e7bb95feb37708e
6,346
ex
Elixir
lib/loom/aworset.ex
samgaw/loom
574db0c8ce6170f65754474789382c142a1050c3
[ "Apache-2.0" ]
null
null
null
lib/loom/aworset.ex
samgaw/loom
574db0c8ce6170f65754474789382c142a1050c3
[ "Apache-2.0" ]
null
null
null
lib/loom/aworset.ex
samgaw/loom
574db0c8ce6170f65754474789382c142a1050c3
[ "Apache-2.0" ]
null
null
null
defmodule Loom.AWORSet do @moduledoc """ An add-removed (optimized) observed-remove set (without tombstones). This CRDT respects adds over removes in the event a simultaneous update. It most naturally matches what most users expect when they add/remove items. It also forms the foundation for other kinds of C...
26.441667
137
0.58856
9169c5dccda93c177e3f333557f8e9b2a448f301
2,724
exs
Elixir
test/vaultag/cache_test.exs
nmbrone/vaultag
d29a601f852cae2a9e466d0c6e440309948560f0
[ "MIT" ]
null
null
null
test/vaultag/cache_test.exs
nmbrone/vaultag
d29a601f852cae2a9e466d0c6e440309948560f0
[ "MIT" ]
null
null
null
test/vaultag/cache_test.exs
nmbrone/vaultag
d29a601f852cae2a9e466d0c6e440309948560f0
[ "MIT" ]
null
null
null
defmodule Vaultag.CacheTest do use ExUnit.Case, async: true alias Vaultag.Cache setup do table = Cache.init() {:ok, table: table} end describe "put/4" do test "puts the given data into the cache with the given TTL", %{table: t} do key = "key" data = %{some: "data"} Cache.put(t...
25.942857
90
0.517621
916a009bf438205ca8af5a76693132efbf35d0d6
1,642
ex
Elixir
clients/composer/lib/google_api/composer/v1beta1/model/database_config.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/composer/lib/google_api/composer/v1beta1/model/database_config.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/composer/lib/google_api/composer/v1beta1/model/database_config.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.93617
264
0.742996
916a2a9b490d1b978126cc7b5dd609246c485c8d
398
ex
Elixir
lib/aba_cli.ex
jscheel42/aba_cli
c66c4921f970dbc8acea4f273d9802c978d2f123
[ "MIT" ]
null
null
null
lib/aba_cli.ex
jscheel42/aba_cli
c66c4921f970dbc8acea4f273d9802c978d2f123
[ "MIT" ]
null
null
null
lib/aba_cli.ex
jscheel42/aba_cli
c66c4921f970dbc8acea4f273d9802c978d2f123
[ "MIT" ]
null
null
null
defmodule AbaCLI do @moduledoc """ Documentation for AbaCLI. """ @doc """ Hello world. ## Examples iex> AbaCLI.hello :world """ def hello do :world end def db_update_all do AbaCLI.Map.db_update_maps AbaCLI.Hero.db_update_heroes AbaCLI.Ability.db_update_abilities ...
14.740741
38
0.675879
916a37501975f41bf2b46ddab6bad3edaacdd967
371
ex
Elixir
lib/adaptable_costs_evaluator/types/jsonb.ex
patrotom/adaptable-costs-evaluator
c97e65af1e021d7c6acf6564f4671c60321346e3
[ "MIT" ]
null
null
null
lib/adaptable_costs_evaluator/types/jsonb.ex
patrotom/adaptable-costs-evaluator
c97e65af1e021d7c6acf6564f4671c60321346e3
[ "MIT" ]
4
2021-12-07T12:26:50.000Z
2021-12-30T14:17:25.000Z
lib/adaptable_costs_evaluator/types/jsonb.ex
patrotom/adaptable-costs-evaluator
c97e65af1e021d7c6acf6564f4671c60321346e3
[ "MIT" ]
null
null
null
defmodule AdaptableCostsEvaluator.Types.JSONB do @moduledoc """ A custom definition of the PostgreSQL JSONB type to be used in `Ecto.Changeset`. """ use Ecto.Type @impl true def type, do: :map @impl true def cast(any), do: {:ok, any} @impl true def load(value), do: Jason.decode(value) @impl t...
18.55
82
0.679245
916a82202227aed7107c4321dc3e09e6d5995442
250
ex
Elixir
lib/tesla_client.ex
InfiniteSoul/proxer_ex
df60ca5d4b9222d77ff685b7c1897781a738abc1
[ "MIT" ]
null
null
null
lib/tesla_client.ex
InfiniteSoul/proxer_ex
df60ca5d4b9222d77ff685b7c1897781a738abc1
[ "MIT" ]
null
null
null
lib/tesla_client.ex
InfiniteSoul/proxer_ex
df60ca5d4b9222d77ff685b7c1897781a738abc1
[ "MIT" ]
null
null
null
defmodule ProxerEx.TeslaClient do # Custom Tesla client so we can use the middleware @moduledoc false use Tesla plug(Tesla.Middleware.Timeout, timeout: 10_000) plug(Tesla.Middleware.FormUrlencoded) plug(Tesla.Middleware.DecodeJson) end
22.727273
52
0.784
916abc40b7262f0df39eb29737bf3254099a5273
1,068
ex
Elixir
lib/stripe_mock_web/plug/auth.ex
whitepaperclip/stripe_mock
a8ba9101a04216f26d0650eb38448173d8e090a1
[ "MIT" ]
4
2019-06-04T20:35:21.000Z
2021-09-02T04:04:21.000Z
lib/stripe_mock_web/plug/auth.ex
whitepaperclip/stripe_mock
a8ba9101a04216f26d0650eb38448173d8e090a1
[ "MIT" ]
2
2020-02-04T17:38:12.000Z
2021-04-29T06:59:06.000Z
lib/stripe_mock_web/plug/auth.ex
whitepaperclip/stripe_mock
a8ba9101a04216f26d0650eb38448173d8e090a1
[ "MIT" ]
null
null
null
defmodule StripeMockWeb.Plug.Auth do @moduledoc """ Pretends to do auth stuff. """ use Phoenix.Controller def init(options), do: options def call(conn, _arg) do if authed?(conn) do conn else conn |> put_status(:unauthorized) |> put_view(StripeMockWeb.ErrorView) |> re...
19.418182
63
0.522472
916ac141dc1d231a722612fdc91cff1e4978d84d
301
exs
Elixir
apps/astarte_trigger_engine/config/test.exs
Annopaolo/astarte
f8190e8bf044759a9b84bdeb5786a55b6f793a4f
[ "Apache-2.0" ]
191
2018-03-30T13:23:08.000Z
2022-03-02T12:05:32.000Z
apps/astarte_trigger_engine/config/test.exs
Annopaolo/astarte
f8190e8bf044759a9b84bdeb5786a55b6f793a4f
[ "Apache-2.0" ]
402
2018-03-30T13:37:00.000Z
2022-03-31T16:47:10.000Z
apps/astarte_trigger_engine/config/test.exs
Annopaolo/astarte
f8190e8bf044759a9b84bdeb5786a55b6f793a4f
[ "Apache-2.0" ]
24
2018-03-30T13:29:48.000Z
2022-02-28T11:10:26.000Z
use Mix.Config config :astarte_trigger_engine, :amqp_consumer_options, host: System.get_env("RABBITMQ_HOST") || "rabbitmq" config :astarte_trigger_engine, :events_consumer, MockEventsConsumer config :logger, :console, format: {PrettyLog.UserFriendlyFormatter, :format}, metadata: [:function]
27.363636
68
0.787375
916ad2cec1019d4f17917807111ec521219b8fea
3,569
ex
Elixir
clients/you_tube/lib/google_api/you_tube/v3/model/playlist_item_snippet.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/you_tube/lib/google_api/you_tube/v3/model/playlist_item_snippet.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/you_tube/lib/google_api/you_tube/v3/model/playlist_item_snippet.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 ...
50.267606
309
0.706921
916ad5867593a7fda3f15ec4fd5b177180f1b322
2,541
ex
Elixir
lib/koans/14_enums.ex
lauradaniela/koans_elixir
4157cf931ae0de99bc1b80b508be458ce40e832d
[ "MIT" ]
null
null
null
lib/koans/14_enums.ex
lauradaniela/koans_elixir
4157cf931ae0de99bc1b80b508be458ce40e832d
[ "MIT" ]
null
null
null
lib/koans/14_enums.ex
lauradaniela/koans_elixir
4157cf931ae0de99bc1b80b508be458ce40e832d
[ "MIT" ]
null
null
null
defmodule Enums do use Koans @intro "Enums" koan "Knowing how many elements are in a list is important for book-keeping" do assert Enum.count([1, 2, 3]) == 3 end koan "Depending on the type, it counts pairs" do assert Enum.count(%{a: :foo, b: :bar}) == 2 end def less_than_five?(n), do: n < 5 ...
30.987805
96
0.615506
916ae46d59d199d6eba6e8556b50ac6b40cbd059
643
ex
Elixir
lab2/proxy_server/lib/proxy_server/application.ex
AlexandruBurlacu/distributed-systems-labs
116164eb12f9b6e492bf2e6a2bb434d76abf1892
[ "MIT" ]
null
null
null
lab2/proxy_server/lib/proxy_server/application.ex
AlexandruBurlacu/distributed-systems-labs
116164eb12f9b6e492bf2e6a2bb434d76abf1892
[ "MIT" ]
8
2018-12-03T20:42:30.000Z
2019-01-10T13:49:09.000Z
lab2/proxy_server/lib/proxy_server/application.ex
AlexandruBurlacu/distributed-systems-labs
116164eb12f9b6e492bf2e6a2bb434d76abf1892
[ "MIT" ]
null
null
null
defmodule ProxyServer.Application do # See https://hexdocs.pm/elixir/Application.html # for more information on OTP Applications @moduledoc false use Application defp cowboy_port, do: Application.get_env(:example, :cowboy_port, 8085) def start(_type, _args) do HTTPoison.start ProxyServer.LoadBala...
26.791667
92
0.724728
916aec20405a0a78f4a45d7a67794cf4ca82a810
664
ex
Elixir
lib/taex/oscillators.ex
benyblack/Taex
a98bb1523497c455ce626cadd345185ecc03cea8
[ "MIT" ]
20
2017-07-17T13:08:21.000Z
2021-07-15T05:58:19.000Z
lib/taex/oscillators.ex
benyblack/Taex
a98bb1523497c455ce626cadd345185ecc03cea8
[ "MIT" ]
3
2017-09-06T12:23:45.000Z
2021-05-25T07:11:06.000Z
lib/taex/oscillators.ex
benyblack/Taex
a98bb1523497c455ce626cadd345185ecc03cea8
[ "MIT" ]
6
2017-09-01T15:43:17.000Z
2019-12-30T07:58:25.000Z
defmodule Taex.Oscillators do alias Taex.MovingAverage @doc """ Calculates the stochastic current market rate for the given list of prices (%K) """ @spec stochastic([float]) :: float def stochastic(prices) when is_list(prices) do c = Enum.at(prices, (prices |> Enum.count) - 1) l14 = Taex.Helpers...
26.56
81
0.676205
916b4e22a8f00445c3d6cce7e68092b8bd6bc2b6
1,491
exs
Elixir
config/config.exs
ehealth-ua/otp_verification.api
674960be39daac31f00a072a443e78e9923094d0
[ "Apache-2.0" ]
null
null
null
config/config.exs
ehealth-ua/otp_verification.api
674960be39daac31f00a072a443e78e9923094d0
[ "Apache-2.0" ]
null
null
null
config/config.exs
ehealth-ua/otp_verification.api
674960be39daac31f00a072a443e78e9923094d0
[ "Apache-2.0" ]
1
2019-06-12T18:04:39.000Z
2019-06-12T18:04:39.000Z
# This file is responsible for configuring your application # and its dependencies with the aid of the Mix.Config module. use Mix.Config # By default, the umbrella project as well as each child # application will require this configuration file, ensuring # they all use the same configuration. While one could # configu...
35.5
72
0.718981
916b521cfa67340572e86dec31b6c762f301b645
7,839
exs
Elixir
bin/bootstrap_practice_exercise.exs
devtayls/elixir
67824de8209ff1b6ed2f736deedfb5bd815130ca
[ "MIT" ]
343
2017-06-22T16:28:28.000Z
2022-03-25T21:33:32.000Z
bin/bootstrap_practice_exercise.exs
devtayls/elixir
67824de8209ff1b6ed2f736deedfb5bd815130ca
[ "MIT" ]
583
2017-06-19T10:48:40.000Z
2022-03-28T21:43:12.000Z
bin/bootstrap_practice_exercise.exs
devtayls/elixir
67824de8209ff1b6ed2f736deedfb5bd815130ca
[ "MIT" ]
228
2017-07-05T07:09:32.000Z
2022-03-27T08:59:08.000Z
# Generate all files required for a practice exercise. # File content is filled as much as possible, but some, including tests, need manual input. # # Run the following command from the root of the repo: # $ elixir bin/boostrap_practice_exercise.exs complex-numbers # Pass the name of the exercise (e. g., "complex-numbe...
27.602113
97
0.614747
916b57f39e364c91ecbafa299989cf0405f7acb2
838
exs
Elixir
test/client_test.exs
jonasrichard/iris
eb4547ced7f7ff9305a4edfa1c32e8d45fa2aa00
[ "Apache-2.0" ]
1
2017-03-31T09:26:21.000Z
2017-03-31T09:26:21.000Z
test/client_test.exs
jonasrichard/iris
eb4547ced7f7ff9305a4edfa1c32e8d45fa2aa00
[ "Apache-2.0" ]
1
2017-05-03T06:30:09.000Z
2017-05-03T06:30:09.000Z
test/client_test.exs
jonasrichard/iris
eb4547ced7f7ff9305a4edfa1c32e8d45fa2aa00
[ "Apache-2.0" ]
null
null
null
defmodule Iris.ClientTest do use ExUnit.Case # alias Iris.Client, as: Client # alias Iris.Message, as: Message # alias Iris.ProcessMock, as: ProcessMock test "routed messages sent to web socket" do # {:ok, w1} = ProcessMock.start_link() # {:ok, c1} = Client.start_link(w1) # send(c1, {:route,...
19.045455
50
0.603819
916b79c61247460aa3fe61827289bfb579ef2d92
2,698
ex
Elixir
clients/compute/lib/google_api/compute/v1/model/per_instance_config.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/compute/lib/google_api/compute/v1/model/per_instance_config.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/compute/lib/google_api/compute/v1/model/per_instance_config.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...
48.178571
486
0.737583
916b82f4acabf46578bd91b16a6bb8a68ce56181
348
ex
Elixir
lib/mole_web/controllers/image_controller.ex
the-mikedavis/mole
73d884b5dca4e5371b1b399d7e65c0f4a0229851
[ "BSD-3-Clause" ]
1
2020-07-15T14:39:10.000Z
2020-07-15T14:39:10.000Z
lib/mole_web/controllers/image_controller.ex
the-mikedavis/mole
73d884b5dca4e5371b1b399d7e65c0f4a0229851
[ "BSD-3-Clause" ]
59
2018-11-05T23:09:10.000Z
2020-07-11T20:44:14.000Z
lib/mole_web/controllers/image_controller.ex
the-mikedavis/mole
73d884b5dca4e5371b1b399d7e65c0f4a0229851
[ "BSD-3-Clause" ]
null
null
null
defmodule MoleWeb.ImageController do use MoleWeb, :controller alias Mole.{Content, Content.Image, Repo} def index(conn, _params) do images = Repo.all(Image) render(conn, "index.html", images: images) end def show(conn, %{"id" => id}) do image = Content.get_image!(id) render(conn, "show.htm...
20.470588
46
0.666667
916bb123e2d8ca32ee19c2c15496d4324443bee9
656
exs
Elixir
config/config.exs
YodelTalk/event_store
d8f07939d5112754072aeeea8a14cd694b978adf
[ "MIT" ]
null
null
null
config/config.exs
YodelTalk/event_store
d8f07939d5112754072aeeea8a14cd694b978adf
[ "MIT" ]
null
null
null
config/config.exs
YodelTalk/event_store
d8f07939d5112754072aeeea8a14cd694b978adf
[ "MIT" ]
null
null
null
import Config config :logger, level: :info config :event_store, adapter: EventStore.Adapters.Postgres, ecto_repos: [EventStore.Adapters.Postgres.Repo] config :event_store, EventStore.Adapters.Postgres.Repo, username: System.get_env("POSTGRES_USER", "postgres"), password: System.get_env("POSTGRES_PASSWORD", "...
32.8
68
0.778963
916bb313925ef23d15813a94741c032dda612055
71
ex
Elixir
lib/companies_web/views/admin/user_view.ex
raymondboswel/elixir-companies
863f6c4fe979b91abe3e15c6e3db3b41a014915f
[ "MIT" ]
333
2019-05-18T14:01:17.000Z
2022-03-22T05:07:40.000Z
lib/companies_web/views/admin/user_view.ex
raymondboswel/elixir-companies
863f6c4fe979b91abe3e15c6e3db3b41a014915f
[ "MIT" ]
89
2019-05-18T10:01:54.000Z
2021-05-12T15:19:26.000Z
lib/companies_web/views/admin/user_view.ex
envato/elixir-companies
7488075d1a372c9ca8fa6603f93e384b73977526
[ "MIT" ]
33
2019-06-07T00:33:53.000Z
2022-03-21T05:38:28.000Z
defmodule CompaniesWeb.Admin.UserView do use CompaniesWeb, :view end
17.75
40
0.816901
916bb47a7387d9538c0e030109fe6361f6dd3526
2,219
ex
Elixir
clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1p2beta1__face_detection_annotation.ex
mcrumm/elixir-google-api
544f22797cec52b3a23dfb6e39117f0018448610
[ "Apache-2.0" ]
null
null
null
clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1p2beta1__face_detection_annotation.ex
mcrumm/elixir-google-api
544f22797cec52b3a23dfb6e39117f0018448610
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1p2beta1__face_detection_annotation.ex
mcrumm/elixir-google-api
544f22797cec52b3a23dfb6e39117f0018448610
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
32.632353
168
0.731411
916c28798a5169a5209420514a539cd0b5c324eb
490
exs
Elixir
mix.exs
henry232323/Discord-OAuth2
f7f1fa255558ec6372d0d512c4de413685db484b
[ "MIT" ]
1
2020-03-12T14:52:01.000Z
2020-03-12T14:52:01.000Z
mix.exs
henry232323/Discord-OAuth2
f7f1fa255558ec6372d0d512c4de413685db484b
[ "MIT" ]
null
null
null
mix.exs
henry232323/Discord-OAuth2
f7f1fa255558ec6372d0d512c4de413685db484b
[ "MIT" ]
null
null
null
defmodule DiscOAuth2.Mixfile do use Mix.Project def project do [app: :discoauth2, version: "0.1.0", elixir: "~> 1.4", build_embedded: Mix.env == :prod, start_permanent: Mix.env == :prod, deps: deps()] end def application do [extra_applications: [:logger]] end defp deps do...
18.846154
45
0.534694
916c62c704714b37687ed79d449285508cab32c7
1,099
ex
Elixir
lib/hornet/worker.ex
andreaswillems/hornet
a61e4518afd45ae5f2cf7ceb8c80527a7be0a174
[ "MIT" ]
30
2020-11-02T19:01:55.000Z
2021-12-15T07:42:15.000Z
lib/hornet/worker.ex
andreaswillems/hornet
a61e4518afd45ae5f2cf7ceb8c80527a7be0a174
[ "MIT" ]
4
2020-10-08T18:31:22.000Z
2022-02-28T20:18:40.000Z
lib/hornet/worker.ex
andreaswillems/hornet
a61e4518afd45ae5f2cf7ceb8c80527a7be0a174
[ "MIT" ]
2
2020-11-17T12:23:37.000Z
2020-11-17T15:59:12.000Z
defmodule Hornet.Worker do @moduledoc false use GenServer alias Hornet.RateCounter @spec start_link(Keyword.t()) :: GenServer.on_start() def start_link(params) do GenServer.start_link(__MODULE__, params) end @impl true def init(params) do func = Keyword.fetch!(params, :func) interval = K...
20.351852
73
0.687898
916c7b482588a9486ba2d0db1c533d6a102aa212
4,408
ex
Elixir
lib/name_of_the_day_web/controllers/user_auth.ex
joaothallis/name-of-the-day
839411b6eb28cefd1b74e2f4e6eafcbb7b7bfd82
[ "MIT" ]
null
null
null
lib/name_of_the_day_web/controllers/user_auth.ex
joaothallis/name-of-the-day
839411b6eb28cefd1b74e2f4e6eafcbb7b7bfd82
[ "MIT" ]
6
2021-09-07T15:10:50.000Z
2021-10-31T02:56:08.000Z
lib/name_of_the_day_web/controllers/user_auth.ex
joaothallis/name-of-the-day
839411b6eb28cefd1b74e2f4e6eafcbb7b7bfd82
[ "MIT" ]
null
null
null
defmodule NameOfTheDayWeb.UserAuth do import Plug.Conn import Phoenix.Controller alias NameOfTheDay.Accounts alias NameOfTheDayWeb.Router.Helpers, as: Routes # Make the remember me cookie valid for 60 days. # If you want bump or reduce this value, also change # the token expiry itself in UserToken. @m...
29.386667
81
0.696688
916c9477e29b0c996cf74e226449a371cf137c50
2,789
ex
Elixir
clients/compute/lib/google_api/compute/v1/model/scheduling.ex
chingor13/elixir-google-api
85e13fa25c4c9f4618bb463ab4c79245fc6d2a7b
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/compute/lib/google_api/compute/v1/model/scheduling.ex
chingor13/elixir-google-api
85e13fa25c4c9f4618bb463ab4c79245fc6d2a7b
[ "Apache-2.0" ]
null
null
null
clients/compute/lib/google_api/compute/v1/model/scheduling.ex
chingor13/elixir-google-api
85e13fa25c4c9f4618bb463ab4c79245fc6d2a7b
[ "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 ...
48.086207
324
0.744711
916cbbb8997e88c7f64386ff231898855fa88d4e
15,618
exs
Elixir
test/sched_ex_test.exs
mkaszubowski/SchedEx
6924ad554970d684f10b9e46744176595e4926a1
[ "MIT" ]
null
null
null
test/sched_ex_test.exs
mkaszubowski/SchedEx
6924ad554970d684f10b9e46744176595e4926a1
[ "MIT" ]
null
null
null
test/sched_ex_test.exs
mkaszubowski/SchedEx
6924ad554970d684f10b9e46744176595e4926a1
[ "MIT" ]
1
2018-09-19T14:06:26.000Z
2018-09-19T14:06:26.000Z
defmodule SchedExTest do use ExUnit.Case, async: true import ExUnit.CaptureLog doctest SchedEx @sleep_duration 20 defmodule TestCallee do use Agent def start_link(_) do Agent.start_link(fn -> [] end) end def append(pid, x) do Agent.update(pid, &Kernel.++(&1, [x])) end ...
29.13806
103
0.612306
916cf951689d339a0c7e222bf02a764cb203d7bc
775
exs
Elixir
test/trento/application/integration/telemetry/telemetry_test.exs
trento-project/web
3260b30c781bffbbb0e5205cd650966c4026b9ac
[ "Apache-2.0" ]
1
2022-03-22T16:59:34.000Z
2022-03-22T16:59:34.000Z
test/trento/application/integration/telemetry/telemetry_test.exs
trento-project/web
3260b30c781bffbbb0e5205cd650966c4026b9ac
[ "Apache-2.0" ]
24
2022-03-22T16:45:25.000Z
2022-03-31T13:00:02.000Z
test/trento/application/integration/telemetry/telemetry_test.exs
trento-project/web
3260b30c781bffbbb0e5205cd650966c4026b9ac
[ "Apache-2.0" ]
1
2022-03-30T14:16:16.000Z
2022-03-30T14:16:16.000Z
defmodule Trento.Integration.TelemetryTest do use ExUnit.Case use Trento.DataCase import Mox import Trento.Factory alias Trento.Installation alias Trento.Integration.Telemetry setup :verify_on_exit! setup do Application.put_env(:trento, :flavor, "Premium") insert(:sles_subscription, identifi...
24.21875
96
0.732903
916cfea43496fb590676762d9b529c1b5e6aefd6
1,933
ex
Elixir
clients/cloud_resource_manager/lib/google_api/cloud_resource_manager/v2/model/search_folders_response.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/cloud_resource_manager/lib/google_api/cloud_resource_manager/v2/model/search_folders_response.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/cloud_resource_manager/lib/google_api/cloud_resource_manager/v2/model/search_folders_response.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
37.173077
146
0.747543
916d27e4223cd23a8e5d6757ce79363a04a73ae9
69
ex
Elixir
web/views/page_view.ex
KazuCocoa/react_phoenix
7cd2fe0bdcddf8a0fdd876517232893783bf21e5
[ "MIT" ]
null
null
null
web/views/page_view.ex
KazuCocoa/react_phoenix
7cd2fe0bdcddf8a0fdd876517232893783bf21e5
[ "MIT" ]
null
null
null
web/views/page_view.ex
KazuCocoa/react_phoenix
7cd2fe0bdcddf8a0fdd876517232893783bf21e5
[ "MIT" ]
null
null
null
defmodule ReactPhoenix.PageView do use ReactPhoenix.Web, :view end
17.25
34
0.811594
916d9a89547bd749c5f9382af513af479ae6e84f
5,743
ex
Elixir
lib/mambo/watcher.ex
Inouju/mambo
facc3b4bca4ce88ae1e65219d9342105108d97f3
[ "MIT" ]
15
2016-01-24T00:08:40.000Z
2017-09-04T05:40:48.000Z
lib/mambo/watcher.ex
Inouju/mambo
facc3b4bca4ce88ae1e65219d9342105108d97f3
[ "MIT" ]
7
2016-02-07T07:14:16.000Z
2020-01-26T23:57:09.000Z
lib/mambo/watcher.ex
Inouju/mambo
facc3b4bca4ce88ae1e65219d9342105108d97f3
[ "MIT" ]
2
2016-03-23T14:16:44.000Z
2020-03-22T13:46:59.000Z
defmodule Mambo.Watcher do @moduledoc """ Responsible for watching the chat of a channel and notifying the scripts when a chat message comes up. """ use GenServer @nmsg "notifytextmessage" @nmove "notifyclientmoved" @nleft "notifyclientleftview" @nenter "notifycliententerview" @admin ...
31.554945
128
0.585234
916d9d81e107f3cb891240ad4099fdef54f80295
96
ex
Elixir
lib/iso3166/subdivision.ex
dy2k/iso3166
ab635c492ba6abf5e23cda2c7a30e1ec79f43334
[ "MIT" ]
null
null
null
lib/iso3166/subdivision.ex
dy2k/iso3166
ab635c492ba6abf5e23cda2c7a30e1ec79f43334
[ "MIT" ]
null
null
null
lib/iso3166/subdivision.ex
dy2k/iso3166
ab635c492ba6abf5e23cda2c7a30e1ec79f43334
[ "MIT" ]
null
null
null
defmodule Iso3166.Subdivision do defstruct [:unofficial_names, :translations, :geo, :name] end
24
58
0.791667
916da638962340cd900493848bbbd71ee1f9c5c6
415
ex
Elixir
lib/geometry/geometry.ex
crertel/elixir_rigid_physics
059f121d5504b7b8fed22aa907503d9e9fd8ac1d
[ "Apache-2.0" ]
6
2019-05-23T19:57:26.000Z
2021-06-14T16:52:53.000Z
lib/geometry/geometry.ex
crertel/elixir_rigid_physics
059f121d5504b7b8fed22aa907503d9e9fd8ac1d
[ "Apache-2.0" ]
10
2019-06-21T22:09:39.000Z
2019-07-10T04:16:12.000Z
lib/geometry/geometry.ex
crertel/elixir_rigid_physics
059f121d5504b7b8fed22aa907503d9e9fd8ac1d
[ "Apache-2.0" ]
1
2021-01-09T01:58:55.000Z
2021-01-09T01:58:55.000Z
defmodule ElixirRigidPhysics.Geometry do @moduledoc """ Module for union of geometry types. """ alias ElixirRigidPhysics.Geometry.Sphere alias ElixirRigidPhysics.Geometry.Capsule alias ElixirRigidPhysics.Geometry.Box alias ElixirRigidPhysics.Geometry.Plane alias ElixirRigidPhysics.Geometry.Hull @type...
31.923077
97
0.771084
916dc2d586859f1f870fdee47597a6f22da74896
1,124
ex
Elixir
lib/sakavault/application.ex
Api2sem2021/5-ADS2020-2-equipe6-api
11484e0232c1edd7fc928aa68d5014f2e3a20d07
[ "MIT" ]
null
null
null
lib/sakavault/application.ex
Api2sem2021/5-ADS2020-2-equipe6-api
11484e0232c1edd7fc928aa68d5014f2e3a20d07
[ "MIT" ]
3
2020-09-20T22:59:35.000Z
2020-09-20T23:00:47.000Z
lib/sakavault/application.ex
SEGURANCA-DA-INFORMACAO-LGPD/sakavault_api
11484e0232c1edd7fc928aa68d5014f2e3a20d07
[ "MIT" ]
null
null
null
defmodule SakaVault.Application do # See https://hexdocs.pm/elixir/Application.html # for more information on OTP Applications @moduledoc false use Application def start(_type, _args) do # Replace Application environment with resolved values Confex.resolve_env!(:sakavault) children = [ # ...
29.578947
67
0.711744
916dc9f6758887b7e51bfce65a7956f8dd0e496c
257
ex
Elixir
lib/zdashboard.ex
gsmlg/dashboard
d38bc8e576d0c2ab590b9ea5b612652cf21972f9
[ "MIT" ]
1
2020-01-02T07:58:56.000Z
2020-01-02T07:58:56.000Z
lib/zdashboard.ex
gsmlg/dashboard
d38bc8e576d0c2ab590b9ea5b612652cf21972f9
[ "MIT" ]
6
2020-01-02T10:23:27.000Z
2021-09-01T12:34:31.000Z
lib/zdashboard.ex
gsmlg/dashboard
d38bc8e576d0c2ab590b9ea5b612652cf21972f9
[ "MIT" ]
null
null
null
defmodule Zdashboard do @moduledoc """ Zdashboard 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.7
66
0.758755
916dce26d9afa22a2e736e969bba532accfb1e96
1,945
ex
Elixir
clients/dialogflow/lib/google_api/dialogflow/v3/model/google_cloud_dialogflow_cx_v3_export_flow_request.ex
renovate-bot/elixir-google-api
1da34cd39b670c99f067011e05ab90af93fef1f6
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/dialogflow/lib/google_api/dialogflow/v3/model/google_cloud_dialogflow_cx_v3_export_flow_request.ex
swansoffiee/elixir-google-api
9ea6d39f273fb430634788c258b3189d3613dde0
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/dialogflow/lib/google_api/dialogflow/v3/model/google_cloud_dialogflow_cx_v3_export_flow_request.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...
35.363636
262
0.737789
916de814c82bd1749186a4e11eaddc5734f0dad8
552
ex
Elixir
backend/apps/students_crm_v2/lib/students_crm_v2/application.ex
KyivKrishnaAcademy/students_crm_v2
e0ad9b3c5e52dfef5ab8f9179f3c593f935786e6
[ "MIT" ]
null
null
null
backend/apps/students_crm_v2/lib/students_crm_v2/application.ex
KyivKrishnaAcademy/students_crm_v2
e0ad9b3c5e52dfef5ab8f9179f3c593f935786e6
[ "MIT" ]
50
2018-07-29T09:17:35.000Z
2019-02-26T05:23:34.000Z
backend/apps/students_crm_v2/lib/students_crm_v2/application.ex
KyivKrishnaAcademy/students_crm_v2
e0ad9b3c5e52dfef5ab8f9179f3c593f935786e6
[ "MIT" ]
null
null
null
defmodule StudentsCrmV2.Application do @moduledoc """ The StudentsCrmV2 Application Service. The students_crm_v2 system business domain lives in this application. Exposes API to clients such as the `StudentsCrmV2Web` application for use in channels, controllers, and elsewhere. """ use Application def...
25.090909
91
0.742754
916e038e55286b48ede2c0ee9a2c4ddefad7b7e1
74
exs
Elixir
vue_fire/test/views/page_view_test.exs
hectorip/VuePhoenix
2bd5ff6de9811d373c260a1eda60d6809d472d15
[ "Apache-2.0" ]
1
2016-08-30T17:14:49.000Z
2016-08-30T17:14:49.000Z
vue_fire/test/views/page_view_test.exs
hectorip/VuePhoenix
2bd5ff6de9811d373c260a1eda60d6809d472d15
[ "Apache-2.0" ]
null
null
null
vue_fire/test/views/page_view_test.exs
hectorip/VuePhoenix
2bd5ff6de9811d373c260a1eda60d6809d472d15
[ "Apache-2.0" ]
null
null
null
defmodule VueFire.PageViewTest do use VueFire.ConnCase, async: true end
18.5
35
0.810811
916e2acf05a7e0e9684a7e4dc81a93be3eb30041
366
ex
Elixir
lib/elixible/client/storage.ex
gabrielgatu/elixible
3d8c4881469f2d3349488caf67f0d8400d7d1426
[ "MIT" ]
1
2020-05-08T05:11:55.000Z
2020-05-08T05:11:55.000Z
lib/elixible/client/storage.ex
gabrielgatu/elixible
3d8c4881469f2d3349488caf67f0d8400d7d1426
[ "MIT" ]
1
2020-05-08T10:49:17.000Z
2020-05-08T10:59:55.000Z
lib/elixible/client/storage.ex
gabrielgatu/elixible
3d8c4881469f2d3349488caf67f0d8400d7d1426
[ "MIT" ]
null
null
null
defmodule Elixible.Client.Storage do @name __MODULE__ def start_link do Agent.start_link(fn -> %{} end, name: @name) end def put(jid, pid) do Agent.update(@name, &Map.put(&1, jid, pid)) end def get(jid) do Agent.get(@name, &Map.get(&1, jid)) |> case do nil -> IO.puts "Error, jid n...
18.3
48
0.590164
916e2e4a02718cc48b57b818bbacf9977dbd6af9
1,911
ex
Elixir
clients/cloud_identity/lib/google_api/cloud_identity/v1/model/google_apps_cloudidentity_devices_v1_cancel_wipe_device_user_response.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/cloud_identity/lib/google_api/cloud_identity/v1/model/google_apps_cloudidentity_devices_v1_cancel_wipe_device_user_response.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/cloud_identity/lib/google_api/cloud_identity/v1/model/google_apps_cloudidentity_devices_v1_cancel_wipe_device_user_response.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-10-04T10:12:44.000Z
2020-10-04T10:12:44.000Z
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
33.526316
172
0.770277
916e348e9d0e00b57c20235a75a706dc96b74ba2
4,402
exs
Elixir
test/plug_session_mnesia/helpers_test.exs
marisradu/plug_session_mnesia
537e1c777144a2fda25b8d5366994fd2c82ae1a8
[ "MIT" ]
null
null
null
test/plug_session_mnesia/helpers_test.exs
marisradu/plug_session_mnesia
537e1c777144a2fda25b8d5366994fd2c82ae1a8
[ "MIT" ]
null
null
null
test/plug_session_mnesia/helpers_test.exs
marisradu/plug_session_mnesia
537e1c777144a2fda25b8d5366994fd2c82ae1a8
[ "MIT" ]
null
null
null
defmodule PlugSessionMnesia.HelpersTest do use PlugSessionMnesia.TestCase alias PlugSessionMnesia.Helpers alias PlugSessionMnesia.TableNotDefined alias PlugSessionMnesia.TableExists setup [:mnesia, :with_env] describe "setup!/0" do test "creates a Mnesia schema and table according to the configuratio...
29.743243
80
0.642662
916e5b2afaa56866fd59d8afc91651d6eaebf739
5,402
ex
Elixir
clients/compute/lib/google_api/compute/v1/model/health_check.ex
chingor13/elixir-google-api
85e13fa25c4c9f4618bb463ab4c79245fc6d2a7b
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/compute/lib/google_api/compute/v1/model/health_check.ex
chingor13/elixir-google-api
85e13fa25c4c9f4618bb463ab4c79245fc6d2a7b
[ "Apache-2.0" ]
null
null
null
clients/compute/lib/google_api/compute/v1/model/health_check.ex
chingor13/elixir-google-api
85e13fa25c4c9f4618bb463ab4c79245fc6d2a7b
[ "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 ...
58.717391
490
0.703999
916e6c2fa10c41f3d3b1da9355ba29fdead2c692
3,746
exs
Elixir
farmbot_os/config/target/prod.exs
Arti4ever/farmbot_os
a238c1d5ae78c08d1f5894cac41ed61035fb3266
[ "MIT" ]
1
2021-04-22T10:18:50.000Z
2021-04-22T10:18:50.000Z
farmbot_os/config/target/prod.exs
Arti4ever/farmbot_os
a238c1d5ae78c08d1f5894cac41ed61035fb3266
[ "MIT" ]
null
null
null
farmbot_os/config/target/prod.exs
Arti4ever/farmbot_os
a238c1d5ae78c08d1f5894cac41ed61035fb3266
[ "MIT" ]
null
null
null
use Mix.Config local_file = Path.join(System.user_home!(), ".ssh/id_rsa.pub") local_key = if File.exists?(local_file), do: [File.read!(local_file)], else: [] config :nerves_firmware_ssh, authorized_keys: local_key config :vintage_net, regulatory_domain: "00", persistence: VintageNet.Persistence.Null, config: ...
27.343066
80
0.708756
916e70ce6561cfb98ec3ef65cf38d8918056bb7f
510
exs
Elixir
config/test.exs
GeetanjaliStudio/gstudio-rt
535ff386ff4d09cc18bbe7f6917fdc230f01f3d9
[ "MIT" ]
null
null
null
config/test.exs
GeetanjaliStudio/gstudio-rt
535ff386ff4d09cc18bbe7f6917fdc230f01f3d9
[ "MIT" ]
null
null
null
config/test.exs
GeetanjaliStudio/gstudio-rt
535ff386ff4d09cc18bbe7f6917fdc230f01f3d9
[ "MIT" ]
null
null
null
use Mix.Config # We don't run a server during test. If one is required, # you can enable the server option below. config :se_daily_rt, SEDailyRTWeb.Endpoint, http: [port: 4001], server: false # Print only warnings and errors during test config :logger, level: :warn # Configure your database config :se_daily_rt, ...
25.5
56
0.743137
916ea5fe23cc7ec8a0dafc13c7298ea7f0eed3a7
2,065
exs
Elixir
config/prod.exs
semlabs/requestbx
b9dfb33efd04f067ede1a8e2659f84c92abbed67
[ "MIT" ]
null
null
null
config/prod.exs
semlabs/requestbx
b9dfb33efd04f067ede1a8e2659f84c92abbed67
[ "MIT" ]
1
2018-01-19T15:23:36.000Z
2018-01-19T15:23:36.000Z
config/prod.exs
semlabs/requestbx
b9dfb33efd04f067ede1a8e2659f84c92abbed67
[ "MIT" ]
null
null
null
use Mix.Config # For production, we often load configuration from external # sources, such as your system environment. For this reason, # you won't find the :http configuration below, but set inside # RequestbxWeb.Endpoint.init/2 when load_from_system_env is # true. Any dynamic configuration should be done there. # # ...
32.777778
67
0.711864
916ecd98627ee0b64f84706c1247af5592398599
330
ex
Elixir
apps/api/web/channels/user_socket.ex
evansb/conifer
926b9a60c15711877e5869459b837c825edbe693
[ "MIT" ]
null
null
null
apps/api/web/channels/user_socket.ex
evansb/conifer
926b9a60c15711877e5869459b837c825edbe693
[ "MIT" ]
null
null
null
apps/api/web/channels/user_socket.ex
evansb/conifer
926b9a60c15711877e5869459b837c825edbe693
[ "MIT" ]
null
null
null
defmodule Api.UserSocket do use Phoenix.Socket channel "user:*", Chat.UserChannel transport :websocket, Phoenix.Transports.WebSocket transport :longpoll, Phoenix.Transports.LongPoll def connect(%{"nickname" => nickname}, socket) do {:ok, assign(socket, :nickname, nickname)} end def id(_socket), d...
23.571429
52
0.724242
916ed711f4b0b232dfea8bdb465e37cbd1c61c36
1,345
exs
Elixir
mix.exs
mjaric/extreme
5e83c77d73f5f3cb669bd8f6c297d1daefa4b768
[ "MIT" ]
121
2015-11-11T21:04:51.000Z
2021-11-16T16:20:35.000Z
mix.exs
mjaric/extreme
5e83c77d73f5f3cb669bd8f6c297d1daefa4b768
[ "MIT" ]
65
2016-02-08T18:05:24.000Z
2021-11-16T09:53:48.000Z
mix.exs
NFIBrokerage/extreme
5e83c77d73f5f3cb669bd8f6c297d1daefa4b768
[ "MIT" ]
34
2015-11-19T20:08:16.000Z
2022-01-11T10:46:38.000Z
defmodule Extreme.Mixfile do use Mix.Project def project do [ app: :extreme, version: "0.13.4", elixir: "~> 1.0", source_url: "https://github.com/exponentially/extreme", description: """ Elixir TCP adapter for EventStore. """, package: package(), build_embe...
24.017857
70
0.515242
916ee00b696c5805ae455a9b51fd92089df6495d
278
exs
Elixir
apps/storage/priv/repo/migrations/20190210155125_alter_tweet.exs
anyex-project/anyex
d04018337bcec621f2e2e8d17773fa2724e3c6e1
[ "MIT" ]
12
2019-02-21T21:29:08.000Z
2019-05-14T11:41:10.000Z
apps/storage/priv/repo/migrations/20190210155125_alter_tweet.exs
Hentioe/anyex
d04018337bcec621f2e2e8d17773fa2724e3c6e1
[ "MIT" ]
18
2019-02-05T17:19:33.000Z
2019-03-13T13:38:08.000Z
apps/storage/priv/repo/migrations/20190210155125_alter_tweet.exs
Hentioe/anyex
d04018337bcec621f2e2e8d17773fa2724e3c6e1
[ "MIT" ]
null
null
null
defmodule Storage.Repo.Migrations.AlterTweet do use Storage.Migration def change do rename(table(:tweet), :color, to: :theme) rename(table(:tweet), :conetnt, to: :content) alter table(:tweet) do modify(:theme, :string, comment: "主题风格") end end end
21.384615
49
0.669065
916eed9dbb6f9e08eff59d9601698dbcbb165e11
442
ex
Elixir
lib/no_slides.ex
noslidesconf/2016_create-your-distributed-scalable-and-fault-tolerant-application-with-riak_core
3349e5ce985228b952be02d8a5d0c82997aff58c
[ "Apache-2.0" ]
16
2016-12-21T01:40:35.000Z
2021-06-25T22:39:27.000Z
lib/no_slides.ex
noslidesconf/2016_create-your-distributed-scalable-and-fault-tolerant-application-with-riak_core
3349e5ce985228b952be02d8a5d0c82997aff58c
[ "Apache-2.0" ]
7
2016-12-13T07:49:26.000Z
2018-07-13T16:35:10.000Z
lib/no_slides.ex
noslidesconf/2016_create-your-distributed-scalable-and-fault-tolerant-application-with-riak_core
3349e5ce985228b952be02d8a5d0c82997aff58c
[ "Apache-2.0" ]
9
2016-12-21T22:56:59.000Z
2019-01-30T21:18:01.000Z
defmodule NoSlides do use Application require Logger def start(_type, _args) do case NoSlides.Supervisor.start_link do {:ok, pid} -> :ok = :riak_core.register(vnode_module: NoSlides.VNode) :ok = :riak_core_node_watcher.service_up(NoSlides.Service, self()) {:ok, pid} {:err...
23.263158
86
0.653846
916efe7a3da791966cd74a891095e0afec104a89
1,321
ex
Elixir
src/app/validation/lib/coda/validations/block_production_rate.ex
phreelyfe/mina
34328cd4e9b6ac699c3330003e40976a1059ed90
[ "Apache-2.0" ]
929
2020-10-02T07:23:16.000Z
2022-03-31T15:02:09.000Z
src/app/validation/lib/coda/validations/block_production_rate.ex
phreelyfe/mina
34328cd4e9b6ac699c3330003e40976a1059ed90
[ "Apache-2.0" ]
3,154
2020-09-29T15:47:44.000Z
2022-03-31T16:22:28.000Z
src/app/validation/lib/coda/validations/block_production_rate.ex
phreelyfe/mina
34328cd4e9b6ac699c3330003e40976a1059ed90
[ "Apache-2.0" ]
216
2020-09-29T19:47:41.000Z
2022-03-27T08:44:29.000Z
defmodule Coda.Validations.BlockProductionRate do @moduledoc """ Validates that a block producer's block production rate matches is within an acceptable_margin of the expected rate. """ use Architecture.Validation import Coda.Validations.Configuration require Logger @impl true def statistic, do: C...
27.520833
99
0.688115
916f05f2de55b95887f99883bd43dab2a5a2474f
1,648
ex
Elixir
example/lib/nested_web/live/live_helpers.ex
OnigiriJack/ecto_nested_changeset
256f330ee89c76ffbd738ffa4dc021cc1ae58ed2
[ "MIT" ]
null
null
null
example/lib/nested_web/live/live_helpers.ex
OnigiriJack/ecto_nested_changeset
256f330ee89c76ffbd738ffa4dc021cc1ae58ed2
[ "MIT" ]
10
2022-02-08T18:33:17.000Z
2022-03-24T18:34:04.000Z
example/lib/nested_web/live/live_helpers.ex
OnigiriJack/ecto_nested_changeset
256f330ee89c76ffbd738ffa4dc021cc1ae58ed2
[ "MIT" ]
null
null
null
defmodule NestedWeb.LiveHelpers do import Phoenix.LiveView import Phoenix.LiveView.Helpers alias Phoenix.LiveView.JS @doc """ Renders a live component inside a modal. The rendered modal receives a `:return_to` option to properly update the URL when the modal is closed. ## Examples <.modal ret...
27.016393
86
0.561286
916f2c182192a78ebc667ece60a50ea07c96877e
4,095
ex
Elixir
clients/drive/lib/google_api/drive/v3/model/revision.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/drive/lib/google_api/drive/v3/model/revision.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/drive/lib/google_api/drive/v3/model/revision.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
48.75
296
0.684249
916f3d2acbdddbf9a07b424c2d83eab923e52c2d
461
ex
Elixir
lib/publishers/database_persisted.ex
krisztian-adam-liqid/ev
a4733d531967f0f4d4066f4e33b58a7414702a15
[ "MIT" ]
2
2021-12-29T15:37:34.000Z
2022-01-12T23:52:47.000Z
lib/publishers/database_persisted.ex
krisztian-adam-liqid/ev
a4733d531967f0f4d4066f4e33b58a7414702a15
[ "MIT" ]
null
null
null
lib/publishers/database_persisted.ex
krisztian-adam-liqid/ev
a4733d531967f0f4d4066f4e33b58a7414702a15
[ "MIT" ]
1
2022-01-31T11:07:57.000Z
2022-01-31T11:07:57.000Z
defmodule EV.Publishers.DatabasePersisted do @moduledoc """ Persists published events to a database. ## Options * `:repo` - full path `[:persistence_opts, :repo]`; required; module which defines the `Ecto.Repo` behavior; used for persistence """ @behaviour EV.Publisher @impl EV.Publisher def...
23.05
112
0.696312
916f65e26b9afb41d2e70e26b68f75670038931e
296
ex
Elixir
lib/budget_app/operations/income/update.ex
djordje/budget_app.backend
3febe64892e700f3174b8eddbc4b96260c444308
[ "MIT" ]
null
null
null
lib/budget_app/operations/income/update.ex
djordje/budget_app.backend
3febe64892e700f3174b8eddbc4b96260c444308
[ "MIT" ]
null
null
null
lib/budget_app/operations/income/update.ex
djordje/budget_app.backend
3febe64892e700f3174b8eddbc4b96260c444308
[ "MIT" ]
null
null
null
defmodule BudgetApp.Operations.Income.Update do use BudgetApp.Operations.UpdateRecordById, model: BudgetApp.Income, updatable_fields: [:on_date, :for_date, :currency_id, :amount, :desc], resource_id_required: "Income ID is required!", resource_not_found: "Income not found!" end
42.285714
74
0.760135
916fde6fd79d3c715696b57fc1901f4f657fea22
1,668
ex
Elixir
clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_article_suggestion_model_metadata.ex
MMore/elixir-google-api
0574ec1439d9bbfe22d63965be1681b0f45a94c9
[ "Apache-2.0" ]
null
null
null
clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_article_suggestion_model_metadata.ex
MMore/elixir-google-api
0574ec1439d9bbfe22d63965be1681b0f45a94c9
[ "Apache-2.0" ]
null
null
null
clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_article_suggestion_model_metadata.ex
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...
32.076923
151
0.757194
91701e30b893e58ee69c8f8459351c1d41ac7c28
1,463
ex
Elixir
api/lib/api_web/endpoint.ex
pinda-fun/pinda-fun
83a8763c37d471342d6b12647cc588997ce21cfc
[ "MIT" ]
15
2019-10-21T08:47:40.000Z
2021-01-20T16:35:33.000Z
api/lib/api_web/endpoint.ex
pinda-fun/pinda-fun
83a8763c37d471342d6b12647cc588997ce21cfc
[ "MIT" ]
850
2019-10-13T11:11:47.000Z
2022-03-30T12:56:23.000Z
api/lib/api_web/endpoint.ex
pinda-fun/pinda-fun
83a8763c37d471342d6b12647cc588997ce21cfc
[ "MIT" ]
null
null
null
defmodule ApiWeb.Endpoint do use Sentry.PlugCapture use Phoenix.Endpoint, otp_app: :api socket "/socket", ApiWeb.UserSocket, websocket: true, longpoll: false # Serve at "/" the static files from "priv/static" directory. # # You should set gzip to true if you are running phx.digest # when deployi...
25.224138
63
0.673958
917022d0f05fa76f5193a8620b7346f2bf3f8973
317
ex
Elixir
test/support/user_formatter.ex
Raulkumar/bamboo
0fcff1bf61e595eb821bc691ed9370b6a092afbf
[ "MIT" ]
1,845
2016-03-29T23:36:36.000Z
2022-03-31T19:23:38.000Z
test/support/user_formatter.ex
Raulkumar/bamboo
0fcff1bf61e595eb821bc691ed9370b6a092afbf
[ "MIT" ]
407
2016-03-29T14:55:19.000Z
2022-02-02T13:53:50.000Z
test/support/user_formatter.ex
Raulkumar/bamboo
0fcff1bf61e595eb821bc691ed9370b6a092afbf
[ "MIT" ]
361
2016-03-31T13:33:22.000Z
2022-02-25T12:38:43.000Z
defmodule Bamboo.Test.User do defstruct first_name: "", email: "" end defimpl Bamboo.Formatter, for: Bamboo.Test.User do def format_email_address(user, %{type: :from}) do {"#{user.first_name} (MyApp)", user.email} end def format_email_address(user, _opts) do {user.first_name, user.email} end end
22.642857
51
0.706625
91704ee0c1ce424b3a3fa72edd5a6a0b0995e7ed
280
exs
Elixir
grains/grains.exs
wobh/xelixir
63e5beec40d5c441cf6cf87f30c29848f481bb1b
[ "MIT" ]
1
2021-08-16T20:24:14.000Z
2021-08-16T20:24:14.000Z
exercises/grains/grains.exs
Triangle-Elixir/xelixir
08d23bf47f57799f286567cb26f635291de2fde5
[ "MIT" ]
null
null
null
exercises/grains/grains.exs
Triangle-Elixir/xelixir
08d23bf47f57799f286567cb26f635291de2fde5
[ "MIT" ]
null
null
null
defmodule Grains do @doc """ Calculate two to the power of the input minus one. """ @spec square(pos_integer) :: pos_integer def square(number) do end @doc """ Adds square of each number from 1 to 64. """ @spec total :: pos_integer def total do end end
15.555556
52
0.65
91706004a88023b67ebcc29055aaa51595147df4
9,734
ex
Elixir
lib/aws/application_insights.ex
ahsandar/aws-elixir
25de8b6c3a1401bde737cfc26b0679b14b058f23
[ "Apache-2.0" ]
null
null
null
lib/aws/application_insights.ex
ahsandar/aws-elixir
25de8b6c3a1401bde737cfc26b0679b14b058f23
[ "Apache-2.0" ]
null
null
null
lib/aws/application_insights.ex
ahsandar/aws-elixir
25de8b6c3a1401bde737cfc26b0679b14b058f23
[ "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.ApplicationInsights do @moduledoc """ Amazon CloudWatch Application Insights for .NET and SQL Server Amazon CloudWatch Application Insights for .NET and SQL Server is a service that helps...
33.335616
86
0.70074
917063e041858eb44a0cdb6f3ddf1f78f4cdaa17
1,072
ex
Elixir
test/support/case.ex
kianmeng/bupe
8662306a5e8b6ad80b309d7d0b73629d273252bd
[ "Apache-2.0" ]
79
2016-08-02T13:17:09.000Z
2021-12-24T21:47:28.000Z
test/support/case.ex
kianmeng/bupe
8662306a5e8b6ad80b309d7d0b73629d273252bd
[ "Apache-2.0" ]
48
2019-07-22T15:00:30.000Z
2022-02-28T11:17:36.000Z
test/support/case.ex
kianmeng/bupe
8662306a5e8b6ad80b309d7d0b73629d273252bd
[ "Apache-2.0" ]
4
2017-04-08T17:29:35.000Z
2021-11-29T01:33:23.000Z
defmodule BUPETest.Case do # credo:disable-for-this-file Credo.Check.Readability.ModuleDoc use ExUnit.CaseTemplate using do quote do import unquote(__MODULE__) end end setup do File.rm_rf(tmp_dir()) File.mkdir_p!(tmp_dir()) end def tmp_dir do Path.expand("../tmp", __DIR__) e...
18.169492
65
0.58209
917077a6953564799d810d5f350ba02b04bb5d84
68
exs
Elixir
test/test_helper.exs
MontanaProgrammers/bsdc
777f053e61b985a01d72987f06f5c4f865aaa169
[ "MIT" ]
null
null
null
test/test_helper.exs
MontanaProgrammers/bsdc
777f053e61b985a01d72987f06f5c4f865aaa169
[ "MIT" ]
null
null
null
test/test_helper.exs
MontanaProgrammers/bsdc
777f053e61b985a01d72987f06f5c4f865aaa169
[ "MIT" ]
null
null
null
ExUnit.start() Ecto.Adapters.SQL.Sandbox.mode(Bsdc.Repo, :manual)
13.6
50
0.75
917085412ca00cbf2a030d212ee80def72d67b26
67
ex
Elixir
web/views/layout_view.ex
Dania02525/widget_saas
17b853f07be08a851c3e355863c18e15755cb7cb
[ "MIT" ]
12
2016-01-27T01:30:42.000Z
2019-12-07T20:31:01.000Z
web/views/layout_view.ex
Dania02525/widget_saas
17b853f07be08a851c3e355863c18e15755cb7cb
[ "MIT" ]
3
2016-11-22T12:22:59.000Z
2017-08-01T17:26:40.000Z
web/views/layout_view.ex
Dania02525/widget_saas
17b853f07be08a851c3e355863c18e15755cb7cb
[ "MIT" ]
5
2016-07-11T18:39:02.000Z
2019-10-23T03:22:49.000Z
defmodule WidgetSaas.LayoutView do use WidgetSaas.Web, :view end
16.75
34
0.80597
9170b02e40cf2dfe5fbbabfe88cd63adfe5fa3a2
410
exs
Elixir
channels/test/channels_test.exs
DeComX/hypertrons
535e86f02a1ef474d022e0f22b18a4fffd3ff9be
[ "Apache-2.0" ]
null
null
null
channels/test/channels_test.exs
DeComX/hypertrons
535e86f02a1ef474d022e0f22b18a4fffd3ff9be
[ "Apache-2.0" ]
null
null
null
channels/test/channels_test.exs
DeComX/hypertrons
535e86f02a1ef474d022e0f22b18a4fffd3ff9be
[ "Apache-2.0" ]
null
null
null
defmodule ChannelsTest do use ExUnit.Case alias Hypertrons.Channels, as: Channels doctest Channels test "ping" do scheme = Application.get_env(:plug_cowboy, :scheme) options = Application.fetch_env!(:plug_cowboy, :options) url = "#{scheme}://localhost:#{options[:port]}/ping" assert %HTTPoison....
24.117647
60
0.680488
9170bb1dc505668c8819fa0b03acdde80dff68c2
668
ex
Elixir
lib/we_reports/user_manager/pipeline.ex
himrock922/we_reports
04cffcd0e56f441e5087b65cf80a31602afae419
[ "MIT" ]
null
null
null
lib/we_reports/user_manager/pipeline.ex
himrock922/we_reports
04cffcd0e56f441e5087b65cf80a31602afae419
[ "MIT" ]
5
2020-09-09T01:41:39.000Z
2021-05-11T00:18:38.000Z
lib/we_reports/user_manager/pipeline.ex
himrock922/we_reports
04cffcd0e56f441e5087b65cf80a31602afae419
[ "MIT" ]
null
null
null
defmodule WeReports.UserManager.Pipeline do @moduledoc false use Guardian.Plug.Pipeline, otp_app: :we_reports, error_handler: WeReports.UserManager.ErrorHandler, module: WeReports.UserManager.Guardian plug Guardian.Plug.VerifyCookie # If there is a session token, restrict it to an access toke...
41.75
87
0.754491
9170f4c1a77142e7ea3005aa14b30765a72b7e92
1,433
ex
Elixir
lib/app/commands.ex
v0idpwn/lambdinha-bot
a8a09d10583c4a59d36118bfbb6505628eca6935
[ "MIT" ]
null
null
null
lib/app/commands.ex
v0idpwn/lambdinha-bot
a8a09d10583c4a59d36118bfbb6505628eca6935
[ "MIT" ]
null
null
null
lib/app/commands.ex
v0idpwn/lambdinha-bot
a8a09d10583c4a59d36118bfbb6505628eca6935
[ "MIT" ]
null
null
null
defmodule App.Commands do use App.Router use App.Commander use App.Tools alias App.Commands.Outside command "welcome" do Logger.log :info, "Command /welcome" send_message "Seja bem vindo ao Lambda Study Group! Leia as regras do grupo no pinado e visite nosso GitHub: https://github.com/lambda-study-g...
26.054545
151
0.687369
91715a82bb8c5c27b1e625181593bdf03633e387
521
exs
Elixir
apps/fz_http/priv/repo/migrations/20220111004847_add_mtu_to_devices.exs
kaku-io/firezone
685da0064727df27e444fe4da2be20efe96af9cd
[ "Apache-2.0" ]
1
2022-02-02T07:56:41.000Z
2022-02-02T07:56:41.000Z
apps/fz_http/priv/repo/migrations/20220111004847_add_mtu_to_devices.exs
kaku-io/firezone
685da0064727df27e444fe4da2be20efe96af9cd
[ "Apache-2.0" ]
1
2022-03-30T03:57:41.000Z
2022-03-30T03:57:41.000Z
apps/fz_http/priv/repo/migrations/20220111004847_add_mtu_to_devices.exs
kaku-io/firezone
685da0064727df27e444fe4da2be20efe96af9cd
[ "Apache-2.0" ]
null
null
null
defmodule FzHttp.Repo.Migrations.AddMtuToDevices do use Ecto.Migration def change do alter table(:devices) do add :use_default_mtu, :boolean, default: true, null: false add :mtu, :integer, default: nil end now = DateTime.utc_now() execute( """ INSERT INTO settings (key, va...
22.652174
73
0.604607
9171b32946828f63fe3b248fee5f28bc60664748
1,754
ex
Elixir
clients/fitness/lib/google_api/fitness/v1/model/bucket_by_activity.ex
kolorahl/elixir-google-api
46bec1e092eb84c6a79d06c72016cb1a13777fa6
[ "Apache-2.0" ]
null
null
null
clients/fitness/lib/google_api/fitness/v1/model/bucket_by_activity.ex
kolorahl/elixir-google-api
46bec1e092eb84c6a79d06c72016cb1a13777fa6
[ "Apache-2.0" ]
null
null
null
clients/fitness/lib/google_api/fitness/v1/model/bucket_by_activity.ex
kolorahl/elixir-google-api
46bec1e092eb84c6a79d06c72016cb1a13777fa6
[ "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.09434
145
0.734892
9171c745411080796697266ba8a202ee97194877
732
ex
Elixir
lib/gmail/body.ex
philwade/elixir-gmail
4c44fbc63b194dc4f6f02caec7c6ee6164a3a9a3
[ "MIT" ]
52
2015-02-19T23:23:34.000Z
2020-07-12T12:53:09.000Z
lib/gmail/body.ex
philwade/elixir-gmail
4c44fbc63b194dc4f6f02caec7c6ee6164a3a9a3
[ "MIT" ]
17
2016-06-01T18:49:09.000Z
2020-11-11T21:26:21.000Z
lib/gmail/body.ex
philwade/elixir-gmail
4c44fbc63b194dc4f6f02caec7c6ee6164a3a9a3
[ "MIT" ]
26
2016-03-08T09:13:58.000Z
2021-09-27T08:39:22.000Z
defmodule Gmail.Body do @moduledoc """ Helper functions for dealing with email bodies. """ alias __MODULE__ alias Gmail.Utils defstruct size: 0, data: "", attachment_id: "" @type t :: %__MODULE__{} @doc """ Converts the email body, attempting to decode from Base64 if there is body data. """ @s...
21.529412
82
0.628415
9171dd7db401b41f61a8c1ae79e7015e2ede3390
1,703
ex
Elixir
clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/service_spec_run_latest.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/service_spec_run_latest.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/service_spec_run_latest.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
35.479167
143
0.764533
9171f764b021684b10602229aa4efac8fe8cbeab
10,077
ex
Elixir
lib/codes/codes_z68.ex
badubizzle/icd_code
4c625733f92b7b1d616e272abc3009bb8b916c0c
[ "Apache-2.0" ]
null
null
null
lib/codes/codes_z68.ex
badubizzle/icd_code
4c625733f92b7b1d616e272abc3009bb8b916c0c
[ "Apache-2.0" ]
null
null
null
lib/codes/codes_z68.ex
badubizzle/icd_code
4c625733f92b7b1d616e272abc3009bb8b916c0c
[ "Apache-2.0" ]
null
null
null
defmodule IcdCode.ICDCode.Codes_Z68 do alias IcdCode.ICDCode def _Z681 do %ICDCode{full_code: "Z681", category_code: "Z68", short_code: "1", full_name: "Body mass index (BMI) 19 or less, adult", short_name: "Body mass index (BMI) 19 or less, adult", category_name...
36.379061
112
0.574477
91720a36ff8c19a5018be1cee801bc96a3e98cc7
215
exs
Elixir
user_api/priv/repo/migrations/20180630062953_create_users.exs
uttamk/sip-of-elixr-talk
08b4f2fddea5c3c60ecb7f646071c2ce0a46dc59
[ "MIT" ]
null
null
null
user_api/priv/repo/migrations/20180630062953_create_users.exs
uttamk/sip-of-elixr-talk
08b4f2fddea5c3c60ecb7f646071c2ce0a46dc59
[ "MIT" ]
null
null
null
user_api/priv/repo/migrations/20180630062953_create_users.exs
uttamk/sip-of-elixr-talk
08b4f2fddea5c3c60ecb7f646071c2ce0a46dc59
[ "MIT" ]
null
null
null
defmodule UserApi.Repo.Migrations.CreateUsers do use Ecto.Migration def change do create table(:users) do add :first_name, :string add :last_name, :string timestamps() end end end
15.357143
48
0.669767
91720ea7be9aec507d1a07ed6988c16e47fe0fdf
972
ex
Elixir
lib/nerves_hal/device/adapters/tty.ex
letotecn/nerves_hal
d698219a35157f3c29c7d22f7743e8caa0f344ea
[ "Apache-2.0" ]
2
2020-08-05T22:19:48.000Z
2020-09-04T10:54:47.000Z
lib/nerves_hal/device/adapters/tty.ex
letotecn/nerves_hal
d698219a35157f3c29c7d22f7743e8caa0f344ea
[ "Apache-2.0" ]
6
2017-04-11T15:07:41.000Z
2018-03-11T23:47:47.000Z
lib/nerves_hal/device/adapters/tty.ex
letotecn/nerves_hal
d698219a35157f3c29c7d22f7743e8caa0f344ea
[ "Apache-2.0" ]
2
2017-06-13T23:18:07.000Z
2018-05-15T14:16:27.000Z
if Code.ensure_loaded?(Circuits.UART) do defmodule Nerves.HAL.Device.Adapters.Tty do use Nerves.HAL.Device.Adapter, subsystem: "tty" alias Circuits.UART require Logger def attributes(device) do <<"/dev/", device_file::binary>> = Nerves.HAL.Device.device_file(device) info = UART....
24.923077
78
0.57716
917242870bde18bd85a05654ec84a286609f6073
396
exs
Elixir
test/snmp/transport_test.exs
mattjg908/elixir-snmp
a888390e7d1a9d9595c9fc7a51ec19bdcabc63e9
[ "MIT" ]
6
2021-02-26T13:42:47.000Z
2022-01-17T18:49:25.000Z
test/snmp/transport_test.exs
mattjg908/elixir-snmp
a888390e7d1a9d9595c9fc7a51ec19bdcabc63e9
[ "MIT" ]
2
2021-02-26T14:09:00.000Z
2021-04-22T10:49:25.000Z
test/snmp/transport_test.exs
mattjg908/elixir-snmp
a888390e7d1a9d9595c9fc7a51ec19bdcabc63e9
[ "MIT" ]
1
2021-10-19T21:24:03.000Z
2021-10-19T21:24:03.000Z
defmodule Snmp.TransportTest do use Snmp.Test.DataCase doctest Snmp.Transport, import: true alias Snmp.Transport property ".config/1" do check all(args <- gen_transport_args()) do try do ret = Transport.config(args) assert is_tuple(ret) assert tuple_size(ret) in [2, 3, 4] ...
18
46
0.611111
9172599a05e59760988eb2c6ebac0d7575204afb
2,885
ex
Elixir
clients/deployment_manager/lib/google_api/deployment_manager/v2/model/log_config_counter_options.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/deployment_manager/lib/google_api/deployment_manager/v2/model/log_config_counter_options.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/deployment_manager/lib/google_api/deployment_manager/v2/model/log_config_counter_options.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-10-04T10:12:44.000Z
2020-10-04T10:12:44.000Z
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
43.712121
387
0.745927
91725d410409e347320f0c9ef2d6c82deca88b97
5,812
exs
Elixir
test/boundary/graph_test.exs
randycoulman/boundary
2fdea46e702400c152670262d5ca1f31edbd4fa1
[ "MIT" ]
490
2019-09-07T10:33:15.000Z
2022-03-30T09:50:03.000Z
test/boundary/graph_test.exs
randycoulman/boundary
2fdea46e702400c152670262d5ca1f31edbd4fa1
[ "MIT" ]
35
2019-09-07T10:49:25.000Z
2022-03-18T10:02:34.000Z
test/boundary/graph_test.exs
randycoulman/boundary
2fdea46e702400c152670262d5ca1f31edbd4fa1
[ "MIT" ]
16
2019-09-08T15:09:16.000Z
2022-02-12T21:40:14.000Z
defmodule Boundary.GraphTest do use ExUnit.Case, async: true alias Boundary.Graph describe "dot/1" do test "generate dot output" do dot = Graph.new("test") |> Graph.add_node("A") |> Graph.add_node("B") |> Graph.add_node("C") |> Graph.add_dependency("A", "B") ...
24.944206
73
0.383173
917266414f282d596a722df54ec0da05253b052f
3,523
ex
Elixir
lib/exotus/upload.ex
elixir-depot/exotus
6441ccb4312a182cffa9fd6042c1497b523f1c62
[ "Apache-2.0" ]
null
null
null
lib/exotus/upload.ex
elixir-depot/exotus
6441ccb4312a182cffa9fd6042c1497b523f1c62
[ "Apache-2.0" ]
null
null
null
lib/exotus/upload.ex
elixir-depot/exotus
6441ccb4312a182cffa9fd6042c1497b523f1c62
[ "Apache-2.0" ]
null
null
null
defmodule Exotus.Upload do @moduledoc """ Handling the lifecycle of a chunked upload. """ use GenStateMachine def start_link(inital_data) do GenStateMachine.start_link(__MODULE__, inital_data) end def append(server, offset, iodata) do GenStateMachine.call(server, {:append, offset, iodata}) end...
27.310078
96
0.659097
91728fdf8d43add2c5cc0263a76faef4df376cbd
5,426
ex
Elixir
lib/ssd1322/device.ex
mtrudel/ssd1322
bde41e7346126bca7edd4eafe81a008d31fdabbf
[ "MIT" ]
null
null
null
lib/ssd1322/device.ex
mtrudel/ssd1322
bde41e7346126bca7edd4eafe81a008d31fdabbf
[ "MIT" ]
null
null
null
lib/ssd1322/device.ex
mtrudel/ssd1322
bde41e7346126bca7edd4eafe81a008d31fdabbf
[ "MIT" ]
1
2020-12-02T18:33:59.000Z
2020-12-02T18:33:59.000Z
defmodule SSD1322.Device do @moduledoc """ This module provides a high-level interface to control and display content on a SSD1322 based OLED display. Note that this module is stateless - there is no protection here at all for concurrent access For details regarding the magic values used herein, consult...
39.897059
140
0.681533
91729b320f6b3e99a5ab87443dd2922735039d4c
1,795
ex
Elixir
apps/asf_fh_web/lib/asf_fh_web/telemetry.ex
LazarRistic/asf
2c557f06839a129b35174142c91f60696be2fa89
[ "MIT" ]
null
null
null
apps/asf_fh_web/lib/asf_fh_web/telemetry.ex
LazarRistic/asf
2c557f06839a129b35174142c91f60696be2fa89
[ "MIT" ]
null
null
null
apps/asf_fh_web/lib/asf_fh_web/telemetry.ex
LazarRistic/asf
2c557f06839a129b35174142c91f60696be2fa89
[ "MIT" ]
null
null
null
defmodule AsfFHWeb.Telemetry do use Supervisor import Telemetry.Metrics def start_link(arg) do Supervisor.start_link(__MODULE__, arg, name: __MODULE__) end @impl true def init(_arg) do children = [ # Telemetry poller will execute the given period measurements # every 10_000ms. Learn mo...
32.053571
86
0.667409
9172a74e8280f6b169a65a9c1728f6b3c12adfba
2,449
exs
Elixir
test/web/controllers/export_controller_test.exs
jennstein2017/Challenge_gov
e0820df8b124a32ff8b78cb827ae43551492988b
[ "CC0-1.0" ]
9
2020-02-26T20:24:38.000Z
2022-03-22T21:14:52.000Z
test/web/controllers/export_controller_test.exs
jennstein2017/Challenge_gov
e0820df8b124a32ff8b78cb827ae43551492988b
[ "CC0-1.0" ]
15
2020-04-22T19:33:24.000Z
2022-03-26T15:11:17.000Z
test/web/controllers/export_controller_test.exs
jennstein2017/Challenge_gov
e0820df8b124a32ff8b78cb827ae43551492988b
[ "CC0-1.0" ]
4
2020-04-27T22:58:57.000Z
2022-01-14T13:42:09.000Z
defmodule Web.ExportControllerTest do use Web.ConnCase alias ChallengeGov.TestHelpers.AccountHelpers alias ChallengeGov.TestHelpers.ChallengeHelpers describe "export a challenge" do test "success: as csv", %{conn: conn} do conn = prep_conn(conn) %{current_user: user} = conn.assigns chal...
34.492958
95
0.681094
9172ae93e4e7518b06006a3354b800b509fd1b72
1,074
ex
Elixir
lib/membrane/core/child/pad_spec_handler.ex
membraneframework/membrane-core
096c2546869824c49ad1d7412ffe02d050164611
[ "Apache-2.0" ]
515
2018-06-18T11:09:44.000Z
2020-07-31T07:54:35.000Z
lib/membrane/core/child/pad_spec_handler.ex
membraneframework/membrane-core
096c2546869824c49ad1d7412ffe02d050164611
[ "Apache-2.0" ]
120
2018-06-07T08:34:06.000Z
2020-07-30T07:09:50.000Z
lib/membrane/core/child/pad_spec_handler.ex
membraneframework/membrane-core
096c2546869824c49ad1d7412ffe02d050164611
[ "Apache-2.0" ]
13
2018-07-27T11:58:15.000Z
2020-05-06T15:19:55.000Z
defmodule Membrane.Core.Child.PadSpecHandler do @moduledoc false # Module parsing pads specifications in elements and bins. use Bunch alias Membrane.Core.{Bin, Child, Element} alias Membrane.Core.Child.PadModel alias Membrane.Pad require Membrane.Pad @doc """ Initializes pads info basing on eleme...
24.409091
74
0.667598
9172dbbc1ece043d24c6ba4a16fecd98de4dcafe
8,468
ex
Elixir
clients/container_analysis/lib/google_api/container_analysis/v1alpha1/model/occurrence.ex
richiboi1977/elixir-google-api
c495bb3548090eb7a63d12f6fb145ec48aecdc0b
[ "Apache-2.0" ]
1
2021-10-01T09:20:41.000Z
2021-10-01T09:20:41.000Z
clients/container_analysis/lib/google_api/container_analysis/v1alpha1/model/occurrence.ex
richiboi1977/elixir-google-api
c495bb3548090eb7a63d12f6fb145ec48aecdc0b
[ "Apache-2.0" ]
null
null
null
clients/container_analysis/lib/google_api/container_analysis/v1alpha1/model/occurrence.ex
richiboi1977/elixir-google-api
c495bb3548090eb7a63d12f6fb145ec48aecdc0b
[ "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.566667
247
0.733113
9172e2ffa49f68e929a5b474e9461243d4f2122e
28,948
ex
Elixir
lib/rdf/dataset.ex
rdf-elixir/rdf-ex
7d4280ec9a912ef6ee9fc96ecdfdf26647016d6a
[ "MIT" ]
19
2020-06-05T16:55:54.000Z
2022-03-22T10:30:11.000Z
lib/rdf/dataset.ex
rdf-elixir/rdf-ex
7d4280ec9a912ef6ee9fc96ecdfdf26647016d6a
[ "MIT" ]
4
2020-07-03T21:02:55.000Z
2021-11-18T07:22:06.000Z
lib/rdf/dataset.ex
rdf-elixir/rdf-ex
7d4280ec9a912ef6ee9fc96ecdfdf26647016d6a
[ "MIT" ]
3
2020-07-03T13:25:36.000Z
2021-04-04T12:33:51.000Z
defmodule RDF.Dataset do @moduledoc """ A set of `RDF.Graph`s. It may have multiple named graphs and at most one unnamed ("default") graph. `RDF.Dataset` implements: - Elixir's `Access` behaviour - Elixir's `Enumerable` protocol - Elixir's `Inspect` protocol - the `RDF.Data` protocol """ defstr...
31.431053
147
0.612996
917314a133861e06ac4eb0e65517d5cffcef4200
856
ex
Elixir
apps/problem/lib/problem/cmpl_file.ex
piasekhgw/distributed_mkp
0cd2d4a3b007d9fdd7544da34c2785ab6f48ae7e
[ "MIT" ]
9
2017-09-27T21:25:34.000Z
2020-10-07T16:14:26.000Z
apps/problem/lib/problem/cmpl_file.ex
piasekhgw/distributed_mkp
0cd2d4a3b007d9fdd7544da34c2785ab6f48ae7e
[ "MIT" ]
1
2017-09-27T21:26:00.000Z
2017-10-01T11:49:11.000Z
apps/problem/lib/problem/cmpl_file.ex
piasekhgw/distributed_mkp
0cd2d4a3b007d9fdd7544da34c2785ab6f48ae7e
[ "MIT" ]
null
null
null
defmodule Problem.CmplFile do alias Problem.SolutionFile @type t :: String.t @type executable_timeout :: non_neg_integer @spec process!(t, executable_timeout) :: SolutionFile.t | no_return def process!(problem_path, executable_timeout) do solution_path = Temp.path!(%{suffix: ".csol"}) System |>...
25.939394
81
0.679907
91735d0a3170af2450d81e797de3b3bfbb4ea6c6
21
ex
Elixir
testData/org/elixir_lang/formatting/space_around_in_operator.ex
keyno63/intellij-elixir
4033e319992c53ddd42a683ee7123a97b5e34f02
[ "Apache-2.0" ]
1,668
2015-01-03T05:54:27.000Z
2022-03-25T08:01:20.000Z
testData/org/elixir_lang/formatting/space_around_in_operator.ex
keyno63/intellij-elixir
4033e319992c53ddd42a683ee7123a97b5e34f02
[ "Apache-2.0" ]
2,018
2015-01-01T22:43:39.000Z
2022-03-31T20:13:08.000Z
testData/org/elixir_lang/formatting/space_around_in_operator.ex
keyno63/intellij-elixir
4033e319992c53ddd42a683ee7123a97b5e34f02
[ "Apache-2.0" ]
145
2015-01-15T11:37:16.000Z
2021-12-22T05:51:02.000Z
not :a in ~w(a b c)a
10.5
20
0.52381
91738c65b2e43de1617cf217f2205607ce6a1dbe
425
exs
Elixir
apps/interface_web/test/interface_web/views/error_view_test.exs
artvinn/phoenix-tictactoe
14f9a7dcc18449d8cba755c5625b665b7cfccfff
[ "MIT" ]
1
2019-03-11T09:12:16.000Z
2019-03-11T09:12:16.000Z
apps/interface_web/test/interface_web/views/error_view_test.exs
artvinn/phoenix-tictactoe
14f9a7dcc18449d8cba755c5625b665b7cfccfff
[ "MIT" ]
null
null
null
apps/interface_web/test/interface_web/views/error_view_test.exs
artvinn/phoenix-tictactoe
14f9a7dcc18449d8cba755c5625b665b7cfccfff
[ "MIT" ]
1
2020-09-26T00:37:30.000Z
2020-09-26T00:37:30.000Z
defmodule InterfaceWeb.ErrorViewTest do use InterfaceWeb.ConnCase, async: true # Bring render/3 and render_to_string/3 for testing custom views import Phoenix.View test "renders 404.html" do assert render_to_string(InterfaceWeb.ErrorView, "404.html", []) == "Not Found" end test "renders 500.html" do ...
28.333333
94
0.738824
9173ad43e4193cd6ab8dfc0773c6a6082b7c7e8b
84
exs
Elixir
test/views/layout_view_test.exs
bmordas11/fun_in_the_sun
eb6f4f604a8ebf0f12b7a51c3b4e37ac777fe84b
[ "MIT" ]
null
null
null
test/views/layout_view_test.exs
bmordas11/fun_in_the_sun
eb6f4f604a8ebf0f12b7a51c3b4e37ac777fe84b
[ "MIT" ]
null
null
null
test/views/layout_view_test.exs
bmordas11/fun_in_the_sun
eb6f4f604a8ebf0f12b7a51c3b4e37ac777fe84b
[ "MIT" ]
null
null
null
defmodule FunInTheSun.LayoutViewTest do use FunInTheSun.ConnCase, async: true end
21
39
0.833333
9173e013a219a0ee5e5223b1521db633afd6fe71
3,973
exs
Elixir
apps/omg_watcher/test/omg_watcher/integration/monitor_test.exs
boolafish/elixir-omg
46b568404972f6e4b4da3195d42d4fb622edb934
[ "Apache-2.0" ]
null
null
null
apps/omg_watcher/test/omg_watcher/integration/monitor_test.exs
boolafish/elixir-omg
46b568404972f6e4b4da3195d42d4fb622edb934
[ "Apache-2.0" ]
null
null
null
apps/omg_watcher/test/omg_watcher/integration/monitor_test.exs
boolafish/elixir-omg
46b568404972f6e4b4da3195d42d4fb622edb934
[ "Apache-2.0" ]
null
null
null
# Copyright 2019-2020 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 ...
32.040323
98
0.680846
9173fbb55fce3981b5945db22a61526f78a28e13
4,275
exs
Elixir
test/components/form/url_input_test.exs
harmon25/surface
e44dd7e6907217b89a5b84691615341b4eb5f277
[ "MIT" ]
1
2020-12-29T10:43:19.000Z
2020-12-29T10:43:19.000Z
test/components/form/url_input_test.exs
nilooy/surface
481a8824a0c8d00d2661645662f7ff6f3bbad25a
[ "MIT" ]
null
null
null
test/components/form/url_input_test.exs
nilooy/surface
481a8824a0c8d00d2661645662f7ff6f3bbad25a
[ "MIT" ]
null
null
null
defmodule Surface.Components.Form.UrlInputTest do use Surface.ConnCase, async: true alias Surface.Components.Form.UrlInput test "empty input" do html = render_surface do ~H""" <UrlInput form="user" field="website" /> """ end assert html =~ """ <input id="u...
26.067073
137
0.57193
917406054f10a13722ac5bf10bcaf7ec0096ac81
87
ex
Elixir
priv/templates/coherence.install/emails/coherence/coherence_mailer.ex
remigijusj/coherence
36fe35b0bfe7ac63b44b4046f3ba62f2fe69603a
[ "MIT" ]
null
null
null
priv/templates/coherence.install/emails/coherence/coherence_mailer.ex
remigijusj/coherence
36fe35b0bfe7ac63b44b4046f3ba62f2fe69603a
[ "MIT" ]
null
null
null
priv/templates/coherence.install/emails/coherence/coherence_mailer.ex
remigijusj/coherence
36fe35b0bfe7ac63b44b4046f3ba62f2fe69603a
[ "MIT" ]
null
null
null
defmodule <%= base %>.Coherence.Mailer do use Swoosh.Mailer, otp_app: :coherence end
21.75
41
0.735632
91746e3e59dc8926abd220029351efc60c5687d6
5,423
exs
Elixir
apps/ewallet_db/test/ewallet_db/invite_test.exs
amadeobrands/ewallet
505b7822721940a7b892a9b35c225e80cc8ac0b4
[ "Apache-2.0" ]
1
2018-12-07T06:21:21.000Z
2018-12-07T06:21:21.000Z
apps/ewallet_db/test/ewallet_db/invite_test.exs
amadeobrands/ewallet
505b7822721940a7b892a9b35c225e80cc8ac0b4
[ "Apache-2.0" ]
null
null
null
apps/ewallet_db/test/ewallet_db/invite_test.exs
amadeobrands/ewallet
505b7822721940a7b892a9b35c225e80cc8ac0b4
[ "Apache-2.0" ]
null
null
null
defmodule EWalletDB.InviteTest do use EWalletDB.SchemaCase alias Ecto.UUID alias EWalletConfig.Helpers.Crypto alias EWalletDB.{Invite, User} describe "Invite.get/1" do test "returns an Invite if the given id is found" do invite = insert(:invite) result = Invite.get(invite.uuid) assert ...
29.796703
104
0.615158
91748688220b0e30cf31d7f0e2c3a8c88e92ccd5
616
exs
Elixir
test/presto/component_supervisor_test.exs
ijcd/presto
6aa07267f2340d799939ce595fc199d1ad473562
[ "Apache-2.0" ]
12
2018-04-26T06:12:46.000Z
2021-01-04T16:21:04.000Z
test/presto/component_supervisor_test.exs
ijcd/presto
6aa07267f2340d799939ce595fc199d1ad473562
[ "Apache-2.0" ]
8
2020-06-10T07:45:19.000Z
2020-06-10T07:45:30.000Z
test/presto/component_supervisor_test.exs
ijcd/presto
6aa07267f2340d799939ce595fc199d1ad473562
[ "Apache-2.0" ]
1
2018-04-26T06:12:51.000Z
2018-04-26T06:12:51.000Z
defmodule Presto.ComponentSupervisorTest do use ExUnit.Case, async: false alias Presto.ComponentSupervisor setup do start_supervised({Registry, keys: :unique, name: Presto.ComponentRegistry}) :ok end defmodule CounterComponent do use Presto.Component end test "fails to start two supervisors...
25.666667
80
0.741883
917488099be50679e7b222d21161c228330461a8
577
exs
Elixir
benchmark.exs
Tmw/eetf
d4407987fd4e1a0fd3a715c066bbbe3f65412337
[ "MIT" ]
null
null
null
benchmark.exs
Tmw/eetf
d4407987fd4e1a0fd3a715c066bbbe3f65412337
[ "MIT" ]
null
null
null
benchmark.exs
Tmw/eetf
d4407987fd4e1a0fd3a715c066bbbe3f65412337
[ "MIT" ]
null
null
null
Code.require_file("test/test_helper.ex") # cases = # for {type, value} <- TestData.values(), reduce: %{} do # acc -> # encoded = :erlang.term_to_binary(value) # acc # |> Map.put("#{type} (builtin)", fn -> :erlang.binary_to_term(encoded) end) # |> Map.put("#{type} (handrolled)", fn -> ErlangTermFormat.decode(encoded) ...
28.85
88
0.642981
91749341f21a5f96bb0043743d066ed370851d7c
259
ex
Elixir
lib/cargo_elixir.ex
helium/cargo-elixir
1ad2b5aa32a091eb67a46cf555501b4e2c45f5c9
[ "Apache-2.0" ]
9
2020-11-13T18:24:25.000Z
2022-03-17T19:03:02.000Z
lib/cargo_elixir.ex
helium/cargo-elixir
1ad2b5aa32a091eb67a46cf555501b4e2c45f5c9
[ "Apache-2.0" ]
8
2020-12-07T17:41:01.000Z
2022-01-05T10:51:21.000Z
lib/cargo_elixir.ex
helium/cargo-elixir
1ad2b5aa32a091eb67a46cf555501b4e2c45f5c9
[ "Apache-2.0" ]
5
2020-12-07T07:16:21.000Z
2022-03-21T00:44:39.000Z
defmodule CargoElixir do @moduledoc """ CargoElixir 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.9
66
0.760618
917499ace0a051186fffadcc5d391036a1049a3d
998
exs
Elixir
mix.exs
nickveys/elixirconf-2016-blinky-firmata
1f722deeb38a55bd4759f648ab4af4812ad953ea
[ "Unlicense" ]
null
null
null
mix.exs
nickveys/elixirconf-2016-blinky-firmata
1f722deeb38a55bd4759f648ab4af4812ad953ea
[ "Unlicense" ]
null
null
null
mix.exs
nickveys/elixirconf-2016-blinky-firmata
1f722deeb38a55bd4759f648ab4af4812ad953ea
[ "Unlicense" ]
null
null
null
defmodule BlinkyFirmata.Mixfile do use Mix.Project @target System.get_env("NERVES_TARGET") || "linkit" def project do [app: :blinky_firmata, version: "0.0.1", target: @target, archives: [nerves_bootstrap: "~> 0.1.4"], deps_path: "deps/#{@target}", build_path: "_build/#{@target}", ...
24.341463
65
0.621242
9174af809af1021d6f4d71b876963420db57222c
991
exs
Elixir
deps/gettext/mix.exs
robot-overlord/starter_kit
254153221d0a3a06324c65ad8e89d610de2429c3
[ "MIT" ]
1
2020-01-31T10:23:37.000Z
2020-01-31T10:23:37.000Z
deps/gettext/mix.exs
robot-overlord/starter_kit
254153221d0a3a06324c65ad8e89d610de2429c3
[ "MIT" ]
null
null
null
deps/gettext/mix.exs
robot-overlord/starter_kit
254153221d0a3a06324c65ad8e89d610de2429c3
[ "MIT" ]
null
null
null
defmodule Gettext.Mixfile do use Mix.Project @version "0.13.1" @description "Internationalization and localization through gettext" @repo_url "https://github.com/elixir-lang/gettext" def project do [app: :gettext, version: @version, elixir: "~> 1.2", build_embedded: Mix.env == :prod, ...
22.522727
70
0.597376
9174ca7f46dcd1ce82c800f5026d91702fe4cb37
2,116
ex
Elixir
lib/nostrum/struct/interaction.ex
jos-b/nostrum
baf5c9de9f17c3bd99c5c06a454e03cc448aad1c
[ "MIT" ]
null
null
null
lib/nostrum/struct/interaction.ex
jos-b/nostrum
baf5c9de9f17c3bd99c5c06a454e03cc448aad1c
[ "MIT" ]
null
null
null
lib/nostrum/struct/interaction.ex
jos-b/nostrum
baf5c9de9f17c3bd99c5c06a454e03cc448aad1c
[ "MIT" ]
1
2020-09-03T13:55:55.000Z
2020-09-03T13:55:55.000Z
defmodule Nostrum.Struct.Interaction do @moduledoc "Slash command invocation struct." # https://discord.com/developers/docs/interactions/slash-commands#interaction alias Nostrum.Snowflake alias Nostrum.Struct.ApplicationCommandInteractionData alias Nostrum.Struct.Guild.Member alias Nostrum.Struct.{Channel,...
24.604651
79
0.643667
9174ce61af4886a215c074a455603bd2bba456e6
398
ex
Elixir
lib/space_raiders/backup_agent.ex
abinader89/Space-Raiders
d5e01a3200a54d22824b890238613a00f32a7d62
[ "CC-BY-3.0" ]
null
null
null
lib/space_raiders/backup_agent.ex
abinader89/Space-Raiders
d5e01a3200a54d22824b890238613a00f32a7d62
[ "CC-BY-3.0" ]
null
null
null
lib/space_raiders/backup_agent.ex
abinader89/Space-Raiders
d5e01a3200a54d22824b890238613a00f32a7d62
[ "CC-BY-3.0" ]
null
null
null
## This code was take from class notes ## defmodule SpaceRaiders.BackupAgent do use Agent def start_link(_args) do Agent.start_link(fn -> %{} end, name: __MODULE__) end def put(name, val) do Agent.update __MODULE__, fn state -> Map.put(state, name, val) end end def get(name) do A...
18.952381
53
0.643216
9174f5a12000bbc8cc098ed4bbf2f3cfd161444a
2,021
ex
Elixir
lib/smart_city/test_data_generator/payload.ex
SmartColumbusOS/smart_city_test
3e68f04fb7914c212f56dc75c1ac58e02e39f63f
[ "Apache-2.0" ]
1
2019-07-09T15:48:09.000Z
2019-07-09T15:48:09.000Z
lib/smart_city/test_data_generator/payload.ex
SmartColumbusOS/smart_city_test
3e68f04fb7914c212f56dc75c1ac58e02e39f63f
[ "Apache-2.0" ]
7
2019-06-24T20:54:21.000Z
2020-07-16T18:19:05.000Z
lib/smart_city/test_data_generator/payload.ex
smartcitiesdata/smart_city_test
3e68f04fb7914c212f56dc75c1ac58e02e39f63f
[ "Apache-2.0" ]
null
null
null
defmodule SmartCity.TestDataGenerator.Payload do @moduledoc """ Module that generates payloads based on schema type. """ require Logger alias SmartCity.TestDataGenerator.Schema @doc """ Generates payload for requested schema type. """ @spec create_payload(atom()) :: map() def create_payload(schema_...
25.582278
66
0.65908
9174fb41b15e381f33f8c7e3a500f2e06ee1293c
1,221
exs
Elixir
apps/api/mix.exs
aef-/scatonslack
7f5b01464a48482981f6b74a1013bf82d739b3e1
[ "MIT" ]
null
null
null
apps/api/mix.exs
aef-/scatonslack
7f5b01464a48482981f6b74a1013bf82d739b3e1
[ "MIT" ]
null
null
null
apps/api/mix.exs
aef-/scatonslack
7f5b01464a48482981f6b74a1013bf82d739b3e1
[ "MIT" ]
null
null
null
defmodule ScatOnSlack.API.Mixfile do use Mix.Project def project do [app: :api, version: "0.0.1", build_path: "../../_build", config_path: "../../config/config.exs", deps_path: "../../deps", lockfile: "../../mix.lock", elixir: "~> 1.2", elixirc_paths: elixirc_paths(Mix.env), ...
28.395349
90
0.596233
9175022dd541f4427e558542378a2f47608e3e83
726
exs
Elixir
benchmarks/primary.exs
Pedneri1/elixir_s3_cached
3c864897e43480df79bfaf55545f73f20b1f94c6
[ "MIT" ]
null
null
null
benchmarks/primary.exs
Pedneri1/elixir_s3_cached
3c864897e43480df79bfaf55545f73f20b1f94c6
[ "MIT" ]
null
null
null
benchmarks/primary.exs
Pedneri1/elixir_s3_cached
3c864897e43480df79bfaf55545f73f20b1f94c6
[ "MIT" ]
null
null
null
alias ElixirS3Cached {:ok, cache} = ElixirS3Cached.start_link("benchmarks", "elixir-s3-cache", %{}) #Makes sure that the bucket is previously create, so the get function wont return 404 ElixirS3Cached.set(cache, "set_key", "set_value") benchmarks = %{ "set" => fn -> ElixirS3Cached.set(cache, "set_key", "set_value")...
21.352941
85
0.581267
917503ab762e771a267aa28e5f332a25f7f636bf
6,399
ex
Elixir
lib/crawly/worker.ex
feng19/crawly
d52cb1c950f4c2083f80084c00ccb24b3702460c
[ "Apache-2.0" ]
null
null
null
lib/crawly/worker.ex
feng19/crawly
d52cb1c950f4c2083f80084c00ccb24b3702460c
[ "Apache-2.0" ]
null
null
null
lib/crawly/worker.ex
feng19/crawly
d52cb1c950f4c2083f80084c00ccb24b3702460c
[ "Apache-2.0" ]
null
null
null
defmodule Crawly.Worker do @moduledoc """ A worker process responsible for the actual work (fetching requests, processing responces) """ use GenServer require Logger # define the default worker fetch interval. @default_backoff 10_000 @start_timeout 1000 defstruct backoff: @default_backoff, spider...
30.042254
97
0.615252
917508d077975f1aad6c51ad5bbe388741c1e711
1,244
ex
Elixir
web/channels/user_socket.ex
taylonr/couchjitsu_track
0a31c450ac734f9d8b69849cb766de0e99f178c4
[ "MIT" ]
null
null
null
web/channels/user_socket.ex
taylonr/couchjitsu_track
0a31c450ac734f9d8b69849cb766de0e99f178c4
[ "MIT" ]
null
null
null
web/channels/user_socket.ex
taylonr/couchjitsu_track
0a31c450ac734f9d8b69849cb766de0e99f178c4
[ "MIT" ]
null
null
null
defmodule CouchjitsuTrack.UserSocket do use Phoenix.Socket ## Channels # channel "rooms:*", CouchjitsuTrack.RoomChannel channel "records:*", CouchjitsuTrack.RecordChannel ## Transports transport :websocket, Phoenix.Transports.WebSocket # transport :longpoll, Phoenix.Transports.LongPoll # Socket param...
31.897436
88
0.711415