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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
abc9eda17a250f9ce80853b5ae457cbaf481b111 | 1,831 | exs | Elixir | mix.exs | temp/opencov | 0fc7d5af8d4d88162f9f74f371ed5799a0c8808e | [
"MIT"
] | 189 | 2018-09-25T09:02:41.000Z | 2022-03-09T13:52:06.000Z | mix.exs | temp/opencov | 0fc7d5af8d4d88162f9f74f371ed5799a0c8808e | [
"MIT"
] | 29 | 2018-09-26T05:51:18.000Z | 2021-11-05T08:55:03.000Z | mix.exs | temp/opencov | 0fc7d5af8d4d88162f9f74f371ed5799a0c8808e | [
"MIT"
] | 32 | 2018-10-21T12:28:11.000Z | 2022-03-28T02:20:19.000Z | defmodule Opencov.Mixfile do
use Mix.Project
def project do
[app: :opencov,
version: "0.0.1",
elixir: "~> 1.4",
elixirc_paths: elixirc_paths(Mix.env),
compilers: [:phoenix, :gettext] ++ Mix.compilers,
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
aliase... | 28.609375 | 105 | 0.528127 |
abca42c48a93deee33e652730c15016c6b955b63 | 35,879 | exs | Elixir | test/grax/grax_test.exs | rdf-elixir/grax | 9628f66d7961cbe62fb38803cb172e67006093af | [
"MIT"
] | 17 | 2021-01-06T12:11:28.000Z | 2021-05-26T00:39:37.000Z | test/grax/grax_test.exs | rdf-elixir/grax | 9628f66d7961cbe62fb38803cb172e67006093af | [
"MIT"
] | null | null | null | test/grax/grax_test.exs | rdf-elixir/grax | 9628f66d7961cbe62fb38803cb172e67006093af | [
"MIT"
] | null | null | null | defmodule GraxTest do
use Grax.TestCase
doctest Grax
import Grax.UuidTestHelper
alias Grax.ValidationError
alias Grax.Schema.{TypeError, InvalidProperty, CardinalityError}
alias Example.IdSpecs
describe "build/1" do
test "with a string id" do
assert Example.User.build("http://example.com/use... | 34.565511 | 125 | 0.497422 |
abca7428218cb7f8e7b1dbaeddc61d842673c7d1 | 625 | exs | Elixir | test/midi_synth_test.exs | kianmeng/midi_synth | 55072d039382c3bef459524849d12e0ae8c5d5fa | [
"Apache-2.0"
] | 24 | 2018-05-28T03:55:09.000Z | 2022-01-22T10:44:49.000Z | test/midi_synth_test.exs | kianmeng/midi_synth | 55072d039382c3bef459524849d12e0ae8c5d5fa | [
"Apache-2.0"
] | 7 | 2019-04-23T13:40:50.000Z | 2020-10-12T21:25:16.000Z | test/midi_synth_test.exs | kianmeng/midi_synth | 55072d039382c3bef459524849d12e0ae8c5d5fa | [
"Apache-2.0"
] | 4 | 2019-04-23T00:12:37.000Z | 2020-12-01T20:50:44.000Z | defmodule MIDISynthTest do
use ExUnit.Case
import ExUnit.CaptureLog
doctest MIDISynth
test "playing raw midi strings" do
synth = start_supervised!(MIDISynth)
MIDISynth.midi(synth, <<0x90, 60, 127>>)
Process.sleep(250)
MIDISynth.midi(synth, <<0x80, 60, 127>>)
end
@tag :requires_working_aud... | 23.148148 | 45 | 0.6704 |
abca9b6885b6578dafaf897a457e311d0e9ec8b8 | 4,003 | ex | Elixir | clients/drive/lib/google_api/drive/v3/model/team_drive_capabilities.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | null | null | null | clients/drive/lib/google_api/drive/v3/model/team_drive_capabilities.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | null | null | null | clients/drive/lib/google_api/drive/v3/model/team_drive_capabilities.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... | 44.477778 | 212 | 0.723707 |
abcaa65d51799c5925f728d400329158a24f0cc9 | 2,163 | exs | Elixir | config/prod.exs | helapu/gd_push | 4bfe17194a898232fe8e8a4d54d4f90934ba4125 | [
"MIT"
] | null | null | null | config/prod.exs | helapu/gd_push | 4bfe17194a898232fe8e8a4d54d4f90934ba4125 | [
"MIT"
] | null | null | null | config/prod.exs | helapu/gd_push | 4bfe17194a898232fe8e8a4d54d4f90934ba4125 | [
"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... | 32.772727 | 67 | 0.711512 |
abcaf0897ebe971b29cf8faa885f5c304c7ba321 | 1,653 | ex | Elixir | lib/adeunis_arf8170ba.ex | zolihorvath/element-parsers | dc9927db1c39b8f77e4c22f10dc38f29c6a41ab9 | [
"MIT"
] | null | null | null | lib/adeunis_arf8170ba.ex | zolihorvath/element-parsers | dc9927db1c39b8f77e4c22f10dc38f29c6a41ab9 | [
"MIT"
] | null | null | null | lib/adeunis_arf8170ba.ex | zolihorvath/element-parsers | dc9927db1c39b8f77e4c22f10dc38f29c6a41ab9 | [
"MIT"
] | null | null | null | defmodule Parser do
use Platform.Parsing.Behaviour
# ELEMENT IoT Parser for Adeunis ARF8170BA
# According to documentation provided by Adeunis
# Link: https://www.adeunis.com/en/produit/dry-contacts-2/
# Documentation: https://www.adeunis.com/wp-content/uploads/2017/08/DRY_CONTACTS_LoRaWAN_UG_V2.0.0_FR_GB.pd... | 23.956522 | 110 | 0.506352 |
abcb447053f4c6f5d6e842d05ccef12e4bb6e2c6 | 2,871 | ex | Elixir | lib/mix/ecto.ex | yrashk/ecto | 1462d5ad4cbb7bf74c292ec405852bc196808daf | [
"Apache-2.0"
] | 1 | 2016-08-15T21:23:28.000Z | 2016-08-15T21:23:28.000Z | lib/mix/ecto.ex | yrashk/ecto | 1462d5ad4cbb7bf74c292ec405852bc196808daf | [
"Apache-2.0"
] | null | null | null | lib/mix/ecto.ex | yrashk/ecto | 1462d5ad4cbb7bf74c292ec405852bc196808daf | [
"Apache-2.0"
] | null | null | null | defmodule Mix.Ecto do
# Conveniences for writing Mix.Tasks in Ecto.
@moduledoc false
@doc """
Parses the repository as the first argument in the given list
and ensure the repository is loaded and available.
"""
@spec parse_repo([term]) :: {Ecto.Repo.t, [term]} | no_return
def parse_repo([h|t]) when is_... | 28.71 | 110 | 0.634274 |
abcb763d1242a745953599726b95707d8ad62df1 | 4,170 | ex | Elixir | lib/student_list/accounts/user_token.ex | jwarwick/student_list | d35a2fcef2025d3de9b7915682965c48481c1d15 | [
"MIT"
] | 1 | 2021-06-27T20:02:11.000Z | 2021-06-27T20:02:11.000Z | lib/student_list/accounts/user_token.ex | jwarwick/student_list | d35a2fcef2025d3de9b7915682965c48481c1d15 | [
"MIT"
] | null | null | null | lib/student_list/accounts/user_token.ex | jwarwick/student_list | d35a2fcef2025d3de9b7915682965c48481c1d15 | [
"MIT"
] | null | null | null | defmodule StudentList.Accounts.UserToken do
@moduledoc """
Session and reset action tokens
"""
use Ecto.Schema
import Ecto.Query
@hash_algorithm :sha256
@rand_size 32
# It is very important to keep the reset password token expiry short,
# since someone with access to the email may take over the acco... | 29.160839 | 101 | 0.690408 |
abcbaae89479eff512af59349a4cf46f847ac7bb | 2,350 | ex | Elixir | clients/firebase_hosting/lib/google_api/firebase_hosting/v1beta1/model/status.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/firebase_hosting/lib/google_api/firebase_hosting/v1beta1/model/status.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/firebase_hosting/lib/google_api/firebase_hosting/v1beta1/model/status.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 44.339623 | 427 | 0.725957 |
abcbac9df94b1076063ccfa0ec9fa944802241c3 | 711 | ex | Elixir | lib/moneybirx.ex | Codaisseur/moneybirx | acf552e1b912c77a919a5563d37c51e0db67032b | [
"MIT"
] | 1 | 2019-10-16T11:33:39.000Z | 2019-10-16T11:33:39.000Z | lib/moneybirx.ex | Codaisseur/moneybirx | acf552e1b912c77a919a5563d37c51e0db67032b | [
"MIT"
] | null | null | null | lib/moneybirx.ex | Codaisseur/moneybirx | acf552e1b912c77a919a5563d37c51e0db67032b | [
"MIT"
] | 1 | 2021-07-27T17:54:20.000Z | 2021-07-27T17:54:20.000Z | defmodule Moneybirx do
@moduledoc """
This is an unofficial [Moneybird API](https://developer.moneybird.com/) client. It uses HTTPoison for requests and Poison for dealing with JSON payloads.
## Installation
The package can be installed by adding `moneybirx` to your list of dependencies in `mix.exs`:
d... | 26.333333 | 155 | 0.658228 |
abcbc227c109f5c298eefa2d68ecf83e042db95f | 9,028 | ex | Elixir | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v2beta1/model/creative.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v2beta1/model/creative.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v2beta1/model/creative.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... | 69.984496 | 452 | 0.70957 |
abcbc5e38cf19f582f99ccc68fb2207dc9538a90 | 583 | exs | Elixir | test/views/error_view_test.exs | sysdia-solutions/basic_books | 251dae71d1dc3d5516464e38e0efede1af9949fe | [
"MIT"
] | 1 | 2016-02-04T17:16:54.000Z | 2016-02-04T17:16:54.000Z | test/views/error_view_test.exs | sysdia-solutions/basic_books | 251dae71d1dc3d5516464e38e0efede1af9949fe | [
"MIT"
] | null | null | null | test/views/error_view_test.exs | sysdia-solutions/basic_books | 251dae71d1dc3d5516464e38e0efede1af9949fe | [
"MIT"
] | null | null | null | defmodule BasicBooks.ErrorViewTest do
use BasicBooks.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(BasicBooks.ErrorView, "404.html", []) ==
"Page not found"
end
test "render 500.... | 26.5 | 68 | 0.684391 |
abcbd313c0a554ef3f39ffe64d4c4d8a48fd2167 | 1,046 | ex | Elixir | lib/phoenix_boilerplate/release.ex | hamilton-pay/phoenix-boilerplate | 1b479e4b19bc62b774f58d383b5038f12e508fdf | [
"MIT"
] | 11 | 2021-04-20T12:42:29.000Z | 2022-03-25T16:38:54.000Z | lib/phoenix_boilerplate/release.ex | hamilton-pay/phoenix-boilerplate | 1b479e4b19bc62b774f58d383b5038f12e508fdf | [
"MIT"
] | null | null | null | lib/phoenix_boilerplate/release.ex | hamilton-pay/phoenix-boilerplate | 1b479e4b19bc62b774f58d383b5038f12e508fdf | [
"MIT"
] | 4 | 2021-04-17T19:47:41.000Z | 2021-08-01T00:50:15.000Z | defmodule PhoenixBoilerplate.Release do
require Logger
@app :phoenix_boilerplate
@moduledoc false
def migrate do
load_app()
Logger.info("Start Migrating Data")
for repo <- repos() do
{:ok, _, _} = Ecto.Migrator.with_repo(repo, &Ecto.Migrator.run(&1, :up, all: true))
end
seed_data(... | 24.904762 | 120 | 0.68738 |
abcbfc33c963e8e71c5102eefea8a6588feeb076 | 69 | ex | Elixir | web/views/shared_view.ex | bmordas11/fun_in_the_sun | eb6f4f604a8ebf0f12b7a51c3b4e37ac777fe84b | [
"MIT"
] | null | null | null | web/views/shared_view.ex | bmordas11/fun_in_the_sun | eb6f4f604a8ebf0f12b7a51c3b4e37ac777fe84b | [
"MIT"
] | null | null | null | web/views/shared_view.ex | bmordas11/fun_in_the_sun | eb6f4f604a8ebf0f12b7a51c3b4e37ac777fe84b | [
"MIT"
] | null | null | null | defmodule FunInTheSun.SharedView do
use FunInTheSun.Web, :view
end
| 17.25 | 35 | 0.811594 |
abcc0e2cd705cac7a23c39bcd4958679fbaaba66 | 2,398 | ex | Elixir | lib/exq/support/mode.ex | onpointvn/exq | ee4db22624fb8a00ddc01c35a135e24de31b5a66 | [
"Apache-2.0"
] | null | null | null | lib/exq/support/mode.ex | onpointvn/exq | ee4db22624fb8a00ddc01c35a135e24de31b5a66 | [
"Apache-2.0"
] | null | null | null | lib/exq/support/mode.ex | onpointvn/exq | ee4db22624fb8a00ddc01c35a135e24de31b5a66 | [
"Apache-2.0"
] | null | null | null | defmodule Exq.Support.Mode do
@moduledoc """
This module defines several modes in which Exq can be used.
These modes are:
* `default` - starts the default processes
* `enqueuer` - starts processes which are responsible for job enqueueing
* `api` - starts processes which are responsible for API usage
"""... | 27.563218 | 95 | 0.657214 |
abcc2bcdc673001e8e4952de53cd9e703b7a3b70 | 1,483 | exs | Elixir | apps/playground_db/mix.exs | kimlindholm/elixir_playground | 2a44404996b98d88e40faaee4f6b3a546618a1fd | [
"MIT"
] | null | null | null | apps/playground_db/mix.exs | kimlindholm/elixir_playground | 2a44404996b98d88e40faaee4f6b3a546618a1fd | [
"MIT"
] | null | null | null | apps/playground_db/mix.exs | kimlindholm/elixir_playground | 2a44404996b98d88e40faaee4f6b3a546618a1fd | [
"MIT"
] | null | null | null | defmodule PlaygroundDb.MixProject do
use Mix.Project
def project do
[
app: :playground_db,
version: "0.1.0",
build_path: "../../_build",
config_path: "../../config/config.exs",
deps_path: "../../deps",
lockfile: "../../mix.lock",
elixir: "~> 1.7.4",
elixirc_paths... | 25.568966 | 79 | 0.600135 |
abcc64f70ff00ef58908ad94056a730a54278d0a | 1,381 | ex | Elixir | lib/nacha/entry.ex | tokkenops/nacha.ex | 0232ed5578d01b89cb554cd8cd0e574504aa5137 | [
"Apache-2.0"
] | 8 | 2020-02-06T17:38:02.000Z | 2022-01-01T01:41:07.000Z | lib/nacha/entry.ex | tokkenops/nacha.ex | 0232ed5578d01b89cb554cd8cd0e574504aa5137 | [
"Apache-2.0"
] | 2 | 2019-06-28T03:40:09.000Z | 2019-06-28T04:10:34.000Z | lib/nacha/entry.ex | tokkenops/nacha.ex | 0232ed5578d01b89cb554cd8cd0e574504aa5137 | [
"Apache-2.0"
] | 2 | 2019-11-24T15:52:44.000Z | 2019-11-25T12:14:42.000Z | defmodule Nacha.Entry do
@moduledoc """
A struct containing an entry detail record and, optionally,
addenda records and additional metadata.
"""
import Kernel, except: [to_string: 1]
alias Nacha.Records.{EntryDetail, Addendum}
defstruct [:record, addenda: []]
@type t :: %__MODULE__{record: EntryDeta... | 27.62 | 78 | 0.65677 |
abcc75118048d83d1f8ae2136ecd36b9d2aaaa2f | 195 | exs | Elixir | test/myapp_web/controllers/page_controller_test.exs | ctbucha/phoenix-reasonreact-example | cb6c34eaa74108e0cf14f838eac208ef8f073a22 | [
"MIT"
] | 11 | 2018-07-20T07:37:06.000Z | 2020-08-18T17:48:00.000Z | test/myapp_web/controllers/page_controller_test.exs | ramondelemos/elixir-cluster-k8s-discovery | b7f790a6d37df3ad1fff84cfd182ea080d7f04cb | [
"MIT"
] | null | null | null | test/myapp_web/controllers/page_controller_test.exs | ramondelemos/elixir-cluster-k8s-discovery | b7f790a6d37df3ad1fff84cfd182ea080d7f04cb | [
"MIT"
] | 1 | 2018-07-20T01:48:02.000Z | 2018-07-20T01:48:02.000Z | defmodule MyappWeb.PageControllerTest do
use MyappWeb.ConnCase
test "GET /", %{conn: conn} do
conn = get conn, "/"
assert html_response(conn, 200) =~ "Welcome to Phoenix!"
end
end
| 21.666667 | 60 | 0.676923 |
abcca081d392590a705e439926378b9c32e26151 | 243 | exs | Elixir | priv/repo/migrations/20180603153408_addscope_and_group_pub_key_to_requests.exs | kenforthewin/mentat | 417ce989e13f2f08990b872027ce8dcb3a1e6e99 | [
"MIT"
] | 88 | 2018-06-17T17:36:56.000Z | 2021-11-20T20:29:27.000Z | priv/repo/migrations/20180603153408_addscope_and_group_pub_key_to_requests.exs | kenforthewin/scalar | 417ce989e13f2f08990b872027ce8dcb3a1e6e99 | [
"MIT"
] | 47 | 2018-05-12T00:12:37.000Z | 2018-06-16T19:52:52.000Z | priv/repo/migrations/20180603153408_addscope_and_group_pub_key_to_requests.exs | kenforthewin/scalar | 417ce989e13f2f08990b872027ce8dcb3a1e6e99 | [
"MIT"
] | 6 | 2018-06-17T17:37:11.000Z | 2020-04-12T04:05:49.000Z | defmodule App.Repo.Migrations.AddscopeAndGroupPubKeyToRequests do
use Ecto.Migration
def change do
create unique_index(:requests, [:user_id, :team_id])
alter table(:requests) do
add :team_public_key, :text
end
end
end
| 22.090909 | 65 | 0.73251 |
abcca6415a24c90f4f1a24b1160c4b909f37946d | 533 | ex | Elixir | lib/ex_okex/swap/public.ex | acuityinnovations/ex_okex | 52acf16e8d00446ca32607ccb2cd75add0acaceb | [
"MIT"
] | null | null | null | lib/ex_okex/swap/public.ex | acuityinnovations/ex_okex | 52acf16e8d00446ca32607ccb2cd75add0acaceb | [
"MIT"
] | 4 | 2019-04-12T17:13:00.000Z | 2020-04-06T07:28:47.000Z | lib/ex_okex/swap/public.ex | acuityinnovations/ex_okex | 52acf16e8d00446ca32607ccb2cd75add0acaceb | [
"MIT"
] | 5 | 2019-04-10T00:41:17.000Z | 2021-12-23T14:49:02.000Z | defmodule ExOkex.Swap.Public do
@moduledoc false
import ExOkex.Api.Public
@prefix "/api/swap/v3"
def instruments do
get("#{@prefix}/instruments", %{})
end
def price_limit(instrument_id) do
get("#{@prefix}/instruments/#{instrument_id}/price_limit")
end
@spec get_best_ticker(String.t()) :: {:... | 21.32 | 62 | 0.688555 |
abccaaf4f4fb0a52cf213222abe8a06ad6a35b1a | 9,752 | ex | Elixir | apps/command/lib/command/util.ex | ndac-todoroki/DiscordSplatoonBot | 6a082b0352684cb64d36fe9116e7f060691cba37 | [
"MIT"
] | 6 | 2017-08-10T13:57:06.000Z | 2019-01-17T08:48:40.000Z | apps/command/lib/command/util.ex | ndac-todoroki/DiscordSplatoonBot | 6a082b0352684cb64d36fe9116e7f060691cba37 | [
"MIT"
] | 14 | 2017-08-08T13:07:00.000Z | 2019-02-28T15:10:18.000Z | apps/command/lib/command/util.ex | ndac-todoroki/DiscordSplatoonBot | 6a082b0352684cb64d36fe9116e7f060691cba37 | [
"MIT"
] | null | null | null | defmodule Command.Util do
@moduledoc """
TODO: ヘルプに関してはマクロを使って@アトリビュートから取得するようにしたい
"""
alias Nostrum.Api, as: API
require Logger
defmodule Help do
defstruct [:title, :description, :fields]
end
def ping(msg) do
API.create_message(msg.channel_id, "<@#{msg.author.id}> Pong")
end
def set_ni... | 22.063348 | 159 | 0.546042 |
abccb2797c1820ef04209922c447dd97a1555a98 | 1,950 | exs | Elixir | nevernote/config/dev.exs | dreamingechoes/create-an-mvp-with-phoenix-framework | 2a75582fdece9c8f0931f6322e27db5467ae96a4 | [
"MIT"
] | 4 | 2019-01-07T09:15:23.000Z | 2021-06-18T02:56:14.000Z | nevernote/config/dev.exs | dreamingechoes/create-an-mvp-with-phoenix-framework | 2a75582fdece9c8f0931f6322e27db5467ae96a4 | [
"MIT"
] | null | null | null | nevernote/config/dev.exs | dreamingechoes/create-an-mvp-with-phoenix-framework | 2a75582fdece9c8f0931f6322e27db5467ae96a4 | [
"MIT"
] | null | null | null | use Mix.Config
# For development, we disable any cache and enable
# debugging and code reloading.
#
# The watchers configuration can be used to run external
# watchers to your application. For example, we use it
# with brunch.io to recompile .js and .css sources.
config :nevernote, NevernoteWeb.Endpoint,
http: [port... | 30 | 170 | 0.696923 |
abccb5dc3c6d5ad9d6c8bd34bdfe157da08ddd39 | 13,723 | ex | Elixir | config/authorization/config.ex | lblod/app-demo-editor | 5fbfcf91efe5626198daf809b96bf11a2615e2b0 | [
"MIT"
] | null | null | null | config/authorization/config.ex | lblod/app-demo-editor | 5fbfcf91efe5626198daf809b96bf11a2615e2b0 | [
"MIT"
] | null | null | null | config/authorization/config.ex | lblod/app-demo-editor | 5fbfcf91efe5626198daf809b96bf11a2615e2b0 | [
"MIT"
] | null | null | null | alias Acl.Accessibility.Always, as: AlwaysAccessible
alias Acl.Accessibility.ByQuery, as: AccessByQuery
alias Acl.GraphSpec.Constraint.ResourceFormat, as: ResourceFormatConstraint
alias Acl.GraphSpec.Constraint.Resource, as: ResourceConstraint
alias Acl.GraphSpec, as: GraphSpec
alias Acl.GroupSpec, as: GroupSpec
alias ... | 59.665217 | 169 | 0.539386 |
abccc361e223d4358107f403b77690fa1ee232b5 | 3,585 | ex | Elixir | lib/dynamic_server_manager/server.ex | stirlab/elixir-dynamic-server-manager | 1b8dc327373456ab6b1f6b9997eee160d140c5f6 | [
"MIT"
] | 2 | 2020-08-07T14:56:42.000Z | 2020-08-26T12:17:26.000Z | lib/dynamic_server_manager/server.ex | stirlab/elixir-dynamic-server-manager | 1b8dc327373456ab6b1f6b9997eee160d140c5f6 | [
"MIT"
] | null | null | null | lib/dynamic_server_manager/server.ex | stirlab/elixir-dynamic-server-manager | 1b8dc327373456ab6b1f6b9997eee160d140c5f6 | [
"MIT"
] | 1 | 2020-08-07T14:56:49.000Z | 2020-08-07T14:56:49.000Z | defmodule DynamicServerManager.Server do
@type location :: atom()
@type server :: atom() # :small | :medium | :large
@type overrides :: Map.t
@type config :: Map.t
@type specs :: Map.t
@type metadata :: Map.t
@type ip :: String.t
@type info :: %{public_ip_v4: ip} | %{public_ip_v4: ip, external_ip_v4: ip... | 33.820755 | 107 | 0.695676 |
abccc8770652686813ac94bc2ecb39796c748a05 | 128 | ex | Elixir | lib/screens_web/views/v2/audio/static_image_view.ex | mbta/screens | 4b586970f8844b19543bb2ffd4b032a89f6fa40a | [
"MIT"
] | 3 | 2021-07-27T14:11:00.000Z | 2022-01-03T14:16:43.000Z | lib/screens_web/views/v2/audio/static_image_view.ex | mbta/screens | 4b586970f8844b19543bb2ffd4b032a89f6fa40a | [
"MIT"
] | 444 | 2021-03-10T20:57:17.000Z | 2022-03-31T16:00:35.000Z | lib/screens_web/views/v2/audio/static_image_view.ex | mbta/screens | 4b586970f8844b19543bb2ffd4b032a89f6fa40a | [
"MIT"
] | null | null | null | defmodule ScreensWeb.V2.Audio.StaticImageView do
use ScreensWeb, :view
def render("_widget.ssml", _) do
~E""
end
end
| 16 | 48 | 0.703125 |
abccf2bbfe425f564b2a31a2b81a67e0c4ec00f0 | 193 | exs | Elixir | apps/language_server/test/providers/folding_range/special_token_test.exs | maciej-szlosarczyk/elixir-ls | f9e3a969a32212482a7625deec9e0fd0f533f991 | [
"Apache-2.0"
] | 865 | 2018-10-31T20:29:13.000Z | 2022-03-29T11:13:39.000Z | apps/language_server/test/providers/folding_range/special_token_test.exs | maciej-szlosarczyk/elixir-ls | f9e3a969a32212482a7625deec9e0fd0f533f991 | [
"Apache-2.0"
] | 441 | 2019-01-05T02:33:52.000Z | 2022-03-30T20:56:50.000Z | apps/language_server/test/providers/folding_range/special_token_test.exs | maciej-szlosarczyk/elixir-ls | f9e3a969a32212482a7625deec9e0fd0f533f991 | [
"Apache-2.0"
] | 126 | 2018-11-12T19:16:53.000Z | 2022-03-26T13:27:50.000Z | defmodule ElixirLS.LanguageServer.Providers.FoldingRange.SpecialTokenTest do
use ExUnit.Case
alias ElixirLS.LanguageServer.Providers.FoldingRange.SpecialToken
doctest(SpecialToken)
end
| 24.125 | 76 | 0.854922 |
abcd42651377a5c550cffe9ec981dc5a168b6061 | 1,769 | ex | Elixir | test/support/cluster.ex | annatel/antl_utils_elixir | 3b2206ee5d91ccbf57db8d4e68833880019e46a1 | [
"MIT"
] | 1 | 2020-09-23T18:59:35.000Z | 2020-09-23T18:59:35.000Z | test/support/cluster.ex | annatel/antl_utils_elixir | 3b2206ee5d91ccbf57db8d4e68833880019e46a1 | [
"MIT"
] | 2 | 2020-10-11T09:49:51.000Z | 2022-03-15T11:13:38.000Z | test/support/cluster.ex | annatel/antl_utils_elixir | 3b2206ee5d91ccbf57db8d4e68833880019e46a1 | [
"MIT"
] | null | null | null | defmodule AntlUtilsElixir.Cluster do
def spawn(nodes) do
# Turn node into a distributed node with the given long name
:net_kernel.start([:"primary@127.0.0.1"])
# Allow spawned nodes to fetch all code from this node
:erl_boot_server.start([])
allow_boot(to_charlist("127.0.0.1"))
nodes
|> ... | 27.215385 | 98 | 0.667609 |
abcd4f91d28ce57ccbb849d8ece76ced01c46aa4 | 981 | ex | Elixir | test/support/channel_case.ex | barnaba/archery-competition | cd5d302431429218aeb72c71fa96981667d8d95c | [
"MIT"
] | null | null | null | test/support/channel_case.ex | barnaba/archery-competition | cd5d302431429218aeb72c71fa96981667d8d95c | [
"MIT"
] | 6 | 2018-07-11T21:01:51.000Z | 2018-07-11T21:06:07.000Z | test/support/channel_case.ex | barnaba/archery-competition | cd5d302431429218aeb72c71fa96981667d8d95c | [
"MIT"
] | null | null | null | defmodule ArcheryCompetitionWeb.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 datastructures and query the data layer.
Finally, if the test case i... | 25.815789 | 80 | 0.728848 |
abcd4fd74f88d2ede2b9fa8f165a0e70163e8fdc | 784 | exs | Elixir | mix.exs | parndt/git_ecto | 1527fcf4d5063426527086e4b97010e39e133660 | [
"MIT"
] | null | null | null | mix.exs | parndt/git_ecto | 1527fcf4d5063426527086e4b97010e39e133660 | [
"MIT"
] | null | null | null | mix.exs | parndt/git_ecto | 1527fcf4d5063426527086e4b97010e39e133660 | [
"MIT"
] | null | null | null | defmodule GitEcto.Mixfile do
use Mix.Project
def project do
[app: :git_ecto,
version: "0.1.0",
elixir: "~> 1.3",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps()]
end
# Configuration for the OTP application
#
# Type "mix help compile.app" for m... | 20.631579 | 77 | 0.5625 |
abcd537df7df916a9689efd086c3b8008fe3f377 | 1,605 | exs | Elixir | test/caveman_test.exs | beadsland/elixir_caveman | fcc5cb0bf2c44aa58c02a0881720ddc6a6c87e94 | [
"Apache-2.0"
] | 1 | 2020-08-16T16:19:57.000Z | 2020-08-16T16:19:57.000Z | test/caveman_test.exs | beadsland/elixir_caveman | fcc5cb0bf2c44aa58c02a0881720ddc6a6c87e94 | [
"Apache-2.0"
] | null | null | null | test/caveman_test.exs | beadsland/elixir_caveman | fcc5cb0bf2c44aa58c02a0881720ddc6a6c87e94 | [
"Apache-2.0"
] | null | null | null | defmodule CavemanTest do
use ExUnit.Case
doctest Caveman
use Caveman
import ExUnit.CaptureLog
###
# Checkpoint functionality
###
test "basic trace checkpoint" do
{func, arity} = __ENV__.function
line = __ENV__.line + 2
assert capture_log(fn ->
hello()
end) =~ "#{__MODULE__}.#{f... | 22.291667 | 98 | 0.583178 |
abcd54ad3a700463b92404d8d78dc46dfd3b117b | 518 | exs | Elixir | mix.exs | foresta/mlex | e356b4251ff2efda4dea494c188d9c08eca82ded | [
"MIT"
] | null | null | null | mix.exs | foresta/mlex | e356b4251ff2efda4dea494c188d9c08eca82ded | [
"MIT"
] | null | null | null | mix.exs | foresta/mlex | e356b4251ff2efda4dea494c188d9c08eca82ded | [
"MIT"
] | null | null | null | defmodule Mlex.Mixfile do
use Mix.Project
def project do
[
apps_path: "apps",
start_permanent: Mix.env == :prod,
deps: deps()
]
end
# Dependencies listed here are available only for this
# project and cannot be accessed from applications inside
# the apps folder.
#
# Run "mix... | 20.72 | 67 | 0.604247 |
abcd57d96eda46e5d68875b915947fb1190241f2 | 499 | ex | Elixir | lib/gazol/guardian.ex | Conceptx/absinthe-example | 369fbeaf2e688767240e2ec961a2029359580afa | [
"MIT"
] | null | null | null | lib/gazol/guardian.ex | Conceptx/absinthe-example | 369fbeaf2e688767240e2ec961a2029359580afa | [
"MIT"
] | null | null | null | lib/gazol/guardian.ex | Conceptx/absinthe-example | 369fbeaf2e688767240e2ec961a2029359580afa | [
"MIT"
] | null | null | null | defmodule Gazol.Guardian do
use Guardian, otp_app: :gazol
alias Gazol.Accounts
def subject_for_token(user, _claims) do
{:ok, to_string(user.id)}
end
def subject_for_token(_, _) do
{:error, :reason_for_error}
end
def resource_from_claims(%{"sub" => id}) do
case Accounts.get_user!(id) do
... | 17.821429 | 45 | 0.643287 |
abcd5d6341899e76dda02bdfa6e78df1d8723f38 | 1,521 | ex | Elixir | clients/monitoring/lib/google_api/monitoring/v3/model/telemetry.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/monitoring/lib/google_api/monitoring/v3/model/telemetry.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/monitoring/lib/google_api/monitoring/v3/model/telemetry.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... | 32.361702 | 197 | 0.740302 |
abcd6f1fc73451da5d098446193752902605576a | 4,483 | exs | Elixir | test/ex_oauth2_provider/redirect_uri_test.exs | loopsocial/ex_oauth2_provider | 59d177f1c7581e1d794823279067022b1598f5f2 | [
"MIT"
] | null | null | null | test/ex_oauth2_provider/redirect_uri_test.exs | loopsocial/ex_oauth2_provider | 59d177f1c7581e1d794823279067022b1598f5f2 | [
"MIT"
] | null | null | null | test/ex_oauth2_provider/redirect_uri_test.exs | loopsocial/ex_oauth2_provider | 59d177f1c7581e1d794823279067022b1598f5f2 | [
"MIT"
] | null | null | null | defmodule ExOauth2Provider.RedirectURITest do
use ExUnit.Case
alias ExOauth2Provider.{Config, RedirectURI}
test "validate/2 native url" do
uri = Config.native_redirect_uri(otp_app: :ex_oauth2_provider)
assert RedirectURI.validate(uri, []) == {:ok, uri}
end
test "validate/2 rejects blank" do
asse... | 34.751938 | 97 | 0.643988 |
abcd96733da7c1698513728b2443516526f0aa60 | 884 | exs | Elixir | config/prod.secret.exs | jesseshieh/crit19 | 0bba407fea09afed72cbb90ca579ba34c537edef | [
"MIT"
] | null | null | null | config/prod.secret.exs | jesseshieh/crit19 | 0bba407fea09afed72cbb90ca579ba34c537edef | [
"MIT"
] | null | null | null | config/prod.secret.exs | jesseshieh/crit19 | 0bba407fea09afed72cbb90ca579ba34c537edef | [
"MIT"
] | null | null | null | # In this file, we load production configuration and
# secrets from environment variables. You can also
# hardcode secrets, although such is generally not
# recommended and you have to remember to add this
# file to your .gitignore.
use Mix.Config
database_url =
System.get_env("DATABASE_URL") ||
raise """
en... | 29.466667 | 76 | 0.720588 |
abcdb4742dca1323987dcac79e573cbd73249a78 | 2,943 | ex | Elixir | lib/dwolla/webhook.ex | ark7-inc/dwolla-elixir | a3ee9c149fbf5cd5d38dc2e854278ab321a94bf5 | [
"MIT"
] | 6 | 2018-07-23T07:43:56.000Z | 2021-07-09T01:24:21.000Z | lib/dwolla/webhook.ex | axlepayments/exdwolla | e54fec29458616757338d9bda8f2ad81dd6db225 | [
"MIT"
] | 1 | 2019-11-05T05:31:35.000Z | 2019-11-06T21:26:38.000Z | lib/dwolla/webhook.ex | axlepayments/exdwolla | e54fec29458616757338d9bda8f2ad81dd6db225 | [
"MIT"
] | 7 | 2019-02-12T07:48:09.000Z | 2021-11-08T15:58:06.000Z | defmodule Dwolla.Webhook do
@moduledoc """
Functions for `webhooks` endpoint.
"""
alias Dwolla.Utils
defstruct id: nil, topic: nil, account_id: nil, event_id: nil,
subscription_id: nil, attempts: nil
@type t :: %__MODULE__{id: String.t,
topic: String.t,
... | 28.028571 | 72 | 0.543663 |
abcdbc02726edba8e3f2ac8985b71b38f433447e | 10,669 | ex | Elixir | lib/phoenix/router/helpers.ex | Luna-Izah/phoenix | a7e6d4ac0cab49ee2efe969ef60601dc7998f2a0 | [
"MIT"
] | null | null | null | lib/phoenix/router/helpers.ex | Luna-Izah/phoenix | a7e6d4ac0cab49ee2efe969ef60601dc7998f2a0 | [
"MIT"
] | null | null | null | lib/phoenix/router/helpers.ex | Luna-Izah/phoenix | a7e6d4ac0cab49ee2efe969ef60601dc7998f2a0 | [
"MIT"
] | null | null | null | defmodule Phoenix.Router.Helpers do
# Module that generates the routing helpers.
@moduledoc false
alias Phoenix.Router.Route
alias Phoenix.Socket
alias Plug.Conn
@doc """
Callback invoked by url generated in each helper module.
"""
def url(router, %Conn{private: private}) do
case private do
... | 32.527439 | 147 | 0.631549 |
abcdf0d573ce2657d5e3ee29c1d3db3913e42822 | 1,804 | exs | Elixir | test/commands/permission/delete_test.exs | matusf/cog | 71708301c7dc570fb0d3498a50f47a70ef957788 | [
"Apache-2.0"
] | 1,003 | 2016-02-23T17:21:12.000Z | 2022-02-20T14:39:35.000Z | test/commands/permission/delete_test.exs | matusf/cog | 71708301c7dc570fb0d3498a50f47a70ef957788 | [
"Apache-2.0"
] | 906 | 2016-02-22T22:54:19.000Z | 2022-03-11T15:19:43.000Z | test/commands/permission/delete_test.exs | matusf/cog | 71708301c7dc570fb0d3498a50f47a70ef957788 | [
"Apache-2.0"
] | 95 | 2016-02-23T13:42:31.000Z | 2021-11-30T14:39:55.000Z | defmodule Cog.Test.Commands.Permission.DeleteTest do
use Cog.CommandCase, command_module: Cog.Commands.Permission
import Cog.Support.ModelUtilities, only: [permission: 1]
alias Cog.Commands.Permission.Delete
alias Cog.Repository.Permissions
test "deleting a permission works" do
permission("site:foo")
... | 28.634921 | 75 | 0.640798 |
abce0bd86399e3bdb697f007a0fef15cbff72a97 | 53 | exs | Elixir | config/test.exs | alakra/arangoex | 6fbea0335bcc1adeaa4b4299ce8028c2e4080980 | [
"MIT"
] | 24 | 2016-11-02T14:53:55.000Z | 2021-12-25T13:08:09.000Z | config/test.exs | alakra/arangoex | 6fbea0335bcc1adeaa4b4299ce8028c2e4080980 | [
"MIT"
] | 22 | 2016-12-06T15:09:50.000Z | 2022-03-24T02:16:20.000Z | config/test.exs | alakra/arangoex | 6fbea0335bcc1adeaa4b4299ce8028c2e4080980 | [
"MIT"
] | 8 | 2016-12-12T21:27:25.000Z | 2019-05-24T04:27:30.000Z | use Mix.Config
config :arangoex,
database: "test"
| 10.6 | 18 | 0.716981 |
abce57abde92f93e37ca19d0f76e768c6e941a23 | 357 | ex | Elixir | elixir/lib/homework_web/schemas/companies_schema.ex | Arthurb101/web-homework | d3f768a71c7d9e13e456028c491ced8e71e6cda4 | [
"MIT"
] | null | null | null | elixir/lib/homework_web/schemas/companies_schema.ex | Arthurb101/web-homework | d3f768a71c7d9e13e456028c491ced8e71e6cda4 | [
"MIT"
] | null | null | null | elixir/lib/homework_web/schemas/companies_schema.ex | Arthurb101/web-homework | d3f768a71c7d9e13e456028c491ced8e71e6cda4 | [
"MIT"
] | null | null | null | defmodule HomeworkWeb.Schemas.CompaniesSchema do
@moduledoc """
Defines the graphql schema for companies.
"""
use Absinthe.Schema.Notation
alias HomeworkWeb.Resolvers.CompaniesResolver
object :company do
field(:id, non_null(:id))
field(:name, :string)
field(:credit_line, :integer)
field(:a... | 22.3125 | 48 | 0.72549 |
abce9f65881bdee94796188af0c22b9b8fce04a6 | 1,903 | ex | Elixir | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2beta1_batch_update_entity_types_response.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_v2beta1_batch_update_entity_types_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2beta1_batch_update_entity_types_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 33.982143 | 179 | 0.765633 |
abcea580ee5bfd80dfcd6b4df71c37d3082fb202 | 831 | exs | Elixir | test/grizzly/zwave/commands/powerlevel_report_test.exs | smartrent/grizzly | 65a397ea7bfedb5518fe63a3f058a0b6af473e39 | [
"Apache-2.0"
] | 76 | 2019-09-04T16:56:58.000Z | 2022-03-29T06:54:36.000Z | test/grizzly/zwave/commands/powerlevel_report_test.exs | smartrent/grizzly | 65a397ea7bfedb5518fe63a3f058a0b6af473e39 | [
"Apache-2.0"
] | 124 | 2019-09-05T14:01:24.000Z | 2022-02-28T22:58:14.000Z | test/grizzly/zwave/commands/powerlevel_report_test.exs | smartrent/grizzly | 65a397ea7bfedb5518fe63a3f058a0b6af473e39 | [
"Apache-2.0"
] | 10 | 2019-10-23T19:25:45.000Z | 2021-11-17T13:21:20.000Z | defmodule Grizzly.ZWave.Commands.PowerlevelReportTest do
use ExUnit.Case, async: true
alias Grizzly.ZWave.Commands.PowerlevelReport
test "creates the command and validates params" do
params = [power_level: :normal_power, timeout: 10]
{:ok, _command} = PowerlevelReport.new(params)
end
test "encodes ... | 33.24 | 76 | 0.732852 |
abcebce3526128b30f48ccb44865e9cef4b3d252 | 3,231 | exs | Elixir | test/local_cluster_test.exs | fmbraga/horde | 109a15878e9c0d0d2d00875cc4b4864b030447e0 | [
"MIT"
] | null | null | null | test/local_cluster_test.exs | fmbraga/horde | 109a15878e9c0d0d2d00875cc4b4864b030447e0 | [
"MIT"
] | null | null | null | test/local_cluster_test.exs | fmbraga/horde | 109a15878e9c0d0d2d00875cc4b4864b030447e0 | [
"MIT"
] | null | null | null | defmodule LocalClusterTest do
require Logger
use ExUnit.Case, async: false
setup do
nodes = LocalCluster.start_nodes("cluster-#{:rand.uniform(1000)}", 2)
_ =
for n <- nodes do
{:ok, _} =
rpc(n, Horde.Supervisor, :start_link, [[name: TestSup, strategy: :one_for_one]])
{:o... | 23.583942 | 119 | 0.589291 |
abceefbbdc012a51d7401b2a7208d2bdfba8b2dc | 16,407 | ex | Elixir | lib/realm.ex | Shikanime/Lingua | 537625e97ee8fca826bebdf3a5b58480ca2af460 | [
"MIT"
] | 9 | 2020-02-12T18:45:11.000Z | 2020-11-26T10:44:01.000Z | lib/realm.ex | Shikanime/Realm | 537625e97ee8fca826bebdf3a5b58480ca2af460 | [
"MIT"
] | null | null | null | lib/realm.ex | Shikanime/Realm | 537625e97ee8fca826bebdf3a5b58480ca2af460 | [
"MIT"
] | null | null | null | import Kernel, except: [==: 2, !=: 2, >: 2, <: 2, <=: 2, >=: 2, <>: 2, apply: 2]
import Realm.Arrow.Algebra
import Realm.Apply.Algebra
defmodule Realm do
@moduledoc """
A set of functions to mimic the standard Haskell libraries feature a number of
type classes with algebraic or category-theoretic underpinnings.
... | 29.456014 | 113 | 0.478089 |
abcf0ea622877db2b5b272fa563bd0ba89b86586 | 1,310 | ex | Elixir | lib/test_server.ex | gmassman/everex | ce0f3037e69041127776181afafe6b2d14f0e343 | [
"Apache-2.0"
] | null | null | null | lib/test_server.ex | gmassman/everex | ce0f3037e69041127776181afafe6b2d14f0e343 | [
"Apache-2.0"
] | null | null | null | lib/test_server.ex | gmassman/everex | ce0f3037e69041127776181afafe6b2d14f0e343 | [
"Apache-2.0"
] | null | null | null | #
# Copyright 2015 Johan Wärlander
#
# 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 wri... | 31.95122 | 88 | 0.672519 |
abcf25baa35ebfa582768d6c1848e4491e72917b | 1,714 | ex | Elixir | clients/service_management/lib/google_api/service_management/v1/model/monitoring_destination.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/service_management/lib/google_api/service_management/v1/model/monitoring_destination.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/service_management/lib/google_api/service_management/v1/model/monitoring_destination.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... | 35.708333 | 165 | 0.768378 |
abcf437523b69cd71f87bd360d10a965a16a3cdd | 702 | ex | Elixir | lib/bell_web/gettext.ex | jwworth/bell | 9b4aeea691d7f8f7dc8cc60f2ff7b19244ada6e4 | [
"MIT"
] | null | null | null | lib/bell_web/gettext.ex | jwworth/bell | 9b4aeea691d7f8f7dc8cc60f2ff7b19244ada6e4 | [
"MIT"
] | 11 | 2021-03-11T05:46:57.000Z | 2021-12-08T15:39:25.000Z | lib/bell_web/gettext.ex | jwworth/bell | 9b4aeea691d7f8f7dc8cc60f2ff7b19244ada6e4 | [
"MIT"
] | null | null | null | defmodule BellWeb.Gettext do
@moduledoc """
A module providing Internationalization with a gettext-based API.
By using [Gettext](https://hexdocs.pm/gettext),
your module gains a set of macros for translations, for example:
import BellWeb.Gettext
# Simple translation
gettext("Here is the str... | 28.08 | 72 | 0.673789 |
abcf86c07658fb041a8e05c7643e112b91f2fdc1 | 4,475 | ex | Elixir | lib/natural_sort.ex | verdi-forum-nord/natural_sort | 031c85bb2e4b90ecee9f5ee08b96fdc0360e3773 | [
"MIT"
] | 1 | 2021-07-13T22:50:45.000Z | 2021-07-13T22:50:45.000Z | lib/natural_sort.ex | verdi-forum-nord/natural_sort | 031c85bb2e4b90ecee9f5ee08b96fdc0360e3773 | [
"MIT"
] | null | null | null | lib/natural_sort.ex | verdi-forum-nord/natural_sort | 031c85bb2e4b90ecee9f5ee08b96fdc0360e3773 | [
"MIT"
] | 2 | 2021-11-18T09:09:16.000Z | 2022-01-27T08:12:22.000Z | defmodule NaturalSort do
@moduledoc """
Sort a list naturally.
Sort functions will not, generally, sort strings containing
numbers the same way a human would.
Given a list:
["a10", "a05c", "a1", "a", "a2", "a1a", "a0", "a1b", "a20"]
Applying standard sort will produce
["a", "a0", "a... | 31.737589 | 129 | 0.616983 |
abcf8f87fd718c38dfb772f3f9481bbb89c2e257 | 1,039 | exs | Elixir | mix.exs | luoken/ex_conversion | e4e4aff99d77cef92f0da768905d021ac7679320 | [
"Apache-2.0"
] | null | null | null | mix.exs | luoken/ex_conversion | e4e4aff99d77cef92f0da768905d021ac7679320 | [
"Apache-2.0"
] | null | null | null | mix.exs | luoken/ex_conversion | e4e4aff99d77cef92f0da768905d021ac7679320 | [
"Apache-2.0"
] | null | null | null | defmodule Conversion.MixProject do
use Mix.Project
@source_url "https://github.com/luoken/conversion"
def project do
[
app: :conversion,
version: "0.1.0",
elixir: "~> 1.13",
start_permanent: Mix.env() == :prod,
deps: deps(),
description: "Conversion app for converting fro... | 21.645833 | 78 | 0.557267 |
abcfbb7e29e5ee95cbdcbb712d9ccf698d0ecced | 321 | ex | Elixir | lib/log_analyzer/server/api/util.ex | ColdOrange/log_analyzer | a48566addc154d1bc2a0434b78b36562ac15f130 | [
"MIT"
] | null | null | null | lib/log_analyzer/server/api/util.ex | ColdOrange/log_analyzer | a48566addc154d1bc2a0434b78b36562ac15f130 | [
"MIT"
] | null | null | null | lib/log_analyzer/server/api/util.ex | ColdOrange/log_analyzer | a48566addc154d1bc2a0434b78b36562ac15f130 | [
"MIT"
] | null | null | null | defmodule LogAnalyzer.Server.API.Util do
import Plug.Conn
def send_error(conn, error) do
send_resp(
conn,
200,
Poison.encode!(%{
status: "failed",
errors: [error]
})
)
end
def send_success(conn) do
send_resp(conn, 200, ~s/{"status": "successful"}/)
end
end... | 16.894737 | 54 | 0.582555 |
abcfcccee09dac3e8015ea2eaa2da7523a22082e | 2,380 | ex | Elixir | clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p4beta1_input_config.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p4beta1_input_config.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p4beta1_input_config.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 40.338983 | 171 | 0.740756 |
abd001030be7e4d9512451125ac30f9fab53d8bc | 3,010 | ex | Elixir | clients/cloud_identity/lib/google_api/cloud_identity/v1/model/membership.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | 1 | 2021-10-01T09:20:41.000Z | 2021-10-01T09:20:41.000Z | clients/cloud_identity/lib/google_api/cloud_identity/v1/model/membership.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/cloud_identity/lib/google_api/cloud_identity/v1/model/membership.ex | 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... | 48.548387 | 298 | 0.710963 |
abd011bc2c6e3f348c4dcc4be89984bcd821771f | 1,636 | ex | Elixir | lib/erlef/stipend_mail.ex | joaquinalcerro/website | 52dc89c70cd0b42127ab233a4c0d10f626d2b698 | [
"Apache-2.0"
] | 71 | 2019-07-02T18:06:15.000Z | 2022-03-09T15:30:08.000Z | lib/erlef/stipend_mail.ex | joaquinalcerro/website | 52dc89c70cd0b42127ab233a4c0d10f626d2b698 | [
"Apache-2.0"
] | 157 | 2019-07-02T01:21:16.000Z | 2022-03-30T16:08:12.000Z | lib/erlef/stipend_mail.ex | joaquinalcerro/website | 52dc89c70cd0b42127ab233a4c0d10f626d2b698 | [
"Apache-2.0"
] | 45 | 2019-07-04T05:51:11.000Z | 2022-02-27T11:56:02.000Z | defmodule Erlef.StipendMail do
@moduledoc """
Erlef.StipendMail
"""
import Swoosh.Email
use Phoenix.Swoosh, view: ErlefWeb.EmailView, layout: {ErlefWeb.LayoutView, :email}
@spec submission(%Erlef.StipendProposal{}) :: %Swoosh.Email{}
def submission(proposal) do
dt_str = DateTime.utc_now() |> DateTi... | 28.206897 | 89 | 0.661369 |
abd018c3912750c747160c4f7483a91962399b61 | 2,220 | ex | Elixir | lib/cforum_web/controllers/admin/advent_calendar_controller.ex | jrieger/cforum_ex | 61f6ce84708cb55bd0feedf69853dae64146a7a0 | [
"MIT"
] | 16 | 2019-04-04T06:33:33.000Z | 2021-08-16T19:34:31.000Z | lib/cforum_web/controllers/admin/advent_calendar_controller.ex | jrieger/cforum_ex | 61f6ce84708cb55bd0feedf69853dae64146a7a0 | [
"MIT"
] | 294 | 2019-02-10T11:10:27.000Z | 2022-03-30T04:52:53.000Z | lib/cforum_web/controllers/admin/advent_calendar_controller.ex | jrieger/cforum_ex | 61f6ce84708cb55bd0feedf69853dae64146a7a0 | [
"MIT"
] | 10 | 2019-02-10T10:39:24.000Z | 2021-07-06T11:46:05.000Z | defmodule CforumWeb.Admin.AdventCalendarController do
use CforumWeb, :controller
alias Cforum.Abilities
alias Cforum.AdventCalendars
alias Cforum.AdventCalendars.Day
alias CforumWeb.Router.Helpers, as: Routes
def index_years(conn, _params) do
years = AdventCalendars.list_years()
render(conn, "inde... | 32.173913 | 87 | 0.672072 |
abd030524eb30cfad16d7ad7e145fb7eb224984a | 557 | ex | Elixir | lib/glimesh/api/scopes.ex | Megami-Studios/glimesh.tv | 57dde3a328fabdcc3305be48ae1b82df27b83c9b | [
"MIT"
] | 1 | 2021-06-08T00:07:39.000Z | 2021-06-08T00:07:39.000Z | lib/glimesh/api/scopes.ex | Megami-Studios/glimesh.tv | 57dde3a328fabdcc3305be48ae1b82df27b83c9b | [
"MIT"
] | null | null | null | lib/glimesh/api/scopes.ex | Megami-Studios/glimesh.tv | 57dde3a328fabdcc3305be48ae1b82df27b83c9b | [
"MIT"
] | null | null | null | defmodule Glimesh.Api.Scopes do
@moduledoc """
Glimesh Scopes Policy
"""
@behaviour Bodyguard.Policy
alias Glimesh.Accounts.User
alias Glimesh.Accounts.UserAccess
def authorize(:public, %UserAccess{} = ua, _params), do: ua.public
def authorize(:email, %UserAccess{} = ua, %User{} = accessing_user) do... | 25.318182 | 74 | 0.689408 |
abd03abe590bc1dd431d3c706dd9503206729e01 | 1,112 | ex | Elixir | lib/atom_tweaks_web/helpers/octicon_helpers.ex | amymariparker/atom-style-tweaks | 9f17b626e4a527d17d2da85ac575029b52fb6a25 | [
"MIT"
] | 14 | 2017-01-08T14:51:25.000Z | 2022-03-14T09:23:17.000Z | lib/atom_tweaks_web/helpers/octicon_helpers.ex | amymariparker/atom-style-tweaks | 9f17b626e4a527d17d2da85ac575029b52fb6a25 | [
"MIT"
] | 654 | 2017-05-23T22:55:21.000Z | 2022-03-30T09:02:25.000Z | lib/atom_tweaks_web/helpers/octicon_helpers.ex | amymariparker/atom-style-tweaks | 9f17b626e4a527d17d2da85ac575029b52fb6a25 | [
"MIT"
] | 4 | 2019-07-10T23:09:25.000Z | 2020-02-09T12:14:00.000Z | defmodule AtomTweaksWeb.OcticonHelpers do
@moduledoc """
Helper functions for displaying [Octicons](https://octicons.github.com).
"""
use Phoenix.HTML
alias AtomTweaks.Tweaks.Tweak
@doc """
Draws the appropriate Octicon for the given `tweak`.
## Options
All options are passed through to `PhoenixO... | 25.860465 | 86 | 0.68795 |
abd041bdc6693940347dc7e87268af1e403d791d | 1,120 | ex | Elixir | web/models/search/product.ex | harry-gao/ex-cart | 573e7f977bb3b710d11618dd215d4ddd8f819fb3 | [
"Apache-2.0"
] | 356 | 2016-03-16T12:37:28.000Z | 2021-12-18T03:22:39.000Z | web/models/search/product.ex | harry-gao/ex-cart | 573e7f977bb3b710d11618dd215d4ddd8f819fb3 | [
"Apache-2.0"
] | 30 | 2016-03-16T09:19:10.000Z | 2021-01-12T08:10:52.000Z | web/models/search/product.ex | harry-gao/ex-cart | 573e7f977bb3b710d11618dd215d4ddd8f819fb3 | [
"Apache-2.0"
] | 72 | 2016-03-16T13:32:14.000Z | 2021-03-23T11:27:43.000Z | defmodule Nectar.SearchProduct do
use Nectar.Web, :model
alias Nectar.Product
schema "abstract table:search_product" do
field :name, :string, virtual: true
end
def changeset(model, params \\ %{}) do
model
|> cast(params, ~w(), ~w(name))
end
def search(params) do
search(Product, param... | 24.347826 | 120 | 0.6625 |
abd08d9d075243d4b46f5dbbbea4dbc08f666a0e | 1,390 | ex | Elixir | lib/ocpp_model.ex | gertjana/ocpp_model | d5cef92a33e6e30e044ec757231d619faa80358f | [
"Apache-2.0"
] | 1 | 2020-11-06T21:05:22.000Z | 2020-11-06T21:05:22.000Z | lib/ocpp_model.ex | gertjana/ocpp_model | d5cef92a33e6e30e044ec757231d619faa80358f | [
"Apache-2.0"
] | 3 | 2020-11-10T13:46:20.000Z | 2020-12-20T15:14:25.000Z | lib/ocpp_model.ex | gertjana/ocpp_model | d5cef92a33e6e30e044ec757231d619faa80358f | [
"Apache-2.0"
] | null | null | null | defmodule OcppModel do
@moduledoc """
OcppModel Module: Contains helper functions
"""
@spec to_struct(map, atom | struct()) :: struct()
@doc """
Converts a Map into a struct of the given kind
"""
def to_struct(map, kind) when is_map(map) do
struct = struct(kind)
map_to_struct = fn {k, _}, a... | 30.888889 | 109 | 0.576259 |
abd0bbb8b4a1cbffdb8915a2b33aedf41ebf03db | 1,181 | ex | Elixir | web/channels/user_socket.ex | jeojoe/catapalt-chat | 1a8c94bb38535d517837e1e9c53d2e8de0f2b7ae | [
"Apache-2.0"
] | null | null | null | web/channels/user_socket.ex | jeojoe/catapalt-chat | 1a8c94bb38535d517837e1e9c53d2e8de0f2b7ae | [
"Apache-2.0"
] | null | null | null | web/channels/user_socket.ex | jeojoe/catapalt-chat | 1a8c94bb38535d517837e1e9c53d2e8de0f2b7ae | [
"Apache-2.0"
] | null | null | null | defmodule CatapaltChat.UserSocket do
use Phoenix.Socket
## Channels
# channel "room:*", CatapaltChat.RoomChannel
## Transports
transport :websocket, Phoenix.Transports.WebSocket
# transport :longpoll, Phoenix.Transports.LongPoll
# Socket params are passed from the client and can
# be used to verify a... | 31.078947 | 85 | 0.705334 |
abd14bb6470a5c8560ef04ab870fe4bdbd0a5432 | 76 | exs | Elixir | test/funix_web/views/page_view_test.exs | spotifun/funix | c81a1b4584b826264241fcf2da13552a610842dd | [
"MIT"
] | null | null | null | test/funix_web/views/page_view_test.exs | spotifun/funix | c81a1b4584b826264241fcf2da13552a610842dd | [
"MIT"
] | null | null | null | test/funix_web/views/page_view_test.exs | spotifun/funix | c81a1b4584b826264241fcf2da13552a610842dd | [
"MIT"
] | null | null | null | defmodule FunixWeb.PageViewTest do
use FunixWeb.ConnCase, async: true
end
| 19 | 36 | 0.815789 |
abd1b86cb46779e534c5ddcc33707649c0bc123b | 2,083 | ex | Elixir | lib/twaddler/db/conversation.ex | woeye/twaddler | e06a22a94520055bc33aaaacfe51989ba8ab665f | [
"Apache-2.0"
] | 1 | 2018-10-08T13:57:08.000Z | 2018-10-08T13:57:08.000Z | lib/twaddler/db/conversation.ex | woeye/twaddler | e06a22a94520055bc33aaaacfe51989ba8ab665f | [
"Apache-2.0"
] | null | null | null | lib/twaddler/db/conversation.ex | woeye/twaddler | e06a22a94520055bc33aaaacfe51989ba8ab665f | [
"Apache-2.0"
] | 1 | 2018-10-08T13:55:44.000Z | 2018-10-08T13:55:44.000Z | defmodule Twaddler.Db.Conversation do
use Ecto.Schema
import Ecto.Changeset
import Ecto.Query
import Twaddler.Db.Common
alias Twaddler.Repo
alias Twaddler.Db.User
schema "conversations" do
field :uuid, :string
field :topic, :string
field :participants, {:array, :string}
timestamps()
... | 28.534247 | 140 | 0.665386 |
abd1bfcdf3bc510473af0897e59d90c1721c6bd6 | 1,449 | ex | Elixir | lib/http/response.ex | szTheory/Tube | b80892f5d7fbb11493a44052d3ec50b9764e9b05 | [
"MIT"
] | 10 | 2016-08-02T13:54:43.000Z | 2021-11-11T03:18:57.000Z | lib/http/response.ex | szTheory/Tube | b80892f5d7fbb11493a44052d3ec50b9764e9b05 | [
"MIT"
] | null | null | null | lib/http/response.ex | szTheory/Tube | b80892f5d7fbb11493a44052d3ec50b9764e9b05 | [
"MIT"
] | 4 | 2016-09-16T18:42:07.000Z | 2021-11-08T13:56:07.000Z | defmodule Tube.Http.Response do
defstruct [status: 0, status_text: "None", headers: %{}, body: "", http_version: "1.1"]
@moduledoc false
def parse(binary) do
parse_status_line(binary, %__MODULE__{})
end
defp parse_status_line(rest, struct) do
[
_matched,
version,
status_code,
... | 25.875 | 89 | 0.588682 |
abd1e2e549a46494dda033aa6d2c47ca26681249 | 6,572 | ex | Elixir | lib/mojito/conn_server.ex | appcues/xclient | 423984cbc9bb592d799d9d9e456a1d4eca45245b | [
"MIT"
] | 367 | 2019-02-25T23:50:14.000Z | 2022-02-11T23:05:16.000Z | lib/mojito/conn_server.ex | appcues/xclient | 423984cbc9bb592d799d9d9e456a1d4eca45245b | [
"MIT"
] | 72 | 2019-02-26T00:30:49.000Z | 2022-02-03T22:24:04.000Z | lib/mojito/conn_server.ex | appcues/xclient | 423984cbc9bb592d799d9d9e456a1d4eca45245b | [
"MIT"
] | 36 | 2019-03-18T15:34:18.000Z | 2021-08-31T21:25:18.000Z | defmodule Mojito.ConnServer do
@moduledoc false
use GenServer
require Logger
alias Mojito.{Conn, Response, Utils}
@type state :: map
@doc ~S"""
Starts a `Mojito.ConnServer`.
`Mojito.ConnServer` is a GenServer that handles a single
`Mojito.Conn`. It supports automatic reconnection,
connection k... | 28.69869 | 91 | 0.613968 |
abd1eef37cbebb22c9fa92a8e674c2f6654bec65 | 1,303 | ex | Elixir | lib/bulmalab_web/live/modal_component.ex | easink/bulmalab | eddd13d4717388fdccaeb97efaa2ac7ce723030a | [
"Apache-2.0"
] | null | null | null | lib/bulmalab_web/live/modal_component.ex | easink/bulmalab | eddd13d4717388fdccaeb97efaa2ac7ce723030a | [
"Apache-2.0"
] | null | null | null | lib/bulmalab_web/live/modal_component.ex | easink/bulmalab | eddd13d4717388fdccaeb97efaa2ac7ce723030a | [
"Apache-2.0"
] | null | null | null | defmodule BulmalabWeb.ModalComponent do
use Phoenix.LiveComponent
use Phoenix.HTML
def render(assigns) do
# IO.inspect(assigns, label: :DDDD, limit: :infinity)
~L"""
<button class="button" phx-click="activate" phx-target="#modal-<%= @id %>">
<div class="modal <%= if @active, do: "is-active" %>" i... | 27.723404 | 80 | 0.605526 |
abd210697bcae5da13f503aac0c2210b6b03359d | 2,105 | ex | Elixir | clients/analytics_reporting/lib/google_api/analytics_reporting/v4/model/pivot_header_entry.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/analytics_reporting/lib/google_api/analytics_reporting/v4/model/pivot_header_entry.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/analytics_reporting/lib/google_api/analytics_reporting/v4/model/pivot_header_entry.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... | 38.981481 | 151 | 0.736817 |
abd2676f660a5d95a99f47ad2270107d9623c066 | 1,650 | ex | Elixir | lib/live_props/docs.ex | patricklafleur/phoenix-live-props | a93e364cf1d83fba276fa000da0bd11d145c6a32 | [
"MIT"
] | 11 | 2020-07-02T17:02:18.000Z | 2021-10-31T11:27:53.000Z | lib/live_props/docs.ex | patricklafleur/phoenix-live-props | a93e364cf1d83fba276fa000da0bd11d145c6a32 | [
"MIT"
] | null | null | null | lib/live_props/docs.ex | patricklafleur/phoenix-live-props | a93e364cf1d83fba276fa000da0bd11d145c6a32 | [
"MIT"
] | 1 | 2021-01-04T20:29:07.000Z | 2021-01-04T20:29:07.000Z | defmodule LiveProps.Docs do
@moduledoc false
def generate_docs(env) do
props_doc = generate_props_docs(env.module)
{line, doc} =
case Module.get_attribute(env.module, :moduledoc) do
nil ->
{env.line, props_doc}
{line, doc} ->
{line, doc <> "\n" <> props_doc}
... | 21.428571 | 96 | 0.577576 |
abd275129b69a4faa1bbcde3c6ba6448ed57fb53 | 1,133 | exs | Elixir | mix.exs | michael-michalski/telemetry_wrappers | 360376ff8a0e73d2e582e712963b51d2e21b3ffc | [
"MIT"
] | null | null | null | mix.exs | michael-michalski/telemetry_wrappers | 360376ff8a0e73d2e582e712963b51d2e21b3ffc | [
"MIT"
] | null | null | null | mix.exs | michael-michalski/telemetry_wrappers | 360376ff8a0e73d2e582e712963b51d2e21b3ffc | [
"MIT"
] | null | null | null | defmodule TelemetryWrappers.MixProject do
use Mix.Project
def project do
[
app: :telemetry_wrappers,
version: "0.1.0",
elixir: "~> 1.8",
start_permanent: Mix.env() == :prod,
docs: [extras: ["README.md"], main: "readme"],
deps: deps(),
package: package(),
descript... | 23.604167 | 74 | 0.571933 |
abd279ed15da8276e76b453f77e99e89cf1dcddd | 1,885 | exs | Elixir | config/config.exs | ScrimpyCat/ResxJSON | a23f958c95ee9cc83031710c323a09a4531f76ae | [
"BSD-2-Clause"
] | null | null | null | config/config.exs | ScrimpyCat/ResxJSON | a23f958c95ee9cc83031710c323a09a4531f76ae | [
"BSD-2-Clause"
] | null | null | null | config/config.exs | ScrimpyCat/ResxJSON | a23f958c95ee9cc83031710c323a09a4531f76ae | [
"BSD-2-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... | 31.949153 | 118 | 0.681698 |
abd2cb2fdcfbd3c0be39fd328031998d71d39930 | 1,954 | ex | Elixir | clients/hydra/elixir/lib/ory/model/plugin_config.ex | ory/sdk-generator | 958314d130922ad6f20f439b5230141a832231a5 | [
"Apache-2.0"
] | null | null | null | clients/hydra/elixir/lib/ory/model/plugin_config.ex | ory/sdk-generator | 958314d130922ad6f20f439b5230141a832231a5 | [
"Apache-2.0"
] | null | null | null | clients/hydra/elixir/lib/ory/model/plugin_config.ex | ory/sdk-generator | 958314d130922ad6f20f439b5230141a832231a5 | [
"Apache-2.0"
] | null | null | null | # NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
# https://openapi-generator.tech
# Do not edit the class manually.
defmodule Ory.Model.PluginConfig do
@moduledoc """
"""
@derive [Poison.Encoder]
defstruct [
:"Args",
:"Description",
:"DockerVersion",
... | 30.061538 | 91 | 0.63869 |
abd2dabfda37f99ec8c262c2e0e3480425eb33a9 | 1,325 | ex | Elixir | lib/groupher_server/accounts/models/social.ex | coderplanets/coderplanets_server | 3663e56340d6d050e974c91f7e499d8424fc25e9 | [
"Apache-2.0"
] | 240 | 2018-11-06T09:36:54.000Z | 2022-02-20T07:12:36.000Z | lib/groupher_server/accounts/models/social.ex | coderplanets/coderplanets_server | 3663e56340d6d050e974c91f7e499d8424fc25e9 | [
"Apache-2.0"
] | 363 | 2018-07-11T03:38:14.000Z | 2021-12-14T01:42:40.000Z | lib/groupher_server/accounts/models/social.ex | coderplanets/coderplanets_server | 3663e56340d6d050e974c91f7e499d8424fc25e9 | [
"Apache-2.0"
] | 22 | 2019-01-27T11:47:56.000Z | 2021-02-28T13:17:52.000Z | defmodule GroupherServer.Accounts.Model.Social do
@moduledoc false
alias __MODULE__
use Ecto.Schema
import Ecto.Changeset
alias GroupherServer.Accounts.Model.User
@required_fields ~w(user_id)a
@optional_fields ~w(github twitter facebook zhihu dribble huaban douban pinterest instagram qq weichat weibo)a... | 25.480769 | 112 | 0.695849 |
abd2e5d864384a06384176354ceb6371f3163419 | 1,182 | ex | Elixir | lib/elph/endpoint.ex | grych/elph | 64654a166cfca2af6e2b8bf318bba8fd297b42f8 | [
"MIT",
"Unlicense"
] | null | null | null | lib/elph/endpoint.ex | grych/elph | 64654a166cfca2af6e2b8bf318bba8fd297b42f8 | [
"MIT",
"Unlicense"
] | null | null | null | lib/elph/endpoint.ex | grych/elph | 64654a166cfca2af6e2b8bf318bba8fd297b42f8 | [
"MIT",
"Unlicense"
] | null | null | null | defmodule Elph.Endpoint do
use Phoenix.Endpoint, otp_app: :elph
socket "/elph/socket", Elph.UserSocket
# Serve at "/" the static files from "priv/static" directory.
#
# You should set gzip to true if you are running phoenix.digest
# when deploying your static files in production.
plug Plug.Static,
a... | 27.488372 | 69 | 0.711506 |
abd2e7d7daab6dfcbab434e081460fdac7c0a6d1 | 427 | ex | Elixir | lib/groupher_server_web/schema/billing/billing_queries.ex | coderplanets/coderplanets_server | 3663e56340d6d050e974c91f7e499d8424fc25e9 | [
"Apache-2.0"
] | 240 | 2018-11-06T09:36:54.000Z | 2022-02-20T07:12:36.000Z | lib/groupher_server_web/schema/billing/billing_queries.ex | coderplanets/coderplanets_server | 3663e56340d6d050e974c91f7e499d8424fc25e9 | [
"Apache-2.0"
] | 363 | 2018-07-11T03:38:14.000Z | 2021-12-14T01:42:40.000Z | lib/groupher_server_web/schema/billing/billing_queries.ex | mydearxym/mastani_server | f24034a4a5449200165cf4a547964a0961793eab | [
"Apache-2.0"
] | 22 | 2019-01-27T11:47:56.000Z | 2021-02-28T13:17:52.000Z | defmodule GroupherServerWeb.Schema.Billing.Queries do
@moduledoc """
billing GraphQL queries
"""
use Helper.GqlSchemaSuite
object :billing_queries do
@desc "get all bills"
field :paged_bill_records, non_null(:paged_bills) do
arg(:filter, non_null(:paged_filter))
middleware(M.Authorize, :... | 22.473684 | 56 | 0.711944 |
abd32f8e32e4ee82fd33fbdf8d7b00a5bcb2a81b | 587 | ex | Elixir | apps/tai/lib/tai/events/stream_channel_invalid.ex | ihorkatkov/tai | 09f9f15d2c385efe762ae138a8570f1e3fd41f26 | [
"MIT"
] | 1 | 2019-12-19T05:16:26.000Z | 2019-12-19T05:16:26.000Z | apps/tai/lib/tai/events/stream_channel_invalid.ex | ihorkatkov/tai | 09f9f15d2c385efe762ae138a8570f1e3fd41f26 | [
"MIT"
] | null | null | null | apps/tai/lib/tai/events/stream_channel_invalid.ex | ihorkatkov/tai | 09f9f15d2c385efe762ae138a8570f1e3fd41f26 | [
"MIT"
] | null | null | null | defmodule Tai.Events.StreamChannelInvalid do
@type venue_id :: Tai.Venues.Adapter.venue_id()
@type t :: %Tai.Events.StreamChannelInvalid{
venue: venue_id,
name: atom,
available: [atom]
}
@enforce_keys ~w(venue name available)a
defstruct ~w(venue name available)a
end
defim... | 23.48 | 61 | 0.633731 |
abd38bbbfb44d9fcc08a4cf3b461bbc95ad4436c | 284 | exs | Elixir | config/test.exs | nmbrone/vaultag | d29a601f852cae2a9e466d0c6e440309948560f0 | [
"MIT"
] | null | null | null | config/test.exs | nmbrone/vaultag | d29a601f852cae2a9e466d0c6e440309948560f0 | [
"MIT"
] | null | null | null | config/test.exs | nmbrone/vaultag | d29a601f852cae2a9e466d0c6e440309948560f0 | [
"MIT"
] | null | null | null | import Config
config :vaultag,
token_renewal_time_shift: 1,
lease_renewal_time_shift: 1,
ets_table_options: [:set, :public, :named_table],
vault: [
host: "http://127.0.0.1:8200",
auth: Vault.Auth.UserPass,
credentials: %{username: "admin", password: "admin"}
]
| 23.666667 | 56 | 0.679577 |
abd3969fd2fc8cfd34fea0b861f08f4eb6037522 | 178 | ex | Elixir | lib/techtree_web/views/projects/step_view.ex | kenkeiras/MonTree | 7ec724634c123ee085921c4cac07800c9a15e4ec | [
"WTFPL"
] | 2 | 2018-10-26T06:06:42.000Z | 2020-02-16T15:01:42.000Z | lib/techtree_web/views/projects/step_view.ex | kenkeiras/TechTree | 26c8ca59855002a88bf15eb0b64a6c788f438ec8 | [
"WTFPL"
] | 108 | 2018-10-25T10:30:33.000Z | 2021-07-28T04:18:03.000Z | lib/techtree_web/views/projects/step_view.ex | kenkeiras/TechTree | 26c8ca59855002a88bf15eb0b64a6c788f438ec8 | [
"WTFPL"
] | null | null | null | defmodule TechtreeWeb.Projects.StepView do
use TechtreeWeb, :view
alias Techtree.Projects
def render("operation_result.json", %{result: result}) do
result
end
end
| 16.181818 | 59 | 0.741573 |
abd3a1ac801f1132fcf7fe20a6e7658ad0d59954 | 1,241 | ex | Elixir | web/views/error_helpers.ex | pbrudnick/pyconar-talks | f0b2fdff9cae7bd7558cb4fdc5e0048403bbde7e | [
"MIT"
] | null | null | null | web/views/error_helpers.ex | pbrudnick/pyconar-talks | f0b2fdff9cae7bd7558cb4fdc5e0048403bbde7e | [
"MIT"
] | null | null | null | web/views/error_helpers.ex | pbrudnick/pyconar-talks | f0b2fdff9cae7bd7558cb4fdc5e0048403bbde7e | [
"MIT"
] | null | null | null | defmodule PyconarTalks.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
if error = form.errors[field] do
content_tag :span, translate_error(err... | 30.268293 | 78 | 0.671233 |
abd3aaf07691eb8aa0e117ebdc9a3f90c36767a0 | 896 | exs | Elixir | kousa/test/broth/user/follow_test.exs | LeonardSSH/dogehouse | 584055ad407bc37fa35cdf36ebb271622e29d436 | [
"MIT"
] | 9 | 2021-03-17T03:56:18.000Z | 2021-09-24T22:45:14.000Z | kousa/test/broth/user/follow_test.exs | ActuallyTomas/dogehouse | 8c3d2cd1d7e99e173f0658759467a391c4a90c4e | [
"MIT"
] | 12 | 2021-07-06T12:51:13.000Z | 2022-03-16T12:38:18.000Z | kousa/test/broth/user/follow_test.exs | ActuallyTomas/dogehouse | 8c3d2cd1d7e99e173f0658759467a391c4a90c4e | [
"MIT"
] | 4 | 2021-07-15T20:33:50.000Z | 2022-03-27T12:46:47.000Z | defmodule BrothTest.User.FollowTest do
use ExUnit.Case, async: true
use KousaTest.Support.EctoSandbox
alias Beef.Schemas.User
alias BrothTest.WsClient
alias BrothTest.WsClientFactory
alias KousaTest.Support.Factory
require WsClient
setup do
user = Factory.create(User)
client_ws = WsClientFact... | 22.974359 | 63 | 0.683036 |
abd3d32840fe8d6069b10a573f9ee7ebc39262ce | 22,047 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/api/floodlight_activities.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/api/floodlight_activities.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/api/floodlight_activities.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... | 43.571146 | 569 | 0.634281 |
abd3fd4fc4b36830fb2df31c24b26a60245d361a | 136 | exs | Elixir | config/prod.exs | gcbeltramini/bors-ng | c51708a3f679a9e24a903b2a76e90cf38576974a | [
"Apache-2.0"
] | 2 | 2022-03-14T03:44:28.000Z | 2022-03-14T03:48:02.000Z | config/prod.exs | seanpm2001/bors-ng | 2482df1c2f4680b33534620571f04075b6b4390a | [
"Apache-2.0"
] | null | null | null | config/prod.exs | seanpm2001/bors-ng | 2482df1c2f4680b33534620571f04075b6b4390a | [
"Apache-2.0"
] | null | null | null | import Config
config :bors, :server, BorsNG.GitHub.Server
config :bors, :oauth2, BorsNG.GitHub.OAuth2
import_config "prod.secret.exs"
| 19.428571 | 43 | 0.779412 |
abd406e806aa37733fd916b12d49911e807bd9ce | 2,018 | exs | Elixir | test/pow/phoenix/router_test.exs | patrickbiermann/pow | ebc2ac7d6e15961dac4be38091ff75dae0d26554 | [
"MIT"
] | 4 | 2018-05-07T16:37:15.000Z | 2018-07-14T00:44:12.000Z | test/pow/phoenix/router_test.exs | patrickbiermann/pow | ebc2ac7d6e15961dac4be38091ff75dae0d26554 | [
"MIT"
] | null | null | null | test/pow/phoenix/router_test.exs | patrickbiermann/pow | ebc2ac7d6e15961dac4be38091ff75dae0d26554 | [
"MIT"
] | null | null | null | module_raised_with =
try do
defmodule Pow.Test.Phoenix.RouterAliasScope do
@moduledoc false
use Phoenix.Router
use Pow.Phoenix.Router
scope "/", Test do
pow_routes()
end
end
rescue
e in ArgumentError -> e.message
else
_ -> raise "Scope with alias didn't throw... | 31.53125 | 158 | 0.72002 |
abd41dc76963cde110d38d2e01755b04d9f033b5 | 537 | ex | Elixir | backend/lib/getaways_web/auth_token.ex | Prumme/Projet_phx_ex_gql | 6324af91f94f96ee1f8403d5397ab930347e3e4f | [
"Unlicense"
] | null | null | null | backend/lib/getaways_web/auth_token.ex | Prumme/Projet_phx_ex_gql | 6324af91f94f96ee1f8403d5397ab930347e3e4f | [
"Unlicense"
] | 6 | 2020-01-31T19:44:15.000Z | 2021-09-02T04:26:49.000Z | backend/lib/getaways_web/auth_token.ex | Prumme/Projet_phx_ex_gql | 6324af91f94f96ee1f8403d5397ab930347e3e4f | [
"Unlicense"
] | null | null | null | defmodule GetawaysWeb.AuthToken do
@user_salt "user auth salt"
@doc """
Encodes the given `user` id and signs it, returning a token
clients can use as identification when using the API.
"""
def sign(user) do
Phoenix.Token.sign(GetawaysWeb.Endpoint, @user_salt, %{id: user.id})
end
@doc """
Decode... | 25.571429 | 72 | 0.683426 |
abd42bbc4e8f2106e15d6b4f2f3090af33421623 | 1,426 | ex | Elixir | lib/ecto_role/repo/role/entity.ex | fossabot/ecto-role | 083d5189833f2e333d12e07d23f7a1f4e9314afc | [
"MIT"
] | 2 | 2019-05-23T10:14:46.000Z | 2020-01-26T23:30:54.000Z | lib/ecto_role/repo/role/entity.ex | fossabot/ecto-role | 083d5189833f2e333d12e07d23f7a1f4e9314afc | [
"MIT"
] | 2 | 2018-01-28T22:00:20.000Z | 2018-04-16T17:35:35.000Z | lib/ecto_role/repo/role/entity.ex | fossabot/ecto-role | 083d5189833f2e333d12e07d23f7a1f4e9314afc | [
"MIT"
] | 2 | 2018-02-14T18:55:12.000Z | 2018-04-16T17:34:52.000Z | defmodule EctoRole.Entity do
@moduledoc """
Entity: Represents a Object That has a Role.
"""
use Ecto.Schema
import Ecto.Changeset
alias EctoRole.Role, as: ROLE
alias EctoRole.Entity, as: ENTITY
alias EctoRole.Entity.Role, as: ER
alias EctoRole.Repo, as: Repo
schema "er_entity" do
field(:key... | 20.666667 | 122 | 0.621318 |
abd42cb8cefdd8c50f9a01172ab5925ba7d25c2d | 1,127 | exs | Elixir | config/config.exs | tyler-nguyen/html5ever_elixir | 634ea29cdf90c881ad4bad8f4c8f584d3031fefd | [
"Apache-2.0",
"MIT"
] | 1 | 2019-04-24T09:27:50.000Z | 2019-04-24T09:27:50.000Z | config/config.exs | chingan-tsc/html5ever_elixir | 579a1aa8e0ed55b27dd09765099794a325c00ffa | [
"Apache-2.0"
] | null | null | null | config/config.exs | chingan-tsc/html5ever_elixir | 579a1aa8e0ed55b27dd09765099794a325c00ffa | [
"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.753327 |
abd42dfca7427a16a3244ba9c8bc6ba60500dd30 | 6,020 | ex | Elixir | clients/firestore/lib/google_api/firestore/v1beta1/model/field_transform.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/firestore/lib/google_api/firestore/v1beta1/model/field_transform.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/firestore/lib/google_api/firestore/v1beta1/model/field_transform.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... | 51.452991 | 178 | 0.716113 |
abd44d630418e58be165d71f66422fd15114c32d | 597 | exs | Elixir | mix.exs | bravely/demarest_mays | 9786efa1c589b23e7f8aeb7182cdc140c451fe92 | [
"MIT"
] | null | null | null | mix.exs | bravely/demarest_mays | 9786efa1c589b23e7f8aeb7182cdc140c451fe92 | [
"MIT"
] | null | null | null | mix.exs | bravely/demarest_mays | 9786efa1c589b23e7f8aeb7182cdc140c451fe92 | [
"MIT"
] | null | null | null | defmodule DemarestMays.Umbrella.Mixfile do
use Mix.Project
def project do
[
apps_path: "apps",
start_permanent: Mix.env == :prod,
deps: deps()
]
end
# Dependencies can be Hex packages:
#
# {:mydep, "~> 0.3.0"}
#
# Or git/path repositories:
#
# {:mydep, git: "https://g... | 21.321429 | 77 | 0.631491 |
abd44d758b9dfa9c141cd4de313f67df1ed42ccd | 517 | ex | Elixir | elixir/accumulate/lib/accumulate.ex | paulfioravanti/exercism | b3bf15814b89b0ef50b9bf062b3c800e80e37e75 | [
"MIT"
] | 6 | 2019-06-19T15:43:20.000Z | 2020-07-17T19:46:09.000Z | elixir/accumulate/lib/accumulate.ex | paulfioravanti/exercism | b3bf15814b89b0ef50b9bf062b3c800e80e37e75 | [
"MIT"
] | 10 | 2021-05-10T21:02:55.000Z | 2021-05-11T20:29:41.000Z | elixir/accumulate/lib/accumulate.ex | paulfioravanti/exercism | b3bf15814b89b0ef50b9bf062b3c800e80e37e75 | [
"MIT"
] | 1 | 2019-06-25T10:42:14.000Z | 2019-06-25T10:42:14.000Z | defmodule Accumulate do
@doc """
Given a list and a function, apply the function to each list item and
replace it with the function's return value.
Returns a list.
## Examples
iex> Accumulate.accumulate([], fn(x) -> x * 2 end)
[]
iex> Accumulate.accumulate([1, 2, 3], fn(x) -> x *... | 23.5 | 78 | 0.586074 |
abd476745857bd5395114692fa6e8c4432a388f2 | 1,048 | ex | Elixir | test/support/conn_case.ex | GeetanjaliStudio/gstudio-rt | 535ff386ff4d09cc18bbe7f6917fdc230f01f3d9 | [
"MIT"
] | null | null | null | test/support/conn_case.ex | GeetanjaliStudio/gstudio-rt | 535ff386ff4d09cc18bbe7f6917fdc230f01f3d9 | [
"MIT"
] | null | null | null | test/support/conn_case.ex | GeetanjaliStudio/gstudio-rt | 535ff386ff4d09cc18bbe7f6917fdc230f01f3d9 | [
"MIT"
] | null | null | null | defmodule SEDailyRTWeb.ConnCase do
@moduledoc """
This module defines the test case to be used by
tests that require setting up a connection.
Such tests rely on `Phoenix.ConnTest` and also
import other functionality to make it easier
to build common datastructures and query the data layer.
Finally, if t... | 26.871795 | 71 | 0.722328 |
abd47c3c65253bccadde3467189e9d036cd36798 | 1,730 | ex | Elixir | clients/service_control/lib/google_api/service_control/v1/model/allocate_info.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/service_control/lib/google_api/service_control/v1/model/allocate_info.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/service_control/lib/google_api/service_control/v1/model/allocate_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... | 36.808511 | 415 | 0.752023 |
abd4bda8b4df7594abce243d43066966b1c12c78 | 1,416 | ex | Elixir | lib/rdb_parser/redis_hash.ex | joshuawscott/rdb_parser | 388f0c0b05a29dfb1fbdfad8916cecb71d9897f6 | [
"MIT"
] | null | null | null | lib/rdb_parser/redis_hash.ex | joshuawscott/rdb_parser | 388f0c0b05a29dfb1fbdfad8916cecb71d9897f6 | [
"MIT"
] | null | null | null | lib/rdb_parser/redis_hash.ex | joshuawscott/rdb_parser | 388f0c0b05a29dfb1fbdfad8916cecb71d9897f6 | [
"MIT"
] | null | null | null | defmodule RdbParser.RedisHash do
@moduledoc false
alias RdbParser.RedisList
alias RdbParser.RedisString
@spec parse_ziplist(binary) :: :incomplete | {map(), binary}
def parse_ziplist(binary) do
with {data_structure_length, rest} <- RdbParser.parse_length(binary),
<<ziplist::binary-size(data_str... | 28.32 | 81 | 0.658192 |
abd4ebb41f0ffa5f3aa64d7c028296cae200a3fb | 1,349 | ex | Elixir | lib/web/controllers/character_controller.ex | stevegrossi/ex_venture | e02d5a63fdb882d92cfb4af3e15f7b48ad7054aa | [
"MIT"
] | 2 | 2019-05-14T11:36:44.000Z | 2020-07-01T08:54:04.000Z | lib/web/controllers/character_controller.ex | nickwalton/ex_venture | d8ff1b0181db03f9ddcb7610ae7ab533feecbfbb | [
"MIT"
] | null | null | null | lib/web/controllers/character_controller.ex | nickwalton/ex_venture | d8ff1b0181db03f9ddcb7610ae7ab533feecbfbb | [
"MIT"
] | 1 | 2021-01-29T14:12:40.000Z | 2021-01-29T14:12:40.000Z | defmodule Web.CharacterController do
use Web, :controller
alias Game.Config
alias Web.Character
plug(Web.Plug.PublicEnsureUser)
def new(conn, _params) do
conn
|> assign(:changeset, Character.new())
|> assign(:names, Config.random_character_names())
|> render("new.html")
end
def create(... | 23.258621 | 59 | 0.606375 |
abd4ebddd549ad6da7f54037414e14297652cf67 | 154 | ex | Elixir | lib/ielixir/repo.ex | lanalabs/IElixir | c185ce83649c268b7766e707481a3a49c525485b | [
"Apache-2.0"
] | null | null | null | lib/ielixir/repo.ex | lanalabs/IElixir | c185ce83649c268b7766e707481a3a49c525485b | [
"Apache-2.0"
] | null | null | null | lib/ielixir/repo.ex | lanalabs/IElixir | c185ce83649c268b7766e707481a3a49c525485b | [
"Apache-2.0"
] | null | null | null | defmodule IElixir.Repo do
use Ecto.Repo,
otp_app: :ielixir,
adapter: Ecto.Adapters.Postgres
@dialyzer {:nowarn_function, rollback: 1}
end
| 17.111111 | 45 | 0.707792 |
abd50155810860e8fd941038c328e8196ad4f804 | 229 | ex | Elixir | scripts/debian/xmake.default.ex | orzuk-lmj/xmake | 2aec1cfaa90e1f885410ff3c2eed4f70186c2eb2 | [
"Apache-2.0"
] | 3,721 | 2019-02-14T09:12:03.000Z | 2022-03-31T22:58:53.000Z | scripts/debian/xmake.default.ex | orzuk-lmj/xmake | 2aec1cfaa90e1f885410ff3c2eed4f70186c2eb2 | [
"Apache-2.0"
] | 1,536 | 2019-02-08T14:22:32.000Z | 2022-03-31T17:00:35.000Z | scripts/debian/xmake.default.ex | orzuk-lmj/xmake | 2aec1cfaa90e1f885410ff3c2eed4f70186c2eb2 | [
"Apache-2.0"
] | 361 | 2019-02-08T12:20:22.000Z | 2022-03-31T15:07:59.000Z | # Defaults for xmake initscript
# sourced by /etc/init.d/xmake
# installed at /etc/default/xmake by the maintainer scripts
#
# This is a POSIX shell fragment
#
# Additional options that are passed to the Daemon.
DAEMON_OPTS=""
| 20.818182 | 59 | 0.755459 |
abd5019df4992caa962f74bf49a06974a5859af0 | 5,533 | ex | Elixir | lib/commanded/assertions/event_assertions.ex | mquickform/commanded | 260b1ec28c2fb3c1fcbb61b8c4abacabd7dc7ed2 | [
"MIT"
] | null | null | null | lib/commanded/assertions/event_assertions.ex | mquickform/commanded | 260b1ec28c2fb3c1fcbb61b8c4abacabd7dc7ed2 | [
"MIT"
] | 1 | 2018-12-05T18:17:08.000Z | 2018-12-05T18:17:08.000Z | lib/commanded/assertions/event_assertions.ex | mquickform/commanded | 260b1ec28c2fb3c1fcbb61b8c4abacabd7dc7ed2 | [
"MIT"
] | 1 | 2018-12-05T18:15:03.000Z | 2018-12-05T18:15:03.000Z | defmodule Commanded.Assertions.EventAssertions do
@moduledoc """
Provides test assertion and wait for event functions to help test applications built using Commanded.
The default receive timeout is one second.
You can override the default timeout in config (e.g. `config/test.exs`):
config :commanded,
... | 29.747312 | 120 | 0.709199 |
abd5045992826c4d83166791bfe6ef878220135f | 1,586 | ex | Elixir | clients/people/lib/google_api/people/v1/model/get_people_response.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/people/lib/google_api/people/v1/model/get_people_response.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/people/lib/google_api/people/v1/model/get_people_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.744681 | 145 | 0.744641 |
abd5217d1891ebec2b5de1ab32daadea3aada42c | 346 | ex | Elixir | lib/daily_meals/users/create.ex | cassiofariasmachado/daily-meals | fa1965fa1190818e8f74382635b5174ab1e19eee | [
"MIT"
] | null | null | null | lib/daily_meals/users/create.ex | cassiofariasmachado/daily-meals | fa1965fa1190818e8f74382635b5174ab1e19eee | [
"MIT"
] | null | null | null | lib/daily_meals/users/create.ex | cassiofariasmachado/daily-meals | fa1965fa1190818e8f74382635b5174ab1e19eee | [
"MIT"
] | null | null | null | defmodule DailyMeals.Users.Create do
alias DailyMeals.{Error, Repo, User}
def call(params) do
params
|> User.changeset()
|> Repo.insert()
|> handle_insert()
end
defp handle_insert({:ok, %User{}} = result), do: result
defp handle_insert({:error, message}) do
{:error, Error.build(:bad_req... | 20.352941 | 57 | 0.656069 |
abd5303a918fb8d90392217df094876219bacf51 | 1,837 | ex | Elixir | clients/version_history/lib/google_api/version_history/v1/model/list_channels_response.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/version_history/lib/google_api/version_history/v1/model/list_channels_response.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/version_history/lib/google_api/version_history/v1/model/list_channels_response.ex | dazuma/elixir-google-api | 6a9897168008efe07a6081d2326735fe332e522c | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 36.74 | 189 | 0.737616 |
abd5357fa457932ae88058279c082a212deb9bf2 | 1,686 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/floodlight_activity_dynamic_tag.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/floodlight_activity_dynamic_tag.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/floodlight_activity_dynamic_tag.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... | 31.811321 | 118 | 0.707592 |
abd536584f6bb4e481af59de54967af30f6fda01 | 118 | ex | Elixir | backend/lib/cpsim_backend/repo.ex | azhi/cpsim | a10a3e068a8a319e66cc9cf8a6c9c97457d9bf8b | [
"MIT"
] | null | null | null | backend/lib/cpsim_backend/repo.ex | azhi/cpsim | a10a3e068a8a319e66cc9cf8a6c9c97457d9bf8b | [
"MIT"
] | null | null | null | backend/lib/cpsim_backend/repo.ex | azhi/cpsim | a10a3e068a8a319e66cc9cf8a6c9c97457d9bf8b | [
"MIT"
] | null | null | null | defmodule CPSIM.Backend.Repo do
use Ecto.Repo,
otp_app: :cpsim_backend,
adapter: Ecto.Adapters.Postgres
end
| 19.666667 | 35 | 0.745763 |
abd5470991af253d21b7574c9e5204d633834fc2 | 20,512 | ex | Elixir | clients/compute/lib/google_api/compute/v1/api/addresses.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/api/addresses.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/api/addresses.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... | 55.588076 | 511 | 0.661369 |
abd54defed39a7ca87400fc2751cb9b8c263a6c9 | 659 | exs | Elixir | test/test_helper.exs | fribmendes/firenest | 75ecb367b66a67266fc04a25e355f75369bd3fd0 | [
"Apache-2.0"
] | 266 | 2016-11-04T12:52:55.000Z | 2021-12-30T21:54:03.000Z | test/test_helper.exs | fribmendes/firenest | 75ecb367b66a67266fc04a25e355f75369bd3fd0 | [
"Apache-2.0"
] | 22 | 2016-12-28T23:08:20.000Z | 2018-11-20T19:09:52.000Z | test/test_helper.exs | fribmendes/firenest | 75ecb367b66a67266fc04a25e355f75369bd3fd0 | [
"Apache-2.0"
] | 21 | 2016-11-10T14:45:31.000Z | 2021-07-02T23:53:20.000Z | ExUnit.start(assert_receive_timeout: 2000)
nodes = [:"first@127.0.0.1", :"second@127.0.0.1", :"third@127.0.0.1"]
Firenest.Test.start_boot_server(hd(nodes))
Firenest.Test.start_firenest([hd(nodes)], adapter: Firenest.Topology.Erlang)
# Start other nodes async, so we can start running tests that don't need them right a... | 34.684211 | 88 | 0.740516 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.