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
e8c402707e5d7d8ccc8f14f4813bdc5e7788591c
395
ex
Elixir
lib/mix/tasks/nerves/local.ex
TORIFUKUKaiou/nerves_bootstrap
8d4142779fa5f2a3719118490c8cd3401c6eb374
[ "Apache-2.0" ]
33
2017-10-20T04:04:00.000Z
2021-04-27T11:15:08.000Z
lib/mix/tasks/nerves/local.ex
TORIFUKUKaiou/nerves_bootstrap
8d4142779fa5f2a3719118490c8cd3401c6eb374
[ "Apache-2.0" ]
67
2018-01-10T15:41:43.000Z
2022-02-23T22:11:55.000Z
lib/mix/tasks/nerves/local.ex
TORIFUKUKaiou/nerves_bootstrap
8d4142779fa5f2a3719118490c8cd3401c6eb374
[ "Apache-2.0" ]
14
2018-02-04T16:31:28.000Z
2022-01-21T11:12:46.000Z
defmodule Mix.Tasks.Local.Nerves do use Mix.Task @shortdoc "Checks for updates to nerves_bootstrap" @moduledoc """ Check for updates to nerves_bootstrap Example: mix local.nerves This accepts the same command line options as `archive.install`. """ @impl Mix.Task def run(_args) do Mix.Ta...
19.75
74
0.688608
e8c404898253c9f1108b5077f8ad461c41d99c2d
1,181
ex
Elixir
web/channels/user_socket.ex
molossus/api
39da836aa244239ad8bf55371f3e1573541eeb7a
[ "BSD-2-Clause" ]
1
2016-02-23T11:31:18.000Z
2016-02-23T11:31:18.000Z
web/channels/user_socket.ex
molossus/api
39da836aa244239ad8bf55371f3e1573541eeb7a
[ "BSD-2-Clause" ]
null
null
null
web/channels/user_socket.ex
molossus/api
39da836aa244239ad8bf55371f3e1573541eeb7a
[ "BSD-2-Clause" ]
null
null
null
defmodule BalanceSheet.UserSocket do use Phoenix.Socket ## Channels # channel "room:*", BalanceSheet.RoomChannel ## Transports transport :websocket, Phoenix.Transports.WebSocket # transport :longpoll, Phoenix.Transports.LongPoll # Socket params are passed from the client and can # be used to verify a...
31.078947
85
0.705334
e8c41d97cf30e66f1d2eb493f6dce6aa211b6e6f
68
ex
Elixir
demos/my_system/lib/my_system.ex
Geekfish/boundary
6ee30502759bc0f9eef2364429f4af58ba5ce881
[ "MIT" ]
null
null
null
demos/my_system/lib/my_system.ex
Geekfish/boundary
6ee30502759bc0f9eef2364429f4af58ba5ce881
[ "MIT" ]
null
null
null
demos/my_system/lib/my_system.ex
Geekfish/boundary
6ee30502759bc0f9eef2364429f4af58ba5ce881
[ "MIT" ]
null
null
null
defmodule MySystem do use Boundary, deps: [], exports: [User] end
17
41
0.705882
e8c41fe6407c2cfaa55ee24d2bd575e84ef3d57c
687
exs
Elixir
test/support/priv/migrations/1_create_tables.exs
instinctscience/versioned
2352464c5c148d85f04fa31c02ab58001a1531f1
[ "MIT" ]
4
2021-09-25T20:11:59.000Z
2022-03-07T20:57:44.000Z
test/support/priv/migrations/1_create_tables.exs
instinctscience/versioned
2352464c5c148d85f04fa31c02ab58001a1531f1
[ "MIT" ]
2
2021-09-22T19:29:26.000Z
2021-10-04T17:31:17.000Z
test/support/priv/migrations/1_create_tables.exs
instinctscience/versioned
2352464c5c148d85f04fa31c02ab58001a1531f1
[ "MIT" ]
3
2021-08-08T10:37:25.000Z
2022-03-07T20:57:32.000Z
defmodule Versioned.Test.Repo.Migrations.CreateCar do use Versioned.Migration def change do create table(:garages) do add(:name, :string) end create_versioned_table(:cars) do add(:name, :string) end add_versioned_column(:cars, :garage_id, references(:garages)) create_versione...
24.535714
72
0.673945
e8c42520e78c1431b19991425a2a969c5174ab66
2,538
ex
Elixir
clients/admin/lib/google_api/admin/directory_v1/model/domains.ex
jamesvl/elixir-google-api
6c87fb31d996f08fb42ce6066317e9d652a87acc
[ "Apache-2.0" ]
null
null
null
clients/admin/lib/google_api/admin/directory_v1/model/domains.ex
jamesvl/elixir-google-api
6c87fb31d996f08fb42ce6066317e9d652a87acc
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/admin/lib/google_api/admin/directory_v1/model/domains.ex
myskoach/elixir-google-api
4f8cbc2fc38f70ffc120fd7ec48e27e46807b563
[ "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...
39.046154
177
0.686761
e8c42a48c414c59651f1d264bc7d77a01acf2057
19,882
exs
Elixir
test/text_delta/backwards_compatibility_with_1.0_test.exs
document-delta/text_delta
a37ccbcabf83c845a1040dd4fb4de9f45382aaf0
[ "MIT" ]
48
2017-05-29T19:39:42.000Z
2022-03-28T15:53:29.000Z
test/text_delta/backwards_compatibility_with_1.0_test.exs
document-delta/text_delta
a37ccbcabf83c845a1040dd4fb4de9f45382aaf0
[ "MIT" ]
1
2017-05-26T15:03:30.000Z
2017-05-26T15:37:16.000Z
test/text_delta/backwards_compatibility_with_1.0_test.exs
document-delta/text_delta
a37ccbcabf83c845a1040dd4fb4de9f45382aaf0
[ "MIT" ]
6
2017-11-30T16:54:27.000Z
2021-05-19T10:27:12.000Z
# Backwards compatibility layer tests. To be removed in 2.0. defmodule TextDelta.BCTest do use ExUnit.Case alias TextDelta.{Delta, Operation} alias TextDelta.Delta.{Iterator} describe "create" do test "empty delta" do assert Delta.new() == [] end test "empty operations" do delta = ...
22.95843
79
0.513329
e8c44e235bee2aa66b6e3a470a14dd5cd7292c3f
2,270
ex
Elixir
lib/avro_rpc/client/client.ex
cafreeman/avro_rpc
e690ace1046499361819d58a71f5fa9507f2cdeb
[ "MIT" ]
null
null
null
lib/avro_rpc/client/client.ex
cafreeman/avro_rpc
e690ace1046499361819d58a71f5fa9507f2cdeb
[ "MIT" ]
null
null
null
lib/avro_rpc/client/client.ex
cafreeman/avro_rpc
e690ace1046499361819d58a71f5fa9507f2cdeb
[ "MIT" ]
null
null
null
defmodule AvroRPC.Client do @moduledoc """ Module for interacting with AvroRPC endpoints as a client. """ use GenServer defmodule State do @moduledoc """ Struct definition for the AvroRPC.Client GenServer state. """ defstruct [ protocol: nil, name: nil ] @type t :: %State...
31.09589
107
0.67533
e8c46d73908e9a6ea79072a54f206fb46f92a2de
3,268
exs
Elixir
test/integration/element_handle_test.exs
dbrody/playwright-elixir
48611c08dbdb8e36aa4dd8aa2d97a4014b753815
[ "MIT" ]
30
2021-06-01T16:59:35.000Z
2022-03-25T16:56:19.000Z
test/integration/element_handle_test.exs
dbrody/playwright-elixir
48611c08dbdb8e36aa4dd8aa2d97a4014b753815
[ "MIT" ]
35
2021-06-10T17:05:31.000Z
2022-02-11T22:30:36.000Z
test/integration/element_handle_test.exs
dbrody/playwright-elixir
48611c08dbdb8e36aa4dd8aa2d97a4014b753815
[ "MIT" ]
4
2021-08-13T20:38:18.000Z
2022-01-31T04:32:35.000Z
defmodule Playwright.ElementHandleTest do use Playwright.TestCase, async: true alias Playwright.{ElementHandle, Frame, JSHandle, Page} describe "ElementHandle" do test ":preview field", %{assets: assets, page: page} do Page.goto(page, assets.prefix <> "/dom.html") with %ElementHandle{} = outer <...
32.356436
99
0.609547
e8c48bada37d2e7a58430eab230027ae218434f5
17,098
ex
Elixir
lib/brando_admin/components/form/input/multi_select.ex
univers-agency/brando
69c3c52498a3f64518da3522cd9f27294a52cc68
[ "Apache-2.0" ]
1
2020-04-26T09:53:02.000Z
2020-04-26T09:53:02.000Z
lib/brando_admin/components/form/input/multi_select.ex
univers-agency/brando
69c3c52498a3f64518da3522cd9f27294a52cc68
[ "Apache-2.0" ]
198
2019-08-20T16:16:07.000Z
2020-07-03T15:42:07.000Z
lib/brando_admin/components/form/input/multi_select.ex
univers-agency/brando
69c3c52498a3f64518da3522cd9f27294a52cc68
[ "Apache-2.0" ]
null
null
null
defmodule BrandoAdmin.Components.Form.Input.MultiSelect do use BrandoAdmin, :live_component import Brando.Gettext import BrandoAdmin.Components.Content.List.Row, only: [status_circle: 1] alias BrandoAdmin.Components.Content alias BrandoAdmin.Components.Form alias BrandoAdmin.Components.Form.Fieldset alia...
31.143898
142
0.526026
e8c48ee4d2236cd1e0f3f7ffaa3295d3453cb07b
2,101
ex
Elixir
clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/country.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/country.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/country.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
35.610169
160
0.693955
e8c4a9be388115dfc0d991b8ae233c7f69e6050e
1,413
exs
Elixir
test/bpmn_test.exs
cjsuite/bpxe
4b4759b7e2e8ced9f6f76ab55e5da26eb319a7c9
[ "Apache-2.0" ]
null
null
null
test/bpmn_test.exs
cjsuite/bpxe
4b4759b7e2e8ced9f6f76ab55e5da26eb319a7c9
[ "Apache-2.0" ]
null
null
null
test/bpmn_test.exs
cjsuite/bpxe
4b4759b7e2e8ced9f6f76ab55e5da26eb319a7c9
[ "Apache-2.0" ]
null
null
null
defmodule BPXETest.BPMN do use ExUnit.Case, async: true alias BPXE.Engine.Model doctest BPXE.BPMN test "parsing sample" do {:ok, pid} = BPXE.Engine.Models.start_model() {:ok, _} = BPXE.BPMN.parse_stream(File.stream!(Path.join(__DIR__, "/files/sample.bpmn")), model: pid ) end t...
27.705882
115
0.609342
e8c4afe5a988ddf8a1db5b127367007ce2c6f79f
4,637
ex
Elixir
lib/telemetry_metrics_prometheus.ex
pallix/telemetry_metrics_prometheus
28ddbd36989bf4a0d497821fd7ad63b4e7081007
[ "Apache-2.0" ]
null
null
null
lib/telemetry_metrics_prometheus.ex
pallix/telemetry_metrics_prometheus
28ddbd36989bf4a0d497821fd7ad63b4e7081007
[ "Apache-2.0" ]
null
null
null
lib/telemetry_metrics_prometheus.ex
pallix/telemetry_metrics_prometheus
28ddbd36989bf4a0d497821fd7ad63b4e7081007
[ "Apache-2.0" ]
null
null
null
defmodule TelemetryMetricsPrometheus do @moduledoc """ Prometheus Reporter for [`Telemetry.Metrics`](https://github.com/beam-telemetry/telemetry_metrics) definitions. Provide a list of metric definitions to the `init/2` function. It's recommended to run TelemetryMetricsPrometheus under a supervision tree, usua...
34.348148
281
0.672633
e8c4ba3eae5b40d59612c49afe06b5cb9d7692c9
2,979
ex
Elixir
web/uploaders/base_uploader.ex
kenta-aktsk/media_sample
a0368236bd81c18ac136a54aa7383332a5e3cf36
[ "MIT" ]
99
2016-04-19T11:11:57.000Z
2021-12-12T14:38:02.000Z
web/uploaders/base_uploader.ex
ogamw/media_sample
a0368236bd81c18ac136a54aa7383332a5e3cf36
[ "MIT" ]
48
2016-04-06T02:28:46.000Z
2016-05-31T06:56:56.000Z
web/uploaders/base_uploader.ex
ogamw/media_sample
a0368236bd81c18ac136a54aa7383332a5e3cf36
[ "MIT" ]
32
2016-04-19T11:12:00.000Z
2021-03-25T18:19:52.000Z
defmodule MediaSample.BaseUploader do defmacro __using__(opts) do repo = Module.split(__CALLER__.module) |> List.first |> Module.safe_concat(Repo) quote location: :keep do use Arc.Definition import unquote(__MODULE__) alias Ecto.Changeset alias unquote(repo) unquote(config(opts))...
34.639535
138
0.600537
e8c4e880d55c9bc985bab7081e1c12cbbfc4d9f0
1,712
ex
Elixir
clients/cloud_kms/lib/google_api/cloud_kms/v1/model/test_iam_permissions_request.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/cloud_kms/lib/google_api/cloud_kms/v1/model/test_iam_permissions_request.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/cloud_kms/lib/google_api/cloud_kms/v1/model/test_iam_permissions_request.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
34.24
135
0.737734
e8c4f46dd24cf2a6b309286d3aa2e57e3fd013dc
299
exs
Elixir
apps/startpage/priv/repo/migrations/20191210154319_create_folders.exs
allen-garvey/phoenix-umbrella
1d444bbd62a5e7b5f51d317ce2be71ee994125d5
[ "MIT" ]
4
2019-10-04T16:11:15.000Z
2021-08-18T21:00:13.000Z
apps/startpage/priv/repo/migrations/20191210154319_create_folders.exs
allen-garvey/phoenix-umbrella
1d444bbd62a5e7b5f51d317ce2be71ee994125d5
[ "MIT" ]
5
2020-03-16T23:52:25.000Z
2021-09-03T16:52:17.000Z
apps/startpage/priv/repo/migrations/20191210154319_create_folders.exs
allen-garvey/phoenix-umbrella
1d444bbd62a5e7b5f51d317ce2be71ee994125d5
[ "MIT" ]
null
null
null
defmodule Startpage.Repo.Migrations.CreateFolders do use Ecto.Migration def change do create table(:folders) do add :name, :text, null: false add :theme, :text, null: false add :order, :integer, null: false add :content, :text timestamps() end end end
18.6875
52
0.64214
e8c50bc7266b7bd8328f7912b926f3debca475b1
1,750
ex
Elixir
packages/elixir/lib/riptide/schema/types.ex
venomnert/riptide
39a50047bb51cd30a93ff7022bb01385c28a4f03
[ "MIT" ]
11
2020-01-20T16:42:00.000Z
2021-09-18T11:36:45.000Z
packages/elixir/lib/riptide/schema/types.ex
venomnert/riptide
39a50047bb51cd30a93ff7022bb01385c28a4f03
[ "MIT" ]
16
2020-04-05T19:26:14.000Z
2020-05-21T14:50:59.000Z
packages/elixir/lib/riptide/schema/types.ex
venomnert/riptide
39a50047bb51cd30a93ff7022bb01385c28a4f03
[ "MIT" ]
2
2020-10-16T11:01:57.000Z
2021-01-20T21:11:52.000Z
defmodule Riptide.Schema.Type.Number do def validate(item, _opts) when is_number(item), do: :ok def validate(_item, _opts), do: {:error, :not_number} end defmodule Riptide.Schema.Type.String do def validate(item, _opts) when is_binary(item), do: :ok def validate(_item, _opts), do: {:error, :not_string} end de...
22.435897
66
0.621143
e8c55f45652ace4ca82bd452285fb7114b6e6860
15,344
ex
Elixir
lib/elixir/lib/inspect.ex
vanstee/elixir
ecce4a991f02bc04c7a6527b6a8e7a8ddbfe4f64
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/inspect.ex
vanstee/elixir
ecce4a991f02bc04c7a6527b6a8e7a8ddbfe4f64
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/inspect.ex
vanstee/elixir
ecce4a991f02bc04c7a6527b6a8e7a8ddbfe4f64
[ "Apache-2.0" ]
null
null
null
import Kernel, except: [inspect: 1] import Inspect.Algebra 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. The `inspect/2` functi...
27.498208
100
0.60232
e8c57de3621f26b9ac5afbd56588897f8cb59b05
622
exs
Elixir
mix.exs
hauleth/magritte
95fbcd02bd61255a54085e371735ce6a1377c46e
[ "MIT" ]
18
2020-08-10T20:28:08.000Z
2021-11-04T21:55:00.000Z
mix.exs
hauleth/magritte
95fbcd02bd61255a54085e371735ce6a1377c46e
[ "MIT" ]
1
2020-08-11T14:39:06.000Z
2021-05-07T08:01:45.000Z
mix.exs
hauleth/magritte
95fbcd02bd61255a54085e371735ce6a1377c46e
[ "MIT" ]
1
2021-01-13T23:25:42.000Z
2021-01-13T23:25:42.000Z
defmodule Magritte.MixProject do use Mix.Project def project do [ app: :magritte, description: "Ceci n'est pas une pipe - extended pipe operator", version: "0.1.2", elixir: "~> 1.10", start_permanent: Mix.env() == :prod, docs: [ main: "Magritte" ], packag...
16.368421
70
0.511254
e8c58240ac36cb5114f2c38ec759ea3a590ba4a8
1,126
exs
Elixir
priv/repo/migrations/20160617190613_protect_admin_group_membership.exs
matusf/cog
71708301c7dc570fb0d3498a50f47a70ef957788
[ "Apache-2.0" ]
1,003
2016-02-23T17:21:12.000Z
2022-02-20T14:39:35.000Z
priv/repo/migrations/20160617190613_protect_admin_group_membership.exs
matusf/cog
71708301c7dc570fb0d3498a50f47a70ef957788
[ "Apache-2.0" ]
906
2016-02-22T22:54:19.000Z
2022-03-11T15:19:43.000Z
priv/repo/migrations/20160617190613_protect_admin_group_membership.exs
matusf/cog
71708301c7dc570fb0d3498a50f47a70ef957788
[ "Apache-2.0" ]
95
2016-02-23T13:42:31.000Z
2021-11-30T14:39:55.000Z
defmodule Cog.Repo.Migrations.ProtectAdminGroupMembership do use Ecto.Migration def up do execute """ CREATE OR REPLACE FUNCTION protect_admin_group_membership() RETURNS TRIGGER LANGUAGE plpgsql AS $$ DECLARE admin_member_id uuid; cog_admin_group_id uuid; BEGIN SE...
22.979592
83
0.678508
e8c5c01f5e8c06ad3c6342cdc07ca77fc786d742
978
ex
Elixir
lib/repg2/ets.ex
jechol/repg2
eba11a703104d52c349c864ca3d79c636c71542f
[ "Apache-2.0" ]
null
null
null
lib/repg2/ets.ex
jechol/repg2
eba11a703104d52c349c864ca3d79c636c71542f
[ "Apache-2.0" ]
null
null
null
lib/repg2/ets.ex
jechol/repg2
eba11a703104d52c349c864ca3d79c636c71542f
[ "Apache-2.0" ]
null
null
null
defmodule RePG2.ETS do @moduledoc false @ets_table __MODULE__ def new do @ets_table = :ets.new(@ets_table, [:ordered_set, :protected, :named_table]) :ok end def member(key), do: :ets.member(@ets_table, key) def insert(object), do: :ets.insert(@ets_table, object) def delete(key), do: :ets.del...
25.076923
79
0.686094
e8c5c02f5c76acb975faf4da2bfcf8e744871975
572
ex
Elixir
lib/mail_slurp_api/model/inbox_forwarder_test_result.ex
mailslurp/mailslurp-client-elixir
5b98b91bb327de5216e873cd45b4fbb3c1b55c90
[ "MIT" ]
1
2021-06-17T18:07:49.000Z
2021-06-17T18:07:49.000Z
lib/mail_slurp_api/model/inbox_forwarder_test_result.ex
mailslurp/mailslurp-client-elixir
5b98b91bb327de5216e873cd45b4fbb3c1b55c90
[ "MIT" ]
null
null
null
lib/mail_slurp_api/model/inbox_forwarder_test_result.ex
mailslurp/mailslurp-client-elixir
5b98b91bb327de5216e873cd45b4fbb3c1b55c90
[ "MIT" ]
1
2021-03-16T18:55:56.000Z
2021-03-16T18:55:56.000Z
# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). # https://openapi-generator.tech # Do not edit the class manually. defmodule MailSlurpAPI.Model.InboxForwarderTestResult do @moduledoc """ """ @derive [Poison.Encoder] defstruct [ :"doesMatch", :"matches" ...
20.428571
91
0.681818
e8c5ec29d99964c426ec7f2fb979b494aae30f6f
109
ex
Elixir
test/support/auth/test_repo.ex
shuv1824/potionx
a5888413b13a520d8ddf79fb26b7483e441737c3
[ "MIT" ]
31
2021-02-16T20:50:46.000Z
2022-02-03T10:38:07.000Z
test/support/auth/test_repo.ex
shuv1824/potionx
a5888413b13a520d8ddf79fb26b7483e441737c3
[ "MIT" ]
6
2021-04-07T21:50:20.000Z
2022-02-06T21:54:04.000Z
test/support/auth/test_repo.ex
shuv1824/potionx
a5888413b13a520d8ddf79fb26b7483e441737c3
[ "MIT" ]
4
2021-03-25T17:59:44.000Z
2021-04-25T16:28:22.000Z
defmodule PotionxTest.Repo do use Ecto.Repo, otp_app: :potionx, adapter: Ecto.Adapters.Postgres end
21.8
35
0.743119
e8c640663c06ca4a793b12d1309483556fb07b1f
4,019
exs
Elixir
test/yum/ingredient_test.exs
ZURASTA/yum
132cb79ab328d2e4063d581f79fde0ff4243eb02
[ "BSD-2-Clause" ]
null
null
null
test/yum/ingredient_test.exs
ZURASTA/yum
132cb79ab328d2e4063d581f79fde0ff4243eb02
[ "BSD-2-Clause" ]
4
2017-08-02T08:38:18.000Z
2017-12-23T12:21:02.000Z
test/yum/ingredient_test.exs
ZURASTA/yum
132cb79ab328d2e4063d581f79fde0ff4243eb02
[ "BSD-2-Clause" ]
3
2017-07-25T10:17:28.000Z
2017-10-04T05:46:01.000Z
defmodule Yum.IngredientTest do use ExUnit.Case setup do %{ ingredients: %{ "one" => %{ :__info__ => %{}, "foo" => %{ :__info__ => %{ "translation" => %{ "en" => %{ "term" => "1" } },...
57.414286
204
0.360537
e8c66a927e04a7eae298fbf6801cfd2fff5372cb
15,012
ex
Elixir
lib/kaffy_web/controllers/resource_controller.ex
firevale/kaffy
329c0cbd1bf3589d26140543a4f574273a74b600
[ "MIT" ]
null
null
null
lib/kaffy_web/controllers/resource_controller.ex
firevale/kaffy
329c0cbd1bf3589d26140543a4f574273a74b600
[ "MIT" ]
null
null
null
lib/kaffy_web/controllers/resource_controller.ex
firevale/kaffy
329c0cbd1bf3589d26140543a4f574273a74b600
[ "MIT" ]
null
null
null
defmodule KaffyWeb.ResourceController do @moduledoc false use Phoenix.Controller, namespace: KaffyWeb use Phoenix.HTML alias Kaffy.Pagination def index( conn, %{ "context" => context, "resource" => resource, "c" => _target_context, "r" => _target_resou...
32.849015
98
0.582534
e8c689451f5b5a2d9a708ffc3ff691a0b0392530
726
exs
Elixir
exercism/bracket-push/bracket_push.exs
defndaines/elixir_bits
78a9c2dc0c9946df715a662ef62cd437fdd9e3d1
[ "Apache-2.0" ]
null
null
null
exercism/bracket-push/bracket_push.exs
defndaines/elixir_bits
78a9c2dc0c9946df715a662ef62cd437fdd9e3d1
[ "Apache-2.0" ]
null
null
null
exercism/bracket-push/bracket_push.exs
defndaines/elixir_bits
78a9c2dc0c9946df715a662ef62cd437fdd9e3d1
[ "Apache-2.0" ]
null
null
null
defmodule BracketPush do @doc """ Checks that all the brackets and braces in the string are matched correctly, and nested correctly """ @spec check_brackets(String.t) :: boolean def check_brackets(str) do Enum.empty?(Enum.reduce(String.graphemes(str), [], &do_check/2)) end @brackets ["[", "{", "(", "...
27.923077
99
0.561983
e8c695506e59968484a64626fce13f1d16d0ca74
397
ex
Elixir
lib/diode_client/sup.ex
diodechain/diode_client_ex
0aec3aa7a2e3448cccfc255b4d4e8d2cbf475c7f
[ "Apache-2.0" ]
null
null
null
lib/diode_client/sup.ex
diodechain/diode_client_ex
0aec3aa7a2e3448cccfc255b4d4e8d2cbf475c7f
[ "Apache-2.0" ]
null
null
null
lib/diode_client/sup.ex
diodechain/diode_client_ex
0aec3aa7a2e3448cccfc255b4d4e8d2cbf475c7f
[ "Apache-2.0" ]
null
null
null
defmodule DiodeClient.Sup do alias DiodeClient.{Acceptor, Manager} def start_link(name) do Supervisor.start_link(__MODULE__, name) end def child_spec(name) do %{ id: name, start: {__MODULE__, :start_link, [name]}, type: :supervisor } end def init(_name) do Supervisor.ini...
19.85
84
0.672544
e8c6a4d718f83528e8dd05c6bcd95161aca9be93
610
ex
Elixir
lib/console_web/plug/verify_remote_ip_range.ex
maco2035/console
2a9a65678b8c671c7d92cdb62dfcfc71b84957c5
[ "Apache-2.0" ]
83
2018-05-31T14:49:10.000Z
2022-03-27T16:49:49.000Z
lib/console_web/plug/verify_remote_ip_range.ex
maco2035/console
2a9a65678b8c671c7d92cdb62dfcfc71b84957c5
[ "Apache-2.0" ]
267
2018-05-22T23:19:02.000Z
2022-03-31T04:31:06.000Z
lib/console_web/plug/verify_remote_ip_range.ex
maco2035/console
2a9a65678b8c671c7d92cdb62dfcfc71b84957c5
[ "Apache-2.0" ]
18
2018-11-20T05:15:54.000Z
2022-03-28T08:20:13.000Z
defmodule ConsoleWeb.Plug.VerifyRemoteIpRange do import Plug.Conn, only: [send_resp: 3, halt: 1] def init(default), do: default def call(conn, _default) do if System.get_env("BLOCK_NON_PROXY") do case conn |> ip_to_string() |> in_allowed_ips() do true -> conn _ -> conn |> send_resp(:fo...
23.461538
73
0.64918
e8c6a6cf146e4577de4d421ed9d26133de1d5e34
517
exs
Elixir
priv/repo/migrations/20171024211706_create_contacts.exs
Miradorn/absinthe_tutorial
fbe63be1d4acc92c7a85d4a04fd259ac6b5ef072
[ "MIT" ]
69
2017-11-15T17:26:57.000Z
2022-01-25T16:37:40.000Z
priv/repo/migrations/20171024211706_create_contacts.exs
Miradorn/absinthe_tutorial
fbe63be1d4acc92c7a85d4a04fd259ac6b5ef072
[ "MIT" ]
24
2020-01-27T20:44:40.000Z
2020-10-29T05:48:31.000Z
priv/repo/migrations/20171024211706_create_contacts.exs
Miradorn/absinthe_tutorial
fbe63be1d4acc92c7a85d4a04fd259ac6b5ef072
[ "MIT" ]
35
2017-11-12T22:04:10.000Z
2021-07-22T18:00:39.000Z
defmodule Blog.Repo.Migrations.CreateContacts do use Ecto.Migration def up do create table(:contacts) do add :type, :string, null: false add :value, :string, null: false add :user_id, references(:users, on_delete: :nothing) timestamps() end create index(:contacts, [:user_id]) ...
22.478261
59
0.655706
e8c6b5b58126ff89218231685a7329770a02e39b
1,632
ex
Elixir
clients/dataflow/lib/google_api/dataflow/v1b3/model/failed_location.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/dataflow/lib/google_api/dataflow/v1b3/model/failed_location.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/dataflow/lib/google_api/dataflow/v1b3/model/failed_location.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
32
89
0.735907
e8c6c3583312d6a9df7a9e52b85e24a647e61c1d
290
ex
Elixir
lib/bella/config.ex
batteries-included/bella
479817bc6b516dc3b5c0a8dcdeca5696b1dd0273
[ "MIT" ]
null
null
null
lib/bella/config.ex
batteries-included/bella
479817bc6b516dc3b5c0a8dcdeca5696b1dd0273
[ "MIT" ]
1
2021-08-25T04:42:14.000Z
2021-08-25T04:42:14.000Z
lib/bella/config.ex
batteries-included/bella
479817bc6b516dc3b5c0a8dcdeca5696b1dd0273
[ "MIT" ]
null
null
null
defmodule Bella.Config do @moduledoc """ Operator configuration interface """ @doc """ `K8s.Cluster` name used for this operator. Defaults to `:default` """ @spec cluster_name() :: atom def cluster_name do Application.get_env(:bella, :cluster_name, :default) end end
20.714286
67
0.686207
e8c7192b4f2cff4a06bd09f6656c038ec42153a2
6,555
exs
Elixir
test/pow/phoenix/controllers/registration_controller_test.exs
foggy1/pow
c46cf4c4c2d59d10861783faa46f3979d54343a9
[ "MIT" ]
null
null
null
test/pow/phoenix/controllers/registration_controller_test.exs
foggy1/pow
c46cf4c4c2d59d10861783faa46f3979d54343a9
[ "MIT" ]
null
null
null
test/pow/phoenix/controllers/registration_controller_test.exs
foggy1/pow
c46cf4c4c2d59d10861783faa46f3979d54343a9
[ "MIT" ]
null
null
null
defmodule Pow.Phoenix.RegistrationControllerTest do use Pow.Test.Phoenix.ConnCase alias Pow.Plug describe "new/2" do test "shows", %{conn: conn} do conn = get(conn, Routes.pow_registration_path(conn, :new)) assert html = html_response(conn, 200) assert html =~ Routes.pow_registration_path(...
39.017857
110
0.645309
e8c767c17200f693c3d35488e3d05614a8d81795
415
ex
Elixir
lib/elsol/query/facet.ex
boonious/elsol
ad983b7dddae74f78411334d850dfe37ac6ffbb2
[ "Apache-2.0" ]
9
2016-06-30T16:49:49.000Z
2021-04-06T12:12:36.000Z
lib/elsol/query/facet.ex
boonious/elsol
ad983b7dddae74f78411334d850dfe37ac6ffbb2
[ "Apache-2.0" ]
11
2016-10-11T04:07:01.000Z
2017-05-10T23:38:17.000Z
lib/elsol/query/facet.ex
boonious/elsol
ad983b7dddae74f78411334d850dfe37ac6ffbb2
[ "Apache-2.0" ]
4
2016-04-16T02:20:12.000Z
2020-05-09T04:43:10.000Z
defmodule Elsol.Query.Facet do defstruct facet: true, facet_field: [], facet_query: [], facet_pivot: [], facet_prefix: nil, facet_range: nil, facet_range_start: nil, facet_range_end: nil, facet_range_gap: nil, facet_limit: nil, facet_offset: nil, facet_mincount: nil, facet_sort: nil, ...
51.875
98
0.713253
e8c77add4557ceefc5e485e722918a7f019d3c99
1,510
ex
Elixir
lib/wabanex_web/endpoint.ex
igormotta92/elixir_nlw_wabanex
d63a0d4c664d1909268a6127f108b636a3b46781
[ "MIT" ]
null
null
null
lib/wabanex_web/endpoint.ex
igormotta92/elixir_nlw_wabanex
d63a0d4c664d1909268a6127f108b636a3b46781
[ "MIT" ]
null
null
null
lib/wabanex_web/endpoint.ex
igormotta92/elixir_nlw_wabanex
d63a0d4c664d1909268a6127f108b636a3b46781
[ "MIT" ]
null
null
null
defmodule WabanexWeb.Endpoint do use Phoenix.Endpoint, otp_app: :wabanex # The session will be stored in the cookie and signed, # this means its contents can be read but not tampered with. # Set :encryption_salt if you would also like to encrypt it. @session_options [ store: :cookie, key: "_wabanex_k...
28.490566
97
0.71457
e8c7823b687f1cce2b0ca0f4c140b8d02a506ee1
2,292
exs
Elixir
test/safeurl_test.exs
slab/safeurl-elixir
af58efc01a8e7938fda8cd9caae442ec1c394ee6
[ "MIT" ]
11
2022-01-24T19:17:18.000Z
2022-03-31T03:31:59.000Z
test/safeurl_test.exs
slab/safeurl-elixir
af58efc01a8e7938fda8cd9caae442ec1c394ee6
[ "MIT" ]
1
2022-03-24T21:51:46.000Z
2022-03-24T21:51:46.000Z
test/safeurl_test.exs
slab/safeurl-elixir
af58efc01a8e7938fda8cd9caae442ec1c394ee6
[ "MIT" ]
null
null
null
defmodule SafeURLTest do use ExUnit.Case defmodule TestDNSResolver do @behaviour SafeURL.DNSResolver @impl true def resolve(_domain), do: {:ok, [{192, 0, 78, 24}]} end # setup_all do # global_whitelist = ["10.0.0.0/24"] # global_blacklist = ["8.8.0.0/16"] # Application.put_env(:safe...
34.208955
85
0.640925
e8c78696de8511468c716e6f9914875ad80b4564
1,004
exs
Elixir
onemax.exs
iblancasa/ElixirEO
83427a437d524e2404530b17f2596919fa66ebdd
[ "MIT" ]
null
null
null
onemax.exs
iblancasa/ElixirEO
83427a437d524e2404530b17f2596919fa66ebdd
[ "MIT" ]
null
null
null
onemax.exs
iblancasa/ElixirEO
83427a437d524e2404530b17f2596919fa66ebdd
[ "MIT" ]
null
null
null
require Elixireo import Elixireo defmodule Maxones do def time def f(iterations, length) when iterations == 0 do indi = random_chromosome(length) fitness = compute_fitness( indi ) end def f(iterations, length) do indi = random_chromosome(length) fitness = compute_fitness( indi ) f(iterati...
25.74359
86
0.700199
e8c7978a032fe5deb6fa836ec93e04ea7f1409a6
1,786
exs
Elixir
config/prod.exs
johnf9896/parquex
5251e6ef7166bca2e9f021b8cecc912a7b616d71
[ "MIT" ]
null
null
null
config/prod.exs
johnf9896/parquex
5251e6ef7166bca2e9f021b8cecc912a7b616d71
[ "MIT" ]
null
null
null
config/prod.exs
johnf9896/parquex
5251e6ef7166bca2e9f021b8cecc912a7b616d71
[ "MIT" ]
null
null
null
import Config # For production, don't forget to configure the url host # to something meaningful, Phoenix uses this information # when generating URLs. # # Note we also include the path to a cache manifest # containing the digested version of static files. This # manifest is generated by the `mix phx.digest` task, # w...
35.72
94
0.707727
e8c7a753e4347ce6be3268f74c09506652ef0805
1,965
ex
Elixir
clients/drive_activity/lib/google_api/drive_activity/v2/model/permission_change.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/drive_activity/lib/google_api/drive_activity/v2/model/permission_change.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/drive_activity/lib/google_api/drive_activity/v2/model/permission_change.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...
39.3
157
0.747583
e8c7becc3269710ee52a109b24799cc3aa512ee0
2,253
ex
Elixir
lib/entitiex/exposure.ex
undr/entitiex
c6666909290b4077b47659ce11891659226e3b88
[ "MIT" ]
null
null
null
lib/entitiex/exposure.ex
undr/entitiex
c6666909290b4077b47659ce11891659226e3b88
[ "MIT" ]
null
null
null
lib/entitiex/exposure.ex
undr/entitiex
c6666909290b4077b47659ce11891659226e3b88
[ "MIT" ]
null
null
null
defmodule Entitiex.Exposure do @moduledoc false alias Entitiex.Exposure.EntityHandler alias Entitiex.Exposure.FormattedHandler alias Entitiex.Exposure.DefaultHandler alias Entitiex.Types @handlers [DefaultHandler, EntityHandler, FormattedHandler] defstruct [key: nil, attribute: nil, conditions: nil, en...
31.732394
97
0.664891
e8c7e00a24833124760e46690343ad961f5f692f
5,083
ex
Elixir
apps/gitgud_web/lib/gitgud_web/controllers/oauth2_controller.ex
anndream/gitgud
0dee75547f86040df417def209bf62c33cd8dfec
[ "MIT" ]
1
2019-09-08T07:48:10.000Z
2019-09-08T07:48:10.000Z
apps/gitgud_web/lib/gitgud_web/controllers/oauth2_controller.ex
anndream/gitgud
0dee75547f86040df417def209bf62c33cd8dfec
[ "MIT" ]
null
null
null
apps/gitgud_web/lib/gitgud_web/controllers/oauth2_controller.ex
anndream/gitgud
0dee75547f86040df417def209bf62c33cd8dfec
[ "MIT" ]
null
null
null
defmodule GitGud.Web.OAuth2Controller do @moduledoc """ Module responsible for *OAuth2.0* authentication. """ use GitGud.Web, :controller import GitGud.Web.OAuth2View, only: [provider_name: 1] alias GitGud.DB alias GitGud.User alias GitGud.UserQuery alias GitGud.OAuth2.{GitHub, GitLab, Provider} ...
34.344595
139
0.645485
e8c7e3579556141585574cd9a2fbab38158cee7b
912
exs
Elixir
config/config.exs
colindensem/nanobox-phoenix-elm
b536d55a16b5e8366929108e027c7948f999b1d4
[ "MIT" ]
1
2021-04-09T15:31:24.000Z
2021-04-09T15:31:24.000Z
config/config.exs
colindensem/nanobox-phoenix-elm
b536d55a16b5e8366929108e027c7948f999b1d4
[ "MIT" ]
null
null
null
config/config.exs
colindensem/nanobox-phoenix-elm
b536d55a16b5e8366929108e027c7948f999b1d4
[ "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 :app, ecto_repos: [App.Repo] # Configur...
32.571429
86
0.756579
e8c82def0c87906af440e8615879fddee18ff9b9
248
ex
Elixir
lib/selectable.ex
coingaming/selectable
e22a1604f5129b180e652cfa2c2a0ddfa0261236
[ "MIT" ]
null
null
null
lib/selectable.ex
coingaming/selectable
e22a1604f5129b180e652cfa2c2a0ddfa0261236
[ "MIT" ]
null
null
null
lib/selectable.ex
coingaming/selectable
e22a1604f5129b180e652cfa2c2a0ddfa0261236
[ "MIT" ]
null
null
null
defmodule Selectable do defdelegate options(data, params \\ []), to: Selectable.Protocol defdelegate selected(data), to: Selectable.Protocol def multiple_selected(lst) when is_list(lst), do: Enum.map(lst, &Selectable.Protocol.selected/1) end
41.333333
98
0.770161
e8c82e903a6034b05954d20aadc9ec62de2dc5fd
2,169
ex
Elixir
lib/real_world_web/components/profile/profile_page.ex
razuf/elixir-phoenix-liveview-realworld
182eb845b2b56f146468d9a095a8d5d72fc44f17
[ "MIT" ]
10
2020-09-21T23:24:53.000Z
2022-03-08T02:12:32.000Z
lib/real_world_web/components/profile/profile_page.ex
razuf/elixir-phoenix-liveview-realworld
182eb845b2b56f146468d9a095a8d5d72fc44f17
[ "MIT" ]
null
null
null
lib/real_world_web/components/profile/profile_page.ex
razuf/elixir-phoenix-liveview-realworld
182eb845b2b56f146468d9a095a8d5d72fc44f17
[ "MIT" ]
1
2021-06-26T19:46:09.000Z
2021-06-26T19:46:09.000Z
defmodule RealWorldWeb.ProfilePage do use RealWorldWeb, :live_component alias RealWorldWeb.ProfileFeedToggle alias RealWorldWeb.ListArticles alias RealWorldWeb.PaginationArticles @impl true def render(assigns) do ~L""" <div class="profile-page"> <div class="user-info"> <div class="co...
32.373134
131
0.50899
e8c83c0acfe1e68101352cd1a0f35ed429d0fcb3
290
exs
Elixir
test/grizzly/zwave/commands/device_reset_locally_notification_test.exs
jellybob/grizzly
290bee04cb16acbb9dc996925f5c501697b7ac94
[ "Apache-2.0" ]
76
2019-09-04T16:56:58.000Z
2022-03-29T06:54:36.000Z
test/grizzly/zwave/commands/device_reset_locally_notification_test.exs
jellybob/grizzly
290bee04cb16acbb9dc996925f5c501697b7ac94
[ "Apache-2.0" ]
124
2019-09-05T14:01:24.000Z
2022-02-28T22:58:14.000Z
test/grizzly/zwave/commands/device_reset_locally_notification_test.exs
jellybob/grizzly
290bee04cb16acbb9dc996925f5c501697b7ac94
[ "Apache-2.0" ]
10
2019-10-23T19:25:45.000Z
2021-11-17T13:21:20.000Z
defmodule Grizzly.ZWave.Commands.DeviceResetLocallyNotificationTest do use ExUnit.Case, async: true alias Grizzly.ZWave.Commands.DeviceResetLocallyNotification test "creates the command and validates params" do {:ok, _command} = DeviceResetLocallyNotification.new([]) end end
29
70
0.8
e8c849e17b0443524140114ac9714e994002d679
7,172
ex
Elixir
apps/sue/lib/sue/db/graph.ex
inculi/Sue
42e249aec1d9c467db63526966d9690d5c58f346
[ "MIT" ]
9
2018-03-23T11:18:21.000Z
2021-08-06T18:38:37.000Z
apps/sue/lib/sue/db/graph.ex
inculi/Sue
42e249aec1d9c467db63526966d9690d5c58f346
[ "MIT" ]
21
2017-12-01T05:57:10.000Z
2021-06-06T18:53:25.000Z
apps/sue/lib/sue/db/graph.ex
inculi/Sue
42e249aec1d9c467db63526966d9690d5c58f346
[ "MIT" ]
6
2018-03-23T11:24:21.000Z
2021-08-06T18:40:28.000Z
defmodule Sue.DB.Graph do alias :mnesia, as: Mnesia alias Sue.DB alias Sue.DB.Schema.Vertex @type result() :: {:ok, any()} | {:error, any()} @edge_table :edges # Public API @doc """ Check if a Vertex exists in our graph. """ @spec exists?(Vertex.t()) :: boolean() def exists?(v) do {:ok, res}...
28.015625
88
0.603179
e8c87b5200c7e35b8dea8cfeeea388b3dbddd3e6
6,312
exs
Elixir
test/json_schema_test_suite/draft6/enum_test.exs
kianmeng/xema
a990d64fb4bcd708249514daa55426ee003da25d
[ "MIT" ]
49
2018-06-05T09:42:19.000Z
2022-02-15T12:50:51.000Z
test/json_schema_test_suite/draft6/enum_test.exs
kianmeng/xema
a990d64fb4bcd708249514daa55426ee003da25d
[ "MIT" ]
152
2017-06-11T13:43:06.000Z
2022-01-09T17:13:45.000Z
test/json_schema_test_suite/draft6/enum_test.exs
kianmeng/xema
a990d64fb4bcd708249514daa55426ee003da25d
[ "MIT" ]
6
2019-05-31T05:41:47.000Z
2021-12-14T08:09:36.000Z
defmodule JsonSchemaTestSuite.Draft6.EnumTest do use ExUnit.Case import Xema, only: [valid?: 2] describe ~s|simple enum validation| do setup do %{ schema: Xema.from_json_schema( %{"enum" => [1, 2, 3]}, draft: "draft6", atom: :force ) ...
23.205882
94
0.518853
e8c88370e9ce75b1838b60abeb1e9765c9b8e41d
137
ex
Elixir
lib/randomuser_ex/id.ex
dreamingechoes/randomuser_ex
cfc72e015d2b110d2a4589bf6abb90793905c98c
[ "MIT" ]
4
2017-08-16T18:14:29.000Z
2020-01-14T03:19:54.000Z
lib/randomuser_ex/id.ex
dreamingechoes/randomuser_ex
cfc72e015d2b110d2a4589bf6abb90793905c98c
[ "MIT" ]
null
null
null
lib/randomuser_ex/id.ex
dreamingechoes/randomuser_ex
cfc72e015d2b110d2a4589bf6abb90793905c98c
[ "MIT" ]
null
null
null
defmodule RandomuserEx.Id do @moduledoc false @derive [Poison.Encoder] @type t :: %__MODULE__{} defstruct [:name, :value] end
13.7
28
0.686131
e8c8b985928e9e061ba7af1570397cd93b51bf9c
5,294
ex
Elixir
lib/excoveralls/local.ex
fenollp/excoveralls
a9fc2410397ac6391d58d2c5436141e644c3d733
[ "MIT" ]
null
null
null
lib/excoveralls/local.ex
fenollp/excoveralls
a9fc2410397ac6391d58d2c5436141e644c3d733
[ "MIT" ]
null
null
null
lib/excoveralls/local.ex
fenollp/excoveralls
a9fc2410397ac6391d58d2c5436141e644c3d733
[ "MIT" ]
null
null
null
defmodule ExCoveralls.Local do @moduledoc """ Locally displays the result to screen. """ defmodule Count do @moduledoc """ Stores count information for calculating coverage values. """ defstruct lines: 0, relevant: 0, covered: 0 end @doc """ Provides an entry point for the module. """...
27.28866
109
0.602569
e8c8bba29ca2c79ddbf4c22a404bc45642e1c72d
9,479
ex
Elixir
lib/surface.ex
surface-ui/surface
4b0dc71a236d6d5d97e5eef9beac500059ca419e
[ "MIT" ]
468
2021-03-11T23:10:41.000Z
2022-03-30T20:12:06.000Z
lib/surface.ex
surface-ui/surface
4b0dc71a236d6d5d97e5eef9beac500059ca419e
[ "MIT" ]
248
2021-03-12T07:39:37.000Z
2022-03-31T13:36:44.000Z
lib/surface.ex
surface-ui/surface
4b0dc71a236d6d5d97e5eef9beac500059ca419e
[ "MIT" ]
46
2021-03-22T09:28:58.000Z
2022-03-23T21:32:20.000Z
defmodule Surface do @moduledoc """ Surface is a component based library for **Phoenix LiveView**. Built on top of the new `Phoenix.LiveComponent` API, Surface provides a more declarative way to express and use components in Phoenix. Full documentation and live examples can be found at [surface-ui.org](http...
26.626404
124
0.624538
e8c8bbb67cdeb3b5eab47b6ebb7fe6e89e3f8fe3
425
ex
Elixir
test/support/error_plugin.ex
brianbroderick/monocle
eeabecea658468479c04a02352271f6304447736
[ "Apache-2.0" ]
2
2018-02-11T01:18:24.000Z
2020-01-12T17:19:22.000Z
test/support/error_plugin.ex
brianbroderick/monocle
eeabecea658468479c04a02352271f6304447736
[ "Apache-2.0" ]
null
null
null
test/support/error_plugin.ex
brianbroderick/monocle
eeabecea658468479c04a02352271f6304447736
[ "Apache-2.0" ]
null
null
null
defmodule Support.ErrorPlugin do def as_html(lines) do if Enum.all?(lines, &correct?/1) do "<strong>correct</strong>\n" else { for line <- lines, correct?(line) do "<strong>correct</strong>" end, for line <- lines, !correct?(line) do make_error(line) end } end end defp correct?({...
28.333333
76
0.621176
e8c8db8376915efd8fce296ebfb6d992f4ae0af6
1,684
ex
Elixir
clients/you_tube/lib/google_api/you_tube/v3/model/activity_content_details_channel_item.ex
kolorahl/elixir-google-api
46bec1e092eb84c6a79d06c72016cb1a13777fa6
[ "Apache-2.0" ]
null
null
null
clients/you_tube/lib/google_api/you_tube/v3/model/activity_content_details_channel_item.ex
kolorahl/elixir-google-api
46bec1e092eb84c6a79d06c72016cb1a13777fa6
[ "Apache-2.0" ]
null
null
null
clients/you_tube/lib/google_api/you_tube/v3/model/activity_content_details_channel_item.ex
kolorahl/elixir-google-api
46bec1e092eb84c6a79d06c72016cb1a13777fa6
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
35.083333
151
0.755938
e8c901b20f90ed372d731ea080201be10bcebd61
235
exs
Elixir
.iex.exs
sultaniman/dust
273cf538552870fd07269330c23e993c8859ddd9
[ "Apache-2.0" ]
18
2020-06-16T09:43:34.000Z
2021-11-06T09:35:17.000Z
.iex.exs
imanhodjaev/dust
f834dc92bbaaee82ca76f848bf640d3d37e4c5e8
[ "Apache-2.0" ]
13
2020-10-29T05:33:14.000Z
2022-01-24T18:01:50.000Z
.iex.exs
imanhodjaev/dust
f834dc92bbaaee82ca76f848bf640d3d37e4c5e8
[ "Apache-2.0" ]
null
null
null
alias Dust.{ Dom, Loaders, Parsers, Requests, } alias Dust.Writers.{ CSS, Image, JS } alias Dust.Requests.{ ClientState, Result, Proxy, Util } defmodule Vars do def url, do: "https://hex.pm/docs/publish" end
9.791667
44
0.638298
e8c91a30e082ae7f2153d3b929f6a0493a892736
13,418
ex
Elixir
apps/andi/lib/andi_web/live/edit_live_view.ex
AWHServiceAccount/smartcitiesdata
6957afac12809288640b6ba6b576c3016e6033d7
[ "Apache-2.0" ]
1
2020-03-18T21:14:39.000Z
2020-03-18T21:14:39.000Z
apps/andi/lib/andi_web/live/edit_live_view.ex
AWHServiceAccount/smartcitiesdata
6957afac12809288640b6ba6b576c3016e6033d7
[ "Apache-2.0" ]
null
null
null
apps/andi/lib/andi_web/live/edit_live_view.ex
AWHServiceAccount/smartcitiesdata
6957afac12809288640b6ba6b576c3016e6033d7
[ "Apache-2.0" ]
null
null
null
defmodule AndiWeb.EditLiveView do use AndiWeb, :live_view alias Phoenix.HTML.Link alias Andi.InputSchemas.InputConverter alias Andi.InputSchemas.DatasetInput alias Andi.InputSchemas.DisplayNames alias Andi.InputSchemas.Options alias AndiWeb.EditLiveView.KeyValueEditor import Andi import SmartCity.Ev...
44.138158
173
0.637502
e8c926e2037e53cc120b6647f30824ba3bc21408
886
exs
Elixir
config/test.exs
krondev/elm-elixir-starter
3954fb3982e9e2330cfae197c7ecea34402cfcea
[ "MIT" ]
73
2017-06-06T20:10:11.000Z
2020-12-05T22:11:31.000Z
config/test.exs
krondev/elm-elixir-starter
3954fb3982e9e2330cfae197c7ecea34402cfcea
[ "MIT" ]
8
2017-05-24T02:08:58.000Z
2018-05-11T14:54:29.000Z
config/test.exs
krondev/elm-elixir-starter
3954fb3982e9e2330cfae197c7ecea34402cfcea
[ "MIT" ]
22
2017-07-30T02:59:23.000Z
2020-12-05T22:13:18.000Z
use Mix.Config # We don't run a server during test. If one is required, # you can enable the server option below. config :elmelixirstarter, Elmelixirstarter.Endpoint, http: [port: 4001], server: false # Print only warnings and errors during test config :logger, level: :warn # Configure your database config :elme...
34.076923
94
0.765237
e8c935cb12625f611945982dd4a5065159533384
6,968
ex
Elixir
test/support/live_views/elements.ex
jowrjowr/phoenix_live_view
d52da3b41292f9488e4a5c210aa1110c3f6420b0
[ "MIT" ]
1
2022-03-13T23:01:55.000Z
2022-03-13T23:01:55.000Z
test/support/live_views/elements.ex
jowrjowr/phoenix_live_view
d52da3b41292f9488e4a5c210aa1110c3f6420b0
[ "MIT" ]
null
null
null
test/support/live_views/elements.ex
jowrjowr/phoenix_live_view
d52da3b41292f9488e4a5c210aa1110c3f6420b0
[ "MIT" ]
null
null
null
defmodule Phoenix.LiveViewTest.ElementsLive do use Phoenix.LiveView def render(assigns) do ~H""" <%# lookups %> <div id="last-event"><%= @event %></div> <div id="scoped-render"><span>This</span> is a div</div> <div>This</div> <%# basic render_* %> <span id="span-no-attr">This is a span...
50.129496
147
0.647245
e8c9386a4c1b11b2b452d15c2cca9d80437b58d1
504
exs
Elixir
magic_logo/config/test.exs
jshahs/magiclogo
5b18cb4efff04c3547d167bab194d2806ec20d8a
[ "MIT" ]
null
null
null
magic_logo/config/test.exs
jshahs/magiclogo
5b18cb4efff04c3547d167bab194d2806ec20d8a
[ "MIT" ]
null
null
null
magic_logo/config/test.exs
jshahs/magiclogo
5b18cb4efff04c3547d167bab194d2806ec20d8a
[ "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 :magic_logo, MagicLogo.Endpoint, http: [port: 4001], server: false # Print only warnings and errors during test config :logger, level: :warn # Configure your database config :magic_logo, Magic...
25.2
56
0.740079
e8c94c4c3f875958f71e7e72ed5f00cd3c004a35
834
ex
Elixir
apps/tai/lib/tai/venue_adapters/okex/products.ex
ccamateur/tai
41c4b3e09dafc77987fa3f6b300c15461d981e16
[ "MIT" ]
276
2018-01-16T06:36:06.000Z
2021-03-20T21:48:01.000Z
apps/tai/lib/tai/venue_adapters/okex/products.ex
ccamateur/tai
41c4b3e09dafc77987fa3f6b300c15461d981e16
[ "MIT" ]
78
2020-10-12T06:21:43.000Z
2022-03-28T09:02:00.000Z
apps/tai/lib/tai/venue_adapters/okex/products.ex
yurikoval/tai
94254b45d22fa0307b01577ff7c629c7280c0295
[ "MIT" ]
43
2018-06-09T09:54:51.000Z
2021-03-07T07:35:17.000Z
defmodule Tai.VenueAdapters.OkEx.Products do alias ExOkex.{Futures, Swap, Spot} def products(venue_id) do with {:ok, future_instruments} <- Futures.Public.instruments(), {:ok, swap_instruments} <- Swap.Public.instruments(), {:ok, spot_instruments} <- Spot.Public.instruments() do future_...
33.36
91
0.694245
e8c94c6382237be21c88acab95e965b85ca5a5bf
604
exs
Elixir
solomon/test/views/error_view_test.exs
FoxComm/highlander
1aaf8f9e5353b94c34d574c2a92206a1c363b5be
[ "MIT" ]
10
2018-04-12T22:29:52.000Z
2021-10-18T17:07:45.000Z
solomon/test/views/error_view_test.exs
FoxComm/highlander
1aaf8f9e5353b94c34d574c2a92206a1c363b5be
[ "MIT" ]
null
null
null
solomon/test/views/error_view_test.exs
FoxComm/highlander
1aaf8f9e5353b94c34d574c2a92206a1c363b5be
[ "MIT" ]
1
2018-07-06T18:42:05.000Z
2018-07-06T18:42:05.000Z
defmodule Solomon.ErrorViewTest do use Solomon.ConnCase, async: true # Bring render/3 and render_to_string/3 for testing custom views import Phoenix.View test "renders 404.json" do assert render(Solomon.ErrorView, "404.json", []) == %{errors: %{detail: "Page not found"}} end test "render 5...
27.454545
66
0.645695
e8c958d375fc26f61daba5cedd8e62f651b67202
722
ex
Elixir
lib/history/predicted_funding_rates/predicted_funding_rate.ex
fremantle-industries/history
a8a33744279ff4ca62620785f9a2e9c0c99e4de7
[ "MIT" ]
20
2021-08-06T01:09:48.000Z
2022-03-28T18:44:56.000Z
lib/history/predicted_funding_rates/predicted_funding_rate.ex
fremantle-industries/history
a8a33744279ff4ca62620785f9a2e9c0c99e4de7
[ "MIT" ]
13
2021-08-21T21:17:02.000Z
2022-03-27T06:33:51.000Z
lib/history/predicted_funding_rates/predicted_funding_rate.ex
fremantle-industries/history
a8a33744279ff4ca62620785f9a2e9c0c99e4de7
[ "MIT" ]
2
2021-09-23T11:31:59.000Z
2022-01-09T16:19:35.000Z
defmodule History.PredictedFundingRates.PredictedFundingRate do use Ecto.Schema import Ecto.Changeset schema "predicted_funding_rates" do field :next_funding_time, :utc_datetime field :product, :string field :venue, :string field :next_funding_rate, :decimal timestamps() end @doc false ...
25.785714
84
0.734072
e8c95c72d1147d9a2a6d514ccf4bbb76720659dd
485
ex
Elixir
lib/surgex/auth/guardian.ex
fiqus/surgex
af3ec37459abd3f17c7e9a826ca1abef1dd5fb44
[ "MIT" ]
8
2019-05-11T19:41:06.000Z
2020-01-20T07:01:53.000Z
lib/surgex/auth/guardian.ex
fiqus/surgex
af3ec37459abd3f17c7e9a826ca1abef1dd5fb44
[ "MIT" ]
12
2019-05-10T22:00:40.000Z
2019-07-05T19:20:56.000Z
lib/surgex/auth/guardian.ex
fiqus/surgex
af3ec37459abd3f17c7e9a826ca1abef1dd5fb44
[ "MIT" ]
1
2019-07-18T15:58:41.000Z
2019-07-18T15:58:41.000Z
defmodule Surgex.Auth.Guardian do @moduledoc false use Guardian, otp_app: :surgex alias Surgex.Accounts def subject_for_token(user, _claims) do sub = to_string(user.id) {:ok, sub} end def resource_from_claims(claims) do id = claims["sub"] try do {user, surgeon} = Accounts....
17.321429
41
0.620619
e8c96aa220ff3b808f366b9f4fadae3199cf1be6
1,634
exs
Elixir
apps/reaper/test/unit/reaper/decoder_test.exs
PillarTechnology/smartcitiesdata
9420a26820e38267513cd1bfa82c7f5583222bb1
[ "Apache-2.0" ]
null
null
null
apps/reaper/test/unit/reaper/decoder_test.exs
PillarTechnology/smartcitiesdata
9420a26820e38267513cd1bfa82c7f5583222bb1
[ "Apache-2.0" ]
null
null
null
apps/reaper/test/unit/reaper/decoder_test.exs
PillarTechnology/smartcitiesdata
9420a26820e38267513cd1bfa82c7f5583222bb1
[ "Apache-2.0" ]
null
null
null
defmodule Reaper.DecoderTest do use ExUnit.Case use Placebo alias Reaper.Decoder alias SmartCity.TestDataGenerator, as: TDG @filename "#{__MODULE__}_temp_file" setup do on_exit(fn -> File.rm(@filename) end) :ok end describe "failure to decode" do test "csv messages yoted and r...
30.259259
108
0.635863
e8c9d0f5d71d5dc7e8121192853d35596b5af7df
147
exs
Elixir
apps/game_loader/test/game_loader_test.exs
qwertystop/dominions5.analyst
7c39ea14640b3a2d2c70df249688bc501f2f2184
[ "MIT" ]
1
2019-07-04T00:39:31.000Z
2019-07-04T00:39:31.000Z
apps/game_loader/test/game_loader_test.exs
qwertystop/dominions5.analyst
7c39ea14640b3a2d2c70df249688bc501f2f2184
[ "MIT" ]
null
null
null
apps/game_loader/test/game_loader_test.exs
qwertystop/dominions5.analyst
7c39ea14640b3a2d2c70df249688bc501f2f2184
[ "MIT" ]
null
null
null
defmodule GameLoaderTest do use ExUnit.Case doctest GameLoader test "greets the world" do assert GameLoader.hello() == :world end end
16.333333
39
0.727891
e8c9ee72e493fc0ff98d6d25a2ccdf3292f865bd
2,027
exs
Elixir
config/prod.exs
yashin5/blog_api
5dd6d0c9e43ca9c1dc555afd73713b62b4efa34e
[ "MIT" ]
null
null
null
config/prod.exs
yashin5/blog_api
5dd6d0c9e43ca9c1dc555afd73713b62b4efa34e
[ "MIT" ]
null
null
null
config/prod.exs
yashin5/blog_api
5dd6d0c9e43ca9c1dc555afd73713b62b4efa34e
[ "MIT" ]
null
null
null
use Mix.Config # For production, don't forget to configure the url host # to something meaningful, Phoenix uses this information # when generating URLs. # # Note we also include the path to a cache manifest # containing the digested version of static files. This # manifest is generated by the `mix phx.digest` task, # ...
36.196429
66
0.716823
e8ca30df0f9ea0423b184f0a25dd3df658b87486
3,079
ex
Elixir
lib/sanbase/accounts/settings.ex
santiment/sanbase2
9ef6e2dd1e377744a6d2bba570ea6bd477a1db31
[ "MIT" ]
81
2017-11-20T01:20:22.000Z
2022-03-05T12:04:25.000Z
lib/sanbase/accounts/settings.ex
rmoorman/sanbase2
226784ab43a24219e7332c49156b198d09a6dd85
[ "MIT" ]
359
2017-10-15T14:40:53.000Z
2022-01-25T13:34:20.000Z
lib/sanbase/accounts/settings.ex
rmoorman/sanbase2
226784ab43a24219e7332c49156b198d09a6dd85
[ "MIT" ]
16
2017-11-19T13:57:40.000Z
2022-02-07T08:13:02.000Z
defmodule Sanbase.Accounts.Settings do use Ecto.Schema import Ecto.Changeset @default_alerts_limit_per_day %{ "email" => 50, "telegram" => 100, "telegram_channel" => 1000, "webhook" => 1000, "webpush" => 1000 } def default_alerts_limit_per_day(), do: @default_alerts_limit_per_day @new...
30.485149
94
0.684638
e8ca63c5483c5c006100705b9100361075aa749c
6,264
ex
Elixir
lib/changelog_web/controllers/news_item_controller.ex
gustavoarmoa/changelog.com
e898a9979a237ae66962714821ed8633a4966f37
[ "MIT" ]
2,599
2016-10-25T15:02:53.000Z
2022-03-26T02:34:42.000Z
lib/changelog_web/controllers/news_item_controller.ex
sdrees/changelog.com
955cdcf93d74991062f19a03e34c9f083ade1705
[ "MIT" ]
253
2016-10-25T20:29:24.000Z
2022-03-29T21:52:36.000Z
lib/changelog_web/controllers/news_item_controller.ex
sdrees/changelog.com
955cdcf93d74991062f19a03e34c9f083ade1705
[ "MIT" ]
298
2016-10-25T15:18:31.000Z
2022-01-18T21:25:52.000Z
defmodule ChangelogWeb.NewsItemController do use ChangelogWeb, :controller alias Changelog.{NewsItem, NewsItemComment, NewsSponsorship, Subscription} alias ChangelogWeb.NewsItemView plug RequireUser, "before submitting" when action in [:create] plug RequireUser, "before subscribing" when action in [:subscri...
29.54717
96
0.628352
e8ca69fda9c6f6e4216e5ee2a1bd0567e562d0f2
1,028
ex
Elixir
Microsoft.Azure.Management.Network/lib/microsoft/azure/management/network/model/application_gateway_ssl_predefined_policy_properties_format.ex
chgeuer/ex_microsoft_azure_management
99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603
[ "Apache-2.0" ]
4
2018-09-29T03:43:15.000Z
2021-04-01T18:30:46.000Z
Microsoft.Azure.Management.Network/lib/microsoft/azure/management/network/model/application_gateway_ssl_predefined_policy_properties_format.ex
chgeuer/ex_microsoft_azure_management
99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603
[ "Apache-2.0" ]
null
null
null
Microsoft.Azure.Management.Network/lib/microsoft/azure/management/network/model/application_gateway_ssl_predefined_policy_properties_format.ex
chgeuer/ex_microsoft_azure_management
99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603
[ "Apache-2.0" ]
null
null
null
# NOTE: This class is auto generated by the swagger code generator program. # https://github.com/swagger-api/swagger-codegen.git # Do not edit the class manually. defmodule Microsoft.Azure.Management.Network.Model.ApplicationGatewaySslPredefinedPolicyPropertiesFormat do @moduledoc """ Properties of ApplicationGate...
33.16129
126
0.771401
e8ca70654b4d076ad07a5931508fe86d1db93100
206
ex
Elixir
lib/mix/tasks/load_dotenv.ex
sitedata/sanbase2
8da5e44a343288fbc41b68668c6c80ae8547d557
[ "MIT" ]
81
2017-11-20T01:20:22.000Z
2022-03-05T12:04:25.000Z
lib/mix/tasks/load_dotenv.ex
rmoorman/sanbase2
226784ab43a24219e7332c49156b198d09a6dd85
[ "MIT" ]
359
2017-10-15T14:40:53.000Z
2022-01-25T13:34:20.000Z
lib/mix/tasks/load_dotenv.ex
sitedata/sanbase2
8da5e44a343288fbc41b68668c6c80ae8547d557
[ "MIT" ]
16
2017-11-19T13:57:40.000Z
2022-02-07T08:13:02.000Z
defmodule Mix.Tasks.LoadDotenv do use Mix.Task @shortdoc "Load the dotenv config" @moduledoc """ Loads the dotenv config """ @impl Mix.Task def run(_args) do Envy.auto_load() end end
13.733333
36
0.669903
e8cae87a309d86a747793528fc4488476c023525
33,268
ex
Elixir
clients/you_tube/lib/google_api/you_tube/v3/api/captions.ex
linjunpop/elixir-google-api
444cb2b2fb02726894535461a474beddd8b86db4
[ "Apache-2.0" ]
null
null
null
clients/you_tube/lib/google_api/you_tube/v3/api/captions.ex
linjunpop/elixir-google-api
444cb2b2fb02726894535461a474beddd8b86db4
[ "Apache-2.0" ]
null
null
null
clients/you_tube/lib/google_api/you_tube/v3/api/captions.ex
linjunpop/elixir-google-api
444cb2b2fb02726894535461a474beddd8b86db4
[ "Apache-2.0" ]
null
null
null
# 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...
59.19573
720
0.71414
e8cafdd7bab4cd844502ca89edb7392841ed9fa0
10,959
ex
Elixir
clients/admin/lib/google_api/admin/directory_v1/api/domain_aliases.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/admin/lib/google_api/admin/directory_v1/api/domain_aliases.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/admin/lib/google_api/admin/directory_v1/api/domain_aliases.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
41.988506
187
0.631718
e8cb057c4256fe6dbc939db4bbbc089808043d68
579
ex
Elixir
lib/jan/play_with_stranger_agent.ex
brianstorti/jan
e3e7172c672705b7d4e3912e16d5a69496a79e4a
[ "Apache-2.0" ]
54
2016-02-07T21:44:14.000Z
2022-01-06T04:10:59.000Z
lib/jan/play_with_stranger_agent.ex
brianstorti/jan
e3e7172c672705b7d4e3912e16d5a69496a79e4a
[ "Apache-2.0" ]
1
2016-02-13T15:52:55.000Z
2016-02-13T15:52:55.000Z
lib/jan/play_with_stranger_agent.ex
brianstorti/jan
e3e7172c672705b7d4e3912e16d5a69496a79e4a
[ "Apache-2.0" ]
4
2016-02-13T11:54:00.000Z
2022-01-06T04:19:26.000Z
defmodule Jan.PlayWithStrangerAgent do def start_link do Agent.start_link(fn -> nil end, name: __MODULE__) end def pop do case Agent.get(__MODULE__, fn room_name -> room_name end) do nil -> room_name = random_room_name Agent.update(__MODULE__, fn _room_nem -> room_name end) ...
23.16
84
0.666667
e8cb09bcae63a44d4415695d01ff9804507ad91f
707
exs
Elixir
test/blogit/components/posts_by_date_test.exs
9to1url/blogit
a7e424b411460b62b5b2c0a74ff731bb9392de8a
[ "MIT" ]
39
2017-07-03T17:39:18.000Z
2021-05-01T14:17:42.000Z
test/blogit/components/posts_by_date_test.exs
9to1url/blogit
a7e424b411460b62b5b2c0a74ff731bb9392de8a
[ "MIT" ]
6
2017-11-07T22:00:19.000Z
2020-03-13T18:01:53.000Z
test/blogit/components/posts_by_date_test.exs
9to1url/blogit
a7e424b411460b62b5b2c0a74ff731bb9392de8a
[ "MIT" ]
6
2017-07-06T04:46:49.000Z
2020-03-06T02:39:33.000Z
defmodule Blogit.Components.PostsByDateTest do alias Blogit.Components.PostsByDate use ComponentTestCase, setup_posts: true, module: PostsByDate setup do {:ok, pid} = PostsByDate.start_link() %{pid: pid} end test "`posts_by_dates` state is nil initially", %{pid: pid} do %{language: language, pos...
29.458333
79
0.704385
e8cb1cf73734339b2e6e2c14886fece161a3b6db
18,571
ex
Elixir
lib/drab/live/eex_engine.ex
grych/drab
27132d9be7b9755359af5b8c9022073441ea2009
[ "MIT" ]
933
2017-01-14T13:47:37.000Z
2022-03-21T18:14:41.000Z
lib/drab/live/eex_engine.ex
grych/drab
27132d9be7b9755359af5b8c9022073441ea2009
[ "MIT" ]
189
2017-01-15T18:35:06.000Z
2022-01-24T17:41:22.000Z
lib/drab/live/eex_engine.ex
grych/drab
27132d9be7b9755359af5b8c9022073441ea2009
[ "MIT" ]
54
2017-01-15T18:10:48.000Z
2021-02-06T17:21:44.000Z
defmodule Drab.Live.EExEngine do @moduledoc """ This is an implementation of EEx.Engine that injects `Drab.Live` behaviour. It parses the template during compile-time and inject Drab markers into it. Because of this, template must be a proper HTML. Also, there are some rules to obey, see limitations below. ...
27.71791
100
0.602175
e8cb9c10720cd2bf7c3e0c6398e573fce0dbe3d9
2,891
exs
Elixir
test/mix/tasks/phoenix/pow.phoenix.gen.templates_test.exs
danschultzer/authex
920ab2ef9dafaaaba215247e08c3e194e9474fc0
[ "MIT" ]
4
2018-05-07T16:37:15.000Z
2018-07-14T00:44:12.000Z
test/mix/tasks/phoenix/pow.phoenix.gen.templates_test.exs
danschultzer/authex
920ab2ef9dafaaaba215247e08c3e194e9474fc0
[ "MIT" ]
null
null
null
test/mix/tasks/phoenix/pow.phoenix.gen.templates_test.exs
danschultzer/authex
920ab2ef9dafaaaba215247e08c3e194e9474fc0
[ "MIT" ]
null
null
null
defmodule Mix.Tasks.Pow.Phoenix.Gen.TemplatesTest do use Pow.Test.Mix.TestCase alias Mix.Tasks.Pow.Phoenix.Gen.Templates @tmp_path Path.join(["tmp", inspect(Templates)]) @expected_msg "Pow Phoenix templates and views has been generated." @expected_template_files %{ "registration" => ["edit.html.eex", "...
28.91
86
0.624006
e8cbad09a23a329f0cbdf258114a2b9d10f9abfa
1,593
exs
Elixir
lib/mix/test/mix/tasks/loadconfig_test.exs
hamiltop/elixir
3b601660d4d4eb0c69f824fcebbbe93a3f2ba463
[ "Apache-2.0" ]
null
null
null
lib/mix/test/mix/tasks/loadconfig_test.exs
hamiltop/elixir
3b601660d4d4eb0c69f824fcebbbe93a3f2ba463
[ "Apache-2.0" ]
null
null
null
lib/mix/test/mix/tasks/loadconfig_test.exs
hamiltop/elixir
3b601660d4d4eb0c69f824fcebbbe93a3f2ba463
[ "Apache-2.0" ]
null
null
null
Code.require_file "../../test_helper.exs", __DIR__ defmodule Mix.Tasks.LoadconfigTest do use MixTest.Case @tag apps: [:my_app] test "reads and persists project configuration", context do Mix.Project.push MixTest.Case.Sample in_tmp context.test, fn -> write_config """ [my_app: [key: :project...
31.86
88
0.654739
e8cbc1583dec5197f7cfeae56fb7a44d33ce6ea2
884
exs
Elixir
test/plausible_web/controllers/api/stats_controller/browsers_test.exs
pmhoudry/plausible
454feec36e62b866ae86e07a1f4133d9782d4365
[ "MIT" ]
1
2020-04-08T16:39:00.000Z
2020-04-08T16:39:00.000Z
test/plausible_web/controllers/api/stats_controller/browsers_test.exs
pmhoudry/plausible
454feec36e62b866ae86e07a1f4133d9782d4365
[ "MIT" ]
null
null
null
test/plausible_web/controllers/api/stats_controller/browsers_test.exs
pmhoudry/plausible
454feec36e62b866ae86e07a1f4133d9782d4365
[ "MIT" ]
null
null
null
defmodule PlausibleWeb.Api.StatsController.BrowsersTest do use PlausibleWeb.ConnCase import Plausible.TestUtils describe "GET /api/stats/:domain/browsers" do setup [:create_user, :log_in, :create_site] test "returns top browsers by new visitors", %{conn: conn, site: site} do insert(:pageview, doma...
40.181818
100
0.64819
e8cbd3e8634edfe30ccd51be7e82ab6201f7a60e
68
exs
Elixir
test/test_helper.exs
coderdojobraga/bokken
df28522637315193e09ac1f3f79823361db0f2f9
[ "MIT" ]
7
2020-10-19T14:06:46.000Z
2022-02-19T09:53:02.000Z
test/test_helper.exs
coderdojobraga/bokken
df28522637315193e09ac1f3f79823361db0f2f9
[ "MIT" ]
5
2017-08-24T10:38:46.000Z
2021-05-26T16:48:22.000Z
test/test_helper.exs
coderdojobraga/bokken
df28522637315193e09ac1f3f79823361db0f2f9
[ "MIT" ]
2
2017-08-25T18:38:11.000Z
2021-07-15T00:57:33.000Z
ExUnit.start() Ecto.Adapters.SQL.Sandbox.mode(Bokken.Repo, :manual)
22.666667
52
0.779412
e8cbdedaf97f5f6566db26346796d97907f25782
484
ex
Elixir
lib/bitpal/tcp_client.ex
fstromback/bitpal
2c50e6700d7383b4f025b3734ba37257c69ce47e
[ "BSD-3-Clause-Clear" ]
5
2021-05-04T21:28:00.000Z
2021-12-01T11:19:48.000Z
lib/bitpal/tcp_client.ex
fstromback/bitpal
2c50e6700d7383b4f025b3734ba37257c69ce47e
[ "BSD-3-Clause-Clear" ]
71
2021-04-21T05:48:49.000Z
2022-03-23T06:30:37.000Z
lib/bitpal/tcp_client.ex
fstromback/bitpal
2c50e6700d7383b4f025b3734ba37257c69ce47e
[ "BSD-3-Clause-Clear" ]
1
2021-04-25T10:35:41.000Z
2021-04-25T10:35:41.000Z
defmodule BitPal.TCPClient do @behaviour BitPal.TCPClientAPI @impl true def connect(host, port, opts \\ []) do :gen_tcp.connect(host, port, opts) end @spec send(any, binary) :: :ok | {:error, term} @impl true def send(c, msg) do :gen_tcp.send(c, msg) end @spec recv(any, non_neg_integer) :: ...
18.615385
68
0.626033
e8cc03b3760dd85a1bad822fa22670c60391d3eb
1,777
exs
Elixir
mix.exs
mlgx/boxes
f6c8b786bd7188ad57c1e071722e8196d594a034
[ "Unlicense" ]
null
null
null
mix.exs
mlgx/boxes
f6c8b786bd7188ad57c1e071722e8196d594a034
[ "Unlicense" ]
2
2021-03-08T23:24:09.000Z
2021-05-07T22:42:15.000Z
mix.exs
mlgx/boxes
f6c8b786bd7188ad57c1e071722e8196d594a034
[ "Unlicense" ]
null
null
null
defmodule Boxes.Mixfile do use Mix.Project def project do [ app: :boxes, version: "0.0.1", elixir: "~> 1.10", elixirc_paths: elixirc_paths(Mix.env()), compilers: [:phoenix, :gettext] ++ Mix.compilers(), start_permanent: Mix.env() == :prod, aliases: aliases(), dep...
26.924242
79
0.564997
e8cc4422d93bae1cbbeda79c92fb749c5d9e2c2c
1,228
ex
Elixir
lib/dawdle/message_encoder/message_encoder.ex
pepsico-ecommerce/dawdle
63c7fef4017ac064fa659181f9a438f08a6cfac9
[ "MIT" ]
null
null
null
lib/dawdle/message_encoder/message_encoder.ex
pepsico-ecommerce/dawdle
63c7fef4017ac064fa659181f9a438f08a6cfac9
[ "MIT" ]
null
null
null
lib/dawdle/message_encoder/message_encoder.ex
pepsico-ecommerce/dawdle
63c7fef4017ac064fa659181f9a438f08a6cfac9
[ "MIT" ]
null
null
null
defmodule Dawdle.MessageEncoder do @moduledoc """ Behaviour for Dawdle event encoding. Dawdle wants to enqueue Elixir structs and other Erlang terms. This behaviour specifies an interface for translating an event, i.e., term, into a string that can be safely enqueued. """ import Dawdle.Telemetry @doc...
24.56
79
0.635179
e8cc4ac84fbe8e849eeac638aa6ca7618287254a
600
ex
Elixir
lib/mix_test_iex.ex
marciol/mix_test_iex
865fcc9eb4f7c7e686d714c5f19700418d4a1a0d
[ "MIT" ]
null
null
null
lib/mix_test_iex.ex
marciol/mix_test_iex
865fcc9eb4f7c7e686d714c5f19700418d4a1a0d
[ "MIT" ]
null
null
null
lib/mix_test_iex.ex
marciol/mix_test_iex
865fcc9eb4f7c7e686d714c5f19700418d4a1a0d
[ "MIT" ]
null
null
null
defmodule MixTestIEx do def run(args \\ []) do Mix.env(:test) put_config(args) Application.ensure_all_started(:mix_test_iex) ensure_iex_is_running!() end defp put_config(args) do {_, paths} = OptionParser.parse!(args, switches: []) paths = if length(paths) == 0 do ["lib",...
20
93
0.626667
e8cc4b0a1a3c5940eb7ad95dacae54bff1997e4a
70
exs
Elixir
examples/bloggy/test/test_helper.exs
wojtekmach/resourceful
8425140aa1e89dfababcb2faa7bc4e2f59722661
[ "Apache-2.0" ]
1
2020-01-06T00:38:43.000Z
2020-01-06T00:38:43.000Z
examples/bloggy/test/test_helper.exs
wojtekmach/resourceful
8425140aa1e89dfababcb2faa7bc4e2f59722661
[ "Apache-2.0" ]
null
null
null
examples/bloggy/test/test_helper.exs
wojtekmach/resourceful
8425140aa1e89dfababcb2faa7bc4e2f59722661
[ "Apache-2.0" ]
null
null
null
ExUnit.start() Ecto.Adapters.SQL.Sandbox.mode(Bloggy.Repo, :manual)
14
52
0.757143
e8cc601efae7e220bc50d14a09a39164f7de4369
568
ex
Elixir
web/views/changeset_view.ex
princemaple/learn-phoenix
f54c1e4d92b3701884298df8557790f878334f03
[ "MIT" ]
null
null
null
web/views/changeset_view.ex
princemaple/learn-phoenix
f54c1e4d92b3701884298df8557790f878334f03
[ "MIT" ]
null
null
null
web/views/changeset_view.ex
princemaple/learn-phoenix
f54c1e4d92b3701884298df8557790f878334f03
[ "MIT" ]
null
null
null
defmodule LearnPhoenix.ChangesetView do use LearnPhoenix.Web, :view @doc """ Traverses and translates changeset errors. See `Ecto.Changeset.traverse_errors/2` and `LearnPhoenix.ErrorHelpers.translate_error/1` for more details. """ def translate_errors(changeset) do Ecto.Changeset.traverse_errors(cha...
28.4
65
0.741197
e8cc7352b684317467ecf319a985b67c2280e3f8
968
exs
Elixir
test/json_schema_test_suite/draft4/max_properties_test.exs
romul/xema
8273e10645cf54e8765a197b1ff0c097994275d9
[ "MIT" ]
null
null
null
test/json_schema_test_suite/draft4/max_properties_test.exs
romul/xema
8273e10645cf54e8765a197b1ff0c097994275d9
[ "MIT" ]
null
null
null
test/json_schema_test_suite/draft4/max_properties_test.exs
romul/xema
8273e10645cf54e8765a197b1ff0c097994275d9
[ "MIT" ]
null
null
null
defmodule JsonSchemaTestSuite.Draft4.MaxPropertiesTest do use ExUnit.Case import Xema, only: [valid?: 2] describe "maxProperties validation" do setup do %{ schema: Xema.from_json_schema( %{"maxProperties" => 2}, draft: "draft4" ) } end ...
23.047619
66
0.56405
e8cc976052c6906dfd7c3041175c459a63270865
1,361
ex
Elixir
lib/memento/memento.ex
hewsut/memento
565a3834ae00d778160f85946d679fc4352d1318
[ "MIT" ]
null
null
null
lib/memento/memento.ex
hewsut/memento
565a3834ae00d778160f85946d679fc4352d1318
[ "MIT" ]
null
null
null
lib/memento/memento.ex
hewsut/memento
565a3834ae00d778160f85946d679fc4352d1318
[ "MIT" ]
null
null
null
defmodule Memento do require Memento.Mnesia @moduledoc """ Simple + Powerful interface to the Erlang Mnesia Database. See the [README](https://github.com/sheharyarn/memento) to get started. """ # Public API # ---------- @doc """ Start the Memento Application. This starts Memento and `:m...
17.675325
73
0.653196
e8ccb57822ae0b294b08bde0fa0f3fb62f9df68e
1,286
ex
Elixir
apps/plot/lib/plot/dynamic_plot_supervisor.ex
drobban/bottle
57a502e765a65d635f48ec6d6cbfae1e87dfea75
[ "Unlicense" ]
null
null
null
apps/plot/lib/plot/dynamic_plot_supervisor.ex
drobban/bottle
57a502e765a65d635f48ec6d6cbfae1e87dfea75
[ "Unlicense" ]
null
null
null
apps/plot/lib/plot/dynamic_plot_supervisor.ex
drobban/bottle
57a502e765a65d635f48ec6d6cbfae1e87dfea75
[ "Unlicense" ]
null
null
null
defmodule Plot.DynamicPlotSupervisor do use DynamicSupervisor require Logger def start_link(init_arg) do DynamicSupervisor.start_link(__MODULE__, init_arg, name: __MODULE__) end def init(_init_arg) do DynamicSupervisor.init(strategy: :one_for_one) end def start_plotting(symbol) when is_binary(...
21.433333
72
0.639191
e8ccc04a099253ee904a40eed05918fd85636f13
3,322
exs
Elixir
test/duration_test.exs
glennr/cldr_calendars
0b0ee11c6b7464c2e7db6f525a518ce08e99c807
[ "Apache-2.0" ]
null
null
null
test/duration_test.exs
glennr/cldr_calendars
0b0ee11c6b7464c2e7db6f525a518ce08e99c807
[ "Apache-2.0" ]
null
null
null
test/duration_test.exs
glennr/cldr_calendars
0b0ee11c6b7464c2e7db6f525a518ce08e99c807
[ "Apache-2.0" ]
null
null
null
defmodule Cldr.Calendar.Duration.Test do use ExUnit.Case, async: true alias Cldr.Calendar.Duration import Cldr.Calendar.Helper test "durations" do assert Duration.new(~D[2019-01-01], ~D[2019-12-31]) == {:ok, %Duration{ year: 0, month: 11, ...
30.2
99
0.454545
e8cccbdfd403fb555f616355f37893a1771d9e2f
1,561
ex
Elixir
lib/jeopardixir_web/views/error_helpers.ex
arielj/jeopardixir
d596dd4c0af7398f8b533518b5d8dc30c5bac94b
[ "MIT" ]
1
2021-06-16T15:27:04.000Z
2021-06-16T15:27:04.000Z
lib/jeopardixir_web/views/error_helpers.ex
arielj/jeopardixir
d596dd4c0af7398f8b533518b5d8dc30c5bac94b
[ "MIT" ]
25
2021-06-18T13:08:18.000Z
2021-12-15T19:04:57.000Z
lib/jeopardixir_web/views/error_helpers.ex
arielj/jeopardixir
d596dd4c0af7398f8b533518b5d8dc30c5bac94b
[ "MIT" ]
null
null
null
defmodule JeopardixirWeb.ErrorHelpers do @moduledoc """ Conveniences for translating and building error messages. """ use Phoenix.HTML @doc """ Generates tag for inlined form input errors. """ def error_tag(form, field) do Enum.map(Keyword.get_values(form.errors, field), fn error -> content_...
32.520833
80
0.668161
e8ccd4833f2148d8f7d671501ac83cda6afcfb69
335
exs
Elixir
leap/example.exs
wobh/xelixir
63e5beec40d5c441cf6cf87f30c29848f481bb1b
[ "MIT" ]
1
2021-08-16T20:24:14.000Z
2021-08-16T20:24:14.000Z
exercises/leap/example.exs
Triangle-Elixir/xelixir
08d23bf47f57799f286567cb26f635291de2fde5
[ "MIT" ]
null
null
null
exercises/leap/example.exs
Triangle-Elixir/xelixir
08d23bf47f57799f286567cb26f635291de2fde5
[ "MIT" ]
null
null
null
defmodule Year do def leap_year?(year) do div4?(year) && (div100?(year) == div400?(year)) end defp divides?(dividend, divisor), do: rem(dividend, divisor) == 0 defp div4?(dividend), do: divides?(dividend, 4) defp div100?(dividend), do: divides?(dividend, 100) defp div400?(dividend), do: divides?(divi...
30.454545
67
0.668657
e8ccf77ab24b79faac03ff5eca254c3824e4c51f
1,116
ex
Elixir
lib/shippo/transaction.ex
almielczarek/shippo-elixir-client
10a0a0a319d317556b3969cbc519f3dcc12f2944
[ "MIT" ]
1
2020-03-27T14:02:07.000Z
2020-03-27T14:02:07.000Z
lib/shippo/transaction.ex
almielczarek/shippo-elixir-client
10a0a0a319d317556b3969cbc519f3dcc12f2944
[ "MIT" ]
null
null
null
lib/shippo/transaction.ex
almielczarek/shippo-elixir-client
10a0a0a319d317556b3969cbc519f3dcc12f2944
[ "MIT" ]
null
null
null
defmodule Shippo.Transaction do use Shippo.Resource def endpoint, do: "/transactions" @doc """ Creates a Shippo transaction (purchases a label). # Returns - An ok-tuple with the transaction if the shipment or rate passed in is valid - An error-tuple with the response status and body if Shippo returns a...
27.219512
88
0.637993
e8ccfa35a1a3e19ceafdb22ab9cc6451ddb0ffce
1,191
ex
Elixir
lib/flux/date.ex
cjfreeze/Flux
ea1eb29932db806c06fcd6cdcc625df04b83f8bc
[ "MIT" ]
1
2021-10-05T02:22:22.000Z
2021-10-05T02:22:22.000Z
lib/flux/date.ex
cjfreeze/Flux
ea1eb29932db806c06fcd6cdcc625df04b83f8bc
[ "MIT" ]
null
null
null
lib/flux/date.ex
cjfreeze/Flux
ea1eb29932db806c06fcd6cdcc625df04b83f8bc
[ "MIT" ]
null
null
null
defmodule Flux.Date do def now, do: format(DateTime.utc_now()) def format(date) do [ "Date: ", day_of_week(date), ", ", ljust(date.day), " ", month_to_string(date.month), " ", "#{date.year}", " ", ljust(date.hour), ":", ljust(date.minute),...
16.315068
59
0.470193
e8cd05048c12bb4bfcd39220b2019e9a4dfb0f6c
1,135
ex
Elixir
lib/phoenix_trello.ex
everydayhoodie/phoenix-trello-notes
ca535a69c610f5edbfca85e34b06a679422d4ba2
[ "MIT" ]
null
null
null
lib/phoenix_trello.ex
everydayhoodie/phoenix-trello-notes
ca535a69c610f5edbfca85e34b06a679422d4ba2
[ "MIT" ]
null
null
null
lib/phoenix_trello.ex
everydayhoodie/phoenix-trello-notes
ca535a69c610f5edbfca85e34b06a679422d4ba2
[ "MIT" ]
null
null
null
defmodule PhoenixTrello 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 # Define workers and child supervisors to be supervised children = [ # Start the Ecto repos...
34.393939
91
0.721586
e8cd0b4151af18d123d7800d964ccd80d405239a
392
ex
Elixir
lib/traverse/steps/case.ex
MattiasJakobsson/traverse
7badb8776a4068561cf652b707549e81dad218ec
[ "MIT" ]
null
null
null
lib/traverse/steps/case.ex
MattiasJakobsson/traverse
7badb8776a4068561cf652b707549e81dad218ec
[ "MIT" ]
null
null
null
lib/traverse/steps/case.ex
MattiasJakobsson/traverse
7badb8776a4068561cf652b707549e81dad218ec
[ "MIT" ]
null
null
null
defmodule Traverse.Steps.Case do use Traverse.Steps.Step def run_step(definition, state) do matching_case = definition.cases |> Enum.find(fn item -> Traverse.ParameterInterpreter.compile_and_evaluate(item.case, state) == true end) case matching_case do nil -> {nil, nil} ...
24.5
83
0.653061
e8cd3713f76bb70ac7d3ed9c385ea990ec017262
225
exs
Elixir
priv/repo/migrations/20200713174859_add_user_id_to_messages.exs
raditya3/papercups
4657b258ee381ac0b7517e57e4d6261ce94b5871
[ "MIT" ]
4,942
2020-07-20T22:35:28.000Z
2022-03-31T15:38:51.000Z
priv/repo/migrations/20200713174859_add_user_id_to_messages.exs
raditya3/papercups
4657b258ee381ac0b7517e57e4d6261ce94b5871
[ "MIT" ]
552
2020-07-22T01:39:04.000Z
2022-02-01T00:26:35.000Z
priv/repo/migrations/20200713174859_add_user_id_to_messages.exs
raditya3/papercups
4657b258ee381ac0b7517e57e4d6261ce94b5871
[ "MIT" ]
396
2020-07-22T19:27:48.000Z
2022-03-31T05:25:24.000Z
defmodule ChatApi.Repo.Migrations.AddUserIdToMessages do use Ecto.Migration def change do alter table(:messages) do add(:user_id, references(:users)) end create(index(:messages, [:user_id])) end end
18.75
56
0.702222
e8cd52ceb6bfc3600f8c2715cb5bcde4e87bc862
9,574
ex
Elixir
lib/glimesh_web/live/user_live/components/subscribe_button.ex
Megami-Studios/glimesh.tv
57dde3a328fabdcc3305be48ae1b82df27b83c9b
[ "MIT" ]
328
2020-07-23T22:13:49.000Z
2022-03-31T21:22:28.000Z
lib/glimesh_web/live/user_live/components/subscribe_button.ex
Megami-Studios/glimesh.tv
57dde3a328fabdcc3305be48ae1b82df27b83c9b
[ "MIT" ]
362
2020-07-23T22:38:38.000Z
2022-03-24T02:11:16.000Z
lib/glimesh_web/live/user_live/components/subscribe_button.ex
Megami-Studios/glimesh.tv
57dde3a328fabdcc3305be48ae1b82df27b83c9b
[ "MIT" ]
72
2020-07-23T22:50:46.000Z
2022-02-02T11:59:32.000Z
defmodule GlimeshWeb.UserLive.Components.SubscribeButton do use GlimeshWeb, :live_view alias Glimesh.Accounts alias Glimesh.Payments @impl true def render(assigns) do ~L""" <span id="subscription-magic"> <%= if @user do %> <%= if @can_subscribe do %> <%= if @subsc...
42.362832
325
0.577815
e8cdb272727d24d8ca081f13f19da7998547db72
1,481
exs
Elixir
apps/auth/mix.exs
mikeonslow/guardian_live_oss
5f6101d19e2a30830475993465187e4e4391db39
[ "MIT" ]
null
null
null
apps/auth/mix.exs
mikeonslow/guardian_live_oss
5f6101d19e2a30830475993465187e4e4391db39
[ "MIT" ]
null
null
null
apps/auth/mix.exs
mikeonslow/guardian_live_oss
5f6101d19e2a30830475993465187e4e4391db39
[ "MIT" ]
1
2018-07-26T17:34:23.000Z
2018-07-26T17:34:23.000Z
defmodule Auth.Mixfile do use Mix.Project def project do [ app: :auth, version: "0.1.0", build_path: "../../_build", config_path: "../../config/config.exs", deps_path: "../../deps", lockfile: "../../mix.lock", elixir: "~> 1.6", build_embedded: Mix.env() == :prod,...
26.927273
97
0.577313
e8cdd476a1989bd2e8bf6f26168f1f71c472494f
1,357
ex
Elixir
priv/templates/phx.gen.auth/migration.ex
faheempatel/phoenix
a83318f2a2284b7ab29b0b86cdd9d2e1f4d0a7c9
[ "MIT" ]
18,092
2015-01-01T01:51:04.000Z
2022-03-31T19:37:14.000Z
priv/templates/phx.gen.auth/migration.ex
faheempatel/phoenix
a83318f2a2284b7ab29b0b86cdd9d2e1f4d0a7c9
[ "MIT" ]
3,905
2015-01-01T00:22:47.000Z
2022-03-31T17:06:21.000Z
priv/templates/phx.gen.auth/migration.ex
faheempatel/phoenix
a83318f2a2284b7ab29b0b86cdd9d2e1f4d0a7c9
[ "MIT" ]
3,205
2015-01-03T10:58:22.000Z
2022-03-30T14:55:57.000Z
defmodule <%= inspect schema.repo %>.Migrations.Create<%= Macro.camelize(schema.table) %>AuthTables do use Ecto.Migration def change do<%= if Enum.any?(migration.extensions) do %><%= for extension <- migration.extensions do %> <%= extension %><% end %> <% end %> create table(:<%= schema.table %><%= if sche...
45.233333
172
0.635225
e8ce1c0f707c9ce612cb67270baea88cb967adee
21,629
ex
Elixir
lib/livebook/notebook.ex
chriskdon/livebook
b1b573b5f4b49b2e90585e8f511e7b261dcae550
[ "Apache-2.0" ]
null
null
null
lib/livebook/notebook.ex
chriskdon/livebook
b1b573b5f4b49b2e90585e8f511e7b261dcae550
[ "Apache-2.0" ]
null
null
null
lib/livebook/notebook.ex
chriskdon/livebook
b1b573b5f4b49b2e90585e8f511e7b261dcae550
[ "Apache-2.0" ]
null
null
null
defmodule Livebook.Notebook do @moduledoc false # Data structure representing a notebook. # # A notebook is just the representation and roughly # maps to a file that the user can edit. # # A notebook *session* is a living process that holds a specific # notebook instance and allows users to collaborati...
30.549435
98
0.650423
e8ce2964c6aeb6c0fed4cbe0ad6bdbe68acbee2b
73
ex
Elixir
lib/phxwhttpoison_web/views/page_view.ex
mark-b-kauffman/phxwhttpoison
6d9acb505c302f19e5aba5ffc22166a8877a39d9
[ "BSD-3-Clause", "MIT" ]
null
null
null
lib/phxwhttpoison_web/views/page_view.ex
mark-b-kauffman/phxwhttpoison
6d9acb505c302f19e5aba5ffc22166a8877a39d9
[ "BSD-3-Clause", "MIT" ]
null
null
null
lib/phxwhttpoison_web/views/page_view.ex
mark-b-kauffman/phxwhttpoison
6d9acb505c302f19e5aba5ffc22166a8877a39d9
[ "BSD-3-Clause", "MIT" ]
null
null
null
defmodule PhxwhttpoisonWeb.PageView do use PhxwhttpoisonWeb, :view end
18.25
38
0.835616
e8ce2b7786198e13a3a0e55a7bd8362dd31fd70a
8,266
ex
Elixir
clients/cloud_billing/lib/google_api/cloud_billing/v1/api/services.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/cloud_billing/lib/google_api/cloud_billing/v1/api/services.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/cloud_billing/lib/google_api/cloud_billing/v1/api/services.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...
51.987421
394
0.650375
e8ce3507efb8bcec5e6de8df3495ce62311babb8
119
ex
Elixir
lib/elixir_awesome/repo.ex
ddidwyll/awesome-elixir
55b72305884cfd10510e25dd5f17f1a32765a17f
[ "MIT" ]
null
null
null
lib/elixir_awesome/repo.ex
ddidwyll/awesome-elixir
55b72305884cfd10510e25dd5f17f1a32765a17f
[ "MIT" ]
null
null
null
lib/elixir_awesome/repo.ex
ddidwyll/awesome-elixir
55b72305884cfd10510e25dd5f17f1a32765a17f
[ "MIT" ]
null
null
null
defmodule ElixirAwesome.Repo do use Ecto.Repo, otp_app: :elixir_awesome, adapter: Ecto.Adapters.Postgres end
19.833333
35
0.756303
e8ce48f892e78bf159148f948c2c4ba5ed0c1277
1,361
ex
Elixir
clients/cloud_trace/lib/google_api/cloud_trace/v2/model/time_event.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/cloud_trace/lib/google_api/cloud_trace/v2/model/time_event.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/cloud_trace/lib/google_api/cloud_trace/v2/model/time_event.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...
32.404762
97
0.74504