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
e88b0a42fb84160dcc83aca9c8a6aa3b0318e762
280
exs
Elixir
test/instream/database_test.exs
manulitic/instream
5ad521dcf6a456325ba30b4c0dbb40f1f5107f32
[ "Apache-2.0" ]
null
null
null
test/instream/database_test.exs
manulitic/instream
5ad521dcf6a456325ba30b4c0dbb40f1f5107f32
[ "Apache-2.0" ]
null
null
null
test/instream/database_test.exs
manulitic/instream
5ad521dcf6a456325ba30b4c0dbb40f1f5107f32
[ "Apache-2.0" ]
null
null
null
defmodule Instream.DatabaseTest do use ExUnit.Case, async: true defmodule TestDatabase do use Instream.Database database do name("test_database") end end test "database metadata" do assert TestDatabase.__meta__(:name) == "test_database" end end
17.5
58
0.710714
e88b16afdbaa4c52cca84b962827c2324558e618
458
exs
Elixir
installer/templates/phx_umbrella/apps/app_name/config/config.exs
zorn/phoenix
ac88958550fbd861e2f1e1af6e3c6b787b1a202e
[ "MIT" ]
2
2016-11-01T15:01:48.000Z
2016-11-01T15:07:20.000Z
installer/templates/phx_umbrella/apps/app_name/config/config.exs
zorn/phoenix
ac88958550fbd861e2f1e1af6e3c6b787b1a202e
[ "MIT" ]
null
null
null
installer/templates/phx_umbrella/apps/app_name/config/config.exs
zorn/phoenix
ac88958550fbd861e2f1e1af6e3c6b787b1a202e
[ "MIT" ]
null
null
null
# Since configuration is shared in umbrella projects, this file # should only configure the :<%= app_name %> application itself # and only for organization purposes. All other config goes to # the umbrella root. use Mix.Config<%= if namespaced? || ecto do %> config :<%= app_name %><%= if namespaced? do %>, namespace...
38.166667
63
0.663755
e88ba4eff066d9ee838f0609c633057225158630
1,084
ex
Elixir
lib/sutur_web/live/page_live.ex
ab-zu/sutur
f314ed29b344fbe0139bd87ac01caf577b1d592e
[ "MIT" ]
1
2021-11-16T02:18:31.000Z
2021-11-16T02:18:31.000Z
lib/sutur_web/live/page_live.ex
ab-zu/sutur
f314ed29b344fbe0139bd87ac01caf577b1d592e
[ "MIT" ]
null
null
null
lib/sutur_web/live/page_live.ex
ab-zu/sutur
f314ed29b344fbe0139bd87ac01caf577b1d592e
[ "MIT" ]
null
null
null
defmodule SuturWeb.PageLive do use SuturWeb, :live_view @impl true def mount(_params, _session, socket) do {:ok, assign(socket, query: "", results: %{})} end @impl true def handle_event("suggest", %{"q" => query}, socket) do {:noreply, assign(socket, results: search(query), query: query)} end ...
27.1
84
0.599631
e88baef25363ff896df2936caa145d82dd2a92d9
499
ex
Elixir
lib/this_weekend_web/views/error_view.ex
drews256/this_weekend
6b20f6b591d2f43044c16a6e4fab6ad5822620c7
[ "Apache-2.0" ]
null
null
null
lib/this_weekend_web/views/error_view.ex
drews256/this_weekend
6b20f6b591d2f43044c16a6e4fab6ad5822620c7
[ "Apache-2.0" ]
2
2021-03-10T17:57:38.000Z
2022-03-26T16:51:58.000Z
lib/this_weekend_web/views/error_view.ex
drews256/this_weekend
6b20f6b591d2f43044c16a6e4fab6ad5822620c7
[ "Apache-2.0" ]
null
null
null
defmodule ThisWeekendWeb.ErrorView do use ThisWeekendWeb, :view # If you want to customize a particular status code # for a certain format, you may uncomment below. # def render("500.html", _assigns) do # "Internal Server Error" # end # By default, Phoenix returns the status message from # the templ...
29.352941
61
0.739479
e88bdbaa562a4aaa13d6403ad18332b0b3585ef7
1,864
ex
Elixir
clients/metastore/lib/google_api/metastore/v1beta/model/location_metadata.ex
renovate-bot/elixir-google-api
1da34cd39b670c99f067011e05ab90af93fef1f6
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/metastore/lib/google_api/metastore/v1beta/model/location_metadata.ex
swansoffiee/elixir-google-api
9ea6d39f273fb430634788c258b3189d3613dde0
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/metastore/lib/google_api/metastore/v1beta/model/location_metadata.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.54902
329
0.75912
e88bddb2f9dfb1ad8c5e27d4f21cc08c0a11b84c
425
exs
Elixir
test/discovery_web/views/error_view_test.exs
mikehelmick/dicovery-prototype
f79c160221c1a74ea1c89b6223d1815ec4c0df7d
[ "Apache-2.0" ]
3
2022-01-07T10:51:48.000Z
2022-03-15T04:39:09.000Z
test/discovery_web/views/error_view_test.exs
gamezop/discovery
0ea32c4915f0b0350d2878c7317f5530ea2474a8
[ "MIT" ]
1
2021-03-10T11:53:06.000Z
2021-03-10T11:53:06.000Z
test/discovery_web/views/error_view_test.exs
gamezop/discovery
0ea32c4915f0b0350d2878c7317f5530ea2474a8
[ "MIT" ]
null
null
null
defmodule DiscoveryWeb.ErrorViewTest do use DiscoveryWeb.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(DiscoveryWeb.ErrorView, "404.html", []) == "Not Found" end test "renders 500.html" do ...
28.333333
94
0.738824
e88bf08936bed978f50245e4fb7ffbdcf9ec00b6
563
exs
Elixir
bench/filter_map.exs
sabiwara/enumancer
b0ff768ada92b4bfc68c774257177c114c68a651
[ "MIT" ]
27
2021-07-31T07:36:26.000Z
2022-02-04T18:47:44.000Z
bench/filter_map.exs
sabiwara/enumancer
b0ff768ada92b4bfc68c774257177c114c68a651
[ "MIT" ]
null
null
null
bench/filter_map.exs
sabiwara/enumancer
b0ff768ada92b4bfc68c774257177c114c68a651
[ "MIT" ]
1
2021-08-13T03:40:52.000Z
2021-08-13T03:40:52.000Z
list = Enum.to_list(1..100) defmodule Optimized do import Enumancer defenum filter_odds_map_add(list) do list |> filter(& rem(&1, 2) == 1) |> map(& &1 + 1) end end Benchee.run(%{ "Enum.filter/2 |> Enum.map/2" => fn -> Enum.filter(list, & rem(&1, 2) == 1) |> Enum.map(& &1 + 1) end, "Stream.filte...
29.631579
109
0.561279
e88bf313f6281d2d4bec6f9d84648a4f7f3dca00
3,113
ex
Elixir
lib/mix/tasks/unbrella.rollback.ex
smpallen99/unbrella
d8d902edd5d68cca46686cc17e435fe9d2bce0da
[ "MIT" ]
9
2017-07-09T21:45:56.000Z
2020-09-26T04:19:58.000Z
lib/mix/tasks/unbrella.rollback.ex
smpallen99/unbrella
d8d902edd5d68cca46686cc17e435fe9d2bce0da
[ "MIT" ]
null
null
null
lib/mix/tasks/unbrella.rollback.ex
smpallen99/unbrella
d8d902edd5d68cca46686cc17e435fe9d2bce0da
[ "MIT" ]
2
2017-09-18T14:38:59.000Z
2017-11-27T10:31:36.000Z
defmodule Mix.Tasks.Unbrella.Rollback do use Mix.Task import Mix.Ecto import Unbrella.Utils @shortdoc "Rolls back the repository migrations" @recursive true @moduledoc """ Reverts applied migrations in the given repository. The repository must be set under `:ecto_repos` in the current app configura...
28.559633
98
0.642467
e88c1f9fb0863670d7b3ee8d9248759e231e9448
141
ex
Elixir
apps/demo_web/lib/demo_web_web/controllers/page_controller.ex
kimlindholm/gigalixir_umbrella_demo
369cd029687bb05273d881082afe72e9ac3bc0c1
[ "MIT" ]
2
2019-05-26T12:57:38.000Z
2020-01-22T20:28:32.000Z
apps/demo_web/lib/demo_web_web/controllers/page_controller.ex
kimlindholm/gigalixir_umbrella_demo
369cd029687bb05273d881082afe72e9ac3bc0c1
[ "MIT" ]
null
null
null
apps/demo_web/lib/demo_web_web/controllers/page_controller.ex
kimlindholm/gigalixir_umbrella_demo
369cd029687bb05273d881082afe72e9ac3bc0c1
[ "MIT" ]
null
null
null
defmodule DemoWebWeb.PageController do use DemoWebWeb, :controller def index(conn, _params) do render(conn, "index.html") end end
17.625
38
0.737589
e88c2a6be9862953efaf10d6185ac98c6b627f16
1,963
exs
Elixir
test/commodity_api/iam/user/phone_number/primary/primary_controller_test.exs
akdilsiz/commodity-cloud
08c366c9fc95fbb3565131672db4cc52f8b870c9
[ "Apache-2.0" ]
7
2019-04-11T21:12:49.000Z
2021-04-14T12:56:42.000Z
test/commodity_api/iam/user/phone_number/primary/primary_controller_test.exs
akdilsiz/commodity-cloud
08c366c9fc95fbb3565131672db4cc52f8b870c9
[ "Apache-2.0" ]
null
null
null
test/commodity_api/iam/user/phone_number/primary/primary_controller_test.exs
akdilsiz/commodity-cloud
08c366c9fc95fbb3565131672db4cc52f8b870c9
[ "Apache-2.0" ]
2
2019-06-06T18:05:33.000Z
2019-07-16T08:49:45.000Z
## # Copyright 2018 Abdulkadir DILSIZ # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law...
31.15873
77
0.731533
e88c38c38f1d779c8b7d54eceded5b31ed0ebbda
7,644
exs
Elixir
test/queuetopia/queue/job_test.exs
tailcalldev/pg_queuetopia
ea18c6a7633a78cc82473b9b60da205454009af4
[ "MIT" ]
null
null
null
test/queuetopia/queue/job_test.exs
tailcalldev/pg_queuetopia
ea18c6a7633a78cc82473b9b60da205454009af4
[ "MIT" ]
null
null
null
test/queuetopia/queue/job_test.exs
tailcalldev/pg_queuetopia
ea18c6a7633a78cc82473b9b60da205454009af4
[ "MIT" ]
null
null
null
defmodule PgQueuetopia.Queue.JobTest do use PgQueuetopia.DataCase alias PgQueuetopia.Queue.Job describe "create_changeset/2" do test "only permitted_keys are casted" do params = params_for(:job, timeout: 100, max_backoff: 100, max_attempts: 1) changeset = Job.create_changeset(Map.merge(params, ...
34.90411
104
0.655285
e88c7f296a59f14b8b8edded7261aade135c5117
2,293
ex
Elixir
lib/catalog_api/item.ex
mbramson/catalog_api
b7d1351196829b0bd58f4346610609da3cb5756c
[ "MIT" ]
2
2018-03-03T18:23:07.000Z
2018-05-03T00:36:02.000Z
lib/catalog_api/item.ex
mbramson/catalog_api
b7d1351196829b0bd58f4346610609da3cb5756c
[ "MIT" ]
1
2018-03-04T17:55:11.000Z
2018-03-04T17:55:11.000Z
lib/catalog_api/item.ex
mbramson/catalog_api
b7d1351196829b0bd58f4346610609da3cb5756c
[ "MIT" ]
null
null
null
defmodule CatalogApi.Item do @moduledoc """ Defines the CatalogApi.Item struct and functions which are responsible for parsing items from CatalogApi responses. """ alias CatalogApi.Coercion alias CatalogApi.Item @derive Jason.Encoder defstruct brand: nil, catalog_item_id: nil, ...
27.963415
78
0.622765
e88ca0b0a3239c4fdfaae309c72a04819ac1a3d7
928
exs
Elixir
mix.exs
somen440/gver_diff
7878ef8f7bb591b40aa87f2fd9063e20e548550f
[ "MIT" ]
2
2019-12-09T02:05:34.000Z
2019-12-09T02:08:28.000Z
mix.exs
somen440/gver_diff
7878ef8f7bb591b40aa87f2fd9063e20e548550f
[ "MIT" ]
13
2019-12-02T14:13:52.000Z
2019-12-31T19:53:34.000Z
mix.exs
somen440/gver_diff
7878ef8f7bb591b40aa87f2fd9063e20e548550f
[ "MIT" ]
null
null
null
defmodule GverDiff.Mixfile do use Mix.Project def project do [ app: :gver_diff, version: "0.1.0", elixir: "~> 1.0", build_embedded: Mix.env() == :prod, start_permanent: Mix.env() == :prod, escript: [ main_module: GverDiff.CLI, name: "gver_diff" ], ...
21.581395
73
0.543103
e88ccc26e29850347e4f535b2d9ee894c1a60d62
487
ex
Elixir
lib/ngram_web/views/error_view.ex
lesserhatch/ngram
18ff289dc9d087aed209e8c43b2c521f879aab45
[ "Apache-2.0" ]
null
null
null
lib/ngram_web/views/error_view.ex
lesserhatch/ngram
18ff289dc9d087aed209e8c43b2c521f879aab45
[ "Apache-2.0" ]
null
null
null
lib/ngram_web/views/error_view.ex
lesserhatch/ngram
18ff289dc9d087aed209e8c43b2c521f879aab45
[ "Apache-2.0" ]
null
null
null
defmodule NgramWeb.ErrorView do use NgramWeb, :view # If you want to customize a particular status code # for a certain format, you may uncomment below. # def render("500.html", _assigns) do # "Internal Server Error" # end # By default, Phoenix returns the status message from # the template name. Fo...
28.647059
61
0.73306
e88cd09e010b18769f3e994fbe22b67e58315a56
1,422
exs
Elixir
config/dev.exs
JuliaMathias/name
0323ffa940b456cc18532e5d906aa2e301216dc4
[ "MIT" ]
1
2021-08-13T14:18:10.000Z
2021-08-13T14:18:10.000Z
config/dev.exs
JuliaMathias/name
0323ffa940b456cc18532e5d906aa2e301216dc4
[ "MIT" ]
8
2021-08-12T23:46:04.000Z
2021-08-18T19:08:12.000Z
config/dev.exs
JuliaMathias/name
0323ffa940b456cc18532e5d906aa2e301216dc4
[ "MIT" ]
1
2021-08-15T02:07:19.000Z
2021-08-15T02:07:19.000Z
use Mix.Config # For development, we disable any cache and enable # debugging and code reloading. # # The watchers configuration can be used to run external # watchers to your application. For example, we use it # with webpack to recompile .js and .css sources. config :name, NameWeb.Endpoint, http: [port: 4000], d...
29.020408
68
0.721519
e88ce1366ba11bba4bd94c5029bde7422c597781
685
ex
Elixir
web/controllers/auth_controller.ex
thluiz/yehudimtv
71aba0ee537b4bba28474fb20d3209fc261a03d7
[ "MIT" ]
null
null
null
web/controllers/auth_controller.ex
thluiz/yehudimtv
71aba0ee537b4bba28474fb20d3209fc261a03d7
[ "MIT" ]
null
null
null
web/controllers/auth_controller.ex
thluiz/yehudimtv
71aba0ee537b4bba28474fb20d3209fc261a03d7
[ "MIT" ]
null
null
null
defmodule Yehudimtv.AuthController do use Yehudimtv.Web, :controller alias Yehudimtv.User plug :action def index(conn, _params) do redirect conn, external: Google.authorize_url! end def logout(conn, _params) do conn |> put_session(:user_email, "") |> put_session(:access_token, "") |> ...
20.757576
50
0.614599
e88d0f972c98cf689e8e037254c9aaf31a834526
1,849
ex
Elixir
clients/monitoring/lib/google_api/monitoring/v3/model/list_groups_response.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/monitoring/lib/google_api/monitoring/v3/model/list_groups_response.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/monitoring/lib/google_api/monitoring/v3/model/list_groups_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...
36.98
251
0.735533
e88d4907eb67563ad2b57db3e2b6ae5175b4a524
703
ex
Elixir
lib/middleware/evaluator.ex
DriesDeBackker/rp-middleware
7066c584236cfb4894dfe40e0a81309e6d8dd1da
[ "MIT" ]
null
null
null
lib/middleware/evaluator.ex
DriesDeBackker/rp-middleware
7066c584236cfb4894dfe40e0a81309e6d8dd1da
[ "MIT" ]
null
null
null
lib/middleware/evaluator.ex
DriesDeBackker/rp-middleware
7066c584236cfb4894dfe40e0a81309e6d8dd1da
[ "MIT" ]
null
null
null
defmodule ReactiveMiddleware.Evaluator do use GenServer require Logger alias GenServer #################### # CLIENT INTERFACE # #################### @doc """ Start the GenServer. """ def start_link(args \\ []) do GenServer.start_link(__MODULE__, args, name: __MODULE__) end @doc """ Eva...
19
60
0.570413
e88d87cd7abada1b03ce5e352a4a5c9a28249a26
6,076
exs
Elixir
config/.credo.exs
blagh/joken
eafc407603cb28f12b1a95b11a57da89903bb3b6
[ "Apache-2.0" ]
421
2015-01-06T12:06:00.000Z
2018-11-17T09:12:27.000Z
config/.credo.exs
blagh/joken
eafc407603cb28f12b1a95b11a57da89903bb3b6
[ "Apache-2.0" ]
178
2015-02-24T15:40:25.000Z
2018-11-06T16:32:27.000Z
config/.credo.exs
blagh/joken
eafc407603cb28f12b1a95b11a57da89903bb3b6
[ "Apache-2.0" ]
71
2015-02-24T00:52:34.000Z
2018-10-30T17:34:59.000Z
# 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 ...
37.506173
91
0.634299
e88da1fbf72afebf51402e49d655cccf3ddb9f38
1,718
ex
Elixir
lib/libpe/resource_types.ex
elixir-desktop/libpe
c7e84e7d35b5ab7661691a2282b44ca2268eec39
[ "MIT" ]
null
null
null
lib/libpe/resource_types.ex
elixir-desktop/libpe
c7e84e7d35b5ab7661691a2282b44ca2268eec39
[ "MIT" ]
1
2022-03-02T14:35:50.000Z
2022-03-02T14:35:50.000Z
lib/libpe/resource_types.ex
elixir-desktop/libpe
c7e84e7d35b5ab7661691a2282b44ca2268eec39
[ "MIT" ]
null
null
null
defmodule LibPE.ResourceTypes do use LibPE.Flags @doc """ Generated based on documentation. Used this snipper after copy paste: ``` data = ... (copy pasted) Enum.chunk_every(String.split(data, "\n"), 5, 5, :discard) |> Enum.map(fn [_, name, id, _, desc] -> {name, Regex.replace(~r/MAKEINTRESOUR...
42.95
250
0.612922
e88da235b73d5fea23279f47c4f558362e27fc51
1,174
ex
Elixir
lib/exrm_deb/generators/changelog.ex
johnhamelink/exrm_deb
7c6a43213b38f59dfc5a3fedcf85e5802e2ef5ce
[ "MIT" ]
75
2016-03-02T16:05:47.000Z
2022-01-31T20:25:06.000Z
lib/exrm_deb/generators/changelog.ex
johnhamelink/exrm_deb
7c6a43213b38f59dfc5a3fedcf85e5802e2ef5ce
[ "MIT" ]
27
2016-03-14T12:57:23.000Z
2018-11-15T12:29:27.000Z
lib/exrm_deb/generators/changelog.ex
johnhamelink/exrm-deb
7c6a43213b38f59dfc5a3fedcf85e5802e2ef5ce
[ "MIT" ]
15
2016-03-21T20:29:08.000Z
2020-02-21T03:01:26.000Z
defmodule ExrmDeb.Generators.Changelog do @moduledoc ~S""" This module produces boilerplate changelog data that's required to build a valid deb file. """ alias ReleaseManager.Utils.Logger alias ExrmDeb.Generators.TemplateFinder alias ExrmDeb.Utils.Compression import Logger, only: [debug: 1] def build...
23.019608
76
0.620954
e88de9fce2e16f2fec7246fd29e026d780bff9e5
911
exs
Elixir
apps/astarte_housekeeping_api/config/prod.exs
matt-mazzucato/astarte
34d84941a5019efc42321052f7f34b7d907a38f2
[ "Apache-2.0" ]
null
null
null
apps/astarte_housekeeping_api/config/prod.exs
matt-mazzucato/astarte
34d84941a5019efc42321052f7f34b7d907a38f2
[ "Apache-2.0" ]
5
2019-11-18T17:06:34.000Z
2019-12-19T10:03:59.000Z
apps/astarte_housekeeping_api/config/prod.exs
matt-mazzucato/astarte
34d84941a5019efc42321052f7f34b7d907a38f2
[ "Apache-2.0" ]
2
2018-02-05T19:23:18.000Z
2019-11-19T11:44:40.000Z
use Mix.Config # For production, we often load configuration from external # sources, such as your system environment. For this reason, # you won't find the :http configuration below, but set inside # Astarte.Housekeeping.APIWeb.Endpoint.load_from_system_env/1 dynamically. # Any dynamic configuration should be moved t...
41.409091
74
0.795829
e88dfbb75eaae7c2a132e4aa2e2947ee1a907c10
2,371
ex
Elixir
clients/spanner/lib/google_api/spanner/v1/model/instance_config.ex
richiboi1977/elixir-google-api
c495bb3548090eb7a63d12f6fb145ec48aecdc0b
[ "Apache-2.0" ]
1
2021-10-01T09:20:41.000Z
2021-10-01T09:20:41.000Z
clients/spanner/lib/google_api/spanner/v1/model/instance_config.ex
richiboi1977/elixir-google-api
c495bb3548090eb7a63d12f6fb145ec48aecdc0b
[ "Apache-2.0" ]
null
null
null
clients/spanner/lib/google_api/spanner/v1/model/instance_config.ex
richiboi1977/elixir-google-api
c495bb3548090eb7a63d12f6fb145ec48aecdc0b
[ "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...
42.339286
194
0.724167
e88dfc0a41b47dd3ad448ad47be8ede57cedfb72
487
ex
Elixir
web/views/userp_view.ex
GoberInfinity/ExamplePhoenix
4f2e016000a55dd4dbc28409dd214f0923e38e32
[ "MIT" ]
null
null
null
web/views/userp_view.ex
GoberInfinity/ExamplePhoenix
4f2e016000a55dd4dbc28409dd214f0923e38e32
[ "MIT" ]
null
null
null
web/views/userp_view.ex
GoberInfinity/ExamplePhoenix
4f2e016000a55dd4dbc28409dd214f0923e38e32
[ "MIT" ]
null
null
null
defmodule Otherpool.UserpView do use Otherpool.Web, :view def render("index.json", %{userps: userps}) do %{data: render_many(userps, Otherpool.UserpView, "userp.json")} end def render("show.json", %{userp: userp}) do %{data: render_one(userp, Otherpool.UserpView, "userp.json")} end def render("us...
25.631579
67
0.671458
e88e2328a49bc0af7da7ed80b6e7f6a3cf388c10
1,619
ex
Elixir
apps/legion/lib/identity/telephony/phone_number/safety_trait.ex
i386-64/legion
41ae99af9be962d7fb38726ddf4bb0456edb5ca4
[ "Apache-2.0" ]
1
2021-01-04T11:06:12.000Z
2021-01-04T11:06:12.000Z
apps/legion/lib/identity/telephony/phone_number/safety_trait.ex
i386-64/legion
41ae99af9be962d7fb38726ddf4bb0456edb5ca4
[ "Apache-2.0" ]
3
2021-01-30T06:40:37.000Z
2021-01-30T06:41:08.000Z
apps/legion/lib/identity/telephony/phone_number/safety_trait.ex
i386-64/legion
41ae99af9be962d7fb38726ddf4bb0456edb5ca4
[ "Apache-2.0" ]
null
null
null
defmodule Legion.Identity.Telephony.PhoneNumber.SafetyTrait do @moduledoc """ Marks a phone number as safe for given amount of time. Defines a normalized event sink for trust actions. # Schema fields - `:phone_number`: The phone number being affected from the safety trait. - `:authority`: The authority w...
35.977778
91
0.759728
e88e2a7b82005f83f25afdba91029460d4decde0
591
exs
Elixir
languages/elixir/exercises/concept/secrets/mix.exs
AlexLeSang/v3
3d35961a961b5a2129b1d42f1d118972d9665357
[ "MIT" ]
3
2020-07-25T06:24:00.000Z
2020-09-14T17:39:11.000Z
languages/elixir/exercises/concept/secrets/mix.exs
AlexLeSang/v3
3d35961a961b5a2129b1d42f1d118972d9665357
[ "MIT" ]
1
2020-01-26T20:08:06.000Z
2020-01-26T20:08:06.000Z
languages/elixir/exercises/concept/secrets/mix.exs
AlexLeSang/v3
3d35961a961b5a2129b1d42f1d118972d9665357
[ "MIT" ]
null
null
null
defmodule ClosureMaker.MixProject do use Mix.Project def project do [ app: :anonymous_functions, version: "0.1.0", # elixir: "~> 1.10", start_permanent: Mix.env() == :prod, deps: deps() ] end # Run "mix help compile.app" to learn about applications. def application do ...
20.37931
87
0.58714
e88e2ea2d4ca505c785aaacbea51249dcff58ec5
425
exs
Elixir
test/tic_tac_toe_web/views/error_view_test.exs
bryanchun/tic_tac_toe
cad397ce72857669a685337911c7ae692cbd1695
[ "MIT" ]
null
null
null
test/tic_tac_toe_web/views/error_view_test.exs
bryanchun/tic_tac_toe
cad397ce72857669a685337911c7ae692cbd1695
[ "MIT" ]
1
2021-05-22T02:09:13.000Z
2021-05-22T02:09:13.000Z
test/tic_tac_toe_web/views/error_view_test.exs
devrafaelantunes/tic_tac_toe_liveview
9055aff27b45e5d34898bb57018c5a90ea6a8c9e
[ "MIT" ]
null
null
null
defmodule TicTacToeWeb.ErrorViewTest do use TicTacToeWeb.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(TicTacToeWeb.ErrorView, "404.html", []) == "Not Found" end test "renders 500.html" do ...
28.333333
94
0.738824
e88e307f0247477e212ea01bc34cb23227460131
1,662
ex
Elixir
lib/vintage_net/power_manager/supervisor.ex
axelson/vintage_net
68866ff223fa40e7ad6fd4d9fb2f7960cf51b1ca
[ "Apache-2.0" ]
null
null
null
lib/vintage_net/power_manager/supervisor.ex
axelson/vintage_net
68866ff223fa40e7ad6fd4d9fb2f7960cf51b1ca
[ "Apache-2.0" ]
null
null
null
lib/vintage_net/power_manager/supervisor.ex
axelson/vintage_net
68866ff223fa40e7ad6fd4d9fb2f7960cf51b1ca
[ "Apache-2.0" ]
null
null
null
defmodule VintageNet.PowerManager.Supervisor do use Supervisor require Logger @moduledoc """ Supervision for all of the power management controllers """ @spec start_link(any()) :: Supervisor.on_start_child() def start_link(args) do Supervisor.start_link(__MODULE__, args, name: __MODULE__) end @...
25.569231
86
0.651023
e88e51fce8cd92d7dfb15af895e43fa87d5642cc
1,025
ex
Elixir
lib/explosive.ex
fumycat/explosive
b4eff80da2548f90c805924c6681abeeb303fd56
[ "MIT" ]
null
null
null
lib/explosive.ex
fumycat/explosive
b4eff80da2548f90c805924c6681abeeb303fd56
[ "MIT" ]
null
null
null
lib/explosive.ex
fumycat/explosive
b4eff80da2548f90c805924c6681abeeb303fd56
[ "MIT" ]
null
null
null
defmodule Explosive do @moduledoc false require Logger use Application @impl true def start(_type, _args) do dispatch = [ {:_, [ {"/ws/[...]", PlayerWS, []}, {:_, Plug.Cowboy.Handler, {Router, []}} ]} ] children = [ Plug.Cowboy.child_spec( sch...
21.354167
68
0.556098
e88e5dd019a1d5970821968eac5b532af29086fd
903
ex
Elixir
survey/lib/survey/plugins.ex
RamanBut-Husaim/pragstudio-elixir
21c723c933966798ae944ca2fd72697e9d0f2fa2
[ "MIT" ]
null
null
null
survey/lib/survey/plugins.ex
RamanBut-Husaim/pragstudio-elixir
21c723c933966798ae944ca2fd72697e9d0f2fa2
[ "MIT" ]
null
null
null
survey/lib/survey/plugins.ex
RamanBut-Husaim/pragstudio-elixir
21c723c933966798ae944ca2fd72697e9d0f2fa2
[ "MIT" ]
null
null
null
defmodule Survey.Plugins do @moduledoc """ Plugins. """ require Logger alias Survey.Conv alias Survey.FourOhFourCounter, as: Counter def track(%Conv{status: 404, path: path} = conv) do Logger.warn "#{path} is on the loose!" Counter.bump_count(path) conv end def track(%Conv{} = conv), d...
23.153846
79
0.619048
e88e640c6d3c827afbe762e685d1af78d8525c5d
326
exs
Elixir
priv/repo/migrations/20191230124514_create_config_user.exs
icexuick/teiserver
22f2e255e7e21f977e6b262acf439803626a506c
[ "MIT" ]
6
2021-02-08T10:42:53.000Z
2021-04-25T12:12:03.000Z
priv/repo/migrations/20191230124514_create_config_user.exs
icexuick/teiserver
22f2e255e7e21f977e6b262acf439803626a506c
[ "MIT" ]
14
2021-08-01T02:36:14.000Z
2022-01-30T21:15:03.000Z
priv/repo/migrations/20191230124514_create_config_user.exs
icexuick/teiserver
22f2e255e7e21f977e6b262acf439803626a506c
[ "MIT" ]
7
2021-05-13T12:55:28.000Z
2022-01-14T06:39:06.000Z
defmodule Central.Repo.Migrations.CreateConfigUser do use Ecto.Migration def change do create table(:config_user) do add :key, :string add :value, :string add :user_id, references(:account_users, on_delete: :nothing) timestamps() end create index(:config_user, [:user_id]) en...
20.375
67
0.680982
e88e93bff3ecd46ce154c348d91007f383a7fc23
634
ex
Elixir
lib/photog/api/person_image.ex
allen-garvey/photog-react
c400174d0e456dcbfd565407eb85e8ce80ec59c0
[ "MIT" ]
null
null
null
lib/photog/api/person_image.ex
allen-garvey/photog-react
c400174d0e456dcbfd565407eb85e8ce80ec59c0
[ "MIT" ]
null
null
null
lib/photog/api/person_image.ex
allen-garvey/photog-react
c400174d0e456dcbfd565407eb85e8ce80ec59c0
[ "MIT" ]
null
null
null
defmodule Photog.Api.PersonImage do use Ecto.Schema import Ecto.Changeset schema "person_images" do belongs_to :image, Photog.Api.Image belongs_to :person, Photog.Api.Person timestamps() end @doc false def changeset(person_image, attrs) do person_image |> cast(attrs, [:person_id, :im...
25.36
96
0.723975
e88ed3609b81f1ff113d006995248edba2601786
2,821
ex
Elixir
lib/money/parser/combinators.ex
hamptokr/money
dac0965fb308a476008284fe83877e948f20d088
[ "Apache-2.0" ]
426
2016-10-10T08:53:20.000Z
2022-03-17T04:28:00.000Z
lib/money/parser/combinators.ex
hamptokr/money
dac0965fb308a476008284fe83877e948f20d088
[ "Apache-2.0" ]
131
2016-12-03T22:43:52.000Z
2022-02-13T22:35:57.000Z
lib/money/parser/combinators.ex
hamptokr/money
dac0965fb308a476008284fe83877e948f20d088
[ "Apache-2.0" ]
47
2017-02-18T08:11:26.000Z
2022-01-26T19:31:34.000Z
defmodule Money.Combinators do @moduledoc false import NimbleParsec # Whitespace as defined by Unicode set :Zs plus tab @whitespace [?\s, ?\t, 0xA0, 0x1680, 0x2000, 0x202F, 0x205F, 0x3000] def whitespace do repeat(empty(), utf8_char(@whitespace)) |> label("whitespace") end @separators [?., ?,, ...
23.508333
70
0.586317
e88eeca9d67df54c0b65c0d80062ded507de74b6
294
exs
Elixir
test/traverse/ignore_test.exs
RobertDober/traverse
606f65c2bfc9c243ea80c84ea72b7e08896e0ad2
[ "Apache-2.0" ]
8
2016-08-29T22:25:18.000Z
2021-03-05T19:13:15.000Z
test/traverse/ignore_test.exs
RobertDober/traverse
606f65c2bfc9c243ea80c84ea72b7e08896e0ad2
[ "Apache-2.0" ]
4
2016-08-29T17:20:52.000Z
2020-12-12T16:26:45.000Z
test/traverse/ignore_test.exs
RobertDober/traverse
606f65c2bfc9c243ea80c84ea72b7e08896e0ad2
[ "Apache-2.0" ]
null
null
null
defmodule Traverse.IgnoreTest do use ExUnit.Case import Traverse.Ignore doctest Traverse.Ignore describe "me?" do test "me" do assert me?(Traverse.Ignore) end test "not me" do assert !me?(nil) assert !me?(42) assert !me?(%{}) end end end
16.333333
34
0.602041
e88f00ebb23e5a3ddfd7b9f9c46cb86a81cc83a2
8,854
ex
Elixir
apps/shell/lib/command.ex
lowlandresearch/kudzu
f65da5061c436afb114a2e95bc6d115b6ec7be53
[ "MIT" ]
null
null
null
apps/shell/lib/command.ex
lowlandresearch/kudzu
f65da5061c436afb114a2e95bc6d115b6ec7be53
[ "MIT" ]
4
2020-05-16T16:05:33.000Z
2020-05-16T19:52:12.000Z
apps/shell/lib/command.ex
lowlandresearch/kudzu
f65da5061c436afb114a2e95bc6d115b6ec7be53
[ "MIT" ]
null
null
null
defmodule Shell.Command do @doc """ Prepare the Shell.Command state map prior to running the Port. E.g. might be used to set up a temporary output file to be parsed after the command has completed. By default, returns state as is. """ @callback command_init(map) :: {:ok, map} | {:error, term} @doc ...
30.115646
83
0.484979
e88f3c1cdd560b094f75d3cd73dbcc3d9750dfbc
1,822
exs
Elixir
config/prod.exs
liviaab/twivia
ce00db2ef8375ef5c6f1c1f996aa7c44fa994a8e
[ "MIT" ]
null
null
null
config/prod.exs
liviaab/twivia
ce00db2ef8375ef5c6f1c1f996aa7c44fa994a8e
[ "MIT" ]
null
null
null
config/prod.exs
liviaab/twivia
ce00db2ef8375ef5c6f1c1f996aa7c44fa994a8e
[ "MIT" ]
null
null
null
import Config # For production, don't forget to configure the url host # to something meaningful, Phoenix uses this information # when generating URLs. # # Note we also include the path to a cache manifest # containing the digested version of static files. This # manifest is generated by the `mix phx.digest` task, # w...
35.038462
66
0.703074
e88f5d5cd58b20170ba64d2aac933df699873e53
432
exs
Elixir
test/test_helper.exs
rschef/paper_trail
6ab8b29ee97b46222cc48d376daea70fc5cb8105
[ "MIT" ]
1
2021-03-17T14:22:49.000Z
2021-03-17T14:22:49.000Z
test/test_helper.exs
rschef/paper_trail
6ab8b29ee97b46222cc48d376daea70fc5cb8105
[ "MIT" ]
null
null
null
test/test_helper.exs
rschef/paper_trail
6ab8b29ee97b46222cc48d376daea70fc5cb8105
[ "MIT" ]
2
2021-06-08T11:47:03.000Z
2021-10-18T21:44:08.000Z
Application.start(:postgrex) Mix.Task.run("ecto.drop") Mix.Task.run("ecto.create") Mix.Task.run("ecto.migrate") PaperTrail.Repo.start_link() PaperTrail.UUIDRepo.start_link() Code.require_file("test/support/multi_tenant_helper.exs") Code.require_file("test/support/simple_models.exs") Code.require_file("test/support/s...
24
57
0.791667
e88f7f426a9f6ef55da7912dfac531fdee800716
3,594
ex
Elixir
lib/graphql/query_registry.ex
TheRealReal/graphql_client
18b5b93f06a5cac218f8727eb0f7863081b7becf
[ "Apache-2.0" ]
9
2022-03-11T21:14:13.000Z
2022-03-31T14:13:38.000Z
lib/graphql/query_registry.ex
TheRealReal/graphql_client
18b5b93f06a5cac218f8727eb0f7863081b7becf
[ "Apache-2.0" ]
null
null
null
lib/graphql/query_registry.ex
TheRealReal/graphql_client
18b5b93f06a5cac218f8727eb0f7863081b7becf
[ "Apache-2.0" ]
null
null
null
defmodule GraphQL.QueryRegistry do @moduledoc """ Functions to handle query registries. A query registry stores several `GraphQL.Query` structs, so they can be combined into a single query before the execution. """ alias GraphQL.{Client, Query} @enforce_keys [:name] defstruct name: nil, queries: [], v...
27.435115
93
0.635782
e88fdfa464e324497fef54ccce73b32ba299ef6b
58
ex
Elixir
takso-hw5 2/web/views/session_view.ex
alpdenizz/ElixirPlayground
58b5a16c489058e0067e4811042d96fe6a5f8d59
[ "MIT" ]
null
null
null
takso-hw5 2/web/views/session_view.ex
alpdenizz/ElixirPlayground
58b5a16c489058e0067e4811042d96fe6a5f8d59
[ "MIT" ]
null
null
null
takso-hw5 2/web/views/session_view.ex
alpdenizz/ElixirPlayground
58b5a16c489058e0067e4811042d96fe6a5f8d59
[ "MIT" ]
null
null
null
defmodule Takso.SessionView do use Takso.Web, :view end
14.5
30
0.775862
e88fee5b26599da6eb08dc71b3a26776617cbf74
1,557
ex
Elixir
lib/horde/registry_supervisor.ex
smaximov/horde
52b8e7f996b0508f0ecf195bfa24f1dc1a246e30
[ "MIT" ]
3
2019-11-11T17:00:04.000Z
2019-11-20T22:01:06.000Z
lib/horde/registry_supervisor.ex
evadne/horde
5778e243682850131ac6bec94e75a301d44a102b
[ "MIT" ]
null
null
null
lib/horde/registry_supervisor.ex
evadne/horde
5778e243682850131ac6bec94e75a301d44a102b
[ "MIT" ]
null
null
null
defmodule Horde.RegistrySupervisor do @moduledoc false use Supervisor def init(options) do root_name = get_root_name(options) unless is_atom(root_name) do raise ArgumentError, "expected :root_name to be given and to be an atom, got: #{inspect(root_name)}" end children = [ ...
24.714286
91
0.665382
e88ff73751974c839697655fa37cbdb2b81d655c
199
ex
Elixir
test/support/example_undocumented_module.ex
axelson/priv_check
ba4228881edbf16ac61b0e006537de517c7f6f06
[ "MIT" ]
8
2020-03-15T19:22:02.000Z
2021-09-28T11:00:18.000Z
test/support/example_undocumented_module.ex
axelson/priv_check
ba4228881edbf16ac61b0e006537de517c7f6f06
[ "MIT" ]
7
2020-03-11T06:21:57.000Z
2020-11-15T19:48:54.000Z
test/support/example_undocumented_module.ex
axelson/priv_check
ba4228881edbf16ac61b0e006537de517c7f6f06
[ "MIT" ]
null
null
null
defmodule PrivCheck.Test.ExampleUndocumentedModule do @doc "public func" def publicly_documented_func do end def non_documented_func do end @doc false def doc_false_func do end end
15.307692
53
0.773869
e890656a566b6877704b6e149cc803128a3ac8a8
418
ex
Elixir
lib/console_web/mailerlite.ex
maco2035/console
2a9a65678b8c671c7d92cdb62dfcfc71b84957c5
[ "Apache-2.0" ]
83
2018-05-31T14:49:10.000Z
2022-03-27T16:49:49.000Z
lib/console_web/mailerlite.ex
maco2035/console
2a9a65678b8c671c7d92cdb62dfcfc71b84957c5
[ "Apache-2.0" ]
267
2018-05-22T23:19:02.000Z
2022-03-31T04:31:06.000Z
lib/console_web/mailerlite.ex
maco2035/console
2a9a65678b8c671c7d92cdb62dfcfc71b84957c5
[ "Apache-2.0" ]
18
2018-11-20T05:15:54.000Z
2022-03-28T08:20:13.000Z
defmodule ConsoleWeb.Mailerlite do def subscribe(email) do case Application.get_env(:console, :mailerlite_api_key) do nil -> nil api_key -> headers = [{"Content-Type", "application/json"}, {"X-MailerLite-ApiKey", api_key}] body = Jason.encode!(%{ email: email }) HTTPoison.post ...
32.153846
101
0.665072
e8908d56f1b22b520d8d018b799383e56e8fd8dc
2,004
exs
Elixir
mix.exs
meltingice/conductor
630440adc1081a0991d3dba17ced775a9dd05055
[ "MIT" ]
null
null
null
mix.exs
meltingice/conductor
630440adc1081a0991d3dba17ced775a9dd05055
[ "MIT" ]
2
2021-03-10T20:23:26.000Z
2021-05-11T15:56:49.000Z
mix.exs
meltingice/conductor
630440adc1081a0991d3dba17ced775a9dd05055
[ "MIT" ]
1
2020-06-05T02:34:58.000Z
2020-06-05T02:34:58.000Z
defmodule Conductor.MixProject do use Mix.Project def project do [ app: :conductor, version: "0.1.0", elixir: "~> 1.7", elixirc_paths: elixirc_paths(Mix.env()), compilers: [:phoenix, :gettext] ++ Mix.compilers(), start_permanent: Mix.env() == :prod, aliases: aliases(),...
28.225352
84
0.566367
e8909453178d2d9c246815efe06ca1f14e078bc8
2,788
ex
Elixir
lib/mojito/request/single.ex
appcues/xclient
423984cbc9bb592d799d9d9e456a1d4eca45245b
[ "MIT" ]
367
2019-02-25T23:50:14.000Z
2022-02-11T23:05:16.000Z
lib/mojito/request/single.ex
appcues/xclient
423984cbc9bb592d799d9d9e456a1d4eca45245b
[ "MIT" ]
72
2019-02-26T00:30:49.000Z
2022-02-03T22:24:04.000Z
lib/mojito/request/single.ex
appcues/xclient
423984cbc9bb592d799d9d9e456a1d4eca45245b
[ "MIT" ]
36
2019-03-18T15:34:18.000Z
2021-08-31T21:25:18.000Z
defmodule Mojito.Request.Single do ## Make a single request, without spawning any processes. @moduledoc false alias Mojito.{Config, Conn, Error, Request, Response} require Logger @doc ~S""" Performs a single HTTP request, receiving `:tcp` and `:ssl` messages in the caller process. Options: * `:ti...
27.333333
77
0.599354
e8910d37e52adc888db964f2849a246c6fc4b0c8
8,525
exs
Elixir
apps/ehealth/test/web/controllers/medication/program_medication_controller_test.exs
ehealth-ua/ehealth.api
4ffe26a464fe40c95fb841a4aa2e147068f65ca2
[ "Apache-2.0" ]
8
2019-06-14T11:34:49.000Z
2021-08-05T19:14:24.000Z
apps/ehealth/test/web/controllers/medication/program_medication_controller_test.exs
edenlabllc/ehealth.api.public
4ffe26a464fe40c95fb841a4aa2e147068f65ca2
[ "Apache-2.0" ]
1
2019-07-08T15:20:22.000Z
2019-07-08T15:20:22.000Z
apps/ehealth/test/web/controllers/medication/program_medication_controller_test.exs
ehealth-ua/ehealth.api
4ffe26a464fe40c95fb841a4aa2e147068f65ca2
[ "Apache-2.0" ]
6
2018-05-11T13:59:32.000Z
2022-01-19T20:15:22.000Z
defmodule EHealthWeb.ProgramMedicationControllerTest do @moduledoc false use EHealth.Web.ConnCase, async: true alias Core.Medications.Program, as: ProgramMedication alias Ecto.UUID alias ExMachina.Sequence describe "search" do setup %{conn: conn} do Sequence.reset() innm_dosage1 = insert...
40.023474
117
0.675191
e8914eb1b3d655816d3b64da7b89558e66e64804
1,080
ex
Elixir
apps/bytepack_web/test/support/channel_case.ex
dashbitco/bytepack_archive
79f8e62149d020f2afcc501592ed399f7ce7a60b
[ "Unlicense" ]
313
2020-12-03T17:26:24.000Z
2022-03-18T09:05:14.000Z
apps/bytepack_web/test/support/channel_case.ex
dashbitco/bytepack_archive
79f8e62149d020f2afcc501592ed399f7ce7a60b
[ "Unlicense" ]
null
null
null
apps/bytepack_web/test/support/channel_case.ex
dashbitco/bytepack_archive
79f8e62149d020f2afcc501592ed399f7ce7a60b
[ "Unlicense" ]
57
2020-12-03T17:41:53.000Z
2022-03-17T17:28:16.000Z
defmodule BytepackWeb.ChannelCase do @moduledoc """ This module defines the test case to be used by channel tests. Such tests rely on `Phoenix.ChannelTest` and also import other functionality to make it easier to build common data structures and query the data layer. Finally, if the test case interacts ...
27
70
0.727778
e8914f3bea04a83e76ac12245be4eeaf9f708224
2,025
ex
Elixir
clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/date_range.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/date_range.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/date_range.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...
36.160714
139
0.700247
e8916be1cb4381d989b5e6e954ba12509a05e6e8
3,835
exs
Elixir
test/codex/oauth_test.exs
sbacarob/codex
b6876e90106129d2e02e77a73c4b0383cea3cf17
[ "MIT" ]
null
null
null
test/codex/oauth_test.exs
sbacarob/codex
b6876e90106129d2e02e77a73c4b0383cea3cf17
[ "MIT" ]
1
2020-09-16T22:00:09.000Z
2020-10-28T03:58:01.000Z
test/codex/oauth_test.exs
sbacarob/codex
b6876e90106129d2e02e77a73c4b0383cea3cf17
[ "MIT" ]
null
null
null
defmodule OAuthTest do use ExUnit.Case use ExVCR.Mock, adapter: ExVCR.Adapter.Hackney alias Codex.OAuth doctest OAuth, except: [ get_request_token_and_secret: 0, generate_oauth_header: 4, get_access_token_and_secret: 2 ] setup_all do HTTPoison.start end test "get a request token and ...
35.509259
129
0.656323
e891718ab27c302f84c149e240ea99bb66fcb3c1
505
ex
Elixir
lib/simple_budget_web/views/saving_view.ex
corybuecker/simple-budget
d86241ff712552267da87052120468b01d2b8f41
[ "MIT" ]
2
2019-04-02T01:06:40.000Z
2019-05-13T01:12:24.000Z
lib/simple_budget_web/views/saving_view.ex
corybuecker/simple-budget
d86241ff712552267da87052120468b01d2b8f41
[ "MIT" ]
7
2018-12-27T12:33:38.000Z
2021-03-08T22:31:14.000Z
lib/simple_budget_web/views/saving_view.ex
corybuecker/simple-budget
d86241ff712552267da87052120468b01d2b8f41
[ "MIT" ]
null
null
null
defmodule SimpleBudgetWeb.SavingView do use SimpleBudgetWeb, :view alias SimpleBudgetWeb.SavingView def render("index.json", %{savings: savings}) do %{data: render_many(savings, SavingView, "saving.json")} end def render("show.json", %{saving: saving}) do %{data: render_one(saving, SavingView, "savi...
24.047619
60
0.671287
e891a57455e827572cf179f0711d648a5fc09b52
291
ex
Elixir
test/support/macros.ex
Swingcloud/strukt
236c253146546f2d11b1c57e29645860f0159cc5
[ "Apache-2.0" ]
59
2021-06-09T01:47:04.000Z
2022-03-17T23:41:22.000Z
test/support/macros.ex
Swingcloud/strukt
236c253146546f2d11b1c57e29645860f0159cc5
[ "Apache-2.0" ]
7
2021-07-12T14:11:04.000Z
2022-03-17T18:06:45.000Z
test/support/macros.ex
Swingcloud/strukt
236c253146546f2d11b1c57e29645860f0159cc5
[ "Apache-2.0" ]
4
2021-06-13T13:45:31.000Z
2021-07-01T08:34:38.000Z
defmodule Strukt.Test.Macros do defmacro __using__(_opts) do quote do use Strukt @timestamps_opts [type: :utc_datetime_usec, autogenerate: {DateTime, :utc_now, []}] @primary_key {:uuid, Ecto.UUID, autogenerate: true} @derives [Jason.Encoder] end end end
24.25
89
0.676976
e891b4583ea391698cda94ee7edbf77cb91b2fc4
4,464
exs
Elixir
test/phoenix/html/tag_test.exs
parkerl/phoenix
3dc207222877ce1876a07b8dd8d67fcd0325f7e1
[ "MIT" ]
null
null
null
test/phoenix/html/tag_test.exs
parkerl/phoenix
3dc207222877ce1876a07b8dd8d67fcd0325f7e1
[ "MIT" ]
null
null
null
test/phoenix/html/tag_test.exs
parkerl/phoenix
3dc207222877ce1876a07b8dd8d67fcd0325f7e1
[ "MIT" ]
null
null
null
defmodule Phoenix.HTML.TagTest do use ExUnit.Case, async: true import Phoenix.HTML import Phoenix.HTML.Tag doctest Phoenix.HTML.Tag test "tag" do assert tag(:br) == {:safe, "<br>"} assert tag(:input, name: ~s("<3")) == {:safe, ~s(<input name="&quot;&lt;3&quot;">)} assert ...
35.428571
110
0.515233
e891cc36eb6c913fdc4aa5a13afc87a4ac72b3c0
331
exs
Elixir
priv/repo/migrations/20160622202523_create_skill.exs
ClubNix/academy
962be0defc1d8eedc5d19ac0a65e931c794c6538
[ "MIT" ]
3
2016-06-18T17:46:14.000Z
2020-01-21T03:19:41.000Z
priv/repo/migrations/20160622202523_create_skill.exs
ClubNix/academy
962be0defc1d8eedc5d19ac0a65e931c794c6538
[ "MIT" ]
18
2016-06-18T18:05:43.000Z
2018-03-06T08:19:41.000Z
priv/repo/migrations/20160622202523_create_skill.exs
ClubNix/academy
962be0defc1d8eedc5d19ac0a65e931c794c6538
[ "MIT" ]
3
2016-10-26T19:51:06.000Z
2018-09-18T09:06:14.000Z
defmodule Academy.Repo.Migrations.CreateSkill do use Ecto.Migration def change do create table(:skills) do add :name, :string add :description, :string add :category_id, references(:skill_categories, on_delete: :nilify_all) timestamps end create unique_index(:skills, [:name]) ...
19.470588
77
0.688822
e891ec2cc577e9a7fb96809a4f2f8189e01de9fa
101
exs
Elixir
deps/phoenix_live_reload/.formatter.exs
matin360/TaksoWebApp
4dd8fef625ecc2364fe1d6e18e73c96c59d15349
[ "MIT" ]
2
2020-05-06T14:51:56.000Z
2020-05-06T14:52:21.000Z
deps/phoenix_live_reload/.formatter.exs
matin360/TaksoWebApp
4dd8fef625ecc2364fe1d6e18e73c96c59d15349
[ "MIT" ]
4
2021-03-04T13:00:52.000Z
2021-03-12T12:42:09.000Z
deps/phoenix_live_reload/.formatter.exs
adrianomota/blog
ef3b2d2ed54f038368ead8234d76c18983caa75b
[ "MIT" ]
1
2020-05-16T22:44:14.000Z
2020-05-16T22:44:14.000Z
[ inputs: ["{mix,.formatter}.exs", "{config,lib,test}/**/*.{ex,exs}"], import_deps: [:phoenix] ]
20.2
70
0.564356
e891fb9fabb19b198357bd0f932467f95f1a056a
456
exs
Elixir
.credo.exs
nerves-networking/vintage_net
8d4251a0ec995babf8f4d7aa7cc1d74b70646c72
[ "Apache-2.0" ]
85
2019-05-09T14:54:38.000Z
2022-02-08T16:52:04.000Z
.credo.exs
nerves-networking/vintage_net
8d4251a0ec995babf8f4d7aa7cc1d74b70646c72
[ "Apache-2.0" ]
132
2019-05-09T15:57:59.000Z
2022-02-28T16:31:22.000Z
.credo.exs
nerves-networking/vintage_net
8d4251a0ec995babf8f4d7aa7cc1d74b70646c72
[ "Apache-2.0" ]
14
2019-07-08T19:18:23.000Z
2022-02-08T16:52:05.000Z
# .credo.exs %{ configs: [ %{ name: "default", checks: [ {Credo.Check.Refactor.MapInto, false}, {Credo.Check.Warning.LazyLogging, false}, {Credo.Check.Readability.LargeNumbers, only_greater_than: 86400}, {Credo.Check.Readability.ParenthesesOnZeroArityDefs, parens: true}...
26.823529
75
0.614035
e891fc2ee862db540541d322785599bc86e5a54f
195
exs
Elixir
test/controllers/page_controller_test.exs
nicohartto/headland-back
413febe835dafc15b4dae731998ff42aa755496b
[ "MIT" ]
null
null
null
test/controllers/page_controller_test.exs
nicohartto/headland-back
413febe835dafc15b4dae731998ff42aa755496b
[ "MIT" ]
null
null
null
test/controllers/page_controller_test.exs
nicohartto/headland-back
413febe835dafc15b4dae731998ff42aa755496b
[ "MIT" ]
null
null
null
defmodule Headland.PageControllerTest do use Headland.ConnCase test "GET /", %{conn: conn} do conn = get conn, "/" assert html_response(conn, 200) =~ "Welcome to Phoenix!" end end
21.666667
60
0.676923
e892167102b5c787edbda1380602aa7d20fb780e
3,539
ex
Elixir
clients/books/lib/google_api/books/v1/model/layersummary.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/books/lib/google_api/books/v1/model/layersummary.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/books/lib/google_api/books/v1/model/layersummary.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...
42.638554
280
0.669398
e89234dcc400ed37877469c69ab3a352a6fbe926
3,888
ex
Elixir
implementations/elixir/ockam/ockam/lib/ockam/transport/udp/listener.ex
0x00A5/ockam
9710804e20606e70057d65c70d1af7236194aeeb
[ "Apache-2.0" ]
null
null
null
implementations/elixir/ockam/ockam/lib/ockam/transport/udp/listener.ex
0x00A5/ockam
9710804e20606e70057d65c70d1af7236194aeeb
[ "Apache-2.0" ]
null
null
null
implementations/elixir/ockam/ockam/lib/ockam/transport/udp/listener.ex
0x00A5/ockam
9710804e20606e70057d65c70d1af7236194aeeb
[ "Apache-2.0" ]
null
null
null
defmodule Ockam.Transport.UDP.Listener do @moduledoc false use GenServer alias Ockam.Message alias Ockam.Router alias Ockam.Telemetry alias Ockam.Transport.UDPAddress alias Ockam.Wire require Logger def start_link(options) do GenServer.start_link(__MODULE__, options) end def send_message(...
27.380282
98
0.663837
e89244f356816102822585c31bc7a6a8bf199739
1,022
ex
Elixir
lib/metrics/character_instrumenter.ex
jgsmith/ex_venture
546adaa8fe80d45a72fde6de8d8d6906902c12d4
[ "MIT" ]
2
2019-05-14T11:36:44.000Z
2020-07-01T08:54:04.000Z
lib/metrics/character_instrumenter.ex
nickwalton/ex_venture
d8ff1b0181db03f9ddcb7610ae7ab533feecbfbb
[ "MIT" ]
null
null
null
lib/metrics/character_instrumenter.ex
nickwalton/ex_venture
d8ff1b0181db03f9ddcb7610ae7ab533feecbfbb
[ "MIT" ]
1
2021-01-29T14:12:40.000Z
2021-01-29T14:12:40.000Z
defmodule Metrics.CharacterInstrumenter do @moduledoc """ Command metrics """ use Prometheus.Metric def setup() do Counter.declare( name: :exventure_character_movement_total, help: "Total count of character movements", labels: [:type] ) Histogram.declare( name: :exventur...
20.44
78
0.594912
e8924a0c6271da28cd6b42aae112d218cb0be824
1,172
exs
Elixir
mix.exs
superfly/fly_rpc_elixir
35eb16fd0d8926e3cd528ba34b9bf4d8953df81b
[ "Apache-2.0" ]
21
2021-10-04T01:05:19.000Z
2022-03-30T15:32:14.000Z
mix.exs
superfly/fly_rpc_elixir
35eb16fd0d8926e3cd528ba34b9bf4d8953df81b
[ "Apache-2.0" ]
3
2022-01-25T19:00:27.000Z
2022-03-24T23:26:34.000Z
mix.exs
superfly/fly_rpc_elixir
35eb16fd0d8926e3cd528ba34b9bf4d8953df81b
[ "Apache-2.0" ]
3
2021-10-15T02:54:55.000Z
2022-03-12T15:03:49.000Z
defmodule Fly.MixProject do use Mix.Project def project do [ app: :fly_rpc, version: "0.1.6", elixir: "~> 1.12", start_permanent: Mix.env() == :prod, name: "Fly RPC", source_url: "https://github.com/superfly/fly_rpc_elixir", description: description(), deps: deps...
20.561404
72
0.557167
e89263b117bbb97066d537d8de6bb450f80c2804
76
exs
Elixir
test/test_helper.exs
N-Patarov/bgsite_official
9ed082dd8c6c5dbc83e0bc50ec63095a72ee2854
[ "Apache-2.0" ]
1
2021-08-05T12:44:37.000Z
2021-08-05T12:44:37.000Z
test/test_helper.exs
N-Patarov/bgsite_official
9ed082dd8c6c5dbc83e0bc50ec63095a72ee2854
[ "Apache-2.0" ]
16
2021-02-20T19:22:45.000Z
2021-06-14T13:59:01.000Z
test/test_helper.exs
N-Patarov/bgsite_official
9ed082dd8c6c5dbc83e0bc50ec63095a72ee2854
[ "Apache-2.0" ]
3
2021-05-17T17:54:43.000Z
2021-11-03T15:30:30.000Z
ExUnit.start() Ecto.Adapters.SQL.Sandbox.mode(BgsiteOfficial.Repo, :manual)
25.333333
60
0.802632
e8926c8163f97b4b73d06dcc72dfc40bcc019c2d
3,518
exs
Elixir
test/components/form/inputs_test.exs
jshmrtn/surface
5ddbbc67b2c165ba53a85c68c0da8fce491472f2
[ "MIT" ]
null
null
null
test/components/form/inputs_test.exs
jshmrtn/surface
5ddbbc67b2c165ba53a85c68c0da8fce491472f2
[ "MIT" ]
null
null
null
test/components/form/inputs_test.exs
jshmrtn/surface
5ddbbc67b2c165ba53a85c68c0da8fce491472f2
[ "MIT" ]
null
null
null
defmodule Surface.Components.Form.InputsTest do use Surface.ConnCase, async: true alias Surface.Components.Form alias Surface.Components.Form.Inputs alias Surface.Components.Form.TextInput defmodule Parent do defmodule Child do use Ecto.Schema embedded_schema do field(:name, :string...
29.316667
90
0.52672
e8926e72d929487bca23fdf65872e776e0530b65
1,343
ex
Elixir
lib/grovepi/potentiometer.ex
Tony1928/rpi-grovepi
35fcf31607904aaff4b766a87e1328ff13866585
[ "Apache-2.0" ]
2
2018-09-06T21:30:01.000Z
2018-09-06T21:30:08.000Z
lib/grovepi/potentiometer.ex
schainks/grovepi
2de21f12a2ab28f9788a2add4c6409871e098479
[ "Apache-2.0" ]
null
null
null
lib/grovepi/potentiometer.ex
schainks/grovepi
2de21f12a2ab28f9788a2add4c6409871e098479
[ "Apache-2.0" ]
null
null
null
defmodule GrovePi.Potentiometer do alias GrovePi.Analog use GrovePi.Poller, default_trigger: GrovePi.Potentiometer.DefaultTrigger, read_type: Analog.adc_level @moduledoc """ Conveniences for reading from a potentiometer or rotary angle sensor. Listen for events from a GrovePi potentiometer or rotary angl...
31.232558
78
0.72822
e89282f979553d1464f70bcbf263bc86af48d4cc
9,562
ex
Elixir
lib/aws/transfer.ex
ahsandar/aws-elixir
25de8b6c3a1401bde737cfc26b0679b14b058f23
[ "Apache-2.0" ]
null
null
null
lib/aws/transfer.ex
ahsandar/aws-elixir
25de8b6c3a1401bde737cfc26b0679b14b058f23
[ "Apache-2.0" ]
null
null
null
lib/aws/transfer.ex
ahsandar/aws-elixir
25de8b6c3a1401bde737cfc26b0679b14b058f23
[ "Apache-2.0" ]
null
null
null
# WARNING: DO NOT EDIT, AUTO-GENERATED CODE! # See https://github.com/aws-beam/aws-codegen for more details. defmodule AWS.Transfer do @moduledoc """ AWS Transfer Family is a fully managed service that enables the transfer of files over the the File Transfer Protocol (FTP), File Transfer Protocol over SSL (FTP...
35.679104
77
0.706965
e89286618915184ab2533e088262f1d184ff6d21
1,238
exs
Elixir
test/caldav_client/icalendar/serializer_test.exs
duderman/elixir-caldav-client
eaee70c890d382d0ee15b5750098e9b4763cb8ae
[ "Apache-2.0" ]
33
2021-02-08T17:53:23.000Z
2022-03-08T11:16:47.000Z
test/caldav_client/icalendar/serializer_test.exs
duderman/elixir-caldav-client
eaee70c890d382d0ee15b5750098e9b4763cb8ae
[ "Apache-2.0" ]
7
2021-02-12T13:54:49.000Z
2022-03-07T10:50:08.000Z
test/caldav_client/icalendar/serializer_test.exs
duderman/elixir-caldav-client
eaee70c890d382d0ee15b5750098e9b4763cb8ae
[ "Apache-2.0" ]
3
2021-03-29T22:36:57.000Z
2022-02-23T10:29:56.000Z
defmodule CalDAVClient.ICalendar.SerializerTest do use ExUnit.Case, async: true use ExUnit.Parameterized import CalDAVClient.ICalendar.Serializer test_with_params "serializes DateTime", fn datetime, expected -> assert serialize_datetime(datetime) == expected end do [ {DateTime.from_naive!(~N[2...
38.6875
98
0.663166
e892fb8d675bbf3e6dc9a7c4e36c18b866a045c1
1,068
exs
Elixir
sublist/sublist.exs
nlhuykhang/elixir-exercism
0462661cc411cb28b4bf800639b16684480a06a7
[ "MIT" ]
null
null
null
sublist/sublist.exs
nlhuykhang/elixir-exercism
0462661cc411cb28b4bf800639b16684480a06a7
[ "MIT" ]
null
null
null
sublist/sublist.exs
nlhuykhang/elixir-exercism
0462661cc411cb28b4bf800639b16684480a06a7
[ "MIT" ]
null
null
null
defmodule Sublist do def compare(a, b) do cond do length(a) > length(b) -> check_superlist(a, b) length(a) < length(b) -> check_sublist(a, b) true -> check_equal(a, b); end end defp check_sublist([], _) do :sublist end defp check_sublist(a, b) do ch...
18.101695
67
0.560861
e893058096ef2bc57fa8599ab13d943cdb6c0f55
235
exs
Elixir
apps/core/priv/repo/migrations/20171201002046_chan_admins.exs
friendshipismagic/Hekateros
0d340b6818583e2e65b0395227c9bb91796e5f89
[ "MIT" ]
2
2019-03-22T12:29:37.000Z
2021-01-08T17:25:32.000Z
apps/core/priv/repo/migrations/20171201002046_chan_admins.exs
friendshipismagic/Hecateros
0d340b6818583e2e65b0395227c9bb91796e5f89
[ "MIT" ]
8
2017-12-04T16:53:35.000Z
2018-04-08T11:01:46.000Z
apps/core/priv/repo/migrations/20171201002046_chan_admins.exs
friendshipismagic/Hekateros
0d340b6818583e2e65b0395227c9bb91796e5f89
[ "MIT" ]
null
null
null
defmodule Core.Repo.Migrations.ChanAdmins do use Ecto.Migration def change do create table(:chan_admins, primary_key: false) do add :chan_id, references(:chans) add :admin_id, references(:admins) end end end
21.363636
53
0.710638
e8932c459bdcfbfb2502d75cecf763808c2a792e
1,502
ex
Elixir
apps/tai/lib/tai/settings.ex
ihorkatkov/tai
09f9f15d2c385efe762ae138a8570f1e3fd41f26
[ "MIT" ]
1
2019-12-19T05:16:26.000Z
2019-12-19T05:16:26.000Z
apps/tai/lib/tai/settings.ex
ihorkatkov/tai
09f9f15d2c385efe762ae138a8570f1e3fd41f26
[ "MIT" ]
null
null
null
apps/tai/lib/tai/settings.ex
ihorkatkov/tai
09f9f15d2c385efe762ae138a8570f1e3fd41f26
[ "MIT" ]
1
2020-05-03T23:32:11.000Z
2020-05-03T23:32:11.000Z
defmodule Tai.Settings do @moduledoc """ Global settings """ use GenServer @enforce_keys [:send_orders] defstruct [:send_orders] def start_link(%Tai.Settings{} = settings) do {:ok, pid} = GenServer.start_link(__MODULE__, settings, name: __MODULE__) GenServer.call(pid, :create_ets_table) {:o...
22.088235
77
0.670439
e8932f7e5d95d7072a3af14ab4460e734fa4a46b
7,454
ex
Elixir
lib/membrane/core/element.ex
eboskma/membrane_core
e216994fe1ba99c5d228a4b0959faa5fabb13b1c
[ "Apache-2.0" ]
null
null
null
lib/membrane/core/element.ex
eboskma/membrane_core
e216994fe1ba99c5d228a4b0959faa5fabb13b1c
[ "Apache-2.0" ]
null
null
null
lib/membrane/core/element.ex
eboskma/membrane_core
e216994fe1ba99c5d228a4b0959faa5fabb13b1c
[ "Apache-2.0" ]
null
null
null
defmodule Membrane.Core.Element do @moduledoc false # Module containing functions spawning, shutting down, inspecting and controlling # playback of elements. These functions are usually called by `Membrane.Pipeline` # or `Membrane.Bin`. # # Modules in this namespace are responsible for managing elements: h...
32.837004
100
0.701771
e893427f056d790991bd573db6e27296338256af
502
ex
Elixir
lib/ws/auth/behaviour.ex
zekroTJA/imgserver
a2efc3483bc83cc9734dbef7ca9bd3dc4a19bb64
[ "MIT" ]
null
null
null
lib/ws/auth/behaviour.ex
zekroTJA/imgserver
a2efc3483bc83cc9734dbef7ca9bd3dc4a19bb64
[ "MIT" ]
null
null
null
lib/ws/auth/behaviour.ex
zekroTJA/imgserver
a2efc3483bc83cc9734dbef7ca9bd3dc4a19bb64
[ "MIT" ]
null
null
null
defmodule Imgserver.Ws.Auth.AuthBehaviour do alias Imgserver.Ws.Auth.Resource @moduledoc """ Describes an authorization module which provides basic functionalities to create a session key to and from a resource. """ @callback create_token(resource :: Resource.t()) :: {:ok, token :: String....
27.888889
53
0.601594
e89373c376ebf1e8a0f6a278b0485c8ed83fb766
4,621
ex
Elixir
clients/page_speed_online/lib/google_api/page_speed_online/v4/api/pagespeedapi.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/page_speed_online/lib/google_api/page_speed_online/v4/api/pagespeedapi.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/page_speed_online/lib/google_api/page_speed_online/v4/api/pagespeedapi.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...
43.59434
187
0.653755
e8937f91d5976488ecd6d33859381f7001fdc19a
3,865
ex
Elixir
lib/koans/12_pattern_matching.ex
teamertibebu/elixir-koans
eab85c01c34e9e9676e0258713945a4d868e5d87
[ "MIT" ]
null
null
null
lib/koans/12_pattern_matching.ex
teamertibebu/elixir-koans
eab85c01c34e9e9676e0258713945a4d868e5d87
[ "MIT" ]
null
null
null
lib/koans/12_pattern_matching.ex
teamertibebu/elixir-koans
eab85c01c34e9e9676e0258713945a4d868e5d87
[ "MIT" ]
null
null
null
defmodule PatternMatching do use Koans @intro "PatternMatching" koan "One matches one" do assert match?(1, 1) end koan "Patterns can be used to pull things apart" do [head | tail] = [1, 2, 3, 4] assert head == 1 assert tail == [2,3,4] end koan "And then put them back together" do ...
23.143713
101
0.597413
e8939bae71f2dfc2cf592300175ad48b3fefc312
1,276
exs
Elixir
test/auto_api/states/firmware_version_state_test.exs
nonninz/auto-api-elixir
53e11542043285e94bbb5a0a3b8ffff0b1b47167
[ "MIT" ]
4
2018-01-19T16:11:10.000Z
2019-12-13T16:35:10.000Z
test/auto_api/states/firmware_version_state_test.exs
nonninz/auto-api-elixir
53e11542043285e94bbb5a0a3b8ffff0b1b47167
[ "MIT" ]
5
2018-11-29T09:48:29.000Z
2019-11-06T12:11:35.000Z
test/auto_api/states/firmware_version_state_test.exs
nonninz/auto-api-elixir
53e11542043285e94bbb5a0a3b8ffff0b1b47167
[ "MIT" ]
1
2021-02-17T18:36:13.000Z
2021-02-17T18:36:13.000Z
# AutoAPI # The MIT License # # Copyright (c) 2018- High-Mobility GmbH (https://high-mobility.com) # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without lim...
47.259259
79
0.781348
e893ad62493ab49680ff26b174a5423ece51306f
550
ex
Elixir
lib/coxir/gateway/stage/consumer.ex
satom99/coxir
75bce94dcbe5dfa49e920d2f4ce0de224c315ce4
[ "Apache-2.0" ]
178
2018-04-08T17:11:56.000Z
2022-03-25T15:36:41.000Z
lib/coxir/gateway/stage/consumer.ex
satom99/coxir
75bce94dcbe5dfa49e920d2f4ce0de224c315ce4
[ "Apache-2.0" ]
21
2018-04-30T21:33:59.000Z
2019-09-03T17:25:26.000Z
lib/coxir/gateway/stage/consumer.ex
satom99/coxir
75bce94dcbe5dfa49e920d2f4ce0de224c315ce4
[ "Apache-2.0" ]
25
2018-04-21T19:41:03.000Z
2021-07-24T22:40:40.000Z
defmodule Coxir.Gateway.Consumer do @moduledoc """ Work in progress. """ use ConsumerSupervisor alias Coxir.Gateway.Handler alias __MODULE__ defstruct [ :dispatcher, :handler ] def start_link(state) do ConsumerSupervisor.start_link(__MODULE__, state) end def init(%Consumer{dispatch...
17.1875
66
0.672727
e893e30c4ffd3667cde2ca923472965ef02d5abf
5,732
exs
Elixir
apps/ewallet/test/ewallet/permissions/bouncer/bouncers/account_bouncer_test.exs
AndonMitev/EWallet
898cde38933d6f134734528b3e594eedf5fa50f3
[ "Apache-2.0" ]
322
2018-02-28T07:38:44.000Z
2020-05-27T23:09:55.000Z
apps/ewallet/test/ewallet/permissions/bouncer/bouncers/account_bouncer_test.exs
AndonMitev/EWallet
898cde38933d6f134734528b3e594eedf5fa50f3
[ "Apache-2.0" ]
643
2018-02-28T12:05:20.000Z
2020-05-22T08:34:38.000Z
apps/ewallet/test/ewallet/permissions/bouncer/bouncers/account_bouncer_test.exs
AndonMitev/EWallet
898cde38933d6f134734528b3e594eedf5fa50f3
[ "Apache-2.0" ]
63
2018-02-28T10:57:06.000Z
2020-05-27T23:10:38.000Z
# Copyright 2018-2019 OmiseGO Pte Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
32.942529
96
0.644452
e893ee57168a8506ee7b46d8eb3e3e83b3b53ac8
1,344
ex
Elixir
lib/king_albert_ex/rank.ex
matt-harvey/king_albert_ex
8f1fa8bbacfc8df82a76fd22fba90de8470e17c4
[ "MIT" ]
null
null
null
lib/king_albert_ex/rank.ex
matt-harvey/king_albert_ex
8f1fa8bbacfc8df82a76fd22fba90de8470e17c4
[ "MIT" ]
null
null
null
lib/king_albert_ex/rank.ex
matt-harvey/king_albert_ex
8f1fa8bbacfc8df82a76fd22fba90de8470e17c4
[ "MIT" ]
null
null
null
defmodule KingAlbertEx.Rank do @moduledoc """ Defines a type representing the rank of a card, e.g. Ace, 2, 3, Jack, or etc.. """ @typedoc """ Represents the rank (a.k.a. denomination) of a playing card. Note that in the implementation of the game, an empty Foundation of a particular suit is treated as bein...
30.545455
111
0.645833
e893f5fa1bb83aeb7b80543766e01e7cdc25235e
13,376
ex
Elixir
lib/cldr/number/format/options.ex
mediapress-ltd/cldr_numbers
e9c1bded034ef13932328a9ad383798c7d853928
[ "Apache-2.0" ]
null
null
null
lib/cldr/number/format/options.ex
mediapress-ltd/cldr_numbers
e9c1bded034ef13932328a9ad383798c7d853928
[ "Apache-2.0" ]
null
null
null
lib/cldr/number/format/options.ex
mediapress-ltd/cldr_numbers
e9c1bded034ef13932328a9ad383798c7d853928
[ "Apache-2.0" ]
null
null
null
defmodule Cldr.Number.Format.Options do @moduledoc """ Functions to validate and transform options that guide number formatting """ alias Cldr.Number.{System, Symbol, Format} alias Cldr.Number.Format.Compiler alias Cldr.Currency alias Cldr.LanguageTag # These are the options set in the # struct gu...
27.693582
95
0.673071
e893fb2b1fcb16dcc06955b63db3748c7510cf1c
683
ex
Elixir
lib/versionary/plug/phoenix_error_handler.ex
elpic/versionary
7a70a6a4c5c3919fa39f3bb58856e31cb03717d0
[ "MIT" ]
null
null
null
lib/versionary/plug/phoenix_error_handler.ex
elpic/versionary
7a70a6a4c5c3919fa39f3bb58856e31cb03717d0
[ "MIT" ]
null
null
null
lib/versionary/plug/phoenix_error_handler.ex
elpic/versionary
7a70a6a4c5c3919fa39f3bb58856e31cb03717d0
[ "MIT" ]
null
null
null
defmodule Versionary.Plug.PhoenixErrorHandler do @moduledoc """ An error handler for usage with Phoenix. When called this handler raise a `Phoenix.NotAcceptableError` triggering the `406.json` error view. """ @behaviour Versionary.Plug.Handler def call(_conn) do verify_phoenix_dep() raise Phoe...
23.551724
78
0.717423
e8940005306da00dd3b55483ddd2604024847162
102
ex
Elixir
lib/dobar/repo.ex
ashkan18/dobar
37381af2a56b2456cfe2a0a358169fd2764cd3f0
[ "MIT" ]
null
null
null
lib/dobar/repo.ex
ashkan18/dobar
37381af2a56b2456cfe2a0a358169fd2764cd3f0
[ "MIT" ]
14
2019-09-02T18:00:07.000Z
2021-09-02T00:49:54.000Z
lib/dobar/repo.ex
ashkan18/dobar
37381af2a56b2456cfe2a0a358169fd2764cd3f0
[ "MIT" ]
1
2016-07-27T14:40:55.000Z
2016-07-27T14:40:55.000Z
defmodule Dobar.Repo do use Ecto.Repo, otp_app: :dobar, adapter: Ecto.Adapters.Postgres end
17
35
0.715686
e89406580f21ee9534e74993cfee7b5edd61aced
35,484
ex
Elixir
lib/elixir/lib/exception.ex
bsmr-erlang/elixir
0e72d4839cda97edce75ca0c537555ce4ead7a6a
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/exception.ex
bsmr-erlang/elixir
0e72d4839cda97edce75ca0c537555ce4ead7a6a
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/exception.ex
bsmr-erlang/elixir
0e72d4839cda97edce75ca0c537555ce4ead7a6a
[ "Apache-2.0" ]
null
null
null
defmodule Exception do @moduledoc """ Functions to format throw/catch/exit and exceptions. Note that stacktraces in Elixir are updated on throw, errors and exits. For example, at any given moment, `System.stacktrace/0` will return the stacktrace for the last throw/error/exit that occurred in the current pr...
28.616129
153
0.654549
e89446aaf47327af2fb9d0c0252a02207abc23c6
17,861
ex
Elixir
lib/auctoritas.ex
nkyian/auctoritas
24480b8d38fccdbadf588b110cdee061b6286f0c
[ "MIT" ]
1
2019-01-18T10:37:40.000Z
2019-01-18T10:37:40.000Z
lib/auctoritas.ex
nkyian/auctoritas
24480b8d38fccdbadf588b110cdee061b6286f0c
[ "MIT" ]
6
2019-04-20T18:32:37.000Z
2019-04-20T19:41:29.000Z
lib/auctoritas.ex
nkyian/auctoritas
24480b8d38fccdbadf588b110cdee061b6286f0c
[ "MIT" ]
null
null
null
defmodule Auctoritas do @moduledoc """ # Auctoritas ## Basic Usage ```elixir iex> alias Auctoritas.AuthenticationManager, as: Auth Auctoritas.AuthenticationManager iex> auth_data = %{user_id: 123} %{user_id: 123} iex> {:ok, token} = Auth.authenticate(auth_data) {:ok, "35cdc028d1623b58f616d21386d...
32.240072
141
0.654443
e89468c1282dceb93ffa44c3d150b961c4f92922
20,129
exs
Elixir
test/dataspec_test.exs
visciang/dataspec
8ffcef550d23f90ba5bdbe089dcfa8aae6ee071d
[ "MIT" ]
2
2021-07-26T15:08:55.000Z
2021-07-28T10:09:17.000Z
test/dataspec_test.exs
visciang/dataspec
8ffcef550d23f90ba5bdbe089dcfa8aae6ee071d
[ "MIT" ]
1
2021-08-02T16:51:13.000Z
2021-08-03T19:44:12.000Z
test/dataspec_test.exs
visciang/dataspecs
8ffcef550d23f90ba5bdbe089dcfa8aae6ee071d
[ "MIT" ]
null
null
null
defmodule Test.DataSpecs do use ExUnit.Case alias DataSpecs.Loader alias Test.DataSpecs.CustomLoader @types_module Test.DataSpecs.SampleType @types_struct_module Test.DataSpecs.SampleStructType describe "Unknown" do test "module" do assert_raise RuntimeError, "Can't fetch type specifications fo...
37.554104
124
0.59531
e8948a659dc324fc3c73c22857f129990211e9ad
306
ex
Elixir
lib/release_tasks.ex
borodark/lucidboard
487a9a54053977ea9704121d4a6a4343012d4421
[ "MIT" ]
86
2019-01-07T20:49:04.000Z
2021-10-02T21:15:42.000Z
lib/release_tasks.ex
borodark/lucidboard
487a9a54053977ea9704121d4a6a4343012d4421
[ "MIT" ]
26
2019-03-27T12:06:52.000Z
2020-09-20T05:21:09.000Z
lib/release_tasks.ex
borodark/lucidboard
487a9a54053977ea9704121d4a6a4343012d4421
[ "MIT" ]
19
2015-01-06T19:02:49.000Z
2020-05-25T08:54:00.000Z
defmodule Lucidboard.ReleaseTasks do @moduledoc "Tasks related to Distillery releases" def migrate do {:ok, _} = Application.ensure_all_started(:lucidboard) path = Application.app_dir(:lucidboard, "priv/repo/migrations") Ecto.Migrator.run(Lucidboard.Repo, path, :up, all: true) end end
27.818182
67
0.738562
e8949226e77aafb453608c37fa7a0205bee7e2f9
2,051
ex
Elixir
lib/toby/data/applications.ex
ndreynolds/toby
fc2e6960d8d5b366c0ecf130349659fc33ac2e2a
[ "MIT" ]
82
2019-01-14T20:35:16.000Z
2022-02-22T11:19:43.000Z
lib/toby/data/applications.ex
ndreynolds/toby
fc2e6960d8d5b366c0ecf130349659fc33ac2e2a
[ "MIT" ]
3
2019-01-20T17:17:44.000Z
2019-01-24T08:51:55.000Z
lib/toby/data/applications.ex
ndreynolds/toby
fc2e6960d8d5b366c0ecf130349659fc33ac2e2a
[ "MIT" ]
5
2020-03-27T16:54:18.000Z
2021-07-26T18:24:00.000Z
defmodule Toby.Data.Applications do @moduledoc """ Utilities for gathering application data such as the process tree. """ alias Toby.Data.Node alias Toby.Util.Tree def applications(node) do {:ok, applications_in_tree(node)} end def application(node, app) do with {:ok, data} <- Node.applicatio...
24.129412
86
0.627986
e894a3eaed9f555b915e4bda7ceb32e8e8372bbd
1,506
ex
Elixir
lib/cometoid_web/endpoint.ex
danielmarreirosdeoliveira/cometoid
7a1c4f7700eb4dbb5f4c44fdc5185d048a429e50
[ "Apache-2.0" ]
null
null
null
lib/cometoid_web/endpoint.ex
danielmarreirosdeoliveira/cometoid
7a1c4f7700eb4dbb5f4c44fdc5185d048a429e50
[ "Apache-2.0" ]
null
null
null
lib/cometoid_web/endpoint.ex
danielmarreirosdeoliveira/cometoid
7a1c4f7700eb4dbb5f4c44fdc5185d048a429e50
[ "Apache-2.0" ]
null
null
null
defmodule CometoidWeb.Endpoint do use Phoenix.Endpoint, otp_app: :cometoid # 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: "_cometoi...
29.529412
97
0.717131
e894bc97c936b9a842504a550e007c1be74facdb
566
exs
Elixir
aoc-2020/day9/mix.exs
danurna/elixir-playground
6acb40e513d8ab324368b3ec5151b0a4fd88f849
[ "MIT" ]
null
null
null
aoc-2020/day9/mix.exs
danurna/elixir-playground
6acb40e513d8ab324368b3ec5151b0a4fd88f849
[ "MIT" ]
null
null
null
aoc-2020/day9/mix.exs
danurna/elixir-playground
6acb40e513d8ab324368b3ec5151b0a4fd88f849
[ "MIT" ]
null
null
null
defmodule Day9.MixProject do use Mix.Project def project do [ app: :day9, version: "0.1.0", elixir: "~> 1.10", start_permanent: Mix.env() == :prod, deps: deps() ] end # Run "mix help compile.app" to learn about applications. def application do [ extra_applicat...
19.517241
87
0.572438
e894c477975d0122910a293301d670e55ea1a463
83
ex
Elixir
lib/archery_competition_web/views/page_view.ex
barnaba/archery-competition
cd5d302431429218aeb72c71fa96981667d8d95c
[ "MIT" ]
null
null
null
lib/archery_competition_web/views/page_view.ex
barnaba/archery-competition
cd5d302431429218aeb72c71fa96981667d8d95c
[ "MIT" ]
6
2018-07-11T21:01:51.000Z
2018-07-11T21:06:07.000Z
lib/archery_competition_web/views/page_view.ex
barnaba/archery-competition
cd5d302431429218aeb72c71fa96981667d8d95c
[ "MIT" ]
null
null
null
defmodule ArcheryCompetitionWeb.PageView do use ArcheryCompetitionWeb, :view end
20.75
43
0.855422
e894ecd2be926123f7043d55946eb30a11b6e56b
3,528
ex
Elixir
lib/plug/csrf_protection.ex
niku/plug
807faed1e97868f130331c1c9b2eb710efa55164
[ "Apache-2.0" ]
null
null
null
lib/plug/csrf_protection.ex
niku/plug
807faed1e97868f130331c1c9b2eb710efa55164
[ "Apache-2.0" ]
null
null
null
lib/plug/csrf_protection.ex
niku/plug
807faed1e97868f130331c1c9b2eb710efa55164
[ "Apache-2.0" ]
null
null
null
defmodule Plug.CSRFProtection do @moduledoc """ Plug to protect from cross-site request forgery. For this plug to work, it expects a session to have been previously fetched. If a CSRF token in the session does not previously exist, a CSRF token will be generated and put into the session. When a token is i...
30.413793
95
0.711735
e894f0052b59bcb0baa95b00dede2593050ae124
1,647
ex
Elixir
clients/run/lib/google_api/run/v1/model/namespace_spec.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/run/lib/google_api/run/v1/model/namespace_spec.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/run/lib/google_api/run/v1/model/namespace_spec.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...
31.075472
138
0.734669
e894fbf6ffeef6398b17f5448cc4fa8328de5f62
494
exs
Elixir
apps/gitgud/priv/db/migrations/20171009215708_add_ssh_keys_table.exs
rogervezaro/gitgud
6656f8c2df16817a6c5325fb4c18b03f9d3f7140
[ "MIT" ]
1
2019-09-08T07:48:10.000Z
2019-09-08T07:48:10.000Z
apps/gitgud/priv/db/migrations/20171009215708_add_ssh_keys_table.exs
rogervezaro/gitgud
6656f8c2df16817a6c5325fb4c18b03f9d3f7140
[ "MIT" ]
null
null
null
apps/gitgud/priv/db/migrations/20171009215708_add_ssh_keys_table.exs
rogervezaro/gitgud
6656f8c2df16817a6c5325fb4c18b03f9d3f7140
[ "MIT" ]
null
null
null
defmodule GitGud.DB.Migrations.AddSSHKeysTable do use Ecto.Migration def change do create table("ssh_keys") do add :user_id, references("users", on_delete: :delete_all), null: false add :name, :string, size: 80 add :fingerprint, :string, null: false, size: 47 timestamps(updated_at: fals...
30.875
76
0.684211
e89537f82a8cb66bec5742279d0f27111f7ed068
389
ex
Elixir
lib/lexdee/instances/logs.ex
upmaru/lexdee
77efeb7193826329f3d164dc131b315dea06422e
[ "MIT" ]
1
2021-09-04T13:08:34.000Z
2021-09-04T13:08:34.000Z
lib/lexdee/instances/logs.ex
upmaru/lexdee
77efeb7193826329f3d164dc131b315dea06422e
[ "MIT" ]
null
null
null
lib/lexdee/instances/logs.ex
upmaru/lexdee
77efeb7193826329f3d164dc131b315dea06422e
[ "MIT" ]
2
2021-01-11T21:18:04.000Z
2021-04-04T20:03:53.000Z
defmodule Lexdee.Instances.Logs do use Tesla alias Lexdee.Instances @path "/logs" @spec show(Tesla.Client.t(), binary, binary, Keyword.t()) :: {:error, any} | {:ok, Tesla.Env.t()} def show(client, instance, log_file, options \\ []) do path = [Instances.base_path(), instance, @path, log_...
21.611111
62
0.614396
e8954aff8eb780c7d9c3898d57b0b3fcf778119e
1,488
ex
Elixir
lib/chat_api_web/controllers/billing_controller.ex
m1ome/papercups
8c9bf5569dc23d7bce3fcc3a8909bf6d05be8985
[ "MIT" ]
null
null
null
lib/chat_api_web/controllers/billing_controller.ex
m1ome/papercups
8c9bf5569dc23d7bce3fcc3a8909bf6d05be8985
[ "MIT" ]
null
null
null
lib/chat_api_web/controllers/billing_controller.ex
m1ome/papercups
8c9bf5569dc23d7bce3fcc3a8909bf6d05be8985
[ "MIT" ]
null
null
null
defmodule ChatApiWeb.BillingController do require Logger use ChatApiWeb, :controller alias ChatApi.{Accounts, Billing} action_fallback ChatApiWeb.FallbackController def show(conn, _params) do with %{account_id: account_id} <- conn.assigns.current_user, account <- Accounts.get_account!(account_i...
31
78
0.653226
e8956f18e8704739f4ac45aa9e5a8e29ea44cfc1
710
exs
Elixir
test/leap_month_test.exs
kianmeng/cldr_calendars_lunisolar
5754991127fb74722e74e4fc8d0a27f86fc49029
[ "Apache-2.0" ]
null
null
null
test/leap_month_test.exs
kianmeng/cldr_calendars_lunisolar
5754991127fb74722e74e4fc8d0a27f86fc49029
[ "Apache-2.0" ]
null
null
null
test/leap_month_test.exs
kianmeng/cldr_calendars_lunisolar
5754991127fb74722e74e4fc8d0a27f86fc49029
[ "Apache-2.0" ]
null
null
null
defmodule Cldr.Calendar.Chinese.LeapMonth.Test do use ExUnit.Case use ExUnitProperties @max_runs 4000 alias Cldr.Calendar.Chinese property "Chinese Leap Month" do check all(iso_days <- Chinese.DateGenerator.generate_iso_days(), max_runs: @max_runs) do {cycle_a, year_a, _month, leap_month?, day_a}...
27.307692
102
0.7
e8959b86314d35bb63913c374ec7b8d0e9a745d0
78,420
ex
Elixir
clients/firebase_hosting/lib/google_api/firebase_hosting/v1beta1/api/projects.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/firebase_hosting/lib/google_api/firebase_hosting/v1beta1/api/projects.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/firebase_hosting/lib/google_api/firebase_hosting/v1beta1/api/projects.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...
44.582149
346
0.612867
e895b26b8ea6b26e5f968c3f5ffbd553f978bc53
1,259
ex
Elixir
web/views/error_helpers.ex
muziyoshiz/phoenix_sample_ap_app
d8ef72af5ab55f688c3e4e3ca028af9a9642b727
[ "MIT" ]
null
null
null
web/views/error_helpers.ex
muziyoshiz/phoenix_sample_ap_app
d8ef72af5ab55f688c3e4e3ca028af9a9642b727
[ "MIT" ]
null
null
null
web/views/error_helpers.ex
muziyoshiz/phoenix_sample_ap_app
d8ef72af5ab55f688c3e4e3ca028af9a9642b727
[ "MIT" ]
null
null
null
defmodule PhoenixSampleAdApp.ErrorHelpers do @moduledoc """ Conveniences for translating and building error messages. """ use Phoenix.HTML @doc """ Generates tag for inlined form input errors. """ def error_tag(form, field) do if error = form.errors[field] do content_tag :span, translate_err...
30.707317
84
0.675933
e895b55298bf88553baa10eb6573ce431b326e30
67
ex
Elixir
apps/bingo_hall/lib/bingo_hall_web/views/layout_view.ex
marcdel/bingo
898dc4a5fb53f3941038796793a3bd7606c70567
[ "Unlicense" ]
2
2018-05-30T11:17:19.000Z
2018-11-08T19:04:09.000Z
apps/bingo_hall/lib/bingo_hall_web/views/layout_view.ex
marcdel/bingo
898dc4a5fb53f3941038796793a3bd7606c70567
[ "Unlicense" ]
null
null
null
apps/bingo_hall/lib/bingo_hall_web/views/layout_view.ex
marcdel/bingo
898dc4a5fb53f3941038796793a3bd7606c70567
[ "Unlicense" ]
null
null
null
defmodule BingoHallWeb.LayoutView do use BingoHallWeb, :view end
16.75
36
0.820896
e895b821ea4a7e54af38ce908a2f5959dd57eb9a
1,271
ex
Elixir
clients/sql_admin/lib/google_api/sql_admin/v1beta4/connection.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/sql_admin/lib/google_api/sql_admin/v1beta4/connection.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/sql_admin/lib/google_api/sql_admin/v1beta4/connection.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
35.305556
114
0.736428
e895c7e32a3666b13c39f9fa8a4e427477a11798
7,224
exs
Elixir
test/lib/bamboo/adapters/ses_adapter_test.exs
steady-media/bamboo_ses
23f86ee5ed337b03a1df529c9d196e3bdda3f47a
[ "MIT" ]
null
null
null
test/lib/bamboo/adapters/ses_adapter_test.exs
steady-media/bamboo_ses
23f86ee5ed337b03a1df529c9d196e3bdda3f47a
[ "MIT" ]
2
2020-04-20T08:13:15.000Z
2020-05-11T12:41:50.000Z
test/lib/bamboo/adapters/ses_adapter_test.exs
steady-media/bamboo_ses
23f86ee5ed337b03a1df529c9d196e3bdda3f47a
[ "MIT" ]
null
null
null
defmodule Bamboo.SesAdapterTest do use ExUnit.Case import Mox alias Bamboo.{ApiError, Email, Mailer, SesAdapter} alias ExAws.Request.HttpMock alias Mail.Parsers.RFC2822 require IEx defp new_email(to \\ "alice@example.com") do Email.new_email( to: to, from: "bob@example.com", cc: "jo...
31.137931
102
0.639396
e895df867835a0a7e17e8c03f88a4c30a8c695b0
841
exs
Elixir
test/multiple_decorator_modules_used_in_one_module.exs
kianmeng/decorator
fc758136ca50a9da790a7c610d4d40ec7c0bd1f5
[ "MIT" ]
321
2016-10-20T18:43:43.000Z
2022-01-08T21:39:56.000Z
test/multiple_decorator_modules_used_in_one_module.exs
kianmeng/decorator
fc758136ca50a9da790a7c610d4d40ec7c0bd1f5
[ "MIT" ]
43
2016-10-20T22:01:51.000Z
2021-09-04T19:39:20.000Z
test/multiple_decorator_modules_used_in_one_module.exs
kianmeng/decorator
fc758136ca50a9da790a7c610d4d40ec7c0bd1f5
[ "MIT" ]
25
2016-10-20T21:52:48.000Z
2022-03-30T11:28:31.000Z
defmodule DecoratorTest.Fixture.MonitoringDecorator do use Decorator.Define, some_decorator: 0 def some_decorator(body, _context) do {:ok, body} end end defmodule DecoratorTest.Fixture.LoggingDecorator do use Decorator.Define, test_log: 0 def test_log(body, _context) do {:ok, body} end end defmo...
23.361111
64
0.766944
e895eca5f5d0626d349b9751ee4971615f658022
1,011
exs
Elixir
mix.exs
satom99/steve
6425eff76e68605c5e882351e118e783abfe7ccc
[ "Apache-2.0" ]
null
null
null
mix.exs
satom99/steve
6425eff76e68605c5e882351e118e783abfe7ccc
[ "Apache-2.0" ]
null
null
null
mix.exs
satom99/steve
6425eff76e68605c5e882351e118e783abfe7ccc
[ "Apache-2.0" ]
null
null
null
defmodule Steve.MixProject do use Mix.Project def project do [ app: :steve, version: "0.1.0", elixir: "~> 1.9", build_embedded: Mix.env == :prod, start_permanent: Mix.env == :prod, deps: deps(), docs: docs(), package: package(), description: "An Elixir job ...
18.722222
62
0.497527
e895f013bfffeee63ec021f163c8c7a947435e13
6,176
exs
Elixir
test/arrow/compute_test.exs
nyo16/elixir-arrow
655b14ac412716c29aa33d0fab178577e3eca330
[ "Apache-2.0" ]
16
2021-03-21T14:59:33.000Z
2022-03-11T01:52:16.000Z
test/arrow/compute_test.exs
nyo16/elixir-arrow
655b14ac412716c29aa33d0fab178577e3eca330
[ "Apache-2.0" ]
null
null
null
test/arrow/compute_test.exs
nyo16/elixir-arrow
655b14ac412716c29aa33d0fab178577e3eca330
[ "Apache-2.0" ]
3
2021-09-02T03:25:08.000Z
2022-03-11T01:53:01.000Z
defmodule Arrow.ComputeTest do use ExUnit.Case use ExUnit.Parameterized alias Arrow.Array alias Arrow.Compute.Arithmetic test "add arrays" do a = Arrow.array([1, 2, 3]) b = Arrow.array([4, 4, 3]) assert Array.to_list(Arithmetic.add(a, b)) == [5, 6, 6] end test "subtract arrays" do a = A...
45.080292
98
0.51943