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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1c9a26787eb3d666a15feef1ea8817b3e7136fce | 5,397 | ex | Elixir | lib/gpixir.ex | benfb/gpixir | 919e15fb517027f0124375cf6ed2b0908884fa80 | [
"MIT"
] | 1 | 2016-04-10T08:14:23.000Z | 2016-04-10T08:14:23.000Z | lib/gpixir.ex | benfb/gpixir | 919e15fb517027f0124375cf6ed2b0908884fa80 | [
"MIT"
] | null | null | null | lib/gpixir.ex | benfb/gpixir | 919e15fb517027f0124375cf6ed2b0908884fa80 | [
"MIT"
] | null | null | null | defmodule Gpixir do
@moduledoc "A genetic programming library for Elixir"
import IO, only: [puts: 1]
import Enum, only: [count: 1, map: 2, into: 2, take: 2, zip: 2, random: 1, to_list: 1]
import Stream, only: [concat: 2]
import Gpixir.Util
@function_table zip(["and", "or", "nand", "nor", "not"],
... | 33.73125 | 117 | 0.579952 |
1c9a40b27627c1942677cec53859afd88639df4b | 310 | ex | Elixir | lib/flix_web/graphql/schema.ex | conradwt/flix-elixir | e4d6bf6fd79be12fbed6fb6250f78e929247c1a4 | [
"MIT"
] | 3 | 2021-03-21T23:52:16.000Z | 2021-06-02T03:47:00.000Z | lib/flix_web/graphql/schema.ex | conradwt/flix-elixir | e4d6bf6fd79be12fbed6fb6250f78e929247c1a4 | [
"MIT"
] | 44 | 2021-04-09T04:04:13.000Z | 2022-03-29T06:29:37.000Z | lib/flix_web/graphql/schema.ex | conradwt/flix-elixir | e4d6bf6fd79be12fbed6fb6250f78e929247c1a4 | [
"MIT"
] | null | null | null | defmodule FlixWeb.Graphql.Schema do
use Absinthe.Schema
import_types(FlixWeb.Graphql.Types.{
Genre,
Movie,
Review,
User
})
import_types(FlixWeb.Graphql.Schemas.Queries.{
Movie,
User
})
query do
import_fields(:movie_queries)
import_fields(:user_queries)
end
end
| 14.761905 | 48 | 0.683871 |
1c9a40f78984ffdace822e924b8173ef0854db90 | 439 | exs | Elixir | elixir/samples/kv_umbrella/apps/kv/test/kv/router_test.exs | afronski/playground-erlang | 6ac4b58b2fd717260c22a33284547d44a9b5038e | [
"MIT"
] | 2 | 2015-12-09T02:16:51.000Z | 2021-07-26T22:53:43.000Z | elixir/samples/kv_umbrella/apps/kv/test/kv/router_test.exs | afronski/playground-erlang | 6ac4b58b2fd717260c22a33284547d44a9b5038e | [
"MIT"
] | null | null | null | elixir/samples/kv_umbrella/apps/kv/test/kv/router_test.exs | afronski/playground-erlang | 6ac4b58b2fd717260c22a33284547d44a9b5038e | [
"MIT"
] | 1 | 2016-05-08T18:40:31.000Z | 2016-05-08T18:40:31.000Z | defmodule KV.RouterTest do
use ExUnit.Case, async: true
@tag :distributed
test "route requests accross nodes" do
assert KV.Router.route("hello", Kernel, :node, []) == :"foo@GrayBox"
assert KV.Router.route("world", Kernel, :node, []) == :"bar@GrayBox"
end
test "raises on unknown entries" do
asser... | 29.266667 | 72 | 0.651481 |
1c9a75a2d2e185de29b4bb7aa2932e69c7d54a15 | 2,451 | ex | Elixir | clients/firebase_app_check/lib/google_api/firebase_app_check/v1beta/model/google_firebase_appcheck_v1beta_safety_net_config.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/firebase_app_check/lib/google_api/firebase_app_check/v1beta/model/google_firebase_appcheck_v1beta_safety_net_config.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/firebase_app_check/lib/google_api/firebase_app_check/v1beta/model/google_firebase_appcheck_v1beta_safety_net_config.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... | 44.563636 | 480 | 0.75969 |
1c9a75f3c42d2e5d2474e04a5054af9c2bb07c28 | 2,486 | ex | Elixir | lib/live_chat_web.ex | msimonborg/live_chat | 0a2405b0399e3af569a5c24d8b0c6295132d9561 | [
"MIT"
] | null | null | null | lib/live_chat_web.ex | msimonborg/live_chat | 0a2405b0399e3af569a5c24d8b0c6295132d9561 | [
"MIT"
] | null | null | null | lib/live_chat_web.ex | msimonborg/live_chat | 0a2405b0399e3af569a5c24d8b0c6295132d9561 | [
"MIT"
] | null | null | null | defmodule LiveChatWeb do
@moduledoc """
The entrypoint for defining your web interface, such
as controllers, views, channels and so on.
This can be used in your application as:
use LiveChatWeb, :controller
use LiveChatWeb, :view
The definitions below will be executed for every view,
controlle... | 22 | 81 | 0.679807 |
1c9af0af1b789efa79c9672d6c7215accce4c491 | 259 | ex | Elixir | lib/exsemantica.ex | ExSemantica/exsemantica | c2d72513195f44b6b5f73c8cc07394de0a1fd273 | [
"Apache-2.0"
] | null | null | null | lib/exsemantica.ex | ExSemantica/exsemantica | c2d72513195f44b6b5f73c8cc07394de0a1fd273 | [
"Apache-2.0"
] | 2 | 2020-07-21T20:53:13.000Z | 2020-07-21T20:54:15.000Z | lib/exsemantica.ex | Chlorophytus/eactivitypub | 469346b4d5cd7ad2b575c245ac50fd71b00c4864 | [
"Apache-2.0"
] | null | null | null | defmodule Exsemantica do
@moduledoc """
Exsemantica keeps the contexts that define your domain
and business logic.
Contexts are also responsible for managing your data, regardless
if it comes from the database, an external API or others.
"""
end
| 25.9 | 66 | 0.760618 |
1c9b1519fc188b07405aa5c9e2665886e06a48cb | 2,149 | ex | Elixir | clients/dataflow/lib/google_api/dataflow/v1b3/model/side_input_info.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/dataflow/lib/google_api/dataflow/v1b3/model/side_input_info.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/dataflow/lib/google_api/dataflow/v1b3/model/side_input_info.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... | 37.701754 | 167 | 0.709632 |
1c9b234682b2fc4e8495692b38204f60dbe68296 | 1,433 | ex | Elixir | lib/deuce_web/router.ex | fremantle-industries/deuce | b0b95333bc43d55e25f1c6a3a033bc053223a64c | [
"MIT"
] | 2 | 2022-01-16T23:58:45.000Z | 2022-03-16T09:29:16.000Z | lib/deuce_web/router.ex | fremantle-industries/deuce | b0b95333bc43d55e25f1c6a3a033bc053223a64c | [
"MIT"
] | null | null | null | lib/deuce_web/router.ex | fremantle-industries/deuce | b0b95333bc43d55e25f1c6a3a033bc053223a64c | [
"MIT"
] | null | null | null | defmodule DeuceWeb.Router do
use DeuceWeb, :router
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_live_flash
plug :put_root_layout, {DeuceWeb.LayoutView, :root}
plug :protect_from_forgery
plug :put_secure_browser_headers
end
pipeline :api do
plug :acce... | 25.140351 | 70 | 0.69365 |
1c9b29b25f198e05ca5ff0fe040c1dd083dbd60b | 971 | ex | Elixir | test/route.ex | elixir-web/weber | 1c8caa43681cc432813dff33b2c6d08ca1d61f29 | [
"MIT"
] | 124 | 2015-01-03T16:48:21.000Z | 2022-02-02T21:13:11.000Z | test/route.ex | elixir-web/weber | 1c8caa43681cc432813dff33b2c6d08ca1d61f29 | [
"MIT"
] | 2 | 2015-03-08T05:29:36.000Z | 2015-07-19T15:31:19.000Z | test/route.ex | elixir-web/weber | 1c8caa43681cc432813dff33b2c6d08ca1d61f29 | [
"MIT"
] | 12 | 2015-02-23T02:09:27.000Z | 2016-08-07T13:50:38.000Z | defmodule Route do
import Weber.Route
require Weber.Route
route on("GET", "/weber", :TestTestTest.Main, :action)
|> on("GET", "/include", :TestTestTest.Include, :include_action)
|> on("GET", "/json/action", :TestTestTest.JSON, :json_action)
|> on("GET", "/add/:username", :TestTestTest.Main, :ad... | 48.55 | 95 | 0.670443 |
1c9b4c104d2d42bd6a2f3e4d45a8bee554026072 | 2,442 | ex | Elixir | lib/cadet/auth/provider.ex | source-academy/cadet | c447552453f78799755de73f66999e4c9d20383c | [
"Apache-2.0"
] | 27 | 2018-01-20T05:56:24.000Z | 2021-05-24T03:21:55.000Z | lib/cadet/auth/provider.ex | source-academy/cadet | c447552453f78799755de73f66999e4c9d20383c | [
"Apache-2.0"
] | 731 | 2018-04-16T13:25:49.000Z | 2021-06-22T07:16:12.000Z | lib/cadet/auth/provider.ex | source-academy/cadet | c447552453f78799755de73f66999e4c9d20383c | [
"Apache-2.0"
] | 43 | 2018-01-20T06:35:46.000Z | 2021-05-05T03:22:35.000Z | defmodule Cadet.Auth.Provider do
@moduledoc """
An identity provider, which takes the OAuth2 authentication code and exchanges
it for a token with the OAuth2 provider, and then retrieves the user ID, name,
and user role.
"""
alias Cadet.Accounts.Role
@type code :: String.t()
@type token :: String.t()
... | 38.15625 | 95 | 0.672809 |
1c9b644c36174782b80b7d4bec48bf879cfea326 | 1,901 | exs | Elixir | otapi/config/dev.exs | MauriceReeves-usds/OpenTransplant | c0196ff8bc5b914ce07502a4b7a760c508854804 | [
"Apache-2.0"
] | 32 | 2021-05-15T15:03:39.000Z | 2022-03-30T01:19:43.000Z | otapi/config/dev.exs | MauriceReeves-usds/OpenTransplant | c0196ff8bc5b914ce07502a4b7a760c508854804 | [
"Apache-2.0"
] | 3 | 2021-05-28T18:54:48.000Z | 2021-07-15T01:06:26.000Z | otapi/config/dev.exs | MauriceReeves-usds/OpenTransplant | c0196ff8bc5b914ce07502a4b7a760c508854804 | [
"Apache-2.0"
] | 1 | 2021-06-25T20:40:30.000Z | 2021-06-25T20:40:30.000Z | use Mix.Config
# For development, we disable any cache and enable
# debugging and code reloading.
#
# The watchers configuration can be used to run external
# watchers to your application. For example, we use it
# with webpack to recompile .js and .css sources.
config :otapi, OtapiWeb.Endpoint,
http: [port: 4000],
... | 27.955882 | 68 | 0.681746 |
1c9bccd1b5f626b191d8c396fcf045fe2ce93d3b | 658 | exs | Elixir | machine_translation/MorpHIN/Learned/Resources/TrainingInstances/97.exs | AdityaPrasadMishra/NLP--Project-Group-16 | fb62cc6a1db4a494058171f11c14a2be3933a9a1 | [
"MIT"
] | null | null | null | machine_translation/MorpHIN/Learned/Resources/TrainingInstances/97.exs | AdityaPrasadMishra/NLP--Project-Group-16 | fb62cc6a1db4a494058171f11c14a2be3933a9a1 | [
"MIT"
] | null | null | null | machine_translation/MorpHIN/Learned/Resources/TrainingInstances/97.exs | AdityaPrasadMishra/NLP--Project-Group-16 | fb62cc6a1db4a494058171f11c14a2be3933a9a1 | [
"MIT"
] | null | null | null | **EXAMPLE FILE**
SYM * noun * * cm * quantifier;
demonstrative * noun conj * cm * quantifier;
conj * cardinal verb a51 noun * quantifier;
cm * cardinal pnoun * noun * quantifier;
cm * cardinal pnoun * adjective * quantifier;
cm * quantifier noun * adjective * quantifier;
adverb * adjective verb_aux * noun * qua... | 34.631579 | 51 | 0.674772 |
1c9bdc1921379aa21f1c54bd148dbc689666adce | 277 | ex | Elixir | lib/excheck/sample.ex | devstopfix/excheck | c8cbf457e9bf7c13a0a4b70c60c8e02495ff53a1 | [
"MIT"
] | null | null | null | lib/excheck/sample.ex | devstopfix/excheck | c8cbf457e9bf7c13a0a4b70c60c8e02495ff53a1 | [
"MIT"
] | null | null | null | lib/excheck/sample.ex | devstopfix/excheck | c8cbf457e9bf7c13a0a4b70c60c8e02495ff53a1 | [
"MIT"
] | null | null | null | defmodule ExCheck.Sample do
@moduledoc """
Sample logic to be tested by ExCheck (refer to sample_test.exs for tests).
"""
@doc "concatenate the list."
def concat(x, y) do
x ++ y
end
@doc "push element in the list."
def push(x, y) do
[x | y]
end
end
| 17.3125 | 76 | 0.624549 |
1c9c0fc7bb0321da5915881d20ffa3c00c4593fd | 6,241 | exs | Elixir | test/acceptance/plugins/validator_test.exs | gabheadz/annon.api | 9921d98e44c8472c133554dd55ea649c0f55726c | [
"MIT"
] | 328 | 2017-05-05T15:19:46.000Z | 2022-03-11T10:52:45.000Z | test/acceptance/plugins/validator_test.exs | gabheadz/annon.api | 9921d98e44c8472c133554dd55ea649c0f55726c | [
"MIT"
] | 83 | 2017-04-30T10:36:15.000Z | 2019-10-14T13:14:34.000Z | test/acceptance/plugins/validator_test.exs | gabheadz/annon.api | 9921d98e44c8472c133554dd55ea649c0f55726c | [
"MIT"
] | 29 | 2017-05-02T14:36:50.000Z | 2021-09-03T13:36:17.000Z | defmodule Annon.Acceptance.Plugins.ValidatorTest do
@moduledoc false
use Annon.AcceptanceCase, async: true
@schema %{"type" => "object",
"properties" => %{"foo" => %{"type" => "number"}, "bar" => %{ "type" => "string"}},
"required" => ["bar"]}
setup do
api_path = "/my_validated_api... | 28.368182 | 98 | 0.528922 |
1c9c10a7e29a5d1ba5e9d82cb256755573dea0fd | 435 | exs | Elixir | mix.exs | drowzy/massa | 624cb02e0039b0624c534636f96fd157b1e34a95 | [
"Apache-2.0"
] | 20 | 2021-06-28T12:03:49.000Z | 2022-03-28T22:35:56.000Z | mix.exs | drowzy/massa | 624cb02e0039b0624c534636f96fd157b1e34a95 | [
"Apache-2.0"
] | 48 | 2021-03-19T12:01:38.000Z | 2022-03-29T21:19:26.000Z | mix.exs | drowzy/massa | 624cb02e0039b0624c534636f96fd157b1e34a95 | [
"Apache-2.0"
] | 5 | 2021-03-18T21:46:10.000Z | 2021-10-01T17:39:05.000Z | defmodule MongooseProxyProject.MixProject do
use Mix.Project
def project do
[
apps_path: "apps",
version: "0.1.0",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Dependencies listed here are available only for this
# project and cannot be accessed from applications... | 19.772727 | 59 | 0.648276 |
1c9c19fde03db8d380dd1814ab2ac6d68462e39d | 1,664 | ex | Elixir | web/controllers/coherence/redirects.ex | bagilevi/uptom | 50894abb8f7bd052e12c37155b5c33450abcc9bd | [
"MIT"
] | 6 | 2017-05-12T04:20:09.000Z | 2020-11-07T02:00:56.000Z | web/controllers/coherence/redirects.ex | bagilevi/uptom | 50894abb8f7bd052e12c37155b5c33450abcc9bd | [
"MIT"
] | null | null | null | web/controllers/coherence/redirects.ex | bagilevi/uptom | 50894abb8f7bd052e12c37155b5c33450abcc9bd | [
"MIT"
] | 2 | 2020-05-18T08:06:22.000Z | 2020-12-19T14:24:40.000Z | defmodule Coherence.Redirects do
@moduledoc """
Define controller action redirection functions.
This module contains default redirect functions for each of the controller
actions that perform redirects. By using this Module you get the following
functions:
* session_create/2
* session_delete/2
* passw... | 30.254545 | 87 | 0.742788 |
1c9c1e4a250122a54c4adcf44e3b84bcf1a83229 | 417 | exs | Elixir | memorex/test/memorex_web/views/error_view_test.exs | at7heb/liveview_elixirconf_2021 | eee64f38ec8a7365e8b728d76cd795a5c23199a9 | [
"MIT"
] | null | null | null | memorex/test/memorex_web/views/error_view_test.exs | at7heb/liveview_elixirconf_2021 | eee64f38ec8a7365e8b728d76cd795a5c23199a9 | [
"MIT"
] | null | null | null | memorex/test/memorex_web/views/error_view_test.exs | at7heb/liveview_elixirconf_2021 | eee64f38ec8a7365e8b728d76cd795a5c23199a9 | [
"MIT"
] | 6 | 2021-10-07T14:50:48.000Z | 2021-10-08T14:50:09.000Z | defmodule MemorexWeb.ErrorViewTest do
use MemorexWeb.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(MemorexWeb.ErrorView, "404.html", []) == "Not Found"
end
test "renders 500.html" do
as... | 27.8 | 92 | 0.733813 |
1c9c29a69e8309d200220924ef9a6e9c8d374e21 | 682 | ex | Elixir | lib/daily_meals.ex | cassiofariasmachado/daily-meals | fa1965fa1190818e8f74382635b5174ab1e19eee | [
"MIT"
] | null | null | null | lib/daily_meals.ex | cassiofariasmachado/daily-meals | fa1965fa1190818e8f74382635b5174ab1e19eee | [
"MIT"
] | null | null | null | lib/daily_meals.ex | cassiofariasmachado/daily-meals | fa1965fa1190818e8f74382635b5174ab1e19eee | [
"MIT"
] | null | null | null | defmodule DailyMeals do
@moduledoc """
DailyMeals keeps the contexts that define your domain
and business logic.
Contexts are also responsible for managing your data, regardless
if it comes from the database, an external API or others.
"""
alias DailyMeals.Meals.Create, as: CreateMeal
alias DailyMeals... | 34.1 | 66 | 0.759531 |
1c9c42c20458db3f959a71a2f1dd642242585f25 | 150 | ex | Elixir | testData/org/elixir_lang/parser_definition/at_bracket_operation_parsing_test_case/List.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/at_bracket_operation_parsing_test_case/List.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/at_bracket_operation_parsing_test_case/List.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 145 | 2015-01-15T11:37:16.000Z | 2021-12-22T05:51:02.000Z | @[][key: value]
@[] [key: value]
@[][()]
@[] [()]
@[][matched_expression]
@[] [matched_expression]
@[][matched_expression,]
@[] [matched_expression,]
| 16.666667 | 25 | 0.586667 |
1c9c54f96e7676bec079e1e80462799a00b07142 | 971 | ex | Elixir | lib/chess_web/controllers/session_controller.ex | jesseshieh/chess | 80e6854d5f0a05420e5eea6deee9e41f03445b5a | [
"MIT"
] | null | null | null | lib/chess_web/controllers/session_controller.ex | jesseshieh/chess | 80e6854d5f0a05420e5eea6deee9e41f03445b5a | [
"MIT"
] | null | null | null | lib/chess_web/controllers/session_controller.ex | jesseshieh/chess | 80e6854d5f0a05420e5eea6deee9e41f03445b5a | [
"MIT"
] | null | null | null | defmodule ChessWeb.SessionController do
use ChessWeb, :controller
alias Chess.Auth
alias Chess.Auth.User
alias Chess.Auth.Guardian
def new(conn, _params) do
changeset = User.changeset(%User{})
render(conn, "new.html", changeset: changeset)
end
def create(
conn,
%{"user" => %{"username" ... | 25.552632 | 66 | 0.61483 |
1c9c722625b3af71c381c488f7e0e8bd5bd12d5e | 1,949 | ex | Elixir | lib/oban/peers/global.ex | stefanchrobot/oban | 961015b92b9cae442d2834ad220a85ccdcc9da2d | [
"Apache-2.0"
] | null | null | null | lib/oban/peers/global.ex | stefanchrobot/oban | 961015b92b9cae442d2834ad220a85ccdcc9da2d | [
"Apache-2.0"
] | null | null | null | lib/oban/peers/global.ex | stefanchrobot/oban | 961015b92b9cae442d2834ad220a85ccdcc9da2d | [
"Apache-2.0"
] | null | null | null | defmodule Oban.Peers.Global do
@moduledoc """
A cluster based peer that coordinates through a distributed registry.
Leadership is coordinated through global locks. It requires a functional distributed Erlang
cluster, without one global plugins (Cron, Lifeline, Stager, etc.) will not function correctly.
## U... | 22.402299 | 97 | 0.661365 |
1c9cb2c2981ed874eb4fa47a5678b3936eca74ae | 644 | ex | Elixir | parkapp_server/lib/parkapp_web/controllers/html/authentication_controller.ex | bitmaker-software/parkapp | 39d9fd3cb8ab6bd1d54b776a5467eccf3b65f310 | [
"MIT"
] | 2 | 2018-11-06T12:21:16.000Z | 2018-11-21T10:20:17.000Z | parkapp_server/lib/parkapp_web/controllers/html/authentication_controller.ex | bitmaker-software/parkapp | 39d9fd3cb8ab6bd1d54b776a5467eccf3b65f310 | [
"MIT"
] | null | null | null | parkapp_server/lib/parkapp_web/controllers/html/authentication_controller.ex | bitmaker-software/parkapp | 39d9fd3cb8ab6bd1d54b776a5467eccf3b65f310 | [
"MIT"
] | null | null | null | defmodule ParkappWeb.HTML.AuthenticationController do
@moduledoc """
The HTML AuthenticationController handles the simple web login
"""
use ParkappWeb, :controller
alias ParkappWeb.Auth
def login(conn, _) do
render(conn, "login.html")
end
def process_login(conn, %{"login" => %{"secret" => secret}}... | 24.769231 | 65 | 0.64441 |
1c9cbec7f6b84db9ff33e589c405c204b8088170 | 1,586 | ex | Elixir | apps/artemis/lib/artemis/contexts/reports/list_incident_reports.ex | artemis-platform/artemis_dashboard | 5ab3f5ac4c5255478bbebf76f0e43b44992e3cab | [
"MIT"
] | 9 | 2019-08-19T19:56:34.000Z | 2022-03-22T17:56:38.000Z | apps/artemis/lib/artemis/contexts/reports/list_incident_reports.ex | chrislaskey/atlas_dashboard | 9009ef5aac8fefba126fa7d3e3b82d1b610ee6fe | [
"MIT"
] | 7 | 2019-07-12T21:41:01.000Z | 2020-08-17T21:29:22.000Z | apps/artemis/lib/artemis/contexts/reports/list_incident_reports.ex | chrislaskey/atlas_dashboard | 9009ef5aac8fefba126fa7d3e3b82d1b610ee6fe | [
"MIT"
] | 2 | 2019-07-05T22:51:47.000Z | 2019-08-19T19:56:37.000Z | defmodule Artemis.ListIncidentReports do
use Artemis.Context
use Artemis.ContextReport
use Artemis.ContextCache,
cache_reset_on_cloudant_changes: [
%{schema: Artemis.Incident, action: "create"},
%{schema: Artemis.Incident, action: "delete"},
%{schema: Artemis.Incident, action: "update"}
... | 26 | 107 | 0.692938 |
1c9cd0328966be0929812afcfb3aadf5df9f897a | 250 | exs | Elixir | bench/vector/take_while.exs | sabiwara/aja | cde91e4263e54a11a1685a777dbffd4912fe3864 | [
"MIT"
] | 95 | 2020-10-18T09:27:46.000Z | 2022-03-29T20:03:16.000Z | bench/vector/take_while.exs | sabiwara/aja | cde91e4263e54a11a1685a777dbffd4912fe3864 | [
"MIT"
] | 1 | 2021-09-22T20:30:08.000Z | 2021-10-13T23:55:34.000Z | bench/vector/take_while.exs | sabiwara/aja | cde91e4263e54a11a1685a777dbffd4912fe3864 | [
"MIT"
] | 1 | 2020-12-15T12:36:16.000Z | 2020-12-15T12:36:16.000Z | list = Enum.to_list(1..100)
vector = Aja.Vector.new(list)
fun = fn x -> x <= 80 end
Benchee.run(%{
"Aja.Vector.take_while/2" => fn -> Aja.Vector.take_while(vector, fun) end,
"Enum.take_while/2 (list)" => fn -> Enum.take_while(list, fun) end
})
| 25 | 76 | 0.644 |
1c9ce5f03a98c5418ac43de14fb3a8cfc19d4b4e | 1,163 | ex | Elixir | web/channels/user_socket.ex | itaym2/wiksir | a834ad95163e0b807dcba6d8ef17b998e312f396 | [
"MIT"
] | null | null | null | web/channels/user_socket.ex | itaym2/wiksir | a834ad95163e0b807dcba6d8ef17b998e312f396 | [
"MIT"
] | null | null | null | web/channels/user_socket.ex | itaym2/wiksir | a834ad95163e0b807dcba6d8ef17b998e312f396 | [
"MIT"
] | null | null | null | defmodule Wiksir.UserSocket do
use Phoenix.Socket
## Channels
# channel "room:*", Wiksir.RoomChannel
## Transports
transport :websocket, Phoenix.Transports.WebSocket
# transport :longpoll, Phoenix.Transports.LongPoll
# Socket params are passed from the client and can
# be used to verify and authentic... | 30.605263 | 83 | 0.700774 |
1c9ce9bb59e53f077173774fa45bb8e6fd89d6c1 | 337 | ex | Elixir | lib/zaryn/p2p/message/get_transaction_chain.ex | ambareesha7/node-zaryn | 136e542801bf9b6fa4a015d3464609fdf3dacee8 | [
"Apache-2.0"
] | 1 | 2021-07-06T19:47:14.000Z | 2021-07-06T19:47:14.000Z | lib/zaryn/p2p/message/get_transaction_chain.ex | ambareesha7/node-zaryn | 136e542801bf9b6fa4a015d3464609fdf3dacee8 | [
"Apache-2.0"
] | null | null | null | lib/zaryn/p2p/message/get_transaction_chain.ex | ambareesha7/node-zaryn | 136e542801bf9b6fa4a015d3464609fdf3dacee8 | [
"Apache-2.0"
] | null | null | null | defmodule Zaryn.P2P.Message.GetTransactionChain do
@moduledoc """
Represents a message to request an entire transaction chain
"""
@enforce_keys [:address]
defstruct [:address, :after]
alias Zaryn.Crypto
@type t :: %__MODULE__{
address: Crypto.versioned_hash(),
after: nil | DateTime.t... | 22.466667 | 61 | 0.661721 |
1c9d0b2b40626ee76def4c9c77fa84953f719c95 | 370 | ex | Elixir | apps/fz_vpn/lib/fz_vpn/interface/wg_adapter.ex | CloudFire-LLC/cloudfire-ce | 416ea0d9c9528790fdf70c432aa4eb507d7b2074 | [
"Apache-2.0"
] | null | null | null | apps/fz_vpn/lib/fz_vpn/interface/wg_adapter.ex | CloudFire-LLC/cloudfire-ce | 416ea0d9c9528790fdf70c432aa4eb507d7b2074 | [
"Apache-2.0"
] | 1 | 2020-04-24T01:53:41.000Z | 2020-04-24T01:53:41.000Z | apps/fz_vpn/lib/fz_vpn/interface/wg_adapter.ex | CloudFire-LLC/cloudfire-ce | 416ea0d9c9528790fdf70c432aa4eb507d7b2074 | [
"Apache-2.0"
] | null | null | null | defmodule FzVpn.Interface.WGAdapter do
@moduledoc """
This module determines by application environment which WireGuard adapter to
use: `Live` or `Sandbox`.
`Live` is used for environments where WireGuard is available and `Sandbox` is
used for environments where it isn't.
"""
def wg_adapter do
Appli... | 26.428571 | 79 | 0.743243 |
1c9d1553f83ba7184db75b338af105133914162d | 135 | ex | Elixir | lib/blue_jet/app/file_storage/file_collection/proxy.ex | freshcom/freshcom-api | 4f2083277943cf4e4e8fd4c4d443c7309f285ad7 | [
"BSD-3-Clause"
] | 44 | 2018-05-09T01:08:57.000Z | 2021-01-19T07:25:26.000Z | lib/blue_jet/app/file_storage/file_collection/proxy.ex | freshcom/freshcom-api | 4f2083277943cf4e4e8fd4c4d443c7309f285ad7 | [
"BSD-3-Clause"
] | 36 | 2018-05-08T23:59:54.000Z | 2018-09-28T13:50:30.000Z | lib/blue_jet/app/file_storage/file_collection/proxy.ex | freshcom/freshcom-api | 4f2083277943cf4e4e8fd4c4d443c7309f285ad7 | [
"BSD-3-Clause"
] | 9 | 2018-05-09T14:09:19.000Z | 2021-03-21T21:04:04.000Z | defmodule BlueJet.FileStorage.FileCollection.Proxy do
use BlueJet, :proxy
def put(file_collection, _, _), do: file_collection
end
| 22.5 | 53 | 0.785185 |
1c9d6381db59923a734ae3cb9f696a68a6ebfaa3 | 1,872 | ex | Elixir | clients/games/lib/google_api/games/v1/model/played.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/games/lib/google_api/games/v1/model/played.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/games/lib/google_api/games/v1/model/played.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... | 35.320755 | 156 | 0.715278 |
1c9d78dff93b7985d97d506fe9bc5cdf90e5bcbd | 13,527 | ex | Elixir | lib/guardian/permissions.ex | reshmalalwani3108/guardian | 0a03235d5a177caf94c0c3326b7f8b30bcfd4755 | [
"MIT"
] | null | null | null | lib/guardian/permissions.ex | reshmalalwani3108/guardian | 0a03235d5a177caf94c0c3326b7f8b30bcfd4755 | [
"MIT"
] | null | null | null | lib/guardian/permissions.ex | reshmalalwani3108/guardian | 0a03235d5a177caf94c0c3326b7f8b30bcfd4755 | [
"MIT"
] | null | null | null | defmodule Guardian.Permissions do
@moduledoc """
An optional plugin to Guardian to provide permissions for your tokens
These can be used for any token types since they only work on the `claims`.
Permissions are set on a per implementation module basis.
Each implementation module can have their own sets.
P... | 35.880637 | 108 | 0.656021 |
1c9d8be64465c5f8b2d867c219bebc8d22a3eced | 16,426 | ex | Elixir | lib/mix/lib/mix/tasks/format.ex | mattmatters/elixir | e0d1c2e4cae0277e69fec086b92d82f13d2aa033 | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/tasks/format.ex | mattmatters/elixir | e0d1c2e4cae0277e69fec086b92d82f13d2aa033 | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/tasks/format.ex | mattmatters/elixir | e0d1c2e4cae0277e69fec086b92d82f13d2aa033 | [
"Apache-2.0"
] | null | null | null | defmodule Mix.Tasks.Format do
use Mix.Task
@shortdoc "Formats the given files/patterns"
@moduledoc """
Formats the given files and patterns.
mix format mix.exs "lib/**/*.{ex,exs}" "test/**/*.{ex,exs}"
If any of the files is `-`, then the output is read from stdin
and written to stdout.
## Forma... | 34.078838 | 110 | 0.676854 |
1c9da7b0285f3f786d56531eb42b566bf2800cc0 | 788 | exs | Elixir | mix.exs | mpope9/lru_cache | 81fe0d5cc12070c84f94e857dca12a5b18d0656b | [
"Apache-2.0"
] | 41 | 2015-12-09T00:45:19.000Z | 2021-12-03T11:15:09.000Z | mix.exs | mpope9/lru_cache | 81fe0d5cc12070c84f94e857dca12a5b18d0656b | [
"Apache-2.0"
] | 2 | 2018-02-05T12:47:19.000Z | 2022-01-16T17:36:59.000Z | mix.exs | mpope9/lru_cache | 81fe0d5cc12070c84f94e857dca12a5b18d0656b | [
"Apache-2.0"
] | 13 | 2016-01-28T12:19:04.000Z | 2021-12-02T16:55:21.000Z | defmodule LruCache.Mixfile do
use Mix.Project
@github "https://github.com/arago/lru_cache"
def project do
[
app: :lru_cache,
version: "0.1.3",
elixir: "~> 1.2-dev",
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
deps: deps(),
name: "LRU Cach... | 19.7 | 72 | 0.563452 |
1c9da82a2630d15b8582f0206947c1c0951f7eb7 | 851 | ex | Elixir | lib/ex_ami/server_config.ex | palexanderm/ex_ami | 3f713e7a18feebe14fd89c8adfec4cc3af1c3f05 | [
"MIT"
] | 18 | 2015-02-18T23:30:48.000Z | 2020-12-07T11:02:27.000Z | lib/ex_ami/server_config.ex | palexanderm/ex_ami | 3f713e7a18feebe14fd89c8adfec4cc3af1c3f05 | [
"MIT"
] | 2 | 2015-09-03T12:31:13.000Z | 2018-01-17T00:49:13.000Z | lib/ex_ami/server_config.ex | palexanderm/ex_ami | 3f713e7a18feebe14fd89c8adfec4cc3af1c3f05 | [
"MIT"
] | 8 | 2016-05-11T01:17:28.000Z | 2021-12-24T20:56:26.000Z | defmodule ExAmi.ServerConfig do
use ExAmi.Logger
def get(server_info, key) do
search(server_info, key)
end
defp search([], _key), do: nil
defp search([{_, [{k, v} | _]} | _], key) when k == key, do: v
defp search([{_, [{_, v} | tail2]} | tail], key) do
case search(v, key) do
nil ->
... | 22.394737 | 64 | 0.52879 |
1c9dcb0a380981d71badd9b17c3869025f67844a | 1,078 | exs | Elixir | test/asset/farmware_installation_test.exs | FarmBot/farmbot_os | 5ebdca3afd672eb6b0af5c71cfca02488b32569a | [
"MIT"
] | 843 | 2016-10-05T23:46:05.000Z | 2022-03-14T04:31:55.000Z | farmbot_core/test/asset/farmware_installation_test.exs | gdwb/farmbot_os | 0ef2697c580c9fbf37a22daa063a64addfcb778d | [
"MIT"
] | 455 | 2016-10-15T08:49:16.000Z | 2022-03-15T12:23:04.000Z | farmbot_core/test/asset/farmware_installation_test.exs | gdwb/farmbot_os | 0ef2697c580c9fbf37a22daa063a64addfcb778d | [
"MIT"
] | 261 | 2016-10-10T04:37:06.000Z | 2022-03-13T21:07:38.000Z | defmodule FarmbotCore.Asset.FarmwareInstallationTest do
use ExUnit.Case
alias FarmbotCore.Asset.FarmwareInstallation
def fake_install() do
%FarmwareInstallation{
id: 23,
url: "http://www.lycos.com",
manifest: %{
package: "xpackage",
language: "xlanguage",
author: "xa... | 25.666667 | 73 | 0.649351 |
1c9e2ce8aac6ddc12ce8ad8b01581cef034f9030 | 277 | exs | Elixir | priv/repo/migrations/20181122063608_create_user_settings.exs | macypa/storeHall | 9fe810f763527cc87fa165138bdfb3cda92fa553 | [
"MIT"
] | null | null | null | priv/repo/migrations/20181122063608_create_user_settings.exs | macypa/storeHall | 9fe810f763527cc87fa165138bdfb3cda92fa553 | [
"MIT"
] | 4 | 2019-07-16T06:24:42.000Z | 2021-05-07T22:26:14.000Z | priv/repo/migrations/20181122063608_create_user_settings.exs | macypa/storeHall | 9fe810f763527cc87fa165138bdfb3cda92fa553 | [
"MIT"
] | 1 | 2018-11-23T21:13:31.000Z | 2018-11-23T21:13:31.000Z | defmodule StoreHall.Repo.Migrations.CreateUserSettings do
use Ecto.Migration
def change do
create table(:user_settings, primary_key: false) do
add :id, :string, primary_key: true
add :settings, :map
timestamps(type: :timestamptz)
end
end
end
| 19.785714 | 57 | 0.703971 |
1c9e50ec29207f6f9d7b03aa9d8db28bdddada0e | 299 | exs | Elixir | test/test_helper.exs | Vincent-Legros/mirego-boilerplate | 20d94568133b6dd67862d864a420296217bd7b81 | [
"BSD-3-Clause"
] | 854 | 2019-03-18T19:13:58.000Z | 2022-03-30T01:47:30.000Z | test/test_helper.exs | Vincent-Legros/mirego-boilerplate | 20d94568133b6dd67862d864a420296217bd7b81 | [
"BSD-3-Clause"
] | 167 | 2019-03-18T21:23:28.000Z | 2022-03-31T19:07:34.000Z | test/test_helper.exs | Vincent-Legros/mirego-boilerplate | 20d94568133b6dd67862d864a420296217bd7b81 | [
"BSD-3-Clause"
] | 63 | 2019-03-28T14:19:11.000Z | 2022-02-15T17:22:14.000Z | # NOTE: When using Elixir 1.12+, we could ditch the next line and use `mix test --warnings-as-errors` instead
Code.put_compiler_option(:warnings_as_errors, true)
{:ok, _} = Application.ensure_all_started(:ex_machina)
ExUnit.start()
Ecto.Adapters.SQL.Sandbox.mode(ElixirBoilerplate.Repo, :manual)
| 33.222222 | 109 | 0.77592 |
1c9e5383e0ebb1fad0044c16e3d3187fb90ef0c8 | 538 | ex | Elixir | memory_backend/lib/memory_backend/game_store.ex | AdrianPaulCarrieres/lpiot2020-memory-adrianpaulcarrieres | 0a2d66c6ecf501188a949807c8ea2d99c26c531b | [
"MIT"
] | null | null | null | memory_backend/lib/memory_backend/game_store.ex | AdrianPaulCarrieres/lpiot2020-memory-adrianpaulcarrieres | 0a2d66c6ecf501188a949807c8ea2d99c26c531b | [
"MIT"
] | 15 | 2020-12-23T16:09:28.000Z | 2020-12-26T22:32:47.000Z | memory_backend/lib/memory_backend/game_store.ex | AdrianPaulCarrieres/lpiot2020-memory-adrianpaulcarrieres | 0a2d66c6ecf501188a949807c8ea2d99c26c531b | [
"MIT"
] | null | null | null | defmodule MemoryBackend.GameStore do
use Agent
require Logger
@doc """
Starts a new game store.
"""
def start_link(_opts) do
Agent.start_link(fn -> %MemoryBackend.Game{} end)
end
@doc """
Get a game from the game store agent.
"""
def get(pid) do
Agent.get(
pid,
fn x -> x end
... | 17.933333 | 53 | 0.609665 |
1c9e99633c2774f1fcdd3235c1bb421568ee62ad | 1,514 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/firewall_log_config.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/firewall_log_config.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/firewall_log_config.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 "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... | 31.541667 | 121 | 0.746367 |
1c9ea4f389982c883e23d4f4a59d81505d807037 | 420 | exs | Elixir | template_method/html_report.exs | joshnuss/design-patterns-in-elixir | 7f07cae0701ad460b6b275e382fad03324656989 | [
"MIT"
] | 516 | 2015-09-25T18:43:37.000Z | 2022-03-22T16:33:08.000Z | template_method/html_report.exs | joshnuss/design-patterns-in-elixir | 7f07cae0701ad460b6b275e382fad03324656989 | [
"MIT"
] | 2 | 2017-10-01T22:33:34.000Z | 2019-02-21T18:21:54.000Z | template_method/html_report.exs | joshnuss/design-patterns-in-elixir | 7f07cae0701ad460b6b275e382fad03324656989 | [
"MIT"
] | 52 | 2015-11-15T05:58:45.000Z | 2022-01-21T20:01:17.000Z | defmodule HTMLReport do
use Report
def output_start,
do: IO.puts("<html>")
def output_head do
IO.puts(" <head>")
IO.puts(" <title>#{@title}</title>")
IO.puts(" </head>")
end
def output_body_start,
do: IO.puts("<body>")
def output_line(line),
do: IO.puts(" <p>#{line}</p>")
... | 16.8 | 43 | 0.569048 |
1c9eb156ea7eabcdf67e793296adb6b86c440493 | 612 | exs | Elixir | test/utils/xml_test.exs | szTheory/Woolly | cf7ad76cbaa6d9be38121816c5da223f18853653 | [
"MIT"
] | 47 | 2016-05-20T10:16:00.000Z | 2020-06-25T09:38:49.000Z | test/utils/xml_test.exs | pjhampton/woolly | 58f6d4901c21b715ec18e01afdf8608a37e1ca61 | [
"MIT"
] | 8 | 2016-05-24T15:31:40.000Z | 2020-03-03T18:33:54.000Z | test/utils/xml_test.exs | pjhampton/woolly | 58f6d4901c21b715ec18e01afdf8608a37e1ca61 | [
"MIT"
] | 8 | 2016-07-09T21:46:22.000Z | 2020-03-03T16:42:30.000Z | defmodule Woolly.Utils.XMLTest do
use ExUnit.Case, async: true
import Woolly.Utils.XML
test :removing_xml do
assert "my name is woolly" === remove_xml("my name is <name>woolly</name>")
assert "" === remove_xml("<!doctype html><html><head></head><body></body></html>")
assert "I love you" === remove_x... | 40.8 | 103 | 0.627451 |
1c9eb34a1310c543bc58ed403ade5c45c23114d2 | 1,173 | ex | Elixir | apps/customer/lib/customer/web/channels/user_socket.ex | JaiMali/job_search-1 | 5fe1afcd80aa5d55b92befed2780cd6721837c88 | [
"MIT"
] | 102 | 2017-05-21T18:24:04.000Z | 2022-03-10T12:53:20.000Z | apps/customer/lib/customer/web/channels/user_socket.ex | JaiMali/job_search-1 | 5fe1afcd80aa5d55b92befed2780cd6721837c88 | [
"MIT"
] | 2 | 2017-05-21T01:53:30.000Z | 2017-12-01T00:27:06.000Z | apps/customer/lib/customer/web/channels/user_socket.ex | JaiMali/job_search-1 | 5fe1afcd80aa5d55b92befed2780cd6721837c88 | [
"MIT"
] | 18 | 2017-05-22T09:51:36.000Z | 2021-09-24T00:57:01.000Z | defmodule Customer.Web.UserSocket do
use Phoenix.Socket
## Channels
# channel "room:*", Customer.RoomChannel
## Transports
transport :websocket, Phoenix.Transports.WebSocket
# transport :longpoll, Phoenix.Transports.LongPoll
# Socket params are passed from the client and can
# be used to verify and a... | 30.868421 | 83 | 0.702472 |
1c9eb9a19af42ef2c01713a46c1ec06a7c3e9e52 | 517 | exs | Elixir | clients/you_tube/test/video_categories_test.exs | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/you_tube/test/video_categories_test.exs | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/you_tube/test/video_categories_test.exs | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | defmodule GoogleApi.YouTube.VideoCategoriesTest do
use GoogleApi.YouTube.TestHelper
if System.get_env("GOOGLE_APPLICATION_CREDENTIALS") == nil do
@tag :skip
end
test "video categories" do
conn = GoogleApi.YouTube.V3.Connection.new(&for_scope/1)
part = "snippet"
region_code = "US"
{:ok, resp... | 32.3125 | 125 | 0.752418 |
1c9ef6bc4e669b270616194f62c5ef54ddaa3f8c | 3,691 | exs | Elixir | test/cloak/vault_test.exs | robinvdvleuten/cloak | 70cbf4bc59f15b5f60831d455b8dc7b6f457a1ff | [
"MIT"
] | 475 | 2015-09-19T14:09:11.000Z | 2022-03-28T14:53:27.000Z | test/cloak/vault_test.exs | robinvdvleuten/cloak | 70cbf4bc59f15b5f60831d455b8dc7b6f457a1ff | [
"MIT"
] | 98 | 2015-12-16T03:53:48.000Z | 2022-03-24T22:34:56.000Z | test/cloak/vault_test.exs | robinvdvleuten/cloak | 70cbf4bc59f15b5f60831d455b8dc7b6f457a1ff | [
"MIT"
] | 67 | 2015-10-21T11:56:38.000Z | 2022-03-18T13:51:16.000Z | defmodule Cloak.VaultTest do
use ExUnit.Case
alias Cloak.TestVault
defmodule RuntimeVault do
use Cloak.Vault, otp_app: :cloak
end
defmodule SupervisedVault do
use Cloak.Vault, otp_app: :cloak
end
describe ".start_link/1" do
test "allows configuration" do
key = :crypto.strong_rand_byt... | 27.139706 | 92 | 0.630994 |
1c9f1f2043bc9370974d6982cdaac0e38e2ad860 | 3,282 | ex | Elixir | lib/steps/patch/recompile_nifs.ex | tinfoil/burrito | 018dd1933b04933c0cf472938f76175b5650ea12 | [
"MIT"
] | null | null | null | lib/steps/patch/recompile_nifs.ex | tinfoil/burrito | 018dd1933b04933c0cf472938f76175b5650ea12 | [
"MIT"
] | null | null | null | lib/steps/patch/recompile_nifs.ex | tinfoil/burrito | 018dd1933b04933c0cf472938f76175b5650ea12 | [
"MIT"
] | null | null | null | defmodule Burrito.Steps.Patch.RecompileNIFs do
alias Burrito.Builder.Context
alias Burrito.Builder.Log
alias Burrito.Builder.Step
alias Burrito.Builder.Target
@behaviour Step
@impl Step
def execute(%Context{} = context) do
if context.target.cross_build do
triplet = Target.make_triplet(context.... | 31.557692 | 113 | 0.607252 |
1c9f2ab2b8c3b8927608594083b469120be97a42 | 249 | exs | Elixir | apps/alert_processor/priv/repo/migrations/20170605184024_add_subscription_metadata_fields.exs | mbta/alerts_concierge | d8e643445ef06f80ca273f2914c6959daea146f6 | [
"MIT"
] | null | null | null | apps/alert_processor/priv/repo/migrations/20170605184024_add_subscription_metadata_fields.exs | mbta/alerts_concierge | d8e643445ef06f80ca273f2914c6959daea146f6 | [
"MIT"
] | 21 | 2021-03-12T17:05:30.000Z | 2022-02-16T21:48:35.000Z | apps/alert_processor/priv/repo/migrations/20170605184024_add_subscription_metadata_fields.exs | mbta/alerts_concierge | d8e643445ef06f80ca273f2914c6959daea146f6 | [
"MIT"
] | 1 | 2021-12-09T15:09:53.000Z | 2021-12-09T15:09:53.000Z | defmodule AlertProcessor.Repo.Migrations.AddSubscriptionMetadataFields do
use Ecto.Migration
def change do
alter table(:subscriptions) do
add :origin, :string
add :destination, :string
add :type, :string
end
end
end
| 20.75 | 73 | 0.710843 |
1c9f6a47305ea39cdac395c7f9a6596bb39c51a3 | 281 | ex | Elixir | tests/dummy/web/controllers/owner_relationship_controller.ex | autoxjs/autox-phoenix | 6446f4487e3af28955f6560973cff6add34be4d4 | [
"MIT"
] | null | null | null | tests/dummy/web/controllers/owner_relationship_controller.ex | autoxjs/autox-phoenix | 6446f4487e3af28955f6560973cff6add34be4d4 | [
"MIT"
] | 20 | 2016-04-05T06:28:58.000Z | 2016-05-12T15:45:37.000Z | tests/dummy/web/controllers/owner_relationship_controller.ex | foxnewsnetwork/autox | 66ea3f0f7ba8b3f9e910984a2ed3cdf0ef5ef29a | [
"MIT"
] | null | null | null | defmodule Dummy.OwnerRelationshipController do
use Dummy.Web, :controller
plug :scrub_params, "data" when action in [:create, :update, :delete]
plug Autox.AutoParentPlug, Dummy
plug Autox.AutoPaginatePlug when action in [:index]
use Autox.RelationshipController
end | 31.222222 | 71 | 0.772242 |
1c9f897c39a09143b97746f14adfd14ef5bbdac7 | 2,029 | exs | Elixir | config/dev.exs | dbernazal/html_playback | 489c4a26ad3aafb9484a143f9352f0ce5dd26a7f | [
"MIT"
] | null | null | null | config/dev.exs | dbernazal/html_playback | 489c4a26ad3aafb9484a143f9352f0ce5dd26a7f | [
"MIT"
] | 2 | 2021-03-09T11:51:15.000Z | 2021-05-10T01:10:16.000Z | config/dev.exs | dbernazal/html_playback | 489c4a26ad3aafb9484a143f9352f0ce5dd26a7f | [
"MIT"
] | null | null | null | use Mix.Config
# For development, we disable any cache and enable
# debugging and code reloading.
#
# The watchers configuration can be used to run external
# watchers to your application. For example, we use it
# with webpack to recompile .js and .css sources.
config :html_playback, HtmlPlaybackWeb.Endpoint,
http: ... | 27.794521 | 68 | 0.680631 |
1c9fad691e78bf299859a9fa830bcfd3928fa38f | 671 | exs | Elixir | examples/simple_ecto/mix.exs | stevedomin/dynamo | 3c28f27603a480d2755a89aba3a91e88df3469ce | [
"Apache-2.0"
] | 415 | 2015-01-04T15:59:47.000Z | 2022-02-02T21:12:46.000Z | examples/simple_ecto/mix.exs | stevedomin/dynamo | 3c28f27603a480d2755a89aba3a91e88df3469ce | [
"Apache-2.0"
] | 9 | 2015-02-06T16:09:46.000Z | 2018-08-08T06:33:50.000Z | examples/simple_ecto/mix.exs | stevedomin/dynamo | 3c28f27603a480d2755a89aba3a91e88df3469ce | [
"Apache-2.0"
] | 44 | 2015-02-01T15:49:50.000Z | 2021-11-29T09:08:37.000Z | defmodule SimpleEcto.Mixfile do
use Mix.Project
def project do
[ app: :simple_ecto,
version: "0.0.1",
dynamos: [SimpleEcto.Dynamo],
compilers: [:elixir, :dynamo, :app],
env: [prod: [compile_path: "ebin"]],
compile_path: "tmp/#{Mix.env}/simple_ecto/ebin",
deps: deps ]
end
... | 24.851852 | 54 | 0.582712 |
1c9fb05cec6092275736eba1d9b31bcc787279c1 | 483 | ex | Elixir | lib/betex_web/channels/sport_channel.ex | esl/betex | b887d95c9c6edac4bcadb8da188fae215d04fe6c | [
"Apache-2.0"
] | 1 | 2021-06-15T08:18:50.000Z | 2021-06-15T08:18:50.000Z | lib/betex_web/channels/sport_channel.ex | AdiletAbylov/betex | b887d95c9c6edac4bcadb8da188fae215d04fe6c | [
"Apache-2.0"
] | null | null | null | lib/betex_web/channels/sport_channel.ex | AdiletAbylov/betex | b887d95c9c6edac4bcadb8da188fae215d04fe6c | [
"Apache-2.0"
] | 2 | 2021-06-23T16:35:04.000Z | 2021-06-23T16:35:44.000Z | defmodule BetexWeb.SportChannel do
@moduledoc """
Module handles `sport:*` channel events.
"""
use Phoenix.Channel
alias Betex.Kaffe.MessageProducer
def join("sport:lobby", _payload, socket) do
{:ok, socket}
end
def handle_in("viewing", _message, socket) do
MessageProducer.viewing_message("so... | 21 | 47 | 0.699793 |
1c9ffa21291bd59fbdfd72e9aacc7d5f791969aa | 1,124 | exs | Elixir | clients/you_tube_analytics/mix.exs | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/you_tube_analytics/mix.exs | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/you_tube_analytics/mix.exs | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | 1 | 2018-07-28T20:50:50.000Z | 2018-07-28T20:50:50.000Z | defmodule GoogleApi.YouTubeAnalytics.V1.Mixfile do
use Mix.Project
def project do
[app: :google_api_you_tube_analytics,
version: "0.0.1",
elixir: "~> 1.4",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
description: description(),
package: package(),
dep... | 23.914894 | 118 | 0.598754 |
1c9ffd14ed869485c4993e6878c02260e186a56c | 2,040 | exs | Elixir | mix.exs | BobbyMcWho/scenic_new | b358e5e15dc768db610d757b78865d4907ec2ccb | [
"Apache-2.0"
] | null | null | null | mix.exs | BobbyMcWho/scenic_new | b358e5e15dc768db610d757b78865d4907ec2ccb | [
"Apache-2.0"
] | null | null | null | mix.exs | BobbyMcWho/scenic_new | b358e5e15dc768db610d757b78865d4907ec2ccb | [
"Apache-2.0"
] | null | null | null | defmodule ScenicNew.MixProject do
use Mix.Project
@version "0.10.3"
@github "https://github.com/boydm/scenic_new"
def project do
[
app: :scenic_new,
version: @version,
elixir: "~> 1.7",
start_permanent: Mix.env() == :prod,
deps: deps(),
aliases: aliases(),
docs: [... | 23.448276 | 84 | 0.52549 |
1ca019da93ec92a2c14c00ae76a19a22c839d3b9 | 1,183 | ex | Elixir | clients/backend-client-elixir/lib/adf_sender_connector/message.ex | bancolombia/async-dataflow | 7e543f9818e6a25ce1ef28b36f17f0377fdda6cf | [
"MIT"
] | 2 | 2022-01-11T21:03:44.000Z | 2022-03-15T15:13:11.000Z | clients/backend-client-elixir/lib/adf_sender_connector/message.ex | bancolombia/async-dataflow | 7e543f9818e6a25ce1ef28b36f17f0377fdda6cf | [
"MIT"
] | 3 | 2021-12-21T21:04:20.000Z | 2022-03-15T16:16:45.000Z | clients/backend-client-elixir/lib/adf_sender_connector/message.ex | bancolombia/async-dataflow | 7e543f9818e6a25ce1ef28b36f17f0377fdda6cf | [
"MIT"
] | 2 | 2022-02-08T22:33:36.000Z | 2022-03-25T19:55:18.000Z | defmodule AdfSenderConnector.Message do
defstruct ~w[channel_ref message_id correlation_id message_data event_name]a
@moduledoc """
Notification message representation
"""
@type channel_ref() :: String.t()
@type message_id() :: String.t()
@type correlation_id() :: String.t()
@type message_data() :: io... | 26.886364 | 95 | 0.677937 |
1ca04c09df6be20f17283d4e22d2a3b2c07fd026 | 273 | ex | Elixir | lib/boilerplate_web/controllers/auth_error_controller.ex | lorenzosinisi/react-phoenix-users-boilerplate | f39022a41c2b08947c9b4451248febce5005c1a3 | [
"MIT"
] | 152 | 2017-05-29T06:04:01.000Z | 2021-12-11T19:24:02.000Z | lib/boilerplate_web/controllers/auth_error_controller.ex | lorenzosinisi/react-phoenix-users-boilerplate | f39022a41c2b08947c9b4451248febce5005c1a3 | [
"MIT"
] | 13 | 2017-07-29T18:26:37.000Z | 2018-10-26T08:33:16.000Z | lib/boilerplate_web/controllers/auth_error_controller.ex | lorenzosinisi/react-phoenix-users-boilerplate | f39022a41c2b08947c9b4451248febce5005c1a3 | [
"MIT"
] | 12 | 2017-11-18T19:13:44.000Z | 2019-10-10T01:29:28.000Z | defmodule BoilerplateWeb.AuthErrorController do
import Plug.Conn
use BoilerplateWeb, :controller
def auth_error(conn, {_type, _reason}, _opts) do
conn
|> put_status(:unauthorized)
|> render(BoilerplateWeb.SessionView, "wrong_credentials.json")
end
end
| 24.818182 | 67 | 0.750916 |
1ca056cc468810fa0026f3c9671792e1c0b68666 | 3,893 | exs | Elixir | test/live_sup/core/widgets_test.exs | livesup-dev/livesup | eaf9ffc78d3043bd9e3408f0f4df26ed16eb8446 | [
"Apache-2.0",
"MIT"
] | null | null | null | test/live_sup/core/widgets_test.exs | livesup-dev/livesup | eaf9ffc78d3043bd9e3408f0f4df26ed16eb8446 | [
"Apache-2.0",
"MIT"
] | 3 | 2022-02-23T15:51:48.000Z | 2022-03-14T22:52:43.000Z | test/live_sup/core/widgets_test.exs | livesup-dev/livesup | eaf9ffc78d3043bd9e3408f0f4df26ed16eb8446 | [
"Apache-2.0",
"MIT"
] | null | null | null | defmodule LiveSup.Test.Core.WidgetsTest do
use ExUnit.Case, async: true
use LiveSup.DataCase
import LiveSup.Test.ProjectsFixtures
import LiveSup.Test.DatasourcesFixtures
alias LiveSup.Core.{Widgets, Datasources}
describe "widgets" do
@describetag :widgets
alias LiveSup.Schemas.Widget
@name ... | 31.144 | 83 | 0.650398 |
1ca06684ad8b31c4c3f78dac42b060c2940792ac | 657 | exs | Elixir | test/authoritex/loc_test.exs | nulib/authoritex | a9b277e20873a886e2578f14f58acb277a501f01 | [
"MIT"
] | 2 | 2020-06-11T10:37:21.000Z | 2020-10-13T18:12:42.000Z | test/authoritex/loc_test.exs | nulib/authoritex | a9b277e20873a886e2578f14f58acb277a501f01 | [
"MIT"
] | 21 | 2020-05-12T21:06:32.000Z | 2022-01-14T14:43:45.000Z | test/authoritex/loc_test.exs | nulib/authoritex | a9b277e20873a886e2578f14f58acb277a501f01 | [
"MIT"
] | null | null | null | defmodule Authoritex.LOCTest do
alias Authoritex.LOC
use Authoritex.TestCase,
module: LOC,
code: "loc",
description: "Library of Congress Linked Data",
test_uris: [
"http://id.loc.gov/vocabulary/organizations/iehs",
"info:lc/vocabulary/organizations/iehs"
],
bad_uri: "http://id.... | 29.863636 | 67 | 0.680365 |
1ca066cfc02bed14cae496d809edb20d41020d87 | 8,017 | ex | Elixir | lib/mix_tasks_phoenix_gen_instachat.ex | itsgreggreg/phoenix_generator | ed39acbaf42900706968fff2a28978605af8fc78 | [
"MIT"
] | 32 | 2015-01-18T08:41:38.000Z | 2016-12-07T07:11:36.000Z | lib/mix_tasks_phoenix_gen_instachat.ex | itsgreggreg/phoenix_generator | ed39acbaf42900706968fff2a28978605af8fc78 | [
"MIT"
] | 5 | 2015-01-31T20:18:43.000Z | 2016-05-03T15:16:30.000Z | lib/mix_tasks_phoenix_gen_instachat.ex | itsgreggreg/phoenix_generator | ed39acbaf42900706968fff2a28978605af8fc78 | [
"MIT"
] | 5 | 2015-01-28T06:32:48.000Z | 2016-11-26T18:16:00.000Z | defmodule Mix.Tasks.Phoenix.Gen.Instachat do
# This module is a copy paste of Gen.Channel with a few additions
use Mix.Task
import Mix.Generator
import Phoenix.Gen.Utils
@shortdoc "Generate an instant chatroom for a Phoenix Application"
@moduledoc """
Generates a zero configuration chat room
mix p... | 31.562992 | 94 | 0.600225 |
1ca080dd98fd1e6dea6013c245067d3fbc36dc63 | 2,494 | ex | Elixir | lib/lotus/props/background.ex | code-shoily/lotus | d14958956103f2376d51974f40bcc7d7c59c2ad9 | [
"MIT"
] | 3 | 2021-09-20T10:34:15.000Z | 2021-09-20T16:23:07.000Z | lib/lotus/props/background.ex | code-shoily/lotus | d14958956103f2376d51974f40bcc7d7c59c2ad9 | [
"MIT"
] | null | null | null | lib/lotus/props/background.ex | code-shoily/lotus | d14958956103f2376d51974f40bcc7d7c59c2ad9 | [
"MIT"
] | 1 | 2021-11-23T13:10:27.000Z | 2021-11-23T13:10:27.000Z | defmodule Lotus.Props.Background do
@moduledoc """
<docs> https://getuikit.com/docs/background
"""
defmacro __using__(_) do
quote do
@doc """
Background_size
"""
prop background, :string, values: ~w/default muted primary secondary/
@doc """
Background_size
"""
... | 24.693069 | 86 | 0.590617 |
1ca097dc0772c730497cc52ab3c75e46ac9de5a6 | 8,936 | ex | Elixir | lib/elixir/lib/kernel/parallel_compiler.ex | sunaku/elixir | 8aa43eaedd76be8ac0d495049eb9ecd56971f4fe | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/kernel/parallel_compiler.ex | sunaku/elixir | 8aa43eaedd76be8ac0d495049eb9ecd56971f4fe | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/kernel/parallel_compiler.ex | sunaku/elixir | 8aa43eaedd76be8ac0d495049eb9ecd56971f4fe | [
"Apache-2.0"
] | 1 | 2020-12-07T08:04:16.000Z | 2020-12-07T08:04:16.000Z | defmodule Kernel.ParallelCompiler do
@moduledoc """
A module responsible for compiling files in parallel.
"""
@doc """
Compiles the given files.
Those files are compiled in parallel and can automatically
detect dependencies between them. Once a dependency is found,
the current file stops being compile... | 35.744 | 134 | 0.659691 |
1ca0b5f310fd328f2cf0e724e1342cfc6da5e448 | 624 | ex | Elixir | lib/movement/operation.ex | isshindev/accent | ae4c13139b0a0dfd64ff536b94c940a4e2862150 | [
"BSD-3-Clause"
] | 806 | 2018-04-07T20:40:33.000Z | 2022-03-30T01:39:57.000Z | lib/movement/operation.ex | isshindev/accent | ae4c13139b0a0dfd64ff536b94c940a4e2862150 | [
"BSD-3-Clause"
] | 194 | 2018-04-07T13:49:37.000Z | 2022-03-30T19:58:45.000Z | lib/movement/operation.ex | isshindev/accent | ae4c13139b0a0dfd64ff536b94c940a4e2862150 | [
"BSD-3-Clause"
] | 89 | 2018-04-09T13:55:49.000Z | 2022-03-24T07:09:31.000Z | defmodule Movement.Operation do
defstruct action: nil,
key: nil,
text: nil,
file_comment: nil,
file_index: 0,
value_type: nil,
plural: false,
locked: false,
batch: false,
translation_id: nil,
rollba... | 26 | 41 | 0.49359 |
1ca0bba3e64185034e7368dc4f2371802d5847ba | 1,552 | exs | Elixir | mix.exs | elpassion/sprint-poker | 5c9b34bb264c7a30ff48f0aeac40821b67310ff8 | [
"MIT"
] | 199 | 2015-10-22T16:20:09.000Z | 2021-11-08T11:20:45.000Z | mix.exs | elpassion/sprint-poker | 5c9b34bb264c7a30ff48f0aeac40821b67310ff8 | [
"MIT"
] | 4 | 2015-10-24T20:43:29.000Z | 2016-03-03T21:09:06.000Z | mix.exs | elpassion/sprint-poker | 5c9b34bb264c7a30ff48f0aeac40821b67310ff8 | [
"MIT"
] | 34 | 2015-10-23T06:38:43.000Z | 2019-08-13T23:49:24.000Z | defmodule SprintPoker.Mixfile do
use Mix.Project
def project do
[
app: :sprint_poker,
version: "0.0.1",
elixir: "~> 1.4",
elixirc_paths: elixirc_paths(Mix.env),
compilers: [:phoenix] ++ Mix.compilers,
start_permanent: Mix.env == :prod,
aliases: aliases(),
deps: d... | 25.866667 | 79 | 0.585052 |
1ca1027714231f3e239b972b7cb2f77385860866 | 15 | exs | Elixir | test/test_helper.exs | mark-b-kauffman/phoenixDSK3LO | 999d7f66515a3bf1974d25c3d7ff3b439266452c | [
"BSD-3-Clause",
"MIT"
] | 8 | 2017-07-24T20:54:25.000Z | 2021-04-06T19:19:32.000Z | test/test_helper.exs | mark-b-kauffman/phoenixDSK3LO | 999d7f66515a3bf1974d25c3d7ff3b439266452c | [
"BSD-3-Clause",
"MIT"
] | 2 | 2021-03-08T16:21:37.000Z | 2021-05-06T17:53:24.000Z | test/test_helper.exs | mark-b-kauffman/phoenixDSK3LO | 999d7f66515a3bf1974d25c3d7ff3b439266452c | [
"BSD-3-Clause",
"MIT"
] | 2 | 2019-12-12T17:04:32.000Z | 2020-07-22T15:42:32.000Z | ExUnit.start
| 3.75 | 12 | 0.733333 |
1ca15603ce7285c11a2b73ecacb9cb120ffd324b | 1,058 | ex | Elixir | lib/avrora/storage.ex | ni-lti-sdm/avrora | 0e9a1ded482de4e0eb0843c692e844593d0e5341 | [
"MIT"
] | 59 | 2019-07-11T15:29:26.000Z | 2022-03-23T19:35:55.000Z | lib/avrora/storage.ex | ni-lti-sdm/avrora | 0e9a1ded482de4e0eb0843c692e844593d0e5341 | [
"MIT"
] | 63 | 2019-08-09T17:52:26.000Z | 2022-03-16T22:08:04.000Z | lib/avrora/storage.ex | ni-lti-sdm/avrora | 0e9a1ded482de4e0eb0843c692e844593d0e5341 | [
"MIT"
] | 22 | 2019-07-29T10:50:47.000Z | 2021-09-04T13:37:08.000Z | defmodule Avrora.Storage do
@moduledoc """
Behavior for storing and getting schemas by name or integer ID.
"""
@typedoc "Schema indentifier."
@type schema_id :: String.t() | integer()
@callback get(key :: schema_id) ::
{:ok, result :: nil | Avrora.Schema.t()} | {:error, reason :: term()}
... | 31.117647 | 83 | 0.587902 |
1ca15da88d4fab13c05ad3f3aadbb2dc6a0363dd | 5,768 | exs | Elixir | test/stream_test.exs | nedap/mariaex | 102a23088386eb5038337084be34775e59945924 | [
"Apache-2.0"
] | 264 | 2015-03-05T06:55:21.000Z | 2021-08-02T22:12:35.000Z | test/stream_test.exs | nedap/mariaex | 102a23088386eb5038337084be34775e59945924 | [
"Apache-2.0"
] | 215 | 2015-03-04T23:39:52.000Z | 2022-01-17T05:14:10.000Z | test/stream_test.exs | nedap/mariaex | 102a23088386eb5038337084be34775e59945924 | [
"Apache-2.0"
] | 132 | 2015-03-04T22:50:48.000Z | 2021-12-09T23:28:59.000Z | defmodule StreamTest do
use ExUnit.Case, async: true
import Mariaex.TestHelper
setup_all do
{:ok, pid} = connect()
{:ok, _} = Mariaex.query(pid, "CREATE TABLE stream (id int, text text)", [])
{:ok, _} = Mariaex.query(pid, "INSERT INTO stream VALUES (1, 'foo'), (2, 'bar')", [])
:sys.terminate(pid,... | 37.454545 | 110 | 0.567441 |
1ca178b8a69794844f1e2ed5370179b923ec0283 | 943 | ex | Elixir | lib/exploring_elixir/e001/jsonfilter.ex | arcseldon/exploring-elixir | 0115aed80e5905384e7277dfe740d09e3a496b7b | [
"Apache-2.0"
] | 30 | 2017-07-03T23:53:37.000Z | 2021-03-14T21:27:14.000Z | lib/exploring_elixir/e001/jsonfilter.ex | arcseldon/exploring-elixir | 0115aed80e5905384e7277dfe740d09e3a496b7b | [
"Apache-2.0"
] | 1 | 2018-05-25T20:00:24.000Z | 2018-05-30T09:40:09.000Z | lib/exploring_elixir/e001/jsonfilter.ex | aseigo/exploring-elixir | 0115aed80e5905384e7277dfe740d09e3a496b7b | [
"Apache-2.0"
] | 4 | 2017-07-27T09:07:17.000Z | 2019-05-22T11:14:25.000Z | defmodule ExploringElixir.JSONFilter do
def extract(pid, json, key) when is_pid(pid) and is_binary(json) and is_binary(key) do
{_worker_pid, _monitor_ref} = spawn_monitor(__MODULE__, :extract_data, [self(), json, key])
wait_for_response pid
end
def wait_for_response(pid) do
receive do
{:DOWN, _... | 36.269231 | 118 | 0.654295 |
1ca17b571a17bf83ea9b265d0082fd96dd8c09f4 | 1,521 | exs | Elixir | elixir/word-count/word_count_test.exs | ArtemGordinsky/exercism | 74e91e3b48ca920803474ec435c13eac66351b9f | [
"Unlicense"
] | null | null | null | elixir/word-count/word_count_test.exs | ArtemGordinsky/exercism | 74e91e3b48ca920803474ec435c13eac66351b9f | [
"Unlicense"
] | null | null | null | elixir/word-count/word_count_test.exs | ArtemGordinsky/exercism | 74e91e3b48ca920803474ec435c13eac66351b9f | [
"Unlicense"
] | null | null | null | if !System.get_env("EXERCISM_TEST_EXAMPLES") do
Code.load_file("word_count.exs", __DIR__)
end
ExUnit.start
ExUnit.configure exclude: :pending, trace: true
defmodule WordsTest do
use ExUnit.Case
test "count one word" do
assert Words.count("word") == %{ "word" => 1 }
end
test "count one of each" do
... | 24.142857 | 88 | 0.595003 |
1ca18df260021650f053e5c2bee4332fc86122cc | 16,075 | ex | Elixir | clients/big_query/lib/google_api/big_query/v2/api/routines.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/big_query/lib/google_api/big_query/v2/api/routines.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/big_query/lib/google_api/big_query/v2/api/routines.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... | 41.753247 | 187 | 0.617729 |
1ca19ace240fdca2146a0d469610aae68058c691 | 21,792 | ex | Elixir | lib/elixir/lib/io.ex | frerich/elixir | c799fcdcf7f9ed8b49f6de9146ede41642a491d3 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/io.ex | frerich/elixir | c799fcdcf7f9ed8b49f6de9146ede41642a491d3 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/io.ex | frerich/elixir | c799fcdcf7f9ed8b49f6de9146ede41642a491d3 | [
"Apache-2.0"
] | null | null | null | defmodule IO do
@moduledoc ~S"""
Functions handling input/output (IO).
Many functions in this module expect an IO device as an argument.
An IO device must be a PID or an atom representing a process.
For convenience, Elixir provides `:stdio` and `:stderr` as
shortcuts to Erlang's `:standard_io` and `:standa... | 30.016529 | 104 | 0.667126 |
1ca1a1857a8cfdbd5ebf81e1607eaa4748ec4ee3 | 1,059 | ex | Elixir | lib/credo/check/consistency/line_endings.ex | jlgeering/credo | b952190ed758c262aa0d9bbee01227f9b1f0c63b | [
"MIT"
] | null | null | null | lib/credo/check/consistency/line_endings.ex | jlgeering/credo | b952190ed758c262aa0d9bbee01227f9b1f0c63b | [
"MIT"
] | null | null | null | lib/credo/check/consistency/line_endings.ex | jlgeering/credo | b952190ed758c262aa0d9bbee01227f9b1f0c63b | [
"MIT"
] | null | null | null | defmodule Credo.Check.Consistency.LineEndings do
@moduledoc """
Windows and *nix systems use different line-endings in files.
While this is not necessarily a concern for the correctness of your code,
you should use a consistent style throughout your codebase.
"""
@explanation [check: @moduledoc]
@colle... | 30.257143 | 87 | 0.738432 |
1ca1b1b99d98522ca3ccc5a779fdfab13b97af20 | 7,875 | ex | Elixir | lib/logger/lib/logger/formatter.ex | doughsay/elixir | 7356a47047d0b54517bd6886603f09b1121dde2b | [
"Apache-2.0"
] | 19,291 | 2015-01-01T02:42:49.000Z | 2022-03-31T21:01:40.000Z | lib/logger/lib/logger/formatter.ex | doughsay/elixir | 7356a47047d0b54517bd6886603f09b1121dde2b | [
"Apache-2.0"
] | 8,082 | 2015-01-01T04:16:23.000Z | 2022-03-31T22:08:02.000Z | lib/logger/lib/logger/formatter.ex | doughsay/elixir | 7356a47047d0b54517bd6886603f09b1121dde2b | [
"Apache-2.0"
] | 3,472 | 2015-01-03T04:11:56.000Z | 2022-03-29T02:07:30.000Z | import Kernel, except: [inspect: 2]
defmodule Logger.Formatter do
@moduledoc ~S"""
Conveniences for formatting data for logs.
This module allows developers to specify a string that
serves as template for log messages, for example:
$time $metadata[$level] $message\n
Will print error messages as:
... | 34.090909 | 101 | 0.651683 |
1ca1b1d8a6f7795ed10fb54cc6722a9f738f5f37 | 5,509 | exs | Elixir | lib/elixir/test/elixir/set_test.exs | jbcrail/elixir | f30ef15d9d028a6d0f74d10c2bb320d5f8501bdb | [
"Apache-2.0"
] | 1 | 2015-02-23T00:01:48.000Z | 2015-02-23T00:01:48.000Z | lib/elixir/test/elixir/set_test.exs | jbcrail/elixir | f30ef15d9d028a6d0f74d10c2bb320d5f8501bdb | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/set_test.exs | jbcrail/elixir | f30ef15d9d028a6d0f74d10c2bb320d5f8501bdb | [
"Apache-2.0"
] | null | null | null | Code.require_file "test_helper.exs", __DIR__
# A TestSet implementation used only for testing.
defmodule TestSet do
defstruct list: []
def new(list \\ []) when is_list(list) do
%TestSet{list: list}
end
def reduce(%TestSet{list: list}, acc, fun) do
Enumerable.reduce(list, acc, fun)
end
def member?... | 29.148148 | 85 | 0.559267 |
1ca1bb6ebcf8855d1c6379fbab4c7965055e551f | 263 | exs | Elixir | priv/repo/migrations/20180309212149_add_members_to_projects.exs | sobolevn/docdog-engine | 5f7ad60465063fac3d56574f2bf27a4a52d0a91e | [
"MIT"
] | null | null | null | priv/repo/migrations/20180309212149_add_members_to_projects.exs | sobolevn/docdog-engine | 5f7ad60465063fac3d56574f2bf27a4a52d0a91e | [
"MIT"
] | null | null | null | priv/repo/migrations/20180309212149_add_members_to_projects.exs | sobolevn/docdog-engine | 5f7ad60465063fac3d56574f2bf27a4a52d0a91e | [
"MIT"
] | null | null | null | defmodule Docdog.Repo.Migrations.AddMembersToProjects do
use Ecto.Migration
def change do
alter table(:projects) do
add :members, {:array, :integer}, default: [], null: false
end
create index(:projects, [:members], using: "GIN")
end
end
| 21.916667 | 64 | 0.680608 |
1ca1d0bf9e924e716f7fc653e5556154ef8d4dfb | 1,281 | ex | Elixir | lib/middleware/simple_policy.ex | spunkedy/sucrose | 57a5f969d878f49e82faf666b7d5c5b21c67c771 | [
"MIT"
] | 2 | 2019-09-23T18:19:26.000Z | 2019-09-30T13:18:06.000Z | lib/middleware/simple_policy.ex | spunkedy/sucrose | 57a5f969d878f49e82faf666b7d5c5b21c67c771 | [
"MIT"
] | null | null | null | lib/middleware/simple_policy.ex | spunkedy/sucrose | 57a5f969d878f49e82faf666b7d5c5b21c67c771 | [
"MIT"
] | null | null | null | defmodule Sucrose.Middleware.SimplePolicy do
alias Absinthe.Resolution
alias Sucrose.Common
@behaviour Absinthe.Middleware
@moduledoc """
This is a simple policy handler that takes a very simple approach to absinthe resolution handling
The basis for all of the handlers is to have a common response type:
... | 25.62 | 99 | 0.67057 |
1ca1f1681bcd86f940a3a34783dee99af7dc8c9b | 5,821 | exs | Elixir | priv/release.exs | cohawk/petal_components | 2741c4de66fa8dfa2896fe1e6e02f1d1653422cd | [
"MIT"
] | null | null | null | priv/release.exs | cohawk/petal_components | 2741c4de66fa8dfa2896fe1e6e02f1d1653422cd | [
"MIT"
] | null | null | null | priv/release.exs | cohawk/petal_components | 2741c4de66fa8dfa2896fe1e6e02f1d1653422cd | [
"MIT"
] | null | null | null | defmodule Releaser.VersionUtils do
@doc """
Some utilities to get and set version numbers in the `mix.exs` file and to programatically transform version numbers.
1. Create a file RELEASE.md and fill out the following templates.
```
RELEASE_TYPE: patch
- Fixed x
- Added y
```
Release types:
- maj... | 26.339367 | 119 | 0.676344 |
1ca210a1cc578add303629aef09f5822cb32e488 | 5,862 | ex | Elixir | lib/mix/tasks/prom_ex.dashboard.export.ex | LostKobrakai/prom_ex | 3557e828cf3905adaf6719003e68b65294b62288 | [
"MIT"
] | 354 | 2020-10-21T06:27:15.000Z | 2022-03-29T13:22:46.000Z | lib/mix/tasks/prom_ex.dashboard.export.ex | LostKobrakai/prom_ex | 3557e828cf3905adaf6719003e68b65294b62288 | [
"MIT"
] | 111 | 2020-11-25T21:27:13.000Z | 2022-03-28T10:42:59.000Z | lib/mix/tasks/prom_ex.dashboard.export.ex | blockfi/prom_ex | bca03035f52d023dfec365f82f01c648b367073b | [
"MIT"
] | 45 | 2020-12-31T20:37:11.000Z | 2022-03-18T13:12:21.000Z | defmodule Mix.Tasks.PromEx.Dashboard.Export do
@moduledoc """
This will render a PromEx dashboard either to STDOUT or to a file depending on
the CLI arguments that are provided.
The following CLI flags are supported:
```md
-d, --dashboard The name of the dashboard that you would like to export from PromEx... | 32.748603 | 122 | 0.659161 |
1ca226af5fe29c52bfa8d82dc8735f53c437cc6a | 508 | ex | Elixir | lib/wishlist_web/live/assignment_live/show.ex | egutter/wishlist | af7b71c96ef9efded708c5ecfe3bab5a00c0761e | [
"MIT"
] | null | null | null | lib/wishlist_web/live/assignment_live/show.ex | egutter/wishlist | af7b71c96ef9efded708c5ecfe3bab5a00c0761e | [
"MIT"
] | null | null | null | lib/wishlist_web/live/assignment_live/show.ex | egutter/wishlist | af7b71c96ef9efded708c5ecfe3bab5a00c0761e | [
"MIT"
] | null | null | null | defmodule WishlistWeb.AssignmentLive.Show do
use WishlistWeb, :live_view
alias Wishlist.Wishlists
@impl true
def mount(_params, _session, socket) do
{:ok, socket}
end
@impl true
def handle_params(%{"id" => id}, _, socket) do
{:noreply,
socket
|> assign(:page_title, page_title(socket.a... | 23.090909 | 67 | 0.688976 |
1ca230f12aa96ec3f3f76ac6f530cdcfda2677a5 | 3,315 | ex | Elixir | lib/rabbit/message.ex | suitepad-gmbh/rabbit | c6ba3cbca6b49362c3a9dd32d3af001a1de750ad | [
"MIT"
] | 36 | 2019-06-05T02:27:11.000Z | 2022-02-27T22:01:27.000Z | lib/rabbit/message.ex | suitepad-gmbh/rabbit | c6ba3cbca6b49362c3a9dd32d3af001a1de750ad | [
"MIT"
] | 41 | 2019-06-06T07:50:20.000Z | 2021-08-02T10:18:08.000Z | lib/rabbit/message.ex | suitepad-gmbh/rabbit | c6ba3cbca6b49362c3a9dd32d3af001a1de750ad | [
"MIT"
] | 2 | 2021-01-13T16:13:05.000Z | 2021-04-09T13:22:19.000Z | defmodule Rabbit.Message do
@moduledoc """
A message consumed by a `Rabbit.Consumer`.
After starting a consumer, any message passed to the `c:Rabbit.Consumer.handle_message/1`
callback will be wrapped in a messsage struct. The struct has the following
fields:
* `:consumer` - The PID of the consumer proces... | 30.136364 | 91 | 0.642232 |
1ca2576e55f22b0fb5f2c25a3dc5ab7adee9823e | 973 | ex | Elixir | lib/freshcom_web/plugs/pagination.ex | freshcom/freshcom_web | fab44c9468e86b1770eef9971a97ad2b11545e9c | [
"BSD-3-Clause"
] | 9 | 2018-12-16T14:02:59.000Z | 2021-01-19T07:25:40.000Z | lib/freshcom_web/plugs/pagination.ex | freshcom/freshcom_web | fab44c9468e86b1770eef9971a97ad2b11545e9c | [
"BSD-3-Clause"
] | null | null | null | lib/freshcom_web/plugs/pagination.ex | freshcom/freshcom_web | fab44c9468e86b1770eef9971a97ad2b11545e9c | [
"BSD-3-Clause"
] | 4 | 2018-12-16T17:50:01.000Z | 2021-01-19T07:25:51.000Z | defmodule FreshcomWeb.PaginationPlug do
import Plug.Conn
@defaults %{number: 1, size: 25}
def init(_), do: []
def call(%{query_params: query_params} = conn, _) do
assign(conn, :pagination, pagination(query_params["page"]))
end
defp pagination(%{"number" => number} = raw) do
number = to_int(numbe... | 23.166667 | 63 | 0.621788 |
1ca2b554e6ab7294f3e719b88b5b7b441263ef4b | 1,692 | exs | Elixir | apps/neoscan_sync/mix.exs | vincentgeneste/neo-scan | 4a654575331eeb3eb12d4fd61696a7bd6dbca3ce | [
"MIT"
] | 75 | 2017-07-23T02:45:32.000Z | 2021-12-13T11:04:17.000Z | apps/neoscan_sync/mix.exs | vincentgeneste/neo-scan | 4a654575331eeb3eb12d4fd61696a7bd6dbca3ce | [
"MIT"
] | 252 | 2017-07-13T19:36:00.000Z | 2021-07-28T18:40:00.000Z | apps/neoscan_sync/mix.exs | vincentgeneste/neo-scan | 4a654575331eeb3eb12d4fd61696a7bd6dbca3ce | [
"MIT"
] | 87 | 2017-07-23T02:45:34.000Z | 2022-03-02T14:54:27.000Z | defmodule NeoscanSync.Mixfile do
use Mix.Project
def project do
[
app: :neoscan_sync,
version: "2.0.0",
build_path: "../../_build",
config_path: "../../config/config.exs",
deps_path: "../../deps",
lockfile: "../../mix.lock",
elixir: "~> 1.4",
elixirc_options: [wa... | 25.253731 | 79 | 0.584515 |
1ca2bfb677d70ea2027089049db9d1e87199ca8e | 752 | ex | Elixir | apps/instance/lib/instance/application.ex | makerdao/qa_backend_gateway | 38e9a3f3f4b66212f1ee9d38b3b698a2a1f9a809 | [
"Apache-2.0"
] | 1 | 2020-10-23T19:25:27.000Z | 2020-10-23T19:25:27.000Z | apps/instance/lib/instance/application.ex | makerdao/qa_backend_gateway | 38e9a3f3f4b66212f1ee9d38b3b698a2a1f9a809 | [
"Apache-2.0"
] | 5 | 2019-01-11T11:48:08.000Z | 2019-01-16T17:29:23.000Z | apps/instance/lib/instance/application.ex | makerdao/qa_backend_gateway | 38e9a3f3f4b66212f1ee9d38b3b698a2a1f9a809 | [
"Apache-2.0"
] | 7 | 2019-10-09T05:49:52.000Z | 2022-03-23T16:48:45.000Z | defmodule Staxx.Instance.Application do
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
use Application
def start(_type, _args) do
# List all child processes to be supervised
children = [
{Registry, keys: :unique, name: Staxx.Instanc... | 31.333333 | 71 | 0.722074 |
1ca2d10bc14ff23d2e73713a1bff75ad899ef59c | 1,809 | exs | Elixir | clients/tasks/mix.exs | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/tasks/mix.exs | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/tasks/mix.exs | 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... | 27 | 96 | 0.64953 |
1ca2db5d62ac20cb0554b41784c7be5950881776 | 198 | exs | Elixir | priv/repo/migrations/20200124122726_add_joined_to_players_teams.exs | mzavoloka/kamleague | ba29263ed54cac5c67b537c4b7d1dbc522215341 | [
"MIT"
] | null | null | null | priv/repo/migrations/20200124122726_add_joined_to_players_teams.exs | mzavoloka/kamleague | ba29263ed54cac5c67b537c4b7d1dbc522215341 | [
"MIT"
] | 2 | 2021-11-04T21:05:24.000Z | 2021-11-04T21:51:48.000Z | priv/repo/migrations/20200124122726_add_joined_to_players_teams.exs | mzavoloka/kamleague | ba29263ed54cac5c67b537c4b7d1dbc522215341 | [
"MIT"
] | 1 | 2021-11-04T18:40:26.000Z | 2021-11-04T18:40:26.000Z | defmodule Kamleague.Repo.Migrations.AddJoinedToPlayersTeams do
use Ecto.Migration
def change do
alter table(:players_teams) do
add :joined, :boolean, default: false
end
end
end
| 19.8 | 62 | 0.737374 |
1ca3071f332c446fa334061cb7fb0f8b744c5028 | 12,970 | ex | Elixir | apps/artemis_web/lib/artemis_web/view_helpers/tables.ex | artemis-platform/artemis_dashboard | 5ab3f5ac4c5255478bbebf76f0e43b44992e3cab | [
"MIT"
] | 9 | 2019-08-19T19:56:34.000Z | 2022-03-22T17:56:38.000Z | apps/artemis_web/lib/artemis_web/view_helpers/tables.ex | chrislaskey/artemis_teams | 9930c3d9528e37b76f0525390e32b66eed7eadde | [
"MIT"
] | 7 | 2019-07-12T21:41:01.000Z | 2020-08-17T21:29:22.000Z | apps/artemis_web/lib/artemis_web/view_helpers/tables.ex | chrislaskey/artemis_teams | 9930c3d9528e37b76f0525390e32b66eed7eadde | [
"MIT"
] | 2 | 2019-07-05T22:51:47.000Z | 2019-08-19T19:56:37.000Z | defmodule ArtemisWeb.ViewHelper.Tables do
use Phoenix.HTML
import Phoenix.HTML.Tag
@default_delimiter ","
@doc """
Generates empty table row if no records match
"""
def render_table_row_if_empty(records, options \\ [])
def render_table_row_if_empty(%{entries: entries}, options), do: render_table_row... | 31.103118 | 110 | 0.685582 |
1ca3216b1595b21c01af4323298f6de331f2a487 | 613 | ex | Elixir | lib/bolt/consumer/channel_delete.ex | CyberFlameGO/bolt | 225e6276983bec646e7f13519df066e8e1e770ed | [
"ISC"
] | 31 | 2018-12-06T23:12:33.000Z | 2022-03-29T18:34:25.000Z | lib/bolt/consumer/channel_delete.ex | CyberFlameGO/bolt | 225e6276983bec646e7f13519df066e8e1e770ed | [
"ISC"
] | 18 | 2021-06-14T19:03:26.000Z | 2022-03-15T17:46:22.000Z | lib/bolt/consumer/channel_delete.ex | CyberFlameGO/bolt | 225e6276983bec646e7f13519df066e8e1e770ed | [
"ISC"
] | 4 | 2018-11-07T18:52:28.000Z | 2022-03-16T00:14:38.000Z | defmodule Bolt.Consumer.ChannelDelete do
@moduledoc "Handles the `CHANNEL_DELETE` event."
alias Bolt.ModLog
alias Nostrum.Struct.Channel
@spec handle(Channel.t()) :: nil | ModLog.on_emit()
def handle(channel) do
unless channel.guild_id == nil do
type_name =
case channel.type do
0... | 23.576923 | 68 | 0.588907 |
1ca33648ee1672c09e92b5c6ea4895380361ae52 | 212 | ex | Elixir | config.ex | jjg/jsfs | 73613eaf44edd476d368d62a079b1c1347bd3ac4 | [
"MIT"
] | 3 | 2015-01-04T22:00:22.000Z | 2016-06-02T19:49:33.000Z | config.ex | jjg/jsfs | 73613eaf44edd476d368d62a079b1c1347bd3ac4 | [
"MIT"
] | 109 | 2015-01-01T17:48:42.000Z | 2016-12-29T00:19:40.000Z | config.ex | jjg/jsfs | 73613eaf44edd476d368d62a079b1c1347bd3ac4 | [
"MIT"
] | 5 | 2015-01-19T20:45:47.000Z | 2021-02-23T17:15:10.000Z | module.exports = {
STORAGE_LOCATIONS:[
{"path":"./blocks1/"},
{"path":"./blocks2/"}
],
BLOCK_SIZE: 1048576,
LOG_LEVEL: 0,
SERVER_PORT: 7302,
REQUEST_TIMEOUT: 30, // minutes
CONFIGURED_STORAGE: "fs"
};
| 17.666667 | 32 | 0.650943 |
1ca349cafcaf19320e7f3c6dd0c2c5241aac1212 | 8,209 | exs | Elixir | lib/mix/test/test_helper.exs | michaelkschmidt/elixir | 805efd071d220b7431269b9716c5f7ce44ca36e8 | [
"Apache-2.0"
] | null | null | null | lib/mix/test/test_helper.exs | michaelkschmidt/elixir | 805efd071d220b7431269b9716c5f7ce44ca36e8 | [
"Apache-2.0"
] | null | null | null | lib/mix/test/test_helper.exs | michaelkschmidt/elixir | 805efd071d220b7431269b9716c5f7ce44ca36e8 | [
"Apache-2.0"
] | null | null | null | Mix.start()
Mix.shell(Mix.Shell.Process)
Application.put_env(:mix, :colors, [enabled: false])
ExUnit.start [trace: "--trace" in System.argv]
defmodule MixTest.Case do
use ExUnit.CaseTemplate
defmodule Sample do
def project do
[app: :sample,
version: "0.1.0",
aliases: [sample: "compile"]]
... | 22.008043 | 82 | 0.618589 |
1ca396b867deb99ca94438cfe825de9824df7729 | 934 | ex | Elixir | test/support/channel_case.ex | donkeybanana/s2i-elixir | c13796ec3e66bd372d08f08a36f5704d6da98015 | [
"MIT"
] | null | null | null | test/support/channel_case.ex | donkeybanana/s2i-elixir | c13796ec3e66bd372d08f08a36f5704d6da98015 | [
"MIT"
] | null | null | null | test/support/channel_case.ex | donkeybanana/s2i-elixir | c13796ec3e66bd372d08f08a36f5704d6da98015 | [
"MIT"
] | null | null | null | defmodule LiveWeb.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.685714 | 61 | 0.735546 |
1ca3aa3f0941880d5fa0efc669757d40c1b531d2 | 322 | ex | Elixir | deps/plug_wait1/lib/plug/adapters/wait1/conn/query_string.ex | conorfoley/dota_hero_combos | d75a3f0673fc1f1d0845c9d5c692c0605d3b445d | [
"MIT"
] | null | null | null | deps/plug_wait1/lib/plug/adapters/wait1/conn/query_string.ex | conorfoley/dota_hero_combos | d75a3f0673fc1f1d0845c9d5c692c0605d3b445d | [
"MIT"
] | null | null | null | deps/plug_wait1/lib/plug/adapters/wait1/conn/query_string.ex | conorfoley/dota_hero_combos | d75a3f0673fc1f1d0845c9d5c692c0605d3b445d | [
"MIT"
] | null | null | null | defmodule Plug.Adapters.Wait1.Conn.QS do
defstruct kvs: nil
end
defimpl String.Chars, for: Plug.Adapters.Wait1.Conn.QS do
def to_string(%{:kvs => kvs}) when is_map(kvs) do
Plug.Conn.Query.encode(kvs)
end
def to_string(%{:kvs => kvs}) when is_binary(kvs) do
kvs
end
def to_string(_) do
""
end
e... | 21.466667 | 57 | 0.680124 |
1ca412c2043ca502ac04ea27d5fbd797eceb2938 | 1,590 | ex | Elixir | lib/ssl_certs/cli/create.ex | aforward/sslcerts | cd0d1310102e509b4f00d24040af939e4cefd395 | [
"MIT"
] | 9 | 2017-08-11T14:43:09.000Z | 2021-03-27T21:07:41.000Z | lib/ssl_certs/cli/create.ex | aforward/sslcerts | cd0d1310102e509b4f00d24040af939e4cefd395 | [
"MIT"
] | null | null | null | lib/ssl_certs/cli/create.ex | aforward/sslcerts | cd0d1310102e509b4f00d24040af939e4cefd395 | [
"MIT"
] | 1 | 2017-09-14T20:08:53.000Z | 2017-09-14T20:08:53.000Z | defmodule Sslcerts.Cli.Create do
use Mix.Task
use FnExpr
alias Sslcerts.Io.Shell
alias Sslcerts.Cli.{Parser, Install}
@moduledoc """
Create a new certificate
sslcerts create
This assumes that `bits` has been installed, if that's not the case, then ensure that you first run
sslcerts install... | 26.065574 | 101 | 0.608805 |
1ca423d30fdc205faa4acecdbe794cb603479a1e | 979 | ex | Elixir | uptime_gui/test/support/channel_case.ex | mattiaslundberg/uptime | cef2657e5b5a4a851c088947ee9050c3b31dabdf | [
"MIT"
] | null | null | null | uptime_gui/test/support/channel_case.ex | mattiaslundberg/uptime | cef2657e5b5a4a851c088947ee9050c3b31dabdf | [
"MIT"
] | null | null | null | uptime_gui/test/support/channel_case.ex | mattiaslundberg/uptime | cef2657e5b5a4a851c088947ee9050c3b31dabdf | [
"MIT"
] | null | null | null | defmodule UptimeGuiWeb.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 interacts ... | 24.475 | 71 | 0.71808 |
1ca425f82906a9d8ba4d285e780ab5596fe22b50 | 3,372 | ex | Elixir | apps/rig_api/lib/rig_api/controllers/message_controller.ex | vanillebear/reactive-interaction-gateway | 5eb2afa00b8e74bddfd712ba282a3768e8ede239 | [
"Apache-2.0"
] | null | null | null | apps/rig_api/lib/rig_api/controllers/message_controller.ex | vanillebear/reactive-interaction-gateway | 5eb2afa00b8e74bddfd712ba282a3768e8ede239 | [
"Apache-2.0"
] | 132 | 2018-11-26T14:00:54.000Z | 2022-03-11T04:17:54.000Z | apps/rig_api/lib/rig_api/controllers/message_controller.ex | vanillebear/reactive-interaction-gateway | 5eb2afa00b8e74bddfd712ba282a3768e8ede239 | [
"Apache-2.0"
] | null | null | null | defmodule RigApi.MessageController do
require Logger
use RigApi, :controller
use PhoenixSwagger
alias RigCloudEvents.CloudEvent
action_fallback(RigApi.FallbackController)
@event_filter Application.get_env(:rig, :event_filter)
swagger_path :create do
post("/v1/messages")
summary("Submit an eve... | 32.737864 | 95 | 0.612396 |
1ca4275284f0a18cca20e2b94d9d9f22fbc9fe0b | 1,656 | ex | Elixir | clients/analytics/lib/google_api/analytics/v3/model/hash_client_id_request.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/analytics/lib/google_api/analytics/v3/model/hash_client_id_request.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/analytics/lib/google_api/analytics/v3/model/hash_client_id_request.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 "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... | 30.666667 | 80 | 0.72343 |
1ca4300b6cbf49a2e8bd17ebe4a6f2689a1abba6 | 703 | exs | Elixir | test/api/number_test.exs | emeric-martineau/cloud_stack_lang | 50c9164c06b2a683d3de84c493aaddd3e55de8b8 | [
"Apache-2.0"
] | null | null | null | test/api/number_test.exs | emeric-martineau/cloud_stack_lang | 50c9164c06b2a683d3de84c493aaddd3e55de8b8 | [
"Apache-2.0"
] | null | null | null | test/api/number_test.exs | emeric-martineau/cloud_stack_lang | 50c9164c06b2a683d3de84c493aaddd3e55de8b8 | [
"Apache-2.0"
] | null | null | null | #
# Copyright 2020 Cloud Stack Lang Contributors
#
# 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 ag... | 35.15 | 74 | 0.770982 |
1ca432c40530d53999a82e602531a029c7ee2325 | 1,085 | ex | Elixir | lib/sutur_web/channels/user_socket.ex | ab-zu/sutur | f314ed29b344fbe0139bd87ac01caf577b1d592e | [
"MIT"
] | 1 | 2021-11-16T02:18:31.000Z | 2021-11-16T02:18:31.000Z | lib/sutur_web/channels/user_socket.ex | ab-zu/sutur | f314ed29b344fbe0139bd87ac01caf577b1d592e | [
"MIT"
] | null | null | null | lib/sutur_web/channels/user_socket.ex | ab-zu/sutur | f314ed29b344fbe0139bd87ac01caf577b1d592e | [
"MIT"
] | null | null | null | defmodule SuturWeb.UserSocket do
use Phoenix.Socket
## Channels
# channel "room:*", SuturWeb.RoomChannel
# Socket params are passed from the client and can
# be used to verify and authenticate a user. After
# verification, you can put default assigns into
# the socket that will be set for all channels, ... | 30.138889 | 83 | 0.693088 |
1ca44adca8d5aac30d6bd0e23e6aedce8a748bfa | 1,675 | exs | Elixir | test/plausible_web/views/stats_view_test.exs | plausible-insights/plausible | 88173342b9e969894879bfb2e8d203426f6a1b1c | [
"MIT"
] | 984 | 2019-09-02T11:36:41.000Z | 2020-06-08T06:25:48.000Z | test/plausible_web/views/stats_view_test.exs | plausible-insights/plausible | 88173342b9e969894879bfb2e8d203426f6a1b1c | [
"MIT"
] | 24 | 2019-09-10T09:53:17.000Z | 2020-06-08T07:35:26.000Z | test/plausible_web/views/stats_view_test.exs | plausible-insights/plausible | 88173342b9e969894879bfb2e8d203426f6a1b1c | [
"MIT"
] | 51 | 2019-09-03T10:48:10.000Z | 2020-06-07T00:23:34.000Z | defmodule PlausibleWeb.StatsView.Test do
use PlausibleWeb.ConnCase, async: true
alias PlausibleWeb.StatsView
describe "large_number_format" do
test "numbers under 1000 stay the same" do
assert StatsView.large_number_format(100) == "100"
end
test "1000 becomes 1k" do
assert StatsView.larg... | 26.587302 | 69 | 0.690746 |
1ca4501b92f645699509480c0d7cd78dbf3ae314 | 6,139 | ex | Elixir | lib/mix/lib/mix/compilers/erlang.ex | xtian/elixir | c680eb1a3992309c272e8f808e15990ea5318d6e | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/compilers/erlang.ex | xtian/elixir | c680eb1a3992309c272e8f808e15990ea5318d6e | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/compilers/erlang.ex | xtian/elixir | c680eb1a3992309c272e8f808e15990ea5318d6e | [
"Apache-2.0"
] | null | null | null | defmodule Mix.Compilers.Erlang do
@moduledoc false
@doc """
Compiles the files in `mappings` with given extensions into
the destination, automatically invoking the callback for each
stale input and output pair (or for all if `force` is `true`) and
removing files that no longer have a source, while keeping ... | 30.391089 | 100 | 0.646522 |
1ca45a5945a3c1eace2112344102d8f67b09597c | 947 | ex | Elixir | lib/portal/application.ex | auth0-samples/auth0-elixir-single-page-app | 05c344e828ecf5ac716c5537b0e5760571f0574f | [
"MIT"
] | 6 | 2018-07-12T20:50:21.000Z | 2021-04-10T19:53:10.000Z | lib/portal/application.ex | auth0-samples/auth0-elixir-single-page-app | 05c344e828ecf5ac716c5537b0e5760571f0574f | [
"MIT"
] | null | null | null | lib/portal/application.ex | auth0-samples/auth0-elixir-single-page-app | 05c344e828ecf5ac716c5537b0e5760571f0574f | [
"MIT"
] | 2 | 2018-01-30T22:52:01.000Z | 2018-02-05T12:55:28.000Z | defmodule Portal.Application do
use Application
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
def start(_type, _args) do
import Supervisor.Spec
# Define workers and child supervisors to be supervised
children = [
# Start the endpoint when the app... | 31.566667 | 84 | 0.719113 |
1ca45bc30f84a59c2c4560b4890ba3c2900e9c3f | 835 | exs | Elixir | exercism/elixir/rna-transcription/test/rna_transcription_test.exs | TGITS/programming-workouts | 799e805ccf3fd0936ec8ac2417f7193b8e9bcb55 | [
"MIT"
] | null | null | null | exercism/elixir/rna-transcription/test/rna_transcription_test.exs | TGITS/programming-workouts | 799e805ccf3fd0936ec8ac2417f7193b8e9bcb55 | [
"MIT"
] | 16 | 2020-05-30T12:38:13.000Z | 2022-02-19T09:23:31.000Z | exercism/elixir/rna-transcription/test/rna_transcription_test.exs | TGITS/programming-workouts | 799e805ccf3fd0936ec8ac2417f7193b8e9bcb55 | [
"MIT"
] | null | null | null | defmodule RnaTranscriptionTest do
use ExUnit.Case
# @tag :pending
test "transcribes guanine to cytosine" do
assert RnaTranscription.to_rna('G') == 'C'
end
#@tag :pending
test "transcribes cytosine to guanine" do
assert RnaTranscription.to_rna('C') == 'G'
end
#@tag :pending
test "transcribes... | 23.857143 | 72 | 0.700599 |
1ca4949eb1370db9d206b0f4868b998371739583 | 383 | ex | Elixir | 2015/day6/lib/main.ex | SuddenGunter/adventofcode | 702dd927b1d23c4c5c4b2e67898f4b3c914abfcf | [
"MIT"
] | null | null | null | 2015/day6/lib/main.ex | SuddenGunter/adventofcode | 702dd927b1d23c4c5c4b2e67898f4b3c914abfcf | [
"MIT"
] | null | null | null | 2015/day6/lib/main.ex | SuddenGunter/adventofcode | 702dd927b1d23c4c5c4b2e67898f4b3c914abfcf | [
"MIT"
] | null | null | null | defmodule Day6.CLI do
def main(_args) do
case Input.read("data.txt", &Parser.data/1) do
{:ok, contents} -> solve(contents)
{:error, reason} -> IO.puts(reason)
end
end
defp solve(contents) do
IO.write("task #1 solution: ")
Task1.solution(contents) |> IO.puts()
IO.write("task #2 so... | 22.529412 | 50 | 0.616188 |
1ca49a4aba32a1447da8af0dc7ee34405a030b7f | 737 | ex | Elixir | test/support/fixtures.ex | Strech/avrora | e8f0904950d25ea86dd629a1e834938a65836791 | [
"MIT"
] | 59 | 2019-07-11T15:29:26.000Z | 2022-03-23T19:35:55.000Z | test/support/fixtures.ex | Strech/avrora | e8f0904950d25ea86dd629a1e834938a65836791 | [
"MIT"
] | 63 | 2019-08-09T17:52:26.000Z | 2022-03-16T22:08:04.000Z | test/support/fixtures.ex | Strech/avrora | e8f0904950d25ea86dd629a1e834938a65836791 | [
"MIT"
] | 22 | 2019-07-29T10:50:47.000Z | 2021-09-04T13:37:08.000Z | defmodule Fixtures do
@moduledoc """
This is an End-to-End integration use-case. It will validate multi-client capabilities.
So if you run `mix test` and get test errors or something like this
```
could not compile dependency :avrora, "mix compile" failed
```
it means that something is wrong with `Avro... | 25.413793 | 94 | 0.710991 |
1ca4c8dcad94d42f8d9f3a16b085f9096ce0ce6d | 1,786 | ex | Elixir | plugins/one_chat/lib/one_chat/robot/adapters/ucx_chat/connection.ex | smpallen99/ucx_ucc | 47225f205a6ac4aacdb9bb4f7512dcf4092576ad | [
"MIT"
] | 11 | 2017-05-15T18:35:05.000Z | 2018-02-05T18:27:40.000Z | plugins/one_chat/lib/one_chat/robot/adapters/ucx_chat/connection.ex | anndream/infinity_one | 47225f205a6ac4aacdb9bb4f7512dcf4092576ad | [
"MIT"
] | 15 | 2017-11-27T10:38:05.000Z | 2018-02-09T20:42:08.000Z | plugins/one_chat/lib/one_chat/robot/adapters/ucx_chat/connection.ex | anndream/infinity_one | 47225f205a6ac4aacdb9bb4f7512dcf4092576ad | [
"MIT"
] | 4 | 2017-09-13T11:34:16.000Z | 2018-02-26T13:37:06.000Z | defmodule OneChat.Robot.Adapters.OneChat.Connection do
@moduledoc false
use GenServer
alias OneChat.Robot.Adapters.OneChat.{Connection}
@name :robot
require Logger
defstruct name: nil, owner: nil, user: nil
def start(opts) do
name = Keyword.get(opts, :name)
# user = Keyword.get(opts, :user, g... | 28.349206 | 117 | 0.637178 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.