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
4a13e6f6cdfa491f3c0ccb2de4019d102d8ac15c
8,393
exs
Elixir
test/conduit/broker_test.exs
youalreadydid/conduit
d86b8da06dafe8cc665739b5c5397389f85d821c
[ "MIT" ]
null
null
null
test/conduit/broker_test.exs
youalreadydid/conduit
d86b8da06dafe8cc665739b5c5397389f85d821c
[ "MIT" ]
null
null
null
test/conduit/broker_test.exs
youalreadydid/conduit
d86b8da06dafe8cc665739b5c5397389f85d821c
[ "MIT" ]
null
null
null
defmodule Conduit.BrokerTest do use ExUnit.Case use Conduit.Test, shared: true import ExUnit.CaptureLog defmodule PassThrough do @moduledoc false use Conduit.Plug.Builder def call(message, next, opts) do send(self(), {:pass_through, message, opts}) next.(message) end end defm...
30.299639
127
0.633385
4a13e8c7881c48a37547fdf5516e07eae997e8b2
287
ex
Elixir
lib/zstream/coder/stored.ex
derrimahendra/zstream
81a777af16c1657fc5b607d49dab8e520fa8c890
[ "MIT" ]
null
null
null
lib/zstream/coder/stored.ex
derrimahendra/zstream
81a777af16c1657fc5b607d49dab8e520fa8c890
[ "MIT" ]
null
null
null
lib/zstream/coder/stored.ex
derrimahendra/zstream
81a777af16c1657fc5b607d49dab8e520fa8c890
[ "MIT" ]
1
2021-12-14T22:54:05.000Z
2021-12-14T22:54:05.000Z
defmodule Zstream.Coder.Stored do @behaviour Zstream.Coder @moduledoc """ Implements the Stored(uncompressed) coder """ def init(_opts) do nil end def encode(chunk, nil) do {chunk, nil} end def close(nil) do [] end def compression_method, do: 0 end
13.666667
43
0.655052
4a13ebf478d38f29a0d9065731650322f696ae1d
4,845
exs
Elixir
test/absinthe/pipeline_test.exs
maartenvanvliet/absinthe
ebe820717200f53756e225b3dffbfefe924a94d3
[ "MIT" ]
null
null
null
test/absinthe/pipeline_test.exs
maartenvanvliet/absinthe
ebe820717200f53756e225b3dffbfefe924a94d3
[ "MIT" ]
2
2020-07-21T05:23:37.000Z
2020-08-26T04:56:12.000Z
test/absinthe/pipeline_test.exs
jlgeering/absinthe
a3dbc29640d613928398626ad75a8f03203a1720
[ "MIT" ]
null
null
null
defmodule Absinthe.PipelineTest do use Absinthe.Case, async: true alias Absinthe.{Blueprint, Pipeline, Phase} defmodule Schema do use Absinthe.Schema query do # Query type must exist end end describe ".run an operation" do @query """ { foo { bar } } """ test "can create ...
27.685714
133
0.595666
4a14024421e7067c74b3e3b2e531e5e8664995fa
315
exs
Elixir
test/math_test.exs
gyson/Numerix
b96a9946b2f9680ab0b24e89287f7b9bf4481d9e
[ "MIT" ]
null
null
null
test/math_test.exs
gyson/Numerix
b96a9946b2f9680ab0b24e89287f7b9bf4481d9e
[ "MIT" ]
null
null
null
test/math_test.exs
gyson/Numerix
b96a9946b2f9680ab0b24e89287f7b9bf4481d9e
[ "MIT" ]
null
null
null
defmodule Numerix.MathTest do use ExUnit.Case, async: true use ExCheck alias Numerix.Math property "nth root is the reverse of power" do for_all {x, n} in such_that({xx, nn} in {int(), int()} when xx > 0 && nn > 0) do x |> Math.nth_root(n) |> :math.pow(n) |> Float.round() == x end end end
26.25
84
0.622222
4a146d30b12af1693b3a249b4fc6b7034dee423d
3,081
exs
Elixir
test/lib/code_corps/github/sync/comment/changeset_test.exs
fikape/code-corps-api
c21674b0b2a19fa26945c94268db8894420ca181
[ "MIT" ]
275
2015-06-23T00:20:51.000Z
2021-08-19T16:17:37.000Z
test/lib/code_corps/github/sync/comment/changeset_test.exs
fikape/code-corps-api
c21674b0b2a19fa26945c94268db8894420ca181
[ "MIT" ]
1,304
2015-06-26T02:11:54.000Z
2019-12-12T21:08:00.000Z
test/lib/code_corps/github/sync/comment/changeset_test.exs
fikape/code-corps-api
c21674b0b2a19fa26945c94268db8894420ca181
[ "MIT" ]
140
2016-01-01T18:19:47.000Z
2020-11-22T06:24:47.000Z
defmodule CodeCorps.GitHub.Sync.Comment.ChangesetTest do @moduledoc false use CodeCorps.DbAccessCase alias CodeCorps.GitHub.Sync alias Ecto.Changeset describe "create_changeset/3" do test "assigns proper changes to the comment" do task = insert(:task) user = insert(:user) github_comme...
35.413793
96
0.700422
4a1477795672a095fa686d5b9f1a84aad2a814b2
85
exs
Elixir
test/io/table_test.exs
aforward/sslcerts
cd0d1310102e509b4f00d24040af939e4cefd395
[ "MIT" ]
9
2017-08-11T14:43:09.000Z
2021-03-27T21:07:41.000Z
test/io/table_test.exs
aforward/sslcerts
cd0d1310102e509b4f00d24040af939e4cefd395
[ "MIT" ]
null
null
null
test/io/table_test.exs
aforward/sslcerts
cd0d1310102e509b4f00d24040af939e4cefd395
[ "MIT" ]
1
2017-09-14T20:08:53.000Z
2017-09-14T20:08:53.000Z
defmodule Sslcerts.Io.TableTest do use ExUnit.Case doctest Sslcerts.Io.Table end
17
34
0.8
4a14a0892fcca94ffa239c2520f80c44a6c8f2ba
380
exs
Elixir
test/notes_test.exs
ayrat-playground/balalaika_bear
bcccdd4a0caf075e133ef4f162eb13e3d28b2d65
[ "MIT" ]
5
2018-04-30T09:48:17.000Z
2020-05-01T10:20:15.000Z
test/notes_test.exs
BalalaikaIndustries/balalaika_bear
bcccdd4a0caf075e133ef4f162eb13e3d28b2d65
[ "MIT" ]
7
2018-04-28T06:39:10.000Z
2018-04-28T07:31:59.000Z
test/notes_test.exs
ayrat-playground/balalaika_bear
bcccdd4a0caf075e133ef4f162eb13e3d28b2d65
[ "MIT" ]
2
2018-04-27T19:42:04.000Z
2020-05-01T10:20:02.000Z
defmodule BalalaikaBear.NotesTest do use ExUnit.Case use ExVCR.Mock, adapter: ExVCR.Adapter.Hackney test "gets notes" do use_cassette "notes_get" do params = %{ access_token: "e577afea74619aead172c8e58688c2e498c2c20bcc429b710554baeb90febe21b1262aa7d169b2e1e38b0" } {:ok, _...
23.75
97
0.710526
4a14dec8e61e68939c8675ee4acaa5025c07b388
556
ex
Elixir
web/router.ex
hvnsweeting/hphoenix
5e0a93f12af64e8be2ccff7f15feab7f9e20be48
[ "MIT" ]
null
null
null
web/router.ex
hvnsweeting/hphoenix
5e0a93f12af64e8be2ccff7f15feab7f9e20be48
[ "MIT" ]
null
null
null
web/router.ex
hvnsweeting/hphoenix
5e0a93f12af64e8be2ccff7f15feab7f9e20be48
[ "MIT" ]
null
null
null
defmodule Hphoenix.Router do use Hphoenix.Web, :router pipeline :browser do plug :accepts, ["html"] plug :fetch_session plug :fetch_flash plug :protect_from_forgery plug :put_secure_browser_headers end pipeline :api do plug :accepts, ["json"] end scope "/", Hphoenix do pipe_th...
19.857143
57
0.678058
4a14e30cd94749c029b02addad31c34737485c47
1,322
ex
Elixir
lib/buffered_server.ex
rhumbertgz/elixir_qlib
dcebca8dac8a2070ba098b209b6754daf1f49235
[ "Apache-2.0" ]
3
2016-10-05T21:34:47.000Z
2021-04-21T15:02:47.000Z
lib/buffered_server.ex
rhumbertgz/elixir_qlib
dcebca8dac8a2070ba098b209b6754daf1f49235
[ "Apache-2.0" ]
null
null
null
lib/buffered_server.ex
rhumbertgz/elixir_qlib
dcebca8dac8a2070ba098b209b6754daf1f49235
[ "Apache-2.0" ]
null
null
null
defmodule QLib.BufferedServer do @moduledoc false use GenServer def init(capacity) do {:ok, {[], 0, capacity}} end def handle_call(:pop, _from, {[], buffer, capacity}) do {:reply, nil, {[], buffer, capacity}} end def handle_call(:pop, _from, {[{_t, value} | rest], buffer, capacity}) do {:re...
24.481481
85
0.638427
4a14ec9a25490c53db212655fdc17f7c4b191f84
27,802
ex
Elixir
lib/elixir/lib/task.ex
tmbb/exdocs_makedown_demo
6a0039c54d2fa10d79c080efcef8d70d359678f8
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/task.ex
tmbb/exdocs_makedown_demo
6a0039c54d2fa10d79c080efcef8d70d359678f8
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/task.ex
tmbb/exdocs_makedown_demo
6a0039c54d2fa10d79c080efcef8d70d359678f8
[ "Apache-2.0" ]
null
null
null
defmodule Task do @moduledoc """ Conveniences for spawning and awaiting tasks. Tasks are processes meant to execute one particular action throughout their lifetime, often with little or no communication with other processes. The most common use case for tasks is to convert sequential code into concurrent c...
34.071078
103
0.671031
4a152c016120a811b8092d2703e85b636e25ff8b
8,899
ex
Elixir
lib/ex_unit/lib/ex_unit/runner.ex
liveforeverx/elixir
cf3cf0bd5443b59206e5733602244bc3543f0a53
[ "Apache-2.0" ]
null
null
null
lib/ex_unit/lib/ex_unit/runner.ex
liveforeverx/elixir
cf3cf0bd5443b59206e5733602244bc3543f0a53
[ "Apache-2.0" ]
null
null
null
lib/ex_unit/lib/ex_unit/runner.ex
liveforeverx/elixir
cf3cf0bd5443b59206e5733602244bc3543f0a53
[ "Apache-2.0" ]
null
null
null
defmodule ExUnit.Runner do @moduledoc false alias ExUnit.EventManager, as: EM @stop_timeout 30_000 def run(async, sync, opts, load_us) do {opts, config} = configure(opts) {run_us, _} = :timer.tc fn -> EM.suite_started(config.manager, opts) loop %{config | sync_cases: shuffle(con...
28.161392
98
0.608495
4a1556bd5542460c33fee380c309d7ec5b42a375
158
ex
Elixir
test/support/leaderboard.ex
wojtekmach/dataloader
dfbdf98217f909ec83b362d46fa10fadaf3e0f1b
[ "MIT" ]
null
null
null
test/support/leaderboard.ex
wojtekmach/dataloader
dfbdf98217f909ec83b362d46fa10fadaf3e0f1b
[ "MIT" ]
2
2020-01-30T17:11:10.000Z
2021-11-01T18:27:40.000Z
test/support/leaderboard.ex
wojtekmach/dataloader
dfbdf98217f909ec83b362d46fa10fadaf3e0f1b
[ "MIT" ]
null
null
null
defmodule Dataloader.Leaderboard do use Ecto.Schema schema "leaderboards" do field(:name, :string) has_many(:scores, Dataloader.Score) end end
17.555556
39
0.727848
4a15639ae3c62ee4d7b0638b8275a7d0eb1832a5
814
exs
Elixir
installer/templates/phx_umbrella/apps/app_name_web/config/runtime.exs
nickurban/phoenix
116a0d4660248a09886e80da5e36dc6e395723d5
[ "MIT" ]
7
2021-01-31T04:51:08.000Z
2022-01-09T06:59:28.000Z
installer/templates/phx_umbrella/apps/app_name_web/config/runtime.exs
nickurban/phoenix
116a0d4660248a09886e80da5e36dc6e395723d5
[ "MIT" ]
2
2022-02-19T12:43:20.000Z
2022-02-27T23:30:32.000Z
installer/templates/phx_umbrella/apps/app_name_web/config/runtime.exs
nickurban/phoenix
116a0d4660248a09886e80da5e36dc6e395723d5
[ "MIT" ]
2
2021-02-06T08:40:23.000Z
2021-03-20T16:35:47.000Z
secret_key_base = System.get_env("SECRET_KEY_BASE") || raise """ environment variable SECRET_KEY_BASE is missing. You can generate one by calling: mix phx.gen.secret """ config :<%= @web_app_name %>, <%= @endpoint_module %>, http: [ # Enable IPv6 and bind on all interfaces. # Set it to {0,...
31.307692
73
0.654791
4a156662c660cdf464cf422ac2f7e96a490868c9
4,613
ex
Elixir
lib/ueberauth/strategy/steam.ex
queer/ueberauth_steam
281bbc044b86c7a6c10c7f4efa02ab25bc5dce5b
[ "MIT" ]
null
null
null
lib/ueberauth/strategy/steam.ex
queer/ueberauth_steam
281bbc044b86c7a6c10c7f4efa02ab25bc5dce5b
[ "MIT" ]
null
null
null
lib/ueberauth/strategy/steam.ex
queer/ueberauth_steam
281bbc044b86c7a6c10c7f4efa02ab25bc5dce5b
[ "MIT" ]
1
2020-01-05T02:55:41.000Z
2020-01-05T02:55:41.000Z
defmodule Ueberauth.Strategy.Steam do @moduledoc ~S""" Steam OpenID for Überauth. """ use Ueberauth.Strategy alias Ueberauth.Auth.Info alias Ueberauth.Auth.Extra @doc ~S""" Handles initial request for Steam authentication. Redirects the given `conn` to the Steam login page. """ @spec handle_re...
28.128049
111
0.632127
4a1572c18ffe1d877dc4b0e44aa4899e5cec1ee9
432
ex
Elixir
deps/phoenix_ecto/lib/phoenix_ecto/plug.ex
JoakimEskils/elixir-absinthe
d81e24ec7c7b1164e6d152101dd50422f192d7e9
[ "MIT" ]
null
null
null
deps/phoenix_ecto/lib/phoenix_ecto/plug.ex
JoakimEskils/elixir-absinthe
d81e24ec7c7b1164e6d152101dd50422f192d7e9
[ "MIT" ]
null
null
null
deps/phoenix_ecto/lib/phoenix_ecto/plug.ex
JoakimEskils/elixir-absinthe
d81e24ec7c7b1164e6d152101dd50422f192d7e9
[ "MIT" ]
null
null
null
errors = [ {Ecto.CastError, 400}, {Ecto.Query.CastError, 400}, {Ecto.NoResultsError, 404}, {Ecto.InvalidChangesetError, 422}, ] excluded_exceptions = Application.get_env(:phoenix_ecto, :exclude_ecto_exceptions_from_plug, []) for {exception, status_code} <- errors do unless exception in excluded_exceptions d...
25.411765
96
0.731481
4a15936809ac95d464e311b7ed1e024eba6de595
73
ex
Elixir
web/views/page_view.ex
obahareth/twitter-relations-grapher
952df9569d7d794a5446ea4f14cf5e1cde08f5df
[ "MIT" ]
1
2017-06-07T22:53:52.000Z
2017-06-07T22:53:52.000Z
web/views/page_view.ex
obahareth/twitter-relations-grapher
952df9569d7d794a5446ea4f14cf5e1cde08f5df
[ "MIT" ]
null
null
null
web/views/page_view.ex
obahareth/twitter-relations-grapher
952df9569d7d794a5446ea4f14cf5e1cde08f5df
[ "MIT" ]
null
null
null
defmodule TwitterGrapher.PageView do use TwitterGrapher.Web, :view end
18.25
36
0.821918
4a15bdaac084358d9e8127e0f8ff29ab189875b8
12,297
ex
Elixir
lib/elixir/lib/protocol.ex
Nicd/elixir
e62ef92a4be1b562033d35b2d822cc9d6c661077
[ "Apache-2.0" ]
4
2016-04-05T05:51:36.000Z
2019-10-31T06:46:35.000Z
lib/elixir/lib/protocol.ex
Nicd/elixir
e62ef92a4be1b562033d35b2d822cc9d6c661077
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/protocol.ex
Nicd/elixir
e62ef92a4be1b562033d35b2d822cc9d6c661077
[ "Apache-2.0" ]
5
2015-02-01T06:01:19.000Z
2019-08-29T09:02:35.000Z
defmodule Protocol do @moduledoc false # We need to use :lists because Enum is not available yet require :lists, as: L @doc """ Handle `defprotocol`. It will define a function for each protocol plus two extra functions: * `__protocol__/1` - returns the protocol name when :name is given, ...
29.348449
101
0.608848
4a15ce38aca1a9abf9ed6e81f55e2816b9915e21
506
exs
Elixir
daniel/prog_elix/ch19/duper/mix.exs
jdashton/glowing-succotash
44580c2d4cb300e33156d42e358e8a055948a079
[ "MIT" ]
null
null
null
daniel/prog_elix/ch19/duper/mix.exs
jdashton/glowing-succotash
44580c2d4cb300e33156d42e358e8a055948a079
[ "MIT" ]
1
2020-02-26T14:55:23.000Z
2020-02-26T14:55:23.000Z
daniel/prog_elix/ch19/duper/mix.exs
jdashton/glowing-succotash
44580c2d4cb300e33156d42e358e8a055948a079
[ "MIT" ]
null
null
null
defmodule Duper.MixProject do use Mix.Project def project do [ app: :duper, 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_applic...
17.448276
59
0.567194
4a15e5c99d9877c54f57f49904ee49b671399c12
982
ex
Elixir
lib/chatroom.ex
genamerica/ChatLocal
0a7076a8f25219a0bc694780f3e436eadd357aea
[ "MIT" ]
11
2016-09-10T01:24:32.000Z
2021-03-20T22:54:55.000Z
lib/chatroom.ex
genamerica/ChatLocal
0a7076a8f25219a0bc694780f3e436eadd357aea
[ "MIT" ]
null
null
null
lib/chatroom.ex
genamerica/ChatLocal
0a7076a8f25219a0bc694780f3e436eadd357aea
[ "MIT" ]
2
2017-03-01T04:16:41.000Z
2018-01-02T10:14:52.000Z
defmodule Chatroom do use Application # See http://elixir-lang.org/docs/stable/elixir/Application.html # for more information on OTP Applications def start(_type, _args) do import Supervisor.Spec, warn: false children = [ # Start the endpoint when the application starts supervisor(Chatroom...
31.677419
71
0.712831
4a160839438a6cce2ba13a72c2cb57ff80b92fb8
533
ex
Elixir
web/router.ex
caelia/recommenjion
c48adb29d2a8bad3ced55f0bd43e5e761ce15080
[ "BSD-3-Clause" ]
null
null
null
web/router.ex
caelia/recommenjion
c48adb29d2a8bad3ced55f0bd43e5e761ce15080
[ "BSD-3-Clause" ]
null
null
null
web/router.ex
caelia/recommenjion
c48adb29d2a8bad3ced55f0bd43e5e761ce15080
[ "BSD-3-Clause" ]
null
null
null
defmodule Recommenjion.Router do use Recommenjion.Web, :router pipeline :browser do plug :accepts, ["html"] plug :fetch_session plug :fetch_flash plug :protect_from_forgery plug :put_secure_browser_headers end pipeline :api do plug :accepts, ["json"] end scope "/", Recommenjion do...
19.740741
57
0.684803
4a160bb4ee4a8a24cf237de2b35525695028c4af
4,545
ex
Elixir
farmbot_ext/lib/farmbot_ext/api/dirty_worker.ex
EarthEngineering/facetop_os
c82a7f1e8098d3a03dddbd2f2cb46cda7b88b6fb
[ "MIT" ]
null
null
null
farmbot_ext/lib/farmbot_ext/api/dirty_worker.ex
EarthEngineering/facetop_os
c82a7f1e8098d3a03dddbd2f2cb46cda7b88b6fb
[ "MIT" ]
null
null
null
farmbot_ext/lib/farmbot_ext/api/dirty_worker.ex
EarthEngineering/facetop_os
c82a7f1e8098d3a03dddbd2f2cb46cda7b88b6fb
[ "MIT" ]
null
null
null
defmodule FarmbotExt.API.DirtyWorker do @moduledoc "Handles uploading/downloading of data from the API." alias FarmbotCore.Asset.{Private, Repo} alias FarmbotExt.{API, API.DirtyWorker} import API.View, only: [render: 2] require Logger use GenServer @timeout 10000 # these resources can't be accessed b...
30.709459
101
0.615622
4a162c2c0af0738a6351337137db89a18ebba60a
2,150
ex
Elixir
lib/ex_change_rate/clients/exchangerates_api.ex
ding-an-sich/ex_change_rate
89858694dc98cef6d21089599120600a075c93db
[ "MIT" ]
null
null
null
lib/ex_change_rate/clients/exchangerates_api.ex
ding-an-sich/ex_change_rate
89858694dc98cef6d21089599120600a075c93db
[ "MIT" ]
null
null
null
lib/ex_change_rate/clients/exchangerates_api.ex
ding-an-sich/ex_change_rate
89858694dc98cef6d21089599120600a075c93db
[ "MIT" ]
null
null
null
defmodule ExChangeRate.Clients.ExchangeratesAPI do @moduledoc """ Client that fetches exchange rate information for a pair of currencies. Works in base EUR only. """ use Tesla, only: [:get] alias ExChangeRate.Cache require Logger @base_url "http://api.exchangeratesapi.io/v1/" @headers [ {"Acc...
25
95
0.617674
4a167291c5ef1c94cde7986731d7d29f902d66a5
353
ex
Elixir
lib/find_my_personal/utils.ex
theguuholi/find_my_personal
9a0c030b8f852812305ba7a44f0ab4794b9cb2c7
[ "MIT" ]
null
null
null
lib/find_my_personal/utils.ex
theguuholi/find_my_personal
9a0c030b8f852812305ba7a44f0ab4794b9cb2c7
[ "MIT" ]
9
2020-08-11T11:36:59.000Z
2020-09-04T13:05:21.000Z
lib/find_my_personal/utils.ex
theguuholi/find_my_personal
9a0c030b8f852812305ba7a44f0ab4794b9cb2c7
[ "MIT" ]
null
null
null
defmodule FindMyPersonal.Utils do def age(date) do today = Date.utc_today() age = today.year - date.year month = today.month - date.month case month < 0 || (month == 0 && today.day <= date.day) do true -> age - 1 false -> age end end def convert_br(date) do "#{date.day}/#{dat...
20.764706
62
0.589235
4a16734df44112a65ea76afa277fe3dfe3b4308a
17,553
exs
Elixir
test/plug/router_test.exs
outstand/plug
e75d542b3028b5c1f348ac9d128306c46a6b6e70
[ "Apache-2.0" ]
null
null
null
test/plug/router_test.exs
outstand/plug
e75d542b3028b5c1f348ac9d128306c46a6b6e70
[ "Apache-2.0" ]
null
null
null
test/plug/router_test.exs
outstand/plug
e75d542b3028b5c1f348ac9d128306c46a6b6e70
[ "Apache-2.0" ]
null
null
null
defmodule Plug.RouterTest do defmodule SamplePlug do import Plug.Conn def init(:hello), do: :world def init(options), do: options def call(conn, options) do send_resp(conn, 200, "#{inspect(options)}") end end defmodule Forward do use Plug.Router, init_mode: :runtime use Plug.E...
27.773734
98
0.620692
4a16782630c7d46694c55a46fd7c86608bf99196
603
ex
Elixir
lib/jungle_inflexor/parameterize.ex
themgt/jungle_inflexor
d3aa1e86b96f04c99bd2df4f5302528fe644b5ca
[ "MIT" ]
6
2018-04-16T11:38:57.000Z
2020-05-09T00:52:30.000Z
lib/jungle_inflexor/parameterize.ex
themgt/jungle_inflexor
d3aa1e86b96f04c99bd2df4f5302528fe644b5ca
[ "MIT" ]
null
null
null
lib/jungle_inflexor/parameterize.ex
themgt/jungle_inflexor
d3aa1e86b96f04c99bd2df4f5302528fe644b5ca
[ "MIT" ]
1
2021-01-29T13:05:08.000Z
2021-01-29T13:05:08.000Z
defmodule Jungle.Inflexor.Parameterize do @doc """ Replaces special characters in a string so that it may be used as part of a ‘pretty’ URL. ## Examples iex> Jungle.Inflexor.parameterize("jungle inflexor", "-") "jungle-inflexor" """ def parameterize(string, option\\"-") do string |> St...
26.217391
91
0.595357
4a1678b83ab84b23427c05786044636915b30f0b
711
ex
Elixir
web/gettext.ex
mogest/superlific
375d64e3fce594fa1b2322c1652f2f2e648bfe85
[ "MIT" ]
6
2016-10-13T02:29:54.000Z
2017-09-13T18:17:56.000Z
web/gettext.ex
mogest/superlific
375d64e3fce594fa1b2322c1652f2f2e648bfe85
[ "MIT" ]
null
null
null
web/gettext.ex
mogest/superlific
375d64e3fce594fa1b2322c1652f2f2e648bfe85
[ "MIT" ]
null
null
null
defmodule Superlific.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 Superlific.Gettext # Simple translation gettext "Here is t...
28.44
72
0.682138
4a1678cada821ad0178fad1fc6b7a7ff643f249d
9,210
exs
Elixir
apps/andi/test/integration/andi_web/live/extract_auth_step_form_test.exs
calebcarroll1/smartcitiesdata
b0f03496f6c592c82ba14aebf6c5996311cf3cd0
[ "Apache-2.0" ]
26
2019-09-20T23:54:45.000Z
2020-08-20T14:23:32.000Z
apps/andi/test/integration/andi_web/live/extract_auth_step_form_test.exs
calebcarroll1/smartcitiesdata
b0f03496f6c592c82ba14aebf6c5996311cf3cd0
[ "Apache-2.0" ]
757
2019-08-15T18:15:07.000Z
2020-09-18T20:55:31.000Z
apps/andi/test/integration/andi_web/live/extract_auth_step_form_test.exs
calebcarroll1/smartcitiesdata
b0f03496f6c592c82ba14aebf6c5996311cf3cd0
[ "Apache-2.0" ]
9
2019-11-12T16:43:46.000Z
2020-03-25T16:23:16.000Z
defmodule AndiWeb.ExtractAuthStepFormTest do use ExUnit.Case use Andi.DataCase use AndiWeb.Test.AuthConnCase.IntegrationCase use Placebo import Checkov @moduletag shared_data_connection: true import Phoenix.LiveViewTest import SmartCity.TestHelper, only: [eventually: 1] import FlokiHelpers, onl...
31.433447
122
0.591531
4a167a4cf2ae830df1360372ae1d43b98890a8b3
701
ex
Elixir
debian/preinst.ex
mingw-deb/libtiff
62149f1b78a3cfdf6b7e3d62018aef6ddde4d952
[ "libtiff" ]
null
null
null
debian/preinst.ex
mingw-deb/libtiff
62149f1b78a3cfdf6b7e3d62018aef6ddde4d952
[ "libtiff" ]
null
null
null
debian/preinst.ex
mingw-deb/libtiff
62149f1b78a3cfdf6b7e3d62018aef6ddde4d952
[ "libtiff" ]
null
null
null
#!/bin/sh # preinst script for mingw-w64-libtiff # # see: dh_installdeb(1) set -e # summary of how this script can be called: # * <new-preinst> `install' # * <new-preinst> `install' <old-version> # * <new-preinst> `upgrade' <old-version> # * <old-preinst> `abort-upgrade' <new-version> # fo...
19.472222
63
0.630528
4a167d35c8f4351e040d700ba42b90f7cf0130e3
975
ex
Elixir
lib/temple/svg.ex
zimt28/temple
07858739b06cd9f0fa6d76e185514b9a60d922b5
[ "MIT" ]
null
null
null
lib/temple/svg.ex
zimt28/temple
07858739b06cd9f0fa6d76e185514b9a60d922b5
[ "MIT" ]
null
null
null
lib/temple/svg.ex
zimt28/temple
07858739b06cd9f0fa6d76e185514b9a60d922b5
[ "MIT" ]
null
null
null
defmodule Temple.Svg do require Temple.Elements @moduledoc """ The `Temple.Svg` module defines macros for all SVG elements. Usage is the same as `Temple.Html`. """ @elements ~w[ animate animateMotion animateTransform circle clipPath color_profile defs desc discard ellipse feBlend feColorMatri...
34.821429
132
0.788718
4a167e9f6ff2153362fcdbf184083eebb2b650d2
505
exs
Elixir
example/mix.exs
MetisMachine/pilot
cb692ced9e20888cb4f528784639f94fc2a762f9
[ "MIT" ]
2
2017-10-05T21:04:21.000Z
2018-09-19T19:50:28.000Z
example/mix.exs
MetisMachine/pilot
cb692ced9e20888cb4f528784639f94fc2a762f9
[ "MIT" ]
4
2017-10-19T16:00:00.000Z
2017-10-26T13:44:42.000Z
example/mix.exs
MetisMachine/pilot
cb692ced9e20888cb4f528784639f94fc2a762f9
[ "MIT" ]
2
2017-10-11T18:06:21.000Z
2017-10-12T20:01:53.000Z
defmodule Example.Mixfile do use Mix.Project def project do [ app: :example, version: "0.1.0", elixir: "~> 1.5", start_permanent: Mix.env == :prod, deps: deps() ] end # Run "mix help compile.app" to learn about applications. def application do [ extra_applicat...
17.413793
59
0.564356
4a16ac9be20930bdf6a3ae092fef806d92e7137b
662
ex
Elixir
lib/groupher_server/cms/models/author.ex
coderplanets/coderplanets_server
3663e56340d6d050e974c91f7e499d8424fc25e9
[ "Apache-2.0" ]
240
2018-11-06T09:36:54.000Z
2022-02-20T07:12:36.000Z
lib/groupher_server/cms/models/author.ex
coderplanets/coderplanets_server
3663e56340d6d050e974c91f7e499d8424fc25e9
[ "Apache-2.0" ]
363
2018-07-11T03:38:14.000Z
2021-12-14T01:42:40.000Z
lib/groupher_server/cms/models/author.ex
coderplanets/coderplanets_server
3663e56340d6d050e974c91f7e499d8424fc25e9
[ "Apache-2.0" ]
22
2019-01-27T11:47:56.000Z
2021-02-28T13:17:52.000Z
defmodule GroupherServer.CMS.Model.Author do @moduledoc false alias __MODULE__ use Ecto.Schema use Accessible import Ecto.Changeset alias GroupherServer.Accounts alias Accounts.Model.User @type t :: %Author{} schema "cms_authors" do field(:role, :string) # field(:user_id, :id) # has_m...
19.470588
45
0.672205
4a16b8d3ccc14a81d868b7a7f0d3f7f4d6a1cd10
707
ex
Elixir
lib/livebook_web/live/session_helpers.ex
benjreinhart/livebook
0500ad5c6237167ce9769d8cc78fca360834f576
[ "Apache-2.0" ]
null
null
null
lib/livebook_web/live/session_helpers.ex
benjreinhart/livebook
0500ad5c6237167ce9769d8cc78fca360834f576
[ "Apache-2.0" ]
null
null
null
lib/livebook_web/live/session_helpers.ex
benjreinhart/livebook
0500ad5c6237167ce9769d8cc78fca360834f576
[ "Apache-2.0" ]
1
2021-07-07T06:18:36.000Z
2021-07-07T06:18:36.000Z
defmodule LivebookWeb.SessionHelpers do import Phoenix.LiveView alias LivebookWeb.Router.Helpers, as: Routes @doc """ Creates a new session, redirects on success, puts an error flash message on failure. Accepts the same options as `Livebook.SessionSupervisor.create_session/1`. """ @spec create_session...
32.136364
93
0.70297
4a16cded336dc54395aa9f4cbf3a2b3d7f1a66a8
3,175
ex
Elixir
clients/android_management/lib/google_api/android_management/v1/model/operation.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/android_management/lib/google_api/android_management/v1/model/operation.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/android_management/lib/google_api/android_management/v1/model/operation.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
53.813559
525
0.734488
4a16d28a79be1ba0a430d1a8c43928d93f44db0f
826
exs
Elixir
start.exs
robindaumann/aoc-2020
63e2dd4cd3062b15fc5be3ec8b3fe75716701f7a
[ "MIT" ]
1
2020-12-19T18:40:00.000Z
2020-12-19T18:40:00.000Z
start.exs
robindaumann/aoc-2020
63e2dd4cd3062b15fc5be3ec8b3fe75716701f7a
[ "MIT" ]
null
null
null
start.exs
robindaumann/aoc-2020
63e2dd4cd3062b15fc5be3ec8b3fe75716701f7a
[ "MIT" ]
null
null
null
#!/usr/bin/env elixir [day] = System.argv() lib_file = "lib/day_#{day}.ex" unless File.exists?(lib_file) do File.write!(lib_file, EEx.eval_file("lib/day.eex", day: day)) IO.puts("Created module file.") end test_file = "test/day_#{day}_test.exs" unless File.exists?(test_file) do File.write!("test/day_#{day}_tes...
26.645161
91
0.66707
4a16df9877f8db50e9b37237da0a19b3ecb17987
627
ex
Elixir
lib/libradis/metrics_collector.ex
cmaggard/Libradis
7cd5d2a115fd766586b63c96360b58cc8f32edef
[ "Apache-2.0" ]
null
null
null
lib/libradis/metrics_collector.ex
cmaggard/Libradis
7cd5d2a115fd766586b63c96360b58cc8f32edef
[ "Apache-2.0" ]
null
null
null
lib/libradis/metrics_collector.ex
cmaggard/Libradis
7cd5d2a115fd766586b63c96360b58cc8f32edef
[ "Apache-2.0" ]
null
null
null
defmodule Libradis.MetricsCollector do def metric_redis_calls do metric_functions |> exec |> Enum.unzip end def met_funs do metric_functions end # Private defp metric_functions do modules |> Enum.flat_map(&zip_mod_and_funs/1) end defp exec(mod_funs) do mod_funs |> Enum.map(fn {mod, f...
19.59375
66
0.666667
4a16f1a8abc16b940f4dd03efefa7453b057f5e7
2,307
ex
Elixir
clients/licensing/lib/google_api/licensing/v1/model/license_assignment.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
null
null
null
clients/licensing/lib/google_api/licensing/v1/model/license_assignment.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
null
null
null
clients/licensing/lib/google_api/licensing/v1/model/license_assignment.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
1
2020-11-10T16:58:27.000Z
2020-11-10T16:58:27.000Z
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
33.434783
89
0.692241
4a1732e62c9a6685718522b5f9ea67c7896ad458
3,309
ex
Elixir
clients/data_labeling/lib/google_api/data_labeling/v1beta1/model/google_longrunning_operation.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/data_labeling/lib/google_api/data_labeling/v1beta1/model/google_longrunning_operation.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/data_labeling/lib/google_api/data_labeling/v1beta1/model/google_longrunning_operation.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...
56.084746
543
0.73285
4a173fdd4378e0f8a3068574f9740542bbd0148a
243
ex
Elixir
apps/ins/lib/ins.ex
ODYLIGHT/ins_umbrella
40534551b18030b4621f882f33b0416ab60ba02a
[ "MIT" ]
null
null
null
apps/ins/lib/ins.ex
ODYLIGHT/ins_umbrella
40534551b18030b4621f882f33b0416ab60ba02a
[ "MIT" ]
null
null
null
apps/ins/lib/ins.ex
ODYLIGHT/ins_umbrella
40534551b18030b4621f882f33b0416ab60ba02a
[ "MIT" ]
null
null
null
defmodule Ins do @moduledoc """ Ins keeps the contexts that define your domain and business logic. Contexts are also responsible for managing your data, regardless if it comes from the database, an external API or others. """ end
24.3
66
0.744856
4a1775c502728eec7dc1bf5c41c9d2bf75f8276e
24
exs
Elixir
lib/elixir/test/elixir/fixtures/init_sample.exs
mk/elixir
2b2c66ecf7b1cc2167cae9cc3e88f950994223f1
[ "Apache-2.0" ]
4
2015-12-22T02:46:39.000Z
2016-04-26T06:11:09.000Z
lib/elixir/test/elixir/fixtures/init_sample.exs
mk/elixir
2b2c66ecf7b1cc2167cae9cc3e88f950994223f1
[ "Apache-2.0" ]
null
null
null
lib/elixir/test/elixir/fixtures/init_sample.exs
mk/elixir
2b2c66ecf7b1cc2167cae9cc3e88f950994223f1
[ "Apache-2.0" ]
1
2020-12-07T08:04:16.000Z
2020-12-07T08:04:16.000Z
IO.puts to_string(1 + 2)
24
24
0.708333
4a178909b1747184abffac0e9c6839e792c8636e
5,412
ex
Elixir
lib/ueberauth/strategy/basecamp.ex
SouthernMade/ueberauth_basecamp
331cd43f467464e79839d497ba401f9e5165c2db
[ "MIT" ]
null
null
null
lib/ueberauth/strategy/basecamp.ex
SouthernMade/ueberauth_basecamp
331cd43f467464e79839d497ba401f9e5165c2db
[ "MIT" ]
null
null
null
lib/ueberauth/strategy/basecamp.ex
SouthernMade/ueberauth_basecamp
331cd43f467464e79839d497ba401f9e5165c2db
[ "MIT" ]
null
null
null
defmodule Ueberauth.Strategy.Basecamp do @moduledoc """ Provides an Ueberauth strategy for authenticating with Basecamp. ### Setup Create an application in Basecamp for you to use. Register a new application at: [37 signals](https://integrate.37signals.com/) and get the `client_id` and `client_secret`. Incl...
33.825
124
0.669808
4a1798107bb1f07c115a4058e42c3c5cc8a446ae
81
ex
Elixir
lib/single_product_web/views/user_settings_view.ex
manojsamanta/stripe-single-product
d0af1cede55ce6ac71100b9f4b5473919c16c884
[ "MIT" ]
null
null
null
lib/single_product_web/views/user_settings_view.ex
manojsamanta/stripe-single-product
d0af1cede55ce6ac71100b9f4b5473919c16c884
[ "MIT" ]
null
null
null
lib/single_product_web/views/user_settings_view.ex
manojsamanta/stripe-single-product
d0af1cede55ce6ac71100b9f4b5473919c16c884
[ "MIT" ]
null
null
null
defmodule SingleProductWeb.UserSettingsView do use SingleProductWeb, :view end
20.25
46
0.851852
4a17d40b69a49a79536a009f88290bdcd5879060
1,091
ex
Elixir
lib/phoenix_ember/helpers/assets.ex
arathunku/phoenix_ember
720355d33ce706ce9a26e080513d8598f41d0385
[ "MIT" ]
null
null
null
lib/phoenix_ember/helpers/assets.ex
arathunku/phoenix_ember
720355d33ce706ce9a26e080513d8598f41d0385
[ "MIT" ]
null
null
null
lib/phoenix_ember/helpers/assets.ex
arathunku/phoenix_ember
720355d33ce706ce9a26e080513d8598f41d0385
[ "MIT" ]
null
null
null
defmodule PhoenixEmber.Helpers.Assets do import PhoenixEmber.Path def ember_script_tags(name, opts \\ []) do { :safe, script_tags(name) } end def ember_stylesheet_tags(name) do { :safe, stylesheet_tags(name) } end defp script_tags(name, opts \\ []) do opts = default_opts(name, opts) ass...
26.609756
83
0.590284
4a17d7eb40de5400904b882623cde187529357b9
428
ex
Elixir
lib/codes/codes_i52.ex
badubizzle/icd_code
4c625733f92b7b1d616e272abc3009bb8b916c0c
[ "Apache-2.0" ]
null
null
null
lib/codes/codes_i52.ex
badubizzle/icd_code
4c625733f92b7b1d616e272abc3009bb8b916c0c
[ "Apache-2.0" ]
null
null
null
lib/codes/codes_i52.ex
badubizzle/icd_code
4c625733f92b7b1d616e272abc3009bb8b916c0c
[ "Apache-2.0" ]
null
null
null
defmodule IcdCode.ICDCode.Codes_I52 do alias IcdCode.ICDCode def _I52 do %ICDCode{full_code: "I52", category_code: "I52", short_code: "", full_name: "Other heart disorders in diseases classified elsewhere", short_name: "Other heart disorders in diseases classified elsewher...
26.75
81
0.675234
4a17fcdd12bfcbd99a69a20c02eac532d73474bf
932
exs
Elixir
mix.exs
danielkv7/broadway_kafka
4388117537ee81738ff4d6a89ed6a2c602d47d8c
[ "Apache-2.0" ]
112
2020-01-20T22:04:30.000Z
2022-03-25T10:41:47.000Z
mix.exs
danielkv7/broadway_kafka
4388117537ee81738ff4d6a89ed6a2c602d47d8c
[ "Apache-2.0" ]
71
2020-01-22T12:43:29.000Z
2022-03-30T22:30:29.000Z
mix.exs
danielkv7/broadway_kafka
4388117537ee81738ff4d6a89ed6a2c602d47d8c
[ "Apache-2.0" ]
39
2020-02-21T15:10:42.000Z
2022-02-11T17:34:09.000Z
defmodule BroadwayKafka.MixProject do use Mix.Project @version "0.3.0" @description "A Kafka connector for Broadway" def project do [ app: :broadway_kafka, version: @version, elixir: "~> 1.7", name: "BroadwayKafka", description: @description, start_permanent: Mix.env() ...
18.64
73
0.556867
4a1816e441dcdb8f539284c07d05ddccd77847a7
2,707
ex
Elixir
lib/data_morph/csv.ex
robmckinnon/chas
a8d32c1e5c4636d631b87da5a536625e84e44b68
[ "MIT" ]
17
2016-08-02T13:17:34.000Z
2021-06-28T03:40:36.000Z
lib/data_morph/csv.ex
robmckinnon/chas
a8d32c1e5c4636d631b87da5a536625e84e44b68
[ "MIT" ]
null
null
null
lib/data_morph/csv.ex
robmckinnon/chas
a8d32c1e5c4636d631b87da5a536625e84e44b68
[ "MIT" ]
1
2017-03-24T13:51:01.000Z
2017-03-24T13:51:01.000Z
defmodule DataMorph.Csv do @moduledoc ~S""" Functions for converting enumerable, or string of CSV to stream of rows. """ @doc ~S""" Parse `csv` string, stream, or enumerable to stream of rows. ## Examples Convert blank string to empty headers and empty stream. iex> {headers, rows} = DataMorph.Csv...
26.539216
81
0.577392
4a181f8188c201a3f1ce5d29a948009c9dece98a
2,075
ex
Elixir
lib/membrane/core/playbackable.ex
treble37/membrane-core
3f7c7200a80eef370092ef252b5f75dc9eb16cbd
[ "Apache-2.0" ]
null
null
null
lib/membrane/core/playbackable.ex
treble37/membrane-core
3f7c7200a80eef370092ef252b5f75dc9eb16cbd
[ "Apache-2.0" ]
null
null
null
lib/membrane/core/playbackable.ex
treble37/membrane-core
3f7c7200a80eef370092ef252b5f75dc9eb16cbd
[ "Apache-2.0" ]
null
null
null
defprotocol Membrane.Core.Playbackable do @moduledoc false # Protocol that has to be adopted by modules that use `Membrane.Core.Playback`. # # Modules that adopt `Membrane.Core.PlaybackHandler` behaviour have to store their # playback state and controlling pid. `Membrane.Core.Playbackable` is used as # an a...
34.583333
89
0.702169
4a18648229d3e26356ee268d3693bb7a51c14567
18,401
ex
Elixir
lib/postgrex.ex
mainframe2/postgrex
7c3312f69b6b787e7d1831eedff32be36c3ee953
[ "Apache-2.0" ]
null
null
null
lib/postgrex.ex
mainframe2/postgrex
7c3312f69b6b787e7d1831eedff32be36c3ee953
[ "Apache-2.0" ]
null
null
null
lib/postgrex.ex
mainframe2/postgrex
7c3312f69b6b787e7d1831eedff32be36c3ee953
[ "Apache-2.0" ]
null
null
null
defmodule Postgrex do @moduledoc """ PostgreSQL driver for Elixir. This module handles the connection to Postgres, providing support for queries, transactions, connection backoff, logging, pooling and more. Note that the notifications API (pub/sub) supported by Postgres is handled by `Postgrex.Notificat...
38.985169
108
0.670344
4a186d150babb18fd5839004bdcfac9122f26c3b
2,927
ex
Elixir
clients/recommender/lib/google_api/recommender/v1beta1/model/google_cloud_recommender_v1beta1_impact.ex
MMore/elixir-google-api
0574ec1439d9bbfe22d63965be1681b0f45a94c9
[ "Apache-2.0" ]
null
null
null
clients/recommender/lib/google_api/recommender/v1beta1/model/google_cloud_recommender_v1beta1_impact.ex
MMore/elixir-google-api
0574ec1439d9bbfe22d63965be1681b0f45a94c9
[ "Apache-2.0" ]
null
null
null
clients/recommender/lib/google_api/recommender/v1beta1/model/google_cloud_recommender_v1beta1_impact.ex
MMore/elixir-google-api
0574ec1439d9bbfe22d63965be1681b0f45a94c9
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
40.09589
193
0.756748
4a18992bb9dd16929f72246f56e325281a27744d
2,299
ex
Elixir
test/support/filter/fakes.ex
paulswartz/concentrate
a69aa51c16071f2669932005be810da198f622c8
[ "MIT" ]
null
null
null
test/support/filter/fakes.ex
paulswartz/concentrate
a69aa51c16071f2669932005be810da198f622c8
[ "MIT" ]
28
2020-12-01T15:09:07.000Z
2022-03-31T10:32:28.000Z
test/support/filter/fakes.ex
paulswartz/concentrate
a69aa51c16071f2669932005be810da198f622c8
[ "MIT" ]
null
null
null
defmodule Concentrate.Filter.FakeTrips do @moduledoc "Fake implementation of Filter.GTFS.Trips" def route_id("trip"), do: "route" def route_id(_), do: nil def direction_id("trip"), do: 1 def direction_id(_), do: nil end defmodule Concentrate.Filter.FakeCancelledTrips do @moduledoc "Fake implementation of ...
25.831461
81
0.680731
4a189e7e457f003f4646ca0382ff85c466cc62b0
2,400
ex
Elixir
clients/compute/lib/google_api/compute/v1/model/network_endpoint_groups_list_network_endpoints_warning.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/compute/lib/google_api/compute/v1/model/network_endpoint_groups_list_network_endpoints_warning.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/compute/lib/google_api/compute/v1/model/network_endpoint_groups_list_network_endpoints_warning.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.820896
268
0.715833
4a18c59ae80a9eb344c385f0af6fff2053218917
1,059
exs
Elixir
test/fulfillment_test.exs
christopherlai/shipstation
d784f43830df3d1650d9ccd68aca28cd2d995214
[ "MIT" ]
4
2017-03-28T19:21:48.000Z
2022-02-11T05:12:07.000Z
test/fulfillment_test.exs
christopherlai/shipstation
d784f43830df3d1650d9ccd68aca28cd2d995214
[ "MIT" ]
1
2018-10-05T14:55:55.000Z
2018-10-05T14:55:55.000Z
test/fulfillment_test.exs
christopherlai/shipstation
d784f43830df3d1650d9ccd68aca28cd2d995214
[ "MIT" ]
3
2018-10-05T14:04:02.000Z
2021-11-11T10:22:46.000Z
defmodule Shipstation.FulfillmentTest do use ExUnit.Case, async: false use ExVCR.Mock, adapter: ExVCR.Adapter.Hackney doctest Shipstation.Fulfillment setup_all do HTTPoison.start end test "List without parameters" do use_cassette "fulfillments_list" do {:ok, %{body: body}} = resp = Shipstati...
30.257143
101
0.665722
4a18d1f749b9a4d17e5f4cfa00da8deb11cf414e
154
exs
Elixir
config/prod.exs
trusty/elixir_google_spreadsheets
b7f74d75e61027dc0b12aa5260168563d0777c92
[ "MIT" ]
null
null
null
config/prod.exs
trusty/elixir_google_spreadsheets
b7f74d75e61027dc0b12aa5260168563d0777c92
[ "MIT" ]
null
null
null
config/prod.exs
trusty/elixir_google_spreadsheets
b7f74d75e61027dc0b12aa5260168563d0777c92
[ "MIT" ]
null
null
null
import Config config :elixir_google_spreadsheets, :client, request_workers: 100, max_demand: 100, max_interval: :timer.minutes(1), interval: 100
19.25
44
0.75974
4a18e789d3a36c5fc47cb038706edd523bd993d3
2,013
exs
Elixir
postgres/sample/test/sample/accounts_test.exs
penqen/phenix_db_samples
4ae7211abb3cf66a120a78727641b3963a9aafe3
[ "MIT" ]
null
null
null
postgres/sample/test/sample/accounts_test.exs
penqen/phenix_db_samples
4ae7211abb3cf66a120a78727641b3963a9aafe3
[ "MIT" ]
null
null
null
postgres/sample/test/sample/accounts_test.exs
penqen/phenix_db_samples
4ae7211abb3cf66a120a78727641b3963a9aafe3
[ "MIT" ]
null
null
null
defmodule Sample.AccountsTest do use Sample.DataCase alias Sample.Accounts describe "users" do alias Sample.Accounts.User @valid_attrs %{email: "some email", name: "some name"} @update_attrs %{email: "some updated email", name: "some updated name"} @invalid_attrs %{email: nil, name: nil} d...
30.044776
85
0.649776
4a18f8b773c58f293ecc6b61956e82fc56915d5d
1,159
exs
Elixir
clients/firebase_rules/mix.exs
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/firebase_rules/mix.exs
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/firebase_rules/mix.exs
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
1
2018-07-28T20:50:50.000Z
2018-07-28T20:50:50.000Z
defmodule GoogleApi.FirebaseRules.V1.Mixfile do use Mix.Project def project do [app: :google_api_firebase_rules, version: "0.0.1", elixir: "~> 1.4", build_embedded: Mix.env == :prod, start_permanent: Mix.env == :prod, description: description(), package: package(), deps: deps...
24.659574
108
0.600518
4a1915fd83e289906e995efd9bcc324688df83eb
1,687
exs
Elixir
config/config.exs
lubien/hello_elixir
67305875a817376216b793711426aae3ff0d6bd2
[ "Apache-2.0" ]
14
2021-05-02T14:11:03.000Z
2021-10-19T14:03:39.000Z
config/config.exs
fly-apps/hello_elixir_sqlite
f4484624a25c47c3034b8249aeb8aeecd321bf17
[ "Apache-2.0" ]
2
2021-11-03T17:27:28.000Z
2021-12-03T20:34:12.000Z
config/config.exs
fly-apps/hello_elixir_sqlite
f4484624a25c47c3034b8249aeb8aeecd321bf17
[ "Apache-2.0" ]
6
2021-11-08T13:52:39.000Z
2022-01-13T19:24:49.000Z
# This file is responsible for configuring your application # and its dependencies with the aid of the Config module. # # This configuration file is loaded before any dependency and # is restricted to this project. # General application configuration import Config config :hello_elixir, ecto_repos: [HelloElixir.Repo...
32.442308
89
0.742739
4a19174bed7c0054ce31c6b265ebbd1135906c94
26,014
ex
Elixir
clients/compute/lib/google_api/compute/v1/api/region_disks.ex
linjunpop/elixir-google-api
444cb2b2fb02726894535461a474beddd8b86db4
[ "Apache-2.0" ]
null
null
null
clients/compute/lib/google_api/compute/v1/api/region_disks.ex
linjunpop/elixir-google-api
444cb2b2fb02726894535461a474beddd8b86db4
[ "Apache-2.0" ]
null
null
null
clients/compute/lib/google_api/compute/v1/api/region_disks.ex
linjunpop/elixir-google-api
444cb2b2fb02726894535461a474beddd8b86db4
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the &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...
48.715356
1,213
0.681287
4a195f7f0c7cd5f8ca7ee55f5a5dcfe82a293d43
33,857
ex
Elixir
lib/elixir/lib/module.ex
diogovk/elixir
7b8213affaad38b50afaa3dfc3a43717f35ba4e7
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/module.ex
diogovk/elixir
7b8213affaad38b50afaa3dfc3a43717f35ba4e7
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/module.ex
diogovk/elixir
7b8213affaad38b50afaa3dfc3a43717f35ba4e7
[ "Apache-2.0" ]
null
null
null
defmodule Module do @moduledoc ~S''' Provides functions to deal with modules during compilation time. It allows a developer to dynamically add, delete and register attributes, attach documentation and so forth. After a module is compiled, using many of the functions in this module will raise errors, since...
29.161929
164
0.645893
4a19636573a9e9fe622b7bc1e787cd9a3967d56f
1,919
ex
Elixir
lib/blue_heron/assigned_numbers/company_identifiers.ex
kevinansfield/blue_heron
8339e6747e135030f7d1e67801391f03f2558e0d
[ "Apache-2.0" ]
45
2020-10-17T13:34:15.000Z
2022-03-08T09:40:43.000Z
lib/blue_heron/assigned_numbers/company_identifiers.ex
kevinansfield/blue_heron
8339e6747e135030f7d1e67801391f03f2558e0d
[ "Apache-2.0" ]
20
2020-10-15T15:05:54.000Z
2022-03-27T15:54:36.000Z
lib/blue_heron/assigned_numbers/company_identifiers.ex
kevinansfield/blue_heron
8339e6747e135030f7d1e67801391f03f2558e0d
[ "Apache-2.0" ]
11
2020-10-23T17:18:57.000Z
2022-03-15T20:01:49.000Z
# MIT License # Copyright (c) 2019 Very # 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 limitation the rights # to use, copy, modify, merge, publish, ...
34.267857
92
0.737884
4a19803b4dfd594a4f125bf95de6afc27eb32bd4
3,243
exs
Elixir
apps/ewallet/priv/repo/report_sample.exs
jimpeebles/ewallet
ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405
[ "Apache-2.0" ]
null
null
null
apps/ewallet/priv/repo/report_sample.exs
jimpeebles/ewallet
ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405
[ "Apache-2.0" ]
null
null
null
apps/ewallet/priv/repo/report_sample.exs
jimpeebles/ewallet
ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 OmiseGO Pte Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writi...
35.637363
99
0.724638
4a199cb43853ede941aea0b155bee015e42593ef
28,285
exs
Elixir
lib/elixir/test/elixir/kernel/errors_test.exs
michalmuskala/elixir
097de7d308ac40747b4524e266558a3d9498a60b
[ "Apache-2.0" ]
null
null
null
lib/elixir/test/elixir/kernel/errors_test.exs
michalmuskala/elixir
097de7d308ac40747b4524e266558a3d9498a60b
[ "Apache-2.0" ]
null
null
null
lib/elixir/test/elixir/kernel/errors_test.exs
michalmuskala/elixir
097de7d308ac40747b4524e266558a3d9498a60b
[ "Apache-2.0" ]
null
null
null
Code.require_file("../test_helper.exs", __DIR__) defmodule Kernel.ErrorsTest do use ExUnit.Case, async: true defmacro hello do quote location: :keep do def hello, do: :world end end test "no optional arguments in fn" do assert_eval_raise CompileError, "nofile:1: anonym...
34.705521
144
0.567863
4a19b0e7cfec33fbeb44b8473c8baa6e67da4e51
4,107
exs
Elixir
benchmark/apq.exs
fuelen/apq
3cf1d5bdf58d690711ed33d506b92096939da9ae
[ "MIT" ]
41
2018-09-15T13:02:28.000Z
2022-01-11T23:17:11.000Z
benchmark/apq.exs
fuelen/apq
3cf1d5bdf58d690711ed33d506b92096939da9ae
[ "MIT" ]
41
2018-09-15T13:17:56.000Z
2022-03-24T04:03:50.000Z
benchmark/apq.exs
fuelen/apq
3cf1d5bdf58d690711ed33d506b92096939da9ae
[ "MIT" ]
4
2018-09-25T09:59:30.000Z
2021-11-15T10:08:37.000Z
Application.put_env(:absinthe, :log, false) Supervisor.start_link([{Cachex, stats: true, compressed: true, name: :apq_cache_raw}], strategy: :one_for_one ) Supervisor.start_link([{Cachex, stats: true, compressed: true, name: :apq_cache_blueprint}], strategy: :one_for_one ) defmodule Apq.Bench.Cachex.Raw do @be...
18.013158
92
0.588264
4a19c924e2cf0144de4daa346591fc110b7d87d2
996
ex
Elixir
lib/bolt/schema/infraction.ex
CyberFlameGO/bolt
225e6276983bec646e7f13519df066e8e1e770ed
[ "ISC" ]
31
2018-12-06T23:12:33.000Z
2022-03-29T18:34:25.000Z
lib/bolt/schema/infraction.ex
CyberFlameGO/bolt
225e6276983bec646e7f13519df066e8e1e770ed
[ "ISC" ]
18
2021-06-14T19:03:26.000Z
2022-03-15T17:46:22.000Z
lib/bolt/schema/infraction.ex
CyberFlameGO/bolt
225e6276983bec646e7f13519df066e8e1e770ed
[ "ISC" ]
4
2018-11-07T18:52:28.000Z
2022-03-16T00:14:38.000Z
defmodule Bolt.Schema.Infraction do @moduledoc "An infraction applying to a given user." import Ecto.Changeset use Ecto.Schema schema "infractions" do field(:type, :string) field(:guild_id, :id) field(:user_id, :id) field(:actor_id, :id) field(:reason, :string, default: nil) field(:d...
22.636364
65
0.620482
4a19e21cfa533ff179dec37d2d5178a64cae7cb1
9,555
ex
Elixir
lib/ini_parser.ex
ConnorRigby/megasquirt-dashboard
d840bcc5563314302ff3c99bbeeeace56519feea
[ "Apache-2.0" ]
2
2019-07-15T01:41:08.000Z
2020-03-19T17:56:22.000Z
lib/ini_parser.ex
ConnorRigby/megasquirt-dashboard
d840bcc5563314302ff3c99bbeeeace56519feea
[ "Apache-2.0" ]
null
null
null
lib/ini_parser.ex
ConnorRigby/megasquirt-dashboard
d840bcc5563314302ff3c99bbeeeace56519feea
[ "Apache-2.0" ]
3
2020-06-26T12:32:25.000Z
2021-04-16T08:59:21.000Z
defmodule IniParser do @moduledoc """ Parses an Ini into structured data. """ require Logger @typedoc "Record under a header" @type record() :: {String.t(), [String.t() | float() | {:eval, String.t()}]} @type header() :: String.t() @type t() :: [{header(), [record()]}] @doc "Parse a file on the di...
28.353116
92
0.621559
4a19ed054aae27428d53eae5ef1c66e434f81e7e
603
ex
Elixir
lib/appsignal/diagnose/host.ex
cblavier/appsignal-elixir
6e191a9e50acab3537a6331cd08c269b9e0fd7f4
[ "MIT" ]
null
null
null
lib/appsignal/diagnose/host.ex
cblavier/appsignal-elixir
6e191a9e50acab3537a6331cd08c269b9e0fd7f4
[ "MIT" ]
null
null
null
lib/appsignal/diagnose/host.ex
cblavier/appsignal-elixir
6e191a9e50acab3537a6331cd08c269b9e0fd7f4
[ "MIT" ]
null
null
null
defmodule Appsignal.Diagnose.Host do @moduledoc false require Appsignal.Utils @system Appsignal.Utils.compile_env(:appsignal, :appsignal_system, Appsignal.System) @nif Appsignal.Utils.compile_env(:appsignal, :appsignal_nif, Appsignal.Nif) def info do {_, os} = :os.type() %{ architecture: to_...
26.217391
86
0.691542
4a1a0a51391b2c5a8c5932199f1ee9a597aa77b1
587
ex
Elixir
bubblit/lib/bubblit_web/plugs/auth.ex
pula39/BubbLit
12f5bc010ab67fc13797f786d1cd0f10e23bf327
[ "MIT" ]
null
null
null
bubblit/lib/bubblit_web/plugs/auth.ex
pula39/BubbLit
12f5bc010ab67fc13797f786d1cd0f10e23bf327
[ "MIT" ]
84
2020-04-03T08:06:06.000Z
2022-02-13T12:45:15.000Z
bubblit/lib/bubblit_web/plugs/auth.ex
pula39/BubbLit
12f5bc010ab67fc13797f786d1cd0f10e23bf327
[ "MIT" ]
1
2020-09-25T12:59:02.000Z
2020-09-25T12:59:02.000Z
defmodule BubblitWeb.Plugs.Auth do import Plug.Conn import Phoenix.Controller alias Bubblit.Accounts def init(opts), do: opts def call(conn, _opts) do if user_id = Plug.Conn.get_session(conn, :current_user_id) do current_user = Accounts.get_user(user_id) if current_user do conn ...
20.241379
65
0.608177
4a1a70b62d574c8d5e9ca5e1eb505de377a6c6b5
6,785
ex
Elixir
deps/comeonin/lib/comeonin/bcrypt.ex
hallebadkapp/rumbl-ms
ae2ef9975658115f8c4d5c49c28d8bde00a74b83
[ "MIT" ]
null
null
null
deps/comeonin/lib/comeonin/bcrypt.ex
hallebadkapp/rumbl-ms
ae2ef9975658115f8c4d5c49c28d8bde00a74b83
[ "MIT" ]
null
null
null
deps/comeonin/lib/comeonin/bcrypt.ex
hallebadkapp/rumbl-ms
ae2ef9975658115f8c4d5c49c28d8bde00a74b83
[ "MIT" ]
null
null
null
defmodule Comeonin.Bcrypt do @moduledoc """ Module to handle bcrypt authentication. To generate a password hash, use the `hashpwsalt` function: Comeonin.Bcrypt.hashpwsalt("hard to guess") To check the password against a password hash, use the `checkpw` function: Comeonin.Bcrypt.checkpw("hard to ...
34.267677
88
0.714812
4a1ab6d7771649f5497807f6dee72a041b799064
1,687
ex
Elixir
lib/sanbase_web/graphql/schema/queries/vote_queries.ex
rmoorman/sanbase2
226784ab43a24219e7332c49156b198d09a6dd85
[ "MIT" ]
1
2022-01-30T19:51:39.000Z
2022-01-30T19:51:39.000Z
lib/sanbase_web/graphql/schema/queries/vote_queries.ex
rmoorman/sanbase2
226784ab43a24219e7332c49156b198d09a6dd85
[ "MIT" ]
null
null
null
lib/sanbase_web/graphql/schema/queries/vote_queries.ex
rmoorman/sanbase2
226784ab43a24219e7332c49156b198d09a6dd85
[ "MIT" ]
null
null
null
defmodule SanbaseWeb.Graphql.Schema.VoteQueries do @moduledoc ~s""" Queries and mutations for working with Insights """ use Absinthe.Schema.Notation import SanbaseWeb.Graphql.Cache, only: [cache_resolve: 2] alias SanbaseWeb.Graphql.Resolvers.VoteResolver alias SanbaseWeb.Graphql.Middlewares.JWTAuth o...
27.209677
80
0.671014
4a1ae9c05bda95b29d3720ef2a06542915ae9cd3
22,515
ex
Elixir
lib/elixir/lib/kernel/parallel_compiler.ex
voltone/elixir
e208e1066e484c46726e4d931c18e54aba036f6e
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/kernel/parallel_compiler.ex
voltone/elixir
e208e1066e484c46726e4d931c18e54aba036f6e
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/kernel/parallel_compiler.ex
voltone/elixir
e208e1066e484c46726e4d931c18e54aba036f6e
[ "Apache-2.0" ]
null
null
null
defmodule Kernel.ParallelCompiler do @moduledoc """ A module responsible for compiling and requiring files in parallel. """ @doc """ Starts a task for parallel compilation. If you have a file that needs to compile other modules in parallel, the spawned processes need to be aware of the compiler environm...
33.908133
98
0.644948
4a1b04c3374c7ce22a23e5a9d0158c4895862117
6,363
ex
Elixir
lib/assent/strategy.ex
team-alembic/assent
ac8c092860bad2a5bebb35b44115d0d107178bb0
[ "MIT" ]
160
2019-09-25T01:07:16.000Z
2022-03-08T00:45:16.000Z
lib/assent/strategy.ex
team-alembic/assent
ac8c092860bad2a5bebb35b44115d0d107178bb0
[ "MIT" ]
47
2019-09-25T00:38:44.000Z
2022-03-21T17:35:43.000Z
lib/assent/strategy.ex
team-alembic/assent
ac8c092860bad2a5bebb35b44115d0d107178bb0
[ "MIT" ]
30
2019-10-04T15:58:06.000Z
2021-12-10T16:43:52.000Z
defmodule Assent.Strategy do @moduledoc """ Used for creating strategies. ## Usage Set up `my_strategy.ex` the following way: defmodule MyStrategy do @behaviour Assent.Strategy alias Assent.Strategy, as: Helpers def authorize_url(config) do # Generate redirect URL ...
31.974874
183
0.622191
4a1b095dd1651f6195165f598b0e693248e8e000
2,935
exs
Elixir
dummy/test/dummy_web/controllers/user_controller_test.exs
drnikon/turbo_html
12e69abb6dc66d09c6a4332f037c75f126ad222b
[ "MIT" ]
4
2019-01-23T14:10:31.000Z
2019-05-14T15:41:11.000Z
dummy/test/dummy_web/controllers/user_controller_test.exs
drnikon/turbo_html
12e69abb6dc66d09c6a4332f037c75f126ad222b
[ "MIT" ]
35
2019-02-19T02:11:33.000Z
2021-09-01T07:09:42.000Z
dummy/test/dummy_web/controllers/user_controller_test.exs
drnikon/turbo_html
12e69abb6dc66d09c6a4332f037c75f126ad222b
[ "MIT" ]
4
2019-11-03T16:11:39.000Z
2022-03-05T14:34:23.000Z
defmodule DummyWeb.UserControllerTest do use DummyWeb.ConnCase alias Dummy.Accounts @create_attrs %{ age: "some age", email: "some email", gender: true, mobile: "some mobile", username: "some username" } @update_attrs %{ age: "some updated age", email: "some updated email", g...
28.77451
83
0.642589
4a1b2a470266e95e3875fd328f7533d219610292
324
exs
Elixir
priv/repo/migrations/20170816195126_create_task.exs
RFmind/scrumapi
3bc2caf48e4e9b5b5448fe0724815609fc4bcee2
[ "MIT" ]
null
null
null
priv/repo/migrations/20170816195126_create_task.exs
RFmind/scrumapi
3bc2caf48e4e9b5b5448fe0724815609fc4bcee2
[ "MIT" ]
null
null
null
priv/repo/migrations/20170816195126_create_task.exs
RFmind/scrumapi
3bc2caf48e4e9b5b5448fe0724815609fc4bcee2
[ "MIT" ]
null
null
null
defmodule Scrumapi.Repo.Migrations.CreateTask do use Ecto.Migration def change do create table(:tasks) do add :project_id, references(:projects) add :sprint_id, references(:sprints) add :name, :string add :status, :string add :priority, :integer timestamps() end end ...
19.058824
48
0.657407
4a1b2dd51c17305bc394c824c217015e5658028a
16,111
exs
Elixir
apps/discovery_api/test/unit/discovery_api_web/controllers/multiple_data_controller_test.exs
AWHServiceAccount/smartcitiesdata
6957afac12809288640b6ba6b576c3016e6033d7
[ "Apache-2.0" ]
1
2020-03-18T21:14:39.000Z
2020-03-18T21:14:39.000Z
apps/discovery_api/test/unit/discovery_api_web/controllers/multiple_data_controller_test.exs
AWHServiceAccount/smartcitiesdata
6957afac12809288640b6ba6b576c3016e6033d7
[ "Apache-2.0" ]
null
null
null
apps/discovery_api/test/unit/discovery_api_web/controllers/multiple_data_controller_test.exs
AWHServiceAccount/smartcitiesdata
6957afac12809288640b6ba6b576c3016e6033d7
[ "Apache-2.0" ]
null
null
null
defmodule DiscoveryApiWeb.MultipleDataControllerTest do use DiscoveryApiWeb.ConnCase use Placebo alias DiscoveryApi.Data.Model alias DiscoveryApi.Services.PrestoService alias DiscoveryApiWeb.Utilities.QueryAccessUtils alias DiscoveryApiWeb.Utilities.ModelAccessUtils setup do public_one_dataset = ...
35.023913
135
0.601142
4a1b5d982c6bedb8a8301d1278263051a710b759
1,637
ex
Elixir
clients/machine_learning/lib/google_api/machine_learning/v1/model/google_iam_v1__test_iam_permissions_response.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/machine_learning/lib/google_api/machine_learning/v1/model/google_iam_v1__test_iam_permissions_response.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/machine_learning/lib/google_api/machine_learning/v1/model/google_iam_v1__test_iam_permissions_response.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...
31.480769
143
0.74832
4a1b8c20fc53c9fcbc9465e703082349cb14759e
489
ex
Elixir
lib/console/device_stats/device_stats.ex
Oliv4945/console
fd7b85c8ff3b0702c8a524eb888104612946934c
[ "Apache-2.0" ]
null
null
null
lib/console/device_stats/device_stats.ex
Oliv4945/console
fd7b85c8ff3b0702c8a524eb888104612946934c
[ "Apache-2.0" ]
null
null
null
lib/console/device_stats/device_stats.ex
Oliv4945/console
fd7b85c8ff3b0702c8a524eb888104612946934c
[ "Apache-2.0" ]
null
null
null
defmodule Console.DeviceStats do import Ecto.Query, warn: false alias Console.Repo alias Console.DeviceStats.DeviceStat alias Console.DeviceStats.DeviceStatsView def create_stat(attrs \\ %{}) do %DeviceStat{} |> DeviceStat.changeset(attrs) |> Repo.insert() end def create_stat!(attrs \\ %{})...
20.375
43
0.691207
4a1ba8e5eb9997e4727faa710006275924ebf95e
4,338
exs
Elixir
test/cldr_html_currency_test.exs
HGData/cldr_html
82254b96b1499a14089ea98deff03e0c24047869
[ "Apache-2.0" ]
null
null
null
test/cldr_html_currency_test.exs
HGData/cldr_html
82254b96b1499a14089ea98deff03e0c24047869
[ "Apache-2.0" ]
null
null
null
test/cldr_html_currency_test.exs
HGData/cldr_html
82254b96b1499a14089ea98deff03e0c24047869
[ "Apache-2.0" ]
null
null
null
defmodule Cldr.HTML.Currency.Test do use ExUnit.Case doctest Cldr.HTML.Currency import Phoenix.HTML, only: [safe_to_string: 1] describe "currency_select/3" do test "with selected currency" do string = safe_to_string( Cldr.HTML.Currency.select( :my_form, :cur...
39.081081
97
0.499078
4a1bac94d69232c4218a8a507d26048aa5921593
4,411
ex
Elixir
clients/service_user/lib/google_api/service_user/v1/model/status.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/service_user/lib/google_api/service_user/v1/model/status.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/service_user/lib/google_api/service_user/v1/model/status.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...
84.826923
2,549
0.763319
4a1bbf025fcc7865254004d1d37faf6bd0bfc54a
1,579
ex
Elixir
lib/nostrum/shard/event.ex
skwerlman/nostrum
4a6642df9fbfd9a9247e565ab3f4d8d1e6f6ed4f
[ "MIT" ]
null
null
null
lib/nostrum/shard/event.ex
skwerlman/nostrum
4a6642df9fbfd9a9247e565ab3f4d8d1e6f6ed4f
[ "MIT" ]
null
null
null
lib/nostrum/shard/event.ex
skwerlman/nostrum
4a6642df9fbfd9a9247e565ab3f4d8d1e6f6ed4f
[ "MIT" ]
null
null
null
defmodule Nostrum.Shard.Event do @moduledoc false alias Nostrum.Shard.Payload alias Nostrum.Shard.Stage.Producer alias Nostrum.Util require Logger def handle(:dispatch, payload, state) do payload = Util.safe_atom_map(payload) if Application.get_env(:nostrum, :log_dispatch_events), do: Logger.deb...
23.924242
87
0.698543
4a1c1b6a4f570b50f4b1b8e80f076edbef5f4a0f
1,211
ex
Elixir
tithonus_farm_firmware/lib/tithonus_farm_firmware/application.ex
JeancarloBarrios/tithonus_farm
345d5fb50e2fe598a61470569dc1cc4e6c4de202
[ "MIT" ]
null
null
null
tithonus_farm_firmware/lib/tithonus_farm_firmware/application.ex
JeancarloBarrios/tithonus_farm
345d5fb50e2fe598a61470569dc1cc4e6c4de202
[ "MIT" ]
null
null
null
tithonus_farm_firmware/lib/tithonus_farm_firmware/application.ex
JeancarloBarrios/tithonus_farm
345d5fb50e2fe598a61470569dc1cc4e6c4de202
[ "MIT" ]
null
null
null
defmodule TithonusFarmFirmware.Application do # See https://hexdocs.pm/elixir/Application.html # for more information on OTP Applications @moduledoc false use Application def start(_type, _args) do # See https://hexdocs.pm/elixir/Supervisor.html # for other strategies and supported options opts ...
27.522727
81
0.695293
4a1c3d3f446bf057bf57b10f246b790794722a3a
1,996
ex
Elixir
test/support/factory.ex
mugimaru/ex_diet
9602c07af27255decbb32fd7ae0c12b3ffe662a3
[ "Apache-2.0" ]
2
2020-06-25T11:51:46.000Z
2020-09-30T14:00:40.000Z
test/support/factory.ex
mugimaru/ex_diet
9602c07af27255decbb32fd7ae0c12b3ffe662a3
[ "Apache-2.0" ]
null
null
null
test/support/factory.ex
mugimaru/ex_diet
9602c07af27255decbb32fd7ae0c12b3ffe662a3
[ "Apache-2.0" ]
1
2020-01-29T08:43:07.000Z
2020-01-29T08:43:07.000Z
defmodule ExDiet.Factory do @moduledoc false use ExMachina.Ecto, repo: ExDiet.Repo def ingredient_factory do %ExDiet.Food.Ingredient{ name: sequence("ingredient"), protein: Enum.random(1..100) * 0.31, fat: Enum.random(1..100) * 0.31, carbonhydrate: Enum.random(1..100) * 0.31, e...
24.95
88
0.650802
4a1c5369f3e1bf5a4371d3b7d37e0752730396ca
6,348
exs
Elixir
test/integration/interaction_test.exs
fimassuda/web_driver_client
09d373c9a8a923c5e2860f107f84b16565e338f7
[ "MIT" ]
8
2019-11-24T18:33:12.000Z
2020-12-09T10:20:09.000Z
test/integration/interaction_test.exs
fimassuda/web_driver_client
09d373c9a8a923c5e2860f107f84b16565e338f7
[ "MIT" ]
67
2019-12-20T16:33:30.000Z
2021-09-14T03:50:10.000Z
test/integration/interaction_test.exs
fimassuda/web_driver_client
09d373c9a8a923c5e2860f107f84b16565e338f7
[ "MIT" ]
10
2020-06-19T16:15:03.000Z
2021-09-13T17:56:25.000Z
defmodule WebDriverClient.Integration.InteractionTest do use ExUnit.Case, async: false alias WebDriverClient.Config alias WebDriverClient.IntegrationTesting.Scenarios alias WebDriverClient.IntegrationTesting.Scenarios.Scenario alias WebDriverClient.IntegrationTesting.TestGenerator alias WebDriverClient.Int...
31.899497
98
0.681159
4a1c7c89f254c309a7eda14af9aa42eb92dc26c1
58,579
ex
Elixir
clients/compute/lib/google_api/compute/v1/api/node_groups.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-10-01T09:20:41.000Z
2021-10-01T09:20:41.000Z
clients/compute/lib/google_api/compute/v1/api/node_groups.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
null
null
null
clients/compute/lib/google_api/compute/v1/api/node_groups.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...
53.399271
1,174
0.631779
4a1c8834122b8f4eb632f17b2b2432295c036b15
1,011
exs
Elixir
test/rockelivery/users/get_test.exs
LuizFerK/Rockelivery
4742d73027bcaa97c2fc7969c8d032edf73a28fd
[ "MIT" ]
null
null
null
test/rockelivery/users/get_test.exs
LuizFerK/Rockelivery
4742d73027bcaa97c2fc7969c8d032edf73a28fd
[ "MIT" ]
null
null
null
test/rockelivery/users/get_test.exs
LuizFerK/Rockelivery
4742d73027bcaa97c2fc7969c8d032edf73a28fd
[ "MIT" ]
null
null
null
defmodule Rockelivery.Users.GetTest do use Rockelivery.DataCase, async: true import Rockelivery.Factory alias Rockelivery.{Error, User} alias Rockelivery.Users.Get describe "by_id/1" do test "when the user with the given id exists, returns an user" do id = "675d8596-9950-4059-a1cd-ed1a2ec3d18d" ...
25.923077
79
0.571711
4a1cc045a1a784e76dee9d0c019dfe9d746f5261
18,727
ex
Elixir
lib/vintage_net_wifi/wpa_supplicant.ex
pojiro/vintage_net_wifi
1033585be6c4a8a65e6085e99b9f470711ceec1c
[ "Apache-2.0" ]
20
2019-12-03T18:26:25.000Z
2022-02-08T09:27:23.000Z
lib/vintage_net_wifi/wpa_supplicant.ex
pojiro/vintage_net_wifi
1033585be6c4a8a65e6085e99b9f470711ceec1c
[ "Apache-2.0" ]
29
2020-01-21T02:21:47.000Z
2022-02-16T13:02:24.000Z
lib/vintage_net_wifi/wpa_supplicant.ex
pojiro/vintage_net_wifi
1033585be6c4a8a65e6085e99b9f470711ceec1c
[ "Apache-2.0" ]
12
2020-02-16T16:48:03.000Z
2022-03-24T12:10:52.000Z
defmodule VintageNetWiFi.WPASupplicant do use GenServer alias VintageNet.Interface.EAPStatus alias VintageNetWiFi.{BSSIDRequester, WPASupplicantDecoder, WPASupplicantLL} require Logger @moduledoc """ Control a wpa_supplicant instance for an interface. """ @doc """ Start a GenServer to manage commun...
31.004967
98
0.661985
4a1ce5a91c34a88e213b8907bdafc44a2238fa60
81
ex
Elixir
lib/item.ex
chrisduesing/theatre
0e816a7bb8fedf9f2b4a1a0ace581f556fa81d3a
[ "MIT" ]
null
null
null
lib/item.ex
chrisduesing/theatre
0e816a7bb8fedf9f2b4a1a0ace581f556fa81d3a
[ "MIT" ]
null
null
null
lib/item.ex
chrisduesing/theatre
0e816a7bb8fedf9f2b4a1a0ace581f556fa81d3a
[ "MIT" ]
null
null
null
defrecord Item, name: nil, purpose: nil, width: 0, height: 0, depth: 0, weight: 0
81
81
0.691358
4a1d0386986cdbf300b8f48850c73118ad8c3ffd
1,730
exs
Elixir
mix.exs
sean-lin/elixir-cbson
616e2dcb8116cd3fdf207ebc37753c6e8dc28832
[ "MIT" ]
13
2015-11-06T09:13:19.000Z
2021-07-06T00:50:20.000Z
mix.exs
sean-lin/elixir-cbson
616e2dcb8116cd3fdf207ebc37753c6e8dc28832
[ "MIT" ]
1
2020-02-14T14:18:49.000Z
2020-02-14T14:18:49.000Z
mix.exs
sean-lin/elixir-cbson
616e2dcb8116cd3fdf207ebc37753c6e8dc28832
[ "MIT" ]
4
2018-11-06T08:17:13.000Z
2020-10-18T21:16:50.000Z
defmodule Mix.Tasks.Compile.Nif do def run(_) do cp = Mix.Project.compile_path() priv_path = Path.join([cp, "..", "priv"]) File.mkdir_p(priv_path) File.mkdir_p("priv") if Mix.shell().cmd("PRIV_PATH=#{priv_path} make nif") != 0 do raise Mix.Error, message: "could not run `make nif`." end...
22.179487
88
0.569364
4a1d039e8d90e7fa92b925367efced1c0ec3861e
1,457
exs
Elixir
mix.exs
LostKobrakai/minio
56aac71f49e4d950ccc53d586bc085681bba2dbf
[ "Apache-2.0" ]
3
2020-04-14T22:19:31.000Z
2022-03-09T22:05:58.000Z
mix.exs
LostKobrakai/minio
56aac71f49e4d950ccc53d586bc085681bba2dbf
[ "Apache-2.0" ]
1
2021-09-06T07:00:15.000Z
2021-09-12T16:53:08.000Z
mix.exs
LostKobrakai/minio
56aac71f49e4d950ccc53d586bc085681bba2dbf
[ "Apache-2.0" ]
1
2021-09-03T15:43:15.000Z
2021-09-03T15:43:15.000Z
defmodule MinioServer.MixProject do use Mix.Project def project do [ app: :minio_server, version: "0.3.2", elixir: "~> 1.10", start_permanent: Mix.env() == :prod, deps: deps(), name: "Minio Server", source_url: "https://github.com/LostKobrakai/minio_server", desc...
26.490909
98
0.559369
4a1d1f642b5c57aa1ff78593d37d0cc372fd4495
233
exs
Elixir
intro/pmap.exs
unozerocode/curso_elixir
0443ce1985698111e65653c6ebda2561d3f09bd5
[ "MIT" ]
null
null
null
intro/pmap.exs
unozerocode/curso_elixir
0443ce1985698111e65653c6ebda2561d3f09bd5
[ "MIT" ]
null
null
null
intro/pmap.exs
unozerocode/curso_elixir
0443ce1985698111e65653c6ebda2561d3f09bd5
[ "MIT" ]
1
2020-03-12T15:03:44.000Z
2020-03-12T15:03:44.000Z
defmodule Parallel do def pmap(collection, func) do collection |> Enum.map(&(Task.async(fn -> func.(&1) end))) |> Enum.map(&Task.await/1) end end result = Parallel.pmap 1..10_000_000, &(&1 * &1) IO.inspect(result)
21.181818
51
0.630901
4a1d294e10b9ba5bac034fbdd5ea8863cd3c34f8
2,984
exs
Elixir
apps/omg_watcher_rpc/test/omg_watcher_rpc/release_tasks/set_tracer_test.exs
omisego/elixir-omg
2c68973d8f29033d137f63a6e060f12e2a7dcd59
[ "Apache-2.0" ]
177
2018-08-24T03:51:02.000Z
2020-05-30T13:29:25.000Z
apps/omg_watcher_rpc/test/omg_watcher_rpc/release_tasks/set_tracer_test.exs
omisego/elixir-omg
2c68973d8f29033d137f63a6e060f12e2a7dcd59
[ "Apache-2.0" ]
1,042
2018-08-25T00:52:39.000Z
2020-06-01T05:15:17.000Z
apps/omg_watcher_rpc/test/omg_watcher_rpc/release_tasks/set_tracer_test.exs
omisego/elixir-omg
2c68973d8f29033d137f63a6e060f12e2a7dcd59
[ "Apache-2.0" ]
47
2018-08-24T12:06:33.000Z
2020-04-28T11:49:25.000Z
# Copyright 2019-2020 OMG Network 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...
39.263158
110
0.667895
4a1d47cdfadc40a328fea40c135ca4031198692d
2,348
exs
Elixir
config/dev.exs
levijcl/mao
aae70589605ada84ca571a51f5ee4377091e0eb3
[ "MIT" ]
null
null
null
config/dev.exs
levijcl/mao
aae70589605ada84ca571a51f5ee4377091e0eb3
[ "MIT" ]
null
null
null
config/dev.exs
levijcl/mao
aae70589605ada84ca571a51f5ee4377091e0eb3
[ "MIT" ]
null
null
null
import Config # Configure your database config :mao, MAO.Repo, username: "postgres", password: "postgres", hostname: "localhost", database: "mao_dev", show_sensitive_data_on_connection_error: true, pool_size: 10 # For development, we disable any cache and enable # debugging and code reloading. # # The wat...
31.306667
86
0.706985
4a1d66ee87cdd1112e85003238157513dac734ba
576
exs
Elixir
exercise1/mix.exs
aspiringastro/programming-elixir
ec2167268c06bbb72b2bda26caa469333daccb63
[ "MIT" ]
null
null
null
exercise1/mix.exs
aspiringastro/programming-elixir
ec2167268c06bbb72b2bda26caa469333daccb63
[ "MIT" ]
null
null
null
exercise1/mix.exs
aspiringastro/programming-elixir
ec2167268c06bbb72b2bda26caa469333daccb63
[ "MIT" ]
null
null
null
defmodule Exercise1.MixProject do use Mix.Project def project do [ app: :exercise1, version: "0.1.0", elixir: "~> 1.7", start_permanent: Mix.env() == :prod, deps: deps() ] end # Run "mix help compile.app" to learn about applications. def application do [ extra...
19.862069
88
0.578125
4a1d86ad682ad3faf28820757ff2c8897e8f568c
1,764
exs
Elixir
mix.exs
mnishiguchi/dypa01
e995c9b0284cf4276518fca4b3664d09e0f5d556
[ "MIT" ]
1
2021-08-29T01:51:37.000Z
2021-08-29T01:51:37.000Z
mix.exs
mnishiguchi/dypa01
e995c9b0284cf4276518fca4b3664d09e0f5d556
[ "MIT" ]
null
null
null
mix.exs
mnishiguchi/dypa01
e995c9b0284cf4276518fca4b3664d09e0f5d556
[ "MIT" ]
null
null
null
defmodule DYPA01.MixProject do use Mix.Project @version "0.1.3" @source_url "https://github.com/mnishiguchi/dypa01" def project do [ app: :dypa01, version: @version, description: "Use DYP-A01 ultrasonic distance sensor in Elixir", elixir: "~> 1.11", elixirc_paths: elixirc_pat...
22.909091
93
0.54932
4a1da2043e49b5d0bc7f3e625fdf584547ea8598
1,425
exs
Elixir
mix.exs
bluecodecom/mixpanel_api_ex
f8c6cd8dcbac957c77e0f41f0c65f6d7b127b638
[ "MIT" ]
null
null
null
mix.exs
bluecodecom/mixpanel_api_ex
f8c6cd8dcbac957c77e0f41f0c65f6d7b127b638
[ "MIT" ]
3
2019-08-22T13:04:04.000Z
2021-02-24T10:20:56.000Z
mix.exs
bluecodecom/mixpanel_api_ex
f8c6cd8dcbac957c77e0f41f0c65f6d7b127b638
[ "MIT" ]
null
null
null
defmodule Mixpanel.Mixfile do use Mix.Project @version "2.0.0" def project do [ app: :mixpanel_api_ex, version: @version, elixir: "~> 1.5", build_embedded: Mix.env() == :prod, start_permanent: Mix.env() == :prod, deps: deps(), # Hex description: description()...
22.619048
72
0.513684
4a1dcf964d8a354011a0a63ed64b6ad0bd876e4c
285
exs
Elixir
priv/repo/migrations/20170730202937_create_question.exs
Nimor111/TheElixir
ef6e4cc5a59ce064b85f1f50acac309b606f7ab0
[ "MIT" ]
1
2019-04-27T16:14:50.000Z
2019-04-27T16:14:50.000Z
priv/repo/migrations/20170730202937_create_question.exs
Nimor111/TheElixir
ef6e4cc5a59ce064b85f1f50acac309b606f7ab0
[ "MIT" ]
2
2019-03-21T20:26:14.000Z
2019-03-21T20:26:20.000Z
priv/repo/migrations/20170730202937_create_question.exs
Nimor111/TheElixir
ef6e4cc5a59ce064b85f1f50acac309b606f7ab0
[ "MIT" ]
null
null
null
defmodule TheElixir.Repo.Migrations.CreateQuestion do use Ecto.Migration def change do create table(:questions) do add :description, :string add :choices, :map add :answer, :integer add :task_id, references(:tasks) timestamps() end end end
20.357143
53
0.666667
4a1dfb7dfa7f45d1f04faf3a10bc319b2d803c3e
73
exs
Elixir
test/test_helper.exs
trutvo/gatehouse
027d4dd35703d84e15b9b2297347350b9a8f5a6b
[ "Apache-2.0" ]
1
2019-07-21T03:48:31.000Z
2019-07-21T03:48:31.000Z
test/test_helper.exs
trutvo/gatehouse
027d4dd35703d84e15b9b2297347350b9a8f5a6b
[ "Apache-2.0" ]
1
2021-03-07T17:54:41.000Z
2021-03-07T17:54:41.000Z
test/test_helper.exs
trutvo/gatehouse
027d4dd35703d84e15b9b2297347350b9a8f5a6b
[ "Apache-2.0" ]
2
2019-06-14T06:25:25.000Z
2019-07-21T03:48:33.000Z
ExUnit.start() Ecto.Adapters.SQL.Sandbox.mode(Gatehouse.Repo, :manual)
14.6
55
0.767123
4a1e1108a4a8ba5b75ed0253d54b38f62c12998d
2,784
exs
Elixir
test/correios/cep_test.exs
lccezinha/correios-cep-elixir
fee32a9146167c13e169f682ed04837d9e9a525e
[ "Apache-2.0" ]
null
null
null
test/correios/cep_test.exs
lccezinha/correios-cep-elixir
fee32a9146167c13e169f682ed04837d9e9a525e
[ "Apache-2.0" ]
null
null
null
test/correios/cep_test.exs
lccezinha/correios-cep-elixir
fee32a9146167c13e169f682ed04837d9e9a525e
[ "Apache-2.0" ]
null
null
null
defmodule Correios.CEPTest do use ExUnit.Case, async: true alias Correios.CEP, as: Subject alias Correios.CEP.{Address, Error} doctest Subject @invalid_zipcodes ~w( 1234567 123456789 1234-5678 12345-6789 1234-567 abcedfgh abced-fgh ) setup do address = %Address{ ...
27.564356
91
0.655532
4a1e27c4b76c03501cd04c637cf6420421132ced
351
ex
Elixir
lib/emojibot.ex
garno/emojibot
ea324ebc331a016cbd7095686f89ad09364e1739
[ "MIT" ]
null
null
null
lib/emojibot.ex
garno/emojibot
ea324ebc331a016cbd7095686f89ad09364e1739
[ "MIT" ]
null
null
null
lib/emojibot.ex
garno/emojibot
ea324ebc331a016cbd7095686f89ad09364e1739
[ "MIT" ]
null
null
null
defmodule Emojibot do # Inclusions use Application def start(_type, _args) do import Supervisor.Spec, warn: false children = [ worker(Slack.Bot, [Emojibot.Bot, [], Application.get_env(:slack, :api_token)]) ] opts = [strategy: :one_for_one, name: Emojibot.Supervisor] Supervisor.start_...
20.647059
84
0.683761
4a1e42f6a69cdb920e2b3c56e4f5455230322bcb
375
ex
Elixir
lib/owl/application.ex
kianmeng/owl
55c0f31438866d79526d1feab44e23728ad88dd6
[ "Apache-2.0" ]
null
null
null
lib/owl/application.ex
kianmeng/owl
55c0f31438866d79526d1feab44e23728ad88dd6
[ "Apache-2.0" ]
null
null
null
lib/owl/application.ex
kianmeng/owl
55c0f31438866d79526d1feab44e23728ad88dd6
[ "Apache-2.0" ]
null
null
null
defmodule Owl.Application do @moduledoc false use Application def start(_type, _args) do children = [ {Registry, keys: :unique, name: Owl.WidgetsRegistry}, {Owl.LiveScreen, name: Owl.LiveScreen}, {DynamicSupervisor, strategy: :one_for_one, name: Owl.WidgetsSupervisor} ] Supervisor....
25
78
0.704
4a1e4659ebb5b71e62dfbea5cc6bd47a5e342113
1,013
ex
Elixir
lib/cforum_web/controllers/cite/vote_controller.ex
jrieger/cforum_ex
61f6ce84708cb55bd0feedf69853dae64146a7a0
[ "MIT" ]
16
2019-04-04T06:33:33.000Z
2021-08-16T19:34:31.000Z
lib/cforum_web/controllers/cite/vote_controller.ex
jrieger/cforum_ex
61f6ce84708cb55bd0feedf69853dae64146a7a0
[ "MIT" ]
294
2019-02-10T11:10:27.000Z
2022-03-30T04:52:53.000Z
lib/cforum_web/controllers/cite/vote_controller.ex
jrieger/cforum_ex
61f6ce84708cb55bd0feedf69853dae64146a7a0
[ "MIT" ]
10
2019-02-10T10:39:24.000Z
2021-07-06T11:46:05.000Z
defmodule CforumWeb.Cite.VoteController do use CforumWeb, :controller alias Cforum.Abilities alias Cforum.Cites def vote(conn, %{"type" => type}) when type in ["up", "down"] do # take back the current vote in all cases; if the type is the same # as already voted, we just take it back. If it is differe...
38.961538
118
0.70385
4a1e7bc01a5e6fed8857d91302f61639660ca529
5,504
ex
Elixir
lib/graphd/protocol.ex
benpritchard/graphd
a301eceb4e686cb615d281590872404d1afa2b14
[ "Apache-2.0" ]
null
null
null
lib/graphd/protocol.ex
benpritchard/graphd
a301eceb4e686cb615d281590872404d1afa2b14
[ "Apache-2.0" ]
null
null
null
lib/graphd/protocol.ex
benpritchard/graphd
a301eceb4e686cb615d281590872404d1afa2b14
[ "Apache-2.0" ]
null
null
null
defmodule Graphd.Protocol do @moduledoc false alias Graphd.{Adapter, Error, Type, Query} alias Graphd.Api.TxnContext use DBConnection require Logger defstruct [:adapter, :channel, :connected, :json, :opts, :txn_context, txn_aborted?: false] @timeout 15_000 @impl true def connect(opts) do hos...
29.913043
94
0.654433
4a1e984359c216e82ebfdab5285ea0264331405c
376
ex
Elixir
lib/rectanglus/guardian_serializer.ex
untra/rectanglus
ccef3dffa4efa2928ac1ae265de83550d17c0116
[ "MIT" ]
null
null
null
lib/rectanglus/guardian_serializer.ex
untra/rectanglus
ccef3dffa4efa2928ac1ae265de83550d17c0116
[ "MIT" ]
null
null
null
lib/rectanglus/guardian_serializer.ex
untra/rectanglus
ccef3dffa4efa2928ac1ae265de83550d17c0116
[ "MIT" ]
null
null
null
defmodule Rectanglus.GuardianSerializer do @behaviour Guardian.Serializer alias Rectanglus.{Repo, User} def for_token(user = %User{}), do: {:ok, "User:#{user.id}"} def for_token(_), do: {:error, "Unknown resource type"} def from_token("User:" <> id), do: {:ok, Repo.get(User, String.to_integer(id))} def f...
31.333333
81
0.683511