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
e8db36bd28d600698e3d00540356dcb78987a673
84
exs
Elixir
apps/room_book_web/test/room_book_web/views/layout_view_test.exs
adrianomota/room_book_umbrella
701d4ad89b45739418df831156288b94346287df
[ "MIT" ]
null
null
null
apps/room_book_web/test/room_book_web/views/layout_view_test.exs
adrianomota/room_book_umbrella
701d4ad89b45739418df831156288b94346287df
[ "MIT" ]
null
null
null
apps/room_book_web/test/room_book_web/views/layout_view_test.exs
adrianomota/room_book_umbrella
701d4ad89b45739418df831156288b94346287df
[ "MIT" ]
null
null
null
defmodule RoomBookWeb.LayoutViewTest do use RoomBookWeb.ConnCase, async: true end
21
39
0.833333
e8db50fa698b6f7c4042778adcbc654c321453cc
6,366
ex
Elixir
test/support/api_mock_server.ex
vovayartsev/algoliax
34bfbb39d65806b4d156e23eb704bf6b899b53e6
[ "BSD-2-Clause" ]
null
null
null
test/support/api_mock_server.ex
vovayartsev/algoliax
34bfbb39d65806b4d156e23eb704bf6b899b53e6
[ "BSD-2-Clause" ]
null
null
null
test/support/api_mock_server.ex
vovayartsev/algoliax
34bfbb39d65806b4d156e23eb704bf6b899b53e6
[ "BSD-2-Clause" ]
null
null
null
defmodule Algoliax.ApiMockServer do @moduledoc false require Logger use Plug.Router use Plug.ErrorHandler alias Algoliax.RequestsStore import Plug.Conn plug(Plug.Parsers, parsers: [:json, :urlencoded], pass: ["text/*"], json_decoder: Jason ) plug(Plug.Logger, log: :debug) plug(:matc...
25.878049
102
0.579799
e8db661349f46b200362801e7e535ca4156850c3
360
ex
Elixir
apps/financial_system_web/lib/financial_system_web/controllers/api/account_controller.ex
juniornelson123/tech-challenge-stone
e27b767514bf42a5ade5228de56c3c7ea38459d7
[ "MIT" ]
null
null
null
apps/financial_system_web/lib/financial_system_web/controllers/api/account_controller.ex
juniornelson123/tech-challenge-stone
e27b767514bf42a5ade5228de56c3c7ea38459d7
[ "MIT" ]
2
2021-03-10T03:19:32.000Z
2021-09-02T04:33:17.000Z
apps/financial_system_web/lib/financial_system_web/controllers/api/account_controller.ex
juniornelson123/tech-challenge-stone
e27b767514bf42a5ade5228de56c3c7ea38459d7
[ "MIT" ]
null
null
null
defmodule FinancialSystemWeb.Api.AccountController do use FinancialSystemWeb, :controller alias FinancialSystem.Transaction.Account alias FinancialSystem.Transaction alias FinancialSystem.Repo def index(conn, _params) do accounts = Transaction.list_accounts |> Repo.preload([:user]) render(conn, "ind...
27.692308
65
0.783333
e8dba61a83f31eb8c66c6c91afe84af2dc9efa37
843
exs
Elixir
test/cpf_validator_test.exs
isaacpinheiro/cpf_validator
c346aa6861872d645b72cb74c700744224592e7e
[ "Apache-2.0" ]
null
null
null
test/cpf_validator_test.exs
isaacpinheiro/cpf_validator
c346aa6861872d645b72cb74c700744224592e7e
[ "Apache-2.0" ]
null
null
null
test/cpf_validator_test.exs
isaacpinheiro/cpf_validator
c346aa6861872d645b72cb74c700744224592e7e
[ "Apache-2.0" ]
null
null
null
defmodule CpfValidatorTest do use ExUnit.Case doctest CpfValidator test "Test valid CPFs" do assert CpfValidator.Validator.validate("111.222.333/92") == true assert CpfValidator.Validator.validate("222.333.444/05") == true assert CpfValidator.Validator.validate("333.444.555/08") == true assert Cp...
38.318182
69
0.727165
e8dbd706a3ebf2608b5b8eb0c00cae9cbee0a6a3
53
ex
Elixir
25/lib/e25.ex
rikkus/adventofcode2016
dceb9af8e3f1f460109bb881e9d9d33fb0892d6e
[ "MIT" ]
null
null
null
25/lib/e25.ex
rikkus/adventofcode2016
dceb9af8e3f1f460109bb881e9d9d33fb0892d6e
[ "MIT" ]
null
null
null
25/lib/e25.ex
rikkus/adventofcode2016
dceb9af8e3f1f460109bb881e9d9d33fb0892d6e
[ "MIT" ]
null
null
null
defmodule E25 do def doit() do 42 end end
5.888889
16
0.584906
e8dc28f1b45dcabe77c80473699c2071bc7a2bba
2,987
ex
Elixir
clients/dialogflow/lib/google_api/dialogflow/v3/model/google_cloud_dialogflow_cx_v3beta1_webhook_request_intent_info.ex
renovate-bot/elixir-google-api
1da34cd39b670c99f067011e05ab90af93fef1f6
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/dialogflow/lib/google_api/dialogflow/v3/model/google_cloud_dialogflow_cx_v3beta1_webhook_request_intent_info.ex
swansoffiee/elixir-google-api
9ea6d39f273fb430634788c258b3189d3613dde0
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/dialogflow/lib/google_api/dialogflow/v3/model/google_cloud_dialogflow_cx_v3beta1_webhook_request_intent_info.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...
42.070423
446
0.731503
e8dc3fbb26ed05cc38b661f37e64ed8268687300
633
ex
Elixir
lib/grpow_web/pow_mailer.ex
Gitardo/grpow
047a1a7faaa28006e59069d55dd783a048a287cf
[ "MIT" ]
null
null
null
lib/grpow_web/pow_mailer.ex
Gitardo/grpow
047a1a7faaa28006e59069d55dd783a048a287cf
[ "MIT" ]
2
2021-03-11T05:11:12.000Z
2021-05-11T22:29:52.000Z
lib/grpow_web/pow_mailer.ex
g2t3s/grpow
047a1a7faaa28006e59069d55dd783a048a287cf
[ "MIT" ]
null
null
null
defmodule GrpowWeb.PowMailer do use Pow.Phoenix.Mailer #use Bamboo.Mailer, otp_app: :grpow require Logger #import Bamboo.Email def cast(%{user: user, subject: subject, text: text, html: html, assigns: _assigns}) do # Build email struct to be used in `process/1` #new_email() #|> to(user.email) ...
23.444444
89
0.636651
e8dc82aa6901dfaa04e2a0b216aa10cbaddfccdf
184
exs
Elixir
pop_kube/priv/repo/migrations/20211211145654_add_clicks.exs
pastleo/k8s-challenge-2021
83e4403344292e1de53ef901cf2c3457bbeb24dd
[ "MIT" ]
1
2022-01-10T14:55:55.000Z
2022-01-10T14:55:55.000Z
pop_kube/priv/repo/migrations/20211211145654_add_clicks.exs
pastleo/k8s-challenge-2021
83e4403344292e1de53ef901cf2c3457bbeb24dd
[ "MIT" ]
null
null
null
pop_kube/priv/repo/migrations/20211211145654_add_clicks.exs
pastleo/k8s-challenge-2021
83e4403344292e1de53ef901cf2c3457bbeb24dd
[ "MIT" ]
null
null
null
defmodule PopKube.Repo.Migrations.AddClicks do use Ecto.Migration def change do create table("clicks") do add :ip_address, :string timestamps() end end end
15.333333
46
0.679348
e8dd10b1bce4751849ba1b7e215c3e0798d7a804
1,574
ex
Elixir
test/support/data_case.ex
ldd/hn_comments_game
5f720621c549a3737c155f9d59fa8277491f3b16
[ "MIT" ]
5
2020-05-15T17:06:22.000Z
2020-06-20T12:05:46.000Z
test/support/data_case.ex
ldd/hn_comments_game
5f720621c549a3737c155f9d59fa8277491f3b16
[ "MIT" ]
null
null
null
test/support/data_case.ex
ldd/hn_comments_game
5f720621c549a3737c155f9d59fa8277491f3b16
[ "MIT" ]
null
null
null
defmodule HnCommentsGame.DataCase do @moduledoc """ This module defines the setup for tests requiring access to the application's data layer. You may define functions here to be used as helpers in your tests. Finally, if the test case interacts with the database, we enable the SQL sandbox, so changes do...
28.107143
77
0.69695
e8dd3376f87d558d4b1330b1b44abd839cd89cab
63
ex
Elixir
lib/job_board_web/views/role_view.ex
TDogVoid/job_board
23793917bd1cc4e68bccce737b971093030a31eb
[ "MIT" ]
null
null
null
lib/job_board_web/views/role_view.ex
TDogVoid/job_board
23793917bd1cc4e68bccce737b971093030a31eb
[ "MIT" ]
null
null
null
lib/job_board_web/views/role_view.ex
TDogVoid/job_board
23793917bd1cc4e68bccce737b971093030a31eb
[ "MIT" ]
null
null
null
defmodule JobBoardWeb.RoleView do use JobBoardWeb, :view end
15.75
33
0.809524
e8dd38b4cb53680e467b7a93612a8c8288858372
2,774
exs
Elixir
test/decoding/headers_test.exs
blake-education/csv
7a9ace3b0f844f0832f96e2b04286ef1a6f4689c
[ "MIT" ]
464
2015-03-24T22:03:51.000Z
2022-03-31T06:24:40.000Z
test/decoding/headers_test.exs
blake-education/csv
7a9ace3b0f844f0832f96e2b04286ef1a6f4689c
[ "MIT" ]
104
2015-03-25T09:52:34.000Z
2022-03-11T11:22:47.000Z
test/decoding/headers_test.exs
blake-education/csv
7a9ace3b0f844f0832f96e2b04286ef1a6f4689c
[ "MIT" ]
93
2015-03-25T08:58:00.000Z
2021-12-08T19:44:45.000Z
defmodule DecodingTests.HeadersTest do use ExUnit.Case import TestSupport.StreamHelpers alias CSV.Decoding.Decoder test "parses strings into maps when headers are set to true" do stream = ["a,be", "c,d", "e,f"] |> to_stream result = Decoder.decode(stream, headers: true) |> Enum.to_list() assert r...
31.522727
91
0.551911
e8dd59325d2138ad43e8716b71911e9ded196727
420
ex
Elixir
lib/mix/tasks/safe_travis.ex
studzien/wallaby
263f37054d544293e52b751316a5699af54f238f
[ "MIT" ]
1
2019-01-30T12:08:17.000Z
2019-01-30T12:08:17.000Z
lib/mix/tasks/safe_travis.ex
studzien/wallaby
263f37054d544293e52b751316a5699af54f238f
[ "MIT" ]
2
2019-04-10T08:23:27.000Z
2021-01-25T16:37:23.000Z
lib/mix/tasks/safe_travis.ex
studzien/wallaby
263f37054d544293e52b751316a5699af54f238f
[ "MIT" ]
1
2019-01-29T16:03:55.000Z
2019-01-29T16:03:55.000Z
defmodule Mix.Tasks.Coveralls.SafeTravis do @moduledoc false alias Mix.Tasks.Coveralls use Mix.Task @preferred_cli_env :test @shortdoc "A safe `coveralls.travis` variant that doesn't crash on failed upload." def run(args) do Coveralls.do_run(args, type: "travis") rescue e in ExCoveralls.ReportU...
24.705882
84
0.72381
e8dd5c4647b2401b0563a8e8d3e3bccbf2fe0633
343
ex
Elixir
lib/mix/tasks/honu.clean.ex
elixir-honu/honu
e82cbc4c2457b3d64b929cc013c17cdb4fcc8f6c
[ "MIT" ]
1
2021-08-08T10:33:42.000Z
2021-08-08T10:33:42.000Z
lib/mix/tasks/honu.clean.ex
elixir-honu/honu
e82cbc4c2457b3d64b929cc013c17cdb4fcc8f6c
[ "MIT" ]
null
null
null
lib/mix/tasks/honu.clean.ex
elixir-honu/honu
e82cbc4c2457b3d64b929cc013c17cdb4fcc8f6c
[ "MIT" ]
null
null
null
defmodule Mix.Tasks.Honu.Clean do use Mix.Task @storage_folder "storage" @do_not_remove [".keep"] def run(_args) do with {:ok, paths} <- File.ls(@storage_folder) do Enum.each(paths, fn p -> if p not in @do_not_remove do File.rm_rf(Path.expand(p, @storage_folder)) end ...
20.176471
53
0.612245
e8dd8ebe05b7dd3ce6ab4168695085188d65cb2f
72,036
exs
Elixir
test/ecto/adapters/postgres_test.exs
tarzan/ecto_sql
99163c7042b6e3661130fcd5aea9c9d6e058f3a7
[ "Apache-2.0" ]
null
null
null
test/ecto/adapters/postgres_test.exs
tarzan/ecto_sql
99163c7042b6e3661130fcd5aea9c9d6e058f3a7
[ "Apache-2.0" ]
null
null
null
test/ecto/adapters/postgres_test.exs
tarzan/ecto_sql
99163c7042b6e3661130fcd5aea9c9d6e058f3a7
[ "Apache-2.0" ]
null
null
null
defmodule Ecto.Adapters.PostgresTest do use ExUnit.Case, async: true import Ecto.Query alias Ecto.Queryable alias Ecto.Adapters.Postgres.Connection, as: SQL defmodule Schema do use Ecto.Schema schema "schema" do field :x, :integer field :y, :integer field :z, :integer field...
43.212957
175
0.573769
e8dda0cd8cbc2ff6f59b5d3ee3ba628bfa9810d3
36
exs
Elixir
.iex.exs
alexdeleon/focus
9212e552b725053d0763cee80baf4882c1f80b99
[ "BSD-2-Clause" ]
247
2017-02-21T15:16:00.000Z
2021-06-27T15:08:44.000Z
.iex.exs
alexdeleon/focus
9212e552b725053d0763cee80baf4882c1f80b99
[ "BSD-2-Clause" ]
10
2017-02-19T03:52:19.000Z
2019-12-06T22:11:38.000Z
.iex.exs
alexdeleon/focus
9212e552b725053d0763cee80baf4882c1f80b99
[ "BSD-2-Clause" ]
10
2017-02-20T22:52:04.000Z
2021-06-14T17:49:23.000Z
import Focus alias Lens alias Prism
9
12
0.833333
e8ddd769e6c8e528f2b29fe8e1adfc4f36d16b04
20,786
exs
Elixir
test/domo_func_test.exs
zetaron/Domo
2159163378f1ad8dea5cbc31dea2ed827c9024ab
[ "MIT" ]
null
null
null
test/domo_func_test.exs
zetaron/Domo
2159163378f1ad8dea5cbc31dea2ed827c9024ab
[ "MIT" ]
null
null
null
test/domo_func_test.exs
zetaron/Domo
2159163378f1ad8dea5cbc31dea2ed827c9024ab
[ "MIT" ]
null
null
null
defmodule DomoFuncTest do use Domo.FileCase, async: false use Placebo import ExUnit.CaptureIO alias Domo.CodeEvaluation alias Mix.Tasks.Compile.DomoCompiler, as: DomoMixTask setup_all do ResolverTestHelper.disable_raise_in_test_env() allow CodeEvaluation.in_mix_compile?(), meck_options: [:passthr...
39.973077
151
0.605504
e8dddabfdfd62dff97df3be63544ba867fe4c0ef
442
ex
Elixir
lib/lifx/supervisor.ex
axelson/lifx
9ac02474d181001efc6bc08d7d39a6f6e3bb0d2a
[ "Apache-2.0" ]
null
null
null
lib/lifx/supervisor.ex
axelson/lifx
9ac02474d181001efc6bc08d7d39a6f6e3bb0d2a
[ "Apache-2.0" ]
null
null
null
lib/lifx/supervisor.ex
axelson/lifx
9ac02474d181001efc6bc08d7d39a6f6e3bb0d2a
[ "Apache-2.0" ]
null
null
null
defmodule Lifx.Supervisor do use Supervisor require Logger def start_link do Supervisor.start_link(__MODULE__, :ok, name: __MODULE__) end def init(:ok) do children = [ worker(Lifx.Client.Server, []), worker(Lifx.Poller.Server, [[name: Lifx.Poller]]), supervisor(Lifx.DeviceSuperviso...
22.1
60
0.674208
e8dddc4a2c248176fcb95155e35bd262b3c98c98
90
exs
Elixir
test/surface_bulma/form/number_input_test.exs
justin-m-morgan/surface_bulma
c31faebc818c39d06250574b913096504bd6eeec
[ "MIT" ]
30
2021-02-05T18:50:38.000Z
2022-03-12T22:42:29.000Z
test/surface_bulma/form/number_input_test.exs
justin-m-morgan/surface_bulma
c31faebc818c39d06250574b913096504bd6eeec
[ "MIT" ]
19
2021-01-15T19:14:24.000Z
2022-02-05T14:57:18.000Z
test/surface_bulma/form/number_input_test.exs
justin-m-morgan/surface_bulma
c31faebc818c39d06250574b913096504bd6eeec
[ "MIT" ]
17
2021-02-01T20:57:51.000Z
2022-03-20T17:06:57.000Z
defmodule SurfaceBulma.Components.Form.NumberInputTest do use SurfaceBulma.ConnCase end
22.5
57
0.866667
e8dde4ea39acc8b1d6670c433f95ea3439a8f3cf
24,149
ex
Elixir
lib/aws/generated/alexa_for_business.ex
benmmari/aws-elixir
b97477498a9e8ba0d46a09255302d88c6a1c8573
[ "Apache-2.0" ]
null
null
null
lib/aws/generated/alexa_for_business.ex
benmmari/aws-elixir
b97477498a9e8ba0d46a09255302d88c6a1c8573
[ "Apache-2.0" ]
null
null
null
lib/aws/generated/alexa_for_business.ex
benmmari/aws-elixir
b97477498a9e8ba0d46a09255302d88c6a1c8573
[ "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.AlexaForBusiness do @moduledoc """ Alexa for Business helps you use Alexa in your organization. Alexa for Business provides you with the tools to manage Alexa devices, enroll your users, a...
30.568354
78
0.696468
e8ddfc5501833c5a8199ec43ff91de1618cced3c
338
ex
Elixir
lib/supabase_surface/components/icons/icon_figma.ex
treebee/supabase-surface
5a184ca92323c085dd81e2fc8aa8c10367f2382e
[ "Apache-2.0" ]
5
2021-06-08T08:02:43.000Z
2022-02-09T23:13:46.000Z
lib/supabase_surface/components/icons/icon_figma.ex
treebee/supabase-surface
5a184ca92323c085dd81e2fc8aa8c10367f2382e
[ "Apache-2.0" ]
null
null
null
lib/supabase_surface/components/icons/icon_figma.ex
treebee/supabase-surface
5a184ca92323c085dd81e2fc8aa8c10367f2382e
[ "Apache-2.0" ]
1
2021-07-14T05:20:31.000Z
2021-07-14T05:20:31.000Z
defmodule SupabaseSurface.Components.Icons.IconFigma do use SupabaseSurface.Components.Icon @impl true def render(assigns) do icon_size = IconContainer.get_size(assigns.size) ~F""" <IconContainer assigns={assigns}> {Feathericons.figma(width: icon_size, height: icon_size)} </IconContainer> ...
22.533333
63
0.715976
e8de00f8622880e14e17e849381dac927d5392bf
146
ex
Elixir
lib/ex_polygon/currency_quote.ex
aai/ex_polygon
3bd6d8d0f1fbe4cd3fa939751c5ff00813eeeba3
[ "MIT" ]
null
null
null
lib/ex_polygon/currency_quote.ex
aai/ex_polygon
3bd6d8d0f1fbe4cd3fa939751c5ff00813eeeba3
[ "MIT" ]
null
null
null
lib/ex_polygon/currency_quote.ex
aai/ex_polygon
3bd6d8d0f1fbe4cd3fa939751c5ff00813eeeba3
[ "MIT" ]
null
null
null
defmodule ExPolygon.CurrencyQuote do @type t :: %ExPolygon.CurrencyQuote{} defstruct ~w( ask bid exchange timestamp )a end
13.272727
39
0.664384
e8de66b2af14cd03d87cf658545d2a22a2f2f53d
856
ex
Elixir
lib/tauth_proxy/application.ex
tellerhq/tauth_proxy
761ce3dea4eb895f9ed67bbc479dfc4adabe7286
[ "MIT" ]
10
2017-12-14T10:40:40.000Z
2018-06-18T09:46:13.000Z
lib/tauth_proxy/application.ex
tellerhq/tauth_proxy
761ce3dea4eb895f9ed67bbc479dfc4adabe7286
[ "MIT" ]
null
null
null
lib/tauth_proxy/application.ex
tellerhq/tauth_proxy
761ce3dea4eb895f9ed67bbc479dfc4adabe7286
[ "MIT" ]
null
null
null
defmodule TAuthProxy.Application do # See http://elixir-lang.org/docs/stable/elixir/Application.html # for more information on OTP Applications @moduledoc false use Application def start(_type, _args) do import Supervisor.Spec, warn: false port = System.get_env("PORT") |> String.to_integer # D...
32.923077
86
0.716121
e8de72642d3f60f012babd458d8c6b82d1d0c00d
69
ex
Elixir
lib/supply_chain_web/views/user_view.ex
BailianBlockchain/Bailian_Supply_Chain
8341e974b133c86f48488cb52ec4b3b281a99eb5
[ "MIT" ]
5
2020-12-10T07:24:18.000Z
2021-12-15T08:26:05.000Z
lib/supply_chain_web/views/user_view.ex
BailianBlockchain/Bailian_Supply_Chain
8341e974b133c86f48488cb52ec4b3b281a99eb5
[ "MIT" ]
null
null
null
lib/supply_chain_web/views/user_view.ex
BailianBlockchain/Bailian_Supply_Chain
8341e974b133c86f48488cb52ec4b3b281a99eb5
[ "MIT" ]
2
2020-12-12T17:06:13.000Z
2021-04-09T02:12:31.000Z
defmodule SupplyChainWeb.UserView do use SupplyChainWeb, :view end
17.25
36
0.826087
e8de72dd7acc307b9b210e31569eb2746a524802
379
ex
Elixir
lib/upload.ex
capsule-ex/capsule
2ffcdf5f0c4f7596af392aad56f2da6913eda9bf
[ "Apache-2.0" ]
null
null
null
lib/upload.ex
capsule-ex/capsule
2ffcdf5f0c4f7596af392aad56f2da6913eda9bf
[ "Apache-2.0" ]
null
null
null
lib/upload.ex
capsule-ex/capsule
2ffcdf5f0c4f7596af392aad56f2da6913eda9bf
[ "Apache-2.0" ]
null
null
null
defprotocol Capsule.Upload do @spec contents(struct()) :: {:ok, iodata()} | {:error, String.t()} def contents(upload) @spec name(struct()) :: String.t() def name(upload) end defimpl Capsule.Upload, for: Capsule.Encapsulation do def contents(cap), do: Capsule.storage!(cap).read(cap) def name(%{metadata: %...
25.266667
68
0.659631
e8de7ee8e0f115fc132ddf70b7256d75603f4e9e
1,255
ex
Elixir
shritesh+elixir/lib/advent/day_10.ex
NashFP/advent-2020
3ef8736357cb1753ea6b8acf558e344e842ab247
[ "MIT" ]
1
2020-11-25T01:54:02.000Z
2020-11-25T01:54:02.000Z
shritesh+elixir/lib/advent/day_10.ex
NashFP/advent-2020
3ef8736357cb1753ea6b8acf558e344e842ab247
[ "MIT" ]
null
null
null
shritesh+elixir/lib/advent/day_10.ex
NashFP/advent-2020
3ef8736357cb1753ea6b8acf558e344e842ab247
[ "MIT" ]
2
2020-11-25T01:54:42.000Z
2021-02-24T00:12:59.000Z
defmodule Advent.Day10 do defp sorted_adapter_list(input) do numbers = String.split(input, "\n", trim: true) |> Enum.map(&String.to_integer/1) device_jolt = Enum.max(numbers) + 3 Enum.sort([0, device_jolt | numbers]) end def part_1(input) do adapters = sorted_adapter_list(input) ...
23.240741
95
0.56494
e8de8673b50ff6269549e62a690db2940fd79e60
15,695
ex
Elixir
lib/ex_unit/lib/ex_unit/callbacks.ex
E1337Kat/elixir
beed9197d92f481e0f7c4c0aadb8f46312f6ce00
[ "Apache-2.0" ]
null
null
null
lib/ex_unit/lib/ex_unit/callbacks.ex
E1337Kat/elixir
beed9197d92f481e0f7c4c0aadb8f46312f6ce00
[ "Apache-2.0" ]
null
null
null
lib/ex_unit/lib/ex_unit/callbacks.ex
E1337Kat/elixir
beed9197d92f481e0f7c4c0aadb8f46312f6ce00
[ "Apache-2.0" ]
null
null
null
defmodule ExUnit.Callbacks do @moduledoc ~S""" Defines ExUnit callbacks. This module defines the `setup/1`, `setup/2`, `setup_all/1`, and `setup_all/2` callbacks, as well as the `on_exit/2`, `start_supervised/2` and `stop_supervised/1` functions. The setup callbacks are defined via macros and each one can...
30.594542
93
0.666199
e8dea5600567eb6ccbc1a7dbcaa558386bc6932c
309
ex
Elixir
lib/erlef_web/views/members/profile_view.ex
dhadka/website
e67c23d7052b4ef00a1af52b0b9ebc952d34776e
[ "Apache-2.0" ]
null
null
null
lib/erlef_web/views/members/profile_view.ex
dhadka/website
e67c23d7052b4ef00a1af52b0b9ebc952d34776e
[ "Apache-2.0" ]
null
null
null
lib/erlef_web/views/members/profile_view.ex
dhadka/website
e67c23d7052b4ef00a1af52b0b9ebc952d34776e
[ "Apache-2.0" ]
null
null
null
defmodule ErlefWeb.Members.ProfileView do use ErlefWeb, :view def member_since(member) do {:ok, dt, _offset} = DateTime.from_iso8601(member.member_since) Calendar.strftime(dt, "%B, %d, %Y") end def member_level(member) do %{"Name" => level} = member.membership_level level end end
22.071429
67
0.68932
e8deda53e3abcadbc834aa053d57d7bf8950d0d3
229
ex
Elixir
lib/ephemeral2_web/controllers/page_controller.ex
losvedir/ephemeral2
4d48d6b7724127efc4f416ec45c4c2cb28472fc3
[ "MIT" ]
864
2015-05-12T13:00:28.000Z
2022-02-03T20:17:12.000Z
lib/ephemeral2_web/controllers/page_controller.ex
losvedir/ephemeral2
4d48d6b7724127efc4f416ec45c4c2cb28472fc3
[ "MIT" ]
4
2015-05-13T22:07:17.000Z
2015-07-10T17:03:31.000Z
lib/ephemeral2_web/controllers/page_controller.ex
losvedir/ephemeral2
4d48d6b7724127efc4f416ec45c4c2cb28472fc3
[ "MIT" ]
71
2015-05-12T13:30:05.000Z
2021-10-01T03:37:40.000Z
defmodule Ephemeral2Web.PageController do use Ephemeral2Web, :controller def new(conn, _params) do render conn, "new.html" end def show(conn, %{"hash" => hash}) do render conn, "show.html", hash: hash end end
19.083333
41
0.681223
e8df052e9358d8e74d5aab85d2e2fd5c41877bf8
3,506
ex
Elixir
clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_consumers_team.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_consumers_team.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_consumers_team.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.756098
168
0.70251
e8df471eca4d8c18686675878c3cb503c695fe66
1,071
ex
Elixir
Microsoft.Azure.Management.Database.CosmosDb/lib/microsoft/azure/management/database/cosmos_db/model/provisioning_state.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.Database.CosmosDb/lib/microsoft/azure/management/database/cosmos_db/model/provisioning_state.ex
chgeuer/ex_microsoft_azure_management
99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603
[ "Apache-2.0" ]
null
null
null
Microsoft.Azure.Management.Database.CosmosDb/lib/microsoft/azure/management/database/cosmos_db/model/provisioning_state.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.Database.CosmosDb.Model.ProvisioningState do @moduledoc """ The status of the Cosmos DB account at the time the ope...
41.192308
554
0.743231
e8df48934e694f510d19f03a3fa03d63fa44f164
1,232
ex
Elixir
lib/postoffice_web/endpoint.ex
ethervoid/postoffice
5cb275ed5e18ec8ff91523013c3b4215fe41a53f
[ "Apache-2.0" ]
null
null
null
lib/postoffice_web/endpoint.ex
ethervoid/postoffice
5cb275ed5e18ec8ff91523013c3b4215fe41a53f
[ "Apache-2.0" ]
null
null
null
lib/postoffice_web/endpoint.ex
ethervoid/postoffice
5cb275ed5e18ec8ff91523013c3b4215fe41a53f
[ "Apache-2.0" ]
null
null
null
defmodule PostofficeWeb.Endpoint do use Phoenix.Endpoint, otp_app: :postoffice socket "/socket", PostofficeWeb.UserSocket, websocket: true, longpoll: false # Serve at "/" the static files from "priv/static" directory. # # You should set gzip to true if you are running phx.digest # when deploying y...
26.782609
63
0.709416
e8df573200a39634beca2981152b16484999988a
1,765
ex
Elixir
clients/storage/lib/google_api/storage/v1/model/compose_request_source_objects_object_preconditions.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/storage/lib/google_api/storage/v1/model/compose_request_source_objects_object_preconditions.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/storage/lib/google_api/storage/v1/model/compose_request_source_objects_object_preconditions.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...
33.942308
275
0.755807
e8df5f8194b4fdd4cb9410077bcadb7ee432066f
5,698
ex
Elixir
lib/teiserver/chat/chat_room_cache.ex
badosu/teiserver
19b623aeb7c2ab28756405f7486e92b714777c54
[ "MIT" ]
4
2021-07-29T16:23:20.000Z
2022-02-23T05:34:36.000Z
lib/teiserver/chat/chat_room_cache.ex
badosu/teiserver
19b623aeb7c2ab28756405f7486e92b714777c54
[ "MIT" ]
14
2021-08-01T02:36:14.000Z
2022-01-30T21:15:03.000Z
lib/teiserver/chat/chat_room_cache.ex
badosu/teiserver
19b623aeb7c2ab28756405f7486e92b714777c54
[ "MIT" ]
7
2021-05-13T12:55:28.000Z
2022-01-14T06:39:06.000Z
defmodule Teiserver.Room do @moduledoc false require Logger alias Teiserver.{User, Client, Chat, Coordinator} alias Phoenix.PubSub alias Teiserver.Data.Types, as: T @dont_log_room ~w(autohosts) @spec create_room(Map.t()) :: Map.t() @spec create_room(String.t(), T.userid()) :: Map.t() @spec create_ro...
24.882096
87
0.563531
e8df67be8560eb20be30a7671a6e1d4a682ee021
376
ex
Elixir
lib/phxcrd/auth/authority_kind.ex
spapas/phxcrd
84877896f56400b0cc8624fe96c4fe4f5fd8053c
[ "MIT" ]
18
2019-06-21T09:55:46.000Z
2022-02-16T18:44:17.000Z
lib/phxcrd/auth/authority_kind.ex
spapas/phxcrd
84877896f56400b0cc8624fe96c4fe4f5fd8053c
[ "MIT" ]
16
2019-05-21T20:19:44.000Z
2020-05-12T08:30:42.000Z
lib/phxcrd/auth/authority_kind.ex
spapas/phxcrd
84877896f56400b0cc8624fe96c4fe4f5fd8053c
[ "MIT" ]
2
2019-09-05T00:35:27.000Z
2020-10-17T16:36:35.000Z
defmodule Phxcrd.Auth.AuthorityKind do use Ecto.Schema import Ecto.Changeset alias Phxcrd.Auth.Authority schema "authority_kinds" do field :name, :string has_many :authorities, Authority timestamps() end @doc false def changeset(authority_kind, attrs) do authority_kind |> cast(attr...
17.904762
41
0.702128
e8df835842fad3f4d3873c984b1bc123c6067253
2,503
exs
Elixir
config/config.exs
gfleury/bors-ng
02ca714283a5c5a2592c8b5ce5409e3db00ac954
[ "Apache-2.0" ]
1,223
2017-01-11T19:25:08.000Z
2022-03-21T12:31:28.000Z
config/config.exs
gfleury/bors-ng
02ca714283a5c5a2592c8b5ce5409e3db00ac954
[ "Apache-2.0" ]
1,428
2017-01-09T16:36:18.000Z
2022-03-28T14:19:40.000Z
config/config.exs
gfleury/bors-ng
02ca714283a5c5a2592c8b5ce5409e3db00ac954
[ "Apache-2.0" ]
184
2017-01-10T18:08:06.000Z
2022-03-14T18:53:24.000Z
# This file is responsible for configuring your application # and its dependencies with the aid of the Mix.Config module. use Mix.Config # Configures Elixir's Logger # Do not include metadata nor timestamps in development logs case Mix.env() do :prod -> config :logger, level: :info config :logger, :console,...
35.757143
96
0.702357
e8df9d379daca08788f9e65bd85c3e271b3b393a
518
ex
Elixir
lib/super_issuer/ethereum/function.ex
WeLightProject/WeLight-Portal
6e701469423e3a62affdc415c4e8c186d603d324
[ "MIT" ]
2
2021-02-12T09:21:56.000Z
2021-02-22T08:52:20.000Z
lib/super_issuer/ethereum/function.ex
WeLightProject/WeLight-Portal
6e701469423e3a62affdc415c4e8c186d603d324
[ "MIT" ]
4
2021-02-22T08:53:43.000Z
2021-06-09T09:24:46.000Z
lib/super_issuer/ethereum/function.ex
WeLightProject/WeLight-Portal
6e701469423e3a62affdc415c4e8c186d603d324
[ "MIT" ]
null
null
null
defmodule SuperIssuer.Ethereum.Function do alias __MODULE__ alias SuperIssuer.Ethereum.Argument @type t :: %Function{name: String.t(), inputs: list(Argument.t()), outputs: list(Argument.t())} defstruct [:name, :inputs, :outputs] def signature(%Function{name: name, inputs: inputs}) do hash = "#{nam...
30.470588
97
0.642857
e8dff3921e2ea751e70cdce6a1d90b1b0dc2f127
2,324
ex
Elixir
lib/credo/check/readability/redundant_blank_lines.ex
jonnystoten/credo
03879f4ec6987e03401d8553572804cfa5c19130
[ "MIT" ]
null
null
null
lib/credo/check/readability/redundant_blank_lines.ex
jonnystoten/credo
03879f4ec6987e03401d8553572804cfa5c19130
[ "MIT" ]
null
null
null
lib/credo/check/readability/redundant_blank_lines.ex
jonnystoten/credo
03879f4ec6987e03401d8553572804cfa5c19130
[ "MIT" ]
null
null
null
defmodule Credo.Check.Readability.RedundantBlankLines do use Credo.Check, base_priority: :low, tags: [:formatter], param_defaults: [max_blank_lines: 1], explanations: [ check: """ Files should not have two or more consecutive blank lines. Like all `Readability` issues, this one is n...
27.341176
90
0.645439
e8e05476792742f88ed9f1f0dbb59d20fb10f6ac
17,620
ex
Elixir
lib/oban.ex
jamilabreu/oban
5ee1781af993c93208b324024f72c0862cf076c8
[ "Apache-2.0" ]
null
null
null
lib/oban.ex
jamilabreu/oban
5ee1781af993c93208b324024f72c0862cf076c8
[ "Apache-2.0" ]
null
null
null
lib/oban.ex
jamilabreu/oban
5ee1781af993c93208b324024f72c0862cf076c8
[ "Apache-2.0" ]
null
null
null
defmodule Oban do @external_resource readme = Path.join([__DIR__, "../README.md"]) @moduledoc readme |> File.read!() |> String.split("<!-- MDOC -->") |> Enum.fetch!(1) @moduledoc since: "0.1.0" use Supervisor alias Ecto.{Changeset, Multi} alias Oban.{Config, Job, M...
34.015444
98
0.670715
e8e05ef7b4b942f57cbbc36c3e4de3adf9df22bd
106
ex
Elixir
server/lib/project/repo.ex
lemartin19/cs4550-project
bd7baf279021543db33fe52beb3e0d5413dbe405
[ "Xnet", "X11" ]
null
null
null
server/lib/project/repo.ex
lemartin19/cs4550-project
bd7baf279021543db33fe52beb3e0d5413dbe405
[ "Xnet", "X11" ]
null
null
null
server/lib/project/repo.ex
lemartin19/cs4550-project
bd7baf279021543db33fe52beb3e0d5413dbe405
[ "Xnet", "X11" ]
null
null
null
defmodule Project.Repo do use Ecto.Repo, otp_app: :project, adapter: Ecto.Adapters.Postgres end
17.666667
35
0.726415
e8e0762ccd3f131517e69a9c89363e20b7b8f20d
4,138
exs
Elixir
test/mastani_server/cms/search_test.exs
DavidAlphaFox/coderplanets_server
3fd47bf3bba6cc04c9a34698201a60ad2f3e8254
[ "Apache-2.0" ]
1
2019-05-07T15:03:54.000Z
2019-05-07T15:03:54.000Z
test/mastani_server/cms/search_test.exs
DavidAlphaFox/coderplanets_server
3fd47bf3bba6cc04c9a34698201a60ad2f3e8254
[ "Apache-2.0" ]
null
null
null
test/mastani_server/cms/search_test.exs
DavidAlphaFox/coderplanets_server
3fd47bf3bba6cc04c9a34698201a60ad2f3e8254
[ "Apache-2.0" ]
null
null
null
defmodule MastaniServer.Test.CMS.Search do use MastaniServer.TestTools # alias Helper.ORM alias MastaniServer.CMS setup do {:ok, user} = db_insert(:user) {:ok, _community} = db_insert(:community, %{title: "react"}) {:ok, _community} = db_insert(:community, %{title: "php"}) {:ok, _community} = ...
41.38
78
0.623006
e8e085f80c02806ac20e899332f8f22b88b5f5ba
13,463
ex
Elixir
clients/cloud_resource_manager/lib/google_api/cloud_resource_manager/v1/api/liens.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/cloud_resource_manager/lib/google_api/cloud_resource_manager/v1/api/liens.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/cloud_resource_manager/lib/google_api/cloud_resource_manager/v1/api/liens.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...
50.235075
323
0.640719
e8e0eec1dfa33b42c30ce913a9f20e18ac2d40cf
119
ex
Elixir
plugins/one_pages/lib/one_pages_web/views/layout_view.ex
smpallen99/ucx_ucc
47225f205a6ac4aacdb9bb4f7512dcf4092576ad
[ "MIT" ]
11
2017-05-15T18:35:05.000Z
2018-02-05T18:27:40.000Z
plugins/one_pages/lib/one_pages_web/views/layout_view.ex
anndream/infinity_one
47225f205a6ac4aacdb9bb4f7512dcf4092576ad
[ "MIT" ]
15
2017-11-27T10:38:05.000Z
2018-02-09T20:42:08.000Z
plugins/one_pages/lib/one_pages_web/views/layout_view.ex
anndream/infinity_one
47225f205a6ac4aacdb9bb4f7512dcf4092576ad
[ "MIT" ]
4
2017-09-13T11:34:16.000Z
2018-02-26T13:37:06.000Z
defmodule OnePagesWeb.LayoutView do use OnePagesWeb, :view def site_title do gettext("InfinityOne") end end
14.875
35
0.747899
e8e0ffde07f9fa2b9c9502432aa6a7e86d2a089c
562
exs
Elixir
priv/repo/migrations/20161126005659_add_stop_times_table.exs
tjefferson08/frizzle-server
8db3f31e4dae6583603fd2006415129f623827ba
[ "MIT" ]
null
null
null
priv/repo/migrations/20161126005659_add_stop_times_table.exs
tjefferson08/frizzle-server
8db3f31e4dae6583603fd2006415129f623827ba
[ "MIT" ]
null
null
null
priv/repo/migrations/20161126005659_add_stop_times_table.exs
tjefferson08/frizzle-server
8db3f31e4dae6583603fd2006415129f623827ba
[ "MIT" ]
null
null
null
defmodule Frizzle.Repo.Migrations.AddStopTimesTable do use Ecto.Migration def change do create table(:stop_times) do add :trip_id, :integer, null: false add :arrival_time, :string, null: false add :departure_time, :string, null: false add :stop_id, :integer, null: fals...
29.578947
54
0.672598
e8e1247f105900d09a3a925b91f2947aacd4107d
30,215
ex
Elixir
clients/content/lib/google_api/content/v21/api/liasettings.ex
EVLedger/elixir-google-api
61edef19a5e2c7c63848f7030c6d8d651e4593d4
[ "Apache-2.0" ]
null
null
null
clients/content/lib/google_api/content/v21/api/liasettings.ex
EVLedger/elixir-google-api
61edef19a5e2c7c63848f7030c6d8d651e4593d4
[ "Apache-2.0" ]
null
null
null
clients/content/lib/google_api/content/v21/api/liasettings.ex
EVLedger/elixir-google-api
61edef19a5e2c7c63848f7030c6d8d651e4593d4
[ "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.981077
236
0.633559
e8e13339bb61890476214cada125295cbd46a336
1,053
exs
Elixir
test/mix/tasks/ecto.rollback_test.exs
rbishop/ecto
a8a3215c9e2e35f7556f54c8d47d78a3670796d8
[ "Apache-2.0" ]
null
null
null
test/mix/tasks/ecto.rollback_test.exs
rbishop/ecto
a8a3215c9e2e35f7556f54c8d47d78a3670796d8
[ "Apache-2.0" ]
null
null
null
test/mix/tasks/ecto.rollback_test.exs
rbishop/ecto
a8a3215c9e2e35f7556f54c8d47d78a3670796d8
[ "Apache-2.0" ]
null
null
null
defmodule Mix.Tasks.Ecto.RollbackTest do use ExUnit.Case, async: true import Mix.Tasks.Ecto.Rollback, only: [run: 2] defmodule Repo do def start_link do Process.put(:started, true) Task.start_link fn -> Process.flag(:trap_exit, true) receive do {:EXIT, _, :normal} -> :o...
23.931818
73
0.615385
e8e142c5e48998bff3b12827d4e72204754509cc
1,442
exs
Elixir
rustler_mix/mix.exs
surferlocal/rustler
6fbaf63369d7229fb54ae699c9fe8afa68ee51d0
[ "Apache-2.0", "MIT" ]
null
null
null
rustler_mix/mix.exs
surferlocal/rustler
6fbaf63369d7229fb54ae699c9fe8afa68ee51d0
[ "Apache-2.0", "MIT" ]
null
null
null
rustler_mix/mix.exs
surferlocal/rustler
6fbaf63369d7229fb54ae699c9fe8afa68ee51d0
[ "Apache-2.0", "MIT" ]
null
null
null
defmodule Rustler.Mixfile do use Mix.Project @source_url "https://github.com/rusterlium/rustler" @version "0.23.0" def project do [ app: :rustler, name: "Rustler", version: @version, elixir: "~> 1.11", build_embedded: Mix.env() == :prod, start_permanent: Mix.env() == :p...
23.258065
97
0.538141
e8e154c26695902cde174aa20f74c11a62636d91
706
ex
Elixir
lib/absinthe/language/union_type_definition.ex
maartenvanvliet/absinthe
ebe820717200f53756e225b3dffbfefe924a94d3
[ "MIT" ]
null
null
null
lib/absinthe/language/union_type_definition.ex
maartenvanvliet/absinthe
ebe820717200f53756e225b3dffbfefe924a94d3
[ "MIT" ]
2
2020-07-21T05:23:37.000Z
2020-08-26T04:56:12.000Z
lib/absinthe/language/union_type_definition.ex
jlgeering/absinthe
a3dbc29640d613928398626ad75a8f03203a1720
[ "MIT" ]
null
null
null
defmodule Absinthe.Language.UnionTypeDefinition do @moduledoc false alias Absinthe.{Blueprint, Language} defstruct name: nil, directives: [], types: [], loc: %{start_line: nil} @type t :: %__MODULE__{ name: String.t(), directives: [Language.Directive.t(...
25.214286
74
0.607649
e8e161c0f82ab1749bf570756c35a8e57d95dd6c
390
exs
Elixir
test/regressions/i062_refactor_to_html_test.exs
RobertDober/earmark
6f20bd06f40e4333294d19eb38031ea480f3d3ba
[ "Apache-2.0" ]
null
null
null
test/regressions/i062_refactor_to_html_test.exs
RobertDober/earmark
6f20bd06f40e4333294d19eb38031ea480f3d3ba
[ "Apache-2.0" ]
null
null
null
test/regressions/i062_refactor_to_html_test.exs
RobertDober/earmark
6f20bd06f40e4333294d19eb38031ea480f3d3ba
[ "Apache-2.0" ]
1
2020-09-15T17:47:35.000Z
2020-09-15T17:47:35.000Z
defmodule Regressions.I062RefactorToHtmlTest do use ExUnit.Case test "deprecation warning for to_html" do assert_raise(UndefinedFunctionError, ~r{function Earmark\.to_html/1 is undefined or private.*}, fn -> Earmark.to_html("* hello") end) end test "as_html! takes place" do assert Earmark....
26
105
0.684615
e8e18ac35164ee31b519f49dd0b1ddb6db0b7547
714
ex
Elixir
lib/horizons_web/gettext.ex
BCrawfordScott/horizons
04ee6ba579517e6a35c1347de4be1bceea8e4b36
[ "MIT" ]
null
null
null
lib/horizons_web/gettext.ex
BCrawfordScott/horizons
04ee6ba579517e6a35c1347de4be1bceea8e4b36
[ "MIT" ]
null
null
null
lib/horizons_web/gettext.ex
BCrawfordScott/horizons
04ee6ba579517e6a35c1347de4be1bceea8e4b36
[ "MIT" ]
null
null
null
defmodule HorizonsWeb.Gettext do @moduledoc """ A module providing Internationalization with a gettext-based API. By using [Gettext](https://hexdocs.pm/gettext), your module gains a set of macros for translations, for example: import HorizonsWeb.Gettext # Simple translation gettext("Here is...
28.56
72
0.679272
e8e192c8313e1e96cf6bfba971321bc1ee14c2cb
9,038
ex
Elixir
lib/morphic_pro/accounts.ex
MorphicPro/morphic_pro
0028726250b6c55842e4bb48ffeeddc28e63b1bd
[ "MIT" ]
null
null
null
lib/morphic_pro/accounts.ex
MorphicPro/morphic_pro
0028726250b6c55842e4bb48ffeeddc28e63b1bd
[ "MIT" ]
null
null
null
lib/morphic_pro/accounts.ex
MorphicPro/morphic_pro
0028726250b6c55842e4bb48ffeeddc28e63b1bd
[ "MIT" ]
null
null
null
defmodule MorphicPro.Accounts do @moduledoc """ The Accounts context. """ import Ecto.Query, warn: false alias MorphicPro.Repo alias MorphicPro.Accounts.{User, UserToken, UserNotifier} ## Database getters @doc """ Gets a user by email. ## Examples iex> get_user_by_email("foo@example.com")...
25.822857
116
0.664196
e8e197cd041cf1932f622634a638861d47890d13
474
ex
Elixir
lib/glimesh_web/live/homepage_live.ex
itsUnsmart/glimesh.tv
22c532184bb5046f6c6d8232e8bd66ba534c01c1
[ "MIT" ]
null
null
null
lib/glimesh_web/live/homepage_live.ex
itsUnsmart/glimesh.tv
22c532184bb5046f6c6d8232e8bd66ba534c01c1
[ "MIT" ]
null
null
null
lib/glimesh_web/live/homepage_live.ex
itsUnsmart/glimesh.tv
22c532184bb5046f6c6d8232e8bd66ba534c01c1
[ "MIT" ]
null
null
null
defmodule GlimeshWeb.HomepageLive do use GlimeshWeb, :live_view alias Glimesh.Accounts @impl true def mount(_params, session, socket) do maybe_user = Accounts.get_user_by_session_token(session["user_token"]) # If the viewer is logged in set their locale, otherwise it defaults to English if session[...
27.882353
83
0.71519
e8e1df573edecf9457128e2dbdbe1e30440e3f7d
8,435
ex
Elixir
clients/civic_info/lib/google_api/civic_info/v2/api/representatives.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/civic_info/lib/google_api/civic_info/v2/api/representatives.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/civic_info/lib/google_api/civic_info/v2/api/representatives.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...
47.655367
259
0.643391
e8e207961d2eb2e535adeb6ae65c518d4f4920f1
532
exs
Elixir
test/client/servers/client_test.exs
kintu-games/elidactyl
2d95694ef4a85c72e962379d8d12fc08bd8352ac
[ "MIT" ]
null
null
null
test/client/servers/client_test.exs
kintu-games/elidactyl
2d95694ef4a85c72e962379d8d12fc08bd8352ac
[ "MIT" ]
null
null
null
test/client/servers/client_test.exs
kintu-games/elidactyl
2d95694ef4a85c72e962379d8d12fc08bd8352ac
[ "MIT" ]
null
null
null
defmodule Elidactyl.Client.Server.ClientTest do use ExUnit.Case, async: false use Elidactyl.RequestCase alias Elidactyl.MockedServer alias Elidactyl.Schemas.Server.Stats alias Elidactyl.Client setup do %{attributes: server} = MockedServer.put(:server) MockedServer.put(:stats, %{server: server.id})...
24.181818
65
0.712406
e8e243dd98ed66b7124d5bfe3f6dc4fd4221987d
2,148
ex
Elixir
clients/books/lib/google_api/books/v1/model/volumeseriesinfo_volume_series.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/books/lib/google_api/books/v1/model/volumeseriesinfo_volume_series.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/books/lib/google_api/books/v1/model/volumeseriesinfo_volume_series.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...
38.357143
180
0.719739
e8e250fb3069d318c2f4998784b2c209eef922ed
721
ex
Elixir
lib/postgrex/extensions/circle.ex
enter-haken/postgrex
fb3438d4e6a56db81ddd0d578cdfc0484909c233
[ "Apache-2.0" ]
681
2016-06-16T12:28:22.000Z
2022-03-30T08:48:42.000Z
deps/postgrex/lib/postgrex/extensions/circle.ex
rwtrecs/rocketseat-nlw5-inmana
8ce8bc32e0bdd005c423394bb163945747b557e2
[ "MIT" ]
383
2016-06-17T14:49:41.000Z
2022-03-21T18:13:19.000Z
deps/postgrex/lib/postgrex/extensions/circle.ex
adrianomota/blog
ef3b2d2ed54f038368ead8234d76c18983caa75b
[ "MIT" ]
234
2016-06-16T16:14:47.000Z
2022-03-03T00:43:59.000Z
defmodule Postgrex.Extensions.Circle do @moduledoc false import Postgrex.BinaryUtils, warn: false use Postgrex.BinaryExtension, send: "circle_send" def encode(_) do quote location: :keep do %Postgrex.Circle{center: %Postgrex.Point{x: x, y: y}, radius: r} when is_number(x) and is_number(y) and i...
30.041667
87
0.650485
e8e278e1a6964f810d3843ccc6b4769b5375a804
1,113
exs
Elixir
config/config.exs
korczis/skull-elixir
df1315f50b2e14c41a7d6626205a7987d9bde4f6
[ "MIT" ]
null
null
null
config/config.exs
korczis/skull-elixir
df1315f50b2e14c41a7d6626205a7987d9bde4f6
[ "MIT" ]
null
null
null
config/config.exs
korczis/skull-elixir
df1315f50b2e14c41a7d6626205a7987d9bde4f6
[ "MIT" ]
null
null
null
# This file is responsible for configuring your application # and its dependencies with the aid of the Mix.Config module. use Mix.Config # This configuration is loaded before any dependency and is restricted # to this project. If another project depends on this project, this # file won't be loaded nor affect the paren...
35.903226
73
0.750225
e8e281ec41271e9afde7d3e8379dd4b52e29db58
6,699
ex
Elixir
clients/dataflow/lib/google_api/dataflow/v1b3/model/worker_pool.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/dataflow/lib/google_api/dataflow/v1b3/model/worker_pool.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/dataflow/lib/google_api/dataflow/v1b3/model/worker_pool.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...
70.515789
884
0.753993
e8e293d79a84b04cde70e040e289750d5716dd17
275
ex
Elixir
web/views/quote_view.ex
philcallister/ticker-phoenix
052fddec24de3b3e48a9513a0d3782f3c9227c81
[ "MIT" ]
15
2016-11-02T14:03:00.000Z
2021-03-23T20:34:14.000Z
web/views/quote_view.ex
philcallister/ticker-phoenix
052fddec24de3b3e48a9513a0d3782f3c9227c81
[ "MIT" ]
null
null
null
web/views/quote_view.ex
philcallister/ticker-phoenix
052fddec24de3b3e48a9513a0d3782f3c9227c81
[ "MIT" ]
2
2019-08-09T18:33:09.000Z
2020-07-14T16:28:14.000Z
defmodule TickerPhoenix.QuoteView do use TickerPhoenix.Web, :view def render("show.json", %{quote: quote}) do %{data: render_one(quote, TickerPhoenix.QuoteView, "quote.json")} end def render("quote.json", %{quote: quote}) do Poison.encode!(quote) end end
22.916667
69
0.694545
e8e29f8cf4e6ed855d16cede0700215a8b726599
772
ex
Elixir
lib/chat_api/users/user_settings.ex
Tiamat-Tech/papercups
f17d2b0ce080c0edab92a4b2e6d4afcef04aa291
[ "MIT" ]
1
2021-06-17T03:17:24.000Z
2021-06-17T03:17:24.000Z
lib/chat_api/users/user_settings.ex
Tiamat-Tech/papercups
f17d2b0ce080c0edab92a4b2e6d4afcef04aa291
[ "MIT" ]
1
2021-01-17T10:42:34.000Z
2021-01-17T10:42:34.000Z
lib/chat_api/users/user_settings.ex
Tiamat-Tech/papercups
f17d2b0ce080c0edab92a4b2e6d4afcef04aa291
[ "MIT" ]
null
null
null
defmodule ChatApi.Users.UserSettings do use Ecto.Schema import Ecto.Changeset alias ChatApi.Users.User @type t :: %__MODULE__{ email_alert_on_new_message: boolean(), # Foreign keys user_id: integer(), # Timestamps inserted_at: DateTime.t(), updated_a...
23.393939
63
0.661917
e8e2c5a48a0d09c1409fb0dff8dc7c5ca9502a2c
147
exs
Elixir
massa_proxy/apps/massa_proxy/test/massa_proxy_test.exs
wesleimp/massa
f2deebe91f953e472774b83b8ac6a2ceeaa55a3e
[ "Apache-2.0" ]
1
2021-11-30T19:59:51.000Z
2021-11-30T19:59:51.000Z
massa_proxy/apps/massa_proxy/test/massa_proxy_test.exs
wesleimp/massa
f2deebe91f953e472774b83b8ac6a2ceeaa55a3e
[ "Apache-2.0" ]
null
null
null
massa_proxy/apps/massa_proxy/test/massa_proxy_test.exs
wesleimp/massa
f2deebe91f953e472774b83b8ac6a2ceeaa55a3e
[ "Apache-2.0" ]
null
null
null
defmodule MassaProxyTest do use ExUnit.Case doctest MassaProxy test "greets the world" do assert MassaProxy.hello() == :world end end
16.333333
39
0.727891
e8e2ef69e49c38bf2770bed16cb9e9829199ba49
4,115
ex
Elixir
lib/nosprotocol/portal.ex
deva-hub/NosProtocol
9484901f86bd83ffc9e765f1263906bc8f35d056
[ "MIT" ]
null
null
null
lib/nosprotocol/portal.ex
deva-hub/NosProtocol
9484901f86bd83ffc9e765f1263906bc8f35d056
[ "MIT" ]
null
null
null
lib/nosprotocol/portal.ex
deva-hub/NosProtocol
9484901f86bd83ffc9e765f1263906bc8f35d056
[ "MIT" ]
null
null
null
defmodule NosProtocol.Portal do @moduledoc """ Portal protocol socket manager. """ require Logger alias NosLib.{Crypto, ErrorMessage} alias NosProtocol.Portal.Socket @type reply :: map() @type params :: map() @callback connect(params(), Socket.t()) :: {:ok, reply(), Socket.t()} | {:error, reply()} ...
29.392857
91
0.652248
e8e2fbd3de41381f8306b3321b9c774ba2934d89
2,294
ex
Elixir
apps/snitch_api/lib/snitch_api_web/controllers/user_controller.ex
VeryBigThings/avia
7ce5d5b244ae0dfddc30c09c17efe27f1718a4c9
[ "MIT" ]
1
2021-04-08T22:29:19.000Z
2021-04-08T22:29:19.000Z
apps/snitch_api/lib/snitch_api_web/controllers/user_controller.ex
VeryBigThings/avia
7ce5d5b244ae0dfddc30c09c17efe27f1718a4c9
[ "MIT" ]
null
null
null
apps/snitch_api/lib/snitch_api_web/controllers/user_controller.ex
VeryBigThings/avia
7ce5d5b244ae0dfddc30c09c17efe27f1718a4c9
[ "MIT" ]
null
null
null
defmodule SnitchApiWeb.UserController do use SnitchApiWeb, :controller alias Snitch.Data.Schema.User alias SnitchApi.Accounts alias SnitchApi.Guardian alias Snitch.Data.Model.User, as: UserModel plug(SnitchApiWeb.Plug.DataToAttributes) plug(SnitchApiWeb.Plug.LoadUser) action_fallback(SnitchApiWeb.Fal...
27.638554
86
0.649956
e8e3005800faeadefa9cf054688123ac1f1ceeb3
439
exs
Elixir
priv/repo/migrations/20160619190938_add_simple_people.exs
rschef/paper_trail
6ab8b29ee97b46222cc48d376daea70fc5cb8105
[ "MIT" ]
1
2021-03-17T14:22:49.000Z
2021-03-17T14:22:49.000Z
priv/repo/migrations/20160619190938_add_simple_people.exs
rschef/paper_trail
6ab8b29ee97b46222cc48d376daea70fc5cb8105
[ "MIT" ]
1
2020-06-12T13:53:38.000Z
2020-06-12T13:53:38.000Z
priv/repo/migrations/20160619190938_add_simple_people.exs
rschef/paper_trail
6ab8b29ee97b46222cc48d376daea70fc5cb8105
[ "MIT" ]
3
2021-04-07T14:54:04.000Z
2021-04-07T14:54:16.000Z
defmodule Repo.Migrations.CreateSimplePeople do use Ecto.Migration def change do create table(:simple_people) do add :first_name, :string, null: false add :last_name, :string add :visit_count, :integer add :gender, :boolean add :birthdate, :date add :company_id, references(...
21.95
65
0.67426
e8e34adc1928c652ac7dac81de855f2e67c037e1
876
ex
Elixir
lib/orders/item.ex
riosvictor/exlivery
c5f869511a998169528d9a5e07a5d8fbf00b4cc3
[ "MIT" ]
1
2022-03-16T20:41:39.000Z
2022-03-16T20:41:39.000Z
lib/orders/item.ex
riosvictor/exlivery
c5f869511a998169528d9a5e07a5d8fbf00b4cc3
[ "MIT" ]
null
null
null
lib/orders/item.ex
riosvictor/exlivery
c5f869511a998169528d9a5e07a5d8fbf00b4cc3
[ "MIT" ]
null
null
null
defmodule Exlivery.Orders.Item do @categories [:pizza, :hamburguer, :carne, :prato_feito, :japonesa, :sobremesa] @keys [:description, :category, :unity_price, :quantity] @enforce_keys @keys defstruct @keys def build(description, category, unity_price, quantity) when quantity > 0 and category in @cate...
25.764706
80
0.687215
e8e34ce702f4943f9d688f9500805b78f3757420
1,389
ex
Elixir
string_calc/lib/string_calc/day09.ex
alex-dukhno/elixir-tdd-katas
57e25fc275c4274c889f2b3760276cc8a393de9e
[ "MIT" ]
null
null
null
string_calc/lib/string_calc/day09.ex
alex-dukhno/elixir-tdd-katas
57e25fc275c4274c889f2b3760276cc8a393de9e
[ "MIT" ]
null
null
null
string_calc/lib/string_calc/day09.ex
alex-dukhno/elixir-tdd-katas
57e25fc275c4274c889f2b3760276cc8a393de9e
[ "MIT" ]
null
null
null
defmodule StringCalc.Day09 do def compute(src), do: src |> String.graphemes() |> parse_expression() |> elem(0) defp parse_expression(src) when is_list(src), do: src |> parse_term() |> parse_expression() defp parse_expression({num1, ["+" | rest]}), do: rest |> parse_expression...
22.770492
66
0.576674
e8e3542390eb2ff6b55c4fb53ad31d7634e28f90
443
ex
Elixir
lib/eatbeep/signup.ex
eatbeep/eatbeep
f6dbe569bbcf9a0cbd10aaf94ff0cb137f01d320
[ "MIT" ]
2
2021-01-31T05:18:20.000Z
2021-04-12T17:40:31.000Z
lib/eatbeep/signup.ex
eatbeep/eatbeep
f6dbe569bbcf9a0cbd10aaf94ff0cb137f01d320
[ "MIT" ]
null
null
null
lib/eatbeep/signup.ex
eatbeep/eatbeep
f6dbe569bbcf9a0cbd10aaf94ff0cb137f01d320
[ "MIT" ]
null
null
null
defmodule Eatbeep.Signup do alias Ecto.Multi alias Eatbeep.Repo alias Eatbeep.Login alias Ecto.Changeset def signup(changeset) do with_blocks = changeset |> Changeset.put_change(:menu, Eatbeep.Blocks.generate_starting_data()) Multi.new() |> Multi.insert(:tenant, with_blocks) |> Multi.run(:t...
23.315789
99
0.699774
e8e378928f0027e91acb34060b3706a968d8135c
343
ex
Elixir
lib/interactor/application.ex
bmfay/interactor
fcdb6c74ef524ce5791216bd0f661d75f0c78b08
[ "Apache-2.0" ]
12
2017-01-07T20:59:14.000Z
2020-02-23T00:20:20.000Z
lib/interactor/application.ex
bmfay/interactor
fcdb6c74ef524ce5791216bd0f661d75f0c78b08
[ "Apache-2.0" ]
11
2016-04-03T20:31:52.000Z
2016-11-17T15:14:34.000Z
lib/interactor/application.ex
bmfay/interactor
fcdb6c74ef524ce5791216bd0f661d75f0c78b08
[ "Apache-2.0" ]
4
2019-02-21T04:04:14.000Z
2020-06-01T18:44:46.000Z
defmodule Interactor.Application do @moduledoc false use Application def start(_type, _args) do import Supervisor.Spec children = [ supervisor(Task.Supervisor, [[name: Interactor.TaskSupervisor]]) ] opts = [strategy: :one_for_one, name: Interactor.Supervisor] Supervisor.start_link(chi...
21.4375
70
0.714286
e8e37ca72ef57c235818072f8b7dc50226b4c8b5
140
ex
Elixir
lib/blog_api_web/controllers/page_controller.ex
ivoferro/CSIAN_Blog_Management
ad95a7e479090adb04c80e1fc635a400b3aa69c2
[ "MIT" ]
null
null
null
lib/blog_api_web/controllers/page_controller.ex
ivoferro/CSIAN_Blog_Management
ad95a7e479090adb04c80e1fc635a400b3aa69c2
[ "MIT" ]
null
null
null
lib/blog_api_web/controllers/page_controller.ex
ivoferro/CSIAN_Blog_Management
ad95a7e479090adb04c80e1fc635a400b3aa69c2
[ "MIT" ]
null
null
null
defmodule BlogApiWeb.PageController do use BlogApiWeb, :controller def index(conn, _params) do render conn, "index.html" end end
17.5
38
0.742857
e8e3958c0f9edb5a16f95a13244ea1ae27d48db4
5,770
exs
Elixir
deps/phoenix/mix.exs
thaisfiori/blog_da_tha
e860e64e5251dae03b95fdf1e339ec0a3d789a29
[ "Apache-2.0" ]
1
2021-04-19T23:18:06.000Z
2021-04-19T23:18:06.000Z
deps/phoenix/mix.exs
rwtrecs/rocketseat-nlw5-inmana
8ce8bc32e0bdd005c423394bb163945747b557e2
[ "MIT" ]
null
null
null
deps/phoenix/mix.exs
rwtrecs/rocketseat-nlw5-inmana
8ce8bc32e0bdd005c423394bb163945747b557e2
[ "MIT" ]
null
null
null
defmodule Phoenix.MixProject do use Mix.Project @version "1.5.8" # If the elixir requirement is updated, we need to make the installer # use at least the minimum requirement used here. Although often the # installer is ahead of Phoenix itself. @elixir_requirement "~> 1.7" def project do [ app...
25.990991
105
0.584055
e8e3a5c472da3b4afd41d2bdfb6db1622b454a54
2,048
exs
Elixir
config/prod.exs
jwworth/wallaby_example
03372b15ee700fc309bd3371cc445671d41316d4
[ "MIT" ]
null
null
null
config/prod.exs
jwworth/wallaby_example
03372b15ee700fc309bd3371cc445671d41316d4
[ "MIT" ]
null
null
null
config/prod.exs
jwworth/wallaby_example
03372b15ee700fc309bd3371cc445671d41316d4
[ "MIT" ]
null
null
null
use Mix.Config # For production, we configure the host to read the PORT # from the system environment. Therefore, you will need # to set PORT=80 before running your server. # # You should also configure the url host to something # meaningful, we use this information when generating URLs. # # Finally, we also include t...
33.032258
68
0.72168
e8e3a8ee10fede17bf8ad54bdbd14d123dd6a9bf
577
exs
Elixir
farmbot_core/test/firmware_needs_test.exs
kant/farmbot_os
f497cc1fde3960dc5507e4da89e85411a8f776f3
[ "MIT" ]
null
null
null
farmbot_core/test/firmware_needs_test.exs
kant/farmbot_os
f497cc1fde3960dc5507e4da89e85411a8f776f3
[ "MIT" ]
null
null
null
farmbot_core/test/firmware_needs_test.exs
kant/farmbot_os
f497cc1fde3960dc5507e4da89e85411a8f776f3
[ "MIT" ]
null
null
null
defmodule FarmbotCore.FirmwareNeedsTest do use ExUnit.Case, async: true alias FarmbotCore.FirmwareNeeds test "tracks firmware needs in memory" do {:ok, pid} = FirmwareNeeds.start_link([], []) assert FirmwareNeeds.open?(pid) assert FirmwareNeeds.flash?(pid) FirmwareNeeds.open(true, pid) asse...
24.041667
49
0.720971
e8e3b36f32647bf0415e4c833c2636a2838dd58f
3,007
ex
Elixir
clients/container/lib/google_api/container/v1/model/update_master_request.ex
yoshi-code-bot/elixir-google-api
cdb6032f01fac5ab704803113c39f2207e9e019d
[ "Apache-2.0" ]
null
null
null
clients/container/lib/google_api/container/v1/model/update_master_request.ex
yoshi-code-bot/elixir-google-api
cdb6032f01fac5ab704803113c39f2207e9e019d
[ "Apache-2.0" ]
null
null
null
clients/container/lib/google_api/container/v1/model/update_master_request.ex
yoshi-code-bot/elixir-google-api
cdb6032f01fac5ab704803113c39f2207e9e019d
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
50.966102
538
0.719322
e8e3ef63ca643693151416a0c7123209dbb8472f
477
ex
Elixir
server/lib/pencil_space_server_web/views/error_helpers.ex
nilenso/pencil.space
2934d83287dd716b9b984aae5bb7e72247bf4d23
[ "MIT" ]
3
2021-05-30T07:56:32.000Z
2021-08-06T12:03:15.000Z
server/lib/pencil_space_server_web/views/error_helpers.ex
nilenso/pencil.space
2934d83287dd716b9b984aae5bb7e72247bf4d23
[ "MIT" ]
5
2020-05-06T13:05:52.000Z
2020-12-04T20:59:41.000Z
server/lib/pencil_space_server_web/views/error_helpers.ex
nilenso/pencil.space
2934d83287dd716b9b984aae5bb7e72247bf4d23
[ "MIT" ]
null
null
null
defmodule PencilSpaceServerWeb.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 t...
28.058824
69
0.683438
e8e4053eee9fa0acefc9a011dafd4074dcde90ef
5,195
ex
Elixir
lib/chat_api_web/controllers/message_controller.ex
J0/papercups
a896081727abae07982a79fdf5b649354155f3a4
[ "MIT" ]
null
null
null
lib/chat_api_web/controllers/message_controller.ex
J0/papercups
a896081727abae07982a79fdf5b649354155f3a4
[ "MIT" ]
null
null
null
lib/chat_api_web/controllers/message_controller.ex
J0/papercups
a896081727abae07982a79fdf5b649354155f3a4
[ "MIT" ]
null
null
null
defmodule ChatApiWeb.MessageController do use ChatApiWeb, :controller use PhoenixSwagger alias ChatApi.Messages alias ChatApi.Messages.Message action_fallback(ChatApiWeb.FallbackController) plug :authorize when action in [:show, :update, :delete] defp authorize(conn, _) do id = conn.path_params["i...
32.46875
96
0.648123
e8e40e375af59b6be7d35517df8e23a5cc80b55d
1,066
ex
Elixir
lib/generate/get_all_queued_transfers_response.ex
smiyabe/cwmp_ex
9db322497aa3208b5985ccf496ada5286cde3925
[ "Artistic-2.0" ]
3
2017-11-29T05:07:35.000Z
2019-12-18T17:16:41.000Z
lib/generate/get_all_queued_transfers_response.ex
smiyabe/cwmp_ex
9db322497aa3208b5985ccf496ada5286cde3925
[ "Artistic-2.0" ]
1
2021-12-02T19:35:28.000Z
2022-03-29T09:40:52.000Z
lib/generate/get_all_queued_transfers_response.ex
smiyabe/cwmp_ex
9db322497aa3208b5985ccf496ada5286cde3925
[ "Artistic-2.0" ]
2
2017-11-29T05:07:30.000Z
2020-11-10T07:10:42.000Z
defimpl CWMP.Protocol.Generate, for: CWMP.Protocol.Messages.GetAllQueuedTransfersResponse do import XmlBuilder use CWMP.Protocol.GenerateHelpers def generate(req) do transferlist=for t <- req.transferlist, do: generateTransferStruct(t) element("cwmp:GetAllQueuedTransfersResponse", [ element(:Tran...
34.387097
126
0.702627
e8e417265fa28a3645ce10d7bd8f629f97a738c6
677
exs
Elixir
test/ex_pix_brcode/payments/models/static_pix_payment_test.exs
joaogularte/ex-pix-brcode
2cd0d67db06cb5a250fa42cf5b4921ed84559b3e
[ "Apache-2.0" ]
17
2020-11-27T14:58:17.000Z
2021-12-17T12:52:19.000Z
test/ex_pix_brcode/payments/models/static_pix_payment_test.exs
joaogularte/ex-pix-brcode
2cd0d67db06cb5a250fa42cf5b4921ed84559b3e
[ "Apache-2.0" ]
2
2020-11-28T18:33:03.000Z
2022-01-06T17:10:00.000Z
test/ex_pix_brcode/payments/models/static_pix_payment_test.exs
joaogularte/ex-pix-brcode
2cd0d67db06cb5a250fa42cf5b4921ed84559b3e
[ "Apache-2.0" ]
6
2020-11-28T07:10:51.000Z
2021-12-16T16:39:28.000Z
defmodule ExPixBRCode.Payments.Models.StaticPixPaymentTest do use ExUnit.Case, async: true alias ExPixBRCode.Changesets alias ExPixBRCode.Payments.Models.StaticPixPayment describe "changeset/2" do test "successfully on validates a proper UUID random key" do payload = %{ "key" => "9463A2A0-2b...
29.434783
67
0.66322
e8e41f704d1956c02a28ec8fc237c477b6c6a2e9
1,460
ex
Elixir
lib/MOM/RPC/endpoint/method_caller.ex
serverboards/elixir-mom
840656bda40abf13a1e0058b780d2afc7f1efd5e
[ "Apache-2.0" ]
2
2017-12-19T00:15:42.000Z
2018-02-10T23:41:22.000Z
lib/MOM/RPC/endpoint/method_caller.ex
serverboards/elixir-mom
840656bda40abf13a1e0058b780d2afc7f1efd5e
[ "Apache-2.0" ]
null
null
null
lib/MOM/RPC/endpoint/method_caller.ex
serverboards/elixir-mom
840656bda40abf13a1e0058b780d2afc7f1efd5e
[ "Apache-2.0" ]
null
null
null
require Logger defmodule MOM.RPC.Endpoint.MethodCaller do alias MOM.Channel alias MOM.RPC def start_link(rpc_in, options \\ []) do method_caller = if options[:method_caller] do options[:method_caller] else {:ok, method_caller} = MOM.RPC.MethodCaller.start_link method_caller end ...
25.172414
76
0.617123
e8e4277af5374ff7194c9328d6ca2113de08ac31
6,275
exs
Elixir
mix.exs
nyaray/scenic
a4e495262b74ff34857bfb5ec237e07d82f4871f
[ "Apache-2.0" ]
1
2020-09-20T14:07:49.000Z
2020-09-20T14:07:49.000Z
mix.exs
yvc74/scenic
7a1bca453c4d96b64f2593ccaf2ea0e0b88fcc75
[ "Apache-2.0" ]
null
null
null
mix.exs
yvc74/scenic
7a1bca453c4d96b64f2593ccaf2ea0e0b88fcc75
[ "Apache-2.0" ]
null
null
null
defmodule Scenic.Mixfile do use Mix.Project @app_name :scenic @version "0.10.3" @elixir_version "~> 1.8" @github "https://github.com/boydm/scenic" def project do [ app: @app_name, version: @version, elixir: @elixir_version, deps: deps(), build_embedded: true, star...
26.93133
90
0.592032
e8e442bddc2f4b1a189b4f0d0ff2c8b970b280fc
944
exs
Elixir
test/models/job_test.exs
taybin/gardenhose
cd82a7d1838d443810a13b75ac609aaac92a2b0b
[ "Apache-2.0" ]
null
null
null
test/models/job_test.exs
taybin/gardenhose
cd82a7d1838d443810a13b75ac609aaac92a2b0b
[ "Apache-2.0" ]
null
null
null
test/models/job_test.exs
taybin/gardenhose
cd82a7d1838d443810a13b75ac609aaac92a2b0b
[ "Apache-2.0" ]
null
null
null
defmodule Gardenhose.Model.JobTest do alias Gardenhose.Model.Job, as: Job alias Gardenhose.Model.JobToJob, as: JobToJob alias Gardenhose.Repo, as: Repo use ExUnit.Case, async: true test "can save job to database" do job = %Job{name: "test"} saved_job = Repo.insert(job) retrieved_job = Repo.get Jo...
27.764706
67
0.662076
e8e44d1eb9c6c32832a942dc1a4aab97b0c51517
4,774
ex
Elixir
lib/kantele/brain.ex
christhekeele/ex_venture
4f4b329f50a133e219969f9823144a4cb9bf738d
[ "MIT" ]
610
2017-08-09T15:20:25.000Z
2022-03-27T15:49:07.000Z
lib/kantele/brain.ex
christhekeele/ex_venture
4f4b329f50a133e219969f9823144a4cb9bf738d
[ "MIT" ]
69
2017-09-23T04:02:30.000Z
2022-03-19T21:08:21.000Z
lib/kantele/brain.ex
christhekeele/ex_venture
4f4b329f50a133e219969f9823144a4cb9bf738d
[ "MIT" ]
85
2017-09-23T04:07:11.000Z
2021-11-20T06:44:56.000Z
defmodule Kantele.Brain do @moduledoc """ Load and parse brain data into behavior tree structs """ @brains_path "data/brains" @doc """ Load brain data from the path Defaults to `#{@brains_path}` """ def load_all(path \\ @brains_path) do File.ls!(path) |> Enum.filter(fn file -> String....
24.482051
70
0.619397
e8e461c60753c2203395847f692be1224984be89
669
ex
Elixir
lib/blog.ex
embik/blog
ee8e604fe0bba0bade5466cc180475dbe80bb6b6
[ "Apache-2.0" ]
null
null
null
lib/blog.ex
embik/blog
ee8e604fe0bba0bade5466cc180475dbe80bb6b6
[ "Apache-2.0" ]
1
2017-08-14T09:00:30.000Z
2017-08-14T16:18:44.000Z
lib/blog.ex
embik/blog
ee8e604fe0bba0bade5466cc180475dbe80bb6b6
[ "Apache-2.0" ]
null
null
null
defmodule Blog do use Application def start(_type, _args) do import Supervisor.Spec # Define workers and child supervisors to be supervised children = [ # Start the endpoint when the application starts supervisor(BlogWeb.Endpoint, []), supervisor(Blog.Cache.Supervisor, []), ] ...
24.777778
59
0.70852
e8e469ee1413a2403281154df14399e20a576e63
1,933
exs
Elixir
test/suite/draft4/maximum_test.exs
starbelly/json_xema
73ca23f9ce51d450d2f9cf0509ee6bb82f9a8c79
[ "MIT" ]
1
2019-06-21T10:55:33.000Z
2019-06-21T10:55:33.000Z
test/suite/draft4/maximum_test.exs
starbelly/json_xema
73ca23f9ce51d450d2f9cf0509ee6bb82f9a8c79
[ "MIT" ]
null
null
null
test/suite/draft4/maximum_test.exs
starbelly/json_xema
73ca23f9ce51d450d2f9cf0509ee6bb82f9a8c79
[ "MIT" ]
null
null
null
defmodule Draft4.MaximumTest do use ExUnit.Case, async: true import JsonXema, only: [valid?: 2] describe "maximum validation" do setup do %{schema: ~s( { "maximum": 3.0 } ) |> Jason.decode!() |> JsonXema.new()} end test "below the maximum is valid", %{schema:...
21.965909
65
0.557682
e8e46d9dc594dfd03aaf5dd48a74120f03107f64
205
exs
Elixir
anagram/anagram.exs
RamanBut-Husaim/exercism.elixir
683bb3b5700945dbbebcedf26d37208d4201ef49
[ "MIT" ]
1
2021-08-16T20:24:14.000Z
2021-08-16T20:24:14.000Z
exercises/anagram/anagram.exs
Triangle-Elixir/xelixir
08d23bf47f57799f286567cb26f635291de2fde5
[ "MIT" ]
null
null
null
exercises/anagram/anagram.exs
Triangle-Elixir/xelixir
08d23bf47f57799f286567cb26f635291de2fde5
[ "MIT" ]
null
null
null
defmodule Anagram do @doc """ Returns all candidates that are anagrams of, but not equal to, 'base'. """ @spec match(String.t, [String.t]) :: [String.t] def match(base, candidates) do end end
20.5
72
0.658537
e8e4e48ae0b1cb7cd3327851065a65bea34a40f7
19,577
exs
Elixir
test/absinthe/phase/document/validation/arguments_of_correct_type_test.exs
Rabbet/absinthe
0764d7eb6ea9bdf9ccd957fa27bf1e6b26968f89
[ "MIT" ]
2
2021-04-22T23:45:04.000Z
2021-05-07T01:01:15.000Z
test/absinthe/phase/document/validation/arguments_of_correct_type_test.exs
Rabbet/absinthe
0764d7eb6ea9bdf9ccd957fa27bf1e6b26968f89
[ "MIT" ]
null
null
null
test/absinthe/phase/document/validation/arguments_of_correct_type_test.exs
Rabbet/absinthe
0764d7eb6ea9bdf9ccd957fa27bf1e6b26968f89
[ "MIT" ]
null
null
null
defmodule Absinthe.Phase.Document.Validation.ArgumentsOfCorrectTypeTest do @phase Absinthe.Phase.Document.Validation.ArgumentsOfCorrectType use Absinthe.ValidationPhaseCase, phase: @phase, async: true alias Absinthe.{Blueprint} defp bad_argument(name, _expected_type, inspected_value, line, verbose_er...
19.915565
90
0.439751
e8e4f75d5f46f49878824b979aebd099b9f22187
945
exs
Elixir
config/prod.secret.exs
bernardoamc/codenamex
6e3219569e4d9b8f4fe9273145b372ba182ab945
[ "MIT" ]
null
null
null
config/prod.secret.exs
bernardoamc/codenamex
6e3219569e4d9b8f4fe9273145b372ba182ab945
[ "MIT" ]
2
2020-07-20T14:23:21.000Z
2020-08-01T21:18:45.000Z
config/prod.secret.exs
bernardoamc/codenamex
6e3219569e4d9b8f4fe9273145b372ba182ab945
[ "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 secret_key_base = System.get_env("SECRET_KEY_BASE") || raise """ ...
31.5
62
0.732275
e8e4f911f74fa67c102bfe455e3027ea052722ff
1,238
exs
Elixir
test/resty/associations_test.exs
paulhenri-l/resty
b6aec738569355bab53fbc732bfd323c63348b85
[ "MIT" ]
3
2018-11-17T11:11:47.000Z
2019-09-13T16:13:43.000Z
test/resty/associations_test.exs
paulhenri-l/resty
b6aec738569355bab53fbc732bfd323c63348b85
[ "MIT" ]
38
2018-11-11T01:28:41.000Z
2019-04-01T21:28:02.000Z
test/resty/associations_test.exs
paulhenri-l/resty
b6aec738569355bab53fbc732bfd323c63348b85
[ "MIT" ]
1
2019-01-10T12:41:48.000Z
2019-01-10T12:41:48.000Z
defmodule Resty.AssociationsTest do use ExUnit.Case, async: true alias Resty.Associations alias Resty.Associations.BelongsTo alias Resty.Associations.HasOne alias Resty.Associations.NotLoaded test "By default the association is set to a not loaded association" do assert %NotLoaded{} = Post.build().auth...
27.511111
73
0.632472
e8e505cfe18341277ff242d84d21cbfbc54e5158
8,170
ex
Elixir
lib/epicenter_web/live/people_live.ex
geometricservices/epi-viewpoin
ecb5316ea0f3f7299d5ff63e2de588539005ac1c
[ "Apache-2.0" ]
5
2021-02-25T18:43:09.000Z
2021-02-27T06:00:35.000Z
lib/epicenter_web/live/people_live.ex
geometricservices/epi-viewpoint
ecb5316ea0f3f7299d5ff63e2de588539005ac1c
[ "Apache-2.0" ]
3
2021-12-13T17:52:47.000Z
2021-12-17T01:35:31.000Z
lib/epicenter_web/live/people_live.ex
geometricservices/epi-viewpoint
ecb5316ea0f3f7299d5ff63e2de588539005ac1c
[ "Apache-2.0" ]
1
2022-01-27T23:26:38.000Z
2022-01-27T23:26:38.000Z
defmodule EpicenterWeb.PeopleFilter do use EpicenterWeb, :live_component import EpicenterWeb.LiveHelpers, only: [noreply: 1] alias Epicenter.AuditLog def render(assigns) do ~M""" #status-filter = live_patch "All", to: Routes.people_path(@socket, EpicenterWeb.PeopleLive, filter: :all), class: "b...
38.537736
256
0.718115
e8e5245ad17bad19867e37f5ff99ad9f314b9fbf
3,068
ex
Elixir
lib/ex_oauth2/strategy/auth_code.ex
AlexJuca/ex_oauth2
3635418ee27897d529f00fa1f5334091a8f43c92
[ "MIT" ]
3
2020-05-16T06:09:56.000Z
2020-05-19T11:36:53.000Z
lib/ex_oauth2/strategy/auth_code.ex
AlexJuca/ex_oauth2
3635418ee27897d529f00fa1f5334091a8f43c92
[ "MIT" ]
null
null
null
lib/ex_oauth2/strategy/auth_code.ex
AlexJuca/ex_oauth2
3635418ee27897d529f00fa1f5334091a8f43c92
[ "MIT" ]
null
null
null
defmodule ExOAuth2.Strategy.AuthCode do @moduledoc """ The Authorization Code Strategy. http://tools.ietf.org/html/rfc6749#section-1.3.1 The authorization code is obtained by using an authorization server as an intermediary between the client and resource owner. Instead of requesting authorization direct...
34.863636
106
0.726858
e8e530757ece9ace8d51f7fa53547dec6568fc96
1,729
exs
Elixir
test/mixed_test.exs
smaximov/horde
52b8e7f996b0508f0ecf195bfa24f1dc1a246e30
[ "MIT" ]
3
2019-11-11T17:00:04.000Z
2019-11-20T22:01:06.000Z
test/mixed_test.exs
evadne/horde
5778e243682850131ac6bec94e75a301d44a102b
[ "MIT" ]
null
null
null
test/mixed_test.exs
evadne/horde
5778e243682850131ac6bec94e75a301d44a102b
[ "MIT" ]
null
null
null
defmodule MixedTest do use ExUnit.Case, async: false defmodule TestGenServer do use GenServer def child_spec(init_fun) do %{id: nil, start: {__MODULE__, :start_link, [init_fun]}, restart: :permanent} end def start_link(init_fun) do GenServer.start_link(__MODULE__, init_fun) end ...
24.013889
83
0.607287
e8e5480ded6c7ab110681a3c9bed04a0bc182561
934
ex
Elixir
lib/changelog_web/views/news_issue_view.ex
yanokwa/changelog.com
88093bada9ff294159246b8200b3121cf41666f7
[ "MIT" ]
null
null
null
lib/changelog_web/views/news_issue_view.ex
yanokwa/changelog.com
88093bada9ff294159246b8200b3121cf41666f7
[ "MIT" ]
null
null
null
lib/changelog_web/views/news_issue_view.ex
yanokwa/changelog.com
88093bada9ff294159246b8200b3121cf41666f7
[ "MIT" ]
null
null
null
defmodule ChangelogWeb.NewsIssueView do use ChangelogWeb, :public_view alias Changelog.{NewsItem, NewsAd} alias ChangelogWeb.{NewsItemView, SponsorView} def items_with_ads(items, []), do: items def items_with_ads(items, ads) do items |> Enum.chunk_every(3) |> Enum.with_index() |> Enum.map(fn...
25.243243
86
0.648822
e8e55a58b7b4cd1992a9307cc0652baafcf1df1b
2,071
exs
Elixir
test/halex/relation_map_test.exs
azukiapp/halex
9e3f197df05fa92e10948b14a2a864e5d7351727
[ "Apache-2.0" ]
1
2015-06-13T03:33:57.000Z
2015-06-13T03:33:57.000Z
test/halex/relation_map_test.exs
azukiapp/halex
9e3f197df05fa92e10948b14a2a864e5d7351727
[ "Apache-2.0" ]
null
null
null
test/halex/relation_map_test.exs
azukiapp/halex
9e3f197df05fa92e10948b14a2a864e5d7351727
[ "Apache-2.0" ]
null
null
null
defmodule Halex.RelationMap.Test do use Halex.Case alias Halex.RelationMap alias Halex.Link test "create a new relation" do relations = RelationMap.new assert is_record(relations, RelationMap) end test "add item to reference map" do link = Link.new "/self" relations = RelationMap.new r...
30.014493
86
0.66731
e8e55b517a915372da6f30dc7e30c405cca208e3
484
ex
Elixir
lib/badges/tests/topic.ex
TomGrozev/SAD-Badges
a94331433ea21a0d719216ac8473e706166d6004
[ "MIT" ]
null
null
null
lib/badges/tests/topic.ex
TomGrozev/SAD-Badges
a94331433ea21a0d719216ac8473e706166d6004
[ "MIT" ]
null
null
null
lib/badges/tests/topic.ex
TomGrozev/SAD-Badges
a94331433ea21a0d719216ac8473e706166d6004
[ "MIT" ]
null
null
null
defmodule Badges.Tests.Topic do use Ecto.Schema import Ecto.Changeset schema "topics" do field :name, :string belongs_to :test, Badges.Tests.Test has_many :parts, Badges.Tests.Part many_to_many :students, Badges.Students.Student, join_through: Badges.Students.TopicsCompleted timestamps() ...
21.043478
98
0.696281
e8e5624777af1c6023ca1f4063651d2101f0531d
8,312
ex
Elixir
clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_query_result.ex
kolorahl/elixir-google-api
46bec1e092eb84c6a79d06c72016cb1a13777fa6
[ "Apache-2.0" ]
null
null
null
clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_query_result.ex
kolorahl/elixir-google-api
46bec1e092eb84c6a79d06c72016cb1a13777fa6
[ "Apache-2.0" ]
null
null
null
clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_query_result.ex
kolorahl/elixir-google-api
46bec1e092eb84c6a79d06c72016cb1a13777fa6
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
50.072289
194
0.712103
e8e56c51653fb72d35a9b008564d841216d6f5a9
2,291
ex
Elixir
clients/drive/lib/google_api/drive/v3/model/permission_permission_details.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/drive/lib/google_api/drive/v3/model/permission_permission_details.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/drive/lib/google_api/drive/v3/model/permission_permission_details.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
36.365079
179
0.699694
e8e58b4559c01672cbcc5ccfaf98f92c431d22b2
1,446
ex
Elixir
lib/postgrex/type_info.ex
activeprospect/postgrex
d267e419de5db61ac8705210dec8527e4bf94a84
[ "Apache-2.0" ]
null
null
null
lib/postgrex/type_info.ex
activeprospect/postgrex
d267e419de5db61ac8705210dec8527e4bf94a84
[ "Apache-2.0" ]
1
2020-07-17T10:07:44.000Z
2020-07-17T10:07:44.000Z
lib/postgrex/type_info.ex
activeprospect/postgrex
d267e419de5db61ac8705210dec8527e4bf94a84
[ "Apache-2.0" ]
null
null
null
defmodule Postgrex.TypeInfo do @moduledoc """ The information about a type that is provided to the custom encoder/decoder functions. See http://www.postgresql.org/docs/9.4/static/catalog-pg-type.html for clarifications of the fields. * `oid` - The type's id; * `type` - The type name; * `send` - The...
37.076923
80
0.646611
e8e5975515f094b086c024c91af4292704f3a251
1,395
ex
Elixir
lib/crit_servers/institution.ex
brownt23/crit19
c45c7b3ae580c193168d83144da0eeb9bc91c8a9
[ "MIT" ]
6
2019-07-16T19:31:23.000Z
2021-06-05T19:01:05.000Z
lib/crit_servers/institution.ex
brownt23/crit19
c45c7b3ae580c193168d83144da0eeb9bc91c8a9
[ "MIT" ]
null
null
null
lib/crit_servers/institution.ex
brownt23/crit19
c45c7b3ae580c193168d83144da0eeb9bc91c8a9
[ "MIT" ]
3
2020-02-24T23:38:27.000Z
2020-08-01T23:50:17.000Z
defmodule Crit.Servers.Institution do import Crit.Servers.Institution.Server, only: [server: 1] alias Ecto.Timespan alias Pile.TimeHelper def species(institution), do: get(:species, institution) def procedure_frequencies(institution), do: get(:procedure_frequencies, institution) def timeslots(institution),...
30.326087
86
0.65448
e8e59fa10fad80f29714aca793d7c7af5262f999
327
ex
Elixir
apps/tai/lib/tai/commander/failed_order_transitions_count.ex
ccamateur/tai
41c4b3e09dafc77987fa3f6b300c15461d981e16
[ "MIT" ]
276
2018-01-16T06:36:06.000Z
2021-03-20T21:48:01.000Z
apps/tai/lib/tai/commander/failed_order_transitions_count.ex
ccamateur/tai
41c4b3e09dafc77987fa3f6b300c15461d981e16
[ "MIT" ]
73
2018-10-05T18:45:06.000Z
2021-02-08T05:46:33.000Z
apps/tai/lib/tai/commander/failed_order_transitions_count.ex
ccamateur/tai
41c4b3e09dafc77987fa3f6b300c15461d981e16
[ "MIT" ]
43
2018-06-09T09:54:51.000Z
2021-03-07T07:35:17.000Z
defmodule Tai.Commander.FailedOrderTransitionsCount do @type client_id :: Tai.Orders.Order.client_id() @type search_term :: Tai.Orders.search_term() @spec get(client_id, search_term) :: non_neg_integer def get(client_id, search_term) do Tai.Orders.search_failed_transitions_count(client_id, search_term) e...
32.7
70
0.785933
e8e5a957644f1ef61004352a1096103b59906484
3,241
exs
Elixir
apps/language_server/test/providers/completion_test.exs
ngscheurich/elixir-ls
4d671e5fbcab69df70e490d17cfb7affcf4d1383
[ "Apache-2.0" ]
null
null
null
apps/language_server/test/providers/completion_test.exs
ngscheurich/elixir-ls
4d671e5fbcab69df70e490d17cfb7affcf4d1383
[ "Apache-2.0" ]
null
null
null
apps/language_server/test/providers/completion_test.exs
ngscheurich/elixir-ls
4d671e5fbcab69df70e490d17cfb7affcf4d1383
[ "Apache-2.0" ]
null
null
null
defmodule ElixirLS.LanguageServer.Providers.CompletionTest do use ExUnit.Case require Logger alias ElixirLS.LanguageServer.Providers.Completion alias ElixirLS.Utils.TestUtils test "returns all Logger completions on normal require" do text = """ defmodule MyModule do require Logger def ...
25.320313
78
0.570811
e8e5afa52f02fa0d3dde8f30933799a35bda4586
649
ex
Elixir
apps/artemis_web/test/support/mock.ex
chrislaskey/atlas_platform
969aea95814f62d3471f93000ee5ad77edb9d1bf
[ "MIT" ]
10
2019-07-05T19:59:20.000Z
2021-05-23T07:36:11.000Z
apps/artemis_web/test/support/mock.ex
chrislaskey/atlas_platform
969aea95814f62d3471f93000ee5ad77edb9d1bf
[ "MIT" ]
7
2019-07-12T21:41:01.000Z
2020-08-17T21:29:22.000Z
apps/artemis_web/test/support/mock.ex
chrislaskey/atlas_platform
969aea95814f62d3471f93000ee5ad77edb9d1bf
[ "MIT" ]
4
2019-07-05T20:04:08.000Z
2021-05-13T16:28:33.000Z
defmodule ArtemisWeb.Mock do alias Artemis.Repo alias Artemis.User def system_user() do params = Application.fetch_env!(:artemis, :users)[:system_user] Repo.get_by(User, email: params.email) end def user_without_permissions(), do: Artemis.Factories.insert(:user) def user_with_permission(permissi...
24.961538
79
0.721109
e8e5c1a2a208ea1afedb54f71d1da0ff0334c931
320
ex
Elixir
fixtures/module_with_genserver.ex
stephanos/rewire
0dbbec223aa3fa667c9fe428f3f59c8c24a38b39
[ "Apache-2.0" ]
54
2020-10-06T09:11:06.000Z
2022-03-14T12:47:49.000Z
fixtures/module_with_genserver.ex
stephanos/rewire
0dbbec223aa3fa667c9fe428f3f59c8c24a38b39
[ "Apache-2.0" ]
6
2020-10-07T04:15:37.000Z
2021-11-15T18:46:10.000Z
fixtures/module_with_genserver.ex
stephanos/rewire
0dbbec223aa3fa667c9fe428f3f59c8c24a38b39
[ "Apache-2.0" ]
1
2020-10-05T19:36:19.000Z
2020-10-05T19:36:19.000Z
defmodule Rewire.ModuleWithGenServer do use GenServer def start_link(_) do GenServer.start_link(__MODULE__, []) end def init(_) do {:ok, []} end def hello(pid) do GenServer.call(pid, :hello) end def handle_call(:hello, _from, state) do {:reply, Rewire.Hello.hello(), state} end end
16
42
0.659375