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
ff40f832b23489132d1e18d6615cd3196ba9d2a7
209
exs
Elixir
test/wiring_editor_web/controllers/page_controller_test.exs
apre/wiring_editor
54337f97c95594258038a34949ebca7b423cbf6e
[ "WTFPL", "Unlicense" ]
null
null
null
test/wiring_editor_web/controllers/page_controller_test.exs
apre/wiring_editor
54337f97c95594258038a34949ebca7b423cbf6e
[ "WTFPL", "Unlicense" ]
null
null
null
test/wiring_editor_web/controllers/page_controller_test.exs
apre/wiring_editor
54337f97c95594258038a34949ebca7b423cbf6e
[ "WTFPL", "Unlicense" ]
null
null
null
defmodule WiringEditorWeb.PageControllerTest do use WiringEditorWeb.ConnCase test "GET /", %{conn: conn} do conn = get conn, "/" assert html_response(conn, 200) =~ "Welcome to Phoenix!" end end
23.222222
60
0.698565
ff411090b259c45da0f344a03cfc4e43ce0e2ae2
1,402
ex
Elixir
lib/google_api/you_tube/v3/model/activity_content_details_recommendation.ex
jesteracer/ytb
67e3cab899e4f69e586383f7be2c3855c6beea49
[ "Apache-2.0" ]
null
null
null
lib/google_api/you_tube/v3/model/activity_content_details_recommendation.ex
jesteracer/ytb
67e3cab899e4f69e586383f7be2c3855c6beea49
[ "Apache-2.0" ]
null
null
null
lib/google_api/you_tube/v3/model/activity_content_details_recommendation.ex
jesteracer/ytb
67e3cab899e4f69e586383f7be2c3855c6beea49
[ "Apache-2.0" ]
null
null
null
# 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...
33.380952
95
0.75535
ff411832e71e4cc8c676ecf8cd41a803fbf90a44
117
exs
Elixir
config/config.exs
scottdavis/recaptcha
1b46e1a346c100e327cbc028fc6b8e7e8942e974
[ "MIT" ]
null
null
null
config/config.exs
scottdavis/recaptcha
1b46e1a346c100e327cbc028fc6b8e7e8942e974
[ "MIT" ]
null
null
null
config/config.exs
scottdavis/recaptcha
1b46e1a346c100e327cbc028fc6b8e7e8942e974
[ "MIT" ]
null
null
null
use Mix.Config config :recaptcha, verify_url: "https://www.google.com/recaptcha/api/siteverify", timeout: 5000,
19.5
64
0.74359
ff413888e07b53eb14056e025e53a1b331b6d2a3
881
exs
Elixir
test/orders/order_test.exs
Sup3r-Us3r/exlivery
7d8c5c0011f53cdca1fc8345e1b267355995ac35
[ "MIT" ]
null
null
null
test/orders/order_test.exs
Sup3r-Us3r/exlivery
7d8c5c0011f53cdca1fc8345e1b267355995ac35
[ "MIT" ]
null
null
null
test/orders/order_test.exs
Sup3r-Us3r/exlivery
7d8c5c0011f53cdca1fc8345e1b267355995ac35
[ "MIT" ]
null
null
null
defmodule ExliveryTest.Orders.OrderTest do use ExUnit.Case import ExliveryTest.Support.Factory alias Exlivery.Orders.Order describe "build/2" do test "when all params are valid, returns an order" do user = build(:user) items = [ build(:item), build(:item, descriptio...
20.97619
68
0.614075
ff41595cf616c77d138eedeaa208ca8b697c8114
242
ex
Elixir
lib/calctorio/recipe.ex
jdfrens/calctorio
40418e3f7e562c0ade2a672434589727949e0439
[ "MIT" ]
null
null
null
lib/calctorio/recipe.ex
jdfrens/calctorio
40418e3f7e562c0ade2a672434589727949e0439
[ "MIT" ]
null
null
null
lib/calctorio/recipe.ex
jdfrens/calctorio
40418e3f7e562c0ade2a672434589727949e0439
[ "MIT" ]
null
null
null
defmodule Calctorio.Recipe do @moduledoc """ Represents a recipe. """ defstruct inputs: [], outputs: [], time: 0.0 @type t :: %__MODULE__{ inputs: keyword, outputs: keyword, time: float } end
17.285714
46
0.553719
ff418aa418a022f204d6f5829aaac912d3b0bdd7
2,659
ex
Elixir
clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/revision_condition.ex
linjunpop/elixir-google-api
444cb2b2fb02726894535461a474beddd8b86db4
[ "Apache-2.0" ]
null
null
null
clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/revision_condition.ex
linjunpop/elixir-google-api
444cb2b2fb02726894535461a474beddd8b86db4
[ "Apache-2.0" ]
null
null
null
clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/revision_condition.ex
linjunpop/elixir-google-api
444cb2b2fb02726894535461a474beddd8b86db4
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "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...
44.316667
550
0.737495
ff418ca449eac99f9cd3648cf38c729c8db3d244
1,319
exs
Elixir
mix.exs
elixir-cqrs/cqrs_tools_absinthe
c80285f252eba8273384fdd1c718cf50b2d36671
[ "MIT" ]
3
2022-03-06T03:07:49.000Z
2022-03-06T03:16:08.000Z
mix.exs
blunt-elixir/blunt_absinthe
c80285f252eba8273384fdd1c718cf50b2d36671
[ "MIT" ]
null
null
null
mix.exs
blunt-elixir/blunt_absinthe
c80285f252eba8273384fdd1c718cf50b2d36671
[ "MIT" ]
null
null
null
defmodule BluntAbsinthe.MixProject do use Mix.Project @version "0.1.0" def project do [ version: @version, app: :blunt_absinthe, version: "0.1.0", elixir: "~> 1.12", start_permanent: Mix.env() == :prod, deps: deps(), source_url: "https://github.com/elixir-blunt/blun...
25.862745
86
0.56558
ff41b1a0cd0f15b9121bd5cf6c215b5e5d26f5b8
219
ex
Elixir
lib/cbstats_importer/util.ex
micahyoung/cbstats-importer
a7176b3a25d8a4e919ddda32475c9ecf65e9892a
[ "Unlicense", "MIT" ]
1
2016-01-06T18:19:35.000Z
2016-01-06T18:19:35.000Z
lib/cbstats_importer/util.ex
micahyoung/cbstats-importer
a7176b3a25d8a4e919ddda32475c9ecf65e9892a
[ "Unlicense", "MIT" ]
null
null
null
lib/cbstats_importer/util.ex
micahyoung/cbstats-importer
a7176b3a25d8a4e919ddda32475c9ecf65e9892a
[ "Unlicense", "MIT" ]
null
null
null
defmodule CbstatsImporter.Util do def now_microseconds do {megas, secs, millis} = :os.timestamp() ((megas * 1_000_000) + secs) * 1_000_000 + millis end def now_datetime do Ecto.DateTime.utc end end
19.909091
53
0.689498
ff41b82d58f3729feb7aec798d633c6ee69a71c2
10,389
ex
Elixir
lib/projections/ecto.ex
MrYawe/commanded-ecto-projections
55f5103405e415578fe6b59cc72632f0e50ba51b
[ "MIT" ]
null
null
null
lib/projections/ecto.ex
MrYawe/commanded-ecto-projections
55f5103405e415578fe6b59cc72632f0e50ba51b
[ "MIT" ]
null
null
null
lib/projections/ecto.ex
MrYawe/commanded-ecto-projections
55f5103405e415578fe6b59cc72632f0e50ba51b
[ "MIT" ]
1
2022-02-19T23:24:39.000Z
2022-02-19T23:24:39.000Z
defmodule Commanded.Projections.Ecto do @moduledoc """ Read model projections for Commanded using Ecto. ## Example usage defmodule Projector do use Commanded.Projections.Ecto, application: MyApp.Application, name: "my-projection", repo: MyApp.Repo, schema_pr...
31.01194
112
0.635191
ff41b96fb00c8a819a3fc7de42937db658d4fad1
1,060
ex
Elixir
lib/callbackex/callback.ex
secretworry/callbackex
7cd63d45068e0612bd3b76e759332392dcf54676
[ "Apache-2.0" ]
4
2016-12-03T07:14:52.000Z
2019-08-17T23:09:28.000Z
lib/callbackex/callback.ex
secretworry/callbackex
7cd63d45068e0612bd3b76e759332392dcf54676
[ "Apache-2.0" ]
null
null
null
lib/callbackex/callback.ex
secretworry/callbackex
7cd63d45068e0612bd3b76e759332392dcf54676
[ "Apache-2.0" ]
null
null
null
defmodule Callbackex.Callback do @moduledoc """ The Callback specification There are two kind of callbacks: function callbacks and module callbacks ## Function callbacks A function callback is any function that receives a value and a set of options and return a new value. Its type signature must be `(a...
24.651163
104
0.690566
ff41fd5be58ed1ee74644e1d4431b2f3b711336a
1,320
ex
Elixir
lib/surface_bootstrap/form/url_input.ex
dclausen/surface_bootstrap
f282b7c653160fb4b4ca687cf8fb13e68937884f
[ "MIT" ]
17
2021-02-18T20:10:52.000Z
2021-12-30T14:41:00.000Z
lib/surface_bootstrap/form/url_input.ex
dclausen/surface_bootstrap
f282b7c653160fb4b4ca687cf8fb13e68937884f
[ "MIT" ]
9
2021-03-21T20:15:48.000Z
2021-06-23T07:45:20.000Z
lib/surface_bootstrap/form/url_input.ex
dclausen/surface_bootstrap
f282b7c653160fb4b4ca687cf8fb13e68937884f
[ "MIT" ]
10
2021-03-21T20:10:37.000Z
2021-12-28T00:06:06.000Z
defmodule SurfaceBootstrap.Form.UrlInput do @moduledoc """ The url input element as defined here: - https://hexdocs.pm/phoenix_html/Phoenix.HTML.Form.html#url_input/3 - https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/url """ use Surface.Component use SurfaceBootstrap.Form.TextInputBase ...
33.846154
95
0.669697
ff421c0e23fb3d3ddaaed7c6c41e5c812abd1b77
2,149
ex
Elixir
web/controllers/page_controller.ex
iboard/px.iboard.cc
f7df724931b977e47e60ab8cab822f69df7e77f8
[ "MIT" ]
2
2016-07-28T11:42:09.000Z
2016-09-12T13:56:53.000Z
web/controllers/page_controller.ex
iboard/px.iboard.cc
f7df724931b977e47e60ab8cab822f69df7e77f8
[ "MIT" ]
null
null
null
web/controllers/page_controller.ex
iboard/px.iboard.cc
f7df724931b977e47e60ab8cab822f69df7e77f8
[ "MIT" ]
null
null
null
defmodule Iboard.PageController do use Iboard.Web, :controller alias Iboard.Page plug :scrub_params, "page" when action in [:create, :update] def index(conn, params) do pages = case params["order"] do "asc" -> Repo.all(from p in Page, order_by: [asc: p.updated_at]) _ -> Repo.all(from p in Pag...
27.551282
70
0.609121
ff4230aa02f22480c1bb77f97266d5c959985ae0
9,195
ex
Elixir
lib/mix/tasks/appsignal.diagnose.ex
lukerandall/appsignal-elixir
eac4a7e44354bfa2de69ea8a9b0e27157db2e4c8
[ "MIT" ]
null
null
null
lib/mix/tasks/appsignal.diagnose.ex
lukerandall/appsignal-elixir
eac4a7e44354bfa2de69ea8a9b0e27157db2e4c8
[ "MIT" ]
null
null
null
lib/mix/tasks/appsignal.diagnose.ex
lukerandall/appsignal-elixir
eac4a7e44354bfa2de69ea8a9b0e27157db2e4c8
[ "MIT" ]
null
null
null
defmodule Mix.Tasks.Appsignal.Diagnose do use Mix.Task alias Appsignal.Config alias Appsignal.Diagnose @system Application.get_env(:appsignal, :appsignal_system, Appsignal.System) @report Application.get_env(:appsignal, :appsignal_diagnose_report, Appsignal.Diagnose.Report) @shortdoc "Starts and tests App...
30.65
96
0.638282
ff425cb25f786b2d66ae40decad558930c523d48
10,216
exs
Elixir
lib/elixir/test/elixir/code_normalizer/formatted_ast_test.exs
SkyllaTech/elixir
2642226f35e23fd68e4b246e0483057716dac4ca
[ "Apache-2.0" ]
null
null
null
lib/elixir/test/elixir/code_normalizer/formatted_ast_test.exs
SkyllaTech/elixir
2642226f35e23fd68e4b246e0483057716dac4ca
[ "Apache-2.0" ]
1
2021-05-22T13:12:51.000Z
2021-05-22T13:12:51.000Z
lib/elixir/test/elixir/code_normalizer/formatted_ast_test.exs
SkyllaTech/elixir
2642226f35e23fd68e4b246e0483057716dac4ca
[ "Apache-2.0" ]
1
2021-11-08T10:21:27.000Z
2021-11-08T10:21:27.000Z
Code.require_file("../test_helper.exs", __DIR__) defmodule Code.Normalizer.FormatterASTTest do use ExUnit.Case, async: true defmacro assert_same(good, opts \\ []) do quote bind_quoted: [good: good, opts: opts], location: :keep do assert IO.iodata_to_binary(Code.format_string!(good, opts)) == ...
18.04947
83
0.494323
ff42e09e0b379d83a099cb2832dcd14a410d8101
1,113
exs
Elixir
config/config.exs
ddombrow/preston
13d856106a15b07ae909f4ae3d346d050dd2ff72
[ "MIT" ]
null
null
null
config/config.exs
ddombrow/preston
13d856106a15b07ae909f4ae3d346d050dd2ff72
[ "MIT" ]
null
null
null
config/config.exs
ddombrow/preston
13d856106a15b07ae909f4ae3d346d050dd2ff72
[ "MIT" ]
null
null
null
# This file is responsible for configuring your application # and its dependencies with the aid of the Mix.Config module. use Mix.Config # This configuration is loaded before any dependency and is restricted # to this project. If another project depends on this project, this # file won't be loaded nor affect the paren...
35.903226
73
0.750225
ff42ff1fac000cc008589c8988c81902c5b292ab
5,923
exs
Elixir
test/blog/comp/comp_test.exs
ench0/blog
04f7df2357b13dddee9d82cd1c35bbd0ce9618a9
[ "MIT" ]
2
2017-06-08T23:28:13.000Z
2017-06-08T23:28:16.000Z
test/blog/comp/comp_test.exs
ench0/blog
04f7df2357b13dddee9d82cd1c35bbd0ce9618a9
[ "MIT" ]
null
null
null
test/blog/comp/comp_test.exs
ench0/blog
04f7df2357b13dddee9d82cd1c35bbd0ce9618a9
[ "MIT" ]
null
null
null
defmodule Blog.CompTest do use Blog.DataCase alias Blog.Comp describe "forms" do alias Blog.Comp.Form @valid_attrs %{active: true, info: "some info", title: "some title"} @update_attrs %{active: false, info: "some updated info", title: "some updated title"} @invalid_attrs %{active: nil, info: n...
30.530928
90
0.637852
ff433400a3f761017e5c4ebd1d126bc74759dccc
3,252
ex
Elixir
apps/ewallet_config/lib/ewallet_config/validator.ex
jimpeebles/ewallet
ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405
[ "Apache-2.0" ]
null
null
null
apps/ewallet_config/lib/ewallet_config/validator.ex
jimpeebles/ewallet
ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405
[ "Apache-2.0" ]
null
null
null
apps/ewallet_config/lib/ewallet_config/validator.ex
jimpeebles/ewallet
ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 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 writi...
27.327731
91
0.652214
ff433579680453384675024d3d1c669f3d27c784
8,053
exs
Elixir
machine_translation/MorpHIN/Learned/Resources/Set4/TrainingInstances/62.exs
AdityaPrasadMishra/NLP--Project-Group-16
fb62cc6a1db4a494058171f11c14a2be3933a9a1
[ "MIT" ]
null
null
null
machine_translation/MorpHIN/Learned/Resources/Set4/TrainingInstances/62.exs
AdityaPrasadMishra/NLP--Project-Group-16
fb62cc6a1db4a494058171f11c14a2be3933a9a1
[ "MIT" ]
null
null
null
machine_translation/MorpHIN/Learned/Resources/Set4/TrainingInstances/62.exs
AdityaPrasadMishra/NLP--Project-Group-16
fb62cc6a1db4a494058171f11c14a2be3933a9a1
[ "MIT" ]
null
null
null
**EXAMPLE FILE** pnoun pnoun pnoun cm cm; pnoun nst particle adjective cm; cm pnoun noun cm cm; cm cardinal cardinal noun cm; pn noun noun verb cm; adjective noun adjective particle cm; demonstrative noun adjective noun cm; cardinal cardinal particle quantifier cm; pnoun noun noun cm cm; cm noun quantifier a...
28.863799
50
0.75922
ff433b8db7dcef7fa4f28436cfb59cb41ef91296
198
ex
Elixir
testData/org/elixir_lang/parser_definition/bracket_operation_parsing_test_case/InOperator.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/bracket_operation_parsing_test_case/InOperator.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/bracket_operation_parsing_test_case/InOperator.ex
keyno63/intellij-elixir
4033e319992c53ddd42a683ee7123a97b5e34f02
[ "Apache-2.0" ]
145
2015-01-15T11:37:16.000Z
2021-12-22T05:51:02.000Z
Module.in[key: value] Module.in [key: value] Module.in[()] Module.in [()] Module.in[matched_expression] Module.in [matched_expression] Module.in[matched_expression,] Module.in [matched_expression,]
22
31
0.767677
ff433da3741772be2254b63d845aa80a4bbe73e0
1,602
ex
Elixir
clients/home_graph/lib/google_api/home_graph/v1/model/report_state_and_notification_response.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/home_graph/lib/google_api/home_graph/v1/model/report_state_and_notification_response.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/home_graph/lib/google_api/home_graph/v1/model/report_state_and_notification_response.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...
32.693878
116
0.759051
ff434256ddb38b70120a8e2a9a398b65ce348622
2,951
ex
Elixir
lib/espec/example.ex
edwinthinks/espec
4f97ef75e482d61e8a27d7f98a20f53220a08532
[ "Apache-2.0" ]
null
null
null
lib/espec/example.ex
edwinthinks/espec
4f97ef75e482d61e8a27d7f98a20f53220a08532
[ "Apache-2.0" ]
null
null
null
lib/espec/example.ex
edwinthinks/espec
4f97ef75e482d61e8a27d7f98a20f53220a08532
[ "Apache-2.0" ]
null
null
null
defmodule ESpec.Example do @moduledoc """ Defines macros 'example' and 'it'. These macros defines function with random name which will be called when example runs. Example structs %ESpec.Example are accumulated in @examples attribute """ @doc """ Example struct. description - the description of example...
29.217822
88
0.658082
ff437c9c54cd4e6210d94ee3362496c93cc04e05
39,135
exs
Elixir
lib/elixir/test/elixir/string_test.exs
tnascimento/elixir
9a4d10e702f33d2fa47718cde05375b506b4a3d6
[ "Apache-2.0" ]
null
null
null
lib/elixir/test/elixir/string_test.exs
tnascimento/elixir
9a4d10e702f33d2fa47718cde05375b506b4a3d6
[ "Apache-2.0" ]
null
null
null
lib/elixir/test/elixir/string_test.exs
tnascimento/elixir
9a4d10e702f33d2fa47718cde05375b506b4a3d6
[ "Apache-2.0" ]
null
null
null
Code.require_file("test_helper.exs", __DIR__) defmodule StringTest do use ExUnit.Case, async: true doctest String test "next_codepoint/1" do assert String.next_codepoint("ésoj") == {"é", "soj"} assert String.next_codepoint(<<255>>) == {<<255>>, ""} assert String.next_codepoint("") == nil end #...
40.179671
98
0.567523
ff4386a1d8a3e64304537f852af101e4e4dc42fa
3,699
ex
Elixir
lib/mongo/server_description.ex
rafamedina/mongodb
65bd68adbc2753c38d927ad0ba804fe8e66d50d7
[ "Apache-2.0" ]
null
null
null
lib/mongo/server_description.ex
rafamedina/mongodb
65bd68adbc2753c38d927ad0ba804fe8e66d50d7
[ "Apache-2.0" ]
null
null
null
lib/mongo/server_description.ex
rafamedina/mongodb
65bd68adbc2753c38d927ad0ba804fe8e66d50d7
[ "Apache-2.0" ]
null
null
null
defmodule Mongo.ServerDescription do @moduledoc false # see https://github.com/mongodb/specifications/blob/master/source/server-discovery-and-monitoring/server-discovery-and-monitoring.rst#serverdescription @type type :: :standalone | :mongos | :possible_primary | :rs_primary | :rs_secondary | :r...
35.567308
165
0.650176
ff43911b93dc842a437e725014f833b9c86c1a03
1,512
exs
Elixir
test/users/events_test.exs
jgchristopher/tentacat
47cec7d3d4330a8d42067d6ab38b362c92997467
[ "MIT" ]
null
null
null
test/users/events_test.exs
jgchristopher/tentacat
47cec7d3d4330a8d42067d6ab38b362c92997467
[ "MIT" ]
null
null
null
test/users/events_test.exs
jgchristopher/tentacat
47cec7d3d4330a8d42067d6ab38b362c92997467
[ "MIT" ]
null
null
null
defmodule Tentacat.Users.EventsTest do use ExUnit.Case, async: false use ExVCR.Mock, adapter: ExVCR.Adapter.Hackney import Tentacat.Users.Events doctest Tentacat.Users.Events @client Tentacat.Client.new() setup_all do HTTPoison.start() end test "list/2" do use_cassette "users/events#list" do...
25.2
84
0.626323
ff43c74bb752006cc297bb5dfb3404ac9ae03877
187
exs
Elixir
test/controllers/page_controller_test.exs
xelcer/phoenix_demo
84dc516441dd715db7e24b1384c2fea3adffe0f7
[ "MIT" ]
null
null
null
test/controllers/page_controller_test.exs
xelcer/phoenix_demo
84dc516441dd715db7e24b1384c2fea3adffe0f7
[ "MIT" ]
null
null
null
test/controllers/page_controller_test.exs
xelcer/phoenix_demo
84dc516441dd715db7e24b1384c2fea3adffe0f7
[ "MIT" ]
null
null
null
defmodule Demo.PageControllerTest do use Demo.ConnCase test "GET /", %{conn: conn} do conn = get conn, "/" assert html_response(conn, 200) =~ "Welcome to Phoenix!" end end
20.777778
60
0.663102
ff43cbdf098a40aeabbd6bff294061e06a276362
290
ex
Elixir
widget_market_phoenix/lib/widget_market_phoenix/repo.ex
thegillis/from_rails_to_phoenix
fb230b787fd441e71e93dc8d82b3769eeaeddbf8
[ "MIT" ]
null
null
null
widget_market_phoenix/lib/widget_market_phoenix/repo.ex
thegillis/from_rails_to_phoenix
fb230b787fd441e71e93dc8d82b3769eeaeddbf8
[ "MIT" ]
null
null
null
widget_market_phoenix/lib/widget_market_phoenix/repo.ex
thegillis/from_rails_to_phoenix
fb230b787fd441e71e93dc8d82b3769eeaeddbf8
[ "MIT" ]
null
null
null
defmodule WidgetMarketPhoenix.Repo do use Ecto.Repo, otp_app: :widget_market_phoenix @doc """ Dynamically loads the repository url from the DATABASE_URL environment variable. """ def init(_, opts) do {:ok, Keyword.put(opts, :url, System.get_env("DATABASE_URL"))} end end
24.166667
66
0.724138
ff43d6b915c75a9d4fe447e28dae81242a6e1e45
5,560
ex
Elixir
lib/sanbase_web/graphql/plugs/request_halt_plug.ex
rmoorman/sanbase2
226784ab43a24219e7332c49156b198d09a6dd85
[ "MIT" ]
1
2022-01-30T19:51:39.000Z
2022-01-30T19:51:39.000Z
lib/sanbase_web/graphql/plugs/request_halt_plug.ex
rmoorman/sanbase2
226784ab43a24219e7332c49156b198d09a6dd85
[ "MIT" ]
null
null
null
lib/sanbase_web/graphql/plugs/request_halt_plug.ex
rmoorman/sanbase2
226784ab43a24219e7332c49156b198d09a6dd85
[ "MIT" ]
null
null
null
defmodule SanbaseWeb.Graphql.RequestHaltPlug do @moduledoc ~s""" Plug that halts requests if some conditions are met It performs the following checks: - Check if the request comes from SanSheets and if the user has access to it - Check if the rate limits are exceeded """ @behaviour Plug @compile {:...
27.661692
95
0.636871
ff43e6956e8e43cf0a9f70e39b5ec3f26a40fc98
2,068
exs
Elixir
harbor/test/ports/rumble/game/turn_test.exs
miapolis/port7
7df1223f83d055eeb6ce8f61f4af8b4f2cf33e74
[ "MIT" ]
null
null
null
harbor/test/ports/rumble/game/turn_test.exs
miapolis/port7
7df1223f83d055eeb6ce8f61f4af8b4f2cf33e74
[ "MIT" ]
null
null
null
harbor/test/ports/rumble/game/turn_test.exs
miapolis/port7
7df1223f83d055eeb6ce8f61f4af8b4f2cf33e74
[ "MIT" ]
null
null
null
defmodule PortsTest.Rumble.Game.Turn do use ExUnit.Case alias Ports.Rumble.Game # Creates a joined peer defp jp(id) do %{id: id, is_joined: true} end defp nil_state(peers) do %{milestone: %{current_turn: nil}, peers: peers} end defp do_next(state) do %{state | milestone: %{current_turn: ...
25.530864
70
0.63588
ff4438522d161701a826ae1140644d84e7b0c30b
1,880
ex
Elixir
lib/token.ex
laksamanakeris/ExFirebaseAuth
16a5de53abfad5b66a4bfe251be532defd6d2512
[ "MIT" ]
9
2021-01-08T17:11:19.000Z
2021-08-12T18:23:19.000Z
lib/token.ex
laksamanakeris/ExFirebaseAuth
16a5de53abfad5b66a4bfe251be532defd6d2512
[ "MIT" ]
35
2021-01-08T17:44:09.000Z
2022-03-24T04:11:24.000Z
lib/token.ex
laksamanakeris/ExFirebaseAuth
16a5de53abfad5b66a4bfe251be532defd6d2512
[ "MIT" ]
7
2021-04-19T14:19:09.000Z
2021-12-30T20:24:15.000Z
defmodule ExFirebaseAuth.Token do defp get_public_key(keyid) do case :ets.lookup(ExFirebaseAuth.KeyStore, keyid) do [{_keyid, key}] -> key [] -> nil end end @spec issuer :: String.t() @doc ~S""" Returns the configured issuer ## Examples iex> ExFirebaseAuth.Token...
28.923077
116
0.580851
ff4444c8cc63853a58d1de4b7271b96fe15e73d4
902
ex
Elixir
memorex/lib/memorex/eraser.ex
at7heb/liveview_elixirconf_2021
eee64f38ec8a7365e8b728d76cd795a5c23199a9
[ "MIT" ]
null
null
null
memorex/lib/memorex/eraser.ex
at7heb/liveview_elixirconf_2021
eee64f38ec8a7365e8b728d76cd795a5c23199a9
[ "MIT" ]
null
null
null
memorex/lib/memorex/eraser.ex
at7heb/liveview_elixirconf_2021
eee64f38ec8a7365e8b728d76cd795a5c23199a9
[ "MIT" ]
6
2021-10-07T14:50:48.000Z
2021-10-08T14:50:09.000Z
defmodule Memorex.Eraser do defstruct ~w[plan phrase]a def new(phrase, cycles \\ 3) when is_binary(phrase) do string_length = String.length(phrase) chunk_size = ceil(string_length / cycles) plan = 0..(string_length - 1) |> Enum.shuffle() |> Enum.chunk_every(chunk_size) %__MODUL...
22
62
0.608647
ff444aa88e2c6ade5701d9f7b40dfb6c208e758a
730
ex
Elixir
test/support/feature_case.ex
b-a-b-e/ProComPrag
50c6c87933e71cb69b5c95bc77bf591a34661410
[ "MIT" ]
1
2020-05-31T21:54:40.000Z
2020-05-31T21:54:40.000Z
test/support/feature_case.ex
b-a-b-e/ProComPrag
50c6c87933e71cb69b5c95bc77bf591a34661410
[ "MIT" ]
64
2019-07-29T22:06:16.000Z
2022-03-28T23:46:58.000Z
test/support/feature_case.ex
babe-project/BABE
50c6c87933e71cb69b5c95bc77bf591a34661410
[ "MIT" ]
1
2019-07-28T19:17:43.000Z
2019-07-28T19:17:43.000Z
defmodule Magpie.FeatureCase do @moduledoc """ Defines the test case to be used by feature tests, using Wallaby. """ use ExUnit.CaseTemplate using do quote do use Wallaby.DSL alias Magpie.Repo import Ecto import Ecto.Changeset import Ecto.Query import Magpie.Router....
21.470588
73
0.672603
ff448f4ba6d17dbe279b26d7032a311cf83f9131
63
ex
Elixir
lib/dornach_web/views/layout_view.ex
ream88/jw-dornach
0a25deae13fafd832421bde21bc21035a128ac7d
[ "MIT" ]
null
null
null
lib/dornach_web/views/layout_view.ex
ream88/jw-dornach
0a25deae13fafd832421bde21bc21035a128ac7d
[ "MIT" ]
4
2020-01-28T10:12:25.000Z
2021-05-10T23:05:12.000Z
lib/dornach_web/views/layout_view.ex
ream88/jw-dornach
0a25deae13fafd832421bde21bc21035a128ac7d
[ "MIT" ]
null
null
null
defmodule DornachWeb.LayoutView do use DornachWeb, :view end
15.75
34
0.809524
ff44972ecf29b84a423efb9d25492d52edc97fde
17,785
ex
Elixir
lib/elixir/lib/calendar/date.ex
kennyballou/elixir
0beeef8b1f49b6b347e22fe3ad7b654f18a963e9
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/calendar/date.ex
kennyballou/elixir
0beeef8b1f49b6b347e22fe3ad7b654f18a963e9
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/calendar/date.ex
kennyballou/elixir
0beeef8b1f49b6b347e22fe3ad7b654f18a963e9
[ "Apache-2.0" ]
null
null
null
defmodule Date do @moduledoc """ A Date struct and functions. The Date struct contains the fields year, month, day and calendar. New dates can be built with the `new/3` function or using the `~D` sigil: iex> ~D[2000-01-01] ~D[2000-01-01] Both `new/3` and sigil return a struct where the date f...
29.740803
188
0.644138
ff44a46bba74944c71f3b230f7830b5fb0bc0406
762
exs
Elixir
test/irc/connection_test.exs
aeturnum/blur
e59bb4a7451cea60d92166e495a3029645a1ffaf
[ "MIT" ]
19
2015-07-21T04:58:12.000Z
2022-01-20T23:25:18.000Z
test/irc/connection_test.exs
aeturnum/blur
e59bb4a7451cea60d92166e495a3029645a1ffaf
[ "MIT" ]
3
2020-07-17T22:29:17.000Z
2020-07-20T00:31:41.000Z
test/irc/connection_test.exs
aeturnum/blur
e59bb4a7451cea60d92166e495a3029645a1ffaf
[ "MIT" ]
3
2015-08-26T14:59:37.000Z
2021-05-05T04:00:06.000Z
defmodule Blur.IRC.ConnectionTest do use ExUnit.Case, async: true doctest Blur.IRC.Connection alias Blur.IRC.Connection.State alias Blur.IRC.Connection # test "on connecting to the IRC server" do # {:noreply, state} = # Connection.handle_info( # {:connected, "localhost", 6667}, # %...
23.090909
84
0.620735
ff44bdfdb6001bf0e0086037449c9645ff4212e3
4,641
exs
Elixir
test/credo/check/readability/large_numbers_test.exs
ayrat555/credo
517699f82fc6ebe266152d997b64878b334e7bd8
[ "MIT" ]
null
null
null
test/credo/check/readability/large_numbers_test.exs
ayrat555/credo
517699f82fc6ebe266152d997b64878b334e7bd8
[ "MIT" ]
null
null
null
test/credo/check/readability/large_numbers_test.exs
ayrat555/credo
517699f82fc6ebe266152d997b64878b334e7bd8
[ "MIT" ]
null
null
null
defmodule Credo.Check.Readability.LargeNumbersTest do use Credo.TestHelper @described_check Credo.Check.Readability.LargeNumbers # # cases NOT raising issues # test "it should NOT report expected code" do """ @budgets %{ "budget1": 100_000, "budget2": 200_000, "budget3": 300_000...
20.811659
79
0.607412
ff44bfa35c1512d49c258f585f36fc2bb81dc1d5
21,942
ex
Elixir
lib/aws/generated/firehose.ex
kw7oe/aws-elixir
4ba60502dde270c83143822c9964018c7770bad7
[ "Apache-2.0" ]
341
2018-04-04T19:06:19.000Z
2022-03-25T21:34:23.000Z
lib/aws/generated/firehose.ex
kw7oe/aws-elixir
4ba60502dde270c83143822c9964018c7770bad7
[ "Apache-2.0" ]
82
2018-04-04T17:32:33.000Z
2022-03-24T15:12:04.000Z
lib/aws/generated/firehose.ex
kw7oe/aws-elixir
4ba60502dde270c83143822c9964018c7770bad7
[ "Apache-2.0" ]
76
2018-04-10T20:19:44.000Z
2022-03-15T13:49:19.000Z
# WARNING: DO NOT EDIT, AUTO-GENERATED CODE! # See https://github.com/aws-beam/aws-codegen for more details. defmodule AWS.Firehose do @moduledoc """ Amazon Kinesis Data Firehose API Reference Amazon Kinesis Data Firehose is a fully managed service that delivers real-time streaming data to destinations such a...
52.242857
141
0.772218
ff44da1a25fc48c65dc8320ffef083d3bad20752
1,822
ex
Elixir
clients/cloud_search/lib/google_api/cloud_search/v1/model/repository_error.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/cloud_search/lib/google_api/cloud_search/v1/model/repository_error.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/cloud_search/lib/google_api/cloud_search/v1/model/repository_error.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...
34.377358
159
0.720088
ff44e91a07117e14c3ddbbfe0e0be9e6ffdc994c
1,210
exs
Elixir
test/crawlie/page_test.exs
kianmeng/crawlie
19883f17a208107927ba14d15312f5a908d5e8ea
[ "MIT" ]
91
2016-12-29T12:31:14.000Z
2021-09-25T23:09:34.000Z
test/crawlie/page_test.exs
kianmeng/crawlie
19883f17a208107927ba14d15312f5a908d5e8ea
[ "MIT" ]
40
2016-12-14T00:55:52.000Z
2022-01-29T08:46:03.000Z
test/crawlie/page_test.exs
kianmeng/crawlie
19883f17a208107927ba14d15312f5a908d5e8ea
[ "MIT" ]
10
2017-04-06T11:18:10.000Z
2021-10-30T00:04:09.000Z
defmodule Crawlie.PageTest do use ExUnit.Case alias Crawlie.Page doctest Page @url "https://foo.bar.baz/abc/def?x=y&y=z" @uri URI.parse(@url) @uri_a URI.parse("aaa") @uri_b URI.parse("bbb") test "constructor" do assert Page.new(@uri) == %Page{uri: @uri, depth: 0, retries: 0} assert Page.ne...
26.304348
96
0.61405
ff44f9eb16b261a86b12edf20a44e444c4b69e7f
600
ex
Elixir
apps/aecore/lib/aecore/peers/worker/peer_connection_supervisor.ex
SingularityMatrix/elixir-node
ad126aa97931165185cf35454718ed2eee40ceed
[ "ISC" ]
131
2018-03-10T01:35:56.000Z
2021-12-27T13:44:41.000Z
apps/aecore/lib/aecore/peers/worker/peer_connection_supervisor.ex
SingularityMatrix/elixir-node
ad126aa97931165185cf35454718ed2eee40ceed
[ "ISC" ]
445
2018-03-12T09:46:17.000Z
2018-12-12T09:52:07.000Z
apps/aecore/lib/aecore/peers/worker/peer_connection_supervisor.ex
gspasov/dogs-blockchain
884c14cfc98de2c3793a204da069630d090bbc90
[ "0BSD" ]
23
2018-03-12T12:01:28.000Z
2022-03-06T09:22:17.000Z
defmodule Aecore.Peers.Worker.PeerConnectionSupervisor do @moduledoc """ Supervises the individual peer connection GenServer processes """ use DynamicSupervisor alias Aecore.Peers.PeerConnection def start_link(_args) do DynamicSupervisor.start_link(__MODULE__, :ok, name: __MODULE__) end def star...
21.428571
67
0.723333
ff45051f7dc10740ee5f96f4a7ee658ff9bc5ce2
556
ex
Elixir
lib/shippo/client/hackney.ex
christopherlai/shippo
33d62242a5c3ad1d935888150d5cd630404d91f3
[ "Unlicense", "MIT" ]
null
null
null
lib/shippo/client/hackney.ex
christopherlai/shippo
33d62242a5c3ad1d935888150d5cd630404d91f3
[ "Unlicense", "MIT" ]
null
null
null
lib/shippo/client/hackney.ex
christopherlai/shippo
33d62242a5c3ad1d935888150d5cd630404d91f3
[ "Unlicense", "MIT" ]
null
null
null
defmodule Shippo.Client.Hackney do @moduledoc """ `hackney` client that implements the `Shippo.Client` behaviour. """ @behaviour Shippo.Client @impl true def request(method, url, headers, body, opts \\ []) do case :hackney.request(method, url, headers, body, [:with_body] ++ opts) do {:ok, status...
25.272727
78
0.595324
ff45100611f8000f71684585b006aed3b9139b61
2,599
ex
Elixir
clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v2beta1/model/client_user.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v2beta1/model/client_user.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v2beta1/model/client_user.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 ...
36.097222
105
0.716045
ff4513359c32188a794f8be7dd3dbad9df65b17a
1,797
ex
Elixir
lib/is/validators/list.ex
bydooweedoo/is
2d6acf61b397f7297d42a83b09c1181e22cb5230
[ "MIT" ]
17
2018-06-23T11:16:17.000Z
2021-11-17T18:28:37.000Z
lib/is/validators/list.ex
bydooweedoo/is
2d6acf61b397f7297d42a83b09c1181e22cb5230
[ "MIT" ]
null
null
null
lib/is/validators/list.ex
bydooweedoo/is
2d6acf61b397f7297d42a83b09c1181e22cb5230
[ "MIT" ]
2
2018-10-24T20:12:54.000Z
2019-12-25T17:45:41.000Z
defmodule Is.Validators.List do @moduledoc ~S""" Validation for list. ## Examples iex> Is.validate([], :list) [] iex> Is.validate([], list: false) [{:error, [], "must not be a list"}] iex> Is.validate(["a", "b", "c"], list: :binary) [] iex> Is.validate(%{value: ["a",...
26.426471
100
0.531441
ff4522fe7815d91f4c5f25ca8dcd76eccf7c8257
2,342
ex
Elixir
clients/android_enterprise/lib/google_api/android_enterprise/v1/model/permission.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/android_enterprise/lib/google_api/android_enterprise/v1/model/permission.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/android_enterprise/lib/google_api/android_enterprise/v1/model/permission.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...
40.37931
253
0.72801
ff455417cccd72208faf868173353567ab07aaa7
608
ex
Elixir
lib/exredis/connection_string.ex
aforward-oss/exredis
cf9e72e971231eaf1e99c422bd84bbb40215c84b
[ "MIT" ]
null
null
null
lib/exredis/connection_string.ex
aforward-oss/exredis
cf9e72e971231eaf1e99c422bd84bbb40215c84b
[ "MIT" ]
null
null
null
lib/exredis/connection_string.ex
aforward-oss/exredis
cf9e72e971231eaf1e99c422bd84bbb40215c84b
[ "MIT" ]
null
null
null
defmodule Exredis.ConnectionString do defmodule Config do defstruct host: nil, port: nil, password: nil, db: nil end def parse(connection_string) do uri = URI.parse(connection_string) %Config{ host: uri.host, port: uri.port, password: uri.userinfo |> parse_password, d...
22.518519
64
0.626645
ff45552e52b071081d3eef4c157c02e9591b7722
4,270
exs
Elixir
test/sampler_test.exs
alejandrodnm/elixir_agent
b2264d8f54244d136950cadd02f2533967a8e7cb
[ "Apache-2.0" ]
null
null
null
test/sampler_test.exs
alejandrodnm/elixir_agent
b2264d8f54244d136950cadd02f2533967a8e7cb
[ "Apache-2.0" ]
1
2019-02-08T01:08:31.000Z
2019-02-20T00:24:51.000Z
test/sampler_test.exs
alejandrodnm/elixir_agent
b2264d8f54244d136950cadd02f2533967a8e7cb
[ "Apache-2.0" ]
null
null
null
defmodule SamplerTest do use ExUnit.Case alias NewRelic.Harvest.Collector defmodule TestProcess do use GenServer def start_link, do: GenServer.start_link(__MODULE__, :ok, name: __MODULE__) def init(:ok) do NewRelic.sample_process() {:ok, %{}} end def handle_call(:work, _from, ...
30.5
97
0.67096
ff4555eebba53ac66a2c6e8b1f389159874b8433
2,074
exs
Elixir
test/media_server_web/live/watch_movie_live_test.exs
midarrlabs/midarr-server
f12c6347e41a96517bbb5ed1ad12b65d10b8d30a
[ "MIT" ]
538
2022-02-02T21:46:52.000Z
2022-03-29T20:50:34.000Z
test/media_server_web/live/watch_movie_live_test.exs
midarrlabs/midarr-server
f12c6347e41a96517bbb5ed1ad12b65d10b8d30a
[ "MIT" ]
48
2022-02-03T11:46:09.000Z
2022-03-31T04:44:53.000Z
test/media_server_web/live/watch_movie_live_test.exs
midarrlabs/midarr-server
f12c6347e41a96517bbb5ed1ad12b65d10b8d30a
[ "MIT" ]
15
2022-02-03T05:55:14.000Z
2022-02-28T11:09:03.000Z
defmodule MediaServerWeb.WatchMovieLiveTest do use MediaServerWeb.ConnCase import Phoenix.LiveViewTest alias MediaServer.AccountsFixtures alias MediaServer.MoviesFixtures alias MediaServer.ContinuesFixtures alias MediaServer.ComponentsFixtures alias MediaServer.ActionsFixtures defp create_fixtures(_)...
28.805556
98
0.653809
ff456ef78f664469eb5936742d4badb3fa29d2de
1,033
ex
Elixir
test/support/channel_case.ex
tsara27/collab-x-phoenix
828f8fbdcf853a43e096a42dc2f003cf443eb792
[ "MIT" ]
null
null
null
test/support/channel_case.ex
tsara27/collab-x-phoenix
828f8fbdcf853a43e096a42dc2f003cf443eb792
[ "MIT" ]
null
null
null
test/support/channel_case.ex
tsara27/collab-x-phoenix
828f8fbdcf853a43e096a42dc2f003cf443eb792
[ "MIT" ]
null
null
null
defmodule CollabXPhoenix.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 and query models. Finally, if the test case interacts with the database, it cann...
23.477273
76
0.710552
ff4576d8be12e5225e12d9858cfcc568fe276e04
183
ex
Elixir
lib/datastore/dts/key.ex
sdipendra/ecto-gcd
218485f251ec3bb372854fd2ed61646710ef2eb6
[ "Apache-2.0" ]
1
2021-05-04T17:57:37.000Z
2021-05-04T17:57:37.000Z
lib/datastore/dts/key.ex
sdipendra/ecto-gcd
218485f251ec3bb372854fd2ed61646710ef2eb6
[ "Apache-2.0" ]
null
null
null
lib/datastore/dts/key.ex
sdipendra/ecto-gcd
218485f251ec3bb372854fd2ed61646710ef2eb6
[ "Apache-2.0" ]
null
null
null
defmodule Datastore.Dts.Key do @moduledoc false @derive {Jason.Encoder, only: [:partitionId, :path]} @enforce_keys [:partitionId, :path] defstruct [:partitionId, :path] end
20.333333
54
0.715847
ff45a141aec8b93003521ca856c2e02d0eb70c5d
2,568
exs
Elixir
24/part1.exs
seantanly/elixir-advent_of_code
1e39ac46bc01f5c8cffd2d2f79f9af0b71767291
[ "MIT" ]
3
2016-01-18T01:14:45.000Z
2017-05-11T09:14:49.000Z
24/part1.exs
seantanly/elixir-advent_of_code
1e39ac46bc01f5c8cffd2d2f79f9af0b71767291
[ "MIT" ]
null
null
null
24/part1.exs
seantanly/elixir-advent_of_code
1e39ac46bc01f5c8cffd2d2f79f9af0b71767291
[ "MIT" ]
null
null
null
defmodule Combination do def combine(collection, k) when is_integer(k) and k >= 0 do list = Enum.to_list(collection) list_length = Enum.count(list) if k > list_length do raise Enum.OutOfBoundsError else do_combine(list, list_length, k, [], []) end end defp do_combine(_list, _list...
30.571429
114
0.63824
ff45bbfcdeacf1a05b5f2883cf7cac3376959300
844
ex
Elixir
lib/sue/commands/images.ex
alwayswimmin/Sue
33dfd860e7d5b6dce11e2dc202924efad6a9474c
[ "MIT" ]
1
2020-06-21T01:50:12.000Z
2020-06-21T01:50:12.000Z
lib/sue/commands/images.ex
alwayswimmin/Sue
33dfd860e7d5b6dce11e2dc202924efad6a9474c
[ "MIT" ]
null
null
null
lib/sue/commands/images.ex
alwayswimmin/Sue
33dfd860e7d5b6dce11e2dc202924efad6a9474c
[ "MIT" ]
null
null
null
defmodule Sue.Commands.Images do Module.register_attribute(__MODULE__, :is_persisted, persist: true) @is_persisted "is persisted" alias Sue.Models.Attachment @media_path Path.join(:code.priv_dir(:sue), "media/") @doc """ Shows a picture of a cute doog. Usage: !doog """ def c_doog(_msg) do %Attac...
22.210526
69
0.643365
ff45c02d1befe960b7903f2a8cfb63821537d1c6
580
ex
Elixir
lib/cforum/messages/message_tag.ex
campingrider/cforum_ex
cf27684c47d6dc26c9c37a946f1c729a79d27c70
[ "MIT" ]
null
null
null
lib/cforum/messages/message_tag.ex
campingrider/cforum_ex
cf27684c47d6dc26c9c37a946f1c729a79d27c70
[ "MIT" ]
null
null
null
lib/cforum/messages/message_tag.ex
campingrider/cforum_ex
cf27684c47d6dc26c9c37a946f1c729a79d27c70
[ "MIT" ]
null
null
null
defmodule Cforum.Messages.Tags.MessageTag do use CforumWeb, :model @primary_key {:message_tag_id, :id, autogenerate: true} @derive {Phoenix.Param, key: :message_tag_id} schema "messages_tags" do belongs_to(:message, Cforum.Messages.Message, references: :message_id) belongs_to(:tag, Cforum.Messages.Tag...
27.619048
74
0.694828
ff45cca871ffe0e3400ba0afc3ff3a19b1706d1f
4,318
ex
Elixir
clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v14/api/performance_report.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v14/api/performance_report.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v14/api/performance_report.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.333333
225
0.660028
ff4643ef804a4eb4ad7699827c4d0c0652f19277
20,349
exs
Elixir
test/case_test.exs
X4lldux/disc_union
e5b5a2d775a0536fa492c311bc297f71b0a5980d
[ "MIT" ]
58
2016-05-14T03:56:22.000Z
2019-04-18T14:45:27.000Z
test/case_test.exs
X4lldux/disc_union
e5b5a2d775a0536fa492c311bc297f71b0a5980d
[ "MIT" ]
5
2016-08-30T19:47:33.000Z
2017-02-04T22:50:40.000Z
test/case_test.exs
x4lldux/disc_union
e5b5a2d775a0536fa492c311bc297f71b0a5980d
[ "MIT" ]
2
2017-02-03T15:39:23.000Z
2018-11-21T15:30:59.000Z
defmodule DiscUnionTest.Case do use ExUnit.Case, async: true test "discriminated union's `case` macro should riase when condition is not evaluated to this discriminated union" do assert_raise BadStructError, "expected a struct named ExampleDU, got: nil", fn -> use ExampleDU ExampleDU.case nil do ...
30.371642
180
0.421544
ff464f06d19539b7cd67fbca0b8bd25e1d2b02d4
5,875
ex
Elixir
lib/mongooseice/udp/worker.ex
glassechidna/MongooseICE
c2ea99f47460fd7293b51eaa72fbce122a60affe
[ "Apache-2.0" ]
90
2017-09-26T12:20:06.000Z
2022-01-30T17:58:11.000Z
lib/mongooseice/udp/worker.ex
glassechidna/MongooseICE
c2ea99f47460fd7293b51eaa72fbce122a60affe
[ "Apache-2.0" ]
39
2017-01-20T08:54:13.000Z
2017-09-13T11:30:14.000Z
lib/mongooseice/udp/worker.ex
glassechidna/MongooseICE
c2ea99f47460fd7293b51eaa72fbce122a60affe
[ "Apache-2.0" ]
13
2018-03-29T07:03:25.000Z
2022-03-06T10:21:45.000Z
defmodule MongooseICE.UDP.Worker do @moduledoc false # Process handling STUN messages received over UDP # # Currently when worker receives a message which can't # be decoded or doesn't know how to process a message # it simply crashes. alias MongooseICE.UDP alias MongooseICE.TURN alias MongooseICE.ST...
33.764368
90
0.655149
ff467564b5f3cce73b87ea849bbfea30b42134f8
1,129
exs
Elixir
config/config.exs
arghmeleg/scrappy
f7002d00e789c1a732c7133bb5b73ad9575cb83f
[ "MIT" ]
1
2019-12-24T00:56:41.000Z
2019-12-24T00:56:41.000Z
config/config.exs
arghmeleg/scrappy
f7002d00e789c1a732c7133bb5b73ad9575cb83f
[ "MIT" ]
null
null
null
config/config.exs
arghmeleg/scrappy
f7002d00e789c1a732c7133bb5b73ad9575cb83f
[ "MIT" ]
null
null
null
# This file is responsible for configuring your application # and its dependencies with the aid of the Mix.Config module. use Mix.Config # This configuration is loaded before any dependency and is restricted # to this project. If another project depends on this project, this # file won't be loaded nor affect the paren...
36.419355
73
0.751107
ff46838d95d25a4d18ddfba9d60c3f94d02c5e5f
733
exs
Elixir
test/suite/draft6/min_items_test.exs
starbelly/json_xema
73ca23f9ce51d450d2f9cf0509ee6bb82f9a8c79
[ "MIT" ]
1
2019-06-21T10:55:33.000Z
2019-06-21T10:55:33.000Z
test/suite/draft6/min_items_test.exs
starbelly/json_xema
73ca23f9ce51d450d2f9cf0509ee6bb82f9a8c79
[ "MIT" ]
null
null
null
test/suite/draft6/min_items_test.exs
starbelly/json_xema
73ca23f9ce51d450d2f9cf0509ee6bb82f9a8c79
[ "MIT" ]
null
null
null
defmodule Draft6.MinItemsTest do use ExUnit.Case, async: true import JsonXema, only: [valid?: 2] describe "minItems validation" do setup do %{schema: ~s( { "minItems": 1 } ) |> Jason.decode!() |> JsonXema.new()} end test "longer is valid", %{schema: schema} d...
20.361111
54
0.556617
ff46a3656adf28218db3853df7b5638e9f2b83fd
1,839
ex
Elixir
lib/mix/tasks/protox/generate.ex
zolakeith/protox
19ce8e9ae5d2f2505d683c066e6f723be520945d
[ "MIT" ]
null
null
null
lib/mix/tasks/protox/generate.ex
zolakeith/protox
19ce8e9ae5d2f2505d683c066e6f723be520945d
[ "MIT" ]
null
null
null
lib/mix/tasks/protox/generate.ex
zolakeith/protox
19ce8e9ae5d2f2505d683c066e6f723be520945d
[ "MIT" ]
null
null
null
defmodule Mix.Tasks.Protox.Generate do @moduledoc """ Generate Elixir code from `.proto` files. Example: `mix protox.generate --output-path=lib/message.ex --include-path=. message.proto` The generated file will be usable in any project as long as protox is declared in the dependencies (the generated file ...
30.147541
89
0.637303
ff46e8f8e0f2c4253d2a8a4cb2ce7805b11760d5
3,209
exs
Elixir
test/config/config.exs
rosetta-home/rosetta_rpi3
61ee6f947577dea1b101fe887211dc84d28fea4b
[ "Apache-2.0" ]
6
2017-11-02T14:56:05.000Z
2018-04-24T13:53:49.000Z
test/config/config.exs
rosetta-home/rosetta_rpi3
61ee6f947577dea1b101fe887211dc84d28fea4b
[ "Apache-2.0" ]
1
2018-03-10T19:59:52.000Z
2018-03-10T22:58:06.000Z
test/config/config.exs
rosetta-home/rosetta_rpi3
61ee6f947577dea1b101fe887211dc84d28fea4b
[ "Apache-2.0" ]
null
null
null
use Mix.Config # Repository specific configuration system = :nerves_system_rpi3 platform = "rpi3" arch = "arm" app_part_devparth = "/dev/mmcblk0p3" network_interface = System.get_env("NERVES_NETWORK_INTERFACE") || "eth0" # Environment specific configuration # Nerves Project test farm configuration # NERVES_TEST_S...
34.880435
81
0.762231
ff470083b5458a99d67fdf6b4c05c6536571480b
18,651
ex
Elixir
clients/content/lib/google_api/content/v2/model/product.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/content/lib/google_api/content/v2/model/product.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/content/lib/google_api/content/v2/model/product.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 ...
66.610714
380
0.675138
ff470a5025a02c5a5e3494394ce2bb93ce74809c
5,984
ex
Elixir
lib/canvas_api/services/comment_service.ex
usecanvas/api-v2
59214db3a2cf12eb939f22fed320fd10cb47cdfe
[ "Apache-2.0" ]
123
2017-04-04T18:15:48.000Z
2021-04-26T08:04:22.000Z
lib/canvas_api/services/comment_service.ex
usecanvas/api-v2
59214db3a2cf12eb939f22fed320fd10cb47cdfe
[ "Apache-2.0" ]
null
null
null
lib/canvas_api/services/comment_service.ex
usecanvas/api-v2
59214db3a2cf12eb939f22fed320fd10cb47cdfe
[ "Apache-2.0" ]
17
2017-04-04T18:58:29.000Z
2021-05-10T21:39:16.000Z
defmodule CanvasAPI.CommentService do @moduledoc """ A service for viewing and manipulating comments. """ alias CanvasAPI.{Account, Canvas, CanvasService, Comment, SlackNotifier, Team, User, UserService} alias Ecto.Changeset use CanvasAPI.Web, :service @preload [:creator, canvas: [:te...
27.832558
79
0.597092
ff4723a5c1f3c96a195bf59a148bf1a5bc84be57
9,367
exs
Elixir
test/tanks_game/integration_test.exs
marcinbiegun/elixir-tanks
29a3beef303825a137249c8ae0a3ff21c33d9a1c
[ "MIT" ]
null
null
null
test/tanks_game/integration_test.exs
marcinbiegun/elixir-tanks
29a3beef303825a137249c8ae0a3ff21c33d9a1c
[ "MIT" ]
null
null
null
test/tanks_game/integration_test.exs
marcinbiegun/elixir-tanks
29a3beef303825a137249c8ae0a3ff21c33d9a1c
[ "MIT" ]
null
null
null
defmodule Tanks.Game.IntegrationTest do use ExUnit.Case @game_id 123 @level nil setup do on_exit(fn -> Tanks.GameServer.delete(@game_id) end) Tanks.GameServer.create(@game_id, @level, no_tick: true) %{game_id: @game_id} end describe "entity registry" do test "getting entity by...
29.090062
94
0.623145
ff47556247e228bce3b00380ff9a77faa3d038ac
9,172
ex
Elixir
lib/membrane_h264_ffmpeg/parser.ex
geometerio/membrane_h264_ffmpeg_plugin
87a348ea595c74684d1a6724b98718ba416c7b3e
[ "Apache-2.0" ]
7
2021-01-30T07:12:03.000Z
2021-12-12T05:28:29.000Z
lib/membrane_h264_ffmpeg/parser.ex
geometerio/membrane_h264_ffmpeg_plugin
87a348ea595c74684d1a6724b98718ba416c7b3e
[ "Apache-2.0" ]
9
2020-11-20T12:54:15.000Z
2022-03-24T10:26:10.000Z
lib/membrane_h264_ffmpeg/parser.ex
geometerio/membrane_h264_ffmpeg_plugin
87a348ea595c74684d1a6724b98718ba416c7b3e
[ "Apache-2.0" ]
1
2021-06-21T23:33:50.000Z
2021-06-21T23:33:50.000Z
defmodule Membrane.H264.FFmpeg.Parser do @moduledoc """ Membrane element providing parser for H264 encoded video stream. Uses the parser provided by FFmpeg. By default, this parser splits the stream into h264 access units, each of which is a sequence of NAL units corresponding to one video frame, and equip...
32.874552
105
0.616877
ff477288fe87d87709ada42be188c5023c5be945
12,141
ex
Elixir
lib/mix/lib/mix/utils.ex
Tica2/elixir
6cf1dcbfe4572fc75619f05e40c10fd0844083ef
[ "Apache-2.0" ]
null
null
null
lib/mix/lib/mix/utils.ex
Tica2/elixir
6cf1dcbfe4572fc75619f05e40c10fd0844083ef
[ "Apache-2.0" ]
null
null
null
lib/mix/lib/mix/utils.ex
Tica2/elixir
6cf1dcbfe4572fc75619f05e40c10fd0844083ef
[ "Apache-2.0" ]
null
null
null
defmodule Mix.Utils do @moduledoc """ Utilities used throughout Mix and tasks. """ @doc """ Get the mix home. It defaults to `~/.mix` unless the `MIX_HOME` environment variable is set. Developers should only store entries in the `MIX_HOME` directory which are guaranteed to work across multiple El...
26.508734
113
0.623589
ff47d160cdce864a8fa131a312031c96462da8b9
1,413
ex
Elixir
lib/pathex/parser.ex
sirikid/pathex
e0bfa4ab6e0b4af4da05479df842a0d07f685707
[ "BSD-2-Clause" ]
null
null
null
lib/pathex/parser.ex
sirikid/pathex
e0bfa4ab6e0b4af4da05479df842a0d07f685707
[ "BSD-2-Clause" ]
null
null
null
lib/pathex/parser.ex
sirikid/pathex
e0bfa4ab6e0b4af4da05479df842a0d07f685707
[ "BSD-2-Clause" ]
null
null
null
defmodule Pathex.Parser do @moduledoc """ Module for parsing path created with sigils """ # TODO proper naive parsing @spec parse(binary(), Pathex.mod()) :: Pathex.Combination.t() def parse(string, :naive) do string |> String.split("/") |> Enum.map(&detect_naive(String.trim(&1))) end def p...
19.356164
63
0.55414
ff47d2383b2f5d4c1030ce37ee1f1b086b0b3cab
549
exs
Elixir
test/absinthe/integration/validation/error_result_when_bad_list_argument_test.exs
TheRealReal/absinthe
6eae5bc36283e58f42d032b8afd90de3ad64f97b
[ "MIT" ]
4,101
2016-03-02T03:49:20.000Z
2022-03-31T05:46:01.000Z
test/absinthe/integration/validation/error_result_when_bad_list_argument_test.exs
TheRealReal/absinthe
6eae5bc36283e58f42d032b8afd90de3ad64f97b
[ "MIT" ]
889
2016-03-02T16:06:59.000Z
2022-03-31T20:24:12.000Z
test/absinthe/integration/validation/error_result_when_bad_list_argument_test.exs
TheRealReal/absinthe
6eae5bc36283e58f42d032b8afd90de3ad64f97b
[ "MIT" ]
564
2016-03-02T07:49:59.000Z
2022-03-06T14:40:59.000Z
defmodule Elixir.Absinthe.Integration.Validation.ErrorResultWhenBadListArgumentTest do use Absinthe.Case, async: true @query """ query { thing(id: ["foo"]) { name } } """ test "scenario #1" do assert {:ok, %{ errors: [ %{ messag...
22.875
86
0.48816
ff47de4fca42124519d98e0fd8b405d6d655188f
16,903
exs
Elixir
test/empty/accounts_test.exs
manojsamanta/empty-app-with-auth
e601a7c6ef1b4a992758117e6bf0922a5ce08f04
[ "MIT" ]
null
null
null
test/empty/accounts_test.exs
manojsamanta/empty-app-with-auth
e601a7c6ef1b4a992758117e6bf0922a5ce08f04
[ "MIT" ]
null
null
null
test/empty/accounts_test.exs
manojsamanta/empty-app-with-auth
e601a7c6ef1b4a992758117e6bf0922a5ce08f04
[ "MIT" ]
null
null
null
defmodule Empty.AccountsTest do use Empty.DataCase alias Empty.Accounts import Empty.AccountsFixtures alias Empty.Accounts.{User, UserToken} describe "get_user_by_email/1" do test "does not return the user if the email does not exist" do refute Accounts.get_user_by_email("unknown@example.com") ...
33.873747
97
0.657339
ff47f734553e1773507be1c1f837f9f6f5e60943
2,062
ex
Elixir
clients/container/lib/google_api/container/v1/model/time_window.ex
renovate-bot/elixir-google-api
1da34cd39b670c99f067011e05ab90af93fef1f6
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/container/lib/google_api/container/v1/model/time_window.ex
swansoffiee/elixir-google-api
9ea6d39f273fb430634788c258b3189d3613dde0
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/container/lib/google_api/container/v1/model/time_window.ex
dazuma/elixir-google-api
6a9897168008efe07a6081d2326735fe332e522c
[ "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...
36.821429
202
0.731329
ff4801bb95d2c62978f50d2d2e161f3fbd02c7e3
900
ex
Elixir
lib/nerves_hub_link_common/message/update_info.ex
nerves-hub/nerves_hub_link_common
c8a00a6e8ebafdb1bd3f9bf89e053c751d6bf430
[ "Apache-2.0" ]
1
2021-03-15T02:26:05.000Z
2021-03-15T02:26:05.000Z
lib/nerves_hub_link_common/message/update_info.ex
nerves-hub/nerves_hub_link_common
c8a00a6e8ebafdb1bd3f9bf89e053c751d6bf430
[ "Apache-2.0" ]
5
2021-02-11T16:18:14.000Z
2022-03-01T15:12:12.000Z
lib/nerves_hub_link_common/message/update_info.ex
nerves-hub/nerves_hub_link_common
c8a00a6e8ebafdb1bd3f9bf89e053c751d6bf430
[ "Apache-2.0" ]
null
null
null
defmodule NervesHubLinkCommon.Message.UpdateInfo do @moduledoc """ """ alias NervesHubLinkCommon.Message.FirmwareMetadata defstruct [:firmware_url, :firmware_meta] @typedoc """ Payload that gets dispatched down to devices upon an update `firmware_url` and `firmware_meta` are only available when `upd...
26.470588
71
0.647778
ff48055bcd6823325a84cb9748131e3862369aff
2,471
ex
Elixir
clients/monitoring/lib/google_api/monitoring/v3/model/type.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/monitoring/lib/google_api/monitoring/v3/model/type.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/monitoring/lib/google_api/monitoring/v3/model/type.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 ...
39.854839
124
0.695265
ff480b703bcfbc6faf3f017f75b4ca805a7e1994
2,351
exs
Elixir
mix.exs
petermm/littlechat
b8672165ab5e6efd0d501f291de682a40b37a7b7
[ "MIT" ]
166
2020-07-15T14:47:19.000Z
2022-03-25T03:57:35.000Z
mix.exs
Jurshsmith/littlechat
50fac2f907abbfcd574d31b4d4bdad7e51302da7
[ "MIT" ]
12
2020-07-01T23:32:47.000Z
2021-03-18T21:21:28.000Z
mix.exs
Jurshsmith/littlechat
50fac2f907abbfcd574d31b4d4bdad7e51302da7
[ "MIT" ]
21
2020-07-15T14:59:39.000Z
2022-03-20T21:05:16.000Z
defmodule Littlechat.MixProject do use Mix.Project def project do [ app: :littlechat, version: "0.5.0", elixir: "~> 1.7", elixirc_paths: elixirc_paths(Mix.env()), compilers: [:phoenix, :gettext] ++ Mix.compilers(), start_permanent: Mix.env() == :prod, aliases: aliases(...
29.024691
149
0.562739
ff482fe1a1a599ef028912541949fa49092c17f0
1,113
exs
Elixir
2016/day08/config/config.exs
matt-thomson/advent-of-code
feff903151284240a9d3f0c84cdfe52d8d11ef06
[ "MIT" ]
null
null
null
2016/day08/config/config.exs
matt-thomson/advent-of-code
feff903151284240a9d3f0c84cdfe52d8d11ef06
[ "MIT" ]
null
null
null
2016/day08/config/config.exs
matt-thomson/advent-of-code
feff903151284240a9d3f0c84cdfe52d8d11ef06
[ "MIT" ]
null
null
null
# This file is responsible for configuring your application # and its dependencies with the aid of the Mix.Config module. use Mix.Config # This configuration is loaded before any dependency and is restricted # to this project. If another project depends on this project, this # file won't be loaded nor affect the paren...
35.903226
73
0.750225
ff484945b46070908abf91ddc6bd7b609872b286
1,623
ex
Elixir
lib/bank_web/endpoint.ex
oPauloChaves/elixir-checking-account-api
1fb5d241b40ecbaf11bb4fcbdb5ccabafd635acd
[ "MIT" ]
3
2017-10-16T14:35:46.000Z
2017-12-13T22:35:43.000Z
lib/bank_web/endpoint.ex
oPauloChaves/elixir-checking-account-api
1fb5d241b40ecbaf11bb4fcbdb5ccabafd635acd
[ "MIT" ]
null
null
null
lib/bank_web/endpoint.ex
oPauloChaves/elixir-checking-account-api
1fb5d241b40ecbaf11bb4fcbdb5ccabafd635acd
[ "MIT" ]
null
null
null
defmodule BankWeb.Endpoint do use Phoenix.Endpoint, otp_app: :bank alias Bank.Bucket.Registry socket "/socket", BankWeb.UserSocket # Serve at "/" the static files from "priv/static" directory. # # You should set gzip to true if you are running phoenix.digest # when deploying your static files in produc...
27.05
95
0.701171
ff4862e23115181ca5ac8e49ac14dafa342ba189
489
ex
Elixir
lib/rasa_api/model/tracker_active_form.ex
whitedr/rasa-api-elixir
3ff932ee4cb4d04f0dd5ea66ec4b8f83195a003a
[ "Apache-2.0" ]
null
null
null
lib/rasa_api/model/tracker_active_form.ex
whitedr/rasa-api-elixir
3ff932ee4cb4d04f0dd5ea66ec4b8f83195a003a
[ "Apache-2.0" ]
null
null
null
lib/rasa_api/model/tracker_active_form.ex
whitedr/rasa-api-elixir
3ff932ee4cb4d04f0dd5ea66ec4b8f83195a003a
[ "Apache-2.0" ]
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 RasaApi.Model.TrackerActiveForm do @moduledoc """ Name of the active form """ @derive [Poison.Encoder] defstruct [ :name ] @type t...
18.807692
91
0.699387
ff48b98285943567468e314d97ad12ac79ebc2ea
493
exs
Elixir
test/elm_phoenix_web_socket_example_web/views/error_view_test.exs
phollyer/elm-phoenix-websocket-example
147da038b5ca4f9304924124c546284f12ecfaa8
[ "BSD-3-Clause" ]
null
null
null
test/elm_phoenix_web_socket_example_web/views/error_view_test.exs
phollyer/elm-phoenix-websocket-example
147da038b5ca4f9304924124c546284f12ecfaa8
[ "BSD-3-Clause" ]
2
2020-12-29T15:13:39.000Z
2020-12-30T01:01:02.000Z
test/elm_phoenix_web_socket_example_web/views/error_view_test.exs
phollyer/elm-phoenix-websocket-example
147da038b5ca4f9304924124c546284f12ecfaa8
[ "BSD-3-Clause" ]
null
null
null
defmodule ElmPhoenixWebSocketExampleWeb.ErrorViewTest do use ElmPhoenixWebSocketExampleWeb.ConnCase, async: true # Bring render/3 and render_to_string/3 for testing custom views import Phoenix.View test "renders 404.html" do assert render_to_string(ElmPhoenixWebSocketExampleWeb.ErrorView, "404.html", []) ...
32.866667
111
0.774848
ff48be1329b157116dc35cb5f2f0698ea9586708
751
ex
Elixir
lib/dispatch/supervisor.ex
bjuretic/dispatch
e0c81efe69c0609390c14ddbc7762b6b7c9ba828
[ "MIT" ]
null
null
null
lib/dispatch/supervisor.ex
bjuretic/dispatch
e0c81efe69c0609390c14ddbc7762b6b7c9ba828
[ "MIT" ]
null
null
null
lib/dispatch/supervisor.ex
bjuretic/dispatch
e0c81efe69c0609390c14ddbc7762b6b7c9ba828
[ "MIT" ]
null
null
null
defmodule Dispatch.Supervisor do use Supervisor def start_link(_opts \\ []) do Supervisor.start_link(__MODULE__, :ok, [name: __MODULE__]) end def init(:ok) do registry = Application.get_env(:dispatch, :registry, []) |> Keyword.put_new(:name, Dispatch.Registry) pubsub = Application.ge...
26.821429
62
0.635153
ff48c4c826966d4e3c6c8ebd4e44257bd73988c2
18,994
exs
Elixir
test/imagineer/image/png/pngsuite/background/no_background_test.exs
ndemonner/imagineer
a6872296756cde19f8f575a7d1854d0fe7cbcb02
[ "MIT" ]
103
2015-01-28T19:09:42.000Z
2018-10-22T15:05:46.000Z
test/imagineer/image/png/pngsuite/background/no_background_test.exs
tyre/imagineer
a6872296756cde19f8f575a7d1854d0fe7cbcb02
[ "MIT" ]
12
2015-07-11T05:12:41.000Z
2018-07-21T04:42:47.000Z
test/imagineer/image/png/pngsuite/background/no_background_test.exs
ndemonner/imagineer
a6872296756cde19f8f575a7d1854d0fe7cbcb02
[ "MIT" ]
18
2015-06-16T15:48:34.000Z
2018-06-22T02:34:40.000Z
defmodule Imagineer.Image.PNG.PngSuite.Background.NoBackgroundTest do use ExUnit.Case, async: true @test_path "test/support/images/pngsuite/background/" @actual_pixels [ [ {255, 0}, {255, 8}, {255, 16}, {255, 24}, {255, 32}, {255, 41}, {255, 49}, {255, 57}, ...
16.80885
69
0.312099
ff48c82497cc2d658888acd973b323f45dc0f568
214
ex
Elixir
lib/yacto/db/single.ex
aman-io/yacto
4c26772343a9029923ad7e25245f17f2be22a1a1
[ "Apache-2.0" ]
56
2017-11-30T02:07:07.000Z
2022-02-16T17:38:42.000Z
lib/yacto/db/single.ex
aman-io/yacto
4c26772343a9029923ad7e25245f17f2be22a1a1
[ "Apache-2.0" ]
22
2018-01-04T00:34:51.000Z
2021-08-01T06:52:10.000Z
lib/yacto/db/single.ex
aman-io/yacto
4c26772343a9029923ad7e25245f17f2be22a1a1
[ "Apache-2.0" ]
13
2018-08-08T05:32:42.000Z
2021-07-30T14:57:35.000Z
defmodule Yacto.DB.Single do @behaviour Yacto.DB @impl Yacto.DB def repos(_dbname, config, _opts) do [config.repo] end @impl Yacto.DB def repo(_dbname, config, _opts) do config.repo end end
15.285714
38
0.682243
ff48d92a60f9fb9e4dc0b6685b4a72b5fb9b54ca
1,535
ex
Elixir
clients/private_ca/lib/google_api/private_ca/v1beta1/model/empty.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/private_ca/lib/google_api/private_ca/v1beta1/model/empty.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/private_ca/lib/google_api/private_ca/v1beta1/model/empty.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...
36.547619
345
0.758958
ff48f7a044d169c43501cb7c004791ecc4096e72
450
ex
Elixir
apps/peedy_f/test/support/case.ex
poteto/peedy
df9d5ee7fcbceb30b5939b36224a257249a180ea
[ "Apache-2.0" ]
34
2017-05-07T08:50:59.000Z
2021-11-25T00:27:11.000Z
apps/peedy_f/test/support/case.ex
poteto/peedy
df9d5ee7fcbceb30b5939b36224a257249a180ea
[ "Apache-2.0" ]
null
null
null
apps/peedy_f/test/support/case.ex
poteto/peedy
df9d5ee7fcbceb30b5939b36224a257249a180ea
[ "Apache-2.0" ]
7
2017-05-10T12:42:30.000Z
2021-11-03T01:21:02.000Z
defmodule PeedyF.Case do use ExUnit.CaseTemplate using do quote do alias PeedyF.Repo import Ecto import Ecto.Changeset import Ecto.Query end end setup tags do opts = tags |> Map.take([:isolation]) |> Enum.to_list() :ok = Ecto.Adapters.SQL.Sandbox.checkout(PeedyF.Repo, ...
18
68
0.637778
ff48f9d32aeec9143c92ccc227f0e05b591148e8
501
exs
Elixir
integration_test/temple_demo/lib/temple_demo_web/templates/post/form.html.exs
rktjmp/temple
6fe46cbb4998477d76147fa95c9fd9c7841545ef
[ "MIT" ]
null
null
null
integration_test/temple_demo/lib/temple_demo_web/templates/post/form.html.exs
rktjmp/temple
6fe46cbb4998477d76147fa95c9fd9c7841545ef
[ "MIT" ]
null
null
null
integration_test/temple_demo/lib/temple_demo_web/templates/post/form.html.exs
rktjmp/temple
6fe46cbb4998477d76147fa95c9fd9c7841545ef
[ "MIT" ]
null
null
null
form_for @changeset, @action, fn f -> if @changeset.action do c Flash, type: :info do p do: "Oops, something went wrong! Please check the errors below." end end label f, :title text_input f, :title error_tag(f, :title) label f, :body textarea f, :body error_tag(f, :body) label f, :pub...
17.892857
72
0.658683
ff49055ca35d21873deaa5a5a83928eef85bef25
3,370
ex
Elixir
lib/ethereum/rpc/personal.ex
alanwilhelm/elixir-ethereum
42aba002e485524be2981ae05b6f7134f8439dc4
[ "MIT" ]
null
null
null
lib/ethereum/rpc/personal.ex
alanwilhelm/elixir-ethereum
42aba002e485524be2981ae05b6f7134f8439dc4
[ "MIT" ]
null
null
null
lib/ethereum/rpc/personal.ex
alanwilhelm/elixir-ethereum
42aba002e485524be2981ae05b6f7134f8439dc4
[ "MIT" ]
null
null
null
defmodule Ethereum.Personal do @moduledoc """ Personal namespace for Ethereum JSON-RPC This could be considered dangerous as it requires the admin api to be exposed over JSON-RPC. Use only in a safe environment and see README to enable this namespace in Geth. """ alias Ethereum.Transport alias Ethe...
30.089286
133
0.637982
ff491d331b370660f4f331be5030ad2217183938
2,863
exs
Elixir
test/query_test.exs
gnalck/elixir-sqlite3
0ab43c07d226de8f5b49d38ca15e2a3f05fb48ba
[ "MIT" ]
1
2020-05-19T08:32:02.000Z
2020-05-19T08:32:02.000Z
test/query_test.exs
gnalck/elixir-sqlite3
0ab43c07d226de8f5b49d38ca15e2a3f05fb48ba
[ "MIT" ]
null
null
null
test/query_test.exs
gnalck/elixir-sqlite3
0ab43c07d226de8f5b49d38ca15e2a3f05fb48ba
[ "MIT" ]
null
null
null
defmodule XQLite3Test do use ExUnit.Case, async: true import XQLite3.TestHelper setup do {:ok, conn} = XQLite3.start_link(":memory:") {:ok, [conn: conn]} end # sqlite has dynamic typing, and so if there is no backing type # we pretty much use the 'raw' return value - as we cannot # intelligently...
35.7875
89
0.583304
ff4927f90799b92261f9e49cff1038142adacea3
1,303
ex
Elixir
apps/domain/lib/domain/queue.ex
msk-access/seqosystem
4d99c50a0b0bc74c7f9f899be4eda8eddf6e5a39
[ "Apache-2.0" ]
3
2020-11-24T07:45:26.000Z
2021-07-29T13:37:02.000Z
apps/domain/lib/domain/queue.ex
mskcc/seqosystem
4d99c50a0b0bc74c7f9f899be4eda8eddf6e5a39
[ "Apache-2.0" ]
52
2020-10-21T19:47:59.000Z
2021-09-09T18:42:33.000Z
apps/domain/lib/domain/queue.ex
msk-access/seqosystem
4d99c50a0b0bc74c7f9f899be4eda8eddf6e5a39
[ "Apache-2.0" ]
1
2020-12-15T03:33:31.000Z
2020-12-15T03:33:31.000Z
defmodule Domain.Queue do @moduledoc """ The Queue context. """ alias Domain.Repo import Ecto.Query, warn: false alias Oban.Job @doc """ Returns the list of audit_versions. ## Examples iex> list_jobs() [%Job{}, ...] """ def list_jobs(%{page: page, per_page: per_page, sort_by: sort...
19.161765
89
0.566385
ff4938f8ac0e49b93a56e8ac957013b2392979a3
6,546
ex
Elixir
lib/mix/tasks/nerves_hub.firmware.ex
brianberlin/nerves_hub_cli
b668ffbb525aed3f3bf18b54ead1f0a969b90485
[ "Apache-2.0" ]
null
null
null
lib/mix/tasks/nerves_hub.firmware.ex
brianberlin/nerves_hub_cli
b668ffbb525aed3f3bf18b54ead1f0a969b90485
[ "Apache-2.0" ]
null
null
null
lib/mix/tasks/nerves_hub.firmware.ex
brianberlin/nerves_hub_cli
b668ffbb525aed3f3bf18b54ead1f0a969b90485
[ "Apache-2.0" ]
null
null
null
defmodule Mix.Tasks.NervesHub.Firmware do use Mix.Task @shortdoc "Manages firmware on NervesHub" @moduledoc """ Manage Firmware on NervesHub ## publish Upload signed firmware to NervesHub. Supplying a path to the firmware file is optional. If it is not specified, NervesHub will locate the firmware b...
24.701887
79
0.595631
ff495188da528825f30a9697cf35548c334438ed
789
exs
Elixir
test/unit/hologram/compiler/module_def_aggregators/function_definition_test.exs
gregjohnsonsaltaire/hologram
aa8e9ea0d599def864c263cc37cc8ee31f02ac4a
[ "MIT" ]
40
2022-01-19T20:27:36.000Z
2022-03-31T18:17:41.000Z
test/unit/hologram/compiler/module_def_aggregators/function_definition_test.exs
gregjohnsonsaltaire/hologram
aa8e9ea0d599def864c263cc37cc8ee31f02ac4a
[ "MIT" ]
42
2022-02-03T22:52:43.000Z
2022-03-26T20:57:32.000Z
test/unit/hologram/compiler/module_def_aggregators/function_definition_test.exs
gregjohnsonsaltaire/hologram
aa8e9ea0d599def864c263cc37cc8ee31f02ac4a
[ "MIT" ]
3
2022-02-10T04:00:37.000Z
2022-03-08T22:07:45.000Z
defmodule Hologram.Compiler.ModuleDefAggregator.FunctionDefinitionTest do use Hologram.Test.UnitCase, async: false alias Hologram.Compiler.{ModuleDefAggregator, ModuleDefStore} alias Hologram.Compiler.IR.{Block, FunctionDefinition, ModuleDefinition, ModuleType} alias Hologram.Test.Fixtures.{PlaceholderModule1,...
29.222222
86
0.749049
ff4953336c87fa289555edfd3eb2ebb558ddc0c2
2,077
ex
Elixir
apps/ema/test/support/service_case.ex
hoyon/skye
50a25a55bb0c38460a0bd204c8d0ce716da9f017
[ "MIT" ]
null
null
null
apps/ema/test/support/service_case.ex
hoyon/skye
50a25a55bb0c38460a0bd204c8d0ce716da9f017
[ "MIT" ]
null
null
null
apps/ema/test/support/service_case.ex
hoyon/skye
50a25a55bb0c38460a0bd204c8d0ce716da9f017
[ "MIT" ]
null
null
null
defmodule Ema.ServiceCase do use ExUnit.CaseTemplate alias Ema.{Service, Type} using opts do quote bind_quoted: [opts: opts] do import Ema.ServiceCase import Mox @service Keyword.fetch!(opts, :service) test_service_sanity(@service) end end @doc "Ensure action returns correct...
28.067568
93
0.636976
ff495c78a0e53d79c4dffb1f35e07e20aa10b027
1,227
ex
Elixir
lib/doc_gen_web/controllers/embed_controller.ex
the-mikedavis/doc_gen
efcc884ea65bba5748f41c5601abd00db2777ec4
[ "BSD-3-Clause" ]
null
null
null
lib/doc_gen_web/controllers/embed_controller.ex
the-mikedavis/doc_gen
efcc884ea65bba5748f41c5601abd00db2777ec4
[ "BSD-3-Clause" ]
27
2018-10-29T18:34:44.000Z
2019-03-11T18:43:12.000Z
lib/doc_gen_web/controllers/embed_controller.ex
the-mikedavis/doc_gen
efcc884ea65bba5748f41c5601abd00db2777ec4
[ "BSD-3-Clause" ]
null
null
null
defmodule DocGenWeb.EmbedController do use DocGenWeb, :controller alias DocGen.Content alias Content.Embed def index(conn, _params) do embeds = Content.list_embeds() render(conn, "index.html", embeds: embeds) end def all(conn, _params) do embeds = Content.list_embeds() render(conn, "all...
24.54
62
0.641402
ff497da130196ab2d45516a341bc7bd6a9d9f76e
1,585
exs
Elixir
mix.exs
nsb/spandex_phoenix
dee00efa8f8960d4364bde9f6f84caafac175dfa
[ "MIT" ]
null
null
null
mix.exs
nsb/spandex_phoenix
dee00efa8f8960d4364bde9f6f84caafac175dfa
[ "MIT" ]
null
null
null
mix.exs
nsb/spandex_phoenix
dee00efa8f8960d4364bde9f6f84caafac175dfa
[ "MIT" ]
null
null
null
defmodule SpandexPhoenix.MixProject do use Mix.Project @version "0.3.0" def project do [ app: :spandex_phoenix, version: @version, elixir: "~> 1.6", elixirc_paths: elixirc_paths(Mix.env()), compilers: compilers(Mix.env()), start_permanent: Mix.env() == :prod, packag...
22.323944
80
0.557098
ff49a0afbb991d7baf15d3802615bef5b2a5f5ce
3,106
ex
Elixir
clients/run/lib/google_api/run/v1/model/secret_volume_source.ex
ukrbublik/elixir-google-api
364cec36bc76f60bec94cbcad34844367a29d174
[ "Apache-2.0" ]
null
null
null
clients/run/lib/google_api/run/v1/model/secret_volume_source.ex
ukrbublik/elixir-google-api
364cec36bc76f60bec94cbcad34844367a29d174
[ "Apache-2.0" ]
null
null
null
clients/run/lib/google_api/run/v1/model/secret_volume_source.ex
ukrbublik/elixir-google-api
364cec36bc76f60bec94cbcad34844367a29d174
[ "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.464286
568
0.737605
ff49c2a8cc791bfa0ea1ccfb41ea8e6efd153582
1,657
ex
Elixir
lib/community/news/news.ex
mdsebald/GraphQL_Demo
a326e784a81a824990381289146419b62bb19b7b
[ "Apache-2.0" ]
1
2018-01-16T10:28:38.000Z
2018-01-16T10:28:38.000Z
lib/community/news/news.ex
aleccool213/elixir-graphql-example
8f89f4898cda7b7544321ff8dda2f76ea22d4c58
[ "MIT" ]
null
null
null
lib/community/news/news.ex
aleccool213/elixir-graphql-example
8f89f4898cda7b7544321ff8dda2f76ea22d4c58
[ "MIT" ]
null
null
null
defmodule Community.News do @moduledoc """ The News context. """ import Ecto.Query, warn: false alias Community.Repo alias Community.News.Link @doc """ Returns the list of links. ## Examples iex> list_links() [%Link{}, ...] """ def list_links do Repo.all(Link) end @doc "...
15.780952
59
0.564273
ff49c80e07a8fdef2f63a124cd5668dabf325e63
596
exs
Elixir
config/test_mysql_ex_money.exs
CoinbitsInc/ex_double_entry
31adbcaa0be14fb4f4a725fbb9f3ce6ab8402636
[ "MIT" ]
null
null
null
config/test_mysql_ex_money.exs
CoinbitsInc/ex_double_entry
31adbcaa0be14fb4f4a725fbb9f3ce6ab8402636
[ "MIT" ]
null
null
null
config/test_mysql_ex_money.exs
CoinbitsInc/ex_double_entry
31adbcaa0be14fb4f4a725fbb9f3ce6ab8402636
[ "MIT" ]
null
null
null
import Config config :ex_double_entry, db: :mysql, money: :ex_money config :ex_double_entry, ExDoubleEntry.Repo, username: System.get_env("MYSQL_DB_USERNAME", "root"), password: System.get_env("MYSQL_DB_PASSWORD", ""), database: System.get_env("MYSQL_DB_NAME", "ex_double_entry_test"), hostname: System.get...
27.090909
68
0.763423
ff49dccdc2551960440431784572a8c76865ab6b
161
ex
Elixir
lib/leather_web/controllers/page_controller.ex
nicksergeant/leather
15b1c9403999737f7a6ee9a1c0349e047805bbe6
[ "MIT" ]
67
2016-10-24T04:11:40.000Z
2021-11-25T16:46:51.000Z
lib/leather_web/controllers/page_controller.ex
nicksergeant/leather
15b1c9403999737f7a6ee9a1c0349e047805bbe6
[ "MIT" ]
6
2017-08-17T21:43:50.000Z
2021-11-03T13:13:49.000Z
lib/leather_web/controllers/page_controller.ex
nicksergeant/leather
15b1c9403999737f7a6ee9a1c0349e047805bbe6
[ "MIT" ]
7
2017-08-13T01:43:37.000Z
2022-01-11T04:38:27.000Z
defmodule LeatherWeb.PageController do @moduledoc false use LeatherWeb, :controller def index(conn, _params) do render(conn, "index.html") end end
16.1
38
0.732919
ff49f89f58aa3db2ca999d20dfdab23d6d14628d
1,585
ex
Elixir
clients/people/lib/google_api/people/v1/model/batch_delete_contacts_request.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/people/lib/google_api/people/v1/model/batch_delete_contacts_request.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/people/lib/google_api/people/v1/model/batch_delete_contacts_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...
33.723404
193
0.744479
ff4a071ec9ae7a72d639892157a03ceed4b90b94
1,405
exs
Elixir
prag-programing/Part1/ch13proj/issues/test/table_formatter_test.exs
mpahrens/fun-with-elixir
8e6720c7c2004421f674bb450045df0ab59b9c74
[ "Apache-2.0" ]
1
2017-03-29T04:10:50.000Z
2017-03-29T04:10:50.000Z
prag-programing/Part1/ch13proj/issues/test/table_formatter_test.exs
mpahrens/fun-with-elixir
8e6720c7c2004421f674bb450045df0ab59b9c74
[ "Apache-2.0" ]
null
null
null
prag-programing/Part1/ch13proj/issues/test/table_formatter_test.exs
mpahrens/fun-with-elixir
8e6720c7c2004421f674bb450045df0ab59b9c74
[ "Apache-2.0" ]
null
null
null
defmodule TableFormatterTest do use ExUnit.Case import ExUnit.CaptureIO #sends capture stuff to stdout alias Issues.TableFormatter, as: TF def simple_test_data do [ [ c1: "r1 c1", c2: "r1 c2", c3: "r1 c3", c4: "r1+++c4"], [ c1: "r2 c1", c2: "r2 c2", c3: "r2 c3", c4: "r2 c4"], [ c1: "r3 c...
28.1
71
0.569395
ff4a116d5c1636224613c1e8660279e7b2e713e0
2,534
exs
Elixir
exercises/concept/rpn-calculator-output/test/rpn_calculator/output_test.exs
SaschaMann/elixir
2489747bba72a0ba5efa27e7e00441a428fdf987
[ "MIT" ]
1
2021-06-09T06:57:02.000Z
2021-06-09T06:57:02.000Z
exercises/concept/rpn-calculator-output/test/rpn_calculator/output_test.exs
SaschaMann/elixir
2489747bba72a0ba5efa27e7e00441a428fdf987
[ "MIT" ]
6
2022-03-04T13:05:25.000Z
2022-03-30T18:36:49.000Z
exercises/concept/rpn-calculator-output/test/rpn_calculator/output_test.exs
SaschaMann/elixir
2489747bba72a0ba5efa27e7e00441a428fdf987
[ "MIT" ]
null
null
null
defmodule RPNCalculator.OutputTest do use ExUnit.Case import ExUnit.CaptureIO def open(filename \\ "<nil>") do send(self(), {:open, filename}) case filename do "filename" -> {:ok, :stdio} "bad_filename" -> {:ok, spawn(fn -> nil end)} end end def close(_) do send(self(), :close)...
26.673684
108
0.640489
ff4a1e19f7d9686d3b1d80c692db92c7a0c07968
481
ex
Elixir
lib/rube/erc20/event_handler.ex
icecube11/rube
5d813c5b9f7b984786ac7db6fd2eca0939bf5468
[ "MIT" ]
null
null
null
lib/rube/erc20/event_handler.ex
icecube11/rube
5d813c5b9f7b984786ac7db6fd2eca0939bf5468
[ "MIT" ]
null
null
null
lib/rube/erc20/event_handler.ex
icecube11/rube
5d813c5b9f7b984786ac7db6fd2eca0939bf5468
[ "MIT" ]
null
null
null
defmodule Rube.Erc20.EventHandler do alias Rube.Tokens alias Rube.Erc20.Events def handle_event(blockchain, %{"address" => address}, %Events.Transfer{}) do Tokens.get_or_fetch(blockchain.id, address) end def handle_event(blockchain, %{"address" => address}, %Events.Mint{}) do Tokens.get_or_fetch(blo...
28.294118
78
0.721414
ff4a24e7757436ba87971b96e93c6e4924a4f941
1,164
exs
Elixir
test/lib/mix/tasks/get_address_test.exs
DenisGorbachev/crypto-cli
94e5097ff24237fbc5fdd3fea371a5c9a1f727e4
[ "MIT" ]
5
2018-09-19T09:13:15.000Z
2021-10-20T23:29:57.000Z
test/lib/mix/tasks/get_address_test.exs
DenisGorbachev/crypto-cli
94e5097ff24237fbc5fdd3fea371a5c9a1f727e4
[ "MIT" ]
6
2018-07-29T05:33:02.000Z
2018-09-18T20:42:19.000Z
test/lib/mix/tasks/get_address_test.exs
DenisGorbachev/crypto-cli
94e5097ff24237fbc5fdd3fea371a5c9a1f727e4
[ "MIT" ]
3
2018-07-24T05:55:04.000Z
2018-09-19T09:14:08.000Z
defmodule Mix.Tasks.Get.Address.Test do use Cryptozaur.Case, async: true use ExVCR.Mock, adapter: ExVCR.Adapter.Hackney, options: [clear_mock: true] test "user can get a deposit address for the specific currency", %{opts: opts} do use_cassette "tasks/get_address_ok", match_requests_on: [:query] do resu...
40.137931
105
0.696735
ff4a29dd2d102380f6bf9a3ff2393b6bb95eac2c
764
ex
Elixir
lib/uni_pg/pg.ex
nallwhy/uni_pg
ad661d1e39a3020b74151293ae063334db4d45fc
[ "MIT" ]
1
2021-08-06T04:56:15.000Z
2021-08-06T04:56:15.000Z
lib/uni_pg/pg.ex
nallwhy/uni_pg
ad661d1e39a3020b74151293ae063334db4d45fc
[ "MIT" ]
null
null
null
lib/uni_pg/pg.ex
nallwhy/uni_pg
ad661d1e39a3020b74151293ae063334db4d45fc
[ "MIT" ]
1
2021-07-12T14:12:12.000Z
2021-07-12T14:12:12.000Z
defmodule UniPg.Pg do def start_link(scope) do :pg.start_link(scope) end def join(scope, group, pids) when is_list(pids) do ensure_started(scope) :pg.join(scope, group, pids) end def leave(scope, group, pids) when is_list(pids) do ensure_started(scope) :pg.leave(scope, group, pids) end...
20.105263
62
0.689791
ff4a2a842e49b4a0f2c61c159f6d66a97e0f1bbe
478
exs
Elixir
priv/repo/migrations/20210205030432_create_submission_votes_table.exs
source-academy/cadet
c447552453f78799755de73f66999e4c9d20383c
[ "Apache-2.0" ]
27
2018-01-20T05:56:24.000Z
2021-05-24T03:21:55.000Z
priv/repo/migrations/20210205030432_create_submission_votes_table.exs
source-academy/cadet
c447552453f78799755de73f66999e4c9d20383c
[ "Apache-2.0" ]
731
2018-04-16T13:25:49.000Z
2021-06-22T07:16:12.000Z
priv/repo/migrations/20210205030432_create_submission_votes_table.exs
source-academy/cadet
c447552453f78799755de73f66999e4c9d20383c
[ "Apache-2.0" ]
43
2018-01-20T06:35:46.000Z
2021-05-05T03:22:35.000Z
defmodule Cadet.Repo.Migrations.AddSubmissionVotesTable do use Ecto.Migration def change do create table(:submission_votes) do add(:rank, :integer) add(:user_id, references(:users), null: false) add(:submission_id, references(:submissions), null: false) add(:question_id, references(:que...
29.875
97
0.702929
ff4a5abeb8572940e89139f292e3c93a002903e9
2,151
ex
Elixir
lib/instream/response.ex
qgadrian/instream
3dc828fe476817d442b83dc5da58ceca56e9886f
[ "Apache-2.0" ]
null
null
null
lib/instream/response.ex
qgadrian/instream
3dc828fe476817d442b83dc5da58ceca56e9886f
[ "Apache-2.0" ]
null
null
null
lib/instream/response.ex
qgadrian/instream
3dc828fe476817d442b83dc5da58ceca56e9886f
[ "Apache-2.0" ]
null
null
null
defmodule Instream.Response do @moduledoc false @type t :: {:error, term} | {status :: pos_integer, headers :: list, body :: String.t()} @doc """ Maybe parses a response based on the requested result type. """ @spec maybe_parse(t, Keyword.t()) :: any def maybe_parse({:error, _} = error, _), do: error ...
23.9
90
0.620177