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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b211c3973c425ee5bc85fce8cbff349e6f0c6323 | 410 | exs | Elixir | apps/tai/test/tai/events/stream_disconnect_test.exs | ihorkatkov/tai | 09f9f15d2c385efe762ae138a8570f1e3fd41f26 | [
"MIT"
] | 1 | 2019-12-19T05:16:26.000Z | 2019-12-19T05:16:26.000Z | apps/tai/test/tai/events/stream_disconnect_test.exs | ihorkatkov/tai | 09f9f15d2c385efe762ae138a8570f1e3fd41f26 | [
"MIT"
] | null | null | null | apps/tai/test/tai/events/stream_disconnect_test.exs | ihorkatkov/tai | 09f9f15d2c385efe762ae138a8570f1e3fd41f26 | [
"MIT"
] | 1 | 2020-05-03T23:32:11.000Z | 2020-05-03T23:32:11.000Z | defmodule Tai.Events.StreamDisconnectTest do
use ExUnit.Case, async: true
@base_attrs %{
venue: :venue_a,
reason: {:remote, :normal}
}
test ".to_data/1 transforms reason to a string" do
event = struct!(Tai.Events.StreamDisconnect, @base_attrs)
assert %{} = json = Tai.LogEvent.to_data(event)
... | 24.117647 | 61 | 0.673171 |
b211d0195babce80d7f3d1ecf6cad8a3b0eaaa68 | 24 | ex | Elixir | lib/ticker.ex | koskoci/ticker-be | 95e6e7df1b8017d3180c17f881f7a1e36b728562 | [
"MIT"
] | null | null | null | lib/ticker.ex | koskoci/ticker-be | 95e6e7df1b8017d3180c17f881f7a1e36b728562 | [
"MIT"
] | null | null | null | lib/ticker.ex | koskoci/ticker-be | 95e6e7df1b8017d3180c17f881f7a1e36b728562 | [
"MIT"
] | null | null | null | defmodule Ticker do
end
| 8 | 19 | 0.833333 |
b211e1c8f8af4864834f14c756170c33e712e52c | 11,280 | ex | Elixir | lib/stripe/connect/account.ex | erhlee-bird/stripity_stripe | 8c4c5712f391bf76e0a168125882c85048d3192f | [
"BSD-3-Clause"
] | null | null | null | lib/stripe/connect/account.ex | erhlee-bird/stripity_stripe | 8c4c5712f391bf76e0a168125882c85048d3192f | [
"BSD-3-Clause"
] | null | null | null | lib/stripe/connect/account.ex | erhlee-bird/stripity_stripe | 8c4c5712f391bf76e0a168125882c85048d3192f | [
"BSD-3-Clause"
] | null | null | null | defmodule Stripe.Account do
@moduledoc """
Work with Stripe Connect account objects.
You can:
- Retrieve your own account
- Retrieve an account with a specified `id`
This module does not yet support managed accounts.
Stripe API reference: https://stripe.com/docs/api/accounts
"""
use Stripe.Entity... | 31.774648 | 98 | 0.561791 |
b21207ab3f9c232465cc7234b56ab41ce2c4f151 | 478 | ex | Elixir | test/support/tw/v1_1/fixture.ex | en30/tw | 10c705953e9b3bf97abf9b4c221486976eac32d4 | [
"MIT"
] | null | null | null | test/support/tw/v1_1/fixture.ex | en30/tw | 10c705953e9b3bf97abf9b4c221486976eac32d4 | [
"MIT"
] | null | null | null | test/support/tw/v1_1/fixture.ex | en30/tw | 10c705953e9b3bf97abf9b4c221486976eac32d4 | [
"MIT"
] | null | null | null | defmodule Tw.V1_1.Fixture do
@moduledoc false
def list_fixture do
File.read!("test/support/fixtures/v1_1/list.json") |> Jason.decode!(keys: :atoms) |> Tw.V1_1.List.decode!()
end
def user_fixture do
File.read!("test/support/fixtures/v1_1/user.json") |> Jason.decode!(keys: :atoms) |> Tw.V1_1.User.decode... | 29.875 | 113 | 0.688285 |
b2120edd14f5c4fc705354d3020a5eed53c08ae6 | 3,856 | exs | Elixir | test/surface/components/form/email_input_test.exs | RudolfMan/surface | ee8c1546b77c91fe08e7360e64666c613bc5a900 | [
"MIT"
] | 1,161 | 2019-12-12T02:30:52.000Z | 2021-03-11T17:55:44.000Z | test/surface/components/form/email_input_test.exs | RudolfMan/surface | ee8c1546b77c91fe08e7360e64666c613bc5a900 | [
"MIT"
] | 248 | 2021-03-12T07:39:37.000Z | 2022-03-31T13:36:44.000Z | test/surface/components/form/email_input_test.exs | RudolfMan/surface | ee8c1546b77c91fe08e7360e64666c613bc5a900 | [
"MIT"
] | 73 | 2019-12-12T13:57:41.000Z | 2021-03-11T21:46:10.000Z | defmodule Surface.Components.Form.EmailInputTest do
use Surface.ConnCase, async: true
alias Surface.Components.Form.EmailInput
test "empty input" do
html =
render_surface do
~F"""
<EmailInput form="user" field="email" />
"""
end
assert html =~ """
<input i... | 23.369697 | 118 | 0.560685 |
b21213a7f1486eb096dd7505b9b58f45aa1709fe | 444 | exs | Elixir | priv/repo/migrations/20210801200449_create_users_songs_table.exs | ZucchiniZe/music_sync | 23550e5aa71503dfdbad39f49cfcd83bd98ce457 | [
"MIT"
] | 2 | 2021-07-27T10:39:02.000Z | 2021-12-18T06:55:42.000Z | priv/repo/migrations/20210801200449_create_users_songs_table.exs | ZucchiniZe/music_sync | 23550e5aa71503dfdbad39f49cfcd83bd98ce457 | [
"MIT"
] | null | null | null | priv/repo/migrations/20210801200449_create_users_songs_table.exs | ZucchiniZe/music_sync | 23550e5aa71503dfdbad39f49cfcd83bd98ce457 | [
"MIT"
] | null | null | null | defmodule MusicSync.Repo.Migrations.CreateUsersSongsTable do
use Ecto.Migration
def change do
create table(:users_songs, primary_key: false) do
add :user_id, references(:users, on_delete: :delete_all), primary_key: true
add :song_id, references(:songs, on_delete: :delete_all, type: :"varchar(22)"),... | 31.714286 | 103 | 0.720721 |
b2123580bbab5515d000f7f4712ba45d2f867221 | 633 | exs | Elixir | priv/repo/migrations/20190219190307_create_franchise.exs | elarkham/animu | 0f0c7b0b34168e69255943bdede60e03df057a44 | [
"MIT"
] | 1 | 2018-01-02T06:59:08.000Z | 2018-01-02T06:59:08.000Z | priv/repo/migrations/20190219190307_create_franchise.exs | elarkham/Animu | 0f0c7b0b34168e69255943bdede60e03df057a44 | [
"MIT"
] | null | null | null | priv/repo/migrations/20190219190307_create_franchise.exs | elarkham/Animu | 0f0c7b0b34168e69255943bdede60e03df057a44 | [
"MIT"
] | null | null | null | defmodule Animu.Repo.Migrations.CreateFranchise do
use Ecto.Migration
def change do
execute "CREATE EXTENSION citext;"
create table(:franchise) do
add :name, :string, null: false
add :titles, :map
add :slug, :citext, null: false
add :creator, :string
... | 23.444444 | 50 | 0.579779 |
b2124d1dc1eade0e7694c4b785a4c595e640d69c | 6,037 | exs | Elixir | config/.credo.exs | danmarcab/deep_painting | 860c7d02bd6b112fffa199f715e61d895cba6623 | [
"Apache-2.0"
] | null | null | null | config/.credo.exs | danmarcab/deep_painting | 860c7d02bd6b112fffa199f715e61d895cba6623 | [
"Apache-2.0"
] | 11 | 2020-01-28T22:19:10.000Z | 2022-03-11T23:18:18.000Z | config/.credo.exs | danmarcab/deep_painting | 860c7d02bd6b112fffa199f715e61d895cba6623 | [
"Apache-2.0"
] | null | null | null | # This file contains the configuration for Credo and you are probably reading
# this after creating it with `mix credo.gen.config`.
#
# If you find anything wrong or unclear in this file, please report an
# issue on GitHub: https://github.com/rrrene/credo/issues
#
%{
#
# You can have as many configs as you like in ... | 39.980132 | 81 | 0.653139 |
b2126a97159d27407599ac242ab5a9b0c67de92f | 481 | ex | Elixir | lib/distcount_web/views/error_helpers.ex | cabol/distcount | b0b42f66dcc130ec6e349ab8b915cfb6f5b77c7b | [
"MIT"
] | null | null | null | lib/distcount_web/views/error_helpers.ex | cabol/distcount | b0b42f66dcc130ec6e349ab8b915cfb6f5b77c7b | [
"MIT"
] | null | null | null | lib/distcount_web/views/error_helpers.ex | cabol/distcount | b0b42f66dcc130ec6e349ab8b915cfb6f5b77c7b | [
"MIT"
] | null | null | null | defmodule DistcountWeb.ErrorHelpers do
@moduledoc """
Conveniences for translating and building error messages.
"""
@doc """
Translates an error message.
"""
def translate_error({msg, opts}) do
# Because the error messages we show in our forms and APIs
# are defined inside Ecto, we need to transl... | 28.294118 | 69 | 0.673597 |
b212ceca4b0a51e6e323036fdb635e59d4df8f50 | 2,130 | ex | Elixir | apps/resource_manager/lib/credentials/schemas/public_key.ex | lcpojr/watcher_ex | bd5a9210b5b41a6c9b5d4255de19fc6967d29fb7 | [
"Apache-2.0"
] | 9 | 2020-10-13T14:11:37.000Z | 2021-08-12T18:40:08.000Z | apps/resource_manager/lib/credentials/schemas/public_key.ex | lcpojr/watcher_ex | bd5a9210b5b41a6c9b5d4255de19fc6967d29fb7 | [
"Apache-2.0"
] | 28 | 2020-10-04T14:43:48.000Z | 2021-12-07T16:54:22.000Z | apps/resource_manager/lib/credentials/schemas/public_key.ex | lcpojr/watcher_ex | bd5a9210b5b41a6c9b5d4255de19fc6967d29fb7 | [
"Apache-2.0"
] | 3 | 2020-11-25T20:59:47.000Z | 2021-08-30T10:36:58.000Z | defmodule ResourceManager.Credentials.Schemas.PublicKey do
@moduledoc """
Client application public key credentials.
"""
use ResourceManager.Schema
import Ecto.Changeset
alias ResourceManager.Identities.Schemas.ClientApplication
@typedoc """
Abstract public_key module type.
"""
@type t :: %__MOD... | 31.323529 | 85 | 0.694836 |
b212ead9b032b260481715da60f7a1b3241f6464 | 1,235 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/disk_aggregated_list.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/disk_aggregated_list.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/disk_aggregated_list.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... | 28.72093 | 87 | 0.731984 |
b212f0dac2c0b7433b2486f7caaa6f9ce2c10384 | 925 | ex | Elixir | test/support/channel_case.ex | juvet/otto | aee3b34029da0f8c232bc79e0febb5339fd3e22b | [
"MIT"
] | 1 | 2019-11-05T06:07:56.000Z | 2019-11-05T06:07:56.000Z | test/support/channel_case.ex | juvet/otto | aee3b34029da0f8c232bc79e0febb5339fd3e22b | [
"MIT"
] | 2 | 2019-01-06T18:32:53.000Z | 2019-01-06T18:47:02.000Z | test/support/channel_case.ex | juvet/otto | aee3b34029da0f8c232bc79e0febb5339fd3e22b | [
"MIT"
] | null | null | null | defmodule OttoWeb.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 interacts with ... | 24.342105 | 66 | 0.712432 |
b21312f3fa2b4f5e37966e8b31d56629718b9474 | 94 | exs | Elixir | .formatter.exs | nickolaich/formex_ecto | 322907daa4924d1c297acc7f9e60f99bc8f2f6f3 | [
"MIT"
] | 225 | 2019-07-21T14:44:17.000Z | 2022-03-31T11:08:07.000Z | .formatter.exs | nickolaich/formex_ecto | 322907daa4924d1c297acc7f9e60f99bc8f2f6f3 | [
"MIT"
] | 25 | 2017-04-09T01:01:20.000Z | 2019-04-17T01:36:01.000Z | .formatter.exs | nickolaich/formex_ecto | 322907daa4924d1c297acc7f9e60f99bc8f2f6f3 | [
"MIT"
] | 24 | 2017-04-08T22:15:06.000Z | 2021-11-15T11:55:41.000Z | [
inputs: ["{mix,.formatter}.exs", "{config,lib,test}/**/*.{ex,exs}"],
line_length: 100
]
| 18.8 | 70 | 0.56383 |
b2131adaee64849c27e00243ee3980dd0d9cf3b0 | 3,276 | ex | Elixir | clients/content/lib/google_api/content/v2/model/orders_cancel_line_item_request.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/model/orders_cancel_line_item_request.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/model/orders_cancel_line_item_request.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... | 45.5 | 259 | 0.723748 |
b2136cc0e5c253579d2fba97137d7de2189f2d39 | 599 | ex | Elixir | lib/code_corps/stripe_testing/external_account.ex | fikape/code-corps-api | c21674b0b2a19fa26945c94268db8894420ca181 | [
"MIT"
] | 275 | 2015-06-23T00:20:51.000Z | 2021-08-19T16:17:37.000Z | lib/code_corps/stripe_testing/external_account.ex | fikape/code-corps-api | c21674b0b2a19fa26945c94268db8894420ca181 | [
"MIT"
] | 1,304 | 2015-06-26T02:11:54.000Z | 2019-12-12T21:08:00.000Z | lib/code_corps/stripe_testing/external_account.ex | fikape/code-corps-api | c21674b0b2a19fa26945c94268db8894420ca181 | [
"MIT"
] | 140 | 2016-01-01T18:19:47.000Z | 2020-11-22T06:24:47.000Z | defmodule CodeCorps.StripeTesting.ExternalAccount do
def retrieve(id, _) do
{:ok, bank_account(id)}
end
defp bank_account(id) do
%Stripe.BankAccount{
id: id,
object: "bank_account",
account: "acct_1032D82eZvKYlo2C",
account_holder_name: "Jane Austen",
account_holder_type: "i... | 23.96 | 52 | 0.631052 |
b2136d197de7c2c1a9dbbb7a15acfe358a2843d9 | 1,587 | exs | Elixir | mix.exs | niklaslong/olm-ex | a666fcd9c3312676539a6cf14a08e2cf3c068a71 | [
"MIT"
] | 1 | 2020-08-17T18:07:24.000Z | 2020-08-17T18:07:24.000Z | mix.exs | niklaslong/olm-ex | a666fcd9c3312676539a6cf14a08e2cf3c068a71 | [
"MIT"
] | 11 | 2020-08-06T16:40:32.000Z | 2020-08-27T16:03:29.000Z | mix.exs | niklaslong/olm-ex | a666fcd9c3312676539a6cf14a08e2cf3c068a71 | [
"MIT"
] | 1 | 2020-08-08T21:08:22.000Z | 2020-08-08T21:08:22.000Z | defmodule Olm.MixProject do
use Mix.Project
def project do
[
app: :olm,
version: "0.1.0-rc",
elixir: "~> 1.10",
start_permanent: Mix.env() == :prod,
deps: deps(),
compilers: [:olm_nifs] ++ Mix.compilers(),
aliases: aliases(),
description: description(),
doc... | 21.16 | 94 | 0.584751 |
b21371408bf4281d01d1f8f395844914b777b2ff | 2,661 | exs | Elixir | mix.exs | frm/nostrum | a4ec80ab73d7d421347fd7a26fc107a4ec66d667 | [
"MIT"
] | null | null | null | mix.exs | frm/nostrum | a4ec80ab73d7d421347fd7a26fc107a4ec66d667 | [
"MIT"
] | null | null | null | mix.exs | frm/nostrum | a4ec80ab73d7d421347fd7a26fc107a4ec66d667 | [
"MIT"
] | null | null | null | defmodule Nostrum.Mixfile do
@moduledoc false
use Mix.Project
def project do
[
app: :nostrum,
version: "0.5.0",
elixir: "~> 1.11",
elixirc_paths: elixirc_paths(Mix.env()),
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
description: "An Elixi... | 22.361345 | 67 | 0.543405 |
b21398bee92bd9e7f921b619ab85503edf03740d | 1,322 | ex | Elixir | apps/core/lib/core/schema/access_token_audit.ex | michaeljguarino/forge | 50ee583ecb4aad5dee4ef08fce29a8eaed1a0824 | [
"Apache-2.0"
] | 59 | 2021-09-16T19:29:39.000Z | 2022-03-31T20:44:24.000Z | apps/core/lib/core/schema/access_token_audit.ex | svilenkov/plural | ac6c6cc15ac4b66a3b5e32ed4a7bee4d46d1f026 | [
"Apache-2.0"
] | 111 | 2021-08-15T09:56:37.000Z | 2022-03-31T23:59:32.000Z | apps/core/lib/core/schema/access_token_audit.ex | svilenkov/plural | ac6c6cc15ac4b66a3b5e32ed4a7bee4d46d1f026 | [
"Apache-2.0"
] | 4 | 2021-12-13T09:43:01.000Z | 2022-03-29T18:08:44.000Z | defmodule Core.Schema.AccessTokenAudit do
use Piazza.Ecto.Schema
alias Core.Schema.PersistedToken
schema "access_token_audits" do
field :ip, :string
field :timestamp, :utc_datetime_usec
field :count, :integer, default: 0
field :country, :string
field :city, :string
field... | 26.979592 | 106 | 0.665658 |
b2139b7e360dcffbbb84e7c284337d70d1e5b7f5 | 1,902 | exs | Elixir | test/harald/hci_test.exs | RicardoTrindade/harald | 3f56003265c29af0780730eb538183b50e55df2f | [
"MIT"
] | 59 | 2019-02-16T00:09:58.000Z | 2020-03-29T23:37:36.000Z | test/harald/hci_test.exs | RicardoTrindade/harald | 3f56003265c29af0780730eb538183b50e55df2f | [
"MIT"
] | 19 | 2019-02-15T22:41:43.000Z | 2020-02-15T19:20:57.000Z | test/harald/hci_test.exs | RicardoTrindade/harald | 3f56003265c29af0780730eb538183b50e55df2f | [
"MIT"
] | 9 | 2020-05-07T00:02:36.000Z | 2021-09-17T18:17:46.000Z | defmodule Harald.HCITest do
# use ExUnit.Case, async: true
# use ExUnitProperties
# alias Harald.Generators.HCI, as: HCIGen
# alias Harald.{HCI, HCI.Packet}
# require Harald.Serializable, as: Serializable
# doctest Harald.HCI, import: true
# test "opcode/2" do
# check all ogf <- StreamData.integer(0... | 31.180328 | 94 | 0.572555 |
b213a4871847c0fdb3792996600dcaac7cadbd3b | 1,691 | ex | Elixir | lib/todo/list.ex | lexnapoles/todo-list-elixir | fa68fdd77b3e90950374af9a5ced8f200365e63d | [
"MIT"
] | null | null | null | lib/todo/list.ex | lexnapoles/todo-list-elixir | fa68fdd77b3e90950374af9a5ced8f200365e63d | [
"MIT"
] | null | null | null | lib/todo/list.ex | lexnapoles/todo-list-elixir | fa68fdd77b3e90950374af9a5ced8f200365e63d | [
"MIT"
] | null | null | null | defmodule Todo.List do
defstruct auto_id: 1, entries: %{}
defimpl String.Chars do
def to_string(_) do
"#Todo.List"
end
end
defimpl Collectable do
def into(original) do
{original, &into_callback/2}
end
defp into_callback(todo_list, {:cont, entry}) do
Todo.List.add_entry(t... | 26.84127 | 91 | 0.671792 |
b213e538e67b36bdec288f9f5bf92624abc37dd1 | 1,570 | ex | Elixir | apps/game_server/lib/game_server/pong/pong_active_games.ex | powelli13/dara-dots | 728a622e761867ff114c9dbdbf57ff76ab0fb992 | [
"MIT"
] | 6 | 2021-03-25T21:02:28.000Z | 2022-02-10T08:11:28.000Z | apps/game_server/lib/game_server/pong/pong_active_games.ex | powelli13/dara-dots | 728a622e761867ff114c9dbdbf57ff76ab0fb992 | [
"MIT"
] | 20 | 2020-09-02T23:17:29.000Z | 2022-03-27T22:54:20.000Z | apps/game_server/lib/game_server/pong/pong_active_games.ex | powelli13/dara-dots | 728a622e761867ff114c9dbdbf57ff76ab0fb992 | [
"MIT"
] | 2 | 2021-03-25T21:08:15.000Z | 2021-09-25T19:11:36.000Z | defmodule GameServer.PongActiveGames do
use GenServer
alias GameServer.PongGame
@moduledoc """
Keeps track of the active Pong Games to display them in the
lobby so that other players can view the game.
"""
# TODO could we use presence for this?
def add_active_game(game_id) do
GenServer.cast(__MODUL... | 24.153846 | 72 | 0.663057 |
b213eca3d87eb363134ba7a61c47d3467375fd47 | 729 | ex | Elixir | lib/game_web/live/game/components/grid_component.ex | drewfravert/2048 | cbe6b75635f7d2713277c3c60fb5147e256e73e3 | [
"MIT"
] | null | null | null | lib/game_web/live/game/components/grid_component.ex | drewfravert/2048 | cbe6b75635f7d2713277c3c60fb5147e256e73e3 | [
"MIT"
] | 1 | 2021-10-18T21:44:37.000Z | 2021-10-18T21:44:37.000Z | lib/game_web/live/game/components/grid_component.ex | drewfravert/2048 | cbe6b75635f7d2713277c3c60fb5147e256e73e3 | [
"MIT"
] | null | null | null | defmodule GridComponent do
@moduledoc false
use Phoenix.LiveComponent
alias Game.Manager
def handle_event("move", %{"key" => "ArrowUp"}, socket) do
Manager.move(:up)
{:noreply, socket}
end
def handle_event("move", %{"key" => "ArrowDown"}, socket) do
Manager.move(:down)
{:noreply, socket... | 18.692308 | 63 | 0.63786 |
b2142bd68addc70774257028501f5e7aa0d88d47 | 18,969 | ex | Elixir | clients/content/lib/google_api/content/v21/api/pos.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v21/api/pos.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v21/api/pos.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... | 42.059867 | 187 | 0.622173 |
b2142e380b213451a2a6bb451db5d9612cb56e3d | 189 | exs | Elixir | config/config.exs | tyrchen/ex_bitcoin | f399a3d2bd27fac0a4ba5e91379d5492ab94292a | [
"MIT"
] | 1 | 2018-03-22T15:24:37.000Z | 2018-03-22T15:24:37.000Z | config/config.exs | tyrchen/ex_bitcoin | f399a3d2bd27fac0a4ba5e91379d5492ab94292a | [
"MIT"
] | 26 | 2018-07-22T01:10:59.000Z | 2019-10-20T08:43:10.000Z | config/config.exs | tyrchen/ex_bitcoin | f399a3d2bd27fac0a4ba5e91379d5492ab94292a | [
"MIT"
] | null | null | null | use Mix.Config
config :ex_bitcoin,
conn: %{
hostname: "localhost",
port: 8332,
user: System.get_env("BITCOIN_RPC_USER"),
password: System.get_env("BITCOIN_RPC_PASS")
}
| 18.9 | 48 | 0.671958 |
b21434864a35905916ac0ede0d63fd9cfda17687 | 556 | exs | Elixir | examples/elixir/get_started/01-worker.exs | MichalDolata/ockam | 99046a3efe87fb45056a724dddbff288cb63ddfc | [
"Apache-2.0"
] | null | null | null | examples/elixir/get_started/01-worker.exs | MichalDolata/ockam | 99046a3efe87fb45056a724dddbff288cb63ddfc | [
"Apache-2.0"
] | null | null | null | examples/elixir/get_started/01-worker.exs | MichalDolata/ockam | 99046a3efe87fb45056a724dddbff288cb63ddfc | [
"Apache-2.0"
] | null | null | null | ["install.exs", "echoer.exs"] |> Enum.map(&Code.require_file/1)
# Create a Echoer type worker at address "echoer".
{:ok, _echoer} = Echoer.create(address: "echoer")
# Register this process as address "app".
Ockam.Node.register_address("app", self())
# Prepare our message.
message = %{onward_route: ["echoer"], return... | 29.263158 | 85 | 0.705036 |
b2143a92980a4b57ac5c8b36bac68c62da3469b7 | 1,051 | exs | Elixir | config/config.exs | da99/megauni.alpha | 65e402cc139e45f043e67a9384caf77d1fcbe5b7 | [
"MIT"
] | null | null | null | config/config.exs | da99/megauni.alpha | 65e402cc139e45f043e67a9384caf77d1fcbe5b7 | [
"MIT"
] | null | null | null | config/config.exs | da99/megauni.alpha | 65e402cc139e45f043e67a9384caf77d1fcbe5b7 | [
"MIT"
] | null | null | null |
use Mix.Config
is_dev = System.get_env("IS_DEV")
config :comeonin, :bcrypt_log_rounds, (is_dev && 4) || 13
config :megauni, :port, ((System.get_env("PORT") || "4567") |> String.to_integer)
config :megauni, :session_secret_base, System.get_env("SESSION_SECRET") || raise("SESSION_S... | 38.925926 | 113 | 0.664129 |
b21480440b7053d855dd56ea4d0a2d3dcd531366 | 518 | exs | Elixir | priv/repo/migrations/20170517195903_create_user_followers_table.exs | codefordenver/new-code-for-denver-site | af6cc232c898a197601b4d37e0cd217d0503fd9b | [
"MIT"
] | 1 | 2019-09-28T05:50:46.000Z | 2019-09-28T05:50:46.000Z | priv/repo/migrations/20170517195903_create_user_followers_table.exs | codefordenver/new-code-for-denver-site | af6cc232c898a197601b4d37e0cd217d0503fd9b | [
"MIT"
] | null | null | null | priv/repo/migrations/20170517195903_create_user_followers_table.exs | codefordenver/new-code-for-denver-site | af6cc232c898a197601b4d37e0cd217d0503fd9b | [
"MIT"
] | null | null | null | defmodule RealWorld.Repo.Migrations.CreateUserFollowersTable do
@moduledoc false
use Ecto.Migration
def change do
create table(:user_followers, primary_key: false) do
add :user_id, references(:users), primary_key: true
add :follower_id, references(:users), primary_key: true
timestamps(upda... | 30.470588 | 68 | 0.72973 |
b21482db2b73177aefea1291712f1e0cb669fc88 | 3,221 | ex | Elixir | lib/toniq/keepalive_persistence.ex | itskoko/toniq | 1f96db00556bfac4a929c98fd7f9044906879492 | [
"MIT",
"Unlicense"
] | null | null | null | lib/toniq/keepalive_persistence.ex | itskoko/toniq | 1f96db00556bfac4a929c98fd7f9044906879492 | [
"MIT",
"Unlicense"
] | null | null | null | lib/toniq/keepalive_persistence.ex | itskoko/toniq | 1f96db00556bfac4a929c98fd7f9044906879492 | [
"MIT",
"Unlicense"
] | 3 | 2021-04-07T14:59:09.000Z | 2021-04-07T14:59:21.000Z | defmodule Toniq.KeepalivePersistence do
def register_vm(identifier) do
redis_query(["SADD", registered_vms_key(), identifier])
end
def update_alive_key(identifier, keepalive_expiration) do
# Logger.log(:debug, "Updating keepalive for #{state.identifier} #{inspect(debug_info)}")
redis_query(["PSETEX",... | 27.29661 | 117 | 0.676188 |
b2149161e8f1b5cee824270472cd6b0bfee49de3 | 177 | exs | Elixir | apps/day13/test/day13_test.exs | jwarwick/aoc_2019 | 04229b86829b72323498b57a6649fcc6f7c96406 | [
"MIT"
] | 2 | 2019-12-21T21:21:04.000Z | 2019-12-27T07:00:19.000Z | apps/day13/test/day13_test.exs | jwarwick/aoc_2019 | 04229b86829b72323498b57a6649fcc6f7c96406 | [
"MIT"
] | null | null | null | apps/day13/test/day13_test.exs | jwarwick/aoc_2019 | 04229b86829b72323498b57a6649fcc6f7c96406 | [
"MIT"
] | null | null | null | defmodule Day13Test do
use ExUnit.Case
doctest Day13
test "part1" do
assert Day13.part1() == 260
end
test "part2" do
assert Day13.part2() == 12952
end
end
| 13.615385 | 33 | 0.655367 |
b214986b2f9918ccbc49a694bc79d15c066e63b1 | 1,043 | ex | Elixir | lib/inmana_web/router.ex | marciorasf/next-level-week-5-Elixir | 5af63fcf04202111db22209f61928772dbb167ad | [
"MIT"
] | 14 | 2021-04-26T14:19:28.000Z | 2021-09-12T03:29:42.000Z | lib/inmana_web/router.ex | marciorasf/next-level-week-5-Elixir | 5af63fcf04202111db22209f61928772dbb167ad | [
"MIT"
] | null | null | null | lib/inmana_web/router.ex | marciorasf/next-level-week-5-Elixir | 5af63fcf04202111db22209f61928772dbb167ad | [
"MIT"
] | 6 | 2021-04-27T12:41:16.000Z | 2021-07-02T04:11:53.000Z | defmodule InmanaWeb.Router do
use InmanaWeb, :router
pipeline :api do
plug :accepts, ["json"]
end
scope "/api", InmanaWeb do
pipe_through :api
get "/", WelcomeController, :index
post "/restaurants", RestaurantsController, :create
resources "/supplies", SuppliesController, only: [:create... | 27.447368 | 70 | 0.706616 |
b214ca364f84da8166dd61339de48d8d7ab621dc | 529 | ex | Elixir | lib/consul/handler/behaviour.ex | kiopro/exconsul | a74843ab06e5211380ce1847957b6ed42c1d7941 | [
"MIT"
] | 3 | 2018-07-11T08:20:22.000Z | 2018-07-21T23:33:44.000Z | lib/consul/handler/behaviour.ex | kiopro/exconsul | a74843ab06e5211380ce1847957b6ed42c1d7941 | [
"MIT"
] | null | null | null | lib/consul/handler/behaviour.ex | kiopro/exconsul | a74843ab06e5211380ce1847957b6ed42c1d7941 | [
"MIT"
] | null | null | null | #
# The MIT License (MIT)
#
# Copyright (c) 2014-2015 Undead Labs, LLC
#
defmodule Consul.Handler.Behaviour do
@callback handle(Consul.Response.t) :: Consul.Endpoint.response
defmacro __using__(_) do
quote do
@behaviour unquote(__MODULE__)
@spec handle(Consul.Response.t) :: Consul.Endpoint.respo... | 19.592593 | 65 | 0.646503 |
b21556a0bc10ce524f829988265e7c138acc84da | 462 | exs | Elixir | test/models/comment_test.exs | Angarsk8/microscope.ex | dc4572ba8b9f1c7b7c94ee78f387e332ac0d936c | [
"MIT"
] | 342 | 2017-01-10T16:13:45.000Z | 2022-02-26T13:55:38.000Z | test/models/comment_test.exs | Angarsk8/microscope.ex | dc4572ba8b9f1c7b7c94ee78f387e332ac0d936c | [
"MIT"
] | 6 | 2017-01-14T17:59:48.000Z | 2018-03-25T21:35:50.000Z | test/models/comment_test.exs | Angarsk8/microscope.ex | dc4572ba8b9f1c7b7c94ee78f387e332ac0d936c | [
"MIT"
] | 38 | 2017-01-11T00:18:21.000Z | 2021-07-11T11:28:12.000Z | defmodule Microscope.CommentTest do
use Microscope.ModelCase
alias Microscope.Comment
@valid_attrs %{author: "some content", body: "some content"}
@invalid_attrs %{}
test "changeset with valid attributes" do
changeset = Comment.changeset(%Comment{}, @valid_attrs)
assert changeset.valid?
end
te... | 24.315789 | 62 | 0.733766 |
b21574d2d0b12f695198acd05abe598927c90368 | 938 | ex | Elixir | lib/hey_cake/application.ex | rozerosie/heycake | d080531705c0402fa53696d02307d6c08d25a60a | [
"MIT"
] | 1 | 2020-06-03T07:45:17.000Z | 2020-06-03T07:45:17.000Z | lib/hey_cake/application.ex | rozerosie/heycake | d080531705c0402fa53696d02307d6c08d25a60a | [
"MIT"
] | 6 | 2021-06-17T23:13:19.000Z | 2021-08-31T21:15:21.000Z | lib/hey_cake/application.ex | rozerosie/heycake | d080531705c0402fa53696d02307d6c08d25a60a | [
"MIT"
] | 2 | 2020-06-03T22:08:06.000Z | 2022-03-11T22:13:36.000Z | defmodule HeyCake.Application do
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
use Application
alias HeyCake.Config
def start(_type, _args) do
config = Config.application()
Application.put_env(:ueberauth, Ueberauth.Strategy.Slack.OAu... | 24.684211 | 67 | 0.706823 |
b215a2866f24de28f001c9b8cc15843f011eb529 | 3,329 | exs | Elixir | test/phoenix/router/forward_test.exs | scrogson/phoenix | e5745b9360fa1163246eb507490f1ce760cc0219 | [
"MIT"
] | null | null | null | test/phoenix/router/forward_test.exs | scrogson/phoenix | e5745b9360fa1163246eb507490f1ce760cc0219 | [
"MIT"
] | null | null | null | test/phoenix/router/forward_test.exs | scrogson/phoenix | e5745b9360fa1163246eb507490f1ce760cc0219 | [
"MIT"
] | null | null | null | defmodule Phoenix.Router.ForwardTest do
use ExUnit.Case, async: true
use RouterHelper
defmodule Controller do
use Phoenix.Controller
plug :assign_fwd_script
def index(conn, _params), do: text(conn, "admin index")
def stats(conn, _params), do: text(conn, "stats")
def api_users(conn, _params)... | 27.741667 | 108 | 0.645239 |
b215a403e95e06cceccba5fbdee9a9a881fcf2fa | 2,281 | ex | Elixir | clients/analytics_reporting/lib/google_api/analytics_reporting/v4/model/get_reports_response.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/analytics_reporting/lib/google_api/analytics_reporting/v4/model/get_reports_response.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/analytics_reporting/lib/google_api/analytics_reporting/v4/model/get_reports_response.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... | 40.017544 | 184 | 0.746164 |
b215b4de268a0f3bff8fbfb3491d9ecca38f201c | 59 | ex | Elixir | lib/tnd/games/game_membership.ex | tndrpg/tnd | a9a348ed7ce2f3d8f55046559f9551e2607f3236 | [
"0BSD"
] | null | null | null | lib/tnd/games/game_membership.ex | tndrpg/tnd | a9a348ed7ce2f3d8f55046559f9551e2607f3236 | [
"0BSD"
] | 1 | 2021-05-11T14:31:58.000Z | 2021-05-11T14:31:58.000Z | lib/tnd/games/game_membership.ex | tndrpg/tnd | a9a348ed7ce2f3d8f55046559f9551e2607f3236 | [
"0BSD"
] | null | null | null | defmodule Tnd.Games.GameMembership do
use Tnd.Schema
end
| 14.75 | 37 | 0.813559 |
b215dcb98499d67b5855ed37b35aa8158b8fe9ae | 274 | exs | Elixir | test/test_helper.exs | kipcole9/packed_decimal | 0831d4702191f9d249c724c1bac73744237636f3 | [
"Apache-2.0"
] | 384 | 2015-01-01T00:17:35.000Z | 2022-02-23T02:24:42.000Z | test/test_helper.exs | kipcole9/packed_decimal | 0831d4702191f9d249c724c1bac73744237636f3 | [
"Apache-2.0"
] | 133 | 2015-06-03T18:12:49.000Z | 2022-02-16T08:31:05.000Z | test/test_helper.exs | kipcole9/packed_decimal | 0831d4702191f9d249c724c1bac73744237636f3 | [
"Apache-2.0"
] | 120 | 2015-03-07T05:30:54.000Z | 2022-03-19T17:15:38.000Z | ExUnit.start()
defmodule TestMacros do
defmacro d(sign, coef, exp) do
quote do
%Decimal{sign: unquote(sign), coef: unquote(coef), exp: unquote(exp)}
end
end
defmacro sigil_d(str, _opts) do
quote do
Decimal.new(unquote(str))
end
end
end
| 17.125 | 75 | 0.649635 |
b215eed280ad4af0c62ea8eb6710e24eb92998c6 | 245 | exs | Elixir | apps/alert_processor/priv/repo/migrations/20190610143559_update_admin_flag_name.exs | mbta/alerts_concierge | d8e643445ef06f80ca273f2914c6959daea146f6 | [
"MIT"
] | null | null | null | apps/alert_processor/priv/repo/migrations/20190610143559_update_admin_flag_name.exs | mbta/alerts_concierge | d8e643445ef06f80ca273f2914c6959daea146f6 | [
"MIT"
] | 21 | 2021-03-12T17:05:30.000Z | 2022-02-16T21:48:35.000Z | apps/alert_processor/priv/repo/migrations/20190610143559_update_admin_flag_name.exs | mbta/alerts_concierge | d8e643445ef06f80ca273f2914c6959daea146f6 | [
"MIT"
] | 1 | 2021-12-09T15:09:53.000Z | 2021-12-09T15:09:53.000Z | defmodule AlertProcessor.Repo.Migrations.UpdateAdminFlagName do
use Ecto.Migration
def up do
rename(table(:subscriptions), :admin?, to: :is_admin)
end
def down do
rename(table(:subscriptions), :is_admin, to: :admin?)
end
end
| 20.416667 | 63 | 0.722449 |
b2160d13024ce25a62a0f8228b1c223a836feb40 | 1,037 | exs | Elixir | priv/seeds.exs | corybuecker/exlytics | b6bffc682954755d0f2e56c2562bf5654d129e67 | [
"Apache-2.0"
] | null | null | null | priv/seeds.exs | corybuecker/exlytics | b6bffc682954755d0f2e56c2562bf5654d129e67 | [
"Apache-2.0"
] | 27 | 2020-06-11T08:58:48.000Z | 2022-02-28T23:31:13.000Z | priv/seeds.exs | corybuecker/exlytics | b6bffc682954755d0f2e56c2562bf5654d129e67 | [
"Apache-2.0"
] | null | null | null | user_agents = [
"Mozilla/5.0 (Windows NT 6.1) AppleWebKit/534.24 (KHTML, like Gecko) Chrome/12.0.702.0 Safari/534.24",
"Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.0; Trident/5.0; chromeframe/11.0.696.57)",
"Opera/9.80 (X11; Linux i686; U; it) Presto/2.7.62 Version/11.00"
]
pages = [
"/test",
"/test_2",
... | 30.5 | 104 | 0.612343 |
b216184f7eeba87c2914648630f50616b8f96be7 | 3,658 | ex | Elixir | clients/data_catalog/lib/google_api/data_catalog/v1/model/google_cloud_datacatalog_v1_search_catalog_request_scope.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/data_catalog/lib/google_api/data_catalog/v1/model/google_cloud_datacatalog_v1_search_catalog_request_scope.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/data_catalog/lib/google_api/data_catalog/v1/model/google_cloud_datacatalog_v1_search_catalog_request_scope.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"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... | 54.597015 | 553 | 0.738382 |
b2161f4b404ec9882bccdd93cd287294f2e1dd2f | 18,389 | ex | Elixir | clients/street_view_publish/lib/google_api/street_view_publish/v1/api/photo.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/street_view_publish/lib/google_api/street_view_publish/v1/api/photo.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/street_view_publish/lib/google_api/street_view_publish/v1/api/photo.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 ... | 44.742092 | 196 | 0.644407 |
b216215ebfc06962cd409ded505e622a7dc8f001 | 3,342 | ex | Elixir | lib/task_bunny/job_error.ex | sviik/task_bunny | 373836828289107b8ed917bd7dc5aeb5428af335 | [
"MIT"
] | 207 | 2017-02-03T12:23:24.000Z | 2022-03-22T17:03:23.000Z | lib/task_bunny/job_error.ex | sviik/task_bunny | 373836828289107b8ed917bd7dc5aeb5428af335 | [
"MIT"
] | 55 | 2020-05-12T05:18:41.000Z | 2022-03-24T04:04:17.000Z | lib/task_bunny/job_error.ex | sviik/task_bunny | 373836828289107b8ed917bd7dc5aeb5428af335 | [
"MIT"
] | 33 | 2017-02-06T08:16:37.000Z | 2021-09-13T00:38:16.000Z | defmodule TaskBunny.JobError do
@moduledoc """
A struct that holds an error information occured during the job processing.
## Attributes
- job: the job module failed
- payload: the payload(arguments) for the job execution
- error_type: the type of the error. :exception, :return_value, :timeout or :exit
... | 27.393443 | 94 | 0.611311 |
b21628fe81e6429d9a44d002b7ab4388233991d7 | 6,318 | ex | Elixir | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v14/model/publisher_profile_api_proto.ex | jechol/elixir-google-api | 0290b683dfc6491ca2ef755a80bc329378738d03 | [
"Apache-2.0"
] | null | null | null | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v14/model/publisher_profile_api_proto.ex | jechol/elixir-google-api | 0290b683dfc6491ca2ef755a80bc329378738d03 | [
"Apache-2.0"
] | null | null | null | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v14/model/publisher_profile_api_proto.ex | jechol/elixir-google-api | 0290b683dfc6491ca2ef755a80bc329378738d03 | [
"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.214876 | 205 | 0.676322 |
b2162f80347ae3435ded3b35659a7ef0525c20fc | 1,521 | ex | Elixir | clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/v1_beta1_refresh_consumer_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/v1_beta1_refresh_consumer_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/v1_beta1_refresh_consumer_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 32.361702 | 165 | 0.773176 |
b216432d6874be56d910f708faffeecf21d0878a | 2,005 | ex | Elixir | lib/webengine_kiosk/options.ex | elcritch/webengine_kiosk | 010d53ec78961dd6ab0a145fb1ff97d055e603b4 | [
"Apache-2.0"
] | null | null | null | lib/webengine_kiosk/options.ex | elcritch/webengine_kiosk | 010d53ec78961dd6ab0a145fb1ff97d055e603b4 | [
"Apache-2.0"
] | null | null | null | lib/webengine_kiosk/options.ex | elcritch/webengine_kiosk | 010d53ec78961dd6ab0a145fb1ff97d055e603b4 | [
"Apache-2.0"
] | null | null | null | defmodule WebengineKiosk.Options do
@moduledoc """
Options commented out currently don't work with QML based view
"""
@system_options [
:data_dir,
:platform_udev,
:platform_shared_memory,
:platform_cache_dir
]
@kiosk_options [
:clear_cache,
:data_dir,
:homepage,
:monitor,... | 20.885417 | 83 | 0.629925 |
b2166fd19cfaeab856d223d5773c00cd1af4d77f | 31,228 | ex | Elixir | lib/elixir/lib/inspect/algebra.ex | BlakeWilliams/elixir | f77cc2657cf981fdf819915f1ee15e69c3cd91ad | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/inspect/algebra.ex | BlakeWilliams/elixir | f77cc2657cf981fdf819915f1ee15e69c3cd91ad | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/inspect/algebra.ex | BlakeWilliams/elixir | f77cc2657cf981fdf819915f1ee15e69c3cd91ad | [
"Apache-2.0"
] | null | null | null | defmodule Inspect.Opts do
@moduledoc """
Defines the Inspect.Opts used by the Inspect protocol.
The following fields are available:
* `:structs` - when `false`, structs are not formatted by the inspect
protocol, they are instead printed as maps, defaults to `true`.
* `:binaries` - when `:as_strin... | 32.733753 | 98 | 0.620661 |
b2168a9ab2763307fb0b729210d196bfc1dd4d8c | 1,339 | exs | Elixir | fw/phoenix/hello_phoenix/config/dev.exs | alexgarzao/learning_elixir | f1b06f26898be35803591245d033d30dd4bd1e1a | [
"MIT"
] | null | null | null | fw/phoenix/hello_phoenix/config/dev.exs | alexgarzao/learning_elixir | f1b06f26898be35803591245d033d30dd4bd1e1a | [
"MIT"
] | 4 | 2020-08-25T13:48:31.000Z | 2021-09-01T12:56:54.000Z | fw/phoenix/hello_phoenix/config/dev.exs | alexgarzao/learning_elixir | f1b06f26898be35803591245d033d30dd4bd1e1a | [
"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 :hello_phoenix, HelloPhoenix.Endpoint,
http: [... | 30.431818 | 73 | 0.702763 |
b21697e939ebe29a07b7b30f2ba59b71e05b7560 | 1,689 | ex | Elixir | clients/dataproc/lib/google_api/dataproc/v1/model/test_iam_permissions_request.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/dataproc/lib/google_api/dataproc/v1/model/test_iam_permissions_request.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/dataproc/lib/google_api/dataproc/v1/model/test_iam_permissions_request.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 35.93617 | 285 | 0.74778 |
b216a2e618fd63bae70c88879f5cba33cda7e304 | 36,717 | ex | Elixir | clients/you_tube/lib/google_api/you_tube/v3/api/live_broadcasts.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/you_tube/lib/google_api/you_tube/v3/api/live_broadcasts.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/you_tube/lib/google_api/you_tube/v3/api/live_broadcasts.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 ... | 74.780041 | 624 | 0.718686 |
b216a634c9949b918881fa1c4d84916845eeb438 | 4,915 | ex | Elixir | lib/def_unit.ex | robinhilliard/units | 5b476e2baf115f02bb8f31f3bea40911e708579d | [
"Apache-2.0"
] | 7 | 2016-08-31T22:44:09.000Z | 2017-06-30T02:16:16.000Z | lib/def_unit.ex | robinhilliard/units | 5b476e2baf115f02bb8f31f3bea40911e708579d | [
"Apache-2.0"
] | 1 | 2016-09-03T10:22:08.000Z | 2016-09-03T10:49:28.000Z | lib/def_unit.ex | robinhilliard/units | 5b476e2baf115f02bb8f31f3bea40911e708579d | [
"Apache-2.0"
] | null | null | null | defmodule DefUnit do
@moduledoc """
DefUnit defines macros used to create type specs and documentation
when working with a "core" set of measurement units, and also defines
operators to convert them to and from other units.
## Example
```
use DefUnit
@doc_to_operator "to SI"
@doc_from_operato... | 32.335526 | 118 | 0.587589 |
b216a73a993ef45465698901599b7f8468dec004 | 957 | ex | Elixir | lib/makeup/styles/html/pygments/bw.ex | kipcole9/makeup | dff1bd2e3d6b2938138ebaea5771821bf7c4e45a | [
"BSD-2-Clause"
] | 13 | 2018-09-19T21:03:29.000Z | 2022-01-27T04:06:32.000Z | deps/makeup/lib/makeup/styles/html/pygments/bw.ex | mwindholtz/limbo | 84da57c72ddb2f1dd78bf2992410268c5ad1b2d4 | [
"Apache-2.0"
] | 1 | 2020-05-26T04:16:57.000Z | 2020-05-26T04:16:57.000Z | deps/makeup/lib/makeup/styles/html/pygments/bw.ex | mwindholtz/limbo | 84da57c72ddb2f1dd78bf2992410268c5ad1b2d4 | [
"Apache-2.0"
] | 3 | 2020-05-21T04:32:08.000Z | 2021-07-28T05:14:01.000Z |
defmodule Makeup.Styles.HTML.BlackWhiteStyle do
@moduledoc false
@styles %{
:error => "border:#FF0000",
:keyword => "bold",
:keyword_pseudo => "nobold",
:keyword_type => "nobold",
:name_class => "bold",
:name_entity => "bold",
:name_exception => "bold",
:name_namespace => "bold",
... | 23.341463 | 47 | 0.598746 |
b216b0d7ef65576b27a8ff7136520a492778eb07 | 4,208 | exs | Elixir | test/live_component_test.exs | jprincipe/surface | 011ff48401f6b3659f03fbd6a92e7028b0173547 | [
"MIT"
] | null | null | null | test/live_component_test.exs | jprincipe/surface | 011ff48401f6b3659f03fbd6a92e7028b0173547 | [
"MIT"
] | null | null | null | test/live_component_test.exs | jprincipe/surface | 011ff48401f6b3659f03fbd6a92e7028b0173547 | [
"MIT"
] | null | null | null | defmodule LiveComponentTest do
use ExUnit.Case, async: true
import Phoenix.ConnTest
import Phoenix.LiveViewTest
import ComponentTestHelper
@endpoint Endpoint
defmodule StatelessComponent do
use Surface.Component
prop label, :string
def render(assigns) do
~H"""
<div phx-click="cl... | 21.916667 | 87 | 0.593869 |
b216bbe089c8ed946ef89a50c2d30e311bbc2eb9 | 2,452 | ex | Elixir | clients/android_enterprise/lib/google_api/android_enterprise/v1/model/service_account_key.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | null | null | null | clients/android_enterprise/lib/google_api/android_enterprise/v1/model/service_account_key.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | null | null | null | clients/android_enterprise/lib/google_api/android_enterprise/v1/model/service_account_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... | 40.866667 | 273 | 0.729608 |
b216c8c81a3e2ab64084570effc00a6f2d89565e | 4,727 | exs | Elixir | test/surface_bulma/icon_test.exs | justin-m-morgan/surface_bulma | c31faebc818c39d06250574b913096504bd6eeec | [
"MIT"
] | 30 | 2021-02-05T18:50:38.000Z | 2022-03-12T22:42:29.000Z | test/surface_bulma/icon_test.exs | justin-m-morgan/surface_bulma | c31faebc818c39d06250574b913096504bd6eeec | [
"MIT"
] | 19 | 2021-01-15T19:14:24.000Z | 2022-02-05T14:57:18.000Z | test/surface_bulma/icon_test.exs | justin-m-morgan/surface_bulma | c31faebc818c39d06250574b913096504bd6eeec | [
"MIT"
] | 17 | 2021-02-01T20:57:51.000Z | 2022-03-20T17:06:57.000Z | defmodule Surface.Components.IconTest do
use SurfaceBulma.ConnCase, async: true
alias SurfaceBulma.Icon.FontAwesome, as: FA
alias SurfaceBulma.Icon.FontAwesome.{Layers, TextLayer, CounterLayer, TextIcon, TextIconText}
test "basic icon usage" do
html =
render_surface do
~F"""
<FA icon... | 23.994924 | 108 | 0.444468 |
b217179e25563d90dfdb16f2abac56651b49ce99 | 156 | exs | Elixir | tests/request_logger/test/request_logger_test.exs | Webtrekk/Webtrekk-Smart-Pixel | 8ac5e5132d600ccd486573f88be84908b614530b | [
"MIT"
] | 6 | 2019-05-10T00:01:17.000Z | 2022-03-03T12:52:51.000Z | tests/request_logger/test/request_logger_test.exs | Webtrekk/Webtrekk-Smart-Pixel | 8ac5e5132d600ccd486573f88be84908b614530b | [
"MIT"
] | 4 | 2020-01-20T13:19:30.000Z | 2021-10-15T07:46:59.000Z | tests/request_logger/test/request_logger_test.exs | Webtrekk/Webtrekk-Smart-Pixel | 8ac5e5132d600ccd486573f88be84908b614530b | [
"MIT"
] | 2 | 2020-05-02T15:59:43.000Z | 2020-10-21T09:00:38.000Z | defmodule RequestLoggerTest do
use ExUnit.Case
doctest RequestLogger
test "greets the world" do
assert RequestLogger.hello() == :world
end
end
| 17.333333 | 42 | 0.74359 |
b2171fcf8631ff4c3432dc9f659472905d94ae51 | 749 | ex | Elixir | chapter1/module02/challenges/report_generator/lib/parser.ex | mCodex/rocketseat-ignite-elixir | bdb48db778c36b2325c75a41b4d6f7ef77b03cf5 | [
"MIT"
] | 1 | 2021-07-23T19:48:27.000Z | 2021-07-23T19:48:27.000Z | chapter1/module02/challenges/report_generator/lib/parser.ex | mCodex/rocketseat-ignite-elixir | bdb48db778c36b2325c75a41b4d6f7ef77b03cf5 | [
"MIT"
] | null | null | null | chapter1/module02/challenges/report_generator/lib/parser.ex | mCodex/rocketseat-ignite-elixir | bdb48db778c36b2325c75a41b4d6f7ef77b03cf5 | [
"MIT"
] | null | null | null | defmodule ReportGenerator.Parser do
@months %{
"1" => "janeiro",
"2" => "fevereiro",
"3" => "março",
"4" => "abril",
"5" => "maio",
"6" => "junho",
"7" => "julho",
"8" => "agosto",
"9" => "setembro",
"10" => "outubro",
"11" => "novembro",
"12" => "dezembro"
}
def p... | 20.805556 | 47 | 0.514019 |
b21744557e59e55290447039148ae964a82dcb24 | 1,267 | ex | Elixir | apps/tai/lib/tai/test_support/mocks/responses/orders/error.ex | yurikoval/tai | 94254b45d22fa0307b01577ff7c629c7280c0295 | [
"MIT"
] | null | null | null | apps/tai/lib/tai/test_support/mocks/responses/orders/error.ex | yurikoval/tai | 94254b45d22fa0307b01577ff7c629c7280c0295 | [
"MIT"
] | 78 | 2020-10-12T06:21:43.000Z | 2022-03-28T09:02:00.000Z | apps/tai/lib/tai/test_support/mocks/responses/orders/error.ex | yurikoval/tai | 94254b45d22fa0307b01577ff7c629c7280c0295 | [
"MIT"
] | null | null | null | defmodule Tai.TestSupport.Mocks.Responses.Orders.Error do
alias Tai.TestSupport.Mocks
@type buy_limit :: Tai.Orders.Submissions.BuyLimitGtc.t()
@type sell_limit :: Tai.Orders.Submissions.SellLimitGtc.t()
@type submission :: buy_limit | sell_limit
@type venue_order_id :: Tai.Orders.Order.venue_order_id()
@t... | 30.902439 | 75 | 0.704815 |
b217692485f6b7de5d2cd73b01f53766d05683b9 | 2,614 | exs | Elixir | test/brando/plugs/live_preview_test.exs | brandocms/brando | 4198e0c0920031bd909969055064e4e2b7230d21 | [
"MIT"
] | 4 | 2020-10-30T08:40:38.000Z | 2022-01-07T22:21:37.000Z | test/brando/plugs/live_preview_test.exs | brandocms/brando | 4198e0c0920031bd909969055064e4e2b7230d21 | [
"MIT"
] | 1,162 | 2020-07-05T11:20:15.000Z | 2022-03-31T06:01:49.000Z | test/brando/plugs/live_preview_test.exs | brandocms/brando | 4198e0c0920031bd909969055064e4e2b7230d21 | [
"MIT"
] | null | null | null | defmodule Brando.Plug.LivePreviewTest do
use ExUnit.Case
use Brando.ConnCase
import ExUnit.CaptureLog
alias Brando.Plug.LivePreview
alias Brando.Factory
setup do
opts =
Plug.Parsers.init(
parsers: [:urlencoded, {:multipart, length: 100_000_000}, :json],
pass: ["*/*"],
js... | 28.107527 | 161 | 0.617827 |
b21781b3a28d033fa7efafa95c7fb54dc599ada1 | 1,510 | ex | Elixir | lib/gatekeeper/system_state.ex | samfrench/gatekeeper | 6286ed16360e0d538e7f4c802a866b2cd83d5514 | [
"MIT"
] | null | null | null | lib/gatekeeper/system_state.ex | samfrench/gatekeeper | 6286ed16360e0d538e7f4c802a866b2cd83d5514 | [
"MIT"
] | null | null | null | lib/gatekeeper/system_state.ex | samfrench/gatekeeper | 6286ed16360e0d538e7f4c802a866b2cd83d5514 | [
"MIT"
] | null | null | null | defmodule Gatekeeper.SystemState do
use GenServer
# Client API
def start_link(opts) do
GenServer.start_link(__MODULE__, opts, name: __MODULE__)
end
def get(server) do
GenServer.call(server, :get)
end
def update(server, timing) do
GenServer.cast(server, {:update, timing})
end
def reset... | 23.59375 | 93 | 0.631788 |
b2179f96546186cabe64b265ba07aa4481387a85 | 2,080 | ex | Elixir | clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p2beta1_product_search_results_result.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p2beta1_product_search_results_result.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p2beta1_product_search_results_result.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 35.862069 | 142 | 0.734615 |
b217ac0c9be059e4a683b6a8ce7ce78100a864f7 | 280 | ex | Elixir | lib/response/ota_hotel_inv_count_notif.ex | ChannexIO/ex_vertical_booking | ad7ff59fa47717d8c74e75646b7255c94ca8025e | [
"Apache-2.0"
] | 1 | 2021-04-20T20:53:47.000Z | 2021-04-20T20:53:47.000Z | lib/response/ota_hotel_inv_count_notif.ex | ChannexIO/ex_vertical_booking | ad7ff59fa47717d8c74e75646b7255c94ca8025e | [
"Apache-2.0"
] | null | null | null | lib/response/ota_hotel_inv_count_notif.ex | ChannexIO/ex_vertical_booking | ad7ff59fa47717d8c74e75646b7255c94ca8025e | [
"Apache-2.0"
] | 1 | 2019-11-13T08:20:09.000Z | 2019-11-13T08:20:09.000Z | defmodule ExVerticalBooking.Response.OtaHotelInvCountNotif do
@behaviour ExVerticalBooking.Response.Converter
alias ExVerticalBooking.Response.Converter
@list_nodes []
def list_nodes, do: @list_nodes
def convert(struct), do: Converter.convert(struct, @list_nodes)
end
| 28 | 65 | 0.810714 |
b217b01ea0cd3f44bf53b87d986dfcefb19eadd4 | 828 | ex | Elixir | lib/cloudevents/format/v_0_2/encoder/map.ex | mmacai/cloudevents-ex | ef7ab9e39019112e0bec2058c3611ebcd04db605 | [
"Apache-2.0"
] | 7 | 2020-03-17T22:54:51.000Z | 2021-09-10T17:33:03.000Z | lib/cloudevents/format/v_0_2/encoder/map.ex | mmacai/cloudevents-ex | ef7ab9e39019112e0bec2058c3611ebcd04db605 | [
"Apache-2.0"
] | 2 | 2020-07-13T23:01:52.000Z | 2020-07-16T17:05:56.000Z | lib/cloudevents/format/v_0_2/encoder/map.ex | mmacai/cloudevents-ex | ef7ab9e39019112e0bec2058c3611ebcd04db605 | [
"Apache-2.0"
] | 1 | 2020-07-07T19:49:25.000Z | 2020-07-07T19:49:25.000Z | defimpl Cloudevents.Format.Encoder.Map, for: Cloudevents.Format.V_0_2.Event do
@moduledoc false
alias Cloudevents.Format.V_0_2.Event
def convert(%Event{specversion: "0.2", type: type, source: source, id: id} = event) do
all_but_extensions =
%{
specversion: "0.2",
type: type,
so... | 24.352941 | 88 | 0.628019 |
b217e8aad6078aa350bf162fca2a3d4384c52a1a | 15,894 | ex | Elixir | lib/sanbase/alerts/evaluator/scheduler.ex | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | 1 | 2022-01-30T19:51:39.000Z | 2022-01-30T19:51:39.000Z | lib/sanbase/alerts/evaluator/scheduler.ex | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | null | null | null | lib/sanbase/alerts/evaluator/scheduler.ex | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | null | null | null | defmodule Sanbase.Alert.Scheduler do
@moduledoc ~s"""
This module is the entrypoint to the user custom alerts.
It's main job is to execute the whole glue all modules related to alert processing
into one pipeline (the `run/0` function):
> Get the user triggers from the database
> Evaluate the alerts
> Send... | 31.851703 | 119 | 0.653328 |
b21808fd64bf90f81991c2c25cd66be85d60c860 | 413 | exs | Elixir | test/guilda_web/views/error_view_test.exs | clcmo/GuildaEx | 0e30fb8d9b7dfd54c35ae237329791003d6a46bf | [
"MIT"
] | 10 | 2020-09-05T20:25:05.000Z | 2022-01-28T14:02:36.000Z | test/guilda_web/views/error_view_test.exs | clcmo/GuildaEx | 0e30fb8d9b7dfd54c35ae237329791003d6a46bf | [
"MIT"
] | 11 | 2020-09-07T01:09:55.000Z | 2022-02-06T00:58:48.000Z | test/guilda_web/views/error_view_test.exs | clcmo/GuildaEx | 0e30fb8d9b7dfd54c35ae237329791003d6a46bf | [
"MIT"
] | 3 | 2020-10-03T01:53:08.000Z | 2022-01-28T14:03:09.000Z | defmodule GuildaWeb.ErrorViewTest do
use GuildaWeb.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(GuildaWeb.ErrorView, "404.html", []) == "Not Found"
end
test "renders 500.html" do
asser... | 27.533333 | 91 | 0.731235 |
b21820087a0b2af2b1150d9c7afe465b2cf88f4c | 2,295 | ex | Elixir | lib/api/edge.ex | elbow-jason/durango | a31b5636789ef275f19963343eda03d10ebc3ca0 | [
"MIT"
] | 7 | 2018-03-04T14:33:46.000Z | 2020-10-26T17:32:23.000Z | lib/api/edge.ex | elbow-jason/durango | a31b5636789ef275f19963343eda03d10ebc3ca0 | [
"MIT"
] | 5 | 2018-08-01T07:29:02.000Z | 2018-12-31T12:59:16.000Z | lib/api/edge.ex | elbow-jason/durango | a31b5636789ef275f19963343eda03d10ebc3ca0 | [
"MIT"
] | null | null | null | defmodule Durango.Api.Edge do
@doc """
GET /_api/gharial/{graph_name}/edge
List edge definitions
"""
def list_definitions(repo, graph_name) do
Durango.Api.get(repo, "/_api/gharial/#{graph_name}/edge")
end
@doc """
POST /_api/gharial/{graph_name}/edge
Add edge definition
"""
def create_defin... | 29.805195 | 102 | 0.700654 |
b21828c47c030fe059f8660b16f7bdfdd9a906e7 | 5,675 | exs | Elixir | mix.exs | Rabbet/absinthe | 0764d7eb6ea9bdf9ccd957fa27bf1e6b26968f89 | [
"MIT"
] | null | null | null | mix.exs | Rabbet/absinthe | 0764d7eb6ea9bdf9ccd957fa27bf1e6b26968f89 | [
"MIT"
] | null | null | null | mix.exs | Rabbet/absinthe | 0764d7eb6ea9bdf9ccd957fa27bf1e6b26968f89 | [
"MIT"
] | null | null | null | defmodule Absinthe.Mixfile do
use Mix.Project
@version "1.5.0-rc.2"
def project do
[
app: :absinthe,
version: @version,
elixir: "~> 1.8",
elixirc_paths: elixirc_paths(Mix.env()),
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
package: packa... | 26.895735 | 91 | 0.579031 |
b21837a3f9311bad33af2711ac2487711213bef2 | 833 | ex | Elixir | lib/edgedb/protocol/type_descriptors/object_shape_descriptor.ex | f0lio/edgedb-elixir | b285bd8037b0b951aabfa1d1733889880f8bfd66 | [
"MIT"
] | null | null | null | lib/edgedb/protocol/type_descriptors/object_shape_descriptor.ex | f0lio/edgedb-elixir | b285bd8037b0b951aabfa1d1733889880f8bfd66 | [
"MIT"
] | null | null | null | lib/edgedb/protocol/type_descriptors/object_shape_descriptor.ex | f0lio/edgedb-elixir | b285bd8037b0b951aabfa1d1733889880f8bfd66 | [
"MIT"
] | null | null | null | defmodule EdgeDB.Protocol.TypeDescriptors.ObjectShapeDescriptor do
@moduledoc false
use EdgeDB.Protocol.TypeDescriptor
alias EdgeDB.Protocol.{
Codecs,
Types
}
deftypedescriptor(type: 1)
@impl EdgeDB.Protocol.TypeDescriptor
def parse_description(codecs, type_id, <<elements_count::uint16, rest::... | 26.03125 | 97 | 0.729892 |
b2184fd21bfac3580bb0c6a2114f66d5ebac62ac | 267 | ex | Elixir | home_page_local/lib/home_page/repo.ex | tlk-emb/CMS_koji | 40a93073128bfad7fdfa987c69d4a8759752064f | [
"Apache-2.0"
] | 8 | 2019-06-02T05:02:36.000Z | 2021-08-11T04:23:10.000Z | home_page_local/lib/home_page/repo.ex | tlk-emb/CMS_koji | 40a93073128bfad7fdfa987c69d4a8759752064f | [
"Apache-2.0"
] | 7 | 2019-05-15T08:32:51.000Z | 2020-06-10T07:46:43.000Z | home_page_local/lib/home_page/repo.ex | tlk-emb/CMS_koji | 40a93073128bfad7fdfa987c69d4a8759752064f | [
"Apache-2.0"
] | 1 | 2019-06-02T05:02:47.000Z | 2019-06-02T05:02:47.000Z | defmodule HomePage.Repo do
use Ecto.Repo, otp_app: :home_page
@doc """
Dynamically loads the repository url from the
DATABASE_URL environment variable.
"""
def init(_, opts) do
{:ok, Keyword.put(opts, :url, System.get_env("DATABASE_URL"))}
end
end
| 22.25 | 66 | 0.700375 |
b21874dab7acad92d3caf5c7233511597a7b5a13 | 838 | ex | Elixir | lib/pact_elixir/mock_server/rust_pact_mock_server_facade.ex | kaorism/pact_elixir | 5806fd5fa5897fcb7bf13d35c8e782450fda5367 | [
"MIT"
] | 27 | 2018-02-28T22:42:14.000Z | 2022-03-20T00:30:08.000Z | lib/pact_elixir/mock_server/rust_pact_mock_server_facade.ex | kaorism/pact_elixir | 5806fd5fa5897fcb7bf13d35c8e782450fda5367 | [
"MIT"
] | 180 | 2017-12-04T09:42:53.000Z | 2022-03-28T09:33:23.000Z | lib/pact_elixir/mock_server/rust_pact_mock_server_facade.ex | kaorism/pact_elixir | 5806fd5fa5897fcb7bf13d35c8e782450fda5367 | [
"MIT"
] | 8 | 2018-08-01T17:14:52.000Z | 2022-01-26T12:46:46.000Z | defmodule PactElixir.RustPactMockServerFacade do
@moduledoc """
Adapter for the wrapped rust [pact mock server](https://github.com/pact-foundation/pact-reference).
Functions in this file are replaced by Rustler with their Rust calling
counterpart. See native/pactmockserver/src/lib.rs for the concrete Rust
imp... | 41.9 | 101 | 0.77327 |
b218779567131464bd818d8192860a11a2047f91 | 2,103 | ex | Elixir | lib/student_list_web/controllers/class_controller.ex | jwarwick/student_list | d35a2fcef2025d3de9b7915682965c48481c1d15 | [
"MIT"
] | 1 | 2021-06-27T20:02:11.000Z | 2021-06-27T20:02:11.000Z | lib/student_list_web/controllers/class_controller.ex | jwarwick/student_list | d35a2fcef2025d3de9b7915682965c48481c1d15 | [
"MIT"
] | null | null | null | lib/student_list_web/controllers/class_controller.ex | jwarwick/student_list | d35a2fcef2025d3de9b7915682965c48481c1d15 | [
"MIT"
] | null | null | null | defmodule StudentListWeb.ClassController do
use StudentListWeb, :controller
alias StudentList.Directory
alias StudentList.Directory.Class
plug(:put_root_layout, {StudentListWeb.LayoutView, "torch.html"})
plug(:put_layout, false)
def index(conn, params) do
case Directory.paginate_classes(params)... | 29.208333 | 87 | 0.637185 |
b21883df10c62e500c2337db62face4c365a55d7 | 536 | exs | Elixir | test/mix/tasks/vnu_test.exs | angelikatyborska/vnu-elixir | c12676e41b7fba3b8acf98812f0e3a054c298458 | [
"MIT"
] | 51 | 2020-04-11T22:30:43.000Z | 2022-01-14T13:24:56.000Z | test/mix/tasks/vnu_test.exs | angelikatyborska/vnu-elixir | c12676e41b7fba3b8acf98812f0e3a054c298458 | [
"MIT"
] | 20 | 2020-04-13T12:20:49.000Z | 2022-03-29T18:32:41.000Z | test/mix/tasks/vnu_test.exs | angelikatyborska/vnu-elixir | c12676e41b7fba3b8acf98812f0e3a054c298458 | [
"MIT"
] | null | null | null | defmodule Mix.Tasks.VnuTest do
use ExUnit.Case
test "provides a list of available vnu mix tasks" do
:ok = Mix.Tasks.Vnu.run([])
assert_received {:mix_shell, :info, ["Vnu v" <> _]}
assert_received {:mix_shell, :info, ["mix vnu.validate.html" <> _]}
assert_received {:mix_shell, :info, ["mix vnu.valid... | 29.777778 | 71 | 0.647388 |
b218a7fcc8585856ab059f2a00ed64a768fbeb45 | 1,057 | exs | Elixir | test/quadquizaminos/contests/contest/rsvp_test.exs | sparrell/quizquadaminos | 6388252b7c32aa4101486cbf45d0d57d4e3a79da | [
"MIT"
] | 1 | 2022-01-11T20:06:31.000Z | 2022-01-11T20:06:31.000Z | test/quadquizaminos/contests/contest/rsvp_test.exs | sFractal-Podii/quizquadaminos | 4c9023b9c6212a92741b0f21d9eb05871aa73916 | [
"MIT"
] | 484 | 2021-02-15T18:43:40.000Z | 2022-03-29T12:27:24.000Z | test/quadquizaminos/contests/contest/rsvp_test.exs | sFractal-Podii/quizquadaminos | 4c9023b9c6212a92741b0f21d9eb05871aa73916 | [
"MIT"
] | 8 | 2021-02-15T19:12:51.000Z | 2021-12-15T03:02:46.000Z | defmodule Quadquizaminos.ContestsTest.RSVP do
use Quadquizaminos.DataCase
alias Quadquizaminos.Accounts
alias Quadquizaminos.Accounts.User
alias Quadquizaminos.Contests
alias Quadquizaminos.Contests.RSVP
describe "RSVP" do
setup do
{:ok, current_user} = Accounts.create_user(%User{}, %{name: "ha",... | 31.088235 | 97 | 0.679281 |
b218b604874be45d10a37e4c4f1504afe783aa18 | 1,203 | exs | Elixir | test/email_test.exs | kentcdodds/changelog.com | e1c0d7ee5d47dc83dd443d623adb0f07e4acb28d | [
"MIT"
] | null | null | null | test/email_test.exs | kentcdodds/changelog.com | e1c0d7ee5d47dc83dd443d623adb0f07e4acb28d | [
"MIT"
] | null | null | null | test/email_test.exs | kentcdodds/changelog.com | e1c0d7ee5d47dc83dd443d623adb0f07e4acb28d | [
"MIT"
] | null | null | null | defmodule Changelog.EmailTest do
use ExUnit.Case
use Bamboo.Test
import Changelog.Factory
alias Changelog.Email
describe "guest thanks" do
test "with mostly blank options" do
person = build(:person)
email = Email.guest_thanks(person, %{"message" => "shpedoinkel!"})
assert email.to ==... | 26.152174 | 97 | 0.658354 |
b218cec59c6703062a21d601384ce47cfab6ce11 | 7,758 | ex | Elixir | lib/nostrum/struct/channel.ex | jos-b/nostrum | baf5c9de9f17c3bd99c5c06a454e03cc448aad1c | [
"MIT"
] | 1 | 2020-12-08T23:47:17.000Z | 2020-12-08T23:47:17.000Z | lib/nostrum/struct/channel.ex | jos-b/nostrum | baf5c9de9f17c3bd99c5c06a454e03cc448aad1c | [
"MIT"
] | null | null | null | lib/nostrum/struct/channel.ex | jos-b/nostrum | baf5c9de9f17c3bd99c5c06a454e03cc448aad1c | [
"MIT"
] | 1 | 2020-09-03T13:55:55.000Z | 2020-09-03T13:55:55.000Z | defmodule Nostrum.Struct.Channel do
@moduledoc ~S"""
Struct representing a Discord guild channel.
A `Nostrum.Struct.Channel` represents all 5 types of channels. Each
channel has a field `:type` with any of the following values:
* `0` - GUILD_TEXT
* `1` - DM
* `2` - GUILD_VOICE
* `3` - GROUP_DM... | 26.844291 | 108 | 0.606986 |
b21917931924234fed30c5ecc126d8ec7de80a2a | 3,714 | ex | Elixir | lib/bitcoin_address/secp256k1.ex | paulfioravanti/bitcoin_address | ee6581fa122c203eca9889cd1ed1b85292feb114 | [
"MIT"
] | 1 | 2021-05-16T23:22:50.000Z | 2021-05-16T23:22:50.000Z | lib/bitcoin_address/secp256k1.ex | paulfioravanti/bitcoin_address | ee6581fa122c203eca9889cd1ed1b85292feb114 | [
"MIT"
] | null | null | null | lib/bitcoin_address/secp256k1.ex | paulfioravanti/bitcoin_address | ee6581fa122c203eca9889cd1ed1b85292feb114 | [
"MIT"
] | 2 | 2019-02-10T14:52:21.000Z | 2021-05-16T23:23:55.000Z | defmodule BitcoinAddress.Secp256k1 do
@moduledoc """
Utility module to deal with functionality around secp265k1
Elliptic Point Cryptography. Specifically,
- Generating a secp256k1 public key from a private key
- Extracting an Elliptic Curve point (EC Point) with coordinates {x, y}
from a secp256k1 public... | 28.790698 | 80 | 0.713247 |
b2193a54ad73a72a616c5dd90360261dc3cccee9 | 1,404 | ex | Elixir | clients/gmail/lib/google_api/gmail/v1/model/batch_delete_messages_request.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/gmail/lib/google_api/gmail/v1/model/batch_delete_messages_request.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/gmail/lib/google_api/gmail/v1/model/batch_delete_messages_request.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... | 29.87234 | 93 | 0.73433 |
b21955b70fdeb132d1954dfed9a3a6b6a53cf024 | 1,142 | ex | Elixir | apps/thundermoon_web/lib/thundermoon_web/abilities/user_abilities.ex | grrrisu/thundermoon-mvp | 17939d51c7b07216dfd63ba1b2ba53d56f94a48d | [
"MIT"
] | 10 | 2019-08-02T06:41:23.000Z | 2022-03-09T16:12:30.000Z | apps/thundermoon_web/lib/thundermoon_web/abilities/user_abilities.ex | grrrisu/thundermoon-mvp | 17939d51c7b07216dfd63ba1b2ba53d56f94a48d | [
"MIT"
] | 319 | 2019-06-11T20:16:26.000Z | 2022-03-09T16:24:22.000Z | apps/thundermoon_web/lib/thundermoon_web/abilities/user_abilities.ex | grrrisu/thundermoon-mvp | 17939d51c7b07216dfd63ba1b2ba53d56f94a48d | [
"MIT"
] | 4 | 2019-08-15T19:52:07.000Z | 2021-12-02T14:52:54.000Z | defmodule ThundermoonWeb.UserAbilities do
alias Thundermoon.Accounts.User
alias Thundermoon.{ChatMessages, Counter}
defimpl Canada.Can, for: User do
# User
def can?(%User{}, action, User)
when action in [:index],
do: true
def can?(%User{role: "admin"}, action, %User{})
when a... | 27.853659 | 70 | 0.591944 |
b21975f7046d62213110232c5a57e758e6a26e02 | 221 | exs | Elixir | bench/witchcraft/unit_bench.exs | florius0/witchcraft | 6c61c3ecd5b431c52e8b60aafb05596d9182205e | [
"MIT"
] | null | null | null | bench/witchcraft/unit_bench.exs | florius0/witchcraft | 6c61c3ecd5b431c52e8b60aafb05596d9182205e | [
"MIT"
] | null | null | null | bench/witchcraft/unit_bench.exs | florius0/witchcraft | 6c61c3ecd5b431c52e8b60aafb05596d9182205e | [
"MIT"
] | null | null | null | defmodule Witchcraft.UnitBench do
@moduledoc false
use Benchfella
import Witchcraft.Unit
bench("new/0", do: new())
bench("struct/1", do: struct(Witchcraft.Unit))
bench("%Unit{}", do: %Witchcraft.Unit{})
end
| 20.090909 | 48 | 0.692308 |
b219dd63c14a2ec185d452e86fd3d49520eb27fa | 1,807 | ex | Elixir | clients/content/lib/google_api/content/v21/model/pickup_services_pickup_service.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v21/model/pickup_services_pickup_service.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v21/model/pickup_services_pickup_service.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... | 34.09434 | 131 | 0.710017 |
b21a8fe959c2519be6d4b3afd2e3a95c78813bfa | 1,167 | ex | Elixir | lib/nomad_client/model/network_resource.ex | mrmstn/nomad_client | a586022e5eb4d166acba08b55b198ec079d4b118 | [
"Apache-2.0"
] | 8 | 2021-09-04T21:22:53.000Z | 2022-02-22T22:48:38.000Z | lib/nomad_client/model/network_resource.ex | mrmstn/nomad_client | a586022e5eb4d166acba08b55b198ec079d4b118 | [
"Apache-2.0"
] | null | null | null | lib/nomad_client/model/network_resource.ex | mrmstn/nomad_client | a586022e5eb4d166acba08b55b198ec079d4b118 | [
"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 NomadClient.Model.NetworkResource do
@moduledoc """
"""
@derive [Poison.Encoder]
defstruct [
:Mode,
:Device,
:CIDR,
:IP,
... | 26.522727 | 91 | 0.621251 |
b21a995d0aaff6cd950e93947c65e9c59ff76a18 | 525 | ex | Elixir | apps/go_stop/lib/go_stop/models/stats.ex | camirmas/go-stop-server | ecf3e919b9ee1d2e8b45e628bc10b4706cc4e698 | [
"MIT"
] | 8 | 2017-06-04T04:05:47.000Z | 2019-11-04T18:00:45.000Z | apps/go_stop/lib/go_stop/models/stats.ex | camirmas/go-stop-server | ecf3e919b9ee1d2e8b45e628bc10b4706cc4e698 | [
"MIT"
] | 19 | 2018-04-19T07:24:57.000Z | 2019-08-07T16:37:05.000Z | apps/go_stop/lib/go_stop/models/stats.ex | camirmas/go-stop-server | ecf3e919b9ee1d2e8b45e628bc10b4706cc4e698 | [
"MIT"
] | 1 | 2018-07-18T07:51:47.000Z | 2018-07-18T07:51:47.000Z | defmodule GoStop.Player.Stats do
use Ecto.Schema
import Ecto.Changeset
alias GoStop.{Repo, Player}
@accepted_fields [:captured_stones]
@primary_key false
embedded_schema do
field :captured_stones, :integer, default: 0
end
def capture_stone(nil) do
capture_stone(%Player.Stats{})
end
def c... | 19.444444 | 63 | 0.702857 |
b21a9ca14355b077760ee7631a99eb96f3b4e77a | 4,763 | exs | Elixir | test/rewire_block_test.exs | stephanos/rewire | 0dbbec223aa3fa667c9fe428f3f59c8c24a38b39 | [
"Apache-2.0"
] | 54 | 2020-10-06T09:11:06.000Z | 2022-03-14T12:47:49.000Z | test/rewire_block_test.exs | stephanos/rewire | 0dbbec223aa3fa667c9fe428f3f59c8c24a38b39 | [
"Apache-2.0"
] | 6 | 2020-10-07T04:15:37.000Z | 2021-11-15T18:46:10.000Z | test/rewire_block_test.exs | stephanos/rewire | 0dbbec223aa3fa667c9fe428f3f59c8c24a38b39 | [
"Apache-2.0"
] | 1 | 2020-10-05T19:36:19.000Z | 2020-10-05T19:36:19.000Z | defmodule RewireBlockTest do
use ExUnit.Case
import Rewire
import ExUnit.CaptureIO
describe "rewire a block with" do
test "non-aliased dependency" do
output =
capture_io(:stderr, fn ->
rewire Rewire.ModuleWithDependency, [{Rewire.Hello, Bonjour}] do
assert ModuleWithDep... | 27.531792 | 86 | 0.598992 |
b21aaa8e8f650fd9ec4f4583eb4220112e7ce4fe | 1,121 | exs | Elixir | clients/drive/config/config.exs | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/drive/config/config.exs | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | null | null | null | clients/drive/config/config.exs | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | 1 | 2018-07-28T20:50:50.000Z | 2018-07-28T20:50:50.000Z | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on this project, this
# file won't be loaded nor affect the paren... | 36.16129 | 73 | 0.752007 |
b21ac1d066c71ff980243b4b0e719ab85351bc43 | 878 | ex | Elixir | lib/bloggex_web/controllers/session_controller.ex | dreamingechoes/bloggex | 9ead10ec1fd8fda0da3cb08106c43a9043188199 | [
"MIT"
] | 1 | 2020-01-14T03:17:51.000Z | 2020-01-14T03:17:51.000Z | lib/bloggex_web/controllers/session_controller.ex | dreamingechoes/bloggex | 9ead10ec1fd8fda0da3cb08106c43a9043188199 | [
"MIT"
] | null | null | null | lib/bloggex_web/controllers/session_controller.ex | dreamingechoes/bloggex | 9ead10ec1fd8fda0da3cb08106c43a9043188199 | [
"MIT"
] | null | null | null | defmodule BloggexWeb.SessionController do
use BloggexWeb, :controller
alias Bloggex.Guardian
alias Bloggex.Guardian.Plug
plug(:put_layout, {BloggexWeb.Admin.LayoutView, "admin_auth.html"})
def new(conn, _), do: render(conn, "new.html")
def create(conn, %{
"session" => %{
"email" => ema... | 23.72973 | 69 | 0.593394 |
b21acfed70f6308d126ffb70264906b36754c185 | 26,516 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/api/reports.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/api/reports.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/api/reports.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 ... | 41.75748 | 187 | 0.615628 |
b21ae9c6a940193949db356a0526a82b12a2b2c2 | 759 | ex | Elixir | lib/gor_project/object/item.ex | Shenrak/GORProject-API | 1b3355ae5955d78b5a2f02177f20a599f0680604 | [
"MIT"
] | 2 | 2018-09-03T05:42:54.000Z | 2018-09-18T05:48:17.000Z | lib/gor_project/object/item.ex | Shenrak/GORProject-API | 1b3355ae5955d78b5a2f02177f20a599f0680604 | [
"MIT"
] | 2 | 2018-09-17T16:06:06.000Z | 2018-09-24T18:06:19.000Z | lib/gor_project/object/item.ex | Shenrak/GORProject-API | 1b3355ae5955d78b5a2f02177f20a599f0680604 | [
"MIT"
] | 1 | 2018-09-17T14:57:20.000Z | 2018-09-17T14:57:20.000Z | defmodule GORproject.Object.Item do
use Ecto.Schema
import Ecto.Changeset
alias GORproject.Object.Character
schema "items" do
field(:uuid, Ecto.UUID)
field(:name, :string)
field(:stats, {:array, :map})
belongs_to(:character, Character)
timestamps()
end
@doc false
def changeset(item,... | 21.685714 | 60 | 0.654809 |
b21b0b40ad50d2afc7c5853c74170c8cc9291826 | 3,521 | ex | Elixir | lib/distillery/releases/archiver/archive.ex | arikai/distillery | 65ddbcc143f2849a6ed5574e8c397a68ca92eb81 | [
"MIT"
] | 3,097 | 2016-07-18T13:59:00.000Z | 2022-03-29T00:27:23.000Z | lib/distillery/releases/archiver/archive.ex | arikai/distillery | 65ddbcc143f2849a6ed5574e8c397a68ca92eb81 | [
"MIT"
] | 672 | 2016-07-18T18:25:29.000Z | 2022-02-24T17:39:30.000Z | lib/distillery/releases/archiver/archive.ex | arikai/distillery | 65ddbcc143f2849a6ed5574e8c397a68ca92eb81 | [
"MIT"
] | 483 | 2016-07-22T14:08:49.000Z | 2022-03-21T09:35:23.000Z | defmodule Distillery.Releases.Archiver.Archive do
@moduledoc false
defstruct [:name, :working_dir, :manifest]
@type path :: String.t()
@type t :: %__MODULE__{
name: String.t(),
working_dir: path,
manifest: %{path => path}
}
@doc """
Creates a new Archive with the gi... | 33.216981 | 100 | 0.663732 |
b21b3a33b4fef9eea03a93a74485695cd8d45cb0 | 2,508 | ex | Elixir | lib/grovepi/i2c.ex | schainker/grovepi | 2de21f12a2ab28f9788a2add4c6409871e098479 | [
"Apache-2.0"
] | 2 | 2018-09-06T21:30:01.000Z | 2018-09-06T21:30:08.000Z | lib/grovepi/i2c.ex | schainks/grovepi | 2de21f12a2ab28f9788a2add4c6409871e098479 | [
"Apache-2.0"
] | null | null | null | lib/grovepi/i2c.ex | schainks/grovepi | 2de21f12a2ab28f9788a2add4c6409871e098479 | [
"Apache-2.0"
] | null | null | null | defmodule GrovePi.I2C do
@moduledoc false
use GenServer
alias GrovePi.I2C.{State, Write}
defmacro __using__(_) do
quote do
@i2c Application.get_env(:grovepi, :i2c, ElixirALE.I2C)
end
end
@type i2c_address :: 0..127
@spec start_link(binary, i2c_address, [term]) :: {:ok, pid}
def start_... | 24.349515 | 79 | 0.679027 |
b21b4d9ce35a0c5eea75d512f0cfa2a38e137138 | 772 | exs | Elixir | exercises/01-elixir/02-data-types/03-lists/03-replace-at/tests.exs | DennisWinnepenninckx/distributed-applications | 06743e4e2a09dc52ff52be831e486bb073916173 | [
"BSD-3-Clause"
] | 1 | 2021-09-22T09:52:11.000Z | 2021-09-22T09:52:11.000Z | exercises/01-elixir/02-data-types/03-lists/03-replace-at/tests.exs | DennisWinnepenninckx/distributed-applications | 06743e4e2a09dc52ff52be831e486bb073916173 | [
"BSD-3-Clause"
] | 22 | 2019-06-19T18:58:13.000Z | 2020-03-16T14:43:06.000Z | exercises/01-elixir/02-data-types/03-lists/03-replace-at/tests.exs | DennisWinnepenninckx/distributed-applications | 06743e4e2a09dc52ff52be831e486bb073916173 | [
"BSD-3-Clause"
] | 32 | 2019-09-19T03:25:11.000Z | 2020-10-06T15:01:47.000Z | defmodule Setup do
@script "shared.exs"
def setup(directory \\ ".") do
path = Path.join(directory, @script)
if File.exists?(path) do
Code.require_file(path)
Shared.setup(__DIR__)
else
setup(Path.join(directory, ".."))
end
end
end
Setup.setup
defmodule Tests do
use ExUnit.C... | 25.733333 | 89 | 0.617876 |
b21b56f59a6fad6c15ad7b80de4341d0d730e2ad | 2,025 | ex | Elixir | clients/run/lib/google_api/run/v1/model/set_iam_policy_request.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/run/lib/google_api/run/v1/model/set_iam_policy_request.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/run/lib/google_api/run/v1/model/set_iam_policy_request.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... | 35.526316 | 153 | 0.72 |
b21b5f70af340ee701a5721717da5f900706f06c | 1,463 | ex | Elixir | lib/api_web/views/error_helpers.ex | PetrNikolas/blazeee | 0d97a39b53d19951ccd946b2c4949b054e1487cd | [
"MIT"
] | 17 | 2018-09-18T23:35:26.000Z | 2021-12-05T08:03:23.000Z | lib/api_web/views/error_helpers.ex | PetrNikolas/blazeee | 0d97a39b53d19951ccd946b2c4949b054e1487cd | [
"MIT"
] | null | null | null | lib/api_web/views/error_helpers.ex | PetrNikolas/blazeee | 0d97a39b53d19951ccd946b2c4949b054e1487cd | [
"MIT"
] | 2 | 2019-07-08T20:43:13.000Z | 2020-03-04T19:11:39.000Z | defmodule ApiWeb.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(:spa... | 32.511111 | 72 | 0.668489 |
b21b6e37330e9518d36f65895cf606e36012a2ed | 1,939 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v28/model/accounts_list_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v28/model/accounts_list_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v28/model/accounts_list_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 35.907407 | 156 | 0.739556 |
b21b8990f0ab4b6614d6c994ab4898fae27bc77b | 707 | ex | Elixir | lib/sl/sl.ex | curoles/elixir-numy | 70af10cd65c26f8a4df0734c8612c6426b4ce86d | [
"MIT"
] | null | null | null | lib/sl/sl.ex | curoles/elixir-numy | 70af10cd65c26f8a4df0734c8612c6426b4ce86d | [
"MIT"
] | null | null | null | lib/sl/sl.ex | curoles/elixir-numy | 70af10cd65c26f8a4df0734c8612c6426b4ce86d | [
"MIT"
] | null | null | null | defmodule Numy.SL do
@moduledoc """
NIF wrapper around GSL.
"""
@on_load :load_nifs
@doc """
Callback on module's load. Loads NIF shared library.
"""
def load_nifs do
path = :filename.join(:code.priv_dir(:numy), 'libnumy_gsl')
load_res = :erlang.load_nif(path, 0)
case load_res do
:ok... | 20.2 | 63 | 0.599717 |
b21bafb27832fc959747681d78159ab98c2e23cc | 2,588 | ex | Elixir | lib/solid/argument.ex | christopherlai/solid | c7f0553f4ce3c12b68484baff42084bee1aa640b | [
"MIT"
] | null | null | null | lib/solid/argument.ex | christopherlai/solid | c7f0553f4ce3c12b68484baff42084bee1aa640b | [
"MIT"
] | null | null | null | lib/solid/argument.ex | christopherlai/solid | c7f0553f4ce3c12b68484baff42084bee1aa640b | [
"MIT"
] | null | null | null | defmodule Solid.Argument do
@moduledoc """
An Argument can be a field that will be inside the context or
a value (String, Integer, etc)
"""
alias Solid.{Context, Filter}
@doc """
iex> Solid.Argument.get([field: ["key"]], %Solid.Context{vars: %{"key" => 123}})
123
iex> Solid.Argument.get([field: ["ke... | 34.506667 | 129 | 0.609351 |
b21bb9dd5d6e41c33b5070f16202ef5ad5cfc881 | 295 | ex | Elixir | apps/viztube_web/lib/viztube_web/controllers/guardian_auth_error_handler.ex | vizlegal/viztube | 9519ec2bcea9d4085ec3287412b0a26104d4c826 | [
"Apache-2.0"
] | null | null | null | apps/viztube_web/lib/viztube_web/controllers/guardian_auth_error_handler.ex | vizlegal/viztube | 9519ec2bcea9d4085ec3287412b0a26104d4c826 | [
"Apache-2.0"
] | 3 | 2020-07-16T23:48:01.000Z | 2021-05-08T15:54:04.000Z | apps/viztube_web/lib/viztube_web/controllers/guardian_auth_error_handler.ex | vizlegal/viztube | 9519ec2bcea9d4085ec3287412b0a26104d4c826 | [
"Apache-2.0"
] | null | null | null | defmodule ViztubeWeb.GuardianAuthErrorHandler do
use ViztubeWeb, :controller
def auth_error(conn, {type, _reason}, _opts) do
body = Poison.encode!(%{message: to_string(type)})
render(conn, ViztubeWeb.SessionView, "new.html", layout: {ViztubeWeb.LayoutView, "app.html"})
end
end
| 26.818182 | 97 | 0.732203 |
b21bc70f39846a2fb48b5045fa00da918b0aaacc | 5,314 | ex | Elixir | lib/credo/check/readability/large_numbers.ex | hrzndhrn/credo | 71a7b24a5ca8e7a48416e0cdfb42cf8a0fef9593 | [
"MIT"
] | 4,590 | 2015-09-28T06:01:43.000Z | 2022-03-29T08:48:57.000Z | lib/credo/check/readability/large_numbers.ex | hrzndhrn/credo | 71a7b24a5ca8e7a48416e0cdfb42cf8a0fef9593 | [
"MIT"
] | 890 | 2015-11-16T21:07:07.000Z | 2022-03-29T08:52:07.000Z | lib/credo/check/readability/large_numbers.ex | hrzndhrn/credo | 71a7b24a5ca8e7a48416e0cdfb42cf8a0fef9593 | [
"MIT"
] | 479 | 2015-11-17T19:42:40.000Z | 2022-03-29T00:09:21.000Z | defmodule Credo.Check.Readability.LargeNumbers do
use Credo.Check,
base_priority: :high,
tags: [:formatter],
param_defaults: [
only_greater_than: 9_999
],
explanations: [
check: """
Numbers can contain underscores for readability purposes.
These do not affect the value of t... | 25.921951 | 96 | 0.618367 |
b21bd4e3bd7fdc729033cb801494f8bff01667c8 | 1,475 | ex | Elixir | test/support/fake_slack/router.ex | GPrimola/xlack | a62e80e51e66692aaa98ac3ea2c3cb9e084fa1e7 | [
"MIT"
] | null | null | null | test/support/fake_slack/router.ex | GPrimola/xlack | a62e80e51e66692aaa98ac3ea2c3cb9e084fa1e7 | [
"MIT"
] | null | null | null | test/support/fake_slack/router.ex | GPrimola/xlack | a62e80e51e66692aaa98ac3ea2c3cb9e084fa1e7 | [
"MIT"
] | null | null | null | defmodule Xlack.FakeSlack.Router do
use Plug.Router
import Plug.Conn
import Xlack.Factory
plug(:match)
plug(:dispatch)
get "/api/rtm.start" do
conn = fetch_query_params(conn)
pid = Application.get_env(:xlack, :test_pid)
send(pid, {:token, conn.query_params["token"]})
response = ~S(
... | 23.412698 | 90 | 0.542373 |
b21bfd41bd75832c544445e2525522d551e26174 | 1,184 | ex | Elixir | lib/groupher_server/cms/models/article_upvote.ex | coderplanets/coderplanets_server | 3663e56340d6d050e974c91f7e499d8424fc25e9 | [
"Apache-2.0"
] | 240 | 2018-11-06T09:36:54.000Z | 2022-02-20T07:12:36.000Z | lib/groupher_server/cms/models/article_upvote.ex | coderplanets/coderplanets_server | 3663e56340d6d050e974c91f7e499d8424fc25e9 | [
"Apache-2.0"
] | 363 | 2018-07-11T03:38:14.000Z | 2021-12-14T01:42:40.000Z | lib/groupher_server/cms/models/article_upvote.ex | mydearxym/mastani_server | f24034a4a5449200165cf4a547964a0961793eab | [
"Apache-2.0"
] | 22 | 2019-01-27T11:47:56.000Z | 2021-02-28T13:17:52.000Z | defmodule GroupherServer.CMS.Model.ArticleUpvote do
@moduledoc false
alias __MODULE__
use Ecto.Schema
import Ecto.Changeset
import Helper.Utils, only: [get_config: 2]
import GroupherServer.CMS.Helper.Macros
import GroupherServer.CMS.Helper.Utils,
only: [articles_foreign_key_constraint: 1, articles_... | 27.534884 | 88 | 0.744932 |
b21c299e93b47e883debff9d742a31b9438dd886 | 244 | ex | Elixir | lib/battle_box/game_engine/message/commands_request.ex | GrantJamesPowell/battle_box | 301091955b68cd4672f6513d645eca4e3c4e17d0 | [
"Apache-2.0"
] | 2 | 2020-10-17T05:48:49.000Z | 2020-11-11T02:34:15.000Z | lib/battle_box/game_engine/message/commands_request.ex | FlyingDutchmanGames/battle_box | 301091955b68cd4672f6513d645eca4e3c4e17d0 | [
"Apache-2.0"
] | 3 | 2020-05-18T05:52:21.000Z | 2020-06-09T07:24:14.000Z | lib/battle_box/game_engine/message/commands_request.ex | FlyingDutchmanGames/battle_box | 301091955b68cd4672f6513d645eca4e3c4e17d0 | [
"Apache-2.0"
] | null | null | null | defmodule BattleBox.GameEngine.Message.CommandsRequest do
@derive Jason.Encoder
@enforce_keys [
:game_id,
:game_state,
:maximum_time,
:minimum_time,
:player,
:request_id,
:score
]
defstruct @enforce_keys
end
| 17.428571 | 57 | 0.688525 |
b21c328b9037c454a757374f4894db7969c4312f | 2,523 | ex | Elixir | clients/health_care/lib/google_api/health_care/v1/model/deidentify_dicom_store_request.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/health_care/lib/google_api/health_care/v1/model/deidentify_dicom_store_request.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/health_care/lib/google_api/health_care/v1/model/deidentify_dicom_store_request.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... | 47.603774 | 566 | 0.756639 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.