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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9eb9dc021f34ac7d03213267b9ebcaef2500ad6a | 1,577 | ex | Elixir | lib/grizzly/zwave/commands/association_set.ex | jellybob/grizzly | 290bee04cb16acbb9dc996925f5c501697b7ac94 | [
"Apache-2.0"
] | 76 | 2019-09-04T16:56:58.000Z | 2022-03-29T06:54:36.000Z | lib/grizzly/zwave/commands/association_set.ex | jellybob/grizzly | 290bee04cb16acbb9dc996925f5c501697b7ac94 | [
"Apache-2.0"
] | 124 | 2019-09-05T14:01:24.000Z | 2022-02-28T22:58:14.000Z | lib/grizzly/zwave/commands/association_set.ex | jellybob/grizzly | 290bee04cb16acbb9dc996925f5c501697b7ac94 | [
"Apache-2.0"
] | 10 | 2019-10-23T19:25:45.000Z | 2021-11-17T13:21:20.000Z | defmodule Grizzly.ZWave.Commands.AssociationSet do
@moduledoc """
Module for the `ASSOCIATION_SET` command
The node receiving this command should add the specified node ids to the
association group. However, if the association group for the node is full
this command is ignored.
Params:
- `:grouping_i... | 29.754717 | 95 | 0.7026 |
9eb9fa856b99ab72c215b0f06624b6cf437cbab8 | 2,605 | ex | Elixir | clients/calendar/lib/google_api/calendar/v3/model/free_busy_request.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/calendar/lib/google_api/calendar/v3/model/free_busy_request.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/calendar/lib/google_api/calendar/v3/model/free_busy_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... | 41.349206 | 229 | 0.728983 |
9eba61e0c7b499169bf21cc927d985634dff1949 | 186 | ex | Elixir | lib/kucoin/v1/sub_user.ex | insprac/elixir_kucoin | 1bfea2f014f4151e99998189b171ece7d896ea5e | [
"MIT"
] | null | null | null | lib/kucoin/v1/sub_user.ex | insprac/elixir_kucoin | 1bfea2f014f4151e99998189b171ece7d896ea5e | [
"MIT"
] | null | null | null | lib/kucoin/v1/sub_user.ex | insprac/elixir_kucoin | 1bfea2f014f4151e99998189b171ece7d896ea5e | [
"MIT"
] | null | null | null | defmodule KuCoin.V1.SubUser do
use Kina.Schema
schema do
field :user_id, :string, key: :userId
field :sub_name, :string, key: :subName
field :remarks, :string
end
end
| 18.6 | 43 | 0.682796 |
9eba6a27bf299ede4879e8838d82b239f32d8b81 | 9,504 | ex | Elixir | lib/aws/generated/resource_groups.ex | smanolloff/aws-elixir | c7cb6577802f5010be7e7b6ccb2c0f3c8c73ea84 | [
"Apache-2.0"
] | null | null | null | lib/aws/generated/resource_groups.ex | smanolloff/aws-elixir | c7cb6577802f5010be7e7b6ccb2c0f3c8c73ea84 | [
"Apache-2.0"
] | null | null | null | lib/aws/generated/resource_groups.ex | smanolloff/aws-elixir | c7cb6577802f5010be7e7b6ccb2c0f3c8c73ea84 | [
"Apache-2.0"
] | null | null | null | # WARNING: DO NOT EDIT, AUTO-GENERATED CODE!
# See https://github.com/aws-beam/aws-codegen for more details.
defmodule AWS.ResourceGroups do
@moduledoc """
AWS Resource Groups
AWS Resource Groups lets you organize AWS resources such as Amazon EC2
instances, Amazon Relational Database Service databases, and Am... | 32.772414 | 191 | 0.679293 |
9eba77f2d63070c143df4f8f6878471c7e7b0ac7 | 409 | exs | Elixir | test/diff_web/views/error_view_test.exs | hexpm/diff | 1a453d3578116af8ede4b7f37d3cc2e3e01dc731 | [
"Apache-2.0"
] | 59 | 2020-01-20T20:32:31.000Z | 2022-02-11T07:25:45.000Z | test/diff_web/views/error_view_test.exs | hexpm/diff | 1a453d3578116af8ede4b7f37d3cc2e3e01dc731 | [
"Apache-2.0"
] | 33 | 2020-01-20T19:38:09.000Z | 2021-11-19T10:08:25.000Z | test/diff_web/views/error_view_test.exs | hexpm/diff | 1a453d3578116af8ede4b7f37d3cc2e3e01dc731 | [
"Apache-2.0"
] | 12 | 2020-01-20T21:11:14.000Z | 2021-05-10T19:56:47.000Z | defmodule DiffWeb.ErrorViewTest do
use DiffWeb.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(DiffWeb.ErrorView, "404.html", []) =~ "Page not found"
end
test "renders 500.html" do
assert... | 27.266667 | 88 | 0.726161 |
9ebaaf2adbb9432ac140849a7fb005449e884f75 | 2,261 | ex | Elixir | backend/lib/spades_game/game_player.ex | mreishus/spades | 3e06fa5c2415ff43258ec4c231f8d6c49c683fe0 | [
"MIT"
] | 9 | 2019-10-28T08:48:50.000Z | 2021-03-05T09:44:46.000Z | backend/lib/spades_game/game_player.ex | mreishus/spades | 3e06fa5c2415ff43258ec4c231f8d6c49c683fe0 | [
"MIT"
] | 227 | 2019-10-28T08:52:58.000Z | 2022-02-27T04:31:42.000Z | backend/lib/spades_game/game_player.ex | mreishus/spades | 3e06fa5c2415ff43258ec4c231f8d6c49c683fe0 | [
"MIT"
] | 4 | 2020-04-18T19:38:37.000Z | 2021-08-02T19:43:03.000Z | defmodule SpadesGame.GamePlayer do
@moduledoc """
Represents a player inside a game of spades.
They will have a hand of cards, a bid etc.
"""
alias SpadesGame.{Deck, Card, GamePlayer}
@derive Jason.Encoder
defstruct [:hand, :tricks_won, :bid]
use Accessible
@type t :: %GamePlayer{
hand: D... | 25.404494 | 74 | 0.606811 |
9ebac55a8f0b7cdd5a27549a5e07fcbd63518493 | 752 | ex | Elixir | lib/protein/utils.ex | katafrakt/protein-elixir | f5ea6e079904ea0defa40e99a0e5becaa02a5735 | [
"MIT"
] | 9 | 2018-01-16T12:25:58.000Z | 2021-11-24T13:19:35.000Z | lib/protein/utils.ex | katafrakt/protein-elixir | f5ea6e079904ea0defa40e99a0e5becaa02a5735 | [
"MIT"
] | 3 | 2018-09-07T16:09:57.000Z | 2019-02-19T10:37:13.000Z | lib/protein/utils.ex | katafrakt/protein-elixir | f5ea6e079904ea0defa40e99a0e5becaa02a5735 | [
"MIT"
] | 3 | 2018-05-27T08:56:52.000Z | 2021-11-24T13:19:37.000Z | defmodule Protein.Utils do
@moduledoc false
alias Confix
alias Protein.{AMQPAdapter, HTTPAdapter}
def get_config(opts, key, default \\ nil) do
opts
|> Keyword.get(key, default)
|> Confix.parse()
end
def get_config!(opts, key) do
opts
|> Keyword.fetch!(key)
|> Confix.parse()
end
... | 21.485714 | 71 | 0.700798 |
9ebacebcf75d8526b025b1bb433a0f3a78c38f7c | 3,953 | exs | Elixir | test/changelog/notifier_test.exs | boneskull/changelog.com | 2fa2e356bb0e8fcf038c46a4a947fef98822e37d | [
"MIT"
] | null | null | null | test/changelog/notifier_test.exs | boneskull/changelog.com | 2fa2e356bb0e8fcf038c46a4a947fef98822e37d | [
"MIT"
] | null | null | null | test/changelog/notifier_test.exs | boneskull/changelog.com | 2fa2e356bb0e8fcf038c46a4a947fef98822e37d | [
"MIT"
] | null | null | null | defmodule Changelog.NotifierTest do
use Changelog.DataCase
use Bamboo.Test
import Mock
alias Changelog.{Notifier, Slack}
alias ChangelogWeb.Email
describe "notify with episode item" do
setup_with_mocks([
{Slack.Client, [], [message: fn(_, _) -> true end]}
]) do
:ok
end
test "... | 36.266055 | 78 | 0.698204 |
9ebb1a0736cc7214fe76cba96e8f80c20992d25f | 1,644 | ex | Elixir | lib/ark_client/client.ex | supaiku0/elixir-client | 2d5549ce3a876a18750a36a14ff769427688c5bb | [
"MIT"
] | null | null | null | lib/ark_client/client.ex | supaiku0/elixir-client | 2d5549ce3a876a18750a36a14ff769427688c5bb | [
"MIT"
] | null | null | null | lib/ark_client/client.ex | supaiku0/elixir-client | 2d5549ce3a876a18750a36a14ff769427688c5bb | [
"MIT"
] | null | null | null | defmodule ArkEcosystem.Client do
@moduledoc """
Documentation for ArkEcosystem.Client.
This module generates a Tesla.Client for use in future requests. Feel free
to make your own Tesla Client struct and pass that around.
"""
@doc """
Create a new instance.
## Examples
iex> ArkEcosystem.Client.n... | 24.537313 | 84 | 0.562044 |
9ebb200f0f09fb01dc5d155b2bb1ade8295eb8ab | 3,615 | ex | Elixir | samples/client/petstore/elixir/lib/swagger_petstore/api/user.ex | wwadge/swagger-codegen | 777619d4d106b7b387f8ee8469f4ec43f3cdfdc7 | [
"Apache-2.0"
] | 13 | 2018-05-03T21:03:43.000Z | 2021-02-04T14:45:09.000Z | samples/client/petstore/elixir/lib/swagger_petstore/api/user.ex | wwadge/swagger-codegen | 777619d4d106b7b387f8ee8469f4ec43f3cdfdc7 | [
"Apache-2.0"
] | 5 | 2018-12-11T14:58:16.000Z | 2019-07-18T18:25:42.000Z | samples/client/petstore/elixir/lib/swagger_petstore/api/user.ex | wwadge/swagger-codegen | 777619d4d106b7b387f8ee8469f4ec43f3cdfdc7 | [
"Apache-2.0"
] | 11 | 2017-07-07T18:07:15.000Z | 2021-11-10T02:12:04.000Z | defmodule SwaggerPetstore.Api.User do
@moduledoc """
Documentation for SwaggerPetstore.Api.User.
"""
use Tesla
plug Tesla.Middleware.BaseUrl, "http://petstore.swagger.io:80/v2"
plug Tesla.Middleware.JSON
@doc """
Create user
This can only be done by the logged in user.
"""
def create_user(body... | 23.627451 | 78 | 0.609959 |
9ebb5cd969e45a0cd07982f8fbd63392ccd4f48a | 2,985 | ex | Elixir | clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p5beta1_product_search_results.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p5beta1_product_search_results.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p5beta1_product_search_results.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 ... | 37.78481 | 231 | 0.735008 |
9ebb6825a3a9c43f8362c6dfa38abe496e579843 | 1,766 | ex | Elixir | clients/double_click_bid_manager/lib/google_api/double_click_bid_manager/v1/model/upload_status.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | null | null | null | clients/double_click_bid_manager/lib/google_api/double_click_bid_manager/v1/model/upload_status.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | null | null | null | clients/double_click_bid_manager/lib/google_api/double_click_bid_manager/v1/model/upload_status.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 34.627451 | 88 | 0.742922 |
9ebb7e2c225f0f07833289965c3ab47b24d354d3 | 3,506 | ex | Elixir | clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_developer_app_key.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_developer_app_key.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_developer_app_key.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... | 49.380282 | 347 | 0.701369 |
9ebb806c7fe823f0e504a6e6f06f8a6711aae33c | 65 | exs | Elixir | phoenix/pfu/test/test_helper.exs | cenezaraujo/unifor_prog_funcional | 08b5d75c535b10b7dca8ac26efc1dba14fe2a4f1 | [
"Apache-2.0"
] | null | null | null | phoenix/pfu/test/test_helper.exs | cenezaraujo/unifor_prog_funcional | 08b5d75c535b10b7dca8ac26efc1dba14fe2a4f1 | [
"Apache-2.0"
] | null | null | null | phoenix/pfu/test/test_helper.exs | cenezaraujo/unifor_prog_funcional | 08b5d75c535b10b7dca8ac26efc1dba14fe2a4f1 | [
"Apache-2.0"
] | null | null | null | ExUnit.start()
Ecto.Adapters.SQL.Sandbox.mode(Pfu.Repo, :manual)
| 21.666667 | 49 | 0.769231 |
9ebbcde879b4c938a52effb4c8cde522dbd99ae8 | 4,968 | exs | Elixir | test/jalka2021_web/controllers/user_settings_controller_test.exs | kriips/jalka2021 | f4d968e20cae116fd4056bff2f937cd036421977 | [
"MIT"
] | null | null | null | test/jalka2021_web/controllers/user_settings_controller_test.exs | kriips/jalka2021 | f4d968e20cae116fd4056bff2f937cd036421977 | [
"MIT"
] | null | null | null | test/jalka2021_web/controllers/user_settings_controller_test.exs | kriips/jalka2021 | f4d968e20cae116fd4056bff2f937cd036421977 | [
"MIT"
] | null | null | null | defmodule Jalka2021Web.UserSettingsControllerTest do
use Jalka2021Web.ConnCase, async: true
alias Jalka2021.Accounts
import Jalka2021.AccountsFixtures
setup :register_and_log_in_user
describe "GET /users/settings" do
test "renders settings page", %{conn: conn} do
conn = get(conn, Routes.user_sett... | 38.215385 | 96 | 0.651369 |
9ebbd7307a9a224f25440c07eec47246370a492c | 6,237 | ex | Elixir | test/support/adapter_case.ex | rzane/file_store | 6ff9e35043d46e655cb532032f4a77a9cd4a3d14 | [
"MIT"
] | 17 | 2019-10-11T05:50:28.000Z | 2022-01-25T23:28:02.000Z | test/support/adapter_case.ex | rzane/file_store | 6ff9e35043d46e655cb532032f4a77a9cd4a3d14 | [
"MIT"
] | 8 | 2019-10-25T04:19:42.000Z | 2022-01-27T02:32:47.000Z | test/support/adapter_case.ex | rzane/file_store | 6ff9e35043d46e655cb532032f4a77a9cd4a3d14 | [
"MIT"
] | 3 | 2019-10-25T02:30:22.000Z | 2022-01-24T21:24:08.000Z | defmodule FileStore.AdapterCase do
use ExUnit.CaseTemplate
@tmp Path.join(System.tmp_dir!(), "file_store")
setup do
File.rm_rf!(@tmp)
File.mkdir!(@tmp)
{:ok, tmp: @tmp}
end
using do
quote location: :keep do
import FileStore.AdapterCase
describe "write/3" do
test "writes... | 31.5 | 81 | 0.55764 |
9ebbec56348219a7773312ebb19ebbe8c78b9c1b | 426 | ex | Elixir | api/web/views/error_helpers.ex | AlexYanai/microblogger | 833320759cddd276bc31dabaec6f0c9e2eabb05a | [
"MIT"
] | null | null | null | api/web/views/error_helpers.ex | AlexYanai/microblogger | 833320759cddd276bc31dabaec6f0c9e2eabb05a | [
"MIT"
] | null | null | null | api/web/views/error_helpers.ex | AlexYanai/microblogger | 833320759cddd276bc31dabaec6f0c9e2eabb05a | [
"MIT"
] | null | null | null | defmodule Microblogger.ErrorHelpers do
@moduledoc """
Conveniences for translating and building error messages.
"""
@doc """
Translates an error message using gettext.
"""
def translate_error({msg, opts}) do
if count = opts[:count] do
Gettext.dngettext(Microblogger.Gettext, "errors", msg, msg, ... | 25.058824 | 78 | 0.690141 |
9ebc14f3ec227b873f59a6bde9d24ab2ca6fb105 | 4,268 | ex | Elixir | apps/fw/lib/cat_feeder/proximity_worker.ex | wsmoak/cat_feeder | e9157563ff3294fd9fd4c9d13f956cbe1dd718c2 | [
"MIT"
] | 20 | 2016-01-16T17:08:00.000Z | 2021-01-15T15:46:23.000Z | apps/fw/lib/cat_feeder/proximity_worker.ex | wsmoak/cat_feeder | e9157563ff3294fd9fd4c9d13f956cbe1dd718c2 | [
"MIT"
] | null | null | null | apps/fw/lib/cat_feeder/proximity_worker.ex | wsmoak/cat_feeder | e9157563ff3294fd9fd4c9d13f956cbe1dd718c2 | [
"MIT"
] | 5 | 2016-01-09T16:52:44.000Z | 2017-02-09T16:03:25.000Z | defmodule CatFeeder.ProximityWorker do
require Logger
use GenServer
use Timex
@active_hours 10..18 # 10am to 6:59pm
@timezone "America/New_York"
@wait 900000 # 15 min * 60 sec * 1000 ms
# register address
@cmd 0x80
@prox_result_h 0x87
@prox_result_l 0x88
@int_ctrl ... | 30.927536 | 142 | 0.660731 |
9ebc1cfbaac87787990f54e62d1629a3d9853ff0 | 2,132 | exs | Elixir | apps/tracing_2/test/kv_registry_test.exs | WhiteRookPL/elixir-fire-brigade-workshop | 1c6183339fc623842a09f4d10be75bcecf2c37e7 | [
"MIT"
] | 14 | 2017-08-09T14:21:47.000Z | 2022-03-11T04:10:49.000Z | apps/tracing_2/test/kv_registry_test.exs | nicholasjhenry/elixir-fire-brigade-workshop | 1c6183339fc623842a09f4d10be75bcecf2c37e7 | [
"MIT"
] | null | null | null | apps/tracing_2/test/kv_registry_test.exs | nicholasjhenry/elixir-fire-brigade-workshop | 1c6183339fc623842a09f4d10be75bcecf2c37e7 | [
"MIT"
] | 15 | 2017-09-05T15:43:53.000Z | 2020-04-13T16:20:18.000Z | defmodule KV.RegistryTest do
use ExUnit.Case, async: true
setup context do
{:ok, _} = KV.Registry.start_link(context.test)
{:ok, registry: context.test}
end
test "spawns buckets", %{registry: registry} do
assert KV.Registry.lookup(registry, "shopping") == :error
KV.Registry.create(registry, "... | 32.8 | 76 | 0.684334 |
9ebc27a59e93ed48b41e47978fbaa30fc4e6d225 | 4,083 | ex | Elixir | platform/target/configurator/validator.ex | bahanni/custom_rpi4 | ddefa85d30bacaae40151a63a9a0ebbf4ad30ed5 | [
"MIT"
] | 843 | 2016-10-05T23:46:05.000Z | 2022-03-14T04:31:55.000Z | platform/target/configurator/validator.ex | bahanni/custom_rpi4 | ddefa85d30bacaae40151a63a9a0ebbf4ad30ed5 | [
"MIT"
] | 455 | 2016-10-15T08:49:16.000Z | 2022-03-15T12:23:04.000Z | platform/target/configurator/validator.ex | bahanni/custom_rpi4 | ddefa85d30bacaae40151a63a9a0ebbf4ad30ed5 | [
"MIT"
] | 261 | 2016-10-10T04:37:06.000Z | 2022-03-13T21:07:38.000Z | defmodule FarmbotOS.Platform.Target.Configurator.Validator do
@moduledoc """
VintageNet.Technology that handles turning Farmbot's internal
network representation into either a VintageNetEthernet
or VintageNetWiFi RawConfig.
"""
@behaviour VintageNet.Technology
@impl VintageNet.Technology
def normalize... | 21.603175 | 68 | 0.571639 |
9ebc6086450ad37c891b93bf75a58d8d0bf0f55e | 1,356 | ex | Elixir | test/support/data_case.ex | lukkor/exlog | f2812d25e7712c41db5a9bf5bf3977255916c8e1 | [
"MIT"
] | null | null | null | test/support/data_case.ex | lukkor/exlog | f2812d25e7712c41db5a9bf5bf3977255916c8e1 | [
"MIT"
] | null | null | null | test/support/data_case.ex | lukkor/exlog | f2812d25e7712c41db5a9bf5bf3977255916c8e1 | [
"MIT"
] | null | null | null | defmodule Exlog.DataCase do
@moduledoc """
This module defines the setup for tests requiring
access to the application's data layer.
You may define functions here to be used as helpers in
your tests.
Finally, if the test case interacts with the database,
it cannot be async. For this reason, every test r... | 25.111111 | 74 | 0.677729 |
9ebc7985f85fb4a1c72b59ecf722a7a069b1310f | 3,968 | ex | Elixir | lib/livebook_web/live/session_live/persistence_component.ex | danhuynhdev/livebook | d20d4f6bf123d58e4666c064027b55e3b300702f | [
"Apache-2.0"
] | null | null | null | lib/livebook_web/live/session_live/persistence_component.ex | danhuynhdev/livebook | d20d4f6bf123d58e4666c064027b55e3b300702f | [
"Apache-2.0"
] | null | null | null | lib/livebook_web/live/session_live/persistence_component.ex | danhuynhdev/livebook | d20d4f6bf123d58e4666c064027b55e3b300702f | [
"Apache-2.0"
] | null | null | null | defmodule LivebookWeb.SessionLive.PersistenceComponent do
use LivebookWeb, :live_component
alias Livebook.{Session, SessionSupervisor, LiveMarkdown}
@impl true
def mount(socket) do
session_summaries = SessionSupervisor.get_session_summaries()
running_paths = Enum.map(session_summaries, & &1.path)
... | 28.963504 | 107 | 0.586946 |
9ebc7ba01fabc568ee3f0730e88600bb1e22bef9 | 82 | ex | Elixir | lib/ecto_tenancy_enforcer/tenancy_violation.ex | sb8244/ecto_tenancy_enforcer | 7dac523d0560ec4a57bcf3800b788d312d70d6e6 | [
"MIT"
] | 36 | 2019-12-30T23:02:59.000Z | 2022-03-26T14:38:41.000Z | lib/ecto_tenancy_enforcer/tenancy_violation.ex | sb8244/ecto_tenancy_enforcer | 7dac523d0560ec4a57bcf3800b788d312d70d6e6 | [
"MIT"
] | 1 | 2021-01-13T05:01:04.000Z | 2021-01-13T05:01:04.000Z | lib/ecto_tenancy_enforcer/tenancy_violation.ex | sb8244/ecto_tenancy_enforcer | 7dac523d0560ec4a57bcf3800b788d312d70d6e6 | [
"MIT"
] | 1 | 2021-04-25T16:50:16.000Z | 2021-04-25T16:50:16.000Z | defmodule EctoTenancyEnforcer.TenancyViolation do
defexception message: nil
end
| 20.5 | 49 | 0.865854 |
9ebc92ff92a23e0ab41b6bc2fdabcb009477a94e | 583 | exs | Elixir | exercises/practice/all-your-base/mix.exs | devtayls/elixir | 67824de8209ff1b6ed2f736deedfb5bd815130ca | [
"MIT"
] | 343 | 2017-06-22T16:28:28.000Z | 2022-03-25T21:33:32.000Z | exercises/practice/all-your-base/mix.exs | devtayls/elixir | 67824de8209ff1b6ed2f736deedfb5bd815130ca | [
"MIT"
] | 583 | 2017-06-19T10:48:40.000Z | 2022-03-28T21:43:12.000Z | exercises/practice/all-your-base/mix.exs | devtayls/elixir | 67824de8209ff1b6ed2f736deedfb5bd815130ca | [
"MIT"
] | 228 | 2017-07-05T07:09:32.000Z | 2022-03-27T08:59:08.000Z | defmodule AllYourBase.MixProject do
use Mix.Project
def project do
[
app: :all_your_base,
version: "0.1.0",
# elixir: "~> 1.8",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
... | 20.103448 | 87 | 0.581475 |
9ebc9cba89aaf2785c3e8a10c564ddb91b4affd9 | 2,389 | exs | Elixir | lib/logger/test/logger/error_handler_test.exs | chulkilee/elixir | 699231dcad52916a76f38856cbd7cf7c7bdadc51 | [
"Apache-2.0"
] | 1 | 2021-04-28T21:35:01.000Z | 2021-04-28T21:35:01.000Z | lib/logger/test/logger/error_handler_test.exs | chulkilee/elixir | 699231dcad52916a76f38856cbd7cf7c7bdadc51 | [
"Apache-2.0"
] | null | null | null | lib/logger/test/logger/error_handler_test.exs | chulkilee/elixir | 699231dcad52916a76f38856cbd7cf7c7bdadc51 | [
"Apache-2.0"
] | 8 | 2018-02-20T18:30:53.000Z | 2019-06-18T14:23:31.000Z | defmodule Logger.ErrorHandlerTest do
use Logger.Case
test "survives after crashes" do
expected_result =
"[error] :gen_event handler Logger.ErrorHandler installed at :error_logger\n" <>
"** (exit) an exception was raised:"
assert capture_log(fn ->
:error_logger.info_msg("~p~n", [... | 34.623188 | 86 | 0.648807 |
9ebca3207eebc8e86be317c636758a1f89044f89 | 1,209 | ex | Elixir | lib/ecto/adapters/riak/validators.ex | TanYewWei/ecto | 916c6467d5f7368fa10ecd7cfcfd2d4a9924a282 | [
"Apache-2.0"
] | 1 | 2015-08-27T13:17:10.000Z | 2015-08-27T13:17:10.000Z | lib/ecto/adapters/riak/validators.ex | TanYewWei/ecto | 916c6467d5f7368fa10ecd7cfcfd2d4a9924a282 | [
"Apache-2.0"
] | null | null | null | lib/ecto/adapters/riak/validators.ex | TanYewWei/ecto | 916c6467d5f7368fa10ecd7cfcfd2d4a9924a282 | [
"Apache-2.0"
] | null | null | null | defmodule Ecto.Adapters.Riak.Validators do
defmacro riak_validate(x) do
quote do
riak_validate(unquote(x), [])
end
end
defmacro riak_validate(x, fields) do
quote do
validate unquote(x),
[ { :primary_key, unquote(__MODULE__).validate_is_binary },
{ :riak_version, unquote... | 23.25 | 73 | 0.608768 |
9ebcab821572d11d9a79a573ca70d380a233f448 | 675 | exs | Elixir | mix.exs | timdeputter/Rendezvous | 52e82484c4f4e5249d52b35d1c713ef505b4f4c0 | [
"MIT"
] | 9 | 2015-09-30T09:34:09.000Z | 2022-01-28T08:27:53.000Z | mix.exs | timdeputter/Rendezvous | 52e82484c4f4e5249d52b35d1c713ef505b4f4c0 | [
"MIT"
] | 1 | 2015-04-20T17:38:50.000Z | 2015-04-20T17:38:50.000Z | mix.exs | timdeputter/Rendezvous | 52e82484c4f4e5249d52b35d1c713ef505b4f4c0 | [
"MIT"
] | 2 | 2015-10-07T03:19:11.000Z | 2018-01-04T15:49:27.000Z | defmodule Rendezvous.Mixfile do
use Mix.Project
def project do
[app: :rendezvous,
version: "0.0.1",
description: "Implementation of the Rendezvous or Highest Random Weight (HRW) hashing algorithm",
elixir: "~> 1.0",
package: package,
deps: deps,
test_coverage: [tool: ExCoveralls]
... | 25.961538 | 102 | 0.601481 |
9ebce393b68dcc1da18a5de90fdf88536b5ec837 | 460 | ex | Elixir | lib/spaceapi.ex | geistesk/spaceapi | 7506dfa9f8f95abef87c65b9dd61014a56fdc125 | [
"MIT"
] | null | null | null | lib/spaceapi.ex | geistesk/spaceapi | 7506dfa9f8f95abef87c65b9dd61014a56fdc125 | [
"MIT"
] | null | null | null | lib/spaceapi.ex | geistesk/spaceapi | 7506dfa9f8f95abef87c65b9dd61014a56fdc125 | [
"MIT"
] | null | null | null | defmodule SpaceApi do
alias SpaceApi.Space
import SpaceApi.JsonParser, only: [parse_json: 2]
@moduledoc """
This module provides access to the _from_string_-function.
"""
@doc """
A given string (should contain a valid Space API-JSON) will be converted
into a Space-structure.
"""
@spec from_string(... | 25.555556 | 74 | 0.693478 |
9ebce5b36870bf5dac40862e6795be52803babff | 3,598 | ex | Elixir | clients/you_tube/lib/google_api/you_tube/v3/model/activity_snippet.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/you_tube/lib/google_api/you_tube/v3/model/activity_snippet.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/you_tube/lib/google_api/you_tube/v3/model/activity_snippet.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 43.878049 | 169 | 0.699277 |
9ebd016927eb42d9df1b3c369b6d30f477ee369e | 2,485 | exs | Elixir | mix.exs | dstockdale/timex | 024f8392e9debf3b8d40d1977b6a24182079e546 | [
"MIT"
] | null | null | null | mix.exs | dstockdale/timex | 024f8392e9debf3b8d40d1977b6a24182079e546 | [
"MIT"
] | null | null | null | mix.exs | dstockdale/timex | 024f8392e9debf3b8d40d1977b6a24182079e546 | [
"MIT"
] | null | null | null | defmodule Timex.Mixfile do
use Mix.Project
@version "3.6.2"
def project do
[
app: :timex,
version: @version,
elixir: "~> 1.6",
description: description(),
package: package(),
deps: deps(),
docs: docs(),
compilers: [:gettext] ++ Mix.compilers(),
test_cove... | 26.157895 | 125 | 0.552515 |
9ebd19911d0478ee6672f0c31a9ed284db56a091 | 317 | ex | Elixir | server/lib/freedom_account_web/schema/user_types.ex | randycoulman/freedomAccount | c1c51a765052aa318ad3a504a396e8d07a770195 | [
"MIT"
] | 6 | 2019-04-03T19:16:01.000Z | 2020-08-10T09:38:24.000Z | server/lib/freedom_account_web/schema/user_types.ex | randycoulman/freedomAccount | c1c51a765052aa318ad3a504a396e8d07a770195 | [
"MIT"
] | 32 | 2019-03-19T02:45:45.000Z | 2021-12-05T06:58:07.000Z | server/lib/freedom_account_web/schema/user_types.ex | randycoulman/freedomAccount | c1c51a765052aa318ad3a504a396e8d07a770195 | [
"MIT"
] | null | null | null | defmodule FreedomAccountWeb.Schema.UserTypes do
@moduledoc """
GraphQL type definitions for users.
"""
use Absinthe.Schema.Notation
@desc "A user"
object :user do
@desc "The user's unique ID"
field :id, non_null(:id)
@desc "The name of the user"
field :name, non_null(:string)
end
end
| 19.8125 | 47 | 0.675079 |
9ebd21ab8e5bdb98e9884804860cf027607ed1bc | 718 | exs | Elixir | example/mix.exs | parody/chronik | ec2dbc5b415433d8732575db6ce24b02ebaf5da3 | [
"MIT"
] | 28 | 2017-09-12T13:54:17.000Z | 2021-07-20T22:04:28.000Z | example/mix.exs | parody/chronik | ec2dbc5b415433d8732575db6ce24b02ebaf5da3 | [
"MIT"
] | 18 | 2017-09-22T14:06:00.000Z | 2018-06-09T14:18:35.000Z | example/mix.exs | parody/chronik | ec2dbc5b415433d8732575db6ce24b02ebaf5da3 | [
"MIT"
] | 2 | 2018-05-11T09:36:50.000Z | 2019-09-23T18:29:58.000Z | defmodule Example.Mixfile do
use Mix.Project
def project do
[
app: :example,
version: "0.1.0",
elixir: "~> 1.5-rc",
start_permanent: Mix.env == :prod,
dialyzer: dialyzer(),
deps: deps()
]
end
def application do
[
extra_applications: [:logger],
mod: {... | 17.512195 | 45 | 0.497214 |
9ebd66e84ebaeda70420500e33ff7baabc420f56 | 372 | ex | Elixir | test/support/biblio/book.ex | jan-sti/gim | 1b8be6c2163577f375825170cc9b01674e59b646 | [
"ECL-2.0",
"Apache-2.0"
] | 4 | 2020-01-21T09:15:24.000Z | 2021-02-04T21:21:56.000Z | test/support/biblio/book.ex | jan-sti/gim | 1b8be6c2163577f375825170cc9b01674e59b646 | [
"ECL-2.0",
"Apache-2.0"
] | 2 | 2020-04-06T05:20:09.000Z | 2020-06-09T09:56:20.000Z | test/support/biblio/book.ex | jan-sti/gim | 1b8be6c2163577f375825170cc9b01674e59b646 | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2020-04-22T08:44:35.000Z | 2020-04-22T08:44:35.000Z | defmodule GimTest.Biblio.Book do
@moduledoc false
use Gim.Schema
alias GimTest.Biblio.Author
alias GimTest.Biblio.Publisher
schema do
property(:title, index: :unique)
property(:body)
has_edges(:similar_to, __MODULE__)
has_edge(:authored_by, Author, reflect: :author_of)
has_edges(:publish... | 23.25 | 63 | 0.736559 |
9ebd81033885bb7c8022e5746cf9477b52719ad2 | 934 | ex | Elixir | apps/blockchain_web/lib/blockchain_web/schema.ex | sandhose/elixir-blockchain | 4b5c91816ca0710524c352b57fcf2bb37c64c728 | [
"MIT"
] | null | null | null | apps/blockchain_web/lib/blockchain_web/schema.ex | sandhose/elixir-blockchain | 4b5c91816ca0710524c352b57fcf2bb37c64c728 | [
"MIT"
] | null | null | null | apps/blockchain_web/lib/blockchain_web/schema.ex | sandhose/elixir-blockchain | 4b5c91816ca0710524c352b57fcf2bb37c64c728 | [
"MIT"
] | null | null | null | defmodule BlockchainWeb.Schema do
use Absinthe.Schema
use Absinthe.Relay.Schema, :modern
import_types(BlockchainWeb.Schema.ContentTypes)
alias Blockchain.{Chain, Block, Transaction}
alias BlockchainWeb.Resolvers
node interface do
resolve_type(fn
%Block{}, _ -> :block
%Transaction{}, _ -> ... | 23.35 | 71 | 0.586724 |
9ebd97f083de6d9adfc864c2518bf2e01c539cd3 | 260 | ex | Elixir | lib/hl7/2.5/segments/dsp.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | lib/hl7/2.5/segments/dsp.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | lib/hl7/2.5/segments/dsp.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | defmodule HL7.V2_5.Segments.DSP do
@moduledoc false
require Logger
use HL7.Segment,
fields: [
segment: nil,
set_id_dsp: nil,
display_level: nil,
data_line: nil,
logical_break_point: nil,
result_id: nil
]
end
| 16.25 | 34 | 0.626923 |
9ebda9bdc4d673006f4568c06ef236173f890b41 | 93 | ex | Elixir | code/basics/comments.ex | kjwenger/a-is-like-b | 9675b0dfe3a56bc0961a679fa6fdc3ef48297396 | [
"MIT"
] | 1 | 2018-01-26T19:00:59.000Z | 2018-01-26T19:00:59.000Z | code/basics/comments.ex | kjwenger/a-is-like-b | 9675b0dfe3a56bc0961a679fa6fdc3ef48297396 | [
"MIT"
] | null | null | null | code/basics/comments.ex | kjwenger/a-is-like-b | 9675b0dfe3a56bc0961a679fa6fdc3ef48297396 | [
"MIT"
] | null | null | null | # single line
@moduledoc """
module documentation lines
"""
@doc """
documentation lines
"""
| 11.625 | 26 | 0.688172 |
9ebdee4fde2cf0f09bbfe61d37e047b01c85d79a | 4,005 | exs | Elixir | test/vapor/provider/dotenv_test.exs | autodidaddict/vapor | 319853bfce86c9b164adfc6c5ccf2455d4e1d771 | [
"MIT"
] | 533 | 2018-05-27T17:54:58.000Z | 2021-09-26T12:21:20.000Z | test/vapor/provider/dotenv_test.exs | autodidaddict/vapor | 319853bfce86c9b164adfc6c5ccf2455d4e1d771 | [
"MIT"
] | 68 | 2018-05-28T14:26:52.000Z | 2021-09-11T23:11:34.000Z | test/vapor/provider/dotenv_test.exs | autodidaddict/vapor | 319853bfce86c9b164adfc6c5ccf2455d4e1d771 | [
"MIT"
] | 37 | 2018-06-22T00:08:38.000Z | 2021-10-06T17:14:19.000Z | defmodule Vapor.Provider.DotenvTest do
use ExUnit.Case, async: false
alias Vapor.Provider.Dotenv
setup do
System.delete_env("FOO")
System.delete_env("BAR")
System.delete_env("BAZ")
File.rm(".env")
File.rm(".env.test")
File.rm(".env.dev")
on_exit fn ->
File.rm(".env")
Fi... | 23.284884 | 144 | 0.595006 |
9ebe62b50f49aac09e6b02b546f6dd432cc38b9c | 2,150 | ex | Elixir | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_content_item.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_content_item.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_content_item.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 40.566038 | 217 | 0.739535 |
9ebe72ad8cbf8dca9f14e90457a0903fe7ca593a | 15,293 | ex | Elixir | lib/phoenix/socket/transport.ex | mirego/phoenix | 5871888b77b9d34f9a4a33a3644b87f91c8b30ed | [
"MIT"
] | 1 | 2018-07-26T10:42:26.000Z | 2018-07-26T10:42:26.000Z | lib/phoenix/socket/transport.ex | mirego/phoenix | 5871888b77b9d34f9a4a33a3644b87f91c8b30ed | [
"MIT"
] | null | null | null | lib/phoenix/socket/transport.ex | mirego/phoenix | 5871888b77b9d34f9a4a33a3644b87f91c8b30ed | [
"MIT"
] | null | null | null | defmodule Phoenix.Socket.Transport do
@moduledoc """
Outlines the Socket <-> Transport communication.
This module specifies a behaviour that all sockets must implement.
`Phoenix.Socket` is just one possible implementation of a socket
that multiplexes events over multiple channels. Developers can
implement ... | 33.463895 | 120 | 0.671549 |
9ebe8b8392232fd361f625fc4308b20ae2f5959d | 117 | exs | Elixir | config/test.exs | qgadrian/locux | 77404174c5c66bd27fed0d07404f916c11060393 | [
"MIT"
] | null | null | null | config/test.exs | qgadrian/locux | 77404174c5c66bd27fed0d07404f916c11060393 | [
"MIT"
] | null | null | null | config/test.exs | qgadrian/locux | 77404174c5c66bd27fed0d07404f916c11060393 | [
"MIT"
] | null | null | null | use Mix.Config
config :logger, level: :debug
config :locust, num_of_workers: 1
config :locust, num_of_requests: 10
| 16.714286 | 35 | 0.769231 |
9ebedffd6b8dec174a1ef94c1edc7620feb0b7cb | 1,433 | exs | Elixir | test/absinthe/type/deprecation_test.exs | maartenvanvliet/absinthe | ebe820717200f53756e225b3dffbfefe924a94d3 | [
"MIT"
] | null | null | null | test/absinthe/type/deprecation_test.exs | maartenvanvliet/absinthe | ebe820717200f53756e225b3dffbfefe924a94d3 | [
"MIT"
] | 2 | 2020-07-21T05:23:37.000Z | 2020-08-26T04:56:12.000Z | test/absinthe/type/deprecation_test.exs | jlgeering/absinthe | a3dbc29640d613928398626ad75a8f03203a1720 | [
"MIT"
] | null | null | null | defmodule Absinthe.Type.DeprecationTest do
use Absinthe.Case, async: true
alias Absinthe.Type
defmodule TestSchema do
use Absinthe.Schema
query do
# Query type must exist
end
input_object :profile do
description "A profile"
field :name, :string
field :profile_picture,... | 26.054545 | 75 | 0.656664 |
9ebef61a5d135d6d4498a89a22143ce563dbe4c4 | 565 | ex | Elixir | lib/roger/partition_supervisor.ex | jnylen/roger | 074338eceae4783221088e8b235a635452708ef1 | [
"MIT"
] | null | null | null | lib/roger/partition_supervisor.ex | jnylen/roger | 074338eceae4783221088e8b235a635452708ef1 | [
"MIT"
] | null | null | null | lib/roger/partition_supervisor.ex | jnylen/roger | 074338eceae4783221088e8b235a635452708ef1 | [
"MIT"
] | null | null | null | defmodule Roger.PartitionSupervisor do
@moduledoc """
The supervisor for all partitions.
"""
use Supervisor
def start_link() do
Supervisor.start_link(__MODULE__, [], name: __MODULE__)
end
def init([]) do
children = [
supervisor(Roger.Partition.ContainingSupervisor, [], restart: :transient... | 20.178571 | 79 | 0.709735 |
9ebf28eb836dd108bc2e5514db17080e9d803bac | 1,710 | exs | Elixir | apps/ewallet/test/ewallet/exporters/csv_exporter_test.exs | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 322 | 2018-02-28T07:38:44.000Z | 2020-05-27T23:09:55.000Z | apps/ewallet/test/ewallet/exporters/csv_exporter_test.exs | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 643 | 2018-02-28T12:05:20.000Z | 2020-05-22T08:34:38.000Z | apps/ewallet/test/ewallet/exporters/csv_exporter_test.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 ... | 31.090909 | 97 | 0.681287 |
9ebf2d12f375f2dcd51aa1f68a75a647956d4bdc | 1,274 | exs | Elixir | mix.exs | polymetis/Elixir-HttpBuilder | aecaa8e1c66ee6153f88d18e51ccaad6e91d745c | [
"MIT"
] | null | null | null | mix.exs | polymetis/Elixir-HttpBuilder | aecaa8e1c66ee6153f88d18e51ccaad6e91d745c | [
"MIT"
] | null | null | null | mix.exs | polymetis/Elixir-HttpBuilder | aecaa8e1c66ee6153f88d18e51ccaad6e91d745c | [
"MIT"
] | null | null | null | defmodule HttpBuilder.Mixfile do
use Mix.Project
def project do
[
app: :http_builder,
name: "HttpBuilder",
source_url: "https://github.com/matthewoden/Elixir-HttpBuilder",
docs: docs(),
package: package(),
description: description(),
version: "0.3.0",
elixir: "~>... | 22.75 | 86 | 0.5573 |
9ebf53decd6629d13a7ce20cc900567dfd08542f | 62,844 | exs | Elixir | test/gradient/ast_specifier_test.exs | Fl4m3Ph03n1x/gradient | 60d7d3fe2ebdf68747325c1e852959f8b92fdcee | [
"Apache-2.0"
] | null | null | null | test/gradient/ast_specifier_test.exs | Fl4m3Ph03n1x/gradient | 60d7d3fe2ebdf68747325c1e852959f8b92fdcee | [
"Apache-2.0"
] | null | null | null | test/gradient/ast_specifier_test.exs | Fl4m3Ph03n1x/gradient | 60d7d3fe2ebdf68747325c1e852959f8b92fdcee | [
"Apache-2.0"
] | null | null | null | defmodule Gradient.AstSpecifierTest do
use ExUnit.Case
doctest Gradient.AstSpecifier
alias Gradient.AstSpecifier
import Gradient.TestHelpers
setup_all state do
{:ok, state}
end
describe "run_mappers/2" do
test "messy test on simple_app" do
{tokens, ast} = example_data()
new_ast = A... | 39.08209 | 99 | 0.331583 |
9ebf5ab10395ee8a8e2db358f733f2c9656a688d | 626 | exs | Elixir | test/dgraph_ex/core/alter_test.exs | sunny-g/dgraph_ex | fab9f1fd684538758ed211537c3b0869233e7ce4 | [
"MIT"
] | 1 | 2019-05-01T15:18:41.000Z | 2019-05-01T15:18:41.000Z | test/dgraph_ex/core/alter_test.exs | sunny-g/dgraph_ex | fab9f1fd684538758ed211537c3b0869233e7ce4 | [
"MIT"
] | null | null | null | test/dgraph_ex/core/alter_test.exs | sunny-g/dgraph_ex | fab9f1fd684538758ed211537c3b0869233e7ce4 | [
"MIT"
] | 1 | 2019-05-01T15:18:48.000Z | 2019-05-01T15:18:48.000Z | defmodule DgraphEx.Core.AlterTest do
use ExUnit.Case, async: true
doctest DgraphEx.Core.Alter
alias DgraphEx.Core.{Alter, Field}
test "render/1 renders an alter struct correctly" do
one = %Field{
index: true,
subject: "123",
predicate: "loves",
object: "cooking",
type: :strin... | 21.586207 | 98 | 0.57508 |
9ebf5bd37996e9d45cb6845671efe1e8dc049df9 | 1,935 | ex | Elixir | clients/games/lib/google_api/games/v1/model/player_level.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/games/lib/google_api/games/v1/model/player_level.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/games/lib/google_api/games/v1/model/player_level.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... | 34.553571 | 154 | 0.704393 |
9ebf6658627e080615d326bcf45fa9455144366b | 964 | ex | Elixir | Next_Level_Week_4/rocketpay/lib/rocketpay/users/create.ex | amaziero/next-level-weeek-1 | 2269252f6a7294a82a28aade4404770fb3c438e8 | [
"MIT"
] | null | null | null | Next_Level_Week_4/rocketpay/lib/rocketpay/users/create.ex | amaziero/next-level-weeek-1 | 2269252f6a7294a82a28aade4404770fb3c438e8 | [
"MIT"
] | 2 | 2020-07-19T20:12:50.000Z | 2021-02-23T00:47:46.000Z | Next_Level_Week_4/rocketpay/lib/rocketpay/users/create.ex | amaziero/next-level-weeek-1 | 2269252f6a7294a82a28aade4404770fb3c438e8 | [
"MIT"
] | null | null | null | defmodule Rocketpay.Users.Create do
alias Ecto.Multi
alias Rocketpay.{Account, Repo, User}
def call(params) do
Multi.new()
|> Multi.insert(:create_user, User.changeset(params))
|> Multi.run(:create_account, fn repo, %{create_user: user} -> insert_account(repo, user) end)
|> Multi.run(:pre... | 27.542857 | 99 | 0.637967 |
9ebf668e00a5780bec09ff7c3ce54ba60fe15ed5 | 532 | ex | Elixir | lib/planga_web/views/conversation_view.ex | ResiliaDev/Planga | b21d290dd7c2c7fa30571d0a5124d63bd09c0c9e | [
"MIT"
] | 37 | 2018-07-13T14:08:16.000Z | 2021-04-09T15:00:22.000Z | lib/planga_web/views/conversation_view.ex | ResiliaDev/Planga | b21d290dd7c2c7fa30571d0a5124d63bd09c0c9e | [
"MIT"
] | 9 | 2018-07-16T15:24:39.000Z | 2021-09-01T14:21:20.000Z | lib/planga_web/views/conversation_view.ex | ResiliaDev/Planga | b21d290dd7c2c7fa30571d0a5124d63bd09c0c9e | [
"MIT"
] | 3 | 2018-10-05T20:19:25.000Z | 2019-12-05T00:30:01.000Z | defmodule PlangaWeb.ConversationView do
use PlangaWeb, :view
alias PlangaWeb.ConversationView
def render("index.json", %{conversations: conversations}) do
%{data: render_many(conversations, ConversationView, "conversation.json")}
end
def render("show.json", %{conversation: conversation}) do
%{data: ... | 31.294118 | 78 | 0.74812 |
9ebf85140728419a2c9e37a3cd5d15b161277bf8 | 110 | ex | Elixir | lib/jeopardy/fsm/final_jeopardy/game_over.ex | ryoung786/jeopardy | 5558fc49013c5a22e556a0040cbc116aa8f63912 | [
"MIT"
] | null | null | null | lib/jeopardy/fsm/final_jeopardy/game_over.ex | ryoung786/jeopardy | 5558fc49013c5a22e556a0040cbc116aa8f63912 | [
"MIT"
] | 32 | 2020-06-08T14:50:46.000Z | 2021-01-01T05:40:44.000Z | lib/jeopardy/fsm/final_jeopardy/game_over.ex | ryoung786/jeopardy | 5558fc49013c5a22e556a0040cbc116aa8f63912 | [
"MIT"
] | null | null | null | defmodule Jeopardy.FSM.FinalJeopardy.GameOver do
use Jeopardy.FSM
def handle(_, _, state), do: state
end
| 18.333333 | 48 | 0.754545 |
9ebf8bf137fc0fa402fe7ec56573b76f12f97ce9 | 64,570 | exs | Elixir | lib/elixir/test/elixir/kernel/expansion_test.exs | andrewtimberlake/elixir | a1c4ffc897f9407fe7e739e20e697805fbbff810 | [
"Apache-2.0"
] | 1 | 2019-10-11T01:36:26.000Z | 2019-10-11T01:36:26.000Z | lib/elixir/test/elixir/kernel/expansion_test.exs | andrewtimberlake/elixir | a1c4ffc897f9407fe7e739e20e697805fbbff810 | [
"Apache-2.0"
] | 1 | 2015-06-09T15:52:43.000Z | 2015-06-09T15:52:43.000Z | lib/elixir/test/elixir/kernel/expansion_test.exs | andrewtimberlake/elixir | a1c4ffc897f9407fe7e739e20e697805fbbff810 | [
"Apache-2.0"
] | null | null | null | Code.require_file("../test_helper.exs", __DIR__)
defmodule Kernel.ExpansionTarget do
defmacro seventeen, do: 17
defmacro bar, do: "bar"
end
defmodule Kernel.ExpansionTest do
use ExUnit.Case, async: false
describe "__block__" do
test "expands to nil when empty" do
assert expand(quote(do: unquote(:__... | 25.963008 | 164 | 0.52495 |
9ebfcc37db9adaa1cebab9f1349461f205f4c882 | 2,303 | ex | Elixir | lib/blog_web/controllers/ycy_controllers/ycy_real_estate_controller.ex | albertschr/blog_supported_blockchain | ee9578c8ebddd3e72ff5eaabefc2d724c3e2a9a1 | [
"MIT"
] | 1 | 2019-02-06T12:29:35.000Z | 2019-02-06T12:29:35.000Z | lib/blog_web/controllers/ycy_controllers/ycy_real_estate_controller.ex | albertschr/blog_supported_blockchain | ee9578c8ebddd3e72ff5eaabefc2d724c3e2a9a1 | [
"MIT"
] | null | null | null | lib/blog_web/controllers/ycy_controllers/ycy_real_estate_controller.ex | albertschr/blog_supported_blockchain | ee9578c8ebddd3e72ff5eaabefc2d724c3e2a9a1 | [
"MIT"
] | null | null | null | defmodule BlogWeb.YcyRealEstateController do
use BlogWeb, :controller
alias Blog.Repo
def show(conn, %{"name" => name}) do
try do
real_estate =
name
|> YcyRealEstate.get_real_estate()
|> StructTranslater.struct_to_map()
json(conn, real_estate)
rescue
_ ->
... | 24.763441 | 68 | 0.585323 |
9ebffcc640a9bf89f7f6c912bbd8966222c627bc | 11,443 | ex | Elixir | lib/uinta/plug.ex | KalvinHom/uinta | c02ea83b92305d4b009853232292c94bd26bba25 | [
"MIT"
] | null | null | null | lib/uinta/plug.ex | KalvinHom/uinta | c02ea83b92305d4b009853232292c94bd26bba25 | [
"MIT"
] | null | null | null | lib/uinta/plug.ex | KalvinHom/uinta | c02ea83b92305d4b009853232292c94bd26bba25 | [
"MIT"
] | null | null | null | if Code.ensure_loaded?(Plug) do
defmodule Uinta.Plug do
@moduledoc """
This plug combines the request and response logs into a single line. This
brings many benefits including:
- Removing the need to visually match up the request and response makes it
easier to read your logs and get a full pictu... | 34.675758 | 127 | 0.634449 |
9ec00667c158cae92c0758a93b78d3949323bdab | 941 | ex | Elixir | lib/challenge_gov/submissions/document.ex | smartlogic/Challenge_gov | b4203d1fcfb742dd17ecfadb9e9c56ad836d4254 | [
"CC0-1.0"
] | 9 | 2020-02-26T20:24:38.000Z | 2022-03-22T21:14:52.000Z | lib/challenge_gov/submissions/document.ex | smartlogic/Challenge_gov | b4203d1fcfb742dd17ecfadb9e9c56ad836d4254 | [
"CC0-1.0"
] | 15 | 2020-04-22T19:33:24.000Z | 2022-03-26T15:11:17.000Z | lib/challenge_gov/submissions/document.ex | smartlogic/Challenge_gov | b4203d1fcfb742dd17ecfadb9e9c56ad836d4254 | [
"CC0-1.0"
] | 4 | 2020-04-27T22:58:57.000Z | 2022-01-14T13:42:09.000Z | defmodule ChallengeGov.Submissions.Document do
@moduledoc """
Submission document schema
"""
use Ecto.Schema
import Ecto.Changeset
alias ChallengeGov.Accounts.User
alias ChallengeGov.Submissions.Submission
@type t :: %__MODULE__{}
schema "submission_documents" do
belongs_to(:user, User)
b... | 21.883721 | 56 | 0.686504 |
9ec0206e05750172dcf414f2e1cc62563c2df0d6 | 721 | exs | Elixir | examples/example-phx-1_3/config/test.exs | devshane/thesis-phoenix | afe22a25542f91e15cfffb1e93ff8d833a64c25b | [
"MIT"
] | null | null | null | examples/example-phx-1_3/config/test.exs | devshane/thesis-phoenix | afe22a25542f91e15cfffb1e93ff8d833a64c25b | [
"MIT"
] | null | null | null | examples/example-phx-1_3/config/test.exs | devshane/thesis-phoenix | afe22a25542f91e15cfffb1e93ff8d833a64c25b | [
"MIT"
] | null | null | null | use Mix.Config
# We don't run a server during test. If one is required,
# you can enable the server option below.
config :example_phx, ExamplePhxWeb.Endpoint,
http: [port: 4001],
server: true
config :example_phx, :sql_sandbox, true
config :hound, driver: "chrome_driver"
# Print only warnings and errors during t... | 28.84 | 73 | 0.758669 |
9ec0406cfb4429e0ee6a3661d228a481cb2babbb | 3,199 | ex | Elixir | lib/codes/codes_k76.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_k76.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_k76.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | defmodule IcdCode.ICDCode.Codes_K76 do
alias IcdCode.ICDCode
def _K760 do
%ICDCode{full_code: "K760",
category_code: "K76",
short_code: "0",
full_name: "Fatty (change of) liver, not elsewhere classified",
short_name: "Fatty (change of) liver, not elsewhere classified",
... | 30.179245 | 76 | 0.593623 |
9ec047e81c650719d48050597944170a02a49195 | 1,732 | exs | Elixir | apps/interface/config/dev.exs | jeremy-miller/life-elixir | 5c9396b187279110dc8da38a5070023d1ed02955 | [
"MIT"
] | null | null | null | apps/interface/config/dev.exs | jeremy-miller/life-elixir | 5c9396b187279110dc8da38a5070023d1ed02955 | [
"MIT"
] | null | null | null | apps/interface/config/dev.exs | jeremy-miller/life-elixir | 5c9396b187279110dc8da38a5070023d1ed02955 | [
"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 brunch.io to recompile .js and .css sources.
config :interface, InterfaceWeb.Endpoint,
http: [port... | 34.64 | 170 | 0.702656 |
9ec05433dd04039b5be09398ff6c6a684709ba6c | 376 | ex | Elixir | lib/quasar/web/views/error_view.ex | okbreathe/quasar | 58449a190aefde36aa83e5b1f3116f458ced7c09 | [
"Apache-2.0"
] | 11 | 2017-07-10T10:13:42.000Z | 2021-12-19T16:46:20.000Z | lib/quasar/web/views/error_view.ex | okbreathe/quasar | 58449a190aefde36aa83e5b1f3116f458ced7c09 | [
"Apache-2.0"
] | null | null | null | lib/quasar/web/views/error_view.ex | okbreathe/quasar | 58449a190aefde36aa83e5b1f3116f458ced7c09 | [
"Apache-2.0"
] | 3 | 2017-07-18T20:03:34.000Z | 2019-07-28T13:32:49.000Z | defmodule Quasar.Web.ErrorView do
use Quasar.Web, :view
def render("404.html", _assigns) do
"Page not found"
end
def render("500.html", _assigns) do
"Internal server error"
end
# In case no render clause matches or no
# template is found, let's render it as 500
def template_not_found(_templat... | 20.888889 | 47 | 0.696809 |
9ec055d367b1bb3cab1b522dcde6ae80e877a996 | 107 | ex | Elixir | lib/hologram/compiler/call_graph_builder.ex | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 40 | 2022-01-19T20:27:36.000Z | 2022-03-31T18:17:41.000Z | lib/hologram/compiler/call_graph_builder.ex | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 42 | 2022-02-03T22:52:43.000Z | 2022-03-26T20:57:32.000Z | lib/hologram/compiler/call_graph_builder.ex | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 3 | 2022-02-10T04:00:37.000Z | 2022-03-08T22:07:45.000Z | defprotocol Hologram.Compiler.CallGraphBuilder do
def build(ir, module_defs, templates, from_vertex)
end
| 26.75 | 52 | 0.831776 |
9ec05ab0d887cdeb9a2ca9fe8deccd0bd0c67281 | 17,376 | ex | Elixir | lib/ex_unit/lib/ex_unit/formatter.ex | samgaw/elixir | 92e8263102d95281a5aa7850b747636805f13fc9 | [
"Apache-2.0"
] | null | null | null | lib/ex_unit/lib/ex_unit/formatter.ex | samgaw/elixir | 92e8263102d95281a5aa7850b747636805f13fc9 | [
"Apache-2.0"
] | 1 | 2021-10-21T08:22:30.000Z | 2021-10-21T08:22:30.000Z | lib/ex_unit/lib/ex_unit/formatter.ex | samgaw/elixir | 92e8263102d95281a5aa7850b747636805f13fc9 | [
"Apache-2.0"
] | null | null | null | defmodule ExUnit.Formatter do
@moduledoc """
Helper functions for formatting and the formatting protocols.
Formatters are `GenServer`s specified during ExUnit configuration
that receive a series of events as casts.
The following events are possible:
* `{:suite_started, opts}` -
the suite has star... | 30.808511 | 108 | 0.649804 |
9ec05ca80fe13fab94c2fd6187aba12b9c7c9e24 | 872 | exs | Elixir | Microsoft.Azure.Management.Database.PostgreSql/mix.exs | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | 4 | 2018-09-29T03:43:15.000Z | 2021-04-01T18:30:46.000Z | Microsoft.Azure.Management.Database.PostgreSql/mix.exs | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | null | null | null | Microsoft.Azure.Management.Database.PostgreSql/mix.exs | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | null | null | null | defmodule Microsoft.Azure.Management.Database.PostgreSql.Mixfile do
use Mix.Project
def project do
[app: :ex_microsoft_azure_management_postgresql,
version: "0.1.0",
elixir: "~> 1.4",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps()]
end
# Configur... | 23.567568 | 79 | 0.627294 |
9ec066f61a3543f1295bd13878fd46b1430e0f7c | 1,530 | ex | Elixir | exercises/practice/bank-account/.meta/example.ex | jaimeiniesta/elixir-1 | e8ddafeb313822645e0cd76743955a5c728a84c5 | [
"MIT"
] | 343 | 2017-06-22T16:28:28.000Z | 2022-03-25T21:33:32.000Z | exercises/practice/bank-account/.meta/example.ex | jaimeiniesta/elixir-1 | e8ddafeb313822645e0cd76743955a5c728a84c5 | [
"MIT"
] | 583 | 2017-06-19T10:48:40.000Z | 2022-03-28T21:43:12.000Z | exercises/practice/bank-account/.meta/example.ex | jaimeiniesta/elixir-1 | e8ddafeb313822645e0cd76743955a5c728a84c5 | [
"MIT"
] | 228 | 2017-07-05T07:09:32.000Z | 2022-03-27T08:59:08.000Z | defmodule BankAccount do
@moduledoc """
A bank account that supports access from multiple processes.
"""
use GenServer
## Callbacks
@impl true
def init(_args) do
{:ok, 0}
end
@impl true
def handle_call(:balance, _from, balance) do
{:reply, balance, balance}
end
@impl true
def hand... | 19.615385 | 80 | 0.639216 |
9ec06d42bef71b0701225e1ee5ac6a27018e2004 | 2,181 | ex | Elixir | clients/bigtable_admin/lib/google_api/bigtable_admin/v2/model/get_policy_options.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/bigtable_admin/lib/google_api/bigtable_admin/v2/model/get_policy_options.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/bigtable_admin/lib/google_api/bigtable_admin/v2/model/get_policy_options.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... | 46.404255 | 805 | 0.767538 |
9ec06f6daaee8c1cd3a2f6bbe491186143b1110b | 558 | exs | Elixir | admin/test/views/error_view_test.exs | shipperizer/symmetrical-octo-parakeet | 6c9c428898d3529c04d872fec8f099456cc54633 | [
"MIT"
] | null | null | null | admin/test/views/error_view_test.exs | shipperizer/symmetrical-octo-parakeet | 6c9c428898d3529c04d872fec8f099456cc54633 | [
"MIT"
] | null | null | null | admin/test/views/error_view_test.exs | shipperizer/symmetrical-octo-parakeet | 6c9c428898d3529c04d872fec8f099456cc54633 | [
"MIT"
] | null | null | null | defmodule Admin.ErrorViewTest do
use Admin.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(Admin.ErrorView, "404.html", []) ==
"Page not found"
end
test "render 500.html" do
as... | 25.363636 | 66 | 0.670251 |
9ec083884969e3d5a21ddc83f577107f4bcdb8e6 | 1,813 | ex | Elixir | lib/google_api/big_query/v2/model/user_defined_function_resource.ex | albert-io/elixir-google-big-query | 26537253b83e7bad513ea4b5143b156c914b1475 | [
"Apache-2.0"
] | null | null | null | lib/google_api/big_query/v2/model/user_defined_function_resource.ex | albert-io/elixir-google-big-query | 26537253b83e7bad513ea4b5143b156c914b1475 | [
"Apache-2.0"
] | null | null | null | lib/google_api/big_query/v2/model/user_defined_function_resource.ex | albert-io/elixir-google-big-query | 26537253b83e7bad513ea4b5143b156c914b1475 | [
"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... | 33.574074 | 234 | 0.74738 |
9ec08735610dc30002019f5ae0223004a0649ce6 | 1,269 | ex | Elixir | server/test/support/conn_case.ex | brianjaustin/melody-match | 5200fd347f7ae636ec782398896c782d80c17f59 | [
"Apache-1.1"
] | null | null | null | server/test/support/conn_case.ex | brianjaustin/melody-match | 5200fd347f7ae636ec782398896c782d80c17f59 | [
"Apache-1.1"
] | 4 | 2021-03-28T03:09:37.000Z | 2021-04-10T17:45:10.000Z | server/test/support/conn_case.ex | brianjaustin/melody-match | 5200fd347f7ae636ec782398896c782d80c17f59 | [
"Apache-1.1"
] | null | null | null | defmodule MelodyMatchWeb.ConnCase do
@moduledoc """
This module defines the test case to be used by
tests that require setting up a connection.
Such tests rely on `Phoenix.ConnTest` and also
import other functionality to make it easier
to build common data structures and query the data layer.
Finally, i... | 28.840909 | 73 | 0.730496 |
9ec0942cb43cc8084ea02039b5091fbfbb70f747 | 4,431 | ex | Elixir | lib/sobelow/config/csrf_route.ex | gabrielgiordan/sobelow | 2193139737fa8b2e32692c8fcba0b9052f67baa7 | [
"Apache-2.0"
] | null | null | null | lib/sobelow/config/csrf_route.ex | gabrielgiordan/sobelow | 2193139737fa8b2e32692c8fcba0b9052f67baa7 | [
"Apache-2.0"
] | null | null | null | lib/sobelow/config/csrf_route.ex | gabrielgiordan/sobelow | 2193139737fa8b2e32692c8fcba0b9052f67baa7 | [
"Apache-2.0"
] | null | null | null | defmodule Sobelow.Config.CSRFRoute do
@moduledoc """
# Cross-Site Request Forgery
In a Cross-Site Request Forgery (CSRF) attack, an untrusted
application can cause a user's browser to submit requests or perform
actions on the user's behalf.
Read more about CSRF here:
https://www.owasp.org/index.php/Cros... | 27.867925 | 93 | 0.653803 |
9ec0d8f4253e7e4e869f234af7e97e4e9429b2a7 | 278 | exs | Elixir | apps/thundermoon/priv/repo/migrations/20190804091735_add_external_id_to_user.exs | psychedel/thundermoon-umbrella | b52cb59f1b55fe092ddc70fac7cf2f6e7890c9af | [
"MIT"
] | 10 | 2019-08-02T06:41:23.000Z | 2022-03-09T16:12:30.000Z | apps/thundermoon/priv/repo/migrations/20190804091735_add_external_id_to_user.exs | psychedel/thundermoon-umbrella | b52cb59f1b55fe092ddc70fac7cf2f6e7890c9af | [
"MIT"
] | 319 | 2019-06-11T20:16:26.000Z | 2022-03-09T16:24:22.000Z | apps/thundermoon/priv/repo/migrations/20190804091735_add_external_id_to_user.exs | psychedel/thundermoon-umbrella | b52cb59f1b55fe092ddc70fac7cf2f6e7890c9af | [
"MIT"
] | 4 | 2019-08-15T19:52:07.000Z | 2021-12-02T14:52:54.000Z | defmodule Thundermoon.Repo.Migrations.AddExternalIdToUser do
use Ecto.Migration
def change do
alter table("users") do
add :external_id, :integer
add :name, :string
add :avatar, :string
end
create unique_index("users", :external_id)
end
end
| 19.857143 | 60 | 0.68705 |
9ec0da56b950618c01bc1c1fe3f8acccc9b1aa16 | 125 | exs | Elixir | test/ipc_test.exs | pshah123/elixir-simple | 0b9d488769f9ef6924c8ae3753d0880d05f70015 | [
"MIT"
] | null | null | null | test/ipc_test.exs | pshah123/elixir-simple | 0b9d488769f9ef6924c8ae3753d0880d05f70015 | [
"MIT"
] | null | null | null | test/ipc_test.exs | pshah123/elixir-simple | 0b9d488769f9ef6924c8ae3753d0880d05f70015 | [
"MIT"
] | null | null | null | defmodule IPCTest do
use ExUnit.Case
doctest IPCServer
test "runs successfully" do
assert IPCServer.run
end
end
| 13.888889 | 29 | 0.744 |
9ec12b1bf52d9227ca2a290e255336ba3ed37914 | 1,359 | ex | Elixir | lib/hello_web/live/thermostat_live.ex | loretoparisi/phoenix-elixir-boilerplate | 1fd0afa7c1cefbb82d3080f151fef269332d8e14 | [
"MIT"
] | 4 | 2019-04-07T17:43:10.000Z | 2020-07-07T21:32:44.000Z | lib/hello_web/live/thermostat_live.ex | loretoparisi/phoenix-elixir-boilerplate | 1fd0afa7c1cefbb82d3080f151fef269332d8e14 | [
"MIT"
] | null | null | null | lib/hello_web/live/thermostat_live.ex | loretoparisi/phoenix-elixir-boilerplate | 1fd0afa7c1cefbb82d3080f151fef269332d8e14 | [
"MIT"
] | 3 | 2019-09-09T15:21:41.000Z | 2020-07-07T21:35:07.000Z | defmodule HelloWeb.ThermostatLive do
use Phoenix.LiveView
import Calendar.Strftime
def render(assigns) do
~L"""
<div class="thermostat">
<div class="bar <%= @mode %>">
<a href="#" phx-click="toggle-mode"><%= @mode %></a>
<span><%= strftime!(@time, "%r") %></span>
</div>
... | 27.18 | 80 | 0.57248 |
9ec14066d0aa5657fd040481e134f768efdd438c | 26,514 | exs | Elixir | test/ecto_nested_changeset_test.exs | BrianPhilips/ecto_nested_changeset | 4d16f2955c1e7c71e25685030f66aefeba5ce0fc | [
"MIT"
] | null | null | null | test/ecto_nested_changeset_test.exs | BrianPhilips/ecto_nested_changeset | 4d16f2955c1e7c71e25685030f66aefeba5ce0fc | [
"MIT"
] | null | null | null | test/ecto_nested_changeset_test.exs | BrianPhilips/ecto_nested_changeset | 4d16f2955c1e7c71e25685030f66aefeba5ce0fc | [
"MIT"
] | null | null | null | defmodule EctoNestedChangesetTest do
use ExUnit.Case
import Ecto.Changeset
import EctoNestedChangeset
alias __MODULE__.Category
alias __MODULE__.Comment
alias __MODULE__.Post
alias Ecto.Changeset
defmodule Category do
use Ecto.Schema
schema "categories" do
has_many :posts, EctoNestedCh... | 30.267123 | 80 | 0.388172 |
9ec1609d307741ce93e40ad645c27499319e9269 | 1,376 | exs | Elixir | ros/ros_service/config/config.exs | kujua/elixir-handbook | 4185ad8da7f652fdb59c799dc58bcb33fda10475 | [
"Apache-2.0"
] | 1 | 2019-07-01T18:47:28.000Z | 2019-07-01T18:47:28.000Z | ros/ros_service/config/config.exs | kujua/elixir-handbook | 4185ad8da7f652fdb59c799dc58bcb33fda10475 | [
"Apache-2.0"
] | 4 | 2020-07-17T16:57:18.000Z | 2021-05-09T23:50:52.000Z | ros/ros_service/config/config.exs | kujua/elixir-handbook | 4185ad8da7f652fdb59c799dc58bcb33fda10475 | [
"Apache-2.0"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on this project, this
# file won't be loaded nor affect the paren... | 35.282051 | 73 | 0.743459 |
9ec18df16c4a11496b4b4e3dadccf596b838eafb | 1,175 | ex | Elixir | Chapter7/persistable_todo_cache/lib/todo/cache.ex | benjamindburke/elixir-studies | 65231b5af83dcf701041cae2879107c3bd3e5078 | [
"Unlicense"
] | null | null | null | Chapter7/persistable_todo_cache/lib/todo/cache.ex | benjamindburke/elixir-studies | 65231b5af83dcf701041cae2879107c3bd3e5078 | [
"Unlicense"
] | null | null | null | Chapter7/persistable_todo_cache/lib/todo/cache.ex | benjamindburke/elixir-studies | 65231b5af83dcf701041cae2879107c3bd3e5078 | [
"Unlicense"
] | null | null | null | defmodule Todo.Cache do
use GenServer
@impl GenServer
def init(_) do
Todo.Database.start()
{:ok, %{}}
end
# this request must be sent directly to the caller, so it must be a handle_call function
@impl GenServer
def handle_call({:server_process, todo_list_name}, _, todo_servers) do
case Map.f... | 26.111111 | 90 | 0.674894 |
9ec19c9d3fa373d3bbf07f12c5900b435785cf91 | 155 | ex | Elixir | test/support/models/department.ex | nickolaich/formex_ecto | 322907daa4924d1c297acc7f9e60f99bc8f2f6f3 | [
"MIT"
] | 20 | 2017-06-25T12:30:03.000Z | 2021-04-25T06:43:31.000Z | test/support/models/department.ex | nickolaich/formex_ecto | 322907daa4924d1c297acc7f9e60f99bc8f2f6f3 | [
"MIT"
] | 8 | 2017-11-19T17:15:32.000Z | 2020-02-02T12:50:03.000Z | test/support/models/department.ex | nickolaich/formex_ecto | 322907daa4924d1c297acc7f9e60f99bc8f2f6f3 | [
"MIT"
] | 9 | 2018-03-30T22:14:13.000Z | 2021-11-15T12:12:56.000Z | defmodule Formex.Ecto.TestModel.Department do
use Formex.Ecto.TestModel
schema "departments" do
field(:name, :string)
timestamps()
end
end
| 15.5 | 45 | 0.722581 |
9ec1a0e07e568eed0303ec7bfddb3ab869dfce49 | 1,161 | ex | Elixir | core/util/erlang_log_translator.ex | wses-yoshida/antikythera | e108e59d2339edd0b0fad31ad4f41f56df45be55 | [
"Apache-2.0"
] | null | null | null | core/util/erlang_log_translator.ex | wses-yoshida/antikythera | e108e59d2339edd0b0fad31ad4f41f56df45be55 | [
"Apache-2.0"
] | null | null | null | core/util/erlang_log_translator.ex | wses-yoshida/antikythera | e108e59d2339edd0b0fad31ad4f41f56df45be55 | [
"Apache-2.0"
] | null | null | null | # Copyright(c) 2015-2019 ACCESS CO., LTD. All rights reserved.
use Croma
defmodule AntikytheraCore.ErlangLogTranslator do
@moduledoc """
Translator for `Logger`, installed via application config.
Most of translations are delegated to `Logger.Translator`;
this translator neglects messages of the following typ... | 32.25 | 111 | 0.712317 |
9ec1b4f6300817235a204548433679ed1dbf16fa | 27,875 | exs | Elixir | lib/elixir/test/elixir/string_test.exs | eproxus/elixir | 1c3a3bde539bc96c80d917fbcf3c9dc9e123860b | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/string_test.exs | eproxus/elixir | 1c3a3bde539bc96c80d917fbcf3c9dc9e123860b | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/string_test.exs | eproxus/elixir | 1c3a3bde539bc96c80d917fbcf3c9dc9e123860b | [
"Apache-2.0"
] | null | null | null | Code.require_file "test_helper.exs", __DIR__
defmodule StringTest do
use ExUnit.Case, async: true
doctest String
test "next codepoint" do
assert String.next_codepoint("ésoj") == {"é", "soj"}
assert String.next_codepoint(<<255>>) == {<<255>>, ""}
assert String.next_codepoint("") == nil
end
# te... | 41.791604 | 211 | 0.57252 |
9ec1bd3ad4d814b0c1f272017ddc6c60a9ea825e | 2,445 | exs | Elixir | bench/bench.encoder.exs | marcelotto/saxy | a942d8d2d3ff028294b667487b9251d690ca9364 | [
"MIT"
] | 217 | 2018-02-17T17:43:33.000Z | 2022-03-20T13:53:33.000Z | bench/bench.encoder.exs | marcelotto/saxy | a942d8d2d3ff028294b667487b9251d690ca9364 | [
"MIT"
] | 49 | 2018-05-02T05:11:08.000Z | 2022-03-16T13:30:17.000Z | bench/bench.encoder.exs | marcelotto/saxy | a942d8d2d3ff028294b667487b9251d690ca9364 | [
"MIT"
] | 28 | 2018-04-21T23:13:40.000Z | 2022-03-03T22:47:12.000Z | bench_options = [
time: 5,
memory_time: 2,
inputs: %{
"simple document" => :simple,
"deeply nested elements " => :nested,
"long content element" => :long_content
}
]
defmodule Bench.Saxy.Builder do
import Saxy.XML, only: [element: 3]
def build(:simple) do
element("root", [], [
elemen... | 21.637168 | 64 | 0.540695 |
9ec1e9ae2b53ff9296ae0649796d7e96e498295a | 884 | exs | Elixir | mix.exs | chrismccord/beam_toolbox_web | 8aaf37b073cc4ca619e33d3742b51335a8944201 | [
"MIT"
] | 1 | 2018-01-14T09:41:05.000Z | 2018-01-14T09:41:05.000Z | mix.exs | chrismccord/beam_toolbox_web | 8aaf37b073cc4ca619e33d3742b51335a8944201 | [
"MIT"
] | null | null | null | mix.exs | chrismccord/beam_toolbox_web | 8aaf37b073cc4ca619e33d3742b51335a8944201 | [
"MIT"
] | null | null | null | defmodule BeamToolboxWeb.Mixfile do
use Mix.Project
def project do
[ app: :beam_toolbox_web,
version: "0.0.1",
elixir: "~> 0.15.0",
elixirc_paths: ["lib", "web"],
deps: deps ]
end
# Configuration for the OTP application
def application do
[
mod: { BeamToolboxWeb, [] },
... | 26 | 78 | 0.61086 |
9ec1f16e9ca9faf324cdc8004131b04e5125d66b | 2,682 | ex | Elixir | clients/admin/lib/google_api/admin/reports_v1/api/channels.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/admin/lib/google_api/admin/reports_v1/api/channels.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/admin/lib/google_api/admin/reports_v1/api/channels.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... | 37.25 | 170 | 0.698732 |
9ec1f9c9e6291711b8858b5bc9f40d2f9f6a7510 | 3,465 | ex | Elixir | lib/graphql/resolvers/project.ex | drj17/accent | 25b42dff1f9051e0a42ed7135890a9f740c65026 | [
"BSD-3-Clause"
] | null | null | null | lib/graphql/resolvers/project.ex | drj17/accent | 25b42dff1f9051e0a42ed7135890a9f740c65026 | [
"BSD-3-Clause"
] | null | null | null | lib/graphql/resolvers/project.ex | drj17/accent | 25b42dff1f9051e0a42ed7135890a9f740c65026 | [
"BSD-3-Clause"
] | null | null | null | defmodule Accent.GraphQL.Resolvers.Project do
require Ecto.Query
alias Accent.Scopes.Project, as: ProjectScope
alias Accent.{
GraphQL.Paginated,
Operation,
Plugs.GraphQLContext,
Project,
ProjectCreator,
ProjectDeleter,
ProjectUpdater,
Repo,
User
}
alias Ecto.Query
@ty... | 29.364407 | 122 | 0.598846 |
9ec21725d83485e4b759de812aba773883ab438e | 875 | exs | Elixir | test/epicenter_web/views/user_multifactor_auth_setup_view_test.exs | geometricservices/epi-viewpoin | ecb5316ea0f3f7299d5ff63e2de588539005ac1c | [
"Apache-2.0"
] | 5 | 2021-02-25T18:43:09.000Z | 2021-02-27T06:00:35.000Z | test/epicenter_web/views/user_multifactor_auth_setup_view_test.exs | geometricservices/epi-viewpoint | ecb5316ea0f3f7299d5ff63e2de588539005ac1c | [
"Apache-2.0"
] | 3 | 2021-12-13T17:52:47.000Z | 2021-12-17T01:35:31.000Z | test/epicenter_web/views/user_multifactor_auth_setup_view_test.exs | geometricservices/epi-viewpoint | ecb5316ea0f3f7299d5ff63e2de588539005ac1c | [
"Apache-2.0"
] | 1 | 2022-01-27T23:26:38.000Z | 2022-01-27T23:26:38.000Z | defmodule EpicenterWeb.UserMultifactorAuthSetupViewTest do
use EpicenterWeb.ConnCase, async: true
import EpicenterWeb.UserMultifactorAuthSetupView, only: [colorize_alphanumeric_string: 1]
describe "colorize_alphanumeric_string" do
test "wraps each character in a span with a 'letter' or 'number' class" do
... | 41.666667 | 91 | 0.571429 |
9ec21898712ebceecd4897bd38d3d8ea295f2eb8 | 1,946 | exs | Elixir | apps/ewallet_api/test/ewallet_api/v1/views/user_view_test.exs | jimpeebles/ewallet | ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405 | [
"Apache-2.0"
] | null | null | null | apps/ewallet_api/test/ewallet_api/v1/views/user_view_test.exs | jimpeebles/ewallet | ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405 | [
"Apache-2.0"
] | null | null | null | apps/ewallet_api/test/ewallet_api/v1/views/user_view_test.exs | jimpeebles/ewallet | ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405 | [
"Apache-2.0"
] | null | null | null | # Copyright 2018 OmiseGO Pte Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writi... | 28.617647 | 74 | 0.598664 |
9ec22addb1ffe69802bae194954f27eda60f1976 | 2,158 | ex | Elixir | lib/wechat/utils/message_encryptor.ex | ZhengQingchen/wechat | c1d1cdbf2578fc27ece38b5ca702e22e7817da07 | [
"MIT"
] | 36 | 2016-09-08T06:12:34.000Z | 2018-08-14T03:45:16.000Z | lib/wechat/utils/message_encryptor.ex | ZhengQingchen/wechat | c1d1cdbf2578fc27ece38b5ca702e22e7817da07 | [
"MIT"
] | 15 | 2016-09-06T04:25:19.000Z | 2017-12-14T12:08:14.000Z | lib/wechat/utils/message_encryptor.ex | ZhengQingchen/wechat | c1d1cdbf2578fc27ece38b5ca702e22e7817da07 | [
"MIT"
] | 10 | 2016-09-06T03:58:10.000Z | 2017-12-14T06:36:51.000Z | defmodule Wechat.Utils.MessageEncryptor do
@moduledoc """
Encrypt and decrypt Wechat messages.
"""
@aes_block_size 16
@doc """
Encrypt plain text by AES-CBC padded by PKCS#7.
"""
def encrypt(msg, appid, encoding_aes_key) do
with aes_key <- aes_key(encoding_aes_key) do
msg
|> pack_appid... | 26.317073 | 97 | 0.675626 |
9ec23de7e699114490e882005a38f7f95bd43a48 | 75 | ex | Elixir | lib/termDirectory_web/views/layout_view.ex | nliechti/termDirectory | 267b3025c14e26575c7a9483692e94a7bf29e5fe | [
"MIT"
] | 1 | 2019-03-15T15:40:24.000Z | 2019-03-15T15:40:24.000Z | lib/termDirectory_web/views/layout_view.ex | nliechti/termDirectory | 267b3025c14e26575c7a9483692e94a7bf29e5fe | [
"MIT"
] | null | null | null | lib/termDirectory_web/views/layout_view.ex | nliechti/termDirectory | 267b3025c14e26575c7a9483692e94a7bf29e5fe | [
"MIT"
] | null | null | null | defmodule TermDirectoryWeb.LayoutView do
use TermDirectoryWeb, :view
end
| 18.75 | 40 | 0.84 |
9ec2581db0f9ba14883eb413b69d8c79aaa355f1 | 7,426 | ex | Elixir | apps/ewallet/lib/ewallet/web/filters/match_parser.ex | Macavirus/ewallet | ce62177b8bd3f7e72156930d384a1c4c047a3b5b | [
"Apache-2.0"
] | null | null | null | apps/ewallet/lib/ewallet/web/filters/match_parser.ex | Macavirus/ewallet | ce62177b8bd3f7e72156930d384a1c4c047a3b5b | [
"Apache-2.0"
] | null | null | null | apps/ewallet/lib/ewallet/web/filters/match_parser.ex | Macavirus/ewallet | ce62177b8bd3f7e72156930d384a1c4c047a3b5b | [
"Apache-2.0"
] | null | null | null | # 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 ... | 34.700935 | 97 | 0.641395 |
9ec25915170614716682494995d0a62217e46f9c | 1,477 | ex | Elixir | apps/streamer/lib/streamer/binance.ex | frathon/hedgehog | 3ed1469919ba819280709a8f26def761003a99df | [
"Unlicense"
] | 65 | 2020-07-07T01:51:27.000Z | 2021-09-27T00:13:59.000Z | apps/streamer/lib/streamer/binance.ex | Cinderella-Man/hedgehog | 3ed1469919ba819280709a8f26def761003a99df | [
"Unlicense"
] | 5 | 2021-02-12T08:21:15.000Z | 2021-09-01T21:17:27.000Z | apps/streamer/lib/streamer/binance.ex | frathon/hedgehog | 3ed1469919ba819280709a8f26def761003a99df | [
"Unlicense"
] | 10 | 2020-08-13T13:39:31.000Z | 2021-09-14T12:46:51.000Z | defmodule Streamer.Binance do
use WebSockex
require Logger
defmodule State do
@enforce_keys [:symbol]
defstruct [:symbol]
end
@stream_endpoint "wss://stream.binance.com:9443/ws/"
def start_link(symbol) do
Logger.info("Streamer.Binance is connecting to #{symbol} trade events stream")
Web... | 22.723077 | 82 | 0.593094 |
9ec25e229de280e94307002644bb0f44e48b282a | 7,553 | ex | Elixir | lib/nets_easy/model/create_payment_request.ex | hooplab/nets-easy-elixir | 5d60a31ef36bb1518d7a3768851d09b258f62411 | [
"MIT"
] | null | null | null | lib/nets_easy/model/create_payment_request.ex | hooplab/nets-easy-elixir | 5d60a31ef36bb1518d7a3768851d09b258f62411 | [
"MIT"
] | null | null | null | lib/nets_easy/model/create_payment_request.ex | hooplab/nets-easy-elixir | 5d60a31ef36bb1518d7a3768851d09b258f62411 | [
"MIT"
] | null | null | null | defmodule NetsEasy.Model.CreatePaymentRequest do
@moduledoc """
"""
@typedoc """
Root request for creating a payment request.
See https: //tech.dibspayment.com/easy/api/paymentapi
"""
@type t :: %__MODULE__{
order: Order.t(),
merchant_number: Integer.t() | nil,
checkout: Ch... | 21.704023 | 80 | 0.493314 |
9ec29b6d602da6e2327f357f7ec8b261b6989d49 | 2,902 | ex | Elixir | lib/exduckdb/pragma.ex | mpope9/exduckdb | 2295022d8b2d8bb902feaf63d1a06d22b386c630 | [
"MIT"
] | 2 | 2021-12-04T08:38:13.000Z | 2021-12-17T02:25:59.000Z | lib/exduckdb/pragma.ex | mpope9/exduckdb | 2295022d8b2d8bb902feaf63d1a06d22b386c630 | [
"MIT"
] | null | null | null | lib/exduckdb/pragma.ex | mpope9/exduckdb | 2295022d8b2d8bb902feaf63d1a06d22b386c630 | [
"MIT"
] | null | null | null | defmodule Exduckdb.Pragma do
@moduledoc """
Handles parsing extra options for the SQLite connection
"""
def busy_timeout(nil), do: busy_timeout([])
def busy_timeout(options) do
Keyword.get(options, :busy_timeout, 2000)
end
def journal_mode(nil), do: journal_mode([])
def journal_mode(options) do
... | 23.786885 | 62 | 0.634735 |
9ec2b30f76ab9e93bea71b6db6fb4313dd3517e7 | 533 | ex | Elixir | eyes/lib/application.ex | mashbytes/sentry | d4b13419694d0e30199af6ff0f8a2b68ef54fefa | [
"MIT"
] | null | null | null | eyes/lib/application.ex | mashbytes/sentry | d4b13419694d0e30199af6ff0f8a2b68ef54fefa | [
"MIT"
] | 2 | 2021-03-09T20:59:23.000Z | 2021-05-10T18:01:00.000Z | eyes/lib/application.ex | mashbytes/sentry | d4b13419694d0e30199af6ff0f8a2b68ef54fefa | [
"MIT"
] | null | null | null | defmodule Eyes.Application do
@moduledoc false
use Application
def start(_type, _args) do
import Supervisor.Spec, warn: false
camera = Application.get_env(:picam, :camera, Picam.Camera)
port = Application.get_env(:picam, :http_port, 4001)
IO.puts("Camera #{camera}")
children = [
wo... | 22.208333 | 76 | 0.666041 |
9ec2bf885d51f3b71263f63d27c82027c06d5814 | 2,813 | ex | Elixir | clients/big_query/lib/google_api/big_query/v2/model/table_data_insert_all_request.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | null | null | null | clients/big_query/lib/google_api/big_query/v2/model/table_data_insert_all_request.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | null | null | null | clients/big_query/lib/google_api/big_query/v2/model/table_data_insert_all_request.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 46.883333 | 460 | 0.748667 |
9ec2c23b0872b479efba38e678fdbc94eaf41517 | 636 | exs | Elixir | test/codec_pcma_test.exs | xirsys/xmedialib | 8e59b7691ffae93ea62fd9f037bf380c7f676ba0 | [
"Apache-2.0"
] | 7 | 2018-12-10T13:50:05.000Z | 2020-10-20T14:16:42.000Z | test/codec_pcma_test.exs | xirsys/xmedialib | 8e59b7691ffae93ea62fd9f037bf380c7f676ba0 | [
"Apache-2.0"
] | null | null | null | test/codec_pcma_test.exs | xirsys/xmedialib | 8e59b7691ffae93ea62fd9f037bf380c7f676ba0 | [
"Apache-2.0"
] | 4 | 2019-01-09T17:46:44.000Z | 2020-02-02T12:00:04.000Z | defmodule XMediaLib.CodecPcmaTest do
use ExUnit.Case
alias XMediaLib.TestUtils
test "decoding from G.711a to PCM" do
assert TestUtils.codec_decode(
"test/samples/pcma/raw-alaw.raw",
"test/samples/pcma/raw-pcm16.from_alaw",
160,
"G.711a / PCMA",
... | 25.44 | 53 | 0.539308 |
9ec2c2ce2a8347be5eadf7c1003be22861fda8c0 | 805 | exs | Elixir | test/credo/check/refactor/long_quote_blocks_test.exs | elixir-twister/credo | 619e0ec6e244c5e0c12eeeb58ed9de97e1571d99 | [
"MIT"
] | null | null | null | test/credo/check/refactor/long_quote_blocks_test.exs | elixir-twister/credo | 619e0ec6e244c5e0c12eeeb58ed9de97e1571d99 | [
"MIT"
] | null | null | null | test/credo/check/refactor/long_quote_blocks_test.exs | elixir-twister/credo | 619e0ec6e244c5e0c12eeeb58ed9de97e1571d99 | [
"MIT"
] | null | null | null | defmodule Credo.Check.Refactor.LongQuoteBlocksTest do
use Credo.TestHelper
@described_check Credo.Check.Refactor.LongQuoteBlocks
#
# cases NOT raising issues
#
test "it should NOT report expected code" do
"""
defmodule CredoSampleModule do
defmacro __using__(opts) do
quote do
def some_fun do
... | 16.428571 | 56 | 0.667081 |
9ec2f20100cfee190b009508d1dd9d876289fb2a | 1,020 | ex | Elixir | lib/ex_twilio/resources/feedback.ex | antoinereyt/ex_twilio | 00276cb855574f2dfd89f72f260a1d56136d48aa | [
"MIT"
] | null | null | null | lib/ex_twilio/resources/feedback.ex | antoinereyt/ex_twilio | 00276cb855574f2dfd89f72f260a1d56136d48aa | [
"MIT"
] | null | null | null | lib/ex_twilio/resources/feedback.ex | antoinereyt/ex_twilio | 00276cb855574f2dfd89f72f260a1d56136d48aa | [
"MIT"
] | 2 | 2022-03-08T22:05:17.000Z | 2022-03-09T05:29:46.000Z | defmodule ExTwilio.Feedback do
@moduledoc """
Represents a Call Feedback resource in the Twilio API.
- [Twilio docs](https://www.twilio.com/docs/voice/api/feedback-resource)
## Examples
Since Call Feedback is a nested resource in the Twilio API, you must
pass in a parent Call SID to all functions in this... | 26.153846 | 77 | 0.67451 |
9ec30dadd25aa2cbe7f99c4e941807bdce19f4cf | 922 | exs | Elixir | farmbot_core/test/logger_test.exs | elbow-jason/farmbot_os | f5dfc8f58a309285ca3d441b1b7272f15315b2a9 | [
"MIT"
] | 1 | 2019-08-06T11:51:48.000Z | 2019-08-06T11:51:48.000Z | farmbot_core/test/logger_test.exs | SeppPenner/farmbot_os | 39ba5c5880f8aef71792e2c009514bed1177089c | [
"MIT"
] | null | null | null | farmbot_core/test/logger_test.exs | SeppPenner/farmbot_os | 39ba5c5880f8aef71792e2c009514bed1177089c | [
"MIT"
] | null | null | null | defmodule FarmbotCore.LoggerTest do
use ExUnit.Case
require FarmbotCore.Logger
test "allows handling a log more than once by re-inserting it." do
log = FarmbotCore.Logger.debug(1, "Test log ABC")
# Handling a log should delete it from the store.
assert Enum.find(
FarmbotCore.Logger.handl... | 30.733333 | 68 | 0.616052 |
9ec3272b02c31a77e7a60c95df567a731ffcca16 | 4,899 | exs | Elixir | test/image_test.exs | lgandersen/jocker | 99a2c6506416b46cfde0debc617f4e8814b1b3fb | [
"BSD-2-Clause"
] | 3 | 2020-07-14T13:44:30.000Z | 2022-03-14T21:06:00.000Z | test/image_test.exs | lgandersen/jocker | 99a2c6506416b46cfde0debc617f4e8814b1b3fb | [
"BSD-2-Clause"
] | null | null | null | test/image_test.exs | lgandersen/jocker | 99a2c6506416b46cfde0debc617f4e8814b1b3fb | [
"BSD-2-Clause"
] | null | null | null | defmodule ImageTest do
use ExUnit.Case
alias Jocker.Engine.{Config, Image, MetaData, Layer}
@moduletag :capture_log
@tmp_dockerfile "tmp_dockerfile"
@tmp_context "./"
setup do
on_exit(fn ->
MetaData.list_images() |> Enum.map(fn %Image{id: id} -> Image.destroy(id) end)
end)
:ok
end
... | 33.101351 | 93 | 0.674423 |
9ec33c04a9a0c4fbee8b582585e4198b8d216e4e | 1,540 | exs | Elixir | lib/mix/test/mix/task_test.exs | Nicd/elixir | e62ef92a4be1b562033d35b2d822cc9d6c661077 | [
"Apache-2.0"
] | 4 | 2016-04-05T05:51:36.000Z | 2019-10-31T06:46:35.000Z | lib/mix/test/mix/task_test.exs | Nicd/elixir | e62ef92a4be1b562033d35b2d822cc9d6c661077 | [
"Apache-2.0"
] | null | null | null | lib/mix/test/mix/task_test.exs | Nicd/elixir | e62ef92a4be1b562033d35b2d822cc9d6c661077 | [
"Apache-2.0"
] | 5 | 2015-02-01T06:01:19.000Z | 2019-08-29T09:02:35.000Z | Code.require_file "../test_helper.exs", __DIR__
defmodule Mix.TaskTest do
use MixTest.Case
test :run do
assert Mix.Task.run("hello") == "Hello, World!"
assert Mix.Task.run("hello") == :noop
assert_raise Mix.NoTaskError, "The task unknown could not be found", fn ->
Mix.Task.run("unknown")
en... | 24.83871 | 90 | 0.661688 |
9ec362b0cbdfeb31f1227c40bdc89df97f65b121 | 9,575 | ex | Elixir | lib/ecto_materialized_path.ex | mayel/ecto_materialized_path | 117ebd0693ec949a1e12fa75481611596d0f5d3d | [
"Apache-2.0"
] | null | null | null | lib/ecto_materialized_path.ex | mayel/ecto_materialized_path | 117ebd0693ec949a1e12fa75481611596d0f5d3d | [
"Apache-2.0"
] | null | null | null | lib/ecto_materialized_path.ex | mayel/ecto_materialized_path | 117ebd0693ec949a1e12fa75481611596d0f5d3d | [
"Apache-2.0"
] | null | null | null | defmodule EctoMaterializedPath do
defmacro __using__(opts) do
column_name = Keyword.get(opts, :column_name, "path")
namespace = Keyword.get(opts, :namespace, nil)
method_namespace = if is_nil(namespace), do: nil, else: "#{namespace}_"
quote bind_quoted: [
column_name: column_name,
method_... | 43.130631 | 188 | 0.683238 |
9ec364af576ebfb67c47fd15f7bbf3d01024d8ca | 4,013 | ex | Elixir | lib/google_certs/certificates.ex | sammkj/google-certs | 6a1661d4673259524ec6f1d537d1b5b97bf8587b | [
"MIT"
] | null | null | null | lib/google_certs/certificates.ex | sammkj/google-certs | 6a1661d4673259524ec6f1d537d1b5b97bf8587b | [
"MIT"
] | 1 | 2021-11-08T04:12:01.000Z | 2021-11-08T04:12:01.000Z | lib/google_certs/certificates.ex | sammkj/google-certs | 6a1661d4673259524ec6f1d537d1b5b97bf8587b | [
"MIT"
] | null | null | null | defmodule GoogleCerts.CertificateDecodeException do
defexception message: "Could not decode certificate"
end
defmodule GoogleCerts.Certificate do
@moduledoc """
Struct to associate a `kid` to a certificate map.
kid is the id and cert can either be a map with a pem or a JWK map
version 1 cert is `%{"pem" =>... | 29.947761 | 98 | 0.637678 |
9ec3ac2f7a82c1117402294692ce4c1c2038beba | 1,819 | exs | Elixir | test/platform_web/plugs/www_redirect_plug_test.exs | lucab85/audioslides.io | cb502ccf6ed0b2db42d9fb20bb4c963bcca3cfa9 | [
"MIT"
] | 17 | 2017-11-14T14:03:18.000Z | 2021-12-10T04:18:48.000Z | test/platform_web/plugs/www_redirect_plug_test.exs | lucab85/audioslides.io | cb502ccf6ed0b2db42d9fb20bb4c963bcca3cfa9 | [
"MIT"
] | 21 | 2017-11-19T13:38:07.000Z | 2022-02-10T00:11:14.000Z | test/platform_web/plugs/www_redirect_plug_test.exs | lucab85/audioslides.io | cb502ccf6ed0b2db42d9fb20bb4c963bcca3cfa9 | [
"MIT"
] | 2 | 2019-09-03T03:32:13.000Z | 2021-02-23T21:52:57.000Z | defmodule PlatformWeb.WwwRedirectPlugTest do
alias PlatformWeb.WwwRedirectPlug
use PlatformWeb.ConnCase
describe "#init" do
test "passes the options unmodified" do
opts = %{test: 123}
assert WwwRedirectPlug.init(opts) == opts
end
end
describe "#call" do
test "redirects does nothing i... | 33.685185 | 105 | 0.658604 |
9ec3c6554d08798599beb334d0afb69a10711a5a | 16,725 | exs | Elixir | lib/elixir/test/elixir/gen_event_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/gen_event_test.exs | jbcrail/elixir | f30ef15d9d028a6d0f74d10c2bb320d5f8501bdb | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/gen_event_test.exs | jbcrail/elixir | f30ef15d9d028a6d0f74d10c2bb320d5f8501bdb | [
"Apache-2.0"
] | null | null | null | Code.require_file "test_helper.exs", __DIR__
defmodule GenEventTest do
use ExUnit.Case
defmodule ReplyHandler do
use GenEvent
def init(:raise) do
raise "oops"
end
def init({:throw, process}) do
{:ok, process}
end
def init({:raise, _}) do
raise "oops"
end
def i... | 32.412791 | 98 | 0.650463 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.