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
da9890f1f27989bc3be70e7afcc73bbcfddc33df
345
exs
Elixir
spec/ex_ndjson/json_parser_spec.exs
marceldegraaf/ex_ndjson
f7cdaf57a0eb1aefe257f81881edb673c2939ca6
[ "MIT" ]
6
2018-09-29T11:30:15.000Z
2022-01-16T21:44:08.000Z
spec/ex_ndjson/json_parser_spec.exs
marceldegraaf/ex_ndjson
f7cdaf57a0eb1aefe257f81881edb673c2939ca6
[ "MIT" ]
2
2020-05-05T12:12:30.000Z
2021-02-02T20:50:45.000Z
spec/ex_ndjson/json_parser_spec.exs
marceldegraaf/ex_ndjson
f7cdaf57a0eb1aefe257f81881edb673c2939ca6
[ "MIT" ]
1
2019-06-27T08:42:05.000Z
2019-06-27T08:42:05.000Z
defmodule ExNdjson.JSONParserSpec do @moduledoc false use ESpec alias ExNdjson.JSONParser describe "parse/1" do context "Checks if iodata is valid JSON" do it( do: expect( <<123, 125>> |> JSONParser.parse() |> to(eql({:valid, %{}})) ) ...
17.25
47
0.515942
da98a42d6b38dc068cf918fa128aecbf8da03f1d
210
exs
Elixir
priv/repo/migrations/20180706030516_add_sys_record_to_delivery_records.exs
DavidAlphaFox/coderplanets_server
3fd47bf3bba6cc04c9a34698201a60ad2f3e8254
[ "Apache-2.0" ]
1
2019-05-07T15:03:54.000Z
2019-05-07T15:03:54.000Z
priv/repo/migrations/20180706030516_add_sys_record_to_delivery_records.exs
DavidAlphaFox/coderplanets_server
3fd47bf3bba6cc04c9a34698201a60ad2f3e8254
[ "Apache-2.0" ]
null
null
null
priv/repo/migrations/20180706030516_add_sys_record_to_delivery_records.exs
DavidAlphaFox/coderplanets_server
3fd47bf3bba6cc04c9a34698201a60ad2f3e8254
[ "Apache-2.0" ]
null
null
null
defmodule MastaniServer.Repo.Migrations.AddSysRecordToDeliveryRecords do use Ecto.Migration def change do alter table(:delivery_records) do add(:sys_notifications_record, :map) end end end
21
72
0.766667
da994b957ef1c778b164d74a0fca558f6fb6ae04
772
ex
Elixir
lib/crit_biz/view_models/support/field_fillers/from_web.ex
brownt23/crit19
c45c7b3ae580c193168d83144da0eeb9bc91c8a9
[ "MIT" ]
6
2019-07-16T19:31:23.000Z
2021-06-05T19:01:05.000Z
lib/crit_biz/view_models/support/field_fillers/from_web.ex
brownt23/crit19
c45c7b3ae580c193168d83144da0eeb9bc91c8a9
[ "MIT" ]
null
null
null
lib/crit_biz/view_models/support/field_fillers/from_web.ex
brownt23/crit19
c45c7b3ae580c193168d83144da0eeb9bc91c8a9
[ "MIT" ]
3
2020-02-24T23:38:27.000Z
2020-08-01T23:50:17.000Z
defmodule CritBiz.ViewModels.FieldFillers.FromWeb do use Crit.Global.Constants alias Ecto.Datespan alias Crit.Servers.Institution alias Ecto.Changeset def span(%Changeset{} = changeset), do: changeset |> Changeset.apply_changes |> span def span(%{} = data) do date = fn string -> Date.from_iso860...
29.692308
72
0.659326
da9954cf8dde2b71a66e02e7bd5b65fc346926cb
25,920
exs
Elixir
test/fixtures.exs
letitcrash/elixir-browser
387455d9623f24a6cab05efb39551753a414aceb
[ "MIT" ]
46
2015-10-31T18:49:39.000Z
2018-09-14T04:32:35.000Z
test/fixtures.exs
letitcrash/elixir-browser
387455d9623f24a6cab05efb39551753a414aceb
[ "MIT" ]
17
2016-04-27T00:32:49.000Z
2018-09-20T23:33:43.000Z
test/fixtures.exs
letitcrash/elixir-browser
387455d9623f24a6cab05efb39551753a414aceb
[ "MIT" ]
16
2016-04-27T00:21:02.000Z
2018-09-10T04:32:23.000Z
defmodule Fixtures do def ua do %{ "ADOBE_AIR" => "Mozilla/5.0 (Macintosh; U; Intel Mac OS X; de) AppleWebKit/533.19.4 (KHTML, like Gecko) AdobeAIR/13.0", "ANDROID" => "Android SDK 1.5r3: Mozilla/5.0 (Linux; U; Android 1.5; de-; sdk Build/CUPCAKE) AppleWebkit/528.5+ (KHTML, like Gecko) Version/3.1.2 M...
108.451883
234
0.666821
da997143a0b0e557e8feaaf5d86371025bcd2e93
4,911
ex
Elixir
lib/trento/application/projectors/check_result_projector.ex
trento-project/web
3260b30c781bffbbb0e5205cd650966c4026b9ac
[ "Apache-2.0" ]
1
2022-03-22T16:59:34.000Z
2022-03-22T16:59:34.000Z
lib/trento/application/projectors/check_result_projector.ex
trento-project/web
3260b30c781bffbbb0e5205cd650966c4026b9ac
[ "Apache-2.0" ]
24
2022-03-22T16:45:25.000Z
2022-03-31T13:00:02.000Z
lib/trento/application/projectors/check_result_projector.ex
trento-project/web
3260b30c781bffbbb0e5205cd650966c4026b9ac
[ "Apache-2.0" ]
1
2022-03-30T14:16:16.000Z
2022-03-30T14:16:16.000Z
defmodule Trento.CheckResultProjector do @moduledoc """ Check result projector """ use Commanded.Projections.Ecto, application: Trento.Commanded, repo: Trento.Repo, name: "check_result_projector" import Ecto.Query alias Trento.Domain.Events.{ ChecksExecutionRequested, HostChecksExecut...
27.745763
98
0.570963
da99ab3f59d0bfbb275d1c80d11ad25f3ee2bb3d
1,443
ex
Elixir
lib/ch_web/router.ex
ckampfe/ch
88d1ab3f7b8cf4be63913348610ba78a3e9e2e54
[ "BSD-3-Clause" ]
null
null
null
lib/ch_web/router.ex
ckampfe/ch
88d1ab3f7b8cf4be63913348610ba78a3e9e2e54
[ "BSD-3-Clause" ]
null
null
null
lib/ch_web/router.ex
ckampfe/ch
88d1ab3f7b8cf4be63913348610ba78a3e9e2e54
[ "BSD-3-Clause" ]
null
null
null
defmodule ChWeb.Router do use ChWeb, :router pipeline :browser do plug :accepts, ["html"] plug :fetch_session plug :fetch_live_flash plug :put_root_layout, {ChWeb.LayoutView, :root} plug :protect_from_forgery plug :put_secure_browser_headers end pipeline :api do plug :accepts, ["js...
25.315789
70
0.688843
da99ad85703e69f80a669c6e015c80222f6faba0
4,467
exs
Elixir
test/mix/tasks/docs_test.exs
DisruptiveAngels/ex_doc
d67b5293e6cd10bf440e26cbb913a0fb68a61786
[ "Apache-2.0", "CC-BY-4.0" ]
null
null
null
test/mix/tasks/docs_test.exs
DisruptiveAngels/ex_doc
d67b5293e6cd10bf440e26cbb913a0fb68a61786
[ "Apache-2.0", "CC-BY-4.0" ]
2
2020-12-04T22:03:31.000Z
2022-03-02T10:00:23.000Z
test/mix/tasks/docs_test.exs
DisruptiveAngels/ex_doc
d67b5293e6cd10bf440e26cbb913a0fb68a61786
[ "Apache-2.0", "CC-BY-4.0" ]
null
null
null
Mix.start() Mix.shell(Mix.Shell.Process) defmodule Mix.Tasks.DocsTest do # Cannot run concurrently due to Mix compile/deps calls use ExUnit.Case def run(args, opts) do Mix.Tasks.Docs.run(args, opts, &{&1, &2, &3}) end test "inflects values from app and version" do assert [{"ex_doc", "0.1.0", [forma...
34.898438
95
0.538393
da99c91cbb241c2b845755a86ed5a9306b5cab08
1,245
ex
Elixir
lib/derivco/application.ex
AdolfodelSel/Derivco
ad3090208dfc9e11415825f5ce1374ef3f8c2985
[ "MIT" ]
null
null
null
lib/derivco/application.ex
AdolfodelSel/Derivco
ad3090208dfc9e11415825f5ce1374ef3f8c2985
[ "MIT" ]
2
2021-03-09T15:53:17.000Z
2021-05-10T09:50:18.000Z
lib/derivco/application.ex
AdolfodelSel/Derivco
ad3090208dfc9e11415825f5ce1374ef3f8c2985
[ "MIT" ]
null
null
null
defmodule Derivco.Application do # See https://hexdocs.pm/elixir/Application.html # for more information on OTP Applications @moduledoc false require Logger use Application def start(_type, _args) do import Supervisor.Spec # List all child processes to be supervised children = [ # Start...
28.295455
81
0.696386
da99e29d3758371af08fa8744795c2f29d36ae7c
513
exs
Elixir
test/defql/defql_test.exs
fazibear/defql
862a426f852b0b2675d3af766eda2e39f9fde19b
[ "MIT" ]
107
2017-01-21T17:34:06.000Z
2022-02-09T03:13:20.000Z
test/defql/defql_test.exs
fazibear/defql
862a426f852b0b2675d3af766eda2e39f9fde19b
[ "MIT" ]
5
2017-01-30T11:30:20.000Z
2019-04-12T10:49:53.000Z
test/defql/defql_test.exs
fazibear/defql
862a426f852b0b2675d3af766eda2e39f9fde19b
[ "MIT" ]
8
2017-01-30T11:23:53.000Z
2020-04-19T16:58:40.000Z
defmodule Test.Defql.Defql do use ExUnit.Case defmodule TestQuery do use Defql, table: :test_table_name def get_table, do: @table end defmodule TestQueryWithError do use Defql defselect select(params) end test "allows to define and store a table name in an attribute" do assert TestQ...
19
67
0.71345
da99e663ca0d1ac28769c8478ae957392e8e5feb
1,930
ex
Elixir
clients/dataflow/lib/google_api/dataflow/v1b3/model/get_debug_config_request.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/get_debug_config_request.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/dataflow/lib/google_api/dataflow/v1b3/model/get_debug_config_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.464286
119
0.717098
da9a002a3ecf2c9063f46ee6b115f913e45fcc33
3,436
exs
Elixir
test/changelog_web/controllers/episode_controller_test.exs
boneskull/changelog.com
2fa2e356bb0e8fcf038c46a4a947fef98822e37d
[ "MIT" ]
null
null
null
test/changelog_web/controllers/episode_controller_test.exs
boneskull/changelog.com
2fa2e356bb0e8fcf038c46a4a947fef98822e37d
[ "MIT" ]
null
null
null
test/changelog_web/controllers/episode_controller_test.exs
boneskull/changelog.com
2fa2e356bb0e8fcf038c46a4a947fef98822e37d
[ "MIT" ]
null
null
null
defmodule ChangelogWeb.EpisodeControllerTest do use ChangelogWeb.ConnCase alias Changelog.Episode test "getting a published podcast episode page and its embed", %{conn: conn} do p = insert(:podcast) e = insert(:published_episode, podcast: p) insert(:episode_host, episode: e) insert(:episode_host...
31.522936
113
0.653085
da9a044386fb4dd740ee93c13e8850ff33c6fb7f
3,827
ex
Elixir
lib/teiserver_web/controllers/account/relationships_controller.ex
icexuick/teiserver
22f2e255e7e21f977e6b262acf439803626a506c
[ "MIT" ]
6
2021-02-08T10:42:53.000Z
2021-04-25T12:12:03.000Z
lib/teiserver_web/controllers/account/relationships_controller.ex
icexuick/teiserver
22f2e255e7e21f977e6b262acf439803626a506c
[ "MIT" ]
14
2021-08-01T02:36:14.000Z
2022-01-30T21:15:03.000Z
lib/teiserver_web/controllers/account/relationships_controller.ex
icexuick/teiserver
22f2e255e7e21f977e6b262acf439803626a506c
[ "MIT" ]
7
2021-05-13T12:55:28.000Z
2022-01-14T06:39:06.000Z
defmodule TeiserverWeb.Account.RelationshipsController do use CentralWeb, :controller import Central.Helpers.NumberHelper, only: [int_parse: 1] alias Teiserver.{Clans, User} plug(:add_breadcrumb, name: 'Teiserver', url: '/teiserver') plug(:add_breadcrumb, name: 'Account', url: '/teiserver/account') plug(:a...
31.368852
87
0.623204
da9a4e4c02ba26a19af2e0a06e4008e8f9d63baa
72
exs
Elixir
test/1000/practice_1129_test.exs
penqen/yukicoder-elixir
4f3e9e4694a14434cc3700280e9205226434733b
[ "MIT" ]
null
null
null
test/1000/practice_1129_test.exs
penqen/yukicoder-elixir
4f3e9e4694a14434cc3700280e9205226434733b
[ "MIT" ]
null
null
null
test/1000/practice_1129_test.exs
penqen/yukicoder-elixir
4f3e9e4694a14434cc3700280e9205226434733b
[ "MIT" ]
null
null
null
defmodule Practice1129Test do use ExUnit.Case doctest Practice1129 end
18
29
0.861111
da9a6338ccb09fd0dfe95eb38b7a89bc2e2df60c
405
ex
Elixir
lib/recase/cases/dot_case.ex
ndreynolds/recase
1fee467fe1c6bec0642364c493406454522d3489
[ "MIT" ]
null
null
null
lib/recase/cases/dot_case.ex
ndreynolds/recase
1fee467fe1c6bec0642364c493406454522d3489
[ "MIT" ]
null
null
null
lib/recase/cases/dot_case.ex
ndreynolds/recase
1fee467fe1c6bec0642364c493406454522d3489
[ "MIT" ]
null
null
null
defmodule Recase.DotCase do @moduledoc """ Module to convert strings to `dot.case`. This module should not be used directly. `DotCase` is the same as `KebabCase` and `SnakeCase`. But uses `.` as a separator. """ alias Recase.SnakeCase @sep "." @spec convert(String.t) :: String.t def convert(val...
18.409091
55
0.651852
da9a9adef80947b78ce3e6a7e4c11007a6c6abd8
220
ex
Elixir
lib/mix/tasks/count/wiktionary.ex
teerawat1992/zxcvbn-ex
8d8c7d8e723ffe8f9ca52a3b79d344105af9beb1
[ "MIT" ]
null
null
null
lib/mix/tasks/count/wiktionary.ex
teerawat1992/zxcvbn-ex
8d8c7d8e723ffe8f9ca52a3b79d344105af9beb1
[ "MIT" ]
null
null
null
lib/mix/tasks/count/wiktionary.ex
teerawat1992/zxcvbn-ex
8d8c7d8e723ffe8f9ca52a3b79d344105af9beb1
[ "MIT" ]
null
null
null
defmodule Mix.Tasks.Count.Wiktionary do use Mix.Task @shortdoc "Extracts words and counts from a 2006 wiktionary word frequency study over American television and movies" def run(_) do IO.puts "TODO" end end
27.5
119
0.759091
da9a9f13d81c6f05690154e4ed15fce34098455d
338
exs
Elixir
test/test_helper.exs
pvp-technologies/ex_vantage
3f04dbc5c952f0c44a06132992e9112a1e367915
[ "MIT" ]
null
null
null
test/test_helper.exs
pvp-technologies/ex_vantage
3f04dbc5c952f0c44a06132992e9112a1e367915
[ "MIT" ]
null
null
null
test/test_helper.exs
pvp-technologies/ex_vantage
3f04dbc5c952f0c44a06132992e9112a1e367915
[ "MIT" ]
null
null
null
ExUnit.start() Application.put_env(:ex_vantage, :api_base_url, "http://localhost:8081") Application.put_env(:ex_vantage, :client_id, "test_client_id") Application.put_env(:ex_vantage, :client_secret, "test_client_secret") Application.put_env(:ex_vantage, :username, "tester") Application.put_env(:ex_vantage, :password,...
42.25
72
0.795858
da9ac01b722dbbf942b83ce9d06e2f5bf50a139d
3,633
exs
Elixir
13-card-deck.exs
lbiru/30-days-of-elixir
8472b6bf4a2f0a12dc6aea930abde2d50867b460
[ "MIT" ]
1
2020-05-27T04:32:37.000Z
2020-05-27T04:32:37.000Z
13-card-deck.exs
tifazxy/30-days-of-elixir
1d3e5cc1580ecbfdf9bd8eafed6ed68cb681404a
[ "MIT" ]
null
null
null
13-card-deck.exs
tifazxy/30-days-of-elixir
1d3e5cc1580ecbfdf9bd8eafed6ed68cb681404a
[ "MIT" ]
1
2018-09-30T00:43:04.000Z
2018-09-30T00:43:04.000Z
defmodule Deck do @moduledoc """ Create, shuffle, deal a set of 52 cards. """ @doc """ Returns a list of tuples, in sorted order. """ def new do for suit <- ~w(Hearts Clubs Diamonds Spades), face <- [2, 3, 4, 5, 6, 7, 8, 9, 10, "J", "Q", "K", "A"], do: {suit, face} end @doc """...
40.366667
257
0.537848
da9ad6d2b822e029342dbaadb88cb3a032840b04
15,164
ex
Elixir
clients/slides/lib/google_api/slides/v1/api/presentations.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/slides/lib/google_api/slides/v1/api/presentations.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/slides/lib/google_api/slides/v1/api/presentations.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...
48.447284
977
0.677592
da9b367ae5dd7616d629c858b675e0deb751e82e
7,543
ex
Elixir
lib/version_release/git.ex
bulld0zer/elixir-version-release
f659bf0bf21167684eb12cf6be3d38bc9291d64b
[ "MIT" ]
16
2020-08-25T16:30:47.000Z
2022-03-23T12:41:55.000Z
lib/version_release/git.ex
bulld0zer/elixir-version-release
f659bf0bf21167684eb12cf6be3d38bc9291d64b
[ "MIT" ]
18
2021-03-23T05:54:50.000Z
2022-03-24T08:03:21.000Z
lib/version_release/git.ex
bulld0zer/elixir-version-release
f659bf0bf21167684eb12cf6be3d38bc9291d64b
[ "MIT" ]
1
2021-05-12T09:05:35.000Z
2021-05-12T09:05:35.000Z
defmodule VersionRelease.Git do require Logger alias VersionRelease.Config alias VersionRelease.Version alias __MODULE__ def push(%{dry_run: false, error: false, git_push: true} = config) do Logger.info("Push to github with tags") # System.cmd("git", ["push"]) Git.Cli.push([]) # System.cmd("...
25.483108
97
0.539971
da9b5be6500c144dcf155d543b90ca96ca36e80f
324
exs
Elixir
examples/foo/mix.exs
davydog187/erl_doc_chunks
4ca01972d4d85658327a12b069686ff1b38fe941
[ "Apache-2.0" ]
1
2021-07-22T13:17:41.000Z
2021-07-22T13:17:41.000Z
examples/foo/mix.exs
davydog187/erl_doc_chunks
4ca01972d4d85658327a12b069686ff1b38fe941
[ "Apache-2.0" ]
1
2021-07-22T10:56:12.000Z
2021-07-22T10:56:12.000Z
examples/foo/mix.exs
davydog187/erl_doc_chunks
4ca01972d4d85658327a12b069686ff1b38fe941
[ "Apache-2.0" ]
1
2021-07-22T10:52:42.000Z
2021-07-22T10:52:42.000Z
defmodule Foo.MixProject do use Mix.Project def project do [ app: :foo, version: "0.1.0", elixir: "~> 1.10", deps: deps(), compilers: Mix.compilers() ++ [:erl_doc_chunks], language: :erlang ] end defp deps do [ {:erl_doc_chunks, path: "../.."} ] end ...
15.428571
54
0.518519
da9b62fea54b5f520bf840572487bbd46250ed9d
1,521
ex
Elixir
lib/mix/base_artifacts_generate.ex
akdilsiz/commodity-cloud
08c366c9fc95fbb3565131672db4cc52f8b870c9
[ "Apache-2.0" ]
7
2019-04-11T21:12:49.000Z
2021-04-14T12:56:42.000Z
lib/mix/base_artifacts_generate.ex
akdilsiz/commodity-cloud
08c366c9fc95fbb3565131672db4cc52f8b870c9
[ "Apache-2.0" ]
null
null
null
lib/mix/base_artifacts_generate.ex
akdilsiz/commodity-cloud
08c366c9fc95fbb3565131672db4cc52f8b870c9
[ "Apache-2.0" ]
2
2019-06-06T18:05:33.000Z
2019-07-16T08:49:45.000Z
## # Copyright 2018 Abdulkadir DILSIZ # # 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...
29.25
77
0.727153
da9ba02de2ee1f9671935ca946ee6acebc1d4d95
483
exs
Elixir
chromoid_web/priv/repo/migrations/20201022185059_create_scripts.exs
ConnorRigby/chromoid
6424a9234227d18d7c287ded869caeb31511bb97
[ "Apache-2.0" ]
7
2020-11-18T11:29:20.000Z
2022-01-16T03:16:14.000Z
chromoid_web/priv/repo/migrations/20201022185059_create_scripts.exs
ConnorRigby/chromoid
6424a9234227d18d7c287ded869caeb31511bb97
[ "Apache-2.0" ]
null
null
null
chromoid_web/priv/repo/migrations/20201022185059_create_scripts.exs
ConnorRigby/chromoid
6424a9234227d18d7c287ded869caeb31511bb97
[ "Apache-2.0" ]
1
2021-01-06T15:40:46.000Z
2021-01-06T15:40:46.000Z
defmodule Chromoid.Repo.Migrations.CreateScripts do use Ecto.Migration def change do create table(:scripts) do add :created_by_id, references(:users), null: false add :path, :string, null: false add :filename, :string, null: false add :subsystem, :string, null: false add :deleted_...
26.833333
62
0.674948
da9bf3a1de1af2bf955e9b010535d1e98b7c2a8e
1,307
ex
Elixir
clients/eventarc/lib/google_api/eventarc/v1beta1/model/cancel_operation_request.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/eventarc/lib/google_api/eventarc/v1beta1/model/cancel_operation_request.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/eventarc/lib/google_api/eventarc/v1beta1/model/cancel_operation_request.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...
31.119048
87
0.770467
da9c053ffeb0223dc17e3bf3fd20bc9a3fdebd27
427
ex
Elixir
apps/theta/lib/theta/application.ex
LangPham/thetaproject
c6479d1b761ff58fe6ae5f82e2d9de87a8658883
[ "MIT" ]
null
null
null
apps/theta/lib/theta/application.ex
LangPham/thetaproject
c6479d1b761ff58fe6ae5f82e2d9de87a8658883
[ "MIT" ]
11
2020-07-21T09:34:54.000Z
2021-08-29T07:38:02.000Z
apps/theta/lib/theta/application.ex
LangPham/thetaproject
c6479d1b761ff58fe6ae5f82e2d9de87a8658883
[ "MIT" ]
null
null
null
defmodule Theta.Application do # See https://hexdocs.pm/elixir/Application.html # for more information on OTP Applications @moduledoc false use Application def start(_type, _args) do children = [ Theta.Repo, Theta.CacheDB, # Start the PubSub system {Phoenix.PubSub, name: Theta.Pu...
22.473684
83
0.69555
da9c2e948579c78cfb978d6e515efb86ac37186e
190
exs
Elixir
test/sortbot_test.exs
bfcarpio/exNoops-mirror
e9a08e8cfdc47da9ab3fef1cdd3bb1fd021b1cc5
[ "MIT" ]
null
null
null
test/sortbot_test.exs
bfcarpio/exNoops-mirror
e9a08e8cfdc47da9ab3fef1cdd3bb1fd021b1cc5
[ "MIT" ]
null
null
null
test/sortbot_test.exs
bfcarpio/exNoops-mirror
e9a08e8cfdc47da9ab3fef1cdd3bb1fd021b1cc5
[ "MIT" ]
null
null
null
defmodule Exnoops.SortbotTest do use ExUnit.Case doctest Exnoops.Sortbot test "404" do assert Exnoops.Sortbot.submit("/sortbot/NotAPath", error: "...") == {:error, 404} end end
21.111111
85
0.694737
da9c3d8ae32f8915a5fb5c3dcc0b29329797922a
355
exs
Elixir
priv/repo/seeds.exs
jennifertakagi/chewiepay
15b5eca89f56e2933610f3edda7412889dc08137
[ "MIT" ]
4
2021-02-22T18:27:51.000Z
2021-02-28T21:54:12.000Z
priv/repo/seeds.exs
jennifertakagi/chewiepay
15b5eca89f56e2933610f3edda7412889dc08137
[ "MIT" ]
null
null
null
priv/repo/seeds.exs
jennifertakagi/chewiepay
15b5eca89f56e2933610f3edda7412889dc08137
[ "MIT" ]
null
null
null
# Script for populating the database. You can run it as: # # mix run priv/repo/seeds.exs # # Inside the script, you can read and write to any of your # repositories directly: # # Chewiepay.Repo.insert!(%Chewiepay.SomeSchema{}) # # We recommend using the bang functions (`insert!`, `update!` # and so on) as they ...
29.583333
61
0.709859
da9c47b4f36688c752b0d300e8e3287fded0b8cb
456
ex
Elixir
lib/plug/tiny_errors.ex
tinysvc/tiny_errors
bf0e45d836537167925237b6c165d5de544fc475
[ "MIT" ]
null
null
null
lib/plug/tiny_errors.ex
tinysvc/tiny_errors
bf0e45d836537167925237b6c165d5de544fc475
[ "MIT" ]
null
null
null
lib/plug/tiny_errors.ex
tinysvc/tiny_errors
bf0e45d836537167925237b6c165d5de544fc475
[ "MIT" ]
null
null
null
defmodule Plug.TinyErrors do import Plug.Conn @moduledoc """ Plug for outputing errors as a json feed. Make sure to secure the route somehow! """ def init(opts) do opts end def call(conn, _opts) do send_json(conn) end defp send_json(conn) do conn |> put_resp_content_type("applica...
16.285714
48
0.662281
da9c53eedb94b6f1dffafd8ffebdb90419dd72dc
861
ex
Elixir
lib/ar_weekly_web/models/SubscriberParams.ex
Domeee/ar-weekly
1ffa4f129fa4a654673c8ee8b0bef7dd87271f92
[ "MIT" ]
3
2019-03-05T16:45:08.000Z
2019-08-23T12:10:57.000Z
lib/ar_weekly_web/models/SubscriberParams.ex
Domeee/ar-weekly
1ffa4f129fa4a654673c8ee8b0bef7dd87271f92
[ "MIT" ]
2
2021-03-08T23:53:02.000Z
2021-05-08T00:07:08.000Z
lib/ar_weekly_web/models/SubscriberParams.ex
Domeee/ar-weekly
1ffa4f129fa4a654673c8ee8b0bef7dd87271f92
[ "MIT" ]
null
null
null
defmodule ArWeeklyWeb.SubscriberParams do use Ecto.Schema import Ecto.Changeset embedded_schema do field(:email) field(:is_robot, :boolean) end def changeset(model, params) do model |> cast(params, [:email, :is_robot]) |> validate_required(:email) |> validate_email(:email) |> val...
22.657895
100
0.635308
da9c89c40d17cd9547fbb4249231175e50b6b6f4
2,462
ex
Elixir
clients/service_usage/lib/google_api/service_usage/v1/model/page.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/service_usage/lib/google_api/service_usage/v1/model/page.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/service_usage/lib/google_api/service_usage/v1/model/page.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...
46.45283
558
0.721365
da9c93dd50eb6042ab2a9e28e08a840daeded630
820
ex
Elixir
src/lib/changelog/transcripts/parser.ex
thenets/docker-chocoquest
856fa5ff41a5831ed67b1ef865cd8951df5af023
[ "MIT" ]
1
2018-01-22T20:07:10.000Z
2018-01-22T20:07:10.000Z
lib/changelog/transcripts/parser.ex
joebew42/changelog.com
da4ec68d15f3a2b4b6c29033443d7e7afe814d18
[ "MIT" ]
null
null
null
lib/changelog/transcripts/parser.ex
joebew42/changelog.com
da4ec68d15f3a2b4b6c29033443d7e7afe814d18
[ "MIT" ]
null
null
null
defmodule Changelog.Transcripts.Parser do @speaker_regex ~r{\*\*(.*?):\*\*} def parse_text(string, participants \\ []) def parse_text(string, participants) when is_nil(string), do: parse_text("", participants) def parse_text(string, participants) do @speaker_regex |> Regex.split(string, include_capture...
30.37037
100
0.64878
da9c99518ea3ee5a10e2ce10387ae029ffcc9b87
1,467
exs
Elixir
mix.exs
facto/espec_json
48160541c7111b24434f71a8dbfe03675370e1f2
[ "MIT" ]
11
2016-07-19T15:33:25.000Z
2021-07-11T17:31:33.000Z
mix.exs
facto/espec_json
48160541c7111b24434f71a8dbfe03675370e1f2
[ "MIT" ]
1
2018-05-17T16:15:23.000Z
2018-05-17T16:15:23.000Z
mix.exs
facto/espec_json
48160541c7111b24434f71a8dbfe03675370e1f2
[ "MIT" ]
2
2016-09-20T11:14:41.000Z
2018-05-16T15:41:29.000Z
defmodule TestThatJson.Mixfile do use Mix.Project def project do [ app: :test_that_json, version: "0.6.0", elixir: "~> 1.4", build_embedded: Mix.env == :prod, start_permanent: Mix.env == :prod, deps: deps(), description: des...
22.569231
77
0.525562
da9cc238751eccaa899073e458b1ca5a10c82e67
86
exs
Elixir
test/nflrushing_web/views/page_view_test.exs
mvanlamz/nflrushing
7b796fe7633e54795dc3a60193cdb66c578988c7
[ "MIT" ]
null
null
null
test/nflrushing_web/views/page_view_test.exs
mvanlamz/nflrushing
7b796fe7633e54795dc3a60193cdb66c578988c7
[ "MIT" ]
null
null
null
test/nflrushing_web/views/page_view_test.exs
mvanlamz/nflrushing
7b796fe7633e54795dc3a60193cdb66c578988c7
[ "MIT" ]
null
null
null
defmodule NflrushingWeb.PageViewTest do use NflrushingWeb.ConnCase, async: true end
21.5
41
0.837209
da9ce397c6a6b009b309d88335c003d7ffb61a56
118
exs
Elixir
apps/astarte_housekeeping_api/.formatter.exs
Annopaolo/astarte
f8190e8bf044759a9b84bdeb5786a55b6f793a4f
[ "Apache-2.0" ]
191
2018-03-30T13:23:08.000Z
2022-03-02T12:05:32.000Z
apps/astarte_housekeeping_api/.formatter.exs
Annopaolo/astarte
f8190e8bf044759a9b84bdeb5786a55b6f793a4f
[ "Apache-2.0" ]
402
2018-03-30T13:37:00.000Z
2022-03-31T16:47:10.000Z
apps/astarte_housekeeping_api/.formatter.exs
Annopaolo/astarte
f8190e8bf044759a9b84bdeb5786a55b6f793a4f
[ "Apache-2.0" ]
24
2018-03-30T13:29:48.000Z
2022-02-28T11:10:26.000Z
[ import_deps: [:phoenix, :ecto, :skogsra], inputs: ["{mix,.formatter}.exs", "{config,lib,test}/**/*.{ex,exs}"] ]
23.6
69
0.576271
da9ced1937bd3e5c056addbcb916d0bc08ef125c
191
ex
Elixir
lib/algae/writer/applicative.ex
doma-engineering/algae
da85c5a9e78591c707859f07f9d485ed68019349
[ "MIT" ]
191
2016-08-22T17:34:45.000Z
2019-05-28T19:02:39.000Z
lib/algae/writer/applicative.ex
doma-engineering/algae
da85c5a9e78591c707859f07f9d485ed68019349
[ "MIT" ]
35
2016-08-30T20:56:22.000Z
2019-05-02T17:32:31.000Z
lib/algae/writer/applicative.ex
doma-engineering/algae
da85c5a9e78591c707859f07f9d485ed68019349
[ "MIT" ]
10
2016-08-30T18:41:54.000Z
2019-02-14T14:14:55.000Z
alias Algae.Writer import TypeClass use Witchcraft definst Witchcraft.Applicative, for: Algae.Writer do def of(%Writer{writer: {_, log}}, value), do: Writer.new(value, empty(log)) end
23.875
77
0.73822
da9cfe4050619236d07beacab7c526b25cfea88f
3,954
ex
Elixir
lib/timer_based_throttler.ex
frojasg/throttler
8e143f64e75a3f1d65f6b8615a2e18d2982ca4f5
[ "Apache-2.0" ]
null
null
null
lib/timer_based_throttler.ex
frojasg/throttler
8e143f64e75a3f1d65f6b8615a2e18d2982ca4f5
[ "Apache-2.0" ]
null
null
null
lib/timer_based_throttler.ex
frojasg/throttler
8e143f64e75a3f1d65f6b8615a2e18d2982ca4f5
[ "Apache-2.0" ]
null
null
null
defmodule TimerBasedThrottler do @moduledoc """ Let's say you application needs to make calls to an external service which has a restriction usage. You may only make X calls in Y seconds. With a throttler, you can ensure that calls you make do not cross the threshold rate. ## Examples iex> {:ok, thr}...
31.632
137
0.675266
da9d1f3a43afeba0de5866068a3da82079ff2d23
1,138
ex
Elixir
apps/admin_api/lib/admin_api/v1/views/api_key_view.ex
AndonMitev/EWallet
898cde38933d6f134734528b3e594eedf5fa50f3
[ "Apache-2.0" ]
322
2018-02-28T07:38:44.000Z
2020-05-27T23:09:55.000Z
apps/admin_api/lib/admin_api/v1/views/api_key_view.ex
AndonMitev/EWallet
898cde38933d6f134734528b3e594eedf5fa50f3
[ "Apache-2.0" ]
643
2018-02-28T12:05:20.000Z
2020-05-22T08:34:38.000Z
apps/admin_api/lib/admin_api/v1/views/api_key_view.ex
AndonMitev/EWallet
898cde38933d6f134734528b3e594eedf5fa50f3
[ "Apache-2.0" ]
63
2018-02-28T10:57:06.000Z
2020-05-27T23:10:38.000Z
# Copyright 2018-2019 OmiseGO Pte Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
32.514286
74
0.741652
da9d7b37cda1f7bd8079ae4e0176cc866ab01636
469
ex
Elixir
lib/snmp/ecto/type/string.ex
mattjg908/elixir-snmp
a888390e7d1a9d9595c9fc7a51ec19bdcabc63e9
[ "MIT" ]
6
2021-02-26T13:42:47.000Z
2022-01-17T18:49:25.000Z
lib/snmp/ecto/type/string.ex
mattjg908/elixir-snmp
a888390e7d1a9d9595c9fc7a51ec19bdcabc63e9
[ "MIT" ]
2
2021-02-26T14:09:00.000Z
2021-04-22T10:49:25.000Z
lib/snmp/ecto/type/string.ex
mattjg908/elixir-snmp
a888390e7d1a9d9595c9fc7a51ec19bdcabc63e9
[ "MIT" ]
1
2021-10-19T21:24:03.000Z
2021-10-19T21:24:03.000Z
defmodule Snmp.Ecto.Type.String do @moduledoc """ Custom type for SNMP strings (stored as charlist) """ use Ecto.Type def type, do: :string def cast(v) when is_binary(v), do: {:ok, v} def cast(v) when is_list(v) do {:ok, to_string(v)} rescue ArgumentError -> :error end def cast(_),...
16.172414
51
0.603412
da9d92390e3a1d3a9d7da190c9e064d757c99c7d
3,900
ex
Elixir
lib/nostrum/voice/ports.ex
panoramix360/nostrum
05fa22ab70ad9f6b356fc1a421cca0c5b90fa1bb
[ "MIT" ]
null
null
null
lib/nostrum/voice/ports.ex
panoramix360/nostrum
05fa22ab70ad9f6b356fc1a421cca0c5b90fa1bb
[ "MIT" ]
null
null
null
lib/nostrum/voice/ports.ex
panoramix360/nostrum
05fa22ab70ad9f6b356fc1a421cca0c5b90fa1bb
[ "MIT" ]
null
null
null
defmodule Nostrum.Voice.Ports do @moduledoc false defmodule State do @moduledoc false defstruct [ :q, :port, :port_done, :awaiter, :input_pid ] def new(port, input_pid) do %__MODULE__{ q: :queue.new(), port_done: false, port: port, ...
23.780488
90
0.587949
da9d9fb41b839d26e09af88b4f30734188164873
1,399
exs
Elixir
mix.exs
membraneframework/membrane_udp_plugin
55acb0bfd26f9364a7e1e2f3eee42fd654f57e96
[ "Apache-2.0" ]
4
2019-02-05T18:33:40.000Z
2020-08-30T00:15:29.000Z
mix.exs
membraneframework/membrane_udp_plugin
55acb0bfd26f9364a7e1e2f3eee42fd654f57e96
[ "Apache-2.0" ]
2
2020-08-12T09:29:18.000Z
2020-11-19T13:43:22.000Z
mix.exs
membraneframework/membrane-element-udp
55acb0bfd26f9364a7e1e2f3eee42fd654f57e96
[ "Apache-2.0" ]
null
null
null
defmodule Membrane.UDP.MixProject do use Mix.Project @version "0.8.0" @github_url "https://github.com/membraneframework/membrane_udp_plugin" def project do [ app: :membrane_udp_plugin, version: @version, elixir: "~> 1.12", elixirc_paths: elixirc_paths(Mix.env()), description:...
22.564516
72
0.565404
da9db8c728b74f2ac2bacf6641f155ee912d9443
884
exs
Elixir
mix.exs
keslert/elixir-amazon-product-advertising-client
89643817c992c261a72afc35c485dcdad15b0bf6
[ "MIT" ]
null
null
null
mix.exs
keslert/elixir-amazon-product-advertising-client
89643817c992c261a72afc35c485dcdad15b0bf6
[ "MIT" ]
null
null
null
mix.exs
keslert/elixir-amazon-product-advertising-client
89643817c992c261a72afc35c485dcdad15b0bf6
[ "MIT" ]
null
null
null
defmodule AmazonProductAdvertisingClient.Mixfile do use Mix.Project def project do [ app: :amazon_product_advertising_client, version: "0.3.0", elixir: "~> 1.4", description: "An Amazon Product Advertising API client for Elixir", package: package(), deps: deps() ] end ...
22.666667
89
0.588235
da9ddb80acad157e951b7d60058ab16d01649401
69
exs
Elixir
test/test_helper.exs
jsvelasquezv/mp_api
9a2262188b5b12c0e2ecd9284a8e7f445d2be4a0
[ "MIT" ]
null
null
null
test/test_helper.exs
jsvelasquezv/mp_api
9a2262188b5b12c0e2ecd9284a8e7f445d2be4a0
[ "MIT" ]
null
null
null
test/test_helper.exs
jsvelasquezv/mp_api
9a2262188b5b12c0e2ecd9284a8e7f445d2be4a0
[ "MIT" ]
null
null
null
ExUnit.start() Ecto.Adapters.SQL.Sandbox.mode(MpApi.Repo, :manual)
13.8
51
0.753623
da9df6ba27737f7fce3d6250393a69df88639da0
1,647
exs
Elixir
test/controllers/queues_controller_test.exs
apodlaski/verk_web
91c544b1f792f929e06f18e26b964e23a5771a8a
[ "MIT" ]
82
2016-02-08T04:33:54.000Z
2022-03-29T07:17:36.000Z
test/controllers/queues_controller_test.exs
apodlaski/verk_web
91c544b1f792f929e06f18e26b964e23a5771a8a
[ "MIT" ]
81
2016-03-09T02:17:40.000Z
2021-12-05T07:29:04.000Z
test/controllers/queues_controller_test.exs
apodlaski/verk_web
91c544b1f792f929e06f18e26b964e23a5771a8a
[ "MIT" ]
42
2016-04-05T21:35:31.000Z
2021-11-09T11:58:26.000Z
defmodule VerkWeb.QueuesControllerTest do use VerkWeb.ConnCase import :meck, except: [delete: 3] alias Verk.QueueStats alias Verk @stats [ %{ queue: "default", running_counter: 1, finished_counter: 1, failed_counter: 0, status: :running } ] setup do new(QueueSta...
22.561644
65
0.590771
da9e1138e192faba4d7ba97197116d15f364562d
15,136
ex
Elixir
lib/elixir/lib/path.ex
enokd/elixir
e39b32f235082b8a29fcb22d250c822cca98609f
[ "Apache-2.0" ]
1
2015-11-12T19:23:45.000Z
2015-11-12T19:23:45.000Z
lib/elixir/lib/path.ex
enokd/elixir
e39b32f235082b8a29fcb22d250c822cca98609f
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/path.ex
enokd/elixir
e39b32f235082b8a29fcb22d250c822cca98609f
[ "Apache-2.0" ]
null
null
null
defmodule Path do @moduledoc """ This module provides conveniences for manipulating or retrieving file system paths. The functions in this module may receive a char list or a binary as an argument and will return a value of the same type. The majority of the functions in this module do not interact wi...
27.3213
105
0.627246
da9e378695655b76ab006c6e73baa08cc4a0149e
5,295
ex
Elixir
lib/muontrap/options.ex
AlmiS/muontrap
38f5b417e365f80a38882cafb0692adaee199691
[ "Apache-2.0" ]
null
null
null
lib/muontrap/options.ex
AlmiS/muontrap
38f5b417e365f80a38882cafb0692adaee199691
[ "Apache-2.0" ]
null
null
null
lib/muontrap/options.ex
AlmiS/muontrap
38f5b417e365f80a38882cafb0692adaee199691
[ "Apache-2.0" ]
null
null
null
defmodule MuonTrap.Options do @moduledoc """ Validate and normalize the options passed to MuonTrap.cmd/3 and MuonTrap.Daemon.start_link/3 This module is generally not called directly, but it's likely the source of exceptions if any options aren't quite right. Call `validate/4` directly to debug or check opti...
31.89759
97
0.669688
da9e4cafcc07d00fb7de7f620b9346c3eb838ace
476
ex
Elixir
apps/discordbot/lib/discordbot/entity/supervisor.ex
alexweav/discordbot
1ee138f7c42a6901ab769e2ce59a6878bf603290
[ "MIT" ]
4
2018-11-19T06:10:52.000Z
2022-02-03T01:50:23.000Z
apps/discordbot/lib/discordbot/entity/supervisor.ex
alexweav/discordbot
1ee138f7c42a6901ab769e2ce59a6878bf603290
[ "MIT" ]
254
2018-11-19T06:08:51.000Z
2021-07-22T13:47:26.000Z
apps/discordbot/lib/discordbot/entity/supervisor.ex
alexweav/discordbot
1ee138f7c42a6901ab769e2ce59a6878bf603290
[ "MIT" ]
null
null
null
defmodule DiscordBot.Entity.Supervisor do @moduledoc false use Supervisor def start_link(opts) do broker = Keyword.get(opts, :broker, Broker) Supervisor.start_link(__MODULE__, broker, opts) end def init(broker) do children = [ {DiscordBot.Entity.Guilds, name: DiscordBot.Guilds, broker: br...
23.8
77
0.714286
da9e5a9a63667ac428933e005fffb2811d718fc2
670
exs
Elixir
test/cog/chat/hipchat/templates/embedded/relay_list_test.exs
matusf/cog
71708301c7dc570fb0d3498a50f47a70ef957788
[ "Apache-2.0" ]
1,003
2016-02-23T17:21:12.000Z
2022-02-20T14:39:35.000Z
test/cog/chat/hipchat/templates/embedded/relay_list_test.exs
matusf/cog
71708301c7dc570fb0d3498a50f47a70ef957788
[ "Apache-2.0" ]
906
2016-02-22T22:54:19.000Z
2022-03-11T15:19:43.000Z
test/cog/chat/hipchat/templates/embedded/relay_list_test.exs
matusf/cog
71708301c7dc570fb0d3498a50f47a70ef957788
[ "Apache-2.0" ]
95
2016-02-23T13:42:31.000Z
2021-11-30T14:39:55.000Z
defmodule Cog.Chat.HipChat.Templates.Embedded.RelayListTest do use Cog.TemplateCase test "relay-list template" do data = %{"results" => [%{"name" => "relay_one", "status" => "enabled"}, %{"name" => "relay_two", "status" => "di...
31.904762
79
0.49403
da9e892a75883fd16896fc8269be2544d414a2f8
12,308
ex
Elixir
lib/mongo/session.ex
gergo-papp/mongodb
bccfe80a59c2499077c16b9ecaa5eabb6161b919
[ "Apache-2.0" ]
null
null
null
lib/mongo/session.ex
gergo-papp/mongodb
bccfe80a59c2499077c16b9ecaa5eabb6161b919
[ "Apache-2.0" ]
2
2021-07-10T18:53:51.000Z
2021-08-06T15:36:58.000Z
lib/mongo/session.ex
commoncurriculum/mongodb_forked
bccfe80a59c2499077c16b9ecaa5eabb6161b919
[ "Apache-2.0" ]
3
2021-07-10T18:01:00.000Z
2021-08-05T00:39:17.000Z
defmodule Mongo.Session do @enforce_keys [:session, :pid] defstruct @enforce_keys ++ [ :ref, :read_concern, :write_concern, :read_preference, operation_time: nil, causal_consistency: true, r...
30.465347
96
0.637309
da9e8fd1502b73824adbf83f8d9a0f0600744e21
2,726
exs
Elixir
test/plug/logger_test.exs
kianmeng/ex_json_logger
587fa795836633dd734506541e0198dfaf9929e8
[ "MIT" ]
11
2017-08-12T07:11:15.000Z
2020-01-13T22:09:01.000Z
test/plug/logger_test.exs
kianmeng/ex_json_logger
587fa795836633dd734506541e0198dfaf9929e8
[ "MIT" ]
14
2017-02-24T20:46:53.000Z
2020-06-09T21:28:25.000Z
test/plug/logger_test.exs
kianmeng/ex_json_logger
587fa795836633dd734506541e0198dfaf9929e8
[ "MIT" ]
6
2017-10-07T22:12:04.000Z
2021-08-22T14:45:53.000Z
defmodule ExJsonLogger.Plug.LoggerTest do use ExUnit.Case, async: true use Plug.Test import TestUtils, only: [capture_log: 1] require Logger @default_metadata [ :method, :path, :status, :duration ] @phoenix_metadata [ :format, :controller, :action ] defmodule MyApp do ...
21.983871
62
0.570066
da9e9f9cff3ca3fbbf6d7d5945855b85524e894a
2,571
exs
Elixir
test/pennystock_api/auth_test.exs
TheAlexPorter/pennystock-api
e42d8a8d25a31f1723c5f28a344a4ee7ff7e30e9
[ "MIT" ]
null
null
null
test/pennystock_api/auth_test.exs
TheAlexPorter/pennystock-api
e42d8a8d25a31f1723c5f28a344a4ee7ff7e30e9
[ "MIT" ]
null
null
null
test/pennystock_api/auth_test.exs
TheAlexPorter/pennystock-api
e42d8a8d25a31f1723c5f28a344a4ee7ff7e30e9
[ "MIT" ]
null
null
null
defmodule PennystockApi.AuthTest do use PennystockApi.DataCase alias PennystockApi.Auth describe "users" do alias PennystockApi.Auth.User @valid_attrs %{email: "some email", is_active: true, password: "some password"} @update_attrs %{ email: "some updated email", is_active: false, ...
32.1375
98
0.656943
da9ea269928f66314e27316373dabd52ed82418f
2,708
ex
Elixir
lib/otp_supervisors_1/lib/otp_supervisors_1/application.ex
mikan/elixir-practice
624525605eb2324e0c55a4ddcb68388c0d2ecefc
[ "Apache-2.0" ]
null
null
null
lib/otp_supervisors_1/lib/otp_supervisors_1/application.ex
mikan/elixir-practice
624525605eb2324e0c55a4ddcb68388c0d2ecefc
[ "Apache-2.0" ]
1
2020-01-28T00:19:53.000Z
2020-01-28T00:19:53.000Z
lib/otp_supervisors_1/lib/otp_supervisors_1/application.ex
mikan/elixir-practice
624525605eb2324e0c55a4ddcb68388c0d2ecefc
[ "Apache-2.0" ]
null
null
null
defmodule OtpSupervisors1.Application do # See https://hexdocs.pm/elixir/Application.html # for more information on OTP Applications @moduledoc false use Application def start(_type, _args) do import Supervisor.Spec, warn: false # List all child processes to be supervised children = [ # St...
42.984127
174
0.702733
da9eb226c073b4006d77c505aa30ab058d40a3ce
7,360
ex
Elixir
lib/rtypes/lambda.ex
d2km/rtypes
ea5eca9862d8860fce9bd29798f4bf032aa0481d
[ "Apache-2.0" ]
21
2019-05-23T12:35:31.000Z
2020-09-30T04:48:03.000Z
lib/rtypes/lambda.ex
d2km/rtypes
ea5eca9862d8860fce9bd29798f4bf032aa0481d
[ "Apache-2.0" ]
3
2020-10-16T11:49:33.000Z
2020-11-14T08:53:44.000Z
lib/rtypes/lambda.ex
d2km/rtypes
ea5eca9862d8860fce9bd29798f4bf032aa0481d
[ "Apache-2.0" ]
2
2019-06-06T14:20:25.000Z
2020-01-06T11:00:08.000Z
defmodule RTypes.Lambda do def build({:type, _line, :any, _args}), do: fn _ -> true end def build({:type, _line, :none, _args}) do fn _ -> raise "attempt to validate bottom type" end end def build({:type, _line, :atom, _args}), do: &is_atom(&1) def build({:type, _line, :integer, _args}), do: &...
22.786378
88
0.543207
da9eb3d5cb5cee25ebcee53ff9b4dbda02b27431
1,178
ex
Elixir
lib/slax_web/controllers/issue_controller.ex
HoffsMH/slax
b91ee30b9fd71a4cb7826f50b605ce580b7c1651
[ "MIT" ]
null
null
null
lib/slax_web/controllers/issue_controller.ex
HoffsMH/slax
b91ee30b9fd71a4cb7826f50b605ce580b7c1651
[ "MIT" ]
null
null
null
lib/slax_web/controllers/issue_controller.ex
HoffsMH/slax
b91ee30b9fd71a4cb7826f50b605ce580b7c1651
[ "MIT" ]
null
null
null
defmodule SlaxWeb.IssueController do use SlaxWeb, :controller alias Slax.Github plug(Slax.Plugs.VerifySlackToken, token: :issue) plug(Slax.Plugs.VerifyUser) def start(conn, %{"text" => ""}) do text(conn, """ *Issue commands:* /issue <org/repo> <issue title> [issue body preceded by a newline] ...
26.772727
78
0.549236
da9ef95807f7d499946476c960d1ac4adc62ed4d
1,873
exs
Elixir
apps/rig_inbound_gateway/test/rig/api_proxy/auth_test.exs
hlavacek/reactive-interaction-gateway
6b968b742d8f0456a51c31dbc744ccfacd57191e
[ "Apache-2.0" ]
null
null
null
apps/rig_inbound_gateway/test/rig/api_proxy/auth_test.exs
hlavacek/reactive-interaction-gateway
6b968b742d8f0456a51c31dbc744ccfacd57191e
[ "Apache-2.0" ]
null
null
null
apps/rig_inbound_gateway/test/rig/api_proxy/auth_test.exs
hlavacek/reactive-interaction-gateway
6b968b742d8f0456a51c31dbc744ccfacd57191e
[ "Apache-2.0" ]
null
null
null
defmodule RigInboundGateway.ApiProxy.AuthTest do @moduledoc false use ExUnit.Case, async: true use RigInboundGatewayWeb.ConnCase alias RigInboundGateway.ApiProxy.Auth test "pick_query_token should return token when API wants it" do conn = conn_with_query(%{"token" => "JWT"}) api = %{"auth" => %{"use...
33.446429
80
0.674319
da9f1e98ec50292f5d5060f537ae7016ce92ed3e
589
ex
Elixir
chapter2/challenges/exflight/test/support/factory.ex
mCodex/rocketseat-ignite-elixir
bdb48db778c36b2325c75a41b4d6f7ef77b03cf5
[ "MIT" ]
1
2021-07-23T19:48:27.000Z
2021-07-23T19:48:27.000Z
chapter2/challenges/exflight/test/support/factory.ex
mCodex/rocketseat-ignite-elixir
bdb48db778c36b2325c75a41b4d6f7ef77b03cf5
[ "MIT" ]
null
null
null
chapter2/challenges/exflight/test/support/factory.ex
mCodex/rocketseat-ignite-elixir
bdb48db778c36b2325c75a41b4d6f7ef77b03cf5
[ "MIT" ]
null
null
null
defmodule Exflight.Factory do use ExMachina alias Exflight.Bookings.Booking alias Exflight.Users.User def user_factory() do id = UUID.uuid4() %User{ id: id, name: "John Doe", email: "john_doe@test.com", cpf: "123456" } end def booking_factory() do id = UUID.uuid4(...
17.848485
67
0.609508
da9f4cb7e7b4a4ce784a386754d22b237532d606
396
ex
Elixir
web/views/mock_view.ex
Dania02525/duckphoenix
a998d7987231b1488c5ee87a63358cb0981f9356
[ "MIT" ]
1
2018-02-09T13:29:32.000Z
2018-02-09T13:29:32.000Z
web/views/mock_view.ex
Dania02525/duckphoenix
a998d7987231b1488c5ee87a63358cb0981f9356
[ "MIT" ]
null
null
null
web/views/mock_view.ex
Dania02525/duckphoenix
a998d7987231b1488c5ee87a63358cb0981f9356
[ "MIT" ]
null
null
null
defmodule Duckphoenix.MockView do use Duckphoenix.Web, :view def render("index.json", %{mocks: mocks}) do %{data: render_many(mocks, Duckphoenix.MockView, "mock.json")} end def render("show.json", %{mock: mock}) do %{data: render_one(mock, Duckphoenix.MockView, "mock.json")} end def render("mock....
24.75
66
0.664141
da9f563247d12d214e0de601842ce8cc172a5d9e
292
exs
Elixir
22.MacrosAndCodeEvaluation/mace2.exs
kenspirit/programming-elixir-exercises
35ca1f0cb17ca4040b395c2f9cc53e51918c99ca
[ "MIT" ]
6
2019-10-25T21:51:11.000Z
2022-03-23T02:11:38.000Z
22.MacrosAndCodeEvaluation/mace2.exs
kenspirit/programming-elixir-exercises
35ca1f0cb17ca4040b395c2f9cc53e51918c99ca
[ "MIT" ]
null
null
null
22.MacrosAndCodeEvaluation/mace2.exs
kenspirit/programming-elixir-exercises
35ca1f0cb17ca4040b395c2f9cc53e51918c99ca
[ "MIT" ]
1
2020-06-16T12:37:43.000Z
2020-06-16T12:37:43.000Z
defmodule Times do defmacro times_n(n) do quote do def unquote(:"times_#{n}")(v) do unquote(n) * v end end end end defmodule Test do require Times Times.times_n(3) Times.times_n(4) end IO.puts Test.times_3(4) #=> 12 IO.puts Test.times_4(5) #=> 20
14.6
38
0.609589
da9f9cfbf31da4ba47037360bb64afe866fe6cd8
601
ex
Elixir
lib/queries/total_index_size.ex
jaimeiniesta/ecto_psql_extras
76c19373e170001e20a0a3a8ab3294fb7dc77175
[ "MIT" ]
null
null
null
lib/queries/total_index_size.ex
jaimeiniesta/ecto_psql_extras
76c19373e170001e20a0a3a8ab3294fb7dc77175
[ "MIT" ]
null
null
null
lib/queries/total_index_size.ex
jaimeiniesta/ecto_psql_extras
76c19373e170001e20a0a3a8ab3294fb7dc77175
[ "MIT" ]
null
null
null
defmodule EctoPSQLExtras.TotalIndexSize do @behaviour EctoPSQLExtras def info do %{ title: "Total size of all indexes in MB", index: 13, columns: [ %{name: :size, type: :bytes} ] } end def query(_args \\ []) do """ /* ECTO_PSQL_EXTRAS: Total size of all indexes ...
22.259259
63
0.610649
da9faf9a59e098dbb3d82b02c1938a03769be72c
2,499
ex
Elixir
lib/models/account.ex
heikkari/dashium
d3f58033efac81e7f747091f2810caf2ce8f45ab
[ "MIT" ]
2
2021-09-05T23:23:00.000Z
2021-09-11T16:26:11.000Z
lib/models/account.ex
heikkari/dashium
d3f58033efac81e7f747091f2810caf2ce8f45ab
[ "MIT" ]
null
null
null
lib/models/account.ex
heikkari/dashium
d3f58033efac81e7f747091f2810caf2ce8f45ab
[ "MIT" ]
null
null
null
defmodule Models.Account do alias Models.User, as: User @spec auth(integer, binary) :: boolean def auth(user_id, gjp) when is_integer(user_id) and is_binary(gjp) do case Mongo.find_one(:mongo, "users", %{ _id: user_id }) do nil -> false document -> case check_pass(document, Utils.gjp(gjp, true)) ...
32.454545
104
0.586635
daa0005664a83954afc17d94ca2571b2f2e9a814
1,043
exs
Elixir
config/config.exs
brsg/telluride_ui
f5f477ff2ed5aa9ef5baa2d6f4e4596ecee482fd
[ "Apache-2.0" ]
2
2021-03-05T13:24:49.000Z
2021-09-22T23:36:21.000Z
config/config.exs
brsg/telluride_ui
f5f477ff2ed5aa9ef5baa2d6f4e4596ecee482fd
[ "Apache-2.0" ]
null
null
null
config/config.exs
brsg/telluride_ui
f5f477ff2ed5aa9ef5baa2d6f4e4596ecee482fd
[ "Apache-2.0" ]
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. # General application configuration use Mix.Config config :telluride_ui, namespace: Telluride # ...
32.59375
87
0.774688
daa02a9f5439d63cbfdbfbe3631b5566d281908b
23,745
ex
Elixir
clients/compute/lib/google_api/compute/v1/api/ssl_policies.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/compute/lib/google_api/compute/v1/api/ssl_policies.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/compute/lib/google_api/compute/v1/api/ssl_policies.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...
55.22093
434
0.661908
daa039c9bdea0fe796a6b48b3f525a033f9b9702
11,294
exs
Elixir
test/elixir/test/users_db_test.exs
frapa/couchdb
6c28960f0fe2eec06aca7d58fd73f3c7cdbe1112
[ "Apache-2.0" ]
1
2022-01-14T20:52:55.000Z
2022-01-14T20:52:55.000Z
test/elixir/test/users_db_test.exs
frapa/couchdb
6c28960f0fe2eec06aca7d58fd73f3c7cdbe1112
[ "Apache-2.0" ]
null
null
null
test/elixir/test/users_db_test.exs
frapa/couchdb
6c28960f0fe2eec06aca7d58fd73f3c7cdbe1112
[ "Apache-2.0" ]
null
null
null
defmodule UsersDbTest do use CouchTestCase @moduletag :authentication @moduletag kind: :single_node @users_db_name "_users" @moduletag config: [ { "chttpd_auth", "authentication_db", @users_db_name }, { ...
26.265116
90
0.594918
daa03f24aa2d7f04d76bf3a7d831ff71cf267245
136
exs
Elixir
test/fixtures/example_plugin_integration/plugin/.credo.exs
hrzndhrn/credo
71a7b24a5ca8e7a48416e0cdfb42cf8a0fef9593
[ "MIT" ]
4,590
2015-09-28T06:01:43.000Z
2022-03-29T08:48:57.000Z
test/fixtures/example_plugin_integration/plugin/.credo.exs
hrzndhrn/credo
71a7b24a5ca8e7a48416e0cdfb42cf8a0fef9593
[ "MIT" ]
890
2015-11-16T21:07:07.000Z
2022-03-29T08:52:07.000Z
test/fixtures/example_plugin_integration/plugin/.credo.exs
hrzndhrn/credo
71a7b24a5ca8e7a48416e0cdfb42cf8a0fef9593
[ "MIT" ]
479
2015-11-17T19:42:40.000Z
2022-03-29T00:09:21.000Z
%{ configs: [ %{ name: "default", checks: [ {Credo.Check.Readability.LargeNumbers, false} ] } ] }
12.363636
53
0.455882
daa06af8c048a80aabcb498ec9545de4163b4a0e
2,681
ex
Elixir
clients/compute/lib/google_api/compute/v1/model/security_policy_list.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/compute/lib/google_api/compute/v1/model/security_policy_list.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/compute/lib/google_api/compute/v1/model/security_policy_list.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...
45.440678
393
0.725103
daa06daf0fd71b004d70747e55f391d7b74341e0
3,346
ex
Elixir
clients/analytics/lib/google_api/analytics/v3/api/user_deletion.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/analytics/lib/google_api/analytics/v3/api/user_deletion.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/analytics/lib/google_api/analytics/v3/api/user_deletion.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...
38.906977
187
0.659892
daa0800b4a99ba7c5f037608b3a56435474cdfea
21,972
ex
Elixir
clients/dfa_reporting/lib/google_api/dfa_reporting/v33/api/creative_field_values.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/dfa_reporting/lib/google_api/dfa_reporting/v33/api/creative_field_values.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/dfa_reporting/lib/google_api/dfa_reporting/v33/api/creative_field_values.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...
42.830409
196
0.61187
daa0963753c659f143429a3672c5cd2fc4cd3723
6,381
ex
Elixir
lib/mix/lib/mix/tasks/deps.ex
NJichev/elixir
aef81d1aadfd9522ab4efb6d04103a73584ac9a1
[ "Apache-2.0" ]
2
2018-11-15T06:38:14.000Z
2018-11-17T18:03:14.000Z
lib/mix/lib/mix/tasks/deps.ex
NJichev/elixir
aef81d1aadfd9522ab4efb6d04103a73584ac9a1
[ "Apache-2.0" ]
null
null
null
lib/mix/lib/mix/tasks/deps.ex
NJichev/elixir
aef81d1aadfd9522ab4efb6d04103a73584ac9a1
[ "Apache-2.0" ]
null
null
null
defmodule Mix.Tasks.Deps do use Mix.Task import Mix.Dep, only: [load_on_environment: 1, format_dep: 1, format_status: 1, check_lock: 1] @shortdoc "Lists dependencies and their status" @moduledoc ~S""" Lists all dependencies and their status. Dependencies must be specified in the `mix.exs` file in one of...
37.535294
105
0.68798
daa0aaf2b4e38955fa87667bc214a0d9f64cdee2
14,685
ex
Elixir
lib/joken.ex
ybod/joken
4e7d34f4020ee1346f4c437e0c555589e1173132
[ "Apache-2.0" ]
null
null
null
lib/joken.ex
ybod/joken
4e7d34f4020ee1346f4c437e0c555589e1173132
[ "Apache-2.0" ]
null
null
null
lib/joken.ex
ybod/joken
4e7d34f4020ee1346f4c437e0c555589e1173132
[ "Apache-2.0" ]
null
null
null
defmodule Joken do alias Joken.Token alias Joken.Signer alias Joken.Claims @moduledoc """ Joken is the main API for configuring JWT token generation and validation. All you need to generate a token is a `Joken.Token` struct with proper values. There you can set: - json_module: choose your JSON libra...
31.378205
92
0.665032
daa0afc714fc3213e4cb486bfea3fe387992177a
1,323
ex
Elixir
lib/inch_ex/cli/commands/report_output.ex
asaaki/inch_ex
38874a6050663f97c9cbfea29e9b413b4eea1a7b
[ "MIT" ]
200
2015-01-05T19:08:30.000Z
2022-02-23T01:57:09.000Z
lib/inch_ex/cli/commands/report_output.ex
asaaki/inch_ex
38874a6050663f97c9cbfea29e9b413b4eea1a7b
[ "MIT" ]
57
2015-01-03T12:07:28.000Z
2021-10-31T10:26:31.000Z
lib/inch_ex/cli/commands/report_output.ex
asaaki/inch_ex
38874a6050663f97c9cbfea29e9b413b4eea1a7b
[ "MIT" ]
101
2015-01-18T17:20:20.000Z
2022-03-07T23:28:53.000Z
defmodule InchEx.CLI.Commands.ReportOutput do alias InchEx.CLI.Git @doc false def call(results, url) do results |> InchEx.JSON.Mapping.from_results() |> merge_metadata |> InchEx.JSON.encode!() |> send_to_server(url) end defp send_to_server(data, url) do case :httpc.request(:post, {ur...
23.210526
78
0.595616
daa1140f6359a8746d6065b799f05c9d38571987
1,178
ex
Elixir
lib/cotoami/application.ex
reallinfo/cotoami
faaee71710019fa55a8215ea60d1d3bafc30d506
[ "Apache-2.0" ]
null
null
null
lib/cotoami/application.ex
reallinfo/cotoami
faaee71710019fa55a8215ea60d1d3bafc30d506
[ "Apache-2.0" ]
null
null
null
lib/cotoami/application.ex
reallinfo/cotoami
faaee71710019fa55a8215ea60d1d3bafc30d506
[ "Apache-2.0" ]
null
null
null
defmodule Cotoami.Application do @moduledoc """ The entrypoint of Cotoami app """ use Application require Logger def start(_type, _args) do import Supervisor.Spec redix_workers = for i <- 0..(Cotoami.Redix.redix_pool_size() - 1) do worker( Redix, [ case Cotoami.Red...
24.541667
75
0.616299
daa116e32ac65b2a96590091c07a870d7f391e0a
454
exs
Elixir
rustler_tests/mix.exs
jtdowney/rustler
c61ab3c407e3d8040e3a3b54889f5c388c5c80e5
[ "Apache-2.0", "MIT" ]
2,075
2019-03-10T02:30:23.000Z
2022-03-31T21:34:49.000Z
rustler_tests/mix.exs
jtdowney/rustler
c61ab3c407e3d8040e3a3b54889f5c388c5c80e5
[ "Apache-2.0", "MIT" ]
194
2019-03-10T00:14:16.000Z
2022-03-30T13:37:00.000Z
rustler_tests/mix.exs
jtdowney/rustler
c61ab3c407e3d8040e3a3b54889f5c388c5c80e5
[ "Apache-2.0", "MIT" ]
130
2019-03-13T05:31:10.000Z
2022-03-27T15:34:05.000Z
defmodule RustlerTest.Mixfile do use Mix.Project def project do [ app: :rustler_test, version: "0.0.1", elixir: "~> 1.2", compilers: [:rustler] ++ Mix.compilers(), build_embedded: Mix.env() == :prod, start_permanent: Mix.env() == :prod, deps: deps() ] end def ...
18.916667
56
0.577093
daa122866f0a8b2c4754adc5adefe0e73a34039e
419
ex
Elixir
lib/forge_sdk/protocol/display/stake_state.ex
ArcBlock/forge-elixir-sdk
61ff656a59116d3da18055d54655e8eb5ca15f63
[ "Apache-2.0" ]
21
2019-05-08T01:25:42.000Z
2022-02-08T02:30:18.000Z
lib/forge_sdk/protocol/display/stake_state.ex
ArcBlock/forge-elixir-sdk
61ff656a59116d3da18055d54655e8eb5ca15f63
[ "Apache-2.0" ]
6
2019-05-27T23:07:00.000Z
2020-03-10T04:33:10.000Z
lib/forge_sdk/protocol/display/stake_state.ex
ArcBlock/forge-elixir-sdk
61ff656a59116d3da18055d54655e8eb5ca15f63
[ "Apache-2.0" ]
2
2019-07-21T18:12:47.000Z
2021-07-31T21:18:38.000Z
defimpl ForgeSdk.Display, for: ForgeAbi.StakeState do @moduledoc """ Implementation of `Display` protocol for `StakeState` """ alias ForgeSdk.Display def display(data, expand? \\ false) do basic = Map.from_struct(data) Map.merge(basic, %{ balance: Display.display(basic.balance), data: Di...
24.647059
55
0.682578
daa12ab093657c04ee132f2e9e57eb4054fe196c
2,002
ex
Elixir
lib/credo/check/warning/raise_inside_rescue.ex
isaacsanders/credo
5623570bb2e3944345f1bf11819ca613533b5e10
[ "MIT" ]
null
null
null
lib/credo/check/warning/raise_inside_rescue.ex
isaacsanders/credo
5623570bb2e3944345f1bf11819ca613533b5e10
[ "MIT" ]
null
null
null
lib/credo/check/warning/raise_inside_rescue.ex
isaacsanders/credo
5623570bb2e3944345f1bf11819ca613533b5e10
[ "MIT" ]
1
2020-09-25T11:48:49.000Z
2020-09-25T11:48:49.000Z
defmodule Credo.Check.Warning.RaiseInsideRescue do @moduledoc false @checkdoc """ Using `Kernel.raise` inside of a `rescue` block creates a new stacktrace, which obscures the cause of the original error. Example: # preferred try do raise "oops" rescue error -> L...
22.75
90
0.621878
daa12d565be219d7e010c2466f806b9f1af3b1a1
675
exs
Elixir
flatten-array/flatten_array.exs
ChrisWilding/exercism-elixir
ee966439b460f82ef9581611f71c2f626402d14a
[ "MIT" ]
null
null
null
flatten-array/flatten_array.exs
ChrisWilding/exercism-elixir
ee966439b460f82ef9581611f71c2f626402d14a
[ "MIT" ]
null
null
null
flatten-array/flatten_array.exs
ChrisWilding/exercism-elixir
ee966439b460f82ef9581611f71c2f626402d14a
[ "MIT" ]
null
null
null
defmodule FlattenArray do @doc """ Accept a list and return the list flattened without nil values. ## Examples iex> FlattenArray.flatten([1, [2], 3, nil]) [1,2,3] iex> FlattenArray.flatten([nil, nil]) [] """ @spec flatten(list) :: list def flatten(list, next \\ []) def fl...
18.75
67
0.58963
daa150411beda8f8a1b03c5f814e4432a7c0f1c6
1,797
ex
Elixir
platform/target/info_workers/wifi_level.ex
FarmBot/farmbot_os
5ebdca3afd672eb6b0af5c71cfca02488b32569a
[ "MIT" ]
843
2016-10-05T23:46:05.000Z
2022-03-14T04:31:55.000Z
farmbot_os/platform/target/info_workers/wifi_level.ex
gdwb/farmbot_os
0ef2697c580c9fbf37a22daa063a64addfcb778d
[ "MIT" ]
455
2016-10-15T08:49:16.000Z
2022-03-15T12:23:04.000Z
farmbot_os/platform/target/info_workers/wifi_level.ex
gdwb/farmbot_os
0ef2697c580c9fbf37a22daa063a64addfcb778d
[ "MIT" ]
261
2016-10-10T04:37:06.000Z
2022-03-13T21:07:38.000Z
defmodule FarmbotOS.Platform.Target.InfoWorker.WifiLevel do @moduledoc """ Worker process responsible for reporting current wifi power levels to the bot_state server """ @report_interval 7_000 use GenServer alias FarmbotCore.BotState @doc false def start_link(args) do GenServer.start_link(__MOD...
26.426471
72
0.673901
daa1b0ae6203ae1a967d14e43de9691d61424149
2,464
ex
Elixir
clients/content/lib/google_api/content/v2/model/datafeed_target.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/content/lib/google_api/content/v2/model/datafeed_target.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/content/lib/google_api/content/v2/model/datafeed_target.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...
39.741935
266
0.716721
daa1c47afee677c1374b84210dbaa4205b41c749
2,019
ex
Elixir
clients/gke_hub/lib/google_api/gke_hub/v1/model/set_iam_policy_request.ex
yoshi-code-bot/elixir-google-api
cdb6032f01fac5ab704803113c39f2207e9e019d
[ "Apache-2.0" ]
null
null
null
clients/gke_hub/lib/google_api/gke_hub/v1/model/set_iam_policy_request.ex
yoshi-code-bot/elixir-google-api
cdb6032f01fac5ab704803113c39f2207e9e019d
[ "Apache-2.0" ]
null
null
null
clients/gke_hub/lib/google_api/gke_hub/v1/model/set_iam_policy_request.ex
yoshi-code-bot/elixir-google-api
cdb6032f01fac5ab704803113c39f2207e9e019d
[ "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.38
304
0.734522
daa1ea8fd7ca4b6e8031dc217d279b5415c403f1
1,671
ex
Elixir
lib/elixir_agi/supervisor/fagi.ex
nadsat/elixir_agi
6f67f131469a931025edcd7d97c7b73a6d3d84ac
[ "Apache-2.0" ]
6
2016-12-02T15:45:14.000Z
2020-08-05T13:21:03.000Z
lib/elixir_agi/supervisor/fagi.ex
nadsat/elixir_agi
6f67f131469a931025edcd7d97c7b73a6d3d84ac
[ "Apache-2.0" ]
5
2016-12-05T23:18:24.000Z
2020-08-03T11:17:03.000Z
lib/elixir_agi/supervisor/fagi.ex
nadsat/elixir_agi
6f67f131469a931025edcd7d97c7b73a6d3d84ac
[ "Apache-2.0" ]
4
2015-12-27T17:05:46.000Z
2019-12-19T01:02:03.000Z
defmodule ElixirAgi.Supervisor.FastAgi do @moduledoc """ FastAGI listener supervisor. Copyright 2015 Marcelo Gornstein <marcelog@gmail.com> 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 ...
28.322034
74
0.696589
daa20774841ed460e18e782a3ac8d305cd6914de
10,107
exs
Elixir
test/items_test.exs
jalcine/microformats2-elixir
a7b1d0e6ac3e01dc4f0f9e96d57948dc53b127ad
[ "MIT" ]
null
null
null
test/items_test.exs
jalcine/microformats2-elixir
a7b1d0e6ac3e01dc4f0f9e96d57948dc53b127ad
[ "MIT" ]
null
null
null
test/items_test.exs
jalcine/microformats2-elixir
a7b1d0e6ac3e01dc4f0f9e96d57948dc53b127ad
[ "MIT" ]
null
null
null
defmodule Microformats2ItemsTest do use ExUnit.Case doctest Microformats2.Items test "successfully parses a whole document" do str = """ <!DOCTYPE html> <html> <head> <title>Blub</title> </head> <body> <h1>Blah</h1> <article class="h-card"> <span cl...
35.588028
172
0.401504
daa2234917e06354ac9f92e615ba5c9a036f1be6
332
ex
Elixir
lib/nostrum_boilerplate/consumer/supervisor.ex
doorgan/nostrum_boilerplate
2206f6a0795da9f3fb896c2810c4da7dbdbd9cf3
[ "Unlicense" ]
3
2022-02-03T22:21:00.000Z
2022-02-21T16:31:53.000Z
lib/nostrum_boilerplate/consumer/supervisor.ex
doorgan/nostrum_boilerplate
2206f6a0795da9f3fb896c2810c4da7dbdbd9cf3
[ "Unlicense" ]
null
null
null
lib/nostrum_boilerplate/consumer/supervisor.ex
doorgan/nostrum_boilerplate
2206f6a0795da9f3fb896c2810c4da7dbdbd9cf3
[ "Unlicense" ]
null
null
null
defmodule NostrumBoilerplate.Consumer.Supervisor do @moduledoc false use Supervisor def start_link(args) do Supervisor.start_link(__MODULE__, args, name: __MODULE__) end @impl true def init(_init_arg) do children = [NostrumBoilerplate.Consumer] Supervisor.init(children, strategy: :one_for_one...
20.75
61
0.756024
daa2524242348cab863e0bbac3246f02a9df54e6
6,990
ex
Elixir
lib/discovery/node_connector.ex
nerandell/discovery
1bd40ad8a366d28e0f5848835135d989fcb49fdb
[ "MIT" ]
227
2015-01-31T02:32:15.000Z
2021-11-22T11:58:27.000Z
lib/discovery/node_connector.ex
nerandell/discovery
1bd40ad8a366d28e0f5848835135d989fcb49fdb
[ "MIT" ]
9
2015-03-26T12:28:41.000Z
2022-01-21T17:00:04.000Z
lib/discovery/node_connector.ex
nerandell/discovery
1bd40ad8a366d28e0f5848835135d989fcb49fdb
[ "MIT" ]
20
2015-03-26T12:29:23.000Z
2021-04-06T01:10:46.000Z
# # The MIT License (MIT) # # Copyright (c) 2014-2015 Undead Labs, LLC # defmodule Discovery.NodeConnector do @moduledoc """ Connects to and monitors connections to nodes. The connection will be retried until it is established or it is explicitly disconnected by calling `NodeConnector.disconnect/1`. """ req...
30.657895
104
0.634478
daa266eea20e2a25547b7799ed8b55e69ac273ed
5,812
ex
Elixir
clients/display_video/lib/google_api/display_video/v1/model/insertion_order.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/display_video/lib/google_api/display_video/v1/model/insertion_order.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/display_video/lib/google_api/display_video/v1/model/insertion_order.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...
65.303371
558
0.722815
daa276ca038c71ea5276286151076f2b428e9def
2,303
ex
Elixir
lib/breaking_pp/model/cluster.ex
distributed-owls/breaking-pp
fdc6957997281c15ed6cf13e8b3de53b0dded0c1
[ "MIT" ]
4
2018-06-13T20:46:01.000Z
2018-09-24T12:50:53.000Z
lib/breaking_pp/model/cluster.ex
well-ironed/breaking-pp
fdc6957997281c15ed6cf13e8b3de53b0dded0c1
[ "MIT" ]
2
2018-05-12T10:16:01.000Z
2018-08-14T05:07:21.000Z
lib/breaking_pp/model/cluster.ex
well-ironed/breaking-pp
fdc6957997281c15ed6cf13e8b3de53b0dded0c1
[ "MIT" ]
3
2018-05-10T19:57:06.000Z
2018-09-21T11:31:55.000Z
defmodule BreakingPP.Model.Cluster do alias BreakingPP.Model.{Node, Session} defstruct [ started_nodes: [], stopped_nodes: [], sessions: [], splits: MapSet.new() ] @type session_id :: {Node.t, String.t} @type split :: {Node.t, Node.t} @type t :: %__MODULE__{ started_nodes: [Node.t], ...
25.588889
74
0.656535
daa29399485e03e9c63b3bebd2cd4ae07703b06d
4,431
ex
Elixir
lib/kojin/pod_rust/object_properties.ex
patefacio/kojin
34f1959b7fa5fdc48e07ae6d81f8fa3ab31af982
[ "MIT" ]
3
2021-12-20T04:46:00.000Z
2022-01-31T22:26:44.000Z
lib/kojin/pod_rust/object_properties.ex
patefacio/kojin
34f1959b7fa5fdc48e07ae6d81f8fa3ab31af982
[ "MIT" ]
1
2021-12-20T14:46:50.000Z
2021-12-20T14:46:50.000Z
lib/kojin/pod_rust/object_properties.ex
patefacio/kojin
34f1959b7fa5fdc48e07ae6d81f8fa3ab31af982
[ "MIT" ]
1
2021-12-20T00:15:52.000Z
2021-12-20T00:15:52.000Z
defmodule Kojin.PodRust.ObjectProperties do @moduledoc false require Logger alias Kojin.Pod.{PodObject, PodField} import Kojin.Rust @doc "Add the list of derivables to the pod_object." def add_rust_derivables(%PodObject{} = pod_object, derivables) when is_list(derivables) do if(valid_derivables?(deriv...
26.375
95
0.602573
daa2a80a8a4f36abdc2e0d6a86e76ddac3a35838
11,380
exs
Elixir
test/elixir/test/rewrite_test.exs
denyadb/couchdb
ac33e853cef2a6a108aa64269eb196d32b235529
[ "Apache-2.0" ]
1
2020-09-11T19:23:27.000Z
2020-09-11T19:23:27.000Z
test/elixir/test/rewrite_test.exs
denyadb/couchdb
ac33e853cef2a6a108aa64269eb196d32b235529
[ "Apache-2.0" ]
null
null
null
test/elixir/test/rewrite_test.exs
denyadb/couchdb
ac33e853cef2a6a108aa64269eb196d32b235529
[ "Apache-2.0" ]
null
null
null
defmodule RewriteTest do use CouchTestCase @moduletag :js_engine @moduletag kind: :single_node @moduledoc """ Test CouchDB rewrites This is a port of the rewrite.js suite """ Enum.each( ["test_rewrite_suite_db", "test_rewrite_suite_db%2Fwith_slashes"], fn db_name -> @tag with_random_db:...
31.178082
118
0.393937
daa2caa823a05177d7cfc69d685546f992c57f69
2,001
exs
Elixir
test/aws_ingress_operator/subnets_test.exs
bennyhat/aws_ingress_operator
81a1c873cbea95a8ba721ac1147c421dcaf1de45
[ "MIT" ]
null
null
null
test/aws_ingress_operator/subnets_test.exs
bennyhat/aws_ingress_operator
81a1c873cbea95a8ba721ac1147c421dcaf1de45
[ "MIT" ]
null
null
null
test/aws_ingress_operator/subnets_test.exs
bennyhat/aws_ingress_operator
81a1c873cbea95a8ba721ac1147c421dcaf1de45
[ "MIT" ]
null
null
null
defmodule AwsIngressOperator.SubnetsTest do @moduledoc false use ExUnit.Case import SweetXml use AwsIngressOperator.Test.Support.MotoCase, url: "http://localhost:5000" alias AwsIngressOperator.Subnets alias AwsIngressOperator.Schemas.Subnet describe "list/1" do test "given the default subnet, return...
27.040541
89
0.591204
daa2d70b8245c638bb8bcd7ecd09ecfe3f5f7402
945
ex
Elixir
test/support/channel_case.ex
erplsf/mindstuff
4f5c4635947225869674f5714a9ae7da216654b4
[ "MIT" ]
null
null
null
test/support/channel_case.ex
erplsf/mindstuff
4f5c4635947225869674f5714a9ae7da216654b4
[ "MIT" ]
null
null
null
test/support/channel_case.ex
erplsf/mindstuff
4f5c4635947225869674f5714a9ae7da216654b4
[ "MIT" ]
null
null
null
defmodule MindstuffWeb.ChannelCase do @moduledoc """ This module defines the test case to be used by channel tests. Such tests rely on `Phoenix.ChannelTest` and also import other functionality to make it easier to build common datastructures and query the data layer. Finally, if the test case interacts ...
24.868421
71
0.718519
daa2e336a527aaec67c735a94db6abc01e1f563f
605
exs
Elixir
config/prod.exs
nabbisen/journey-planner
82aa6e081504dfe3a9b2b191b40819404b9fd26b
[ "MIT" ]
null
null
null
config/prod.exs
nabbisen/journey-planner
82aa6e081504dfe3a9b2b191b40819404b9fd26b
[ "MIT" ]
null
null
null
config/prod.exs
nabbisen/journey-planner
82aa6e081504dfe3a9b2b191b40819404b9fd26b
[ "MIT" ]
null
null
null
use Mix.Config # ## SSL Support # # To get SSL working, you will need to set: # # https: [port: 443, # keyfile: System.get_env("SOME_APP_SSL_KEY_PATH"), # certfile: System.get_env("SOME_APP_SSL_CERT_PATH")] # # Where those two env variables point to a file on # disk for the key and cert. c...
26.304348
65
0.659504
daa2efe1b9e6b0fe966feec8afa169ac336a0db8
310
exs
Elixir
priv/repo/migrations/20171029013755_create_source_key_project_monitor.exs
crosscloudci/ci_status_repository
335e8b89bbf59e6cf63e49541ce3ea6b60167e52
[ "Apache-2.0" ]
2
2019-03-05T16:29:10.000Z
2020-01-17T14:11:48.000Z
priv/repo/migrations/20171029013755_create_source_key_project_monitor.exs
crosscloudci/ci_status_repository
335e8b89bbf59e6cf63e49541ce3ea6b60167e52
[ "Apache-2.0" ]
3
2019-03-18T20:26:48.000Z
2020-06-25T14:31:13.000Z
priv/repo/migrations/20171029013755_create_source_key_project_monitor.exs
crosscloudci/ci_status_repository
335e8b89bbf59e6cf63e49541ce3ea6b60167e52
[ "Apache-2.0" ]
1
2018-06-16T15:32:25.000Z
2018-06-16T15:32:25.000Z
defmodule CncfDashboardApi.Repo.Migrations.CreateSourceKeyProjectMonitor do use Ecto.Migration def change do create table(:source_key_project_monitor) do add :source_project_id, :string add :source_pipeline_id, :string add :stable_ref, :string timestamps() end end end
20.666667
75
0.732258
daa31bdeabdc3bbef442fe1a47d6a4537478711e
378
ex
Elixir
lib/grapevine/gossip/message.ex
luisfmcalado/grapevine
4faafa70af5fa8f906c512ccff699e0b7b4c8190
[ "MIT" ]
null
null
null
lib/grapevine/gossip/message.ex
luisfmcalado/grapevine
4faafa70af5fa8f906c512ccff699e0b7b4c8190
[ "MIT" ]
null
null
null
lib/grapevine/gossip/message.ex
luisfmcalado/grapevine
4faafa70af5fa8f906c512ccff699e0b7b4c8190
[ "MIT" ]
null
null
null
defmodule Grapevine.Gossip.Message do @moduledoc false @doc """ Returns the hash value for the message ## Examples iex> Message.hash!(%{field: :value}) "A3957CC79D6F84B4E6254DE44D201513" """ @spec hash!(map()) :: String.t() def hash!(value), do: :crypto.hash(:md5, pack!(value)) |> Base.enc...
21
75
0.648148
daa32f21cf15f682c84b34e4275980e34b724b17
10,761
exs
Elixir
implementations/elixir/ockam/ockam_vault_software/test/vault_software_test.exs
illaz/ockam
d1073799a140f5f7e3312ea2d5d8b86b4e94154c
[ "Apache-2.0" ]
null
null
null
implementations/elixir/ockam/ockam_vault_software/test/vault_software_test.exs
illaz/ockam
d1073799a140f5f7e3312ea2d5d8b86b4e94154c
[ "Apache-2.0" ]
null
null
null
implementations/elixir/ockam/ockam_vault_software/test/vault_software_test.exs
illaz/ockam
d1073799a140f5f7e3312ea2d5d8b86b4e94154c
[ "Apache-2.0" ]
null
null
null
defmodule Ockam.Vault.Software.Tests do use ExUnit.Case, async: true doctest Ockam.Vault.Software alias Ockam.Vault.Software, as: SoftwareVault describe "Ockam.Vault.Software.sha256/2" do test "can run natively implemented functions" do {:ok, handle} = SoftwareVault.default_init() {:ok, hash} =...
38.432143
98
0.628009
daa3664ae998005ffcffe6bf30f1f4dd5a0196b8
534
ex
Elixir
lib/rockelivery_web/controllers/fallback_controller.ex
cassiofariasmachado/rockelivery
3d88d4d8af1cdc3f2988edc69162d848009babbd
[ "MIT" ]
1
2021-09-27T06:15:08.000Z
2021-09-27T06:15:08.000Z
lib/rockelivery_web/controllers/fallback_controller.ex
cassiofariasmachado/rockelivery
3d88d4d8af1cdc3f2988edc69162d848009babbd
[ "MIT" ]
null
null
null
lib/rockelivery_web/controllers/fallback_controller.ex
cassiofariasmachado/rockelivery
3d88d4d8af1cdc3f2988edc69162d848009babbd
[ "MIT" ]
1
2021-12-21T12:47:59.000Z
2021-12-21T12:47:59.000Z
defmodule RockeliveryWeb.FallbackController do use RockeliveryWeb, :controller alias Ecto.Changeset alias Rockelivery.Error alias RockeliveryWeb.ErrorView def call(conn, {:error, %Error{status: status, message: message}}) do conn |> put_status(status) |> put_view(ErrorView) |> render("error....
24.272727
71
0.692884
daa37aa6844a0af432188356108884f29ec850df
596
ex
Elixir
lib/slackerton_web/ping.ex
matthewoden/slackerton
0604122884cf08087432f2e32d80eca42a878c37
[ "MIT" ]
1
2022-02-19T17:49:37.000Z
2022-02-19T17:49:37.000Z
lib/slackerton_web/ping.ex
matthewoden/slackerton
0604122884cf08087432f2e32d80eca42a878c37
[ "MIT" ]
4
2018-07-14T16:30:17.000Z
2022-02-10T16:23:23.000Z
lib/slackerton_web/ping.ex
matthewoden/slackerton
0604122884cf08087432f2e32d80eca42a878c37
[ "MIT" ]
null
null
null
defmodule SlackertonWeb.Ping do @moduledoc """ Self-ping to keep awake at the heroku free tier. """ require Logger import HttpBuilder @config Application.get_env(:slackerton, __MODULE__) @http Keyword.get(@config, :http_adapter) @json Keyword.get(@config, :json_parser, Jason) @base_url "https://dnd-s...
24.833333
54
0.677852
daa3b1feed843d74c1f61ed1608472ab3bc6472e
390
ex
Elixir
test/fixtures/drunkin_phoenix_1_4/lib/drunkin_phoenix_web/views/error_view.ex
willfore/bootleg_phoenix
ec49516ff9b3d3e2c3ad13fa6026fb614e8c527e
[ "MIT" ]
null
null
null
test/fixtures/drunkin_phoenix_1_4/lib/drunkin_phoenix_web/views/error_view.ex
willfore/bootleg_phoenix
ec49516ff9b3d3e2c3ad13fa6026fb614e8c527e
[ "MIT" ]
null
null
null
test/fixtures/drunkin_phoenix_1_4/lib/drunkin_phoenix_web/views/error_view.ex
willfore/bootleg_phoenix
ec49516ff9b3d3e2c3ad13fa6026fb614e8c527e
[ "MIT" ]
null
null
null
defmodule DrunkinPhoenixWeb.ErrorView do use DrunkinPhoenixWeb, :view def render("404.html", _assigns) do "Page not found" end def render("500.html", _assigns) do "Internal server error" end # In case no render clause matches or no # template is found, let's render it as 500 def template_not_...
21.666667
47
0.712821
daa3c6dbd7effe084118054631b4c30a21c59f90
298
exs
Elixir
config/config.exs
pmarreck/coherence
aa0ef8403197dfd262863f4b0e592122a1a3e525
[ "MIT" ]
null
null
null
config/config.exs
pmarreck/coherence
aa0ef8403197dfd262863f4b0e592122a1a3e525
[ "MIT" ]
null
null
null
config/config.exs
pmarreck/coherence
aa0ef8403197dfd262863f4b0e592122a1a3e525
[ "MIT" ]
null
null
null
# This file is responsible for configuring your application # and its dependencies with the aid of the Mix.Config module. import Config config :coherence, Coherence.Mailer, adapter: Swoosh.Adapters.Sendgrid, api_key: "" config :phoenix, :json_library, Jason import_config "#{Mix.env()}.exs"
24.833333
61
0.765101
daa3e53684d1bfd8b4f48dd53b9b7ecdeb84ee46
1,249
ex
Elixir
lib/colly_web/live/activity_live/index.ex
nidhindamodaran/colly
aaf5076afa24ea69ec084f19c5617f6808b40ade
[ "MIT" ]
null
null
null
lib/colly_web/live/activity_live/index.ex
nidhindamodaran/colly
aaf5076afa24ea69ec084f19c5617f6808b40ade
[ "MIT" ]
4
2020-05-30T13:25:44.000Z
2021-05-11T13:32:44.000Z
lib/colly_web/live/activity_live/index.ex
nidhinnambiar/colly
aaf5076afa24ea69ec084f19c5617f6808b40ade
[ "MIT" ]
null
null
null
require IEx defmodule CollyWeb.ActivityLive.Index do use CollyWeb, :live_view alias Colly.Collab alias Colly.Collab.Activity @impl true def mount(_params, _session, socket) do # {:ok, assign(socket, :activities, fetch_activities())} {:ok, activity} = Collab.create_activity() {:ok, push_redirect(...
24.98
72
0.674139
daa40ace588d524050177844ca55f744625e6a67
1,572
ex
Elixir
lib/stranger_web/endpoint.ex
Arp-G/stranger
1c7c804b0ab4dbee4c77f1c5adf0d9d5a09aaf41
[ "MIT" ]
11
2021-01-27T17:21:00.000Z
2021-12-07T13:02:59.000Z
lib/stranger_web/endpoint.ex
Arp-G/stranger
1c7c804b0ab4dbee4c77f1c5adf0d9d5a09aaf41
[ "MIT" ]
null
null
null
lib/stranger_web/endpoint.ex
Arp-G/stranger
1c7c804b0ab4dbee4c77f1c5adf0d9d5a09aaf41
[ "MIT" ]
null
null
null
defmodule StrangerWeb.Endpoint do use Phoenix.Endpoint, otp_app: :stranger # 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: "_strange...
29.111111
97
0.717557
daa40ba52a384884649685345176d8269d898765
2,910
exs
Elixir
test/scenic/cache/dynamic/texture_test.exs
jpunie/scenic
6167639a1cf064635170a448dada562c7f5d13e8
[ "Apache-2.0" ]
1,716
2018-09-07T21:55:43.000Z
2022-03-31T16:16:30.000Z
test/scenic/cache/dynamic/texture_test.exs
jpunie/scenic
6167639a1cf064635170a448dada562c7f5d13e8
[ "Apache-2.0" ]
220
2018-09-08T01:28:00.000Z
2022-03-22T03:55:17.000Z
test/scenic/cache/dynamic/texture_test.exs
jpunie/scenic
6167639a1cf064635170a448dada562c7f5d13e8
[ "Apache-2.0" ]
137
2018-09-07T21:55:56.000Z
2022-03-26T04:07:27.000Z
# # Created by Boyd Multerer on 2019-03-07. # Copyright © 2019 Kry10 Industries. All rights reserved. # defmodule Scenic.Cache.Dynamic.TextureTest do use ExUnit.Case, async: false # doctest Scenic.Cache.Dynamic.Texture alias Scenic.Utilities alias Scenic.Cache.Base alias Scenic.Cache.Dynamic.Texture s...
27.980769
80
0.620619
daa4260b7b1ba86e63a82d017cf741bdc71d133b
1,680
ex
Elixir
clients/cloud_search/lib/google_api/cloud_search/v1/model/metaline.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/cloud_search/lib/google_api/cloud_search/v1/model/metaline.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/cloud_search/lib/google_api/cloud_search/v1/model/metaline.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...
35.744681
197
0.749405
daa450c25ae0b833253f603480a6b05848c91d87
5,022
ex
Elixir
lib/annex/data.ex
arpieb/annex
6f472a30361bf0a1646e256d6dfe478706427f64
[ "MIT" ]
1
2020-10-23T13:41:07.000Z
2020-10-23T13:41:07.000Z
lib/annex/data.ex
arpieb/annex
6f472a30361bf0a1646e256d6dfe478706427f64
[ "MIT" ]
null
null
null
lib/annex/data.ex
arpieb/annex
6f472a30361bf0a1646e256d6dfe478706427f64
[ "MIT" ]
null
null
null
defmodule Annex.Data do @moduledoc """ Annex.Data defines the callbacks and helpers for data structures used by Annex. An implementer of the Annex.Layer behaviour must return an Annex.Data implementer from the `c:data_type/0` callback. """ alias Annex.{ AnnexError, Data, Data.List1D, Data...
26.15625
97
0.651533
daa4574435d8905690fc2971e9a8dbf7e0e0ae8c
1,240
exs
Elixir
config/dev.exs
muziyoshiz/admiral_stats_api
f9a6eaa2d34604ec207168f6192b98788e16bf58
[ "MIT" ]
null
null
null
config/dev.exs
muziyoshiz/admiral_stats_api
f9a6eaa2d34604ec207168f6192b98788e16bf58
[ "MIT" ]
null
null
null
config/dev.exs
muziyoshiz/admiral_stats_api
f9a6eaa2d34604ec207168f6192b98788e16bf58
[ "MIT" ]
null
null
null
use Mix.Config # For development, we disable any cache and enable # debugging and code reloading. # # The watchers configuration can be used to run external # watchers to your application. For example, we use it # with brunch.io to recompile .js and .css sources. config :admiral_stats_api, AdmiralStatsApi.Endpoint, ...
28.837209
68
0.721774