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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2da6b0af7d215d1b10e94e2fd53eb2ea1c6709de | 2,097 | ex | Elixir | lib/mix/lib/mix/tasks/local.hex.ex | jwarwick/elixir | de103c0f4e3240aa38967298ccb5f483a9e40c16 | [
"Apache-2.0"
] | 2 | 2021-11-10T01:18:41.000Z | 2021-11-10T01:35:54.000Z | lib/mix/lib/mix/tasks/local.hex.ex | jwarwick/elixir | de103c0f4e3240aa38967298ccb5f483a9e40c16 | [
"Apache-2.0"
] | 6 | 2021-03-19T12:33:21.000Z | 2021-04-02T17:52:45.000Z | lib/mix/lib/mix/tasks/local.hex.ex | jwarwick/elixir | de103c0f4e3240aa38967298ccb5f483a9e40c16 | [
"Apache-2.0"
] | 1 | 2021-11-08T10:21:27.000Z | 2021-11-08T10:21:27.000Z | defmodule Mix.Tasks.Local.Hex do
use Mix.Task
@hex_list_path "/installs/hex-1.x.csv"
@hex_archive_path "/installs/[ELIXIR_VERSION]/hex-[HEX_VERSION].ez"
@shortdoc "Installs Hex locally"
@moduledoc """
Installs Hex locally.
mix local.hex
If installing a precompiled Hex does not work, you can com... | 27.233766 | 92 | 0.680019 |
2da6c292d99ad274b0e15ef0cb2ed22fce55dab7 | 1,638 | ex | Elixir | lib/nomad_client/model/allocation_metric.ex | mrmstn/nomad_client | a586022e5eb4d166acba08b55b198ec079d4b118 | [
"Apache-2.0"
] | 8 | 2021-09-04T21:22:53.000Z | 2022-02-22T22:48:38.000Z | lib/nomad_client/model/allocation_metric.ex | mrmstn/nomad_client | a586022e5eb4d166acba08b55b198ec079d4b118 | [
"Apache-2.0"
] | null | null | null | lib/nomad_client/model/allocation_metric.ex | mrmstn/nomad_client | a586022e5eb4d166acba08b55b198ec079d4b118 | [
"Apache-2.0"
] | null | null | null | # NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
# https://openapi-generator.tech
# Do not edit the class manually.
defmodule NomadClient.Model.AllocationMetric do
@moduledoc """
"""
@derive [Poison.Encoder]
defstruct [
:NodesEvaluated,
:NodesFiltered,
:... | 31.5 | 91 | 0.625763 |
2da6c40b4ed8351aeb4c48526e084b8400aa87b7 | 1,954 | exs | Elixir | test/benchee/formatters/markdown_integration_test.exs | kianmeng/benchee_markdown | 701ac80e0d862888e17ccea29cb784ab1e943de5 | [
"MIT"
] | null | null | null | test/benchee/formatters/markdown_integration_test.exs | kianmeng/benchee_markdown | 701ac80e0d862888e17ccea29cb784ab1e943de5 | [
"MIT"
] | null | null | null | test/benchee/formatters/markdown_integration_test.exs | kianmeng/benchee_markdown | 701ac80e0d862888e17ccea29cb784ab1e943de5 | [
"MIT"
] | null | null | null | defmodule Benchee.Formatters.MarkdownIntegrationTest do
use ExUnit.Case
import ExUnit.CaptureIO
@file_path "test.md"
test "works just fine" do
list = Enum.to_list(1..10_000)
map_fun = fn i -> [i, i * i] end
capture_io(fn ->
Benchee.run(
%{
"flat_map" => fn -> Enum.flat_map... | 23.542169 | 80 | 0.511771 |
2da6c5d914de32fb4634d829dfd6ebe67126be34 | 831 | ex | Elixir | lib/oli/delivery/attempts/manual_grading/browse_options.ex | malav2110/oli-torus | 8af64e762a7c8a2058bd27a7ab8e96539ffc055f | [
"MIT"
] | 1 | 2022-03-17T20:35:47.000Z | 2022-03-17T20:35:47.000Z | lib/oli/delivery/attempts/manual_grading/browse_options.ex | malav2110/oli-torus | 8af64e762a7c8a2058bd27a7ab8e96539ffc055f | [
"MIT"
] | 9 | 2021-11-02T16:52:09.000Z | 2022-03-25T15:14:01.000Z | lib/oli/delivery/attempts/manual_grading/browse_options.ex | malav2110/oli-torus | 8af64e762a7c8a2058bd27a7ab8e96539ffc055f | [
"MIT"
] | null | null | null | defmodule Oli.Delivery.Attempts.ManualGrading.BrowseOptions do
@moduledoc """
Params for manual graded activity attempt browse queries.
"""
@enforce_keys [
:user_id,
:activity_id,
:page_id,
:graded,
:text_search
]
defstruct [
:user_id, # Filter attempts for a specific user id... | 27.7 | 83 | 0.632972 |
2da6cf0cc9fc115082d4418fd809989e862a5d0f | 4,946 | ex | Elixir | clients/plus_domains/lib/google_api/plus_domains/v1/model/media.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/plus_domains/lib/google_api/plus_domains/v1/model/media.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/plus_domains/lib/google_api/plus_domains/v1/model/media.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 48.019417 | 250 | 0.659725 |
2da705815b9ee928044d01bb54c70b702125c9f5 | 2,660 | ex | Elixir | lib/ppc/testing/subscription.ex | somatoko/ppc | 464379c3e56132519a7fc53717071c07d06aca85 | [
"Apache-2.0"
] | null | null | null | lib/ppc/testing/subscription.ex | somatoko/ppc | 464379c3e56132519a7fc53717071c07d06aca85 | [
"Apache-2.0"
] | null | null | null | lib/ppc/testing/subscription.ex | somatoko/ppc | 464379c3e56132519a7fc53717071c07d06aca85 | [
"Apache-2.0"
] | null | null | null | defmodule Ppc.Testing.SubscriptionTes do
def details_not_found(_id, _opts) do
{:error, "Requested resource ID was not found."}
end
def details_non_conforming_id(_id, _opts) do
{:error, %{"description" => "The value of a field does not conform to the expected format."}}
end
def details_ok(_id, _opts)... | 33.25 | 97 | 0.488346 |
2da7326ee9c08c9d0afdc3d8c29141829a70e17b | 1,732 | ex | Elixir | lib/hello_hipster_stack_web/endpoint.ex | jmarca/hello_hipster_stack | 1391b8c9ba16f80d753a5694ed7c0c9d9b494bb4 | [
"Apache-2.0"
] | null | null | null | lib/hello_hipster_stack_web/endpoint.ex | jmarca/hello_hipster_stack | 1391b8c9ba16f80d753a5694ed7c0c9d9b494bb4 | [
"Apache-2.0"
] | null | null | null | lib/hello_hipster_stack_web/endpoint.ex | jmarca/hello_hipster_stack | 1391b8c9ba16f80d753a5694ed7c0c9d9b494bb4 | [
"Apache-2.0"
] | null | null | null | defmodule HelloHipsterStackWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :hello_hipster_stack
socket "/socket", HelloHipsterStackWeb.UserSocket
# Serve at "/" the static files from "priv/static" directory.
#
# You should set gzip to true if you are running phoenix.digest
# when deploying your static file... | 29.862069 | 95 | 0.718245 |
2da73e87d417ac20dee382c57d2e3fc206dfd27b | 1,897 | ex | Elixir | clients/site_verification/lib/google_api/site_verification/v1/model/site_verification_web_resource_gettoken_request_site.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/site_verification/lib/google_api/site_verification/v1/model/site_verification_web_resource_gettoken_request_site.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/site_verification/lib/google_api/site_verification/v1/model/site_verification_web_resource_gettoken_request_site.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 34.490909 | 206 | 0.738007 |
2da747f8541e0572c967ada972436131f421060d | 11,988 | ex | Elixir | lib/elixir_ex_aliyun_ots_table_store_search_index_schema.ex | hou8/tablestore_protos | 1a3223326b92bbe196d57ce4dd19b5a8db1c728d | [
"MIT"
] | null | null | null | lib/elixir_ex_aliyun_ots_table_store_search_index_schema.ex | hou8/tablestore_protos | 1a3223326b92bbe196d57ce4dd19b5a8db1c728d | [
"MIT"
] | 1 | 2022-02-08T06:37:02.000Z | 2022-02-08T06:37:02.000Z | lib/elixir_ex_aliyun_ots_table_store_search_index_schema.ex | hou8/tablestore_protos | 1a3223326b92bbe196d57ce4dd19b5a8db1c728d | [
"MIT"
] | 2 | 2022-01-24T06:13:03.000Z | 2022-01-24T08:33:41.000Z | # credo:disable-for-this-file
defmodule(ExAliyunOts.TableStoreSearch.IndexSchema) do
@moduledoc false
(
defstruct(field_schemas: [], index_setting: nil, index_sort: nil)
(
(
@spec encode(struct) :: {:ok, iodata} | {:error, any}
def(encode(msg)) do
try do
{:ok, en... | 28.610979 | 98 | 0.481899 |
2da75a0f79d5a1e04a2ea6a64f783dd9e3ad2c7e | 2,404 | exs | Elixir | test/nimble_template/addons/ex_machina_test.exs | nimblehq/elixir-templates | 1425c32084b3814d630d2db28a28e39ec8cce59e | [
"MIT"
] | 34 | 2020-10-04T17:44:27.000Z | 2022-03-21T07:13:02.000Z | test/nimble_template/addons/ex_machina_test.exs | nimblehq/elixir-templates | 1425c32084b3814d630d2db28a28e39ec8cce59e | [
"MIT"
] | 101 | 2020-06-10T03:35:10.000Z | 2022-03-31T03:44:13.000Z | test/nimble_template/addons/ex_machina_test.exs | nimblehq/elixir-templates | 1425c32084b3814d630d2db28a28e39ec8cce59e | [
"MIT"
] | 2 | 2021-03-29T14:35:22.000Z | 2021-11-25T21:39:30.000Z | defmodule NimbleTemplate.Addons.ExMachinaTest do
use NimbleTemplate.AddonCase, async: false
describe "#apply/2" do
@describetag mock_latest_package_versions: [{:ex_machina, "2.4"}]
test "copies the test/support/factory.ex", %{
project: project,
test_project_path: test_project_path
} do
... | 28.963855 | 101 | 0.590266 |
2da7621469e7e3be1644baa050f9b1403fccbcdf | 882 | ex | Elixir | lib/penelope/ml/feature/context_featurizer.ex | pylon/penelope | 5b0310dc0647a8e20ab1b4c10d3820f11cfb2601 | [
"Apache-2.0"
] | 53 | 2017-10-13T06:39:49.000Z | 2022-03-28T19:43:42.000Z | lib/penelope/ml/feature/context_featurizer.ex | pylon/penelope | 5b0310dc0647a8e20ab1b4c10d3820f11cfb2601 | [
"Apache-2.0"
] | 12 | 2018-01-08T23:05:37.000Z | 2019-08-02T12:59:27.000Z | lib/penelope/ml/feature/context_featurizer.ex | pylon/penelope | 5b0310dc0647a8e20ab1b4c10d3820f11cfb2601 | [
"Apache-2.0"
] | 4 | 2018-06-13T19:45:57.000Z | 2019-10-17T13:37:06.000Z | defmodule Penelope.ML.Feature.ContextFeaturizer do
@moduledoc """
This is a sequence featurizer that extracts a constant value from the
prediction context and adds it as a feature for each element in each
sequence for each sample. This is useful for biasing a sequence
classifier at the sample level.
Exampl... | 25.2 | 71 | 0.572562 |
2da7676be3a0d0a0ee51df726e3a0a24c6c56875 | 2,669 | ex | Elixir | clients/verified_access/lib/google_api/verified_access/v1/model/verify_challenge_response_result.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/verified_access/lib/google_api/verified_access/v1/model/verify_challenge_response_result.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/verified_access/lib/google_api/verified_access/v1/model/verify_challenge_response_result.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... | 47.660714 | 350 | 0.750843 |
2da76ceff64ae5e6807cc15eb7728d240a8f611c | 30,391 | ex | Elixir | lib/elixir/lib/application.ex | steven-solomon/elixir | ee83248b8dd78ad67ef1282efc791006e8712d9e | [
"Apache-2.0"
] | 1 | 2019-10-11T01:36:26.000Z | 2019-10-11T01:36:26.000Z | lib/elixir/lib/application.ex | hiro-riveros/elixir | c6da1cfaa83e420726be25617440fc09f118de52 | [
"Apache-2.0"
] | 1 | 2015-06-09T15:52:43.000Z | 2015-06-09T15:52:43.000Z | lib/elixir/lib/application.ex | hiro-riveros/elixir | c6da1cfaa83e420726be25617440fc09f118de52 | [
"Apache-2.0"
] | null | null | null | defmodule Application do
@moduledoc """
A module for working with applications and defining application callbacks.
Applications are the idiomatic way to package software in Erlang/OTP. To get
the idea, they are similar to the "library" concept common in other
programming languages, but with some additional c... | 36.483794 | 94 | 0.704419 |
2da77255fbe86bf6b46ed36f89b8701d557831f3 | 3,940 | ex | Elixir | lib/fireball/models/maze.ex | Catharz/fireball | bb9f123c0d2d71b16eda01d3838565e6e762de20 | [
"MIT"
] | null | null | null | lib/fireball/models/maze.ex | Catharz/fireball | bb9f123c0d2d71b16eda01d3838565e6e762de20 | [
"MIT"
] | null | null | null | lib/fireball/models/maze.ex | Catharz/fireball | bb9f123c0d2d71b16eda01d3838565e6e762de20 | [
"MIT"
] | null | null | null | defmodule Maze do
@doc """
Creates non-overlapping tiles representing the maze.
## Examples
iex> Maze.tiles([[4,8]], %{width: 2, height: 1, hall_width: 1})
[
%{tile: "#", x: 1, y: 1},
%{tile: "#", x: 2, y: 1},
%{tile: "#", x: 3, y: 1},
%{tile: "#", x: 4, y: 1},
%{tile: "#", x: 5, y: 1},
%{tile: ... | 24.936709 | 96 | 0.377665 |
2da77698eba097b0f49e367bfa41d4ad656f477a | 1,316 | ex | Elixir | apps/tai/lib/tai/advisors/spec.ex | yurikoval/tai | 94254b45d22fa0307b01577ff7c629c7280c0295 | [
"MIT"
] | null | null | null | apps/tai/lib/tai/advisors/spec.ex | yurikoval/tai | 94254b45d22fa0307b01577ff7c629c7280c0295 | [
"MIT"
] | 78 | 2020-10-12T06:21:43.000Z | 2022-03-28T09:02:00.000Z | apps/tai/lib/tai/advisors/spec.ex | yurikoval/tai | 94254b45d22fa0307b01577ff7c629c7280c0295 | [
"MIT"
] | null | null | null | defmodule Tai.Advisors.Spec do
@type mod :: atom
@type group_id :: Tai.AdvisorGroup.id()
@type advisor_id :: Tai.Advisor.id()
@type product :: Tai.Venues.Product.t()
@type run_store :: Tai.Advisor.run_store()
@type trades :: list
@type config :: map
@type spec_opts :: [
group_id: group_id,
... | 31.333333 | 104 | 0.62538 |
2da787f37d7d50c51b530c5850132de7404b7d54 | 1,317 | ex | Elixir | lib/bitcoin/protocol/types/outpoint.ex | rosettacash/book | 2937c90e2c3595984e6f5eee91eb454f03b82ef0 | [
"Apache-2.0"
] | null | null | null | lib/bitcoin/protocol/types/outpoint.ex | rosettacash/book | 2937c90e2c3595984e6f5eee91eb454f03b82ef0 | [
"Apache-2.0"
] | null | null | null | lib/bitcoin/protocol/types/outpoint.ex | rosettacash/book | 2937c90e2c3595984e6f5eee91eb454f03b82ef0 | [
"Apache-2.0"
] | null | null | null | defmodule Bitcoin.Protocol.Types.Outpoint do
# char[32] - The hash of the referenced transaction.
defstruct hash:
<<0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0>>,
# The index of the specific output in the transaction. The f... | 28.021277 | 96 | 0.559605 |
2da7893d2b78c76373ff242659d0a23401358f40 | 2,345 | ex | Elixir | lib/fiet/rss2.ex | qcam/fiet | 956259c8d03500aec05e92e1f6d38e5fbfdd1163 | [
"MIT"
] | 20 | 2018-04-03T09:35:15.000Z | 2021-09-23T08:41:26.000Z | lib/fiet/rss2.ex | qcam/viet | 956259c8d03500aec05e92e1f6d38e5fbfdd1163 | [
"MIT"
] | 6 | 2018-06-01T07:28:05.000Z | 2020-02-23T18:39:56.000Z | lib/fiet/rss2.ex | qcam/viet | 956259c8d03500aec05e92e1f6d38e5fbfdd1163 | [
"MIT"
] | 6 | 2018-05-31T08:29:27.000Z | 2021-09-24T01:27:23.000Z | defmodule Fiet.RSS2 do
@moduledoc """
RSS 2.0 parser, comply with [RSS 2.0 at Harvard Law](http://cyber.harvard.edu/rss/rss.html).
"""
use Fiet.RSS2.Engine
@doc """
Parses RSS 2.0 XML document.
## Example
iex> rss2 = File.read!("/path/to/rss2.xml")
iex> Fiet.RSS2.parse(rss2)
{:ok,
... | 34.485294 | 268 | 0.533049 |
2da7bf76926eabc691818f8a0c5b96423c225f34 | 3,784 | exs | Elixir | test/phoenix/live_dashboard/pages/ports_page_test.exs | uumo/phoenix_live_dashboard | cd07929341d9dca0f85b58c624c62d63cf7c2f07 | [
"MIT"
] | null | null | null | test/phoenix/live_dashboard/pages/ports_page_test.exs | uumo/phoenix_live_dashboard | cd07929341d9dca0f85b58c624c62d63cf7c2f07 | [
"MIT"
] | null | null | null | test/phoenix/live_dashboard/pages/ports_page_test.exs | uumo/phoenix_live_dashboard | cd07929341d9dca0f85b58c624c62d63cf7c2f07 | [
"MIT"
] | null | null | null | defmodule Phoenix.LiveDashboard.PortsPageTest do
use ExUnit.Case, async: true
import Phoenix.ConnTest
import Phoenix.LiveViewTest
@endpoint Phoenix.LiveDashboardTest.Endpoint
test "menu_link/2" do
assert {:ok, "Ports"} = Phoenix.LiveDashboard.PortsPage.menu_link(nil, nil)
end
test "shows ports with... | 36.384615 | 95 | 0.649313 |
2da7d4515a2bd146650b7466ee07d164fb285ec2 | 192 | ex | Elixir | lib/flow.ex | phereford/flow | 25dca2058fa74037dc1283b74df6a349d4fedbd5 | [
"MIT"
] | null | null | null | lib/flow.ex | phereford/flow | 25dca2058fa74037dc1283b74df6a349d4fedbd5 | [
"MIT"
] | null | null | null | lib/flow.ex | phereford/flow | 25dca2058fa74037dc1283b74df6a349d4fedbd5 | [
"MIT"
] | null | null | null | defmodule Flow do
@moduledoc """
Documentation for `Flow`.
"""
@doc """
Hello world.
## Examples
iex> Flow.hello()
:world
"""
def hello do
:world
end
end
| 10.105263 | 27 | 0.536458 |
2da7d87444efcdf605b270e21082edfa1c6bbdd2 | 1,649 | ex | Elixir | clients/app_engine/lib/google_api/app_engine/v1/model/list_services_response.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/app_engine/lib/google_api/app_engine/v1/model/list_services_response.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/app_engine/lib/google_api/app_engine/v1/model/list_services_response.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... | 32.98 | 106 | 0.757429 |
2da7daaa5242dbe26c694d7ec59d4a2cab0d3d30 | 1,671 | ex | Elixir | lib/honeystream_web/endpoint.ex | TheBeeCashers/HoneyStream | 469a505b1c01597bc746f8eaf117410ae4bc56e0 | [
"MIT"
] | 6 | 2018-10-27T10:55:41.000Z | 2018-11-06T04:48:33.000Z | lib/honeystream_web/endpoint.ex | TheBeeCashers/HoneyStream | 469a505b1c01597bc746f8eaf117410ae4bc56e0 | [
"MIT"
] | 2 | 2018-10-28T14:18:16.000Z | 2018-10-28T14:18:30.000Z | lib/honeystream_web/endpoint.ex | TheBeeCashers/HoneyStream | 469a505b1c01597bc746f8eaf117410ae4bc56e0 | [
"MIT"
] | null | null | null | defmodule HoneystreamWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :honeystream
socket "/socket", HoneystreamWeb.UserSocket
# Serve at "/" the static files from "priv/static" directory.
#
# You should set gzip to true if you are running phoenix.digest
# when deploying your static files in production.
p... | 29.839286 | 95 | 0.71155 |
2da828fb2c558bc7ccee7eda409201d2b727f0cd | 1,954 | exs | Elixir | mix.exs | SkullDarth/upnid-challenge-twitter-api | 799f2bfa8864848423eeddc24d3a5993152eb464 | [
"MIT"
] | 2 | 2019-12-05T21:37:48.000Z | 2020-01-02T02:43:33.000Z | mix.exs | SkullDarth/upnid-challenge-twitter-api | 799f2bfa8864848423eeddc24d3a5993152eb464 | [
"MIT"
] | null | null | null | mix.exs | SkullDarth/upnid-challenge-twitter-api | 799f2bfa8864848423eeddc24d3a5993152eb464 | [
"MIT"
] | null | null | null | defmodule Twitter.MixProject do
use Mix.Project
@elixir_version "~> 1.6"
@version "0.0.1"
def project do
[
app: :twitter,
version: @version,
elixir: @elixir_version,
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix, :gettext] ++ Mix.compilers(),
start_perma... | 26.767123 | 79 | 0.577789 |
2da86574cbaba36f2efeecc61d44247b335165d6 | 7,318 | exs | Elixir | test/groupher_server/cms/comments/blog_comment_emotions_test.exs | coderplanets/coderplanets_server | 3663e56340d6d050e974c91f7e499d8424fc25e9 | [
"Apache-2.0"
] | 240 | 2018-11-06T09:36:54.000Z | 2022-02-20T07:12:36.000Z | test/groupher_server/cms/comments/blog_comment_emotions_test.exs | coderplanets/coderplanets_server | 3663e56340d6d050e974c91f7e499d8424fc25e9 | [
"Apache-2.0"
] | 363 | 2018-07-11T03:38:14.000Z | 2021-12-14T01:42:40.000Z | test/groupher_server/cms/comments/blog_comment_emotions_test.exs | mydearxym/mastani_server | f24034a4a5449200165cf4a547964a0961793eab | [
"Apache-2.0"
] | 22 | 2019-01-27T11:47:56.000Z | 2021-02-28T13:17:52.000Z | defmodule GroupherServer.Test.CMS.Comments.BlogCommentEmotions do
@moduledoc false
use GroupherServer.TestTools
alias Helper.ORM
alias GroupherServer.CMS
alias CMS.Model.{Comment, Embeds, CommentUserEmotion}
@default_emotions Embeds.CommentEmotion.default_emotions()
setup do
{:ok, user} = db_inse... | 37.917098 | 95 | 0.68393 |
2da866e131e6546e2c7f49bd7ef9c38c7d39a8ae | 64 | ex | Elixir | lib/money_sql.ex | seantanly/money_sql | 4511d05c55a9e953c2652ff777f17053d0cdce47 | [
"Apache-2.0"
] | null | null | null | lib/money_sql.ex | seantanly/money_sql | 4511d05c55a9e953c2652ff777f17053d0cdce47 | [
"Apache-2.0"
] | null | null | null | lib/money_sql.ex | seantanly/money_sql | 4511d05c55a9e953c2652ff777f17053d0cdce47 | [
"Apache-2.0"
] | null | null | null | defmodule Money.Sql do
@moduledoc false
# require Money
end
| 12.8 | 22 | 0.75 |
2da87d0d468477b31690ee4f480bede28dac421e | 30,199 | ex | Elixir | lib/cldr/interval.ex | fertapric/cldr_dates_times | d1eff81c7a6e4d84484646465650d26d5dfc51db | [
"Apache-2.0"
] | null | null | null | lib/cldr/interval.ex | fertapric/cldr_dates_times | d1eff81c7a6e4d84484646465650d26d5dfc51db | [
"Apache-2.0"
] | null | null | null | lib/cldr/interval.ex | fertapric/cldr_dates_times | d1eff81c7a6e4d84484646465650d26d5dfc51db | [
"Apache-2.0"
] | null | null | null | defmodule Cldr.Interval do
@moduledoc """
Interval formats allow for software to format intervals like "Jan 10-12, 2008" as a
shorter and more natural format than "Jan 10, 2008 - Jan 12, 2008". They are designed
to take a start and end date, time or datetime plus a formatting pattern
and use that information ... | 35.865796 | 103 | 0.660055 |
2da89312b4c4b8c1688d3046fc624a1442bd6818 | 1,450 | exs | Elixir | mix.exs | anakind/phoenix-lrucache-api | cfb0dfba181fe196dd0d77dba9854dd9c50ba070 | [
"MIT"
] | null | null | null | mix.exs | anakind/phoenix-lrucache-api | cfb0dfba181fe196dd0d77dba9854dd9c50ba070 | [
"MIT"
] | null | null | null | mix.exs | anakind/phoenix-lrucache-api | cfb0dfba181fe196dd0d77dba9854dd9c50ba070 | [
"MIT"
] | null | null | null | defmodule LrucacheApi.MixProject do
use Mix.Project
def project do
[
app: :lrucache_api,
version: "0.1.0",
elixir: "~> 1.7",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix, :gettext] ++ Mix.compilers(),
start_permanent: Mix.env() == :prod,
aliases: alias... | 25 | 84 | 0.601379 |
2da8bbb5227d56f5b9d7af9e8df652a42ac663ab | 653 | exs | Elixir | apps/examples/mix.exs | ihorkatkov/tai | 09f9f15d2c385efe762ae138a8570f1e3fd41f26 | [
"MIT"
] | null | null | null | apps/examples/mix.exs | ihorkatkov/tai | 09f9f15d2c385efe762ae138a8570f1e3fd41f26 | [
"MIT"
] | null | null | null | apps/examples/mix.exs | ihorkatkov/tai | 09f9f15d2c385efe762ae138a8570f1e3fd41f26 | [
"MIT"
] | null | null | null | defmodule Examples.MixProject do
use Mix.Project
def project do
[
app: :examples,
version: "0.0.43",
build_path: "../../_build",
config_path: "../../config/config.exs",
deps_path: "../../deps",
lockfile: "../../mix.lock",
elixir: "~> 1.8",
start_permanent: Mix.en... | 19.205882 | 56 | 0.54977 |
2da8c4bf5d22863b8f74225d216733e225b97128 | 1,811 | exs | Elixir | rel/config.exs | Baradoy/boots_of_speed | 6004da8fb43e15cb7443e0bd00fe70c936a41015 | [
"MIT"
] | 1 | 2019-04-18T05:10:21.000Z | 2019-04-18T05:10:21.000Z | rel/config.exs | Baradoy/boots_of_speed | 6004da8fb43e15cb7443e0bd00fe70c936a41015 | [
"MIT"
] | 3 | 2020-07-16T17:41:44.000Z | 2021-05-08T03:39:49.000Z | rel/config.exs | Baradoy/boots_of_speed | 6004da8fb43e15cb7443e0bd00fe70c936a41015 | [
"MIT"
] | null | null | null | # Import all plugins from `rel/plugins`
# They can then be used by adding `plugin MyPlugin` to
# either an environment, or release definition, where
# `MyPlugin` is the name of the plugin module.
~w(rel plugins *.exs)
|> Path.join()
|> Path.wildcard()
|> Enum.map(&Code.eval_file(&1))
use Mix.Releases.Config,
# Thi... | 32.339286 | 81 | 0.733297 |
2da8e57ed634e20eb46f31136144f81dbb388674 | 2,802 | ex | Elixir | lib/plug/stats.ex | salemove/stats_plug | 926378cf4afd9e628a48331a33a53181d0d9dcb7 | [
"MIT"
] | null | null | null | lib/plug/stats.ex | salemove/stats_plug | 926378cf4afd9e628a48331a33a53181d0d9dcb7 | [
"MIT"
] | 7 | 2021-02-05T16:14:08.000Z | 2021-03-23T16:21:36.000Z | lib/plug/stats.ex | salemove/stats_plug | 926378cf4afd9e628a48331a33a53181d0d9dcb7 | [
"MIT"
] | null | null | null | defmodule Glia.StatsPlug do
@moduledoc """
This Plug emits metrics after every processed HTTP request.
The metric emitted is called "web.request" (configurable) and
contains the following tags:
* `action` - Controller and action name, underscored (e.g. "queue_controller.show")
* `http_method` - HTTP m... | 27.470588 | 90 | 0.680228 |
2da8f084f1868138019d7c48b08536b496ebe13c | 1,731 | ex | Elixir | lib/oath/alt.ex | naramore/highstorm | 1150ffd48e147b1a5e4f507e59eb788dc7d824c4 | [
"MIT"
] | null | null | null | lib/oath/alt.ex | naramore/highstorm | 1150ffd48e147b1a5e4f507e59eb788dc7d824c4 | [
"MIT"
] | null | null | null | lib/oath/alt.ex | naramore/highstorm | 1150ffd48e147b1a5e4f507e59eb788dc7d824c4 | [
"MIT"
] | null | null | null | defmodule Oath.Alt do
@moduledoc false
@behaviour Access
defstruct specs: [],
regex?: false
@type t :: %__MODULE__{
specs: [{Oath.key(), Oath.t()}, ...],
regex?: boolean
}
@impl Access
def fetch(%__MODULE__{specs: specs}, key) do
Keyword.fetch(specs, key)
end... | 25.835821 | 83 | 0.552282 |
2da906afdc11a133f98d10a2075a7fa0745c76c0 | 10,762 | exs | Elixir | test/sshkit/ssh/channel_test.exs | Bugagazavr/sshkit.ex | 4180f372a60e39b6a5f13e403f4664e6338b6105 | [
"MIT"
] | null | null | null | test/sshkit/ssh/channel_test.exs | Bugagazavr/sshkit.ex | 4180f372a60e39b6a5f13e403f4664e6338b6105 | [
"MIT"
] | null | null | null | test/sshkit/ssh/channel_test.exs | Bugagazavr/sshkit.ex | 4180f372a60e39b6a5f13e403f4664e6338b6105 | [
"MIT"
] | null | null | null | defmodule SSHKit.SSH.ChannelTest do
use ExUnit.Case, async: true
import Mox
import SSHKit.SSH.Channel
alias SSHKit.SSH.Channel
alias SSHKit.SSH.Connection
setup do
Mox.verify_on_exit!
conn = %Connection{ref: :test_connection, impl: Connection.ImplMock}
chan = %Channel{connection: conn, type:... | 32.911315 | 104 | 0.572942 |
2da90781794e6bc381c72f8463eeb8199736927c | 3,741 | ex | Elixir | clients/slides/lib/google_api/slides/v1/model/shape_properties.ex | jamesvl/elixir-google-api | 6c87fb31d996f08fb42ce6066317e9d652a87acc | [
"Apache-2.0"
] | null | null | null | clients/slides/lib/google_api/slides/v1/model/shape_properties.ex | jamesvl/elixir-google-api | 6c87fb31d996f08fb42ce6066317e9d652a87acc | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/slides/lib/google_api/slides/v1/model/shape_properties.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... | 63.40678 | 405 | 0.750601 |
2da94154ba5239ff41992899954cb39451c9498f | 712 | ex | Elixir | clients/elixir/generated/lib/adobe_experience_manager(aem)api/model/keystore_chain_items.ex | hoomaan-kh/swagger-aem | 0b19225bb6e071df761d176cbc13565891fe895f | [
"Apache-2.0"
] | null | null | null | clients/elixir/generated/lib/adobe_experience_manager(aem)api/model/keystore_chain_items.ex | hoomaan-kh/swagger-aem | 0b19225bb6e071df761d176cbc13565891fe895f | [
"Apache-2.0"
] | null | null | null | clients/elixir/generated/lib/adobe_experience_manager(aem)api/model/keystore_chain_items.ex | hoomaan-kh/swagger-aem | 0b19225bb6e071df761d176cbc13565891fe895f | [
"Apache-2.0"
] | null | null | null | # NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
# https://openapi-generator.tech
# Do not edit the class manually.
defmodule AdobeExperienceManager(AEM)API.Model.KeystoreChainItems do
@moduledoc """
"""
@derive [Poison.Encoder]
defstruct [
:"subject",
:"i... | 20.941176 | 91 | 0.657303 |
2da94565d35ae6061a508ce4547896e8699337e3 | 1,893 | ex | Elixir | lib/console_web/controllers/membership_controller.ex | JeffcoTrading/console | 78a6634b0f1cbe922de02488ecc0492b0680e724 | [
"Apache-2.0"
] | 1 | 2021-11-18T13:32:47.000Z | 2021-11-18T13:32:47.000Z | lib/console_web/controllers/membership_controller.ex | JeffcoTrading/console | 78a6634b0f1cbe922de02488ecc0492b0680e724 | [
"Apache-2.0"
] | null | null | null | lib/console_web/controllers/membership_controller.ex | JeffcoTrading/console | 78a6634b0f1cbe922de02488ecc0492b0680e724 | [
"Apache-2.0"
] | null | null | null | defmodule ConsoleWeb.MembershipController do
use ConsoleWeb, :controller
alias Console.Organizations
alias Console.Organizations.Invitation
plug ConsoleWeb.Plug.AuthorizeAction
action_fallback(ConsoleWeb.FallbackController)
def update(conn, %{"id" => id, "membership" => attrs}) do
current_organizati... | 36.403846 | 151 | 0.714739 |
2da951d88803cd7b686bb7ce9fac7b714b44058f | 1,890 | ex | Elixir | lib/changex/formatter/terminal.ex | kianmeng/changex | 655fa92d1b6bc4d588ebef7c0dc7b9cf547c733c | [
"MIT"
] | null | null | null | lib/changex/formatter/terminal.ex | kianmeng/changex | 655fa92d1b6bc4d588ebef7c0dc7b9cf547c733c | [
"MIT"
] | null | null | null | lib/changex/formatter/terminal.ex | kianmeng/changex | 655fa92d1b6bc4d588ebef7c0dc7b9cf547c733c | [
"MIT"
] | null | null | null | defmodule Changex.Formatter.Terminal do
use Changex.Formatter
@moduledoc """
Output the formatted changelog to the terminal.
"""
@doc """
Take a map of commits in the following format:
%{
fix: %{
scope1: [commit1, commit2],
scope2: [commit5, commit6]
}
fe... | 23.04878 | 76 | 0.586243 |
2da95485ac1dfe4b192cd7641dc47bbe1dd0837c | 1,715 | ex | Elixir | clients/content/lib/google_api/content/v2/model/orderpayments_notify_refund_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/content/lib/google_api/content/v2/model/orderpayments_notify_refund_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/model/orderpayments_notify_refund_response.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 ... | 34.3 | 202 | 0.74344 |
2da97d4c09b8537f281a6ef33b2b91c0f644805e | 748 | exs | Elixir | bash/template_payload_export_config.exs | CCOMJHC/ASVG_tools | 94531ca83ac3a2fd3394b807c46b871be48b2512 | [
"BSD-2-Clause"
] | null | null | null | bash/template_payload_export_config.exs | CCOMJHC/ASVG_tools | 94531ca83ac3a2fd3394b807c46b871be48b2512 | [
"BSD-2-Clause"
] | null | null | null | bash/template_payload_export_config.exs | CCOMJHC/ASVG_tools | 94531ca83ac3a2fd3394b807c46b871be48b2512 | [
"BSD-2-Clause"
] | 1 | 2018-10-01T16:33:05.000Z | 2018-10-01T16:33:05.000Z | <outputConfig>
<type>csv</type>
<requiredData>
<id>"Service Manager":"vehicle/c-worker-4/payload":5:"c-worker-4.payload(0)":0</id>
<id>"Service Manager":"vehicle/c-worker-4/payload":5:"c-worker-4.payload(0)":1</id>
<id>"Service Manager":"vehicle/c-worker-4/payload":5:"c-worker-4.payload(0)":2</id>
<id>... | 39.368421 | 86 | 0.68984 |
2da98652d242075138f825057b54eca3deda2197 | 1,932 | ex | Elixir | apps/ecto_gen_error_reproduce_web/lib/ecto_gen_error_reproduce_web/telemetry.ex | TheMaikXX/ecto_gen_error_reproduce_umbrella | 14af47d24b17a9478c4a67715995fa45fc9cc02a | [
"MIT"
] | null | null | null | apps/ecto_gen_error_reproduce_web/lib/ecto_gen_error_reproduce_web/telemetry.ex | TheMaikXX/ecto_gen_error_reproduce_umbrella | 14af47d24b17a9478c4a67715995fa45fc9cc02a | [
"MIT"
] | null | null | null | apps/ecto_gen_error_reproduce_web/lib/ecto_gen_error_reproduce_web/telemetry.ex | TheMaikXX/ecto_gen_error_reproduce_umbrella | 14af47d24b17a9478c4a67715995fa45fc9cc02a | [
"MIT"
] | null | null | null | defmodule EctoGenErrorReproduceWeb.Telemetry do
use Supervisor
import Telemetry.Metrics
def start_link(arg) do
Supervisor.start_link(__MODULE__, arg, name: __MODULE__)
end
@impl true
def init(_arg) do
children = [
# Telemetry poller will execute the given period measurements
# every 10... | 34.5 | 96 | 0.690994 |
2da9a2c03a2ccbe7791ff6d4f6596277fc1c6757 | 302 | exs | Elixir | test/features/access_get_test.exs | qhwa/formular | d836a38f437a947684913de42460203cdf2a5ae2 | [
"MIT"
] | 9 | 2021-05-07T22:26:34.000Z | 2022-02-16T09:30:02.000Z | test/features/access_get_test.exs | qhwa/formular | d836a38f437a947684913de42460203cdf2a5ae2 | [
"MIT"
] | 6 | 2021-08-29T01:57:03.000Z | 2021-12-27T03:00:59.000Z | test/features/access_get_test.exs | qhwa/formular | d836a38f437a947684913de42460203cdf2a5ae2 | [
"MIT"
] | null | null | null | defmodule AccessGetTest do
use ExUnit.Case
defdelegate eval(code, binding, opts \\ []), to: Formular
test "with `Access.get/2`" do
code = """
params[:foo]
"""
assert eval(code, params: %{}) == {:ok, nil}
assert eval(code, params: %{foo: "bar"}) == {:ok, "bar"}
end
end
| 20.133333 | 60 | 0.569536 |
2da9a320010c47ca15c97545828e9a3da3975d96 | 2,468 | exs | Elixir | config/dev.exs | msimonborg/live_chat | 0a2405b0399e3af569a5c24d8b0c6295132d9561 | [
"MIT"
] | null | null | null | config/dev.exs | msimonborg/live_chat | 0a2405b0399e3af569a5c24d8b0c6295132d9561 | [
"MIT"
] | null | null | null | config/dev.exs | msimonborg/live_chat | 0a2405b0399e3af569a5c24d8b0c6295132d9561 | [
"MIT"
] | null | null | null | import Config
# Configure your database
config :live_chat, LiveChat.Repo,
username: "postgres",
password: "postgres",
hostname: "localhost",
database: "live_chat_dev",
show_sensitive_data_on_connection_error: true,
pool_size: 10
# For development, we disable any cache and enable
# debugging and code reloa... | 32.473684 | 86 | 0.711102 |
2da9d7633a6912700dbdfd4ed86757d41731072b | 151 | ex | Elixir | lib/react_render/render_error.ex | luisgserrano/elixir_react_render | 4c2e7937b4b1a068b089bec2dfb6c19f09bc1281 | [
"MIT"
] | 106 | 2018-06-13T14:23:30.000Z | 2022-02-13T02:44:04.000Z | lib/react_render/render_error.ex | luisgserrano/elixir_react_render | 4c2e7937b4b1a068b089bec2dfb6c19f09bc1281 | [
"MIT"
] | 38 | 2018-06-30T16:02:55.000Z | 2021-08-02T11:15:17.000Z | lib/react_render/render_error.ex | luisgserrano/elixir_react_render | 4c2e7937b4b1a068b089bec2dfb6c19f09bc1281 | [
"MIT"
] | 22 | 2018-08-02T01:45:37.000Z | 2021-07-05T03:12:59.000Z | defmodule ReactRender.RenderError do
@moduledoc """
Error when unable to render given component
"""
defexception message: nil, stack: nil
end
| 18.875 | 45 | 0.741722 |
2da9e134b43427701a2539f32c486106e2354dcd | 2,426 | ex | Elixir | clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/volume_mount.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/volume_mount.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/volume_mount.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"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... | 40.433333 | 253 | 0.725474 |
2daa1420f8f175ea8136d63acb401eaa9be324b0 | 8,996 | ex | Elixir | lib/codes/codes_t87.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_t87.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_t87.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | defmodule IcdCode.ICDCode.Codes_T87 do
alias IcdCode.ICDCode
def _T870X1 do
%ICDCode{full_code: "T870X1",
category_code: "T87",
short_code: "0X1",
full_name: "Complications of reattached (part of) right upper extremity",
short_name: "Complications of reattached (part of) r... | 38.775862 | 92 | 0.641063 |
2daa203fb125b5907d5d6a93086c3aab1a6e715b | 2,976 | ex | Elixir | lib/faker/date.ex | pharosproduction/faker | 91deca51b3dc4bf8de75f81480e9f8880aa93886 | [
"MIT"
] | null | null | null | lib/faker/date.ex | pharosproduction/faker | 91deca51b3dc4bf8de75f81480e9f8880aa93886 | [
"MIT"
] | null | null | null | lib/faker/date.ex | pharosproduction/faker | 91deca51b3dc4bf8de75f81480e9f8880aa93886 | [
"MIT"
] | null | null | null | if Version.match?(System.version(), ">= 1.3.0") do
defmodule Faker.Date do
@moduledoc """
Functions for generating dates
"""
@seconds_per_day 86400
@doc """
Returns a random date of birth for a person with an age specified by a number or range
## Examples
date_of_birth #=> ~D[1... | 28.615385 | 121 | 0.616263 |
2daa583a4359eb9f84db761c12c4b6698f4654b4 | 1,969 | exs | Elixir | config/prod.exs | ssuprunenko/phoenix-vue-2-example | 78498514927ed507ef911877f9fea8ef88541193 | [
"MIT"
] | 67 | 2016-10-01T03:17:18.000Z | 2021-01-17T15:04:27.000Z | config/prod.exs | marvelperseus/phoenix-vue-2-example | 78498514927ed507ef911877f9fea8ef88541193 | [
"MIT"
] | 1 | 2017-01-03T11:30:20.000Z | 2017-01-03T11:30:20.000Z | config/prod.exs | marvelperseus/phoenix-vue-2-example | 78498514927ed507ef911877f9fea8ef88541193 | [
"MIT"
] | 10 | 2016-10-15T15:36:46.000Z | 2019-07-29T01:58:03.000Z | use Mix.Config
# For production, we configure the host to read the PORT
# from the system environment. Therefore, you will need
# to set PORT=80 before running your server.
#
# You should also configure the url host to something
# meaningful, we use this information when generating URLs.
#
# Finally, we also include t... | 31.758065 | 67 | 0.709497 |
2daa6668946fe5fb4d35da7edb28c82f92f82733 | 112 | ex | Elixir | lib/freegiving/repo.ex | jfcloutier/freegiving | 2ab3821595996fc295c5b55515d6f60cbce05181 | [
"Unlicense"
] | null | null | null | lib/freegiving/repo.ex | jfcloutier/freegiving | 2ab3821595996fc295c5b55515d6f60cbce05181 | [
"Unlicense"
] | null | null | null | lib/freegiving/repo.ex | jfcloutier/freegiving | 2ab3821595996fc295c5b55515d6f60cbce05181 | [
"Unlicense"
] | null | null | null | defmodule Freegiving.Repo do
use Ecto.Repo,
otp_app: :freegiving,
adapter: Ecto.Adapters.Postgres
end
| 18.666667 | 35 | 0.741071 |
2daaa023fbe9eb74bee01f773f1bed2dba6e7a6f | 1,388 | ex | Elixir | clients/classroom/lib/google_api/classroom/v1/model/turn_in_student_submission_request.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/classroom/lib/google_api/classroom/v1/model/turn_in_student_submission_request.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/classroom/lib/google_api/classroom/v1/model/turn_in_student_submission_request.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"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... | 32.27907 | 91 | 0.770893 |
2daaaaf99d7c4820e84a7e534806bee7a5a5c56e | 1,069 | ex | Elixir | lib/mesh_relay/application.ex | NullVoxPopuli/mesh-relay-phoenix | 111bc650709eb6ee63fda8410948c33993a7f033 | [
"MIT"
] | 5 | 2019-03-31T13:02:49.000Z | 2021-01-01T05:18:45.000Z | lib/mesh_relay/application.ex | NullVoxPopuli/mesh-relay-phoenix | 111bc650709eb6ee63fda8410948c33993a7f033 | [
"MIT"
] | 4 | 2017-07-16T06:30:49.000Z | 2018-06-22T19:37:13.000Z | lib/mesh_relay/application.ex | NullVoxPopuli/mesh-relay-phoenix | 111bc650709eb6ee63fda8410948c33993a7f033 | [
"MIT"
] | 3 | 2017-10-18T00:12:57.000Z | 2021-07-27T08:10:39.000Z | defmodule MeshRelay.Application do
use Application
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
def start(_type, _args) do
import Supervisor.Spec
# Define workers and child supervisors to be supervised
children = [
# Start the Ecto repository
... | 32.393939 | 83 | 0.710009 |
2daaaea10004d457bea813cb92a0353c4ddff3b0 | 24,137 | exs | Elixir | test/ex_trello_test.exs | yammine/ex_trello | a252cb34a2c08500ba62ad2f86f9d55ca609170f | [
"MIT"
] | 1 | 2020-09-14T20:49:53.000Z | 2020-09-14T20:49:53.000Z | test/ex_trello_test.exs | yammine/ex_trello | a252cb34a2c08500ba62ad2f86f9d55ca609170f | [
"MIT"
] | null | null | null | test/ex_trello_test.exs | yammine/ex_trello | a252cb34a2c08500ba62ad2f86f9d55ca609170f | [
"MIT"
] | null | null | null | defmodule ExTrelloTest do
use ExUnit.Case, async: false
use ExVCR.Mock, adapter: ExVCR.Adapter.Hackney
doctest ExTrello
alias ExTrello.Model.{Action, Board, Card, Label, Member, Organization, Checklist, Notification}
alias ExTrello.Model.List, as: TrelloList # Necessary because Elixit.List module is being us... | 33.710894 | 189 | 0.661308 |
2daae50274653eede853aa927831f648fc8e01bb | 202 | ex | Elixir | lib/phone/mu.ex | davidkovsky/phone | 83108ab1042efe62778c7363f5d02ef888883408 | [
"Apache-2.0"
] | 97 | 2016-04-05T13:08:41.000Z | 2021-12-25T13:08:34.000Z | lib/phone/mu.ex | davidkovsky/phone | 83108ab1042efe62778c7363f5d02ef888883408 | [
"Apache-2.0"
] | 70 | 2016-06-14T00:56:00.000Z | 2022-02-10T19:43:14.000Z | lib/phone/mu.ex | davidkovsky/phone | 83108ab1042efe62778c7363f5d02ef888883408 | [
"Apache-2.0"
] | 31 | 2016-04-21T22:26:12.000Z | 2022-01-24T21:40:00.000Z | defmodule Phone.MU do
@moduledoc false
use Helper.Country
def regex, do: ~r/^(230)()(.{8})/
def country, do: "Mauritius"
def a2, do: "MU"
def a3, do: "MUS"
matcher(:regex, ["230"])
end
| 15.538462 | 35 | 0.59901 |
2daae81868ff59c5ef3f3287a35b4ce9434c750f | 438 | exs | Elixir | test/pay_web/views/error_view_test.exs | israel206/Pay | e1a6ec984e65f783b6e2734805a23cf0ea2e8f78 | [
"MIT"
] | 1 | 2021-12-13T03:30:22.000Z | 2021-12-13T03:30:22.000Z | test/pay_web/views/error_view_test.exs | israel206/Pay | e1a6ec984e65f783b6e2734805a23cf0ea2e8f78 | [
"MIT"
] | null | null | null | test/pay_web/views/error_view_test.exs | israel206/Pay | e1a6ec984e65f783b6e2734805a23cf0ea2e8f78 | [
"MIT"
] | null | null | null | defmodule PayWeb.ErrorViewTest do
use PayWeb.ConnCase, async: true
# Bring render/3 and render_to_string/3 for testing custom views
import Phoenix.View
test "renders 404.json" do
assert render(PayWeb.ErrorView, "404.json", []) == %{errors: %{detail: "Not Found"}}
end
test "renders 500.json" do
as... | 27.375 | 88 | 0.671233 |
2dab17842c75b0cbceb42270d6859055984edeb7 | 9,756 | ex | Elixir | clients/run/lib/google_api/run/v1/model/object_meta.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/run/lib/google_api/run/v1/model/object_meta.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/run/lib/google_api/run/v1/model/object_meta.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... | 109.617978 | 1,495 | 0.747745 |
2dab1822788ec44303a9114c98226004ee57f720 | 904 | exs | Elixir | farmbot_os/config/host/dev.exs | gdwb/farmbot_os | 0ef2697c580c9fbf37a22daa063a64addfcb778d | [
"MIT"
] | 1 | 2021-08-23T13:36:14.000Z | 2021-08-23T13:36:14.000Z | farmbot_os/config/host/dev.exs | gdwb/farmbot_os | 0ef2697c580c9fbf37a22daa063a64addfcb778d | [
"MIT"
] | null | null | null | farmbot_os/config/host/dev.exs | gdwb/farmbot_os | 0ef2697c580c9fbf37a22daa063a64addfcb778d | [
"MIT"
] | null | null | null | use Mix.Config
data_path = Path.join(["/", "tmp", "farmbot"])
File.mkdir_p(data_path)
config :farmbot_ext,
data_path: data_path
config :farmbot_core, FarmbotCore.Config.Repo,
adapter: Sqlite.Ecto2,
loggers: [],
pool_size: 1,
database: Path.join(data_path, "config-#{Mix.env()}.sqlite3")
config :farmbot_cor... | 22.04878 | 63 | 0.705752 |
2dab6104891490d3afafbabc18bb086c99476dca | 1,180 | exs | Elixir | config/prod.secret.exs | lbrty/idp-backend | 81d5f10ef6177a1e678b994331c5a09abbdca8d6 | [
"Apache-2.0"
] | null | null | null | config/prod.secret.exs | lbrty/idp-backend | 81d5f10ef6177a1e678b994331c5a09abbdca8d6 | [
"Apache-2.0"
] | null | null | null | config/prod.secret.exs | lbrty/idp-backend | 81d5f10ef6177a1e678b994331c5a09abbdca8d6 | [
"Apache-2.0"
] | null | null | null | # In this file, we load production configuration and secrets
# from environment variables. You can also hardcode secrets,
# although such is generally not recommended and you have to
# remember to add this file to your .gitignore.
import Config
database_url =
System.get_env("DATABASE_URL") ||
raise """
envir... | 30.25641 | 76 | 0.721186 |
2dab868221379ec2f9b763110a3874955e7163b7 | 3,650 | ex | Elixir | test/support/k8s_mock_client.ex | coryodaniel/bonny | 1319a77139ed7af6cb6859d70d82fde6ac3961fc | [
"MIT"
] | 227 | 2018-12-30T20:13:47.000Z | 2022-03-26T03:49:07.000Z | test/support/k8s_mock_client.ex | coryodaniel/bonny | 1319a77139ed7af6cb6859d70d82fde6ac3961fc | [
"MIT"
] | 104 | 2018-12-20T02:16:28.000Z | 2022-03-28T07:18:06.000Z | test/support/k8s_mock_client.ex | coryodaniel/bonny | 1319a77139ed7af6cb6859d70d82fde6ac3961fc | [
"MIT"
] | 24 | 2019-02-14T10:18:09.000Z | 2022-02-08T04:18:32.000Z | # credo:disable-for-this-file
defmodule Bonny.K8sMockClient do
@moduledoc """
Mock `K8s.Client`
"""
def stream(%K8s.Operation{api_version: "reconciler.test.foos/v1"} = _op, _cluster) do
fake_stream = [
%{"name" => "foo"},
%{"name" => "bar"}
]
{:ok, fake_stream}
end
def stream(%K8s... | 40.10989 | 664 | 0.599178 |
2dabb225491eaf018a685e9c34c45c9f343c0915 | 2,495 | ex | Elixir | clients/container_analysis/lib/google_api/container_analysis/v1alpha1/model/upgrade_occurrence.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/container_analysis/lib/google_api/container_analysis/v1alpha1/model/upgrade_occurrence.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/container_analysis/lib/google_api/container_analysis/v1alpha1/model/upgrade_occurrence.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... | 47.075472 | 298 | 0.760321 |
2dabb74a5d0ef5cc5756f73f2050d9f570d8456d | 849 | exs | Elixir | test/misc_test.exs | joaohf/docker-elixir | cb378660abcb67f83478bf93e0ab02729b12a244 | [
"Apache-2.0"
] | null | null | null | test/misc_test.exs | joaohf/docker-elixir | cb378660abcb67f83478bf93e0ab02729b12a244 | [
"Apache-2.0"
] | null | null | null | test/misc_test.exs | joaohf/docker-elixir | cb378660abcb67f83478bf93e0ab02729b12a244 | [
"Apache-2.0"
] | null | null | null | defmodule MiscTest do
use ExUnit.Case
# New tests for Docker.Misc is in test/docker/misc_test.exs
@test_image "busybox"
@test_image_tag "latest"
setup_all do
IO.puts("Pulling #{@test_image}:#{@test_image_tag} for testing...")
Docker.Images.pull(@test_image, @test_image_tag)
:ok
end
# This i... | 27.387097 | 72 | 0.648999 |
2dac359d9e84f5dd690d68882d812174131e2659 | 3,484 | ex | Elixir | clients/monitoring/lib/google_api/monitoring/v3/model/time_interval.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/monitoring/lib/google_api/monitoring/v3/model/time_interval.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/monitoring/lib/google_api/monitoring/v3/model/time_interval.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... | 69.68 | 1,821 | 0.76349 |
2dac3bb2c81f462a7987e714573795c18f8ed701 | 484 | exs | Elixir | exercises/allergies/example.exs | jerith/elixir | 9a3f2a2fbee26a7b6a6b3ad74a9e6d1ff2495ed4 | [
"Apache-2.0"
] | 343 | 2017-06-22T16:28:28.000Z | 2022-03-25T21:33:32.000Z | exercises/allergies/example.exs | jerith/elixir | 9a3f2a2fbee26a7b6a6b3ad74a9e6d1ff2495ed4 | [
"Apache-2.0"
] | 583 | 2017-06-19T10:48:40.000Z | 2022-03-28T21:43:12.000Z | exercises/allergies/example.exs | jerith/elixir | 9a3f2a2fbee26a7b6a6b3ad74a9e6d1ff2495ed4 | [
"Apache-2.0"
] | 228 | 2017-07-05T07:09:32.000Z | 2022-03-27T08:59:08.000Z | defmodule Allergies do
import Bitwise
@allergens [
"eggs",
"peanuts",
"shellfish",
"strawberries",
"tomatoes",
"chocolate",
"pollen",
"cats"
]
def list(flags) do
Enum.with_index(@allergens)
|> Enum.filter(&flagged?(flags, &1))
|> Enum.map(fn {item, _} -> item end)
... | 16.689655 | 41 | 0.57438 |
2dac3ea913a851c3f4d6d0f07810b1c1d87d1e32 | 4,538 | ex | Elixir | clients/cloud_build/lib/google_api/cloud_build/v1/model/status.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/cloud_build/lib/google_api/cloud_build/v1/model/status.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/cloud_build/lib/google_api/cloud_build/v1/model/status.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"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... | 84.037037 | 2,549 | 0.755399 |
2dac4ee6eba1a448d0e47fd8386c78eac1511f60 | 1,392 | exs | Elixir | mix.exs | CloudI/cloudi_service_db_pgsql | ead88de3481009ed747154be669c6c2bf81de9d2 | [
"MIT"
] | null | null | null | mix.exs | CloudI/cloudi_service_db_pgsql | ead88de3481009ed747154be669c6c2bf81de9d2 | [
"MIT"
] | null | null | null | mix.exs | CloudI/cloudi_service_db_pgsql | ead88de3481009ed747154be669c6c2bf81de9d2 | [
"MIT"
] | null | null | null | #-*-Mode:elixir;coding:utf-8;tab-width:2;c-basic-offset:2;indent-tabs-mode:()-*-
# ex: set ft=elixir fenc=utf-8 sts=2 ts=2 sw=2 et nomod:
defmodule CloudIServiceDbPgsql do
use Mix.Project
def project do
[app: :cloudi_service_db_pgsql,
version: "2.0.4",
language: :erlang,
erlc_options: [
... | 24.421053 | 80 | 0.599856 |
2dac7e5676227e213d554d102069521df1124e07 | 448 | ex | Elixir | lib/nerves_runtime/kv/uboot_env.ex | pancho-villa/nerves_runtime | 2e88d55edb680de596c1405678556133adb4f9a9 | [
"Apache-2.0"
] | 49 | 2017-03-02T03:38:32.000Z | 2022-02-24T12:11:40.000Z | lib/nerves_runtime/kv/uboot_env.ex | pancho-villa/nerves_runtime | 2e88d55edb680de596c1405678556133adb4f9a9 | [
"Apache-2.0"
] | 83 | 2017-03-09T09:09:14.000Z | 2022-02-09T11:13:27.000Z | lib/nerves_runtime/kv/uboot_env.ex | pancho-villa/nerves_runtime | 2e88d55edb680de596c1405678556133adb4f9a9 | [
"Apache-2.0"
] | 21 | 2017-02-28T16:55:32.000Z | 2021-07-29T15:54:13.000Z | defmodule Nerves.Runtime.KV.UBootEnv do
@behaviour Nerves.Runtime.KV
@moduledoc false
@impl Nerves.Runtime.KV
def init(_opts) do
case UBootEnv.read() do
{:ok, kv} -> kv
_error -> %{}
end
end
@impl Nerves.Runtime.KV
def put(%{} = kv) do
case UBootEnv.read() do
{:ok, current... | 16.592593 | 39 | 0.5625 |
2dac90b70dfe5cd81fc0dab831cf7cd97f45dd0f | 67 | ex | Elixir | lib/kamleague_web/views/player_view.ex | mzavoloka/kamleague | ba29263ed54cac5c67b537c4b7d1dbc522215341 | [
"MIT"
] | null | null | null | lib/kamleague_web/views/player_view.ex | mzavoloka/kamleague | ba29263ed54cac5c67b537c4b7d1dbc522215341 | [
"MIT"
] | 2 | 2021-11-04T21:05:24.000Z | 2021-11-04T21:51:48.000Z | lib/kamleague_web/views/player_view.ex | mzavoloka/kamleague | ba29263ed54cac5c67b537c4b7d1dbc522215341 | [
"MIT"
] | 1 | 2021-11-04T18:40:26.000Z | 2021-11-04T18:40:26.000Z | defmodule KamleagueWeb.PlayerView do
use KamleagueWeb, :view
end
| 16.75 | 36 | 0.820896 |
2dacb86742afa1bb262e1031e38422a0cf732b70 | 584 | exs | Elixir | test/ffaker/ja_jp/name_test.exs | marocchino/ffaker | 5bb4420a8034db9f954a2464cd72039129ef2307 | [
"MIT"
] | 9 | 2016-11-09T15:50:05.000Z | 2021-02-02T05:45:06.000Z | test/ffaker/ja_jp/name_test.exs | marocchino/ffaker | 5bb4420a8034db9f954a2464cd72039129ef2307 | [
"MIT"
] | 3 | 2016-09-01T09:54:46.000Z | 2017-07-25T05:23:56.000Z | test/ffaker/ja_jp/name_test.exs | marocchino/ffaker | 5bb4420a8034db9f954a2464cd72039129ef2307 | [
"MIT"
] | 4 | 2016-11-22T17:51:48.000Z | 2021-02-02T05:45:01.000Z | defmodule Ffaker.JaJp.NameTest do
use ExUnit.Case, async: true
use Ffaker
import Ffaker.JaJp.Name
import Ffaker.Matcher, only: [assert_match: 2]
test "name/0" do
assert_match(~r/\A.+\z/, name())
end
test "first_name/0" do
assert first_name() in ~F(male_first_names) ++ ~F(female_first_names)
en... | 21.62963 | 73 | 0.700342 |
2dacc3e2f45514acd1d5c5368a51f2377ca809a7 | 3,827 | ex | Elixir | clients/android_enterprise/lib/google_api/android_enterprise/v1/model/app_restrictions_schema_restriction.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/android_enterprise/lib/google_api/android_enterprise/v1/model/app_restrictions_schema_restriction.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/android_enterprise/lib/google_api/android_enterprise/v1/model/app_restrictions_schema_restriction.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 49.064103 | 338 | 0.732166 |
2dacc965e045763c021f2ba3627d212e3811ce5b | 1,266 | ex | Elixir | web/models/stripe_external_account.ex | superdev999/Phoenix-project | ab13ac9366cdd0aa9581da7faf993b11aaa5344c | [
"MIT"
] | null | null | null | web/models/stripe_external_account.ex | superdev999/Phoenix-project | ab13ac9366cdd0aa9581da7faf993b11aaa5344c | [
"MIT"
] | null | null | null | web/models/stripe_external_account.ex | superdev999/Phoenix-project | ab13ac9366cdd0aa9581da7faf993b11aaa5344c | [
"MIT"
] | null | null | null | defmodule CodeCorps.StripeExternalAccount do
use CodeCorps.Web, :model
@type t :: %__MODULE__{}
schema "stripe_external_accounts" do
field :id_from_stripe, :string, null: false
field :account_id_from_stripe, :string, null: false
field :account_holder_name, :string
field :account_holder_type, :st... | 29.44186 | 101 | 0.725908 |
2dacd12f8a214f933be9878c4c73d7f00313b96c | 3,312 | ex | Elixir | lib/everything_location.ex | smeevil/everything_location | 1e34ea5b0277aa056d146e135af4adbefcb47467 | [
"WTFPL"
] | 1 | 2019-11-22T19:27:25.000Z | 2019-11-22T19:27:25.000Z | lib/everything_location.ex | smeevil/everything_location | 1e34ea5b0277aa056d146e135af4adbefcb47467 | [
"WTFPL"
] | null | null | null | lib/everything_location.ex | smeevil/everything_location | 1e34ea5b0277aa056d146e135af4adbefcb47467 | [
"WTFPL"
] | null | null | null | defmodule EverythingLocation do
@moduledoc ~S"""
Everything Location is as SAAS that can verify the correctness of and address, update or correct values, and return a certainty of those values.
This will also return a formatted address according to the rules of the country of that address.
For more information ... | 33.12 | 146 | 0.682367 |
2dace594ef73131f73df9d550544978a08528dd6 | 1,269 | exs | Elixir | config/prod.secret.exs | Fomich686/buy_the_food | ca4638a4efbb5f86347948ad07bcf7827f6523f9 | [
"Apache-2.0"
] | null | null | null | config/prod.secret.exs | Fomich686/buy_the_food | ca4638a4efbb5f86347948ad07bcf7827f6523f9 | [
"Apache-2.0"
] | null | null | null | config/prod.secret.exs | Fomich686/buy_the_food | ca4638a4efbb5f86347948ad07bcf7827f6523f9 | [
"Apache-2.0"
] | null | null | null | # In this file, we load production configuration and secrets
# from environment variables. You can also hardcode secrets,
# although such is generally not recommended and you have to
# remember to add this file to your .gitignore.
use Mix.Config
database_url =
System.get_env("DATABASE_URL") ||
raise """
envi... | 30.214286 | 67 | 0.724192 |
2dacf597546f2f654ca394bf1a86f03af1628295 | 3,057 | ex | Elixir | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v2beta1/model/serving_restriction.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v2beta1/model/serving_restriction.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v2beta1/model/serving_restriction.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... | 43.056338 | 162 | 0.73667 |
2dad14ace15ae262dd1381c2972108fb198380f6 | 2,328 | exs | Elixir | test/mastani_server/cms/post_test.exs | DavidAlphaFox/coderplanets_server | 3fd47bf3bba6cc04c9a34698201a60ad2f3e8254 | [
"Apache-2.0"
] | 1 | 2019-05-07T15:03:54.000Z | 2019-05-07T15:03:54.000Z | test/mastani_server/cms/post_test.exs | DavidAlphaFox/coderplanets_server | 3fd47bf3bba6cc04c9a34698201a60ad2f3e8254 | [
"Apache-2.0"
] | null | null | null | test/mastani_server/cms/post_test.exs | DavidAlphaFox/coderplanets_server | 3fd47bf3bba6cc04c9a34698201a60ad2f3e8254 | [
"Apache-2.0"
] | null | null | null | defmodule MastaniServer.Test.CMS.Post do
use MastaniServer.TestTools
alias Helper.ORM
alias MastaniServer.CMS
setup do
{:ok, user} = db_insert(:user)
# {:ok, post} = db_insert(:post)
{:ok, community} = db_insert(:community)
post_attrs = mock_attrs(:post, %{community_id: community.id})
{:... | 33.73913 | 95 | 0.640464 |
2dad25573f3e9b224dd5993c64e7bec06168c23f | 1,708 | ex | Elixir | lib/ex_binance/spot/private/cancel_order.ex | rupurt/ex_binance | fa3fe75878758eef73508c72533e881fbf6ea0d7 | [
"MIT"
] | 7 | 2019-04-12T12:46:53.000Z | 2021-06-29T19:43:41.000Z | lib/ex_binance/spot/private/cancel_order.ex | rupurt/ex_binance | fa3fe75878758eef73508c72533e881fbf6ea0d7 | [
"MIT"
] | 18 | 2020-05-25T09:03:58.000Z | 2021-06-24T19:44:29.000Z | lib/ex_binance/spot/private/cancel_order.ex | rupurt/ex_binance | fa3fe75878758eef73508c72533e881fbf6ea0d7 | [
"MIT"
] | 12 | 2019-08-08T09:20:59.000Z | 2021-04-12T19:19:43.000Z | defmodule ExBinance.Spot.Private.CancelOrder do
import ExBinance.Rest.SpotClient, only: [delete: 3]
alias ExBinance.Rest.SpotClient
alias ExBinance.Spot.Private.Responses
alias ExBinance.Timestamp
@type symbol :: String.t()
@type order_id :: String.t()
@type client_order_id :: String.t()
@type credenti... | 28.466667 | 86 | 0.683841 |
2dad4b64fb81333a9ceaa605cd6c67f5b319d3c0 | 2,946 | ex | Elixir | lib/live_view_collection/collection.ex | sandeshsoni/phoenix-liveview-collection | 6a3ae19f9aec1d2776a38edca2ff8497fc371257 | [
"MIT"
] | null | null | null | lib/live_view_collection/collection.ex | sandeshsoni/phoenix-liveview-collection | 6a3ae19f9aec1d2776a38edca2ff8497fc371257 | [
"MIT"
] | null | null | null | lib/live_view_collection/collection.ex | sandeshsoni/phoenix-liveview-collection | 6a3ae19f9aec1d2776a38edca2ff8497fc371257 | [
"MIT"
] | null | null | null | defmodule LiveViewCollection.Collection do
use Agent
require Logger
alias LiveViewCollection.Twitter
alias LiveViewCollection.Github
@default_query ""
@default_page 1
@default_page_size 10
def start_link(_) do
Agent.start_link(fn -> load_from_file() end, name: __MODULE__)
end
def all, do: Age... | 25.617391 | 97 | 0.611337 |
2dad86861ba92db852900fbfc0b996f6d014129d | 1,393 | ex | Elixir | lib/cuba_librato/librato_client.ex | TV4/cuba-librato | e2dcf139d6224b56f8f3158af596c319f71a6091 | [
"MIT"
] | null | null | null | lib/cuba_librato/librato_client.ex | TV4/cuba-librato | e2dcf139d6224b56f8f3158af596c319f71a6091 | [
"MIT"
] | null | null | null | lib/cuba_librato/librato_client.ex | TV4/cuba-librato | e2dcf139d6224b56f8f3158af596c319f71a6091 | [
"MIT"
] | null | null | null | defmodule CubaLibrato.LibratoClient do
alias CubaLibrato.{Credentials, HTTPClient}
def list_spaces(%Credentials{} = credentials) do
HTTPClient.get("/v1/spaces", credentials)
|> elem(1)
|> Map.get("spaces")
end
def list_charts(space_id, %Credentials{} = credentials) do
HTTPClient.get("/v1/space... | 30.955556 | 76 | 0.681981 |
2dadbec2843ed50e69f394e50c5ef8723cb06fd8 | 919 | exs | Elixir | test/grizzly/zwave/commands/failed_node_remove_status_test.exs | jellybob/grizzly | 290bee04cb16acbb9dc996925f5c501697b7ac94 | [
"Apache-2.0"
] | null | null | null | test/grizzly/zwave/commands/failed_node_remove_status_test.exs | jellybob/grizzly | 290bee04cb16acbb9dc996925f5c501697b7ac94 | [
"Apache-2.0"
] | null | null | null | test/grizzly/zwave/commands/failed_node_remove_status_test.exs | jellybob/grizzly | 290bee04cb16acbb9dc996925f5c501697b7ac94 | [
"Apache-2.0"
] | null | null | null | defmodule Grizzly.ZWave.Commands.FailedNodeRemoveStatusTest do
use ExUnit.Case, async: true
alias Grizzly.ZWave.Commands.FailedNodeRemoveStatus
test "creates the command and validates params" do
params = [seq_number: 2, node_id: 4, status: :done]
{:ok, _command} = FailedNodeRemoveStatus.new(params)
en... | 35.346154 | 75 | 0.727965 |
2dadc7ec5b360842239b8690b00cc57dcdcc0fbd | 1,711 | ex | Elixir | lib/swedbankpay_checkout/client/psp/payment_orders/common/order_item.ex | hooplab/swedbank-pay-checkout-elixir | 91c9034d898907d15c513623519382a0648212c3 | [
"MIT"
] | null | null | null | lib/swedbankpay_checkout/client/psp/payment_orders/common/order_item.ex | hooplab/swedbank-pay-checkout-elixir | 91c9034d898907d15c513623519382a0648212c3 | [
"MIT"
] | null | null | null | lib/swedbankpay_checkout/client/psp/payment_orders/common/order_item.ex | hooplab/swedbank-pay-checkout-elixir | 91c9034d898907d15c513623519382a0648212c3 | [
"MIT"
] | null | null | null | defmodule SwedbankpayCheckout.Client.Psp.PaymentOrders.Common.OrderItem do
@moduledoc """
"""
@typedoc """
.payment_order.order_item.type
"""
@type order_item_type ::
:PRODUCT | :SERVICE | :SHIPPING_FEE | :PAYMENT_FEE | :DISCOUNT | :VALUE_CODE | :OTHER
@typedoc """
.payment_order.order_item
... | 26.323077 | 264 | 0.592636 |
2dadeab7e0e9dcd557296aaf4b7bf84a68277289 | 124 | ex | Elixir | mix_and_otp/kv_umbrella/apps/kv/lib/kv.ex | toff63/elixir-sandbox | ac63f839b97ccb7a11e07fb1e505b7cd24e19cb3 | [
"Apache-2.0"
] | 1 | 2019-12-19T20:02:53.000Z | 2019-12-19T20:02:53.000Z | mix_and_otp/kv_umbrella/apps/kv/lib/kv.ex | toff63/elixir-sandbox | ac63f839b97ccb7a11e07fb1e505b7cd24e19cb3 | [
"Apache-2.0"
] | null | null | null | mix_and_otp/kv_umbrella/apps/kv/lib/kv.ex | toff63/elixir-sandbox | ac63f839b97ccb7a11e07fb1e505b7cd24e19cb3 | [
"Apache-2.0"
] | null | null | null | defmodule KV do
use Application
def start(_type, _args) do
KV.Supervisor.start_link(name: KV.Supervisor)
end
end
| 15.5 | 49 | 0.733871 |
2dae2b153086bcc778fd42db2ec6f712e02a2c41 | 1,879 | ex | Elixir | chat_elixir/lib/room.ex | rellen/grpc-in-elixir | 11b009351e5d2ac5a5b6c9b2aead30f395af4a3b | [
"Apache-2.0"
] | 1 | 2021-03-22T20:41:26.000Z | 2021-03-22T20:41:26.000Z | chat_elixir/lib/room.ex | rellen/grpc-in-elixir | 11b009351e5d2ac5a5b6c9b2aead30f395af4a3b | [
"Apache-2.0"
] | null | null | null | chat_elixir/lib/room.ex | rellen/grpc-in-elixir | 11b009351e5d2ac5a5b6c9b2aead30f395af4a3b | [
"Apache-2.0"
] | null | null | null | defmodule ChatElixir.Room do
use GenServer
alias ChatElixir.RoomRegistry, as: Reg
def start_link(_, {name, description} = args) do
via_name = {:via, Registry, {Reg, name, description}}
GenServer.start_link(__MODULE__, args, name: via_name)
end
def get_state(name) do
case Registry.lookup(Reg, na... | 26.097222 | 98 | 0.607238 |
2dae56ea8ef8daf14fdc29f2db10bc348449964e | 264 | ex | Elixir | apps/service_profile/lib/profile/metrics_reporter.ex | jdenen/hindsight | ef69b4c1a74c94729dd838a9a0849a48c9b6e04c | [
"Apache-2.0"
] | 12 | 2020-01-27T19:43:02.000Z | 2021-07-28T19:46:29.000Z | apps/service_profile/lib/profile/metrics_reporter.ex | jdenen/hindsight | ef69b4c1a74c94729dd838a9a0849a48c9b6e04c | [
"Apache-2.0"
] | 81 | 2020-01-28T18:07:23.000Z | 2021-11-22T02:12:13.000Z | apps/service_profile/lib/profile/metrics_reporter.ex | jdenen/hindsight | ef69b4c1a74c94729dd838a9a0849a48c9b6e04c | [
"Apache-2.0"
] | 10 | 2020-02-13T21:24:09.000Z | 2020-05-21T18:39:35.000Z | defmodule Profile.MetricsReporter do
@moduledoc """
Extension of `MetricsReporter` for scraping `Profile` metrics.
"""
use Properties, otp_app: :service_profile
getter(:port, default: 9568)
use MetricsReporter, name: :profile_metrics, port: port()
end
| 29.333333 | 64 | 0.746212 |
2dae6251d9ce403420d7900d6a862bee796ba748 | 2,562 | exs | Elixir | test/xdr/transactions/operations/clawback_test.exs | einerzg/stellar_base | 2d10c5fc3b8159efc5de10b5c7c665e3b57b3d8f | [
"MIT"
] | 3 | 2021-08-17T20:32:45.000Z | 2022-03-13T20:26:02.000Z | test/xdr/transactions/operations/clawback_test.exs | einerzg/stellar_base | 2d10c5fc3b8159efc5de10b5c7c665e3b57b3d8f | [
"MIT"
] | 45 | 2021-08-12T20:19:41.000Z | 2022-03-27T21:00:10.000Z | test/xdr/transactions/operations/clawback_test.exs | einerzg/stellar_base | 2d10c5fc3b8159efc5de10b5c7c665e3b57b3d8f | [
"MIT"
] | 2 | 2021-09-22T23:11:13.000Z | 2022-01-23T03:19:11.000Z | defmodule StellarBase.XDR.Operations.ClawbackTest do
use ExUnit.Case
alias StellarBase.XDR.{
AccountID,
AlphaNum4,
Asset,
AssetCode4,
AssetType,
CryptoKeyType,
Int64,
MuxedAccount,
PublicKey,
PublicKeyType,
UInt256
}
alias StellarBase.XDR.Operations.Clawback
alia... | 29.448276 | 98 | 0.607728 |
2dae660bc0bb6cd696e1bfaadaea1146ccc2fc85 | 154 | ex | Elixir | web/controllers/page_controller.ex | mule/phoenix-elm-auth | 6b7b3019c53673bf3b4b2b41fa3eec8f75d08947 | [
"MIT"
] | 1 | 2016-07-06T02:06:31.000Z | 2016-07-06T02:06:31.000Z | web/controllers/page_controller.ex | mule/phoenix-elm-auth | 6b7b3019c53673bf3b4b2b41fa3eec8f75d08947 | [
"MIT"
] | 1 | 2017-04-07T12:58:38.000Z | 2017-04-07T12:58:38.000Z | web/controllers/page_controller.ex | mule/phoenix-elm-auth | 6b7b3019c53673bf3b4b2b41fa3eec8f75d08947 | [
"MIT"
] | null | null | null | defmodule PhoenixAuthKata.PageController do
use PhoenixAuthKata.Web, :controller
def index(conn, _params) do
render conn, "index.html"
end
end
| 19.25 | 43 | 0.75974 |
2daeb617b3bab878cc00800d1df1dc2994bc5f79 | 77 | ex | Elixir | lib/packet_decoder.ex | electricshaman/mesquitte | a144b59f25823bef033b71d065b1abcbf770ce78 | [
"MIT"
] | null | null | null | lib/packet_decoder.ex | electricshaman/mesquitte | a144b59f25823bef033b71d065b1abcbf770ce78 | [
"MIT"
] | null | null | null | lib/packet_decoder.ex | electricshaman/mesquitte | a144b59f25823bef033b71d065b1abcbf770ce78 | [
"MIT"
] | null | null | null | defprotocol Mesquitte.PacketDecoder do
def decode(output, input, opts)
end
| 19.25 | 38 | 0.805195 |
2daf11ca7836707fb3b7f07727ffb6bf7ccf6628 | 2,190 | ex | Elixir | clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/v1_beta1_service_identity.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/v1_beta1_service_identity.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/v1_beta1_service_identity.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... | 39.107143 | 211 | 0.724201 |
2daf15c0c9b8dc574cc684279251a6e5631b5733 | 3,493 | ex | Elixir | lib/slack.ex | jokawachi-hg/Elixir-Slack | 342f63f3b75b64ea43328277d568a4ba3c5e3977 | [
"MIT"
] | 657 | 2015-01-05T21:56:30.000Z | 2022-03-28T12:56:47.000Z | lib/slack.ex | jokawachi-hg/Elixir-Slack | 342f63f3b75b64ea43328277d568a4ba3c5e3977 | [
"MIT"
] | 214 | 2015-02-15T18:06:20.000Z | 2022-02-21T21:15:53.000Z | lib/slack.ex | jokawachi-hg/Elixir-Slack | 342f63f3b75b64ea43328277d568a4ba3c5e3977 | [
"MIT"
] | 207 | 2015-02-26T23:24:36.000Z | 2022-02-27T21:53:57.000Z | defmodule Slack do
@moduledoc """
Slack is a genserver-ish interface for working with the Slack real time
messaging API through a Websocket connection.
To use this module you'll need a need a Slack API token which can be retrieved
by following the [Token Generation Instructions] or by creating a new [bot
i... | 32.95283 | 108 | 0.677927 |
2daf662cded7f622f3b5cd432f337ba002f75904 | 364 | exs | Elixir | priv/repo/migrations/20210717060603_create_votes.exs | AkioCode/elixir-survey | 420f4e5f60b84d381707f162b473dd91eb0fe9f2 | [
"MIT"
] | null | null | null | priv/repo/migrations/20210717060603_create_votes.exs | AkioCode/elixir-survey | 420f4e5f60b84d381707f162b473dd91eb0fe9f2 | [
"MIT"
] | null | null | null | priv/repo/migrations/20210717060603_create_votes.exs | AkioCode/elixir-survey | 420f4e5f60b84d381707f162b473dd91eb0fe9f2 | [
"MIT"
] | null | null | null | defmodule SurveyApi.Repo.Migrations.CreateVotes do
use Ecto.Migration
def change do
create table(:votes) do
add :ip, :string, size: 25, null: false
add :option_id, references(:options, on_delete: :delete_all, on_update: :update_all), null: false
timestamps([updated_at: false])
end
c... | 24.266667 | 103 | 0.68956 |
2daf79a6ce218831f8e648f98d2d9e93c02d3a11 | 770 | exs | Elixir | test/crit/common_test.exs | jesseshieh/crit19 | 0bba407fea09afed72cbb90ca579ba34c537edef | [
"MIT"
] | 6 | 2019-07-16T19:31:23.000Z | 2021-06-05T19:01:05.000Z | test/crit/common_test.exs | jesseshieh/crit19 | 0bba407fea09afed72cbb90ca579ba34c537edef | [
"MIT"
] | null | null | null | test/crit/common_test.exs | jesseshieh/crit19 | 0bba407fea09afed72cbb90ca579ba34c537edef | [
"MIT"
] | 3 | 2020-02-24T23:38:27.000Z | 2020-08-01T23:50:17.000Z | defmodule Crit.CommonTest do
use Crit.DataCase, async: true
alias Crit.Common
test "standard processing for nested forms" do
filled_in = %{"subfield" => "some value"}
blank = %{"subfield" => " "}
enclosing_form = %{
"subforms" => %{"0" => filled_in,
"1" => blank}
}
... | 27.5 | 91 | 0.585714 |
2daf7acd38a4666b647e23614a3b542319ce837e | 84 | exs | Elixir | test/hls_admin_web/views/layout_view_test.exs | drbawb/hls_admin | 237df356d01b0390821e6f0aacd1ec0fe9fdef4b | [
"BSD-3-Clause"
] | 1 | 2020-12-22T08:30:37.000Z | 2020-12-22T08:30:37.000Z | test/hls_admin_web/views/layout_view_test.exs | drbawb/hls_admin | 237df356d01b0390821e6f0aacd1ec0fe9fdef4b | [
"BSD-3-Clause"
] | 8 | 2020-10-12T18:51:41.000Z | 2021-06-16T18:48:36.000Z | test/hls_admin_web/views/layout_view_test.exs | drbawb/hls_admin | 237df356d01b0390821e6f0aacd1ec0fe9fdef4b | [
"BSD-3-Clause"
] | null | null | null | defmodule HlsAdminWeb.LayoutViewTest do
use HlsAdminWeb.ConnCase, async: true
end
| 21 | 39 | 0.833333 |
2dafd1cb7f2f200849ad99bdb99962705cc0bb0a | 2,039 | exs | Elixir | apps/ewallet/test/ewallet/permissions/bouncer/actors/user_actor_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/permissions/bouncer/actors/user_actor_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/permissions/bouncer/actors/user_actor_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 ... | 33.42623 | 74 | 0.698382 |
2db02d3ef80b181b10e72b2f4e47f7203eda2295 | 1,033 | ex | Elixir | proficionym_api/test/support/channel_case.ex | appropont/proficionym-api-elixir | 37519691e04176490154d7d8205c7bf1f90ff8b3 | [
"Apache-2.0"
] | null | null | null | proficionym_api/test/support/channel_case.ex | appropont/proficionym-api-elixir | 37519691e04176490154d7d8205c7bf1f90ff8b3 | [
"Apache-2.0"
] | null | null | null | proficionym_api/test/support/channel_case.ex | appropont/proficionym-api-elixir | 37519691e04176490154d7d8205c7bf1f90ff8b3 | [
"Apache-2.0"
] | null | null | null | defmodule ProficionymApi.ChannelCase do
@moduledoc """
This module defines the test case to be used by
channel tests.
Such tests rely on `Phoenix.ChannelTest` and also
import other functionality to make it easier
to build and query models.
Finally, if the test case interacts with the database,
it cann... | 23.477273 | 76 | 0.710552 |
2db0437ce3d2c6bdb1129ad71ff153ace7730317 | 6,486 | exs | Elixir | apps/engine/test/engine/fee/fetcher/client/parser/single_spec_parser_test.exs | omgnetwork/omg-childchain-v2 | 31cc9cf9e42718fc3b9bd6668f24a627cac80b4f | [
"Apache-2.0"
] | 4 | 2020-11-30T17:38:57.000Z | 2021-01-23T21:29:41.000Z | apps/engine/test/engine/fee/fetcher/client/parser/single_spec_parser_test.exs | omgnetwork/omg-childchain-v2 | 31cc9cf9e42718fc3b9bd6668f24a627cac80b4f | [
"Apache-2.0"
] | 24 | 2020-11-30T17:32:48.000Z | 2021-02-22T06:25:22.000Z | apps/engine/test/engine/fee/fetcher/client/parser/single_spec_parser_test.exs | omgnetwork/omg-childchain-v2 | 31cc9cf9e42718fc3b9bd6668f24a627cac80b4f | [
"Apache-2.0"
] | null | null | null | defmodule Engine.Fee.Fetcher.Client.Parser.SingleSpecParserTest do
@moduledoc false
use ExUnit.Case, async: true
alias Engine.Fee.Fetcher.Client.Parser.SingleSpecParser
@eth <<0::160>>
@eth_hex "0x" <> Base.encode16(@eth)
@valid_spec %{
"amount" => 1,
"subunit_to_unit" => 1_000_000_000_000_000_000,... | 38.378698 | 108 | 0.648011 |
2db058c0679b7383bf1f73713e8017f953f7aa3b | 110 | exs | Elixir | test/bunt_test.exs | bsharpe/bunt | 6ecb71051cf4adcdfa4346b843d7caebe4df3514 | [
"Apache-2.0",
"MIT"
] | 109 | 2015-11-06T20:37:07.000Z | 2022-02-14T22:33:19.000Z | test/bunt_test.exs | bsharpe/bunt | 6ecb71051cf4adcdfa4346b843d7caebe4df3514 | [
"Apache-2.0",
"MIT"
] | 6 | 2016-02-17T18:41:21.000Z | 2017-08-26T20:56:33.000Z | test/bunt_test.exs | bsharpe/bunt | 6ecb71051cf4adcdfa4346b843d7caebe4df3514 | [
"Apache-2.0",
"MIT"
] | 15 | 2016-02-17T10:43:02.000Z | 2021-05-22T05:13:25.000Z | defmodule BuntTest do
use ExUnit.Case
doctest Bunt
test "the truth" do
assert 1 + 1 == 2
end
end
| 12.222222 | 21 | 0.654545 |
2db071ae689589e9898a9806387b5e229f8d6b53 | 1,749 | exs | Elixir | apps/odo/test/unit/odo/event_handler_test.exs | PillarTechnology/smartcitiesdata | 9420a26820e38267513cd1bfa82c7f5583222bb1 | [
"Apache-2.0"
] | 1 | 2021-04-05T19:17:18.000Z | 2021-04-05T19:17:18.000Z | apps/odo/test/unit/odo/event_handler_test.exs | AWHServiceAccount/smartcitiesdata | 6957afac12809288640b6ba6b576c3016e6033d7 | [
"Apache-2.0"
] | 11 | 2020-01-07T15:43:42.000Z | 2020-12-22T15:23:25.000Z | apps/odo/test/unit/odo/event_handler_test.exs | jakeprem/smartcitiesdata | da309ac0d2261527278951cbae88604455207589 | [
"Apache-2.0"
] | null | null | null | defmodule Odo.Unit.EventHandlerTest do
use ExUnit.Case
use Placebo
import SmartCity.Event, only: [file_ingest_end: 0]
alias SmartCity.HostedFile
@time DateTime.utc_now()
setup do
allow(DateTime.utc_now(), return: @time, meck_options: [:passthrough])
allow(StreamingMetrics.PrometheusMetricCollecto... | 26.104478 | 116 | 0.636935 |
2db0a9c61722232de8edbba754798a7af9034488 | 1,078 | exs | Elixir | apps/resource_manager/test/resource_manager/credentials/commands/password_is_allowed_test.exs | dcdourado/watcher_ex | ce80df81610a6e9b77612911aac2a6d6cf4de8d5 | [
"Apache-2.0"
] | null | null | null | apps/resource_manager/test/resource_manager/credentials/commands/password_is_allowed_test.exs | dcdourado/watcher_ex | ce80df81610a6e9b77612911aac2a6d6cf4de8d5 | [
"Apache-2.0"
] | null | null | null | apps/resource_manager/test/resource_manager/credentials/commands/password_is_allowed_test.exs | dcdourado/watcher_ex | ce80df81610a6e9b77612911aac2a6d6cf4de8d5 | [
"Apache-2.0"
] | null | null | null | defmodule ResourceManager.Credentials.Commands.PasswordIsAllowedTest do
use ResourceManager.DataCase, async: true
alias ResourceManager.Credentials.BlocklistPasswordCache
alias ResourceManager.Credentials.Commands.PasswordIsAllowed
describe "#{PasswordIsAllowed}.execute/1" do
test "returnt true if passwor... | 37.172414 | 89 | 0.768089 |
2db0b205c95de47b4f0d27f9be9c2d20a365d54f | 592 | exs | Elixir | mix.exs | synrc/forms | 2b5ce6e6b4668f6bb6f8bb1cbe1c5cdca301e480 | [
"ISC"
] | 5 | 2018-06-10T06:59:44.000Z | 2019-05-26T00:34:25.000Z | mix.exs | synrc/forms | 2b5ce6e6b4668f6bb6f8bb1cbe1c5cdca301e480 | [
"ISC"
] | null | null | null | mix.exs | synrc/forms | 2b5ce6e6b4668f6bb6f8bb1cbe1c5cdca301e480 | [
"ISC"
] | 2 | 2018-12-04T16:41:40.000Z | 2019-01-08T14:42:02.000Z | defmodule FORM.Mixfile do
use Mix.Project
def application, do: [mod: {:form, []}]
def project do
[
app: :form,
version: "7.6.0",
description: "FORM Business X-Forms",
package: package(),
deps: deps()
]
end
def package do
[
files: ~w(doc include man lib priv sr... | 19.096774 | 75 | 0.532095 |
2db0bfd5f15c99c754193c2e7725daa3edd5f4c9 | 228 | ex | Elixir | test/support/models/channel_data.ex | daveli/polymorphic_embed | 8f6c8180a682f26aec98c6e9cbd84c20b6895be9 | [
"Apache-2.0"
] | null | null | null | test/support/models/channel_data.ex | daveli/polymorphic_embed | 8f6c8180a682f26aec98c6e9cbd84c20b6895be9 | [
"Apache-2.0"
] | null | null | null | test/support/models/channel_data.ex | daveli/polymorphic_embed | 8f6c8180a682f26aec98c6e9cbd84c20b6895be9 | [
"Apache-2.0"
] | 1 | 2020-11-26T01:50:50.000Z | 2020-11-26T01:50:50.000Z | defmodule PolymorphicEmbed.ChannelData do
use PolymorphicEmbed,
types: [
sms: PolymorphicEmbed.Channel.SMS,
email: [module: PolymorphicEmbed.Channel.Email, identify_by_fields: [:address, :confirmed]]
]
end
| 28.5 | 97 | 0.732456 |
2db0c719ae69b71d1676995829c8d6c3ea08ab4b | 138 | ex | Elixir | test/unit/fixtures/compiler/pruner/module_60.ex | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 40 | 2022-01-19T20:27:36.000Z | 2022-03-31T18:17:41.000Z | test/unit/fixtures/compiler/pruner/module_60.ex | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 42 | 2022-02-03T22:52:43.000Z | 2022-03-26T20:57:32.000Z | test/unit/fixtures/compiler/pruner/module_60.ex | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 3 | 2022-02-10T04:00:37.000Z | 2022-03-08T22:07:45.000Z | defmodule Hologram.Test.Fixtures.Compiler.Pruner.Module60 do
def test_fun_60a do
:ok
end
def test_fun_60b do
:ok
end
end
| 13.8 | 60 | 0.724638 |
2db0e818141dd0bc07769c0b8562ba4b4bed0462 | 9,962 | ex | Elixir | lib/elixir_ex_aliyun_ots_table_store_search_group_by_result.ex | hou8/tablestore_protos | 1a3223326b92bbe196d57ce4dd19b5a8db1c728d | [
"MIT"
] | null | null | null | lib/elixir_ex_aliyun_ots_table_store_search_group_by_result.ex | hou8/tablestore_protos | 1a3223326b92bbe196d57ce4dd19b5a8db1c728d | [
"MIT"
] | 1 | 2022-02-08T06:37:02.000Z | 2022-02-08T06:37:02.000Z | lib/elixir_ex_aliyun_ots_table_store_search_group_by_result.ex | hou8/tablestore_protos | 1a3223326b92bbe196d57ce4dd19b5a8db1c728d | [
"MIT"
] | 2 | 2022-01-24T06:13:03.000Z | 2022-01-24T08:33:41.000Z | # credo:disable-for-this-file
defmodule(ExAliyunOts.TableStoreSearch.GroupByResult) do
@moduledoc false
(
defstruct(name: nil, type: nil, group_by_result: nil)
(
(
@spec encode(struct) :: {:ok, iodata} | {:error, any}
def(encode(msg)) do
try do
{:ok, encode!(msg)... | 26.636364 | 97 | 0.463963 |
2db0f3f32da33758a8d8fa32b32e8cf8fa73ad39 | 990 | exs | Elixir | mix.exs | mindreframer/exsm | e151c96060b6cec5938c2c3953751aed42fad5bc | [
"Apache-2.0"
] | null | null | null | mix.exs | mindreframer/exsm | e151c96060b6cec5938c2c3953751aed42fad5bc | [
"Apache-2.0"
] | null | null | null | mix.exs | mindreframer/exsm | e151c96060b6cec5938c2c3953751aed42fad5bc | [
"Apache-2.0"
] | null | null | null | defmodule Exsm.MixProject do
use Mix.Project
def project do
[
app: :exsm,
version: "0.3.2",
elixir: "~> 1.9",
start_permanent: Mix.env() == :prod,
deps: deps(),
description: description(),
package: package(),
source_url: "https://github.com/sakshamgupta05/exsm",
... | 20.625 | 68 | 0.571717 |
2db10f71b009fdccd8cb4a52f585ce2855250451 | 2,051 | ex | Elixir | clients/display_video/lib/google_api/display_video/v1/model/search_targeting_options_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/display_video/lib/google_api/display_video/v1/model/search_targeting_options_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/display_video/lib/google_api/display_video/v1/model/search_targeting_options_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... | 41.02 | 244 | 0.755729 |
2db124c1afac3c41b615e1d46ddbe8834c888bce | 9,252 | ex | Elixir | installer/lib/phx_new/generator.ex | lasseebert/phoenix | 50012ae068ae36bf08fbbc63c0d7a116b7e59494 | [
"MIT"
] | null | null | null | installer/lib/phx_new/generator.ex | lasseebert/phoenix | 50012ae068ae36bf08fbbc63c0d7a116b7e59494 | [
"MIT"
] | null | null | null | installer/lib/phx_new/generator.ex | lasseebert/phoenix | 50012ae068ae36bf08fbbc63c0d7a116b7e59494 | [
"MIT"
] | null | null | null | defmodule Phx.New.Generator do
@moduledoc false
import Mix.Generator
alias Phx.New.{Project}
@phoenix Path.expand("../..", __DIR__)
@phoenix_version Version.parse!("1.4.0-rc")
@callback prepare_project(Project.t) :: Project.t
@callback generate(Project.t) :: Project.t
defmacro __using__(_env) do
... | 34.913208 | 117 | 0.668936 |
2db169a853fa9b2a1fe06780145a68285a97356b | 466 | exs | Elixir | mix.exs | filipmnowak/ex_es | 57b0d50b2567c7aa08c836142cb081ea2faf56b6 | [
"Apache-2.0"
] | 2 | 2020-04-01T15:35:31.000Z | 2020-04-02T22:14:35.000Z | mix.exs | filipmnowak/ex_es | 57b0d50b2567c7aa08c836142cb081ea2faf56b6 | [
"Apache-2.0"
] | null | null | null | mix.exs | filipmnowak/ex_es | 57b0d50b2567c7aa08c836142cb081ea2faf56b6 | [
"Apache-2.0"
] | null | null | null | defmodule ExEs.MixProject do
use Mix.Project
def project do
[
app: :ex_es,
version: "0.1.0",
elixir: "~> 1.10",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applica... | 16.642857 | 59 | 0.562232 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.