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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
93afc273b77cfe53e20afbc89234bdc2f956977a | 1,050 | exs | Elixir | mix.exs | blendmedia/conform | 439be07c742bca51a7941eb2794dc6df26866adf | [
"MIT"
] | null | null | null | mix.exs | blendmedia/conform | 439be07c742bca51a7941eb2794dc6df26866adf | [
"MIT"
] | null | null | null | mix.exs | blendmedia/conform | 439be07c742bca51a7941eb2794dc6df26866adf | [
"MIT"
] | null | null | null | defmodule Conform.Mixfile do
use Mix.Project
@compile_peg_task "tasks/compile.peg.exs"
@do_peg_compile? File.exists?(@compile_peg_task)
if @do_peg_compile? do
Code.eval_file @compile_peg_task
end
def project do
[app: :conform,
version: "2.0.0",
elixir: "~> 1.0",
escript: [main_modu... | 25 | 71 | 0.613333 |
93afd0ca2cada0b66dd84ffb8c37dc13b16ac076 | 1,145 | exs | Elixir | elixir/codes-from-books/little-elixir/cap11/quickcheck_playground/config/config.exs | trxeste/wrk | 3e05e50ff621866f0361cc8494ce8f6bb4d97fae | [
"BSD-3-Clause"
] | 1 | 2017-10-16T03:00:50.000Z | 2017-10-16T03:00:50.000Z | elixir/codes-from-books/little-elixir/cap11/quickcheck_playground/config/config.exs | trxeste/wrk | 3e05e50ff621866f0361cc8494ce8f6bb4d97fae | [
"BSD-3-Clause"
] | null | null | null | elixir/codes-from-books/little-elixir/cap11/quickcheck_playground/config/config.exs | trxeste/wrk | 3e05e50ff621866f0361cc8494ce8f6bb4d97fae | [
"BSD-3-Clause"
] | 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.935484 | 73 | 0.757205 |
93afdb8aef78909763b9ec61389858368dab1db1 | 4,413 | ex | Elixir | lib/ex_pool/manager.ex | jcabotc/ex_pool | ec5acab0e16aa7b7d5c58abba8aa1ebcf8c5c6e4 | [
"Apache-2.0"
] | 6 | 2015-11-29T10:43:02.000Z | 2016-04-07T17:32:17.000Z | lib/ex_pool/manager.ex | jcabotc/ex_pool | ec5acab0e16aa7b7d5c58abba8aa1ebcf8c5c6e4 | [
"Apache-2.0"
] | null | null | null | lib/ex_pool/manager.ex | jcabotc/ex_pool | ec5acab0e16aa7b7d5c58abba8aa1ebcf8c5c6e4 | [
"Apache-2.0"
] | null | null | null | defmodule ExPool.Manager do
@moduledoc """
Module to start a pool, and check-in and check-out workers.
When a worker is available, it can be checked-out from the pool.
In case there are no available workers it will respond `{:waiting, state}`
and enqueue the pending request.
When a worker is checked-in wi... | 30.645833 | 87 | 0.672105 |
93afe0286a6c831cb7494a8674ab2dd6a78d259d | 710 | ex | Elixir | lib/ex_dadata/address/geocode_address.ex | Elonsoft/ex_dadata | 71edca65f9d35fd2c9aa6553e87992b377500a1c | [
"MIT"
] | 1 | 2021-08-23T08:24:50.000Z | 2021-08-23T08:24:50.000Z | lib/ex_dadata/address/geocode_address.ex | Elonsoft/ex_dadata | 71edca65f9d35fd2c9aa6553e87992b377500a1c | [
"MIT"
] | null | null | null | lib/ex_dadata/address/geocode_address.ex | Elonsoft/ex_dadata | 71edca65f9d35fd2c9aa6553e87992b377500a1c | [
"MIT"
] | null | null | null | defmodule ExDadata.Address.GeocodeAddress do
@moduledoc false
use Ecto.Schema
alias __MODULE__.{Metro, Row}
alias Ecto.Changeset
@primary_key false
embedded_schema do
embeds_many :items, Row
end
def new!(attrs) when is_list(attrs) do
%{items: items} = do_new!(attrs)
Enum.map(items, fn
... | 20.882353 | 49 | 0.622535 |
93afebecdffe137eaae8f19f8b977aa768b5596a | 11,220 | ex | Elixir | lib/phoenix/endpoint/supervisor.ex | 50kudos/phoenix | 2ddd0ee46ddf49e44db0ec876dc9c4cff940f2d2 | [
"MIT"
] | null | null | null | lib/phoenix/endpoint/supervisor.ex | 50kudos/phoenix | 2ddd0ee46ddf49e44db0ec876dc9c4cff940f2d2 | [
"MIT"
] | null | null | null | lib/phoenix/endpoint/supervisor.ex | 50kudos/phoenix | 2ddd0ee46ddf49e44db0ec876dc9c4cff940f2d2 | [
"MIT"
] | null | null | null | defmodule Phoenix.Endpoint.Supervisor do
# This module contains the logic used by most functions in Phoenix.Endpoint
# as well the supervisor for sockets, adapters, watchers, etc.
@moduledoc false
require Logger
use Supervisor
alias Phoenix.Endpoint.{CowboyAdapter, Cowboy2Adapter}
@doc """
Starts the ... | 28.333333 | 117 | 0.649376 |
93b00447519bd805ac4c8f364133c399410521a7 | 1,188 | ex | Elixir | lib/herd/supervisor.ex | Frameio/flock | e1b003265b6463d8228bfaaf33c14d5c6c7962cb | [
"MIT"
] | 11 | 2018-08-16T23:16:25.000Z | 2022-02-23T18:08:16.000Z | lib/herd/supervisor.ex | Frameio/flock | e1b003265b6463d8228bfaaf33c14d5c6c7962cb | [
"MIT"
] | 7 | 2019-04-03T07:29:10.000Z | 2022-02-22T12:03:01.000Z | lib/herd/supervisor.ex | Frameio/flock | e1b003265b6463d8228bfaaf33c14d5c6c7962cb | [
"MIT"
] | 4 | 2019-10-26T10:20:58.000Z | 2022-02-22T18:18:36.000Z | defmodule Herd.Supervisor do
@moduledoc """
Creates a Supervisor for the herd's internal registry, it's pool of pools,
and the cluster. Use with:
```
defmodule MyHerdSupervisor do
use Herd.Supervisor, otp_app: :my_app,
cluster: MyCluster,
pool: MyPool
... | 27 | 84 | 0.601852 |
93b028af3b9442a2f1bd7e3fc6be03a8969b62eb | 5,129 | ex | Elixir | clients/vm_migration/lib/google_api/vm_migration/v1/model/compute_engine_target_defaults.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/vm_migration/lib/google_api/vm_migration/v1/model/compute_engine_target_defaults.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/vm_migration/lib/google_api/vm_migration/v1/model/compute_engine_target_defaults.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 52.336735 | 186 | 0.677715 |
93b0313b537075d0f391cc6aec75367bfd6e4718 | 2,523 | exs | Elixir | config.exs | itwks/docker-pleroma | f2c3cde034ac1b6bb52dfdbb5560bc65fedda29c | [
"MIT"
] | 1 | 2021-01-29T07:18:55.000Z | 2021-01-29T07:18:55.000Z | config.exs | itwks/docker-pleroma | f2c3cde034ac1b6bb52dfdbb5560bc65fedda29c | [
"MIT"
] | null | null | null | config.exs | itwks/docker-pleroma | f2c3cde034ac1b6bb52dfdbb5560bc65fedda29c | [
"MIT"
] | 3 | 2021-01-29T07:19:01.000Z | 2021-07-22T12:40:21.000Z | import Config
config :pleroma, Pleroma.Web.Endpoint,
url: [host: System.get_env("DOMAIN", "localhost"), scheme: "https", port: 443],
http: [ip: {0, 0, 0, 0}, port: 4000]
config :pleroma, :instance,
name: System.get_env("INSTANCE_NAME", "Pleroma"),
email: System.get_env("ADMIN_EMAIL"),
notify_email: System.g... | 34.094595 | 96 | 0.705906 |
93b0ea3deb3c0d73d91d9f7ba4f0462fabdb2b16 | 2,550 | exs | Elixir | test/credo/check/consistency/space_around_operators/collector_test.exs | elixir-twister/credo | 619e0ec6e244c5e0c12eeeb58ed9de97e1571d99 | [
"MIT"
] | null | null | null | test/credo/check/consistency/space_around_operators/collector_test.exs | elixir-twister/credo | 619e0ec6e244c5e0c12eeeb58ed9de97e1571d99 | [
"MIT"
] | null | null | null | test/credo/check/consistency/space_around_operators/collector_test.exs | elixir-twister/credo | 619e0ec6e244c5e0c12eeeb58ed9de97e1571d99 | [
"MIT"
] | null | null | null | defmodule Credo.Check.Consistency.SpaceAroundOperators.CollectorTest do
use Credo.TestHelper
alias Credo.Check.Consistency.SpaceAroundOperators.Collector
@with_space """
defmodule Credo.Sample1 do
defmodule InlineModule do
def foobar do
4 + 3
4 - 3
4 * 3
a = 3
4 && 3
"4... | 23.394495 | 102 | 0.601176 |
93b11b2e24f577d7c9171905193f8e0ad125ce1f | 54 | ex | Elixir | lib/solid/parser.ex | christopherlai/solid | c7f0553f4ce3c12b68484baff42084bee1aa640b | [
"MIT"
] | 117 | 2016-09-04T03:56:08.000Z | 2022-03-28T18:51:56.000Z | lib/solid/parser.ex | christopherlai/solid | c7f0553f4ce3c12b68484baff42084bee1aa640b | [
"MIT"
] | 73 | 2017-03-21T09:22:45.000Z | 2022-03-01T20:48:22.000Z | lib/solid/parser.ex | christopherlai/solid | c7f0553f4ce3c12b68484baff42084bee1aa640b | [
"MIT"
] | 25 | 2017-04-02T02:23:01.000Z | 2022-02-27T20:42:13.000Z | defmodule Solid.Parser do
use Solid.Parser.Base
end
| 13.5 | 25 | 0.796296 |
93b140805de806243ffe5426fa647c1018c7cb7d | 1,068 | exs | Elixir | priv/repo/migrations/20150503185054_add_location_index.exs | google/strabo | edfd59cd2a361df23ca78089255597ecdc62bb93 | [
"Apache-2.0"
] | 70 | 2015-12-01T11:29:54.000Z | 2020-10-29T03:40:01.000Z | priv/repo/migrations/20150503185054_add_location_index.exs | google/strabo | edfd59cd2a361df23ca78089255597ecdc62bb93 | [
"Apache-2.0"
] | null | null | null | priv/repo/migrations/20150503185054_add_location_index.exs | google/strabo | edfd59cd2a361df23ca78089255597ecdc62bb93 | [
"Apache-2.0"
] | 9 | 2017-07-23T10:45:49.000Z | 2021-07-12T12:27:59.000Z | # Copyright 2015 Google, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing... | 33.375 | 80 | 0.684457 |
93b15ae3cd857e8879c45d8272b821b230af9320 | 2,595 | exs | Elixir | test/password_validator/zxcvbn_validator_test.exs | numerai/password-validator-zxcvbn | 25278f435473e602e91acd9c536c9592bc38e869 | [
"Apache-2.0"
] | 1 | 2019-10-12T14:31:48.000Z | 2019-10-12T14:31:48.000Z | test/password_validator/zxcvbn_validator_test.exs | numerai/password-validator-zxcvbn | 25278f435473e602e91acd9c536c9592bc38e869 | [
"Apache-2.0"
] | null | null | null | test/password_validator/zxcvbn_validator_test.exs | numerai/password-validator-zxcvbn | 25278f435473e602e91acd9c536c9592bc38e869 | [
"Apache-2.0"
] | 3 | 2021-01-31T22:16:20.000Z | 2021-02-03T17:43:47.000Z | defmodule PasswordValidator.Validators.ZXCVBNValidatorTest do
use ExUnit.Case, async: true
alias PasswordValidator.Validators.ZXCVBNValidator
doctest ZXCVBNValidator
doctest PasswordValidator.ReadmeDoctest
describe "validation" do
test "integration with PasswordValidator" do
opts = [
addit... | 33.269231 | 98 | 0.651638 |
93b191fe2c99e1cf5b10963999287b4674a02d56 | 255 | ex | Elixir | test/_support/test_json.ex | kianmeng/mavis | 6ba154efdfadcce1aca92ac735dadb209380c25b | [
"MIT"
] | 97 | 2020-09-22T01:52:19.000Z | 2022-03-21T17:50:13.000Z | test/_support/test_json.ex | kianmeng/mavis | 6ba154efdfadcce1aca92ac735dadb209380c25b | [
"MIT"
] | 106 | 2020-09-22T18:55:28.000Z | 2021-11-30T01:51:04.000Z | test/_support/test_json.ex | kianmeng/mavis | 6ba154efdfadcce1aca92ac735dadb209380c25b | [
"MIT"
] | 3 | 2020-10-27T22:36:56.000Z | 2022-01-25T21:00:24.000Z | defmodule TypeTest.TestJson do
@type json :: String.t | number | boolean | nil | [json] | %{optional(String.t) => json}
def valid_json?(data) do
json_type = Type.fetch_type!(__MODULE__, :json, [])
Type.type_match?(json_type, data)
end
end
| 25.5 | 90 | 0.666667 |
93b1aa7a458f6a96f405aa920de0f5de444b5098 | 882 | exs | Elixir | mix.exs | princemaple/elixir-jwt | 0ca2c8623452a69340969c5cff0ec502dbb7b8a9 | [
"MIT"
] | 13 | 2017-05-15T13:37:11.000Z | 2021-07-29T23:06:23.000Z | mix.exs | princemaple/elixir-jwt | 0ca2c8623452a69340969c5cff0ec502dbb7b8a9 | [
"MIT"
] | 7 | 2019-01-26T12:42:24.000Z | 2021-03-16T23:01:00.000Z | mix.exs | princemaple/elixir-jwt | 0ca2c8623452a69340969c5cff0ec502dbb7b8a9 | [
"MIT"
] | 3 | 2019-07-26T06:03:48.000Z | 2020-01-14T20:42:55.000Z | defmodule Jwt.Mixfile do
use Mix.Project
@version "1.4.0"
def project do
[
app: :yajwt,
version: @version,
elixir: "~> 1.9",
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
description: "Yet another JWT lib",
deps: deps(),
package: pac... | 20.045455 | 67 | 0.538549 |
93b1cd6aec717dc74058c578fb541e4c36713873 | 510 | exs | Elixir | config/test.exs | tmecklem/bearings | 98efda7baba7a4170c46da6a4ccb4f954b0ddc5a | [
"MIT"
] | 3 | 2018-05-29T12:16:14.000Z | 2019-09-25T21:12:36.000Z | config/test.exs | tmecklem/bearings | 98efda7baba7a4170c46da6a4ccb4f954b0ddc5a | [
"MIT"
] | 23 | 2018-05-25T21:09:43.000Z | 2021-12-16T05:45:25.000Z | config/test.exs | tmecklem/bearings | 98efda7baba7a4170c46da6a4ccb4f954b0ddc5a | [
"MIT"
] | null | null | null | import Config
config :bearings, BearingsWeb.Endpoint,
http: [port: 4001],
server: true
config :bearings, :sql_sandbox, true
# Print only warnings and errors during test
config :logger, level: :warn
# Configure your database
config :bearings, Bearings.Repo,
adapter: Ecto.Adapters.Postgres,
username: "postgre... | 21.25 | 44 | 0.745098 |
93b1e3c973cab5860ea89a9de4fd1abd67bf3ac4 | 39 | exs | Elixir | .iex.exs | mattr-/octicons-ex | 79b3d5bf746dbc5cc431bd2cd6ba4a71ec7b6978 | [
"MIT"
] | 3 | 2017-09-25T16:27:50.000Z | 2021-05-29T02:35:26.000Z | .iex.exs | mattr-/octicons-ex | 79b3d5bf746dbc5cc431bd2cd6ba4a71ec7b6978 | [
"MIT"
] | 41 | 2017-06-05T04:50:09.000Z | 2021-12-23T13:10:31.000Z | .iex.exs | mattr-/octicons-ex | 79b3d5bf746dbc5cc431bd2cd6ba4a71ec7b6978 | [
"MIT"
] | 3 | 2019-04-23T10:35:17.000Z | 2021-08-28T13:05:35.000Z | import_file_if_available("~/.iex.exs")
| 19.5 | 38 | 0.769231 |
93b1f05b26cba2834f472cd3103be37ee1fb9af7 | 20,767 | ex | Elixir | lib/wampum.ex | reidiiius/wampum | ae825f5c04b4ffcc2b397e1247e80daae3089803 | [
"MIT"
] | null | null | null | lib/wampum.ex | reidiiius/wampum | ae825f5c04b4ffcc2b397e1247e80daae3089803 | [
"MIT"
] | null | null | null | lib/wampum.ex | reidiiius/wampum | ae825f5c04b4ffcc2b397e1247e80daae3089803 | [
"MIT"
] | null | null | null | defmodule Wampum do
@moduledoc """
Display fingerboard matrices of various pitch collections.
## Examples:
View selection menu table of signatures.
iex> Wampum.codex
View selection menu table of tunings.
iex> Wampum.stock
View selected signature with default tuning.
iex> Wampum.weav... | 25.20267 | 79 | 0.550055 |
93b1fb5eb64e4289e4686219a978f293b34f1e6a | 1,127 | exs | Elixir | config/config.exs | arpnetwork/jsonrpc2_ex | b94a26ab207bede74502452bb53d4a25d82e039f | [
"Apache-2.0"
] | 3 | 2018-08-13T13:12:19.000Z | 2018-09-21T16:31:31.000Z | config/config.exs | arpnetwork/jsonrpc2_ex | b94a26ab207bede74502452bb53d4a25d82e039f | [
"Apache-2.0"
] | null | null | null | config/config.exs | arpnetwork/jsonrpc2_ex | b94a26ab207bede74502452bb53d4a25d82e039f | [
"Apache-2.0"
] | 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.354839 | 73 | 0.750665 |
93b203a46f071230946d4754895bfc02f6a8eccb | 7,275 | exs | Elixir | bench.exs | ckampfe/cbuf | 7d9ac46558303cbf1aa421691c487ffe66227771 | [
"MIT"
] | 9 | 2018-01-27T22:27:32.000Z | 2019-09-06T21:13:44.000Z | bench.exs | ckampfe/cbuf | 7d9ac46558303cbf1aa421691c487ffe66227771 | [
"MIT"
] | 2 | 2018-02-06T06:02:45.000Z | 2018-03-06T03:43:58.000Z | bench.exs | ckampfe/cbuf | 7d9ac46558303cbf1aa421691c487ffe66227771 | [
"MIT"
] | 1 | 2019-09-24T10:16:02.000Z | 2019-09-24T10:16:02.000Z | small = 50
medium = 5000
large = 50_000
IO.puts("Small N: #{small}")
IO.puts("Medium N: #{medium}")
IO.puts("Small N: #{large}")
map_small = Cbuf.Map.new(small)
map_medium = Cbuf.Map.new(medium)
map_large = Cbuf.Map.new(large)
ets_small = Cbuf.ETS.new(small)
ets_medium = Cbuf.ETS.new(medium)
ets_large = Cbuf.ETS.new... | 44.907407 | 107 | 0.667904 |
93b208998c1f8de253830ee0887cc2b11e7efb6d | 3,096 | ex | Elixir | lib/glimesh_web.ex | MemoryLeakDeath/glimesh.tv | 1462c4b939da899f5e3f67c3f28850025d59a10f | [
"MIT"
] | null | null | null | lib/glimesh_web.ex | MemoryLeakDeath/glimesh.tv | 1462c4b939da899f5e3f67c3f28850025d59a10f | [
"MIT"
] | null | null | null | lib/glimesh_web.ex | MemoryLeakDeath/glimesh.tv | 1462c4b939da899f5e3f67c3f28850025d59a10f | [
"MIT"
] | null | null | null | defmodule GlimeshWeb do
@moduledoc """
The entrypoint for defining your web interface, such
as controllers, views, channels and so on.
This can be used in your application as:
use GlimeshWeb, :controller
use GlimeshWeb, :view
The definitions below will be executed for every view,
controller, ... | 21.061224 | 78 | 0.6573 |
93b2567f670a7481b6441bd683adb38c63d7006b | 80 | exs | Elixir | phoenix_in_action/ch7/auction_umbrella/apps/auction_web/test/auction_web/views/page_view_test.exs | jim80net/elixir_tutorial_projects | db19901a9305b297faa90642bebcc08455621b52 | [
"Unlicense"
] | 5 | 2021-11-17T04:37:39.000Z | 2022-01-02T06:43:23.000Z | phoenix_in_action/ch7/auction_umbrella/apps/auction_web/test/auction_web/views/page_view_test.exs | jim80net/elixir_tutorial_projects | db19901a9305b297faa90642bebcc08455621b52 | [
"Unlicense"
] | 3 | 2021-05-21T21:50:11.000Z | 2021-11-21T14:34:53.000Z | phoenix_in_action/ch7/auction_umbrella/apps/auction_web/test/auction_web/views/page_view_test.exs | jim80net/elixir_tutorial_projects | db19901a9305b297faa90642bebcc08455621b52 | [
"Unlicense"
] | 2 | 2021-11-16T14:14:05.000Z | 2021-12-31T02:01:06.000Z | defmodule AuctionWeb.PageViewTest do
use AuctionWeb.ConnCase, async: true
end
| 20 | 38 | 0.825 |
93b25a0d12bb369c2df84854b57a9f7d8c3a3139 | 2,092 | ex | Elixir | web/controllers/format_controller.ex | allen-garvey/artour | fce27b234d11a3e434c897b5fa3178b7c126245f | [
"MIT"
] | 4 | 2019-10-04T16:11:15.000Z | 2021-08-18T21:00:13.000Z | apps/artour/web/controllers/format_controller.ex | allen-garvey/phoenix-umbrella | 1d444bbd62a5e7b5f51d317ce2be71ee994125d5 | [
"MIT"
] | 5 | 2020-03-16T23:52:25.000Z | 2021-09-03T16:52:17.000Z | apps/artour/web/controllers/format_controller.ex | allen-garvey/phoenix-umbrella | 1d444bbd62a5e7b5f51d317ce2be71ee994125d5 | [
"MIT"
] | null | null | null | defmodule Artour.FormatController do
use Artour.Web, :controller
alias Artour.Format
alias Artour.Admin
def index(conn, _params) do
formats = Admin.list_formats()
view = view_module(conn)
put_view(conn, Artour.SharedView) |>
render("index.html", items: formats, item_name_singular: "format", ... | 29.885714 | 130 | 0.632887 |
93b2c7174bf8a6985b01b4f31ad9e127cd61afef | 17,551 | ex | Elixir | lib/coherence/schema.ex | thefuture2092/coherence | 377d91ff01622773b5a9ec39fadf1f8c27328879 | [
"MIT"
] | 8 | 2019-01-15T08:57:07.000Z | 2020-08-26T13:43:01.000Z | lib/coherence/schema.ex | thefuture2092/coherence | 377d91ff01622773b5a9ec39fadf1f8c27328879 | [
"MIT"
] | 2 | 2019-05-29T17:49:10.000Z | 2019-06-18T21:39:22.000Z | lib/coherence/schema.ex | thefuture2092/coherence | 377d91ff01622773b5a9ec39fadf1f8c27328879 | [
"MIT"
] | 22 | 2018-12-10T02:15:18.000Z | 2020-10-06T08:42:22.000Z | defmodule Coherence.Schema do
@moduledoc """
Add Coherence support to a User schema module.
Add `use Coherence.Schema, opts \\ []` to your User module to add a number of
Module functions and helpers.
The optional `opt` parameter can be used to disable options enabled in the
global configuration by passing... | 31.852995 | 140 | 0.642926 |
93b2db6c4e67c95e7c5b22557834f2d92adea33b | 396,078 | ex | Elixir | clients/health_care/lib/google_api/health_care/v1beta1/api/projects.ex | kaaboaye/elixir-google-api | 1896784c4342151fd25becd089a5beb323eff567 | [
"Apache-2.0"
] | null | null | null | clients/health_care/lib/google_api/health_care/v1beta1/api/projects.ex | kaaboaye/elixir-google-api | 1896784c4342151fd25becd089a5beb323eff567 | [
"Apache-2.0"
] | null | null | null | clients/health_care/lib/google_api/health_care/v1beta1/api/projects.ex | kaaboaye/elixir-google-api | 1896784c4342151fd25becd089a5beb323eff567 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 46.384588 | 213 | 0.62772 |
93b334276d1f3dd5cf7ddcc23755537bd67625e3 | 2,742 | ex | Elixir | apps/exth_crypto/lib/exth_crypto/ecies/parameters.ex | wolflee/mana | db66dac85addfaad98d40da5bd4082b3a0198bb1 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 152 | 2018-10-27T04:52:03.000Z | 2022-03-26T10:34:00.000Z | apps/exth_crypto/lib/exth_crypto/ecies/parameters.ex | wolflee/mana | db66dac85addfaad98d40da5bd4082b3a0198bb1 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 270 | 2018-04-14T07:34:57.000Z | 2018-10-25T18:10:45.000Z | apps/exth_crypto/lib/exth_crypto/ecies/parameters.ex | wolflee/mana | db66dac85addfaad98d40da5bd4082b3a0198bb1 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 25 | 2018-10-27T12:15:13.000Z | 2022-01-25T20:31:14.000Z | defmodule ExthCrypto.ECIES.Parameters do
@moduledoc """
Returns one set of the Standard ECIES parameters:
* ECIES using AES128 and HMAC-SHA-256-16
* ECIES using AES256 and HMAC-SHA-256-32
* ECIES using AES256 and HMAC-SHA-384-48
* ECIES using AES256 and HMAC-SHA-512-64
"""
alias ExthCrypto.AES
alias ... | 23.435897 | 98 | 0.63895 |
93b33cf0839a3ee633b9110ec4e677b1d75a8ecd | 3,544 | ex | Elixir | lib/boids/motion.ex | aishraj/boids | 1e58b356be78e58f67c4deb6a2092a0442fe8512 | [
"MIT"
] | null | null | null | lib/boids/motion.ex | aishraj/boids | 1e58b356be78e58f67c4deb6a2092a0442fe8512 | [
"MIT"
] | null | null | null | lib/boids/motion.ex | aishraj/boids | 1e58b356be78e58f67c4deb6a2092a0442fe8512 | [
"MIT"
] | null | null | null | defmodule Boids.Motion do
require Logger
alias Boids.Physics.Vector
@max_speed 10
def applyforce(boid, force) do
%Boids.Boid{
position: boid.position,
velocity: boid.velocity,
accleration: Vector.add(boid.accleration, force)
}
end
def move_boid(boid, others) do
sep = separat... | 24.273973 | 96 | 0.576467 |
93b365352f75db38f54854c0dadec0ee05dae274 | 6,563 | ex | Elixir | lib/kinesis_client/stream/shard/lease.ex | slievr/kcl_ex | c1620ba68b56da1802e6e9fafdb3da14155b90d7 | [
"Apache-2.0"
] | null | null | null | lib/kinesis_client/stream/shard/lease.ex | slievr/kcl_ex | c1620ba68b56da1802e6e9fafdb3da14155b90d7 | [
"Apache-2.0"
] | null | null | null | lib/kinesis_client/stream/shard/lease.ex | slievr/kcl_ex | c1620ba68b56da1802e6e9fafdb3da14155b90d7 | [
"Apache-2.0"
] | null | null | null | defmodule KinesisClient.Stream.Shard.Lease do
@moduledoc false
require Logger
use GenServer
alias KinesisClient.Stream.AppState
alias KinesisClient.Stream.AppState.ShardLease
alias KinesisClient.Stream.Shard.Pipeline
alias UUID
@default_renew_interval 30_000
# The amount of time that must have elapse... | 28.534783 | 101 | 0.643151 |
93b37920bcf748f4dbe235e4fec71db4f3f72a63 | 4,674 | ex | Elixir | lib/schatten/workflow/filter.ex | ianrumford/harnais_form | 6b20a762af3921ba4a92e58a5139c8dd190f3bb9 | [
"MIT"
] | null | null | null | lib/schatten/workflow/filter.ex | ianrumford/harnais_form | 6b20a762af3921ba4a92e58a5139c8dd190f3bb9 | [
"MIT"
] | null | null | null | lib/schatten/workflow/filter.ex | ianrumford/harnais_form | 6b20a762af3921ba4a92e58a5139c8dd190f3bb9 | [
"MIT"
] | null | null | null | defmodule Harnais.Form.Schatten.Workflow.Filter do
@moduledoc false
require Plymio.Fontais.Option
alias Harnais.Utility, as: HUU
alias Harnais.Form.Schatten.Workflow.Utility, as: HASWU
use Harnais.Form.Attribute.Schatten
import Harnais.Error,
only: [
new_error_result: 1
],
warn: false
... | 28.5 | 93 | 0.666881 |
93b37ebdb04d139ee159bf7da534adfeeae38e99 | 1,960 | ex | Elixir | clients/dataflow/lib/google_api/dataflow/v1b3/model/list_jobs_response.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/dataflow/lib/google_api/dataflow/v1b3/model/list_jobs_response.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/dataflow/lib/google_api/dataflow/v1b3/model/list_jobs_response.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... | 36.981132 | 136 | 0.752041 |
93b38aff7473db448a2174ca597418e69f390be3 | 1,549 | ex | Elixir | lib/xgen/options/elixir/std.ex | ejpcmac/ex_gen | ccd2beec8912fa6ea6ff9839454986bf3124b001 | [
"MIT"
] | 1 | 2019-10-06T07:31:06.000Z | 2019-10-06T07:31:06.000Z | lib/xgen/options/elixir/std.ex | ejpcmac/xgen | ccd2beec8912fa6ea6ff9839454986bf3124b001 | [
"MIT"
] | 30 | 2018-08-29T12:52:59.000Z | 2020-05-28T04:54:33.000Z | lib/xgen/options/elixir/std.ex | ejpcmac/ex_gen | ccd2beec8912fa6ea6ff9839454986bf3124b001 | [
"MIT"
] | 1 | 2020-09-25T09:39:56.000Z | 2020-09-25T09:39:56.000Z | defmodule XGen.Options.Elixir.Std do
@moduledoc false
use XGen.Option, collection: true
defoption Release do
defoption ConfigProvider do
key :config_provider
type :choice
default :toml
options choices: config_providers()
name "Distillery “Config Providers”"
prompt "Which ... | 26.706897 | 79 | 0.667527 |
93b38b28ca2fe94ee6cbe4c6c579eb75b6a8e50a | 1,183 | ex | Elixir | lib/filex.ex | fteem/filex | 0de1a330666a53a96e0c754f6e654a1fda2b455c | [
"MIT"
] | 2 | 2018-12-17T22:33:39.000Z | 2018-12-18T09:28:27.000Z | lib/filex.ex | fteem/filex | 0de1a330666a53a96e0c754f6e654a1fda2b455c | [
"MIT"
] | null | null | null | lib/filex.ex | fteem/filex | 0de1a330666a53a96e0c754f6e654a1fda2b455c | [
"MIT"
] | null | null | null | defmodule Filex do
@moduledoc """
Filex is a library that wraps file.io's API in an Elixir module. Allows
uploading files with configurable expiration time (days, weeks, months, years).
Functions available in `Filex`:
- `Filex.upload/1`
- `Filex.upload/3`
"""
@doc """
Takes `file_path`, `amount` and... | 24.645833 | 81 | 0.64497 |
93b39db30dc3684004ef7218b160f5480c6176de | 1,629 | exs | Elixir | test/exmqtt/request_response_test.exs | kcurtin/exmqtt | 3431b560117e73c769d30d06b3feada170c3973f | [
"Apache-2.0"
] | 13 | 2020-04-12T13:24:32.000Z | 2021-08-17T00:25:09.000Z | test/exmqtt/request_response_test.exs | kcurtin/exmqtt | 3431b560117e73c769d30d06b3feada170c3973f | [
"Apache-2.0"
] | null | null | null | test/exmqtt/request_response_test.exs | kcurtin/exmqtt | 3431b560117e73c769d30d06b3feada170c3973f | [
"Apache-2.0"
] | 2 | 2020-05-14T12:43:48.000Z | 2021-03-02T17:36:24.000Z | defmodule Exmqtt.RequestResponseTest do
use ExUnit.Case
require ExmqttConstants
alias ExmqttConstants, as: Const
alias Exmqtt.Support.RequestSender
alias Exmqtt.Support.RequestHandler
@moduletag capture_log: true
test "request response" do
request_response_per_qos(Const.qos_0)
request_response... | 31.326923 | 103 | 0.560467 |
93b3a7d3fa94ce18047850e0cb57ff0e73688d10 | 1,387 | exs | Elixir | test/pix_chargeback_log_test.exs | starkinfra/sdk-elixir | d434de336ad7d2331b860519f04e9d107bb9c9cd | [
"MIT"
] | 1 | 2022-03-15T18:58:21.000Z | 2022-03-15T18:58:21.000Z | test/pix_chargeback_log_test.exs | starkinfra/sdk-elixir | d434de336ad7d2331b860519f04e9d107bb9c9cd | [
"MIT"
] | null | null | null | test/pix_chargeback_log_test.exs | starkinfra/sdk-elixir | d434de336ad7d2331b860519f04e9d107bb9c9cd | [
"MIT"
] | null | null | null | defmodule StarkInfraTest.PixChargeback.Log do
use ExUnit.Case
@tag :pix_chargeback_log
test "get pix chargeback log" do
log =
StarkInfra.PixChargeback.Log.query!(limit: 1)
|> Enum.take(1)
|> hd()
{:ok, unique_log} = StarkInfra.PixChargeback.Log.get(log.id)
assert unique_log.id == l... | 26.673077 | 97 | 0.664023 |
93b3c98c097b929098da091ae882ab57e2c63171 | 1,817 | ex | Elixir | lib/redix/uri.ex | SoCal-Software-Labs/safe-redix | 6ac3d42c104ee3a2bcd5d726aaca1474e95cc29f | [
"MIT"
] | 968 | 2015-08-17T14:14:57.000Z | 2022-03-29T03:39:17.000Z | lib/redix/uri.ex | SoCal-Software-Labs/safe-redix | 6ac3d42c104ee3a2bcd5d726aaca1474e95cc29f | [
"MIT"
] | 192 | 2015-08-17T20:39:57.000Z | 2022-03-23T08:48:36.000Z | lib/redix/uri.ex | SoCal-Software-Labs/safe-redix | 6ac3d42c104ee3a2bcd5d726aaca1474e95cc29f | [
"MIT"
] | 145 | 2015-08-17T20:38:22.000Z | 2022-03-04T22:59:47.000Z | defmodule Redix.URI do
@moduledoc false
@spec opts_from_uri(binary) :: Keyword.t()
def opts_from_uri(uri) when is_binary(uri) do
%URI{host: host, port: port, scheme: scheme} = uri = URI.parse(uri)
unless scheme in ["redis", "rediss"] do
raise ArgumentError, "expected scheme to be redis:// or redis... | 29.306452 | 95 | 0.636214 |
93b3dfb22e20380fb24b03ea79c811445c3febc5 | 287 | ex | Elixir | books/seven_concurrencies_in_7_weeks/actors/patterns/patterns.ex | JiniousChoi/encyclopedia-in-code | 77bc551a03a2a3e3808e50016ece14adb5cfbd96 | [
"MIT"
] | 2 | 2018-07-20T10:15:49.000Z | 2018-07-20T10:16:54.000Z | books/seven_concurrencies_in_7_weeks/actors/patterns/patterns.ex | JiniousChoi/encyclopedia-in-code | 77bc551a03a2a3e3808e50016ece14adb5cfbd96 | [
"MIT"
] | 2 | 2018-06-26T09:12:44.000Z | 2019-12-18T00:09:14.000Z | books/seven_concurrencies_in_7_weeks/actors/patterns/patterns.ex | JiniousChoi/encyclopedia-in-code | 77bc551a03a2a3e3808e50016ece14adb5cfbd96 | [
"MIT"
] | null | null | null | # START:patterns
defmodule Patterns do
def foo({x, y}) do
IO.puts("Got a pair, first element #{x}, second #{y}")
end
# END:patterns
# START:patterns2
def foo({x, y, z}) do
IO.puts("Got a triple: #{x}, #{y}, #{z}")
end
# END:patterns2
# START:patterns
end
# END:patterns
| 17.9375 | 58 | 0.61324 |
93b3ecea82864ade3d55daac912abba54b6d7489 | 26,937 | ex | Elixir | lib/phoenix_live_view.ex | hykw/phoenix_live_view | da34e4886885f1f0f0dd7692b72663e4e94d9c98 | [
"MIT"
] | null | null | null | lib/phoenix_live_view.ex | hykw/phoenix_live_view | da34e4886885f1f0f0dd7692b72663e4e94d9c98 | [
"MIT"
] | null | null | null | lib/phoenix_live_view.ex | hykw/phoenix_live_view | da34e4886885f1f0f0dd7692b72663e4e94d9c98 | [
"MIT"
] | null | null | null | defmodule Phoenix.LiveView do
@moduledoc """
LiveView provides rich, real-time user experiences with
server-rendered HTML.
LiveView programming model is declarative: instead of
saying "once event X happens, change Y on the page",
events in LiveView are regular messages which may cause
changes to its stat... | 35.772908 | 92 | 0.676987 |
93b4443416d68fc653b2ac29f3069dfa6dc13014 | 2,942 | ex | Elixir | apps/mc/lib/mc.ex | savonarola/smppex_graceful | dd8b5e2d26f2f4f11b357327a304ef39b188da70 | [
"MIT"
] | null | null | null | apps/mc/lib/mc.ex | savonarola/smppex_graceful | dd8b5e2d26f2f4f11b357327a304ef39b188da70 | [
"MIT"
] | null | null | null | apps/mc/lib/mc.ex | savonarola/smppex_graceful | dd8b5e2d26f2f4f11b357327a304ef39b188da70 | [
"MIT"
] | 2 | 2020-08-06T20:25:30.000Z | 2021-02-01T13:22:41.000Z | defmodule MC do
use SMPPEX.Session
alias SMPPEX.Pdu
alias SMPPEX.Pdu.Factory, as: PduFactory
alias SMPPEX.Pdu.Errors
alias __MODULE__, as: MC
@system_id "MC"
defstruct [
state: :unbound,
last_msg_id: 1
]
def start(port) do
SMPPEX.MC.start({MC, []}, transport_opts: [port: port])
end... | 23.536 | 72 | 0.624065 |
93b45164f467370f3c69a77102868e38b92ae9ca | 271 | ex | Elixir | lib/rfx/util/str.ex | doorgan/rfx | 566b8623ce8957632329b4b0a142ea26a46f2301 | [
"MIT"
] | null | null | null | lib/rfx/util/str.ex | doorgan/rfx | 566b8623ce8957632329b4b0a142ea26a46f2301 | [
"MIT"
] | null | null | null | lib/rfx/util/str.ex | doorgan/rfx | 566b8623ce8957632329b4b0a142ea26a46f2301 | [
"MIT"
] | null | null | null | defmodule Rfx.Util.Str do
def rand_str(length \\ 4) do
Stream.repeatedly(&rchar/0) |> Enum.take(length) |> Enum.join()
end
defp rchar do
?a..?z |>
Enum.to_list() |>
to_string() |>
String.split("", trim: true) |>
Enum.random()
end
end
| 16.9375 | 67 | 0.575646 |
93b46b5c219855029ef67a95fdcd7ee9412d11bc | 2,560 | exs | Elixir | test/straw_hat_map/states_test.exs | straw-hat-team/straw_hat_map | df71340122852577b9df2ed2afcbcc4be879aba1 | [
"MIT"
] | 4 | 2018-03-07T04:12:36.000Z | 2018-03-08T16:13:14.000Z | test/straw_hat_map/states_test.exs | straw-hat-labs/straw_hat_map | df71340122852577b9df2ed2afcbcc4be879aba1 | [
"MIT"
] | 61 | 2018-03-07T04:50:42.000Z | 2019-11-01T10:24:03.000Z | test/straw_hat_map/states_test.exs | straw-hat-team/straw_hat_map | df71340122852577b9df2ed2afcbcc4be879aba1 | [
"MIT"
] | 2 | 2018-03-22T19:44:45.000Z | 2019-08-02T03:45:47.000Z | defmodule StrawHat.Map.StatesTests do
use StrawHat.Map.TestSupport.CaseTemplate, async: true
alias StrawHat.Map.States
describe "finding a state" do
test "with a valid ID" do
state = insert(:state)
assert {:ok, _state} = States.find_state(Repo, state.id)
end
test "with an invalid ID" do... | 26.947368 | 75 | 0.653516 |
93b479772da2702470deca6b5cde8578409c9f4c | 61 | ex | Elixir | apps/robby_web/web/views/user_view.ex | jeffweiss/openrobby | 9fed2024e6ce87a6fe27ef3af85558f3116aca2a | [
"Apache-2.0"
] | 3 | 2021-04-16T21:54:55.000Z | 2021-04-30T22:15:41.000Z | apps/robby_web/web/views/user_view.ex | jeffweiss/openrobby | 9fed2024e6ce87a6fe27ef3af85558f3116aca2a | [
"Apache-2.0"
] | 1 | 2021-06-29T15:54:19.000Z | 2021-06-29T15:54:19.000Z | apps/robby_web/web/views/user_view.ex | jeffweiss/openrobby | 9fed2024e6ce87a6fe27ef3af85558f3116aca2a | [
"Apache-2.0"
] | 2 | 2021-04-16T22:23:16.000Z | 2021-05-26T15:52:55.000Z | defmodule RobbyWeb.UserView do
use RobbyWeb.Web, :view
end
| 15.25 | 30 | 0.786885 |
93b479fc15da7334772551ff8eec6112808479c5 | 61 | ex | Elixir | lib/dgraph_ex/client/adapters.ex | sunny-g/dgraph_ex | fab9f1fd684538758ed211537c3b0869233e7ce4 | [
"MIT"
] | 1 | 2019-05-01T15:18:41.000Z | 2019-05-01T15:18:41.000Z | lib/dgraph_ex/client/adapters.ex | sunny-g/dgraph_ex | fab9f1fd684538758ed211537c3b0869233e7ce4 | [
"MIT"
] | null | null | null | lib/dgraph_ex/client/adapters.ex | sunny-g/dgraph_ex | fab9f1fd684538758ed211537c3b0869233e7ce4 | [
"MIT"
] | 1 | 2019-05-01T15:18:48.000Z | 2019-05-01T15:18:48.000Z | defmodule DgraphEx.Client.Adapters do
@moduledoc false
end
| 15.25 | 37 | 0.819672 |
93b491d7d7189f25c53d2b1093ab352e97241874 | 1,062 | ex | Elixir | test/support/transport_sync.ex | hrzndhrn/json_rpc | c9a1d70b92abbf59260be6394bb5ecc41229a599 | [
"MIT"
] | null | null | null | test/support/transport_sync.ex | hrzndhrn/json_rpc | c9a1d70b92abbf59260be6394bb5ecc41229a599 | [
"MIT"
] | null | null | null | test/support/transport_sync.ex | hrzndhrn/json_rpc | c9a1d70b92abbf59260be6394bb5ecc41229a599 | [
"MIT"
] | null | null | null | defmodule Test.TransportSync do
@moduledoc false
@behaviour JsonRPC.Transport
alias JsonRPC.HandleRequestError
alias Test.Calls
require Logger
@impl true
def send_rpc(json, _opts) do
# simulate sending
with :ok <- mock(json) do
server(json)
end
end
defp server(json) do
# sim... | 20.037736 | 62 | 0.620527 |
93b4aa33fbef9bcdab18d955d939c07a82449b6d | 1,829 | ex | Elixir | clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1__label_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_v1__label_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_v1__label_frame.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 33.254545 | 164 | 0.738655 |
93b4cff9ca0ba4efeff28e1a559d15af38cf129f | 1,080 | exs | Elixir | clients/firebase_storage/test/test_helper.exs | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/firebase_storage/test/test_helper.exs | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/firebase_storage/test/test_helper.exs | dazuma/elixir-google-api | 6a9897168008efe07a6081d2326735fe332e522c | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 30 | 83 | 0.742593 |
93b4e8d7cf0b38a493a1d55af632cbedc7760444 | 1,380 | ex | Elixir | test/support/data_case.ex | corka149/jarvis | 66ddb3d919323aaf39be15e937c28cc8cc805e40 | [
"MIT"
] | null | null | null | test/support/data_case.ex | corka149/jarvis | 66ddb3d919323aaf39be15e937c28cc8cc805e40 | [
"MIT"
] | 7 | 2019-05-25T06:39:46.000Z | 2021-02-13T11:24:50.000Z | test/support/data_case.ex | corka149/jarvis | 66ddb3d919323aaf39be15e937c28cc8cc805e40 | [
"MIT"
] | null | null | null | defmodule Jarvis.DataCase do
@moduledoc """
This module defines the setup for tests requiring
access to the application's data layer.
You may define functions here to be used as helpers in
your tests.
Finally, if the test case interacts with the database,
it cannot be async. For this reason, every test ... | 24.642857 | 77 | 0.677536 |
93b4ffe23fb027c323478119e25b6d7600b260ee | 63 | ex | Elixir | lib/entrance_web/views/page_view.ex | exchange-prototype/Entrance | 3edea9ffa2675c0580c7df43002b9e6cc275d60d | [
"Apache-2.0"
] | null | null | null | lib/entrance_web/views/page_view.ex | exchange-prototype/Entrance | 3edea9ffa2675c0580c7df43002b9e6cc275d60d | [
"Apache-2.0"
] | null | null | null | lib/entrance_web/views/page_view.ex | exchange-prototype/Entrance | 3edea9ffa2675c0580c7df43002b9e6cc275d60d | [
"Apache-2.0"
] | null | null | null | defmodule EntranceWeb.PageView do
use EntranceWeb, :view
end
| 15.75 | 33 | 0.809524 |
93b5111bd6072472300c557139c0f0693e0d5b16 | 3,167 | ex | Elixir | {{cookiecutter.app_name}}/lib/{{cookiecutter.app_name}}/accounts/user.ex | StephaneRob/cookiecutter-phoenix | c71a01a582fe8d57999d646cea7cbd820a4c73ca | [
"BSD-2-Clause"
] | 4 | 2018-01-16T15:40:04.000Z | 2020-01-11T19:34:42.000Z | {{cookiecutter.app_name}}/lib/{{cookiecutter.app_name}}/accounts/user.ex | StephaneRob/cookiecutter-phoenix | c71a01a582fe8d57999d646cea7cbd820a4c73ca | [
"BSD-2-Clause"
] | 4 | 2018-03-10T14:18:37.000Z | 2018-03-13T20:43:06.000Z | {{cookiecutter.app_name}}/lib/{{cookiecutter.app_name}}/accounts/user.ex | StephaneRob/cookiecutter-phoenix | c71a01a582fe8d57999d646cea7cbd820a4c73ca | [
"BSD-2-Clause"
] | 1 | 2019-10-11T20:52:31.000Z | 2019-10-11T20:52:31.000Z | defmodule {{cookiecutter.app_name.split('_')|map('title')|join}}.Accounts.User do
use Ecto.Schema
use Timex.Ecto.Timestamps
import Ecto.Changeset
alias {{cookiecutter.app_name.split('_')|map('title')|join}}.{Repo, Accounts}
alias {{cookiecutter.app_name.split('_')|map('title')|join}}.Accounts.User
schema... | 29.324074 | 91 | 0.684875 |
93b52c65955ebd1668e29620f4d021472b390a26 | 1,785 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/customer_encryption_key.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/customer_encryption_key.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/customer_encryption_key.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 35 | 168 | 0.745658 |
93b54fca31b4680fb0884776fef80476ae9ffd52 | 501 | ex | Elixir | apps/nightcrawler_web/lib/nightcrawler_web/views/error_view.ex | ZucchiniZe/nightcrawler_elixir | be82b0e7c25f55c7d2c2d3aa2860371cb68aeeb6 | [
"MIT"
] | null | null | null | apps/nightcrawler_web/lib/nightcrawler_web/views/error_view.ex | ZucchiniZe/nightcrawler_elixir | be82b0e7c25f55c7d2c2d3aa2860371cb68aeeb6 | [
"MIT"
] | null | null | null | apps/nightcrawler_web/lib/nightcrawler_web/views/error_view.ex | ZucchiniZe/nightcrawler_elixir | be82b0e7c25f55c7d2c2d3aa2860371cb68aeeb6 | [
"MIT"
] | null | null | null | defmodule NightcrawlerWeb.ErrorView do
use NightcrawlerWeb, :view
# If you want to customize a particular status code
# for a certain format, you may uncomment below.
# def render("500.html", _assigns) do
# "Internal Server Error"
# end
# By default, Phoenix returns the status message from
# the tem... | 29.470588 | 61 | 0.740519 |
93b5830bddd7b166b1eeed35a15c9afea5e41f56 | 1,544 | ex | Elixir | dei_app/lib/dei_app_web/views/error_helpers.ex | mbta/DEI-dashboard | 7446c1d5497b388f337df554ef1109b8b9b0f606 | [
"MIT"
] | 1 | 2020-09-18T19:41:07.000Z | 2020-09-18T19:41:07.000Z | dei_app/lib/dei_app_web/views/error_helpers.ex | mbta/DEI-dashboard | 7446c1d5497b388f337df554ef1109b8b9b0f606 | [
"MIT"
] | 4 | 2020-07-23T02:35:33.000Z | 2020-09-21T14:55:32.000Z | dei_app/lib/dei_app_web/views/error_helpers.ex | mbta/DEI-dashboard | 7446c1d5497b388f337df554ef1109b8b9b0f606 | [
"MIT"
] | null | null | null | defmodule DeiAppWeb.ErrorHelpers do
@moduledoc """
Conveniences for translating and building error messages.
"""
use Phoenix.HTML
@doc """
Generates tag for inlined form input errors.
"""
def error_tag(form, field) do
Enum.map(Keyword.get_values(form.errors, field), fn error ->
content_tag(:... | 32.166667 | 75 | 0.664508 |
93b58e1c316ba8626a6cbe35dca02cabbbec77b0 | 638 | ex | Elixir | lib/creep/packet/unsuback.ex | ConnorRigby/creep | 91d503187fda50b20788244487ca7d412373893c | [
"ISC"
] | 13 | 2019-09-21T04:48:09.000Z | 2022-01-26T13:13:03.000Z | lib/creep/packet/unsuback.ex | ConnorRigby/creep | 91d503187fda50b20788244487ca7d412373893c | [
"ISC"
] | null | null | null | lib/creep/packet/unsuback.ex | ConnorRigby/creep | 91d503187fda50b20788244487ca7d412373893c | [
"ISC"
] | 1 | 2020-03-03T16:50:42.000Z | 2020-03-03T16:50:42.000Z | defmodule Creep.Packet.Unsuback do
alias Creep.Packet.Unsuback
@type t() :: %Unsuback{
packet_id: integer()
}
defstruct [
:packet_id
]
defimpl Creep.Packet.Encode, for: Unsuback do
@type_unsuback 0xB
def encode(%Unsuback{packet_id: packet_id}) do
<<@type_unsuback::4, 0:... | 19.333333 | 54 | 0.586207 |
93b59aec52de055394f409fdd3cdd2136c7d16e3 | 2,673 | ex | Elixir | kousa/lib/broth/message/call.ex | asgarovf/dogehouse | 12b81d2008562373591fb55ab8179a3fa8a5db18 | [
"MIT"
] | 2 | 2021-05-01T16:57:50.000Z | 2021-07-07T22:01:14.000Z | kousa/lib/broth/message/call.ex | asgarovf/dogehouse | 12b81d2008562373591fb55ab8179a3fa8a5db18 | [
"MIT"
] | null | null | null | kousa/lib/broth/message/call.ex | asgarovf/dogehouse | 12b81d2008562373591fb55ab8179a3fa8a5db18 | [
"MIT"
] | null | null | null | defmodule Broth.Message.Call do
@moduledoc """
API contract statement for call message modules
## Usage:
```elixir
using Broth.Message.Call, reply: <module>
```
if you omit the reply module, it assumes the value
`__MODULE__.Reply`
performs compile-time checks to validate that the reply module
is... | 25.216981 | 98 | 0.648709 |
93b5af60e9671ac562418185ef5e7bcf0ade7a77 | 1,497 | ex | Elixir | lib/brando/blueprint/villain/blocks/svg_block.ex | univers-agency/brando | 69c3c52498a3f64518da3522cd9f27294a52cc68 | [
"Apache-2.0"
] | 1 | 2020-04-26T09:53:02.000Z | 2020-04-26T09:53:02.000Z | lib/brando/blueprint/villain/blocks/svg_block.ex | univers-agency/brando | 69c3c52498a3f64518da3522cd9f27294a52cc68 | [
"Apache-2.0"
] | 198 | 2019-08-20T16:16:07.000Z | 2020-07-03T15:42:07.000Z | lib/brando/blueprint/villain/blocks/svg_block.ex | univers-agency/brando | 69c3c52498a3f64518da3522cd9f27294a52cc68 | [
"Apache-2.0"
] | null | null | null | defmodule Brando.Blueprint.Villain.Blocks.SvgBlock do
defmodule Data do
use Brando.Blueprint,
application: "Brando",
domain: "Villain",
schema: "SvgBlockData",
singular: "svg_block_data",
plural: "svg_block_datas",
gettext_module: Brando.Gettext
@primary_key false
data... | 31.851064 | 83 | 0.710755 |
93b5b57f2daf196266d783de164a937d0885daa1 | 779 | ex | Elixir | examples/interpreter-in-browser/www/ex_sample.ex | shaneutt/lumen | d3b7a006bb41c5afed8481a5784ef904fbca6ee2 | [
"Apache-2.0"
] | 1 | 2019-12-15T01:06:38.000Z | 2019-12-15T01:06:38.000Z | examples/interpreter-in-browser/www/ex_sample.ex | bryanjos/lumen | a7fe08be528d17f1d9b7c4821db7d639c097ff0a | [
"Apache-2.0"
] | 2 | 2021-03-11T06:55:42.000Z | 2021-05-11T23:41:46.000Z | examples/interpreter-in-browser/www/ex_sample.ex | shaneutt/lumen | d3b7a006bb41c5afed8481a5784ef904fbca6ee2 | [
"Apache-2.0"
] | null | null | null | defmodule ExSample do
# NOTE: this file is not automatically compiled to .erl, please check the
# README.md file for more information.
def run_me(arg) do
:lumen_intrinsics.println("Doing the Lumen web work...")
{:ok, window} = Lumen.Web.Window.window()
{:ok, document} = Lumen.Web.Window.document(windo... | 35.409091 | 76 | 0.686778 |
93b5c08a39158524f494be33de6962a7aa11d296 | 225 | exs | Elixir | priv/repo/seeds/0001_settings.exs | ramkrishna70/opencov | 7a3415f8eebb797ad1f7b6c832daa4f04d70af8d | [
"MIT"
] | 189 | 2018-09-25T09:02:41.000Z | 2022-03-09T13:52:06.000Z | priv/repo/seeds/0001_settings.exs | ramkrishna70/opencov | 7a3415f8eebb797ad1f7b6c832daa4f04d70af8d | [
"MIT"
] | 29 | 2018-09-26T05:51:18.000Z | 2021-11-05T08:55:03.000Z | priv/repo/seeds/0001_settings.exs | ramkrishna70/opencov | 7a3415f8eebb797ad1f7b6c832daa4f04d70af8d | [
"MIT"
] | 32 | 2018-10-21T12:28:11.000Z | 2022-03-28T02:20:19.000Z | import Seedex
seed Opencov.Settings, fn settings ->
settings
|> Map.put(:id, 1)
|> Map.put(:signup_enabled, false)
|> Map.put(:restricted_signup_domains, "")
|> Map.put(:default_project_visibility, "internal")
end
| 22.5 | 53 | 0.697778 |
93b5ccd4c77cc7b1a8d62df211405c9cad1b38f1 | 531 | exs | Elixir | test/surface_bulma_widgets_playground_web/views/error_view_test.exs | elcritch/surface_bulma_widgets_playground | 380d1fed6b829e347ff92a29e7619c4076bcd83d | [
"MIT"
] | null | null | null | test/surface_bulma_widgets_playground_web/views/error_view_test.exs | elcritch/surface_bulma_widgets_playground | 380d1fed6b829e347ff92a29e7619c4076bcd83d | [
"MIT"
] | null | null | null | test/surface_bulma_widgets_playground_web/views/error_view_test.exs | elcritch/surface_bulma_widgets_playground | 380d1fed6b829e347ff92a29e7619c4076bcd83d | [
"MIT"
] | null | null | null | defmodule SurfaceBulmaWidgetsPlaygroundWeb.ErrorViewTest do
use SurfaceBulmaWidgetsPlaygroundWeb.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(SurfaceBulmaWidgetsPlaygroundWeb.ErrorView, "404.ht... | 31.235294 | 90 | 0.741996 |
93b5fade43a17cafd668189ca6f02979338b43f1 | 2,082 | ex | Elixir | clients/monitoring/lib/google_api/monitoring/v3/model/mesh_istio.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/monitoring/lib/google_api/monitoring/v3/model/mesh_istio.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/monitoring/lib/google_api/monitoring/v3/model/mesh_istio.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 39.283019 | 205 | 0.733429 |
93b60843f69a4cc3c9ea57bca1b002dfbc3370e4 | 5,102 | ex | Elixir | apps/graphql/lib/graphql/schema/service_catalog/service_group_types.ex | ehealth-ua/ehealth.api | 4ffe26a464fe40c95fb841a4aa2e147068f65ca2 | [
"Apache-2.0"
] | 8 | 2019-06-14T11:34:49.000Z | 2021-08-05T19:14:24.000Z | apps/graphql/lib/graphql/schema/service_catalog/service_group_types.ex | edenlabllc/ehealth.api.public | 4ffe26a464fe40c95fb841a4aa2e147068f65ca2 | [
"Apache-2.0"
] | 1 | 2019-07-08T15:20:22.000Z | 2019-07-08T15:20:22.000Z | apps/graphql/lib/graphql/schema/service_catalog/service_group_types.ex | ehealth-ua/ehealth.api | 4ffe26a464fe40c95fb841a4aa2e147068f65ca2 | [
"Apache-2.0"
] | 6 | 2018-05-11T13:59:32.000Z | 2022-01-19T20:15:22.000Z | defmodule GraphQL.Schema.ServiceGroupTypes do
@moduledoc false
use Absinthe.Schema.Notation
use Absinthe.Relay.Schema.Notation, :modern
import Absinthe.Resolution.Helpers, only: [dataloader: 1]
import GraphQL.Resolvers.Helpers.Load, only: [load_by_args: 2]
alias Absinthe.Relay.Node.ParseIDs
alias Core.... | 28.187845 | 82 | 0.676009 |
93b6202097478b0d599a0327f2c8f60f7f5fecd6 | 7,935 | ex | Elixir | clients/jobs/lib/google_api/jobs/v2/model/job_query.ex | chingor13/elixir-google-api | 85e13fa25c4c9f4618bb463ab4c79245fc6d2a7b | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/jobs/lib/google_api/jobs/v2/model/job_query.ex | chingor13/elixir-google-api | 85e13fa25c4c9f4618bb463ab4c79245fc6d2a7b | [
"Apache-2.0"
] | null | null | null | clients/jobs/lib/google_api/jobs/v2/model/job_query.ex | chingor13/elixir-google-api | 85e13fa25c4c9f4618bb463ab4c79245fc6d2a7b | [
"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 ... | 40.484694 | 113 | 0.696282 |
93b63d9c93a3c510f73e3bc253b5e975a43a789e | 102 | exs | Elixir | test/rfx/change/req_test.exs | doorgan/rfx | 566b8623ce8957632329b4b0a142ea26a46f2301 | [
"MIT"
] | null | null | null | test/rfx/change/req_test.exs | doorgan/rfx | 566b8623ce8957632329b4b0a142ea26a46f2301 | [
"MIT"
] | null | null | null | test/rfx/change/req_test.exs | doorgan/rfx | 566b8623ce8957632329b4b0a142ea26a46f2301 | [
"MIT"
] | null | null | null | defmodule Rfx.Change.ReqTest do
use ExUnit.Case
test "placeholder" do
assert true
end
end
| 11.333333 | 31 | 0.715686 |
93b6699eb19bc7d2266a2d8d17b6a74b43365832 | 228 | ex | Elixir | lib/ws/auth/resource.ex | zekroTJA/imgserver | a2efc3483bc83cc9734dbef7ca9bd3dc4a19bb64 | [
"MIT"
] | null | null | null | lib/ws/auth/resource.ex | zekroTJA/imgserver | a2efc3483bc83cc9734dbef7ca9bd3dc4a19bb64 | [
"MIT"
] | null | null | null | lib/ws/auth/resource.ex | zekroTJA/imgserver | a2efc3483bc83cc9734dbef7ca9bd3dc4a19bb64 | [
"MIT"
] | null | null | null | defmodule Imgserver.Ws.Auth.Resource do
@moduledoc """
Holds information about the authenticated
session or user.
"""
@type t :: %__MODULE__{
session_id: String.t()
}
defstruct session_id: ""
end
| 17.538462 | 43 | 0.644737 |
93b67f7c3d26bce5c44716814012b6017121b27e | 12,930 | ex | Elixir | clients/drive/lib/google_api/drive/v3/api/teamdrives.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/drive/lib/google_api/drive/v3/api/teamdrives.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/drive/lib/google_api/drive/v3/api/teamdrives.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 ... | 46.510791 | 362 | 0.641222 |
93b6924f079d084fe97a8e86cc598ad9c47ef172 | 1,786 | exs | Elixir | clients/docs/mix.exs | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/docs/mix.exs | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/docs/mix.exs | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 26.656716 | 95 | 0.647816 |
93b6ab1eee42bdca72ca297e5a735d4a3c382314 | 12,102 | ex | Elixir | lib/elixir_ex_aliyun_ots_table_store_search_match_query.ex | hou8/tablestore_protos | 1a3223326b92bbe196d57ce4dd19b5a8db1c728d | [
"MIT"
] | null | null | null | lib/elixir_ex_aliyun_ots_table_store_search_match_query.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_match_query.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.MatchQuery) do
@moduledoc false
(
defstruct(field_name: nil, text: nil, minimum_should_match: nil, operator: nil)
(
(
@spec encode(struct) :: {:ok, iodata} | {:error, any}
def(encode(msg)) do
try do
... | 26.774336 | 97 | 0.45885 |
93b6d97d370d9db93449e43af5a1bdfa8343bcbe | 1,972 | exs | Elixir | config/prod.exs | phensalves/rumbl | 4ecf962038774fa81c83f07b81f36266f86effaf | [
"MIT"
] | 1 | 2016-09-19T01:31:35.000Z | 2016-09-19T01:31:35.000Z | config/prod.exs | phensalves/rumbl | 4ecf962038774fa81c83f07b81f36266f86effaf | [
"MIT"
] | null | null | null | config/prod.exs | phensalves/rumbl | 4ecf962038774fa81c83f07b81f36266f86effaf | [
"MIT"
] | null | null | null | use Mix.Config
# For production, we configure the host to read the PORT
# from the system environment. Therefore, you will need
# to set PORT=80 before running your server.
#
# You should also configure the url host to something
# meaningful, we use this information when generating URLs.
#
# Finally, we also include t... | 31.806452 | 67 | 0.710953 |
93b6e830ac92343d04bdb4dd9952ce2434a7807f | 319 | exs | Elixir | priv/repo/migrations/20201023163530_add_user_workspace.exs | sealas/sealax | 3f11b7f649972a43f4812ea959bd2be2e0151baa | [
"MIT"
] | null | null | null | priv/repo/migrations/20201023163530_add_user_workspace.exs | sealas/sealax | 3f11b7f649972a43f4812ea959bd2be2e0151baa | [
"MIT"
] | 9 | 2021-08-19T01:09:55.000Z | 2022-03-08T01:18:45.000Z | priv/repo/migrations/20201023163530_add_user_workspace.exs | sealas/sealax | 3f11b7f649972a43f4812ea959bd2be2e0151baa | [
"MIT"
] | null | null | null | defmodule Sealax.Repo.Migrations.AddUserWorkspace do
use Ecto.Migration
def change do
create table(:user_workspaces) do
add :appkey, :string
add :appkey_salt, :string
add :user_id, references(:user)
add :workspace_id, references(:workspaces)
timestamps()
end
end
end
| 19.9375 | 52 | 0.673981 |
93b71e60b2cc043dfc7ac41d652e232d8e505c89 | 1,970 | ex | Elixir | lib/elastic/role.ex | flexibility-org/elastic | c9d6e3c514e7a1f4958e2ba462c189829e3e5660 | [
"MIT"
] | null | null | null | lib/elastic/role.ex | flexibility-org/elastic | c9d6e3c514e7a1f4958e2ba462c189829e3e5660 | [
"MIT"
] | 1 | 2021-10-18T11:43:13.000Z | 2021-10-19T07:34:57.000Z | lib/elastic/role.ex | flexibility-org/elastic | c9d6e3c514e7a1f4958e2ba462c189829e3e5660 | [
"MIT"
] | null | null | null | defmodule Elastic.Role do
@moduledoc """
An API wrapper for dealing with ElasticSearch roles.
In particular, this wrapper covers the following elements of the
[ElasticSearch REST API](https://www.elastic.co/guide/en/elasticsearch/reference/current/rest-apis.html):
* [Create or update roles API](https://www.... | 28.550725 | 124 | 0.619797 |
93b72076d4e9819c7af560b08ce7da66638396c6 | 2,154 | exs | Elixir | config/dev.exs | franknfjr/dashboard | 68ff963d4cd51b1b3d92373e84b606fccedb7d89 | [
"MIT"
] | 1 | 2021-01-27T17:44:38.000Z | 2021-01-27T17:44:38.000Z | config/dev.exs | franknfjr/dashboard | 68ff963d4cd51b1b3d92373e84b606fccedb7d89 | [
"MIT"
] | null | null | null | config/dev.exs | franknfjr/dashboard | 68ff963d4cd51b1b3d92373e84b606fccedb7d89 | [
"MIT"
] | null | null | null | use Mix.Config
# Configure your database
config :dashboard, Dashboard.Repo,
username: "postgres",
password: "postgres",
database: "dashboard_dev",
hostname: "localhost",
show_sensitive_data_on_connection_error: true,
pool_size: 10
# For development, we disable any cache and enable
# debugging and code rel... | 27.974026 | 68 | 0.693129 |
93b735e338ad153db602b923d6668b1c7b3c3e57 | 4,947 | ex | Elixir | lib/canvas/client.ex | acu-online/canvas | 594e435abe8907097a3a66d25627e96cb940b07a | [
"MIT"
] | null | null | null | lib/canvas/client.ex | acu-online/canvas | 594e435abe8907097a3a66d25627e96cb940b07a | [
"MIT"
] | null | null | null | lib/canvas/client.ex | acu-online/canvas | 594e435abe8907097a3a66d25627e96cb940b07a | [
"MIT"
] | null | null | null | defmodule Canvas.Client do
require Logger
@default_base_url Application.get_env(:canvas, :base_url)
@default_user_agent "canvas-elixir/#{Application.get_env(:canvas, :version)}"
@api_version "v1"
defstruct access_token: nil, base_url: @default_base_url, user_agent: nil
@type t :: %__MODULE__{access_token... | 31.113208 | 98 | 0.654538 |
93b76c93602f4bb90b25e6227d545192de627dbd | 223 | exs | Elixir | priv/repo/migrations/20210311150141_add_rider_spreadsheet_layout_to_campaigns.exs | bikebrigade/dispatch | eb622fe4f6dab7c917d678d3d7a322a01f97da44 | [
"Apache-2.0"
] | 28 | 2021-10-11T01:53:53.000Z | 2022-03-24T17:45:55.000Z | priv/repo/migrations/20210311150141_add_rider_spreadsheet_layout_to_campaigns.exs | bikebrigade/dispatch | eb622fe4f6dab7c917d678d3d7a322a01f97da44 | [
"Apache-2.0"
] | 20 | 2021-10-21T08:12:31.000Z | 2022-03-31T13:35:53.000Z | priv/repo/migrations/20210311150141_add_rider_spreadsheet_layout_to_campaigns.exs | bikebrigade/dispatch | eb622fe4f6dab7c917d678d3d7a322a01f97da44 | [
"Apache-2.0"
] | null | null | null | defmodule BikeBrigade.Repo.Migrations.AddRiderSpreadsheetLayoutToCampaigns do
use Ecto.Migration
def change do
alter table(:campaigns) do
add :rider_spreadsheet_layout, :integer, default: 0
end
end
end
| 22.3 | 77 | 0.766816 |
93b781704f9d7fc1d8df528a7b6242908f8a7435 | 770 | exs | Elixir | test/changelog/icecast_test.exs | d-m-u/changelog.com | bb0d6ac6d29a3d64dbeb44892f9a8a1ff3ba6325 | [
"MIT"
] | 1 | 2021-01-06T18:21:45.000Z | 2021-01-06T18:21:45.000Z | test/changelog/icecast_test.exs | codexn/changelog.com | 25ce501ee62eef76731c38d590667e8132096ba8 | [
"MIT"
] | null | null | null | test/changelog/icecast_test.exs | codexn/changelog.com | 25ce501ee62eef76731c38d590667e8132096ba8 | [
"MIT"
] | null | null | null | defmodule Changelog.IcecastTest do
use ExUnit.Case
import Mock
alias Changelog.Icecast
describe "get_stats" do
test "is not streaming on decode error" do
with_mock(HTTPoison, get!: fn _ -> %{status_code: 200, body: ""} end) do
stats = Icecast.get_stats()
assert called(HTTPoison.get!... | 26.551724 | 95 | 0.623377 |
93b79084f048720509448c0833b4a2d3d9011ff1 | 6,823 | exs | Elixir | apps/admin_api/test/admin_api/v1/controllers/admin_auth/transaction_calculation_controller_test.exs | vanmil/ewallet | 6c1aca95a83e0a9d93007670a40d8c45764a8122 | [
"Apache-2.0"
] | null | null | null | apps/admin_api/test/admin_api/v1/controllers/admin_auth/transaction_calculation_controller_test.exs | vanmil/ewallet | 6c1aca95a83e0a9d93007670a40d8c45764a8122 | [
"Apache-2.0"
] | null | null | null | apps/admin_api/test/admin_api/v1/controllers/admin_auth/transaction_calculation_controller_test.exs | vanmil/ewallet | 6c1aca95a83e0a9d93007670a40d8c45764a8122 | [
"Apache-2.0"
] | null | null | null | defmodule AdminAPI.V1.AdminAuth.TransactionCalculationControllerTest do
use AdminAPI.ConnCase, async: true
# credo:disable-for-next-line
setup do
eth = insert(:token)
omg = insert(:token)
pair = insert(:exchange_pair, from_token: eth, to_token: omg, rate: 10)
%{
eth: eth,
omg: omg,
... | 37.489011 | 98 | 0.609263 |
93b793429854804a7e61fa538a95926862fd5caf | 1,038 | exs | Elixir | mix.exs | bonfire-networks/linkify | 76a4026f73a4593e0ec664d99220bb4e5dea6e34 | [
"MIT"
] | 1 | 2021-04-07T01:30:03.000Z | 2021-04-07T01:30:03.000Z | mix.exs | bonfire-networks/linkify | 76a4026f73a4593e0ec664d99220bb4e5dea6e34 | [
"MIT"
] | null | null | null | mix.exs | bonfire-networks/linkify | 76a4026f73a4593e0ec664d99220bb4e5dea6e34 | [
"MIT"
] | null | null | null | defmodule Linkify.Mixfile do
use Mix.Project
@version "0.2.0"
def project do
[
app: :linkify,
version: @version,
elixir: "~> 1.8",
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
deps: deps(),
docs: [extras: ["README.md"]],
package: pa... | 23.066667 | 90 | 0.585742 |
93b7a2d32036a2865bfb46c9e9e5f0b98cb33ad9 | 474 | ex | Elixir | apps/fz_http/lib/fz_http_web/views/user_view.ex | kaku-io/firezone | 685da0064727df27e444fe4da2be20efe96af9cd | [
"Apache-2.0"
] | 1,429 | 2021-07-31T21:25:46.000Z | 2022-03-31T16:31:33.000Z | apps/fz_http/lib/fz_http_web/views/user_view.ex | kaku-io/firezone | 685da0064727df27e444fe4da2be20efe96af9cd | [
"Apache-2.0"
] | 132 | 2021-07-10T14:23:36.000Z | 2022-03-29T18:36:37.000Z | apps/fz_http/lib/fz_http_web/views/user_view.ex | CloudFire-LLC/cloudfire | 24ea29bda8a8845a0a9c3b0482cc67e314611245 | [
"Apache-2.0"
] | 48 | 2021-09-14T02:48:38.000Z | 2022-03-24T18:18:50.000Z | defmodule FzHttpWeb.UserView do
@moduledoc """
Helper functions for User views.
"""
use FzHttpWeb, :view
alias FzHttp.{Settings, Users}
def admin_email do
Users.admin().email
end
def vpn_sessions_expire? do
Settings.vpn_sessions_expire?()
end
def vpn_expires_at(user) do
Users.vpn_ses... | 18.96 | 63 | 0.723629 |
93b7cc5e3d00012b08e8dfd0b83ddf38753c6f4c | 92 | exs | Elixir | config/config.exs | kingdomcoding/tailwind | 0bc48d3b0cf433ad38894ff2eef78dab563640ba | [
"MIT"
] | 311 | 2021-12-20T22:11:07.000Z | 2022-03-31T16:03:30.000Z | config/config.exs | kingdomcoding/tailwind | 0bc48d3b0cf433ad38894ff2eef78dab563640ba | [
"MIT"
] | 32 | 2021-12-21T05:21:57.000Z | 2022-03-30T13:04:20.000Z | config/config.exs | kingdomcoding/tailwind | 0bc48d3b0cf433ad38894ff2eef78dab563640ba | [
"MIT"
] | 26 | 2021-12-21T18:49:48.000Z | 2022-03-16T12:53:32.000Z | import Config
config :tailwind,
version: "3.0.12",
another: [
args: ["--help"]
]
| 11.5 | 20 | 0.565217 |
93b836a8214dc675c3e16283a74b3d7db71cc4a1 | 234 | exs | Elixir | test/money_changeset_test.exs | seantanly/money_sql | 4511d05c55a9e953c2652ff777f17053d0cdce47 | [
"Apache-2.0"
] | null | null | null | test/money_changeset_test.exs | seantanly/money_sql | 4511d05c55a9e953c2652ff777f17053d0cdce47 | [
"Apache-2.0"
] | null | null | null | test/money_changeset_test.exs | seantanly/money_sql | 4511d05c55a9e953c2652ff777f17053d0cdce47 | [
"Apache-2.0"
] | null | null | null | defmodule Money.Changeset.Test do
use ExUnit.Case
test "Changeset default currency" do
changeset = Organization.changeset(%Organization{}, %{payroll: "0"})
assert changeset.changes.payroll == Money.new(:JPY, 0)
end
end
| 26 | 72 | 0.722222 |
93b851ae7e1c9a781d793f3ddcaa2ed0f3a858c9 | 2,623 | ex | Elixir | clients/big_query/lib/google_api/big_query/v2/model/job_statistics.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/big_query/lib/google_api/big_query/v2/model/job_statistics.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/big_query/lib/google_api/big_query/v2/model/job_statistics.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... | 42.306452 | 219 | 0.737324 |
93b861709bb25d48130347a96614ba28cc298ab9 | 452 | ex | Elixir | backend/web/helpers/session.ex | hploscar/palike | 71618593ee6e6687e0d1cdc9e923ed8f9c2cc2cb | [
"MIT"
] | null | null | null | backend/web/helpers/session.ex | hploscar/palike | 71618593ee6e6687e0d1cdc9e923ed8f9c2cc2cb | [
"MIT"
] | null | null | null | backend/web/helpers/session.ex | hploscar/palike | 71618593ee6e6687e0d1cdc9e923ed8f9c2cc2cb | [
"MIT"
] | null | null | null | defmodule Palike.Session do
alias Palike.{Repo, User}
def authenticate(%{"email" => email, "password" => password}) do
user = Repo.get_by(User, email: String.downcase(email))
case check_password(user, password) do
true -> {:ok, user}
_ -> :error
end
end
defp check_password(user, passw... | 22.6 | 69 | 0.64823 |
93b869c7a4dd20310c98068694d762c50874e46a | 281 | ex | Elixir | lib/nautilus/ports/message/message_action_port.ex | CarloHFR/NautilusGateway | 26211948c5f9127e6662a90e41df5b43b2408372 | [
"MIT"
] | null | null | null | lib/nautilus/ports/message/message_action_port.ex | CarloHFR/NautilusGateway | 26211948c5f9127e6662a90e41df5b43b2408372 | [
"MIT"
] | null | null | null | lib/nautilus/ports/message/message_action_port.ex | CarloHFR/NautilusGateway | 26211948c5f9127e6662a90e41df5b43b2408372 | [
"MIT"
] | null | null | null | defmodule Nautilus.Ports.Message.MessageAction do
@moduledoc """
This module establish a behavior for message action
"""
@doc """
This function will implements message action
"""
@callback execute(pid :: pid, message :: map()) :: any
end
| 21.615385 | 59 | 0.626335 |
93b891698b4cc3266ab258dbfd51811377186e1b | 986 | ex | Elixir | lib/flamelex/buffer/supervision_tree/buffer_supervisor_top.ex | JediLuke/flamelex | b38d1171b8f93375d8dc59f1710442860b6c8580 | [
"Apache-2.0"
] | 10 | 2021-03-02T20:05:13.000Z | 2022-03-14T21:10:39.000Z | lib/flamelex/editor/buffer/supervision_tree/buffer_supervisor_top.ex | JediLuke/franklin | 8eb77a342547de3eb43d28dcf9f835ff443ad489 | [
"Apache-2.0"
] | 2 | 2021-12-14T18:29:44.000Z | 2021-12-23T20:38:27.000Z | lib/flamelex/editor/buffer/supervision_tree/buffer_supervisor_top.ex | JediLuke/franklin | 8eb77a342547de3eb43d28dcf9f835ff443ad489 | [
"Apache-2.0"
] | 2 | 2021-12-05T20:41:26.000Z | 2021-12-26T01:46:42.000Z | defmodule Flamelex.Buffer.TopLevelSupervisor do
@moduledoc """
This Supervisor monitors the Buffer.Manager and the Buffer.DynamicSupervisor
"""
use Supervisor
require Logger
def start_link(params) do
Supervisor.start_link(__MODULE__, params, name: __MODULE__)
end
def init(_params) do
Logger.... | 30.8125 | 78 | 0.709939 |
93b897217a81b9c6eab859a33f6688e0165ec96d | 1,940 | ex | Elixir | apps/ewallet/lib/ewallet/fetchers/exchange_account_fetcher.ex | vanmil/ewallet | 6c1aca95a83e0a9d93007670a40d8c45764a8122 | [
"Apache-2.0"
] | null | null | null | apps/ewallet/lib/ewallet/fetchers/exchange_account_fetcher.ex | vanmil/ewallet | 6c1aca95a83e0a9d93007670a40d8c45764a8122 | [
"Apache-2.0"
] | null | null | null | apps/ewallet/lib/ewallet/fetchers/exchange_account_fetcher.ex | vanmil/ewallet | 6c1aca95a83e0a9d93007670a40d8c45764a8122 | [
"Apache-2.0"
] | null | null | null | defmodule EWallet.ExchangeAccountFetcher do
@moduledoc """
Fetch exchange account and/or exchange wallet.
"""
alias EWallet.WalletFetcher
alias EWalletDB.{Repo, Account}
def fetch(%{
"exchange_account_id" => exchange_account_id,
"exchange_wallet_address" => exchange_wallet_address
})
... | 31.803279 | 98 | 0.672165 |
93b8b85cff4d567c3c197ab379f8d5c8e7dc7628 | 451 | exs | Elixir | test/bank_web/views/error_view_test.exs | rai200890/phoenix-commanded-example | d68b89a3aee8f1a3f27744eded2c44eddcf92a1a | [
"MIT"
] | null | null | null | test/bank_web/views/error_view_test.exs | rai200890/phoenix-commanded-example | d68b89a3aee8f1a3f27744eded2c44eddcf92a1a | [
"MIT"
] | null | null | null | test/bank_web/views/error_view_test.exs | rai200890/phoenix-commanded-example | d68b89a3aee8f1a3f27744eded2c44eddcf92a1a | [
"MIT"
] | null | null | null | defmodule BankWeb.ErrorViewTest do
use BankWeb.ConnCase, async: true
# Bring render/3 and render_to_string/3 for testing custom views
import Phoenix.View
test "renders 404.json" do
assert render(BankWeb.ErrorView, "404.json", []) ==
%{errors: %{detail: "Not Found"}}
end
test "renders 500.j... | 26.529412 | 66 | 0.660754 |
93b8bdadea45273d277f304946966f6551038230 | 4,704 | ex | Elixir | clients/games_management/lib/google_api/games_management/v1management/api/rooms.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/games_management/lib/google_api/games_management/v1management/api/rooms.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/games_management/lib/google_api/games_management/v1management/api/rooms.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... | 43.155963 | 217 | 0.703444 |
93b8c22010216f67486c663e8a466a1dda624bf3 | 823 | ex | Elixir | test/support/edge_cases/multiple_def_cases/various.ex | Ajwah/ex_debugger | 44cd5b99c0b7751db052887b7a0bc3ce52a2972e | [
"Apache-2.0"
] | 3 | 2020-07-07T20:41:23.000Z | 2020-07-17T09:05:37.000Z | test/support/edge_cases/multiple_def_cases/various.ex | Ajwah/ex_debugger | 44cd5b99c0b7751db052887b7a0bc3ce52a2972e | [
"Apache-2.0"
] | 1 | 2020-07-08T00:04:38.000Z | 2020-07-08T00:04:38.000Z | test/support/edge_cases/multiple_def_cases/various.ex | Ajwah/ex_debugger | 44cd5b99c0b7751db052887b7a0bc3ce52a2972e | [
"Apache-2.0"
] | null | null | null | defmodule Support.EdgeCases.MultipleDefCases.Various do
@moduledoc false
use ExDebugger
def run1,
do:
%{ls: [1, 2, 3, 4]}
|> Map.fetch!(:ls)
|> List.wrap()
|> Enum.reverse()
|> Enum.reduce(0, &(&1 * 2 + &2))
def run2(%{digit: a}, %{digit: b}, %{digit: c}, %{digit: d}) do
... | 22.243243 | 98 | 0.490887 |
93b8ca9f9774b7c7cd06a7d01492f24ed621ec53 | 1,566 | exs | Elixir | config/config.exs | leozhang37/wechat_pay | 3991ceabc23e8e86c1bee45c9c33f3b028f3fb13 | [
"MIT"
] | 55 | 2016-10-19T09:01:39.000Z | 2019-03-23T12:40:21.000Z | config/config.exs | leozhang37/wechat_pay | 3991ceabc23e8e86c1bee45c9c33f3b028f3fb13 | [
"MIT"
] | 20 | 2020-07-06T01:59:19.000Z | 2022-03-01T01:07:13.000Z | config/config.exs | leozhang37/wechat_pay | 3991ceabc23e8e86c1bee45c9c33f3b028f3fb13 | [
"MIT"
] | 9 | 2017-01-05T04:17:21.000Z | 2019-02-18T03:52:05.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... | 34.043478 | 73 | 0.750958 |
93b8d582bf93c975ae005dd22c31587d233c3f33 | 1,377 | exs | Elixir | test/10_parse/40_internal_functions/id_of_test.exs | marick/ecto_test_dsl | 6d460af093367098b7c78db709753deb45904d77 | [
"Unlicense"
] | 4 | 2021-02-09T17:26:34.000Z | 2021-08-08T01:42:52.000Z | test/10_parse/40_internal_functions/id_of_test.exs | marick/transformer_test_support | 6d460af093367098b7c78db709753deb45904d77 | [
"Unlicense"
] | null | null | null | test/10_parse/40_internal_functions/id_of_test.exs | marick/transformer_test_support | 6d460af093367098b7c78db709753deb45904d77 | [
"Unlicense"
] | null | null | null | defmodule Parse.InternalFunctions.IdOfTest do
use EctoTestDSL.Case
use T.Predefines
alias T.Parse.FinishParse
alias T.Parse.BuildState
test "basic parsing" do
assert id_of(animal: Examples) == FieldRef.new(id: een(animal: Examples))
assert id_of(:animal) == FieldRef.new(id: een(animal: __MODULE__))
... | 27 | 77 | 0.633987 |
93b94381f5970c2283ea529364f11bcbc762ee52 | 1,542 | ex | Elixir | clients/storage_transfer/lib/google_api/storage_transfer/v1/model/bandwidth_limit.ex | corp-momenti/elixir-google-api | fe1580e305789ab2ca0741791b8ffe924bd3240c | [
"Apache-2.0"
] | null | null | null | clients/storage_transfer/lib/google_api/storage_transfer/v1/model/bandwidth_limit.ex | corp-momenti/elixir-google-api | fe1580e305789ab2ca0741791b8ffe924bd3240c | [
"Apache-2.0"
] | null | null | null | clients/storage_transfer/lib/google_api/storage_transfer/v1/model/bandwidth_limit.ex | corp-momenti/elixir-google-api | fe1580e305789ab2ca0741791b8ffe924bd3240c | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 32.808511 | 138 | 0.746433 |
93b96dedddf0846646d6ff843296f3bc7f50ae58 | 1,640 | ex | Elixir | lib/docusign/model/template_role.ex | gaslight/docusign_elixir | d9d88d53dd85d32a39d537bade9db28d779414e6 | [
"MIT"
] | 4 | 2020-12-21T12:50:13.000Z | 2022-01-12T16:50:43.000Z | lib/docusign/model/template_role.ex | gaslight/docusign_elixir | d9d88d53dd85d32a39d537bade9db28d779414e6 | [
"MIT"
] | 12 | 2018-09-18T15:26:34.000Z | 2019-09-28T15:29:39.000Z | lib/docusign/model/template_role.ex | gaslight/docusign_elixir | d9d88d53dd85d32a39d537bade9db28d779414e6 | [
"MIT"
] | 15 | 2020-04-29T21:50:16.000Z | 2022-02-11T18:01:51.000Z | # NOTE: This class is auto generated by the swagger code generator program.
# https://github.com/swagger-api/swagger-codegen.git
# Do not edit the class manually.
defmodule DocuSign.Model.TemplateRole do
@moduledoc """
"""
@derive [Poison.Encoder]
defstruct [
:accessCode,
:clientUserId,
:defaultR... | 25.625 | 81 | 0.636585 |
93b9a388918c86504ffa08804fb79768e5260ef2 | 1,605 | exs | Elixir | apps/socket/test/grapevine_socket/web/socket_handler_test.exs | oestrich/grapevine | 7fb745a3a6e4eb68bd761baa190b2df32fa1f73d | [
"MIT"
] | 107 | 2018-10-05T18:20:32.000Z | 2022-02-28T04:02:50.000Z | apps/socket/test/grapevine_socket/web/socket_handler_test.exs | oestrich/grapevine | 7fb745a3a6e4eb68bd761baa190b2df32fa1f73d | [
"MIT"
] | 33 | 2018-10-05T14:11:18.000Z | 2022-02-10T22:19:18.000Z | apps/socket/test/grapevine_socket/web/socket_handler_test.exs | oestrich/grapevine | 7fb745a3a6e4eb68bd761baa190b2df32fa1f73d | [
"MIT"
] | 18 | 2019-02-03T03:08:20.000Z | 2021-12-28T04:29:36.000Z | defmodule GrapevineSocket.Web.SocketHandlerTest do
use GrapevineSocket.DataCase
alias GrapevineSocket.RateLimit
alias GrapevineSocket.Web.SocketHandler
alias GrapevineSocket.Web.State
describe "incoming messages are rate limited globally" do
test "records current rate of send" do
state = setup_sta... | 30.865385 | 97 | 0.655452 |
93b9a3f1004f19bf52cacaacb45bd95da1ade8a5 | 7,395 | ex | Elixir | lib/jsonapi/serializer.ex | thebrianemory/jsonapi | 8a41a1a77a00516c53d7d8831e8c0a5f7a1a09b6 | [
"MIT"
] | 1 | 2020-10-29T19:28:23.000Z | 2020-10-29T19:28:23.000Z | lib/jsonapi/serializer.ex | thebrianemory/jsonapi | 8a41a1a77a00516c53d7d8831e8c0a5f7a1a09b6 | [
"MIT"
] | null | null | null | lib/jsonapi/serializer.ex | thebrianemory/jsonapi | 8a41a1a77a00516c53d7d8831e8c0a5f7a1a09b6 | [
"MIT"
] | null | null | null | defmodule JSONAPI.Serializer do
@moduledoc """
Serialize a map of data into a properly formatted JSON API response object
"""
import JSONAPI.Ecto, only: [assoc_loaded?: 1]
alias JSONAPI.{Config, Utils}
alias Utils.String, as: JString
require Logger
@typep serialized_doc :: map()
@doc """
Takes ... | 28.886719 | 100 | 0.647194 |
93b9af063371a49674c17ed7b501ff843f2a9ee5 | 2,356 | ex | Elixir | lib/ratethedub_web/controllers/anime_controller.ex | rushsteve1/RateTheDub | 89a8ad8ab42d2a55f1c522ba78dc4ac3a7f84081 | [
"Apache-2.0"
] | 4 | 2021-04-26T21:50:45.000Z | 2021-04-27T18:37:51.000Z | lib/ratethedub_web/controllers/anime_controller.ex | rushsteve1/RateTheDub | 89a8ad8ab42d2a55f1c522ba78dc4ac3a7f84081 | [
"Apache-2.0"
] | 25 | 2021-04-26T21:39:21.000Z | 2021-09-07T13:59:14.000Z | lib/ratethedub_web/controllers/anime_controller.ex | rushsteve1/RateTheDub | 89a8ad8ab42d2a55f1c522ba78dc4ac3a7f84081 | [
"Apache-2.0"
] | null | null | null | defmodule RateTheDubWeb.AnimeController do
use RateTheDubWeb, :controller
alias RateTheDub.Anime
alias RateTheDub.DubVotes
alias RateTheDub.DubVotes.Vote
@six_months 15_778_800
@cookie_name "snowflake"
def show(conn, %{"id" => id}) do
id = String.to_integer(id)
{ip, snowflake} = user_info(conn)... | 27.717647 | 85 | 0.640917 |
93b9ebb965cd22e4a012fe39b5b1e472d6aba351 | 368 | ex | Elixir | web/views/error_view.ex | ShaneKilkelly/marc | 8ee86ad1517667a34e706597abaf9ed346971d31 | [
"MIT"
] | 11 | 2016-12-05T17:44:46.000Z | 2018-09-15T15:54:41.000Z | web/views/error_view.ex | ShaneKilkelly/marc | 8ee86ad1517667a34e706597abaf9ed346971d31 | [
"MIT"
] | null | null | null | web/views/error_view.ex | ShaneKilkelly/marc | 8ee86ad1517667a34e706597abaf9ed346971d31 | [
"MIT"
] | null | null | null | defmodule Marc.ErrorView do
use Marc.Web, :view
def render("404.html", _assigns) do
"Page not found"
end
def render("500.html", _assigns) do
"Internal server error"
end
# In case no render clause matches or no
# template is found, let's render it as 500
def template_not_found(_template, assig... | 20.444444 | 47 | 0.692935 |
93b9f3b44f45fdb72b53585e1ed5027111fe30f8 | 1,091 | ex | Elixir | elixir_tags/lib/elixir_tags/application.ex | DinowSauron/Projeto-Next-Level-Week-7-Heat | fc20ed5ca61aff8af37a6120ce6fcffb9907357d | [
"MIT"
] | null | null | null | elixir_tags/lib/elixir_tags/application.ex | DinowSauron/Projeto-Next-Level-Week-7-Heat | fc20ed5ca61aff8af37a6120ce6fcffb9907357d | [
"MIT"
] | null | null | null | elixir_tags/lib/elixir_tags/application.ex | DinowSauron/Projeto-Next-Level-Week-7-Heat | fc20ed5ca61aff8af37a6120ce6fcffb9907357d | [
"MIT"
] | null | null | null | defmodule ElixirTags.Application do
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
use Application
@impl true
def start(_type, _args) do
children = [
# Start the Ecto repository
ElixirTags.Repo,
# Start the Telemetry super... | 28.710526 | 68 | 0.706691 |
93ba0e74b92512d7c7ab9e42c132ecb9b0d9755f | 3,557 | ex | Elixir | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_detect_intent_response.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_detect_intent_response.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_detect_intent_response.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"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.4625 | 202 | 0.746978 |
93ba3815504267aed186f458ef144a7e78ab80b0 | 32,381 | ex | Elixir | lib/aws/generated/waf_v2.ex | qyon-brazil/aws-elixir | f7f21bebffc6776f95ffe9ef563cf368773438af | [
"Apache-2.0"
] | null | null | null | lib/aws/generated/waf_v2.ex | qyon-brazil/aws-elixir | f7f21bebffc6776f95ffe9ef563cf368773438af | [
"Apache-2.0"
] | null | null | null | lib/aws/generated/waf_v2.ex | qyon-brazil/aws-elixir | f7f21bebffc6776f95ffe9ef563cf368773438af | [
"Apache-2.0"
] | 1 | 2020-10-28T08:56:54.000Z | 2020-10-28T08:56:54.000Z | # WARNING: DO NOT EDIT, AUTO-GENERATED CODE!
# See https://github.com/aws-beam/aws-codegen for more details.
defmodule AWS.WAFV2 do
@moduledoc """
This is the latest version of the **AWS WAF** API, released in November, 2019.
The names of the entities that you use to access this API, like endpoints and
namesp... | 44.236339 | 156 | 0.738087 |
93ba44f0cd9fdb72eeefa8a46543849721cd6974 | 2,035 | exs | Elixir | bench/ring.exs | edescourtis/libring | 76d7add89389b2f66901778af2a9a2b8a3a37bb9 | [
"MIT"
] | 181 | 2016-09-29T12:57:03.000Z | 2022-02-12T12:50:55.000Z | bench/ring.exs | edescourtis/libring | 76d7add89389b2f66901778af2a9a2b8a3a37bb9 | [
"MIT"
] | 26 | 2016-12-12T22:22:43.000Z | 2021-12-15T15:52:06.000Z | bench/ring.exs | edescourtis/libring | 76d7add89389b2f66901778af2a9a2b8a3a37bb9 | [
"MIT"
] | 22 | 2017-04-28T08:08:44.000Z | 2022-01-27T16:18:20.000Z | Application.ensure_all_started(:libring)
# The raw datastructure
ring = HashRing.new(:'a@nohost')
ring = HashRing.add_node(ring, :'b@nohost')
# The managed version of the ring is a GenServer
# which means there is overhead when manipulating
# the ring or mapping keys to the ring. This translates
# into being roughly ... | 42.395833 | 95 | 0.699263 |
93ba4a49a28b4baa9cb74bdac8578036e3733e33 | 1,674 | exs | Elixir | Day_2/part2.exs | andrefmrocha/Advent_Of_Code_2019 | 44334b96a27c4b62ca78c79e3fef498b53577728 | [
"MIT"
] | 1 | 2019-12-12T12:37:59.000Z | 2019-12-12T12:37:59.000Z | Day_2/part2.exs | andrefmrocha/Advent_Of_Code_2019 | 44334b96a27c4b62ca78c79e3fef498b53577728 | [
"MIT"
] | null | null | null | Day_2/part2.exs | andrefmrocha/Advent_Of_Code_2019 | 44334b96a27c4b62ca78c79e3fef498b53577728 | [
"MIT"
] | null | null | null | defmodule Day2 do
defp read_input() do
File.read!('input.txt')
|> String.split(",", trim: true)
|> Enum.map(&String.trim/1)
|> Enum.map(&String.to_integer/1)
end
defp addition(values, second, third) do
firstValue = Enum.at(values, second)
secondValue = Enum.at(values, third)
firstValu... | 22.931507 | 53 | 0.592593 |
93ba63bf7ce60215bee4a2ddba34fa8bce2f87e4 | 4,954 | ex | Elixir | lib/multibase/base8.ex | Stebalien/ex-multibase | beddfe5fd0d24921564271483d71e7ae0798d697 | [
"MIT"
] | 3 | 2018-11-14T18:21:51.000Z | 2020-11-02T17:11:02.000Z | lib/multibase/base8.ex | Stebalien/ex-multibase | beddfe5fd0d24921564271483d71e7ae0798d697 | [
"MIT"
] | null | null | null | lib/multibase/base8.ex | Stebalien/ex-multibase | beddfe5fd0d24921564271483d71e7ae0798d697 | [
"MIT"
] | 2 | 2019-07-26T19:10:59.000Z | 2021-05-19T10:04:13.000Z | defmodule Base8 do
@moduledoc false
# """
# This module provides encoding and decoding for Base-8.
# """
#TODO: Replace with a macro
alphabet_encoding = Enum.with_index('01234567')
@doc """
Encodes a binary in Base-8.
## Options
The accepted options are:
:padding - specifies whether or not to pa... | 24.646766 | 106 | 0.630803 |
93ba84fe5da19d65d96c737f0e105da8d08efa35 | 3,305 | ex | Elixir | lib/bonny_plug/webhook_plug.ex | ufirstgroup/bonny_plug | 4f2b49fd6d3db245745a9b1073be7328721cdb53 | [
"MIT"
] | 6 | 2020-11-09T15:02:45.000Z | 2021-04-17T12:50:25.000Z | lib/bonny_plug/webhook_plug.ex | ufirstgroup/bonny_plug | 4f2b49fd6d3db245745a9b1073be7328721cdb53 | [
"MIT"
] | 44 | 2020-12-14T06:55:48.000Z | 2022-03-28T02:04:08.000Z | lib/bonny_plug/webhook_plug.ex | ufirstgroup/bonny_plug | 4f2b49fd6d3db245745a9b1073be7328721cdb53 | [
"MIT"
] | null | null | null | defmodule BonnyPlug.WebhookPlug do
@moduledoc """
Plug that processes incoming admission webhook requests. Valid requests are forwarded to given webhook handlers.
You have to specify the `:webhook_type` you want to forward to this plug. The `:webhook_type` has to be be either
`:validating_webhook` or `:mutatin... | 37.134831 | 162 | 0.702572 |
93bab2af285b870ccfbd019a954f15cfe5bbfbeb | 1,912 | exs | Elixir | samples/repat_n.exs | gomoripeti/benchee | bd5185bcfdc8320c237959505e63a89d31e044a9 | [
"MIT"
] | 636 | 2016-06-06T07:58:36.000Z | 2019-03-19T15:27:37.000Z | samples/repat_n.exs | gomoripeti/benchee | bd5185bcfdc8320c237959505e63a89d31e044a9 | [
"MIT"
] | 198 | 2016-06-18T08:19:15.000Z | 2019-03-19T15:32:37.000Z | samples/repat_n.exs | gomoripeti/benchee | bd5185bcfdc8320c237959505e63a89d31e044a9 | [
"MIT"
] | 43 | 2016-06-08T08:04:30.000Z | 2019-02-13T17:10:24.000Z | n = 1_000
range = 1..n
list = Enum.to_list(range)
fun = fn -> 0 end
Benchee.run(%{
"Enum.each (range)" => fn -> Enum.each(range, fn _ -> fun.() end) end,
"List comprehension (range)" => fn -> for _ <- range, do: fun.() end,
"Enum.each (list)" => fn -> Enum.each(list, fn _ -> fun.() end) end,
"List comprehensio... | 39.833333 | 98 | 0.5591 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.