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
c89c8778bc10e6c92169328e67cf5254942d4083
8,307
ex
Elixir
lib/scaffolding/behaviours/search_index_handler.ex
noizu-labs/advanced_elixir_scaffolding
9e7a1199a4b25fcc16fc5a795104b926d2f238df
[ "MIT" ]
null
null
null
lib/scaffolding/behaviours/search_index_handler.ex
noizu-labs/advanced_elixir_scaffolding
9e7a1199a4b25fcc16fc5a795104b926d2f238df
[ "MIT" ]
null
null
null
lib/scaffolding/behaviours/search_index_handler.ex
noizu-labs/advanced_elixir_scaffolding
9e7a1199a4b25fcc16fc5a795104b926d2f238df
[ "MIT" ]
null
null
null
#------------------------------------------------------------------------------- # Author: Keith Brings <keith.brings@noizu.com> # Copyright (C) 2021 Noizu Labs Inc. All rights reserved. #------------------------------------------------------------------------------- defmodule Noizu.DomainObject.SearchIndexHandler do ...
56.128378
202
0.650175
c89c9d99afdd36fa8aedcb03ebadd3b643f50f5f
5,025
ex
Elixir
lib/abi.ex
diodechain/diode_contract
1095375e0b5575956a0d5161d5d7d815b2d5314a
[ "Apache-2.0" ]
2
2020-09-03T02:07:15.000Z
2020-11-19T13:04:13.000Z
lib/abi.ex
diodechain/diode_contract
1095375e0b5575956a0d5161d5d7d815b2d5314a
[ "Apache-2.0" ]
1
2021-08-31T04:28:27.000Z
2021-08-31T04:28:27.000Z
lib/abi.ex
diodechain/diode_contract
1095375e0b5575956a0d5161d5d7d815b2d5314a
[ "Apache-2.0" ]
1
2021-02-02T16:31:51.000Z
2021-02-02T16:31:51.000Z
# Diode Server # Copyright 2021 Diode # Licensed under the Diode License, Version 1.0 defmodule ABI do def encode_args(types, values) when is_list(types) and is_list(values) do encode_data(types, values) |> :erlang.iolist_to_binary() end def decode_revert(<<"">>) do ">> empty" end # Decoding "Er...
36.413043
154
0.628458
c89cc6073d0debcbd56f65876fb76b9e866eb1e8
524
exs
Elixir
config/prod.exs
elvanja/escript_testbed
eb92772b6223309d727716d8a6dc1c9d316bbbb4
[ "MIT" ]
null
null
null
config/prod.exs
elvanja/escript_testbed
eb92772b6223309d727716d8a6dc1c9d316bbbb4
[ "MIT" ]
2
2020-07-27T00:13:11.000Z
2020-07-27T05:22:17.000Z
config/prod.exs
elvanja/escript_testbed
eb92772b6223309d727716d8a6dc1c9d316bbbb4
[ "MIT" ]
2
2020-07-26T12:32:39.000Z
2020-07-26T23:54:13.000Z
use Mix.Config config :logger, level: :error config :escript_testbed, EscriptTestbed.Repos.Source, adapter: {:system, :string, "ETB_SOURCE_REPO_ADAPTER"}, url: {:system, :string, "ETB_SOURCE_REPO_DATABASE_URL"}, ssl: {:system, :boolean, "ETB_SOURCE_REPO_SSL", false} config :escript_testbed, EscriptTestbed.Repo...
37.428571
63
0.755725
c89ce1b89a6fb91937a0a8da7caef33aa8b37c1e
23,929
ex
Elixir
lib/riverside.ex
LukasDoesDev/riverside
c2866be6c152e38cc142becf3e9c8c042c80ed57
[ "MIT" ]
63
2018-05-02T16:47:44.000Z
2022-03-07T09:48:58.000Z
lib/riverside.ex
LukasDoesDev/riverside
c2866be6c152e38cc142becf3e9c8c042c80ed57
[ "MIT" ]
20
2017-09-24T00:42:12.000Z
2021-12-11T12:00:13.000Z
lib/riverside.ex
LukasDoesDev/riverside
c2866be6c152e38cc142becf3e9c8c042c80ed57
[ "MIT" ]
9
2019-02-18T10:09:30.000Z
2021-12-09T21:11:02.000Z
defmodule Riverside do @moduledoc ~S""" # Riverside - Plain WebSocket Server Framework for Elixir ## Getting Started ### Handler At first, you need to prepare your own `Handler` module with `use Riverside` line. in `handle_message/3`, process messages sent by client. This doesn't depend on some proto...
24.268763
216
0.625768
c89ce246fee8df8c61c8c4b906916b8031713bb9
1,015
ex
Elixir
apps/thundermoon_web/lib/thundermoon_web/live/shared/start_button.ex
grrrisu/thundermoon-umbrella
d7e4f063e28b8d20545f90d6cddc27527fe9efe0
[ "MIT" ]
10
2019-08-02T06:41:23.000Z
2022-03-09T16:12:30.000Z
apps/thundermoon_web/lib/thundermoon_web/live/shared/start_button.ex
grrrisu/thundermoon-umbrella
d7e4f063e28b8d20545f90d6cddc27527fe9efe0
[ "MIT" ]
319
2019-06-11T20:16:26.000Z
2022-03-09T16:24:22.000Z
apps/thundermoon_web/lib/thundermoon_web/live/shared/start_button.ex
grrrisu/thundermoon-umbrella
d7e4f063e28b8d20545f90d6cddc27527fe9efe0
[ "MIT" ]
4
2019-08-15T19:52:07.000Z
2021-12-02T14:52:54.000Z
defmodule ThundermoonWeb.Component.StartButton do use ThundermoonWeb, :live_component @impl true def update(assigns, socket) do {:ok, socket |> assign(assigns) |> assign(icon: set_icon(assigns.started)) |> assign(label: set_label(assigns.started))} end @impl true def render(assigns...
25.375
148
0.615764
c89d158d0c7e6dfdd24cc2d12146e8e32ec90da2
868
ex
Elixir
test/support/conn_case.ex
wsmoak/simple_phoenix_react
db18ef77b464f9845c80365609c1066add3be68d
[ "MIT" ]
1
2016-09-17T05:08:06.000Z
2016-09-17T05:08:06.000Z
test/support/conn_case.ex
wsmoak/simple_phoenix_react
db18ef77b464f9845c80365609c1066add3be68d
[ "MIT" ]
null
null
null
test/support/conn_case.ex
wsmoak/simple_phoenix_react
db18ef77b464f9845c80365609c1066add3be68d
[ "MIT" ]
null
null
null
defmodule SimplePhoenixReact.ConnCase do @moduledoc """ This module defines the test case to be used by tests that require setting up a connection. Such tests rely on `Phoenix.ConnTest` and also import other functionality to make it easier to build and query models. Finally, if the test case interacts w...
24.8
56
0.731567
c89d18999e368aa275ea71949fe2f7bb3a7dd3ae
4,302
exs
Elixir
test/controllers/batch_controller_test.exs
gcbeltramini/bors-ng
c51708a3f679a9e24a903b2a76e90cf38576974a
[ "Apache-2.0" ]
2
2022-03-14T03:44:28.000Z
2022-03-14T03:48:02.000Z
test/controllers/batch_controller_test.exs
seanpm2001/bors-ng
2482df1c2f4680b33534620571f04075b6b4390a
[ "Apache-2.0" ]
null
null
null
test/controllers/batch_controller_test.exs
seanpm2001/bors-ng
2482df1c2f4680b33534620571f04075b6b4390a
[ "Apache-2.0" ]
null
null
null
defmodule BorsNG.BatchControllerTest do use BorsNG.ConnCase alias BorsNG.Database.Batch alias BorsNG.Database.Installation alias BorsNG.Database.LinkPatchBatch alias BorsNG.Database.LinkMemberProject alias BorsNG.Database.LinkUserProject alias BorsNG.Database.Patch alias BorsNG.Database.Project alias...
25.760479
93
0.615295
c89d47854a8fd0fb1cc95188a0815189d67f1b22
2,479
ex
Elixir
clients/sheets/lib/google_api/sheets/v4/model/dimension_group.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/sheets/lib/google_api/sheets/v4/model/dimension_group.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/sheets/lib/google_api/sheets/v4/model/dimension_group.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
39.349206
132
0.722872
c89d99b2916e7709c0981a6c6b0cc8bdb95b3146
479
exs
Elixir
apps/gingerbread_shop_service/priv/repo/migrations/20170705104658_beacon.exs
ScrimpyCat/gingerbread_shop
ce01f5599fd1d39c79df461373c8f4f73bc144f2
[ "BSD-2-Clause" ]
null
null
null
apps/gingerbread_shop_service/priv/repo/migrations/20170705104658_beacon.exs
ScrimpyCat/gingerbread_shop
ce01f5599fd1d39c79df461373c8f4f73bc144f2
[ "BSD-2-Clause" ]
null
null
null
apps/gingerbread_shop_service/priv/repo/migrations/20170705104658_beacon.exs
ScrimpyCat/gingerbread_shop
ce01f5599fd1d39c79df461373c8f4f73bc144f2
[ "BSD-2-Clause" ]
null
null
null
defmodule GingerbreadShop.Service.Repo.Migrations.Beacon do use Ecto.Migration def change do create table(:beacons) do add :store_id, references(:stores), null: false add :proximity, :uuid, null: false add :details, :map, ...
21.772727
59
0.515658
c89d9e6b7752bcc515a9ac2cb69d1753271a6778
341
ex
Elixir
lib/web_driver_client/cookie.ex
fimassuda/web_driver_client
09d373c9a8a923c5e2860f107f84b16565e338f7
[ "MIT" ]
8
2019-11-24T18:33:12.000Z
2020-12-09T10:20:09.000Z
lib/web_driver_client/cookie.ex
fimassuda/web_driver_client
09d373c9a8a923c5e2860f107f84b16565e338f7
[ "MIT" ]
67
2019-12-20T16:33:30.000Z
2021-09-14T03:50:10.000Z
lib/web_driver_client/cookie.ex
fimassuda/web_driver_client
09d373c9a8a923c5e2860f107f84b16565e338f7
[ "MIT" ]
10
2020-06-19T16:15:03.000Z
2021-09-13T17:56:25.000Z
defmodule WebDriverClient.Cookie do @moduledoc """ Details about a cookie stored in the browser """ @type name :: String.t() @type value :: String.t() @type domain :: String.t() @type t :: %__MODULE__{ name: name, value: value, domain: domain } defstruct [:name, ...
18.944444
46
0.580645
c89dcf5f83b8ac65295449a0ea062fdf525db94e
619
ex
Elixir
lib/ex_mon/trainer/pokemon/update.ex
tarcisiooliveira/ExMon-Web-Api
7771fe9db907d395a4141b8a3c8501ac48a028e6
[ "MIT" ]
null
null
null
lib/ex_mon/trainer/pokemon/update.ex
tarcisiooliveira/ExMon-Web-Api
7771fe9db907d395a4141b8a3c8501ac48a028e6
[ "MIT" ]
null
null
null
lib/ex_mon/trainer/pokemon/update.ex
tarcisiooliveira/ExMon-Web-Api
7771fe9db907d395a4141b8a3c8501ac48a028e6
[ "MIT" ]
null
null
null
defmodule ExMon.Trainer.Pokemon.Update do @moduledoc """ Module Doc Name """ alias Ecto.UUID alias ExMon.{Repo, Trainer.Pokemon} def call(%{"id" => uuid} = params) do case UUID.cast(uuid) do :error -> {:error, "Invalid ID Format"} {:ok, _uuid} -> update(params) end end defp update(...
22.107143
48
0.621971
c89de0d5750dfc91e9b3ebeb5d61c923cc716291
13,090
exs
Elixir
lib/elixir/test/elixir/code_test.exs
Stratus3D/elixir
cef19c9365a93f96436229c244c32977462fb0c7
[ "Apache-2.0" ]
1
2018-02-24T19:48:35.000Z
2018-02-24T19:48:35.000Z
lib/elixir/test/elixir/code_test.exs
Stratus3D/elixir
cef19c9365a93f96436229c244c32977462fb0c7
[ "Apache-2.0" ]
null
null
null
lib/elixir/test/elixir/code_test.exs
Stratus3D/elixir
cef19c9365a93f96436229c244c32977462fb0c7
[ "Apache-2.0" ]
null
null
null
Code.require_file("test_helper.exs", __DIR__) defmodule CodeTest do use ExUnit.Case, async: true doctest Code import PathHelpers def genmodule(name) do defmodule name do Kernel.LexicalTracker.remote_references(__ENV__.lexical_tracker) end end contents = quote do defmodule CodeTes...
35.378378
266
0.6
c89e069720f35339b260e21519be62f0f8f4c022
7,999
ex
Elixir
lib/glimesh_web/live/user_live/stream.ex
MemoryLeakDeath/glimesh.tv
1462c4b939da899f5e3f67c3f28850025d59a10f
[ "MIT" ]
null
null
null
lib/glimesh_web/live/user_live/stream.ex
MemoryLeakDeath/glimesh.tv
1462c4b939da899f5e3f67c3f28850025d59a10f
[ "MIT" ]
null
null
null
lib/glimesh_web/live/user_live/stream.ex
MemoryLeakDeath/glimesh.tv
1462c4b939da899f5e3f67c3f28850025d59a10f
[ "MIT" ]
null
null
null
defmodule GlimeshWeb.UserLive.Stream do use GlimeshWeb, :live_view alias Glimesh.Accounts alias Glimesh.{ChannelHostsLookups, ChannelLookups} alias Glimesh.Presence alias Glimesh.Streams def mount(%{"username" => streamer_username} = params, session, socket) do case ChannelLookups.get_channel_for_user...
34.038298
242
0.644706
c89e1453e8d903af78c8a92234a19fe3cd00e03e
398
ex
Elixir
lib/smppex/session/defaults.ex
sasa1977/smppex
21bc56e433b3c6fb0becddb5fbbe06edcedc40c2
[ "MIT" ]
49
2019-11-27T00:20:59.000Z
2022-02-18T17:07:14.000Z
lib/smppex/session/defaults.ex
sasa1977/smppex
21bc56e433b3c6fb0becddb5fbbe06edcedc40c2
[ "MIT" ]
62
2016-05-19T17:11:02.000Z
2019-11-21T16:47:15.000Z
lib/smppex/session/defaults.ex
sasa1977/smppex
21bc56e433b3c6fb0becddb5fbbe06edcedc40c2
[ "MIT" ]
25
2016-05-20T14:44:43.000Z
2019-11-15T14:50:24.000Z
defmodule SMPPEX.Session.Defaults do @moduledoc false defaults = [ enquire_link_limit: 30_000, enquire_link_resp_limit: 30_000, session_init_limit: 10_000, inactivity_limit: :infinity, response_limit: 60_000, timer_resolution: 100, default_call_timeout: 5000 ] for {name, value} <- ...
19.9
36
0.69598
c89e3f6678f9edd43a7cd2404524750179974819
5,498
exs
Elixir
test/phoenix/integration/endpoint_test.exs
grigor-aramyan/phoenix
d377b2e8d90753f9ec02972532e20f6878da86ad
[ "MIT" ]
null
null
null
test/phoenix/integration/endpoint_test.exs
grigor-aramyan/phoenix
d377b2e8d90753f9ec02972532e20f6878da86ad
[ "MIT" ]
null
null
null
test/phoenix/integration/endpoint_test.exs
grigor-aramyan/phoenix
d377b2e8d90753f9ec02972532e20f6878da86ad
[ "MIT" ]
null
null
null
Code.require_file "../../support/http_client.exs", __DIR__ defmodule Phoenix.Integration.EndpointTest do use ExUnit.Case import ExUnit.CaptureLog alias Phoenix.Integration.AdapterTest.ProdEndpoint alias Phoenix.Integration.AdapterTest.DevEndpoint alias Phoenix.Integration.AdapterTest.ProdInet6Endpoint Ap...
30.043716
105
0.61877
c89e4aeaee3c4db58879ca53c6b3312f970d6cde
260
ex
Elixir
lib/social/messages/message.ex
PaoloLaurenti/social-networking-kata
ade6139e2d41f1446e5fa23172395db56cfa4d33
[ "MIT" ]
null
null
null
lib/social/messages/message.ex
PaoloLaurenti/social-networking-kata
ade6139e2d41f1446e5fa23172395db56cfa4d33
[ "MIT" ]
null
null
null
lib/social/messages/message.ex
PaoloLaurenti/social-networking-kata
ade6139e2d41f1446e5fa23172395db56cfa4d33
[ "MIT" ]
null
null
null
defmodule SocialNetworkingKata.Social.Messages.Message do @moduledoc """ A struct representing a message published by an user """ use Domo @typedoc "A message" typedstruct do field :text, String.t() field :sent_at, DateTime.t() end end
18.571429
57
0.703846
c89e57256bccc96f84be617c8901806504007491
1,910
ex
Elixir
clients/you_tube/lib/google_api/you_tube/v3/model/super_sticker_metadata.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/you_tube/lib/google_api/you_tube/v3/model/super_sticker_metadata.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/you_tube/lib/google_api/you_tube/v3/model/super_sticker_metadata.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
1
2020-10-04T10:12:44.000Z
2020-10-04T10:12:44.000Z
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
36.037736
211
0.727749
c89e8021473965157ed87cfb0add839c8fe6ddad
2,565
exs
Elixir
mix.exs
GarfJohns/beagleboneblack
bb16a1f2bd80a4e94b8e85a4e7658588ac77fb24
[ "Apache-2.0" ]
null
null
null
mix.exs
GarfJohns/beagleboneblack
bb16a1f2bd80a4e94b8e85a4e7658588ac77fb24
[ "Apache-2.0" ]
null
null
null
mix.exs
GarfJohns/beagleboneblack
bb16a1f2bd80a4e94b8e85a4e7658588ac77fb24
[ "Apache-2.0" ]
null
null
null
defmodule NervesSystemBbb.MixProject do use Mix.Project @app :nerves_system_bbb @version Path.join(__DIR__, "VERSION") |> File.read!() |> String.trim() def project do [ app: @app, version: @version, elixir: "~> 1.6", compilers: Mix.compilers() ++ [:nerves_pack...
22.5
79
0.584795
c89ef092e193957686f0c1f9d58902e925d95a05
456
exs
Elixir
apps/core/config/test.exs
iporaitech/phoenix-webpack-react-docker
c454db0b851b9d00db868a64b96e567d4a0cc3d9
[ "MIT" ]
25
2016-08-09T15:04:37.000Z
2021-11-15T12:20:27.000Z
apps/core/config/test.exs
iporaitech/phoenix-webpack-react-docker
c454db0b851b9d00db868a64b96e567d4a0cc3d9
[ "MIT" ]
62
2016-05-23T20:16:40.000Z
2017-04-18T18:36:29.000Z
apps/core/config/test.exs
iporaitech/phoenix-webpack-react-docker
c454db0b851b9d00db868a64b96e567d4a0cc3d9
[ "MIT" ]
10
2016-08-17T15:29:21.000Z
2017-02-28T07:58:30.000Z
use Mix.Config # Print only warnings and errors during test config :logger, level: :warn # Configure your database config :core, Core.Repo, adapter: Ecto.Adapters.Postgres, username: System.get_env("PWR2_CORE_DB_USER"), password: System.get_env("PWR2_CORE_DB_PASSWORD"), database: System.get_env("PWR2_CORE_TES...
30.4
52
0.769737
c89f80a3110986d1e83f71babcb29da6cd6883a2
140
exs
Elixir
test/fixtures/parser/disable_migration_lock_false.exs
maximemenager/strong_migrations
b7e091d2cfed73098d3bf683c7ce5c8ceee3159b
[ "MIT" ]
23
2021-10-29T19:58:35.000Z
2021-11-13T21:42:45.000Z
test/fixtures/parser/disable_migration_lock_false.exs
maximemenager/strong_migrations
b7e091d2cfed73098d3bf683c7ce5c8ceee3159b
[ "MIT" ]
1
2021-10-31T03:57:47.000Z
2021-10-31T14:33:45.000Z
test/fixtures/parser/disable_migration_lock_false.exs
surgeventures/strong_migrations
3c82e34a6e7a372c6de17ba7a0b07da7664baa26
[ "MIT" ]
3
2021-10-31T02:14:10.000Z
2021-11-09T08:07:22.000Z
defmodule DisableMigrationLockFalse do @moduledoc false use Ecto.Migration @disable_migration_lock false def change do end end
12.727273
38
0.785714
c89fc4fbd027af8c37e795f349b6d778a39cfa94
1,234
ex
Elixir
lib/niacademy/jobs/tracker_timeout.ex
Ruin0x11/niacademy
f0b07aefa7b2bf5a8f643d851523ee43c6fd1c0f
[ "MIT" ]
null
null
null
lib/niacademy/jobs/tracker_timeout.ex
Ruin0x11/niacademy
f0b07aefa7b2bf5a8f643d851523ee43c6fd1c0f
[ "MIT" ]
null
null
null
lib/niacademy/jobs/tracker_timeout.ex
Ruin0x11/niacademy
f0b07aefa7b2bf5a8f643d851523ee43c6fd1c0f
[ "MIT" ]
null
null
null
defmodule Niacademy.Jobs.TrackerTimeout do use GenServer require Logger def start_link(_opts) do GenServer.start_link(__MODULE__, %{duration: 0}) end @impl true def init(state) do {:ok, state} end @impl true def handle_cast({:persist, %{duration: new_duration}}, state) do Logger.debug("...
22.035714
95
0.683144
c89fc96e9363a5ce0aff82a79bc26f2ce12f1df1
534
ex
Elixir
lib/altstatus_web/plugs/authorize_admin.ex
AltCampus/altstatus_backend
70bf7a9d337e570f54002c3a7df264e88372adfa
[ "MIT" ]
1
2020-01-20T18:17:59.000Z
2020-01-20T18:17:59.000Z
lib/altstatus_web/plugs/authorize_admin.ex
AltCampus/altstatus_backend
70bf7a9d337e570f54002c3a7df264e88372adfa
[ "MIT" ]
null
null
null
lib/altstatus_web/plugs/authorize_admin.ex
AltCampus/altstatus_backend
70bf7a9d337e570f54002c3a7df264e88372adfa
[ "MIT" ]
2
2018-09-09T08:05:24.000Z
2018-09-09T08:35:18.000Z
defmodule AltstatusWeb.Plugs.AuthorizeAdmin do import Plug.Conn import Phoenix.Controller def init(_params) do end def call(conn, _params) do if Enum.any?(get_req_header(conn, "token")) do [token | _] = get_req_header(conn, "token") case Phoenix.Token.verify(conn, "admin salt", token) do ...
22.25
61
0.580524
c8a00dda2cd9cded7b8a485514eee8f77bb06217
5,281
exs
Elixir
lib/elixir/test/elixir/kernel/cli_test.exs
liveforeverx/elixir
cf3cf0bd5443b59206e5733602244bc3543f0a53
[ "Apache-2.0" ]
null
null
null
lib/elixir/test/elixir/kernel/cli_test.exs
liveforeverx/elixir
cf3cf0bd5443b59206e5733602244bc3543f0a53
[ "Apache-2.0" ]
null
null
null
lib/elixir/test/elixir/kernel/cli_test.exs
liveforeverx/elixir
cf3cf0bd5443b59206e5733602244bc3543f0a53
[ "Apache-2.0" ]
null
null
null
Code.require_file "../test_helper.exs", __DIR__ import PathHelpers defmodule Kernel.CLI.ARGVTest do use ExUnit.Case, async: true import ExUnit.CaptureIO defp run(argv) do {config, argv} = Kernel.CLI.parse_argv(argv) assert Kernel.CLI.process_commands(config) == [] argv end test "argv handling...
32.006061
107
0.647226
c8a00f7eb7c4e2e39342502d58623ef68685ab34
1,599
ex
Elixir
clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v14/model/create_orders_response.ex
nuxlli/elixir-google-api
ecb8679ac7282b7dd314c3e20c250710ec6a7870
[ "Apache-2.0" ]
null
null
null
clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v14/model/create_orders_response.ex
nuxlli/elixir-google-api
ecb8679ac7282b7dd314c3e20c250710ec6a7870
[ "Apache-2.0" ]
null
null
null
clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v14/model/create_orders_response.ex
nuxlli/elixir-google-api
ecb8679ac7282b7dd314c3e20c250710ec6a7870
[ "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.3125
92
0.757348
c8a02645f258ae968e032ebc1a7ce31ff927648e
53
exs
Elixir
test/libcluster_gce_test.exs
fremantle-industries/libcluster_gce
1090bba1c5be2cf3947cf6969bba84633410f530
[ "MIT" ]
1
2021-03-24T16:27:28.000Z
2021-03-24T16:27:28.000Z
test/libcluster_gce_test.exs
fremantle-industries/libcluster_gce
1090bba1c5be2cf3947cf6969bba84633410f530
[ "MIT" ]
12
2020-09-14T06:21:21.000Z
2021-09-22T13:03:54.000Z
test/libcluster_gce_test.exs
fremantle-industries/libcluster_gce
1090bba1c5be2cf3947cf6969bba84633410f530
[ "MIT" ]
null
null
null
defmodule LibclusterGceTest do use ExUnit.Case end
13.25
30
0.830189
c8a0278c41f53fa502a64012b64d7abd5075aefd
6,372
exs
Elixir
test/credo/sources_test.exs
coryodaniel/credo
840e9be99cb2ebcacb7d012e49b40714c0b37852
[ "MIT" ]
null
null
null
test/credo/sources_test.exs
coryodaniel/credo
840e9be99cb2ebcacb7d012e49b40714c0b37852
[ "MIT" ]
null
null
null
test/credo/sources_test.exs
coryodaniel/credo
840e9be99cb2ebcacb7d012e49b40714c0b37852
[ "MIT" ]
null
null
null
defmodule Credo.SourcesTest do use ExUnit.Case @moduletag slow: :disk_io @fixture_integration_test_config "test/fixtures/integration_test_config" test "it finds all files inside directories recursively" do exec = %Credo.Execution{files: %{excluded: [], included: ["lib/mix"]}} expected = [ "lib/...
23.255474
97
0.582235
c8a03002625f9614e164233d67ba3c88bdf51652
1,220
exs
Elixir
test/registry_test.exs
brndnmtthws/citrine
ff815f7ed921abbde658ca4ba7b6aea68b6c0f5f
[ "MIT" ]
8
2020-08-06T03:08:31.000Z
2021-12-15T08:41:59.000Z
test/registry_test.exs
brndnmtthws/citrine
ff815f7ed921abbde658ca4ba7b6aea68b6c0f5f
[ "MIT" ]
1
2020-10-18T19:48:09.000Z
2020-10-26T16:40:25.000Z
test/registry_test.exs
brndnmtthws/citrine
ff815f7ed921abbde658ca4ba7b6aea68b6c0f5f
[ "MIT" ]
2
2020-10-23T12:28:21.000Z
2021-01-09T20:44:37.000Z
defmodule Citrine.RegistryTest do use ExUnit.Case, async: true alias Citrine.Registry def gen_id() do :rand.uniform(10000) |> Integer.to_string() end def gen_job_id() do gen_id() end setup do registry_name = String.to_atom("#{__MODULE__}.#{gen_id()}") initializer = start_supervised...
25.957447
90
0.660656
c8a03642c859111c425c7fe8858efa394261a527
2,438
ex
Elixir
lib/Day2.ex
sjoconnor/advent_of_code_2020
53f154808db3c0f8de82cefd6d69fa35e7f8caf4
[ "MIT" ]
null
null
null
lib/Day2.ex
sjoconnor/advent_of_code_2020
53f154808db3c0f8de82cefd6d69fa35e7f8caf4
[ "MIT" ]
null
null
null
lib/Day2.ex
sjoconnor/advent_of_code_2020
53f154808db3c0f8de82cefd6d69fa35e7f8caf4
[ "MIT" ]
null
null
null
defmodule Day2 do def data do "inputs/02.txt" |> File.read!() |> String.split("\n", trim: true) end def run(validator) when validator in [Day2.PasswordValidator1, Day2.PasswordValidator2] do Enum.count(data(), fn line -> line |> validator.validate() |> Map.get(:valid?) end) ...
30.860759
134
0.650943
c8a04eddc1c8468f8e7d4d8c8a08fa1b22e4185c
1,918
ex
Elixir
clients/sheets/lib/google_api/sheets/v4/model/batch_get_values_by_data_filter_response.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/sheets/lib/google_api/sheets/v4/model/batch_get_values_by_data_filter_response.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/sheets/lib/google_api/sheets/v4/model/batch_get_values_by_data_filter_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...
38.36
173
0.747654
c8a057a1cc87e2090b26d94479cf768126da53b5
127
ex
Elixir
lib/changelog/slack/response.ex
PsOverflow/changelog.com
53f4ecfc39b021c6b8cfcc0fa11f29aff8038a7f
[ "MIT" ]
2,599
2016-10-25T15:02:53.000Z
2022-03-26T02:34:42.000Z
lib/changelog/slack/response.ex
type1fool/changelog.com
fbec3528cc3f5adfdc75b008bb92b17efc4f248f
[ "MIT" ]
253
2016-10-25T20:29:24.000Z
2022-03-29T21:52:36.000Z
lib/changelog/slack/response.ex
type1fool/changelog.com
fbec3528cc3f5adfdc75b008bb92b17efc4f248f
[ "MIT" ]
298
2016-10-25T15:18:31.000Z
2022-01-18T21:25:52.000Z
defmodule Changelog.Slack.Response do @derive Jason.Encoder defstruct response_type: "in_channel", text: "", data: nil end
25.4
60
0.76378
c8a060a6cc28b25afbb3cb21cb9c0d974c2a1091
2,009
exs
Elixir
config/prod.exs
knathan2/dot
2e73d1339592e8d317d1b7c5acf777f86aeebe9d
[ "Apache-2.0" ]
null
null
null
config/prod.exs
knathan2/dot
2e73d1339592e8d317d1b7c5acf777f86aeebe9d
[ "Apache-2.0" ]
null
null
null
config/prod.exs
knathan2/dot
2e73d1339592e8d317d1b7c5acf777f86aeebe9d
[ "Apache-2.0" ]
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...
32.403226
75
0.708313
c8a09f5d4c5f4891a8a297101e62f0ce3901684e
717
exs
Elixir
priv/repo/migrations/20200711233730_create_customers.exs
raditya3/papercups
4657b258ee381ac0b7517e57e4d6261ce94b5871
[ "MIT" ]
4,942
2020-07-20T22:35:28.000Z
2022-03-31T15:38:51.000Z
priv/repo/migrations/20200711233730_create_customers.exs
raditya3/papercups
4657b258ee381ac0b7517e57e4d6261ce94b5871
[ "MIT" ]
552
2020-07-22T01:39:04.000Z
2022-02-01T00:26:35.000Z
priv/repo/migrations/20200711233730_create_customers.exs
raditya3/papercups
4657b258ee381ac0b7517e57e4d6261ce94b5871
[ "MIT" ]
396
2020-07-22T19:27:48.000Z
2022-03-31T05:25:24.000Z
defmodule ChatApi.Repo.Migrations.CreateCustomers do use Ecto.Migration def change do create table(:customers, primary_key: false) do add(:id, :binary_id, primary_key: true) add(:first_seen, :date, null: false) add(:last_seen, :date, null: false) add(:account_id, references(:accounts, t...
26.555556
60
0.666667
c8a0bb50ad44fbffa31d98670e94a37085980d05
34,584
exs
Elixir
apps/astarte_appengine_api/test/astarte_appengine_api/device/device_test.exs
matt-mazzucato/astarte
34d84941a5019efc42321052f7f34b7d907a38f2
[ "Apache-2.0" ]
4
2018-03-15T14:26:43.000Z
2019-12-20T15:07:10.000Z
apps/astarte_appengine_api/test/astarte_appengine_api/device/device_test.exs
matt-mazzucato/astarte
34d84941a5019efc42321052f7f34b7d907a38f2
[ "Apache-2.0" ]
27
2018-06-28T16:00:07.000Z
2019-12-19T10:05:36.000Z
apps/astarte_appengine_api/test/astarte_appengine_api/device/device_test.exs
matt-mazzucato/astarte
34d84941a5019efc42321052f7f34b7d907a38f2
[ "Apache-2.0" ]
2
2018-03-16T09:37:29.000Z
2019-11-18T17:37:42.000Z
# # This file is part of Astarte. # # Copyright 2017 Ispirata Srl # # 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 appl...
27.40412
96
0.512954
c8a0c3a4eb773192d8542907b3a25fe4cdbb9b91
1,113
exs
Elixir
ps/servy/config/config.exs
mdeilman/ElixirCode
d0560c7b135b4cb146dccb8202b9e4dede199a1b
[ "Apache-2.0" ]
null
null
null
ps/servy/config/config.exs
mdeilman/ElixirCode
d0560c7b135b4cb146dccb8202b9e4dede199a1b
[ "Apache-2.0" ]
null
null
null
ps/servy/config/config.exs
mdeilman/ElixirCode
d0560c7b135b4cb146dccb8202b9e4dede199a1b
[ "Apache-2.0" ]
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
c8a0df682a2b0beafd0048c49c5edea86d4c8441
1,833
ex
Elixir
lib/device_manager/client.ex
rosetta-home/cicada
a5ac51ecc202e1694dedc9875604fa3564ef4b3c
[ "Apache-2.0" ]
7
2017-09-08T11:29:42.000Z
2020-01-18T22:15:12.000Z
lib/device_manager/client.ex
rosetta-home/cicada
a5ac51ecc202e1694dedc9875604fa3564ef4b3c
[ "Apache-2.0" ]
null
null
null
lib/device_manager/client.ex
rosetta-home/cicada
a5ac51ecc202e1694dedc9875604fa3564ef4b3c
[ "Apache-2.0" ]
2
2017-07-02T11:58:50.000Z
2019-09-14T03:16:12.000Z
defmodule Cicada.DeviceManager.Client do use GenServer require Logger alias Cicada.NetworkManager.State, as: NM alias Cicada.{EventManager, NetworkManager} def start_link(plugins) do GenServer.start_link(__MODULE__, plugins, name: __MODULE__) end def init(plugins) do NetworkManager.register ...
27.772727
88
0.66994
c8a0f455c6f6507ccc14aab14e5b586c960a0246
1,195
ex
Elixir
lib/tortoise/package.ex
lucaong/tortoise
fd2f83527937ba39b47f58eb8d392a1aa927e28f
[ "Apache-2.0" ]
272
2018-04-22T22:47:35.000Z
2022-03-01T05:22:02.000Z
lib/tortoise/package.ex
lucaong/tortoise
fd2f83527937ba39b47f58eb8d392a1aa927e28f
[ "Apache-2.0" ]
120
2018-04-22T20:42:04.000Z
2022-01-20T23:12:13.000Z
lib/tortoise/package.ex
lucaong/tortoise
fd2f83527937ba39b47f58eb8d392a1aa927e28f
[ "Apache-2.0" ]
58
2018-04-24T06:28:36.000Z
2022-02-09T06:55:42.000Z
defmodule Tortoise.Package do @moduledoc false alias Tortoise.Package @opaque message :: Package.Connect.t() | Package.Connack.t() | Package.Publish.t() | Package.Puback.t() | Package.Pubrec.t() | Package.Pubrel.t() | Package.Pu...
27.159091
73
0.594142
c8a1234bc4e05c491ad4127e9130816a43c7294a
3,163
ex
Elixir
lib/models/pr.ex
mgwidmann/slack_coder
3ff4375777c1bdbc94ba1491fdf4e1c0fa465edf
[ "MIT" ]
15
2015-09-23T16:03:28.000Z
2018-12-04T21:48:04.000Z
lib/models/pr.ex
mgwidmann/slack_coder
3ff4375777c1bdbc94ba1491fdf4e1c0fa465edf
[ "MIT" ]
27
2016-01-12T16:44:31.000Z
2017-10-13T16:09:36.000Z
lib/models/pr.ex
mgwidmann/slack_coder
3ff4375777c1bdbc94ba1491fdf4e1c0fa465edf
[ "MIT" ]
4
2016-09-01T12:08:24.000Z
2017-09-21T15:07:57.000Z
defmodule SlackCoder.Models.PR do use SlackCoder.Web, :model schema "prs" do field :owner, :string field :repo, :string field :branch, :string field :base_branch, :string, default: "master" field :fork, :boolean field :hidden, :boolean, default: false # Stale PR checking field :late...
32.608247
118
0.701549
c8a12c84339055a14b5fe83719c49a0bb0faee6b
68
exs
Elixir
nomads/src/test/test_helper.exs
HarpBytes/nomads
10c79953e19262d9d095a190eecb09a5e57e6bf2
[ "MIT" ]
null
null
null
nomads/src/test/test_helper.exs
HarpBytes/nomads
10c79953e19262d9d095a190eecb09a5e57e6bf2
[ "MIT" ]
null
null
null
nomads/src/test/test_helper.exs
HarpBytes/nomads
10c79953e19262d9d095a190eecb09a5e57e6bf2
[ "MIT" ]
null
null
null
ExUnit.start() Ecto.Adapters.SQL.Sandbox.mode(Nomads.Repo, :manual)
22.666667
52
0.779412
c8a13e31a02f2317842b0d9835aab814a7df4a26
2,867
exs
Elixir
test/commodity/elastic/elastic_test.exs
akdilsiz/commodity-cloud
08c366c9fc95fbb3565131672db4cc52f8b870c9
[ "Apache-2.0" ]
7
2019-04-11T21:12:49.000Z
2021-04-14T12:56:42.000Z
test/commodity/elastic/elastic_test.exs
akdilsiz/commodity-cloud
08c366c9fc95fbb3565131672db4cc52f8b870c9
[ "Apache-2.0" ]
null
null
null
test/commodity/elastic/elastic_test.exs
akdilsiz/commodity-cloud
08c366c9fc95fbb3565131672db4cc52f8b870c9
[ "Apache-2.0" ]
2
2019-06-06T18:05:33.000Z
2019-07-16T08:49:45.000Z
## # Copyright 2018 Abdulkadir DILSIZ # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law...
21.556391
77
0.609348
c8a14a77a8ae8fbfda872424e398201de7048fc6
1,864
exs
Elixir
config/config.exs
ricardopadua/introduction_phoenix_liveview
3e320b4ea7f80b079dfcd9ac2d5714b1204ce4ed
[ "Apache-2.0" ]
null
null
null
config/config.exs
ricardopadua/introduction_phoenix_liveview
3e320b4ea7f80b079dfcd9ac2d5714b1204ce4ed
[ "Apache-2.0" ]
null
null
null
config/config.exs
ricardopadua/introduction_phoenix_liveview
3e320b4ea7f80b079dfcd9ac2d5714b1204ce4ed
[ "Apache-2.0" ]
null
null
null
# 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 :introduction_phoenix_liveview, ecto_repos: ...
35.169811
117
0.756438
c8a154b59559a0e44ba5d4d33a4778366a01f4ec
747
ex
Elixir
deps/phoenix/priv/templates/phx.gen.json/fallback_controller.ex
rpillar/Top5_Elixir
9c450d2e9b291108ff1465dc066dfe442dbca822
[ "MIT" ]
null
null
null
deps/phoenix/priv/templates/phx.gen.json/fallback_controller.ex
rpillar/Top5_Elixir
9c450d2e9b291108ff1465dc066dfe442dbca822
[ "MIT" ]
null
null
null
deps/phoenix/priv/templates/phx.gen.json/fallback_controller.ex
rpillar/Top5_Elixir
9c450d2e9b291108ff1465dc066dfe442dbca822
[ "MIT" ]
null
null
null
defmodule <%= inspect context.web_module %>.FallbackController do @moduledoc """ Translates controller action results into valid `Plug.Conn` responses. See `Phoenix.Controller.action_fallback/1` for more details. """ use <%= inspect context.web_module %>, :controller <%= if schema.generate? do %>d...
32.478261
90
0.655957
c8a1577849a3faab0eb3dcf61cf9d32348abe4e4
1,546
ex
Elixir
lib/purple_web/views/error_helpers.ex
knoebber/petaller
3532db5a3688459127d2427af42e32ca0f494d44
[ "MIT" ]
null
null
null
lib/purple_web/views/error_helpers.ex
knoebber/petaller
3532db5a3688459127d2427af42e32ca0f494d44
[ "MIT" ]
null
null
null
lib/purple_web/views/error_helpers.ex
knoebber/petaller
3532db5a3688459127d2427af42e32ca0f494d44
[ "MIT" ]
null
null
null
defmodule PurpleWeb.ErrorHelpers do @moduledoc """ Conveniences for translating and building error messages. """ use Phoenix.HTML @doc """ Generates tag for inlined form input errors. """ def error_tag(form, field) do Enum.map(Keyword.get_values(form.errors, field), fn error -> content_tag(:...
32.208333
75
0.664942
c8a1611a919d65456f125a258b72fe52c9cffc6d
3,185
ex
Elixir
backend/lib/edgehog_web/schema/os_management_types.ex
harlem88/edgehog
7a278d119c3d592431fdbba406207376e194f7eb
[ "Apache-2.0" ]
null
null
null
backend/lib/edgehog_web/schema/os_management_types.ex
harlem88/edgehog
7a278d119c3d592431fdbba406207376e194f7eb
[ "Apache-2.0" ]
null
null
null
backend/lib/edgehog_web/schema/os_management_types.ex
harlem88/edgehog
7a278d119c3d592431fdbba406207376e194f7eb
[ "Apache-2.0" ]
null
null
null
# # This file is part of Edgehog. # # Copyright 2022 SECO Mind Srl # # 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 app...
29.766355
90
0.702983
c8a16d80bc753f202f552205663d4b83b22a5f7b
941
ex
Elixir
lib/layers/queries/queries/insert_one.ex
haskric/mongo_agile
393e1e96f706e3580f6bac9ff7bcc081b0a2e4eb
[ "MIT" ]
1
2020-12-30T18:30:32.000Z
2020-12-30T18:30:32.000Z
lib/layers/queries/queries/insert_one.ex
haskric/mongo_agile
393e1e96f706e3580f6bac9ff7bcc081b0a2e4eb
[ "MIT" ]
null
null
null
lib/layers/queries/queries/insert_one.ex
haskric/mongo_agile
393e1e96f706e3580f6bac9ff7bcc081b0a2e4eb
[ "MIT" ]
null
null
null
defmodule MongoAgile.Queries.InsertOne do @moduledoc false use MapSchema, atomize: true, schema: %{ :base => "<query_base>", :doc => :map, :opts => :keyword }, custom_types: %{ "<query_base>" => MongoAgile.Queries.Helper.Base.Type } use MongoAgile.Queries.Helper.Common use MongoAg...
22.404762
79
0.642933
c8a186502ea13284dedd0926bdcd5c1aea665341
1,314
ex
Elixir
lib/dialyxir/warnings/contract_with_opaque.ex
gabrielpra1/dialyxir
b3fb59c566fce5dd2975a5abf01556b29bf53a38
[ "Apache-2.0" ]
null
null
null
lib/dialyxir/warnings/contract_with_opaque.ex
gabrielpra1/dialyxir
b3fb59c566fce5dd2975a5abf01556b29bf53a38
[ "Apache-2.0" ]
null
null
null
lib/dialyxir/warnings/contract_with_opaque.ex
gabrielpra1/dialyxir
b3fb59c566fce5dd2975a5abf01556b29bf53a38
[ "Apache-2.0" ]
null
null
null
defmodule Dialyxir.Warnings.ContractWithOpaque do @behaviour Dialyxir.Warning @impl Dialyxir.Warning @spec warning() :: :contract_with_opaque def warning(), do: :contract_with_opaque @impl Dialyxir.Warning @spec format_short([String.t()]) :: String.t() def format_short([_module, function | _]) do "T...
25.269231
94
0.671994
c8a193484a5789562c8f1a2d02bae3b05291a902
733
ex
Elixir
lib/utils.ex
massivefermion/Enux
19c95a0c75b3b2285452210d6e5c84b3376d8788
[ "Apache-2.0" ]
1
2021-07-10T07:16:13.000Z
2021-07-10T07:16:13.000Z
lib/utils.ex
massivefermion/enux
19c95a0c75b3b2285452210d6e5c84b3376d8788
[ "Apache-2.0" ]
null
null
null
lib/utils.ex
massivefermion/enux
19c95a0c75b3b2285452210d6e5c84b3376d8788
[ "Apache-2.0" ]
null
null
null
defmodule Enux.Utils do @moduledoc """ Some useful functions """ @doc """ raises an error if a key starts with a digit """ def handle_number(key) when is_binary(key) do case key |> String.first() |> Integer.parse() do {_, ""} -> raise "#{key} starts with a digit" :error -> key end e...
23.645161
109
0.638472
c8a198bb5d884b0a72e74dca82a0c680dd6862b4
1,046
exs
Elixir
priv/repo/migrations/20161019090945_add_stripe_customers_cards_tables.exs
fikape/code-corps-api
c21674b0b2a19fa26945c94268db8894420ca181
[ "MIT" ]
275
2015-06-23T00:20:51.000Z
2021-08-19T16:17:37.000Z
priv/repo/migrations/20161019090945_add_stripe_customers_cards_tables.exs
fikape/code-corps-api
c21674b0b2a19fa26945c94268db8894420ca181
[ "MIT" ]
1,304
2015-06-26T02:11:54.000Z
2019-12-12T21:08:00.000Z
priv/repo/migrations/20161019090945_add_stripe_customers_cards_tables.exs
fikape/code-corps-api
c21674b0b2a19fa26945c94268db8894420ca181
[ "MIT" ]
140
2016-01-01T18:19:47.000Z
2020-11-22T06:24:47.000Z
defmodule CodeCorps.Repo.Migrations.AddStripeCustomersCardsTables do use Ecto.Migration def change do create table(:stripe_customers) do add :created, :utc_datetime add :currency, :string add :delinquent, :boolean add :email, :string add :id_from_stripe, :string, null: false ...
26.820513
72
0.67304
c8a1c2894cc0bf01dd1b5f368a282ae80bc0c51c
158
ex
Elixir
lib/media_sample/enums/static_page_type.ex
kenta-aktsk/media_sample
a0368236bd81c18ac136a54aa7383332a5e3cf36
[ "MIT" ]
99
2016-04-19T11:11:57.000Z
2021-12-12T14:38:02.000Z
lib/media_sample/enums/static_page_type.ex
ogamw/media_sample
a0368236bd81c18ac136a54aa7383332a5e3cf36
[ "MIT" ]
48
2016-04-06T02:28:46.000Z
2016-05-31T06:56:56.000Z
lib/media_sample/enums/static_page_type.ex
ogamw/media_sample
a0368236bd81c18ac136a54aa7383332a5e3cf36
[ "MIT" ]
32
2016-04-19T11:12:00.000Z
2021-03-25T18:19:52.000Z
defmodule MediaSample.Enums.StaticPageType do use ExEnum row id: 1, type: :about, root: "about" row id: 2, type: :faq, root: "faq" accessor :type end
22.571429
45
0.689873
c8a1e86d4fc27d5f1f1a694802bfc2c8c98f8b7c
4,858
ex
Elixir
clients/alert_center/lib/google_api/alert_center/v1beta1/model/alert.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/alert_center/lib/google_api/alert_center/v1beta1/model/alert.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/alert_center/lib/google_api/alert_center/v1beta1/model/alert.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...
58.53012
666
0.702758
c8a1f046b6ff61a8b47533a1d3d2ec59dc3c7ba1
1,573
ex
Elixir
lib/ex_appointment/accounts/user_notifier.ex
amalgamated-tools/ex_appointment
095237f0bd6746afd8ec93d92540158aa1934075
[ "MIT" ]
1
2021-03-28T17:41:37.000Z
2021-03-28T17:41:37.000Z
lib/ex_appointment/accounts/user_notifier.ex
amalgamated-tools/ex_appointment
095237f0bd6746afd8ec93d92540158aa1934075
[ "MIT" ]
null
null
null
lib/ex_appointment/accounts/user_notifier.ex
amalgamated-tools/ex_appointment
095237f0bd6746afd8ec93d92540158aa1934075
[ "MIT" ]
null
null
null
defmodule ExAppointment.Accounts.UserNotifier do # For simplicity, this module simply logs messages to the terminal. # You should replace it by a proper email or notification tool, such as: # # * Swoosh - https://hexdocs.pm/swoosh # * Bamboo - https://hexdocs.pm/bamboo # defp deliver(to, body) do ...
21.256757
74
0.567705
c8a1f8ee6a0ad3388905c0bcf249dfba185473f7
657
exs
Elixir
test/credo/check/refactor/regex_multiple_spaces_test.exs
sevenseacat/credo
48837401040d9c2340b5fb9c7d786d31f89f6426
[ "MIT" ]
null
null
null
test/credo/check/refactor/regex_multiple_spaces_test.exs
sevenseacat/credo
48837401040d9c2340b5fb9c7d786d31f89f6426
[ "MIT" ]
null
null
null
test/credo/check/refactor/regex_multiple_spaces_test.exs
sevenseacat/credo
48837401040d9c2340b5fb9c7d786d31f89f6426
[ "MIT" ]
null
null
null
defmodule Credo.Check.Refactor.RegexMultipleSpacesTest do use Credo.TestHelper @described_check Credo.Check.Refactor.RegexMultipleSpaces @moduletag :to_be_implemented # # cases NOT raising issues # test "it should NOT report expected code" do """ defmodule CredoSampleModule do def my_fun do rege...
18.771429
59
0.722983
c8a232e37f7bab330cf9cb893f91ff39a2e502ab
366
ex
Elixir
lib/dlex/field.ex
jamilabreu/dlex
ed5cb4abd8e05f671ab81ed499bc3f75b5fcd19c
[ "Apache-2.0" ]
null
null
null
lib/dlex/field.ex
jamilabreu/dlex
ed5cb4abd8e05f671ab81ed499bc3f75b5fcd19c
[ "Apache-2.0" ]
null
null
null
lib/dlex/field.ex
jamilabreu/dlex
ed5cb4abd8e05f671ab81ed499bc3f75b5fcd19c
[ "Apache-2.0" ]
null
null
null
defmodule Dlex.Field do @type type :: :integer | :float | :string | :boolean | :datetime | :geo | :password | :uid | :auto @type t :: %__MODULE__{ name: atom(), type: type(), db_name: String.t(), alter: map() | nil, opts: Keyword.t() } defstruc...
24.4
94
0.5
c8a239d8a26501507e943fa562b682ad0f16e882
820
exs
Elixir
test/thrift/generator/utils_test.exs
rchallapalli/elixir-thrift
729e3f616947a6c75762252bb2726221eea2e31b
[ "Apache-2.0" ]
null
null
null
test/thrift/generator/utils_test.exs
rchallapalli/elixir-thrift
729e3f616947a6c75762252bb2726221eea2e31b
[ "Apache-2.0" ]
null
null
null
test/thrift/generator/utils_test.exs
rchallapalli/elixir-thrift
729e3f616947a6c75762252bb2726221eea2e31b
[ "Apache-2.0" ]
null
null
null
defmodule Thrift.Generator.UtilsTest do use ExUnit.Case, async: true import Thrift.Generator.Utils defmacro check(input, expected_output) do input_source = Macro.to_string(optimize_iolist(input)) expected_output_source = Macro.to_string(expected_output) assert input_source == expected_output_source ...
34.166667
61
0.471951
c8a2409b1ce01c415e671f78ce67dbec0935289c
867
ex
Elixir
test/support/conn_case.ex
savonarola/smppex_web
62918d927e3db6b967c7a0719afaab7b1ac229c6
[ "Apache-2.0" ]
4
2016-09-20T19:53:31.000Z
2021-08-16T02:04:02.000Z
test/support/conn_case.ex
savonarola/smppex_web
62918d927e3db6b967c7a0719afaab7b1ac229c6
[ "Apache-2.0" ]
3
2020-05-03T21:22:42.000Z
2020-07-17T09:30:04.000Z
test/support/conn_case.ex
savonarola/smppex_web
62918d927e3db6b967c7a0719afaab7b1ac229c6
[ "Apache-2.0" ]
3
2020-10-12T02:57:32.000Z
2021-08-16T02:04:04.000Z
defmodule SmppexWeb.ConnCase do @moduledoc """ This module defines the test case to be used by tests that require setting up a connection. Such tests rely on `Phoenix.ConnTest` and also import other functionality to make it easier to build and query models. Finally, if the test case interacts with the d...
24.083333
56
0.720877
c8a274b68fa26fbfdcafaf095612c0811fe76bb4
963
ex
Elixir
lib/anchore_engine_api_server/model/policy_bundle_record.ex
michaeljguarino/anchore-elixir-client
156a44f429ecb62433729a2b4c52de5dc0ef44d2
[ "MIT" ]
null
null
null
lib/anchore_engine_api_server/model/policy_bundle_record.ex
michaeljguarino/anchore-elixir-client
156a44f429ecb62433729a2b4c52de5dc0ef44d2
[ "MIT" ]
null
null
null
lib/anchore_engine_api_server/model/policy_bundle_record.ex
michaeljguarino/anchore-elixir-client
156a44f429ecb62433729a2b4c52de5dc0ef44d2
[ "MIT" ]
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 AnchoreEngineAPIServer.Model.PolicyBundleRecord do @moduledoc """ A policy bundle plus some metadata """ @derive [Poison.Encoder] defst...
24.075
94
0.703011
c8a284999b7fd42f116bd46ad9dc45f24292812f
3,805
ex
Elixir
lib/credo/cli/command/suggest/suggest_command.ex
jc00ke/credo
bd0be751888dea402af6b16cbb675b53eaa49c83
[ "MIT" ]
null
null
null
lib/credo/cli/command/suggest/suggest_command.ex
jc00ke/credo
bd0be751888dea402af6b16cbb675b53eaa49c83
[ "MIT" ]
null
null
null
lib/credo/cli/command/suggest/suggest_command.ex
jc00ke/credo
bd0be751888dea402af6b16cbb675b53eaa49c83
[ "MIT" ]
null
null
null
defmodule Credo.CLI.Command.Suggest.SuggestCommand do @moduledoc false alias Credo.Check.Params alias Credo.CLI.Command.Suggest.SuggestOutput alias Credo.CLI.Switch alias Credo.CLI.Task alias Credo.Execution use Credo.CLI.Command, short_description: "Suggest code objects to look at next (default)", ...
29.726563
101
0.683837
c8a2eac9c15ccf93a25458166a4be76b42583963
7,682
ex
Elixir
clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p2beta1_annotate_image_response.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p2beta1_annotate_image_response.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p2beta1_annotate_image_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...
51.905405
298
0.749935
c8a2eaea0ac808a9875984f7ca3712be85866345
549
ex
Elixir
apps/firestorm_data/lib/firestorm_data/schema/user.ex
CircleCI-Public/firestorm
9ca2c46a2b2377370347ad94d6003eeb77be38d6
[ "MIT" ]
10
2017-06-28T08:06:52.000Z
2022-03-19T17:49:21.000Z
apps/firestorm_data/lib/firestorm_data/schema/user.ex
CircleCI-Public/firestorm
9ca2c46a2b2377370347ad94d6003eeb77be38d6
[ "MIT" ]
null
null
null
apps/firestorm_data/lib/firestorm_data/schema/user.ex
CircleCI-Public/firestorm
9ca2c46a2b2377370347ad94d6003eeb77be38d6
[ "MIT" ]
2
2017-10-21T12:01:02.000Z
2021-01-29T10:26:22.000Z
defmodule FirestormData.User do @moduledoc """ A user in our system """ use Ecto.Schema import Ecto.Changeset import FirestormData.{View} schema "users" do field :username, :string field :name, :string field :email, :string timestamps() end @required_fields ~w(username email)a @o...
19.607143
57
0.68306
c8a3053091975015d52e2a1e4ae2fd8ae6819a11
55,029
ex
Elixir
lib/plug/conn.ex
tomciopp/plug
af7fba19e8bce208129d858b924c7a49b93beef1
[ "Apache-2.0" ]
null
null
null
lib/plug/conn.ex
tomciopp/plug
af7fba19e8bce208129d858b924c7a49b93beef1
[ "Apache-2.0" ]
null
null
null
lib/plug/conn.ex
tomciopp/plug
af7fba19e8bce208129d858b924c7a49b93beef1
[ "Apache-2.0" ]
null
null
null
alias Plug.Conn.Unfetched defmodule Plug.Conn do @moduledoc """ The Plug connection. This module defines a `Plug.Conn` struct and the main functions for working with Plug connections. Note request headers are normalized to lowercase and response headers are expected to have lowercase keys. ## Request ...
33.030612
105
0.669174
c8a30d70b27a676613f765cd38ff9b0ded8c6ec4
564
ex
Elixir
lib/gutenex/geometry/line.ex
jbowtie/gutenex
28ea1dfd3453da924838c30a0c538598c9d17bb2
[ "MIT" ]
6
2017-06-25T03:21:40.000Z
2021-01-26T14:45:07.000Z
lib/gutenex/geometry/line.ex
jbowtie/gutenex
28ea1dfd3453da924838c30a0c538598c9d17bb2
[ "MIT" ]
null
null
null
lib/gutenex/geometry/line.ex
jbowtie/gutenex
28ea1dfd3453da924838c30a0c538598c9d17bb2
[ "MIT" ]
1
2017-11-18T10:20:09.000Z
2017-11-18T10:20:09.000Z
defmodule Gutenex.Geometry.Line do import Gutenex.Geometry def line_width(number) do "#{number} w q " end def line({from_point, to_point}) do move_to(from_point) <> draw_line(to_point) <> "S\n" end def line({from_x, from_y}, {to_x, to_y}) do line({{from_x, from_y}, {to_x, to_y}}) end def...
20.142857
55
0.641844
c8a31cecc2008a17c4314a30e436c2bc4b3909af
460
exs
Elixir
priv/repo/migrations/20161209192504_create_task_list.exs
superdev999/Phoenix-project
ab13ac9366cdd0aa9581da7faf993b11aaa5344c
[ "MIT" ]
275
2015-06-23T00:20:51.000Z
2021-08-19T16:17:37.000Z
priv/repo/migrations/20161209192504_create_task_list.exs
superdev999/Phoenix-project
ab13ac9366cdd0aa9581da7faf993b11aaa5344c
[ "MIT" ]
1,304
2015-06-26T02:11:54.000Z
2019-12-12T21:08:00.000Z
priv/repo/migrations/20161209192504_create_task_list.exs
superdev999/Phoenix-project
ab13ac9366cdd0aa9581da7faf993b11aaa5344c
[ "MIT" ]
140
2016-01-01T18:19:47.000Z
2020-11-22T06:24:47.000Z
defmodule CodeCorps.Repo.Migrations.CreateTaskList do use Ecto.Migration def change do create table(:task_lists) do add :name, :string add :order, :integer add :project_id, references(:projects, on_delete: :nothing) timestamps() end create index(:task_lists, [:project_id]) ...
21.904762
69
0.671739
c8a338d0d5472c26e7cd7dca767b21e333b67c25
1,905
ex
Elixir
clients/health_care/lib/google_api/health_care/v1beta1/model/import_annotations_request.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/health_care/lib/google_api/health_care/v1beta1/model/import_annotations_request.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/health_care/lib/google_api/health_care/v1beta1/model/import_annotations_request.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "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.1
251
0.771654
c8a3976276dbb303fdedff30c00e3893f04d62d8
1,101
ex
Elixir
03-loops/factorial.ex
kranfix/elixir-playground
28f1314b137eb591946f501647e76d8017070ffa
[ "MIT" ]
null
null
null
03-loops/factorial.ex
kranfix/elixir-playground
28f1314b137eb591946f501647e76d8017070ffa
[ "MIT" ]
null
null
null
03-loops/factorial.ex
kranfix/elixir-playground
28f1314b137eb591946f501647e76d8017070ffa
[ "MIT" ]
1
2020-11-17T07:06:17.000Z
2020-11-17T07:06:17.000Z
defmodule Factorial do def classic(n) when is_integer(n) do cond do n < 2 -> 1 true -> n * fac1(n - 1) end end # acc = 1; # for(int i = 0; i < n; i++){ # acc *= (i + 1); // acc = acc * (i + 1) # } # return acc; defp facp1(n, i, acc) when is_integer(n) do ## if i < n do ## ...
19.660714
55
0.491371
c8a3b5cc5357f37805008ca7bb65aa812c3e17c8
3,630
ex
Elixir
test/support/mocked_server/router/applicaiton/nests.ex
kintu-games/elidactyl
2d95694ef4a85c72e962379d8d12fc08bd8352ac
[ "MIT" ]
null
null
null
test/support/mocked_server/router/applicaiton/nests.ex
kintu-games/elidactyl
2d95694ef4a85c72e962379d8d12fc08bd8352ac
[ "MIT" ]
null
null
null
test/support/mocked_server/router/applicaiton/nests.ex
kintu-games/elidactyl
2d95694ef4a85c72e962379d8d12fc08bd8352ac
[ "MIT" ]
null
null
null
defmodule Elidactyl.MockedServer.Router.Application.Nests do @moduledoc false use Plug.Router import Elidactyl.MockedServer.Router.Utils alias Elidactyl.MockedServer alias Elidactyl.MockedServer.ExternalSchema.List, as: ExternalList alias Elidactyl.MockedServer.ExternalSchema.NullResource alias Elidacty...
30.504202
94
0.649311
c8a3c5923b028766247b553702cf6fb1eabe0a8f
41,585
ex
Elixir
lib/brando_admin/components/form/module_props.ex
univers-agency/brando
69c3c52498a3f64518da3522cd9f27294a52cc68
[ "Apache-2.0" ]
1
2020-04-26T09:53:02.000Z
2020-04-26T09:53:02.000Z
lib/brando_admin/components/form/module_props.ex
univers-agency/brando
69c3c52498a3f64518da3522cd9f27294a52cc68
[ "Apache-2.0" ]
198
2019-08-20T16:16:07.000Z
2020-07-03T15:42:07.000Z
lib/brando_admin/components/form/module_props.ex
univers-agency/brando
69c3c52498a3f64518da3522cd9f27294a52cc68
[ "Apache-2.0" ]
null
null
null
defmodule BrandoAdmin.Components.Form.ModuleProps do use BrandoAdmin, :live_component use Phoenix.HTML import Brando.Gettext import BrandoAdmin.Components.Form.Input.Blocks.Utils alias BrandoAdmin.Components.Content alias BrandoAdmin.Components.Form alias BrandoAdmin.Components.Form.Input alias BrandoAd...
56.044474
538
0.392666
c8a3e35975675877b6b640133df2422856265181
3,957
ex
Elixir
clients/security_center/lib/google_api/security_center/v1/model/security_center_properties.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/security_center/lib/google_api/security_center/v1/model/security_center_properties.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/security_center/lib/google_api/security_center/v1/model/security_center_properties.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...
55.732394
298
0.727824
c8a3f57ef4a9c84c884e28ba0eaf6239266ae708
732
ex
Elixir
servy/lib/servy/bear_controller.ex
kfr2/elixir-experiments
b9aace74d5e352c505440f3a6e493dd714113fac
[ "MIT" ]
null
null
null
servy/lib/servy/bear_controller.ex
kfr2/elixir-experiments
b9aace74d5e352c505440f3a6e493dd714113fac
[ "MIT" ]
null
null
null
servy/lib/servy/bear_controller.ex
kfr2/elixir-experiments
b9aace74d5e352c505440f3a6e493dd714113fac
[ "MIT" ]
null
null
null
defmodule Servy.BearController do alias Servy.WildThings alias Servy.Bear alias Servy.BearView def index(conv) do bears = WildThings.list_bears() |> Enum.sort(&Bear.order_asc_by_name(&1, &2)) %{ conv | status: 200, resp_body: BearView.index(bears) } end def show(conv, %{"id" => id}) d...
26.142857
80
0.621585
c8a40ecebc3d2eaff0da151922e1e3ce7632aa19
1,107
exs
Elixir
test/commands/outdated_test.exs
AnilRedshift/wand-cli
c364cf5397353fd61ba0e5fc33225575eb72ccda
[ "BSD-3-Clause" ]
3
2018-07-01T05:31:02.000Z
2019-08-03T04:11:32.000Z
test/commands/outdated_test.exs
AnilRedshift/wand-cli
c364cf5397353fd61ba0e5fc33225575eb72ccda
[ "BSD-3-Clause" ]
8
2018-06-28T07:30:04.000Z
2018-07-13T07:36:56.000Z
test/commands/outdated_test.exs
AnilRedshift/wand-cli
c364cf5397353fd61ba0e5fc33225575eb72ccda
[ "BSD-3-Clause" ]
null
null
null
defmodule OutdatedTest do use ExUnit.Case, async: true import Mox alias Wand.CLI.Commands.Outdated alias Wand.Test.Helpers alias Wand.CLI.Executor.Result describe "validate" do test "returns help when arguments are given" do assert Outdated.validate(["outdated", "poison"]) == {:error, :wrong_comm...
20.886792
82
0.634146
c8a44d3a139c8079744e4567d8ac4fb123a77302
2,015
ex
Elixir
clients/compute/lib/google_api/compute/v1/model/forwarding_rule_list_warning_data.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/forwarding_rule_list_warning_data.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/forwarding_rule_list_warning_data.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...
40.3
527
0.740447
c8a46b80294c69665e4d592b8a116bc21c7bd6cf
126
exs
Elixir
spec/spec_helper.exs
eboskma/membrane_core
e216994fe1ba99c5d228a4b0959faa5fabb13b1c
[ "Apache-2.0" ]
515
2018-06-18T11:09:44.000Z
2020-07-31T07:54:35.000Z
spec/spec_helper.exs
eboskma/membrane_core
e216994fe1ba99c5d228a4b0959faa5fabb13b1c
[ "Apache-2.0" ]
120
2018-06-07T08:34:06.000Z
2020-07-30T07:09:50.000Z
spec/spec_helper.exs
eboskma/membrane_core
e216994fe1ba99c5d228a4b0959faa5fabb13b1c
[ "Apache-2.0" ]
13
2018-07-27T11:58:15.000Z
2020-05-06T15:19:55.000Z
# A hack to silence logs for testing, since ESpec doesn't allow capturing logs Logger.remove_backend(:console) ESpec.start()
25.2
78
0.785714
c8a48b003b0b6ee4a159b9dfc891294ab26f87fb
9,295
exs
Elixir
test/reanix_web/controllers/user_controller_test.exs
RubyFireStudio/phoenix-api-scaffold
231c11fe6008a47d51e24b8e26fb6f5dc7a24ca6
[ "MIT" ]
null
null
null
test/reanix_web/controllers/user_controller_test.exs
RubyFireStudio/phoenix-api-scaffold
231c11fe6008a47d51e24b8e26fb6f5dc7a24ca6
[ "MIT" ]
null
null
null
test/reanix_web/controllers/user_controller_test.exs
RubyFireStudio/phoenix-api-scaffold
231c11fe6008a47d51e24b8e26fb6f5dc7a24ca6
[ "MIT" ]
null
null
null
defmodule ReanixWeb.UserControllerTest do use ReanixWeb.ConnCase import Ecto.Query, only: [from: 2] alias Reanix.Accounts alias Reanix.Accounts.User @create_attrs %{ name: "Test Name", email: "test@test.com", password: "password", username: "username" } @create_attrs2 %{ name: "Test...
33.315412
94
0.602152
c8a4a2f5546276d5e058df89db1654684f2f1e0e
531
ex
Elixir
rocketpay/lib/rocketpay_web/controllers/welcome_controller.ex
alfredots/next-level-week-4-elixir
ea47b53a27540454efba2f3007125ee5964a760e
[ "MIT" ]
null
null
null
rocketpay/lib/rocketpay_web/controllers/welcome_controller.ex
alfredots/next-level-week-4-elixir
ea47b53a27540454efba2f3007125ee5964a760e
[ "MIT" ]
null
null
null
rocketpay/lib/rocketpay_web/controllers/welcome_controller.ex
alfredots/next-level-week-4-elixir
ea47b53a27540454efba2f3007125ee5964a760e
[ "MIT" ]
null
null
null
defmodule RocketpayWeb.WelcomeController do use RocketpayWeb, :controller alias RocketPay.Numbers def index(conn, %{"filename"=>filename}) do filename |> Numbers.sum_from_file() |> handle_response(conn) end defp handle_response({:ok, %{result: result}}, conn) do conn |> put_status(:ok) ...
22.125
82
0.66855
c8a4b2b68500fc334bdc60ade61ac8d8eef06592
3,252
ex
Elixir
lib/off_broadway_mqtt/queue.ex
tymoor/off_broadway_mqtt
2066a62a400ea40a86fc8fdd1d588d8406bd95be
[ "Apache-2.0" ]
11
2019-07-03T00:54:04.000Z
2021-12-13T22:24:09.000Z
lib/off_broadway_mqtt/queue.ex
tymoor/off_broadway_mqtt
2066a62a400ea40a86fc8fdd1d588d8406bd95be
[ "Apache-2.0" ]
1
2020-10-17T02:25:56.000Z
2020-11-14T01:51:15.000Z
lib/off_broadway_mqtt/queue.ex
tymoor/off_broadway_mqtt
2066a62a400ea40a86fc8fdd1d588d8406bd95be
[ "Apache-2.0" ]
5
2019-08-09T03:14:29.000Z
2022-03-22T21:39:02.000Z
defmodule OffBroadway.MQTT.Queue do @moduledoc """ Implemens a inmemory queue to buffer incoming messages for a subscription from a MQTT broker. """ use GenServer alias OffBroadway.MQTT alias OffBroadway.MQTT.Config alias OffBroadway.MQTT.Telemetry @typedoc "Type for queue_names" @type name :: Off...
25.809524
75
0.636839
c8a4cbf4248e065d83197f9201ae11c0c363e374
1,845
ex
Elixir
lib/playground/learnables.ex
EasterPeanut/phoenix-playground
391e52c7cf805d8acabb265989c801923438c624
[ "MIT" ]
null
null
null
lib/playground/learnables.ex
EasterPeanut/phoenix-playground
391e52c7cf805d8acabb265989c801923438c624
[ "MIT" ]
null
null
null
lib/playground/learnables.ex
EasterPeanut/phoenix-playground
391e52c7cf805d8acabb265989c801923438c624
[ "MIT" ]
null
null
null
defmodule Playground.Learnables do @moduledoc """ The Learnables context. """ import Ecto.Query, warn: false alias Playground.Repo alias Playground.Learnables.Article @doc """ Returns the list of articles. ## Examples iex> list_articles() [%Article{}, ...] """ def list_articles d...
17.571429
62
0.60542
c8a4ce8f449d0c71f1fe77a4e9bf6be580a3c33f
707
ex
Elixir
lib/price_tracker_web/router.ex
kevinbenard/price_tracker
0a7248edd4afca21f00e8b0fc05561f97799c0ca
[ "MIT" ]
null
null
null
lib/price_tracker_web/router.ex
kevinbenard/price_tracker
0a7248edd4afca21f00e8b0fc05561f97799c0ca
[ "MIT" ]
null
null
null
lib/price_tracker_web/router.ex
kevinbenard/price_tracker
0a7248edd4afca21f00e8b0fc05561f97799c0ca
[ "MIT" ]
null
null
null
defmodule PriceTrackerWeb.Router do use PriceTrackerWeb, :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 "/", PriceTrackerW...
23.566667
59
0.712871
c8a4db75cee71c33891ecda67073bc6c37047e8b
6,568
exs
Elixir
test/lib/cryptozaur/connectors/leverex_test.exs
DenisGorbachev/crypto-cli
94e5097ff24237fbc5fdd3fea371a5c9a1f727e4
[ "MIT" ]
5
2018-09-19T09:13:15.000Z
2021-10-20T23:29:57.000Z
test/lib/cryptozaur/connectors/leverex_test.exs
DenisGorbachev/crypto-cli
94e5097ff24237fbc5fdd3fea371a5c9a1f727e4
[ "MIT" ]
6
2018-07-29T05:33:02.000Z
2018-09-18T20:42:19.000Z
test/lib/cryptozaur/connectors/leverex_test.exs
DenisGorbachev/crypto-cli
94e5097ff24237fbc5fdd3fea371a5c9a1f727e4
[ "MIT" ]
3
2018-07-24T05:55:04.000Z
2018-09-19T09:14:08.000Z
defmodule Cryptozaur.Connectors.LeverexTest do use ExUnit.Case import OK, only: [success: 1] import Cryptozaur.Case alias Cryptozaur.{Repo, Metronome, Connector} alias Cryptozaur.Model.{Balance, Order} setup do :ok = Ecto.Adapters.SQL.Sandbox.checkout(Repo) Ecto.Adapters.SQL.Sandbox.mode(Repo, {:s...
31.576923
104
0.451583
c8a510a780844acfa1f82b5cbb8d1f90e69f07ab
305
exs
Elixir
gateway/config/test.exs
akrisanov/microservices_in_elixir
55829d5e53c8e77f3fb468419a29f1f1f9fa8db0
[ "MIT" ]
null
null
null
gateway/config/test.exs
akrisanov/microservices_in_elixir
55829d5e53c8e77f3fb468419a29f1f1f9fa8db0
[ "MIT" ]
null
null
null
gateway/config/test.exs
akrisanov/microservices_in_elixir
55829d5e53c8e77f3fb468419a29f1f1f9fa8db0
[ "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 config :gateway, endpoints_config: "test/fixtures/config.yaml" config :junit_formatter, report_file: "junit.xml", report_dir: "/tmp", print_report_file: true
25.416667
61
0.770492
c8a52088706591f2bf5e1cd877814bed7f32145e
179
ex
Elixir
test/support/test_schema_ip4.ex
olafura/ecto_ip_range
44c06ca26aafc942a8173941a907c138ae2213bc
[ "Apache-2.0" ]
3
2019-11-14T00:10:40.000Z
2022-01-20T18:12:44.000Z
test/support/test_schema_ip4.ex
olafura/ecto_ip_range
44c06ca26aafc942a8173941a907c138ae2213bc
[ "Apache-2.0" ]
1
2022-01-10T19:27:05.000Z
2022-01-23T12:31:41.000Z
test/support/test_schema_ip4.ex
olafura/ecto_ip_range
44c06ca26aafc942a8173941a907c138ae2213bc
[ "Apache-2.0" ]
2
2020-11-23T07:51:22.000Z
2022-01-09T22:15:20.000Z
defmodule EctoIPRange.TestSchemaIP4 do @moduledoc false use Ecto.Schema alias EctoIPRange.IP4 @primary_key {:address, IP4, []} schema "test_schema_ip4" do end end
13.769231
38
0.731844
c8a52f0c5df69215b875639c1f8b2d6336323909
5,268
ex
Elixir
lib/phoenix/transports/websocket.ex
misfo/phoenix
04464429d9b958e331b2ffe0f0f5926690ab3b56
[ "MIT" ]
null
null
null
lib/phoenix/transports/websocket.ex
misfo/phoenix
04464429d9b958e331b2ffe0f0f5926690ab3b56
[ "MIT" ]
null
null
null
lib/phoenix/transports/websocket.ex
misfo/phoenix
04464429d9b958e331b2ffe0f0f5926690ab3b56
[ "MIT" ]
null
null
null
defmodule Phoenix.Transports.WebSocket do @moduledoc """ Socket transport for websocket clients. ## Configuration The websocket is configurable in your socket: transport :websocket, Phoenix.Transports.WebSocket, timeout: :infinity, serializer: Phoenix.Transports.WebSocketSerializer, ...
29.104972
95
0.664768
c8a55af1cb3df94fd658a3f3f4724e53df506488
192
exs
Elixir
priv/repo/migrations/20160822214328_add_fields_to_resources.exs
nambrot/meetingrooms
6a9612df1dbac16dc4871181ed57e6307e84819b
[ "MIT" ]
null
null
null
priv/repo/migrations/20160822214328_add_fields_to_resources.exs
nambrot/meetingrooms
6a9612df1dbac16dc4871181ed57e6307e84819b
[ "MIT" ]
null
null
null
priv/repo/migrations/20160822214328_add_fields_to_resources.exs
nambrot/meetingrooms
6a9612df1dbac16dc4871181ed57e6307e84819b
[ "MIT" ]
null
null
null
defmodule PhoenixGuardian.Repo.Migrations.AddFieldsToResources do use Ecto.Migration def change do alter table(:resources) do add :user_id, references(:users) end end end
19.2
65
0.739583
c8a56774a30faea6d41e5cc6c66e092123e98730
2,454
ex
Elixir
web/helpers/authentication_helpers.ex
nihonjinrxs/national-voter-file-api
690c40bd46e196cebb6325341f1197a862c38632
[ "MIT" ]
12
2017-03-24T02:58:38.000Z
2020-11-18T15:29:33.000Z
web/helpers/authentication_helpers.ex
nihonjinrxs/national-voter-file-api
690c40bd46e196cebb6325341f1197a862c38632
[ "MIT" ]
22
2016-12-31T17:14:33.000Z
2021-06-09T17:02:59.000Z
web/helpers/authentication_helpers.ex
nihonjinrxs/national-voter-file-api
690c40bd46e196cebb6325341f1197a862c38632
[ "MIT" ]
7
2017-02-27T15:42:55.000Z
2017-10-13T15:26:02.000Z
defmodule NationalVoterFile.AuthenticationHelpers do use Phoenix.Controller import Canary.Plugs, only: [load_resource: 2] import Canada.Can, only: [can?: 3] import Plug.Conn, only: [halt: 1, put_status: 2, assign: 3] alias JaSerializer.Params def handle_unauthorized(conn = %{assigns: %{authorized: true}}...
31.063291
113
0.697229
c8a57d313defdff5723ea7100c46d1106f20f71e
2,216
ex
Elixir
clients/compute/lib/google_api/compute/v1/model/interconnect_attachment_list_warning.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/compute/lib/google_api/compute/v1/model/interconnect_attachment_list_warning.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/compute/lib/google_api/compute/v1/model/interconnect_attachment_list_warning.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 ...
41.037037
194
0.731498
c8a58a54c190f5272e638e8ca3a54cf66c23526c
398
ex
Elixir
apps/faqcheck/lib/faqcheck/sources/helpers/xlsx_helpers.ex
csboling/faqcheck
bc182c365d466c8dcacc6b1a5fe9186a2c912cd4
[ "CC0-1.0" ]
null
null
null
apps/faqcheck/lib/faqcheck/sources/helpers/xlsx_helpers.ex
csboling/faqcheck
bc182c365d466c8dcacc6b1a5fe9186a2c912cd4
[ "CC0-1.0" ]
20
2021-09-08T04:07:31.000Z
2022-03-10T21:52:24.000Z
apps/faqcheck/lib/faqcheck/sources/helpers/xlsx_helpers.ex
csboling/faqcheck
bc182c365d466c8dcacc6b1a5fe9186a2c912cd4
[ "CC0-1.0" ]
null
null
null
defmodule Faqcheck.Sources.XlsxHelpers do def map_xlsx(filename, row_func) do Enum.flat_map( Xlsxir.multi_extract(filename), fn {:ok, sheet_id} -> info = Xlsxir.get_info(sheet_id) mda = Xlsxir.get_mda(sheet_id) rows = Keyword.get(info, :rows) results = Enum.map(1..rows-1, &row...
26.533333
58
0.643216
c8a594919e3ca2c3e68454a502ac98cc9f8aa601
1,027
ex
Elixir
test/support/conn_case.ex
nicksergeant/leather
15b1c9403999737f7a6ee9a1c0349e047805bbe6
[ "MIT" ]
67
2016-10-24T04:11:40.000Z
2021-11-25T16:46:51.000Z
test/support/conn_case.ex
nicksergeant/leather
15b1c9403999737f7a6ee9a1c0349e047805bbe6
[ "MIT" ]
6
2017-08-17T21:43:50.000Z
2021-11-03T13:13:49.000Z
test/support/conn_case.ex
nicksergeant/leather
15b1c9403999737f7a6ee9a1c0349e047805bbe6
[ "MIT" ]
7
2017-08-13T01:43:37.000Z
2022-01-11T04:38:27.000Z
defmodule LeatherWeb.ConnCase do @moduledoc "This module defines the test case to be used by\ntests that require setting up a connection.\n\nSuch tests rely on `Phoenix.ConnTest` and also\nimport other functionality to make it easier\nto build common datastructures and query the data layer.\n\nFinally, if the test ca...
36.678571
483
0.738072
c8a596d67d7eca0d7f808097b9ae04bfc067a3ef
5,153
exs
Elixir
mix.exs
kevinkirkup/prom_ex
d98e5df2b6b7b4b23d5580381fb212c2aca85abd
[ "MIT" ]
null
null
null
mix.exs
kevinkirkup/prom_ex
d98e5df2b6b7b4b23d5580381fb212c2aca85abd
[ "MIT" ]
1
2021-06-25T18:21:34.000Z
2021-06-25T18:21:34.000Z
mix.exs
emoragaf/prom_ex
0bc739a1524bb71f15485ec8b1448afa22309878
[ "MIT" ]
null
null
null
defmodule PromEx.MixProject do use Mix.Project def project do [ app: :prom_ex, version: "1.3.0", elixir: "~> 1.10", name: "PromEx", source_url: "https://github.com/akoutmos/prom_ex", homepage_url: "https://hex.pm/packages/prom_ex", description: "Prometheus metrics and ...
33.461039
190
0.599845
c8a59ba217b25bee7fa3657bc991f1fc50da044a
360
exs
Elixir
priv/repo/migrations/20180110220816_create_expenses.exs
djordje/budget_app.backend
3febe64892e700f3174b8eddbc4b96260c444308
[ "MIT" ]
null
null
null
priv/repo/migrations/20180110220816_create_expenses.exs
djordje/budget_app.backend
3febe64892e700f3174b8eddbc4b96260c444308
[ "MIT" ]
null
null
null
priv/repo/migrations/20180110220816_create_expenses.exs
djordje/budget_app.backend
3febe64892e700f3174b8eddbc4b96260c444308
[ "MIT" ]
null
null
null
defmodule BudgetApp.Repo.Migrations.CreateExpenses do use Ecto.Migration def change do create table(:expenses) do add :amount, :float add :on_date, :naive_datetime add :desc, :text add :currency_id, references(:currencies, on_delete: :nothing) timestamps() end create ind...
21.176471
68
0.677778
c8a5c94ac72d74ffee83bc0bd0b045498b1ea253
56
ex
Elixir
web/views/session_view.ex
cuongkta/login_logout_elixir
71ad24e1077402fa719ce52fb3bc2a77510b1b86
[ "Apache-2.0" ]
null
null
null
web/views/session_view.ex
cuongkta/login_logout_elixir
71ad24e1077402fa719ce52fb3bc2a77510b1b86
[ "Apache-2.0" ]
null
null
null
web/views/session_view.ex
cuongkta/login_logout_elixir
71ad24e1077402fa719ce52fb3bc2a77510b1b86
[ "Apache-2.0" ]
null
null
null
defmodule Blog.SessionView do use Blog.Web, :view end
14
29
0.767857
c8a5d13607ccb006ef0dbc3af5841cea9d0aa3ad
1,808
ex
Elixir
lib/ex_double_entry.ex
CoinbitsInc/ex_double_entry
31adbcaa0be14fb4f4a725fbb9f3ce6ab8402636
[ "MIT" ]
null
null
null
lib/ex_double_entry.ex
CoinbitsInc/ex_double_entry
31adbcaa0be14fb4f4a725fbb9f3ce6ab8402636
[ "MIT" ]
null
null
null
lib/ex_double_entry.ex
CoinbitsInc/ex_double_entry
31adbcaa0be14fb4f4a725fbb9f3ce6ab8402636
[ "MIT" ]
null
null
null
defmodule ExDoubleEntry do @db_schema Application.fetch_env!(:ex_double_entry, :db_schema) @db_table_prefix Application.fetch_env!(:ex_double_entry, :db_table_prefix) @repo Application.fetch_env!(:ex_double_entry, :repo) def db_schema do if ExDoubleEntry.Repo.__adapter__() == Ecto.Adapters.Postgres do ...
28.698413
135
0.698562
c8a5dfc4ecf9f82c014c35f0f57c3f9116dec1bc
885
ex
Elixir
clients/keto/elixir/lib/keto/model/create_relation_tuple_bad_request_body.ex
ory/sdk-generator
958314d130922ad6f20f439b5230141a832231a5
[ "Apache-2.0" ]
null
null
null
clients/keto/elixir/lib/keto/model/create_relation_tuple_bad_request_body.ex
ory/sdk-generator
958314d130922ad6f20f439b5230141a832231a5
[ "Apache-2.0" ]
null
null
null
clients/keto/elixir/lib/keto/model/create_relation_tuple_bad_request_body.ex
ory/sdk-generator
958314d130922ad6f20f439b5230141a832231a5
[ "Apache-2.0" ]
null
null
null
# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). # https://openapi-generator.tech # Do not edit the class manually. defmodule Keto.Model.CreateRelationTupleBadRequestBody do @moduledoc """ CreateRelationTupleBadRequestBody CreateRelationTupleBadRequestBody CreateRelationT...
24.583333
142
0.670056
c8a5f134235fe08e71d76e43c15217c8553fbed1
2,440
ex
Elixir
lib/parser.ex
Fullrate/cwmp_ex
f433b177e3363183e10ed3fa9c9087febbe8c223
[ "Artistic-2.0" ]
3
2017-11-29T05:07:35.000Z
2019-12-18T17:16:41.000Z
lib/parser.ex
Fullrate/cwmp_ex
f433b177e3363183e10ed3fa9c9087febbe8c223
[ "Artistic-2.0" ]
1
2021-12-02T19:35:28.000Z
2022-03-29T09:40:52.000Z
lib/parser.ex
Fullrate/cwmp_ex
f433b177e3363183e10ed3fa9c9087febbe8c223
[ "Artistic-2.0" ]
2
2017-11-29T05:07:30.000Z
2020-11-10T07:10:42.000Z
defmodule CWMP.Protocol.Parser do @moduledoc """ Parsing of CWMP XML messages, and conversion to Elixir data structures. """ alias CWMP.Protocol.Parser.ElemState alias CWMP.Protocol.Parser.State alias CWMP.Protocol.Parser.ParseError @doc """ Parses a CWMP XML envelope and converts it to an Elixir data...
26.521739
97
0.629508
c8a6092414500c26558189aeff0fda15d1a33306
132
exs
Elixir
2020/day22/test/day22_test.exs
faried/advent
1d3817a3c305963ff22e844630bbafd3af242d3e
[ "MIT" ]
null
null
null
2020/day22/test/day22_test.exs
faried/advent
1d3817a3c305963ff22e844630bbafd3af242d3e
[ "MIT" ]
null
null
null
2020/day22/test/day22_test.exs
faried/advent
1d3817a3c305963ff22e844630bbafd3af242d3e
[ "MIT" ]
null
null
null
defmodule Day22Test do use ExUnit.Case doctest Day22 test "greets the world" do assert Day22.hello() == :world end end
14.666667
34
0.69697
c8a637656eb7ddc005ff32a8dc1e80855b3e6ac5
3,003
ex
Elixir
lib/codes/codes_n73.ex
badubizzle/icd_code
4c625733f92b7b1d616e272abc3009bb8b916c0c
[ "Apache-2.0" ]
null
null
null
lib/codes/codes_n73.ex
badubizzle/icd_code
4c625733f92b7b1d616e272abc3009bb8b916c0c
[ "Apache-2.0" ]
null
null
null
lib/codes/codes_n73.ex
badubizzle/icd_code
4c625733f92b7b1d616e272abc3009bb8b916c0c
[ "Apache-2.0" ]
null
null
null
defmodule IcdCode.ICDCode.Codes_N73 do alias IcdCode.ICDCode def _N730 do %ICDCode{full_code: "N730", category_code: "N73", short_code: "0", full_name: "Acute parametritis and pelvic cellulitis", short_name: "Acute parametritis and pelvic cellulitis", category_na...
34.125
78
0.634033
c8a63a8440ccd8bb590d91bafffd10a8ece195de
506
ex
Elixir
test/support/controller/undocumented_controller.ex
Koch-AG/blue_bird
fb84b8746104997c4c2e41ff800f16cf234a2bc9
[ "MIT" ]
null
null
null
test/support/controller/undocumented_controller.ex
Koch-AG/blue_bird
fb84b8746104997c4c2e41ff800f16cf234a2bc9
[ "MIT" ]
null
null
null
test/support/controller/undocumented_controller.ex
Koch-AG/blue_bird
fb84b8746104997c4c2e41ff800f16cf234a2bc9
[ "MIT" ]
null
null
null
defmodule BlueBird.Test.Support.UndocumentedController do @moduledoc """ `BlueBird.Test.Support.UndocumentedController` simulates a Phoenix Framework controller. """ use BlueBird.Controller use Phoenix.Controller @json_response Poison.encode!(%{status: "ok"}) def catchall(conn, params) do body = Map...
28.111111
90
0.717391
c8a661d9561de1d7917529c1f16a98f33472cb7e
718
exs
Elixir
test/gdex/funding_test.exs
fracek/gdex
20c56076991d3eb660bf1e424d6560cc5d96e97f
[ "Apache-2.0" ]
7
2017-12-12T19:08:40.000Z
2021-11-11T04:58:55.000Z
test/gdex/funding_test.exs
fracek/gdex
20c56076991d3eb660bf1e424d6560cc5d96e97f
[ "Apache-2.0" ]
null
null
null
test/gdex/funding_test.exs
fracek/gdex
20c56076991d3eb660bf1e424d6560cc5d96e97f
[ "Apache-2.0" ]
2
2018-11-21T17:05:56.000Z
2019-04-07T19:33:12.000Z
defmodule Gdex.FundingTest do use ExUnit.Case, async: true test "list with no filter" do expected = %Gdex.Request{ method: "GET", path: "/funding", paginated: true, } assert expected == Gdex.Funding.list end test "list with filter" do expected = %Gdex.Request{ method: "...
22.4375
64
0.5961
c8a66d5514518d4763fd684b227bc4e4034a586d
152
exs
Elixir
elixir-primer/v01/ch14/maps6.exs
Atla0903/Study-Elixir
155fbf30e508e513278425b89262a0a444e0936c
[ "Unlicense" ]
null
null
null
elixir-primer/v01/ch14/maps6.exs
Atla0903/Study-Elixir
155fbf30e508e513278425b89262a0a444e0936c
[ "Unlicense" ]
null
null
null
elixir-primer/v01/ch14/maps6.exs
Atla0903/Study-Elixir
155fbf30e508e513278425b89262a0a444e0936c
[ "Unlicense" ]
null
null
null
ages = %{"Alice" => 23, "Bob" => 15 , "Charlie" => 48} #Enum.each ages, fn({name,value}) -> for {name,value} <- ages do IO.puts"#{name}: #{value}" end
30.4
54
0.552632
c8a67b6830b2c2d36b013ef8f228839bb452797a
613
ex
Elixir
lib/spoonerise.ex
srecnig/golf
bd200914fbfee2af8d39b2947156966aac862e43
[ "MIT" ]
null
null
null
lib/spoonerise.ex
srecnig/golf
bd200914fbfee2af8d39b2947156966aac862e43
[ "MIT" ]
null
null
null
lib/spoonerise.ex
srecnig/golf
bd200914fbfee2af8d39b2947156966aac862e43
[ "MIT" ]
null
null
null
defmodule Spoonerise do # http://codegolf.stackexchange.com/questions/69385/spoonerise-words def spoonerise first, second do split_on_vowel = fn word -> String.split_at(word, hd( Regex.run( ~r/[aeiou]/, word, return: :index ) ) |> elem(0) ) end first_splitted = split_on_vowel.(first) second_splitted = split_on...
34.055556
121
0.696574
c8a68765dbf4923713eaa13e8efa84e8d704367a
1,432
exs
Elixir
config/config.exs
sstrollo/website
4f0cc7b2fbfa7bfbdd300abdd13675085b4bd0e4
[ "Apache-2.0" ]
null
null
null
config/config.exs
sstrollo/website
4f0cc7b2fbfa7bfbdd300abdd13675085b4bd0e4
[ "Apache-2.0" ]
null
null
null
config/config.exs
sstrollo/website
4f0cc7b2fbfa7bfbdd300abdd13675085b4bd0e4
[ "Apache-2.0" ]
null
null
null
# This file is responsible for configuring your application # and its dependencies with the aid of the Mix.Config module. # # This configuration file is loaded before any dependency and # is restricted to this project. # General application configuration use Mix.Config # Configures the endpoint config :erlef, ErlefWe...
29.833333
86
0.740223
c8a69d1b01674132588f3ea688ed442180168006
468
ex
Elixir
lib/scheme/printer.ex
jwhiteman/scheme
ce25fb370254c654b6a226e0b0d3eb881ed2cf99
[ "MIT" ]
45
2015-06-26T02:47:21.000Z
2022-02-03T23:18:59.000Z
lib/scheme/printer.ex
jwhiteman/scheme
ce25fb370254c654b6a226e0b0d3eb881ed2cf99
[ "MIT" ]
null
null
null
lib/scheme/printer.ex
jwhiteman/scheme
ce25fb370254c654b6a226e0b0d3eb881ed2cf99
[ "MIT" ]
7
2015-07-13T23:55:52.000Z
2018-02-06T10:39:58.000Z
defmodule Scheme.Printer do def print(l) when is_list(l), do: "(" <> print_helper(l) def print(n) when is_number(n), do: to_string(n) def print(false), do: "#f" def print(true), do: "#t" def print(atom) when is_atom(atom), do: to_string(atom) def print(str) when is_binary(str), do: str defp print_helper...
31.2
66
0.634615
c8a6d685eac1e13098bf6707c9fcbc4f83771568
1,259
ex
Elixir
lib/jukee_web/views/error_helpers.ex
samuelbriole/Jukee
1f0dd7616d63d742fac17daabaf50b406d9dbede
[ "MIT" ]
3
2018-05-17T17:43:06.000Z
2018-06-09T02:12:25.000Z
lib/jukee_web/views/error_helpers.ex
samuelbriole/Jukee
1f0dd7616d63d742fac17daabaf50b406d9dbede
[ "MIT" ]
2
2018-06-04T15:51:36.000Z
2018-06-20T11:31:23.000Z
lib/jukee_web/views/error_helpers.ex
samuelbriole/jukee
1f0dd7616d63d742fac17daabaf50b406d9dbede
[ "MIT" ]
null
null
null
defmodule JukeeWeb.ErrorHelpers do @moduledoc """ Conveniences for translating and building error messages. """ use Phoenix.HTML @doc """ Generates tag for inlined form input errors. """ def error_tag(form, field) do Enum.map(Keyword.get_values(form.errors, field), fn error -> content_tag(:s...
30.707317
74
0.669579
c8a6e72236e07f005b373a1c6b9e4d3e6ae0af9e
854
ex
Elixir
lib/plausible_web/plugs/authorize_stats_plug.ex
pmhoudry/plausible
454feec36e62b866ae86e07a1f4133d9782d4365
[ "MIT" ]
null
null
null
lib/plausible_web/plugs/authorize_stats_plug.ex
pmhoudry/plausible
454feec36e62b866ae86e07a1f4133d9782d4365
[ "MIT" ]
null
null
null
lib/plausible_web/plugs/authorize_stats_plug.ex
pmhoudry/plausible
454feec36e62b866ae86e07a1f4133d9782d4365
[ "MIT" ]
null
null
null
defmodule PlausibleWeb.AuthorizeStatsPlug do import Plug.Conn use Plausible.Repo def init(options) do options end def call(conn, _opts) do site = Repo.get_by(Plausible.Site, domain: conn.params["domain"]) if !site do PlausibleWeb.ControllerHelpers.render_error(conn, 404) |> halt else ...
26.6875
92
0.677986