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
9750045f4efb1ed55b051508a4aba5fb2231d121
879
exs
Elixir
Microsoft.Azure.Management.Preview.Containers/mix.exs
chgeuer/ex_microsoft_azure_management
99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603
[ "Apache-2.0" ]
4
2018-09-29T03:43:15.000Z
2021-04-01T18:30:46.000Z
Microsoft.Azure.Management.Preview.Containers/mix.exs
chgeuer/ex_microsoft_azure_management
99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603
[ "Apache-2.0" ]
null
null
null
Microsoft.Azure.Management.Preview.Containers/mix.exs
chgeuer/ex_microsoft_azure_management
99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603
[ "Apache-2.0" ]
null
null
null
defmodule Microsoft.Azure.Management.Preview.Containers.Mixfile do use Mix.Project def project do [app: :ex_microsoft_azure_management_preview_containers, version: "0.1.0", elixir: "~> 1.4", build_embedded: Mix.env == :prod, start_permanent: Mix.env == :prod, deps: deps()] end # C...
23.756757
79
0.630262
9750237b44c41c3580d298c6a3274fbc7f0b7660
773
ex
Elixir
lib/corex_web/session.ex
eahanson/corex
550020c5cbfc7dc828bc74e1edf0223c1cbffef1
[ "MIT" ]
null
null
null
lib/corex_web/session.ex
eahanson/corex
550020c5cbfc7dc828bc74e1edf0223c1cbffef1
[ "MIT" ]
null
null
null
lib/corex_web/session.ex
eahanson/corex
550020c5cbfc7dc828bc74e1edf0223c1cbffef1
[ "MIT" ]
null
null
null
defmodule CorexWeb.Session do alias Plug.Conn alias Corex.Accounts.User def get_current_user_id(conn), do: conn |> Conn.get_session(:current_user_id) def get_current_user_role(conn), do: conn |> Conn.get_session(:current_user_role) def get_current_user_tid(conn), do: conn |> Conn.get_session(:current_user_t...
38.65
129
0.728331
975059f6b7d5432d35f2811db523852759845eba
696
ex
Elixir
web/models/recipe_ingredient.ex
blacksph3re/alastair3
d6064e322b8ef5c6eb8da59a080852179a71b9d5
[ "Apache-2.0" ]
null
null
null
web/models/recipe_ingredient.ex
blacksph3re/alastair3
d6064e322b8ef5c6eb8da59a080852179a71b9d5
[ "Apache-2.0" ]
null
null
null
web/models/recipe_ingredient.ex
blacksph3re/alastair3
d6064e322b8ef5c6eb8da59a080852179a71b9d5
[ "Apache-2.0" ]
1
2017-12-15T15:49:16.000Z
2017-12-15T15:49:16.000Z
defmodule Alastair.RecipeIngredient do use Alastair.Web, :model schema "recipes_ingredients" do field :quantity, :float field :comment, :string belongs_to :recipe, Alastair.Recipe belongs_to :ingredient, Alastair.Ingredient end @doc """ Builds a changeset based on the `struct` and `params`. ...
29
62
0.701149
97505a258d8f6be83107e87318fec24438cac183
829
ex
Elixir
lib/spelt_web/controllers/config_controller.ex
jec/spelt
b6e5070226b646e1eb5dfc28453db7e7bf5030d9
[ "BSD-3-Clause" ]
null
null
null
lib/spelt_web/controllers/config_controller.ex
jec/spelt
b6e5070226b646e1eb5dfc28453db7e7bf5030d9
[ "BSD-3-Clause" ]
null
null
null
lib/spelt_web/controllers/config_controller.ex
jec/spelt
b6e5070226b646e1eb5dfc28453db7e7bf5030d9
[ "BSD-3-Clause" ]
null
null
null
defmodule SpeltWeb.ConfigController do use SpeltWeb, :controller require Logger def versions(conn, _params) do json(conn, %{versions: Spelt.Config.versions()}) end def well_known(conn, _params) do case Application.get_env(:spelt, :well_known) do %{homeserver: hostname, identity_server: id_ser...
23.027778
65
0.556092
9750657e6ede599e831fa2b9329fef128bf686fb
263
ex
Elixir
test/support/deny_list_interceptor.ex
mrcasals/bamboo
c3b82436d9594d7838775fcc906cd4bd8516690e
[ "MIT" ]
1,845
2016-03-29T23:36:36.000Z
2022-03-31T19:23:38.000Z
test/support/deny_list_interceptor.ex
mrcasals/bamboo
c3b82436d9594d7838775fcc906cd4bd8516690e
[ "MIT" ]
407
2016-03-29T14:55:19.000Z
2022-02-02T13:53:50.000Z
test/support/deny_list_interceptor.ex
mrcasals/bamboo
c3b82436d9594d7838775fcc906cd4bd8516690e
[ "MIT" ]
361
2016-03-31T13:33:22.000Z
2022-02-25T12:38:43.000Z
defmodule Bamboo.DenyListInterceptor do @behaviour Bamboo.Interceptor @deny_list ["blocked@blocked.com"] def call(email) do if Enum.any?(email.to, &(elem(&1, 1) in @deny_list)) do Bamboo.Email.block(email) else email end end end
18.785714
59
0.669202
975071990bf9306089f848f9d3486d2f77cbe30a
283
exs
Elixir
test/advent_of_code/day01_test.exs
ljgago/advent-of-code-elixir-starter
e26cf5abc8a80b90fb6ae5032552d9afd20ef3ae
[ "MIT" ]
5
2021-11-03T23:42:16.000Z
2021-12-02T00:04:45.000Z
test/advent_of_code/day01_test.exs
ljgago/advent-of-code-elixir-starter
e26cf5abc8a80b90fb6ae5032552d9afd20ef3ae
[ "MIT" ]
null
null
null
test/advent_of_code/day01_test.exs
ljgago/advent-of-code-elixir-starter
e26cf5abc8a80b90fb6ae5032552d9afd20ef3ae
[ "MIT" ]
1
2021-11-18T22:33:32.000Z
2021-11-18T22:33:32.000Z
defmodule AdventOfCode.Day01Test do use ExUnit.Case import AdventOfCode.Day01 test "part one" do input = nil result = part_one(input) assert result == nil end test "part two" do input = nil result = part_two(input) assert result == nil end end
15.722222
35
0.660777
975087dda9a5c922260e813400760563c72d4d23
817
ex
Elixir
lib/docusign/model/template_custom_fields.ex
gaslight/docusign_elixir
d9d88d53dd85d32a39d537bade9db28d779414e6
[ "MIT" ]
4
2020-12-21T12:50:13.000Z
2022-01-12T16:50:43.000Z
lib/docusign/model/template_custom_fields.ex
gaslight/docusign_elixir
d9d88d53dd85d32a39d537bade9db28d779414e6
[ "MIT" ]
12
2018-09-18T15:26:34.000Z
2019-09-28T15:29:39.000Z
lib/docusign/model/template_custom_fields.ex
gaslight/docusign_elixir
d9d88d53dd85d32a39d537bade9db28d779414e6
[ "MIT" ]
15
2020-04-29T21:50:16.000Z
2022-02-11T18:01:51.000Z
# NOTE: This class is auto generated by the swagger code generator program. # https://github.com/swagger-api/swagger-codegen.git # Do not edit the class manually. defmodule DocuSign.Model.TemplateCustomFields do @moduledoc """ Template custom fields """ @derive [Poison.Encoder] defstruct [ :listCustomFi...
26.354839
85
0.72093
97509dedcb3abff4a6563f86b256428b28322e8b
1,020
ex
Elixir
test/support/channel_case.ex
harry-gao/ex-cart
573e7f977bb3b710d11618dd215d4ddd8f819fb3
[ "Apache-2.0" ]
356
2016-03-16T12:37:28.000Z
2021-12-18T03:22:39.000Z
test/support/channel_case.ex
harry-gao/ex-cart
573e7f977bb3b710d11618dd215d4ddd8f819fb3
[ "Apache-2.0" ]
30
2016-03-16T09:19:10.000Z
2021-01-12T08:10:52.000Z
test/support/channel_case.ex
harry-gao/ex-cart
573e7f977bb3b710d11618dd215d4ddd8f819fb3
[ "Apache-2.0" ]
72
2016-03-16T13:32:14.000Z
2021-03-23T11:27:43.000Z
defmodule Nectar.ChannelCase do @moduledoc """ This module defines the test case to be used by channel tests. Such tests rely on `Phoenix.ChannelTest` and also imports other functionality to make it easier to build and query models. Finally, if the test case interacts with the database, it cannot be a...
23.181818
68
0.695098
9750dbe458fa00c5433868d1c34ac25515fd4ad9
134
ex
Elixir
lib/basic/repo.ex
ysaito8015/communitex
d469447a62029d59883d95df4df3c9b09e0022e2
[ "Apache-2.0" ]
7
2021-07-14T15:45:55.000Z
2022-01-25T11:13:01.000Z
lib/basic/repo.ex
ysaito8015/communitex
d469447a62029d59883d95df4df3c9b09e0022e2
[ "Apache-2.0" ]
10
2021-08-09T15:54:05.000Z
2022-02-17T04:18:38.000Z
lib/basic/repo.ex
ysaito8015/communitex
d469447a62029d59883d95df4df3c9b09e0022e2
[ "Apache-2.0" ]
5
2021-07-23T05:54:35.000Z
2022-01-28T04:14:51.000Z
defmodule Basic.Repo do use Ecto.Repo, otp_app: :basic, adapter: Ecto.Adapters.Postgres use Scrivener, page_size: 10 end
16.75
35
0.716418
9750e6d28a1e728bd770900e3f4794a461fb3a1e
1,099
exs
Elixir
apps/ewallet_db/priv/repo/migrations/20180109123808_create_membership_table.exs
jimpeebles/ewallet
ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405
[ "Apache-2.0" ]
null
null
null
apps/ewallet_db/priv/repo/migrations/20180109123808_create_membership_table.exs
jimpeebles/ewallet
ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405
[ "Apache-2.0" ]
null
null
null
apps/ewallet_db/priv/repo/migrations/20180109123808_create_membership_table.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...
34.34375
74
0.728844
9750f31ed001d509ea0cea88f7be0f90f4c5c358
3,273
exs
Elixir
test/component_test.exs
mhanberg/temple
ec484bcef65e1bffa9134c3b259795237c1845d0
[ "MIT" ]
366
2019-07-12T22:43:35.000Z
2022-03-31T07:26:25.000Z
test/component_test.exs
mhanberg/temple
ec484bcef65e1bffa9134c3b259795237c1845d0
[ "MIT" ]
114
2019-07-12T19:49:10.000Z
2022-03-23T10:48:48.000Z
test/component_test.exs
mhanberg/temple
ec484bcef65e1bffa9134c3b259795237c1845d0
[ "MIT" ]
17
2019-07-23T15:16:34.000Z
2021-02-25T02:42:02.000Z
defmodule Temple.ComponentTest do use ExUnit.Case, async: true use Temple use Temple.Support.Utils test "renders components using Phoenix.View.render_layout" do result = temple do div class: "font-bold" do "Hello, world" end c Temple.Components.Component do ...
20.329193
67
0.44088
9750f6f86d94f5772379a8f499871f56505b8a0d
2,935
exs
Elixir
test/line_bot_test.exs
adamu/line_bot
dbc2a91b15e6670af563ff78889ffb258bf00edf
[ "Apache-2.0" ]
6
2019-11-04T23:54:42.000Z
2021-09-14T07:14:00.000Z
test/line_bot_test.exs
adamu/line_bot
dbc2a91b15e6670af563ff78889ffb258bf00edf
[ "Apache-2.0" ]
4
2019-11-08T03:49:33.000Z
2019-11-08T03:55:37.000Z
test/line_bot_test.exs
adamu/line_bot
dbc2a91b15e6670af563ff78889ffb258bf00edf
[ "Apache-2.0" ]
1
2020-05-14T08:22:36.000Z
2020-05-14T08:22:36.000Z
defmodule LineBotTest do use ExUnit.Case, async: true import LineBot.TestHelpers import Mox test "defines callbacks for every event" do expected_callbacks = [ handle_unfollow: 1, handle_things: 3, handle_postback: 3, handle_other: 4, handle_message: 3, handle_member_left...
35.361446
94
0.669506
9750fad6fdaf8e4ec7c27390dfcb8d29f6e55ca6
11,423
ex
Elixir
lib/slack/slack.ex
qgadrian/tasker
e2509e1da2314a839f7fc1acc5522e2bdd33f8a3
[ "MIT" ]
3
2017-03-14T12:26:35.000Z
2022-02-19T20:17:09.000Z
lib/slack/slack.ex
qgadrian/tasker
e2509e1da2314a839f7fc1acc5522e2bdd33f8a3
[ "MIT" ]
2
2018-01-08T11:37:51.000Z
2018-01-08T12:43:16.000Z
lib/slack/slack.ex
qgadrian/tasker
e2509e1da2314a839f7fc1acc5522e2bdd33f8a3
[ "MIT" ]
2
2017-09-30T17:07:41.000Z
2018-01-08T11:20:38.000Z
defmodule Tasker.SlackBot do use Slack import Tasker.MessageHelper import Tasker.TaskerHelper require Logger # commands @command_task "(?i)Task" @command_list_tasks "(?i)Tasks" @command_group "(?i)Group" @command_list_groups "(?i)Groups" @command_help "(?i)Help" # actions @action_cre...
41.089928
153
0.624354
97510d01ca96933c0790f1990c2a9ab9f5edaf3b
727
exs
Elixir
test/api/functions/executor_test.exs
emeric-martineau/cloud_stack_lang
50c9164c06b2a683d3de84c493aaddd3e55de8b8
[ "Apache-2.0" ]
null
null
null
test/api/functions/executor_test.exs
emeric-martineau/cloud_stack_lang
50c9164c06b2a683d3de84c493aaddd3e55de8b8
[ "Apache-2.0" ]
null
null
null
test/api/functions/executor_test.exs
emeric-martineau/cloud_stack_lang
50c9164c06b2a683d3de84c493aaddd3e55de8b8
[ "Apache-2.0" ]
null
null
null
# # Copyright 2020 Cloud Stack Lang Contributors # # 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 ag...
36.35
74
0.775791
975190d4562a0135b717d086cff6ff56620dd9ca
81,015
ex
Elixir
lib/elixir/lib/string.ex
LaudateCorpus1/elixir
b131f874640775fdf08707d5b2fbbc1e91722cd0
[ "Apache-2.0" ]
2
2021-11-10T01:18:41.000Z
2021-11-10T01:35:54.000Z
lib/elixir/lib/string.ex
LaudateCorpus1/elixir
b131f874640775fdf08707d5b2fbbc1e91722cd0
[ "Apache-2.0" ]
1
2021-05-22T13:12:51.000Z
2021-05-22T13:12:51.000Z
lib/elixir/lib/string.ex
LaudateCorpus1/elixir
b131f874640775fdf08707d5b2fbbc1e91722cd0
[ "Apache-2.0" ]
1
2021-11-08T10:21:27.000Z
2021-11-08T10:21:27.000Z
import Kernel, except: [length: 1] defmodule String do @moduledoc ~S""" Strings in Elixir are UTF-8 encoded binaries. Strings in Elixir are a sequence of Unicode characters, typically written between double quoted strings, such as `"hello"` and `"héllò"`. In case a string must have a double-quote in itse...
29.194595
102
0.648263
9752031076a575551f0cdc13fea30655204d1feb
413
ex
Elixir
lib/tensorflow/core/framework/versions.pb.ex
pylon/extensor
57eba1660952d94416152531e159abd6b1faaee9
[ "Apache-2.0" ]
58
2018-06-12T00:01:51.000Z
2022-01-30T17:29:42.000Z
lib/tensorflow/core/framework/versions.pb.ex
pylon/extensor
57eba1660952d94416152531e159abd6b1faaee9
[ "Apache-2.0" ]
9
2018-06-13T19:33:39.000Z
2020-02-17T17:24:15.000Z
lib/tensorflow/core/framework/versions.pb.ex
pylon/extensor
57eba1660952d94416152531e159abd6b1faaee9
[ "Apache-2.0" ]
3
2018-06-13T19:45:36.000Z
2021-05-16T17:40:08.000Z
defmodule Tensorflow.VersionDef do @moduledoc false use Protobuf, syntax: :proto3 @type t :: %__MODULE__{ producer: integer, min_consumer: integer, bad_consumers: [integer] } defstruct [:producer, :min_consumer, :bad_consumers] field(:producer, 1, type: :int32) field(...
25.8125
56
0.658596
975203a1186a5fc56cc78b0cf905e60668302e5f
1,771
ex
Elixir
lib/kv/interface.ex
dustinrouillard/lanyard-redis
c1bed07df9501c5d8c2373741088b824c3b61331
[ "MIT" ]
null
null
null
lib/kv/interface.ex
dustinrouillard/lanyard-redis
c1bed07df9501c5d8c2373741088b824c3b61331
[ "MIT" ]
1
2021-11-26T01:07:32.000Z
2021-11-26T01:07:32.000Z
lib/kv/interface.ex
dustinrouillard/lanyard-redis
c1bed07df9501c5d8c2373741088b824c3b61331
[ "MIT" ]
null
null
null
defmodule Lanyard.KV.Interface do alias Lanyard.Connectivity.Redis alias Lanyard.Presence def get_all(user_id) do {:ok, %{kv: kv}} = Presence.get_presence(user_id) kv end def get(user_id, key) do case Presence.get_presence(user_id) do {:ok, %{kv: %{^key => value}}} -> {:ok, value} ...
23.932432
82
0.568605
975227e5849c1fbba24ff071420865211ae554db
3,894
exs
Elixir
apps/artemis/test/artemis/contexts/project/list_projects_test.exs
artemis-platform/artemis_teams
9930c3d9528e37b76f0525390e32b66eed7eadde
[ "MIT" ]
2
2020-04-23T02:29:18.000Z
2020-07-07T13:13:17.000Z
apps/artemis/test/artemis/contexts/project/list_projects_test.exs
chrislaskey/artemis_teams
9930c3d9528e37b76f0525390e32b66eed7eadde
[ "MIT" ]
4
2020-04-26T20:35:36.000Z
2020-11-10T22:13:19.000Z
apps/artemis/test/artemis/contexts/project/list_projects_test.exs
chrislaskey/artemis_teams
9930c3d9528e37b76f0525390e32b66eed7eadde
[ "MIT" ]
null
null
null
defmodule Artemis.ListProjectsTest do use Artemis.DataCase import Artemis.Factories alias Artemis.ListProjects alias Artemis.Repo alias Artemis.Project setup do Repo.delete_all(Project) {:ok, []} end describe "call" do test "returns empty list when no projects exist" do assert Lis...
22.251429
78
0.624807
97522922c3b7b126ff3a7f7ace03a2db05c1ec53
728
ex
Elixir
lib/open_movie_api_web/gettext.ex
ourway/imdb-api
4db426abec4c46ceb2cb19292f3fdd15930beaec
[ "MIT" ]
5
2019-11-02T14:35:49.000Z
2022-01-22T12:26:23.000Z
lib/open_movie_api_web/gettext.ex
ourway/imdb-api
4db426abec4c46ceb2cb19292f3fdd15930beaec
[ "MIT" ]
null
null
null
lib/open_movie_api_web/gettext.ex
ourway/imdb-api
4db426abec4c46ceb2cb19292f3fdd15930beaec
[ "MIT" ]
null
null
null
defmodule OpenMovieApiWeb.Gettext do @moduledoc """ A module providing Internationalization with a gettext-based API. By using [Gettext](https://hexdocs.pm/gettext), your module gains a set of macros for translations, for example: import OpenMovieApiWeb.Gettext # Simple translation gettext(...
29.12
72
0.68544
9752639713bd4311ab4140c1e6f408c3e30148ca
437
ex
Elixir
lib/satellite/ingestion.ex
joshnuss/satellite-prototype
9cf813d8b75efab9a8118f9fecb9ac6f70bd841a
[ "MIT" ]
null
null
null
lib/satellite/ingestion.ex
joshnuss/satellite-prototype
9cf813d8b75efab9a8118f9fecb9ac6f70bd841a
[ "MIT" ]
null
null
null
lib/satellite/ingestion.ex
joshnuss/satellite-prototype
9cf813d8b75efab9a8118f9fecb9ac6f70bd841a
[ "MIT" ]
null
null
null
defmodule Satellite.Ingestion do alias Satellite.{Error, Log, Metric, Repo, Request} def create_request(params) do Request.changeset(params) |> Repo.insert() end def create_log(params) do Log.changeset(params) |> Repo.insert() end def create_error(params) do Error.changeset(params) ...
18.208333
53
0.679634
97527058d571b00c258633fa20d9798955ce2a32
4,296
ex
Elixir
lib/serum/build.ex
afontaine/Serum
f2c410d086c235332e047afdc6a3c6e6c6f6fca8
[ "MIT" ]
null
null
null
lib/serum/build.ex
afontaine/Serum
f2c410d086c235332e047afdc6a3c6e6c6f6fca8
[ "MIT" ]
null
null
null
lib/serum/build.ex
afontaine/Serum
f2c410d086c235332e047afdc6a3c6e6c6f6fca8
[ "MIT" ]
null
null
null
defmodule Serum.Build do @moduledoc """ A module for managing the overall project build procedure. """ import Serum.IOProxy, only: [put_msg: 2] alias Serum.Build.FileCopier alias Serum.Build.FileEmitter alias Serum.Build.FileLoader alias Serum.Build.FileProcessor alias Serum.Build.FragmentGenerator ...
28.64
77
0.625466
97528cc9007bcb8b4602945b3d4595c6506f9fc6
3,431
ex
Elixir
lib/elixir_awesome/projects/crawler.ex
ddidwyll/awesome-elixir
55b72305884cfd10510e25dd5f17f1a32765a17f
[ "MIT" ]
null
null
null
lib/elixir_awesome/projects/crawler.ex
ddidwyll/awesome-elixir
55b72305884cfd10510e25dd5f17f1a32765a17f
[ "MIT" ]
null
null
null
lib/elixir_awesome/projects/crawler.ex
ddidwyll/awesome-elixir
55b72305884cfd10510e25dd5f17f1a32765a17f
[ "MIT" ]
null
null
null
defmodule ElixirAwesome.Projects.Crawler do @moduledoc false use GenServer alias ElixirAwesome.Projects alias Projects.Meta alias Projects.Fetch alias Projects.Helpers @day_sec 86400 @fetch_replace [ :name, :description, :exist ] def start_link(_) do import GenServer, only: [star...
21.179012
63
0.556106
97529f10c2f280a51d335e52478d5d15003f075c
106
ex
Elixir
06.ModulesAndFunctions/maf4.ex
kenspirit/programming-elixir-exercises
35ca1f0cb17ca4040b395c2f9cc53e51918c99ca
[ "MIT" ]
6
2019-10-25T21:51:11.000Z
2022-03-23T02:11:38.000Z
06.ModulesAndFunctions/maf4.ex
kenspirit/programming-elixir-exercises
35ca1f0cb17ca4040b395c2f9cc53e51918c99ca
[ "MIT" ]
null
null
null
06.ModulesAndFunctions/maf4.ex
kenspirit/programming-elixir-exercises
35ca1f0cb17ca4040b395c2f9cc53e51918c99ca
[ "MIT" ]
1
2020-06-16T12:37:43.000Z
2020-06-16T12:37:43.000Z
defmodule Recursion do def sum(0), do: 0 def sum(n), do: n + sum(n - 1) end IO.puts Recursion.sum(5)
15.142857
32
0.632075
9752a7c137bbc94695bac73e1bd8968d0449786a
1,417
ex
Elixir
lib/queue_enumerable_protocol.ex
jeffersono7/queue
532b95da76cd9becb1de4a733ac52d9bbb720812
[ "Apache-2.0" ]
null
null
null
lib/queue_enumerable_protocol.ex
jeffersono7/queue
532b95da76cd9becb1de4a733ac52d9bbb720812
[ "Apache-2.0" ]
null
null
null
lib/queue_enumerable_protocol.ex
jeffersono7/queue
532b95da76cd9becb1de4a733ac52d9bbb720812
[ "Apache-2.0" ]
null
null
null
defimpl Enumerable, for: Queue do @spec count(Queue.t()) :: {:ok, non_neg_integer} | {:error, :not_is_queue} def count(%Queue{queue: queue}) do {:ok, :queue.len(queue)} end def count(_), do: {:error, :not_is_queue} @spec member?(Queue.t(), any) :: {:ok, boolean()} | {:error, atom()} def member?(%Queue...
26.240741
98
0.604799
9752c67af7f720531b9be326541a958b37ba53ed
574
exs
Elixir
apps/welcome2_cli/mix.exs
philihp/welcome2_umbrella
f5f494b98fe4b64a3e1bbfc1b8b432aad7f8c3b2
[ "MIT" ]
null
null
null
apps/welcome2_cli/mix.exs
philihp/welcome2_umbrella
f5f494b98fe4b64a3e1bbfc1b8b432aad7f8c3b2
[ "MIT" ]
13
2020-03-22T08:00:57.000Z
2022-03-07T16:35:36.000Z
apps/welcome2_cli/mix.exs
philihp/welcome2_umbrella
f5f494b98fe4b64a3e1bbfc1b8b432aad7f8c3b2
[ "MIT" ]
null
null
null
defmodule Welcome2Cli.MixProject do use Mix.Project def project do [ app: :welcome2_cli, version: "0.1.0", build_path: "../../_build", config_path: "../../config/config.exs", deps_path: "../../deps", lockfile: "../../mix.lock", elixir: "~> 1.9", start_permanent: ...
18.516129
46
0.552265
9752c89c23783f6b9b9bfd412bd02663fbc31f1c
57
ex
Elixir
lib/sibt_web/views/layout_view.ex
amacgregor/sibt
9819a9de4735612ee59de00f71ca1a6dfa275860
[ "MIT" ]
null
null
null
lib/sibt_web/views/layout_view.ex
amacgregor/sibt
9819a9de4735612ee59de00f71ca1a6dfa275860
[ "MIT" ]
2
2020-07-18T02:22:22.000Z
2021-03-09T15:46:44.000Z
lib/sibt_web/views/layout_view.ex
amacgregor/shouldibuildthat
572b0ba95f93f6ea0dc7b250baaa1bc90efd521b
[ "MIT" ]
null
null
null
defmodule SibtWeb.LayoutView do use SibtWeb, :view end
14.25
31
0.789474
9752db202bf17fa79d8867cacdbb1699ed2f9f76
1,326
ex
Elixir
lib/lavapotion.ex
SamOphis/lavapotion
ccc5b144cc0eff554fc27dacf215e83842e13810
[ "Apache-2.0" ]
3
2018-11-25T00:57:43.000Z
2019-05-16T13:13:26.000Z
lib/lavapotion.ex
SamOphis/lavapotion
ccc5b144cc0eff554fc27dacf215e83842e13810
[ "Apache-2.0" ]
2
2018-12-13T22:54:49.000Z
2018-12-13T22:58:48.000Z
lib/lavapotion.ex
SamOphis/lavapotion
ccc5b144cc0eff554fc27dacf215e83842e13810
[ "Apache-2.0" ]
1
2019-01-16T23:16:37.000Z
2019-01-16T23:16:37.000Z
# Copyright 2018 Sam Pritchard # # 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,...
25.5
74
0.692308
9752dbe273fbb8660d0488372a7d0c7aa3b9e1a7
7,226
ex
Elixir
lib/jason.ex
arghmeleg/jason
07d5d8aaf8ed4699a083c8aa9f9c07bf487fb15c
[ "Apache-2.0" ]
null
null
null
lib/jason.ex
arghmeleg/jason
07d5d8aaf8ed4699a083c8aa9f9c07bf487fb15c
[ "Apache-2.0" ]
null
null
null
lib/jason.ex
arghmeleg/jason
07d5d8aaf8ed4699a083c8aa9f9c07bf487fb15c
[ "Apache-2.0" ]
null
null
null
defmodule Jason do @moduledoc """ A blazing fast JSON parser and generator in pure Elixir. """ alias Jason.{Encode, Decoder, DecodeError, EncodeError, Formatter} @type escape :: :json | :unicode_safe | :html_safe | :javascript_safe @type maps :: :naive | :strict @type encode_opt :: {:escape, escape} | ...
31.554585
95
0.645447
9752f33ab072d3dfcc3e5864ffeb83d9e981b2ec
392
ex
Elixir
lib/price_tracker/tracker/product.ex
kevinbenard/price_tracker
0a7248edd4afca21f00e8b0fc05561f97799c0ca
[ "MIT" ]
null
null
null
lib/price_tracker/tracker/product.ex
kevinbenard/price_tracker
0a7248edd4afca21f00e8b0fc05561f97799c0ca
[ "MIT" ]
null
null
null
lib/price_tracker/tracker/product.ex
kevinbenard/price_tracker
0a7248edd4afca21f00e8b0fc05561f97799c0ca
[ "MIT" ]
null
null
null
defmodule PriceTracker.Tracker.Product do use Ecto.Schema import Ecto.Changeset alias PriceTracker.Tracker.Product schema "products" do field :category, :string field :name, :string timestamps() end @doc false def changeset(%Product{} = product, attrs) do product |> cast(attrs, [:n...
18.666667
47
0.681122
9753173d150d101011b52254dcdd73711c82297f
2,792
exs
Elixir
apps/astarte_appengine_api/test/astarte_appengine_api_web/views/error_view_test.exs
matt-mazzucato/astarte
34d84941a5019efc42321052f7f34b7d907a38f2
[ "Apache-2.0" ]
191
2018-03-30T13:23:08.000Z
2022-03-02T12:05:32.000Z
apps/astarte_appengine_api/test/astarte_appengine_api_web/views/error_view_test.exs
matt-mazzucato/astarte
34d84941a5019efc42321052f7f34b7d907a38f2
[ "Apache-2.0" ]
402
2018-03-30T13:37:00.000Z
2022-03-31T16:47:10.000Z
apps/astarte_appengine_api/test/astarte_appengine_api_web/views/error_view_test.exs
matt-mazzucato/astarte
34d84941a5019efc42321052f7f34b7d907a38f2
[ "Apache-2.0" ]
24
2018-03-30T13:29:48.000Z
2022-02-28T11:10:26.000Z
# # This file is part of Astarte. # # Copyright 2017 Ispirata Srl # # 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 appl...
36.25974
101
0.687321
975336f35fc590c30357ecb4f6931b58015779f8
1,117
exs
Elixir
lab2/config/config.exs
AlexandruBurlacu/NetworkProgrammingLabs
289720c6bcf2ce4bcdb22b5f57ec03a2c1200891
[ "MIT" ]
null
null
null
lab2/config/config.exs
AlexandruBurlacu/NetworkProgrammingLabs
289720c6bcf2ce4bcdb22b5f57ec03a2c1200891
[ "MIT" ]
null
null
null
lab2/config/config.exs
AlexandruBurlacu/NetworkProgrammingLabs
289720c6bcf2ce4bcdb22b5f57ec03a2c1200891
[ "MIT" ]
null
null
null
# This file is responsible for configuring your application # and its dependencies with the aid of the Mix.Config module. use Mix.Config # This configuration is loaded before any dependency and is restricted # to this project. If another project depends on this project, this # file won't be loaded nor affect the paren...
36.032258
73
0.750224
97534d18aaf98f5caab8eb6ff762af689c02bbd6
1,608
ex
Elixir
clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_intent_message_basic_card_button_open_uri_action.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_intent_message_basic_card_button_open_uri_action.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_intent_message_basic_card_button_open_uri_action.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
1
2021-03-04T13:43:47.000Z
2021-03-04T13:43:47.000Z
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
29.777778
107
0.750622
97534ff735fc195175dd073b1adaca0f8e29960a
565
ex
Elixir
test/factories/factory.ex
jiachen247/cadet
4219acaa9ba1d3672b2220d9d1acb2cb671443a3
[ "MIT" ]
null
null
null
test/factories/factory.ex
jiachen247/cadet
4219acaa9ba1d3672b2220d9d1acb2cb671443a3
[ "MIT" ]
null
null
null
test/factories/factory.ex
jiachen247/cadet
4219acaa9ba1d3672b2220d9d1acb2cb671443a3
[ "MIT" ]
null
null
null
defmodule Cadet.Factory do @moduledoc """ Factory for testing """ use ExMachina.Ecto, repo: Cadet.Repo use Cadet.Accounts.{AuthorizationFactory, UserFactory} use Cadet.Assessments.{ AnswerFactory, AssessmentFactory, LibraryFactory, QuestionFactory, SubmissionFactory } use Cadet.Co...
20.925926
71
0.695575
9753656134022f507e1882a53300bf17f7774fc8
699
ex
Elixir
sample/cli.ex
KTSCode/ex_cli
3103ae5ef339c4d3b894eaa031484839369212b5
[ "MIT" ]
126
2016-05-10T23:59:19.000Z
2018-09-23T07:29:49.000Z
sample/cli.ex
KTSCode/ex_cli
3103ae5ef339c4d3b894eaa031484839369212b5
[ "MIT" ]
11
2016-05-11T12:34:29.000Z
2018-08-30T10:14:32.000Z
sample/cli.ex
KTSCode/ex_cli
3103ae5ef339c4d3b894eaa031484839369212b5
[ "MIT" ]
11
2016-05-11T21:17:14.000Z
2018-05-12T22:01:56.000Z
defmodule MyApp.SampleCLI do use ExCLI.DSL name "mycli" description "My CLI" long_description """ This is my long description """ option :verbose, help: "Increase the verbosity level", aliases: [:v], count: true command :hello do aliases [:hi] description "Greets the user" long_descriptio...
21.181818
83
0.620887
97538f4bed17befeeb93d5187a582b08f6143196
1,278
ex
Elixir
lib/gearbox/ecto.ex
edisonywh/gearbox
e20743966204c91978554265c460bb6f2b79419b
[ "MIT" ]
156
2019-09-17T01:47:40.000Z
2022-02-19T19:44:44.000Z
lib/gearbox/ecto.ex
edisonywh/gearbox
e20743966204c91978554265c460bb6f2b79419b
[ "MIT" ]
8
2019-09-19T05:03:06.000Z
2022-03-01T16:48:02.000Z
lib/gearbox/ecto.ex
edisonywh/gearbox
e20743966204c91978554265c460bb6f2b79419b
[ "MIT" ]
9
2019-09-17T16:38:51.000Z
2022-02-23T23:17:35.000Z
if Code.ensure_loaded?(Ecto) do defmodule Gearbox.Ecto do @moduledoc """ Ecto support module for Gearbox. This allows creation of Ecto changeset based on the result of the transition. """ import Gearbox, only: [validate_transition: 3] @doc """ Creates a changeset based on the transition...
33.631579
98
0.63615
9753a70399c8970cb0089e01e1ac07fa92f40dd2
1,260
ex
Elixir
lib/codes/codes_y32.ex
badubizzle/icd_code
4c625733f92b7b1d616e272abc3009bb8b916c0c
[ "Apache-2.0" ]
null
null
null
lib/codes/codes_y32.ex
badubizzle/icd_code
4c625733f92b7b1d616e272abc3009bb8b916c0c
[ "Apache-2.0" ]
null
null
null
lib/codes/codes_y32.ex
badubizzle/icd_code
4c625733f92b7b1d616e272abc3009bb8b916c0c
[ "Apache-2.0" ]
null
null
null
defmodule IcdCode.ICDCode.Codes_Y32 do alias IcdCode.ICDCode def _Y32XXXA do %ICDCode{full_code: "Y32XXXA", category_code: "Y32", short_code: "XXXA", full_name: "Crashing of motor vehicle, undetermined intent, initial encounter", short_name: "Crashing of motor vehicle, und...
37.058824
95
0.670635
9753c0054c8124e5b140771e54802d827e96e3f7
4,426
ex
Elixir
apps/ello_serve/web/views/webapp/editorial_view.ex
ello/apex
4acb096b3ce172ff4ef9a51e5d068d533007b920
[ "MIT" ]
16
2017-06-21T21:31:20.000Z
2021-05-09T03:23:26.000Z
apps/ello_serve/web/views/webapp/editorial_view.ex
ello/apex
4acb096b3ce172ff4ef9a51e5d068d533007b920
[ "MIT" ]
25
2017-06-07T12:18:28.000Z
2018-06-08T13:27:43.000Z
apps/ello_serve/web/views/webapp/editorial_view.ex
ello/apex
4acb096b3ce172ff4ef9a51e5d068d533007b920
[ "MIT" ]
3
2018-06-14T15:34:07.000Z
2022-02-28T21:06:13.000Z
defmodule Ello.Serve.Webapp.EditorialView do use Ello.Serve.Web, :view import Ello.Serve.StandardParams import Ello.V2.ImageView, only: [image_url: 2] alias Ello.Search.Post.Search alias Ello.Serve.Webapp.PostView alias Ello.Core.{Content, Discovery, Contest} import Ello.Events.TrackPostViews, only: [trac...
35.126984
107
0.638726
9753d40512bddd24f14033136dcb8b0444709c60
100
exs
Elixir
test/badges_test.exs
NSFD/slacktapped
b4dc6317e4dff5a1550e10f8fcbc51079db03bcc
[ "MIT" ]
12
2016-09-12T21:51:03.000Z
2020-01-12T18:05:51.000Z
test/badges_test.exs
NSFD/slacktapped
b4dc6317e4dff5a1550e10f8fcbc51079db03bcc
[ "MIT" ]
2
2017-02-13T08:17:13.000Z
2017-04-21T15:01:36.000Z
test/badges_test.exs
NSFD/slacktapped
b4dc6317e4dff5a1550e10f8fcbc51079db03bcc
[ "MIT" ]
4
2016-10-22T19:38:05.000Z
2018-12-20T17:18:47.000Z
defmodule SlacktappedBadgesTest do use ExUnit.Case, async: true doctest Slacktapped.Badges end
16.666667
34
0.81
9753e823ce7dc63cf7b3a65d06688e25ee90172c
2,481
ex
Elixir
clients/dfa_reporting/lib/google_api/dfa_reporting/v28/model/creative_optimization_configuration.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/dfa_reporting/lib/google_api/dfa_reporting/v28/model/creative_optimization_configuration.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/dfa_reporting/lib/google_api/dfa_reporting/v28/model/creative_optimization_configuration.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 Google Inc. # # 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...
38.169231
190
0.746876
9753fac30f1e3476e9d794a23e4baec91f35c918
2,232
ex
Elixir
clients/you_tube/lib/google_api/you_tube/v3/model/video_get_rating_response.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/you_tube/lib/google_api/you_tube/v3/model/video_get_rating_response.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/you_tube/lib/google_api/you_tube/v3/model/video_get_rating_response.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
37.830508
180
0.701613
97541cb8821896a623a661126c4f807fb6f5d5ae
410
exs
Elixir
farmbot_core/priv/asset/migrations/20181017210735_create_devices_table.exs
adamswsk/farmbot_os
d177d3b74888c1e7bcbf8f8595818708ee97f73b
[ "MIT" ]
1
2021-08-23T13:36:14.000Z
2021-08-23T13:36:14.000Z
farmbot_core/priv/asset/migrations/20181017210735_create_devices_table.exs
adamswsk/farmbot_os
d177d3b74888c1e7bcbf8f8595818708ee97f73b
[ "MIT" ]
null
null
null
farmbot_core/priv/asset/migrations/20181017210735_create_devices_table.exs
adamswsk/farmbot_os
d177d3b74888c1e7bcbf8f8595818708ee97f73b
[ "MIT" ]
null
null
null
defmodule FarmbotCore.Asset.Repo.Migrations.CreateDevicesTable do use Ecto.Migration def change do create table("devices", primary_key: false) do add(:local_id, :binary_id, primary_key: true) add(:id, :id) add(:name, :string) add(:timezone, :string) add(:monitor, :boolean, default...
27.333333
65
0.678049
97544fc0927d18c3c38e9dd1c5757305e94558e1
492
exs
Elixir
01_cloak_ecto/test/app/accounts_test.exs
PJUllrich/PeterAndCode
8caf37ceb7a80594f6fab5a673d1637312c40a3e
[ "MIT" ]
7
2021-02-25T09:51:25.000Z
2022-03-09T02:01:04.000Z
01_cloak_ecto/test/app/accounts_test.exs
PJUllrich/PeterAndCode
8caf37ceb7a80594f6fab5a673d1637312c40a3e
[ "MIT" ]
1
2022-01-23T07:27:09.000Z
2022-01-23T07:27:09.000Z
01_cloak_ecto/test/app/accounts_test.exs
PJUllrich/PeterAndCode
8caf37ceb7a80594f6fab5a673d1637312c40a3e
[ "MIT" ]
2
2021-10-04T16:58:50.000Z
2022-03-28T20:47:11.000Z
defmodule App.AccountsTest do use Support.DataCase alias App.Accounts describe "users" do @valid_attrs %{email: "some email"} def user_fixture(attrs \\ %{}) do {:ok, user} = attrs |> Enum.into(@valid_attrs) |> Accounts.create_user() user end test "get_user_...
20.5
76
0.626016
97545a9a148ab6f6312a843da44d732de18602c0
1,090
exs
Elixir
rustler_mix/mix.exs
Regikul/rustler
9a91b939aa64c3d129696c81ae2752716a152de4
[ "Apache-2.0", "MIT" ]
null
null
null
rustler_mix/mix.exs
Regikul/rustler
9a91b939aa64c3d129696c81ae2752716a152de4
[ "Apache-2.0", "MIT" ]
null
null
null
rustler_mix/mix.exs
Regikul/rustler
9a91b939aa64c3d129696c81ae2752716a152de4
[ "Apache-2.0", "MIT" ]
null
null
null
defmodule Rustler.Mixfile do use Mix.Project def project do [app: :rustler, version: "0.18.0", # Auto updated by cargo release, do not modify this line. elixir: "~> 1.2", build_embedded: Mix.env == :prod, start_permanent: Mix.env == :prod, name: "Rustler Mix", source_url: "https:/...
25.348837
104
0.604587
97547b53855bf22f891106d35c30ab65390c4d76
1,482
exs
Elixir
apps/bernard_api/mix.exs
CharlesBean/bernard
5bd403e72cbc17b8feacd8d3cbb0d9c7bc4ef51d
[ "MIT" ]
null
null
null
apps/bernard_api/mix.exs
CharlesBean/bernard
5bd403e72cbc17b8feacd8d3cbb0d9c7bc4ef51d
[ "MIT" ]
null
null
null
apps/bernard_api/mix.exs
CharlesBean/bernard
5bd403e72cbc17b8feacd8d3cbb0d9c7bc4ef51d
[ "MIT" ]
null
null
null
defmodule BernardApi.Mixfile do use Mix.Project def project do [ app: :bernard_api, version: "0.0.1", build_path: "../../_build", config_path: "../../config/config.exs", deps_path: "../../deps", lockfile: "../../mix.lock", elixir: "~> 1.4", elixirc_paths: elixirc...
26
66
0.541835
9754803f8e81e562ea475bd9e9bb1d206bba5763
1,498
ex
Elixir
7-2/geo.ex
lucianferoiu/Etudes-Elixir
16eb4bd3109b64a8012e827c2f2713ca0b307364
[ "MIT" ]
null
null
null
7-2/geo.ex
lucianferoiu/Etudes-Elixir
16eb4bd3109b64a8012e827c2f2713ca0b307364
[ "MIT" ]
null
null
null
7-2/geo.ex
lucianferoiu/Etudes-Elixir
16eb4bd3109b64a8012e827c2f2713ca0b307364
[ "MIT" ]
null
null
null
defmodule Country do defstruct name: nil, lang: "en", cities: [] end defmodule City do defstruct name: nil, lat: 0.0, long: 0.0, population: 0 end defimpl Inspect, for: City do import Inspect.Algebra def inspect(data,_opts) do [data.name, " (", to_string(data.lat), ",", to_string(data.long),") - ",to_string(dat...
28.264151
150
0.678905
9754e5afbd199c08c19f83f4f6df723940a70914
171
exs
Elixir
priv/repo/migrations/20210427222351_remove_label_multibuy.exs
maco2035/console
2a9a65678b8c671c7d92cdb62dfcfc71b84957c5
[ "Apache-2.0" ]
83
2018-05-31T14:49:10.000Z
2022-03-27T16:49:49.000Z
priv/repo/migrations/20210427222351_remove_label_multibuy.exs
maco2035/console
2a9a65678b8c671c7d92cdb62dfcfc71b84957c5
[ "Apache-2.0" ]
267
2018-05-22T23:19:02.000Z
2022-03-31T04:31:06.000Z
priv/repo/migrations/20210427222351_remove_label_multibuy.exs
maco2035/console
2a9a65678b8c671c7d92cdb62dfcfc71b84957c5
[ "Apache-2.0" ]
18
2018-11-20T05:15:54.000Z
2022-03-28T08:20:13.000Z
defmodule Console.Repo.Migrations.RemoveLabelMultibuy do use Ecto.Migration def change do # alter table(:labels) do # remove :multi_buy # end end end
17.1
56
0.701754
9754ef5de5439fa8ddd6042bdde397cd2281d42f
1,287
ex
Elixir
lib/eximap/socket.ex
flussonic/eximap
3829a004f7ff503165f4e18b3bb9308c8ea1ab81
[ "Apache-2.0" ]
29
2018-02-21T07:33:36.000Z
2022-01-27T07:54:00.000Z
lib/eximap/socket.ex
flussonic/eximap
3829a004f7ff503165f4e18b3bb9308c8ea1ab81
[ "Apache-2.0" ]
5
2018-02-15T17:03:26.000Z
2018-11-06T07:15:59.000Z
lib/eximap/socket.ex
flussonic/eximap
3829a004f7ff503165f4e18b3bb9308c8ea1ab81
[ "Apache-2.0" ]
14
2018-03-16T10:50:45.000Z
2021-12-08T12:32:41.000Z
defmodule Eximap.Socket do @moduledoc """ A socket module that abstracts away the type of the connection it has with a server. """ @doc """ Connect to a node using either :ssl or :gen_tcp """ def connect(false, host, port, opts), do: :gen_tcp.connect(host, port, opts) def connect(true = _usessl, host, ...
36.771429
100
0.655012
9754f9e4dc0e7fb52262e96bd621f205140c2dc1
575
ex
Elixir
apps/artemis/lib/artemis/drivers/pager_duty/request.ex
artemis-platform/artemis_dashboard
5ab3f5ac4c5255478bbebf76f0e43b44992e3cab
[ "MIT" ]
9
2019-08-19T19:56:34.000Z
2022-03-22T17:56:38.000Z
apps/artemis/lib/artemis/drivers/pager_duty/request.ex
chrislaskey/atlas_dashboard
9009ef5aac8fefba126fa7d3e3b82d1b610ee6fe
[ "MIT" ]
7
2019-07-12T21:41:01.000Z
2020-08-17T21:29:22.000Z
apps/artemis/lib/artemis/drivers/pager_duty/request.ex
chrislaskey/atlas_dashboard
9009ef5aac8fefba126fa7d3e3b82d1b610ee6fe
[ "MIT" ]
2
2019-07-05T22:51:47.000Z
2019-08-19T19:56:37.000Z
defmodule Artemis.Drivers.PagerDuty.Request do use HTTPoison.Base def process_request_headers(headers) do [ Accept: "application/vnd.pagerduty+json;version=2", Authorization: "Token token=#{get_api_token()}" ] ++ headers end def process_request_url(path), do: "#{get_api_url()}#{path}" d...
25
82
0.709565
975515521178f646da5e6edcf31361c0f5021b57
1,311
ex
Elixir
clients/cloud_monitoring/lib/google_api/cloud_monitoring/v2beta2/model/write_timeseries_request.ex
hauptbenutzer/elixir-google-api
7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/cloud_monitoring/lib/google_api/cloud_monitoring/v2beta2/model/write_timeseries_request.ex
hauptbenutzer/elixir-google-api
7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/cloud_monitoring/lib/google_api/cloud_monitoring/v2beta2/model/write_timeseries_request.ex
hauptbenutzer/elixir-google-api
7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2
[ "Apache-2.0" ]
1
2018-07-28T20:50:50.000Z
2018-07-28T20:50:50.000Z
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "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.775
106
0.764302
97552791e1749c70fbcff5fe0b3c5abaf1ee078d
257
ex
Elixir
lib/sdo_phoenix.ex
irisTa56/sdo_elixir
de856596c462141477bb27aee5d63cb7b95a3b67
[ "MIT" ]
null
null
null
lib/sdo_phoenix.ex
irisTa56/sdo_elixir
de856596c462141477bb27aee5d63cb7b95a3b67
[ "MIT" ]
2
2021-03-10T17:42:11.000Z
2021-05-11T13:38:31.000Z
lib/sdo_phoenix.ex
irisTa56/sdo_elixir
de856596c462141477bb27aee5d63cb7b95a3b67
[ "MIT" ]
null
null
null
defmodule SdoPhoenix do @moduledoc """ SdoPhoenix 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
97556012afb936bc8cc6d588b07b917e03c4c5bb
485
exs
Elixir
allergies/allergies.exs
wobh/xelixir
63e5beec40d5c441cf6cf87f30c29848f481bb1b
[ "MIT" ]
null
null
null
allergies/allergies.exs
wobh/xelixir
63e5beec40d5c441cf6cf87f30c29848f481bb1b
[ "MIT" ]
null
null
null
allergies/allergies.exs
wobh/xelixir
63e5beec40d5c441cf6cf87f30c29848f481bb1b
[ "MIT" ]
null
null
null
defmodule Allergies do @doc """ List the allergies for which the corresponding flag bit is true. Allergies should be ordered, starting with the allergie with the least significant bit ("eggs"). """ @spec list(non_neg_integer) :: [String.t] def list(flags) do end @doc """ Returns whether the cor...
23.095238
76
0.694845
975583b479123db1fdf0ad911b8ef09a8b53606d
2,587
exs
Elixir
test/mimicry_api/controllers/proxy_controller_test.exs
mimicry-tech/mimicry
08a28fb08a7f02fbbb0a2bc2724a08a0b0b41cd9
[ "MIT" ]
4
2021-06-18T17:47:32.000Z
2022-01-04T22:41:36.000Z
test/mimicry_api/controllers/proxy_controller_test.exs
mimicry-tech/mimicry
08a28fb08a7f02fbbb0a2bc2724a08a0b0b41cd9
[ "MIT" ]
56
2021-06-14T19:04:35.000Z
2022-03-24T04:18:58.000Z
test/mimicry_api/controllers/proxy_controller_test.exs
mimicry-tech/mimicry
08a28fb08a7f02fbbb0a2bc2724a08a0b0b41cd9
[ "MIT" ]
1
2021-06-13T13:44:35.000Z
2021-06-13T13:44:35.000Z
defmodule MimicryApi.ProxyControllerTest do use MimicryApi.ConnCase use Mimicry.MockServerCase @tag server: "simple.yaml" test "GET /", %{conn: conn} do conn = conn |> get("/") assert json_response(conn, :ok) assert %{"message" => message} = conn |> json_response(:ok) assert message =~ "X-Mim...
30.435294
81
0.587553
9755a4f6caf21ba4ccbe071f50fae154752a78a3
774
ex
Elixir
lib/raxx/response.ex
varnerac/raxx
0ca9b87cb2b10ca8b0eecaa86f10a9628da8fd93
[ "Apache-2.0" ]
401
2016-06-13T13:40:53.000Z
2022-03-29T17:18:50.000Z
lib/raxx/response.ex
varnerac/raxx
0ca9b87cb2b10ca8b0eecaa86f10a9628da8fd93
[ "Apache-2.0" ]
148
2016-06-11T09:59:43.000Z
2021-03-20T11:28:19.000Z
lib/raxx/response.ex
varnerac/raxx
0ca9b87cb2b10ca8b0eecaa86f10a9628da8fd93
[ "Apache-2.0" ]
31
2017-02-23T14:06:29.000Z
2021-03-22T06:06:53.000Z
defmodule Raxx.Response do @moduledoc """ HTTP responses from a Raxx application are encapsulated in a `Raxx.Response` struct. The contents are itemised below: | **status** | The HTTP status code for the response: `1xx, 2xx, 3xx, 4xx, 5xx` | | **headers** | The response headers as a list: `[{"content-type",...
25.8
86
0.636951
9755ae914404bb68fbdad31d019a2ab20e89309c
136
exs
Elixir
.formatter.exs
jshmrtn/openapi-compiler
72ce58321bcaf7310b1286fa90dd2feaa2a7b565
[ "MIT" ]
3
2021-09-07T13:13:44.000Z
2022-01-16T22:25:11.000Z
.formatter.exs
jshmrtn/openapi-compiler
72ce58321bcaf7310b1286fa90dd2feaa2a7b565
[ "MIT" ]
26
2020-03-31T17:26:58.000Z
2020-04-01T17:32:21.000Z
.formatter.exs
jshmrtn/openapi-compiler
72ce58321bcaf7310b1286fa90dd2feaa2a7b565
[ "MIT" ]
1
2020-10-27T13:32:07.000Z
2020-10-27T13:32:07.000Z
# Used by "mix format" [ import_deps: [:assert_value], inputs: ["{mix,.formatter,.credo}.exs", "{config,lib,test}/**/*.{ex,exs}"] ]
22.666667
76
0.602941
9755c79d7a2cd9817164f5bbd2a59467edbfec60
3,148
ex
Elixir
apps/api_web/lib/api_web/views/trip_view.ex
mbta/automatic-fiesta
de9eb43e4fc7c47aa069f5ded8497ddd39ff74c5
[ "MIT" ]
null
null
null
apps/api_web/lib/api_web/views/trip_view.ex
mbta/automatic-fiesta
de9eb43e4fc7c47aa069f5ded8497ddd39ff74c5
[ "MIT" ]
null
null
null
apps/api_web/lib/api_web/views/trip_view.ex
mbta/automatic-fiesta
de9eb43e4fc7c47aa069f5ded8497ddd39ff74c5
[ "MIT" ]
null
null
null
defmodule ApiWeb.TripView do use ApiWeb.Web, :api_view alias ApiWeb.{ OccupancyView, PredictionView, RoutePatternView, RouteView, ServiceView, ShapeView, StopView, VehicleView } alias State.{ CommuterRailOccupancy, Prediction, RoutePattern, Schedule, Service...
20.050955
98
0.646125
9755c8b6b911ade3cb61715fc1494e32908b2129
444
exs
Elixir
priv/repo/migrations/20200710225958_create_users_tokens.exs
RatioPBC/epi-locator
58c90500c4e0071ce365d76ec9812f9051d6a9f9
[ "Apache-2.0" ]
null
null
null
priv/repo/migrations/20200710225958_create_users_tokens.exs
RatioPBC/epi-locator
58c90500c4e0071ce365d76ec9812f9051d6a9f9
[ "Apache-2.0" ]
6
2021-10-19T01:55:57.000Z
2022-02-15T01:04:19.000Z
priv/repo/migrations/20200710225958_create_users_tokens.exs
RatioPBC/epi-locator
58c90500c4e0071ce365d76ec9812f9051d6a9f9
[ "Apache-2.0" ]
2
2022-01-21T08:38:50.000Z
2022-01-21T08:42:04.000Z
defmodule EpiLocator.Repo.Migrations.CreateUsersTokens do use Ecto.Migration def change do create table(:users_tokens) do add(:user_id, :string, null: false) add(:token, :binary, null: false) add(:context, :string, null: false) add(:sent_to, :string) timestamps(updated_at: false) ...
26.117647
59
0.673423
9755d2e0f299e0eb829a6a682ca3025304eb5e94
75
exs
Elixir
test/test_helper.exs
kluthen/upsilon_battle
3e01bb162def2c42c78936afc07b4a74c67624ac
[ "MIT" ]
null
null
null
test/test_helper.exs
kluthen/upsilon_battle
3e01bb162def2c42c78936afc07b4a74c67624ac
[ "MIT" ]
2
2017-07-05T06:48:59.000Z
2017-07-13T14:16:25.000Z
test/test_helper.exs
kluthen/upsilon_battle
3e01bb162def2c42c78936afc07b4a74c67624ac
[ "MIT" ]
null
null
null
ExUnit.start Ecto.Adapters.SQL.Sandbox.mode(UpsilonBattle.Repo, :manual)
15
59
0.8
9755f70fee430bf8b78acf809fc000c8d365bc7e
261
exs
Elixir
priv/repo/migrations/20200414233751_add_aliases_table.exs
jgsmith/militerm
c4252d0a93f5620b90750ac2b61baf282e9ef7eb
[ "Apache-2.0" ]
6
2017-06-16T10:26:35.000Z
2021-04-07T15:01:00.000Z
priv/repo/migrations/20200414233751_add_aliases_table.exs
jgsmith/militerm
c4252d0a93f5620b90750ac2b61baf282e9ef7eb
[ "Apache-2.0" ]
2
2020-04-14T02:17:46.000Z
2021-03-10T11:09:05.000Z
priv/repo/migrations/20200414233751_add_aliases_table.exs
jgsmith/militerm
c4252d0a93f5620b90750ac2b61baf282e9ef7eb
[ "Apache-2.0" ]
null
null
null
defmodule Militerm.Repo.Migrations.AddAliasesTable do use Ecto.Migration def change do create table(:aliases) do add :entity_id, :string add :data, :map timestamps() end create unique_index(:aliases, [:entity_id]) end end
17.4
53
0.67433
9755f9a97f565deab248ec05c2ea09adb7f986d6
18,951
ex
Elixir
clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/creative_asset.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/model/creative_asset.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/model/creative_asset.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...
97.685567
1,803
0.730568
97560cf83472ed25e8db99ad99420851d74cd346
216
exs
Elixir
mygenserver/test/mygenserver_test.exs
Marcelo-Zometa/MyElixirGenServer
0be823eccc75dcb2de7e3804dc0a2bf20d27e1f8
[ "MIT" ]
null
null
null
mygenserver/test/mygenserver_test.exs
Marcelo-Zometa/MyElixirGenServer
0be823eccc75dcb2de7e3804dc0a2bf20d27e1f8
[ "MIT" ]
null
null
null
mygenserver/test/mygenserver_test.exs
Marcelo-Zometa/MyElixirGenServer
0be823eccc75dcb2de7e3804dc0a2bf20d27e1f8
[ "MIT" ]
null
null
null
defmodule MygenserverTest do use ExUnit.Case doctest ServerProcess test "greets the world" do assert ServerProcess.hello() == :world end test "trying this assert thing" do assert 2 != 3 end end
16.615385
42
0.703704
975624ce8474272fcbd492d3e9b21f8f38167dce
4,703
ex
Elixir
lib/web/character.ex
jgsmith/ex_venture
546adaa8fe80d45a72fde6de8d8d6906902c12d4
[ "MIT" ]
2
2019-05-14T11:36:44.000Z
2020-07-01T08:54:04.000Z
lib/web/character.ex
nickwalton/ex_venture
d8ff1b0181db03f9ddcb7610ae7ab533feecbfbb
[ "MIT" ]
null
null
null
lib/web/character.ex
nickwalton/ex_venture
d8ff1b0181db03f9ddcb7610ae7ab533feecbfbb
[ "MIT" ]
1
2021-01-29T14:12:40.000Z
2021-01-29T14:12:40.000Z
defmodule Web.Character do @moduledoc """ Web context for characters """ import Ecto.Query alias Data.Character alias Data.QuestProgress alias Data.Repo alias Data.Stats alias Game.Account alias Game.Config alias Game.Session alias Game.Session.Registry, as: SessionRegistry alias Metrics.Pla...
21.976636
88
0.618541
9756809d69ecbbcaf766b39e9f61c501fbbdd883
60
exs
Elixir
test/test_helper.exs
coingaming/auto_assets
3bcae3a54eaa8973ac7c8322ec95f96522617bb3
[ "MIT" ]
9
2019-09-26T08:18:41.000Z
2021-02-04T19:59:37.000Z
test/test_helper.exs
coingaming/auto_assets
3bcae3a54eaa8973ac7c8322ec95f96522617bb3
[ "MIT" ]
null
null
null
test/test_helper.exs
coingaming/auto_assets
3bcae3a54eaa8973ac7c8322ec95f96522617bb3
[ "MIT" ]
1
2020-07-14T13:50:46.000Z
2020-07-14T13:50:46.000Z
Phoenix.LiveView.Application.start(nil, nil) ExUnit.start()
20
44
0.8
97569577a3fcf1d0ffdb2af7e193d0cbd37623e0
2,326
ex
Elixir
lib/groupher_server_web/controller/og_controller.ex
coderplanets/coderplanets_server
3663e56340d6d050e974c91f7e499d8424fc25e9
[ "Apache-2.0" ]
240
2018-11-06T09:36:54.000Z
2022-02-20T07:12:36.000Z
lib/groupher_server_web/controller/og_controller.ex
coderplanets/coderplanets_server
3663e56340d6d050e974c91f7e499d8424fc25e9
[ "Apache-2.0" ]
363
2018-07-11T03:38:14.000Z
2021-12-14T01:42:40.000Z
lib/groupher_server_web/controller/og_controller.ex
mydearxym/mastani_server
f24034a4a5449200165cf4a547964a0961793eab
[ "Apache-2.0" ]
22
2019-01-27T11:47:56.000Z
2021-02-28T13:17:52.000Z
defmodule GroupherServerWeb.Controller.OG do @moduledoc """ handle open-graph info """ use GroupherServerWeb, :controller # alias Todos.Todo # plug(:action) def index(conn, %{"url" => url}) do fetch_opengraph_info(conn, url) end # return editor-js flavor fmt # see https://github.com/editor-js/...
19.22314
87
0.512038
9756a6be36413da857582fe914a25c269a4a859c
8,213
exs
Elixir
test/glimesh/streams_test.exs
Heiwa1580/glimesh.tv
c5e1ed4d1011b4e2a54c173d142e7eb857457477
[ "MIT" ]
1
2020-08-02T00:12:28.000Z
2020-08-02T00:12:28.000Z
test/glimesh/streams_test.exs
Heiwa1580/glimesh.tv
c5e1ed4d1011b4e2a54c173d142e7eb857457477
[ "MIT" ]
null
null
null
test/glimesh/streams_test.exs
Heiwa1580/glimesh.tv
c5e1ed4d1011b4e2a54c173d142e7eb857457477
[ "MIT" ]
null
null
null
defmodule Glimesh.StreamsTest do use Glimesh.DataCase use Bamboo.Test import Glimesh.AccountsFixtures alias Glimesh.Chat alias Glimesh.Streams describe "timeout_user/3" do setup do %{ channel: channel_fixture(), moderator: user_fixture(), user: user_fixture() } ...
31.467433
98
0.654572
9756b5f4d3d3fd66138909467d18572a6695f6a8
4,068
exs
Elixir
lib/ex_unit/test/ex_unit/formatter_test.exs
sunaku/elixir
8aa43eaedd76be8ac0d495049eb9ecd56971f4fe
[ "Apache-2.0" ]
null
null
null
lib/ex_unit/test/ex_unit/formatter_test.exs
sunaku/elixir
8aa43eaedd76be8ac0d495049eb9ecd56971f4fe
[ "Apache-2.0" ]
null
null
null
lib/ex_unit/test/ex_unit/formatter_test.exs
sunaku/elixir
8aa43eaedd76be8ac0d495049eb9ecd56971f4fe
[ "Apache-2.0" ]
1
2020-12-07T08:04:16.000Z
2020-12-07T08:04:16.000Z
Code.require_file "../test_helper.exs", __DIR__ defmodule ExUnit.FormatterTest do use ExUnit.Case, async: true import ExUnit.Formatter doctest ExUnit.Formatter def falsy, do: false def formatter(_color, msg), do: msg defmacrop catch_assertion(expr) do quote do try do unquote(expr) ...
29.693431
109
0.584317
97571231567cc6d995a83a03838ec69f16957610
1,276
ex
Elixir
lib/events_tools_web/controllers/landing_controller.ex
Apps-Team/conferencetools
ce2e16a3e4a521dc4682e736a209e6dd380c050d
[ "Apache-2.0" ]
null
null
null
lib/events_tools_web/controllers/landing_controller.ex
Apps-Team/conferencetools
ce2e16a3e4a521dc4682e736a209e6dd380c050d
[ "Apache-2.0" ]
6
2017-10-05T20:16:34.000Z
2017-10-05T20:36:11.000Z
lib/events_tools_web/controllers/landing_controller.ex
apps-team/events-tools
ce2e16a3e4a521dc4682e736a209e6dd380c050d
[ "Apache-2.0" ]
null
null
null
defmodule EventsToolsWeb.LandingController do use EventsToolsWeb, :controller alias EventsTools.Events def homepage(conn, _params, current_user, claims) do events = Events.list_events() render(conn, "homepage.html", events: events, current_user: current_user, claims: claims) end def about(conn, ...
31.121951
93
0.739028
97572297f0e19cb91c0a00df8180fa30399b7419
1,317
ex
Elixir
lib/commcare_api.ex
RatioPBC/commcare_api
94e6056521565a8d86269920a566a06cdf376645
[ "Apache-2.0" ]
null
null
null
lib/commcare_api.ex
RatioPBC/commcare_api
94e6056521565a8d86269920a566a06cdf376645
[ "Apache-2.0" ]
null
null
null
lib/commcare_api.ex
RatioPBC/commcare_api
94e6056521565a8d86269920a566a06cdf376645
[ "Apache-2.0" ]
null
null
null
defmodule CommcareAPI do @moduledoc """ Provides a CommCare API client for accessing patients. """ alias CommcareAPI.{Config, PatientCase, PatientCaseProvider} require Logger @behaviour PatientCaseProvider @type query() :: %{domain: String.t(), case_id: String.t()} @impl CommcareAPI.PatientCaseProvi...
33.769231
121
0.658314
975751d3ef5728ac044fdc3ffc64f5a4e461a61d
3,863
ex
Elixir
lib/majudge/elections.ex
coltonw/majudge
4f81a66abe6a2e82f42131982e7a9b26951b9124
[ "MIT" ]
null
null
null
lib/majudge/elections.ex
coltonw/majudge
4f81a66abe6a2e82f42131982e7a9b26951b9124
[ "MIT" ]
1
2021-05-10T04:23:56.000Z
2021-05-10T04:23:56.000Z
lib/majudge/elections.ex
coltonw/majudge
4f81a66abe6a2e82f42131982e7a9b26951b9124
[ "MIT" ]
null
null
null
defmodule Majudge.Elections do @moduledoc """ The Elections context. """ import Ecto.Query, warn: false alias Majudge.Repo alias Majudge.Elections.Ballot @doc """ Returns the list of ballots. ## Examples iex> list_ballots() [%Ballot{}, ...] """ def list_ballots do Repo.all(Ba...
16.795652
93
0.580896
97577050084b4ae58070ca74b63ff73a49e838d4
1,997
exs
Elixir
mix.exs
danbee/chess
c766ecb63ed15cd4a5c7ce4b503641d0222fb69d
[ "MIT" ]
30
2018-06-16T00:41:59.000Z
2021-03-05T08:39:02.000Z
mix.exs
danbee/chess
c766ecb63ed15cd4a5c7ce4b503641d0222fb69d
[ "MIT" ]
221
2018-01-15T20:33:13.000Z
2022-02-16T00:53:35.000Z
mix.exs
danbee/chess
c766ecb63ed15cd4a5c7ce4b503641d0222fb69d
[ "MIT" ]
5
2018-02-20T17:25:19.000Z
2018-12-29T00:09:30.000Z
defmodule Chess.Mixfile do use Mix.Project def project do [ app: :chess, version: "0.2.0", elixir: "~> 1.11.3", elixirc_paths: elixirc_paths(Mix.env()), compilers: [:phoenix, :gettext] ++ Mix.compilers(), build_embedded: Mix.env() == :prod, start_permanent: Mix.env() =...
27.356164
79
0.542814
9757747a1cb8a8d6ecb2473d258f5b4fe1a461b5
310
exs
Elixir
.formatter.exs
summerchat/dlex
58f8624d047b93b3ce026b65c7cf8a1d85d13f85
[ "Apache-2.0" ]
79
2018-12-22T23:15:55.000Z
2021-11-14T05:56:31.000Z
.formatter.exs
m0dnar/dlex
1a3d0216d0aabb8c1ab5c92c5e6847c140769201
[ "Apache-2.0" ]
120
2019-02-26T17:44:39.000Z
2021-11-12T23:07:51.000Z
.formatter.exs
m0dnar/dlex
1a3d0216d0aabb8c1ab5c92c5e6847c140769201
[ "Apache-2.0" ]
25
2018-12-22T23:15:57.000Z
2021-12-28T18:43:24.000Z
# Used by "mix format" locals_without_parens = [ # Query # Schema schema: 1, schema: 2, field: 2, field: 3 ] [ inputs: ["{mix,.formatter}.exs", "{config,lib,test}/**/*.{ex,exs}"], locals_without_parens: locals_without_parens, export: [ locals_without_parens: locals_without_parens ] ]
17.222222
70
0.651613
975779aae37b19d3731312ae9c49fc96c5c3ee7e
985
ex
Elixir
test/support/conn_case.ex
anamba/webrtc_example
b539101d29ffeb52f551f263128a0884a5d6a7ae
[ "MIT" ]
44
2016-01-16T07:28:43.000Z
2021-05-05T04:45:19.000Z
test/support/conn_case.ex
anamba/webrtc_example
b539101d29ffeb52f551f263128a0884a5d6a7ae
[ "MIT" ]
null
null
null
test/support/conn_case.ex
anamba/webrtc_example
b539101d29ffeb52f551f263128a0884a5d6a7ae
[ "MIT" ]
6
2016-11-11T20:40:34.000Z
2021-05-05T04:45:24.000Z
defmodule Webrtc.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 imports other functionality to make it easier to build and query models. Finally, if the test case interacts with the dat...
23.452381
65
0.704569
9757b6781b33b7966849d63ba8cde222b9c2e73b
1,562
ex
Elixir
lib/codebeam_2021_web/views/error_helpers.ex
JacquiManzi/codebeam_metaprogramming_2021
297e944b6436b3247c9a9075061f3454bd084ac4
[ "MIT" ]
null
null
null
lib/codebeam_2021_web/views/error_helpers.ex
JacquiManzi/codebeam_metaprogramming_2021
297e944b6436b3247c9a9075061f3454bd084ac4
[ "MIT" ]
null
null
null
lib/codebeam_2021_web/views/error_helpers.ex
JacquiManzi/codebeam_metaprogramming_2021
297e944b6436b3247c9a9075061f3454bd084ac4
[ "MIT" ]
null
null
null
defmodule Codebeam2021Web.ErrorHelpers do @moduledoc """ Conveniences for translating and building error messages. """ use Phoenix.HTML @doc """ Generates tag for inlined form input errors. """ def error_tag(form, field) do Enum.map(Keyword.get_values(form.errors, field), fn error -> content...
32.541667
81
0.668374
9757f4b04f2daa3d5175cc01f38dfbcc740f9571
253
ex
Elixir
lib/elixible.ex
gabrielgatu/elixible
3d8c4881469f2d3349488caf67f0d8400d7d1426
[ "MIT" ]
1
2020-05-08T05:11:55.000Z
2020-05-08T05:11:55.000Z
lib/elixible.ex
gabrielgatu/elixible
3d8c4881469f2d3349488caf67f0d8400d7d1426
[ "MIT" ]
1
2020-05-08T10:49:17.000Z
2020-05-08T10:59:55.000Z
lib/elixible.ex
gabrielgatu/elixible
3d8c4881469f2d3349488caf67f0d8400d7d1426
[ "MIT" ]
null
null
null
defmodule Elixible do use Application def start(_type, _args) do import Supervisor.Spec children = [ worker(Elixible.Client.Storage, []) ] opts = [strategy: :one_for_one] Supervisor.start_link(children, opts) end end
15.8125
41
0.667984
9757f5e5272c2aa03195a822b5b1948a9df3c046
434
exs
Elixir
apps/nerves_hub_web_core/priv/repo/migrations/20180813191326_fix_unique_index_devices_identifier.exs
tonnenpinguin/nerves_hub_web
9d36921eb7e20d20a3e3bd308cc98ad7b60cfa72
[ "Apache-2.0" ]
111
2018-07-25T01:07:51.000Z
2022-01-25T17:03:01.000Z
apps/nerves_hub_web_core/priv/repo/migrations/20180813191326_fix_unique_index_devices_identifier.exs
tonnenpinguin/nerves_hub_web
9d36921eb7e20d20a3e3bd308cc98ad7b60cfa72
[ "Apache-2.0" ]
361
2018-07-22T12:53:00.000Z
2022-03-31T18:50:34.000Z
apps/nerves_hub_web_core/priv/repo/migrations/20180813191326_fix_unique_index_devices_identifier.exs
tonnenpinguin/nerves_hub_web
9d36921eb7e20d20a3e3bd308cc98ad7b60cfa72
[ "Apache-2.0" ]
54
2018-08-26T02:58:04.000Z
2022-03-09T10:12:19.000Z
defmodule NervesHubWebCore.Repo.Migrations.FixUniqueIndexDevicesIdentifier do use Ecto.Migration def change do rename(table(:devices), :org_id, to: :tenant_id) drop(unique_index(:devices, [:tenant_id, :identifier], name: :devices_tenant_id_identifier_index)) rename(table(:devices), :tenant_id, to: :org...
39.454545
102
0.762673
9757fb4075f584020e9348819c2805c8ced1c10b
604
exs
Elixir
day13/mix.exs
bjorng/advent-of-code-2015
d59ac2fc4a93c86ebfe3917d89ebaad3b571bdb6
[ "Apache-2.0" ]
10
2021-12-01T08:49:00.000Z
2022-03-24T13:24:50.000Z
day13/mix.exs
bjorng/advent-of-code-2015
d59ac2fc4a93c86ebfe3917d89ebaad3b571bdb6
[ "Apache-2.0" ]
null
null
null
day13/mix.exs
bjorng/advent-of-code-2015
d59ac2fc4a93c86ebfe3917d89ebaad3b571bdb6
[ "Apache-2.0" ]
1
2021-12-16T07:09:11.000Z
2021-12-16T07:09:11.000Z
defmodule Day13.MixProject do use Mix.Project def project do [ app: :day13, version: "0.1.0", elixir: "~> 1.12", start_permanent: Mix.env() == :prod, deps: deps() ] end # Run "mix help compile.app" to learn about applications. def application do [ extra_applic...
20.133333
87
0.56457
9758347a37b00953fba5e44ab1334d932625824d
773
exs
Elixir
priv/repo/migrations/20211025212439_shift_archive_dates_3_months.exs
jennstein2017/Challenge_gov
e0820df8b124a32ff8b78cb827ae43551492988b
[ "CC0-1.0" ]
9
2020-02-26T20:24:38.000Z
2022-03-22T21:14:52.000Z
priv/repo/migrations/20211025212439_shift_archive_dates_3_months.exs
jennstein2017/Challenge_gov
e0820df8b124a32ff8b78cb827ae43551492988b
[ "CC0-1.0" ]
15
2020-04-22T19:33:24.000Z
2022-03-26T15:11:17.000Z
priv/repo/migrations/20211025212439_shift_archive_dates_3_months.exs
jennstein2017/Challenge_gov
e0820df8b124a32ff8b78cb827ae43551492988b
[ "CC0-1.0" ]
4
2020-04-27T22:58:57.000Z
2022-01-14T13:42:09.000Z
defmodule ChallengeGov.Repo.Migrations.ShiftArchiveDates3Months do use Ecto.Migration def up do execute """ UPDATE challenges SET archive_date = archive_date + INTERVAL '3 months' WHERE archive_date IS NOT NULL; """ flush() execute """ UPDATE challenges SET sub_status = 'close...
20.342105
66
0.649418
975846f17525611cc9c114834f6ea762b156d20d
1,082
exs
Elixir
clients/chrome_management/test/test_helper.exs
renovate-bot/elixir-google-api
1da34cd39b670c99f067011e05ab90af93fef1f6
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/chrome_management/test/test_helper.exs
swansoffiee/elixir-google-api
9ea6d39f273fb430634788c258b3189d3613dde0
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/chrome_management/test/test_helper.exs
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...
30.055556
83
0.743068
9758651663570dffc9943f7c4bbf30ed55a7f962
830
exs
Elixir
test/ffaker/en_us/phone_number_test.exs
marocchino/ffaker
5bb4420a8034db9f954a2464cd72039129ef2307
[ "MIT" ]
9
2016-11-09T15:50:05.000Z
2021-02-02T05:45:06.000Z
test/ffaker/en_us/phone_number_test.exs
marocchino/ffaker
5bb4420a8034db9f954a2464cd72039129ef2307
[ "MIT" ]
3
2016-09-01T09:54:46.000Z
2017-07-25T05:23:56.000Z
test/ffaker/en_us/phone_number_test.exs
marocchino/ffaker
5bb4420a8034db9f954a2464cd72039129ef2307
[ "MIT" ]
4
2016-11-22T17:51:48.000Z
2021-02-02T05:45:01.000Z
defmodule Ffaker.EnUs.PhoneNumberTest do use ExUnit.Case, async: true use Ffaker import Ffaker.EnUs.PhoneNumber import Ffaker.Matcher, only: [assert_match: 2] test "phone_number/0" do assert_match ~r/\A(?:1-)?\d{3}-\d{3}-\d{4}(?: x\d{3,5})?\z/, phone_number() end test "area_code/0" do actual = a...
22.432432
79
0.656627
975866a3f4a547db9329caba4023118d850e53d1
1,122
exs
Elixir
elixir/test/homework/accounts/company_test.exs
kellyfelkins/web-homework
b204866bd0a6908efa05ef8f5772b9fa926dbf02
[ "MIT" ]
null
null
null
elixir/test/homework/accounts/company_test.exs
kellyfelkins/web-homework
b204866bd0a6908efa05ef8f5772b9fa926dbf02
[ "MIT" ]
null
null
null
elixir/test/homework/accounts/company_test.exs
kellyfelkins/web-homework
b204866bd0a6908efa05ef8f5772b9fa926dbf02
[ "MIT" ]
null
null
null
defmodule Homework.Accounts.CompanyTest do use Homework.DataCase alias Homework.Accounts.Company @required_attrs ~w{ available_credit credit_line name }a describe "changeset" do setup do [ valid_attrs: %{ available_credit: 10_000_00, credit_line: 10_000_00, nam...
25.5
91
0.622995
97586de781d8e9216c5dde4b47631fb8bdef405a
222
ex
Elixir
lib/mongoose_push_web/controllers/prometheus_metrics_controller.ex
andrewvmail/MongoosePush
538846e19a89c9ca4bc1583745131dc69d3d29f4
[ "Apache-2.0" ]
107
2017-02-10T00:26:05.000Z
2022-02-23T00:50:07.000Z
lib/mongoose_push_web/controllers/prometheus_metrics_controller.ex
andrewvmail/MongoosePush
538846e19a89c9ca4bc1583745131dc69d3d29f4
[ "Apache-2.0" ]
109
2017-02-09T14:40:20.000Z
2021-04-30T22:01:20.000Z
lib/mongoose_push_web/controllers/prometheus_metrics_controller.ex
andrewvmail/MongoosePush
538846e19a89c9ca4bc1583745131dc69d3d29f4
[ "Apache-2.0" ]
25
2017-08-21T20:55:33.000Z
2022-03-06T10:01:13.000Z
defmodule MongoosePushWeb.PrometheusMetricsController do use MongoosePushWeb, :controller def send(conn = %Plug.Conn{}, %{}) do payload = TelemetryMetricsPrometheus.Core.scrape() text(conn, payload) end end
24.666667
56
0.747748
975882a251f7feb9c9738cf5be70446caf27afe1
3,849
ex
Elixir
clients/data_labeling/lib/google_api/data_labeling/v1beta1/model/google_cloud_datalabeling_v1beta1_input_config.ex
mcrumm/elixir-google-api
544f22797cec52b3a23dfb6e39117f0018448610
[ "Apache-2.0" ]
null
null
null
clients/data_labeling/lib/google_api/data_labeling/v1beta1/model/google_cloud_datalabeling_v1beta1_input_config.ex
mcrumm/elixir-google-api
544f22797cec52b3a23dfb6e39117f0018448610
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/data_labeling/lib/google_api/data_labeling/v1beta1/model/google_cloud_datalabeling_v1beta1_input_config.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...
45.821429
338
0.759938
9758a0f7aefb39ce84a69f9d76836d9e6b3ea64f
18,475
ex
Elixir
lib/entry.ex
kianmeng/artificery
6322217f8c028d77254a4cefc8a06c8a0864c736
[ "Apache-2.0" ]
null
null
null
lib/entry.ex
kianmeng/artificery
6322217f8c028d77254a4cefc8a06c8a0864c736
[ "Apache-2.0" ]
null
null
null
lib/entry.ex
kianmeng/artificery
6322217f8c028d77254a4cefc8a06c8a0864c736
[ "Apache-2.0" ]
null
null
null
defmodule Artificery.Entry do @moduledoc """ This module defines the entrypoint for Artificery command line applications, which handles argument parsing, dispatch, and help generation. """ @doc false defmacro __before_compile__(_env) do # Are we building an escript? escript? = :init.get_plain...
29.278922
110
0.52839
9758abf8d79f750ace0d7830a5733da17e702788
144
exs
Elixir
config/dev.exs
techgaun/telix
94c145114e3516dca99e9aa6e8bc9659a34ee107
[ "Apache-2.0" ]
1
2017-10-10T20:54:50.000Z
2017-10-10T20:54:50.000Z
config/dev.exs
techgaun/telix
94c145114e3516dca99e9aa6e8bc9659a34ee107
[ "Apache-2.0" ]
null
null
null
config/dev.exs
techgaun/telix
94c145114e3516dca99e9aa6e8bc9659a34ee107
[ "Apache-2.0" ]
null
null
null
use Mix.Config config :telix, auth: %{ thingKey: "358239051214957", appId: "casaiq", appToken: System.get_env("TELIT_TOKEN") }
16
43
0.645833
9758c37a5efbb529f76b20c3c99dfd94e003236c
128
exs
Elixir
.formatter.exs
satom99/coxir
75bce94dcbe5dfa49e920d2f4ce0de224c315ce4
[ "Apache-2.0" ]
178
2018-04-08T17:11:56.000Z
2022-03-25T15:36:41.000Z
.formatter.exs
satom99/coxir
75bce94dcbe5dfa49e920d2f4ce0de224c315ce4
[ "Apache-2.0" ]
21
2018-04-30T21:33:59.000Z
2019-09-03T17:25:26.000Z
.formatter.exs
satom99/coxir
75bce94dcbe5dfa49e920d2f4ce0de224c315ce4
[ "Apache-2.0" ]
25
2018-04-21T19:41:03.000Z
2021-07-24T22:40:40.000Z
# Used by "mix format" [ inputs: ["{mix,.formatter}.exs", "{config,lib,test}/**/*.{ex,exs}"], subdirectories: ["example"] ]
21.333333
70
0.585938
9758c49ab34ba0b3e73c4ddd5b9339f7e4eae0be
1,330
ex
Elixir
lib/tracer/tools/tool_count_event.ex
gabiz/tracer
4659bf3cc9e0cc86e653794b800e9eb5bbe9f0a2
[ "MIT" ]
125
2017-09-08T06:33:28.000Z
2022-03-09T10:48:04.000Z
lib/tracer/tools/tool_count_event.ex
Gazler/tracer
4659bf3cc9e0cc86e653794b800e9eb5bbe9f0a2
[ "MIT" ]
3
2017-09-21T01:56:24.000Z
2020-10-29T13:27:44.000Z
lib/tracer/tools/tool_count_event.ex
Gazler/tracer
4659bf3cc9e0cc86e653794b800e9eb5bbe9f0a2
[ "MIT" ]
6
2017-09-08T21:41:32.000Z
2019-11-16T10:39:16.000Z
defmodule Tracer.Tool.Count.Event do @moduledoc """ Event generated by the Count tool """ alias __MODULE__ defstruct counts: [] defimpl String.Chars, for: Event do def to_string(event) do event.counts |> find_max_lengths() |> format_count_entries() |> Enum.map(fn {e, count} -> ...
25.09434
75
0.501504
9758d4e87cde5b7929fc7443e4eafe7303e5e7ca
2,497
ex
Elixir
lib/xdr/double_float.ex
sasanchezag/elixir_xdr
a367bd6ad4b636c1f8236efbe59e1136e992cec1
[ "MIT" ]
null
null
null
lib/xdr/double_float.ex
sasanchezag/elixir_xdr
a367bd6ad4b636c1f8236efbe59e1136e992cec1
[ "MIT" ]
null
null
null
lib/xdr/double_float.ex
sasanchezag/elixir_xdr
a367bd6ad4b636c1f8236efbe59e1136e992cec1
[ "MIT" ]
null
null
null
defmodule XDR.DoubleFloat do @moduledoc """ This module manages the `Double-Precision Floating-Point` type based on the RFC4506 XDR Standard. """ @behaviour XDR.Declaration alias XDR.Error.DoubleFloat, as: DoubleFloatError defstruct [:float] defguard valid_float?(value) when is_float(value) or is_inte...
31.2125
99
0.677213
9758e54cd76fd3f6771649c7df19bbcb5f0783ee
1,137
ex
Elixir
lib/hound/helpers/screenshot.ex
NeoArcanjo/hound
31f15d35aafcebc6263c28948f2bc84eefe8892d
[ "MIT" ]
null
null
null
lib/hound/helpers/screenshot.ex
NeoArcanjo/hound
31f15d35aafcebc6263c28948f2bc84eefe8892d
[ "MIT" ]
null
null
null
lib/hound/helpers/screenshot.ex
NeoArcanjo/hound
31f15d35aafcebc6263c28948f2bc84eefe8892d
[ "MIT" ]
null
null
null
defmodule Hound.Helpers.Screenshot do @moduledoc "Provides helper function to take screenshots" import Hound.RequestUtils @doc """ Takes screenshot of the current page. The screenshot is saved in the current working directory. It returns the path of the png file, to which the screenshot has been saved. F...
32.485714
109
0.730871
9758eac9b0e7aa458c858d846e56a008f53bc51b
413
exs
Elixir
priv/repo/migrations/20200923213606_add_unique_index_to_unlocked_at.exs
RatioPBC/epi-contacts
6c43eea52cbfe2097f48b02e3d0c8fce3b46f1ee
[ "Apache-2.0" ]
null
null
null
priv/repo/migrations/20200923213606_add_unique_index_to_unlocked_at.exs
RatioPBC/epi-contacts
6c43eea52cbfe2097f48b02e3d0c8fce3b46f1ee
[ "Apache-2.0" ]
13
2021-06-29T04:35:41.000Z
2022-02-09T04:25:39.000Z
priv/repo/migrations/20200923213606_add_unique_index_to_unlocked_at.exs
RatioPBC/epi-contacts
6c43eea52cbfe2097f48b02e3d0c8fce3b46f1ee
[ "Apache-2.0" ]
null
null
null
defmodule EpiContacts.Repo.Migrations.AddUniqueIndexToUnlockedAt do use Ecto.Migration alias EpiContacts.IdentityConfirmationSession def change do upsert_conflict_target = IdentityConfirmationSession.upsert_conflict_target() execute( "create unique index one_unlocked_session_per_external_id_idx o...
25.8125
104
0.791768
9759136d9c154d2e601a667e46c754f4e6f9bcb2
20,146
ex
Elixir
lib/aws/generated/amplify.ex
salemove/aws-elixir
debdf6482158a71a57636ac664c911e682093395
[ "Apache-2.0" ]
null
null
null
lib/aws/generated/amplify.ex
salemove/aws-elixir
debdf6482158a71a57636ac664c911e682093395
[ "Apache-2.0" ]
null
null
null
lib/aws/generated/amplify.ex
salemove/aws-elixir
debdf6482158a71a57636ac664c911e682093395
[ "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.Amplify do @moduledoc """ Amplify enables developers to develop and deploy cloud-powered mobile and web apps. The Amplify Console provides a continuous delivery and hosting service for we...
20.536188
146
0.568351
97591d1da110c6c61231beb8ba6ce68a8094ed6a
52,378
ex
Elixir
deps/db_connection/lib/db_connection.ex
JoakimEskils/elixir-absinthe
d81e24ec7c7b1164e6d152101dd50422f192d7e9
[ "MIT" ]
1
2017-11-27T06:00:32.000Z
2017-11-27T06:00:32.000Z
deps/db_connection/lib/db_connection.ex
JoakimEskils/elixir-absinthe
d81e24ec7c7b1164e6d152101dd50422f192d7e9
[ "MIT" ]
null
null
null
deps/db_connection/lib/db_connection.ex
JoakimEskils/elixir-absinthe
d81e24ec7c7b1164e6d152101dd50422f192d7e9
[ "MIT" ]
null
null
null
defmodule DBConnection.Stream do defstruct [:conn, :query, :params, :opts] @type t :: %__MODULE__{conn: DBConnection.conn, query: any, params: any, opts: Keyword.t} end defimpl Enumerable, for: DBConnection.Stream do def count(_), do: {:e...
34.033788
87
0.639333
9759246f9fd73855f46044945032aa556f03cc20
716
exs
Elixir
web_finngen_r8/import_icd9.exs
vincent-octo/risteys
5bb1e70b78988770048b91b42fad025faf98d84a
[ "MIT" ]
null
null
null
web_finngen_r8/import_icd9.exs
vincent-octo/risteys
5bb1e70b78988770048b91b42fad025faf98d84a
[ "MIT" ]
null
null
null
web_finngen_r8/import_icd9.exs
vincent-octo/risteys
5bb1e70b78988770048b91b42fad025faf98d84a
[ "MIT" ]
null
null
null
# Import ICD-9 codes into the database # # Usage: # mix run import_icd9.exs <path-to-file> # # Where <path-to-file> points to the "icd9_SimoP.txt" file (originally provided by Aki). # This file has the following shape: # ICD9 ICD9LYH ICD9TXT # 001 KOLERA CHOLERA # 0010A KOLERA VIBR CHOLE O1 CHOLERA E VIBRIONE ...
28.64
88
0.689944
975932f5bdbf2ed32c303f3baed488d6ecc647d1
3,608
ex
Elixir
lib/typer.ex
maxpohlmann/A-onzo
a00ee09476a98fba2ae1de6d20f4bbae7be34748
[ "MIT" ]
2
2020-12-14T15:11:43.000Z
2021-01-07T11:18:03.000Z
lib/typer.ex
maxpohlmann/A-onzo
a00ee09476a98fba2ae1de6d20f4bbae7be34748
[ "MIT" ]
null
null
null
lib/typer.ex
maxpohlmann/A-onzo
a00ee09476a98fba2ae1de6d20f4bbae7be34748
[ "MIT" ]
null
null
null
defmodule Typer do import Utils def free_tvars({:tvar, tvar}), do: [tvar] def free_tvars({:func, l, r}), do: free_tvars(l) ++ free_tvars(r) def sub_in_type(alpha={:tvar, tvar}, sub), do: Map.get(sub, tvar) || alpha def sub_in_type({:func, l, r}, sub), do: {:func, sub_in_type(l, sub), sub_in_type(r, sub)} ...
28.634921
131
0.542129
97593ec0e0b4aa71a467b80729948b2c03be5d5d
1,192
ex
Elixir
lib/changelog/policies/default.ex
PsOverflow/changelog.com
53f4ecfc39b021c6b8cfcc0fa11f29aff8038a7f
[ "MIT" ]
1
2020-10-12T13:28:41.000Z
2020-10-12T13:28:41.000Z
lib/changelog/policies/default.ex
type1fool/changelog.com
fbec3528cc3f5adfdc75b008bb92b17efc4f248f
[ "MIT" ]
null
null
null
lib/changelog/policies/default.ex
type1fool/changelog.com
fbec3528cc3f5adfdc75b008bb92b17efc4f248f
[ "MIT" ]
1
2018-10-03T20:55:52.000Z
2018-10-03T20:55:52.000Z
defmodule Changelog.Policies.Default do defmacro __using__(_opts) do quote do def new(actor), do: create(actor) def create(_actor), do: false def index(_actor), do: false def show(_actor, _resource), do: false def edit(resource, actor), do: update(resource, actor) def update(...
32.216216
90
0.663591
975973090695455276cd6505f6dfbdd70b77debf
1,172
ex
Elixir
lib/balance_sheet.ex
molossus/api
39da836aa244239ad8bf55371f3e1573541eeb7a
[ "BSD-2-Clause" ]
1
2016-02-23T11:31:18.000Z
2016-02-23T11:31:18.000Z
lib/balance_sheet.ex
molossus/api
39da836aa244239ad8bf55371f3e1573541eeb7a
[ "BSD-2-Clause" ]
null
null
null
lib/balance_sheet.ex
molossus/api
39da836aa244239ad8bf55371f3e1573541eeb7a
[ "BSD-2-Clause" ]
null
null
null
defmodule BalanceSheet do use Application import PgExt.Enumerations # See http://elixir-lang.org/docs/stable/elixir/Application.html # for more information on OTP Applications def start(_type, _args) do import Supervisor.Spec # Define workers and child supervisors to be supervised children = [ ...
32.555556
90
0.727816
97598af27c6a0741191b2cd27aca063a903bec48
266
ex
Elixir
lib/earmark/helpers.ex
feld/earmark
149a174e8955de2c6833d4497e5d445dceea63dc
[ "Apache-1.1" ]
734
2015-01-05T19:08:00.000Z
2022-03-28T14:04:21.000Z
lib/earmark/helpers.ex
feld/earmark
149a174e8955de2c6833d4497e5d445dceea63dc
[ "Apache-1.1" ]
343
2015-01-01T04:56:57.000Z
2022-02-15T11:00:57.000Z
lib/earmark/helpers.ex
feld/earmark
149a174e8955de2c6833d4497e5d445dceea63dc
[ "Apache-1.1" ]
169
2015-02-26T15:18:05.000Z
2022-03-18T08:00:42.000Z
defmodule Earmark.Helpers do @doc """ `Regex.replace` with the arguments in the correct order """ def replace(text, regex, replacement, options \\ []) do Regex.replace(regex, text, replacement, options) end end # SPDX-License-Identifier: Apache-2.0
20.461538
57
0.699248
9759e29d42b4db89383016b5489b136a83d18405
349
ex
Elixir
lib/tanks/game/component/health.ex
marcinbiegun/elixir-tanks
29a3beef303825a137249c8ae0a3ff21c33d9a1c
[ "MIT" ]
null
null
null
lib/tanks/game/component/health.ex
marcinbiegun/elixir-tanks
29a3beef303825a137249c8ae0a3ff21c33d9a1c
[ "MIT" ]
null
null
null
lib/tanks/game/component/health.ex
marcinbiegun/elixir-tanks
29a3beef303825a137249c8ae0a3ff21c33d9a1c
[ "MIT" ]
null
null
null
defmodule Tanks.Game.Components.Health do @type t :: %__MODULE__{ pid: pid(), state: %{ current: Integer.t(), max: Integer.t() } } use ECS.Component defstruct [:pid, :state] def new(hp) do state = %{current: hp, max: hp} ECS.Component.new(...
18.368421
41
0.530086
9759ee41bbb037a88876bf5198e6c1e1b9e60db2
238
ex
Elixir
src/anonymous-function.ex
myyrakle/Elixir-Example
0b7fcb11a6bea25e7cca8b50f14ae577a0c8c705
[ "MIT" ]
null
null
null
src/anonymous-function.ex
myyrakle/Elixir-Example
0b7fcb11a6bea25e7cca8b50f14ae577a0c8c705
[ "MIT" ]
null
null
null
src/anonymous-function.ex
myyrakle/Elixir-Example
0b7fcb11a6bea25e7cca8b50f14ae577a0c8c705
[ "MIT" ]
null
null
null
callback = fn(e) -> e+1 end nums = [1, 2, 3, 4, 5] nums = Enum.map nums, callback str = Enum.join(nums, ", ") IO.puts str callback = &(&1 + 1) nums = [1, 2, 3, 4, 5] nums = Enum.map nums, callback str = Enum.join(nums, ", ") IO.puts str
19.833333
30
0.579832
975a18246b7061e51ffe67cefb631ce85eff52c6
432
exs
Elixir
elixir/day3/day3.exs
hemslo/seven-in-seven
5c772abf8e0887675e56a9478be663807c79c3a8
[ "MIT" ]
null
null
null
elixir/day3/day3.exs
hemslo/seven-in-seven
5c772abf8e0887675e56a9478be663807c79c3a8
[ "MIT" ]
null
null
null
elixir/day3/day3.exs
hemslo/seven-in-seven
5c772abf8e0887675e56a9478be663807c79c3a8
[ "MIT" ]
null
null
null
# Add a timeout to the pitcher or catcher. What happens when you time out? ball_glove = fn -> receive do {:pitch, pitcher} -> send pitcher, {:catch, self()} after 1_000 -> IO.puts "nothing after 1s in catcher" end end catcher = spawn ball_glove :timer.sleep(2000) send catcher, {:pitch, self()} receive...
20.571429
74
0.659722
975a444c4e06ad40a726dd4c2af66febca79e1a6
452
ex
Elixir
lib/battle_city.ex
clszzyh/battle_city_core
7a3aca9000b186382f1faf526ebce837a76ef86e
[ "MIT" ]
null
null
null
lib/battle_city.ex
clszzyh/battle_city_core
7a3aca9000b186382f1faf526ebce837a76ef86e
[ "MIT" ]
38
2020-12-17T12:40:44.000Z
2022-03-31T02:05:59.000Z
lib/battle_city.ex
clszzyh/battle_city
7a3aca9000b186382f1faf526ebce837a76ef86e
[ "MIT" ]
null
null
null
defmodule BattleCity do @external_resource readme = Path.join([__DIR__, "../README.md"]) @moduledoc readme |> File.read!() |> String.split("<!-- MDOC -->") |> Enum.fetch!(2) @version Mix.Project.config()[:version] def version, do: @version @type slug :: binary() @type id :: binary() | nil @type reason ...
26.588235
86
0.610619
975a4b0ef913af8aa881d64c13c09fb130c46e0c
4,940
ex
Elixir
lib/phoenix/token.ex
keichan34/phoenix
e0e5284c6e9910743a0fdef7251d461fd06d4d5e
[ "MIT" ]
null
null
null
lib/phoenix/token.ex
keichan34/phoenix
e0e5284c6e9910743a0fdef7251d461fd06d4d5e
[ "MIT" ]
null
null
null
lib/phoenix/token.ex
keichan34/phoenix
e0e5284c6e9910743a0fdef7251d461fd06d4d5e
[ "MIT" ]
null
null
null
defmodule Phoenix.Token do @moduledoc """ Tokens provide a way to generate and verify bearer tokens for use in Channels or API authentication. The data can be read by clients, but the message is signed to prevent tampering. ## Basic Usage When generating a unique token for usage in an API or Channel ...
34.788732
86
0.660121