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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3314bf4b43d56aa6376fd1e8ac61df26b89d1730 | 2,919 | exs | Elixir | test/test_helper.exs | tonjo/oban | 9b1a6edfec2a4d225ab6969f8886dc021e2df34c | [
"Apache-2.0"
] | null | null | null | test/test_helper.exs | tonjo/oban | 9b1a6edfec2a4d225ab6969f8886dc021e2df34c | [
"Apache-2.0"
] | null | null | null | test/test_helper.exs | tonjo/oban | 9b1a6edfec2a4d225ab6969f8886dc021e2df34c | [
"Apache-2.0"
] | null | null | null | Logger.configure(level: :warn)
ExUnit.start()
Oban.Test.Repo.start_link()
defmodule Oban.Integration.Worker do
use Oban.Worker
@impl Worker
def new(args, opts) do
opts = Keyword.merge(__opts__(), opts)
args
|> Map.new()
|> Map.put_new(:bin_pid, pid_to_bin())
|> Job.new(opts)
end
@imp... | 19.078431 | 92 | 0.575882 |
3314d4079016f96a2ebeeafe165e278190465562 | 13,141 | ex | Elixir | lib/elixir/lib/config/provider.ex | jmbejar/elixir | 4a5fcbe04a5a477e27c6645a8a4bdb98332fb6eb | [
"Apache-2.0"
] | 1 | 2020-02-27T22:11:53.000Z | 2020-02-27T22:11:53.000Z | lib/elixir/lib/config/provider.ex | jmbejar/elixir | 4a5fcbe04a5a477e27c6645a8a4bdb98332fb6eb | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/config/provider.ex | jmbejar/elixir | 4a5fcbe04a5a477e27c6645a8a4bdb98332fb6eb | [
"Apache-2.0"
] | 1 | 2020-11-22T01:36:00.000Z | 2020-11-22T01:36:00.000Z | defmodule Config.Provider do
@moduledoc """
Specifies a provider API that loads configuration during boot.
Config providers are typically used during releases to load
external configuration while the system boots. This is done
by starting the VM with the minimum amount of applications
running, then invokin... | 31.588942 | 97 | 0.658245 |
3314f1de2e83377438392bfc8f5402350c087cbb | 1,507 | ex | Elixir | lib/simple_budget_web/endpoint.ex | corybuecker/simple-budget | d86241ff712552267da87052120468b01d2b8f41 | [
"MIT"
] | 2 | 2019-04-02T01:06:40.000Z | 2019-05-13T01:12:24.000Z | lib/simple_budget_web/endpoint.ex | corybuecker/simple-budget | d86241ff712552267da87052120468b01d2b8f41 | [
"MIT"
] | 7 | 2018-12-27T12:33:38.000Z | 2021-03-08T22:31:14.000Z | lib/simple_budget_web/endpoint.ex | corybuecker/simple-budget | d86241ff712552267da87052120468b01d2b8f41 | [
"MIT"
] | null | null | null | defmodule SimpleBudgetWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :simple_budget
socket "/socket", SimpleBudgetWeb.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 depl... | 30.14 | 82 | 0.724618 |
33152df65654213c878b92f884705abeddf09680 | 2,642 | ex | Elixir | lib/newway/schema/destination.ex | rbkmoney/pathfinder | fdb3102f524b6f58cba579389047b425fdbd4c92 | [
"Apache-2.0"
] | null | null | null | lib/newway/schema/destination.ex | rbkmoney/pathfinder | fdb3102f524b6f58cba579389047b425fdbd4c92 | [
"Apache-2.0"
] | null | null | null | lib/newway/schema/destination.ex | rbkmoney/pathfinder | fdb3102f524b6f58cba579389047b425fdbd4c92 | [
"Apache-2.0"
] | 1 | 2021-12-07T09:25:32.000Z | 2021-12-07T09:25:32.000Z | defmodule NewWay.Schema.Destination do
use Ecto.Schema
use NewWay.Schema, search_field: :destination_id
require NewWay.Macro.EnumType, as: EnumType
@type t :: Ecto.Schema.t
EnumType.def_enum(DestinationStatus, [
:authorized,
:unauthorized
])
EnumType.def_enum(DestinationResourceType, [
:ban... | 36.191781 | 71 | 0.617335 |
3315447298ee8f7e13a384d991ffbbb83879aa92 | 885 | exs | Elixir | test/acceptance/nquads_w3c_test.exs | rdf-elixir/rdf-ex | 7d4280ec9a912ef6ee9fc96ecdfdf26647016d6a | [
"MIT"
] | 19 | 2020-06-05T16:55:54.000Z | 2022-03-22T10:30:11.000Z | test/acceptance/nquads_w3c_test.exs | rdf-elixir/rdf-ex | 7d4280ec9a912ef6ee9fc96ecdfdf26647016d6a | [
"MIT"
] | 4 | 2020-07-03T21:02:55.000Z | 2021-11-18T07:22:06.000Z | test/acceptance/nquads_w3c_test.exs | rdf-elixir/rdf-ex | 7d4280ec9a912ef6ee9fc96ecdfdf26647016d6a | [
"MIT"
] | 3 | 2020-07-03T13:25:36.000Z | 2021-04-04T12:33:51.000Z | defmodule RDF.NQuads.W3C.TestSuite do
@moduledoc """
The official W3C RDF 1.1 N-Quads Test Suite.
from <https://www.w3.org/2013/N-QuadsTests/>
"""
use ExUnit.Case, async: false
@w3c_nquads_test_suite Path.join(RDF.TestData.dir(), "N-QUADS-TESTS")
ExUnit.Case.register_attribute(__ENV__, :nq_test)
@w... | 29.5 | 94 | 0.658757 |
331564b96030105869c9ab3e78f0ee157b78c38f | 2,906 | exs | Elixir | config/prod.exs | ramondelemos/elixir-cluster-k8s-discovery | b7f790a6d37df3ad1fff84cfd182ea080d7f04cb | [
"MIT"
] | 1 | 2019-04-23T05:10:06.000Z | 2019-04-23T05:10:06.000Z | config/prod.exs | ramondelemos/elixir-cluster-k8s-discovery | b7f790a6d37df3ad1fff84cfd182ea080d7f04cb | [
"MIT"
] | null | null | null | config/prod.exs | ramondelemos/elixir-cluster-k8s-discovery | b7f790a6d37df3ad1fff84cfd182ea080d7f04cb | [
"MIT"
] | null | null | null | use Mix.Config
# For production, we often load configuration from external
# sources, such as your system environment. For this reason,
# you won't find the :http configuration below, but set inside
# MyappWeb.Endpoint.init/2 when load_from_system_env is
# true. Any dynamic configuration should be done there.
#
# Don'... | 29.353535 | 67 | 0.706813 |
3315780c2482ae8515eb0f14563361e94961d3b5 | 1,950 | ex | Elixir | clients/dataflow/lib/google_api/dataflow/v1b3/model/mem_info.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/dataflow/lib/google_api/dataflow/v1b3/model/mem_info.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/dataflow/lib/google_api/dataflow/v1b3/model/mem_info.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 34.821429 | 110 | 0.704615 |
331580e206d298a8a8e008d2ff2a67850981560f | 6,144 | ex | Elixir | lib/phoenix/live_dashboard/helpers.ex | uumo/phoenix_live_dashboard | cd07929341d9dca0f85b58c624c62d63cf7c2f07 | [
"MIT"
] | 2 | 2020-05-06T14:51:56.000Z | 2020-05-06T14:52:21.000Z | lib/phoenix/live_dashboard/helpers.ex | uumo/phoenix_live_dashboard | cd07929341d9dca0f85b58c624c62d63cf7c2f07 | [
"MIT"
] | 3 | 2021-06-20T14:51:14.000Z | 2021-06-25T00:56:11.000Z | lib/phoenix/live_dashboard/helpers.ex | uumo/phoenix_live_dashboard | cd07929341d9dca0f85b58c624c62d63cf7c2f07 | [
"MIT"
] | 1 | 2020-05-16T22:44:14.000Z | 2020-05-16T22:44:14.000Z | defmodule Phoenix.LiveDashboard.Helpers do
@moduledoc false
import Phoenix.LiveView.Helpers
@format_limit 100
@doc """
Computes a route path to the given route, node, and params.
"""
def live_dashboard_path(socket, route, node, old_params, new_params) when is_atom(node) do
apply(
socket.router... | 27.185841 | 96 | 0.621908 |
33158498e921782abfda816f826b8d31be5fd6dd | 882 | ex | Elixir | clients/content/lib/google_api/content/v21/metadata.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v21/metadata.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v21/metadata.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"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.666667 | 74 | 0.758503 |
33158d02b473233f29b5b35abce5b944ccef1d8e | 417 | ex | Elixir | harbor/lib/ports/rumble/util/test_board.ex | miapolis/port7 | 7df1223f83d055eeb6ce8f61f4af8b4f2cf33e74 | [
"MIT"
] | null | null | null | harbor/lib/ports/rumble/util/test_board.ex | miapolis/port7 | 7df1223f83d055eeb6ce8f61f4af8b4f2cf33e74 | [
"MIT"
] | null | null | null | harbor/lib/ports/rumble/util/test_board.ex | miapolis/port7 | 7df1223f83d055eeb6ce8f61f4af8b4f2cf33e74 | [
"MIT"
] | null | null | null | defmodule Ports.Rumble.Util.TestBoard do
alias Ports.Rumble.Tile
alias Ports.Rumble.Bag
def initial_tiles(bag) do
Enum.reduce(0..19, {%{}, bag}, fn i, {data, bag} ->
{tile, bag} = Bag.draw_random(bag)
{Map.put(data, i, %Tile{
id: i,
x: rem(i, 10) * 110,
y: if(i < 10, d... | 21.947368 | 55 | 0.527578 |
3315902b8bdd9d9125e53caba2cb1bf608cb4666 | 107 | ex | Elixir | lib/absinthe/language/variable.ex | scrogson/absinthe | aa7e9c83dc10603c72f80e09a60d12495bc1c6b7 | [
"Unlicense"
] | 1 | 2019-05-07T15:05:52.000Z | 2019-05-07T15:05:52.000Z | lib/absinthe/language/variable.ex | scrogson/absinthe | aa7e9c83dc10603c72f80e09a60d12495bc1c6b7 | [
"Unlicense"
] | null | null | null | lib/absinthe/language/variable.ex | scrogson/absinthe | aa7e9c83dc10603c72f80e09a60d12495bc1c6b7 | [
"Unlicense"
] | null | null | null | defmodule Absinthe.Language.Variable do
@moduledoc false
defstruct name: nil, loc: %{start: nil}
end
| 15.285714 | 41 | 0.738318 |
3315f60b6cd9a6efb9abc7a636201ef274b98ce5 | 3,235 | exs | Elixir | mix.exs | darkslategrey/crawly | 3e4a530c87bf3713c8c2d1df4360bda5f339f866 | [
"Apache-2.0"
] | 486 | 2019-05-30T09:19:59.000Z | 2021-04-28T07:51:31.000Z | mix.exs | darkslategrey/crawly | 3e4a530c87bf3713c8c2d1df4360bda5f339f866 | [
"Apache-2.0"
] | 131 | 2019-06-29T12:43:24.000Z | 2021-04-24T19:40:07.000Z | mix.exs | darkslategrey/crawly | 3e4a530c87bf3713c8c2d1df4360bda5f339f866 | [
"Apache-2.0"
] | 52 | 2019-06-24T10:13:41.000Z | 2021-03-28T07:36:42.000Z | defmodule Crawly.Mixfile do
use Mix.Project
@version "0.13.0"
def project do
[
app: :crawly,
version: @version,
name: "Crawly",
source_url: "https://github.com/oltarasenko/crawly",
elixir: "~> 1.7",
description: description(),
package: package(),
test_coverage... | 26.08871 | 86 | 0.570015 |
33160c16795db37616b42e27ea9f78550b7034d4 | 479 | ex | Elixir | samples/client/petstore/elixir/lib/openapi_petstore/model/outer_enum_integer_default_value.ex | JigarJoshi/openapi-generator | 785535b8d6881b358463994823abbda2b26ff42e | [
"Apache-2.0"
] | 11,868 | 2018-05-12T02:58:07.000Z | 2022-03-31T21:19:39.000Z | samples/client/petstore/elixir/lib/openapi_petstore/model/outer_enum_integer_default_value.ex | JigarJoshi/openapi-generator | 785535b8d6881b358463994823abbda2b26ff42e | [
"Apache-2.0"
] | 9,672 | 2018-05-12T14:25:43.000Z | 2022-03-31T23:59:30.000Z | samples/client/petstore/elixir/lib/openapi_petstore/model/outer_enum_integer_default_value.ex | JigarJoshi/openapi-generator | 785535b8d6881b358463994823abbda2b26ff42e | [
"Apache-2.0"
] | 4,776 | 2018-05-12T12:06:08.000Z | 2022-03-31T19:52:51.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 OpenapiPetstore.Model.OuterEnumIntegerDefaultValue do
@moduledoc """
"""
@derive [Poison.Encoder]
defstruct [
]
@type t :: %__MO... | 18.423077 | 91 | 0.716075 |
3316143a260358bd2f799915832a1ff95e2ac491 | 5,745 | exs | Elixir | test/game/effect_test.exs | jgsmith/ex_venture | 546adaa8fe80d45a72fde6de8d8d6906902c12d4 | [
"MIT"
] | 2 | 2019-05-14T11:36:44.000Z | 2020-07-01T08:54:04.000Z | test/game/effect_test.exs | nickwalton/ex_venture | d8ff1b0181db03f9ddcb7610ae7ab533feecbfbb | [
"MIT"
] | null | null | null | test/game/effect_test.exs | nickwalton/ex_venture | d8ff1b0181db03f9ddcb7610ae7ab533feecbfbb | [
"MIT"
] | 1 | 2021-01-29T14:12:40.000Z | 2021-01-29T14:12:40.000Z | defmodule Game.EffectTest do
use Data.ModelCase
doctest Game.Effect
import Test.DamageTypesHelper
alias Game.Effect
setup do
start_and_clear_damage_types()
insert_damage_type(%{
key: "arcane",
stat_modifier: :intelligence,
boost_ratio: 20,
reverse_stat: :awareness,
re... | 31.565934 | 133 | 0.638468 |
3316169cc2f53c5e93afc442f39f3d1f0d15cf7a | 1,676 | ex | Elixir | clients/vault/lib/google_api/vault/v1/model/list_matters_response.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/vault/lib/google_api/vault/v1/model/list_matters_response.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/vault/lib/google_api/vault/v1/model/list_matters_response.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 33.52 | 123 | 0.725537 |
33163c470d07e68a5642d714e22929c28f1804cc | 83 | exs | Elixir | playground_application/test/test_helper.exs | ajsharma/phoenix_playground | 695f6fbd8d309615e389a76f0bd8ad22eab58304 | [
"MIT"
] | null | null | null | playground_application/test/test_helper.exs | ajsharma/phoenix_playground | 695f6fbd8d309615e389a76f0bd8ad22eab58304 | [
"MIT"
] | null | null | null | playground_application/test/test_helper.exs | ajsharma/phoenix_playground | 695f6fbd8d309615e389a76f0bd8ad22eab58304 | [
"MIT"
] | null | null | null | ExUnit.start()
Ecto.Adapters.SQL.Sandbox.mode(PlaygroundApplication.Repo, :manual)
| 27.666667 | 67 | 0.819277 |
33169b942470d0217d269453d294c79a7fe71adc | 102 | exs | Elixir | test/test_helper.exs | asonix/secure-server-elixir | 7e9bae4f9e86f78a6572e57dedd785550f1af358 | [
"MIT"
] | 2 | 2016-08-17T11:54:22.000Z | 2017-02-20T07:50:23.000Z | test/test_helper.exs | asonix/secure-server-elixir | 7e9bae4f9e86f78a6572e57dedd785550f1af358 | [
"MIT"
] | null | null | null | test/test_helper.exs | asonix/secure-server-elixir | 7e9bae4f9e86f78a6572e57dedd785550f1af358 | [
"MIT"
] | null | null | null | ExUnit.start()
Application.ensure_all_started(:bypass)
Application.ensure_all_started(:secure_client)
| 25.5 | 46 | 0.862745 |
3316aa22e770495be67c8b230efbb79436b7b73f | 104 | ex | Elixir | lib/bitlog/repo.ex | Soonad/Bitlog | 17f41b591169dca7412b9790e8f20abf11b46313 | [
"MIT"
] | 2 | 2019-12-03T10:38:38.000Z | 2019-12-04T23:52:11.000Z | lib/bitlog/repo.ex | moonad/Bitlog | 17f41b591169dca7412b9790e8f20abf11b46313 | [
"MIT"
] | null | null | null | lib/bitlog/repo.ex | moonad/Bitlog | 17f41b591169dca7412b9790e8f20abf11b46313 | [
"MIT"
] | null | null | null | defmodule Bitlog.Repo do
use Ecto.Repo,
otp_app: :bitlog,
adapter: Ecto.Adapters.Postgres
end
| 17.333333 | 35 | 0.721154 |
3316e9aa3f052272f44d259f0d2660d7616a420f | 21,482 | exs | Elixir | lib/elixir/test/elixir/code_formatter/calls_test.exs | bsmr-erlang/elixir | 0e72d4839cda97edce75ca0c537555ce4ead7a6a | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/code_formatter/calls_test.exs | bsmr-erlang/elixir | 0e72d4839cda97edce75ca0c537555ce4ead7a6a | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/code_formatter/calls_test.exs | bsmr-erlang/elixir | 0e72d4839cda97edce75ca0c537555ce4ead7a6a | [
"Apache-2.0"
] | null | null | null | Code.require_file("../test_helper.exs", __DIR__)
defmodule Code.Formatter.CallsTest do
use ExUnit.Case, async: true
import CodeFormatterHelpers
@short_length [line_length: 10]
@medium_length [line_length: 20]
describe "next break fits" do
test "does not apply to function calls" do
bad = "foo(ver... | 20.076636 | 80 | 0.441486 |
3316ec4e02c07cadd483bf2e7eab751001c12984 | 2,091 | exs | Elixir | mix.exs | togmund/hexen | 5166ba445af592516beae48ccfcb76efc3fde166 | [
"Unlicense"
] | 2 | 2019-12-28T21:31:43.000Z | 2019-12-30T01:03:28.000Z | mix.exs | togmund/hexen | 5166ba445af592516beae48ccfcb76efc3fde166 | [
"Unlicense"
] | 4 | 2019-12-23T23:51:30.000Z | 2021-05-10T22:24:18.000Z | mix.exs | togmund/hexen | 5166ba445af592516beae48ccfcb76efc3fde166 | [
"Unlicense"
] | 1 | 2020-01-17T20:19:14.000Z | 2020-01-17T20:19:14.000Z | defmodule Hexen.MixProject do
use Mix.Project
def project do
[
app: :hexen,
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(),
d... | 27.155844 | 79 | 0.558106 |
3317078d63092131ee9246b22b155189f3967a6d | 9,671 | ex | Elixir | lib/aws/generated/cloudsearchdomain.ex | smanolloff/aws-elixir | c7cb6577802f5010be7e7b6ccb2c0f3c8c73ea84 | [
"Apache-2.0"
] | null | null | null | lib/aws/generated/cloudsearchdomain.ex | smanolloff/aws-elixir | c7cb6577802f5010be7e7b6ccb2c0f3c8c73ea84 | [
"Apache-2.0"
] | null | null | null | lib/aws/generated/cloudsearchdomain.ex | smanolloff/aws-elixir | c7cb6577802f5010be7e7b6ccb2c0f3c8c73ea84 | [
"Apache-2.0"
] | null | null | null | # WARNING: DO NOT EDIT, AUTO-GENERATED CODE!
# See https://github.com/aws-beam/aws-codegen for more details.
defmodule AWS.Cloudsearchdomain do
@moduledoc """
You use the AmazonCloudSearch2013 API to upload documents to a search domain and
search those documents.
The endpoints for submitting `UploadDocuments`... | 36.912214 | 254 | 0.690725 |
33172979d05f55ab7a929862e0d3d53bf7ab8bf2 | 1,529 | ex | Elixir | clients/vault/lib/google_api/vault/v1/model/user_info.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/vault/lib/google_api/vault/v1/model/user_info.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/vault/lib/google_api/vault/v1/model/user_info.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... | 29.980392 | 80 | 0.723349 |
33172d1ea8994b9d4c5bcd90d9655b78d88f7396 | 204 | exs | Elixir | Elixir/elixirexamples/test/macros_test.exs | kujua/erlang-elixir-imperative-bookcompanion | 7bc9f033bacd0f8744ec6bcee3932794d594fe69 | [
"Apache-2.0"
] | 8 | 2016-08-14T12:35:16.000Z | 2021-01-26T04:05:31.000Z | Elixir/elixirexamples/test/macros_test.exs | kujua/erlang-elixir-imperative-bookcompanion | 7bc9f033bacd0f8744ec6bcee3932794d594fe69 | [
"Apache-2.0"
] | null | null | null | Elixir/elixirexamples/test/macros_test.exs | kujua/erlang-elixir-imperative-bookcompanion | 7bc9f033bacd0f8744ec6bcee3932794d594fe69 | [
"Apache-2.0"
] | 5 | 2016-08-18T22:12:19.000Z | 2020-02-17T18:52:41.000Z | defmodule MacrosTest do
use ExUnit.Case
test "even_t" do
ret = Macros.is_even? 42
assert ret == true
end
test "even_f" do
ret = Macros.is_even? 21
assert ret == false
end
end
| 13.6 | 28 | 0.637255 |
33175439c17e87bcd39904187bb179558b8bd68a | 24,246 | ex | Elixir | apps/language_server/lib/language_server/providers/completion.ex | SerenityIK/elixir-ls | 9569197be87809c241360a6ef1f5a9fffd25ab74 | [
"Apache-2.0"
] | null | null | null | apps/language_server/lib/language_server/providers/completion.ex | SerenityIK/elixir-ls | 9569197be87809c241360a6ef1f5a9fffd25ab74 | [
"Apache-2.0"
] | null | null | null | apps/language_server/lib/language_server/providers/completion.ex | SerenityIK/elixir-ls | 9569197be87809c241360a6ef1f5a9fffd25ab74 | [
"Apache-2.0"
] | null | null | null | defmodule ElixirLS.LanguageServer.Providers.Completion do
@moduledoc """
Auto-complete provider utilizing Elixir Sense
We use Elixir Sense to retrieve auto-complete suggestions based on the source file text and cursor
position, and then perform some additional processing on those suggestions to make them compa... | 28.030058 | 129 | 0.575518 |
33175eecb1d513a35e4a9ac05a6c84e90c27124c | 1,098 | exs | Elixir | test/regressions/i093_last_li_not_wrapped_in_p_test.exs | brianbroderick/monocle | eeabecea658468479c04a02352271f6304447736 | [
"Apache-2.0"
] | 2 | 2018-02-11T01:18:24.000Z | 2020-01-12T17:19:22.000Z | test/regressions/i093_last_li_not_wrapped_in_p_test.exs | brianbroderick/monocle | eeabecea658468479c04a02352271f6304447736 | [
"Apache-2.0"
] | null | null | null | test/regressions/i093_last_li_not_wrapped_in_p_test.exs | brianbroderick/monocle | eeabecea658468479c04a02352271f6304447736 | [
"Apache-2.0"
] | null | null | null | defmodule Regressions.I093LastLiNotWrappedInPTest do
use ExUnit.Case
@vanilla_list """
* a
* b
"""
test "vanilla list" do
assert "<ul>\n<li><p>a</p>\n</li>\n<li><p>b</p>\n</li>\n</ul>\n" == Monocle.as_html!( @vanilla_list )
end
test "parsing the vanilla list does not space the last item - Rendere... | 29.675676 | 124 | 0.584699 |
3317b25eb53023bad4edffbccbd1df12731d8a14 | 2,765 | ex | Elixir | clients/health_care/lib/google_api/health_care/v1beta1/model/export_annotations_request.ex | ukrbublik/elixir-google-api | 364cec36bc76f60bec94cbcad34844367a29d174 | [
"Apache-2.0"
] | null | null | null | clients/health_care/lib/google_api/health_care/v1beta1/model/export_annotations_request.ex | ukrbublik/elixir-google-api | 364cec36bc76f60bec94cbcad34844367a29d174 | [
"Apache-2.0"
] | null | null | null | clients/health_care/lib/google_api/health_care/v1beta1/model/export_annotations_request.ex | ukrbublik/elixir-google-api | 364cec36bc76f60bec94cbcad34844367a29d174 | [
"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... | 44.596774 | 275 | 0.767089 |
3317b94b09825f905aafb3b6c4f1267c26c4c472 | 8,294 | exs | Elixir | dev.exs | shamanime/phoenix_profiler | 353156c731c59fb2c5a994cbf3b0fb72359ffdc6 | [
"MIT"
] | null | null | null | dev.exs | shamanime/phoenix_profiler | 353156c731c59fb2c5a994cbf3b0fb72359ffdc6 | [
"MIT"
] | null | null | null | dev.exs | shamanime/phoenix_profiler | 353156c731c59fb2c5a994cbf3b0fb72359ffdc6 | [
"MIT"
] | null | null | null | # iex -S mix dev
Logger.configure(level: :debug)
# Configure esbuild (the version is required)
Application.put_env(:esbuild, :version, "0.13.10")
Application.put_env(:esbuild, :default,
args: ~w(js/app.js --bundle --target=es2016 --outdir=../static/assets),
cd: Path.expand("dev/assets", __DIR__),
env: %{"NODE_P... | 27.104575 | 213 | 0.673258 |
33187f20c69e080b569f1e7cea2275935fb7fc10 | 20,712 | exs | Elixir | lib/elixir/test/elixir/registry_test.exs | tmbb/exdocs_makedown_demo | 6a0039c54d2fa10d79c080efcef8d70d359678f8 | [
"Apache-2.0"
] | 1 | 2017-07-25T21:46:25.000Z | 2017-07-25T21:46:25.000Z | lib/elixir/test/elixir/registry_test.exs | tmbb/exdocs_makedown_demo | 6a0039c54d2fa10d79c080efcef8d70d359678f8 | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/registry_test.exs | tmbb/exdocs_makedown_demo | 6a0039c54d2fa10d79c080efcef8d70d359678f8 | [
"Apache-2.0"
] | 1 | 2017-07-25T21:46:48.000Z | 2017-07-25T21:46:48.000Z | Code.require_file "test_helper.exs", __DIR__
defmodule RegistryTest do
use ExUnit.Case, async: true
doctest Registry, except: [:moduledoc]
setup config do
keys = config[:keys] || :unique
partitions = config[:partitions] || 1
listeners = List.wrap(config[:listener])
opts = [keys: keys, name: conf... | 38.284658 | 105 | 0.570104 |
331882b08f4866207d0309f94cd67471ae90a3b5 | 3,625 | ex | Elixir | lib/game/command/use.ex | NatTuck/ex_venture | 7a74d33025a580f1e3e93d3755f22258eb3e9127 | [
"MIT"
] | null | null | null | lib/game/command/use.ex | NatTuck/ex_venture | 7a74d33025a580f1e3e93d3755f22258eb3e9127 | [
"MIT"
] | null | null | null | lib/game/command/use.ex | NatTuck/ex_venture | 7a74d33025a580f1e3e93d3755f22258eb3e9127 | [
"MIT"
] | null | null | null | defmodule Game.Command.Use do
@moduledoc """
The "use" command
"""
use Game.Command
alias Game.Character
alias Game.Effect
alias Game.Format.Effects, as: FormatEffects
alias Game.Format.Items, as: FormatItems
alias Game.Item
alias Game.Items
alias Game.Utility
commands(["use"], parse: false)
... | 25.70922 | 115 | 0.633931 |
33188687f2c227358b4fa91f746dd293292676a0 | 1,052 | ex | Elixir | lib/elixir_ecommerce/sell.ex | abmBispo/elixir-ecommerce | 0507f7621d68ba8f0f65409a1a503683b7c0d37b | [
"MIT"
] | 4 | 2020-05-29T03:33:02.000Z | 2021-08-21T23:01:48.000Z | lib/elixir_ecommerce/sell.ex | abmBispo/elixir-ecommerce | 0507f7621d68ba8f0f65409a1a503683b7c0d37b | [
"MIT"
] | 2 | 2020-07-29T01:50:46.000Z | 2021-08-31T20:10:47.000Z | lib/elixir_ecommerce/sell.ex | abmBispo/elixir-ecommerce | 0507f7621d68ba8f0f65409a1a503683b7c0d37b | [
"MIT"
] | 1 | 2022-03-21T18:13:21.000Z | 2022-03-21T18:13:21.000Z | defmodule ElixirEcommerce.Sell do
use Ecto.Schema
import Ecto.Changeset
import Ecto.Query, only: [from: 2]
alias ElixirEcommerce.{
Repo,
UserManager.User,
SubSell,
Sell
}
schema "sells" do
field :uuid, Ecto.UUID
has_many :sub_sells, SubSell
belongs_to :client, User
timestam... | 19.127273 | 46 | 0.596958 |
33188ff17cd053a88b5e8a9a5cd07e5d029d9933 | 11,109 | exs | Elixir | test/avrora/codec/schema_registry_test.exs | raphaklaus/avrora | c59a45bf84f726d3892cc13a2344965d0e5ef6ad | [
"MIT"
] | 59 | 2019-07-11T15:29:26.000Z | 2022-03-23T19:35:55.000Z | test/avrora/codec/schema_registry_test.exs | raphaklaus/avrora | c59a45bf84f726d3892cc13a2344965d0e5ef6ad | [
"MIT"
] | 63 | 2019-08-09T17:52:26.000Z | 2022-03-16T22:08:04.000Z | test/avrora/codec/schema_registry_test.exs | raphaklaus/avrora | c59a45bf84f726d3892cc13a2344965d0e5ef6ad | [
"MIT"
] | 22 | 2019-07-29T10:50:47.000Z | 2021-09-04T13:37:08.000Z | defmodule Avrora.Codec.SchemaRegistryTest do
use ExUnit.Case, async: true
doctest Avrora.Codec.SchemaRegistry
import Mox
import Support.Config
import ExUnit.CaptureLog
alias Avrora.{Codec, Schema, Storage}
setup :verify_on_exit!
setup :support_config
describe "is_decodable/1" do
test "when pay... | 26.768675 | 144 | 0.584121 |
3318d5aa3f7a7a486d7167dd6e0cd0142afa4688 | 1,123 | exs | Elixir | config/config.exs | agleb/ets_al | 73f8811031240cb3ed9e2992f3ef7fc8acb05fa5 | [
"MIT"
] | null | null | null | config/config.exs | agleb/ets_al | 73f8811031240cb3ed9e2992f3ef7fc8acb05fa5 | [
"MIT"
] | null | null | null | config/config.exs | agleb/ets_al | 73f8811031240cb3ed9e2992f3ef7fc8acb05fa5 | [
"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.225806 | 73 | 0.749777 |
3318d7a9d95ebbc0e3fbb7a8a3f607fde964c850 | 620 | ex | Elixir | web/controllers/general_controller.ex | blacksph3re/alastair2 | 51fcd8fe666ae768dd8371b2c7835dd294eeddaf | [
"Apache-2.0"
] | null | null | null | web/controllers/general_controller.ex | blacksph3re/alastair2 | 51fcd8fe666ae768dd8371b2c7835dd294eeddaf | [
"Apache-2.0"
] | null | null | null | web/controllers/general_controller.ex | blacksph3re/alastair2 | 51fcd8fe666ae768dd8371b2c7835dd294eeddaf | [
"Apache-2.0"
] | 1 | 2017-12-15T15:49:16.000Z | 2017-12-15T15:49:16.000Z | defmodule Alastair.GeneralController do
use Alastair.Web, :controller
defp check_db() do
try do
measurements = Alastair.Repo.all(Alastair.Measurement)
if Enum.empty?(measurements) do
raise "empty"
end
:ok
rescue
_ -> :error
end
end
def status(conn, _... | 20.666667 | 62 | 0.579032 |
3318f13a89ddb065882bf65dfd4ffa2e4b4357d5 | 2,057 | ex | Elixir | clients/people/lib/google_api/people/v1/model/modify_contact_group_members_request.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/people/lib/google_api/people/v1/model/modify_contact_group_members_request.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/people/lib/google_api/people/v1/model/modify_contact_group_members_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.092593 | 149 | 0.736509 |
33190b49b6faf13ebe6a05a30ba8d525363b96ec | 1,931 | exs | Elixir | clients/reseller/mix.exs | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/reseller/mix.exs | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/reseller/mix.exs | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 28.820896 | 188 | 0.665458 |
331917a0d31061bdd10f5d4cfd198aecf430a76c | 3,270 | exs | Elixir | test/backbone/achievements_test.exs | oestrich/gossip-backbone | 0bd926a6ad759486d4b14216d60c2653240be7da | [
"MIT"
] | 1 | 2018-10-23T04:13:39.000Z | 2018-10-23T04:13:39.000Z | test/backbone/achievements_test.exs | oestrich/gossip-backbone | 0bd926a6ad759486d4b14216d60c2653240be7da | [
"MIT"
] | null | null | null | test/backbone/achievements_test.exs | oestrich/gossip-backbone | 0bd926a6ad759486d4b14216d60c2653240be7da | [
"MIT"
] | null | null | null | defmodule Backbone.AchievementsTest do
use Backbone.DataCase
alias Backbone.Achievements
describe "sync remote achievements" do
test "creates local copies" do
game = cache_game()
:ok = Achievements.cache_remote([
%{
"action" => "create",
"logged_at" => "2018-11-24T12... | 26.803279 | 60 | 0.455046 |
331918b313310842c79e7b927fd4bdb8fb149ea6 | 63 | ex | Elixir | anonymous_functions/fn1.ex | leogtzr/elixir_code_snippets | 5c8c921dc165de8fc29bb14046386efa81ce7542 | [
"MIT"
] | null | null | null | anonymous_functions/fn1.ex | leogtzr/elixir_code_snippets | 5c8c921dc165de8fc29bb14046386efa81ce7542 | [
"MIT"
] | null | null | null | anonymous_functions/fn1.ex | leogtzr/elixir_code_snippets | 5c8c921dc165de8fc29bb14046386efa81ce7542 | [
"MIT"
] | null | null | null | sum = fn (a, b) -> a + b end
x = 3
y = 6
IO.puts(sum.(x, y))
| 9 | 28 | 0.428571 |
3319192b330e0821b6bb0b2931c9072d926fa168 | 5,984 | ex | Elixir | clients/games/lib/google_api/games/v1/api/leaderboards.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/games/lib/google_api/games/v1/api/leaderboards.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/games/lib/google_api/games/v1/api/leaderboards.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... | 44.325926 | 213 | 0.650568 |
3319203692576be1f78b54890cf1370f7f846bd7 | 144 | exs | Elixir | test/coingecko_test.exs | theabrad/coingeckoex | dbd46cb9f58d874f57926b881bbe48dcdc8cf5ac | [
"MIT"
] | null | null | null | test/coingecko_test.exs | theabrad/coingeckoex | dbd46cb9f58d874f57926b881bbe48dcdc8cf5ac | [
"MIT"
] | null | null | null | test/coingecko_test.exs | theabrad/coingeckoex | dbd46cb9f58d874f57926b881bbe48dcdc8cf5ac | [
"MIT"
] | null | null | null | defmodule CoingeckoTest do
use ExUnit.Case
doctest Coingecko
test "greets the world" do
assert Coingecko.hello() == :world
end
end
| 16 | 38 | 0.722222 |
331922ad8b0dcd7ca81165098c66560f8580c44e | 1,450 | ex | Elixir | dev/debugging.ex | ZeLarpMaster/earmark | 35c9661d6647059e507c0278347e21d92351c417 | [
"Apache-1.1"
] | 734 | 2015-01-05T19:08:00.000Z | 2022-03-28T14:04:21.000Z | dev/debugging.ex | ZeLarpMaster/earmark | 35c9661d6647059e507c0278347e21d92351c417 | [
"Apache-1.1"
] | 343 | 2015-01-01T04:56:57.000Z | 2022-02-15T11:00:57.000Z | dev/debugging.ex | ZeLarpMaster/earmark | 35c9661d6647059e507c0278347e21d92351c417 | [
"Apache-1.1"
] | 169 | 2015-02-26T15:18:05.000Z | 2022-03-18T08:00:42.000Z | # defmodule Dev.Debugging do
# def inspectX(anything) do
# if System.get_env("DEBUG") do
# IO.inspect(anything)
# end
# end
# def inspectX(anything, prefix) when is_number(prefix) do
# inspectX({prefix, anything})
# anything
# end
# def inspectX(prefix, anything) do
# inspectX({pre... | 21.969697 | 60 | 0.566207 |
33195b5462bea6f75d00a1797d29018e21ce505d | 1,611 | exs | Elixir | mix.exs | notCalle/elixir-tagged | 19d6cbac9f117dffeb47876fd987de54568aa704 | [
"MIT"
] | null | null | null | mix.exs | notCalle/elixir-tagged | 19d6cbac9f117dffeb47876fd987de54568aa704 | [
"MIT"
] | null | null | null | mix.exs | notCalle/elixir-tagged | 19d6cbac9f117dffeb47876fd987de54568aa704 | [
"MIT"
] | null | null | null | defmodule Tagged.MixProject do
use Mix.Project
@description """
Generates definitions of various things related to `{:tag, value}` tuples.
"""
@version "0.4.2"
@deps [
{:keyword_validator, "~> 1.0"},
# ----------------------------------------------------------------------
{:dialyxir, "~> 1.0"... | 23.691176 | 76 | 0.541279 |
3319694eda4e9308852e2635f2db12b9b0f1a038 | 842 | exs | Elixir | test/cog/chat/slack/templates/embedded/permission_create_test.exs | matusf/cog | 71708301c7dc570fb0d3498a50f47a70ef957788 | [
"Apache-2.0"
] | 1,003 | 2016-02-23T17:21:12.000Z | 2022-02-20T14:39:35.000Z | test/cog/chat/slack/templates/embedded/permission_create_test.exs | matusf/cog | 71708301c7dc570fb0d3498a50f47a70ef957788 | [
"Apache-2.0"
] | 906 | 2016-02-22T22:54:19.000Z | 2022-03-11T15:19:43.000Z | test/cog/chat/slack/templates/embedded/permission_create_test.exs | matusf/cog | 71708301c7dc570fb0d3498a50f47a70ef957788 | [
"Apache-2.0"
] | 95 | 2016-02-23T13:42:31.000Z | 2021-11-30T14:39:55.000Z | defmodule Cog.Chat.Slack.Templates.Embedded.PermissionCreateTest do
use Cog.TemplateCase
test "permission-create template" do
data = %{"results" => [%{"bundle" => "site", "name" => "foo"}]}
expected = "Created permission 'site:foo'"
assert_rendered_template(:slack, :embedded, "permission-create", data,... | 35.083333 | 84 | 0.603325 |
33199db56d98b5def974ebb5dc5c86519ea43fb8 | 1,725 | ex | Elixir | clients/books/lib/google_api/books/v1/model/books_cloudloading_resource.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/books/lib/google_api/books/v1/model/books_cloudloading_resource.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/books/lib/google_api/books/v1/model/books_cloudloading_resource.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... | 30.803571 | 82 | 0.688696 |
3319e8979d258ddb7eca615c36f293e0e8158863 | 1,098 | ex | Elixir | lib/mix/lib/mix/tasks/compile.all.ex | tmbb/exdocs_makedown_demo | 6a0039c54d2fa10d79c080efcef8d70d359678f8 | [
"Apache-2.0"
] | 1 | 2017-07-25T21:46:25.000Z | 2017-07-25T21:46:25.000Z | lib/mix/lib/mix/tasks/compile.all.ex | tmbb/exdocs_makedown_demo | 6a0039c54d2fa10d79c080efcef8d70d359678f8 | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/tasks/compile.all.ex | tmbb/exdocs_makedown_demo | 6a0039c54d2fa10d79c080efcef8d70d359678f8 | [
"Apache-2.0"
] | 1 | 2017-07-25T21:46:48.000Z | 2017-07-25T21:46:48.000Z | defmodule Mix.Tasks.Compile.All do
use Mix.Task.Compiler
@moduledoc false
@recursive true
# This is an internal task used by "mix compile" which
# is meant to be recursive and be invoked for each child
# project.
def run(args) do
Mix.Project.get!
# Build the project structure so we can write d... | 24.4 | 79 | 0.661202 |
3319f9b7be962a99735f06a5d8a91eb0283101be | 1,488 | ex | Elixir | lib/source_academy_admin/controllers/library_controller.ex | trewdys/source-academy2-debug | 6146e1fac81472184877f47aa32dee7fdceb4fb6 | [
"Unlicense"
] | null | null | null | lib/source_academy_admin/controllers/library_controller.ex | trewdys/source-academy2-debug | 6146e1fac81472184877f47aa32dee7fdceb4fb6 | [
"Unlicense"
] | null | null | null | lib/source_academy_admin/controllers/library_controller.ex | trewdys/source-academy2-debug | 6146e1fac81472184877f47aa32dee7fdceb4fb6 | [
"Unlicense"
] | null | null | null | defmodule SourceAcademyAdmin.LibraryController do
use SourceAcademyAdmin, :controller
alias SourceAcademy.Workspace
def index(conn, _params) do
libraries = Workspace.all_libraries()
render(conn, "index.html", libraries: libraries)
end
def new(conn, _params) do
changeset = Workspace.build_librar... | 28.615385 | 74 | 0.633065 |
331a009ca19a36101683a27a3b1bcea20407a01a | 2,367 | exs | Elixir | test/xema/cast/integer_test.exs | kianmeng/xema | a990d64fb4bcd708249514daa55426ee003da25d | [
"MIT"
] | 49 | 2018-06-05T09:42:19.000Z | 2022-02-15T12:50:51.000Z | test/xema/cast/integer_test.exs | kianmeng/xema | a990d64fb4bcd708249514daa55426ee003da25d | [
"MIT"
] | 152 | 2017-06-11T13:43:06.000Z | 2022-01-09T17:13:45.000Z | test/xema/cast/integer_test.exs | kianmeng/xema | a990d64fb4bcd708249514daa55426ee003da25d | [
"MIT"
] | 6 | 2019-05-31T05:41:47.000Z | 2021-12-14T08:09:36.000Z | defmodule Xema.Cast.IntegerTest do
use ExUnit.Case, async: true
alias Xema.{CastError, ValidationError}
import AssertBlame
import Xema, only: [cast: 2, cast!: 2, validate: 2]
@set [:foo, 1.0, [foo: 42], [42], %{}, {:tuple}]
describe "cast/2 with a minimal integer schema" do
setup do
%{
... | 25.451613 | 85 | 0.580059 |
331a2bca0b80a085b948fe5a7ceb30f03479d201 | 2,341 | exs | Elixir | exercises/concept/freelancer-rates/test/freelancer_rates_test.exs | jaimeiniesta/elixir-1 | e8ddafeb313822645e0cd76743955a5c728a84c5 | [
"MIT"
] | 343 | 2017-06-22T16:28:28.000Z | 2022-03-25T21:33:32.000Z | exercises/concept/freelancer-rates/test/freelancer_rates_test.exs | jaimeiniesta/elixir-1 | e8ddafeb313822645e0cd76743955a5c728a84c5 | [
"MIT"
] | 583 | 2017-06-19T10:48:40.000Z | 2022-03-28T21:43:12.000Z | exercises/concept/freelancer-rates/test/freelancer_rates_test.exs | jaimeiniesta/elixir-1 | e8ddafeb313822645e0cd76743955a5c728a84c5 | [
"MIT"
] | 228 | 2017-07-05T07:09:32.000Z | 2022-03-27T08:59:08.000Z | defmodule FreelancerRatesTest do
use ExUnit.Case
describe "daily_rate/1" do
@tag task_id: 1
test "it's the hourly_rate times 8" do
assert FreelancerRates.daily_rate(50) == 400.0
end
@tag task_id: 1
test "it always returns a float" do
assert FreelancerRates.daily_rate(60) === 480.0
... | 26.011111 | 86 | 0.645451 |
331a3d686651d8d4204f4f750dd0f0a877c7fb47 | 839 | exs | Elixir | test/lily/monad/ok_test.exs | dwhelan/ok_computer | 538abcc5b325a0d41dbf642c22bbbbe86c95a164 | [
"MIT"
] | null | null | null | test/lily/monad/ok_test.exs | dwhelan/ok_computer | 538abcc5b325a0d41dbf642c22bbbbe86c95a164 | [
"MIT"
] | null | null | null | test/lily/monad/ok_test.exs | dwhelan/ok_computer | 538abcc5b325a0d41dbf642c22bbbbe86c95a164 | [
"MIT"
] | null | null | null | defmodule Lily.Monad.OkTest do
use ExUnit.Case
alias Lily.Monad.Ok
import Lily.Pipe
import Ok
import Monad.Laws
test "return/1" do
assert return(:a) == {:ok, :a}
end
test "bind/2" do
f = fn :a -> {:ok, "a"} end
assert bind({:ok, :a}, f) == {:ok, "a"}
assert bind(:a, f) == :a
end
t... | 19.068182 | 54 | 0.498212 |
331a45a98eb6fea1abeae972a6644c12256bc77a | 2,854 | ex | Elixir | lib/configuration.ex | Z1an-Wang/60009_Distributed_Algorithms | ab63dca86c8db5ae319cfd3a309dfb40279199c8 | [
"MIT"
] | null | null | null | lib/configuration.ex | Z1an-Wang/60009_Distributed_Algorithms | ab63dca86c8db5ae319cfd3a309dfb40279199c8 | [
"MIT"
] | null | null | null | lib/configuration.ex | Z1an-Wang/60009_Distributed_Algorithms | ab63dca86c8db5ae319cfd3a309dfb40279199c8 | [
"MIT"
] | null | null | null |
# distributed algorithms, n.dulay, 8 feb 2022
# raft, configuration parameters v2
defmodule Configuration do
# _________________________________________________________ node_init()
def node_init() do
# get node arguments and spawn a process to exit node after max_time
config =
%{
node_suffix: Enum.a... | 35.675 | 103 | 0.68185 |
331a6111735f77fc2325be8dae4176ca370be9fe | 123 | ex | Elixir | apps/worker/lib/worker/broker.ex | evuez/genos | 3d919bc269566a5160f21a0290d41f11b0633d15 | [
"MIT"
] | null | null | null | apps/worker/lib/worker/broker.ex | evuez/genos | 3d919bc269566a5160f21a0290d41f11b0633d15 | [
"MIT"
] | null | null | null | apps/worker/lib/worker/broker.ex | evuez/genos | 3d919bc269566a5160f21a0290d41f11b0633d15 | [
"MIT"
] | null | null | null | defmodule Worker.Broker do
@callback handle(String.t) :: {:ok, String.t} | {:partial, String.t} | {:error, String.t}
end
| 30.75 | 91 | 0.666667 |
331a61d0fe849840ef2b36bebe00a90935db9e64 | 2,143 | ex | Elixir | lib/gear_application/config_getter.ex | sylph01/antikythera | 47a93f3d4c70975f7296725c9bde2ea823867436 | [
"Apache-2.0"
] | 144 | 2018-04-27T07:24:49.000Z | 2022-03-15T05:19:37.000Z | lib/gear_application/config_getter.ex | sylph01/antikythera | 47a93f3d4c70975f7296725c9bde2ea823867436 | [
"Apache-2.0"
] | 123 | 2018-05-01T02:54:43.000Z | 2022-01-28T01:30:52.000Z | lib/gear_application/config_getter.ex | sylph01/antikythera | 47a93f3d4c70975f7296725c9bde2ea823867436 | [
"Apache-2.0"
] | 14 | 2018-05-01T02:30:47.000Z | 2022-02-21T04:38:56.000Z | # Copyright(c) 2015-2021 ACCESS CO., LTD. All rights reserved.
use Croma
defmodule Antikythera.GearApplication.ConfigGetter do
@moduledoc """
Helper module to define getter functions of gear configs.
"""
@key :gear_configs
defmacro __using__(_) do
quote do
# Assuming that module attribute `@gear... | 25.819277 | 90 | 0.670555 |
331a67d01bea734819e24abf2d36c6e23b3d6586 | 552 | ex | Elixir | lib/llp/characters/radical.ex | Danwhy/llp | 63d4efa78b56351c9d96c46024291c828722c3fe | [
"MIT"
] | 2 | 2019-01-02T11:02:59.000Z | 2019-04-15T10:07:40.000Z | lib/llp/characters/radical.ex | Danwhy/llp | 63d4efa78b56351c9d96c46024291c828722c3fe | [
"MIT"
] | null | null | null | lib/llp/characters/radical.ex | Danwhy/llp | 63d4efa78b56351c9d96c46024291c828722c3fe | [
"MIT"
] | null | null | null | defmodule Llp.Characters.Radical do
use Ecto.Schema
import Ecto.Changeset
alias Llp.Characters.{Radical, Kanji}
schema "radicals" do
field :kunyomi, {:array, :string}
field :onyomi, {:array, :string}
field :radical, :string
field :stroke_count, :integer
has_many :kanji, Kanji
timesta... | 22.08 | 70 | 0.672101 |
331a71a1e9df658bc1e5e2f8f09fcaf52161c4e2 | 513 | ex | Elixir | lib/mix/lib/mix/exceptions.ex | ekosz/elixir | 62e375bc711b4072e1b68de776e96cc31f571d45 | [
"Apache-2.0"
] | 1 | 2017-10-29T16:37:08.000Z | 2017-10-29T16:37:08.000Z | lib/mix/lib/mix/exceptions.ex | ekosz/elixir | 62e375bc711b4072e1b68de776e96cc31f571d45 | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/exceptions.ex | ekosz/elixir | 62e375bc711b4072e1b68de776e96cc31f571d45 | [
"Apache-2.0"
] | null | null | null | defexception Mix.NoTaskError, task: nil do
def message(exception) do
"The task #{task(exception)} could not be found"
end
end
defexception Mix.InvalidTaskError, task: nil do
def message(exception) do
"The task #{task(exception)} does not respond to run/1"
end
end
defexception Mix.NoProjectError, messa... | 30.176471 | 119 | 0.758285 |
331a87e5def5b92194273b2a08e5eff97b9feb3b | 1,203 | ex | Elixir | lib/tlotc/services/tracker.ex | JM4ier/tlotc | 14a6514c2607194a98c42c174751efdd5657f333 | [
"MIT"
] | null | null | null | lib/tlotc/services/tracker.ex | JM4ier/tlotc | 14a6514c2607194a98c42c174751efdd5657f333 | [
"MIT"
] | null | null | null | lib/tlotc/services/tracker.ex | JM4ier/tlotc | 14a6514c2607194a98c42c174751efdd5657f333 | [
"MIT"
] | null | null | null | defmodule TLotC.Services.Tracker do
alias Nostrum.Api
alias Nostrum.Struct.Embed
use Task
def start_link(_opts) do
{:ok, pid} = Task.start_link(fn -> loop([]) end)
Process.register(pid, __MODULE__)
{:ok, pid}
end
defp loop(tracks) do
tracks = receive do
{:clear} ->
[]
... | 21.482143 | 84 | 0.516209 |
331a8a35b184fc7d594be32d8f8b37d5b4c1e23d | 3,178 | exs | Elixir | test/stripi/accounts/accounts_test.exs | goalves/stripi | 1d9865103efb69cd69d7a418bcb53cfd355df37c | [
"MIT"
] | 7 | 2018-03-20T14:18:01.000Z | 2019-10-02T22:40:02.000Z | test/stripi/accounts/accounts_test.exs | goalves/stripi | 1d9865103efb69cd69d7a418bcb53cfd355df37c | [
"MIT"
] | 2 | 2019-03-12T16:37:39.000Z | 2019-03-12T18:28:03.000Z | test/stripi/accounts/accounts_test.exs | goalves/stripi | 1d9865103efb69cd69d7a418bcb53cfd355df37c | [
"MIT"
] | 2 | 2019-10-04T17:35:44.000Z | 2019-12-04T20:27:52.000Z | defmodule Stripi.AccountsTest do
use ExUnit.Case, async: false
alias Stripi.Accounts
describe "create/2" do
test "should create an account" do
assert {:ok, response} = Accounts.create(%{email: "example@example.com", country: "US"})
assert response["object"] == "account"
assert response["em... | 30.854369 | 112 | 0.644116 |
331a9eccfc876ed44d23009bc7a399dc202f1168 | 905 | ex | Elixir | lib/web/views/page_view.ex | shanesveller/ex_venture | 68507da11442a9e0423073fcd305e9021f649ca1 | [
"MIT"
] | null | null | null | lib/web/views/page_view.ex | shanesveller/ex_venture | 68507da11442a9e0423073fcd305e9021f649ca1 | [
"MIT"
] | null | null | null | lib/web/views/page_view.ex | shanesveller/ex_venture | 68507da11442a9e0423073fcd305e9021f649ca1 | [
"MIT"
] | null | null | null | defmodule Web.PageView do
use Web, :view
alias Game.Config
alias Web.Color
alias Web.Endpoint
alias Web.Room
alias Web.Router.Helpers, as: RouteHelpers
alias Web.TimeView
def render("index.json", _) do
%{
links: [
%{rel: "self", href: RouteHelpers.public_page_url(Endpoint, :index)},
... | 23.815789 | 77 | 0.573481 |
331aa9b0318052728ad34ca3ebe442569f57b5a6 | 3,337 | ex | Elixir | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_answer_record.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_answer_record.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_v2_answer_record.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... | 57.534483 | 906 | 0.774348 |
331aacb6f37621b6fd9e5d21e77734b5fc32d6c0 | 1,440 | ex | Elixir | examples/todo/test/support/hooks.ex | tyrchen/quenya | b9e8ef9e71e0e52b010b930eee66942e30c62ddd | [
"MIT"
] | 143 | 2020-12-01T06:53:36.000Z | 2022-03-24T02:33:01.000Z | examples/todo/test/support/hooks.ex | tyrchen/quenya | b9e8ef9e71e0e52b010b930eee66942e30c62ddd | [
"MIT"
] | 2 | 2020-11-30T05:30:42.000Z | 2020-12-17T06:33:17.000Z | examples/todo/test/support/hooks.ex | tyrchen/quenya | b9e8ef9e71e0e52b010b930eee66942e30c62ddd | [
"MIT"
] | 12 | 2020-12-07T01:22:17.000Z | 2020-12-27T12:49:39.000Z | defmodule TodoTest.Hooks do
@moduledoc """
TodoTest.Hooks keeps all the user defined hooks. It should implement
`QuenyaTest.Hook` behavior:
- precondition: if you provided this function, quenya generated test will call this function before it
applies the Router plug. You can prepare certain state for t... | 32 | 118 | 0.680556 |
331abaa14bef65286715ba65df08853ef34b9872 | 68,712 | ex | Elixir | lib/ecto/query.ex | ccapndave/ecto | c1d27f004ca18905b69f7ca45958c50c0c5f0ce8 | [
"Apache-2.0"
] | null | null | null | lib/ecto/query.ex | ccapndave/ecto | c1d27f004ca18905b69f7ca45958c50c0c5f0ce8 | [
"Apache-2.0"
] | null | null | null | lib/ecto/query.ex | ccapndave/ecto | c1d27f004ca18905b69f7ca45958c50c0c5f0ce8 | [
"Apache-2.0"
] | null | null | null | defmodule Ecto.SubQuery do
@moduledoc """
A struct representing subqueries.
See `Ecto.Query.subquery/2` for more information.
"""
defstruct [:query, :params, :select, :cache]
end
defmodule Ecto.Query do
@moduledoc ~S"""
Provides the Query DSL.
Queries are used to retrieve and manipulate data from a r... | 34.168076 | 139 | 0.676418 |
331b3b7d743b5f6ede1fdbfb0bce6d78b5c936f8 | 291 | ex | Elixir | elixir/example1/lib/built_with_elixir/utils/cloudinary.ex | otaviojava/horusec-examples-vulnerabilities | b41bc3111b3040e75e796fd33c663caf6c409f6d | [
"ECL-2.0",
"Apache-2.0"
] | 8 | 2018-04-15T19:01:14.000Z | 2018-11-19T16:13:56.000Z | elixir/example1/lib/built_with_elixir/utils/cloudinary.ex | otaviojava/horusec-examples-vulnerabilities | b41bc3111b3040e75e796fd33c663caf6c409f6d | [
"ECL-2.0",
"Apache-2.0"
] | 8 | 2018-04-14T03:32:12.000Z | 2018-05-15T04:28:27.000Z | elixir/example1/lib/built_with_elixir/utils/cloudinary.ex | otaviojava/horusec-examples-vulnerabilities | b41bc3111b3040e75e796fd33c663caf6c409f6d | [
"ECL-2.0",
"Apache-2.0"
] | 2 | 2021-09-22T13:44:09.000Z | 2021-12-21T14:26:03.000Z | defmodule BuiltWithElixir.Utils.Cloudinary do
@moduledoc false
@base Application.get_env(:built_with_elixir, :cloudinary_base_url)
def generate_image_url(public_id, transformation \\ "t_elixir_project_preview") do
"#{@base}/image/upload/#{transformation}/#{public_id}"
end
end
| 29.1 | 84 | 0.780069 |
331b7a73fbec4b840e899d20edc848c0b049d7e9 | 2,318 | ex | Elixir | clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1p1beta1__face_frame.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1p1beta1__face_frame.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1p1beta1__face_frame.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 36.793651 | 316 | 0.754098 |
331b83aba6e26b914ae0560a9845178b4f37e448 | 1,604 | ex | Elixir | test/support/models/user.ex | cnsa/ecto_as_state_machine | 681cb4ed912a32b82cf55ee306c39af8df3a611f | [
"MIT"
] | 6 | 2018-06-19T07:20:58.000Z | 2020-01-02T16:41:25.000Z | test/support/models/user.ex | cnsa/ecto_as_state_machine | 681cb4ed912a32b82cf55ee306c39af8df3a611f | [
"MIT"
] | 3 | 2018-03-21T11:12:56.000Z | 2019-01-09T16:34:28.000Z | test/support/models/user.ex | cnsa/ecto_as_state_machine | 681cb4ed912a32b82cf55ee306c39af8df3a611f | [
"MIT"
] | 3 | 2018-10-17T23:44:03.000Z | 2019-01-03T17:40:08.000Z | defmodule EctoAsStateMachine.User do
use Ecto.Schema
import Ecto.Changeset, only: [cast: 3, validate_required: 2]
@required_params []
@optional_params [:state, :some, :confirmed_at]
use EctoAsStateMachine
easm(
states: [:unconfirmed, :confirmed, :blocked, :admin],
events: [
[
name: ... | 21.386667 | 94 | 0.51808 |
331bb3c7799c8217ea187297821b272af602278d | 841 | ex | Elixir | lib/new_relic/transaction/event.ex | tpitale/elixir_agent | f356b588fe9d7cc3b9db00d9a251e009a20b3e0e | [
"Apache-2.0"
] | 227 | 2018-09-05T15:33:23.000Z | 2022-02-25T18:12:06.000Z | lib/new_relic/transaction/event.ex | tpitale/elixir_agent | f356b588fe9d7cc3b9db00d9a251e009a20b3e0e | [
"Apache-2.0"
] | 211 | 2018-09-05T21:42:41.000Z | 2022-03-25T17:51:56.000Z | lib/new_relic/transaction/event.ex | tpitale/elixir_agent | f356b588fe9d7cc3b9db00d9a251e009a20b3e0e | [
"Apache-2.0"
] | 84 | 2018-09-05T04:26:26.000Z | 2022-03-09T14:28:14.000Z | defmodule NewRelic.Transaction.Event do
defstruct type: "Transaction",
web_duration: nil,
database_duration: nil,
timestamp: nil,
name: nil,
duration: nil,
total_time: nil,
user_attributes: %{}
@moduledoc false
def format_events... | 26.28125 | 68 | 0.633769 |
331bba6c9fd214bad70169d4a117fced28742921 | 1,784 | exs | Elixir | rotational-cipher/test/rotational_cipher_test.exs | koladilip/elixir-examples | 49553fe39bbff6e35d1cb2c26fcb6d87fe4e28d3 | [
"MIT"
] | null | null | null | rotational-cipher/test/rotational_cipher_test.exs | koladilip/elixir-examples | 49553fe39bbff6e35d1cb2c26fcb6d87fe4e28d3 | [
"MIT"
] | null | null | null | rotational-cipher/test/rotational_cipher_test.exs | koladilip/elixir-examples | 49553fe39bbff6e35d1cb2c26fcb6d87fe4e28d3 | [
"MIT"
] | null | null | null | defmodule RotationalCipherTest do
use ExUnit.Case
# #@tag :pending
test "rotate a by 1" do
plaintext = "a"
shift = 1
assert RotationalCipher.rotate(plaintext, shift) == "b"
end
#@tag :pending
test "rotate a by 26, same output as input" do
plaintext = "a"
shift = 26
assert Rotationa... | 23.473684 | 79 | 0.6463 |
331be9ba4bb40b86ffd74b1ea3ad4530c27d2b32 | 2,087 | ex | Elixir | lib/firestorm_web/uploads/aws/upload_signature.ex | abousamra/firestorm | 4270774cb6f47be2f6341cfaac62fd44d3d10505 | [
"MIT"
] | null | null | null | lib/firestorm_web/uploads/aws/upload_signature.ex | abousamra/firestorm | 4270774cb6f47be2f6341cfaac62fd44d3d10505 | [
"MIT"
] | 4 | 2021-03-01T21:25:42.000Z | 2022-02-10T23:50:11.000Z | lib/firestorm_web/uploads/aws/upload_signature.ex | chriswk/firestorm | 7440d4e84db34a093a7c8761973c737561f53b45 | [
"MIT"
] | 1 | 2020-03-20T12:58:37.000Z | 2020-03-20T12:58:37.000Z | defmodule FirestormWeb.Uploads.AWS.UploadSignature do
alias FirestormWeb.Web.Endpoint
require Endpoint
@moduledoc """
Generate an upload signature to allow the client to upload directly to S3.
"""
@service "s3"
@aws_request "aws4_request"
def signature(filename, mimetype) do
Endpoint.instrument :p... | 22.44086 | 83 | 0.609008 |
331bf71f110a330839f61d4ffa0cb70ef753270a | 1,109 | exs | Elixir | apps/flv/config/config.exs | Kabie/elixir-media-libs | 9750c6dcdffdf8014183a6a4f303c5d0d658f062 | [
"MIT"
] | 75 | 2016-12-23T14:37:18.000Z | 2021-04-26T14:07:20.000Z | apps/flv/config/config.exs | Kabie/elixir-media-libs | 9750c6dcdffdf8014183a6a4f303c5d0d658f062 | [
"MIT"
] | 19 | 2016-12-22T03:20:43.000Z | 2020-06-11T12:10:37.000Z | apps/flv/config/config.exs | Kabie/elixir-media-libs | 9750c6dcdffdf8014183a6a4f303c5d0d658f062 | [
"MIT"
] | 3 | 2018-03-29T06:40:40.000Z | 2019-02-13T09:37:19.000Z | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on this project, this
# file won't be loaded nor affect the paren... | 35.774194 | 73 | 0.749324 |
331c12fd40b8bf49ab62ad6334b53418754ba46a | 1,122 | exs | Elixir | islands_interface/mix.exs | ipmsteven/rethink_webapp | ea906747e32baf0a6544cc33184cb55963cb25d1 | [
"MIT"
] | null | null | null | islands_interface/mix.exs | ipmsteven/rethink_webapp | ea906747e32baf0a6544cc33184cb55963cb25d1 | [
"MIT"
] | null | null | null | islands_interface/mix.exs | ipmsteven/rethink_webapp | ea906747e32baf0a6544cc33184cb55963cb25d1 | [
"MIT"
] | null | null | null | defmodule IslandsInterface.Mixfile do
use Mix.Project
def project do
[
app: :islands_interface,
version: "0.0.1",
elixir: "~> 1.4",
elixirc_paths: elixirc_paths(Mix.env),
compilers: [:phoenix, :gettext] ++ Mix.compilers,
start_permanent: Mix.env == :prod,
deps: deps()
... | 24.933333 | 56 | 0.595365 |
331c1586a04a5a8f56e0278342e0d5fd5cf606c4 | 69 | ex | Elixir | server/lib/buff_server_web/views/layout_view.ex | BlueHotDog/buff | 0403f68867e950945a47cce2d7442974d12583b2 | [
"MIT"
] | 1 | 2020-03-18T17:29:32.000Z | 2020-03-18T17:29:32.000Z | server/lib/buff_server_web/views/layout_view.ex | BlueHotDog/buff | 0403f68867e950945a47cce2d7442974d12583b2 | [
"MIT"
] | 26 | 2019-06-09T18:35:45.000Z | 2020-07-30T17:05:58.000Z | server/lib/buff_server_web/views/layout_view.ex | BlueHotDog/buff | 0403f68867e950945a47cce2d7442974d12583b2 | [
"MIT"
] | null | null | null | defmodule BuffServerWeb.LayoutView do
use BuffServerWeb, :view
end
| 17.25 | 37 | 0.826087 |
331c29b9a2d7a09d8e756b4582e091854585409f | 365 | exs | Elixir | apps/artemis/priv/repo/migrations/20190425132443_create_tags.exs | artemis-platform/artemis_dashboard | 5ab3f5ac4c5255478bbebf76f0e43b44992e3cab | [
"MIT"
] | 9 | 2019-08-19T19:56:34.000Z | 2022-03-22T17:56:38.000Z | apps/artemis/priv/repo/migrations/20190425132443_create_tags.exs | chrislaskey/artemis_teams | 9930c3d9528e37b76f0525390e32b66eed7eadde | [
"MIT"
] | 7 | 2019-07-12T21:41:01.000Z | 2020-08-17T21:29:22.000Z | apps/artemis/priv/repo/migrations/20190425132443_create_tags.exs | chrislaskey/artemis_teams | 9930c3d9528e37b76f0525390e32b66eed7eadde | [
"MIT"
] | 2 | 2019-07-05T22:51:47.000Z | 2019-08-19T19:56:37.000Z | defmodule Artemis.Repo.Migrations.CreateTags do
use Ecto.Migration
def change do
create table(:tags) do
add :description, :text
add :name, :string
add :slug, :string
add :type, :string
end
create index(:tags, [:type])
create unique_index(:tags, [:type, :slug])
create u... | 20.277778 | 47 | 0.632877 |
331c3c0bc6467945030c6b6ce4f0d6c405f2fca1 | 1,055 | ex | Elixir | lib/multiauth_web/controllers/api_auth_controller.ex | drapadubok/multiauth | 9ca9294402311c06a082e6972144a2eb8935a797 | [
"MIT"
] | 1 | 2018-06-01T02:08:12.000Z | 2018-06-01T02:08:12.000Z | lib/multiauth_web/controllers/api_auth_controller.ex | drapadubok/multiauth | 9ca9294402311c06a082e6972144a2eb8935a797 | [
"MIT"
] | null | null | null | lib/multiauth_web/controllers/api_auth_controller.ex | drapadubok/multiauth | 9ca9294402311c06a082e6972144a2eb8935a797 | [
"MIT"
] | null | null | null | defmodule MultiauthWeb.ApiAuthController do
use MultiauthWeb, :controller
require Logger
alias Multiauth.Auth
alias Multiauth.Auth.Guardian
alias MultiauthWeb.SessionView
def login(conn, %{"username" => username, "password" => password}) do
case Auth.authenticate_user(username, password) do
{:o... | 25.119048 | 83 | 0.656872 |
331c7d7738cf48435ad958a20a23d46f1f6db7af | 19,400 | ex | Elixir | lib/iex/lib/iex/helpers.ex | pap/elixir | c803afe90c766663823c74397fb23ed40ec52c5b | [
"Apache-2.0"
] | null | null | null | lib/iex/lib/iex/helpers.ex | pap/elixir | c803afe90c766663823c74397fb23ed40ec52c5b | [
"Apache-2.0"
] | null | null | null | lib/iex/lib/iex/helpers.ex | pap/elixir | c803afe90c766663823c74397fb23ed40ec52c5b | [
"Apache-2.0"
] | null | null | null | defmodule IEx.Helpers do
@moduledoc """
Welcome to Interactive Elixir. You are currently
seeing the documentation for the module `IEx.Helpers`
which provides many helpers to make Elixir's shell
more joyful to work with.
This message was triggered by invoking the helper
`h()`, usually referred to as `h/0`... | 26.721763 | 95 | 0.62201 |
331cb1cdc7f90f97eaa41320e4835a9e791f8bac | 711 | ex | Elixir | lib/boggle_engine/neighbor/transform.ex | rtvu/boggle_engine | ae40c2c95dc3e1c1bcd684a19cba11e583828b9d | [
"MIT"
] | null | null | null | lib/boggle_engine/neighbor/transform.ex | rtvu/boggle_engine | ae40c2c95dc3e1c1bcd684a19cba11e583828b9d | [
"MIT"
] | null | null | null | lib/boggle_engine/neighbor/transform.ex | rtvu/boggle_engine | ae40c2c95dc3e1c1bcd684a19cba11e583828b9d | [
"MIT"
] | null | null | null | defmodule BoggleEngine.Neighbor.Transform do
@moduledoc """
A transform function takes a state and returns a new state. Status and
neighbor should be the only state fields that changes. Metadata is a tuple
containing origin, the i/j delta positions from origin, and size of boggle
board.
"""
alias BoggleE... | 30.913043 | 76 | 0.699015 |
331cbb4e5ecfa20ba2898c5733eb559652cbc9ca | 2,951 | exs | Elixir | exercises/concept/kitchen-calculator/test/kitchen_calculator_test.exs | devtayls/elixir | 67824de8209ff1b6ed2f736deedfb5bd815130ca | [
"MIT"
] | 343 | 2017-06-22T16:28:28.000Z | 2022-03-25T21:33:32.000Z | exercises/concept/kitchen-calculator/test/kitchen_calculator_test.exs | devtayls/elixir | 67824de8209ff1b6ed2f736deedfb5bd815130ca | [
"MIT"
] | 583 | 2017-06-19T10:48:40.000Z | 2022-03-28T21:43:12.000Z | exercises/concept/kitchen-calculator/test/kitchen_calculator_test.exs | devtayls/elixir | 67824de8209ff1b6ed2f736deedfb5bd815130ca | [
"MIT"
] | 228 | 2017-07-05T07:09:32.000Z | 2022-03-27T08:59:08.000Z | defmodule KitchenCalculatorTest do
use ExUnit.Case
describe "get volume from tuple pair" do
@tag task_id: 1
test "get cups" do
assert KitchenCalculator.get_volume({:cup, 1}) == 1
end
@tag task_id: 1
test "get fluid ounces" do
assert KitchenCalculator.get_volume({:fluid_ounce, 2}) =... | 26.827273 | 97 | 0.638428 |
331cc9de6361ab8a864d0e68285abd2fe7200342 | 596 | exs | Elixir | test/functional/render/void_elements_test.exs | brianbroderick/monocle | eeabecea658468479c04a02352271f6304447736 | [
"Apache-2.0"
] | 2 | 2018-02-11T01:18:24.000Z | 2020-01-12T17:19:22.000Z | test/functional/render/void_elements_test.exs | brianbroderick/monocle | eeabecea658468479c04a02352271f6304447736 | [
"Apache-2.0"
] | null | null | null | test/functional/render/void_elements_test.exs | brianbroderick/monocle | eeabecea658468479c04a02352271f6304447736 | [
"Apache-2.0"
] | null | null | null | defmodule VoidElementsTest do
use ExUnit.Case
import ExUnit.CaptureIO
[
{~s[<img src="whatevs.png">], nil},
{~s[<area alt="alt" href="http://some.image.com/image">], nil},
{~s[<br>], nil},
{~s[<hr>], ~s[<hr>]},
{~s[<wbr>], nil},
] |> Enum.each( fn {inp, out} ->
test "#{inp} is transf... | 25.913043 | 67 | 0.540268 |
331ceda10af56a8c71968a74a100c4f066f6c5d2 | 1,958 | ex | Elixir | clients/document_ai/lib/google_api/document_ai/v1beta3/model/google_cloud_documentai_uiv1beta3_enable_processor_metadata.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/document_ai/lib/google_api/document_ai/v1beta3/model/google_cloud_documentai_uiv1beta3_enable_processor_metadata.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/document_ai/lib/google_api/document_ai/v1beta3/model/google_cloud_documentai_uiv1beta3_enable_processor_metadata.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... | 34.964286 | 195 | 0.771195 |
331cf437098609009ad85d8683130d1e53b92e86 | 1,566 | ex | Elixir | lib/mix/tasks/observer.ex | rubencaro/bottler | f88caf6d0d7d12e88b34e8e0c9a6f372fc6c8edb | [
"MIT"
] | 37 | 2015-05-12T13:26:33.000Z | 2020-02-20T02:43:40.000Z | lib/mix/tasks/observer.ex | rubencaro/bottler | f88caf6d0d7d12e88b34e8e0c9a6f372fc6c8edb | [
"MIT"
] | 4 | 2017-10-20T10:00:00.000Z | 2018-05-13T06:32:35.000Z | lib/mix/tasks/observer.ex | rubencaro/bottler | f88caf6d0d7d12e88b34e8e0c9a6f372fc6c8edb | [
"MIT"
] | 8 | 2015-05-28T10:45:31.000Z | 2018-01-16T07:57:13.000Z | require Bottler.Helpers, as: H
require Logger, as: L
defmodule Mix.Tasks.Observer do
use Mix.Task
def run(args) do
name = args |> List.first |> String.to_atom
H.set_prod_environment
c = H.read_and_validate_config |> H.inline_resolve_servers
if not name in Keyword.keys(c[:servers]),
do: rai... | 31.959184 | 160 | 0.630907 |
331d18184db7e0ec61b9cfcabd3732bef385e258 | 3,063 | exs | Elixir | talks-articles/languages-n-runtimes/elixir/book--programming-elixir-ge-1.6/chapter-24/chapter-24-parse-midi.exs | abhishekkr/tutorials_as_code | f355dc62a5025b710ac6d4a6ac2f9610265fad54 | [
"MIT"
] | 37 | 2015-02-01T23:16:39.000Z | 2021-12-22T16:50:48.000Z | talks-articles/languages-n-runtimes/elixir/book--programming-elixir-ge-1.6/chapter-24/chapter-24-parse-midi.exs | abhishekkr/tutorials_as_code | f355dc62a5025b710ac6d4a6ac2f9610265fad54 | [
"MIT"
] | 1 | 2017-03-02T04:55:48.000Z | 2018-01-14T10:51:11.000Z | talks-articles/languages-n-runtimes/elixir/book--programming-elixir-ge-1.6/chapter-24/chapter-24-parse-midi.exs | abhishekkr/tutorials_as_code | f355dc62a5025b710ac6d4a6ac2f9610265fad54 | [
"MIT"
] | 15 | 2015-03-02T08:09:01.000Z | 2021-06-10T03:25:41.000Z | defmodule Midi do
defstruct(content: <<>>)
defmodule Frame do
defstruct(
type: "xxxx",
length: 0,
data: <<>>
)
def to_binary(%Midi.Frame{
type: type,
length: length,
data: data
}) do
<<
type::binary-4,
length::integer-32,
data::bina... | 23.744186 | 86 | 0.591903 |
331d1c9d3931d4c849726959de0d5eca072e95c9 | 1,797 | exs | Elixir | mix.exs | bruguedes/nlw5-trilha-elixir | 4de5ecdce766c4371da80cd69ea08283838c66cd | [
"MIT"
] | null | null | null | mix.exs | bruguedes/nlw5-trilha-elixir | 4de5ecdce766c4371da80cd69ea08283838c66cd | [
"MIT"
] | null | null | null | mix.exs | bruguedes/nlw5-trilha-elixir | 4de5ecdce766c4371da80cd69ea08283838c66cd | [
"MIT"
] | null | null | null | defmodule Inmana.MixProject do
use Mix.Project
def project do
[
app: :inmana,
version: "0.1.0",
elixir: "~> 1.11",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix, :gettext] ++ Mix.compilers(),
start_permanent: Mix.env() == :prod,
aliases: aliases(),
... | 27.227273 | 84 | 0.572621 |
331d243e92054727f5e09bf84eddb0afbe601720 | 1,536 | exs | Elixir | mix.exs | syncrypt/ex_orient | 966823f5c1823c5c5ed3b9ed5e0a61280ca44e40 | [
"MIT"
] | null | null | null | mix.exs | syncrypt/ex_orient | 966823f5c1823c5c5ed3b9ed5e0a61280ca44e40 | [
"MIT"
] | null | null | null | mix.exs | syncrypt/ex_orient | 966823f5c1823c5c5ed3b9ed5e0a61280ca44e40 | [
"MIT"
] | 1 | 2021-07-21T07:45:22.000Z | 2021-07-21T07:45:22.000Z | defmodule ExOrient.Mixfile do
use Mix.Project
def project do
[app: :ex_orient,
version: "1.5.2",
elixir: "~> 1.2",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
description: description(),
package: package(),
deps: deps(),
docs: docs()]
end
# ... | 21.041096 | 77 | 0.541667 |
331d32110fa47e5233d8f0240542c5b11ecf1397 | 654 | exs | Elixir | config/test.exs | GabrielMalakias/ex_air | 2f892d4c2e1313fc5d794de2e50769e4165ee5fc | [
"MIT"
] | null | null | null | config/test.exs | GabrielMalakias/ex_air | 2f892d4c2e1313fc5d794de2e50769e4165ee5fc | [
"MIT"
] | null | null | null | config/test.exs | GabrielMalakias/ex_air | 2f892d4c2e1313fc5d794de2e50769e4165ee5fc | [
"MIT"
] | null | null | null | use Mix.Config
# Configure your database
#
# The MIX_TEST_PARTITION environment variable can be used
# to provide built-in test partitioning in CI environment.
# Run `mix help test` for more information.
config :ex_air, ExAir.Repo,
username: "postgres",
password: "postgres",
database: "ex_air_test#{System.get_en... | 28.434783 | 65 | 0.746177 |
331d55c47a3631c323cbfa8848e459f6fca044cd | 3,913 | ex | Elixir | web/controllers/post_controller.ex | davepersing/blog_engine | 8605732f72c169d6cc2c2261a9acef0de7769403 | [
"MIT"
] | null | null | null | web/controllers/post_controller.ex | davepersing/blog_engine | 8605732f72c169d6cc2c2261a9acef0de7769403 | [
"MIT"
] | null | null | null | web/controllers/post_controller.ex | davepersing/blog_engine | 8605732f72c169d6cc2c2261a9acef0de7769403 | [
"MIT"
] | null | null | null | defmodule BlogEngine.PostController do
use BlogEngine.Web, :controller
alias BlogEngine.Post
plug :scrub_params, "post" when action in [:create, :update]
plug :assign_user when not action in [:index]
plug :authorize_user when action in [:new, :create, :update, :edit, :delete]
plug :set_authorization_flag ... | 29.421053 | 110 | 0.618962 |
331d9ff15e388e9ae40c9178c5c9ee1a37569d02 | 1,847 | ex | Elixir | lib/oban/queue/supervisor.ex | maxmarcon/oban | 1834b741024974355937d708a8e3549e80a42e20 | [
"Apache-2.0"
] | null | null | null | lib/oban/queue/supervisor.ex | maxmarcon/oban | 1834b741024974355937d708a8e3549e80a42e20 | [
"Apache-2.0"
] | null | null | null | lib/oban/queue/supervisor.ex | maxmarcon/oban | 1834b741024974355937d708a8e3549e80a42e20 | [
"Apache-2.0"
] | null | null | null | defmodule Oban.Queue.Supervisor do
@moduledoc false
use Supervisor
alias Oban.{Config, Registry}
alias Oban.Queue.{Producer, Watchman}
@type option ::
{:name, module()}
| {:conf, Config.t()}
| {:queue, binary()}
| {:limit, pos_integer()}
@type queue_name :: atom()... | 26.768116 | 87 | 0.644829 |
331dcfc63a898c7ffc344a30459738c2cf313f63 | 2,037 | ex | Elixir | clients/document_ai/lib/google_api/document_ai/v1beta2/model/google_cloud_documentai_v1beta1_document_shard_info.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/document_ai/lib/google_api/document_ai/v1beta2/model/google_cloud_documentai_v1beta1_document_shard_info.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/document_ai/lib/google_api/document_ai/v1beta2/model/google_cloud_documentai_v1beta1_document_shard_info.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... | 35.12069 | 154 | 0.731959 |
331dee8ccff0172f310b1eb9571756351f3f2af5 | 59 | ex | Elixir | lib/kwtool_web/views/page_view.ex | byhbt/kwtool | 8958a160066e3e4c61806202af2563541f2261e3 | [
"MIT"
] | 5 | 2021-12-14T08:18:24.000Z | 2022-03-29T10:02:48.000Z | lib/kwtool_web/views/page_view.ex | byhbt/kwtool | 8958a160066e3e4c61806202af2563541f2261e3 | [
"MIT"
] | 32 | 2021-03-21T16:32:18.000Z | 2022-03-23T08:00:37.000Z | lib/kwtool_web/views/page_view.ex | byhbt/kwtool | 8958a160066e3e4c61806202af2563541f2261e3 | [
"MIT"
] | 1 | 2021-06-03T17:22:16.000Z | 2021-06-03T17:22:16.000Z | defmodule KwtoolWeb.PageView do
use KwtoolWeb, :view
end
| 14.75 | 31 | 0.79661 |
331df61e54cd13308ef46e4e5af3a50a0f5e9dd7 | 1,205 | ex | Elixir | lib/elixir_ravelry_web/controllers/material_for_controller.ex | StabbyMcDuck/elixir_ravelry | c503fc019842bb82ad58673a1b6867e3214fc7e1 | [
"Apache-2.0"
] | 21 | 2017-08-27T13:59:18.000Z | 2020-10-07T03:35:22.000Z | lib/elixir_ravelry_web/controllers/material_for_controller.ex | StabbyMcDuck/elixir_ravelry | c503fc019842bb82ad58673a1b6867e3214fc7e1 | [
"Apache-2.0"
] | 2 | 2017-09-02T15:49:47.000Z | 2017-09-02T17:43:29.000Z | lib/elixir_ravelry_web/controllers/material_for_controller.ex | StabbyMcDuck/elixir_ravelry | c503fc019842bb82ad58673a1b6867e3214fc7e1 | [
"Apache-2.0"
] | 7 | 2017-09-02T15:11:49.000Z | 2019-08-20T19:00:48.000Z | defmodule ElixirRavelryWeb.MaterialForController do
use ElixirRavelryWeb, :controller
alias ElixirRavelry.Repo
alias ElixirRavelryWeb.{Graph, MaterialFor}
def create(conn, params) do
changeset = MaterialFor.changeset(%MaterialFor{}, params)
if changeset.valid? do
material_for = Ecto.Changeset.a... | 23.627451 | 74 | 0.589212 |
331e0e22189fb53a5396351d466c0efd52b69759 | 1,812 | exs | Elixir | mix.exs | etherharvest/yggdrasil_ethereum | 6dad6c9fe55f0aa7c2fe5726a54275a7a6922956 | [
"MIT"
] | null | null | null | mix.exs | etherharvest/yggdrasil_ethereum | 6dad6c9fe55f0aa7c2fe5726a54275a7a6922956 | [
"MIT"
] | null | null | null | mix.exs | etherharvest/yggdrasil_ethereum | 6dad6c9fe55f0aa7c2fe5726a54275a7a6922956 | [
"MIT"
] | null | null | null | defmodule YggdrasilEthereum.MixProject do
use Mix.Project
@version "0.1.0"
@root "https://github.com/etherharvest/yggdrasil_ethereum"
def project do
[
app: :yggdrasil_ethereum,
version: @version,
elixir: "~> 1.6",
elixirc_paths: elixirc_paths(Mix.env()),
build_embedded: Mix.e... | 19.912088 | 69 | 0.546358 |
331e2b7e62a73af76fb6b5769727f535f4a5d836 | 12,347 | exs | Elixir | priv/repo/seeds.exs | togmund/hexen | 5166ba445af592516beae48ccfcb76efc3fde166 | [
"Unlicense"
] | 2 | 2019-12-28T21:31:43.000Z | 2019-12-30T01:03:28.000Z | priv/repo/seeds.exs | togmund/hexen | 5166ba445af592516beae48ccfcb76efc3fde166 | [
"Unlicense"
] | 4 | 2019-12-23T23:51:30.000Z | 2021-05-10T22:24:18.000Z | priv/repo/seeds.exs | togmund/hexen | 5166ba445af592516beae48ccfcb76efc3fde166 | [
"Unlicense"
] | 1 | 2020-01-17T20:19:14.000Z | 2020-01-17T20:19:14.000Z | defmodule Hexen.DatabaseSeeder do
@moduledoc """
Script for populating the database. You can run it as:
mix ecto.drop
mix ecto.create
mix ecto.migrate
mix run priv/repo/seeds.exs
Inside the script, you can read and write to any of your
repositories directly:
Hexen.Repo.insert!(%Hexen.SomeSchema... | 18.024818 | 111 | 0.536568 |
331e6b98905314c43b62510c7266cde79d76c250 | 942 | exs | Elixir | mix.exs | ramortegui/EcCart | c6aa0632ed913c825103d158db84fcf7e5193998 | [
"Apache-2.0"
] | 1 | 2019-03-31T16:20:16.000Z | 2019-03-31T16:20:16.000Z | mix.exs | ramortegui/EcCart | c6aa0632ed913c825103d158db84fcf7e5193998 | [
"Apache-2.0"
] | 1 | 2018-04-01T03:27:12.000Z | 2018-04-01T03:27:12.000Z | mix.exs | ramortegui/EcCart | c6aa0632ed913c825103d158db84fcf7e5193998 | [
"Apache-2.0"
] | null | null | null | defmodule Ec.Cart.Mixfile do
use Mix.Project
def project do
[
app: :ec_cart,
version: "0.1.5",
elixir: "~> 1.6",
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
package: package(),
description: description(),
deps: deps()
]
end
d... | 21.409091 | 67 | 0.546709 |
331e6eaa65424b118f9bee031579fb96b88d1a02 | 500 | ex | Elixir | apps/rumbl/lib/rumbl/permalink.ex | Krustee/rumbrella | 252ee46da0c563680f8dddb381523ab7a75069fe | [
"MIT"
] | null | null | null | apps/rumbl/lib/rumbl/permalink.ex | Krustee/rumbrella | 252ee46da0c563680f8dddb381523ab7a75069fe | [
"MIT"
] | null | null | null | apps/rumbl/lib/rumbl/permalink.ex | Krustee/rumbrella | 252ee46da0c563680f8dddb381523ab7a75069fe | [
"MIT"
] | null | null | null | defmodule Rumbl.Permalink do
@behaviour Ecto.Type
def type, do: :id
def cast(binary) when is_binary(binary) do
case Integer.parse(binary) do
{int, _} when int > 0 -> {:ok, int}
_ -> :error
end
end
def cast(integer) when is_integer(integer) do
{:ok, integer}
end
def cast... | 17.241379 | 47 | 0.616 |
331e760a894628575aa1704dbc27b23b20426e77 | 1,201 | ex | Elixir | lib/transmit/s3.ex | revelrylabs/transmit | 26c8c0df1f5644fd69d77201af74750ac3815b0b | [
"MIT"
] | 5 | 2019-04-13T07:20:29.000Z | 2020-04-14T11:13:23.000Z | lib/transmit/s3.ex | revelrylabs/transmit | 26c8c0df1f5644fd69d77201af74750ac3815b0b | [
"MIT"
] | null | null | null | lib/transmit/s3.ex | revelrylabs/transmit | 26c8c0df1f5644fd69d77201af74750ac3815b0b | [
"MIT"
] | null | null | null | defmodule Transmit.S3Signer do
@moduledoc """
Transmit.Signer for AWS S3 Presigned URLs
Make sure to install ex_aws and ex_aws_s3 as dependencies in your project:
```elixir
def deps do
[
{:ex_aws, "~> 2.0"},
{:ex_aws_s3, "~> 2.0"},
]
end
```
Also make sure to follow setup instructions: [h... | 24.510204 | 159 | 0.597835 |
331e77c0e7476399693c94d52039cba8987b57b5 | 653 | ex | Elixir | lib/changelog/kits/string_kit.ex | theafricanengineer/changelog.com | 4954d0df516c0a325667ec6c1fbbf02d68c9b953 | [
"MIT"
] | null | null | null | lib/changelog/kits/string_kit.ex | theafricanengineer/changelog.com | 4954d0df516c0a325667ec6c1fbbf02d68c9b953 | [
"MIT"
] | null | null | null | lib/changelog/kits/string_kit.ex | theafricanengineer/changelog.com | 4954d0df516c0a325667ec6c1fbbf02d68c9b953 | [
"MIT"
] | null | null | null | defmodule Changelog.StringKit do
def dasherize(string) do
string
|> String.downcase
|> String.replace(~r/[^\w\s]/, "")
|> String.replace(" ", "-")
end
@doc """
Converts 'bare' links to Markdown-style links for further processing
"""
def md_linkify(string) do
regex = ~r/
(?<=^|\s|\... | 28.391304 | 83 | 0.555896 |
331e7b3366f2c784320e75dc47f54bcedd925cdf | 1,419 | ex | Elixir | lib/ex_payjp/charge.ex | yuki-toida/ex_payjp | 97fc4cecd41f083ce79ffeb398b4685597da2237 | [
"MIT"
] | null | null | null | lib/ex_payjp/charge.ex | yuki-toida/ex_payjp | 97fc4cecd41f083ce79ffeb398b4685597da2237 | [
"MIT"
] | null | null | null | lib/ex_payjp/charge.ex | yuki-toida/ex_payjp | 97fc4cecd41f083ce79ffeb398b4685597da2237 | [
"MIT"
] | null | null | null | defmodule ExPayjp.Charge do
alias ExPayjp
alias ExPayjp.Environment
@endpoint "https://api.pay.jp/v1/charges"
def get(charge_id) do
"#{@endpoint}/#{charge_id}"
|> ExPayjp.get()
end
@doc """
顧客情報による支払作成
- capture: 支払処理を確定させるかどうか
true -> 支払確定処理
false -> 与信枠確保 → 支払処理の2段階
"""
de... | 22.887097 | 83 | 0.628612 |
331ea9d194504507f9e95b8db1b701042eabac35 | 14,621 | exs | Elixir | test/generator/stream_data_test.exs | d2km/rtypes | ea5eca9862d8860fce9bd29798f4bf032aa0481d | [
"Apache-2.0"
] | 21 | 2019-05-23T12:35:31.000Z | 2020-09-30T04:48:03.000Z | test/generator/stream_data_test.exs | d2km/rtypes | ea5eca9862d8860fce9bd29798f4bf032aa0481d | [
"Apache-2.0"
] | 3 | 2020-10-16T11:49:33.000Z | 2020-11-14T08:53:44.000Z | test/generator/stream_data_test.exs | d2km/rtypes | ea5eca9862d8860fce9bd29798f4bf032aa0481d | [
"Apache-2.0"
] | 2 | 2019-06-06T14:20:25.000Z | 2020-01-06T11:00:08.000Z | defmodule RTypes.Generator.StreamDataTest do
use ExUnit.Case
use ExUnitProperties
require RTypes
require RTypes.Generator, as: Generator
alias RTypes.Generator.StreamData, as: SD
alias RTypes.Test.BasicTypes
alias RTypes.Test.ComplexTypes
property "atom" do
p? = RTypes.make_predicate(BasicTypes.ty... | 27.691288 | 78 | 0.658436 |
331eae7ac062c21f9378f25368773b0f0a91af41 | 7,512 | ex | Elixir | lib/plausible_web/controllers/api/stats_controller.ex | samuel-p/analytics | 5d35bab9c6c2aafc556659f64e4213848a37ed8a | [
"MIT"
] | null | null | null | lib/plausible_web/controllers/api/stats_controller.ex | samuel-p/analytics | 5d35bab9c6c2aafc556659f64e4213848a37ed8a | [
"MIT"
] | null | null | null | lib/plausible_web/controllers/api/stats_controller.ex | samuel-p/analytics | 5d35bab9c6c2aafc556659f64e4213848a37ed8a | [
"MIT"
] | null | null | null | defmodule PlausibleWeb.Api.StatsController do
use PlausibleWeb, :controller
use Plausible.Repo
alias Plausible.Stats.Clickhouse, as: Stats
alias Plausible.Stats.Query
plug PlausibleWeb.AuthorizeStatsPlug
def main_graph(conn, params) do
site = conn.assigns[:site]
query = Query.from(site.timezone, pa... | 31.696203 | 96 | 0.665069 |
331f4764d3de00b70a5e858b39c8d5aa5e229297 | 1,291 | exs | Elixir | config/config.exs | philosodad/bridge_queue | 33b2ca93a5e7d41af851e8ac1eb2a3e7ed601b2e | [
"MIT"
] | null | null | null | config/config.exs | philosodad/bridge_queue | 33b2ca93a5e7d41af851e8ac1eb2a3e7ed601b2e | [
"MIT"
] | null | null | null | config/config.exs | philosodad/bridge_queue | 33b2ca93a5e7d41af851e8ac1eb2a3e7ed601b2e | [
"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 :ifs_bq, IfsBq.Repo,
adapter: Ecto.Adapters.Postgres,
database: "bridge_queue",
username: "postgres",
password: "postgres"
# This... | 35.861111 | 73 | 0.725794 |
331f7667522c1bd393f54905e0cff0ab98d8ae81 | 25,533 | ex | Elixir | lib/elixir/lib/regex.ex | kassio/elixir | 78551c11c9c97bb608e4097d2e0c36458b11f535 | [
"Apache-2.0"
] | 1 | 2019-10-11T01:36:26.000Z | 2019-10-11T01:36:26.000Z | lib/elixir/lib/regex.ex | hiro-riveros/elixir | c6da1cfaa83e420726be25617440fc09f118de52 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/regex.ex | hiro-riveros/elixir | c6da1cfaa83e420726be25617440fc09f118de52 | [
"Apache-2.0"
] | null | null | null | defmodule Regex do
@moduledoc ~S"""
Provides regular expressions for Elixir.
Regex is based on PCRE (Perl Compatible Regular Expressions) and
built on top of Erlang's `:re` module. More information can be found
in the [`:re` module documentation](http://www.erlang.org/doc/man/re.html).
Regular expressions... | 29.793466 | 98 | 0.623859 |
331f8f045f7524e04351bcc73333f7fec0f71d66 | 1,000 | exs | Elixir | mix.exs | ananthakumaran/exq_batch | 6771480229161fcbb544a33bead619020fe27fd1 | [
"MIT"
] | 2 | 2020-12-14T00:37:55.000Z | 2022-01-03T01:37:29.000Z | mix.exs | ananthakumaran/exq_batch | 6771480229161fcbb544a33bead619020fe27fd1 | [
"MIT"
] | null | null | null | mix.exs | ananthakumaran/exq_batch | 6771480229161fcbb544a33bead619020fe27fd1 | [
"MIT"
] | null | null | null | defmodule ExqBatch.MixProject do
use Mix.Project
def project do
[
app: :exq_batch,
version: "0.1.1",
elixir: "~> 1.8",
start_permanent: Mix.env() == :prod,
deps: deps(),
description: "Monitors group of Exq jobs",
docs: [
main: "readme",
extras: ["README... | 22.727273 | 76 | 0.511 |
331fcbc1306c46268cb82273da15b70bd5f11553 | 2,871 | ex | Elixir | lib/expo/translation/plural.ex | jshmrtn/expo | 98459ed26833c1b05348bb80a66e78fc6d2e488d | [
"Apache-2.0"
] | 2 | 2022-03-31T21:12:35.000Z | 2022-03-31T21:44:59.000Z | lib/expo/translation/plural.ex | jshmrtn/expo | 98459ed26833c1b05348bb80a66e78fc6d2e488d | [
"Apache-2.0"
] | 13 | 2022-03-30T17:41:25.000Z | 2022-03-31T23:35:49.000Z | lib/expo/translation/plural.ex | jshmrtn/expo | 98459ed26833c1b05348bb80a66e78fc6d2e488d | [
"Apache-2.0"
] | null | null | null | defmodule Expo.Translation.Plural do
@moduledoc """
Struct for plural translations
"""
alias Expo.Translation
alias Expo.Util
@type t :: %__MODULE__{
msgid: Translation.msgid(),
msgid_plural: [Translation.msgid()],
msgstr: %{required(non_neg_integer()) => Translation.msgstr()... | 29.597938 | 98 | 0.541623 |
331fea9b78cf686b32627b98d468bef84dd80d5b | 803 | ex | Elixir | apps/elixir_security_advisory_api/test/support/channel_case.ex | ex-security-advisory/api | 75674d42efd3b9f2406233e36244d5cb5f174971 | [
"MIT"
] | 5 | 2019-01-03T18:33:40.000Z | 2021-01-25T10:15:06.000Z | apps/elixir_security_advisory_api/test/support/channel_case.ex | ex-security-advisory/api | 75674d42efd3b9f2406233e36244d5cb5f174971 | [
"MIT"
] | 15 | 2018-12-27T16:59:06.000Z | 2019-01-04T17:34:38.000Z | apps/elixir_security_advisory_api/test/support/channel_case.ex | ex-security-advisory/api | 75674d42efd3b9f2406233e36244d5cb5f174971 | [
"MIT"
] | null | null | null | defmodule ElixirSecurityAdvisoryApi.ChannelCase do
@moduledoc """
This module defines the test case to be used by
channel tests.
Such tests rely on `Phoenix.ChannelTest` and also
import other functionality to make it easier
to build common data structures and query the data layer.
Finally, if the test c... | 25.09375 | 59 | 0.737235 |
331ff1b9dbcec45d3a40f5501767b1891539e084 | 1,308 | ex | Elixir | lib/network_test/packet_tracer/shell.ex | jonnystorm/network-test | c40fb6d2cef112ac3c1c256c341c1bbe78cf66cb | [
"WTFPL"
] | null | null | null | lib/network_test/packet_tracer/shell.ex | jonnystorm/network-test | c40fb6d2cef112ac3c1c256c341c1bbe78cf66cb | [
"WTFPL"
] | null | null | null | lib/network_test/packet_tracer/shell.ex | jonnystorm/network-test | c40fb6d2cef112ac3c1c256c341c1bbe78cf66cb | [
"WTFPL"
] | null | null | null | # Copyright © 2016 Jonathan Storm <the.jonathan.storm@gmail.com>
# This work is free. You can redistribute it and/or modify it under the
# terms of the Do What The Fuck You Want To Public License, Version 2,
# as published by Sam Hocevar. See the COPYING.WTFPL file for more details.
defmodule NetworkTest.PacketTracer.... | 26.16 | 77 | 0.630734 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.