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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7368a1b48a0629f7b153ab8ce38ade74d9252070 | 10,153 | exs | Elixir | test/credo/code/token_test.exs | isaacsanders/credo | 5623570bb2e3944345f1bf11819ca613533b5e10 | [
"MIT"
] | null | null | null | test/credo/code/token_test.exs | isaacsanders/credo | 5623570bb2e3944345f1bf11819ca613533b5e10 | [
"MIT"
] | null | null | null | test/credo/code/token_test.exs | isaacsanders/credo | 5623570bb2e3944345f1bf11819ca613533b5e10 | [
"MIT"
] | 1 | 2020-06-30T16:32:44.000Z | 2020-06-30T16:32:44.000Z | defmodule Credo.Code.TokenTest do
use Credo.TestHelper
alias Credo.Code.Token
@heredoc_interpolations_source """
def fun() do
a = \"\"\"
MyModule.\#{fun(Module.value() + 1)}.SubModule.\#{name}"
\"\"\"
end
"""
@heredoc_interpolations_position {1, 5, 1, 60}
@multiple_interpolations_source ~... | 29.687135 | 97 | 0.489707 |
7368b747160dc55a5ab520182bfff34dbe273017 | 505 | exs | Elixir | apps/core/priv/repo/migrations/20191109171611_add_terraform_installations.exs | michaeljguarino/forge | 50ee583ecb4aad5dee4ef08fce29a8eaed1a0824 | [
"Apache-2.0"
] | 59 | 2021-09-16T19:29:39.000Z | 2022-03-31T20:44:24.000Z | apps/core/priv/repo/migrations/20191109171611_add_terraform_installations.exs | svilenkov/plural | ac6c6cc15ac4b66a3b5e32ed4a7bee4d46d1f026 | [
"Apache-2.0"
] | 111 | 2021-08-15T09:56:37.000Z | 2022-03-31T23:59:32.000Z | apps/core/priv/repo/migrations/20191109171611_add_terraform_installations.exs | svilenkov/plural | ac6c6cc15ac4b66a3b5e32ed4a7bee4d46d1f026 | [
"Apache-2.0"
] | 4 | 2021-12-13T09:43:01.000Z | 2022-03-29T18:08:44.000Z | defmodule Core.Repo.Migrations.AddTerraformInstallations do
use Ecto.Migration
def change do
create table(:terraform_installations, primary_key: false) do
add :id, :uuid, primary_key: true
add :terraform_id, references(:terraform, type: :uuid, on_delete: :delete_all)
add :installation_id, ref... | 31.5625 | 91 | 0.738614 |
7368bab68a6d48d96422e3155b40be70b8894673 | 9,955 | exs | Elixir | lib/elixir/test/elixir/path_test.exs | elkinsd/elixir | 810965e193cb57b82363e7c0c97b719743b7964f | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/path_test.exs | elkinsd/elixir | 810965e193cb57b82363e7c0c97b719743b7964f | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/path_test.exs | elkinsd/elixir | 810965e193cb57b82363e7c0c97b719743b7964f | [
"Apache-2.0"
] | null | null | null | Code.require_file "test_helper.exs", __DIR__
defmodule PathTest do
use ExUnit.Case, async: true
doctest Path
import PathHelpers
if :file.native_name_encoding == :utf8 do
test "wildcard with utf8" do
File.mkdir_p(tmp_path("héllò"))
assert Path.wildcard(tmp_path("héllò")) == [tmp_path("héllò")... | 40.303644 | 106 | 0.591261 |
73699d1dada663af0c7f446d1054ce31b5a65abe | 351 | exs | Elixir | priv/repo/seeds.exs | moroz/renraku | 845e6a72573f138094ba8f868ac91b7f3440bdab | [
"BSD-3-Clause"
] | null | null | null | priv/repo/seeds.exs | moroz/renraku | 845e6a72573f138094ba8f868ac91b7f3440bdab | [
"BSD-3-Clause"
] | null | null | null | priv/repo/seeds.exs | moroz/renraku | 845e6a72573f138094ba8f868ac91b7f3440bdab | [
"BSD-3-Clause"
] | null | null | null | # Script for populating the database. You can run it as:
#
# mix run priv/repo/seeds.exs
#
# Inside the script, you can read and write to any of your
# repositories directly:
#
# Renraku.Repo.insert!(%Renraku.SomeSchema{})
#
# We recommend using the bang functions (`insert!`, `update!`
# and so on) as they will... | 29.25 | 61 | 0.706553 |
7369bfc5605f2558d2e097cef56de3173214ca7b | 1,018 | ex | Elixir | lib/rocketpay/users/create.ex | willianns/rocketpay | 34c882b47ab1cb2a83b51c6bb17eeceb7714ab92 | [
"Unlicense"
] | 2 | 2021-03-01T09:15:57.000Z | 2021-03-02T23:30:57.000Z | lib/rocketpay/users/create.ex | willianns/rocketpay | 34c882b47ab1cb2a83b51c6bb17eeceb7714ab92 | [
"Unlicense"
] | null | null | null | lib/rocketpay/users/create.ex | willianns/rocketpay | 34c882b47ab1cb2a83b51c6bb17eeceb7714ab92 | [
"Unlicense"
] | null | null | null | defmodule Rocketpay.Users.Create do
alias Ecto.Multi
alias Rocketpay.{Repo, User, Account}
def call(params) do
Multi.new()
|> Multi.insert(:create_user, User.changeset(params))
|> Multi.run(:create_account, fn repo, %{create_user: user} ->
insert_account(repo, user.id)
end)
|> Multi.run... | 24.238095 | 66 | 0.638507 |
7369dd7364301b99d1abd8b8f242532c1a7e94ea | 590 | exs | Elixir | priv/repo/migrations/20200527145236_create_test_tables.exs | jokawachi-hg/flop | 0d8132e5da9f6b08913f16dba26a5c20a9b49db7 | [
"MIT"
] | null | null | null | priv/repo/migrations/20200527145236_create_test_tables.exs | jokawachi-hg/flop | 0d8132e5da9f6b08913f16dba26a5c20a9b49db7 | [
"MIT"
] | null | null | null | priv/repo/migrations/20200527145236_create_test_tables.exs | jokawachi-hg/flop | 0d8132e5da9f6b08913f16dba26a5c20a9b49db7 | [
"MIT"
] | null | null | null | defmodule Flop.Repo.Migrations.CreateTestTables do
use Ecto.Migration
def change do
create table(:owners) do
add :age, :integer
add :email, :string
add :name, :string
add :tags, {:array, :string}
end
create table(:pets) do
add :age, :integer
add :family_name, :strin... | 21.071429 | 50 | 0.6 |
7369f776d332debbe5f37ff95de0cdba15b7d2f4 | 272 | exs | Elixir | config/test.exs | feihong/elixir-quickstart | bbdb839c3db4f1470b4172b7036dc6d9ed9c6251 | [
"Apache-2.0"
] | null | null | null | config/test.exs | feihong/elixir-quickstart | bbdb839c3db4f1470b4172b7036dc6d9ed9c6251 | [
"Apache-2.0"
] | null | null | null | config/test.exs | feihong/elixir-quickstart | bbdb839c3db4f1470b4172b7036dc6d9ed9c6251 | [
"Apache-2.0"
] | null | null | null | use Mix.Config
# We don't run a server during test. If one is required,
# you can enable the server option below.
config :quickstart, QuickstartWeb.Endpoint,
http: [port: 4001],
server: false
# Print only warnings and errors during test
config :logger, level: :warn
| 24.727273 | 56 | 0.742647 |
736a3b77e40f578d8840f2150256d1fc5e0d8c20 | 1,588 | ex | Elixir | clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/local_object_reference.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/local_object_reference.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/local_object_reference.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 33.787234 | 165 | 0.751259 |
736a74f5dd4b8924a446bda4a16f39a0df0dc1f5 | 2,134 | ex | Elixir | clients/display_video/lib/google_api/display_video/v1/model/exit_event.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/display_video/lib/google_api/display_video/v1/model/exit_event.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/display_video/lib/google_api/display_video/v1/model/exit_event.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.107143 | 211 | 0.704311 |
736a820af27668fc64c5587f2a20001b6511b701 | 2,884 | ex | Elixir | lib/chat_api/widget_settings.ex | webdeb/papercups | c9ccbf7365de0085232f5d3b1633f8aac698cf9c | [
"MIT"
] | 1 | 2020-08-13T15:11:12.000Z | 2020-08-13T15:11:12.000Z | lib/chat_api/widget_settings.ex | webdeb/papercups | c9ccbf7365de0085232f5d3b1633f8aac698cf9c | [
"MIT"
] | null | null | null | lib/chat_api/widget_settings.ex | webdeb/papercups | c9ccbf7365de0085232f5d3b1633f8aac698cf9c | [
"MIT"
] | null | null | null | defmodule ChatApi.WidgetSettings do
@moduledoc """
The WidgetSettings context.
"""
import Ecto.Query, warn: false
alias ChatApi.Repo
alias ChatApi.WidgetSettings.WidgetSetting
@doc """
Returns the list of widget_settings.
## Examples
iex> list_widget_settings()
[%WidgetSetting{}, ...]... | 21.684211 | 79 | 0.677184 |
736a9c7960463a51baa230321cbd6fd7a1a5ee17 | 3,655 | ex | Elixir | lib/fire_act/changeset_params.ex | arathunku/fire-act | 2577361f66463ab0741ba9db6f35850f64a0c992 | [
"MIT"
] | 2 | 2019-06-03T18:24:10.000Z | 2019-08-23T08:29:43.000Z | lib/fire_act/changeset_params.ex | arathunku/fire-act | 2577361f66463ab0741ba9db6f35850f64a0c992 | [
"MIT"
] | null | null | null | lib/fire_act/changeset_params.ex | arathunku/fire-act | 2577361f66463ab0741ba9db6f35850f64a0c992 | [
"MIT"
] | null | null | null | defmodule FireAct.ChangesetParams do
@callback cast(any, Map.t()) :: Ecto.Changeset.t()
@callback validate_params(FireAct.Action.t(), Map.t()) :: Ecto.Changeset.t()
@moduledoc """
Params validation based on Ecto.Changeset.
## Examples
iex> {:ok, %FireAct.Action{} = action} = FireAct.run(RegisterUser, %... | 26.875 | 90 | 0.622709 |
736aa22bab4fe25598fe6e37bfadf4c1cd0b68f9 | 72 | exs | Elixir | test/views/page_view_test.exs | NorifumiKawamoto/ginjyo | 8e28438db4675bb55ba090614c6834190adb61b1 | [
"MIT"
] | null | null | null | test/views/page_view_test.exs | NorifumiKawamoto/ginjyo | 8e28438db4675bb55ba090614c6834190adb61b1 | [
"MIT"
] | null | null | null | test/views/page_view_test.exs | NorifumiKawamoto/ginjyo | 8e28438db4675bb55ba090614c6834190adb61b1 | [
"MIT"
] | null | null | null | defmodule Ginjyo.PageViewTest do
use Ginjyo.ConnCase, async: true
end
| 18 | 34 | 0.805556 |
736aad140247790c1bb15c9e63f9b0b95466bc5c | 47 | exs | Elixir | test/tipalti_test.exs | gadabout/tipalti-elixir | 4cff4108b343b8d7c30d117494838ad00a46128a | [
"MIT"
] | 8 | 2018-04-26T21:40:07.000Z | 2019-08-14T10:55:53.000Z | test/tipalti_test.exs | gadabout/tipalti-elixir | 4cff4108b343b8d7c30d117494838ad00a46128a | [
"MIT"
] | 198 | 2018-04-26T21:53:20.000Z | 2022-03-23T15:20:11.000Z | test/tipalti_test.exs | gadabout/tipalti-elixir | 4cff4108b343b8d7c30d117494838ad00a46128a | [
"MIT"
] | 1 | 2018-11-09T03:10:36.000Z | 2018-11-09T03:10:36.000Z | defmodule TipaltiTest do
use ExUnit.Case
end
| 11.75 | 24 | 0.808511 |
736ab26ed3915a044bc10caaaa4f73caa2acf72a | 3,537 | ex | Elixir | lib/ueberauth/strategy/disqus.ex | cgorshing/ueberauth_disqus | 6530fd0ce9b575ee3350544bf172aa0be5316dff | [
"MIT"
] | null | null | null | lib/ueberauth/strategy/disqus.ex | cgorshing/ueberauth_disqus | 6530fd0ce9b575ee3350544bf172aa0be5316dff | [
"MIT"
] | null | null | null | lib/ueberauth/strategy/disqus.ex | cgorshing/ueberauth_disqus | 6530fd0ce9b575ee3350544bf172aa0be5316dff | [
"MIT"
] | null | null | null | defmodule Ueberauth.Strategy.Disqus do
require Logger
@moduledoc """
Disqus Strategy for Überauth.
"""
use Ueberauth.Strategy,
default_scope: "read",
oauth2_module: Ueberauth.Strategy.Disqus.OAuth
alias Ueberauth.Auth.Info
alias Ueberauth.Auth.Credentials
alias Ueberauth.Auth.Extra
alias U... | 26.395522 | 165 | 0.651117 |
736ae9ce046a9161fbec677b992f06be4d1619ef | 2,256 | ex | Elixir | lib/elixir_sense/providers/suggestion/reducers/overridable.ex | J3RN/elixir_sense | 0e978dcfbf0a0602743917e3e71dfa40bf7467cf | [
"MIT",
"Unlicense"
] | null | null | null | lib/elixir_sense/providers/suggestion/reducers/overridable.ex | J3RN/elixir_sense | 0e978dcfbf0a0602743917e3e71dfa40bf7467cf | [
"MIT",
"Unlicense"
] | null | null | null | lib/elixir_sense/providers/suggestion/reducers/overridable.ex | J3RN/elixir_sense | 0e978dcfbf0a0602743917e3e71dfa40bf7467cf | [
"MIT",
"Unlicense"
] | null | null | null | defmodule ElixirSense.Providers.Suggestion.Reducers.Overridable do
@moduledoc false
alias ElixirSense.Core.Introspection
alias ElixirSense.Core.State
@doc """
A reducer that adds suggestions of overridable functions.
"""
def add_overridable(_hint, %State.Env{scope: {_f, _a}}, _metadata, _cursor_context,... | 30.08 | 93 | 0.578901 |
736b028a9a5bbe51dc7a567217bf8534e850f3ed | 142 | ex | Elixir | lib/empex_cookbook_web/views/tag_view.ex | ludwikbukowski/recipes | cac5711d32874c3011da8da3329b70d0e28e725e | [
"MIT"
] | 4 | 2019-02-11T12:15:36.000Z | 2021-03-22T16:23:47.000Z | lib/empex_cookbook_web/views/tag_view.ex | ludwikbukowski/recipes | cac5711d32874c3011da8da3329b70d0e28e725e | [
"MIT"
] | null | null | null | lib/empex_cookbook_web/views/tag_view.ex | ludwikbukowski/recipes | cac5711d32874c3011da8da3329b70d0e28e725e | [
"MIT"
] | null | null | null | defmodule EmpexCookbookWeb.TagView do
use EmpexCookbookWeb, :view
def render("index.json", %{tags: tags}) do
%{tags: tags}
end
end
| 17.75 | 44 | 0.697183 |
736b0715253071d72da79d015ed954017cfeef5e | 3,879 | ex | Elixir | lib/mappers/ingest/validate.ex | evandiewald/mappers | 7359cfb39a4d9d26c42f5917ee04a7e41d3291bc | [
"Apache-2.0"
] | null | null | null | lib/mappers/ingest/validate.ex | evandiewald/mappers | 7359cfb39a4d9d26c42f5917ee04a7e41d3291bc | [
"Apache-2.0"
] | null | null | null | lib/mappers/ingest/validate.ex | evandiewald/mappers | 7359cfb39a4d9d26c42f5917ee04a7e41d3291bc | [
"Apache-2.0"
] | null | null | null | defmodule Mappers.Ingest.Validate do
def validate_message(message) do
if match?(%{"decoded" => %{"payload" => %{"latitude" => _}}}, message) == false do
{:error, "Missing Field: latitude"}
else
if match?(%{"decoded" => %{"payload" => %{"longitude" => _}}}, message) == false do
{:error, "Mi... | 41.709677 | 103 | 0.427945 |
736b0f4836d87bade2c68089584e675a6162f0a8 | 291 | ex | Elixir | mr_v0.ex | sharma7n/MrElixir | 703899e9e90e47ca14695a772abc870a35b9539d | [
"MIT"
] | null | null | null | mr_v0.ex | sharma7n/MrElixir | 703899e9e90e47ca14695a772abc870a35b9539d | [
"MIT"
] | null | null | null | mr_v0.ex | sharma7n/MrElixir | 703899e9e90e47ca14695a772abc870a35b9539d | [
"MIT"
] | null | null | null | # v0: No distributed processing.
defmodule MapReduce do
defp map(data), do: Enum.map(data, fn x -> x*2 end)
defp reduce(data), do: Enum.reduce(data, 0, fn x, acc -> x + acc end)
def run(data), do: data |> mapper |> reducer
end
result = MapReduce.run [1, 2, 3]
IO.inspect result | 29.1 | 73 | 0.649485 |
736b2fe6588e642040b9a28c4371289f2f57aee8 | 642 | exs | Elixir | apps/rig_api/test/rig_api/controllers/health_controller_test.exs | arana3/reactive-interaction-gateway | 793648bcc5b8b05fc53df1f5f97818fb40ca84be | [
"Apache-2.0"
] | 518 | 2017-11-09T13:10:49.000Z | 2022-03-28T14:29:50.000Z | apps/rig_api/test/rig_api/controllers/health_controller_test.exs | arana3/reactive-interaction-gateway | 793648bcc5b8b05fc53df1f5f97818fb40ca84be | [
"Apache-2.0"
] | 270 | 2017-11-10T00:11:34.000Z | 2022-02-27T13:08:16.000Z | apps/rig_api/test/rig_api/controllers/health_controller_test.exs | arana3/reactive-interaction-gateway | 793648bcc5b8b05fc53df1f5f97818fb40ca84be | [
"Apache-2.0"
] | 67 | 2017-12-19T20:16:37.000Z | 2022-03-31T10:43:04.000Z | defmodule RigApi.HealthControllerTest do
@moduledoc false
require Logger
use ExUnit.Case, async: true
use RigApi.ConnCase
describe "GET /health" do
test "should return OK as text response" do
conn = build_conn() |> get("/health")
assert conn.resp_body == "OK"
assert "text/plain" == resp... | 25.68 | 75 | 0.660436 |
736b339254d2046c3b093b58efa777121aba4dd7 | 392 | ex | Elixir | lib/source_academy_admin/views/error_view.ex | trewdys/source-academy2-debug | 6146e1fac81472184877f47aa32dee7fdceb4fb6 | [
"Unlicense"
] | null | null | null | lib/source_academy_admin/views/error_view.ex | trewdys/source-academy2-debug | 6146e1fac81472184877f47aa32dee7fdceb4fb6 | [
"Unlicense"
] | null | null | null | lib/source_academy_admin/views/error_view.ex | trewdys/source-academy2-debug | 6146e1fac81472184877f47aa32dee7fdceb4fb6 | [
"Unlicense"
] | null | null | null | defmodule SourceAcademyAdmin.ErrorView do
use SourceAcademyAdmin, :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_no... | 21.777778 | 47 | 0.714286 |
736b3787bec8a601b7ebf230d8b23b8be0532bb4 | 855 | ex | Elixir | lib/ark_elixir_example.ex | Highjhacker/Ark-Elixir-Example | 7daec76e839cb291ebc191b840845f17342be617 | [
"MIT"
] | 1 | 2018-04-22T05:15:59.000Z | 2018-04-22T05:15:59.000Z | lib/ark_elixir_example.ex | Highjhacker/Ark-Elixir-Example | 7daec76e839cb291ebc191b840845f17342be617 | [
"MIT"
] | null | null | null | lib/ark_elixir_example.ex | Highjhacker/Ark-Elixir-Example | 7daec76e839cb291ebc191b840845f17342be617 | [
"MIT"
] | null | null | null | defmodule ArkElixirExample do
def main(argv) do
argv
|> parse_args
end
def parse_args(args) do
parsed_args = OptionParser.parse(args, switches: [help: :boolean, address: :string, search: :string],
aliases: [h: :help, a: :address, s: :sear... | 35.625 | 183 | 0.575439 |
736b48637fb686f8af12f8b2334b485b8ba05b3e | 1,026 | ex | Elixir | community/samples/serving/helloworld-elixir/lib/hello/application.ex | brunoborges/docs | a4d3e3af4e3b6510f9812082e9f92e5853067eea | [
"Apache-2.0"
] | 3,383 | 2018-07-23T21:00:17.000Z | 2022-03-30T17:13:52.000Z | community/samples/serving/helloworld-elixir/lib/hello/application.ex | brunoborges/docs | a4d3e3af4e3b6510f9812082e9f92e5853067eea | [
"Apache-2.0"
] | 4,617 | 2018-07-23T21:55:06.000Z | 2022-03-31T21:52:36.000Z | community/samples/serving/helloworld-elixir/lib/hello/application.ex | brunoborges/docs | a4d3e3af4e3b6510f9812082e9f92e5853067eea | [
"Apache-2.0"
] | 1,240 | 2018-07-23T20:36:04.000Z | 2022-03-30T20:03:07.000Z | defmodule Hello.Application do
use Application
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
def start(_type, _args) do
IO.puts :stderr, "Application starting up"
import Supervisor.Spec
# Define workers and child supervisors to be supervised
childr... | 32.0625 | 83 | 0.714425 |
736b7bb986d5f7cbfe51f90ac20ff6da370d949f | 2,799 | exs | Elixir | apps/blunt_absinthe_relay/test/blunt/absinthe/relay/connection_test.exs | blunt-elixir/blunt | a88b88984022db7ba2110204248fdb541121e3a0 | [
"MIT"
] | 1 | 2022-03-07T11:54:47.000Z | 2022-03-07T11:54:47.000Z | apps/blunt_absinthe_relay/test/blunt/absinthe/relay/connection_test.exs | elixir-cqrs/cqrs_tools | afbf82da522a10d2413547a46f316ed3aadebba5 | [
"MIT"
] | null | null | null | apps/blunt_absinthe_relay/test/blunt/absinthe/relay/connection_test.exs | elixir-cqrs/cqrs_tools | afbf82da522a10d2413547a46f316ed3aadebba5 | [
"MIT"
] | null | null | null | defmodule Blunt.Absinthe.Relay.ConnectionTest do
use ExUnit.Case, async: false
alias Blunt.DispatchContext
alias Blunt.Absinthe.Relay.Test.{CreatePeople, Schema}
setup_all do
peeps = [
%{id: UUID.uuid4(), name: "chris"},
%{id: UUID.uuid4(), name: "chris", gender: :male},
%{id: UUID.uuid4... | 33.321429 | 98 | 0.58771 |
736b7e802bd47f7f56f65ce9dbdf5cade4808b50 | 1,393 | exs | Elixir | mix.exs | salemove/elixir-http_client | c3419d63363eb38e744c3c136353ff8260cdd123 | [
"MIT"
] | null | null | null | mix.exs | salemove/elixir-http_client | c3419d63363eb38e744c3c136353ff8260cdd123 | [
"MIT"
] | 9 | 2018-01-15T15:32:06.000Z | 2021-10-07T09:06:20.000Z | mix.exs | salemove/elixir-http_client | c3419d63363eb38e744c3c136353ff8260cdd123 | [
"MIT"
] | null | null | null | defmodule Salemove.HttpClient.Mixfile do
use Mix.Project
def project do
[
app: :salemove_http_client,
version: "2.1.0-rc.2",
elixir: "~> 1.9",
start_permanent: Mix.env() == :prod,
build_embedded: Mix.env() == :prod,
deps: deps(),
package: package(),
description: ... | 23.216667 | 76 | 0.539842 |
736b887a20aa9aa72b8f1d28b8a8a13dfdf1b201 | 730 | ex | Elixir | test/support/mock_verne.ex | rbino/astarte_vmq_plugin | e5cfcb717d8ac2b2bcfc3430a48b4c4c7b767140 | [
"Apache-2.0"
] | null | null | null | test/support/mock_verne.ex | rbino/astarte_vmq_plugin | e5cfcb717d8ac2b2bcfc3430a48b4c4c7b767140 | [
"Apache-2.0"
] | null | null | null | test/support/mock_verne.ex | rbino/astarte_vmq_plugin | e5cfcb717d8ac2b2bcfc3430a48b4c4c7b767140 | [
"Apache-2.0"
] | null | null | null | defmodule Astarte.VMQ.Plugin.MockVerne do
def start_link do
Agent.start_link(fn -> :queue.new() end, name: __MODULE__)
end
# Return mock functions for tests instead of the
# ones returned from :vmq_reg.direct_plugin_exports
def get_functions do
empty_fun = fn -> :ok end
publish_fun = fn topic, p... | 24.333333 | 70 | 0.639726 |
736b90e1cd90c8935bb42928e6652b7b55936c22 | 1,352 | ex | Elixir | lib/requestbox_web/controllers/session_controller.ex | kevinastone/phoenixbin | 8b7326b5de1fe9961c1a2d7971a3d4abe7178829 | [
"MIT"
] | 18 | 2015-11-18T09:52:34.000Z | 2021-04-27T19:38:08.000Z | lib/requestbox_web/controllers/session_controller.ex | kevinastone/phoenixbin | 8b7326b5de1fe9961c1a2d7971a3d4abe7178829 | [
"MIT"
] | 3 | 2017-01-11T18:55:39.000Z | 2021-06-15T05:46:34.000Z | lib/requestbox_web/controllers/session_controller.ex | kevinastone/phoenixbin | 8b7326b5de1fe9961c1a2d7971a3d4abe7178829 | [
"MIT"
] | 7 | 2016-08-17T10:24:20.000Z | 2020-07-10T13:00:36.000Z | defmodule RequestboxWeb.SessionController do
use Requestbox.Web, :controller
alias Requestbox.Request
alias Requestbox.Session
plug(:scrub_params, "session" when action in [:create, :update])
def index(conn, _params) do
changeset = Session.changeset(%Session{})
render(conn, :index, changeset: chang... | 27.04 | 91 | 0.659763 |
736b976bb6241b6206b35e0b653f0bb3b27c868f | 983 | exs | Elixir | apps/extract_http/mix.exs | jdenen/hindsight | ef69b4c1a74c94729dd838a9a0849a48c9b6e04c | [
"Apache-2.0"
] | 12 | 2020-01-27T19:43:02.000Z | 2021-07-28T19:46:29.000Z | apps/extract_http/mix.exs | jdenen/hindsight | ef69b4c1a74c94729dd838a9a0849a48c9b6e04c | [
"Apache-2.0"
] | 81 | 2020-01-28T18:07:23.000Z | 2021-11-22T02:12:13.000Z | apps/extract_http/mix.exs | jdenen/hindsight | ef69b4c1a74c94729dd838a9a0849a48c9b6e04c | [
"Apache-2.0"
] | 10 | 2020-02-13T21:24:09.000Z | 2020-05-21T18:39:35.000Z | defmodule ExtractHttp.MixProject do
use Mix.Project
def project do
[
app: :extract_http,
version: "0.1.0",
build_path: "../../_build",
config_path: "../../config/config.exs",
deps_path: "../../deps",
lockfile: "../../mix.lock",
elixir: "~> 1.9",
start_permanent: ... | 23.97561 | 65 | 0.485249 |
736b9a1f1568d8765d3af9079d1eb1b9e97e356a | 1,141 | exs | Elixir | mix.exs | baldmountain/avia | c60a748e8124bc602d485cd017f9f4f0953db54c | [
"MIT"
] | null | null | null | mix.exs | baldmountain/avia | c60a748e8124bc602d485cd017f9f4f0953db54c | [
"MIT"
] | null | null | null | mix.exs | baldmountain/avia | c60a748e8124bc602d485cd017f9f4f0953db54c | [
"MIT"
] | null | null | null | defmodule Snitch.Mixfile do
use Mix.Project
def project do
[
apps_path: "apps",
elixir: "~> 1.12.2",
start_permanent: Mix.env() == :prod,
deps: deps(),
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [coveralls: :test, "coveralls.json": :test, "coveralls.html": :test]... | 23.770833 | 94 | 0.575811 |
736bd0675c6cfa6a88606013972870dac585d345 | 24,627 | ex | Elixir | lib/mix/lib/mix.ex | ericklima-ca/elixir | 9512bcce90a85fe3cc6d503e92a2b522d6b9825e | [
"Apache-2.0"
] | 2 | 2020-08-11T16:19:53.000Z | 2020-08-11T18:07:11.000Z | lib/mix/lib/mix.ex | ericklima-ca/elixir | 9512bcce90a85fe3cc6d503e92a2b522d6b9825e | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix.ex | ericklima-ca/elixir | 9512bcce90a85fe3cc6d503e92a2b522d6b9825e | [
"Apache-2.0"
] | null | null | null | defmodule Mix do
@moduledoc ~S"""
Mix is a build tool that provides tasks for creating, compiling,
and testing Elixir projects, managing its dependencies, and more.
## Mix.Project
The foundation of Mix is a project. A project can be defined by using
`Mix.Project` in a module, usually placed in a file name... | 31.173418 | 148 | 0.669509 |
736be24a6dc55fa081eb622997f19868728a9a24 | 2,353 | exs | Elixir | apps/local_ledger_db/priv/repo/migrations/20180514095907_rename_balance_to_wallet.exs | jimpeebles/ewallet | ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405 | [
"Apache-2.0"
] | null | null | null | apps/local_ledger_db/priv/repo/migrations/20180514095907_rename_balance_to_wallet.exs | jimpeebles/ewallet | ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405 | [
"Apache-2.0"
] | null | null | null | apps/local_ledger_db/priv/repo/migrations/20180514095907_rename_balance_to_wallet.exs | jimpeebles/ewallet | ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405 | [
"Apache-2.0"
] | null | null | null | # Copyright 2018 OmiseGO Pte Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writi... | 31.797297 | 91 | 0.646409 |
736bed359b14982a8253b6c87db23abc249160c7 | 26,957 | ex | Elixir | lib/rpi/compile.ex | ericmj/scenic_driver_nerves_rpi | 91dc3bfe6fc5344cf31887e54ca7f3e5d9fc8deb | [
"Apache-2.0"
] | null | null | null | lib/rpi/compile.ex | ericmj/scenic_driver_nerves_rpi | 91dc3bfe6fc5344cf31887e54ca7f3e5d9fc8deb | [
"Apache-2.0"
] | null | null | null | lib/rpi/compile.ex | ericmj/scenic_driver_nerves_rpi | 91dc3bfe6fc5344cf31887e54ca7f3e5d9fc8deb | [
"Apache-2.0"
] | null | null | null | #
# Created by Boyd Multerer on 06/01/18.
# Copyright © 2018 Kry10 Industries. All rights reserved.
#
# compile a graph out to a series of commands that can be drawn
# by the C render code
#
#
defmodule Scenic.Driver.Nerves.Rpi.Compile do
@moduledoc false
alias Scenic.Primitive
require Logger
# import IEx
... | 25.94514 | 97 | 0.551063 |
736c29c6f95c90d37c87146996060ac563a4455d | 1,386 | ex | Elixir | lib/timber/eventable.ex | axelson/timber-elixir | def9de8ebbb64a6f6d5dd85f8958d8b24f8d6c31 | [
"0BSD"
] | 244 | 2016-10-10T15:30:32.000Z | 2021-08-11T08:45:53.000Z | lib/timber/eventable.ex | axelson/timber-elixir | def9de8ebbb64a6f6d5dd85f8958d8b24f8d6c31 | [
"0BSD"
] | 242 | 2016-10-10T19:34:44.000Z | 2020-11-20T18:56:43.000Z | lib/timber/eventable.ex | axelson/timber-elixir | def9de8ebbb64a6f6d5dd85f8958d8b24f8d6c31 | [
"0BSD"
] | 35 | 2016-12-04T07:33:04.000Z | 2020-06-17T20:22:11.000Z | defprotocol Timber.Eventable do
@moduledoc ~S"""
Protocol that converts a data structure into a `Timber.Event.t`.
This is called on any data structure used in the `:event` metadata key passed to `Logger` calls.
## Example
For example, you can use this protocol to pass format event structs:
defmodule... | 21.65625 | 98 | 0.62482 |
736c5930f16a21b616ec73383ad0d65ba52ae067 | 532 | ex | Elixir | lib/honeydew/dispatcher/mru.ex | evadne/honeydew | c3c2f6095a28393cae13c0e686bdb6257d532ca1 | [
"MIT"
] | null | null | null | lib/honeydew/dispatcher/mru.ex | evadne/honeydew | c3c2f6095a28393cae13c0e686bdb6257d532ca1 | [
"MIT"
] | null | null | null | lib/honeydew/dispatcher/mru.ex | evadne/honeydew | c3c2f6095a28393cae13c0e686bdb6257d532ca1 | [
"MIT"
] | null | null | null | defmodule Honeydew.Dispatcher.MRU do
# TODO: docs
# TODO: abstract common LRU/MRU functionality?
def init do
{:ok, :queue.new}
end
def available?(free) do
!:queue.is_empty(free)
end
def check_in(worker, free) do
:queue.in_r(worker, free)
end
def check_out(_job, free) do
case :queue... | 17.733333 | 48 | 0.599624 |
736c8723b748029bda4ac3654ef002fc2d2c45de | 403 | ex | Elixir | lib/source_academy_admin/plugs/assign_current_student.ex | trewdys/source-academy2-debug | 6146e1fac81472184877f47aa32dee7fdceb4fb6 | [
"Unlicense"
] | null | null | null | lib/source_academy_admin/plugs/assign_current_student.ex | trewdys/source-academy2-debug | 6146e1fac81472184877f47aa32dee7fdceb4fb6 | [
"Unlicense"
] | null | null | null | lib/source_academy_admin/plugs/assign_current_student.ex | trewdys/source-academy2-debug | 6146e1fac81472184877f47aa32dee7fdceb4fb6 | [
"Unlicense"
] | null | null | null | defmodule SourceAcademy.Plug.AssignCurrentStudent do
@moduledoc false
import Plug.Conn
alias SourceAcademy.Course
def init(opts), do: opts
def call(conn, _opts) do
current_user = conn.assigns[:current_user]
if current_user != nil do
current_student = Course.get_student(current_user)
ass... | 21.210526 | 56 | 0.719603 |
736caab523c18375af4536af856244029cc488fd | 3,075 | ex | Elixir | lib/github/http.ex | Gimi/coders | 28e20558ac26709c62b8463dae963e4e41a759b2 | [
"MIT"
] | null | null | null | lib/github/http.ex | Gimi/coders | 28e20558ac26709c62b8463dae963e4e41a759b2 | [
"MIT"
] | null | null | null | lib/github/http.ex | Gimi/coders | 28e20558ac26709c62b8463dae963e4e41a759b2 | [
"MIT"
] | null | null | null | defmodule Github.HTTP do
@moduledoc """
This module implements functions to handle github HTTP API calls,
esp. makes it easier to handle github API responses.
"""
require Logger
use HTTPoison.Base
@doc """
Just like HTTPoison.Base.get/1, but ignores error cases (error or non 200 responses).
For err... | 30.445545 | 87 | 0.554472 |
736d0e9f04f1f974c8b1267f95858e64ce159a01 | 374 | ex | Elixir | examples/example-phx-1_2/web/views/error_view.ex | devshane/thesis-phoenix | afe22a25542f91e15cfffb1e93ff8d833a64c25b | [
"MIT"
] | 681 | 2016-06-21T20:49:21.000Z | 2022-02-19T04:08:38.000Z | examples/example-phx-1_2/web/views/error_view.ex | devshane/thesis-phoenix | afe22a25542f91e15cfffb1e93ff8d833a64c25b | [
"MIT"
] | 125 | 2016-06-21T21:14:49.000Z | 2020-12-12T20:15:48.000Z | examples/example-phx-1_2/web/views/error_view.ex | devshane/thesis-phoenix | afe22a25542f91e15cfffb1e93ff8d833a64c25b | [
"MIT"
] | 76 | 2016-09-06T03:40:55.000Z | 2022-01-20T21:29:22.000Z | defmodule Example.ErrorView do
use Example.Web, :view
def render("404.html", _assigns) do
"Page not found"
end
def render("500.html", _assigns) do
"Internal server error"
end
# In case no render clause matches or no
# template is found, let's render it as 500
def template_not_found(_template,... | 20.777778 | 47 | 0.697861 |
736d2c219ba38d10b71dc0977ed3ea4d4c6b1ce5 | 7,510 | exs | Elixir | test/ex_rabbit_m_q_test.exs | sger/exrabbitmq | 3eae1c557a69b8ffb92ee8d4c828af613ba52f58 | [
"MIT"
] | null | null | null | test/ex_rabbit_m_q_test.exs | sger/exrabbitmq | 3eae1c557a69b8ffb92ee8d4c828af613ba52f58 | [
"MIT"
] | null | null | null | test/ex_rabbit_m_q_test.exs | sger/exrabbitmq | 3eae1c557a69b8ffb92ee8d4c828af613ba52f58 | [
"MIT"
] | null | null | null | defmodule ExRabbitMQTest do
use ExUnit.Case
alias ExRabbitMQ.Connection
alias ExRabbitMQ.Connection.Config, as: ConnectionConfig
alias ExRabbitMQ.Consumer.QueueConfig
test "publishing a message and then consuming it" do
# first we start the connection supervisor
# it holds the template for the GenSe... | 29.801587 | 96 | 0.702264 |
736d4532136c398a36d664c1256a633c7adc64f2 | 702 | ex | Elixir | web/gettext.ex | mindsigns/soroban | c56962e1164a51cb5e383bbbfda880f098f181f1 | [
"MIT"
] | 1 | 2020-02-09T03:03:04.000Z | 2020-02-09T03:03:04.000Z | web/gettext.ex | mindsigns/soroban | c56962e1164a51cb5e383bbbfda880f098f181f1 | [
"MIT"
] | null | null | null | web/gettext.ex | mindsigns/soroban | c56962e1164a51cb5e383bbbfda880f098f181f1 | [
"MIT"
] | null | null | null | defmodule Soroban.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 Soroban.Gettext
# Simple translation
gettext "Here is the str... | 28.08 | 72 | 0.678063 |
736d83d24a404776c318afbfb90384f0bac6d414 | 443 | ex | Elixir | clients/elixir/generated/lib/swaggy_jenkins/model/pipeline_runs.ex | PankTrue/swaggy-jenkins | aca35a7cca6e1fcc08bd399e05148942ac2f514b | [
"MIT"
] | 23 | 2017-08-01T12:25:26.000Z | 2022-01-25T03:44:11.000Z | clients/elixir/generated/lib/swaggy_jenkins/model/pipeline_runs.ex | PankTrue/swaggy-jenkins | aca35a7cca6e1fcc08bd399e05148942ac2f514b | [
"MIT"
] | 35 | 2017-06-14T03:28:15.000Z | 2022-02-14T10:25:54.000Z | clients/elixir/generated/lib/swaggy_jenkins/model/pipeline_runs.ex | PankTrue/swaggy-jenkins | aca35a7cca6e1fcc08bd399e05148942ac2f514b | [
"MIT"
] | 11 | 2017-08-31T19:00:20.000Z | 2021-12-19T12:04:12.000Z | # NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
# https://openapi-generator.tech
# Do not edit the class manually.
defmodule SwaggyJenkins.Model.PipelineRuns do
@moduledoc """
"""
@derive [Poison.Encoder]
defstruct [
]
@type t :: %__MODULE__{
}
e... | 17.038462 | 91 | 0.693002 |
736d94bbc52a392baa4fe90a6adf199a5c7ae488 | 176 | exs | Elixir | server/priv/repo/migrations/20160331235426_add_end_date_to_sprints.exs | MikaAK/trello-burndown | b78d97fa03fcdd60c1c9652b65d272936f648c6f | [
"MIT"
] | null | null | null | server/priv/repo/migrations/20160331235426_add_end_date_to_sprints.exs | MikaAK/trello-burndown | b78d97fa03fcdd60c1c9652b65d272936f648c6f | [
"MIT"
] | 3 | 2016-04-18T18:09:21.000Z | 2016-04-25T07:29:59.000Z | server/priv/repo/migrations/20160331235426_add_end_date_to_sprints.exs | MikaAK/trello-burndown | b78d97fa03fcdd60c1c9652b65d272936f648c6f | [
"MIT"
] | null | null | null | defmodule TrelloBurndown.Repo.Migrations.AddEndDateToSprints do
use Ecto.Migration
def change do
alter table(:sprints) do
add :end_date, :date
end
end
end
| 17.6 | 63 | 0.727273 |
736dc85c0c658f176994daf0ada0eb79bee3b7d1 | 12,404 | ex | Elixir | clients/tasks/lib/google_api/tasks/v1/api/tasklists.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/tasks/lib/google_api/tasks/v1/api/tasklists.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/tasks/lib/google_api/tasks/v1/api/tasklists.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 39.629393 | 170 | 0.669703 |
736df02d5ad2957b4d0332b6c20b97019408d536 | 6,665 | ex | Elixir | apps/abi/lib/abi.ex | atoulme/ethereum | cebb0756c7292ac266236636d2ab5705cb40a52e | [
"MIT"
] | 1 | 2018-09-21T02:58:03.000Z | 2018-09-21T02:58:03.000Z | apps/abi/lib/abi.ex | atoulme/ethereum | cebb0756c7292ac266236636d2ab5705cb40a52e | [
"MIT"
] | null | null | null | apps/abi/lib/abi.ex | atoulme/ethereum | cebb0756c7292ac266236636d2ab5705cb40a52e | [
"MIT"
] | null | null | null | defmodule ABI do
@moduledoc """
Documentation for ABI, the function interface language for Solidity.
Generally, the ABI describes how to take binary Ethereum and transform
it to or from types that Solidity understands.
"""
@doc """
Encodes the given data into the function signature or tuple signature.
... | 47.607143 | 453 | 0.701725 |
736e058a8c5035ff7dc9cc75ffac75b28a443dd0 | 119 | ex | Elixir | lib/pow_assent.ex | mitcheaton1/pow_assent | f3e9e6cc7dd16a3f2d9add885bd160d227abb713 | [
"MIT"
] | 193 | 2019-10-30T00:58:21.000Z | 2022-03-09T20:26:37.000Z | lib/pow_assent.ex | mitcheaton1/pow_assent | f3e9e6cc7dd16a3f2d9add885bd160d227abb713 | [
"MIT"
] | 82 | 2019-10-29T20:19:38.000Z | 2022-03-22T04:09:27.000Z | lib/pow_assent.ex | mitcheaton1/pow_assent | f3e9e6cc7dd16a3f2d9add885bd160d227abb713 | [
"MIT"
] | 28 | 2019-10-31T12:38:10.000Z | 2021-11-01T18:05:23.000Z | defmodule PowAssent do
@moduledoc false
use Pow.Extension.Base
@impl true
def phoenix_messages?, do: true
end
| 14.875 | 33 | 0.747899 |
736e857ea3d29f3d2fa5894e037ced82ed1d7fb6 | 1,111 | exs | Elixir | apps/amf0/config/config.exs | Kabie/elixir-media-libs | 9750c6dcdffdf8014183a6a4f303c5d0d658f062 | [
"MIT"
] | 75 | 2016-12-23T14:37:18.000Z | 2021-04-26T14:07:20.000Z | apps/amf0/config/config.exs | Kabie/elixir-media-libs | 9750c6dcdffdf8014183a6a4f303c5d0d658f062 | [
"MIT"
] | 19 | 2016-12-22T03:20:43.000Z | 2020-06-11T12:10:37.000Z | apps/amf0/config/config.exs | Kabie/elixir-media-libs | 9750c6dcdffdf8014183a6a4f303c5d0d658f062 | [
"MIT"
] | 3 | 2018-03-29T06:40:40.000Z | 2019-02-13T09:37:19.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... | 35.83871 | 73 | 0.749775 |
736e8c3ea9084a70b76fa2cf60cdced60bafea5e | 458 | exs | Elixir | 01/npkstuff/test/npkstuff_web/views/error_view_test.exs | victordomingos/Learning_Elixir | 414f4f647c9eba494b65575e725a58021fde2313 | [
"MIT"
] | 1 | 2021-06-23T21:48:32.000Z | 2021-06-23T21:48:32.000Z | 01/npkstuff/test/npkstuff_web/views/error_view_test.exs | victordomingos/Learning_Elixir | 414f4f647c9eba494b65575e725a58021fde2313 | [
"MIT"
] | null | null | null | 01/npkstuff/test/npkstuff_web/views/error_view_test.exs | victordomingos/Learning_Elixir | 414f4f647c9eba494b65575e725a58021fde2313 | [
"MIT"
] | null | null | null | defmodule NpkstuffWeb.ErrorViewTest do
use NpkstuffWeb.ConnCase, async: true
# Bring render/3 and render_to_string/3 for testing custom views
import Phoenix.View
test "renders 404.json" do
assert render(NpkstuffWeb.ErrorView, "404.json", []) == %{errors: %{detail: "Not Found"}}
end
test "renders 500.... | 28.625 | 93 | 0.68559 |
736eaf771c8d1b87d61378088bd4f468338ea0ba | 2,041 | ex | Elixir | clients/analytics_admin/lib/google_api/analytics_admin/v1alpha/model/google_analytics_admin_v1alpha_batch_update_user_links_request.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/analytics_admin/lib/google_api/analytics_admin/v1alpha/model/google_analytics_admin_v1alpha_batch_update_user_links_request.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/analytics_admin/lib/google_api/analytics_admin/v1alpha/model/google_analytics_admin_v1alpha_batch_update_user_links_request.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... | 34.016667 | 250 | 0.759432 |
736ec898297f7fce25e3dd55dd3f322bb41cf0fd | 396 | ex | Elixir | lib/attentive/http.ex | malomohq/attentive-elixir | 0bb550b482a1da6e344779aa0d077eacc790f021 | [
"MIT"
] | null | null | null | lib/attentive/http.ex | malomohq/attentive-elixir | 0bb550b482a1da6e344779aa0d077eacc790f021 | [
"MIT"
] | 3 | 2021-08-06T16:50:58.000Z | 2022-02-21T17:18:12.000Z | lib/attentive/http.ex | malomohq/attentive-elixir | 0bb550b482a1da6e344779aa0d077eacc790f021 | [
"MIT"
] | null | null | null | defmodule Attentive.Http do
alias Attentive.{ Request }
@type response_t ::
%{
body: String.t(),
headers: Attentive.http_headers_t(),
status_code: Attentive.http_status_code_t()
}
@callback send(
request :: Request.t(),
opts :: ... | 24.75 | 67 | 0.517677 |
736ecb067e9bf38956dc7f4a59c4a8f78fd3987e | 786 | ex | Elixir | lib/optimus/arg.ex | corka149/optimus | 12c0dc597691d04481513f4e2345812e38e63f73 | [
"MIT"
] | 82 | 2016-12-14T22:21:45.000Z | 2019-11-19T13:47:25.000Z | lib/optimus/arg.ex | corka149/optimus | 12c0dc597691d04481513f4e2345812e38e63f73 | [
"MIT"
] | 15 | 2017-01-08T06:54:02.000Z | 2019-11-12T10:30:49.000Z | lib/optimus/arg.ex | corka149/optimus | 12c0dc597691d04481513f4e2345812e38e63f73 | [
"MIT"
] | 7 | 2017-01-08T06:42:41.000Z | 2019-11-12T09:32:50.000Z | defmodule Optimus.Arg do
defstruct [
:name,
:value_name,
:help,
:required,
:parser
]
def new(spec) do
Optimus.Arg.Builder.build(spec)
end
def parse(arg, parsed, [item | command_line]) do
case arg.parser.(item) do
{:ok, value} ->
{:ok, Map.put(parsed, {:arg, arg.name... | 19.65 | 97 | 0.611959 |
736ee170ff467d5cce8bf1446b6264169fed67cd | 365 | ex | Elixir | lib/four_lucha/person.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/person.ex | Thomas-Jean/four_lucha | 591627059c02edc3315b5cac2c35eacb821108ff | [
"Apache-2.0"
] | null | null | null | lib/four_lucha/person.ex | Thomas-Jean/four_lucha | 591627059c02edc3315b5cac2c35eacb821108ff | [
"Apache-2.0"
] | null | null | null | defmodule FourLucha.Person do
@moduledoc false
@item "person"
@items "people"
use FourLucha.BaseHelpers
use FourLucha.BaseSingular
use FourLucha.BasePlural
alias FourLucha.Resource.Person, as: Person
require FourLucha.Client
defp get_resource do
Person
end
defp get_known_query_params do
... | 18.25 | 45 | 0.739726 |
736f3566b5c679f175e06c2c4ce86ce981f7280d | 1,736 | ex | Elixir | clients/content/lib/google_api/content/v2/model/orderinvoices_create_charge_invoice_response.ex | kaaboaye/elixir-google-api | 1896784c4342151fd25becd089a5beb323eff567 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/model/orderinvoices_create_charge_invoice_response.ex | kaaboaye/elixir-google-api | 1896784c4342151fd25becd089a5beb323eff567 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/model/orderinvoices_create_charge_invoice_response.ex | kaaboaye/elixir-google-api | 1896784c4342151fd25becd089a5beb323eff567 | [
"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.72 | 216 | 0.748848 |
736f3acc8141066c9a3c3955a233d94493395e2d | 606 | ex | Elixir | apps/bankingAPI_web/lib/bankingAPI_web/input_validation.ex | danielkv7/bankingAPI | d84b9a12c72d6bbd7d3077346501fde6db25ef19 | [
"Apache-2.0"
] | null | null | null | apps/bankingAPI_web/lib/bankingAPI_web/input_validation.ex | danielkv7/bankingAPI | d84b9a12c72d6bbd7d3077346501fde6db25ef19 | [
"Apache-2.0"
] | null | null | null | apps/bankingAPI_web/lib/bankingAPI_web/input_validation.ex | danielkv7/bankingAPI | d84b9a12c72d6bbd7d3077346501fde6db25ef19 | [
"Apache-2.0"
] | null | null | null | defmodule BankingAPIWeb.InputValidation do
@moduledoc """
Validates a given map of params with the given schema.
"""
@doc """
Apply the changeset function of the given module passing params.
When successful, it returns {:ok, schema} and an instance of the the given
schema.
When validation fails, it ret... | 27.545455 | 76 | 0.674917 |
736f4d3c5320eac233d77c8b3f200f90e745d979 | 936 | ex | Elixir | lib/pow_sessions_toolkit/session.ex | weareyipyip/Pow-Session-Toolkit | fb0c061a70824d2664816b71f22e11bd7fa71dd5 | [
"Apache-2.0"
] | 1 | 2020-02-21T15:28:11.000Z | 2020-02-21T15:28:11.000Z | lib/pow_sessions_toolkit/session.ex | weareyipyip/Pow-Session-Toolkit | fb0c061a70824d2664816b71f22e11bd7fa71dd5 | [
"Apache-2.0"
] | null | null | null | lib/pow_sessions_toolkit/session.ex | weareyipyip/Pow-Session-Toolkit | fb0c061a70824d2664816b71f22e11bd7fa71dd5 | [
"Apache-2.0"
] | null | null | null | defmodule PowSessionToolkit.Session do
@moduledoc """
A session as stored in Mnesia by `PowSessionToolkit.MnesiaSessionStore`.
"""
defstruct id: nil,
user_id: nil,
refresh_token_id: nil,
created_at: nil,
refreshed_at: nil,
last_known_ip: nil,
... | 26.742857 | 74 | 0.596154 |
736f6f9cbc0c5fbd47a0caee3e8978004888e0b1 | 2,681 | ex | Elixir | lib/fastglobal.ex | LaudateCorpus1/fastglobal | 275569454462312fc3f5214275fe7e739b5b2d25 | [
"MIT"
] | 494 | 2017-09-21T20:26:48.000Z | 2020-03-20T21:18:35.000Z | lib/fastglobal.ex | Seanpm2001-Discord/fastglobal | 275569454462312fc3f5214275fe7e739b5b2d25 | [
"MIT"
] | 9 | 2021-02-24T13:33:40.000Z | 2022-01-31T04:05:55.000Z | lib/fastglobal.ex | Seanpm2001-Discord/fastglobal | 275569454462312fc3f5214275fe7e739b5b2d25 | [
"MIT"
] | 29 | 2020-07-28T08:31:28.000Z | 2022-03-25T12:46:39.000Z | defmodule FastGlobal do
@moduledoc """
Abuse module constant pools as a "read-only shared heap" (since erts 5.6)
http://www.erlang.org/pipermail/erlang-questions/2009-March/042503.html
"""
@type t :: {__MODULE__, atom}
@doc """
Create a module for the FastGlobal instance.
"""
@spec new(atom) :: {__M... | 25.778846 | 75 | 0.616188 |
736f807bff981acce7dc38e396b168f23b95652f | 3,787 | exs | Elixir | lib/elixir/test/elixir/process_test.exs | Joe-noh/elixir | 34bf464bc1a035b6015366463e04f1bf9d2065f3 | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/process_test.exs | Joe-noh/elixir | 34bf464bc1a035b6015366463e04f1bf9d2065f3 | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/process_test.exs | Joe-noh/elixir | 34bf464bc1a035b6015366463e04f1bf9d2065f3 | [
"Apache-2.0"
] | null | null | null | Code.require_file "test_helper.exs", __DIR__
defmodule ProcessTest do
use ExUnit.Case, async: true
doctest Process
test "dictionary" do
assert Process.put(:foo, :bar) == nil
assert Process.put(:foo, :baz) == :bar
assert Process.get_keys() == [:foo]
assert Process.get_keys(:bar) == []
asser... | 28.261194 | 84 | 0.64827 |
736f96b40bf744e40e882b92e523de6a38b3a2e4 | 1,913 | exs | Elixir | config/prod.exs | hamiltop/ashes | 74882221af8d4fd96cd5d88e32fa6a6b3df44c77 | [
"MIT"
] | 1 | 2019-09-04T10:06:04.000Z | 2019-09-04T10:06:04.000Z | config/prod.exs | hamiltop/ashes | 74882221af8d4fd96cd5d88e32fa6a6b3df44c77 | [
"MIT"
] | null | null | null | config/prod.exs | hamiltop/ashes | 74882221af8d4fd96cd5d88e32fa6a6b3df44c77 | [
"MIT"
] | 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... | 31.883333 | 67 | 0.709357 |
736faab63f79c5d445ade20e40b2412494c4aa4e | 937 | ex | Elixir | lib/together/application.ex | BryanJBryce/Get-Together | 7c6a5456e849a48d3575bf2caa957974228f1126 | [
"MIT"
] | 1 | 2019-10-23T16:02:08.000Z | 2019-10-23T16:02:08.000Z | lib/together/application.ex | BryanJBryce/Get-Together | 7c6a5456e849a48d3575bf2caa957974228f1126 | [
"MIT"
] | 1 | 2021-03-09T20:59:56.000Z | 2021-03-09T20:59:56.000Z | lib/together/application.ex | BryanJBryce/Get-Together | 7c6a5456e849a48d3575bf2caa957974228f1126 | [
"MIT"
] | 1 | 2019-10-22T15:07:36.000Z | 2019-10-22T15:07:36.000Z | defmodule Together.Application do
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
use Application
def start(_type, _args) do
# List all child processes to be supervised
children = [
# Start the Ecto repository
Together.Repo,
... | 29.28125 | 67 | 0.716115 |
736fc92b6224f5839910a488d98cbbcc8dff5400 | 2,241 | exs | Elixir | test/weberTest/response_test.exs | elixir-web/weber | 1c8caa43681cc432813dff33b2c6d08ca1d61f29 | [
"MIT"
] | 124 | 2015-01-03T16:48:21.000Z | 2022-02-02T21:13:11.000Z | test/weberTest/response_test.exs | elixir-web/weber | 1c8caa43681cc432813dff33b2c6d08ca1d61f29 | [
"MIT"
] | 2 | 2015-03-08T05:29:36.000Z | 2015-07-19T15:31:19.000Z | test/weberTest/response_test.exs | elixir-web/weber | 1c8caa43681cc432813dff33b2c6d08ca1d61f29 | [
"MIT"
] | 12 | 2015-02-23T02:09:27.000Z | 2016-08-07T13:50:38.000Z | defmodule WeberHttpResponseTest do
use ExUnit.Case
test "SimpleResponse test" do
{:ok, status, _, client} = :hackney.request(:get, 'http://localhost:8080/weber', [], <<>>, [])
body = :hackney.body(client)
assert(body == {:ok, "Main\n"})
assert(status == 200)
end
test "json response with custom... | 39.315789 | 291 | 0.599732 |
736fd619e6b96d4e52e59f5a053beb59513e9a5e | 969 | ex | Elixir | templates/ecto/lib/repo.ex | Nebo15/enew | 9a6ff3993b3be38943023df8d9f6e6a23dcbd8e2 | [
"MIT"
] | 34 | 2016-08-13T17:05:32.000Z | 2019-10-21T07:11:21.000Z | templates/ecto/lib/repo.ex | Nebo15/enew | 9a6ff3993b3be38943023df8d9f6e6a23dcbd8e2 | [
"MIT"
] | 7 | 2016-08-18T11:33:44.000Z | 2017-10-03T12:28:27.000Z | templates/ecto/lib/repo.ex | Nebo15/enew | 9a6ff3993b3be38943023df8d9f6e6a23dcbd8e2 | [
"MIT"
] | 6 | 2016-10-12T08:57:25.000Z | 2021-05-26T04:18:21.000Z | defmodule <%= @module_name %>.Repo do
@moduledoc """
Repo for Ecto database.
More info: https://hexdocs.pm/ecto/Ecto.Repo.html
"""
use Ecto.Repo, otp_app: :<%= @application_name %>
@doc """
Dynamically loads the repository configuration from the environment variables.
"""
def init(_, config) do
... | 23.071429 | 80 | 0.659443 |
737012d403e3dcede1c750e92ee916dfbb2481bf | 1,692 | ex | Elixir | clients/document_ai/lib/google_api/document_ai/v1beta2/model/google_cloud_documentai_uiv1beta3_export_processor_version_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/document_ai/lib/google_api/document_ai/v1beta2/model/google_cloud_documentai_uiv1beta3_export_processor_version_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/document_ai/lib/google_api/document_ai/v1beta2/model/google_cloud_documentai_uiv1beta3_export_processor_version_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 31.333333 | 110 | 0.759456 |
73705607c53c478094a6ad70f1e56c520aa91c8a | 1,787 | exs | Elixir | mix.exs | alexiob/scenic_driver_waveshare | 8d0e026447649a94e439d226435cd667662a1f5c | [
"MIT"
] | 5 | 2020-01-09T09:09:57.000Z | 2021-02-08T21:47:09.000Z | mix.exs | alexiob/scenic_driver_waveshare | 8d0e026447649a94e439d226435cd667662a1f5c | [
"MIT"
] | null | null | null | mix.exs | alexiob/scenic_driver_waveshare | 8d0e026447649a94e439d226435cd667662a1f5c | [
"MIT"
] | null | null | null | defmodule Waveshare.MixProject do
use Mix.Project
@app :scenic_driver_waveshare
@version "0.8.1"
@all_targets [:rpi, :rpi0, :rpi2, :rpi3, :rpi3a, :rpi4]
def project do
[
app: @app,
version: @version,
elixir: "~> 1.9",
description: description(),
start_permanent: Mix.env() =... | 24.148649 | 80 | 0.581981 |
737060e0927e98c16f02ba35fd2b54686258fb2f | 3,398 | exs | Elixir | test/tube/builder_test.exs | baradox/tube | 50d127af88cc56ae93978ba326a4e43b61f5dbeb | [
"MIT"
] | 1 | 2016-07-07T05:46:22.000Z | 2016-07-07T05:46:22.000Z | test/tube/builder_test.exs | baradox/tube | 50d127af88cc56ae93978ba326a4e43b61f5dbeb | [
"MIT"
] | null | null | null | test/tube/builder_test.exs | baradox/tube | 50d127af88cc56ae93978ba326a4e43b61f5dbeb | [
"MIT"
] | null | null | null | defmodule Tube.BuilderTest do
defmodule Module do
import Tube.Context
def init(val) do
{:init, val}
end
def call(context, opts) do
stack = [{:call, opts}|fetch!(context, :stack)]
assign(context, :stack, stack)
end
end
defmodule Sample do
use Tube.Builder
tube :fun... | 22.20915 | 88 | 0.629194 |
7370a176ea4e31f53d9add345e1e22b7911bcb1d | 53 | ex | Elixir | test/support/system_mock.ex | jeffkreeftmeijer/bad_seed | 9c29c310e334f54cae49f7b30cbb96268d03bb11 | [
"MIT"
] | 1 | 2018-04-05T17:38:52.000Z | 2018-04-05T17:38:52.000Z | test/support/system_mock.ex | jeffkreeftmeijer/bad_seed | 9c29c310e334f54cae49f7b30cbb96268d03bb11 | [
"MIT"
] | null | null | null | test/support/system_mock.ex | jeffkreeftmeijer/bad_seed | 9c29c310e334f54cae49f7b30cbb96268d03bb11 | [
"MIT"
] | null | null | null | defmodule SystemMock do
def at_exit(_), do: []
end
| 13.25 | 24 | 0.698113 |
7370b24c05c617331233e858b0cadd76b5865adc | 1,653 | exs | Elixir | config/dev.exs | Pliavi/NLW-4-Rocketpay | fc146eb534e8dac634d618c7779b928b6172cbb2 | [
"MIT"
] | null | null | null | config/dev.exs | Pliavi/NLW-4-Rocketpay | fc146eb534e8dac634d618c7779b928b6172cbb2 | [
"MIT"
] | 1 | 2021-03-05T12:39:11.000Z | 2021-03-05T12:39:11.000Z | config/dev.exs | Pliavi/NLW-4-Rocketpay | fc146eb534e8dac634d618c7779b928b6172cbb2 | [
"MIT"
] | null | null | null | use Mix.Config
# Configure your database
config :rocketpay, Rocketpay.Repo,
username: "root",
password: "root",
database: "rocketpay_dev",
hostname: "localhost",
show_sensitive_data_on_connection_error: true,
pool_size: 10
# For development, we disable any cache and enable
# debugging and code reloading.
... | 28.5 | 68 | 0.726558 |
7370c6553ed316e7d08417c0cb054c3b8071356f | 433 | ex | Elixir | lib/aph/qa/question.ex | tometoproject/tometo | ed91069b11a020723edb9a143de29d9bac86a2b0 | [
"BlueOak-1.0.0",
"Apache-2.0"
] | 8 | 2019-09-26T13:59:25.000Z | 2020-03-30T21:26:48.000Z | lib/aph/qa/question.ex | tometoproject/tometo | ed91069b11a020723edb9a143de29d9bac86a2b0 | [
"BlueOak-1.0.0",
"Apache-2.0"
] | 39 | 2019-11-16T02:24:28.000Z | 2020-01-14T16:40:28.000Z | lib/aph/qa/question.ex | 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.QA.Question do
@moduledoc """
The Question model.
"""
use Ecto.Schema
import Ecto.Changeset
schema "questions" do
field :content, :string
has_many :inboxes, Aph.QA.Inbox
timestamps(type: :utc_datetime)
end
@doc false
def changeset(question, attrs) do
question
|> c... | 18.041667 | 42 | 0.662818 |
7370c72b924e7bdd54d2eb1dc2e597e76dc51e62 | 1,772 | ex | Elixir | clients/docs/lib/google_api/docs/v1/model/create_named_range_request.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/docs/lib/google_api/docs/v1/model/create_named_range_request.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/docs/lib/google_api/docs/v1/model/create_named_range_request.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 32.814815 | 113 | 0.721219 |
7370e9bee1b43225e940547b0cd4fef81875a24e | 529 | ex | Elixir | lib/mastani_server_web/middleware/put_current_user.ex | DavidAlphaFox/coderplanets_server | 3fd47bf3bba6cc04c9a34698201a60ad2f3e8254 | [
"Apache-2.0"
] | 1 | 2019-05-07T15:03:54.000Z | 2019-05-07T15:03:54.000Z | lib/mastani_server_web/middleware/put_current_user.ex | DavidAlphaFox/coderplanets_server | 3fd47bf3bba6cc04c9a34698201a60ad2f3e8254 | [
"Apache-2.0"
] | null | null | null | lib/mastani_server_web/middleware/put_current_user.ex | DavidAlphaFox/coderplanets_server | 3fd47bf3bba6cc04c9a34698201a60ad2f3e8254 | [
"Apache-2.0"
] | null | null | null | # ---
# Absinthe.Middleware behaviour
# see https://hexdocs.pm/absinthe/Absinthe.Middleware.html#content
# ---
defmodule MastaniServerWeb.Middleware.PutCurrentUser do
@behaviour Absinthe.Middleware
def call(%{context: %{cur_user: cur_user}} = resolution, _) do
arguments = resolution.arguments |> Map.merge(%{cu... | 26.45 | 85 | 0.718336 |
737102f34f0e4f07020ba7b00f37a1067c2e6748 | 2,155 | exs | Elixir | test/ex_oauth2_provider/oauth2/utils/device_flow_test.exs | heroinbob/ex_oauth2_provider | 80c21a53bba0955ab3b66f1bd32cc81db0f04f49 | [
"MIT"
] | null | null | null | test/ex_oauth2_provider/oauth2/utils/device_flow_test.exs | heroinbob/ex_oauth2_provider | 80c21a53bba0955ab3b66f1bd32cc81db0f04f49 | [
"MIT"
] | null | null | null | test/ex_oauth2_provider/oauth2/utils/device_flow_test.exs | heroinbob/ex_oauth2_provider | 80c21a53bba0955ab3b66f1bd32cc81db0f04f49 | [
"MIT"
] | null | null | null | defmodule ExOauth2Provider.Utils.DeviceFlowTest do
use ExOauth2Provider.TestCase
alias ExOauth2Provider.Utils.DeviceFlow
describe "#generate_device_code/1" do
test "returns a unique 32 char string that's base64 encoded and url safe" do
expected_length =
"01234567890123456789012345678912"
... | 25.05814 | 89 | 0.585151 |
73715e35cd32e7131a14d74ee740b2ee6c5b3968 | 880 | exs | Elixir | test/json_api_client/middleware/factory_test.exs | jmax/json_api_client | 10518564077860c291008887639dcef13f9ac3a7 | [
"MIT"
] | 36 | 2017-10-06T17:58:27.000Z | 2022-01-07T13:52:50.000Z | test/json_api_client/middleware/factory_test.exs | jmax/json_api_client | 10518564077860c291008887639dcef13f9ac3a7 | [
"MIT"
] | 12 | 2017-11-30T00:17:05.000Z | 2019-11-25T18:05:24.000Z | test/json_api_client/middleware/factory_test.exs | jmax/json_api_client | 10518564077860c291008887639dcef13f9ac3a7 | [
"MIT"
] | 12 | 2017-12-03T21:14:55.000Z | 2020-09-08T23:43:33.000Z | defmodule JsonApiClient.Middleware.FactoryTest do
use ExUnit.Case
doctest JsonApiClient.Middleware.Factory, import: true
alias JsonApiClient.Middleware.Factory
test "includes configured Middleware (DefaultRequestConfig, DocumentParser and HTTPClient Middleware are the last)" do
middlewares = Application.g... | 38.26087 | 120 | 0.718182 |
7371609b97cd046767ff0b318bad58f48b281f2d | 385 | ex | Elixir | kousa/lib/beef/queries/user_blocks.ex | lazarospsa/dogehouse | 4400518f5b6bce929e40eada615356e8814a8d28 | [
"MIT"
] | 2 | 2021-05-01T16:57:50.000Z | 2021-07-07T22:01:14.000Z | kousa/lib/beef/queries/user_blocks.ex | lazarospsa/dogehouse | 4400518f5b6bce929e40eada615356e8814a8d28 | [
"MIT"
] | 2 | 2022-02-15T04:33:25.000Z | 2022-02-28T01:39:56.000Z | kousa/lib/beef/queries/user_blocks.ex | lazarospsa/dogehouse | 4400518f5b6bce929e40eada615356e8814a8d28 | [
"MIT"
] | 1 | 2021-03-19T13:04:24.000Z | 2021-03-19T13:04:24.000Z | defmodule Beef.Queries.UserBlocks do
@moduledoc """
Query builder functions for UserBlocks
"""
import Ecto.Query, warn: false
alias Beef.Schemas.UserBlock
def start do
from(ub in UserBlock)
end
def filter_by_id_and_blockedId(query, user_id, user_id_blockedId) do
where(query, [ub], ub.userId =... | 22.647059 | 88 | 0.732468 |
7371672725a51613596fde2495598d94f7afa6c3 | 36,920 | ex | Elixir | lib/iex/lib/iex/helpers.ex | fmterrorf/elixir | eafb7b87756179adac5dc2bc11edcb04c1f187cc | [
"Apache-2.0"
] | 1 | 2019-06-27T08:47:13.000Z | 2019-06-27T08:47:13.000Z | lib/iex/lib/iex/helpers.ex | fmterrorf/elixir | eafb7b87756179adac5dc2bc11edcb04c1f187cc | [
"Apache-2.0"
] | null | null | null | lib/iex/lib/iex/helpers.ex | fmterrorf/elixir | eafb7b87756179adac5dc2bc11edcb04c1f187cc | [
"Apache-2.0"
] | null | null | null | defmodule IEx.Helpers do
@moduledoc """
Welcome to Interactive Elixir. You are currently
seeing the documentation for the module `IEx.Helpers`
which provides many helpers to make Elixir's shell
more joyful to work with.
This message was triggered by invoking the helper `h()`,
usually referred to as `h/0`... | 27.614061 | 97 | 0.641278 |
737176f20a04962d90f889bfb05f87b87f7a7076 | 1,002 | ex | Elixir | web/models/user.ex | hotpyn/phoenix-rumbl | 548ef0cfcaf166a6affa6e28f1a9238762422f1d | [
"MIT"
] | null | null | null | web/models/user.ex | hotpyn/phoenix-rumbl | 548ef0cfcaf166a6affa6e28f1a9238762422f1d | [
"MIT"
] | null | null | null | web/models/user.ex | hotpyn/phoenix-rumbl | 548ef0cfcaf166a6affa6e28f1a9238762422f1d | [
"MIT"
] | null | null | null | defmodule Hello.User do
use Hello.Web, :model
schema "users" do
field :name, :string, required: true
field :username, :string, required: true
field :password, :string, virtual: true
field :password_hash, :string
has_many :videos, Hello.Video, on_delete: :delete_all
timestamps
end
def ... | 25.692308 | 79 | 0.645709 |
737180bf354e368558bc2ba4a3c1eb37c678d678 | 10,381 | exs | Elixir | test/changelog_web/controllers/admin/episode_controller_test.exs | gustavoarmoa/changelog.com | e898a9979a237ae66962714821ed8633a4966f37 | [
"MIT"
] | 1 | 2019-11-02T08:32:25.000Z | 2019-11-02T08:32:25.000Z | test/changelog_web/controllers/admin/episode_controller_test.exs | sdrees/changelog.com | 955cdcf93d74991062f19a03e34c9f083ade1705 | [
"MIT"
] | null | null | null | test/changelog_web/controllers/admin/episode_controller_test.exs | sdrees/changelog.com | 955cdcf93d74991062f19a03e34c9f083ade1705 | [
"MIT"
] | null | null | null | defmodule ChangelogWeb.Admin.EpisodeControllerTest do
use ChangelogWeb.ConnCase
use Bamboo.Test
import Mock
alias Changelog.{Episode, EpisodeGuest, Github, NewsItem, NewsQueue}
@valid_attrs %{title: "The one where we win", slug: "181-win"}
@invalid_attrs %{title: ""}
setup_with_mocks(
[
{Git... | 34.488372 | 99 | 0.673057 |
737183b9b185f84eb7ab0883fd841c3a338feadf | 893 | ex | Elixir | lib/hummingbird/telemetry.ex | NFIBrokerage/hummingbird | ed649bc4f715c6ebb10f7762a013e62c3c8dfdf9 | [
"Apache-2.0"
] | 3 | 2020-06-04T18:59:51.000Z | 2022-03-18T12:36:10.000Z | lib/hummingbird/telemetry.ex | NFIBrokerage/hummingbird | ed649bc4f715c6ebb10f7762a013e62c3c8dfdf9 | [
"Apache-2.0"
] | 14 | 2020-05-15T20:02:17.000Z | 2021-07-07T20:39:53.000Z | lib/hummingbird/telemetry.ex | NFIBrokerage/hummingbird | ed649bc4f715c6ebb10f7762a013e62c3c8dfdf9 | [
"Apache-2.0"
] | null | null | null | defmodule Hummingbird.Telemetry do
@moduledoc """
A handler for telemetry events which captures phoenix endpoint completions
and ships trace information to honeycomb.
Add it to your application children list:
children = [
..
Hummingbird.Telemetry,
..
]
"""
use Task
... | 18.604167 | 76 | 0.619261 |
7371c32ed9eb6dd20c4b1b4613151f95a449eae6 | 4,165 | exs | Elixir | test/hexpm/web/views/package_view_test.exs | findmypast/hexfmp | 38a50f5e1057833fd98748faac230bf4b9cc26a3 | [
"Apache-2.0"
] | null | null | null | test/hexpm/web/views/package_view_test.exs | findmypast/hexfmp | 38a50f5e1057833fd98748faac230bf4b9cc26a3 | [
"Apache-2.0"
] | null | null | null | test/hexpm/web/views/package_view_test.exs | findmypast/hexfmp | 38a50f5e1057833fd98748faac230bf4b9cc26a3 | [
"Apache-2.0"
] | null | null | null | defmodule Hexpm.Web.PackageViewTest do
use Hexpm.ConnCase, async: true
alias Hexpm.Web.PackageView
test "show sort info" do
assert PackageView.show_sort_info("name") == "(Sorted by name)"
assert PackageView.show_sort_info("inserted_at") == "(Sorted by recently created)"
assert PackageView.show_sort_... | 41.65 | 110 | 0.659064 |
7371d83427f1ff635bb28d8dae6917fc03810779 | 2,880 | ex | Elixir | lib/unbrella/utils.ex | smpallen99/unbrella | d8d902edd5d68cca46686cc17e435fe9d2bce0da | [
"MIT"
] | 9 | 2017-07-09T21:45:56.000Z | 2020-09-26T04:19:58.000Z | lib/unbrella/utils.ex | smpallen99/unbrella | d8d902edd5d68cca46686cc17e435fe9d2bce0da | [
"MIT"
] | null | null | null | lib/unbrella/utils.ex | smpallen99/unbrella | d8d902edd5d68cca46686cc17e435fe9d2bce0da | [
"MIT"
] | 2 | 2017-09-18T14:38:59.000Z | 2017-11-27T10:31:36.000Z | defmodule Unbrella.Utils do
@moduledoc false
import Mix.Ecto
@doc false
@spec get_modules(atom) :: List.t()
def get_modules(calling_mod) do
get_schemas()
|> Enum.map(fn mod ->
Code.ensure_compiled(mod)
mod
end)
|> Enum.reduce([], fn mod, acc ->
case mod.schema_fields() do
... | 25.043478 | 87 | 0.561111 |
7372028a19592813986692a8ae155343d461f69f | 84 | exs | Elixir | test/intro_beam_web/views/page_view_test.exs | bloxera/intro_beam | 6620c3ebc2d01a164233d15a6dfe9f17ed4c99d0 | [
"MIT"
] | null | null | null | test/intro_beam_web/views/page_view_test.exs | bloxera/intro_beam | 6620c3ebc2d01a164233d15a6dfe9f17ed4c99d0 | [
"MIT"
] | null | null | null | test/intro_beam_web/views/page_view_test.exs | bloxera/intro_beam | 6620c3ebc2d01a164233d15a6dfe9f17ed4c99d0 | [
"MIT"
] | null | null | null | defmodule IntroBeamWeb.PageViewTest do
use IntroBeamWeb.ConnCase, async: true
end
| 21 | 40 | 0.833333 |
73722b955921a861153d088bdb8cd3aa6c1c08e2 | 245 | ex | Elixir | lib/mariaex/geometry/line_string.ex | nedap/mariaex | 102a23088386eb5038337084be34775e59945924 | [
"Apache-2.0"
] | 264 | 2015-03-05T06:55:21.000Z | 2021-08-02T22:12:35.000Z | lib/mariaex/geometry/line_string.ex | nedap/mariaex | 102a23088386eb5038337084be34775e59945924 | [
"Apache-2.0"
] | 215 | 2015-03-04T23:39:52.000Z | 2022-01-17T05:14:10.000Z | lib/mariaex/geometry/line_string.ex | nedap/mariaex | 102a23088386eb5038337084be34775e59945924 | [
"Apache-2.0"
] | 132 | 2015-03-04T22:50:48.000Z | 2021-12-09T23:28:59.000Z | defmodule Mariaex.Geometry.LineString do
@moduledoc """
Define the LineString struct
"""
@type t :: %Mariaex.Geometry.LineString{ coordinates: [{number, number}], srid: non_neg_integer | nil }
defstruct coordinates: [], srid: nil
end
| 27.222222 | 105 | 0.714286 |
737232d9cba660056737bf242ab47d28b1e5c112 | 394 | exs | Elixir | lib/mix/test/fixtures/umbrella_test/apps/bar/test/bar_tests.exs | doughsay/elixir | 7356a47047d0b54517bd6886603f09b1121dde2b | [
"Apache-2.0"
] | 19,291 | 2015-01-01T02:42:49.000Z | 2022-03-31T21:01:40.000Z | lib/mix/test/fixtures/umbrella_test/apps/bar/test/bar_tests.exs | doughsay/elixir | 7356a47047d0b54517bd6886603f09b1121dde2b | [
"Apache-2.0"
] | 8,082 | 2015-01-01T04:16:23.000Z | 2022-03-31T22:08:02.000Z | lib/mix/test/fixtures/umbrella_test/apps/bar/test/bar_tests.exs | doughsay/elixir | 7356a47047d0b54517bd6886603f09b1121dde2b | [
"Apache-2.0"
] | 3,472 | 2015-01-03T04:11:56.000Z | 2022-03-29T02:07:30.000Z | defmodule BarTest do
use ExUnit.Case
test "greets the world" do
assert Bar.hello() == :world
end
test "world the greets" do
assert Bar.Ignore.world() == :hello
end
@tag :maybe_skip
test "works with protocols" do
assert Bar.Protocol.to_uppercase("foo") == "FOO"
end
test "protocols are c... | 18.761905 | 52 | 0.682741 |
7372da9d85b50e995fa480dc8fa8dbd38f068207 | 1,548 | ex | Elixir | lib/cforum/threads/tree_helper.ex | campingrider/cforum_ex | cf27684c47d6dc26c9c37a946f1c729a79d27c70 | [
"MIT"
] | null | null | null | lib/cforum/threads/tree_helper.ex | campingrider/cforum_ex | cf27684c47d6dc26c9c37a946f1c729a79d27c70 | [
"MIT"
] | null | null | null | lib/cforum/threads/tree_helper.ex | campingrider/cforum_ex | cf27684c47d6dc26c9c37a946f1c729a79d27c70 | [
"MIT"
] | null | null | null | defmodule Cforum.Threads.TreeHelper do
alias Cforum.Threads.Thread
alias Cforum.Messages.Message
alias Cforum.Helpers
def sort_threads(threads, direction, thread_modifier),
do: Enum.map(threads, &gen_thread_tree(&1, thread_modifier, direction))
def gen_thread_tree(thread, modifier, direction \\ "ascendi... | 29.207547 | 80 | 0.584625 |
7372e1d0bb4942f0fd758d12dd3aef6da4659b0c | 807 | ex | Elixir | test/support/channel_case.ex | kpanic/phoenix_forecastr_live_view | e8471d64c28234b6bfe1489f40616dd0324a888f | [
"Apache-2.0"
] | 1 | 2020-01-12T21:52:23.000Z | 2020-01-12T21:52:23.000Z | test/support/channel_case.ex | kpanic/phoenix_forecastr_live_view | e8471d64c28234b6bfe1489f40616dd0324a888f | [
"Apache-2.0"
] | null | null | null | test/support/channel_case.ex | kpanic/phoenix_forecastr_live_view | e8471d64c28234b6bfe1489f40616dd0324a888f | [
"Apache-2.0"
] | null | null | null | defmodule PhoenixForecastrLiveViewWeb.ChannelCase do
@moduledoc """
This module defines the test case to be used by
channel tests.
Such tests rely on `Phoenix.ChannelTest` and also
import other functionality to make it easier
to build common data structures and query the data layer.
Finally, if the test... | 25.21875 | 59 | 0.738538 |
73731bbe5abc275967ef7f0cc72550dd25ba4086 | 649 | ex | Elixir | lib/mix/lib/mix/tasks/local.ex | sunaku/elixir | 8aa43eaedd76be8ac0d495049eb9ecd56971f4fe | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/tasks/local.ex | sunaku/elixir | 8aa43eaedd76be8ac0d495049eb9ecd56971f4fe | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/tasks/local.ex | sunaku/elixir | 8aa43eaedd76be8ac0d495049eb9ecd56971f4fe | [
"Apache-2.0"
] | 1 | 2020-12-07T08:04:16.000Z | 2020-12-07T08:04:16.000Z | defmodule Mix.Tasks.Local do
use Mix.Task
@shortdoc "List local tasks"
@moduledoc """
List local tasks.
"""
def run([]) do
shell = Mix.shell
modules = Mix.Local.all_tasks
docs = for module <- modules do
{Mix.Task.task_name(module), Mix.Task.shortdoc(module)}
end
max = Enum.r... | 19.666667 | 61 | 0.610169 |
73733113b156e40e1724a1912b870e0b70711a8b | 1,164 | ex | Elixir | clients/elixir/generated/lib/swaggy_jenkins/model/github_repository.ex | cliffano/jenkins-api-clients-generator | 522d02b3a130a29471df5ec1d3d22c822b3d0813 | [
"MIT"
] | null | null | null | clients/elixir/generated/lib/swaggy_jenkins/model/github_repository.ex | cliffano/jenkins-api-clients-generator | 522d02b3a130a29471df5ec1d3d22c822b3d0813 | [
"MIT"
] | null | null | null | clients/elixir/generated/lib/swaggy_jenkins/model/github_repository.ex | cliffano/jenkins-api-clients-generator | 522d02b3a130a29471df5ec1d3d22c822b3d0813 | [
"MIT"
] | null | null | null | # NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
# https://openapi-generator.tech
# Do not edit the class manually.
defmodule SwaggyJenkins.Model.GithubRepository do
@moduledoc """
"""
@derive [Poison.Encoder]
defstruct [
:"_class",
:"_links",
:"defaul... | 27.069767 | 101 | 0.668385 |
737335ace809b7650c53ff6a7b53e61e73b7d7e3 | 335 | ex | Elixir | rust-to-elixir/grpc_server/lib/message/message.ex | poad/grpc-example | d1b775f6d2e89279cd29191d5d4dbec265bf0bf0 | [
"Apache-2.0"
] | null | null | null | rust-to-elixir/grpc_server/lib/message/message.ex | poad/grpc-example | d1b775f6d2e89279cd29191d5d4dbec265bf0bf0 | [
"Apache-2.0"
] | 64 | 2021-08-30T23:54:04.000Z | 2022-03-14T21:06:11.000Z | rust-to-elixir/grpc_server/lib/message/message.ex | poad/grpc-example | d1b775f6d2e89279cd29191d5d4dbec265bf0bf0 | [
"Apache-2.0"
] | null | null | null | defmodule Message.Schema do
use Ecto.Schema
defmacro __using__(_) do
quote do
use Ecto.Schema
@primary_key {:id, :string, autogenerate: false}
end
end
end
defmodule Message.Message do
use Message.Schema
@primary_key {:id, :string, autogenerate: false}
schema "message" do
field :mes... | 17.631579 | 54 | 0.692537 |
7373480715a1dba6a718cb1148b11a5377cf1fd5 | 1,257 | exs | Elixir | config/config.exs | scottming/absinthe_error_payload | 500f7fa2ad1c17eeba644e7922dd0275994f6f94 | [
"MIT",
"BSD-3-Clause"
] | 90 | 2019-04-30T00:21:58.000Z | 2022-02-02T15:28:25.000Z | config/config.exs | scottming/absinthe_error_payload | 500f7fa2ad1c17eeba644e7922dd0275994f6f94 | [
"MIT",
"BSD-3-Clause"
] | 18 | 2019-05-01T19:24:16.000Z | 2022-01-04T07:22:43.000Z | config/config.exs | scottming/absinthe_error_payload | 500f7fa2ad1c17eeba644e7922dd0275994f6f94 | [
"MIT",
"BSD-3-Clause"
] | 25 | 2019-05-24T23:57:24.000Z | 2022-02-25T19:16:23.000Z | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
config :absinthe_error_payload,
ecto_repos: [],
field_constructor: AbsintheErrorPayload.FieldConstructor
# This configuration is loaded before any dependency and is restricted
#... | 35.914286 | 73 | 0.763723 |
73734eb42f218fa3271e44461fe4c7ab01267296 | 270 | ex | Elixir | apps/site/lib/site/trip_plan/intermediate_stop.ex | noisecapella/dotcom | d5ef869412102d2230fac3dcc216f01a29726227 | [
"MIT"
] | 42 | 2019-05-29T16:05:30.000Z | 2021-08-09T16:03:37.000Z | apps/site/lib/site/trip_plan/intermediate_stop.ex | noisecapella/dotcom | d5ef869412102d2230fac3dcc216f01a29726227 | [
"MIT"
] | 872 | 2019-05-29T17:55:50.000Z | 2022-03-30T09:28:43.000Z | apps/site/lib/site/trip_plan/intermediate_stop.ex | noisecapella/dotcom | d5ef869412102d2230fac3dcc216f01a29726227 | [
"MIT"
] | 12 | 2019-07-01T18:33:21.000Z | 2022-03-10T02:13:57.000Z | defmodule Site.TripPlan.IntermediateStop do
defstruct description: nil,
stop_id: nil,
alerts: []
@type t :: %__MODULE__{
description: iodata,
stop_id: Stops.Stop.id_t(),
alerts: [Alerts.Alert.t()]
}
end
| 22.5 | 43 | 0.559259 |
737362520182f25c7587536131dd5c0036191bac | 1,352 | ex | Elixir | lib/pilot/supervisor.ex | MetisMachine/pilot | cb692ced9e20888cb4f528784639f94fc2a762f9 | [
"MIT"
] | 2 | 2017-10-05T21:04:21.000Z | 2018-09-19T19:50:28.000Z | lib/pilot/supervisor.ex | MetisMachine/pilot | cb692ced9e20888cb4f528784639f94fc2a762f9 | [
"MIT"
] | 4 | 2017-10-19T16:00:00.000Z | 2017-10-26T13:44:42.000Z | lib/pilot/supervisor.ex | MetisMachine/pilot | cb692ced9e20888cb4f528784639f94fc2a762f9 | [
"MIT"
] | 2 | 2017-10-11T18:06:21.000Z | 2017-10-12T20:01:53.000Z | defmodule Pilot.Supervisor do
@moduledoc false
use Supervisor
require Logger
@defaults [port: 8080]
# Client API
@doc """
Returns the endpoint configuration stored in the `:otp_app` environment
"""
def config(pilot, opts) do
otp_app = Keyword.fetch!(opts, :otp_app)
config =
@defaul... | 23.719298 | 76 | 0.609467 |
73736b84961f52838bba871e052615a59df1c617 | 3,341 | exs | Elixir | test/plenario_web/controllers/virtual_date_controller_test.exs | vforgione/plenario2 | 001526e5c60a1d32794a18f3fd65ead6cade1a29 | [
"Apache-2.0"
] | 13 | 2017-12-11T13:59:42.000Z | 2020-11-16T21:52:31.000Z | test/plenario_web/controllers/virtual_date_controller_test.exs | vforgione/plenario2 | 001526e5c60a1d32794a18f3fd65ead6cade1a29 | [
"Apache-2.0"
] | 310 | 2017-11-13T22:52:26.000Z | 2018-11-19T17:49:30.000Z | test/plenario_web/controllers/virtual_date_controller_test.exs | vforgione/plenario2 | 001526e5c60a1d32794a18f3fd65ead6cade1a29 | [
"Apache-2.0"
] | 3 | 2017-12-05T00:36:12.000Z | 2020-03-10T15:15:29.000Z | defmodule PlenarioWeb.Testing.VirtualDateControllerTest do
use PlenarioWeb.Testing.ConnCase
import Plenario.Testing.DataCase
describe "new" do
@tag :auth
test "will display a form", %{conn: conn, user: user} do
data_set = create_data_set(%{user: user})
field = create_field(%{data_set: data_s... | 30.651376 | 156 | 0.622568 |
737378b5408d5c1a55f20fc3b5ad5c72a9de08d3 | 1,925 | ex | Elixir | clients/firestore/lib/google_api/firestore/v1beta1/model/write_result.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/firestore/lib/google_api/firestore/v1beta1/model/write_result.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/firestore/lib/google_api/firestore/v1beta1/model/write_result.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... | 38.5 | 240 | 0.741299 |
737382de864cfa6c03e0d11732d4c92409c875a1 | 2,164 | ex | Elixir | lib/arango.ex | mpoeter/arangoex | 161ed0223f4e75ca47ca921660f162d01fdab863 | [
"Apache-2.0"
] | null | null | null | lib/arango.ex | mpoeter/arangoex | 161ed0223f4e75ca47ca921660f162d01fdab863 | [
"Apache-2.0"
] | null | null | null | lib/arango.ex | mpoeter/arangoex | 161ed0223f4e75ca47ca921660f162d01fdab863 | [
"Apache-2.0"
] | 3 | 2018-03-27T09:47:04.000Z | 2019-11-04T22:41:46.000Z | # TODO: batch requests
# TODO: batch async requets
# TODO: async job loookup (does it work?)
# TODO: batch async job lookup request (does it work??)
defmodule Arango do
@moduledoc File.read!("#{__DIR__}/../README.md")
@type ok_error(success) :: {:ok, success} | {:error, any()} | [{:ok, success} | {:error, map()}]... | 28.473684 | 100 | 0.64695 |
7373b0174969d07fd99d7da8dc686379163b10c0 | 486 | ex | Elixir | testData/org/elixir_lang/parser_definition/function_reference_parsing_test_case/AtomDotOperator.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 1,668 | 2015-01-03T05:54:27.000Z | 2022-03-25T08:01:20.000Z | testData/org/elixir_lang/parser_definition/function_reference_parsing_test_case/AtomDotOperator.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 2,018 | 2015-01-01T22:43:39.000Z | 2022-03-31T20:13:08.000Z | testData/org/elixir_lang/parser_definition/function_reference_parsing_test_case/AtomDotOperator.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 145 | 2015-01-15T11:37:16.000Z | 2021-12-22T05:51:02.000Z | :one.&&/2
:one.&&&/2
:one.<<</2
:one.<<~/2
:one.<|>/2
:one.<~>/2
:one.>>>/2
:one.~>>/2
:one.<~/2
:one.|>/2
:one.~>/2
:one.@/1
:one.&/1
:one.after/1
:one.and/2
:one.catch/1
:one.do/1
:one.else/1
:one.end/0
:one.in/2
:one.not/1
:one.or/2
:one.rescue/1
:one.!==/2
:one.===/2
:one.!=/2
:one.+/2
:one.-/2
:one.^^^/2
:one.||/2... | 10.125 | 13 | 0.458848 |
7373da7d9cc428d12f0681918caf7f2506263685 | 1,761 | ex | Elixir | clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p2beta1_crop_hints_annotation.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p2beta1_crop_hints_annotation.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p2beta1_crop_hints_annotation.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 35.938776 | 137 | 0.767746 |
7373dba4cadeefb9779807fa2508729acbc15908 | 1,421 | exs | Elixir | config/dev.exs | nilenso/exkubed | 84586ab75ebc417cf5a5bed5323d9032b23ea2ec | [
"MIT"
] | 1 | 2019-08-29T20:35:54.000Z | 2019-08-29T20:35:54.000Z | config/dev.exs | nilenso/exkubed | 84586ab75ebc417cf5a5bed5323d9032b23ea2ec | [
"MIT"
] | null | null | null | config/dev.exs | nilenso/exkubed | 84586ab75ebc417cf5a5bed5323d9032b23ea2ec | [
"MIT"
] | null | null | null | use Mix.Config
# For development, we disable any cache and enable
# debugging and code reloading.
#
# The watchers configuration can be used to run external
# watchers to your application. For example, we use it
# with webpack to recompile .js and .css sources.
config :exkubed, ExkubedWeb.Endpoint,
http: [port: 4000... | 29 | 68 | 0.721323 |
7373fc21a2b018126e44528a6c7f72a2f5782893 | 98 | exs | Elixir | v02/ch09/pipe2.edit1.exs | oiax/elixir-primer | c8b89a29f108cc335b8e1341b7a1e90ec12adc66 | [
"MIT"
] | null | null | null | v02/ch09/pipe2.edit1.exs | oiax/elixir-primer | c8b89a29f108cc335b8e1341b7a1e90ec12adc66 | [
"MIT"
] | null | null | null | v02/ch09/pipe2.edit1.exs | oiax/elixir-primer | c8b89a29f108cc335b8e1341b7a1e90ec12adc66 | [
"MIT"
] | null | null | null | %{a: 1, b: 2}
|> Map.merge(%{c: 3})
|> Enum.map(fn({k, v}) -> {k, v * 2} end)
|> IO.inspect
| 19.6 | 43 | 0.408163 |
73746cb8b0ba9e4b621e504d53efedd7c39958c1 | 939 | ex | Elixir | web/router.ex | meilab/meilab_blog | 86fca779c8b01559440ea3f686695700e8cf5ed2 | [
"MIT"
] | null | null | null | web/router.ex | meilab/meilab_blog | 86fca779c8b01559440ea3f686695700e8cf5ed2 | [
"MIT"
] | null | null | null | web/router.ex | meilab/meilab_blog | 86fca779c8b01559440ea3f686695700e8cf5ed2 | [
"MIT"
] | null | null | null | defmodule MeilabBlog.Router do
use MeilabBlog.Web, :router
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_flash
plug :protect_from_forgery
plug :put_secure_browser_headers
end
pipeline :api do
plug :accepts, ["json"]
end
scope "/", MeilabBlog do
p... | 25.378378 | 57 | 0.679446 |
7374710741a36c9b8c8f7488f0dd5b2ed77f2f5d | 1,135 | exs | Elixir | clients/service_user/config/config.exs | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/service_user/config/config.exs | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/service_user/config/config.exs | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.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.612903 | 73 | 0.755066 |
73747759dd9d0546b9344ae57887c91b8466fd4c | 791 | ex | Elixir | test/support/resources/post.ex | totaltrash/ash_postgres | 7af29756fadaaad018d6fcf35e7f806cd304d6d2 | [
"MIT"
] | null | null | null | test/support/resources/post.ex | totaltrash/ash_postgres | 7af29756fadaaad018d6fcf35e7f806cd304d6d2 | [
"MIT"
] | null | null | null | test/support/resources/post.ex | totaltrash/ash_postgres | 7af29756fadaaad018d6fcf35e7f806cd304d6d2 | [
"MIT"
] | null | null | null | defmodule AshPostgres.Test.Post do
@moduledoc false
use Ash.Resource,
data_layer: AshPostgres.DataLayer
postgres do
table "posts"
repo AshPostgres.TestRepo
end
actions do
read(:read)
create(:create)
end
attributes do
attribute(:id, :uuid, primary_key?: true, default: &Ecto.UUID.... | 20.282051 | 78 | 0.692794 |
73747ee04183d9371d39d647ead89610f64d87a0 | 2,715 | exs | Elixir | test/pilot_responses_test.exs | MetisMachine/pilot | cb692ced9e20888cb4f528784639f94fc2a762f9 | [
"MIT"
] | 2 | 2017-10-05T21:04:21.000Z | 2018-09-19T19:50:28.000Z | test/pilot_responses_test.exs | MetisMachine/pilot | cb692ced9e20888cb4f528784639f94fc2a762f9 | [
"MIT"
] | 4 | 2017-10-19T16:00:00.000Z | 2017-10-26T13:44:42.000Z | test/pilot_responses_test.exs | MetisMachine/pilot | cb692ced9e20888cb4f528784639f94fc2a762f9 | [
"MIT"
] | 2 | 2017-10-11T18:06:21.000Z | 2017-10-12T20:01:53.000Z | defmodule Pilot.Tests.Responses do
require Logger
use ExUnit.Case
import Plug.Conn
import Plug.Test
use Pilot.Responses
doctest Pilot.Responses
test "ensure redirect status and headers are set." do
test_conn()
|> redirect("/test/path")
|> assert_redirect("/test/path")
end
test "ensure... | 25.373832 | 84 | 0.578269 |
73748207870ae798581504b5c0bdf44dc33592b9 | 328 | ex | Elixir | lib/four_lucha/resource/dlc.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/dlc.ex | Thomas-Jean/four_lucha | 591627059c02edc3315b5cac2c35eacb821108ff | [
"Apache-2.0"
] | null | null | null | lib/four_lucha/resource/dlc.ex | Thomas-Jean/four_lucha | 591627059c02edc3315b5cac2c35eacb821108ff | [
"Apache-2.0"
] | null | null | null | defmodule FourLucha.Resource.DLC do
@moduledoc false
defstruct(
api_detail_url: nil,
date_added: nil,
date_last_updated: nil,
deck: nil,
description: nil,
game: nil,
guid: nil,
id: nil,
image: nil,
name: nil,
platform: nil,
release_date: nil,
site_detail_url: nil
... | 17.263158 | 35 | 0.628049 |
7374866c9c9f2a1ba63fbdfe59dc7deb4a35b2ab | 579 | ex | Elixir | lib/web/plugs/ensure_user_verified.ex | sb8244/grapevine | effaaa01294d30114090c20f9cc40b8665d834f2 | [
"MIT"
] | 107 | 2018-10-05T18:20:32.000Z | 2022-02-28T04:02:50.000Z | lib/web/plugs/ensure_user_verified.ex | sb8244/grapevine | effaaa01294d30114090c20f9cc40b8665d834f2 | [
"MIT"
] | 33 | 2018-10-05T14:11:18.000Z | 2022-02-10T22:19:18.000Z | lib/web/plugs/ensure_user_verified.ex | sb8244/grapevine | effaaa01294d30114090c20f9cc40b8665d834f2 | [
"MIT"
] | 18 | 2019-02-03T03:08:20.000Z | 2021-12-28T04:29:36.000Z | defmodule Web.Plugs.EnsureUserVerified do
@moduledoc """
Verify a user is in the session
"""
import Plug.Conn
import Phoenix.Controller
alias GrapevineData.Accounts
alias Web.Router.Helpers, as: Routes
def init(default), do: default
def call(conn, _opts) do
%{current_user: user} = conn.assigns... | 19.965517 | 65 | 0.635579 |
73749a1e9c063fd49423bd8d63456d563762bd79 | 9,147 | ex | Elixir | lib/ex_zipper/zipper.ex | mikowitz/ex_zipper | 9ae652af30941ae6bab2b5f6d4f18e853c151280 | [
"Unlicense"
] | 5 | 2017-11-28T16:59:27.000Z | 2021-05-24T00:39:39.000Z | lib/ex_zipper/zipper.ex | mikowitz/ex_zipper | 9ae652af30941ae6bab2b5f6d4f18e853c151280 | [
"Unlicense"
] | null | null | null | lib/ex_zipper/zipper.ex | mikowitz/ex_zipper | 9ae652af30941ae6bab2b5f6d4f18e853c151280 | [
"Unlicense"
] | 1 | 2018-09-20T21:26:50.000Z | 2018-09-20T21:26:50.000Z | defmodule ExZipper.Zipper do
@moduledoc """
An Elixir implementation of [Huet's Zipper][huet], with gratitude to Rich Hickey's
[Clojure implementation][clojure].
Zippers provide a method of navigating and editing a tree while maintaining
enough state data to reconstruct the tree from the currently focused no... | 30.694631 | 116 | 0.624358 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.