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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9efac352acec216f45eee5734bc0b9ec40624a8d | 1,259 | exs | Elixir | test/bookings/report_test.exs | felipe-jm/ignite-elixir-flightex | cef013b2f7fee1b38572f4d81cf433cc5a863b0a | [
"MIT"
] | 1 | 2021-03-23T13:53:16.000Z | 2021-03-23T13:53:16.000Z | test/bookings/report_test.exs | felipe-jm/ignite-elixir-flightex | cef013b2f7fee1b38572f4d81cf433cc5a863b0a | [
"MIT"
] | null | null | null | test/bookings/report_test.exs | felipe-jm/ignite-elixir-flightex | cef013b2f7fee1b38572f4d81cf433cc5a863b0a | [
"MIT"
] | null | null | null | defmodule Flightex.Bookings.ReportTest do
use ExUnit.Case
import Flightex.Factory
alias Flightex.Bookings.Agent, as: BookingAgent
alias Flightex.Bookings.Booking
alias Flightex.Bookings.Report
alias Flightex.Users.Agent, as: UserAgent
describe "create/1" do
setup do
user = build(:user)
... | 22.890909 | 64 | 0.641779 |
9efad99cd6f26dfb350cf6097386d8976a9a9132 | 251 | ex | Elixir | lib/erlnote.ex | alchexmist/erlnote | e1f164e63616316e1d3869ebfae5ed2ae96c3ccd | [
"Apache-2.0"
] | null | null | null | lib/erlnote.ex | alchexmist/erlnote | e1f164e63616316e1d3869ebfae5ed2ae96c3ccd | [
"Apache-2.0"
] | 1 | 2019-11-02T13:46:12.000Z | 2019-11-02T13:46:12.000Z | lib/erlnote.ex | alchexmist/erlnote | e1f164e63616316e1d3869ebfae5ed2ae96c3ccd | [
"Apache-2.0"
] | null | null | null | defmodule Erlnote do
@moduledoc """
Erlnote 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.
"""
end
| 25.1 | 66 | 0.752988 |
9efb24f43caa40d3e13d139c5cf13a1c136940dc | 794 | ex | Elixir | lib/pushex/app_manager/memory.ex | talkjs/pushex | e9f4d5c4d4df8165e0e712443c688e97d8d27c1e | [
"MIT"
] | null | null | null | lib/pushex/app_manager/memory.ex | talkjs/pushex | e9f4d5c4d4df8165e0e712443c688e97d8d27c1e | [
"MIT"
] | null | null | null | lib/pushex/app_manager/memory.ex | talkjs/pushex | e9f4d5c4d4df8165e0e712443c688e97d8d27c1e | [
"MIT"
] | 1 | 2018-12-14T08:19:28.000Z | 2018-12-14T08:19:28.000Z | defmodule Pushex.AppManager.Memory do
@moduledoc """
An in memory implementation using a `GenServer` for `Pushex.AppManager`
"""
use GenServer
@behaviour Pushex.AppManager
@valid_platforms ~w(gcm)a
def start(apps \\ []) do
GenServer.start(__MODULE__, apps, name: __MODULE__)
end
def start_link(... | 22.685714 | 76 | 0.675063 |
9efb843bbe20fcb458a81c4a661bb3829436e65f | 15,280 | ex | Elixir | lib/sparql_client/workload_info.ex | langens-jonathan/mu-authorization | 3b411460b81b87581af7c7f302b1d3bec4610608 | [
"MIT"
] | 1 | 2019-09-05T23:00:48.000Z | 2019-09-05T23:00:48.000Z | lib/sparql_client/workload_info.ex | langens-jonathan/mu-authorization | 3b411460b81b87581af7c7f302b1d3bec4610608 | [
"MIT"
] | 7 | 2020-10-27T20:42:06.000Z | 2021-11-15T07:41:15.000Z | lib/sparql_client/workload_info.ex | langens-jonathan/mu-authorization | 3b411460b81b87581af7c7f302b1d3bec4610608 | [
"MIT"
] | 6 | 2016-04-06T09:28:43.000Z | 2021-08-09T12:29:16.000Z | defmodule SparqlClient.WorkloadInfo do
use GenServer
alias SparqlClient.WorkloadInfo, as: Workload
defstruct running_pid_map: %{read: [], read_for_write: [], write: []},
waiting_from_map: %{read: [], read_for_write: [], write: []},
running_count: 0,
recovery_mode: false,
... | 29.384615 | 97 | 0.67127 |
9efbb145adc338301f4afbc17184b3bcb29c0ddc | 152 | exs | Elixir | priv/repo/migrations/20171230122831_add_unique_index_on_emails.exs | stevegrossi/ex_venture | e02d5a63fdb882d92cfb4af3e15f7b48ad7054aa | [
"MIT"
] | 2 | 2019-05-14T11:36:44.000Z | 2020-07-01T08:54:04.000Z | priv/repo/migrations/20171230122831_add_unique_index_on_emails.exs | nickwalton/ex_venture | d8ff1b0181db03f9ddcb7610ae7ab533feecbfbb | [
"MIT"
] | null | null | null | priv/repo/migrations/20171230122831_add_unique_index_on_emails.exs | nickwalton/ex_venture | d8ff1b0181db03f9ddcb7610ae7ab533feecbfbb | [
"MIT"
] | 1 | 2021-01-29T14:12:40.000Z | 2021-01-29T14:12:40.000Z | defmodule Data.Repo.Migrations.AddUniqueIndexOnEmails do
use Ecto.Migration
def change do
create index(:users, :email, unique: true)
end
end
| 19 | 56 | 0.756579 |
9efc1bd45f2585d92cb9c8bebf1cc2fec595f75a | 1,276 | ex | Elixir | apps/extended_api/lib/extended_api/worker/get_trytes/function/edge_fn.ex | iotaledger/chronicle | 73566e5613268e4b0c5951265ae4760cedb4051f | [
"Apache-2.0"
] | 19 | 2019-09-17T18:14:36.000Z | 2021-12-06T07:29:27.000Z | apps/extended_api/lib/extended_api/worker/get_trytes/function/edge_fn.ex | iotaledger/chronicle | 73566e5613268e4b0c5951265ae4760cedb4051f | [
"Apache-2.0"
] | 5 | 2019-09-30T04:57:14.000Z | 2020-11-10T15:41:03.000Z | apps/extended_api/lib/extended_api/worker/get_trytes/function/edge_fn.ex | iotaledger/chronicle | 73566e5613268e4b0c5951265ae4760cedb4051f | [
"Apache-2.0"
] | 2 | 2019-09-17T19:03:16.000Z | 2021-03-01T01:04:31.000Z | defmodule ExtendedApi.Worker.GetTrytes.EdgeFn do
@moduledoc """
This module hold the function that are going to compute
the edge query result, it creates one query
to fetch two rows
1- address's information row (fixed_fields).
2- transaction's information row (dymanic_fields).
finally it re... | 26.583333 | 61 | 0.651254 |
9efc220acfe04b5da477d75f1c05c5bac02e87cc | 254 | exs | Elixir | priv/repo/migrations/20180723212733_create_users.exs | kenkeiras/MonTree | 7ec724634c123ee085921c4cac07800c9a15e4ec | [
"WTFPL"
] | 2 | 2018-10-26T06:06:42.000Z | 2020-02-16T15:01:42.000Z | priv/repo/migrations/20180723212733_create_users.exs | kenkeiras/TechTree | 26c8ca59855002a88bf15eb0b64a6c788f438ec8 | [
"WTFPL"
] | 108 | 2018-10-25T10:30:33.000Z | 2021-07-28T04:18:03.000Z | priv/repo/migrations/20180723212733_create_users.exs | kenkeiras/TechTree | 26c8ca59855002a88bf15eb0b64a6c788f438ec8 | [
"WTFPL"
] | null | null | null | defmodule Techtree.Repo.Migrations.CreateUsers do
use Ecto.Migration
def change do
create table(:users) do
add :name, :string
add :username, :string
timestamps()
end
create unique_index(:users, [:username])
end
end
| 16.933333 | 49 | 0.665354 |
9efc2907a66b313546d126c6b8d13420e4649c01 | 1,160 | exs | Elixir | lib/mix/test/mix/tasks/help_test.exs | enokd/elixir | e39b32f235082b8a29fcb22d250c822cca98609f | [
"Apache-2.0"
] | 1 | 2015-11-12T19:23:45.000Z | 2015-11-12T19:23:45.000Z | lib/mix/test/mix/tasks/help_test.exs | enokd/elixir | e39b32f235082b8a29fcb22d250c822cca98609f | [
"Apache-2.0"
] | null | null | null | lib/mix/test/mix/tasks/help_test.exs | enokd/elixir | e39b32f235082b8a29fcb22d250c822cca98609f | [
"Apache-2.0"
] | null | null | null | Code.require_file "../../test_helper.exs", __DIR__
defmodule Mix.Tasks.HelpTest do
use MixTest.Case
test "help lists all tasks" do
in_fixture "only_mixfile", fn ->
Mix.Tasks.Help.run []
assert_received { :mix_shell, :info, ["mix" <> _] }
assert_received { :mix_shell, :info, ["mix help" <> _]... | 26.976744 | 78 | 0.574138 |
9efc4e74496fe6ab39d5b5a8f6619bd6f9777a9b | 844 | ex | Elixir | lib/kafka_ex/exceptions.ex | Zarathustra2/kafka_ex | 436a84c7a32bee40f1dbffc17a3c1a0f2fc98c30 | [
"MIT"
] | 536 | 2015-08-10T03:14:39.000Z | 2022-03-24T15:07:33.000Z | lib/kafka_ex/exceptions.ex | Zarathustra2/kafka_ex | 436a84c7a32bee40f1dbffc17a3c1a0f2fc98c30 | [
"MIT"
] | 349 | 2015-09-16T21:27:42.000Z | 2022-03-28T08:51:56.000Z | lib/kafka_ex/exceptions.ex | Zarathustra2/kafka_ex | 436a84c7a32bee40f1dbffc17a3c1a0f2fc98c30 | [
"MIT"
] | 180 | 2015-09-01T22:58:26.000Z | 2022-03-25T16:47:49.000Z | defmodule KafkaEx.ConsumerGroupRequiredError do
defexception [:message]
def exception(%{__struct__: struct}) do
message =
"KafkaEx requests of type #{struct} " <>
"require that the worker is configured for a consumer group."
%__MODULE__{message: message}
end
def exception(action) when i... | 25.575758 | 69 | 0.725118 |
9efc6e8f99eb587f9b5f49010d9187236f5b5bcc | 165 | exs | Elixir | examples/simple/test/test_helper.exs | korutx/mongodb_ecto | a368293c3e524f24493d0cfb9482a3bc616ebcd9 | [
"Apache-2.0"
] | 256 | 2015-05-27T17:45:54.000Z | 2017-08-20T15:07:41.000Z | examples/simple/test/test_helper.exs | korutx/mongodb_ecto | a368293c3e524f24493d0cfb9482a3bc616ebcd9 | [
"Apache-2.0"
] | 134 | 2015-05-31T19:43:44.000Z | 2017-08-22T23:57:20.000Z | examples/simple/test/test_helper.exs | korutx/mongodb_ecto | a368293c3e524f24493d0cfb9482a3bc616ebcd9 | [
"Apache-2.0"
] | 81 | 2015-05-29T19:57:19.000Z | 2017-08-22T13:36:45.000Z | ExUnit.start()
Logger.configure(level: :info)
defmodule Simple.Case do
use ExUnit.CaseTemplate
setup do
Mongo.Ecto.truncate(Simple.Repo)
:ok
end
end
| 13.75 | 36 | 0.721212 |
9efc851c9174edbd26b3ad15176351501eeff63d | 2,735 | ex | Elixir | lib/oban/plugins/gossip.ex | thiamsantos/oban | 2e323b9fb94b16f1e308cfbadb5e9dc3bee37318 | [
"Apache-2.0"
] | null | null | null | lib/oban/plugins/gossip.ex | thiamsantos/oban | 2e323b9fb94b16f1e308cfbadb5e9dc3bee37318 | [
"Apache-2.0"
] | null | null | null | lib/oban/plugins/gossip.ex | thiamsantos/oban | 2e323b9fb94b16f1e308cfbadb5e9dc3bee37318 | [
"Apache-2.0"
] | null | null | null | defmodule Oban.Plugins.Gossip do
@moduledoc """
Periodically broadcast queue activity to the gossip notification channel.
## Using the Plugin
The following example demonstrates using the plugin without any configuration, which will broadcast
the state of each local queue every 1 second:
config :my_ap... | 25.560748 | 102 | 0.650457 |
9efcafbb8d760c87781dde35fc888bc10d2c41cb | 538 | exs | Elixir | priv/repo/migrations/20170627125432_create_golos_comments.exs | cyberpunk-ventures/glasnost | d6853a191ac2094dbe160953094a6d0c7e6c0778 | [
"MIT"
] | 26 | 2017-03-04T20:07:09.000Z | 2018-08-15T10:16:06.000Z | priv/repo/migrations/20170627125432_create_golos_comments.exs | cyberpunk-ventures/glasnost | d6853a191ac2094dbe160953094a6d0c7e6c0778 | [
"MIT"
] | 18 | 2017-03-18T13:59:31.000Z | 2018-09-06T10:08:33.000Z | priv/repo/migrations/20170627125432_create_golos_comments.exs | metachaos-systems/glasnost | d6853a191ac2094dbe160953094a6d0c7e6c0778 | [
"MIT"
] | 9 | 2017-03-16T19:02:04.000Z | 2018-06-02T23:44:52.000Z | defmodule Glasnost.Repo.Migrations.CreateGolosComments do
use Ecto.Migration
def change do
create_if_not_exists table(:golos_comments) do
add :author, :text
add :title, :text
add :permlink, :text
add :body, :text
add :body_html, :text
add :tags, {:array, :text}
... | 24.454545 | 57 | 0.611524 |
9efcbaaf7c08af6030aa30b2e7e3039f35e6cb32 | 1,190 | ex | Elixir | core/sup_tree_core/periodic_log/message_builder.ex | IvanPereyra-23/PaaS | 0179c7b57645473308b0a295a70b6284ed220fbf | [
"Apache-2.0"
] | 1 | 2020-08-27T18:43:11.000Z | 2020-08-27T18:43:11.000Z | core/sup_tree_core/periodic_log/message_builder.ex | IvanPereyra-23/PaaS | 0179c7b57645473308b0a295a70b6284ed220fbf | [
"Apache-2.0"
] | null | null | null | core/sup_tree_core/periodic_log/message_builder.ex | IvanPereyra-23/PaaS | 0179c7b57645473308b0a295a70b6284ed220fbf | [
"Apache-2.0"
] | 1 | 2020-08-27T18:43:21.000Z | 2020-08-27T18:43:21.000Z | # Copyright(c) 2015-2020 ACCESS CO., LTD. All rights reserved.
defmodule AntikytheraCore.PeriodicLog.MessageBuilder do
@max_proc_to_log 5
@max_msg_to_log 10
@queue_len_threshold 100
def init() do
nil
end
def build_log(state) do
log =
:recon.proc_count(:message_queue_len, @max_proc_... | 31.315789 | 92 | 0.670588 |
9efcefc1779b7d5d9f8dd3c4c305f96bbe0f42bb | 57,022 | ex | Elixir | lib/mix/lib/mix/tasks/release.ex | dvic/elixir | 6db7b54c4cb9c77805d19ca695a23c40ac3f8aaa | [
"Apache-2.0"
] | 1 | 2021-02-22T14:21:02.000Z | 2021-02-22T14:21:02.000Z | lib/mix/lib/mix/tasks/release.ex | bessbd/elixir | 2b8de986238ce0e9593ed5b5d182994a562c1c30 | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/tasks/release.ex | bessbd/elixir | 2b8de986238ce0e9593ed5b5d182994a562c1c30 | [
"Apache-2.0"
] | null | null | null | defmodule Mix.Tasks.Release do
use Mix.Task
@shortdoc "Assembles a self-contained release"
@moduledoc """
Assembles a self-contained release for the current project:
MIX_ENV=prod mix release
MIX_ENV=prod mix release NAME
Once a release is assembled, it can be packaged and deployed to a
targe... | 39.325517 | 106 | 0.695872 |
9efcfdde47a2ca7d9c70acebccd6f7e0c52da03e | 1,649 | ex | Elixir | clients/calendar/lib/google_api/calendar/v3/model/setting.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/calendar/lib/google_api/calendar/v3/model/setting.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/calendar/lib/google_api/calendar/v3/model/setting.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | 1 | 2018-07-28T20:50:50.000Z | 2018-07-28T20:50:50.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 31.711538 | 191 | 0.724075 |
9efd337db20b135d09a9c0f6ccc7d5a589013b05 | 477 | ex | Elixir | phoenix_sideque_poc/lib/phoenix_sideque_poc_web/views/error_helpers.ex | waferelectronics/rails_phoenix_sidekiq_communication | e9cee8fc6b39106e9acdf306140e840e0c286722 | [
"MIT"
] | null | null | null | phoenix_sideque_poc/lib/phoenix_sideque_poc_web/views/error_helpers.ex | waferelectronics/rails_phoenix_sidekiq_communication | e9cee8fc6b39106e9acdf306140e840e0c286722 | [
"MIT"
] | null | null | null | phoenix_sideque_poc/lib/phoenix_sideque_poc_web/views/error_helpers.ex | waferelectronics/rails_phoenix_sidekiq_communication | e9cee8fc6b39106e9acdf306140e840e0c286722 | [
"MIT"
] | 1 | 2020-06-05T12:39:23.000Z | 2020-06-05T12:39:23.000Z | defmodule PhoenixSidequePocWeb.ErrorHelpers do
@moduledoc """
Conveniences for translating and building error messages.
"""
@doc """
Translates an error message.
"""
def translate_error({msg, opts}) do
# Because the error messages we show in our forms and APIs
# are defined inside Ecto, we need t... | 28.058824 | 69 | 0.683438 |
9efd835e9d05b6ea507a7c615d0a1b431987f955 | 275 | ex | Elixir | lib/price_tracker/repo.ex | kevinbenard/price_tracker | 0a7248edd4afca21f00e8b0fc05561f97799c0ca | [
"MIT"
] | null | null | null | lib/price_tracker/repo.ex | kevinbenard/price_tracker | 0a7248edd4afca21f00e8b0fc05561f97799c0ca | [
"MIT"
] | null | null | null | lib/price_tracker/repo.ex | kevinbenard/price_tracker | 0a7248edd4afca21f00e8b0fc05561f97799c0ca | [
"MIT"
] | null | null | null | defmodule PriceTracker.Repo do
use Ecto.Repo, otp_app: :price_tracker
@doc """
Dynamically loads the repository url from the
DATABASE_URL environment variable.
"""
def init(_, opts) do
{:ok, Keyword.put(opts, :url, System.get_env("DATABASE_URL"))}
end
end
| 22.916667 | 66 | 0.709091 |
9efda1b3d4d60d84ffbddb6b68b2f09d1078e459 | 657 | exs | Elixir | test/sap/combinators/http_test.exs | slogsdon/sap | 766f06cfac8a04772affd977a88d61210064e598 | [
"MIT"
] | 7 | 2015-10-25T16:38:45.000Z | 2020-01-12T19:06:57.000Z | test/sap/combinators/http_test.exs | slogsdon/sap | 766f06cfac8a04772affd977a88d61210064e598 | [
"MIT"
] | null | null | null | test/sap/combinators/http_test.exs | slogsdon/sap | 766f06cfac8a04772affd977a88d61210064e598 | [
"MIT"
] | null | null | null | defmodule Sap.Combinators.HttpTest do
use ExUnit.Case, async: true
use Plug.Test
import Sap.Combinators.Http
test "get no match" do
conn1 = conn(:post, "/")
resp1 = get().(conn1)
assert resp1.status == :error
assert resp1.conn == conn1
conn2 = conn(:put, "/")
resp2 = get().(conn2)
... | 19.323529 | 37 | 0.596651 |
9efdac6f9416640cb01df23a4d91799b96a4ff41 | 17,386 | ex | Elixir | lib/plasm.ex | facto/plasm | cd8a713e8409738f776f77cecbc65e2f0f42c146 | [
"Apache-2.0"
] | 56 | 2016-07-31T19:35:49.000Z | 2021-10-21T20:32:42.000Z | lib/plasm.ex | atomic-fads/plasm | cd8a713e8409738f776f77cecbc65e2f0f42c146 | [
"Apache-2.0"
] | 2 | 2016-01-27T17:38:55.000Z | 2016-05-21T18:33:14.000Z | lib/plasm.ex | atomic-fads/plasm | cd8a713e8409738f776f77cecbc65e2f0f42c146 | [
"Apache-2.0"
] | 3 | 2016-01-27T14:00:55.000Z | 2016-05-21T18:06:56.000Z | defmodule Plasm do
import Ecto.Query
@doc """
Builds a query that finds all records at a specified date and time for a specified field name.
Puppy |> Plasm.at(:updated_at, date_time) |> Repo.all
Puppy |> Plasm.at(:updated_at, "2014-04-17T14:00:00Z") |> Repo.all
"""
@spec at(Ecto.Queryable.t(), ... | 33.053232 | 122 | 0.67261 |
9efdd255d5ca26e1639c81cd09ee3b453841d58a | 117 | exs | Elixir | apps/day23/test/day23_test.exs | jwarwick/aoc_2019 | 04229b86829b72323498b57a6649fcc6f7c96406 | [
"MIT"
] | 2 | 2019-12-21T21:21:04.000Z | 2019-12-27T07:00:19.000Z | apps/day23/test/day23_test.exs | jwarwick/aoc_2019 | 04229b86829b72323498b57a6649fcc6f7c96406 | [
"MIT"
] | null | null | null | apps/day23/test/day23_test.exs | jwarwick/aoc_2019 | 04229b86829b72323498b57a6649fcc6f7c96406 | [
"MIT"
] | null | null | null | defmodule Day23Test do
use ExUnit.Case
doctest Day23
test "part1" do
assert Day23.part2 == :val
end
end
| 13 | 30 | 0.692308 |
9efe045724b884a151c5a706f786a1ab5c826aaf | 1,123 | exs | Elixir | config/config.exs | sschneider1207/gen_gossip | 9a36aadbe5443f5ba81025125bff95fbb227ec83 | [
"MIT"
] | null | null | null | config/config.exs | sschneider1207/gen_gossip | 9a36aadbe5443f5ba81025125bff95fbb227ec83 | [
"MIT"
] | null | null | null | config/config.exs | sschneider1207/gen_gossip | 9a36aadbe5443f5ba81025125bff95fbb227ec83 | [
"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.225806 | 73 | 0.752449 |
9efe09e870a530426e3975ce48e5541caaacf9ae | 2,028 | ex | Elixir | lib/helper/sender.ex | mishka-group/mishka_installer | ab19e3e1e8aaa984ec48d6277a77d567eb5f61ea | [
"Apache-2.0"
] | 3 | 2022-03-18T14:32:15.000Z | 2022-03-24T06:33:21.000Z | lib/helper/sender.ex | mishka-group/mishka_installer | ab19e3e1e8aaa984ec48d6277a77d567eb5f61ea | [
"Apache-2.0"
] | 3 | 2022-03-25T08:30:42.000Z | 2022-03-27T17:13:46.000Z | lib/helper/sender.ex | mishka-group/mishka_installer | ab19e3e1e8aaa984ec48d6277a77d567eb5f61ea | [
"Apache-2.0"
] | null | null | null | defmodule MishkaInstaller.Helper.Sender do
@moduledoc """
At first, we try to get basic information from `hex.pm` website; but after releasing some versions of MishkaInstaller,
this API can be useful for managing packages from admin panel.
**Ref: `https://github.com/hexpm/hexpm/issues/1124`**
"""
@re... | 39 | 141 | 0.672584 |
9efe3c179ee2ce9747adc75694bf80eb75b699a9 | 1,545 | ex | Elixir | apps/web/lib/web_web.ex | renovate-tests/ex | 2e02d5a1e59122c13a0ebd2321f5cb291160aaa8 | [
"MIT"
] | 1 | 2019-10-30T19:38:12.000Z | 2019-10-30T19:38:12.000Z | apps/web/lib/web_web.ex | renovate-tests/ex | 2e02d5a1e59122c13a0ebd2321f5cb291160aaa8 | [
"MIT"
] | 80 | 2020-03-02T20:34:55.000Z | 2022-03-30T12:11:21.000Z | apps/web/lib/web_web.ex | 9renpoto/phx | 06457b5e5630e45e17add8cb5097004dc1ff7e9d | [
"MIT"
] | 1 | 2019-07-28T19:45:59.000Z | 2019-07-28T19:45:59.000Z | defmodule WebWeb do
@moduledoc """
The entrypoint for defining your web interface, such
as controllers, views, channels and so on.
This can be used in your application as:
use WebWeb, :controller
use WebWeb, :view
The definitions below will be executed for every view,
controller, etc, so keep... | 22.391304 | 69 | 0.680259 |
9efe49b6aac9b540cbe2b386431d8346e8b51b23 | 1,551 | exs | Elixir | test/features/page/on_event_test.exs | Proporus/playwright-elixir | 639fea3c7076657a9104e6fd742b0c2f4e2f167f | [
"MIT"
] | null | null | null | test/features/page/on_event_test.exs | Proporus/playwright-elixir | 639fea3c7076657a9104e6fd742b0c2f4e2f167f | [
"MIT"
] | null | null | null | test/features/page/on_event_test.exs | Proporus/playwright-elixir | 639fea3c7076657a9104e6fd742b0c2f4e2f167f | [
"MIT"
] | null | null | null | defmodule Test.Features.Page.OnEventTest do
use Playwright.TestCase, async: true
describe "Page.on/3" do
test "on 'close'", %{page: page} do
this = self()
guid = page.guid
Playwright.Page.on(page, "close", fn event ->
send(this, event)
end)
Playwright.Page.close(page)
... | 31.02 | 112 | 0.630561 |
9efe51996f72b3aab0db2f2c66e89c08f519de99 | 1,987 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/accounts_list_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/accounts_list_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/accounts_list_response.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 ... | 37.490566 | 186 | 0.73226 |
9efe5f42a0c4a028f5de2f3d61c9bfd5f9571982 | 26 | ex | Elixir | lib/toy_robot.ex | lowski/toy-robot | 107e5c68c1ba0813be9efb3949f6fde348aaa05b | [
"MIT"
] | null | null | null | lib/toy_robot.ex | lowski/toy-robot | 107e5c68c1ba0813be9efb3949f6fde348aaa05b | [
"MIT"
] | null | null | null | lib/toy_robot.ex | lowski/toy-robot | 107e5c68c1ba0813be9efb3949f6fde348aaa05b | [
"MIT"
] | null | null | null | defmodule ToyRobot do
end
| 8.666667 | 21 | 0.846154 |
9efe68babac15266d1a9b0194f35f0fde485335f | 2,566 | ex | Elixir | apps/ex_wire/lib/ex_wire/message.ex | atoulme/ethereum | cebb0756c7292ac266236636d2ab5705cb40a52e | [
"MIT"
] | 14 | 2017-08-21T06:14:49.000Z | 2020-05-15T12:00:52.000Z | apps/ex_wire/lib/ex_wire/message.ex | atoulme/ethereum | cebb0756c7292ac266236636d2ab5705cb40a52e | [
"MIT"
] | 7 | 2017-08-11T07:50:14.000Z | 2018-08-23T20:42:50.000Z | apps/ex_wire/lib/ex_wire/message.ex | atoulme/ethereum | cebb0756c7292ac266236636d2ab5705cb40a52e | [
"MIT"
] | 3 | 2017-08-20T17:56:41.000Z | 2018-08-21T00:36:10.000Z | defmodule ExWire.Message do
@moduledoc """
Defines a behavior for messages so that they can be
easily encoded and decoded.
"""
defmodule UnknownMessageError do
defexception [:message]
end
@type t :: module()
@type message_id :: integer()
@callback message_id() :: message_id
@callback encode(t... | 32.481013 | 156 | 0.593141 |
9efe7558037e8b9ab5ecb94cb30f79ba9a63551d | 439 | exs | Elixir | mix.exs | membraneframework/membrane_ogg_format | 8d82b1f4bce00c24bdfaa6757303b92354dc2fc2 | [
"Apache-2.0"
] | 1 | 2021-04-29T06:47:45.000Z | 2021-04-29T06:47:45.000Z | mix.exs | membraneframework/membrane_ogg_format | 8d82b1f4bce00c24bdfaa6757303b92354dc2fc2 | [
"Apache-2.0"
] | null | null | null | mix.exs | membraneframework/membrane_ogg_format | 8d82b1f4bce00c24bdfaa6757303b92354dc2fc2 | [
"Apache-2.0"
] | 1 | 2020-11-18T14:22:52.000Z | 2020-11-18T14:22:52.000Z | defmodule MembraneOggFormat.MixProject do
use Mix.Project
@version "0.1.0"
def project do
[
app: :membrane_ogg_format,
version: @version,
elixir: "~> 1.10",
deps: deps()
]
end
def application do
[
extra_applications: []
]
end
defp deps do
[
{:ex_... | 15.678571 | 57 | 0.546697 |
9efe94b607e065a247f8a556c273dbab2ebb75ee | 3,716 | ex | Elixir | lib/blockfrost/cardano/assets.ex | blockfrost/blockfrost-elixir | b1f8ea7ae47cd3a7037e1c9ed0d3691fc775bdec | [
"Apache-2.0"
] | 13 | 2021-08-31T03:54:37.000Z | 2022-01-30T17:39:40.000Z | lib/blockfrost/cardano/assets.ex | blockfrost/blockfrost-elixir | b1f8ea7ae47cd3a7037e1c9ed0d3691fc775bdec | [
"Apache-2.0"
] | 6 | 2021-08-30T04:45:52.000Z | 2021-09-23T09:15:08.000Z | lib/blockfrost/cardano/assets.ex | blockfrost/blockfrost-elixir | b1f8ea7ae47cd3a7037e1c9ed0d3691fc775bdec | [
"Apache-2.0"
] | null | null | null | defmodule Blockfrost.Cardano.Assets do
@moduledoc "Functions for to the /assets namespace in the Blockfrost API"
alias Blockfrost.HTTP
alias Blockfrost.Response
alias Blockfrost.Utils
alias Blockfrost.Response.{
AssetsResponse,
SpecificAssetResponse,
AssetHistoryResponse,
AssetTransactionsRe... | 30.710744 | 102 | 0.692142 |
9efe9bd38fbefe60149185a0f7b5656bd9c8cc43 | 476 | exs | Elixir | test/history/products/all_test.exs | fremantle-industries/history | a8a33744279ff4ca62620785f9a2e9c0c99e4de7 | [
"MIT"
] | 20 | 2021-08-06T01:09:48.000Z | 2022-03-28T18:44:56.000Z | test/history/products/all_test.exs | fremantle-industries/history | a8a33744279ff4ca62620785f9a2e9c0c99e4de7 | [
"MIT"
] | 13 | 2021-08-21T21:17:02.000Z | 2022-03-27T06:33:51.000Z | test/history/products/all_test.exs | fremantle-industries/history | a8a33744279ff4ca62620785f9a2e9c0c99e4de7 | [
"MIT"
] | 2 | 2021-09-23T11:31:59.000Z | 2022-01-09T16:19:35.000Z | defmodule History.Products.AllTest do
use History.DataCase
alias History.Factories
test "returns all products" do
{:ok, spot_product} = Factories.Product.create(%{symbol: "btc/usd", type: :spot})
{:ok, swap_product} = Factories.Product.create(%{symbol: "btc-perp", type: :swap})
products = History.Pr... | 31.733333 | 86 | 0.707983 |
9efed825467b929df02b9a4edc334be2598d83c8 | 695 | exs | Elixir | test/ecdsa_test.exs | PinkDiamond1/ecdsa-elixir | dd1953cc48974b5bfb9461d3a2179d1d937b264d | [
"MIT"
] | null | null | null | test/ecdsa_test.exs | PinkDiamond1/ecdsa-elixir | dd1953cc48974b5bfb9461d3a2179d1d937b264d | [
"MIT"
] | null | null | null | test/ecdsa_test.exs | PinkDiamond1/ecdsa-elixir | dd1953cc48974b5bfb9461d3a2179d1d937b264d | [
"MIT"
] | null | null | null | defmodule EcdsaTest do
use ExUnit.Case
alias EllipticCurve.{PrivateKey, Ecdsa}
test "verify right message" do
privateKey = PrivateKey.generate()
publicKey = PrivateKey.getPublicKey(privateKey)
message = "This is the right message"
signature = Ecdsa.sign(message, privateKey)
assert Ecdsa.v... | 23.965517 | 57 | 0.723741 |
9eff05a0d7666dba8ed89adbfe82e481a430ab12 | 1,244 | ex | Elixir | lib/rixile.ex | gentom/rixile | fb9e65acf4c4e38154fddc393d669a3d01dd0005 | [
"MIT"
] | null | null | null | lib/rixile.ex | gentom/rixile | fb9e65acf4c4e38154fddc393d669a3d01dd0005 | [
"MIT"
] | null | null | null | lib/rixile.ex | gentom/rixile | fb9e65acf4c4e38154fddc393d669a3d01dd0005 | [
"MIT"
] | null | null | null | defmodule Rixile do
use Rixile.Router
def route("GET", ["users", user_id], conn) do
conn |> Plug.Conn.send_resp(200, "You requested user #{user_id}")
end
def route("POST", ["users"], conn) do
IO.puts "POST"
end
def route(_method, _path, conn) do
conn |> Plug.Conn.send_resp(404, "Couldn't find... | 21.448276 | 131 | 0.614148 |
9eff31ddf5e51017740ab7caeeaf22a512628841 | 798 | exs | Elixir | containers/chat/test/chat_web/channels/awayteam_channel_test.exs | shiftyp/awayteam | 297e21305a109af3aee9ac3dc5820f8220c1b380 | [
"MIT"
] | null | null | null | containers/chat/test/chat_web/channels/awayteam_channel_test.exs | shiftyp/awayteam | 297e21305a109af3aee9ac3dc5820f8220c1b380 | [
"MIT"
] | 6 | 2021-03-09T19:50:06.000Z | 2022-02-26T18:41:08.000Z | containers/chat/test/chat_web/channels/awayteam_channel_test.exs | shiftyp/awayteam | 297e21305a109af3aee9ac3dc5820f8220c1b380 | [
"MIT"
] | null | null | null | defmodule ChatWeb.AwayteamChannelTest do
use ChatWeb.ChannelCase
alias ChatWeb.AwayteamChannel
setup do
{:ok, _, socket} =
socket("user_id", %{some: :assign})
|> subscribe_and_join(AwayteamChannel, "awayteam:lobby")
{:ok, socket: socket}
end
test "ping replies with status ok", %{socket... | 27.517241 | 66 | 0.635338 |
9eff7702037ea9532c6044c1a653a5d657730d04 | 479 | exs | Elixir | config/config.exs | xfumihiro/elasticsearch-elixir | bd71da03f54dd0c1b892d60472d05a4fe2be441e | [
"MIT"
] | null | null | null | config/config.exs | xfumihiro/elasticsearch-elixir | bd71da03f54dd0c1b892d60472d05a4fe2be441e | [
"MIT"
] | null | null | null | config/config.exs | xfumihiro/elasticsearch-elixir | bd71da03f54dd0c1b892d60472d05a4fe2be441e | [
"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
config :elasticsearch, Elasticsearch.Test.Repo,
adapter: Ecto.Adapters.Postgres,
username: "postgres",
password: "postgres",
database: "elasticsearch_test",
hostname: "loca... | 28.176471 | 61 | 0.759916 |
9eff949d9488991f72759db8d958b6695f47a414 | 1,115 | exs | Elixir | flight_booking/test/users/create_or_update_test.exs | joabehenrique/flight-booking | d0cb4ead0e3a14b8d15f913d545d6b4168795d2b | [
"MIT"
] | null | null | null | flight_booking/test/users/create_or_update_test.exs | joabehenrique/flight-booking | d0cb4ead0e3a14b8d15f913d545d6b4168795d2b | [
"MIT"
] | null | null | null | flight_booking/test/users/create_or_update_test.exs | joabehenrique/flight-booking | d0cb4ead0e3a14b8d15f913d545d6b4168795d2b | [
"MIT"
] | null | null | null | defmodule Flightex.Users.CreateOrUpdateTest do
use ExUnit.Case, async: true
alias Flightex.Users.{Agent, CreateOrUpdate}
describe "call/1" do
setup do
Agent.start_link(%{})
# O Agent.start_link vai iniciar os 2 agents antes do teste
# Deve ser implementado para os testes passarem
:ok... | 22.3 | 65 | 0.600897 |
9effe73d995e089b74f3bbbe780b5061ee413458 | 13,917 | exs | Elixir | test/response_test.exs | kalamarski-marcin/bolt_sips | fe0e64d69c50bf41d100978628daff5a50f1d44c | [
"Apache-2.0"
] | null | null | null | test/response_test.exs | kalamarski-marcin/bolt_sips | fe0e64d69c50bf41d100978628daff5a50f1d44c | [
"Apache-2.0"
] | null | null | null | test/response_test.exs | kalamarski-marcin/bolt_sips | fe0e64d69c50bf41d100978628daff5a50f1d44c | [
"Apache-2.0"
] | null | null | null | defmodule ResponseTest do
use ExUnit.Case
alias Bolt.Sips.Response
# import ExUnit.CaptureLog
@explain [
success: %{"fields" => ["n"], "t_first" => 1},
success: %{
"bookmark" => "neo4j:bookmark:v1:tx13440",
"plan" => %{
"args" => %{
"EstimatedRows" => 1.0,
"plan... | 31.41535 | 96 | 0.367752 |
9efff685bcdaca194c9388301c27e38e6365da2b | 2,907 | exs | Elixir | test/services/translations_renderer_test.exs | leonardocouy/accent | 29fb324395ff998cc5cdc6947c60070ffabe647c | [
"BSD-3-Clause"
] | null | null | null | test/services/translations_renderer_test.exs | leonardocouy/accent | 29fb324395ff998cc5cdc6947c60070ffabe647c | [
"BSD-3-Clause"
] | null | null | null | test/services/translations_renderer_test.exs | leonardocouy/accent | 29fb324395ff998cc5cdc6947c60070ffabe647c | [
"BSD-3-Clause"
] | null | null | null | defmodule AccentTest.TranslationsRenderer do
use Accent.RepoCase
alias Accent.{
Repo,
User,
ProjectCreator,
Language,
Translation,
Document,
TranslationsRenderer
}
@user %User{email: "test@test.com"}
setup do
user = Repo.insert!(@user)
language = Repo.insert!(%Language{n... | 24.225 | 111 | 0.583075 |
9efff90c1ffec1e04414fc1133b40f3bd3527501 | 192 | ex | Elixir | apps/tai/lib/tai/iex/commands/disable_send_orders.ex | ccamateur/tai | 41c4b3e09dafc77987fa3f6b300c15461d981e16 | [
"MIT"
] | 276 | 2018-01-16T06:36:06.000Z | 2021-03-20T21:48:01.000Z | apps/tai/lib/tai/iex/commands/disable_send_orders.ex | ccamateur/tai | 41c4b3e09dafc77987fa3f6b300c15461d981e16 | [
"MIT"
] | 78 | 2020-10-12T06:21:43.000Z | 2022-03-28T09:02:00.000Z | apps/tai/lib/tai/iex/commands/disable_send_orders.ex | yurikoval/tai | 94254b45d22fa0307b01577ff7c629c7280c0295 | [
"MIT"
] | 43 | 2018-06-09T09:54:51.000Z | 2021-03-07T07:35:17.000Z | defmodule Tai.IEx.Commands.DisableSendOrders do
@spec disable :: no_return
def disable do
Tai.Commander.disable_send_orders()
|> IO.puts()
IEx.dont_display_result()
end
end
| 19.2 | 47 | 0.723958 |
9efffde4b590da32e02efda598351914434077ef | 19,174 | ex | Elixir | lib/aws/generated/fsx.ex | salemove/aws-elixir | debdf6482158a71a57636ac664c911e682093395 | [
"Apache-2.0"
] | null | null | null | lib/aws/generated/fsx.ex | salemove/aws-elixir | debdf6482158a71a57636ac664c911e682093395 | [
"Apache-2.0"
] | null | null | null | lib/aws/generated/fsx.ex | salemove/aws-elixir | debdf6482158a71a57636ac664c911e682093395 | [
"Apache-2.0"
] | null | null | null | # WARNING: DO NOT EDIT, AUTO-GENERATED CODE!
# See https://github.com/aws-beam/aws-codegen for more details.
defmodule AWS.FSx do
@moduledoc """
Amazon FSx is a fully managed service that makes it easy for storage and
application administrators to launch and use shared file storage.
"""
alias AWS.Client
a... | 44.281755 | 165 | 0.755189 |
7300540a9c93874bfff35cb6b0cf2969de4236dc | 383 | ex | Elixir | lib/basic_crud/users/user.ex | Thibault-Santonja/Phoenix_tests | 429100499849837d1449495db354fc1006ceb86c | [
"MIT"
] | null | null | null | lib/basic_crud/users/user.ex | Thibault-Santonja/Phoenix_tests | 429100499849837d1449495db354fc1006ceb86c | [
"MIT"
] | null | null | null | lib/basic_crud/users/user.ex | Thibault-Santonja/Phoenix_tests | 429100499849837d1449495db354fc1006ceb86c | [
"MIT"
] | null | null | null | defmodule BasicCrud.Users.User do
use Ecto.Schema
import Ecto.Changeset
schema "users" do
field :admin, :boolean, default: false
field :name, :string
field :password, :string
timestamps()
end
@doc false
def changeset(user, attrs) do
user
|> cast(attrs, [:name, :password, :admin])
... | 19.15 | 52 | 0.655352 |
7300885b049c4b007009ccd7df9b15b6fc1f71b9 | 7,969 | ex | Elixir | lib/ex_json_schema/schema.ex | hzamani/ex_json_schema | ad86d4482a8bda66ba9e6dc954b69261051047bf | [
"MIT"
] | null | null | null | lib/ex_json_schema/schema.ex | hzamani/ex_json_schema | ad86d4482a8bda66ba9e6dc954b69261051047bf | [
"MIT"
] | null | null | null | lib/ex_json_schema/schema.ex | hzamani/ex_json_schema | ad86d4482a8bda66ba9e6dc954b69261051047bf | [
"MIT"
] | null | null | null | defmodule ExJsonSchema.Schema do
defmodule UnsupportedSchemaVersionError do
defexception message: "unsupported schema version, only draft 4 is supported"
end
defmodule InvalidSchemaError do
defexception message: "invalid schema"
end
defmodule UndefinedRemoteSchemaResolverError do
defexception me... | 33.343096 | 124 | 0.68641 |
73009365cc3c98b943da7f108be3e9d31b56673c | 3,396 | ex | Elixir | clients/cloud_search/lib/google_api/cloud_search/v1/model/timestamp_operator_options.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/cloud_search/lib/google_api/cloud_search/v1/model/timestamp_operator_options.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/cloud_search/lib/google_api/cloud_search/v1/model/timestamp_operator_options.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... | 64.075472 | 654 | 0.759128 |
7300d0a2ea58d87211b7f7e19bf9a106f0e4a2f7 | 9,356 | ex | Elixir | lib/elixir/lib/protocol/consolidation.ex | guilleiguaran/elixir | 952052869ff7af0e293d2a7160b1aebc68fc46be | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/protocol/consolidation.ex | guilleiguaran/elixir | 952052869ff7af0e293d2a7160b1aebc68fc46be | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/protocol/consolidation.ex | guilleiguaran/elixir | 952052869ff7af0e293d2a7160b1aebc68fc46be | [
"Apache-2.0"
] | null | null | null | defmodule Protocol.Consolidation do
@moduledoc """
Module responsible for consolidating protocols and helpers for
extracting protocols and implementations from code paths for
consolidation.
"""
@doc """
Extract all protocols from the given paths.
The paths can be either a char list or a string. Intern... | 35.041199 | 117 | 0.640124 |
73011197701780c6d714082c090b46f42a441e39 | 1,895 | ex | Elixir | clients/gmail/lib/google_api/gmail/v1/model/auto_forwarding.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/gmail/lib/google_api/gmail/v1/model/auto_forwarding.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/gmail/lib/google_api/gmail/v1/model/auto_forwarding.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.754717 | 195 | 0.7219 |
730136c2fc34ce99ba5fdccc93ae179118e34781 | 5,756 | exs | Elixir | mix.exs | the-shank/extika | 1e5b58caad8976194b5b63470124f8ab7b95e363 | [
"MIT"
] | null | null | null | mix.exs | the-shank/extika | 1e5b58caad8976194b5b63470124f8ab7b95e363 | [
"MIT"
] | null | null | null | mix.exs | the-shank/extika | 1e5b58caad8976194b5b63470124f8ab7b95e363 | [
"MIT"
] | null | null | null | defmodule ExTika.Mixfile do
use Mix.Project
def project do
[
app: :extika,
description: "Wrapper around Apache Tika",
version: "0.0.3",
package: package(),
elixir: "~> 1.1",
compilers: [:tika | Mix.compilers],
build_embedded: Mix.env == :prod,
start_permanent: Mi... | 24.083682 | 80 | 0.605629 |
73014570480b1ba0721616164c843e533267556e | 2,271 | exs | Elixir | 20_prefix_compression.exs | Meyhem/hackerrank-fp-elixir | b1b3343d5f05152d37ba92f11955003602e4699b | [
"MIT"
] | null | null | null | 20_prefix_compression.exs | Meyhem/hackerrank-fp-elixir | b1b3343d5f05152d37ba92f11955003602e4699b | [
"MIT"
] | null | null | null | 20_prefix_compression.exs | Meyhem/hackerrank-fp-elixir | b1b3343d5f05152d37ba92f11955003602e4699b | [
"MIT"
] | null | null | null | # echo -e "pizseagtsgevlvwpbshxfwbjijtmslkufgofretehjgpcdedstydokejsnrccnkbruawgjmemfqhwmhjsykrejmmexgrsdlwtaybtnhfcapsylopkthboqkvicgwrvycphqnulnjgfgjlqnhdyfwweyifpxyxrvpnshjrrkmkwrvjjssublanosljhqhppmewuidyqblfcjzkwbhqlljvvcjqthbkpcoquepqzcvbkdlhufbkpiyaqbfblexry\npizseagtsgevlvwpbshxfwbjijtmslkufgofretehjgpcdedsty... | 39.155172 | 805 | 0.667547 |
73017c666c1979d003eb1515b7c75c3137d25b01 | 1,012 | exs | Elixir | mix.exs | timjp87/elixir-libp2p | 19d1174c5614e6b3b0a1bbab21fee846f3bad11b | [
"MIT"
] | 7 | 2019-06-13T20:39:09.000Z | 2020-08-14T13:11:17.000Z | mix.exs | timjp87/elixir-libp2p | 19d1174c5614e6b3b0a1bbab21fee846f3bad11b | [
"MIT"
] | null | null | null | mix.exs | timjp87/elixir-libp2p | 19d1174c5614e6b3b0a1bbab21fee846f3bad11b | [
"MIT"
] | 1 | 2019-07-17T14:10:54.000Z | 2019-07-17T14:10:54.000Z | defmodule Libp2p.MixProject do
use Mix.Project
def project do
[
app: :libp2p,
version: "0.1.1",
elixir: "~> 1.8",
description: description(),
package: package(),
start_permanent: Mix.env() == :prod,
source_url: "https://github.com/timjp87/elixir-libp2p",
deps: de... | 22 | 115 | 0.574111 |
730185396b04d82d8da13cf16ca41b29d8ddc24b | 7,150 | exs | Elixir | test/four_lucha/game_test.exs | Thomas-Jean/four_lucha | 591627059c02edc3315b5cac2c35eacb821108ff | [
"Apache-2.0"
] | 1 | 2021-02-21T19:15:27.000Z | 2021-02-21T19:15:27.000Z | test/four_lucha/game_test.exs | Thomas-Jean/four_lucha | 591627059c02edc3315b5cac2c35eacb821108ff | [
"Apache-2.0"
] | null | null | null | test/four_lucha/game_test.exs | Thomas-Jean/four_lucha | 591627059c02edc3315b5cac2c35eacb821108ff | [
"Apache-2.0"
] | null | null | null | defmodule FourLucha.GameTest do
use ExUnit.Case, async: true
use ExVCR.Mock, adapter: ExVCR.Adapter.Hackney, options: [clear_mock: true]
ExVCR.Config.filter_url_params(true)
setup_all do
HTTPoison.start()
end
setup do
{status, _cleared} = Cachex.clear(:gb_cache)
status
end
test "response... | 28.373016 | 92 | 0.608811 |
7301cef289d088218915f4913ee43b13dbd136a1 | 2,725 | exs | Elixir | test/protocol/unpack_test.exs | desoulter/smppex | 1c8dbd9673291431b2d329a2cb20134c91857af2 | [
"MIT"
] | 49 | 2019-11-27T00:20:59.000Z | 2022-02-18T17:07:14.000Z | test/protocol/unpack_test.exs | desoulter/smppex | 1c8dbd9673291431b2d329a2cb20134c91857af2 | [
"MIT"
] | 62 | 2016-05-19T17:11:02.000Z | 2019-11-21T16:47:15.000Z | test/protocol/unpack_test.exs | desoulter/smppex | 1c8dbd9673291431b2d329a2cb20134c91857af2 | [
"MIT"
] | 25 | 2016-05-20T14:44:43.000Z | 2019-11-15T14:50:24.000Z | defmodule SMPPEX.Protocol.UnpackTest do
use ExUnit.Case
alias SMPPEX.Protocol.Unpack
test "integer" do
assert {:error, _} = Unpack.integer(<<>>, 1)
assert {:error, _} = Unpack.integer(<<1>>, 2)
assert {:error, _} = Unpack.integer(<<1, 2, 3>>, 4)
assert {:ok, 1, <<2, 3>>} == Unpack.integer(<<1, ... | 36.333333 | 92 | 0.550459 |
7301fac158253891bb00810599299b6b5a230ce2 | 966 | ex | Elixir | lib/spender_web/schema/wish_list_types.ex | LittleKidogo/Budgetinization | eae6dd62208ec7fb43c8c212f40611f8635205d5 | [
"MIT"
] | 2 | 2018-02-27T06:29:59.000Z | 2018-06-09T16:53:49.000Z | lib/spender_web/schema/wish_list_types.ex | LittleKidogo/Budgetinization | eae6dd62208ec7fb43c8c212f40611f8635205d5 | [
"MIT"
] | 94 | 2018-02-22T06:03:19.000Z | 2018-06-28T14:30:31.000Z | lib/spender_web/schema/wish_list_types.ex | LittleKidogo/Budgetinization | eae6dd62208ec7fb43c8c212f40611f8635205d5 | [
"MIT"
] | 1 | 2020-03-04T19:41:06.000Z | 2020-03-04T19:41:06.000Z | defmodule SpenderWeb.Schema.WishListTypes do
use Absinthe.Schema.Notation
@desc "A wishlist item"
object :wish_list_item do
field :location, :string
field :name, :string
field :price, :float
field :qpm, :integer
field :type, :string
field :id, :id
end
@desc "input object for wishlist... | 24.769231 | 52 | 0.691511 |
7301fd0d9b1918bd093fe1993fb1068fd11a2db9 | 1,357 | exs | Elixir | config/test.exs | MNDL-27/midarr-server | b749707a1777205cea2d93349cde2ef922e527ec | [
"MIT"
] | null | null | null | config/test.exs | MNDL-27/midarr-server | b749707a1777205cea2d93349cde2ef922e527ec | [
"MIT"
] | null | null | null | config/test.exs | MNDL-27/midarr-server | b749707a1777205cea2d93349cde2ef922e527ec | [
"MIT"
] | null | null | null | import Config
# Only in tests, remove the complexity from the password hashing algorithm
config :bcrypt_elixir, :log_rounds, 1
# Configure your database
#
# The MIX_TEST_PARTITION environment variable can be used
# to provide built-in test partitioning in CI environment.
# Run `mix help test` for more information.
co... | 34.794872 | 86 | 0.77745 |
730216823d729b7a7db942b6944b064083ed2f01 | 2,771 | ex | Elixir | api/lib/scrumpoker_web/channels/presence.ex | makao95/scrumpoker | de235a049a360612cde23ae5992375cb01a7feba | [
"MIT"
] | 2 | 2020-05-06T14:51:56.000Z | 2020-05-06T14:52:21.000Z | api/lib/scrumpoker_web/channels/presence.ex | makao95/scrumpoker | de235a049a360612cde23ae5992375cb01a7feba | [
"MIT"
] | 4 | 2020-11-18T13:52:06.000Z | 2021-06-17T00:36:52.000Z | api/lib/scrumpoker_web/channels/presence.ex | makao95/scrumpoker | de235a049a360612cde23ae5992375cb01a7feba | [
"MIT"
] | 1 | 2020-11-17T00:36:19.000Z | 2020-11-17T00:36:19.000Z | defmodule ScrumPokerWeb.Presence do
@moduledoc """
Provides presence tracking to channels and processes.
See the [`Phoenix.Presence`](http://hexdocs.pm/phoenix/Phoenix.Presence.html)
docs for more details.
## Usage
Presences can be tracked in your channel after joining:
defmodule ScrumPoker.MyChan... | 36.946667 | 79 | 0.678455 |
7302342162539a8d33daa5ada71e6ab6164ca85c | 112 | exs | Elixir | test/durak_test.exs | mlensment/durak | d28296a230c12c5eb8c21bf8bd31eb384b2d4ddc | [
"MIT"
] | null | null | null | test/durak_test.exs | mlensment/durak | d28296a230c12c5eb8c21bf8bd31eb384b2d4ddc | [
"MIT"
] | null | null | null | test/durak_test.exs | mlensment/durak | d28296a230c12c5eb8c21bf8bd31eb384b2d4ddc | [
"MIT"
] | null | null | null | defmodule DurakTest do
use ExUnit.Case
doctest Durak
test "the truth" do
assert 1 + 1 == 2
end
end
| 12.444444 | 22 | 0.660714 |
730256a57f8d9a7a45eb943ea7729344b2165174 | 2,061 | exs | Elixir | test/tiptap/learnables_test.exs | EasterPeanut/tiptap-editor | cce7766925308fbebf8fc486e4f7609397c0d1fb | [
"MIT"
] | 3 | 2021-08-29T03:06:05.000Z | 2022-01-13T09:29:38.000Z | test/tiptap/learnables_test.exs | EasterPeanut/tiptap-editor | cce7766925308fbebf8fc486e4f7609397c0d1fb | [
"MIT"
] | 15 | 2021-08-23T18:02:30.000Z | 2021-08-30T07:32:38.000Z | test/tiptap/learnables_test.exs | EasterPeanut/tiptap-editor | cce7766925308fbebf8fc486e4f7609397c0d1fb | [
"MIT"
] | null | null | null | defmodule Tiptap.LearnablesTest do
use Tiptap.DataCase
alias Tiptap.Learnables
describe "articles" do
alias Tiptap.Learnables.Article
import Tiptap.LearnablesFixtures
@invalid_attrs %{content: nil, title: nil}
test "list_articles/0 returns all articles" do
article = article_fixture()
... | 33.241935 | 93 | 0.692868 |
730257f07767cd97137d82a4c50d5fded347adf0 | 5,472 | ex | Elixir | apps/game_server/lib/game_server/pong/pong_game_state.ex | powelli13/dara-dots | 728a622e761867ff114c9dbdbf57ff76ab0fb992 | [
"MIT"
] | 6 | 2021-03-25T21:02:28.000Z | 2022-02-10T08:11:28.000Z | apps/game_server/lib/game_server/pong/pong_game_state.ex | powelli13/dara-dots | 728a622e761867ff114c9dbdbf57ff76ab0fb992 | [
"MIT"
] | 20 | 2020-09-02T23:17:29.000Z | 2022-03-27T22:54:20.000Z | apps/game_server/lib/game_server/pong/pong_game_state.ex | powelli13/dara-dots | 728a622e761867ff114c9dbdbf57ff76ab0fb992 | [
"MIT"
] | 2 | 2021-03-25T21:08:15.000Z | 2021-09-25T19:11:36.000Z | defmodule GameServer.PongGameState do
alias __MODULE__
@paddle_right_limit 0.9
@paddle_left_limit 0.0
@paddle_move_step 0.03
# The paddle width is ten percent
# the front end rendering must match this
@paddle_width 0.1
@starting_ball_x 0.5
@starting_ball_y 0.5
@starting_ball_speed 0.02
@starting... | 26.181818 | 77 | 0.656067 |
730260477009c626f67da51a8d5beb75d4626be4 | 2,554 | ex | Elixir | lib/huffman/packer.ex | Tmw/huffman | 837a6d4e13f88d7a5e23998edff4d172523c33f3 | [
"MIT"
] | 5 | 2020-09-06T18:29:51.000Z | 2021-03-13T13:38:34.000Z | lib/huffman/packer.ex | Tmw/huffman | 837a6d4e13f88d7a5e23998edff4d172523c33f3 | [
"MIT"
] | null | null | null | lib/huffman/packer.ex | Tmw/huffman | 837a6d4e13f88d7a5e23998edff4d172523c33f3 | [
"MIT"
] | 1 | 2020-09-06T18:29:54.000Z | 2020-09-06T18:29:54.000Z | defmodule Huffman.Packer do
alias Huffman.{Codebook, Tree}
@moduledoc """
This module will take the encoded tree and data and pack it into a single
binary that has the following format:
+---------+----------+----------+----------+
| header | tree | data | padding |
+---------+----------+------... | 31.925 | 87 | 0.628426 |
73028d4fd6ae4ddfa77138f7a3d451f42c57fb37 | 11,927 | exs | Elixir | test/mix/tasks/phx.gen.json_test.exs | nickurban/phoenix | 116a0d4660248a09886e80da5e36dc6e395723d5 | [
"MIT"
] | 7 | 2021-01-31T04:51:08.000Z | 2022-01-09T06:59:28.000Z | test/mix/tasks/phx.gen.json_test.exs | nickurban/phoenix | 116a0d4660248a09886e80da5e36dc6e395723d5 | [
"MIT"
] | 2 | 2022-02-19T07:30:25.000Z | 2022-02-27T14:12:26.000Z | test/mix/tasks/phx.gen.json_test.exs | nickurban/phoenix | 116a0d4660248a09886e80da5e36dc6e395723d5 | [
"MIT"
] | 2 | 2021-02-06T08:40:23.000Z | 2021-03-20T16:35:47.000Z | Code.require_file "../../../installer/test/mix_helper.exs", __DIR__
defmodule Mix.Tasks.Phx.Gen.JsonTest do
use ExUnit.Case
import MixHelper
alias Mix.Tasks.Phx.Gen
setup do
Mix.Task.clear()
:ok
end
test "invalid mix arguments", config do
in_tmp_project config.test, fn ->
assert_raise M... | 37.271875 | 124 | 0.627148 |
73029c56f6150908bda34d4c2918efde3e760ab6 | 409 | ex | Elixir | test/support/case.ex | dhirajbajaj/link_preview | b500c27b0244ec64563cae80a078c94adb12dec8 | [
"Apache-2.0"
] | null | null | null | test/support/case.ex | dhirajbajaj/link_preview | b500c27b0244ec64563cae80a078c94adb12dec8 | [
"Apache-2.0"
] | null | null | null | test/support/case.ex | dhirajbajaj/link_preview | b500c27b0244ec64563cae80a078c94adb12dec8 | [
"Apache-2.0"
] | null | null | null | defmodule LinkPreview.Case do
use ExUnit.CaseTemplate
using do
quote do
@httparrot "http://localhost:#{Application.get_env(:httparrot, :http_port)}"
@opengraph File.read!("test/support/fixtures/opengraph_example.html")
@html File.read!("test/support/fixtures/html_example.html")
@image_... | 27.266667 | 82 | 0.723716 |
7302dce54528bf689b8565739656277314f4aa6c | 16,797 | exs | Elixir | test/redix_test.exs | procore/redix | 322209c6bb176953e76d190c42889687780badaf | [
"MIT"
] | null | null | null | test/redix_test.exs | procore/redix | 322209c6bb176953e76d190c42889687780badaf | [
"MIT"
] | null | null | null | test/redix_test.exs | procore/redix | 322209c6bb176953e76d190c42889687780badaf | [
"MIT"
] | null | null | null | defmodule RedixTest do
use ExUnit.Case, async: true
import ExUnit.CaptureLog
alias Redix.{
ConnectionError,
Error
}
setup_all do
{:ok, conn} = Redix.start_link()
Redix.command!(conn, ["FLUSHALL"])
Redix.stop(conn)
:ok
end
describe "start_link/2" do
test "specifying a databa... | 32.239923 | 98 | 0.598976 |
7302e9cf608f31b522ab129f23252bd8c05df922 | 3,288 | ex | Elixir | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v14/model/creative_native_ad.ex | ericrwolfe/elixir-google-api | 3dc0f17edd5e2d6843580c16ddae3bf84b664ffd | [
"Apache-2.0"
] | null | null | null | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v14/model/creative_native_ad.ex | ericrwolfe/elixir-google-api | 3dc0f17edd5e2d6843580c16ddae3bf84b664ffd | [
"Apache-2.0"
] | null | null | null | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v14/model/creative_native_ad.ex | ericrwolfe/elixir-google-api | 3dc0f17edd5e2d6843580c16ddae3bf84b664ffd | [
"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... | 36.533333 | 139 | 0.716241 |
73032d8cecd66a00e0e42658b8493fb1e721533e | 3,197 | ex | Elixir | lib/koans/03_numbers.ex | zups/elixir-koans | ac036085be4403421d4aff713f5c4328a5624662 | [
"MIT"
] | null | null | null | lib/koans/03_numbers.ex | zups/elixir-koans | ac036085be4403421d4aff713f5c4328a5624662 | [
"MIT"
] | null | null | null | lib/koans/03_numbers.ex | zups/elixir-koans | ac036085be4403421d4aff713f5c4328a5624662 | [
"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.858209 | 112 | 0.635909 |
73035f768f798856f36a2143d026554962133956 | 2,527 | exs | Elixir | mix.exs | tcitworld/cldr_dates_times | 4b2cff026b135caf840c471c42a0d27c4953e2e4 | [
"Apache-2.0"
] | null | null | null | mix.exs | tcitworld/cldr_dates_times | 4b2cff026b135caf840c471c42a0d27c4953e2e4 | [
"Apache-2.0"
] | null | null | null | mix.exs | tcitworld/cldr_dates_times | 4b2cff026b135caf840c471c42a0d27c4953e2e4 | [
"Apache-2.0"
] | null | null | null | defmodule CldrDatesTimes.Mixfile do
use Mix.Project
@version "2.4.0-rc.0"
def project do
[
app: :ex_cldr_dates_times,
version: @version,
name: "Cldr Dates & Times",
source_url: "https://github.com/elixir-cldr/cldr_dates_times",
docs: docs(),
elixir: "~> 1.8",
descri... | 24.298077 | 95 | 0.574594 |
73037788c0ee469b0de723c30cdd701466b3d84d | 2,139 | ex | Elixir | src/lib/changelog/data/news/news_ad.ex | thenets/docker-chocoquest | 856fa5ff41a5831ed67b1ef865cd8951df5af023 | [
"MIT"
] | 1 | 2018-01-22T20:07:10.000Z | 2018-01-22T20:07:10.000Z | lib/changelog/data/news/news_ad.ex | joebew42/changelog.com | da4ec68d15f3a2b4b6c29033443d7e7afe814d18 | [
"MIT"
] | null | null | null | lib/changelog/data/news/news_ad.ex | joebew42/changelog.com | da4ec68d15f3a2b4b6c29033443d7e7afe814d18 | [
"MIT"
] | null | null | null | defmodule Changelog.NewsAd do
use Changelog.Data
alias Changelog.{Files, NewsIssueAd, NewsSponsorship, Regexp}
schema "news_ads" do
field :url, :string
field :headline, :string
field :story, :string
field :image, Files.Image.Type
field :active, :boolean, default: true
field :newsletter,... | 26.085366 | 102 | 0.680692 |
73038f3402c20e9aa8c233e0b45373d633b4c4a2 | 74 | exs | Elixir | apps/crm_web/test/crm_web/views/layout_view_test.exs | jdambron/phoenix_crm | 6d17280e3a6655990840f4714a338f58b7d0c756 | [
"MIT"
] | null | null | null | apps/crm_web/test/crm_web/views/layout_view_test.exs | jdambron/phoenix_crm | 6d17280e3a6655990840f4714a338f58b7d0c756 | [
"MIT"
] | 1 | 2020-04-06T07:42:36.000Z | 2020-04-06T07:42:36.000Z | apps/crm_web/test/crm_web/views/layout_view_test.exs | jdambron/phoenix_crm | 6d17280e3a6655990840f4714a338f58b7d0c756 | [
"MIT"
] | null | null | null | defmodule CrmWeb.LayoutViewTest do
use CrmWeb.ConnCase, async: true
end
| 18.5 | 34 | 0.810811 |
730399d051ef85e6d1f01c40d9ecce858efb19fb | 357 | exs | Elixir | elixir/emit_log.exs | Diffblue-benchmarks/Rabbitmq-rabbitmq-tutorials | b887f2313a8698bd7b2eb212ea7987eb7d99b6fb | [
"Apache-2.0"
] | 5,584 | 2015-01-01T18:08:07.000Z | 2022-03-30T19:22:09.000Z | elixir/emit_log.exs | jeff9571/rabbitmq-tutorials | 180705662b16063d1983a4a82ebca3c2ec83d8d3 | [
"Apache-2.0"
] | 210 | 2015-01-01T04:34:10.000Z | 2022-03-15T14:18:21.000Z | elixir/emit_log.exs | jeff9571/rabbitmq-tutorials | 180705662b16063d1983a4a82ebca3c2ec83d8d3 | [
"Apache-2.0"
] | 3,682 | 2015-01-02T06:49:40.000Z | 2022-03-30T06:55:06.000Z | {:ok, connection} = AMQP.Connection.open
{:ok, channel} = AMQP.Channel.open(connection)
message =
case System.argv do
[] -> "Hello World!"
words -> Enum.join(words, " ")
end
AMQP.Exchange.declare(channel, "logs", :fanout)
AMQP.Basic.publish(channel, "logs", "", message)
IO.puts " [x] Sent '#{message}'... | 23.8 | 48 | 0.658263 |
7303aa8c1319c668e6941538105226e4b30d0905 | 5,167 | exs | Elixir | test/crawlie/stage/url_manager_test.exs | kianmeng/crawlie | 19883f17a208107927ba14d15312f5a908d5e8ea | [
"MIT"
] | 91 | 2016-12-29T12:31:14.000Z | 2021-09-25T23:09:34.000Z | test/crawlie/stage/url_manager_test.exs | kianmeng/crawlie | 19883f17a208107927ba14d15312f5a908d5e8ea | [
"MIT"
] | 40 | 2016-12-14T00:55:52.000Z | 2022-01-29T08:46:03.000Z | test/crawlie/stage/url_manager_test.exs | kianmeng/crawlie | 19883f17a208107927ba14d15312f5a908d5e8ea | [
"MIT"
] | 10 | 2017-04-06T11:18:10.000Z | 2021-10-30T00:04:09.000Z | defmodule Crawlie.Stage.UrlManagerTest do
use ExUnit.Case
import ExUnit.CaptureLog
alias Crawlie.Page
alias Crawlie.Stage.UrlManager
alias Crawlie.PqueueWrapper, as: PW
alias UrlManager.State
doctest UrlManager
@foo URI.parse("foo")
@pfoo Page.new(@foo)
@bar URI.parse("bar")
@pbar Page.new(@ba... | 31.895062 | 90 | 0.602671 |
7303cf5fcc98b37e578d101c32c1bb88e260dd7e | 1,229 | exs | Elixir | mix.exs | enjolras1205/exrm | b34bdde13ad65e3d3cd9e6f42cf9f378dcca188d | [
"MIT"
] | null | null | null | mix.exs | enjolras1205/exrm | b34bdde13ad65e3d3cd9e6f42cf9f378dcca188d | [
"MIT"
] | null | null | null | mix.exs | enjolras1205/exrm | b34bdde13ad65e3d3cd9e6f42cf9f378dcca188d | [
"MIT"
] | null | null | null | defmodule ReleaseManager.Mixfile do
use Mix.Project
def project do
[ app: :exrm,
version: "1.0.9",
elixir: "~> 1.0",
description: description(),
package: package(),
deps: deps(),
docs: docs(),
test_coverage: [tool: Coverex.Task, coveralls: true]]
end
def applicati... | 23.188679 | 69 | 0.567941 |
7303f917ef0ad9632333155807a2091fa688efa3 | 1,725 | exs | Elixir | test/integration/prefetch_count_2_test.exs | mariosant/ex-tackle | 4b9e47f6a6b02acd275596da1f8aa389888785bc | [
"MIT"
] | null | null | null | test/integration/prefetch_count_2_test.exs | mariosant/ex-tackle | 4b9e47f6a6b02acd275596da1f8aa389888785bc | [
"MIT"
] | null | null | null | test/integration/prefetch_count_2_test.exs | mariosant/ex-tackle | 4b9e47f6a6b02acd275596da1f8aa389888785bc | [
"MIT"
] | null | null | null | defmodule Tackle.ParallelMessageHandling_2_Test do
use ExSpec
alias Support
alias Support.MessageTrace
defmodule TestConsumer do
use Tackle.Consumer,
url: "amqp://localhost",
exchange: "test-prefetch-2-exchange",
routing_key: "prefetch",
service: "prefetch-count-service",
pre... | 26.136364 | 75 | 0.653333 |
73044c5b7ba8af76609712b910ce32c0ac5552fe | 1,391 | ex | Elixir | lib/utils.ex | rramsden/scribe | 4ef506714140da032a76d62b39109cf7a79c9d91 | [
"MIT"
] | 1 | 2016-01-24T11:43:59.000Z | 2016-01-24T11:43:59.000Z | lib/utils.ex | rramsden/scribe | 4ef506714140da032a76d62b39109cf7a79c9d91 | [
"MIT"
] | null | null | null | lib/utils.ex | rramsden/scribe | 4ef506714140da032a76d62b39109cf7a79c9d91 | [
"MIT"
] | null | null | null | defmodule Scribe.Utils do
alias Scribe.Config, as: Config
@moduledoc """
This module contains utility functions used in Scribe
"""
@doc false
defmacro time(name, block) do
quote do
start_ms = timestamp_ms
puts "== Task: #{unquote(name)} started ==================================="
un... | 25.290909 | 122 | 0.608914 |
73045a23f1e54aee321191f99c59796fdf414abf | 900 | ex | Elixir | web/models/user.ex | chillicoder/MyRumbl | 79b5c23c8df2b82da1be22fc35ba20891031df84 | [
"MIT"
] | null | null | null | web/models/user.ex | chillicoder/MyRumbl | 79b5c23c8df2b82da1be22fc35ba20891031df84 | [
"MIT"
] | null | null | null | web/models/user.ex | chillicoder/MyRumbl | 79b5c23c8df2b82da1be22fc35ba20891031df84 | [
"MIT"
] | null | null | null | defmodule Rumbl.User do
use Rumbl.Web, :model
schema "users" do
field :name, :string
field :username, :string
field :password, :string, virtual: true
field :password_hash, :string
has_many :videos, Rumbl.Video
timestamps
end
def changeset(model, params \\ :empty) do
model
|> ca... | 23.684211 | 78 | 0.645556 |
7304b97335d3de337b324eb6029924abde280511 | 1,311 | ex | Elixir | lib/hierbautberlin_web/views/map_route_helpers.ex | HierBautBerlin/website | 91410e7c61c1efad438fe84bf550f87b0056c440 | [
"MIT"
] | 13 | 2021-03-06T12:16:34.000Z | 2022-03-31T09:46:35.000Z | lib/hierbautberlin_web/views/map_route_helpers.ex | HierBautBerlin/website | 91410e7c61c1efad438fe84bf550f87b0056c440 | [
"MIT"
] | 148 | 2021-03-05T12:44:55.000Z | 2022-03-11T12:09:06.000Z | lib/hierbautberlin_web/views/map_route_helpers.ex | HierBautBerlin/website | 91410e7c61c1efad438fe84bf550f87b0056c440 | [
"MIT"
] | 2 | 2021-06-02T14:31:21.000Z | 2022-02-14T08:36:51.000Z | defmodule HierbautberlinWeb.MapRouteHelpers do
alias HierbautberlinWeb.Router.Helpers, as: Routes
alias Hierbautberlin.GeoData
alias Hierbautberlin.GeoData.{GeoItem, NewsItem}
def route_to_map(
conn_or_endpoint,
map_position,
map_zoom,
detail_item \\ nil,
detail_item_typ... | 23.410714 | 89 | 0.633105 |
7304f4c7a4f7723ad4b80a88ae0e57711d825488 | 158 | ex | Elixir | priv/templates/potion.gen.gql_for_model/model_mock.ex | shuv1824/potionx | a5888413b13a520d8ddf79fb26b7483e441737c3 | [
"MIT"
] | 31 | 2021-02-16T20:50:46.000Z | 2022-02-03T10:38:07.000Z | priv/templates/potion.gen.gql_for_model/model_mock.ex | shuv1824/potionx | a5888413b13a520d8ddf79fb26b7483e441737c3 | [
"MIT"
] | 6 | 2021-04-07T21:50:20.000Z | 2022-02-06T21:54:04.000Z | priv/templates/potion.gen.gql_for_model/model_mock.ex | shuv1824/potionx | a5888413b13a520d8ddf79fb26b7483e441737c3 | [
"MIT"
] | 4 | 2021-03-25T17:59:44.000Z | 2021-04-25T16:28:22.000Z | defmodule <%= module_name_data %>.<%= context_name %>.<%= model_name %>Mock do
def run do
<%= mock %>
end
def run_patch do
<%= mock_patch %>
end
end
| 15.8 | 78 | 0.620253 |
7304f8233075ca47ea5c47598594191ba90261ab | 920 | ex | Elixir | backend/lib/getaways_web/resolvers/accounts.ex | abeyonalaja/pragstudio-unpacked-graphql-code | 1b0a79d62b624208ffc85f94c1d59ca3d3dab044 | [
"Unlicense"
] | null | null | null | backend/lib/getaways_web/resolvers/accounts.ex | abeyonalaja/pragstudio-unpacked-graphql-code | 1b0a79d62b624208ffc85f94c1d59ca3d3dab044 | [
"Unlicense"
] | 2 | 2020-07-17T17:34:46.000Z | 2021-03-09T11:31:50.000Z | backend/lib/getaways_web/resolvers/accounts.ex | abeyonalaja/pragstudio-unpacked-graphql-code | 1b0a79d62b624208ffc85f94c1d59ca3d3dab044 | [
"Unlicense"
] | null | null | null | defmodule GetawaysWeb.Resolvers.Accounts do
alias Getaways.Accounts
alias GetawaysWeb.Schema.ChangesetErrors
def signin(_, %{username: username, password: password}, _) do
case Accounts.authenticate(username, password) do
:error ->
{:error, "Whoops, invalid credentials!"}
{:ok, user} ->
... | 23.589744 | 64 | 0.594565 |
7304ff0c38be9f967b07b0839d7482badaa285ef | 984 | ex | Elixir | lib/topo/distance.ex | codabrink/topo | f1ca4b7fe337a67285ee4c65a34fb521b119342c | [
"MIT"
] | null | null | null | lib/topo/distance.ex | codabrink/topo | f1ca4b7fe337a67285ee4c65a34fb521b119342c | [
"MIT"
] | null | null | null | lib/topo/distance.ex | codabrink/topo | f1ca4b7fe337a67285ee4c65a34fb521b119342c | [
"MIT"
] | null | null | null | defmodule Topo.Distance do
@moduledoc false
alias Topo.PointLine
alias Topo.Intersects
@type geo_struct ::
%Geo.Point{}
| %Geo.MultiPoint{}
| %Geo.LineString{}
| %Geo.MultiLineString{}
| %Geo.Polygon{}
| %Geo.MultiPolygon{}
@spec distance(geo_stru... | 25.894737 | 75 | 0.571138 |
73051e13d45de36e54fb065e4a8073e05d1c7327 | 4,005 | ex | Elixir | lib/gen_websocket.ex | ejscunha/gen_websocket | e8d88e00cce7e07079898868e6a10edfb0e3973a | [
"MIT"
] | null | null | null | lib/gen_websocket.ex | ejscunha/gen_websocket | e8d88e00cce7e07079898868e6a10edfb0e3973a | [
"MIT"
] | null | null | null | lib/gen_websocket.ex | ejscunha/gen_websocket | e8d88e00cce7e07079898868e6a10edfb0e3973a | [
"MIT"
] | null | null | null | defmodule GenWebsocket do
@moduledoc ~S"""
A Websocket client for Elixir with a API similar to `:gen_tcp`.
Example of usage where a client is started and connected, then it is used to send and receive
data:
iex> {:ok, client} = GenWebsocket.connect('example.com', 80, [])
iex> :ok = GenWebsocket.sen... | 44.5 | 100 | 0.684644 |
73052766ad69f2d71806d297ae40401536e98e26 | 31,762 | ex | Elixir | lib/phoenix/router.ex | jwarwick/phoenix | 46dccaec5c7b79ab3fa863b2138d5a9eb6b4a34b | [
"MIT"
] | 1 | 2021-06-26T03:57:48.000Z | 2021-06-26T03:57:48.000Z | lib/phoenix/router.ex | jwarwick/phoenix | 46dccaec5c7b79ab3fa863b2138d5a9eb6b4a34b | [
"MIT"
] | 2 | 2022-02-19T07:30:25.000Z | 2022-02-27T14:12:26.000Z | lib/phoenix/router.ex | jwarwick/phoenix | 46dccaec5c7b79ab3fa863b2138d5a9eb6b4a34b | [
"MIT"
] | 1 | 2021-06-22T08:06:06.000Z | 2021-06-22T08:06:06.000Z | defmodule Phoenix.Router do
defmodule NoRouteError do
@moduledoc """
Exception raised when no route is found.
"""
defexception plug_status: 404, message: "no route found", conn: nil, router: nil
def exception(opts) do
conn = Keyword.fetch!(opts, :conn)
router = Keyword.fetch!(opts, ... | 31.200393 | 113 | 0.633997 |
730535ff00ae395aeebe712b2cf29aee32c9bbd4 | 1,015 | exs | Elixir | test/aws/xml_test.exs | salemove/aws-elixir | debdf6482158a71a57636ac664c911e682093395 | [
"Apache-2.0"
] | null | null | null | test/aws/xml_test.exs | salemove/aws-elixir | debdf6482158a71a57636ac664c911e682093395 | [
"Apache-2.0"
] | null | null | null | test/aws/xml_test.exs | salemove/aws-elixir | debdf6482158a71a57636ac664c911e682093395 | [
"Apache-2.0"
] | null | null | null | defmodule AWS.XMLTest do
use ExUnit.Case
@text "__text"
test "decode!/2 handles lists correctly by merging values in a list" do
expected = %{"person" => %{"name" => "foo", "addresses" => %{"address" => ["1", "2"]}}}
input = """
<person>
<name>foo</name>
<addresses>
<address>1</a... | 21.145833 | 94 | 0.53202 |
73053dc3a5fd7bb773fdc6137604dc4e2f925dcc | 3,212 | ex | Elixir | lib/bitcoin_simulator/bitcoin_core/network.ex | sidharth-shridhar/Bitcoin-Miner-Simulation | 2789dc8fe5f65269789540f675fac682e431e518 | [
"MIT"
] | null | null | null | lib/bitcoin_simulator/bitcoin_core/network.ex | sidharth-shridhar/Bitcoin-Miner-Simulation | 2789dc8fe5f65269789540f675fac682e431e518 | [
"MIT"
] | null | null | null | lib/bitcoin_simulator/bitcoin_core/network.ex | sidharth-shridhar/Bitcoin-Miner-Simulation | 2789dc8fe5f65269789540f675fac682e431e518 | [
"MIT"
] | null | null | null | defmodule BitcoinSimulator.BitcoinCore.Network do
use Timex
alias BitcoinSimulator.BitcoinCore.Blockchain
alias BitcoinSimulator.Simulation.Tracker
alias BitcoinSimulator.Const
defmodule MessageRecord do
defstruct [
transactions: Map.new(),
blocks: Map.new()
]
end
# APIs
def get_... | 31.80198 | 163 | 0.665318 |
730546d76ef6c375430bdb69677bc71cc7d64de1 | 987 | ex | Elixir | lib/rockelivery/order/order.ex | joabehenrique/rockelivery | 02f83fe99df8e27d4e2a6270fecb39a521f2ceaf | [
"MIT"
] | null | null | null | lib/rockelivery/order/order.ex | joabehenrique/rockelivery | 02f83fe99df8e27d4e2a6270fecb39a521f2ceaf | [
"MIT"
] | null | null | null | lib/rockelivery/order/order.ex | joabehenrique/rockelivery | 02f83fe99df8e27d4e2a6270fecb39a521f2ceaf | [
"MIT"
] | null | null | null | defmodule Rockelivery.Order.Order do
use Ecto.Schema
import Ecto.Changeset
alias Rockelivery.Item.Item
alias Rockelivery.User.User
@primary_key {:id, :binary_id, autogenerate: true}
@foreign_key_type :binary_id
@required_params [:address, :comments, :payment_method, :user_id]
@payment_categories [:mo... | 28.2 | 94 | 0.705167 |
73056002a5c0b4c785089b5aa1f6d2bd61abb5b8 | 503 | exs | Elixir | priv/repo/migrations/20170227040522_rename_user_food_packages_to_user_orders.exs | neilfulwiler/open_pantry | 4b705f2282c7b2365a784503c9f1bdd34c741798 | [
"MIT"
] | 41 | 2017-10-04T00:33:46.000Z | 2021-04-09T01:33:34.000Z | priv/repo/migrations/20170227040522_rename_user_food_packages_to_user_orders.exs | openpantry/open_pantry | 27d898a65dd6f44b325f48d41bc448bb486d9c6f | [
"MIT"
] | 74 | 2017-09-20T03:36:17.000Z | 2018-11-20T20:46:16.000Z | priv/repo/migrations/20170227040522_rename_user_food_packages_to_user_orders.exs | neilfulwiler/open_pantry | 4b705f2282c7b2365a784503c9f1bdd34c741798 | [
"MIT"
] | 12 | 2017-10-04T10:02:49.000Z | 2021-12-28T22:57:20.000Z | defmodule OpenPantry.Repo.Migrations.RenameUserFoodPackagesToUserOrders do
use Ecto.Migration
def change do
rename table(:user_food_packages), to: table(:user_orders)
drop index(:stock_distributions, [:user_food_package_id, :stock_id], unique: true, name: :unique_stock_per_package)
rename table(:stock_... | 45.727273 | 119 | 0.789264 |
730567507f9c8635bf7d6076bf30967a1387b935 | 1,655 | ex | Elixir | clients/display_video/lib/google_api/display_video/v1/model/asset_association.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/asset_association.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/asset_association.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 33.1 | 107 | 0.726284 |
73057e400d1273499b3493d39f15c12eaade8d20 | 1,224 | ex | Elixir | testData/org/elixir_lang/parser_definition/matched_dot_operator_call_operation/unqualified_no_parentheses_many_arguments_call_parsing_test_case/AtNonNumericOperation.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 1,668 | 2015-01-03T05:54:27.000Z | 2022-03-25T08:01:20.000Z | testData/org/elixir_lang/parser_definition/matched_dot_operator_call_operation/unqualified_no_parentheses_many_arguments_call_parsing_test_case/AtNonNumericOperation.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 2,018 | 2015-01-01T22:43:39.000Z | 2022-03-31T20:13:08.000Z | testData/org/elixir_lang/parser_definition/matched_dot_operator_call_operation/unqualified_no_parentheses_many_arguments_call_parsing_test_case/AtNonNumericOperation.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 145 | 2015-01-15T11:37:16.000Z | 2021-12-22T05:51:02.000Z | @non_numeric.and unqualified positional, key: value
@non_numeric.&& unqualified positional, key: value
@non_numeric.|> unqualified positional, key: value
@non_numeric.@ unqualified positional, key: value
@non_numeric.& unqualified positional, key: value
@non_numeric.== unqualified positional, key: value
@non_numeric.+ ... | 48.96 | 53 | 0.801471 |
73058935696313e93c785d455409a5f4d72e22df | 29 | ex | Elixir | code examples/example-9-16.ex | kujua/erlang-elixir-imperative-bookcompanion | 7bc9f033bacd0f8744ec6bcee3932794d594fe69 | [
"Apache-2.0"
] | 8 | 2016-08-14T12:35:16.000Z | 2021-01-26T04:05:31.000Z | code examples/example-9-16.ex | kujua/erlang-elixir-imperative-bookcompanion | 7bc9f033bacd0f8744ec6bcee3932794d594fe69 | [
"Apache-2.0"
] | null | null | null | code examples/example-9-16.ex | kujua/erlang-elixir-imperative-bookcompanion | 7bc9f033bacd0f8744ec6bcee3932794d594fe69 | [
"Apache-2.0"
] | 5 | 2016-08-18T22:12:19.000Z | 2020-02-17T18:52:41.000Z | "Recipient received #{what}"
| 14.5 | 28 | 0.724138 |
730593bf8c8300532351f84870b26086d4f8322b | 368 | ex | Elixir | lib/web/controllers/mssp_controller.ex | sb8244/grapevine | effaaa01294d30114090c20f9cc40b8665d834f2 | [
"MIT"
] | 107 | 2018-10-05T18:20:32.000Z | 2022-02-28T04:02:50.000Z | lib/web/controllers/mssp_controller.ex | sb8244/grapevine | effaaa01294d30114090c20f9cc40b8665d834f2 | [
"MIT"
] | 33 | 2018-10-05T14:11:18.000Z | 2022-02-10T22:19:18.000Z | lib/web/controllers/mssp_controller.ex | sb8244/grapevine | effaaa01294d30114090c20f9cc40b8665d834f2 | [
"MIT"
] | 18 | 2019-02-03T03:08:20.000Z | 2021-12-28T04:29:36.000Z | defmodule Web.MSSPController do
use Web, :controller
def index(conn, _params) do
conn
|> assign(:title, "MSSP Check - Grapevine")
|> assign(:open_graph_title, "MSSP Check")
|> assign(:open_graph_description, "Check your game's MSSP data with Grapevine")
|> assign(:open_graph_url, mssp_url(conn,... | 28.307692 | 84 | 0.679348 |
7305d6cc822000b53fcc2fc0a14f35e4bcf08489 | 1,631 | ex | Elixir | lib/credo/service/commands.ex | sevenseacat/credo | 48837401040d9c2340b5fb9c7d786d31f89f6426 | [
"MIT"
] | 13 | 2018-09-19T21:03:29.000Z | 2022-01-27T04:06:32.000Z | lib/credo/service/commands.ex | sevenseacat/credo | 48837401040d9c2340b5fb9c7d786d31f89f6426 | [
"MIT"
] | 1 | 2020-05-26T04:16:57.000Z | 2020-05-26T04:16:57.000Z | lib/credo/service/commands.ex | sevenseacat/credo | 48837401040d9c2340b5fb9c7d786d31f89f6426 | [
"MIT"
] | 3 | 2020-05-21T04:32:08.000Z | 2021-07-28T05:14:01.000Z | defmodule Credo.Service.Commands do
use GenServer
@command_map %{
"categories" => Credo.CLI.Command.Categories,
"explain" => Credo.CLI.Command.Explain,
"gen.check" => Credo.CLI.Command.GenCheck,
"gen.config" => Credo.CLI.Command.GenConfig,
"help" => Credo.CLI.Command.Help,
"list" => Credo.C... | 25.888889 | 77 | 0.680564 |
7305de9a162145625b9a37a2135639e8049f1e47 | 999 | exs | Elixir | test/gandalf/authentication/bearer_test.exs | pragmaticivan/gandalf | d6f79489104f3b3544247856bb93679f47ec9e0d | [
"Apache-2.0",
"MIT"
] | 1 | 2018-05-01T01:34:56.000Z | 2018-05-01T01:34:56.000Z | test/gandalf/authentication/bearer_test.exs | pragmaticivan/gandalf | d6f79489104f3b3544247856bb93679f47ec9e0d | [
"Apache-2.0",
"MIT"
] | null | null | null | test/gandalf/authentication/bearer_test.exs | pragmaticivan/gandalf | d6f79489104f3b3544247856bb93679f47ec9e0d | [
"Apache-2.0",
"MIT"
] | null | null | null | defmodule Gandalf.Authentication.BearerTest do
use ExUnit.Case
use Gandalf.RepoBase
use Gandalf.DB.Test.DataCase
import Gandalf.Factory
alias Gandalf.Authentication.Bearer, as: BearerAuthentication
@access_token_value "access_token_1234"
setup do
user = insert(:user)
insert(:access_token, %{valu... | 28.542857 | 87 | 0.744745 |
7305f176201b34c6fb376437a5510b3037ce3de9 | 1,388 | ex | Elixir | test/support/data_case.ex | Youthink/short_url | b42450e8ea4ef8ea387291a73e3435eaa8fbfccd | [
"MIT"
] | 170 | 2018-02-06T05:04:25.000Z | 2021-01-27T07:45:25.000Z | test/support/data_case.ex | imfycc/short_url | b42450e8ea4ef8ea387291a73e3435eaa8fbfccd | [
"MIT"
] | 3 | 2021-03-09T01:06:36.000Z | 2022-02-09T22:57:27.000Z | test/support/data_case.ex | Youthink/short_url | b42450e8ea4ef8ea387291a73e3435eaa8fbfccd | [
"MIT"
] | 26 | 2018-02-26T06:53:10.000Z | 2020-11-08T23:02:13.000Z | defmodule ShortUrl.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 tes... | 25.703704 | 77 | 0.680836 |
730605e784983217f556896ab61104a6692c2ab7 | 947 | exs | Elixir | example/server/config/config.exs | vip30/vue-phoenix | fe85a5f7c10fbc92c0f0b4e3cfd9d7752d4e5235 | [
"MIT"
] | 9 | 2019-01-21T07:16:44.000Z | 2022-02-18T05:53:15.000Z | example/server/config/config.exs | vip30/vue-phoenix | fe85a5f7c10fbc92c0f0b4e3cfd9d7752d4e5235 | [
"MIT"
] | null | null | null | example/server/config/config.exs | vip30/vue-phoenix | fe85a5f7c10fbc92c0f0b4e3cfd9d7752d4e5235 | [
"MIT"
] | 2 | 2020-07-13T12:44:14.000Z | 2021-09-26T14:38:17.000Z | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
#
# This configuration file is loaded before any dependency and
# is restricted to this project.
# General application configuration
use Mix.Config
# Configures the endpoint
config :event, EventWe... | 33.821429 | 86 | 0.770855 |
730631bce04f6e2d61a0ea31a533bc6ba4c103c2 | 1,795 | ex | Elixir | lib/commanded/middleware/logger.ex | octowombat/commanded | 79a1965e276d3369dcf70ae65ef904d7e59f4a6a | [
"MIT"
] | 1,220 | 2017-10-31T10:56:40.000Z | 2022-03-31T17:40:19.000Z | lib/commanded/middleware/logger.ex | octowombat/commanded | 79a1965e276d3369dcf70ae65ef904d7e59f4a6a | [
"MIT"
] | 294 | 2017-11-03T10:33:41.000Z | 2022-03-24T08:36:42.000Z | lib/commanded/middleware/logger.ex | octowombat/commanded | 79a1965e276d3369dcf70ae65ef904d7e59f4a6a | [
"MIT"
] | 208 | 2017-11-03T10:56:47.000Z | 2022-03-14T05:49:38.000Z | defmodule Commanded.Middleware.Logger do
@moduledoc """
A `Commanded.Middleware` that logs each stage of the command dispatch using
the Elixir `Logger`:
- Before dispatch.
- After successful dispatch.
- After failed dispatch.
"""
@behaviour Commanded.Middleware
alias Commanded.Middleware.Pipeline
... | 28.046875 | 129 | 0.689136 |
730635855e3a1ac15d068397c84b131687f94733 | 1,074 | exs | Elixir | mix.exs | mpugach/phoenix_guides | fc351b587ee8eaf5080ec25c67b3eef8c3814ce7 | [
"MIT"
] | null | null | null | mix.exs | mpugach/phoenix_guides | fc351b587ee8eaf5080ec25c67b3eef8c3814ce7 | [
"MIT"
] | null | null | null | mix.exs | mpugach/phoenix_guides | fc351b587ee8eaf5080ec25c67b3eef8c3814ce7 | [
"MIT"
] | null | null | null | defmodule PhoenixGuides.Mixfile do
use Mix.Project
@version "1.3.0-dev"
def project do
[app: :phoenix_guides,
name: "Phoenix Guides",
version: @version,
elixir: "~> 1.3",
deps: deps(),
preferred_cli_env: ["docs.watch": :docs, docs: :docs],
docs: [source_ref: "v#{@version}",
... | 28.263158 | 253 | 0.585661 |
73064201f05994177dc4a59fcc2a2125904360a2 | 2,335 | ex | Elixir | clients/cloud_functions/lib/google_api/cloud_functions/v1/model/location.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/cloud_functions/lib/google_api/cloud_functions/v1/model/location.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/cloud_functions/lib/google_api/cloud_functions/v1/model/location.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... | 39.576271 | 186 | 0.69636 |
73066160d4d2c73396807094a1c8dee80a667114 | 857 | ex | Elixir | lib/nomad_client/model/object_diff.ex | mrmstn/nomad_client | a586022e5eb4d166acba08b55b198ec079d4b118 | [
"Apache-2.0"
] | 8 | 2021-09-04T21:22:53.000Z | 2022-02-22T22:48:38.000Z | lib/nomad_client/model/object_diff.ex | mrmstn/nomad_client | a586022e5eb4d166acba08b55b198ec079d4b118 | [
"Apache-2.0"
] | null | null | null | lib/nomad_client/model/object_diff.ex | mrmstn/nomad_client | a586022e5eb4d166acba08b55b198ec079d4b118 | [
"Apache-2.0"
] | null | null | null | # NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
# https://openapi-generator.tech
# Do not edit the class manually.
defmodule NomadClient.Model.ObjectDiff do
@moduledoc """
"""
@derive [Poison.Encoder]
defstruct [
:Type,
:Name,
:Fields,
:Objects
]
... | 24.485714 | 91 | 0.648775 |
730680a7f958eb1ea2ee026fd784fefa94a58f21 | 1,603 | ex | Elixir | test/support/model_case.ex | rzalamena/pxscratch | 19d3db64b52a6d034d818482c88421f697264b56 | [
"0BSD"
] | 1 | 2016-06-02T21:21:42.000Z | 2016-06-02T21:21:42.000Z | test/support/model_case.ex | rzalamena/pxscratch | 19d3db64b52a6d034d818482c88421f697264b56 | [
"0BSD"
] | null | null | null | test/support/model_case.ex | rzalamena/pxscratch | 19d3db64b52a6d034d818482c88421f697264b56 | [
"0BSD"
] | null | null | null | defmodule Pxscratch.ModelCase do
@moduledoc """
This module defines the test case to be used by
model tests.
You may define functions here to be used as helpers in
your model tests. See `errors_on/2`'s definition as reference.
Finally, if the test case interacts with the database,
it cannot be async. Fo... | 25.854839 | 84 | 0.686213 |
730682f896cc15287746b3cf676413c74fc18e0c | 1,288 | ex | Elixir | lib/mix_audit/formatting/human.ex | wolcanism/mix_audit | 5217f4be56519dd67dba0084929d1ed50517bc18 | [
"BSD-3-Clause"
] | 173 | 2020-03-04T14:04:46.000Z | 2022-03-26T21:50:27.000Z | lib/mix_audit/formatting/human.ex | wolcanism/mix_audit | 5217f4be56519dd67dba0084929d1ed50517bc18 | [
"BSD-3-Clause"
] | 5 | 2020-03-09T17:04:19.000Z | 2021-12-29T17:38:20.000Z | lib/mix_audit/formatting/human.ex | wolcanism/mix_audit | 5217f4be56519dd67dba0084929d1ed50517bc18 | [
"BSD-3-Clause"
] | 6 | 2020-03-11T21:43:48.000Z | 2021-12-21T19:20:48.000Z | defmodule MixAudit.Formatting.Human do
def format(report) do
if report.pass do
colorized_text("No vulnerabilities found.", :green)
else
"""
#{map_vulnerabilities(report.vulnerabilities)}
#{colorized_text("Vulnerabilities found!", :red)}
"""
end
end
defp map_vulnerabiliti... | 32.2 | 109 | 0.677795 |
7306a419a7701f34b41b57fab08ad49608e60909 | 852 | exs | Elixir | mix.exs | kevlar1818/mines | 2603c651a86a12f158df34a30e7b7fe138fc660e | [
"MIT"
] | 45 | 2017-05-17T15:24:57.000Z | 2020-07-28T01:10:02.000Z | mix.exs | kevlar1818/mines | 2603c651a86a12f158df34a30e7b7fe138fc660e | [
"MIT"
] | null | null | null | mix.exs | kevlar1818/mines | 2603c651a86a12f158df34a30e7b7fe138fc660e | [
"MIT"
] | 3 | 2017-08-19T12:04:16.000Z | 2018-03-08T04:10:58.000Z | defmodule Mines.Mixfile do
use Mix.Project
def project do
[app: :mines,
version: "0.0.1",
elixir: "~> 1.4",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps(),
escript: escript()]
end
# Configuration for the OTP application
#
# Type "mix hel... | 20.780488 | 77 | 0.598592 |
7306afdb04998c14b210e472a33fb97daa2b3674 | 53,251 | exs | Elixir | lib/elixir/test/elixir/enum_test.exs | Zanadar/elixir | ef967b3e07f189b9cae37d5b12bd7258619b3e15 | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/enum_test.exs | Zanadar/elixir | ef967b3e07f189b9cae37d5b12bd7258619b3e15 | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/enum_test.exs | Zanadar/elixir | ef967b3e07f189b9cae37d5b12bd7258619b3e15 | [
"Apache-2.0"
] | null | null | null | Code.require_file "test_helper.exs", __DIR__
defmodule EnumTest do
use ExUnit.Case, async: true
doctest Enum
defp assert_runs_enumeration_only_once(enum_fun) do
enumerator = Stream.map([:element], fn element ->
send(self(), element)
element
end)
enum_fun.(enumerator)
assert_received... | 34.201028 | 123 | 0.515033 |
7306db8555a05a94bf92ac27deeb4fe926967aec | 899 | ex | Elixir | apps/testchain/lib/testchain/evm/details.ex | makerdao/qa_backend_gateway | 38e9a3f3f4b66212f1ee9d38b3b698a2a1f9a809 | [
"Apache-2.0"
] | 1 | 2020-10-23T19:25:27.000Z | 2020-10-23T19:25:27.000Z | apps/testchain/lib/testchain/evm/details.ex | makerdao/qa_backend_gateway | 38e9a3f3f4b66212f1ee9d38b3b698a2a1f9a809 | [
"Apache-2.0"
] | 5 | 2019-01-11T11:48:08.000Z | 2019-01-16T17:29:23.000Z | apps/testchain/lib/testchain/evm/details.ex | makerdao/qa_backend_gateway | 38e9a3f3f4b66212f1ee9d38b3b698a2a1f9a809 | [
"Apache-2.0"
] | 7 | 2019-10-09T05:49:52.000Z | 2022-03-23T16:48:45.000Z | defmodule Staxx.Testchain.EVM.Details do
@moduledoc """
EVM Details
Contain list of EVM operational values
"""
alias Staxx.Testchain
alias Staxx.Testchain.EVM.Account
@type t :: %__MODULE__{
id: Testchain.evm_id(),
coinbase: binary,
accounts: [Account.t()],
rpc_ur... | 23.657895 | 74 | 0.581758 |
730729f8ebbb2fd0b2b549211a906967447d9e74 | 537 | exs | Elixir | examples/elixir/get_started/03-routing-over-transport-initiator.exs | MichalDolata/ockam | 99046a3efe87fb45056a724dddbff288cb63ddfc | [
"Apache-2.0"
] | null | null | null | examples/elixir/get_started/03-routing-over-transport-initiator.exs | MichalDolata/ockam | 99046a3efe87fb45056a724dddbff288cb63ddfc | [
"Apache-2.0"
] | null | null | null | examples/elixir/get_started/03-routing-over-transport-initiator.exs | MichalDolata/ockam | 99046a3efe87fb45056a724dddbff288cb63ddfc | [
"Apache-2.0"
] | null | null | null | ["install.exs"] |> Enum.map(&Code.require_file/1)
alias Ockam.Transport.TCPAddress
Ockam.Transport.TCP.start()
# Register this process as address "app".
Ockam.Node.register_address("app", self())
# Prepare our message.
message = %{onward_route: [TCPAddress.new("localhost", 4000), "echoer"], return_route: ["app"], pa... | 28.263158 | 120 | 0.722533 |
730751c8bae04a94cf0d0924a7efae2b4ae4a22d | 2,332 | exs | Elixir | test/oli/delivery/page/page_context_test.exs | candert1/oli-torus | b7408f7d7c04cc3e9cf537873d98c3a586ec3a66 | [
"MIT"
] | null | null | null | test/oli/delivery/page/page_context_test.exs | candert1/oli-torus | b7408f7d7c04cc3e9cf537873d98c3a586ec3a66 | [
"MIT"
] | null | null | null | test/oli/delivery/page/page_context_test.exs | candert1/oli-torus | b7408f7d7c04cc3e9cf537873d98c3a586ec3a66 | [
"MIT"
] | null | null | null | defmodule Oli.Delivery.Page.PageContextTest do
use Oli.DataCase
alias Oli.Delivery.Page.PageContext
describe "page context" do
setup do
content = %{
"stem" => "1",
"authoring" => %{
"parts" => [
%{
"id" => "1",
"responses" => [],
... | 27.116279 | 94 | 0.536449 |
73076474054d8765cc313ea30c55ad35cbdf3267 | 2,419 | ex | Elixir | lib/advent_of_code/day-11/solution.ex | woojiahao/advent-of-code-2021 | 200737bf708fd7277b6dce517f30dcfcd02c4e57 | [
"MIT"
] | null | null | null | lib/advent_of_code/day-11/solution.ex | woojiahao/advent-of-code-2021 | 200737bf708fd7277b6dce517f30dcfcd02c4e57 | [
"MIT"
] | null | null | null | lib/advent_of_code/day-11/solution.ex | woojiahao/advent-of-code-2021 | 200737bf708fd7277b6dce517f30dcfcd02c4e57 | [
"MIT"
] | null | null | null | defmodule AdventOfCode.DayElevenSolution do
@cap 9
@coords for r <- 0..@cap, c <- 0..@cap, do: {r, c}
@neighbors @coords
|> Map.new(fn {r, c} ->
n =
[
{r - 1, c},
{r + 1, c},
{r, c - 1},
{r, c ... | 25.197917 | 93 | 0.447292 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.