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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e9f3aa0cb40e80ab525851419ad3c4ea42a68a01 | 1,512 | exs | Elixir | mix.exs | hkrutzer/telemetry_metrics_statsd | dc5dfa823e0afcad81bb6386ccaf42192cbecbb7 | [
"MIT"
] | null | null | null | mix.exs | hkrutzer/telemetry_metrics_statsd | dc5dfa823e0afcad81bb6386ccaf42192cbecbb7 | [
"MIT"
] | null | null | null | mix.exs | hkrutzer/telemetry_metrics_statsd | dc5dfa823e0afcad81bb6386ccaf42192cbecbb7 | [
"MIT"
] | null | null | null | defmodule TelemetryMetricsStatsd.MixProject do
use Mix.Project
@version "0.3.0"
def project do
[
app: :telemetry_metrics_statsd,
version: @version,
elixir: "~> 1.5",
start_permanent: Mix.env() == :prod,
elixirc_paths: elixirc_paths(Mix.env()),
preferred_cli_env: preferred... | 21.6 | 88 | 0.596561 |
e9f3b827d7d773b7afdf2d3670431081bc78830a | 609 | exs | Elixir | test/rumbl/users/user_repo_test.exs | GArmane/rumbl | 6dbc0c4515601b7fdfe2bed54ef39abfcd8bcb5e | [
"MIT"
] | null | null | null | test/rumbl/users/user_repo_test.exs | GArmane/rumbl | 6dbc0c4515601b7fdfe2bed54ef39abfcd8bcb5e | [
"MIT"
] | 2 | 2021-03-09T19:04:16.000Z | 2021-05-10T16:20:10.000Z | test/rumbl/users/user_repo_test.exs | GArmane/rumbl | 6dbc0c4515601b7fdfe2bed54ef39abfcd8bcb5e | [
"MIT"
] | 1 | 2020-07-17T14:48:52.000Z | 2020-07-17T14:48:52.000Z | defmodule Rumbl.UserRepoTest do
use Rumbl.DataCase
alias Rumbl.Users.User
@valid_attrs %{name: "A User", username: "eva"}
test "converts unique_constraint on username to error" do
Helpers.insert_user(%{username: "eric"})
attrs = Map.put(@valid_attrs, :username, "eric")
changeset = User.changeset(%... | 24.36 | 59 | 0.6289 |
e9f3cb719db1c7709206cd19f9ff8fa1697e8b78 | 5,960 | ex | Elixir | lib/elixir/lib/io.ex | joearms/elixir | 9a0f8107bd8bbd089acb96fe0041d61a05e88a9b | [
"Apache-2.0"
] | 4 | 2016-04-05T05:51:36.000Z | 2019-10-31T06:46:35.000Z | lib/elixir/lib/io.ex | joearms/elixir | 9a0f8107bd8bbd089acb96fe0041d61a05e88a9b | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/io.ex | joearms/elixir | 9a0f8107bd8bbd089acb96fe0041d61a05e88a9b | [
"Apache-2.0"
] | 5 | 2015-02-01T06:01:19.000Z | 2019-08-29T09:02:35.000Z | defmodule IO do
@moduledoc """
Module responsible for doing IO. Many functions in this
module expects an IO device and an io data encoded in UTF-8.
An IO device must be a pid or an atom representing a process.
For convenience, Elixir provides `:stdio` and `:stderr` as
shortcut to Erlang's `:standard_io` an... | 26.371681 | 106 | 0.671812 |
e9f3cf6007da22102003e98cc4ff44d3d4163f5d | 1,819 | ex | Elixir | lib/videoke_web/telemetry.ex | ElixirLabOrg/videoke | 85873be94f17167c505c6d1066e30e30b8acd148 | [
"MIT"
] | null | null | null | lib/videoke_web/telemetry.ex | ElixirLabOrg/videoke | 85873be94f17167c505c6d1066e30e30b8acd148 | [
"MIT"
] | null | null | null | lib/videoke_web/telemetry.ex | ElixirLabOrg/videoke | 85873be94f17167c505c6d1066e30e30b8acd148 | [
"MIT"
] | null | null | null | defmodule VideokeWeb.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. Learn ... | 32.482143 | 86 | 0.671798 |
e9f3e8603dbf48cbbce3228bab9b9e3b4c943a5b | 17,534 | ex | Elixir | lib/real_world_web/live/main_live.ex | razuf/elixir-phoenix-surface-realworld | 282bd2966012611432affc026539b81dd8bc934f | [
"MIT"
] | 17 | 2020-09-21T23:24:38.000Z | 2021-10-22T01:11:27.000Z | lib/real_world_web/live/main_live.ex | razuf/elixir-phoenix-surface-realworld | 282bd2966012611432affc026539b81dd8bc934f | [
"MIT"
] | 1 | 2020-10-13T20:43:16.000Z | 2020-10-13T20:43:16.000Z | lib/real_world_web/live/main_live.ex | razuf/elixir-phoenix-surface-realworld | 282bd2966012611432affc026539b81dd8bc934f | [
"MIT"
] | 1 | 2021-11-02T19:18:40.000Z | 2021-11-02T19:18:40.000Z | defmodule RealWorldWeb.MainLive do
use Surface.LiveView
use RealWorldWeb, :surface_view_helpers
alias RealWorldWeb.Navbar
alias RealWorldWeb.HomePage
alias RealWorldWeb.LoginPage
alias RealWorldWeb.RegisterPage
alias RealWorldWeb.ArticlePage
alias RealWorldWeb.EditorPage
alias RealWorldWeb.ProfilePag... | 28.981818 | 106 | 0.650793 |
e9f411681f744b5ba49785289252b3d129554da0 | 70 | exs | Elixir | kboard/test/test_helper.exs | MaxStrange/ArtieInfant | 1edbb171a5405d2971227f2d2d83acb523c70034 | [
"MIT"
] | 1 | 2018-04-28T16:55:05.000Z | 2018-04-28T16:55:05.000Z | kboard/test/test_helper.exs | MaxStrange/ArtieInfant | 1edbb171a5405d2971227f2d2d83acb523c70034 | [
"MIT"
] | null | null | null | kboard/test/test_helper.exs | MaxStrange/ArtieInfant | 1edbb171a5405d2971227f2d2d83acb523c70034 | [
"MIT"
] | null | null | null | ExUnit.start()
Ecto.Adapters.SQL.Sandbox.mode(Kboard.Repo, :manual)
| 14 | 52 | 0.757143 |
e9f4127e36c69b23ca6f3eebd6617d8ae57ae569 | 26,082 | ex | Elixir | lib/elixir/lib/calendar/iso.ex | edwinthinks/elixir | 20d6f3d0538cef346475ccfcc1c72a47f33f0717 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/calendar/iso.ex | edwinthinks/elixir | 20d6f3d0538cef346475ccfcc1c72a47f33f0717 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/calendar/iso.ex | edwinthinks/elixir | 20d6f3d0538cef346475ccfcc1c72a47f33f0717 | [
"Apache-2.0"
] | null | null | null | defmodule Calendar.ISO do
@moduledoc """
A calendar implementation that follows to ISO 8601.
This calendar implements the proleptic Gregorian calendar and
is therefore compatible with the calendar used in most countries
today. The proleptic means the Gregorian rules for leap years are
applied for all time,... | 29.842105 | 104 | 0.640557 |
e9f423d1a239ec49b84dde2c9efc957ddec0932e | 1,954 | exs | Elixir | test/sanbase/clickhouse/clickhouse_repo_test.exs | santiment/sanbase2 | 9ef6e2dd1e377744a6d2bba570ea6bd477a1db31 | [
"MIT"
] | 81 | 2017-11-20T01:20:22.000Z | 2022-03-05T12:04:25.000Z | test/sanbase/clickhouse/clickhouse_repo_test.exs | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | 359 | 2017-10-15T14:40:53.000Z | 2022-01-25T13:34:20.000Z | test/sanbase/clickhouse/clickhouse_repo_test.exs | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | 16 | 2017-11-19T13:57:40.000Z | 2022-02-07T08:13:02.000Z | defmodule Sanbase.Clickhouse.ClickhouseRepoTest do
use Sanbase.DataCase
import ExUnit.CaptureLog
alias Sanbase.ClickhouseRepo
test "error handling when clickhouse repo returns error" do
error_msg = "something went wrong with the connection"
Sanbase.Mock.prepare_mock2(&ClickhouseRepo.query/2, {:error,... | 33.689655 | 102 | 0.646366 |
e9f427846635b333689de262a643d56c329b1180 | 3,085 | ex | Elixir | lib/chaperon/master.ex | ideo/chaperon | 6298e96ae2b8f39a1d729b7363f4a451bc4c3a6e | [
"MIT"
] | null | null | null | lib/chaperon/master.ex | ideo/chaperon | 6298e96ae2b8f39a1d729b7363f4a451bc4c3a6e | [
"MIT"
] | null | null | null | lib/chaperon/master.ex | ideo/chaperon | 6298e96ae2b8f39a1d729b7363f4a451bc4c3a6e | [
"MIT"
] | null | null | null | defmodule Chaperon.Master do
@moduledoc """
Master process for running load tests. Initiates running a load test and awaits
results from a run. Needs to be started before used.
The Chaperon.Master process is started only once per cluster and registered
globally as `Chaperon.Master`.
"""
defstruct id: nil... | 25.92437 | 91 | 0.620097 |
e9f448c35c594f7a3fbf240e2691efc83fbd9798 | 1,015 | ex | Elixir | lib/live_dendron/tree_editor/group.ex | kuroda/live_dendron | dd21ed5c53456765ea0c50a22bdf915c0c55c92f | [
"MIT"
] | 5 | 2019-07-27T14:57:38.000Z | 2020-11-01T00:26:32.000Z | lib/live_dendron/tree_editor/group.ex | kuroda/live_dendron | dd21ed5c53456765ea0c50a22bdf915c0c55c92f | [
"MIT"
] | 6 | 2019-07-29T03:45:23.000Z | 2021-05-10T03:49:39.000Z | lib/live_dendron/tree_editor/group.ex | kuroda/live_dendron | dd21ed5c53456765ea0c50a22bdf915c0c55c92f | [
"MIT"
] | 2 | 2019-07-29T02:17:02.000Z | 2020-02-17T17:59:05.000Z | defmodule LiveDendron.TreeEditor.Group do
alias LiveDendron.Tree
alias LiveDendron.TreeEditor
defstruct name: "",
subgroups: [],
members: [],
expanded: false,
in_trash: false,
getting_destroyed: false,
changeset: nil,
uuid: nil
... | 24.756098 | 80 | 0.6 |
e9f45de544d1d8b9b349ce6ed3433825e3198e61 | 1,087 | exs | Elixir | server/priv/repo/migrations/20211202204605_update_realtime_build_prepared_statement_sql_function_for_compatibility_with_all_types.exs | profencer/realtime | b3a20e8278276a98d47c2c938abe73cfd9e69a63 | [
"Apache-2.0"
] | 1 | 2021-05-04T22:04:46.000Z | 2021-05-04T22:04:46.000Z | server/priv/repo/migrations/20211202204605_update_realtime_build_prepared_statement_sql_function_for_compatibility_with_all_types.exs | profencer/realtime | b3a20e8278276a98d47c2c938abe73cfd9e69a63 | [
"Apache-2.0"
] | null | null | null | server/priv/repo/migrations/20211202204605_update_realtime_build_prepared_statement_sql_function_for_compatibility_with_all_types.exs | profencer/realtime | b3a20e8278276a98d47c2c938abe73cfd9e69a63 | [
"Apache-2.0"
] | null | null | null | defmodule Realtime.RLS.Repo.Migrations.UpdateRealtimeBuildPreparedStatementSqlFunctionForCompatibilityWithAllTypes do
use Ecto.Migration
def change do
execute "create or replace function realtime.build_prepared_statement_sql(
prepared_statement_name text,
entity regclass,
columns realtime.wal... | 27.175 | 117 | 0.600736 |
e9f46013262adb0253a097bfc0ee76d029b76695 | 912 | exs | Elixir | config/config.exs | diegoangel/todo-app-elixir | 7dc8d1734a6435f78a243dc621766f523177eea0 | [
"Apache-2.0"
] | null | null | null | config/config.exs | diegoangel/todo-app-elixir | 7dc8d1734a6435f78a243dc621766f523177eea0 | [
"Apache-2.0"
] | null | null | null | config/config.exs | diegoangel/todo-app-elixir | 7dc8d1734a6435f78a243dc621766f523177eea0 | [
"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 :todo,
ecto_repos: [Todo.Repo]
# Config... | 32.571429 | 86 | 0.756579 |
e9f46de9f57f69a18bf8341f2b64858e107187b4 | 375 | ex | Elixir | lib/renderer/renderer.ex | Tmw/bintreeviz | 5a77d2a16a2a86160c70d47cfd9f696196f2f1bf | [
"MIT"
] | null | null | null | lib/renderer/renderer.ex | Tmw/bintreeviz | 5a77d2a16a2a86160c70d47cfd9f696196f2f1bf | [
"MIT"
] | null | null | null | lib/renderer/renderer.ex | Tmw/bintreeviz | 5a77d2a16a2a86160c70d47cfd9f696196f2f1bf | [
"MIT"
] | null | null | null | defmodule Bintreeviz.Renderer do
@moduledoc """
Bintreeviz.Renderer describes the behaviour for implementing a renderer. Out of the box Bintreeviz will provide a ASCII renderer which will turn the provided graph into a stringified representation using configurable box drawing characters.
"""
@callback render(No... | 53.571429 | 242 | 0.789333 |
e9f479dfd4b5c6eda32da45a215d94d30167b110 | 358 | exs | Elixir | mix.exs | samullen/metrix | 8c5335c63db811166c46da273485df7f19e27e51 | [
"Apache-2.0"
] | 1 | 2020-07-26T14:38:10.000Z | 2020-07-26T14:38:10.000Z | mix.exs | samullen/metrix | 8c5335c63db811166c46da273485df7f19e27e51 | [
"Apache-2.0"
] | null | null | null | mix.exs | samullen/metrix | 8c5335c63db811166c46da273485df7f19e27e51 | [
"Apache-2.0"
] | null | null | null | defmodule Metrix.MixProject do
use Mix.Project
def project do
[
app: :metrix,
version: "0.2.0",
elixir: "~> 1.9",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
def application do
[
extra_applications: [:logger]
]
end
defp deps do
[
{... | 13.769231 | 42 | 0.51676 |
e9f48b4df073beb3065e66ad3c186d32c5ff7853 | 136 | exs | Elixir | machine_translation/MorpHIN/Learned/Resources/Set1/TrainingInstances/51.exs | AdityaPrasadMishra/NLP--Project-Group-16 | fb62cc6a1db4a494058171f11c14a2be3933a9a1 | [
"MIT"
] | null | null | null | machine_translation/MorpHIN/Learned/Resources/Set1/TrainingInstances/51.exs | AdityaPrasadMishra/NLP--Project-Group-16 | fb62cc6a1db4a494058171f11c14a2be3933a9a1 | [
"MIT"
] | null | null | null | machine_translation/MorpHIN/Learned/Resources/Set1/TrainingInstances/51.exs | AdityaPrasadMishra/NLP--Project-Group-16 | fb62cc6a1db4a494058171f11c14a2be3933a9a1 | [
"MIT"
] | null | null | null | **EXAMPLE FILE**
adverb conj noun adjective cm;
demonstrative noun noun noun neg;
cm cm pnoun noun adverb;
conj pn noun cm adverb;
| 19.428571 | 34 | 0.742647 |
e9f491c4666f125a2f30df5e46111478087b6769 | 2,947 | exs | Elixir | test/timer_based_throttler_test.exs | frojasg/throttler | 8e143f64e75a3f1d65f6b8615a2e18d2982ca4f5 | [
"Apache-2.0"
] | null | null | null | test/timer_based_throttler_test.exs | frojasg/throttler | 8e143f64e75a3f1d65f6b8615a2e18d2982ca4f5 | [
"Apache-2.0"
] | null | null | null | test/timer_based_throttler_test.exs | frojasg/throttler | 8e143f64e75a3f1d65f6b8615a2e18d2982ca4f5 | [
"Apache-2.0"
] | null | null | null | defmodule TimerBasedThrottlerTest do
use ExUnit.Case
test "keep messages until target is set" do
{:ok, thr} = TimerBasedThrottler.start_link(messages: 3, period: 3*1000)
{:ok, echo} = Echo.start(self)
TimerBasedThrottler.enqueue(thr, {:echo, :one})
TimerBasedThrottler.enqueue(thr, {:echo, :two})
... | 33.11236 | 76 | 0.697998 |
e9f4a8719665e1f4d7362876443d244c8839e2b8 | 3,281 | ex | Elixir | lib/codes/codes_i75.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_i75.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_i75.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | defmodule IcdCode.ICDCode.Codes_I75 do
alias IcdCode.ICDCode
def _I75011 do
%ICDCode{full_code: "I75011",
category_code: "I75",
short_code: "011",
full_name: "Atheroembolism of right upper extremity",
short_name: "Atheroembolism of right upper extremity",
categor... | 33.824742 | 72 | 0.633039 |
e9f4b2caba6c0ce7aef13fbf4a332b4f16d7cba8 | 345 | exs | Elixir | backend/test/test_helper.exs | qcam/commies | 242a2cc87409cfe1971e6fbe7ab0bf7cc110ca4d | [
"Apache-2.0"
] | 4 | 2018-10-30T20:37:10.000Z | 2020-01-13T21:51:43.000Z | backend/test/test_helper.exs | qcam/commies | 242a2cc87409cfe1971e6fbe7ab0bf7cc110ca4d | [
"Apache-2.0"
] | 1 | 2018-10-31T23:11:35.000Z | 2018-11-01T07:46:48.000Z | backend/test/test_helper.exs | qcam/commies | 242a2cc87409cfe1971e6fbe7ab0bf7cc110ca4d | [
"Apache-2.0"
] | 1 | 2018-10-31T02:14:27.000Z | 2018-10-31T02:14:27.000Z | Application.load(:commies)
:commies
|> Application.spec(:applications)
|> Enum.each(&Application.ensure_all_started/1)
:commies
|> Application.fetch_env!(:ecto_repos)
|> Enum.each(&Mix.Ecto.ensure_started(&1, []))
Ecto.Adapters.SQL.Sandbox.mode(Commies.Repo, :manual)
# {:ok, _} = Application.ensure_all_started(:ex_... | 21.5625 | 56 | 0.744928 |
e9f4b468bb8ce84f38a2df81d7b398b43ab1ea96 | 9,849 | ex | Elixir | lib/authority/ecto/changeset.ex | infinitered/authority_ecto | 3d076b04c4ad4f5d5b89df990f91b45d1a45da19 | [
"MIT"
] | 11 | 2018-01-17T09:31:26.000Z | 2019-03-11T03:20:50.000Z | lib/authority/ecto/changeset.ex | infinitered/authority_ecto | 3d076b04c4ad4f5d5b89df990f91b45d1a45da19 | [
"MIT"
] | 24 | 2018-01-17T00:13:38.000Z | 2018-11-12T09:38:09.000Z | lib/authority/ecto/changeset.ex | infinitered/authority_ecto | 3d076b04c4ad4f5d5b89df990f91b45d1a45da19 | [
"MIT"
] | 3 | 2018-01-17T03:23:17.000Z | 2019-03-11T03:20:47.000Z | defmodule Authority.Ecto.Changeset do
@moduledoc """
Convenient authentication-related functions for `Ecto.Changeset`s.
"""
import Ecto.Changeset
alias Authority.Ecto.Password
@type field :: atom
@doc """
Validate that a password field has a confirmation and complies with [NIST's Digital
Identity ... | 34.317073 | 159 | 0.666565 |
e9f4c8cf4ec8b853bb0b8d2f9e83ff74ebd035bd | 1,879 | ex | Elixir | clients/health_care/lib/google_api/health_care/v1beta1/model/google_cloud_healthcare_v1beta1_consent_gcs_destination.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/health_care/lib/google_api/health_care/v1beta1/model/google_cloud_healthcare_v1beta1_consent_gcs_destination.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/health_care/lib/google_api/health_care/v1beta1/model/google_cloud_healthcare_v1beta1_consent_gcs_destination.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... | 36.134615 | 381 | 0.758914 |
e9f4cf2a08befe5b0b2af9d02e6296a72ca1083d | 713 | ex | Elixir | vendor/tree-sitter-elixir/test/tags/module.ex | Mu-L/difftastic | f91357b72936c65a56d74f1221bec3878a996575 | [
"MIT"
] | 125 | 2021-09-30T10:55:46.000Z | 2022-03-16T10:49:32.000Z | vendor/tree-sitter-elixir/test/tags/module.ex | Mu-L/difftastic | f91357b72936c65a56d74f1221bec3878a996575 | [
"MIT"
] | 21 | 2021-10-01T22:47:58.000Z | 2022-03-25T19:43:13.000Z | vendor/tree-sitter-elixir/test/tags/module.ex | Mu-L/difftastic | f91357b72936c65a56d74f1221bec3878a996575 | [
"MIT"
] | 9 | 2021-10-13T13:06:11.000Z | 2022-02-12T17:16:06.000Z | defmodule Foo.Bar.Baz do
# ^ definition.module
# ^ definition.module
# ^ definition.module
def init(arg) do
# ^ definition.function
state =
arg
|> map(&(&1 * 2))
# ^ reference.call
|> map(&(&1 + 1))
# ^ reference.call
{:ok, arg}
... | 22.28125 | 55 | 0.474053 |
e9f4db46e1ed59b000ae36d673b51c83231f24f8 | 1,742 | ex | Elixir | lib/tesseract_ocr/utils.ex | oskar1233/tesseract-ocr-elixir | 45c59a2a8e2ad0759e6f70e652bdd60eb0776549 | [
"MIT"
] | 27 | 2018-05-07T13:17:36.000Z | 2022-03-28T19:42:29.000Z | lib/tesseract_ocr/utils.ex | oskar1233/tesseract-ocr-elixir | 45c59a2a8e2ad0759e6f70e652bdd60eb0776549 | [
"MIT"
] | 2 | 2020-02-21T10:27:28.000Z | 2022-02-22T11:08:03.000Z | lib/tesseract_ocr/utils.ex | oskar1233/tesseract-ocr-elixir | 45c59a2a8e2ad0759e6f70e652bdd60eb0776549 | [
"MIT"
] | 8 | 2019-03-08T07:57:23.000Z | 2022-02-22T09:53:39.000Z | defmodule TesseractOcr.Utils do
@moduledoc """
Utilities to run `tesseract-ocr` binary.
"""
@doc """
This function executes the tesseract on system and return the output.
"""
def command(path, output, options) do
System.cmd("tesseract", command_options(path, output, options))
end
@doc """
This... | 25.246377 | 106 | 0.631458 |
e9f4ddada3c742cb5aea3677bab3a03cc066b1a7 | 317 | ex | Elixir | hangman/dictionary/lib/runtime/application.ex | neal-bpm/TinyHangman | c2b9bcfe9b3c6d918e83271dc943f09706693b4e | [
"MIT"
] | null | null | null | hangman/dictionary/lib/runtime/application.ex | neal-bpm/TinyHangman | c2b9bcfe9b3c6d918e83271dc943f09706693b4e | [
"MIT"
] | null | null | null | hangman/dictionary/lib/runtime/application.ex | neal-bpm/TinyHangman | c2b9bcfe9b3c6d918e83271dc943f09706693b4e | [
"MIT"
] | null | null | null | defmodule Dictionary.Runtime.Application do
use Application
def start(_start_type, _start_args) do
children = [
{Dictionary.Runtime.Server, []}
]
options = [
name: Dictionary.Runtime.Supervisor,
strategy: :one_for_one,
]
Supervisor.start_link(children, options)
end
end
| 18.647059 | 44 | 0.675079 |
e9f4ef2bc72cde181d17c490dc0f6b3d91c51ea3 | 753 | exs | Elixir | test/json_schema_test_suite/draft7/max_length_test.exs | hrzndhrn/json_xema | 955eab7b0919d144b38364164d90275201c89474 | [
"MIT"
] | 54 | 2019-03-10T19:51:07.000Z | 2021-12-23T07:31:09.000Z | test/json_schema_test_suite/draft7/max_length_test.exs | hrzndhrn/json_xema | 955eab7b0919d144b38364164d90275201c89474 | [
"MIT"
] | 36 | 2018-05-20T09:13:20.000Z | 2021-03-14T15:22:03.000Z | test/json_schema_test_suite/draft7/max_length_test.exs | hrzndhrn/json_xema | 955eab7b0919d144b38364164d90275201c89474 | [
"MIT"
] | 3 | 2019-04-12T09:08:51.000Z | 2019-12-04T01:23:56.000Z | defmodule JsonSchemaTestSuite.Draft7.MaxLengthTest do
use ExUnit.Case
import JsonXema, only: [valid?: 2]
describe ~s|maxLength validation| do
setup do
%{schema: JsonXema.new(%{"maxLength" => 2})}
end
test ~s|shorter is valid|, %{schema: schema} do
assert valid?(schema, "f")
end
... | 23.53125 | 87 | 0.628154 |
e9f5171c15a5925e6b7e8b1b42d6a6e8a04e1716 | 3,301 | ex | Elixir | clients/sheets/lib/google_api/sheets/v4/model/batch_update_values_by_data_filter_request.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/sheets/lib/google_api/sheets/v4/model/batch_update_values_by_data_filter_request.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/sheets/lib/google_api/sheets/v4/model/batch_update_values_by_data_filter_request.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 45.847222 | 170 | 0.740079 |
e9f574d738b122cc0e7a25bb7acf631e3548bee9 | 72 | exs | Elixir | config/test.exs | kennyballou/exdatadog | d3829329dbc41be03f304b8a0a0939e80cdf383c | [
"Apache-2.0"
] | 1 | 2018-05-10T06:34:53.000Z | 2018-05-10T06:34:53.000Z | config/test.exs | kennyballou/exdatadog | d3829329dbc41be03f304b8a0a0939e80cdf383c | [
"Apache-2.0"
] | null | null | null | config/test.exs | kennyballou/exdatadog | d3829329dbc41be03f304b8a0a0939e80cdf383c | [
"Apache-2.0"
] | null | null | null | use Mix.Config
config :exdatadog,
api_key: "1234",
app_key: "abcd"
| 12 | 18 | 0.680556 |
e9f58af5a91d89173ef1bdce4bdc265c16882149 | 4,104 | ex | Elixir | lib/janus_client/plugin/audio_bridge.ex | anujmiddha/janus-elixir-client | 206b0169144f0fb4d60e3a09ed1e5f5394a03e61 | [
"MIT"
] | null | null | null | lib/janus_client/plugin/audio_bridge.ex | anujmiddha/janus-elixir-client | 206b0169144f0fb4d60e3a09ed1e5f5394a03e61 | [
"MIT"
] | null | null | null | lib/janus_client/plugin/audio_bridge.ex | anujmiddha/janus-elixir-client | 206b0169144f0fb4d60e3a09ed1e5f5394a03e61 | [
"MIT"
] | null | null | null | defmodule JanusClient.Plugin.AudioBridge do
@moduledoc """
Janus AudioBridge Plugin utilities
"""
@type t :: %JanusClient.Plugin.AudioBridge{
server_url: String.t() | nil,
client: JanusClient.t() | nil,
handle_id: integer() | nil
}
defstruct server_url: nil,
client: nil,
handle_id: nil... | 36.642857 | 162 | 0.609649 |
e9f59ecf7e9c515163083c96b6f39a9df7232890 | 3,825 | ex | Elixir | lib/phoenix/live_dashboard/pages/metrics_page.ex | c4710n/phoenix_live_dashboard | 2435a3195ddf2033bc17c92aaff053f41840623d | [
"MIT"
] | null | null | null | lib/phoenix/live_dashboard/pages/metrics_page.ex | c4710n/phoenix_live_dashboard | 2435a3195ddf2033bc17c92aaff053f41840623d | [
"MIT"
] | null | null | null | lib/phoenix/live_dashboard/pages/metrics_page.ex | c4710n/phoenix_live_dashboard | 2435a3195ddf2033bc17c92aaff053f41840623d | [
"MIT"
] | null | null | null | defmodule Phoenix.LiveDashboard.MetricsPage do
@moduledoc false
use Phoenix.LiveDashboard.PageBuilder, refresher?: false
alias Phoenix.LiveDashboard.ChartComponent
@menu_text "Metrics"
@impl true
def mount(params, %{metrics: {mod, fun}, metrics_history: history}, socket) do
all_metrics = apply(mod, f... | 28.333333 | 89 | 0.64183 |
e9f5c5c54a3e7f674e4e77ed2e518ad960ffb677 | 9,226 | exs | Elixir | test/ecto/schema_test.exs | thiagoarrais/ecto | 93d7595beb7f407775c4918d19cad370b0bcd498 | [
"Apache-2.0"
] | null | null | null | test/ecto/schema_test.exs | thiagoarrais/ecto | 93d7595beb7f407775c4918d19cad370b0bcd498 | [
"Apache-2.0"
] | null | null | null | test/ecto/schema_test.exs | thiagoarrais/ecto | 93d7595beb7f407775c4918d19cad370b0bcd498 | [
"Apache-2.0"
] | null | null | null | defmodule Ecto.SchemaTest do
use ExUnit.Case, async: true
defmodule MyModel do
use Ecto.Model
schema "mymodel" do
field :name, :string, default: "eric"
field :email, :string, uniq: true
field :temp, :any, default: "temp", virtual: true
field :array, {:array, :string}
belong... | 30.959732 | 108 | 0.650119 |
e9f5d81e15a72f5d253a5fcf15239996cb96609a | 521 | ex | Elixir | clients/elixir/generated/lib/swaggy_jenkins/model/empty_change_log_set.ex | PankTrue/swaggy-jenkins | aca35a7cca6e1fcc08bd399e05148942ac2f514b | [
"MIT"
] | 23 | 2017-08-01T12:25:26.000Z | 2022-01-25T03:44:11.000Z | clients/elixir/generated/lib/swaggy_jenkins/model/empty_change_log_set.ex | PankTrue/swaggy-jenkins | aca35a7cca6e1fcc08bd399e05148942ac2f514b | [
"MIT"
] | 35 | 2017-06-14T03:28:15.000Z | 2022-02-14T10:25:54.000Z | clients/elixir/generated/lib/swaggy_jenkins/model/empty_change_log_set.ex | PankTrue/swaggy-jenkins | aca35a7cca6e1fcc08bd399e05148942ac2f514b | [
"MIT"
] | 11 | 2017-08-31T19:00:20.000Z | 2021-12-19T12:04:12.000Z | # NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
# https://openapi-generator.tech
# Do not edit the class manually.
defmodule SwaggyJenkins.Model.EmptyChangeLogSet do
@moduledoc """
"""
@derive [Poison.Encoder]
defstruct [
:"_class",
:"kind"
]
@type t... | 18.607143 | 91 | 0.673704 |
e9f5f9896defd057f8fbfab2209b5b3b81c78561 | 696 | ex | Elixir | lib/tune/gettext.ex | pedromtavares/tune | b95bdb5038ccb8c7ae262ef5d0803e53565e192f | [
"MIT"
] | 206 | 2020-08-23T17:50:03.000Z | 2022-03-28T04:39:01.000Z | lib/tune/gettext.ex | pedromtavares/tune | b95bdb5038ccb8c7ae262ef5d0803e53565e192f | [
"MIT"
] | 112 | 2020-08-21T08:26:38.000Z | 2022-03-31T06:11:06.000Z | lib/tune/gettext.ex | pedromtavares/tune | b95bdb5038ccb8c7ae262ef5d0803e53565e192f | [
"MIT"
] | 15 | 2020-08-25T02:30:23.000Z | 2021-12-16T14:19:35.000Z | defmodule Tune.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 Tune.Gettext
# Simple translation
gettext("Here is the string to... | 27.84 | 72 | 0.670977 |
e9f614ccf4daa114063168e8cdd246da63c86f5c | 71 | exs | Elixir | apps/cake_api/test/cake.api_test.exs | ScrimpyCat/cake | e1c0dd720a2cb583bebb985fb7821f98234dc9d8 | [
"BSD-2-Clause"
] | 2 | 2017-05-23T04:53:26.000Z | 2017-05-28T11:53:18.000Z | apps/cake_api/test/cake.api_test.exs | ScrimpyCat/cake | e1c0dd720a2cb583bebb985fb7821f98234dc9d8 | [
"BSD-2-Clause"
] | null | null | null | apps/cake_api/test/cake.api_test.exs | ScrimpyCat/cake | e1c0dd720a2cb583bebb985fb7821f98234dc9d8 | [
"BSD-2-Clause"
] | 1 | 2019-10-24T11:56:09.000Z | 2019-10-24T11:56:09.000Z | defmodule Cake.APITest do
use ExUnit.Case
doctest Cake.API
end
| 14.2 | 25 | 0.732394 |
e9f629191b5c44cfefca9b4acc250a2f2b12dfcb | 165 | ex | Elixir | components/notifications-service/server/lib/formatters/behavior.ex | mmci2468/automate | dbe8bfaae91169861f7ea1d2a66cff5c7ca83ddf | [
"Apache-2.0"
] | 191 | 2019-04-16T15:04:53.000Z | 2022-03-21T14:10:44.000Z | components/notifications-service/server/lib/formatters/behavior.ex | mmci2468/automate | dbe8bfaae91169861f7ea1d2a66cff5c7ca83ddf | [
"Apache-2.0"
] | 4,882 | 2019-04-16T16:16:01.000Z | 2022-03-31T15:39:35.000Z | components/notifications-service/server/lib/formatters/behavior.ex | mmci2468/automate | dbe8bfaae91169861f7ea1d2a66cff5c7ca83ddf | [
"Apache-2.0"
] | 114 | 2019-04-16T15:21:27.000Z | 2022-03-26T09:50:08.000Z | defmodule Notifications.Formatters.Behavior do
@moduledoc "Behavior definition for a webhook formatter."
@callback format(Notification.NotifyRequest) :: map
end
| 33 | 59 | 0.812121 |
e9f6565c164de2e303b4d9e0b2174bd3427ae3cf | 4,398 | ex | Elixir | clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/service_status.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/service_status.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/service_status.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 ... | 47.804348 | 168 | 0.722601 |
e9f68954593916ad04401151a9daea75c17a8a26 | 700 | ex | Elixir | web/gettext.ex | dogweather/ketobit | cd757648e5fee357b82716a2fb2d4542131312e7 | [
"MIT"
] | 6 | 2016-07-05T22:57:05.000Z | 2019-04-05T01:47:28.000Z | web/gettext.ex | dogweather/ketobit | cd757648e5fee357b82716a2fb2d4542131312e7 | [
"MIT"
] | null | null | null | web/gettext.ex | dogweather/ketobit | cd757648e5fee357b82716a2fb2d4542131312e7 | [
"MIT"
] | null | null | null | defmodule Ketobit.Gettext do
@moduledoc """
A module providing Internationalization with a gettext-based API.
By using [Gettext](http://hexdocs.pm/gettext),
your module gains a set of macros for translations, for example:
import Ketobit.Gettext
# Simple translation
gettext "Here is the stri... | 28 | 71 | 0.677143 |
e9f6a43a8ffa0fa78f262e5afe2c21f616176cad | 57 | ex | Elixir | lib/votr_web/views/layout_view.ex | wjanssens/votr | 4fdd2a6e5ac9178a7fa90578f75a248e2bf161b6 | [
"MIT"
] | 1 | 2018-04-27T09:43:27.000Z | 2018-04-27T09:43:27.000Z | lib/votr_web/views/layout_view.ex | wjanssens/votr | 4fdd2a6e5ac9178a7fa90578f75a248e2bf161b6 | [
"MIT"
] | null | null | null | lib/votr_web/views/layout_view.ex | wjanssens/votr | 4fdd2a6e5ac9178a7fa90578f75a248e2bf161b6 | [
"MIT"
] | null | null | null | defmodule VotrWeb.LayoutView do
use VotrWeb, :view
end
| 14.25 | 31 | 0.789474 |
e9f6bb8116e3f5d1ca5b6d001b29278fdf898bd2 | 18,076 | ex | Elixir | clients/billing_budgets/lib/google_api/billing_budgets/v1beta1/api/billing_accounts.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-10-01T09:20:41.000Z | 2021-10-01T09:20:41.000Z | clients/billing_budgets/lib/google_api/billing_budgets/v1beta1/api/billing_accounts.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/billing_budgets/lib/google_api/billing_budgets/v1beta1/api/billing_accounts.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.742574 | 282 | 0.628458 |
e9f6fee4d190dc2c8273e816945e3c418ebbf2b6 | 6,444 | exs | Elixir | test/margin_test.exs | ihorkatkov/binance.ex | 33b014e3310ce3374b9b9f2ce3cd46314f22f446 | [
"MIT"
] | null | null | null | test/margin_test.exs | ihorkatkov/binance.ex | 33b014e3310ce3374b9b9f2ce3cd46314f22f446 | [
"MIT"
] | null | null | null | test/margin_test.exs | ihorkatkov/binance.ex | 33b014e3310ce3374b9b9f2ce3cd46314f22f446 | [
"MIT"
] | null | null | null | defmodule MarginTest do
use ExUnit.Case
use ExVCR.Mock, adapter: ExVCR.Adapter.Hackney
doctest Binance
setup_all do
HTTPoison.start()
end
describe ".create_listen_key" do
test "returns a listen key which could be used to subscrbe to a User Data stream" do
use_cassette "margin/create_listen_k... | 34.645161 | 100 | 0.562694 |
e9f745adab4602d67eabe299a5a30016aafe5adc | 3,664 | ex | Elixir | apps/alphavantage/lib/alphavantage_cli.ex | curoles/gex | fe5d4ecc76302b6e7b0cc44244d7fa7af90eb71a | [
"MIT"
] | null | null | null | apps/alphavantage/lib/alphavantage_cli.ex | curoles/gex | fe5d4ecc76302b6e7b0cc44244d7fa7af90eb71a | [
"MIT"
] | null | null | null | apps/alphavantage/lib/alphavantage_cli.ex | curoles/gex | fe5d4ecc76302b6e7b0cc44244d7fa7af90eb71a | [
"MIT"
] | null | null | null | defmodule Alphavantage.CLI do
def main(args \\ []) do
args
|> show_banner
|> parse_args
|> process
end
defp show_banner(args) do
#IO.puts "Test API https://www.alphavantage.co"
args
end
# https://hexdocs.pm/elixir/OptionParser.html
#
defp parse_args(args) do
# Options are de... | 27.548872 | 97 | 0.588155 |
e9f74db78293f89fc97727796b0e72861ed281cb | 594 | ex | Elixir | lib/weather_data/application.ex | jeroenbourgois/weather_data | 23866d3999634f8db2be75d673152f1027edfb97 | [
"MIT"
] | null | null | null | lib/weather_data/application.ex | jeroenbourgois/weather_data | 23866d3999634f8db2be75d673152f1027edfb97 | [
"MIT"
] | null | null | null | lib/weather_data/application.ex | jeroenbourgois/weather_data | 23866d3999634f8db2be75d673152f1027edfb97 | [
"MIT"
] | null | null | null | defmodule WeatherData.Application do
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
use Application
@impl true
def start(_type, _args) do
children = [
WeatherData.Repo,
{Plug.Cowboy, scheme: :http, plug: WeatherData.Endpoint, p... | 28.285714 | 112 | 0.717172 |
e9f75d0e4ecf6820dda75a0b730b8d2d87ff852f | 305 | exs | Elixir | test/stellar_test.exs | turbo-play/elixir-stellar-sdk | ed0711d69493ed2723a1197120667a7fa2c97f9f | [
"MIT"
] | 1 | 2019-12-19T14:12:20.000Z | 2019-12-19T14:12:20.000Z | test/stellar_test.exs | turbo-play/elixir-stellar-sdk | ed0711d69493ed2723a1197120667a7fa2c97f9f | [
"MIT"
] | null | null | null | test/stellar_test.exs | turbo-play/elixir-stellar-sdk | ed0711d69493ed2723a1197120667a7fa2c97f9f | [
"MIT"
] | 4 | 2019-10-09T20:58:35.000Z | 2021-12-06T23:00:46.000Z | defmodule StellarTest do
use ExUnit.Case, async: true
doctest Stellar
test "shows current network" do
Application.put_env(:stellar, :network, :test)
assert Stellar.current_network() |> Stellar.Network.Base.network_passphrase() =~
"Test SDF Network ; September 2015"
end
end
| 25.416667 | 84 | 0.708197 |
e9f781ee247e16cf757a44f4671bffc2fb32c4de | 725 | exs | Elixir | mix.exs | mikowitz/maester | bdb18f3828a9a780824dab1423204221d2b38f43 | [
"MIT"
] | 5 | 2016-06-06T08:27:22.000Z | 2016-07-09T07:05:12.000Z | mix.exs | mikowitz/maester | bdb18f3828a9a780824dab1423204221d2b38f43 | [
"MIT"
] | 3 | 2016-10-01T22:33:01.000Z | 2017-01-05T15:27:41.000Z | mix.exs | mikowitz/maester | bdb18f3828a9a780824dab1423204221d2b38f43 | [
"MIT"
] | 1 | 2017-01-08T16:56:27.000Z | 2017-01-08T16:56:27.000Z | defmodule Maester.Mixfile do
use Mix.Project
def project do
[
app: :maester,
version: "1.0.0",
elixir: "~> 1.3",
description: description,
package: package,
deps: deps
]
end
def application do
[applications: [:logger, :httpoison]]
end
defp deps do
[
... | 17.261905 | 65 | 0.521379 |
e9f782350875997ad94074b431fa88691ad97c71 | 1,139 | exs | Elixir | config/config.exs | valnoel/ex_imdb_sniffer | 289e41dc18ebac1e1b75f693fd5c4f960f2c064a | [
"MIT"
] | null | null | null | config/config.exs | valnoel/ex_imdb_sniffer | 289e41dc18ebac1e1b75f693fd5c4f960f2c064a | [
"MIT"
] | null | null | null | config/config.exs | valnoel/ex_imdb_sniffer | 289e41dc18ebac1e1b75f693fd5c4f960f2c064a | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on this project, this
# file won't be loaded nor affect the paren... | 36.741935 | 73 | 0.755048 |
e9f785e2cb354ae018014d41183562f8c32439d4 | 398 | ex | Elixir | lib/iris_web/plugs/authedicate_admin.ex | JosKar/iris_server | 8faa370f506a003ae3c06b23d6c827bd746368f3 | [
"MIT"
] | 17 | 2017-07-10T09:01:40.000Z | 2022-03-08T23:47:27.000Z | lib/iris_web/plugs/authedicate_admin.ex | 7-iris/iris_server | 8faa370f506a003ae3c06b23d6c827bd746368f3 | [
"MIT"
] | 7 | 2017-07-09T16:22:13.000Z | 2018-06-09T21:34:03.000Z | lib/iris_web/plugs/authedicate_admin.ex | JosKar/iris_server | 8faa370f506a003ae3c06b23d6c827bd746368f3 | [
"MIT"
] | null | null | null | defmodule Iris.Plugs.AuthedicateAdmin do
import Plug.Conn
alias Iris.User
def init(default), do: default
def call(conn, _default) do
user = get_session(conn, :current_user)
cond do
user != nil && User.is_admin?(user) -> conn
user != nil -> conn |> send_resp(403, "Forbidden") |> halt()
... | 23.411765 | 66 | 0.633166 |
e9f78afe540bf470a7a9fc5fa3233974f578ad03 | 18,772 | ex | Elixir | lib/elixir/lib/io/ansi/docs.ex | BlakeWilliams/elixir | f77cc2657cf981fdf819915f1ee15e69c3cd91ad | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/io/ansi/docs.ex | BlakeWilliams/elixir | f77cc2657cf981fdf819915f1ee15e69c3cd91ad | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/io/ansi/docs.ex | BlakeWilliams/elixir | f77cc2657cf981fdf819915f1ee15e69c3cd91ad | [
"Apache-2.0"
] | null | null | null | defmodule IO.ANSI.Docs do
@moduledoc false
@bullets [?*, ?-, ?+]
@spaces [" ", "\n", "\t"]
@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` ... | 30.375405 | 97 | 0.62476 |
e9f78e99e9ce7f586f566e866fb681d1ff4f36ef | 2,765 | exs | Elixir | test/parallel_stream/mapper_test.exs | davemenninger/parallel_stream | 939e4c2e507aaef642079569ea8ab67c2315c138 | [
"MIT"
] | null | null | null | test/parallel_stream/mapper_test.exs | davemenninger/parallel_stream | 939e4c2e507aaef642079569ea8ab67c2315c138 | [
"MIT"
] | null | null | null | test/parallel_stream/mapper_test.exs | davemenninger/parallel_stream | 939e4c2e507aaef642079569ea8ab67c2315c138 | [
"MIT"
] | null | null | null | defmodule ParallelStream.MapperTest do
use ExUnit.Case, async: true
@moduletag timeout: 1000
alias ParallelStream.Mapper
doctest Mapper
test ".map maps a stream of variable length" do
result =
1..5
|> ParallelStream.map(&Integer.to_string/1)
|> Enum.into([])
assert result == ~w(1 ... | 22.298387 | 94 | 0.56528 |
e9f79addb0cffb397474512b3f881e1b62ffb3b3 | 1,206 | exs | Elixir | mix.exs | kim-company/ueberauth_apple | 878bf2cdb79ebcdefbe345775b0729026f3e03e5 | [
"MIT"
] | null | null | null | mix.exs | kim-company/ueberauth_apple | 878bf2cdb79ebcdefbe345775b0729026f3e03e5 | [
"MIT"
] | null | null | null | mix.exs | kim-company/ueberauth_apple | 878bf2cdb79ebcdefbe345775b0729026f3e03e5 | [
"MIT"
] | 1 | 2021-12-23T15:17:49.000Z | 2021-12-23T15:17:49.000Z | defmodule UeberauthApple.Mixfile do
use Mix.Project
@version "0.5.0"
@url "https://github.com/loopsocial/ueberauth_apple"
def project do
[
app: :ueberauth_apple,
version: @version,
name: "Ueberauth Apple Strategy",
package: package(),
elixir: "~> 1.6",
build_embedded: M... | 21.157895 | 56 | 0.539801 |
e9f7a9d24ada16894649c7b5c86eb40b344e9c10 | 754 | ex | Elixir | lib/stellar/base/account.ex | turbo-play/elixir-stellar-sdk | ed0711d69493ed2723a1197120667a7fa2c97f9f | [
"MIT"
] | 1 | 2019-12-19T14:12:20.000Z | 2019-12-19T14:12:20.000Z | lib/stellar/base/account.ex | turbo-play/elixir-stellar-sdk | ed0711d69493ed2723a1197120667a7fa2c97f9f | [
"MIT"
] | null | null | null | lib/stellar/base/account.ex | turbo-play/elixir-stellar-sdk | ed0711d69493ed2723a1197120667a7fa2c97f9f | [
"MIT"
] | 4 | 2019-10-09T20:58:35.000Z | 2021-12-06T23:00:46.000Z | defmodule Stellar.Base.Account do
# https://github.com/stellar/js-stellar-base/blob/master/src/account.js
alias Stellar.Base.StrKey
defstruct _accountId: nil, sequence: nil
def new(_, sequence) when not is_integer(sequence),
do: {:error, "sequence must be of type integer"}
def new(accountId, sequence) ... | 22.176471 | 73 | 0.677719 |
e9f7c2c9ad69af567ec2f02d96f8f980772fc4f5 | 188 | exs | Elixir | peep_blog_api/test/controllers/page_controller_test.exs | ultimatemonty/embloginator | b1b25374d56899e054e6df73a3841d388d095d83 | [
"MIT"
] | null | null | null | peep_blog_api/test/controllers/page_controller_test.exs | ultimatemonty/embloginator | b1b25374d56899e054e6df73a3841d388d095d83 | [
"MIT"
] | null | null | null | peep_blog_api/test/controllers/page_controller_test.exs | ultimatemonty/embloginator | b1b25374d56899e054e6df73a3841d388d095d83 | [
"MIT"
] | null | null | null | defmodule PeepBlogApi.PageControllerTest do
use PeepBlogApi.ConnCase
test "GET /" do
conn = get conn(), "/"
assert html_response(conn, 200) =~ "Welcome to Phoenix!"
end
end
| 20.888889 | 60 | 0.691489 |
e9f7da65ecb170765530816c82307cdd29ab31fc | 4,199 | ex | Elixir | clients/double_click_search/lib/google_api/double_click_search/v2/api/saved_columns.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-10-01T09:20:41.000Z | 2021-10-01T09:20:41.000Z | clients/double_click_search/lib/google_api/double_click_search/v2/api/saved_columns.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/double_click_search/lib/google_api/double_click_search/v2/api/saved_columns.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... | 39.990476 | 196 | 0.636818 |
e9f82088cc203df4bd92479e306c78c8ee618be2 | 107 | ex | Elixir | src/alias.ex | myyrakle/Elixir-Example | 0b7fcb11a6bea25e7cca8b50f14ae577a0c8c705 | [
"MIT"
] | null | null | null | src/alias.ex | myyrakle/Elixir-Example | 0b7fcb11a6bea25e7cca8b50f14ae577a0c8c705 | [
"MIT"
] | null | null | null | src/alias.ex | myyrakle/Elixir-Example | 0b7fcb11a6bea25e7cca8b50f14ae577a0c8c705 | [
"MIT"
] | null | null | null | defmodule Test do
def test do
IO.puts "붐"
end
end
alias Test, as: Foo
Test.test
Foo.test
| 9.727273 | 19 | 0.616822 |
e9f8478068c9edb54662d153fa8b76f86d61b2cf | 7,599 | exs | Elixir | priv/templates/brando.install/repo/seeds.exs | univers-agency/brando | 69c3c52498a3f64518da3522cd9f27294a52cc68 | [
"Apache-2.0"
] | 1 | 2020-04-26T09:53:02.000Z | 2020-04-26T09:53:02.000Z | priv/templates/brando.install/repo/seeds.exs | univers-agency/brando | 69c3c52498a3f64518da3522cd9f27294a52cc68 | [
"Apache-2.0"
] | 198 | 2019-08-20T16:16:07.000Z | 2020-07-03T15:42:07.000Z | priv/templates/brando.install/repo/seeds.exs | univers-agency/brando | 69c3c52498a3f64518da3522cd9f27294a52cc68 | [
"Apache-2.0"
] | null | null | null | # 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:
#
# <%= application_module %>.Repo.insert!(%SomeSchema{})
#
# We recommend using the bang functions (`insert!`, `update!`
# and so on) as... | 34.540909 | 957 | 0.612186 |
e9f84a9f6c8784268b3bd629b8ce81d1dcc9a263 | 184 | ex | Elixir | lib/paddle/error.ex | MMore/paddlex | f84bb525446a13fe5d8af20975276eb712149744 | [
"MIT"
] | 7 | 2021-09-27T10:10:30.000Z | 2022-03-31T09:44:35.000Z | lib/paddle/error.ex | MMore/paddlex | f84bb525446a13fe5d8af20975276eb712149744 | [
"MIT"
] | 2 | 2021-09-29T16:57:41.000Z | 2022-01-25T12:43:26.000Z | lib/paddle/error.ex | MMore/paddlex | f84bb525446a13fe5d8af20975276eb712149744 | [
"MIT"
] | 2 | 2021-09-27T10:12:40.000Z | 2022-01-24T21:28:20.000Z | defmodule Paddle.Error do
@moduledoc """
Error
"""
@type t :: %__MODULE__{
code: integer(),
message: String.t()
}
defstruct [:code, :message]
end
| 16.727273 | 29 | 0.538043 |
e9f88f1566e9b705a4d60a1b39d1fd382c8b7748 | 1,622 | ex | Elixir | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_cx_v3_intent_input.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-10-01T09:20:41.000Z | 2021-10-01T09:20:41.000Z | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_cx_v3_intent_input.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_cx_v3_intent_input.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.510638 | 151 | 0.754624 |
e9f8de8be69bdaf15cedf68ee3dd5ebaad1429e2 | 7,831 | ex | Elixir | lib/roger/system.ex | jnylen/roger | 074338eceae4783221088e8b235a635452708ef1 | [
"MIT"
] | null | null | null | lib/roger/system.ex | jnylen/roger | 074338eceae4783221088e8b235a635452708ef1 | [
"MIT"
] | null | null | null | lib/roger/system.ex | jnylen/roger | 074338eceae4783221088e8b235a635452708ef1 | [
"MIT"
] | null | null | null | defmodule Roger.System do
@moduledoc """
Listener for system-wide events.
On the AMQP side, the systemchannel declares a fanout exchange
called 'system' and adds a private queue to it, which it consumes.
"""
use GenServer
use AMQP
@system_exchange "system"
@command_content_type "roger/system-comm... | 28.896679 | 101 | 0.656749 |
e9f8f991796a5c52b4c20920110722c9a185bbcc | 2,089 | exs | Elixir | mix.exs | Thibault-Santonja/Phoenix_tests | 429100499849837d1449495db354fc1006ceb86c | [
"MIT"
] | null | null | null | mix.exs | Thibault-Santonja/Phoenix_tests | 429100499849837d1449495db354fc1006ceb86c | [
"MIT"
] | null | null | null | mix.exs | Thibault-Santonja/Phoenix_tests | 429100499849837d1449495db354fc1006ceb86c | [
"MIT"
] | null | null | null | defmodule BasicCrud.MixProject do
use Mix.Project
def project do
[
app: :basic_crud,
version: "0.1.0",
elixir: "~> 1.12",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:gettext] ++ Mix.compilers(),
start_permanent: Mix.env() == :prod,
aliases: aliases(),
d... | 27.853333 | 84 | 0.560077 |
e9f93033d92896554f8a5f45461feaa486674182 | 4,071 | ex | Elixir | clients/slides/lib/google_api/slides/v1/model/page.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | null | null | null | clients/slides/lib/google_api/slides/v1/model/page.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | null | null | null | clients/slides/lib/google_api/slides/v1/model/page.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"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... | 55.767123 | 789 | 0.743306 |
e9f93071d35575badf288578b7d64349d5e9c448 | 2,680 | ex | Elixir | lib/day11.ex | imprest/advent | 006c8da0946a45ab0d1dd24ae84470b791b0416c | [
"MIT"
] | 1 | 2018-12-04T19:55:06.000Z | 2018-12-04T19:55:06.000Z | lib/day11.ex | imprest/advent | 006c8da0946a45ab0d1dd24ae84470b791b0416c | [
"MIT"
] | null | null | null | lib/day11.ex | imprest/advent | 006c8da0946a45ab0d1dd24ae84470b791b0416c | [
"MIT"
] | null | null | null | defmodule Day11 do
@spec part1(integer(), any(), any(), integer(), any()) :: any()
def part2(w \\ 300, h \\ 300, serial \\ 9810) do
grid = gen_grid(w, h, serial)
# Brute forced it with inspect... figured 13x13 or 13th pass
# gives the most optimal power level
for x1 <- 1..14,
do: {x1, get_m... | 23.716814 | 85 | 0.453731 |
e9f9417932fa90b0db60ce9e9b9758943480b3c0 | 786 | ex | Elixir | project4_part2/test/support/channel_case.ex | shubhamagiwal/DOSFall2017 | 3c1522c4163f57402f147b50614d4051b05a080f | [
"MIT"
] | 3 | 2019-10-28T21:02:55.000Z | 2020-10-01T02:29:37.000Z | project4_part2/test/support/channel_case.ex | shubhamagiwal/DOSFall2017 | 3c1522c4163f57402f147b50614d4051b05a080f | [
"MIT"
] | null | null | null | project4_part2/test/support/channel_case.ex | shubhamagiwal/DOSFall2017 | 3c1522c4163f57402f147b50614d4051b05a080f | [
"MIT"
] | 4 | 2019-10-12T19:41:58.000Z | 2021-09-24T20:24:47.000Z | defmodule Project4Part2Web.ChannelCase do
@moduledoc """
This module defines the test case to be used by
channel tests.
Such tests rely on `Phoenix.ChannelTest` and also
import other functionality to make it easier
to build common datastructures and query the data layer.
Finally, if the test case intera... | 23.117647 | 58 | 0.73028 |
e9f9443822130c07fc03509eefd11c2d710c6a1a | 98 | ex | Elixir | Chapter01/typespecs_and_behaviours/presenter_with_optional_callbacks.ex | sthagen/Mastering-Elixir | 1b52ee79afe6b2ae80767a5e55c2be51df3c4c1d | [
"MIT"
] | 28 | 2018-08-09T05:05:29.000Z | 2022-03-14T06:59:07.000Z | Chapter01/typespecs_and_behaviours/presenter_with_optional_callbacks.ex | sthagen/Mastering-Elixir | 1b52ee79afe6b2ae80767a5e55c2be51df3c4c1d | [
"MIT"
] | 1 | 2019-02-11T09:11:33.000Z | 2019-05-06T06:40:19.000Z | Chapter01/typespecs_and_behaviours/presenter_with_optional_callbacks.ex | sthagen/Mastering-Elixir | 1b52ee79afe6b2ae80767a5e55c2be51df3c4c1d | [
"MIT"
] | 8 | 2018-08-09T14:53:02.000Z | 2020-12-14T19:31:21.000Z | defmodule Presenter do
@callback present(String.t) :: atom
@optional_callbacks present: 1
end
| 19.6 | 37 | 0.765306 |
e9f94f839a1a5e3ca43cc350de952cd51646017f | 15,805 | ex | Elixir | lib/phoenix/socket/transport.ex | angwoontiong/phoenix-ui | 03227b13f3c780b5626d56207bfa99c8a06525d8 | [
"MIT"
] | null | null | null | lib/phoenix/socket/transport.ex | angwoontiong/phoenix-ui | 03227b13f3c780b5626d56207bfa99c8a06525d8 | [
"MIT"
] | null | null | null | lib/phoenix/socket/transport.ex | angwoontiong/phoenix-ui | 03227b13f3c780b5626d56207bfa99c8a06525d8 | [
"MIT"
] | null | null | null | defmodule Phoenix.Socket.Transport do
@moduledoc """
API for building transports.
This module describes what is required to build a Phoenix transport.
The transport sits between the socket and channels, forwarding client
messages to channels and vice-versa.
A transport is responsible for:
* Implement... | 35.596847 | 113 | 0.678899 |
e9f9a5ebd5938c3dd84503c72940faabcfd339df | 644 | exs | Elixir | config/ci.exs | awochna/quick_polls | b599918b795728feda338e6a00f295a97faba08a | [
"MIT"
] | null | null | null | config/ci.exs | awochna/quick_polls | b599918b795728feda338e6a00f295a97faba08a | [
"MIT"
] | 6 | 2017-04-10T05:01:04.000Z | 2017-04-21T06:02:03.000Z | config/ci.exs | awochna/quick_polls | b599918b795728feda338e6a00f295a97faba08a | [
"MIT"
] | null | null | null | use Mix.Config
# We don't run a server during test. If one is required,
# you can enable the server option below.
config :quick_polls, QuickPolls.Web.Endpoint,
http: [port: 4001],
server: false
# Print only warnings and errors during test
config :logger, level: :warn
# Drop requirements for password hashing inte... | 26.833333 | 56 | 0.754658 |
e9f9ad7ce04007133799d8ab7cf8c8814f720c71 | 1,112 | exs | Elixir | apps/ewallet_db/priv/repo/seeds/02_key.exs | amadeobrands/ewallet | 505b7822721940a7b892a9b35c225e80cc8ac0b4 | [
"Apache-2.0"
] | 1 | 2018-12-07T06:21:21.000Z | 2018-12-07T06:21:21.000Z | apps/ewallet_db/priv/repo/seeds/02_key.exs | amadeobrands/ewallet | 505b7822721940a7b892a9b35c225e80cc8ac0b4 | [
"Apache-2.0"
] | null | null | null | apps/ewallet_db/priv/repo/seeds/02_key.exs | amadeobrands/ewallet | 505b7822721940a7b892a9b35c225e80cc8ac0b4 | [
"Apache-2.0"
] | null | null | null | defmodule EWalletDB.Repo.Seeds.KeySeed do
alias EWallet.Web.Preloader
alias EWalletDB.{Account, Key}
def seed do
[
run_banner: "Seeding the initial access and secret key:",
argsline: []
]
end
def run(writer, args) do
account = Account.get_by(name: "master_account")
case Key.inse... | 26.47619 | 82 | 0.584532 |
e9f9ca0dbc781a44b88fc6d022bd9bddc8a8fabe | 63 | ex | Elixir | lib/rankings_web/views/edge_view.ex | spkane31/cc-rankings | 0acda9f3ca35abd4874ab06478ad22aa473811bf | [
"MIT"
] | 1 | 2020-06-28T19:31:07.000Z | 2020-06-28T19:31:07.000Z | lib/rankings_web/views/edge_view.ex | spkane31/rankings | 0acda9f3ca35abd4874ab06478ad22aa473811bf | [
"MIT"
] | 5 | 2019-07-25T17:00:39.000Z | 2019-07-25T17:12:07.000Z | lib/rankings_web/views/edge_view.ex | spkane31/rankings | 0acda9f3ca35abd4874ab06478ad22aa473811bf | [
"MIT"
] | null | null | null | defmodule RankingsWeb.EdgeView do
use RankingsWeb, :view
end
| 15.75 | 33 | 0.809524 |
e9f9ea7395c2a6f2ec7cd404185e1a89ed5c3124 | 11,398 | ex | Elixir | lib/sanbase_web/graphql/resolvers/user/user_list_resolver.ex | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | 1 | 2022-01-30T19:51:39.000Z | 2022-01-30T19:51:39.000Z | lib/sanbase_web/graphql/resolvers/user/user_list_resolver.ex | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | null | null | null | lib/sanbase_web/graphql/resolvers/user/user_list_resolver.ex | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | null | null | null | defmodule SanbaseWeb.Graphql.Resolvers.UserListResolver do
require Logger
import Absinthe.Resolution.Helpers, except: [async: 1]
import SanbaseWeb.Graphql.Helpers.Async, only: [async: 1]
import Sanbase.Utils.ErrorHandling, only: [changeset_errors: 1]
alias Sanbase.Accounts.User
alias Sanbase.UserList
al... | 30.233422 | 102 | 0.615985 |
e9fa2400794da9a5a6edaff698a0cdfce58013c1 | 506 | exs | Elixir | elixir/mix.exs | AlphaHydrae/codecov | 8f78ac797c4904a1e740035c578eff5322ae067f | [
"MIT"
] | null | null | null | elixir/mix.exs | AlphaHydrae/codecov | 8f78ac797c4904a1e740035c578eff5322ae067f | [
"MIT"
] | 13 | 2020-07-21T09:58:15.000Z | 2022-03-02T09:23:37.000Z | elixir/mix.exs | AlphaHydrae/codecov | 8f78ac797c4904a1e740035c578eff5322ae067f | [
"MIT"
] | null | null | null | defmodule Example.MixProject do
use Mix.Project
def project do
[
app: :example,
version: "1.0.0",
elixir: "~> 1.10",
test_coverage: [summary: true, tool: ExCoveralls],
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
... | 18.071429 | 59 | 0.58498 |
e9fa61d3e926cdb561de148c9563f42fbe01f3c1 | 2,380 | ex | Elixir | lib/mix/phoenix/context.ex | zorn/phoenix | ac88958550fbd861e2f1e1af6e3c6b787b1a202e | [
"MIT"
] | 1 | 2020-05-23T01:55:39.000Z | 2020-05-23T01:55:39.000Z | lib/mix/phoenix/context.ex | zorn/phoenix | ac88958550fbd861e2f1e1af6e3c6b787b1a202e | [
"MIT"
] | null | null | null | lib/mix/phoenix/context.ex | zorn/phoenix | ac88958550fbd861e2f1e1af6e3c6b787b1a202e | [
"MIT"
] | null | null | null | defmodule Mix.Phoenix.Context do
@moduledoc false
alias Mix.Phoenix.{Context, Schema}
defstruct name: nil,
module: nil,
schema: nil,
alias: nil,
base_module: nil,
web_module: nil,
basename: nil,
file: nil,
test_file:... | 26.153846 | 76 | 0.571429 |
e9fa919be1c996c1bf4012dbc628dd2815facdc5 | 1,127 | ex | Elixir | lib/utils/chain.ex | aeternity/aepp-sdk-elixir | a001b0eb264665623c9b05de25a71d1f13990679 | [
"0BSD"
] | 19 | 2019-04-16T07:27:53.000Z | 2022-01-22T21:35:02.000Z | lib/utils/chain.ex | aeternity/aepp-sdk-elixir | a001b0eb264665623c9b05de25a71d1f13990679 | [
"0BSD"
] | 131 | 2019-04-05T13:01:37.000Z | 2020-07-09T14:53:34.000Z | lib/utils/chain.ex | aeternity/aepp-sdk-elixir | a001b0eb264665623c9b05de25a71d1f13990679 | [
"0BSD"
] | 5 | 2019-04-11T19:21:42.000Z | 2022-03-06T09:08:34.000Z | defmodule AeppSDK.Utils.Chain do
@moduledoc """
Chain AeppSDK.Utils.
In order for its functions to be used, a client must be defined first.
Client example can be found at: `AeppSDK.Client.new/4`.
"""
alias AeppSDK.Client
alias AeternityNode.Api.Chain, as: ChainApi
alias AeternityNode.Model.{Error, KeyB... | 30.459459 | 91 | 0.666371 |
e9faa09391de69ad9c3eef8181a3fa7132f7367b | 1,596 | exs | Elixir | config/prod.exs | wagncarv/blog | c882bd3363a9d886589131d8deb17dbd504514eb | [
"MIT"
] | null | null | null | config/prod.exs | wagncarv/blog | c882bd3363a9d886589131d8deb17dbd504514eb | [
"MIT"
] | 5 | 2022-01-08T15:20:44.000Z | 2022-01-23T21:30:25.000Z | config/prod.exs | wagncarv/blog | c882bd3363a9d886589131d8deb17dbd504514eb | [
"MIT"
] | null | null | null | use Mix.Config
config :blog, BlogWeb.Endpoint,
url: [host: "example.com", port: 80],
cache_static_manifest: "priv/static/cache_manifest.json"
# Do not print debug messages in production
config :logger, level: :info
# ## SSL Support
#
# To get SSL working, you will need to add the `https` key
# to the previous se... | 33.957447 | 66 | 0.694236 |
e9faa0a9e520629074cbda55736e4b3ec0294fb8 | 864 | ex | Elixir | test/support/in_memory_api.ex | annkissam/freshbooks_api_client | 016edcf9e126d711048c6321ffd7f45b4727fd3d | [
"MIT"
] | 2 | 2018-09-18T21:26:55.000Z | 2020-04-24T15:29:05.000Z | test/support/in_memory_api.ex | annkissam/freshbooks_api_client | 016edcf9e126d711048c6321ffd7f45b4727fd3d | [
"MIT"
] | 1 | 2018-03-02T14:33:21.000Z | 2018-03-02T14:33:21.000Z | test/support/in_memory_api.ex | annkissam/freshbooks_api_client | 016edcf9e126d711048c6321ffd7f45b4727fd3d | [
"MIT"
] | null | null | null | defmodule FreshbooksApiClient.InMemoryApi do
use FreshbooksApiClient.ApiBase, otp_app: :freshbooks_api_client
def stub_request("time_entry.list", []) do
%{
per_page: 25,
page: 1,
pages: 1,
total: 2,
resources: [
time_entry_1(),
time_entry_2()
]
}
end
... | 20.093023 | 66 | 0.587963 |
e9fac5965d7d7757aa37514052ea791111292775 | 380 | ex | Elixir | web/views/error_view.ex | bed42/bedsgarage | 608e9509b931078f62ff93e7e34f2451b0d10f49 | [
"Apache-2.0"
] | null | null | null | web/views/error_view.ex | bed42/bedsgarage | 608e9509b931078f62ff93e7e34f2451b0d10f49 | [
"Apache-2.0"
] | null | null | null | web/views/error_view.ex | bed42/bedsgarage | 608e9509b931078f62ff93e7e34f2451b0d10f49 | [
"Apache-2.0"
] | null | null | null | defmodule Bedsgarage.ErrorView do
use Bedsgarage.Web, :view
def render("404.html", _assigns) do
"Page not found"
end
def render("500.html", _assigns) do
"Internal server error"
end
# In case no render clause matches or no
# template is found, let's render it as 500
def template_not_found(_tem... | 21.111111 | 47 | 0.702632 |
e9fb124eb90644266cd865ecac64a1330a1390ad | 3,097 | exs | Elixir | test/trivial_test.exs | ityonemo/trivial | 8db4c85f8c5945354102100eff3e89909fc458ec | [
"MIT"
] | 4 | 2020-01-27T21:26:38.000Z | 2021-11-16T22:42:57.000Z | test/trivial_test.exs | ityonemo/trivial | 8db4c85f8c5945354102100eff3e89909fc458ec | [
"MIT"
] | 6 | 2020-01-25T23:43:33.000Z | 2020-08-19T19:36:22.000Z | test/trivial_test.exs | ityonemo/trivial | 8db4c85f8c5945354102100eff3e89909fc458ec | [
"MIT"
] | null | null | null | defmodule TrivialTest do
use ExUnit.Case, async: true
@localhost {127, 0, 0, 1}
@moduletag :trivial
alias Trivial.Daemon
describe "with default settings" do
test "we can connect to our trivial server and get back trivial data" do
{:ok, srv} = Daemon.start_link(TrivialStub, "test_file", port: 0)
... | 28.154545 | 117 | 0.619955 |
e9fb3cf4c0b45cf752c00524e605fa648c8ef129 | 414 | ex | Elixir | lib/mailman/header.ex | uni-halle/mailman | c1a9b6d9d7f0727372f19638fef74b180d6691a6 | [
"MIT"
] | 154 | 2015-02-23T17:36:05.000Z | 2017-09-09T05:50:21.000Z | lib/mailman/header.ex | uni-halle/mailman | c1a9b6d9d7f0727372f19638fef74b180d6691a6 | [
"MIT"
] | 67 | 2015-03-04T04:01:22.000Z | 2017-09-14T04:23:04.000Z | lib/mailman/header.ex | uni-halle/mailman | c1a9b6d9d7f0727372f19638fef74b180d6691a6 | [
"MIT"
] | 62 | 2015-03-04T03:53:07.000Z | 2017-09-07T23:34:15.000Z | defmodule Mailman.Header do
@moduledoc """
Represents a Mime-Mail header.
"""
defstruct name: "",
value: ""
def from_raw(raw) when is_tuple(raw) do
%Mailman.Header{
name: elem(raw, 0),
value: process_value(elem(raw, 0), elem(raw, 1))
}
end
def process_value(name, value) ... | 18 | 54 | 0.577295 |
e9fb43db31da143763c7d182b6d746bda4d905f0 | 2,090 | ex | Elixir | web/web.ex | joakimk/exremit | 6c0a5fb32208b98cc1baac11d6a7bd248a1aa3bc | [
"Unlicense",
"MIT"
] | 27 | 2016-09-21T09:11:25.000Z | 2020-12-16T04:04:50.000Z | web/web.ex | barsoom/exremit | 6c0a5fb32208b98cc1baac11d6a7bd248a1aa3bc | [
"Unlicense",
"MIT"
] | 2 | 2016-12-02T08:05:13.000Z | 2020-03-27T08:07:59.000Z | web/web.ex | barsoom/exremit | 6c0a5fb32208b98cc1baac11d6a7bd248a1aa3bc | [
"Unlicense",
"MIT"
] | 4 | 2016-09-25T09:58:17.000Z | 2020-04-27T15:07:36.000Z | defmodule Review.Web do
@moduledoc """
A module that keeps using definitions for controllers,
views and so on.
This can be used in your application as:
use Review.Web, :controller
use Review.Web, :view
The definitions below will be executed for every view,
controller, etc, so keep them short ... | 21.111111 | 96 | 0.662679 |
e9fb5837e1f6bd4b2a680e25757deb19f78099e3 | 1,554 | ex | Elixir | lib/screens/v2/widget_instance/survey.ex | mbta/screens | 4b586970f8844b19543bb2ffd4b032a89f6fa40a | [
"MIT"
] | 3 | 2021-07-27T14:11:00.000Z | 2022-01-03T14:16:43.000Z | lib/screens/v2/widget_instance/survey.ex | mbta/screens | 4b586970f8844b19543bb2ffd4b032a89f6fa40a | [
"MIT"
] | 444 | 2021-03-10T20:57:17.000Z | 2022-03-31T16:00:35.000Z | lib/screens/v2/widget_instance/survey.ex | mbta/screens | 4b586970f8844b19543bb2ffd4b032a89f6fa40a | [
"MIT"
] | null | null | null | defmodule Screens.V2.WidgetInstance.Survey do
@moduledoc false
alias Screens.Config.Screen
@enforce_keys ~w[screen enabled? medium_asset_url large_asset_url]a
defstruct @enforce_keys
@type t :: %__MODULE__{
screen: Screen.t(),
enabled?: boolean(),
medium_asset_url: String.t(),... | 30.470588 | 101 | 0.720721 |
e9fb87a12ccc1b5a1af3dfc8ede236eb808a0d70 | 287 | ex | Elixir | apps/ewallet_api/lib/ewallet_api/v1/views/wallet_view.ex | vanmil/ewallet | 6c1aca95a83e0a9d93007670a40d8c45764a8122 | [
"Apache-2.0"
] | null | null | null | apps/ewallet_api/lib/ewallet_api/v1/views/wallet_view.ex | vanmil/ewallet | 6c1aca95a83e0a9d93007670a40d8c45764a8122 | [
"Apache-2.0"
] | null | null | null | apps/ewallet_api/lib/ewallet_api/v1/views/wallet_view.ex | vanmil/ewallet | 6c1aca95a83e0a9d93007670a40d8c45764a8122 | [
"Apache-2.0"
] | null | null | null | defmodule EWalletAPI.V1.WalletView do
use EWalletAPI, :view
alias EWallet.Web.V1.{WalletSerializer, ResponseSerializer}
def render("wallets.json", %{wallets: wallets}) do
wallets
|> WalletSerializer.serialize()
|> ResponseSerializer.serialize(success: true)
end
end
| 26.090909 | 61 | 0.74216 |
e9fbe1bdaa054434ce0fcb1a1772813ccde279b0 | 978 | ex | Elixir | Sources/server/lib/server/endpoint.ex | Zimtir/Meeter | a88b09576cb6f20c352c01d4a8bb71757e1be41c | [
"MIT"
] | null | null | null | Sources/server/lib/server/endpoint.ex | Zimtir/Meeter | a88b09576cb6f20c352c01d4a8bb71757e1be41c | [
"MIT"
] | null | null | null | Sources/server/lib/server/endpoint.ex | Zimtir/Meeter | a88b09576cb6f20c352c01d4a8bb71757e1be41c | [
"MIT"
] | null | null | null | defmodule Server.Endpoint do
use Plug.Router
use Plug.Debugger
use Plug.ErrorHandler
alias Server.Router
alias Plug.{Cowboy}
require Logger
plug(Plug.Logger, log: :debug)
plug(:match)
plug(CORSPlug, origin: "*")
plug(Plug.Parsers,
parsers: [:json],
pass: ["application/json"],
json_de... | 21.733333 | 94 | 0.652352 |
e9fc006666c2e9492a6196cfc10f621e64cc5585 | 10,182 | ex | Elixir | lib/changelog_web/router.ex | yanokwa/changelog.com | 88093bada9ff294159246b8200b3121cf41666f7 | [
"MIT"
] | null | null | null | lib/changelog_web/router.ex | yanokwa/changelog.com | 88093bada9ff294159246b8200b3121cf41666f7 | [
"MIT"
] | null | null | null | lib/changelog_web/router.ex | yanokwa/changelog.com | 88093bada9ff294159246b8200b3121cf41666f7 | [
"MIT"
] | null | null | null | defmodule ChangelogWeb.Router do
use ChangelogWeb, :router
use Plug.ErrorHandler
alias ChangelogWeb.Plug
if Mix.env == :dev do
forward "/sent_emails", Bamboo.SentEmailViewerPlug
end
pipeline :browser do
plug :accepts, ["html", "js"]
plug :fetch_session
plug Plug.Turbolinks
plug :fetch... | 40.565737 | 99 | 0.687782 |
e9fc02ffb80f1f1f23377eabffb4ea9e32eaee87 | 705 | ex | Elixir | api/lib/responda_me/quizzes/quiz.ex | mendes13/responda.me | 42facc3de1c5cc503459457b2bb452f0ad6fac37 | [
"MIT"
] | null | null | null | api/lib/responda_me/quizzes/quiz.ex | mendes13/responda.me | 42facc3de1c5cc503459457b2bb452f0ad6fac37 | [
"MIT"
] | null | null | null | api/lib/responda_me/quizzes/quiz.ex | mendes13/responda.me | 42facc3de1c5cc503459457b2bb452f0ad6fac37 | [
"MIT"
] | null | null | null | defmodule Responda.Me.Quizzes.Quiz do
use Ecto.Schema
import Ecto.Changeset
alias Responda.Me.Questions
alias Responda.Me.Accounts
@primary_key {:id, :binary_id, autogenerate: true}
@foreign_key_type :binary_id
schema "quizzes" do
field :title, :string
has_many :questions, Questions.Question
... | 21.363636 | 52 | 0.689362 |
e9fc2ae78240f6eefe01e6b840a7f7071069bdb8 | 2,256 | ex | Elixir | clients/datastore/lib/google_api/datastore/v1/model/google_datastore_admin_v1_index_operation_metadata.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/datastore/lib/google_api/datastore/v1/model/google_datastore_admin_v1_index_operation_metadata.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/datastore/lib/google_api/datastore/v1/model/google_datastore_admin_v1_index_operation_metadata.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 38.896552 | 167 | 0.754433 |
e9fc6a67ad1c35422014b9a0c5949766314b52f4 | 2,682 | ex | Elixir | lib/shapt/worker.ex | fcevado/shapt | 5aa7ca5f1fa76ad9977b9661ed60764e145668a8 | [
"Apache-2.0"
] | 12 | 2019-08-05T03:43:48.000Z | 2022-03-08T15:06:38.000Z | lib/shapt/worker.ex | fcevado/shapt | 5aa7ca5f1fa76ad9977b9661ed60764e145668a8 | [
"Apache-2.0"
] | 5 | 2019-08-05T12:45:57.000Z | 2019-09-10T03:47:50.000Z | lib/shapt/worker.ex | fcevado/shapt | 5aa7ca5f1fa76ad9977b9661ed60764e145668a8 | [
"Apache-2.0"
] | null | null | null | defmodule Shapt.Worker do
@moduledoc false
use GenServer
@spec child_spec(keyword()) :: map()
def child_spec(conf) do
module = conf[:module]
{adapter, adapter_conf} = conf[:adapter]
opts = [
toggle_conf: conf[:toggles],
adapter: adapter,
adapter_conf: adapter_conf,
name: m... | 21.983607 | 101 | 0.608874 |
e9fc81994fccf5d85ca474c3fed86ed0f3cc4363 | 1,228 | ex | Elixir | lib/clickhouse_ecto.ex | VinogradovAlexandr/clickhouse_test | 4a25efad368b63ba0734c80ceb543091ed8dd36a | [
"Apache-2.0"
] | 1 | 2019-02-21T01:19:12.000Z | 2019-02-21T01:19:12.000Z | lib/clickhouse_ecto.ex | VinogradovAlexandr/clickhouse_ecto | d78d91ef32fbe8726f5fa13632927695982e5da3 | [
"Apache-2.0"
] | null | null | null | lib/clickhouse_ecto.ex | VinogradovAlexandr/clickhouse_ecto | d78d91ef32fbe8726f5fa13632927695982e5da3 | [
"Apache-2.0"
] | null | null | null | defmodule ClickhouseEcto do
require IEx
@moduledoc false
@behaviour Ecto.Adapter.Storage
use Ecto.Adapters.SQL, :clickhouse_ecto
alias ClickhouseEcto.Migration
alias ClickhouseEcto.Storage
alias ClickhouseEcto.Structure
import ClickhouseEcto.Type, only: [encode: 2, decode: 2]
def autogenerate(:bi... | 33.189189 | 84 | 0.698697 |
e9fc96d02ec6d8a86b9533072f0e35fc19aa7c69 | 589 | exs | Elixir | Elixir/selectionSort.exs | codersinghal/sorting-algorithms | c03faad4b33be4d82af1ef4f479c7d0b3977d71d | [
"MIT"
] | 115 | 2019-10-12T02:30:40.000Z | 2022-03-31T21:42:58.000Z | Elixir/selectionSort.exs | codersinghal/sorting-algorithms | c03faad4b33be4d82af1ef4f479c7d0b3977d71d | [
"MIT"
] | 37 | 2019-10-11T18:25:44.000Z | 2021-10-08T06:16:45.000Z | Elixir/selectionSort.exs | codersinghal/sorting-algorithms | c03faad4b33be4d82af1ef4f479c7d0b3977d71d | [
"MIT"
] | 481 | 2019-10-11T18:01:47.000Z | 2022-03-25T11:11:02.000Z | defmodule Selection do
def sort(list) when is_list(list) do
do_selection(list, [])
end
def do_selection([head|[]], acc) do
acc ++ [head]
end
def do_selection(list, acc) do
min = min(list)
do_selection(:list.delete(min, list), acc ++ [min])
end
defp min([fi... | 19.633333 | 59 | 0.52292 |
e9fcab17a89e0defc3512c1805c0f3e32eb2b60c | 756 | ex | Elixir | lib/oath/pat.ex | naramore/highstorm | 1150ffd48e147b1a5e4f507e59eb788dc7d824c4 | [
"MIT"
] | null | null | null | lib/oath/pat.ex | naramore/highstorm | 1150ffd48e147b1a5e4f507e59eb788dc7d824c4 | [
"MIT"
] | null | null | null | lib/oath/pat.ex | naramore/highstorm | 1150ffd48e147b1a5e4f507e59eb788dc7d824c4 | [
"MIT"
] | null | null | null | defmodule Oath.Pat do
@moduledoc false
@behaviour Access
defstruct specs: [],
union?: false
@type t :: %__MODULE__{
specs: [Oath.t()],
union?: boolean
}
@impl Access
def fetch(_term, _key) do
:error
end
@impl Access
def get_and_update(data, _key, _functi... | 15.75 | 52 | 0.560847 |
e9fccb16d5d1cff6c0549c356e3bb6bd7a2dbc05 | 402 | exs | Elixir | mix.exs | briankereszturi/explugrouter | a10bd12dd2c3f6805a0221d2948dcdc345165caa | [
"MIT"
] | null | null | null | mix.exs | briankereszturi/explugrouter | a10bd12dd2c3f6805a0221d2948dcdc345165caa | [
"MIT"
] | null | null | null | mix.exs | briankereszturi/explugrouter | a10bd12dd2c3f6805a0221d2948dcdc345165caa | [
"MIT"
] | null | null | null | defmodule ExPlugRouter.Mixfile do
use Mix.Project
def project do
[app: :ex_plug_router,
version: "0.1.0",
elixir: "~> 1.4",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps()]
end
def application do
[extra_applications: [:logger]]
end
defp d... | 16.75 | 39 | 0.557214 |
e9fcd88434e0ba19978dba0066e58235b3e25212 | 2,818 | ex | Elixir | clients/blogger/lib/google_api/blogger/v3/api/users.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/blogger/lib/google_api/blogger/v3/api/users.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/blogger/lib/google_api/blogger/v3/api/users.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.138889 | 217 | 0.6934 |
e9fcfcb575efb0a00a9e0f0d17dd46d89fdca0ea | 1,466 | exs | Elixir | test/support/mix/mix_helper.exs | feng19/oasis | 36e81db1413f24f153f960b1ee3706858ec1f952 | [
"MIT"
] | 11 | 2021-02-24T09:21:11.000Z | 2021-12-26T03:51:25.000Z | test/support/mix/mix_helper.exs | feng19/oasis | 36e81db1413f24f153f960b1ee3706858ec1f952 | [
"MIT"
] | 5 | 2021-03-18T14:15:37.000Z | 2022-03-02T09:53:42.000Z | test/support/mix/mix_helper.exs | feng19/oasis | 36e81db1413f24f153f960b1ee3706858ec1f952 | [
"MIT"
] | 6 | 2021-02-24T09:21:01.000Z | 2021-11-16T08:45:03.000Z | defmodule Oasis.MixHelper do
# This test suite helper is referred from
# https://github.com/phoenixframework/phoenix/blob/master/installer/test/mix_helper.exs
import ExUnit.Assertions
def tmp_path do
Path.expand("../../tmp", __DIR__)
end
defp random_string(len) do
len |> :crypto.strong_rand_bytes... | 20.647887 | 89 | 0.592769 |
e9fd00687ae22de3cc3d2e4364df0d0b35c29678 | 1,599 | ex | Elixir | lib/crawler.ex | Gauthamiv/crawler | 394b09d4e8f4c15abefc6295c1b3e72fb82d5416 | [
"MIT"
] | null | null | null | lib/crawler.ex | Gauthamiv/crawler | 394b09d4e8f4c15abefc6295c1b3e72fb82d5416 | [
"MIT"
] | null | null | null | lib/crawler.ex | Gauthamiv/crawler | 394b09d4e8f4c15abefc6295c1b3e72fb82d5416 | [
"MIT"
] | null | null | null | defmodule Crawler do
@moduledoc """
A high performance web crawler in Elixir.
"""
alias Crawler.{Options, Store, QueueHandler, Worker}
use Application
@doc """
Crawler is an application that gets started automatically with:
- a `Crawler.Store` that initiates a `Registry` for keeping internal data
... | 23.514706 | 79 | 0.666667 |
e9fd11ac3c6e2bfcb5ad52c4205b3754310729d5 | 885 | exs | Elixir | test/grizzly/zwave/commands/schedule_entry_lock_enable_set_test.exs | smartrent/grizzly | 65a397ea7bfedb5518fe63a3f058a0b6af473e39 | [
"Apache-2.0"
] | 76 | 2019-09-04T16:56:58.000Z | 2022-03-29T06:54:36.000Z | test/grizzly/zwave/commands/schedule_entry_lock_enable_set_test.exs | smartrent/grizzly | 65a397ea7bfedb5518fe63a3f058a0b6af473e39 | [
"Apache-2.0"
] | 124 | 2019-09-05T14:01:24.000Z | 2022-02-28T22:58:14.000Z | test/grizzly/zwave/commands/schedule_entry_lock_enable_set_test.exs | smartrent/grizzly | 65a397ea7bfedb5518fe63a3f058a0b6af473e39 | [
"Apache-2.0"
] | 10 | 2019-10-23T19:25:45.000Z | 2021-11-17T13:21:20.000Z | defmodule Grizzly.ZWave.Commands.ScheduleEntryLockEnableSetTest do
use ExUnit.Case, async: true
alias Grizzly.ZWave.Commands.ScheduleEntryLockEnableSet
test "creates the command and validates params" do
params = [user_identifier: 10, enabled: true]
{:ok, _command} = ScheduleEntryLockEnableSet.new(params... | 35.4 | 84 | 0.752542 |
e9fd398b6bc273892178c65f959be7fdd42fa179 | 1,199 | ex | Elixir | lib/deep_sort.ex | Maples7/ex_deep_qsort | 8035c47bea31cd9fd59a697ec715d81e0af60952 | [
"MIT"
] | 1 | 2019-05-21T17:49:55.000Z | 2019-05-21T17:49:55.000Z | lib/deep_sort.ex | Maples7/ex_deep_qsort | 8035c47bea31cd9fd59a697ec715d81e0af60952 | [
"MIT"
] | null | null | null | lib/deep_sort.ex | Maples7/ex_deep_qsort | 8035c47bea31cd9fd59a697ec715d81e0af60952 | [
"MIT"
] | null | null | null | defmodule DeepSort do
@moduledoc """
A module who does recursive sort over any enumerables.
"""
@doc """
Sorting an enumerable based on Enum.sort.
## Examples
iex> DeepSort.sort([4, 2, 3, 1])
[1, 2, 3, 4]
iex> DeepSort.sort([4, 2, 3, 1], &>/2)
[4, 3, 2, 1]
iex> DeepSort.so... | 22.203704 | 151 | 0.464554 |
e9fd8a39d75c0a3b91c84a39edbd9b67c946bb91 | 1,542 | exs | Elixir | apps/admin_api/test/admin_api/v1/controllers/fallback_controller_test.exs | jimpeebles/ewallet | ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405 | [
"Apache-2.0"
] | null | null | null | apps/admin_api/test/admin_api/v1/controllers/fallback_controller_test.exs | jimpeebles/ewallet | ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405 | [
"Apache-2.0"
] | null | null | null | apps/admin_api/test/admin_api/v1/controllers/fallback_controller_test.exs | jimpeebles/ewallet | ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405 | [
"Apache-2.0"
] | null | null | null | # Copyright 2018 OmiseGO Pte Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writi... | 30.84 | 87 | 0.631647 |
e9fdacd7e6b7d3fa21de3a0ea98e6f9b53357f08 | 2,139 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v35/model/size.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v35/model/size.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v35/model/size.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... | 36.254237 | 140 | 0.681627 |
e9fde22a1714d4410052172f9648cb49744c55a5 | 1,525 | ex | Elixir | lib/iris_web/controllers/session_controller.ex | JosKar/iris_server | 8faa370f506a003ae3c06b23d6c827bd746368f3 | [
"MIT"
] | 17 | 2017-07-10T09:01:40.000Z | 2022-03-08T23:47:27.000Z | lib/iris_web/controllers/session_controller.ex | 7-iris/iris_server | 8faa370f506a003ae3c06b23d6c827bd746368f3 | [
"MIT"
] | 7 | 2017-07-09T16:22:13.000Z | 2018-06-09T21:34:03.000Z | lib/iris_web/controllers/session_controller.ex | JosKar/iris_server | 8faa370f506a003ae3c06b23d6c827bd746368f3 | [
"MIT"
] | null | null | null | defmodule IrisWeb.SessionController do
use IrisWeb, :controller
alias Iris.{Accounts, User, Support.AuthenticationToken, Repo}
def login(%{method: "GET"} = conn, %{"t" => token}) do
case AuthenticationToken.verify_token_value(token) do
{:ok, user} ->
user = Iris.User
|> Repo.get(user.i... | 29.901961 | 97 | 0.609836 |
e9fdeead8aa5b2745f1a940dfe32715747827631 | 849 | exs | Elixir | test/absinthe/integration/execution/resolution/multiple_errors_with_extra_fields_test.exs | hauptbenutzer/absinthe | f1d76e5c249ca337187971b0c96b1870f53716ed | [
"MIT"
] | null | null | null | test/absinthe/integration/execution/resolution/multiple_errors_with_extra_fields_test.exs | hauptbenutzer/absinthe | f1d76e5c249ca337187971b0c96b1870f53716ed | [
"MIT"
] | null | null | null | test/absinthe/integration/execution/resolution/multiple_errors_with_extra_fields_test.exs | hauptbenutzer/absinthe | f1d76e5c249ca337187971b0c96b1870f53716ed | [
"MIT"
] | 1 | 2018-11-16T02:34:40.000Z | 2018-11-16T02:34:40.000Z | defmodule Elixir.Absinthe.Integration.Execution.Resolution.MultipleErrorsWithExtraFieldsTest do
use ExUnit.Case, async: true
@query """
mutation { failingThing(type: MULTIPLE_WITH_CODE) { name } }
"""
test "scenario #1" do
assert {:ok,
%{
data: %{"failingThing" => nil},
... | 29.275862 | 95 | 0.451119 |
e9fdf06e9bc089a9ae186e420d7d56440ddf5bcd | 4,429 | ex | Elixir | clients/service_control/lib/google_api/service_control/v1/model/status.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/service_control/lib/google_api/service_control/v1/model/status.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/service_control/lib/google_api/service_control/v1/model/status.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... | 85.173077 | 2,549 | 0.764281 |
e9fdf4d249624dea6f6955ed7fc2458a90ae7be8 | 12,841 | ex | Elixir | lib/omise/charge.ex | keeratita/omise-elixir | 2c89fe9ca60a8c2a8f5e523e7f7a6d51a68c0ed6 | [
"MIT"
] | 12 | 2016-09-10T16:17:32.000Z | 2020-06-04T01:35:54.000Z | lib/omise/charge.ex | keeratita/omise-elixir | 2c89fe9ca60a8c2a8f5e523e7f7a6d51a68c0ed6 | [
"MIT"
] | 8 | 2016-09-19T05:36:27.000Z | 2020-09-14T08:46:06.000Z | lib/omise/charge.ex | keeratita/omise-elixir | 2c89fe9ca60a8c2a8f5e523e7f7a6d51a68c0ed6 | [
"MIT"
] | 10 | 2016-07-19T05:03:01.000Z | 2021-02-08T03:20:54.000Z | defmodule Omise.Charge do
@moduledoc ~S"""
Provides Charge API interfaces.
<https://www.omise.co/charges-api>
"""
use Omise.HTTPClient, endpoint: "charges"
defstruct object: "charge",
id: nil,
livemode: nil,
location: nil,
amount: nil,
currency:... | 33.266839 | 140 | 0.6019 |
e9fdf8f1fea3485a2038e29e5b0df78a6e4da425 | 272 | ex | Elixir | lib/surgex/parser/structs/geobox.ex | surgeventures/surgex | b3acdd6a9a010c26f0081b9cb23aeb072459be30 | [
"MIT"
] | 10 | 2017-09-15T08:55:48.000Z | 2021-07-08T09:26:24.000Z | lib/surgex/parser/structs/geobox.ex | surgeventures/surgex | b3acdd6a9a010c26f0081b9cb23aeb072459be30 | [
"MIT"
] | 17 | 2017-07-24T11:27:22.000Z | 2022-01-24T22:28:18.000Z | lib/surgex/parser/structs/geobox.ex | surgeventures/surgex | b3acdd6a9a010c26f0081b9cb23aeb072459be30 | [
"MIT"
] | 2 | 2018-04-12T15:01:00.000Z | 2018-05-27T12:14:34.000Z | defmodule Surgex.Parser.Geobox do
@moduledoc """
Holds a box made of two points on Earth's surface.
"""
alias Surgex.Parser.Geolocation
@type t :: %__MODULE__{north_east: Geolocation.t(), south_west: Geolocation.t()}
defstruct [:north_east, :south_west]
end
| 24.727273 | 82 | 0.720588 |
e9fe0415049d5a4bb5529dc8bfcd2dc9302ea81f | 1,979 | ex | Elixir | video-code/24-stateful-server/servy/lib/servy/pledge_server.ex | anwarsky/elixir_sample2 | 613599113e15fcd400853fc0e560a39001435f6d | [
"Unlicense"
] | null | null | null | video-code/24-stateful-server/servy/lib/servy/pledge_server.ex | anwarsky/elixir_sample2 | 613599113e15fcd400853fc0e560a39001435f6d | [
"Unlicense"
] | null | null | null | video-code/24-stateful-server/servy/lib/servy/pledge_server.ex | anwarsky/elixir_sample2 | 613599113e15fcd400853fc0e560a39001435f6d | [
"Unlicense"
] | null | null | null | defmodule Servy.PledgeServer do
@name :pledge_server
# Client Interface
def start do
IO.puts "Starting the pledge server..."
pid = spawn(__MODULE__, :listen_loop, [[]])
Process.register(pid, @name)
pid
end
def create_pledge(name, amount) do
send @name, {self(), :create_pledge, name, am... | 24.7375 | 60 | 0.667004 |
e9fe1a09842a06a7293a0431cbd4635947a42631 | 2,248 | ex | Elixir | clients/admin/lib/google_api/admin/datatransfer_v1/model/applications_list_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-10-01T09:20:41.000Z | 2021-10-01T09:20:41.000Z | clients/admin/lib/google_api/admin/datatransfer_v1/model/applications_list_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/admin/lib/google_api/admin/datatransfer_v1/model/applications_list_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... | 40.142857 | 199 | 0.728203 |
e9fe227d3637a21d6d8913388fcae80c8c2b2f74 | 2,025 | exs | Elixir | mix.exs | meet-copper/assent | 9d0704fe844e777eab489ca3ea0843f839d1276d | [
"MIT"
] | null | null | null | mix.exs | meet-copper/assent | 9d0704fe844e777eab489ca3ea0843f839d1276d | [
"MIT"
] | null | null | null | mix.exs | meet-copper/assent | 9d0704fe844e777eab489ca3ea0843f839d1276d | [
"MIT"
] | null | null | null | defmodule Assent.MixProject do
use Mix.Project
@source_url "https://github.com/pow-auth/assent"
@version "0.1.24"
def project do
[
app: :assent,
version: @version,
elixir: "~> 1.7",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
deps: deps... | 23.275862 | 104 | 0.535309 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.