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
62a833f7bbe2104e12f38004917215334ddd15a1
619
exs
Elixir
test/test_helper.exs
fbettag/rrpproxy.ex
37149fe32d8090bc1291e8a51d1200ffaf75c588
[ "MIT" ]
null
null
null
test/test_helper.exs
fbettag/rrpproxy.ex
37149fe32d8090bc1291e8a51d1200ffaf75c588
[ "MIT" ]
null
null
null
test/test_helper.exs
fbettag/rrpproxy.ex
37149fe32d8090bc1291e8a51d1200ffaf75c588
[ "MIT" ]
null
null
null
ExUnit.start() IO.puts("Cleaning old data from test-account...") with {:ok, domains, _} <- RRPproxy.query_domain_list(0, 1000) do for domain <- domains do RRPproxy.delete_domain(domain, "instant") :timer.sleep(:timer.seconds(2)) end end with {:ok, handles, _} <- RRPproxy.query_contact_list(0, 1000) do ...
22.925926
68
0.680129
62a8451b25697e8e9a599b05c74f55f4da2c8283
1,006
exs
Elixir
test/phone/b_countries/bi_test.exs
net/phone
18e1356d2f8d32fe3f95638c3c44bceab0164fb2
[ "Apache-2.0" ]
null
null
null
test/phone/b_countries/bi_test.exs
net/phone
18e1356d2f8d32fe3f95638c3c44bceab0164fb2
[ "Apache-2.0" ]
null
null
null
test/phone/b_countries/bi_test.exs
net/phone
18e1356d2f8d32fe3f95638c3c44bceab0164fb2
[ "Apache-2.0" ]
null
null
null
defmodule Phone.BITest do use ExUnit.Case, async: true main_module = Phone.BI Enum.map(main_module.codes, fn code -> test "#{inspect main_module} parses area code #{code}" do assert Phone.valid?(unquote("#{code}55555555")) assert {:ok, parsed} = Phone.parse(unquote("#{code}55555555")) ...
33.533333
80
0.632207
62a852c0c1f48cf5c0d84bdc0b4fad61b8620e6e
1,795
ex
Elixir
lib/ash/type/atom.ex
smt116/ash
880a17f197873eb1c8dc8d81a8b4d6d9cb570b3f
[ "MIT" ]
528
2019-12-08T01:51:54.000Z
2022-03-30T10:09:45.000Z
lib/ash/type/atom.ex
smt116/ash
880a17f197873eb1c8dc8d81a8b4d6d9cb570b3f
[ "MIT" ]
278
2019-12-04T15:25:06.000Z
2022-03-31T03:40:51.000Z
lib/ash/type/atom.ex
smt116/ash
880a17f197873eb1c8dc8d81a8b4d6d9cb570b3f
[ "MIT" ]
53
2020-08-17T22:08:09.000Z
2022-03-24T01:58:59.000Z
defmodule Ash.Type.Atom do @constraints [ one_of: [ type: :any, doc: "Allows constraining the value of an atom to a pre-defined list" ] ] @moduledoc """ Stores an atom as a string in the database A builtin type that can be referenced via `:atom` ### Constraints #{Ash.OptionsHelpers....
20.397727
98
0.603343
62a870b9606073e3071b617f372021d69350bc0c
4,147
ex
Elixir
lib/plug/conn/cookies.ex
gjaldon/plug
bfe88530b429c7b9b29b69b737772ef7c6aa2f6b
[ "Apache-2.0" ]
1
2016-08-17T11:39:26.000Z
2016-08-17T11:39:26.000Z
lib/plug/conn/cookies.ex
gjaldon/plug
bfe88530b429c7b9b29b69b737772ef7c6aa2f6b
[ "Apache-2.0" ]
null
null
null
lib/plug/conn/cookies.ex
gjaldon/plug
bfe88530b429c7b9b29b69b737772ef7c6aa2f6b
[ "Apache-2.0" ]
1
2019-11-23T12:09:14.000Z
2019-11-23T12:09:14.000Z
defmodule Plug.Conn.Cookies do @moduledoc """ Conveniences for encoding and decoding cookies. """ @doc """ Decodes the given cookies as given in a request header. If a cookie is invalid, it is automatically discarded from the result. ## Examples iex> decode("key1=value1, key2=value2") %{"k...
30.947761
101
0.59754
62a876798d8a09ea6927ef320de8a23eb7169b36
1,125
exs
Elixir
config/config.exs
pulzze/mbcs_rs
866e71348fa4b879d3b059fc9060f3a5632f990a
[ "MIT" ]
3
2019-06-07T02:25:15.000Z
2020-08-24T14:35:07.000Z
config/config.exs
pulzze/mbcs_rs
866e71348fa4b879d3b059fc9060f3a5632f990a
[ "MIT" ]
1
2021-04-14T09:11:54.000Z
2021-04-14T20:04:47.000Z
config/config.exs
pulzze/mbcs_rs
866e71348fa4b879d3b059fc9060f3a5632f990a
[ "MIT" ]
1
2021-04-14T10:57:33.000Z
2021-04-14T10:57:33.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...
36.290323
73
0.750222
62a89771247706c6b8bde8bc4eadd49f8bfa1291
451
ex
Elixir
lib/phoenix_oauth2_provider.ex
valuechainfactory/phoenix_oauth2_provider
5219115e6ca08af427b05771b1e1e6f9e45dc054
[ "MIT" ]
68
2017-04-08T08:31:19.000Z
2022-02-08T11:41:08.000Z
lib/phoenix_oauth2_provider.ex
valuechainfactory/phoenix_oauth2_provider
5219115e6ca08af427b05771b1e1e6f9e45dc054
[ "MIT" ]
32
2017-08-24T19:11:57.000Z
2021-12-29T07:18:49.000Z
lib/phoenix_oauth2_provider.ex
valuechainfactory/phoenix_oauth2_provider
5219115e6ca08af427b05771b1e1e6f9e45dc054
[ "MIT" ]
29
2017-04-07T22:45:46.000Z
2022-03-08T15:55:42.000Z
defmodule PhoenixOauth2Provider do @moduledoc """ A module that provides OAuth 2 server capabilities for Phoenix applications. ## Configuration config :phoenix_oauth2_provider, PhoenixOauth2Provider, current_resource_owner: :current_user, module: MyApp, router: MyApp.Router You c...
28.1875
78
0.742794
62a8cbbcebe267526e3e5947268552df7ffc89f3
1,982
ex
Elixir
clients/compute/lib/google_api/compute/v1/model/image.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/compute/lib/google_api/compute/v1/model/image.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/compute/lib/google_api/compute/v1/model/image.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...
31.460317
114
0.710394
62a8cd65b55685c16838a16ac5e1ea982d71582a
6,170
exs
Elixir
lib/mix/test/mix/utils_test.exs
DmitryKakurin/elixir
a5df6a5a830d4cff8b7c8da54342b66cab999e0f
[ "Apache-2.0" ]
1
2020-01-14T18:44:56.000Z
2020-01-14T18:44:56.000Z
lib/mix/test/mix/utils_test.exs
DmitryKakurin/elixir
a5df6a5a830d4cff8b7c8da54342b66cab999e0f
[ "Apache-2.0" ]
null
null
null
lib/mix/test/mix/utils_test.exs
DmitryKakurin/elixir
a5df6a5a830d4cff8b7c8da54342b66cab999e0f
[ "Apache-2.0" ]
1
2018-01-09T20:10:59.000Z
2018-01-09T20:10:59.000Z
Code.require_file("../test_helper.exs", __DIR__) defmodule Mix.Tasks.Cheers do end defmodule Mix.UtilsTest do use MixTest.Case doctest Mix.Utils setup do # Store state before test mix_home = System.get_env("MIX_HOME") # Clear all variables to get a reproducible test System.delete_env("MIX_HOME...
32.994652
99
0.663371
62a8e7b9c1c9e47804aa1343b34c7b7aad71a3fe
867
ex
Elixir
questions/aggregates/00046250-facrev.ex
zachvalenta/pgexercises
b16d5c28bb5e21732e6fb39090fa5902d0016e78
[ "BSD-2-Clause" ]
335
2015-02-09T09:21:34.000Z
2022-03-30T12:28:18.000Z
questions/aggregates/00046250-facrev.ex
zachvalenta/pgexercises
b16d5c28bb5e21732e6fb39090fa5902d0016e78
[ "BSD-2-Clause" ]
58
2015-05-12T03:10:54.000Z
2021-11-27T15:53:36.000Z
questions/aggregates/00046250-facrev.ex
zachvalenta/pgexercises
b16d5c28bb5e21732e6fb39090fa5902d0016e78
[ "BSD-2-Clause" ]
63
2015-03-18T18:15:56.000Z
2022-02-23T07:27:46.000Z
|QUESTIONNAME| Find the total revenue of each facility |QUESTION| Produce a list of facilities along with their total revenue. The output table should consist of facility name and revenue, sorted by revenue. Remember that there's a different cost for guests and members! |QUERY| select facs.name, sum(slots * case w...
34.68
228
0.771626
62a8fecf5627b812073fc666a831d7f8fa94546b
8,880
exs
Elixir
lib/elixir/test/elixir/regex_test.exs
Tica2/elixir
6cf1dcbfe4572fc75619f05e40c10fd0844083ef
[ "Apache-2.0" ]
null
null
null
lib/elixir/test/elixir/regex_test.exs
Tica2/elixir
6cf1dcbfe4572fc75619f05e40c10fd0844083ef
[ "Apache-2.0" ]
null
null
null
lib/elixir/test/elixir/regex_test.exs
Tica2/elixir
6cf1dcbfe4572fc75619f05e40c10fd0844083ef
[ "Apache-2.0" ]
null
null
null
Code.require_file "test_helper.exs", __DIR__ defmodule RegexTest do use ExUnit.Case, async: true test "multiline" do refute Regex.match?(~r/^b$/, "a\nb\nc") assert Regex.match?(~r/^b$/m, "a\nb\nc") end test "precedence" do assert {"aa", :unknown} |> elem(0) =~ ~r/(a)\1/ end test "backreferen...
35.238095
99
0.534122
62a92faa704c891c87f006a6fe8ec9a66f673963
458
exs
Elixir
test/kanban_liveview_web/views/error_view_test.exs
ivangsm/kanban_live
1dbbdaf3bf8dbaa4261a981e36c90088de02bbe9
[ "MIT" ]
null
null
null
test/kanban_liveview_web/views/error_view_test.exs
ivangsm/kanban_live
1dbbdaf3bf8dbaa4261a981e36c90088de02bbe9
[ "MIT" ]
null
null
null
test/kanban_liveview_web/views/error_view_test.exs
ivangsm/kanban_live
1dbbdaf3bf8dbaa4261a981e36c90088de02bbe9
[ "MIT" ]
null
null
null
defmodule KanbanLiveviewWeb.ErrorViewTest do use KanbanLiveviewWeb.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(KanbanLiveviewWeb.ErrorView, "404.html", []) == "Not Found" end test "render...
28.625
87
0.729258
62a93e4b83adf921c17ddc300bf0d5d721a80871
216
ex
Elixir
web/views/project_category_view.ex
roryqueue/code-corps-api
f23007e13fed2d7264fd2e2e97b1497488fb54ba
[ "MIT" ]
null
null
null
web/views/project_category_view.ex
roryqueue/code-corps-api
f23007e13fed2d7264fd2e2e97b1497488fb54ba
[ "MIT" ]
null
null
null
web/views/project_category_view.ex
roryqueue/code-corps-api
f23007e13fed2d7264fd2e2e97b1497488fb54ba
[ "MIT" ]
null
null
null
defmodule CodeCorps.ProjectCategoryView do use CodeCorps.Web, :view use JaSerializer.PhoenixView has_one :project, serializer: CodeCorps.ProjectView has_one :category, serializer: CodeCorps.CategoryView end
27
55
0.819444
62a955dfdb3ebc3afc99e541dd88edd2f1e9ed1d
3,494
ex
Elixir
clients/dataflow/lib/google_api/dataflow/v1b3/model/worker_message.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
null
null
null
clients/dataflow/lib/google_api/dataflow/v1b3/model/worker_message.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
null
null
null
clients/dataflow/lib/google_api/dataflow/v1b3/model/worker_message.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 &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...
52.939394
583
0.75186
62a991e383d071c56e40e0e1670126959a3b2347
710
ex
Elixir
lib/taper/channel/remote_call.ex
justinmcp/taper
43b2dbc200ddf06526b50858551ce16114709e3d
[ "MIT" ]
8
2020-10-12T14:12:04.000Z
2022-03-09T15:56:02.000Z
lib/taper/channel/remote_call.ex
justinmcp/taper
43b2dbc200ddf06526b50858551ce16114709e3d
[ "MIT" ]
null
null
null
lib/taper/channel/remote_call.ex
justinmcp/taper
43b2dbc200ddf06526b50858551ce16114709e3d
[ "MIT" ]
null
null
null
defmodule Taper.Channel.RemoteCall do use Phoenix.Channel def join("taper:remote_call:" <> channel_id, _params, %{assigns: %{session_id: _}} = socket) do {:ok, channel_id, socket} end # Send to local reducers def handle_in( "call", %{"remoteCallId" => call_id} = _params, %{topic:...
24.482759
97
0.622535
62a9a0d22c45f18db6d334258af3ed380b4a7dc0
1,263
exs
Elixir
config/prod.secret.exs
bryanchun/tic_tac_toe
cad397ce72857669a685337911c7ae692cbd1695
[ "MIT" ]
null
null
null
config/prod.secret.exs
bryanchun/tic_tac_toe
cad397ce72857669a685337911c7ae692cbd1695
[ "MIT" ]
null
null
null
config/prod.secret.exs
bryanchun/tic_tac_toe
cad397ce72857669a685337911c7ae692cbd1695
[ "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...
30.071429
67
0.722882
62a9a5158faf68b4f6c6f253169f5d264c096231
1,088
ex
Elixir
lib/membrane/core/child/pad_spec_handler.ex
vKxni/membrane_core
d14a67304b63706d6df520fa306dd2fda147c07c
[ "Apache-2.0" ]
null
null
null
lib/membrane/core/child/pad_spec_handler.ex
vKxni/membrane_core
d14a67304b63706d6df520fa306dd2fda147c07c
[ "Apache-2.0" ]
null
null
null
lib/membrane/core/child/pad_spec_handler.ex
vKxni/membrane_core
d14a67304b63706d6df520fa306dd2fda147c07c
[ "Apache-2.0" ]
null
null
null
defmodule Membrane.Core.Child.PadSpecHandler do @moduledoc false # Module parsing pads specifications in elements and bins. use Bunch alias Membrane.Core.{Bin, Child, Element} alias Membrane.Core.Child.PadModel alias Membrane.Pad require Membrane.Pad @doc """ Initializes pads info basing on eleme...
23.652174
74
0.66636
62a9ad23edc0e90f067f6a71d5cb3af17f445ae8
2,758
exs
Elixir
apps/site/test/site_web/controllers/fare_controller_test.exs
paulswartz/dotcom
73e43e7c61afd96b1928608ce8316a7ed0eb1440
[ "MIT" ]
null
null
null
apps/site/test/site_web/controllers/fare_controller_test.exs
paulswartz/dotcom
73e43e7c61afd96b1928608ce8316a7ed0eb1440
[ "MIT" ]
65
2021-05-06T18:38:33.000Z
2022-03-28T20:50:04.000Z
apps/site/test/site_web/controllers/fare_controller_test.exs
paulswartz/dotcom
73e43e7c61afd96b1928608ce8316a7ed0eb1440
[ "MIT" ]
null
null
null
defmodule SiteWeb.FareControllerTest do use SiteWeb.ConnCase import SiteWeb.FareController describe "show" do @tag skip: "Commenting out this test temporarily. As of Summer 2020 the limited service does not include this ferry." test "renders Georges Island ferry when present in the data", %{co...
32.833333
117
0.627991
62a9b80154c133c2bc76997c6e862200d738b7a2
156
exs
Elixir
test/test_helper.exs
travisboettcher/futurecyborg-blog
927c26ee9e94f0739847aa649050b5263ece9239
[ "MIT" ]
null
null
null
test/test_helper.exs
travisboettcher/futurecyborg-blog
927c26ee9e94f0739847aa649050b5263ece9239
[ "MIT" ]
null
null
null
test/test_helper.exs
travisboettcher/futurecyborg-blog
927c26ee9e94f0739847aa649050b5263ece9239
[ "MIT" ]
null
null
null
ExUnit.start Mix.Task.run "ecto.create", ["--quiet"] Mix.Task.run "ecto.migrate", ["--quiet"] Ecto.Adapters.SQL.begin_test_transaction(FutureCyborg.Repo)
22.285714
59
0.737179
62a9cbddb6b9a824063d9febdc717b2342fc9628
6,988
exs
Elixir
test/cocktail/monthly_test.exs
AltoFinancial/cocktail
c45207bf968e28a52f673cbbe520296b34c39fba
[ "MIT" ]
null
null
null
test/cocktail/monthly_test.exs
AltoFinancial/cocktail
c45207bf968e28a52f673cbbe520296b34c39fba
[ "MIT" ]
null
null
null
test/cocktail/monthly_test.exs
AltoFinancial/cocktail
c45207bf968e28a52f673cbbe520296b34c39fba
[ "MIT" ]
1
2020-09-30T05:51:52.000Z
2020-09-30T05:51:52.000Z
defmodule Cocktail.MonthlyTest do use ExUnit.Case alias Cocktail.Schedule import Cocktail.TestSupport.DateTimeSigil test "Monthly" do times = ~Y[2017-01-01 06:00:00 UTC] |> Cocktail.schedule() |> Schedule.add_recurrence_rule(:monthly) |> Cocktail.Schedule.occurrences() |> En...
28.639344
113
0.534631
62a9d059207e0322dadfeceac5196bf6f86038bf
1,180
ex
Elixir
lib/glimesh/janus.ex
Megami-Studios/glimesh.tv
57dde3a328fabdcc3305be48ae1b82df27b83c9b
[ "MIT" ]
328
2020-07-23T22:13:49.000Z
2022-03-31T21:22:28.000Z
lib/glimesh/janus.ex
Megami-Studios/glimesh.tv
57dde3a328fabdcc3305be48ae1b82df27b83c9b
[ "MIT" ]
362
2020-07-23T22:38:38.000Z
2022-03-24T02:11:16.000Z
lib/glimesh/janus.ex
Megami-Studios/glimesh.tv
57dde3a328fabdcc3305be48ae1b82df27b83c9b
[ "MIT" ]
72
2020-07-23T22:50:46.000Z
2022-02-02T11:59:32.000Z
defmodule Glimesh.Janus do @moduledoc """ Logic to help with Janus """ import Ecto.Query, warn: false alias Glimesh.Janus.EdgeRoute alias Glimesh.Repo @doc """ Fetches either the closest edge host depending on location, or falls back to a safe globally available alternative. """ def get_closest_ed...
21.454545
117
0.644915
62a9d50b9705c50490242871da394b09f42c8f3e
1,759
ex
Elixir
lib/quantum/task_registry.ex
barthez/quantum-elixir
264e8fad134ed3622360555def32d89d75c7e20e
[ "Apache-2.0" ]
991
2015-04-27T12:26:50.000Z
2019-07-22T06:24:02.000Z
lib/quantum/task_registry.ex
barthez/quantum-elixir
264e8fad134ed3622360555def32d89d75c7e20e
[ "Apache-2.0" ]
278
2015-05-27T18:15:53.000Z
2018-03-22T14:48:33.000Z
lib/quantum/task_registry.ex
barthez/quantum-elixir
264e8fad134ed3622360555def32d89d75c7e20e
[ "Apache-2.0" ]
96
2015-05-02T06:41:34.000Z
2020-11-30T19:44:00.000Z
defmodule Quantum.TaskRegistry do @moduledoc """ Registry to check if a task is already running on a node. """ use GenServer alias Quantum.Util @doc """ Start the registry ### Options * `name` - Name of the registry """ @spec start_link(GenServer.server()) :: GenServer.on_start() def sta...
20.694118
82
0.628766
62a9df3f531941bf5d44b5e911b38cf64400c7ca
809
ex
Elixir
lib/middleware/decode.ex
joshrotenberg/hn_ex
885bdf96063b6dc1cce3cd44795f04e4cc201feb
[ "MIT" ]
null
null
null
lib/middleware/decode.ex
joshrotenberg/hn_ex
885bdf96063b6dc1cce3cd44795f04e4cc201feb
[ "MIT" ]
null
null
null
lib/middleware/decode.ex
joshrotenberg/hn_ex
885bdf96063b6dc1cce3cd44795f04e4cc201feb
[ "MIT" ]
1
2020-10-18T03:22:17.000Z
2020-10-18T03:22:17.000Z
defmodule HN.MiddleWare.Decode do @moduledoc false @behaviour Tesla.Middleware alias Tesla.Env def call(env, next, _options) do Tesla.run(env, next) |> decode(env.opts[:decode_as]) end defp decode({:ok, %Env{status: status, body: body}}, nil) when status in 200..299, do: {:ok, body} defp d...
28.892857
86
0.631644
62aa059b807318210933073064bbd74fc614db2b
2,012
exs
Elixir
config/prod.exs
pbremer/solvent
76e4ec6e1230f25f55069c5702dbe628f35f0798
[ "MIT" ]
null
null
null
config/prod.exs
pbremer/solvent
76e4ec6e1230f25f55069c5702dbe628f35f0798
[ "MIT" ]
1
2021-03-10T11:08:45.000Z
2021-03-10T11:08:45.000Z
config/prod.exs
pbremer/solvent
76e4ec6e1230f25f55069c5702dbe628f35f0798
[ "MIT" ]
null
null
null
use Mix.Config # For production, don't forget to configure the url host # to something meaningful, Phoenix uses this information # when generating URLs. # # Note we also include the path to a cache manifest # containing the digested version of static files. This # manifest is generated by the `mix phx.digest` task, # ...
35.928571
66
0.714712
62aa191db618b051b902a2b3c0c72624878cc822
2,476
ex
Elixir
clients/content/lib/google_api/content/v2/model/holiday_cutoff.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
null
null
null
clients/content/lib/google_api/content/v2/model/holiday_cutoff.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
null
null
null
clients/content/lib/google_api/content/v2/model/holiday_cutoff.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 &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...
41.266667
242
0.720921
62aa357200c7b94280241f379176c8688bd8a8bb
1,529
ex
Elixir
lib/conv_claim_web/controllers/conversation_controller.ex
turnhub/turnio-conversation-claiming-replit
0af9c9dd8ed920f79b8bdaa5fbf6f0e7f9a92f8b
[ "Apache-2.0" ]
null
null
null
lib/conv_claim_web/controllers/conversation_controller.ex
turnhub/turnio-conversation-claiming-replit
0af9c9dd8ed920f79b8bdaa5fbf6f0e7f9a92f8b
[ "Apache-2.0" ]
null
null
null
lib/conv_claim_web/controllers/conversation_controller.ex
turnhub/turnio-conversation-claiming-replit
0af9c9dd8ed920f79b8bdaa5fbf6f0e7f9a92f8b
[ "Apache-2.0" ]
null
null
null
defmodule ConvClaimWeb.ConversationController do use ConvClaimWeb, :controller require Logger alias ConvClaim.TurnClient action_fallback(ConvClaimWeb.FallbackController) def create(conn, %{ "messages" => [%{"from" => to, "type" => "text", "text" => %{"body" => body}}] }) do reply_text = "Yo...
30.58
101
0.602354
62aa36b40364f9aa1f9797dd0e0cc3b99bc23d21
58
ex
Elixir
web/views/home_view.ex
strofcon/scipse
f7597b73dac2e7ffe9f5aa0a403600d9d8ea8eeb
[ "Apache-2.0" ]
null
null
null
web/views/home_view.ex
strofcon/scipse
f7597b73dac2e7ffe9f5aa0a403600d9d8ea8eeb
[ "Apache-2.0" ]
null
null
null
web/views/home_view.ex
strofcon/scipse
f7597b73dac2e7ffe9f5aa0a403600d9d8ea8eeb
[ "Apache-2.0" ]
null
null
null
defmodule Scipse.HomeView do use Scipse.Web, :view end
11.6
28
0.758621
62aa3b568ddc00c982130d2ae1b5f5358aa34fff
4,225
exs
Elixir
config/.credo.exs
techgaun/ex_twilio
b22f5421c4c709232b5ef53191cc19d5ffb5c99c
[ "MIT" ]
null
null
null
config/.credo.exs
techgaun/ex_twilio
b22f5421c4c709232b5ef53191cc19d5ffb5c99c
[ "MIT" ]
null
null
null
config/.credo.exs
techgaun/ex_twilio
b22f5421c4c709232b5ef53191cc19d5ffb5c99c
[ "MIT" ]
null
null
null
# This file contains the configuration for Credo and you are probably reading # this after creating it with `mix credo.gen.config`. # # If you find anything wrong or unclear in this file, please report an # issue on GitHub: https://github.com/rrrene/credo/issues # %{ # # You can have as many configs as you like in ...
41.421569
81
0.655621
62aa6fecaff8a4dcbf37048c44910fe474323534
11,087
ex
Elixir
lib/mix/lib/mix/dep/loader.ex
kenichi/elixir
8c27da88c70623cbe516d5310c885943395a82a2
[ "Apache-2.0" ]
1
2019-04-29T12:35:51.000Z
2019-04-29T12:35:51.000Z
lib/mix/lib/mix/dep/loader.ex
kenichi/elixir
8c27da88c70623cbe516d5310c885943395a82a2
[ "Apache-2.0" ]
null
null
null
lib/mix/lib/mix/dep/loader.ex
kenichi/elixir
8c27da88c70623cbe516d5310c885943395a82a2
[ "Apache-2.0" ]
null
null
null
# This module is responsible for loading dependencies # of the current project. This module and its functions # are private to Mix. defmodule Mix.Dep.Loader do @moduledoc false import Mix.Dep, only: [ok?: 1, mix?: 1, rebar?: 1, make?: 1] @doc """ Gets all direct children of the current `Mix.Project` as a `M...
25.843823
97
0.598088
62aa9b70fe12576d576603e74006c3b17fb3f4dd
229
exs
Elixir
apps/aecore/config/prod.exs
SingularityMatrix/elixir-node
ad126aa97931165185cf35454718ed2eee40ceed
[ "ISC" ]
null
null
null
apps/aecore/config/prod.exs
SingularityMatrix/elixir-node
ad126aa97931165185cf35454718ed2eee40ceed
[ "ISC" ]
null
null
null
apps/aecore/config/prod.exs
SingularityMatrix/elixir-node
ad126aa97931165185cf35454718ed2eee40ceed
[ "ISC" ]
null
null
null
use Mix.Config import_config "dev.exs" config :aecore, :pow, params: {"./mean28s-generic", "-t 5", 28}, max_target_change: 1 config :aecore, :miner, resumed_by_default: true config :aecore, :pow_module, Aecore.Pow.Cuckoo
19.083333
48
0.716157
62aab4ba6af736f27a3ac38d92ccf32ee4faf1f4
3,134
ex
Elixir
lib/harald/hci/synchronous_data.ex
RicardoTrindade/harald
3f56003265c29af0780730eb538183b50e55df2f
[ "MIT" ]
59
2019-02-16T00:09:58.000Z
2020-03-29T23:37:36.000Z
lib/harald/hci/synchronous_data.ex
RicardoTrindade/harald
3f56003265c29af0780730eb538183b50e55df2f
[ "MIT" ]
19
2019-02-15T22:41:43.000Z
2020-02-15T19:20:57.000Z
lib/harald/hci/synchronous_data.ex
RicardoTrindade/harald
3f56003265c29af0780730eb538183b50e55df2f
[ "MIT" ]
9
2020-05-07T00:02:36.000Z
2021-09-17T18:17:46.000Z
defmodule Harald.HCI.SynchronousData do @moduledoc """ Reference: version 5.2, vol 4, part E, 5.4.3. """ @enforce_keys [ :connection_handle, :packet_status_flag, :rfu, :data_total_length, :data ] defstruct [ :connection_handle, :packet_status_flag, :rfu, :data_total_len...
28.752294
281
0.676133
62aae56e342d582ad7b5b07a2261f5d28dda26d4
4,075
ex
Elixir
clients/dataproc/lib/google_api/dataproc/v1/model/template_parameter.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/dataproc/lib/google_api/dataproc/v1/model/template_parameter.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/dataproc/lib/google_api/dataproc/v1/model/template_parameter.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...
72.767857
1,592
0.763681
62ab05fad3f2fb6d6a91385abdb4a80ff404139a
400
ex
Elixir
apps/shopping/lib/shopping/checklists/checklist.ex
paulanthonywilson/shopping
11870c4d70b04fb139908793102ce3917d189275
[ "MIT" ]
null
null
null
apps/shopping/lib/shopping/checklists/checklist.ex
paulanthonywilson/shopping
11870c4d70b04fb139908793102ce3917d189275
[ "MIT" ]
null
null
null
apps/shopping/lib/shopping/checklists/checklist.ex
paulanthonywilson/shopping
11870c4d70b04fb139908793102ce3917d189275
[ "MIT" ]
null
null
null
defmodule Shopping.Checklists.Checklist do @moduledoc false use Ecto.Schema import Ecto.Changeset alias Shopping.Items.Item @type t :: %__MODULE__{} schema "checklists" do field :name, :string has_many :items, Item timestamps() end @doc false def changeset(checklist, attrs) do ch...
16
42
0.6725
62ab0b37e7bdc22e7cc758f99d410d45e74bd52d
180
ex
Elixir
lib/ironman/utils/io/default_impl.ex
TheEndIsNear/ironman
769e6777e93759810b168e7b6819ef7cb9ab5f80
[ "MIT" ]
39
2019-02-19T21:59:35.000Z
2021-03-31T21:43:58.000Z
lib/ironman/utils/io/default_impl.ex
TheEndIsNear/ironman
769e6777e93759810b168e7b6819ef7cb9ab5f80
[ "MIT" ]
17
2019-03-13T15:02:52.000Z
2020-11-09T20:33:44.000Z
lib/ironman/utils/io/default_impl.ex
TheEndIsNear/ironman
769e6777e93759810b168e7b6819ef7cb9ab5f80
[ "MIT" ]
5
2020-01-30T13:51:15.000Z
2020-10-25T18:27:59.000Z
defmodule Ironman.Utils.IO.DefaultImpl do @moduledoc false @behaviour Ironman.Utils.IO.Impl @spec get(String.t()) :: String.t() def get(out) do IO.gets(out) end end
18
41
0.688889
62ab0eb0b2f07aed3a9b17fa8b491894dbfe345b
1,878
ex
Elixir
test/support/cases/mix_case.ex
muhammedsekerci/lit
b58c6135134688ed1ed16f7b2e0f9a6396b2be67
[ "MIT" ]
14
2020-12-22T08:26:15.000Z
2022-01-11T16:08:14.000Z
test/support/cases/mix_case.ex
muhammedsekerci/lit
b58c6135134688ed1ed16f7b2e0f9a6396b2be67
[ "MIT" ]
2
2021-04-06T19:22:55.000Z
2021-05-31T14:02:40.000Z
test/support/cases/mix_case.ex
muhammedsekerci/lit
b58c6135134688ed1ed16f7b2e0f9a6396b2be67
[ "MIT" ]
7
2021-02-03T23:44:12.000Z
2021-12-27T05:09:40.000Z
defmodule Lit.MixCase do @moduledoc false use ExUnit.CaseTemplate using do quote do import Lit.MixCase end end @doc false # Generates tests on the given mix task to ensure it handles errors properly defmacro test_mix_config_errors(task) do quote location: :keep do # test "raises...
31.3
86
0.456337
62ab266d7d517eb1912161be853f9b3eab5ce511
522
ex
Elixir
lib/graphd/data_types/geo.ex
benpritchard/graphd
a301eceb4e686cb615d281590872404d1afa2b14
[ "Apache-2.0" ]
null
null
null
lib/graphd/data_types/geo.ex
benpritchard/graphd
a301eceb4e686cb615d281590872404d1afa2b14
[ "Apache-2.0" ]
null
null
null
lib/graphd/data_types/geo.ex
benpritchard/graphd
a301eceb4e686cb615d281590872404d1afa2b14
[ "Apache-2.0" ]
null
null
null
defmodule Graphd.DataType.Geo do use Ecto.Type defstruct lon: 0.0, lat: 0.0 @impl true def type(), do: :geo @impl true def cast(%{lat: lat, lon: lon}), do: {:ok, %__MODULE__{lat: lat, lon: lon}} def cast(_), do: :error @impl true def load(%{"type" => "Point", "coordinates" => [lat, lon]}) do {:...
21.75
77
0.582375
62ab3029cb3f39edcddb43fc3040e662a943aabd
3,816
ex
Elixir
lib/glimesh_web/router.ex
wolfcomp/glimesh.tv
3953e07946aabe85fe90d9d0f36df833b22d262a
[ "MIT" ]
null
null
null
lib/glimesh_web/router.ex
wolfcomp/glimesh.tv
3953e07946aabe85fe90d9d0f36df833b22d262a
[ "MIT" ]
null
null
null
lib/glimesh_web/router.ex
wolfcomp/glimesh.tv
3953e07946aabe85fe90d9d0f36df833b22d262a
[ "MIT" ]
null
null
null
defmodule GlimeshWeb.Router do use GlimeshWeb, :router import GlimeshWeb.UserAuth pipeline :browser do plug :accepts, ["html"] plug :fetch_session plug :fetch_live_flash plug :put_root_layout, {GlimeshWeb.LayoutView, :root} plug :protect_from_forgery plug :put_secure_browser_headers ...
34.071429
97
0.726939
62ab3d032763ff5d2eb50570d86dfaa21df67faf
70
exs
Elixir
test/test_helper.exs
Yeboster/Yeboster.me
443ba2762622aac0313bc9350bdd16895574d0d1
[ "MIT" ]
1
2020-10-09T06:28:30.000Z
2020-10-09T06:28:30.000Z
test/test_helper.exs
Yeboster/Yeboster.me
443ba2762622aac0313bc9350bdd16895574d0d1
[ "MIT" ]
null
null
null
test/test_helper.exs
Yeboster/Yeboster.me
443ba2762622aac0313bc9350bdd16895574d0d1
[ "MIT" ]
null
null
null
ExUnit.start() Ecto.Adapters.SQL.Sandbox.mode(Yeboster.Repo, :manual)
23.333333
54
0.785714
62ab3ff693546a9a50ade44fbf3541415745a57b
805
ex
Elixir
project2-bonus/lib/client.ex
SushmitDharurkar/Gossip-Protocol
548088b1474ddef6a06c74cfd476d0d98f6e20ac
[ "Apache-2.0" ]
4
2020-09-29T13:55:56.000Z
2020-10-31T11:58:42.000Z
project2-bonus/lib/client.ex
SushmitDharurkar/Gossip-Protocol
548088b1474ddef6a06c74cfd476d0d98f6e20ac
[ "Apache-2.0" ]
null
null
null
project2-bonus/lib/client.ex
SushmitDharurkar/Gossip-Protocol
548088b1474ddef6a06c74cfd476d0d98f6e20ac
[ "Apache-2.0" ]
null
null
null
defmodule Client do use GenServer def start_link(rumour) do GenServer.start_link(Server, rumour) end def send_message(server) do GenServer.cast(server, {:send_message}) end def set_neighbors(server, neighbors) do GenServer.cast(server, {:set_neighbors, neighbors}) ...
23.676471
71
0.629814
62ab76acaedd0d70379d97c7fd0e16f905fcc3e0
910
ex
Elixir
scottsouthworth+elixir/lib/owlbear/adventure.ex
NashFP/railway
6e9ab76fb6faa3ecdff98405001ee6fddacf478f
[ "MIT" ]
null
null
null
scottsouthworth+elixir/lib/owlbear/adventure.ex
NashFP/railway
6e9ab76fb6faa3ecdff98405001ee6fddacf478f
[ "MIT" ]
null
null
null
scottsouthworth+elixir/lib/owlbear/adventure.ex
NashFP/railway
6e9ab76fb6faa3ecdff98405001ee6fddacf478f
[ "MIT" ]
null
null
null
defmodule OwlBear.Adventure do alias OwlBear.Adventure.Location defmodule Location do defstruct %{ name: nil, danger: 0, color: nil, actions: [] } end def find_location(name) do case name do :dungeon -> {:ok, %Location{name: name, danger: 10, color: :slate, actions: [...
27.575758
107
0.601099
62abff05d9ff8da181998544a0459daf36b25004
1,856
ex
Elixir
apps/ewallet_api/lib/ewallet_api/v1/error_handler.ex
jimpeebles/ewallet
ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405
[ "Apache-2.0" ]
null
null
null
apps/ewallet_api/lib/ewallet_api/v1/error_handler.ex
jimpeebles/ewallet
ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405
[ "Apache-2.0" ]
null
null
null
apps/ewallet_api/lib/ewallet_api/v1/error_handler.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...
30.42623
87
0.711207
62ac1962ce88a1671dd02bfe4bb8e8fce3cb3172
133
ex
Elixir
lib/version_manager.ex
tashirosota/ex-rubenium
0ddb30c31b678889a65dae7674ab7010e1dd7c5e
[ "Apache-2.0" ]
24
2022-01-13T23:13:11.000Z
2022-03-27T18:02:39.000Z
lib/version_manager.ex
tashirosota/ex-rubenium
0ddb30c31b678889a65dae7674ab7010e1dd7c5e
[ "Apache-2.0" ]
16
2022-01-16T09:18:17.000Z
2022-02-08T01:10:09.000Z
lib/version_manager.ex
tashirosota/ex-rubenium
0ddb30c31b678889a65dae7674ab7010e1dd7c5e
[ "Apache-2.0" ]
6
2022-01-16T04:40:42.000Z
2022-02-07T14:56:26.000Z
defmodule VersionManager do @moduledoc false def support_version? do Version.match?(System.version(), ">= 1.12.0") end end
19
49
0.706767
62ac2f3fef4cc86190aa67cbfb6f7071041d9db2
1,920
ex
Elixir
lib/asciinema_web/controllers/api_token_controller.ex
lyknode/asciinema-server
b468a9c990a43d78fbd63ce32eedc37535ca45a8
[ "Apache-2.0" ]
null
null
null
lib/asciinema_web/controllers/api_token_controller.ex
lyknode/asciinema-server
b468a9c990a43d78fbd63ce32eedc37535ca45a8
[ "Apache-2.0" ]
null
null
null
lib/asciinema_web/controllers/api_token_controller.ex
lyknode/asciinema-server
b468a9c990a43d78fbd63ce32eedc37535ca45a8
[ "Apache-2.0" ]
null
null
null
defmodule AsciinemaWeb.ApiTokenController do use AsciinemaWeb, :controller alias Asciinema.Accounts alias Asciinema.Accounts.User plug :require_current_user def show(conn, %{"api_token" => token}) do case Accounts.get_or_create_api_token(token, conn.assigns.current_user) do {:ok, api_token} -> ...
29.538462
86
0.641146
62ac84639cd1e129d09383da6e8ead9be36636fe
2,333
ex
Elixir
clients/service_directory/lib/google_api/service_directory/v1beta1/model/location.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/service_directory/lib/google_api/service_directory/v1beta1/model/location.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/service_directory/lib/google_api/service_directory/v1beta1/model/location.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...
39.542373
186
0.702529
62acace32281524c86858ba74b8c7de2bfea8dde
5,923
ex
Elixir
lib/token.ex
eryx67/query_builder
171acaafc460ac47b26d1f3f510a8009b264a536
[ "Apache-2.0" ]
null
null
null
lib/token.ex
eryx67/query_builder
171acaafc460ac47b26d1f3f510a8009b264a536
[ "Apache-2.0" ]
null
null
null
lib/token.ex
eryx67/query_builder
171acaafc460ac47b26d1f3f510a8009b264a536
[ "Apache-2.0" ]
1
2021-07-23T14:42:08.000Z
2021-07-23T14:42:08.000Z
defmodule QueryBuilder.Token do @moduledoc false defmodule State do @moduledoc false # The `token` function below received way too many arguments (which made the code # harder to read and led `mix format` to split the arguments over multiple lines). # # The purpose of this struct is to reduce t...
30.848958
97
0.683775
62acc5f4e96860eb60f9d02abe33f83b4ff15944
2,643
ex
Elixir
apps/admin_app/lib/admin_app_web/controllers/taxonomy_controller.ex
Acrecio/avia
54d264fc179b5b5f17d174854bdca063e1d935e9
[ "MIT" ]
456
2018-09-20T02:40:59.000Z
2022-03-07T08:53:48.000Z
apps/admin_app/lib/admin_app_web/controllers/taxonomy_controller.ex
Acrecio/avia
54d264fc179b5b5f17d174854bdca063e1d935e9
[ "MIT" ]
273
2018-09-19T06:43:43.000Z
2021-08-07T12:58:26.000Z
apps/admin_app/lib/admin_app_web/controllers/taxonomy_controller.ex
Acrecio/avia
54d264fc179b5b5f17d174854bdca063e1d935e9
[ "MIT" ]
122
2018-09-26T16:32:46.000Z
2022-03-13T11:44:19.000Z
defmodule AdminAppWeb.TaxonomyController do use AdminAppWeb, :controller alias Snitch.Domain.Taxonomy alias Snitch.Data.Schema.Taxon alias Snitch.Data.Schema.Taxonomy, as: TaxonomySchema alias AdminAppWeb.TaxonomyView alias Snitch.Data.Model.Image alias Snitch.Core.Tools.MultiTenancy.Repo import Ecto.Q...
28.728261
90
0.603103
62acd87eea78bfc52f22c6ed8e451af562db2bd9
550
ex
Elixir
vendor/tree-sitter-elixir/test/tags/protocol.ex
Mu-L/difftastic
f91357b72936c65a56d74f1221bec3878a996575
[ "MIT" ]
125
2021-09-30T10:55:46.000Z
2022-03-16T10:49:32.000Z
vendor/tree-sitter-elixir/test/tags/protocol.ex
Mu-L/difftastic
f91357b72936c65a56d74f1221bec3878a996575
[ "MIT" ]
21
2021-10-01T22:47:58.000Z
2022-03-25T19:43:13.000Z
vendor/tree-sitter-elixir/test/tags/protocol.ex
Mu-L/difftastic
f91357b72936c65a56d74f1221bec3878a996575
[ "MIT" ]
9
2021-10-13T13:06:11.000Z
2022-02-12T17:16:06.000Z
defprotocol Countable do # ^ definition.module def count(data) # ^ definition.function end defimpl Countable, for: Binary do # ^ reference.module # ^ reference.module def count(binary), do: byte_size(binary) # ^ definition.function # ^ refe...
25
43
0.556364
62ace4275d6b7732ef9b91b0c7fb3b2225a5e1f4
8,535
ex
Elixir
lib/phoenix/view.ex
chvanikoff/phoenix
bf7011b9f87afff0e0012d5f7a3adf0463040765
[ "MIT" ]
null
null
null
lib/phoenix/view.ex
chvanikoff/phoenix
bf7011b9f87afff0e0012d5f7a3adf0463040765
[ "MIT" ]
null
null
null
lib/phoenix/view.ex
chvanikoff/phoenix
bf7011b9f87afff0e0012d5f7a3adf0463040765
[ "MIT" ]
null
null
null
defmodule Phoenix.View do @moduledoc """ Defines the view layer of a Phoenix application. This module is used to define the application main view, which serves as the base for all other views and templates in the application. The view layer also contains conveniences for rendering templates, including s...
31.149635
91
0.670885
62ace5c82513148cca4c8f6c3384fa59dee44c8a
510
ex
Elixir
lib/xgen/generator/callback_helpers.ex
ejpcmac/ex_gen
ccd2beec8912fa6ea6ff9839454986bf3124b001
[ "MIT" ]
1
2019-10-06T07:31:06.000Z
2019-10-06T07:31:06.000Z
lib/xgen/generator/callback_helpers.ex
ejpcmac/xgen
ccd2beec8912fa6ea6ff9839454986bf3124b001
[ "MIT" ]
30
2018-08-29T12:52:59.000Z
2020-05-28T04:54:33.000Z
lib/xgen/generator/callback_helpers.ex
ejpcmac/ex_gen
ccd2beec8912fa6ea6ff9839454986bf3124b001
[ "MIT" ]
1
2020-09-25T09:39:56.000Z
2020-09-25T09:39:56.000Z
defmodule XGen.Generator.CallbackHelpers do @moduledoc """ Helpers to create generator callbacks. """ import Marcus @doc """ Runs a command. """ @spec run_command(binary(), [binary()], keyword()) :: :ok def run_command(cmd, args, opts \\ []) do env = Enum.map(opts[:env] || [], fn {key, value} ->...
23.181818
79
0.57451
62ad0a042b8b8444467375c0165bb71eeef218f5
2,063
ex
Elixir
clients/content/lib/google_api/content/v21/model/accounts_auth_info_response.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/content/lib/google_api/content/v21/model/accounts_auth_info_response.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/content/lib/google_api/content/v21/model/accounts_auth_info_response.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "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...
38.924528
184
0.744547
62ad680b16a1f30a0eecf2eb64f70da262deeb6a
2,190
ex
Elixir
clients/compute/lib/google_api/compute/v1/model/subnetworks_scoped_list_warning.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/compute/lib/google_api/compute/v1/model/subnetworks_scoped_list_warning.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/compute/lib/google_api/compute/v1/model/subnetworks_scoped_list_warning.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "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...
40.555556
194
0.727854
62ad75f14cb0a80c284eb7062e0862a132fb92c9
3,514
ex
Elixir
lib/satchel.ex
the-mikedavis/satchel
1821d2e1fb10ae3d0f3a09b649c641a438361719
[ "BSD-3-Clause" ]
null
null
null
lib/satchel.ex
the-mikedavis/satchel
1821d2e1fb10ae3d0f3a09b649c641a438361719
[ "BSD-3-Clause" ]
null
null
null
lib/satchel.ex
the-mikedavis/satchel
1821d2e1fb10ae3d0f3a09b649c641a438361719
[ "BSD-3-Clause" ]
null
null
null
defmodule Satchel do @moduledoc """ Satchel is a library for serializing and de-serializing values. Currently, only little endian is supported (for my own convenience). The following types are supported: * `bool` (unsigned 8-bit int) * `int8` * `uint8` * `int16` * `uint16` * `int32` * `uint32` ...
29.041322
79
0.623221
62ad7a24882f806470d7eba10c8f16dbf8d3f250
3,182
exs
Elixir
mix.exs
shiroyasha/wallaby
a81c66c143cd4827735c0d708ceae8bde91668c0
[ "MIT" ]
null
null
null
mix.exs
shiroyasha/wallaby
a81c66c143cd4827735c0d708ceae8bde91668c0
[ "MIT" ]
null
null
null
mix.exs
shiroyasha/wallaby
a81c66c143cd4827735c0d708ceae8bde91668c0
[ "MIT" ]
null
null
null
defmodule Wallaby.Mixfile do use Mix.Project @version "0.22.0" @drivers ~w(phantom selenium chrome) @selected_driver System.get_env("WALLABY_DRIVER") @maintainers [ "Chris Keathley", "Tobias Pfeiffer", "Aaron Renner", ] def project do [app: :wallaby, version: @version, elixir: ...
29.738318
85
0.571653
62ad7d63f68871a26ebecec1229d55aece763686
2,340
ex
Elixir
lib/new_relic/util.ex
TheRealReal/elixir_agent
db757b24543c3d213495435e71340897f9455d16
[ "Apache-2.0" ]
null
null
null
lib/new_relic/util.ex
TheRealReal/elixir_agent
db757b24543c3d213495435e71340897f9455d16
[ "Apache-2.0" ]
null
null
null
lib/new_relic/util.ex
TheRealReal/elixir_agent
db757b24543c3d213495435e71340897f9455d16
[ "Apache-2.0" ]
null
null
null
defmodule NewRelic.Util do @moduledoc false def hostname do with {:ok, name} <- :inet.gethostname(), do: to_string(name) end def pid, do: System.get_pid() |> String.to_integer() def post(url, body, headers) when is_binary(body), do: HTTPoison.post(url, body, headers) def post(url, body, headers)...
25.434783
81
0.627778
62ad965230fb3b66ec35de64cc95348b62310dff
2,078
ex
Elixir
clients/content/lib/google_api/content/v21/model/search_request.ex
jechol/elixir-google-api
0290b683dfc6491ca2ef755a80bc329378738d03
[ "Apache-2.0" ]
null
null
null
clients/content/lib/google_api/content/v21/model/search_request.ex
jechol/elixir-google-api
0290b683dfc6491ca2ef755a80bc329378738d03
[ "Apache-2.0" ]
null
null
null
clients/content/lib/google_api/content/v21/model/search_request.ex
jechol/elixir-google-api
0290b683dfc6491ca2ef755a80bc329378738d03
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
39.207547
275
0.723292
62ad968d2226db84b7d641f0a5d1e2e273ee31dc
2,597
ex
Elixir
lib/aws_ingress_operator/schemas/subnet.ex
bennyhat/aws_ingress_operator
81a1c873cbea95a8ba721ac1147c421dcaf1de45
[ "MIT" ]
null
null
null
lib/aws_ingress_operator/schemas/subnet.ex
bennyhat/aws_ingress_operator
81a1c873cbea95a8ba721ac1147c421dcaf1de45
[ "MIT" ]
null
null
null
lib/aws_ingress_operator/schemas/subnet.ex
bennyhat/aws_ingress_operator
81a1c873cbea95a8ba721ac1147c421dcaf1de45
[ "MIT" ]
null
null
null
defmodule AwsIngressOperator.Schemas.SubnetCidrBlockState do use Ecto.Schema import Ecto.Changeset embedded_schema do field(:state, :string) field(:status_message, :string) end @cast_fields [ :state, :status_message ] use Accessible def changeset(changes), do: changeset(%__MODULE__{}...
23.396396
81
0.733154
62ada2c4a49bc3b7e8e464121f0b593b02b60948
992
exs
Elixir
test/simple_schema/type/unique_test.exs
kianmeng/simple_schema
abded0835c245784cad008869e156f1be6f98f7b
[ "Apache-2.0" ]
16
2017-12-07T15:42:28.000Z
2020-11-07T14:15:08.000Z
test/simple_schema/type/unique_test.exs
kianmeng/simple_schema
abded0835c245784cad008869e156f1be6f98f7b
[ "Apache-2.0" ]
7
2018-04-02T09:04:50.000Z
2021-12-15T01:22:13.000Z
test/simple_schema/type/unique_test.exs
kianmeng/simple_schema
abded0835c245784cad008869e156f1be6f98f7b
[ "Apache-2.0" ]
3
2018-03-31T03:41:23.000Z
2020-10-07T13:28:43.000Z
defmodule SimpleSchema.Type.UniqueTest do use ExUnit.Case doctest SimpleSchema.Type.Unique defmodule MyStruct do import SimpleSchema, only: [defschema: 1] defschema( id: :integer, name: :string ) end test "pass unique data" do json = [ %{"id" => 1, "name" => "John"}, ...
24.195122
86
0.594758
62ae01e36c1a02c33a2059b1576b8adbfdf75d83
217
exs
Elixir
apps/alerts/test/test_helper.exs
noisecapella/dotcom
d5ef869412102d2230fac3dcc216f01a29726227
[ "MIT" ]
42
2019-05-29T16:05:30.000Z
2021-08-09T16:03:37.000Z
apps/alerts/test/test_helper.exs
noisecapella/dotcom
d5ef869412102d2230fac3dcc216f01a29726227
[ "MIT" ]
872
2019-05-29T17:55:50.000Z
2022-03-30T09:28:43.000Z
apps/alerts/test/test_helper.exs
noisecapella/dotcom
d5ef869412102d2230fac3dcc216f01a29726227
[ "MIT" ]
12
2019-07-01T18:33:21.000Z
2022-03-10T02:13:57.000Z
# Ensure tzdata is up to date {:ok, _} = Application.ensure_all_started(:tzdata) _ = Tzdata.ReleaseUpdater.poll_for_update() ExUnit.start() # Report warnings as errors Code.compiler_options(warnings_as_errors: true)
27.125
50
0.788018
62ae3484b9f6724c842e5bcdd74e0a764b5f38aa
2,416
ex
Elixir
lib/shouldi/matchers/context.ex
batate/shouldi
99d085bae8fd3407b65417e43ad64e9ef6942a30
[ "Apache-2.0" ]
120
2015-01-06T13:21:46.000Z
2021-02-01T17:18:05.000Z
lib/shouldi/matchers/context.ex
batate/shouldi
99d085bae8fd3407b65417e43ad64e9ef6942a30
[ "Apache-2.0" ]
24
2015-03-02T14:18:15.000Z
2016-07-14T09:44:19.000Z
lib/shouldi/matchers/context.ex
batate/shouldi
99d085bae8fd3407b65417e43ad64e9ef6942a30
[ "Apache-2.0" ]
19
2015-02-04T11:37:27.000Z
2016-12-14T08:14:24.000Z
defmodule ShouldI.Matchers.Context do @moduledoc """ Convenience macros for generating short test cases of common structure. These matchers work with the context. """ import ExUnit.Assertions import ShouldI.Matcher @doc """ Exactly match a key in the context to a value. ## Examples setup conte...
23.686275
111
0.650662
62ae3f23257d828d2b6f13631a891b05b565896a
4,465
ex
Elixir
lib/phoenix_live_view/upload_channel.ex
Zurga/phoenix_live_view
c888d910b4fcce8374eaa102d124d7cb84bf9785
[ "MIT" ]
null
null
null
lib/phoenix_live_view/upload_channel.ex
Zurga/phoenix_live_view
c888d910b4fcce8374eaa102d124d7cb84bf9785
[ "MIT" ]
null
null
null
lib/phoenix_live_view/upload_channel.ex
Zurga/phoenix_live_view
c888d910b4fcce8374eaa102d124d7cb84bf9785
[ "MIT" ]
null
null
null
defmodule Phoenix.LiveView.UploadChannel do @moduledoc false use Phoenix.Channel, log_handle_in: false @timeout :infinity require Logger alias Phoenix.LiveView.{Static, Channel} def cancel(pid) do GenServer.call(pid, :cancel, @timeout) end def consume(pid, entry, func) when is_function(func, 1) ...
27.561728
101
0.638522
62ae6b671119c8c0363d38171af1279ddfcbb724
1,503
ex
Elixir
lib/inmana_web/endpoint.ex
pouthergust/inmana
06dd2bf029c5f221ec9f404f870c446dbb3cf04b
[ "MIT" ]
null
null
null
lib/inmana_web/endpoint.ex
pouthergust/inmana
06dd2bf029c5f221ec9f404f870c446dbb3cf04b
[ "MIT" ]
null
null
null
lib/inmana_web/endpoint.ex
pouthergust/inmana
06dd2bf029c5f221ec9f404f870c446dbb3cf04b
[ "MIT" ]
null
null
null
defmodule InmanaWeb.Endpoint do use Phoenix.Endpoint, otp_app: :inmana # The session will be stored in the cookie and signed, # this means its contents can be read but not tampered with. # Set :encryption_salt if you would also like to encrypt it. @session_options [ store: :cookie, key: "_inmana_key"...
28.358491
97
0.71324
62ae8100be0fac6409942aca7c9a5b52810fd595
5,326
exs
Elixir
exercises/concept/newsletter/test/newsletter_test.exs
SaschaMann/elixir
2489747bba72a0ba5efa27e7e00441a428fdf987
[ "MIT" ]
1
2021-06-09T06:57:02.000Z
2021-06-09T06:57:02.000Z
exercises/concept/newsletter/test/newsletter_test.exs
SaschaMann/elixir
2489747bba72a0ba5efa27e7e00441a428fdf987
[ "MIT" ]
6
2022-03-04T13:05:25.000Z
2022-03-30T18:36:49.000Z
exercises/concept/newsletter/test/newsletter_test.exs
SaschaMann/elixir
2489747bba72a0ba5efa27e7e00441a428fdf987
[ "MIT" ]
null
null
null
defmodule NewsletterTest do # run test synchronously to be able to use the same file path for all tests without write conflicts use ExUnit.Case, async: false @temp_file_path Path.join(["assets", "temp.txt"]) setup do File.write!(@temp_file_path, "") on_exit(fn -> File.rm!(@temp_file_path) end) end ...
27.739583
101
0.572475
62ae9790640e84008183fd5f056953701523c601
3,169
ex
Elixir
lib/changelog/schema/post/post.ex
PsOverflow/changelog.com
53f4ecfc39b021c6b8cfcc0fa11f29aff8038a7f
[ "MIT" ]
null
null
null
lib/changelog/schema/post/post.ex
PsOverflow/changelog.com
53f4ecfc39b021c6b8cfcc0fa11f29aff8038a7f
[ "MIT" ]
null
null
null
lib/changelog/schema/post/post.ex
PsOverflow/changelog.com
53f4ecfc39b021c6b8cfcc0fa11f29aff8038a7f
[ "MIT" ]
null
null
null
defmodule Changelog.Post do use Changelog.Schema, default_sort: :published_at alias Changelog.{NewsItem, Person, PostTopic, Regexp} schema "posts" do field :title, :string field :slug, :string field :guid, :string field :canonical_url, :string field :tldr, :string field :body, :string ...
31.068627
142
0.67971
62aeb5f696f90974baf1c2d278e33f055a50170d
399
ex
Elixir
lib/blue_jet_web/views/email_template_view.ex
freshcom/freshcom-api
4f2083277943cf4e4e8fd4c4d443c7309f285ad7
[ "BSD-3-Clause" ]
44
2018-05-09T01:08:57.000Z
2021-01-19T07:25:26.000Z
lib/blue_jet_web/views/email_template_view.ex
freshcom/freshcom-api
4f2083277943cf4e4e8fd4c4d443c7309f285ad7
[ "BSD-3-Clause" ]
36
2018-05-08T23:59:54.000Z
2018-09-28T13:50:30.000Z
lib/blue_jet_web/views/email_template_view.ex
freshcom/freshcom-api
4f2083277943cf4e4e8fd4c4d443c7309f285ad7
[ "BSD-3-Clause" ]
9
2018-05-09T14:09:19.000Z
2021-03-21T21:04:04.000Z
defmodule BlueJetWeb.EmailTemplateView do use BlueJetWeb, :view use JaSerializer.PhoenixView attributes [ :system_label, :name, :subject, :reply_to, :to, :body_html, :body_text, :description, :inserted_at, :updated_at ] has_many :emails, serializer: BlueJetWeb.Email...
15.346154
81
0.674185
62aeccc2ade2be13e7d2df2aee2a2876213d52cf
2,635
exs
Elixir
mix.exs
sourceboat/hackathon-14-elixir-nerves-hot-button
ea62cab982d51796dfcf19d8aadb781ae28be1b7
[ "MIT" ]
null
null
null
mix.exs
sourceboat/hackathon-14-elixir-nerves-hot-button
ea62cab982d51796dfcf19d8aadb781ae28be1b7
[ "MIT" ]
null
null
null
mix.exs
sourceboat/hackathon-14-elixir-nerves-hot-button
ea62cab982d51796dfcf19d8aadb781ae28be1b7
[ "MIT" ]
null
null
null
defmodule HotButton.MixProject do use Mix.Project @app :hot_button @version "0.1.0" @all_targets [:rpi, :rpi0, :rpi2, :rpi3, :rpi3a, :rpi4, :bbb, :osd32mp1, :x86_64] def project do [ app: @app, version: @version, elixir: "~> 1.9", archives: [nerves_bootstrap: "~> 1.10"], st...
34.671053
83
0.604175
62aed087b08e4d140c377491a52b15fc351c01bd
81
ex
Elixir
lib/softwaremaxims_web/views/consulting_view.ex
DianaOlympos/dianao-softwaremaxims
c153908fb6abe90487a05c64fd806c88b3414295
[ "MIT" ]
null
null
null
lib/softwaremaxims_web/views/consulting_view.ex
DianaOlympos/dianao-softwaremaxims
c153908fb6abe90487a05c64fd806c88b3414295
[ "MIT" ]
7
2018-10-13T20:45:27.000Z
2018-10-29T12:42:22.000Z
lib/softwaremaxims_web/views/consulting_view.ex
DianaOlympos/dianao-softwaremaxims
c153908fb6abe90487a05c64fd806c88b3414295
[ "MIT" ]
null
null
null
defmodule SoftwaremaximsWeb.ConsultingView do use SoftwaremaximsWeb, :view end
20.25
45
0.851852
62aed22823a7aefd2f80216c33522f91000bcb26
474
ex
Elixir
app/lib/fish_finder_web/views/error_helpers.ex
florinpatrascu/elixir_grafana_loki_tempo
6c3df19641c2aa40f1b1172fe31bb7b16dd3937a
[ "MIT" ]
null
null
null
app/lib/fish_finder_web/views/error_helpers.ex
florinpatrascu/elixir_grafana_loki_tempo
6c3df19641c2aa40f1b1172fe31bb7b16dd3937a
[ "MIT" ]
null
null
null
app/lib/fish_finder_web/views/error_helpers.ex
florinpatrascu/elixir_grafana_loki_tempo
6c3df19641c2aa40f1b1172fe31bb7b16dd3937a
[ "MIT" ]
1
2022-01-26T02:57:38.000Z
2022-01-26T02:57:38.000Z
defmodule FFWeb.ErrorHelpers do @moduledoc """ Conveniences for translating and building error messages. """ @doc """ Translates an error message. """ def translate_error({msg, opts}) do # Because the error messages we show in our forms and APIs # are defined inside Ecto, we need to translate the...
27.882353
69
0.668776
62aedd846a102cb697c71077b1c8debb6007cfe9
10,121
ex
Elixir
generated_code_examples/elixir/classification/svm.ex
lucasavila00/m2cgen
4f41ce60cf7f5a6f198d0adc43201f9e5a5aedeb
[ "MIT" ]
null
null
null
generated_code_examples/elixir/classification/svm.ex
lucasavila00/m2cgen
4f41ce60cf7f5a6f198d0adc43201f9e5a5aedeb
[ "MIT" ]
null
null
null
generated_code_examples/elixir/classification/svm.ex
lucasavila00/m2cgen
4f41ce60cf7f5a6f198d0adc43201f9e5a5aedeb
[ "MIT" ]
null
null
null
defmodule Model do @compile {:inline, read: 2} defp read(bin, pos) do <<_::size(pos)-unit(64)-binary, value::float, _::binary>> = bin value end defp list_to_binary(list) do for i <- list, into: <<>>, do: <<i::float>> end def score(input) do input = list_to_binary(...
86.504274
1,610
0.461614
62aee8f973589a6b79284c19f4b8deaf575ea1f5
2,302
ex
Elixir
lib/aoc/day_16.ex
CraigCottingham/advent-of-code-2019
76a1545e4cca14fe1e9e0de475de253170da1645
[ "Apache-2.0" ]
null
null
null
lib/aoc/day_16.ex
CraigCottingham/advent-of-code-2019
76a1545e4cca14fe1e9e0de475de253170da1645
[ "Apache-2.0" ]
null
null
null
lib/aoc/day_16.ex
CraigCottingham/advent-of-code-2019
76a1545e4cca14fe1e9e0de475de253170da1645
[ "Apache-2.0" ]
null
null
null
defmodule AoC.Day16 do @moduledoc false def part_1 do "data/day16-input.txt" |> File.stream!() |> Enum.map(&String.trim/1) |> Enum.join("") |> split_signal() |> checksum(100) end def part_2 do "data/day16-input.txt" |> File.stream!() |> Enum.map(&String.trim/1) |> Enum....
21.92381
97
0.583406
62af0be026126334a342a63de69298aff885595c
4,731
ex
Elixir
lib/backpack/moment/calculator/shared.ex
imranismail/backpack
b6c51a4d700c21b6b0e67fcb425bfd76ce15077c
[ "MIT" ]
2
2017-09-03T15:16:19.000Z
2018-02-07T02:25:10.000Z
lib/backpack/moment/calculator/shared.ex
imranismail/backpack.ex
b6c51a4d700c21b6b0e67fcb425bfd76ce15077c
[ "MIT" ]
null
null
null
lib/backpack/moment/calculator/shared.ex
imranismail/backpack.ex
b6c51a4d700c21b6b0e67fcb425bfd76ce15077c
[ "MIT" ]
null
null
null
defmodule Backpack.Moment.Calculator.Shared do def ago(term, seconds) do Backpack.Moment.Calculator.shift(term, seconds: -seconds) end def from_now(term, seconds) do Backpack.Moment.Calculator.shift(term, seconds: seconds) end def minutes_ago(term, minutes) do Backpack.Moment.Calculator.shift(te...
23.537313
98
0.641302
62af447ce621bfc73af1fa8d988c16d4d694fc67
1,194
ex
Elixir
clients/fusion_tables/lib/google_api/fusion_tables/v2/connection.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/fusion_tables/lib/google_api/fusion_tables/v2/connection.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/fusion_tables/lib/google_api/fusion_tables/v2/connection.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 ...
33.166667
77
0.733668
62af6db570eb78e87bd6a95b006b2c6a77d29427
2,082
exs
Elixir
spec/assertions/enum/be_empty_spec.exs
MeneDev/espec
ec4b3d579c5192999e930224a8a2650bb1fdf0bc
[ "Apache-2.0" ]
807
2015-03-25T14:00:19.000Z
2022-03-24T08:08:15.000Z
spec/assertions/enum/be_empty_spec.exs
MeneDev/espec
ec4b3d579c5192999e930224a8a2650bb1fdf0bc
[ "Apache-2.0" ]
254
2015-03-27T10:12:25.000Z
2021-07-12T01:40:15.000Z
spec/assertions/enum/be_empty_spec.exs
MeneDev/espec
ec4b3d579c5192999e930224a8a2650bb1fdf0bc
[ "Apache-2.0" ]
85
2015-04-02T10:25:19.000Z
2021-01-30T21:30:43.000Z
defmodule ESpec.Assertions.Enum.BeEmptySpec do use ESpec, async: true context "Success" do context "testing a collection" do it "checks success with `to`" do message = expect([]) |> to(be_empty()) expect(message) |> to(eq "`[]` is empty.") end it "checks success with `not_to`...
27.394737
82
0.543228
62af9d7acefe705565b47561423ecde6705be16c
1,901
ex
Elixir
clients/testing/lib/google_api/testing/v1/model/network_configuration.ex
mocknen/elixir-google-api
dac4877b5da2694eca6a0b07b3bd0e179e5f3b70
[ "Apache-2.0" ]
null
null
null
clients/testing/lib/google_api/testing/v1/model/network_configuration.ex
mocknen/elixir-google-api
dac4877b5da2694eca6a0b07b3bd0e179e5f3b70
[ "Apache-2.0" ]
null
null
null
clients/testing/lib/google_api/testing/v1/model/network_configuration.ex
mocknen/elixir-google-api
dac4877b5da2694eca6a0b07b3bd0e179e5f3b70
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
35.203704
101
0.739085
62afc03495a8aac5a7bc2bcf4a38381331434df7
532
exs
Elixir
practical3/gilded_rose/mix.exs
alpdenizz/ElixirPlayground
58b5a16c489058e0067e4811042d96fe6a5f8d59
[ "MIT" ]
null
null
null
practical3/gilded_rose/mix.exs
alpdenizz/ElixirPlayground
58b5a16c489058e0067e4811042d96fe6a5f8d59
[ "MIT" ]
null
null
null
practical3/gilded_rose/mix.exs
alpdenizz/ElixirPlayground
58b5a16c489058e0067e4811042d96fe6a5f8d59
[ "MIT" ]
null
null
null
defmodule GildedRose.Mixfile do use Mix.Project def project do [ app: :gilded_rose, version: "0.1.0", elixir: "~> 1.5", start_permanent: Mix.env == :prod, deps: deps(), test_coverage: [tool: Coverex.Task] ] end # Run "mix help compile.app" to learn about application...
18.344828
59
0.580827
62afd1467cf896bdefe9fbfeb4892a830f2b0385
86
exs
Elixir
phx_chartjs/test/phx_chartjs_web/views/page_view_test.exs
NervesJP/fukuokaex11
8bd3e5bf5f4c0a2f08a2a3e16a94a56468eb1aa3
[ "Apache-2.0" ]
13
2018-06-22T10:41:17.000Z
2018-09-01T02:34:33.000Z
phx_chartjs/test/phx_chartjs_web/views/page_view_test.exs
takasehideki/fukuokaex11
8bd3e5bf5f4c0a2f08a2a3e16a94a56468eb1aa3
[ "Apache-2.0" ]
null
null
null
phx_chartjs/test/phx_chartjs_web/views/page_view_test.exs
takasehideki/fukuokaex11
8bd3e5bf5f4c0a2f08a2a3e16a94a56468eb1aa3
[ "Apache-2.0" ]
1
2022-01-20T13:12:18.000Z
2022-01-20T13:12:18.000Z
defmodule PhxChartjsWeb.PageViewTest do use PhxChartjsWeb.ConnCase, async: true end
21.5
41
0.837209
62afdeaf8fc503c5c4f77c015b4ec642c8da4e81
2,181
ex
Elixir
clients/machine_learning/lib/google_api/machine_learning/v1/model/google_cloud_ml_v1__automated_stopping_config__median_automated_stopping_config.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/machine_learning/lib/google_api/machine_learning/v1/model/google_cloud_ml_v1__automated_stopping_config__median_automated_stopping_config.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/machine_learning/lib/google_api/machine_learning/v1/model/google_cloud_ml_v1__automated_stopping_config__median_automated_stopping_config.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...
40.388889
328
0.778542
62afed7d4383c8ea57bbd27e45de59010c2e7413
775
ex
Elixir
test/commands/support/consistency/optional_strongly_consistent_handler.ex
edwardzhou/commanded
f104cbf5ff3a37a6e9b637bc07ccde1d79c0725d
[ "MIT" ]
1
2018-12-28T20:48:23.000Z
2018-12-28T20:48:23.000Z
test/commands/support/consistency/optional_strongly_consistent_handler.ex
edwardzhou/commanded
f104cbf5ff3a37a6e9b637bc07ccde1d79c0725d
[ "MIT" ]
1
2018-12-05T18:17:08.000Z
2018-12-05T18:17:08.000Z
test/commands/support/consistency/optional_strongly_consistent_handler.ex
edwardzhou/commanded
f104cbf5ff3a37a6e9b637bc07ccde1d79c0725d
[ "MIT" ]
1
2018-12-05T18:15:03.000Z
2018-12-05T18:15:03.000Z
defmodule Commanded.Commands.OptionalStronglyConsistentEventHandler do use Commanded.Event.Handler, name: "OptionalStronglyConsistentEventHandler", consistency: :strong alias Commanded.Commands.{ ConsistencyAggregateRoot, ConsistencyRouter } alias ConsistencyAggregateRoot.{ ConsistencyComm...
24.21875
77
0.732903
62afeff7abd58097748f33ae1566b576d8a86992
264
exs
Elixir
examples/ct_ecto/priv/repo/migrations/20190720144711_create_authors.exs
50kudos/closure_table
4c1a8e321318dc2dcb2d178b9dbc58431e0211e4
[ "Apache-2.0" ]
16
2019-09-08T14:31:36.000Z
2022-02-14T19:50:23.000Z
examples/ct_ecto/priv/repo/migrations/20190720144711_create_authors.exs
50kudos/closure_table
4c1a8e321318dc2dcb2d178b9dbc58431e0211e4
[ "Apache-2.0" ]
6
2019-09-14T06:03:41.000Z
2021-05-16T00:53:40.000Z
examples/ct_ecto/priv/repo/migrations/20190720144711_create_authors.exs
50kudos/closure_table
4c1a8e321318dc2dcb2d178b9dbc58431e0211e4
[ "Apache-2.0" ]
7
2019-09-13T16:39:45.000Z
2021-05-11T06:15:04.000Z
defmodule CT.Repo.Migrations.CreateAuthors do use Ecto.Migration def change do create table(:authors) do add :name, :string timestamps default: fragment("timezone('utc', now())") end create(unique_index(:authors, [:name])) end end
18.857143
60
0.670455
62aff0511cc30ba10225460a82544521c59cd5ee
7,109
ex
Elixir
lib/oban/query.ex
maltoe/oban
912656e67f8ebda54f39dee8b070d3f3df8b0fa8
[ "Apache-2.0" ]
null
null
null
lib/oban/query.ex
maltoe/oban
912656e67f8ebda54f39dee8b070d3f3df8b0fa8
[ "Apache-2.0" ]
null
null
null
lib/oban/query.ex
maltoe/oban
912656e67f8ebda54f39dee8b070d3f3df8b0fa8
[ "Apache-2.0" ]
null
null
null
defmodule Oban.Query do @moduledoc false import Ecto.Query import DateTime, only: [utc_now: 0] alias Ecto.{Changeset, Multi} alias Oban.{Beat, Config, Job} @spec fetch_available_jobs(Config.t(), binary(), binary(), pos_integer()) :: {integer(), nil | [Job.t()]} def fetch_available_jobs(%Confi...
33.691943
100
0.620762
62b049932fdd080b6e32cc38cdac5d4ab433b518
579
ex
Elixir
Microsoft.Azure.Management.Storage/lib/microsoft/azure/management/storage/model/resource.ex
chgeuer/ex_microsoft_azure_management
99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603
[ "Apache-2.0" ]
4
2018-09-29T03:43:15.000Z
2021-04-01T18:30:46.000Z
Microsoft.Azure.Management.Storage/lib/microsoft/azure/management/storage/model/resource.ex
chgeuer/ex_microsoft_azure_management
99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603
[ "Apache-2.0" ]
null
null
null
Microsoft.Azure.Management.Storage/lib/microsoft/azure/management/storage/model/resource.ex
chgeuer/ex_microsoft_azure_management
99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603
[ "Apache-2.0" ]
null
null
null
# NOTE: This class is auto generated by the swagger code generator program. # https://github.com/swagger-api/swagger-codegen.git # Do not edit the class manually. defmodule Microsoft.Azure.Management.Storage.Model.Resource do @moduledoc """ """ @derive [Poison.Encoder] defstruct [ :"id", :"name", ...
19.3
81
0.658031
62b0bc570ef91e74c9de31dbb182ae9607950e62
190
exs
Elixir
exercises/word-count/word_count.exs
darktef/elixir-exercism
bcaae351486b1405f0a01cd33b4d39555546298e
[ "MIT" ]
1
2021-08-16T20:24:14.000Z
2021-08-16T20:24:14.000Z
exercises/word-count/word_count.exs
Triangle-Elixir/xelixir
08d23bf47f57799f286567cb26f635291de2fde5
[ "MIT" ]
null
null
null
exercises/word-count/word_count.exs
Triangle-Elixir/xelixir
08d23bf47f57799f286567cb26f635291de2fde5
[ "MIT" ]
null
null
null
defmodule Words do @doc """ Count the number of words in the sentence. Words are compared case-insensitively. """ @spec count(String.t) :: map def count(sentence) do end end
15.833333
44
0.678947
62b0deebe7fba5f540bb042cb6fa49e9bb0ffd3f
5,800
exs
Elixir
test/glimesh_web/old_api/subscription_test.exs
MemoryLeakDeath/glimesh.tv
1462c4b939da899f5e3f67c3f28850025d59a10f
[ "MIT" ]
null
null
null
test/glimesh_web/old_api/subscription_test.exs
MemoryLeakDeath/glimesh.tv
1462c4b939da899f5e3f67c3f28850025d59a10f
[ "MIT" ]
null
null
null
test/glimesh_web/old_api/subscription_test.exs
MemoryLeakDeath/glimesh.tv
1462c4b939da899f5e3f67c3f28850025d59a10f
[ "MIT" ]
null
null
null
defmodule GlimeshWeb.Api.SubscriptionTest do use GlimeshWeb.SubscriptionCase import Glimesh.AccountsFixtures describe "channel subscriptions" do setup :setup_old_socket test "updating channel title sends subscription update", %{socket: socket} do streamer = streamer_fixture() ref = ...
24.892704
97
0.460345
62b0f58a1933b80a44c8d633df9b86f22f5312ec
3,364
exs
Elixir
test/scenic/view_port/driver_test.exs
tiger808/scenic
77abc6d891b7a1a9262cdc47d7c5fac3c8609d1f
[ "Apache-2.0" ]
1,716
2018-09-07T21:55:43.000Z
2022-03-31T16:16:30.000Z
test/scenic/view_port/driver_test.exs
tiger808/scenic
77abc6d891b7a1a9262cdc47d7c5fac3c8609d1f
[ "Apache-2.0" ]
220
2018-09-08T01:28:00.000Z
2022-03-22T03:55:17.000Z
test/scenic/view_port/driver_test.exs
tiger808/scenic
77abc6d891b7a1a9262cdc47d7c5fac3c8609d1f
[ "Apache-2.0" ]
137
2018-09-07T21:55:56.000Z
2022-03-26T04:07:27.000Z
# # re-Created by Boyd Multerer May 2018. # Copyright © 2018 Kry10 Industries. All rights reserved. # # defmodule Scenic.ViewPort.DriverTest do use ExUnit.Case, async: false use Bitwise doctest Scenic alias Scenic.ViewPort.Driver # import IEx # ==========================================================...
28.268908
97
0.554994
62b11cdf574e4a8e041c606ce16688ee763d83e6
4,732
exs
Elixir
test/api/oauth_test.exs
wundercar/paytm
378ce47ae68588b80a60098f84ea50eb380cf7de
[ "MIT" ]
2
2017-11-10T14:57:02.000Z
2018-01-30T04:53:11.000Z
test/api/oauth_test.exs
wundercar/paytm
378ce47ae68588b80a60098f84ea50eb380cf7de
[ "MIT" ]
2
2019-04-16T12:55:01.000Z
2020-08-25T15:17:52.000Z
test/api/oauth_test.exs
wundercar/paytm
378ce47ae68588b80a60098f84ea50eb380cf7de
[ "MIT" ]
null
null
null
defmodule Paytm.API.OAuthTest do use Paytm.DataCase alias Paytm.API.OAuth alias OAuth.Token setup do ExVCR.Config.filter_sensitive_data(~s("clientId":".*"), ~s("clientId":"CLIENT_ID")) ExVCR.Config.filter_request_headers("Authorization") ExVCR.Config.filter_request_headers("Set-Cookie") :ok ...
38.471545
99
0.673288
62b1286dca0b731a619d34d2b933f74a7c6d088f
945
exs
Elixir
test/mix/tasks/nlp/pos_tagger/test_test.exs
pylon/penelope
5b0310dc0647a8e20ab1b4c10d3820f11cfb2601
[ "Apache-2.0" ]
53
2017-10-13T06:39:49.000Z
2022-03-28T19:43:42.000Z
test/mix/tasks/nlp/pos_tagger/test_test.exs
pylon/penelope
5b0310dc0647a8e20ab1b4c10d3820f11cfb2601
[ "Apache-2.0" ]
12
2018-01-08T23:05:37.000Z
2019-08-02T12:59:27.000Z
test/mix/tasks/nlp/pos_tagger/test_test.exs
pylon/penelope
5b0310dc0647a8e20ab1b4c10d3820f11cfb2601
[ "Apache-2.0" ]
4
2018-06-13T19:45:57.000Z
2019-10-17T13:37:06.000Z
defmodule Mix.Tasks.Nlp.PosTagger.TestTest do use ExUnit.Case, async: false import ExUnit.CaptureLog alias Mix.Tasks.Nlp.PosTagger.{Test, Train} setup_all do model_file = "/tmp/penelope_mix_tasks_nlp_pos_model.json" on_exit(fn -> File.rm(model_file) end) {:ok, model_file: model_file} end tes...
23.625
61
0.491005
62b128781e606f9b5b0ca89b4d8755300618b30b
1,437
exs
Elixir
priv/templates/authority.gen.context/migration.exs
infinitered/authority_ecto
3d076b04c4ad4f5d5b89df990f91b45d1a45da19
[ "MIT" ]
11
2018-01-17T09:31:26.000Z
2019-03-11T03:20:50.000Z
priv/templates/authority.gen.context/migration.exs
infinitered/authority_ecto
3d076b04c4ad4f5d5b89df990f91b45d1a45da19
[ "MIT" ]
24
2018-01-17T00:13:38.000Z
2018-11-12T09:38:09.000Z
priv/templates/authority.gen.context/migration.exs
infinitered/authority_ecto
3d076b04c4ad4f5d5b89df990f91b45d1a45da19
[ "MIT" ]
3
2018-01-17T03:23:17.000Z
2019-03-11T03:20:47.000Z
defmodule <%= inspect context.migration.module %> do use Ecto.Migration def change do create table(:<%= context.user.table %>) do add(:email, :string, null: false) add(:encrypted_password, :string, null: false) timestamps() end create(unique_index(:<%= context.user.table %>, [:email]...
34.214286
111
0.617258
62b139d00c5affb4bb06f74506b33282dc3fe515
8,204
ex
Elixir
lib/plugs/process_refresh_token.ex
weareyipyip/YipYipExAuth
4c845f778dea3594c347236706e9963a338d4c74
[ "Apache-2.0" ]
2
2020-03-02T20:59:11.000Z
2021-02-24T13:53:15.000Z
lib/plugs/process_refresh_token.ex
weareyipyip/YipyipExAuth
4c845f778dea3594c347236706e9963a338d4c74
[ "Apache-2.0" ]
null
null
null
lib/plugs/process_refresh_token.ex
weareyipyip/YipyipExAuth
4c845f778dea3594c347236706e9963a338d4c74
[ "Apache-2.0" ]
null
null
null
defmodule YipyipExAuth.Plugs.ProcessRefreshToken do @moduledoc """ Plug to process and verify refresh tokens. Must be initialized with a `YipyipExAuth.Config`-struct, which can be initialized itself using `YipyipExAuth.Config.from_enum/1`. The token signature source (bearer or cookie) must match the `token_signa...
43.871658
413
0.673574
62b14dedd514e8dae689aeb89142eadf28605b15
4,820
ex
Elixir
lib/mix/tasks/git_hooks/install.ex
celaxodon/elixir_git_hooks
108cf78cfa15a1bbdd9d6d37c3a3cfc514dfd0ad
[ "MIT" ]
null
null
null
lib/mix/tasks/git_hooks/install.ex
celaxodon/elixir_git_hooks
108cf78cfa15a1bbdd9d6d37c3a3cfc514dfd0ad
[ "MIT" ]
null
null
null
lib/mix/tasks/git_hooks/install.ex
celaxodon/elixir_git_hooks
108cf78cfa15a1bbdd9d6d37c3a3cfc514dfd0ad
[ "MIT" ]
null
null
null
defmodule Mix.Tasks.GitHooks.Install do @shortdoc "Installs the configured git hooks backing up the previous files." @moduledoc """ Installs the configured git hooks. Before installing the new hooks, the already hooks files are backed up with the extension `.pre_git_hooks_backup`. ## Command line options...
27.701149
138
0.63278
62b16d9711f813301568da265ae9d6f909bce8d4
228
ex
Elixir
lib/aspekt_api/controllers/subject_controller.ex
wjanssens/aspekt-elixir
3b4926fa37cc056cafe7204589e0cac11289c6a8
[ "Apache-2.0" ]
null
null
null
lib/aspekt_api/controllers/subject_controller.ex
wjanssens/aspekt-elixir
3b4926fa37cc056cafe7204589e0cac11289c6a8
[ "Apache-2.0" ]
null
null
null
lib/aspekt_api/controllers/subject_controller.ex
wjanssens/aspekt-elixir
3b4926fa37cc056cafe7204589e0cac11289c6a8
[ "Apache-2.0" ]
null
null
null
import Ecto.Query defmodule AspektWeb.Api.SubjectController do use AspektWeb, :controller alias Aspekt.Accounts.Subject def index(conn, _params) do json conn, Aspekt.Repo.all(from s in Subject, select: s.id) end end
19
63
0.763158
62b1c9dc78299acb47f782a29e0fd4eb49c1d146
4,153
exs
Elixir
mix.exs
exponentially/helios
3a7b66bd95a8c53c500272eb8a269a73e6de6d8a
[ "Apache-2.0" ]
12
2018-09-20T21:33:07.000Z
2020-01-14T19:31:11.000Z
mix.exs
exponentially/helios
3a7b66bd95a8c53c500272eb8a269a73e6de6d8a
[ "Apache-2.0" ]
null
null
null
mix.exs
exponentially/helios
3a7b66bd95a8c53c500272eb8a269a73e6de6d8a
[ "Apache-2.0" ]
null
null
null
defmodule Helios.MixProject do use Mix.Project @version "0.2.3" @journal_adapters ["eventstore"] def project do [ app: :helios, version: @version, elixir: "~> 1.6", start_permanent: Mix.env() == :prod, test_paths: test_paths(System.get_env("JOURNAL_ADAPTER")), build_per...
29.041958
87
0.559836
62b1f5d28a7020de382563b0c7bf8a79a10ee65e
741
ex
Elixir
lib/PullMode/Filter.ex
membraneframework/membrane_performance_test
7a4abf74be04a8b37d3899f416a09b29564817d6
[ "Apache-2.0" ]
null
null
null
lib/PullMode/Filter.ex
membraneframework/membrane_performance_test
7a4abf74be04a8b37d3899f416a09b29564817d6
[ "Apache-2.0" ]
null
null
null
lib/PullMode/Filter.ex
membraneframework/membrane_performance_test
7a4abf74be04a8b37d3899f416a09b29564817d6
[ "Apache-2.0" ]
null
null
null
defmodule PullMode.Filter do use Base.Filter def_input_pad :input, demand_unit: :buffers, caps: :any def_output_pad :output, caps: :any def_options_with_default() @impl true def handle_init(opts) do Base.Filter.handle_init(opts) end @impl true def handle_caps(:input, caps, context, state) do ...
23.903226
84
0.682861
62b1fdabfe963b94a80fd52ff3dc662cccfbe6c2
95
exs
Elixir
test/function_test.exs
tpoulsen/terp
a11b2452bec7b3dd558b5b51a27b44a5b7dda009
[ "BSD-2-Clause" ]
23
2017-09-22T07:13:34.000Z
2021-06-08T14:50:06.000Z
test/function_test.exs
smpoulsen/terp
a11b2452bec7b3dd558b5b51a27b44a5b7dda009
[ "BSD-2-Clause" ]
5
2017-08-26T18:40:54.000Z
2017-09-28T00:24:50.000Z
test/function_test.exs
smpoulsen/terp
a11b2452bec7b3dd558b5b51a27b44a5b7dda009
[ "BSD-2-Clause" ]
4
2017-09-27T23:14:59.000Z
2021-06-08T14:50:12.000Z
defmodule Terp.Evaluate.FunctionTest do use ExUnit.Case doctest Terp.Evaluate.Function end
19
39
0.821053
62b20ed2822f7d390a383cffb83718933b49ce69
9,063
exs
Elixir
test/membrane/clock_test.exs
membraneframework/membrane-core
096c2546869824c49ad1d7412ffe02d050164611
[ "Apache-2.0" ]
515
2018-06-18T11:09:44.000Z
2020-07-31T07:54:35.000Z
test/membrane/clock_test.exs
membraneframework/membrane-core
096c2546869824c49ad1d7412ffe02d050164611
[ "Apache-2.0" ]
120
2018-06-07T08:34:06.000Z
2020-07-30T07:09:50.000Z
test/membrane/clock_test.exs
membraneframework/membrane-core
096c2546869824c49ad1d7412ffe02d050164611
[ "Apache-2.0" ]
13
2018-07-27T11:58:15.000Z
2020-05-06T15:19:55.000Z
defmodule Membrane.ClockTest do use ExUnit.Case @module Membrane.Clock @initial_ratio 1 test "should calculate proper ratio and send it to subscribers on each (but the first) update" do {:ok, clock} = @module.start_link(time_provider: fn -> receive do: (time: t -> ms_to_ns(t)) end) @module.sub...
34.992278
100
0.660377
62b21c63981e97e125745abc3ba37ae64ea85a1b
8,944
exs
Elixir
test/paranoid/ecto_test.exs
yorunoR/paranoid
34c3ab21d2d248c479a47ff1aa408fc7a9d9a6a3
[ "MIT" ]
null
null
null
test/paranoid/ecto_test.exs
yorunoR/paranoid
34c3ab21d2d248c479a47ff1aa408fc7a9d9a6a3
[ "MIT" ]
null
null
null
test/paranoid/ecto_test.exs
yorunoR/paranoid
34c3ab21d2d248c479a47ff1aa408fc7a9d9a6a3
[ "MIT" ]
null
null
null
defmodule Paranoid.Repo do use Paranoid.Ecto, repo: Paranoid.TestRepo end defmodule Paranoid.EctoTest do use Paranoid.EctoCase import Ecto.Query alias Paranoid.TestRepo alias Paranoid.Repo alias Paranoid.User def insert_user() do {:ok, user} = %User{} |> User.changeset(%{name: "Test User"...
24.913649
102
0.637746
62b22ff63f98c745308909941edd5d72aa658207
312
exs
Elixir
test/fixtures/attr_bench.exs
kianmeng/benchee_dsl
79e120ded84645192af372a5a45f9256ddb83313
[ "MIT" ]
3
2020-07-18T11:02:23.000Z
2021-06-24T12:32:56.000Z
test/fixtures/attr_bench.exs
kianmeng/benchee_dsl
79e120ded84645192af372a5a45f9256ddb83313
[ "MIT" ]
6
2020-05-02T15:32:26.000Z
2020-10-22T11:33:08.000Z
test/fixtures/attr_bench.exs
kianmeng/benchee_dsl
79e120ded84645192af372a5a45f9256ddb83313
[ "MIT" ]
1
2020-10-22T11:06:05.000Z
2020-10-22T11:06:05.000Z
defmodule AttrBench do use BencheeDsl.Benchmark @title "title" @description "description" @list Enum.to_list(1..10_000) def map_fun(i), do: [i, i * i] job flat_map do Enum.flat_map(@list, &map_fun/1) end job "map.flatten" do @list |> Enum.map(&map_fun/1) |> List.flatten() end end
16.421053
51
0.650641
62b247dc244c7738a022ebc189cf07795b03d8b8
2,585
exs
Elixir
test/til_web/plugs/auth_test.exs
kw7oe/til
5ecaa3d199c06d535d1bbbfa05e2dc88e86ad815
[ "MIT" ]
null
null
null
test/til_web/plugs/auth_test.exs
kw7oe/til
5ecaa3d199c06d535d1bbbfa05e2dc88e86ad815
[ "MIT" ]
2
2020-04-26T14:03:27.000Z
2020-12-12T17:14:02.000Z
test/til_web/plugs/auth_test.exs
kw7oe/til
5ecaa3d199c06d535d1bbbfa05e2dc88e86ad815
[ "MIT" ]
null
null
null
defmodule TilWeb.AuthTest do use TilWeb.ConnCase use Plug.Test alias TilWeb.Auth describe "call/2" do setup do user = insert(:user) {:ok, user: user} end test "assign user to current_user if user_id exist in session", %{user: user} do conn = build_conn() |> Phoen...
28.406593
96
0.617408
62b25cd6cb745fd1ff8550ceaf8717934d904cb3
8,268
ex
Elixir
lib/plug/builder.ex
DavidAlphaFox/Plug
3a98e7667d76ba8d2eb629e518bcb7ac83a1a188
[ "Apache-2.0" ]
1
2019-05-07T15:05:52.000Z
2019-05-07T15:05:52.000Z
lib/plug/builder.ex
DavidAlphaFox/Plug
3a98e7667d76ba8d2eb629e518bcb7ac83a1a188
[ "Apache-2.0" ]
null
null
null
lib/plug/builder.ex
DavidAlphaFox/Plug
3a98e7667d76ba8d2eb629e518bcb7ac83a1a188
[ "Apache-2.0" ]
null
null
null
defmodule Plug.Builder do @moduledoc """ Conveniences for building plugs. This module can be `use`-d into a module in order to build a plug pipeline: defmodule MyApp do use Plug.Builder plug Plug.Logger plug :hello, upper: true # A function from another module can be pl...
29.215548
91
0.657475
62b25dd8da7b201f1b5a39052dce205884db3996
53
ex
Elixir
web/views/layout_view.ex
dmccown/kanban
bf955b2b1f30176c3380b2ee7e1c5ba1174b8d72
[ "MIT" ]
1
2020-06-30T11:42:09.000Z
2020-06-30T11:42:09.000Z
web/views/layout_view.ex
dmccown/kanban
bf955b2b1f30176c3380b2ee7e1c5ba1174b8d72
[ "MIT" ]
null
null
null
web/views/layout_view.ex
dmccown/kanban
bf955b2b1f30176c3380b2ee7e1c5ba1174b8d72
[ "MIT" ]
null
null
null
defmodule Kanban.LayoutView do use Kanban.View end
13.25
30
0.811321
62b278a7a9d2952015c3925400e4d251f9e821b6
1,302
ex
Elixir
lib/myapp/k8s_dns_discovery.ex
ramondelemos/elixir-cluster-k8s-discovery
b7f790a6d37df3ad1fff84cfd182ea080d7f04cb
[ "MIT" ]
1
2019-04-23T05:10:06.000Z
2019-04-23T05:10:06.000Z
lib/myapp/k8s_dns_discovery.ex
ramondelemos/elixir-cluster-k8s-discovery
b7f790a6d37df3ad1fff84cfd182ea080d7f04cb
[ "MIT" ]
null
null
null
lib/myapp/k8s_dns_discovery.ex
ramondelemos/elixir-cluster-k8s-discovery
b7f790a6d37df3ad1fff84cfd182ea080d7f04cb
[ "MIT" ]
null
null
null
defmodule Myapp.K8sDiscovery do @moduledoc """ GenServer Module responsible to connect existenting nodes through Kubernetes DNS. """ use GenServer require Logger # try to connect every 5 seconds @connect_interval 5000 @doc false def start_link do GenServer.start_link(__MODULE__, [], name: __MO...
23.25
83
0.603687
62b27ac13442b9f538e0541a4a6bb2e623cfd730
1,911
ex
Elixir
clients/firestore/lib/google_api/firestore/v1/model/google_firestore_admin_v1_list_fields_response.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/firestore/lib/google_api/firestore/v1/model/google_firestore_admin_v1_list_fields_response.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/firestore/lib/google_api/firestore/v1/model/google_firestore_admin_v1_list_fields_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...
37.470588
138
0.750916
62b2b63fdfe05143850a268a30198e6cece99cf2
7,612
ex
Elixir
clients/jobs/lib/google_api/jobs/v3/model/search_jobs_request.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/jobs/lib/google_api/jobs/v3/model/search_jobs_request.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/jobs/lib/google_api/jobs/v3/model/search_jobs_request.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...
91.710843
1,380
0.753022