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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
abf8e1de9a0a310d1e45989b5764328320d6c5a1 | 414 | exs | Elixir | priv/repo/migrations/20180712101400_create_communities_repos_join_table.exs | coderplanets/coderplanets_server | 3663e56340d6d050e974c91f7e499d8424fc25e9 | [
"Apache-2.0"
] | 240 | 2018-11-06T09:36:54.000Z | 2022-02-20T07:12:36.000Z | priv/repo/migrations/20180712101400_create_communities_repos_join_table.exs | coderplanets/coderplanets_server | 3663e56340d6d050e974c91f7e499d8424fc25e9 | [
"Apache-2.0"
] | 363 | 2018-07-11T03:38:14.000Z | 2021-12-14T01:42:40.000Z | priv/repo/migrations/20180712101400_create_communities_repos_join_table.exs | mydearxym/mastani_server | f24034a4a5449200165cf4a547964a0961793eab | [
"Apache-2.0"
] | 22 | 2019-01-27T11:47:56.000Z | 2021-02-28T13:17:52.000Z | defmodule GroupherServer.Repo.Migrations.CreateCommunitiesReposJoinTable do
use Ecto.Migration
def change do
create table(:communities_repos) do
add(:repo_id, references(:cms_repos, on_delete: :delete_all), null: false)
add(:community_id, references(:communities, on_delete: :delete_all), null: fals... | 31.846154 | 87 | 0.751208 |
abf8e88b1b90c1076b2747cae9b49b48ba28111f | 6,013 | exs | Elixir | config/.credo.exs | PinkDiamond1/elixir-omg | 70dfd24a0a1ddf5d1d9d71aab61ea25300f889f7 | [
"Apache-2.0"
] | null | null | null | config/.credo.exs | PinkDiamond1/elixir-omg | 70dfd24a0a1ddf5d1d9d71aab61ea25300f889f7 | [
"Apache-2.0"
] | null | null | null | config/.credo.exs | PinkDiamond1/elixir-omg | 70dfd24a0a1ddf5d1d9d71aab61ea25300f889f7 | [
"Apache-2.0"
] | 2 | 2020-06-07T11:14:54.000Z | 2020-08-02T07:36:32.000Z | # This file contains the configuration for Credo and you are probably reading
# this after creating it with `mix credo.gen.config`.
#
# If you find anything wrong or unclear in this file, please report an
# issue on GitHub: https://github.com/rrrene/credo/issues
#
%{
#
# You can have as many configs as you like in ... | 39.300654 | 114 | 0.617495 |
abf9780beaf15a0ae6a3fccb4869d7f778c1685f | 5,232 | exs | Elixir | config/config.exs | mydearxym/mastani_server | f24034a4a5449200165cf4a547964a0961793eab | [
"Apache-2.0"
] | 2 | 2018-03-26T08:56:21.000Z | 2018-07-02T22:34:51.000Z | config/config.exs | mydearxym/mastani_server | f24034a4a5449200165cf4a547964a0961793eab | [
"Apache-2.0"
] | 22 | 2018-03-21T03:40:50.000Z | 2018-07-10T06:33:10.000Z | config/config.exs | mydearxym/mastani_server | f24034a4a5449200165cf4a547964a0961793eab | [
"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
# General application configuration
config :groupher_server, ecto_repos: [GroupherSer... | 27.536842 | 98 | 0.69419 |
abf98c77012880ce40ed756c5e0e84c590be5cfe | 3,476 | exs | Elixir | test/shared_settings/persistence/redis_test.exs | kieraneglin/shared-settings-ex | 0b2f6e7c7b534ae58158fca01e61e7bd85a4147f | [
"Unlicense"
] | 2 | 2020-10-28T14:15:30.000Z | 2020-12-29T13:52:27.000Z | test/shared_settings/persistence/redis_test.exs | kieraneglin/shared-settings-ex | 0b2f6e7c7b534ae58158fca01e61e7bd85a4147f | [
"Unlicense"
] | null | null | null | test/shared_settings/persistence/redis_test.exs | kieraneglin/shared-settings-ex | 0b2f6e7c7b534ae58158fca01e61e7bd85a4147f | [
"Unlicense"
] | null | null | null | defmodule SharedSettings.Persistence.RedisTest do
use ExUnit.Case
import SharedSettings.TestUtils
alias SharedSettings.Setting
alias SharedSettings.Persistence.Redis
setup do
flush_redis()
name = random_string()
{:ok, setting} = Setting.build(name, "test setting")
{:ok, enc_setting} = Settin... | 26.333333 | 90 | 0.617664 |
abf99e97694c1d8828280ac9acd4de77446d18a5 | 1,396 | exs | Elixir | test/edgedb/protocol/codecs/builtin/int16_test.exs | nsidnev/edgedb-elixir | bade2b9daba2e83bfaa5915b2addb74f41610968 | [
"MIT"
] | 30 | 2021-05-19T08:54:44.000Z | 2022-03-11T22:52:25.000Z | test/edgedb/protocol/codecs/builtin/int16_test.exs | nsidnev/edgedb-elixir | bade2b9daba2e83bfaa5915b2addb74f41610968 | [
"MIT"
] | 3 | 2021-11-17T21:26:01.000Z | 2022-03-12T09:49:25.000Z | test/edgedb/protocol/codecs/builtin/int16_test.exs | nsidnev/edgedb-elixir | bade2b9daba2e83bfaa5915b2addb74f41610968 | [
"MIT"
] | 3 | 2021-08-29T14:55:41.000Z | 2022-03-12T01:30:35.000Z | defmodule Tests.EdgeDB.Protocol.Codecs.Builtin.Int16Test do
use Tests.Support.EdgeDBCase
alias EdgeDB.Protocol.Error
setup :edgedb_connection
test "decoding std::int16 number", %{conn: conn} do
value = 1
assert ^value = EdgeDB.query_single!(conn, "SELECT <int16>1")
end
test "encoding std::int16 ... | 27.372549 | 89 | 0.655444 |
abf9a44ab4a92993dad85fd1357865513ef1efb5 | 274 | ex | Elixir | elixir-to-json/lib/elixir_to_json.ex | serokell/mix2nix | f6f0172b3ac4d32c0e6050a7d805734de0b7adef | [
"CC0-1.0"
] | 10 | 2020-02-14T13:43:31.000Z | 2022-02-07T20:58:46.000Z | elixir-to-json/lib/elixir_to_json.ex | serokell/mix2nix | f6f0172b3ac4d32c0e6050a7d805734de0b7adef | [
"CC0-1.0"
] | 6 | 2019-08-07T07:33:01.000Z | 2019-12-11T09:30:14.000Z | elixir-to-json/lib/elixir_to_json.ex | serokell/mix2nix | f6f0172b3ac4d32c0e6050a7d805734de0b7adef | [
"CC0-1.0"
] | 3 | 2020-05-06T10:35:45.000Z | 2021-05-13T15:07:02.000Z | defmodule ElixirToJSON do
defimpl Jason.Encoder, for: Tuple do
def encode(struct, opts) do
Jason.Encode.list(Tuple.to_list(struct), opts)
end
end
def main([]) do
{term, _} = Code.eval_string(IO.read(:all))
IO.puts(Jason.encode!(term))
end
end
| 21.076923 | 52 | 0.660584 |
abf9b4b1031a31a330660dc2a5e69e6bc0b25d1c | 27,874 | ex | Elixir | lib/elixir/lib/task.ex | michalmuskala/elixir | 097de7d308ac40747b4524e266558a3d9498a60b | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/task.ex | michalmuskala/elixir | 097de7d308ac40747b4524e266558a3d9498a60b | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/task.ex | michalmuskala/elixir | 097de7d308ac40747b4524e266558a3d9498a60b | [
"Apache-2.0"
] | null | null | null | defmodule Task do
@moduledoc """
Conveniences for spawning and awaiting tasks.
Tasks are processes meant to execute one particular
action throughout their lifetime, often with little or no
communication with other processes. The most common use case
for tasks is to convert sequential code into concurrent c... | 33.502404 | 103 | 0.671952 |
abf9e87e3bdb24e2b83efb4447edaee782b01d22 | 259 | exs | Elixir | year_2020/test/day_12/ship_test.exs | bschmeck/advent_of_code | cbec98019c6c00444e0f4c7e15e01b1ed9ae6145 | [
"MIT"
] | null | null | null | year_2020/test/day_12/ship_test.exs | bschmeck/advent_of_code | cbec98019c6c00444e0f4c7e15e01b1ed9ae6145 | [
"MIT"
] | null | null | null | year_2020/test/day_12/ship_test.exs | bschmeck/advent_of_code | cbec98019c6c00444e0f4c7e15e01b1ed9ae6145 | [
"MIT"
] | null | null | null | defmodule Day12.ShipTest do
use ExUnit.Case, async: true
test "it rotates the ship" do
assert Day12.Ship.rotate(%Day12.Ship{}, -90).dir == 0
end
test "it mods by 360" do
assert Day12.Ship.rotate(%Day12.Ship{dir: 270}, 90).dir == 0
end
end
| 21.583333 | 64 | 0.664093 |
abf9f4332a1571745f8030a30de1e7c1e4bc85e6 | 1,086 | ex | Elixir | lib/nostrum/struct/overwrite.ex | mckethanor/nostrum | 13a3927c872c1540266e9f1ba4bcad4182baa9bf | [
"MIT"
] | 637 | 2017-03-07T11:25:35.000Z | 2022-03-31T13:37:51.000Z | lib/nostrum/struct/overwrite.ex | mckethanor/nostrum | 13a3927c872c1540266e9f1ba4bcad4182baa9bf | [
"MIT"
] | 372 | 2017-03-07T20:42:03.000Z | 2022-03-30T22:46:46.000Z | lib/nostrum/struct/overwrite.ex | mckethanor/nostrum | 13a3927c872c1540266e9f1ba4bcad4182baa9bf | [
"MIT"
] | 149 | 2017-03-07T12:11:58.000Z | 2022-03-19T22:11:51.000Z | defmodule Nostrum.Struct.Overwrite do
@moduledoc """
Struct representing a Discord overwrite.
"""
alias Nostrum.{Snowflake, Util}
defstruct [
:id,
:type,
:allow,
:deny
]
@typedoc "Role or User id"
@type id :: Snowflake.t()
@typedoc "Either ``0`` (role) or ``1`` (member)"
@type ty... | 19.052632 | 61 | 0.555249 |
abf9ff441373a17e1fca64bd2d0db3f65fed8213 | 1,352 | ex | Elixir | lib/chit_chat_web/endpoint.ex | GalPin-Ark/chit_chat | 8cb492b7c6daca82fdbd536f6dbc185c02991730 | [
"MIT"
] | null | null | null | lib/chit_chat_web/endpoint.ex | GalPin-Ark/chit_chat | 8cb492b7c6daca82fdbd536f6dbc185c02991730 | [
"MIT"
] | 2 | 2021-03-10T11:14:42.000Z | 2021-05-11T06:51:36.000Z | lib/chit_chat_web/endpoint.ex | GalPin-Ark/chit_chat | 8cb492b7c6daca82fdbd536f6dbc185c02991730 | [
"MIT"
] | null | null | null | defmodule ChitChatWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :chit_chat
# The session will be stored in the cookie and signed,
# this means its contents can be read but not tampered with.
# Set :encryption_salt if you would also like to encrypt it.
@session_options [
store: :cookie,
key: "_chit_c... | 28.166667 | 69 | 0.713018 |
abfa21864ab27d37e576854bc4f4963b6f40d13b | 2,060 | exs | Elixir | clients/binary_authorization/mix.exs | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/binary_authorization/mix.exs | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/binary_authorization/mix.exs | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"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.746269 | 275 | 0.678155 |
abfa2819052927dc0363da997d794c9d3b7f709d | 166 | ex | Elixir | terraform/envs/staging/email/terraform.tfvars.json.ex | john-pierce/killTERM.xyz | f680e0f74b499c79fde4eaf84760a9abd17c0ac8 | [
"MIT"
] | 2 | 2018-02-13T02:31:00.000Z | 2018-03-06T17:05:32.000Z | terraform/envs/staging/email/terraform.tfvars.json.ex | john-pierce/killTERM.xyz | f680e0f74b499c79fde4eaf84760a9abd17c0ac8 | [
"MIT"
] | 1 | 2018-03-06T19:30:24.000Z | 2018-03-06T19:30:24.000Z | terraform/envs/staging/email/terraform.tfvars.json.ex | john-pierce/killTERM.xyz | f680e0f74b499c79fde4eaf84760a9abd17c0ac8 | [
"MIT"
] | null | null | null | {
"forward_mapping": {
"@killterm.xyz": [
"john+xyz@killterm.com"
],
"@staging.killterm.xyz": [
"john+xyz-staging@killterm.com"
]
}
}
| 15.090909 | 37 | 0.524096 |
abfa47bc9f27a85943f4e11690c0755d3edbe9ce | 7,691 | ex | Elixir | lib/brando_admin/components/form/input/blocks/block.ex | brandocms/brando | 4198e0c0920031bd909969055064e4e2b7230d21 | [
"MIT"
] | 4 | 2020-10-30T08:40:38.000Z | 2022-01-07T22:21:37.000Z | lib/brando_admin/components/form/input/blocks/block.ex | brandocms/brando | 4198e0c0920031bd909969055064e4e2b7230d21 | [
"MIT"
] | 1,162 | 2020-07-05T11:20:15.000Z | 2022-03-31T06:01:49.000Z | lib/brando_admin/components/form/input/blocks/block.ex | brandocms/brando | 4198e0c0920031bd909969055064e4e2b7230d21 | [
"MIT"
] | null | null | null | defmodule BrandoAdmin.Components.Form.Input.Blocks.Block do
@moduledoc """
The base block
"""
use Surface.LiveComponent
use Phoenix.HTML
import Brando.Gettext
alias BrandoAdmin.Components.Modal
alias BrandoAdmin.Components.Form.Input.Blocks
alias BrandoAdmin.Components.Form.Label
prop block, :any... | 43.207865 | 625 | 0.601872 |
abfa4cb434eebcf2eaeac680abea95fabc5c7a51 | 341 | ex | Elixir | lib/juvet/slack_events_endpoint_router.ex | juvet/juvet | 5590ff7b1e5f411195d0becfe8b5740deb977cc5 | [
"MIT"
] | 19 | 2018-07-14T16:54:11.000Z | 2022-03-01T09:02:19.000Z | lib/juvet/slack_events_endpoint_router.ex | juvet/juvet | 5590ff7b1e5f411195d0becfe8b5740deb977cc5 | [
"MIT"
] | 31 | 2018-06-29T15:30:40.000Z | 2022-02-26T01:07:12.000Z | lib/juvet/slack_events_endpoint_router.ex | juvet/juvet | 5590ff7b1e5f411195d0becfe8b5740deb977cc5 | [
"MIT"
] | null | null | null | defmodule Juvet.SlackEventsEndpointRouter do
@moduledoc """
Endpoint router to handle all messages for Slack events.
"""
import Plug.Conn
@doc false
def init(opts), do: opts
@doc """
Handles web requests targeted for the Slack events API endpoint.
"""
def call(conn, _config) do
send_resp(conn... | 18.944444 | 66 | 0.68915 |
abfa6b1ec2327f4a85d3dca2798f445f552f054e | 376 | ex | Elixir | lib/mafia_engine/role.ex | menxs/mafia_engine | 50cd484f7860c4b9fa2f4ea1d5c6f78fd4b0711a | [
"MIT"
] | null | null | null | lib/mafia_engine/role.ex | menxs/mafia_engine | 50cd484f7860c4b9fa2f4ea1d5c6f78fd4b0711a | [
"MIT"
] | null | null | null | lib/mafia_engine/role.ex | menxs/mafia_engine | 50cd484f7860c4b9fa2f4ea1d5c6f78fd4b0711a | [
"MIT"
] | null | null | null | defmodule MafiaEngine.Role do
@moduledoc """
This module defines the type for role.
"""
@typedoc """
The possible roles aplayer can have.
"""
@type t :: :townie | :mafioso | :sheriff | :doctor | :unknown
@typedoc """
The possible outcomes resulting of role interactions during the night phase.
... | 23.5 | 80 | 0.654255 |
abfaa24967f9fabe342bbb698370d6de07bee397 | 4,866 | exs | Elixir | test/functional/parser/inline_code_test.exs | RichMorin/earmark | e65fcf67345c84c23d237c732e5c174246662c68 | [
"Apache-1.1"
] | null | null | null | test/functional/parser/inline_code_test.exs | RichMorin/earmark | e65fcf67345c84c23d237c732e5c174246662c68 | [
"Apache-1.1"
] | null | null | null | test/functional/parser/inline_code_test.exs | RichMorin/earmark | e65fcf67345c84c23d237c732e5c174246662c68 | [
"Apache-1.1"
] | null | null | null | defmodule Parser.InlineCodeTest do
use ExUnit.Case
alias Earmark.Parser
alias Earmark.Block
##########################################################################################
# Paragraphs
##########################################################################################
test "Multiline ... | 30.797468 | 119 | 0.507809 |
abfaa876eb869b2e85adbbf25acdefe8886c2782 | 736 | ex | Elixir | lib/yesql/exceptions.ex | tschnibo/yesql | 2ae05d3b3777da43827e91164fca02c4c6548bae | [
"Apache-2.0"
] | 77 | 2018-01-22T07:03:51.000Z | 2022-01-04T20:15:12.000Z | lib/yesql/exceptions.ex | tschnibo/yesql | 2ae05d3b3777da43827e91164fca02c4c6548bae | [
"Apache-2.0"
] | 8 | 2018-03-18T18:36:33.000Z | 2021-03-13T13:20:17.000Z | lib/yesql/exceptions.ex | tschnibo/yesql | 2ae05d3b3777da43827e91164fca02c4c6548bae | [
"Apache-2.0"
] | 7 | 2019-05-12T17:46:27.000Z | 2021-03-08T13:45:48.000Z | defmodule Yesql.MissingParam do
@moduledoc false
defexception [:message]
def exception(param) do
msg = """
Required parameter `:#{param}` not given
"""
%__MODULE__{message: msg}
end
end
defmodule Yesql.UnknownDriver do
@moduledoc false
defexception [:message]
def exception(driver) do
... | 17.52381 | 62 | 0.663043 |
abfac7bbad431713d3e4052e8c8ecd903445ba37 | 19,679 | ex | Elixir | deps/ecto/lib/ecto/type.ex | hallebadkapp/rumbl-ms | ae2ef9975658115f8c4d5c49c28d8bde00a74b83 | [
"MIT"
] | null | null | null | deps/ecto/lib/ecto/type.ex | hallebadkapp/rumbl-ms | ae2ef9975658115f8c4d5c49c28d8bde00a74b83 | [
"MIT"
] | null | null | null | deps/ecto/lib/ecto/type.ex | hallebadkapp/rumbl-ms | ae2ef9975658115f8c4d5c49c28d8bde00a74b83 | [
"MIT"
] | null | null | null | defmodule Ecto.Type do
@moduledoc """
Defines functions and the `Ecto.Type` behaviour for implementing
custom types.
A custom type expects 4 functions to be implemented, all documented
and described below. We also provide two examples of how custom
types can be used in Ecto to augment existing types or pro... | 28.274425 | 101 | 0.606891 |
abfadf00024c42ec01d5d2fb5661cc38aae7e11b | 2,510 | ex | Elixir | lib/livebook/runtime/erl_dist.ex | madawei2699/livebook | e10f43e5b53a75a857106df04bd45d37629f4ebf | [
"Apache-2.0"
] | null | null | null | lib/livebook/runtime/erl_dist.ex | madawei2699/livebook | e10f43e5b53a75a857106df04bd45d37629f4ebf | [
"Apache-2.0"
] | null | null | null | lib/livebook/runtime/erl_dist.ex | madawei2699/livebook | e10f43e5b53a75a857106df04bd45d37629f4ebf | [
"Apache-2.0"
] | null | null | null | defmodule Livebook.Runtime.ErlDist do
@moduledoc false
# This module allows for initializing nodes connected using
# Erlang Distribution with modules and processes necessary for evaluation.
#
# To ensure proper isolation between sessions,
# code evaluation may take place in a separate Elixir runtime,
# w... | 31.375 | 85 | 0.716335 |
abfaffd6a779481a663dd81aa9a763f0b4e6dab5 | 8,877 | ex | Elixir | lib/phoenix_client/socket.ex | MortadaAK/phoenix_client | b6d940fc7816cb4270736f4859de53abe87cd258 | [
"Apache-2.0"
] | null | null | null | lib/phoenix_client/socket.ex | MortadaAK/phoenix_client | b6d940fc7816cb4270736f4859de53abe87cd258 | [
"Apache-2.0"
] | null | null | null | lib/phoenix_client/socket.ex | MortadaAK/phoenix_client | b6d940fc7816cb4270736f4859de53abe87cd258 | [
"Apache-2.0"
] | null | null | null | defmodule PhoenixClient.Socket do
use GenServer
require Logger
@heartbeat_interval 30_000
@reconnect_interval 60_000
@default_transport PhoenixClient.Transports.Websocket
alias PhoenixClient.Message
def child_spec({opts, genserver_opts}) do
%{
id: genserver_opts[:id] || __MODULE__,
sta... | 25.656069 | 101 | 0.619804 |
abfb1a75675c12ab2c7f035675caf7a8250614a8 | 872 | exs | Elixir | mix.exs | nurugger07/chronos | be8fcbee7330d938dff87532cf108125bf952d05 | [
"Apache-2.0"
] | 72 | 2015-01-28T16:30:45.000Z | 2021-05-21T03:33:16.000Z | mix.exs | nurugger07/chronos | be8fcbee7330d938dff87532cf108125bf952d05 | [
"Apache-2.0"
] | 9 | 2015-01-20T21:08:43.000Z | 2018-04-04T02:57:05.000Z | mix.exs | nurugger07/chronos | be8fcbee7330d938dff87532cf108125bf952d05 | [
"Apache-2.0"
] | 15 | 2015-01-20T04:34:06.000Z | 2019-02-10T22:42:12.000Z | Code.ensure_loaded?(Hex) and Hex.start
defmodule Chronos.Mixfile do
use Mix.Project
def project do
[
app: :chronos,
version: "1.8.0",
elixir: ">= 1.0.0",
deps: deps(),
package: [
files: ["lib", "mix.exs", "README*", "LICENSE*"],
contributors: ["Johnny Winn"],
... | 26.424242 | 115 | 0.557339 |
abfb1e4c369b59b022554ce925a578798c5372cc | 1,553 | ex | Elixir | lib/bamboo/adapters/test_adapter.ex | mrcasals/bamboo | c3b82436d9594d7838775fcc906cd4bd8516690e | [
"MIT"
] | 1,845 | 2016-03-29T23:36:36.000Z | 2022-03-31T19:23:38.000Z | lib/bamboo/adapters/test_adapter.ex | mrcasals/bamboo | c3b82436d9594d7838775fcc906cd4bd8516690e | [
"MIT"
] | 407 | 2016-03-29T14:55:19.000Z | 2022-02-02T13:53:50.000Z | lib/bamboo/adapters/test_adapter.ex | mrcasals/bamboo | c3b82436d9594d7838775fcc906cd4bd8516690e | [
"MIT"
] | 361 | 2016-03-31T13:33:22.000Z | 2022-02-25T12:38:43.000Z | defmodule Bamboo.TestAdapter do
@moduledoc """
Used for testing email delivery.
No emails are sent, instead a message is sent to the current process and can
be asserted on with helpers from `Bamboo.Test`.
## Example config
# Typically done in config/test.exs
config :my_app, MyApp.Mailer,
... | 25.048387 | 82 | 0.687701 |
abfb4063fb89c72be363b6200c93ecb42c93351a | 2,236 | ex | Elixir | clients/safe_browsing/lib/google_api/safe_browsing/v4/model/google_security_safebrowsing_v4_raw_hashes.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/safe_browsing/lib/google_api/safe_browsing/v4/model/google_security_safebrowsing_v4_raw_hashes.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/safe_browsing/lib/google_api/safe_browsing/v4/model/google_security_safebrowsing_v4_raw_hashes.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... | 44.72 | 389 | 0.753578 |
abfb49fa0cb8840d1e5b8e95b81a7fa0711df288 | 7,174 | ex | Elixir | installer/lib/phx_new/single.ex | faheempatel/phoenix | a83318f2a2284b7ab29b0b86cdd9d2e1f4d0a7c9 | [
"MIT"
] | 18,092 | 2015-01-01T01:51:04.000Z | 2022-03-31T19:37:14.000Z | installer/lib/phx_new/single.ex | faheempatel/phoenix | a83318f2a2284b7ab29b0b86cdd9d2e1f4d0a7c9 | [
"MIT"
] | 3,905 | 2015-01-01T00:22:47.000Z | 2022-03-31T17:06:21.000Z | installer/lib/phx_new/single.ex | faheempatel/phoenix | a83318f2a2284b7ab29b0b86cdd9d2e1f4d0a7c9 | [
"MIT"
] | 3,205 | 2015-01-03T10:58:22.000Z | 2022-03-30T14:55:57.000Z | defmodule Phx.New.Single do
@moduledoc false
use Phx.New.Generator
alias Phx.New.{Project}
template :new, [
{:eex, "phx_single/config/config.exs", :project, "config/config.exs"},
{:eex, "phx_single/config/dev.exs", :project, "config/dev.exs"},
{:eex, "phx_single/config... | 48.472973 | 130 | 0.613605 |
abfb4fe300fe0d020b60d8d1388c251d333193eb | 1,197 | ex | Elixir | lib/namuraid/endpoint.ex | Namuraid/backend | 04a10248bfeb156eb291207931621b40585d8f7e | [
"MIT"
] | null | null | null | lib/namuraid/endpoint.ex | Namuraid/backend | 04a10248bfeb156eb291207931621b40585d8f7e | [
"MIT"
] | null | null | null | lib/namuraid/endpoint.ex | Namuraid/backend | 04a10248bfeb156eb291207931621b40585d8f7e | [
"MIT"
] | null | null | null | defmodule Namuraid.Endpoint do
use Phoenix.Endpoint, otp_app: :namuraid
socket "/socket", Namuraid.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.
plug Plug.Static... | 27.837209 | 69 | 0.715957 |
abfb58245ffb81ab574b10e68a37163beab4683f | 2,104 | ex | Elixir | lib/acceptor.ex | kondalrao/ChitChat | c09e3eb836ad3bf13c949f8e25bfb5b44801d8d8 | [
"MIT"
] | null | null | null | lib/acceptor.ex | kondalrao/ChitChat | c09e3eb836ad3bf13c949f8e25bfb5b44801d8d8 | [
"MIT"
] | null | null | null | lib/acceptor.ex | kondalrao/ChitChat | c09e3eb836ad3bf13c949f8e25bfb5b44801d8d8 | [
"MIT"
] | null | null | null | require Logger
defmodule ChitChat.Acceptor do
use GenServer
def start_link(_opts \\ []) do
GenServer.start_link(__MODULE__, :ok, _opts)
end
def init(:ok) do
{:ok, listenSocket} = :gen_tcp.listen(8888, [:binary, {:packet, :line}, {:active, false}, {:reuseaddr, true}, {:backlog, 200}, {... | 38.962963 | 155 | 0.604087 |
abfb6d5fe547dbabd1b05433efaf85a0bbf46e3f | 716 | exs | Elixir | Chapter09/apps/elixir_drip_web/test/elixir_drip_web/channels/user_socket_test.exs | sthagen/Mastering-Elixir | 1b52ee79afe6b2ae80767a5e55c2be51df3c4c1d | [
"MIT"
] | 28 | 2018-08-09T05:05:29.000Z | 2022-03-14T06:59:07.000Z | Chapter09/apps/elixir_drip_web/test/elixir_drip_web/channels/user_socket_test.exs | sthagen/Mastering-Elixir | 1b52ee79afe6b2ae80767a5e55c2be51df3c4c1d | [
"MIT"
] | 1 | 2019-02-11T09:11:33.000Z | 2019-05-06T06:40:19.000Z | Chapter09/apps/elixir_drip_web/test/elixir_drip_web/channels/user_socket_test.exs | sthagen/Mastering-Elixir | 1b52ee79afe6b2ae80767a5e55c2be51df3c4c1d | [
"MIT"
] | 8 | 2018-08-09T14:53:02.000Z | 2020-12-14T19:31:21.000Z | defmodule ElixirDripWeb.UserSocketTest do
use ElixirDripWeb.ChannelCase, async: true
@subject ElixirDripWeb.UserSocket
describe "with a valid token" do
test "it connects to the socket" do
token = Phoenix.Token.sign(@endpoint, "user socket auth", "13")
assert {:ok, socket} = connect(@subject, %{... | 26.518519 | 69 | 0.660615 |
abfb8c044496c18dd7d21e774182d6e54d96dd18 | 2,551 | ex | Elixir | web/models/account.ex | smpallen99/ucx_chat | 0dd98d0eb5e0537521844520ea2ba63a08fd3f19 | [
"MIT"
] | 60 | 2017-05-09T19:08:26.000Z | 2021-01-20T11:09:42.000Z | web/models/account.ex | smpallen99/ucx_chat | 0dd98d0eb5e0537521844520ea2ba63a08fd3f19 | [
"MIT"
] | 6 | 2017-05-10T15:43:16.000Z | 2020-07-15T07:14:41.000Z | web/models/account.ex | smpallen99/ucx_chat | 0dd98d0eb5e0537521844520ea2ba63a08fd3f19 | [
"MIT"
] | 10 | 2017-05-10T04:13:54.000Z | 2020-12-28T10:30:27.000Z | defmodule UcxChat.Account do
use UcxChat.Web, :model
alias UcxChat.User
schema "accounts" do
field :language, :string, default: "on"
field :desktop_notification_enabled, :boolean, default: true
field :desktop_notification_duration, :integer
field :unread_alert, :boolean, default: true
field ... | 39.246154 | 96 | 0.706782 |
abfba18d82dc0d683ffa6e76e04235847abe0e71 | 3,578 | ex | Elixir | lib/vutuv/accounts.ex | vutuv/vutuv | 174706cdaf28cef24e1cc06bec0884c25f2412be | [
"MIT"
] | 309 | 2016-05-03T17:16:23.000Z | 2022-03-01T09:30:22.000Z | lib/vutuv/accounts.ex | vutuv/vutuv | 174706cdaf28cef24e1cc06bec0884c25f2412be | [
"MIT"
] | 662 | 2016-04-27T07:45:18.000Z | 2022-01-05T07:29:19.000Z | lib/vutuv/accounts.ex | vutuv/vutuv | 174706cdaf28cef24e1cc06bec0884c25f2412be | [
"MIT"
] | 40 | 2016-04-27T07:46:22.000Z | 2021-12-31T05:54:34.000Z | defmodule Vutuv.Accounts do
@moduledoc """
Accounts context.
"""
alias Vutuv.{Accounts.UserCredential, Devices.EmailAddress, Repo, Sessions, UserProfiles}
@type changeset_error :: {:error, Ecto.Changeset.t()}
@doc """
Gets user credentials. Raises error if no user_credential found.
"""
@spec get_us... | 31.946429 | 95 | 0.696199 |
abfbaee07ab912366761330f0a069b104e098a3b | 2,343 | exs | Elixir | test/unit/stargate/connection_test.exs | KalvadTech/stargate | 0acef450a58c0fa5e29c42d1a26ec9aa9c39867f | [
"Apache-2.0"
] | 33 | 2019-11-09T09:12:18.000Z | 2022-02-24T05:22:20.000Z | test/unit/stargate/connection_test.exs | tspannhw/stargate | d80e5376a831c8fae232434e4d305784464f196a | [
"Apache-2.0"
] | 7 | 2019-11-28T06:52:18.000Z | 2021-10-07T09:09:16.000Z | test/unit/stargate/connection_test.exs | tspannhw/stargate | d80e5376a831c8fae232434e4d305784464f196a | [
"Apache-2.0"
] | 7 | 2020-06-30T10:37:59.000Z | 2021-11-26T06:54:23.000Z | defmodule Stargate.ConnectionTest do
use ExUnit.Case
setup do
port = Enum.random(49_152..65_535)
{:ok, server} = MockSocket.Supervisor.start_link(port: port, path: "ws_test", source: self())
{:ok, client} = SampleClient.start_link(port: port, path: "ws_test")
on_exit(fn ->
Enum.map([server,... | 26.931034 | 110 | 0.541187 |
abfbbc0d342b6b4d82381d58b7c553bfd2ae0100 | 493 | ex | Elixir | lib/fireball_web/views/error_view.ex | Catharz/fireball | bb9f123c0d2d71b16eda01d3838565e6e762de20 | [
"MIT"
] | null | null | null | lib/fireball_web/views/error_view.ex | Catharz/fireball | bb9f123c0d2d71b16eda01d3838565e6e762de20 | [
"MIT"
] | null | null | null | lib/fireball_web/views/error_view.ex | Catharz/fireball | bb9f123c0d2d71b16eda01d3838565e6e762de20 | [
"MIT"
] | null | null | null | defmodule FireballWeb.ErrorView do
use FireballWeb, :view
# If you want to customize a particular status code
# for a certain format, you may uncomment below.
# def render("500.html", _assigns) do
# "Internal Server Error"
# end
# By default, Phoenix returns the status message from
# the template na... | 29 | 61 | 0.736308 |
abfbd04997154f9ca898d3543b701436f76105ae | 78 | exs | Elixir | test/trento_web/views/page_view_test.exs | trento-project/web | 3260b30c781bffbbb0e5205cd650966c4026b9ac | [
"Apache-2.0"
] | 1 | 2022-03-22T16:59:34.000Z | 2022-03-22T16:59:34.000Z | test/trento_web/views/page_view_test.exs | trento-project/web | 3260b30c781bffbbb0e5205cd650966c4026b9ac | [
"Apache-2.0"
] | 24 | 2022-03-22T16:45:25.000Z | 2022-03-31T13:00:02.000Z | test/trento_web/views/page_view_test.exs | trento-project/web | 3260b30c781bffbbb0e5205cd650966c4026b9ac | [
"Apache-2.0"
] | 1 | 2022-03-30T14:16:16.000Z | 2022-03-30T14:16:16.000Z | defmodule TrentoWeb.PageViewTest do
use TrentoWeb.ConnCase, async: true
end
| 19.5 | 37 | 0.820513 |
abfbdd943b2e81bee721576e76076ad5544e6b4f | 694 | ex | Elixir | debian/preinst.ex | MacroFab/SVG-Stacker | b6051ac9076d2da90dc8bbf786c876264ed33092 | [
"MIT"
] | 1 | 2016-07-17T11:02:34.000Z | 2016-07-17T11:02:34.000Z | debian/preinst.ex | MacroFab/SVG-Stacker | b6051ac9076d2da90dc8bbf786c876264ed33092 | [
"MIT"
] | 1 | 2019-02-11T22:30:41.000Z | 2019-02-11T23:00:24.000Z | debian/preinst.ex | MacroFab/SVG-Stacker | b6051ac9076d2da90dc8bbf786c876264ed33092 | [
"MIT"
] | null | null | null | #!/bin/sh
# preinst script for svg-stacker
#
# see: dh_installdeb(1)
set -e
# summary of how this script can be called:
# * <new-preinst> `install'
# * <new-preinst> `install' <old-version>
# * <new-preinst> `upgrade' <old-version>
# * <old-preinst> `abort-upgrade' <new-version>
# for deta... | 19.277778 | 63 | 0.628242 |
abfc2cde8b57131087fb6afbe5590b702e973f0d | 5,918 | exs | Elixir | test/live_sup/core/widgets/wordpress/directory_sizes_test/worker_test.exs | livesup-dev/livesup | eaf9ffc78d3043bd9e3408f0f4df26ed16eb8446 | [
"Apache-2.0",
"MIT"
] | null | null | null | test/live_sup/core/widgets/wordpress/directory_sizes_test/worker_test.exs | livesup-dev/livesup | eaf9ffc78d3043bd9e3408f0f4df26ed16eb8446 | [
"Apache-2.0",
"MIT"
] | 3 | 2022-02-23T15:51:48.000Z | 2022-03-14T22:52:43.000Z | test/live_sup/core/widgets/wordpress/directory_sizes_test/worker_test.exs | livesup-dev/livesup | eaf9ffc78d3043bd9e3408f0f4df26ed16eb8446 | [
"Apache-2.0",
"MIT"
] | null | null | null | defmodule LiveSup.Test.Core.Widgets.Wordpress.DirectorySizes.WorkerTest do
use LiveSup.DataCase
import Mock
alias LiveSup.Core.Widgets.Wordpress.DirectorySizes.{
Worker,
Handler
}
alias LiveSup.Core.Widgets.Wordpress.WordpressConfig
alias LiveSup.Core.Widgets.{WidgetManager, WidgetData, WorkerTask... | 31.647059 | 100 | 0.481582 |
abfc7156a47437a1e9696f0d02ae8a07cfaf55b8 | 149 | ex | Elixir | examples/example-phx-1_3/lib/example_phx_web/views/layout_view.ex | devshane/thesis-phoenix | afe22a25542f91e15cfffb1e93ff8d833a64c25b | [
"MIT"
] | 681 | 2016-06-21T20:49:21.000Z | 2022-02-19T04:08:38.000Z | examples/example-phx-1_3/lib/example_phx_web/views/layout_view.ex | devshane/thesis-phoenix | afe22a25542f91e15cfffb1e93ff8d833a64c25b | [
"MIT"
] | 125 | 2016-06-21T21:14:49.000Z | 2020-12-12T20:15:48.000Z | examples/example-phx-1_3/lib/example_phx_web/views/layout_view.ex | devshane/thesis-phoenix | afe22a25542f91e15cfffb1e93ff8d833a64c25b | [
"MIT"
] | 76 | 2016-09-06T03:40:55.000Z | 2022-01-20T21:29:22.000Z | defmodule ExamplePhxWeb.LayoutView do
use ExamplePhxWeb, :view
def logged_in?(conn) do
ExamplePhx.Authentication.logged_in?(conn)
end
end
| 18.625 | 46 | 0.771812 |
abfc74b1e293edaafa0e07c1d266da0d9f3ffedc | 1,257 | ex | Elixir | apps/memo_web/lib/memo_web/views/error_helpers.ex | michaeljbishop/memo_app | 58a2a547a6e40eb518ea8b193514fea368e80704 | [
"MIT"
] | null | null | null | apps/memo_web/lib/memo_web/views/error_helpers.ex | michaeljbishop/memo_app | 58a2a547a6e40eb518ea8b193514fea368e80704 | [
"MIT"
] | null | null | null | apps/memo_web/lib/memo_web/views/error_helpers.ex | michaeljbishop/memo_app | 58a2a547a6e40eb518ea8b193514fea368e80704 | [
"MIT"
] | null | null | null | defmodule MemoWeb.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
Enum.map(Keyword.get_values(form.errors, field), fn (error) ->
content_tag :... | 30.658537 | 73 | 0.668258 |
abfc9ab7fac73544dcce828b01c8c7e608a481b3 | 292 | exs | Elixir | test/support.exs | lucasmazza/cpf | 3045eab6f245aed8622d4825b7d51387fdaba802 | [
"MIT"
] | 1 | 2021-12-31T16:00:12.000Z | 2021-12-31T16:00:12.000Z | test/support.exs | lucasmazza/cpf | 3045eab6f245aed8622d4825b7d51387fdaba802 | [
"MIT"
] | null | null | null | test/support.exs | lucasmazza/cpf | 3045eab6f245aed8622d4825b7d51387fdaba802 | [
"MIT"
] | null | null | null | defmodule CPF.Test.Support do
alias __MODULE__
defmacro to_11_digits(digit) do
quote do
Support.eleven_digits(unquote(digit))
end
end
def eleven_digits(digit) do
0..10
|> Enum.reduce(0, fn i, sum -> sum + :math.pow(10, i) * digit end)
|> trunc()
end
end
| 18.25 | 70 | 0.640411 |
abfcb77e23989642464c0b1bca80b33575e89723 | 2,001 | exs | Elixir | test/sqs/consumer_test.exs | lets-talk/ex-queue-bus-client | 64de7faa0d6d3f88df6fa185d7a664404b90cab5 | [
"MIT"
] | 3 | 2019-08-03T14:01:07.000Z | 2020-08-28T14:33:43.000Z | test/sqs/consumer_test.exs | lets-talk/ex-queue-bus-client | 64de7faa0d6d3f88df6fa185d7a664404b90cab5 | [
"MIT"
] | 10 | 2019-05-07T19:30:14.000Z | 2020-03-04T19:24:14.000Z | test/sqs/consumer_test.exs | lets-talk/ex-queue-bus-client | 64de7faa0d6d3f88df6fa185d7a664404b90cab5 | [
"MIT"
] | null | null | null | defmodule ExQueueBusClient.SQS.ConsumerTest do
use ExUnit.Case, async: false
alias ExQueueBusClient.{
SqsMock,
SQS.Consumer,
EventHandlerMock
}
import Mox
setup [:verify_on_exit!, :set_mox_global]
setup do
messages =
["M1", "M2"]
|> Enum.map(&build_message("message", "create"... | 24.108434 | 85 | 0.528736 |
abfcd3bf58d0171e8e05b889d37b2605e4707f1c | 463 | exs | Elixir | priv/repo/migrations/20190906111810_add_email_reporting.exs | wvffle/analytics | 2c0fd55bc67f74af1fe1e2641678d44e9fee61d5 | [
"MIT"
] | 984 | 2019-09-02T11:36:41.000Z | 2020-06-08T06:25:48.000Z | priv/repo/migrations/20190906111810_add_email_reporting.exs | wvffle/analytics | 2c0fd55bc67f74af1fe1e2641678d44e9fee61d5 | [
"MIT"
] | 24 | 2019-09-10T09:53:17.000Z | 2020-06-08T07:35:26.000Z | priv/repo/migrations/20190906111810_add_email_reporting.exs | wvffle/analytics | 2c0fd55bc67f74af1fe1e2641678d44e9fee61d5 | [
"MIT"
] | 51 | 2019-09-03T10:48:10.000Z | 2020-06-07T00:23:34.000Z | defmodule Plausible.Repo.Migrations.AddEmailReporting do
use Ecto.Migration
def change do
create table(:email_settings) do
add :site_id, references(:sites, on_delete: :delete_all), null: false
timestamps()
end
create table(:sent_email_reports) do
add :site_id, references(:sites, on_... | 23.15 | 75 | 0.686825 |
abfcec43fe7df31a8c792c536eb552bb58481119 | 20,068 | ex | Elixir | lib/aws/generated/macie2.ex | benmmari/aws-elixir | b97477498a9e8ba0d46a09255302d88c6a1c8573 | [
"Apache-2.0"
] | null | null | null | lib/aws/generated/macie2.ex | benmmari/aws-elixir | b97477498a9e8ba0d46a09255302d88c6a1c8573 | [
"Apache-2.0"
] | null | null | null | lib/aws/generated/macie2.ex | benmmari/aws-elixir | b97477498a9e8ba0d46a09255302d88c6a1c8573 | [
"Apache-2.0"
] | null | null | null | # WARNING: DO NOT EDIT, AUTO-GENERATED CODE!
# See https://github.com/aws-beam/aws-codegen for more details.
defmodule AWS.Macie2 do
@moduledoc """
Amazon Macie is a fully managed data security and data privacy service that
uses machine learning and pattern matching to discover and protect your
sensitive data ... | 29.863095 | 107 | 0.65293 |
abfcf34514d22def64873a14e0bc5725e7aee630 | 1,091 | ex | Elixir | braccino_ui/test/support/conn_case.ex | darcros/braccino | 33f4d945daf8eac36e4e88ef412dd53cb1389376 | [
"MIT"
] | null | null | null | braccino_ui/test/support/conn_case.ex | darcros/braccino | 33f4d945daf8eac36e4e88ef412dd53cb1389376 | [
"MIT"
] | null | null | null | braccino_ui/test/support/conn_case.ex | darcros/braccino | 33f4d945daf8eac36e4e88ef412dd53cb1389376 | [
"MIT"
] | null | null | null | defmodule BraccinoUiWeb.ConnCase do
@moduledoc """
This module defines the test case to be used by
tests that require setting up a connection.
Such tests rely on `Phoenix.ConnTest` and also
import other functionality to make it easier
to build common data structures and query the data layer.
Finally, if... | 28.710526 | 64 | 0.737855 |
abfcf65623b64d320b73625329e35dd9a0d57cf3 | 413 | ex | Elixir | lib/hl7/2.4/segments/rxc.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | lib/hl7/2.4/segments/rxc.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | lib/hl7/2.4/segments/rxc.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | defmodule HL7.V2_4.Segments.RXC do
@moduledoc false
require Logger
alias HL7.V2_4.{DataTypes}
use HL7.Segment,
fields: [
segment: nil,
rx_component_type: nil,
component_code: DataTypes.Ce,
component_amount: nil,
component_units: DataTypes.Ce,
component_strength: nil,
... | 21.736842 | 45 | 0.687651 |
abfd14cb9a593fede8428bdf5d3e47729d06ca76 | 231 | exs | Elixir | apps/ello_core/config/test.exs | ello/apex | 4acb096b3ce172ff4ef9a51e5d068d533007b920 | [
"MIT"
] | 16 | 2017-06-21T21:31:20.000Z | 2021-05-09T03:23:26.000Z | apps/ello_core/config/test.exs | ello/apex | 4acb096b3ce172ff4ef9a51e5d068d533007b920 | [
"MIT"
] | 25 | 2017-06-07T12:18:28.000Z | 2018-06-08T13:27:43.000Z | apps/ello_core/config/test.exs | ello/apex | 4acb096b3ce172ff4ef9a51e5d068d533007b920 | [
"MIT"
] | 3 | 2018-06-14T15:34:07.000Z | 2022-02-28T21:06:13.000Z | use Mix.Config
config :ello_core,
redis_url: "redis://localhost:6379"
config :ello_core, Ello.Core.Repo,
adapter: Ecto.Adapters.Postgres,
database: "ello_test_ex",
hostname: "localhost",
pool: Ecto.Adapters.SQL.Sandbox
| 21 | 37 | 0.74026 |
abfd491fad961836352eda77152411114fa133fc | 1,941 | ex | Elixir | lib/howhow_speak_web.ex | pastleo/howhow_speak | c298cc6624cd41da3d3f045ab92d4bcf50b84898 | [
"MIT"
] | 1 | 2020-06-19T11:23:44.000Z | 2020-06-19T11:23:44.000Z | lib/howhow_speak_web.ex | pastleo/howhow_speak | c298cc6624cd41da3d3f045ab92d4bcf50b84898 | [
"MIT"
] | null | null | null | lib/howhow_speak_web.ex | pastleo/howhow_speak | c298cc6624cd41da3d3f045ab92d4bcf50b84898 | [
"MIT"
] | null | null | null | defmodule HowhowSpeakWeb 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 HowhowSpeakWeb, :controller
use HowhowSpeakWeb, :view
The definitions below will be executed for every view,
... | 23.670732 | 76 | 0.693457 |
abfd4b760e85ebf3c7b121dc1a495c34fbd985a5 | 1,115 | exs | Elixir | config/config.exs | somlor/extras | 22e0e2c47f5a9480ca61eb5887152e53663fc339 | [
"MIT"
] | null | null | null | config/config.exs | somlor/extras | 22e0e2c47f5a9480ca61eb5887152e53663fc339 | [
"MIT"
] | null | null | null | config/config.exs | somlor/extras | 22e0e2c47f5a9480ca61eb5887152e53663fc339 | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on this project, this
# file won't be loaded nor affect the paren... | 35.967742 | 73 | 0.750673 |
abfd58e24b3b3d12b26b95c68f6587b69e9deb54 | 49,072 | ex | Elixir | lib/ex_admin/form.ex | elixir-twister/ex_admin | fbba06de24105c175abd53ea0b14d27714b0cde7 | [
"MIT"
] | null | null | null | lib/ex_admin/form.ex | elixir-twister/ex_admin | fbba06de24105c175abd53ea0b14d27714b0cde7 | [
"MIT"
] | null | null | null | lib/ex_admin/form.ex | elixir-twister/ex_admin | fbba06de24105c175abd53ea0b14d27714b0cde7 | [
"MIT"
] | null | null | null | defmodule ExAdmin.Form do
@moduledoc """
Override the default new and edit form pages for an ExAdmin resource.
By default, ExAdmin renders the form page without any additional
configuration. It renders each column in the model, except the id,
inserted_at, and updated_at columns in an attributes table.
To ... | 33.291723 | 150 | 0.62339 |
abfd666aa2c2f53d9b9b871b151d7ba86c279da2 | 1,751 | ex | Elixir | clients/partners/lib/google_api/partners/v2/model/debug_info.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/partners/lib/google_api/partners/v2/model/debug_info.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/partners/lib/google_api/partners/v2/model/debug_info.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.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.425926 | 97 | 0.728726 |
abfdf5aac0bcb52c2b612a68bf64d74419f65391 | 1,269 | ex | Elixir | lib/phoenix/transports/websocket.ex | shritesh/phoenix | 4bf53ecaae5a9057ea57c248964490dfdee312af | [
"MIT"
] | null | null | null | lib/phoenix/transports/websocket.ex | shritesh/phoenix | 4bf53ecaae5a9057ea57c248964490dfdee312af | [
"MIT"
] | 1 | 2021-11-17T12:10:06.000Z | 2021-11-24T12:53:45.000Z | lib/phoenix/transports/websocket.ex | shritesh/phoenix | 4bf53ecaae5a9057ea57c248964490dfdee312af | [
"MIT"
] | null | null | null | defmodule Phoenix.Transports.WebSocket do
@moduledoc false
alias Phoenix.Socket.{V1, V2, Transport}
def default_config() do
[
path: "/websocket",
serializer: [{V1.JSONSerializer, "~> 1.0.0"}, {V2.JSONSerializer, "~> 2.0.0"}],
timeout: 60_000,
transport_log: false,
compress: fals... | 30.214286 | 120 | 0.617021 |
abfe0bad08cb412748d9df0bf3a533ed253eb8c6 | 6,259 | ex | Elixir | lib/spry_cov.ex | tiagoefmoraes/spry_cov | 8bb9524795e574bfd52daa9e74f5189198ffdb79 | [
"Apache-2.0"
] | 4 | 2022-01-28T14:44:09.000Z | 2022-02-02T13:54:18.000Z | lib/spry_cov.ex | tiagoefmoraes/spry_cov | 8bb9524795e574bfd52daa9e74f5189198ffdb79 | [
"Apache-2.0"
] | 1 | 2022-02-28T00:44:10.000Z | 2022-02-28T00:44:10.000Z | lib/spry_cov.ex | tiagoefmoraes/spry_cov | 8bb9524795e574bfd52daa9e74f5189198ffdb79 | [
"Apache-2.0"
] | null | null | null | defmodule SpryCov do
@moduledoc """
To be used as `:test_coverage` `:tool` in `mix.exs`
## Configuration
```elixir
def project() do
[
...
test_coverage: [tool: SpryCov]
...
]
end
```
"""
alias SpryCov.Files
@default_threshold 100
@doc false
def start(compile_path, ... | 26.409283 | 92 | 0.630292 |
abfe1ef1b6d86ca0ee1a967b93509cff9cf5e331 | 1,403 | ex | Elixir | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v14/model/contact_information.ex | ericrwolfe/elixir-google-api | 3dc0f17edd5e2d6843580c16ddae3bf84b664ffd | [
"Apache-2.0"
] | null | null | null | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v14/model/contact_information.ex | ericrwolfe/elixir-google-api | 3dc0f17edd5e2d6843580c16ddae3bf84b664ffd | [
"Apache-2.0"
] | null | null | null | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v14/model/contact_information.ex | ericrwolfe/elixir-google-api | 3dc0f17edd5e2d6843580c16ddae3bf84b664ffd | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 30.5 | 86 | 0.75196 |
abfe623897a80e7f597f3a02c31fe568df2d0794 | 4,355 | ex | Elixir | lib/ex_aws/request.ex | SeatedInc/ex_aws | c78079a589183d8fe96e6d406c60cf8194bad222 | [
"MIT"
] | null | null | null | lib/ex_aws/request.ex | SeatedInc/ex_aws | c78079a589183d8fe96e6d406c60cf8194bad222 | [
"MIT"
] | null | null | null | lib/ex_aws/request.ex | SeatedInc/ex_aws | c78079a589183d8fe96e6d406c60cf8194bad222 | [
"MIT"
] | 1 | 2019-05-08T16:37:26.000Z | 2019-05-08T16:37:26.000Z | defmodule ExAws.Request do
require Logger
@moduledoc """
Makes requests to AWS.
"""
@type http_status :: pos_integer
@type success_content :: %{body: binary, headers: [{binary, binary}]}
@type success_t :: {:ok, success_content}
@type error_t :: {:error, {:http_error, http_status, binary}}
@type res... | 28.464052 | 97 | 0.56372 |
abfe6bb70327dd3b8446b3bbb162aa4fbaf32002 | 1,318 | ex | Elixir | lib/solutions/day4.ex | DianaOlympos/AdventOfCode2016 | f7b9551df87c878073738468e29228efd4c8784f | [
"MIT"
] | null | null | null | lib/solutions/day4.ex | DianaOlympos/AdventOfCode2016 | f7b9551df87c878073738468e29228efd4c8784f | [
"MIT"
] | null | null | null | lib/solutions/day4.ex | DianaOlympos/AdventOfCode2016 | f7b9551df87c878073738468e29228efd4c8784f | [
"MIT"
] | null | null | null | defmodule Adventofcode2016.Solution.Day4 do
alias Adventofcode2016.Solution.Helper
def solve() do
"day4.txt"
|> Helper.load_input()
|> String.split()
|> Enum.map(&String.trim/1)
|> Enum.map(&parse_full/1)
|> Enum.filter_map(&valid?/1, &elem(&1,1))
|> Enum.reduce(fn x, acc -> x + acc en... | 25.843137 | 80 | 0.657056 |
abfe6fe63516254d066990eaba67abb34a40c7d8 | 6,176 | ex | Elixir | lib/jeopardy/games.ex | ryoung786/jeopardy | 5558fc49013c5a22e556a0040cbc116aa8f63912 | [
"MIT"
] | null | null | null | lib/jeopardy/games.ex | ryoung786/jeopardy | 5558fc49013c5a22e556a0040cbc116aa8f63912 | [
"MIT"
] | 32 | 2020-06-08T14:50:46.000Z | 2021-01-01T05:40:44.000Z | lib/jeopardy/games.ex | ryoung786/jeopardy | 5558fc49013c5a22e556a0040cbc116aa8f63912 | [
"MIT"
] | null | null | null | defmodule Jeopardy.Games do
@moduledoc """
The Games context.
"""
import Ecto.Query, warn: false
require Logger
alias Jeopardy.Games.{Game, Player, Clue}
alias Jeopardy.Repo
alias Jeopardy.GameState
def get_game!(id),
do:
from(g in Game,
where: g.id == ^id,
left_join: p in... | 27.327434 | 97 | 0.60897 |
abfe9b59ee54e79e878833322f9b30a9b0b75d84 | 17,254 | ex | Elixir | lib/elixir/lib/io/ansi/docs.ex | gsphanikumar/elixir | 6ca225da4e016200a462888348ff1c3feb625b78 | [
"Apache-2.0"
] | 4 | 2015-12-22T02:46:39.000Z | 2016-04-26T06:11:09.000Z | lib/elixir/lib/io/ansi/docs.ex | alco/elixir | 4407170349aa12c58664cab2122374167e827f5e | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/io/ansi/docs.ex | alco/elixir | 4407170349aa12c58664cab2122374167e827f5e | [
"Apache-2.0"
] | null | null | null | defmodule IO.ANSI.Docs do
@moduledoc false
@bullets [?*, ?-, ?+]
@doc """
The default options used by this module.
The supported values are:
* `:enabled` - toggles coloring on and off (true)
* `:doc_bold` - bold text (bright)
* `:doc_code` - code blocks (cyan, brigh... | 30.755793 | 103 | 0.620494 |
abfea534d6bd159c96d6856b8c01650ebbec412a | 3,012 | ex | Elixir | lib/pigpiox/socket.ex | adrienmo/pigpiox | cd64db0c80293617a36568f6734d87c47242e3c8 | [
"Apache-2.0"
] | null | null | null | lib/pigpiox/socket.ex | adrienmo/pigpiox | cd64db0c80293617a36568f6734d87c47242e3c8 | [
"Apache-2.0"
] | null | null | null | lib/pigpiox/socket.ex | adrienmo/pigpiox | cd64db0c80293617a36568f6734d87c47242e3c8 | [
"Apache-2.0"
] | null | null | null | defmodule Pigpiox.Socket do
require Logger
use GenServer
@moduledoc """
Pigpiox.Socket provides an interface to send commands to a running pigpio daemon started by `Pigpiox.Port`
"""
@typep state :: :gen_tcp.socket
@typedoc """
The response of a command sent to pigpiod. The interpretation of `result`... | 34.62069 | 143 | 0.649734 |
abfeaec5bcf83f775f67c43a8676524df3bb139c | 2,999 | exs | Elixir | test/lib/web_authn_lite/credential_public_key_test.exs | tashirosota/elixir-web_authn_lite | 6135d9295cf1184a02a184385b1ef46cff94464c | [
"MIT"
] | 10 | 2018-11-21T03:17:05.000Z | 2022-03-10T17:17:00.000Z | test/lib/web_authn_lite/credential_public_key_test.exs | tashirosota/elixir-web_authn_lite | 6135d9295cf1184a02a184385b1ef46cff94464c | [
"MIT"
] | 6 | 2018-11-08T15:12:59.000Z | 2022-03-09T08:57:10.000Z | test/lib/web_authn_lite/credential_public_key_test.exs | tashirosota/elixir-web_authn_lite | 6135d9295cf1184a02a184385b1ef46cff94464c | [
"MIT"
] | 2 | 2019-01-14T09:18:09.000Z | 2022-03-08T04:15:03.000Z | defmodule WebAuthnLite.CredentialPublicKeyTest do
use ExUnit.Case, async: false
alias WebAuthnLite.CredentialPublicKey
doctest CredentialPublicKey
@es256_cbor_map %{
-3 =>
<<69, 150, 90, 169, 101, 33, 134, 69, 68, 224, 108, 180, 227, 71, 159, 199, 226, 133, 43,
209, 34, 72, 155, 122, 4, 235,... | 42.842857 | 359 | 0.734912 |
abfebe43f881c9be9c58f5d8a3130443f9fc8972 | 711 | ex | Elixir | lib/fireball_web/gettext.ex | Catharz/fireball | bb9f123c0d2d71b16eda01d3838565e6e762de20 | [
"MIT"
] | null | null | null | lib/fireball_web/gettext.ex | Catharz/fireball | bb9f123c0d2d71b16eda01d3838565e6e762de20 | [
"MIT"
] | null | null | null | lib/fireball_web/gettext.ex | Catharz/fireball | bb9f123c0d2d71b16eda01d3838565e6e762de20 | [
"MIT"
] | null | null | null | defmodule FireballWeb.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 FireballWeb.Gettext
# Simple translation
gettext "Here is... | 28.44 | 72 | 0.682138 |
abfec982103687c6b53ebccc7e77c72658e3baf3 | 140 | ex | Elixir | web/controllers/tp_resource_import_job_controller.ex | zombalo/cgrates_web_jsonapi | 47845be4311839fe180cc9f2c7c6795649da4430 | [
"MIT"
] | null | null | null | web/controllers/tp_resource_import_job_controller.ex | zombalo/cgrates_web_jsonapi | 47845be4311839fe180cc9f2c7c6795649da4430 | [
"MIT"
] | null | null | null | web/controllers/tp_resource_import_job_controller.ex | zombalo/cgrates_web_jsonapi | 47845be4311839fe180cc9f2c7c6795649da4430 | [
"MIT"
] | null | null | null | defmodule CgratesWebJsonapi.TpResourceImportJobController do
use CgratesWebJsonapi.CsvImportJob, module: CgratesWebJsonapi.TpResource
end
| 35 | 74 | 0.892857 |
abff07ef8875ae8a3847b9c6e969b9b930413a2a | 3,288 | ex | Elixir | clients/partners/lib/google_api/partners/v2/api/user_events.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/partners/lib/google_api/partners/v2/api/user_events.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/partners/lib/google_api/partners/v2/api/user_events.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... | 39.614458 | 178 | 0.681569 |
abff194587180ecffae35be2f8fc8b6b23ce6723 | 4,080 | ex | Elixir | lib/mix/tasks/ecto.migrate.ex | aptinio/ecto_sql | f13a0e8383428154a61a7a93d43dcb4b6f6a6fad | [
"Apache-2.0"
] | null | null | null | lib/mix/tasks/ecto.migrate.ex | aptinio/ecto_sql | f13a0e8383428154a61a7a93d43dcb4b6f6a6fad | [
"Apache-2.0"
] | null | null | null | lib/mix/tasks/ecto.migrate.ex | aptinio/ecto_sql | f13a0e8383428154a61a7a93d43dcb4b6f6a6fad | [
"Apache-2.0"
] | null | null | null | defmodule Mix.Tasks.Ecto.Migrate do
use Mix.Task
import Mix.Ecto
import Mix.EctoSQL
@shortdoc "Runs the repository migrations"
@aliases [
n: :step,
r: :repo
]
@switches [
all: :boolean,
step: :integer,
to: :integer,
quiet: :boolean,
prefix: :string,
pool_size: :integer,
... | 32.125984 | 100 | 0.665196 |
abff237c1658f6348692f90bee7d1e9ffba49039 | 1,204 | exs | Elixir | config/config.exs | mitchellhenke/blue_bird | bbf381aedfd1bc8ecc08c8bf9f9f8191ba06099f | [
"MIT"
] | null | null | null | config/config.exs | mitchellhenke/blue_bird | bbf381aedfd1bc8ecc08c8bf9f9f8191ba06099f | [
"MIT"
] | null | null | null | config/config.exs | mitchellhenke/blue_bird | bbf381aedfd1bc8ecc08c8bf9f9f8191ba06099f | [
"MIT"
] | 1 | 2019-05-16T19:43:04.000Z | 2019-05-16T19:43:04.000Z | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on this project, this
# file won't be loaded nor affect the paren... | 36.484848 | 73 | 0.739203 |
abff45c83694decd18f6c968eb07bf8c4ff30dd5 | 3,200 | ex | Elixir | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_environment.ex | jechol/elixir-google-api | 0290b683dfc6491ca2ef755a80bc329378738d03 | [
"Apache-2.0"
] | null | null | null | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_environment.ex | jechol/elixir-google-api | 0290b683dfc6491ca2ef755a80bc329378738d03 | [
"Apache-2.0"
] | null | null | null | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_environment.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... | 54.237288 | 630 | 0.729375 |
abff7bf650915da37f94c34233e98c1aa65e340f | 2,104 | ex | Elixir | lib/new_relic/logger.ex | ll1498/elixir_agent | a7b3bf1b49639c61d9eba3d4b91b30e0e856b54a | [
"Apache-2.0"
] | 1 | 2020-08-13T05:08:20.000Z | 2020-08-13T05:08:20.000Z | lib/new_relic/logger.ex | ll1498/elixir_agent | a7b3bf1b49639c61d9eba3d4b91b30e0e856b54a | [
"Apache-2.0"
] | null | null | null | lib/new_relic/logger.ex | ll1498/elixir_agent | a7b3bf1b49639c61d9eba3d4b91b30e0e856b54a | [
"Apache-2.0"
] | null | null | null | defmodule NewRelic.Logger do
use GenServer
# Log Agent events to the configured output device
# - "tmp/new_relic.log" (Default)
# - :memory
# - :stdio
# - {:file, filename}
@moduledoc false
def start_link do
GenServer.start_link(__MODULE__, :ok, name: __MODULE__)
end
def init(:ok) do
... | 25.349398 | 95 | 0.635932 |
abff7ea6a1fabfdba6d151b9f49a958f5c81d6ce | 1,476 | ex | Elixir | lib/triton/cql/update.ex | kiopro/triton | 12a2b9423c7dc0b037e256eafd9e80a006cf0272 | [
"MIT"
] | null | null | null | lib/triton/cql/update.ex | kiopro/triton | 12a2b9423c7dc0b037e256eafd9e80a006cf0272 | [
"MIT"
] | null | null | null | lib/triton/cql/update.ex | kiopro/triton | 12a2b9423c7dc0b037e256eafd9e80a006cf0272 | [
"MIT"
] | null | null | null | defmodule Triton.CQL.Update do
import Triton.CQL.Helper
def build(query) do
schema = query[:__schema__].__fields__
update(query[:__table__]) <>
set(query[:update], schema) <>
where(query[:where], schema) <>
constrain(query[:constrain], schema) <> if_exists(query[:if_exists])
end
def... | 32.8 | 98 | 0.608401 |
abff81501ad3981be98f8d1d7705d3df26cbcdbe | 779 | exs | Elixir | mix.exs | mdarin/proper-stateful-examples | 66d9e2f8fd8ca202d80b18b89f5ac929918ab7d6 | [
"Apache-2.0"
] | null | null | null | mix.exs | mdarin/proper-stateful-examples | 66d9e2f8fd8ca202d80b18b89f5ac929918ab7d6 | [
"Apache-2.0"
] | null | null | null | mix.exs | mdarin/proper-stateful-examples | 66d9e2f8fd8ca202d80b18b89f5ac929918ab7d6 | [
"Apache-2.0"
] | null | null | null | defmodule StatefulProperty.MixProject do
use Mix.Project
def project do
[
app: :stateful_property,
version: "0.1.0",
elixir: "~> 1.9",
start_permanent: Mix.env() == :prod,
test_pattern: "*_{test,proper}.exs",
deps: deps()
]
end
# Run "mix help compile.app" to learn ... | 23.606061 | 87 | 0.568678 |
28001ea86bb0acbcf7e2813fa9b01923aa16eeea | 972 | exs | Elixir | test/phone/b_countries/bo_test.exs | davidkovsky/phone | 83108ab1042efe62778c7363f5d02ef888883408 | [
"Apache-2.0"
] | 97 | 2016-04-05T13:08:41.000Z | 2021-12-25T13:08:34.000Z | test/phone/b_countries/bo_test.exs | davidkovsky/phone | 83108ab1042efe62778c7363f5d02ef888883408 | [
"Apache-2.0"
] | 70 | 2016-06-14T00:56:00.000Z | 2022-02-10T19:43:14.000Z | test/phone/b_countries/bo_test.exs | davidkovsky/phone | 83108ab1042efe62778c7363f5d02ef888883408 | [
"Apache-2.0"
] | 31 | 2016-04-21T22:26:12.000Z | 2022-01-24T21:40:00.000Z | defmodule Phone.BOTest do
use ExUnit.Case, async: true
main_module = Phone.BO
Enum.map(main_module.codes, fn code ->
test "#{inspect(main_module)} parses area code #{code}" do
assert Phone.valid?(unquote("#{code}55555555"))
assert {:ok, parsed} = Phone.parse(unquote("#{code}55555555"))
as... | 33.517241 | 79 | 0.654321 |
28003913f0331259a5f6fb2691adc5de3cdb9230 | 15,134 | ex | Elixir | clients/calendar/lib/google_api/calendar/v3/api/calendars.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/calendar/lib/google_api/calendar/v3/api/calendars.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/calendar/lib/google_api/calendar/v3/api/calendars.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... | 46.566154 | 226 | 0.640148 |
280051da037ee3464eed751f36baad964022f0dc | 631 | exs | Elixir | priv/repo/migrations/20200531214645_create_credentials.exs | jimytc/music-dating-app | ec46ef2ffa4fb263a8b283a96495b0643467697c | [
"MIT"
] | null | null | null | priv/repo/migrations/20200531214645_create_credentials.exs | jimytc/music-dating-app | ec46ef2ffa4fb263a8b283a96495b0643467697c | [
"MIT"
] | null | null | null | priv/repo/migrations/20200531214645_create_credentials.exs | jimytc/music-dating-app | ec46ef2ffa4fb263a8b283a96495b0643467697c | [
"MIT"
] | null | null | null | defmodule Songmate.Repo.Migrations.CreateCredentials do
use Ecto.Migration
def change do
CredentialProviderEnum.create_type()
create table(:credentials) do
add(:provider, CredentialProviderEnum.type(), null: false)
add(:email, :string, null: false)
add(:username, :string)
add(:toke... | 27.434783 | 76 | 0.683043 |
280056d06f65b3f355da14515284b788b5ccd5ac | 413 | exs | Elixir | example_applications/web_app/test/web_app_web/views/error_view_test.exs | maartenvanvliet/prom_ex | 8eb4f86c169af3b184a1a45cf42e298af2b05816 | [
"MIT"
] | 354 | 2020-10-21T06:27:15.000Z | 2022-03-29T13:22:46.000Z | example_applications/web_app/test/web_app_web/views/error_view_test.exs | maartenvanvliet/prom_ex | 8eb4f86c169af3b184a1a45cf42e298af2b05816 | [
"MIT"
] | 111 | 2020-11-25T21:27:13.000Z | 2022-03-28T10:42:59.000Z | example_applications/web_app/test/web_app_web/views/error_view_test.exs | maartenvanvliet/prom_ex | 8eb4f86c169af3b184a1a45cf42e298af2b05816 | [
"MIT"
] | 45 | 2020-12-31T20:37:11.000Z | 2022-03-18T13:12:21.000Z | defmodule WebAppWeb.ErrorViewTest do
use WebAppWeb.ConnCase, async: true
# Bring render/3 and render_to_string/3 for testing custom views
import Phoenix.View
test "renders 404.html" do
assert render_to_string(WebAppWeb.ErrorView, "404.html", []) == "Not Found"
end
test "renders 500.html" do
asser... | 27.533333 | 91 | 0.731235 |
2800cf2a27fdacb3077860458219e2a6287e5bed | 1,578 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/offset_position.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/model/offset_position.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/offset_position.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 31.56 | 110 | 0.719265 |
2800e1416ea5cbd480c8e9a375b6aacddb3369f2 | 908 | ex | Elixir | lib/graphql/client.ex | TheRealReal/graphql_client | 18b5b93f06a5cac218f8727eb0f7863081b7becf | [
"Apache-2.0"
] | 9 | 2022-03-11T21:14:13.000Z | 2022-03-31T14:13:38.000Z | lib/graphql/client.ex | TheRealReal/graphql_client | 18b5b93f06a5cac218f8727eb0f7863081b7becf | [
"Apache-2.0"
] | null | null | null | lib/graphql/client.ex | TheRealReal/graphql_client | 18b5b93f06a5cac218f8727eb0f7863081b7becf | [
"Apache-2.0"
] | null | null | null | defmodule GraphQL.Client do
@moduledoc """
Facade client for GraphQL requests
The real backend must implement the execute/4 callback and must be configured
by the `:therealreal, GraphQL.Client, :backend` application
config.
"""
alias GraphQL.{Query, Response}
@type query :: Query.t() | {String.t(), re... | 26.705882 | 79 | 0.63326 |
2800f4d7d6ac5d54b9b00974e92de1697a9c4c73 | 1,885 | exs | Elixir | clients/metastore/mix.exs | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/metastore/mix.exs | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/metastore/mix.exs | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 28.134328 | 142 | 0.661008 |
28011af588be94ea6ed8ec087a727c6d957c6a76 | 413 | ex | Elixir | test/support/phoenix/views.ex | NeoArcanjo/pow_last_login | 00225c452bf1e277e64b6ede5a33a6b697991061 | [
"MIT"
] | 7 | 2019-06-07T14:10:29.000Z | 2022-03-28T09:00:35.000Z | test/support/phoenix/views.ex | NeoArcanjo/pow_last_login | 00225c452bf1e277e64b6ede5a33a6b697991061 | [
"MIT"
] | 1 | 2020-07-20T19:27:58.000Z | 2020-07-20T19:27:58.000Z | test/support/phoenix/views.ex | NeoArcanjo/pow_last_login | 00225c452bf1e277e64b6ede5a33a6b697991061 | [
"MIT"
] | 7 | 2019-07-22T00:14:41.000Z | 2021-09-22T09:18:13.000Z | defmodule PowLastLogin.TestWeb.Phoenix.LayoutView do
@moduledoc false
use Phoenix.View,
root: "test/support/phoenix/templates",
namespace: PowLastLogin.TestWeb.Phoenix
end
defmodule PowLastLogin.TestWeb.Phoenix.ErrorView do
@moduledoc false
def render("500.html", _assigns), do: "500.html"
def render(... | 29.5 | 52 | 0.74092 |
2801951f63be5b71113971ffb38ccf4cb727138f | 1,985 | ex | Elixir | lib/geo/wkb.ex | felt/geo | a63a84a3d402ba201502e57e3787c59fd9ea3518 | [
"MIT"
] | null | null | null | lib/geo/wkb.ex | felt/geo | a63a84a3d402ba201502e57e3787c59fd9ea3518 | [
"MIT"
] | null | null | null | lib/geo/wkb.ex | felt/geo | a63a84a3d402ba201502e57e3787c59fd9ea3518 | [
"MIT"
] | null | null | null | defmodule Geo.WKB do
@moduledoc """
Converts to and from WKB and EWKB.
## Examples
iex> {:ok, point} = Geo.WKB.decode("0101000000000000000000F03F000000000000F03F")
Geo.Point[coordinates: {1, 1}, srid: nil]
iex> Geo.WKT.encode!(point)
"POINT(1 1)"
iex> point = Geo.WKB.decode!("010... | 23.352941 | 88 | 0.619144 |
2801a9d1958bc61dd9a0074719978017c6d63da6 | 1,012 | ex | Elixir | web/views/error_helpers.ex | Andorbal/phoenix_react | 0291d612ca710f80bd5ec87f052649f32c9e5847 | [
"MIT"
] | null | null | null | web/views/error_helpers.ex | Andorbal/phoenix_react | 0291d612ca710f80bd5ec87f052649f32c9e5847 | [
"MIT"
] | null | null | null | web/views/error_helpers.ex | Andorbal/phoenix_react | 0291d612ca710f80bd5ec87f052649f32c9e5847 | [
"MIT"
] | null | null | null | defmodule PhoenixReact.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(err... | 28.111111 | 83 | 0.683794 |
2801c880d20e4db2a0c1788c2ad0e38695bbee19 | 278 | ex | Elixir | lib/poison_encoder.ex | paniagua/abix | e88e4c7f233c8bdeca843e5c4508cf4d2e676788 | [
"MIT"
] | null | null | null | lib/poison_encoder.ex | paniagua/abix | e88e4c7f233c8bdeca843e5c4508cf4d2e676788 | [
"MIT"
] | null | null | null | lib/poison_encoder.ex | paniagua/abix | e88e4c7f233c8bdeca843e5c4508cf4d2e676788 | [
"MIT"
] | null | null | null | defimpl Poison.Encoder, for: Any do
def encode(%{__struct__: _} = struct, options) do
struct
|> Map.from_struct
|> sanitize_map
|> Poison.Encoder.Map.encode(options)
end
defp sanitize_map(map) do
Map.drop(map, [:__meta__, :__struct__])
end
end | 23.166667 | 51 | 0.654676 |
2801d0f02d3313c52eb3ec75ff1005f33b235e3c | 267 | exs | Elixir | config/tunnel.exs | c-bik/ora_friends | 9ece1913e276c18594597f8c63311ff5724b3a1a | [
"Apache-2.0"
] | null | null | null | config/tunnel.exs | c-bik/ora_friends | 9ece1913e276c18594597f8c63311ff5724b3a1a | [
"Apache-2.0"
] | null | null | null | config/tunnel.exs | c-bik/ora_friends | 9ece1913e276c18594597f8c63311ff5724b3a1a | [
"Apache-2.0"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
config :friends, Friends.Repo,
database: "XE",
username: "scott",
password: "regit",
hostname: "127.0.0.1",
port: 1521
| 24.272727 | 61 | 0.719101 |
2802126d14c36b4230b77f3cfdfa93e2a87cc358 | 2,728 | ex | Elixir | lib/fryse/template_helpers.ex | fryse/fryse | 56e25ff2dc3dad56593849af7e8786225b918934 | [
"MIT"
] | 7 | 2018-02-03T01:04:22.000Z | 2020-07-19T16:47:03.000Z | lib/fryse/template_helpers.ex | fryse/fryse | 56e25ff2dc3dad56593849af7e8786225b918934 | [
"MIT"
] | 3 | 2020-07-16T09:28:38.000Z | 2020-07-22T09:40:45.000Z | lib/fryse/template_helpers.ex | fryse/fryse | 56e25ff2dc3dad56593849af7e8786225b918934 | [
"MIT"
] | null | null | null | defmodule Fryse.TemplateHelpers do
@moduledoc false
alias Fryse.Content
alias Fryse.Pagination
alias Fryse.Page
alias Fryse.File
alias Fryse.Document
alias Fryse.FilePath
def asset(%Page{fryse: %Fryse{config: %{path_prefix: p}}}, path) when is_nil(p) == false do
Path.join(["/", p, "/assets", to_st... | 30.651685 | 106 | 0.686217 |
2802287287e281888e1145788760e1d57b36b826 | 1,368 | ex | Elixir | lib/conduit_nsq/consumer.ex | DigixGlobal/nascent | 37f99ce5a6881fbe56786d7eaf5419e0d86fc3eb | [
"MIT"
] | null | null | null | lib/conduit_nsq/consumer.ex | DigixGlobal/nascent | 37f99ce5a6881fbe56786d7eaf5419e0d86fc3eb | [
"MIT"
] | null | null | null | lib/conduit_nsq/consumer.ex | DigixGlobal/nascent | 37f99ce5a6881fbe56786d7eaf5419e0d86fc3eb | [
"MIT"
] | null | null | null | defmodule ConduitNSQ.Consumer do
@moduledoc """
Starts consumers for each topic
"""
use Supervisor
alias Jason
alias Honeydew
alias NSQ
alias ConduitNSQ.MessageProcessor
def start_link(broker, name, sub_opts, opts) do
Supervisor.start_link(
__MODULE__,
[broker, name, sub_opts, opts... | 18.739726 | 73 | 0.572368 |
28023aebb0d9641817e8801f7f9a88a489ead72a | 7,121 | ex | Elixir | lib/grpc/adapter/cowboy.ex | gocariq/grpc-elixir | d6243a793d2a3e8eb57d6a64729e5c805cb013f9 | [
"Apache-2.0"
] | null | null | null | lib/grpc/adapter/cowboy.ex | gocariq/grpc-elixir | d6243a793d2a3e8eb57d6a64729e5c805cb013f9 | [
"Apache-2.0"
] | null | null | null | lib/grpc/adapter/cowboy.ex | gocariq/grpc-elixir | d6243a793d2a3e8eb57d6a64729e5c805cb013f9 | [
"Apache-2.0"
] | null | null | null | defmodule GRPC.Adapter.Cowboy do
@moduledoc false
# A server(`GRPC.Server`) adapter using Cowboy.
# Cowboy req will be stored in `:payload` of `GRPC.Server.Stream`.
# Waiting for this is released on hex https://github.com/ninenines/ranch/pull/227
@dialyzer {:nowarn_function, running_info: 4}
require Logg... | 29.670833 | 95 | 0.630529 |
28025872d21cdfdbdfe948f680062ce5fc51cf1d | 180 | exs | Elixir | integration_test/simple_example_app/test/focus_unit_test.exs | elitau/tix | 2aa5fe4d91e7962ebcdc9b668aacf65e09ff9bb8 | [
"MIT"
] | 1 | 2021-08-16T18:52:45.000Z | 2021-08-16T18:52:45.000Z | integration_test/simple_example_app/test/focus_unit_test.exs | elitau/tix | 2aa5fe4d91e7962ebcdc9b668aacf65e09ff9bb8 | [
"MIT"
] | 16 | 2021-03-09T19:39:31.000Z | 2022-03-15T15:20:24.000Z | integration_test/simple_example_app/test/focus_unit_test.exs | elitau/tix | 2aa5fe4d91e7962ebcdc9b668aacf65e09ff9bb8 | [
"MIT"
] | null | null | null | defmodule SimpleExampleFoCusUnitTest do
use ExUnit.Case
# tix:focus
test "always green" do
assert true
end
test "always red" do
assert "red" == :blue
end
end
| 13.846154 | 39 | 0.677778 |
28026e2923003296e575cd9af36932109b100856 | 86 | exs | Elixir | test/blockquote_web/views/page_view_test.exs | allen-garvey/block-quote-phoenix | 5c0f5d16daf6bb515a8f1846c3e4311b368a7bdb | [
"MIT"
] | 4 | 2019-10-04T16:11:15.000Z | 2021-08-18T21:00:13.000Z | apps/blockquote/test/blockquote_web/views/page_view_test.exs | allen-garvey/phoenix-umbrella | 1d444bbd62a5e7b5f51d317ce2be71ee994125d5 | [
"MIT"
] | 5 | 2020-03-16T23:52:25.000Z | 2021-09-03T16:52:17.000Z | apps/blockquote/test/blockquote_web/views/page_view_test.exs | allen-garvey/phoenix-umbrella | 1d444bbd62a5e7b5f51d317ce2be71ee994125d5 | [
"MIT"
] | null | null | null | defmodule BlockquoteWeb.PageViewTest do
use BlockquoteWeb.ConnCase, async: true
end
| 21.5 | 41 | 0.837209 |
280296945306d0c22e2e781db728f8454ff84563 | 880 | ex | Elixir | clients/content/lib/google_api/content/v2/metadata.ex | rafaltrojanowski/elixir-google-api | 779f15166741b9cf57cb832228f1115bfb8edb13 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/metadata.ex | rafaltrojanowski/elixir-google-api | 779f15166741b9cf57cb832228f1115bfb8edb13 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/metadata.ex | rafaltrojanowski/elixir-google-api | 779f15166741b9cf57cb832228f1115bfb8edb13 | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 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... | 32.592593 | 74 | 0.757955 |
2802c3d979721de4ca861e8cec24c0e500733043 | 2,701 | ex | Elixir | apps/ewallet/lib/ewallet/web/v1/overlays/transaction_overlay.ex | Macavirus/ewallet | ce62177b8bd3f7e72156930d384a1c4c047a3b5b | [
"Apache-2.0"
] | null | null | null | apps/ewallet/lib/ewallet/web/v1/overlays/transaction_overlay.ex | Macavirus/ewallet | ce62177b8bd3f7e72156930d384a1c4c047a3b5b | [
"Apache-2.0"
] | null | null | null | apps/ewallet/lib/ewallet/web/v1/overlays/transaction_overlay.ex | Macavirus/ewallet | ce62177b8bd3f7e72156930d384a1c4c047a3b5b | [
"Apache-2.0"
] | null | null | null | # Copyright 2018-2019 OmiseGO Pte Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 22.697479 | 74 | 0.637171 |
2802d2324a022f2b3c351ec5ceb7165c1b88ff1e | 526 | ex | Elixir | apps/gitgud/lib/gitgud/release_tasks.ex | rogervezaro/gitgud | 6656f8c2df16817a6c5325fb4c18b03f9d3f7140 | [
"MIT"
] | null | null | null | apps/gitgud/lib/gitgud/release_tasks.ex | rogervezaro/gitgud | 6656f8c2df16817a6c5325fb4c18b03f9d3f7140 | [
"MIT"
] | null | null | null | apps/gitgud/lib/gitgud/release_tasks.ex | rogervezaro/gitgud | 6656f8c2df16817a6c5325fb4c18b03f9d3f7140 | [
"MIT"
] | null | null | null | defmodule GitGud.ReleaseTasks do
@moduledoc false
@app :gitgud
def migrate do
load_app()
for repo <- repos() do
{:ok, _, _} = Ecto.Migrator.with_repo(repo, &Ecto.Migrator.run(&1, :up, all: true))
end
:ok
end
def rollback(repo, version) do
load_app()
{:ok, _, _} = Ecto.Migrator... | 18.785714 | 91 | 0.625475 |
2802f69e2867a9c379445b66bff74533ca4b3aa8 | 822 | exs | Elixir | config/config.exs | gseddon/ueberauth | a914cbb1894224bdc1ff5653011af5966838cab2 | [
"MIT"
] | 1,456 | 2015-11-18T05:27:24.000Z | 2022-03-24T15:07:59.000Z | config/config.exs | gseddon/ueberauth | a914cbb1894224bdc1ff5653011af5966838cab2 | [
"MIT"
] | 139 | 2015-11-18T18:34:03.000Z | 2022-03-30T18:22:01.000Z | config/config.exs | gseddon/ueberauth | a914cbb1894224bdc1ff5653011af5966838cab2 | [
"MIT"
] | 120 | 2015-11-19T16:25:02.000Z | 2022-02-06T01:31:45.000Z | use Mix.Config
config :ueberauth, Ueberauth,
providers: [
simple: {Support.SimpleCallback, []},
redirector: {Support.Redirector, []},
with_request_path: {Support.Redirector, [request_path: "/login"]},
with_callback_path: {Support.SimpleCallback, [callback_path: "/login_callback"]},
using_default_... | 39.142857 | 85 | 0.70073 |
28031e5595e72383d952d02e470b8926772f8f91 | 63 | ex | Elixir | lib/birdbeak_web/views/page_view.ex | qtheninja/birdbeak | f3af66ee84a201a373ab0b9b5c245c861b7e88ab | [
"MIT"
] | null | null | null | lib/birdbeak_web/views/page_view.ex | qtheninja/birdbeak | f3af66ee84a201a373ab0b9b5c245c861b7e88ab | [
"MIT"
] | null | null | null | lib/birdbeak_web/views/page_view.ex | qtheninja/birdbeak | f3af66ee84a201a373ab0b9b5c245c861b7e88ab | [
"MIT"
] | null | null | null | defmodule BirdbeakWeb.PageView do
use BirdbeakWeb, :view
end
| 15.75 | 33 | 0.809524 |
280323a2ae20fe7f0111a9a434d9b3223c62cc5d | 2,331 | exs | Elixir | test/test_helper.exs | zamith/surface | 1597bd2b2490eacea2a7ab659a7c95863e73985b | [
"MIT"
] | null | null | null | test/test_helper.exs | zamith/surface | 1597bd2b2490eacea2a7ab659a7c95863e73985b | [
"MIT"
] | null | null | null | test/test_helper.exs | zamith/surface | 1597bd2b2490eacea2a7ab659a7c95863e73985b | [
"MIT"
] | 1 | 2020-04-21T18:49:15.000Z | 2020-04-21T18:49:15.000Z | ExUnit.start()
defmodule Router do
use Phoenix.Router
end
defmodule Endpoint do
use Phoenix.Endpoint, otp_app: :surface
plug(Router)
end
Application.put_env(:surface, Endpoint,
secret_key_base: "J4lTFt000ENUVhu3dbIB2P2vRVl2nDBH6FLefnPUImL8mHYNX8Kln/N9J0HH19Mq",
live_view: [
signing_salt: "LfCCMxfkGME8S... | 23.785714 | 98 | 0.628915 |
28032f355c114696777b406832fc36049628f47e | 5,995 | exs | Elixir | test/lib/util_test.exs | vanessaklee/akin | fc97befb871536b6c7ef0b35740fe6efc032c566 | [
"Apache-2.0"
] | 8 | 2021-10-31T21:24:37.000Z | 2022-02-27T05:30:24.000Z | test/lib/util_test.exs | vanessaklee/akin | fc97befb871536b6c7ef0b35740fe6efc032c566 | [
"Apache-2.0"
] | 1 | 2021-10-31T17:57:41.000Z | 2021-11-09T22:54:50.000Z | test/lib/util_test.exs | vanessaklee/akin | fc97befb871536b6c7ef0b35740fe6efc032c566 | [
"Apache-2.0"
] | null | null | null | defmodule UtilTest do
use ExUnit.Case
import Akin.Util
alias Akin.Corpus
test "Removes punction & whitespace, downcases, and returns a Corpus struct unless nil value sent" do
assert is_struct(compose("word"))
assert compose("WORD").string == "word"
assert compose("Two WORDS").string == "twowords"... | 30.586735 | 118 | 0.602335 |
280335ab1ea89720d6ba7e932c53f702fe0da54a | 2,511 | exs | Elixir | apps/quiz_server/test/boundary/quiz_manager_test.exs | chargio/revision | 28831e6608409de6ef46ac4619c56ad3b0fa90bd | [
"Apache-2.0"
] | 1 | 2022-02-06T11:29:56.000Z | 2022-02-06T11:29:56.000Z | apps/quiz_server/test/boundary/quiz_manager_test.exs | chargio/revision | 28831e6608409de6ef46ac4619c56ad3b0fa90bd | [
"Apache-2.0"
] | null | null | null | apps/quiz_server/test/boundary/quiz_manager_test.exs | chargio/revision | 28831e6608409de6ef46ac4619c56ad3b0fa90bd | [
"Apache-2.0"
] | null | null | null | defmodule QuizServer.Boundary.QuizManagerTest do
@moduledoc false
use ExUnit.Case
alias QuizServer.Examples.Multiplication
alias QuizServer.Boundary.QuizManager
alias QuizServer.Core.Quiz
def create_transient_template_manager(context) do
# Quiz fields include the template to be used
quiz_fields = M... | 35.366197 | 100 | 0.679012 |
280338f2837d724404fb6901ab9b5fc325ab91b4 | 84 | exs | Elixir | src/schnapps-ex/apps/schnapps_web/test/schnapps_web/views/layout_view_test.exs | korczis/dj-schnapps | 7128988695855161f22d0ef2dd9ef61b46ba6f9a | [
"MIT"
] | null | null | null | src/schnapps-ex/apps/schnapps_web/test/schnapps_web/views/layout_view_test.exs | korczis/dj-schnapps | 7128988695855161f22d0ef2dd9ef61b46ba6f9a | [
"MIT"
] | null | null | null | src/schnapps-ex/apps/schnapps_web/test/schnapps_web/views/layout_view_test.exs | korczis/dj-schnapps | 7128988695855161f22d0ef2dd9ef61b46ba6f9a | [
"MIT"
] | null | null | null | defmodule SchnappsWeb.LayoutViewTest do
use SchnappsWeb.ConnCase, async: true
end
| 21 | 39 | 0.833333 |
28035baa83a2c7df5454b968cc66cc331efe3e67 | 815 | exs | Elixir | apps/game_loader/mix.exs | qwertystop/dominions5.analyst | 7c39ea14640b3a2d2c70df249688bc501f2f2184 | [
"MIT"
] | 1 | 2019-07-04T00:39:31.000Z | 2019-07-04T00:39:31.000Z | apps/game_loader/mix.exs | qwertystop/dominions5.analyst | 7c39ea14640b3a2d2c70df249688bc501f2f2184 | [
"MIT"
] | null | null | null | apps/game_loader/mix.exs | qwertystop/dominions5.analyst | 7c39ea14640b3a2d2c70df249688bc501f2f2184 | [
"MIT"
] | null | null | null | defmodule GameLoader.Mixfile do
use Mix.Project
def project do
[
app: :game_loader,
version: "0.1.0",
build_path: "../../_build",
config_path: "../../config/config.exs",
deps_path: "../../deps",
lockfile: "../../mix.lock",
elixir: "~> 1.5",
start_permanent: Mix.e... | 23.285714 | 88 | 0.570552 |
28037b27a3940d1ea27e7b9a07739149345bebc6 | 2,257 | ex | Elixir | clients/analytics_admin/lib/google_api/analytics_admin/v1alpha/model/google_analytics_admin_v1alpha_list_conversion_events_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/analytics_admin/lib/google_api/analytics_admin/v1alpha/model/google_analytics_admin_v1alpha_list_conversion_events_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/analytics_admin/lib/google_api/analytics_admin/v1alpha/model/google_analytics_admin_v1alpha_list_conversion_events_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... | 34.723077 | 189 | 0.744794 |
280393ebb9871b569e312a15700d81f701f2905a | 364 | ex | Elixir | lib/implementations/diffable/list.ex | DanilaMihailov/differ | 181c76effb8fbc94c60b6429c7d6b25c5d16ffab | [
"Apache-2.0"
] | 2 | 2020-02-07T17:27:12.000Z | 2020-06-15T19:31:00.000Z | lib/implementations/diffable/list.ex | DanilaMihailov/differ | 181c76effb8fbc94c60b6429c7d6b25c5d16ffab | [
"Apache-2.0"
] | null | null | null | lib/implementations/diffable/list.ex | DanilaMihailov/differ | 181c76effb8fbc94c60b6429c7d6b25c5d16ffab | [
"Apache-2.0"
] | null | null | null | defimpl Differ.Diffable, for: List do
def diff(list1, list2) do
List.myers_difference(list1, list2, &Differ.Diffable.diff/2)
end
def optimize_op(_val, {:del, val}, 3) do
{:remove, Enum.count(val)}
end
def optimize_op(_val, {:eq, val}, level) when level > 1 do
{:skip, Enum.count(val)}
end
de... | 22.75 | 64 | 0.662088 |
2803bbd86db997287f2db12238e685b66f291f48 | 429 | ex | Elixir | lib/gocardless/api/event.ex | Capchase/gocardless | 5a3015c4614b8196aac627225691d4dc43dd661e | [
"MIT"
] | 5 | 2017-06-23T16:09:20.000Z | 2020-03-08T15:25:41.000Z | lib/gocardless/api/event.ex | Capchase/gocardless | 5a3015c4614b8196aac627225691d4dc43dd661e | [
"MIT"
] | 9 | 2017-06-26T10:29:34.000Z | 2018-10-18T11:05:57.000Z | lib/gocardless/api/event.ex | Capchase/gocardless | 5a3015c4614b8196aac627225691d4dc43dd661e | [
"MIT"
] | 2 | 2017-06-23T19:09:07.000Z | 2021-07-14T20:48:59.000Z | defmodule Gocardless.Api.Event do
@moduledoc """
Functions that map to Event endpoints
Talks to our `Gocardless.Utils.Comms` to do the requests
"""
import Gocardless.Utils.Comms
def list(params) do
url_params = URI.encode_query(params)
:get
|> request("/events?#{url_params}")
|> decode_js... | 18.652174 | 58 | 0.662005 |
2803de20fe9579ea518860215f87d07ba623a506 | 672 | ex | Elixir | lib/intermediate_git_web/live/modal_component.ex | Baradoy/intermdiategit | 3a7b7efc32e361d2347057cbe3c8997f44135522 | [
"MIT"
] | null | null | null | lib/intermediate_git_web/live/modal_component.ex | Baradoy/intermdiategit | 3a7b7efc32e361d2347057cbe3c8997f44135522 | [
"MIT"
] | null | null | null | lib/intermediate_git_web/live/modal_component.ex | Baradoy/intermdiategit | 3a7b7efc32e361d2347057cbe3c8997f44135522 | [
"MIT"
] | null | null | null | defmodule IntermediateGitWeb.ModalComponent do
use IntermediateGitWeb, :live_component
@impl true
def render(assigns) do
~L"""
<div id="<%= @id %>" class="phx-modal"
phx-capture-click="close"
phx-window-keydown="close"
phx-key="escape"
phx-target="#<%= @id %>"
phx-page-loadi... | 24.888889 | 82 | 0.602679 |
2803f1e52f36f197f1e90edea65c86502fd1cf03 | 333 | exs | Elixir | apps/podder/config/config.exs | chattes/podder_umbrella | a2662a21a067fd3f0cd02b98cb63afd958c895db | [
"MIT"
] | null | null | null | apps/podder/config/config.exs | chattes/podder_umbrella | a2662a21a067fd3f0cd02b98cb63afd958c895db | [
"MIT"
] | null | null | null | apps/podder/config/config.exs | chattes/podder_umbrella | a2662a21a067fd3f0cd02b98cb63afd958c895db | [
"MIT"
] | null | null | null | # Since configuration is shared in umbrella projects, this file
# should only configure the :podder application itself
# and only for organization purposes. All other config goes to
# the umbrella root.
use Mix.Config
config :podder,
podcast_base_url: "https://listennotes.p.rapidapi.com/api/v1"
import_config "#{Mix... | 30.272727 | 63 | 0.771772 |
28041a544fa1c6a47bfdbed4e94229f59a76af8c | 2,836 | ex | Elixir | lib/servy/pledge_server2.ex | Sinha-Ujjawal/Servy | b03a5aa963f33ac74f3642d81cc4734044705999 | [
"MIT"
] | null | null | null | lib/servy/pledge_server2.ex | Sinha-Ujjawal/Servy | b03a5aa963f33ac74f3642d81cc4734044705999 | [
"MIT"
] | null | null | null | lib/servy/pledge_server2.ex | Sinha-Ujjawal/Servy | b03a5aa963f33ac74f3642d81cc4734044705999 | [
"MIT"
] | null | null | null | defmodule Servy.PledgeServer2 do
@name :pledge_server
use GenServer
defmodule State do
defstruct cache_size: 3, pledges: []
end
# Client Interface
def start_link(%{cache_size: cache_size}) do
IO.puts("Starting the pledge server with cache_size: #{cache_size} ...")
GenServer.start_link(__MODUL... | 30.826087 | 92 | 0.70275 |
280428b1ec5de85ac2798c7f395c3567fca943ca | 261 | ex | Elixir | lib/remote_points.ex | DianaOlympos/remote_test | e222d4e937789871baab3a7b4fd8428b714c1af4 | [
"MIT"
] | 1 | 2020-09-18T03:32:45.000Z | 2020-09-18T03:32:45.000Z | lib/remote_points.ex | DianaOlympos/remote_test | e222d4e937789871baab3a7b4fd8428b714c1af4 | [
"MIT"
] | null | null | null | lib/remote_points.ex | DianaOlympos/remote_test | e222d4e937789871baab3a7b4fd8428b714c1af4 | [
"MIT"
] | null | null | null | defmodule RemotePoints do
@moduledoc """
RemotePoints keeps the contexts that define your domain
and business logic.
Contexts are also responsible for managing your data, regardless
if it comes from the database, an external API or others.
"""
end
| 26.1 | 66 | 0.762452 |
280466587061d42524107d65a2dc06ada7c01ea5 | 396 | exs | Elixir | bench/float_mult_bench.exs | zeam-vm/pelemay_sample | 1e392b95311a4f35cce5e1b6e462a3eded10e484 | [
"Apache-2.0"
] | 2 | 2019-10-02T16:21:10.000Z | 2020-01-13T20:56:10.000Z | bench/float_mult_bench.exs | zeam-vm/pelemay_sample | 1e392b95311a4f35cce5e1b6e462a3eded10e484 | [
"Apache-2.0"
] | null | null | null | bench/float_mult_bench.exs | zeam-vm/pelemay_sample | 1e392b95311a4f35cce5e1b6e462a3eded10e484 | [
"Apache-2.0"
] | 2 | 2020-01-28T09:24:54.000Z | 2020-02-26T04:47:42.000Z | defmodule FloatMultBench do
use Benchfella
@range_0x1000 (1..0x1000)
setup_all do
PelemaySample.float_mult(@range_0x1000)
{:ok, nil}
end
bench "Enum" do
@range_0x1000
|> PelemaySample.enum_float_mult
end
bench "Flow" do
@range_0x1000
|> PelemaySample.flow_float_mult
end
be... | 15.84 | 43 | 0.691919 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.