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
73c013354a08e63f76dab81b814a37ee470819b1
1,524
exs
Elixir
mix.exs
RxAssim/polymorphic_embed
d8712ae6d4327beaa873f7d994f977fd5172df1d
[ "Apache-2.0" ]
null
null
null
mix.exs
RxAssim/polymorphic_embed
d8712ae6d4327beaa873f7d994f977fd5172df1d
[ "Apache-2.0" ]
null
null
null
mix.exs
RxAssim/polymorphic_embed
d8712ae6d4327beaa873f7d994f977fd5172df1d
[ "Apache-2.0" ]
null
null
null
defmodule PolymorphicEmbed.MixProject do use Mix.Project @version "1.7.0" def project do [ app: :polymorphic_embed, elixir: "~> 1.9", deps: deps(), aliases: aliases(), elixirc_paths: elixirc_paths(Mix.env()), # Hex version: @version, package: package(), ...
20.32
78
0.527559
73c02decd3af8e096eab889efc848caa9437d391
1,354
ex
Elixir
benchmark/lib/benchmark.ex
k32/map_sets
b1e846e74b2a2adc95ce408ef3d3e4c0a022fd1c
[ "Unlicense" ]
12
2018-06-13T21:14:05.000Z
2021-08-08T03:06:33.000Z
benchmark/lib/benchmark.ex
k32/map_sets
b1e846e74b2a2adc95ce408ef3d3e4c0a022fd1c
[ "Unlicense" ]
5
2019-01-11T20:41:12.000Z
2019-03-13T21:43:02.000Z
benchmark/lib/benchmark.ex
k32/map_sets
b1e846e74b2a2adc95ce408ef3d3e4c0a022fd1c
[ "Unlicense" ]
2
2020-02-07T06:20:14.000Z
2021-02-12T17:51:46.000Z
# I don't know Elixir, so the below code probably doesn't make sense l1 = Enum.to_list(1..10_000) l2 = Enum.to_list(10_001..20_000) l3 = Enum.to_list(5_000..15_000) Benchee.run(%{ 'sets from_list' => fn -> :sets.from_list(l1) end, 'map_sets from_list' => fn -> :map_sets.from_list(l1) end }...
35.631579
91
0.521418
73c0319152bf494532f91a94ee85cbd6514aadb3
2,916
ex
Elixir
lib/bamboo/adapters/send_grid_helper.ex
ChrisYammine/bamboo
4b61b02bab965be254ced3f503981888616656a9
[ "MIT" ]
null
null
null
lib/bamboo/adapters/send_grid_helper.ex
ChrisYammine/bamboo
4b61b02bab965be254ced3f503981888616656a9
[ "MIT" ]
null
null
null
lib/bamboo/adapters/send_grid_helper.ex
ChrisYammine/bamboo
4b61b02bab965be254ced3f503981888616656a9
[ "MIT" ]
1
2020-01-02T20:00:00.000Z
2020-01-02T20:00:00.000Z
defmodule Bamboo.SendGridHelper do @moduledoc """ Functions for using features specific to Sendgrid. ## Example email |> with_template("80509523-83de-42b6-a2bf-54b7513bd2aa") |> substitute("%name%", "Jon Snow") |> substitute("%location%", "Westeros") """ alias Bamboo.Email @field...
25.356522
100
0.665295
73c038421e0b2803e3dd5874b6751d7e967567bb
380
exs
Elixir
clients/poly/test/test_helper.exs
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/poly/test/test_helper.exs
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/poly/test/test_helper.exs
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
ExUnit.start() defmodule GoogleApi.Poly.V1.TestHelper do defmacro __using__(opts) do quote do use ExUnit.Case, unquote(opts) import GoogleApi.Poly.V1.TestHelper end end def for_scope(scopes) when is_list(scopes), do: for_scope(Enum.join(scopes, " ")) def for_scope(scope) do {:ok, toke...
20
83
0.692105
73c0597b73a724c9c8e0423ba7c38674fb5257e6
7,253
exs
Elixir
test/tortoise_integration_test.exs
ConnorRigby/creep
91d503187fda50b20788244487ca7d412373893c
[ "ISC" ]
13
2019-09-21T04:48:09.000Z
2022-01-26T13:13:03.000Z
test/tortoise_integration_test.exs
ConnorRigby/creep
91d503187fda50b20788244487ca7d412373893c
[ "ISC" ]
null
null
null
test/tortoise_integration_test.exs
ConnorRigby/creep
91d503187fda50b20788244487ca7d412373893c
[ "ISC" ]
1
2020-03-03T16:50:42.000Z
2020-03-03T16:50:42.000Z
defmodule Creep.TortoiseIntegrationTest do use ExUnit.Case, async: true defmodule IntegrationHandler do @behaviour Tortoise.Handler @impl Tortoise.Handler def init(args) do test_pid = Keyword.fetch!(args, :pid) {:ok, %{test_pid: test_pid}} end @impl Tortoise.Handler def connec...
32.379464
83
0.597684
73c063d0495bcd184eaed1ca36699f0c69cc7e89
426
exs
Elixir
elixir/priv/repo/migrations/20210209213330_create_users_companies.exs
XanderHarris/web-homework
d0b5c2bbbd055341d51f02f824a2020188f6c094
[ "MIT" ]
null
null
null
elixir/priv/repo/migrations/20210209213330_create_users_companies.exs
XanderHarris/web-homework
d0b5c2bbbd055341d51f02f824a2020188f6c094
[ "MIT" ]
null
null
null
elixir/priv/repo/migrations/20210209213330_create_users_companies.exs
XanderHarris/web-homework
d0b5c2bbbd055341d51f02f824a2020188f6c094
[ "MIT" ]
null
null
null
defmodule Homework.Repo.Migrations.CreateUsersCompanies do use Ecto.Migration def change do create table(:users_companies, primary_key: false) do add(:id, :uuid, primary_key: true) add(:user_id, references(:users, type: :uuid, on_delete: :nothing)) add(:company_id, references(:companies, type...
30.428571
80
0.697183
73c06def3700f6a96b35b481d043b8cd711d8bf8
1,443
exs
Elixir
apps/ello_serve/mix.exs
ello/apex
4acb096b3ce172ff4ef9a51e5d068d533007b920
[ "MIT" ]
16
2017-06-21T21:31:20.000Z
2021-05-09T03:23:26.000Z
apps/ello_serve/mix.exs
ello/apex
4acb096b3ce172ff4ef9a51e5d068d533007b920
[ "MIT" ]
25
2017-06-07T12:18:28.000Z
2018-06-08T13:27:43.000Z
apps/ello_serve/mix.exs
ello/apex
4acb096b3ce172ff4ef9a51e5d068d533007b920
[ "MIT" ]
3
2018-06-14T15:34:07.000Z
2022-02-28T21:06:13.000Z
defmodule Ello.Serve.Mixfile do use Mix.Project def project do [app: :ello_serve, 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)...
27.75
63
0.57034
73c070c9f0d221954ef8605bfac2931450b606ce
1,620
ex
Elixir
lib/bus_car/repo/modules.ex
elbow-jason/bus_car
cd70b9f6b8dd404eb518f642491e0a4430e2d9f9
[ "MIT" ]
18
2016-09-25T21:36:39.000Z
2021-02-17T15:09:52.000Z
lib/bus_car/repo/modules.ex
elbow-jason/bus_car
cd70b9f6b8dd404eb518f642491e0a4430e2d9f9
[ "MIT" ]
7
2016-12-08T05:01:23.000Z
2018-04-05T08:55:11.000Z
lib/bus_car/repo/modules.ex
elbow-jason/bus_car
cd70b9f6b8dd404eb518f642491e0a4430e2d9f9
[ "MIT" ]
1
2020-04-24T02:10:15.000Z
2020-04-24T02:10:15.000Z
defmodule BusCar.Repo.Modules do defmacro define_explain(mod) do quote do mod = unquote(mod) name = BusCar.Repo.Helpers.concat_names(mod, Explain) defmodule name do use BusCar.Repo.Explain, repo: mod end end end defmacro define_cluster(mod) do quote do mod = unq...
21.891892
59
0.632099
73c094455049c2a71d3c9f157ee6bad50400fd7e
1,145
exs
Elixir
config/config.exs
shamil614/elastic-jsonapi
d5a8703af2731096e788409323e9d2ae3cc58c7f
[ "MIT" ]
null
null
null
config/config.exs
shamil614/elastic-jsonapi
d5a8703af2731096e788409323e9d2ae3cc58c7f
[ "MIT" ]
null
null
null
config/config.exs
shamil614/elastic-jsonapi
d5a8703af2731096e788409323e9d2ae3cc58c7f
[ "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.935484
73
0.754585
73c096ee5f6f500f6187bf8a4de54cc8c7fb69b5
1,134
ex
Elixir
lib/ex_admin/themes/admin_lte2.ex
devonestes/ex_admin
e135ae7c28de78fc87baf519ff8a32da12e8bf66
[ "MIT" ]
1,347
2015-10-05T18:23:49.000Z
2022-01-09T18:38:36.000Z
lib/ex_admin/themes/admin_lte2.ex
leonardzhou/ex_admin
c241e956503c548a472e3ee89751e64a16477638
[ "MIT" ]
402
2015-10-03T13:53:32.000Z
2021-07-08T09:52:22.000Z
lib/ex_admin/themes/admin_lte2.ex
leonardzhou/ex_admin
c241e956503c548a472e3ee89751e64a16477638
[ "MIT" ]
333
2015-10-12T22:56:57.000Z
2021-05-26T18:40:24.000Z
defmodule ExAdmin.Theme.AdminLte2 do @moduledoc false use Xain import ExAdmin.Utils # import ExAdmin.ViewHelpers import ExAdmin.Form, only: [required_abbr: 1] @name "admin_lte2" def name, do: @name def get_form_error_class(error) do unless error == "", do: ".has-error", else: "" end def buil...
22.235294
78
0.634921
73c0ca9d422a3c569bef9931ca2561398efc2efb
2,042
exs
Elixir
examples/example.exs
oivoodoo/exfacebook
42d960336c4e432216ae592925519f93fc817eaf
[ "MIT" ]
18
2016-07-30T00:04:21.000Z
2020-01-13T09:17:54.000Z
examples/example.exs
oivoodoo/exfacebook
42d960336c4e432216ae592925519f93fc817eaf
[ "MIT" ]
7
2016-08-10T08:14:59.000Z
2017-02-15T09:36:43.000Z
examples/example.exs
oivoodoo/exfacebook
42d960336c4e432216ae592925519f93fc817eaf
[ "MIT" ]
6
2016-08-10T07:28:15.000Z
2017-03-31T11:14:57.000Z
defmodule Exfacebook.DevTest do require Logger alias Exfacebook.Api def get_connections do params = %{fields: "id,name", access_token: System.get_env("FACEBOOK_ACCESS_TOKEN")} {:ok, collection} = Api.get_connections(:me, :feed, params) Logger.info "[Exfacebook] me feed: #{inspect(collection)}" en...
25.848101
121
0.718413
73c0da461097ee8a59253a89445664b35d0ca631
14,500
ex
Elixir
lib/mix/lib/mix/utils.ex
jbcrail/elixir
f30ef15d9d028a6d0f74d10c2bb320d5f8501bdb
[ "Apache-2.0" ]
1
2015-02-23T00:01:48.000Z
2015-02-23T00:01:48.000Z
lib/mix/lib/mix/utils.ex
jbcrail/elixir
f30ef15d9d028a6d0f74d10c2bb320d5f8501bdb
[ "Apache-2.0" ]
null
null
null
lib/mix/lib/mix/utils.ex
jbcrail/elixir
f30ef15d9d028a6d0f74d10c2bb320d5f8501bdb
[ "Apache-2.0" ]
null
null
null
defmodule Mix.Utils do @moduledoc """ Utilities used throughout Mix and tasks. """ @doc """ Get the mix home. It defaults to `~/.mix` unless the `MIX_HOME` environment variable is set. Developers should only store entries in the `MIX_HOME` directory which are guaranteed to work across multiple El...
26.363636
113
0.622138
73c0da768039946f2ec62a3bb8f26dbe7df78d62
11,336
ex
Elixir
lib/ueberauth/strategy/slack.ex
connorjacobsen/ueberauth_slack
7ac075f09fff47584899385cd75ed54116638ced
[ "MIT" ]
null
null
null
lib/ueberauth/strategy/slack.ex
connorjacobsen/ueberauth_slack
7ac075f09fff47584899385cd75ed54116638ced
[ "MIT" ]
null
null
null
lib/ueberauth/strategy/slack.ex
connorjacobsen/ueberauth_slack
7ac075f09fff47584899385cd75ed54116638ced
[ "MIT" ]
null
null
null
defmodule Ueberauth.Strategy.Slack do @moduledoc """ Implements an ÜeberauthSlack strategy for authentication with slack.com. When configuring the strategy in the Üeberauth providers, you can specify some defaults. * `uid_field` - The field to use as the UID field. This can be any populated field in the info ...
31.753501
121
0.613444
73c146c5fd687c79f51df28c2b5ed30b20ab09d5
1,549
exs
Elixir
test/core/version/gear_test.exs
ikeyasu/antikythera
544fdd22e46b1f34177053d87d9e2a9708c74113
[ "Apache-2.0" ]
null
null
null
test/core/version/gear_test.exs
ikeyasu/antikythera
544fdd22e46b1f34177053d87d9e2a9708c74113
[ "Apache-2.0" ]
null
null
null
test/core/version/gear_test.exs
ikeyasu/antikythera
544fdd22e46b1f34177053d87d9e2a9708c74113
[ "Apache-2.0" ]
null
null
null
# Copyright(c) 2015-2018 ACCESS CO., LTD. All rights reserved. defmodule AntikytheraCore.Version.GearTest do use Croma.TestCase, alias_as: V defp all_messages_in_mailbox(acc \\ []) do receive do x -> all_messages_in_mailbox([x | acc]) after 0 -> acc end end defp set(l) do MapSet.n...
44.257143
127
0.520336
73c153fbbca53490202a0d0c142c243697a0f73a
596
exs
Elixir
config/prod.secret.exs
pastleo/iex_line_bot
73d02b45adc05bc7331fa5f88859861d04a2e71f
[ "MIT" ]
1
2019-06-24T23:55:26.000Z
2019-06-24T23:55:26.000Z
config/prod.secret.exs
pastleo/iex_line_bot
73d02b45adc05bc7331fa5f88859861d04a2e71f
[ "MIT" ]
null
null
null
config/prod.secret.exs
pastleo/iex_line_bot
73d02b45adc05bc7331fa5f88859861d04a2e71f
[ "MIT" ]
null
null
null
# In this file, we load production configuration and # secrets from environment variables. You can also # hardcode secrets, although such is generally not # recommended and you have to remember to add this # file to your .gitignore. use Mix.Config secret_key_base = System.get_env("SECRET_KEY_BASE") || raise """ ...
33.111111
76
0.748322
73c158443d89671d9b45ed7bb66baa3712ea0108
366
exs
Elixir
apps/artemis/test/artemis/schemas/feature_test.exs
chrislaskey/atlas_platform
969aea95814f62d3471f93000ee5ad77edb9d1bf
[ "MIT" ]
10
2019-07-05T19:59:20.000Z
2021-05-23T07:36:11.000Z
apps/artemis/test/artemis/schemas/feature_test.exs
chrislaskey/atlas_platform
969aea95814f62d3471f93000ee5ad77edb9d1bf
[ "MIT" ]
7
2019-07-12T21:41:01.000Z
2020-08-17T21:29:22.000Z
apps/artemis/test/artemis/schemas/feature_test.exs
chrislaskey/atlas_platform
969aea95814f62d3471f93000ee5ad77edb9d1bf
[ "MIT" ]
4
2019-07-05T20:04:08.000Z
2021-05-13T16:28:33.000Z
defmodule Artemis.FeatureTest do use Artemis.DataCase use ExUnit.Case, async: true import Ecto.Repo import Artemis.Factories describe "attributes - constraints" do test "slug must be unique" do existing = insert(:feature) assert_raise Ecto.ConstraintError, fn -> insert(:feature, slu...
20.333333
46
0.691257
73c15c40f15fcc35c4ceaca31c7a7ead1985c190
727
ex
Elixir
lib/mix/tasks/subscriber/list_in_topic.ex
mcrumm/cloud_pubsub_samples
ea89c3bf3a6174e4ff140a501150b16f9b013027
[ "Apache-2.0" ]
1
2020-05-28T19:24:56.000Z
2020-05-28T19:24:56.000Z
lib/mix/tasks/subscriber/list_in_topic.ex
mcrumm/cloud_pubsub_samples
ea89c3bf3a6174e4ff140a501150b16f9b013027
[ "Apache-2.0" ]
null
null
null
lib/mix/tasks/subscriber/list_in_topic.ex
mcrumm/cloud_pubsub_samples
ea89c3bf3a6174e4ff140a501150b16f9b013027
[ "Apache-2.0" ]
null
null
null
defmodule Mix.Tasks.Subscriber.ListInTopic do use CloudPubsubSamples.Command @shortdoc "Lists Cloud Pub/Sub subscriptions for a topic" @moduledoc """ Lists the Google Cloud Pub/Sub subscriptions for the current project. The topic must exist in the current project. ## Usage mix subscriber.list_in...
25.964286
76
0.702889
73c184743c68342976dad0c90f1754694dd4401f
248
ex
Elixir
lib/beam/ksp/coprehensions.ex
itsemilano/beam
afa79d7f31d2e2d4ded381656735d08cabd4f9ea
[ "Apache-2.0" ]
null
null
null
lib/beam/ksp/coprehensions.ex
itsemilano/beam
afa79d7f31d2e2d4ded381656735d08cabd4f9ea
[ "Apache-2.0" ]
null
null
null
lib/beam/ksp/coprehensions.ex
itsemilano/beam
afa79d7f31d2e2d4ded381656735d08cabd4f9ea
[ "Apache-2.0" ]
null
null
null
defmodule Comprehentions do def start1 do for n <- [2, 4, 5, 6, 7, 8], do: n * 5 end def start2 do for x <- [2, 4, 6], y <- [3, 5, 9], do: x * y end def start3 do for n <- [1, 2, 3, 4, 5, 6], rem(n, 2) == 0, do: n end end
17.714286
54
0.475806
73c1d33624ec117e10152bf1d20f4ad2c3640974
543
ex
Elixir
test/support/resources/post.ex
kingshalaby1/ash_postgres
4aa76a522b85138860c7ec1f2e1a3d8b8fc833a3
[ "MIT" ]
null
null
null
test/support/resources/post.ex
kingshalaby1/ash_postgres
4aa76a522b85138860c7ec1f2e1a3d8b8fc833a3
[ "MIT" ]
null
null
null
test/support/resources/post.ex
kingshalaby1/ash_postgres
4aa76a522b85138860c7ec1f2e1a3d8b8fc833a3
[ "MIT" ]
null
null
null
defmodule AshPostgres.Test.Post do @moduledoc false use Ash.Resource, data_layer: AshPostgres.DataLayer postgres do table "posts" repo AshPostgres.TestRepo end actions do read(:read) create(:create) end attributes do attribute(:id, :uuid, primary_key?: true, default: &Ecto.UUID....
20.111111
78
0.701657
73c1db3bc8be10e9f2083f6897c03a3741ce432c
631
exs
Elixir
test/test_helper.exs
doyobi/livebook
136d5039c42b406dd0b31aea188deb4fce3b1328
[ "Apache-2.0" ]
1
2022-02-16T09:13:27.000Z
2022-02-16T09:13:27.000Z
test/test_helper.exs
doyobi/livebook
136d5039c42b406dd0b31aea188deb4fce3b1328
[ "Apache-2.0" ]
null
null
null
test/test_helper.exs
doyobi/livebook
136d5039c42b406dd0b31aea188deb4fce3b1328
[ "Apache-2.0" ]
null
null
null
# Start manager on the current node and configure it not to # terminate automatically, so there is no race condition # when starting/stopping Embedded runtimes in parallel Livebook.Runtime.ErlDist.NodeManager.start( auto_termination: false, unload_modules_on_termination: false ) # Disable autosaving Livebook.Stora...
35.055556
90
0.787639
73c1eb56db9bec7ff3cc684dad31cb1c03f54853
333
ex
Elixir
lib/contento_web/router.ex
reubenbrown13/contento
979831bc9052f810409e969f4d11f15c0e40bb55
[ "MIT" ]
95
2017-10-03T19:21:57.000Z
2021-02-15T12:37:37.000Z
lib/contento_web/router.ex
reubenbrown13/contento
979831bc9052f810409e969f4d11f15c0e40bb55
[ "MIT" ]
20
2017-10-10T12:26:54.000Z
2020-11-12T11:30:36.000Z
lib/contento_web/router.ex
reubenbrown13/contento
979831bc9052f810409e969f4d11f15c0e40bb55
[ "MIT" ]
17
2017-10-04T07:59:40.000Z
2022-02-09T20:10:09.000Z
defmodule ContentoWeb.Router do use ContentoWeb, :router pipeline :browser do plug :accepts, ["html"] plug :fetch_session plug :fetch_flash plug :protect_from_forgery plug :put_secure_browser_headers end scope "/", ContentoWeb do pipe_through :browser get "/", PageController, :ind...
18.5
36
0.702703
73c1feeec02b2c50fde2f0a2ba917dc27701bd21
1,735
ex
Elixir
web/web.ex
llxff/projects_statistics
343508fc8fc8e9238a546f5230fff50e21126417
[ "Unlicense" ]
null
null
null
web/web.ex
llxff/projects_statistics
343508fc8fc8e9238a546f5230fff50e21126417
[ "Unlicense" ]
null
null
null
web/web.ex
llxff/projects_statistics
343508fc8fc8e9238a546f5230fff50e21126417
[ "Unlicense" ]
null
null
null
defmodule ProjectsStatistics.Web do @moduledoc """ A module that keeps using definitions for controllers, views and so on. This can be used in your application as: use ProjectsStatistics.Web, :controller use ProjectsStatistics.Web, :view The definitions below will be executed for every view, ...
21.158537
88
0.689337
73c21c43c904ff1066b3c7908cec268ea06680a4
274
exs
Elixir
priv/repo/migrations/20170514103042_add_taglist_to_articles.exs
ludwikbukowski/recipes
cac5711d32874c3011da8da3329b70d0e28e725e
[ "MIT" ]
4
2019-02-11T12:15:36.000Z
2021-03-22T16:23:47.000Z
priv/repo/migrations/20170514103042_add_taglist_to_articles.exs
ludwikbukowski/recipes
cac5711d32874c3011da8da3329b70d0e28e725e
[ "MIT" ]
null
null
null
priv/repo/migrations/20170514103042_add_taglist_to_articles.exs
ludwikbukowski/recipes
cac5711d32874c3011da8da3329b70d0e28e725e
[ "MIT" ]
null
null
null
defmodule EmpexCookbook.Repo.Migrations.AddTaglistToArticles do use Ecto.Migration def change do alter table(:articles) do add(:tag_list, {:array, :string}) end execute("CREATE INDEX article_tag_list_index ON articles USING GIN(tag_list)") end end
22.833333
82
0.737226
73c222cef6513a6bdcfd722b513aadc24ae37285
111
exs
Elixir
test/configs/bad_config_from.exs
silvagustin/ueberauth_auth0
3070510024bfcb1545dbd3e26665d4bb8b1404df
[ "MIT" ]
null
null
null
test/configs/bad_config_from.exs
silvagustin/ueberauth_auth0
3070510024bfcb1545dbd3e26665d4bb8b1404df
[ "MIT" ]
null
null
null
test/configs/bad_config_from.exs
silvagustin/ueberauth_auth0
3070510024bfcb1545dbd3e26665d4bb8b1404df
[ "MIT" ]
null
null
null
import Config config :ueberauth, Ueberauth.Strategy.Auth0.OAuth, config_from: Ueberauth.Support.BadConfigFrom
27.75
95
0.846847
73c245337558e2b6ac63fb15c4f45100caa5524e
10,728
ex
Elixir
test/event_store/support/subscription_test_case.ex
rsataev/Commanded-CQRS-ES
0fd3758e5945f2bd8736619c48f212cc2bf552ad
[ "MIT" ]
null
null
null
test/event_store/support/subscription_test_case.ex
rsataev/Commanded-CQRS-ES
0fd3758e5945f2bd8736619c48f212cc2bf552ad
[ "MIT" ]
null
null
null
test/event_store/support/subscription_test_case.ex
rsataev/Commanded-CQRS-ES
0fd3758e5945f2bd8736619c48f212cc2bf552ad
[ "MIT" ]
null
null
null
defmodule Commanded.EventStore.SubscriptionTestCase do import Commanded.SharedTestCase define_tests do alias Commanded.EventStore alias Commanded.EventStore.{EventData, Subscriber} alias Commanded.Helpers.{ProcessHelper, Wait} defmodule BankAccountOpened do defstruct [:account_number, :initi...
35.289474
96
0.662938
73c26bb29786a5784c734969c73c83b01c4a820a
730
ex
Elixir
local/start_script.ex
wses-yoshida/antikythera
e108e59d2339edd0b0fad31ad4f41f56df45be55
[ "Apache-2.0" ]
null
null
null
local/start_script.ex
wses-yoshida/antikythera
e108e59d2339edd0b0fad31ad4f41f56df45be55
[ "Apache-2.0" ]
null
null
null
local/start_script.ex
wses-yoshida/antikythera
e108e59d2339edd0b0fad31ad4f41f56df45be55
[ "Apache-2.0" ]
null
null
null
# Copyright(c) 2015-2019 ACCESS CO., LTD. All rights reserved. use Croma defmodule AntikytheraLocal.StartScript do alias Antikythera.Env alias AntikytheraLocal.{Cmd, NodeName} defun run(command :: v[String.t], release_dir :: Path.t) :: :ok do env = [ {"ANTIKYTHERA_RUNTIME_ENV", "local" ...
36.5
114
0.523288
73c27209f4b5267519ab7b4d3ff848806a6ce7fe
458
exs
Elixir
shoujo/mix.exs
queer/mahou
09b63a2f7431a7b3364ce81dac35114ea508942f
[ "BSD-3-Clause" ]
37
2021-01-31T17:43:03.000Z
2021-11-17T12:29:00.000Z
shoujo/mix.exs
queer/mahou
09b63a2f7431a7b3364ce81dac35114ea508942f
[ "BSD-3-Clause" ]
4
2021-05-29T04:54:28.000Z
2021-06-26T20:40:48.000Z
shoujo/mix.exs
queer/mahou
09b63a2f7431a7b3364ce81dac35114ea508942f
[ "BSD-3-Clause" ]
null
null
null
defmodule Shoujo.MixProject do use Mix.Project def project do [ app: :shoujo, version: "0.1.0", elixir: "~> 1.11", start_permanent: Mix.env() == :prod, deps: deps() ] end def application do [ extra_applications: [:logger], mod: {Shoujo.Application, []} ...
15.793103
42
0.495633
73c27c55b983655bf68fcc10fb8ee54a60af5ddc
1,544
exs
Elixir
lib/iex/test/iex/server_test.exs
QuinnWilton/elixir
e42e3e55ca1561fe56b58d6f51c7b0faae6a7a1e
[ "Apache-2.0" ]
null
null
null
lib/iex/test/iex/server_test.exs
QuinnWilton/elixir
e42e3e55ca1561fe56b58d6f51c7b0faae6a7a1e
[ "Apache-2.0" ]
null
null
null
lib/iex/test/iex/server_test.exs
QuinnWilton/elixir
e42e3e55ca1561fe56b58d6f51c7b0faae6a7a1e
[ "Apache-2.0" ]
null
null
null
Code.require_file "../test_helper.exs", __DIR__ defmodule IEx.ServerTest do use IEx.Case setup do IEx.Options.set :colors, enabled: false :ok end # Options test "prefix option" do assert String.contains? capture_io(fn -> boot([prefix: "pry"]) end), "pry(1)> " end test "delegate_...
23.393939
72
0.612694
73c29084d4f93ed235f9f6df4fcedc0c71698bde
1,419
exs
Elixir
issues/test/table_formatter_test.exs
benjohns1/elixer-app
6e866ec084c5e75442c0b70f66e35f61b5b74d34
[ "MIT" ]
null
null
null
issues/test/table_formatter_test.exs
benjohns1/elixer-app
6e866ec084c5e75442c0b70f66e35f61b5b74d34
[ "MIT" ]
null
null
null
issues/test/table_formatter_test.exs
benjohns1/elixer-app
6e866ec084c5e75442c0b70f66e35f61b5b74d34
[ "MIT" ]
null
null
null
defmodule TableFormatterTest do use ExUnit.Case import ExUnit.CaptureIO alias Issues.TableFormatter, as: TF def simple_test_data do [ [ c1: "r1 c1", c2: "r1 c2", c3: "r1 c3", c4: "r1+++c4" ], [ c1: "r2 c1", c2: "r2 c2", c3: "r2 c3", c4: "r2 c4" ], [ c1: "r3 c1", c2: "r3 c2", c3: "r3 c3"...
31.533333
92
0.546159
73c2ae85609be26da61a8a5806cd26ae30c849ef
565
ex
Elixir
apps/artemis_web/lib/artemis_web/guardian.ex
artemis-platform/artemis_teams
9930c3d9528e37b76f0525390e32b66eed7eadde
[ "MIT" ]
2
2020-04-23T02:29:18.000Z
2020-07-07T13:13:17.000Z
apps/artemis_web/lib/artemis_web/guardian.ex
chrislaskey/artemis_teams
9930c3d9528e37b76f0525390e32b66eed7eadde
[ "MIT" ]
4
2020-04-26T20:35:36.000Z
2020-11-10T22:13:19.000Z
apps/artemis_web/lib/artemis_web/guardian.ex
chrislaskey/artemis_teams
9930c3d9528e37b76f0525390e32b66eed7eadde
[ "MIT" ]
null
null
null
defmodule ArtemisWeb.Guardian do use Guardian, otp_app: :artemis_web alias Artemis.GetUser alias Artemis.GetSystemUser def subject_for_token(%{id: id}, _claims) do {:ok, to_string(id)} end def subject_for_token(_, _) do {:error, "Error creating token"} end def resource_from_claims(%{"sub" =>...
21.730769
82
0.693805
73c2b732d69e333b6340028a9d67397966c5cfe9
2,948
exs
Elixir
apps/api_web/test/api_web/event_stream/diff_test.exs
fjlanasa/api
c39bc393aea572bfb81754b2ea1adf9dda9ce24a
[ "MIT" ]
62
2019-01-17T12:34:39.000Z
2022-03-20T21:49:47.000Z
apps/api_web/test/api_web/event_stream/diff_test.exs
fjlanasa/api
c39bc393aea572bfb81754b2ea1adf9dda9ce24a
[ "MIT" ]
375
2019-02-13T15:30:50.000Z
2022-03-30T18:50:41.000Z
apps/api_web/test/api_web/event_stream/diff_test.exs
fjlanasa/api
c39bc393aea572bfb81754b2ea1adf9dda9ce24a
[ "MIT" ]
14
2019-01-16T19:35:57.000Z
2022-02-26T18:55:54.000Z
defmodule ApiWeb.EventStream.DiffTest do @moduledoc false use ExUnit.Case, async: true use ExUnitProperties import ApiWeb.EventStream.Diff defp item(id, opts \\ []) do type = opts[:type] || "item" attributes = Map.new(Keyword.delete(opts, :type)) %{ "type" => type, "id" => id, ...
24.363636
87
0.446404
73c2bbfe4b4f9b8f119d9772c7284f5ae93f423b
76
exs
Elixir
test/views/page_view_test.exs
PandemicPlayers/pandemic-server
39ce8c12b5f08be7dc66623a69423265f01d23e1
[ "MIT" ]
null
null
null
test/views/page_view_test.exs
PandemicPlayers/pandemic-server
39ce8c12b5f08be7dc66623a69423265f01d23e1
[ "MIT" ]
null
null
null
test/views/page_view_test.exs
PandemicPlayers/pandemic-server
39ce8c12b5f08be7dc66623a69423265f01d23e1
[ "MIT" ]
null
null
null
defmodule Pandemic.PageViewTest do use Pandemic.ConnCase, async: true end
19
36
0.815789
73c2be15281611c90f81354d0bfe5e26e81ca835
2,723
exs
Elixir
test/suite/draft6/any_of_test.exs
depressed-pho/xema
56de4a5d3b3f37827c70f6052f895c59feb0bb51
[ "MIT" ]
null
null
null
test/suite/draft6/any_of_test.exs
depressed-pho/xema
56de4a5d3b3f37827c70f6052f895c59feb0bb51
[ "MIT" ]
null
null
null
test/suite/draft6/any_of_test.exs
depressed-pho/xema
56de4a5d3b3f37827c70f6052f895c59feb0bb51
[ "MIT" ]
null
null
null
defmodule Draft6.AnyOfTest do use ExUnit.Case, async: true import Xema, only: [valid?: 2] describe "anyOf" do setup do %{schema: Xema.new(any_of: [:integer, [minimum: 2]])} end test "first anyOf valid", %{schema: schema} do data = 1 assert valid?(schema, data) end test "s...
22.319672
81
0.562982
73c2cb891da4305259448e21495de2157396f746
2,160
exs
Elixir
test/paddington/configuration_test.exs
lucidstack/paddington
24e7709e33d096d7f0d9c5a6e58401b8c6806bcc
[ "Apache-2.0" ]
6
2016-04-09T00:13:20.000Z
2019-04-15T11:47:59.000Z
test/paddington/configuration_test.exs
lucidstack/paddington
24e7709e33d096d7f0d9c5a6e58401b8c6806bcc
[ "Apache-2.0" ]
1
2018-03-19T00:08:52.000Z
2018-03-19T00:08:52.000Z
test/paddington/configuration_test.exs
lucidstack/paddington
24e7709e33d096d7f0d9c5a6e58401b8c6806bcc
[ "Apache-2.0" ]
1
2018-03-18T23:56:29.000Z
2018-03-18T23:56:29.000Z
defmodule PaddingtonConfigurationTest do import Paddington.Configuration use ExUnit.Case, async: false import Mock @yaml_mock %{"device" => "Launchpad Mini", "applications" => ["iTunes", "Finder"]} test "load/1 returns {:ok, %Configuration{}} from a YAML configuration file" do with_mock YamlElixir, [rea...
40.754717
84
0.681019
73c2ce8c1e7b61c5cc30d923ccdf75354f468e25
3,737
ex
Elixir
backend/lib/getaways/vacation.ex
abeyonalaja/pragstudio-unpacked-graphql-code
1b0a79d62b624208ffc85f94c1d59ca3d3dab044
[ "Unlicense" ]
null
null
null
backend/lib/getaways/vacation.ex
abeyonalaja/pragstudio-unpacked-graphql-code
1b0a79d62b624208ffc85f94c1d59ca3d3dab044
[ "Unlicense" ]
2
2020-07-17T17:34:46.000Z
2021-03-09T11:31:50.000Z
backend/lib/getaways/vacation.ex
abeyonalaja/pragstudio-unpacked-graphql-code
1b0a79d62b624208ffc85f94c1d59ca3d3dab044
[ "Unlicense" ]
null
null
null
defmodule Getaways.Vacation do @moduledoc """ The Vacation context: public interface for finding, booking, and reviewing vacation places. """ import Ecto.Query, warn: false alias Getaways.Repo alias Getaways.Vacation.{Place, Booking, Review} alias Getaways.Accounts.User @doc """ Returns the place...
23.503145
100
0.605834
73c2d05f622c96c4fe3da578c582390eedb78d29
564
ex
Elixir
plugins/ucc_chat/lib/ucc_chat_web/controllers/home_controller.ex
josephkabraham/ucx_ucc
0dbd9e3eb5940336b4870cff033482ceba5f6ee7
[ "MIT" ]
null
null
null
plugins/ucc_chat/lib/ucc_chat_web/controllers/home_controller.ex
josephkabraham/ucx_ucc
0dbd9e3eb5940336b4870cff033482ceba5f6ee7
[ "MIT" ]
null
null
null
plugins/ucc_chat/lib/ucc_chat_web/controllers/home_controller.ex
josephkabraham/ucx_ucc
0dbd9e3eb5940336b4870cff033482ceba5f6ee7
[ "MIT" ]
null
null
null
defmodule UccChatWeb.HomeController do use UccChatWeb, :controller require Logger alias UccChat.{ChatDat} alias UccChat.ServiceHelpers, as: Helpers def index(conn, _params) do case Helpers.get_user(Coherence.current_user(conn) |> Map.get(:id)) do nil -> UcxUccWeb.Coherence.SessionController...
26.857143
74
0.657801
73c2d5ae3a37c9a13817e68caec312ae9cac9c06
4,317
ex
Elixir
lib/plaid/transactions.ex
AlchemyFintech/plaid-elixir
35ab2cfe61827cd11c98ceb8f52406d879c0d7a8
[ "MIT" ]
null
null
null
lib/plaid/transactions.ex
AlchemyFintech/plaid-elixir
35ab2cfe61827cd11c98ceb8f52406d879c0d7a8
[ "MIT" ]
null
null
null
lib/plaid/transactions.ex
AlchemyFintech/plaid-elixir
35ab2cfe61827cd11c98ceb8f52406d879c0d7a8
[ "MIT" ]
null
null
null
defmodule Plaid.Transactions do @moduledoc """ Functions for Plaid `transactions` endpoint. """ import Plaid, only: [make_request_with_cred: 4, validate_cred: 1] alias Plaid.Utils @derive Jason.Encoder defstruct accounts: [], item: nil, total_transactions: nil, transactions: [], request_id: nil @typ...
28.215686
95
0.525828
73c2d980c5b8d0195bcbcf28f7e2d462f3085d69
829
ex
Elixir
test/support/endpoint.ex
gjacobrobertson/phoenix_live_view
459fd4939126edeaad673277791d460028bdb102
[ "MIT" ]
1
2020-12-23T18:28:30.000Z
2020-12-23T18:28:30.000Z
test/support/endpoint.ex
alvises/phoenix_live_view
37e32ffe9c59ca4e1176dfa878dbd8f41a002508
[ "MIT" ]
null
null
null
test/support/endpoint.ex
alvises/phoenix_live_view
37e32ffe9c59ca4e1176dfa878dbd8f41a002508
[ "MIT" ]
1
2020-09-23T17:11:30.000Z
2020-09-23T17:11:30.000Z
defmodule Phoenix.LiveViewTest.Endpoint do def url(), do: "http://localhost:4000" def instrument(_, _, _, func), do: func.() def script_name(), do: [] def config(:live_view), do: [signing_salt: "112345678212345678312345678412"] def config(:secret_key_base), do: String.duplicate("57689", 50) def config(:cach...
34.541667
91
0.665862
73c2dcb61da595af6d9db198ae250f121392648b
13,654
ex
Elixir
lib/drivers/driver.ex
pringlized/Elber
81394ad29b7a67ac9b8d3e249cde252ec5c44697
[ "MIT" ]
1
2019-06-20T07:06:16.000Z
2019-06-20T07:06:16.000Z
lib/drivers/driver.ex
pringlized/Elber
81394ad29b7a67ac9b8d3e249cde252ec5c44697
[ "MIT" ]
null
null
null
lib/drivers/driver.ex
pringlized/Elber
81394ad29b7a67ac9b8d3e249cde252ec5c44697
[ "MIT" ]
null
null
null
defmodule Elber.Drivers.Driver do use GenServer require Logger alias Elber.Zones.Zone alias Elber.Server, as: CityServer def start_link(state) do log(state, :info, "Starting driver process") GenServer.start_link(__MODULE__, [state], []) end def state(driv...
31.827506
107
0.523876
73c2e168f15ade7949290cb13f2bfa3ea2bb6e9f
1,743
ex
Elixir
lib/mop8/adapter/word_map_store.ex
mopp/mop8
e256f0fe3b6bcb7c2df2482d4f09d9c972e9ba04
[ "MIT" ]
null
null
null
lib/mop8/adapter/word_map_store.ex
mopp/mop8
e256f0fe3b6bcb7c2df2482d4f09d9c972e9ba04
[ "MIT" ]
null
null
null
lib/mop8/adapter/word_map_store.ex
mopp/mop8
e256f0fe3b6bcb7c2df2482d4f09d9c972e9ba04
[ "MIT" ]
null
null
null
defmodule Mop8.Adapter.WordMapStore do alias Mop8.Bot.WordMap @enforce_keys [:filepath, :word_map] defstruct [:filepath, :word_map] @opaque t :: %__MODULE__{ filepath: Path.t(), word_map: nil | WordMap.t() } @spec new(Path.t()) :: t() def new(filepath) do %__MODULE_...
25.632353
76
0.582903
73c2e5c22b36ea79e813350f691837efa6b524b4
125
ex
Elixir
lib/types/get_parameter_attributes_response.ex
smiyabe/cwmp_ex
9db322497aa3208b5985ccf496ada5286cde3925
[ "Artistic-2.0" ]
3
2017-11-29T05:07:35.000Z
2019-12-18T17:16:41.000Z
lib/types/get_parameter_attributes_response.ex
smiyabe/cwmp_ex
9db322497aa3208b5985ccf496ada5286cde3925
[ "Artistic-2.0" ]
1
2021-12-02T19:35:28.000Z
2022-03-29T09:40:52.000Z
lib/types/get_parameter_attributes_response.ex
smiyabe/cwmp_ex
9db322497aa3208b5985ccf496ada5286cde3925
[ "Artistic-2.0" ]
2
2017-11-29T05:07:30.000Z
2020-11-10T07:10:42.000Z
defmodule CWMP.Protocol.Messages.GetParameterAttributesResponse do @derive [Poison.Encoder] defstruct parameters: [] end
25
66
0.816
73c2ecd3ae923f4fb6ddf099abe632c6546d5da9
2,220
ex
Elixir
lib/scenic/primitive/group.ex
PragTob/scenic
7e5193c2a0b86768937e5bbd7c22f00544d26048
[ "Apache-2.0" ]
null
null
null
lib/scenic/primitive/group.ex
PragTob/scenic
7e5193c2a0b86768937e5bbd7c22f00544d26048
[ "Apache-2.0" ]
null
null
null
lib/scenic/primitive/group.ex
PragTob/scenic
7e5193c2a0b86768937e5bbd7c22f00544d26048
[ "Apache-2.0" ]
null
null
null
# # Created by Boyd Multerer on 5/6/17. # Copyright © 2017 Kry10 Industries. All rights reserved. # defmodule Scenic.Primitive.Group do use Scenic.Primitive alias Scenic.Primitive # import IEx # ============================================================================ # data verification and serializ...
28.101266
101
0.435586
73c31989ff27acafb59aa4c00cc9549051d6a7d2
66,896
ex
Elixir
lib/ecto/query/planner.ex
begedin/ecto
01e259330f6cc5f689280e501866e31904576737
[ "Apache-2.0" ]
2
2021-02-25T15:51:16.000Z
2021-02-25T18:42:35.000Z
lib/ecto/query/planner.ex
begedin/ecto
01e259330f6cc5f689280e501866e31904576737
[ "Apache-2.0" ]
null
null
null
lib/ecto/query/planner.ex
begedin/ecto
01e259330f6cc5f689280e501866e31904576737
[ "Apache-2.0" ]
1
2018-06-18T14:47:58.000Z
2018-06-18T14:47:58.000Z
defmodule Ecto.Query.Planner do # Normalizes a query and its parameters. @moduledoc false alias Ecto.Query.{BooleanExpr, DynamicExpr, FromExpr, JoinExpr, QueryExpr, SelectExpr} if map_size(%Ecto.Query{}) != 21 do raise "Ecto.Query match out of date in builder" end @parent_as __MODULE__ @doc """ ...
36.979547
147
0.630381
73c3262fb1f1d9fe7e6b4ec6d2cbf1b78cf41fd0
28,896
exs
Elixir
lib/iex/test/iex/helpers_test.exs
tmbb/exdocs_makedown_demo
6a0039c54d2fa10d79c080efcef8d70d359678f8
[ "Apache-2.0" ]
null
null
null
lib/iex/test/iex/helpers_test.exs
tmbb/exdocs_makedown_demo
6a0039c54d2fa10d79c080efcef8d70d359678f8
[ "Apache-2.0" ]
null
null
null
lib/iex/test/iex/helpers_test.exs
tmbb/exdocs_makedown_demo
6a0039c54d2fa10d79c080efcef8d70d359678f8
[ "Apache-2.0" ]
null
null
null
Code.require_file "../test_helper.exs", __DIR__ defmodule IEx.HelpersTest do use IEx.Case import IEx.Helpers describe "whereami" do test "is disabled by default" do assert capture_iex("whereami()") =~ "Pry session is not currently enabled" end test "shows current location for cu...
32.986301
153
0.596899
73c365daa1f1f150404674b12e10af8913541705
114
exs
Elixir
test/breadboard/switch_test.exs
henrythebuilder/breadboard
f8e1378de6ad3984c7101e40bd41c81285b345c0
[ "Apache-2.0" ]
null
null
null
test/breadboard/switch_test.exs
henrythebuilder/breadboard
f8e1378de6ad3984c7101e40bd41c81285b345c0
[ "Apache-2.0" ]
null
null
null
test/breadboard/switch_test.exs
henrythebuilder/breadboard
f8e1378de6ad3984c7101e40bd41c81285b345c0
[ "Apache-2.0" ]
null
null
null
defmodule SwitchTest do use ExUnit.Case doctest Breadboard.Switch end # SPDX-License-Identifier: Apache-2.0
14.25
37
0.780702
73c3737ca64969621cfd0fb2ee18864d69717439
3,878
exs
Elixir
test/credo/code/parameters_test.exs
codeclimate-community/credo
b960a25d604b4499a2577321f9d61b39dc4b0437
[ "MIT" ]
null
null
null
test/credo/code/parameters_test.exs
codeclimate-community/credo
b960a25d604b4499a2577321f9d61b39dc4b0437
[ "MIT" ]
null
null
null
test/credo/code/parameters_test.exs
codeclimate-community/credo
b960a25d604b4499a2577321f9d61b39dc4b0437
[ "MIT" ]
1
2020-09-25T11:48:49.000Z
2020-09-25T11:48:49.000Z
defmodule Credo.Code.ParametersTest do use Credo.TestHelper alias Credo.Code.Parameters # # names # test "returns the correct parameter names" do {:ok, ast} = """ def some_function(p1, p2, p3, p4, p5), do: :ok """ |> Code.string_to_quoted() assert [:p1, :p2, :p3, :p4, :...
21.786517
93
0.477824
73c380a157c218fbd389f3f2be2e87e6d33e8968
12,187
ex
Elixir
lib/openpgp_tools/packet.ex
marcobellaccini/openpgp_tools
dd3c6559c142f1c2fe028242cc60527e1ff24974
[ "Apache-2.0" ]
4
2019-06-13T22:04:57.000Z
2020-03-06T10:22:59.000Z
lib/openpgp_tools/packet.ex
marcobellaccini/openpgp_tools
dd3c6559c142f1c2fe028242cc60527e1ff24974
[ "Apache-2.0" ]
null
null
null
lib/openpgp_tools/packet.ex
marcobellaccini/openpgp_tools
dd3c6559c142f1c2fe028242cc60527e1ff24974
[ "Apache-2.0" ]
null
null
null
defmodule OpenpgpTools.Packet do use Private use Bitwise # Packet types map attribute. # See: https://tools.ietf.org/html/rfc4880#section-4.3 @ptypes %{ 0 => :reserved, # Reserved 1 => :pkesk, # Public-Key Encrypted Session Key Packet 2 => :sig, # Signature Packet 3 => :skesk, # Symmetric-Key...
35.530612
82
0.625174
73c389229beb7f9b7f53131a896c43f1ef0c6dff
2,009
ex
Elixir
apps/ewallet_api/lib/ewallet_api/v1/controllers/pages/verify_email_controller.ex
AndonMitev/EWallet
898cde38933d6f134734528b3e594eedf5fa50f3
[ "Apache-2.0" ]
322
2018-02-28T07:38:44.000Z
2020-05-27T23:09:55.000Z
apps/ewallet_api/lib/ewallet_api/v1/controllers/pages/verify_email_controller.ex
AndonMitev/EWallet
898cde38933d6f134734528b3e594eedf5fa50f3
[ "Apache-2.0" ]
643
2018-02-28T12:05:20.000Z
2020-05-22T08:34:38.000Z
apps/ewallet_api/lib/ewallet_api/v1/controllers/pages/verify_email_controller.ex
AndonMitev/EWallet
898cde38933d6f134734528b3e594eedf5fa50f3
[ "Apache-2.0" ]
63
2018-02-28T10:57:06.000Z
2020-05-27T23:10:38.000Z
# Copyright 2018-2019 OmiseGO Pte Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
32.934426
96
0.700348
73c39c2e4690762d53651dc4e547445f4f1e62b9
2,145
ex
Elixir
lib/harald/host/l2cap.ex
RicardoTrindade/harald
3f56003265c29af0780730eb538183b50e55df2f
[ "MIT" ]
null
null
null
lib/harald/host/l2cap.ex
RicardoTrindade/harald
3f56003265c29af0780730eb538183b50e55df2f
[ "MIT" ]
null
null
null
lib/harald/host/l2cap.ex
RicardoTrindade/harald
3f56003265c29af0780730eb538183b50e55df2f
[ "MIT" ]
null
null
null
defmodule Harald.Host.L2CAP do @moduledoc """ Reference: version 5.2, vol 3, part a. """ alias Harald.Host.ATT @enforce_keys [ :length, :channel, :information_payload ] defstruct [ :length, :channel, :information_payload ] def decode( << length::little-siz...
27.151899
100
0.664802
73c39ff0d21e10e1b169db6be92ad56282df1ee8
1,605
exs
Elixir
test/movement/builders/revision_merge_test.exs
isshindev/accent
ae4c13139b0a0dfd64ff536b94c940a4e2862150
[ "BSD-3-Clause" ]
806
2018-04-07T20:40:33.000Z
2022-03-30T01:39:57.000Z
test/movement/builders/revision_merge_test.exs
isshindev/accent
ae4c13139b0a0dfd64ff536b94c940a4e2862150
[ "BSD-3-Clause" ]
194
2018-04-07T13:49:37.000Z
2022-03-30T19:58:45.000Z
test/movement/builders/revision_merge_test.exs
isshindev/accent
ae4c13139b0a0dfd64ff536b94c940a4e2862150
[ "BSD-3-Clause" ]
89
2018-04-09T13:55:49.000Z
2022-03-24T07:09:31.000Z
defmodule AccentTest.Movement.Builders.RevisionMerge do use Accent.RepoCase alias Accent.{ Document, Language, ProjectCreator, Repo, Translation, User } alias Movement.Builders.RevisionMerge, as: RevisionMergeBuilder alias Movement.Context @user %User{email: "test@test.com"} te...
32.1
131
0.654829
73c3ae6e54dbf40395e5c6d416776981444d2348
2,100
exs
Elixir
test/mix/tasks/ecto.rollback_test.exs
LostKobrakai/ecto_sql
99f3de33c48d6dee83346d971a448ec7e24cd6bf
[ "Apache-2.0" ]
null
null
null
test/mix/tasks/ecto.rollback_test.exs
LostKobrakai/ecto_sql
99f3de33c48d6dee83346d971a448ec7e24cd6bf
[ "Apache-2.0" ]
null
null
null
test/mix/tasks/ecto.rollback_test.exs
LostKobrakai/ecto_sql
99f3de33c48d6dee83346d971a448ec7e24cd6bf
[ "Apache-2.0" ]
null
null
null
defmodule Mix.Tasks.Ecto.RollbackTest do use ExUnit.Case import Mix.Tasks.Ecto.Rollback, only: [run: 2] import Support.FileHelpers @migrations_path Path.join([tmp_path(), inspect(Ecto.Migrate), "migrations"]) setup do File.mkdir_p!(@migrations_path) :ok end defmodule Repo do def start_link...
22.580645
85
0.60619
73c3fe7c77a7060ee278d10755b6d719881ee2f5
197
exs
Elixir
test/portal_web/controllers/page_controller_test.exs
auth0-samples/auth0-elixir-single-page-app
05c344e828ecf5ac716c5537b0e5760571f0574f
[ "MIT" ]
6
2018-07-12T20:50:21.000Z
2021-04-10T19:53:10.000Z
test/portal_web/controllers/page_controller_test.exs
auth0-samples/auth0-elixir-single-page-app
05c344e828ecf5ac716c5537b0e5760571f0574f
[ "MIT" ]
null
null
null
test/portal_web/controllers/page_controller_test.exs
auth0-samples/auth0-elixir-single-page-app
05c344e828ecf5ac716c5537b0e5760571f0574f
[ "MIT" ]
2
2018-01-30T22:52:01.000Z
2018-02-05T12:55:28.000Z
defmodule PortalWeb.PageControllerTest do use PortalWeb.ConnCase test "GET /", %{conn: conn} do conn = get conn, "/" assert html_response(conn, 200) =~ "Welcome to Phoenix!" end end
21.888889
60
0.680203
73c41aea35aa9603cbfb06d23723c2f4875a2e4b
1,099
ex
Elixir
lib/crit_web/controllers/reports/animal_report_controller.ex
brownt23/crit19
c45c7b3ae580c193168d83144da0eeb9bc91c8a9
[ "MIT" ]
6
2019-07-16T19:31:23.000Z
2021-06-05T19:01:05.000Z
lib/crit_web/controllers/reports/animal_report_controller.ex
brownt23/crit19
c45c7b3ae580c193168d83144da0eeb9bc91c8a9
[ "MIT" ]
null
null
null
lib/crit_web/controllers/reports/animal_report_controller.ex
brownt23/crit19
c45c7b3ae580c193168d83144da0eeb9bc91c8a9
[ "MIT" ]
3
2020-02-24T23:38:27.000Z
2020-08-01T23:50:17.000Z
defmodule CritWeb.Reports.AnimalReportController do use CritWeb, :controller use CritWeb.Controller.Path, :reports_animal_report_path import CritWeb.Plugs.Authorize alias Crit.Servers.Institution alias Ecto.Timespan alias Crit.SqlRows.Reservation alias CritBiz.ViewModels.Reports.Animal IO.puts "need to...
25.55814
62
0.703367
73c46b7f4f0ccc0e034da0552df9cdb98d386581
88
ex
Elixir
lib/keycloak_admin/kc_response.ex
ericacheong/keycloak_admin
ec807ae3cb42ded1388c1a8a1bf307481185e798
[ "MIT" ]
1
2021-08-19T02:44:14.000Z
2021-08-19T02:44:14.000Z
lib/keycloak_admin/kc_response.ex
ericacheong/keycloak_admin
ec807ae3cb42ded1388c1a8a1bf307481185e798
[ "MIT" ]
null
null
null
lib/keycloak_admin/kc_response.ex
ericacheong/keycloak_admin
ec807ae3cb42ded1388c1a8a1bf307481185e798
[ "MIT" ]
1
2021-08-19T06:45:28.000Z
2021-08-19T06:45:28.000Z
defmodule KeycloakAdmin.KcResponse do defstruct [:op, :response, :input, :status] end
22
45
0.761364
73c49abba28fb2c708ca560ddc5fee6b649be6a3
1,618
ex
Elixir
lib/step_flow/metrics/job_instrumenter.ex
media-io/ex_step_flow
07b6fe98399836679728547319c55137a1b5c933
[ "MIT" ]
4
2019-12-07T05:18:26.000Z
2020-11-06T23:28:43.000Z
lib/step_flow/metrics/job_instrumenter.ex
media-io/ex_step_flow
07b6fe98399836679728547319c55137a1b5c933
[ "MIT" ]
53
2020-01-06T11:23:09.000Z
2021-06-25T15:30:07.000Z
lib/step_flow/metrics/job_instrumenter.ex
media-io/ex_step_flow
07b6fe98399836679728547319c55137a1b5c933
[ "MIT" ]
3
2020-01-30T15:37:40.000Z
2020-10-27T14:10:02.000Z
defmodule StepFlow.Metrics.JobInstrumenter do @moduledoc """ Prometheus metrics instrumenter to call jobs metric collectors """ use Prometheus.Metric def setup do Counter.declare( name: :step_flow_jobs_created, help: "Number of created jobs.", labels: [:name] ) Counter.declare(...
21.573333
64
0.621755
73c49afc51840aa56c4348fc880a8a5db840e77a
1,549
ex
Elixir
clients/plus/lib/google_api/plus/v1/model/place_position.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
null
null
null
clients/plus/lib/google_api/plus/v1/model/place_position.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
null
null
null
clients/plus/lib/google_api/plus/v1/model/place_position.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
1
2020-11-10T16:58:27.000Z
2020-11-10T16:58:27.000Z
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
30.372549
77
0.726921
73c49f67ea3d9a3debccd9b75180c763ef8f0331
1,333
ex
Elixir
lib/curator_timeoutable/plug.ex
curator-ex/curator_timeoutable
6d3fe59a78d6df50efb0ffe512b2975988d041e1
[ "MIT" ]
null
null
null
lib/curator_timeoutable/plug.ex
curator-ex/curator_timeoutable
6d3fe59a78d6df50efb0ffe512b2975988d041e1
[ "MIT" ]
null
null
null
lib/curator_timeoutable/plug.ex
curator-ex/curator_timeoutable
6d3fe59a78d6df50efb0ffe512b2975988d041e1
[ "MIT" ]
null
null
null
defmodule CuratorTimeoutable.Plug do @moduledoc """ Use this hook to set a last_request_at timestamp, and signout if it's greater than a configured time """ # import Plug.Conn import CuratorTimeoutable.Keys, only: [timeoutable_key: 1] def init(opts \\ %{}) do opts = Enum.into(opts, %{}) %{ ...
27.770833
101
0.686422
73c4d12e93d962e5feb959ab574d661d56b55d7d
1,081
ex
Elixir
lib/bamboo_smtp_sandbox/sender.ex
fewlinesco/bamboo_smtp-playground
744492672a3975366f22ea98cb9b29b20ee118ad
[ "MIT" ]
null
null
null
lib/bamboo_smtp_sandbox/sender.ex
fewlinesco/bamboo_smtp-playground
744492672a3975366f22ea98cb9b29b20ee118ad
[ "MIT" ]
null
null
null
lib/bamboo_smtp_sandbox/sender.ex
fewlinesco/bamboo_smtp-playground
744492672a3975366f22ea98cb9b29b20ee118ad
[ "MIT" ]
null
null
null
defmodule BambooSMTPSandbox.Sender do @moduledoc """ Functions for delivering emails using BambooSMTP and based on our Email factory. In development environment, the log level should be set to `:debug`, allowing you to see the content of the email you try to send. Feel free to tweaks this module by adding n...
29.216216
84
0.745606
73c4f4caafd40a3c0e5472800e4c4cb4e6f7ea20
375
ex
Elixir
lib/hl7/2.4/datatypes/sps.ex
calvinb/elixir-hl7
5e953fa11f9184857c0ec4dda8662889f35a6bec
[ "Apache-2.0" ]
null
null
null
lib/hl7/2.4/datatypes/sps.ex
calvinb/elixir-hl7
5e953fa11f9184857c0ec4dda8662889f35a6bec
[ "Apache-2.0" ]
null
null
null
lib/hl7/2.4/datatypes/sps.ex
calvinb/elixir-hl7
5e953fa11f9184857c0ec4dda8662889f35a6bec
[ "Apache-2.0" ]
null
null
null
defmodule HL7.V2_4.DataTypes.Sps do @moduledoc false alias HL7.V2_4.{DataTypes} use HL7.DataType, fields: [ specimen_source_name_or_code: DataTypes.Ce, additives: nil, freetext: nil, body_site: DataTypes.Ce, site_modifier: DataTypes.Ce, collection_modifier_method_code: Dat...
23.4375
52
0.693333
73c4fb86b000b4d7d5db2296a716f700c2757c75
1,278
exs
Elixir
test/auto_api/capabilities/maintenance_capability_test.exs
nonninz/auto-api-elixir
53e11542043285e94bbb5a0a3b8ffff0b1b47167
[ "MIT" ]
4
2018-01-19T16:11:10.000Z
2019-12-13T16:35:10.000Z
test/auto_api/capabilities/maintenance_capability_test.exs
nonninz/auto-api-elixir
53e11542043285e94bbb5a0a3b8ffff0b1b47167
[ "MIT" ]
5
2020-07-16T07:20:21.000Z
2021-09-22T10:18:04.000Z
test/auto_api/capabilities/maintenance_capability_test.exs
nonninz/auto-api-elixir
53e11542043285e94bbb5a0a3b8ffff0b1b47167
[ "MIT" ]
1
2021-02-17T18:36:13.000Z
2021-02-17T18:36:13.000Z
# AutoAPI # The MIT License # # Copyright (c) 2018- High-Mobility GmbH (https://high-mobility.com) # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without lim...
47.333333
79
0.78169
73c5139061317facf4f8f5301d7f13e8a76a0d98
132
exs
Elixir
config/config.exs
pulitta/pke
b4227adb4ff992a9a818d280ac033091ccda123e
[ "MIT" ]
null
null
null
config/config.exs
pulitta/pke
b4227adb4ff992a9a818d280ac033091ccda123e
[ "MIT" ]
null
null
null
config/config.exs
pulitta/pke
b4227adb4ff992a9a818d280ac033091ccda123e
[ "MIT" ]
null
null
null
use Mix.Config config :pke, key_path: "test/key.pub", # <- Public key path crypto_module: :crypto_mock # <- Crypto module name
18.857143
52
0.69697
73c537acedae15cb83958d0bacaf01e764af4ecf
475
ex
Elixir
api/lib/core/filters.ex
lucas-angermann/idai-field-web
788c9c9505b6fd12d591345b23053e934f1022d1
[ "Apache-2.0" ]
null
null
null
api/lib/core/filters.ex
lucas-angermann/idai-field-web
788c9c9505b6fd12d591345b23053e934f1022d1
[ "Apache-2.0" ]
null
null
null
api/lib/core/filters.ex
lucas-angermann/idai-field-web
788c9c9505b6fd12d591345b23053e934f1022d1
[ "Apache-2.0" ]
null
null
null
defmodule Api.Core.Filters do def get_filters(), do: [ %{ field: "project", label: %{ de: "Projekt", en: "Project" }, labeled_value: false, size: 1000 }, %{ field: "resource.category", label: %{ de: "Kategorie", en: "Category" }, labeled_value: true, size: ...
18.269231
50
0.551579
73c53c68c7b58d5b2a428d4d6388666d2d0866f1
3,897
ex
Elixir
lib/logger_sigil_l.ex
nottewae/logger_sigil_l
f3b9c6ef13c504aebbef626c284854a7993b2662
[ "MIT" ]
null
null
null
lib/logger_sigil_l.ex
nottewae/logger_sigil_l
f3b9c6ef13c504aebbef626c284854a7993b2662
[ "MIT" ]
null
null
null
lib/logger_sigil_l.ex
nottewae/logger_sigil_l
f3b9c6ef13c504aebbef626c284854a7993b2662
[ "MIT" ]
null
null
null
defmodule LoggerSigilL do @moduledoc """ # LoggerSigilL ```LoggerSigilL``` provides a short syntax for logging while debugging an application, like ```~w(a b c)``` ## Installation Add `logger_sigil_l` to your list of dependencies in `mix.exs`: ```elixir def deps do [ {:logger_si...
32.206612
135
0.554786
73c5713f9d3a75852d83ef6847439c5fe2f34c71
3,203
ex
Elixir
lib/wow/crawler.ex
DrPandemic/expressive-broker
66a8da94ede2c101db9e1841e17898b5bae5df49
[ "Apache-2.0", "CC-BY-4.0", "MIT" ]
null
null
null
lib/wow/crawler.ex
DrPandemic/expressive-broker
66a8da94ede2c101db9e1841e17898b5bae5df49
[ "Apache-2.0", "CC-BY-4.0", "MIT" ]
null
null
null
lib/wow/crawler.ex
DrPandemic/expressive-broker
66a8da94ede2c101db9e1841e17898b5bae5df49
[ "Apache-2.0", "CC-BY-4.0", "MIT" ]
null
null
null
defmodule Wow.Crawler do alias Tesla.Multipart @access_token_url "https://us.battle.net/oauth/token" @spec get_access_token(String.t, String.t) :: String.t def get_access_token(id, secret) do client = Tesla.client(middlewares_basic_auth(id, secret)) mp = Multipart.new |> Multipart.add_field("grant_type...
29.657407
124
0.61817
73c580583262fde74df2bc8dcdf6511a01fc9d85
1,868
ex
Elixir
clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_l_diversity_result.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
null
null
null
clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_l_diversity_result.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
null
null
null
clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_l_diversity_result.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
1
2020-11-10T16:58:27.000Z
2020-11-10T16:58:27.000Z
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
35.245283
185
0.771413
73c5ab1f064a92d149588bb0290f59509aeb2ae6
8,109
exs
Elixir
test/simple_markdown_lazy_renderer_html_test.exs
TypedLambda/SimpleMarkdownEx
ce0d77c9a09c07a6f2a305c75b031c453e37ce79
[ "BSD-2-Clause" ]
null
null
null
test/simple_markdown_lazy_renderer_html_test.exs
TypedLambda/SimpleMarkdownEx
ce0d77c9a09c07a6f2a305c75b031c453e37ce79
[ "BSD-2-Clause" ]
null
null
null
test/simple_markdown_lazy_renderer_html_test.exs
TypedLambda/SimpleMarkdownEx
ce0d77c9a09c07a6f2a305c75b031c453e37ce79
[ "BSD-2-Clause" ]
null
null
null
defmodule SimpleMarkdownLazyRendererHTMLTest do use ExUnit.Case test "rendering line break" do assert "<br>" == [{ :line_break, [] }] |> SimpleMarkdown.ast_to_structs |> SimpleMarkdown.LazyRenderer.HTML.render |> Enum.join end test "rendering header" do assert "<h1>test</h1>" == [{ :he...
85.357895
646
0.618942
73c5c1505e610e4ad59a5ca5e178f278aa0521b9
4,392
ex
Elixir
lib/avrora/resolver.ex
RafaelCamarda/avrora
0771d18a7082992be035b9aaadfe625808b6de6f
[ "MIT" ]
null
null
null
lib/avrora/resolver.ex
RafaelCamarda/avrora
0771d18a7082992be035b9aaadfe625808b6de6f
[ "MIT" ]
null
null
null
lib/avrora/resolver.ex
RafaelCamarda/avrora
0771d18a7082992be035b9aaadfe625808b6de6f
[ "MIT" ]
null
null
null
defmodule Avrora.Resolver do @moduledoc """ Resolves schema names or global ID's to a specific schema files while keeping memory and registry storage up to date. """ require Logger alias Avrora.{Config, Name} @doc """ Resolves schema by all given possible identifiers. It will return first successful...
34.582677
98
0.624317
73c60c55a4ef92e81b7625372ba60bec8d83eed6
3,405
exs
Elixir
spec/membrane/time_spec.exs
eboskma/membrane_core
e216994fe1ba99c5d228a4b0959faa5fabb13b1c
[ "Apache-2.0" ]
null
null
null
spec/membrane/time_spec.exs
eboskma/membrane_core
e216994fe1ba99c5d228a4b0959faa5fabb13b1c
[ "Apache-2.0" ]
null
null
null
spec/membrane/time_spec.exs
eboskma/membrane_core
e216994fe1ba99c5d228a4b0959faa5fabb13b1c
[ "Apache-2.0" ]
null
null
null
defmodule Membrane.TimeSpec do use ESpec, async: true describe ".nanosecond/1" do let :value, do: 123 it "should return given value" do expect(described_module().nanosecond(value())) |> to(eq value()) end end describe ".nanoseconds/1" do let :value, do: 123 it "should return given ...
26.395349
85
0.661674
73c613ae19b0b03b0ce715d62c692af174a8aa47
1,099
ex
Elixir
test/support/channel_case.ex
colindensem/petal-k8s
def9dc653dcae2ef35021d44821e6c69d8744e15
[ "MIT" ]
1
2021-02-12T09:17:38.000Z
2021-02-12T09:17:38.000Z
test/support/channel_case.ex
colindensem/petal-k8s
def9dc653dcae2ef35021d44821e6c69d8744e15
[ "MIT" ]
null
null
null
test/support/channel_case.ex
colindensem/petal-k8s
def9dc653dcae2ef35021d44821e6c69d8744e15
[ "MIT" ]
null
null
null
defmodule PetalWeb.ChannelCase do @moduledoc """ This module defines the test case to be used by channel tests. Such tests rely on `Phoenix.ChannelTest` and also import other functionality to make it easier to build common data structures and query the data layer. Finally, if the test case interacts wit...
26.804878
67
0.724295
73c615e3d347a3165b69dd155efe25a872bddc50
2,211
ex
Elixir
test/support/fwup.ex
axelson/ssh_subsystem_fwup
f04e45cfb81e74c0ea2c0581c1ea3fcf378f5543
[ "Apache-2.0" ]
null
null
null
test/support/fwup.ex
axelson/ssh_subsystem_fwup
f04e45cfb81e74c0ea2c0581c1ea3fcf378f5543
[ "Apache-2.0" ]
null
null
null
test/support/fwup.ex
axelson/ssh_subsystem_fwup
f04e45cfb81e74c0ea2c0581c1ea3fcf378f5543
[ "Apache-2.0" ]
null
null
null
# Code.compiler_options(ignore_module_conflict: true) defmodule SSHSubsystemFwup.Support.Fwup do @moduledoc """ This module is intended to help with testing and development by allowing for "easy" creation of firmware signing keys, and signed/unsigned/corrupted firmware files. It is a thin wrapper around `fw...
25.125
88
0.658073
73c6380f583207dcdb0d8b0180d9d74dbff49ddc
3,192
exs
Elixir
test/day7/internet_protocol_version_7_test.exs
fboyer/advent_of_code_2016
ffe02f093298fa60a5547dc6a9391c1acfb2b325
[ "MIT" ]
null
null
null
test/day7/internet_protocol_version_7_test.exs
fboyer/advent_of_code_2016
ffe02f093298fa60a5547dc6a9391c1acfb2b325
[ "MIT" ]
null
null
null
test/day7/internet_protocol_version_7_test.exs
fboyer/advent_of_code_2016
ffe02f093298fa60a5547dc6a9391c1acfb2b325
[ "MIT" ]
null
null
null
defmodule AdventOfCode2016.InternetProtocolVersion7Test do use ExUnit.Case, async: true doctest AdventOfCode2016.InternetProtocolVersion7 import AdventOfCode2016.InternetProtocolVersion7 describe "day 7 - part 1" do test "can parse an ipv7" do assert parse_ipv7("abba[mnop]qrst") == ["abba", "mnop", ...
35.076923
110
0.587093
73c64d5ae35cbce5a04161762ca5823bd95d867f
759
exs
Elixir
test/automigrate_test.exs
wojtekmach/automigrate
d582e80e7e0928e70e1314ab4580cc998ffa76de
[ "Apache-2.0" ]
1
2018-06-04T02:10:23.000Z
2018-06-04T02:10:23.000Z
test/automigrate_test.exs
wojtekmach/automigrate
d582e80e7e0928e70e1314ab4580cc998ffa76de
[ "Apache-2.0" ]
null
null
null
test/automigrate_test.exs
wojtekmach/automigrate
d582e80e7e0928e70e1314ab4580cc998ffa76de
[ "Apache-2.0" ]
null
null
null
defmodule Post1 do use Ecto.Schema schema "posts" do field :title, :string field :foo, :integer end end defmodule Post2 do use Ecto.Schema schema "posts" do field :title, :string field :bar, :string end end defmodule AutomigrateTest do use ExUnit.Case, async: true setup do File....
21.083333
117
0.667984
73c66f6ed1e92e10f056b4befb6ec1dd1fa888c8
232
exs
Elixir
test/reverso_test.exs
areski/echo-server-elixir
b17768ed9de256aad3b2bfe97cc89a17c4ab8490
[ "MIT" ]
2
2017-03-12T11:55:52.000Z
2017-03-12T23:25:14.000Z
test/reverso_test.exs
areski/echo-server-elixir
b17768ed9de256aad3b2bfe97cc89a17c4ab8490
[ "MIT" ]
null
null
null
test/reverso_test.exs
areski/echo-server-elixir
b17768ed9de256aad3b2bfe97cc89a17c4ab8490
[ "MIT" ]
null
null
null
defmodule ReversoTest do use ExUnit.Case alias Echo.Reverso test "reverse string with reverso method" do assert Reverso.reverso("reverse\n") == "esrever\n" assert Reverso.reverso("reverse") == "esrever\n" end end
19.333333
54
0.706897
73c6732b5cd6973d321f0702dc02bb0ece9fa4f9
2,597
ex
Elixir
lib/Pokedex/moves.ex
MiguelERuiz/pokedex
e7faaa54f6486442a0a3768563d3decf8c37f5b1
[ "MIT" ]
null
null
null
lib/Pokedex/moves.ex
MiguelERuiz/pokedex
e7faaa54f6486442a0a3768563d3decf8c37f5b1
[ "MIT" ]
null
null
null
lib/Pokedex/moves.ex
MiguelERuiz/pokedex
e7faaa54f6486442a0a3768563d3decf8c37f5b1
[ "MIT" ]
null
null
null
defmodule Pokedex.Moves do @moduledoc """ Documentation for https://pokeapi.co/docs/v2.html/#moves-section """ @move_endpoint "/move/" @move_ailment_endpoint "/move-ailment/" @move_battle_style_endpoint "/move-battle-style/" @move_category_endpoint "/move-category/" @move_damage_class_endpoint "/move-d...
32.873418
79
0.74509
73c6abeb0ebfbdb236babd4c40360df17d124ab6
1,396
exs
Elixir
mix.exs
thiamsantos/packages_bot
4e3e3f942c075876c93fc901b3034355a26bd627
[ "Apache-2.0" ]
4
2019-07-08T15:46:38.000Z
2021-03-29T12:05:25.000Z
mix.exs
thiamsantos/packages_bot
4e3e3f942c075876c93fc901b3034355a26bd627
[ "Apache-2.0" ]
13
2021-03-14T21:31:28.000Z
2021-12-20T11:56:45.000Z
mix.exs
thiamsantos/packages_bot
4e3e3f942c075876c93fc901b3034355a26bd627
[ "Apache-2.0" ]
1
2019-07-08T18:40:23.000Z
2019-07-08T18:40:23.000Z
defmodule PackagesBot.MixProject do use Mix.Project def project do [ app: :packages_bot, version: "0.1.0", elixir: "~> 1.8", elixirc_paths: elixirc_paths(Mix.env()), start_permanent: Mix.env() == :prod, deps: deps(), aliases: aliases(), compilers: [:phoenix] ++ M...
24.928571
69
0.547278
73c6c77cbcd22993d0c5efe1927cff54428562d8
3,154
exs
Elixir
apps/artemis_log/test/artemis_log/contexts/event_log/delete_all_event_logs_older_than_test.exs
chrislaskey/atlas_platform
969aea95814f62d3471f93000ee5ad77edb9d1bf
[ "MIT" ]
10
2019-07-05T19:59:20.000Z
2021-05-23T07:36:11.000Z
apps/artemis_log/test/artemis_log/contexts/event_log/delete_all_event_logs_older_than_test.exs
chrislaskey/atlas_platform
969aea95814f62d3471f93000ee5ad77edb9d1bf
[ "MIT" ]
7
2019-07-12T21:41:01.000Z
2020-08-17T21:29:22.000Z
apps/artemis_log/test/artemis_log/contexts/event_log/delete_all_event_logs_older_than_test.exs
chrislaskey/atlas_platform
969aea95814f62d3471f93000ee5ad77edb9d1bf
[ "MIT" ]
4
2019-07-05T20:04:08.000Z
2021-05-13T16:28:33.000Z
defmodule ArtemisLog.DeleteAllEventLogsOlderThanTest do use ArtemisLog.DataCase import ArtemisLog.Factories alias ArtemisLog.DeleteAllEventLogsOlderThan setup do event_log = insert(:event_log) {:ok, event_log: event_log} end describe "call!" do test "raises an exception when given invalid a...
31.227723
89
0.700698
73c71bfecf98ea8dd5331c6f334660374722c465
501
ex
Elixir
lib/stellar/accounts.ex
revelrylabs/elixir-stellar-client
5866fc43fdc86260e0719a4764e8dd9327ef4731
[ "MIT" ]
25
2018-01-23T13:56:28.000Z
2021-11-08T08:10:53.000Z
lib/stellar/accounts.ex
revelrylabs/elixir-stellar-client
5866fc43fdc86260e0719a4764e8dd9327ef4731
[ "MIT" ]
91
2018-01-30T20:10:44.000Z
2022-01-12T19:50:24.000Z
lib/stellar/accounts.ex
revelrylabs/elixir-stellar-client
5866fc43fdc86260e0719a4764e8dd9327ef4731
[ "MIT" ]
5
2018-04-17T15:08:26.000Z
2019-08-07T19:08:49.000Z
defmodule Stellar.Accounts do @moduledoc """ Functions for interacting with Accounts """ alias Stellar.Base @doc """ Gets account details """ @spec get(binary) :: {Stellar.status(), map} def get(accountId) do Base.get("/accounts/#{accountId}") end @doc """ Gets a single data associated wit...
21.782609
59
0.656687
73c71c99572e3d1dc8c2a5e1115d62770802420f
876
ex
Elixir
lib/vega_web/controllers/page_controller.ex
Fudoshiki/vega
0577024afc734933048645976705784512fbc1f4
[ "MIT" ]
4
2020-03-22T22:12:29.000Z
2020-07-01T22:32:01.000Z
lib/vega_web/controllers/page_controller.ex
Fudoshiki/vega
0577024afc734933048645976705784512fbc1f4
[ "MIT" ]
3
2021-03-10T11:53:41.000Z
2021-10-17T11:18:54.000Z
lib/vega_web/controllers/page_controller.ex
Fudoshiki/vega
0577024afc734933048645976705784512fbc1f4
[ "MIT" ]
3
2020-03-30T19:03:23.000Z
2022-01-17T20:21:42.000Z
defmodule VegaWeb.PageController do use VegaWeb, :controller alias Vega.BoardOverview @doc """ Render the overview of the boards connected to the current user """ def index(conn, _params) do {personal, visited, starred, closed} = conn |> fetch_user() ...
25.028571
92
0.593607
73c729b442c2d606ed586cfbb4d844a68d34c6ea
4,229
ex
Elixir
apps/janus/lib/janus/stream_state_guard.ex
bornmeyer/janus_signaling
cbab905aaa844a2762d4647f9363370cecd3db22
[ "Apache-2.0" ]
null
null
null
apps/janus/lib/janus/stream_state_guard.ex
bornmeyer/janus_signaling
cbab905aaa844a2762d4647f9363370cecd3db22
[ "Apache-2.0" ]
null
null
null
apps/janus/lib/janus/stream_state_guard.ex
bornmeyer/janus_signaling
cbab905aaa844a2762d4647f9363370cecd3db22
[ "Apache-2.0" ]
null
null
null
defmodule Janus.StreamStateGuard do use GenStateMachine, callback_mode: [:handle_event_function, :state_enter] require Logger def child_spec(stream_id) do %{ id: "#{stream_id}_guard", start: {__MODULE__, :start_link, [%{stream_id: stream_id, last_state: nil}]}, type: :worker, restart:...
49.752941
154
0.718846
73c738aca37eea6d9ce7c533dd87b53011eb1dd3
4,493
ex
Elixir
lib/cog/bundle/config.ex
matusf/cog
71708301c7dc570fb0d3498a50f47a70ef957788
[ "Apache-2.0" ]
1,003
2016-02-23T17:21:12.000Z
2022-02-20T14:39:35.000Z
lib/cog/bundle/config.ex
matusf/cog
71708301c7dc570fb0d3498a50f47a70ef957788
[ "Apache-2.0" ]
906
2016-02-22T22:54:19.000Z
2022-03-11T15:19:43.000Z
lib/cog/bundle/config.ex
matusf/cog
71708301c7dc570fb0d3498a50f47a70ef957788
[ "Apache-2.0" ]
95
2016-02-23T13:42:31.000Z
2021-11-30T14:39:55.000Z
defmodule Cog.Bundle.Config do require Logger alias Cog.Command.GenCommand def commands(config), do: process_args(config, "commands") # TODO: Scope these to avoid conflicts with pre-existing modules # TODO: Pass each command process config from the bundle config def process_args(bundle_config, "comma...
37.756303
88
0.623414
73c73c36a96be7077677f39408ee0a7b7c412e74
1,305
exs
Elixir
config/config.exs
SwiftAusterity/gossip
d79c53acd02fcb9905acb9730e59065efdd5a589
[ "MIT" ]
null
null
null
config/config.exs
SwiftAusterity/gossip
d79c53acd02fcb9905acb9730e59065efdd5a589
[ "MIT" ]
null
null
null
config/config.exs
SwiftAusterity/gossip
d79c53acd02fcb9905acb9730e59065efdd5a589
[ "MIT" ]
null
null
null
# This file is responsible for configuring your application # and its dependencies with the aid of the Mix.Config module. # # This configuration file is loaded before any dependency and # is restricted to this project. use Mix.Config # General application configuration config :gossip, namespace: Web, ecto_repos: [...
33.461538
136
0.72567
73c756c6b5ef472cea9e6fc818083b9a6cc598a3
7,902
exs
Elixir
test/phoenix/router/helpers_test.exs
wojtekmach/phoenix
a6b3bf301c7088b8824a39a165582dc85dfdd2a4
[ "MIT" ]
null
null
null
test/phoenix/router/helpers_test.exs
wojtekmach/phoenix
a6b3bf301c7088b8824a39a165582dc85dfdd2a4
[ "MIT" ]
null
null
null
test/phoenix/router/helpers_test.exs
wojtekmach/phoenix
a6b3bf301c7088b8824a39a165582dc85dfdd2a4
[ "MIT" ]
null
null
null
defmodule Phoenix.Router.HelpersTest do use ExUnit.Case, async: true use ConnHelper alias Phoenix.Router.Helpers ## Unit tests defmodule HTTPSRouter do def config(:https), do: [port: 443] def config(:url), do: [host: "example.com"] end defmodule HTTPRouter do def config(:https), do: false ...
36.583333
97
0.64895
73c75a22edd69f9a6756e3a80f5492d11d714e2d
172
ex
Elixir
lib/battle_city/tank/armor.ex
clszzyh/battle_city_core
7a3aca9000b186382f1faf526ebce837a76ef86e
[ "MIT" ]
null
null
null
lib/battle_city/tank/armor.ex
clszzyh/battle_city_core
7a3aca9000b186382f1faf526ebce837a76ef86e
[ "MIT" ]
38
2020-12-17T12:40:44.000Z
2022-03-31T02:05:59.000Z
lib/battle_city/tank/armor.ex
clszzyh/battle_city
7a3aca9000b186382f1faf526ebce837a76ef86e
[ "MIT" ]
null
null
null
defmodule BattleCity.Tank.Armor do @moduledoc false use BattleCity.Tank.Base, points: 400, health: 4, move_speed: 2, bullet_speed: 2, level: 4 end
15.636364
34
0.662791
73c764ff48fb7602473ce4b4ce834a9910bef52e
17,180
ex
Elixir
lib/gnat.ex
santif/nats.ex
84277ae3ae5a7ea2a7e6e70e624c59683c72d0de
[ "MIT" ]
102
2019-04-17T06:19:48.000Z
2022-03-31T02:36:11.000Z
lib/gnat.ex
santif/nats.ex
84277ae3ae5a7ea2a7e6e70e624c59683c72d0de
[ "MIT" ]
29
2019-04-16T03:45:04.000Z
2022-03-11T12:25:54.000Z
lib/gnat.ex
santif/nats.ex
84277ae3ae5a7ea2a7e6e70e624c59683c72d0de
[ "MIT" ]
17
2019-05-07T19:33:17.000Z
2022-03-24T18:27:25.000Z
# State transitions: # :waiting_for_message => receive PING, send PONG => :waiting_for_message # :waiting_for_message => receive MSG... -> :waiting_for_message defmodule Gnat do use GenServer require Logger alias Gnat.{Command, Parsec} @type t :: GenServer.server() @type headers :: [{binary(), iodata()}] ...
36.553191
140
0.663097
73c77aaf7878d965f5263e520b750799aff0417d
831
ex
Elixir
apps/tai/lib/tai/orders/submissions/sell_limit_fok.ex
ccamateur/tai
41c4b3e09dafc77987fa3f6b300c15461d981e16
[ "MIT" ]
276
2018-01-16T06:36:06.000Z
2021-03-20T21:48:01.000Z
apps/tai/lib/tai/orders/submissions/sell_limit_fok.ex
ccamateur/tai
41c4b3e09dafc77987fa3f6b300c15461d981e16
[ "MIT" ]
73
2018-10-05T18:45:06.000Z
2021-02-08T05:46:33.000Z
apps/tai/lib/tai/orders/submissions/sell_limit_fok.ex
ccamateur/tai
41c4b3e09dafc77987fa3f6b300c15461d981e16
[ "MIT" ]
43
2018-06-09T09:54:51.000Z
2021-03-07T07:35:17.000Z
defmodule Tai.Orders.Submissions.SellLimitFok do alias __MODULE__ @type product_type :: Tai.Venues.Product.type() @type callback :: Tai.Orders.OrderCallback.callback() @type t :: %SellLimitFok{ venue: String.t(), credential: String.t(), venue_product_symbol: String.t(), ...
21.307692
55
0.624549
73c77d411121fba75e92324eab6bf944b658715d
418
exs
Elixir
RAEM/raem/priv/repo/migrations/20180402003623_create_curso.exs
pedromcorreia/Rumo-ao-ensino-superior
be0b9bf417604bdf8a349fde8a8a1c0aaf4c4cdb
[ "MIT" ]
null
null
null
RAEM/raem/priv/repo/migrations/20180402003623_create_curso.exs
pedromcorreia/Rumo-ao-ensino-superior
be0b9bf417604bdf8a349fde8a8a1c0aaf4c4cdb
[ "MIT" ]
null
null
null
RAEM/raem/priv/repo/migrations/20180402003623_create_curso.exs
pedromcorreia/Rumo-ao-ensino-superior
be0b9bf417604bdf8a349fde8a8a1c0aaf4c4cdb
[ "MIT" ]
2
2018-02-24T19:56:21.000Z
2018-02-26T00:16:41.000Z
defmodule Raem.Repo.Migrations.CreateCurso do use Ecto.Migration def change do create table(:cursos) do add :cod_curso, :integer add :cod_area, :integer add :cod_ies, :integer add :area_enquadramento, :string add :modalidade_ensino, :string add :cod_municipio, :integer ...
22
45
0.660287
73c780f9b1ea9526ede9613bcb5104d4f1296213
373
ex
Elixir
lib/salty/supervisor.ex
benknowles/libsalty
38a10812865cb855bfa46cf266bb68d51a296f39
[ "Apache-2.0" ]
23
2017-07-04T19:29:43.000Z
2021-02-16T19:44:38.000Z
lib/salty/supervisor.ex
benknowles/libsalty
38a10812865cb855bfa46cf266bb68d51a296f39
[ "Apache-2.0" ]
16
2017-08-13T15:31:25.000Z
2019-06-19T14:44:13.000Z
lib/salty/supervisor.ex
benknowles/libsalty
38a10812865cb855bfa46cf266bb68d51a296f39
[ "Apache-2.0" ]
19
2017-08-10T19:01:49.000Z
2021-06-20T01:34:59.000Z
defmodule Salty.Supervisor do @moduledoc """ Salty.Supervisor is the root supervisor of GenServer processes in libsalty. """ use Supervisor def start_link do Supervisor.start_link(__MODULE__, []) end def init([]) do children = [ # worker(Salty.Server, [], restart: :transient) ] s...
18.65
77
0.675603
73c784724d211b93bee63e9c574cf121312cf1a6
3,388
ex
Elixir
lib/parking_tweets/garage_map.ex
paulswartz/parking_tweets
9f2e0143348a4c4e1a26dc246d02432f7caaed98
[ "MIT" ]
1
2020-12-17T23:22:03.000Z
2020-12-17T23:22:03.000Z
lib/parking_tweets/garage_map.ex
paulswartz/parking_tweets
9f2e0143348a4c4e1a26dc246d02432f7caaed98
[ "MIT" ]
27
2021-02-02T22:11:05.000Z
2022-03-21T17:17:16.000Z
lib/parking_tweets/garage_map.ex
paulswartz/parking_tweets
9f2e0143348a4c4e1a26dc246d02432f7caaed98
[ "MIT" ]
null
null
null
defmodule ParkingTweets.GarageMap do @moduledoc """ Responsible for maintaing a map of garages and and their current state. """ alias ParkingTweets.{Garage, IdMapSet} defstruct garages: IdMapSet.new(&Garage.id/1), alternates: %{}, facility_to_stop_id: %{}, stop_id_to_stop_...
26.061538
82
0.622491
73c78c1011f31f9adb4840bfbc6fde83169819ab
1,150
ex
Elixir
other-options/helloplug.ex
hotpyn/plug-from-bottom-up
e5c08e185f4b4c2c1731d5a0ce2efe80828e1476
[ "MIT" ]
null
null
null
other-options/helloplug.ex
hotpyn/plug-from-bottom-up
e5c08e185f4b4c2c1731d5a0ce2efe80828e1476
[ "MIT" ]
null
null
null
other-options/helloplug.ex
hotpyn/plug-from-bottom-up
e5c08e185f4b4c2c1731d5a0ce2efe80828e1476
[ "MIT" ]
null
null
null
defmodule Helloplug do def init(default_opts) do IO.puts "starting up Helloplug..." default_opts end def call(conn, _opts) do IO.puts "here again" route(conn.method, conn.path_info, conn) end def route("GET", ["hello"], conn) do # this route is for /hello conn |> Plug.Conn.send_resp(200, "Hello, w...
24.468085
69
0.683478
73c78cf75a8d712333e29c0d78e2c31b50993346
2,410
ex
Elixir
lib/entry.ex
ianatha/ledgerex
7936bbe3823fb4da5b2d3767cf2a365a00281cfe
[ "Apache-2.0" ]
4
2020-02-17T05:25:36.000Z
2021-02-26T13:20:46.000Z
lib/entry.ex
ianatha/ledgerex
7936bbe3823fb4da5b2d3767cf2a365a00281cfe
[ "Apache-2.0" ]
null
null
null
lib/entry.ex
ianatha/ledgerex
7936bbe3823fb4da5b2d3767cf2a365a00281cfe
[ "Apache-2.0" ]
null
null
null
defmodule Ledger.Entry do @moduledoc false defstruct date: nil, date_alternative: nil, status: nil, payee: nil, tags: [], entries: [] @line_length 55 def amount_to_str([cur, amt]) do case cur do "$" -> "#{cur}#{amt}" _ -> "#{cur} #{a...
25.638298
136
0.548548
73c7b7fe86067a05b6c043839b17da26aa404582
1,660
ex
Elixir
lib/slack_bot/plugin_worker.ex
mtgto/Elixir-SlackBot
1598bcfffa062eb691e5b809fadbe58a4678a005
[ "MIT" ]
2
2015-12-11T18:51:49.000Z
2016-01-08T20:42:05.000Z
lib/slack_bot/plugin_worker.ex
mtgto/Elixir-SlackBot
1598bcfffa062eb691e5b809fadbe58a4678a005
[ "MIT" ]
null
null
null
lib/slack_bot/plugin_worker.ex
mtgto/Elixir-SlackBot
1598bcfffa062eb691e5b809fadbe58a4678a005
[ "MIT" ]
null
null
null
defmodule SlackBot.PluginWorker do @moduledoc """ GenServer which own a plugin. """ defmodule State do defstruct module: nil, state: nil end use GenServer require Logger def start_link({module, config}) do :ok = Logger.debug "SlackBot.PluginWorker.start_link" name = name_for_module(module...
31.923077
87
0.696386
73c7d218ef065f80f9a4b1c563cecea5f0097178
455
exs
Elixir
test/lucidboard_web/views/error_view_test.exs
borodark/lucidboard
487a9a54053977ea9704121d4a6a4343012d4421
[ "MIT" ]
86
2019-01-07T20:49:04.000Z
2021-10-02T21:15:42.000Z
test/lucidboard_web/views/error_view_test.exs
borodark/lucidboard
487a9a54053977ea9704121d4a6a4343012d4421
[ "MIT" ]
26
2019-03-27T12:06:52.000Z
2020-09-20T05:21:09.000Z
test/lucidboard_web/views/error_view_test.exs
borodark/lucidboard
487a9a54053977ea9704121d4a6a4343012d4421
[ "MIT" ]
19
2015-01-06T19:02:49.000Z
2020-05-25T08:54:00.000Z
defmodule LucidboardWeb.ErrorViewTest do use LucidboardWeb.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(LucidboardWeb.ErrorView, "404.html", []) == "Not Found" end test "rende...
26.764706
71
0.698901
73c7d9048811a0828bb56f0b665371807cb3899d
3,619
ex
Elixir
clients/vision/lib/google_api/vision/v1/api/locations.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
null
null
null
clients/vision/lib/google_api/vision/v1/api/locations.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
null
null
null
clients/vision/lib/google_api/vision/v1/api/locations.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
1
2020-11-10T16:58:27.000Z
2020-11-10T16:58:27.000Z
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
41.125
179
0.682233
73c83a2c56055d55ea869554a2b792611361c88f
63
ex
Elixir
lib/booking_web/views/layout_view.ex
mattiaslundberg/booking
469d1469f306b2ab62ce1ee971a825101af6fc7e
[ "MIT" ]
null
null
null
lib/booking_web/views/layout_view.ex
mattiaslundberg/booking
469d1469f306b2ab62ce1ee971a825101af6fc7e
[ "MIT" ]
2
2021-03-10T16:49:07.000Z
2021-05-11T12:50:22.000Z
lib/booking_web/views/layout_view.ex
mattiaslundberg/booking
469d1469f306b2ab62ce1ee971a825101af6fc7e
[ "MIT" ]
null
null
null
defmodule BookingWeb.LayoutView do use BookingWeb, :view end
15.75
34
0.809524
73c86ee9b7bc52cacfa633f37b5469e1fa1f362c
153
exs
Elixir
app/priv/repo/migrations/20200522135342_add_slug_uniques.exs
nathanjohnson320/noodl
2e449aab15b54fc5a1dc45ebf4b79e7b64b7c967
[ "MIT" ]
1
2021-01-20T20:00:50.000Z
2021-01-20T20:00:50.000Z
app/priv/repo/migrations/20200522135342_add_slug_uniques.exs
nathanjohnson320/noodl
2e449aab15b54fc5a1dc45ebf4b79e7b64b7c967
[ "MIT" ]
null
null
null
app/priv/repo/migrations/20200522135342_add_slug_uniques.exs
nathanjohnson320/noodl
2e449aab15b54fc5a1dc45ebf4b79e7b64b7c967
[ "MIT" ]
null
null
null
defmodule Noodl.Repo.Migrations.AddSlugUniques do use Ecto.Migration def change do create unique_index(:sessions, [:event_id, :slug]) end end
19.125
54
0.751634
73c87a9e07747b185c25ada8752a77a5ae1fa77e
10,324
exs
Elixir
apps/re/priv/repo/seeds.exs
caspg/backend
34df9dc14ab8ed75de4578fefa2e087580c7e867
[ "MIT" ]
1
2021-01-19T05:01:15.000Z
2021-01-19T05:01:15.000Z
apps/re/priv/repo/seeds.exs
caspg/backend
34df9dc14ab8ed75de4578fefa2e087580c7e867
[ "MIT" ]
null
null
null
apps/re/priv/repo/seeds.exs
caspg/backend
34df9dc14ab8ed75de4578fefa2e087580c7e867
[ "MIT" ]
null
null
null
alias Re.{ Address, Calendars.TourAppointment, Development, Favorite, Image, Interest, InterestType, Interests.ContactRequest, Listing, Listings.PriceHistory, Listings.StatusHistory, ListingTag, PriceSuggestions.Request, Repo, Statistics.InPersonVisit, Statistics.ListingVisualization, ...
19.627376
96
0.611003
73c8afc2c04d14c039fbe54dcdd1f466ca58c0fe
20,002
exs
Elixir
apps/core/test/services/repositories_test.exs
svilenkov/plural
ac6c6cc15ac4b66a3b5e32ed4a7bee4d46d1f026
[ "Apache-2.0" ]
1
2021-12-13T09:43:15.000Z
2021-12-13T09:43:15.000Z
apps/core/test/services/repositories_test.exs
svilenkov/plural
ac6c6cc15ac4b66a3b5e32ed4a7bee4d46d1f026
[ "Apache-2.0" ]
null
null
null
apps/core/test/services/repositories_test.exs
svilenkov/plural
ac6c6cc15ac4b66a3b5e32ed4a7bee4d46d1f026
[ "Apache-2.0" ]
null
null
null
defmodule Core.Services.RepositoriesTest do use Core.SchemaCase, async: true use Mimic alias Core.PubSub alias Core.Services.Repositories alias Piazza.Crypto.RSA describe "#create_repository" do test "It will create a repository for the user's publisher" do %{owner: user} = insert(:publisher) ...
33.673401
117
0.633287
73c8b4d5ddf569dcfedffe537321bcd9bf090fd9
426
ex
Elixir
lib/flux/websocket/handler.ex
cjfreeze/Flux
ea1eb29932db806c06fcd6cdcc625df04b83f8bc
[ "MIT" ]
1
2021-10-05T02:22:22.000Z
2021-10-05T02:22:22.000Z
lib/flux/websocket/handler.ex
cjfreeze/Flux
ea1eb29932db806c06fcd6cdcc625df04b83f8bc
[ "MIT" ]
null
null
null
lib/flux/websocket/handler.ex
cjfreeze/Flux
ea1eb29932db806c06fcd6cdcc625df04b83f8bc
[ "MIT" ]
null
null
null
defmodule Flux.Websocket.Handler do alias Flux.Websocket.{Frame, Conn} @type context :: {module, any} @callback init(Flux.Conn.t(), any) :: {:ok, any} | :error @callback handle_frame(Frame.opcode(), binary, Conn.t(), context) :: {:ok, Conn.t(), context} @callback handle_info(any, Conn.t(), context) :: {:ok,...
38.727273
95
0.657277
73c8b846b78f47d3bffbb81d4b6eec5d2c4d6b7f
2,720
exs
Elixir
test/guardian/permissions/text_encoding_test.exs
x-ji/guardian
576997d3701306ccfa40b42e18b1bec5a6ac98a7
[ "MIT" ]
3,135
2015-12-19T05:35:41.000Z
2022-03-29T00:27:25.000Z
test/guardian/permissions/text_encoding_test.exs
x-ji/guardian
576997d3701306ccfa40b42e18b1bec5a6ac98a7
[ "MIT" ]
536
2015-12-28T04:40:31.000Z
2022-03-30T22:45:59.000Z
test/guardian/permissions/text_encoding_test.exs
x-ji/guardian
576997d3701306ccfa40b42e18b1bec5a6ac98a7
[ "MIT" ]
451
2015-12-20T23:43:49.000Z
2022-03-24T10:36:14.000Z
defmodule Guardian.Permissions.TextEncodingTest do use ExUnit.Case, async: true defmodule Impl do use Guardian, permissions: %{ user: [:read, :write], profile: %{read: 0b1, write: 0b10} } use Guardian.Permissions, encoding: Guardian.Permissions.TextEncoding def subject_for...
34.871795
78
0.626471
73c8c34c718c5e9289a6bb758061102a7ae51c9b
6,695
exs
Elixir
test/exconstructor_test.exs
appcues/exconstructor
a4f5a88cfebba01eca3024ccaf58ce295d83683f
[ "MIT" ]
264
2016-01-19T23:39:30.000Z
2022-03-16T19:59:49.000Z
test/exconstructor_test.exs
appcues/exconstructor
a4f5a88cfebba01eca3024ccaf58ce295d83683f
[ "MIT" ]
29
2016-02-04T02:18:36.000Z
2022-02-22T20:02:13.000Z
test/exconstructor_test.exs
appcues/exconstructor
a4f5a88cfebba01eca3024ccaf58ce295d83683f
[ "MIT" ]
19
2016-02-02T16:21:17.000Z
2021-07-18T08:36:29.000Z
defmodule ExConstructorTest do use ExSpec, async: true doctest ExConstructor defmodule TestStruct do defstruct field_one: 1, field_two: 2, field_three: 3, field_four: 4, field_five: 5, Field_Six: 6, FieldSeven: 7, ...
25.264151
90
0.588648