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
f7233fc626498168f04ef691c1710f481ee2586d
2,314
ex
Elixir
clients/safe_browsing/lib/google_api/safe_browsing/v4/model/threat_list_descriptor.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/safe_browsing/lib/google_api/safe_browsing/v4/model/threat_list_descriptor.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/safe_browsing/lib/google_api/safe_browsing/v4/model/threat_list_descriptor.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 "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...
43.660377
308
0.769231
f7237fb526730fcc157b82ee74edda2874f758ce
2,514
exs
Elixir
config/prod.exs
documents-org/documents.design-el
6976254e175232afe5e913c29b04c13a86d2e9a2
[ "MIT" ]
null
null
null
config/prod.exs
documents-org/documents.design-el
6976254e175232afe5e913c29b04c13a86d2e9a2
[ "MIT" ]
null
null
null
config/prod.exs
documents-org/documents.design-el
6976254e175232afe5e913c29b04c13a86d2e9a2
[ "MIT" ]
null
null
null
use Mix.Config # For production, don't forget to configure the url host # to something meaningful, Phoenix uses this information # when generating URLs. # # Note we also include the path to a cache manifest # containing the digested version of static files. This # manifest is generated by the `mix phx.digest` task, # ...
34.916667
73
0.720764
f7238eeeab6f5e5971ec212e31e1b31bac28da33
1,808
ex
Elixir
clients/cloud_resource_manager/lib/google_api/cloud_resource_manager/v1/model/list_liens_response.ex
nuxlli/elixir-google-api
ecb8679ac7282b7dd314c3e20c250710ec6a7870
[ "Apache-2.0" ]
null
null
null
clients/cloud_resource_manager/lib/google_api/cloud_resource_manager/v1/model/list_liens_response.ex
nuxlli/elixir-google-api
ecb8679ac7282b7dd314c3e20c250710ec6a7870
[ "Apache-2.0" ]
null
null
null
clients/cloud_resource_manager/lib/google_api/cloud_resource_manager/v1/model/list_liens_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 "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...
35.45098
145
0.747235
f72393ccd8271f40ca82258d4d5b7c94490f5773
3,748
ex
Elixir
apps/snitch_core/lib/core/data/model/zone/state_zone.ex
saurabharch/avia
74a82a95cf8bfe8143d1fce8136a3bb7ffc9467c
[ "MIT" ]
1
2018-12-01T18:13:55.000Z
2018-12-01T18:13:55.000Z
apps/snitch_core/lib/core/data/model/zone/state_zone.ex
saurabharch/avia
74a82a95cf8bfe8143d1fce8136a3bb7ffc9467c
[ "MIT" ]
null
null
null
apps/snitch_core/lib/core/data/model/zone/state_zone.ex
saurabharch/avia
74a82a95cf8bfe8143d1fce8136a3bb7ffc9467c
[ "MIT" ]
null
null
null
defmodule Snitch.Data.Model.StateZone do @moduledoc """ StateZone API """ use Snitch.Data.Model use Snitch.Data.Model.Zone import Ecto.Query alias Snitch.Data.Model.Zone, as: ZoneModel alias Snitch.Data.Schema.{State, StateZoneMember, Zone} @doc """ Creates a new state `Zone` whose members are `s...
29.511811
98
0.655016
f7239b6b111623183c0182dddb261c5658709af8
504
ex
Elixir
lib/mix/tasks/phoenix.server.ex
parkerl/phoenix
3dc207222877ce1876a07b8dd8d67fcd0325f7e1
[ "MIT" ]
null
null
null
lib/mix/tasks/phoenix.server.ex
parkerl/phoenix
3dc207222877ce1876a07b8dd8d67fcd0325f7e1
[ "MIT" ]
null
null
null
lib/mix/tasks/phoenix.server.ex
parkerl/phoenix
3dc207222877ce1876a07b8dd8d67fcd0325f7e1
[ "MIT" ]
null
null
null
defmodule Mix.Tasks.Phoenix.Server do use Mix.Task @shortdoc "Starts applications and their servers" @moduledoc """ Starts the application by configuring all endpoints servers to run. """ def run(_args) do Application.put_env(:phoenix, :serve_endpoints, true, persistent: true) Mix.Task.run "app.st...
21.913043
75
0.702381
f723a48aaf15513988c08fd5c3ac2e1fc2457f84
2,519
ex
Elixir
lib/logger_json/formatters/google_cloud_logger.ex
portal-labs/logger_json
17aa009909c9cce8f52da2d21b7145c8c54c5330
[ "MIT" ]
null
null
null
lib/logger_json/formatters/google_cloud_logger.ex
portal-labs/logger_json
17aa009909c9cce8f52da2d21b7145c8c54c5330
[ "MIT" ]
null
null
null
lib/logger_json/formatters/google_cloud_logger.ex
portal-labs/logger_json
17aa009909c9cce8f52da2d21b7145c8c54c5330
[ "MIT" ]
null
null
null
defmodule LoggerJSON.Formatters.GoogleCloudLogger do @moduledoc """ Google Cloud Logger formatter. """ import Jason.Helpers, only: [json_map: 1] alias LoggerJSON.{FormatterUtils, JasonSafeFormatter} @behaviour LoggerJSON.Formatter @processed_metadata_keys ~w[pid file line function module application]a ...
31.098765
102
0.696308
f723aea72c620bb435ec723bd2bcad163440b7cb
3,208
ex
Elixir
lib/fanout_listener.ex
asheehan/extreme
abf3412126b89959f356a118737b2805a5d9f121
[ "MIT" ]
null
null
null
lib/fanout_listener.ex
asheehan/extreme
abf3412126b89959f356a118737b2805a5d9f121
[ "MIT" ]
null
null
null
lib/fanout_listener.ex
asheehan/extreme
abf3412126b89959f356a118737b2805a5d9f121
[ "MIT" ]
null
null
null
defmodule Extreme.FanoutListener do @moduledoc ~S""" Module that uses this listener will connect to stream of event store and wait for new events. In the contrast of Extreme.Listener which will first read existing events (starting from position x) and then keep listening new events. This is similar behavior ...
36.873563
111
0.652431
f723b324a244661599c3d1aa895e9874c3e60457
18,854
ex
Elixir
lib/aws/generated/detective.ex
pecigonzalo/aws-elixir
b52181ebfb9e62349dc8e8067b7fbcd4f7a18c68
[ "Apache-2.0" ]
null
null
null
lib/aws/generated/detective.ex
pecigonzalo/aws-elixir
b52181ebfb9e62349dc8e8067b7fbcd4f7a18c68
[ "Apache-2.0" ]
null
null
null
lib/aws/generated/detective.ex
pecigonzalo/aws-elixir
b52181ebfb9e62349dc8e8067b7fbcd4f7a18c68
[ "Apache-2.0" ]
null
null
null
# WARNING: DO NOT EDIT, AUTO-GENERATED CODE! # See https://github.com/aws-beam/aws-codegen for more details. defmodule AWS.Detective do @moduledoc """ Detective uses machine learning and purpose-built visualizations to help you to analyze and investigate security issues across your Amazon Web Services (Amazon ...
27.767305
101
0.69057
f723d32b827348c3ae93536b0931168d377e3e1f
231
ex
Elixir
lib/absinthe/blueprint/input/raw_value.ex
shamshirz/absinthe
8183e15b2a13ea0ecbe3a1c2899292ab9bd96988
[ "MIT" ]
null
null
null
lib/absinthe/blueprint/input/raw_value.ex
shamshirz/absinthe
8183e15b2a13ea0ecbe3a1c2899292ab9bd96988
[ "MIT" ]
null
null
null
lib/absinthe/blueprint/input/raw_value.ex
shamshirz/absinthe
8183e15b2a13ea0ecbe3a1c2899292ab9bd96988
[ "MIT" ]
null
null
null
defmodule Absinthe.Blueprint.Input.RawValue do @moduledoc false Absinthe.Blueprint.Input.Object @enforce_keys [:content] defstruct [ :content ] @type t :: %__MODULE__{ content: Object.t() } end
15.4
46
0.649351
f723df527e74454c96b5d89f3d7188015694eae9
1,302
ex
Elixir
lib/exboard_web/endpoint.ex
eahanson/exboard
ff2da4d6afd2a01d0e0b54f04198b2e4ffbb48db
[ "MIT" ]
null
null
null
lib/exboard_web/endpoint.ex
eahanson/exboard
ff2da4d6afd2a01d0e0b54f04198b2e4ffbb48db
[ "MIT" ]
2
2021-03-09T18:32:46.000Z
2021-05-10T15:18:35.000Z
lib/exboard_web/endpoint.ex
eahanson/exboard
ff2da4d6afd2a01d0e0b54f04198b2e4ffbb48db
[ "MIT" ]
null
null
null
defmodule ExboardWeb.Endpoint do use Phoenix.Endpoint, otp_app: :exboard socket "/socket", ExboardWeb.UserSocket, websocket: true, longpoll: false # Serve at "/" the static files from "priv/static" directory. # # You should set gzip to true if you are running phx.digest # when deploying your stati...
27.702128
69
0.710445
f723f9fa65844a1e927bc94762df626e1064380f
3,148
exs
Elixir
test/job_board/jobs/jobs_test.exs
TDogVoid/job_board
23793917bd1cc4e68bccce737b971093030a31eb
[ "MIT" ]
null
null
null
test/job_board/jobs/jobs_test.exs
TDogVoid/job_board
23793917bd1cc4e68bccce737b971093030a31eb
[ "MIT" ]
null
null
null
test/job_board/jobs/jobs_test.exs
TDogVoid/job_board
23793917bd1cc4e68bccce737b971093030a31eb
[ "MIT" ]
null
null
null
defmodule JobBoard.JobsTest do use JobBoard.DataCase alias JobBoard.Jobs import JobBoard.TestHelpers describe "jobs" do alias JobBoard.Jobs.Job import JobBoard.TestHelpers @valid_attrs %{title: "some title", link: "http://somelink.com"} @update_attrs %{title: "some updated title", link: "htt...
33.136842
112
0.651842
f7240e6edec7f701f4b9589210549d0466cc327c
220
exs
Elixir
lists-and-recursion/caesar.exs
sfat/programming-elixir-exercises
19e62e3f3344ec044e1eb1b39b195f4dad3dff1c
[ "Apache-2.0" ]
1
2019-02-17T11:54:17.000Z
2019-02-17T11:54:17.000Z
lists-and-recursion/caesar.exs
sfat/programming-elixir-exercises
19e62e3f3344ec044e1eb1b39b195f4dad3dff1c
[ "Apache-2.0" ]
null
null
null
lists-and-recursion/caesar.exs
sfat/programming-elixir-exercises
19e62e3f3344ec044e1eb1b39b195f4dad3dff1c
[ "Apache-2.0" ]
null
null
null
defmodule MyList do def caesar([], _), do: [] def caesar([head | tail], n) when head + n > ?z, do: [?a + head + n - ?z - 1| caesar(tail, n)] def caesar([head | tail], n), do: [head + n | caesar(tail, n)] end
36.666667
98
0.531818
f724194b523e7ea61b1b99bc78d8334265dd672b
941
exs
Elixir
elixir/frontend/config/prod.secret.exs
honeycombio/example-greeting-service
52365a5f2ae434d0b3a84b10889486184042cbc3
[ "Apache-2.0" ]
8
2020-12-29T17:44:16.000Z
2021-11-18T22:18:42.000Z
elixir/frontend/config/prod.secret.exs
honeycombio/example-greeting-service
52365a5f2ae434d0b3a84b10889486184042cbc3
[ "Apache-2.0" ]
36
2021-04-08T14:30:02.000Z
2022-03-30T22:06:44.000Z
elixir/frontend/config/prod.secret.exs
honeycombio/example-greeting-service
52365a5f2ae434d0b3a84b10889486184042cbc3
[ "Apache-2.0" ]
1
2021-04-05T10:52:23.000Z
2021-04-05T10:52:23.000Z
# In this file, we load production configuration and secrets # from environment variables. You can also hardcode secrets, # although such is generally not recommended and you have to # remember to add this file to your .gitignore. use Mix.Config secret_key_base = System.get_env("SECRET_KEY_BASE") || raise """ ...
31.366667
62
0.731137
f7241a873f21a0234c57f0304e20cbf58e26511b
486
exs
Elixir
test/edgedb/protocol/codecs/builtin/local_date_test.exs
f0lio/edgedb-elixir
b285bd8037b0b951aabfa1d1733889880f8bfd66
[ "MIT" ]
30
2021-05-19T08:54:44.000Z
2022-03-11T22:52:25.000Z
test/edgedb/protocol/codecs/builtin/local_date_test.exs
f0lio/edgedb-elixir
b285bd8037b0b951aabfa1d1733889880f8bfd66
[ "MIT" ]
3
2021-11-17T21:26:01.000Z
2022-03-12T09:49:25.000Z
test/edgedb/protocol/codecs/builtin/local_date_test.exs
f0lio/edgedb-elixir
b285bd8037b0b951aabfa1d1733889880f8bfd66
[ "MIT" ]
3
2021-08-29T14:55:41.000Z
2022-03-12T01:30:35.000Z
defmodule Tests.EdgeDB.Protocol.Codecs.Builtin.LocalDateTest do use Tests.Support.EdgeDBCase setup :edgedb_connection test "decoding cal::local_date value", %{conn: conn} do value = ~D[2019-05-06] assert ^value = EdgeDB.query_single!(conn, "SELECT <cal::local_date>'2019-05-06'") end test "encoding...
27
86
0.695473
f72468381f1179d72e30d6cb072b5c57cbe7abdc
526
ex
Elixir
lib/health/router.ex
ARKultur/naboo
ab26c2e82cdc485e23d428fbb1d4798f1fb1388b
[ "MIT" ]
16
2021-12-14T12:25:59.000Z
2021-12-16T21:56:27.000Z
lib/health/router.ex
ARKultur/naboo
ab26c2e82cdc485e23d428fbb1d4798f1fb1388b
[ "MIT" ]
19
2021-12-06T08:35:30.000Z
2022-03-23T18:20:46.000Z
lib/health/router.ex
ARKultur/naboo
ab26c2e82cdc485e23d428fbb1d4798f1fb1388b
[ "MIT" ]
null
null
null
defmodule NabooHealth.Router do use Plug.Router defmodule Health do use Plug.Router plug(:match) plug(:dispatch) forward( "/", to: PlugCheckup, init_opts: PlugCheckup.Options.new( json_encoder: Jason, checks: NabooHealth.checks(), error_code...
16.967742
47
0.577947
f724d477bc0fa91a6141ce89193907017e7959ca
2,037
exs
Elixir
machine_translation/MorpHIN/Learned/Resources/Set4/TrainingInstances/85.exs
AdityaPrasadMishra/NLP--Project-Group-16
fb62cc6a1db4a494058171f11c14a2be3933a9a1
[ "MIT" ]
null
null
null
machine_translation/MorpHIN/Learned/Resources/Set4/TrainingInstances/85.exs
AdityaPrasadMishra/NLP--Project-Group-16
fb62cc6a1db4a494058171f11c14a2be3933a9a1
[ "MIT" ]
null
null
null
machine_translation/MorpHIN/Learned/Resources/Set4/TrainingInstances/85.exs
AdityaPrasadMishra/NLP--Project-Group-16
fb62cc6a1db4a494058171f11c14a2be3933a9a1
[ "MIT" ]
null
null
null
**EXAMPLE FILE** quantifier pnoun cm noun noun; cm quantifier cm noun noun; noun cm cm ordinal cm; noun demonstrative cm noun noun; conj demonstrative noun cm noun; cm cardinal noun verb noun; pnoun P_wh cm noun noun; noun cm cm adjective cm; noun cm cm cm nst; noun cm cm quantifier cm; pn particle noun cm ...
26.454545
42
0.742268
f724f1f80d858e8554f7f2a6760078670e39c0ed
957
ex
Elixir
test/support/channel_case.ex
Foo-x/Shiritorishi
ee9b58f74c51941f958c986578c95c26a9920816
[ "Apache-2.0" ]
null
null
null
test/support/channel_case.ex
Foo-x/Shiritorishi
ee9b58f74c51941f958c986578c95c26a9920816
[ "Apache-2.0" ]
null
null
null
test/support/channel_case.ex
Foo-x/Shiritorishi
ee9b58f74c51941f958c986578c95c26a9920816
[ "Apache-2.0" ]
null
null
null
defmodule ShiritorishiWeb.ChannelCase do @moduledoc """ This module defines the test case to be used by channel tests. Such tests rely on `Phoenix.ChannelTest` and also import other functionality to make it easier to build common datastructures and query the data layer. Finally, if the test case interac...
25.184211
74
0.722048
f724f3c751e0b97973798325b1ac822e163081bd
2,107
ex
Elixir
lib/fun_with_flags/store.ex
chubarovNick/fun_with_flags
d567f2251a4fce91be7a479e8ceafbdc75eeaf47
[ "MIT" ]
null
null
null
lib/fun_with_flags/store.ex
chubarovNick/fun_with_flags
d567f2251a4fce91be7a479e8ceafbdc75eeaf47
[ "MIT" ]
null
null
null
lib/fun_with_flags/store.ex
chubarovNick/fun_with_flags
d567f2251a4fce91be7a479e8ceafbdc75eeaf47
[ "MIT" ]
null
null
null
defmodule FunWithFlags.Store do @moduledoc false require Logger alias FunWithFlags.Store.Cache alias FunWithFlags.{Flag, Config} @persistence FunWithFlags.Store.Persistent.adapter def lookup(flag_name) do case Cache.get(flag_name) do {:ok, flag} -> {:ok, flag} {:miss, reason, sta...
22.414894
123
0.66113
f72515c9296127cd21335b16ee5a32ddffbef8ee
2,578
exs
Elixir
config/test.exs
nerves-hub/nerves_hub_user_api
5d41b1faede4a38c48367a7e7408bf5539cb9d36
[ "Apache-2.0" ]
2
2019-06-18T19:59:13.000Z
2020-01-13T18:45:50.000Z
config/test.exs
nerves-hub/nerves_hub_user_api
5d41b1faede4a38c48367a7e7408bf5539cb9d36
[ "Apache-2.0" ]
9
2019-03-08T19:06:33.000Z
2022-03-16T21:35:04.000Z
config/test.exs
nerves-hub/nerves_hub_core
aeef481f80391ad124fa14349ffa0bde67eb96d6
[ "Apache-2.0" ]
3
2019-11-25T12:15:30.000Z
2021-01-22T16:17:37.000Z
use Mix.Config config :nerves_hub_user_api, ca_store: NervesHubCoreTest.CAStore nerves_hub_web_path = Mix.Project.deps_paths() |> Enum.find(&(elem(&1, 0) == :nerves_hub_web)) |> elem(1) nerves_hub_web_config = Path.join(nerves_hub_web_path, "config/config.exs") if File.exists?(nerves_hub_web_config) do impo...
26.854167
75
0.738169
f7252e0cf73436cf3dde1ca82b48438db241071a
2,630
exs
Elixir
config/config.exs
ikeyasu/antikythera
544fdd22e46b1f34177053d87d9e2a9708c74113
[ "Apache-2.0" ]
null
null
null
config/config.exs
ikeyasu/antikythera
544fdd22e46b1f34177053d87d9e2a9708c74113
[ "Apache-2.0" ]
null
null
null
config/config.exs
ikeyasu/antikythera
544fdd22e46b1f34177053d87d9e2a9708c74113
[ "Apache-2.0" ]
null
null
null
# Copyright(c) 2015-2018 ACCESS CO., LTD. All rights reserved. use Mix.Config for {app, kw} <- Antikythera.MixConfig.all() do config(app, kw) end # Auxiliary variables. repo_tmp_dir_basename = if System.get_env("ANTIKYTHERA_COMPILE_ENV") == "local", do: "local", else: :os.getpid() repo_tmp_dir = Path.join([__DIR__...
43.833333
119
0.73346
f725306658d8ad5cfc96c89adc3ff94a9234cabc
1,683
ex
Elixir
apps/ewallet/lib/ewallet/fetchers/token_fetcher.ex
amadeobrands/ewallet
505b7822721940a7b892a9b35c225e80cc8ac0b4
[ "Apache-2.0" ]
1
2018-12-07T06:21:21.000Z
2018-12-07T06:21:21.000Z
apps/ewallet/lib/ewallet/fetchers/token_fetcher.ex
amadeobrands/ewallet
505b7822721940a7b892a9b35c225e80cc8ac0b4
[ "Apache-2.0" ]
null
null
null
apps/ewallet/lib/ewallet/fetchers/token_fetcher.ex
amadeobrands/ewallet
505b7822721940a7b892a9b35c225e80cc8ac0b4
[ "Apache-2.0" ]
null
null
null
defmodule EWallet.TokenFetcher do @moduledoc """ Handles retrieval of tokens from params for transactions. """ alias EWalletDB.Token def fetch(%{"token_uuid" => token_uuid}) do with %Token{} = token <- Token.get_by(uuid: token_uuid) || :token_not_found, true <- token.enabled || :token_is_disable...
33.66
106
0.632799
f72568d57cae502ba7e13b61df94e2fc38472b11
94
exs
Elixir
test/lib/ecto_cassandra/storage_test.exs
cibingeorge/ecto_cassandra
4a91d94cbe51063c78138f3fa5d64e78f1e436b7
[ "MIT" ]
4
2018-08-24T10:02:56.000Z
2019-10-20T20:21:04.000Z
test/lib/ecto_cassandra/storage_test.exs
cibingeorge/ecto_cassandra
4a91d94cbe51063c78138f3fa5d64e78f1e436b7
[ "MIT" ]
null
null
null
test/lib/ecto_cassandra/storage_test.exs
cibingeorge/ecto_cassandra
4a91d94cbe51063c78138f3fa5d64e78f1e436b7
[ "MIT" ]
2
2018-10-02T09:51:41.000Z
2019-11-15T19:44:35.000Z
defmodule EctoCassandra.StorageTest do @moduledoc false use ExUnit.Case, async: true end
15.666667
38
0.787234
f72573636772277c77d484385b8dba7aaae34ad1
123
ex
Elixir
lib/igdb/resources/keyword.ex
facto/igdb
9662e9ffd41e0925c22b1d3cd4774ae49b68e89e
[ "MIT" ]
2
2018-04-09T07:34:37.000Z
2020-03-08T06:50:03.000Z
lib/igdb/resources/keyword.ex
tomasz-tomczyk/igdb
98d777798503f427e6c302da0251e819b9583c65
[ "MIT" ]
null
null
null
lib/igdb/resources/keyword.ex
tomasz-tomczyk/igdb
98d777798503f427e6c302da0251e819b9583c65
[ "MIT" ]
null
null
null
defmodule Igdb.Keyword do @moduledoc """ Represents a Keyword resource in the IGDB API. """ use Igdb.Resource end
15.375
48
0.707317
f7257c95a4209839ee758b25fcd6cb3efa429a98
1,468
ex
Elixir
lib/club_web/views/error_helpers.ex
vheathen/club.wallprint.pro
d58d2409d8879d23ed4d60fe3b9c2e1bd82e924d
[ "MIT" ]
null
null
null
lib/club_web/views/error_helpers.ex
vheathen/club.wallprint.pro
d58d2409d8879d23ed4d60fe3b9c2e1bd82e924d
[ "MIT" ]
34
2019-11-10T11:31:37.000Z
2019-11-27T21:26:48.000Z
lib/club_web/views/error_helpers.ex
vheathen/club.wallprint.pro
d58d2409d8879d23ed4d60fe3b9c2e1bd82e924d
[ "MIT" ]
null
null
null
defmodule ClubWeb.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(:sp...
32.622222
73
0.668256
f7258f83e618d438f08493a9d23c72f87c3e7864
874
exs
Elixir
config/test.exs
dabaer/liveview-table-test
61d22fb964120aa4715cc0e9ef12f3d5c61718ea
[ "MIT" ]
null
null
null
config/test.exs
dabaer/liveview-table-test
61d22fb964120aa4715cc0e9ef12f3d5c61718ea
[ "MIT" ]
null
null
null
config/test.exs
dabaer/liveview-table-test
61d22fb964120aa4715cc0e9ef12f3d5c61718ea
[ "MIT" ]
null
null
null
import Config # Configure your database # # The MIX_TEST_PARTITION environment variable can be used # to provide built-in test partitioning in CI environment. # Run `mix help test` for more information. config :test, Test.Repo, username: "postgres", password: "postgres", database: "test_test#{System.get_env("MIX...
29.133333
63
0.741419
f72596263cf2728451b1429c44dc833cfad18fbc
1,633
ex
Elixir
lib/panglao/repo.ex
ikeikeikeike/panglao
6d3f6515d9f1ceb9a2e771ae2d54c222cedbf538
[ "MIT" ]
1
2017-02-18T21:20:17.000Z
2017-02-18T21:20:17.000Z
lib/panglao/repo.ex
ikeikeikeike/panglao
6d3f6515d9f1ceb9a2e771ae2d54c222cedbf538
[ "MIT" ]
null
null
null
lib/panglao/repo.ex
ikeikeikeike/panglao
6d3f6515d9f1ceb9a2e771ae2d54c222cedbf538
[ "MIT" ]
null
null
null
defmodule Panglao.Repo do use Ecto.Repo, otp_app: :panglao end defmodule Panglao.RepoReader do use Ecto.Repo, otp_app: :panglao def gets(queryable, id, opts \\ []) do with r when is_nil(r) <- get(queryable, id, opts), r <- Panglao.Repo.get(queryable, id, opts) do r end end def gets!(...
24.373134
63
0.613595
f725bca5cde08e65dd7ca0387bd5de187aef55cc
2,100
ex
Elixir
lib/blockchain_api/notifiers/hotspot_notifier.ex
pakorn186c/blockchain-api
3c9fbc892e645f9bb144414f3da36749603f37bc
[ "Apache-2.0" ]
17
2019-11-03T03:02:41.000Z
2022-01-13T17:03:32.000Z
lib/blockchain_api/notifiers/hotspot_notifier.ex
AddressXception/blockchain-api
eea98fa78af2887cc84762f84532c602c3b8b666
[ "Apache-2.0" ]
5
2019-11-07T23:26:53.000Z
2020-11-24T21:45:35.000Z
lib/blockchain_api/notifiers/hotspot_notifier.ex
AddressXception/blockchain-api
eea98fa78af2887cc84762f84532c602c3b8b666
[ "Apache-2.0" ]
11
2019-12-04T07:03:16.000Z
2022-01-13T17:03:50.000Z
defmodule BlockchainAPI.HotspotNotifier do alias BlockchainAPI.{Schema.Hotspot, Util} def send_new_hotspot_notification(pending_gateway) do data = %{ hotspot_address: Util.bin_to_string(pending_gateway.gateway), owner: Util.bin_to_string(pending_gateway.owner), hash: Util.bin_to_string(pendin...
41.176471
84
0.728571
f725cb696c1e7d3d9d2a18f41ee7255086374b2a
1,849
ex
Elixir
apps/nerves_hub_web_core/lib/nerves_hub_web_core/firmwares/upload/file.ex
Gazler/nerves_hub_web
9a636a17310382819eaa6cee590e053cb47f0dcc
[ "Apache-2.0" ]
1
2019-10-13T10:56:28.000Z
2019-10-13T10:56:28.000Z
apps/nerves_hub_web_core/lib/nerves_hub_web_core/firmwares/upload/file.ex
Eaftos/nerves_hub_web
ac03bd044b97265bf3ba3edd8da249d300fa3668
[ "Apache-2.0" ]
null
null
null
apps/nerves_hub_web_core/lib/nerves_hub_web_core/firmwares/upload/file.ex
Eaftos/nerves_hub_web
ac03bd044b97265bf3ba3edd8da249d300fa3668
[ "Apache-2.0" ]
null
null
null
defmodule NervesHubWebCore.Firmwares.Upload.File do @moduledoc """ Local file adapter for CRUDing firmware files. """ @type upload_metadata :: %{local_path: String.t(), public_path: String.t()} @spec upload_file(String.t(), upload_metadata()) :: :ok | {:error, atom()} def upload_file(s...
33.017857
81
0.638183
f7260e2e1e35641bfa430fe70213b56beedf67d0
2,003
ex
Elixir
clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/logging_destination.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/logging_destination.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/logging_destination.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
36.418182
127
0.736395
f7262233d765e923095ecf023d5cb9d772587673
2,576
exs
Elixir
test/resource/validation/compare_test.exs
smt116/ash
880a17f197873eb1c8dc8d81a8b4d6d9cb570b3f
[ "MIT" ]
528
2019-12-08T01:51:54.000Z
2022-03-30T10:09:45.000Z
test/resource/validation/compare_test.exs
smt116/ash
880a17f197873eb1c8dc8d81a8b4d6d9cb570b3f
[ "MIT" ]
278
2019-12-04T15:25:06.000Z
2022-03-31T03:40:51.000Z
test/resource/validation/compare_test.exs
smt116/ash
880a17f197873eb1c8dc8d81a8b4d6d9cb570b3f
[ "MIT" ]
53
2020-08-17T22:08:09.000Z
2022-03-24T01:58:59.000Z
defmodule Ash.Test.Resource.Validation.CompareTest do @moduledoc false use ExUnit.Case, async: true alias Ash.Resource.Validation.Compare defmodule Post do use Ash.Resource attributes do uuid_primary_key :id attribute :number_one, :integer attribute :number_two, :integer end e...
28.622222
83
0.651398
f7265363c4c7b6966f9c68c87ee935499737e4f7
1,906
ex
Elixir
clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v14/model/dimension.ex
nuxlli/elixir-google-api
ecb8679ac7282b7dd314c3e20c250710ec6a7870
[ "Apache-2.0" ]
null
null
null
clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v14/model/dimension.ex
nuxlli/elixir-google-api
ecb8679ac7282b7dd314c3e20c250710ec6a7870
[ "Apache-2.0" ]
null
null
null
clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v14/model/dimension.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.438596
191
0.728227
f7266cf065a72b17b78ea778644759f26691bbf2
1,366
ex
Elixir
lib/elixlsx/compiler/string_db.ex
leandrocp/elixlsx
df235284306d33becf4d6090b901c10422c237f0
[ "MIT" ]
215
2015-11-24T09:11:30.000Z
2022-02-08T13:38:22.000Z
lib/elixlsx/compiler/string_db.ex
leandrocp/elixlsx
df235284306d33becf4d6090b901c10422c237f0
[ "MIT" ]
90
2016-06-06T13:00:06.000Z
2022-03-30T21:09:50.000Z
lib/elixlsx/compiler/string_db.ex
leandrocp/elixlsx
df235284306d33becf4d6090b901c10422c237f0
[ "MIT" ]
92
2016-01-06T14:45:28.000Z
2022-03-16T12:29:58.000Z
defmodule Elixlsx.Compiler.StringDB do alias Elixlsx.Compiler.StringDB alias Elixlsx.XML @moduledoc ~S""" Strings in XLSX can be stored in a sharedStrings.xml file and be looked up by ID. This module handles collection of the data in the preprocessing phase. """ defstruct strings: %{}, element_count: 0 ...
26.269231
79
0.603953
f7266e2e9481bd53640dfb33abad1e94149febba
3,295
ex
Elixir
lib/purple_web/live/run_live/run_form.ex
knoebber/petaller
3532db5a3688459127d2427af42e32ca0f494d44
[ "MIT" ]
null
null
null
lib/purple_web/live/run_live/run_form.ex
knoebber/petaller
3532db5a3688459127d2427af42e32ca0f494d44
[ "MIT" ]
null
null
null
lib/purple_web/live/run_live/run_form.ex
knoebber/petaller
3532db5a3688459127d2427af42e32ca0f494d44
[ "MIT" ]
null
null
null
defmodule PurpleWeb.RunLive.RunForm do use PurpleWeb, :live_component alias Purple.Activities defp save_run(socket, :edit, params), do: Activities.update_run(socket.assigns.run, params) defp save_run(_socket, :new, params), do: Activities.create_run(params) @impl true def update(%{run: run} = assigns, so...
29.419643
93
0.526555
f726918df1ae49f14317bc21fd571f8a1bdce87b
10,458
ex
Elixir
lib/cachex/router.ex
botwerk/cachex
d37996d3be35b0d8281e347d44c024ecf2735131
[ "MIT" ]
null
null
null
lib/cachex/router.ex
botwerk/cachex
d37996d3be35b0d8281e347d44c024ecf2735131
[ "MIT" ]
null
null
null
lib/cachex/router.ex
botwerk/cachex
d37996d3be35b0d8281e347d44c024ecf2735131
[ "MIT" ]
null
null
null
defmodule Cachex.Router do @moduledoc """ Routing module to dispatch Cachex actions to their execution environment. This module acts as the single source of dispatch within Cachex. In prior versions the backing actions were called directly from the main interface and were wrapped in macros, which was difficu...
32.579439
89
0.645726
f726ad64f6609732ee78a6d0ae23ebdf56d62a45
542
exs
Elixir
test/models/build_job_status_test.exs
crosscloudci/ci_status_repository
335e8b89bbf59e6cf63e49541ce3ea6b60167e52
[ "Apache-2.0" ]
2
2019-03-05T16:29:10.000Z
2020-01-17T14:11:48.000Z
test/models/build_job_status_test.exs
crosscloudci/ci_status_repository
335e8b89bbf59e6cf63e49541ce3ea6b60167e52
[ "Apache-2.0" ]
3
2019-03-18T20:26:48.000Z
2020-06-25T14:31:13.000Z
test/models/build_job_status_test.exs
crosscloudci/ci_status_repository
335e8b89bbf59e6cf63e49541ce3ea6b60167e52
[ "Apache-2.0" ]
1
2018-06-16T15:32:25.000Z
2018-06-16T15:32:25.000Z
defmodule CncfDashboardApi.BuildJobStatusTest do use CncfDashboardApi.ModelCase alias CncfDashboardApi.BuildJobStatus @valid_attrs %{pipeline_id: 42, pipeline_monitor_id: 42, status: "some content"} @invalid_attrs %{} test "changeset with valid attributes" do changeset = BuildJobStatus.changeset(%Build...
28.526316
82
0.771218
f726b29f8c54eda0cc0ec7c53940f363b67dbbb3
206
ex
Elixir
lib/helpers/subscription_helper.ex
artsy/aprb
9e93200462a76823c831b92f02bddcf1b326a451
[ "MIT" ]
11
2016-08-18T23:18:57.000Z
2019-05-03T17:46:55.000Z
lib/helpers/subscription_helper.ex
artsy/aprb
9e93200462a76823c831b92f02bddcf1b326a451
[ "MIT" ]
105
2016-08-17T23:36:07.000Z
2019-09-26T18:14:24.000Z
lib/helpers/subscription_helper.ex
artsy/aprb
9e93200462a76823c831b92f02bddcf1b326a451
[ "MIT" ]
14
2016-08-17T17:23:45.000Z
2019-09-16T16:14:59.000Z
defmodule Aprb.SubscriptionHelper do def parsed_verb(event) do initial = if event["properties"]["partner"]["initial_subscription"], do: '-initial', else: '' "#{event["verb"]}#{initial}" end end
29.428571
97
0.679612
f726befca473f040236c4a9c6cf31b4d79e3943a
1,122
ex
Elixir
chapter7/lib/database.ex
aifrak/elixir-in-action-exercises
45096cf6c74af2ea691e1df1e31058cb749214c2
[ "MIT" ]
null
null
null
chapter7/lib/database.ex
aifrak/elixir-in-action-exercises
45096cf6c74af2ea691e1df1e31058cb749214c2
[ "MIT" ]
null
null
null
chapter7/lib/database.ex
aifrak/elixir-in-action-exercises
45096cf6c74af2ea691e1df1e31058cb749214c2
[ "MIT" ]
null
null
null
defmodule Todo.Database do use GenServer @db_folder "./persist" def start do GenServer.start(__MODULE__, nil, name: __MODULE__) end def store(key, data) do GenServer.cast(__MODULE__, {:store, key, data}) end def get(key) do GenServer.call(__MODULE__, {:get, key}) end @impl GenServer ...
18.096774
57
0.641711
f726f272f88d2d3106c03c01f64e6e6ca8bbfa50
2,597
ex
Elixir
clients/cloud_channel/lib/google_api/cloud_channel/v1/model/google_cloud_channel_v1_transfer_entitlements_to_google_request.ex
renovate-bot/elixir-google-api
1da34cd39b670c99f067011e05ab90af93fef1f6
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/cloud_channel/lib/google_api/cloud_channel/v1/model/google_cloud_channel_v1_transfer_entitlements_to_google_request.ex
swansoffiee/elixir-google-api
9ea6d39f273fb430634788c258b3189d3613dde0
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/cloud_channel/lib/google_api/cloud_channel/v1/model/google_cloud_channel_v1_transfer_entitlements_to_google_request.ex
dazuma/elixir-google-api
6a9897168008efe07a6081d2326735fe332e522c
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
43.283333
638
0.758183
f726ff4ae26227976236e9eb46d81c84f621f621
2,651
ex
Elixir
lib/binance/rest/futures_http_client.ex
Fadhil/binance.ex
b4cda870c9fab475e43f2498f8f28dec0353e952
[ "MIT" ]
null
null
null
lib/binance/rest/futures_http_client.ex
Fadhil/binance.ex
b4cda870c9fab475e43f2498f8f28dec0353e952
[ "MIT" ]
null
null
null
lib/binance/rest/futures_http_client.ex
Fadhil/binance.ex
b4cda870c9fab475e43f2498f8f28dec0353e952
[ "MIT" ]
1
2021-02-22T22:56:22.000Z
2021-02-22T22:56:22.000Z
defmodule Binance.Rest.FuturesHTTPClient do @futures_endpoint Application.get_env(:binance, :futures_endpoint) def get_futures(url, headers \\ []) do HTTPoison.get("#{@futures_endpoint}#{url}", headers) |> parse_response end def get_futures(url, params, secret_key, api_key) do case prepare_request...
26.247525
75
0.6043
f7271648242ca0c0c55519c051f95c0a07ccf6f3
816
ex
Elixir
lib/nautilus/core/admin/admin_message_router.ex
CarloHFR/NautilusGateway
26211948c5f9127e6662a90e41df5b43b2408372
[ "MIT" ]
null
null
null
lib/nautilus/core/admin/admin_message_router.ex
CarloHFR/NautilusGateway
26211948c5f9127e6662a90e41df5b43b2408372
[ "MIT" ]
null
null
null
lib/nautilus/core/admin/admin_message_router.ex
CarloHFR/NautilusGateway
26211948c5f9127e6662a90e41df5b43b2408372
[ "MIT" ]
null
null
null
defmodule Nautilus.Core.Admin.AdminMessageRouter do @moduledoc """ This module is resposible routing admin and control messages """ @split Application.get_env(:nautilus, :Split) @command_router Application.get_env(:nautilus, :CommandRouter) @response_router Application.get_env(:nautilus, :Resp...
28.137931
68
0.678922
f72729caaeba5b6b53c60e4367a0b880612a1ddc
2,418
exs
Elixir
back/test/api_web/controllers/user_controller_test.exs
HugoLefebvre/Epitech_TM_MP03
0ed161c956f7a10aec245fe2e17eb5a9b55f6075
[ "MIT" ]
null
null
null
back/test/api_web/controllers/user_controller_test.exs
HugoLefebvre/Epitech_TM_MP03
0ed161c956f7a10aec245fe2e17eb5a9b55f6075
[ "MIT" ]
null
null
null
back/test/api_web/controllers/user_controller_test.exs
HugoLefebvre/Epitech_TM_MP03
0ed161c956f7a10aec245fe2e17eb5a9b55f6075
[ "MIT" ]
null
null
null
defmodule ApiWeb.UserControllerTest do use ApiWeb.ConnCase alias Api.Auth alias Api.Auth.User @create_attrs %{email: "some email", username: "some username"} @update_attrs %{email: "some updated email", username: "some updated username"} @invalid_attrs %{email: nil, username: nil} def fixture(:user) do...
29.487805
88
0.615798
f7273f9eb645aef2a60972720e51171742bfe158
4,310
ex
Elixir
lib/mix/tasks/timber/install/timber_config_file.ex
montebrown/timber-elixir
1e177cc426422be3617479143038f5882037752f
[ "0BSD" ]
null
null
null
lib/mix/tasks/timber/install/timber_config_file.ex
montebrown/timber-elixir
1e177cc426422be3617479143038f5882037752f
[ "0BSD" ]
null
null
null
lib/mix/tasks/timber/install/timber_config_file.ex
montebrown/timber-elixir
1e177cc426422be3617479143038f5882037752f
[ "0BSD" ]
null
null
null
defmodule Mix.Tasks.Timber.Install.TimberConfigFile do @moduledoc false alias Mix.Tasks.Timber.Install.{FileHelper, IOHelper} @deprioritized_platforms ["linux", "other"] @file_name "timber.exs" @file_path Path.join(["config", @file_name]) # Adds the config/timber.exs file to be linked in config/config.ex...
28.733333
100
0.659165
f727572867bdd9080454271156ece751b916197b
529
exs
Elixir
priv/repo/migrations/20170703052856_create_sponsors_sponsorship.exs
Apps-Team/conferencetools
ce2e16a3e4a521dc4682e736a209e6dd380c050d
[ "Apache-2.0" ]
null
null
null
priv/repo/migrations/20170703052856_create_sponsors_sponsorship.exs
Apps-Team/conferencetools
ce2e16a3e4a521dc4682e736a209e6dd380c050d
[ "Apache-2.0" ]
6
2017-10-05T20:16:34.000Z
2017-10-05T20:36:11.000Z
priv/repo/migrations/20170703052856_create_sponsors_sponsorship.exs
apps-team/events-tools
ce2e16a3e4a521dc4682e736a209e6dd380c050d
[ "Apache-2.0" ]
null
null
null
defmodule EventsTools.Repo.Migrations.CreateEventsTools.Sponsors.Sponsorship do use Ecto.Migration def change do create table(:sponsorship_options) do add :name, :string add :summary, :text add :type, :string add :expo, :text add :camps, :text add :website, :text add :...
21.16
79
0.612476
f727b4c3ed8173d89f73d358e9f8f2fa2c775e0f
2,604
ex
Elixir
clients/cloud_kms/lib/google_api/cloud_kms/v1/model/crypto_key_version_template.ex
mocknen/elixir-google-api
dac4877b5da2694eca6a0b07b3bd0e179e5f3b70
[ "Apache-2.0" ]
null
null
null
clients/cloud_kms/lib/google_api/cloud_kms/v1/model/crypto_key_version_template.ex
mocknen/elixir-google-api
dac4877b5da2694eca6a0b07b3bd0e179e5f3b70
[ "Apache-2.0" ]
null
null
null
clients/cloud_kms/lib/google_api/cloud_kms/v1/model/crypto_key_version_template.ex
mocknen/elixir-google-api
dac4877b5da2694eca6a0b07b3bd0e179e5f3b70
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
49.132075
469
0.791475
f727c8f160fa683157f3ea308c3e292638c33cf9
734
ex
Elixir
web/gettext.ex
zombalo/cgrates_web_jsonapi
47845be4311839fe180cc9f2c7c6795649da4430
[ "MIT" ]
null
null
null
web/gettext.ex
zombalo/cgrates_web_jsonapi
47845be4311839fe180cc9f2c7c6795649da4430
[ "MIT" ]
null
null
null
web/gettext.ex
zombalo/cgrates_web_jsonapi
47845be4311839fe180cc9f2c7c6795649da4430
[ "MIT" ]
null
null
null
defmodule CgratesWebJsonapi.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 CgratesWebJsonapi.Gettext # Simple translation gett...
29.36
72
0.692098
f727e0abeb5674fefc32aedf7af623fdd9f5be84
1,057
ex
Elixir
test/support/channel_case.ex
jwworth/bell
9b4aeea691d7f8f7dc8cc60f2ff7b19244ada6e4
[ "MIT" ]
null
null
null
test/support/channel_case.ex
jwworth/bell
9b4aeea691d7f8f7dc8cc60f2ff7b19244ada6e4
[ "MIT" ]
11
2021-03-11T05:46:57.000Z
2021-12-08T15:39:25.000Z
test/support/channel_case.ex
jwworth/bell
9b4aeea691d7f8f7dc8cc60f2ff7b19244ada6e4
[ "MIT" ]
null
null
null
defmodule BellWeb.ChannelCase do @moduledoc """ This module defines the test case to be used by channel tests. Such tests rely on `Phoenix.ChannelTest` and also import other functionality to make it easier to build common data structures and query the data layer. Finally, if the test case interacts with...
26.425
66
0.721854
f727e8f6c190bea1c81e9c02be1dfd49ab694630
1,652
exs
Elixir
apps/rebuildremoved/config/config.exs
d-led/gorebuild
2e8b05bc8789fd4ee7c84ebc0a4a23f7825bf4ab
[ "Apache-2.0" ]
null
null
null
apps/rebuildremoved/config/config.exs
d-led/gorebuild
2e8b05bc8789fd4ee7c84ebc0a4a23f7825bf4ab
[ "Apache-2.0" ]
10
2017-12-11T10:25:16.000Z
2018-10-28T09:09:59.000Z
apps/rebuildremoved/config/config.exs
d-led/gorebuild
2e8b05bc8789fd4ee7c84ebc0a4a23f7825bf4ab
[ "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...
33.04
73
0.685835
f7280d2b277f89c7e8cc39e59e9a7af41f28731c
808
ex
Elixir
apps/bytepack_web/lib/bytepack_web/live/admin/seller_live/index.ex
dashbitco/bytepack_archive
79f8e62149d020f2afcc501592ed399f7ce7a60b
[ "Unlicense" ]
313
2020-12-03T17:26:24.000Z
2022-03-18T09:05:14.000Z
apps/bytepack_web/lib/bytepack_web/live/admin/seller_live/index.ex
dashbitco/bytepack_archive
79f8e62149d020f2afcc501592ed399f7ce7a60b
[ "Unlicense" ]
null
null
null
apps/bytepack_web/lib/bytepack_web/live/admin/seller_live/index.ex
dashbitco/bytepack_archive
79f8e62149d020f2afcc501592ed399f7ce7a60b
[ "Unlicense" ]
57
2020-12-03T17:41:53.000Z
2022-03-17T17:28:16.000Z
defmodule BytepackWeb.Admin.SellerLive.Index do use BytepackWeb, :live_view @impl true def mount(params, session, socket) do socket = socket |> MountHelpers.assign_admin(params, session) |> assign(:orgs, Bytepack.Orgs.list_orgs()) |> assign(:page_title, "Sellers") {:ok, socket, t...
21.837838
60
0.621287
f72820a93d96caf5a4b86be62d0e156ee8cceaf3
474
exs
Elixir
test/oli/accounts/author_test.exs
malav2110/oli-torus
8af64e762a7c8a2058bd27a7ab8e96539ffc055f
[ "MIT" ]
45
2020-04-17T15:40:27.000Z
2022-03-25T00:13:30.000Z
test/oli/accounts/author_test.exs
malav2110/oli-torus
8af64e762a7c8a2058bd27a7ab8e96539ffc055f
[ "MIT" ]
944
2020-02-13T02:37:01.000Z
2022-03-31T17:50:07.000Z
test/oli/accounts/author_test.exs
malav2110/oli-torus
8af64e762a7c8a2058bd27a7ab8e96539ffc055f
[ "MIT" ]
23
2020-07-28T03:36:13.000Z
2022-03-17T14:29:02.000Z
defmodule Oli.Accounts.AuthorTest do use Oli.DataCase describe "author" do alias Oli.Accounts.Author test "changeset should be invalid if password and confirmation do not match" do changeset = Author.changeset(%Author{}, %{ email: "test@test.com", given_name: "First", ...
22.571429
83
0.609705
f728220b3fef7727f5e4941d9488b7ed97f4a873
94
ex
Elixir
lib/slipstream/commands/collect_garbage.ex
fhunleth/slipstream
cebd924384b93b7dd3c1aa6ae2ac8d237e942f18
[ "Apache-2.0" ]
63
2021-02-10T16:18:11.000Z
2022-03-18T11:06:44.000Z
lib/slipstream/commands/collect_garbage.ex
fhunleth/slipstream
cebd924384b93b7dd3c1aa6ae2ac8d237e942f18
[ "Apache-2.0" ]
21
2021-01-30T21:00:06.000Z
2021-12-27T04:27:15.000Z
lib/slipstream/commands/collect_garbage.ex
fhunleth/slipstream
cebd924384b93b7dd3c1aa6ae2ac8d237e942f18
[ "Apache-2.0" ]
6
2021-02-26T23:56:49.000Z
2022-03-26T09:28:13.000Z
defmodule Slipstream.Commands.CollectGarbage do @moduledoc false defstruct [:socket] end
15.666667
47
0.797872
f7282851f2953183e3f103b8c55cc5b72eba1d0f
1,981
exs
Elixir
apps/omg/test/omg/state/measurement_calculation_test.exs
boolafish/elixir-omg
46b568404972f6e4b4da3195d42d4fb622edb934
[ "Apache-2.0" ]
1
2020-10-06T03:07:47.000Z
2020-10-06T03:07:47.000Z
apps/omg/test/omg/state/measurement_calculation_test.exs
boolafish/elixir-omg
46b568404972f6e4b4da3195d42d4fb622edb934
[ "Apache-2.0" ]
9
2020-09-16T15:31:17.000Z
2021-03-17T07:12:35.000Z
apps/omg/test/omg/state/measurement_calculation_test.exs
boolafish/elixir-omg
46b568404972f6e4b4da3195d42d4fb622edb934
[ "Apache-2.0" ]
1
2020-09-30T17:17:27.000Z
2020-09-30T17:17:27.000Z
# Copyright 2019-2020 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 ...
34.754386
89
0.656234
f72840903c9295624c9e365c214add289105b6a4
2,358
exs
Elixir
mix.exs
antp/cxs_starter
349cbd61e561f276b552f95e88e24e01397b8519
[ "MIT" ]
null
null
null
mix.exs
antp/cxs_starter
349cbd61e561f276b552f95e88e24e01397b8519
[ "MIT" ]
null
null
null
mix.exs
antp/cxs_starter
349cbd61e561f276b552f95e88e24e01397b8519
[ "MIT" ]
null
null
null
defmodule CxsStarter.MixProject do use Mix.Project def project do [ app: :cxs_starter, version: "0.1.0", elixir: "~> 1.7", elixirc_paths: elixirc_paths(Mix.env()), compilers: [:phoenix, :gettext] ++ Mix.compilers(), start_permanent: Mix.env() == :prod, aliases: aliases...
31.026316
84
0.563189
f7284ac3b0a0c71c95ba03faad74bae6cd5e9a34
555
ex
Elixir
lib/instruments/application.ex
sb8244/instruments
89a620d181ba4a04ed0ac01c47057c018d645428
[ "MIT" ]
1
2021-04-28T21:35:01.000Z
2021-04-28T21:35:01.000Z
lib/instruments/application.ex
sb8244/instruments
89a620d181ba4a04ed0ac01c47057c018d645428
[ "MIT" ]
null
null
null
lib/instruments/application.ex
sb8244/instruments
89a620d181ba4a04ed0ac01c47057c018d645428
[ "MIT" ]
null
null
null
defmodule Instruments.Application do @moduledoc false use Application alias Instruments.{ FastCounter, Probe } def start(_type, _args) do import Supervisor.Spec, warn: false reporter = Application.get_env(:instruments, :reporter_module, Instruments.Statix) reporter.connect() childr...
21.346154
86
0.684685
f7284cc5b896105e723afa71c3ca7d6009157711
732
ex
Elixir
lib/action/action.ex
doawoo/elixir_rpg
4dcd0eb717bd1d654b3e6a06be31aba4c3254fb3
[ "MIT" ]
23
2021-10-24T00:21:13.000Z
2022-03-13T12:33:38.000Z
lib/action/action.ex
doawoo/elixir_rpg
4dcd0eb717bd1d654b3e6a06be31aba4c3254fb3
[ "MIT" ]
null
null
null
lib/action/action.ex
doawoo/elixir_rpg
4dcd0eb717bd1d654b3e6a06be31aba4c3254fb3
[ "MIT" ]
3
2021-11-04T02:42:25.000Z
2022-02-02T14:22:52.000Z
defmodule ElixirRPG.Action do use TypedStruct require Logger alias __MODULE__ typedstruct do field :action_type, atom(), enforce: true field :target_entity, pid(), enforce: true field :payload, %{}, enforce: true end def make_action(type, target, extra_data \\ %{}) do %Action{ acti...
23.612903
87
0.670765
f728af8dffce7115615eefe6e41d538397414e1d
69,680
exs
Elixir
integration_test/cases/repo.exs
ckoch-cars/ecto
28e7d36d5d495cff2fea3f27f1a5ae457c960091
[ "Apache-2.0" ]
null
null
null
integration_test/cases/repo.exs
ckoch-cars/ecto
28e7d36d5d495cff2fea3f27f1a5ae457c960091
[ "Apache-2.0" ]
null
null
null
integration_test/cases/repo.exs
ckoch-cars/ecto
28e7d36d5d495cff2fea3f27f1a5ae457c960091
[ "Apache-2.0" ]
null
null
null
defmodule Ecto.Integration.RepoTest do use Ecto.Integration.Case, async: Application.get_env(:ecto, :async_integration_tests, true) alias Ecto.Integration.TestRepo import Ecto.Query alias Ecto.Integration.Post alias Ecto.Integration.Order alias Ecto.Integration.User alias Ecto.Integration.Comment alia...
38.732629
152
0.633123
f728dfbb03d4041e8f2a2c65be6c9add78be2d75
365
exs
Elixir
priv/repo/migrations/20181201181549_add_pageviews.exs
wvffle/analytics
2c0fd55bc67f74af1fe1e2641678d44e9fee61d5
[ "MIT" ]
984
2019-09-02T11:36:41.000Z
2020-06-08T06:25:48.000Z
priv/repo/migrations/20181201181549_add_pageviews.exs
wvffle/analytics
2c0fd55bc67f74af1fe1e2641678d44e9fee61d5
[ "MIT" ]
24
2019-09-10T09:53:17.000Z
2020-06-08T07:35:26.000Z
priv/repo/migrations/20181201181549_add_pageviews.exs
wvffle/analytics
2c0fd55bc67f74af1fe1e2641678d44e9fee61d5
[ "MIT" ]
51
2019-09-03T10:48:10.000Z
2020-06-07T00:23:34.000Z
defmodule Plausible.Repo.Migrations.AddPageviews do use Ecto.Migration def change do create table(:pageviews) do add :hostname, :text, null: false add :pathname, :text, null: false add :referrer, :text add :user_agent, :text add :screen_width, :integer add :screen_height, :i...
21.470588
51
0.654795
f728fa7e60af2028c39e4f586f4b6087f63ca406
1,162
ex
Elixir
lib/esi/api/insurance.ex
bmartin2015/esi
6463d444b01c4373fbed23dad70a4206cd855153
[ "MIT" ]
15
2017-11-25T09:10:35.000Z
2021-04-26T03:09:51.000Z
lib/esi/api/insurance.ex
bmartin2015/esi
6463d444b01c4373fbed23dad70a4206cd855153
[ "MIT" ]
6
2018-01-19T20:14:20.000Z
2019-08-03T12:58:39.000Z
lib/esi/api/insurance.ex
bmartin2015/esi
6463d444b01c4373fbed23dad70a4206cd855153
[ "MIT" ]
13
2017-12-09T16:30:30.000Z
2021-12-22T21:27:37.000Z
defmodule ESI.API.Insurance do @typedoc """ Options for [`Insurance.prices/1`](#prices/1). - `:language` (DEFAULT: `:"en-us"`) -- Language to use in the response, takes precedence over Accept-Language """ @type prices_opts :: [prices_opt] @type prices_opt :: {:language, nil | :de | :"en-us" | :fr | :ja | :...
26.409091
111
0.598107
f7290e9faa1ff0da1ad5a309f3c6f128d10911ac
2,269
ex
Elixir
clients/plus_domains/lib/google_api/plus_domains/v1/model/plus_domains_aclentry_resource.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/plus_domains/lib/google_api/plus_domains/v1/model/plus_domains_aclentry_resource.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/plus_domains/lib/google_api/plus_domains/v1/model/plus_domains_aclentry_resource.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
1
2020-10-04T10:12:44.000Z
2020-10-04T10:12:44.000Z
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
38.457627
189
0.703834
f72911a6fe90d99b392e814d554f50b7679d1d86
1,643
ex
Elixir
spec/lib/string2.ex
efcasado/stopwatch
6cc7f0632de3ecb3926160fa98fdb9971c1d994e
[ "Unlicense", "MIT" ]
null
null
null
spec/lib/string2.ex
efcasado/stopwatch
6cc7f0632de3ecb3926160fa98fdb9971c1d994e
[ "Unlicense", "MIT" ]
1
2018-03-28T09:13:04.000Z
2018-03-28T09:13:04.000Z
spec/lib/string2.ex
efcasado/chronex
6cc7f0632de3ecb3926160fa98fdb9971c1d994e
[ "Unlicense", "MIT" ]
null
null
null
###======================================================================== ### File: string2.ex ### ### A dummy module used for testing purposes. ### ### ### Author(s): ### - Enrique Fernandez <efcasado@gmail.com> ### ###-- LICENSE ------------------------------------------------------------- ### The MIT License (MI...
42.128205
75
0.631163
f72938fcca66b1a47efdc496346a275e235b93cd
1,021
ex
Elixir
apps/welcome2_web/test/support/conn_case.ex
philihp/welcome2_umbrella
f5f494b98fe4b64a3e1bbfc1b8b432aad7f8c3b2
[ "MIT" ]
null
null
null
apps/welcome2_web/test/support/conn_case.ex
philihp/welcome2_umbrella
f5f494b98fe4b64a3e1bbfc1b8b432aad7f8c3b2
[ "MIT" ]
13
2020-03-22T08:00:57.000Z
2022-03-07T16:35:36.000Z
apps/welcome2_web/test/support/conn_case.ex
philihp/welcome2_umbrella
f5f494b98fe4b64a3e1bbfc1b8b432aad7f8c3b2
[ "MIT" ]
null
null
null
defmodule Welcome2Web.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 common data structures and query the data layer. Finally, if t...
29.171429
62
0.738492
f7295ce433ab541aa790a2883c3796ca3bc0006f
38
exs
Elixir
apps/language_server/test/fixtures/formatter/lib/.formatter.exs
ihabunek/elixir-ls
a8bdf9304f04254160c9fc982ad314a50085c51a
[ "Apache-2.0" ]
912
2017-06-08T03:58:03.000Z
2021-09-06T03:42:07.000Z
apps/language_server/test/fixtures/formatter/lib/.formatter.exs
ihabunek/elixir-ls
a8bdf9304f04254160c9fc982ad314a50085c51a
[ "Apache-2.0" ]
441
2019-01-05T02:33:52.000Z
2022-03-30T20:56:50.000Z
apps/language_server/test/fixtures/formatter/lib/.formatter.exs
ihabunek/elixir-ls
a8bdf9304f04254160c9fc982ad314a50085c51a
[ "Apache-2.0" ]
126
2018-11-12T19:16:53.000Z
2022-03-26T13:27:50.000Z
[ locals_without_parens: [foo: 1] ]
9.5
33
0.657895
f72a4fcdd50b3b2d979e9125541ac1ac4d3c9dfa
220
exs
Elixir
farmbot_celery_script/test/farmbot_celery_script/corpus/arg_test.exs
adamswsk/farmbot_os
d177d3b74888c1e7bcbf8f8595818708ee97f73b
[ "MIT" ]
1
2021-04-22T10:18:50.000Z
2021-04-22T10:18:50.000Z
farmbot_celery_script/test/farmbot_celery_script/corpus/arg_test.exs
adamswsk/farmbot_os
d177d3b74888c1e7bcbf8f8595818708ee97f73b
[ "MIT" ]
null
null
null
farmbot_celery_script/test/farmbot_celery_script/corpus/arg_test.exs
adamswsk/farmbot_os
d177d3b74888c1e7bcbf8f8595818708ee97f73b
[ "MIT" ]
null
null
null
defmodule FarmbotCeleryScript.Corpus.ArgTest do use ExUnit.Case, async: true alias FarmbotCeleryScript.Corpus test "inspect" do assert "#Arg<_then [execute, nothing]>" = inspect(Corpus.arg("_then")) end end
24.444444
74
0.740909
f72a9bb17f57abb46b8cc115c7f228d5aab227c9
4,127
ex
Elixir
clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/service_spec.ex
jechol/elixir-google-api
0290b683dfc6491ca2ef755a80bc329378738d03
[ "Apache-2.0" ]
null
null
null
clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/service_spec.ex
jechol/elixir-google-api
0290b683dfc6491ca2ef755a80bc329378738d03
[ "Apache-2.0" ]
null
null
null
clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/service_spec.ex
jechol/elixir-google-api
0290b683dfc6491ca2ef755a80bc329378738d03
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
63.492308
297
0.755512
f72aae5baa221429e9cc9dcc547958446eba50c2
1,046
ex
Elixir
lib/better_big_canvas_web/live/board_live.ex
ChristianTovar/better-big-canvas
dd777ba83fed1e4c59ba92a25ee48cb7f0bf93e0
[ "MIT" ]
9
2021-02-25T19:58:34.000Z
2022-03-29T22:46:57.000Z
lib/better_big_canvas_web/live/board_live.ex
ChristianTovar/better-big-canvas
dd777ba83fed1e4c59ba92a25ee48cb7f0bf93e0
[ "MIT" ]
3
2021-05-28T17:40:32.000Z
2021-06-07T16:31:58.000Z
lib/better_big_canvas_web/live/board_live.ex
ChristianTovar/better-big-canvas
dd777ba83fed1e4c59ba92a25ee48cb7f0bf93e0
[ "MIT" ]
2
2021-02-25T19:58:39.000Z
2021-08-16T22:55:32.000Z
defmodule BetterBigCanvasWeb.BoardLive do use Phoenix.LiveView, layout: {BetterBigCanvasWeb.LayoutView, "live.html"} alias BetterBigCanvasWeb.{BoardView, BoardComponent} alias BetterBigCanvas.Square @impl true def mount(_params, _session, socket) do if connected?(socket), do: Phoenix.PubSub.subscribe(Be...
27.526316
89
0.680688
f72af12b41d72f48f46d72048742743e5ec532bd
223
exs
Elixir
config/config.exs
edragonconnect/elixir_wechat
b41e32bec591e32a68b3f475ffb25689cff4103f
[ "MIT" ]
12
2019-03-07T01:34:12.000Z
2021-09-11T06:40:29.000Z
config/config.exs
edragonconnect/elixir_wechat
b41e32bec591e32a68b3f475ffb25689cff4103f
[ "MIT" ]
6
2019-10-12T10:48:07.000Z
2021-03-03T07:06:34.000Z
config/config.exs
edragonconnect/elixir_wechat
b41e32bec591e32a68b3f475ffb25689cff4103f
[ "MIT" ]
5
2019-03-07T01:34:31.000Z
2021-01-06T08:01:51.000Z
# This file is responsible for configuring your application # and its dependencies with the aid of the Mix.Config module. import Config config :logger, level: :info if Mix.env() == :test do import_config "test.exs" end
22.3
61
0.753363
f72af92f03ca9a73aeb7287556c6fd6bcd11d362
7,680
ex
Elixir
lib/livebook/utils.ex
fozcodes/livebook
b6ddf1883cec5bee80675ff95af8a1619a3da550
[ "Apache-2.0" ]
null
null
null
lib/livebook/utils.ex
fozcodes/livebook
b6ddf1883cec5bee80675ff95af8a1619a3da550
[ "Apache-2.0" ]
null
null
null
lib/livebook/utils.ex
fozcodes/livebook
b6ddf1883cec5bee80675ff95af8a1619a3da550
[ "Apache-2.0" ]
null
null
null
defmodule Livebook.Utils do @moduledoc false @type id :: binary() @doc """ Generates a random binary id. """ @spec random_id() :: id() def random_id() do :crypto.strong_rand_bytes(20) |> Base.encode32(case: :lower) end @doc """ Generates a random short binary id. """ @spec random_short_id...
25.945946
103
0.601302
f72b6c27d945b3c0c5eb1f83226289287a5c8405
1,596
ex
Elixir
lib/ada/source/last_fm/api_client.ex
cloud8421/ada
384f5e5e85e95c4d5883298259e781cc0a54bd07
[ "MIT" ]
7
2019-05-11T12:14:48.000Z
2021-04-02T18:42:51.000Z
lib/ada/source/last_fm/api_client.ex
cloud8421/ada
384f5e5e85e95c4d5883298259e781cc0a54bd07
[ "MIT" ]
3
2019-05-11T08:01:47.000Z
2019-05-14T12:06:50.000Z
lib/ada/source/last_fm/api_client.ex
cloud8421/ada
384f5e5e85e95c4d5883298259e781cc0a54bd07
[ "MIT" ]
1
2021-01-06T14:57:32.000Z
2021-01-06T14:57:32.000Z
defmodule Ada.Source.LastFm.ApiClient do @moduledoc false @base_url "https://ws.audioscrobbler.com/2.0" @api_key System.get_env("LAST_FM_API_KEY") alias Ada.{HTTP, Source.LastFm.Track} @spec get_recent(Ada.Source.LastFm.username(), DateTime.t(), DateTime.t()) :: {:ok, [Track.t()]} | {:error, term(...
27.050847
84
0.580201
f72b785622d66c35bf438cf37a338312ac71986f
261
exs
Elixir
test/day_21_springdroid_adventure_test.exs
scmx/advent-of-code-2019-elixir
f3022efb422e15abead6b882c78855b26b138443
[ "MIT" ]
1
2019-12-02T16:27:06.000Z
2019-12-02T16:27:06.000Z
test/day_21_springdroid_adventure_test.exs
scmx/advent-of-code-2019-elixir
f3022efb422e15abead6b882c78855b26b138443
[ "MIT" ]
null
null
null
test/day_21_springdroid_adventure_test.exs
scmx/advent-of-code-2019-elixir
f3022efb422e15abead6b882c78855b26b138443
[ "MIT" ]
1
2020-12-10T10:47:21.000Z
2020-12-10T10:47:21.000Z
defmodule Adventofcode.Day21SpringdroidAdventureTest do use Adventofcode.FancyCase import Adventofcode.Day21SpringdroidAdventure describe "part_1/1" do test_with_puzzle_input do assert 19_352_638 = puzzle_input() |> part_1() end end end
21.75
55
0.777778
f72b8df725ddbc1b46347aae4292891293487a0f
2,429
exs
Elixir
src/frontend/config/prod.exs
wbpascal/statuswebsite
7a81e530a9176c53abeab0582cb710113101b716
[ "MIT" ]
1
2021-04-18T20:21:03.000Z
2021-04-18T20:21:03.000Z
src/frontend/config/prod.exs
wbpascal/statuswebsite
7a81e530a9176c53abeab0582cb710113101b716
[ "MIT" ]
null
null
null
src/frontend/config/prod.exs
wbpascal/statuswebsite
7a81e530a9176c53abeab0582cb710113101b716
[ "MIT" ]
1
2021-04-18T20:21:08.000Z
2021-04-18T20:21:08.000Z
use Mix.Config # For production, don't forget to configure the url host # to something meaningful, Phoenix uses this information # when generating URLs. # # Note we also include the path to a cache manifest # containing the digested version of static files. This # manifest is generated by the `mix phx.digest` task, # ...
33.736111
69
0.714286
f72bbe45272511293646fe7e28904af9b136f3b0
145
ex
Elixir
apps/tai/lib/tai/commander/delete_all_orders.ex
yurikoval/tai
94254b45d22fa0307b01577ff7c629c7280c0295
[ "MIT" ]
null
null
null
apps/tai/lib/tai/commander/delete_all_orders.ex
yurikoval/tai
94254b45d22fa0307b01577ff7c629c7280c0295
[ "MIT" ]
78
2020-10-12T06:21:43.000Z
2022-03-28T09:02:00.000Z
apps/tai/lib/tai/commander/delete_all_orders.ex
yurikoval/tai
94254b45d22fa0307b01577ff7c629c7280c0295
[ "MIT" ]
null
null
null
defmodule Tai.Commander.DeleteAllOrders do @spec execute() :: {non_neg_integer, nil} def execute do Tai.NewOrders.delete_all() end end
20.714286
43
0.737931
f72bd2aae61fd19d5b083acb1820b14be74e199d
426
ex
Elixir
lib/validation/rules/credit_card/diners.ex
elixir-validation/validation
164a62c881e03a307172e4a20413f81260abb2dc
[ "MIT" ]
60
2019-09-13T13:37:01.000Z
2021-01-06T05:20:32.000Z
lib/validation/rules/credit_card/diners.ex
elixir-validation/validation
164a62c881e03a307172e4a20413f81260abb2dc
[ "MIT" ]
1
2019-12-16T13:57:22.000Z
2019-12-16T13:57:22.000Z
lib/validation/rules/credit_card/diners.ex
elixir-validation/validation
164a62c881e03a307172e4a20413f81260abb2dc
[ "MIT" ]
5
2019-09-13T19:14:24.000Z
2019-11-26T17:33:08.000Z
defmodule Validation.Rules.CreditCard.Diners do @moduledoc false alias Validation.Rules.CreditCard @spec validate?(String.t) :: boolean def validate?(input) when is_binary(input) do # only numbers input = Regex.replace(~r/\D/, input, "") CreditCard.validate?(input) and diners_validation(input) e...
25.058824
60
0.692488
f72bda2e6d3cfcc91d7c722bbc7a4f64e4a73dcb
1,121
exs
Elixir
config/config.exs
hlmeS/distillery-aws
bfc59dd775d0ad9b2c4c19286138ebf57287daea
[ "Apache-2.0" ]
1
2020-07-27T04:06:37.000Z
2020-07-27T04:06:37.000Z
config/config.exs
hlmeS/distillery-aws
bfc59dd775d0ad9b2c4c19286138ebf57287daea
[ "Apache-2.0" ]
null
null
null
config/config.exs
hlmeS/distillery-aws
bfc59dd775d0ad9b2c4c19286138ebf57287daea
[ "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. use Mix.Config # General application configuration config :distillery_example, ecto_repos: [Exampl...
29.5
86
0.743979
f72bfd190206bfb9d9aba66af90b991b49701cef
11,489
ex
Elixir
lib/ecto/query/inspect.ex
alco/ecto
8972c318d8ed551395607b0d6e15e3c6cfbf425a
[ "Apache-2.0" ]
null
null
null
lib/ecto/query/inspect.ex
alco/ecto
8972c318d8ed551395607b0d6e15e3c6cfbf425a
[ "Apache-2.0" ]
null
null
null
lib/ecto/query/inspect.ex
alco/ecto
8972c318d8ed551395607b0d6e15e3c6cfbf425a
[ "Apache-2.0" ]
1
2020-10-07T16:52:00.000Z
2020-10-07T16:52:00.000Z
import Inspect.Algebra import Kernel, except: [to_string: 1] alias Ecto.Query.{BooleanExpr, DynamicExpr, JoinExpr, QueryExpr, WithExpr} defimpl Inspect, for: Ecto.Query.DynamicExpr do def inspect(%DynamicExpr{binding: binding} = dynamic, opts) do joins = binding |> Enum.drop(1) |> Enum.with_in...
29.159898
122
0.606406
f72c153ad00cbcc9d58a9c1de2e100998af2264d
1,780
exs
Elixir
rel/config.exs
c18t/elixir-phx-websocket-chat
4dc921599b263a856a23d04200631bfee83e3fc3
[ "WTFPL" ]
null
null
null
rel/config.exs
c18t/elixir-phx-websocket-chat
4dc921599b263a856a23d04200631bfee83e3fc3
[ "WTFPL" ]
null
null
null
rel/config.exs
c18t/elixir-phx-websocket-chat
4dc921599b263a856a23d04200631bfee83e3fc3
[ "WTFPL" ]
1
2020-11-17T08:23:18.000Z
2020-11-17T08:23:18.000Z
# Import all plugins from `rel/plugins` # They can then be used by adding `plugin MyPlugin` to # either an environment, or release definition, where # `MyPlugin` is the name of the plugin module. Path.join(["rel", "plugins", "*.exs"]) |> Path.wildcard() |> Enum.map(&Code.eval_file(&1)) use Mix.Releases.Config, # T...
32.962963
81
0.738764
f72c1a2a7f555be2d97163ef19db84cbe522045f
2,808
exs
Elixir
mix.exs
daskycodes/twirp-elixir
51b701111a3b33601980703417388cd099dc7e44
[ "Apache-2.0" ]
30
2019-11-03T16:30:13.000Z
2020-06-23T19:38:53.000Z
mix.exs
daskycodes/twirp-elixir
51b701111a3b33601980703417388cd099dc7e44
[ "Apache-2.0" ]
16
2020-03-13T17:56:16.000Z
2020-06-11T10:40:02.000Z
mix.exs
daskycodes/twirp-elixir
51b701111a3b33601980703417388cd099dc7e44
[ "Apache-2.0" ]
3
2019-12-05T16:43:15.000Z
2020-05-11T21:34:44.000Z
defmodule Twirp.MixProject do use Mix.Project @version "0.8.0" @source_url "https://github.com/keathley/twirp-elixir" def project do [ app: :twirp, version: @version, elixir: "~> 1.8", elixirc_paths: elixirc_paths(Mix.env()), escript: escript(), start_permanent: Mix.env...
22.285714
78
0.530271
f72c2714e52ae185f30f0e621722b3534b82ebfc
18,580
ex
Elixir
lib/cforum/threads.ex
MatthiasApsel/cforum_ex
52c621a583182d82692b74694b0b2792ac23b8ff
[ "MIT" ]
null
null
null
lib/cforum/threads.ex
MatthiasApsel/cforum_ex
52c621a583182d82692b74694b0b2792ac23b8ff
[ "MIT" ]
null
null
null
lib/cforum/threads.ex
MatthiasApsel/cforum_ex
52c621a583182d82692b74694b0b2792ac23b8ff
[ "MIT" ]
null
null
null
defmodule Cforum.Threads do @moduledoc """ The boundary for the Threads system. """ import Ecto.{Query, Changeset}, warn: false alias Cforum.Repo alias Cforum.System alias Cforum.Users.User alias Cforum.Threads.Thread alias Cforum.InvisibleThreads.InvisibleThread alias Cforum.Threads.ThreadHelpe...
29.775641
117
0.650538
f72c33b7e8d6cd47e99aa262d41c851b184a09c7
2,541
ex
Elixir
lib/hexerss/feed.ex
Awlexus/hexerss
88af54129f968435483008c276a2fec6a7489139
[ "MIT" ]
2
2022-02-09T08:37:53.000Z
2022-02-09T09:24:15.000Z
lib/hexerss/feed.ex
Awlexus/hexerss
88af54129f968435483008c276a2fec6a7489139
[ "MIT" ]
2
2022-02-09T08:43:51.000Z
2022-02-09T12:19:48.000Z
lib/hexerss/feed.ex
Awlexus/hexerss
88af54129f968435483008c276a2fec6a7489139
[ "MIT" ]
null
null
null
defmodule Hexerss.Feed do alias Hexerss.Hexpm alias Hexerss.Feed.Item defstruct [:title, :link, :description, :items] @type t :: %__MODULE__{ title: String.t(), link: String.t(), items: [Item.t()] } @callback content_type() :: String.t() @callback build_feed(Feed.t()...
24.2
97
0.578906
f72c35ba2272554be42371179a55c6a630a1211d
2,022
exs
Elixir
apps/forklift/test/unit/integration/init_server_test.exs
calebcarroll1/smartcitiesdata
b0f03496f6c592c82ba14aebf6c5996311cf3cd0
[ "Apache-2.0" ]
26
2019-09-20T23:54:45.000Z
2020-08-20T14:23:32.000Z
apps/forklift/test/unit/integration/init_server_test.exs
calebcarroll1/smartcitiesdata
b0f03496f6c592c82ba14aebf6c5996311cf3cd0
[ "Apache-2.0" ]
757
2019-08-15T18:15:07.000Z
2020-09-18T20:55:31.000Z
apps/forklift/test/unit/integration/init_server_test.exs
calebcarroll1/smartcitiesdata
b0f03496f6c592c82ba14aebf6c5996311cf3cd0
[ "Apache-2.0" ]
9
2019-11-12T16:43:46.000Z
2020-03-25T16:23:16.000Z
defmodule Forklift.Integration.InitServerTest do use ExUnit.Case use Placebo import Mox alias SmartCity.TestDataGenerator, as: TDG @instance_name Forklift.instance_name() setup :set_mox_global setup :verify_on_exit! setup_all do Application.put_env(:forklift, :output_topic, "test-topic") on_...
32.612903
88
0.692878
f72c49cc9eb666622d977c3f27e229ebab30db85
66
exs
Elixir
test/test_helper.exs
PetrNikolas/blazeee
0d97a39b53d19951ccd946b2c4949b054e1487cd
[ "MIT" ]
17
2018-09-18T23:35:26.000Z
2021-12-05T08:03:23.000Z
test/test_helper.exs
PetrNikolas/blazeee
0d97a39b53d19951ccd946b2c4949b054e1487cd
[ "MIT" ]
null
null
null
test/test_helper.exs
PetrNikolas/blazeee
0d97a39b53d19951ccd946b2c4949b054e1487cd
[ "MIT" ]
2
2019-07-08T20:43:13.000Z
2020-03-04T19:11:39.000Z
ExUnit.start() Ecto.Adapters.SQL.Sandbox.mode(Api.Repo, :manual)
16.5
49
0.757576
f72c7a42a92a73292911e8b7d6e7fb339dfb81a2
26
ex
Elixir
testData/org/elixir_lang/parser_definition/matched_call_operation/no_parentheses_many_arguments_strict_parsing_test_case/DecimalWholeNumber.ex
keyno63/intellij-elixir
4033e319992c53ddd42a683ee7123a97b5e34f02
[ "Apache-2.0" ]
1,668
2015-01-03T05:54:27.000Z
2022-03-25T08:01:20.000Z
testData/org/elixir_lang/parser_definition/matched_call_operation/no_parentheses_many_arguments_strict_parsing_test_case/DecimalWholeNumber.ex
keyno63/intellij-elixir
4033e319992c53ddd42a683ee7123a97b5e34f02
[ "Apache-2.0" ]
2,018
2015-01-01T22:43:39.000Z
2022-03-31T20:13:08.000Z
testData/org/elixir_lang/parser_definition/matched_call_operation/no_parentheses_many_arguments_strict_parsing_test_case/DecimalWholeNumber.ex
keyno63/intellij-elixir
4033e319992c53ddd42a683ee7123a97b5e34f02
[ "Apache-2.0" ]
145
2015-01-15T11:37:16.000Z
2021-12-22T05:51:02.000Z
1 positional, key: value
13
13
0.730769
f72ca6fb86f8e911ef774dba6f3d185fbe718b97
12,131
ex
Elixir
lib/seren/player/player.ex
allen-garvey/seren
f61cb7edcd7d3f927d2929db14b2a4a1578a3925
[ "MIT" ]
4
2019-10-04T16:11:15.000Z
2021-08-18T21:00:13.000Z
apps/seren/lib/seren/player/player.ex
allen-garvey/phoenix-umbrella
1d444bbd62a5e7b5f51d317ce2be71ee994125d5
[ "MIT" ]
5
2020-03-16T23:52:25.000Z
2021-09-03T16:52:17.000Z
lib/seren/player/player.ex
allen-garvey/seren
f61cb7edcd7d3f927d2929db14b2a4a1578a3925
[ "MIT" ]
null
null
null
defmodule Seren.Player do @moduledoc """ The Player context. """ import Ecto.Query, warn: false alias Seren.Repo alias Seren.Player.Track @doc """ Returns the list of tracks. ## Examples iex> list_tracks() [%Track{}, ...] """ def list_tracks do Repo.all(Track) end def li...
19.19462
362
0.599456
f72d06023bc59f8ffdd63599c6fc79e914a88f88
32,244
ex
Elixir
lib/aws/pinpoint_email.ex
ahsandar/aws-elixir
25de8b6c3a1401bde737cfc26b0679b14b058f23
[ "Apache-2.0" ]
null
null
null
lib/aws/pinpoint_email.ex
ahsandar/aws-elixir
25de8b6c3a1401bde737cfc26b0679b14b058f23
[ "Apache-2.0" ]
null
null
null
lib/aws/pinpoint_email.ex
ahsandar/aws-elixir
25de8b6c3a1401bde737cfc26b0679b14b058f23
[ "Apache-2.0" ]
null
null
null
# WARNING: DO NOT EDIT, AUTO-GENERATED CODE! # See https://github.com/aws-beam/aws-codegen for more details. defmodule AWS.PinpointEmail do @moduledoc """ Amazon Pinpoint Email Service Welcome to the *Amazon Pinpoint Email API Reference*. This guide provides information about the Amazon Pinpoint Email API (ve...
39.178615
146
0.706178
f72d1c0043f4e556c5342d009402d76e5f672590
1,519
exs
Elixir
mix.exs
duderman/elixir-caldav-client
eaee70c890d382d0ee15b5750098e9b4763cb8ae
[ "Apache-2.0" ]
33
2021-02-08T17:53:23.000Z
2022-03-08T11:16:47.000Z
mix.exs
duderman/elixir-caldav-client
eaee70c890d382d0ee15b5750098e9b4763cb8ae
[ "Apache-2.0" ]
7
2021-02-12T13:54:49.000Z
2022-03-07T10:50:08.000Z
mix.exs
duderman/elixir-caldav-client
eaee70c890d382d0ee15b5750098e9b4763cb8ae
[ "Apache-2.0" ]
3
2021-03-29T22:36:57.000Z
2022-02-23T10:29:56.000Z
defmodule CalDAVClient.MixProject do use Mix.Project def project do [ app: :caldav_client, version: "1.0.1", elixir: "~> 1.11", start_permanent: Mix.env() == :prod, description: description(), package: package(), deps: deps(), # Docs source_url: "https://g...
25.316667
91
0.577354
f72d27feffeafa9bfac79972a780f1de6a3a681b
2,133
ex
Elixir
lib/absinthe/validation/prevent_circular_fragments.ex
scrogson/absinthe
aa7e9c83dc10603c72f80e09a60d12495bc1c6b7
[ "Unlicense" ]
1
2019-05-07T15:05:52.000Z
2019-05-07T15:05:52.000Z
lib/absinthe/validation/prevent_circular_fragments.ex
scrogson/absinthe
aa7e9c83dc10603c72f80e09a60d12495bc1c6b7
[ "Unlicense" ]
null
null
null
lib/absinthe/validation/prevent_circular_fragments.ex
scrogson/absinthe
aa7e9c83dc10603c72f80e09a60d12495bc1c6b7
[ "Unlicense" ]
null
null
null
defmodule Absinthe.Validation.PreventCircularFragments do alias Absinthe.{Language, Traversal} @moduledoc false def validate(doc, {_, errors}) do doc.definitions |> Enum.filter(fn %Language.Fragment{} -> true _ -> false end) |> check(errors) end # The overall approach here is to...
28.824324
72
0.581341
f72d3e7715705df6c0d8d821e269a373d6b8bbc8
77
exs
Elixir
test/test_helper.exs
adam-phillips/letter_lines_live
8ab3fcd6499924390868908a31f8c2935c9392a0
[ "MIT" ]
null
null
null
test/test_helper.exs
adam-phillips/letter_lines_live
8ab3fcd6499924390868908a31f8c2935c9392a0
[ "MIT" ]
null
null
null
test/test_helper.exs
adam-phillips/letter_lines_live
8ab3fcd6499924390868908a31f8c2935c9392a0
[ "MIT" ]
null
null
null
ExUnit.start() Ecto.Adapters.SQL.Sandbox.mode(LetterLinesLive.Repo, :manual)
25.666667
61
0.805195
f72d4cef86b9f53d52a8b967af6f85aeb50aae00
505
exs
Elixir
random.exs
hectorip/ErlangExercises
4a1aa5de0504da1bfe5a6c31c1d20277524ab363
[ "MIT" ]
4
2016-09-22T03:47:56.000Z
2017-02-02T17:42:57.000Z
random.exs
hectorip/ErlangExercises
4a1aa5de0504da1bfe5a6c31c1d20277524ab363
[ "MIT" ]
null
null
null
random.exs
hectorip/ErlangExercises
4a1aa5de0504da1bfe5a6c31c1d20277524ab363
[ "MIT" ]
null
null
null
# how to get random numbers in Elixir # first we need to seed the pseudo-random number generator. # We are using the current timestamp as a unique number because it # can be considered as unique number in an application that has only one # process, if we have more processes, in order to avoid number # repetition, we n...
31.5625
79
0.762376
f72d55d6d2246b2745d7e324a44ccf6e726d5f83
573
exs
Elixir
test/dbfs_web/views/error_view_test.exs
sunnys/dbfs
bf0e01b969d1107d12b8b7c0130dad17187b027b
[ "MIT" ]
57
2018-01-22T22:42:16.000Z
2022-02-18T05:20:25.000Z
test/dbfs_web/views/error_view_test.exs
sunnys/dbfs
bf0e01b969d1107d12b8b7c0130dad17187b027b
[ "MIT" ]
2
2018-05-14T20:50:41.000Z
2021-12-12T18:15:59.000Z
test/dbfs_web/views/error_view_test.exs
sunnys/dbfs
bf0e01b969d1107d12b8b7c0130dad17187b027b
[ "MIT" ]
15
2017-11-11T04:25:04.000Z
2022-03-07T04:55:19.000Z
defmodule DBFS.Web.ErrorViewTest do use DBFS.Web.ConnCase, async: true # Bring render/3 and render_to_string/3 for testing custom views import Phoenix.View test "renders 404.html" do assert render_to_string(DBFS.Web.ErrorView, "404.html", []) == "Page not found" end test "render 500.html" ...
26.045455
66
0.670157
f72d7763b529e2ad87a4b1127910cbc8e6c36c25
67
ex
Elixir
lib/pebl_web/views/pow/registration_view.ex
tomkonidas/pebl
6a43570885fba5cf6cdf15c48d843116eedab79b
[ "MIT" ]
6
2020-08-26T11:29:36.000Z
2021-11-25T08:37:28.000Z
lib/pebl_web/views/pow/registration_view.ex
tomkonidas/pebl
6a43570885fba5cf6cdf15c48d843116eedab79b
[ "MIT" ]
20
2020-03-06T05:33:35.000Z
2022-02-17T17:20:38.000Z
lib/pebl_web/views/pow/registration_view.ex
tomkonidas/pebl
6a43570885fba5cf6cdf15c48d843116eedab79b
[ "MIT" ]
2
2020-12-11T16:24:59.000Z
2021-08-16T11:31:08.000Z
defmodule PeblWeb.Pow.RegistrationView do use PeblWeb, :view end
16.75
41
0.80597
f72d7c36fcab35e6148c68fcbbaa9dc71e8eda8e
2,151
ex
Elixir
clients/ad_sense/lib/google_api/ad_sense/v14/deserializer.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/ad_sense/lib/google_api/ad_sense/v14/deserializer.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/ad_sense/lib/google_api/ad_sense/v14/deserializer.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...
35.85
139
0.688052
f72d86b458fb9b413927971a76043e7363d95072
1,574
exs
Elixir
elixir/test/homework_web/schema/mutation/create_merchant_test.exs
ztoolson/web-homework
09865a5df66fe8f380dfe0d848bbfae8398be1ef
[ "MIT" ]
null
null
null
elixir/test/homework_web/schema/mutation/create_merchant_test.exs
ztoolson/web-homework
09865a5df66fe8f380dfe0d848bbfae8398be1ef
[ "MIT" ]
null
null
null
elixir/test/homework_web/schema/mutation/create_merchant_test.exs
ztoolson/web-homework
09865a5df66fe8f380dfe0d848bbfae8398be1ef
[ "MIT" ]
null
null
null
defmodule HomeworkWeb.Schema.Query.CreateMerchantTest do use HomeworkWeb.ConnCase, async: true @query """ mutation CreateMerchant($name: Name!, $description: Description!) { createMerchant(name: $name, description: $description) { name description } } """ test "createMerchant field crea...
24.984127
92
0.525413
f72d96926712144a9995ebb3b3b83512d7f98193
3,251
exs
Elixir
integration_test/myxql/storage_test.exs
aptinio/ecto_sql
f13a0e8383428154a61a7a93d43dcb4b6f6a6fad
[ "Apache-2.0" ]
1
2019-05-02T14:02:56.000Z
2019-05-02T14:02:56.000Z
integration_test/myxql/storage_test.exs
aptinio/ecto_sql
f13a0e8383428154a61a7a93d43dcb4b6f6a6fad
[ "Apache-2.0" ]
null
null
null
integration_test/myxql/storage_test.exs
aptinio/ecto_sql
f13a0e8383428154a61a7a93d43dcb4b6f6a6fad
[ "Apache-2.0" ]
null
null
null
Code.require_file "../support/file_helpers.exs", __DIR__ defmodule Ecto.Integration.StorageTest do use ExUnit.Case @moduletag :capture_log @base_migration 5_000_000 import Support.FileHelpers alias Ecto.Integration.{PoolRepo, TestRepo} def params do # Pass log false to ensure we can still create/dro...
29.288288
100
0.675792
f72e0234c69a40ab685ebddd81e27394b09956de
2,542
ex
Elixir
clients/alert_center/lib/google_api/alert_center/v1beta1/model/device_compromised_security_detail.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/alert_center/lib/google_api/alert_center/v1beta1/model/device_compromised_security_detail.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/alert_center/lib/google_api/alert_center/v1beta1/model/device_compromised_security_detail.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...
39.107692
161
0.694335
f72e1fede82e708b63598e046da668fac0332ead
3,585
exs
Elixir
test/font/bdf/lexer_test.exs
fstiewitz/chisel
98d0351e337a83ba21c4bedfd56eb340e0606711
[ "Apache-2.0" ]
34
2019-12-05T02:15:21.000Z
2022-03-11T10:07:28.000Z
test/font/bdf/lexer_test.exs
fstiewitz/chisel
98d0351e337a83ba21c4bedfd56eb340e0606711
[ "Apache-2.0" ]
5
2019-12-03T04:20:39.000Z
2021-05-24T23:38:09.000Z
test/font/bdf/lexer_test.exs
fstiewitz/chisel
98d0351e337a83ba21c4bedfd56eb340e0606711
[ "Apache-2.0" ]
2
2019-12-22T10:41:00.000Z
2021-05-24T19:53:54.000Z
defmodule Chisel.Font.BDF.LexerTest do use ExUnit.Case alias Chisel.Font.BDF.Lexer test "scan!/1" do assert [ {:keyword, "STARTFONT", {1, 10}}, {:value, "2.1", {1, 14}}, {:eol, "\n", {1, 14}}, {:keyword, "COMMENT", {2, 8}}, {:value, "Lorem", {...
35.147059
53
0.296513
f72e2c2b31d5ed98c2c0b1c4c6da5b4b54da1168
1,917
ex
Elixir
lib/ecto_network/macaddr.ex
kianmeng/ecto_network
ed999f408310135d506abc9cb39c6907686b7ed5
[ "MIT" ]
null
null
null
lib/ecto_network/macaddr.ex
kianmeng/ecto_network
ed999f408310135d506abc9cb39c6907686b7ed5
[ "MIT" ]
null
null
null
lib/ecto_network/macaddr.ex
kianmeng/ecto_network
ed999f408310135d506abc9cb39c6907686b7ed5
[ "MIT" ]
null
null
null
defmodule EctoNetwork.MACADDR do @moduledoc ~S""" Support for using Ecto with :macaddr fields """ @behaviour Ecto.Type def type, do: :macaddr @doc "Handle embedding format for CIDR records." def embed_as(_), do: :self @doc "Handle equality testing for CIDR records." def equal?(left, right), do: le...
28.191176
89
0.644757
f72e4e221e9946312ed2dd8c49925c2eba5e33d3
1,313
ex
Elixir
lib/weather/cli.ex
adamnbowen/weather
3b19d8b9c4045169718002c83387b7c06a9b4610
[ "MIT" ]
null
null
null
lib/weather/cli.ex
adamnbowen/weather
3b19d8b9c4045169718002c83387b7c06a9b4610
[ "MIT" ]
null
null
null
lib/weather/cli.ex
adamnbowen/weather
3b19d8b9c4045169718002c83387b7c06a9b4610
[ "MIT" ]
null
null
null
defmodule Weather.CLI do @moduledoc """ Handle the command line parsing and the dispatch to the various functions that display info about the weather. """ def main(argv) do argv |> parse_args |> process end @doc """ `argv` can be -h or --help, which returns :help. Otherwise it is a endp...
21.52459
115
0.599391
f72e5e317efade1e20526871a09e27510cf0e90d
929
ex
Elixir
lib/samly/auth_router.ex
workpathco/samly
7cb1f4dd5e0f4e9a0da97b36425d2450f0e2c003
[ "MIT" ]
null
null
null
lib/samly/auth_router.ex
workpathco/samly
7cb1f4dd5e0f4e9a0da97b36425d2450f0e2c003
[ "MIT" ]
null
null
null
lib/samly/auth_router.ex
workpathco/samly
7cb1f4dd5e0f4e9a0da97b36425d2450f0e2c003
[ "MIT" ]
null
null
null
defmodule AuthService.DebugPlug do import Plug.Conn def init(options) do # initialize options options end def call(conn, _opts) do IO.inspect(conn) conn end end defmodule Samly.AuthRouter do @moduledoc false use Plug.Router import Plug.Conn import Samly.RouterUtil, only: [check_idp...
18.58
71
0.702906
f72eacea0a9af628bfbd45494df78f2a04ea6810
476
ex
Elixir
lib/survey/calcuators/participation.ex
mpisanko/survey
e154e6f9845b9b9c44d4ea4f90d4e6b51ccdb423
[ "Apache-2.0" ]
null
null
null
lib/survey/calcuators/participation.ex
mpisanko/survey
e154e6f9845b9b9c44d4ea4f90d4e6b51ccdb423
[ "Apache-2.0" ]
null
null
null
lib/survey/calcuators/participation.ex
mpisanko/survey
e154e6f9845b9b9c44d4ea4f90d4e6b51ccdb423
[ "Apache-2.0" ]
null
null
null
defmodule Survey.Calculators.Participation do alias Survey.Calculators.Calculator @behaviour Calculator def calculate(%{responses: []}), do: %{type: :participation, result: %{percent: 0, participants: 0, total: 0}} def calculate(%{responses: rs}) do total = Enum.count(rs) participants = rs |> Calculat...
39.666667
118
0.710084
f72ef88fe89e543f9fde0b823dfc6486348a63a9
1,851
exs
Elixir
test/smwc_web/controllers/user_registration_controller_test.exs
druu/smwcbot
0c9e3530c470028c767b6a77be8a939481756438
[ "MIT" ]
2
2022-03-09T18:04:42.000Z
2022-03-11T22:24:25.000Z
test/smwc_web/controllers/user_registration_controller_test.exs
druu/smwcbot
0c9e3530c470028c767b6a77be8a939481756438
[ "MIT" ]
null
null
null
test/smwc_web/controllers/user_registration_controller_test.exs
druu/smwcbot
0c9e3530c470028c767b6a77be8a939481756438
[ "MIT" ]
2
2022-02-27T22:00:17.000Z
2022-02-28T02:20:21.000Z
# defmodule SMWCWeb.UserRegistrationControllerTest do # use SMWCWeb.ConnCase, async: true # import SMWC.AccountsFixtures # describe "GET /users/register" do # test "renders registration page", %{conn: conn} do # conn = get(conn, Routes.user_registration_path(conn, :new)) # response = html_respon...
33.654545
100
0.597515
f72f07fe62c140dc694e720e5bb15e1cb143e1e3
2,679
exs
Elixir
mix.exs
allefgomes/elixir_blog
413cedd74344f4fc503ba7ab1c9fac23ec31429b
[ "MIT" ]
null
null
null
mix.exs
allefgomes/elixir_blog
413cedd74344f4fc503ba7ab1c9fac23ec31429b
[ "MIT" ]
5
2021-06-19T16:43:22.000Z
2021-06-30T10:52:13.000Z
mix.exs
allefgomes/elixir_blog
413cedd74344f4fc503ba7ab1c9fac23ec31429b
[ "MIT" ]
null
null
null
defmodule Blog.MixProject do use Mix.Project @github_url "https://github.com/allefgomes/elixir_blog" def project do [ app: :blog, version: "0.1.0", elixir: "~> 1.11", elixirc_paths: elixirc_paths(Mix.env()), compilers: [:phoenix, :gettext] ++ Mix.compilers(), start_perman...
28.806452
84
0.562523
f72f19cac06cfa0b93c0d778cd476363ccd2a638
1,280
ex
Elixir
lib/mix/tasks/dump.ex.ex
elixir-desktop/libpe
c7e84e7d35b5ab7661691a2282b44ca2268eec39
[ "MIT" ]
null
null
null
lib/mix/tasks/dump.ex.ex
elixir-desktop/libpe
c7e84e7d35b5ab7661691a2282b44ca2268eec39
[ "MIT" ]
1
2022-03-02T14:35:50.000Z
2022-03-02T14:35:50.000Z
lib/mix/tasks/dump.ex.ex
elixir-desktop/libpe
c7e84e7d35b5ab7661691a2282b44ca2268eec39
[ "MIT" ]
null
null
null
defmodule Mix.Tasks.Pe.Dump do @moduledoc """ SYNTAX: mix pe.dump (--raw) <filename> (<filename>...) pe.dump dumps the contents of a PE file. """ use Mix.Task @doc false def run([]) do show_help() end def run(args) do %{files: files, raw: raw} = process_args(%{files: [], raw: false}, ar...
20.983607
76
0.583594