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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e9d1754851235382773273926f005897873400bc | 151 | ex | Elixir | lib/nys_etl/backfillers.ex | RatioPBC/epi-viaduct-nys | 99fb637785ea207aee5449fa01fa59dd18ec8bf2 | [
"MIT"
] | 2 | 2021-06-22T21:01:49.000Z | 2021-11-04T18:36:48.000Z | lib/nys_etl/backfillers.ex | RatioPBC/epi-viaduct-nys | 99fb637785ea207aee5449fa01fa59dd18ec8bf2 | [
"MIT"
] | null | null | null | lib/nys_etl/backfillers.ex | RatioPBC/epi-viaduct-nys | 99fb637785ea207aee5449fa01fa59dd18ec8bf2 | [
"MIT"
] | null | null | null | defmodule NYSETL.Backfillers do
alias NYSETL.Backfillers
def backfill_files_eclrs_version(), do: Backfillers.FilesECLRSVersion.backfill_all()
end
| 25.166667 | 86 | 0.834437 |
e9d1880cc4cf0b0c43ecc4de9d58d39bff935eda | 27,855 | ex | Elixir | lib/ash/api/api.ex | MrFlorius/ash | 247abbb8333d252da5440a58ddf4f1b7f184342f | [
"MIT"
] | null | null | null | lib/ash/api/api.ex | MrFlorius/ash | 247abbb8333d252da5440a58ddf4f1b7f184342f | [
"MIT"
] | null | null | null | lib/ash/api/api.ex | MrFlorius/ash | 247abbb8333d252da5440a58ddf4f1b7f184342f | [
"MIT"
] | null | null | null | defmodule Ash.Api do
@moduledoc """
An Api allows you to interact with your resources, and holds non-resource-specific configuration.
For example, the json api extension adds an api extension that lets you toggle authorization on/off
for all resources in that Api. You include them in an Api like so:
```elix... | 29.759615 | 173 | 0.570167 |
e9d1ea2d5b93a576f2570a8e607b09bbbc4a7d9f | 4,428 | exs | Elixir | test/infer/bind_test.exs | infer-beam/infer | de8bec47635ffdcdefc2ef6ff298101c62681ae5 | [
"MIT"
] | 5 | 2022-01-24T10:08:53.000Z | 2022-03-09T10:15:14.000Z | test/infer/bind_test.exs | infer-beam/infer | de8bec47635ffdcdefc2ef6ff298101c62681ae5 | [
"MIT"
] | 1 | 2022-03-15T09:58:33.000Z | 2022-03-15T09:58:33.000Z | test/infer/bind_test.exs | infer-beam/infer | de8bec47635ffdcdefc2ef6ff298101c62681ae5 | [
"MIT"
] | 1 | 2022-02-22T11:42:25.000Z | 2022-02-22T11:42:25.000Z | defmodule Infer.BindTest do
use ExUnit.Case, async: true
alias Infer.Test.Schema.{User, List}
import Test.Support.Factories
defmodule TestStruct do
defstruct [:field]
end
defmodule ListRules do
use Infer.Rules, for: List
infer :by_author?, when: %{created_by_id: {:ref, [:args, :created_by_id... | 30.75 | 98 | 0.575655 |
e9d1fabb7607c8a9016c352fba53891ccae16a63 | 251 | ex | Elixir | lib/mix/tasks/excoverage.ex | RJSkorski/excoverage | 21aa25cb9ac61aafc9efb65f0593e07d583ddebf | [
"Apache-2.0"
] | null | null | null | lib/mix/tasks/excoverage.ex | RJSkorski/excoverage | 21aa25cb9ac61aafc9efb65f0593e07d583ddebf | [
"Apache-2.0"
] | null | null | null | lib/mix/tasks/excoverage.ex | RJSkorski/excoverage | 21aa25cb9ac61aafc9efb65f0593e07d583ddebf | [
"Apache-2.0"
] | null | null | null | defmodule Mix.Tasks.Excoverage do
@moduledoc """
Helper module for mix task
"""
@doc """
Runs a process from mix task
"""
@spec run(argv :: [binary()]) :: :ok
def run(argv) do
Excoverage.main([{:mix_task, true} | argv])
end
end
| 17.928571 | 47 | 0.609562 |
e9d2011a6b5a7ccdf24e7251b3f184c4c07533ed | 1,121 | exs | Elixir | src/hexper/config/config.exs | sylhare/Elixir | 4a5e50653fd750a282c614f9ca0b94d92fecaa9f | [
"MIT"
] | null | null | null | src/hexper/config/config.exs | sylhare/Elixir | 4a5e50653fd750a282c614f9ca0b94d92fecaa9f | [
"MIT"
] | null | null | null | src/hexper/config/config.exs | sylhare/Elixir | 4a5e50653fd750a282c614f9ca0b94d92fecaa9f | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on this project, this
# file won't be loaded nor affect the paren... | 36.16129 | 73 | 0.751115 |
e9d20dc8af5aeb285d7e05ebda0c65b8642e82e2 | 1,320 | ex | Elixir | apps/welcome2_web/lib/welcome2_web/endpoint.ex | philihp/welcome2_umbrella | f5f494b98fe4b64a3e1bbfc1b8b432aad7f8c3b2 | [
"MIT"
] | null | null | null | apps/welcome2_web/lib/welcome2_web/endpoint.ex | philihp/welcome2_umbrella | f5f494b98fe4b64a3e1bbfc1b8b432aad7f8c3b2 | [
"MIT"
] | 13 | 2020-03-22T08:00:57.000Z | 2022-03-07T16:35:36.000Z | apps/welcome2_web/lib/welcome2_web/endpoint.ex | philihp/welcome2_umbrella | f5f494b98fe4b64a3e1bbfc1b8b432aad7f8c3b2 | [
"MIT"
] | null | null | null | defmodule Welcome2Web.Endpoint do
use Phoenix.Endpoint, otp_app: :welcome2_web
socket "/socket", Welcome2Web.UserSocket,
websocket: true,
longpoll: false
# Serve at "/" the static files from "priv/static" directory.
#
# You should set gzip to true if you are running phx.digest
# when deploying you... | 28.085106 | 69 | 0.714394 |
e9d22f37407f6d304fc214a8ccda4ba0e863f2e4 | 144 | ex | Elixir | lib/ueberauth_example/repo.ex | chulkilee/ueberauth_example | 877fdb63199bf8d00bc72a72908ab2cb34b752aa | [
"MIT"
] | null | null | null | lib/ueberauth_example/repo.ex | chulkilee/ueberauth_example | 877fdb63199bf8d00bc72a72908ab2cb34b752aa | [
"MIT"
] | null | null | null | lib/ueberauth_example/repo.ex | chulkilee/ueberauth_example | 877fdb63199bf8d00bc72a72908ab2cb34b752aa | [
"MIT"
] | null | null | null | defmodule UeberauthExample.Repo do
@moduledoc false
use Ecto.Repo,
otp_app: :ueberauth_example,
adapter: Ecto.Adapters.Postgres
end
| 20.571429 | 35 | 0.763889 |
e9d2430c1f5ea22b66c277d2e594a59f2a42390c | 1,200 | ex | Elixir | lib/option_calc/Services/OptionDataCache.ex | davidgrupp/Option-Calc | 0b0e4607d827412e207d5fc5102aee001e93a821 | [
"Apache-2.0"
] | null | null | null | lib/option_calc/Services/OptionDataCache.ex | davidgrupp/Option-Calc | 0b0e4607d827412e207d5fc5102aee001e93a821 | [
"Apache-2.0"
] | null | null | null | lib/option_calc/Services/OptionDataCache.ex | davidgrupp/Option-Calc | 0b0e4607d827412e207d5fc5102aee001e93a821 | [
"Apache-2.0"
] | null | null | null | defmodule OptionCalc.Services.OptionDataCache do
@option_repo Application.get_env(:option_calc, :option_repo)
use OptionCalc.Utilities.GenDataCache, timeout: 10*60*60
def get_expirations(process, symbol) do
get_value(process, {:expirations, symbol}, fn {:expirations, symbol} -> @option_repo.read_expiratio... | 40 | 150 | 0.740833 |
e9d2639f9c9d27fa44bf60d68a46446121788ff4 | 310 | ex | Elixir | lib/sonex/player_super.ex | brousalis/sonex | 237b6e233aabb2a18a67437dbeb0126abd5316cf | [
"MIT"
] | null | null | null | lib/sonex/player_super.ex | brousalis/sonex | 237b6e233aabb2a18a67437dbeb0126abd5316cf | [
"MIT"
] | null | null | null | lib/sonex/player_super.ex | brousalis/sonex | 237b6e233aabb2a18a67437dbeb0126abd5316cf | [
"MIT"
] | 1 | 2019-10-20T18:40:01.000Z | 2019-10-20T18:40:01.000Z | defmodule Sonex.Player.Supervisor do
use Supervisor
def start_link do
Supervisor.start_link(__MODULE__, :ok, name: __MODULE__)
end
def init(:ok) do
children = [
worker(Sonex.PlayerMonitor, [], restart: :transient)
]
supervise(children, strategy: :simple_one_for_one)
end
end
| 19.375 | 60 | 0.7 |
e9d280019e019c3edce0d34fd178a0fb44118f65 | 6,691 | exs | Elixir | integration_test/sql/migrator.exs | groyoh/ecto_sql | 49a732375b928f83f29f995e874e3a580a9caeb8 | [
"Apache-2.0"
] | 1 | 2019-05-02T14:02:56.000Z | 2019-05-02T14:02:56.000Z | integration_test/sql/migrator.exs | groyoh/ecto_sql | 49a732375b928f83f29f995e874e3a580a9caeb8 | [
"Apache-2.0"
] | 1 | 2020-07-17T10:07:44.000Z | 2020-07-17T10:07:44.000Z | integration_test/sql/migrator.exs | groyoh/ecto_sql | 49a732375b928f83f29f995e874e3a580a9caeb8 | [
"Apache-2.0"
] | null | null | null | Code.require_file "../support/file_helpers.exs", __DIR__
defmodule Ecto.Integration.MigratorTest do
use Ecto.Integration.Case
import Support.FileHelpers
import ExUnit.CaptureLog
import Ecto.Migrator
alias Ecto.Integration.{TestRepo, PoolRepo}
alias Ecto.Migration.SchemaMigration
setup config do
Pr... | 27.534979 | 102 | 0.663727 |
e9d287f45b55c517f8a81b4378b448953667ace8 | 527 | ex | Elixir | lib/cauzzipay/numbers.ex | Gustavo-Cauzzi/Cauzzipay | 912b3fa13dbb920a5af242134c77d44e63c39c6f | [
"MIT"
] | 1 | 2021-05-19T01:25:54.000Z | 2021-05-19T01:25:54.000Z | lib/cauzzipay/numbers.ex | Gustavo-Cauzzi/Cauzzipay | 912b3fa13dbb920a5af242134c77d44e63c39c6f | [
"MIT"
] | null | null | null | lib/cauzzipay/numbers.ex | Gustavo-Cauzzi/Cauzzipay | 912b3fa13dbb920a5af242134c77d44e63c39c6f | [
"MIT"
] | null | null | null | defmodule Cauzzipay.Numbers do
def sum_all_numbers_from_file(filename) do
"#{filename}.csv"
|> File.read()
|> handle_file()
end
# defp = define uma função PRIVADA
defp handle_file({:ok, result}) do
result =
result
|> String.split(",")
|> Stream.map(fn number -> String.to_integ... | 23.954545 | 86 | 0.616698 |
e9d2a77e32f1afa756227cbc40fbb43744fa7d8d | 3,528 | exs | Elixir | test/mechanize/form/checkbox_test.exs | paultannenbaum/mechanize | 97fd54c0421689026c01b9bf38206fa74e8f7e1a | [
"MIT"
] | 25 | 2020-06-26T02:21:35.000Z | 2022-03-05T18:51:46.000Z | test/mechanize/form/checkbox_test.exs | paultannenbaum/mechanize | 97fd54c0421689026c01b9bf38206fa74e8f7e1a | [
"MIT"
] | 29 | 2019-07-02T21:50:06.000Z | 2020-05-28T18:34:01.000Z | test/mechanize/form/checkbox_test.exs | paultannenbaum/mechanize | 97fd54c0421689026c01b9bf38206fa74e8f7e1a | [
"MIT"
] | 4 | 2020-06-24T02:11:47.000Z | 2022-03-06T00:50:59.000Z | defmodule Mechanize.Form.CheckboxTest do
use ExUnit.Case, async: true
alias Mechanize.{Page, Form}
alias Mechanize.Form.Checkbox
alias Mechanize.Query.BadQueryError
import TestHelper
setup do
{:ok, %{page: page} = vars} = stub_requests("/test/htdocs/checkbox_test.html")
{:ok, Map.put(vars, :form, P... | 29.4 | 93 | 0.549603 |
e9d30d4b0158b3f22a12f3236aaed11dab1c4c13 | 1,524 | exs | Elixir | mix.exs | floatingpointio/delirium_tremexs | 6b7bb1918b7a8a02c4af3b7e266e30b67eba59bc | [
"MIT"
] | 4 | 2019-09-24T09:32:31.000Z | 2021-02-21T13:13:18.000Z | mix.exs | floatingpointio/delirium_tremexs | 6b7bb1918b7a8a02c4af3b7e266e30b67eba59bc | [
"MIT"
] | 2 | 2019-02-20T14:24:43.000Z | 2019-05-08T08:54:49.000Z | mix.exs | floatingpointio/delirium_tremexs | 6b7bb1918b7a8a02c4af3b7e266e30b67eba59bc | [
"MIT"
] | 1 | 2019-02-20T09:48:04.000Z | 2019-02-20T09:48:04.000Z | defmodule DeliriumTremex.Mixfile do
use Mix.Project
def project do
[
app: :delirium_tremex,
version: "1.0.0",
elixir: "~> 1.5",
package: package(),
start_permanent: Mix.env() == :prod,
elixirc_paths: elixirc_paths(Mix.env()),
source_url: "https://github.com/VeryBigThin... | 23.446154 | 86 | 0.550525 |
e9d31705d300e2e0c31f6b082d58e194fbbaaa47 | 2,421 | exs | Elixir | exercises/robot-simulator/example.exs | darktef/elixir-exercism | bcaae351486b1405f0a01cd33b4d39555546298e | [
"MIT"
] | 1 | 2021-08-16T20:24:14.000Z | 2021-08-16T20:24:14.000Z | exercises/robot-simulator/example.exs | Triangle-Elixir/xelixir | 08d23bf47f57799f286567cb26f635291de2fde5 | [
"MIT"
] | null | null | null | exercises/robot-simulator/example.exs | Triangle-Elixir/xelixir | 08d23bf47f57799f286567cb26f635291de2fde5 | [
"MIT"
] | null | null | null | defmodule RobotSimulator do
defstruct direction: nil, position: nil
@valid_directions [:north, :east, :south, :west]
@doc """
Create a Robot Simulator given an initial direction and position.
Valid directions are: `:north`, `:east`, `:south`, `:west`
"""
@spec create(direction :: atom, position :: {int... | 44.833333 | 116 | 0.648492 |
e9d32a414b9762030ff74a9768e32f896957f5cc | 1,933 | exs | Elixir | mix.exs | rossvz/versioned | 22fd40ce7833d0ede80ac9c3dd2e2b8482b50322 | [
"MIT"
] | null | null | null | mix.exs | rossvz/versioned | 22fd40ce7833d0ede80ac9c3dd2e2b8482b50322 | [
"MIT"
] | null | null | null | mix.exs | rossvz/versioned | 22fd40ce7833d0ede80ac9c3dd2e2b8482b50322 | [
"MIT"
] | null | null | null | defmodule Versioned.MixProject do
use Mix.Project
def project do
[
app: :versioned,
version: "0.2.0",
elixir: "~> 1.7",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
aliases: aliases(),
deps: deps(),
description: description(),
... | 24.782051 | 75 | 0.554061 |
e9d32cac5711a5ad5d434caed0cdf2a073041df8 | 3,822 | ex | Elixir | clients/content/lib/google_api/content/v2/model/headers.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-10-01T09:20:41.000Z | 2021-10-01T09:20:41.000Z | clients/content/lib/google_api/content/v2/model/headers.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/content/lib/google_api/content/v2/model/headers.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... | 64.779661 | 490 | 0.693093 |
e9d34383210dc1d6aa5658d480df90e9f483738e | 1,128 | ex | Elixir | lib/blog_post_api_web/router.ex | dannielb/blog-post-api | 214520beb57164375bc6596e85cbc42be67c0fb9 | [
"MIT"
] | null | null | null | lib/blog_post_api_web/router.ex | dannielb/blog-post-api | 214520beb57164375bc6596e85cbc42be67c0fb9 | [
"MIT"
] | null | null | null | lib/blog_post_api_web/router.ex | dannielb/blog-post-api | 214520beb57164375bc6596e85cbc42be67c0fb9 | [
"MIT"
] | null | null | null | defmodule BlogPostApiWeb.Router do
use BlogPostApiWeb, :router
pipeline :api do
plug :accepts, ["json"]
plug Guardian.Plug.VerifyHeader,
module: BlogPostApi.Guardian,
error_handler: BlogPostApiWeb.AuthErrorHandler
end
pipeline :ensure_authed_access do
plug Guardian.Plug.EnsureAuthenti... | 31.333333 | 90 | 0.719858 |
e9d34d84cccb0650f37a7480a9e439e8a3fe8283 | 378 | exs | Elixir | test/bitcoin/protocol/messages/pong_test.exs | anthdm/bitcoin-elixir | 5ca9f8bf4e9b2b38527670e80568a85e0aa612c0 | [
"Apache-2.0"
] | 81 | 2017-04-20T17:42:59.000Z | 2022-02-08T03:49:22.000Z | test/bitcoin/protocol/messages/pong_test.exs | anthdm/bitcoin-elixir | 5ca9f8bf4e9b2b38527670e80568a85e0aa612c0 | [
"Apache-2.0"
] | 4 | 2017-03-26T12:56:59.000Z | 2021-05-29T01:26:57.000Z | test/bitcoin/protocol/messages/pong_test.exs | anthdm/bitcoin-elixir | 5ca9f8bf4e9b2b38527670e80568a85e0aa612c0 | [
"Apache-2.0"
] | 22 | 2017-08-16T14:19:44.000Z | 2021-12-22T04:36:57.000Z | defmodule Bitcoin.Protocol.Messages.PongTest do
use ExUnit.Case
alias Bitcoin.Protocol.Messages.Pong
test "parses the ping message" do
nonce = 123456790987654321
payload = <<177, 196, 237, 27, 76, 155, 182, 1>> # 64 bit int nonce
struct = %Pong{nonce: nonce}
assert Pong.parse(payload) == struc... | 22.235294 | 71 | 0.693122 |
e9d351add54952eafc46ef920965c3f3a66a2e85 | 404 | ex | Elixir | server/cardinal/lib/cardinal_web/controllers/user_animes_controller.ex | llucasreis/cardinal | 714d89d37ef0fa305d78622ff7228864bf382035 | [
"MIT"
] | null | null | null | server/cardinal/lib/cardinal_web/controllers/user_animes_controller.ex | llucasreis/cardinal | 714d89d37ef0fa305d78622ff7228864bf382035 | [
"MIT"
] | null | null | null | server/cardinal/lib/cardinal_web/controllers/user_animes_controller.ex | llucasreis/cardinal | 714d89d37ef0fa305d78622ff7228864bf382035 | [
"MIT"
] | null | null | null | defmodule CardinalWeb.UserAnimesController do
use CardinalWeb, :controller
alias Cardinal.User
alias Cardinal.Schemas.UserAnime
action_fallback CardinalWeb.FallbackController
def add_anime(conn, params) do
with {:ok, %UserAnime{} = user_anime} <- User.add_anime(params) do
conn
|> put_status... | 23.764706 | 70 | 0.722772 |
e9d352e1503ff559882026a6ec1fb5c6cd0085ee | 2,909 | exs | Elixir | apps/astarte_pairing_api/config/config.exs | Spidey20202022/astarte | 3950855c592b34363af0cf7f8a921762ce64e512 | [
"Apache-2.0"
] | 1 | 2020-02-04T13:15:22.000Z | 2020-02-04T13:15:22.000Z | apps/astarte_pairing_api/config/config.exs | Spidey20202022/astarte | 3950855c592b34363af0cf7f8a921762ce64e512 | [
"Apache-2.0"
] | 1 | 2020-01-20T09:52:48.000Z | 2020-01-20T09:52:48.000Z | apps/astarte_pairing_api/config/config.exs | Spidey20202022/astarte | 3950855c592b34363af0cf7f8a921762ce64e512 | [
"Apache-2.0"
] | 1 | 2020-02-04T13:15:50.000Z | 2020-02-04T13:15:50.000Z | #
# This file is part of Astarte.
#
# Copyright 2017 Ispirata Srl
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appl... | 27.704762 | 98 | 0.731523 |
e9d357a30d7faafbcec89c7aa9cf34dce49c7a96 | 2,410 | ex | Elixir | lib/coxir/struct/integration.ex | Awlexus/coxir | 32234e05c0f55886d6c2ccc887aaddfe449e8fa7 | [
"Apache-2.0"
] | null | null | null | lib/coxir/struct/integration.ex | Awlexus/coxir | 32234e05c0f55886d6c2ccc887aaddfe449e8fa7 | [
"Apache-2.0"
] | null | null | null | lib/coxir/struct/integration.ex | Awlexus/coxir | 32234e05c0f55886d6c2ccc887aaddfe449e8fa7 | [
"Apache-2.0"
] | null | null | null | defmodule Coxir.Struct.Integration do
@moduledoc """
Defines methods used to interact with guild integrations.
Refer to [this](https://discord.com/developers/docs/resources/guild#integration-object)
for a list of fields and a broader documentation.
"""
@type integration :: String.t | map
use Coxir.Struc... | 25.638298 | 95 | 0.681743 |
e9d369b37131abd91e5cf968aff95a5bc43cdddb | 2,269 | ex | Elixir | lib/kvstore/storage.ex | pulitta/test-elixir-2017 | 2a8a30499cb7d195e66670286e61f5be590ff618 | [
"MIT"
] | null | null | null | lib/kvstore/storage.ex | pulitta/test-elixir-2017 | 2a8a30499cb7d195e66670286e61f5be590ff618 | [
"MIT"
] | null | null | null | lib/kvstore/storage.ex | pulitta/test-elixir-2017 | 2a8a30499cb7d195e66670286e61f5be590ff618 | [
"MIT"
] | null | null | null | defmodule Storage do
use GenServer
def start_link do
GenServer.start_link(__MODULE__, %{}, name: Storage)
end
def create(kv_ttl) do
GenServer.call(__MODULE__, {:create, kv_ttl})
end
def read(key) do
GenServer.call(__MODULE__, {:read, key})
end
def update(kv) d... | 29.855263 | 103 | 0.580432 |
e9d3bb23a4a195284e8cc1d9a1745a8d754b9fa5 | 2,261 | ex | Elixir | clients/health_care/lib/google_api/health_care/v1beta1/model/hl7_schema_config.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-10-01T09:20:41.000Z | 2021-10-01T09:20:41.000Z | clients/health_care/lib/google_api/health_care/v1beta1/model/hl7_schema_config.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/health_care/lib/google_api/health_care/v1beta1/model/hl7_schema_config.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 44.333333 | 248 | 0.748784 |
e9d3d99fbedde5c3187ba94b2dea7f5bb4e842f4 | 1,770 | exs | Elixir | test/ja_serializer/builder/link_test.exs | strzibny/ja_serializer | 9823ada739ec1f0db9f14bd29f62a701dbd3b094 | [
"Apache-2.0"
] | 322 | 2016-11-18T22:58:17.000Z | 2022-01-18T15:07:24.000Z | test/ja_serializer/builder/link_test.exs | strzibny/ja_serializer | 9823ada739ec1f0db9f14bd29f62a701dbd3b094 | [
"Apache-2.0"
] | 150 | 2016-11-17T20:14:51.000Z | 2021-03-12T03:56:57.000Z | test/ja_serializer/builder/link_test.exs | strzibny/ja_serializer | 9823ada739ec1f0db9f14bd29f62a701dbd3b094 | [
"Apache-2.0"
] | 104 | 2016-11-17T18:02:36.000Z | 2021-04-06T09:52:16.000Z | defmodule JaSerializer.Builder.LinkTest do
use ExUnit.Case
defmodule ArticleSerializer do
use JaSerializer
has_many(
:comments,
serializer: JaSerializer.Builder.LinkTest.CommentSerializer,
link: "comments?article_id=:id"
)
end
defmodule PostSerializer do
use JaSerializer
... | 26.818182 | 77 | 0.649718 |
e9d3f2bbbc523e138fb15354a02e086a3185b3bb | 132 | exs | Elixir | test/ex_oss_test.exs | satrionugroho/ex_oss | 6f9c0ae55e7f582f162b6bdfd50e867684dd168d | [
"MIT"
] | null | null | null | test/ex_oss_test.exs | satrionugroho/ex_oss | 6f9c0ae55e7f582f162b6bdfd50e867684dd168d | [
"MIT"
] | null | null | null | test/ex_oss_test.exs | satrionugroho/ex_oss | 6f9c0ae55e7f582f162b6bdfd50e867684dd168d | [
"MIT"
] | null | null | null | defmodule ExOssTest do
use ExUnit.Case
doctest ExOss
test "greets the world" do
assert ExOss.hello() == :world
end
end
| 14.666667 | 34 | 0.69697 |
e9d3f59ecb28587bc5ada73979ec37ce15927f38 | 583 | exs | Elixir | hamming/hamming.exs | SLIB53/exercism-elixir-answers | 352e3b9b6c9e5f8025ccd462845f1682d115e1da | [
"MIT"
] | 2 | 2019-03-26T09:32:41.000Z | 2020-03-09T19:16:36.000Z | hamming/hamming.exs | SLIB53/exercism-elixir-answers | 352e3b9b6c9e5f8025ccd462845f1682d115e1da | [
"MIT"
] | null | null | null | hamming/hamming.exs | SLIB53/exercism-elixir-answers | 352e3b9b6c9e5f8025ccd462845f1682d115e1da | [
"MIT"
] | null | null | null | defmodule Hamming do
@doc """
Returns number of differences between two strands of DNA, known as the Hamming Distance.
## Examples
iex> Hamming.hamming_distance('AAGTCATA', 'TAGCGATC')
{:ok, 4}
"""
@spec hamming_distance([char], [char]) :: {:ok | :error, non_neg_integer | String.t()}
def hamming_dista... | 29.15 | 90 | 0.667238 |
e9d438aa31859aeb2a378ceda676db00997094b5 | 944 | ex | Elixir | lib/web/controllers/api/staged_change_controller.ex | christhekeele/ex_venture | 4f4b329f50a133e219969f9823144a4cb9bf738d | [
"MIT"
] | 610 | 2017-08-09T15:20:25.000Z | 2022-03-27T15:49:07.000Z | lib/web/controllers/api/staged_change_controller.ex | christhekeele/ex_venture | 4f4b329f50a133e219969f9823144a4cb9bf738d | [
"MIT"
] | 69 | 2017-09-23T04:02:30.000Z | 2022-03-19T21:08:21.000Z | lib/web/controllers/api/staged_change_controller.ex | christhekeele/ex_venture | 4f4b329f50a133e219969f9823144a4cb9bf738d | [
"MIT"
] | 85 | 2017-09-23T04:07:11.000Z | 2021-11-20T06:44:56.000Z | defmodule Web.API.StagedChangeController do
use Web, :controller
alias ExVenture.Rooms
alias ExVenture.StagedChanges
alias ExVenture.Zones
def index(conn, %{"room_id" => room_id}) do
{:ok, room} = Rooms.get(room_id)
conn
|> assign(:staged_changes, room.staged_changes)
|> render("index.json"... | 21.953488 | 65 | 0.638771 |
e9d4b415a6cb6e0595f9e6f3b1fcbc48e18d7e1f | 553 | exs | Elixir | apps/blog/test/views/error_view_test.exs | richeterre/phoenix-example | cd01a3401387c63dc11e64ca89e500e8eabd5fb0 | [
"MIT"
] | 6 | 2017-04-17T22:19:53.000Z | 2019-05-14T09:49:22.000Z | apps/blog/test/views/error_view_test.exs | richeterre/phoenix-example | cd01a3401387c63dc11e64ca89e500e8eabd5fb0 | [
"MIT"
] | null | null | null | apps/blog/test/views/error_view_test.exs | richeterre/phoenix-example | cd01a3401387c63dc11e64ca89e500e8eabd5fb0 | [
"MIT"
] | null | null | null | defmodule Blog.ErrorViewTest do
use Blog.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(Blog.ErrorView, "404.html", []) ==
"Page not found"
end
test "render 500.html" do
asser... | 25.136364 | 66 | 0.667269 |
e9d4c3aba10b7bb4fe934b75e5d750a2741c29d9 | 443 | exs | Elixir | test/from_the_ashes_web/controllers/location_controller_test.exs | hazen/from_the_ashes | 05b4468b6ce5ff0225ff2fed5e27d6055bf3d852 | [
"MIT"
] | null | null | null | test/from_the_ashes_web/controllers/location_controller_test.exs | hazen/from_the_ashes | 05b4468b6ce5ff0225ff2fed5e27d6055bf3d852 | [
"MIT"
] | 1 | 2021-03-09T22:08:11.000Z | 2021-03-09T22:08:11.000Z | test/from_the_ashes_web/controllers/location_controller_test.exs | hazen/from_the_ashes | 05b4468b6ce5ff0225ff2fed5e27d6055bf3d852 | [
"MIT"
] | null | null | null | defmodule FromTheAshesWeb.LocationControllerTest do
use FromTheAshesWeb.ConnCase
test "GET /api/lookup", %{conn: conn} do
{:ok, request} = Jason.encode(%{"address" => "denver, co"})
conn =
conn
|> put_req_header("content-type", "application/json")
|> get("/api/lookup", request)
asse... | 27.6875 | 81 | 0.625282 |
e9d4d641ff6768a2f374f373001918befcc0a1da | 1,569 | exs | Elixir | config/dev.exs | oberonv1/elixir-react-train-schedule | 89821c5be1f595f1ef34e778df0ca24eeedad674 | [
"MIT"
] | null | null | null | config/dev.exs | oberonv1/elixir-react-train-schedule | 89821c5be1f595f1ef34e778df0ca24eeedad674 | [
"MIT"
] | null | null | null | config/dev.exs | oberonv1/elixir-react-train-schedule | 89821c5be1f595f1ef34e778df0ca24eeedad674 | [
"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 :mbta, Mbta.Endpoint,
http: [port: 4000],
debu... | 29.055556 | 68 | 0.604844 |
e9d4d8e9086c1438fcebeee22b61c8d9f289af2d | 90 | exs | Elixir | 7_lists/4.exs | simaofreitas/elixir_exercises | e1965295941fb8fcf1eba2d73e5a9bd22a1f8619 | [
"MIT"
] | null | null | null | 7_lists/4.exs | simaofreitas/elixir_exercises | e1965295941fb8fcf1eba2d73e5a9bd22a1f8619 | [
"MIT"
] | null | null | null | 7_lists/4.exs | simaofreitas/elixir_exercises | e1965295941fb8fcf1eba2d73e5a9bd22a1f8619 | [
"MIT"
] | null | null | null | defmodule MyList do
def span(a,a), do: [a]
def span(a,b), do: [a | span(a+1, b)]
end
| 15 | 39 | 0.566667 |
e9d4e99ac596c563dd05ec9aeb30d82928533d9f | 453 | ex | Elixir | lib/mix/tasks/phx_up.del.v.ex | henriquefernandez/phoenix_up | b549a2e464d858a090ffa7b0a4100a71561807df | [
"MIT"
] | 27 | 2020-02-22T21:15:33.000Z | 2021-12-25T07:31:14.000Z | lib/mix/tasks/phx_up.del.v.ex | henriquefernandez/phoenix_up | b549a2e464d858a090ffa7b0a4100a71561807df | [
"MIT"
] | 1 | 2020-03-07T12:14:12.000Z | 2020-03-07T12:14:12.000Z | lib/mix/tasks/phx_up.del.v.ex | henriquefernandez/phoenix_up | b549a2e464d858a090ffa7b0a4100a71561807df | [
"MIT"
] | 2 | 2020-03-03T13:09:08.000Z | 2020-07-24T05:07:45.000Z | defmodule Mix.Tasks.PhxUp.Del.V do
@shortdoc false
@moduledoc false
use Mix.Task
@doc false
def run(io_puts \\ true, args) do
if io_puts == true do
IO.puts("""
_ __ __ _____
___| |_ _ _ | | | _ |
| . | |_'_| | | | __|
| _|_|_|_,_|_____|... | 20.590909 | 46 | 0.461369 |
e9d5531947291a37f506a5c0c4e13910c3982294 | 10,035 | ex | Elixir | lib/mix/lib/mix/tasks/profile.cprof.ex | tnascimento/elixir | 9a4d10e702f33d2fa47718cde05375b506b4a3d6 | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/tasks/profile.cprof.ex | tnascimento/elixir | 9a4d10e702f33d2fa47718cde05375b506b4a3d6 | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/tasks/profile.cprof.ex | tnascimento/elixir | 9a4d10e702f33d2fa47718cde05375b506b4a3d6 | [
"Apache-2.0"
] | null | null | null | defmodule Mix.Tasks.Profile.Cprof do
use Mix.Task
@shortdoc "Profiles the given file or expression with cprof"
@moduledoc """
Profiles the given file or expression using Erlang's `cprof` tool.
`cprof` can be useful when you want to discover the bottlenecks related
to function calls.
Before running the... | 35.839286 | 96 | 0.624016 |
e9d559fe605e33250f75a46a0246b162840c35ae | 1,625 | ex | Elixir | clients/tag_manager/lib/google_api/tag_manager/v2/model/sync_status.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/tag_manager/lib/google_api/tag_manager/v2/model/sync_status.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/tag_manager/lib/google_api/tag_manager/v2/model/sync_status.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 32.5 | 116 | 0.729846 |
e9d5659389098c5d3a22eace3fe7d9669e22a40f | 22,135 | ex | Elixir | lib/commanded/aggregates/aggregate.ex | zven21/commanded | bd3be98a225629816127cf8ef6624632cd09766e | [
"MIT"
] | null | null | null | lib/commanded/aggregates/aggregate.ex | zven21/commanded | bd3be98a225629816127cf8ef6624632cd09766e | [
"MIT"
] | null | null | null | lib/commanded/aggregates/aggregate.ex | zven21/commanded | bd3be98a225629816127cf8ef6624632cd09766e | [
"MIT"
] | null | null | null | defmodule Commanded.Aggregates.Aggregate do
use TelemetryRegistry
use GenServer, restart: :temporary
use Commanded.Registration
telemetry_event(%{
event: [:commanded, :aggregate, :execute, :start],
description: "Emitted when an aggregate starts executing a command",
measurements: "%{system_time: in... | 31.986994 | 118 | 0.683081 |
e9d590ddcc5d1a8cd2bcf60d7ba56e910b25cec0 | 179 | exs | Elixir | braccino_firmware/config/host.exs | darcros/braccino | 33f4d945daf8eac36e4e88ef412dd53cb1389376 | [
"MIT"
] | null | null | null | braccino_firmware/config/host.exs | darcros/braccino | 33f4d945daf8eac36e4e88ef412dd53cb1389376 | [
"MIT"
] | null | null | null | braccino_firmware/config/host.exs | darcros/braccino | 33f4d945daf8eac36e4e88ef412dd53cb1389376 | [
"MIT"
] | null | null | null | import Config
# Add configuration that is only needed when running on the host here.
# Braccino config
config :braccino, Braccino.Braccio, implementation: Braccino.Braccio.Mock
| 25.571429 | 73 | 0.804469 |
e9d5a8ea42822b4ac913e4646394176ee158d042 | 472 | ex | Elixir | lib/yourbot/bots/project/environment_variable.ex | ConnorRigby/yourbot | eea40e63b0f93963ed14b7efab9ecbe898ab11dd | [
"Apache-2.0"
] | 3 | 2021-11-08T15:19:19.000Z | 2021-11-11T03:18:35.000Z | lib/yourbot/bots/project/environment_variable.ex | ConnorRigby/yourbot | eea40e63b0f93963ed14b7efab9ecbe898ab11dd | [
"Apache-2.0"
] | null | null | null | lib/yourbot/bots/project/environment_variable.ex | ConnorRigby/yourbot | eea40e63b0f93963ed14b7efab9ecbe898ab11dd | [
"Apache-2.0"
] | null | null | null | defmodule YourBot.Bots.Project.EnvironmentVariable do
use Ecto.Schema
import Ecto.Changeset
schema "yourbot_environment_variables" do
belongs_to :project, YourBot.Bots.Project
field :key, :string, null: false
field :value, :string, null: false, redact: true
timestamps()
end
def changeset(env... | 24.842105 | 53 | 0.690678 |
e9d5ae165bdd268c3b2c1ce901b1cb94a1d66d5d | 13,771 | exs | Elixir | test/basic_uart_test.exs | sparta-science/circuits_uart | 928b951d038df2e9882bae41f4226a6d51ef9bdb | [
"Apache-2.0"
] | null | null | null | test/basic_uart_test.exs | sparta-science/circuits_uart | 928b951d038df2e9882bae41f4226a6d51ef9bdb | [
"Apache-2.0"
] | null | null | null | test/basic_uart_test.exs | sparta-science/circuits_uart | 928b951d038df2e9882bae41f4226a6d51ef9bdb | [
"Apache-2.0"
] | null | null | null | Code.require_file("uart_test.exs", __DIR__)
defmodule BasicUARTTest do
use ExUnit.Case
alias Circuits.UART
setup do
UARTTest.common_setup()
end
test "serial ports exist" do
ports = UART.enumerate()
assert is_map(ports)
assert Map.has_key?(ports, UARTTest.port1()), "Can't find #{UARTTest.por... | 32.175234 | 98 | 0.637499 |
e9d5b41ce80395761fb03adf3d58b7e35a75f474 | 1,647 | ex | Elixir | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2beta1_intent_message_suggestion.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-10-01T09:20:41.000Z | 2021-10-01T09:20:41.000Z | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2beta1_intent_message_suggestion.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2beta1_intent_message_suggestion.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.673077 | 107 | 0.750455 |
e9d5f60252961a3c7838f8cd8f1644876dea496a | 3,761 | exs | Elixir | test/core/version/history_test.exs | wses-yoshida/antikythera | e108e59d2339edd0b0fad31ad4f41f56df45be55 | [
"Apache-2.0"
] | null | null | null | test/core/version/history_test.exs | wses-yoshida/antikythera | e108e59d2339edd0b0fad31ad4f41f56df45be55 | [
"Apache-2.0"
] | null | null | null | test/core/version/history_test.exs | wses-yoshida/antikythera | e108e59d2339edd0b0fad31ad4f41f56df45be55 | [
"Apache-2.0"
] | null | null | null | # Copyright(c) 2015-2019 ACCESS CO., LTD. All rights reserved.
defmodule AntikytheraCore.Version.HistoryTest do
use Croma.TestCase
alias Antikythera.Time
alias AntikytheraCore.Version.History.Entry
alias AntikytheraCore.Cluster
@v1 "0.0.1-20180501235959+0123456789abcdef0123456789abcdef01234567"
@v2 Ve... | 41.32967 | 105 | 0.571391 |
e9d5faef5ed1ad83495ad73025032edbb6bc8c4d | 2,484 | ex | Elixir | clients/tag_manager/lib/google_api/tag_manager/v2/model/built_in_variable.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/tag_manager/lib/google_api/tag_manager/v2/model/built_in_variable.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/tag_manager/lib/google_api/tag_manager/v2/model/built_in_variable.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... | 37.074627 | 129 | 0.69847 |
e9d609676cf613271f6274cc65f166544ba15ab6 | 17,622 | ex | Elixir | lib/phoenix_live_view/html_tokenizer.ex | jowrjowr/phoenix_live_view | d52da3b41292f9488e4a5c210aa1110c3f6420b0 | [
"MIT"
] | 1 | 2022-03-13T23:01:55.000Z | 2022-03-13T23:01:55.000Z | lib/phoenix_live_view/html_tokenizer.ex | jowrjowr/phoenix_live_view | d52da3b41292f9488e4a5c210aa1110c3f6420b0 | [
"MIT"
] | null | null | null | lib/phoenix_live_view/html_tokenizer.ex | jowrjowr/phoenix_live_view | d52da3b41292f9488e4a5c210aa1110c3f6420b0 | [
"MIT"
] | null | null | null | defmodule Phoenix.LiveView.HTMLTokenizer do
@moduledoc false
@space_chars '\s\t\f'
@name_stop_chars @space_chars ++ '>/=\r\n'
defmodule ParseError do
defexception [:file, :line, :column, :message]
@impl true
def message(exception) do
location =
exception.file
|> Path.relative... | 35.744422 | 101 | 0.659176 |
e9d60d622b37543410aceef8536f8252390e7592 | 342 | ex | Elixir | lib/perspective/processor/steps/syntax_validator.ex | backmath/perspective | a0a577d0ffb06805b64e4dcb171a093e051884b0 | [
"MIT"
] | 2 | 2020-04-24T19:43:06.000Z | 2020-04-24T19:52:27.000Z | lib/perspective/processor/steps/syntax_validator.ex | backmath/perspective | a0a577d0ffb06805b64e4dcb171a093e051884b0 | [
"MIT"
] | null | null | null | lib/perspective/processor/steps/syntax_validator.ex | backmath/perspective | a0a577d0ffb06805b64e4dcb171a093e051884b0 | [
"MIT"
] | null | null | null | defmodule Perspective.Processor.SyntaxValidator do
def validate(request) do
case Perspective.ActionRequest.SyntaxValidator.validate_syntax(request) do
true -> request
:ok -> request
nil -> request
[] -> request
errors -> raise(Perspective.InvalidSyntax, errors: errors, request: reque... | 28.5 | 82 | 0.701754 |
e9d60deba9eda9e62602903e288da523c7ca2d4d | 878 | ex | Elixir | clients/pub_sub/lib/google_api/pub_sub/v1/metadata.ex | mopp/elixir-google-api | d496227d17600bccbdf8f6be9ad1b7e7219d7ec6 | [
"Apache-2.0"
] | null | null | null | clients/pub_sub/lib/google_api/pub_sub/v1/metadata.ex | mopp/elixir-google-api | d496227d17600bccbdf8f6be9ad1b7e7219d7ec6 | [
"Apache-2.0"
] | null | null | null | clients/pub_sub/lib/google_api/pub_sub/v1/metadata.ex | mopp/elixir-google-api | d496227d17600bccbdf8f6be9ad1b7e7219d7ec6 | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 32.518519 | 74 | 0.757403 |
e9d6411c3359b1022733610dea366432d6f21b94 | 1,924 | ex | Elixir | lib/kiq/periodic/parser.ex | locaweb/kiq | fa561b9a1a2361e99b4af5eafc4d3c7ece576ea9 | [
"MIT"
] | 59 | 2018-07-13T23:17:00.000Z | 2021-12-21T07:03:03.000Z | lib/kiq/periodic/parser.ex | locaweb/kiq | fa561b9a1a2361e99b4af5eafc4d3c7ece576ea9 | [
"MIT"
] | 5 | 2019-08-05T13:14:42.000Z | 2022-03-09T12:38:46.000Z | lib/kiq/periodic/parser.ex | locaweb/kiq | fa561b9a1a2361e99b4af5eafc4d3c7ece576ea9 | [
"MIT"
] | 6 | 2018-09-24T13:16:21.000Z | 2021-05-03T08:26:52.000Z | defmodule Kiq.Periodic.Parser do
@moduledoc false
import NimbleParsec
month_alias =
choice([
replace(string("JAN"), 1),
replace(string("FEB"), 2),
replace(string("MAR"), 3),
replace(string("APR"), 4),
replace(string("MAY"), 5),
replace(string("JUN"), 6),
replace(str... | 20.252632 | 63 | 0.536383 |
e9d658c9bf2e62b53afcd565f98b70bb214fddde | 8 | ex | Elixir | testData/org/elixir_lang/parser_definition/matched_in_operation_parsing_test_case/UnaryNumericOperation.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/matched_in_operation_parsing_test_case/UnaryNumericOperation.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/matched_in_operation_parsing_test_case/UnaryNumericOperation.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 145 | 2015-01-15T11:37:16.000Z | 2021-12-22T05:51:02.000Z | -0 in -1 | 8 | 8 | 0.5 |
e9d65b41e211909e78dfc74364110193af70ede8 | 467 | ex | Elixir | plugins/ucc_chat/lib/ucc_chat_web/admin/general.ex | josephkabraham/ucx_ucc | 0dbd9e3eb5940336b4870cff033482ceba5f6ee7 | [
"MIT"
] | null | null | null | plugins/ucc_chat/lib/ucc_chat_web/admin/general.ex | josephkabraham/ucx_ucc | 0dbd9e3eb5940336b4870cff033482ceba5f6ee7 | [
"MIT"
] | null | null | null | plugins/ucc_chat/lib/ucc_chat_web/admin/general.ex | josephkabraham/ucx_ucc | 0dbd9e3eb5940336b4870cff033482ceba5f6ee7 | [
"MIT"
] | null | null | null | defmodule UccChatWeb.Admin.Page.General do
use UccAdmin.Page
alias UcxUcc.{Repo, Hooks, Settings.General}
def add_page do
new("admin_general", __MODULE__, ~g(General), UccChatWeb.AdminView, "general.html", 60)
end
def args(page, user, _sender, socket) do
{[
user: Repo.preload(user, Hooks.user... | 24.578947 | 91 | 0.67666 |
e9d65e57483bc60872f34be818d5a8694107c1a9 | 19,811 | ex | Elixir | lib/ex_phone_number/metadata/phone_metadata.ex | balena/ex_phone_number | 93a53efa03fcb821fdaacb261384b84b172428f9 | [
"MIT"
] | 3 | 2018-07-21T10:44:45.000Z | 2021-05-28T20:43:07.000Z | lib/ex_phone_number/metadata/phone_metadata.ex | balena/ex_phone_number | 93a53efa03fcb821fdaacb261384b84b172428f9 | [
"MIT"
] | 2 | 2021-03-09T10:05:00.000Z | 2022-02-14T11:00:18.000Z | lib/ex_phone_number/metadata/phone_metadata.ex | balena/ex_phone_number | 93a53efa03fcb821fdaacb261384b84b172428f9 | [
"MIT"
] | 1 | 2021-12-14T04:31:40.000Z | 2021-12-14T04:31:40.000Z | defmodule ExPhoneNumber.Metadata.PhoneMetadata do
# string
defstruct id: nil,
# number
country_code: nil,
# string
leading_digits: nil,
# string
international_prefix: nil,
# string
preferred_international_prefix: nil,
... | 34.334489 | 132 | 0.69527 |
e9d66f58d91be00755882031c84bf939e9642ec3 | 9,813 | exs | Elixir | apps/definition_dictionary/test/dictionary_test.exs | jmorris-pillar/hindsight | 48f00fb99053eb6e527d4c3c22dac4c726ab9001 | [
"Apache-2.0"
] | null | null | null | apps/definition_dictionary/test/dictionary_test.exs | jmorris-pillar/hindsight | 48f00fb99053eb6e527d4c3c22dac4c726ab9001 | [
"Apache-2.0"
] | null | null | null | apps/definition_dictionary/test/dictionary_test.exs | jmorris-pillar/hindsight | 48f00fb99053eb6e527d4c3c22dac4c726ab9001 | [
"Apache-2.0"
] | null | null | null | defmodule DictionaryTest do
use ExUnit.Case
import Checkov
describe "dictionary data structure" do
setup do
dictionary =
Dictionary.from_list([
Dictionary.Type.String.new!(name: "name"),
Dictionary.Type.Integer.new!(name: "age"),
Dictionary.Type.Date.new!(name: "bi... | 30.380805 | 98 | 0.550902 |
e9d67553f3e30000d46237d3af705f6082be44dd | 1,818 | ex | Elixir | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v2beta1/model/criteria_targeting.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v2beta1/model/criteria_targeting.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v2beta1/model/criteria_targeting.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.647059 | 112 | 0.740924 |
e9d68d46c85c5dea5fce74f62c8fb344f4ed5fe4 | 1,454 | exs | Elixir | test/json_schema_test_suite/draft7/pattern_test.exs | kianmeng/xema | a990d64fb4bcd708249514daa55426ee003da25d | [
"MIT"
] | 49 | 2018-06-05T09:42:19.000Z | 2022-02-15T12:50:51.000Z | test/json_schema_test_suite/draft7/pattern_test.exs | kianmeng/xema | a990d64fb4bcd708249514daa55426ee003da25d | [
"MIT"
] | 152 | 2017-06-11T13:43:06.000Z | 2022-01-09T17:13:45.000Z | test/json_schema_test_suite/draft7/pattern_test.exs | kianmeng/xema | a990d64fb4bcd708249514daa55426ee003da25d | [
"MIT"
] | 6 | 2019-05-31T05:41:47.000Z | 2021-12-14T08:09:36.000Z | defmodule JsonSchemaTestSuite.Draft7.PatternTest do
use ExUnit.Case
import Xema, only: [valid?: 2]
describe ~s|pattern validation| do
setup do
%{
schema:
Xema.from_json_schema(
%{"pattern" => "^a*$"},
draft: "draft7",
atom: :force
)
... | 21.382353 | 68 | 0.550206 |
e9d6a14bfc420442de60e70221b42d90c65275bf | 401 | ex | Elixir | lib/exprotobuf/field.ex | coingaming/exprotobuf2 | 8bde9e1f8bd37fff6629d2f3217f3e8f560a7c14 | [
"Apache-2.0"
] | 14 | 2020-08-28T02:18:23.000Z | 2022-02-07T19:03:32.000Z | lib/exprotobuf/field.ex | coingaming/exprotobuf2 | 8bde9e1f8bd37fff6629d2f3217f3e8f560a7c14 | [
"Apache-2.0"
] | null | null | null | lib/exprotobuf/field.ex | coingaming/exprotobuf2 | 8bde9e1f8bd37fff6629d2f3217f3e8f560a7c14 | [
"Apache-2.0"
] | null | null | null | defmodule ExProtobuf.Field do
case Version.compare(System.version, "1.0.4") do
:gt ->
@record Record.Extractor.extract(:field, from: Path.join([Mix.Project.deps_path, "gpb", "include", "gpb.hrl"]))
_ ->
@record Record.Extractor.extract(:"?gpb_field", from: Path.join([Mix.Project.deps_path, "gpb", ... | 33.416667 | 124 | 0.665835 |
e9d6b628a803c4f208a25835905bc5478454ef39 | 1,195 | ex | Elixir | apps/omg_watcher_info/lib/omg_watcher_info/api/account.ex | boolafish/elixir-omg | 46b568404972f6e4b4da3195d42d4fb622edb934 | [
"Apache-2.0"
] | null | null | null | apps/omg_watcher_info/lib/omg_watcher_info/api/account.ex | boolafish/elixir-omg | 46b568404972f6e4b4da3195d42d4fb622edb934 | [
"Apache-2.0"
] | null | null | null | apps/omg_watcher_info/lib/omg_watcher_info/api/account.ex | boolafish/elixir-omg | 46b568404972f6e4b4da3195d42d4fb622edb934 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019-2020 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 ... | 31.447368 | 74 | 0.734728 |
e9d6bc105909d2de67f42e7f5b1c74dac380dea1 | 371 | ex | Elixir | apps/game_server_web/lib/game_server_web/controllers/game_controller.ex | powelli13/dara-dots | 728a622e761867ff114c9dbdbf57ff76ab0fb992 | [
"MIT"
] | 6 | 2021-03-25T21:02:28.000Z | 2022-02-10T08:11:28.000Z | apps/game_server_web/lib/game_server_web/controllers/game_controller.ex | powelli13/dara-dots | 728a622e761867ff114c9dbdbf57ff76ab0fb992 | [
"MIT"
] | 20 | 2020-09-02T23:17:29.000Z | 2022-03-27T22:54:20.000Z | apps/game_server_web/lib/game_server_web/controllers/game_controller.ex | powelli13/dara-dots | 728a622e761867ff114c9dbdbf57ff76ab0fb992 | [
"MIT"
] | 2 | 2021-03-25T21:08:15.000Z | 2021-09-25T19:11:36.000Z | defmodule GameServerWeb.GameController do
use GameServerWeb, :controller
def index(conn, params) do
case Map.fetch(params, "rps_id") do
{:ok, _game_id} ->
render(conn, "index.html")
:error ->
redirect(conn, to: Routes.game_path(conn, :lobby))
end
end
def lobby(conn, _param... | 20.611111 | 58 | 0.641509 |
e9d6c6d4b185b6fc69460f576d5a372dd7d50cc1 | 143 | exs | Elixir | config/appsignal.exs | upmaru/cineplex | 7d1d516d3e3d3683b2ad4425b61517a8f556f721 | [
"MIT"
] | null | null | null | config/appsignal.exs | upmaru/cineplex | 7d1d516d3e3d3683b2ad4425b61517a8f556f721 | [
"MIT"
] | null | null | null | config/appsignal.exs | upmaru/cineplex | 7d1d516d3e3d3683b2ad4425b61517a8f556f721 | [
"MIT"
] | null | null | null | use Mix.Config
config :appsignal, :config,
name: "${APPSIGNAL_APP_NAME}",
push_api_key: "${APPSIGNAL_API_KEY}",
env: "${APPSIGNAL_ENV}"
| 20.428571 | 39 | 0.699301 |
e9d6dbf36b83b3b22a883626d1dfa46f8621f242 | 1,181 | exs | Elixir | config/dev.exs | sysdia-solutions/basic_books | 251dae71d1dc3d5516464e38e0efede1af9949fe | [
"MIT"
] | 1 | 2016-02-04T17:16:54.000Z | 2016-02-04T17:16:54.000Z | config/dev.exs | sysdia-solutions/basic_books | 251dae71d1dc3d5516464e38e0efede1af9949fe | [
"MIT"
] | null | null | null | config/dev.exs | sysdia-solutions/basic_books | 251dae71d1dc3d5516464e38e0efede1af9949fe | [
"MIT"
] | null | null | null | use Mix.Config
# For development, we disable any cache and enable
# debugging and code reloading.
#
# The watchers configuration can be used to run external
# watchers to your application. For example, we use it
# with brunch.io to recompile .js and .css sources.
config :basic_books, BasicBooks.Endpoint,
http: [port... | 30.282051 | 74 | 0.716342 |
e9d6e0ad6da0c176309eb7ab812270aeb2746dd2 | 2,127 | ex | Elixir | clients/admin/lib/google_api/admin/reports_v1/model/activity.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/admin/lib/google_api/admin/reports_v1/model/activity.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/admin/lib/google_api/admin/reports_v1/model/activity.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | 1 | 2018-07-28T20:50:50.000Z | 2018-07-28T20:50:50.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 34.306452 | 94 | 0.724495 |
e9d6e5233b3dc62a5b03cb9eb215ae41f481ec2b | 2,206 | exs | Elixir | server/test/taskerito/projects_test.exs | jonatanklosko/taskerito | e9b9bfdd10f53a676c0c5eccbd54e4c8a1c2d8a1 | [
"MIT"
] | 5 | 2020-06-18T20:31:11.000Z | 2021-07-23T10:05:56.000Z | server/test/taskerito/projects_test.exs | jonatanklosko/taskerito | e9b9bfdd10f53a676c0c5eccbd54e4c8a1c2d8a1 | [
"MIT"
] | null | null | null | server/test/taskerito/projects_test.exs | jonatanklosko/taskerito | e9b9bfdd10f53a676c0c5eccbd54e4c8a1c2d8a1 | [
"MIT"
] | null | null | null | defmodule Taskerito.ProjectsTest do
use Taskerito.DataCase
import Taskerito.Factory
alias Taskerito.Projects.{Project, Projects}
@valid_attrs %{description: "some description", name: "some name"}
@update_attrs %{description: "some updated description", name: "some updated name"}
@invalid_attrs %{descript... | 36.766667 | 89 | 0.723935 |
e9d6f42a30dad79f931b7fa117c4b1d0237f5ed7 | 259 | ex | Elixir | assistant/lib/assistant_web/live/correspondence_page_component.ex | dainst/bibliography-assistant | 6495055bf852964d416a02d92729406a6a1a33e9 | [
"Apache-2.0"
] | null | null | null | assistant/lib/assistant_web/live/correspondence_page_component.ex | dainst/bibliography-assistant | 6495055bf852964d416a02d92729406a6a1a33e9 | [
"Apache-2.0"
] | null | null | null | assistant/lib/assistant_web/live/correspondence_page_component.ex | dainst/bibliography-assistant | 6495055bf852964d416a02d92729406a6a1a33e9 | [
"Apache-2.0"
] | null | null | null | defmodule AssistantWeb.CorrespondencePageComponent do
use AssistantWeb, :live_component
alias Assistant.Translator
alias AssistantWeb.AnystyleResultComponent
alias AssistantWeb.GrobidResultComponent
def mount socket do
{:ok, socket}
end
end
| 21.583333 | 53 | 0.814672 |
e9d72986ed3d878f6d8e037a31b2a2dc13565e34 | 1,131 | exs | Elixir | config/config.exs | quiqupltd/ex_schedule | be91da77d5d58d627de7024f325773842fdde26e | [
"MIT"
] | 7 | 2018-05-19T21:01:37.000Z | 2020-01-15T09:12:20.000Z | config/config.exs | quiqupltd/ex_schedule | be91da77d5d58d627de7024f325773842fdde26e | [
"MIT"
] | 1 | 2021-12-22T09:44:02.000Z | 2021-12-22T09:44:02.000Z | config/config.exs | QuiqUpLTD/ex_schedule | be91da77d5d58d627de7024f325773842fdde26e | [
"MIT"
] | 2 | 2019-01-27T21:55:36.000Z | 2021-05-05T15:01:53.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.483871 | 73 | 0.753316 |
e9d743b3510b6514c90b58046cfa550ebd0b55a1 | 416 | ex | Elixir | lib/bitpal_schemas/currency.ex | fstromback/bitpal | 2c50e6700d7383b4f025b3734ba37257c69ce47e | [
"BSD-3-Clause-Clear"
] | null | null | null | lib/bitpal_schemas/currency.ex | fstromback/bitpal | 2c50e6700d7383b4f025b3734ba37257c69ce47e | [
"BSD-3-Clause-Clear"
] | null | null | null | lib/bitpal_schemas/currency.ex | fstromback/bitpal | 2c50e6700d7383b4f025b3734ba37257c69ce47e | [
"BSD-3-Clause-Clear"
] | null | null | null | defmodule BitPalSchemas.Currency do
use TypedEctoSchema
alias BitPalSchemas.Address
alias BitPalSchemas.Invoice
@type id :: String.t() | atom
@primary_key {:id, :string, []}
typed_schema "currencies" do
field(:block_height, :integer) :: non_neg_integer | nil
has_many(:addresses, Address)
has_m... | 26 | 61 | 0.71875 |
e9d747fa5d639ed70b68d7aa8b61d11b14100442 | 190 | exs | Elixir | config/config.exs | churcho/sendgrid_elixir | 1bb421d044e21e51bd761f14dfb61b9e431f2eb7 | [
"MIT"
] | 83 | 2016-02-28T22:41:34.000Z | 2022-03-29T12:20:53.000Z | config/config.exs | churcho/sendgrid_elixir | 1bb421d044e21e51bd761f14dfb61b9e431f2eb7 | [
"MIT"
] | 32 | 2016-07-05T14:11:11.000Z | 2021-12-15T05:39:58.000Z | config/config.exs | churcho/sendgrid_elixir | 1bb421d044e21e51bd761f14dfb61b9e431f2eb7 | [
"MIT"
] | 46 | 2016-02-29T12:39:21.000Z | 2021-06-22T13:55:14.000Z | use Mix.Config
config :sendgrid,
api_key: {:system, "SENDGRID_API_KEY"},
sandbox_enable: true,
phoenix_view: SendGrid.EmailView,
test_address: System.get_env("SENDGRID_TEST_EMAIL")
| 23.75 | 53 | 0.768421 |
e9d77d7751cad4554721f8bc9d50c4af8bb08fc5 | 48,755 | ex | Elixir | lib/elixir/lib/code.ex | irisTa56/elixir | 0a953d75fb2cbdc6f3d33040aa60738d85512a1f | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/code.ex | irisTa56/elixir | 0a953d75fb2cbdc6f3d33040aa60738d85512a1f | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/code.ex | irisTa56/elixir | 0a953d75fb2cbdc6f3d33040aa60738d85512a1f | [
"Apache-2.0"
] | null | null | null | defmodule Code do
@moduledoc ~S"""
Utilities for managing code compilation, code evaluation, and code loading.
This module complements Erlang's [`:code` module](http://www.erlang.org/doc/man/code.html)
to add behaviour which is specific to Elixir. Almost all of the functions in this module
have global side e... | 35.253073 | 145 | 0.690514 |
e9d78850e8261a19d426e3574f1b874765b2e742 | 6,321 | ex | Elixir | lib/mix/lib/mix/tasks/deps.ex | atomkirk/elixir | 319109b650ad478d6941fef85a48250f9b2c40d3 | [
"Apache-2.0"
] | 1 | 2018-08-08T12:15:48.000Z | 2018-08-08T12:15:48.000Z | lib/mix/lib/mix/tasks/deps.ex | atomkirk/elixir | 319109b650ad478d6941fef85a48250f9b2c40d3 | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/tasks/deps.ex | atomkirk/elixir | 319109b650ad478d6941fef85a48250f9b2c40d3 | [
"Apache-2.0"
] | null | null | null | defmodule Mix.Tasks.Deps do
use Mix.Task
import Mix.Dep, only: [load_on_environment: 1, format_dep: 1, format_status: 1, check_lock: 1]
@shortdoc "Lists dependencies and their status"
@moduledoc ~S"""
Lists all dependencies and their status.
Dependencies must be specified in the `mix.exs` file in one of... | 37.625 | 105 | 0.688182 |
e9d7be6e6bc9b32395f3d6fc3d3bdfc755dd75bb | 4,356 | ex | Elixir | lib/oli/utils/database.ex | ChristianMurphy/oli-torus | ffeee4996b66b7c6c6eb3e0082d030b8cc6cea97 | [
"MIT"
] | null | null | null | lib/oli/utils/database.ex | ChristianMurphy/oli-torus | ffeee4996b66b7c6c6eb3e0082d030b8cc6cea97 | [
"MIT"
] | null | null | null | lib/oli/utils/database.ex | ChristianMurphy/oli-torus | ffeee4996b66b7c6c6eb3e0082d030b8cc6cea97 | [
"MIT"
] | null | null | null | defmodule Oli.Utils.Database do
alias Oli.Repo
require Logger
@doc """
Explains the query plan for a given raw, string based query. Options to either inline log
the result and return the query, or to just return to analyzed result. Results can be in either
json, text, or yaml format. Default is to log o... | 26.240964 | 98 | 0.640037 |
e9d7d701756d2d84d8b2fdb525f85b493588f561 | 2,048 | exs | Elixir | distillator_umbrella/config/prod.exs | MadPumpkin/ex_distillator | 6153c9c25e7ccc9117fb4db053a7df9d703d58ff | [
"Apache-2.0"
] | null | null | null | distillator_umbrella/config/prod.exs | MadPumpkin/ex_distillator | 6153c9c25e7ccc9117fb4db053a7df9d703d58ff | [
"Apache-2.0"
] | null | null | null | distillator_umbrella/config/prod.exs | MadPumpkin/ex_distillator | 6153c9c25e7ccc9117fb4db053a7df9d703d58ff | [
"Apache-2.0"
] | null | null | null | use Mix.Config
# For production, don't forget to configure the url host
# to something meaningful, Phoenix uses this information
# when generating URLs.
#
# Note we also include the path to a cache manifest
# containing the digested version of static files. This
# manifest is generated by the `mix phx.digest` task,
# ... | 36.571429 | 66 | 0.719727 |
e9d7e1345cc8ebb8f200d93507a76c4fc80c7b92 | 2,355 | ex | Elixir | lib/tasks/dig.ex | codedge-llc/dig | cdbe21dcb3291497b024c6cdc6e9fba0ca3a07da | [
"MIT"
] | null | null | null | lib/tasks/dig.ex | codedge-llc/dig | cdbe21dcb3291497b024c6cdc6e9fba0ca3a07da | [
"MIT"
] | null | null | null | lib/tasks/dig.ex | codedge-llc/dig | cdbe21dcb3291497b024c6cdc6e9fba0ca3a07da | [
"MIT"
] | null | null | null | defmodule Mix.Tasks.Dig do
use Mix.Task
def run(_args) do
alias Mix.Tasks.Compile.Elixir, as: E
import Mix.Compilers.Elixir, only: [read_manifest: 2, source: 1, source: 2, module: 1]
module_sources =
for manifest <- E.manifests(),
manifest_data = read_manifest(manifest, ""),
modu... | 26.761364 | 95 | 0.540552 |
e9d81d6c8f9dcdefc6e33a7b3d66c34ea9efd98d | 1,068 | exs | Elixir | test/states_language_d3_serializer_test.exs | CityBaseInc/states_language | 474b8a46f392b62d03c5ff5ed7f10f576b3166d7 | [
"MIT"
] | 67 | 2019-12-04T07:31:58.000Z | 2020-04-02T21:52:44.000Z | test/states_language_d3_serializer_test.exs | CityBaseInc/states_language | 474b8a46f392b62d03c5ff5ed7f10f576b3166d7 | [
"MIT"
] | 5 | 2019-12-04T18:53:08.000Z | 2020-04-02T19:02:34.000Z | test/states_language_d3_serializer_test.exs | CityBaseInc/states_language | 474b8a46f392b62d03c5ff5ed7f10f576b3166d7 | [
"MIT"
] | 7 | 2019-12-05T11:41:48.000Z | 2020-04-02T14:08:27.000Z | defmodule StatesLanguageD3SerializerTest do
require Logger
use ExUnit.Case, async: true
alias StatesLanguage.Serializer.D3Graph
alias StatesLanguage.Graph
test "graph structure is maintained when serializing to d3 graph format" do
"test/support/"
|> File.ls!()
|> Enum.each(fn file ->
if Str... | 22.25 | 77 | 0.565543 |
e9d823c7bf98355905cba982927a7ff93b10e11a | 4,203 | ex | Elixir | lib/type_check/builtin/fixed_map.ex | ktec/elixir-type_check | 42bde40b4a67e999653c5336294dc651c98a747a | [
"MIT"
] | null | null | null | lib/type_check/builtin/fixed_map.ex | ktec/elixir-type_check | 42bde40b4a67e999653c5336294dc651c98a747a | [
"MIT"
] | null | null | null | lib/type_check/builtin/fixed_map.ex | ktec/elixir-type_check | 42bde40b4a67e999653c5336294dc651c98a747a | [
"MIT"
] | null | null | null | defmodule TypeCheck.Builtin.FixedMap do
@moduledoc """
Checks whether the value is a list with the expected elements
On failure returns a problem tuple with:
- `:not_a_map` if the value is not a map
- `:missing_keys` if the value does not have all of the expected keys. The extra information contains in this ... | 30.904412 | 171 | 0.577207 |
e9d832fc15907c71d8d13a7f056197d6c8e1248d | 1,464 | exs | Elixir | test/tirexs/index/settings_test.exs | williamtran29/tirex_aws | 8affc13d32978db47e083bec7ae11c5546f89395 | [
"Apache-2.0"
] | null | null | null | test/tirexs/index/settings_test.exs | williamtran29/tirex_aws | 8affc13d32978db47e083bec7ae11c5546f89395 | [
"Apache-2.0"
] | null | null | null | test/tirexs/index/settings_test.exs | williamtran29/tirex_aws | 8affc13d32978db47e083bec7ae11c5546f89395 | [
"Apache-2.0"
] | null | null | null | defmodule Tirexs.Index.SettingsTest do
use ExUnit.Case
import Tirexs.Index.Settings
test "settings by default" do
index = [name: "bear_test"]
settings do
analysis do
end
blocks []
translog []
cache []
end
expected = [analysis: [], index: [cache: [filter:... | 33.272727 | 445 | 0.637978 |
e9d84fe49c3118c0e34f98ae00b359b0b7d7dbfa | 22,046 | ex | Elixir | lib/phoenix/channel.ex | matthewp/phoenix | af86b95db365faada58d326e98de65c811690bc7 | [
"MIT"
] | null | null | null | lib/phoenix/channel.ex | matthewp/phoenix | af86b95db365faada58d326e98de65c811690bc7 | [
"MIT"
] | 2 | 2022-02-19T12:43:20.000Z | 2022-02-27T23:30:32.000Z | lib/phoenix/channel.ex | matthewp/phoenix | af86b95db365faada58d326e98de65c811690bc7 | [
"MIT"
] | null | null | null | defmodule Phoenix.Channel do
@moduledoc ~S"""
Defines a Phoenix Channel.
Channels provide a means for bidirectional communication from clients that
integrate with the `Phoenix.PubSub` layer for soft-realtime functionality.
## Topics & Callbacks
Every time you join a channel, you need to choose which part... | 33.969183 | 107 | 0.653633 |
e9d85642c30f18959f73eb8f94a1c349a8b3eacb | 1,216 | ex | Elixir | apps/model/lib/recordable.ex | fjlanasa/api | c39bc393aea572bfb81754b2ea1adf9dda9ce24a | [
"MIT"
] | 62 | 2019-01-17T12:34:39.000Z | 2022-03-20T21:49:47.000Z | apps/model/lib/recordable.ex | fjlanasa/api | c39bc393aea572bfb81754b2ea1adf9dda9ce24a | [
"MIT"
] | 375 | 2019-02-13T15:30:50.000Z | 2022-03-30T18:50:41.000Z | apps/model/lib/recordable.ex | fjlanasa/api | c39bc393aea572bfb81754b2ea1adf9dda9ce24a | [
"MIT"
] | 14 | 2019-01-16T19:35:57.000Z | 2022-02-26T18:55:54.000Z | defmodule Recordable do
@moduledoc """
Converts a `struct` to a record that can be stores in ETS and mnesia and back out again.
"""
defmacro recordable(opts) do
keys_or_kvs = Macro.expand(opts, __CALLER__)
keys =
for key_or_kv <- keys_or_kvs do
case key_or_kv do
{key, _} -> key... | 23.384615 | 90 | 0.638158 |
e9d86524a8255554adf66558aeea1d3be4978d43 | 39,515 | ex | Elixir | clients/compute/lib/google_api/compute/v1/api/subnetworks.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/api/subnetworks.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/api/subnetworks.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... | 51.251621 | 1,213 | 0.690674 |
e9d8686e6c6de89858cd20b0f3a5b74765ec6b01 | 1,649 | ex | Elixir | .clext/ex-examples/gh.ex | peterwwillis/clinst | 0fff3e125ca3dbb1bdba2d4dde96170c8b644a1f | [
"MIT"
] | null | null | null | .clext/ex-examples/gh.ex | peterwwillis/clinst | 0fff3e125ca3dbb1bdba2d4dde96170c8b644a1f | [
"MIT"
] | null | null | null | .clext/ex-examples/gh.ex | peterwwillis/clinst | 0fff3e125ca3dbb1bdba2d4dde96170c8b644a1f | [
"MIT"
] | null | null | null | #!/usr/bin/env sh
set -eu
[ "${DEBUG:-0}" = "1" ] && set -x
### Extension-specific variables
CLINST_E_NAME="gh"
CLINST_E_REV="0.1.0"
CLINST_E_BIN_NAME="${CLINST_E_BIN_NAME:-$CLINST_E_NAME}"
CLINST_E_DLFILE="${CLINST_E_DLFILE:-$CLINST_E_NAME}.tgz"
CLINST_E_OS="\$(uname_lc)"
CLINST_E_ARCH="\$(uname_m_amd)"
CLINST_E_GHRE... | 49.969697 | 156 | 0.671316 |
e9d86fde7f7277e4ebacca0befca484e0436a1cf | 1,044 | ex | Elixir | lib/utilities.ex | Zac-Garby/ultradark_core | 639f269e9a416ea034df78ac1c24703a23457840 | [
"MIT"
] | null | null | null | lib/utilities.ex | Zac-Garby/ultradark_core | 639f269e9a416ea034df78ac1c24703a23457840 | [
"MIT"
] | null | null | null | lib/utilities.ex | Zac-Garby/ultradark_core | 639f269e9a416ea034df78ac1c24703a23457840 | [
"MIT"
] | null | null | null | defmodule UltraDark.Utilities do
def sha_base16(input) do
:sha256
|> :crypto.hash(input)
|> Base.encode16()
end
def sha3_base16(list) when is_list(list) do
list
|> Enum.join()
|> sha3_base16()
end
# Concatintes the list items together to a string, hashes the block header with kecca... | 28.216216 | 131 | 0.697318 |
e9d88f57b1a96994357c99555c9cc28533000302 | 572 | exs | Elixir | config/test.exs | ojizero/soulerl | 386fe71d2dd000571aa3bab284673be1ac77507b | [
"MIT"
] | null | null | null | config/test.exs | ojizero/soulerl | 386fe71d2dd000571aa3bab284673be1ac77507b | [
"MIT"
] | null | null | null | config/test.exs | ojizero/soulerl | 386fe71d2dd000571aa3bab284673be1ac77507b | [
"MIT"
] | null | null | null | import Config
# We don't run a server during test. If one is required,
# you can enable the server option below.
config :soulerl, SoulerlWeb.Endpoint,
http: [ip: {127, 0, 0, 1}, port: 4002],
secret_key_base: "tGeMwc5KE3IrnvNj2qreyw3Mbv3qIoIwW5beLuPkv3/A4E4XRUweieVo1w9xrmNO",
server: false
# In test we don't sen... | 30.105263 | 86 | 0.763986 |
e9d8ae63f78925b2f0283d05605dd7a43a9519dd | 1,119 | ex | Elixir | lib/freegiving/fundraisers/payment_notification.ex | jfcloutier/freegiving | 2ab3821595996fc295c5b55515d6f60cbce05181 | [
"Unlicense"
] | null | null | null | lib/freegiving/fundraisers/payment_notification.ex | jfcloutier/freegiving | 2ab3821595996fc295c5b55515d6f60cbce05181 | [
"Unlicense"
] | null | null | null | lib/freegiving/fundraisers/payment_notification.ex | jfcloutier/freegiving | 2ab3821595996fc295c5b55515d6f60cbce05181 | [
"Unlicense"
] | null | null | null | defmodule Freegiving.Fundraisers.PaymentNotification do
use Ecto.Schema
import Ecto.Changeset, warn: false
alias Freegiving.Fundraisers.Payment
alias __MODULE__
use Freegiving.Eventing
alias Freegiving.Repo
schema "payment_notifications" do
field :amount, :integer
field :paid_from_email, :string
... | 22.836735 | 55 | 0.675603 |
e9d8c7a51ba3f67a8995456abf904505b011426e | 1,887 | ex | Elixir | lib/cforum_web/controllers/api/v1/threads/admin_controller.ex | campingrider/cforum_ex | cf27684c47d6dc26c9c37a946f1c729a79d27c70 | [
"MIT"
] | null | null | null | lib/cforum_web/controllers/api/v1/threads/admin_controller.ex | campingrider/cforum_ex | cf27684c47d6dc26c9c37a946f1c729a79d27c70 | [
"MIT"
] | null | null | null | lib/cforum_web/controllers/api/v1/threads/admin_controller.ex | campingrider/cforum_ex | cf27684c47d6dc26c9c37a946f1c729a79d27c70 | [
"MIT"
] | null | null | null | defmodule CforumWeb.Api.V1.Threads.AdminController do
use CforumWeb, :controller
alias Cforum.Threads
alias Cforum.ConfigManager
def sticky(conn, %{"slug" => slug}) do
Threads.mark_thread_sticky(conn.assigns.current_user, conn.assigns.thread)
render_thread(conn, slug)
end
def unsticky(conn, %{"sl... | 32.534483 | 115 | 0.715421 |
e9d8ecf32f22fcbb89da43cd4341eacfe4ae4d67 | 4,124 | ex | Elixir | lib/mechanize/form/select_list.ex | paultannenbaum/mechanize | 97fd54c0421689026c01b9bf38206fa74e8f7e1a | [
"MIT"
] | 25 | 2020-06-26T02:21:35.000Z | 2022-03-05T18:51:46.000Z | lib/mechanize/form/select_list.ex | paultannenbaum/mechanize | 97fd54c0421689026c01b9bf38206fa74e8f7e1a | [
"MIT"
] | 29 | 2019-07-02T21:50:06.000Z | 2020-05-28T18:34:01.000Z | lib/mechanize/form/select_list.ex | paultannenbaum/mechanize | 97fd54c0421689026c01b9bf38206fa74e8f7e1a | [
"MIT"
] | 4 | 2020-06-24T02:11:47.000Z | 2022-03-06T00:50:59.000Z | defmodule Mechanize.Form.SelectList do
@moduledoc false
alias Mechanize.Page.{Element, Elementable}
alias Mechanize.Form.Option
alias Mechanize.Query
alias Mechanize.Query.BadQueryError
@derive [Elementable]
@enforce_keys [:element]
defstruct element: nil, name: nil, options: []
@type t :: %__MODUL... | 24.258824 | 94 | 0.615907 |
e9d93a13344f23b38517f2946d2f1b93f1200419 | 5,449 | ex | Elixir | lib/sql_dust/utils/join_utils.ex | rodrigo-dap/sql_dust | 8fc06bbdb103bd013509b3f5baf071c4584f0775 | [
"MIT",
"Unlicense"
] | 66 | 2016-02-04T21:31:43.000Z | 2016-03-14T19:41:26.000Z | lib/sql_dust/utils/join_utils.ex | rodrigo-dap/sql_dust | 8fc06bbdb103bd013509b3f5baf071c4584f0775 | [
"MIT",
"Unlicense"
] | 11 | 2016-03-22T11:17:43.000Z | 2018-04-03T07:30:10.000Z | lib/sql_dust/utils/join_utils.ex | rodrigo-dap/sql_dust | 8fc06bbdb103bd013509b3f5baf071c4584f0775 | [
"MIT",
"Unlicense"
] | 17 | 2016-05-09T16:42:14.000Z | 2021-09-21T22:30:23.000Z | defmodule SqlDust.JoinUtils do
alias SqlDust.MapUtils
import SqlDust.SchemaUtils
import SqlDust.PathUtils
import SqlDust.ScanUtils
def derive_joins(path, options) do
{path, association} = dissect_path(path, options)
derive_schema(path, association, options)
|> derive_table_joins(path, associat... | 38.104895 | 157 | 0.648009 |
e9d9657b6251b0ee043cbd11bc0499fae6715209 | 696 | ex | Elixir | lib/leaf_through/html.ex | gentlelionstudios/leaf_through | 5e104c488cc78fc2d8b0e79582bed1aa8552d82f | [
"Apache-2.0"
] | null | null | null | lib/leaf_through/html.ex | gentlelionstudios/leaf_through | 5e104c488cc78fc2d8b0e79582bed1aa8552d82f | [
"Apache-2.0"
] | null | null | null | lib/leaf_through/html.ex | gentlelionstudios/leaf_through | 5e104c488cc78fc2d8b0e79582bed1aa8552d82f | [
"Apache-2.0"
] | null | null | null | defmodule LeafThrough.Html do
@moduledoc """
Provides functions that generate HTML pagination links.
"""
@doc """
Generate the paging links given the pagination map.
"""
def leaf_through(map) do
if map.total_count > 0 do
start_list() <> page_links(map) <> end_list()
else
""
end
... | 24 | 80 | 0.594828 |
e9d975c6d92f91bcd77769c11936f37855a730f7 | 1,263 | ex | Elixir | lib/aspekt_web/views/error_helpers.ex | wjanssens/aspekt-elixir | 3b4926fa37cc056cafe7204589e0cac11289c6a8 | [
"Apache-2.0"
] | null | null | null | lib/aspekt_web/views/error_helpers.ex | wjanssens/aspekt-elixir | 3b4926fa37cc056cafe7204589e0cac11289c6a8 | [
"Apache-2.0"
] | null | null | null | lib/aspekt_web/views/error_helpers.ex | wjanssens/aspekt-elixir | 3b4926fa37cc056cafe7204589e0cac11289c6a8 | [
"Apache-2.0"
] | null | null | null | defmodule AspektWeb.ErrorHelpers do
@moduledoc """
Conveniences for translating and building error messages.
"""
use Phoenix.HTML
@doc """
Generates tag for inlined form input errors.
"""
def error_tag(form, field) do
Enum.map(Keyword.get_values(form.errors, field), fn (error) ->
content_tag... | 30.804878 | 75 | 0.669834 |
e9d98c48adbee92a60590a9ca6726bdcf35a42a3 | 924 | exs | Elixir | examples/simple/config/config.exs | noma4i/ecto_south | 0251b70a0afbd670e5bb86878d0fc098f7982407 | [
"MIT"
] | 1 | 2019-04-16T11:31:37.000Z | 2019-04-16T11:31:37.000Z | examples/simple/config/config.exs | noma4i/ecto_south | 0251b70a0afbd670e5bb86878d0fc098f7982407 | [
"MIT"
] | null | null | null | examples/simple/config/config.exs | noma4i/ecto_south | 0251b70a0afbd670e5bb86878d0fc098f7982407 | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
#
# This configuration file is loaded before any dependency and
# is restricted to this project.
use Mix.Config
# General application configuration
config :simple,
ecto_repos: [Simple.Repo]
# Co... | 33 | 86 | 0.75974 |
e9d9a39cbdc839fc26c01a2ce72b0cc618482545 | 8,269 | exs | Elixir | apps/discovery_api/test/unit/discovery_api_web/controllers/tableau_controller_query_describe_test.exs | calebcarroll1/smartcitiesdata | b0f03496f6c592c82ba14aebf6c5996311cf3cd0 | [
"Apache-2.0"
] | 26 | 2019-09-20T23:54:45.000Z | 2020-08-20T14:23:32.000Z | apps/discovery_api/test/unit/discovery_api_web/controllers/tableau_controller_query_describe_test.exs | calebcarroll1/smartcitiesdata | b0f03496f6c592c82ba14aebf6c5996311cf3cd0 | [
"Apache-2.0"
] | 757 | 2019-08-15T18:15:07.000Z | 2020-09-18T20:55:31.000Z | apps/discovery_api/test/unit/discovery_api_web/controllers/tableau_controller_query_describe_test.exs | calebcarroll1/smartcitiesdata | b0f03496f6c592c82ba14aebf6c5996311cf3cd0 | [
"Apache-2.0"
] | 9 | 2019-11-12T16:43:46.000Z | 2020-03-25T16:23:16.000Z | defmodule DiscoveryApiWeb.TableauControllerQueryDescribeTest do
use DiscoveryApiWeb.ConnCase
use Placebo
alias DiscoveryApi.Data.Model
alias DiscoveryApiWeb.Utilities.ModelAccessUtils
alias DiscoveryApi.Services.PrestoService
setup do
public_one_dataset =
DiscoveryApi.Test.Helper.sample_model(%{
... | 31.203774 | 135 | 0.588584 |
e9d9ddc538a19e6c5b254a63363faa0f61e357e7 | 5,648 | ex | Elixir | lib/elixir_ex_aliyun_ots_table_store_search_sum_aggregation_result.ex | hou8/tablestore_protos | 1a3223326b92bbe196d57ce4dd19b5a8db1c728d | [
"MIT"
] | null | null | null | lib/elixir_ex_aliyun_ots_table_store_search_sum_aggregation_result.ex | hou8/tablestore_protos | 1a3223326b92bbe196d57ce4dd19b5a8db1c728d | [
"MIT"
] | 1 | 2022-02-08T06:37:02.000Z | 2022-02-08T06:37:02.000Z | lib/elixir_ex_aliyun_ots_table_store_search_sum_aggregation_result.ex | hou8/tablestore_protos | 1a3223326b92bbe196d57ce4dd19b5a8db1c728d | [
"MIT"
] | 2 | 2022-01-24T06:13:03.000Z | 2022-01-24T08:33:41.000Z | # credo:disable-for-this-file
defmodule(ExAliyunOts.TableStoreSearch.SumAggregationResult) do
@moduledoc false
(
defstruct(value: nil)
(
(
@spec encode(struct) :: {:ok, iodata} | {:error, any}
def(encode(msg)) do
try do
{:ok, encode!(msg)}
rescue
... | 25.327354 | 94 | 0.484596 |
e9da915e335c9b03e1f1d6422cf496693656dd52 | 1,493 | ex | Elixir | clients/dataproc/lib/google_api/dataproc/v1/model/encryption_config.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-10-01T09:20:41.000Z | 2021-10-01T09:20:41.000Z | clients/dataproc/lib/google_api/dataproc/v1/model/encryption_config.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/dataproc/lib/google_api/dataproc/v1/model/encryption_config.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 31.765957 | 161 | 0.74146 |
e9da949999669830d007db056920227db73e49aa | 435 | exs | Elixir | test/lotus/pagination_test.exs | code-shoily/lotus | d14958956103f2376d51974f40bcc7d7c59c2ad9 | [
"MIT"
] | 3 | 2021-09-20T10:34:15.000Z | 2021-09-20T16:23:07.000Z | test/lotus/pagination_test.exs | code-shoily/lotus | d14958956103f2376d51974f40bcc7d7c59c2ad9 | [
"MIT"
] | null | null | null | test/lotus/pagination_test.exs | code-shoily/lotus | d14958956103f2376d51974f40bcc7d7c59c2ad9 | [
"MIT"
] | 1 | 2021-11-23T13:10:27.000Z | 2021-11-23T13:10:27.000Z | defmodule Lotus.PaginationTest do
use Lotus.Support.ConnCase, async: true
@moduletag :component_pagination
alias Lotus.Pagination
test "Creates a Pagination" do
html =
render_surface do
~F"""
<Pagination>
PAGINATION
</Pagination>
"""
end
assert h... | 17.4 | 41 | 0.542529 |
e9dabd7118470382e92a7f8c12ae07a96a52c2c8 | 2,161 | ex | Elixir | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_bucketing_config.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_bucketing_config.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_bucketing_config.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 ... | 39.290909 | 151 | 0.756131 |
e9dacc9a338a3acb21184cbafca17cb6ffa6787d | 2,190 | exs | Elixir | apps/subs/test/use_cases/subscriptions/create_subscription_test.exs | gitter-badger/opensubs.io | 76d5b4d355a530c8f496efe3ac2095d87f078997 | [
"MIT"
] | 36 | 2018-02-03T10:58:51.000Z | 2020-09-19T20:52:17.000Z | apps/subs/test/use_cases/subscriptions/create_subscription_test.exs | joaquimadraz/subs | 9a26144ed660d5ece849ee447a9e5de53a311408 | [
"MIT"
] | 8 | 2018-01-17T17:15:48.000Z | 2020-07-06T08:56:54.000Z | apps/subs/test/use_cases/subscriptions/create_subscription_test.exs | joaquimadraz/subs | 9a26144ed660d5ece849ee447a9e5de53a311408 | [
"MIT"
] | 10 | 2018-05-21T18:20:32.000Z | 2022-01-29T14:25:48.000Z | defmodule Subs.Test.UseCases.Subscriptions.CreateSubscriptionTest do
use Subs.DataCase
import Subs.Test.Support.Factory
alias Subs.UseCases.Subscriptions.CreateSubscription
setup do
[user: insert(:user)]
end
test "returns error for missing required params", %{user: user} do
{:error, {error, %{chan... | 36.5 | 90 | 0.710046 |
e9dadf54d5a3212f476d12918a55cf2cd98286a8 | 1,650 | ex | Elixir | lib/mix/tasks/ecto.migrate.ex | timgestson/ecto | 1c1eb6d322db04cfa48a4fc81da1332e91adbc1f | [
"Apache-2.0"
] | null | null | null | lib/mix/tasks/ecto.migrate.ex | timgestson/ecto | 1c1eb6d322db04cfa48a4fc81da1332e91adbc1f | [
"Apache-2.0"
] | null | null | null | lib/mix/tasks/ecto.migrate.ex | timgestson/ecto | 1c1eb6d322db04cfa48a4fc81da1332e91adbc1f | [
"Apache-2.0"
] | null | null | null | defmodule Mix.Tasks.Ecto.Migrate do
use Mix.Task
import Mix.Ecto
@shortdoc "Runs migrations up on a repo"
@moduledoc """
Runs the pending migrations for the given repository.
By default, migrations are expected at "priv/YOUR_REPO/migrations"
directory of the current application but it can be configured... | 28.947368 | 79 | 0.658182 |
e9db1132229ce36f6b60363fb3b0f3787c966d08 | 113 | ex | Elixir | lib/pokemon_api/repo.ex | pedrohsampaioo/pokemon_api | 805fadd72f973fa42c6704e6b674d715ea34ab49 | [
"MIT"
] | null | null | null | lib/pokemon_api/repo.ex | pedrohsampaioo/pokemon_api | 805fadd72f973fa42c6704e6b674d715ea34ab49 | [
"MIT"
] | null | null | null | lib/pokemon_api/repo.ex | pedrohsampaioo/pokemon_api | 805fadd72f973fa42c6704e6b674d715ea34ab49 | [
"MIT"
] | null | null | null | defmodule PokemonApi.Repo do
use Ecto.Repo,
otp_app: :pokemon_api,
adapter: Ecto.Adapters.Postgres
end
| 18.833333 | 35 | 0.743363 |
e9db11b81ddb21bd08a90c0d4b7aabf0b6cc46b9 | 11,061 | ex | Elixir | lib/pow/ecto/schema/changeset.ex | crooke/pow | 34ef1282260f2765b0b3df14485771b5e9c2094b | [
"MIT"
] | 1 | 2021-06-25T10:36:01.000Z | 2021-06-25T10:36:01.000Z | lib/pow/ecto/schema/changeset.ex | crooke/pow | 34ef1282260f2765b0b3df14485771b5e9c2094b | [
"MIT"
] | null | null | null | lib/pow/ecto/schema/changeset.ex | crooke/pow | 34ef1282260f2765b0b3df14485771b5e9c2094b | [
"MIT"
] | null | null | null | defmodule Pow.Ecto.Schema.Changeset do
@moduledoc """
Handles changesets methods for Pow schema.
These methods should never be called directly, but instead the methods
build in macros in `Pow.Ecto.Schema` should be used. This is to ensure
that only compile time configuration is used.
## Configuration opti... | 33.722561 | 120 | 0.692433 |
e9db3574ffbc8efb91e0ee2e5b34e1ad819a34ef | 781 | ex | Elixir | lib/openflow/actions/nx_fin_timeout.ex | shun159/tres | 1e3e7f78ba1aa4f184d4be70300e5f4703d50a2f | [
"Beerware"
] | 5 | 2019-05-25T02:25:13.000Z | 2020-10-06T17:00:03.000Z | lib/openflow/actions/nx_fin_timeout.ex | shun159/tres | 1e3e7f78ba1aa4f184d4be70300e5f4703d50a2f | [
"Beerware"
] | 5 | 2018-03-29T14:42:10.000Z | 2019-11-19T07:03:09.000Z | lib/openflow/actions/nx_fin_timeout.ex | shun159/tres | 1e3e7f78ba1aa4f184d4be70300e5f4703d50a2f | [
"Beerware"
] | 1 | 2019-03-30T20:48:27.000Z | 2019-03-30T20:48:27.000Z | defmodule Openflow.Action.NxFinTimeout do
defstruct(
idle_timeout: 0,
hard_timeout: 0
)
@experimenter 0x00002320
@nxast 19
alias __MODULE__
alias Openflow.Action.Experimenter
@spec new(Keyword.t()) :: %NxFinTimeout{}
def new(options) do
%NxFinTimeout{
idle_timeout: options[:idle_tim... | 22.970588 | 96 | 0.672215 |
e9db73003171a21b9dcb81f4900c390f395b3751 | 476 | ex | Elixir | lib/icon/schema/types/string.ex | alexdesousa/icon | 2b363582b129bc0485a39e9845d2a18eabd2f6d6 | [
"MIT"
] | 4 | 2022-01-27T09:10:05.000Z | 2022-03-09T04:38:13.000Z | lib/icon/schema/types/string.ex | alexdesousa/icon | 2b363582b129bc0485a39e9845d2a18eabd2f6d6 | [
"MIT"
] | null | null | null | lib/icon/schema/types/string.ex | alexdesousa/icon | 2b363582b129bc0485a39e9845d2a18eabd2f6d6 | [
"MIT"
] | null | null | null | defmodule Icon.Schema.Types.String do
@moduledoc """
This module defines an ICON 2.0 string.
"""
use Icon.Schema.Type
@typedoc """
A string.
"""
@type t :: binary()
@spec load(any()) :: {:ok, t()} | :error
@impl Icon.Schema.Type
def load(value)
def load(str) when is_binary(str), do: {:ok, str}... | 21.636364 | 51 | 0.613445 |
e9db891b4f613a9475ec9aa67bc432978f238b6b | 2,826 | exs | Elixir | test/phoenix/endpoint/error_handler_test.exs | knewter/phoenix | 191909d97511ab99f9bbcc776cba9988c8b07596 | [
"MIT"
] | null | null | null | test/phoenix/endpoint/error_handler_test.exs | knewter/phoenix | 191909d97511ab99f9bbcc776cba9988c8b07596 | [
"MIT"
] | null | null | null | test/phoenix/endpoint/error_handler_test.exs | knewter/phoenix | 191909d97511ab99f9bbcc776cba9988c8b07596 | [
"MIT"
] | null | null | null | defmodule Phoenix.Endpoint.ErrorHandlerTest do
use ExUnit.Case, async: true
use RouterHelper
view = __MODULE__
def render("404.html", %{kind: kind, reason: _reason, stack: _stack, conn: conn}) do
"Got 404 from #{kind} with #{conn.method}"
end
def render("415.html", %{kind: kind, reason: _reason, stac... | 25.00885 | 101 | 0.632343 |
e9db90c776d9f22ea06fea2d364bb86af63e9e2c | 547 | ex | Elixir | test/support/case.ex | slab/delta-elixir | d22a9d89cb939e134420baa23140534a1ac26b33 | [
"MIT"
] | 224 | 2021-08-08T20:27:01.000Z | 2022-03-28T20:07:47.000Z | test/support/case.ex | slab/delta-elixir | d22a9d89cb939e134420baa23140534a1ac26b33 | [
"MIT"
] | 1 | 2021-12-12T18:48:16.000Z | 2021-12-12T23:12:25.000Z | test/support/case.ex | slab/delta-elixir | d22a9d89cb939e134420baa23140534a1ac26b33 | [
"MIT"
] | 4 | 2021-08-16T22:16:38.000Z | 2021-12-21T20:52:24.000Z | defmodule Delta.Support.Case do
use ExUnit.CaseTemplate
using do
quote do
alias Delta
alias Delta.{Op, Attr}
alias Delta.Support.TestEmbed
end
end
setup tags do
setup_embeds(tags[:custom_embeds])
:ok
end
defp setup_embeds(embeds) when is_list(embeds) do
previous = Ap... | 21.88 | 76 | 0.694698 |
e9dba28b72bc1c947a467061ec502658a6d98283 | 77 | ex | Elixir | priv/templates/coherence.install/views/coherence/email_view.ex | remigijusj/coherence | 36fe35b0bfe7ac63b44b4046f3ba62f2fe69603a | [
"MIT"
] | 1 | 2022-03-06T16:30:21.000Z | 2022-03-06T16:30:21.000Z | priv/templates/coherence.install/views/coherence/email_view.ex | ysbaddaden/coherence | 5c4f26d3c87f6a16638adf623d041e2723ccf2b8 | [
"MIT"
] | null | null | null | priv/templates/coherence.install/views/coherence/email_view.ex | ysbaddaden/coherence | 5c4f26d3c87f6a16638adf623d041e2723ccf2b8 | [
"MIT"
] | 2 | 2017-09-22T16:54:36.000Z | 2021-11-09T20:55:58.000Z | defmodule Coherence.EmailView do
use <%= base %>.Coherence.Web, :view
end
| 15.4 | 38 | 0.714286 |
e9dbb8150c068d1759ce9cae4c8b24c8342a0011 | 23,986 | ex | Elixir | lib/timezone/timezone.ex | algorocom/timex | 0772d4a82eb3f9d9ee3d2f5a5513fc18e3487340 | [
"MIT"
] | null | null | null | lib/timezone/timezone.ex | algorocom/timex | 0772d4a82eb3f9d9ee3d2f5a5513fc18e3487340 | [
"MIT"
] | null | null | null | lib/timezone/timezone.ex | algorocom/timex | 0772d4a82eb3f9d9ee3d2f5a5513fc18e3487340 | [
"MIT"
] | null | null | null | defmodule Timex.Timezone do
@moduledoc """
This module is used for looking up the timezone information for
a given point in time, in the desired zone. Timezones are dependent
not only on locale, but the date and time for which you are querying.
For instance, the timezone offset from UTC for `Europe/Moscow` is... | 31.395288 | 115 | 0.592888 |
e9dbf2a04027f6f3a39451e76a732e58b56dade7 | 1,813 | exs | Elixir | elixir/rocketpay_v1/test/rocketpay_web/controllers/accounts_controller_test.exs | HRsniper/Next-Level-Week-4 | e8a4e33311513e354b6dc4efd79daa22feae1633 | [
"MIT"
] | null | null | null | elixir/rocketpay_v1/test/rocketpay_web/controllers/accounts_controller_test.exs | HRsniper/Next-Level-Week-4 | e8a4e33311513e354b6dc4efd79daa22feae1633 | [
"MIT"
] | null | null | null | elixir/rocketpay_v1/test/rocketpay_web/controllers/accounts_controller_test.exs | HRsniper/Next-Level-Week-4 | e8a4e33311513e354b6dc4efd79daa22feae1633 | [
"MIT"
] | null | null | null | defmodule RocketpayWeb.AccountsControllerTest do
use RocketpayWeb.ConnCase, async: true
alias Rocketpay.{Account, User}
describe "deposit/2" do
# Define um retorno de chamada a ser executado antes de cada teste em um caso.
setup %{conn: connection} do
params = %{
name: "rafael",
pa... | 29.241935 | 92 | 0.616106 |
e9dbf41320ad61d74ac25bafd324934f3188036e | 7,838 | exs | Elixir | lib/elixir/test/elixir/code_test.exs | dogatuncay/elixir | 42875b97f858a31d3cbb8e1090ffb4d6c443ba75 | [
"Apache-2.0"
] | 1 | 2017-05-29T02:02:38.000Z | 2017-05-29T02:02:38.000Z | lib/elixir/test/elixir/code_test.exs | dogatuncay/elixir | 42875b97f858a31d3cbb8e1090ffb4d6c443ba75 | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/code_test.exs | dogatuncay/elixir | 42875b97f858a31d3cbb8e1090ffb4d6c443ba75 | [
"Apache-2.0"
] | null | null | null | Code.require_file("test_helper.exs", __DIR__)
defmodule CodeTest do
use ExUnit.Case, async: true
doctest Code
import PathHelpers
def genmodule(name) do
defmodule name do
Kernel.LexicalTracker.references(__ENV__.lexical_tracker)
end
end
contents =
quote do
defmodule CodeTest.Sampl... | 30.617188 | 96 | 0.658331 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.