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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2107aad30ffac497fbc5cbeffd2a8bdf9c6d2d36 | 3,129 | ex | Elixir | clients/elixir/generated/lib/adobe_experience_manager(aem)api/api/custom.ex | shinesolutions/swagger-aem | b41f1ae3d23917de38ca5cf116cbcc173368d1e8 | [
"Apache-2.0"
] | 39 | 2016-10-02T06:45:12.000Z | 2021-09-08T20:39:53.000Z | clients/elixir/generated/lib/adobe_experience_manager(aem)api/api/custom.ex | shinesolutions/swagger-aem | b41f1ae3d23917de38ca5cf116cbcc173368d1e8 | [
"Apache-2.0"
] | 35 | 2016-11-02T05:06:34.000Z | 2021-09-03T06:03:08.000Z | clients/elixir/generated/lib/adobe_experience_manager(aem)api/api/custom.ex | shinesolutions/swagger-aem | b41f1ae3d23917de38ca5cf116cbcc173368d1e8 | [
"Apache-2.0"
] | 23 | 2016-11-07T04:14:42.000Z | 2021-02-15T09:49:13.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 AdobeExperienceManager(AEM)API.Api.Custom do
@moduledoc """
API calls for all endpoints tagged `Custom`.
"""
alias AdobeExperienceManager(AEM... | 29.518868 | 111 | 0.655801 |
2107cb85c010e49fc61f1561d0f4fd06acd50d6b | 245 | ex | Elixir | lib/prm/divisions/division_search.ex | EDENLABLLC/prm.api | 86743f26874f47ce3d48010ccf5d2cd596a3474b | [
"Apache-2.0"
] | 1 | 2017-07-27T16:03:28.000Z | 2017-07-27T16:03:28.000Z | lib/prm/divisions/division_search.ex | EDENLABLLC/prm.api | 86743f26874f47ce3d48010ccf5d2cd596a3474b | [
"Apache-2.0"
] | null | null | null | lib/prm/divisions/division_search.ex | EDENLABLLC/prm.api | 86743f26874f47ce3d48010ccf5d2cd596a3474b | [
"Apache-2.0"
] | null | null | null | defmodule PRM.Divisions.DivisionSearch do
@moduledoc false
use Ecto.Schema
schema "division_search" do
field :ids, PRM.CommaParamsUUID
field :name, :string
field :type, :string
field :legal_entity_id, Ecto.UUID
end
end
| 18.846154 | 41 | 0.722449 |
2107e4274d8f18bef1e0f99ef0cfc5d1ea11543c | 1,856 | ex | Elixir | clients/spanner/lib/google_api/spanner/v1/model/struct_type.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/spanner/lib/google_api/spanner/v1/model/struct_type.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/spanner/lib/google_api/spanner/v1/model/struct_type.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 38.666667 | 394 | 0.745151 |
210843c3b69a4338fefff9b8daa560b62c96f354 | 7,279 | ex | Elixir | elixir_heis_prosjekt/lib/driver.ex | jornbh/Studass_sanntid | 8b55d01803d00b3b918abb6cf21ba02f0425c23e | [
"MIT"
] | null | null | null | elixir_heis_prosjekt/lib/driver.ex | jornbh/Studass_sanntid | 8b55d01803d00b3b918abb6cf21ba02f0425c23e | [
"MIT"
] | null | null | null | elixir_heis_prosjekt/lib/driver.ex | jornbh/Studass_sanntid | 8b55d01803d00b3b918abb6cf21ba02f0425c23e | [
"MIT"
] | null | null | null | defmodule Driver do
use Supervisor
def start_link(init_args) do
Supervisor.start_link(__MODULE__, init_args, name: __MODULE__)
end
defmodule SetMotorDir do
def up(), do: RawDriver.set_motor_dir(:motor_up)
def down(), do: RawDriver.set_motor_dir(:motor_down)
def still(), do: RawDriver.set_m... | 27.262172 | 87 | 0.662728 |
2108480a5c10d829f7ede0d51e12792b2dabc188 | 1,176 | ex | Elixir | orderapi/lib/orderapi_web/channels/user_socket.ex | iandeherdt/phoenixshop | cd6e223c676505b75c1340b96908468a5c09fd7c | [
"Apache-2.0"
] | 1 | 2018-03-06T10:32:22.000Z | 2018-03-06T10:32:22.000Z | orderapi/lib/orderapi_web/channels/user_socket.ex | iandeherdt/phoenixshop | cd6e223c676505b75c1340b96908468a5c09fd7c | [
"Apache-2.0"
] | null | null | null | orderapi/lib/orderapi_web/channels/user_socket.ex | iandeherdt/phoenixshop | cd6e223c676505b75c1340b96908468a5c09fd7c | [
"Apache-2.0"
] | null | null | null | defmodule OrderapiWeb.UserSocket do
use Phoenix.Socket
## Channels
# channel "room:*", OrderapiWeb.RoomChannel
## Transports
transport :websocket, Phoenix.Transports.WebSocket
# transport :longpoll, Phoenix.Transports.LongPoll
# Socket params are passed from the client and can
# be used to verify and... | 30.947368 | 83 | 0.704082 |
210862a52bbb39186b312cc015bec4e8b55342e2 | 1,667 | ex | Elixir | clients/drive_activity/lib/google_api/drive_activity/v2/model/assignment.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/drive_activity/lib/google_api/drive_activity/v2/model/assignment.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/drive_activity/lib/google_api/drive_activity/v2/model/assignment.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... | 33.34 | 135 | 0.726455 |
21089f4148bdc1dc16918557f300bc19b8f392a2 | 363 | ex | Elixir | apps/re/lib/seller_leads/policy.ex | caspg/backend | 34df9dc14ab8ed75de4578fefa2e087580c7e867 | [
"MIT"
] | 1 | 2021-01-19T05:01:15.000Z | 2021-01-19T05:01:15.000Z | apps/re/lib/seller_leads/policy.ex | caspg/backend | 34df9dc14ab8ed75de4578fefa2e087580c7e867 | [
"MIT"
] | null | null | null | apps/re/lib/seller_leads/policy.ex | caspg/backend | 34df9dc14ab8ed75de4578fefa2e087580c7e867 | [
"MIT"
] | null | null | null | defmodule Re.SellerLeads.Policy do
@moduledoc """
Policy module for user permission on seller leads
"""
alias Re.User
def authorize(_, %User{role: "admin"}, _), do: :ok
def authorize(:create_seller_lead, %User{role: "user"}, _), do: :ok
def authorize(_, nil, _), do: {:error, :unauthorized}
def author... | 25.928571 | 69 | 0.661157 |
2108abe974bed1f6562c88f80ccbc14b34a0415f | 189 | ex | Elixir | elixir/advent_of_code/lib/aoc.ex | rhishikeshj/advent-of-code | 71231217baaaa27994a2fd1980fe800426aef4bc | [
"Apache-2.0"
] | null | null | null | elixir/advent_of_code/lib/aoc.ex | rhishikeshj/advent-of-code | 71231217baaaa27994a2fd1980fe800426aef4bc | [
"Apache-2.0"
] | null | null | null | elixir/advent_of_code/lib/aoc.ex | rhishikeshj/advent-of-code | 71231217baaaa27994a2fd1980fe800426aef4bc | [
"Apache-2.0"
] | 1 | 2020-01-02T06:41:43.000Z | 2020-01-02T06:41:43.000Z | defmodule AOC do
@moduledoc """
Documentation for `AOC`.
"""
@doc """
Hello world.
## Examples
iex> AOC.hello()
:world
"""
def hello do
:world
end
end
| 9.947368 | 26 | 0.529101 |
2108ae26566d81113b1310d65eabf845b6b505f8 | 498 | exs | Elixir | test/grass_hopper_test.exs | youroff/grass_hopper | 1cef7c710903cad29b67c0c0be9ab3258cce5e95 | [
"MIT"
] | null | null | null | test/grass_hopper_test.exs | youroff/grass_hopper | 1cef7c710903cad29b67c0c0be9ab3258cce5e95 | [
"MIT"
] | null | null | null | test/grass_hopper_test.exs | youroff/grass_hopper | 1cef7c710903cad29b67c0c0be9ab3258cce5e95 | [
"MIT"
] | null | null | null | defmodule GrassHopperTest do
use ExUnit.Case
doctest GrassHopper
test "trimming timeout" do
assert GrassHopper.trim_timeout(100) == 100
assert GrassHopper.trim_timeout(100, min_timeout: 1000) == 1000
assert GrassHopper.trim_timeout(100, max_timeout: 50) == 50
assert GrassHopper.trim_timeout(:infi... | 35.571429 | 78 | 0.751004 |
2108bb7e8319d0ef318ef9e662bce52a63ec5a6c | 289 | ex | Elixir | test/support/data_case.ex | mtdurling/guardian_trackable | 9f9bac8ff389a90738b50a135a78d96d9deb6281 | [
"MIT"
] | 21 | 2017-11-06T11:20:24.000Z | 2021-10-03T11:44:58.000Z | test/support/data_case.ex | mtdurling/guardian_trackable | 9f9bac8ff389a90738b50a135a78d96d9deb6281 | [
"MIT"
] | 4 | 2018-01-10T02:32:15.000Z | 2019-04-25T17:33:24.000Z | test/support/data_case.ex | mtdurling/guardian_trackable | 9f9bac8ff389a90738b50a135a78d96d9deb6281 | [
"MIT"
] | 4 | 2018-01-12T01:16:37.000Z | 2020-04-08T14:23:24.000Z | defmodule GuardianTrackable.DataCase do
use ExUnit.CaseTemplate
alias GuardianTrackable.Dummy.Repo
setup tags do
:ok = Ecto.Adapters.SQL.Sandbox.checkout(Repo)
unless tags[:async] do
Ecto.Adapters.SQL.Sandbox.mode(Repo, {:shared, self()})
end
:ok
end
end
| 18.0625 | 61 | 0.702422 |
2108c5adcabec4936f734eb6ad910350e80f6007 | 816 | ex | Elixir | lib/mix/tasks/ex_oauth2_provider.ex | gozego/ex_oauth2_provider | d3a7658d28233dda2dfdef7ed397b5b440a2f737 | [
"Unlicense",
"MIT"
] | 2 | 2021-04-25T20:59:53.000Z | 2021-07-13T22:49:20.000Z | lib/mix/tasks/ex_oauth2_provider.ex | gozego/ex_oauth2_provider | d3a7658d28233dda2dfdef7ed397b5b440a2f737 | [
"Unlicense",
"MIT"
] | null | null | null | lib/mix/tasks/ex_oauth2_provider.ex | gozego/ex_oauth2_provider | d3a7658d28233dda2dfdef7ed397b5b440a2f737 | [
"Unlicense",
"MIT"
] | null | null | null | defmodule Mix.Tasks.ExOauth2Provider do
use Mix.Task
@shortdoc "Prints ExOauth2Provider help information"
@moduledoc """
Prints ExOauth2Provider tasks and their information.
mix ex_oauth2_provider
"""
@doc false
def run(args) do
{_opts, args, _} = OptionParser.parse(args)
args
|> val... | 28.137931 | 92 | 0.723039 |
2108d2e508a55665d2b853b0051ab8f343bc9d4c | 638 | ex | Elixir | lib/workbench/wallets.ex | fremantle-industries/back_office | e5aeda7abd72ccffabe5b21f26d48b5c573f9670 | [
"MIT"
] | 85 | 2020-05-03T22:23:18.000Z | 2022-02-22T14:45:37.000Z | lib/workbench/wallets.ex | fremantle-industries/workbench | 5d299c77f0271332651b4f0510265f676301a5f3 | [
"MIT"
] | 101 | 2020-04-26T03:07:51.000Z | 2022-03-27T06:17:52.000Z | lib/workbench/wallets.ex | fremantle-capital/back_office | 91474fad1bf27d913aecd6b36b898eff5d29a831 | [
"MIT"
] | 18 | 2020-04-26T10:57:55.000Z | 2022-01-26T01:50:03.000Z | defmodule Workbench.Wallets do
require Ecto.Query
import Ecto.Query
alias Workbench.{Repo, Wallet}
def search(_term, _opts \\ []) do
from(
Wallet,
order_by: [asc: :name],
select: [:id, :name, :asset, :amount, :address]
)
|> Repo.all()
end
def changeset(attrs \\ %{}) do
Wa... | 23.62963 | 81 | 0.633229 |
2108e9d43a870d7e1ef190d3631381cc4d9a23aa | 1,043 | exs | Elixir | config/config.exs | AltCampus/altstatus_backend | 70bf7a9d337e570f54002c3a7df264e88372adfa | [
"MIT"
] | 1 | 2020-01-20T18:17:59.000Z | 2020-01-20T18:17:59.000Z | config/config.exs | AltCampus/altstatus_backend | 70bf7a9d337e570f54002c3a7df264e88372adfa | [
"MIT"
] | null | null | null | config/config.exs | AltCampus/altstatus_backend | 70bf7a9d337e570f54002c3a7df264e88372adfa | [
"MIT"
] | 2 | 2018-09-09T08:05:24.000Z | 2018-09-09T08:35:18.000Z | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
#
# This configuration file is loaded before any dependency and
# is restricted to this project.
use Mix.Config
# General application configuration
config :altstatus,
ecto_repos: [Altstatus.Repo]... | 30.676471 | 86 | 0.739214 |
21094067db32f62d1b8fe60e30e29c75ff2215fa | 261 | ex | Elixir | farmbot_os/test/support/mox.ex | elbow-jason/farmbot_os | f5dfc8f58a309285ca3d441b1b7272f15315b2a9 | [
"MIT"
] | null | null | null | farmbot_os/test/support/mox.ex | elbow-jason/farmbot_os | f5dfc8f58a309285ca3d441b1b7272f15315b2a9 | [
"MIT"
] | null | null | null | farmbot_os/test/support/mox.ex | elbow-jason/farmbot_os | f5dfc8f58a309285ca3d441b1b7272f15315b2a9 | [
"MIT"
] | null | null | null | Mox.defmock(FarmbotTest.Configurator.MockDataLayer, for: FarmbotOS.Configurator.DataLayer)
Mox.defmock(FarmbotTest.Configurator.MockNetworkLayer, for: FarmbotOS.Configurator.NetworkLayer)
Mox.defmock(Avrdude.MuonTrapAdapter.Mock, for: Avrdude.MuonTrapAdapter)
| 52.2 | 96 | 0.862069 |
2109432bafc04d8bb1b890b5908faadce075fe0b | 126 | exs | Elixir | config/setup.exs | CMcDonald82/phoenix-api-auth-starter | 916db91ceba32399b8d30cc6a6e35804bc0d18b1 | [
"MIT"
] | null | null | null | config/setup.exs | CMcDonald82/phoenix-api-auth-starter | 916db91ceba32399b8d30cc6a6e35804bc0d18b1 | [
"MIT"
] | null | null | null | config/setup.exs | CMcDonald82/phoenix-api-auth-starter | 916db91ceba32399b8d30cc6a6e35804bc0d18b1 | [
"MIT"
] | null | null | null | use Mix.Config
config :phoenix_api_auth_starter, Mix.Tasks.Setup,
name: "NewApp",
otp_name: "new_app",
git_reinit: true | 21 | 50 | 0.746032 |
210945581893e189a582bb0a4361e34963e3d59c | 41,602 | ex | Elixir | lib/ecto/type.ex | Nitrodist/ecto | bfdca5ae8745af06940c46a55a9220cb83c5d97e | [
"Apache-2.0"
] | null | null | null | lib/ecto/type.ex | Nitrodist/ecto | bfdca5ae8745af06940c46a55a9220cb83c5d97e | [
"Apache-2.0"
] | null | null | null | lib/ecto/type.ex | Nitrodist/ecto | bfdca5ae8745af06940c46a55a9220cb83c5d97e | [
"Apache-2.0"
] | null | null | null | defmodule Ecto.Type do
@moduledoc """
Defines functions and the `Ecto.Type` behaviour for implementing
custom types.
A custom type expects 4 functions to be implemented, all documented
and described below. We also provide two examples of how custom
types can be used in Ecto to augment existing types or pro... | 30.256 | 124 | 0.627734 |
21096222782d10eff865052b61c763398f4eb487 | 943 | ex | Elixir | lib/excommerce_web/workflows/update_quantity_in_cart.ex | roger120981/planet | a662006551d11427c08cf6cdbacd37d377bcd9c5 | [
"MIT"
] | 1 | 2019-04-01T19:14:16.000Z | 2019-04-01T19:14:16.000Z | lib/excommerce_web/workflows/update_quantity_in_cart.ex | roger120981/planet | a662006551d11427c08cf6cdbacd37d377bcd9c5 | [
"MIT"
] | null | null | null | lib/excommerce_web/workflows/update_quantity_in_cart.ex | roger120981/planet | a662006551d11427c08cf6cdbacd37d377bcd9c5 | [
"MIT"
] | 1 | 2019-03-24T01:50:48.000Z | 2019-03-24T01:50:48.000Z | defmodule ExcommerceWeb.Workflow.UpdateQuantityInCart do
alias Ecto.Multi
def run(repo, line_item, variant, quantity),
do: repo.transaction(steps(line_item, variant, quantity))
def steps(line_item, variant, quantity) do
changeset = line_item_update_quantity_changeset(line_item, quantity)
requested_... | 31.433333 | 114 | 0.753977 |
2109636513337db3f5e4bd029f0760da26fb6078 | 69 | exs | Elixir | test/test_helper.exs | binarypaladin/commissar | d0d0b54f059949481d95be13037957b62fe94cd7 | [
"MIT"
] | null | null | null | test/test_helper.exs | binarypaladin/commissar | d0d0b54f059949481d95be13037957b62fe94cd7 | [
"MIT"
] | null | null | null | test/test_helper.exs | binarypaladin/commissar | d0d0b54f059949481d95be13037957b62fe94cd7 | [
"MIT"
] | null | null | null | ExUnit.start()
Code.require_file("support/authorizers.exs", __DIR__)
| 23 | 53 | 0.797101 |
21097c82ee5b459497fc017d76ffa6a14bbbe1c7 | 843 | ex | Elixir | lib/turbo_html/views/search_input_view.ex | drnikon/turbo_html | 12e69abb6dc66d09c6a4332f037c75f126ad222b | [
"MIT"
] | 4 | 2019-01-23T14:10:31.000Z | 2019-05-14T15:41:11.000Z | lib/turbo_html/views/search_input_view.ex | drnikon/turbo_html | 12e69abb6dc66d09c6a4332f037c75f126ad222b | [
"MIT"
] | 35 | 2019-02-19T02:11:33.000Z | 2021-09-01T07:09:42.000Z | lib/turbo_html/views/search_input_view.ex | drnikon/turbo_html | 12e69abb6dc66d09c6a4332f037c75f126ad222b | [
"MIT"
] | 4 | 2019-11-03T16:11:39.000Z | 2022-03-05T14:34:23.000Z | defmodule Turbo.HTML.Views.SearchInputView do
@moduledoc false
use Phoenix.HTML
@param_regex ~r{q\[([\S]+)\]}
@doc """
"""
@spec search_input(Map.t(), String.t(), Keyword.t()) :: any
def search_input(conn, field, opts) do
@param_regex
|> Regex.run(field)
|> do_search_input(conn, field, opts... | 23.416667 | 91 | 0.62159 |
21098ddbb78da73e38c6b3e06fa0c8a2253a5b7d | 92 | exs | Elixir | test/ex_jagaimo_blog_web/views/page_view_test.exs | JasonTrue/ex_jagaimo_blog | e90e2dfe67971e009f3fafb9b4a06dd3bc92ffb9 | [
"MIT"
] | 1 | 2021-06-19T04:19:06.000Z | 2021-06-19T04:19:06.000Z | test/ex_jagaimo_blog_web/views/page_view_test.exs | JasonTrue/ex_jagaimo_blog | e90e2dfe67971e009f3fafb9b4a06dd3bc92ffb9 | [
"MIT"
] | 1 | 2021-06-19T04:21:52.000Z | 2021-06-19T04:21:52.000Z | test/ex_jagaimo_blog_web/views/page_view_test.exs | JasonTrue/ex_jagaimo_blog | e90e2dfe67971e009f3fafb9b4a06dd3bc92ffb9 | [
"MIT"
] | null | null | null | defmodule ExJagaimoBlogWeb.PageViewTest do
use ExJagaimoBlogWeb.ConnCase, async: true
end
| 23 | 44 | 0.847826 |
2109dad723a24528747f14f3a52506abcbac9cc0 | 1,776 | ex | Elixir | clients/tag_manager/lib/google_api/tag_manager/v2/model/revert_template_response.ex | MechimCook/elixir-google-api | 0240ede69ec77115076724d223f9d1f849ff1d6b | [
"Apache-2.0"
] | null | null | null | clients/tag_manager/lib/google_api/tag_manager/v2/model/revert_template_response.ex | MechimCook/elixir-google-api | 0240ede69ec77115076724d223f9d1f849ff1d6b | [
"Apache-2.0"
] | null | null | null | clients/tag_manager/lib/google_api/tag_manager/v2/model/revert_template_response.ex | MechimCook/elixir-google-api | 0240ede69ec77115076724d223f9d1f849ff1d6b | [
"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... | 37 | 254 | 0.765203 |
2109fa26c28f11a844432ca462ebe257695c98b9 | 4,938 | exs | Elixir | test/joken_test.exs | polvalente/joken | bccf3c6d203afd3611437af8369b2b87a5be24a0 | [
"Apache-2.0"
] | null | null | null | test/joken_test.exs | polvalente/joken | bccf3c6d203afd3611437af8369b2b87a5be24a0 | [
"Apache-2.0"
] | null | null | null | test/joken_test.exs | polvalente/joken | bccf3c6d203afd3611437af8369b2b87a5be24a0 | [
"Apache-2.0"
] | null | null | null | defmodule JokenTest do
use ExUnit.Case, async: true
import ExUnit.CaptureLog
import Joken.Config, only: [add_claim: 4, add_claim: 5, default_claims: 1]
alias Joken.CurrentTime.Mock
setup do
{:ok, _pid} = start_supervised(Mock)
:ok
end
defmodule EmptyToken do
use Joken.Config
def token_c... | 29.927273 | 103 | 0.592953 |
210a2ae981398384c55e43cf2bd415d214dcafea | 5,773 | ex | Elixir | lib/jot.ex | lpil/jot | d4d0b3852db54a7e5c201c8a68ffa7894b2f0d42 | [
"MIT"
] | 1 | 2016-08-20T14:41:55.000Z | 2016-08-20T14:41:55.000Z | lib/jot.ex | lpil/jot | d4d0b3852db54a7e5c201c8a68ffa7894b2f0d42 | [
"MIT"
] | 26 | 2016-05-29T00:29:33.000Z | 2018-04-12T13:53:50.000Z | lib/jot.ex | lpil/jot | d4d0b3852db54a7e5c201c8a68ffa7894b2f0d42 | [
"MIT"
] | null | null | null | defmodule Jot do
@moduledoc ~S"""
Jot is a fast and minimal template engine influenced by Pug and Slim.<br>
It's also slightly more fun than HTML.
Here's what it looks like.
html(lang="en")
head
title Jot
body
h1#question Why?
.col
p Because this... | 28.865 | 83 | 0.632254 |
210a3e960e984cfb1201f6bebe08414491899ce9 | 9,492 | ex | Elixir | lib/sanbase/clickhouse/metric/sql_query/metric_sql_query.ex | santiment/sanbase2 | 9ef6e2dd1e377744a6d2bba570ea6bd477a1db31 | [
"MIT"
] | 81 | 2017-11-20T01:20:22.000Z | 2022-03-05T12:04:25.000Z | lib/sanbase/clickhouse/metric/sql_query/metric_sql_query.ex | santiment/sanbase2 | 9ef6e2dd1e377744a6d2bba570ea6bd477a1db31 | [
"MIT"
] | 359 | 2017-10-15T14:40:53.000Z | 2022-01-25T13:34:20.000Z | lib/sanbase/clickhouse/metric/sql_query/metric_sql_query.ex | santiment/sanbase2 | 9ef6e2dd1e377744a6d2bba570ea6bd477a1db31 | [
"MIT"
] | 16 | 2017-11-19T13:57:40.000Z | 2022-02-07T08:13:02.000Z | defmodule Sanbase.Clickhouse.MetricAdapter.SqlQuery do
@table "daily_metrics_v2"
@moduledoc ~s"""
Define the SQL queries to access to the v2 metrics in Clickhouse
The metrics are stored in the '#{@table}' clickhouse table where each metric
is defined by a `metric_id` and every project is defined by an `asse... | 27.275862 | 100 | 0.626528 |
210a720e70ff3a338fff3c4e5fa4442fd08614dc | 1,603 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/service_account.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/service_account.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/service_account.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 31.431373 | 111 | 0.72801 |
210a8394748de265693edff0c6116607727667ef | 2,404 | ex | Elixir | clients/policy_troubleshooter/lib/google_api/policy_troubleshooter/v1/model/google_rpc_status.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/policy_troubleshooter/lib/google_api/policy_troubleshooter/v1/model/google_rpc_status.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/policy_troubleshooter/lib/google_api/policy_troubleshooter/v1/model/google_rpc_status.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 45.358491 | 427 | 0.728369 |
210a870c3bf0d7bab00a45061c5216dda8805815 | 77 | ex | Elixir | lib/react_phonenix/repo.ex | KazuCocoa/react_phoenix | 7cd2fe0bdcddf8a0fdd876517232893783bf21e5 | [
"MIT"
] | null | null | null | lib/react_phonenix/repo.ex | KazuCocoa/react_phoenix | 7cd2fe0bdcddf8a0fdd876517232893783bf21e5 | [
"MIT"
] | null | null | null | lib/react_phonenix/repo.ex | KazuCocoa/react_phoenix | 7cd2fe0bdcddf8a0fdd876517232893783bf21e5 | [
"MIT"
] | null | null | null | defmodule ReactPhoenix.Repo do
use Ecto.Repo, otp_app: :react_phonenix
end
| 19.25 | 41 | 0.805195 |
210a980bc5822ab79352f4fba590078e7efb6a0b | 1,632 | exs | Elixir | mix.exs | GleisonAndrade/easiest_api | d30298974fbd0d2538ba25ab1a43e125ea4cf6bf | [
"Apache-2.0"
] | null | null | null | mix.exs | GleisonAndrade/easiest_api | d30298974fbd0d2538ba25ab1a43e125ea4cf6bf | [
"Apache-2.0"
] | null | null | null | mix.exs | GleisonAndrade/easiest_api | d30298974fbd0d2538ba25ab1a43e125ea4cf6bf | [
"Apache-2.0"
] | null | null | null | defmodule EasiestApp.MixProject do
use Mix.Project
def project do
[
app: :easiest,
version: "0.1.0",
elixir: "~> 1.5",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix, :gettext] ++ Mix.compilers(),
start_permanent: Mix.env() == :prod,
aliases: aliases(),
... | 25.904762 | 79 | 0.575368 |
210aaa3ad63039053486774fe9ff907c3316eb23 | 201 | ex | Elixir | lib/backpack/transliterator.ex | imranismail/backpack | b6c51a4d700c21b6b0e67fcb425bfd76ce15077c | [
"MIT"
] | 2 | 2017-09-03T15:16:19.000Z | 2018-02-07T02:25:10.000Z | lib/backpack/transliterator.ex | imranismail/backpack.ex | b6c51a4d700c21b6b0e67fcb425bfd76ce15077c | [
"MIT"
] | null | null | null | lib/backpack/transliterator.ex | imranismail/backpack.ex | b6c51a4d700c21b6b0e67fcb425bfd76ce15077c | [
"MIT"
] | null | null | null | defmodule Backpack.Transliterator do
@available_transliterations %{}
@default Backpack.Transliterator.Default
def get(lang) do
Map.get(@available_transliterations, lang, @default)
end
end
| 22.333333 | 56 | 0.776119 |
210acae20371901ced36e54a516a9e39b7b8fae3 | 274 | exs | Elixir | priv/repo/migrations/20210322144120_create_requests.exs | N-Patarov/bgsite_official | 9ed082dd8c6c5dbc83e0bc50ec63095a72ee2854 | [
"Apache-2.0"
] | 1 | 2021-08-05T12:44:37.000Z | 2021-08-05T12:44:37.000Z | priv/repo/migrations/20210322144120_create_requests.exs | N-Patarov/bgsite_official | 9ed082dd8c6c5dbc83e0bc50ec63095a72ee2854 | [
"Apache-2.0"
] | 16 | 2021-02-20T19:22:45.000Z | 2021-06-14T13:59:01.000Z | priv/repo/migrations/20210322144120_create_requests.exs | N-Patarov/bgsite_official | 9ed082dd8c6c5dbc83e0bc50ec63095a72ee2854 | [
"Apache-2.0"
] | 3 | 2021-05-17T17:54:43.000Z | 2021-11-03T15:30:30.000Z | defmodule BgsiteOfficial.Repo.Migrations.CreateRequests do
use Ecto.Migration
def change do
create table(:requests) do
add :name, :string
add :email, :string
add :url, :string
add :description, :string
timestamps()
end
end
end
| 17.125 | 58 | 0.653285 |
210aefb577816b5acdc880757a06ec6dcc06958f | 2,389 | ex | Elixir | clients/service_control/lib/google_api/service_control/v2/model/api.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/service_control/lib/google_api/service_control/v2/model/api.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/service_control/lib/google_api/service_control/v2/model/api.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... | 42.660714 | 255 | 0.712432 |
210b0c3eb432879d16f2244698b72b9a36fe1771 | 1,262 | ex | Elixir | lib/json_to_elixir_web/channels/user_socket.ex | chengyin/json-to-elixir | 896cdc685aac7b0b0bdbdc730b5816f69b169bd5 | [
"BSD-3-Clause"
] | 1 | 2020-01-19T17:52:05.000Z | 2020-01-19T17:52:05.000Z | lib/json_to_elixir_web/channels/user_socket.ex | chengyin/json-to-elixir | 896cdc685aac7b0b0bdbdc730b5816f69b169bd5 | [
"BSD-3-Clause"
] | null | null | null | lib/json_to_elixir_web/channels/user_socket.ex | chengyin/json-to-elixir | 896cdc685aac7b0b0bdbdc730b5816f69b169bd5 | [
"BSD-3-Clause"
] | null | null | null | defmodule JSONToElixirWeb.UserSocket do
use Phoenix.Socket
## Channels
# channel "room:*", JSONToElixirWeb.RoomChannel
channel "formatter", JSONToElixirWeb.FormatterChannel
## Transports
transport(:websocket, Phoenix.Transports.WebSocket, timeout: 30_000)
# transport :longpoll, Phoenix.Transports.LongPo... | 32.358974 | 87 | 0.713154 |
210b1c803e11096e22cf1d7ed883c08e63b40e7b | 1,016 | exs | Elixir | test/atom_tweaks_web/helpers/time_helpers_test.exs | amymariparker/atom-style-tweaks | 9f17b626e4a527d17d2da85ac575029b52fb6a25 | [
"MIT"
] | 14 | 2017-01-08T14:51:25.000Z | 2022-03-14T09:23:17.000Z | test/atom_tweaks_web/helpers/time_helpers_test.exs | amymariparker/atom-style-tweaks | 9f17b626e4a527d17d2da85ac575029b52fb6a25 | [
"MIT"
] | 654 | 2017-05-23T22:55:21.000Z | 2022-03-30T09:02:25.000Z | test/atom_tweaks_web/helpers/time_helpers_test.exs | amymariparker/atom-style-tweaks | 9f17b626e4a527d17d2da85ac575029b52fb6a25 | [
"MIT"
] | 4 | 2019-07-10T23:09:25.000Z | 2020-02-09T12:14:00.000Z | defmodule AtomTweaksWeb.TimeHelpersTest do
use AtomTweaksWeb.HelperCase
import AtomTweaksWeb.TimeHelpers
@doc """
Ensures that there is a fractional second component no matter what time it is when the tests are
executed.
"""
def ensure_nonzero_microseconds(time = %{microsecond: {0, _}}) do
%{time | ... | 26.736842 | 98 | 0.692913 |
210b1fbb542554bc0fb3855856a99b58165bf8b5 | 10,406 | ex | Elixir | lib/mix/tasks/compile/boundary.ex | gshaw/boundary | bbaf1952075044b0abe926237edd120dde62eae4 | [
"MIT"
] | null | null | null | lib/mix/tasks/compile/boundary.ex | gshaw/boundary | bbaf1952075044b0abe926237edd120dde62eae4 | [
"MIT"
] | null | null | null | lib/mix/tasks/compile/boundary.ex | gshaw/boundary | bbaf1952075044b0abe926237edd120dde62eae4 | [
"MIT"
] | null | null | null | defmodule Mix.Tasks.Compile.Boundary do
# credo:disable-for-this-file Credo.Check.Readability.Specs
use Boundary, classify_to: Boundary.Mix
use Mix.Task.Compiler
alias Boundary.Mix.Xref
@moduledoc """
Verifies cross-module function calls according to defined boundaries.
This compiler reports all cross-... | 30.516129 | 126 | 0.667788 |
210b2486e8052b570a92cb7718594e311977e328 | 45 | ex | Elixir | testData/org/elixir_lang/parser_definition/eol_to_whitespace/At.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/eol_to_whitespace/At.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/eol_to_whitespace/At.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 145 | 2015-01-15T11:37:16.000Z | 2021-12-22T05:51:02.000Z | defmodule A do
@
one :two
@
one
end
| 5.625 | 14 | 0.533333 |
210b40987b51b57a836a31c4226f4127792a6ff9 | 2,041 | ex | Elixir | clients/vm_migration/lib/google_api/vm_migration/v1/model/vm_utilization_info.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/vm_migration/lib/google_api/vm_migration/v1/model/vm_utilization_info.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/vm_migration/lib/google_api/vm_migration/v1/model/vm_utilization_info.ex | dazuma/elixir-google-api | 6a9897168008efe07a6081d2326735fe332e522c | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 38.509434 | 158 | 0.734934 |
210b4e4ce68bffa9274301df723ddb6ce49056d9 | 3,949 | ex | Elixir | priv/templates/coh.gen.controllers/controllers/coherence/unlock_controller.ex | lorenzosinisi/coherence | 956b6b7412951f452386cc5861d5cc5c7896be04 | [
"MIT"
] | null | null | null | priv/templates/coh.gen.controllers/controllers/coherence/unlock_controller.ex | lorenzosinisi/coherence | 956b6b7412951f452386cc5861d5cc5c7896be04 | [
"MIT"
] | null | null | null | priv/templates/coh.gen.controllers/controllers/coherence/unlock_controller.ex | lorenzosinisi/coherence | 956b6b7412951f452386cc5861d5cc5c7896be04 | [
"MIT"
] | 1 | 2019-09-11T10:21:21.000Z | 2019-09-11T10:21:21.000Z | defmodule <%= web_base %>.Coherence.UnlockController do
@moduledoc """
Handle unlock_with_token actions.
This controller provides the ability generate an unlock token, send
the user an email and unlocking the account with a valid token.
Basic locking and unlocking does not use this controller.
"""
use C... | 31.094488 | 127 | 0.655609 |
210b750eafa7cca45cc794e942d482d4c9548659 | 7,068 | exs | Elixir | daniel/pragstudio/servy/test/handler_test.exs | jdashton/glowing-succotash | 44580c2d4cb300e33156d42e358e8a055948a079 | [
"MIT"
] | null | null | null | daniel/pragstudio/servy/test/handler_test.exs | jdashton/glowing-succotash | 44580c2d4cb300e33156d42e358e8a055948a079 | [
"MIT"
] | 1 | 2020-02-26T14:55:23.000Z | 2020-02-26T14:55:23.000Z | daniel/pragstudio/servy/test/handler_test.exs | jdashton/glowing-succotash | 44580c2d4cb300e33156d42e358e8a055948a079 | [
"MIT"
] | null | null | null | defmodule HandlerTest do
use ExUnit.Case, async: true
import Servy.Handler, only: [handle: 1]
test "GET /wildthings" do
request = """
GET /wildthings HTTP/1.1\r
Host: example.com\r
User-Agent: ExampleBrowser/1.0\r
Accept: */*\r
\r
"""
response = handle(request)
assert respo... | 22.0875 | 131 | 0.532117 |
210bf057e1c209a2f74fc7a33972f53fec984216 | 65 | ex | Elixir | lib/oauth_xyz_web/views/layout_view.ex | ritou/elixir-oauth-xyz | 110d4eadb16fa5c106ae0f6fad49c0424bdbf477 | [
"MIT"
] | 2 | 2020-04-22T13:22:25.000Z | 2020-12-01T12:01:30.000Z | lib/oauth_xyz_web/views/layout_view.ex | ritou/elixir-oauth-xyz | 110d4eadb16fa5c106ae0f6fad49c0424bdbf477 | [
"MIT"
] | 3 | 2019-12-05T01:32:09.000Z | 2019-12-09T01:15:32.000Z | lib/oauth_xyz_web/views/layout_view.ex | ritou/elixir-oauth-xyz-web | 110d4eadb16fa5c106ae0f6fad49c0424bdbf477 | [
"MIT"
] | null | null | null | defmodule OAuthXYZWeb.LayoutView do
use OAuthXYZWeb, :view
end
| 16.25 | 35 | 0.815385 |
210bf627b1d7b0ee5da65a3f92ac4a6834a3e392 | 3,792 | ex | Elixir | lib/ex_rabbit_m_q/config/session.ex | dennisxtria/exrabbitmq | 50705c5f42daedd6ce465662dd752f8c2f6895b2 | [
"MIT"
] | null | null | null | lib/ex_rabbit_m_q/config/session.ex | dennisxtria/exrabbitmq | 50705c5f42daedd6ce465662dd752f8c2f6895b2 | [
"MIT"
] | null | null | null | lib/ex_rabbit_m_q/config/session.ex | dennisxtria/exrabbitmq | 50705c5f42daedd6ce465662dd752f8c2f6895b2 | [
"MIT"
] | null | null | null | defmodule ExRabbitMQ.Config.Session do
@moduledoc """
A structure holding the necessary information about a queue that is to be consumed.
#### Queue configuration example:
```elixir
# :queue is this queue's configuration name
config :exrabbitmq, :my_session_config,
# name of the queue from which we w... | 29.625 | 98 | 0.652954 |
210bfdb49a9e53d2ad58711dd18e450c67e2d1f0 | 1,595 | exs | Elixir | mix.exs | drobertduke/ninescraft | 00a08e4f3433b1ffd8f0a8dc77927d043b4e3ce8 | [
"Apache-2.0"
] | null | null | null | mix.exs | drobertduke/ninescraft | 00a08e4f3433b1ffd8f0a8dc77927d043b4e3ce8 | [
"Apache-2.0"
] | null | null | null | mix.exs | drobertduke/ninescraft | 00a08e4f3433b1ffd8f0a8dc77927d043b4e3ce8 | [
"Apache-2.0"
] | null | null | null | defmodule Ninescraft.Mixfile do
use Mix.Project
def project do
[
app: :ninescraft,
version: "0.0.1",
elixir: "~> 1.4",
elixirc_paths: elixirc_paths(Mix.env),
compilers: [:phoenix, :gettext] ++ Mix.compilers,
start_permanent: Mix.env == :prod,
aliases: aliases(),
... | 26.147541 | 79 | 0.586207 |
210c472b343f3b4405a68cf77b22080647961a03 | 789 | ex | Elixir | lib/hex_flora/herbarium/vegetation_type.ex | palm86/hex_flora | 26dc95f948763507b4d7cb643d98696936b45e07 | [
"CC-BY-3.0"
] | null | null | null | lib/hex_flora/herbarium/vegetation_type.ex | palm86/hex_flora | 26dc95f948763507b4d7cb643d98696936b45e07 | [
"CC-BY-3.0"
] | 8 | 2021-06-04T18:50:28.000Z | 2021-08-08T19:43:46.000Z | lib/hex_flora/herbarium/vegetation_type.ex | palm86/hex_flora | 26dc95f948763507b4d7cb643d98696936b45e07 | [
"CC-BY-3.0"
] | null | null | null | defmodule HexFlora.Herbarium.VegetationType do
defmodule Builder do
@enforce_keys [:id, :name, :has_image?, :body]
defstruct [:id, :name, :has_image?, :body]
def build(filename, attrs, body) do
id = filename |> Path.basename() |> Path.rootname()
struct!(__MODULE__, [id: id, body: body] ++ Map... | 28.178571 | 72 | 0.673004 |
210c5db767bf707791129db0595b9c8741ecaac4 | 4,188 | exs | Elixir | elixir/test/homework/users_test.exs | simmons-hayden/web-homework | de9e339f2c6e5c082ea1b3f14aeb54caf03752f1 | [
"MIT"
] | null | null | null | elixir/test/homework/users_test.exs | simmons-hayden/web-homework | de9e339f2c6e5c082ea1b3f14aeb54caf03752f1 | [
"MIT"
] | null | null | null | elixir/test/homework/users_test.exs | simmons-hayden/web-homework | de9e339f2c6e5c082ea1b3f14aeb54caf03752f1 | [
"MIT"
] | null | null | null | defmodule Homework.UsersTest do
use Homework.DataCase
alias Homework.Users
alias Homework.Companies
describe "users" do
alias Homework.Users.User
setup do
{:ok, company} = Companies.create_company(%{name: "company", credit_line: 1000000, available_credit: 1000000})
{:ok,
%{
... | 39.509434 | 116 | 0.661175 |
210c699e578d09c49e9f39714d66c91da424c7cc | 7,359 | exs | Elixir | .credo.exs | jshmrtn/zitadel_api | 10601b7382df92a4c8f2a3ad1e083634dcaf6243 | [
"Apache-2.0"
] | 3 | 2020-11-11T15:24:21.000Z | 2022-02-04T20:40:36.000Z | .credo.exs | jshmrtn/zitadel_api | 10601b7382df92a4c8f2a3ad1e083634dcaf6243 | [
"Apache-2.0"
] | 2 | 2020-11-11T15:15:36.000Z | 2020-11-11T15:19:00.000Z | .credo.exs | jshmrtn/zitadel_api | 10601b7382df92a4c8f2a3ad1e083634dcaf6243 | [
"Apache-2.0"
] | null | null | null | # This file contains the configuration for Credo and you are probably reading
# this after creating it with `mix credo.gen.config`.
#
# If you find anything wrong or unclear in this file, please report an
# issue on GitHub: https://github.com/rrrene/credo/issues
#
%{
#
# You can have as many configs as you like in ... | 38.731579 | 97 | 0.612447 |
210c9b2a0514c4f6de2b059b8cd8e6eac720f4fd | 1,267 | exs | Elixir | test/sanbase_web/graphql/projects/project_api_project_signals_test.exs | santiment/sanbase2 | 9ef6e2dd1e377744a6d2bba570ea6bd477a1db31 | [
"MIT"
] | 81 | 2017-11-20T01:20:22.000Z | 2022-03-05T12:04:25.000Z | test/sanbase_web/graphql/projects/project_api_project_signals_test.exs | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | 359 | 2017-10-15T14:40:53.000Z | 2022-01-25T13:34:20.000Z | test/sanbase_web/graphql/projects/project_api_project_signals_test.exs | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | 16 | 2017-11-19T13:57:40.000Z | 2022-02-07T08:13:02.000Z | defmodule SanbaseWeb.Graphql.Clickhouse.ProjectApiProjectSignalsTest do
use SanbaseWeb.ConnCase, async: false
import Sanbase.Factory
import SanbaseWeb.Graphql.TestHelpers
alias Sanbase.Signal
setup do
%{user: user} = insert(:subscription_pro_sanbase, user: insert(:user))
conn = setup_jwt_auth(build... | 22.22807 | 74 | 0.655091 |
210cb39f5a19e28f8ea92200644254f747229c53 | 566 | exs | Elixir | mix.exs | karlosmid/wahh | dd44aeee465f81d4a863f278d75506715ccf8c79 | [
"MIT"
] | null | null | null | mix.exs | karlosmid/wahh | dd44aeee465f81d4a863f278d75506715ccf8c79 | [
"MIT"
] | null | null | null | mix.exs | karlosmid/wahh | dd44aeee465f81d4a863f278d75506715ccf8c79 | [
"MIT"
] | 1 | 2020-03-09T19:27:13.000Z | 2020-03-09T19:27:13.000Z | defmodule Wahh.MixProject do
use Mix.Project
def project do
[
app: :wahh,
version: "0.1.0",
elixir: "~> 1.7",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applicati... | 19.517241 | 88 | 0.570671 |
210ce8df59ea17ac0543ed350443f7ac9633eba8 | 1,506 | ex | Elixir | web/controllers/regex_controller.ex | rob05c/tox | f54847ca058ad24b909341ad65d595a4069d2471 | [
"Apache-2.0"
] | 2 | 2016-11-16T17:24:21.000Z | 2019-02-15T05:38:27.000Z | web/controllers/regex_controller.ex | rob05c/tox | f54847ca058ad24b909341ad65d595a4069d2471 | [
"Apache-2.0"
] | null | null | null | web/controllers/regex_controller.ex | rob05c/tox | f54847ca058ad24b909341ad65d595a4069d2471 | [
"Apache-2.0"
] | null | null | null | defmodule Tox.RegexController do
use Tox.Web, :controller
alias Tox.Regex
def index(conn, _params) do
regexes = Repo.all(Regex)
render(conn, "index.json", regexes: regexes)
end
def create(conn, %{"regex" => regex_params}) do
changeset = Regex.changeset(%Regex{}, regex_params)
case Repo.ins... | 26.892857 | 72 | 0.61089 |
210d2cb4dc0b312514568997bd511d88f2befff1 | 2,487 | ex | Elixir | lib/tradehub/tx/create_order.ex | anhmv/tradehub-api-elixir | 6ec87c2b07188d4140506011e2b28db4d372ac6d | [
"MIT"
] | 5 | 2021-05-04T16:54:25.000Z | 2021-12-15T06:53:24.000Z | lib/tradehub/tx/create_order.ex | anhmv/tradehub-api-elixir | 6ec87c2b07188d4140506011e2b28db4d372ac6d | [
"MIT"
] | 5 | 2021-05-19T04:49:00.000Z | 2021-06-01T13:36:50.000Z | lib/tradehub/tx/create_order.ex | anhmv/tradehub-elixir | 6ec87c2b07188d4140506011e2b28db4d372ac6d | [
"MIT"
] | null | null | null | defmodule Tradehub.Tx.CreateOrder do
@moduledoc """
The payload message of the `order/CreateOrder` private endpoint.
"""
use Tradehub.Tx.Type
alias Tradehub.Tx.MsgInvalid
@typedoc "The shopping side of the order."
@type side :: :buy | :sell
@typedoc "Order types supported by the Tradehub"
@type(ord... | 29.258824 | 100 | 0.617209 |
210d3b5fbca6a9477a36c428f206514c61c5e62d | 2,104 | exs | Elixir | test/google_apis/api_config_test.exs | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | test/google_apis/api_config_test.exs | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | test/google_apis/api_config_test.exs | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | 31.402985 | 92 | 0.718631 |
210d3ea408812249212aa32463447f43a0c6bd03 | 81 | ex | Elixir | example_app/web/views/session_view.ex | jespr/noegle | e14953085d38384c80993dd750aa85202db11418 | [
"MIT"
] | null | null | null | example_app/web/views/session_view.ex | jespr/noegle | e14953085d38384c80993dd750aa85202db11418 | [
"MIT"
] | 1 | 2017-05-08T15:09:09.000Z | 2017-05-10T06:05:24.000Z | example_app/web/views/session_view.ex | jespr/noegle | e14953085d38384c80993dd750aa85202db11418 | [
"MIT"
] | null | null | null | defmodule NoegleExampleApp.SessionView do
use NoegleExampleApp.Web, :view
end
| 16.2 | 41 | 0.82716 |
210d6dff0645d25b525f681a7cf1f4e224c313dc | 1,892 | ex | Elixir | lib/honeydew/sources/ecto/sql/postgres.ex | giodamelio/honeydew | cf4bd8404bba1c66f56d0dd9a6a24f1c1443912a | [
"MIT"
] | null | null | null | lib/honeydew/sources/ecto/sql/postgres.ex | giodamelio/honeydew | cf4bd8404bba1c66f56d0dd9a6a24f1c1443912a | [
"MIT"
] | null | null | null | lib/honeydew/sources/ecto/sql/postgres.ex | giodamelio/honeydew | cf4bd8404bba1c66f56d0dd9a6a24f1c1443912a | [
"MIT"
] | null | null | null | if Code.ensure_loaded?(Ecto) do
defmodule Honeydew.EctoSource.SQL.Postgres do
alias Honeydew.EctoSource
alias Honeydew.EctoSource.SQL
@behaviour SQL
@impl true
def integer_type do
:bigint
end
@impl true
def ready do
SQL.far_in_the_past()
|> time_in_msecs
|> ... | 25.567568 | 124 | 0.614693 |
210d81fbd8f1b933b3019afb2c6af51bcfc41baf | 562 | exs | Elixir | test/views/error_view_test.exs | avval-alumni/alumni_book | 17b27da849919312a332aaa3b39ce5c65032f2b4 | [
"MIT"
] | null | null | null | test/views/error_view_test.exs | avval-alumni/alumni_book | 17b27da849919312a332aaa3b39ce5c65032f2b4 | [
"MIT"
] | null | null | null | test/views/error_view_test.exs | avval-alumni/alumni_book | 17b27da849919312a332aaa3b39ce5c65032f2b4 | [
"MIT"
] | null | null | null | defmodule AlumniBook.ErrorViewTest do
use AlumniBookWeb.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(AlumniBookWeb.ErrorView, "404.html", []) == "Page not found"
end
test "render 500.html"... | 29.578947 | 95 | 0.731317 |
210d98e6c530a1cb7aaa3bea2ed941b1fd65a2c0 | 7,036 | ex | Elixir | lib/mime.ex | rogelio2k/mime | 617d683b0ba4ef5c310929018df66852a4e954b4 | [
"Apache-2.0"
] | null | null | null | lib/mime.ex | rogelio2k/mime | 617d683b0ba4ef5c310929018df66852a4e954b4 | [
"Apache-2.0"
] | null | null | null | lib/mime.ex | rogelio2k/mime | 617d683b0ba4ef5c310929018df66852a4e954b4 | [
"Apache-2.0"
] | null | null | null | defmodule MIME do
@moduledoc """
Maps MIME types to its file extensions and vice versa.
MIME types can be extended in your application configuration
as follows:
config :mime, :types, %{
"application/vnd.api+json" => ["json-api"]
}
After adding the configuration, MIME needs to be recompi... | 27.592157 | 92 | 0.5722 |
210dc68667a2e552376561566dbf2bcf0cb156ea | 1,106 | ex | Elixir | lib/offer_hunters_web/channels/user_socket.ex | Ryandls/offer_hunters-backend | abedff162d8623e2fbaa4c5e4a518f1726bef436 | [
"MIT"
] | 3 | 2021-10-01T21:13:02.000Z | 2021-11-05T22:25:55.000Z | lib/offer_hunters_web/channels/user_socket.ex | Ryandls/offer_hunters-backend | abedff162d8623e2fbaa4c5e4a518f1726bef436 | [
"MIT"
] | null | null | null | lib/offer_hunters_web/channels/user_socket.ex | Ryandls/offer_hunters-backend | abedff162d8623e2fbaa4c5e4a518f1726bef436 | [
"MIT"
] | null | null | null | defmodule OfferHuntersWeb.UserSocket do
use Phoenix.Socket
## Channels
# channel "room:*", OfferHuntersWeb.RoomChannel
# Socket params are passed from the client and can
# be used to verify and authenticate a user. After
# verification, you can put default assigns into
# the socket that will be set for ... | 30.722222 | 87 | 0.698915 |
210dfe8af2590c62f12fbcc0516be61701ec6dfb | 805 | ex | Elixir | lib/eql/ast/prop.ex | naramore/janus | 90f7324c5ed667b803472dc89ee8e84d82c1d6d2 | [
"MIT"
] | null | null | null | lib/eql/ast/prop.ex | naramore/janus | 90f7324c5ed667b803472dc89ee8e84d82c1d6d2 | [
"MIT"
] | null | null | null | lib/eql/ast/prop.ex | naramore/janus | 90f7324c5ed667b803472dc89ee8e84d82c1d6d2 | [
"MIT"
] | null | null | null | defmodule EQL.AST.Prop do
@moduledoc false
@behaviour EQL.Expression
defstruct module: nil,
key: nil
@type t :: %__MODULE__{
module: module,
key: atom
}
@type expr :: {module, atom}
@spec new(module, atom) :: t
def new(module, key) do
%__MODULE__{
mod... | 17.5 | 98 | 0.586335 |
210e1136b8168cf11a14177033dd949b1bd42da1 | 1,170 | exs | Elixir | exercise_2.33.exs | bschmeck/sicp-elixir | 4e6f959f506d0cb4e2692177cbdad1c87779cf7d | [
"MIT"
] | 2 | 2019-08-26T13:17:27.000Z | 2020-09-24T13:16:07.000Z | exercise_2.33.exs | bschmeck/sicp-elixir | 4e6f959f506d0cb4e2692177cbdad1c87779cf7d | [
"MIT"
] | null | null | null | exercise_2.33.exs | bschmeck/sicp-elixir | 4e6f959f506d0cb4e2692177cbdad1c87779cf7d | [
"MIT"
] | null | null | null | defmodule Accumulate do
def accum(_op, init, []), do: init
def accum(op, init, [head | tail]), do: op.(head, accum(op, init, tail))
end
ExUnit.start
defmodule ListManipulations do
use ExUnit.Case, async: true
test "implementing map" do
map = fn(p, sequence) -> Accumulate.accum(&([p.(&1) | &2]), [], seque... | 27.857143 | 89 | 0.584615 |
210e1c094b698fa12d7cb80e409dd8f3f7322112 | 613 | exs | Elixir | config/test.exs | nipierre/ex_step_flow | 4345ee57bd4e5eb79138df68d10579ba1b9ec6a1 | [
"MIT"
] | null | null | null | config/test.exs | nipierre/ex_step_flow | 4345ee57bd4e5eb79138df68d10579ba1b9ec6a1 | [
"MIT"
] | null | null | null | config/test.exs | nipierre/ex_step_flow | 4345ee57bd4e5eb79138df68d10579ba1b9ec6a1 | [
"MIT"
] | null | null | null | use Mix.Config
config :logger, :console, format: "[$level] $message\n"
config :logger, level: :error
config :plug, :validate_header_keys_during_test, true
config :step_flow, StepFlow,
workers_work_directory: "/test_work_dir",
workflow_definition: "./test/definitions"
config :step_flow, StepFlow.Repo,
hostname... | 22.703704 | 55 | 0.722675 |
210e2836f4868c460e2d6187a1f7f97529d3b40a | 1,199 | exs | Elixir | mix.exs | felt/geo | a63a84a3d402ba201502e57e3787c59fd9ea3518 | [
"MIT"
] | null | null | null | mix.exs | felt/geo | a63a84a3d402ba201502e57e3787c59fd9ea3518 | [
"MIT"
] | null | null | null | mix.exs | felt/geo | a63a84a3d402ba201502e57e3787c59fd9ea3518 | [
"MIT"
] | null | null | null | defmodule Geo.Mixfile do
use Mix.Project
@source_url "https://github.com/bryanjos/geo"
@version "3.4.2"
def project do
[
app: :geo,
version: @version,
elixir: "~> 1.6",
deps: deps(),
description: description(),
package: package(),
docs: docs(),
name: "Geo"
... | 19.983333 | 61 | 0.542952 |
210e5d6fa4b9f3edba4d30413825d6eb8bd5ed68 | 1,159 | exs | Elixir | rustler_mix/mix.exs | BurntCaramel/rustler | 9ece1e1da22f1a99383c04302549d6a5cd6abe34 | [
"Apache-2.0",
"MIT"
] | null | null | null | rustler_mix/mix.exs | BurntCaramel/rustler | 9ece1e1da22f1a99383c04302549d6a5cd6abe34 | [
"Apache-2.0",
"MIT"
] | null | null | null | rustler_mix/mix.exs | BurntCaramel/rustler | 9ece1e1da22f1a99383c04302549d6a5cd6abe34 | [
"Apache-2.0",
"MIT"
] | null | null | null | defmodule Rustler.Mixfile do
use Mix.Project
def project do
[
app: :rustler,
# rustler_mix version
version: "0.21.0",
elixir: "~> 1.6",
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
name: "Rustler Mix",
source_url: "https://github.com/r... | 22.288462 | 90 | 0.559965 |
210e7b3a21bc9d2872161b687ae5e3617cabc444 | 1,527 | ex | Elixir | lib/docdog/editor/policies/project_policy.ex | sobolevn/docdog-engine | 5f7ad60465063fac3d56574f2bf27a4a52d0a91e | [
"MIT"
] | null | null | null | lib/docdog/editor/policies/project_policy.ex | sobolevn/docdog-engine | 5f7ad60465063fac3d56574f2bf27a4a52d0a91e | [
"MIT"
] | null | null | null | lib/docdog/editor/policies/project_policy.ex | sobolevn/docdog-engine | 5f7ad60465063fac3d56574f2bf27a4a52d0a91e | [
"MIT"
] | null | null | null | defmodule Docdog.Editor.Policies.ProjectPolicy do
@behaviour Bodyguard.Policy
alias Docdog.Editor.Project
alias Docdog.Accounts.User
# Admin users can do anything
def authorize(_, %User{admin: true}, _), do: true
# Regular users can craete projects
def authorize(:create, _, _), do: true
# Every auth... | 33.195652 | 122 | 0.709234 |
210e8bce27a85beb5c4dc969f79a5dc5aa05652d | 603 | exs | Elixir | test/matchalert/web/views/error_view_test.exs | troelsim/matchalert | 9379796b3046e0ce28674432568f9cb5b01aab6f | [
"Apache-2.0"
] | null | null | null | test/matchalert/web/views/error_view_test.exs | troelsim/matchalert | 9379796b3046e0ce28674432568f9cb5b01aab6f | [
"Apache-2.0"
] | null | null | null | test/matchalert/web/views/error_view_test.exs | troelsim/matchalert | 9379796b3046e0ce28674432568f9cb5b01aab6f | [
"Apache-2.0"
] | null | null | null | defmodule Matchalert.Web.ErrorViewTest do
use Matchalert.Web.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(Matchalert.Web.ErrorView, "404.html", []) ==
"Page not found"
end
test ... | 27.409091 | 72 | 0.686567 |
210ec07f33eec507c46f8d93de7a778d052552d9 | 1,542 | ex | Elixir | lib/messaging/android_message/config.ex | hippware/firebase-admin-ex | bca6f83a8ae94a7fdb0a447030913d03ea170bb1 | [
"MIT"
] | null | null | null | lib/messaging/android_message/config.ex | hippware/firebase-admin-ex | bca6f83a8ae94a7fdb0a447030913d03ea170bb1 | [
"MIT"
] | null | null | null | lib/messaging/android_message/config.ex | hippware/firebase-admin-ex | bca6f83a8ae94a7fdb0a447030913d03ea170bb1 | [
"MIT"
] | null | null | null | defmodule FirebaseAdminEx.Messaging.AndroidMessage.Config do
@moduledoc """
This module is responsible for representing the
attributes of AndroidMessage.Config.
"""
alias FirebaseAdminEx.Messaging.AndroidMessage.Notification
@keys [
collapse_key: "",
priority: "normal",
ttl: "",
restricted... | 26.135593 | 84 | 0.63489 |
210ed09b81b37747f738b521a3bb9bf5898f5c7e | 267 | exs | Elixir | config/test.exs | vjebelev/sse_demo | 2987ca57bd18fee11a179e9e75d114aa9b28feb9 | [
"MIT"
] | null | null | null | config/test.exs | vjebelev/sse_demo | 2987ca57bd18fee11a179e9e75d114aa9b28feb9 | [
"MIT"
] | null | null | null | config/test.exs | vjebelev/sse_demo | 2987ca57bd18fee11a179e9e75d114aa9b28feb9 | [
"MIT"
] | null | null | null | use Mix.Config
# We don't run a server during test. If one is required,
# you can enable the server option below.
config :sse_demo, SseDemoWeb.Endpoint,
http: [port: 4002],
server: false
# Print only warnings and errors during test
config :logger, level: :warn
| 24.272727 | 56 | 0.737828 |
210edf9a8ab7e1da00862a8aa6a484c6158cef37 | 2,294 | ex | Elixir | clients/speech/lib/google_api/speech/v1/model/status.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/speech/lib/google_api/speech/v1/model/status.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/speech/lib/google_api/speech/v1/model/status.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... | 43.283019 | 427 | 0.719268 |
210ee2782d31b3e3f3b05e85d94a1f895baabf4d | 822 | exs | Elixir | test/suite/draft6/min_length_test.exs | depressed-pho/xema | 56de4a5d3b3f37827c70f6052f895c59feb0bb51 | [
"MIT"
] | null | null | null | test/suite/draft6/min_length_test.exs | depressed-pho/xema | 56de4a5d3b3f37827c70f6052f895c59feb0bb51 | [
"MIT"
] | null | null | null | test/suite/draft6/min_length_test.exs | depressed-pho/xema | 56de4a5d3b3f37827c70f6052f895c59feb0bb51 | [
"MIT"
] | null | null | null | defmodule Draft6.MinLengthTest do
use ExUnit.Case, async: true
import Xema, only: [valid?: 2]
describe "minLength validation" do
setup do
%{schema: Xema.new(min_length: 2)}
end
test "longer is valid", %{schema: schema} do
data = "foo"
assert valid?(schema, data)
end
test ... | 21.076923 | 70 | 0.596107 |
210efcc307f408ad256c611efa3559b3c1c20d9e | 548 | ex | Elixir | lib/groupher_server/statistics/delegates/geo.ex | coderplanets/coderplanets_server | 3663e56340d6d050e974c91f7e499d8424fc25e9 | [
"Apache-2.0"
] | 240 | 2018-11-06T09:36:54.000Z | 2022-02-20T07:12:36.000Z | lib/groupher_server/statistics/delegates/geo.ex | coderplanets/coderplanets_server | 3663e56340d6d050e974c91f7e499d8424fc25e9 | [
"Apache-2.0"
] | 363 | 2018-07-11T03:38:14.000Z | 2021-12-14T01:42:40.000Z | lib/groupher_server/statistics/delegates/geo.ex | mydearxym/mastani_server | f24034a4a5449200165cf4a547964a0961793eab | [
"Apache-2.0"
] | 22 | 2019-01-27T11:47:56.000Z | 2021-02-28T13:17:52.000Z | defmodule GroupherServer.Statistics.Delegate.Geo do
@moduledoc """
geo info settings
"""
import Ecto.Query, warn: false
import Helper.Utils
import ShortMaps
alias GroupherServer.Statistics.Model.UserGeoInfo
alias Helper.ORM
def inc_count(city) do
with {:ok, geo_info} <- UserGeoInfo |> ORM.find_b... | 21.92 | 68 | 0.669708 |
210efeda8e35feab3fa80d7c372ace5aef17468b | 1,062 | ex | Elixir | turtle_pose_phoenix/lib/turtle_pose_phoenix/application.ex | rclex/rclex_examples | 1ad49e9d917c015161992836ad8d4e8d028615da | [
"Apache-2.0"
] | null | null | null | turtle_pose_phoenix/lib/turtle_pose_phoenix/application.ex | rclex/rclex_examples | 1ad49e9d917c015161992836ad8d4e8d028615da | [
"Apache-2.0"
] | 4 | 2022-01-25T00:53:34.000Z | 2022-03-26T15:28:18.000Z | turtle_pose_phoenix/lib/turtle_pose_phoenix/application.ex | rclex/rclex_examples | 1ad49e9d917c015161992836ad8d4e8d028615da | [
"Apache-2.0"
] | null | null | null | defmodule TurtlePosePhoenix.Application do
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
use Application
@impl true
def start(_type, _args) do
children = [
# Start the Telemetry supervisor
TurtlePosePhoenixWeb.Telemetry,
... | 30.342857 | 75 | 0.72693 |
210eff15e686d7be00ba4a527eb0402655196e35 | 4,548 | ex | Elixir | lib/dqs/command/as.ex | chun37/dqs | 143f8bf87d1b3022f3344ac5023797677f7a44a9 | [
"MIT"
] | 6 | 2021-03-17T13:38:27.000Z | 2021-05-09T04:01:08.000Z | lib/dqs/command/as.ex | chun37/dqs | 143f8bf87d1b3022f3344ac5023797677f7a44a9 | [
"MIT"
] | 12 | 2021-03-21T14:44:11.000Z | 2021-07-31T09:35:00.000Z | lib/dqs/command/as.ex | chun37/dqs | 143f8bf87d1b3022f3344ac5023797677f7a44a9 | [
"MIT"
] | 3 | 2021-04-11T11:08:59.000Z | 2021-11-02T15:36:04.000Z | defmodule Dqs.Command.As do
alias Dqs.Repo
import Ecto.Query
alias Dqs.Cache
@prefix Application.get_env(:dqs, :prefix)
@board_channel_id Application.get_env(:dqs, :board_channel_id)
def handle(%{content: @prefix <> "as " <> _} = msg) do
if Regex.match?(~r/#{@prefix}as (?<id>[0-9]+) (?<command>.+)/, ... | 33.688889 | 99 | 0.651935 |
210f04b99d30e61709e7e798c22a8622b6f3d3f7 | 2,207 | ex | Elixir | clients/spanner/lib/google_api/spanner/v1/model/create_database_request.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/spanner/lib/google_api/spanner/v1/model/create_database_request.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/spanner/lib/google_api/spanner/v1/model/create_database_request.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 ... | 38.719298 | 137 | 0.727232 |
210f315e5ce0877e9afd30e796166ea8145c7a8a | 1,932 | ex | Elixir | lib/mix/tasks/gen.migration.ex | gingman/shopifex | c9a1977c5d50ccd738c59a095b855ee36c93161a | [
"Apache-2.0"
] | 61 | 2020-05-27T01:33:39.000Z | 2022-03-30T20:46:02.000Z | lib/mix/tasks/gen.migration.ex | gingman/shopifex | c9a1977c5d50ccd738c59a095b855ee36c93161a | [
"Apache-2.0"
] | 18 | 2020-05-29T21:43:45.000Z | 2022-03-30T17:02:54.000Z | lib/mix/tasks/gen.migration.ex | gingman/shopifex | c9a1977c5d50ccd738c59a095b855ee36c93161a | [
"Apache-2.0"
] | 21 | 2020-06-14T17:02:56.000Z | 2022-01-08T18:54:51.000Z | defmodule Mix.Tasks.Shopifex.Gen.Migration do
@shortdoc "Generates Shopifex migration file"
@moduledoc """
Generates migration file.
mix shopifex.gen.migrations -r MyApp.Repo
mix shopifex.gen.migrations -r MyApp.Repo --namespace shopify_app
This generator will add the shopifex migration file in `pr... | 32.745763 | 83 | 0.708075 |
210f36dc0518e1cb40624a3ffa068c6bcc040d6b | 503 | exs | Elixir | config/test.exs | leobessa/exchess | 289819d183f3001dddf56810c36298fa669c3a06 | [
"MIT"
] | 3 | 2017-06-02T20:47:07.000Z | 2018-05-25T11:17:12.000Z | config/test.exs | leobessa/exchess | 289819d183f3001dddf56810c36298fa669c3a06 | [
"MIT"
] | null | null | null | config/test.exs | leobessa/exchess | 289819d183f3001dddf56810c36298fa669c3a06 | [
"MIT"
] | null | null | null | use Mix.Config
# We don't run a server during test. If one is required,
# you can enable the server option below.
config :chess_app, ChessApp.Web.Endpoint,
http: [port: 4001],
server: false
# Print only warnings and errors during test
config :logger, level: :info
# Configure your database
config :chess_app, Ches... | 25.15 | 56 | 0.737575 |
210f4a0e40526dd873a5059bbe907f425d4c1c53 | 545 | ex | Elixir | lib/phoenix13_base_web/router.ex | pgrunwald/phoenix13_base | 9c9ae51f9fda5dc86ffd33b860d1524f8d585e19 | [
"MIT"
] | 1 | 2019-03-28T05:47:46.000Z | 2019-03-28T05:47:46.000Z | lib/phoenix13_base_web/router.ex | pgrunwald/phoenix13_base | 9c9ae51f9fda5dc86ffd33b860d1524f8d585e19 | [
"MIT"
] | null | null | null | lib/phoenix13_base_web/router.ex | pgrunwald/phoenix13_base | 9c9ae51f9fda5dc86ffd33b860d1524f8d585e19 | [
"MIT"
] | null | null | null | defmodule Phoenix13BaseWeb.Router do
use Phoenix13BaseWeb, :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 "/", Phoenix13Ba... | 20.185185 | 57 | 0.693578 |
210f59e956c8ef7f90198bceec8413d4e3243d7e | 4,172 | ex | Elixir | lib/bgsite_official/accounts/admin_token.ex | N-Patarov/bgsite_official | 9ed082dd8c6c5dbc83e0bc50ec63095a72ee2854 | [
"Apache-2.0"
] | 1 | 2021-08-05T12:44:37.000Z | 2021-08-05T12:44:37.000Z | lib/bgsite_official/accounts/admin_token.ex | N-Patarov/bgsite_official | 9ed082dd8c6c5dbc83e0bc50ec63095a72ee2854 | [
"Apache-2.0"
] | 16 | 2021-02-20T19:22:45.000Z | 2021-06-14T13:59:01.000Z | lib/bgsite_official/accounts/admin_token.ex | N-Patarov/bgsite_official | 9ed082dd8c6c5dbc83e0bc50ec63095a72ee2854 | [
"Apache-2.0"
] | 3 | 2021-05-17T17:54:43.000Z | 2021-11-03T15:30:30.000Z | defmodule BgsiteOfficial.Accounts.AdminToken do
use Ecto.Schema
import Ecto.Query
@hash_algorithm :sha256
@rand_size 32
# It is very important to keep the reset password token expiry short,
# since someone with access to the email may take over the account.
@reset_password_validity_in_days 1
@confirm_... | 29.8 | 107 | 0.69559 |
210faf31f145b0367e7b9f22c1d4e9fa52dc86a5 | 1,021 | ex | Elixir | lib/wechat_mp_auth/dummy_client.ex | he9qi/wechat_mp_auth | 307e5ffb2214f9aca3fb230c302852b1216ce0c3 | [
"MIT"
] | 21 | 2016-05-12T17:06:29.000Z | 2018-01-14T14:44:21.000Z | lib/wechat_mp_auth/dummy_client.ex | he9qi/wechat_mp_auth | 307e5ffb2214f9aca3fb230c302852b1216ce0c3 | [
"MIT"
] | 3 | 2016-05-12T06:11:30.000Z | 2016-10-12T04:59:09.000Z | lib/wechat_mp_auth/dummy_client.ex | he9qi/wechat_mp_auth | 307e5ffb2214f9aca3fb230c302852b1216ce0c3 | [
"MIT"
] | 1 | 2017-11-30T01:55:17.000Z | 2017-11-30T01:55:17.000Z | defmodule WechatMPAuth.DummyClient do
@component_access_token "component-access-token-1234"
@authorizer_access_token "authorizer-access-token-1234"
@verify_ticket "ticket@@123"
@refresh_token "refreshtoken@@@12345"
@auth_code "auth_code12345"
@a_app_id "wxabcde"
def get_authorize_url(%WechatMPAu... | 30.939394 | 119 | 0.714006 |
210ff4c52fb597bddddd05f4a86422080083027b | 285 | exs | Elixir | config/config.exs | konstantinzolotarev/hitbtc | 40d6e5eeb0e7636c018d4ce12d11f91f81a96425 | [
"MIT"
] | 1 | 2019-04-26T08:28:49.000Z | 2019-04-26T08:28:49.000Z | config/config.exs | konstantinzolotarev/hitbtc | 40d6e5eeb0e7636c018d4ce12d11f91f81a96425 | [
"MIT"
] | null | null | null | config/config.exs | konstantinzolotarev/hitbtc | 40d6e5eeb0e7636c018d4ce12d11f91f81a96425 | [
"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 :hitbtc, api_url: "https://api.hitbtc.com/api/2"
# config :hitbtc, api_key: "api-key-here"
# config :hitbtc, api_secret: "api-secret-here"
| 31.666667 | 61 | 0.750877 |
21100122f52e935c88a1224ee2829b03c00df7e4 | 551 | exs | Elixir | test/list_filter_test.exs | cassiofariasmachado/list-filter | 7734014b916a8c54ede2141a41d2733ee4c23906 | [
"MIT"
] | 1 | 2021-03-13T00:07:56.000Z | 2021-03-13T00:07:56.000Z | test/list_filter_test.exs | cassiofariasmachado/list-filter | 7734014b916a8c54ede2141a41d2733ee4c23906 | [
"MIT"
] | null | null | null | test/list_filter_test.exs | cassiofariasmachado/list-filter | 7734014b916a8c54ede2141a41d2733ee4c23906 | [
"MIT"
] | null | null | null | defmodule ListFilterTest do
use ExUnit.Case
describe "call/1" do
test "returns the count of odd numbers of the list" do
list = ["1", "3", "6", "43", "banana", "6", "abc"]
odd_count = ListFilter.call(list)
expected_count = 3
assert expected_count == odd_count
end
test "returns... | 22.958333 | 65 | 0.611615 |
21102482300d210d4fc71b90d4ede41353fafa9f | 2,664 | ex | Elixir | lib/cadet_web/router.ex | Hou-Rui/cadet | f9036d76005bf3b267b632dce176067ae1a19f71 | [
"Apache-2.0"
] | null | null | null | lib/cadet_web/router.ex | Hou-Rui/cadet | f9036d76005bf3b267b632dce176067ae1a19f71 | [
"Apache-2.0"
] | null | null | null | lib/cadet_web/router.ex | Hou-Rui/cadet | f9036d76005bf3b267b632dce176067ae1a19f71 | [
"Apache-2.0"
] | null | null | null | defmodule CadetWeb.Router do
use CadetWeb, :router
pipeline :api do
plug(:accepts, ["json"])
plug(:fetch_session)
plug(:put_secure_browser_headers)
end
pipeline :auth do
plug(Cadet.Auth.Pipeline)
plug(CadetWeb.Plug.AssignCurrentUser)
end
pipeline :ensure_auth do
plug(Guardian.Plug... | 27.183673 | 94 | 0.661036 |
21102613a236cb535e8f24d0b74ce1760e5a841c | 206 | exs | Elixir | priv/repo/migrations/20170126181918_create_project.exs | llxff/projects_statistics | 343508fc8fc8e9238a546f5230fff50e21126417 | [
"Unlicense"
] | null | null | null | priv/repo/migrations/20170126181918_create_project.exs | llxff/projects_statistics | 343508fc8fc8e9238a546f5230fff50e21126417 | [
"Unlicense"
] | null | null | null | priv/repo/migrations/20170126181918_create_project.exs | llxff/projects_statistics | 343508fc8fc8e9238a546f5230fff50e21126417 | [
"Unlicense"
] | null | null | null | defmodule ProjectsStatistics.Repo.Migrations.CreateProject do
use Ecto.Migration
def change do
create table(:projects) do
add :name, :string
add :description, :string
end
end
end
| 18.727273 | 61 | 0.708738 |
21103433c259bcab01c81ef44a89e4f8f545377b | 209 | ex | Elixir | lib/ex_clubhouse/model/story_stats.ex | pootsbook/exclubhouse | 3b93cded0124e4e5df489db4f9262a560595bb8e | [
"MIT"
] | 4 | 2020-03-17T00:42:10.000Z | 2021-04-11T16:39:52.000Z | lib/ex_clubhouse/model/story_stats.ex | pootsbook/exclubhouse | 3b93cded0124e4e5df489db4f9262a560595bb8e | [
"MIT"
] | 7 | 2020-03-21T20:22:13.000Z | 2021-12-30T16:32:07.000Z | lib/ex_clubhouse/model/story_stats.ex | pootsbook/exclubhouse | 3b93cded0124e4e5df489db4f9262a560595bb8e | [
"MIT"
] | 4 | 2020-03-25T18:34:49.000Z | 2021-09-13T16:44:00.000Z | defmodule ExClubhouse.Model.StoryStats do
@moduledoc """
Story stats model
"""
@type t :: %__MODULE__{
num_related_documents: integer()
}
defstruct num_related_documents: nil
end
| 17.416667 | 42 | 0.669856 |
21103b9a28a2e3ef9978c31301a30fd460254afd | 1,391 | exs | Elixir | mix.exs | eriosv/samly | e5d2c53b0819426286c5abcb75e68f4ada35a549 | [
"MIT"
] | null | null | null | mix.exs | eriosv/samly | e5d2c53b0819426286c5abcb75e68f4ada35a549 | [
"MIT"
] | null | null | null | mix.exs | eriosv/samly | e5d2c53b0819426286c5abcb75e68f4ada35a549 | [
"MIT"
] | null | null | null | defmodule Samly.Mixfile do
use Mix.Project
@version "1.0.0"
@description "SAML Single-Sign-On Authentication for Plug/Phoenix Applications"
@source_url "https://github.com/handnot2/samly"
@blog_url "https://handnot2.github.io/blog/auth/saml-auth-for-phoenix"
def project() do
[
app: :samly,
... | 22.803279 | 81 | 0.553559 |
21103fc2ffce5afb6642c73c321259e87eebd776 | 1,425 | exs | Elixir | apps/astarte_realm_management_api/config/config.exs | Annopaolo/astarte | f8190e8bf044759a9b84bdeb5786a55b6f793a4f | [
"Apache-2.0"
] | 191 | 2018-03-30T13:23:08.000Z | 2022-03-02T12:05:32.000Z | apps/astarte_realm_management_api/config/config.exs | Annopaolo/astarte | f8190e8bf044759a9b84bdeb5786a55b6f793a4f | [
"Apache-2.0"
] | 402 | 2018-03-30T13:37:00.000Z | 2022-03-31T16:47:10.000Z | apps/astarte_realm_management_api/config/config.exs | Annopaolo/astarte | f8190e8bf044759a9b84bdeb5786a55b6f793a4f | [
"Apache-2.0"
] | 24 | 2018-03-30T13:29:48.000Z | 2022-02-28T11:10:26.000Z | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
#
# This configuration file is loaded before any dependency and
# is restricted to this project.
use Mix.Config
# lager is used by rabbit_common.
# Silent it by setting the higher loglevel.
config ... | 36.538462 | 98 | 0.779649 |
211056cf19fe38bff9ec7ff6a62578beac3eb500 | 323 | ex | Elixir | lib/game/status.ex | riguelbf/exmongame | a2a7e0a702928bc0464b118afe05d27435e25dcb | [
"MIT"
] | null | null | null | lib/game/status.ex | riguelbf/exmongame | a2a7e0a702928bc0464b118afe05d27435e25dcb | [
"MIT"
] | null | null | null | lib/game/status.ex | riguelbf/exmongame | a2a7e0a702928bc0464b118afe05d27435e25dcb | [
"MIT"
] | null | null | null | defmodule ExMon.Game.Status do
alias ExMon.Game
def print_round_message() do
IO.puts("\n===== The game is started =====\n")
IO.inspect(Game.info())
IO.puts("\n-------------------------------\n")
end
def print_wring_move_message(move) do
IO.puts("\n===== Invalid move: #{move}. =====\n")
end
e... | 23.071429 | 53 | 0.551084 |
211062bf5e10e31cc53089d8abada0ae683b815b | 23,783 | ex | Elixir | lib/faker/airports.ex | joshillian/faker | eeede9d7c35c543dcf6abe72dc476e755c80415b | [
"MIT"
] | 540 | 2015-01-05T16:31:49.000Z | 2019-09-25T00:40:27.000Z | lib/faker/airports.ex | joshillian/faker | eeede9d7c35c543dcf6abe72dc476e755c80415b | [
"MIT"
] | 172 | 2015-01-06T03:55:17.000Z | 2019-10-03T12:58:02.000Z | lib/faker/airports.ex | joshillian/faker | eeede9d7c35c543dcf6abe72dc476e755c80415b | [
"MIT"
] | 163 | 2015-01-05T21:24:54.000Z | 2019-10-03T07:59:42.000Z | defmodule Faker.Airports do
import Faker, only: [sampler: 2, localize: 1]
@moduledoc """
Functions for generating airports related data
"""
@doc """
Returns a random ICAO
## Examples
iex> Faker.Airports.icao()
"SNOS"
iex> Faker.Airports.icao()
"UNBG"
iex> Faker.Airports.i... | 11.618466 | 48 | 0.312576 |
211068351bc86be564c9c9aeb19164073968c4cd | 2,237 | exs | Elixir | mix.exs | carakan/ex_admin | c286a0b66c1c0e81c896b71915c7066f66fc94c2 | [
"MIT"
] | null | null | null | mix.exs | carakan/ex_admin | c286a0b66c1c0e81c896b71915c7066f66fc94c2 | [
"MIT"
] | null | null | null | mix.exs | carakan/ex_admin | c286a0b66c1c0e81c896b71915c7066f66fc94c2 | [
"MIT"
] | null | null | null | defmodule ExAdmin.Mixfile do
use Mix.Project
@version "0.9.0-dev"
def project do
[
app: :ex_admin,
version: @version,
elixir: "~> 1.3",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix, :gettext] ++ Mix.compilers(),
build_embedded: Mix.env() == :prod,
s... | 24.053763 | 97 | 0.508717 |
2110a8a826e7eb3388d9e48c3e1b54723db22fc0 | 23,323 | exs | Elixir | lib/elixir/test/elixir/kernel/warning_test.exs | BlakeWilliams/elixir | f77cc2657cf981fdf819915f1ee15e69c3cd91ad | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/kernel/warning_test.exs | BlakeWilliams/elixir | f77cc2657cf981fdf819915f1ee15e69c3cd91ad | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/kernel/warning_test.exs | BlakeWilliams/elixir | f77cc2657cf981fdf819915f1ee15e69c3cd91ad | [
"Apache-2.0"
] | null | null | null | Code.require_file("../test_helper.exs", __DIR__)
defmodule Kernel.WarningTest do
use ExUnit.Case
import ExUnit.CaptureIO
defp capture_err(fun) do
capture_io(:stderr, fun)
end
test "unused variable" do
output =
capture_err(fn ->
Code.eval_string("""
defmodule Sample do
... | 25.799779 | 119 | 0.486387 |
2110a8cec8e47156803988986ac8d1ed225ce35b | 1,674 | ex | Elixir | lib/makeup/styles/html/pygments/emacs.ex | kipcole9/makeup | dff1bd2e3d6b2938138ebaea5771821bf7c4e45a | [
"BSD-2-Clause"
] | 13 | 2018-09-19T21:03:29.000Z | 2022-01-27T04:06:32.000Z | deps/makeup/lib/makeup/styles/html/pygments/emacs.ex | mwindholtz/limbo | 84da57c72ddb2f1dd78bf2992410268c5ad1b2d4 | [
"Apache-2.0"
] | 1 | 2020-05-26T04:16:57.000Z | 2020-05-26T04:16:57.000Z | deps/makeup/lib/makeup/styles/html/pygments/emacs.ex | mwindholtz/limbo | 84da57c72ddb2f1dd78bf2992410268c5ad1b2d4 | [
"Apache-2.0"
] | 3 | 2020-05-21T04:32:08.000Z | 2021-07-28T05:14:01.000Z |
defmodule Makeup.Styles.HTML.EmacsStyle do
@moduledoc false
@styles %{
:error => "border:#FF0000",
:keyword => "bold #AA22FF",
:keyword_pseudo => "nobold",
:keyword_type => "bold #00BB00",
:name_attribute => "#BB4444",
:name_builtin => "#AA22FF",
:name_class => "#0000FF",
:name_con... | 27.9 | 42 | 0.596177 |
2110d5bcf16e1817efd02528fcab3484a157c859 | 167,911 | ex | Elixir | clients/notebooks/lib/google_api/notebooks/v1/api/projects.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/notebooks/lib/google_api/notebooks/v1/api/projects.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/notebooks/lib/google_api/notebooks/v1/api/projects.ex | dazuma/elixir-google-api | 6a9897168008efe07a6081d2326735fe332e522c | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 43.749609 | 607 | 0.604666 |
2110dfa7909036d31bfdf647cb632bdd0fa1251b | 188 | exs | Elixir | config/test.exs | blake-education/exbuf_plug | 41f7d124294578273d5638e111ed38be0a4fa2e9 | [
"MIT"
] | 1 | 2018-02-14T07:33:41.000Z | 2018-02-14T07:33:41.000Z | config/test.exs | blake-education/exbuf_plug | 41f7d124294578273d5638e111ed38be0a4fa2e9 | [
"MIT"
] | 1 | 2019-02-19T22:56:13.000Z | 2019-02-19T22:56:13.000Z | config/test.exs | blake-education/exbuf_plug | 41f7d124294578273d5638e111ed38be0a4fa2e9 | [
"MIT"
] | null | null | null | use Mix.Config
config :exbuf_plug, ExbufPlug, %{
list: [
"TestEvent",
"BiggerTestEvent"
],
namespace: "ExbufPlug",
module_name: "Protobufs",
header_name: "x-protobuf"
}
| 15.666667 | 33 | 0.654255 |
2110e357bfdee1857459507227a7f7a7ea8a539a | 1,197 | exs | Elixir | discuss/config/prod.secret.exs | hiroshisiq/elixir-sandbox | 3f014d2f15ae1eeda1c22db30ef111cbc22e9afc | [
"MIT"
] | null | null | null | discuss/config/prod.secret.exs | hiroshisiq/elixir-sandbox | 3f014d2f15ae1eeda1c22db30ef111cbc22e9afc | [
"MIT"
] | null | null | null | discuss/config/prod.secret.exs | hiroshisiq/elixir-sandbox | 3f014d2f15ae1eeda1c22db30ef111cbc22e9afc | [
"MIT"
] | null | null | null | # In this file, we load production configuration and secrets
# from environment variables. You can also hardcode secrets,
# although such is generally not recommended and you have to
# remember to add this file to your .gitignore.
use Mix.Config
database_url =
System.get_env("DATABASE_URL") ||
raise """
envi... | 30.692308 | 76 | 0.724311 |
21110522af1720f8c53a99205d80037c03eb4833 | 1,511 | ex | Elixir | clients/app_engine/lib/google_api/app_engine/v1/model/empty.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/app_engine/lib/google_api/app_engine/v1/model/empty.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/app_engine/lib/google_api/app_engine/v1/model/empty.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... | 35.97619 | 341 | 0.757776 |
21112d0a5e7499904f5ed4e2b563d29df5708623 | 1,043 | ex | Elixir | apps/exquisitle/lib/runtime/server.ex | ricardoebbers/exquisitle | 69367f56aae110e4efbd1960bc49b8d049a7de89 | [
"MIT"
] | null | null | null | apps/exquisitle/lib/runtime/server.ex | ricardoebbers/exquisitle | 69367f56aae110e4efbd1960bc49b8d049a7de89 | [
"MIT"
] | null | null | null | apps/exquisitle/lib/runtime/server.ex | ricardoebbers/exquisitle | 69367f56aae110e4efbd1960bc49b8d049a7de89 | [
"MIT"
] | null | null | null | defmodule Exquisitle.Runtime.Server do
alias Exquisitle.Impl.Game
alias Exquisitle.Impl.Game.Tally
alias Exquisitle.Type
use GenServer
@type t :: pid()
@spec start_link(:easy | :hard) :: {:ok, t}
def start_link(:easy) do
GenServer.start_link(__MODULE__, :easy)
end
def start_link(:hard) do
G... | 21.729167 | 55 | 0.655801 |
2111366261275cf11060b51732bbafcbec04260a | 2,067 | ex | Elixir | clients/text_to_speech/lib/google_api/text_to_speech/v1/model/voice.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/text_to_speech/lib/google_api/text_to_speech/v1/model/voice.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/text_to_speech/lib/google_api/text_to_speech/v1/model/voice.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 36.910714 | 226 | 0.700048 |
211167773375008adffd2c157a0d80d52aff3442 | 71 | exs | Elixir | test/typesense_test.exs | semagraph/typesense | 850a81a8c9db82d210a5449eec5bcd283d511987 | [
"MIT"
] | null | null | null | test/typesense_test.exs | semagraph/typesense | 850a81a8c9db82d210a5449eec5bcd283d511987 | [
"MIT"
] | null | null | null | test/typesense_test.exs | semagraph/typesense | 850a81a8c9db82d210a5449eec5bcd283d511987 | [
"MIT"
] | null | null | null | defmodule TypesenseTest do
use ExUnit.Case
#doctest Typesense
end
| 11.833333 | 26 | 0.788732 |
2111778496ac74adddadef7e4587cf9672ffaa38 | 9,833 | exs | Elixir | lib/mix/test/test_helper.exs | lanodan/elixir | 10ae66cda989f324bf76c402473fd5661a459100 | [
"Apache-2.0"
] | null | null | null | lib/mix/test/test_helper.exs | lanodan/elixir | 10ae66cda989f324bf76c402473fd5661a459100 | [
"Apache-2.0"
] | null | null | null | lib/mix/test/test_helper.exs | lanodan/elixir | 10ae66cda989f324bf76c402473fd5661a459100 | [
"Apache-2.0"
] | 1 | 2020-11-25T02:22:55.000Z | 2020-11-25T02:22:55.000Z | Mix.start()
Mix.shell(Mix.Shell.Process)
Application.put_env(:mix, :colors, enabled: false)
Logger.remove_backend(:console)
Application.put_env(:logger, :backends, [])
os_exclude = if match?({:win32, _}, :os.type()), do: [unix: true], else: [windows: true]
epmd_exclude = if match?({:win32, _}, :os.type()), do: [epmd:... | 22.449772 | 88 | 0.626564 |
2111875b20a5a27512a5af8d0b16ff9f4d35763a | 1,588 | ex | Elixir | web/models/spreedly.ex | spreedly/sample-hyperdrives | ab6d2ff055c574bfb215531d3c523242666c52d9 | [
"MIT"
] | null | null | null | web/models/spreedly.ex | spreedly/sample-hyperdrives | ab6d2ff055c574bfb215531d3c523242666c52d9 | [
"MIT"
] | null | null | null | web/models/spreedly.ex | spreedly/sample-hyperdrives | ab6d2ff055c574bfb215531d3c523242666c52d9 | [
"MIT"
] | null | null | null | defmodule Spreedly do
require Record
Record.defrecord :xmlText, Record.extract(:xmlText, from_lib: "xmerl/include/xmerl.hrl")
def purchase_on_gateway(gateway_token, payment_method_token, amount) do
url = "https://core.spreedly.com/v1/gateways/#{gateway_token}/purchase.xml"
HTTPotion.post(url, purchase_... | 27.37931 | 102 | 0.683879 |
211190c98287e3cf4959591cdc2de3e0d433ac78 | 1,913 | ex | Elixir | 19-02-02-The-Complete-Elixir-And-Phoenix-Bootcamp/05-Phoenix/discuss/web/channels/comments_channel.ex | arcyfelix/Courses | fa1336ff2295e67e03a116bba3c4fd5df653325c | [
"Apache-2.0"
] | 15 | 2017-09-19T08:09:01.000Z | 2019-04-29T00:37:51.000Z | 19-02-02-The-Complete-Elixir-And-Phoenix-Bootcamp/05-Phoenix/discuss/web/channels/comments_channel.ex | arcyfelix/Courses | fa1336ff2295e67e03a116bba3c4fd5df653325c | [
"Apache-2.0"
] | null | null | null | 19-02-02-The-Complete-Elixir-And-Phoenix-Bootcamp/05-Phoenix/discuss/web/channels/comments_channel.ex | arcyfelix/Courses | fa1336ff2295e67e03a116bba3c4fd5df653325c | [
"Apache-2.0"
] | 17 | 2018-02-27T03:15:54.000Z | 2019-04-24T09:26:46.000Z | defmodule Discuss.CommentsChannel do
use Discuss.Web, :channel
alias Discuss.{Topic, Comment}
def join(name, _params, socket) do
# Name arguments is given as "comments:topic_id"
# Pattern matching
"comments: " <> topic_id = name
# 'topic id' must be an integer
topic_id = String.to_integer(top... | 36.09434 | 71 | 0.658651 |
21119ac9109804984b7faf1f20368bb1560dddcd | 2,079 | ex | Elixir | lib/segment/sender.ex | thiamsantos/analytics-elixir | cdab0ac95d6a9effd9d092bf5747281a2429b2af | [
"MIT"
] | 131 | 2015-09-16T15:18:09.000Z | 2022-01-27T02:01:27.000Z | lib/segment/sender.ex | thiamsantos/analytics-elixir | cdab0ac95d6a9effd9d092bf5747281a2429b2af | [
"MIT"
] | 32 | 2015-11-28T01:35:04.000Z | 2021-12-15T19:48:07.000Z | lib/segment/sender.ex | thiamsantos/analytics-elixir | cdab0ac95d6a9effd9d092bf5747281a2429b2af | [
"MIT"
] | 35 | 2015-11-24T18:14:04.000Z | 2022-01-25T15:42:02.000Z | defmodule Segment.Analytics.Sender do
@moduledoc """
The `Segment.Analytics.Sender` service implementation is an alternative to the default Batcher to send every event as it is called.
The HTTP call is made with an async `Task` to not block the GenServer. This will not guarantee ordering.
The `Segment.An... | 34.65 | 144 | 0.710438 |
2111a4db83c238b68daae4e549ad38512b75c3e1 | 872 | ex | Elixir | clients/run/lib/google_api/run/v1/metadata.ex | MShaffar19/elixir-google-api | aac92cd85f423e6d08c9571ee97cf21545df163f | [
"Apache-2.0"
] | null | null | null | clients/run/lib/google_api/run/v1/metadata.ex | MShaffar19/elixir-google-api | aac92cd85f423e6d08c9571ee97cf21545df163f | [
"Apache-2.0"
] | null | null | null | clients/run/lib/google_api/run/v1/metadata.ex | MShaffar19/elixir-google-api | aac92cd85f423e6d08c9571ee97cf21545df163f | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 32.296296 | 74 | 0.755734 |
2111b3320fc0d6dc39be03bafd55501aa29e7364 | 151 | ex | Elixir | lib/live_view_demo_web/controllers/page_controller.ex | manojsamanta/codebreaker-prototype | 14d521db45784dee692de9e7252dd6a54bb793bb | [
"MIT"
] | null | null | null | lib/live_view_demo_web/controllers/page_controller.ex | manojsamanta/codebreaker-prototype | 14d521db45784dee692de9e7252dd6a54bb793bb | [
"MIT"
] | null | null | null | lib/live_view_demo_web/controllers/page_controller.ex | manojsamanta/codebreaker-prototype | 14d521db45784dee692de9e7252dd6a54bb793bb | [
"MIT"
] | null | null | null | defmodule LiveViewDemoWeb.PageController do
use LiveViewDemoWeb, :controller
def index(conn, _params) do
render(conn, "index.html")
end
end
| 18.875 | 43 | 0.754967 |
2111c1ee172b1cd761b0b11a193ba9df96f62523 | 2,735 | ex | Elixir | lib/mix/tasks/docker.ex | Batou99/mix_docker | 746048b6942a2a52686ac0658aa66d25f106d82b | [
"MIT"
] | null | null | null | lib/mix/tasks/docker.ex | Batou99/mix_docker | 746048b6942a2a52686ac0658aa66d25f106d82b | [
"MIT"
] | null | null | null | lib/mix/tasks/docker.ex | Batou99/mix_docker | 746048b6942a2a52686ac0658aa66d25f106d82b | [
"MIT"
] | 2 | 2018-12-16T00:06:42.000Z | 2019-03-01T10:31:38.000Z | defmodule Mix.Tasks.Docker.Init do
use Mix.Task
@shortdoc "Initialize distillery release"
@moduledoc """
Initialize distillery release.
Any arguments and options will be passed directly to
`mix release.init` task.
This task also create a default `.dockerignore` file.
## Examples
# Use default ... | 22.791667 | 77 | 0.700914 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.