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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5ad825da5af67f7ab002a5efb86cfda18e0577ea | 2,326 | ex | Elixir | clients/datastore/lib/google_api/datastore/v1/connection.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/datastore/lib/google_api/datastore/v1/connection.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/datastore/lib/google_api/datastore/v1/connection.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... | 27.690476 | 119 | 0.714101 |
5ad888d014d47265dba45f5e73b950b5d98d5de5 | 1,964 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/instance_with_named_ports.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/instance_with_named_ports.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/instance_with_named_ports.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 35.709091 | 117 | 0.730652 |
5ad8ac720c127fdd817b22cb6516f9793c80a2cb | 2,327 | ex | Elixir | lib/mix/lib/mix/tasks/local.install.ex | QuinnWilton/elixir | e42e3e55ca1561fe56b58d6f51c7b0faae6a7a1e | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/tasks/local.install.ex | QuinnWilton/elixir | e42e3e55ca1561fe56b58d6f51c7b0faae6a7a1e | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/tasks/local.install.ex | QuinnWilton/elixir | e42e3e55ca1561fe56b58d6f51c7b0faae6a7a1e | [
"Apache-2.0"
] | null | null | null | defmodule Mix.Tasks.Local.Install do
use Mix.Task
import Mix.Generator, only: [create_file: 2]
@shortdoc "Install a task or an archive locally"
@moduledoc """
Install an archive locally.
If no argument is supplied but there is an archive in the root
(created with mix archive), then the archive will be... | 28.728395 | 98 | 0.691878 |
5ad8ae8540a681bc35cc5410cba030e3d6e1ea42 | 79 | ex | Elixir | lib/name_of_the_day_web/views/user_settings_view.ex | joaothallis/name-of-the-day | 839411b6eb28cefd1b74e2f4e6eafcbb7b7bfd82 | [
"MIT"
] | null | null | null | lib/name_of_the_day_web/views/user_settings_view.ex | joaothallis/name-of-the-day | 839411b6eb28cefd1b74e2f4e6eafcbb7b7bfd82 | [
"MIT"
] | 6 | 2021-09-07T15:10:50.000Z | 2021-10-31T02:56:08.000Z | lib/name_of_the_day_web/views/user_settings_view.ex | joaothallis/name-of-the-day | 839411b6eb28cefd1b74e2f4e6eafcbb7b7bfd82 | [
"MIT"
] | null | null | null | defmodule NameOfTheDayWeb.UserSettingsView do
use NameOfTheDayWeb, :view
end
| 19.75 | 45 | 0.848101 |
5ad8bb38ed1d1c1c4434bcbb014ae56b6eef649a | 2,593 | exs | Elixir | test/depot/adapter/in_memory_test.exs | mcrumm/depot | dfec1b3daeef06208491bb175241fff03fe8e59a | [
"Apache-2.0"
] | null | null | null | test/depot/adapter/in_memory_test.exs | mcrumm/depot | dfec1b3daeef06208491bb175241fff03fe8e59a | [
"Apache-2.0"
] | null | null | null | test/depot/adapter/in_memory_test.exs | mcrumm/depot | dfec1b3daeef06208491bb175241fff03fe8e59a | [
"Apache-2.0"
] | null | null | null | defmodule Depot.Adapter.InMemoryTest do
use ExUnit.Case, async: true
import Depot.AdapterTest
doctest Depot.Adapter.InMemory
adapter_test %{test: test} do
filesystem = Depot.Adapter.InMemory.configure(name: test)
start_supervised(filesystem)
{:ok, filesystem: filesystem}
end
describe "write" d... | 29.134831 | 94 | 0.588122 |
5ad8d2c1474583aa07f6e4934292679d681ccd2a | 366 | exs | Elixir | priv/repo/migrations/20200306164446_create_answers.exs | tometoproject/tometo | ed91069b11a020723edb9a143de29d9bac86a2b0 | [
"BlueOak-1.0.0",
"Apache-2.0"
] | 8 | 2019-09-26T13:59:25.000Z | 2020-03-30T21:26:48.000Z | priv/repo/migrations/20200306164446_create_answers.exs | tometoproject/tometo | ed91069b11a020723edb9a143de29d9bac86a2b0 | [
"BlueOak-1.0.0",
"Apache-2.0"
] | 39 | 2019-11-16T02:24:28.000Z | 2020-01-14T16:40:28.000Z | priv/repo/migrations/20200306164446_create_answers.exs | tometoproject/tometo | ed91069b11a020723edb9a143de29d9bac86a2b0 | [
"BlueOak-1.0.0",
"Apache-2.0"
] | 2 | 2019-12-16T07:55:14.000Z | 2020-06-11T04:14:00.000Z | defmodule Aph.Repo.Migrations.CreateAnswers do
use Ecto.Migration
def change do
create table(:answers) do
add :content, :text
add :inbox_id, references(:inboxes, on_delete: :nothing)
add :avatar_id, references(:avatars, on_delete: :nothing)
timestamps(type: :timestamptz)
end
c... | 22.875 | 63 | 0.688525 |
5ad8d916397e1aa907c3471a1857a747df472b70 | 3,222 | ex | Elixir | lib/cms/v2/behaviours/cms/cms_behaviour.ex | noizu/KitchenSink | 34f51fb93dfa913ba7be411475d02520d537e676 | [
"MIT"
] | 2 | 2019-04-15T22:17:59.000Z | 2022-01-03T15:35:36.000Z | lib/cms/v2/behaviours/cms/cms_behaviour.ex | noizu/KitchenSink | 34f51fb93dfa913ba7be411475d02520d537e676 | [
"MIT"
] | null | null | null | lib/cms/v2/behaviours/cms/cms_behaviour.ex | noizu/KitchenSink | 34f51fb93dfa913ba7be411475d02520d537e676 | [
"MIT"
] | null | null | null | #-------------------------------------------------------------------------------
# Author: Keith Brings
# Copyright (C) 2020 Noizu Labs, Inc. All rights reserved.
#-------------------------------------------------------------------------------
defmodule Noizu.Cms.V2.CmsBehaviour.Default do
use Amnesia
alias Noizu.... | 35.406593 | 109 | 0.680633 |
5ad90feea94af49b8240287b2eeae840280c3a8a | 1,409 | ex | Elixir | test/process_managers/support/resume/resume_aggregate.ex | edwardzhou/commanded | f104cbf5ff3a37a6e9b637bc07ccde1d79c0725d | [
"MIT"
] | 1,220 | 2017-10-31T10:56:40.000Z | 2022-03-31T17:40:19.000Z | test/process_managers/support/resume/resume_aggregate.ex | edwardzhou/commanded | f104cbf5ff3a37a6e9b637bc07ccde1d79c0725d | [
"MIT"
] | 294 | 2017-11-03T10:33:41.000Z | 2022-03-24T08:36:42.000Z | test/process_managers/support/resume/resume_aggregate.ex | edwardzhou/commanded | f104cbf5ff3a37a6e9b637bc07ccde1d79c0725d | [
"MIT"
] | 208 | 2017-11-03T10:56:47.000Z | 2022-03-14T05:49:38.000Z | defmodule Commanded.ProcessManagers.ResumeAggregate do
@moduledoc false
defstruct [:status]
defmodule Commands do
defmodule(StartProcess, do: defstruct([:process_uuid, :status]))
defmodule(ResumeProcess, do: defstruct([:process_uuid, :status]))
end
defmodule Events do
defmodule ProcessStarted d... | 31.311111 | 101 | 0.749468 |
5ad92c7546d1a9868d0cb3c56a5ec33b688857c1 | 26,855 | ex | Elixir | lib/elixir/lib/kernel/parallel_compiler.ex | doughsay/elixir | 7356a47047d0b54517bd6886603f09b1121dde2b | [
"Apache-2.0"
] | 19,291 | 2015-01-01T02:42:49.000Z | 2022-03-31T21:01:40.000Z | lib/elixir/lib/kernel/parallel_compiler.ex | doughsay/elixir | 7356a47047d0b54517bd6886603f09b1121dde2b | [
"Apache-2.0"
] | 8,082 | 2015-01-01T04:16:23.000Z | 2022-03-31T22:08:02.000Z | lib/elixir/lib/kernel/parallel_compiler.ex | doughsay/elixir | 7356a47047d0b54517bd6886603f09b1121dde2b | [
"Apache-2.0"
] | 3,472 | 2015-01-03T04:11:56.000Z | 2022-03-29T02:07:30.000Z | defmodule Kernel.ParallelCompiler do
@moduledoc """
A module responsible for compiling and requiring files in parallel.
"""
@typedoc "The line. 0 indicates no line."
@type line() :: non_neg_integer()
@type location() :: line() | {line(), column :: non_neg_integer}
@type warning() :: {file :: Path.t(), lo... | 34.036755 | 103 | 0.638503 |
5ad946cbac7e749470e2d01b1eebfbdf24d7250b | 132 | exs | Elixir | test/finix_test.exs | pct/4nix | 174eeabd1877fdd7dca0dfd610c45219eea61c6f | [
"MIT"
] | 1 | 2019-11-09T17:49:43.000Z | 2019-11-09T17:49:43.000Z | test/finix_test.exs | pct/finix | 174eeabd1877fdd7dca0dfd610c45219eea61c6f | [
"MIT"
] | null | null | null | test/finix_test.exs | pct/finix | 174eeabd1877fdd7dca0dfd610c45219eea61c6f | [
"MIT"
] | null | null | null | defmodule FinixTest do
use ExUnit.Case
doctest Finix
test "greets the world" do
assert Finix.hello() == :world
end
end
| 14.666667 | 34 | 0.69697 |
5ad94cb0a4c33f0aa3f4adb83bd1163a2d9d87e8 | 4,811 | ex | Elixir | lib/mix/lit.ex | zaherh8/lit | bff84aead2109b6df3e9db6663722db469f78f3a | [
"MIT"
] | null | null | null | lib/mix/lit.ex | zaherh8/lit | bff84aead2109b6df3e9db6663722db469f78f3a | [
"MIT"
] | null | null | null | lib/mix/lit.ex | zaherh8/lit | bff84aead2109b6df3e9db6663722db469f78f3a | [
"MIT"
] | null | null | null | defmodule Mix.Lit do
@moduledoc false
alias Lit.Config
def parse_config!(task, args) do
{opts, _, _} = OptionParser.parse(args, switches: [default_web_namespace: :string, app: :string])
format = Config.template_format() || "eex"
# default_web_namespace = opts[:default_web_namespace] || "Admin"
... | 36.172932 | 101 | 0.659946 |
5ad98215021c2648ae901a7c5a808f7f9acceb9e | 3,003 | ex | Elixir | clients/game_services/lib/google_api/game_services/v1beta/model/audit_config.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/game_services/lib/google_api/game_services/v1beta/model/audit_config.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/game_services/lib/google_api/game_services/v1beta/model/audit_config.ex | 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... | 60.06 | 1,106 | 0.749251 |
5ad98d83652fe3916b5583670f639b4b026afcf1 | 773 | exs | Elixir | test/grizzly/zwave/commands/indicator_description_get_test.exs | jellybob/grizzly | 290bee04cb16acbb9dc996925f5c501697b7ac94 | [
"Apache-2.0"
] | 76 | 2019-09-04T16:56:58.000Z | 2022-03-29T06:54:36.000Z | test/grizzly/zwave/commands/indicator_description_get_test.exs | jellybob/grizzly | 290bee04cb16acbb9dc996925f5c501697b7ac94 | [
"Apache-2.0"
] | 124 | 2019-09-05T14:01:24.000Z | 2022-02-28T22:58:14.000Z | test/grizzly/zwave/commands/indicator_description_get_test.exs | jellybob/grizzly | 290bee04cb16acbb9dc996925f5c501697b7ac94 | [
"Apache-2.0"
] | 10 | 2019-10-23T19:25:45.000Z | 2021-11-17T13:21:20.000Z | defmodule Grizzly.ZWave.Commands.IndicatorDescriptionGetTest do
use ExUnit.Case, async: true
alias Grizzly.ZWave.Commands.IndicatorDescriptionGet
test "creates the command and validates params" do
params = [indicator_id: :armed]
{:ok, _command} = IndicatorDescriptionGet.new(params)
end
test "encode... | 32.208333 | 83 | 0.74903 |
5ad98ff4808b2ecfba2a73884b023551f0e4d882 | 1,769 | ex | Elixir | clients/service_networking/lib/google_api/service_networking/v1/model/update_consumer_config_request.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/service_networking/lib/google_api/service_networking/v1/model/update_consumer_config_request.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/service_networking/lib/google_api/service_networking/v1/model/update_consumer_config_request.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"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... | 37.638298 | 155 | 0.771622 |
5ad99d9dbb049c870a44f08c9a355250be5ff401 | 737 | exs | Elixir | mix.exs | Markcial/exfpm | 7ba1b130cf76a57324bed6189372c1f61df6c7c7 | [
"MIT"
] | null | null | null | mix.exs | Markcial/exfpm | 7ba1b130cf76a57324bed6189372c1f61df6c7c7 | [
"MIT"
] | null | null | null | mix.exs | Markcial/exfpm | 7ba1b130cf76a57324bed6189372c1f61df6c7c7 | [
"MIT"
] | null | null | null | defmodule Exfpm.Mixfile do
use Mix.Project
def project do
[app: :exfpm,
version: "0.1.0",
elixir: "~> 1.4",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps()]
end
# Configuration for the OTP application
#
# Type "mix help compile.app" for more i... | 21.676471 | 79 | 0.622795 |
5ad9bacec48d81bd7a3bdd8263a63efc9e7c48b7 | 1,965 | ex | Elixir | clients/page_speed_online/lib/google_api/page_speed_online/v4/model/pagespeed_api_pagespeed_response_v4_loading_experience.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/page_speed_online/lib/google_api/page_speed_online/v4/model/pagespeed_api_pagespeed_response_v4_loading_experience.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/page_speed_online/lib/google_api/page_speed_online/v4/model/pagespeed_api_pagespeed_response_v4_loading_experience.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... | 32.213115 | 104 | 0.708397 |
5ad9da33070a532e28fe17b954e33bf5977eb3e3 | 708 | ex | Elixir | lib/hasher_web/gettext.ex | enlego/hasher | 43b528059119971ffbca6538ffb6713fb78e077f | [
"MIT"
] | null | null | null | lib/hasher_web/gettext.ex | enlego/hasher | 43b528059119971ffbca6538ffb6713fb78e077f | [
"MIT"
] | null | null | null | lib/hasher_web/gettext.ex | enlego/hasher | 43b528059119971ffbca6538ffb6713fb78e077f | [
"MIT"
] | null | null | null | defmodule HasherWeb.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 HasherWeb.Gettext
# Simple translation
gettext("Here is the... | 28.32 | 72 | 0.676554 |
5ad9f382b17da167f603e9ca74b56019054e28b5 | 2,013 | ex | Elixir | clients/safe_browsing/lib/google_api/safe_browsing/v4/model/google_security_safebrowsing_v4_threat_entry_metadata.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/safe_browsing/lib/google_api/safe_browsing/v4/model/google_security_safebrowsing_v4_threat_entry_metadata.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/safe_browsing/lib/google_api/safe_browsing/v4/model/google_security_safebrowsing_v4_threat_entry_metadata.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"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.118644 | 170 | 0.756085 |
5ada0ae98d90b60e6b22ad18bae5919c8e20dfe1 | 3,478 | exs | Elixir | backend/config/test.exs | szakhlypa/edgehog | b1193c26f403132dead6964c1c052e5dcae533af | [
"Apache-2.0"
] | 14 | 2021-12-02T16:31:16.000Z | 2022-03-18T17:40:44.000Z | backend/config/test.exs | szakhlypa/edgehog | b1193c26f403132dead6964c1c052e5dcae533af | [
"Apache-2.0"
] | 77 | 2021-11-03T15:14:41.000Z | 2022-03-30T14:13:32.000Z | backend/config/test.exs | szakhlypa/edgehog | b1193c26f403132dead6964c1c052e5dcae533af | [
"Apache-2.0"
] | 7 | 2021-11-03T10:58:37.000Z | 2022-02-28T14:00:03.000Z | #
# This file is part of Edgehog.
#
# Copyright 2021 SECO Mind Srl
#
# 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 app... | 38.21978 | 95 | 0.804773 |
5ada41d740f8b4c93ac8f5d221819f0257596274 | 735 | ex | Elixir | ros/ros_ui_supervisor/lib/ros_ui_supervisor_web/gettext.ex | kujua/elixir-handbook | 4185ad8da7f652fdb59c799dc58bcb33fda10475 | [
"Apache-2.0"
] | 1 | 2019-07-01T18:47:28.000Z | 2019-07-01T18:47:28.000Z | ros/ros_ui_supervisor/lib/ros_ui_supervisor_web/gettext.ex | kujua/elixir-handbook | 4185ad8da7f652fdb59c799dc58bcb33fda10475 | [
"Apache-2.0"
] | 4 | 2020-07-17T16:57:18.000Z | 2021-05-09T23:50:52.000Z | ros/ros_ui_supervisor/lib/ros_ui_supervisor_web/gettext.ex | kujua/elixir-handbook | 4185ad8da7f652fdb59c799dc58bcb33fda10475 | [
"Apache-2.0"
] | null | null | null | defmodule Ros.SupervisorWeb.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 Ros.SupervisorWeb.Gettext
# Simple translation
gett... | 29.4 | 72 | 0.685714 |
5ada574e1babdd0ca898116c1855d95e9f06371a | 3,221 | exs | Elixir | apps/site/test/site_web/views/project_contact_test.exs | noisecapella/dotcom | d5ef869412102d2230fac3dcc216f01a29726227 | [
"MIT"
] | 42 | 2019-05-29T16:05:30.000Z | 2021-08-09T16:03:37.000Z | apps/site/test/site_web/views/project_contact_test.exs | noisecapella/dotcom | d5ef869412102d2230fac3dcc216f01a29726227 | [
"MIT"
] | 872 | 2019-05-29T17:55:50.000Z | 2022-03-30T09:28:43.000Z | apps/site/test/site_web/views/project_contact_test.exs | noisecapella/dotcom | d5ef869412102d2230fac3dcc216f01a29726227 | [
"MIT"
] | 12 | 2019-07-01T18:33:21.000Z | 2022-03-10T02:13:57.000Z | defmodule SiteWeb.CMS.Page.ProjectContactTest do
use Site.ViewCase, async: true
import SiteWeb.CMS.PageView
alias CMS.Page.Project
alias Phoenix.HTML
alias Plug.Conn
@conn %Conn{}
@project %Project{id: 1}
describe "_contact.html" do
test ".project-contact is not rendered if no data is available"... | 26.186992 | 94 | 0.634586 |
5ada6c7f860f35b000a20b30f32149fd838a30d3 | 1,015 | ex | Elixir | test/support/channel_case.ex | behrendtio/phoenix-toggl | dcaa2409ed8b53d3b56dc7ce02cdc4252dd19647 | [
"MIT"
] | 207 | 2016-02-24T06:43:04.000Z | 2021-03-05T02:26:47.000Z | test/support/channel_case.ex | behrendtio/phoenix-toggl | dcaa2409ed8b53d3b56dc7ce02cdc4252dd19647 | [
"MIT"
] | 6 | 2016-02-26T00:13:06.000Z | 2017-06-15T07:49:02.000Z | test/support/channel_case.ex | behrendtio/phoenix-toggl | dcaa2409ed8b53d3b56dc7ce02cdc4252dd19647 | [
"MIT"
] | 24 | 2016-02-24T18:02:21.000Z | 2019-11-11T12:47:06.000Z | defmodule PhoenixToggl.ChannelCase do
@moduledoc """
This module defines the test case to be used by
channel tests.
Such tests rely on `Phoenix.ChannelTest` and also
imports other functionality to make it easier
to build and query models.
Finally, if the test case interacts with the database,
it canno... | 24.166667 | 71 | 0.708374 |
5ada763346f879ce0fc67a54a8f92a1d5ab92a87 | 2,028 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/node_groups_list_nodes_warning_data.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/compute/lib/google_api/compute/v1/model/node_groups_list_nodes_warning_data.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/node_groups_list_nodes_warning_data.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 ... | 40.56 | 527 | 0.743097 |
5ada7fe144df7d96dab0afa86c93903823a3592a | 1,553 | ex | Elixir | lib/ex_oauth2_provider/plug/ensure_authenticated.ex | loopsocial/ex_oauth2_provider | 59d177f1c7581e1d794823279067022b1598f5f2 | [
"MIT"
] | null | null | null | lib/ex_oauth2_provider/plug/ensure_authenticated.ex | loopsocial/ex_oauth2_provider | 59d177f1c7581e1d794823279067022b1598f5f2 | [
"MIT"
] | null | null | null | lib/ex_oauth2_provider/plug/ensure_authenticated.ex | loopsocial/ex_oauth2_provider | 59d177f1c7581e1d794823279067022b1598f5f2 | [
"MIT"
] | null | null | null | defmodule ExOauth2Provider.Plug.EnsureAuthenticated do
@moduledoc """
This plug ensures that the request has been authenticated with an access token.
If one is not found, the `unauthenticated/2` function is invoked with the
`Plug.Conn.t` object and its params.
## Example
# Will call the unauthenticat... | 31.06 | 88 | 0.714102 |
5ada8ea2729d60765c121eb6ebbacb8614048172 | 1,517 | ex | Elixir | lib/ada/schema/user.ex | cloud8421/ada | 384f5e5e85e95c4d5883298259e781cc0a54bd07 | [
"MIT"
] | 7 | 2019-05-11T12:14:48.000Z | 2021-04-02T18:42:51.000Z | lib/ada/schema/user.ex | cloud8421/ada | 384f5e5e85e95c4d5883298259e781cc0a54bd07 | [
"MIT"
] | 3 | 2019-05-11T08:01:47.000Z | 2019-05-14T12:06:50.000Z | lib/ada/schema/user.ex | cloud8421/ada | 384f5e5e85e95c4d5883298259e781cc0a54bd07 | [
"MIT"
] | 1 | 2021-01-06T14:57:32.000Z | 2021-01-06T14:57:32.000Z | defmodule Ada.Schema.User do
@moduledoc """
Represents a system user, identified by a numeric ID.
Fields are defined in combination with workflows (see `Ada.Worfklow`)
"""
use Ecto.Schema
schema "users" do
field :name, :string, null: false
field :email, :string, null: false
field :last_fm_user... | 24.868852 | 74 | 0.623599 |
5ada92cba3711223c32bb3b25a7f40eeda7c0109 | 2,860 | ex | Elixir | lib/codes/codes_y74.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_y74.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_y74.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | defmodule IcdCode.ICDCode.Codes_Y74 do
alias IcdCode.ICDCode
def _Y740 do
%ICDCode{full_code: "Y740",
category_code: "Y74",
short_code: "0",
full_name: "Diagnostic and monitoring general hospital and personal-use devices associated with adverse incidents",
short_name: "Dia... | 55 | 158 | 0.726923 |
5adabcf6e58f0d6c6d8f0e3d10397a1e7de774f1 | 728 | exs | Elixir | ch14-05.exs | gabrielelana/programming-elixir | 475319123d21b03c3bfcc02a23178ab9db67a6b3 | [
"MIT"
] | 9 | 2016-01-22T17:28:27.000Z | 2020-06-07T01:38:44.000Z | ch14-05.exs | gabrielelana/programming-elixir | 475319123d21b03c3bfcc02a23178ab9db67a6b3 | [
"MIT"
] | null | null | null | ch14-05.exs | gabrielelana/programming-elixir | 475319123d21b03c3bfcc02a23178ab9db67a6b3 | [
"MIT"
] | 1 | 2019-04-18T10:08:38.000Z | 2019-04-18T10:08:38.000Z | # Do the same as 14-03, but use spawn_monitor
defmodule Programming.Elixir do
defmodule CallMeIfYouDie do
import :timer, only: [sleep: 1]
def child(parent) do
send parent, :ok
end
def start do
spawn_monitor(__MODULE__, :child, [self])
sleep 500
flush
end
defp flush ... | 19.157895 | 79 | 0.582418 |
5adad40906315c44be948f1b2cbe3210f9d8cbdd | 730 | ex | Elixir | lib/price_register_web/gettext.ex | civictech-ie/price-register | 9112c183722b76c09e98063ec2829dc2d0b55113 | [
"Apache-2.0"
] | 4 | 2021-03-09T19:35:37.000Z | 2022-03-20T23:31:19.000Z | lib/price_register_web/gettext.ex | civictech-ie/price-register | 9112c183722b76c09e98063ec2829dc2d0b55113 | [
"Apache-2.0"
] | null | null | null | lib/price_register_web/gettext.ex | civictech-ie/price-register | 9112c183722b76c09e98063ec2829dc2d0b55113 | [
"Apache-2.0"
] | null | null | null | defmodule PriceRegisterWeb.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 PriceRegisterWeb.Gettext
# Simple translation
gettex... | 29.2 | 72 | 0.686301 |
5adadbec802020533a4e8bb67e64efe4e957182c | 326 | exs | Elixir | test_all.exs | pilotier/nimler | bc80503d9e300ba59889f533b79dc51962083ba7 | [
"MIT"
] | 83 | 2019-10-20T12:04:33.000Z | 2022-03-17T01:04:26.000Z | test_all.exs | pilotier/nimler | bc80503d9e300ba59889f533b79dc51962083ba7 | [
"MIT"
] | 18 | 2019-10-12T17:56:25.000Z | 2022-03-21T03:05:02.000Z | test_all.exs | pilotier/nimler | bc80503d9e300ba59889f533b79dc51962083ba7 | [
"MIT"
] | 6 | 2020-02-21T14:00:30.000Z | 2021-11-06T04:18:38.000Z | ExUnit.start(autorun: false)
tests = Path.wildcard("tests/**/test.exs")
test_wrappers = Path.wildcard("tests/**/NimlerWrapper.ex")
Enum.each(test_wrappers, fn t -> Code.require_file(t) end)
Enum.each(tests, fn t -> Code.require_file(t) end)
Mix.Compilers.Test.require_and_run(tests, [], formatters: [ExUnit.CLIFormatt... | 29.636364 | 80 | 0.739264 |
5adae3846e1ff6b2fc91fa6c745473b9e7f3bab1 | 105 | ex | Elixir | plugins/one_wiki/lib/one_wiki/settings/wiki.ex | smpallen99/ucx_ucc | 47225f205a6ac4aacdb9bb4f7512dcf4092576ad | [
"MIT"
] | 11 | 2017-05-15T18:35:05.000Z | 2018-02-05T18:27:40.000Z | plugins/one_wiki/lib/one_wiki/settings/wiki.ex | anndream/infinity_one | 47225f205a6ac4aacdb9bb4f7512dcf4092576ad | [
"MIT"
] | 15 | 2017-11-27T10:38:05.000Z | 2018-02-09T20:42:08.000Z | plugins/one_wiki/lib/one_wiki/settings/wiki.ex | anndream/infinity_one | 47225f205a6ac4aacdb9bb4f7512dcf4092576ad | [
"MIT"
] | 4 | 2017-09-13T11:34:16.000Z | 2018-02-26T13:37:06.000Z | defmodule OneWiki.Settings.Wiki do
use OneSettings.Settings, schema: OneWiki.Settings.Schema.Wiki
end
| 21 | 64 | 0.819048 |
5adb050efbc7790b5b60028e9aef09beaae95a9c | 26,286 | exs | Elixir | lib/elixir/test/elixir/kernel_test.exs | chulkilee/elixir | 699231dcad52916a76f38856cbd7cf7c7bdadc51 | [
"Apache-2.0"
] | 1 | 2021-04-28T21:35:01.000Z | 2021-04-28T21:35:01.000Z | lib/elixir/test/elixir/kernel_test.exs | chulkilee/elixir | 699231dcad52916a76f38856cbd7cf7c7bdadc51 | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/kernel_test.exs | chulkilee/elixir | 699231dcad52916a76f38856cbd7cf7c7bdadc51 | [
"Apache-2.0"
] | 1 | 2021-09-30T01:21:02.000Z | 2021-09-30T01:21:02.000Z | Code.require_file("test_helper.exs", __DIR__)
defmodule KernelTest do
use ExUnit.Case, async: true
doctest Kernel
defp empty_list(), do: []
test "=~/2" do
assert "abcd" =~ ~r/c(d)/ == true
assert "abcd" =~ ~r/e/ == false
assert "abcd" =~ ~R/c(d)/ == true
assert "abcd" =~ ~R/e/ == false
... | 27.757128 | 118 | 0.548467 |
5adb08ca2c427556fe7ae731487cd5e9834e5d0e | 1,809 | ex | Elixir | clients/service_management/lib/google_api/service_management/v1/model/list_service_rollouts_response.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/service_management/lib/google_api/service_management/v1/model/list_service_rollouts_response.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/service_management/lib/google_api/service_management/v1/model/list_service_rollouts_response.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... | 36.18 | 132 | 0.746821 |
5adb8d8ede3eb1238a94546ae7be565ac6b3c3e1 | 600 | ex | Elixir | lib/otto/query.ex | juvet/otto | aee3b34029da0f8c232bc79e0febb5339fd3e22b | [
"MIT"
] | 1 | 2019-11-05T06:07:56.000Z | 2019-11-05T06:07:56.000Z | lib/otto/query.ex | juvet/otto | aee3b34029da0f8c232bc79e0febb5339fd3e22b | [
"MIT"
] | 2 | 2019-01-06T18:32:53.000Z | 2019-01-06T18:47:02.000Z | lib/otto/query.ex | juvet/otto | aee3b34029da0f8c232bc79e0febb5339fd3e22b | [
"MIT"
] | null | null | null | defmodule Otto.Query do
defmacro __using__(opts) do
module = Keyword.get(opts, :module)
quote do
use Ecto.Schema
alias Otto.Repo
import Ecto.Changeset
import Ecto.Query
def build(params) do
changeset(struct(unquote(module)), params)
end
def create(params)... | 17.142857 | 50 | 0.553333 |
5adbab208ba51139f57c4a3ac2df6d7d398288c1 | 884 | ex | Elixir | clients/container/lib/google_api/container/v1/metadata.ex | jechol/elixir-google-api | 0290b683dfc6491ca2ef755a80bc329378738d03 | [
"Apache-2.0"
] | null | null | null | clients/container/lib/google_api/container/v1/metadata.ex | jechol/elixir-google-api | 0290b683dfc6491ca2ef755a80bc329378738d03 | [
"Apache-2.0"
] | null | null | null | clients/container/lib/google_api/container/v1/metadata.ex | jechol/elixir-google-api | 0290b683dfc6491ca2ef755a80bc329378738d03 | [
"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.740741 | 74 | 0.75905 |
5adbb053431d44b192591dc9c1db7cde3d34ef8c | 460 | ex | Elixir | lib/atlas/logger/server.ex | lowks/atlas | e01cefa088fe1174d9162f5834156611f1caa594 | [
"MIT"
] | 94 | 2015-01-01T16:17:40.000Z | 2021-12-16T02:53:01.000Z | lib/atlas/logger/server.ex | IdoBn/atlas | e01cefa088fe1174d9162f5834156611f1caa594 | [
"MIT"
] | 2 | 2015-09-22T14:45:26.000Z | 2017-08-29T18:16:04.000Z | lib/atlas/logger/server.ex | IdoBn/atlas | e01cefa088fe1174d9162f5834156611f1caa594 | [
"MIT"
] | 11 | 2015-01-06T02:25:00.000Z | 2021-12-16T03:10:11.000Z | defmodule Atlas.Logger.Server do
use GenServer
def start_link(log_path) do
GenServer.start_link(__MODULE__, [log_path], name: :logger_server)
end
def init([log_path]) do
case File.open(log_path, [:append]) do
{:ok, pid} -> {:ok, pid}
{:error, reason} -> IO.puts "Unable to open log file: #{... | 24.210526 | 85 | 0.645652 |
5adbd1dff16e96d3be9a8dcce7af21f1b5f7897d | 851 | ex | Elixir | phoenixApp/lib/phoenixApp_web/router.ex | felipe-higino/learning-elixir-nlw4 | 5eb093bf205c3f5362189f6cc7cd0d3f0de7076d | [
"MIT"
] | null | null | null | phoenixApp/lib/phoenixApp_web/router.ex | felipe-higino/learning-elixir-nlw4 | 5eb093bf205c3f5362189f6cc7cd0d3f0de7076d | [
"MIT"
] | null | null | null | phoenixApp/lib/phoenixApp_web/router.ex | felipe-higino/learning-elixir-nlw4 | 5eb093bf205c3f5362189f6cc7cd0d3f0de7076d | [
"MIT"
] | null | null | null | defmodule PhoenixAppWeb.Router do
use PhoenixAppWeb, :router
pipeline :api do
plug :accepts, ["json"]
end
scope "/api", PhoenixAppWeb do
pipe_through :api
get "/:filename", WelcomeController, :index
end
# Enables LiveDashboard only for development
#
# If you want to use the LiveDashboard ... | 29.344828 | 70 | 0.717979 |
5adbeacbe8880236396eaa5c0c70e7015b040f6f | 777 | ex | Elixir | lib/swedbankpay_checkout/client/psp/consumers.ex | hooplab/swedbank-pay-checkout-elixir | 91c9034d898907d15c513623519382a0648212c3 | [
"MIT"
] | null | null | null | lib/swedbankpay_checkout/client/psp/consumers.ex | hooplab/swedbank-pay-checkout-elixir | 91c9034d898907d15c513623519382a0648212c3 | [
"MIT"
] | null | null | null | lib/swedbankpay_checkout/client/psp/consumers.ex | hooplab/swedbank-pay-checkout-elixir | 91c9034d898907d15c513623519382a0648212c3 | [
"MIT"
] | null | null | null | defmodule SwedbankpayCheckout.Client.Psp.Consumers do
@moduledoc """
consumer methods, require a `Tesla.Env.client()`, see `SwedbankpayCheckout.create_client/4`.
"""
alias SwedbankpayCheckout.Client.Psp.Consumers
alias SwedbankpayCheckout.Client.Helpers
@doc """
Create a consumer request, for displaying ... | 27.75 | 94 | 0.637066 |
5adbebb011503b19d2066ab9ac2fe809917ee663 | 425 | exs | Elixir | apps/playground_api/config/prod.exs | kimlindholm/elixir_playground | 2a44404996b98d88e40faaee4f6b3a546618a1fd | [
"MIT"
] | null | null | null | apps/playground_api/config/prod.exs | kimlindholm/elixir_playground | 2a44404996b98d88e40faaee4f6b3a546618a1fd | [
"MIT"
] | null | null | null | apps/playground_api/config/prod.exs | kimlindholm/elixir_playground | 2a44404996b98d88e40faaee4f6b3a546618a1fd | [
"MIT"
] | null | null | null | # Since configuration is shared in umbrella projects, this file
# should only configure the :playground_api application itself
# and only for organization purposes. All other config goes to
# the umbrella root.
use Mix.Config
config :playground_api, port: 80
config :playground_api,
basic_auth_username: "${BASIC_AUT... | 32.692308 | 63 | 0.790588 |
5adbf6a4f23c4b66a6e038f482fc4f6adbda5ef4 | 2,993 | ex | Elixir | lib/railway_ipc/publisher/telemetry.ex | learn-co/railway_ipc | aeec16fb5b315fb3d8472b38c6eeea20d20e731a | [
"MIT"
] | 2 | 2021-03-22T19:37:33.000Z | 2022-01-04T08:48:20.000Z | lib/railway_ipc/publisher/telemetry.ex | learn-co/railway_ipc | aeec16fb5b315fb3d8472b38c6eeea20d20e731a | [
"MIT"
] | 10 | 2019-11-29T20:24:24.000Z | 2021-02-26T22:06:13.000Z | lib/railway_ipc/publisher/telemetry.ex | learn-co/railway_ipc | aeec16fb5b315fb3d8472b38c6eeea20d20e731a | [
"MIT"
] | 1 | 2020-01-09T17:13:29.000Z | 2020-01-09T17:13:29.000Z | defmodule RailwayIpc.Publisher.Telemetry do
@moduledoc """
[Telemetry][1] events for publishers.
_This is an internal module, not part of the public API._
[1]: https://github.com/beam-telemetry/telemetry
"""
alias RailwayIpc.Telemetry
@doc """
Dispatched by `RailwayIpc.Publisher.Client` when a mess... | 29.633663 | 86 | 0.694621 |
5adbf8ade8ad1884535fb39213672ce582eaf9c0 | 9,349 | ex | Elixir | clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/object_meta.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/object_meta.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/object_meta.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... | 105.044944 | 1,423 | 0.750027 |
5adc00bae25725c497fc1d7d5c16db8e9edc9bf9 | 3,926 | ex | Elixir | lib/aws/mobile_analytics.ex | ttyerl/aws-elixir | 48f6360fccee5dd587fab7a6efb109a399ff9a46 | [
"Apache-2.0"
] | null | null | null | lib/aws/mobile_analytics.ex | ttyerl/aws-elixir | 48f6360fccee5dd587fab7a6efb109a399ff9a46 | [
"Apache-2.0"
] | null | null | null | lib/aws/mobile_analytics.ex | ttyerl/aws-elixir | 48f6360fccee5dd587fab7a6efb109a399ff9a46 | [
"Apache-2.0"
] | null | null | null | # WARNING: DO NOT EDIT, AUTO-GENERATED CODE!
# See https://github.com/jkakar/aws-codegen for more details.
defmodule AWS.MobileAnalytics do
@moduledoc """
Amazon Mobile Analytics is a service for collecting, visualizing, and
understanding app usage data at scale.
"""
defp client_context(headers, input) do
... | 36.351852 | 91 | 0.646714 |
5adc1988eded9f50cf44d0c6720ea760ad49ef49 | 573 | exs | Elixir | mix.exs | hexedpackets/butters | 81b6de679a04b18dbb1e4243cc8f77d5891f0fb4 | [
"Apache-2.0"
] | 1 | 2019-09-07T16:28:01.000Z | 2019-09-07T16:28:01.000Z | mix.exs | hexedpackets/butters | 81b6de679a04b18dbb1e4243cc8f77d5891f0fb4 | [
"Apache-2.0"
] | null | null | null | mix.exs | hexedpackets/butters | 81b6de679a04b18dbb1e4243cc8f77d5891f0fb4 | [
"Apache-2.0"
] | null | null | null | defmodule Butters.MixProject do
use Mix.Project
def project do
[
app: :butters,
version: "0.1.0",
elixir: "~> 1.7",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_app... | 19.758621 | 82 | 0.588133 |
5adc4e64b2d697a1de36cfec5a72389fa42e13c4 | 2,370 | ex | Elixir | lib/offsite_web.ex | Arp-G/offsite | 31ae9332cead20a045948d8850f68fc9e7ab1db4 | [
"MIT"
] | null | null | null | lib/offsite_web.ex | Arp-G/offsite | 31ae9332cead20a045948d8850f68fc9e7ab1db4 | [
"MIT"
] | null | null | null | lib/offsite_web.ex | Arp-G/offsite | 31ae9332cead20a045948d8850f68fc9e7ab1db4 | [
"MIT"
] | null | null | null | defmodule OffsiteWeb 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 OffsiteWeb, :controller
use OffsiteWeb, :view
The definitions below will be executed for every view,
controller, ... | 21.743119 | 81 | 0.676371 |
5adc5ad02eed66062ef72f91d2b5613b46e3a1e1 | 1,580 | exs | Elixir | test/cadet_web/admin_controllers/admin_user_controller_test.exs | jiayushe/cadet | 66d1ac2a67d891798092c89addbbfe7272de5775 | [
"Apache-2.0"
] | null | null | null | test/cadet_web/admin_controllers/admin_user_controller_test.exs | jiayushe/cadet | 66d1ac2a67d891798092c89addbbfe7272de5775 | [
"Apache-2.0"
] | 10 | 2022-02-24T17:57:38.000Z | 2022-03-31T07:43:05.000Z | test/cadet_web/admin_controllers/admin_user_controller_test.exs | tsiyuk/cadet | 66d1ac2a67d891798092c89addbbfe7272de5775 | [
"Apache-2.0"
] | 1 | 2019-07-17T15:51:58.000Z | 2019-07-17T15:51:58.000Z | defmodule CadetWeb.AdminUserControllerTest do
use CadetWeb.ConnCase
import Cadet.Factory
alias CadetWeb.AdminUserController
test "swagger" do
assert is_map(AdminUserController.swagger_definitions())
assert is_map(AdminUserController.swagger_path_index(nil))
end
describe "GET /admin/users" do
... | 23.58209 | 68 | 0.594937 |
5adc78e6d2f81b43187944a04a2e36e06ddd0f30 | 167 | ex | Elixir | lib/goals.ex | lupinthe14th/codewars | 5c71a1be6dd5c42a6217d70e5cfcd43c6c016ac7 | [
"MIT"
] | null | null | null | lib/goals.ex | lupinthe14th/codewars | 5c71a1be6dd5c42a6217d70e5cfcd43c6c016ac7 | [
"MIT"
] | 70 | 2020-01-07T01:21:38.000Z | 2021-06-18T02:57:39.000Z | lib/goals.ex | lupinthe14th/codewars | 5c71a1be6dd5c42a6217d70e5cfcd43c6c016ac7 | [
"MIT"
] | null | null | null | defmodule Goals do
def goals(la_liga_goals, copa_del_rey_goals, champions_league_goals) do
la_liga_goals + copa_del_rey_goals + champions_league_goals
end
end
| 27.833333 | 73 | 0.826347 |
5adc80e56cff2e716bf69a4f3a3093bbf3c70b30 | 1,715 | ex | Elixir | kousa/lib/broth/message/room/create.ex | jobveldhuis/dogehouse | 78afa9a62f9b243bbdb3a94ae452c08c21b6df40 | [
"MIT"
] | 2 | 2021-05-15T12:46:12.000Z | 2021-05-15T14:15:16.000Z | kousa/lib/broth/message/room/create.ex | jobveldhuis/dogehouse | 78afa9a62f9b243bbdb3a94ae452c08c21b6df40 | [
"MIT"
] | null | null | null | kousa/lib/broth/message/room/create.ex | jobveldhuis/dogehouse | 78afa9a62f9b243bbdb3a94ae452c08c21b6df40 | [
"MIT"
] | null | null | null | defmodule Broth.Message.Room.Create do
use Broth.Message.Call,
reply: __MODULE__
@derive {Jason.Encoder,
only: [:id, :creatorId, :name, :description, :isPrivate, :scheduledRoomId]}
@primary_key {:id, :binary_id, []}
schema "rooms" do
field(:creatorId, :binary_id)
field(:name, :string)
... | 27.66129 | 88 | 0.61691 |
5adc95060c8ea2e8f831fc12207d559dc9e72980 | 258 | ex | Elixir | src/lib/blog_web/plugs/current_user.ex | Bennyville/elixir-blog | 04e25bbd8d050c54e35d83102575cc2ff1fa54ae | [
"MIT"
] | null | null | null | src/lib/blog_web/plugs/current_user.ex | Bennyville/elixir-blog | 04e25bbd8d050c54e35d83102575cc2ff1fa54ae | [
"MIT"
] | 1 | 2021-03-11T00:24:09.000Z | 2021-03-11T00:24:09.000Z | src/lib/blog_web/plugs/current_user.ex | Bennyville/elixir-blog | 04e25bbd8d050c54e35d83102575cc2ff1fa54ae | [
"MIT"
] | null | null | null | defmodule BlogWeb.Plugs.CurrentUser do
import Plug.Conn
def init(opts), do: opts
def call(conn, _opts) do
if current_user = get_session(conn, :current_user) do
assign(conn, :current_user, current_user)
else
conn
end
end
end
| 18.428571 | 57 | 0.686047 |
5adc97108d0a14ac39dfd33a158c7e438d68b876 | 2,628 | exs | Elixir | test/controllers/visitor_controller_test.exs | guofei/embedchat | 6562108acd1d488dde457f28cf01d82b4c5a9bf8 | [
"MIT"
] | 27 | 2016-10-15T12:13:22.000Z | 2021-02-07T20:31:41.000Z | test/controllers/visitor_controller_test.exs | guofei/embedchat | 6562108acd1d488dde457f28cf01d82b4c5a9bf8 | [
"MIT"
] | null | null | null | test/controllers/visitor_controller_test.exs | guofei/embedchat | 6562108acd1d488dde457f28cf01d82b4c5a9bf8 | [
"MIT"
] | 4 | 2016-08-21T15:03:29.000Z | 2019-11-22T13:15:29.000Z | defmodule EmbedChatWeb.VisitorControllerTest do
use EmbedChatWeb.ConnCase
alias EmbedChat.Visitor
@valid_attrs %{email: "some@content", name: "some content", note: "some content"}
@invalid_attrs %{email: "nonmail"}
setup %{conn: conn} do
user = insert_user(username: "test")
room = insert_room(user, ... | 38.647059 | 121 | 0.677321 |
5adcb3ff1ec5cc047675dcb5a2da36b3107e774d | 3,381 | ex | Elixir | lib/steps/patch/recompile_nifs.ex | burrito-elixir/burrito | 30407ab6f216c78cc5f1c5551ca32c54577edfaa | [
"MIT"
] | 192 | 2021-10-29T22:37:08.000Z | 2022-03-31T23:07:36.000Z | lib/steps/patch/recompile_nifs.ex | burrito-elixir/burrito | 30407ab6f216c78cc5f1c5551ca32c54577edfaa | [
"MIT"
] | 25 | 2021-11-02T13:12:43.000Z | 2022-03-31T17:18:38.000Z | lib/steps/patch/recompile_nifs.ex | burrito-elixir/burrito | 30407ab6f216c78cc5f1c5551ca32c54577edfaa | [
"MIT"
] | 9 | 2021-10-31T13:43:54.000Z | 2022-03-15T02:49:15.000Z | defmodule Burrito.Steps.Patch.RecompileNIFs do
alias Burrito.Builder.Context
alias Burrito.Builder.Log
alias Burrito.Builder.Step
alias Burrito.Builder.Target
@behaviour Step
@impl Step
def execute(%Context{} = context) do
if context.target.cross_build do
triplet = Target.make_triplet(context.... | 30.736364 | 113 | 0.598344 |
5add0c7615b4739485af56f111286cd942a86e70 | 83 | exs | Elixir | test/views/layout_view_test.exs | sergey-nechaev/asciinema-server | 64f87acec9c9b45fefa8bed8f70b41f0068ccb2b | [
"Apache-2.0"
] | 1 | 2021-07-07T12:36:10.000Z | 2021-07-07T12:36:10.000Z | test/views/layout_view_test.exs | sergey-nechaev/asciinema-server | 64f87acec9c9b45fefa8bed8f70b41f0068ccb2b | [
"Apache-2.0"
] | null | null | null | test/views/layout_view_test.exs | sergey-nechaev/asciinema-server | 64f87acec9c9b45fefa8bed8f70b41f0068ccb2b | [
"Apache-2.0"
] | null | null | null | defmodule Asciinema.LayoutViewTest do
use AsciinemaWeb.ConnCase, async: true
end
| 20.75 | 40 | 0.831325 |
5add0d50922acf2c769c91ae1393f550706f0948 | 3,126 | exs | Elixir | elixir/queen-attack/test/queen_attack_test.exs | paulfioravanti/exercism | b3bf15814b89b0ef50b9bf062b3c800e80e37e75 | [
"MIT"
] | 6 | 2019-06-19T15:43:20.000Z | 2020-07-17T19:46:09.000Z | elixir/queen-attack/test/queen_attack_test.exs | paulfioravanti/exercism | b3bf15814b89b0ef50b9bf062b3c800e80e37e75 | [
"MIT"
] | 10 | 2021-05-10T21:02:55.000Z | 2021-05-11T20:29:41.000Z | elixir/queen-attack/test/queen_attack_test.exs | paulfioravanti/exercism | b3bf15814b89b0ef50b9bf062b3c800e80e37e75 | [
"MIT"
] | 1 | 2019-06-25T10:42:14.000Z | 2019-06-25T10:42:14.000Z | defmodule QueenAttackTest do
use ExUnit.Case
test "default positions" do
queens = Queens.new()
assert queens.white == {0, 3}
assert queens.black == {7, 3}
end
test "specific placement" do
queens = Queens.new({3, 7}, {6, 1})
assert queens.white == {3, 7}
assert queens.black == {6, 1}
... | 21.265306 | 58 | 0.53231 |
5add230cd76126f8485c036f812b8a4d72c4f0a0 | 2,398 | exs | Elixir | mix.exs | drozdzynski/phoenix_live_dashboard | cb8d3fe1a1733318597d591542b23d2218366f97 | [
"MIT"
] | 2 | 2020-05-07T23:49:26.000Z | 2020-05-10T13:56:03.000Z | mix.exs | dkuku/phoenix_live_dashboard | fcdc98abf1b7c4718d080bfe4c891057a7878aa9 | [
"MIT"
] | null | null | null | mix.exs | dkuku/phoenix_live_dashboard | fcdc98abf1b7c4718d080bfe4c891057a7878aa9 | [
"MIT"
] | 1 | 2021-02-04T03:06:20.000Z | 2021-02-04T03:06:20.000Z | defmodule Phoenix.LiveDashboard.MixProject do
use Mix.Project
@version "0.2.4"
def project do
[
app: :phoenix_live_dashboard,
version: @version,
elixir: "~> 1.7",
compilers: [:phoenix] ++ Mix.compilers(),
elixirc_paths: elixirc_paths(Mix.env()),
deps: deps(),
packag... | 25.784946 | 85 | 0.588824 |
5add29b06d7049184d1536b4190dfb4bef9e6b3e | 5,296 | ex | Elixir | lib/plaid.ex | ethangunderson/plaid-elixir | 7c607a097bd0c23e85b72737dbbe0ec286faf96b | [
"MIT"
] | 50 | 2016-10-19T16:34:27.000Z | 2022-03-17T03:55:54.000Z | lib/plaid.ex | ethangunderson/plaid-elixir | 7c607a097bd0c23e85b72737dbbe0ec286faf96b | [
"MIT"
] | 47 | 2017-11-08T19:19:09.000Z | 2022-03-23T00:53:22.000Z | lib/plaid.ex | ethangunderson/plaid-elixir | 7c607a097bd0c23e85b72737dbbe0ec286faf96b | [
"MIT"
] | 40 | 2016-10-27T14:39:14.000Z | 2022-03-01T01:03:17.000Z | defmodule Plaid do
@moduledoc """
An HTTP Client for Plaid.
[Plaid API Docs](https://plaid.com/docs/api)
"""
use HTTPoison.Base
defmodule MissingClientIdError do
defexception message: """
The `client_id` is required for calls to Plaid. Please either configure `client_id`
... | 30.436782 | 120 | 0.639917 |
5add801703d15ca2e6f17f82d6abf7eb5bcfb37f | 2,032 | exs | Elixir | config/prod.exs | jeojoe/catapalt-chat | 1a8c94bb38535d517837e1e9c53d2e8de0f2b7ae | [
"Apache-2.0"
] | null | null | null | config/prod.exs | jeojoe/catapalt-chat | 1a8c94bb38535d517837e1e9c53d2e8de0f2b7ae | [
"Apache-2.0"
] | null | null | null | config/prod.exs | jeojoe/catapalt-chat | 1a8c94bb38535d517837e1e9c53d2e8de0f2b7ae | [
"Apache-2.0"
] | null | null | null | use Mix.Config
# For production, we configure the host to read the PORT
# from the system environment. Therefore, you will need
# to set PORT=80 before running your server.
#
# You should also configure the url host to something
# meaningful, we use this information when generating URLs.
#
# Finally, we also include t... | 32.774194 | 67 | 0.719488 |
5add99cfee2eefbcb2a1e111bd5b5bc017544f21 | 382 | ex | Elixir | lib/zdashboard_web/views/error_view.ex | gsmlg/dashboard | d38bc8e576d0c2ab590b9ea5b612652cf21972f9 | [
"MIT"
] | 1 | 2020-01-02T07:58:56.000Z | 2020-01-02T07:58:56.000Z | lib/zdashboard_web/views/error_view.ex | gsmlg/dashboard | d38bc8e576d0c2ab590b9ea5b612652cf21972f9 | [
"MIT"
] | 6 | 2020-01-02T10:23:27.000Z | 2021-09-01T12:34:31.000Z | lib/zdashboard_web/views/error_view.ex | gsmlg/dashboard | d38bc8e576d0c2ab590b9ea5b612652cf21972f9 | [
"MIT"
] | null | null | null | defmodule ZdashboardWeb.ErrorView do
use ZdashboardWeb, :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(_t... | 21.222222 | 47 | 0.706806 |
5adddc1a54ed5f978ac3725e19d9d89688f7e3c9 | 3,315 | exs | Elixir | lib/logger/test/logger/erlang_handler_test.exs | kenichi/elixir | 8c27da88c70623cbe516d5310c885943395a82a2 | [
"Apache-2.0"
] | 2 | 2018-11-15T06:38:14.000Z | 2018-11-17T18:03:14.000Z | lib/logger/test/logger/erlang_handler_test.exs | kenichi/elixir | 8c27da88c70623cbe516d5310c885943395a82a2 | [
"Apache-2.0"
] | 1 | 2015-06-09T15:52:43.000Z | 2015-06-09T15:52:43.000Z | lib/logger/test/logger/erlang_handler_test.exs | kenichi/elixir | 8c27da88c70623cbe516d5310c885943395a82a2 | [
"Apache-2.0"
] | 1 | 2018-09-10T23:32:56.000Z | 2018-09-10T23:32:56.000Z | defmodule Logger.ErlangHandlerTest do
use Logger.Case
@moduletag :logger
defmodule CustomTranslator do
def t(:debug, :info, :format, {'hello: ~p', [:ok]}) do
:skip
end
def t(:debug, :info, :format, {'world: ~p', [:ok]}) do
{:ok, "rewritten"}
end
def t(:debug, :info, :report, {:l... | 30.136364 | 84 | 0.591554 |
5addfcb08984f80d551644a71d01c4b87bc1c77a | 1,722 | ex | Elixir | clients/cloud_tasks/lib/google_api/cloud_tasks/v2/model/set_iam_policy_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/cloud_tasks/lib/google_api/cloud_tasks/v2/model/set_iam_policy_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/cloud_tasks/lib/google_api/cloud_tasks/v2/model/set_iam_policy_request.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... | 36.638298 | 310 | 0.748548 |
5ade422a5c01634996483e3515c46be61f62f07c | 728 | ex | Elixir | lib/generate/upload.ex | smiyabe/cwmp_ex | 9db322497aa3208b5985ccf496ada5286cde3925 | [
"Artistic-2.0"
] | 3 | 2017-11-29T05:07:35.000Z | 2019-12-18T17:16:41.000Z | lib/generate/upload.ex | smiyabe/cwmp_ex | 9db322497aa3208b5985ccf496ada5286cde3925 | [
"Artistic-2.0"
] | 1 | 2021-12-02T19:35:28.000Z | 2022-03-29T09:40:52.000Z | lib/generate/upload.ex | smiyabe/cwmp_ex | 9db322497aa3208b5985ccf496ada5286cde3925 | [
"Artistic-2.0"
] | 2 | 2017-11-29T05:07:30.000Z | 2020-11-10T07:10:42.000Z | defimpl CWMP.Protocol.Generate, for: CWMP.Protocol.Messages.Upload do
import XmlBuilder
def generate(req) do
Enum.map([:filetype, :url], fn(f) ->
case Map.fetch(req, f) do
{:ok,x} -> if x == nil do
raise "key #{f} can not be nil"
end
{:error} -> raise "key #{f} must be s... | 28 | 69 | 0.604396 |
5ade582a3d2239ae1b8a33940de56032ac013030 | 463 | exs | Elixir | test/lib/keylex/worker_test.exs | Waasi/keylex | f5220e310d3a7d474f4aa8ca5f462879d80e66c1 | [
"MIT"
] | 1 | 2017-10-20T00:55:04.000Z | 2017-10-20T00:55:04.000Z | test/lib/keylex/worker_test.exs | Waasi/ttf_auth | f5220e310d3a7d474f4aa8ca5f462879d80e66c1 | [
"MIT"
] | null | null | null | test/lib/keylex/worker_test.exs | Waasi/ttf_auth | f5220e310d3a7d474f4aa8ca5f462879d80e66c1 | [
"MIT"
] | null | null | null | defmodule Keylex.WorkerTest do
use ExUnit.Case
setup do
Application.put_env(:ttf_auth, :sender, Keylex.TestHelper.TestMessenger)
{:ok, pid} = Keylex.Worker.start_link("7875555555 ace123", %{from: "from", to: "to", body: "body"})
{:ok, worker: pid}
end
test "expires in 3 seconds", %{worker: worker}... | 28.9375 | 103 | 0.680346 |
5ade64ce6555729839b0e400f61eb4a627a30d72 | 198 | exs | Elixir | search_test.exs | CraigCottingham/UpsideDownLEDs | 129fc0aa9ac1cdb7dd144aa9c40fd0b5c449615e | [
"MIT"
] | 2 | 2016-12-02T16:19:25.000Z | 2017-01-06T00:38:43.000Z | search_test.exs | CraigCottingham/UpsideDownLEDs | 129fc0aa9ac1cdb7dd144aa9c40fd0b5c449615e | [
"MIT"
] | 2 | 2019-12-28T04:01:00.000Z | 2021-04-30T13:12:02.000Z | search_test.exs | CraigCottingham/UpsideDownLEDs | 129fc0aa9ac1cdb7dd144aa9c40fd0b5c449615e | [
"MIT"
] | 1 | 2018-03-17T05:50:40.000Z | 2018-03-17T05:50:40.000Z | defmodule SearchTest do
def go do
ExTwitter.search("upside down", [count: 3])
|> Enum.map(fn tweet -> tweet.text end)
|> Enum.join("\n-----\n")
|> IO.puts
end
end
SearchTest.go
| 18 | 47 | 0.60101 |
5adea3c287af39265a9a8059b838dff6d630efb4 | 829 | ex | Elixir | lib/sanbase_web/graphql/resolvers/featured_item_resolver.ex | santiment/sanbase2 | 9ef6e2dd1e377744a6d2bba570ea6bd477a1db31 | [
"MIT"
] | 81 | 2017-11-20T01:20:22.000Z | 2022-03-05T12:04:25.000Z | lib/sanbase_web/graphql/resolvers/featured_item_resolver.ex | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | 359 | 2017-10-15T14:40:53.000Z | 2022-01-25T13:34:20.000Z | lib/sanbase_web/graphql/resolvers/featured_item_resolver.ex | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | 16 | 2017-11-19T13:57:40.000Z | 2022-02-07T08:13:02.000Z | defmodule SanbaseWeb.Graphql.Resolvers.FeaturedItemResolver do
require Logger
import SanbaseWeb.Graphql.Helpers.Utils, only: [transform_user_trigger: 1]
alias Sanbase.FeaturedItem
def insights(_root, _args, _context) do
{:ok, FeaturedItem.insights()}
end
def watchlists(_root, %{} = args, _context) d... | 25.90625 | 78 | 0.733414 |
5adebeecad301cb751ed01ca3e899aa5ffa83be2 | 21,159 | ex | Elixir | lib/aws/generated/data_brew.ex | justinludwig/aws-elixir | c66dfebecec62587dada50602c31c76d307d812c | [
"Apache-2.0"
] | null | null | null | lib/aws/generated/data_brew.ex | justinludwig/aws-elixir | c66dfebecec62587dada50602c31c76d307d812c | [
"Apache-2.0"
] | null | null | null | lib/aws/generated/data_brew.ex | justinludwig/aws-elixir | c66dfebecec62587dada50602c31c76d307d812c | [
"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.DataBrew do
@moduledoc """
AWS Glue DataBrew is a visual, cloud-scale data-preparation service.
DataBrew simplifies data preparation tasks, targeting data issues that are hard
to spot and... | 19.942507 | 96 | 0.566851 |
5aded400564745c0956b8284ff06cf8dd4bbf091 | 894 | exs | Elixir | diamond/diamond.exs | ravanscafi/exercism-elixir | 0f5c8c923166a0a795c323c7e2d6ccc9da572fcf | [
"MIT"
] | null | null | null | diamond/diamond.exs | ravanscafi/exercism-elixir | 0f5c8c923166a0a795c323c7e2d6ccc9da572fcf | [
"MIT"
] | null | null | null | diamond/diamond.exs | ravanscafi/exercism-elixir | 0f5c8c923166a0a795c323c7e2d6ccc9da572fcf | [
"MIT"
] | null | null | null | defmodule Diamond do
@new_line "\n"
@doc """
Given a letter, it prints a diamond starting with 'A',
with the supplied letter at the widest point.
"""
@spec build_shape(char) :: String.t()
def build_shape(char), do: build_shape(?A, char)
defp build_shape(?A, ?A), do: "A" <> @new_line
# middle
defp... | 22.923077 | 70 | 0.5783 |
5adf0775b7f201af52183b0b9a5d1da8ee2a7ab2 | 903 | exs | Elixir | mix.exs | archydragon/elixir-redislog | 04ad9e0754fa0a26d53726d08d184ab3b033825a | [
"MIT"
] | 1 | 2018-07-17T18:12:30.000Z | 2018-07-17T18:12:30.000Z | mix.exs | archydragon/elixir-redislog | 04ad9e0754fa0a26d53726d08d184ab3b033825a | [
"MIT"
] | null | null | null | mix.exs | archydragon/elixir-redislog | 04ad9e0754fa0a26d53726d08d184ab3b033825a | [
"MIT"
] | null | null | null | defmodule Redislog.MixProject do
use Mix.Project
@version "0.1.0"
@url "https://github.com/archydragon/elixir-redislog"
def project do
[
app: :redislog,
version: @version,
elixir: "~> 1.4",
source_url: @url,
homepage_url: @url,
description: "Redis pubsub backend for sta... | 19.212766 | 62 | 0.534884 |
5adf07e117ade5686ebe0870c8a37b1d1bc01193 | 1,787 | ex | Elixir | clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p4beta1_dominant_colors_annotation.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p4beta1_dominant_colors_annotation.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p4beta1_dominant_colors_annotation.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 34.365385 | 170 | 0.76329 |
5adf2ad9ae247d1f17051d47d1652c95ad823407 | 160 | exs | Elixir | priv/repo/migrations/20180529215143_add_email_to_users_table.exs | turbo-play/phoenix-services | 9d3318c6b5d5ce6dead441758fc86ec34892b0f6 | [
"Apache-2.0"
] | 2 | 2018-07-05T15:13:12.000Z | 2021-12-16T08:58:56.000Z | priv/repo/migrations/20180529215143_add_email_to_users_table.exs | turbo-play/phoenix-services | 9d3318c6b5d5ce6dead441758fc86ec34892b0f6 | [
"Apache-2.0"
] | null | null | null | priv/repo/migrations/20180529215143_add_email_to_users_table.exs | turbo-play/phoenix-services | 9d3318c6b5d5ce6dead441758fc86ec34892b0f6 | [
"Apache-2.0"
] | 2 | 2018-08-13T21:37:00.000Z | 2021-11-10T04:08:26.000Z | defmodule AppApi.Repo.Migrations.AddEmailToUsersTable do
use Ecto.Migration
def change do
alter table(:users) do
add :email, :string
end
end
end
| 16 | 56 | 0.7375 |
5adf40ddb177f8c292c2b0e9978b80998384c774 | 205 | exs | Elixir | priv/repo/migrations/20180415175517_create_posts.exs | latachz/Phoenix-1.3-simple-blog-API-and-Postman-tests | b631858f1908f78ee2ebe8b36ac0b5ccc019ee13 | [
"MIT"
] | null | null | null | priv/repo/migrations/20180415175517_create_posts.exs | latachz/Phoenix-1.3-simple-blog-API-and-Postman-tests | b631858f1908f78ee2ebe8b36ac0b5ccc019ee13 | [
"MIT"
] | null | null | null | priv/repo/migrations/20180415175517_create_posts.exs | latachz/Phoenix-1.3-simple-blog-API-and-Postman-tests | b631858f1908f78ee2ebe8b36ac0b5ccc019ee13 | [
"MIT"
] | null | null | null | defmodule Blog.Repo.Migrations.CreatePosts do
use Ecto.Migration
def change do
create table(:posts) do
add :title, :string
add :content, :string
timestamps()
end
end
end
| 14.642857 | 45 | 0.653659 |
5adf47b85df70a396e65dea0da25cb1f571591dd | 512 | ex | Elixir | lib/ex_dir/exception.ex | team-telnyx/exdir | 7bf81fbaed649ad2738843480c2cceac84f7e714 | [
"Apache-2.0"
] | 8 | 2020-03-19T13:11:13.000Z | 2020-05-12T02:24:18.000Z | lib/ex_dir/exception.ex | team-telnyx/exdir | 7bf81fbaed649ad2738843480c2cceac84f7e714 | [
"Apache-2.0"
] | null | null | null | lib/ex_dir/exception.ex | team-telnyx/exdir | 7bf81fbaed649ad2738843480c2cceac84f7e714 | [
"Apache-2.0"
] | 1 | 2020-03-21T18:24:47.000Z | 2020-03-21T18:24:47.000Z | defmodule ExDir.Error do
defexception [:reason, :path, action: ""]
@impl true
def message(%{action: action, reason: reason, path: path}) do
formatted =
case {action, reason} do
{_action, {:no_translation, raw_name}} ->
"translate filename #{inspect raw_name} in"
{_action, :no... | 24.380952 | 63 | 0.597656 |
5adf5e5e8bc9b16dbea1bed85cfb7a0b2a55f82e | 1,622 | ex | Elixir | apps/customer/lib/customer/web/models/job_source.ex | JaiMali/job_search-1 | 5fe1afcd80aa5d55b92befed2780cd6721837c88 | [
"MIT"
] | 102 | 2017-05-21T18:24:04.000Z | 2022-03-10T12:53:20.000Z | apps/customer/lib/customer/web/models/job_source.ex | JaiMali/job_search-1 | 5fe1afcd80aa5d55b92befed2780cd6721837c88 | [
"MIT"
] | 2 | 2017-05-21T01:53:30.000Z | 2017-12-01T00:27:06.000Z | apps/customer/lib/customer/web/models/job_source.ex | JaiMali/job_search-1 | 5fe1afcd80aa5d55b92befed2780cd6721837c88 | [
"MIT"
] | 18 | 2017-05-22T09:51:36.000Z | 2021-09-24T00:57:01.000Z | defmodule Customer.Web.JobSource do
use Customer.Web, :model
schema "job_sources" do
field :name, :string, virtual: true
field :place, :string, virtual: true
field :job_title, :string
field :title, :string
field :url, :string
field :detail, :string
field :source, :string
field :prio... | 24.953846 | 80 | 0.674476 |
5adf6b2ecaea6d2e97b34ff006b265d5c59e9ca0 | 721 | ex | Elixir | lib/ig/position.ex | frathon/ig | 21d809ddfe389dd7a7b8ea75979510114e31dece | [
"MIT"
] | 1 | 2020-01-21T12:01:29.000Z | 2020-01-21T12:01:29.000Z | lib/ig/position.ex | frathon/ig | 21d809ddfe389dd7a7b8ea75979510114e31dece | [
"MIT"
] | null | null | null | lib/ig/position.ex | frathon/ig | 21d809ddfe389dd7a7b8ea75979510114e31dece | [
"MIT"
] | 1 | 2020-01-27T23:13:11.000Z | 2020-01-27T23:13:11.000Z | defmodule Ig.Position do
@moduledoc """
Struct for representing a positions returned by /positions
```
defstruct [
:contractSize,
:controlledRisk,
:createdDate,
:createdDateUTC,
:currency,
:dealId,
:dealReference,
:direction,
:level,
:limitLevel,
:limitedRiskPremium,
... | 16.022222 | 60 | 0.619972 |
5adf7f0cbc33604675db20d9363403b06335de93 | 811 | ex | Elixir | lib/openflow/instructions/write_metadata.ex | shun159/tres | 1e3e7f78ba1aa4f184d4be70300e5f4703d50a2f | [
"Beerware"
] | 5 | 2019-05-25T02:25:13.000Z | 2020-10-06T17:00:03.000Z | lib/openflow/instructions/write_metadata.ex | shun159/tres | 1e3e7f78ba1aa4f184d4be70300e5f4703d50a2f | [
"Beerware"
] | 5 | 2018-03-29T14:42:10.000Z | 2019-11-19T07:03:09.000Z | lib/openflow/instructions/write_metadata.ex | shun159/tres | 1e3e7f78ba1aa4f184d4be70300e5f4703d50a2f | [
"Beerware"
] | 1 | 2019-03-30T20:48:27.000Z | 2019-03-30T20:48:27.000Z | defmodule Openflow.Instruction.WriteMetadata do
defstruct(value: 0, mask: 0xFFFFFFFFFFFFFFFF)
alias __MODULE__
@type t :: %WriteMetadata{
value: 0..0xFFFFFFFFFFFFFFFF,
mask: 0..0xFFFFFFFFFFFFFFFF
}
@spec new(
value: 0..0xFFFFFFFFFFFFFFFF,
mask: 0..0xFFFFFFFFFFF... | 25.34375 | 73 | 0.596794 |
5adfaac0833c861099efe8058b8bbd3635288482 | 2,968 | exs | Elixir | test/rockelivery/via_cep/client_test.exs | joabehenrique/rockelivery | 02f83fe99df8e27d4e2a6270fecb39a521f2ceaf | [
"MIT"
] | null | null | null | test/rockelivery/via_cep/client_test.exs | joabehenrique/rockelivery | 02f83fe99df8e27d4e2a6270fecb39a521f2ceaf | [
"MIT"
] | null | null | null | test/rockelivery/via_cep/client_test.exs | joabehenrique/rockelivery | 02f83fe99df8e27d4e2a6270fecb39a521f2ceaf | [
"MIT"
] | null | null | null | defmodule Rockelivery.ViaCep.ClientTest do
use ExUnit.Case, async: true
alias Rockelivery.ViaCep.Client
describe "get_cep_info/1" do
setup do
bypass = Bypass.open()
{:ok, bypass: bypass}
end
test "when there is a valid cep, returns the cep info", %{bypass: bypass} do
cep = "01001... | 23.744 | 80 | 0.532008 |
5adff307f6c69db0e149acfe8cfed0978b17b54c | 1,585 | ex | Elixir | apps/url_dispatcher/lib/url_dispatcher/plug.ex | vanmil/ewallet | 6c1aca95a83e0a9d93007670a40d8c45764a8122 | [
"Apache-2.0"
] | null | null | null | apps/url_dispatcher/lib/url_dispatcher/plug.ex | vanmil/ewallet | 6c1aca95a83e0a9d93007670a40d8c45764a8122 | [
"Apache-2.0"
] | null | null | null | apps/url_dispatcher/lib/url_dispatcher/plug.ex | vanmil/ewallet | 6c1aca95a83e0a9d93007670a40d8c45764a8122 | [
"Apache-2.0"
] | null | null | null | defmodule UrlDispatcher.Plug do
@moduledoc false
import Plug.Conn, only: [resp: 3, halt: 1, put_status: 2]
import Phoenix.Controller, only: [json: 2, redirect: 2]
alias Plug.Static
@public_folders ~w(uploads swagger)
def init(options), do: options
def call(conn, _opts), do: handle_request(conn.request_p... | 25.15873 | 87 | 0.613249 |
5ae01c478725bc7fc1457d552640de551c01fc48 | 601 | ex | Elixir | apps/api/lib/api_web/controllers/artifact_controller.ex | svilenkov/plural | ac6c6cc15ac4b66a3b5e32ed4a7bee4d46d1f026 | [
"Apache-2.0"
] | 1 | 2021-12-13T09:43:15.000Z | 2021-12-13T09:43:15.000Z | apps/api/lib/api_web/controllers/artifact_controller.ex | svilenkov/plural | ac6c6cc15ac4b66a3b5e32ed4a7bee4d46d1f026 | [
"Apache-2.0"
] | null | null | null | apps/api/lib/api_web/controllers/artifact_controller.ex | svilenkov/plural | ac6c6cc15ac4b66a3b5e32ed4a7bee4d46d1f026 | [
"Apache-2.0"
] | null | null | null | defmodule ApiWeb.ArtifactController do
use ApiWeb, :controller
import ApiWeb.Plugs.ReverseProxy
alias Core.Schema.{Artifact, Repository}
alias Core.Services.Repositories
def show(conn, %{"name" => name, "repository" => repo, "platform" => plat, "arch" => arch}) do
with %Repository{id: id} <- Repositories... | 37.5625 | 96 | 0.682196 |
5ae02a6b1b8e331c86c552734fc7ee6daaf057ed | 132 | exs | Elixir | src/apps/guild/test/guild_test.exs | fortelabsinc/PlayerExchange | 442629df9716b45dd31f2bb1127309f4f9d2b0ee | [
"MIT"
] | null | null | null | src/apps/guild/test/guild_test.exs | fortelabsinc/PlayerExchange | 442629df9716b45dd31f2bb1127309f4f9d2b0ee | [
"MIT"
] | 42 | 2020-04-28T20:39:12.000Z | 2022-02-27T03:54:44.000Z | src/apps/guild/test/guild_test.exs | fortelabsinc/PlayerExchange | 442629df9716b45dd31f2bb1127309f4f9d2b0ee | [
"MIT"
] | null | null | null | defmodule GuildTest do
use ExUnit.Case
doctest Guild
test "greets the world" do
assert Guild.hello() == :world
end
end
| 14.666667 | 34 | 0.69697 |
5ae049111d446de680cf1e86a01fa0bd17f5ea73 | 1,328 | exs | Elixir | apps/omg_rpc/config/dev.exs | hoardexchange/elixir-omg | 423528699d467f1cc0d02c596290ab907af38c2c | [
"Apache-2.0"
] | null | null | null | apps/omg_rpc/config/dev.exs | hoardexchange/elixir-omg | 423528699d467f1cc0d02c596290ab907af38c2c | [
"Apache-2.0"
] | null | null | null | apps/omg_rpc/config/dev.exs | hoardexchange/elixir-omg | 423528699d467f1cc0d02c596290ab907af38c2c | [
"Apache-2.0"
] | 2 | 2020-06-07T11:14:54.000Z | 2020-08-02T07:36:32.000Z | use Mix.Config
# For development, we disable any cache and enable
# debugging and code reloading.
#
# The watchers configuration can be used to run external
# watchers to your application. For example, we use it
# with webpack to recompile .js and .css sources.
config :omg_rpc, OMG.RPC.Web.Endpoint,
http: [port: 965... | 28.869565 | 68 | 0.715361 |
5ae0727198614bde0986910914ff5bffc4c3aead | 1,702 | ex | Elixir | lib/mix/tasks/triplex.mysql.install.ex | felipe-kosouski/triplex | daa68037217a17eedf9eef4c9e8ca88da4ad8870 | [
"MIT"
] | null | null | null | lib/mix/tasks/triplex.mysql.install.ex | felipe-kosouski/triplex | daa68037217a17eedf9eef4c9e8ca88da4ad8870 | [
"MIT"
] | null | null | null | lib/mix/tasks/triplex.mysql.install.ex | felipe-kosouski/triplex | daa68037217a17eedf9eef4c9e8ca88da4ad8870 | [
"MIT"
] | null | null | null | defmodule Mix.Tasks.Triplex.Mysql.Install do
@moduledoc """
Generates a migration to create the tenant table
in the default database (MySQL only).
"""
use Mix.Task
require Mix.Generator
alias Ecto.Migrator
alias Ecto.Adapters.MySQL
alias Mix.Ecto
alias Mix.Generator
alias Mix.Project
@migrat... | 25.029412 | 89 | 0.641598 |
5ae0764cccc1aad5a5e37e52fbf35f09dbe60139 | 144 | exs | Elixir | crawler_g1/test/crawler_g1_test.exs | Tilzen/crawler-g1-ex | 6145843674495d157e533fa751b00dc2030f2a23 | [
"BSD-3-Clause"
] | null | null | null | crawler_g1/test/crawler_g1_test.exs | Tilzen/crawler-g1-ex | 6145843674495d157e533fa751b00dc2030f2a23 | [
"BSD-3-Clause"
] | null | null | null | crawler_g1/test/crawler_g1_test.exs | Tilzen/crawler-g1-ex | 6145843674495d157e533fa751b00dc2030f2a23 | [
"BSD-3-Clause"
] | null | null | null | defmodule CrawlerG1Test do
use ExUnit.Case
doctest CrawlerG1
test "greets the world" do
assert CrawlerG1.hello() == :world
end
end
| 16 | 38 | 0.722222 |
5ae095006639bed22d0e6e237f76872c345ac749 | 2,468 | exs | Elixir | test/elixir_blog/comments/comments_test.exs | xorvo/elixir_blog | 67123c05eb4cacfa482604ce62c4f5a7e9bc1690 | [
"MIT"
] | null | null | null | test/elixir_blog/comments/comments_test.exs | xorvo/elixir_blog | 67123c05eb4cacfa482604ce62c4f5a7e9bc1690 | [
"MIT"
] | null | null | null | test/elixir_blog/comments/comments_test.exs | xorvo/elixir_blog | 67123c05eb4cacfa482604ce62c4f5a7e9bc1690 | [
"MIT"
] | null | null | null | defmodule ElixirBlog.CommentsTest do
use ElixirBlog.DataCase
alias ElixirBlog.Comments
describe "comments" do
alias ElixirBlog.Comments.Comment
@valid_attrs %{article_id: 42, body: "some body", title: "some title", user_id: 42}
@update_attrs %{article_id: 43, body: "some updated body", title: "some... | 34.277778 | 104 | 0.680308 |
5ae0dd936963ba19881523ffa3e62845299a6d9a | 664 | ex | Elixir | lib/ex_twilio/resources/sip_ip_address.ex | john-griffin/ex_twilio | 75c018094fbfafdd140c9a90d6306b8d952c1a75 | [
"MIT"
] | null | null | null | lib/ex_twilio/resources/sip_ip_address.ex | john-griffin/ex_twilio | 75c018094fbfafdd140c9a90d6306b8d952c1a75 | [
"MIT"
] | null | null | null | lib/ex_twilio/resources/sip_ip_address.ex | john-griffin/ex_twilio | 75c018094fbfafdd140c9a90d6306b8d952c1a75 | [
"MIT"
] | null | null | null | defmodule ExTwilio.SipIpAddress do
@moduledoc """
Represents an SIP IpAddress in the Twilio API.
- [Twilio docs](https://www.twilio.com/docs/api/rest/ip-access-control-list#subresources)
"""
defstruct sid: nil,
account_sid: nil,
friendly_name: nil,
ip_address: nil,
... | 22.896552 | 91 | 0.626506 |
5ae0e1dd35674c6b255ca5a4311a3c3af0480426 | 1,077 | exs | Elixir | config/config.exs | alloverse/alloverse_dashboard | 9d3e2213eebade1d8b04f3fdd2bb9f26165956bd | [
"BSD-2-Clause"
] | null | null | null | config/config.exs | alloverse/alloverse_dashboard | 9d3e2213eebade1d8b04f3fdd2bb9f26165956bd | [
"BSD-2-Clause"
] | 1 | 2021-03-10T11:40:47.000Z | 2021-03-10T11:40:47.000Z | config/config.exs | alloverse/alloverse_dashboard | 9d3e2213eebade1d8b04f3fdd2bb9f26165956bd | [
"BSD-2-Clause"
] | 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.
# General application configuration
use Mix.Config
config :places_alloverse_com,
ecto_repos: [Pla... | 34.741935 | 86 | 0.783658 |
5ae0e93482ecd3981d63e17d628a57dca68d09b7 | 966 | ex | Elixir | implementations/elixir/ockam/ockam/lib/ockam/messaging/confirm_pipe/wrapper.ex | twittner/ockam | 96eadf99da42f7c35539c6e29010a657c579ccba | [
"Apache-2.0"
] | null | null | null | implementations/elixir/ockam/ockam/lib/ockam/messaging/confirm_pipe/wrapper.ex | twittner/ockam | 96eadf99da42f7c35539c6e29010a657c579ccba | [
"Apache-2.0"
] | 23 | 2021-10-12T16:43:06.000Z | 2022-03-23T22:07:22.000Z | implementations/elixir/ockam/ockam/lib/ockam/messaging/confirm_pipe/wrapper.ex | twittner/ockam | 96eadf99da42f7c35539c6e29010a657c579ccba | [
"Apache-2.0"
] | 1 | 2021-12-01T19:40:11.000Z | 2021-12-01T19:40:11.000Z | defmodule Ockam.Messaging.ConfirmPipe.Wrapper do
@moduledoc """
Resend pipe message wrapper.
Wraps message with a send reference (integer)
"""
## Message is encoded with ockam wire protocol
## and combined with the ref using the following BARE schema
@bare_schema {:struct, [ref: :uint, data: :data]}
... | 27.6 | 94 | 0.632505 |
5ae0fde165eb42a0410d6db1aa83435a70146a01 | 1,068 | exs | Elixir | config/config.exs | ruhlio/athel | c06a317f38ef7fa28dcb8b1f23889a01c4aa6538 | [
"Apache-2.0"
] | 14 | 2016-09-12T02:45:12.000Z | 2021-02-08T04:13:29.000Z | config/config.exs | ruhlio/athel | c06a317f38ef7fa28dcb8b1f23889a01c4aa6538 | [
"Apache-2.0"
] | 3 | 2016-09-12T05:17:35.000Z | 2016-09-14T16:35:04.000Z | config/config.exs | ruhlio/athel | c06a317f38ef7fa28dcb8b1f23889a01c4aa6538 | [
"Apache-2.0"
] | 1 | 2018-02-12T04:30:52.000Z | 2018-02-12T04:30:52.000Z | # 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
config :phoenix, :json_library, Jason
# General application configuration
config :at... | 29.666667 | 86 | 0.751873 |
5ae124035d37c2a1897e3ce46db579d6a201664e | 1,367 | exs | Elixir | mix.exs | nallwhy/uni_pg | ad661d1e39a3020b74151293ae063334db4d45fc | [
"MIT"
] | 1 | 2021-08-06T04:56:15.000Z | 2021-08-06T04:56:15.000Z | mix.exs | nallwhy/uni_pg | ad661d1e39a3020b74151293ae063334db4d45fc | [
"MIT"
] | null | null | null | mix.exs | nallwhy/uni_pg | ad661d1e39a3020b74151293ae063334db4d45fc | [
"MIT"
] | 1 | 2021-07-12T14:12:12.000Z | 2021-07-12T14:12:12.000Z | defmodule UniPg.MixProject do
use Mix.Project
def project do
[
app: :uni_pg,
version: "0.2.0",
elixir: "~> 1.7",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
deps: deps(),
package: package(),
description: "Compatibility layer for ... | 23.169492 | 87 | 0.565472 |
5ae141a717d1bbe104ce8b81d4412b74666cc643 | 11,266 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/interconnect_attachment.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/interconnect_attachment.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/interconnect_attachment.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... | 76.121622 | 575 | 0.724658 |
5ae19b1d46d89deaa99a54c00261ae0cbc2d6b1d | 173 | ex | Elixir | lib/user_service_web/views/pow_email_confirmation/mailer_view.ex | sb8244/pow_starter_pack | 82e16c3e4139ecc85295078b54024f58f95ab794 | [
"MIT"
] | 13 | 2020-03-31T21:45:40.000Z | 2021-02-13T12:17:22.000Z | lib/user_service_web/views/pow_email_confirmation/mailer_view.ex | sb8244/pow_starter_pack | 82e16c3e4139ecc85295078b54024f58f95ab794 | [
"MIT"
] | 1 | 2021-03-10T12:57:21.000Z | 2021-03-10T12:57:21.000Z | lib/user_service_web/views/pow_email_confirmation/mailer_view.ex | sb8244/pow_starter_pack | 82e16c3e4139ecc85295078b54024f58f95ab794 | [
"MIT"
] | 1 | 2020-04-28T15:41:56.000Z | 2020-04-28T15:41:56.000Z | defmodule UserServiceWeb.PowEmailConfirmation.MailerView do
use UserServiceWeb, :mailer_view
def subject(:email_confirmation, _assigns), do: "Welcome to APP_NAME!"
end
| 28.833333 | 72 | 0.815029 |
5ae19ce388cf9124945c2b364ab0e2e7818e74f1 | 3,851 | ex | Elixir | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_transformation_summary.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_transformation_summary.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_transformation_summary.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... | 54.239437 | 309 | 0.75435 |
5ae19e046dfcd90527e7cbc8663eedc54e3aa1db | 2,452 | exs | Elixir | test/updater/endpoint_test.exs | ityonemo/Exaggerate | 9ae2ec85de0c1e7e7e5baed6d880fc139d87b255 | [
"MIT"
] | null | null | null | test/updater/endpoint_test.exs | ityonemo/Exaggerate | 9ae2ec85de0c1e7e7e5baed6d880fc139d87b255 | [
"MIT"
] | 3 | 2019-09-10T01:44:19.000Z | 2019-10-24T16:42:03.000Z | test/updater/endpoint_test.exs | ityonemo/Exaggerate | 9ae2ec85de0c1e7e7e5baed6d880fc139d87b255 | [
"MIT"
] | null | null | null | defmodule ExaggerateTest.Updater.EndpointTest do
use ExUnit.Case
@updated_routes Jason.decode!("""
{
"openapi": "3.0",
"info": {
"title": "api",
"version": "0.1.0"
},
"consumes": [
"application/json"
],
"basePath": "/",
"produces": [
"application/json"
],
... | 22.09009 | 98 | 0.578711 |
5ae1b3149b4926ab5e44d7db87fdcffdc8cf50fd | 2,158 | exs | Elixir | test/ex_saferpay/secure_alias_store_test.exs | jshmrtn/ex-saferpay | 263fc6dacf5b2741eb3fff33cf8ed405637d170a | [
"MIT"
] | 1 | 2017-12-12T17:09:02.000Z | 2017-12-12T17:09:02.000Z | test/ex_saferpay/secure_alias_store_test.exs | jshmrtn/ex-saferpay | 263fc6dacf5b2741eb3fff33cf8ed405637d170a | [
"MIT"
] | 4 | 2017-12-12T17:08:28.000Z | 2018-03-01T08:04:56.000Z | test/ex_saferpay/secure_alias_store_test.exs | jshmrtn/ex-saferpay | 263fc6dacf5b2741eb3fff33cf8ed405637d170a | [
"MIT"
] | null | null | null | defmodule ExSaferpay.SecureAliasStoreTest do
@moduledoc false
use ExSaferpay.ResponseMockCase
alias ExSaferpay.SecureAliasStore
alias ExSaferpay.Request
alias ExSaferpay.Response
doctest SecureAliasStore
describe "insert/1" do
@tag response_mocks: %{
{:post, "/Payment/v1/Alias/Insert"} =>... | 29.162162 | 93 | 0.589435 |
5ae1f09d16fa5f844668315b65ac7cb2cf322e10 | 24,917 | ex | Elixir | lib/consumer.ex | vthang95/gen_rmq | 24c460ed0a676c1433786d4a86c2a860bb02498c | [
"MIT"
] | null | null | null | lib/consumer.ex | vthang95/gen_rmq | 24c460ed0a676c1433786d4a86c2a860bb02498c | [
"MIT"
] | null | null | null | lib/consumer.ex | vthang95/gen_rmq | 24c460ed0a676c1433786d4a86c2a860bb02498c | [
"MIT"
] | null | null | null | defmodule GenRMQ.Consumer do
@moduledoc """
A behaviour module for implementing the RabbitMQ consumer.
It will:
* setup RabbitMQ connection / channel and keep them in a state
* create (if does not exist) a queue and bind it to an exchange
* create deadletter queue and exchange
* handle reconnections
* ... | 33.717185 | 160 | 0.657182 |
5ae21a8b4b944a20939f44b08b1007c2c1bc3e94 | 333 | exs | Elixir | farmbot_core/test/asset/sequence_test.exs | adamswsk/farmbot_os | d177d3b74888c1e7bcbf8f8595818708ee97f73b | [
"MIT"
] | null | null | null | farmbot_core/test/asset/sequence_test.exs | adamswsk/farmbot_os | d177d3b74888c1e7bcbf8f8595818708ee97f73b | [
"MIT"
] | null | null | null | farmbot_core/test/asset/sequence_test.exs | adamswsk/farmbot_os | d177d3b74888c1e7bcbf8f8595818708ee97f73b | [
"MIT"
] | null | null | null | defmodule FarmbotCore.Asset.SequenceTest do
use ExUnit.Case, async: true
alias FarmbotCore.Asset.Sequence
@expected_keys [:id, :name, :kind, :args, :body]
test "render/1" do
result = Sequence.render(%Sequence{})
mapper = fn key -> assert Map.has_key?(result, key) end
Enum.map(@expected_keys, mappe... | 25.615385 | 59 | 0.6997 |
5ae2345da8072a648e697b0e6da764f90d7707df | 244 | exs | Elixir | test/definition_table_test.exs | jwhiteman/scheme | ce25fb370254c654b6a226e0b0d3eb881ed2cf99 | [
"MIT"
] | 45 | 2015-06-26T02:47:21.000Z | 2022-02-03T23:18:59.000Z | test/definition_table_test.exs | jwhiteman/scheme | ce25fb370254c654b6a226e0b0d3eb881ed2cf99 | [
"MIT"
] | null | null | null | test/definition_table_test.exs | jwhiteman/scheme | ce25fb370254c654b6a226e0b0d3eb881ed2cf99 | [
"MIT"
] | 7 | 2015-07-13T23:55:52.000Z | 2018-02-06T10:39:58.000Z | defmodule DefinitionTableTest do
use ExUnit.Case
import Scheme.DefinitionTable
test "adding definitions" do
start_link
put(:sadd1, [:lambda, [:x], [:add1, :x]])
assert get(:sadd1) == [:lambda, [:x], [:add1, :x]]
end
end
| 17.428571 | 54 | 0.635246 |
5ae2402e4ef3256ddfc20c99f10a75fe927c0a69 | 601 | ex | Elixir | lib/swedbankpay_checkout/client/psp/payment_orders/reverse_response.ex | hooplab/swedbank-pay-checkout-elixir | 91c9034d898907d15c513623519382a0648212c3 | [
"MIT"
] | null | null | null | lib/swedbankpay_checkout/client/psp/payment_orders/reverse_response.ex | hooplab/swedbank-pay-checkout-elixir | 91c9034d898907d15c513623519382a0648212c3 | [
"MIT"
] | null | null | null | lib/swedbankpay_checkout/client/psp/payment_orders/reverse_response.ex | hooplab/swedbank-pay-checkout-elixir | 91c9034d898907d15c513623519382a0648212c3 | [
"MIT"
] | null | null | null | defmodule SwedbankpayCheckout.Client.Psp.PaymentOrders.ReverseResponse do
@moduledoc """
"""
@typedoc """
root response for creating a reversal
See https://developer.swedbankpay.com/checkout/after-payment
"""
@type t :: %__MODULE__{
:payment => String.t(),
:reversals => SwedbankpayCh... | 21.464286 | 86 | 0.670549 |
5ae2455d2ccc4cb7e2e4ca7da2f8e86172a53323 | 377 | exs | Elixir | sublime_completion/mix.exs | binaryseed/ElixirSublime | 77813881fb2cd12bd5604c8b2c0065598ffc60a0 | [
"MIT"
] | 282 | 2015-01-01T13:55:25.000Z | 2021-12-01T21:52:46.000Z | sublime_completion/mix.exs | Jason-Cooke/ElixirSublime | 77813881fb2cd12bd5604c8b2c0065598ffc60a0 | [
"MIT"
] | 30 | 2015-01-02T01:39:31.000Z | 2020-11-06T18:21:03.000Z | sublime_completion/mix.exs | Jason-Cooke/ElixirSublime | 77813881fb2cd12bd5604c8b2c0065598ffc60a0 | [
"MIT"
] | 33 | 2015-01-11T04:56:03.000Z | 2020-08-01T08:10:12.000Z | defmodule SublimeCompletion.Mixfile do
use Mix.Project
def project do
[
app: :sublime_completion,
version: "0.0.1",
elixir: "~> 1.0",
deps: deps
]
end
def application do
[
applications: [:iex, :logger, :poison],
mod: {SublimeCompletion, []}
]
end
defp d... | 14.5 | 45 | 0.533156 |
5ae28b1cafa2c2c0c91a80b15586d215e1a1cf55 | 459 | exs | Elixir | discuss/config/test.exs | hiroshisiq/elixir-sandbox | 3f014d2f15ae1eeda1c22db30ef111cbc22e9afc | [
"MIT"
] | null | null | null | discuss/config/test.exs | hiroshisiq/elixir-sandbox | 3f014d2f15ae1eeda1c22db30ef111cbc22e9afc | [
"MIT"
] | null | null | null | discuss/config/test.exs | hiroshisiq/elixir-sandbox | 3f014d2f15ae1eeda1c22db30ef111cbc22e9afc | [
"MIT"
] | null | null | null | use Mix.Config
# Configure your database
config :discuss, Discuss.Repo,
username: "postgres",
password: "postgres",
database: "discuss_test",
hostname: "localhost",
pool: Ecto.Adapters.SQL.Sandbox
# We don't run a server during test. If one is required,
# you can enable the server option below.
config :disc... | 24.157895 | 56 | 0.732026 |
5ae28df22db26a2a934a01fe66b66c0870d28d6c | 4,178 | exs | Elixir | apps/pipeline/test/unit/pipeline/writer/s3_writer/s3_safe_json_test.exs | calebcarroll1/smartcitiesdata | b0f03496f6c592c82ba14aebf6c5996311cf3cd0 | [
"Apache-2.0"
] | 26 | 2019-09-20T23:54:45.000Z | 2020-08-20T14:23:32.000Z | apps/pipeline/test/unit/pipeline/writer/s3_writer/s3_safe_json_test.exs | calebcarroll1/smartcitiesdata | b0f03496f6c592c82ba14aebf6c5996311cf3cd0 | [
"Apache-2.0"
] | 757 | 2019-08-15T18:15:07.000Z | 2020-09-18T20:55:31.000Z | apps/pipeline/test/unit/pipeline/writer/s3_writer/s3_safe_json_test.exs | calebcarroll1/smartcitiesdata | b0f03496f6c592c82ba14aebf6c5996311cf3cd0 | [
"Apache-2.0"
] | 9 | 2019-11-12T16:43:46.000Z | 2020-03-25T16:23:16.000Z | defmodule Pipeline.Writer.S3Writer.S3SafeJsonTest do
use ExUnit.Case
use Placebo
alias Pipeline.Writer.S3Writer.S3SafeJson
describe "build/2" do
test "correctly maps integer and string fields" do
data = %{
"a_date" => "2020-02-11T00:00:00Z",
"a_integer" => 66_251,
"a_list" =>... | 32.897638 | 115 | 0.582336 |
5ae291c9d67dde6f0d0763c17c382211eaf142f7 | 2,035 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/operation_aggregated_list_warning_data.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/compute/lib/google_api/compute/v1/model/operation_aggregated_list_warning_data.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/compute/lib/google_api/compute/v1/model/operation_aggregated_list_warning_data.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.7 | 527 | 0.742998 |
5ae2a53bb16ae4e906b5d4d4c5b79173b2cfb431 | 3,311 | ex | Elixir | lib/funnel/client/connection.ex | indutny/funnel | 4d7322e517131aa0c8b222d898f8e2e970f3ce1e | [
"MIT"
] | 2 | 2021-04-27T01:39:01.000Z | 2021-04-27T02:57:17.000Z | lib/funnel/client/connection.ex | indutny/funnel | 4d7322e517131aa0c8b222d898f8e2e970f3ce1e | [
"MIT"
] | 5 | 2021-04-25T02:13:36.000Z | 2021-04-26T00:49:36.000Z | lib/funnel/client/connection.ex | indutny/funnel | 4d7322e517131aa0c8b222d898f8e2e970f3ce1e | [
"MIT"
] | null | null | null | defmodule Funnel.Client.Connection do
use TypedStruct
use GenServer
require Logger
@type config() :: Funnel.Client.Config.t()
@type t() :: FunnelSMTP.Connection.t()
@behaviour FunnelSMTP.Connection
@spec start_link(GenServer.options()) :: GenServer.on_start()
def start_link(opts \\ []) do
GenSer... | 23.65 | 80 | 0.609484 |
5ae2bec0ee59f675c80d4822f338e5a29d2227b2 | 10,307 | ex | Elixir | clients/content/lib/google_api/content/v2/api/orderpayments.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/api/orderpayments.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/api/orderpayments.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 41.393574 | 170 | 0.68468 |
5ae2dad477c6f09f96f07938a7ae53881ae9e129 | 92 | exs | Elixir | test/exampleElixir_web/views/page_view_test.exs | ruyjfs/example-elixir | 9737205e4a548f2118f32ff45dd4f2d67a00c54a | [
"Apache-2.0"
] | null | null | null | test/exampleElixir_web/views/page_view_test.exs | ruyjfs/example-elixir | 9737205e4a548f2118f32ff45dd4f2d67a00c54a | [
"Apache-2.0"
] | null | null | null | test/exampleElixir_web/views/page_view_test.exs | ruyjfs/example-elixir | 9737205e4a548f2118f32ff45dd4f2d67a00c54a | [
"Apache-2.0"
] | null | null | null | defmodule ExampleElixirWeb.PageViewTest do
use ExampleElixirWeb.ConnCase, async: true
end
| 23 | 44 | 0.847826 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.