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
1dc73dedd91f62d52f173d55e0c3a4ec5994a0af
3,043
exs
Elixir
test/mix/tasks/extension/phoenix/pow.extension.phoenix.gen.templates_test.exs
abartier/pow
58a3d082da093e2dc7f07825a950ee133204813f
[ "Unlicense", "MIT" ]
null
null
null
test/mix/tasks/extension/phoenix/pow.extension.phoenix.gen.templates_test.exs
abartier/pow
58a3d082da093e2dc7f07825a950ee133204813f
[ "Unlicense", "MIT" ]
null
null
null
test/mix/tasks/extension/phoenix/pow.extension.phoenix.gen.templates_test.exs
abartier/pow
58a3d082da093e2dc7f07825a950ee133204813f
[ "Unlicense", "MIT" ]
null
null
null
defmodule Mix.Tasks.Pow.Extension.Phoenix.Gen.TemplatesTest do use Pow.Test.Mix.TestCase alias Mix.Tasks.Pow.Extension.Phoenix.Gen.Templates @tmp_path Path.join(["tmp", inspect(Templates)]) @options ["--extension", "PowResetPassword", "--extension", "PowEmailConfirmation"] @expected_template_files [ {P...
33.076087
109
0.629642
1dc759324b8cd58a39a4ca789481bc32f8c95efe
310
ex
Elixir
lib/compass_web/controllers/page_controller.ex
theclimbersclub/compass
e9c48c86e6844dd751053af5c3068ce898fd0f2a
[ "MIT" ]
2
2019-10-12T13:12:15.000Z
2021-03-07T10:21:53.000Z
lib/compass_web/controllers/page_controller.ex
theclimbersclub/compass
e9c48c86e6844dd751053af5c3068ce898fd0f2a
[ "MIT" ]
14
2019-10-14T23:33:15.000Z
2020-05-30T10:04:16.000Z
lib/compass_web/controllers/page_controller.ex
theclimbersclub/compass
e9c48c86e6844dd751053af5c3068ce898fd0f2a
[ "MIT" ]
1
2020-12-12T12:31:01.000Z
2020-12-12T12:31:01.000Z
defmodule CompassWeb.PageController do use CompassWeb, :controller def index(conn, _params) do render(conn, "index.html") end def up(conn, _params) do Ecto.Adapters.SQL.query!(Compass.Repo, "SELECT 1") conn |> put_resp_content_type("text/html") |> send_resp(:ok, "ok") end end
19.375
54
0.674194
1dc77187ba1957ff1eebe9a72209a33eafce2022
2,797
exs
Elixir
test/chat_web/controllers/user_controller_test.exs
Jethro-Mushilingwa/chat
9ed85178c3f95ab63cb8ac4eb234e2291c3fa801
[ "MIT" ]
null
null
null
test/chat_web/controllers/user_controller_test.exs
Jethro-Mushilingwa/chat
9ed85178c3f95ab63cb8ac4eb234e2291c3fa801
[ "MIT" ]
1
2021-03-10T17:36:53.000Z
2021-03-10T17:36:53.000Z
test/chat_web/controllers/user_controller_test.exs
Jethro-Mushilingwa/chat
9ed85178c3f95ab63cb8ac4eb234e2291c3fa801
[ "MIT" ]
null
null
null
defmodule ChatWeb.UserControllerTest do use ChatWeb.ConnCase alias Chat.Accounts @create_attrs %{email: "some email", password: "some password", username: "some username"} @update_attrs %{email: "some updated email", password: "some updated password", username: "some updated username"} @invalid_attrs %{emai...
31.426966
116
0.654272
1dc7720ab920735249b29187ed28d6bc48a8d965
495
exs
Elixir
integration/mssql/support/repo.exs
nikneroz/mssql_ecto
d010b6c9c9041756353fc8184fa7e6368103cfac
[ "Apache-2.0" ]
null
null
null
integration/mssql/support/repo.exs
nikneroz/mssql_ecto
d010b6c9c9041756353fc8184fa7e6368103cfac
[ "Apache-2.0" ]
null
null
null
integration/mssql/support/repo.exs
nikneroz/mssql_ecto
d010b6c9c9041756353fc8184fa7e6368103cfac
[ "Apache-2.0" ]
null
null
null
defmodule Ecto.Integration.Repo do defmacro __using__(opts) do quote do config = Application.get_env(:ecto, __MODULE__) config = Keyword.put(config, :loggers, [ Ecto.LogEntry, {Ecto.Integration.Repo, :log, [:on_log]} ]) Application.put_env(:ecto, __MODULE__,...
21.521739
53
0.608081
1dc7921e9b25fd23f968c18deaf951baa0136970
229
exs
Elixir
priv/repo/migrations/20180903094642_add_user.exs
TDogVoid/job_board
23793917bd1cc4e68bccce737b971093030a31eb
[ "MIT" ]
null
null
null
priv/repo/migrations/20180903094642_add_user.exs
TDogVoid/job_board
23793917bd1cc4e68bccce737b971093030a31eb
[ "MIT" ]
null
null
null
priv/repo/migrations/20180903094642_add_user.exs
TDogVoid/job_board
23793917bd1cc4e68bccce737b971093030a31eb
[ "MIT" ]
null
null
null
defmodule JobBoard.Repo.Migrations.AddUser do use Ecto.Migration def change do create table(:users) do add :name, :string, null: false add :company, :string, null: false timestamps() end end end
17.615385
45
0.659389
1dc797e0601b12c57aea761aa2d81f84c58111c9
270
exs
Elixir
test/eatbeep_web/views/layout_view_test.exs
eatbeep/eatbeep
f6dbe569bbcf9a0cbd10aaf94ff0cb137f01d320
[ "MIT" ]
2
2021-01-31T05:18:20.000Z
2021-04-12T17:40:31.000Z
test/eatbeep_web/views/layout_view_test.exs
eatbeep/eatbeep
f6dbe569bbcf9a0cbd10aaf94ff0cb137f01d320
[ "MIT" ]
null
null
null
test/eatbeep_web/views/layout_view_test.exs
eatbeep/eatbeep
f6dbe569bbcf9a0cbd10aaf94ff0cb137f01d320
[ "MIT" ]
null
null
null
defmodule EatbeepWeb.LayoutViewTest do use EatbeepWeb.ConnCase, async: true # When testing helpers, you may want to import Phoenix.HTML and # use functions such as safe_to_string() to convert the helper # result into an HTML string. # import Phoenix.HTML end
30
65
0.766667
1dc79dfc53784b12fcea282887a5eb6ef633d9ff
2,869
ex
Elixir
lib/godfist/http.ex
whitfin/godfist
b311b17b3db3b47b650b070da4fd753f4492560d
[ "MIT" ]
6
2017-07-27T08:23:25.000Z
2020-01-14T19:17:52.000Z
lib/godfist/http.ex
whitfin/godfist
b311b17b3db3b47b650b070da4fd753f4492560d
[ "MIT" ]
7
2017-08-26T06:01:16.000Z
2018-04-03T18:30:44.000Z
lib/godfist/http.ex
whitfin/godfist
b311b17b3db3b47b650b070da4fd753f4492560d
[ "MIT" ]
2
2017-08-26T05:50:29.000Z
2018-10-01T20:44:42.000Z
defmodule Godfist.HTTP do @moduledoc false @endpoint %{ br: "https://br1.api.riotgames.com", eune: "https://eun1.api.riotgames.com", euw: "https://euw1.api.riotgames.com", jp: "https://jp1.api.riotgames.com", kr: "https://kr.api.riotgames.com", lan: "https://la1.api.riotgames.com", las:...
27.854369
74
0.596026
1dc7a50c7806f8a924e5b99063f998256a78c5cd
10,209
exs
Elixir
farmbot_celery_script/test/farmbot_celery_script/move_compiler_test.exs
adamswsk/farmbot_os
d177d3b74888c1e7bcbf8f8595818708ee97f73b
[ "MIT" ]
null
null
null
farmbot_celery_script/test/farmbot_celery_script/move_compiler_test.exs
adamswsk/farmbot_os
d177d3b74888c1e7bcbf8f8595818708ee97f73b
[ "MIT" ]
null
null
null
farmbot_celery_script/test/farmbot_celery_script/move_compiler_test.exs
adamswsk/farmbot_os
d177d3b74888c1e7bcbf8f8595818708ee97f73b
[ "MIT" ]
null
null
null
defmodule FarmbotCeleryScript.MoveCompilerTest do use ExUnit.Case, async: false use Mimic alias FarmbotCeleryScript.{ Compiler, SysCalls.Stubs } alias FarmbotCeleryScript.SysCalls, warn: false setup :verify_on_exit! @safe_height %{args: %{label: "safe_height"}, kind: :special_value} @soil_he...
28.92068
80
0.5933
1dc7a70c2ab9963f9b81085b4814a2d6d4d11d15
1,778
ex
Elixir
installer/templates/phx_web/endpoint.ex
coderberry/phoenix
9abaa84ea675d3db97cfba77745e76300acb6fd2
[ "MIT" ]
null
null
null
installer/templates/phx_web/endpoint.ex
coderberry/phoenix
9abaa84ea675d3db97cfba77745e76300acb6fd2
[ "MIT" ]
null
null
null
installer/templates/phx_web/endpoint.ex
coderberry/phoenix
9abaa84ea675d3db97cfba77745e76300acb6fd2
[ "MIT" ]
null
null
null
defmodule <%= endpoint_module %> do use Phoenix.Endpoint, otp_app: :<%= web_app_name %> socket "/socket", <%= web_namespace %>.UserSocket # Serve at "/" the static files from "priv/static" directory. # # You should set gzip to true if you are running phoenix.digest # when deploying your static files in pr...
30.655172
95
0.688976
1dc7bb64e87d3e4777eacef9420e2c50df684502
2,600
ex
Elixir
lib/tortoise/transport/ssl.ex
lucaong/tortoise
fd2f83527937ba39b47f58eb8d392a1aa927e28f
[ "Apache-2.0" ]
1
2021-05-05T05:56:51.000Z
2021-05-05T05:56:51.000Z
lib/tortoise/transport/ssl.ex
lucaong/tortoise
fd2f83527937ba39b47f58eb8d392a1aa927e28f
[ "Apache-2.0" ]
null
null
null
lib/tortoise/transport/ssl.ex
lucaong/tortoise
fd2f83527937ba39b47f58eb8d392a1aa927e28f
[ "Apache-2.0" ]
null
null
null
defmodule Tortoise.Transport.SSL do @moduledoc false @behaviour Tortoise.Transport alias Tortoise.Transport @default_opts [verify: :verify_peer] @impl true def new(opts) do {host, opts} = Keyword.pop(opts, :host) {port, opts} = Keyword.pop(opts, :port) host = coerce_host(host) opts = Key...
20.472441
73
0.642308
1dc7be094ade304900c50cd4d48968f4e391a9b6
1,641
ex
Elixir
web/web.ex
mfunaro/handiman-phoenix
5d94114f37561647096f1695e3f0a3a3d1c7ca34
[ "MIT", "Unlicense" ]
1
2015-08-15T02:40:27.000Z
2015-08-15T02:40:27.000Z
web/web.ex
mfunaro/handiman-phoenix
5d94114f37561647096f1695e3f0a3a3d1c7ca34
[ "MIT", "Unlicense" ]
1
2015-09-11T00:02:33.000Z
2015-09-11T03:24:21.000Z
web/web.ex
mfunaro/handiman-phoenix
5d94114f37561647096f1695e3f0a3a3d1c7ca34
[ "MIT", "Unlicense" ]
null
null
null
defmodule Handiman.Web do @moduledoc """ A module that keeps using definitions for controllers, views and so on. This can be used in your application as: use Handiman.Web, :controller use Handiman.Web, :view The definitions below will be executed for every view, controller, etc, so keep them ...
21.038462
88
0.666057
1dc7c1e4dd2687465b3a40659d3aec027870e808
2,741
exs
Elixir
test/unit/logger_json/plug_test.exs
tgrk/logger_json
d01f0bccf5571473b5afc816ddcf7e02869abe9a
[ "MIT" ]
null
null
null
test/unit/logger_json/plug_test.exs
tgrk/logger_json
d01f0bccf5571473b5afc816ddcf7e02869abe9a
[ "MIT" ]
null
null
null
test/unit/logger_json/plug_test.exs
tgrk/logger_json
d01f0bccf5571473b5afc816ddcf7e02869abe9a
[ "MIT" ]
null
null
null
defmodule LoggerJSON.PlugTest do use Logger.Case use Plug.Test import ExUnit.CaptureIO require Logger defmodule MyPlug do use Plug.Builder plug(LoggerJSON.Plug) plug(:passthrough) defp passthrough(conn, _) do Plug.Conn.send_resp(conn, 200, "Passthrough") end end setup do ...
26.355769
110
0.526815
1dc7c2054d2ad2b8bfa1ca25db65e837d4287f74
323
exs
Elixir
git_graphed_api/priv/repo/migrations/20190224210330_create_users.exs
bahodge/git_graphed
773d34a0522028ef3ecc3f246d8ddf18031205d0
[ "MIT" ]
2
2019-04-14T04:19:08.000Z
2019-04-14T05:22:00.000Z
git_graphed_api/priv/repo/migrations/20190224210330_create_users.exs
bahodge/git_graphed
773d34a0522028ef3ecc3f246d8ddf18031205d0
[ "MIT" ]
null
null
null
git_graphed_api/priv/repo/migrations/20190224210330_create_users.exs
bahodge/git_graphed
773d34a0522028ef3ecc3f246d8ddf18031205d0
[ "MIT" ]
null
null
null
defmodule GitGraphedApi.Repo.Migrations.CreateUsers do use Ecto.Migration def change do create table(:users) do add(:first_name, :string) add(:last_name, :string) add(:email, :string) add(:username, :string) timestamps() end create(unique_index(:users, [:email])) end e...
19
54
0.647059
1dc7c32aa0231e62fe4e5dbea35215d73e920244
493
ex
Elixir
lib/server_web/views/layout_view.ex
akoutmos/ex_server
9daffd543e67c27c7c5b5a1a55bade925ab416b3
[ "MIT" ]
24
2022-02-18T01:13:32.000Z
2022-03-18T17:57:57.000Z
lib/server_web/views/layout_view.ex
akoutmos/ex_server
9daffd543e67c27c7c5b5a1a55bade925ab416b3
[ "MIT" ]
null
null
null
lib/server_web/views/layout_view.ex
akoutmos/ex_server
9daffd543e67c27c7c5b5a1a55bade925ab416b3
[ "MIT" ]
1
2022-02-25T20:31:39.000Z
2022-02-25T20:31:39.000Z
defmodule ExServerWeb.LayoutView do use ExServerWeb, :view alias Phoenix.LiveView.JS # Phoenix LiveDashboard is available only in development by default, # so we instruct Elixir to not warn if the dashboard route is missing. @compile {:no_warn_undefined, {Routes, :live_dashboard_path, 2}} def nav_classes...
35.214286
158
0.770791
1dc7fd19777786c4eb7a02c2ebe1ecda1e9710e6
1,540
exs
Elixir
apps/omg_eth/test/omg_eth/release_tasks/set_ethereum_block_time_test.exs
boolafish/elixir-omg
46b568404972f6e4b4da3195d42d4fb622edb934
[ "Apache-2.0" ]
1
2020-10-06T03:07:47.000Z
2020-10-06T03:07:47.000Z
apps/omg_eth/test/omg_eth/release_tasks/set_ethereum_block_time_test.exs
boolafish/elixir-omg
46b568404972f6e4b4da3195d42d4fb622edb934
[ "Apache-2.0" ]
9
2020-09-16T15:31:17.000Z
2021-03-17T07:12:35.000Z
apps/omg_eth/test/omg_eth/release_tasks/set_ethereum_block_time_test.exs
boolafish/elixir-omg
46b568404972f6e4b4da3195d42d4fb622edb934
[ "Apache-2.0" ]
1
2020-09-30T17:17:27.000Z
2020-09-30T17:17:27.000Z
# Copyright 2019-2020 OmiseGO Pte Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
39.487179
95
0.746753
1dc81353066dca71fd45d3e33240b6aa758aa206
744
exs
Elixir
apps/streamer/mix.exs
itsemilano/orbex
301dfaad1369acfd68055f1868d9a1dcd7e51e16
[ "Apache-2.0" ]
null
null
null
apps/streamer/mix.exs
itsemilano/orbex
301dfaad1369acfd68055f1868d9a1dcd7e51e16
[ "Apache-2.0" ]
null
null
null
apps/streamer/mix.exs
itsemilano/orbex
301dfaad1369acfd68055f1868d9a1dcd7e51e16
[ "Apache-2.0" ]
null
null
null
defmodule Streamer.MixProject do use Mix.Project def project do [ app: :streamer, 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_...
20.666667
59
0.532258
1dc818055147ab7219975a0aa4251bc3e7acbd79
736
ex
Elixir
lib/radiator/audio_meta/chapter_import.ex
bhtabor/radiator
39c137a18d36d6f418f9d1ffb7aa2c99011d66cf
[ "MIT" ]
92
2019-01-03T11:46:23.000Z
2022-02-19T21:28:44.000Z
lib/radiator/audio_meta/chapter_import.ex
bhtabor/radiator
39c137a18d36d6f418f9d1ffb7aa2c99011d66cf
[ "MIT" ]
350
2019-04-11T07:55:51.000Z
2021-08-03T11:19:05.000Z
lib/radiator/audio_meta/chapter_import.ex
bhtabor/radiator
39c137a18d36d6f418f9d1ffb7aa2c99011d66cf
[ "MIT" ]
10
2019-04-18T12:47:27.000Z
2022-01-25T20:49:15.000Z
defmodule Radiator.AudioMeta.ChapterImport do @spec import_chapters(binary()) :: {:ok, [Chapters.Chapter.t()]} | {:error, any()} def import_chapters(data) do format = guess_format(data) {:ok, Chapters.decode(data, format)} end @spec guess_format(binary()) :: :psc | :json | :mp4chaps defp guess_format...
26.285714
84
0.638587
1dc8343457e7c558218fc792d99cff6aec53681e
269
ex
Elixir
lib/multiple_products.ex
manojsamanta/stripe-multiple-products
746895c2a4ef375c74bf0a643cbd3db7a8e19bcc
[ "MIT" ]
null
null
null
lib/multiple_products.ex
manojsamanta/stripe-multiple-products
746895c2a4ef375c74bf0a643cbd3db7a8e19bcc
[ "MIT" ]
null
null
null
lib/multiple_products.ex
manojsamanta/stripe-multiple-products
746895c2a4ef375c74bf0a643cbd3db7a8e19bcc
[ "MIT" ]
null
null
null
defmodule MultipleProducts do @moduledoc """ MultipleProducts 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
26.9
66
0.769517
1dc872a91b6687e255d156f814d9d26dd716821e
326
ex
Elixir
lib/app/punches/punch.ex
mzgajner/smena
6c0243ae1e8d1cef6e8a8e240f0f6b703ea638c9
[ "Unlicense" ]
null
null
null
lib/app/punches/punch.ex
mzgajner/smena
6c0243ae1e8d1cef6e8a8e240f0f6b703ea638c9
[ "Unlicense" ]
null
null
null
lib/app/punches/punch.ex
mzgajner/smena
6c0243ae1e8d1cef6e8a8e240f0f6b703ea638c9
[ "Unlicense" ]
null
null
null
defmodule Smena.Punches.Punch do use Ecto.Schema import Ecto.Changeset schema "punches" do field :in, :boolean, default: false belongs_to :user, Smena.Users.User timestamps() end @doc false def changeset(punch, attrs) do punch |> cast(attrs, [:in]) |> validate_required([:in]) en...
17.157895
39
0.659509
1dc8a16ec1ecb9b798d77b4e1c8f3bfc1e304ce3
963
ex
Elixir
apps/etv_web/lib/controllers/page_controller.ex
sheharyarn/etv
65b96e436d5fe6fa11bfb293fa676f0bbf2d5121
[ "MIT" ]
2
2020-01-13T09:34:04.000Z
2021-05-19T07:51:07.000Z
apps/etv_web/lib/controllers/page_controller.ex
sheharyarn/etv
65b96e436d5fe6fa11bfb293fa676f0bbf2d5121
[ "MIT" ]
null
null
null
apps/etv_web/lib/controllers/page_controller.ex
sheharyarn/etv
65b96e436d5fe6fa11bfb293fa676f0bbf2d5121
[ "MIT" ]
2
2018-09-01T20:58:11.000Z
2021-05-19T07:51:11.000Z
defmodule ETV.Web.PageController do use ETV.Web, :controller alias ETV.Data.Transaction alias ETV.Web.PageView def index(conn, _params) do txs = Transaction.all render(conn, "index.html", txs: txs) end def create(conn, %{"hash" => hash}) do hash = String.trim(hash) case Transaction.gets...
19.653061
76
0.602285
1dc8aa4c56c0e8b83b679cffe0e23bf682dc71f3
2,001
ex
Elixir
clients/spanner/lib/google_api/spanner/v1/model/optimize_restored_database_metadata.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/spanner/lib/google_api/spanner/v1/model/optimize_restored_database_metadata.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/spanner/lib/google_api/spanner/v1/model/optimize_restored_database_metadata.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...
40.02
277
0.752624
1dc8b304dbcd8fe53a97fb6b4964b102cba6e14d
367
ex
Elixir
lib/participant.ex
xeejp/theme-boilerplate
fa1670507bb4004ef466e65405b03ab8e22c79c3
[ "MIT" ]
1
2016-12-05T14:14:32.000Z
2016-12-05T14:14:32.000Z
lib/participant.ex
xeejp/theme-boilerplate
fa1670507bb4004ef466e65405b03ab8e22c79c3
[ "MIT" ]
null
null
null
lib/participant.ex
xeejp/theme-boilerplate
fa1670507bb4004ef466e65405b03ab8e22c79c3
[ "MIT" ]
null
null
null
defmodule YourApplication.Participant do def get_filter(data, id) do %{ participants: %{ id => true }, participants_number: "participantsNumber", _spread: [[:participants, id]] } end def filter_data(data, id) do Transmap.transform(data, get_filter(data, id), diff: fals...
20.388889
63
0.632153
1dc8c4932eaa95ecec944d371bd446a3fedf6d18
14,102
exs
Elixir
integration_test/cases/type.exs
van-mronov/ecto
d0511f539353f556c7ae74d98924eb89a67aa3c5
[ "Apache-2.0" ]
1
2019-05-03T08:51:16.000Z
2019-05-03T08:51:16.000Z
integration_test/cases/type.exs
van-mronov/ecto
d0511f539353f556c7ae74d98924eb89a67aa3c5
[ "Apache-2.0" ]
null
null
null
integration_test/cases/type.exs
van-mronov/ecto
d0511f539353f556c7ae74d98924eb89a67aa3c5
[ "Apache-2.0" ]
null
null
null
Code.require_file "../support/types.exs", __DIR__ defmodule Ecto.Integration.TypeTest do use Ecto.Integration.Case, async: Application.get_env(:ecto, :async_integration_tests, true) alias Ecto.Integration.{Custom, Item, ItemColor, Order, Post, User, Tag, Usec} alias Ecto.Integration.TestRepo import Ecto.Query...
39.949008
139
0.630194
1dc8dffe49f76f213595777a51f5b321a74e78fb
1,750
ex
Elixir
07-observer/f_obs.ex
kranfix/elixir-playground
28f1314b137eb591946f501647e76d8017070ffa
[ "MIT" ]
null
null
null
07-observer/f_obs.ex
kranfix/elixir-playground
28f1314b137eb591946f501647e76d8017070ffa
[ "MIT" ]
null
null
null
07-observer/f_obs.ex
kranfix/elixir-playground
28f1314b137eb591946f501647e76d8017070ffa
[ "MIT" ]
1
2020-11-17T07:06:17.000Z
2020-11-17T07:06:17.000Z
defmodule FObs do @spec create(integer()) :: pid() def create(initialState \\ 0) do spawn(__MODULE__, :listen, [[], initialState]) end def listen(observers, state) do receive do event -> {observers, state} = on_event(event, observers, state) listen(observers, state) end end ...
22.727273
62
0.665143
1dc90d741932138830619324eec35779ce354e7a
108
exs
Elixir
test/fusion/utilities/bash_test.exs
elpddev/fusion
7106ba4922786e1d79310074e46e6996d0c2f4aa
[ "MIT" ]
2
2020-02-02T20:22:28.000Z
2020-12-10T18:25:03.000Z
test/fusion/utilities/bash_test.exs
elpddev/fusion
7106ba4922786e1d79310074e46e6996d0c2f4aa
[ "MIT" ]
null
null
null
test/fusion/utilities/bash_test.exs
elpddev/fusion
7106ba4922786e1d79310074e46e6996d0c2f4aa
[ "MIT" ]
null
null
null
defmodule Fusion.Utilities.BashTest do use ExUnit.Case doctest Fusion.Utilities.Bash, import: true end
18
45
0.796296
1dc9153ec82b560432a027cf06ef4181649cf55d
261
exs
Elixir
14-aws/s3_example/config/config.exs
kranfix/elixir-playground
28f1314b137eb591946f501647e76d8017070ffa
[ "MIT" ]
null
null
null
14-aws/s3_example/config/config.exs
kranfix/elixir-playground
28f1314b137eb591946f501647e76d8017070ffa
[ "MIT" ]
null
null
null
14-aws/s3_example/config/config.exs
kranfix/elixir-playground
28f1314b137eb591946f501647e76d8017070ffa
[ "MIT" ]
1
2020-11-17T07:06:17.000Z
2020-11-17T07:06:17.000Z
use Mix.Config config :ex_aws, :s3, region: "us-east-2", access_key_id: "AKIA44VAIV4KDXNIOPOY", secret_access_key: "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" # scheme: "https://", # host: "localhost", # port: 9000 # import_config "#{Mix.env()}.exs"
20.076923
63
0.693487
1dc99326f2e90abb16d954ac45606cf670b5c554
713
ex
Elixir
lib/adyen_checkout_ex/model/checkout_cancel_order_request.ex
rsystem-se/adyen_checkout_ex
4210f1c7150152e81f350dc6ca55aeb19665b85b
[ "MIT" ]
1
2021-05-30T20:45:10.000Z
2021-05-30T20:45:10.000Z
lib/adyen_checkout_ex/model/checkout_cancel_order_request.ex
rsystem-se/adyen_checkout_ex
4210f1c7150152e81f350dc6ca55aeb19665b85b
[ "MIT" ]
null
null
null
lib/adyen_checkout_ex/model/checkout_cancel_order_request.ex
rsystem-se/adyen_checkout_ex
4210f1c7150152e81f350dc6ca55aeb19665b85b
[ "MIT" ]
null
null
null
# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). # https://openapi-generator.tech # Do not edit the class manually. defmodule AdyenCheckoutEx.Model.CheckoutCancelOrderRequest do @moduledoc """ """ @derive [Poison.Encoder] defstruct [ :"merchantAccount", :"...
23.766667
91
0.720898
1dc99cc0d15b9d482ba83d55d936c1da96464be9
30,610
exs
Elixir
test/phoenix_live_view/integrations/elements_test.exs
feliperenan/phoenix_live_view
af65bb51fe12ea88e7c66808d2b1118e1c491ddd
[ "MIT" ]
null
null
null
test/phoenix_live_view/integrations/elements_test.exs
feliperenan/phoenix_live_view
af65bb51fe12ea88e7c66808d2b1118e1c491ddd
[ "MIT" ]
null
null
null
test/phoenix_live_view/integrations/elements_test.exs
feliperenan/phoenix_live_view
af65bb51fe12ea88e7c66808d2b1118e1c491ddd
[ "MIT" ]
null
null
null
defmodule Phoenix.LiveView.ElementsTest do use ExUnit.Case, async: true import Phoenix.ConnTest import Phoenix.LiveViewTest alias Phoenix.LiveViewTest.{Endpoint} @endpoint Endpoint defp last_event(view) do view |> element("#last-event") |> render() |> HtmlEntities.decode() end defp last_componen...
39.753247
168
0.554557
1dc9c641cbaadd879121fd4b86a6f5362069417f
78
exs
Elixir
test/crater_web/views/page_view_test.exs
blvdgroup/crater
78d03de2eac73d90148df6c5d2d03e99b9b5ccb7
[ "Apache-2.0" ]
1
2018-03-13T08:15:50.000Z
2018-03-13T08:15:50.000Z
test/crater_web/views/page_view_test.exs
blvdgroup/crater
78d03de2eac73d90148df6c5d2d03e99b9b5ccb7
[ "Apache-2.0" ]
1
2018-03-17T15:45:26.000Z
2018-03-17T15:45:26.000Z
test/crater_web/views/page_view_test.exs
blvdgroup/crater
78d03de2eac73d90148df6c5d2d03e99b9b5ccb7
[ "Apache-2.0" ]
1
2017-08-30T16:13:09.000Z
2017-08-30T16:13:09.000Z
defmodule CraterWeb.PageViewTest do use CraterWeb.ConnCase, async: true end
19.5
37
0.820513
1dc9e781cc0cc68926008fb72c142c5b02aa5200
2,901
ex
Elixir
lib/locust.ex
katafrakt/locust
2a5386a84d2ccf69ae1a194e12d65b797d85ad06
[ "MIT" ]
27
2016-01-16T02:46:21.000Z
2021-07-06T20:28:18.000Z
lib/locust.ex
katafrakt/locust
2a5386a84d2ccf69ae1a194e12d65b797d85ad06
[ "MIT" ]
null
null
null
lib/locust.ex
katafrakt/locust
2a5386a84d2ccf69ae1a194e12d65b797d85ad06
[ "MIT" ]
2
2018-03-22T08:30:18.000Z
2018-04-22T01:45:43.000Z
defmodule Locust do require Worker require Reporter def main(args) do args |> parse_args |> process end defp parse_args(args) do {options, url, _} = OptionParser.parse(args, switches: [ number: :integer, concurrency: :integer, header: :keep, request_type: :strin...
30.21875
108
0.620131
1dc9ec8055e87f22ae6ca46c5d6bd925f937d7a6
1,957
ex
Elixir
lib/astarte_flow_web/endpoint.ex
Pavinati/astarte_flow
82b6bee82e23907f7623a94a072239591b19b9d8
[ "Apache-2.0" ]
11
2020-01-30T17:44:35.000Z
2022-01-13T19:17:21.000Z
lib/astarte_flow_web/endpoint.ex
Pavinati/astarte_flow
82b6bee82e23907f7623a94a072239591b19b9d8
[ "Apache-2.0" ]
100
2020-02-11T10:01:35.000Z
2022-02-17T10:39:35.000Z
lib/astarte_flow_web/endpoint.ex
Pavinati/astarte_flow
82b6bee82e23907f7623a94a072239591b19b9d8
[ "Apache-2.0" ]
7
2020-01-30T11:33:20.000Z
2021-05-03T09:48:41.000Z
# # This file is part of Astarte. # # Copyright 2020 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...
29.208955
74
0.729688
1dc9fefc63665dba9123f49ab54f9640f1ec8ba2
1,124
ex
Elixir
lib/ant/parser.ex
renatoalmeidaoliveira/elixir-crawler
dc900bcd293344376aea906f7115585c0873a082
[ "Apache-2.0" ]
null
null
null
lib/ant/parser.ex
renatoalmeidaoliveira/elixir-crawler
dc900bcd293344376aea906f7115585c0873a082
[ "Apache-2.0" ]
null
null
null
lib/ant/parser.ex
renatoalmeidaoliveira/elixir-crawler
dc900bcd293344376aea906f7115585c0873a082
[ "Apache-2.0" ]
null
null
null
defmodule Ant.Parser do @user_agent [{"User-agent" , "myCrawler"}] require Logger def process(uri) do try do uri |> HTTPoison.get(@user_agent) |> handle_http_response |> tagSelector |> parser rescue _ -> [] end end def handle_http_response(httpResponse) do case httpResponse ...
17.292308
94
0.590747
1dca0149cf695666e4930821468b2fda84876d15
138
exs
Elixir
test/chatbot_test.exs
renatoalmeidaoliveira/Merlin
92a0e318872190cdfa07ced85ee54cc69cad5c14
[ "Apache-2.0" ]
null
null
null
test/chatbot_test.exs
renatoalmeidaoliveira/Merlin
92a0e318872190cdfa07ced85ee54cc69cad5c14
[ "Apache-2.0" ]
null
null
null
test/chatbot_test.exs
renatoalmeidaoliveira/Merlin
92a0e318872190cdfa07ced85ee54cc69cad5c14
[ "Apache-2.0" ]
null
null
null
defmodule ChatbotTest do use ExUnit.Case doctest Chatbot test "greets the world" do assert Chatbot.hello() == :world end end
15.333333
36
0.710145
1dca02a371cb987e4333fe2e5b07061229a56c13
135
ex
Elixir
lib/oli/delivery/evaluation/actions/submission_action.ex
malav2110/oli-torus
8af64e762a7c8a2058bd27a7ab8e96539ffc055f
[ "MIT" ]
1
2022-03-17T20:35:47.000Z
2022-03-17T20:35:47.000Z
lib/oli/delivery/evaluation/actions/submission_action.ex
malav2110/oli-torus
8af64e762a7c8a2058bd27a7ab8e96539ffc055f
[ "MIT" ]
9
2021-11-02T16:52:09.000Z
2022-03-25T15:14:01.000Z
lib/oli/delivery/evaluation/actions/submission_action.ex
malav2110/oli-torus
8af64e762a7c8a2058bd27a7ab8e96539ffc055f
[ "MIT" ]
null
null
null
defmodule Oli.Delivery.Evaluation.Actions.SubmissionAction do @derive Jason.Encoder defstruct [:type, :attempt_guid, :part_id] end
27
61
0.8
1dca304dc25cb84bad17de548ff8dc2a4f03b659
2,086
exs
Elixir
test/msgpax/plug_parser_test.exs
gskynet/msgpax
5b1d8bad8692cbf668cd800a522fb6cc653e2c9d
[ "0BSD" ]
252
2015-01-14T10:08:03.000Z
2022-03-16T15:42:29.000Z
test/msgpax/plug_parser_test.exs
gskynet/msgpax
5b1d8bad8692cbf668cd800a522fb6cc653e2c9d
[ "0BSD" ]
44
2015-05-31T15:41:30.000Z
2021-11-19T12:23:48.000Z
test/msgpax/plug_parser_test.exs
gskynet/msgpax
5b1d8bad8692cbf668cd800a522fb6cc653e2c9d
[ "0BSD" ]
36
2015-04-01T22:37:31.000Z
2021-02-25T12:41:47.000Z
defmodule Msgpax.PlugParserTest do use ExUnit.Case use Plug.Test test "body with a MessagePack-encoded map" do conn = conn(:post, "/", Msgpax.pack!(%{hello: "world"}, iodata: false)) assert {:ok, %{"hello" => "world"}, _conn} = parse(conn, []) end test "body with a MessagePack-encoded non-map term"...
30.676471
95
0.630872
1dca5a38718b2628e0a3fbaf108e69599852c079
5,314
exs
Elixir
test/lib/mapper/mapper_test.exs
chrisjowen/rubbergloves
9fad14e7309374d6792b83774cef9f4125926d34
[ "MIT" ]
2
2020-01-14T00:41:15.000Z
2020-02-05T09:09:12.000Z
test/lib/mapper/mapper_test.exs
chrisjowen/rubbergloves
9fad14e7309374d6792b83774cef9f4125926d34
[ "MIT" ]
null
null
null
test/lib/mapper/mapper_test.exs
chrisjowen/rubbergloves
9fad14e7309374d6792b83774cef9f4125926d34
[ "MIT" ]
null
null
null
defmodule MapperTest do use ExUnit.Case alias Rubbergloves.Mapper.{Options, Override, AtomKeyResolver, StringKeyResolver, DynamicKeyResolver} test "Can map simple from string key Map" do options = %Options{ keys: &StringKeyResolver.resolve/2 } result = Rubbergloves.Mapper.map(%Structs.Simple{}...
27.533679
103
0.501129
1dca5d0fab0cdf7ac519cfc414d51a068ada2572
878
ex
Elixir
clients/gke_hub/lib/google_api/gke_hub/v1/metadata.ex
mopp/elixir-google-api
d496227d17600bccbdf8f6be9ad1b7e7219d7ec6
[ "Apache-2.0" ]
null
null
null
clients/gke_hub/lib/google_api/gke_hub/v1/metadata.ex
mopp/elixir-google-api
d496227d17600bccbdf8f6be9ad1b7e7219d7ec6
[ "Apache-2.0" ]
null
null
null
clients/gke_hub/lib/google_api/gke_hub/v1/metadata.ex
mopp/elixir-google-api
d496227d17600bccbdf8f6be9ad1b7e7219d7ec6
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
32.518519
74
0.757403
1dca6a089431d012212ab85816f0f4eac2788ce5
37,028
exs
Elixir
lib/elixir/test/elixir/typespec_test.exs
wstrinz/elixir
1048b34d6c816f8e5dbd4fdbaaf9baa41b4f0d95
[ "Apache-2.0" ]
1
2021-04-28T21:35:01.000Z
2021-04-28T21:35:01.000Z
lib/elixir/test/elixir/typespec_test.exs
wstrinz/elixir
1048b34d6c816f8e5dbd4fdbaaf9baa41b4f0d95
[ "Apache-2.0" ]
null
null
null
lib/elixir/test/elixir/typespec_test.exs
wstrinz/elixir
1048b34d6c816f8e5dbd4fdbaaf9baa41b4f0d95
[ "Apache-2.0" ]
1
2018-04-18T11:25:33.000Z
2018-04-18T11:25:33.000Z
Code.require_file("test_helper.exs", __DIR__) # Holds tests for both Kernel.Typespec and Code.Typespec defmodule TypespecTest do use ExUnit.Case, async: true alias TypespecTest.TypespecSample defstruct [:hello] defmacrop test_module(do: block) do quote do {:module, _, bytecode, _} = defmodu...
33.908425
110
0.538565
1dcab13db8ffc0efe3837378433f803bda1bbf85
1,082
ex
Elixir
apps/tai/lib/tai/new_orders/transitions/accept_create.ex
yurikoval/tai
94254b45d22fa0307b01577ff7c629c7280c0295
[ "MIT" ]
null
null
null
apps/tai/lib/tai/new_orders/transitions/accept_create.ex
yurikoval/tai
94254b45d22fa0307b01577ff7c629c7280c0295
[ "MIT" ]
78
2020-10-12T06:21:43.000Z
2022-03-28T09:02:00.000Z
apps/tai/lib/tai/new_orders/transitions/accept_create.ex
yurikoval/tai
94254b45d22fa0307b01577ff7c629c7280c0295
[ "MIT" ]
null
null
null
defmodule Tai.NewOrders.Transitions.AcceptCreate do @moduledoc """ The create request has been received and accepted by the venue. The result of the created order will either be returned immediately in the response or received asynchronously on the connection stream. """ use Ecto.Schema import Ecto.Chang...
25.162791
80
0.742144
1dcabca2d27cf78c6d77ea4e896dd929b03f85b5
2,840
exs
Elixir
example/config/target.exs
paulanthonywilson/vintage_net_wizard
338877f79b96e9ba1c2482260b95a1a44d7c66d8
[ "Apache-2.0" ]
50
2019-08-02T18:56:53.000Z
2022-02-19T20:00:52.000Z
example/config/target.exs
paulanthonywilson/vintage_net_wizard
338877f79b96e9ba1c2482260b95a1a44d7c66d8
[ "Apache-2.0" ]
93
2019-06-21T02:36:09.000Z
2022-03-21T09:47:27.000Z
example/config/target.exs
paulanthonywilson/vintage_net_wizard
338877f79b96e9ba1c2482260b95a1a44d7c66d8
[ "Apache-2.0" ]
14
2019-09-16T23:50:11.000Z
2022-03-18T16:36:21.000Z
import Config # Use shoehorn to start the main application. See the shoehorn # docs for separating out critical OTP applications such as those # involved with firmware updates. config :shoehorn, init: [:nerves_runtime, :nerves_pack], app: Mix.Project.config()[:app] # Nerves Runtime can enumerate hardware devices...
29.583333
81
0.692606
1dcb05c139c06fe2c442fc8fe28c9abedc3efc30
1,020
exs
Elixir
apps/nerves_hub_web_core/priv/repo/migrations/20180710140434_create_products.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/20180710140434_create_products.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/20180710140434_create_products.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.CreateProducts do use Ecto.Migration def up do create table(:products) do add(:name, :string) add(:tenant_id, references(:tenants, null: false)) timestamps() end alter table(:devices) do add(:product_id, references(:products, null: fa...
20.816327
60
0.636275
1dcb56907fb845fd67af0bf81580e67238adb5f7
4,737
exs
Elixir
test/absinthe/resolution/middleware_test.exs
TheRealReal/absinthe
6eae5bc36283e58f42d032b8afd90de3ad64f97b
[ "MIT" ]
4,101
2016-03-02T03:49:20.000Z
2022-03-31T05:46:01.000Z
test/absinthe/resolution/middleware_test.exs
TheRealReal/absinthe
6eae5bc36283e58f42d032b8afd90de3ad64f97b
[ "MIT" ]
889
2016-03-02T16:06:59.000Z
2022-03-31T20:24:12.000Z
test/absinthe/resolution/middleware_test.exs
TheRealReal/absinthe
6eae5bc36283e58f42d032b8afd90de3ad64f97b
[ "MIT" ]
564
2016-03-02T07:49:59.000Z
2022-03-06T14:40:59.000Z
defmodule Absinthe.MiddlewareTest do use Absinthe.Case, async: true defmodule Auth do def call(res, _) do case res.context do %{current_user: _} -> res _ -> res |> Absinthe.Resolution.put_result({:error, "unauthorized"}) end end end defmodule ...
23.567164
94
0.526282
1dcb62f4b47907a5b6368102d2c4ef24fd44e484
1,857
ex
Elixir
clients/real_time_bidding/lib/google_api/real_time_bidding/v1/model/destination_not_crawlable_evidence.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/real_time_bidding/lib/google_api/real_time_bidding/v1/model/destination_not_crawlable_evidence.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/real_time_bidding/lib/google_api/real_time_bidding/v1/model/destination_not_crawlable_evidence.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-10-04T10:12:44.000Z
2020-10-04T10:12:44.000Z
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
35.037736
109
0.728056
1dcb6654dcd4fbd42881112f8e9c3ef94957ca1c
2,021
ex
Elixir
lib/test.ex
tyrchen/merkle_patricia_tree
5af83bb1555e4b3b5836e731c069924022c4bce7
[ "MIT" ]
1
2019-01-07T00:13:14.000Z
2019-01-07T00:13:14.000Z
lib/test.ex
tyrchen/merkle_patricia_tree
5af83bb1555e4b3b5836e731c069924022c4bce7
[ "MIT" ]
null
null
null
lib/test.ex
tyrchen/merkle_patricia_tree
5af83bb1555e4b3b5836e731c069924022c4bce7
[ "MIT" ]
1
2020-03-07T08:55:36.000Z
2020-03-07T08:55:36.000Z
defmodule MerklePatriciaTree.Test do @moduledoc """ Helper functions related to creating a MerklePatriciaTree database in :ets or :leveldb. This is to be used when you need to have a persisted table for a test case, which is basically any test that involves these tables. The tables generated by this module ...
28.464789
97
0.698169
1dcb8a0a1816c8e18531bced2f16c3aa1ef1b11d
2,119
ex
Elixir
lib/meeseeks/accumulator.ex
RichMorin/meeseeks
d52a15a0b78acfc4d7b979d1df6e146482dc3a10
[ "Apache-2.0", "MIT" ]
291
2017-03-27T15:53:36.000Z
2022-03-14T23:01:42.000Z
lib/meeseeks/accumulator.ex
RichMorin/meeseeks
d52a15a0b78acfc4d7b979d1df6e146482dc3a10
[ "Apache-2.0", "MIT" ]
70
2017-03-30T23:32:34.000Z
2021-06-27T06:26:28.000Z
lib/meeseeks/accumulator.ex
RichMorin/meeseeks
d52a15a0b78acfc4d7b979d1df6e146482dc3a10
[ "Apache-2.0", "MIT" ]
23
2017-06-18T10:29:04.000Z
2021-11-04T13:08:12.000Z
defmodule Meeseeks.Accumulator do @moduledoc """ Accumulator structs package some means of storing nodes selected during the selection process along with a method for checking if the selection should be terminated early and a method for returning the stored nodes. Users will not typically need to define, or ...
25.53012
90
0.680982
1dcba0c53b3c9ce1669a89e3b4579b88fc1f97fc
2,116
ex
Elixir
apps/bytepack/lib/bytepack/orgs/invitation.ex
dashbitco/bytepack_archive
79f8e62149d020f2afcc501592ed399f7ce7a60b
[ "Unlicense" ]
313
2020-12-03T17:26:24.000Z
2022-03-18T09:05:14.000Z
apps/bytepack/lib/bytepack/orgs/invitation.ex
dashbitco/bytepack_archive
79f8e62149d020f2afcc501592ed399f7ce7a60b
[ "Unlicense" ]
null
null
null
apps/bytepack/lib/bytepack/orgs/invitation.ex
dashbitco/bytepack_archive
79f8e62149d020f2afcc501592ed399f7ce7a60b
[ "Unlicense" ]
57
2020-12-03T17:41:53.000Z
2022-03-17T17:28:16.000Z
defmodule Bytepack.Orgs.Invitation do use Bytepack.Schema import Ecto.Changeset import Ecto.Query alias Bytepack.Repo alias Bytepack.Orgs.{Org, Membership} alias Bytepack.Accounts schema "orgs_invitations" do field :email, :string belongs_to :org, Org belongs_to :user, Accounts.User times...
28.213333
98
0.683837
1dcbb9a73b119ebd77437c9bf5c6c9f432c3233f
667
ex
Elixir
catcasts/lib/catcasts_web/router.ex
cashmann/phoenix-tutorial
ea37b9d54a79df9bc1351a948eb8f8400c5e62ff
[ "MIT" ]
null
null
null
catcasts/lib/catcasts_web/router.ex
cashmann/phoenix-tutorial
ea37b9d54a79df9bc1351a948eb8f8400c5e62ff
[ "MIT" ]
3
2021-03-09T20:36:45.000Z
2021-05-10T17:47:02.000Z
catcasts/lib/catcasts_web/router.ex
cashmann/phoenix-tutorial
ea37b9d54a79df9bc1351a948eb8f8400c5e62ff
[ "MIT" ]
null
null
null
defmodule CatcastsWeb.Router do use CatcastsWeb, :router pipeline :browser do plug :accepts, ["html"] plug :fetch_session plug :fetch_flash plug :protect_from_forgery plug :put_secure_browser_headers end pipeline :api do plug :accepts, ["json"] end scope "/", CatcastsWeb do pi...
19.617647
57
0.68066
1dcbdf59eca8fd158d60037d054da32973be15df
524
exs
Elixir
config/test.exs
KazuCocoa/hello_phoenix
9c64de70588558e4439d8620757e39deb2a01b4b
[ "MIT" ]
null
null
null
config/test.exs
KazuCocoa/hello_phoenix
9c64de70588558e4439d8620757e39deb2a01b4b
[ "MIT" ]
null
null
null
config/test.exs
KazuCocoa/hello_phoenix
9c64de70588558e4439d8620757e39deb2a01b4b
[ "MIT" ]
null
null
null
use Mix.Config # We don't run a server during test. If one is required, # you can enable the server option below. config :hello_phoenix, HelloPhoenix.Endpoint, http: [port: 4001], server: false # Print only warnings and errors during test config :logger, level: :warn # Configure your database config :hello_phoen...
27.578947
59
0.753817
1dcbfb1ef8cd7351f8d20c4bf48cfb6594f335de
5,009
ex
Elixir
test/support/integration_case.ex
weaver-engine/weaver
b60a59673d7adb0ebfbb5f392d03fe09399054bc
[ "MIT" ]
null
null
null
test/support/integration_case.ex
weaver-engine/weaver
b60a59673d7adb0ebfbb5f392d03fe09399054bc
[ "MIT" ]
null
null
null
test/support/integration_case.ex
weaver-engine/weaver
b60a59673d7adb0ebfbb5f392d03fe09399054bc
[ "MIT" ]
null
null
null
defmodule Weaver.IntegrationCase do @moduledoc """ This module defines the test case to be used by tests that require setting up a store. Such tests rely on `Weaver.Store` and also import other functionality to make it easier to build common data structures and query the schema. Finally, if the test cas...
23.627358
79
0.634458
1dcc00a67d6a66bd0926571105c54d57dcf45b49
859
ex
Elixir
lib/reaper/event/handler.ex
bbalser/reaper
7a2e8808c877b33ffa63a745179118f938460989
[ "Apache-2.0" ]
null
null
null
lib/reaper/event/handler.ex
bbalser/reaper
7a2e8808c877b33ffa63a745179118f938460989
[ "Apache-2.0" ]
null
null
null
lib/reaper/event/handler.ex
bbalser/reaper
7a2e8808c877b33ffa63a745179118f938460989
[ "Apache-2.0" ]
null
null
null
defmodule Reaper.Event.Handler do @moduledoc "This module will process dataset:update events" use Brook.Event.Handler import SmartCity.Event, only: [dataset_update: 0] require Logger alias Reaper.ConfigServer alias Reaper.ReaperConfig def handle_event(%Brook.Event{type: dataset_update(), data: data}) do ...
35.791667
115
0.708964
1dcc103c90343a928cee575b5f81a58b719bbea0
465
exs
Elixir
priv/repo/migrations/20181205145506_create_questions.exs
workgena/instant_poll
94be29da99cfcb54576ae0ce34d395fff7b8ca39
[ "MIT" ]
1
2018-11-30T09:08:09.000Z
2018-11-30T09:08:09.000Z
priv/repo/migrations/20181205145506_create_questions.exs
workgena/instant_poll
94be29da99cfcb54576ae0ce34d395fff7b8ca39
[ "MIT" ]
5
2021-01-28T19:08:56.000Z
2021-05-07T22:43:54.000Z
priv/repo/migrations/20181205145506_create_questions.exs
workgena/instant_poll
94be29da99cfcb54576ae0ce34d395fff7b8ca39
[ "MIT" ]
null
null
null
defmodule InstantPoll.Repo.Migrations.CreateQuestions do use Ecto.Migration def change do create table(:questions) do add :name, :string, null: false add :multiple, :boolean, default: false, null: false add :answers, {:array, :string} add :other_answer, :boolean, default: false, null: f...
25.833333
62
0.670968
1dcc622d54ea2e48bdc1ebc1193c29b636548392
496
exs
Elixir
mix.exs
wojtekmach/nanorepo
36302b904abb2b7b4eaa6128ab4feab34e442de1
[ "Apache-2.0" ]
4
2020-03-21T21:33:34.000Z
2022-03-29T01:36:34.000Z
mix.exs
wojtekmach/nanorepo
36302b904abb2b7b4eaa6128ab4feab34e442de1
[ "Apache-2.0" ]
null
null
null
mix.exs
wojtekmach/nanorepo
36302b904abb2b7b4eaa6128ab4feab34e442de1
[ "Apache-2.0" ]
null
null
null
defmodule NanoRepo.MixProject do use Mix.Project def project do [ app: :nanorepo, version: "0.1.0", elixir: "~> 1.9", start_permanent: Mix.env() == :prod, deps: deps(), escript: escript() ] end def application do [ extra_applications: [:public_key] ] ...
14.588235
42
0.520161
1dcc8529e3ea68d9b6eb8e0eb49f38f6687b2669
705
ex
Elixir
prism/lib/prism_web/gettext.ex
we-write-code/prism-backend
d09c753d1e3343e15823c84d0137f8d1e7a33556
[ "Apache-2.0" ]
5
2019-10-19T16:44:47.000Z
2020-05-05T16:33:58.000Z
prism/lib/prism_web/gettext.ex
we-write-code/prism-backend
d09c753d1e3343e15823c84d0137f8d1e7a33556
[ "Apache-2.0" ]
null
null
null
prism/lib/prism_web/gettext.ex
we-write-code/prism-backend
d09c753d1e3343e15823c84d0137f8d1e7a33556
[ "Apache-2.0" ]
null
null
null
defmodule PrismWeb.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 PrismWeb.Gettext # Simple translation gettext("Here is the s...
28.2
72
0.675177
1dcc9912530e3c15ad782193fcf7a88d07bfc6a7
6,614
ex
Elixir
lib/athel/services/multipart.ex
ruhlio/athel
c06a317f38ef7fa28dcb8b1f23889a01c4aa6538
[ "Apache-2.0" ]
14
2016-09-12T02:45:12.000Z
2021-02-08T04:13:29.000Z
lib/athel/services/multipart.ex
ruhlio/athel
c06a317f38ef7fa28dcb8b1f23889a01c4aa6538
[ "Apache-2.0" ]
3
2016-09-12T05:17:35.000Z
2016-09-14T16:35:04.000Z
lib/athel/services/multipart.ex
ruhlio/athel
c06a317f38ef7fa28dcb8b1f23889a01c4aa6538
[ "Apache-2.0" ]
1
2018-02-12T04:30:52.000Z
2018-02-12T04:30:52.000Z
defmodule Athel.Multipart do alias Athel.Nntp.Parser @type attachment :: %{ type: String.t, filename: String.t, params: %{optional(atom) => any}, content: binary, attachments: list(attachment)} @spec read_attachments(%{optional(String.t) => String.t}, list(String.t)) :: {:ok, list(attachment...
29.395556
119
0.607348
1dcca3b7ecb403b6c812bf1d17a664912b8e6d1a
3,465
ex
Elixir
clients/cloud_search/lib/google_api/cloud_search/v1/model/push_item.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/cloud_search/lib/google_api/cloud_search/v1/model/push_item.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/cloud_search/lib/google_api/cloud_search/v1/model/push_item.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-10-04T10:12:44.000Z
2020-10-04T10:12:44.000Z
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
53.307692
307
0.726696
1dcca812f0aa7be755fe22226cc5cd6620fb68b1
2,414
exs
Elixir
test/tardis_test.exs
elbow-jason/tardis
0475eea5bd173eca4b6b6b038ed301fd36fd5694
[ "MIT" ]
null
null
null
test/tardis_test.exs
elbow-jason/tardis
0475eea5bd173eca4b6b6b038ed301fd36fd5694
[ "MIT" ]
null
null
null
test/tardis_test.exs
elbow-jason/tardis
0475eea5bd173eca4b6b6b038ed301fd36fd5694
[ "MIT" ]
null
null
null
defmodule TardisTest do use ExUnit.Case test "Tardis.now returns 3-item tuple with GMT descriptor" do {{yr, mon, day}, {hr, min, sec}} = Tardis.now assert is_integer(yr) assert is_integer(mon) assert is_integer(day) assert is_integer(hr) assert is_integer(min) assert is_integer(sec) e...
30.175
83
0.609776
1dccb3755f6e0d37d08175f162a616958b09b62e
92
ex
Elixir
testData/org/elixir_lang/parser_definition/literal_string_sigil_heredoc_parsing_test_case/EscapeSequences.ex
keyno63/intellij-elixir
4033e319992c53ddd42a683ee7123a97b5e34f02
[ "Apache-2.0" ]
1,668
2015-01-03T05:54:27.000Z
2022-03-25T08:01:20.000Z
testData/org/elixir_lang/parser_definition/literal_string_sigil_heredoc_parsing_test_case/EscapeSequences.ex
keyno63/intellij-elixir
4033e319992c53ddd42a683ee7123a97b5e34f02
[ "Apache-2.0" ]
2,018
2015-01-01T22:43:39.000Z
2022-03-31T20:13:08.000Z
testData/org/elixir_lang/parser_definition/literal_string_sigil_heredoc_parsing_test_case/EscapeSequences.ex
keyno63/intellij-elixir
4033e319992c53ddd42a683ee7123a97b5e34f02
[ "Apache-2.0" ]
145
2015-01-15T11:37:16.000Z
2021-12-22T05:51:02.000Z
~S""" \""" \#{} \" \0 \1 \a \b \d \e \f \b \r \s \v \u1234 \x12 \ \u{100000} \x{100000} """
4.181818
10
0.369565
1dccee56c841f9929b36e319e17624b343ce8686
11,619
ex
Elixir
lib/shex/shape_map.ex
rdf-elixir/shex-ex
84100ab3dfcf3988b2b90289a8e4fbeb9f4d1516
[ "MIT" ]
4
2020-06-06T15:09:16.000Z
2021-03-22T19:46:30.000Z
lib/shex/shape_map.ex
rdf-elixir/shex-ex
84100ab3dfcf3988b2b90289a8e4fbeb9f4d1516
[ "MIT" ]
null
null
null
lib/shex/shape_map.ex
rdf-elixir/shex-ex
84100ab3dfcf3988b2b90289a8e4fbeb9f4d1516
[ "MIT" ]
null
null
null
defmodule ShEx.ShapeMap do @moduledoc """ A finite set of `ShEx.ShapeMap.Association`s used to specify the nodes on which validations should be performed and for the result of validations. A ShapeMap can be either created with `ShEx.ShapeMap.new/1` or loaded from a string representation in the standard ShapeMa...
30.179221
148
0.653326
1dcd0ba385d865dd75e62695c77f638f4848bc54
932
exs
Elixir
test/elixir_jobs/accounts/services/authenticate_admin_test.exs
odarriba/elixir_jobs
514c0fd849f1579a80a98108d7ae58f76f3a330a
[ "MIT" ]
86
2017-09-22T08:08:23.000Z
2021-05-28T19:51:17.000Z
test/elixir_jobs/accounts/services/authenticate_admin_test.exs
odarriba/elixir_jobs
514c0fd849f1579a80a98108d7ae58f76f3a330a
[ "MIT" ]
24
2017-09-23T08:23:36.000Z
2021-09-20T14:36:06.000Z
test/elixir_jobs/accounts/services/authenticate_admin_test.exs
odarriba/elixir_jobs
514c0fd849f1579a80a98108d7ae58f76f3a330a
[ "MIT" ]
21
2017-09-23T18:50:23.000Z
2019-10-15T19:41:44.000Z
defmodule ElixirJobs.Accounts.Services.AuthenticateAdminTest do use ElixirJobs.DataCase alias ElixirJobs.Accounts.Schemas.Admin alias ElixirJobs.Accounts.Services.AuthenticateAdmin describe "AuthenticateAdmin.call/2" do test "authenticate admin users" do admin = insert(:admin) {result, resour...
26.628571
78
0.693133
1dcd1a5a51232fdf767704455802b3a9b9d3636b
3,837
exs
Elixir
test/glimesh_web/controllers/user_reset_password_controller_test.exs
FROSADO/glimesh.tv
d395e89bcf8ab33ccb723ad603c0a6fb6d4ca139
[ "MIT" ]
null
null
null
test/glimesh_web/controllers/user_reset_password_controller_test.exs
FROSADO/glimesh.tv
d395e89bcf8ab33ccb723ad603c0a6fb6d4ca139
[ "MIT" ]
null
null
null
test/glimesh_web/controllers/user_reset_password_controller_test.exs
FROSADO/glimesh.tv
d395e89bcf8ab33ccb723ad603c0a6fb6d4ca139
[ "MIT" ]
null
null
null
defmodule GlimeshWeb.UserResetPasswordControllerTest do use GlimeshWeb.ConnCase, async: true alias Glimesh.Accounts alias Glimesh.Repo import Glimesh.AccountsFixtures setup do %{user: user_fixture()} end describe "GET /users/reset_password" do test "renders the reset password page", %{conn: con...
33.657895
91
0.633829
1dcd1e5118ffa03c1977411f97d7925a51842525
578
exs
Elixir
test/views/error_view_test.exs
keyan/tonic-time
196023546fe72ce087e7c4991dcf6566a563a9c9
[ "MIT" ]
12
2017-05-24T06:06:50.000Z
2020-12-09T10:39:32.000Z
test/views/error_view_test.exs
keyan/tonic-time
196023546fe72ce087e7c4991dcf6566a563a9c9
[ "MIT" ]
1
2017-07-20T02:25:31.000Z
2017-07-31T17:43:11.000Z
test/views/error_view_test.exs
keyan/tonic-time
196023546fe72ce087e7c4991dcf6566a563a9c9
[ "MIT" ]
null
null
null
defmodule TonicTime.ErrorViewTest do use TonicTime.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(TonicTime.ErrorView, "404.html", []) == "Page not found" end test "render 500.htm...
26.272727
67
0.681661
1dcd29e77d684fbb982a6d73e0d53a1d3f32e428
3,084
exs
Elixir
rel/config.exs
yuchunc/mix-deploy-example
19072e7f4aca62d782d2dba82e11cdc1ef7d8fd4
[ "Apache-2.0" ]
null
null
null
rel/config.exs
yuchunc/mix-deploy-example
19072e7f4aca62d782d2dba82e11cdc1ef7d8fd4
[ "Apache-2.0" ]
null
null
null
rel/config.exs
yuchunc/mix-deploy-example
19072e7f4aca62d782d2dba82e11cdc1ef7d8fd4
[ "Apache-2.0" ]
null
null
null
# Import all plugins from `rel/plugins` # They can then be used by adding `plugin MyPlugin` to # either an environment, or release definition, where # `MyPlugin` is the name of the plugin module. ~w(rel plugins *.exs) |> Path.join() |> Path.wildcard() |> Enum.map(&Code.eval_file(&1)) use Distillery.Releases.Config, ...
32.463158
81
0.702983
1dcd2b221241a66b7ba0c16de8a39b40d43de9b1
656
exs
Elixir
apps/hefty/priv/repo/migrations/20190430105549_create_balances.exs
Cinderella-Man/crypto-streamer
b1e990d375f7143c5149930be991249f0d9c3ee3
[ "MIT" ]
49
2019-10-28T22:27:28.000Z
2021-10-11T06:40:29.000Z
apps/hefty/priv/repo/migrations/20190430105549_create_balances.exs
Cinderella-Man/crypto-streamer
b1e990d375f7143c5149930be991249f0d9c3ee3
[ "MIT" ]
9
2019-08-30T13:15:36.000Z
2019-10-10T21:25:14.000Z
apps/hefty/priv/repo/migrations/20190430105549_create_balances.exs
Cinderella-Man/crypto-streamer
b1e990d375f7143c5149930be991249f0d9c3ee3
[ "MIT" ]
7
2019-10-31T06:19:26.000Z
2021-09-30T04:20:58.000Z
defmodule Hefty.Repo.Migrations.CreateBalances do use Ecto.Migration # Account information user data # https://github.com/binance-exchange/binance-official-api-docs/blob/master/rest-api.md#account-information-user_data # # Each balance is described # { # "asset": "BTC", # "free": "4723846.89208129"...
26.24
119
0.647866
1dcd3ab165b99da576fdec4fadaf1ddde7190aa8
10,742
ex
Elixir
lib/elixir/lib/inspect.ex
chulkilee/elixir
699231dcad52916a76f38856cbd7cf7c7bdadc51
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/inspect.ex
chulkilee/elixir
699231dcad52916a76f38856cbd7cf7c7bdadc51
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/inspect.ex
chulkilee/elixir
699231dcad52916a76f38856cbd7cf7c7bdadc51
[ "Apache-2.0" ]
null
null
null
import Kernel, except: [inspect: 1] import Inspect.Algebra alias Code.Identifier defprotocol Inspect do @moduledoc """ The `Inspect` protocol is responsible for converting any Elixir data structure into an algebra document. This document is then formatted, either in pretty printing format or a regular one. ...
27.54359
101
0.639546
1dcd412ec1e795c17db1b60d07f680a840b62fa4
5,761
ex
Elixir
clients/binary_authorization/lib/google_api/binary_authorization/v1/model/iam_policy.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/binary_authorization/lib/google_api/binary_authorization/v1/model/iam_policy.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/binary_authorization/lib/google_api/binary_authorization/v1/model/iam_policy.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-10-04T10:12:44.000Z
2020-10-04T10:12:44.000Z
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
108.698113
1,997
0.75473
1dcd4f8cbc1007df231b390eec0eca128cdb6656
1,621
exs
Elixir
mix.exs
azhi/mock
77b5b6758991b348ecedb195cd884bf66a019bdb
[ "MIT" ]
null
null
null
mix.exs
azhi/mock
77b5b6758991b348ecedb195cd884bf66a019bdb
[ "MIT" ]
null
null
null
mix.exs
azhi/mock
77b5b6758991b348ecedb195cd884bf66a019bdb
[ "MIT" ]
null
null
null
defmodule Mock.Mixfile do use Mix.Project @version "0.3.3" def project do [ app: :mock, name: "Mock", version: @version, elixir: "~> 1.0", description: description(), package: package(), test_coverage: [tool: ExCoveralls], docs: [source_ref: "v#{@version}", main: "M...
24.560606
96
0.550895
1dcd51a368c9fbbd662a0c8c87566df7e3249352
2,182
exs
Elixir
config/prod.exs
pedromcorreia/portal-construindo-sabere
116402e21d9c1e7b02be2966460c90dcea7d09cd
[ "MIT" ]
null
null
null
config/prod.exs
pedromcorreia/portal-construindo-sabere
116402e21d9c1e7b02be2966460c90dcea7d09cd
[ "MIT" ]
null
null
null
config/prod.exs
pedromcorreia/portal-construindo-sabere
116402e21d9c1e7b02be2966460c90dcea7d09cd
[ "MIT" ]
null
null
null
use Mix.Config # For production, we often load configuration from external # sources, such as your system environment. For this reason, # you won't find the :http configuration below, but set inside # PortalcsWeb.Endpoint.init/2 when load_from_system_env is # true. Any dynamic configuration should be done there. # # D...
33.569231
67
0.722731
1dcd5f3ac58441834e17b86e02f8110fe4fbd2d7
22,509
ex
Elixir
lib/event_store.ex
mwillema/eventstore
8c96ccec2fc8a43f2144db2fe880a8da70c463c6
[ "MIT" ]
null
null
null
lib/event_store.ex
mwillema/eventstore
8c96ccec2fc8a43f2144db2fe880a8da70c463c6
[ "MIT" ]
null
null
null
lib/event_store.ex
mwillema/eventstore
8c96ccec2fc8a43f2144db2fe880a8da70c463c6
[ "MIT" ]
null
null
null
defmodule EventStore do @moduledoc """ EventStore is an event store implemented in Elixir. It uses PostgreSQL (v9.5 or later) as the underlying storage engine. The `EventStore` module provides the public API to read and write events to an event stream, and subscribe to event notifications. Please refer t...
35.447244
95
0.692434
1dcd7cf676df84ec35c6e9cdb5c609b1f7cb4791
1,278
ex
Elixir
lib/bucketisland.ex
davidgrupp/Bucket-Island
674bf0f8029a22b56fc245d8927561dca2d3cd0a
[ "Apache-2.0" ]
1
2017-09-03T17:41:28.000Z
2017-09-03T17:41:28.000Z
lib/bucketisland.ex
davidgrupp/Bucket-Island
674bf0f8029a22b56fc245d8927561dca2d3cd0a
[ "Apache-2.0" ]
null
null
null
lib/bucketisland.ex
davidgrupp/Bucket-Island
674bf0f8029a22b56fc245d8927561dca2d3cd0a
[ "Apache-2.0" ]
null
null
null
defmodule BucketIsland do use Application # See http://elixir-lang.org/docs/stable/elixir/Application.html # for more information on OTP Applications def start(_type, _args) do import Supervisor.Spec IO.puts("asdf") # Define workers and child supervisors to be supervised children = [ # St...
37.588235
90
0.7277
1dcda5b266ea38de3c1c6b791998dfc2390856e2
262
exs
Elixir
day-2/day-2-test.exs
lee-dohm/advent-of-code-2017
3f1f93294984f51299c1a11745f18f548a0dfffa
[ "MIT" ]
1
2017-12-02T17:56:33.000Z
2017-12-02T17:56:33.000Z
day-2/day-2-test.exs
lee-dohm/advent-of-code-2017
3f1f93294984f51299c1a11745f18f548a0dfffa
[ "MIT" ]
null
null
null
day-2/day-2-test.exs
lee-dohm/advent-of-code-2017
3f1f93294984f51299c1a11745f18f548a0dfffa
[ "MIT" ]
null
null
null
Code.load_file("day-2.exs", __DIR__) ExUnit.start ExUnit.configure trace: true defmodule Day2.Test do use ExUnit.Case describe "first half solution" do test "checksum is valid" do Day2.checksum("5 1 9 5\n7 5 3\n2 4 6 8") == 18 end end end
17.466667
52
0.679389
1dce0672facc7ebfd024bfa8e5e114b061aa454a
381
exs
Elixir
priv/repo/migrations/20200521070719_create_payments.exs
macypa/storeHall
9fe810f763527cc87fa165138bdfb3cda92fa553
[ "MIT" ]
null
null
null
priv/repo/migrations/20200521070719_create_payments.exs
macypa/storeHall
9fe810f763527cc87fa165138bdfb3cda92fa553
[ "MIT" ]
4
2019-07-16T06:24:42.000Z
2021-05-07T22:26:14.000Z
priv/repo/migrations/20200521070719_create_payments.exs
macypa/storeHall
9fe810f763527cc87fa165138bdfb3cda92fa553
[ "MIT" ]
1
2018-11-23T21:13:31.000Z
2018-11-23T21:13:31.000Z
defmodule StoreHall.Repo.Migrations.CreatePayments do use Ecto.Migration def change do create table(:payments) do add :user_id, references(:users, type: :string, on_delete: :delete_all) add :invoice, :bigint add :details, :map timestamps(type: :timestamptz) end create unique_i...
23.8125
77
0.692913
1dce1b9462a1ece5e0e26d70e07bbd540526153b
2,743
exs
Elixir
test/controllers/organization_controller_test.exs
blindingnoises/tikt
eca3ff1f641ce94b84f870c141f46e977f35b670
[ "BSD-3-Clause" ]
null
null
null
test/controllers/organization_controller_test.exs
blindingnoises/tikt
eca3ff1f641ce94b84f870c141f46e977f35b670
[ "BSD-3-Clause" ]
null
null
null
test/controllers/organization_controller_test.exs
blindingnoises/tikt
eca3ff1f641ce94b84f870c141f46e977f35b670
[ "BSD-3-Clause" ]
null
null
null
defmodule Tikt.OrganizationControllerTest do use Tikt.ConnCase alias Tikt.Organization @valid_attrs %{active: true, description: "some content", image_url: "some content", name: "some content", url: "some content"} @invalid_attrs %{} test "lists all entries on index", %{conn: conn} do conn = get conn, o...
40.940299
129
0.718921
1dce55ff83e8adbe47b5a5db54106f1f5e0fa839
25,414
exs
Elixir
apps/site/test/site_web/controllers/schedule/line/helpers_test.exs
noisecapella/dotcom
d5ef869412102d2230fac3dcc216f01a29726227
[ "MIT" ]
42
2019-05-29T16:05:30.000Z
2021-08-09T16:03:37.000Z
apps/site/test/site_web/controllers/schedule/line/helpers_test.exs
noisecapella/dotcom
d5ef869412102d2230fac3dcc216f01a29726227
[ "MIT" ]
872
2019-05-29T17:55:50.000Z
2022-03-30T09:28:43.000Z
apps/site/test/site_web/controllers/schedule/line/helpers_test.exs
noisecapella/dotcom
d5ef869412102d2230fac3dcc216f01a29726227
[ "MIT" ]
12
2019-07-01T18:33:21.000Z
2022-03-10T02:13:57.000Z
defmodule SiteWeb.ScheduleController.Line.HelpersTest do use ExUnit.Case, async: true alias Routes.{Route} alias RoutePatterns.RoutePattern alias SiteWeb.ScheduleController.Line.Helpers alias Stops.{RouteStops, Stop} doctest Helpers @routes_repo_api Application.get_env(:routes, :routes_repo_api) @st...
27.805252
129
0.417132
1dce619c3752ac636a64c05288af0f61a022bdf1
5,961
ex
Elixir
lib/mix/tasks/conduit.gen.broker.ex
peek-travel/conduit
f37b96513769bdf70c89eebd77bb03023d248158
[ "MIT" ]
null
null
null
lib/mix/tasks/conduit.gen.broker.ex
peek-travel/conduit
f37b96513769bdf70c89eebd77bb03023d248158
[ "MIT" ]
null
null
null
lib/mix/tasks/conduit.gen.broker.ex
peek-travel/conduit
f37b96513769bdf70c89eebd77bb03023d248158
[ "MIT" ]
null
null
null
defmodule Mix.Tasks.Conduit.Gen.Broker do use Mix.Task import Mix.Generator import Mix.Shell.IO @shortdoc "Generates a broker for sending and receiving messages" @moduledoc """ Generates a broker for sending and receiving messages. mix conduit.gen.broker [--adapter ADAPTER] [--module BROKER_MODULE] ...
25.693966
90
0.605771
1dce6b0ecb4ecc31a2bd423260d3569ab6c2b6f2
3,854
exs
Elixir
test/accent/plugs/response_test.exs
dadarakt/accent
706bc9fda16f8b0c6ad714d64961cb73b72d1c52
[ "MIT" ]
null
null
null
test/accent/plugs/response_test.exs
dadarakt/accent
706bc9fda16f8b0c6ad714d64961cb73b72d1c52
[ "MIT" ]
null
null
null
test/accent/plugs/response_test.exs
dadarakt/accent
706bc9fda16f8b0c6ad714d64961cb73b72d1c52
[ "MIT" ]
null
null
null
defmodule Accent.Plug.ResponseTest do use ExUnit.Case use Plug.Test @default_opts [json_decoder: Poison, json_encoder: Poison] @opts Accent.Plug.Response.init(json_decoder: Poison, json_encoder: Poison) describe "init/1" do test "sets the \"header\" option to the value passed in" do opts = Accent...
32.940171
96
0.611832
1dce71b3215c942c985b12dab79b3b201b59f656
2,900
ex
Elixir
lib/glimesh_web/endpoint.ex
mja00/glimesh.tv
1f543bfdf68de269d0984041ed8394b78fb2158d
[ "MIT" ]
1
2020-08-02T00:12:28.000Z
2020-08-02T00:12:28.000Z
lib/glimesh_web/endpoint.ex
mja00/glimesh.tv
1f543bfdf68de269d0984041ed8394b78fb2158d
[ "MIT" ]
null
null
null
lib/glimesh_web/endpoint.ex
mja00/glimesh.tv
1f543bfdf68de269d0984041ed8394b78fb2158d
[ "MIT" ]
null
null
null
defmodule GlimeshWeb.Endpoint do use Phoenix.Endpoint, otp_app: :glimesh use Absinthe.Phoenix.Endpoint # The session will be stored in the cookie: signed & encrypted. # The value used for encryption is our `secret_key_base` @session_options [ store: :cookie, key: "_glimesh_key", signing_salt: App...
31.868132
141
0.717586
1dce7e9c2c3eeba33bbce3b17db562ddd9754950
126
exs
Elixir
test/fox_test.exs
CHNB128/Fox
842aa1061c2623a3bc6b93276a1d77de169bb079
[ "MIT" ]
null
null
null
test/fox_test.exs
CHNB128/Fox
842aa1061c2623a3bc6b93276a1d77de169bb079
[ "MIT" ]
null
null
null
test/fox_test.exs
CHNB128/Fox
842aa1061c2623a3bc6b93276a1d77de169bb079
[ "MIT" ]
null
null
null
defmodule FoxTest do use ExUnit.Case doctest Fox test "greets the world" do assert Fox.hello() == :world end end
14
32
0.68254
1dce99845b7a51f067a164ff4a6e6779668d9bf4
159
ex
Elixir
test/support/rbac/api.ex
kernel-io/ash_policy_authorizer
cf9f44398e156dad3c38eb56d5f3fd25ebaa704a
[ "MIT" ]
null
null
null
test/support/rbac/api.ex
kernel-io/ash_policy_authorizer
cf9f44398e156dad3c38eb56d5f3fd25ebaa704a
[ "MIT" ]
1
2020-06-05T01:06:15.000Z
2020-06-05T01:06:15.000Z
test/support/rbac/api.ex
ash-project/ash_policy_access
a954bf12e3a65c9ea0b0eb888162064cae786cbd
[ "MIT" ]
null
null
null
defmodule AshPolicyAuthorizer.Test.Rbac.Api do @moduledoc false use Ash.Api resources do registry(AshPolicyAuthorizer.Test.Rbac.Registry) end end
17.666667
52
0.779874
1dcec577e4031a8ac681e7c32e398f35717d973b
465
ex
Elixir
web/views/file_view.ex
MarcAntoine-Arnaud/ecto_relations
477853429af12adb33cd8000b29da044649c1283
[ "MIT" ]
null
null
null
web/views/file_view.ex
MarcAntoine-Arnaud/ecto_relations
477853429af12adb33cd8000b29da044649c1283
[ "MIT" ]
null
null
null
web/views/file_view.ex
MarcAntoine-Arnaud/ecto_relations
477853429af12adb33cd8000b29da044649c1283
[ "MIT" ]
null
null
null
defmodule EctoRelations.FileView do use EctoRelations.Web, :view def render("index.json", %{files: files}) do %{data: render_many(files, __MODULE__, "file.json")} end def render("show.json", %{file: file}) do %{data: render_one(file, __MODULE__, "file.json")} end def render("file.json", %{file: f...
22.142857
56
0.634409
1dcedb0ae3f73e3a09663dd468bf93a4c5db8879
73
ex
Elixir
lib/elixir_groups_web/views/signup_view.ex
moxley/elixir_groups
cb37e0cec44316c17c60a0d12cfb0231d6b11eea
[ "Apache-2.0" ]
2
2018-02-24T18:38:29.000Z
2018-02-25T22:32:55.000Z
lib/elixir_groups_web/views/signup_view.ex
moxley/elixir_groups
cb37e0cec44316c17c60a0d12cfb0231d6b11eea
[ "Apache-2.0" ]
2
2018-03-25T02:01:08.000Z
2019-10-23T20:00:57.000Z
lib/elixir_groups_web/views/signup_view.ex
moxley/elixir_groups
cb37e0cec44316c17c60a0d12cfb0231d6b11eea
[ "Apache-2.0" ]
1
2018-03-17T19:07:34.000Z
2018-03-17T19:07:34.000Z
defmodule ElixirGroupsWeb.SignupView do use ElixirGroupsWeb, :view end
18.25
39
0.835616
1dcef6d671b5c9ad3259a341c78be4ad92f20798
1,279
exs
Elixir
test/stripe/connect/transfer_reversal_test.exs
Rutaba/stripity_stripe
12c525301c781f9c8c7e578cc0d933f5d35183d5
[ "BSD-3-Clause" ]
555
2016-11-29T05:02:27.000Z
2022-03-30T00:47:59.000Z
test/stripe/connect/transfer_reversal_test.exs
Rutaba/stripity_stripe
12c525301c781f9c8c7e578cc0d933f5d35183d5
[ "BSD-3-Clause" ]
532
2016-11-28T18:22:25.000Z
2022-03-30T17:04:32.000Z
test/stripe/connect/transfer_reversal_test.exs
Rutaba/stripity_stripe
12c525301c781f9c8c7e578cc0d933f5d35183d5
[ "BSD-3-Clause" ]
296
2016-12-05T14:04:09.000Z
2022-03-28T20:39:37.000Z
defmodule Stripe.TransferReversalTest do use Stripe.StripeCase, async: true describe "retrieve/2" do test "retrieves a transfer" do assert {:ok, %Stripe.TransferReversal{}} = Stripe.TransferReversal.retrieve("tr_123", "trr_456") assert_stripe_requested(:get, "/v1/transfers/tr_123/re...
28.422222
97
0.664582
1dcf0406105893f08552f664818c0ac7d20c9cec
1,616
ex
Elixir
lib/crawly/data_storage/data_storage_worker.ex
m4hi2/crawly
b9e1bfffcc97e978023924e7aad53fc8a223aebf
[ "Apache-2.0" ]
486
2019-05-30T09:19:59.000Z
2021-04-28T07:51:31.000Z
lib/crawly/data_storage/data_storage_worker.ex
m4hi2/crawly
b9e1bfffcc97e978023924e7aad53fc8a223aebf
[ "Apache-2.0" ]
131
2019-06-29T12:43:24.000Z
2021-04-24T19:40:07.000Z
lib/crawly/data_storage/data_storage_worker.ex
m4hi2/crawly
b9e1bfffcc97e978023924e7aad53fc8a223aebf
[ "Apache-2.0" ]
52
2019-06-24T10:13:41.000Z
2021-03-28T07:36:42.000Z
defmodule Crawly.DataStorage.Worker do @moduledoc """ A worker process which stores items for individual spiders. All items are pre-processed by item_pipelines. All pipelines are using the state of this process for their internal needs (persistancy). The DataStorage.Worker will not write anything to a fil...
27.862069
76
0.69802
1dcf1372f07d42f386f3f246f4100b10e36cfe87
10,951
ex
Elixir
lib/integration_test.ex
adobe/bot_army
68369a846d13e4ff973fdbc5decd418cc6e80f43
[ "MIT" ]
9
2020-04-30T20:35:49.000Z
2022-03-05T08:30:57.000Z
lib/integration_test.ex
adobe/bot_army
68369a846d13e4ff973fdbc5decd418cc6e80f43
[ "MIT" ]
null
null
null
lib/integration_test.ex
adobe/bot_army
68369a846d13e4ff973fdbc5decd418cc6e80f43
[ "MIT" ]
1
2020-09-27T11:44:06.000Z
2020-09-27T11:44:06.000Z
# Copyright 2020 Adobe # All Rights Reserved. # NOTICE: Adobe permits you to use, modify, and distribute this file in # accordance with the terms of the Adobe license agreement accompanying # it. If you have received this file from a source other than Adobe, # then your use, modification, or distribution of it require...
27.86514
94
0.606155
1dcf5237c67b0f6d331b3f7e26ec41d3745d2aa8
350
exs
Elixir
config/test.exs
aai/kerosene
cd960cb7ce4cf4c4a9212f570083639ff4cd2b40
[ "MIT" ]
null
null
null
config/test.exs
aai/kerosene
cd960cb7ce4cf4c4a9212f570083639ff4cd2b40
[ "MIT" ]
null
null
null
config/test.exs
aai/kerosene
cd960cb7ce4cf4c4a9212f570083639ff4cd2b40
[ "MIT" ]
null
null
null
use Mix.Config config :kerosene, ecto_repos: [Kerosene.Repo] config :kerosene, Kerosene.Repo, adapter: Ecto.Adapters.Postgres, username: "postgres", password: "postgres", database: "kerosene_dev", hostname: "localhost", pool: Ecto.Adapters.SQL.Sandbox # shut up only log errors config :logger...
21.875
46
0.697143
1dcf7486a2a90b94a53e35fe59dc4b3c61863a60
4,471
ex
Elixir
lib/student_list_web/controllers/user_auth.ex
jwarwick/student_list
d35a2fcef2025d3de9b7915682965c48481c1d15
[ "MIT" ]
1
2021-06-27T20:02:11.000Z
2021-06-27T20:02:11.000Z
lib/student_list_web/controllers/user_auth.ex
jwarwick/student_list
d35a2fcef2025d3de9b7915682965c48481c1d15
[ "MIT" ]
null
null
null
lib/student_list_web/controllers/user_auth.ex
jwarwick/student_list
d35a2fcef2025d3de9b7915682965c48481c1d15
[ "MIT" ]
null
null
null
defmodule StudentListWeb.UserAuth do @moduledoc """ User Authorization support """ import Plug.Conn import Phoenix.Controller alias StudentList.Accounts alias StudentListWeb.Router.Helpers, as: Routes # Make the remember me cookie valid for 60 days. # If you want bump or reduce this value, also cha...
29.032468
81
0.696265
1dcf7dc37c34bd7fc3223d082be2801b667d56e2
26,980
ex
Elixir
lib/elixir/lib/system.ex
tsutsu/elixir
f51865bd148d6d5f4fc02cfe441b2c1802dcc9ca
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/system.ex
tsutsu/elixir
f51865bd148d6d5f4fc02cfe441b2c1802dcc9ca
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/system.ex
tsutsu/elixir
f51865bd148d6d5f4fc02cfe441b2c1802dcc9ca
[ "Apache-2.0" ]
null
null
null
defmodule System do @moduledoc """ The `System` module provides functions that interact directly with the VM or the host system. ## Time The `System` module also provides functions that work with time, returning different times kept by the system with support for different time units. One of the comp...
29.911308
97
0.676946
1dcf8ba1a26c67a3fd71ca6e842e07675a72bec7
2,871
exs
Elixir
persistent_list/test/persistent_list_test/day10_test.exs
alex-dukhno/elixir-tdd-katas
57e25fc275c4274c889f2b3760276cc8a393de9e
[ "MIT" ]
null
null
null
persistent_list/test/persistent_list_test/day10_test.exs
alex-dukhno/elixir-tdd-katas
57e25fc275c4274c889f2b3760276cc8a393de9e
[ "MIT" ]
null
null
null
persistent_list/test/persistent_list_test/day10_test.exs
alex-dukhno/elixir-tdd-katas
57e25fc275c4274c889f2b3760276cc8a393de9e
[ "MIT" ]
null
null
null
defmodule PersistentListTest.Day10 do use ExUnit.Case import PersistentList.Day10 defp empty(), do: new() defp from_to(from, to), do: empty() |> from_to(from, to) defp from_to(list, from, to) when from == to + 1, do: list defp from_to(list, from, to), do: list |> append...
26.33945
60
0.494949
1dcf96067e546bf32c903dc24f0acc2ab2c1fcd4
261
ex
Elixir
lib/flix_web/graphql/types/genre.ex
conradwt/flix-elixir
e4d6bf6fd79be12fbed6fb6250f78e929247c1a4
[ "MIT" ]
3
2021-03-21T23:52:16.000Z
2021-06-02T03:47:00.000Z
lib/flix_web/graphql/types/genre.ex
conradwt/flix-elixir
e4d6bf6fd79be12fbed6fb6250f78e929247c1a4
[ "MIT" ]
44
2021-04-09T04:04:13.000Z
2022-03-29T06:29:37.000Z
lib/flix_web/graphql/types/genre.ex
conradwt/flix-elixir
e4d6bf6fd79be12fbed6fb6250f78e929247c1a4
[ "MIT" ]
null
null
null
defmodule FlixWeb.Graphql.Types.Genre do use Absinthe.Schema.Notation @desc "a genre" object :genre do @desc "unique identifier for the genre" field :id, non_null(:string) @desc "name of a genre" field :name, non_null(:string) end end
20.076923
43
0.689655
1dcf9d044f0a05ddcb27cbf1bda750b82197a1dc
15,368
ex
Elixir
lib/level_web/schema/objects.ex
DavidAlphaFox/level
7800e05dcc0104c44d80dbe4eb71a4074e443902
[ "Apache-2.0" ]
1
2019-06-11T20:20:32.000Z
2019-06-11T20:20:32.000Z
lib/level_web/schema/objects.ex
DavidAlphaFox/level
7800e05dcc0104c44d80dbe4eb71a4074e443902
[ "Apache-2.0" ]
null
null
null
lib/level_web/schema/objects.ex
DavidAlphaFox/level
7800e05dcc0104c44d80dbe4eb71a4074e443902
[ "Apache-2.0" ]
null
null
null
defmodule LevelWeb.Schema.Objects do @moduledoc false use Absinthe.Schema.Notation import Absinthe.Resolution.Helpers alias Level.AssetStore alias Level.Files alias Level.Groups alias Level.Posts alias Level.Resolvers alias Level.Schemas.Post alias Level.Schemas.Reply alias Level.Schemas.SearchR...
29.106061
98
0.661309
1dcfbea9761e72e9c1786e56f09ba264fdcf6edf
1,084
ex
Elixir
lib/brick/component/sources.ex
LostKobrakai/brick
11833502e403170c5e3a857050cbdbfceab51ffa
[ "Apache-2.0" ]
1
2021-02-06T14:28:42.000Z
2021-02-06T14:28:42.000Z
lib/brick/component/sources.ex
LostKobrakai/brick
11833502e403170c5e3a857050cbdbfceab51ffa
[ "Apache-2.0" ]
null
null
null
lib/brick/component/sources.ex
LostKobrakai/brick
11833502e403170c5e3a857050cbdbfceab51ffa
[ "Apache-2.0" ]
null
null
null
defmodule Brick.Component.Sources do @moduledoc false @type path_lookup :: %{ optional(Brick.Component.variant_name()) => Path.t() } @spec grouped_up_sources(list, path_lookup) :: %{ optional(Brick.Component.variant_name()) => Brick.Component.source() } def grouped_up_source...
30.971429
78
0.624539
1dcfc18de2222ab8e54f696165a8fdf754bad65e
708
ex
Elixir
lib/phxcrd_web/gettext.ex
spapas/phxcrd
84877896f56400b0cc8624fe96c4fe4f5fd8053c
[ "MIT" ]
18
2019-06-21T09:55:46.000Z
2022-02-16T18:44:17.000Z
lib/phxcrd_web/gettext.ex
spapas/phxcrd
84877896f56400b0cc8624fe96c4fe4f5fd8053c
[ "MIT" ]
16
2019-05-21T20:19:44.000Z
2020-05-12T08:30:42.000Z
lib/phxcrd_web/gettext.ex
spapas/phxcrd
84877896f56400b0cc8624fe96c4fe4f5fd8053c
[ "MIT" ]
2
2019-09-05T00:35:27.000Z
2020-10-17T16:36:35.000Z
defmodule PhxcrdWeb.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 PhxcrdWeb.Gettext # Simple translation gettext("Here is the...
28.32
72
0.676554
1dd0064dbd8e3d523a9273ee2cc6b03eb91595ba
2,678
ex
Elixir
lib/tesla/migration.ex
RamanBut-Husaim/tesla
d618115c27950cac8e7c1b4ee305d7df575b2383
[ "MIT" ]
1
2021-04-19T06:48:59.000Z
2021-04-19T06:48:59.000Z
lib/tesla/migration.ex
sdn90/tesla
4c59ef6ca7dac632a474c054f02c3323504bd03c
[ "MIT" ]
null
null
null
lib/tesla/migration.ex
sdn90/tesla
4c59ef6ca7dac632a474c054f02c3323504bd03c
[ "MIT" ]
null
null
null
defmodule Tesla.Migration do @moduledoc false ## ALIASES @breaking_alias "https://github.com/teamon/tesla/wiki/0.x-to-1.0-Migration-Guide#dropped-aliases-support-159" @breaking_headers_map "https://github.com/teamon/tesla/wiki/0.x-to-1.0-Migration-Guide#headers-are-now-a-list-160" @breaking_client_fun "https...
23.286957
119
0.615011
1dd026c922276bc420e8957390300b5f296385b7
2,132
ex
Elixir
clients/app_engine/lib/google_api/app_engine/v1/model/deployment.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/app_engine/lib/google_api/app_engine/v1/model/deployment.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/app_engine/lib/google_api/app_engine/v1/model/deployment.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
1
2018-07-28T20:50:50.000Z
2018-07-28T20:50:50.000Z
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
39.481481
225
0.750469
1dd026f3d3a082e57034233957b1db5263387049
1,537
ex
Elixir
lib/exnn/trainer/mutations/agent.ex
zampino/exnn
2be888df107644daab1aca7614fecb4940fe3c84
[ "MIT" ]
104
2015-06-18T18:54:25.000Z
2021-11-04T15:07:02.000Z
lib/exnn/trainer/mutations/agent.ex
nelyj/exnn
2be888df107644daab1aca7614fecb4940fe3c84
[ "MIT" ]
3
2016-10-09T11:19:42.000Z
2018-09-17T16:36:32.000Z
lib/exnn/trainer/mutations/agent.ex
nelyj/exnn
2be888df107644daab1aca7614fecb4940fe3c84
[ "MIT" ]
17
2016-03-08T19:02:51.000Z
2019-04-27T16:40:52.000Z
defmodule EXNN.Trainer.Mutations.Agent do @moduledoc false alias EXNN.Trainer.Mutations.Set.Mutation def apply mutation_set do mutation_set |> Enum.map(&spawn_async_task/1) |> EXNN.Utils.Task.wait_all {:ok, EXNN.Connectome.neurons} end def spawn_async_task(mutation) do Task.async __MODU...
25.196721
89
0.672739
1dd047e4f638912c8fae3419918025e488855c59
493
ex
Elixir
lib/esquew/hub/hub_supervisor.ex
bwireman/esquew
0e4cfdcd00e4b826dd6fd5cf725e8b32d298aad2
[ "Apache-2.0" ]
null
null
null
lib/esquew/hub/hub_supervisor.ex
bwireman/esquew
0e4cfdcd00e4b826dd6fd5cf725e8b32d298aad2
[ "Apache-2.0" ]
null
null
null
lib/esquew/hub/hub_supervisor.ex
bwireman/esquew
0e4cfdcd00e4b826dd6fd5cf725e8b32d298aad2
[ "Apache-2.0" ]
null
null
null
defmodule Esquew.Hub.Supervisor do use Supervisor @moduledoc """ Supervisor for the Hub and Registry """ def start_link(init_arg) do Supervisor.start_link(__MODULE__, init_arg, name: __MODULE__) end @impl true def init(_init_arg) do children = [ %{ id: Esquew.Hub, start:...
19.72
65
0.638945
1dd06a4ec7cf2743135063609b9d0a0758be294a
312
ex
Elixir
lib/ex_admin/theme_helpers.ex
jcarlos7121/ex_admin
60a07320efaf549814d29f3593715543aef51e6b
[ "MIT" ]
1,347
2015-10-05T18:23:49.000Z
2022-01-09T18:38:36.000Z
lib/ex_admin/theme_helpers.ex
leonardzhou/ex_admin
c241e956503c548a472e3ee89751e64a16477638
[ "MIT" ]
402
2015-10-03T13:53:32.000Z
2021-07-08T09:52:22.000Z
lib/ex_admin/theme_helpers.ex
leonardzhou/ex_admin
c241e956503c548a472e3ee89751e64a16477638
[ "MIT" ]
333
2015-10-12T22:56:57.000Z
2021-05-26T18:40:24.000Z
defmodule ExAdmin.Theme.Helpers do @moduledoc false @default_theme ExAdmin.Theme.AdminLte2 def theme_module(conn, module) do Module.concat(conn.assigns.theme, module) end def theme_module(module) do Application.get_env(:ex_admin, :theme, @default_theme) |> Module.concat(module) end end
24
58
0.746795
1dd06c2b82a2831612969b1cbae1b4d4aea717c8
725
exs
Elixir
config/releases.exs
qhwa/dockerize
d930f06da89a686961da7a5b5bdadb4c9b01ec32
[ "MIT" ]
47
2020-03-04T00:24:26.000Z
2022-01-14T23:34:52.000Z
config/releases.exs
qhwa/dockerize
d930f06da89a686961da7a5b5bdadb4c9b01ec32
[ "MIT" ]
2
2020-06-09T22:25:06.000Z
2020-06-30T21:18:37.000Z
config/releases.exs
qhwa/dockerize
d930f06da89a686961da7a5b5bdadb4c9b01ec32
[ "MIT" ]
null
null
null
import Config # This file is generated by dockerize. It is used for holding sensitive # runtime configurations. For more information about runtime configuration # for mix release, please check the documentation: # - https://hexdocs.pm/mix/Mix.Tasks.Release.html#module-runtime-configuration # # Example: # # config ...
36.25
78
0.72
1dd0a959fc76d442695e78a538cbabe4d08f5d96
692
ex
Elixir
kousa/lib/beef/schemas/room_block.ex
littletof/dogehouse
3815f4fcebde7661903ae18029a03138dc94b736
[ "MIT" ]
1
2021-02-15T21:19:44.000Z
2021-02-15T21:19:44.000Z
kousa/lib/beef/schemas/room_block.ex
littletof/dogehouse
3815f4fcebde7661903ae18029a03138dc94b736
[ "MIT" ]
null
null
null
kousa/lib/beef/schemas/room_block.ex
littletof/dogehouse
3815f4fcebde7661903ae18029a03138dc94b736
[ "MIT" ]
null
null
null
defmodule Beef.Schema.RoomBlock do use Ecto.Schema import Ecto.Changeset alias Beef.Schemas.User alias Beef.Schemas.Room @timestamps_opts [type: :utc_datetime_usec] @derive {Poison.Encoder, only: [:userId, :roomId, :modId]} @primary_key false schema "room_blocks" do belongs_to(:user, User, foreign_...
27.68
67
0.702312
1dd0b0314fed4144d96d1f64241a8120d5b32cbd
893
ex
Elixir
apps/core/lib/core/workos/events/connections.ex
michaeljguarino/forge
50ee583ecb4aad5dee4ef08fce29a8eaed1a0824
[ "Apache-2.0" ]
null
null
null
apps/core/lib/core/workos/events/connections.ex
michaeljguarino/forge
50ee583ecb4aad5dee4ef08fce29a8eaed1a0824
[ "Apache-2.0" ]
2
2019-12-13T23:55:50.000Z
2019-12-17T05:49:58.000Z
apps/core/lib/core/workos/events/connections.ex
michaeljguarino/chartmart
a34c949cc29d6a1ab91c04c5e4f797e6f0daabfc
[ "Apache-2.0" ]
null
null
null
defmodule Core.WorkOS.Events.ConnectionActivated do import Core.WorkOS.Events.Base defstruct [:organization_id, :id, :domains] def build(data) do %__MODULE__{ id: data["id"], organization_id: data["organization_id"], domains: domains(data["domains"]) } end end defmodule Core.WorkOS....
21.261905
53
0.678611
1dd0c7aa9bab9f83b1f970773066894e1fae1bac
694
ex
Elixir
lib/ex_rss_web/controllers/api/v1/entry_controller.ex
cruessler/exrss
6ac17b7533d78460a1c34cabaae86fec317f460a
[ "MIT" ]
4
2020-02-16T07:18:35.000Z
2021-12-09T14:43:10.000Z
lib/ex_rss_web/controllers/api/v1/entry_controller.ex
cruessler/exrss
6ac17b7533d78460a1c34cabaae86fec317f460a
[ "MIT" ]
27
2019-10-16T18:35:19.000Z
2022-03-13T16:39:57.000Z
lib/ex_rss_web/controllers/api/v1/entry_controller.ex
cruessler/exrss
6ac17b7533d78460a1c34cabaae86fec317f460a
[ "MIT" ]
null
null
null
defmodule ExRssWeb.Api.V1.EntryController do use ExRssWeb, :controller alias ExRss.Entry alias ExRss.Repo alias ExRss.User def update(conn, %{"id" => id, "entry" => entry_params}) do changeset = Repo.get!(User, conn.assigns.current_account.id) |> assoc(:entries) |> Repo.get(id) |...
21.6875
77
0.60951