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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e8f1edc9556e8328ee5eb9ea45f8d91f56974548 | 5,146 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v28/api/video_formats.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v28/api/video_formats.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v28/api/video_formats.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"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... | 38.984848 | 170 | 0.686358 |
e8f1ee0e227c1825360388765aa095e20d209b5b | 653 | exs | Elixir | test/print_test.exs | juancgalvis/sobelow | 9ae3874c26ab7cfa6c8a8517ccd02af98e187585 | [
"Apache-2.0"
] | 1,305 | 2017-05-12T21:09:40.000Z | 2022-03-31T04:31:49.000Z | test/print_test.exs | juancgalvis/sobelow | 9ae3874c26ab7cfa6c8a8517ccd02af98e187585 | [
"Apache-2.0"
] | 95 | 2017-05-15T09:45:41.000Z | 2022-03-23T03:35:48.000Z | test/print_test.exs | juancgalvis/sobelow | 9ae3874c26ab7cfa6c8a8517ccd02af98e187585 | [
"Apache-2.0"
] | 86 | 2017-05-15T20:18:59.000Z | 2022-02-11T22:10:34.000Z | defmodule SobelowTest.PrintTest do
use ExUnit.Case
import ExUnit.CaptureIO
alias Sobelow.RCE.CodeModule
@metafile %{filename: "test.ex", is_controller?: true}
setup do
Application.put_env(:sobelow, :format, "txt")
Sobelow.Fingerprint.start_link()
:ok
end
test "Prints variables with map acc... | 21.064516 | 93 | 0.669219 |
e8f1f4d5637c71a3d9616845adee09821760a0da | 1,359 | ex | Elixir | lib/projector.ex | IanLuites/kvasir_projector | 7a6d7699f41bece19109b3bd1cbb5ee045ddb88e | [
"MIT"
] | 1 | 2020-09-03T08:31:15.000Z | 2020-09-03T08:31:15.000Z | lib/projector.ex | IanLuites/kvasir_projector | 7a6d7699f41bece19109b3bd1cbb5ee045ddb88e | [
"MIT"
] | null | null | null | lib/projector.ex | IanLuites/kvasir_projector | 7a6d7699f41bece19109b3bd1cbb5ee045ddb88e | [
"MIT"
] | null | null | null | defmodule Kvasir.Projector do
@moduledoc """
Documentation for Kvasir.Projector.
"""
defmodule Stateful do
@callback apply(Kvasir.Event.t(), state :: any) :: {:ok, any} | {:error, atom}
end
defmodule Stateless do
@callback apply(Kvasir.Event.t()) :: :ok | {:error, atom}
end
defmacro __using__... | 23.033898 | 82 | 0.551876 |
e8f2097e969ef4a25e83752e144f95097dcd3561 | 1,475 | ex | Elixir | clients/health_care/lib/google_api/health_care/v1/model/google_cloud_healthcare_v1_deidentify_deidentify_dicom_store_summary.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/health_care/lib/google_api/health_care/v1/model/google_cloud_healthcare_v1_deidentify_deidentify_dicom_store_summary.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/health_care/lib/google_api/health_care/v1/model/google_cloud_healthcare_v1_deidentify_deidentify_dicom_store_summary.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"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... | 31.382979 | 103 | 0.781017 |
e8f2118eefcd0fcb53dbb5a521aa6174456fadc1 | 464 | exs | Elixir | priv/repo/migrations/20180130064511_create_quotes.exs | graffic/wanon-elixir | 65fcde17cbbeb1af3fda5f6423dba112dfa3b9a9 | [
"MIT"
] | 1 | 2018-11-28T07:44:28.000Z | 2018-11-28T07:44:28.000Z | priv/repo/migrations/20180130064511_create_quotes.exs | graffic/wanon-elixir | 65fcde17cbbeb1af3fda5f6423dba112dfa3b9a9 | [
"MIT"
] | 1 | 2018-10-24T20:59:09.000Z | 2018-10-24T20:59:09.000Z | priv/repo/migrations/20180130064511_create_quotes.exs | graffic/wanon-elixir | 65fcde17cbbeb1af3fda5f6423dba112dfa3b9a9 | [
"MIT"
] | null | null | null | defmodule Wanon.Repo.Migrations.CreateQuotes do
use Ecto.Migration
def change do
create table("quote") do
add :creator, :map, null: false
add :chat_id, :integer, null: false
timestamps(updated_at: false)
end
create table("quote_entry") do
add :order, :integer, null: false
... | 23.2 | 53 | 0.646552 |
e8f2689d5140a70838b36aa3e9875076a9f91eac | 1,282 | ex | Elixir | lib/challenge_web/views/message_view.ex | juan-b-challenge/challenge | 4cd55084067891ff1a86f827294dad05122f1059 | [
"MIT"
] | null | null | null | lib/challenge_web/views/message_view.ex | juan-b-challenge/challenge | 4cd55084067891ff1a86f827294dad05122f1059 | [
"MIT"
] | null | null | null | lib/challenge_web/views/message_view.ex | juan-b-challenge/challenge | 4cd55084067891ff1a86f827294dad05122f1059 | [
"MIT"
] | null | null | null | defmodule ChallengeWeb.MessageView do
use ChallengeWeb, :view
def render("show.json", %{message_id: message_id, timestamp: timestamp}) do
%{id: message_id, timestamp: timestamp}
end
def render("messages.json", %{messages: messages}) do
%{messages: render_many(messages, ChallengeWeb.MessageView, "messa... | 32.05 | 131 | 0.660686 |
e8f273b5543528ac3796cfff2c08d3f53a1ad751 | 12,010 | ex | Elixir | lib/mix/lib/mix/dep/loader.ex | doughsay/elixir | 7356a47047d0b54517bd6886603f09b1121dde2b | [
"Apache-2.0"
] | 19,291 | 2015-01-01T02:42:49.000Z | 2022-03-31T21:01:40.000Z | lib/mix/lib/mix/dep/loader.ex | doughsay/elixir | 7356a47047d0b54517bd6886603f09b1121dde2b | [
"Apache-2.0"
] | 8,082 | 2015-01-01T04:16:23.000Z | 2022-03-31T22:08:02.000Z | lib/mix/lib/mix/dep/loader.ex | doughsay/elixir | 7356a47047d0b54517bd6886603f09b1121dde2b | [
"Apache-2.0"
] | 3,472 | 2015-01-03T04:11:56.000Z | 2022-03-29T02:07:30.000Z | # This module is responsible for loading dependencies
# of the current project. This module and its functions
# are private to Mix.
defmodule Mix.Dep.Loader do
@moduledoc false
import Mix.Dep, only: [ok?: 1, mix?: 1, rebar?: 1, make?: 1]
@doc """
Gets all direct children of the current `Mix.Project`
as a `M... | 27.04955 | 97 | 0.600333 |
e8f27b3cd66ab92d0b94e227dbf10dba4fa39e40 | 1,987 | exs | Elixir | test/protocol/optional_fields_builder_test.exs | desoulter/smppex | 1c8dbd9673291431b2d329a2cb20134c91857af2 | [
"MIT"
] | null | null | null | test/protocol/optional_fields_builder_test.exs | desoulter/smppex | 1c8dbd9673291431b2d329a2cb20134c91857af2 | [
"MIT"
] | null | null | null | test/protocol/optional_fields_builder_test.exs | desoulter/smppex | 1c8dbd9673291431b2d329a2cb20134c91857af2 | [
"MIT"
] | null | null | null | defmodule SMPPEX.Protocol.OptionalFieldsBuilderTest do
use ExUnit.Case
alias SMPPEX.Protocol.OptionalFieldsBuilder
defp flat_bin({:ok, io_list}) do
io_list |> List.flatten() |> Enum.join()
end
test "build unknown valid" do
res = OptionalFieldsBuilder.build(%{0x01 => "val"})
assert {:ok, _} = re... | 28.797101 | 68 | 0.62456 |
e8f289504d4e203e502f8eb9c520aacf5d93ab0a | 211 | ex | Elixir | lib/farmbot/celery_script/ast/node/scope_decleration.ex | pdgonzalez872/farmbot_os | a444248f05ee8f4fe57f6a4865b942131960f76c | [
"MIT"
] | 2 | 2018-08-01T23:07:52.000Z | 2018-10-17T12:49:21.000Z | lib/farmbot/celery_script/ast/node/scope_decleration.ex | pdgonzalez872/farmbot_os | a444248f05ee8f4fe57f6a4865b942131960f76c | [
"MIT"
] | null | null | null | lib/farmbot/celery_script/ast/node/scope_decleration.ex | pdgonzalez872/farmbot_os | a444248f05ee8f4fe57f6a4865b942131960f76c | [
"MIT"
] | 1 | 2017-07-22T21:51:14.000Z | 2017-07-22T21:51:14.000Z | defmodule Farmbot.CeleryScript.AST.Node.ScopeDeclaration do
@moduledoc false
use Farmbot.CeleryScript.AST.Node
allow_args []
def execute(_, _, env) do
env = mutate_env(env)
{:ok, env}
end
end
| 19.181818 | 59 | 0.7109 |
e8f2bf579f891e5ac654e2f2a148ddef2f1afc0e | 6,264 | exs | Elixir | test/erlef_web/controllers/admin/working_group_controller_test.exs | joaquinalcerro/website | 52dc89c70cd0b42127ab233a4c0d10f626d2b698 | [
"Apache-2.0"
] | 71 | 2019-07-02T18:06:15.000Z | 2022-03-09T15:30:08.000Z | test/erlef_web/controllers/admin/working_group_controller_test.exs | joaquinalcerro/website | 52dc89c70cd0b42127ab233a4c0d10f626d2b698 | [
"Apache-2.0"
] | 157 | 2019-07-02T01:21:16.000Z | 2022-03-30T16:08:12.000Z | test/erlef_web/controllers/admin/working_group_controller_test.exs | joaquinalcerro/website | 52dc89c70cd0b42127ab233a4c0d10f626d2b698 | [
"Apache-2.0"
] | 45 | 2019-07-04T05:51:11.000Z | 2022-02-27T11:56:02.000Z | defmodule ErlefWeb.Admin.WorkingGroupControllerTest do
use ErlefWeb.ConnCase
alias Erlef.Repo
alias Erlef.Groups
alias Erlef.Groups.{WorkingGroupChair, WorkingGroupVolunteer}
@update_attrs %{
description: "To do things",
formed: "2019-04-30",
charter: "Foo",
charter_html: "<p>Foo</p>",
m... | 31.477387 | 101 | 0.668423 |
e8f2e39ea78ab67ed0b15f147cbd36912104ac9d | 2,077 | ex | Elixir | lib/raygun/util.ex | scalpel-software/raygun | ef220c8e398ec8ef3716cdeb23001d0c9380d190 | [
"Apache-2.0"
] | null | null | null | lib/raygun/util.ex | scalpel-software/raygun | ef220c8e398ec8ef3716cdeb23001d0c9380d190 | [
"Apache-2.0"
] | null | null | null | lib/raygun/util.ex | scalpel-software/raygun | ef220c8e398ec8ef3716cdeb23001d0c9380d190 | [
"Apache-2.0"
] | null | null | null | defmodule Raygun.Util do
@moduledoc """
This module contains utility functions for formatting particular pieces
of stacktrace data into strings.
"""
@default_environment_name Mix.env()
@doc """
Determines whether we will actually send an event to Raygun
"""
def environment? do
environment_name()... | 25.641975 | 84 | 0.66442 |
e8f2fe16496fee70032893d2befcaad1ee956e4b | 54 | ex | Elixir | lib/zam_web/views/search_view.ex | praxis-of-nines/zam-search | d58261f35a22b7fd84df83674e74d59c925461f5 | [
"MIT"
] | 11 | 2019-05-27T23:43:46.000Z | 2021-08-24T06:37:23.000Z | lib/zam_web/views/search_view.ex | praxis-of-nines/zam-search | d58261f35a22b7fd84df83674e74d59c925461f5 | [
"MIT"
] | 1 | 2020-05-17T04:51:52.000Z | 2021-03-25T15:38:33.000Z | lib/zam_web/views/search_view.ex | praxis-of-nines/zam-search | d58261f35a22b7fd84df83674e74d59c925461f5 | [
"MIT"
] | 2 | 2019-05-27T23:43:52.000Z | 2020-10-15T09:09:58.000Z | defmodule ZamWeb.SearchView do
use ZamWeb, :view
end | 18 | 30 | 0.796296 |
e8f324a929ee0ab8480a59b5463c696f8e894106 | 6,338 | exs | Elixir | exercism/elixir/clock/test/clock_test.exs | Tyyagoo/studies | f8fcc3a539cfb6d04a149174c88bf2208e220b96 | [
"Unlicense"
] | null | null | null | exercism/elixir/clock/test/clock_test.exs | Tyyagoo/studies | f8fcc3a539cfb6d04a149174c88bf2208e220b96 | [
"Unlicense"
] | null | null | null | exercism/elixir/clock/test/clock_test.exs | Tyyagoo/studies | f8fcc3a539cfb6d04a149174c88bf2208e220b96 | [
"Unlicense"
] | null | null | null | defmodule ClockTest do
use ExUnit.Case
test "to_string" do
try do
to_string(%Clock{})
rescue
Protocol.UndefinedError ->
refute(true, """
Can't convert Clock to string.
Hint: implement the String.Chars protocol for Clock.
http://elixir-lang.org/getting-started/pro... | 27.318966 | 73 | 0.599874 |
e8f3264641e125cd7c669c1f0065f7d648a63c23 | 4,324 | exs | Elixir | test/blog_post_api/accounts_test.exs | dannielb/blog-post-api | 214520beb57164375bc6596e85cbc42be67c0fb9 | [
"MIT"
] | null | null | null | test/blog_post_api/accounts_test.exs | dannielb/blog-post-api | 214520beb57164375bc6596e85cbc42be67c0fb9 | [
"MIT"
] | null | null | null | test/blog_post_api/accounts_test.exs | dannielb/blog-post-api | 214520beb57164375bc6596e85cbc42be67c0fb9 | [
"MIT"
] | null | null | null | defmodule BlogPostApi.AccountsTest do
use BlogPostApi.DataCase
alias BlogPostApi.Accounts
alias BlogPostApi.Accounts.User
describe "create/1" do
test "success: it inserts a user in the db and returns the user" do
params = Factory.string_params_for(:user)
assert {:ok, %User{} = returned_user} =... | 31.107914 | 106 | 0.648936 |
e8f3766e2464e2a3751446eed9fa568f4e9a8819 | 618 | exs | Elixir | mix.exs | qertoip/quick_alias | e23ad67d648aa0b2e2e9e4c90d97db7ebe1b4daf | [
"MIT"
] | 46 | 2016-07-15T16:57:56.000Z | 2021-07-06T22:24:52.000Z | mix.exs | qertoip/quick_alias | e23ad67d648aa0b2e2e9e4c90d97db7ebe1b4daf | [
"MIT"
] | 3 | 2016-07-15T16:03:24.000Z | 2016-12-21T17:52:59.000Z | mix.exs | qertoip/quick_alias | e23ad67d648aa0b2e2e9e4c90d97db7ebe1b4daf | [
"MIT"
] | 6 | 2016-07-18T10:11:07.000Z | 2021-01-07T10:50:23.000Z | defmodule QuickAlias.Mixfile do
use Mix.Project
def project do
[app: :quick_alias,
version: "0.1.0",
elixir: "~> 1.3",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps(),
package: package]
end
def application do
[applications: [:logger]]
e... | 18.727273 | 63 | 0.580906 |
e8f37d17ca69940d90daf559118299dd4e1cef93 | 5,739 | ex | Elixir | lib/primitives/enum.ex | norbertskakste/Elibuf | 6976eddfbbe9498a15fc6bfb587d7b53fb8845ce | [
"Apache-2.0"
] | 4 | 2017-04-11T14:31:23.000Z | 2019-06-04T20:08:02.000Z | lib/primitives/enum.ex | norbertskakste/Elibuf | 6976eddfbbe9498a15fc6bfb587d7b53fb8845ce | [
"Apache-2.0"
] | null | null | null | lib/primitives/enum.ex | norbertskakste/Elibuf | 6976eddfbbe9498a15fc6bfb587d7b53fb8845ce | [
"Apache-2.0"
] | null | null | null | defmodule Elibuf.Primitives.Enum do
defstruct name: nil, values: [], allow_alias: false
defmodule Value do
defstruct name: nil, order: nil, type: :enum
def new_value(name, order) when is_bitstring(name) and is_integer(order) and order >= 0 do
%__MODULE__{name: name, order: order}
... | 30.68984 | 132 | 0.559679 |
e8f385975ffacae161f750d2256a5cec6c684d3a | 2,130 | ex | Elixir | web/controllers/transaction_controller.ex | wsmoak/minty | dbafd707cc5ce6d0bc251698cefe2c5d5a6eca56 | [
"MIT"
] | 4 | 2016-02-17T03:13:03.000Z | 2017-04-18T20:53:03.000Z | web/controllers/transaction_controller.ex | wsmoak/minty | dbafd707cc5ce6d0bc251698cefe2c5d5a6eca56 | [
"MIT"
] | null | null | null | web/controllers/transaction_controller.ex | wsmoak/minty | dbafd707cc5ce6d0bc251698cefe2c5d5a6eca56 | [
"MIT"
] | null | null | null | defmodule Minty.TransactionController do
use Minty.Web, :controller
alias Minty.Transaction
plug :scrub_params, "transaction" when action in [:create, :update]
def index(conn, _params) do
transactions = Repo.all(Transaction)
render(conn, "index.html", transactions: transactions)
end
def new(conn... | 31.323529 | 81 | 0.668545 |
e8f3ae20070afecf4b24ab5e140ad4250d1fdc60 | 2,900 | ex | Elixir | clients/container_analysis/lib/google_api/container_analysis/v1beta1/model/containeranalysis_google_devtools_cloudbuild_v1_artifacts.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/container_analysis/lib/google_api/container_analysis/v1beta1/model/containeranalysis_google_devtools_cloudbuild_v1_artifacts.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/container_analysis/lib/google_api/container_analysis/v1beta1/model/containeranalysis_google_devtools_cloudbuild_v1_artifacts.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... | 46.031746 | 585 | 0.770345 |
e8f3c94dbaaf8a1e76c8664aa478edaa87264cbf | 2,695 | exs | Elixir | test/railway_ipc/core/payload_test.exs | learn-co/railway_ipc | aeec16fb5b315fb3d8472b38c6eeea20d20e731a | [
"MIT"
] | 2 | 2021-03-22T19:37:33.000Z | 2022-01-04T08:48:20.000Z | test/railway_ipc/core/payload_test.exs | learn-co/railway_ipc | aeec16fb5b315fb3d8472b38c6eeea20d20e731a | [
"MIT"
] | 10 | 2019-11-29T20:24:24.000Z | 2021-02-26T22:06:13.000Z | test/railway_ipc/core/payload_test.exs | learn-co/railway_ipc | aeec16fb5b315fb3d8472b38c6eeea20d20e731a | [
"MIT"
] | 1 | 2020-01-09T17:13:29.000Z | 2020-01-09T17:13:29.000Z | defmodule RailwayIpc.Core.PayloadTest do
use ExUnit.Case
alias RailwayIpc.Core.MessageFormat.BinaryProtobuf
alias RailwayIpc.Core.MessageFormat.JsonProtobuf
alias RailwayIpc.Core.Payload
setup do
%{proto: Events.AThingWasDone.new(uuid: "123123")}
end
describe "#encode" do
test "can encode a bin... | 25.424528 | 84 | 0.560668 |
e8f3e15169e9e316dd0d0269bd414924435a9753 | 1,967 | exs | Elixir | mix.exs | gridgentoo/ElixirTrelloKanban | 11b91d9d864d2e332a94838d43c7a9b1015e17c6 | [
"MIT"
] | 2,784 | 2016-01-06T03:16:07.000Z | 2022-03-14T03:52:20.000Z | mix.exs | gridgentoo/ElixirTrelloKanban | 11b91d9d864d2e332a94838d43c7a9b1015e17c6 | [
"MIT"
] | 49 | 2016-01-07T11:48:10.000Z | 2020-04-27T16:10:12.000Z | mix.exs | gridgentoo/ElixirTrelloKanban | 11b91d9d864d2e332a94838d43c7a9b1015e17c6 | [
"MIT"
] | 586 | 2016-01-11T17:02:13.000Z | 2021-12-01T10:54:47.000Z | defmodule PhoenixTrello.Mixfile do
use Mix.Project
def project do
[app: :phoenix_trello,
version: "0.0.1",
elixir: "~> 1.0",
elixirc_paths: elixirc_paths(Mix.env),
compilers: [:phoenix] ++ Mix.compilers,
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
ali... | 27.319444 | 78 | 0.566345 |
e8f4419336872205775af22bd1dc1e11effe131d | 3,364 | ex | Elixir | clients/analytics/lib/google_api/analytics/v3/api/user_deletion.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/analytics/lib/google_api/analytics/v3/api/user_deletion.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/analytics/lib/google_api/analytics/v3/api/user_deletion.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 38.666667 | 187 | 0.656361 |
e8f457147d4570ef1db1bf10d09ba1fd7054deda | 9,694 | exs | Elixir | lib/elixir/test/elixir/module_test.exs | Zanadar/elixir | ef967b3e07f189b9cae37d5b12bd7258619b3e15 | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/module_test.exs | Zanadar/elixir | ef967b3e07f189b9cae37d5b12bd7258619b3e15 | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/module_test.exs | Zanadar/elixir | ef967b3e07f189b9cae37d5b12bd7258619b3e15 | [
"Apache-2.0"
] | null | null | null | Code.require_file "test_helper.exs", __DIR__
defmodule ModuleTest.ToBeUsed do
def value, do: 1
defmacro __using__(_) do
target = __CALLER__.module
Module.put_attribute(target, :has_callback, true)
Module.put_attribute(target, :before_compile, __MODULE__)
Module.put_attribute(target, :after_compile... | 27.384181 | 112 | 0.657004 |
e8f47a5fa1260779b867fd88941640e8b443b273 | 1,137 | exs | Elixir | clients/ad_sense_host/config/config.exs | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/ad_sense_host/config/config.exs | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | null | null | null | clients/ad_sense_host/config/config.exs | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | 1 | 2018-07-28T20:50:50.000Z | 2018-07-28T20:50:50.000Z | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on this project, this
# file won't be loaded nor affect the paren... | 36.677419 | 73 | 0.755497 |
e8f498f8d710abe71d57e3f9518bcc764cbc43e8 | 2,661 | ex | Elixir | lib/fire_auth.ex | pablodavila95/fire_auth | d022ef056bee2611e9b31800935df3ddf7d21a92 | [
"Apache-2.0"
] | 1 | 2018-01-25T06:08:19.000Z | 2018-01-25T06:08:19.000Z | lib/fire_auth.ex | pablodavila95/fire_auth | d022ef056bee2611e9b31800935df3ddf7d21a92 | [
"Apache-2.0"
] | null | null | null | lib/fire_auth.ex | pablodavila95/fire_auth | d022ef056bee2611e9b31800935df3ddf7d21a92 | [
"Apache-2.0"
] | 3 | 2018-01-10T00:53:50.000Z | 2020-05-27T18:48:17.000Z | defmodule FireAuth do
@moduledoc """
Used to authenticate users with firebase id tokens.
Usage:
plug FireAuth, [load_user: function, load_groups: function]
...
plug FireAuth.Secure, group: "required_group"
"""
import Plug.Conn
require Logger
def init(opts) do
load_user =
case Keyword.fe... | 25.834951 | 99 | 0.563698 |
e8f4bfb6f2c97bea1a4d82662f9ec8b6c1e770ec | 6,174 | exs | Elixir | lib/elixir/test/elixir/module_test.exs | joearms/elixir | 9a0f8107bd8bbd089acb96fe0041d61a05e88a9b | [
"Apache-2.0"
] | 4 | 2016-04-05T05:51:36.000Z | 2019-10-31T06:46:35.000Z | lib/elixir/test/elixir/module_test.exs | joearms/elixir | 9a0f8107bd8bbd089acb96fe0041d61a05e88a9b | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/module_test.exs | joearms/elixir | 9a0f8107bd8bbd089acb96fe0041d61a05e88a9b | [
"Apache-2.0"
] | 5 | 2015-02-01T06:01:19.000Z | 2019-08-29T09:02:35.000Z | Code.require_file "test_helper.exs", __DIR__
defmodule ModuleTest.ToBeUsed do
def value, do: 1
defmacro __using__(_) do
target = __CALLER__.module
Module.put_attribute(target, :has_callback, false)
Module.put_attribute(target, :before_compile, __MODULE__)
Module.put_attribute(target, :after_compil... | 25.941176 | 108 | 0.66861 |
e8f4c889ebb4ac846646373689bfba08cda518bb | 1,230 | exs | Elixir | config/dev.exs | coshx/phoenix_tutorial | 5c9859e537ea8383f35fa05d97df453decc333d8 | [
"MIT"
] | 2 | 2016-10-07T07:18:59.000Z | 2019-01-12T20:51:09.000Z | config/dev.exs | coshx/phoenix_tutorial | 5c9859e537ea8383f35fa05d97df453decc333d8 | [
"MIT"
] | null | null | null | config/dev.exs | coshx/phoenix_tutorial | 5c9859e537ea8383f35fa05d97df453decc333d8 | [
"MIT"
] | null | null | null | use Mix.Config
# For development, we disable any cache and enable
# debugging and code reloading.
#
# The watchers configuration can be used to run external
# watchers to your application. For example, we use it
# with brunch.io to recompile .js and .css sources.
config :phx_oembed, PhxOembed.Endpoint,
http: [port: ... | 30 | 74 | 0.714634 |
e8f5098ad6adec2161997f8f7fe589586312ed80 | 3,697 | ex | Elixir | apps/gitgud_web/lib/gitgud_web/plugs/authentication_plug.ex | almightycouch/gitgud | 21cf81ff29e0ec1601bb96e1621237099d0e677a | [
"MIT"
] | 449 | 2018-03-06T01:05:55.000Z | 2022-03-23T21:03:56.000Z | apps/gitgud_web/lib/gitgud_web/plugs/authentication_plug.ex | almightycouch/gitgud | 21cf81ff29e0ec1601bb96e1621237099d0e677a | [
"MIT"
] | 69 | 2018-03-06T09:26:41.000Z | 2022-03-21T22:43:09.000Z | apps/gitgud_web/lib/gitgud_web/plugs/authentication_plug.ex | almightycouch/gitgud | 21cf81ff29e0ec1601bb96e1621237099d0e677a | [
"MIT"
] | 41 | 2018-03-06T01:06:07.000Z | 2021-11-21T17:55:04.000Z | defmodule GitGud.Web.AuthenticationPlug do
@moduledoc """
`Plug` providing support for multiple authentication methods.
"""
@behaviour Plug
import Plug.Conn
alias GitGud.Authorization
alias GitGud.User
alias GitGud.UserQuery
@doc """
`Plug` to authenticate `conn` with either authorization or ses... | 28.007576 | 111 | 0.675412 |
e8f50cf3e8c32e4ac17026e1f14006aafbabaec4 | 941 | exs | Elixir | test/shippo/operation/operation_test.exs | christopherlai/shippo | 33d62242a5c3ad1d935888150d5cd630404d91f3 | [
"Unlicense",
"MIT"
] | null | null | null | test/shippo/operation/operation_test.exs | christopherlai/shippo | 33d62242a5c3ad1d935888150d5cd630404d91f3 | [
"Unlicense",
"MIT"
] | null | null | null | test/shippo/operation/operation_test.exs | christopherlai/shippo | 33d62242a5c3ad1d935888150d5cd630404d91f3 | [
"Unlicense",
"MIT"
] | null | null | null | defmodule Shippo.OperationTest do
use ExUnit.Case, async: true
alias Shippo.Operation
describe "new/2" do
test "returns an Operation struct" do
assert %Operation{
http_method: :get,
path: "/",
data: "",
opts: []
} = Operation.new(... | 24.763158 | 70 | 0.46865 |
e8f5266e5308f42a84464b83a258e2d6e3377e1d | 5,029 | ex | Elixir | lib/true_type/table/post.ex | john-vinters/exttf | dea21d52ef55b66f4236dc1cf3115fc7791178da | [
"Apache-2.0"
] | null | null | null | lib/true_type/table/post.ex | john-vinters/exttf | dea21d52ef55b66f4236dc1cf3115fc7791178da | [
"Apache-2.0"
] | null | null | null | lib/true_type/table/post.ex | john-vinters/exttf | dea21d52ef55b66f4236dc1cf3115fc7791178da | [
"Apache-2.0"
] | null | null | null | #
# (c) Copyright 2021 John Vinters <john.vinters@gmail.com>
#
# 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 applicab... | 34.923611 | 96 | 0.653013 |
e8f52b1b0a8e9ec509304fd799ef73ff0f5ec6da | 43 | ex | Elixir | lib/ex_pesa.ex | r-coh/ex_pesa | df2bb2485a3acba481787a434e4d0ee254e60186 | [
"AML",
"MIT"
] | 20 | 2020-08-07T18:45:03.000Z | 2021-12-02T12:47:07.000Z | lib/ex_pesa.ex | r-coh/ex_pesa | df2bb2485a3acba481787a434e4d0ee254e60186 | [
"AML",
"MIT"
] | 65 | 2020-08-17T05:52:33.000Z | 2021-05-20T16:06:34.000Z | lib/ex_pesa.ex | r-coh/ex_pesa | df2bb2485a3acba481787a434e4d0ee254e60186 | [
"AML",
"MIT"
] | 11 | 2020-08-17T07:53:02.000Z | 2021-04-02T20:57:16.000Z | defmodule ExPesa do
@moduledoc false
end
| 10.75 | 19 | 0.790698 |
e8f54f1dc2d6d028454620de5b3d30c342d9c757 | 773 | ex | Elixir | lib/whippet/chart/line.ex | mrblueblue/whippet | 89cb4a292dfff75ef5adac2404015e00bae3bc76 | [
"MIT"
] | 1 | 2017-04-24T03:01:44.000Z | 2017-04-24T03:01:44.000Z | lib/whippet/chart/line.ex | mrblueblue/whippet | 89cb4a292dfff75ef5adac2404015e00bae3bc76 | [
"MIT"
] | null | null | null | lib/whippet/chart/line.ex | mrblueblue/whippet | 89cb4a292dfff75ef5adac2404015e00bae3bc76 | [
"MIT"
] | null | null | null | defmodule Whippet.Chart.Line do
use Hound.Helpers
import Beagle.Helpers
def is_valid selector do
axis_renders?(selector) && line_renders?(selector)
end
defp line_renders? selector do
line_path = "#{selector} path.line"
element_displayed?({:css, line_path})
find_all_elements(:css, line_path)
... | 26.655172 | 58 | 0.676585 |
e8f5514a53578ae83d552549134e5a87c0d493f0 | 457 | exs | Elixir | test/phoenix_events_live_web/views/error_view_test.exs | D-D-ing/phoenix-events-live | b68bdfdac1afc241574a0a8ffce25cf43bb71abe | [
"MIT"
] | null | null | null | test/phoenix_events_live_web/views/error_view_test.exs | D-D-ing/phoenix-events-live | b68bdfdac1afc241574a0a8ffce25cf43bb71abe | [
"MIT"
] | null | null | null | test/phoenix_events_live_web/views/error_view_test.exs | D-D-ing/phoenix-events-live | b68bdfdac1afc241574a0a8ffce25cf43bb71abe | [
"MIT"
] | null | null | null | defmodule PhoenixEventsLiveWeb.ErrorViewTest do
use PhoenixEventsLiveWeb.ConnCase, async: true
# Bring render/3 and render_to_string/3 for testing custom views
import Phoenix.View
test "renders 404.html" do
assert render_to_string(PhoenixEventsLiveWeb.ErrorView, "404.html", []) == "Not Found"
end
tes... | 30.466667 | 102 | 0.757112 |
e8f56f8826bede0cae1254bddf6ba2f2edbdd70d | 1,603 | ex | Elixir | lib/rewind_web/endpoint.ex | fremantle-industries/rewind | 1818fe1704cb303e09108cbb5e669e673685fb62 | [
"MIT"
] | 2 | 2021-09-18T09:15:13.000Z | 2022-03-16T09:29:37.000Z | lib/rewind_web/endpoint.ex | fremantle-industries/rewind | 1818fe1704cb303e09108cbb5e669e673685fb62 | [
"MIT"
] | null | null | null | lib/rewind_web/endpoint.ex | fremantle-industries/rewind | 1818fe1704cb303e09108cbb5e669e673685fb62 | [
"MIT"
] | null | null | null | defmodule RewindWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :rewind
# The session will be stored in the cookie and signed,
# this means its contents can be read but not tampered with.
# Set :encryption_salt if you would also like to encrypt it.
@session_options [
store: :cookie,
key: "_rewind_key"... | 29.145455 | 97 | 0.717405 |
e8f59f05c6bfabfc37cc946ac0b4b6f61efdf678 | 5,168 | exs | Elixir | elixir/test/homework/transactions_test.exs | kellyfelkins/web-homework | b204866bd0a6908efa05ef8f5772b9fa926dbf02 | [
"MIT"
] | null | null | null | elixir/test/homework/transactions_test.exs | kellyfelkins/web-homework | b204866bd0a6908efa05ef8f5772b9fa926dbf02 | [
"MIT"
] | null | null | null | elixir/test/homework/transactions_test.exs | kellyfelkins/web-homework | b204866bd0a6908efa05ef8f5772b9fa926dbf02 | [
"MIT"
] | null | null | null | defmodule Homework.TransactionsTest do
use Homework.DataCase
alias Homework.Merchants
alias Homework.Accounts
alias Homework.Transactions
describe "transactions" do
alias Homework.Transactions.Transaction
setup do
{:ok, company1} =
Accounts.create_company(%{
available_credit... | 30.579882 | 99 | 0.651703 |
e8f5b5fd90411ab29f9352ab3fea4a0438f4504d | 404 | exs | Elixir | priv/repo/migrations/20180728132856_rename_filter_to_rule.exs | CyberFlameGO/bolt | 225e6276983bec646e7f13519df066e8e1e770ed | [
"ISC"
] | 31 | 2018-12-06T23:12:33.000Z | 2022-03-29T18:34:25.000Z | priv/repo/migrations/20180728132856_rename_filter_to_rule.exs | CyberFlameGO/bolt | 225e6276983bec646e7f13519df066e8e1e770ed | [
"ISC"
] | 18 | 2021-06-14T19:03:26.000Z | 2022-03-15T17:46:22.000Z | priv/repo/migrations/20180728132856_rename_filter_to_rule.exs | CyberFlameGO/bolt | 225e6276983bec646e7f13519df066e8e1e770ed | [
"ISC"
] | 4 | 2018-11-07T18:52:28.000Z | 2022-03-16T00:14:38.000Z | defmodule Bolt.Repo.Migrations.RenameFilterToRule do
use Ecto.Migration
def up do
execute("ALTER TABLE usw_filter_config RENAME TO usw_rule_config")
execute("ALTER TABLE usw_rule_config RENAME COLUMN filter TO rule")
end
def down do
execute("ALTER TABLE usw_rule_config RENAME COLUMN rule TO filter... | 28.857143 | 71 | 0.777228 |
e8f5db1882d5eb8938f213c9f51e73873fb5591f | 23,676 | exs | Elixir | test/elixir_sense/definition_test.exs | BartOtten/elixir_sense | 4a857f2c262b9f8ac2d72e31f4806cecc740192a | [
"MIT",
"Unlicense"
] | 216 | 2019-01-05T02:08:51.000Z | 2022-03-23T23:59:56.000Z | test/elixir_sense/definition_test.exs | BartOtten/elixir_sense | 4a857f2c262b9f8ac2d72e31f4806cecc740192a | [
"MIT",
"Unlicense"
] | 102 | 2019-01-18T04:59:06.000Z | 2022-01-10T14:21:24.000Z | test/elixir_sense/definition_test.exs | BartOtten/elixir_sense | 4a857f2c262b9f8ac2d72e31f4806cecc740192a | [
"MIT",
"Unlicense"
] | 31 | 2019-01-16T08:19:34.000Z | 2022-03-07T08:06:22.000Z | defmodule ElixirSense.Providers.DefinitionTest do
use ExUnit.Case, async: true
alias ElixirSense.Providers.Definition
alias ElixirSense.Location
alias ElixirSense.Core.Source
doctest Definition
test "dont crash on empty buffer" do
refute ElixirSense.definition("", 1, 1)
end
test "dont error on __... | 24.739812 | 97 | 0.586586 |
e8f5e93a8ec2d196afc55696096ba45299b115c7 | 372 | exs | Elixir | priv/repo/seeds.exs | AstridMN/elixir1 | f62347179628937cdb63fc14db0b0a32c689e0ae | [
"MIT"
] | 3 | 2017-04-18T06:23:18.000Z | 2018-01-05T04:14:57.000Z | priv/repo/seeds.exs | AstridMN/elixir1 | f62347179628937cdb63fc14db0b0a32c689e0ae | [
"MIT"
] | 27 | 2016-11-04T19:56:11.000Z | 2017-03-26T22:34:55.000Z | priv/repo/seeds.exs | AstridMN/elixir1 | f62347179628937cdb63fc14db0b0a32c689e0ae | [
"MIT"
] | 3 | 2016-10-05T11:56:42.000Z | 2017-03-05T14:37:10.000Z | # Script for populating the database. You can run it as:
#
# mix run priv/repo/seeds.exs
#
# Inside the script, you can read and write to any of your
# repositories directly:
#
# MicrocrawlerWebapp.Repo.insert!(%MicrocrawlerWebapp.SomeModel{})
#
# We recommend using the bang functions (`insert!`, `update!`
# an... | 31 | 70 | 0.723118 |
e8f60173ac14c870bc7ca0c84d9d11200d4e08cc | 1,441 | ex | Elixir | clients/content/lib/google_api/content/v2/model/location_id_set.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/model/location_id_set.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/content/lib/google_api/content/v2/model/location_id_set.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... | 30.659574 | 158 | 0.729355 |
e8f641605bf5c8ffb9ea0f93bb4057c1d543678e | 12,762 | ex | Elixir | lib/qos_methods/modem.ex | bengtson/internet_qos | dae17f18aca378bf9d5e9d07500059166f0a8597 | [
"MIT"
] | null | null | null | lib/qos_methods/modem.ex | bengtson/internet_qos | dae17f18aca378bf9d5e9d07500059166f0a8597 | [
"MIT"
] | null | null | null | lib/qos_methods/modem.ex | bengtson/internet_qos | dae17f18aca378bf9d5e9d07500059166f0a8597 | [
"MIT"
] | null | null | null | defmodule QOS.Method.Modem do
use GenServer
@moduledoc """
NOTE: This module is not saving the data to a file at this time. It is only
capturing the data and providing it to Tack Status. Need to fix this.
The problem is that the original code was writting for only 2 up channels but
there can be more or le... | 32.976744 | 344 | 0.639868 |
e8f646b2a840de33736b6a6a0ab0066c6248b4ce | 2,096 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/conversions_batch_update_response.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/conversions_batch_update_response.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/conversions_batch_update_response.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 39.54717 | 212 | 0.740935 |
e8f652213392c4b2b2ad7dd77bc3a3ec4a40e390 | 18,938 | ex | Elixir | clients/compute/lib/google_api/compute/v1/api/region_instance_groups.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/api/region_instance_groups.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/api/region_instance_groups.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 52.314917 | 434 | 0.654927 |
e8f6610670cdc8dc3cef1acd013b573a9a85c727 | 3,311 | exs | Elixir | test/subscriptions/subscription_recovery_test.exs | mwillema/eventstore | 8c96ccec2fc8a43f2144db2fe880a8da70c463c6 | [
"MIT"
] | null | null | null | test/subscriptions/subscription_recovery_test.exs | mwillema/eventstore | 8c96ccec2fc8a43f2144db2fe880a8da70c463c6 | [
"MIT"
] | null | null | null | test/subscriptions/subscription_recovery_test.exs | mwillema/eventstore | 8c96ccec2fc8a43f2144db2fe880a8da70c463c6 | [
"MIT"
] | null | null | null | defmodule EventStore.Subscriptions.SubscriptionRecoveryTest do
use EventStore.StorageCase
@moduletag :slow
alias EventStore.{EventFactory, RecordedEvent}
alias EventStore.Subscriptions.Subscription
describe "subscription recovery" do
test "should receive events after socket is closed" do
subscrip... | 26.070866 | 98 | 0.690124 |
e8f68d1f5ad33331c472be07ecae69f0f1c7378c | 1,206 | exs | Elixir | mix.exs | benfalk/data_pool | dcf81d1a87a363952715deeed3caa18ec0efccd9 | [
"MIT"
] | 3 | 2016-05-08T18:14:43.000Z | 2016-05-14T14:18:18.000Z | mix.exs | benfalk/data_pool | dcf81d1a87a363952715deeed3caa18ec0efccd9 | [
"MIT"
] | 1 | 2016-01-14T03:22:12.000Z | 2016-05-08T14:03:34.000Z | mix.exs | benfalk/data_pool | dcf81d1a87a363952715deeed3caa18ec0efccd9 | [
"MIT"
] | null | null | null | defmodule DataPool.Mixfile do
use Mix.Project
def project do
[app: :data_pool,
version: "1.0.2",
elixir: "~> 1.1",
description: description,
package: package,
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps]
end
# Configuration for the OTP... | 21.927273 | 77 | 0.590381 |
e8f69376f243eb89379d5ab310563b74c9828c66 | 2,054 | ex | Elixir | components/notifications-service/server/lib/data/secret_store.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/data/secret_store.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/data/secret_store.ex | mmci2468/automate | dbe8bfaae91169861f7ea1d2a66cff5c7ca83ddf | [
"Apache-2.0"
] | 114 | 2019-04-16T15:21:27.000Z | 2022-03-26T09:50:08.000Z | defmodule Notifications.Data.SecretStore do
use GenServer
alias Chef.Automate.Api.Secrets
require Logger
def start_link(channel) do
GenServer.start_link(__MODULE__, channel, name: __MODULE__)
end
def init(channel) do
{:ok, %{channel: channel}}
end
def delete_secret(secret_id) do
Logger.d... | 31.121212 | 146 | 0.65482 |
e8f6b897fd1f73c3519df1378d4ebd61fd66a229 | 135 | ex | Elixir | web/channels/site_channel.ex | bagilevi/uptom | 50894abb8f7bd052e12c37155b5c33450abcc9bd | [
"MIT"
] | 6 | 2017-05-12T04:20:09.000Z | 2020-11-07T02:00:56.000Z | web/channels/site_channel.ex | bagilevi/uptom | 50894abb8f7bd052e12c37155b5c33450abcc9bd | [
"MIT"
] | null | null | null | web/channels/site_channel.ex | bagilevi/uptom | 50894abb8f7bd052e12c37155b5c33450abcc9bd | [
"MIT"
] | 2 | 2020-05-18T08:06:22.000Z | 2020-12-19T14:24:40.000Z | defmodule Uptom.SiteChannel do
use Phoenix.Channel
def join("site:" <> _site_id, _message, socket) do
{:ok, socket}
end
end
| 16.875 | 52 | 0.688889 |
e8f6bf220e7d9e680ce92e37e5280cd7d9817152 | 198 | exs | Elixir | test/test_helper.exs | jwworth/wallaby_example | 03372b15ee700fc309bd3371cc445671d41316d4 | [
"MIT"
] | null | null | null | test/test_helper.exs | jwworth/wallaby_example | 03372b15ee700fc309bd3371cc445671d41316d4 | [
"MIT"
] | null | null | null | test/test_helper.exs | jwworth/wallaby_example | 03372b15ee700fc309bd3371cc445671d41316d4 | [
"MIT"
] | null | null | null | ExUnit.start
Ecto.Adapters.SQL.Sandbox.mode(WallabyExample.Repo, :manual)
{:ok, _} = Application.ensure_all_started(:wallaby)
Application.put_env(:wallaby, :base_url, WallabyExample.Endpoint.url)
| 28.285714 | 69 | 0.79798 |
e8f72f618926259466cb554b0669c6cde26de374 | 821 | exs | Elixir | mix.exs | mpikul/ticker_base | b5dfc784d855b8a15abb4277b724e134dfc86a2c | [
"Apache-2.0"
] | null | null | null | mix.exs | mpikul/ticker_base | b5dfc784d855b8a15abb4277b724e134dfc86a2c | [
"Apache-2.0"
] | null | null | null | mix.exs | mpikul/ticker_base | b5dfc784d855b8a15abb4277b724e134dfc86a2c | [
"Apache-2.0"
] | null | null | null | defmodule TickerBase.MixProject do
use Mix.Project
def project do
[
app: :ticker_base,
version: "0.1.0",
elixir: "~> 1.6",
start_permanent: Mix.env() == :prod,
deps: deps(),
aliases: aliases()
]
end
# Run "mix help compile.app" to learn about applications.
def app... | 20.525 | 67 | 0.522533 |
e8f73ee43ae5a7581665315a70c4f104c654585d | 3,447 | ex | Elixir | hello/lib/hello/blog/blog.ex | nash-elixir/intro-to-phoenix | 46e78713a0e8dcd895ad4f22d75b40c55ae41435 | [
"MIT"
] | 1 | 2018-01-12T20:21:56.000Z | 2018-01-12T20:21:56.000Z | hello/lib/hello/blog/blog.ex | nash-elixir/intro-to-phoenix | 46e78713a0e8dcd895ad4f22d75b40c55ae41435 | [
"MIT"
] | null | null | null | hello/lib/hello/blog/blog.ex | nash-elixir/intro-to-phoenix | 46e78713a0e8dcd895ad4f22d75b40c55ae41435 | [
"MIT"
] | null | null | null | defmodule Hello.Blog do
@moduledoc """
The Blog context.
"""
import Ecto.Query, warn: false
alias Hello.Repo
alias Hello.Blog.Post
@doc """
Returns the list of posts.
## Examples
iex> list_posts()
[%Post{}, ...]
"""
def list_posts do
(from p in Post,
preload: :comments... | 16.414286 | 62 | 0.570641 |
e8f746a58a1e36ce1773eda966a98f5e381c0764 | 197 | exs | Elixir | priv/repo/migrations/20161029161704_add_lat_long_to_location.exs | colbydehart/MartaWhistle | 852d1aaecb1fe5705fdcaab30283870613f6a66f | [
"MIT"
] | null | null | null | priv/repo/migrations/20161029161704_add_lat_long_to_location.exs | colbydehart/MartaWhistle | 852d1aaecb1fe5705fdcaab30283870613f6a66f | [
"MIT"
] | null | null | null | priv/repo/migrations/20161029161704_add_lat_long_to_location.exs | colbydehart/MartaWhistle | 852d1aaecb1fe5705fdcaab30283870613f6a66f | [
"MIT"
] | null | null | null | defmodule TrainWhistle.Repo.Migrations.AddLatLongToLocation do
use Ecto.Migration
def change do
alter table(:locations) do
add :lat, :float
add :long, :float
end
end
end
| 17.909091 | 62 | 0.695431 |
e8f747e9de1705278826b2f63c7184734271eec1 | 236 | exs | Elixir | test/rust_utils_test.exs | patefacio/kojin | 34f1959b7fa5fdc48e07ae6d81f8fa3ab31af982 | [
"MIT"
] | 3 | 2021-12-20T04:46:00.000Z | 2022-01-31T22:26:44.000Z | test/rust_utils_test.exs | patefacio/kojin | 34f1959b7fa5fdc48e07ae6d81f8fa3ab31af982 | [
"MIT"
] | 1 | 2021-12-20T14:46:50.000Z | 2021-12-20T14:46:50.000Z | test/rust_utils_test.exs | patefacio/kojin | 34f1959b7fa5fdc48e07ae6d81f8fa3ab31af982 | [
"MIT"
] | 1 | 2021-12-20T00:15:52.000Z | 2021-12-20T00:15:52.000Z | defmodule RustUtilsTest do
use ExUnit.Case
import Kojin.Rust.Utils
test "pub_decl" do
assert pub_decl(%{pub: true}) == "pub "
assert pub_decl(%{pub_crate: true}) == "pub(crate) "
assert pub_decl(%{}) == ""
end
end
| 19.666667 | 56 | 0.635593 |
e8f763f4ede17438bd9b521e28f3a5860b380738 | 2,231 | ex | Elixir | lib/codes/codes_e16.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_e16.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_e16.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | defmodule IcdCode.ICDCode.Codes_E16 do
alias IcdCode.ICDCode
def _E160 do
%ICDCode{full_code: "E160",
category_code: "E16",
short_code: "0",
full_name: "Drug-induced hypoglycemia without coma",
short_name: "Drug-induced hypoglycemia without coma",
category_name: ... | 31.871429 | 85 | 0.621694 |
e8f77a25a3dcc5354e01e7e72f194502df206110 | 1,544 | ex | Elixir | lib/tcpbin_web/views/error_helpers.ex | dominicletz/tcpbin | 4d6b614d46844f40ac03adfeb16352417f64f7d3 | [
"MIT"
] | null | null | null | lib/tcpbin_web/views/error_helpers.ex | dominicletz/tcpbin | 4d6b614d46844f40ac03adfeb16352417f64f7d3 | [
"MIT"
] | null | null | null | lib/tcpbin_web/views/error_helpers.ex | dominicletz/tcpbin | 4d6b614d46844f40ac03adfeb16352417f64f7d3 | [
"MIT"
] | null | null | null | defmodule TcpbinWeb.ErrorHelpers do
@moduledoc """
Conveniences for translating and building error messages.
"""
use Phoenix.HTML
@doc """
Generates tag for inlined form input errors.
"""
def error_tag(form, field) do
Enum.map(Keyword.get_values(form.errors, field), fn error ->
content_tag(:... | 32.166667 | 75 | 0.664508 |
e8f7864e1c0347d4b0f1f23004c2e613826697cc | 14,137 | exs | Elixir | test/epicenter_web/views/multiselect_test.exs | geometricservices/epi-viewpoin | ecb5316ea0f3f7299d5ff63e2de588539005ac1c | [
"Apache-2.0"
] | 5 | 2021-02-25T18:43:09.000Z | 2021-02-27T06:00:35.000Z | test/epicenter_web/views/multiselect_test.exs | geometricservices/epi-viewpoint | ecb5316ea0f3f7299d5ff63e2de588539005ac1c | [
"Apache-2.0"
] | 3 | 2021-12-13T17:52:47.000Z | 2021-12-17T01:35:31.000Z | test/epicenter_web/views/multiselect_test.exs | geometricservices/epi-viewpoint | ecb5316ea0f3f7299d5ff63e2de588539005ac1c | [
"Apache-2.0"
] | 1 | 2022-01-27T23:26:38.000Z | 2022-01-27T23:26:38.000Z | defmodule EpicenterWeb.MultiselectTest do
use Epicenter.SimpleCase, async: true
alias Epicenter.Test
alias EpicenterWeb.Multiselect
defmodule Movie do
use Ecto.Schema
@primary_key false
embedded_schema do
field :genres, :map
field :languages, {:array, :string}
field :status, :s... | 37.202632 | 148 | 0.531159 |
e8f79ccd8b0965d3e0d33a88b10bd34ebaf5f0f0 | 215 | exs | Elixir | implementations/elixir/ockam/ockam_kafka/config/config.exs | twittner/ockam | 96eadf99da42f7c35539c6e29010a657c579ccba | [
"Apache-2.0"
] | null | null | null | implementations/elixir/ockam/ockam_kafka/config/config.exs | twittner/ockam | 96eadf99da42f7c35539c6e29010a657c579ccba | [
"Apache-2.0"
] | 119 | 2021-07-20T15:12:29.000Z | 2022-03-01T10:31:53.000Z | implementations/elixir/ockam/ockam_kafka/config/config.exs | twittner/ockam | 96eadf99da42f7c35539c6e29010a657c579ccba | [
"Apache-2.0"
] | 1 | 2021-12-01T19:40:11.000Z | 2021-12-01T19:40:11.000Z | ## Application configuration used in release as sys.config or mix run
## THIS CONFIGURATION IS NOT LOADED IF THE APP IS LOADED AS A DEPENDENCY
import Config
config :ockam_kafka,
endpoints: [{"localhost", 9092}]
| 26.875 | 72 | 0.762791 |
e8f7b7b81a957d0fd0ea040d561ea1b0344238a5 | 4,414 | ex | Elixir | lib/ex_venture/rooms.ex | oestrich/exventure | 8e8062f9411656f4ec49cc2c35a1e4a9dd5d4190 | [
"MIT"
] | 610 | 2017-08-09T15:20:25.000Z | 2022-03-27T15:49:07.000Z | lib/ex_venture/rooms.ex | oestrich/ex_mud | 8e8062f9411656f4ec49cc2c35a1e4a9dd5d4190 | [
"MIT"
] | 69 | 2017-09-23T04:02:30.000Z | 2022-03-19T21:08:21.000Z | lib/ex_venture/rooms.ex | oestrich/ex_mud | 8e8062f9411656f4ec49cc2c35a1e4a9dd5d4190 | [
"MIT"
] | 85 | 2017-09-23T04:07:11.000Z | 2021-11-20T06:44:56.000Z | defmodule ExVenture.Rooms.Room do
@moduledoc """
Schema for Rooms
"""
use Ecto.Schema
import Ecto.Changeset
alias ExVenture.Rooms
alias ExVenture.StagedChanges.StagedChange
alias ExVenture.Zones.Zone
@map_colors ["blue", "brown", "green", "yellow"]
def map_colors(), do: @map_colors
schema "r... | 20.626168 | 93 | 0.606932 |
e8f7c8d8d04b8f0f61f5360e272611e80606e612 | 39,111 | exs | Elixir | test/sage/executor_test.exs | agleb/sage | 2c3254bdf0ea18f128a8f57687c0ee78e131ed3f | [
"MIT"
] | 715 | 2017-11-01T15:25:38.000Z | 2022-03-30T13:43:40.000Z | test/sage/executor_test.exs | agleb/sage | 2c3254bdf0ea18f128a8f57687c0ee78e131ed3f | [
"MIT"
] | 66 | 2017-11-15T15:28:14.000Z | 2022-03-25T17:25:20.000Z | test/sage/executor_test.exs | agleb/sage | 2c3254bdf0ea18f128a8f57687c0ee78e131ed3f | [
"MIT"
] | 34 | 2017-12-17T20:30:14.000Z | 2022-03-13T10:54:47.000Z | defmodule Sage.ExecutorTest do
use Sage.EffectsCase, async: true
describe "transactions" do
test "are executed" do
{hook, hook_assertion} = final_hook_with_assertion(:ok, a: :b)
result =
new()
|> run(:step1, transaction(:t1), compensation())
|> run(:step2, transaction(:t2),... | 31.139331 | 114 | 0.608524 |
e8f7de7bc313834b379b9cf193b20253caf3e9fa | 198 | exs | Elixir | config/config.exs | prosapient/spandex_phoenix | 487a635f3334e9aa0a4c86c7abc656ac00a6acc8 | [
"MIT"
] | null | null | null | config/config.exs | prosapient/spandex_phoenix | 487a635f3334e9aa0a4c86c7abc656ac00a6acc8 | [
"MIT"
] | null | null | null | config/config.exs | prosapient/spandex_phoenix | 487a635f3334e9aa0a4c86c7abc656ac00a6acc8 | [
"MIT"
] | null | null | null | use Mix.Config
config :spandex_phoenix, tracer: TestTracer
config :spandex_phoenix, TestTracer,
adapter: TestAdapter,
service: :spandex_phoenix,
type: :web
import_config "#{Mix.env()}.exs"
| 18 | 43 | 0.752525 |
e8f7e1a0ef8e678ad614d1dd340b505ba0fdd963 | 821 | ex | Elixir | apps/fw/lib/fw.ex | royveshovda/buildstuff2016 | edb7c283a84a939383f6869eb623030d7316a91b | [
"MIT"
] | 2 | 2016-11-19T13:27:28.000Z | 2016-11-25T22:00:05.000Z | apps/fw/lib/fw.ex | royveshovda/buildstuff2016 | edb7c283a84a939383f6869eb623030d7316a91b | [
"MIT"
] | null | null | null | apps/fw/lib/fw.ex | royveshovda/buildstuff2016 | edb7c283a84a939383f6869eb623030d7316a91b | [
"MIT"
] | null | null | null | defmodule Fw do
use Application
alias Nerves.InterimWiFi, as: WiFi
# See http://elixir-lang.org/docs/stable/elixir/Application.html
# for more information on OTP Applications
def start(_type, _args) do
import Supervisor.Spec, warn: false
# Define workers and child supervisors to be supervised
ch... | 27.366667 | 67 | 0.683313 |
e8f8207fee4210f41d905e702df963a5039e8ff6 | 915 | exs | Elixir | config/test.exs | LazarRistic/asf | 2c557f06839a129b35174142c91f60696be2fa89 | [
"MIT"
] | null | null | null | config/test.exs | LazarRistic/asf | 2c557f06839a129b35174142c91f60696be2fa89 | [
"MIT"
] | null | null | null | config/test.exs | LazarRistic/asf | 2c557f06839a129b35174142c91f60696be2fa89 | [
"MIT"
] | null | null | null | use Mix.Config
# Only in tests, remove the complexity from the password hashing algorithm
config :bcrypt_elixir, :log_rounds, 1
# Configure your database
#
# The MIX_TEST_PARTITION environment variable can be used
# to provide built-in test partitioning in CI environment.
# Run `mix help test` for more information.
c... | 26.911765 | 74 | 0.743169 |
e8f88967dc00d20378807760a15e18a74ddd9e14 | 890 | exs | Elixir | test/pco_api/people_test.exs | geolessel/pco-api-elixir | 6f4d9f86247a1f6370a512166e9fed3a216302e5 | [
"MIT"
] | 4 | 2016-05-13T20:04:32.000Z | 2020-12-03T11:25:01.000Z | test/pco_api/people_test.exs | geolessel/pco-api-elixir | 6f4d9f86247a1f6370a512166e9fed3a216302e5 | [
"MIT"
] | 23 | 2016-05-14T01:34:02.000Z | 2016-08-16T22:34:40.000Z | test/pco_api/people_test.exs | geolessel/pco-api-elixir | 6f4d9f86247a1f6370a512166e9fed3a216302e5 | [
"MIT"
] | 4 | 2016-05-27T23:40:39.000Z | 2019-10-06T17:36:40.000Z | defmodule PcoApi.PeopleTest do
use ExUnit.Case
alias TestHelper.Fixture
setup do
bypass = Bypass.open
Application.put_env(:pco_api, :endpoint_base, "http://localhost:#{bypass.port}/")
{:ok, bypass: bypass}
end
test ".resource requests a custom resource path with ids", %{bypass: bypass} do
By... | 31.785714 | 85 | 0.682022 |
e8f894843880e186dac16202b0baf82b18205a13 | 751 | ex | Elixir | lib/suomidev/submissions/policy.ex | yliaho/suomi.dev | 4e1946adbeb67cebdc1b7e2009ddecf66497a9c7 | [
"MIT"
] | 19 | 2020-08-24T02:50:26.000Z | 2021-05-31T20:54:30.000Z | lib/suomidev/submissions/policy.ex | yliaho/suomi.dev | 4e1946adbeb67cebdc1b7e2009ddecf66497a9c7 | [
"MIT"
] | 2 | 2020-08-24T06:59:46.000Z | 2020-08-26T09:51:40.000Z | lib/suomidev/submissions/policy.ex | yliaho/suomi.dev | 4e1946adbeb67cebdc1b7e2009ddecf66497a9c7 | [
"MIT"
] | 6 | 2020-08-26T02:52:48.000Z | 2022-03-08T12:55:51.000Z | defmodule Suomidev.Submissions.Policy do
@behaviour Bodyguard.Policy
alias Suomidev.Accounts.User
def authorize(:create, %User{}, _params) do
true
end
def authorize(:update, %User{id: current_user_id}, %{"submission" => %{"user_id" => post_user_id}}) do
IO.inspect([current_user_id, String.to_intege... | 25.896552 | 118 | 0.685752 |
e8f8a1c245bc3850640174bbbab5125f18235d58 | 1,003 | exs | Elixir | mix.exs | rzane/ex_unit_let | d12127054b7c90903e3f0476c138dd14e3929b7a | [
"MIT"
] | 1 | 2017-10-25T19:30:06.000Z | 2017-10-25T19:30:06.000Z | mix.exs | rzane/ex_unit_let | d12127054b7c90903e3f0476c138dd14e3929b7a | [
"MIT"
] | null | null | null | mix.exs | rzane/ex_unit_let | d12127054b7c90903e3f0476c138dd14e3929b7a | [
"MIT"
] | null | null | null | defmodule ExUnitLet.Mixfile do
use Mix.Project
def project do
[app: :ex_unit_let,
version: "0.1.0",
elixir: "~> 1.3",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
description: "A simple let macro for ExUnit.",
package: package(),
deps: deps()]
end
... | 23.880952 | 77 | 0.599202 |
e8f90b4cffe964fe0ca87459053927a90df74f4d | 3,969 | ex | Elixir | apps/extract_kafka/lib/extract/kafka/subscribe.ex | jmorris-pillar/hindsight | 48f00fb99053eb6e527d4c3c22dac4c726ab9001 | [
"Apache-2.0"
] | null | null | null | apps/extract_kafka/lib/extract/kafka/subscribe.ex | jmorris-pillar/hindsight | 48f00fb99053eb6e527d4c3c22dac4c726ab9001 | [
"Apache-2.0"
] | null | null | null | apps/extract_kafka/lib/extract/kafka/subscribe.ex | jmorris-pillar/hindsight | 48f00fb99053eb6e527d4c3c22dac4c726ab9001 | [
"Apache-2.0"
] | null | null | null | defmodule Extract.Kafka.Subscribe do
use Definition, schema: Extract.Kafka.Subscribe.V1
@type t :: %__MODULE__{
version: integer,
endpoints: keyword,
topic: String.t()
}
defstruct version: 1, endpoints: nil, topic: nil
def on_new(data) do
data
|> Map.update(:endp... | 26.111842 | 92 | 0.581255 |
e8f9217f0d9eb0df1b95a27db0c9a0f8a1b93aad | 697 | exs | Elixir | apps/bus_detective/priv/repo/migrations/20180704025859_create_routes.exs | bus-detective/bus_detective_ng | ef54684d4f640384bd20a4d5550ff51ab440190b | [
"MIT"
] | 8 | 2018-07-06T14:44:10.000Z | 2021-08-19T17:24:25.000Z | apps/bus_detective/priv/repo/migrations/20180704025859_create_routes.exs | bus-detective/bus_detective_ng | ef54684d4f640384bd20a4d5550ff51ab440190b | [
"MIT"
] | 12 | 2018-07-15T18:43:04.000Z | 2022-02-10T16:07:47.000Z | apps/bus_detective/priv/repo/migrations/20180704025859_create_routes.exs | bus-detective/bus_detective_ng | ef54684d4f640384bd20a4d5550ff51ab440190b | [
"MIT"
] | 1 | 2018-07-13T17:30:20.000Z | 2018-07-13T17:30:20.000Z | defmodule BusDetective.Repo.Migrations.CreateRoutes do
use Ecto.Migration
def change do
create table(:routes) do
add(:feed_id, references(:feeds, on_delete: :delete_all), null: false)
add(:agency_id, references(:agencies, on_delete: :delete_all), null: false)
add(:remote_id, :string)
ad... | 27.88 | 81 | 0.651363 |
e8f92524b27ad0835552a54bccdad5e8c26f7c4d | 510 | ex | Elixir | lib/diversity_in_tech_web/controllers/company_controller.ex | dreamingechoes/diversity-in-tech | 4eb5dadf69f82fd08e1cdd1b125264930d3b4e6f | [
"MIT"
] | 8 | 2018-06-22T05:43:30.000Z | 2020-04-13T20:31:40.000Z | lib/diversity_in_tech_web/controllers/company_controller.ex | dreamingechoes/diversity-in-tech | 4eb5dadf69f82fd08e1cdd1b125264930d3b4e6f | [
"MIT"
] | null | null | null | lib/diversity_in_tech_web/controllers/company_controller.ex | dreamingechoes/diversity-in-tech | 4eb5dadf69f82fd08e1cdd1b125264930d3b4e6f | [
"MIT"
] | null | null | null | defmodule DiversityInTechWeb.CompanyController do
use DiversityInTechWeb, :controller
alias DiversityInTech.Companies
def index(conn, params) do
companies = Companies.paginate_companies(params)
render(conn, "index.html", companies: companies)
end
def show(conn, %{"slug" => slug} = params) do
co... | 30 | 68 | 0.747059 |
e8f931efe897796ef5b18f9096d49223c906e016 | 901 | exs | Elixir | test/aoc/year_2018/day_01_test.exs | dliberalesso/advent_of_code | dc96a9e92304dd1c00e282583909cca297c6d56e | [
"MIT"
] | null | null | null | test/aoc/year_2018/day_01_test.exs | dliberalesso/advent_of_code | dc96a9e92304dd1c00e282583909cca297c6d56e | [
"MIT"
] | null | null | null | test/aoc/year_2018/day_01_test.exs | dliberalesso/advent_of_code | dc96a9e92304dd1c00e282583909cca297c6d56e | [
"MIT"
] | null | null | null | defmodule Aoc.Year2018.Day01Test do
use Aoc.DayCase
doctest Aoc.Year2018.Day01, import: true
alias Aoc.Year2018.Day01
describe "part_1/1" do
test "examples" do
assert Day01.part_1("+1 -2 +3 +1") == 3
assert Day01.part_1("+1 +1 +1") == 3
assert Day01.part_1("+1 +1 -2") == 0
assert D... | 25.027778 | 48 | 0.558269 |
e8f9417cd6523e63216e2047f28f81d7376c9829 | 342 | ex | Elixir | lib/web/controllers/fallback_controller.ex | BaltimoreCity/IdeaPortal | dc1c775dfaec2aac974b821cd3700d76770c1e76 | [
"MIT"
] | 5 | 2019-08-29T20:22:25.000Z | 2020-04-01T17:40:48.000Z | lib/web/controllers/fallback_controller.ex | BaltimoreCity/IdeaPortal | dc1c775dfaec2aac974b821cd3700d76770c1e76 | [
"MIT"
] | 34 | 2019-03-06T17:53:29.000Z | 2021-09-01T01:25:23.000Z | lib/web/controllers/fallback_controller.ex | BaltimoreCity/IdeaPortal | dc1c775dfaec2aac974b821cd3700d76770c1e76 | [
"MIT"
] | 2 | 2020-01-10T22:12:36.000Z | 2021-01-22T04:37:45.000Z | defmodule Web.FallbackController do
use Web, :controller
alias Web.ErrorView
def call(conn, {:error, :not_found}) do
conn
|> put_status(404)
|> put_view(ErrorView)
|> render(:"404")
end
def call(conn, {:error, _error}) do
conn
|> put_status(500)
|> put_view(ErrorView)
|> ren... | 17.1 | 41 | 0.616959 |
e8f95d35fca6ff7924b9da96628a37f4dcb82bbe | 218 | ex | Elixir | lib/four_lucha/resource/response.ex | Thomas-Jean/four_lucha | 591627059c02edc3315b5cac2c35eacb821108ff | [
"Apache-2.0"
] | 1 | 2021-02-21T19:15:27.000Z | 2021-02-21T19:15:27.000Z | lib/four_lucha/resource/response.ex | Thomas-Jean/four_lucha | 591627059c02edc3315b5cac2c35eacb821108ff | [
"Apache-2.0"
] | null | null | null | lib/four_lucha/resource/response.ex | Thomas-Jean/four_lucha | 591627059c02edc3315b5cac2c35eacb821108ff | [
"Apache-2.0"
] | null | null | null | defmodule FourLucha.Resource.Response do
@moduledoc false
defstruct(
status_code: nil,
error: nil,
number_of_total_results: nil,
number_of_page_results: nil,
limit: nil,
offset: nil
)
end
| 18.166667 | 40 | 0.697248 |
e8f98e94323f939f145cece7bd1b5ff13bdfa0b0 | 2,993 | ex | Elixir | clients/storage_transfer/lib/google_api/storage_transfer/v1/model/operation.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/storage_transfer/lib/google_api/storage_transfer/v1/model/operation.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/storage_transfer/lib/google_api/storage_transfer/v1/model/operation.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 43.376812 | 265 | 0.703642 |
e8f994efd8c9c57f320b6b72417a7d1491ae30b3 | 68 | exs | Elixir | eyes/config/config.exs | mashbytes/sentry | d4b13419694d0e30199af6ff0f8a2b68ef54fefa | [
"MIT"
] | null | null | null | eyes/config/config.exs | mashbytes/sentry | d4b13419694d0e30199af6ff0f8a2b68ef54fefa | [
"MIT"
] | 2 | 2021-03-09T20:59:23.000Z | 2021-05-10T18:01:00.000Z | eyes/config/config.exs | mashbytes/sentry | d4b13419694d0e30199af6ff0f8a2b68ef54fefa | [
"MIT"
] | null | null | null | import Config
IO.puts(Mix.env())
import_config "#{Mix.env()}.exs"
| 11.333333 | 32 | 0.676471 |
e8f99da8065243d5fd5118d9d77308db7deddda1 | 670 | ex | Elixir | lib/hexpm/repository/release_retirement.ex | findmypast/hexfmp | 38a50f5e1057833fd98748faac230bf4b9cc26a3 | [
"Apache-2.0"
] | null | null | null | lib/hexpm/repository/release_retirement.ex | findmypast/hexfmp | 38a50f5e1057833fd98748faac230bf4b9cc26a3 | [
"Apache-2.0"
] | null | null | null | lib/hexpm/repository/release_retirement.ex | findmypast/hexfmp | 38a50f5e1057833fd98748faac230bf4b9cc26a3 | [
"Apache-2.0"
] | null | null | null | defmodule Hexpm.Repository.ReleaseRetirement do
use Hexpm.Web, :schema
embedded_schema do
field :reason, :string
field :message, :string
end
@reasons ~w(other invalid security deprecated renamed)
def changeset(meta, params) do
cast(meta, params, ~w(reason message))
|> validate_required(~w(r... | 27.916667 | 56 | 0.701493 |
e8f9ae6e477c82a27b01689a0a188171cdc4005b | 939 | ex | Elixir | 04-enumerables/enumerable.ex | kranfix/elixir-playground | 28f1314b137eb591946f501647e76d8017070ffa | [
"MIT"
] | null | null | null | 04-enumerables/enumerable.ex | kranfix/elixir-playground | 28f1314b137eb591946f501647e76d8017070ffa | [
"MIT"
] | null | null | null | 04-enumerables/enumerable.ex | kranfix/elixir-playground | 28f1314b137eb591946f501647e76d8017070ffa | [
"MIT"
] | 1 | 2020-11-17T07:06:17.000Z | 2020-11-17T07:06:17.000Z | defmodule MyEnum do
def print(list) do
for i <- 0..(length(list) - 1) do
IO.puts(Enum.at(list, i))
end
end
def map(list, fun) do
Enum.reduce(list, [], fn elem, acc -> acc ++ [fun.(elem)] end)
end
def reduce(list, fun) do
[acc | tail] = list
Enum.reduce(tail, acc, fun)
end
end
li... | 22.902439 | 66 | 0.576145 |
e8f9af2482abd5e00e726fe1e030754973ccc0b5 | 153 | ex | Elixir | elixir_backend/clubhouse_phx/lib/clubhouse_phx_web/views/session_view.ex | yusufaine/nus-clubhouse | eae8223d26111bab5e981c95b539c964293908e8 | [
"MIT"
] | 1 | 2021-05-16T08:17:37.000Z | 2021-05-16T08:17:37.000Z | elixir_backend/clubhouse_phx/lib/clubhouse_phx_web/views/session_view.ex | yusufaine/nus-clubhouse | eae8223d26111bab5e981c95b539c964293908e8 | [
"MIT"
] | 116 | 2021-05-29T16:32:51.000Z | 2021-08-13T16:05:29.000Z | elixir_backend/clubhouse_phx/lib/clubhouse_phx_web/views/session_view.ex | yusufaine/nus-clubhouse | eae8223d26111bab5e981c95b539c964293908e8 | [
"MIT"
] | 2 | 2021-05-23T07:12:40.000Z | 2021-10-11T02:59:40.000Z | defmodule ClubhousePhxWeb.SessionView do
use ClubhousePhxWeb, :view
def render("info.json", %{info: token}) do
%{access_token: token}
end
end
| 19.125 | 44 | 0.718954 |
e8f9ebe4fa79c81e9f574f92a1649805f95989f0 | 3,180 | exs | Elixir | test/credo/check/readability/string_sigils_test.exs | isaacsanders/credo | 5623570bb2e3944345f1bf11819ca613533b5e10 | [
"MIT"
] | null | null | null | test/credo/check/readability/string_sigils_test.exs | isaacsanders/credo | 5623570bb2e3944345f1bf11819ca613533b5e10 | [
"MIT"
] | null | null | null | test/credo/check/readability/string_sigils_test.exs | isaacsanders/credo | 5623570bb2e3944345f1bf11819ca613533b5e10 | [
"MIT"
] | 1 | 2020-06-30T16:32:44.000Z | 2020-06-30T16:32:44.000Z | defmodule Credo.Check.Readability.StringSigilsTest do
use Credo.TestHelper
@described_check Credo.Check.Readability.StringSigils
def create_snippet(string_literal) do
"""
defmodule CredoTest do
@module_var "#{string_literal}"
end
"""
end
def create_sigil_snippet(string_literal, sigil ... | 22.394366 | 83 | 0.62956 |
e8f9f3f79be06d518a2e290af7443c9581d110e1 | 1,424 | ex | Elixir | lib/sobelow/traversal/file_module.ex | juancgalvis/sobelow | 9ae3874c26ab7cfa6c8a8517ccd02af98e187585 | [
"Apache-2.0"
] | 1,305 | 2017-05-12T21:09:40.000Z | 2022-03-31T04:31:49.000Z | lib/sobelow/traversal/file_module.ex | juancgalvis/sobelow | 9ae3874c26ab7cfa6c8a8517ccd02af98e187585 | [
"Apache-2.0"
] | 95 | 2017-05-15T09:45:41.000Z | 2022-03-23T03:35:48.000Z | lib/sobelow/traversal/file_module.ex | juancgalvis/sobelow | 9ae3874c26ab7cfa6c8a8517ccd02af98e187585 | [
"Apache-2.0"
] | 86 | 2017-05-15T20:18:59.000Z | 2022-02-11T22:10:34.000Z | defmodule Sobelow.Traversal.FileModule do
@uid 19
@finding_type "Traversal.FileModule: Directory Traversal in `File` function"
use Sobelow.Finding
@file_funcs [
:read,
:read!,
:write,
:write!,
:rm,
:rm!,
:rm_rf,
:open,
:open!,
:chmod,
:chmod!,
:chown,
:chown... | 24.551724 | 88 | 0.638343 |
e8f9fa264a0511e0f3dec03f035eb969f44ff86b | 32,064 | ex | Elixir | lib/ecto/adapters/sql.ex | hauleth/ecto_sql | 1d7f4b73bfa04e02a26bba8b3ea79a457850af0f | [
"Apache-2.0"
] | null | null | null | lib/ecto/adapters/sql.ex | hauleth/ecto_sql | 1d7f4b73bfa04e02a26bba8b3ea79a457850af0f | [
"Apache-2.0"
] | null | null | null | lib/ecto/adapters/sql.ex | hauleth/ecto_sql | 1d7f4b73bfa04e02a26bba8b3ea79a457850af0f | [
"Apache-2.0"
] | null | null | null | defmodule Ecto.Adapters.SQL do
@moduledoc """
This application provides functionality for working with
SQL databases in `Ecto`.
## Built-in adapters
By default, we support the following adapters:
* `Ecto.Adapters.Postgres` for Postgres
* `Ecto.Adapters.MyXQL` for MySQL
* `Ecto.Adapters.Tds` for... | 32.064 | 162 | 0.630458 |
e8fa22f73c8a62835f3a6285edcb2c78f1760076 | 2,164 | ex | Elixir | clients/health_care/lib/google_api/health_care/v1beta1/model/annotation_config.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/health_care/lib/google_api/health_care/v1beta1/model/annotation_config.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/health_care/lib/google_api/health_care/v1beta1/model/annotation_config.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... | 43.28 | 547 | 0.75878 |
e8fa2e9dc69e106d99d5bf50d3e71e3728852eb8 | 1,128 | ex | Elixir | lib/noslib/packets/error_message.ex | deva-hub/Noslib | ad4d50915ad7aa8edeaaeadb85e3b1e3fe9b4750 | [
"MIT"
] | null | null | null | lib/noslib/packets/error_message.ex | deva-hub/Noslib | ad4d50915ad7aa8edeaaeadb85e3b1e3fe9b4750 | [
"MIT"
] | null | null | null | lib/noslib/packets/error_message.ex | deva-hub/Noslib | ad4d50915ad7aa8edeaaeadb85e3b1e3fe9b4750 | [
"MIT"
] | null | null | null | defmodule NosLib.ErrorMessage do
@moduledoc """
ErrorMessage is the response to a error reason.
"""
@type reason ::
:outdated_client
| :unexpected_error
| :maintenance
| :session_already_used
| :unvalid_credentials
| :cant_authenticate
| :ci... | 27.512195 | 52 | 0.675532 |
e8fa30f62186ceef2486a73da431a2b608c87fed | 242 | ex | Elixir | lib/site_encrypt/application.ex | bucha/site_encrypt | b5559fa26ce84fd8cb84ebfcddb1b9967214e2eb | [
"MIT"
] | 387 | 2018-05-22T21:46:20.000Z | 2022-03-26T18:51:01.000Z | lib/site_encrypt/application.ex | bucha/site_encrypt | b5559fa26ce84fd8cb84ebfcddb1b9967214e2eb | [
"MIT"
] | 41 | 2018-06-03T13:02:24.000Z | 2022-02-14T11:16:24.000Z | lib/site_encrypt/application.ex | bucha/site_encrypt | b5559fa26ce84fd8cb84ebfcddb1b9967214e2eb | [
"MIT"
] | 24 | 2018-05-24T07:04:12.000Z | 2022-02-09T08:21:05.000Z | defmodule SiteEncrypt.Application do
@moduledoc false
use Application
def start(_type, _args) do
Supervisor.start_link(
[SiteEncrypt.Registry],
strategy: :one_for_one,
name: SiteEncrypt.Supervisor
)
end
end
| 18.615385 | 36 | 0.702479 |
e8fa691040fcf2bb277c0a6b315b5aad31764886 | 8,744 | exs | Elixir | test/exactor_test.exs | liveforeverx/exactor | 65a2cef190d2bd654d08c6f9ea49c8533bc432f6 | [
"MIT"
] | null | null | null | test/exactor_test.exs | liveforeverx/exactor | 65a2cef190d2bd654d08c6f9ea49c8533bc432f6 | [
"MIT"
] | null | null | null | test/exactor_test.exs | liveforeverx/exactor | 65a2cef190d2bd654d08c6f9ea49c8533bc432f6 | [
"MIT"
] | null | null | null | defmodule ExActorTest do
use ExUnit.Case
defmodule TestActor do
use ExActor.Tolerant
defcast set(x), do: new_state(x)
defcall get, state: state, do: reply(state)
defcast pm_set, state: 2, do: new_state(:two)
defcast pm_set, state: 3, do: new_state(:three)
defcall timeout, timeout: 10, do... | 27.325 | 89 | 0.656336 |
e8fae40e74867fa2a664cd340f6df2b69aca71a4 | 81 | exs | Elixir | test/views/page_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/page_view_test.exs | sergey-nechaev/asciinema-server | 64f87acec9c9b45fefa8bed8f70b41f0068ccb2b | [
"Apache-2.0"
] | null | null | null | test/views/page_view_test.exs | sergey-nechaev/asciinema-server | 64f87acec9c9b45fefa8bed8f70b41f0068ccb2b | [
"Apache-2.0"
] | null | null | null | defmodule Asciinema.PageViewTest do
use AsciinemaWeb.ConnCase, async: true
end
| 20.25 | 40 | 0.82716 |
e8fb2b0d62a4738882562e9293c44a7c80665b37 | 447 | exs | Elixir | config/config.exs | hotpyn/simple-site | 56745e4892c3382dbfbb691a3ce655a6f5ae5ece | [
"MIT"
] | null | null | null | config/config.exs | hotpyn/simple-site | 56745e4892c3382dbfbb691a3ce655a6f5ae5ece | [
"MIT"
] | null | null | null | config/config.exs | hotpyn/simple-site | 56745e4892c3382dbfbb691a3ce655a6f5ae5ece | [
"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
config :helloplug, Helloplug.Mailer,
adapter: Bamboo.SMTPAdapter,
server: "smtp.gmail.com",
port: 587,
username: System.get_env("SMTP_USERNAME"),
password: System.get_env("... | 27.9375 | 61 | 0.727069 |
e8fb35c9cd895dc54e460edb8081386d8ea5e7eb | 3,430 | ex | Elixir | lib/alixir_oss.ex | Byzanteam-Labs/alixir_oss | dd5b395a7cfa9c66ab936a5276a7a73d1e245a01 | [
"MIT"
] | null | null | null | lib/alixir_oss.ex | Byzanteam-Labs/alixir_oss | dd5b395a7cfa9c66ab936a5276a7a73d1e245a01 | [
"MIT"
] | 1 | 2018-08-15T03:29:41.000Z | 2018-08-15T09:25:31.000Z | lib/alixir_oss.ex | GreenNerd-Labs/alixir_oss | dd5b395a7cfa9c66ab936a5276a7a73d1e245a01 | [
"MIT"
] | 3 | 2018-07-27T02:51:56.000Z | 2019-01-24T09:21:44.000Z | defmodule Alixir.OSS do
@moduledoc """
`Alixir.OSS` enables puting and deleting objects for Aliyun
OSS.
## Examples
```
Alixir.OSS.put_object(args...)
|> Alixir.request()
Alixir.OSS.delete_objects(args...)
|> Alixir.request()
```
See `put_object/4` and `delete_object/4` for more de... | 28.823529 | 137 | 0.639067 |
e8fb388502f50f816fe1a970945eb87285361611 | 1,895 | ex | Elixir | clients/data_labeling/lib/google_api/data_labeling/v1beta1/model/google_cloud_datalabeling_v1beta1_time_segment.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/data_labeling/lib/google_api/data_labeling/v1beta1/model/google_cloud_datalabeling_v1beta1_time_segment.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/data_labeling/lib/google_api/data_labeling/v1beta1/model/google_cloud_datalabeling_v1beta1_time_segment.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.454545 | 156 | 0.741953 |
e8fb4b6a2730820879dcb49e3fbd2d0313065074 | 2,249 | ex | Elixir | lib/changelog_web/views/feed_view.ex | yanokwa/changelog.com | 88093bada9ff294159246b8200b3121cf41666f7 | [
"MIT"
] | 1 | 2021-03-14T21:12:49.000Z | 2021-03-14T21:12:49.000Z | lib/changelog_web/views/feed_view.ex | yanokwa/changelog.com | 88093bada9ff294159246b8200b3121cf41666f7 | [
"MIT"
] | null | null | null | lib/changelog_web/views/feed_view.ex | yanokwa/changelog.com | 88093bada9ff294159246b8200b3121cf41666f7 | [
"MIT"
] | 1 | 2018-10-03T20:55:52.000Z | 2018-10-03T20:55:52.000Z | defmodule ChangelogWeb.FeedView do
use ChangelogWeb, :public_view
alias Changelog.{Episode, ListKit, NewsItem, Post}
alias ChangelogWeb.{Endpoint, EpisodeView, NewsItemView, PersonView,
PodcastView, PostView, TimeView}
def discussion_link(nil), do: ""
def discussion_link(episode = %Epi... | 39.45614 | 160 | 0.68964 |
e8fb5743f909c56cd69ce05bfb76f2481dbbfa12 | 816 | ex | Elixir | apps/blockchain/lib/blockchain/hardfork/dao.ex | atoulme/mana | cff3fd96c23feaaeb9fe32df3c0d35ee6dc548a5 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | null | null | null | apps/blockchain/lib/blockchain/hardfork/dao.ex | atoulme/mana | cff3fd96c23feaaeb9fe32df3c0d35ee6dc548a5 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | null | null | null | apps/blockchain/lib/blockchain/hardfork/dao.ex | atoulme/mana | cff3fd96c23feaaeb9fe32df3c0d35ee6dc548a5 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | null | null | null | defmodule Blockchain.Hardfork.Dao do
alias Blockchain.Account
@spec execute(Account.Repo.t(), Blockchain.Chain.t()) :: Account.Repo.t()
def execute(repo, chain) do
dao_beneficiary = dao_beneficiary(chain)
chain
|> dao_hardfork_accounts()
|> transfer_all_balances(to: dao_beneficiary, repo: repo)
... | 28.137931 | 75 | 0.723039 |
e8fb6ee326056c78527bab1d3482d895d7a39a1d | 1,674 | ex | Elixir | lib/kafka_gen_stage/utils.ex | hrubi/kafka_gen_stage | e28b84813d1e0ab46a545247eb589096ec398a0a | [
"Apache-2.0"
] | 6 | 2018-11-20T09:46:53.000Z | 2021-04-19T14:18:52.000Z | lib/kafka_gen_stage/utils.ex | hrubi/kafka_gen_stage | e28b84813d1e0ab46a545247eb589096ec398a0a | [
"Apache-2.0"
] | 2 | 2019-09-02T08:57:37.000Z | 2019-10-24T07:29:12.000Z | lib/kafka_gen_stage/utils.ex | hrubi/kafka_gen_stage | e28b84813d1e0ab46a545247eb589096ec398a0a | [
"Apache-2.0"
] | 4 | 2019-06-28T08:38:04.000Z | 2019-10-22T13:08:24.000Z | defmodule KafkaGenStage.Utils do
@moduledoc """
Various brod based helper apis over kafka.
"""
require Logger
@typedoc "Kafka topic identifier."
@type topic :: KafkaGenStage.topic()
@typedoc "Brod's type for where to start reading in kafka topic."
@type begin_offset :: KafkaGenStage.begin_offset()
... | 33.48 | 95 | 0.666667 |
e8fbab87da51b1908da14e3e9e2fbd4a962b1b8b | 608 | ex | Elixir | test/commands/support/composite/bank_account_router.ex | jccf091/commanded | 5d68a2b1b7a222b6f204c48d886f3d2c9670f26a | [
"MIT"
] | 1 | 2022-02-20T10:42:07.000Z | 2022-02-20T10:42:07.000Z | test/commands/support/composite/bank_account_router.ex | jccf091/commanded | 5d68a2b1b7a222b6f204c48d886f3d2c9670f26a | [
"MIT"
] | null | null | null | test/commands/support/composite/bank_account_router.ex | jccf091/commanded | 5d68a2b1b7a222b6f204c48d886f3d2c9670f26a | [
"MIT"
] | null | null | null | defmodule Commanded.Commands.Composite.BankAccountRouter do
@moduledoc false
use Commanded.Commands.Router
alias Commanded.ExampleDomain.{
BankAccount,
DepositMoneyHandler,
OpenAccountHandler,
WithdrawMoneyHandler
}
alias Commanded.ExampleDomain.BankAccount.Commands.{DepositMoney, OpenAccou... | 28.952381 | 95 | 0.809211 |
e8fbe544afdc685c834cc46115a79eeec1e51a33 | 1,455 | ex | Elixir | lib/mix/tasks/ecto.create.ex | tokafish/ecto | 45d23da6faf660303484d0c993930af674685631 | [
"Apache-2.0"
] | null | null | null | lib/mix/tasks/ecto.create.ex | tokafish/ecto | 45d23da6faf660303484d0c993930af674685631 | [
"Apache-2.0"
] | null | null | null | lib/mix/tasks/ecto.create.ex | tokafish/ecto | 45d23da6faf660303484d0c993930af674685631 | [
"Apache-2.0"
] | null | null | null | defmodule Mix.Tasks.Ecto.Create do
use Mix.Task
import Mix.Ecto
@shortdoc "Create the storage for the repo"
@moduledoc """
Create the storage for the repository.
## Examples
mix ecto.create
mix ecto.create -r Custom.Repo
## Command line options
* `-r`, `--repo` - the repo to create (... | 27.980769 | 106 | 0.593814 |
e8fbe8e6448ce38b12f0ae1374bb3f81e25ee2ba | 65 | ex | Elixir | lib/companion_web/views/auth_view.ex | praekeltfoundation/nurseconnect-companion | 9afaabaf3ae3e0123abcbd12e0a2073b681e9052 | [
"BSD-3-Clause"
] | 1 | 2018-10-10T18:20:22.000Z | 2018-10-10T18:20:22.000Z | lib/companion_web/views/auth_view.ex | praekeltfoundation/nurseconnect-companion | 9afaabaf3ae3e0123abcbd12e0a2073b681e9052 | [
"BSD-3-Clause"
] | 23 | 2018-06-07T15:13:15.000Z | 2019-07-30T09:06:03.000Z | lib/companion_web/views/auth_view.ex | praekeltfoundation/nurseconnect-companion | 9afaabaf3ae3e0123abcbd12e0a2073b681e9052 | [
"BSD-3-Clause"
] | null | null | null | defmodule CompanionWeb.AuthView do
use CompanionWeb, :view
end
| 16.25 | 34 | 0.815385 |
e8fc29500b335f3ac83930789167a4bd9a764da3 | 1,895 | exs | Elixir | test/nerves_hub_device/client_test.exs | smartrent/nerves_hub | 07100a0715d3f08ecc6fffeba3a88bd098b13c90 | [
"Apache-2.0"
] | null | null | null | test/nerves_hub_device/client_test.exs | smartrent/nerves_hub | 07100a0715d3f08ecc6fffeba3a88bd098b13c90 | [
"Apache-2.0"
] | 4 | 2019-05-30T15:13:04.000Z | 2020-01-09T16:02:10.000Z | test/nerves_hub_device/client_test.exs | smartrent/nerves_hub_device | 07100a0715d3f08ecc6fffeba3a88bd098b13c90 | [
"Apache-2.0"
] | null | null | null | defmodule NervesHubDevice.ClientTest do
use ExUnit.Case, async: true
alias NervesHubDevice.{Client, ClientMock}
doctest Client
setup context, do: Mox.verify_on_exit!(context)
test "update_available/2" do
Mox.expect(ClientMock, :update_available, fn :data -> :apply end)
assert Client.update_availabl... | 34.454545 | 84 | 0.701847 |
e8fc31f3333d0ea948256b9c11bf3a3719a28fab | 292 | exs | Elixir | priv/repo/migrations/20210802212442_create_tasks.exs | danielmarreirosdeoliveira/cometoid | 7a1c4f7700eb4dbb5f4c44fdc5185d048a429e50 | [
"Apache-2.0"
] | null | null | null | priv/repo/migrations/20210802212442_create_tasks.exs | danielmarreirosdeoliveira/cometoid | 7a1c4f7700eb4dbb5f4c44fdc5185d048a429e50 | [
"Apache-2.0"
] | null | null | null | priv/repo/migrations/20210802212442_create_tasks.exs | danielmarreirosdeoliveira/cometoid | 7a1c4f7700eb4dbb5f4c44fdc5185d048a429e50 | [
"Apache-2.0"
] | null | null | null | defmodule Cometoid.Repo.Migrations.CreateTasks do
use Ecto.Migration
def change do
create table(:tasks) do
add :title, :string
add :description, :string
add :type, :string
add :done, :boolean, default: false, null: false
timestamps()
end
end
end
| 19.466667 | 54 | 0.650685 |
e8fc4de412db66f393481bf3d21434e2a1cf25d0 | 1,231 | exs | Elixir | test/go_champs_api_web/controllers/search_controller_test.exs | lairjr/go_champs_api | 01cb3ff2c655910839e5caf4282a8e50543e32a1 | [
"MIT"
] | null | null | null | test/go_champs_api_web/controllers/search_controller_test.exs | lairjr/go_champs_api | 01cb3ff2c655910839e5caf4282a8e50543e32a1 | [
"MIT"
] | 5 | 2021-09-29T04:01:54.000Z | 2021-11-02T03:11:52.000Z | test/go_champs_api_web/controllers/search_controller_test.exs | lairjr/tournamentsapi | dde8f8f659074527d3861391af3ab29f070179f2 | [
"MIT"
] | 1 | 2021-11-02T14:43:15.000Z | 2021-11-02T14:43:15.000Z | defmodule GoChampsApiWeb.SearchControllerTest do
use GoChampsApiWeb.ConnCase
alias GoChampsApi.Organizations
alias GoChampsApi.Tournaments
@create_attrs %{name: "some name", slug: "some-slug"}
@organization_attrs %{name: "some organization", slug: "some-org-slug"}
def fixture(:tournament, organization_p... | 31.564103 | 87 | 0.701056 |
e8fc619ef88d669d28077eb02d9ffacf87b4e550 | 2,313 | ex | Elixir | apps/omg_watcher/lib/web/error_handler.ex | Pongch/elixir-omg | 8a33c246898b49cba62b847e0989d9b6c89f5106 | [
"Apache-2.0"
] | null | null | null | apps/omg_watcher/lib/web/error_handler.ex | Pongch/elixir-omg | 8a33c246898b49cba62b847e0989d9b6c89f5106 | [
"Apache-2.0"
] | null | null | null | apps/omg_watcher/lib/web/error_handler.ex | Pongch/elixir-omg | 8a33c246898b49cba62b847e0989d9b6c89f5106 | [
"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... | 28.9125 | 100 | 0.686122 |
e8fcc75479fcd92718b9597d478af7c385625e73 | 1,827 | exs | Elixir | test/oauth2/strategy/client_credentials_test.exs | stephenmoloney/oauth2 | 4a1b2441700f34a54bb4446a36415b71217086d5 | [
"MIT"
] | null | null | null | test/oauth2/strategy/client_credentials_test.exs | stephenmoloney/oauth2 | 4a1b2441700f34a54bb4446a36415b71217086d5 | [
"MIT"
] | 2 | 2018-09-07T04:52:56.000Z | 2018-09-07T04:53:07.000Z | test/oauth2/strategy/client_credentials_test.exs | stephenmoloney/oauth2 | 4a1b2441700f34a54bb4446a36415b71217086d5 | [
"MIT"
] | 1 | 2020-02-07T15:27:26.000Z | 2020-02-07T15:27:26.000Z | defmodule OAuth2.Strategy.ClientCredentialsTest do
use ExUnit.Case, async: true
use Plug.Test
alias OAuth2.Strategy.ClientCredentials
alias OAuth2.Client
import OAuth2.TestHelpers
setup do
server = Bypass.open
client = build_client(strategy: ClientCredentials, site: bypass_server(server))
{:ok... | 37.285714 | 105 | 0.698413 |
e8fcca48d44c0a3a55334d68515493c6cb934f0f | 1,129 | exs | Elixir | mix.exs | mattludwigs/nerves_firmware_ssh | 3e55942d0f08d8e83a6065b42f3482697f17dff7 | [
"Apache-2.0"
] | null | null | null | mix.exs | mattludwigs/nerves_firmware_ssh | 3e55942d0f08d8e83a6065b42f3482697f17dff7 | [
"Apache-2.0"
] | null | null | null | mix.exs | mattludwigs/nerves_firmware_ssh | 3e55942d0f08d8e83a6065b42f3482697f17dff7 | [
"Apache-2.0"
] | null | null | null | defmodule Nerves.Firmware.SSH.MixProject do
use Mix.Project
@version "0.4.4"
@description "Perform over-the-air updates to Nerves devices using ssh"
def project() do
[
app: :nerves_firmware_ssh,
version: @version,
description: @description,
package: package(),
elixir: "~> 1.... | 23.040816 | 85 | 0.574845 |
e8fcf1f3299bb0158004dce9cac2a5db23db23d7 | 71 | ex | Elixir | lib/coderjobs_web/views/auth/login_view.ex | johndavedecano/CoderJobs | a185c3129f92430d8e72184f359c16f93f24c43b | [
"MIT"
] | 28 | 2017-11-20T02:01:17.000Z | 2021-05-08T16:52:58.000Z | lib/coderjobs_web/views/auth/login_view.ex | johndavedecano/CoderJobs | a185c3129f92430d8e72184f359c16f93f24c43b | [
"MIT"
] | 1 | 2018-12-05T06:07:36.000Z | 2018-12-09T17:33:28.000Z | lib/coderjobs_web/views/auth/login_view.ex | johndavedecano/CoderJobs | a185c3129f92430d8e72184f359c16f93f24c43b | [
"MIT"
] | 3 | 2017-12-21T03:29:39.000Z | 2019-08-11T02:56:08.000Z | defmodule CoderjobsWeb.Auth.LoginView do
use CoderjobsWeb, :view
end
| 17.75 | 40 | 0.816901 |
e8fcfcbae5a31f867f292e6127b8618ed59ae33d | 2,502 | ex | Elixir | lib/eeyeore/config/bolt.ex | rebpdx/eeyeore | 944ddbfe8fafd67137658948c03492baa340d4de | [
"MIT"
] | 2 | 2021-11-17T17:16:17.000Z | 2021-12-08T04:39:42.000Z | lib/eeyeore/config/bolt.ex | rebpdx/eeyeore | 944ddbfe8fafd67137658948c03492baa340d4de | [
"MIT"
] | null | null | null | lib/eeyeore/config/bolt.ex | rebpdx/eeyeore | 944ddbfe8fafd67137658948c03492baa340d4de | [
"MIT"
] | null | null | null | defmodule Eeyeore.Config.Bolt do
require Logger
@moduledoc """
Represents a single bolt, as a strip of LEDs in blinkchain.
*`id`: The number in the array of bolts
*`length`: The number of LEDs in the bolt
*`start`: The first LED in the strip
*`end`: The last LED in the strip
*`neighbors`: Any neighbor... | 25.530612 | 81 | 0.570743 |
e8fd24f53d4390f86bfb120ca043dbe3b7649a97 | 3,822 | exs | Elixir | test/html5_test.exs | lurnid/html_sanitize_ex | 5ed16b9945d123bfbe591f8897ec8d5dbbc08aa3 | [
"MIT"
] | null | null | null | test/html5_test.exs | lurnid/html_sanitize_ex | 5ed16b9945d123bfbe591f8897ec8d5dbbc08aa3 | [
"MIT"
] | null | null | null | test/html5_test.exs | lurnid/html_sanitize_ex | 5ed16b9945d123bfbe591f8897ec8d5dbbc08aa3 | [
"MIT"
] | null | null | null | defmodule HtmlSanitizeExScrubberHTML5Test do
use ExUnit.Case
defp full_html_sanitize(text) do
HtmlSanitizeEx.html5(text)
end
test "strips nothing" do
input = "This <b>is</b> <b>an</b> <i>example</i> of <u>space</u> eating."
assert input == full_html_sanitize(input)
end
test "leaves the allowe... | 31.586777 | 119 | 0.652015 |
e8fd43583c44d09c2b2f4eea228241b3e8abf537 | 743 | ex | Elixir | lib/space_mongers/models/owned_ship.ex | ericgroom/space_mongers | e9f979318dca2e8ee4f685014bae585db15cd117 | [
"MIT"
] | 2 | 2021-03-18T02:00:29.000Z | 2021-04-18T06:11:07.000Z | lib/space_mongers/models/owned_ship.ex | ericgroom/space_mongers | e9f979318dca2e8ee4f685014bae585db15cd117 | [
"MIT"
] | null | null | null | lib/space_mongers/models/owned_ship.ex | ericgroom/space_mongers | e9f979318dca2e8ee4f685014bae585db15cd117 | [
"MIT"
] | null | null | null | defmodule SpaceMongers.Models.OwnedShip do
@moduledoc """
Represents a ship owned by the user.
"""
use SpaceMongers.Model,
id: binary(),
location: String.t(),
x: integer(),
y: integer(),
cargo: [__MODULE__.ContainedGood.t()],
max_cargo: integer(),
space_available: integer(),
clas... | 23.21875 | 56 | 0.64603 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.