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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
62e9e406913b537360f0db30a7d0d97565e68e46 | 1,165 | ex | Elixir | lib/appsignal/transmitter.ex | jwarlander/appsignal-elixir | b0a8a366370cf01a407a381a3041d0f6516f476e | [
"MIT"
] | null | null | null | lib/appsignal/transmitter.ex | jwarlander/appsignal-elixir | b0a8a366370cf01a407a381a3041d0f6516f476e | [
"MIT"
] | null | null | null | lib/appsignal/transmitter.ex | jwarlander/appsignal-elixir | b0a8a366370cf01a407a381a3041d0f6516f476e | [
"MIT"
] | null | null | null | defmodule Appsignal.Transmitter do
require Logger
def request(method, url, headers \\ [], body \\ "") do
http_client = Application.get_env(:appsignal, :http_client, :hackney)
:application.ensure_all_started(http_client)
http_client.request(method, url, headers, body, options())
end
defp options d... | 24.787234 | 83 | 0.592275 |
62e9fc359b381a08e4db7aa089c5fae02ddb2719 | 865 | ex | Elixir | test/fixtures/simple_node.ex | evuez/absinthe_trace_reporter | 2747ec11b63d21a2911c30c6fb20154df0b2ead8 | [
"MIT"
] | 11 | 2018-12-13T08:40:48.000Z | 2020-11-10T00:06:18.000Z | test/fixtures/simple_node.ex | evuez/absinthe_trace_reporter | 2747ec11b63d21a2911c30c6fb20154df0b2ead8 | [
"MIT"
] | 14 | 2019-02-27T04:25:35.000Z | 2021-12-20T04:02:05.000Z | test/fixtures/simple_node.ex | evuez/absinthe_trace_reporter | 2747ec11b63d21a2911c30c6fb20154df0b2ead8 | [
"MIT"
] | 2 | 2019-03-23T18:44:11.000Z | 2020-05-27T14:07:41.000Z | defmodule AbsintheTraceReporter.Fixtures.SimpleNode do
def resolvers do
[
%{
duration: 1_514_000,
fieldName: "number",
meta: nil,
parentType: "RootQueryType",
path: ["number"],
returnType: "Int",
startOffset: 55_903_000
}
]
end
def trace... | 21.625 | 54 | 0.517919 |
62ea1072837a9aa828da89c5fdb27edd17200ca9 | 1,229 | ex | Elixir | web/views/error_helpers.ex | bolecki/volition | f92cdd45fcc66a2552d1f5f35968b088dbc2e53f | [
"MIT"
] | null | null | null | web/views/error_helpers.ex | bolecki/volition | f92cdd45fcc66a2552d1f5f35968b088dbc2e53f | [
"MIT"
] | null | null | null | web/views/error_helpers.ex | bolecki/volition | f92cdd45fcc66a2552d1f5f35968b088dbc2e53f | [
"MIT"
] | null | null | null | defmodule Volition.ErrorHelpers do
@moduledoc """
Conveniences for translating and building error messages.
"""
use Phoenix.HTML
@doc """
Generates tag for inlined form input errors.
"""
def error_tag(form, field) do
if error = form.errors[field] do
content_tag :span, translate_error(error),... | 29.97561 | 74 | 0.668023 |
62ea8e852a9ea10cb6beea73cb64411f2bf47491 | 1,925 | exs | Elixir | config/dev.exs | bfontaine/train2cal | d4a69e3dece4e68f1e280c9f5d796b738dee64bb | [
"MIT"
] | null | null | null | config/dev.exs | bfontaine/train2cal | d4a69e3dece4e68f1e280c9f5d796b738dee64bb | [
"MIT"
] | null | null | null | config/dev.exs | bfontaine/train2cal | d4a69e3dece4e68f1e280c9f5d796b738dee64bb | [
"MIT"
] | null | null | null | use Mix.Config
# For development, we disable any cache and enable
# debugging and code reloading.
#
# The watchers configuration can be used to run external
# watchers to your application. For example, we use it
# with webpack to recompile .js and .css sources.
config :train2cal, Train2calWeb.Endpoint,
http: [port: ... | 28.308824 | 68 | 0.685714 |
62ead4ee501a702ef9853416b1de3ae7e20bf037 | 440 | ex | Elixir | ChatRoomServer/chat_room_server/lib/server/server_supervisor.ex | GameEssa/ChatRoom | 13cc75e3fecfdd692246df2eab84eba73b6761e3 | [
"MIT"
] | null | null | null | ChatRoomServer/chat_room_server/lib/server/server_supervisor.ex | GameEssa/ChatRoom | 13cc75e3fecfdd692246df2eab84eba73b6761e3 | [
"MIT"
] | null | null | null | ChatRoomServer/chat_room_server/lib/server/server_supervisor.ex | GameEssa/ChatRoom | 13cc75e3fecfdd692246df2eab84eba73b6761e3 | [
"MIT"
] | null | null | null | defmodule Server.Supervisor do
use Supervisor
def start_link( opts ) do
Supervisor.start_link( __MODULE__, :ok, opts )
end
def init( :ok ) do
children = [
{ RoomRegistry.Supervisor, [] },
{ ClientRegistry.Supervisor, []},
{ DynamicSupervisor, strategy: :one_for_one, name: Server.Dy... | 20.952381 | 83 | 0.652273 |
62eb256ef990fbcea8a3e524ba1230e29413b888 | 901 | ex | Elixir | apps/artemis/lib/artemis/contexts/team/get_team.ex | artemis-platform/artemis_dashboard | 5ab3f5ac4c5255478bbebf76f0e43b44992e3cab | [
"MIT"
] | 9 | 2019-08-19T19:56:34.000Z | 2022-03-22T17:56:38.000Z | apps/artemis/lib/artemis/contexts/team/get_team.ex | chrislaskey/artemis_teams | 9930c3d9528e37b76f0525390e32b66eed7eadde | [
"MIT"
] | 7 | 2019-07-12T21:41:01.000Z | 2020-08-17T21:29:22.000Z | apps/artemis/lib/artemis/contexts/team/get_team.ex | chrislaskey/artemis_teams | 9930c3d9528e37b76f0525390e32b66eed7eadde | [
"MIT"
] | 2 | 2019-07-05T22:51:47.000Z | 2019-08-19T19:56:37.000Z | defmodule Artemis.GetTeam do
use Artemis.Context
import Ecto.Query
alias Artemis.Repo
alias Artemis.Team
@default_preload []
def call!(value, _user, options \\ []) do
get_record(value, options, &Repo.get_by!/2)
end
def call(value, _user, options \\ []) do
get_record(value, options, &Repo.ge... | 23.710526 | 86 | 0.664817 |
62eb3ea1213d5aba0b35cdd6341c7bbb3fb36b61 | 7,596 | ex | Elixir | lib/xlsx_reader/conversion.ex | Q1-Energie-AG/xlsx_reader | 02b49b6f85b693dfd445c714c01c0454409e621e | [
"Apache-2.0"
] | 40 | 2019-12-20T16:11:47.000Z | 2022-02-08T22:59:53.000Z | lib/xlsx_reader/conversion.ex | Q1-Energie-AG/xlsx_reader | 02b49b6f85b693dfd445c714c01c0454409e621e | [
"Apache-2.0"
] | 4 | 2020-05-17T11:35:33.000Z | 2022-02-08T21:29:46.000Z | lib/xlsx_reader/conversion.ex | Q1-Energie-AG/xlsx_reader | 02b49b6f85b693dfd445c714c01c0454409e621e | [
"Apache-2.0"
] | 6 | 2020-04-24T16:31:06.000Z | 2022-03-22T07:51:51.000Z | defmodule XlsxReader.Conversion do
@moduledoc """
Conversion of cell values to Elixir types.
"""
@typedoc """
Date system identified by its reference year
"""
@type date_system :: 1900 | 1904
@typedoc """
Supported number types identified by module name
"""
@type number_type :: Integer | Float... | 23.962145 | 139 | 0.61019 |
62eb6dc44765bcc3232af4198de282467c2b0ce2 | 263 | exs | Elixir | live_view_studio/priv/repo/migrations/20211108223021_create_boats.exs | herminiotorres/pragmaticstudio | 273647694519fd4149716abf190eb8d97102f488 | [
"MIT"
] | null | null | null | live_view_studio/priv/repo/migrations/20211108223021_create_boats.exs | herminiotorres/pragmaticstudio | 273647694519fd4149716abf190eb8d97102f488 | [
"MIT"
] | null | null | null | live_view_studio/priv/repo/migrations/20211108223021_create_boats.exs | herminiotorres/pragmaticstudio | 273647694519fd4149716abf190eb8d97102f488 | [
"MIT"
] | null | null | null | defmodule LiveViewStudio.Repo.Migrations.CreateBoats do
use Ecto.Migration
def change do
create table(:boats) do
add :model, :string
add :type, :string
add :price, :string
add :image, :string
timestamps()
end
end
end
| 17.533333 | 55 | 0.642586 |
62eb6f61408a7988af517cb4f90563014e034e4b | 29 | ex | Elixir | lib/mix_open_repo.ex | martinmaillard/mix_open_repo | 54f492724c6e8e52339aeac4605b2d386dd7b091 | [
"MIT"
] | 1 | 2022-01-27T23:02:37.000Z | 2022-01-27T23:02:37.000Z | lib/mix_open_repo.ex | martinmaillard/mix_open_repo | 54f492724c6e8e52339aeac4605b2d386dd7b091 | [
"MIT"
] | null | null | null | lib/mix_open_repo.ex | martinmaillard/mix_open_repo | 54f492724c6e8e52339aeac4605b2d386dd7b091 | [
"MIT"
] | null | null | null | defmodule MixOpenRepo do
end
| 9.666667 | 24 | 0.862069 |
62eb728e821a0297ce0adf138a7656f0e390b9ea | 919 | exs | Elixir | test/membrane_fake_plugin/sink_bytes_test.exs | membraneframework/membrane_fake_plugin | 5afab04f0f5f4691ab1ff4e2edf2b265796d3e25 | [
"Apache-2.0"
] | 1 | 2018-07-27T14:16:12.000Z | 2018-07-27T14:16:12.000Z | test/membrane_fake_plugin/sink_bytes_test.exs | membraneframework/membrane_fake_plugin | 5afab04f0f5f4691ab1ff4e2edf2b265796d3e25 | [
"Apache-2.0"
] | 3 | 2018-10-15T08:04:11.000Z | 2020-06-09T09:47:34.000Z | test/membrane_fake_plugin/sink_bytes_test.exs | membraneframework/membrane_fake_plugin | 5afab04f0f5f4691ab1ff4e2edf2b265796d3e25 | [
"Apache-2.0"
] | null | null | null | defmodule Membrane.Fake.Sink.BytesTest do
use ExUnit.Case
@module Membrane.Fake.Sink.Bytes
test "handle_init/1 should store demand_size in state" do
assert @module.handle_init(%@module{demand_size: 42}) == {:ok, %{demand_size: 42}}
end
@spec state(any()) :: any()
def state(_context), do: [state: %{dem... | 31.689655 | 107 | 0.648531 |
62eb994f2bedab288992cbb54e38ced15b22e3ac | 2,526 | ex | Elixir | lib/credo/check/refactor/negated_conditions_with_else.ex | hrzndhrn/credo | 71a7b24a5ca8e7a48416e0cdfb42cf8a0fef9593 | [
"MIT"
] | 4,590 | 2015-09-28T06:01:43.000Z | 2022-03-29T08:48:57.000Z | lib/credo/check/refactor/negated_conditions_with_else.ex | hrzndhrn/credo | 71a7b24a5ca8e7a48416e0cdfb42cf8a0fef9593 | [
"MIT"
] | 890 | 2015-11-16T21:07:07.000Z | 2022-03-29T08:52:07.000Z | lib/credo/check/refactor/negated_conditions_with_else.ex | hrzndhrn/credo | 71a7b24a5ca8e7a48416e0cdfb42cf8a0fef9593 | [
"MIT"
] | 479 | 2015-11-17T19:42:40.000Z | 2022-03-29T00:09:21.000Z | defmodule Credo.Check.Refactor.NegatedConditionsWithElse do
use Credo.Check,
base_priority: :high,
explanations: [
check: """
An `if` block with a negated condition should not contain an else block.
So while this is fine:
if not allowed? do
raise "Not allowed!"
... | 26.589474 | 83 | 0.646477 |
62ec01810a227b24aca414b05f05fa5d4301b243 | 452 | ex | Elixir | lib/shopiex/webhook/webhook.ex | byjpr/Shopiex | 360dc00e6ffd21a822f32d83af15948e77f6e11c | [
"MIT"
] | 1 | 2019-03-07T11:30:09.000Z | 2019-03-07T11:30:09.000Z | lib/shopiex/webhook/webhook.ex | byjpr/Shopiex | 360dc00e6ffd21a822f32d83af15948e77f6e11c | [
"MIT"
] | 28 | 2020-06-28T19:35:02.000Z | 2021-07-11T13:15:06.000Z | lib/shopiex/webhook/webhook.ex | byjpr/Shopiex | 360dc00e6ffd21a822f32d83af15948e77f6e11c | [
"MIT"
] | null | null | null | defmodule Shopiex.Webhooks do
@moduledoc """
Register webhooks to keep your app synced with the merchant store.
"""
@doc """
Create a new webhook subscription by specifying both an address and a topic
"""
def create(client, [address: address, topic: topic] = _required_opts, opts \\ []) do
{client,
... | 22.6 | 86 | 0.615044 |
62ec0a6b5c70553b5f76fda6eeb3fb191db1c9aa | 1,450 | ex | Elixir | clients/game_services/lib/google_api/game_services/v1beta/model/label_selector.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/game_services/lib/google_api/game_services/v1beta/model/label_selector.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/game_services/lib/google_api/game_services/v1beta/model/label_selector.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... | 30.851064 | 87 | 0.735862 |
62ec64e435640096efcb1d49c8d8a91091ac741c | 504 | ex | Elixir | lib/inspect/vivid/box.ex | jamesotron/vivid | 01a0089384d8daced8f22a97c49e657fc245fb3c | [
"MIT"
] | 26 | 2017-01-03T01:18:38.000Z | 2019-02-21T09:26:20.000Z | lib/inspect/vivid/box.ex | jamesotron/vivid | 01a0089384d8daced8f22a97c49e657fc245fb3c | [
"MIT"
] | null | null | null | lib/inspect/vivid/box.ex | jamesotron/vivid | 01a0089384d8daced8f22a97c49e657fc245fb3c | [
"MIT"
] | 2 | 2017-03-18T22:45:49.000Z | 2017-05-08T07:24:58.000Z | defimpl Inspect, for: Vivid.Box do
alias Vivid.Box
import Inspect.Algebra
@doc """
Defines the inspect protocol for `Box`.
"""
@spec inspect(Box.t(), any) :: String.t()
def inspect(%Box{bottom_left: bl, top_right: tr, fill: true}, opts) do
concat(["#Vivid.Box<", to_doc([:filled, bottom_left: bl, top_... | 29.647059 | 89 | 0.642857 |
62ec7081af214fa124dcfb8c91f85433d0cd2898 | 661 | exs | Elixir | kousa/config/test.exs | movwf/dogehouse | c97c04164e98853c6221100a97cc4ff1af84de7b | [
"MIT"
] | 2 | 2021-05-01T16:57:50.000Z | 2021-07-07T22:01:14.000Z | kousa/config/test.exs | movwf/dogehouse | c97c04164e98853c6221100a97cc4ff1af84de7b | [
"MIT"
] | 2 | 2022-02-15T04:33:25.000Z | 2022-02-28T01:39:56.000Z | kousa/config/test.exs | movwf/dogehouse | c97c04164e98853c6221100a97cc4ff1af84de7b | [
"MIT"
] | 1 | 2021-02-21T05:26:41.000Z | 2021-02-21T05:26:41.000Z | import Config
database_url = "postgres://postgres:postgres@localhost/kousa_repo2_test"
config :kousa, Beef.Repo,
url: database_url,
pool: Ecto.Adapters.SQL.Sandbox
config :logger, level: :error
if System.get_env("GITHUB_ACTIONS") do
config :app, App.Repo,
username: "postgres",
password: "postgres"
end... | 26.44 | 72 | 0.754917 |
62ec74f3c97c02a1bd90b4a137568a041722855f | 456 | ex | Elixir | lib/auth_api/accounts/user.ex | nathanfaucett/ex-auth_api | 3b8959b2693c652fe2e3089f03e728107ec6ba70 | [
"MIT"
] | null | null | null | lib/auth_api/accounts/user.ex | nathanfaucett/ex-auth_api | 3b8959b2693c652fe2e3089f03e728107ec6ba70 | [
"MIT"
] | null | null | null | lib/auth_api/accounts/user.ex | nathanfaucett/ex-auth_api | 3b8959b2693c652fe2e3089f03e728107ec6ba70 | [
"MIT"
] | null | null | null | defmodule AuthApi.Accounts.User do
use Ecto.Schema
schema "accounts_users" do
field :email, :string
field :active, :boolean, default: true
field :confirmation_token, :string
field :confirmed, :boolean, default: false
field :encrypted_password, :string
has_many :sessions, AuthApi.Account... | 22.8 | 73 | 0.72807 |
62ec7caff06e22a7f6c9a914547d6acf27dde220 | 1,532 | ex | Elixir | test/support/data_case.ex | fremantle-industries/history | a8a33744279ff4ca62620785f9a2e9c0c99e4de7 | [
"MIT"
] | 20 | 2021-08-06T01:09:48.000Z | 2022-03-28T18:44:56.000Z | test/support/data_case.ex | fremantle-industries/history | a8a33744279ff4ca62620785f9a2e9c0c99e4de7 | [
"MIT"
] | 13 | 2021-08-21T21:17:02.000Z | 2022-03-27T06:33:51.000Z | test/support/data_case.ex | fremantle-industries/history | a8a33744279ff4ca62620785f9a2e9c0c99e4de7 | [
"MIT"
] | 2 | 2021-09-23T11:31:59.000Z | 2022-01-09T16:19:35.000Z | defmodule History.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,
we enable the SQL sandbox, so changes done to t... | 27.357143 | 77 | 0.688642 |
62ecafc841ecac0eaa070764963de65b5da6363e | 623 | ex | Elixir | clients/client/elixir/lib/ory/model/api_token.ex | ory/sdk-generator | 958314d130922ad6f20f439b5230141a832231a5 | [
"Apache-2.0"
] | null | null | null | clients/client/elixir/lib/ory/model/api_token.ex | ory/sdk-generator | 958314d130922ad6f20f439b5230141a832231a5 | [
"Apache-2.0"
] | null | null | null | clients/client/elixir/lib/ory/model/api_token.ex | ory/sdk-generator | 958314d130922ad6f20f439b5230141a832231a5 | [
"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 Ory.Model.ApiToken do
@moduledoc """
"""
@derive [Poison.Encoder]
defstruct [
:"id",
:"name",
:"owner_id",
:"project_id",
... | 18.323529 | 91 | 0.606742 |
62ed07de541aa048f1638719b112123b988c4778 | 1,385 | ex | Elixir | poc_elixir/lib/receita_web.ex | fcevado/minha-receita | ebd5cca95115d878934a0f762a8e92d3f8f5b495 | [
"MIT"
] | null | null | null | poc_elixir/lib/receita_web.ex | fcevado/minha-receita | ebd5cca95115d878934a0f762a8e92d3f8f5b495 | [
"MIT"
] | null | null | null | poc_elixir/lib/receita_web.ex | fcevado/minha-receita | ebd5cca95115d878934a0f762a8e92d3f8f5b495 | [
"MIT"
] | null | null | null | defmodule ReceitaWeb do
@moduledoc """
The entrypoint for defining your web interface, such
as controllers, views, channels and so on.
This can be used in your application as:
use ReceitaWeb, :controller
use ReceitaWeb, :view
The definitions below will be executed for every view,
controller, ... | 23.87931 | 83 | 0.695307 |
62ed0d62b637ddc5a8cfac8d3af77d2891aa5b69 | 5,799 | ex | Elixir | apps/gen_rtmp_server/lib/gen_rtmp_server.ex | tiensonqin/elixir-media-libs | 87f17e2b23bf8380e785423652910bfa7d3bb47c | [
"MIT"
] | null | null | null | apps/gen_rtmp_server/lib/gen_rtmp_server.ex | tiensonqin/elixir-media-libs | 87f17e2b23bf8380e785423652910bfa7d3bb47c | [
"MIT"
] | null | null | null | apps/gen_rtmp_server/lib/gen_rtmp_server.ex | tiensonqin/elixir-media-libs | 87f17e2b23bf8380e785423652910bfa7d3bb47c | [
"MIT"
] | null | null | null | defmodule GenRtmpServer do
@moduledoc """
A behaviour module for implementing an RTMP server.
A GenRtmpServer abstracts out the the handling of RTMP connection handling
and data so that modules that implement this behaviour can focus on
the business logic of the actual RTMP events that are received and
sho... | 36.018634 | 101 | 0.701673 |
62ed10e86d1ad94e833bce91efeff6bd3e4f19a7 | 136 | exs | Elixir | config/test.exs | dallagi/telepoison | 955d4b0bc0b0f7ade3a2423aa8cea2752b618907 | [
"MIT"
] | 3 | 2021-04-29T12:30:53.000Z | 2021-11-19T22:08:08.000Z | config/test.exs | dallagi/telepoison | 955d4b0bc0b0f7ade3a2423aa8cea2752b618907 | [
"MIT"
] | 31 | 2021-04-26T09:22:35.000Z | 2022-03-23T12:20:23.000Z | config/test.exs | primait/teleplug | b6fe6cc535e8ec6dc4fc06d2def7b9a050d51e04 | [
"MIT"
] | 3 | 2021-01-22T15:01:27.000Z | 2022-01-14T11:51:11.000Z | import Config
config :opentelemetry,
tracer: :otel_tracer_default,
processors: [{:otel_batch_processor, %{scheduled_delay_ms: 1}}]
| 22.666667 | 65 | 0.772059 |
62ed440b7ec7758436d077d89298b5a2492938e4 | 2,286 | ex | Elixir | lib/data/script.ex | shanesveller/ex_venture | 68507da11442a9e0423073fcd305e9021f649ca1 | [
"MIT"
] | null | null | null | lib/data/script.ex | shanesveller/ex_venture | 68507da11442a9e0423073fcd305e9021f649ca1 | [
"MIT"
] | null | null | null | lib/data/script.ex | shanesveller/ex_venture | 68507da11442a9e0423073fcd305e9021f649ca1 | [
"MIT"
] | null | null | null | defmodule Data.Script do
@moduledoc """
In game script that the NPC uses to converse with players
"""
import Ecto.Changeset
alias Data.Script.Line
@type t :: [Line.t()]
@doc """
Validate that the conversation is good to use for an npc. None of the lines
can have a `trigger: "quest"` in them.
... | 25.685393 | 110 | 0.631234 |
62ed52f9e684fec59b0918fbce3d83d5f81e8ae0 | 4,854 | ex | Elixir | deps/phoenix/lib/mix/tasks/phoenix.gen.html.ex | dmitrinesterenko/sample_phoenix_ecs | d6b94f35680163302e372cf30c70d3e409b0c9b1 | [
"MIT"
] | 1 | 2019-06-11T20:22:21.000Z | 2019-06-11T20:22:21.000Z | deps/phoenix/lib/mix/tasks/phoenix.gen.html.ex | dmitrinesterenko/sample_phoenix_ecs | d6b94f35680163302e372cf30c70d3e409b0c9b1 | [
"MIT"
] | null | null | null | deps/phoenix/lib/mix/tasks/phoenix.gen.html.ex | dmitrinesterenko/sample_phoenix_ecs | d6b94f35680163302e372cf30c70d3e409b0c9b1 | [
"MIT"
] | null | null | null | defmodule Mix.Tasks.Phoenix.Gen.Html do
use Mix.Task
@shortdoc "Generates controller, model and views for an HTML based resource"
@moduledoc """
Generates a Phoenix resource.
mix phoenix.gen.html User users name:string age:integer
The first argument is the module name followed by
its plural name (... | 37.053435 | 116 | 0.594767 |
62ed6afc15c81582923592641647c5d2825145f9 | 4,013 | ex | Elixir | lib/changelog_web/controllers/admin/post_controller.ex | sdrees/changelog.com | 955cdcf93d74991062f19a03e34c9f083ade1705 | [
"MIT"
] | 1 | 2019-11-02T08:32:25.000Z | 2019-11-02T08:32:25.000Z | lib/changelog_web/controllers/admin/post_controller.ex | sdrees/changelog.com | 955cdcf93d74991062f19a03e34c9f083ade1705 | [
"MIT"
] | null | null | null | lib/changelog_web/controllers/admin/post_controller.ex | sdrees/changelog.com | 955cdcf93d74991062f19a03e34c9f083ade1705 | [
"MIT"
] | null | null | null | defmodule ChangelogWeb.Admin.PostController do
use ChangelogWeb, :controller
alias Changelog.{Cache, Fastly, NewsQueue, Post, PostNewsItem}
plug :assign_post when action in [:edit, :update, :delete, :publish, :unpublish]
plug Authorize, [Policies.Admin.Post, :post]
plug :scrub_params, "post" when action in ... | 27.486301 | 84 | 0.609021 |
62ed74937b817075bb8d8777b62b2697c168a49a | 191 | ex | Elixir | lib/generate/reboot.ex | smiyabe/cwmp_ex | 9db322497aa3208b5985ccf496ada5286cde3925 | [
"Artistic-2.0"
] | 3 | 2017-11-29T05:07:35.000Z | 2019-12-18T17:16:41.000Z | lib/generate/reboot.ex | smiyabe/cwmp_ex | 9db322497aa3208b5985ccf496ada5286cde3925 | [
"Artistic-2.0"
] | 1 | 2021-12-02T19:35:28.000Z | 2022-03-29T09:40:52.000Z | lib/generate/reboot.ex | smiyabe/cwmp_ex | 9db322497aa3208b5985ccf496ada5286cde3925 | [
"Artistic-2.0"
] | 2 | 2017-11-29T05:07:30.000Z | 2020-11-10T07:10:42.000Z | defimpl CWMP.Protocol.Generate, for: CWMP.Protocol.Messages.Reboot do
import XmlBuilder
def generate(req) do
element("cwmp:Reboot", [element(:CommandKey, req.commandkey)])
end
end
| 23.875 | 69 | 0.748691 |
62eda718a11abd2c821cfa0d576164d0e07595d4 | 2,857 | ex | Elixir | lib/mix/tasks/extension/ecto/pow.extension.ecto.gen.migrations.ex | abartier/pow | 58a3d082da093e2dc7f07825a950ee133204813f | [
"Unlicense",
"MIT"
] | null | null | null | lib/mix/tasks/extension/ecto/pow.extension.ecto.gen.migrations.ex | abartier/pow | 58a3d082da093e2dc7f07825a950ee133204813f | [
"Unlicense",
"MIT"
] | null | null | null | lib/mix/tasks/extension/ecto/pow.extension.ecto.gen.migrations.ex | abartier/pow | 58a3d082da093e2dc7f07825a950ee133204813f | [
"Unlicense",
"MIT"
] | null | null | null | defmodule Mix.Tasks.Pow.Extension.Ecto.Gen.Migrations do
@shortdoc "Generates user extension migration files"
@moduledoc """
Generates a migration files for extensions.
## Usage
Install migration files for extensions explicitly:
mix pow.extension.ecto.gen.migrations -r MyApp.Repo --extension PowEmai... | 31.395604 | 126 | 0.714036 |
62eddd846a37e86530d8ff411e83f59f4f4f66bf | 68 | ex | Elixir | robotica/lib/robotica/encoders.ex | brianmay/robotica-elixir | 8656510e54b7e32a547e3a54bf946f0e327911c9 | [
"RSA-MD"
] | 1 | 2019-04-23T09:16:44.000Z | 2019-04-23T09:16:44.000Z | robotica/lib/robotica/encoders.ex | brianmay/robotica-elixir | 8656510e54b7e32a547e3a54bf946f0e327911c9 | [
"RSA-MD"
] | 107 | 2019-05-26T08:03:26.000Z | 2022-02-03T19:13:56.000Z | robotica/lib/robotica/encoders.ex | brianmay/robotica-elixir | 8656510e54b7e32a547e3a54bf946f0e327911c9 | [
"RSA-MD"
] | 1 | 2019-08-10T20:44:24.000Z | 2019-08-10T20:44:24.000Z | require Protocol
Protocol.derive(Jason.Encoder, Lifx.Protocol.HSBK)
| 22.666667 | 50 | 0.838235 |
62eddf91a61954408f8ea24550e352161a0e2c21 | 2,433 | ex | Elixir | apps/artemis/lib/artemis/contexts/incident/list_incidents.ex | artemis-platform/artemis_dashboard | 5ab3f5ac4c5255478bbebf76f0e43b44992e3cab | [
"MIT"
] | 9 | 2019-08-19T19:56:34.000Z | 2022-03-22T17:56:38.000Z | apps/artemis/lib/artemis/contexts/incident/list_incidents.ex | chrislaskey/atlas_dashboard | 9009ef5aac8fefba126fa7d3e3b82d1b610ee6fe | [
"MIT"
] | 7 | 2019-07-12T21:41:01.000Z | 2020-08-17T21:29:22.000Z | apps/artemis/lib/artemis/contexts/incident/list_incidents.ex | chrislaskey/atlas_dashboard | 9009ef5aac8fefba126fa7d3e3b82d1b610ee6fe | [
"MIT"
] | 2 | 2019-07-05T22:51:47.000Z | 2019-08-19T19:56:37.000Z | defmodule Artemis.ListIncidents do
use Artemis.Context
import Artemis.Helpers.Filter
import Artemis.Helpers.Search
import Ecto.Query
alias Artemis.Incident
alias Artemis.Repo
@default_order "-triggered_at"
@default_page_size 25
@default_preload []
def call(params \\ %{}, user) do
params = de... | 35.779412 | 110 | 0.677764 |
62edefab26864328b2d036931ad8602c7a1970a8 | 334 | ex | Elixir | lib/phoenix_events_live_web/auth_pipeline.ex | D-D-ing/phoenix-events-live | b68bdfdac1afc241574a0a8ffce25cf43bb71abe | [
"MIT"
] | null | null | null | lib/phoenix_events_live_web/auth_pipeline.ex | D-D-ing/phoenix-events-live | b68bdfdac1afc241574a0a8ffce25cf43bb71abe | [
"MIT"
] | null | null | null | lib/phoenix_events_live_web/auth_pipeline.ex | D-D-ing/phoenix-events-live | b68bdfdac1afc241574a0a8ffce25cf43bb71abe | [
"MIT"
] | null | null | null | defmodule PhoenixEventsLive.Guardian.AuthPipeline do
use Guardian.Plug.Pipeline, otp_app: :phoenix_events_live,
module: PhoenixEventsLive.Guardian,
error_handler: PhoenixEventsLive.AuthErrorHandler
plug Guardian.Plug.VerifyHeader, realm: "Bearer"
plug Guardian.Plug.EnsureAuthenticated
plug Guardian.Plug.Lo... | 37.111111 | 60 | 0.835329 |
62ee0e38d14bb02ff2edd1e3062660ab82eab2b9 | 3,479 | ex | Elixir | lib/msgpax/plug_parser.ex | Ljzn/msgpax | abb708ecbcefefb3d0701af030603ab395c32485 | [
"ISC"
] | null | null | null | lib/msgpax/plug_parser.ex | Ljzn/msgpax | abb708ecbcefefb3d0701af030603ab395c32485 | [
"ISC"
] | null | null | null | lib/msgpax/plug_parser.ex | Ljzn/msgpax | abb708ecbcefefb3d0701af030603ab395c32485 | [
"ISC"
] | 1 | 2020-07-13T14:05:47.000Z | 2020-07-13T14:05:47.000Z | if Code.ensure_compiled?(Plug) do
defmodule Msgpax.PlugParser do
@moduledoc """
A `Plug.Parsers` plug for parsing a MessagePack-encoded body.
Look at the [documentation for
`Plug.Parsers`](http://hexdocs.pm/plug/Plug.Parsers.html) for more
information on how to use `Plug.Parsers`.
This parse... | 31.0625 | 94 | 0.621156 |
62ee36232f0f50b9d2780e7a69fdf0f4585788bc | 498 | exs | Elixir | config/test.exs | Nebo15/ael.api | 22624a2673d0af1ef5f89b2429979456d2589eda | [
"MIT"
] | 19 | 2017-04-27T14:00:16.000Z | 2021-06-08T20:47:39.000Z | config/test.exs | Nebo15/ael.api | 22624a2673d0af1ef5f89b2429979456d2589eda | [
"MIT"
] | 3 | 2017-05-17T13:13:33.000Z | 2017-05-29T15:08:30.000Z | config/test.exs | Nebo15/ael.api | 22624a2673d0af1ef5f89b2429979456d2589eda | [
"MIT"
] | 4 | 2017-07-27T16:15:22.000Z | 2021-06-08T20:47:45.000Z | use Mix.Config
# Configuration for test environment
config :ex_unit, capture_log: true
# We don't run a server during test. If one is required,
# you can enable the server option below.
config :ael_api, Ael.Web.Endpoint,
http: [port: 4001],
server: true
# Print only warnings and errors during test
config :logge... | 22.636364 | 56 | 0.746988 |
62ee5587e93820e8fff6bc91dc6dd6549582a92e | 1,681 | ex | Elixir | clients/android_publisher/lib/google_api/android_publisher/v3/model/app_edit.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/android_publisher/lib/google_api/android_publisher/v3/model/app_edit.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/android_publisher/lib/google_api/android_publisher/v3/model/app_edit.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... | 33.62 | 180 | 0.724569 |
62ee62d8a4912b5b002a9d72af15faaf67687c28 | 1,186 | exs | Elixir | machine_translation/MorpHIN/Learned/Resources/Set2/TrainingInstances/96.exs | AdityaPrasadMishra/NLP--Project-Group-16 | fb62cc6a1db4a494058171f11c14a2be3933a9a1 | [
"MIT"
] | null | null | null | machine_translation/MorpHIN/Learned/Resources/Set2/TrainingInstances/96.exs | AdityaPrasadMishra/NLP--Project-Group-16 | fb62cc6a1db4a494058171f11c14a2be3933a9a1 | [
"MIT"
] | null | null | null | machine_translation/MorpHIN/Learned/Resources/Set2/TrainingInstances/96.exs | AdityaPrasadMishra/NLP--Project-Group-16 | fb62cc6a1db4a494058171f11c14a2be3933a9a1 | [
"MIT"
] | null | null | null | **EXAMPLE FILE**
verb verb_aux noun SYM verb_aux;
nst verb noun cm cm;
cm noun noun cm adjective;
SYM verb noun cm cm;
noun verb verb_aux SYM verb_aux;
nst verb noun cm adjective;
verb verb demonstrative noun cm;
verb verb noun SYM adjective;
cm noun noun cm adjective;
verb verb cardinal noun adjective;
cm ... | 30.410256 | 41 | 0.781619 |
62ee7bacf7f6dcfe5ea48b1c607d0bcfa4153505 | 228 | ex | Elixir | lib/mix/tasks/static.upload.clean.ex | gustavoarmoa/changelog.com | e898a9979a237ae66962714821ed8633a4966f37 | [
"MIT"
] | 1 | 2019-11-02T08:32:25.000Z | 2019-11-02T08:32:25.000Z | lib/mix/tasks/static.upload.clean.ex | sdrees/changelog.com | 955cdcf93d74991062f19a03e34c9f083ade1705 | [
"MIT"
] | null | null | null | lib/mix/tasks/static.upload.clean.ex | sdrees/changelog.com | 955cdcf93d74991062f19a03e34c9f083ade1705 | [
"MIT"
] | null | null | null | defmodule Mix.Tasks.Changelog.Static.Upload.Clean do
use Mix.Task
@shortdoc "Deletes stale static files from S3"
def run(_) do
Mix.Task.run("app.start")
Changelog.S3Static.delete_unused_files_from_s3()
end
end
| 20.727273 | 52 | 0.741228 |
62ee7f429ba1aef7fd68b2e54b04402e4f3a6853 | 3,326 | exs | Elixir | test/hexpm/web/controllers/dashboard/profile_controller_test.exs | hubertpompecki/hexpm | 5cd4208b07a70bf2e1490930bf5d577978793b50 | [
"Apache-2.0"
] | null | null | null | test/hexpm/web/controllers/dashboard/profile_controller_test.exs | hubertpompecki/hexpm | 5cd4208b07a70bf2e1490930bf5d577978793b50 | [
"Apache-2.0"
] | null | null | null | test/hexpm/web/controllers/dashboard/profile_controller_test.exs | hubertpompecki/hexpm | 5cd4208b07a70bf2e1490930bf5d577978793b50 | [
"Apache-2.0"
] | null | null | null | defmodule Hexpm.Web.Dashboard.ProfileControllerTest do
use Hexpm.ConnCase, async: true
use Bamboo.Test
alias Hexpm.Accounts.{User, Users}
defp add_email(user, email) do
{:ok, user} = Users.add_email(user, %{email: email}, audit: {user, "TEST"})
user
end
setup do
%{
user: create_user("er... | 32.291262 | 89 | 0.645821 |
62ee81b306a6b2aa360305ca6a6b5dc176d443ff | 3,494 | ex | Elixir | clients/document_ai/lib/google_api/document_ai/v1/model/google_cloud_documentai_v1beta1_document_style.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/document_ai/lib/google_api/document_ai/v1/model/google_cloud_documentai_v1beta1_document_style.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/document_ai/lib/google_api/document_ai/v1/model/google_cloud_documentai_v1beta1_document_style.ex | dazuma/elixir-google-api | 6a9897168008efe07a6081d2326735fe332e522c | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 44.794872 | 179 | 0.734116 |
62ee81b6884310ca8cdc4172cebbcc3897a18b4f | 2,079 | ex | Elixir | clients/pub_sub/lib/google_api/pub_sub/v1/model/list_topic_snapshots_response.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/pub_sub/lib/google_api/pub_sub/v1/model/list_topic_snapshots_response.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/pub_sub/lib/google_api/pub_sub/v1/model/list_topic_snapshots_response.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... | 40.764706 | 293 | 0.746994 |
62ee8828c2274ae2c71fbfed316e9b8da857cb62 | 3,128 | ex | Elixir | 01-elixir-in-action/deps/dialyxir/lib/dialyxir/dialyzer.ex | rgfaber/robex | 1c3ea12795a51b5517c8a5e6da225c68cc3d66cc | [
"MIT"
] | null | null | null | 01-elixir-in-action/deps/dialyxir/lib/dialyxir/dialyzer.ex | rgfaber/robex | 1c3ea12795a51b5517c8a5e6da225c68cc3d66cc | [
"MIT"
] | null | null | null | 01-elixir-in-action/deps/dialyxir/lib/dialyxir/dialyzer.ex | rgfaber/robex | 1c3ea12795a51b5517c8a5e6da225c68cc3d66cc | [
"MIT"
] | null | null | null | defmodule Dialyxir.Dialyzer do
import Dialyxir.Output, only: [color: 2, info: 1]
alias String.Chars
alias Dialyxir.Formatter
alias Dialyxir.Project
alias Dialyxir.FilterMap
defmodule Runner do
@dialyxir_args [
:raw,
:format,
:list_unused_filters,
:ignore_exit_status
]
d... | 28.697248 | 98 | 0.596547 |
62ee8e21efe94eb741ddb116e2d1bef03f47c164 | 23,402 | ex | Elixir | clients/compute/lib/google_api/compute/v1/api/region_url_maps.ex | ukrbublik/elixir-google-api | 364cec36bc76f60bec94cbcad34844367a29d174 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/api/region_url_maps.ex | ukrbublik/elixir-google-api | 364cec36bc76f60bec94cbcad34844367a29d174 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/api/region_url_maps.ex | ukrbublik/elixir-google-api | 364cec36bc76f60bec94cbcad34844367a29d174 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 45.003846 | 434 | 0.623793 |
62eeae85be5b700e964da084b65d1ee457de95e4 | 141 | exs | Elixir | test/job_queue_test.exs | jeffutter/job_queue | ad390c5c780fb7a982e64edf9ca7a49c90bb5dd4 | [
"MIT"
] | 6 | 2017-11-21T08:35:10.000Z | 2019-02-07T15:58:31.000Z | test/job_queue_test.exs | jeffutter/job_queue | ad390c5c780fb7a982e64edf9ca7a49c90bb5dd4 | [
"MIT"
] | null | null | null | test/job_queue_test.exs | jeffutter/job_queue | ad390c5c780fb7a982e64edf9ca7a49c90bb5dd4 | [
"MIT"
] | null | null | null | defmodule JobQueueTest do
use ExUnit.Case
doctest JobQueue
test "greets the world" do
assert JobQueue.hello() == :world
end
end
| 15.666667 | 37 | 0.716312 |
62eeb6f68ac12038855203cad75e92313ffe7e0a | 346 | exs | Elixir | api/priv/repo/seeds.exs | cnole/phoenix-react-slack-clone | 852cc32ee157a18c93ddd1eb627ddf61bc294cda | [
"MIT"
] | 34 | 2017-01-02T14:00:25.000Z | 2021-11-20T20:51:41.000Z | api/priv/repo/seeds.exs | cnole/phoenix-react-slack-clone | 852cc32ee157a18c93ddd1eb627ddf61bc294cda | [
"MIT"
] | 3 | 2017-08-02T19:38:27.000Z | 2022-03-02T03:34:27.000Z | api/priv/repo/seeds.exs | cnole/phoenix-react-slack-clone | 852cc32ee157a18c93ddd1eb627ddf61bc294cda | [
"MIT"
] | 5 | 2017-02-19T20:34:09.000Z | 2021-10-05T11:35:11.000Z | # Script for populating the database. You can run it as:
#
# mix run priv/repo/seeds.exs
#
# Inside the script, you can read and write to any of your
# repositories directly:
#
# Sling.Repo.insert!(%Sling.SomeModel{})
#
# We recommend using the bang functions (`insert!`, `update!`
# and so on) as they will fail... | 28.833333 | 61 | 0.702312 |
62ef08b2d03f4a38d8246aab30cea2662a5cdce7 | 1,365 | ex | Elixir | lib/web_driver_client/w3c_wire_protocol_client/commands/take_screenshot.ex | fimassuda/web_driver_client | 09d373c9a8a923c5e2860f107f84b16565e338f7 | [
"MIT"
] | 8 | 2019-11-24T18:33:12.000Z | 2020-12-09T10:20:09.000Z | lib/web_driver_client/w3c_wire_protocol_client/commands/take_screenshot.ex | fimassuda/web_driver_client | 09d373c9a8a923c5e2860f107f84b16565e338f7 | [
"MIT"
] | 67 | 2019-12-20T16:33:30.000Z | 2021-09-14T03:50:10.000Z | lib/web_driver_client/w3c_wire_protocol_client/commands/take_screenshot.ex | fimassuda/web_driver_client | 09d373c9a8a923c5e2860f107f84b16565e338f7 | [
"MIT"
] | 10 | 2020-06-19T16:15:03.000Z | 2021-09-13T17:56:25.000Z | defmodule WebDriverClient.W3CWireProtocolClient.Commands.TakeScreenshot do
@moduledoc false
alias WebDriverClient.Config
alias WebDriverClient.ConnectionError
alias WebDriverClient.HTTPResponse
alias WebDriverClient.Session
alias WebDriverClient.W3CWireProtocolClient.ResponseParser
alias WebDriverClient.... | 36.891892 | 92 | 0.733333 |
62ef08c96f7ad3a0902fefabf6bd89dbda4436f4 | 639 | exs | Elixir | api/test/alcarin_api_web/views/error_view_test.exs | psychowico/phoenix-vuejs-skeleton | 6e8fa12bf1050bb08c5e312fd972db92a1e0b214 | [
"MIT"
] | null | null | null | api/test/alcarin_api_web/views/error_view_test.exs | psychowico/phoenix-vuejs-skeleton | 6e8fa12bf1050bb08c5e312fd972db92a1e0b214 | [
"MIT"
] | null | null | null | api/test/alcarin_api_web/views/error_view_test.exs | psychowico/phoenix-vuejs-skeleton | 6e8fa12bf1050bb08c5e312fd972db92a1e0b214 | [
"MIT"
] | null | null | null | defmodule SkeletonApiWeb.ErrorViewTest do
use SkeletonApiWeb.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(SkeletonApiWeb.ErrorView, "404.json", []) ==
%{errors: %{detail: "Page not found"}}
... | 29.045455 | 66 | 0.665102 |
62ef123aa63fb4540adabb857ae58d3192587252 | 1,519 | ex | Elixir | activelearnbackend/roomcodes/lib/roomcodes/code_worker.ex | braydentam/activelearn | 8ff573b263f2ed698b10a40c6421f1616b624b74 | [
"MIT"
] | 5 | 2021-03-27T22:17:10.000Z | 2021-07-12T03:48:57.000Z | activelearnbackend/roomcodes/lib/roomcodes/code_worker.ex | braydentam/activelearn | 8ff573b263f2ed698b10a40c6421f1616b624b74 | [
"MIT"
] | null | null | null | activelearnbackend/roomcodes/lib/roomcodes/code_worker.ex | braydentam/activelearn | 8ff573b263f2ed698b10a40c6421f1616b624b74 | [
"MIT"
] | null | null | null | defmodule Roomcodes.CodeWorker do
use GenServer
def find_avaliable_code(max, codes) do
code = Enum.random(1..max)
unless codes |> Enum.find(false, &(&1 == code)) do
code
else
find_avaliable_code(max, codes)
end
end
def handle_call(:get, _from, {:ok, state}) do
{:reply, find_ava... | 28.12963 | 115 | 0.631995 |
62ef1c63b383ac3b8b369552aef60dfec0a219bd | 44,615 | exs | Elixir | test/ecto/changeset/has_assoc_test.exs | samuelpordeus/ecto | c66ab5f89ef348c7f520f427001c33d95a78bd2e | [
"Apache-2.0"
] | null | null | null | test/ecto/changeset/has_assoc_test.exs | samuelpordeus/ecto | c66ab5f89ef348c7f520f427001c33d95a78bd2e | [
"Apache-2.0"
] | null | null | null | test/ecto/changeset/has_assoc_test.exs | samuelpordeus/ecto | c66ab5f89ef348c7f520f427001c33d95a78bd2e | [
"Apache-2.0"
] | null | null | null | defmodule Ecto.Changeset.HasAssocTest do
use ExUnit.Case, async: true
alias Ecto.Changeset
alias Ecto.Changeset.Relation
alias Ecto.TestRepo
alias __MODULE__.Author
alias __MODULE__.Post
alias __MODULE__.Profile
defmodule Post do
use Ecto.Schema
schema "posts" do
field :title, :string
... | 38.761946 | 128 | 0.652359 |
62ef72044a23e55feeb2b49ed54885d573952b43 | 607 | exs | Elixir | lib/mix/test/mix/archive_test.exs | enokd/elixir | e39b32f235082b8a29fcb22d250c822cca98609f | [
"Apache-2.0"
] | 1 | 2015-11-12T19:23:45.000Z | 2015-11-12T19:23:45.000Z | lib/mix/test/mix/archive_test.exs | enokd/elixir | e39b32f235082b8a29fcb22d250c822cca98609f | [
"Apache-2.0"
] | null | null | null | lib/mix/test/mix/archive_test.exs | enokd/elixir | e39b32f235082b8a29fcb22d250c822cca98609f | [
"Apache-2.0"
] | null | null | null | Code.require_file "../test_helper.exs", __DIR__
defmodule Mix.ArchiveTest do
use MixTest.Case
doctest Mix.Archive
test "archive" do
in_fixture "archive", fn ->
Mix.Archive.create(".", "sample.ez")
archive = 'sample.ez'
assert File.exists?(archive)
assert has_zip_file?(archive, 'samp... | 25.291667 | 85 | 0.650741 |
62ef78fbc36d8e9c7f03e351e317a88d31eb4e32 | 388 | exs | Elixir | server/priv/repo/migrations/20210408034825_create_visitors.exs | lemartin19/cs4550-project | bd7baf279021543db33fe52beb3e0d5413dbe405 | [
"Xnet",
"X11"
] | null | null | null | server/priv/repo/migrations/20210408034825_create_visitors.exs | lemartin19/cs4550-project | bd7baf279021543db33fe52beb3e0d5413dbe405 | [
"Xnet",
"X11"
] | null | null | null | server/priv/repo/migrations/20210408034825_create_visitors.exs | lemartin19/cs4550-project | bd7baf279021543db33fe52beb3e0d5413dbe405 | [
"Xnet",
"X11"
] | null | null | null | defmodule Project.Repo.Migrations.CreateVisitors do
use Ecto.Migration
def change do
create table(:visitors) do
add :user_id, references(:users, on_delete: :delete_all), nul: false
add :route_id, references(:routes, on_delete: :nilify_all)
timestamps()
end
create unique_index(:visit... | 24.25 | 74 | 0.698454 |
62ef9420705e4c6c07a6190ba9192507e749eaf3 | 6,105 | exs | Elixir | test/advent2019_web/controllers/day18_controller_test.exs | jacopofar/advent-of-code-2019-phoenix-react | 762d7053fd8eeb096187fb394e3ce03bbe1854d7 | [
"MIT"
] | 5 | 2019-12-02T08:50:54.000Z | 2021-03-31T22:54:20.000Z | test/advent2019_web/controllers/day18_controller_test.exs | jacopofar/advent-of-code-2019-phoenix-react | 762d7053fd8eeb096187fb394e3ce03bbe1854d7 | [
"MIT"
] | 1 | 2019-12-18T07:19:26.000Z | 2019-12-18T07:19:26.000Z | test/advent2019_web/controllers/day18_controller_test.exs | jacopofar/advent-of-code-2019-phoenix-react | 762d7053fd8eeb096187fb394e3ce03bbe1854d7 | [
"MIT"
] | 2 | 2019-12-16T07:52:16.000Z | 2019-12-17T17:49:05.000Z | defmodule Advent2019Web.Day18ControllerTest do
use Advent2019Web.ConnCase
import Advent2019Web.Day18Controller
@labyrinth_str ~S"""
########################
#...............b.C.D.f#
#.######################
#.....@.a.B.c.d.A.e.F.g#
########################
"""
test "can represent a labyrinth as a ... | 31.963351 | 90 | 0.348567 |
62ef9f029525d25e5199dde7ba1484e41ffa1c32 | 1,996 | exs | Elixir | config/prod.exs | Poniverse/LunaTube-API | 433473f32ec04a636f6de60642e445fd2e478f98 | [
"Apache-2.0"
] | null | null | null | config/prod.exs | Poniverse/LunaTube-API | 433473f32ec04a636f6de60642e445fd2e478f98 | [
"Apache-2.0"
] | null | null | null | config/prod.exs | Poniverse/LunaTube-API | 433473f32ec04a636f6de60642e445fd2e478f98 | [
"Apache-2.0"
] | null | null | null | 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... | 32.193548 | 67 | 0.714429 |
62efa9b8118cdeca57876f5057e73734f5c4f8ee | 482 | ex | Elixir | lib/doctor_schedule_web/controllers/api/password_forgot_controller.ex | theguuholi/doctor_schedule | a92dfa92d1398c59718be2428d36bb326d6bc361 | [
"MIT"
] | 2 | 2022-03-11T12:15:01.000Z | 2022-03-11T13:53:21.000Z | lib/doctor_schedule_web/controllers/api/password_forgot_controller.ex | theguuholi/doctor_schedule | a92dfa92d1398c59718be2428d36bb326d6bc361 | [
"MIT"
] | 3 | 2020-12-12T22:10:17.000Z | 2021-04-05T12:53:12.000Z | lib/doctor_schedule_web/controllers/api/password_forgot_controller.ex | theguuholi/doctor_schedule | a92dfa92d1398c59718be2428d36bb326d6bc361 | [
"MIT"
] | 1 | 2021-02-26T04:24:34.000Z | 2021-02-26T04:24:34.000Z | defmodule DoctorScheduleWeb.Api.PasswordForgotController do
use DoctorScheduleWeb, :controller
alias DoctorSchedule.Accounts.Services.SendForgotPasswordToEmail
action_fallback DoctorScheduleWeb.FallbackController
def create(conn, %{"email" => email}) do
with {:ok, _user, _token} <- SendForgotPasswordToEma... | 30.125 | 76 | 0.73444 |
62efc1cb314cc772d91260ef21526847608a485e | 61 | ex | Elixir | Chapter07/vocial-demo-chapter-7/lib/vocial_web/views/layout_view.ex | PacktPublishing/Phoenix-Web-Development | a071392abe2a459be1896580446b006126c393bf | [
"MIT"
] | 10 | 2018-05-13T14:53:05.000Z | 2021-11-08T13:10:44.000Z | Chapter04/vocial-demo-0.4.0/lib/vocial_web/views/layout_view.ex | PacktPublishing/Phoenix-Web-Development | a071392abe2a459be1896580446b006126c393bf | [
"MIT"
] | null | null | null | Chapter04/vocial-demo-0.4.0/lib/vocial_web/views/layout_view.ex | PacktPublishing/Phoenix-Web-Development | a071392abe2a459be1896580446b006126c393bf | [
"MIT"
] | 2 | 2019-04-23T10:54:33.000Z | 2019-04-27T15:47:07.000Z | defmodule VocialWeb.LayoutView do
use VocialWeb, :view
end
| 15.25 | 33 | 0.803279 |
62efcdd69ab67d884c76edda3f2758856b292d8d | 784 | ex | Elixir | lib/display/colours.ex | wee911/elixir-koans-excerise | 71bd62fc3e2be91b654b69d3d791c39aaef9244b | [
"MIT"
] | null | null | null | lib/display/colours.ex | wee911/elixir-koans-excerise | 71bd62fc3e2be91b654b69d3d791c39aaef9244b | [
"MIT"
] | null | null | null | lib/display/colours.ex | wee911/elixir-koans-excerise | 71bd62fc3e2be91b654b69d3d791c39aaef9244b | [
"MIT"
] | null | null | null | defmodule Display.Paint do
def red(str), do: painter().red(str)
def cyan(str), do: painter().cyan(str)
def green(str), do: painter().green(str)
def yellow(str), do: painter.yellow(str)
defp painter do
case Mix.env do
:test -> Display.Uncoloured
_ -> Display.Colours
end
end
end
defmodul... | 23.058824 | 50 | 0.668367 |
62efe590cb0c2445b5cc6939496adad258d32e88 | 951 | ex | Elixir | api/lib/remote_day_web/schema.ex | arkanoryn/remote_day | 10e0a4b8995c44fae774c21189725b54f69186b4 | [
"Apache-2.0"
] | null | null | null | api/lib/remote_day_web/schema.ex | arkanoryn/remote_day | 10e0a4b8995c44fae774c21189725b54f69186b4 | [
"Apache-2.0"
] | 24 | 2018-10-19T07:54:11.000Z | 2022-02-26T13:28:55.000Z | api/lib/remote_day_web/schema.ex | arkanoryn/remote_day | 10e0a4b8995c44fae774c21189725b54f69186b4 | [
"Apache-2.0"
] | null | null | null | defmodule RemoteDayWeb.Schema do
@moduledoc false
use Absinthe.Schema
alias RemoteDay.{Account, HomeOffice}
alias RemoteDayWeb.Schema.Types.{Events, Users}
def context(ctx), do: Map.put(ctx, :loader, loader(ctx))
def plugins, do: [Absinthe.Middleware.Dataloader | Absinthe.Plugin.defaults()]
# imports... | 20.673913 | 87 | 0.691903 |
62effaf8b2494e1b186dd1f86fed825978a4d7dc | 2,210 | ex | Elixir | clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/config_map_key_selector.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/config_map_key_selector.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/config_map_key_selector.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... | 38.77193 | 242 | 0.717195 |
62f02d7f5177adf572af9b20dc4d323fa0451515 | 573 | exs | Elixir | exercises/practice/pangram/mix.exs | devtayls/elixir | 67824de8209ff1b6ed2f736deedfb5bd815130ca | [
"MIT"
] | 343 | 2017-06-22T16:28:28.000Z | 2022-03-25T21:33:32.000Z | exercises/practice/pangram/mix.exs | devtayls/elixir | 67824de8209ff1b6ed2f736deedfb5bd815130ca | [
"MIT"
] | 583 | 2017-06-19T10:48:40.000Z | 2022-03-28T21:43:12.000Z | exercises/practice/pangram/mix.exs | devtayls/elixir | 67824de8209ff1b6ed2f736deedfb5bd815130ca | [
"MIT"
] | 228 | 2017-07-05T07:09:32.000Z | 2022-03-27T08:59:08.000Z | defmodule Pangram.MixProject do
use Mix.Project
def project do
[
app: :pangram,
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
[
extra_a... | 19.758621 | 87 | 0.574171 |
62f05620ca965bec7b35bc6004230a85feb7dd2b | 13,906 | exs | Elixir | test/plug/parsers_test.exs | outstand/plug | e75d542b3028b5c1f348ac9d128306c46a6b6e70 | [
"Apache-2.0"
] | 1,218 | 2017-07-14T15:13:32.000Z | 2022-03-30T16:42:42.000Z | test/plug/parsers_test.exs | outstand/plug | e75d542b3028b5c1f348ac9d128306c46a6b6e70 | [
"Apache-2.0"
] | 502 | 2017-07-19T15:36:44.000Z | 2022-03-31T06:47:36.000Z | test/plug/parsers_test.exs | outstand/plug | e75d542b3028b5c1f348ac9d128306c46a6b6e70 | [
"Apache-2.0"
] | 376 | 2017-07-17T15:47:55.000Z | 2022-03-23T19:24:30.000Z | defmodule Plug.ParsersTest do
use ExUnit.Case, async: true
use Plug.Test
defmodule BodyReader do
def read_body(conn, opts) do
{:ok, body, conn} = Plug.Conn.read_body(conn, opts)
{:ok, body <> "BAR", conn}
end
def read_body(conn, opts, "test", "read body") do
{:ok, body, conn} = Pl... | 30.902222 | 101 | 0.612182 |
62f062733c87fbe52d6298e2ad2114f624ce3407 | 1,235 | exs | Elixir | installer/mix.exs | eahanson/medic | 01f35f2aa22e7120cf1bd492e6e5400a29224791 | [
"MIT"
] | null | null | null | installer/mix.exs | eahanson/medic | 01f35f2aa22e7120cf1bd492e6e5400a29224791 | [
"MIT"
] | null | null | null | installer/mix.exs | eahanson/medic | 01f35f2aa22e7120cf1bd492e6e5400a29224791 | [
"MIT"
] | null | null | null | defmodule GenMedic.MixProject do
use Mix.Project
@description """
Medic project generator.
Adds necessary Medic support files to a project.
## Installation
mix archive.install hex gen_medic
## Usage
mix gen.medic
"""
@medic_url "https://hex.pm/packages/medic"
@scm_url "https://github.com/geo... | 17.642857 | 60 | 0.561943 |
62f09dee5c8d04096e35c172c7be45bd823954dc | 360 | ex | Elixir | lib/level/web_push/schema.ex | mindriot101/level | 0a2cbae151869c2d9b79b3bfb388f5d00739ae12 | [
"Apache-2.0"
] | 928 | 2018-04-03T16:18:11.000Z | 2019-09-09T17:59:55.000Z | lib/level/web_push/schema.ex | mindriot101/level | 0a2cbae151869c2d9b79b3bfb388f5d00739ae12 | [
"Apache-2.0"
] | 74 | 2018-04-03T00:46:50.000Z | 2019-03-10T18:57:27.000Z | lib/level/web_push/schema.ex | mindriot101/level | 0a2cbae151869c2d9b79b3bfb388f5d00739ae12 | [
"Apache-2.0"
] | 89 | 2018-04-03T17:33:20.000Z | 2019-08-19T03:40:20.000Z | defmodule Level.WebPush.Schema do
@moduledoc """
The subscription schema.
"""
use Ecto.Schema
@type t :: %__MODULE__{}
@primary_key {:id, :binary_id, autogenerate: true}
@foreign_key_type :binary_id
schema "push_subscriptions" do
field :user_id, :binary_id
field :digest, :string
field :da... | 18 | 52 | 0.680556 |
62f0a33aa030b5cb839dd8e8025807648e3390f2 | 171 | exs | Elixir | priv/repo/migrations/20160113072454_user_password_fix.exs | KazuCocoa/ex_torello | 187d814094f79a3d99bca2746683804333d40dfe | [
"MIT"
] | null | null | null | priv/repo/migrations/20160113072454_user_password_fix.exs | KazuCocoa/ex_torello | 187d814094f79a3d99bca2746683804333d40dfe | [
"MIT"
] | null | null | null | priv/repo/migrations/20160113072454_user_password_fix.exs | KazuCocoa/ex_torello | 187d814094f79a3d99bca2746683804333d40dfe | [
"MIT"
] | null | null | null | defmodule ExTrello.Repo.Migrations.UserPasswordFix do
use Ecto.Migration
def change do
rename table(:users), :crypted_password, to: :encrypted_password
end
end
| 21.375 | 68 | 0.777778 |
62f0a6721d0b754a38816cbd7620479d3f000763 | 1,436 | ex | Elixir | lib/exsemantica_web/telemetry.ex | ExSemantica/exsemantica | c2d72513195f44b6b5f73c8cc07394de0a1fd273 | [
"Apache-2.0"
] | null | null | null | lib/exsemantica_web/telemetry.ex | ExSemantica/exsemantica | c2d72513195f44b6b5f73c8cc07394de0a1fd273 | [
"Apache-2.0"
] | 2 | 2020-07-21T20:53:13.000Z | 2020-07-21T20:54:15.000Z | lib/exsemantica_web/telemetry.ex | Chlorophytus/eactivitypub | 469346b4d5cd7ad2b575c245ac50fd71b00c4864 | [
"Apache-2.0"
] | null | null | null | defmodule ExsemanticaWeb.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_000ms. Le... | 28.156863 | 86 | 0.669916 |
62f0c261dad87d9232ffa99f6e90464e6695c847 | 3,618 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/api/dimension_values.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/api/dimension_values.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/api/dimension_values.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 ... | 42.564706 | 187 | 0.664456 |
62f0c4be52e10e1bef031e5a0a2aebfa9a57bf34 | 5,869 | ex | Elixir | lib/simple_pool/v1/worker_supervisor_behaviour.ex | noizu/SimplePool | fed0c2d13b3d8274da819300443abe1ef9240775 | [
"MIT"
] | 12 | 2018-07-03T10:14:54.000Z | 2020-04-07T02:04:39.000Z | lib/simple_pool/v1/worker_supervisor_behaviour.ex | noizu/SimplePool | fed0c2d13b3d8274da819300443abe1ef9240775 | [
"MIT"
] | 1 | 2018-12-02T06:05:59.000Z | 2018-12-02T06:05:59.000Z | lib/simple_pool/v1/worker_supervisor_behaviour.ex | noizu/SimplePool | fed0c2d13b3d8274da819300443abe1ef9240775 | [
"MIT"
] | 2 | 2018-03-05T12:01:51.000Z | 2018-07-03T10:15:04.000Z | #-------------------------------------------------------------------------------
# Author: Keith Brings
# Copyright (C) 2018 Noizu Labs, Inc. All rights reserved.
#-------------------------------------------------------------------------------
defmodule Noizu.SimplePool.WorkerSupervisorBehaviour do
alias Noizu.Elixi... | 37.864516 | 204 | 0.652411 |
62f0d2ce20910c374360748be60ae3afaa983940 | 1,163 | ex | Elixir | apps/webapp/web/channels/user_socket.ex | iporaitech/phoenix-webpack-react-docker | c454db0b851b9d00db868a64b96e567d4a0cc3d9 | [
"MIT"
] | 25 | 2016-08-09T15:04:37.000Z | 2021-11-15T12:20:27.000Z | apps/webapp/web/channels/user_socket.ex | iporaitech/phoenix-webpack-react-docker | c454db0b851b9d00db868a64b96e567d4a0cc3d9 | [
"MIT"
] | 62 | 2016-05-23T20:16:40.000Z | 2017-04-18T18:36:29.000Z | apps/webapp/web/channels/user_socket.ex | iporaitech/phoenix-webpack-react-docker | c454db0b851b9d00db868a64b96e567d4a0cc3d9 | [
"MIT"
] | 10 | 2016-08-17T15:29:21.000Z | 2017-02-28T07:58:30.000Z | defmodule Webapp.UserSocket do
use Phoenix.Socket
## Channels
# channel "room:*", Webapp.RoomChannel
## Transports
transport :websocket, Phoenix.Transports.WebSocket
# transport :longpoll, Phoenix.Transports.LongPoll
# Socket params are passed from the client and can
# be used to verify and authentic... | 30.605263 | 83 | 0.700774 |
62f0f0bc98d42a27325eea78444f8aeae9d70b15 | 151 | ex | Elixir | lib/utils/return_id.ex | starkinfra/sdk-elixir | d434de336ad7d2331b860519f04e9d107bb9c9cd | [
"MIT"
] | 1 | 2022-03-15T18:58:21.000Z | 2022-03-15T18:58:21.000Z | lib/utils/return_id.ex | starkinfra/sdk-elixir | d434de336ad7d2331b860519f04e9d107bb9c9cd | [
"MIT"
] | null | null | null | lib/utils/return_id.ex | starkinfra/sdk-elixir | d434de336ad7d2331b860519f04e9d107bb9c9cd | [
"MIT"
] | null | null | null | defmodule StarkInfra.Utils.ReturnId do
def create(bank_code) do
["D", StarkInfra.Utils.BacenId.create(bank_code)]
|> Enum.join("")
end
end
| 21.571429 | 53 | 0.701987 |
62f11023735aefbe23e524fd9fd495fc43af3891 | 127 | ex | Elixir | bullion-core/lib/bullion_core/player.ex | ttymck/bullion | d15babe80d30f9775e45f2a143b88a66b539d318 | [
"MIT"
] | null | null | null | bullion-core/lib/bullion_core/player.ex | ttymck/bullion | d15babe80d30f9775e45f2a143b88a66b539d318 | [
"MIT"
] | 8 | 2021-03-10T20:53:42.000Z | 2021-07-30T06:52:16.000Z | bullion-core/lib/bullion_core/player.ex | ttymck/bullion | d15babe80d30f9775e45f2a143b88a66b539d318 | [
"MIT"
] | null | null | null | defmodule BullionCore.Player do
defstruct ~w[id name]a
def new(id, name) do
%__MODULE__{id: id, name: name}
end
end
| 15.875 | 35 | 0.685039 |
62f13bb1941393471a564b1de345b76f38ef0eb2 | 1,091 | exs | Elixir | test/unit/discovery_api_web/controllers/metadata_controller_metrics_test.exs | folkengine/discovery_api | 0bb7a0aff4603a4f7532cc65ca8c8dbb37a57217 | [
"Apache-2.0"
] | 26 | 2019-09-20T23:54:45.000Z | 2020-08-20T14:23:32.000Z | test/unit/discovery_api_web/controllers/metadata_controller_metrics_test.exs | folkengine/discovery_api | 0bb7a0aff4603a4f7532cc65ca8c8dbb37a57217 | [
"Apache-2.0"
] | 757 | 2019-08-15T18:15:07.000Z | 2020-09-18T20:55:31.000Z | test/unit/discovery_api_web/controllers/metadata_controller_metrics_test.exs | folkengine/discovery_api | 0bb7a0aff4603a4f7532cc65ca8c8dbb37a57217 | [
"Apache-2.0"
] | 9 | 2019-11-12T16:43:46.000Z | 2020-03-25T16:23:16.000Z | defmodule DiscoveryApiWeb.DataController.MetricsTest do
use DiscoveryApiWeb.ConnCase
use Placebo
alias DiscoveryApi.Data.Model
describe "fetching dataset metrics" do
setup do
allow(Model.get_count_maps("123"), return: %{"queries" => "7", "downloads" => "9"})
allow(Model.get_count_maps("456"), r... | 34.09375 | 89 | 0.652612 |
62f140ef8813b0879538ef088a4208aee4ca2b06 | 2,658 | ex | Elixir | clients/storage/lib/google_api/storage/v1/model/bucket_iam_configuration.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/storage/lib/google_api/storage/v1/model/bucket_iam_configuration.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/storage/lib/google_api/storage/v1/model/bucket_iam_configuration.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... | 45.827586 | 446 | 0.765237 |
62f15352cd9074446bf9ae686ee207208632c1ea | 2,731 | ex | Elixir | clients/display_video/lib/google_api/display_video/v1/model/performance_goal.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/display_video/lib/google_api/display_video/v1/model/performance_goal.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/display_video/lib/google_api/display_video/v1/model/performance_goal.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... | 48.767857 | 372 | 0.753204 |
62f160cdbb5ba8ef7e1a441ac0e70d11763d0b27 | 857 | exs | Elixir | apps/note_it_web/config/config.exs | sushilman/note-it | c47edafb4272b9f01d53f8566f5ed7858f2d355c | [
"Apache-2.0"
] | null | null | null | apps/note_it_web/config/config.exs | sushilman/note-it | c47edafb4272b9f01d53f8566f5ed7858f2d355c | [
"Apache-2.0"
] | null | null | null | apps/note_it_web/config/config.exs | sushilman/note-it | c47edafb4272b9f01d53f8566f5ed7858f2d355c | [
"Apache-2.0"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
#
# This configuration file is loaded before any dependency and
# is restricted to this project.
use Mix.Config
# Configures the endpoint
config :note_it_web, NoteItWeb.Endpoint,
url: [host: "loc... | 35.708333 | 86 | 0.764294 |
62f16c9972300ad8c21be915731aba33902cbac1 | 1,417 | exs | Elixir | test/table_formatter_test.exs | leomindez/GithubIssues | 57c3ef6000c6adc414d7de01df4a714e1242a64e | [
"MIT"
] | null | null | null | test/table_formatter_test.exs | leomindez/GithubIssues | 57c3ef6000c6adc414d7de01df4a714e1242a64e | [
"MIT"
] | null | null | null | test/table_formatter_test.exs | leomindez/GithubIssues | 57c3ef6000c6adc414d7de01df4a714e1242a64e | [
"MIT"
] | null | null | null | defmodule TableFormatterTest do
use ExUnit.Case
import ExUnit.CaptureIO
alias Issues.TableFormatter, as: TF
def simple_test_data do
[ [ c1: "r1 c1", c2: "r1 c2", c3: "r1 c3", c4: "r1+++c4" ],
[ c1: "r2 c1", c2: "r2 c2", c3: "r2 c3", c4: "r2 c4" ],
[ c1: "r3 c1", c2: "... | 30.148936 | 91 | 0.54693 |
62f190f57a3d2aa3825af369d3d7f0affc712bf0 | 2,389 | ex | Elixir | test/support/match_helper.ex | axelson/path_glob | 40242d0e9a5ffc07010965250deda617ec69710c | [
"Apache-2.0"
] | 3 | 2021-10-07T05:22:45.000Z | 2021-12-21T06:34:20.000Z | test/support/match_helper.ex | axelson/path_glob | 40242d0e9a5ffc07010965250deda617ec69710c | [
"Apache-2.0"
] | null | null | null | test/support/match_helper.ex | axelson/path_glob | 40242d0e9a5ffc07010965250deda617ec69710c | [
"Apache-2.0"
] | 3 | 2021-10-30T05:35:50.000Z | 2021-12-21T08:04:15.000Z | defmodule PathGlob.MatchHelper do
@tmpdir "#{__DIR__}/../.tmp"
import ExUnit.Assertions
defmacro test_match(path, glob, opts \\ []) do
quote do
test "glob '#{unquote(glob)}' matches path '#{unquote(path)}'" do
within_tmpdir(unquote(path), fn ->
assert_match(unquote(path), unquote(glo... | 27.45977 | 79 | 0.598577 |
62f1b5cb2647266d1db2d352f4619899b31f3848 | 297 | exs | Elixir | .formatter.exs | cedretaber/cowguest | dd41ca95f19820de3707e4b1afa04f901a9e9670 | [
"MIT"
] | null | null | null | .formatter.exs | cedretaber/cowguest | dd41ca95f19820de3707e4b1afa04f901a9e9670 | [
"MIT"
] | null | null | null | .formatter.exs | cedretaber/cowguest | dd41ca95f19820de3707e4b1afa04f901a9e9670 | [
"MIT"
] | null | null | null | # Used by "mix format"
[
inputs: ["mix.exs", "{config,lib,test}/**/*.{ex,exs}"],
locals_without_parens: [
# Routing
plug: :*,
pipe_through: :*,
match: :*,
get: :*,
post: :*,
put: :*,
patch: :*,
delete: :*,
forward: :*,
# Test
on_exit: :*
]
]
| 14.85 | 57 | 0.447811 |
62f1b7f5c9dcf4202fe5b43cbf3f1c4a8cdec232 | 1,400 | ex | Elixir | test/support/data_case.ex | amacgregor/sibt | 9819a9de4735612ee59de00f71ca1a6dfa275860 | [
"MIT"
] | null | null | null | test/support/data_case.ex | amacgregor/sibt | 9819a9de4735612ee59de00f71ca1a6dfa275860 | [
"MIT"
] | 2 | 2020-07-18T02:22:22.000Z | 2021-03-09T15:46:44.000Z | test/support/data_case.ex | amacgregor/shouldibuildthat | 572b0ba95f93f6ea0dc7b250baaa1bc90efd521b | [
"MIT"
] | null | null | null | defmodule Sibt.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 ru... | 24.561404 | 77 | 0.675714 |
62f1c5b435c89a77bb4e367d953b1f45dddde1d0 | 1,421 | ex | Elixir | web/views/admin/product_view.ex | harry-gao/ex-cart | 573e7f977bb3b710d11618dd215d4ddd8f819fb3 | [
"Apache-2.0"
] | null | null | null | web/views/admin/product_view.ex | harry-gao/ex-cart | 573e7f977bb3b710d11618dd215d4ddd8f819fb3 | [
"Apache-2.0"
] | null | null | null | web/views/admin/product_view.ex | harry-gao/ex-cart | 573e7f977bb3b710d11618dd215d4ddd8f819fb3 | [
"Apache-2.0"
] | null | null | null | defmodule Nectar.Admin.ProductView do
use Nectar.Web, :view
import Ecto.Query
alias Nectar.{Repo,Product, ProductOptionType, OptionType, ProductCategory, ProductImage }
def link_to_product_option_types_fields do
changeset = Product.changeset(%Product{product_option_types: [%ProductOptionType{}]})
fo... | 45.83871 | 115 | 0.741027 |
62f1d25a9a127fe9b9864ee378eb835d24e1bb22 | 544 | exs | Elixir | priv/repo/migrations/20190701032610_add_reward_txns_table.exs | pakorn186c/blockchain-api | 3c9fbc892e645f9bb144414f3da36749603f37bc | [
"Apache-2.0"
] | 17 | 2019-11-03T03:02:41.000Z | 2022-01-13T17:03:32.000Z | priv/repo/migrations/20190701032610_add_reward_txns_table.exs | AddressXception/blockchain-api | eea98fa78af2887cc84762f84532c602c3b8b666 | [
"Apache-2.0"
] | 5 | 2019-11-07T23:26:53.000Z | 2020-11-24T21:45:35.000Z | priv/repo/migrations/20190701032610_add_reward_txns_table.exs | AddressXception/blockchain-api | eea98fa78af2887cc84762f84532c602c3b8b666 | [
"Apache-2.0"
] | 11 | 2019-12-04T07:03:16.000Z | 2022-01-13T17:03:50.000Z | defmodule BlockchainAPI.Repo.Migrations.AddRewardTxnsTable do
use Ecto.Migration
def change do
create table(:reward_txns) do
add :rewards_hash, references(:rewards_transactions, on_delete: :nothing, column: :hash, type: :binary), null: false
add :account, :binary, null: false
add :gateway, :b... | 28.631579 | 122 | 0.691176 |
62f24d3fb9afcd3db6df413e384b68a280b1a5d1 | 308 | exs | Elixir | test/file_size/errors/invalid_unit_system_error_test.exs | sitch/file_size | 1bd6d884d6cd124f7f8ccfa7f2485cd32f290ac0 | [
"MIT"
] | 5 | 2019-05-25T14:33:23.000Z | 2020-10-25T01:23:17.000Z | test/file_size/errors/invalid_unit_system_error_test.exs | sitch/file_size | 1bd6d884d6cd124f7f8ccfa7f2485cd32f290ac0 | [
"MIT"
] | 6 | 2020-04-14T21:48:53.000Z | 2020-09-25T12:52:03.000Z | test/file_size/errors/invalid_unit_system_error_test.exs | sitch/file_size | 1bd6d884d6cd124f7f8ccfa7f2485cd32f290ac0 | [
"MIT"
] | 1 | 2020-09-23T21:51:37.000Z | 2020-09-23T21:51:37.000Z | defmodule FileSize.InvalidUnitSystemErrorTest do
use ExUnit.Case
alias FileSize.InvalidUnitSystemError
describe "message/1" do
test "get message" do
assert Exception.message(%InvalidUnitSystemError{unit_system: :unknown}) ==
"Invalid unit system: :unknown"
end
end
end
| 23.692308 | 81 | 0.720779 |
62f270779fe7af7f0802276a033ae0fa2c24e11c | 2,865 | exs | Elixir | config/runtime.exs | dusthijsvdh/hergetto | 87598d8023a68fdb23b0eeb7659f5c61113997c9 | [
"MIT"
] | 8 | 2021-03-07T16:24:05.000Z | 2022-02-28T02:36:35.000Z | config/runtime.exs | dusthijsvdh/hergetto | 87598d8023a68fdb23b0eeb7659f5c61113997c9 | [
"MIT"
] | 126 | 2021-02-15T10:51:07.000Z | 2022-03-28T02:25:01.000Z | config/runtime.exs | dusthijsvdh/hergetto | 87598d8023a68fdb23b0eeb7659f5c61113997c9 | [
"MIT"
] | null | null | null | import Config
# config/runtime.exs is executed for all environments, including
# during releases. It is executed after compilation and before the
# system starts, so it is typically used to load production configuration
# and secrets from environment variables or elsewhere. Do not define
# any compile-time configurati... | 38.716216 | 82 | 0.69808 |
62f27e06c78343ab2212d3361a809ed7bc35574d | 1,247 | exs | Elixir | test/phoenix/code_reloader_test.exs | raspo/phoenix | 438b74255e7a4d68b4eaf1a295d0fcd201c71421 | [
"MIT"
] | 1 | 2015-05-19T11:04:16.000Z | 2015-05-19T11:04:16.000Z | test/phoenix/code_reloader_test.exs | raspo/phoenix | 438b74255e7a4d68b4eaf1a295d0fcd201c71421 | [
"MIT"
] | null | null | null | test/phoenix/code_reloader_test.exs | raspo/phoenix | 438b74255e7a4d68b4eaf1a295d0fcd201c71421 | [
"MIT"
] | null | null | null | defmodule Phoenix.CodeReloaderTest do
use ExUnit.Case, async: true
use RouterHelper
defmodule Endpoint do
def config(:reloadable_compilers) do
[:gettext, :phoenix, :elixir]
end
end
def reload!(_) do
{:error, "oops"}
end
test "compile.phoenix tasks touches files" do
assert Mix.Task... | 28.340909 | 73 | 0.657578 |
62f2815872e3cb6e002dfc2f454e71d287413d12 | 200 | ex | Elixir | test/support/multiple_select_case.ex | nickolaich/formex_ecto | 322907daa4924d1c297acc7f9e60f99bc8f2f6f3 | [
"MIT"
] | 20 | 2017-06-25T12:30:03.000Z | 2021-04-25T06:43:31.000Z | test/support/multiple_select_case.ex | nickolaich/formex_ecto | 322907daa4924d1c297acc7f9e60f99bc8f2f6f3 | [
"MIT"
] | 8 | 2017-11-19T17:15:32.000Z | 2020-02-02T12:50:03.000Z | test/support/multiple_select_case.ex | nickolaich/formex_ecto | 322907daa4924d1c297acc7f9e60f99bc8f2f6f3 | [
"MIT"
] | 9 | 2018-03-30T22:14:13.000Z | 2021-11-15T12:12:56.000Z | defmodule Formex.Ecto.MultipleSelectCase do
defmacro __using__(_) do
quote do
use Formex.Ecto.TestCase
import Formex.Builder
alias Formex.Ecto.TestModel.User
end
end
end
| 20 | 43 | 0.715 |
62f2a9341b597868d0ffc8c61879531e1f1d8506 | 1,070 | ex | Elixir | apps/potterhat_metrics/lib/potterhat_metrics/vm_stats_sink.ex | omisego/potterhat | 47635e5d061c76900bd0e42a19e5dfc2ae8c0253 | [
"Apache-2.0"
] | 6 | 2019-03-28T14:47:41.000Z | 2019-06-25T02:38:06.000Z | apps/potterhat_metrics/lib/potterhat_metrics/vm_stats_sink.ex | omisego/potterhat | 47635e5d061c76900bd0e42a19e5dfc2ae8c0253 | [
"Apache-2.0"
] | 30 | 2019-05-22T10:08:09.000Z | 2019-08-02T06:37:56.000Z | apps/potterhat_metrics/lib/potterhat_metrics/vm_stats_sink.ex | omisego/potterhat | 47635e5d061c76900bd0e42a19e5dfc2ae8c0253 | [
"Apache-2.0"
] | null | null | null | # Copyright 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 writi... | 28.157895 | 74 | 0.742991 |
62f2cd3e80f26f69accd1acef92f010695407108 | 801 | ex | Elixir | lib/librecov_web/live/build_live/show.ex | yknx4/opencov | dc961a41e29b41b0657bc2a64bb67350a65477b8 | [
"MIT"
] | 8 | 2021-08-22T10:37:57.000Z | 2022-01-10T11:27:06.000Z | lib/librecov_web/live/build_live/show.ex | yknx4/librecov | dc961a41e29b41b0657bc2a64bb67350a65477b8 | [
"MIT"
] | 109 | 2021-08-20T04:08:04.000Z | 2022-01-03T07:39:18.000Z | lib/librecov_web/live/build_live/show.ex | Librecov/librecov | dc961a41e29b41b0657bc2a64bb67350a65477b8 | [
"MIT"
] | null | null | null | defmodule Librecov.BuildLive.Show do
use Librecov.Web, :live_view
import Librecov.CommonView
alias Librecov.Repo
alias Librecov.Build
alias Librecov.BuildLive.Commit
alias Librecov.FileService
@impl true
def mount(_params, _session, socket) do
{:ok, socket}
end
@impl true
def handle_params(... | 25.83871 | 67 | 0.685393 |
62f2de706e913a5f42cea12ebf4d4324ccc91807 | 5,474 | exs | Elixir | packages/engine_umbrella/apps/engine/test/booking_test.exs | PredictiveMovement/predictivemovement | f5e62d4aed4d2068026aecf3f7f8b6749a0b0563 | [
"MIT"
] | 2 | 2021-12-09T16:06:51.000Z | 2021-12-09T16:06:55.000Z | packages/engine_umbrella/apps/engine/test/booking_test.exs | PredictiveMovement/predictivemovement | f5e62d4aed4d2068026aecf3f7f8b6749a0b0563 | [
"MIT"
] | 18 | 2021-09-20T08:04:41.000Z | 2021-11-08T14:58:47.000Z | packages/engine_umbrella/apps/engine/test/booking_test.exs | PredictiveMovement/predictivemovement | f5e62d4aed4d2068026aecf3f7f8b6749a0b0563 | [
"MIT"
] | null | null | null | defmodule BookingTest do
import TestHelper
alias MessageGenerator.BookingGenerator
use ExUnit.Case
import Mox
setup :clear_state
setup do
Engine.Adapters.MockRMQ
|> stub(:publish, fn data, _, _ -> data end)
|> stub(:publish, fn data, _ -> data end)
:ok
end
test "it allows booking cre... | 26.317308 | 97 | 0.588783 |
62f2fbf8dc2bbb6e6d9007a62662c78490c54a06 | 334 | exs | Elixir | priv/repo/migrations/20170824113359_create_cms_authors.exs | exacs/liqen_core | bba1727ff3b3061ad5a0ecb668eb3038070836a4 | [
"MIT"
] | null | null | null | priv/repo/migrations/20170824113359_create_cms_authors.exs | exacs/liqen_core | bba1727ff3b3061ad5a0ecb668eb3038070836a4 | [
"MIT"
] | null | null | null | priv/repo/migrations/20170824113359_create_cms_authors.exs | exacs/liqen_core | bba1727ff3b3061ad5a0ecb668eb3038070836a4 | [
"MIT"
] | null | null | null | defmodule LiqenCore.Repo.Migrations.CreateCmsAuthors do
use Ecto.Migration
def change do
create table(:cms_authors) do
add :role, :string
add :user_id,
references(:users, on_delete: :delete_all),
null: false
timestamps()
end
create unique_index(:cms_authors, [:user_i... | 19.647059 | 55 | 0.664671 |
62f3022fdd269520b0b3a877c10c593512ba764c | 1,455 | exs | Elixir | test/storage_test.exs | LaxisB/neo4_ecto | dd41935463c71b611d989fa10cbad9d8522cc1dd | [
"Apache-2.0"
] | 58 | 2021-05-14T13:38:44.000Z | 2022-02-07T16:59:33.000Z | test/storage_test.exs | LaxisB/neo4_ecto | dd41935463c71b611d989fa10cbad9d8522cc1dd | [
"Apache-2.0"
] | 6 | 2021-05-13T19:31:15.000Z | 2021-10-14T00:00:54.000Z | test/storage_test.exs | LaxisB/neo4_ecto | dd41935463c71b611d989fa10cbad9d8522cc1dd | [
"Apache-2.0"
] | 4 | 2021-06-18T16:29:52.000Z | 2021-11-06T05:46:22.000Z | defmodule Neo4Ecto.StorageTest do
use ExUnit.Case
alias Neo4Ecto.Storage
def params do
[database: :neo4jtest]
end
describe "storage_up/1" do
@tag :skip
test "creates database" do
assert Storage.storage_up(params()) == :ok
after
Storage.storage_down(params())
end
@tag :s... | 23.852459 | 77 | 0.65567 |
62f331e38b2d89123b307e84395b275c54959b7b | 203 | ex | Elixir | lib/hydra_graphql/types/product_type.ex | adrianomota/hydra | b72386467089d087cd3dc8f3106842ecb8e68ac3 | [
"MIT"
] | null | null | null | lib/hydra_graphql/types/product_type.ex | adrianomota/hydra | b72386467089d087cd3dc8f3106842ecb8e68ac3 | [
"MIT"
] | null | null | null | lib/hydra_graphql/types/product_type.ex | adrianomota/hydra | b72386467089d087cd3dc8f3106842ecb8e68ac3 | [
"MIT"
] | null | null | null | defmodule HydraGraphql.Types.ProductType do
use Absinthe.Schema.Notation
input_object :product_input do
field :product, non_null(:string)
field :stores, list_of(non_null(:string))
end
end
| 22.555556 | 45 | 0.763547 |
62f345c3290712c1bb65cd20b462964d7eacce90 | 1,177 | ex | Elixir | lib/screens/config.ex | mbta/screens | 4b586970f8844b19543bb2ffd4b032a89f6fa40a | [
"MIT"
] | 3 | 2021-07-27T14:11:00.000Z | 2022-01-03T14:16:43.000Z | lib/screens/config.ex | mbta/screens | 4b586970f8844b19543bb2ffd4b032a89f6fa40a | [
"MIT"
] | 444 | 2021-03-10T20:57:17.000Z | 2022-03-31T16:00:35.000Z | lib/screens/config.ex | mbta/screens | 4b586970f8844b19543bb2ffd4b032a89f6fa40a | [
"MIT"
] | null | null | null | defmodule Screens.Config do
@moduledoc false
alias Screens.Config.{Devops, Screen}
@type t :: %__MODULE__{
screens: %{
screen_id => Screen.t()
},
devops: Devops.t()
}
@type screen_id :: String.t()
@enforce_keys [:screens]
defstruct screens: nil,
... | 24.520833 | 80 | 0.629567 |
62f347f26771cff968d9c97bf4a04d5f242f3810 | 195 | exs | Elixir | .dialyzer_ignore.exs | andrewvmail/MongoosePush | 538846e19a89c9ca4bc1583745131dc69d3d29f4 | [
"Apache-2.0"
] | 107 | 2017-02-10T00:26:05.000Z | 2022-02-23T00:50:07.000Z | .dialyzer_ignore.exs | andrewvmail/MongoosePush | 538846e19a89c9ca4bc1583745131dc69d3d29f4 | [
"Apache-2.0"
] | 109 | 2017-02-09T14:40:20.000Z | 2021-04-30T22:01:20.000Z | .dialyzer_ignore.exs | andrewvmail/MongoosePush | 538846e19a89c9ca4bc1583745131dc69d3d29f4 | [
"Apache-2.0"
] | 25 | 2017-08-21T20:55:33.000Z | 2022-03-06T10:01:13.000Z | [
~r/unmatched_return/,
~r/Function :asn1ct.compile\/2 does not exist/,
~r/lib\/mix\//,
~r/test\/support\/mix\//,
~r/test\/support\/requests_generator\.ex/,
{"test/support/api.ex"}
]
| 21.666667 | 49 | 0.625641 |
62f34819690ddab7285bfb03cfca421249573a2b | 629 | ex | Elixir | lib/new_relic/error/supervisor.ex | tpitale/elixir_agent | f356b588fe9d7cc3b9db00d9a251e009a20b3e0e | [
"Apache-2.0"
] | 227 | 2018-09-05T15:33:23.000Z | 2022-02-25T18:12:06.000Z | lib/new_relic/error/supervisor.ex | tpitale/elixir_agent | f356b588fe9d7cc3b9db00d9a251e009a20b3e0e | [
"Apache-2.0"
] | 211 | 2018-09-05T21:42:41.000Z | 2022-03-25T17:51:56.000Z | lib/new_relic/error/supervisor.ex | tpitale/elixir_agent | f356b588fe9d7cc3b9db00d9a251e009a20b3e0e | [
"Apache-2.0"
] | 84 | 2018-09-05T04:26:26.000Z | 2022-03-09T14:28:14.000Z | defmodule NewRelic.Error.Supervisor do
use Supervisor
alias NewRelic.Error
# Registers an erlang error logger to catch and report errors.
@moduledoc false
def start_link(_) do
Supervisor.start_link(__MODULE__, [])
end
def init(_) do
children = [
{Task.Supervisor, name: Error.TaskSupervis... | 20.290323 | 64 | 0.709062 |
62f3c5bdd5b39413c258b0bf444dc5e08d0a0659 | 1,042 | ex | Elixir | lib/cotoami_web/controllers/amishi_controller.ex | reallinfo/cotoami | faaee71710019fa55a8215ea60d1d3bafc30d506 | [
"Apache-2.0"
] | null | null | null | lib/cotoami_web/controllers/amishi_controller.ex | reallinfo/cotoami | faaee71710019fa55a8215ea60d1d3bafc30d506 | [
"Apache-2.0"
] | null | null | null | lib/cotoami_web/controllers/amishi_controller.ex | reallinfo/cotoami | faaee71710019fa55a8215ea60d1d3bafc30d506 | [
"Apache-2.0"
] | null | null | null | defmodule CotoamiWeb.AmishiController do
use CotoamiWeb, :controller
require Logger
alias Cotoami.{AmishiService, RedisService}
alias CotoamiWeb.AmishiView
def action(conn, _) do
apply(__MODULE__, action_name(conn), [conn, conn.params, conn.assigns.amishi])
end
def show_by_email(conn, %{"email" => e... | 28.944444 | 82 | 0.65547 |
62f3c939bdc5a6fb54dc2f5b89db10b6c7649c45 | 2,686 | exs | Elixir | mix.exs | watsy0007/desktop | 3ba43a1c16aa39bab3e03c94e56024c66f0b1d96 | [
"MIT"
] | null | null | null | mix.exs | watsy0007/desktop | 3ba43a1c16aa39bab3e03c94e56024c66f0b1d96 | [
"MIT"
] | null | null | null | mix.exs | watsy0007/desktop | 3ba43a1c16aa39bab3e03c94e56024c66f0b1d96 | [
"MIT"
] | null | null | null | defmodule Desktop.MixProject do
use Mix.Project
@version "1.4.1"
@url "https://github.com/elixir-desktop/desktop"
def project do
[
app: :desktop,
name: "Desktop",
version: @version,
source_url: @url,
description: """
Write Desktop Apps with Elixir.
""",
elix... | 22.571429 | 108 | 0.528667 |
62f3fd1d9783d04d502dd1c398e5c631fe96bc22 | 2,206 | ex | Elixir | lib/money/application.ex | conceivably/money | af00c5b2023054fecb36fe71547251f656d12fdb | [
"Apache-2.0"
] | null | null | null | lib/money/application.ex | conceivably/money | af00c5b2023054fecb36fe71547251f656d12fdb | [
"Apache-2.0"
] | null | null | null | lib/money/application.ex | conceivably/money | af00c5b2023054fecb36fe71547251f656d12fdb | [
"Apache-2.0"
] | null | null | null | defmodule Money.Application do
use Application
alias Money.ExchangeRates
require Logger
@auto_start :auto_start_exchange_rate_service
def start(_type, args) do
children = [
Money.ExchangeRates.Supervisor
]
opts = if args == [] do
[strategy: :one_for_one, name: Money.Supervisor]
... | 25.952941 | 101 | 0.669084 |
62f4367a1351f947295caeaf68ad05a1d1f34e1a | 1,089 | ex | Elixir | lib/ex_ftx/orders/modify_by_client_order_id.ex | RaghavSood/ex_ftx | 257ba35221abe4957836eb6e8312ecae0d9d51aa | [
"MIT"
] | 3 | 2021-09-27T17:19:41.000Z | 2022-03-16T09:28:13.000Z | lib/ex_ftx/orders/modify_by_client_order_id.ex | RaghavSood/ex_ftx | 257ba35221abe4957836eb6e8312ecae0d9d51aa | [
"MIT"
] | 3 | 2021-07-28T19:53:02.000Z | 2021-09-27T15:48:38.000Z | lib/ex_ftx/orders/modify_by_client_order_id.ex | RaghavSood/ex_ftx | 257ba35221abe4957836eb6e8312ecae0d9d51aa | [
"MIT"
] | 4 | 2021-08-01T11:25:58.000Z | 2021-10-11T22:15:44.000Z | defmodule ExFtx.Orders.ModifyByClientOrderId do
alias ExFtx.JsonResponse
@type credentials :: ExFtx.Credentials.t()
@type modify_payload :: ExFtx.ModifyOrderByClientIdPayload.t()
@type order :: ExFtx.Order.t()
@type result :: {:ok, order} | {:error, String.t() | :parse_result_item}
@spec post(credentials,... | 31.114286 | 80 | 0.700643 |
62f45d4c48b1d89d6d67706ff4fd76686c760f29 | 2,511 | ex | Elixir | clients/content/lib/google_api/content/v2/model/product_status_item_level_issue.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/model/product_status_item_level_issue.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/model/product_status_item_level_issue.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... | 36.391304 | 122 | 0.708881 |
62f466b42311efced32c25990f58544ab150fe9b | 266 | exs | Elixir | priv/repo/migrations/20160226211042_create_artist.exs | nicohartto/headland-back | 413febe835dafc15b4dae731998ff42aa755496b | [
"MIT"
] | null | null | null | priv/repo/migrations/20160226211042_create_artist.exs | nicohartto/headland-back | 413febe835dafc15b4dae731998ff42aa755496b | [
"MIT"
] | null | null | null | priv/repo/migrations/20160226211042_create_artist.exs | nicohartto/headland-back | 413febe835dafc15b4dae731998ff42aa755496b | [
"MIT"
] | null | null | null | defmodule Headland.Repo.Migrations.CreateArtist do
use Ecto.Migration
def change do
create table(:artists) do
add :name, :string
add :bio, :string
add :website, :string
add :years_active, :string
timestamps
end
end
end
| 16.625 | 50 | 0.650376 |
62f4e043025ab492b718d1a56998579760a31d29 | 720 | ex | Elixir | lib/elixirHeat_web/gettext.ex | JeffyMesquita/elixirHeat | 3ec3c59021e90058f00c2eb288a5e6c286e96342 | [
"MIT"
] | null | null | null | lib/elixirHeat_web/gettext.ex | JeffyMesquita/elixirHeat | 3ec3c59021e90058f00c2eb288a5e6c286e96342 | [
"MIT"
] | null | null | null | lib/elixirHeat_web/gettext.ex | JeffyMesquita/elixirHeat | 3ec3c59021e90058f00c2eb288a5e6c286e96342 | [
"MIT"
] | null | null | null | defmodule ElixirHeatWeb.Gettext do
@moduledoc """
A module providing Internationalization with a gettext-based API.
By using [Gettext](https://hexdocs.pm/gettext),
your module gains a set of macros for translations, for example:
import ElixirHeatWeb.Gettext
# Simple translation
gettext("Her... | 28.8 | 72 | 0.681944 |
62f4e404a1738141f924c038a4ddf13d5b947340 | 5,570 | ex | Elixir | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_cx_v3_webhook_request.ex | jechol/elixir-google-api | 0290b683dfc6491ca2ef755a80bc329378738d03 | [
"Apache-2.0"
] | null | null | null | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_cx_v3_webhook_request.ex | jechol/elixir-google-api | 0290b683dfc6491ca2ef755a80bc329378738d03 | [
"Apache-2.0"
] | null | null | null | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_cx_v3_webhook_request.ex | jechol/elixir-google-api | 0290b683dfc6491ca2ef755a80bc329378738d03 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 53.557692 | 306 | 0.736086 |
62f541c75c2d5e828ca2efe55d4ca5f8c15d3d9c | 1,860 | ex | Elixir | clients/service_user/lib/google_api/service_user/v1/model/billing_destination.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/service_user/lib/google_api/service_user/v1/model/billing_destination.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/service_user/lib/google_api/service_user/v1/model/billing_destination.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 ... | 35.09434 | 123 | 0.736022 |
62f54b706abbf0c84a4c3a9d4d5f3562885ccff3 | 2,886 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/routers_scoped_list_warning.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/routers_scoped_list_warning.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/routers_scoped_list_warning.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... | 47.311475 | 612 | 0.770963 |
62f59c2f0ba4cdf54b2c5470c0c310068ae89db0 | 5,402 | ex | Elixir | plugins/one_chat/lib/one_chat/presence_agent.ex | smpallen99/ucx_ucc | 47225f205a6ac4aacdb9bb4f7512dcf4092576ad | [
"MIT"
] | 11 | 2017-05-15T18:35:05.000Z | 2018-02-05T18:27:40.000Z | plugins/one_chat/lib/one_chat/presence_agent.ex | anndream/infinity_one | 47225f205a6ac4aacdb9bb4f7512dcf4092576ad | [
"MIT"
] | 15 | 2017-11-27T10:38:05.000Z | 2018-02-09T20:42:08.000Z | plugins/one_chat/lib/one_chat/presence_agent.ex | anndream/infinity_one | 47225f205a6ac4aacdb9bb4f7512dcf4092576ad | [
"MIT"
] | 4 | 2017-09-13T11:34:16.000Z | 2018-02-26T13:37:06.000Z | defmodule OneChat.PresenceAgent do
@moduledoc """
Handles presence status for use with views.
This module works in conjunction with Phoenix.Presence to manage presence
state for the application.
While the channel presence is responsible for notifying of state changes,
this module provides this state to th... | 22.889831 | 97 | 0.62736 |
62f5ad31526b73c7faedd6bf7dbc6df452beb118 | 3,526 | ex | Elixir | server/lib/realtime/application.ex | majacQ/realtime | d6fdfd4aba5e1dcb9b58902b91314b47c0f907e3 | [
"Apache-2.0"
] | null | null | null | server/lib/realtime/application.ex | majacQ/realtime | d6fdfd4aba5e1dcb9b58902b91314b47c0f907e3 | [
"Apache-2.0"
] | 3 | 2021-12-09T04:21:18.000Z | 2022-02-17T21:53:28.000Z | server/lib/realtime/application.ex | majacQ/realtime | d6fdfd4aba5e1dcb9b58902b91314b47c0f907e3 | [
"Apache-2.0"
] | null | null | null | defmodule Realtime.Application do
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
use Application
require Logger, warn: false
defmodule JwtSecretError, do: defexception([:message])
defmodule JwtClaimValidatorsError, do: defexception([:message]... | 35.26 | 98 | 0.680091 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.