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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9e4faf7951a7efa2653c10412f98f949a47765a6 | 6,481 | ex | Elixir | clients/speech/lib/google_api/speech/v1/api/speech.ex | chingor13/elixir-google-api | 85e13fa25c4c9f4618bb463ab4c79245fc6d2a7b | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/speech/lib/google_api/speech/v1/api/speech.ex | chingor13/elixir-google-api | 85e13fa25c4c9f4618bb463ab4c79245fc6d2a7b | [
"Apache-2.0"
] | null | null | null | clients/speech/lib/google_api/speech/v1/api/speech.ex | chingor13/elixir-google-api | 85e13fa25c4c9f4618bb463ab4c79245fc6d2a7b | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 45.640845 | 196 | 0.647894 |
9e4fcd230ed632b1c9eb782d3b2ded8d90de53e5 | 12,215 | exs | Elixir | apps/ewallet/test/ewallet/validators/transaction_consumption_validator_test.exs | jimpeebles/ewallet | ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405 | [
"Apache-2.0"
] | null | null | null | apps/ewallet/test/ewallet/validators/transaction_consumption_validator_test.exs | jimpeebles/ewallet | ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405 | [
"Apache-2.0"
] | null | null | null | apps/ewallet/test/ewallet/validators/transaction_consumption_validator_test.exs | jimpeebles/ewallet | ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405 | [
"Apache-2.0"
] | null | null | null | # Copyright 2018 OmiseGO Pte Ltd
#
# 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 writi... | 32.573333 | 98 | 0.66885 |
9e4ffe3621bd553be7fc7e58858eee617ee2ab8b | 776 | exs | Elixir | test/soft_delete_migration_test.exs | petlove/ecto_soft_delete | 9a99a80037aa1dd726ca317b398bda4b778d0bf1 | [
"MIT"
] | null | null | null | test/soft_delete_migration_test.exs | petlove/ecto_soft_delete | 9a99a80037aa1dd726ca317b398bda4b778d0bf1 | [
"MIT"
] | null | null | null | test/soft_delete_migration_test.exs | petlove/ecto_soft_delete | 9a99a80037aa1dd726ca317b398bda4b778d0bf1 | [
"MIT"
] | null | null | null | defmodule Ecto.SoftDelete.Migration.Test do
use ExUnit.Case
use Ecto.Migration
alias Ecto.SoftDelete.Test.Repo
import Ecto.SoftDelete.Migration
alias Ecto.Migration.Runner
setup meta do
:ok = Ecto.Adapters.SQL.Sandbox.checkout(Repo)
{:ok, runner} = Runner.start_link({self(), Repo, __MODULE__, meta[... | 27.714286 | 129 | 0.68299 |
9e504d2e5b62ab5c40eca102117698fdb08e7491 | 2,464 | exs | Elixir | priv/repo/migrations/20190306191610_fix_timestamps_type_all.exs | alchexmist/erlnote | e1f164e63616316e1d3869ebfae5ed2ae96c3ccd | [
"Apache-2.0"
] | null | null | null | priv/repo/migrations/20190306191610_fix_timestamps_type_all.exs | alchexmist/erlnote | e1f164e63616316e1d3869ebfae5ed2ae96c3ccd | [
"Apache-2.0"
] | 1 | 2019-11-02T13:46:12.000Z | 2019-11-02T13:46:12.000Z | priv/repo/migrations/20190306191610_fix_timestamps_type_all.exs | alchexmist/erlnote | e1f164e63616316e1d3869ebfae5ed2ae96c3ccd | [
"Apache-2.0"
] | null | null | null | defmodule Erlnote.Repo.Migrations.FixTimestampsTypeAll do
use Ecto.Migration
def change do
# execute "ALTER TABLE boards_users ALTER COLUMN inserted_at DROP NOT NULL"
# execute "ALTER TABLE boards_users ALTER COLUMN updated_at DROP NOT NULL"
alter table(:boards_users) do
remove :inserted_at
... | 31.589744 | 80 | 0.696429 |
9e504d523af35b00aaa0f0526af633615a131ab0 | 9,538 | ex | Elixir | lib/level/groups.ex | davecremins/level | cc06b86d32e9bef954a199dc4a2b47561815fd4b | [
"Apache-2.0"
] | null | null | null | lib/level/groups.ex | davecremins/level | cc06b86d32e9bef954a199dc4a2b47561815fd4b | [
"Apache-2.0"
] | null | null | null | lib/level/groups.ex | davecremins/level | cc06b86d32e9bef954a199dc4a2b47561815fd4b | [
"Apache-2.0"
] | null | null | null | defmodule Level.Groups do
@moduledoc """
The Groups context.
"""
import Ecto.Query, warn: false
import Level.Gettext
import Ecto.Changeset, only: [change: 2, unique_constraint: 3]
alias Ecto.Multi
alias Level.Pubsub
alias Level.Repo
alias Level.Groups.Group
alias Level.Groups.GroupBookmark
ali... | 28.81571 | 93 | 0.613022 |
9e5055c6498de0c012a3c80cd30344e5f2e49998 | 1,658 | ex | Elixir | clients/kratos/elixir/lib/ory/model/ui_node_attributes.ex | ory/sdk-generator | 958314d130922ad6f20f439b5230141a832231a5 | [
"Apache-2.0"
] | null | null | null | clients/kratos/elixir/lib/ory/model/ui_node_attributes.ex | ory/sdk-generator | 958314d130922ad6f20f439b5230141a832231a5 | [
"Apache-2.0"
] | null | null | null | clients/kratos/elixir/lib/ory/model/ui_node_attributes.ex | ory/sdk-generator | 958314d130922ad6f20f439b5230141a832231a5 | [
"Apache-2.0"
] | null | null | null | # NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
# https://openapi-generator.tech
# Do not edit the class manually.
defmodule Ory.Model.UiNodeAttributes do
@moduledoc """
"""
@derive [Poison.Encoder]
defstruct [
:"disabled",
:"label",
:"name",
:"no... | 23.352113 | 91 | 0.562726 |
9e50748af4d35473e1169e721fc4c3c9b7cf4dcd | 148 | ex | Elixir | apps/cat_feeder_web/web/controllers/page_controller.ex | wsmoak/cat_feeder | e9157563ff3294fd9fd4c9d13f956cbe1dd718c2 | [
"MIT"
] | 20 | 2016-01-16T17:08:00.000Z | 2021-01-15T15:46:23.000Z | apps/cat_feeder_web/web/controllers/page_controller.ex | wsmoak/cat_feeder | e9157563ff3294fd9fd4c9d13f956cbe1dd718c2 | [
"MIT"
] | null | null | null | apps/cat_feeder_web/web/controllers/page_controller.ex | wsmoak/cat_feeder | e9157563ff3294fd9fd4c9d13f956cbe1dd718c2 | [
"MIT"
] | 5 | 2016-01-09T16:52:44.000Z | 2017-02-09T16:03:25.000Z | defmodule CatFeederWeb.PageController do
use CatFeederWeb.Web, :controller
def index(conn, _params) do
render conn, "index.html"
end
end
| 18.5 | 40 | 0.75 |
9e508e8729d18bff2061d0d007d32f1b04fe0b78 | 136 | ex | Elixir | lib/firestorm_web/web/admin/forums/category.ex | palindrom615/firestorm | 0690493c9dcae5c04c63c5321532a7db923e5be7 | [
"MIT"
] | null | null | null | lib/firestorm_web/web/admin/forums/category.ex | palindrom615/firestorm | 0690493c9dcae5c04c63c5321532a7db923e5be7 | [
"MIT"
] | null | null | null | lib/firestorm_web/web/admin/forums/category.ex | palindrom615/firestorm | 0690493c9dcae5c04c63c5321532a7db923e5be7 | [
"MIT"
] | 1 | 2020-03-20T12:58:37.000Z | 2020-03-20T12:58:37.000Z | defmodule FirestormWeb.ExAdmin.Forums.Category do
use ExAdmin.Register
register_resource FirestormWeb.Forums.Category do
end
end
| 19.428571 | 51 | 0.830882 |
9e5095a2f45ee618734a2465f03e08286d9734a2 | 1,797 | exs | Elixir | lib/mix/test/mix/tasks/compile_test.exs | ekosz/elixir | 62e375bc711b4072e1b68de776e96cc31f571d45 | [
"Apache-2.0"
] | 1 | 2017-10-29T16:37:08.000Z | 2017-10-29T16:37:08.000Z | lib/mix/test/mix/tasks/compile_test.exs | ekosz/elixir | 62e375bc711b4072e1b68de776e96cc31f571d45 | [
"Apache-2.0"
] | null | null | null | lib/mix/test/mix/tasks/compile_test.exs | ekosz/elixir | 62e375bc711b4072e1b68de776e96cc31f571d45 | [
"Apache-2.0"
] | null | null | null | Code.require_file "../../../test_helper", __FILE__
defmodule Mix.Tasks.CompileTest do
use MixTest.Case
test "mix compile --list without mixfile" do
in_fixture "no_mixfile", fn ->
Mix.Tasks.Compile.run ["--list"]
assert_received { :mix_shell, :info, ["\nEnabled compilers: elixir"] }
end
end
... | 27.227273 | 87 | 0.647746 |
9e50a0896acaa54bd265c9073c6dff1e9d7ca22d | 3,196 | ex | Elixir | lib/cryptopunk/derivation.ex | ayrat555/cryptopunk | 9d41028739dd13b762838912f9fa1e18ac1160a8 | [
"MIT"
] | 12 | 2021-10-31T07:10:48.000Z | 2022-02-21T18:13:17.000Z | lib/cryptopunk/derivation.ex | ayrat555/cryptopunk | 9d41028739dd13b762838912f9fa1e18ac1160a8 | [
"MIT"
] | null | null | null | lib/cryptopunk/derivation.ex | ayrat555/cryptopunk | 9d41028739dd13b762838912f9fa1e18ac1160a8 | [
"MIT"
] | null | null | null | defmodule Cryptopunk.Derivation do
@moduledoc """
Implements key derivation logic.
See https://github.com/bitcoin/bips/blob/master/bip-0032.mediawiki
"""
alias Cryptopunk.Derivation.Path
alias Cryptopunk.Key
alias Cryptopunk.Utils
import Path, only: [is_normal: 1, is_hardened: 1]
@order 0xFFFFFFFFF... | 26.413223 | 99 | 0.652378 |
9e50cd43d4f5ba5bb494df0ade787b7914316c6f | 7,346 | ex | Elixir | lib/mix/tasks/compile.forcex.ex | Tapjoy/forcex | c51757e360f6e5bc416e758a8978f586becb7ce2 | [
"MIT"
] | null | null | null | lib/mix/tasks/compile.forcex.ex | Tapjoy/forcex | c51757e360f6e5bc416e758a8978f586becb7ce2 | [
"MIT"
] | null | null | null | lib/mix/tasks/compile.forcex.ex | Tapjoy/forcex | c51757e360f6e5bc416e758a8978f586becb7ce2 | [
"MIT"
] | 1 | 2021-08-20T08:16:03.000Z | 2021-08-20T08:16:03.000Z | defmodule Mix.Tasks.Compile.Forcex do
use Mix.Task
@recursive false
def run(_) do
{:ok, _} = Application.ensure_all_started(:forcex)
client = Forcex.Client.login
case client do
%{access_token: nil} -> IO.puts("Invalid configuration/credentials. Cannot generate SObjects.")
_ -> generate... | 33.543379 | 148 | 0.610536 |
9e50fed833d85a2eb9e121c0ffb49129daa1e1a1 | 2,297 | ex | Elixir | lib/xema/castable/helper.ex | garret-smith/xema | f9629d66591644d53ad4cb9c7a97de8b10f6fa5e | [
"MIT"
] | null | null | null | lib/xema/castable/helper.ex | garret-smith/xema | f9629d66591644d53ad4cb9c7a97de8b10f6fa5e | [
"MIT"
] | null | null | null | lib/xema/castable/helper.ex | garret-smith/xema | f9629d66591644d53ad4cb9c7a97de8b10f6fa5e | [
"MIT"
] | null | null | null | defmodule Xema.Castable.Helper do
@moduledoc false
import Xema.Utils, only: [to_existing_atom: 1]
defmacro __using__(_) do
quote do
import Xema.Castable.Helper
import Xema.Utils, only: [to_existing_atom: 1]
alias Xema.Schema
def cast(value, %Schema{type: :any}), do: {:ok, value}
... | 24.698925 | 72 | 0.561167 |
9e51225cd3e0efe32f6dfa93f9939f2a8b5f864a | 2,983 | ex | Elixir | clients/drive/lib/google_api/drive/v3/model/reply.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/drive/lib/google_api/drive/v3/model/reply.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/drive/lib/google_api/drive/v3/model/reply.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 40.863014 | 231 | 0.669125 |
9e5164e97b9bbc10c939b9fcacaa3f09dd3f8b48 | 29,777 | ex | Elixir | clients/compute/lib/google_api/compute/v1/api/resource_policies.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/api/resource_policies.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/api/resource_policies.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... | 48.417886 | 511 | 0.641233 |
9e5188aa9f75acf5c40e2c737d60083ca2363bd4 | 66,498 | ex | Elixir | lib/ecto/repo.ex | williamthome/ecto | ad821b05746f23bdcd2069f6e9c68a2b4786830c | [
"Apache-2.0"
] | null | null | null | lib/ecto/repo.ex | williamthome/ecto | ad821b05746f23bdcd2069f6e9c68a2b4786830c | [
"Apache-2.0"
] | 4 | 2021-03-04T13:00:52.000Z | 2021-03-12T12:42:09.000Z | deps/ecto/lib/ecto/repo.ex | adrianomota/blog | ef3b2d2ed54f038368ead8234d76c18983caa75b | [
"MIT"
] | 2 | 2017-07-21T08:28:41.000Z | 2018-12-13T02:13:32.000Z | defmodule Ecto.Repo do
@moduledoc """
Defines a repository.
A repository maps to an underlying data store, controlled by the
adapter. For example, Ecto ships with a Postgres adapter that
stores data into a PostgreSQL database.
When used, the repository expects the `:otp_app` and `:adapter` as
option. Th... | 37.527088 | 137 | 0.673945 |
9e51928d530aac50f11bd93d3eaeae9b74be228e | 5,554 | ex | Elixir | lib/faktory_worker/batch.ex | vitalsource/faktory_worker | 03633c0ddcd2752aa771afbe0757f6e03352254b | [
"MIT"
] | null | null | null | lib/faktory_worker/batch.ex | vitalsource/faktory_worker | 03633c0ddcd2752aa771afbe0757f6e03352254b | [
"MIT"
] | null | null | null | lib/faktory_worker/batch.ex | vitalsource/faktory_worker | 03633c0ddcd2752aa771afbe0757f6e03352254b | [
"MIT"
] | null | null | null | defmodule FaktoryWorker.Batch do
@moduledoc """
Supports Faktory Batch operations
[Batch support](https://github.com/contribsys/faktory/wiki/Ent-Batches) is a
Faktory Enterprise feature. It allows jobs to pushed as part of a batch. When
all jobs in a batch have completed, Faktory will queue a callback job. T... | 29.078534 | 88 | 0.688873 |
9e51a83e1eede902a415b7fa1eed9bce0ae188c2 | 2,043 | ex | Elixir | lib/raygun.ex | sreecodeslayer/raygun | 3dfc2b0ddad6c2f3424a05727b0ad98303f1846c | [
"Apache-2.0"
] | 23 | 2015-08-16T18:17:12.000Z | 2020-08-14T09:45:26.000Z | lib/raygun.ex | sreecodeslayer/raygun | 3dfc2b0ddad6c2f3424a05727b0ad98303f1846c | [
"Apache-2.0"
] | 23 | 2015-08-18T15:21:12.000Z | 2020-08-30T05:31:36.000Z | lib/raygun.ex | sreecodeslayer/raygun | 3dfc2b0ddad6c2f3424a05727b0ad98303f1846c | [
"Apache-2.0"
] | 22 | 2015-08-23T16:50:12.000Z | 2021-02-15T02:19:47.000Z | defmodule Raygun do
@moduledoc """
Send errors to Raygun. Errors can be captured in three different ways.
1. Any errors that are logged
2. Any exceptions that occur in a Plug
3. Programmatically
All the functions will return `:ok` or `{:error, reason}`
"""
@api_endpoint "https://api.raygun.io/entries... | 32.951613 | 80 | 0.69114 |
9e51b495eb2b2457efb14d984c4d2dd3d28d500e | 2,369 | ex | Elixir | lib/ambry_web/live/admin/audit_live/index.ex | froseph/ambry | 86c1a8528b9f3cc7e4a7debd8005df4116a7d1b1 | [
"MIT"
] | null | null | null | lib/ambry_web/live/admin/audit_live/index.ex | froseph/ambry | 86c1a8528b9f3cc7e4a7debd8005df4116a7d1b1 | [
"MIT"
] | null | null | null | lib/ambry_web/live/admin/audit_live/index.ex | froseph/ambry | 86c1a8528b9f3cc7e4a7debd8005df4116a7d1b1 | [
"MIT"
] | null | null | null | defmodule AmbryWeb.Admin.AuditLive.Index do
@moduledoc """
LiveView for audit admin interface.
"""
use AmbryWeb, :live_view
alias Ambry.{FileUtils, Media}
alias AmbryWeb.Admin.Components.AdminNav
alias Surface.Components.LiveRedirect
on_mount {AmbryWeb.UserLiveAuth, :ensure_mounted_current_user}
... | 24.936842 | 97 | 0.650485 |
9e51bb137cfada04bb16221715a1085b45e7148f | 646 | exs | Elixir | test/mux/data/incidents_test.exs | mcrumm/mux-elixir | 07b8a655299474560906ae5ef278cfc7ffdd46d6 | [
"MIT"
] | 53 | 2018-06-29T22:49:29.000Z | 2022-03-23T00:01:44.000Z | test/mux/data/incidents_test.exs | mcrumm/mux-elixir | 07b8a655299474560906ae5ef278cfc7ffdd46d6 | [
"MIT"
] | 18 | 2019-05-12T00:41:57.000Z | 2022-01-09T13:46:59.000Z | test/mux/data/incidents_test.exs | mcrumm/mux-elixir | 07b8a655299474560906ae5ef278cfc7ffdd46d6 | [
"MIT"
] | 14 | 2019-01-24T23:44:34.000Z | 2022-03-21T15:28:42.000Z | defmodule Mux.Data.IncidentsTest do
use ExUnit.Case
import Tesla.Mock
doctest Mux.Data.Incidents
@base_url "https://api.mux.com/data/v1/incidents"
setup do
client = Mux.Base.new("token_id", "token_secret")
mock(fn
%{method: :get, url: @base_url} ->
%Tesla.Env{status: 200, body: Mux.Fi... | 25.84 | 71 | 0.625387 |
9e51f59358bb489411c0b8d40f70d9526a2563f2 | 6,849 | exs | Elixir | test/timber_exceptions/translator_test.exs | mitchellhenke/timber-elixir-exceptions | 6749489a1b964ec23b01152d81dbccfff20cb518 | [
"0BSD"
] | null | null | null | test/timber_exceptions/translator_test.exs | mitchellhenke/timber-elixir-exceptions | 6749489a1b964ec23b01152d81dbccfff20cb518 | [
"0BSD"
] | null | null | null | test/timber_exceptions/translator_test.exs | mitchellhenke/timber-elixir-exceptions | 6749489a1b964ec23b01152d81dbccfff20cb518 | [
"0BSD"
] | null | null | null | defmodule Timber.Exceptions.TranslatorTest do
use ExUnit.Case
import Timber.Exceptions.TestHelpers
alias Timber.HTTPClients.Fake, as: FakeHTTPClient
alias Timber.LoggerBackends.InMemory
alias Timber.Exceptions.{TestGenServer, SimpleTestGenServer}
alias Timber.LoggerBackends.HTTP
alias Timber.Events.Err... | 28.5375 | 93 | 0.640385 |
9e522e3e9ad017c60ab89df690c5b1315c89d2e4 | 399 | exs | Elixir | priv/repo/migrations/20160801144208_create_chat.exs | luca-apostoli/ruru-chat | d6c62000b78592f03cf56f63acd23a6404df1924 | [
"MIT"
] | 1 | 2017-04-22T12:36:19.000Z | 2017-04-22T12:36:19.000Z | priv/repo/migrations/20160801144208_create_chat.exs | luca-apostoli/ruru-chat | d6c62000b78592f03cf56f63acd23a6404df1924 | [
"MIT"
] | null | null | null | priv/repo/migrations/20160801144208_create_chat.exs | luca-apostoli/ruru-chat | d6c62000b78592f03cf56f63acd23a6404df1924 | [
"MIT"
] | null | null | null | defmodule Ruru.Repo.Migrations.CreateChat do
use Ecto.Migration
def change do
create table(:chats) do
add :user_id, references(:users, on_delete: :nothing)
add :operator_id, references(:operators, on_delete: :nothing)
add :status, :boolean, default: false
timestamps()
end
create... | 24.9375 | 67 | 0.679198 |
9e522fe7835777690152a23c35d6b43a50b1a9b0 | 3,846 | ex | Elixir | lib/chat_api_web/controllers/gmail_controller.ex | daskycodes/papercups | e716d94372b452d7545d9db79a23a44aee53676e | [
"MIT"
] | null | null | null | lib/chat_api_web/controllers/gmail_controller.ex | daskycodes/papercups | e716d94372b452d7545d9db79a23a44aee53676e | [
"MIT"
] | null | null | null | lib/chat_api_web/controllers/gmail_controller.ex | daskycodes/papercups | e716d94372b452d7545d9db79a23a44aee53676e | [
"MIT"
] | null | null | null | # TODO: rename to GmailController?
defmodule ChatApiWeb.GmailController do
use ChatApiWeb, :controller
require Logger
alias ChatApi.Google
@spec callback(Plug.Conn.t(), map()) :: Plug.Conn.t()
@doc """
This action is reached via `/api/gmail/oauth` is the the callback URL that
Google's OAuth2 provider w... | 31.785124 | 93 | 0.602964 |
9e52456b9d50f7b40b840fa9fed181108823e289 | 3,191 | ex | Elixir | lib/opentelemetry_ecto.ex | wuunder/opentelemetry_ecto | d4f8898f8eb782359a076355bc4f47adbda183a6 | [
"Apache-2.0"
] | 23 | 2020-03-31T19:41:50.000Z | 2021-10-06T00:02:52.000Z | lib/opentelemetry_ecto.ex | wuunder/opentelemetry_ecto | d4f8898f8eb782359a076355bc4f47adbda183a6 | [
"Apache-2.0"
] | 14 | 2020-03-29T15:52:25.000Z | 2021-10-15T15:51:21.000Z | lib/opentelemetry_ecto.ex | wuunder/opentelemetry_ecto | d4f8898f8eb782359a076355bc4f47adbda183a6 | [
"Apache-2.0"
] | 19 | 2020-04-06T15:11:42.000Z | 2021-09-28T21:51:14.000Z | defmodule OpentelemetryEcto do
@moduledoc """
Telemetry handler for creating OpenTelemetry Spans from Ecto query events.
"""
require OpenTelemetry.Tracer
@doc """
Attaches the OpentelemetryEcto handler to your repo events. This should be called
from your application behaviour on startup.
Example:
... | 30.390476 | 120 | 0.640552 |
9e527eba006562334e352c534da0d22b60de5581 | 1,393 | ex | Elixir | test/support/data_case.ex | drapadubok/multiauth | 9ca9294402311c06a082e6972144a2eb8935a797 | [
"MIT"
] | 1 | 2018-06-01T02:08:12.000Z | 2018-06-01T02:08:12.000Z | test/support/data_case.ex | drapadubok/multiauth | 9ca9294402311c06a082e6972144a2eb8935a797 | [
"MIT"
] | null | null | null | test/support/data_case.ex | drapadubok/multiauth | 9ca9294402311c06a082e6972144a2eb8935a797 | [
"MIT"
] | null | null | null | defmodule Multiauth.DataCase do
@moduledoc """
This module defines the setup for tests requiring
access to the application's data layer.
You may define functions here to be used as helpers in
your tests.
Finally, if the test case interacts with the database,
it cannot be async. For this reason, every te... | 25.796296 | 77 | 0.681981 |
9e52a57a24a643ff7a91c4244564416d1fc678cc | 5,343 | ex | Elixir | clients/ad_mob/lib/google_api/ad_mob/v1/model/mediation_report_spec.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/ad_mob/lib/google_api/ad_mob/v1/model/mediation_report_spec.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/ad_mob/lib/google_api/ad_mob/v1/model/mediation_report_spec.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... | 42.744 | 194 | 0.679206 |
9e52a7d5bf5f7e667c592954287811c628cec21e | 1,768 | ex | Elixir | lib/absinthe_generator/schema_builder.ex | MikaAK/absinthe_generator | 2025daeac092c5a2fa8030bcddf770fd3104cd0f | [
"MIT"
] | 1 | 2022-02-28T14:58:08.000Z | 2022-02-28T14:58:08.000Z | lib/absinthe_generator/schema_builder.ex | MikaAK/absinthe_generator | 2025daeac092c5a2fa8030bcddf770fd3104cd0f | [
"MIT"
] | null | null | null | lib/absinthe_generator/schema_builder.ex | MikaAK/absinthe_generator | 2025daeac092c5a2fa8030bcddf770fd3104cd0f | [
"MIT"
] | null | null | null | defmodule AbsintheGenerator.SchemaBuilder do
alias AbsintheGenerator.{Type, Mutation, Query, Schema}
@dataloader_regex ~r/^dataloader\(([^,]+)/
def generate(app_name, schema_items) do
{type_items, schema_items} = Enum.split_with(schema_items, &is_struct(&1, Type))
{mutation_items, schema_items} = Enum.s... | 33.358491 | 92 | 0.686652 |
9e52af97e14f83b6f46dfd2e7354734475be2726 | 385 | ex | Elixir | platform/target/bootstrap/protocols.ex | defcon201/farmbot_os | acc22702afbb13be461c9d80591604958117ff75 | [
"MIT"
] | null | null | null | platform/target/bootstrap/protocols.ex | defcon201/farmbot_os | acc22702afbb13be461c9d80591604958117ff75 | [
"MIT"
] | null | null | null | platform/target/bootstrap/protocols.ex | defcon201/farmbot_os | acc22702afbb13be461c9d80591604958117ff75 | [
"MIT"
] | 1 | 2020-12-16T16:39:32.000Z | 2020-12-16T16:39:32.000Z | defmodule Farmbot.Target.Protocols do
@moduledoc false
use Farmbot.Logger
def start_link(_, _) do
Logger.busy(3, "Loading consolidated protocols.")
for beamfile <- Path.wildcard("/srv/erlang/lib/farmbot-*/consolidated/*.beam") do
beamfile
|> String.replace_suffix(".beam", "")
|> to_ch... | 21.388889 | 85 | 0.646753 |
9e52d068ad1753a6879a0bcb71e26d782488f47f | 346 | exs | Elixir | priv/repo/seeds.exs | appdojolabs/myapp | 41887a60f7ea86db3c70470631b703455c865042 | [
"MIT"
] | 41 | 2017-05-21T14:33:28.000Z | 2022-03-28T22:29:56.000Z | priv/repo/seeds.exs | DMeechan/deploy-elixir-docker-example | b63a46453629ced5134aba039575a3c010a6f2a1 | [
"MIT"
] | 2 | 2017-07-23T07:06:38.000Z | 2018-07-16T23:53:12.000Z | priv/repo/seeds.exs | appdojolabs/myapp | 41887a60f7ea86db3c70470631b703455c865042 | [
"MIT"
] | 16 | 2017-05-21T22:35:10.000Z | 2022-03-28T22:30:04.000Z | # Script for populating the database. You can run it as:
#
# mix run priv/repo/seeds.exs
#
# Inside the script, you can read and write to any of your
# repositories directly:
#
# Myapp.Repo.insert!(%Myapp.SomeModel{})
#
# We recommend using the bang functions (`insert!`, `update!`
# and so on) as they will fail... | 28.833333 | 61 | 0.702312 |
9e52f766154562bd22cf291603454d997d9d6874 | 2,966 | ex | Elixir | lib/day_02_bathroom_code.ex | scmx/advent-of-code-2016-elixir | 774145cfee448998d3c35314872bff9afad4d287 | [
"MIT"
] | 1 | 2016-12-07T07:48:01.000Z | 2016-12-07T07:48:01.000Z | lib/day_02_bathroom_code.ex | scmx/advent-of-code-2016-elixir | 774145cfee448998d3c35314872bff9afad4d287 | [
"MIT"
] | null | null | null | lib/day_02_bathroom_code.ex | scmx/advent-of-code-2016-elixir | 774145cfee448998d3c35314872bff9afad4d287 | [
"MIT"
] | null | null | null | defmodule Adventofcode.Day02BathroomCode do
# Position as a grid
# 1 2 3 {0,0} {1,0} {2,0}
# 4 5 6 {0,1} {1,1} {2,1}
# 7 8 9 {0,2} {1,2} {2,2}
# Thus the starting position "5" is...
@start_pos {1, 1}
@grid_width 3
@grid_height 3
@max_x @grid_width - 1
@max_y @grid_height - 1
def bathroom... | 32.593407 | 79 | 0.523601 |
9e5369238ed739398612f0614eff7238abf6a996 | 213 | exs | Elixir | config/test.exs | davidwebster48/mnesiac | 1ca8e52d843fc68cf351212b65d116df6ee6bac6 | [
"MIT"
] | 97 | 2018-07-28T01:54:23.000Z | 2022-03-20T06:28:39.000Z | config/test.exs | astutecat/mnesiac | b547c45dca79861d7c54b9b7a86af8fcb8950966 | [
"MIT"
] | 71 | 2018-07-30T05:46:26.000Z | 2021-12-08T08:25:16.000Z | config/test.exs | astutecat/mnesiac | b547c45dca79861d7c54b9b7a86af8fcb8950966 | [
"MIT"
] | 17 | 2018-10-30T14:59:38.000Z | 2022-02-22T08:42:58.000Z | use Mix.Config
config :mnesia,
dir: to_charlist(Path.join(File.cwd!(), to_string(node())))
config :mnesiac,
stores: [Mnesiac.Support.ExampleStore],
schema_type: :disc_copies,
table_load_timeout: 600_000
| 21.3 | 61 | 0.741784 |
9e538b59f88b882610d0cbb8b43f0d6ef058bf01 | 4,165 | ex | Elixir | lib/lcd_display/driver/hd44780_util.ex | philipgiuliani/lcd_display | 41ec73eb554d97c02d7ff16489fa4bec88618f3e | [
"MIT"
] | 8 | 2021-01-18T21:24:56.000Z | 2022-02-04T08:14:31.000Z | lib/lcd_display/driver/hd44780_util.ex | philipgiuliani/lcd_display | 41ec73eb554d97c02d7ff16489fa4bec88618f3e | [
"MIT"
] | null | null | null | lib/lcd_display/driver/hd44780_util.ex | philipgiuliani/lcd_display | 41ec73eb554d97c02d7ff16489fa4bec88618f3e | [
"MIT"
] | 1 | 2021-01-06T15:39:56.000Z | 2021-01-06T15:39:56.000Z | defmodule LcdDisplay.HD44780.Util do
@moduledoc """
A collection of utility functions that are used for display drivers.
"""
@type row_col_pos :: {non_neg_integer, non_neg_integer}
@typedoc """
Typically 2x16 or 4x20.
"""
@type display_config :: %{
required(:rows) => LcdDisplay.HD44780.Drive... | 32.038462 | 123 | 0.636255 |
9e53c5611cfedb3526312fed46841241cdfc2fd1 | 382 | ex | Elixir | lib/ex_diet_web/graphql/queries/accounts.ex | mugimaru/ex_diet | 9602c07af27255decbb32fd7ae0c12b3ffe662a3 | [
"Apache-2.0"
] | 2 | 2020-06-25T11:51:46.000Z | 2020-09-30T14:00:40.000Z | lib/ex_diet_web/graphql/queries/accounts.ex | mugimaru/ex_diet | 9602c07af27255decbb32fd7ae0c12b3ffe662a3 | [
"Apache-2.0"
] | null | null | null | lib/ex_diet_web/graphql/queries/accounts.ex | mugimaru/ex_diet | 9602c07af27255decbb32fd7ae0c12b3ffe662a3 | [
"Apache-2.0"
] | 1 | 2020-01-29T08:43:07.000Z | 2020-01-29T08:43:07.000Z | defmodule ExDietWeb.GraphQL.Queries.Accounts do
@moduledoc false
use Absinthe.Schema.Notation
use Absinthe.Relay.Schema.Notation, :modern
alias ExDietWeb.GraphQL.Middleware.RequireAuth
object :accounts_queries do
field :me, :user do
middleware(RequireAuth)
resolve(fn _, _, %{context: %{use... | 20.105263 | 51 | 0.683246 |
9e53cdf6a6cef836454c643178d6825dffca0710 | 593 | exs | Elixir | mix.exs | wombatsecurity/airbrakex | aca900123b658797110033d3523c094d262684c0 | [
"MIT"
] | null | null | null | mix.exs | wombatsecurity/airbrakex | aca900123b658797110033d3523c094d262684c0 | [
"MIT"
] | 1 | 2017-07-25T20:14:30.000Z | 2017-07-25T20:14:30.000Z | mix.exs | wombatsecurity/airbrakex | aca900123b658797110033d3523c094d262684c0 | [
"MIT"
] | null | null | null | defmodule Airbrakex.Mixfile do
use Mix.Project
def project do
[
app: :airbrakex,
version: "0.0.6",
elixir: "~> 1.0",
description: "Airbrake Elixir Notifier",
package: package,
deps: deps
]
end
def package do
[
maintainers: ["Michał Kalbarczyk"],
licen... | 16.472222 | 63 | 0.541315 |
9e540941d70320b4e662951b027f4b42223675ff | 1,107 | ex | Elixir | lib/find_a_fluff_web/controllers/region_controller.ex | SylvainBigonneau/FindAFluff | c88c18cc085254e15445312f41b06b826449b251 | [
"MIT"
] | 1 | 2018-06-03T15:37:23.000Z | 2018-06-03T15:37:23.000Z | lib/find_a_fluff_web/controllers/region_controller.ex | SylvainBigonneau/FindAFluff | c88c18cc085254e15445312f41b06b826449b251 | [
"MIT"
] | null | null | null | lib/find_a_fluff_web/controllers/region_controller.ex | SylvainBigonneau/FindAFluff | c88c18cc085254e15445312f41b06b826449b251 | [
"MIT"
] | null | null | null | defmodule FindAFluffWeb.RegionController do
use FindAFluffWeb, :controller
alias FindAFluff.Region
def index(conn, params) do
species = Dict.get(params, "species", "%")
race = Dict.get(params, "race", "%")
photo = Dict.get(params, "photo", nil)
age = Dict.get(params, "age", nil)
query = fro... | 27.675 | 77 | 0.564589 |
9e541cb4644d9bc3b39040849d120be75fc7c648 | 1,366 | exs | Elixir | config/config.exs | francieleportugal/banking-api | 846c81dde3816042f32c2182985a2060485c5e7c | [
"Apache-2.0"
] | null | null | null | config/config.exs | francieleportugal/banking-api | 846c81dde3816042f32c2182985a2060485c5e7c | [
"Apache-2.0"
] | null | null | null | config/config.exs | francieleportugal/banking-api | 846c81dde3816042f32c2182985a2060485c5e7c | [
"Apache-2.0"
] | null | null | null | # This file is responsible for configuring your umbrella
# and **all applications** and their dependencies with the
# help of Mix.Config.
#
# Note that all applications in your umbrella share the
# same configuration and dependencies, which is why they
# all use the same configuration file. If you want different
# conf... | 35.025641 | 86 | 0.771596 |
9e5428f88222c8df9e367cf1ab3269ceb8e73f28 | 2,924 | ex | Elixir | lib/yatapp/translations_downloader.ex | JeneaVranceanu/yatapp-elixir | 7297936ab2d53a28d7b0cd6b94ad2ab6206928ca | [
"MIT"
] | 2 | 2019-08-23T09:42:30.000Z | 2019-10-29T14:38:36.000Z | lib/yatapp/translations_downloader.ex | JeneaVranceanu/yatapp-elixir | 7297936ab2d53a28d7b0cd6b94ad2ab6206928ca | [
"MIT"
] | 6 | 2019-03-27T13:30:05.000Z | 2022-01-14T21:12:29.000Z | lib/yatapp/translations_downloader.ex | JeneaVranceanu/yatapp-elixir | 7297936ab2d53a28d7b0cd6b94ad2ab6206928ca | [
"MIT"
] | 2 | 2019-11-14T13:51:42.000Z | 2022-01-14T09:18:03.000Z | defmodule Yatapp.TranslationsDownloader do
@moduledoc """
TranslationsDownloader module.
"""
require Logger
alias Yatapp.Config
@api_end_point_url "https://api.yatapp.net/api/v1/project/:project_id/:lang/:format"
@doc """
Downloads all translations and saves all locales.
Returns `:ok`.
## Exampl... | 26.581818 | 97 | 0.647743 |
9e544f184c7a90f25fb3631a0e83a842d87fe4cf | 7,063 | ex | Elixir | lib/phoenix/endpoint/instrument.ex | arkgil/phoenix | b5d82814154b5fb87c0870e25c1c2243c9384d9e | [
"MIT"
] | null | null | null | lib/phoenix/endpoint/instrument.ex | arkgil/phoenix | b5d82814154b5fb87c0870e25c1c2243c9384d9e | [
"MIT"
] | null | null | null | lib/phoenix/endpoint/instrument.ex | arkgil/phoenix | b5d82814154b5fb87c0870e25c1c2243c9384d9e | [
"MIT"
] | null | null | null | defmodule Phoenix.Endpoint.Instrument do
@moduledoc false
# This is the arity that event callbacks in the instrumenter modules must
# have.
@event_callback_arity 3
@doc false
def definstrument(otp_app, endpoint) do
app_instrumenters = app_instrumenters(otp_app, endpoint)
quote bind_quoted: [app_i... | 33.794258 | 96 | 0.636274 |
9e5476ec7693496e3633d32fd9b08809bec1543d | 4,239 | ex | Elixir | test/support.ex | noizu/que | 065b069c3dafe0f90bf858ae77080af7b310ae62 | [
"MIT"
] | null | null | null | test/support.ex | noizu/que | 065b069c3dafe0f90bf858ae77080af7b310ae62 | [
"MIT"
] | null | null | null | test/support.ex | noizu/que | 065b069c3dafe0f90bf858ae77080af7b310ae62 | [
"MIT"
] | null | null | null | ## Namespace all test related modules under Que.Test.Meta
## ======================================================
defmodule Que.Test.Meta do
require Logger
# Test workers for handling Jobs
# ==============================
defmodule TestWorker do
use Que.Worker
def perform(args), do: Logger.debug(... | 23.949153 | 99 | 0.597547 |
9e54988b6b97df95fc599107939fc9ab12f8395b | 41,197 | ex | Elixir | lib/phoenix/endpoint.ex | shritesh/phoenix | 4bf53ecaae5a9057ea57c248964490dfdee312af | [
"MIT"
] | null | null | null | lib/phoenix/endpoint.ex | shritesh/phoenix | 4bf53ecaae5a9057ea57c248964490dfdee312af | [
"MIT"
] | null | null | null | lib/phoenix/endpoint.ex | shritesh/phoenix | 4bf53ecaae5a9057ea57c248964490dfdee312af | [
"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... | 45.927536 | 10,138 | 0.735952 |
9e54c7f8ec1092818a4ab018ee0476fcd9b26e66 | 325 | exs | Elixir | config/config.exs | datapio/opencore | 6e766c3b3a2ad8b07295c7fd27cffc0923284197 | [
"Apache-2.0"
] | 5 | 2021-05-14T22:01:08.000Z | 2021-09-21T16:28:09.000Z | config/config.exs | datapio/opencore | 6e766c3b3a2ad8b07295c7fd27cffc0923284197 | [
"Apache-2.0"
] | 198 | 2019-10-17T12:22:25.000Z | 2022-03-16T02:14:14.000Z | config/config.exs | datapio/opencore | 6e766c3b3a2ad8b07295c7fd27cffc0923284197 | [
"Apache-2.0"
] | 1 | 2022-03-10T08:54:36.000Z | 2022-03-10T08:54:36.000Z | import Config
config :logger, :console,
level: :info,
format: "$date $time [$level] $metadata$message\n",
metadata: [:user_id]
config :datapio_cluster,
service_name: [env: "DATAPIO_SERVICE_NAME", default: nil],
app_name: [env: "DATAPIO_APP_NAME", default: "datapio-opencore"]
import_config "#{config_env()}.... | 25 | 66 | 0.710769 |
9e54cac3ba267f053646bf37b5e15d1df43e8797 | 321 | exs | Elixir | lists-and-recursion/weather2.exs | sfat/programming-elixir-exercises | 19e62e3f3344ec044e1eb1b39b195f4dad3dff1c | [
"Apache-2.0"
] | 1 | 2019-02-17T11:54:17.000Z | 2019-02-17T11:54:17.000Z | lists-and-recursion/weather2.exs | sfat/programming-elixir-exercises | 19e62e3f3344ec044e1eb1b39b195f4dad3dff1c | [
"Apache-2.0"
] | null | null | null | lists-and-recursion/weather2.exs | sfat/programming-elixir-exercises | 19e62e3f3344ec044e1eb1b39b195f4dad3dff1c | [
"Apache-2.0"
] | null | null | null | defmodule WeatherHistory do
def for_location([], _target_loc), do: []
def for_location([ [time, target_loc, temp, rain] | tail], target_loc) do
[ [time, target_loc, temp, rain] | for_location(tail, target_loc) ]
end
def for_location([_ | tail], target_loc), do: for_location(tail, target_loc)
end... | 40.125 | 80 | 0.679128 |
9e54dc52c98724be905ff429e65f532c0edf5516 | 1,084 | ex | Elixir | test/support/conn_case.ex | lucianosousa/gears | a59a93dd28ccd82e6cd1e3db809535a4dc10d007 | [
"MIT"
] | null | null | null | test/support/conn_case.ex | lucianosousa/gears | a59a93dd28ccd82e6cd1e3db809535a4dc10d007 | [
"MIT"
] | null | null | null | test/support/conn_case.ex | lucianosousa/gears | a59a93dd28ccd82e6cd1e3db809535a4dc10d007 | [
"MIT"
] | null | null | null | defmodule Gears.ConnCase do
@moduledoc """
This module defines the test case to be used by
tests that require setting up a connection.
Such tests rely on `Phoenix.ConnTest` and also
import other functionality to make it easier
to build and query models.
Finally, if the test case interacts with the datab... | 24.088889 | 67 | 0.701107 |
9e54dfda7883122da3be124f7e0f2b3b98ca16ee | 624 | exs | Elixir | day_1/puzzle_two.exs | Ian-GL/advent_of_code_2021 | a54424d46572735833105107f9d4298aa1533f37 | [
"MIT"
] | null | null | null | day_1/puzzle_two.exs | Ian-GL/advent_of_code_2021 | a54424d46572735833105107f9d4298aa1533f37 | [
"MIT"
] | null | null | null | day_1/puzzle_two.exs | Ian-GL/advent_of_code_2021 | a54424d46572735833105107f9d4298aa1533f37 | [
"MIT"
] | null | null | null | "input.txt"
|> File.read!()
|> String.split("\n")
|> Enum.reduce({0, [nil, nil, nil]}, fn val, {acc, prev_triade} ->
{current_val, _} = Integer.parse(val)
new_triade =
prev_triade
|> List.delete_at(0)
|> List.insert_at(2, current_val)
unless Enum.any?(prev_triade, &is_nil/1) do
prev_sum = Enum.r... | 20.8 | 66 | 0.591346 |
9e54ffd485c521d9892673731986b7b95d6022c8 | 6,078 | ex | Elixir | clients/service_control/lib/google_api/service_control/v1/model/audit_log.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/service_control/lib/google_api/service_control/v1/model/audit_log.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/service_control/lib/google_api/service_control/v1/model/audit_log.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... | 69.862069 | 564 | 0.739388 |
9e5505552d679f4609c4331a1a36e22ba3897860 | 107 | ex | Elixir | lib/aph/mailer.ex | tometoproject/tometo | ed91069b11a020723edb9a143de29d9bac86a2b0 | [
"BlueOak-1.0.0",
"Apache-2.0"
] | 8 | 2019-09-26T13:59:25.000Z | 2020-03-30T21:26:48.000Z | lib/aph/mailer.ex | tometoproject/tometo | ed91069b11a020723edb9a143de29d9bac86a2b0 | [
"BlueOak-1.0.0",
"Apache-2.0"
] | 39 | 2019-11-16T02:24:28.000Z | 2020-01-14T16:40:28.000Z | lib/aph/mailer.ex | tometoproject/tometo | ed91069b11a020723edb9a143de29d9bac86a2b0 | [
"BlueOak-1.0.0",
"Apache-2.0"
] | 2 | 2019-12-16T07:55:14.000Z | 2020-06-11T04:14:00.000Z | defmodule Aph.Mailer do
@moduledoc "Module that handles mailing."
use Bamboo.Mailer, otp_app: :aph
end
| 21.4 | 43 | 0.757009 |
9e5521b7db843b77df32af0a0108df0206fc5e38 | 5,782 | ex | Elixir | deps/credo/lib/credo/config_file.ex | BandanaPandey/nary_tree | fb1eeb69e38e43c9f9ffb54297cef52dff5c928d | [
"MIT"
] | 13 | 2018-09-19T21:03:29.000Z | 2022-01-27T04:06:32.000Z | deps/credo/lib/credo/config_file.ex | BandanaPandey/nary_tree | fb1eeb69e38e43c9f9ffb54297cef52dff5c928d | [
"MIT"
] | 1 | 2020-05-26T04:16:57.000Z | 2020-05-26T04:16:57.000Z | deps/credo/lib/credo/config_file.ex | BandanaPandey/nary_tree | fb1eeb69e38e43c9f9ffb54297cef52dff5c928d | [
"MIT"
] | 3 | 2020-05-21T04:32:08.000Z | 2021-07-28T05:14:01.000Z | defmodule Credo.ConfigFile do
@doc """
`ConfigFile` structs represent all loaded and merged config files in a run.
"""
defstruct files: nil,
color: true,
checks: nil,
requires: [],
strict: false,
... | 26.768519 | 90 | 0.643549 |
9e554721073c2a955bed1a71a686b23f25480f96 | 11,937 | ex | Elixir | clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/service.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/service.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/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... | 63.834225 | 210 | 0.727067 |
9e5576d9790e3c6d7c40ae08f2c422a9243ea760 | 1,858 | ex | Elixir | lib/graphql/lang/ast/nodes.ex | marvinhagemeister/graphql | 43bccc041438f05d14c8c6f40f193c3d7957ca9d | [
"BSD-3-Clause"
] | 719 | 2016-03-18T03:10:46.000Z | 2022-02-02T10:07:29.000Z | lib/graphql/lang/ast/nodes.ex | marvinhagemeister/graphql | 43bccc041438f05d14c8c6f40f193c3d7957ca9d | [
"BSD-3-Clause"
] | 51 | 2015-08-30T03:15:17.000Z | 2016-03-02T07:13:26.000Z | lib/graphql/lang/ast/nodes.ex | marvinhagemeister/graphql | 43bccc041438f05d14c8c6f40f193c3d7957ca9d | [
"BSD-3-Clause"
] | 34 | 2016-03-30T12:56:11.000Z | 2021-08-30T09:21:54.000Z |
defmodule GraphQL.Lang.AST.Nodes do
@kinds %{
Name: [],
Document: [:definitions],
OperationDefinition: [:name, :variableDefinitions, :directives, :selectionSet],
VariableDefinition: [:variable, :type, :defaultValue],
Variable: ... | 39.531915 | 90 | 0.50915 |
9e559351b75faa664890b6099225828c163f8d97 | 8,698 | ex | Elixir | lib/aws/generated/iot1_click_devices.ex | qyon-brazil/aws-elixir | f7f21bebffc6776f95ffe9ef563cf368773438af | [
"Apache-2.0"
] | null | null | null | lib/aws/generated/iot1_click_devices.ex | qyon-brazil/aws-elixir | f7f21bebffc6776f95ffe9ef563cf368773438af | [
"Apache-2.0"
] | null | null | null | lib/aws/generated/iot1_click_devices.ex | qyon-brazil/aws-elixir | f7f21bebffc6776f95ffe9ef563cf368773438af | [
"Apache-2.0"
] | 1 | 2020-10-28T08:56:54.000Z | 2020-10-28T08:56:54.000Z | # WARNING: DO NOT EDIT, AUTO-GENERATED CODE!
# See https://github.com/aws-beam/aws-codegen for more details.
defmodule AWS.IoT1ClickDevices do
@moduledoc """
Describes all of the AWS IoT 1-Click device-related API operations for the
service.
Also provides sample requests, responses, and errors for the support... | 21.90932 | 136 | 0.598528 |
9e55bcc6d98acf8a4537e73562841a13a3337d6f | 9,435 | exs | Elixir | apps/admin_api/test/admin_api/v1/controllers/admin_auth/admin_auth_controller_test.exs | amadeobrands/ewallet | 505b7822721940a7b892a9b35c225e80cc8ac0b4 | [
"Apache-2.0"
] | 1 | 2018-12-07T06:21:21.000Z | 2018-12-07T06:21:21.000Z | apps/admin_api/test/admin_api/v1/controllers/admin_auth/admin_auth_controller_test.exs | amadeobrands/ewallet | 505b7822721940a7b892a9b35c225e80cc8ac0b4 | [
"Apache-2.0"
] | null | null | null | apps/admin_api/test/admin_api/v1/controllers/admin_auth/admin_auth_controller_test.exs | amadeobrands/ewallet | 505b7822721940a7b892a9b35c225e80cc8ac0b4 | [
"Apache-2.0"
] | null | null | null | defmodule AdminAPI.V1.AdminAuth.AdminAuthControllerTest do
use AdminAPI.ConnCase, async: true
alias EWallet.Web.V1.{AccountSerializer, UserSerializer}
alias EWalletConfig.System
alias EWalletDB.{Account, AuthToken, Membership, Repo, Role, User}
describe "/admin.login" do
test "responds with a new auth to... | 34.815498 | 100 | 0.613567 |
9e55c799df1c6b1bc35f31d69dc0cbdfa52d082c | 2,736 | ex | Elixir | clients/retail/lib/google_api/retail/v2/model/google_cloud_retail_v2alpha_import_user_events_response.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/retail/lib/google_api/retail/v2/model/google_cloud_retail_v2alpha_import_user_events_response.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/retail/lib/google_api/retail/v2/model/google_cloud_retail_v2alpha_import_user_events_response.ex | dazuma/elixir-google-api | 6a9897168008efe07a6081d2326735fe332e522c | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 43.428571 | 208 | 0.761696 |
9e55c7dd6bb73a23c1eb0ac3c7274878efa4645a | 7,265 | ex | Elixir | farmbot_core/lib/farmbot_celery_script/compilers/axis_control_compiler.ex | gdwb/farmbot_os | 0ef2697c580c9fbf37a22daa063a64addfcb778d | [
"MIT"
] | 1 | 2021-08-23T13:36:14.000Z | 2021-08-23T13:36:14.000Z | farmbot_core/lib/farmbot_celery_script/compilers/axis_control_compiler.ex | gdwb/farmbot_os | 0ef2697c580c9fbf37a22daa063a64addfcb778d | [
"MIT"
] | null | null | null | farmbot_core/lib/farmbot_celery_script/compilers/axis_control_compiler.ex | gdwb/farmbot_os | 0ef2697c580c9fbf37a22daa063a64addfcb778d | [
"MIT"
] | null | null | null | defmodule FarmbotCeleryScript.Compiler.AxisControl do
alias FarmbotCeleryScript.Compiler
# Compiles move_absolute
def move_absolute(%{args: %{location: location,offset: offset,speed: speed}}, cs_scope) do
[locx , locy , locz] = cs_to_xyz(location, cs_scope)
[offx, offy, offz] = cs_to_xyz(offset, cs_scope... | 32.873303 | 92 | 0.625465 |
9e55d31498bbe55ef487c60212d6ad04edfe3616 | 2,286 | ex | Elixir | insights/lib/insights_web/telemetry.ex | MillionIntegrals/elixir-mongodb-driver | 96c4cc3f21c4043323b8a9b33ad3a374760864c6 | [
"Apache-2.0"
] | null | null | null | insights/lib/insights_web/telemetry.ex | MillionIntegrals/elixir-mongodb-driver | 96c4cc3f21c4043323b8a9b33ad3a374760864c6 | [
"Apache-2.0"
] | null | null | null | insights/lib/insights_web/telemetry.ex | MillionIntegrals/elixir-mongodb-driver | 96c4cc3f21c4043323b8a9b33ad3a374760864c6 | [
"Apache-2.0"
] | null | null | null | defmodule InsightsWeb.Telemetry do
use Supervisor
import Telemetry.Metrics
def start_link(arg) do
Supervisor.start_link(__MODULE__, arg, name: __MODULE__)
end
@impl true
def init(_arg) do
children = [
# Telemetry poller will execute the given period measurements
# every 10_000ms. Learn... | 31.75 | 88 | 0.654418 |
9e560928504aab74be617723b1adfbfd372e66f1 | 122 | ex | Elixir | debian/mesa.cron.d.ex | SoftReaper/Mesa-Renoir-deb | 8d1de1f66058d62b41fe55d36522efea2bdf996d | [
"MIT"
] | null | null | null | debian/mesa.cron.d.ex | SoftReaper/Mesa-Renoir-deb | 8d1de1f66058d62b41fe55d36522efea2bdf996d | [
"MIT"
] | null | null | null | debian/mesa.cron.d.ex | SoftReaper/Mesa-Renoir-deb | 8d1de1f66058d62b41fe55d36522efea2bdf996d | [
"MIT"
] | null | null | null | #
# Regular cron jobs for the mesa package
#
0 4 * * * root [ -x /usr/bin/mesa_maintenance ] && /usr/bin/mesa_maintenance
| 24.4 | 76 | 0.680328 |
9e56138f23e38b7eaf5bbef374796fe684e293a3 | 7,086 | ex | Elixir | lib/teiserver_web/router.ex | Born2Crawl/teiserver | b89601aea1a338cd41b4eabc4092207cb50110f0 | [
"MIT"
] | null | null | null | lib/teiserver_web/router.ex | Born2Crawl/teiserver | b89601aea1a338cd41b4eabc4092207cb50110f0 | [
"MIT"
] | null | null | null | lib/teiserver_web/router.ex | Born2Crawl/teiserver | b89601aea1a338cd41b4eabc4092207cb50110f0 | [
"MIT"
] | null | null | null | defmodule TeiserverWeb.Router do
defmacro __using__(_opts \\ []) do
quote do
import unquote(__MODULE__)
end
end
defmacro teiserver_routes() do
quote do
scope "/", TeiserverWeb.General, as: :ts_general do
pipe_through([:browser, :blank_layout])
get("/privacy_policy", Gener... | 38.721311 | 101 | 0.658482 |
9e56139251656e26ebe697f39ddce381aa6ff57a | 1,243 | exs | Elixir | apps/chat/mix.exs | mikemorris/elixir-eks-terraform | e1c8a4e7ba26bd85322dfcedd229b3558d9d5844 | [
"MIT"
] | 2 | 2019-06-27T11:51:11.000Z | 2020-06-04T16:00:55.000Z | apps/chat/mix.exs | mikemorris/elixir-eks-terraform | e1c8a4e7ba26bd85322dfcedd229b3558d9d5844 | [
"MIT"
] | null | null | null | apps/chat/mix.exs | mikemorris/elixir-eks-terraform | e1c8a4e7ba26bd85322dfcedd229b3558d9d5844 | [
"MIT"
] | null | null | null | defmodule Chat.MixProject do
use Mix.Project
def project do
[
app: :chat,
version: "0.1.0",
build_path: "../../_build",
config_path: "../../config/config.exs",
deps_path: "../../deps",
lockfile: "../../mix.lock",
elixir: "~> 1.5",
elixirc_paths: elixirc_paths(Mix... | 24.86 | 57 | 0.561545 |
9e565144c507195b0967ea05cf78f205e51215bb | 3,674 | ex | Elixir | lib/membrane/rtp/twcc_receiver/packet_info_store.ex | membraneframework/membrane_rtp | 1df5f0bdb66d5c89bc63122c8b29af6cd4e600aa | [
"Apache-2.0"
] | null | null | null | lib/membrane/rtp/twcc_receiver/packet_info_store.ex | membraneframework/membrane_rtp | 1df5f0bdb66d5c89bc63122c8b29af6cd4e600aa | [
"Apache-2.0"
] | 2 | 2020-04-01T14:06:34.000Z | 2020-04-08T11:48:59.000Z | lib/membrane/rtp/twcc_receiver/packet_info_store.ex | membraneframework/membrane_rtp | 1df5f0bdb66d5c89bc63122c8b29af6cd4e600aa | [
"Apache-2.0"
] | null | null | null | defmodule Membrane.RTP.TWCCReceiver.PacketInfoStore do
@moduledoc false
# The module stores TWCC sequence number along with their arrival timestamps, handling sequence
# number rollovers if necessary. Stored packet info can used for generating statistics used for
# assembling a TWCC feedback packet.
alias M... | 28.929134 | 106 | 0.662221 |
9e56533e910ac5108ff09fc973959bd12882cda3 | 639 | ex | Elixir | apps/tai/lib/tai/venues/fee_info.ex | ihorkatkov/tai | 09f9f15d2c385efe762ae138a8570f1e3fd41f26 | [
"MIT"
] | 1 | 2019-12-19T05:16:26.000Z | 2019-12-19T05:16:26.000Z | apps/tai/lib/tai/venues/fee_info.ex | ihorkatkov/tai | 09f9f15d2c385efe762ae138a8570f1e3fd41f26 | [
"MIT"
] | null | null | null | apps/tai/lib/tai/venues/fee_info.ex | ihorkatkov/tai | 09f9f15d2c385efe762ae138a8570f1e3fd41f26 | [
"MIT"
] | null | null | null | defmodule Tai.Venues.FeeInfo do
@type fee_type :: :percent
@type t :: %Tai.Venues.FeeInfo{
venue_id: Tai.Venues.Adapter.venue_id(),
account_id: Tai.Venues.Adapter.account_id(),
symbol: Tai.Venues.Product.symbol(),
maker: Decimal.t(),
maker_type: fee_type,
... | 18.794118 | 54 | 0.594679 |
9e5655799888e9ab758cf3bd548e3c1214eeb51c | 363 | exs | Elixir | test/angle_test.exs | devstopfix/elixoids | df4f2ba9ddb3d13c3c86e57f100c3d57fa64ed8d | [
"MIT"
] | 5 | 2016-07-05T13:42:33.000Z | 2020-12-07T14:12:16.000Z | test/angle_test.exs | devstopfix/elixoids | df4f2ba9ddb3d13c3c86e57f100c3d57fa64ed8d | [
"MIT"
] | 70 | 2016-06-04T11:31:27.000Z | 2020-11-21T20:00:09.000Z | test/angle_test.exs | devstopfix/elixoids | df4f2ba9ddb3d13c3c86e57f100c3d57fa64ed8d | [
"MIT"
] | 1 | 2016-07-05T17:10:05.000Z | 2016-07-05T17:10:05.000Z | defmodule World.AngleTest do
use ExUnit.Case, async: true
import Elixoids.World.Angle
test "Wrap angle" do
assert 0.0 == normalize_radians(0.0)
end
test "Wrap negative angle" do
assert :math.pi() == normalize_radians(-1 * :math.pi())
end
test "Wrap overflow angle" do
assert :math.pi() == n... | 20.166667 | 59 | 0.669421 |
9e567b5a14ca5326e7abab675c586a2694edb52e | 11,272 | ex | Elixir | lib/livebook/live_markdown/import.ex | rodrigues/livebook | 9822735bcf0b5bffbbc2bd59a7b942e81276ffe3 | [
"Apache-2.0"
] | null | null | null | lib/livebook/live_markdown/import.ex | rodrigues/livebook | 9822735bcf0b5bffbbc2bd59a7b942e81276ffe3 | [
"Apache-2.0"
] | null | null | null | lib/livebook/live_markdown/import.ex | rodrigues/livebook | 9822735bcf0b5bffbbc2bd59a7b942e81276ffe3 | [
"Apache-2.0"
] | null | null | null | defmodule Livebook.LiveMarkdown.Import do
alias Livebook.Notebook
alias Livebook.LiveMarkdown.MarkdownHelpers
@doc """
Converts the given Markdown document into a notebook data structure.
Returns the notebook structure and a list of informative messages/warnings
related to the imported input.
"""
@spe... | 32.390805 | 97 | 0.64363 |
9e56a78061157c4b25a8b527bd074986d8255665 | 5,144 | ex | Elixir | lib/mix/tasks/knigge/verify.ex | samuel-uniris/knigge | fd7c6e735a1840211a02733c628167a1831d9c92 | [
"MIT"
] | 83 | 2019-07-26T14:51:19.000Z | 2022-03-27T08:05:15.000Z | lib/mix/tasks/knigge/verify.ex | samuel-uniris/knigge | fd7c6e735a1840211a02733c628167a1831d9c92 | [
"MIT"
] | 21 | 2019-08-06T08:35:44.000Z | 2021-10-17T19:55:46.000Z | lib/mix/tasks/knigge/verify.ex | samuel-uniris/knigge | fd7c6e735a1840211a02733c628167a1831d9c92 | [
"MIT"
] | 10 | 2019-07-31T09:56:26.000Z | 2022-01-03T12:03:33.000Z | defmodule Mix.Tasks.Knigge.Verify do
use Mix.Task
import Knigge.CLI.Output
alias Knigge.Verification
alias Knigge.Verification.Context
require Context
@shortdoc "Verify the validity of your facades and their implementations."
@moduledoc """
#{@shortdoc}
At the moment `knigge.verify` "only" ensure... | 25.465347 | 97 | 0.658631 |
9e56bd07d7ed7d40b58677a185d2bdbc1132d33c | 3,493 | ex | Elixir | clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1_label_detection_config.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1_label_detection_config.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1_label_detection_config.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"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... | 52.924242 | 444 | 0.757515 |
9e56dc3fe452eb965be13558ee4ec48164a143c6 | 4,442 | ex | Elixir | clients/private_ca/lib/google_api/private_ca/v1/model/certificate_template.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/private_ca/lib/google_api/private_ca/v1/model/certificate_template.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/private_ca/lib/google_api/private_ca/v1/model/certificate_template.ex | dazuma/elixir-google-api | 6a9897168008efe07a6081d2326735fe332e522c | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 63.457143 | 705 | 0.74606 |
9e56f0c4eda72afef5c04d89d1d7c6be98b36f72 | 1,252 | ex | Elixir | lib/banking_graph_web/endpoint.ex | oryono/banking | 0a49ebae5ebf93a6db0c24476a1c86c60bb72733 | [
"MIT"
] | null | null | null | lib/banking_graph_web/endpoint.ex | oryono/banking | 0a49ebae5ebf93a6db0c24476a1c86c60bb72733 | [
"MIT"
] | null | null | null | lib/banking_graph_web/endpoint.ex | oryono/banking | 0a49ebae5ebf93a6db0c24476a1c86c60bb72733 | [
"MIT"
] | null | null | null | defmodule BankingGraphWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :banking_graph
socket "/socket", BankingGraphWeb.UserSocket,
websocket: true,
longpoll: false
plug CORSPlug
# Serve at "/" the static files from "priv/static" directory.
#
# You should set gzip to true if you are running phx.dig... | 26.638298 | 63 | 0.711661 |
9e570b40adb3cad3e84981b5daa3bcfbbb52e29a | 1,380 | ex | Elixir | lib/jalka2021/accounts/user_notifier.ex | kriips/jalka2021 | f4d968e20cae116fd4056bff2f937cd036421977 | [
"MIT"
] | null | null | null | lib/jalka2021/accounts/user_notifier.ex | kriips/jalka2021 | f4d968e20cae116fd4056bff2f937cd036421977 | [
"MIT"
] | null | null | null | lib/jalka2021/accounts/user_notifier.ex | kriips/jalka2021 | f4d968e20cae116fd4056bff2f937cd036421977 | [
"MIT"
] | null | null | null | defmodule Jalka2021.Accounts.UserNotifier do
# For simplicity, this module simply logs messages to the terminal.
# You should replace it by a proper email or notification tool, such as:
#
# * Swoosh - https://hexdocs.pm/swoosh
# * Bamboo - https://hexdocs.pm/bamboo
#
defp deliver(to, body) do
requ... | 20.294118 | 74 | 0.555072 |
9e572dc667286a89ce06118ac6fd1876b05d1b78 | 5,511 | ex | Elixir | clients/remote_build_execution/lib/google_api/remote_build_execution/v2/model/build_bazel_remote_execution_v2_action.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/remote_build_execution/lib/google_api/remote_build_execution/v2/model/build_bazel_remote_execution_v2_action.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/remote_build_execution/lib/google_api/remote_build_execution/v2/model/build_bazel_remote_execution_v2_action.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 44.443548 | 155 | 0.737071 |
9e5765dd7f1400b5c8c41d0f511c6e3a39d95bbb | 7,706 | ex | Elixir | lib/validators/email.ex | tomciopp/ecto_commons | 75ca493739a54b2f73b753c3d2623dc61781d91d | [
"MIT"
] | null | null | null | lib/validators/email.ex | tomciopp/ecto_commons | 75ca493739a54b2f73b753c3d2623dc61781d91d | [
"MIT"
] | null | null | null | lib/validators/email.ex | tomciopp/ecto_commons | 75ca493739a54b2f73b753c3d2623dc61781d91d | [
"MIT"
] | null | null | null | defmodule EctoCommons.EmailValidator do
@moduledoc ~S"""
Validates emails.
## Options
There are various `:checks` depending on the strictness of the validation you require. Indeed, perfect email validation
does not exist (see StackOverflow questions about it):
- `:html_input`: Checks if the email follows ... | 43.050279 | 677 | 0.610174 |
9e576d401fe5d53dab8cf48a8cc955ecc7df7824 | 2,060 | exs | Elixir | talks-articles/languages-n-runtimes/elixir/book--programming-elixir-ge-1.6/chapter-24/chapter-24-exercises.exs | abhishekkr/tutorials_as_code | f355dc62a5025b710ac6d4a6ac2f9610265fad54 | [
"MIT"
] | 37 | 2015-02-01T23:16:39.000Z | 2021-12-22T16:50:48.000Z | talks-articles/languages-n-runtimes/elixir/book--programming-elixir-ge-1.6/chapter-24/chapter-24-exercises.exs | abhishekkr/tutorials_as_code | f355dc62a5025b710ac6d4a6ac2f9610265fad54 | [
"MIT"
] | 1 | 2017-03-02T04:55:48.000Z | 2018-01-14T10:51:11.000Z | talks-articles/languages-n-runtimes/elixir/book--programming-elixir-ge-1.6/chapter-24/chapter-24-exercises.exs | abhishekkr/tutorials_as_code | f355dc62a5025b710ac6d4a6ac2f9610265fad54 | [
"MIT"
] | 15 | 2015-03-02T08:09:01.000Z | 2021-06-10T03:25:41.000Z | defprotocol Caesar do
def encrypt(string, shift)
def rot13(string)
end
defimpl Caesar, for: List do
@lowercase 97..122
@uppercase 65..90
def encrypt(list, shift), do: list |> Enum.map(&do_encrypt(&1, shift))
def rot13(list), do: encrypt(list, 13)
defp do_encrypt(char, shift) when char in @lowercase an... | 20.39604 | 78 | 0.613592 |
9e57733d552f34195d0f7138a904266935bb6eb3 | 606 | exs | Elixir | apps/transform_wkt/mix.exs | kennyatpillar/hindsight | e90e2150a14218e5d6fdf5874f57eb055fd2dd07 | [
"Apache-2.0"
] | null | null | null | apps/transform_wkt/mix.exs | kennyatpillar/hindsight | e90e2150a14218e5d6fdf5874f57eb055fd2dd07 | [
"Apache-2.0"
] | null | null | null | apps/transform_wkt/mix.exs | kennyatpillar/hindsight | e90e2150a14218e5d6fdf5874f57eb055fd2dd07 | [
"Apache-2.0"
] | null | null | null | defmodule Transform.WKT.MixProject do
use Mix.Project
def project do
[
app: :transform_wkt,
version: "0.1.0",
build_path: "../../_build",
config_path: "../../config/config.exs",
deps_path: "../../deps",
lockfile: "../../mix.lock",
elixir: "~> 1.9",
start_permanen... | 18.9375 | 50 | 0.539604 |
9e578074cf9341a5fd882edbc46569fe90bef87f | 451 | ex | Elixir | web/router.ex | jwdotjs/battlestation | 9552cf2af11f5d5420ce90947ca58d9cca2f7c4a | [
"MIT"
] | null | null | null | web/router.ex | jwdotjs/battlestation | 9552cf2af11f5d5420ce90947ca58d9cca2f7c4a | [
"MIT"
] | null | null | null | web/router.ex | jwdotjs/battlestation | 9552cf2af11f5d5420ce90947ca58d9cca2f7c4a | [
"MIT"
] | null | null | null | defmodule Battlestation.Router do
use Battlestation.Web, :router
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_flash
plug :protect_from_forgery
plug :put_secure_browser_headers
end
scope "/", Battlestation do
pipe_through :browser # Use the default browse... | 21.47619 | 57 | 0.698448 |
9e5786f018bf929acb9f6ae16705e4624b3339cf | 682 | ex | Elixir | lib/churn/renderer/console.ex | patrykwozinski/churn | 5a5ad6442da8ae0dc46064d4f80e5404c397d90d | [
"MIT"
] | 78 | 2021-05-18T09:55:12.000Z | 2022-03-02T22:11:53.000Z | lib/churn/renderer/console.ex | patrykwozinski/churn | 5a5ad6442da8ae0dc46064d4f80e5404c397d90d | [
"MIT"
] | 14 | 2021-05-12T23:00:43.000Z | 2022-03-02T08:16:01.000Z | lib/churn/renderer/console.ex | patrykwozinski/churn | 5a5ad6442da8ae0dc46064d4f80e5404c397d90d | [
"MIT"
] | 2 | 2021-05-20T14:54:08.000Z | 2021-06-08T18:01:40.000Z | defmodule Churn.Renderer.Console do
@moduledoc false
alias Churn.Processor.Result
@title "Churn :: Refactoring candidates"
@spec render([Result.t()]) :: :ok
def render(results) do
header = ["File", "Times Changed", "Complexity", "Score"]
results
|> Enum.map(fn result ->
[result.file.path... | 23.517241 | 79 | 0.665689 |
9e578cee03e4adb93245e877df0272ad3804f420 | 1,779 | ex | Elixir | clients/retail/lib/google_api/retail/v2/model/google_cloud_retail_v2_product_inline_source.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/retail/lib/google_api/retail/v2/model/google_cloud_retail_v2_product_inline_source.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/retail/lib/google_api/retail/v2/model/google_cloud_retail_v2_product_inline_source.ex | dazuma/elixir-google-api | 6a9897168008efe07a6081d2326735fe332e522c | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 37.851064 | 229 | 0.76335 |
9e57ec03a6206410f4b92a098f721a50127e9c84 | 192 | exs | Elixir | priv/repo/migrations/20180411191500_add_whitelist.exs | teaearlgraycold/HippoGuesser | f47fb0636c841ce9b579c07e423c980b17cb9965 | [
"MIT"
] | null | null | null | priv/repo/migrations/20180411191500_add_whitelist.exs | teaearlgraycold/HippoGuesser | f47fb0636c841ce9b579c07e423c980b17cb9965 | [
"MIT"
] | null | null | null | priv/repo/migrations/20180411191500_add_whitelist.exs | teaearlgraycold/HippoGuesser | f47fb0636c841ce9b579c07e423c980b17cb9965 | [
"MIT"
] | null | null | null | defmodule Mtpo.Repo.Migrations.AddWhitelist do
use Ecto.Migration
def change do
alter table(:users) do
add :whitelisted, :boolean, default: false, null: false
end
end
end
| 19.2 | 61 | 0.708333 |
9e581412e80df8c69bdd840ef0ed3a8eb0aba669 | 6,266 | exs | Elixir | test/paddle/subscription/subscription_test.exs | imricardoramos/paddlex | 5880a0bca6aa7801f767f586ac0821014e52299c | [
"MIT"
] | 7 | 2021-09-27T10:10:30.000Z | 2022-03-31T09:44:35.000Z | test/paddle/subscription/subscription_test.exs | imricardoramos/paddlex | 5880a0bca6aa7801f767f586ac0821014e52299c | [
"MIT"
] | 2 | 2021-09-29T16:57:41.000Z | 2022-01-25T12:43:26.000Z | test/paddle/subscription/subscription_test.exs | imricardoramos/paddlex | 5880a0bca6aa7801f767f586ac0821014e52299c | [
"MIT"
] | 2 | 2021-09-27T10:12:40.000Z | 2022-01-24T21:28:20.000Z | defmodule Paddle.SubscriptionTest do
use ExUnit.Case
setup do
bypass = Bypass.open(port: 12_345)
{:ok, bypass: bypass}
end
test "lists users", %{bypass: bypass} do
Bypass.expect(bypass, fn conn ->
Plug.Conn.resp(conn, 200, ~s(
{
"success": true,
"response": [
... | 32.978947 | 147 | 0.471433 |
9e581d4f038238671dc62ecd3488634e45a015a6 | 31 | ex | Elixir | lib/mqtt_udp_sink_ex.ex | yeongsheng-tan/mqtt_udp_sink_ex | 6ddc9914ac2bc54a6da46932525de4da9feb1356 | [
"BSD-3-Clause"
] | null | null | null | lib/mqtt_udp_sink_ex.ex | yeongsheng-tan/mqtt_udp_sink_ex | 6ddc9914ac2bc54a6da46932525de4da9feb1356 | [
"BSD-3-Clause"
] | null | null | null | lib/mqtt_udp_sink_ex.ex | yeongsheng-tan/mqtt_udp_sink_ex | 6ddc9914ac2bc54a6da46932525de4da9feb1356 | [
"BSD-3-Clause"
] | null | null | null | defmodule MqttUdpSinkEx do
end
| 10.333333 | 26 | 0.870968 |
9e5853f31e73be8c5a61e6100d646118e70d43b6 | 428 | exs | Elixir | test/models/post_test.exs | joonatank/darfey | 71ba0a41795bf97c35e940a4659dfbdf4805c46f | [
"MIT"
] | null | null | null | test/models/post_test.exs | joonatank/darfey | 71ba0a41795bf97c35e940a4659dfbdf4805c46f | [
"MIT"
] | null | null | null | test/models/post_test.exs | joonatank/darfey | 71ba0a41795bf97c35e940a4659dfbdf4805c46f | [
"MIT"
] | null | null | null | defmodule Darfey.PostTest do
use Darfey.DataCase
alias DarfeyWeb.Post
@valid_attrs %{body: "some body", title: "some title"}
@invalid_attrs %{}
test "changeset with valid attributes" do
changeset = Post.changeset(%Post{}, @valid_attrs)
assert changeset.valid?
end
test "changeset with invalid a... | 22.526316 | 56 | 0.712617 |
9e587d87bf02b0ca08e641786ab20890effecb47 | 321 | exs | Elixir | PatternMatching/patternmatching.exs | MiyamotoAkira/IntoAdventurePresentation | a41d480bcb922f2950917d7486f159eccd3f5a12 | [
"MIT"
] | null | null | null | PatternMatching/patternmatching.exs | MiyamotoAkira/IntoAdventurePresentation | a41d480bcb922f2950917d7486f159eccd3f5a12 | [
"MIT"
] | null | null | null | PatternMatching/patternmatching.exs | MiyamotoAkira/IntoAdventurePresentation | a41d480bcb922f2950917d7486f159eccd3f5a12 | [
"MIT"
] | null | null | null | defmodule Person do
defstruct name: "Araceli", age: 70
def salute(%Person{name: name, age: age}) when name == "Araceli" do
IO.puts "Happy #{age}th Birthday"
end
def salute(%Person{name: name}) when name != "" do
IO.puts "I salute you, #{name}"
end
def salute(%Person{}) do
IO.puts "Hey Stranger"
end
end... | 20.0625 | 68 | 0.657321 |
9e5897aeb6733e95c795fa1fdd3faf67a2f4d053 | 1,392 | ex | Elixir | demo/elixir.ex | virejdasani/HydroxyTheme | 8c22c679c754226c8d5f9d18fcd35f36804f00bf | [
"MIT"
] | 7 | 2021-04-10T05:29:40.000Z | 2021-07-27T02:58:51.000Z | demo/elixir.ex | virejdasani/Hydroxy | 8af57425136ed8035d769c2667ee3f889465ea6a | [
"MIT"
] | 2 | 2021-08-16T08:41:17.000Z | 2021-09-02T18:05:20.000Z | demo/elixir.ex | greven/umbra-vscode-theme | 20a3a545e555785dba74e7d8aa377bf327963f57 | [
"MIT"
] | 3 | 2022-01-08T04:16:32.000Z | 2022-01-24T00:31:36.000Z | # Taken from Ecto Github Repo:
# https://github.com/elixir-ecto/ecto/blob/master/lib/mix/tasks/ecto.create.ex
defmodule Mix.Tasks.Ecto.Create do
use Mix.Task
import Mix.Ecto
@shortdoc "Creates the repository storage"
@switches [
quiet: :boolean,
repo: [:string, :keep],
no_compile: :boolean,
n... | 24.857143 | 94 | 0.599856 |
9e589c230e59bfc3f467d84270b8857a11b23c6d | 4,885 | exs | Elixir | test/phxcrd_web/controllers/authority_controller_test.exs | spapas/phxcrd | 84877896f56400b0cc8624fe96c4fe4f5fd8053c | [
"MIT"
] | 18 | 2019-06-21T09:55:46.000Z | 2022-02-16T18:44:17.000Z | test/phxcrd_web/controllers/authority_controller_test.exs | spapas/phxcrd | 84877896f56400b0cc8624fe96c4fe4f5fd8053c | [
"MIT"
] | 16 | 2019-05-21T20:19:44.000Z | 2020-05-12T08:30:42.000Z | test/phxcrd_web/controllers/authority_controller_test.exs | spapas/phxcrd | 84877896f56400b0cc8624fe96c4fe4f5fd8053c | [
"MIT"
] | 2 | 2019-09-05T00:35:27.000Z | 2020-10-17T16:36:35.000Z | defmodule PhxcrdWeb.AuthorityControllerTest do
use PhxcrdWeb.ConnCase
alias Phxcrd.Auth
@create_attrs %{name: "some name", authority_kind_id: 1}
@update_attrs %{name: "some updated name"}
@invalid_attrs %{name: nil}
def fixture(:authority) do
{:ok, authority_kind} = Auth.create_authority_kind(%{name: ... | 28.735294 | 96 | 0.640942 |
9e589f87d4aa426c65eee9e1962586fad83285c0 | 236 | exs | Elixir | priv/repo/migrations/20210630144545_add_status_to_sms_messages.exs | bikebrigade/dispatch | eb622fe4f6dab7c917d678d3d7a322a01f97da44 | [
"Apache-2.0"
] | 28 | 2021-10-11T01:53:53.000Z | 2022-03-24T17:45:55.000Z | priv/repo/migrations/20210630144545_add_status_to_sms_messages.exs | bikebrigade/dispatch | eb622fe4f6dab7c917d678d3d7a322a01f97da44 | [
"Apache-2.0"
] | 20 | 2021-10-21T08:12:31.000Z | 2022-03-31T13:35:53.000Z | priv/repo/migrations/20210630144545_add_status_to_sms_messages.exs | bikebrigade/dispatch | eb622fe4f6dab7c917d678d3d7a322a01f97da44 | [
"Apache-2.0"
] | null | null | null | defmodule BikeBrigade.Repo.Migrations.AddStatusToSmsMessages do
use Ecto.Migration
def change do
alter table(:sms_messages) do
add :twilio_status, :string
end
create index(:sms_messages, [:twilio_sid])
end
end
| 19.666667 | 63 | 0.733051 |
9e58b6ae28ac952309e1e1cf620916940f1dfe55 | 3,207 | exs | Elixir | test/supervisor_test.exs | LaudateCorpus1/gen_registry | 74246ae4e4d9b3c330bacc529c9dd32851378446 | [
"MIT"
] | 39 | 2020-04-11T07:21:23.000Z | 2022-02-03T13:17:59.000Z | test/supervisor_test.exs | LaudateCorpus1/gen_registry | 74246ae4e4d9b3c330bacc529c9dd32851378446 | [
"MIT"
] | 2 | 2019-06-21T17:47:11.000Z | 2019-06-21T19:10:35.000Z | test/supervisor_test.exs | LaudateCorpus1/gen_registry | 74246ae4e4d9b3c330bacc529c9dd32851378446 | [
"MIT"
] | 7 | 2021-01-19T00:00:10.000Z | 2022-03-17T09:51:10.000Z | defmodule Supervisor.Test do
use ExUnit.Case
describe "pre-1.5 specs" do
test "valid spec" do
children = [
GenRegistry.Spec.child_spec(ExampleWorker)
]
{:ok, supervisor_pid} = Supervisor.start_link(children, strategy: :one_for_one)
assert Supervisor.count_children(supervisor_p... | 28.633929 | 94 | 0.639539 |
9e58c1e6364e2d6e8986d7e808afec26a988b61d | 4,418 | ex | Elixir | installer/lib/phx_new/web.ex | shritesh/phoenix | 4bf53ecaae5a9057ea57c248964490dfdee312af | [
"MIT"
] | null | null | null | installer/lib/phx_new/web.ex | shritesh/phoenix | 4bf53ecaae5a9057ea57c248964490dfdee312af | [
"MIT"
] | 1 | 2021-11-17T12:10:06.000Z | 2021-11-24T12:53:45.000Z | installer/lib/phx_new/web.ex | shritesh/phoenix | 4bf53ecaae5a9057ea57c248964490dfdee312af | [
"MIT"
] | null | null | null | defmodule Phx.New.Web do
@moduledoc false
use Phx.New.Generator
alias Phx.New.{Project}
@pre "phx_umbrella/apps/app_name_web"
template :new, [
{:config, "#{@pre}/config/config.exs", :project, "config/config.exs"},
{:config, "#{@pre}/config/dev.exs", :project, "config/dev.exs... | 52.595238 | 122 | 0.586238 |
9e58cafb97e4ecd8915104948372c699351bd7b8 | 1,894 | ex | Elixir | processors/IA32/bochs/build/debian/manpage.1.ex | pavel-krivanek/opensmalltalk-vm | 694dfe3ed015e16f5b8e9cf17d37e4bdd32bea16 | [
"MIT"
] | 445 | 2016-06-30T08:19:11.000Z | 2022-03-28T06:09:49.000Z | processors/IA32/bochs/build/debian/manpage.1.ex | pavel-krivanek/opensmalltalk-vm | 694dfe3ed015e16f5b8e9cf17d37e4bdd32bea16 | [
"MIT"
] | 439 | 2016-06-29T20:14:36.000Z | 2022-03-17T19:59:58.000Z | processors/IA32/bochs/build/debian/manpage.1.ex | pavel-krivanek/opensmalltalk-vm | 694dfe3ed015e16f5b8e9cf17d37e4bdd32bea16 | [
"MIT"
] | 137 | 2016-07-02T17:32:07.000Z | 2022-03-20T11:17:25.000Z | .\" Hey, EMACS: -*- nroff -*-
.\" First parameter, NAME, should be all caps
.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
.\" other parameters are allowed: see man(7), man(1)
.TH BOCHS SECTION "June 5, 2001"
.\" Please adjust this date whenever revising the manp... | 31.04918 | 71 | 0.68321 |
9e58cd24a391b4f59b41f948bc1f3229d1e2b01a | 2,399 | ex | Elixir | clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p2beta1_text_annotation_text_property.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p2beta1_text_annotation_text_property.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p2beta1_text_annotation_text_property.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.80597 | 203 | 0.755732 |
9e590e1f3a3f8ee5b99cbf06bbfdb6fd5df6fd82 | 1,380 | ex | Elixir | clients/blogger/lib/google_api/blogger/v3/model/user_blogs.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/blogger/lib/google_api/blogger/v3/model/user_blogs.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/blogger/lib/google_api/blogger/v3/model/user_blogs.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... | 29.361702 | 93 | 0.726812 |
9e591d536d26484e00e0234c44cc58403017c001 | 2,397 | ex | Elixir | clients/display_video/lib/google_api/display_video/v1/model/date.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/display_video/lib/google_api/display_video/v1/model/date.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/display_video/lib/google_api/display_video/v1/model/date.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... | 45.226415 | 567 | 0.713809 |
9e593a11b78fe3b3d107bc393def00418fe83d0a | 2,783 | ex | Elixir | lib/algoliax/resources/object.ex | kianmeng/algoliax | 7226c9e7a142f24522a52d390f0a828b85b3abf9 | [
"BSD-2-Clause"
] | 25 | 2020-12-18T10:05:35.000Z | 2022-02-01T13:55:11.000Z | lib/algoliax/resources/object.ex | kianmeng/algoliax | 7226c9e7a142f24522a52d390f0a828b85b3abf9 | [
"BSD-2-Clause"
] | 4 | 2021-03-04T08:45:49.000Z | 2022-03-29T12:07:35.000Z | lib/algoliax/resources/object.ex | kianmeng/algoliax | 7226c9e7a142f24522a52d390f0a828b85b3abf9 | [
"BSD-2-Clause"
] | 4 | 2021-02-05T15:21:44.000Z | 2022-03-02T16:12:15.000Z | defmodule Algoliax.Resources.Object do
@moduledoc false
import Algoliax.Utils, only: [index_name: 2, object_id_attribute: 1]
import Algoliax.Client, only: [request: 1]
alias Algoliax.TemporaryIndexer
def get_object(module, settings, model) do
request(%{
action: :get_object,
url_params: [
... | 25.53211 | 91 | 0.648581 |
9e596fb1196d9b415c91df63566f87fbcb651d73 | 271 | ex | Elixir | lib/web/models/settings.ex | yknx4/opencov | dc961a41e29b41b0657bc2a64bb67350a65477b8 | [
"MIT"
] | 8 | 2021-08-22T10:37:57.000Z | 2022-01-10T11:27:06.000Z | lib/web/models/settings.ex | yknx4/librecov | dc961a41e29b41b0657bc2a64bb67350a65477b8 | [
"MIT"
] | 109 | 2021-08-20T04:08:04.000Z | 2022-01-03T07:39:18.000Z | lib/web/models/settings.ex | Librecov/librecov | dc961a41e29b41b0657bc2a64bb67350a65477b8 | [
"MIT"
] | null | null | null | defmodule Librecov.Settings do
use Librecov.Web, :model
schema "settings" do
field(:signup_enabled, :boolean, default: false)
field(:restricted_signup_domains, :string, default: "")
field(:default_project_visibility, :string)
timestamps()
end
end
| 22.583333 | 59 | 0.723247 |
9e5976b9725da507d1aa14fefcc80cb5f206cf02 | 2,595 | exs | Elixir | test/mars/track/track_test.exs | jchristopherinc/mars | a109958cb549ede8d983c3af8183d52528a5eaea | [
"MIT"
] | 2 | 2020-08-28T19:17:33.000Z | 2020-09-13T18:49:20.000Z | test/mars/track/track_test.exs | jchristopherinc/mars | a109958cb549ede8d983c3af8183d52528a5eaea | [
"MIT"
] | 5 | 2018-10-28T14:39:26.000Z | 2019-01-31T17:23:36.000Z | test/mars/track/track_test.exs | jchristopherinc/mars | a109958cb549ede8d983c3af8183d52528a5eaea | [
"MIT"
] | null | null | null | defmodule Mars.TrackTest do
use Mars.DataCase
alias Mars.Track
describe "event" do
alias Mars.Track.Event
@valid_attrs %{
app_id: "some app_id",
created_at: "2010-04-17 14:00:00.000000Z",
event: "some event",
message_id: "some message_id"
}
@update_attrs %{
app_id:... | 31.646341 | 97 | 0.650096 |
9e59a65e9551accc8eaae65e25da16350e8bf1a6 | 388 | ex | Elixir | apps/etv_data/lib/repo/schema.ex | sheharyarn/etv | 65b96e436d5fe6fa11bfb293fa676f0bbf2d5121 | [
"MIT"
] | 2 | 2020-01-13T09:34:04.000Z | 2021-05-19T07:51:07.000Z | apps/etv_data/lib/repo/schema.ex | sheharyarn/etv | 65b96e436d5fe6fa11bfb293fa676f0bbf2d5121 | [
"MIT"
] | null | null | null | apps/etv_data/lib/repo/schema.ex | sheharyarn/etv | 65b96e436d5fe6fa11bfb293fa676f0bbf2d5121 | [
"MIT"
] | 2 | 2018-09-01T20:58:11.000Z | 2021-05-19T07:51:11.000Z | defmodule ETV.Data.Repo.Schema do
@moduledoc """
Custom Macro for initializing Ecto Schemas with
sane defaults
"""
defmacro __using__(_opts) do
quote do
use Ecto.Schema
use Ecto.Rut, repo: ETV.Data.Repo
import Ecto.Changeset
require Ecto.Query
alias Ecto.Query
alia... | 16.166667 | 49 | 0.654639 |
9e59af49e0ee3660846f774f017ad3915cce8ff6 | 5,107 | ex | Elixir | lib/jalka2021/accounts/user.ex | kriips/jalka2021 | f4d968e20cae116fd4056bff2f937cd036421977 | [
"MIT"
] | null | null | null | lib/jalka2021/accounts/user.ex | kriips/jalka2021 | f4d968e20cae116fd4056bff2f937cd036421977 | [
"MIT"
] | null | null | null | lib/jalka2021/accounts/user.ex | kriips/jalka2021 | f4d968e20cae116fd4056bff2f937cd036421977 | [
"MIT"
] | null | null | null | defmodule Jalka2021.Accounts.User do
use Ecto.Schema
import Ecto.Changeset
alias Jalka2021.Accounts
@derive {Inspect, except: [:password]}
schema "users" do
field :email, :string
field :name, :string
field :password, :string, virtual: true
field :hashed_password, :string
field :confirmed_... | 30.951515 | 112 | 0.685138 |
9e59c88157bffb6d88dd80f299688a6881585f38 | 1,775 | ex | Elixir | clients/storage/lib/google_api/storage/v1/model/bucket_access_controls.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/storage/lib/google_api/storage/v1/model/bucket_access_controls.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/storage/lib/google_api/storage/v1/model/bucket_access_controls.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... | 35.5 | 193 | 0.735775 |
9e5a2f228f293f59b744cd379476eb196d830094 | 2,002 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/region_instance_group_managers_set_target_pools_request.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/region_instance_group_managers_set_target_pools_request.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/compute/lib/google_api/compute/v1/model/region_instance_group_managers_set_target_pools_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... | 36.4 | 251 | 0.745754 |
9e5a3561b13993cfdd3f38b2b1c66155f2df50fc | 3,873 | ex | Elixir | clients/sql_admin/lib/google_api/sql_admin/v1beta4/api/tiers.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/sql_admin/lib/google_api/sql_admin/v1beta4/api/tiers.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/sql_admin/lib/google_api/sql_admin/v1beta4/api/tiers.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... | 44.011364 | 196 | 0.650658 |
9e5a4905d1f9846aff869118d7db2d32db724171 | 205 | ex | Elixir | server/apps/boardr_api/lib/boardr_api/api_root/api_root_controller.ex | AlphaHydrae/boardr | 98eed02801f88c065a24bf13051c5cf96270a5f7 | [
"MIT"
] | 1 | 2021-04-08T17:26:27.000Z | 2021-04-08T17:26:27.000Z | server/apps/boardr_api/lib/boardr_api/api_root/api_root_controller.ex | AlphaHydrae/boardr | 98eed02801f88c065a24bf13051c5cf96270a5f7 | [
"MIT"
] | 1 | 2022-02-13T05:50:46.000Z | 2022-02-13T05:50:46.000Z | server/apps/boardr_api/lib/boardr_api/api_root/api_root_controller.ex | AlphaHydrae/boardr | 98eed02801f88c065a24bf13051c5cf96270a5f7 | [
"MIT"
] | null | null | null | defmodule BoardrApi.ApiRootController do
use BoardrApi, :controller
def index(%Conn{} = conn, _params) do
conn
|> put_resp_content_type("application/hal+json")
|> render(:index)
end
end
| 20.5 | 52 | 0.702439 |
9e5add832c842d83683d3bb74df9f3cace0283cc | 1,125 | exs | Elixir | config/config.exs | edenlabllc/translit-ukrainian-latin | be447149785bfbd8e0e70541a1d404e4cc18de4c | [
"MIT"
] | 2 | 2021-02-06T12:01:35.000Z | 2021-05-06T11:41:58.000Z | config/config.exs | edenlabllc/translit | be447149785bfbd8e0e70541a1d404e4cc18de4c | [
"MIT"
] | null | null | null | config/config.exs | edenlabllc/translit | be447149785bfbd8e0e70541a1d404e4cc18de4c | [
"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.290323 | 73 | 0.752 |
9e5ae9149f2007541ef5c629288fa065241c3cb2 | 19,061 | ex | Elixir | lib/mongo/topology_description.ex | IgorPolyakov/mongodb | 8ffce5761590d608ab64b1eccfa9e21426cd38c5 | [
"Apache-2.0"
] | 286 | 2017-06-06T04:21:31.000Z | 2021-09-11T16:37:59.000Z | lib/mongo/topology_description.ex | IgorPolyakov/mongodb | 8ffce5761590d608ab64b1eccfa9e21426cd38c5 | [
"Apache-2.0"
] | 202 | 2017-05-28T13:22:01.000Z | 2020-05-15T20:15:51.000Z | lib/mongo/topology_description.ex | IgorPolyakov/mongodb | 8ffce5761590d608ab64b1eccfa9e21426cd38c5 | [
"Apache-2.0"
] | 120 | 2016-12-16T17:05:12.000Z | 2020-05-15T16:20:17.000Z | defmodule Mongo.TopologyDescription do
@moduledoc false
# This acts as a single topology consisting of many connections, built on top
# of the existing connection API's. It implements the Server Discovery and
# Monitoring specification, along with the `Mongo.ServerMonitor` module.
@wire_protocol_range 0..5
... | 31.453795 | 162 | 0.643828 |
9e5afa56dbdf858f8bdb6b30d847ac5f123f09ce | 2,035 | ex | Elixir | lib/plumbapius/coverage/report/interaction_report.ex | Amuhar/plumbapius | a9066512f520f2ad97e677b04d70cc62695f2def | [
"Apache-2.0"
] | 10 | 2020-08-25T07:52:23.000Z | 2020-12-06T12:44:44.000Z | lib/plumbapius/coverage/report/interaction_report.ex | Amuhar/plumbapius | a9066512f520f2ad97e677b04d70cc62695f2def | [
"Apache-2.0"
] | 3 | 2020-10-13T11:49:32.000Z | 2021-05-28T08:34:41.000Z | lib/plumbapius/coverage/report/interaction_report.ex | Amuhar/plumbapius | a9066512f520f2ad97e677b04d70cc62695f2def | [
"Apache-2.0"
] | 2 | 2020-09-03T14:29:00.000Z | 2021-05-26T11:07:37.000Z | defmodule Plumbapius.Coverage.Report.InteractionReport do
alias Plumbapius.Coverage.CoverageTracker.CoveredCase
alias Plumbapius.Coverage.CoverageTracker
alias Plumbapius.Coverage.Report.MultiChoiceSchema
defstruct interaction: nil,
covered_multi_choices: [],
missed_multi_choices: []
... | 34.491525 | 107 | 0.725799 |
9e5b118deed3aa6c6729631f246bb15ab2d7b162 | 1,386 | ex | Elixir | hello_naked/lib/hello_naked_web/endpoint.ex | playgd/learning-elixir | 3909b540ccd7f54b174de9c6c6f258e94865ba6b | [
"MIT"
] | 16 | 2021-11-08T12:15:27.000Z | 2022-02-11T01:00:20.000Z | hello_naked/lib/hello_naked_web/endpoint.ex | playgd/learning-elixir | 3909b540ccd7f54b174de9c6c6f258e94865ba6b | [
"MIT"
] | null | null | null | hello_naked/lib/hello_naked_web/endpoint.ex | playgd/learning-elixir | 3909b540ccd7f54b174de9c6c6f258e94865ba6b | [
"MIT"
] | 2 | 2021-11-19T11:32:58.000Z | 2022-01-16T00:36:32.000Z | defmodule HelloNakedWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :hello_naked
# 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: "_he... | 28.875 | 97 | 0.718615 |
9e5b367d262f3c2a59b701fbea829a8171b6396a | 1,876 | ex | Elixir | lib/scaffolding/internal/implementation/domain_object/json/entity.implementation.default.ex | noizu-labs/advanced_elixir_scaffolding | 9e7a1199a4b25fcc16fc5a795104b926d2f238df | [
"MIT"
] | null | null | null | lib/scaffolding/internal/implementation/domain_object/json/entity.implementation.default.ex | noizu-labs/advanced_elixir_scaffolding | 9e7a1199a4b25fcc16fc5a795104b926d2f238df | [
"MIT"
] | null | null | null | lib/scaffolding/internal/implementation/domain_object/json/entity.implementation.default.ex | noizu-labs/advanced_elixir_scaffolding | 9e7a1199a4b25fcc16fc5a795104b926d2f238df | [
"MIT"
] | null | null | null | #-------------------------------------------------------------------------------
# Author: Keith Brings <keith.brings@noizu.com>
# Copyright (C) 2021 Noizu Labs Inc. All rights reserved.
#-------------------------------------------------------------------------------
defmodule Noizu.AdvancedScaffolding.Internal.Json.... | 30.754098 | 120 | 0.549041 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.