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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3812c58bb6be6be50cb9e3c5819f50043428845f | 1,846 | ex | Elixir | clients/machine_learning/lib/google_api/machine_learning/v1/model/google_cloud_ml_v1__study_config_parameter_spec__discrete_value_spec.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/machine_learning/lib/google_api/machine_learning/v1/model/google_cloud_ml_v1__study_config_parameter_spec__discrete_value_spec.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/machine_learning/lib/google_api/machine_learning/v1/model/google_cloud_ml_v1__study_config_parameter_spec__discrete_value_spec.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... | 31.827586 | 106 | 0.742687 |
3812f5f04e48b571bc3e58930ead463d5c6c2693 | 780 | exs | Elixir | priv/repo/migrations/20200608003205_create_schemes.exs | WOCyo/policr-mini | 23e5e9f927d083cba5993f39e9f122e3a0ad1be2 | [
"MIT"
] | 487 | 2020-06-08T03:04:21.000Z | 2022-03-31T14:51:36.000Z | priv/repo/migrations/20200608003205_create_schemes.exs | WOCyo/policr-mini | 23e5e9f927d083cba5993f39e9f122e3a0ad1be2 | [
"MIT"
] | 141 | 2020-06-11T01:03:29.000Z | 2022-03-30T20:23:32.000Z | priv/repo/migrations/20200608003205_create_schemes.exs | WOCyo/policr-mini | 23e5e9f927d083cba5993f39e9f122e3a0ad1be2 | [
"MIT"
] | 61 | 2020-06-10T05:25:03.000Z | 2022-03-23T15:54:26.000Z | defmodule PolicrMini.Repo.Migrations.CreateSchemes do
use PolicrMini.Migration
alias PolicrMini.EctoEnums.{
VerificationModeEnum,
VerificationEntranceEnum,
VerificationOccasionEnum,
KillingMethodEnum
}
def change do
create table(:schemes) do
add :chat_id, references(:chats), comment:... | 31.2 | 82 | 0.719231 |
3812ff7d7ae5913fb295944fff42d8d60342b0a9 | 37,782 | ex | Elixir | lib/codes/codes_s34.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_s34.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_s34.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | defmodule IcdCode.ICDCode.Codes_S34 do
alias IcdCode.ICDCode
def _S3401XA do
%ICDCode{full_code: "S3401XA",
category_code: "S34",
short_code: "01XA",
full_name: "Concussion and edema of lumbar spinal cord, initial encounter",
short_name: "Concussion and edema of lumbar spi... | 44.765403 | 118 | 0.658859 |
381332bb10a8cf49e60ac28a375a431e27697591 | 447 | ex | Elixir | apps/game_of_life_core/lib/game_of_life/servers/universe_server.ex | PaoloLaurenti/game-of-life-elixir | 919e9f2c722bbde75f71d627cd410a578f732c00 | [
"MIT"
] | null | null | null | apps/game_of_life_core/lib/game_of_life/servers/universe_server.ex | PaoloLaurenti/game-of-life-elixir | 919e9f2c722bbde75f71d627cd410a578f732c00 | [
"MIT"
] | null | null | null | apps/game_of_life_core/lib/game_of_life/servers/universe_server.ex | PaoloLaurenti/game-of-life-elixir | 919e9f2c722bbde75f71d627cd410a578f732c00 | [
"MIT"
] | null | null | null | defmodule GameOfLifeCore.UniverseServer do
def start_link(game_id, cells) do
{:ok, _pid} = Agent.start_link(fn() -> cells end, name: service_name(game_id))
end
def get(game_id) do
Agent.get(service_name(game_id), &(&1))
end
def set(game_id, universe) do
Agent.update(service_name(game_id), fn(_)... | 24.833333 | 96 | 0.718121 |
3813474f42ca6876543fee589caade045f69219f | 2,570 | ex | Elixir | test/support/strategies/oauth2_test_case.ex | mitcheaton1/pow_assent | f3e9e6cc7dd16a3f2d9add885bd160d227abb713 | [
"MIT"
] | 193 | 2019-10-30T00:58:21.000Z | 2022-03-09T20:26:37.000Z | test/support/strategies/oauth2_test_case.ex | mitcheaton1/pow_assent | f3e9e6cc7dd16a3f2d9add885bd160d227abb713 | [
"MIT"
] | 82 | 2019-10-29T20:19:38.000Z | 2022-03-22T04:09:27.000Z | test/support/strategies/oauth2_test_case.ex | mitcheaton1/pow_assent | f3e9e6cc7dd16a3f2d9add885bd160d227abb713 | [
"MIT"
] | 28 | 2019-10-31T12:38:10.000Z | 2021-11-01T18:05:23.000Z | defmodule PowAssent.Test.OAuth2TestCase do
@moduledoc false
use ExUnit.CaseTemplate
setup do
params = %{"code" => "test", "state" => "test"}
bypass = Bypass.open()
config = [client_secret: "secret", site: "http://localhost:#{bypass.port}", session_params: %{state: "test"}]
{:ok, callback_params:... | 32.531646 | 113 | 0.669261 |
38138a81030d519219f8bd155b3df8c5b7f48b68 | 1,913 | exs | Elixir | 2021/day20.exs | princemaple/aoc | 325dd12c8b5b827458214846f184e07a6cfbdf34 | [
"MIT"
] | 1 | 2021-12-13T00:31:09.000Z | 2021-12-13T00:31:09.000Z | 2021/day20.exs | princemaple/aoc | 325dd12c8b5b827458214846f184e07a6cfbdf34 | [
"MIT"
] | null | null | null | 2021/day20.exs | princemaple/aoc | 325dd12c8b5b827458214846f184e07a6cfbdf34 | [
"MIT"
] | null | null | null | # Title: Day20
# ── Untitled ──
{alg, pic} =
"input"
|> IO.getn(1_000_000)
|> String.trim()
|> String.split(["\r\n\r\n", "\n\n"], trim: true)
|> then(fn [alg, pic] ->
{String.replace(alg, ["\n", "\r\n"], ""),
pic |> String.split() |> Enum.map(&String.split(&1, "", trim: true))}
end)
... | 24.21519 | 99 | 0.497125 |
3813a03daa6cb9cbfeff53e36bf961f50f486bc5 | 1,370 | ex | Elixir | lib/go_champs_api_web/views/player_stats_log_view.ex | lairjr/go_champs_api | 01cb3ff2c655910839e5caf4282a8e50543e32a1 | [
"MIT"
] | null | null | null | lib/go_champs_api_web/views/player_stats_log_view.ex | lairjr/go_champs_api | 01cb3ff2c655910839e5caf4282a8e50543e32a1 | [
"MIT"
] | 5 | 2021-09-29T04:01:54.000Z | 2021-11-02T03:11:52.000Z | lib/go_champs_api_web/views/player_stats_log_view.ex | lairjr/tournamentsapi | dde8f8f659074527d3861391af3ab29f070179f2 | [
"MIT"
] | 1 | 2021-11-02T14:43:15.000Z | 2021-11-02T14:43:15.000Z | defmodule GoChampsApiWeb.PlayerStatsLogView do
use GoChampsApiWeb, :view
alias GoChampsApiWeb.PlayerStatsLogView
def render("index.json", %{player_stats_log: player_stats_log}) do
%{data: render_many(player_stats_log, PlayerStatsLogView, "player_stats_log.json")}
end
def render("show.json", %{player_sta... | 31.136364 | 87 | 0.69708 |
3813bc7d6b79fc0133a5fb840bac73fcb4e547f7 | 134 | ex | Elixir | lib/jarvis_web/views/system_view.ex | corka149/jarvis | 66ddb3d919323aaf39be15e937c28cc8cc805e40 | [
"MIT"
] | null | null | null | lib/jarvis_web/views/system_view.ex | corka149/jarvis | 66ddb3d919323aaf39be15e937c28cc8cc805e40 | [
"MIT"
] | 7 | 2019-05-25T06:39:46.000Z | 2021-02-13T11:24:50.000Z | lib/jarvis_web/views/system_view.ex | corka149/jarvis | 66ddb3d919323aaf39be15e937c28cc8cc805e40 | [
"MIT"
] | null | null | null | defmodule JarvisWeb.SystemView do
use JarvisWeb, :view
def render("ready.json", %{statuses: statuses}) do
statuses
end
end
| 16.75 | 52 | 0.716418 |
3813e3f9557a60222a0a4a9a02a80d16dd4adeae | 1,132 | ex | Elixir | clients/recommender/lib/google_api/recommender/v1beta1/connection.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | 1 | 2021-10-01T09:20:41.000Z | 2021-10-01T09:20:41.000Z | clients/recommender/lib/google_api/recommender/v1beta1/connection.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/recommender/lib/google_api/recommender/v1beta1/connection.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"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... | 34.30303 | 74 | 0.741166 |
3813eb7215777b3879548b0e0df8519ccdb353d5 | 3,055 | ex | Elixir | lib/witchcraft/semigroupoid.ex | doma-engineering/witchcraft | c84fa6b2146e7de745105e21f672ed413df93ad3 | [
"MIT"
] | 454 | 2019-06-05T22:56:45.000Z | 2022-03-27T23:03:02.000Z | lib/witchcraft/semigroupoid.ex | doma-engineering/witchcraft | c84fa6b2146e7de745105e21f672ed413df93ad3 | [
"MIT"
] | 26 | 2019-07-08T09:29:08.000Z | 2022-02-04T02:40:48.000Z | lib/witchcraft/semigroupoid.ex | doma-engineering/witchcraft | c84fa6b2146e7de745105e21f672ed413df93ad3 | [
"MIT"
] | 36 | 2019-06-25T17:45:27.000Z | 2022-03-21T01:53:42.000Z | import TypeClass
defclass Witchcraft.Semigroupoid do
@moduledoc """
A semigroupoid describes some way of composing morphisms on between some
collection of objects.
## Type Class
An instance of `Witchcraft.Semigroupoid` must define `Witchcraft.Semigroupoid.compose/2`.
Semigroupoid [compose/2]
"""
... | 23.143939 | 91 | 0.591489 |
38141b778d3b7e03a2762aacf31d956da699c070 | 468 | ex | Elixir | test/support/fixtures/reviews_fixtures.ex | jellybob/comparator | e9528341366641baa7fa49690fdd6ffa3e2159a0 | [
"MIT"
] | null | null | null | test/support/fixtures/reviews_fixtures.ex | jellybob/comparator | e9528341366641baa7fa49690fdd6ffa3e2159a0 | [
"MIT"
] | null | null | null | test/support/fixtures/reviews_fixtures.ex | jellybob/comparator | e9528341366641baa7fa49690fdd6ffa3e2159a0 | [
"MIT"
] | null | null | null | defmodule Comparator.ReviewsFixtures do
@moduledoc """
This module defines test helpers for creating
entities via the `Comparator.Reviews` context.
"""
@doc """
Generate a review.
"""
def review_fixture(attrs \\ %{}) do
{:ok, review} =
attrs
|> Enum.into(%{
body: "some body",
... | 19.5 | 48 | 0.589744 |
381435eefb21b55ed9431b81c775b97a2a9982cb | 973 | ex | Elixir | test/support/fixtures/accounts_fixtures.ex | RatioPBC/epi-locator | 58c90500c4e0071ce365d76ec9812f9051d6a9f9 | [
"Apache-2.0"
] | null | null | null | test/support/fixtures/accounts_fixtures.ex | RatioPBC/epi-locator | 58c90500c4e0071ce365d76ec9812f9051d6a9f9 | [
"Apache-2.0"
] | 6 | 2021-10-19T01:55:57.000Z | 2022-02-15T01:04:19.000Z | test/support/fixtures/accounts_fixtures.ex | RatioPBC/epi-locator | 58c90500c4e0071ce365d76ec9812f9051d6a9f9 | [
"Apache-2.0"
] | 2 | 2022-01-21T08:38:50.000Z | 2022-01-21T08:42:04.000Z | defmodule EpiLocator.AccountsFixtures do
@moduledoc """
This module defines test helpers for creating
entities via the `EpiLocator.Accounts` context.
"""
def unique_admin_email, do: "admin#{System.unique_integer()}@example.com"
def valid_admin_password, do: "hello 16 char world!"
def totp_secret, do: <<6... | 30.40625 | 90 | 0.691675 |
38144c9f1ebe422c954a08989250c8eedc8188fe | 3,129 | exs | Elixir | apps/ewallet_db/priv/repo/migrations/20180627073155_update_genesis_address_in_wallet.exs | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 322 | 2018-02-28T07:38:44.000Z | 2020-05-27T23:09:55.000Z | apps/ewallet_db/priv/repo/migrations/20180627073155_update_genesis_address_in_wallet.exs | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 643 | 2018-02-28T12:05:20.000Z | 2020-05-22T08:34:38.000Z | apps/ewallet_db/priv/repo/migrations/20180627073155_update_genesis_address_in_wallet.exs | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 63 | 2018-02-28T10:57:06.000Z | 2020-05-27T23:10:38.000Z | # Copyright 2018-2019 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 ... | 30.378641 | 86 | 0.667945 |
38145730a7071e3211d48bda6a8bf6a4c9d845c2 | 399 | ex | Elixir | lib/mix/tasks/phx.custom.docker.ex | c4710n/phx_custom | 19080ed8896be9ae846d12b2f631a1bc4aef5c78 | [
"MIT"
] | null | null | null | lib/mix/tasks/phx.custom.docker.ex | c4710n/phx_custom | 19080ed8896be9ae846d12b2f631a1bc4aef5c78 | [
"MIT"
] | null | null | null | lib/mix/tasks/phx.custom.docker.ex | c4710n/phx_custom | 19080ed8896be9ae846d12b2f631a1bc4aef5c78 | [
"MIT"
] | null | null | null | defmodule Mix.Tasks.Phx.Custom.Docker do
@shortdoc "Patch project with a Dockerfile"
@moduledoc """
#{@shortdoc}.
mix phx.custom.docker <project>
"""
use Mix.Task
alias PhxCustom.CLI
alias PhxCustom.HandleDocker
@impl Mix.Task
def run(args) do
CLI.parse(args)
|> process
end
de... | 15.346154 | 45 | 0.674185 |
3814c026648b36e75847196a51d85c635bf4bb2d | 1,389 | exs | Elixir | test/cli_test.exs | adamzaninovich/elixir-chordpro-parser | 58ae28505b66e4901aed1e86f521386230a8ae31 | [
"MIT"
] | null | null | null | test/cli_test.exs | adamzaninovich/elixir-chordpro-parser | 58ae28505b66e4901aed1e86f521386230a8ae31 | [
"MIT"
] | null | null | null | test/cli_test.exs | adamzaninovich/elixir-chordpro-parser | 58ae28505b66e4901aed1e86f521386230a8ae31 | [
"MIT"
] | null | null | null | defmodule CliTest do
use ExUnit.Case
import ExUnit.CaptureIO
test :start do
{status, _pid} = Chordpro.Cli.start(nil, nil)
assert status == :ok
end
test "it outputs an error when given a bad filename" do
assert cli_output("blah") == """
There was an error opening your file:
File not found... | 22.403226 | 73 | 0.62635 |
3814d6f7dd26c17df41b226b86d9270a0d71aac3 | 673 | ex | Elixir | lib/meteo_stick.ex | NationalAssociationOfRealtors/meteo_stick | 2892158be4f79b98e6688a9364590bb06d6daf2b | [
"Apache-2.0"
] | 1 | 2016-10-18T19:15:36.000Z | 2016-10-18T19:15:36.000Z | lib/meteo_stick.ex | NationalAssociationOfRealtors/meteo_stick | 2892158be4f79b98e6688a9364590bb06d6daf2b | [
"Apache-2.0"
] | null | null | null | lib/meteo_stick.ex | NationalAssociationOfRealtors/meteo_stick | 2892158be4f79b98e6688a9364590bb06d6daf2b | [
"Apache-2.0"
] | null | null | null | defmodule MeteoStick do
use Application
require Logger
alias Nerves.UART, as: Serial
def start(_type, _args) do
get_tty
{:ok, pid} = MeteoStick.Supervisor.start_link
end
def get_tty do
Serial.enumerate |> Enum.each(fn({tty, device}) ->
Logger.info("#{inspect device}")
case Map.get(... | 24.035714 | 72 | 0.582467 |
3814da4c4850ed37538a579a8a6c9fc2012cabca | 3,528 | ex | Elixir | lib/miles_to_go_web.ex | code-shoily/miles_to_go | cf5758d3113244326651320bd19c1887677bcf51 | [
"MIT"
] | 6 | 2020-12-18T08:36:32.000Z | 2021-06-13T03:02:16.000Z | lib/miles_to_go_web.ex | code-shoily/miles_to_go | cf5758d3113244326651320bd19c1887677bcf51 | [
"MIT"
] | null | null | null | lib/miles_to_go_web.ex | code-shoily/miles_to_go | cf5758d3113244326651320bd19c1887677bcf51 | [
"MIT"
] | null | null | null | defmodule MilesToGoWeb 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 MilesToGoWeb, :controller
use MilesToGoWeb, :view
The definitions below will be executed for every view,
contro... | 22.615385 | 90 | 0.6678 |
3814e7c42b2d04259c65bbb918810a6c46d49e88 | 1,863 | ex | Elixir | clients/game_services/lib/google_api/game_services/v1beta/model/preview_update_game_server_cluster_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/game_services/lib/google_api/game_services/v1beta/model/preview_update_game_server_cluster_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/game_services/lib/google_api/game_services/v1beta/model/preview_update_game_server_cluster_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 33.872727 | 119 | 0.746108 |
381516e05bad6f3a0480315d2ec1f33a2809859e | 1,231 | ex | Elixir | lib/tesla/middleware/basic_auth.ex | chingor13/tesla | 640fd5e860491992c4aeba9ba125be711942a237 | [
"MIT"
] | null | null | null | lib/tesla/middleware/basic_auth.ex | chingor13/tesla | 640fd5e860491992c4aeba9ba125be711942a237 | [
"MIT"
] | null | null | null | lib/tesla/middleware/basic_auth.ex | chingor13/tesla | 640fd5e860491992c4aeba9ba125be711942a237 | [
"MIT"
] | null | null | null | defmodule Tesla.Middleware.BasicAuth do
@moduledoc """
Basic authentication middleware
[Wiki on the topic](https://en.wikipedia.org/wiki/Basic_access_authentication)
Example:
defmodule MyClient do
use Tesla
def client(username, password, opts \\ %{}) do
Tesla.build_... | 23.226415 | 101 | 0.583266 |
38152857e7d157420d1ef625e1d79baa57912385 | 1,352 | exs | Elixir | mix.exs | ringofhealth/waffle | b797eabd3b16628370659c805aea067b2da204d5 | [
"Apache-2.0"
] | null | null | null | mix.exs | ringofhealth/waffle | b797eabd3b16628370659c805aea067b2da204d5 | [
"Apache-2.0"
] | 1 | 2022-01-22T22:14:56.000Z | 2022-01-22T22:14:56.000Z | mix.exs | ringofhealth/waffle | b797eabd3b16628370659c805aea067b2da204d5 | [
"Apache-2.0"
] | null | null | null | defmodule Waffle.Mixfile do
use Mix.Project
@version "1.2.0"
def project do
[
app: :waffle,
version: @version,
elixir: "~> 1.4",
deps: deps(),
docs: docs(),
# Hex
description: description(),
package: package()
]
end
defp description do
"""
Fl... | 18.026667 | 70 | 0.510355 |
38155539ba73cf57a63a424571dd7c8f86c5d56f | 6,740 | ex | Elixir | lib/map_bot.ex | vnegrisolo/map_bot | 5d8355f031f2dbf9fcddff4d09e5df9edc1b98c3 | [
"MIT"
] | 9 | 2018-04-29T16:46:57.000Z | 2020-09-24T12:37:25.000Z | lib/map_bot.ex | vnegrisolo/map_bot | 5d8355f031f2dbf9fcddff4d09e5df9edc1b98c3 | [
"MIT"
] | 25 | 2019-05-13T08:36:25.000Z | 2021-08-03T08:15:19.000Z | lib/map_bot.ex | vnegrisolo/map_bot | 5d8355f031f2dbf9fcddff4d09e5df9edc1b98c3 | [
"MIT"
] | 1 | 2019-05-23T18:02:56.000Z | 2019-05-23T18:02:56.000Z | defmodule MapBot do
@moduledoc """
`#{__MODULE__}` builds Elixir Maps/Structs based on factory definitions and attributes.
Let's see how to use this library by examples:
## Examples setup:
```elixir
#{:map_bot |> :code.priv_dir() |> Path.join("support/my_app.ex") |> File.read!()}
```
## Examples
... | 33.039216 | 105 | 0.586647 |
3815696fc03072f0d9a85575ff3856800720e7a2 | 652 | exs | Elixir | test/monzo/account_test.exs | morgz/monzo_elixir | 68d671e0e99191fc5702ead7fc921dad45eb2605 | [
"MIT"
] | 8 | 2016-10-02T12:05:47.000Z | 2020-06-22T12:37:32.000Z | test/monzo/account_test.exs | morgz/monzo_elixir | 68d671e0e99191fc5702ead7fc921dad45eb2605 | [
"MIT"
] | 51 | 2018-03-12T05:19:14.000Z | 2021-08-03T05:15:19.000Z | test/monzo/account_test.exs | morgz/monzo_elixir | 68d671e0e99191fc5702ead7fc921dad45eb2605 | [
"MIT"
] | 3 | 2017-10-30T07:44:38.000Z | 2020-04-19T12:04:33.000Z | defmodule Monzo.AccountTest do
use ExUnit.Case
import Monzo.Factory
alias Monzo.Account
setup_all do
bypass = Bypass.open
Application.put_env(:monzo, :endpoint, "http://localhost:#{bypass.port}")
client = build(:client)
{:ok, bypass: bypass, client: client}
end
test "list accounts", %{byp... | 27.166667 | 77 | 0.662577 |
381599b3a372301913f11309b50fb37b8a88ba8d | 578 | exs | Elixir | config/dev.exs | mirego/dispatch | 65f81e264e45676ece8a6dc5f203cf9f283d6ec7 | [
"BSD-3-Clause"
] | 21 | 2019-02-13T15:26:00.000Z | 2021-09-18T13:05:42.000Z | config/dev.exs | mirego/dispatch | 65f81e264e45676ece8a6dc5f203cf9f283d6ec7 | [
"BSD-3-Clause"
] | 26 | 2019-02-13T18:42:44.000Z | 2021-09-16T15:40:05.000Z | config/dev.exs | mirego/dispatch | 65f81e264e45676ece8a6dc5f203cf9f283d6ec7 | [
"BSD-3-Clause"
] | 2 | 2020-05-26T09:09:19.000Z | 2021-04-21T20:43:07.000Z | use Mix.Config
# The watchers configuration can be used to run external
# watchers to your application. For example, we use it
# with brunch.io to recompile .js and .css sources.
config :dispatch, DispatchWeb.Endpoint,
debug_errors: true,
code_reloader: true,
check_origin: false
# Do not include metadata nor ti... | 34 | 68 | 0.776817 |
3815a30553d1a4df7f2beeb445676c8312fd8974 | 3,177 | exs | Elixir | test/controllers/confirmation_controller.exs | dipth/coherence | 64ad450c5d8d020172875c4bf52f2bbdaa6e59de | [
"MIT"
] | null | null | null | test/controllers/confirmation_controller.exs | dipth/coherence | 64ad450c5d8d020172875c4bf52f2bbdaa6e59de | [
"MIT"
] | null | null | null | test/controllers/confirmation_controller.exs | dipth/coherence | 64ad450c5d8d020172875c4bf52f2bbdaa6e59de | [
"MIT"
] | null | null | null | defmodule CoherenceTest.ConfirmationController do
use TestCoherence.ConnCase
import TestCoherenceWeb.Router.Helpers
setup %{conn: conn} do
Application.put_env :coherence, :opts, [:confirmable, :registerable]
Application.put_env :coherence, :confirm_email_updates, false
user = %TestCoherence.User{
... | 41.25974 | 119 | 0.684608 |
381603e6ccb4af1c50172219b1b88fb934e27082 | 55 | exs | Elixir | test/stripe/connect_test.exs | infinitered/stripity_stripe_legacy | 8c791bfc107134879891474e276ad467b1eeebe0 | [
"BSD-3-Clause"
] | null | null | null | test/stripe/connect_test.exs | infinitered/stripity_stripe_legacy | 8c791bfc107134879891474e276ad467b1eeebe0 | [
"BSD-3-Clause"
] | null | null | null | test/stripe/connect_test.exs | infinitered/stripity_stripe_legacy | 8c791bfc107134879891474e276ad467b1eeebe0 | [
"BSD-3-Clause"
] | null | null | null | defmodule Stripe.ConnectTest do
use ExUnit.Case
end
| 11 | 31 | 0.8 |
381624f39c9468333d273fdc0f2b1f4cdd508fee | 573 | ex | Elixir | lib/flix/protocol/events/button_deleted.ex | efcasado/flix | 945fe84e6dba31b7f47d07279a97559e1094da46 | [
"Unlicense",
"MIT"
] | 1 | 2021-07-24T09:44:54.000Z | 2021-07-24T09:44:54.000Z | lib/flix/protocol/events/button_deleted.ex | efcasado/flix | 945fe84e6dba31b7f47d07279a97559e1094da46 | [
"Unlicense",
"MIT"
] | 1 | 2021-07-24T07:13:40.000Z | 2021-08-02T13:44:44.000Z | lib/flix/protocol/events/button_deleted.ex | efcasado/flix | 945fe84e6dba31b7f47d07279a97559e1094da46 | [
"Unlicense",
"MIT"
] | null | null | null | defmodule Flix.Protocol.Events.ButtonDeleted do
defstruct bt_addr: "",
deleted_by_this_client: false
# @type t :: %__MODULE__{
# x: String.t(),
# y: boolean,
# z: integer
# }
def decode(
<<
bt_addr::little-bytes-6,
deleted_by_this_client::unsigned-integer-8
... | 19.1 | 63 | 0.612565 |
3816684bec8a0cca2925c987243c5ef64f77ba72 | 129 | ex | Elixir | lib/find_my_personal/mail/mailler.ex | gissandrogama/find_my_personal | 12f23b37e967949af9f3e511cf1ce684452d8f66 | [
"MIT"
] | null | null | null | lib/find_my_personal/mail/mailler.ex | gissandrogama/find_my_personal | 12f23b37e967949af9f3e511cf1ce684452d8f66 | [
"MIT"
] | 11 | 2022-01-12T02:39:42.000Z | 2022-02-09T02:17:04.000Z | lib/find_my_personal/mail/mailler.ex | gissandrogama/find_my_personal | 12f23b37e967949af9f3e511cf1ce684452d8f66 | [
"MIT"
] | null | null | null | defmodule FindMyPersonal.Mail.Mailer do
@moduledoc """
this module
"""
use Bamboo.Mailer, otp_app: :find_my_personal
end
| 18.428571 | 47 | 0.736434 |
381695b7ca3b732be39d63a82e6e9981c37a5fe6 | 1,376 | ex | Elixir | backend/lib/edgehog_web/schema/localization_types.ex | szakhlypa/edgehog | b1193c26f403132dead6964c1c052e5dcae533af | [
"Apache-2.0"
] | 14 | 2021-12-02T16:31:16.000Z | 2022-03-18T17:40:44.000Z | backend/lib/edgehog_web/schema/localization_types.ex | szakhlypa/edgehog | b1193c26f403132dead6964c1c052e5dcae533af | [
"Apache-2.0"
] | 77 | 2021-11-03T15:14:41.000Z | 2022-03-30T14:13:32.000Z | backend/lib/edgehog_web/schema/localization_types.ex | szakhlypa/edgehog | b1193c26f403132dead6964c1c052e5dcae533af | [
"Apache-2.0"
] | 7 | 2021-11-03T10:58:37.000Z | 2022-02-28T14:00:03.000Z | #
# This file is part of Edgehog.
#
# Copyright 2021 SECO Mind Srl
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by app... | 30.577778 | 82 | 0.725291 |
3816af31bc0445fd31a9b0cb8d47a590314a2eb9 | 566 | exs | Elixir | mix.exs | NashFP/fsharpy | 3b8c2a868898f0a418aa6f30cd4be0cc59d4baee | [
"MIT"
] | 2 | 2021-05-25T23:36:09.000Z | 2021-05-28T18:32:33.000Z | mix.exs | NashFP/fsharpy | 3b8c2a868898f0a418aa6f30cd4be0cc59d4baee | [
"MIT"
] | 2 | 2021-05-26T00:56:49.000Z | 2021-05-26T02:50:16.000Z | mix.exs | NashFP/fsharpy | 3b8c2a868898f0a418aa6f30cd4be0cc59d4baee | [
"MIT"
] | null | null | null | defmodule Fsharpy.MixProject do
use Mix.Project
def project do
[
app: :fsharpy,
version: "0.1.0",
elixir: "~> 1.12",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_ap... | 19.517241 | 61 | 0.570671 |
3816e394cd1738e6726333763048e20cfd548c9f | 24,100 | ex | Elixir | lib/combine/parsers/base.ex | kianmeng/combine | f3a16b56efab388abe2608188d519291549b7eb5 | [
"MIT"
] | 199 | 2015-07-27T11:42:38.000Z | 2022-01-16T13:42:32.000Z | lib/combine/parsers/base.ex | kianmeng/combine | f3a16b56efab388abe2608188d519291549b7eb5 | [
"MIT"
] | 45 | 2015-07-27T00:16:26.000Z | 2018-03-02T23:27:04.000Z | lib/combine/parsers/base.ex | kianmeng/combine | f3a16b56efab388abe2608188d519291549b7eb5 | [
"MIT"
] | 24 | 2015-07-26T23:52:14.000Z | 2021-09-12T01:35:14.000Z | defmodule Combine.Parsers.Base do
@moduledoc """
This module defines common abstract parsers, i.e. ignore, repeat, many, etc.
To use them, just add `import Combine.Parsers.Base` to your module, or
reference them directly.
"""
alias Combine.ParserState
use Combine.Helpers
@type predicate :: (term -> bo... | 35.545723 | 135 | 0.597261 |
3816f20942998f729e023777ddd801549047fe81 | 2,631 | exs | Elixir | example/test/example_web/controllers/user_controller_test.exs | tino415/u2f_ex | d95f52335dc85140b2b1b3d7975d29c6d71868ea | [
"BSD-3-Clause"
] | 13 | 2018-10-15T10:39:24.000Z | 2019-01-15T06:42:24.000Z | example/test/example_web/controllers/user_controller_test.exs | tino415/u2f_ex | d95f52335dc85140b2b1b3d7975d29c6d71868ea | [
"BSD-3-Clause"
] | 19 | 2018-08-10T04:33:46.000Z | 2018-12-02T04:55:48.000Z | example/test/example_web/controllers/user_controller_test.exs | tino415/u2f_ex | d95f52335dc85140b2b1b3d7975d29c6d71868ea | [
"BSD-3-Clause"
] | 4 | 2019-07-06T04:38:31.000Z | 2021-02-01T10:45:57.000Z | defmodule ExampleWeb.UserControllerTest do
use ExampleWeb.ConnCase
alias Example.Users
@create_attrs %{email: "some email", password: "some password"}
@update_attrs %{email: "some updated email", password: "some updated password"}
@invalid_attrs %{email: nil, password: nil}
def fixture(:user) do
{:ok... | 29.233333 | 81 | 0.643482 |
3816fe73cf93abdc6fbd7af391041dd4ddbcbec9 | 4,204 | ex | Elixir | clients/translate/lib/google_api/translate/v3/model/batch_translate_document_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/translate/lib/google_api/translate/v3/model/batch_translate_document_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/translate/lib/google_api/translate/v3/model/batch_translate_document_request.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... | 60.927536 | 605 | 0.725262 |
381703a6a9ce7360ceb7e347d702558a27d0466a | 8,456 | ex | Elixir | api/deps/gettext/lib/gettext/interpolation/default.ex | makao95/scrumpoker | de235a049a360612cde23ae5992375cb01a7feba | [
"MIT"
] | 110 | 2019-09-23T18:58:00.000Z | 2022-03-07T00:27:34.000Z | api/deps/gettext/lib/gettext/interpolation/default.ex | makao95/scrumpoker | de235a049a360612cde23ae5992375cb01a7feba | [
"MIT"
] | 93 | 2019-09-08T18:28:28.000Z | 2022-03-31T20:38:59.000Z | api/deps/gettext/lib/gettext/interpolation/default.ex | makao95/scrumpoker | de235a049a360612cde23ae5992375cb01a7feba | [
"MIT"
] | 41 | 2019-09-16T14:17:49.000Z | 2022-03-03T15:11:59.000Z | defmodule Gettext.Interpolation.Default do
@moduledoc """
Default Interpolation Implementation
Replaces `%{binding_name}` with a string value.
"""
@behaviour Gettext.Interpolation
@type interpolatable :: [String.t() | atom]
# Extracts interpolations from a given string.
# This function extracts all... | 38.611872 | 96 | 0.681055 |
38171df6842732c45d106858f75296ffb378190c | 1,583 | ex | Elixir | lib/zanox/products.ex | rafaelss/zanox | 4f9849252dc96a644d974939ce9437d5e538300a | [
"MIT"
] | 1 | 2016-10-08T15:45:34.000Z | 2016-10-08T15:45:34.000Z | lib/zanox/products.ex | rafaelss/zanox | 4f9849252dc96a644d974939ce9437d5e538300a | [
"MIT"
] | null | null | null | lib/zanox/products.ex | rafaelss/zanox | 4f9849252dc96a644d974939ce9437d5e538300a | [
"MIT"
] | null | null | null | defmodule Zanox.Products do
use HTTPoison.Base
def search(query, params \\ %{}) do
params = Map.put(params, :q, query)
programs = List.wrap(params[:programs])
if Enum.count(programs) > 0 do
params = Map.put(params, :programs, Enum.join(programs, ","))
end
unless params[:items] do
... | 27.293103 | 111 | 0.566646 |
38172b47798bd6ef47a314b637387f475a75770a | 95 | ex | Elixir | coherence_demo_no_confirm/lib/coherence_demo_web/views/coherence/unlock_view.ex | hotpyn/coherence-setup | fc10bb15d993ae0dd13a19fd178bdfb4ee13d6b6 | [
"MIT"
] | null | null | null | coherence_demo_no_confirm/lib/coherence_demo_web/views/coherence/unlock_view.ex | hotpyn/coherence-setup | fc10bb15d993ae0dd13a19fd178bdfb4ee13d6b6 | [
"MIT"
] | null | null | null | coherence_demo_no_confirm/lib/coherence_demo_web/views/coherence/unlock_view.ex | hotpyn/coherence-setup | fc10bb15d993ae0dd13a19fd178bdfb4ee13d6b6 | [
"MIT"
] | null | null | null | defmodule CoherenceDemoWeb.Coherence.UnlockView do
use CoherenceDemoWeb.Coherence, :view
end
| 23.75 | 50 | 0.852632 |
38174056e79af7db7731605055ba79ffe37a0fcc | 2,266 | ex | Elixir | lib/cforum/advent_calendars.ex | jrieger/cforum_ex | 61f6ce84708cb55bd0feedf69853dae64146a7a0 | [
"MIT"
] | 16 | 2019-04-04T06:33:33.000Z | 2021-08-16T19:34:31.000Z | lib/cforum/advent_calendars.ex | jrieger/cforum_ex | 61f6ce84708cb55bd0feedf69853dae64146a7a0 | [
"MIT"
] | 294 | 2019-02-10T11:10:27.000Z | 2022-03-30T04:52:53.000Z | lib/cforum/advent_calendars.ex | jrieger/cforum_ex | 61f6ce84708cb55bd0feedf69853dae64146a7a0 | [
"MIT"
] | 10 | 2019-02-10T10:39:24.000Z | 2021-07-06T11:46:05.000Z | defmodule Cforum.AdventCalendars do
@moduledoc """
The AdventCalendars context.
"""
import Ecto.Query, warn: false
alias Cforum.Repo
alias Cforum.Helpers
alias Cforum.AdventCalendars.Day
def list_years do
from(day in Day,
select: fragment("EXTRACT(YEAR from ?)::character varying", day.date)... | 19.042017 | 120 | 0.584289 |
38174a58adb2ead539d9d90d02d4ccf30e786f60 | 8,816 | ex | Elixir | lib/floki/selector/parser.ex | kianmeng/floki | 5fcaa01b6bc09f34ca63bac1a906850a48647281 | [
"MIT"
] | null | null | null | lib/floki/selector/parser.ex | kianmeng/floki | 5fcaa01b6bc09f34ca63bac1a906850a48647281 | [
"MIT"
] | null | null | null | lib/floki/selector/parser.ex | kianmeng/floki | 5fcaa01b6bc09f34ca63bac1a906850a48647281 | [
"MIT"
] | null | null | null | defmodule Floki.Selector.Parser do
require Logger
@moduledoc false
# Parses a list of tokens returned from `Tokenizer` and transfor into a `Selector`.
alias Floki.Selector
alias Selector.{Functional, Tokenizer, PseudoClass, AttributeSelector, Combinator}
@attr_match_types [
:equal,
:dash_match,
... | 34.303502 | 97 | 0.709279 |
38174d1587f8e8610f1d5444f3c44927062b883b | 598 | ex | Elixir | lib/cgrates_web_jsonapi_web/controllers/tp_smart_rate_controller.ex | max-konin/cgrates_web_jsonapi | e82690e343d790b0f77dea6699483fcb6fd8a162 | [
"MIT"
] | 2 | 2018-10-03T07:41:32.000Z | 2021-03-21T11:27:27.000Z | lib/cgrates_web_jsonapi_web/controllers/tp_smart_rate_controller.ex | max-konin/cgrates_web_jsonapi | e82690e343d790b0f77dea6699483fcb6fd8a162 | [
"MIT"
] | 1 | 2018-10-31T04:55:59.000Z | 2018-10-31T04:55:59.000Z | lib/cgrates_web_jsonapi_web/controllers/tp_smart_rate_controller.ex | max-konin/cgrates_web_jsonapi | e82690e343d790b0f77dea6699483fcb6fd8a162 | [
"MIT"
] | 5 | 2018-09-27T11:30:44.000Z | 2021-01-16T08:28:58.000Z | defmodule CgratesWebJsonapiWeb.TpSmartRateController do
use CgratesWebJsonapiWeb, :controller
alias CgratesWebJsonapi.TariffPlans.TpSmartRate
def create(conn, %{"data" => data}) do
attrs = JaSerializer.Params.to_attributes(data)
changeset = TpSmartRate.changeset(%TpSmartRate{}, attrs)
case TpSmart... | 24.916667 | 60 | 0.658863 |
381766da3f7f59b299d22ea856b7c0a3ff61288d | 597 | ex | Elixir | lib/circuits_led/application.ex | fhunleth/circuits_led | 4ecd59655f394f9726dc1a3352530cfc6547d1bc | [
"Apache-2.0"
] | 3 | 2019-04-22T14:37:04.000Z | 2020-01-12T04:09:08.000Z | lib/circuits_led/application.ex | fhunleth/circuits_led | 4ecd59655f394f9726dc1a3352530cfc6547d1bc | [
"Apache-2.0"
] | 2 | 2019-09-14T20:30:37.000Z | 2019-09-18T13:17:53.000Z | lib/circuits_led/application.ex | fhunleth/circuits_led | 4ecd59655f394f9726dc1a3352530cfc6547d1bc | [
"Apache-2.0"
] | null | null | null | defmodule CircuitsLED.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 = [
# Starts a worker by calling: CircuitsLED.Worker... | 28.428571 | 70 | 0.718593 |
38178a21204d210b3cdb91b1b84d04207f6ee72a | 505 | exs | Elixir | priv/repo/migrations/20160208073409_create_zone_member.exs | harry-gao/ex-cart | 573e7f977bb3b710d11618dd215d4ddd8f819fb3 | [
"Apache-2.0"
] | 356 | 2016-03-16T12:37:28.000Z | 2021-12-18T03:22:39.000Z | priv/repo/migrations/20160208073409_create_zone_member.exs | harry-gao/ex-cart | 573e7f977bb3b710d11618dd215d4ddd8f819fb3 | [
"Apache-2.0"
] | 30 | 2016-03-16T09:19:10.000Z | 2021-01-12T08:10:52.000Z | priv/repo/migrations/20160208073409_create_zone_member.exs | harry-gao/ex-cart | 573e7f977bb3b710d11618dd215d4ddd8f819fb3 | [
"Apache-2.0"
] | 72 | 2016-03-16T13:32:14.000Z | 2021-03-23T11:27:43.000Z | defmodule Nectar.Repo.Migrations.CreateZoneMember do
use Ecto.Migration
def change do
create table(:country_zone_members) do
add :zoneable_id, :integer
add :zone_id, :integer
timestamps
end
create unique_index(:country_zone_members, [:zoneable_id, :zone_id])
create table(:state_z... | 24.047619 | 72 | 0.70495 |
38178dded662fd7a493ed4b29a1148ff7ab1cdc4 | 1,119 | ex | Elixir | test/fixtures/host_tool/lib/host_tool/platform.ex | petermm/nerves | 173b0a424177f45f77db4206406d9c98f1d73e95 | [
"Apache-2.0"
] | null | null | null | test/fixtures/host_tool/lib/host_tool/platform.ex | petermm/nerves | 173b0a424177f45f77db4206406d9c98f1d73e95 | [
"Apache-2.0"
] | null | null | null | test/fixtures/host_tool/lib/host_tool/platform.ex | petermm/nerves | 173b0a424177f45f77db4206406d9c98f1d73e95 | [
"Apache-2.0"
] | null | null | null | defmodule HostTool.Platform do
use Nerves.Package.Platform
alias Nerves.Artifact
def bootstrap(pkg) do
path = System.get_env("PATH")
System.put_env("PATH", "#{Nerves.Artifact.Cache.get(pkg)}:#{path}")
:ok
end
def build(pkg, _toolchain, _opts) do
build_path = Artifact.build_path(pkg)
Fil... | 19.293103 | 71 | 0.634495 |
3817a50609d93d68ab21657083821e67ef1824ef | 3,400 | ex | Elixir | clients/cloud_functions/lib/google_api/cloud_functions/v1/model/google_cloud_functions_v2alpha_operation_metadata.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/cloud_functions/lib/google_api/cloud_functions/v1/model/google_cloud_functions_v2alpha_operation_metadata.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/cloud_functions/lib/google_api/cloud_functions/v1/model/google_cloud_functions_v2alpha_operation_metadata.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 41.463415 | 285 | 0.699706 |
381801cbb3a8ab2a41f68beab96ee957d65a1b05 | 227 | ex | Elixir | lib/core/asset/box_led.ex | bahanni/custom_rpi4 | ddefa85d30bacaae40151a63a9a0ebbf4ad30ed5 | [
"MIT"
] | null | null | null | lib/core/asset/box_led.ex | bahanni/custom_rpi4 | ddefa85d30bacaae40151a63a9a0ebbf4ad30ed5 | [
"MIT"
] | null | null | null | lib/core/asset/box_led.ex | bahanni/custom_rpi4 | ddefa85d30bacaae40151a63a9a0ebbf4ad30ed5 | [
"MIT"
] | null | null | null | defmodule FarmbotOS.Asset.BoxLed do
@moduledoc """
"""
defstruct [:id]
defimpl String.Chars, for: FarmbotOS.Asset.BoxLed do
def to_string(%FarmbotOS.Asset.BoxLed{id: id}) do
"BoxLed #{id}"
end
end
end
| 17.461538 | 54 | 0.656388 |
3818693ca4b92d755ed3a9270c007c8f97e6d3c5 | 5,602 | ex | Elixir | deps/gettext/lib/gettext/interpolation.ex | pdamoc/cowboy_issue | 3873ffed5cc2b15ead54b2d3e95575b09ba1833a | [
"MIT"
] | null | null | null | deps/gettext/lib/gettext/interpolation.ex | pdamoc/cowboy_issue | 3873ffed5cc2b15ead54b2d3e95575b09ba1833a | [
"MIT"
] | null | null | null | deps/gettext/lib/gettext/interpolation.ex | pdamoc/cowboy_issue | 3873ffed5cc2b15ead54b2d3e95575b09ba1833a | [
"MIT"
] | null | null | null | defmodule Gettext.Interpolation do
@moduledoc false
@type interpolatable :: [String.t | atom]
@doc """
Extracts interpolations from a given string.
This function extracts all interpolations in the form `%{interpolation}`
contained inside `str`, converts them to atoms and then returns a list of
string a... | 38.108844 | 106 | 0.672795 |
3818a0260155e223a5dff44a5858bd4fbd8d5441 | 1,867 | ex | Elixir | clients/vault/lib/google_api/vault/v1/model/held_groups_query.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/vault/lib/google_api/vault/v1/model/held_groups_query.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/vault/lib/google_api/vault/v1/model/held_groups_query.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 35.226415 | 180 | 0.711837 |
3818aca88ce6192ec52df76815df23ecdc7ee94e | 13,874 | exs | Elixir | implementations/elixir/ockam/ockam_vault_software/test/vault_software_test.exs | pfeairheller/ockam | 3b05304d193bc6d1dfd11d9cf83560ae2e14f626 | [
"Apache-2.0"
] | null | null | null | implementations/elixir/ockam/ockam_vault_software/test/vault_software_test.exs | pfeairheller/ockam | 3b05304d193bc6d1dfd11d9cf83560ae2e14f626 | [
"Apache-2.0"
] | null | null | null | implementations/elixir/ockam/ockam_vault_software/test/vault_software_test.exs | pfeairheller/ockam | 3b05304d193bc6d1dfd11d9cf83560ae2e14f626 | [
"Apache-2.0"
] | null | null | null | defmodule Ockam.Vault.Software.Tests do
use ExUnit.Case, async: true
doctest Ockam.Vault.Software
alias Ockam.Vault.Software, as: SoftwareVault
describe "Ockam.Vault.Software.sha256/2" do
test "can run natively implemented functions" do
{:ok, handle} = SoftwareVault.default_init()
{:ok, hash} =... | 37.295699 | 98 | 0.636658 |
3818ba733c1c5b8b90429960820d7831de598895 | 458 | ex | Elixir | token_registry/lib/token_registry_web/views/token_view.ex | canuckasaurus/archeio-solanaszn | 55dc8712cf0409d110ae342cbbc620745668a4df | [
"MIT"
] | 1 | 2021-12-18T16:17:19.000Z | 2021-12-18T16:17:19.000Z | token_registry/lib/token_registry_web/views/token_view.ex | canuckasaurus/archeio-solanaszn | 55dc8712cf0409d110ae342cbbc620745668a4df | [
"MIT"
] | null | null | null | token_registry/lib/token_registry_web/views/token_view.ex | canuckasaurus/archeio-solanaszn | 55dc8712cf0409d110ae342cbbc620745668a4df | [
"MIT"
] | null | null | null | defmodule TokenRegistryWeb.TokenView do
use TokenRegistryWeb, :view
alias TokenRegistryWeb.TokenView
def render("index.json", %{tokens: tokens}) do
%{data: render_many(tokens, TokenView, "token.json")}
end
def render("show.json", %{token: token}) do
%{data: render_one(token, TokenView, "token.json")... | 24.105263 | 57 | 0.670306 |
3818bced664dff319947dd666d99ae62e4106b18 | 320 | ex | Elixir | lib/formatter/io.ex | sb8244/statsd_logger | 3bf97bef353338730e9feb11a8b9a6cec964ad76 | [
"MIT"
] | 2 | 2019-09-02T02:10:07.000Z | 2021-04-02T03:56:30.000Z | lib/formatter/io.ex | sb8244/statsd_logger | 3bf97bef353338730e9feb11a8b9a6cec964ad76 | [
"MIT"
] | null | null | null | lib/formatter/io.ex | sb8244/statsd_logger | 3bf97bef353338730e9feb11a8b9a6cec964ad76 | [
"MIT"
] | 1 | 2021-08-15T00:32:53.000Z | 2021-08-15T00:32:53.000Z | defmodule StatsDLogger.Formatter.Io do
def handle(:valid, name, value, _opts) do
["StatsD metric: ", :blue, name, " ", :green, value]
|> IO.ANSI.format()
|> IO.puts()
end
def handle(:invalid, msg, _opts) do
["StatsD invalid metric: ", :red, msg]
|> IO.ANSI.format()
|> IO.puts()
end
end
| 22.857143 | 56 | 0.59375 |
3818d166470a0349ebf12064b42d26bb1653fa76 | 2,279 | ex | Elixir | examples/apollo_cowboy/lib/apollo_cowboy.ex | dazzlerocks/absinthe_apollo_sockets | 675be982a28760fac1f61e8a4b6223c28298392e | [
"MIT"
] | 19 | 2018-09-24T19:55:31.000Z | 2021-12-12T20:46:17.000Z | examples/apollo_cowboy/lib/apollo_cowboy.ex | dazzlerocks/absinthe_apollo_sockets | 675be982a28760fac1f61e8a4b6223c28298392e | [
"MIT"
] | 8 | 2018-10-17T13:48:15.000Z | 2021-11-04T05:09:55.000Z | examples/apollo_cowboy/lib/apollo_cowboy.ex | dazzlerocks/absinthe_apollo_sockets | 675be982a28760fac1f61e8a4b6223c28298392e | [
"MIT"
] | 6 | 2018-10-11T13:59:25.000Z | 2022-02-14T14:04:19.000Z | defmodule ApolloCowboyExample do
def start(_mode, _args) do
# Define the router for cowboy that includes a socket handler
# for the apollo sockets and a couple of static handlers
# that serve up the example website.
dispatch =
:cowboy_router.compile([
{:_,
[
{"/", :co... | 34.530303 | 97 | 0.656867 |
3818d475ec7d27fdf2956543828df62a5d734c8c | 31,646 | ex | Elixir | lib/livebook/session.ex | byjpr/livebook | 350cd13853eb4c2357203b365d9f6fb59f0601f4 | [
"Apache-2.0"
] | null | null | null | lib/livebook/session.ex | byjpr/livebook | 350cd13853eb4c2357203b365d9f6fb59f0601f4 | [
"Apache-2.0"
] | null | null | null | lib/livebook/session.ex | byjpr/livebook | 350cd13853eb4c2357203b365d9f6fb59f0601f4 | [
"Apache-2.0"
] | null | null | null | defmodule Livebook.Session do
@moduledoc false
# Server corresponding to a single notebook session.
#
# The process keeps the current notebook state and serves
# as a source of truth that multiple clients talk to.
# Receives update requests from the clients and notifies
# them of any changes applied to t... | 30.635044 | 98 | 0.68075 |
3819265582e294cc6a4bad442b3e036dfa8d5854 | 2,054 | ex | Elixir | lib/crypto_apis.ex | HPJM/crypto_apis | fe8b191a7b95ec3d066bf1881277c3f920df1457 | [
"MIT"
] | null | null | null | lib/crypto_apis.ex | HPJM/crypto_apis | fe8b191a7b95ec3d066bf1881277c3f920df1457 | [
"MIT"
] | null | null | null | lib/crypto_apis.ex | HPJM/crypto_apis | fe8b191a7b95ec3d066bf1881277c3f920df1457 | [
"MIT"
] | null | null | null | defmodule CryptoApis do
@moduledoc """
Documentation for `CryptoApis`.
"""
defp merge_params(options, opts) do
option_params = options[:params] || []
additional_params = opts[:params] || []
params = Keyword.merge(option_params, additional_params)
if Enum.empty?(params), do: options, else: opti... | 26.333333 | 86 | 0.642162 |
3819404ffed1af355704c9e9fdf6dbf41698c46a | 982 | ex | Elixir | lib/auth/services/user/create_user_password.ex | nathanfaucett/ex-auth | 52569522e7ee43dd2a713042a86971164cd57ccb | [
"MIT"
] | null | null | null | lib/auth/services/user/create_user_password.ex | nathanfaucett/ex-auth | 52569522e7ee43dd2a713042a86971164cd57ccb | [
"MIT"
] | null | null | null | lib/auth/services/user/create_user_password.ex | nathanfaucett/ex-auth | 52569522e7ee43dd2a713042a86971164cd57ccb | [
"MIT"
] | null | null | null | defmodule Auth.Services.User.CreateUserPassword do
import Auth.Gettext
def prop_types do
%{
"locale" => PropTypes.required(PropTypes.string),
"email" => PropTypes.required(PropTypes.string),
"password" => PropTypes.required(PropTypes.string)
}
end
def call(params) do
errors = Pr... | 25.842105 | 95 | 0.61609 |
381950386b6ac4a46337dfdbfd5b6d676168bfbc | 212 | ex | Elixir | lib/ex_hl7/segment/default/dsc.ex | workpathco/ex_hl7 | 20f2fadb158e903cf1752f69cd0ecdeae377c2c3 | [
"Apache-2.0"
] | 38 | 2015-06-21T17:44:44.000Z | 2021-10-03T08:46:08.000Z | lib/ex_hl7/segment/default/dsc.ex | workpathco/ex_hl7 | 20f2fadb158e903cf1752f69cd0ecdeae377c2c3 | [
"Apache-2.0"
] | 2 | 2019-08-27T17:27:37.000Z | 2021-02-05T14:27:28.000Z | lib/ex_hl7/segment/default/dsc.ex | workpathco/ex_hl7 | 20f2fadb158e903cf1752f69cd0ecdeae377c2c3 | [
"Apache-2.0"
] | 14 | 2016-02-04T15:11:55.000Z | 2021-11-13T20:28:19.000Z | defmodule HL7.Segment.Default.DSC do
@moduledoc "2.16.4 DSC - continuation pointer segment"
use HL7.Segment.Spec
segment "DSC" do
field :continuation_pointer, seq: 1, type: :string, len: 15
end
end
| 23.555556 | 64 | 0.716981 |
381964461a5a941eca5729e487c8336ee02aca9e | 542 | ex | Elixir | apps/customer/lib/customer/web/services/ets_caller.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/services/ets_caller.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/services/ets_caller.ex | JaiMali/job_search-1 | 5fe1afcd80aa5d55b92befed2780cd6721837c88 | [
"MIT"
] | 18 | 2017-05-22T09:51:36.000Z | 2021-09-24T00:57:01.000Z | defmodule Customer.Web.Service.EtsCaller do
alias Customer.Ets
alias Customer.Web.Query
alias Customer.Repo
def perform(key, action) do
fetch_from_ets(key, action)
end
defp fetch_from_ets(key, action) do
case Ets.fetch(key) do
{:ok, value} ->
value
{:error, _reason} ->
... | 21.68 | 60 | 0.651292 |
3819685ff31bb8fdd45d5f0f32940790d09d9a52 | 3,351 | ex | Elixir | elixir/lib/forwardfinancing.ex | ForwardFinancing/partner_api_client_samples | 4733fe7f32461fffeaf48ca3c048f1ad565223df | [
"MIT"
] | null | null | null | elixir/lib/forwardfinancing.ex | ForwardFinancing/partner_api_client_samples | 4733fe7f32461fffeaf48ca3c048f1ad565223df | [
"MIT"
] | 1 | 2019-02-19T21:09:04.000Z | 2019-02-20T14:07:28.000Z | elixir/lib/forwardfinancing.ex | ForwardFinancing/partner_api_client_samples | 4733fe7f32461fffeaf48ca3c048f1ad565223df | [
"MIT"
] | null | null | null | defmodule ForwardFinancing do
def api_example do
# Read the API key from an environment variable
api_key = System.get_env("FORWARD_FINANCING_API_KEY")
json_data = %{
lead: %{
contacts_attributes: [
%{
"first_name" => "string",
"last_name" => "string",
... | 28.159664 | 113 | 0.51895 |
381981194b065d5fc8e521f1dadaac6c57918018 | 1,259 | ex | Elixir | lib/reaper/data_slurper/http.ex | bbalser/reaper | 7a2e8808c877b33ffa63a745179118f938460989 | [
"Apache-2.0"
] | null | null | null | lib/reaper/data_slurper/http.ex | bbalser/reaper | 7a2e8808c877b33ffa63a745179118f938460989 | [
"Apache-2.0"
] | null | null | null | lib/reaper/data_slurper/http.ex | bbalser/reaper | 7a2e8808c877b33ffa63a745179118f938460989 | [
"Apache-2.0"
] | null | null | null | defmodule Reaper.DataSlurper.Http do
@moduledoc """
Downloads http/https files as stream to local filesystem
"""
@behaviour Reaper.DataSlurper
alias Reaper.DataSlurper
alias Reaper.Http.Downloader
require Logger
defmodule HttpDownloadTimeoutError do
defexception [:message]
end
@impl DataSlurpe... | 29.27907 | 102 | 0.714059 |
3819a69c0d78069d706c51caf3e8c6ffdc64d560 | 5,464 | ex | Elixir | lib/verk/sorted_set.ex | coop/verk | cae9bea1426d5b340b3041b29453f17c709d70a8 | [
"MIT"
] | null | null | null | lib/verk/sorted_set.ex | coop/verk | cae9bea1426d5b340b3041b29453f17c709d70a8 | [
"MIT"
] | null | null | null | lib/verk/sorted_set.ex | coop/verk | cae9bea1426d5b340b3041b29453f17c709d70a8 | [
"MIT"
] | 1 | 2018-12-04T03:50:36.000Z | 2018-12-04T03:50:36.000Z | defmodule Verk.SortedSet do
@moduledoc """
This module interacts with the jobs on a sorted set
"""
import Verk.Dsl
alias Verk.Job
@requeue_now_script Verk.Scripts.sha("requeue_job_now")
@doc """
Counts how many jobs are inside the sorted set
"""
@spec count(String.t, GenServer.server) :: {:ok, int... | 31.767442 | 110 | 0.639458 |
3819d5490b43a95b791f803fd754b47e9cb683ee | 2,955 | ex | Elixir | elixir_backend/clubhouse_phx/lib/clubhouse_phx/accounts/user.ex | yusufaine/nus-clubhouse | eae8223d26111bab5e981c95b539c964293908e8 | [
"MIT"
] | 1 | 2021-05-16T08:17:37.000Z | 2021-05-16T08:17:37.000Z | elixir_backend/clubhouse_phx/lib/clubhouse_phx/accounts/user.ex | yusufaine/nus-clubhouse | eae8223d26111bab5e981c95b539c964293908e8 | [
"MIT"
] | 116 | 2021-05-29T16:32:51.000Z | 2021-08-13T16:05:29.000Z | elixir_backend/clubhouse_phx/lib/clubhouse_phx/accounts/user.ex | yusufaine/nus-clubhouse | eae8223d26111bab5e981c95b539c964293908e8 | [
"MIT"
] | 2 | 2021-05-23T07:12:40.000Z | 2021-10-11T02:59:40.000Z | # defmodule ClubhousePhx.Accounts.User do
# use Ecto.Schema
# import Ecto.Changeset
# alias ClubhousePhx.Sessions.Session
# @type t :: %__MODULE__{
# id: integer,
# email: String.t(),
# password_hash: String.t(),
# confirmed_at: DateTime.t() | nil,
# reset_sent_at: DateTime.t() | nil,
# ... | 29.55 | 78 | 0.625042 |
3819dabce346dfadd2e951467203dabc4c8c11bf | 5,086 | ex | Elixir | clients/app_engine/lib/google_api/app_engine/v1/model/application.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | 1 | 2021-10-01T09:20:41.000Z | 2021-10-01T09:20:41.000Z | clients/app_engine/lib/google_api/app_engine/v1/model/application.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/app_engine/lib/google_api/app_engine/v1/model/application.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"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... | 59.139535 | 364 | 0.712348 |
3819db5cdf0a8a545cf5762a6741c9260ac448c5 | 115 | ex | Elixir | lib/rube/uniswap/events/swap.ex | fremantle-industries/rube | ceb0c6d09e8b9c029a71115710265d8b6b31cc49 | [
"MIT"
] | 22 | 2021-06-23T06:25:41.000Z | 2022-02-16T19:08:33.000Z | lib/rube/uniswap/events/swap.ex | fremantle-industries/rube | ceb0c6d09e8b9c029a71115710265d8b6b31cc49 | [
"MIT"
] | 16 | 2021-06-21T17:02:13.000Z | 2022-03-21T15:04:14.000Z | lib/rube/uniswap/events/swap.ex | fremantle-industries/rube | ceb0c6d09e8b9c029a71115710265d8b6b31cc49 | [
"MIT"
] | 2 | 2021-06-23T13:40:52.000Z | 2021-09-17T07:25:34.000Z | defmodule Rube.Uniswap.Events.Swap do
defstruct ~w[sender amount0_in amount1_in amount0_out amount1_out to]a
end
| 28.75 | 72 | 0.834783 |
3819dcc4af28a651627a7eedd7735c2e04febff8 | 1,230 | exs | Elixir | priv/repo/migrations/027_create_fulfillment_package.exs | freshcom/freshcom-api | 4f2083277943cf4e4e8fd4c4d443c7309f285ad7 | [
"BSD-3-Clause"
] | 44 | 2018-05-09T01:08:57.000Z | 2021-01-19T07:25:26.000Z | priv/repo/migrations/027_create_fulfillment_package.exs | freshcom/freshcom-api | 4f2083277943cf4e4e8fd4c4d443c7309f285ad7 | [
"BSD-3-Clause"
] | 36 | 2018-05-08T23:59:54.000Z | 2018-09-28T13:50:30.000Z | priv/repo/migrations/027_create_fulfillment_package.exs | freshcom/freshcom-api | 4f2083277943cf4e4e8fd4c4d443c7309f285ad7 | [
"BSD-3-Clause"
] | 9 | 2018-05-09T14:09:19.000Z | 2021-03-21T21:04:04.000Z | defmodule BlueJet.Repo.Migrations.CreateFulfillmentPackage do
use Ecto.Migration
def change do
create table(:fulfillment_packages, primary_key: false) do
add :id, :binary_id, primary_key: true
add :account_id, references(:accounts, type: :binary_id, on_delete: :delete_all), null: false
add :... | 36.176471 | 99 | 0.686179 |
381a515316dc51a9c999aed77573dc1837bf63c1 | 2,879 | ex | Elixir | back-end/lib/aws_iot_button.ex | patternmatch/button-for-slack | 5d159d2662bcaacb0490f0523aec91bd3134e6a9 | [
"MIT"
] | 3 | 2019-03-15T07:11:36.000Z | 2020-01-19T03:23:00.000Z | back-end/lib/aws_iot_button.ex | patternmatch/button-for-slack | 5d159d2662bcaacb0490f0523aec91bd3134e6a9 | [
"MIT"
] | null | null | null | back-end/lib/aws_iot_button.ex | patternmatch/button-for-slack | 5d159d2662bcaacb0490f0523aec91bd3134e6a9 | [
"MIT"
] | null | null | null | defmodule AwsIotButton do
alias ExAws.Request.Hackney
def handle_event(request, context) when is_map(request) and is_map(context) do
type = request["clickType"]
device_id = request["serialNumber"]
case UserProfile.get_profile_by_device(device_id) do
:not_found ->
respond("Button #{device... | 28.22549 | 101 | 0.615144 |
381a6c86abd35d46ce34e87b0e6c7ee7667899c1 | 1,212 | ex | Elixir | lib/telemetry.ex | Plus17/zendesk_api | 86d1b3e8cd7af3e3b9b93542751890a6ac89ea80 | [
"Apache-2.0"
] | null | null | null | lib/telemetry.ex | Plus17/zendesk_api | 86d1b3e8cd7af3e3b9b93542751890a6ac89ea80 | [
"Apache-2.0"
] | null | null | null | lib/telemetry.ex | Plus17/zendesk_api | 86d1b3e8cd7af3e3b9b93542751890a6ac89ea80 | [
"Apache-2.0"
] | null | null | null | defmodule ZendeskAPI.Telemetry do
@moduledoc """
ZendeskAPI [Telemetry](https://github.com/beam-telemetry/telemetry) integration.
All time measurements are emitted in `:native` units by
default.
ZendeskAPI emits the following Telemetry events:
* `[:zendesk_api, :user, :start]` before user action
- Meas... | 29.560976 | 82 | 0.681518 |
381a7137320f15a79a24ae24e8664926dddbdea0 | 1,859 | ex | Elixir | clients/content/lib/google_api/content/v21/model/settlement_transaction_transaction.ex | jamesvl/elixir-google-api | 6c87fb31d996f08fb42ce6066317e9d652a87acc | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v21/model/settlement_transaction_transaction.ex | jamesvl/elixir-google-api | 6c87fb31d996f08fb42ce6066317e9d652a87acc | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/content/lib/google_api/content/v21/model/settlement_transaction_transaction.ex | myskoach/elixir-google-api | 4f8cbc2fc38f70ffc120fd7ec48e27e46807b563 | [
"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.18 | 360 | 0.735342 |
381a7a96387bb79dc0829c5a08f957e4af0c538b | 7,011 | exs | Elixir | test/integration/consume_test.exs | DivvyPayHQ/broadway_kafka | 7f14cf5f29dd999f2a17cefe5d0ecccca28473d6 | [
"Apache-2.0"
] | 112 | 2020-01-20T22:04:30.000Z | 2022-03-25T10:41:47.000Z | test/integration/consume_test.exs | DivvyPayHQ/broadway_kafka | 7f14cf5f29dd999f2a17cefe5d0ecccca28473d6 | [
"Apache-2.0"
] | 71 | 2020-01-22T12:43:29.000Z | 2022-03-30T22:30:29.000Z | test/integration/consume_test.exs | DivvyPayHQ/broadway_kafka | 7f14cf5f29dd999f2a17cefe5d0ecccca28473d6 | [
"Apache-2.0"
] | 39 | 2020-02-21T15:10:42.000Z | 2022-02-11T17:34:09.000Z | defmodule BroadwayKafka.ConsumerTest.Config do
def n_messages do
10_000
end
def last_messages do
(n_messages() - 2)..n_messages() |> Enum.map(&to_string/1)
end
end
defmodule BroadwayKafka.ConsumerTest do
@moduledoc """
Kafka integration tests.
# Setup
1. Install Kafka locally on port 9092 (d... | 25.775735 | 97 | 0.605334 |
381a88d30c21c9f5da9585e2d6ab0581aa82d784 | 1,756 | ex | Elixir | clients/service_management/lib/google_api/service_management/v1/model/enable_service_request.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/service_management/lib/google_api/service_management/v1/model/enable_service_request.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/service_management/lib/google_api/service_management/v1/model/enable_service_request.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "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.927273 | 126 | 0.743736 |
381af3e8c2dca71be9235e2e238bdb4ff403bfc3 | 871 | exs | Elixir | test/core/sup_tree_core/periodic_log/reduction_log_builder_test.exs | IvanPereyra-23/PaaS | 0179c7b57645473308b0a295a70b6284ed220fbf | [
"Apache-2.0"
] | 1 | 2020-08-27T18:43:11.000Z | 2020-08-27T18:43:11.000Z | test/core/sup_tree_core/periodic_log/reduction_log_builder_test.exs | IvanPereyra-23/PaaS | 0179c7b57645473308b0a295a70b6284ed220fbf | [
"Apache-2.0"
] | null | null | null | test/core/sup_tree_core/periodic_log/reduction_log_builder_test.exs | IvanPereyra-23/PaaS | 0179c7b57645473308b0a295a70b6284ed220fbf | [
"Apache-2.0"
] | 1 | 2020-08-27T18:43:21.000Z | 2020-08-27T18:43:21.000Z | defmodule AntikytheraCore.PeriodicLog.ReductionBuilderTest do
use Croma.TestCase
@dir Path.join([__DIR__, "..", "..", "..", "..", "_build", "test", "log", "antikythera"]) |> Path.expand()
test "should exist" do
pid = Process.whereis(ReductionBuilder)
assert pid != nil
assert File.exists?(Path.join(@... | 33.5 | 108 | 0.698048 |
381affff74f1cc73b7c799acbfcf9b88c8e4287f | 79 | exs | Elixir | test/test_helper.exs | drozdzynski/stex | 2ed8164f5aed9c3d8ac18868a254e4a7d78cdb3f | [
"Apache-2.0"
] | 17 | 2019-05-04T16:04:14.000Z | 2019-05-25T13:20:32.000Z | test/test_helper.exs | nerdslabs/storex | 2ed8164f5aed9c3d8ac18868a254e4a7d78cdb3f | [
"Apache-2.0"
] | null | null | null | test/test_helper.exs | nerdslabs/storex | 2ed8164f5aed9c3d8ac18868a254e4a7d78cdb3f | [
"Apache-2.0"
] | null | null | null | Application.ensure_all_started(:hound)
ExUnit.start(timeout: 600_000, seed: 0)
| 26.333333 | 39 | 0.810127 |
381b38b4137ed02370bdc3f2ac2e4a96f6ba64c6 | 2,528 | ex | Elixir | clients/cloud_channel/lib/google_api/cloud_channel/v1/model/google_cloud_channel_v1_change_renewal_settings_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_change_renewal_settings_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_change_renewal_settings_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... | 45.142857 | 638 | 0.761076 |
381b4be2a48373be212b24ce58f8cbe92d050968 | 681 | ex | Elixir | apps/emporium_api/web/models/product.ex | impressarix/Phoenix-Webstore | 31376183b853e594b224fb1051897a00cd20b6ec | [
"Apache-2.0"
] | null | null | null | apps/emporium_api/web/models/product.ex | impressarix/Phoenix-Webstore | 31376183b853e594b224fb1051897a00cd20b6ec | [
"Apache-2.0"
] | null | null | null | apps/emporium_api/web/models/product.ex | impressarix/Phoenix-Webstore | 31376183b853e594b224fb1051897a00cd20b6ec | [
"Apache-2.0"
] | null | null | null | defmodule Emporium.Product do
use EmporiumApi.Web, :model
schema "emporium_products" do
field :name, :string
field :permalink, :string
field :description, :string
belongs_to :category, Emporium.Category
field :is_digital, :boolean, default: false
timestamps
end
@required_fields ~w(nam... | 24.321429 | 61 | 0.715125 |
381b68a62c46a09a55cf07e1b70264312ea1e5f7 | 181 | exs | Elixir | config/prod.exs | fremantle-capital/ex_okex | 1e5a4ac8c3713a0bfcd8fffc20dce1a9eaacf931 | [
"MIT"
] | 6 | 2018-12-04T22:05:05.000Z | 2022-01-08T11:54:40.000Z | config/prod.exs | fremantle-capital/ex_okex | 1e5a4ac8c3713a0bfcd8fffc20dce1a9eaacf931 | [
"MIT"
] | 14 | 2019-12-21T11:32:30.000Z | 2022-03-28T16:07:01.000Z | config/prod.exs | acuityinnovations/ex_okex | 52acf16e8d00446ca32607ccb2cd75add0acaceb | [
"MIT"
] | 5 | 2019-04-10T00:41:17.000Z | 2021-12-23T14:49:02.000Z | use Mix.Config
config :ex_okex,
api_key: System.get_env("OKEX_API_KEY"),
api_secret: System.get_env("OKEX_API_SECRET"),
api_passphrase: System.get_env("OKEX_API_PASSPHRASE")
| 25.857143 | 55 | 0.779006 |
381b84c398a094b6a0255890632898b299e4862d | 1,940 | exs | Elixir | test/receivex_test.exs | edisonywh/receivex | 605fe45e8c8e0d9c29cc04f54918839c4c79656d | [
"MIT"
] | 18 | 2018-12-14T16:53:27.000Z | 2022-03-16T09:30:36.000Z | test/receivex_test.exs | edisonywh/receivex | 605fe45e8c8e0d9c29cc04f54918839c4c79656d | [
"MIT"
] | 44 | 2019-04-16T04:32:17.000Z | 2022-03-24T04:03:53.000Z | test/receivex_test.exs | edisonywh/receivex | 605fe45e8c8e0d9c29cc04f54918839c4c79656d | [
"MIT"
] | 3 | 2020-01-17T15:29:33.000Z | 2021-12-12T19:50:33.000Z | defmodule ReceivexTest do
use ExUnit.Case
use Plug.Test
defmodule TestAdapter do
@behaviour Receivex.Adapter
@impl true
def handle_webhook(conn, handler, _opts) do
case conn.body_params do
%{"invalid" => "true"} ->
{:error, conn}
_ ->
email = normalize_para... | 25.866667 | 91 | 0.565979 |
381bdd9e44ad574f24e850cc0048e1c3168ec569 | 222 | ex | Elixir | apps/tai/lib/tai/venue_adapters/okex/maker_taker_fees.ex | ccamateur/tai | 41c4b3e09dafc77987fa3f6b300c15461d981e16 | [
"MIT"
] | 276 | 2018-01-16T06:36:06.000Z | 2021-03-20T21:48:01.000Z | apps/tai/lib/tai/venue_adapters/okex/maker_taker_fees.ex | ccamateur/tai | 41c4b3e09dafc77987fa3f6b300c15461d981e16 | [
"MIT"
] | 78 | 2020-10-12T06:21:43.000Z | 2022-03-28T09:02:00.000Z | apps/tai/lib/tai/venue_adapters/okex/maker_taker_fees.ex | yurikoval/tai | 94254b45d22fa0307b01577ff7c629c7280c0295 | [
"MIT"
] | 43 | 2018-06-09T09:54:51.000Z | 2021-03-07T07:35:17.000Z | defmodule Tai.VenueAdapters.OkEx.MakerTakerFees do
def maker_taker_fees(_venue_id, _credential_id, _credentials) do
maker = Decimal.new("0.0002")
taker = Decimal.new("0.0003")
{:ok, {maker, taker}}
end
end
| 27.75 | 66 | 0.716216 |
381c076f6e634695d88cf4884c0023c3f3ac503b | 1,808 | ex | Elixir | clients/script/lib/google_api/script/v1/model/list_versions_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/script/lib/google_api/script/v1/model/list_versions_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/script/lib/google_api/script/v1/model/list_versions_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 36.16 | 178 | 0.730642 |
381c2d58a9bbb1f626dc00bf499f04654375acbf | 924 | ex | Elixir | lib/firestorm_web/forums/slugs/title_slug.ex | palindrom615/firestorm | 0690493c9dcae5c04c63c5321532a7db923e5be7 | [
"MIT"
] | null | null | null | lib/firestorm_web/forums/slugs/title_slug.ex | palindrom615/firestorm | 0690493c9dcae5c04c63c5321532a7db923e5be7 | [
"MIT"
] | null | null | null | lib/firestorm_web/forums/slugs/title_slug.ex | palindrom615/firestorm | 0690493c9dcae5c04c63c5321532a7db923e5be7 | [
"MIT"
] | null | null | null | defmodule FirestormWeb.Forums.Slugs.TitleSlug do
@moduledoc """
Module that makes it easy to create title slugs that autogenerate unique
titles.
"""
defmacro __using__(module) do
quote do
use EctoAutoslugField.Slug, from: :title, to: :slug
alias FirestormWeb.Repo
import Ecto.Query
... | 22 | 74 | 0.608225 |
381c3794dceaab7bf1f8267b3335aebeb4b492a0 | 32,275 | exs | Elixir | lib/elixir/test/elixir/kernel/errors_test.exs | lytedev/elixir | dc25bb8e1484e2328eef819402d268dec7bb908a | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/kernel/errors_test.exs | lytedev/elixir | dc25bb8e1484e2328eef819402d268dec7bb908a | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/kernel/errors_test.exs | lytedev/elixir | dc25bb8e1484e2328eef819402d268dec7bb908a | [
"Apache-2.0"
] | null | null | null | Code.require_file("../test_helper.exs", __DIR__)
defmodule Kernel.ErrorsTest do
use ExUnit.Case, async: true
defmacro hello do
quote location: :keep do
def hello, do: :world
end
end
test "no optional arguments in fn" do
assert_eval_raise CompileError,
"nofile:1: anonym... | 34.445037 | 144 | 0.54584 |
381c98bc2e60f007c05be93a1f7ec53e483d2189 | 3,017 | ex | Elixir | lib/esi/api/war.ex | johnschultz/esi | 6bc69c39e21baa8655523e71755a65516b68e60c | [
"MIT"
] | null | null | null | lib/esi/api/war.ex | johnschultz/esi | 6bc69c39e21baa8655523e71755a65516b68e60c | [
"MIT"
] | null | null | null | lib/esi/api/war.ex | johnschultz/esi | 6bc69c39e21baa8655523e71755a65516b68e60c | [
"MIT"
] | null | null | null | defmodule ESI.API.War do
@doc """
Return details about a war.
## Response Example
Details about a war:
%{
"aggressor" => %{
"corporation_id" => 986665792,
"isk_destroyed" => 0,
"ships_killed" => 0
},
"declared" => "2004-05-22T05:20:00Z",
"de... | 23.570313 | 87 | 0.582035 |
381cd881cb73869249b31b3260c332e602fd2e81 | 989 | ex | Elixir | backend/lib/keeb_web/views/error_helpers.ex | howardjing/keyboard | 6c52fd99860ff9b01190f5cc2f8451a2644dfb5f | [
"MIT"
] | null | null | null | backend/lib/keeb_web/views/error_helpers.ex | howardjing/keyboard | 6c52fd99860ff9b01190f5cc2f8451a2644dfb5f | [
"MIT"
] | null | null | null | backend/lib/keeb_web/views/error_helpers.ex | howardjing/keyboard | 6c52fd99860ff9b01190f5cc2f8451a2644dfb5f | [
"MIT"
] | null | null | null | defmodule KeebWeb.ErrorHelpers do
@moduledoc """
Conveniences for translating and building error messages.
"""
@doc """
Translates an error message using gettext.
"""
def translate_error({msg, opts}) do
# Because error messages were defined within Ecto, we must
# call the Gettext module passing o... | 32.966667 | 73 | 0.669363 |
381cebb842b07105562e4edfdf38a1cbf3642e3f | 1,117 | exs | Elixir | config/config.exs | e-fu/domainr | e959914fec4c87fcdedeb13f2745ea832fb836d5 | [
"MIT"
] | 2 | 2016-08-26T09:35:33.000Z | 2018-04-02T07:43:34.000Z | config/config.exs | e-fu/domainr | e959914fec4c87fcdedeb13f2745ea832fb836d5 | [
"MIT"
] | 13 | 2020-06-11T06:51:43.000Z | 2021-08-03T05:38:24.000Z | config/config.exs | e-fu/domainr | e959914fec4c87fcdedeb13f2745ea832fb836d5 | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on this project, this
# file won't be loaded nor affect the paren... | 36.032258 | 73 | 0.751119 |
381d00d446c6130a6a1778c42c3c5e87ef4506cb | 1,622 | ex | Elixir | lib/storex/socket/handler.ex | drozdzynski/stex | 2ed8164f5aed9c3d8ac18868a254e4a7d78cdb3f | [
"Apache-2.0"
] | 17 | 2019-05-04T16:04:14.000Z | 2019-05-25T13:20:32.000Z | lib/storex/socket/handler.ex | nerdslabs/storex | 2ed8164f5aed9c3d8ac18868a254e4a7d78cdb3f | [
"Apache-2.0"
] | null | null | null | lib/storex/socket/handler.ex | nerdslabs/storex | 2ed8164f5aed9c3d8ac18868a254e4a7d78cdb3f | [
"Apache-2.0"
] | null | null | null | defmodule Storex.Socket.Handler do
@moduledoc false
@behaviour :cowboy_websocket
alias Storex.Socket
def init(request, _state) do
session = Application.get_env(:storex, :session_id_library, Nanoid).generate()
Storex.Registry.register_session(session, request.pid)
{:cowboy_websocket, request, %{... | 22.527778 | 86 | 0.636252 |
381d4ef10e8620f20121297911026a3df000da72 | 3,276 | ex | Elixir | samples/client/petstore/elixir/lib/openapi_petstore/api/store.ex | netfarma/openapi-generator | 8ac80203ec557a7198e48adc66e9c1961c4cd6ce | [
"Apache-2.0"
] | 1 | 2021-05-06T18:52:46.000Z | 2021-05-06T18:52:46.000Z | samples/client/petstore/elixir/lib/openapi_petstore/api/store.ex | netfarma/openapi-generator | 8ac80203ec557a7198e48adc66e9c1961c4cd6ce | [
"Apache-2.0"
] | null | null | null | samples/client/petstore/elixir/lib/openapi_petstore/api/store.ex | netfarma/openapi-generator | 8ac80203ec557a7198e48adc66e9c1961c4cd6ce | [
"Apache-2.0"
] | 3 | 2018-10-18T17:55:30.000Z | 2020-05-14T16:57:01.000Z | # NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
# https://openapi-generator.tech
# Do not edit the class manually.
defmodule OpenapiPetstore.Api.Store do
@moduledoc """
API calls for all endpoints tagged `Store`.
"""
alias OpenapiPetstore.Connection
import Openapi... | 30.055046 | 143 | 0.659035 |
381d56ffc116b4f39ad7fadbc9d0592ed5a4f605 | 1,099 | exs | Elixir | config/config.exs | Perfect-SoftwareEngineer/vue-elegant-chat | 4656bea123a6454584a163260899f0b4e59e073a | [
"MIT",
"BSD-3-Clause"
] | null | null | null | config/config.exs | Perfect-SoftwareEngineer/vue-elegant-chat | 4656bea123a6454584a163260899f0b4e59e073a | [
"MIT",
"BSD-3-Clause"
] | null | null | null | config/config.exs | Perfect-SoftwareEngineer/vue-elegant-chat | 4656bea123a6454584a163260899f0b4e59e073a | [
"MIT",
"BSD-3-Clause"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
#
# This configuration file is loaded before any dependency and
# is restricted to this project.
# General application configuration
use Mix.Config
config :whatChat,
ecto_repos: [WhatChat.Repo]
... | 35.451613 | 125 | 0.768881 |
381d60b5da361eb80ab2ed2ead10236f7d955fb9 | 603 | exs | Elixir | apps/neoscan/priv/repo/migrations/20180607000010_assets.exs | decentralisedkev/neo-scan | c8a35a0952e8c46d40365e0ac76bce361ac5e558 | [
"MIT"
] | null | null | null | apps/neoscan/priv/repo/migrations/20180607000010_assets.exs | decentralisedkev/neo-scan | c8a35a0952e8c46d40365e0ac76bce361ac5e558 | [
"MIT"
] | null | null | null | apps/neoscan/priv/repo/migrations/20180607000010_assets.exs | decentralisedkev/neo-scan | c8a35a0952e8c46d40365e0ac76bce361ac5e558 | [
"MIT"
] | null | null | null | defmodule Neoscan.Repo.Migrations.Assets do
use Ecto.Migration
def change do
create table(:assets, primary_key: false) do
add(:transaction_hash, :binary, primary_key: true)
add(:admin, :binary, null: false)
add(:amount, :decimal, null: false)
add(:name, {:array, :map}, null: false)
... | 28.714286 | 56 | 0.633499 |
381d7b55d6a71ee2c6efc4e6b8402634708519f5 | 558 | exs | Elixir | test/views/error_view_test.exs | joshnuss/phoenix-billing-demo | f72f4de6c975624b2b8b6c189126df32992b5936 | [
"MIT"
] | 62 | 2015-09-19T02:06:39.000Z | 2021-03-15T04:35:50.000Z | test/views/error_view_test.exs | joshnuss/phoenix-billing-demo | f72f4de6c975624b2b8b6c189126df32992b5936 | [
"MIT"
] | 4 | 2015-09-23T03:42:23.000Z | 2017-01-14T18:03:20.000Z | test/views/error_view_test.exs | joshnuss/phoenix-billing-demo | f72f4de6c975624b2b8b6c189126df32992b5936 | [
"MIT"
] | 8 | 2015-09-19T16:14:40.000Z | 2020-10-28T21:38:18.000Z | defmodule Store.ErrorViewTest do
use Store.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(Store.ErrorView, "404.html", []) ==
"Page not found"
end
test "render 500.html" do
as... | 25.363636 | 66 | 0.670251 |
381d84c7c3f9e149dd47724b4a4496ffe8d87137 | 1,618 | ex | Elixir | lib/zippex/meta.ex | Bluetab/Zippex | 03f2faea934c1b1b440ab9d564d7cda14a56756f | [
"MIT"
] | null | null | null | lib/zippex/meta.ex | Bluetab/Zippex | 03f2faea934c1b1b440ab9d564d7cda14a56756f | [
"MIT"
] | null | null | null | lib/zippex/meta.ex | Bluetab/Zippex | 03f2faea934c1b1b440ab9d564d7cda14a56756f | [
"MIT"
] | null | null | null | defmodule Zippex.Meta do
@moduledoc """
The metadata of a `Zippex` zipper. The `Meta` struct contains the following fields:
* `is_branch` - A function that receives a node and returns `true` if the node is a branch
* `children` - A function that receives a node and returns it's children
* `make_node` - A fu... | 33.020408 | 95 | 0.690977 |
381d94b4920ce7d69af01cf21b18f94ac19c322f | 2,163 | ex | Elixir | clients/deployment_manager/lib/google_api/deployment_manager/v2/model/resource_update_warnings.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/deployment_manager/lib/google_api/deployment_manager/v2/model/resource_update_warnings.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/deployment_manager/lib/google_api/deployment_manager/v2/model/resource_update_warnings.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "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 ... | 40.055556 | 194 | 0.72908 |
381da79e281d6d9956459aaf520c58d7bc4d46b4 | 3,035 | ex | Elixir | config/dispatcher/dispatcher.ex | lblod/app-leidinggevenden-databank | 85b7c908ca4061f7388f973ec4933bf5e6e25c63 | [
"MIT"
] | null | null | null | config/dispatcher/dispatcher.ex | lblod/app-leidinggevenden-databank | 85b7c908ca4061f7388f973ec4933bf5e6e25c63 | [
"MIT"
] | null | null | null | config/dispatcher/dispatcher.ex | lblod/app-leidinggevenden-databank | 85b7c908ca4061f7388f973ec4933bf5e6e25c63 | [
"MIT"
] | null | null | null | defmodule Dispatcher do
use Plug.Router
def start(_argv) do
port = 80
IO.puts "Starting Plug with Cowboy on port #{port}"
Plug.Adapters.Cowboy.http __MODULE__, [], port: port
:timer.sleep(:infinity)
end
plug Plug.Logger
plug :match
plug :dispatch
# In order to forward the 'themes' cache... | 31.28866 | 91 | 0.65799 |
381dbf91f1bb4fd588589a98cf1dad2373038314 | 1,273 | ex | Elixir | dio/exibee/lib/exibee/application.ex | exineris/shp_challenge2021 | 2a5447af681259d0ea699b670cf079bd31315cd8 | [
"Apache-2.0"
] | null | null | null | dio/exibee/lib/exibee/application.ex | exineris/shp_challenge2021 | 2a5447af681259d0ea699b670cf079bd31315cd8 | [
"Apache-2.0"
] | null | null | null | dio/exibee/lib/exibee/application.ex | exineris/shp_challenge2021 | 2a5447af681259d0ea699b670cf079bd31315cd8 | [
"Apache-2.0"
] | null | null | null | defmodule Exibee.Application do
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
use Application
def start(_type, _args) do
# See https://hexdocs.pm/elixir/Supervisor.html
# for other strategies and supported options
opts = [strategy: :... | 26.520833 | 78 | 0.65436 |
381dd38125d123816e8d7b724029fe0ac121fab3 | 10,868 | ex | Elixir | phoenix/lib/mehr_schulferien/locations/locations.ex | komlanvi/www.mehr-schulferien.de | fe74772f2cc8ce430e04adf6e66023971456ce57 | [
"MIT"
] | null | null | null | phoenix/lib/mehr_schulferien/locations/locations.ex | komlanvi/www.mehr-schulferien.de | fe74772f2cc8ce430e04adf6e66023971456ce57 | [
"MIT"
] | null | null | null | phoenix/lib/mehr_schulferien/locations/locations.ex | komlanvi/www.mehr-schulferien.de | fe74772f2cc8ce430e04adf6e66023971456ce57 | [
"MIT"
] | null | null | null | defmodule MehrSchulferien.Locations do
@moduledoc """
The Locations context.
"""
import Ecto.Query, warn: false
alias MehrSchulferien.Repo
alias MehrSchulferien.Locations.Country
@doc """
Returns the list of countries.
## Examples
iex> list_countries()
[%Country{}, ...]
"""
def l... | 19.44186 | 96 | 0.606275 |
381dee91d5fd0486bd45c5dac68d25c720a5adb4 | 3,519 | ex | Elixir | lib/schema/order.ex | mithereal/ex_ameritrade | 8fc9047ac74be1345483c514b9e8db52995786c3 | [
"Apache-2.0"
] | null | null | null | lib/schema/order.ex | mithereal/ex_ameritrade | 8fc9047ac74be1345483c514b9e8db52995786c3 | [
"Apache-2.0"
] | null | null | null | lib/schema/order.ex | mithereal/ex_ameritrade | 8fc9047ac74be1345483c514b9e8db52995786c3 | [
"Apache-2.0"
] | null | null | null | defmodule Ameritrade.Order do
@moduledoc false
@derive Jason.Encoder
defstruct session: nil,
duration: nil,
orderType: nil,
cancelTime: nil,
complexOrderStrategyType: nil,
quantity: 0,
filledQuantity: 0,
remainingQuantity: 0,
... | 29.082645 | 44 | 0.526854 |
381df80926b0760cc8ce8950bdc66141e0c547e4 | 81 | exs | Elixir | config/test.exs | tylerhunt/phoenix_inline_svg | cbef95a7996a6c202558892d1d17b5d5d1979b26 | [
"MIT"
] | 58 | 2016-07-19T13:45:57.000Z | 2022-03-04T15:45:35.000Z | config/test.exs | tylerhunt/phoenix_inline_svg | cbef95a7996a6c202558892d1d17b5d5d1979b26 | [
"MIT"
] | 44 | 2016-07-20T22:27:03.000Z | 2021-05-06T22:06:28.000Z | config/test.exs | tylerhunt/phoenix_inline_svg | cbef95a7996a6c202558892d1d17b5d5d1979b26 | [
"MIT"
] | 33 | 2017-01-27T20:15:25.000Z | 2022-03-02T16:32:07.000Z | use Mix.Config
config :phoenix_inline_svg, TestApp.Endpoint, http: [port: 4002]
| 20.25 | 64 | 0.777778 |
381e0c50ea989e28fa02d75bb22310af39dc72a0 | 1,530 | ex | Elixir | takso-hw5 2/web/controllers/user_controller.ex | alpdenizz/ElixirPlayground | 58b5a16c489058e0067e4811042d96fe6a5f8d59 | [
"MIT"
] | null | null | null | takso-hw5 2/web/controllers/user_controller.ex | alpdenizz/ElixirPlayground | 58b5a16c489058e0067e4811042d96fe6a5f8d59 | [
"MIT"
] | null | null | null | takso-hw5 2/web/controllers/user_controller.ex | alpdenizz/ElixirPlayground | 58b5a16c489058e0067e4811042d96fe6a5f8d59 | [
"MIT"
] | null | null | null | defmodule Takso.UserController do
use Takso.Web, :controller
alias Takso.User
def index(conn, _params) do
users = Repo.all(User)
render(conn, "index.html", users: users)
end
def new(conn, _params) do
changeset = User.changeset(%User{})
render conn, "new.html", changeset: chang... | 27.321429 | 63 | 0.586928 |
381e26a447e49c5d0ae7a8c1bb4ad605a01e0539 | 2,229 | ex | Elixir | clients/dataflow/lib/google_api/dataflow/v1b3/model/worker_health_report.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/dataflow/lib/google_api/dataflow/v1b3/model/worker_health_report.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/dataflow/lib/google_api/dataflow/v1b3/model/worker_health_report.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... | 41.277778 | 260 | 0.755944 |
381e3a031caadb10f7301beb3de60a38738ae84b | 281 | ex | Elixir | apps/gapi/lib/gapi/resolvers/user_resolver.ex | rolandolucio/gapi_umbrella | b1e690804d7d2a79d3ece7ca12edf65197ca7145 | [
"MIT"
] | null | null | null | apps/gapi/lib/gapi/resolvers/user_resolver.ex | rolandolucio/gapi_umbrella | b1e690804d7d2a79d3ece7ca12edf65197ca7145 | [
"MIT"
] | null | null | null | apps/gapi/lib/gapi/resolvers/user_resolver.ex | rolandolucio/gapi_umbrella | b1e690804d7d2a79d3ece7ca12edf65197ca7145 | [
"MIT"
] | null | null | null | defmodule Gapi.UserResolver do
alias Gapi.Accounts
def all(_args, _info) do
{:ok, Accounts.list_users()}
end
def find(%{id: id}, _info) do
case Accounts.get_user!(id) do
nil -> {:error, "User id #{id} not found"}
user -> {:ok, user}
end
end
end
| 18.733333 | 48 | 0.604982 |
381e425c155f492ea051b791c8c8bd95be321af9 | 1,458 | ex | Elixir | lib/sticky/request.ex | kawikadkekahuna/Stickylixer | b81a1953522d5b5873f8893d54ac01e87891af73 | [
"BSD-3-Clause"
] | null | null | null | lib/sticky/request.ex | kawikadkekahuna/Stickylixer | b81a1953522d5b5873f8893d54ac01e87891af73 | [
"BSD-3-Clause"
] | null | null | null | lib/sticky/request.ex | kawikadkekahuna/Stickylixer | b81a1953522d5b5873f8893d54ac01e87891af73 | [
"BSD-3-Clause"
] | null | null | null | defmodule Sticky.Request do
alias Sticky.{API, Request}
defstruct opts: [],
endpoint: nil,
method: nil,
params: nil,
version: "v1",
client: nil,
validator: nil
def new(opts \\ []) do
%Request{opts: opts, client: build_client()}
end
... | 22.090909 | 78 | 0.615912 |
381e4a589cccfaf19217edbf0c430c02be6e53cf | 1,290 | exs | Elixir | test/auto_api/capabilities/weather_conditions_capability_test.exs | nonninz/auto-api-elixir | 53e11542043285e94bbb5a0a3b8ffff0b1b47167 | [
"MIT"
] | 4 | 2018-01-19T16:11:10.000Z | 2019-12-13T16:35:10.000Z | test/auto_api/capabilities/weather_conditions_capability_test.exs | nonninz/auto-api-elixir | 53e11542043285e94bbb5a0a3b8ffff0b1b47167 | [
"MIT"
] | 5 | 2018-11-29T09:48:29.000Z | 2019-11-06T12:11:35.000Z | test/auto_api/capabilities/weather_conditions_capability_test.exs | nonninz/auto-api-elixir | 53e11542043285e94bbb5a0a3b8ffff0b1b47167 | [
"MIT"
] | 1 | 2021-02-17T18:36:13.000Z | 2021-02-17T18:36:13.000Z | # AutoAPI
# The MIT License
#
# Copyright (c) 2018- High-Mobility GmbH (https://high-mobility.com)
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without lim... | 47.777778 | 79 | 0.783721 |
381e595bb9c7a5159091e7fed546f5797a7189bf | 2,030 | ex | Elixir | exercism/city-office/form.ex | defndaines/elixir_bits | 78a9c2dc0c9946df715a662ef62cd437fdd9e3d1 | [
"Apache-2.0"
] | null | null | null | exercism/city-office/form.ex | defndaines/elixir_bits | 78a9c2dc0c9946df715a662ef62cd437fdd9e3d1 | [
"Apache-2.0"
] | null | null | null | exercism/city-office/form.ex | defndaines/elixir_bits | 78a9c2dc0c9946df715a662ef62cd437fdd9e3d1 | [
"Apache-2.0"
] | null | null | null | defmodule Form do
@moduledoc """
A collection of loosely related functions helpful for filling out various forms at the city office.
"""
@doc """
Generates a string of a given length.
This string can be used to fill out a form field that is supposed to have no value.
Such fields cannot be left empty bec... | 30.757576 | 103 | 0.678325 |
381e7868f1e9cd2993c21a10b080ec9c79201c96 | 349 | exs | Elixir | config/test.exs | Mdlkxzmcp/mango | 0009f3ce5d45e392496cdfbd7fa5ad545b65bf04 | [
"MIT"
] | null | null | null | config/test.exs | Mdlkxzmcp/mango | 0009f3ce5d45e392496cdfbd7fa5ad545b65bf04 | [
"MIT"
] | null | null | null | config/test.exs | Mdlkxzmcp/mango | 0009f3ce5d45e392496cdfbd7fa5ad545b65bf04 | [
"MIT"
] | null | null | null | use Mix.Config
config :mango, MangoWeb.Endpoint,
http: [port: 4001],
server: true
config :hound, driver: "phantomjs"
config :logger, level: :warn
config :mango, Mango.Repo,
adapter: Ecto.Adapters.Postgres,
username: "postgres",
password: "postgres",
database: "mango_test",
hostname: "localhost",
poo... | 19.388889 | 34 | 0.710602 |
381e830249381efa120a540847cbac978ba58f97 | 1,708 | ex | Elixir | apps/omg_watcher/lib/eventer.ex | hoardexchange/elixir-omg | 423528699d467f1cc0d02c596290ab907af38c2c | [
"Apache-2.0"
] | null | null | null | apps/omg_watcher/lib/eventer.ex | hoardexchange/elixir-omg | 423528699d467f1cc0d02c596290ab907af38c2c | [
"Apache-2.0"
] | null | null | null | apps/omg_watcher/lib/eventer.ex | hoardexchange/elixir-omg | 423528699d467f1cc0d02c596290ab907af38c2c | [
"Apache-2.0"
] | 2 | 2020-06-07T11:14:54.000Z | 2020-08-02T07:36:32.000Z | # Copyright 2018 OmiseGO Pte Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writi... | 28.949153 | 107 | 0.710187 |
381e9b04d6dea4975a1aad7c81107916d9b51a2e | 585 | exs | Elixir | config/test.exs | juvet/juvet | 5590ff7b1e5f411195d0becfe8b5740deb977cc5 | [
"MIT"
] | 19 | 2018-07-14T16:54:11.000Z | 2022-03-01T09:02:19.000Z | config/test.exs | juvet/juvet | 5590ff7b1e5f411195d0becfe8b5740deb977cc5 | [
"MIT"
] | 31 | 2018-06-29T15:30:40.000Z | 2022-02-26T01:07:12.000Z | config/test.exs | juvet/juvet | 5590ff7b1e5f411195d0becfe8b5740deb977cc5 | [
"MIT"
] | null | null | null | use Mix.Config
config :exvcr,
vcr_cassette_library_dir: "test/fixtures/vcr_cassettes",
custom_cassette_library_dir: "test/fixtures/custom_cassettes",
filter_sensitive_data: [
[pattern: "<PASSWORD>.+</PASSWORD>", placeholder: "PASSWORD_PLACEHOLDER"],
[pattern: "token=([^&#]*)", placeholder: "token=***"],
... | 29.25 | 78 | 0.652991 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.