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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
abbf3eb10f52c1b73938876d4c2694b195616473 | 456 | ex | Elixir | lib/hl7/2.5/segments/ctd.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | lib/hl7/2.5/segments/ctd.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | lib/hl7/2.5/segments/ctd.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | defmodule HL7.V2_5.Segments.CTD do
@moduledoc false
require Logger
alias HL7.V2_5.{DataTypes}
use HL7.Segment,
fields: [
segment: nil,
contact_role: DataTypes.Ce,
contact_name: DataTypes.Xpn,
contact_address: DataTypes.Xad,
contact_location: DataTypes.Pl,
contact_commun... | 24 | 55 | 0.710526 |
abbf5a6c00d22b4d31da5b9b29b70ba113ab1312 | 2,029 | exs | Elixir | test/admin/auth/auth_test.exs | jeantsai/phoenix-admin | 3f954f0c452d385438b616f7e91bc5d66bcc1adc | [
"MIT"
] | null | null | null | test/admin/auth/auth_test.exs | jeantsai/phoenix-admin | 3f954f0c452d385438b616f7e91bc5d66bcc1adc | [
"MIT"
] | null | null | null | test/admin/auth/auth_test.exs | jeantsai/phoenix-admin | 3f954f0c452d385438b616f7e91bc5d66bcc1adc | [
"MIT"
] | null | null | null | defmodule Admin.AuthTest do
use Admin.DataCase
alias Admin.Auth
describe "users" do
alias Admin.Auth.User
@valid_attrs %{name: "some name", password: "some password"}
@update_attrs %{name: "some updated name", password: "some updated password"}
@invalid_attrs %{name: nil, password: nil}
de... | 29.838235 | 81 | 0.641203 |
abbf5d37915e3ef39e686a742d7ddd862ee789ee | 2,014 | exs | Elixir | integration_test/temple_demo/config/dev.exs | rktjmp/temple | 6fe46cbb4998477d76147fa95c9fd9c7841545ef | [
"MIT"
] | 366 | 2019-07-12T22:43:35.000Z | 2022-03-31T07:26:25.000Z | integration_test/temple_demo/config/dev.exs | rktjmp/temple | 6fe46cbb4998477d76147fa95c9fd9c7841545ef | [
"MIT"
] | 114 | 2019-07-12T19:49:10.000Z | 2022-03-23T10:48:48.000Z | integration_test/temple_demo/config/dev.exs | rktjmp/temple | 6fe46cbb4998477d76147fa95c9fd9c7841545ef | [
"MIT"
] | 17 | 2019-07-23T15:16:34.000Z | 2021-02-25T02:42:02.000Z | use Mix.Config
# Configure your database
config :temple_demo, TempleDemo.Repo,
username: "postgres",
password: "postgres",
database: "temple_demo_dev",
hostname: "localhost",
show_sensitive_data_on_connection_error: true,
pool_size: 10
# For development, we disable any cache and enable
# debugging and cod... | 29.188406 | 68 | 0.713009 |
abbf9a02ed12ccd53c2b4f6184af3f6f5788a35c | 68 | exs | Elixir | api/test/views/layout_view_test.exs | panayi/react-phoenix-starter-kit | 6615402deeac9b359954cdd8b523f7735b75eec9 | [
"MIT"
] | 1 | 2017-06-02T07:17:22.000Z | 2017-06-02T07:17:22.000Z | test/views/layout_view_test.exs | mcampa/bigcommerce-elixir-app | f1fe40b2a456b49c09970a5317108316f054d5ec | [
"MIT"
] | 2 | 2017-06-08T22:06:44.000Z | 2017-06-10T21:08:34.000Z | backend/app/test/views/layout_view_test.exs | benjaminshafii/Span | c4235ac51eb56421fc874f79954ce2fe37d20b5d | [
"MIT"
] | null | null | null | defmodule App.LayoutViewTest do
use App.ConnCase, async: true
end
| 17 | 31 | 0.794118 |
abbfc482387da81964400971e8d81531592992c9 | 1,256 | exs | Elixir | config/config.exs | samparmenter/exw3 | 055d4fa082052fd55b5dd96c2591c6ef944ef94e | [
"Apache-2.0"
] | null | null | null | config/config.exs | samparmenter/exw3 | 055d4fa082052fd55b5dd96c2591c6ef944ef94e | [
"Apache-2.0"
] | null | null | null | config/config.exs | samparmenter/exw3 | 055d4fa082052fd55b5dd96c2591c6ef944ef94e | [
"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.
import 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 parent... | 35.885714 | 74 | 0.722134 |
abbfd7c450baf90aa975723bde9de5604f02f94b | 3,519 | ex | Elixir | apps/gitgud/test/support/data_factory.ex | anndream/gitgud | 0dee75547f86040df417def209bf62c33cd8dfec | [
"MIT"
] | 1 | 2019-09-08T07:48:10.000Z | 2019-09-08T07:48:10.000Z | apps/gitgud/test/support/data_factory.ex | anndream/gitgud | 0dee75547f86040df417def209bf62c33cd8dfec | [
"MIT"
] | null | null | null | apps/gitgud/test/support/data_factory.ex | anndream/gitgud | 0dee75547f86040df417def209bf62c33cd8dfec | [
"MIT"
] | null | null | null | defmodule GitGud.DataFactory do
@moduledoc """
This module provides functions to generate all kind of test data.
"""
alias GitGud.User
import Faker.Name, only: [name: 0]
import Faker.Internet, only: [user_name: 0]
import Faker.Lorem, only: [sentence: 1]
import Faker.Nato, only: [callsign: 0]
@doc "... | 25.875 | 130 | 0.633987 |
abbfdf59c05db23686f8f3b1c1d894e193541f94 | 236 | exs | Elixir | priv/repo/migrations/20210809142945_lock_users.exs | malav2110/oli-torus | 8af64e762a7c8a2058bd27a7ab8e96539ffc055f | [
"MIT"
] | 45 | 2020-04-17T15:40:27.000Z | 2022-03-25T00:13:30.000Z | priv/repo/migrations/20210809142945_lock_users.exs | malav2110/oli-torus | 8af64e762a7c8a2058bd27a7ab8e96539ffc055f | [
"MIT"
] | 944 | 2020-02-13T02:37:01.000Z | 2022-03-31T17:50:07.000Z | priv/repo/migrations/20210809142945_lock_users.exs | malav2110/oli-torus | 8af64e762a7c8a2058bd27a7ab8e96539ffc055f | [
"MIT"
] | 23 | 2020-07-28T03:36:13.000Z | 2022-03-17T14:29:02.000Z | defmodule Oli.Repo.Migrations.LockUsers do
use Ecto.Migration
def change do
alter table(:users) do
add :locked_at, :utc_datetime
end
alter table(:authors) do
add :locked_at, :utc_datetime
end
end
end
| 16.857143 | 42 | 0.677966 |
abc032a22e869f8c267e9e9de8d6fdecb58386f1 | 2,139 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/firewall_policy_list_warning.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/firewall_policy_list_warning.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/firewall_policy_list_warning.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 39.611111 | 194 | 0.723703 |
abc03e90dcaf11b591732c9113f6e96f97b40a4d | 158 | ex | Elixir | test/support/mocks.ex | SimpleBet/commanded | dc89737bd22daf4f6c5b3333b5d8d8de47fea5b8 | [
"MIT"
] | 1 | 2020-03-09T11:50:38.000Z | 2020-03-09T11:50:38.000Z | test/support/mocks.ex | perzanko/commanded | fd18ee3981cd237cbb874d1ccd8155e98d35d178 | [
"MIT"
] | null | null | null | test/support/mocks.ex | perzanko/commanded | fd18ee3981cd237cbb874d1ccd8155e98d35d178 | [
"MIT"
] | null | null | null | Mox.defmock(Commanded.EventStore.Adapters.Mock, for: Commanded.EventStore.Adapter)
Mox.defmock(Commanded.Commands.MockRouter, for: Commanded.Commands.Router)
| 52.666667 | 82 | 0.841772 |
abc03fc511933ea0ee9d739bd551a68049b2ee84 | 1,002 | ex | Elixir | lib/spaces/endpoint.ex | avinoth/spaces | 00bec5adf4568fef73b49e57808033295a837931 | [
"MIT"
] | 1 | 2016-09-13T10:40:53.000Z | 2016-09-13T10:40:53.000Z | lib/spaces/endpoint.ex | avinoth/spaces | 00bec5adf4568fef73b49e57808033295a837931 | [
"MIT"
] | null | null | null | lib/spaces/endpoint.ex | avinoth/spaces | 00bec5adf4568fef73b49e57808033295a837931 | [
"MIT"
] | null | null | null | defmodule Spaces.Endpoint do
use Phoenix.Endpoint, otp_app: :spaces
socket "/socket", Spaces.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,
... | 25.05 | 69 | 0.707585 |
abc04f95e2643fc21ff1d314db7148ac51f940fe | 673 | ex | Elixir | lib/models/stopped_partition.ex | botsunit/wok_async | 466f16057ec6af1cb12990b2edd33a34aab7f8ec | [
"BSD-3-Clause"
] | null | null | null | lib/models/stopped_partition.ex | botsunit/wok_async | 466f16057ec6af1cb12990b2edd33a34aab7f8ec | [
"BSD-3-Clause"
] | null | null | null | lib/models/stopped_partition.ex | botsunit/wok_async | 466f16057ec6af1cb12990b2edd33a34aab7f8ec | [
"BSD-3-Clause"
] | null | null | null | defmodule WokAsyncMessageHandler.Models.StoppedPartition do
use Ecto.Schema
import Ecto.Changeset
@type t :: %__MODULE__{}
@accepted_params ~w(topic partition message_id error)a
@required_params ~w(topic partition message_id error)a
schema "stopped_partitions" do
field :topic, :string
field :par... | 23.206897 | 59 | 0.725111 |
abc05eca2cbbf992381822fdb63d81e79dee3e9f | 174 | exs | Elixir | test/opentelemetry_jaeger_test.exs | sadesyllas/opentelemetry_jaeger | 5d2719b810717c6674838dd08ff76d22e470313d | [
"MIT"
] | null | null | null | test/opentelemetry_jaeger_test.exs | sadesyllas/opentelemetry_jaeger | 5d2719b810717c6674838dd08ff76d22e470313d | [
"MIT"
] | null | null | null | test/opentelemetry_jaeger_test.exs | sadesyllas/opentelemetry_jaeger | 5d2719b810717c6674838dd08ff76d22e470313d | [
"MIT"
] | null | null | null | defmodule OpenTelemetryJaegerTest do
use ExUnit.Case
doctest OpenTelemetryJaeger
test "greets the world" do
assert OpenTelemetryJaeger.hello() == :world
end
end
| 19.333333 | 48 | 0.770115 |
abc067763e7c5f125c1de13c62db60137e7023a2 | 73 | exs | Elixir | apps/local_ledger/test/local_ledger_test.exs | vanmil/ewallet | 6c1aca95a83e0a9d93007670a40d8c45764a8122 | [
"Apache-2.0"
] | 2 | 2019-07-13T05:49:03.000Z | 2021-08-19T23:58:23.000Z | apps/local_ledger/test/local_ledger_test.exs | vanmil/ewallet | 6c1aca95a83e0a9d93007670a40d8c45764a8122 | [
"Apache-2.0"
] | null | null | null | apps/local_ledger/test/local_ledger_test.exs | vanmil/ewallet | 6c1aca95a83e0a9d93007670a40d8c45764a8122 | [
"Apache-2.0"
] | 3 | 2018-05-08T17:15:42.000Z | 2021-11-10T04:08:33.000Z | defmodule LocalLedgerTest do
use ExUnit.Case
doctest LocalLedger
end
| 14.6 | 28 | 0.821918 |
abc09a3ab4c60fc5fecac6f1b572242ed5562424 | 1,057 | ex | Elixir | lib/sobelow/dos/string_to_atom.ex | rahiparikh/sobelow | ed2ff5ea2648a1decb8d43b35100f833a1aa6c95 | [
"Apache-2.0"
] | null | null | null | lib/sobelow/dos/string_to_atom.ex | rahiparikh/sobelow | ed2ff5ea2648a1decb8d43b35100f833a1aa6c95 | [
"Apache-2.0"
] | null | null | null | lib/sobelow/dos/string_to_atom.ex | rahiparikh/sobelow | ed2ff5ea2648a1decb8d43b35100f833a1aa6c95 | [
"Apache-2.0"
] | null | null | null | defmodule Sobelow.DOS.StringToAtom do
@moduledoc """
# Denial of Service via `String.to_atom`
In Elixir, atoms are not garbage collected. As such, if user input
is passed to the `String.to_atom` function, it may result in memory
exhaustion. Prefer the `String.to_existing_atom` function for untrusted
user i... | 26.425 | 73 | 0.66509 |
abc09c454af7b926f385daccf5579ff070abc7e8 | 596 | ex | Elixir | lib/bankapi.ex | guibes/bankapi | df43b30e7a845d0509b17c1086c70ab651b97c42 | [
"MIT"
] | null | null | null | lib/bankapi.ex | guibes/bankapi | df43b30e7a845d0509b17c1086c70ab651b97c42 | [
"MIT"
] | 24 | 2021-03-26T17:42:17.000Z | 2021-03-31T11:47:17.000Z | lib/bankapi.ex | guibes/bankapi | df43b30e7a845d0509b17c1086c70ab651b97c42 | [
"MIT"
] | 1 | 2021-03-26T17:49:53.000Z | 2021-03-26T17:49:53.000Z | defmodule Bankapi do
@moduledoc """
Bankapi keeps the contexts that define your domain
and business logic.
Contexts are also responsible for managing your data, regardless
if it comes from the database, an external API or others.
"""
alias Bankapi.User.Create, as: UserCreate
alias Bankapi.User.Update, ... | 35.058824 | 73 | 0.768456 |
abc0a4ba4a794d1485916e99c10470b12eb2358f | 253 | ex | Elixir | lib/ua_inspector/storage/state.ex | elixir-twister/ua_inspector | 70642c66c9562d6879fd462e2f9993edb8ab4ce1 | [
"Apache-2.0"
] | null | null | null | lib/ua_inspector/storage/state.ex | elixir-twister/ua_inspector | 70642c66c9562d6879fd462e2f9993edb8ab4ce1 | [
"Apache-2.0"
] | null | null | null | lib/ua_inspector/storage/state.ex | elixir-twister/ua_inspector | 70642c66c9562d6879fd462e2f9993edb8ab4ce1 | [
"Apache-2.0"
] | 1 | 2020-01-30T18:55:12.000Z | 2020-01-30T18:55:12.000Z | defmodule UAInspector.Storage.State do
@moduledoc """
State definition for storage processes.
"""
defstruct [
ets_index: 0,
ets_tid: nil
]
@opaque t :: %__MODULE__{
ets_index: non_neg_integer,
ets_tid: :ets.tid
}
end
| 15.8125 | 41 | 0.644269 |
abc0a5e5088e26672408f5738a1443843c496f18 | 886 | ex | Elixir | clients/cloud_build/lib/google_api/cloud_build/v1/metadata.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/cloud_build/lib/google_api/cloud_build/v1/metadata.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/cloud_build/lib/google_api/cloud_build/v1/metadata.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 32.814815 | 74 | 0.759594 |
abc0b502e3c1d5198221c1be61d034db2f1e16dc | 1,263 | exs | Elixir | config/dev.exs | knewter/s3_direct | 10bfcf7c8fc9301a63d28bcce7c5245ec1946e97 | [
"MIT"
] | 17 | 2016-10-19T02:02:19.000Z | 2021-11-08T11:20:45.000Z | config/dev.exs | knewter/s3_direct | 10bfcf7c8fc9301a63d28bcce7c5245ec1946e97 | [
"MIT"
] | 1 | 2016-10-20T11:56:12.000Z | 2016-10-24T04:34:07.000Z | config/dev.exs | knewter/s3_direct | 10bfcf7c8fc9301a63d28bcce7c5245ec1946e97 | [
"MIT"
] | 2 | 2017-01-15T21:49:45.000Z | 2020-12-06T06:20:49.000Z | 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 :s3_direct, S3Direct.Endpoint,
http: [port: 40... | 30.071429 | 73 | 0.697546 |
abc0c55a1a658c97600395eb35766ecdb9e2b972 | 197 | exs | Elixir | priv/repo/migrations/20160303081329_create_geo_model.exs | joekain/oid_migration_issue | b92329d5f43c0548da5ef5099913ae5aa96a8e8b | [
"MIT"
] | null | null | null | priv/repo/migrations/20160303081329_create_geo_model.exs | joekain/oid_migration_issue | b92329d5f43c0548da5ef5099913ae5aa96a8e8b | [
"MIT"
] | null | null | null | priv/repo/migrations/20160303081329_create_geo_model.exs | joekain/oid_migration_issue | b92329d5f43c0548da5ef5099913ae5aa96a8e8b | [
"MIT"
] | null | null | null | defmodule OidMigrationIssue.Repo.Migrations.CreateGeoModel do
use Ecto.Migration
def change do
create table(:geo_models) do
add :geom, :geometry
timestamps
end
end
end
| 15.153846 | 61 | 0.71066 |
abc0cab51c2a38953c36cf98cd5eb9e32a3f8018 | 1,214 | ex | Elixir | web/views/error_helpers.ex | joaoevangelista/iss-phoenix | ad30fa88ebe1172a1e14f22896edf73e97490ce5 | [
"MIT"
] | null | null | null | web/views/error_helpers.ex | joaoevangelista/iss-phoenix | ad30fa88ebe1172a1e14f22896edf73e97490ce5 | [
"MIT"
] | null | null | null | web/views/error_helpers.ex | joaoevangelista/iss-phoenix | ad30fa88ebe1172a1e14f22896edf73e97490ce5 | [
"MIT"
] | null | null | null | defmodule ISS.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(error), clas... | 29.609756 | 69 | 0.663921 |
abc0f361aab49e04b2e6aa0bf8ef38871b9e2aa5 | 25,663 | ex | Elixir | lib/elixir/lib/list.ex | CaldwellYSR/elixir | 9bc852b95c9e1d910e643604148bedc2aa6e03d4 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/list.ex | CaldwellYSR/elixir | 9bc852b95c9e1d910e643604148bedc2aa6e03d4 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/list.ex | CaldwellYSR/elixir | 9bc852b95c9e1d910e643604148bedc2aa6e03d4 | [
"Apache-2.0"
] | null | null | null | defmodule List do
@moduledoc """
Functions that work on (linked) lists.
Many of the functions provided for lists, which implement
the `Enumerable` protocol, are found in the `Enum` module.
Additionally, the following functions and operators for lists are
found in `Kernel`:
* `++/2`
* `--/2`
*... | 24.256144 | 92 | 0.603554 |
abc0f6fa85c914cb17d4f3ba7a413c072b1736d1 | 2,252 | ex | Elixir | lib/codi/stage/commit.ex | ianrumford/plymio_codi | 1163b139df0ed344e63597e563637c091ffe1f5e | [
"MIT"
] | null | null | null | lib/codi/stage/commit.ex | ianrumford/plymio_codi | 1163b139df0ed344e63597e563637c091ffe1f5e | [
"MIT"
] | null | null | null | lib/codi/stage/commit.ex | ianrumford/plymio_codi | 1163b139df0ed344e63597e563637c091ffe1f5e | [
"MIT"
] | null | null | null | defmodule Plymio.Codi.Stage.Commit do
@moduledoc false
require Plymio.Vekil.Utility, as: VEKILUTIL
alias Plymio.Codi, as: CODI
use Plymio.Fontais.Attribute
use Plymio.Vekil.Attribute
use Plymio.Codi.Attribute
@codi_opts [
{@plymio_vekil_key_vekil, Plymio.Vekil.Codi.__vekil__()}
]
@type t :: %C... | 25.303371 | 87 | 0.611901 |
abc0fcf6643ecb8bd71eba2adefac37896fbc930 | 1,837 | exs | Elixir | exercise-tracker/config/prod.exs | dalamilla/phoenix-projects | 52654fb0d3ff7d5b556569dac5c0863e230e3a00 | [
"MIT"
] | null | null | null | exercise-tracker/config/prod.exs | dalamilla/phoenix-projects | 52654fb0d3ff7d5b556569dac5c0863e230e3a00 | [
"MIT"
] | null | null | null | exercise-tracker/config/prod.exs | dalamilla/phoenix-projects | 52654fb0d3ff7d5b556569dac5c0863e230e3a00 | [
"MIT"
] | null | null | null | import Config
# For production, don't forget to configure the url host
# to something meaningful, Phoenix uses this information
# when generating URLs.
#
# Note we also include the path to a cache manifest
# containing the digested version of static files. This
# manifest is generated by the `mix phx.digest` task,
# w... | 36.74 | 111 | 0.715841 |
abc0fd767a68332e1805271c18a76f03c4fdd886 | 9,827 | exs | Elixir | test/elixir/test/cookie_auth_test.exs | mtenrero/couchdb-vetcontrol | b7ede3ededdf0072c73f08d8f1217cb723b03f7a | [
"Apache-2.0"
] | null | null | null | test/elixir/test/cookie_auth_test.exs | mtenrero/couchdb-vetcontrol | b7ede3ededdf0072c73f08d8f1217cb723b03f7a | [
"Apache-2.0"
] | null | null | null | test/elixir/test/cookie_auth_test.exs | mtenrero/couchdb-vetcontrol | b7ede3ededdf0072c73f08d8f1217cb723b03f7a | [
"Apache-2.0"
] | null | null | null | defmodule CookieAuthTest do
use CouchTestCase
@moduletag :authentication
@users_db "_users"
@moduletag config: [
{
"chttpd_auth",
"authentication_db",
@users_db
},
{
"couch_httpd_auth",
... | 24.815657 | 83 | 0.588786 |
abc165ae17a8f138ca60469e96ea44b08ae7f52c | 2,419 | ex | Elixir | clients/run/lib/google_api/run/v1/model/resource_requirements.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/run/lib/google_api/run/v1/model/resource_requirements.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/run/lib/google_api/run/v1/model/resource_requirements.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... | 48.38 | 552 | 0.742042 |
abc187cb36839be8e83da53ed930e1391c4ee5f4 | 3,820 | ex | Elixir | clients/firebase/lib/google_api/firebase/v1beta1/api/operations.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/firebase/lib/google_api/firebase/v1beta1/api/operations.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/firebase/lib/google_api/firebase/v1beta1/api/operations.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.921348 | 196 | 0.65288 |
abc1e53675cdde6c72a1c65a6cccfd346f942426 | 646 | exs | Elixir | test/support/schema.exs | CherryMan/bourne | 27f9206f9c172cb02f6191594ff2940fcbc34e07 | [
"Unlicense"
] | 75 | 2017-03-10T01:12:12.000Z | 2022-01-03T00:52:05.000Z | test/support/schema.exs | CherryMan/bourne | 27f9206f9c172cb02f6191594ff2940fcbc34e07 | [
"Unlicense"
] | 9 | 2017-04-27T14:57:21.000Z | 2019-12-05T17:35:26.000Z | test/support/schema.exs | CherryMan/bourne | 27f9206f9c172cb02f6191594ff2940fcbc34e07 | [
"Unlicense"
] | 16 | 2017-03-05T06:29:35.000Z | 2022-03-14T07:57:08.000Z | defmodule Bourne.Test.Actor do
use Ecto.Schema
schema "actors" do
field :name, :string
has_many :credits, Bourne.Test.Credit
has_many :movies, through: [:credits, :movie]
timestamps()
end
end
defmodule Bourne.Test.Movie do
use Ecto.Schema
schema "movies" do
field :title, :string
f... | 17 | 49 | 0.687307 |
abc1fca2f1a0e25c8f1e618beb99cbd86d4f13a7 | 1,157 | exs | Elixir | apps/data/test/lib/schemas/opportunity_test.exs | elixirschool/extracurricular | eb8b725fa49ca91b1c6b7e610a8522bc81a80de1 | [
"MIT"
] | 48 | 2017-08-21T02:08:16.000Z | 2022-01-05T14:02:56.000Z | apps/data/test/lib/schemas/opportunity_test.exs | elixirschool/extracurricular | eb8b725fa49ca91b1c6b7e610a8522bc81a80de1 | [
"MIT"
] | 68 | 2017-08-21T02:17:32.000Z | 2017-11-09T15:56:27.000Z | apps/data/test/lib/schemas/opportunity_test.exs | elixirschool/extracurricular | eb8b725fa49ca91b1c6b7e610a8522bc81a80de1 | [
"MIT"
] | 26 | 2017-08-21T04:28:22.000Z | 2018-12-09T14:20:29.000Z | defmodule Data.OpportunityTest do
use Data.DataCase
import Data.Factory
alias Data.Opportunity
test "opportunity is invalid without a title" do
attributes = %{level: "starter", project: insert(:project).id, url: "https://example.com/tracker/1"}
changeset = Opportunity.changeset(%Opportunity{}, attrib... | 30.447368 | 116 | 0.701815 |
abc22148f126d1583926fdaea32ce4409e3c7224 | 1,499 | exs | Elixir | test/attr_reader_test.exs | vKxni/attr_reader | a262d578d9b35601a755fed363024a5f7b83eb0f | [
"Apache-2.0"
] | 11 | 2022-02-08T15:02:11.000Z | 2022-03-27T02:42:30.000Z | test/attr_reader_test.exs | vKxni/attr_reader | a262d578d9b35601a755fed363024a5f7b83eb0f | [
"Apache-2.0"
] | 3 | 2022-02-08T14:43:24.000Z | 2022-03-10T01:26:36.000Z | test/attr_reader_test.exs | vKxni/attr_reader | a262d578d9b35601a755fed363024a5f7b83eb0f | [
"Apache-2.0"
] | 1 | 2022-03-09T16:40:13.000Z | 2022-03-09T16:40:13.000Z | defmodule AttrReaderTest do
use ExUnit.Case
doctest AttrReader
defmodule UseAttrReader do
@a :a_value
@b :b_value
use AttrReader
@c [:c_value]
end
defmodule UseAttrReaderMacro do
AttrReader.define(@a)
AttrReader.define(@b, :b_value)
AttrReader.define(@c, :c_value)
AttrReader.... | 22.712121 | 49 | 0.667779 |
abc2373dddc9acf3525ef8514a5bd0cdb05e7244 | 66 | ex | Elixir | web/views/episode_view.ex | thluiz/yehudimtv | 71aba0ee537b4bba28474fb20d3209fc261a03d7 | [
"MIT"
] | null | null | null | web/views/episode_view.ex | thluiz/yehudimtv | 71aba0ee537b4bba28474fb20d3209fc261a03d7 | [
"MIT"
] | null | null | null | web/views/episode_view.ex | thluiz/yehudimtv | 71aba0ee537b4bba28474fb20d3209fc261a03d7 | [
"MIT"
] | null | null | null | defmodule Yehudimtv.EpisodeView do
use Yehudimtv.Web, :view
end
| 16.5 | 34 | 0.80303 |
abc2394eb170a8cd76964c6d6bce62f1a8480a29 | 22,978 | ex | Elixir | lib/ecto/adapters/sql/sandbox.ex | soundmonster/ecto_sql | 83af511732007a5af0b6601e8376f24553a466e1 | [
"Apache-2.0"
] | 1 | 2019-11-11T21:48:20.000Z | 2019-11-11T21:48:20.000Z | deps/ecto_sql/lib/ecto/adapters/sql/sandbox.ex | rwtrecs/rocketseat-nlw5-inmana | 8ce8bc32e0bdd005c423394bb163945747b557e2 | [
"MIT"
] | 3 | 2021-06-20T14:51:14.000Z | 2021-06-25T00:56:11.000Z | deps/ecto_sql/lib/ecto/adapters/sql/sandbox.ex | rwtrecs/rocketseat-nlw5-inmana | 8ce8bc32e0bdd005c423394bb163945747b557e2 | [
"MIT"
] | null | null | null | defmodule Ecto.Adapters.SQL.Sandbox do
@moduledoc ~S"""
A pool for concurrent transactional tests.
The sandbox pool is implemented on top of an ownership mechanism.
When started, the pool is in automatic mode, which means the
repository will automatically check connections out as with any
other pool.
Th... | 36.70607 | 100 | 0.693185 |
abc2411bc189824fbc05d37f4ba9723bf3fac349 | 4,389 | ex | Elixir | lib/inflex/pluralize.ex | mileandra/inflex | 9eaaff764a12b51435c5bdd28c998564e4b9f4c8 | [
"Apache-2.0"
] | null | null | null | lib/inflex/pluralize.ex | mileandra/inflex | 9eaaff764a12b51435c5bdd28c998564e4b9f4c8 | [
"Apache-2.0"
] | null | null | null | lib/inflex/pluralize.ex | mileandra/inflex | 9eaaff764a12b51435c5bdd28c998564e4b9f4c8 | [
"Apache-2.0"
] | null | null | null | defmodule Inflex.Pluralize do
@moduledoc false
@default true
@uncountable [
"aircraft",
"bellows",
"bison",
"deer",
"equipment",
"fish",
"hovercraft",
"information",
"jeans",
"means",
"measles",
"money",
"moose",
"news",
"pants",
"police",
"ric... | 27.603774 | 91 | 0.453406 |
abc275c4e2ceaf92f589499b7c1b902d04969e86 | 39,960 | ex | Elixir | lib/phoenix/endpoint.ex | coderberry/phoenix | 9abaa84ea675d3db97cfba77745e76300acb6fd2 | [
"MIT"
] | null | null | null | lib/phoenix/endpoint.ex | coderberry/phoenix | 9abaa84ea675d3db97cfba77745e76300acb6fd2 | [
"MIT"
] | null | null | null | lib/phoenix/endpoint.ex | coderberry/phoenix | 9abaa84ea675d3db97cfba77745e76300acb6fd2 | [
"MIT"
] | null | null | null | defmodule Phoenix.Endpoint do
@moduledoc ~S"""
Defines a Phoenix endpoint.
The endpoint is the boundary where all requests to your
web application start. It is also the interface your
application provides to the underlying web servers.
Overall, an endpoint has three responsibilities:
* to provide a w... | 47.913669 | 10,136 | 0.752177 |
abc28dd2421236a86dfc162318ea53301f1146ee | 247 | ex | Elixir | lib/langue/utils/serializer.ex | suryatmodulus/accent | 6aaf34075c33f3d9d84d38237af4a39b594eb808 | [
"BSD-3-Clause"
] | 806 | 2018-04-07T20:40:33.000Z | 2022-03-30T01:39:57.000Z | lib/langue/utils/serializer.ex | suryatmodulus/accent | 6aaf34075c33f3d9d84d38237af4a39b594eb808 | [
"BSD-3-Clause"
] | 194 | 2018-04-07T13:49:37.000Z | 2022-03-30T19:58:45.000Z | lib/langue/utils/serializer.ex | doc-ai/accent | e337e16f3658cc0728364f952c0d9c13710ebb06 | [
"BSD-3-Clause"
] | 89 | 2018-04-09T13:55:49.000Z | 2022-03-24T07:09:31.000Z | defmodule Langue.Formatter.Serializer do
alias Langue.Formatter.ParserResult, as: Input
alias Langue.Formatter.SerializerResult, as: Output
@type result :: {:ok, Output.t()} | {:error, any()}
@callback serialize(Input.t()) :: result
end
| 27.444444 | 53 | 0.720648 |
abc290eb877998fba5c8f797d345271a94cdbf5a | 2,277 | exs | Elixir | mix.exs | mbertheau/teslamate | a3303c65e93dc0b295d9cc810a042fbc874037ad | [
"MIT"
] | null | null | null | mix.exs | mbertheau/teslamate | a3303c65e93dc0b295d9cc810a042fbc874037ad | [
"MIT"
] | 94 | 2020-10-26T06:28:30.000Z | 2022-03-30T15:03:41.000Z | mix.exs | wooter/teslamate | 7d1b59cf6b0a58c039da3ee0bcd16e171190b4d2 | [
"MIT"
] | null | null | null | defmodule TeslaMate.MixProject do
use Mix.Project
def project do
[
app: :teslamate,
version: version(),
elixir: "~> 1.10",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix, :gettext] ++ Mix.compilers(),
start_permanent: Mix.env() == :prod,
aliases: aliases... | 24.75 | 71 | 0.494949 |
abc2a612d76d23f8e8886dded13af6aa1de813cf | 2,557 | exs | Elixir | config/runtime.exs | nicholasgriffen/blanche | 3ac766a2d9dae0ecd46644e73f5335efb6f1d1b2 | [
"Apache-2.0"
] | 1 | 2021-09-07T22:04:06.000Z | 2021-09-07T22:04:06.000Z | config/runtime.exs | nicholasgriffen/blanche | 3ac766a2d9dae0ecd46644e73f5335efb6f1d1b2 | [
"Apache-2.0"
] | null | null | null | config/runtime.exs | nicholasgriffen/blanche | 3ac766a2d9dae0ecd46644e73f5335efb6f1d1b2 | [
"Apache-2.0"
] | 1 | 2021-09-11T02:04:47.000Z | 2021-09-11T02:04:47.000Z | import Config
# config/runtime.exs is executed for all environments, including
# during releases. It is executed after compilation and before the
# system starts, so it is typically used to load production configuration
# and secrets from environment variables or elsewhere. Do not define
# any compile-time configurati... | 36.528571 | 82 | 0.689871 |
abc2aaa0f37a914a151930d5a63e89298301c883 | 2,165 | ex | Elixir | clients/content/lib/google_api/content/v2/model/account_you_tube_channel_link.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/content/lib/google_api/content/v2/model/account_you_tube_channel_link.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/model/account_you_tube_channel_link.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 ... | 43.3 | 715 | 0.74873 |
abc2ad56972107b7efd43835624bb78a71fca150 | 102 | exs | Elixir | test/ex_unit_timer_test.exs | pinfieldharm/ex_unit_timer | 962c8f1aeea613d301e9ffd07da7dfbe8c9cea40 | [
"Apache-2.0"
] | 1 | 2015-10-10T00:34:35.000Z | 2015-10-10T00:34:35.000Z | test/ex_unit_timer_test.exs | pinfieldharm/ex_unit_timer | 962c8f1aeea613d301e9ffd07da7dfbe8c9cea40 | [
"Apache-2.0"
] | 1 | 2020-06-24T18:31:59.000Z | 2020-06-24T18:31:59.000Z | test/ex_unit_timer_test.exs | pinfieldharm/ex_unit_timer | 962c8f1aeea613d301e9ffd07da7dfbe8c9cea40 | [
"Apache-2.0"
] | null | null | null | defmodule ExUnitTimerTest do
use ExUnit.Case
test "the truth" do
assert 1 + 1 == 2
end
end
| 12.75 | 28 | 0.666667 |
abc32683e78c884aff8eec73cc739fd2f36dadd7 | 120 | exs | Elixir | test/mailchimp_test.exs | AlluringLabs/mailchimp-elixir | 0196fdf08ebddc328aa1b67f69feefe85d15a24e | [
"MIT"
] | 1 | 2016-02-13T04:37:28.000Z | 2016-02-13T04:37:28.000Z | test/mailchimp_test.exs | AlluringLabs/mailchimp-elixir | 0196fdf08ebddc328aa1b67f69feefe85d15a24e | [
"MIT"
] | null | null | null | test/mailchimp_test.exs | AlluringLabs/mailchimp-elixir | 0196fdf08ebddc328aa1b67f69feefe85d15a24e | [
"MIT"
] | null | null | null | defmodule MailchimpTest do
use ExUnit.Case
doctest Mailchimp
test "the truth" do
assert 1 + 1 == 2
end
end
| 13.333333 | 26 | 0.683333 |
abc3447829ceada376bd52beb24c529a2a96498b | 95 | exs | Elixir | test/test_helper.exs | elixir-inspector/ua_inspector_plug | cdbec27faa92c0d416f66a18cf617565954f1a2c | [
"Apache-2.0"
] | 2 | 2019-04-24T15:39:43.000Z | 2020-01-13T20:37:16.000Z | test/test_helper.exs | elixir-inspector/ua_inspector_plug | cdbec27faa92c0d416f66a18cf617565954f1a2c | [
"Apache-2.0"
] | null | null | null | test/test_helper.exs | elixir-inspector/ua_inspector_plug | cdbec27faa92c0d416f66a18cf617565954f1a2c | [
"Apache-2.0"
] | null | null | null | :ok = UAInspector.Downloader.download()
:ok = UAInspector.reload(async: false)
ExUnit.start()
| 19 | 39 | 0.747368 |
abc34b6abee9af9256de46f14757b86a5c592cd4 | 1,141 | exs | Elixir | config/config.exs | mugimaru73/adventofcode2018 | 24ff5b2b8327b17b3242d3167bf7cc691199da86 | [
"MIT"
] | 1 | 2018-12-03T11:24:19.000Z | 2018-12-03T11:24:19.000Z | config/config.exs | mugimaru73/adventofcode2018 | 24ff5b2b8327b17b3242d3167bf7cc691199da86 | [
"MIT"
] | null | null | null | config/config.exs | mugimaru73/adventofcode2018 | 24ff5b2b8327b17b3242d3167bf7cc691199da86 | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on this project, this
# file won't be loaded nor affect the paren... | 36.806452 | 73 | 0.755478 |
abc35a93546a8d2ceca0cecf8b873239e1fb7ebb | 2,935 | exs | Elixir | mix.exs | alex-min/ex_platform | 73dea336ee939d8155b4b5953146351af30edd66 | [
"MIT"
] | 129 | 2021-05-30T10:10:59.000Z | 2022-03-27T14:42:48.000Z | mix.exs | alex-min/ex_platform | 73dea336ee939d8155b4b5953146351af30edd66 | [
"MIT"
] | 48 | 2021-05-30T21:34:03.000Z | 2022-02-21T14:20:04.000Z | mix.exs | alex-min/ex_platform | 73dea336ee939d8155b4b5953146351af30edd66 | [
"MIT"
] | 12 | 2021-05-30T22:03:49.000Z | 2022-02-08T19:59:16.000Z | defmodule ExPlatform.MixProject do
use Mix.Project
def project do
[
app: :ex_platform,
version: "0.1.0",
elixir: "~> 1.7",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix, :gettext] ++ Mix.compilers(),
start_permanent: Mix.env() == :prod,
aliases: aliases... | 28.495146 | 89 | 0.548552 |
abc3926e865e5dcf9c1e2af0f6413b5bf7ea9066 | 8,640 | exs | Elixir | test/rpc_test.exs | kianmeng/tds | 36f228275c2bfde2baa45fe70d29d1eb1d44379b | [
"Apache-2.0"
] | null | null | null | test/rpc_test.exs | kianmeng/tds | 36f228275c2bfde2baa45fe70d29d1eb1d44379b | [
"Apache-2.0"
] | null | null | null | test/rpc_test.exs | kianmeng/tds | 36f228275c2bfde2baa45fe70d29d1eb1d44379b | [
"Apache-2.0"
] | 1 | 2021-09-07T15:25:40.000Z | 2021-09-07T15:25:40.000Z | defmodule RPCTest do
@moduledoc false
import Tds.TestHelper
require Logger
use ExUnit.Case, async: false
alias Tds.Parameter
@tag timeout: 50_000
setup do
opts = Application.fetch_env!(:tds, :opts)
# |> Keyword.put(:after_connect, {Tds, :query!, ["SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTE... | 26.181818 | 141 | 0.509144 |
abc39868df60c1b91ae33061ee02b108ba3b4227 | 1,905 | ex | Elixir | clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/monitoring_destination.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/monitoring_destination.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/monitoring_destination.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... | 35.943396 | 125 | 0.744357 |
abc3a281f8a03b5e709068c3b45517a6665fad0f | 3,123 | ex | Elixir | lib/koans/03_numbers.ex | svwielga4/elixir-koans | b41141ce87a71648f4a9b1cb8b14aea725be1634 | [
"MIT"
] | 1 | 2018-03-12T18:42:56.000Z | 2018-03-12T18:42:56.000Z | lib/koans/03_numbers.ex | svwielga4/elixir-koans | b41141ce87a71648f4a9b1cb8b14aea725be1634 | [
"MIT"
] | null | null | null | lib/koans/03_numbers.ex | svwielga4/elixir-koans | b41141ce87a71648f4a9b1cb8b14aea725be1634 | [
"MIT"
] | null | null | null | defmodule Numbers do
require Integer
use Koans
@intro "Why is the number six so scared? Because seven eight nine!\nWe should get to know numbers a bit more!"
koan "Is an integer equal to its float equivalent?" do
assert 1 == 1.0 == true
end
koan "Is an integer threequal to its float equivalent?" do
... | 23.839695 | 112 | 0.639129 |
abc3ad9f25ac2e314317ca92fc278cc29469519d | 1,428 | ex | Elixir | lib/mix/lib/mix/tasks/clean.ex | davidsulc/elixir | dd4fd6ab742acd75862e34e26dbdb86e0cf6453f | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/tasks/clean.ex | davidsulc/elixir | dd4fd6ab742acd75862e34e26dbdb86e0cf6453f | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/tasks/clean.ex | davidsulc/elixir | dd4fd6ab742acd75862e34e26dbdb86e0cf6453f | [
"Apache-2.0"
] | null | null | null | defmodule Mix.Tasks.Clean do
use Mix.Task
@shortdoc "Deletes generated application files"
@recursive true
@moduledoc """
Deletes generated application files.
This command deletes all build artifacts for the current project.
Dependencies' sources and build files are cleaned only if the
`--deps` option... | 26.444444 | 101 | 0.632353 |
abc3da1e40f162fa92410e759551b4ba1b0823f2 | 7,308 | exs | Elixir | test/cgrates_web_jsonapi_web/controllers/tp_filter_controller_test.exs | max-konin/cgrates_web_jsonapi | e82690e343d790b0f77dea6699483fcb6fd8a162 | [
"MIT"
] | 2 | 2018-10-03T07:41:32.000Z | 2021-03-21T11:27:27.000Z | test/cgrates_web_jsonapi_web/controllers/tp_filter_controller_test.exs | max-konin/cgrates_web_jsonapi | e82690e343d790b0f77dea6699483fcb6fd8a162 | [
"MIT"
] | 1 | 2018-10-31T04:55:59.000Z | 2018-10-31T04:55:59.000Z | test/cgrates_web_jsonapi_web/controllers/tp_filter_controller_test.exs | max-konin/cgrates_web_jsonapi | e82690e343d790b0f77dea6699483fcb6fd8a162 | [
"MIT"
] | 5 | 2018-09-27T11:30:44.000Z | 2021-01-16T08:28:58.000Z | defmodule CgratesWebJsonapi.TariffPlans.TpFilterControllerTest do
use CgratesWebJsonapi.ConnCase
alias CgratesWebJsonapi.TariffPlans.TpFilter
alias CgratesWebJsonapi.Repo
import CgratesWebJsonapi.Factory
import CgratesWebJsonapi.Guardian
setup do
user = insert(:user)
{:ok, token, _} = encode_and... | 30.45 | 100 | 0.593596 |
abc3f4a7f066c0fb192e7df05cf030b47f86a4fe | 254 | exs | Elixir | 04pipe-operator/06bpipe.exs | kamranhossain/elixir-fundamental-nauman | 6e8251976c37e1a3001d57e4eb67284d860b8d29 | [
"MIT"
] | 1 | 2020-07-08T05:25:36.000Z | 2020-07-08T05:25:36.000Z | 04pipe-operator/06bpipe.exs | kamranhossain/elixir-fundamental-nauman | 6e8251976c37e1a3001d57e4eb67284d860b8d29 | [
"MIT"
] | null | null | null | 04pipe-operator/06bpipe.exs | kamranhossain/elixir-fundamental-nauman | 6e8251976c37e1a3001d57e4eb67284d860b8d29 | [
"MIT"
] | null | null | null | defmodule PipeTest do
def square(x), do: x * x
def sum(l, start \\ 0) do
start + Enum.sum(l)
end
# with start argument sum(2)
def sst(the_list) do
the_list
|> tl
|> sum(2)
|> square
end
end
IO.puts PipeTest.sst([1,2,5])
| 13.368421 | 29 | 0.57874 |
abc3f50c6efa78f9cb9200652d36f0257c251c94 | 799 | ex | Elixir | lib/grizzly/zwave/commands/barrier_operator_signal_supported_get.ex | smartrent/grizzly | 65a397ea7bfedb5518fe63a3f058a0b6af473e39 | [
"Apache-2.0"
] | 76 | 2019-09-04T16:56:58.000Z | 2022-03-29T06:54:36.000Z | lib/grizzly/zwave/commands/barrier_operator_signal_supported_get.ex | smartrent/grizzly | 65a397ea7bfedb5518fe63a3f058a0b6af473e39 | [
"Apache-2.0"
] | 124 | 2019-09-05T14:01:24.000Z | 2022-02-28T22:58:14.000Z | lib/grizzly/zwave/commands/barrier_operator_signal_supported_get.ex | smartrent/grizzly | 65a397ea7bfedb5518fe63a3f058a0b6af473e39 | [
"Apache-2.0"
] | 10 | 2019-10-23T19:25:45.000Z | 2021-11-17T13:21:20.000Z | defmodule Grizzly.ZWave.Commands.BarrierOperatorSignalSupportedGet do
@moduledoc """
This command is used to query a device for available subsystems which may be controlled via Z-Wave.
Params: -none-
"""
@behaviour Grizzly.ZWave.Command
alias Grizzly.ZWave.Command
alias Grizzly.ZWave.CommandClasses.Ba... | 21.594595 | 101 | 0.703379 |
abc41ec5a803d8aba7a67d183a5b684feb8a0d77 | 825 | ex | Elixir | samples/client/petstore/elixir/lib/openapi_petstore/model/enum_test.ex | GitHub30/openapi-generator | 790f3d46aa5e6510d6f3701022d224f5f38fc73c | [
"Apache-2.0"
] | 1 | 2021-05-06T18:52:46.000Z | 2021-05-06T18:52:46.000Z | samples/client/petstore/elixir/lib/openapi_petstore/model/enum_test.ex | GitHub30/openapi-generator | 790f3d46aa5e6510d6f3701022d224f5f38fc73c | [
"Apache-2.0"
] | null | null | null | samples/client/petstore/elixir/lib/openapi_petstore/model/enum_test.ex | GitHub30/openapi-generator | 790f3d46aa5e6510d6f3701022d224f5f38fc73c | [
"Apache-2.0"
] | 3 | 2018-10-18T17:55:30.000Z | 2020-05-14T16:57:01.000Z | # NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
# https://openapi-generator.tech
# Do not edit the class manually.
defmodule OpenapiPetstore.Model.EnumTest do
@moduledoc """
"""
@derive [Poison.Encoder]
defstruct [
:"enum_string",
:"enum_string_required",... | 22.916667 | 91 | 0.676364 |
abc4260cfaaa734e6a5432e5d0cb2988cc5bba8d | 1,173 | ex | Elixir | apps/tracing_1/lib/rest_api_web/channels/user_socket.ex | WhiteRookPL/elixir-fire-brigade-workshop | 1c6183339fc623842a09f4d10be75bcecf2c37e7 | [
"MIT"
] | 14 | 2017-08-09T14:21:47.000Z | 2022-03-11T04:10:49.000Z | apps/tracing_1/lib/rest_api_web/channels/user_socket.ex | nicholasjhenry/elixir-fire-brigade-workshop | 1c6183339fc623842a09f4d10be75bcecf2c37e7 | [
"MIT"
] | null | null | null | apps/tracing_1/lib/rest_api_web/channels/user_socket.ex | nicholasjhenry/elixir-fire-brigade-workshop | 1c6183339fc623842a09f4d10be75bcecf2c37e7 | [
"MIT"
] | 15 | 2017-09-05T15:43:53.000Z | 2020-04-13T16:20:18.000Z | defmodule RestApiWeb.UserSocket do
use Phoenix.Socket
## Channels
# channel "room:*", RestApiWeb.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 and a... | 30.868421 | 83 | 0.703325 |
abc4329d264f2dda97bd2206ce893fdc10e33194 | 5,160 | ex | Elixir | apps/language_server/lib/language_server/providers/execute_command/manipulate_pipes/ast.ex | maciej-szlosarczyk/elixir-ls | f9e3a969a32212482a7625deec9e0fd0f533f991 | [
"Apache-2.0"
] | 865 | 2018-10-31T20:29:13.000Z | 2022-03-29T11:13:39.000Z | apps/language_server/lib/language_server/providers/execute_command/manipulate_pipes/ast.ex | maciej-szlosarczyk/elixir-ls | f9e3a969a32212482a7625deec9e0fd0f533f991 | [
"Apache-2.0"
] | 441 | 2019-01-05T02:33:52.000Z | 2022-03-30T20:56:50.000Z | apps/language_server/lib/language_server/providers/execute_command/manipulate_pipes/ast.ex | 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.ExecuteCommand.ManipulatePipes.AST do
@moduledoc """
AST manipulation helpers for the `ElixirLS.LanguageServer.Providers.ExecuteCommand.ManipulatePipes`\
command.
"""
@doc "Parses a string and converts the first function call, pre-order depth-first, into a pipe."
... | 34.864865 | 104 | 0.581395 |
abc4581e5418296dec07de6dfadbe157583e8622 | 47,304 | ex | Elixir | lib/ecto/query/planner.ex | zachahn/ecto | 8119ad877f7caa837912647a014f4a63a951dba0 | [
"Apache-2.0"
] | null | null | null | lib/ecto/query/planner.ex | zachahn/ecto | 8119ad877f7caa837912647a014f4a63a951dba0 | [
"Apache-2.0"
] | null | null | null | lib/ecto/query/planner.ex | zachahn/ecto | 8119ad877f7caa837912647a014f4a63a951dba0 | [
"Apache-2.0"
] | null | null | null | defmodule Ecto.Query.Planner do
# Normalizes a query and its parameters.
@moduledoc false
alias Ecto.Query.{BooleanExpr, DynamicExpr, JoinExpr, QueryExpr, SelectExpr}
if map_size(%Ecto.Query{}) != 18 do
raise "Ecto.Query match out of date in builder"
end
@doc """
Converts a query to a list of joins... | 35.647325 | 133 | 0.618806 |
abc45dbb5dcc01046f7dc9f6e36648a78645f385 | 3,332 | exs | Elixir | test/ex_double_entry/transfer_test.exs | CoinbitsInc/ex_double_entry | 31adbcaa0be14fb4f4a725fbb9f3ce6ab8402636 | [
"MIT"
] | null | null | null | test/ex_double_entry/transfer_test.exs | CoinbitsInc/ex_double_entry | 31adbcaa0be14fb4f4a725fbb9f3ce6ab8402636 | [
"MIT"
] | null | null | null | test/ex_double_entry/transfer_test.exs | CoinbitsInc/ex_double_entry | 31adbcaa0be14fb4f4a725fbb9f3ce6ab8402636 | [
"MIT"
] | null | null | null | defmodule ExDoubleEntry.TransferTest do
use ExDoubleEntry.DataCase
alias ExDoubleEntry.{Account, AccountBalance, Line, MoneyProxy, Transfer}
doctest Transfer
setup do
acc_a =
:account_balance
|> insert(identifier: :checking, balance_amount: 200_00)
|> Account.present()
acc_b =
... | 28.237288 | 91 | 0.565126 |
abc48229fdbd4b78e7acdc7a0365051797c5e028 | 2,191 | exs | Elixir | config/prod.exs | MSP95/pdftotext | f68fb0c661d76c0a14fd8c3c6d831a1d32675cbe | [
"MIT"
] | 5 | 2018-07-19T09:29:54.000Z | 2019-08-04T18:37:15.000Z | config/prod.exs | MSP95/pdftotext | f68fb0c661d76c0a14fd8c3c6d831a1d32675cbe | [
"MIT"
] | 1 | 2021-11-01T08:43:41.000Z | 2021-11-01T08:43:41.000Z | config/prod.exs | MSP95/pdftotext | f68fb0c661d76c0a14fd8c3c6d831a1d32675cbe | [
"MIT"
] | null | null | null | use Mix.Config
# For production, we often load configuration from external
# sources, such as your system environment. For this reason,
# you won't find the :http configuration below, but set inside
# PdftotextWeb.Endpoint.init/2 when load_from_system_env is
# true. Any dynamic configuration should be done there.
#
# ... | 33.707692 | 67 | 0.72387 |
abc484e1175c88c907ccde751bd7853917a42a0a | 3,658 | ex | Elixir | lib/ueberauth/strategy/instagram.ex | silentsilas/ueberauth_instagram | 52072018e061b95cac6d6d57f5aa88d56eb8a1b1 | [
"MIT"
] | null | null | null | lib/ueberauth/strategy/instagram.ex | silentsilas/ueberauth_instagram | 52072018e061b95cac6d6d57f5aa88d56eb8a1b1 | [
"MIT"
] | null | null | null | lib/ueberauth/strategy/instagram.ex | silentsilas/ueberauth_instagram | 52072018e061b95cac6d6d57f5aa88d56eb8a1b1 | [
"MIT"
] | 3 | 2020-07-11T04:47:46.000Z | 2022-02-22T22:37:19.000Z | defmodule Ueberauth.Strategy.Instagram do
@moduledoc """
Instagram Strategy for Überauth.
"""
use Ueberauth.Strategy, default_scope: "public_content",
uid_field: :id,
allowed_request_params: [
:auth_type,
... | 24.225166 | 83 | 0.621925 |
abc4c2d650c05435f04a77851e7176bf3666f235 | 6,713 | ex | Elixir | lib/crutches/option.ex | mykewould/crutches | da83f233839720f79ef49f20122f6ad38f08a0a3 | [
"Apache-2.0"
] | 146 | 2015-06-26T08:16:13.000Z | 2021-12-24T08:10:51.000Z | lib/crutches/option.ex | mykewould/crutches | da83f233839720f79ef49f20122f6ad38f08a0a3 | [
"Apache-2.0"
] | 108 | 2015-07-16T20:09:50.000Z | 2021-04-01T16:33:35.000Z | lib/crutches/option.ex | mykewould/crutches | da83f233839720f79ef49f20122f6ad38f08a0a3 | [
"Apache-2.0"
] | 49 | 2015-06-26T19:10:43.000Z | 2020-09-21T14:57:43.000Z | defmodule Crutches.Option do
@moduledoc """
Convenience functions for dealing with function option handling.
This provides a mechanism for declaring default options and merging these with
those given by any caller.
# Usage
When you have a function with the following head, the use of this module may
be ... | 29.31441 | 85 | 0.613884 |
abc4c9560deefad67243fc4adbd7f3b6d497b8b0 | 399 | exs | Elixir | test/maxwell/adapter/util_test.exs | zhongwencool/maxwell | 0b04ec5d1aafedbeb00a4ec3e683c9b2216b7349 | [
"MIT"
] | 130 | 2016-03-24T02:48:26.000Z | 2021-04-10T19:29:06.000Z | test/maxwell/adapter/util_test.exs | zhongwencool/maxwell | 0b04ec5d1aafedbeb00a4ec3e683c9b2216b7349 | [
"MIT"
] | 78 | 2016-06-28T06:33:01.000Z | 2021-12-15T01:37:54.000Z | test/maxwell/adapter/util_test.exs | zhongwencool/maxwell | 0b04ec5d1aafedbeb00a4ec3e683c9b2216b7349 | [
"MIT"
] | 24 | 2016-04-09T16:44:19.000Z | 2020-12-01T10:57:22.000Z | defmodule Maxwell.Adapter.UtilTest do
use ExUnit.Case
import Maxwell.Adapter.Util
test "url_serialize/4" do
assert url_serialize("http://example.com", "/foo", %{"ids" => ["1", "2"]}) ==
"http://example.com/foo?ids[]=1&ids[]=2"
assert url_serialize("http://example.com", "/foo", %{"ids" => %... | 28.5 | 86 | 0.573935 |
abc4d77ebc5b864503b8549087da4d5066abc1ab | 123 | ex | Elixir | test/support/surgex/foreign_repo.ex | surgeventures/surgex | b3acdd6a9a010c26f0081b9cb23aeb072459be30 | [
"MIT"
] | 10 | 2017-09-15T08:55:48.000Z | 2021-07-08T09:26:24.000Z | test/support/surgex/foreign_repo.ex | surgeventures/surgex | b3acdd6a9a010c26f0081b9cb23aeb072459be30 | [
"MIT"
] | 17 | 2017-07-24T11:27:22.000Z | 2022-01-24T22:28:18.000Z | test/support/surgex/foreign_repo.ex | surgeventures/surgex | b3acdd6a9a010c26f0081b9cb23aeb072459be30 | [
"MIT"
] | 2 | 2018-04-12T15:01:00.000Z | 2018-05-27T12:14:34.000Z | defmodule Surgex.ForeignRepo do
@moduledoc false
use Ecto.Repo, otp_app: :surgex, adapter: Ecto.Adapters.Postgres
end
| 20.5 | 66 | 0.780488 |
abc4e308ade81a0e31f6f0a4bd3e51932ae314e5 | 864 | ex | Elixir | lib/console_web/controllers/page_controller.ex | DasThink/console | 54cde903e3f4e2ca93b14c1d3a7bf3b8a2c7372b | [
"Apache-2.0"
] | 1 | 2021-08-20T17:48:47.000Z | 2021-08-20T17:48:47.000Z | lib/console_web/controllers/page_controller.ex | mfalkvidd/console | 6427c82bc4f8619b5bb3a5940099a8bdd6167a9e | [
"Apache-2.0"
] | null | null | null | lib/console_web/controllers/page_controller.ex | mfalkvidd/console | 6427c82bc4f8619b5bb3a5940099a8bdd6167a9e | [
"Apache-2.0"
] | null | null | null | defmodule ConsoleWeb.PageController do
use ConsoleWeb, :controller
action_fallback ConsoleWeb.FallbackController
def index(conn, _params) do
main_path = conn.path_info |> List.first()
valid_page_paths =
[
"join_organization",
"terms",
"welcome",
"devices",
"... | 20.571429 | 79 | 0.563657 |
abc4f175cc8f59e63896d5782cb8c13ec203f31f | 1,161 | ex | Elixir | lib/advent_of_code/day_24_a.ex | rob-brown/AdventOfCode2017 | cb8a56fba4b1999820b3aec4c4f03d7094836484 | [
"MIT"
] | 3 | 2017-12-26T20:51:47.000Z | 2019-05-14T04:59:38.000Z | lib/advent_of_code/day_24_a.ex | rob-brown/AdventOfCode2017 | cb8a56fba4b1999820b3aec4c4f03d7094836484 | [
"MIT"
] | null | null | null | lib/advent_of_code/day_24_a.ex | rob-brown/AdventOfCode2017 | cb8a56fba4b1999820b3aec4c4f03d7094836484 | [
"MIT"
] | null | null | null | defmodule AdventOfCode.Day24A do
def build_bridge(input) do
input
|> Stream.map(&String.trim/1)
|> Stream.reject(& &1 == "")
|> Stream.map(&parse_line/1)
|> construct
|> Stream.map(&Enum.sum/1)
|> Enum.max
end
defp parse_line(line) do
line |> String.split("/") |> Enum.map(&Strin... | 20.732143 | 80 | 0.535745 |
abc5243e363992fe61d9ba17be3a9ad7a14d1e9c | 1,348 | exs | Elixir | test/bsv_rpc/private_key_test.exs | slashrsm/bsv_rpc | 6ac717f4aefcd26045ad15796e4129fdc6a01434 | [
"MIT"
] | 4 | 2019-09-25T05:52:02.000Z | 2020-08-13T21:09:42.000Z | test/bsv_rpc/private_key_test.exs | slashrsm/bsv_rpc | 6ac717f4aefcd26045ad15796e4129fdc6a01434 | [
"MIT"
] | null | null | null | test/bsv_rpc/private_key_test.exs | slashrsm/bsv_rpc | 6ac717f4aefcd26045ad15796e4129fdc6a01434 | [
"MIT"
] | null | null | null | defmodule BsvRpc.PrivateKeyTest do
use ExUnit.Case
doctest BsvRpc.PrivateKey
# TODO Add more tests.
test "too short key" do
assert {:error, "Private key must be 32 bytes."} ==
BsvRpc.PrivateKey.create(
<<18, 178, 65, 32, 134, 45, 30, 1, 67, 228, 110, 223, 142, 202, 105, 135>>,
... | 32.878049 | 98 | 0.512611 |
abc544ae7601a6761bb42afa34dd10d1d0193742 | 262 | exs | Elixir | config/test.exs | rengel-de/yacco | b8714165d2d1ace07f4116719b54e8ea077c3587 | [
"Apache-2.0"
] | null | null | null | config/test.exs | rengel-de/yacco | b8714165d2d1ace07f4116719b54e8ea077c3587 | [
"Apache-2.0"
] | null | null | null | config/test.exs | rengel-de/yacco | b8714165d2d1ace07f4116719b54e8ea077c3587 | [
"Apache-2.0"
] | null | null | null | use Mix.Config
# We don't run a server during test. If one is required,
# you can enable the server option below.
config :yacco, YaccoWeb.Endpoint,
http: [port: 4002],
server: false
# Print only warnings and errors during test
config :logger, level: :warn
| 23.818182 | 56 | 0.732824 |
abc5544c4184df3cde577229d1aad29fce2a1b56 | 858 | ex | Elixir | lib/plausible/billing/subscription.ex | dukhniav/plausible | dfcbf9cc98637721698b2046eee205b66b204acb | [
"MIT"
] | null | null | null | lib/plausible/billing/subscription.ex | dukhniav/plausible | dfcbf9cc98637721698b2046eee205b66b204acb | [
"MIT"
] | null | null | null | lib/plausible/billing/subscription.ex | dukhniav/plausible | dfcbf9cc98637721698b2046eee205b66b204acb | [
"MIT"
] | null | null | null | defmodule Plausible.Billing.Subscription do
use Ecto.Schema
import Ecto.Changeset
@required_fields [:paddle_subscription_id, :paddle_plan_id, :update_url, :cancel_url, :status, :next_bill_amount, :next_bill_date, :user_id]
@valid_statuses ["active", "past_due", "deleted"]
schema "subscriptions" do
field... | 28.6 | 142 | 0.722611 |
abc5992a613a8b641e7d72788bf9913a06be0db0 | 2,298 | ex | Elixir | clients/service_networking/lib/google_api/service_networking/v1/model/documentation_rule.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/service_networking/lib/google_api/service_networking/v1/model/documentation_rule.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/service_networking/lib/google_api/service_networking/v1/model/documentation_rule.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... | 43.358491 | 469 | 0.7302 |
abc5a1c04b3f9444d43e7888cf473271bdfc2422 | 714 | ex | Elixir | lib/stormchat_web/gettext.ex | gautambaghel/stormchat | 1882467113158e7524d02d273e1f88439cc1f152 | [
"MIT"
] | null | null | null | lib/stormchat_web/gettext.ex | gautambaghel/stormchat | 1882467113158e7524d02d273e1f88439cc1f152 | [
"MIT"
] | 7 | 2019-06-25T17:21:41.000Z | 2022-02-10T12:09:08.000Z | lib/stormchat_web/gettext.ex | gautambaghel/stormchat | 1882467113158e7524d02d273e1f88439cc1f152 | [
"MIT"
] | null | null | null | defmodule StormchatWeb.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 StormchatWeb.Gettext
# Simple translation
gettext "Here ... | 28.56 | 72 | 0.683473 |
abc5a9a0790a72fef33411d3d9f8258e72175cf3 | 2,456 | exs | Elixir | test/process_managers/process_manager_instance_test.exs | mquickform/commanded | 260b1ec28c2fb3c1fcbb61b8c4abacabd7dc7ed2 | [
"MIT"
] | null | null | null | test/process_managers/process_manager_instance_test.exs | mquickform/commanded | 260b1ec28c2fb3c1fcbb61b8c4abacabd7dc7ed2 | [
"MIT"
] | 1 | 2018-12-05T18:17:08.000Z | 2018-12-05T18:17:08.000Z | test/process_managers/process_manager_instance_test.exs | mquickform/commanded | 260b1ec28c2fb3c1fcbb61b8c4abacabd7dc7ed2 | [
"MIT"
] | 1 | 2018-12-05T18:15:03.000Z | 2018-12-05T18:15:03.000Z | defmodule Commanded.ProcessManagers.ProcessManagerInstanceTest do
use Commanded.StorageCase
alias Commanded.ExampleDomain.MoneyTransfer.Events.MoneyTransferRequested
alias Commanded.ExampleDomain.TransferMoneyProcessManager
alias Commanded.EventStore.RecordedEvent
alias Commanded.ProcessManagers.{ProcessMana... | 30.7 | 92 | 0.703176 |
abc5d091e348fa081d090b8bf935bf9de404dc92 | 803 | ex | Elixir | lib/locations/locations.ex | antp/locations | fe765fe78b896fe02e11b92e8d21e97f00744384 | [
"MIT"
] | 14 | 2020-09-16T14:10:35.000Z | 2021-10-30T22:05:48.000Z | lib/locations/locations.ex | antp/locations | fe765fe78b896fe02e11b92e8d21e97f00744384 | [
"MIT"
] | null | null | null | lib/locations/locations.ex | antp/locations | fe765fe78b896fe02e11b92e8d21e97f00744384 | [
"MIT"
] | null | null | null | defmodule Locations do
@moduledoc """
Public entry point for the Locations context
"""
alias Locations.Schema.Location
alias Locations.Location.{
GetLocations,
AddLocation,
UpdateLocation,
RemoveLocation,
GetMapFor,
UpdateGeoLocation
}
defdelegate get_locations(), to: GetLocation... | 28.678571 | 84 | 0.73599 |
abc5dcaec9b798008c4e993a9a01c4cdbc5033ab | 1,796 | ex | Elixir | clients/plus/lib/google_api/plus/v1/model/acl.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/plus/lib/google_api/plus/v1/model/acl.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/plus/lib/google_api/plus/v1/model/acl.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.886792 | 138 | 0.707684 |
abc61497293ad533e6d96e98a89b81b01ef1bc22 | 690 | exs | Elixir | mix.exs | ryo33/Parxir | f7388bd37e2754e2d8c37724fcac2e29d438e2a9 | [
"MIT"
] | null | null | null | mix.exs | ryo33/Parxir | f7388bd37e2754e2d8c37724fcac2e29d438e2a9 | [
"MIT"
] | null | null | null | mix.exs | ryo33/Parxir | f7388bd37e2754e2d8c37724fcac2e29d438e2a9 | [
"MIT"
] | null | null | null | defmodule Parselix.Mixfile do
use Mix.Project
def project do
[app: :parselix,
name: "Parselix",
source_url: "https://github.com/ryo33/Parselix",
version: "0.5.0",
description: "A parser combinator library",
package: [
maintainers: ["Ryo Hashiguchi"],
contributors: ["ryo33... | 21.5625 | 57 | 0.565217 |
abc6301fabec2b978d4183d969482a322e8b1d27 | 2,100 | exs | Elixir | ur2/config/prod.exs | jefk/phoenix_live_view | 5ef754b4246d3ba5aeeceb3875eda116bddfa834 | [
"MIT"
] | null | null | null | ur2/config/prod.exs | jefk/phoenix_live_view | 5ef754b4246d3ba5aeeceb3875eda116bddfa834 | [
"MIT"
] | null | null | null | ur2/config/prod.exs | jefk/phoenix_live_view | 5ef754b4246d3ba5aeeceb3875eda116bddfa834 | [
"MIT"
] | null | null | null | use Mix.Config
# For production, don't forget to configure the url host
# to something meaningful, Phoenix uses this information
# when generating URLs.
#
# Note we also include the path to a cache manifest
# containing the digested version of static files. This
# manifest is generated by the `mix phx.digest` task,
# ... | 36.206897 | 67 | 0.709048 |
abc6372eb91d5913aa7142a715fef63b5d057c51 | 1,014 | ex | Elixir | apps/dockup_ui/web/services/hibernate_deployment_service.ex | sleekr/dockup | 11d068879253af655ebabbd3e39cb21400c8e283 | [
"MIT"
] | 1 | 2019-08-20T07:45:10.000Z | 2019-08-20T07:45:10.000Z | apps/dockup_ui/web/services/hibernate_deployment_service.ex | sleekr/dockup | 11d068879253af655ebabbd3e39cb21400c8e283 | [
"MIT"
] | null | null | null | apps/dockup_ui/web/services/hibernate_deployment_service.ex | sleekr/dockup | 11d068879253af655ebabbd3e39cb21400c8e283 | [
"MIT"
] | 2 | 2019-03-08T10:51:34.000Z | 2019-08-20T07:45:13.000Z | defmodule DockupUi.HibernateDeploymentService do
require Ecto.Query
require Logger
alias DockupUi.{
Deployment,
Repo,
Callback.Null
}
def run(deployment_id, callback_data) do
Logger.info "Hibernate deployment with id: #{deployment_id}"
with \
deployment <- Repo.get!(Deployment, de... | 26 | 65 | 0.683432 |
abc6468a442601a4b904eacc76143b7f99f388dd | 2,556 | exs | Elixir | test/repg2/multi_nodes_test.exs | jechol/repg2 | eba11a703104d52c349c864ca3d79c636c71542f | [
"Apache-2.0"
] | null | null | null | test/repg2/multi_nodes_test.exs | jechol/repg2 | eba11a703104d52c349c864ca3d79c636c71542f | [
"Apache-2.0"
] | null | null | null | test/repg2/multi_nodes_test.exs | jechol/repg2 | eba11a703104d52c349c864ca3d79c636c71542f | [
"Apache-2.0"
] | null | null | null | defmodule RePG2.MultiNodesTest do
@moduledoc false
use ExUnit.Case
setup do
Cluster.ensure_other_node_started()
ClusterUtil.restart_cluster(:repg2)
:ok
end
test "nodes share groups" do
:ok = RePG2.create(:test_group)
:ok = RePG2.join(:test_group, self())
assert_group_membership(:tes... | 30.070588 | 82 | 0.694053 |
abc64c5d13374be8201858ca717b881677325717 | 13,771 | ex | Elixir | lib/google/cloud/speech/v1/cloud_speech.pb.ex | SoftwareMansion/elixir-gcloud-speech-to-text | a2ee57e3961395b80fa35fc07ad9537b0086d984 | [
"Apache-2.0"
] | 1 | 2021-05-06T20:19:36.000Z | 2021-05-06T20:19:36.000Z | lib/google/cloud/speech/v1/cloud_speech.pb.ex | SoftwareMansion/elixir-gcloud-speech-to-text | a2ee57e3961395b80fa35fc07ad9537b0086d984 | [
"Apache-2.0"
] | null | null | null | lib/google/cloud/speech/v1/cloud_speech.pb.ex | SoftwareMansion/elixir-gcloud-speech-to-text | a2ee57e3961395b80fa35fc07ad9537b0086d984 | [
"Apache-2.0"
] | 2 | 2021-04-22T20:49:16.000Z | 2021-04-27T14:14:35.000Z | defmodule Google.Cloud.Speech.V1.RecognizeRequest do
@moduledoc "Auto-generated from `googleapis/google/cloud/speech/v1/cloud_speech.proto`"
use Protobuf, syntax: :proto3
@type t :: %__MODULE__{
config: Google.Cloud.Speech.V1.RecognitionConfig.t() | nil,
audio: Google.Cloud.Speech.V1.Recognit... | 33.918719 | 98 | 0.727543 |
abc656e5ad4d8b73b0848b429752026103bcff28 | 1,503 | ex | Elixir | lib/inmana_web/endpoint.ex | rafaelbleite/inmana | 48b672ea77b02e095a56511ce0b75e574349d8d9 | [
"MIT"
] | null | null | null | lib/inmana_web/endpoint.ex | rafaelbleite/inmana | 48b672ea77b02e095a56511ce0b75e574349d8d9 | [
"MIT"
] | null | null | null | lib/inmana_web/endpoint.ex | rafaelbleite/inmana | 48b672ea77b02e095a56511ce0b75e574349d8d9 | [
"MIT"
] | null | null | null | defmodule InmanaWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :inmana
# The session will be stored in the cookie and signed,
# this means its contents can be read but not tampered with.
# Set :encryption_salt if you would also like to encrypt it.
@session_options [
store: :cookie,
key: "_inmana_key"... | 28.358491 | 97 | 0.712575 |
abc65ccf35f194e54853d04bbc74657104799c78 | 550 | exs | Elixir | priv/repo/migrations/20210117225810_create_uplinks_heard.exs | evandiewald/mappers | 7359cfb39a4d9d26c42f5917ee04a7e41d3291bc | [
"Apache-2.0"
] | 32 | 2021-04-22T01:55:31.000Z | 2022-02-25T13:17:21.000Z | priv/repo/migrations/20210117225810_create_uplinks_heard.exs | evandiewald/mappers | 7359cfb39a4d9d26c42f5917ee04a7e41d3291bc | [
"Apache-2.0"
] | 58 | 2021-06-04T18:42:59.000Z | 2022-03-31T07:17:01.000Z | priv/repo/migrations/20210117225810_create_uplinks_heard.exs | evandiewald/mappers | 7359cfb39a4d9d26c42f5917ee04a7e41d3291bc | [
"Apache-2.0"
] | 13 | 2021-04-10T06:09:15.000Z | 2022-03-23T13:07:37.000Z | defmodule Mappers.Repo.Migrations.CreateUplinksHeard do
use Ecto.Migration
def change do
create table(:uplinks_heard, primary_key: false) do
add :id, :uuid, primary_key: true
add :hotspot_address, :string
add :hotspot_name, :string
add :latitude, :float
add :longitude, :float
... | 27.5 | 79 | 0.674545 |
abc681e1673765498bb39e23ad62853d55cc723f | 8,987 | ex | Elixir | lib/thousand_island.ex | davydog187/thousand_island | 9489d4b3481c87a3d6f501c047d6418b164fdd00 | [
"MIT"
] | 139 | 2019-11-29T02:11:40.000Z | 2022-03-24T00:17:52.000Z | lib/thousand_island.ex | davydog187/thousand_island | 9489d4b3481c87a3d6f501c047d6418b164fdd00 | [
"MIT"
] | 11 | 2020-01-23T15:43:58.000Z | 2022-02-15T10:16:37.000Z | lib/thousand_island.ex | davydog187/thousand_island | 9489d4b3481c87a3d6f501c047d6418b164fdd00 | [
"MIT"
] | 8 | 2021-10-09T16:36:35.000Z | 2022-01-31T20:39:10.000Z | defmodule ThousandIsland do
@moduledoc """
Thousand Island is a modern, pure Elixir socket server, inspired heavily by
[ranch](https://github.com/ninenines/ranch). It aims to be easy to understand
& reason about, while also being at least as stable and performant as alternatives.
Thousand Island is implement... | 46.807292 | 143 | 0.740403 |
abc6bb3ee4b2f9399a19b6d339760714b64eaee9 | 148 | ex | Elixir | lib/stripe_client/delete_response.ex | keichan34/stripe_client | 27d714c0a51bf1b079641a5149c2ef12963d0917 | [
"MIT"
] | null | null | null | lib/stripe_client/delete_response.ex | keichan34/stripe_client | 27d714c0a51bf1b079641a5149c2ef12963d0917 | [
"MIT"
] | null | null | null | lib/stripe_client/delete_response.ex | keichan34/stripe_client | 27d714c0a51bf1b079641a5149c2ef12963d0917 | [
"MIT"
] | null | null | null | defmodule StripeClient.DeleteResponse do
defstruct [:id, :deleted]
@type t :: %StripeClient.DeleteResponse{id: String.t, deleted: boolean}
end
| 24.666667 | 73 | 0.756757 |
abc6ed48da6e98fb5e2c50c2ee2ac2ed24c3014c | 380 | ex | Elixir | lib/endpoint/error.ex | begedin/elixir-sparkpost | e8b94b9f8d33f165a1fe030ef52e0642bdd59c9d | [
"Apache-2.0"
] | 1 | 2021-01-08T18:16:23.000Z | 2021-01-08T18:16:23.000Z | lib/endpoint/error.ex | begedin/elixir-sparkpost | e8b94b9f8d33f165a1fe030ef52e0642bdd59c9d | [
"Apache-2.0"
] | null | null | null | lib/endpoint/error.ex | begedin/elixir-sparkpost | e8b94b9f8d33f165a1fe030ef52e0642bdd59c9d | [
"Apache-2.0"
] | null | null | null | defmodule SparkPost.Endpoint.Error do
@moduledoc """
Error raised by `SparkPost.Endpoint.request/3` when SparkPost returns a response
containing an 'errors' key.
## Fields
- status_code: HTTP status code
- errors: list of SparkPost errors
- results: API call results
"""
defstruct status_code: nil... | 23.75 | 82 | 0.707895 |
abc72728ef5512adccb0872d9b0e55c974f4b809 | 511 | ex | Elixir | test/support/totp_stub.ex | geometricservices/epi-viewpoin | ecb5316ea0f3f7299d5ff63e2de588539005ac1c | [
"Apache-2.0"
] | 5 | 2021-02-25T18:43:09.000Z | 2021-02-27T06:00:35.000Z | test/support/totp_stub.ex | geometricservices/epi-viewpoint | ecb5316ea0f3f7299d5ff63e2de588539005ac1c | [
"Apache-2.0"
] | 3 | 2021-12-13T17:52:47.000Z | 2021-12-17T01:35:31.000Z | test/support/totp_stub.ex | geometricservices/epi-viewpoint | ecb5316ea0f3f7299d5ff63e2de588539005ac1c | [
"Apache-2.0"
] | 1 | 2022-01-27T23:26:38.000Z | 2022-01-27T23:26:38.000Z | defmodule Epicenter.Test.TOTPStub do
@behaviour Epicenter.Accounts.TOTP
def raw_secret, do: <<244, 132, 168, 148, 98, 100, 231, 92, 100, 208>>
def encoded_secret, do: Base.encode32(raw_secret(), padding: false)
def valid_passcode, do: "123456"
def otpauth_uri(_label, secret, _uri_params),
do: "otpauth:/... | 30.058824 | 72 | 0.690802 |
abc74809c0582e255a5dc4649c4e2724487b12a9 | 2,704 | exs | Elixir | config/runtime.exs | ding-an-sich/ex_change_rate | 89858694dc98cef6d21089599120600a075c93db | [
"MIT"
] | null | null | null | config/runtime.exs | ding-an-sich/ex_change_rate | 89858694dc98cef6d21089599120600a075c93db | [
"MIT"
] | null | null | null | config/runtime.exs | ding-an-sich/ex_change_rate | 89858694dc98cef6d21089599120600a075c93db | [
"MIT"
] | null | null | null | import Config
# config/runtime.exs is executed for all environments, including
# during releases. It is executed after compilation and before the
# system starts, so it is typically used to load production configuration
# and secrets from environment variables or elsewhere. Do not define
# any compile-time configurati... | 36.540541 | 80 | 0.70858 |
abc7899b86d5504f05b200fb3166ee42e6199943 | 141 | ex | Elixir | lib/bloggex_web/controllers/page_controller.ex | dreamingechoes/bloggex | 9ead10ec1fd8fda0da3cb08106c43a9043188199 | [
"MIT"
] | 1 | 2020-01-14T03:17:51.000Z | 2020-01-14T03:17:51.000Z | lib/bloggex_web/controllers/page_controller.ex | dreamingechoes/bloggex | 9ead10ec1fd8fda0da3cb08106c43a9043188199 | [
"MIT"
] | null | null | null | lib/bloggex_web/controllers/page_controller.ex | dreamingechoes/bloggex | 9ead10ec1fd8fda0da3cb08106c43a9043188199 | [
"MIT"
] | null | null | null | defmodule BloggexWeb.PageController do
use BloggexWeb, :controller
def index(conn, _params) do
render(conn, "index.html")
end
end
| 17.625 | 38 | 0.737589 |
abc79bdd5a3419569a46021c685c3c09cbe88dd7 | 87 | ex | Elixir | lib/minecraft_controller_web/views/layout_view.ex | TenTakano/Minecraft_Controller | a118a6e9694da3c0fdfa9ec93872790d38f093e3 | [
"MIT"
] | null | null | null | lib/minecraft_controller_web/views/layout_view.ex | TenTakano/Minecraft_Controller | a118a6e9694da3c0fdfa9ec93872790d38f093e3 | [
"MIT"
] | 29 | 2021-02-13T06:54:56.000Z | 2021-06-06T09:55:36.000Z | lib/minecraft_controller_web/views/layout_view.ex | TenTakano/Minecraft_Controller | a118a6e9694da3c0fdfa9ec93872790d38f093e3 | [
"MIT"
] | null | null | null | defmodule MinecraftControllerWeb.LayoutView do
use MinecraftControllerWeb, :view
end
| 21.75 | 46 | 0.862069 |
abc7c2ad7bc450a8f3d3671bc3562d6727266b64 | 757 | ex | Elixir | lib/spaceex/space_flight/client.ex | LuizFerK/SpaceEx | ca1a4bd4881692860879b6f2c5d55bc521332c39 | [
"MIT"
] | 1 | 2021-12-13T15:50:00.000Z | 2021-12-13T15:50:00.000Z | lib/spaceex/space_flight/client.ex | LuizFerK/SpaceEx | ca1a4bd4881692860879b6f2c5d55bc521332c39 | [
"MIT"
] | null | null | null | lib/spaceex/space_flight/client.ex | LuizFerK/SpaceEx | ca1a4bd4881692860879b6f2c5d55bc521332c39 | [
"MIT"
] | 2 | 2022-01-09T18:12:17.000Z | 2022-01-23T22:12:51.000Z | defmodule Spaceex.SpaceFlight.Client do
use Tesla
alias Spaceex.Error
alias Spaceex.SpaceFlight.Behaviour
alias(Tesla.Env)
@behaviour Behaviour
@base_url "https://api.spaceflightnewsapi.net/v3/"
plug Tesla.Middleware.JSON
# coveralls-ignore-start
def get_articles(base_url \\ @base_url, limit)
#... | 21.027778 | 72 | 0.678996 |
abc7c8031a39d6d2a36151d6234149c755671f59 | 1,127 | exs | Elixir | config/config.exs | lukkor/bugsnag-plug | e26525a0eb46a70a2363afb77c2107bb0e89936a | [
"Unlicense"
] | null | null | null | config/config.exs | lukkor/bugsnag-plug | e26525a0eb46a70a2363afb77c2107bb0e89936a | [
"Unlicense"
] | null | null | null | config/config.exs | lukkor/bugsnag-plug | e26525a0eb46a70a2363afb77c2107bb0e89936a | [
"Unlicense"
] | 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 |
abc7dfb0de082d152829a69020fe7cc26a322f98 | 3,593 | ex | Elixir | clients/cloud_asset/lib/google_api/cloud_asset/v1/model/iam_policy_search_result.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/cloud_asset/lib/google_api/cloud_asset/v1/model/iam_policy_search_result.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/cloud_asset/lib/google_api/cloud_asset/v1/model/iam_policy_search_result.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... | 64.160714 | 705 | 0.749235 |
abc7e7fb75a8ac285ac7aa8615dd84c5809496de | 485 | ex | Elixir | lib/badges_web/live/teacher_live/show.ex | TomGrozev/SAD-Badges | a94331433ea21a0d719216ac8473e706166d6004 | [
"MIT"
] | null | null | null | lib/badges_web/live/teacher_live/show.ex | TomGrozev/SAD-Badges | a94331433ea21a0d719216ac8473e706166d6004 | [
"MIT"
] | null | null | null | lib/badges_web/live/teacher_live/show.ex | TomGrozev/SAD-Badges | a94331433ea21a0d719216ac8473e706166d6004 | [
"MIT"
] | null | null | null | defmodule BadgesWeb.TeacherLive.Show do
use BadgesWeb, :live_view
alias Badges.Teachers
@impl true
def mount(_params, _session, socket) do
{:ok, socket}
end
@impl true
def handle_params(%{"id" => id}, _, socket) do
{:noreply,
socket
|> assign(:page_title, page_title(socket.assigns.liv... | 22.045455 | 67 | 0.674227 |
abc81312d010f609fc3310de6afd4a168ee02e01 | 1,131 | exs | Elixir | config/config.exs | olafura/exx | b04c265ac3da993b6aa9dbe2f95b7677de3d7a18 | [
"Apache-2.0"
] | 1 | 2018-09-22T21:53:52.000Z | 2018-09-22T21:53:52.000Z | config/config.exs | olafura/scenic_jsx | 19fe024373023b8d7987d0a45a5421dd63b7a12b | [
"Apache-2.0"
] | null | null | null | config/config.exs | olafura/scenic_jsx | 19fe024373023b8d7987d0a45a5421dd63b7a12b | [
"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.483871 | 73 | 0.751547 |
abc85a26298a6c9c92e425b26c79adacd2725672 | 12,858 | ex | Elixir | lib/absinthe/schema/notation/sdl_render.ex | arturs678/absinthe | 0d842c46e5d21399d66919cdaadfa8927fbca74d | [
"MIT"
] | 4,101 | 2016-03-02T03:49:20.000Z | 2022-03-31T05:46:01.000Z | lib/absinthe/schema/notation/sdl_render.ex | arturs678/absinthe | 0d842c46e5d21399d66919cdaadfa8927fbca74d | [
"MIT"
] | 889 | 2016-03-02T16:06:59.000Z | 2022-03-31T20:24:12.000Z | lib/absinthe/schema/notation/sdl_render.ex | arturs678/absinthe | 0d842c46e5d21399d66919cdaadfa8927fbca74d | [
"MIT"
] | 564 | 2016-03-02T07:49:59.000Z | 2022-03-06T14:40:59.000Z | defmodule Absinthe.Schema.Notation.SDL.Render do
@moduledoc false
import Inspect.Algebra
import Absinthe.Utils.Render
alias Absinthe.Blueprint
@line_width 120
def inspect(term, %{pretty: true}) do
term
|> render()
|> concat(line())
|> format(@line_width)
|> to_string
end
def insp... | 26.02834 | 101 | 0.630658 |
abc8667eb57335b91a2dde686dc987fa1281845a | 3,523 | exs | Elixir | apps/data/test/grapevine_data/accounts_test.exs | sb8244/grapevine | effaaa01294d30114090c20f9cc40b8665d834f2 | [
"MIT"
] | 107 | 2018-10-05T18:20:32.000Z | 2022-02-28T04:02:50.000Z | apps/data/test/grapevine_data/accounts_test.exs | sb8244/grapevine | effaaa01294d30114090c20f9cc40b8665d834f2 | [
"MIT"
] | 33 | 2018-10-05T14:11:18.000Z | 2022-02-10T22:19:18.000Z | apps/data/test/grapevine_data/accounts_test.exs | sb8244/grapevine | effaaa01294d30114090c20f9cc40b8665d834f2 | [
"MIT"
] | 18 | 2019-02-03T03:08:20.000Z | 2021-12-28T04:29:36.000Z | defmodule GrapevineData.AccountsTest do
use Grapevine.DataCase
alias GrapevineData.Accounts
alias GrapevineData.Accounts.User
doctest GrapevineData.Accounts
describe "registering a new account" do
test "successful" do
{:ok, user} =
Accounts.register(%{
username: "adminuser",
... | 25.528986 | 90 | 0.619359 |
abc87445f1329ce34ab0fae021588bdce9ebe075 | 1,011 | exs | Elixir | exrack_firmware/config/config.exs | jirimakarius/exrack | e499ea62f61000463360adb6b2b7a9ce9695467f | [
"MIT"
] | null | null | null | exrack_firmware/config/config.exs | jirimakarius/exrack | e499ea62f61000463360adb6b2b7a9ce9695467f | [
"MIT"
] | null | null | null | exrack_firmware/config/config.exs | jirimakarius/exrack | e499ea62f61000463360adb6b2b7a9ce9695467f | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application and its
# dependencies.
#
# This configuration file is loaded before any dependency and is restricted to
# this project.
import Config
# Enable the Nerves integration with Mix
Application.start(:nerves_bootstrap)
config :exrack_firmware, target: Mix.target()... | 29.735294 | 82 | 0.777448 |
abc89aab153c6d53afd439fc4eed561b2fe00f3d | 10,279 | ex | Elixir | lib/kazan/watcher.ex | wschroeder/kazan | 776803e1306fbd8ece913f63b4a0aa1c49248da3 | [
"MIT"
] | 139 | 2017-01-02T08:11:23.000Z | 2022-02-10T19:23:29.000Z | lib/kazan/watcher.ex | wschroeder/kazan | 776803e1306fbd8ece913f63b4a0aa1c49248da3 | [
"MIT"
] | 64 | 2017-01-05T13:27:04.000Z | 2022-02-21T15:42:23.000Z | lib/kazan/watcher.ex | wschroeder/kazan | 776803e1306fbd8ece913f63b4a0aa1c49248da3 | [
"MIT"
] | 30 | 2017-01-02T08:11:27.000Z | 2021-06-24T14:24:58.000Z | defmodule Kazan.Watcher do
@moduledoc """
Watches for changes on a resource. This works by creating a HTTPoison ASync request.
The request will eventually timeout, however the Watcher handles recreating the request
when this occurs and requesting new events that have occurred since the last *resource_version*... | 29.708092 | 97 | 0.619613 |
abc8f070b2496728501507091f4bc454d621954e | 2,393 | ex | Elixir | lib/githubist_web/schema/location_types.ex | alpcanaydin/githubist-api | 6481f8177c5b8573da2d5df52ffaff41340b25d0 | [
"MIT"
] | 33 | 2018-10-13T16:40:36.000Z | 2021-05-23T14:13:34.000Z | lib/githubist_web/schema/location_types.ex | 5l1v3r1/githubist-api | 6481f8177c5b8573da2d5df52ffaff41340b25d0 | [
"MIT"
] | 1 | 2018-12-23T19:59:05.000Z | 2018-12-24T18:08:00.000Z | lib/githubist_web/schema/location_types.ex | 5l1v3r1/githubist-api | 6481f8177c5b8573da2d5df52ffaff41340b25d0 | [
"MIT"
] | 3 | 2018-10-13T22:18:38.000Z | 2020-03-29T23:41:23.000Z | defmodule GithubistWeb.Schema.LocationTypes do
@moduledoc false
use Absinthe.Schema.Notation
alias GithubistWeb.Resolvers.DeveloperResolver
alias GithubistWeb.Resolvers.LanguageResolver
alias GithubistWeb.Resolvers.LocationResolver
alias GithubistWeb.Resolvers.RepositoryResolver
@desc "Location stats"
... | 26.88764 | 84 | 0.691183 |
abc8f42f7e34499678469f44a0b4fcae6587b49b | 852 | ex | Elixir | lib/type/websocket.ex | ikeyasu/antikythera | 544fdd22e46b1f34177053d87d9e2a9708c74113 | [
"Apache-2.0"
] | null | null | null | lib/type/websocket.ex | ikeyasu/antikythera | 544fdd22e46b1f34177053d87d9e2a9708c74113 | [
"Apache-2.0"
] | null | null | null | lib/type/websocket.ex | ikeyasu/antikythera | 544fdd22e46b1f34177053d87d9e2a9708c74113 | [
"Apache-2.0"
] | null | null | null | # Copyright(c) 2015-2018 ACCESS CO., LTD. All rights reserved.
use Croma
defmodule Antikythera.Websocket.Frame do
@moduledoc """
Simplified data type for websocket frames.
"""
@type close_code :: 1000..4999
@type close_payload :: String.t
@type t :: :close
| {:close, close_code, binary}
... | 29.37931 | 67 | 0.539906 |
abc9070616ddbc7b311dfee16eae15a288fe30a1 | 573 | exs | Elixir | fizzbuzz/mix.exs | fernanduandrade/logic-studies | 49e274d9f503880691c38d4493152cec1b02dd29 | [
"MIT"
] | null | null | null | fizzbuzz/mix.exs | fernanduandrade/logic-studies | 49e274d9f503880691c38d4493152cec1b02dd29 | [
"MIT"
] | null | null | null | fizzbuzz/mix.exs | fernanduandrade/logic-studies | 49e274d9f503880691c38d4493152cec1b02dd29 | [
"MIT"
] | null | null | null | defmodule Fizzbuzz.MixProject do
use Mix.Project
def project do
[
app: :fizzbuzz,
version: "0.1.0",
elixir: "~> 1.9",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_a... | 19.758621 | 87 | 0.577661 |
abc92d4f6cd0089b1d97227d2f6e791756c1ba06 | 1,868 | ex | Elixir | clients/access_context_manager/lib/google_api/access_context_manager/v1/model/method_selector.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/access_context_manager/lib/google_api/access_context_manager/v1/model/method_selector.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/access_context_manager/lib/google_api/access_context_manager/v1/model/method_selector.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... | 37.36 | 239 | 0.736617 |
abc9430e02a02591532b435b1a460bb2ecd5e76b | 4,410 | ex | Elixir | clients/analytics/lib/google_api/analytics/v3/model/mcf_data.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/analytics/lib/google_api/analytics/v3/model/mcf_data.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/analytics/lib/google_api/analytics/v3/model/mcf_data.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 49 | 283 | 0.713379 |
abc97bad887735fecd5e471b06725ab51aab096a | 1,811 | ex | Elixir | clients/dataflow/lib/google_api/dataflow/v1b3/model/progress_timeseries.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/dataflow/lib/google_api/dataflow/v1b3/model/progress_timeseries.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/dataflow/lib/google_api/dataflow/v1b3/model/progress_timeseries.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... | 36.22 | 160 | 0.733849 |
abc9bc9a515b66dd19ec18112c56f1d28c262964 | 841 | ex | Elixir | Microsoft.Azure.Management.Containers/lib/microsoft/azure/management/containers/model/orchestrator_version_profile_properties.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | 4 | 2018-09-29T03:43:15.000Z | 2021-04-01T18:30:46.000Z | Microsoft.Azure.Management.Containers/lib/microsoft/azure/management/containers/model/orchestrator_version_profile_properties.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | null | null | null | Microsoft.Azure.Management.Containers/lib/microsoft/azure/management/containers/model/orchestrator_version_profile_properties.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | null | null | null | # NOTE: This class is auto generated by the swagger code generator program.
# https://github.com/swagger-api/swagger-codegen.git
# Do not edit the class manually.
defmodule Microsoft.Azure.Management.Containers.Model.OrchestratorVersionProfileProperties do
@moduledoc """
The properties of an orchestrator version p... | 30.035714 | 124 | 0.770511 |
abc9e1b61033c7613aae2ee53ddbd43adc8eb799 | 1,969 | ex | Elixir | clients/sheets/lib/google_api/sheets/v4/model/interpolation_point.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/sheets/lib/google_api/sheets/v4/model/interpolation_point.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/sheets/lib/google_api/sheets/v4/model/interpolation_point.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 ... | 34.54386 | 126 | 0.713052 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.