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
7a551d83998e7dc2d0d58302985ed87a0bc7c54a
191
exs
Elixir
test/bonfire_web/controllers/page_controller_test.exs
qhwa/bonfire
4a368d6d5300539399dcaff167ac69e3165c2bff
[ "MIT" ]
71
2020-03-09T02:09:30.000Z
2022-03-09T06:10:23.000Z
test/bonfire_web/controllers/page_controller_test.exs
qhwa/bonfire
4a368d6d5300539399dcaff167ac69e3165c2bff
[ "MIT" ]
null
null
null
test/bonfire_web/controllers/page_controller_test.exs
qhwa/bonfire
4a368d6d5300539399dcaff167ac69e3165c2bff
[ "MIT" ]
4
2020-04-03T02:28:05.000Z
2021-11-24T20:07:25.000Z
defmodule BonfireWeb.PageControllerTest do use BonfireWeb.ConnCase @tag :pending test "GET /", %{conn: conn} do conn = get(conn, "/") assert html_response(conn, 200) end end
19.1
42
0.680628
7a5586bdf45b682ce42a5ecc88cce424e08762dd
956
ex
Elixir
apps/data/lib/data/schemas/opportunity.ex
elixirschool/extracurricular
eb8b725fa49ca91b1c6b7e610a8522bc81a80de1
[ "MIT" ]
48
2017-08-21T02:08:16.000Z
2022-01-05T14:02:56.000Z
apps/data/lib/data/schemas/opportunity.ex
elixirschool/extracurricular
eb8b725fa49ca91b1c6b7e610a8522bc81a80de1
[ "MIT" ]
68
2017-08-21T02:17:32.000Z
2017-11-09T15:56:27.000Z
apps/data/lib/data/schemas/opportunity.ex
elixirschool/extracurricular
eb8b725fa49ca91b1c6b7e610a8522bc81a80de1
[ "MIT" ]
26
2017-08-21T04:28:22.000Z
2018-12-09T14:20:29.000Z
defmodule Data.Opportunity do @moduledoc """ The schema representation of our `opportunities` table """ use Ecto.Schema import Ecto.Changeset alias Data.Project @acceptable_levels [1, 5, 9] @acceptable_types ["bug", "documentation", "enhancement", "feature"] schema "opportunities" do field(:cl...
26.555556
117
0.67887
7a559919b7e90b5bbc23fb5a8e5d343bbee28a5e
141,252
ex
Elixir
lib/elixir/lib/kernel.ex
howleysv/elixir
40f0f680160fe6cf8622eaceff3f67d617aac050
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/kernel.ex
howleysv/elixir
40f0f680160fe6cf8622eaceff3f67d617aac050
[ "Apache-2.0" ]
1
2019-04-25T12:52:49.000Z
2019-04-25T13:27:31.000Z
lib/elixir/lib/kernel.ex
howleysv/elixir
40f0f680160fe6cf8622eaceff3f67d617aac050
[ "Apache-2.0" ]
null
null
null
# Use elixir_bootstrap module to be able to bootstrap Kernel. # The bootstrap module provides simpler implementations of the # functions removed, simple enough to bootstrap. import Kernel, except: [@: 1, defmodule: 2, def: 1, def: 2, defp: 2, defmacro: 1, defmacro: 2, defmacrop: 2] import :elixir_bootstrap defmodul...
26.681526
105
0.634433
7a55ac6cc091dab4c0da648a6411c73e97a70a97
1,768
ex
Elixir
clients/cloud_kms/lib/google_api/cloud_kms/v1/model/generate_random_bytes_request.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/cloud_kms/lib/google_api/cloud_kms/v1/model/generate_random_bytes_request.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/cloud_kms/lib/google_api/cloud_kms/v1/model/generate_random_bytes_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...
35.36
159
0.74095
7a55ca6b62f2a528c21ac7a25923dc63ced3d15c
10,528
exs
Elixir
test/sanbase/alerts/metric/intraday_metric_trigger_settings_test.exs
rmoorman/sanbase2
226784ab43a24219e7332c49156b198d09a6dd85
[ "MIT" ]
1
2022-01-30T19:51:39.000Z
2022-01-30T19:51:39.000Z
test/sanbase/alerts/metric/intraday_metric_trigger_settings_test.exs
rmoorman/sanbase2
226784ab43a24219e7332c49156b198d09a6dd85
[ "MIT" ]
null
null
null
test/sanbase/alerts/metric/intraday_metric_trigger_settings_test.exs
rmoorman/sanbase2
226784ab43a24219e7332c49156b198d09a6dd85
[ "MIT" ]
null
null
null
defmodule Sanbase.Alert.MetricTriggerSettingsTest do use Sanbase.DataCase, async: false import Sanbase.Factory import Sanbase.TestHelpers import ExUnit.CaptureLog alias Sanbase.Alert.UserTrigger alias Sanbase.Alert.Evaluator alias Sanbase.Metric alias Sanbase.Alert.Trigger.MetricTriggerSettings @me...
30.252874
167
0.585106
7a55dc2805708a71b6d204e8c347c794af396a20
1,765
ex
Elixir
clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_value_frequency.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
null
null
null
clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_value_frequency.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
null
null
null
clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_value_frequency.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
1
2020-11-10T16:58:27.000Z
2020-11-10T16:58:27.000Z
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "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...
34.607843
101
0.747875
7a55dd22843800823f5bd91dd62eab2739f5ef98
5,477
exs
Elixir
test/protobuf/encoder_test.exs
fbergero/protobuf-elixir
8e55473bafca371cef41107418bfab0b03be072f
[ "MIT" ]
null
null
null
test/protobuf/encoder_test.exs
fbergero/protobuf-elixir
8e55473bafca371cef41107418bfab0b03be072f
[ "MIT" ]
3
2019-09-19T14:52:12.000Z
2019-09-24T15:45:07.000Z
test/protobuf/encoder_test.exs
demilletech/protobuf-elixir
0e79aa7f8dbed615a1c917488b61a84728843bdd
[ "MIT" ]
null
null
null
Code.require_file("../support/test_msg.ex", __DIR__) defmodule Protobuf.EncoderTest do use ExUnit.Case, async: true alias Protobuf.Encoder test "encodes one simple field" do bin = Encoder.encode(TestMsg.Foo.new(a: 42)) assert bin == <<8, 42>> end test "encodes full fields" do bin = <<8, 42, 17...
33.396341
97
0.583714
7a55ddf9bd8cc3b8552684845b878bafa654ce4c
51
ex
Elixir
web/views/auth_view.ex
lyncms/lyn
ef825e7ff8df049a41f9a10685324079ebe116f9
[ "MIT" ]
96
2016-02-26T20:20:33.000Z
2020-10-02T16:21:00.000Z
web/views/auth_view.ex
lyncms/lyn
ef825e7ff8df049a41f9a10685324079ebe116f9
[ "MIT" ]
12
2016-02-27T16:23:55.000Z
2017-07-04T13:46:00.000Z
web/views/auth_view.ex
lyncms/lyn
ef825e7ff8df049a41f9a10685324079ebe116f9
[ "MIT" ]
24
2016-03-10T23:55:33.000Z
2019-06-07T18:32:34.000Z
defmodule Lyn.AuthView do use Lyn.Web, :view end
12.75
25
0.745098
7a55dfbdfc882b70cd7d5fb0acbc7e265970b027
688
ex
Elixir
api/web/models/bookmark.ex
NaiRobley/IntoTheBookmarks
a5e36aa39740e4908fdc46f8a1fb6df3d92b2cda
[ "Apache-2.0" ]
null
null
null
api/web/models/bookmark.ex
NaiRobley/IntoTheBookmarks
a5e36aa39740e4908fdc46f8a1fb6df3d92b2cda
[ "Apache-2.0" ]
6
2021-05-25T05:47:16.000Z
2022-02-26T04:42:31.000Z
api/web/models/bookmark.ex
NaiRobley/IntoTheBookmarks
a5e36aa39740e4908fdc46f8a1fb6df3d92b2cda
[ "Apache-2.0" ]
null
null
null
defmodule IntoTheBookmarks.Bookmark do use IntoTheBookmarks.Web, :model schema "bookmarks" do field :bookmark_title, :string field :bookmark_url, :string field :bookmark_notes, :string belongs_to :category, IntoTheBookmarks.Category, foreign_key: :category_id belongs_to :user, IntoTheBookmarks....
29.913043
94
0.715116
7a5617a9f924899feb4216bb9281bb9e0c48fb07
2,407
ex
Elixir
clients/service_networking/lib/google_api/service_networking/v1/model/remove_dns_record_set_request.ex
kolorahl/elixir-google-api
46bec1e092eb84c6a79d06c72016cb1a13777fa6
[ "Apache-2.0" ]
null
null
null
clients/service_networking/lib/google_api/service_networking/v1/model/remove_dns_record_set_request.ex
kolorahl/elixir-google-api
46bec1e092eb84c6a79d06c72016cb1a13777fa6
[ "Apache-2.0" ]
null
null
null
clients/service_networking/lib/google_api/service_networking/v1/model/remove_dns_record_set_request.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...
40.79661
144
0.735771
7a561a85e23292fb8af913a992ba02285d5c4960
2,809
ex
Elixir
lib/history/lending_rates/create_chunks_broadway.ex
fremantle-industries/history
a8a33744279ff4ca62620785f9a2e9c0c99e4de7
[ "MIT" ]
20
2021-08-06T01:09:48.000Z
2022-03-28T18:44:56.000Z
lib/history/lending_rates/create_chunks_broadway.ex
fremantle-industries/history
a8a33744279ff4ca62620785f9a2e9c0c99e4de7
[ "MIT" ]
13
2021-08-21T21:17:02.000Z
2022-03-27T06:33:51.000Z
lib/history/lending_rates/create_chunks_broadway.ex
fremantle-industries/history
a8a33744279ff4ca62620785f9a2e9c0c99e4de7
[ "MIT" ]
2
2021-09-23T11:31:59.000Z
2022-01-09T16:19:35.000Z
defmodule History.LendingRates.CreateChunksBroadway do use Broadway require Logger alias Broadway.Message alias History.{ DataAdapter, RangeJob, LendingRateHistoryChunks, LendingRateHistoryJobs, LendingRates } @spec start_link(term) :: Supervisor.on_start() def start_link(_) do B...
22.653226
86
0.598434
7a563298568535a01061a6a1d38ff914e081baee
12,319
exs
Elixir
test/transaction_trace_test.exs
tpitale/elixir_agent
f356b588fe9d7cc3b9db00d9a251e009a20b3e0e
[ "Apache-2.0" ]
227
2018-09-05T15:33:23.000Z
2022-02-25T18:12:06.000Z
test/transaction_trace_test.exs
tpitale/elixir_agent
f356b588fe9d7cc3b9db00d9a251e009a20b3e0e
[ "Apache-2.0" ]
211
2018-09-05T21:42:41.000Z
2022-03-25T17:51:56.000Z
test/transaction_trace_test.exs
tpitale/elixir_agent
f356b588fe9d7cc3b9db00d9a251e009a20b3e0e
[ "Apache-2.0" ]
84
2018-09-05T04:26:26.000Z
2022-03-09T14:28:14.000Z
defmodule TransactionTraceTest do use ExUnit.Case, async: false use Plug.Test alias NewRelic.Harvest alias NewRelic.Harvest.Collector alias NewRelic.Transaction.Trace setup do send(NewRelic.DistributedTrace.BackoffSampler, :reset) TestHelper.restart_harvest_cycle(Collector.Metric.HarvestCycle) ...
29.828087
97
0.669129
7a563a649b531ad7dfbddd5f6b7559948770ffb6
63
ex
Elixir
lib/chit_chat_web/views/post_view.ex
areski/ex-chitchat
0ec14e9af6acba40d6708f924b76fb4fbe592dcf
[ "MIT" ]
1
2021-09-10T16:49:36.000Z
2021-09-10T16:49:36.000Z
lib/chit_chat_web/views/post_view.ex
areski/ex-chitchat
0ec14e9af6acba40d6708f924b76fb4fbe592dcf
[ "MIT" ]
2
2020-05-22T18:42:14.000Z
2021-01-25T16:34:38.000Z
lib/chit_chat_web/views/post_view.ex
areski/ex-chitchat
0ec14e9af6acba40d6708f924b76fb4fbe592dcf
[ "MIT" ]
null
null
null
defmodule ChitChatWeb.PostView do use ChitChatWeb, :view end
15.75
33
0.809524
7a5684d4bfca0b97a07c43015d0db101655848fe
1,171
ex
Elixir
lib/pow_assent/strategies/gitlab.ex
danhunsaker/pow_assent
c572883b5c8f89561faee0a220ddf06de98f7415
[ "MIT" ]
null
null
null
lib/pow_assent/strategies/gitlab.ex
danhunsaker/pow_assent
c572883b5c8f89561faee0a220ddf06de98f7415
[ "MIT" ]
null
null
null
lib/pow_assent/strategies/gitlab.ex
danhunsaker/pow_assent
c572883b5c8f89561faee0a220ddf06de98f7415
[ "MIT" ]
null
null
null
defmodule PowAssent.Strategy.Gitlab do @moduledoc """ Gitlab OAuth 2.0 strategy. ## Usage config :my_app, :pow_assent, providers: [ gitlab: [ client_id: "REPLACE_WITH_CLIENT_ID", client_secret: "REPLACE_WITH_CLIENT_SECRET", strategy: PowAssent.Strategy...
26.022222
66
0.542272
7a56dbe767b8b252d3c2b0ffc977660f2ccd4cbb
404
ex
Elixir
lib/codes/codes_c55.ex
badubizzle/icd_code
4c625733f92b7b1d616e272abc3009bb8b916c0c
[ "Apache-2.0" ]
null
null
null
lib/codes/codes_c55.ex
badubizzle/icd_code
4c625733f92b7b1d616e272abc3009bb8b916c0c
[ "Apache-2.0" ]
null
null
null
lib/codes/codes_c55.ex
badubizzle/icd_code
4c625733f92b7b1d616e272abc3009bb8b916c0c
[ "Apache-2.0" ]
null
null
null
defmodule IcdCode.ICDCode.Codes_C55 do alias IcdCode.ICDCode def _C55 do %ICDCode{full_code: "C55", category_code: "C55", short_code: "", full_name: "Malignant neoplasm of uterus, part unspecified", short_name: "Malignant neoplasm of uterus, part unspecified", ca...
25.25
73
0.655941
7a56e2dcdad41521f93e2f7927f7154d92314dc9
1,086
ex
Elixir
lib/teaching_school.ex
deerob4/salop-teaching-school
5c4c4a15232859b5b3bdc84ec9874689891ca9d8
[ "MIT" ]
null
null
null
lib/teaching_school.ex
deerob4/salop-teaching-school
5c4c4a15232859b5b3bdc84ec9874689891ca9d8
[ "MIT" ]
null
null
null
lib/teaching_school.ex
deerob4/salop-teaching-school
5c4c4a15232859b5b3bdc84ec9874689891ca9d8
[ "MIT" ]
null
null
null
defmodule TeachingSchool 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 repo...
33.9375
92
0.725599
7a56fd55fef540337ad985ddba82b6c838d53c7b
1,875
ex
Elixir
time_tracker_backend/web/controllers/project_controller.ex
knewter/time-tracker
1f58031112a24c26a1a54ac33105b4430a04e954
[ "MIT" ]
382
2016-08-18T07:34:27.000Z
2021-02-25T20:46:34.000Z
time_tracker_backend/web/controllers/project_controller.ex
knewter/time-tracker
1f58031112a24c26a1a54ac33105b4430a04e954
[ "MIT" ]
1
2017-09-30T00:01:26.000Z
2017-09-30T00:01:26.000Z
time_tracker_backend/web/controllers/project_controller.ex
knewter/time-tracker
1f58031112a24c26a1a54ac33105b4430a04e954
[ "MIT" ]
45
2016-08-30T07:34:04.000Z
2020-01-27T11:39:26.000Z
defmodule TimeTrackerBackend.ProjectController do use TimeTrackerBackend.Web, :controller defp search(query, %{"q" => q}) do from u in query, where: ilike(u.name, ^"%#{q}%") end defp search(query, _), do: query def index(conn, params) do page = Project |> search(params) |> or...
27.985075
87
0.621867
7a571daa9730f8510acc401719d6f42e24dc49f1
4,623
ex
Elixir
test/support/simple_h2_client.ex
mtrudel/bandit
9b1e0f66637a16fb18921bb29b6b577938b4eb07
[ "MIT" ]
226
2020-05-18T09:36:32.000Z
2022-03-30T00:25:51.000Z
test/support/simple_h2_client.ex
mtrudel/bandit
9b1e0f66637a16fb18921bb29b6b577938b4eb07
[ "MIT" ]
11
2021-10-11T13:48:24.000Z
2022-03-05T20:18:11.000Z
test/support/simple_h2_client.ex
mtrudel/bandit
9b1e0f66637a16fb18921bb29b6b577938b4eb07
[ "MIT" ]
7
2020-05-18T09:36:35.000Z
2022-02-08T11:12:16.000Z
defmodule SimpleH2Client do @moduledoc false import Bitwise def tls_client(context) do {:ok, socket} = :ssl.connect('localhost', context[:port], active: false, mode: :binary, verify: :verify_peer, cacertfile: Path.join(__DIR__, "../support/ca.pem"), alpn_adverti...
31.236486
98
0.58382
7a571fd5f62d9a90e8ba196c4cdbe60feb9fcb41
3,878
ex
Elixir
apps/schedules/lib/repo_condensed.ex
noisecapella/dotcom
d5ef869412102d2230fac3dcc216f01a29726227
[ "MIT" ]
42
2019-05-29T16:05:30.000Z
2021-08-09T16:03:37.000Z
apps/schedules/lib/repo_condensed.ex
noisecapella/dotcom
d5ef869412102d2230fac3dcc216f01a29726227
[ "MIT" ]
872
2019-05-29T17:55:50.000Z
2022-03-30T09:28:43.000Z
apps/schedules/lib/repo_condensed.ex
noisecapella/dotcom
d5ef869412102d2230fac3dcc216f01a29726227
[ "MIT" ]
12
2019-07-01T18:33:21.000Z
2022-03-10T02:13:57.000Z
defmodule Schedules.RepoCondensed do @moduledoc """ An alternate way to fetch schedules that is more light weight and easier to cache. This uses a longer than usual timeout for initial caching as sometime (especially in dev) it may take a long time to warm the cache. """ import Kernel, except: [to_string...
27.899281
98
0.656008
7a5745087c5e3a302901b5fcfe5686099b693cd1
22,210
exs
Elixir
test/benchee_test.exs
kimshrier/benchee
a295b4fd538c1d1b204f2f565daff94fcd53558c
[ "MIT" ]
null
null
null
test/benchee_test.exs
kimshrier/benchee
a295b4fd538c1d1b204f2f565daff94fcd53558c
[ "MIT" ]
null
null
null
test/benchee_test.exs
kimshrier/benchee
a295b4fd538c1d1b204f2f565daff94fcd53558c
[ "MIT" ]
null
null
null
defmodule BencheeTest do use ExUnit.Case, async: true alias Benchee.{ Conversion.Duration, Formatter, Formatters.Console, Statistics, Suite, Test.FakeFormatter } import ExUnit.CaptureIO import Benchee.TestHelpers doctest Benchee @header_regex ~r/^Name.+ips.+average.+deviation.+...
27.184823
98
0.535299
7a576e11be76135caff8feaefca2a297ab0dadd3
3,374
ex
Elixir
int_sort/lib/chunk.ex
Maultasche/ElixirLargeSort
31f8be646309105c8c0dfcda33ab6b3d7b77235a
[ "MIT" ]
2
2020-05-12T15:55:13.000Z
2020-11-13T16:53:00.000Z
int_sort/lib/chunk.ex
Maultasche/ElixirLargeSort
31f8be646309105c8c0dfcda33ab6b3d7b77235a
[ "MIT" ]
null
null
null
int_sort/lib/chunk.ex
Maultasche/ElixirLargeSort
31f8be646309105c8c0dfcda33ab6b3d7b77235a
[ "MIT" ]
null
null
null
defmodule IntSort.Chunk do @moduledoc """ Contains functionality for handling chunk files, which contain chunks of sorted integers """ @integer_file Application.get_env(:int_sort, :integer_file) @doc """ Creates a stream that divides the integers in an input stream into chunks Note that this function...
30.672727
83
0.721695
7a5775744631e2d2cfab1b83af230b4591c57b8a
8,124
ex
Elixir
lib/swoosh/adapters/postmark.ex
reichert621/swoosh
b85f6d44be939fd006abfb76fd15de0859c9a5f9
[ "MIT" ]
null
null
null
lib/swoosh/adapters/postmark.ex
reichert621/swoosh
b85f6d44be939fd006abfb76fd15de0859c9a5f9
[ "MIT" ]
null
null
null
lib/swoosh/adapters/postmark.ex
reichert621/swoosh
b85f6d44be939fd006abfb76fd15de0859c9a5f9
[ "MIT" ]
null
null
null
defmodule Swoosh.Adapters.Postmark do @moduledoc ~S""" An adapter that sends email using the Postmark API. For reference: [Postmark API docs](http://developer.postmarkapp.com/developer-send-api.html) ## Example # config/config.exs config :sample, Sample.Mailer, adapter: Swoosh.Adapters.Po...
31.488372
97
0.642664
7a57849a273aea6e12edc97755727f67449b4fa4
2,839
exs
Elixir
test/geo/turf/math_test.exs
JonGretar/GeoTurf
47886ddcb3028fb2aff6cea2d168d602c12a5f34
[ "MIT" ]
7
2019-04-29T12:22:45.000Z
2022-02-08T06:06:37.000Z
test/geo/turf/math_test.exs
JonGretar/GeoTurf
47886ddcb3028fb2aff6cea2d168d602c12a5f34
[ "MIT" ]
null
null
null
test/geo/turf/math_test.exs
JonGretar/GeoTurf
47886ddcb3028fb2aff6cea2d168d602c12a5f34
[ "MIT" ]
null
null
null
defmodule Geo.Turf.Math.Test do use ExUnit.Case alias Geo.Turf.Math, as: M doctest Geo.Turf.Math test "factors" do assert M.earth_radius == 6371008.8 assert M.factor(:kilometers) == 6371.0088 assert M.units_factors(:kilometers) == 1.0e-3 assert M.area_factors(:kilometers) == 1.0e-6 end te...
33.011628
75
0.670306
7a57963b50e3512492ff1eefd2b3a169cfdef440
5,464
exs
Elixir
test/mongo/session_test.exs
Virtual-Repetitions/mongodb
eea06db138ae3b4824c7f208fda621075fbf28a7
[ "Apache-2.0" ]
null
null
null
test/mongo/session_test.exs
Virtual-Repetitions/mongodb
eea06db138ae3b4824c7f208fda621075fbf28a7
[ "Apache-2.0" ]
2
2021-07-10T18:53:51.000Z
2021-08-06T15:36:58.000Z
test/mongo/session_test.exs
Virtual-Repetitions/mongodb
eea06db138ae3b4824c7f208fda621075fbf28a7
[ "Apache-2.0" ]
3
2021-07-10T18:01:00.000Z
2021-08-05T00:39:17.000Z
defmodule Mongo.SessionTest do use ExUnit.Case alias Mongo.Session @moduletag :session setup_all do assert {:ok, pid} = Mongo.TestConnection.connect() [pid: pid] end setup %{pid: pid} do table = "tab_#{System.unique_integer([:positive])}" assert {:ok, _} = Mongo.command(pid, %{create: t...
31.402299
101
0.631223
7a57afeae14e121d917086ab436a6999be242ee6
2,240
ex
Elixir
clients/you_tube/lib/google_api/you_tube/v3/model/activity_content_details_social.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/you_tube/lib/google_api/you_tube/v3/model/activity_content_details_social.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/you_tube/lib/google_api/you_tube/v3/model/activity_content_details_social.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 ...
37.966102
205
0.709375
7a580a2309b394ade08d378d8a7c17821b16fc17
491
exs
Elixir
config/test.exs
herald-it/goncord.ex
2f58706231a28caa067509c5df43f5c915c46320
[ "MIT" ]
null
null
null
config/test.exs
herald-it/goncord.ex
2f58706231a28caa067509c5df43f5c915c46320
[ "MIT" ]
5
2017-03-31T06:48:29.000Z
2018-12-20T03:40:59.000Z
config/test.exs
herald-it/goncord.ex
2f58706231a28caa067509c5df43f5c915c46320
[ "MIT" ]
1
2019-01-20T10:01:27.000Z
2019-01-20T10:01:27.000Z
use Mix.Config # We don't run a server during test. If one is required, # you can enable the server option below. config :goncord, Goncord.Endpoint, http: [port: 4001], server: false # Print only warnings and errors during test config :logger, level: :warn # Configure your database config :goncord, Goncord.Repo,...
24.55
56
0.733198
7a581492875d9ec0b440440060e17c50720c6025
819
ex
Elixir
lib/expr.ex
Rob-bie/Expr
e8baf04d8120fc09c8a20d1f2e5f6bc56c8aa602
[ "MIT" ]
14
2015-03-24T04:31:12.000Z
2020-01-19T05:23:55.000Z
lib/expr.ex
Rob-bie/Expr
e8baf04d8120fc09c8a20d1f2e5f6bc56c8aa602
[ "MIT" ]
7
2015-09-29T00:28:58.000Z
2020-03-09T14:41:42.000Z
lib/expr.ex
Rob-bie/Expr
e8baf04d8120fc09c8a20d1f2e5f6bc56c8aa602
[ "MIT" ]
9
2016-02-05T07:41:36.000Z
2022-01-27T12:33:56.000Z
defmodule Expr do import Expr.Stack import Expr.Ops def eval!(expr) do expr |> Expr.Parser.expressionify |> calculate end def eval!(expr, vars) do expr |> Expr.Parser.expressionify(vars) |> calculate end def calculate(rpn), do: calculate(rpn, []) def calculate([], stk), do: s...
21
69
0.528694
7a581d9321b4d8eaef824f8a48735590d7e529a3
2,064
exs
Elixir
test/number/significant_digits_test.exs
mediapress-ltd/cldr_numbers
e9c1bded034ef13932328a9ad383798c7d853928
[ "Apache-2.0" ]
21
2019-12-21T23:25:14.000Z
2022-03-22T00:40:34.000Z
test/number/significant_digits_test.exs
mediapress-ltd/cldr_numbers
e9c1bded034ef13932328a9ad383798c7d853928
[ "Apache-2.0" ]
15
2019-06-14T16:29:23.000Z
2022-03-02T07:56:33.000Z
test/number/significant_digits_test.exs
mediapress-ltd/cldr_numbers
e9c1bded034ef13932328a9ad383798c7d853928
[ "Apache-2.0" ]
7
2017-10-05T11:35:36.000Z
2018-08-20T12:17:03.000Z
defmodule Significant.Digits.Test do use ExUnit.Case, async: true test "round 1,239,451 to 3 significant digits and return 1,240,000" do assert 1_240_000 == Cldr.Math.round_significant(1_239_451, 3) end test "round 12.1257 to 3 significant digits and return 12.1" do assert 12.1 == Cldr.Math.round_sign...
34.983051
90
0.710756
7a58401a5cea3db2bb30ce7c6b74a03e0b2597e0
14,151
ex
Elixir
lib/elixir/lib/kernel/cli.ex
namjae/elixir
6d1561a5939d68fb61f422b83271fbc824847395
[ "Apache-2.0" ]
1
2021-05-20T13:08:37.000Z
2021-05-20T13:08:37.000Z
lib/elixir/lib/kernel/cli.ex
namjae/elixir
6d1561a5939d68fb61f422b83271fbc824847395
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/kernel/cli.ex
namjae/elixir
6d1561a5939d68fb61f422b83271fbc824847395
[ "Apache-2.0" ]
8
2018-02-20T18:30:53.000Z
2019-06-18T14:23:31.000Z
defmodule Kernel.CLI do @moduledoc false @blank_config %{ commands: [], output: ".", compile: [], halt: true, compiler_options: [], errors: [], pa: [], pz: [], verbose_compile: false } @doc """ This is the API invoked by Elixir boot process. """ def main(argv) do ...
27.005725
96
0.598403
7a588e76a3c86e15df19134e7db8bf249c147752
69,479
ex
Elixir
lib/elixir/lib/code/formatter.ex
mattwwatson/elixir
8bd47b6cdd11aa893fc1625801429595f756eaf0
[ "Apache-2.0" ]
1
2018-12-09T02:58:47.000Z
2018-12-09T02:58:47.000Z
lib/elixir/lib/code/formatter.ex
mattwwatson/elixir
8bd47b6cdd11aa893fc1625801429595f756eaf0
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/code/formatter.ex
mattwwatson/elixir
8bd47b6cdd11aa893fc1625801429595f756eaf0
[ "Apache-2.0" ]
null
null
null
defmodule Code.Formatter do @moduledoc false import Inspect.Algebra, except: [format: 2, surround: 3, surround: 4] @double_quote "\"" @double_heredoc "\"\"\"" @single_quote "'" @single_heredoc "'''" @newlines 2 @min_line 0 @max_line 9_999_999 @empty empty() @ampersand_prec Code.Identifier.unary_o...
30.326931
102
0.626851
7a589c20b7a2c433232ca4a2d33e6e1e4428307d
3,990
exs
Elixir
test/okr_app/objectives/objective_store_test.exs
sb8244/okr_app_pub
933872107bd13390a0a5ea119d7997d4cb5ea7db
[ "MIT" ]
12
2019-05-10T21:48:06.000Z
2021-11-07T14:04:30.000Z
test/okr_app/objectives/objective_store_test.exs
sb8244/okr_app_pub
933872107bd13390a0a5ea119d7997d4cb5ea7db
[ "MIT" ]
2
2019-05-14T19:07:10.000Z
2019-05-20T21:06:27.000Z
test/okr_app/objectives/objective_store_test.exs
sb8244/okr_app_pub
933872107bd13390a0a5ea119d7997d4cb5ea7db
[ "MIT" ]
3
2019-05-19T18:24:20.000Z
2019-10-31T20:29:12.000Z
defmodule OkrApp.Objectives.ObjectiveStoreTest do use OkrApp.DataCase, async: true alias OkrApp.Objectives.{ObjectiveStore} describe "link_objectives/2" do setup :with_objectives test "2 objectives can be linked together", %{objective1: objective1, objective2: objective2} do assert {:ok, linking}...
42
100
0.714035
7a58b404e6baf1f307793f5af2ab5341d47d06e6
4,477
ex
Elixir
lib/glimesh_web/live/user_live/components/subscribe_button.ex
wolfcomp/glimesh.tv
3953e07946aabe85fe90d9d0f36df833b22d262a
[ "MIT" ]
null
null
null
lib/glimesh_web/live/user_live/components/subscribe_button.ex
wolfcomp/glimesh.tv
3953e07946aabe85fe90d9d0f36df833b22d262a
[ "MIT" ]
null
null
null
lib/glimesh_web/live/user_live/components/subscribe_button.ex
wolfcomp/glimesh.tv
3953e07946aabe85fe90d9d0f36df833b22d262a
[ "MIT" ]
null
null
null
defmodule GlimeshWeb.UserLive.Components.SubscribeButton do use GlimeshWeb, :live_view alias Glimesh.Accounts alias Glimesh.Payments @impl true def render(assigns) do ~L""" <div id="subscription-magic"> <%= if @user do %> <%= if @subscribed do %> <button class="bt...
33.916667
167
0.594595
7a58b89e1679c24af5bcb18760adf923b480afb6
371
exs
Elixir
spec/spec_helper.exs
makkrnic/ecto-infinite-times
8570b5cffb3f3c6dff449c8a7a90787f47a62a4a
[ "MIT" ]
1
2021-12-03T06:52:35.000Z
2021-12-03T06:52:35.000Z
spec/spec_helper.exs
makkrnic/ecto-infinite-times
8570b5cffb3f3c6dff449c8a7a90787f47a62a4a
[ "MIT" ]
null
null
null
spec/spec_helper.exs
makkrnic/ecto-infinite-times
8570b5cffb3f3c6dff449c8a7a90787f47a62a4a
[ "MIT" ]
null
null
null
{:ok, _} = InfiniteTimes.Repo.start_link() Ecto.Adapters.SQL.Sandbox.mode(InfiniteTimes.Repo, :manual) ESpec.configure fn(config) -> config.before fn(tags) -> :ok = Ecto.Adapters.SQL.Sandbox.checkout(InfiniteTimes.Repo) {:shared, tags: tags} end config.finally fn(_shared) -> :ok = Ecto.Adapters.SQL...
24.733333
67
0.703504
7a58c5c5f455dc6c07d2fa4d5b1b479698c5ede9
10,095
ex
Elixir
lib/mariaex/messages.ex
nedap/mariaex
102a23088386eb5038337084be34775e59945924
[ "Apache-2.0" ]
264
2015-03-05T06:55:21.000Z
2021-08-02T22:12:35.000Z
lib/mariaex/messages.ex
nedap/mariaex
102a23088386eb5038337084be34775e59945924
[ "Apache-2.0" ]
215
2015-03-04T23:39:52.000Z
2022-01-17T05:14:10.000Z
lib/mariaex/messages.ex
nedap/mariaex
102a23088386eb5038337084be34775e59945924
[ "Apache-2.0" ]
132
2015-03-04T22:50:48.000Z
2021-12-09T23:28:59.000Z
defmodule Mariaex.Messages do @moduledoc false import Record, only: [defrecord: 2] use Mariaex.Coder require Decimal # @protocol_vsn_major 3 # @protocol_vsn_minor 0 defrecord :packet, [:size, :seqnum, :msg, :body] @auth_types [ ok: 0, kerberos: 2, cleartext: 3, md5: 5, scm: 6, gss: 7, ...
31.845426
128
0.614364
7a58faf12b54f93b454c052f2fec32731bc84bec
6,961
exs
Elixir
apps/pipeline/test/integration/pipeline/writer/table_writer_test.exs
PillarTechnology/smartcitiesdata
9420a26820e38267513cd1bfa82c7f5583222bb1
[ "Apache-2.0" ]
null
null
null
apps/pipeline/test/integration/pipeline/writer/table_writer_test.exs
PillarTechnology/smartcitiesdata
9420a26820e38267513cd1bfa82c7f5583222bb1
[ "Apache-2.0" ]
1
2020-01-09T21:00:10.000Z
2020-01-09T21:00:10.000Z
apps/pipeline/test/integration/pipeline/writer/table_writer_test.exs
jakeprem/smartcitiesdata
da309ac0d2261527278951cbae88604455207589
[ "Apache-2.0" ]
null
null
null
defmodule Pipeline.Writer.TableWriterTest do use ExUnit.Case use Divo use Placebo alias Pipeline.Writer.TableWriter alias Pipeline.Writer.TableWriter.Compaction alias SmartCity.TestDataGenerator, as: TDG import SmartCity.TestHelper, only: [eventually: 1] describe "init/1" do test "creates table wi...
32.834906
111
0.539721
7a59041021999acfc85a7252945831591f405af3
1,237
exs
Elixir
config/prod.secret.exs
prio101/bosque
3b9d0a789a4c33dce829d5cab9d198145f28b8fd
[ "MIT" ]
null
null
null
config/prod.secret.exs
prio101/bosque
3b9d0a789a4c33dce829d5cab9d198145f28b8fd
[ "MIT" ]
null
null
null
config/prod.secret.exs
prio101/bosque
3b9d0a789a4c33dce829d5cab9d198145f28b8fd
[ "MIT" ]
null
null
null
# In this file, we load production configuration and secrets # from environment variables. You can also hardcode secrets, # although such is generally not recommended and you have to # remember to add this file to your .gitignore. use Mix.Config database_url = System.get_env("DATABASE_URL") || raise """ envi...
29.452381
67
0.718674
7a599aaca20ac820bdc5dd96f5762a7a63d8fa1d
577
ex
Elixir
apps/elixir_phoenix_chatroom_web/lib/elixir_phoenix_chatroom_web/router.ex
unip62/elixir-phoenix-chatroom
4c6af20d0461a572bcf3a70fb80cfe088e12ebbe
[ "MIT" ]
1
2018-02-19T09:02:14.000Z
2018-02-19T09:02:14.000Z
apps/elixir_phoenix_chatroom_web/lib/elixir_phoenix_chatroom_web/router.ex
unip62/elixir-phoenix-chatroom
4c6af20d0461a572bcf3a70fb80cfe088e12ebbe
[ "MIT" ]
null
null
null
apps/elixir_phoenix_chatroom_web/lib/elixir_phoenix_chatroom_web/router.ex
unip62/elixir-phoenix-chatroom
4c6af20d0461a572bcf3a70fb80cfe088e12ebbe
[ "MIT" ]
null
null
null
defmodule ElixirPhoenixChatroomWeb.Router do use ElixirPhoenixChatroomWeb, :router pipeline :browser do plug :accepts, ["html"] plug :fetch_session plug :fetch_flash plug :protect_from_forgery plug :put_secure_browser_headers end pipeline :api do plug :accepts, ["json"] end scope ...
21.37037
57
0.710572
7a599ab1b6eaf31c49d06a8b64793d9b074cbb47
629
exs
Elixir
mix.exs
lightcyphers/ftp
733fd874df9c122a3faf04c16bfa4809e60419cc
[ "Apache-2.0" ]
null
null
null
mix.exs
lightcyphers/ftp
733fd874df9c122a3faf04c16bfa4809e60419cc
[ "Apache-2.0" ]
null
null
null
mix.exs
lightcyphers/ftp
733fd874df9c122a3faf04c16bfa4809e60419cc
[ "Apache-2.0" ]
null
null
null
defmodule Ftp.MixProject do use Mix.Project def project do [ app: :ftp_fork, version: "0.1.0", elixir: "~> 1.12", start_permanent: Mix.env() == :prod, deps: deps() ] end # Run "mix help compile.app" to learn about applications. def application do [ extra_appli...
20.966667
87
0.578696
7a59ae4a21b99ddeaaf3a9c24e43414db216938c
2,241
ex
Elixir
lib/intercomx/client.ex
Codaisseur/intercomx
5d4b6d54c65d8babc3fca3252ae22305fa064917
[ "MIT" ]
null
null
null
lib/intercomx/client.ex
Codaisseur/intercomx
5d4b6d54c65d8babc3fca3252ae22305fa064917
[ "MIT" ]
1
2020-02-07T12:22:59.000Z
2020-02-07T12:22:59.000Z
lib/intercomx/client.ex
Codaisseur/intercomx
5d4b6d54c65d8babc3fca3252ae22305fa064917
[ "MIT" ]
1
2019-11-22T14:21:39.000Z
2019-11-22T14:21:39.000Z
defmodule IntercomX.Client do @moduledoc false defmacro __using__(_) do quote do use HTTPoison.Base @content_type "application/json" def endpoint, do: Application.get_env(:intercomx, :endpoint, "https://api.intercom.io") def process_url(path) do endpoint() <> path end ...
22.188119
93
0.580544
7a59e22336a47b4774c74edf4677bd38b1bfa284
2,549
ex
Elixir
clients/you_tube/lib/google_api/you_tube/v3/model/video_processing_details_processing_progress.ex
kolorahl/elixir-google-api
46bec1e092eb84c6a79d06c72016cb1a13777fa6
[ "Apache-2.0" ]
null
null
null
clients/you_tube/lib/google_api/you_tube/v3/model/video_processing_details_processing_progress.ex
kolorahl/elixir-google-api
46bec1e092eb84c6a79d06c72016cb1a13777fa6
[ "Apache-2.0" ]
null
null
null
clients/you_tube/lib/google_api/you_tube/v3/model/video_processing_details_processing_progress.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...
40.460317
132
0.73519
7a59fefd2c8cf779a9f85b278e8e6dbd9310fe99
73
exs
Elixir
phoenix_maru/test/test_helper.exs
elixir-maru/maru_examples
f0dcbf3c17c9df8b89b378953b71b54a53047806
[ "MIT" ]
27
2016-12-28T15:00:19.000Z
2021-11-09T12:55:23.000Z
phoenix_maru/test/test_helper.exs
elixir-maru/maru_examples
f0dcbf3c17c9df8b89b378953b71b54a53047806
[ "MIT" ]
5
2017-02-13T13:11:55.000Z
2019-07-22T19:38:09.000Z
phoenix_maru/test/test_helper.exs
elixir-maru/maru_examples
f0dcbf3c17c9df8b89b378953b71b54a53047806
[ "MIT" ]
8
2017-02-08T10:18:50.000Z
2020-06-01T11:42:04.000Z
ExUnit.start Ecto.Adapters.SQL.Sandbox.mode(PhoenixMaru.Repo, :manual)
14.6
57
0.794521
7a5a193b304375ca18124de05d326499b8dc8924
1,142
exs
Elixir
mix.exs
tverlaan/mson
165328a4021de611e71851fb95bc8b41f612f2a5
[ "MIT" ]
7
2017-02-03T17:17:07.000Z
2017-02-19T09:44:07.000Z
mix.exs
tverlaan/mson
165328a4021de611e71851fb95bc8b41f612f2a5
[ "MIT" ]
null
null
null
mix.exs
tverlaan/mson
165328a4021de611e71851fb95bc8b41f612f2a5
[ "MIT" ]
null
null
null
defmodule MSON.Mixfile do use Mix.Project def project do [app: :mson, version: "0.1.0", elixir: "~> 1.4", build_embedded: Mix.env == :prod, start_permanent: Mix.env == :prod, description: description(), package: package(), deps: deps()] end # Configuration for the OTP ap...
20.763636
77
0.58056
7a5a1c2b6b6dfbcf8c2f34bdca3b0c323d57df7d
5,995
exs
Elixir
test/teslamate/locations_test.exs
ryandimick/teslamate
50f6b4ebc4a6e75ad1493bc5a5dc63619a1a3bae
[ "MIT" ]
1
2019-10-14T20:49:45.000Z
2019-10-14T20:49:45.000Z
test/teslamate/locations_test.exs
ryandimick/teslamate
50f6b4ebc4a6e75ad1493bc5a5dc63619a1a3bae
[ "MIT" ]
null
null
null
test/teslamate/locations_test.exs
ryandimick/teslamate
50f6b4ebc4a6e75ad1493bc5a5dc63619a1a3bae
[ "MIT" ]
1
2019-10-09T18:17:32.000Z
2019-10-09T18:17:32.000Z
defmodule TeslaMate.LocationsTest do use TeslaMate.DataCase alias TeslaMate.Log.{Charge, ChargingProcess} alias TeslaMate.{Locations, Log, Repo} alias TeslaMate.Locations.GeoFence describe "phase correction" do ## create test "creating a geofence with `apply_phase_correction: false` does not update...
34.257143
102
0.58382
7a5a1ee18cbacb7487eb6803f2efda56f36c853e
13,148
ex
Elixir
lib/pix_key/pix_key.ex
starkinfra/sdk-elixir
d434de336ad7d2331b860519f04e9d107bb9c9cd
[ "MIT" ]
1
2022-03-15T18:58:21.000Z
2022-03-15T18:58:21.000Z
lib/pix_key/pix_key.ex
starkinfra/sdk-elixir
d434de336ad7d2331b860519f04e9d107bb9c9cd
[ "MIT" ]
null
null
null
lib/pix_key/pix_key.ex
starkinfra/sdk-elixir
d434de336ad7d2331b860519f04e9d107bb9c9cd
[ "MIT" ]
null
null
null
defmodule StarkInfra.PixKey do alias __MODULE__, as: PixKey alias StarkInfra.Utils.Rest alias StarkInfra.Utils.Check alias StarkInfra.User.Project alias StarkInfra.User.Organization alias StarkInfra.Error @moduledoc """ Groups PixKey related functions """ @doc """ PixKeys link bank account infor...
34.6
298
0.642455
7a5a47f0f8dc190bd315ee6d8a72c6e3ad9c4451
902
ex
Elixir
clients/admin/lib/google_api/admin/datatransfer_v1/metadata.ex
dazuma/elixir-google-api
6a9897168008efe07a6081d2326735fe332e522c
[ "Apache-2.0" ]
null
null
null
clients/admin/lib/google_api/admin/datatransfer_v1/metadata.ex
dazuma/elixir-google-api
6a9897168008efe07a6081d2326735fe332e522c
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/admin/lib/google_api/admin/datatransfer_v1/metadata.ex
dazuma/elixir-google-api
6a9897168008efe07a6081d2326735fe332e522c
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
33.407407
74
0.763858
7a5a4c2e9ccb4cda523d97c2814caeb883b3bdf1
2,507
ex
Elixir
lib/brute_solver.ex
shaddysignal/BruteSolver
15d3b5965f8e8046af973e8760c67d184cad9c19
[ "MIT" ]
null
null
null
lib/brute_solver.ex
shaddysignal/BruteSolver
15d3b5965f8e8046af973e8760c67d184cad9c19
[ "MIT" ]
null
null
null
lib/brute_solver.ex
shaddysignal/BruteSolver
15d3b5965f8e8046af973e8760c67d184cad9c19
[ "MIT" ]
null
null
null
defmodule BruteSolver do @moduledoc """ Some attempt to create solver for n-equations, of course there will be parser for said equation. """ def benchmark_brutes(brutes, string) do %Persar{notation: notation, variables: vars} = Persar.do_some(string) brutes |> Enum.map(fn brute -> IO.ins...
32.986842
118
0.604707
7a5a632e04b1ead737edb697698981e337535002
498
ex
Elixir
lib/loki/storage/item.ex
artjimlop/loki
4ac5f7b4313564971f8dd4213a2022698600786a
[ "Apache-2.0" ]
null
null
null
lib/loki/storage/item.ex
artjimlop/loki
4ac5f7b4313564971f8dd4213a2022698600786a
[ "Apache-2.0" ]
null
null
null
lib/loki/storage/item.ex
artjimlop/loki
4ac5f7b4313564971f8dd4213a2022698600786a
[ "Apache-2.0" ]
null
null
null
defmodule Loki.Storage.Item do use Ecto.Schema import Ecto.Changeset alias Loki.Accounts.User @primary_key {:id, :binary_id, autogenerate: true} @derive {Phoenix.Param, key: :id} @foreign_key_type :binary_id schema "items" do field(:content, :string) field(:title, :string) belongs_to(:user, ...
20.75
52
0.670683
7a5a806ea20eb9327b5b5e5bcd242ebb9d25fe5a
85,216
ex
Elixir
lib/ecto/schema.ex
ericsullivan/ecto
652894c449b0f8016c10cdb04eb794c959522692
[ "Apache-2.0" ]
null
null
null
lib/ecto/schema.ex
ericsullivan/ecto
652894c449b0f8016c10cdb04eb794c959522692
[ "Apache-2.0" ]
null
null
null
lib/ecto/schema.ex
ericsullivan/ecto
652894c449b0f8016c10cdb04eb794c959522692
[ "Apache-2.0" ]
2
2021-11-02T18:12:08.000Z
2021-11-02T18:40:51.000Z
defmodule Ecto.Schema do @moduledoc ~S""" Defines a schema. An Ecto schema is used to map any data source into an Elixir struct. The definition of the schema is possible through two main APIs: `schema/2` and `embedded_schema/1`. `schema/2` is typically used to map data from a persisted source, usually a...
37.018245
155
0.672057
7a5a90b43f670f3aba3a4420c4b4b959fc4f686b
28,384
exs
Elixir
test/mnemonic_test.exs
radixpool/mnemonic
16662b0a4c4d94bcd9a8a8f7ab5539f5b335233f
[ "MIT" ]
1
2019-02-12T15:44:10.000Z
2019-02-12T15:44:10.000Z
test/mnemonic_test.exs
radixpool/mnemonic
16662b0a4c4d94bcd9a8a8f7ab5539f5b335233f
[ "MIT" ]
null
null
null
test/mnemonic_test.exs
radixpool/mnemonic
16662b0a4c4d94bcd9a8a8f7ab5539f5b335233f
[ "MIT" ]
1
2022-01-31T13:35:16.000Z
2022-01-31T13:35:16.000Z
defmodule MnemonicTest do use ExUnit.Case doctest Mnemonic @ideographic_space "\u3000" test "Mnemonic test vectors" do Enum.map(mnemonic_test_vectors(), fn {lang, vectors} -> Enum.map(vectors, fn %{ entropy: entropy, mnemonic: expected_mnemon...
56.205941
202
0.733406
7a5a973014d5168351fa05d15db2fd4822769404
33,817
ex
Elixir
lib/ecto/migration.ex
ryanwinchester/ecto_sql
36a842a58f359734a903f89237ff6f9ae90ef10a
[ "Apache-2.0" ]
null
null
null
lib/ecto/migration.ex
ryanwinchester/ecto_sql
36a842a58f359734a903f89237ff6f9ae90ef10a
[ "Apache-2.0" ]
null
null
null
lib/ecto/migration.ex
ryanwinchester/ecto_sql
36a842a58f359734a903f89237ff6f9ae90ef10a
[ "Apache-2.0" ]
null
null
null
defmodule Ecto.Migration do @moduledoc """ Migrations are used to modify your database schema over time. This module provides many helpers for migrating the database, allowing developers to use Elixir to alter their storage in a way that is database independent. Here is an example: defmodule MyRepo...
31.723265
123
0.671378
7a5ab008b20573b7e9480c72d0f297c30dbb3f78
1,679
ex
Elixir
lib/publishex/adapter/s3.ex
maartenvanvliet/publishex
57fb9b60a6f451119377d94d998eaaccc833dcd5
[ "MIT" ]
5
2019-08-19T12:56:35.000Z
2020-05-18T08:21:26.000Z
lib/publishex/adapter/s3.ex
maartenvanvliet/publishex
57fb9b60a6f451119377d94d998eaaccc833dcd5
[ "MIT" ]
44
2019-10-04T04:47:40.000Z
2022-03-24T04:02:52.000Z
lib/publishex/adapter/s3.ex
maartenvanvliet/publishex
57fb9b60a6f451119377d94d998eaaccc833dcd5
[ "MIT" ]
null
null
null
defmodule Publishex.Adapter.S3 do @moduledoc "Adapter for uploading a directory to S3" alias ExAws.S3 alias Publishex.Util @doc """ Publish to S3 config = Publishex.Config.build([ directory: "doc", adapter_opts: [bucket: "your.s3.bucket", region: "us-west-1", access_key_id: "access_ke...
27.52459
142
0.654556
7a5af815a516b20119269cd433b298962f6ddaaa
4,470
exs
Elixir
test/ecto/query/builder/join_test.exs
larryweya/ecto
d0d1fd43f0f97856a119184163167a7e79574923
[ "Apache-2.0" ]
1
2019-05-03T08:51:16.000Z
2019-05-03T08:51:16.000Z
test/ecto/query/builder/join_test.exs
larryweya/ecto
d0d1fd43f0f97856a119184163167a7e79574923
[ "Apache-2.0" ]
null
null
null
test/ecto/query/builder/join_test.exs
larryweya/ecto
d0d1fd43f0f97856a119184163167a7e79574923
[ "Apache-2.0" ]
null
null
null
defmodule Ecto.Query.Builder.JoinTest do use ExUnit.Case, async: true import Ecto.Query.Builder.Join doctest Ecto.Query.Builder.Join import Ecto.Query defmacro join_macro(left, right) do quote do fragment("? <> ?", unquote(left), unquote(right)) end end test "expands macros as sources" d...
33.609023
117
0.590157
7a5b2911d3fcfa0c2d034dc6d13d0690ab5974e9
21,248
ex
Elixir
clients/compute/lib/google_api/compute/v1/api/vpn_tunnels.ex
mcrumm/elixir-google-api
544f22797cec52b3a23dfb6e39117f0018448610
[ "Apache-2.0" ]
null
null
null
clients/compute/lib/google_api/compute/v1/api/vpn_tunnels.ex
mcrumm/elixir-google-api
544f22797cec52b3a23dfb6e39117f0018448610
[ "Apache-2.0" ]
null
null
null
clients/compute/lib/google_api/compute/v1/api/vpn_tunnels.ex
mcrumm/elixir-google-api
544f22797cec52b3a23dfb6e39117f0018448610
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
56.063325
511
0.661851
7a5b3216dec301b8223c335b6b1bd1784eee66ef
98
ex
Elixir
test/unit/fixtures/compiler/transformers/struct_type_transformer/module_1.ex
gregjohnsonsaltaire/hologram
aa8e9ea0d599def864c263cc37cc8ee31f02ac4a
[ "MIT" ]
40
2022-01-19T20:27:36.000Z
2022-03-31T18:17:41.000Z
test/unit/fixtures/compiler/transformers/struct_type_transformer/module_1.ex
gregjohnsonsaltaire/hologram
aa8e9ea0d599def864c263cc37cc8ee31f02ac4a
[ "MIT" ]
42
2022-02-03T22:52:43.000Z
2022-03-26T20:57:32.000Z
test/unit/fixtures/compiler/transformers/struct_type_transformer/module_1.ex
gregjohnsonsaltaire/hologram
aa8e9ea0d599def864c263cc37cc8ee31f02ac4a
[ "MIT" ]
3
2022-02-10T04:00:37.000Z
2022-03-08T22:07:45.000Z
defmodule Hologram.Test.Fixtures.Compiler.StructTypeTransformer.Module1 do defstruct a: nil end
24.5
74
0.846939
7a5b49abf623118bb2b7ecd6761e503bd405f9ee
669
ex
Elixir
clients/elixir/generated/lib/swaggy_jenkins/model/disk_space_monitor_descriptor_disk_space.ex
cliffano/jenkins-api-clients-generator
522d02b3a130a29471df5ec1d3d22c822b3d0813
[ "MIT" ]
null
null
null
clients/elixir/generated/lib/swaggy_jenkins/model/disk_space_monitor_descriptor_disk_space.ex
cliffano/jenkins-api-clients-generator
522d02b3a130a29471df5ec1d3d22c822b3d0813
[ "MIT" ]
null
null
null
clients/elixir/generated/lib/swaggy_jenkins/model/disk_space_monitor_descriptor_disk_space.ex
cliffano/jenkins-api-clients-generator
522d02b3a130a29471df5ec1d3d22c822b3d0813
[ "MIT" ]
null
null
null
# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). # https://openapi-generator.tech # Do not edit the class manually. defmodule SwaggyJenkins.Model.DiskSpaceMonitorDescriptorDiskSpace do @moduledoc """ """ @derive [Poison.Encoder] defstruct [ :"_class", :"ti...
20.90625
91
0.656203
7a5b7db59544b4d876823f89b23a6b905f1887b5
1,197
exs
Elixir
example/config/config.exs
MetisMachine/pilot
cb692ced9e20888cb4f528784639f94fc2a762f9
[ "MIT" ]
2
2017-10-05T21:04:21.000Z
2018-09-19T19:50:28.000Z
example/config/config.exs
MetisMachine/pilot
cb692ced9e20888cb4f528784639f94fc2a762f9
[ "MIT" ]
4
2017-10-19T16:00:00.000Z
2017-10-26T13:44:42.000Z
example/config/config.exs
MetisMachine/pilot
cb692ced9e20888cb4f528784639f94fc2a762f9
[ "MIT" ]
2
2017-10-11T18:06:21.000Z
2017-10-12T20:01:53.000Z
# This file is responsible for configuring your application # and its dependencies with the aid of the Mix.Config module. use Mix.Config # This configuration is loaded before any dependency and is restricted # to this project. If another project depends on this project, this # file won't be loaded nor affect the paren...
34.2
73
0.748538
7a5b81af53e7e49224cb9506bfaee46b5ad1c64b
11,417
ex
Elixir
lib/ex_doc/retriever.ex
g-andrade/ex_doc
50155806bb00506a5e199a894a5d2a47c24165f0
[ "Apache-2.0", "CC-BY-4.0" ]
null
null
null
lib/ex_doc/retriever.ex
g-andrade/ex_doc
50155806bb00506a5e199a894a5d2a47c24165f0
[ "Apache-2.0", "CC-BY-4.0" ]
null
null
null
lib/ex_doc/retriever.ex
g-andrade/ex_doc
50155806bb00506a5e199a894a5d2a47c24165f0
[ "Apache-2.0", "CC-BY-4.0" ]
null
null
null
defmodule ExDoc.Retriever do # Functions to extract documentation information from modules. @moduledoc false defmodule Error do @moduledoc false defexception [:message] end alias ExDoc.{DocAST, GroupMatcher, Refs} alias ExDoc.Retriever.Error @doc """ Extract documentation from all modules in ...
31.024457
99
0.656039
7a5b8b660324de7088f89d0288634daa14152805
1,234
ex
Elixir
clients/books/lib/google_api/books/v1/model/volumeannotations.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/books/lib/google_api/books/v1/model/volumeannotations.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/books/lib/google_api/books/v1/model/volumeannotations.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...
28.697674
87
0.731767
7a5ba3d497d820e0d5cb9466946c220065a8b2ff
53,349
ex
Elixir
lib/phoenix_live_view/test/live_view_test.ex
tomconroy/phoenix_live_view
655e95170e3e1b8fead1ffe43a661c7f5aa6b519
[ "MIT" ]
null
null
null
lib/phoenix_live_view/test/live_view_test.ex
tomconroy/phoenix_live_view
655e95170e3e1b8fead1ffe43a661c7f5aa6b519
[ "MIT" ]
4
2021-03-04T13:00:52.000Z
2021-03-12T12:42:09.000Z
deps/phoenix_live_view/lib/phoenix_live_view/test/live_view_test.ex
adrianomota/blog
ef3b2d2ed54f038368ead8234d76c18983caa75b
[ "MIT" ]
null
null
null
defmodule Phoenix.LiveViewTest do @moduledoc """ Conveniences for testing Phoenix LiveViews. In LiveView tests, we interact with views via process communication in substitution of a browser. Like a browser, our test process receives messages about the rendered updates from the view which can be asserted ag...
31.586146
98
0.65229
7a5bb8ba553dadf0bfbb66ed0f3e6cb28bc5b063
68,845
ex
Elixir
lib/ash/changeset/changeset.ex
savish/ash
7faf73097a6c6f801851e9d89569b6f5e6e87f81
[ "MIT" ]
null
null
null
lib/ash/changeset/changeset.ex
savish/ash
7faf73097a6c6f801851e9d89569b6f5e6e87f81
[ "MIT" ]
null
null
null
lib/ash/changeset/changeset.ex
savish/ash
7faf73097a6c6f801851e9d89569b6f5e6e87f81
[ "MIT" ]
null
null
null
defmodule Ash.Changeset do @moduledoc """ Changesets are used to create and update data in Ash. Create a changeset with `new/1` or `new/2`, and alter the attributes and relationships using the functions provided in this module. Nothing in this module actually incurs changes in a data layer. To commit a chan...
33.098558
181
0.620176
7a5bca77ffff160d057a9c9fa21729dedbab4978
4,296
exs
Elixir
test/ecto_enum_test.exs
polmiro/ecto_enum
6d19eb1822358578579555682054617b5bb1d210
[ "MIT" ]
null
null
null
test/ecto_enum_test.exs
polmiro/ecto_enum
6d19eb1822358578579555682054617b5bb1d210
[ "MIT" ]
null
null
null
test/ecto_enum_test.exs
polmiro/ecto_enum
6d19eb1822358578579555682054617b5bb1d210
[ "MIT" ]
null
null
null
defmodule EctoEnumTest do use ExUnit.Case import EctoEnum keywords = [registered: 0, active: 1, inactive: 2, archived: 3] defenum StatusEnum, keywords defmodule User do use Ecto.Schema schema "users" do field :status, StatusEnum end def roles do [:admin, :manager, :user] en...
32.059701
130
0.650605
7a5be4cfd403549d6cdafe6930b014d662c07a86
421
ex
Elixir
lib/ex_fuzzywuzzy/similarity.ex
primait/ex_fuzzywuzzy
713661a578b45fecd14cc8af868385bf42443471
[ "MIT" ]
null
null
null
lib/ex_fuzzywuzzy/similarity.ex
primait/ex_fuzzywuzzy
713661a578b45fecd14cc8af868385bf42443471
[ "MIT" ]
null
null
null
lib/ex_fuzzywuzzy/similarity.ex
primait/ex_fuzzywuzzy
713661a578b45fecd14cc8af868385bf42443471
[ "MIT" ]
1
2021-04-10T15:12:12.000Z
2021-04-10T15:12:12.000Z
defmodule ExFuzzywuzzy.Similarity do @moduledoc """ Defines the `ExFuzzywuzzy.Similarity` behaviour for implementing a similarity calculator. A custom calculator expects two strings and calculates the similarity between them as a floating-point decimal between 0 and 1. Out-of-the-box, ExFuzzywuzzy provides ...
32.384615
91
0.767221
7a5bec906c2135182057dda7ba7ee82b25531c19
373
exs
Elixir
apps/speedrun_blog_engine/priv/repo/seeds.exs
brvnaleao/speedrun-blog-engine
77afd7852f7c7135c530cd769e3376ef043c2421
[ "Apache-2.0" ]
null
null
null
apps/speedrun_blog_engine/priv/repo/seeds.exs
brvnaleao/speedrun-blog-engine
77afd7852f7c7135c530cd769e3376ef043c2421
[ "Apache-2.0" ]
1
2021-04-12T17:10:05.000Z
2021-04-12T17:10:05.000Z
apps/speedrun_blog_engine/priv/repo/seeds.exs
brvnaleao/speedrun-blog-engine
77afd7852f7c7135c530cd769e3376ef043c2421
[ "Apache-2.0" ]
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: # # SpeedrunBlogEngine.Repo.insert!(%SpeedrunBlogEngine.SomeSchema{}) # # We recommend using the bang functions (`insert!`, `update!` # a...
31.083333
71
0.723861
7a5c069e93199ed7fb233310e55c98612d4c82fa
971
exs
Elixir
apps/language_server/mix.exs
wingyplus/elixir-ls
b3f00a5332d7886816df8056a3a8297c4eb447b2
[ "Apache-2.0" ]
null
null
null
apps/language_server/mix.exs
wingyplus/elixir-ls
b3f00a5332d7886816df8056a3a8297c4eb447b2
[ "Apache-2.0" ]
null
null
null
apps/language_server/mix.exs
wingyplus/elixir-ls
b3f00a5332d7886816df8056a3a8297c4eb447b2
[ "Apache-2.0" ]
null
null
null
defmodule ElixirLS.LanguageServer.Mixfile do use Mix.Project def project do [ app: :language_server, version: "0.3.2", elixir: ">= 1.7.0", build_path: "../../_build", config_path: "config/config.exs", deps_path: "../../deps", lockfile: "../../mix.lock", elixirc_p...
24.897436
77
0.593203
7a5c4be6f3c285ac257cb28860faf0f8eff2470d
1,557
ex
Elixir
lib/lib_ten/release_tasks.ex
10clouds/10Books
622360ea190421e07d4b207700867be105894218
[ "MIT" ]
11
2018-08-29T15:59:09.000Z
2021-08-25T16:35:13.000Z
lib/lib_ten/release_tasks.ex
10clouds/10Books
622360ea190421e07d4b207700867be105894218
[ "MIT" ]
16
2018-08-29T15:43:52.000Z
2021-05-09T00:53:56.000Z
lib/lib_ten/release_tasks.ex
10clouds/10Books
622360ea190421e07d4b207700867be105894218
[ "MIT" ]
3
2019-05-29T14:22:59.000Z
2020-06-06T12:30:54.000Z
defmodule LibTen.ReleaseTasks do # Based on # https://hexdocs.pm/distillery/guides/running_migrations.html @start_apps [ :crypto, :ssl, :postgrex, :ecto, :ecto_sql ] @app :lib_ten @repos Application.get_env(@app, :ecto_repos, []) def migrate do start_services() Enum.each(@rep...
23.590909
81
0.671162
7a5c606f0f76b5ad0b2e005a40d33735e886648d
4,792
ex
Elixir
lib/changelog_web/views/episode_view.ex
boneskull/changelog.com
2fa2e356bb0e8fcf038c46a4a947fef98822e37d
[ "MIT" ]
null
null
null
lib/changelog_web/views/episode_view.ex
boneskull/changelog.com
2fa2e356bb0e8fcf038c46a4a947fef98822e37d
[ "MIT" ]
null
null
null
lib/changelog_web/views/episode_view.ex
boneskull/changelog.com
2fa2e356bb0e8fcf038c46a4a947fef98822e37d
[ "MIT" ]
null
null
null
defmodule ChangelogWeb.EpisodeView do use ChangelogWeb, :public_view import ChangelogWeb.Meta.{Title, Description} alias Changelog.{Episode, Files, Github} alias ChangelogWeb.{Endpoint, LayoutView, PersonView, PodcastView, SponsorView, TimeView} def admin_edit_link(conn, user, episode) do if user && us...
29.580247
204
0.667362
7a5c6761064c7d0e998b8e887c52a9b3fb7eecb9
4,594
ex
Elixir
lib/ash_json_api/test/test.ex
zimt28/ash_json_api
b26500b7d80dda5c65c9fd1e8abdcd2840d408bf
[ "MIT" ]
null
null
null
lib/ash_json_api/test/test.ex
zimt28/ash_json_api
b26500b7d80dda5c65c9fd1e8abdcd2840d408bf
[ "MIT" ]
null
null
null
lib/ash_json_api/test/test.ex
zimt28/ash_json_api
b26500b7d80dda5c65c9fd1e8abdcd2840d408bf
[ "MIT" ]
null
null
null
defmodule AshJsonApi.Test do @moduledoc false use Plug.Test require ExUnit.Assertions import ExUnit.Assertions # This probably won't work for users of ashjsonapi @schema_file "lib/ash_json_api/test/response_schema" @external_resource @schema_file # @schema @schema_file |> File.read!() |> Jason.decode...
27.023529
94
0.641707
7a5c7350b3171cf5c4b02eca51179a7c94dc2030
137
ex
Elixir
otapi/lib/otapi_web/controllers/page_controller.ex
MauriceReeves-usds/OpenTransplant
c0196ff8bc5b914ce07502a4b7a760c508854804
[ "Apache-2.0" ]
32
2021-05-15T15:03:39.000Z
2022-03-30T01:19:43.000Z
otapi/lib/otapi_web/controllers/page_controller.ex
MauriceReeves-usds/OpenTransplant
c0196ff8bc5b914ce07502a4b7a760c508854804
[ "Apache-2.0" ]
3
2021-05-28T18:54:48.000Z
2021-07-15T01:06:26.000Z
otapi/lib/otapi_web/controllers/page_controller.ex
MauriceReeves-usds/OpenTransplant
c0196ff8bc5b914ce07502a4b7a760c508854804
[ "Apache-2.0" ]
1
2021-06-25T20:40:30.000Z
2021-06-25T20:40:30.000Z
defmodule OtapiWeb.PageController do use OtapiWeb, :controller def index(conn, _params) do render(conn, "index.html") end end
17.125
36
0.729927
7a5ce9052683fc11d2f22b666825e13efa528f09
651
exs
Elixir
config/test.exs
spotifun/funix
c81a1b4584b826264241fcf2da13552a610842dd
[ "MIT" ]
null
null
null
config/test.exs
spotifun/funix
c81a1b4584b826264241fcf2da13552a610842dd
[ "MIT" ]
null
null
null
config/test.exs
spotifun/funix
c81a1b4584b826264241fcf2da13552a610842dd
[ "MIT" ]
null
null
null
use Mix.Config # Configure your database # # The MIX_TEST_PARTITION environment variable can be used # to provide built-in test partitioning in CI environment. # Run `mix help test` for more information. config :funix, Funix.Repo, username: "postgres", password: "postgres", database: "funix_test#{System.get_env(...
28.304348
64
0.745008
7a5cea31efd5346ce6a48aae9eb6ab4213780ec9
1,472
exs
Elixir
test/resource/actions/actions_test.exs
WolfDan/ash
7cc60f41a003e2d06b5e19107e22424efafed1be
[ "MIT" ]
null
null
null
test/resource/actions/actions_test.exs
WolfDan/ash
7cc60f41a003e2d06b5e19107e22424efafed1be
[ "MIT" ]
null
null
null
test/resource/actions/actions_test.exs
WolfDan/ash
7cc60f41a003e2d06b5e19107e22424efafed1be
[ "MIT" ]
null
null
null
defmodule Ash.Test.Dsl.Resource.Actions.ActionsTest do @moduledoc false use ExUnit.Case, async: true defmacrop defposts(do: body) do quote do # Process.flag(:trap_exit, true) defmodule Post do @moduledoc false use Ash.Resource attributes do attribute :id, :uuid...
27.259259
192
0.595109
7a5d1275198b6a4504bb2fc7257efb418277fbcd
1,090
exs
Elixir
test/vroom_test.exs
wesleimp/vroom-elixir
5c0bc5a8c9ce02f6415eb06a568f3310dfd8977d
[ "MIT" ]
5
2021-04-14T15:02:59.000Z
2021-04-28T19:18:00.000Z
test/vroom_test.exs
sleipnir/vroom-elixir
3e4963aa796a7ce84f21ef89744f054c8c6a6c34
[ "MIT" ]
5
2021-04-13T22:03:29.000Z
2021-05-12T12:47:41.000Z
test/vroom_test.exs
sleipnir/vroom-elixir
3e4963aa796a7ce84f21ef89744f054c8c6a6c34
[ "MIT" ]
2
2021-04-14T16:39:35.000Z
2021-04-28T19:17:53.000Z
defmodule VROOMTest do @moduledoc false use ExUnit.Case doctest VROOM alias VROOM.{Shipment, Vehicle} @shipment_1 %Shipment{ amount: [1], pickup: %Shipment.Step{ id: 1, description: "Pickup #1", location: [ -49.273080825805664, -25.437422762495064 ] }, ...
20.185185
69
0.475229
7a5d591d873a19ebf312ef30759d9cf92ef20b9a
592
exs
Elixir
apps/bernard_api/config/test.exs
CharlesBean/bernard
5bd403e72cbc17b8feacd8d3cbb0d9c7bc4ef51d
[ "MIT" ]
null
null
null
apps/bernard_api/config/test.exs
CharlesBean/bernard
5bd403e72cbc17b8feacd8d3cbb0d9c7bc4ef51d
[ "MIT" ]
null
null
null
apps/bernard_api/config/test.exs
CharlesBean/bernard
5bd403e72cbc17b8feacd8d3cbb0d9c7bc4ef51d
[ "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. # # Dyanmic configuration of the endpoint is set in # Endpoint.init/2. Please ensure to have the following # environment variables set: # API_PORT -> :http[:port] # API_SECRET_KEY_BASE -...
28.190476
56
0.724662
7a5d77484d37b5fd521d87bc4cfd4ed3b1baec55
466
exs
Elixir
templates/new_nerves/rootfs_overlay/etc/iex.exs
crertel/scenic_new
dabf3f7298366a30762a3ab904d824199d13967a
[ "Apache-2.0" ]
1
2020-05-28T22:21:38.000Z
2020-05-28T22:21:38.000Z
rf69/scenic-nerves/rootfs_overlay/etc/iex.exs
ConnorRigby/elixir-rf69-examples
1e5625a4dc957a7b25c04a3a01b447f0d65d16b9
[ "Apache-2.0" ]
null
null
null
rf69/scenic-nerves/rootfs_overlay/etc/iex.exs
ConnorRigby/elixir-rf69-examples
1e5625a4dc957a7b25c04a3a01b447f0d65d16b9
[ "Apache-2.0" ]
null
null
null
# Add Toolshed helpers to the IEx session use Toolshed if RingLogger in Application.get_env(:logger, :backends, []) do IO.puts(""" RingLogger is collecting log messages from Elixir and Linux. To see the messages, either attach the current IEx session to the logger: RingLogger.attach or print the next mes...
24.526316
76
0.733906
7a5d8694a7e679e36b358d3b2f795d94d73e4e9b
3,788
ex
Elixir
lib/codes/codes_z72.ex
badubizzle/icd_code
4c625733f92b7b1d616e272abc3009bb8b916c0c
[ "Apache-2.0" ]
null
null
null
lib/codes/codes_z72.ex
badubizzle/icd_code
4c625733f92b7b1d616e272abc3009bb8b916c0c
[ "Apache-2.0" ]
null
null
null
lib/codes/codes_z72.ex
badubizzle/icd_code
4c625733f92b7b1d616e272abc3009bb8b916c0c
[ "Apache-2.0" ]
null
null
null
defmodule IcdCode.ICDCode.Codes_Z72 do alias IcdCode.ICDCode def _Z720 do %ICDCode{full_code: "Z720", category_code: "Z72", short_code: "0", full_name: "Tobacco use", short_name: "Tobacco use", category_name: "Tobacco use" } end def _Z723 do %ICDCo...
30.548387
68
0.596621
7a5db9a09194421e1b8b0fda171014e0041c85b4
474
exs
Elixir
test/stripe/core_resources/event_test.exs
Rutaba/stripity_stripe
12c525301c781f9c8c7e578cc0d933f5d35183d5
[ "BSD-3-Clause" ]
555
2016-11-29T05:02:27.000Z
2022-03-30T00:47:59.000Z
test/stripe/core_resources/event_test.exs
Rutaba/stripity_stripe
12c525301c781f9c8c7e578cc0d933f5d35183d5
[ "BSD-3-Clause" ]
532
2016-11-28T18:22:25.000Z
2022-03-30T17:04:32.000Z
test/stripe/core_resources/event_test.exs
Rutaba/stripity_stripe
12c525301c781f9c8c7e578cc0d933f5d35183d5
[ "BSD-3-Clause" ]
296
2016-12-05T14:04:09.000Z
2022-03-28T20:39:37.000Z
defmodule Stripe.EventTest do use Stripe.StripeCase, async: true describe "retrieve/2" do test "retrieves an event" do assert {:ok, %Stripe.Event{}} = Stripe.Event.retrieve("evt_123") assert_stripe_requested(:get, "/v1/events/evt_123") end end describe "list/2" do test "lists all event...
26.333333
79
0.660338
7a5de4a14c4cd40fafb4277d8a1ca7344226875c
12,502
exs
Elixir
test/shp_test.exs
Murd4M1773n-M4f14/exshape
2320124891a61571c2e34e9f983b3c10af1d2ac2
[ "MIT" ]
18
2017-04-13T20:13:09.000Z
2021-12-30T08:37:53.000Z
test/shp_test.exs
socrata/exshape
2320124891a61571c2e34e9f983b3c10af1d2ac2
[ "MIT" ]
16
2017-04-26T03:20:55.000Z
2021-12-29T18:52:37.000Z
test/shp_test.exs
rozap/exshape
2320124891a61571c2e34e9f983b3c10af1d2ac2
[ "MIT" ]
9
2017-04-24T13:27:37.000Z
2021-01-06T18:18:17.000Z
defmodule ShpTest do use ExUnit.Case import TestHelper alias Exshape.Shp alias Exshape.Shp.{Bbox, Point, PointM, PointZ, Multipoint, MultipointM, MultipointZ, Polyline, PolylineM, PolylineZ, Polygon, PolygonM, PolygonZ } doctest Exshape describe "regular geoms" do test "can read point...
23.813333
81
0.352264
7a5dfb2e5dec6e5deef9f448efa820bf0153515d
508
ex
Elixir
lib/guardian.ex
t00lmaker/elixir-bank
41897d8fa87bb2fedbe3ef6f8f5cd78b756e24f0
[ "MIT" ]
4
2020-05-05T18:37:28.000Z
2022-01-05T00:56:19.000Z
lib/guardian.ex
t00lmaker/elixir-bank
41897d8fa87bb2fedbe3ef6f8f5cd78b756e24f0
[ "MIT" ]
21
2019-12-01T15:32:02.000Z
2019-12-19T13:10:36.000Z
lib/guardian.ex
t00lmaker/elixir-bank
41897d8fa87bb2fedbe3ef6f8f5cd78b756e24f0
[ "MIT" ]
2
2020-09-12T16:07:11.000Z
2020-12-11T06:46:45.000Z
defmodule Bank.Guardian do @moduledoc """ Esse modulo gerencia o JWT (JSON WEB TOKEN), que garante a autenticação e acesso dos usuários a Api. """ use Guardian, otp_app: :bankapi alias Bank.Users alias Bank.Repo def subject_for_token(user, _claims) do sub = to_string(user.id) {:ok, s...
18.142857
53
0.629921
7a5e0039ac8bd2b795b12e53749d9dc7c1b87693
824
ex
Elixir
lib/ancestry_ecto/ancestor.ex
StephaneRob/ancestry-ecto
28b6b30dc63cb4085026973a6917f1eb7b0fe0bd
[ "MIT" ]
2
2020-08-02T19:14:46.000Z
2020-08-07T11:02:38.000Z
lib/ancestry_ecto/ancestor.ex
StephaneRob/ancestry
28b6b30dc63cb4085026973a6917f1eb7b0fe0bd
[ "MIT" ]
null
null
null
lib/ancestry_ecto/ancestor.ex
StephaneRob/ancestry
28b6b30dc63cb4085026973a6917f1eb7b0fe0bd
[ "MIT" ]
1
2020-07-27T05:52:29.000Z
2020-07-27T05:52:29.000Z
defmodule AncestryEcto.Ancestor do @moduledoc false import Ecto.Query import AncestryEcto.Utils def ids(model, opts) do model |> Map.get(column(opts)) |> parse_ancestry_column(opts) end def list(model, opts) do case ids(model, opts) do [] -> [] ids -> query = ...
20.6
63
0.61165
7a5e0e1ddcca19758243131acd705d731e51024f
1,203
exs
Elixir
test/actions/delayed_update_test.exs
bnns/state_server
d62dcd7c8d261e057764c39370b6ac5a63f11aa4
[ "MIT" ]
8
2019-08-31T00:31:58.000Z
2021-06-11T22:12:05.000Z
test/actions/delayed_update_test.exs
bnns/state_server
d62dcd7c8d261e057764c39370b6ac5a63f11aa4
[ "MIT" ]
39
2019-09-07T21:29:09.000Z
2020-05-05T15:01:30.000Z
test/actions/delayed_update_test.exs
bnns/state_server
d62dcd7c8d261e057764c39370b6ac5a63f11aa4
[ "MIT" ]
2
2020-01-04T05:44:25.000Z
2020-01-19T21:44:41.000Z
defmodule StateServerTest.Callbacks.DelayedUpdateTest do use ExUnit.Case, async: true defmodule Instrumented do use StateServer, [start: [tr: :end], end: []] def start_link(fun), do: StateServer.start_link(__MODULE__, fun) @impl true def init(fun), do: {:ok, fun} def state(srv), do: StateSe...
25.595745
81
0.643392
7a5e143eba586b704ce5126db89855178cf23e7c
61
exs
Elixir
test/playground/documents_test.exs
begedin/philtre
3fc92c097875942689aad97997a983c8a83b602f
[ "MIT" ]
2
2022-01-28T13:56:13.000Z
2022-03-20T12:17:54.000Z
test/playground/documents_test.exs
begedin/philtre
3fc92c097875942689aad97997a983c8a83b602f
[ "MIT" ]
null
null
null
test/playground/documents_test.exs
begedin/philtre
3fc92c097875942689aad97997a983c8a83b602f
[ "MIT" ]
null
null
null
defmodule Playground.DocumentsTest do @moduledoc false end
15.25
37
0.836066
7a5e1822468478746b7b8d13b0d5be3cd0b53e2a
868
exs
Elixir
mix.exs
aseigo/natural_sort
936db0dba0e1864078048e572281b85dd386e287
[ "MIT" ]
1
2021-07-13T22:50:45.000Z
2021-07-13T22:50:45.000Z
mix.exs
aseigo/natural_sort
936db0dba0e1864078048e572281b85dd386e287
[ "MIT" ]
null
null
null
mix.exs
aseigo/natural_sort
936db0dba0e1864078048e572281b85dd386e287
[ "MIT" ]
2
2021-11-18T09:09:16.000Z
2022-01-27T08:12:22.000Z
defmodule NaturalSort.Mixfile do use Mix.Project def project do [app: :natural_sort, version: "0.4.0", elixir: "~> 1.0", build_embedded: Mix.env == :prod, start_permanent: Mix.env == :prod, deps: deps(), description: description(), package: package() ] end def applica...
20.186047
71
0.559908
7a5e41f09e7d3c09a2f97cb8c172cb82bff44efe
604
exs
Elixir
18.OTPSupervisors/otpv1/stack/mix.exs
kenspirit/programming-elixir-exercises
35ca1f0cb17ca4040b395c2f9cc53e51918c99ca
[ "MIT" ]
6
2019-10-25T21:51:11.000Z
2022-03-23T02:11:38.000Z
supervisors/stack/mix.exs
sfat/programming-elixir-exercises
19e62e3f3344ec044e1eb1b39b195f4dad3dff1c
[ "Apache-2.0" ]
null
null
null
supervisors/stack/mix.exs
sfat/programming-elixir-exercises
19e62e3f3344ec044e1eb1b39b195f4dad3dff1c
[ "Apache-2.0" ]
1
2020-06-16T12:37:43.000Z
2020-06-16T12:37:43.000Z
defmodule Stack.MixProject do use Mix.Project def project do [ app: :stack, version: "0.1.0", elixir: "~> 1.7", start_permanent: Mix.env() == :prod, deps: deps() ] end # Run "mix help compile.app" to learn about applications. def application do [ extra_applica...
20.133333
88
0.569536
7a5e6dc5615f47fc88ac44d944ec6b5f0a128802
902
ex
Elixir
apps/worker/lib/worker/demo_projects/producer.ex
michaeljguarino/forge
50ee583ecb4aad5dee4ef08fce29a8eaed1a0824
[ "Apache-2.0" ]
null
null
null
apps/worker/lib/worker/demo_projects/producer.ex
michaeljguarino/forge
50ee583ecb4aad5dee4ef08fce29a8eaed1a0824
[ "Apache-2.0" ]
2
2019-12-13T23:55:50.000Z
2019-12-17T05:49:58.000Z
apps/worker/lib/worker/demo_projects/producer.ex
michaeljguarino/chartmart
a34c949cc29d6a1ab91c04c5e4f797e6f0daabfc
[ "Apache-2.0" ]
null
null
null
defmodule Worker.DemoProjects.Producer do use GenStage alias Core.Services.Shell.Demo @max 20 @poll :timer.seconds(5) defmodule State, do: defstruct [:demand] def start_link(opts \\ []) do GenStage.start_link(__MODULE__, opts, name: __MODULE__) end def init(_) do :timer.send_interval(@poll, ...
24.378378
81
0.650776
7a5e8c4af021b775784271fc03fd1efd5a44f8a8
10,912
ex
Elixir
mpc-wallet/demo/server/lib/server_web/controllers/mpc_controller.ex
acatinon/nash-rust
f2350bbd99a3193cadf95ef62d7e62aca9145ec2
[ "MIT" ]
4
2020-10-30T00:15:51.000Z
2021-07-05T09:14:58.000Z
mpc-wallet/demo/server/lib/server_web/controllers/mpc_controller.ex
acatinon/nash-rust
f2350bbd99a3193cadf95ef62d7e62aca9145ec2
[ "MIT" ]
33
2020-09-16T22:43:27.000Z
2021-11-11T20:24:35.000Z
mpc-wallet/demo/server/lib/server_web/controllers/mpc_controller.ex
acatinon/nash-rust
f2350bbd99a3193cadf95ef62d7e62aca9145ec2
[ "MIT" ]
8
2020-09-18T06:45:35.000Z
2021-03-27T19:53:15.000Z
defmodule ServerWeb.MPCController do use ServerWeb, :controller require Poison require ConCache @doc """ (re-)fill rpool to facilitate signature completion with a single message. Input: client_dh_public_keys (list of client DH public keys) Output: server_dh_public keys (list of server DH public ke...
101.037037
5,730
0.878024
7a5e9f47234be0c093104f1f1d1b0dc25f73400f
2,611
exs
Elixir
test/sundog/datadog/uri_test.exs
wisq/sundog
78ec18a07ad2a21bcb0ff9f069679497096ce916
[ "Apache-2.0" ]
null
null
null
test/sundog/datadog/uri_test.exs
wisq/sundog
78ec18a07ad2a21bcb0ff9f069679497096ce916
[ "Apache-2.0" ]
null
null
null
test/sundog/datadog/uri_test.exs
wisq/sundog
78ec18a07ad2a21bcb0ff9f069679497096ce916
[ "Apache-2.0" ]
null
null
null
defmodule Sundog.Datadog.UriTest do use ExUnit.Case alias Sundog.Datadog.URI, as: DDURI import Mock def random_string(count \\ 20) do upper = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" lower = String.downcase(upper) numbers = "0123456789" characters = upper <> lower <> numbers |> String.to_charlist (1.....
30.360465
85
0.666794
7a5eb0a97cddac6b726e6481d6817dfe8f4121d5
9,728
exs
Elixir
test/add_test.exs
evanob/sorted_set_nif
1b261b532106b9461d3bab1c262ecea9d2d0b3de
[ "MIT" ]
null
null
null
test/add_test.exs
evanob/sorted_set_nif
1b261b532106b9461d3bab1c262ecea9d2d0b3de
[ "MIT" ]
null
null
null
test/add_test.exs
evanob/sorted_set_nif
1b261b532106b9461d3bab1c262ecea9d2d0b3de
[ "MIT" ]
null
null
null
defmodule Discord.SortedSet.Add.Test do use ExUnit.Case use ExUnitProperties alias Discord.SortedSet alias Discord.SortedSet.Test.Support.Generator describe "set behavior" do test "single item" do assert set = SortedSet.new() assert ^set = SortedSet.add(set, 5) assert SortedSet.size(se...
30.024691
98
0.568873
7a5eccbfd0233f9f8eb8e6db62f69c8230a39d61
1,704
ex
Elixir
lib/liblink/socket/sendmsg/fsm.ex
Xerpa/liblink
7b983431c5b391bb8cf182edd9ca4937601eea35
[ "Apache-2.0" ]
3
2018-10-26T12:55:15.000Z
2019-05-03T22:41:34.000Z
lib/liblink/socket/sendmsg/fsm.ex
Xerpa/liblink
7b983431c5b391bb8cf182edd9ca4937601eea35
[ "Apache-2.0" ]
4
2018-08-26T14:43:57.000Z
2020-09-23T21:14:56.000Z
lib/liblink/socket/sendmsg/fsm.ex
Xerpa/liblink
7b983431c5b391bb8cf182edd9ca4937601eea35
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 (c) Xerpa # # 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, so...
26.625
74
0.663732
7a5eebd439e8e0bbe35ce545677a00e4e61b9c23
119
ex
Elixir
testData/org/elixir_lang/parser_definition/no_parentheses_many_arguments_call_parsing_test_case/PositionalCharListHeredoc.ex
keyno63/intellij-elixir
4033e319992c53ddd42a683ee7123a97b5e34f02
[ "Apache-2.0" ]
1,668
2015-01-03T05:54:27.000Z
2022-03-25T08:01:20.000Z
testData/org/elixir_lang/parser_definition/no_parentheses_many_arguments_call_parsing_test_case/PositionalCharListHeredoc.ex
keyno63/intellij-elixir
4033e319992c53ddd42a683ee7123a97b5e34f02
[ "Apache-2.0" ]
2,018
2015-01-01T22:43:39.000Z
2022-03-31T20:13:08.000Z
testData/org/elixir_lang/parser_definition/no_parentheses_many_arguments_call_parsing_test_case/PositionalCharListHeredoc.ex
keyno63/intellij-elixir
4033e319992c53ddd42a683ee7123a97b5e34f02
[ "Apache-2.0" ]
145
2015-01-15T11:37:16.000Z
2021-12-22T05:51:02.000Z
identifier ''' charList heredoc ''', first_keyword_key: first_keyword_value
23.8
49
0.512605
7a5eedec299c4412070f4d9c4de1eecbaa27f351
3,840
ex
Elixir
test/support/test_adapter.ex
annatel/antl_utils_ecto
494af10a3331c46809c7295bfc674fe42ba5c064
[ "MIT" ]
3
2020-10-30T13:57:58.000Z
2022-03-03T15:21:53.000Z
test/support/test_adapter.ex
annatel/antl_utils_ecto
494af10a3331c46809c7295bfc674fe42ba5c064
[ "MIT" ]
1
2020-12-30T11:36:33.000Z
2020-12-30T11:36:33.000Z
test/support/test_adapter.ex
annatel/antl_utils_ecto
494af10a3331c46809c7295bfc674fe42ba5c064
[ "MIT" ]
null
null
null
defmodule Ecto.TestAdapter do @behaviour Ecto.Adapter @behaviour Ecto.Adapter.Queryable @behaviour Ecto.Adapter.Schema @behaviour Ecto.Adapter.Transaction defmacro __before_compile__(_opts), do: :ok def ensure_all_started(_, _) do {:ok, []} end def init(opts) do :ecto = opts[:otp_app] "us...
26.482759
95
0.632292
7a5f0206d3ec8fb2fe22a07cca64445d2471a054
2,215
exs
Elixir
test/enum_a_test.exs
marick/flow_assertions
50936d03c7e0d482f13f94c96438627d344592c0
[ "Unlicense" ]
8
2020-09-04T19:38:41.000Z
2021-06-05T18:59:49.000Z
test/enum_a_test.exs
marick/flow_assertions
50936d03c7e0d482f13f94c96438627d344592c0
[ "Unlicense" ]
null
null
null
test/enum_a_test.exs
marick/flow_assertions
50936d03c7e0d482f13f94c96438627d344592c0
[ "Unlicense" ]
null
null
null
defmodule FlowAssertions.EnumATest do use FlowAssertions.Case @moduledoc """ Assertions for values that satisfy the `Enum` protocol. """ describe "assert_singleton" do setup do [a: assertion_runners_for(&assert_singleton/1) |> left_is_actual] end test "typical use: lists", %{a: a} do ...
27.6875
74
0.586005
7a5f051cd908df79c59cf26afc67a240e07a0b4d
7,648
exs
Elixir
29-vector.exs
yortz/30-days-of-elixir
b7126eeee16b726df0b00234fd4aff03a5c3e1a9
[ "MIT" ]
null
null
null
29-vector.exs
yortz/30-days-of-elixir
b7126eeee16b726df0b00234fd4aff03a5c3e1a9
[ "MIT" ]
null
null
null
29-vector.exs
yortz/30-days-of-elixir
b7126eeee16b726df0b00234fd4aff03a5c3e1a9
[ "MIT" ]
null
null
null
defmodule Vector do @moduledoc """ This is my (woefully inadequate) attempt at building a Vector with constant-time lookup using a Hash Array Mapped Trie (HAMT). While it is blazing fast for getting the value at an index, it's way slower (than just using a list) in the case of adding values and iterating. ...
25.240924
86
0.57806
7a5f11bc118e42dbcbce90364db9ad54901b9eac
2,138
ex
Elixir
lib/conceal.ex
thiamsantos/conceal
3d636d3f043314afd6565c2f67ad2781063c87e0
[ "Apache-2.0" ]
2
2020-03-02T00:48:45.000Z
2020-03-05T17:58:19.000Z
lib/conceal.ex
thiamsantos/conceal
3d636d3f043314afd6565c2f67ad2781063c87e0
[ "Apache-2.0" ]
null
null
null
lib/conceal.ex
thiamsantos/conceal
3d636d3f043314afd6565c2f67ad2781063c87e0
[ "Apache-2.0" ]
null
null
null
defmodule Conceal do @moduledoc """ Provides an easy way to encrypt and decrypt a string using the AES-CBC-256 algorithm. It runs roughly this functions in order to return a encrypt base64-encoded string: `base64(iv + aes_cbc256(sha256(key), iv, data))` ## Usage ```elixir key = "my_secret_key" data =...
25.759036
101
0.618803
7a5f20ba43b5e073a47992d80ac192c15973d00c
491
ex
Elixir
lib/game/npc/events/room_entered.ex
jgsmith/ex_venture
546adaa8fe80d45a72fde6de8d8d6906902c12d4
[ "MIT" ]
2
2019-05-14T11:36:44.000Z
2020-07-01T08:54:04.000Z
lib/game/npc/events/room_entered.ex
nickwalton/ex_venture
d8ff1b0181db03f9ddcb7610ae7ab533feecbfbb
[ "MIT" ]
null
null
null
lib/game/npc/events/room_entered.ex
nickwalton/ex_venture
d8ff1b0181db03f9ddcb7610ae7ab533feecbfbb
[ "MIT" ]
1
2021-01-29T14:12:40.000Z
2021-01-29T14:12:40.000Z
defmodule Game.NPC.Events.RoomEntered do @moduledoc """ Processes the `room/entered` event """ alias Data.Events.RoomEntered alias Game.NPC.Actions alias Game.NPC.Events def process(state, sent_event) do state.events |> Events.filter(RoomEntered) |> Enum.each(&process_event(&1, sent_event)) ...
20.458333
54
0.688391
7a5f31832236dbcbff9063345326242bd907ca67
1,898
ex
Elixir
lib/instream/series/hydrator.ex
coder-from-hell/instream
f062e924b74a403e0f41b5374d9ed0e00ae59507
[ "Apache-2.0" ]
null
null
null
lib/instream/series/hydrator.ex
coder-from-hell/instream
f062e924b74a403e0f41b5374d9ed0e00ae59507
[ "Apache-2.0" ]
null
null
null
lib/instream/series/hydrator.ex
coder-from-hell/instream
f062e924b74a403e0f41b5374d9ed0e00ae59507
[ "Apache-2.0" ]
null
null
null
defmodule Instream.Series.Hydrator do @moduledoc false @doc """ Converts a plain map into a series definition struct. Keys not defined in the series are silently dropped. """ @spec from_map(module, map) :: struct def from_map(series, data) do data_fields = Map.take(data, series.__meta__(:fields)) ...
30.126984
99
0.66491
7a5f38c2b71ce154afc39e83a47c656a02fba83a
129
exs
Elixir
apps/hello_elixir/test/hello_elixir_test.exs
ktec/hello_beam
12862ff5db824a8b28aff91437a959b50fa60d0d
[ "MIT" ]
63
2016-09-26T07:47:40.000Z
2022-02-12T14:38:34.000Z
apps/hello_elixir/test/hello_elixir_test.exs
ktec/hello_beam
12862ff5db824a8b28aff91437a959b50fa60d0d
[ "MIT" ]
2
2019-04-19T11:50:19.000Z
2019-09-15T19:20:40.000Z
apps/hello_elixir/test/hello_elixir_test.exs
ktec/hello_beam
12862ff5db824a8b28aff91437a959b50fa60d0d
[ "MIT" ]
10
2016-09-28T20:14:23.000Z
2021-07-20T22:47:46.000Z
defmodule HelloElixirTest do use ExUnit.Case test "hello" do assert HelloElixir.hello == "Hello from Elixir!" end end
16.125
52
0.72093
7a5f3dd8d2263508a0322d8fbec4943345809c27
1,131
exs
Elixir
mix.exs
tompesman/particle-elixir
90226405b868f8e8ff308c84c34e88ea68a8570a
[ "MIT" ]
null
null
null
mix.exs
tompesman/particle-elixir
90226405b868f8e8ff308c84c34e88ea68a8570a
[ "MIT" ]
null
null
null
mix.exs
tompesman/particle-elixir
90226405b868f8e8ff308c84c34e88ea68a8570a
[ "MIT" ]
null
null
null
defmodule Particle.Mixfile do use Mix.Project def project do [app: :particle, version: "0.1.6", elixir: "~> 1.3", name: "Particle Api Client", source_url: "https://github.com/jeffutter/particle-elixir.ex", build_embedded: Mix.env == :prod, start_permanent: Mix.env == :prod, d...
21.339623
75
0.536693
7a5f47d3908e85f5c25681a0bdbc1fe4bfaadc52
1,173
ex
Elixir
lib/cog/model.ex
matusf/cog
71708301c7dc570fb0d3498a50f47a70ef957788
[ "Apache-2.0" ]
1,003
2016-02-23T17:21:12.000Z
2022-02-20T14:39:35.000Z
lib/cog/model.ex
matusf/cog
71708301c7dc570fb0d3498a50f47a70ef957788
[ "Apache-2.0" ]
906
2016-02-22T22:54:19.000Z
2022-03-11T15:19:43.000Z
lib/cog/model.ex
matusf/cog
71708301c7dc570fb0d3498a50f47a70ef957788
[ "Apache-2.0" ]
95
2016-02-23T13:42:31.000Z
2021-11-30T14:39:55.000Z
defmodule Cog.Model do @moduledoc """ Base module for all Ecto models in Cog. Example: defmodule MyModel do use Cog.Model # awesome stuff... end """ # Same as the bottom __using__ macro head except # disables primary keys defmacro __using__(:no_primary_key) do quote d...
24.4375
70
0.652174
7a5f5ddd2b3bfce488df60a76b957a5a925072f7
4,176
exs
Elixir
test/reanix_web/controllers/post_controller_test.exs
RubyFireStudio/phoenix-api-scaffold
231c11fe6008a47d51e24b8e26fb6f5dc7a24ca6
[ "MIT" ]
null
null
null
test/reanix_web/controllers/post_controller_test.exs
RubyFireStudio/phoenix-api-scaffold
231c11fe6008a47d51e24b8e26fb6f5dc7a24ca6
[ "MIT" ]
null
null
null
test/reanix_web/controllers/post_controller_test.exs
RubyFireStudio/phoenix-api-scaffold
231c11fe6008a47d51e24b8e26fb6f5dc7a24ca6
[ "MIT" ]
null
null
null
defmodule ReanixWeb.PostControllerTest do use ReanixWeb.ConnCase alias Reanix.Blog.Post @create_attrs %{announcement: "some announcement", body: "some body", image: "some image", publication_date: ~N[2010-04-17 14:00:00.000000], slug: "some slug", status: "some status", title: "some title"} @update_attrs %{an...
39.396226
253
0.635776
7a5f6e89f8ed3f4399029c3de66ff06e51a78225
715
ex
Elixir
lib/demo_web/live/example_live/stateful_send_self_component_live_view.ex
pthompson/live_component_examples
e2e1be52a7ff1065fd5ef749c375d729d5d08c21
[ "MIT" ]
21
2019-12-15T19:14:56.000Z
2022-02-07T16:04:30.000Z
lib/demo_web/live/example_live/stateful_send_self_component_live_view.ex
pthompson/live_component_examples
e2e1be52a7ff1065fd5ef749c375d729d5d08c21
[ "MIT" ]
4
2020-02-06T01:05:28.000Z
2020-09-07T19:08:45.000Z
lib/demo_web/live/example_live/stateful_send_self_component_live_view.ex
pthompson/live_component_examples
e2e1be52a7ff1065fd5ef749c375d729d5d08c21
[ "MIT" ]
6
2019-12-15T19:15:02.000Z
2021-09-16T20:35:53.000Z
defmodule DemoWeb.StatefulSendSelfComponentLiveView do use DemoWeb, :live_view def render(assigns) do ~L""" <div> <%= live_component( @socket, DemoWeb.StatefulSendSelfComponent, id: "stateful-send-self-component", title: @title ) %> </div> """...
19.861111
85
0.602797
7a5f807370e4ae62a3a56a014a05d5d14445c658
141
exs
Elixir
test/practice_test.exs
vinicioslc/elixir-practice
db442e36f306780f23e31ebd34c291cec6ad6c26
[ "MIT" ]
null
null
null
test/practice_test.exs
vinicioslc/elixir-practice
db442e36f306780f23e31ebd34c291cec6ad6c26
[ "MIT" ]
null
null
null
test/practice_test.exs
vinicioslc/elixir-practice
db442e36f306780f23e31ebd34c291cec6ad6c26
[ "MIT" ]
null
null
null
defmodule PracticeTest do use ExUnit.Case doctest Practice test "greets the world" do assert Practice.hello() == :world end end
15.666667
37
0.716312