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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
acbddc7dc71aeb85a17461240d3804dc3be46eb7 | 1,580 | ex | Elixir | apps/ewallet/lib/ewallet/permissions/bouncer/scopes/api_key_scope.ex | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 322 | 2018-02-28T07:38:44.000Z | 2020-05-27T23:09:55.000Z | apps/ewallet/lib/ewallet/permissions/bouncer/scopes/api_key_scope.ex | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 643 | 2018-02-28T12:05:20.000Z | 2020-05-22T08:34:38.000Z | apps/ewallet/lib/ewallet/permissions/bouncer/scopes/api_key_scope.ex | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 63 | 2018-02-28T10:57:06.000Z | 2020-05-27T23:10:38.000Z | # Copyright 2018-2019 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 ... | 30.980392 | 89 | 0.717722 |
acbdeaaba4970b536bef25adde2c7b1eb8af34fc | 1,471 | ex | Elixir | clients/plus_domains/lib/google_api/plus_domains/v1/model/activity_object_actor_image.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/plus_domains/lib/google_api/plus_domains/v1/model/activity_object_actor_image.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/plus_domains/lib/google_api/plus_domains/v1/model/activity_object_actor_image.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 31.297872 | 114 | 0.743032 |
acbe052771f860dd7c7008239a7f5372e72451e7 | 15,506 | ex | Elixir | lib/ecto_job/job_queue.ex | lukyanov/ecto_job | 8aac17ff6295ed5f98058cca4bffb1dd5177c290 | [
"MIT"
] | null | null | null | lib/ecto_job/job_queue.ex | lukyanov/ecto_job | 8aac17ff6295ed5f98058cca4bffb1dd5177c290 | [
"MIT"
] | null | null | null | lib/ecto_job/job_queue.ex | lukyanov/ecto_job | 8aac17ff6295ed5f98058cca4bffb1dd5177c290 | [
"MIT"
] | null | null | null | defmodule EctoJob.JobQueue do
@moduledoc """
Mixin for defining an Ecto schema for a Job Queue table in the database.
## Options
* `:table_name` - (_required_) The name of the job table in the database.
* `:schema_prefix` - (_optional_) The schema prefix for the table.
* `:timestamps_opts` - (_optional_) ... | 32.170124 | 138 | 0.614343 |
acbe08ca8b9e53143de6f452a7f19b2c1d2a2d9b | 1,029 | exs | Elixir | organizing-a-project/issues/mix.exs | sfat/programming-elixir-exercises | 19e62e3f3344ec044e1eb1b39b195f4dad3dff1c | [
"Apache-2.0"
] | 1 | 2019-02-17T11:54:17.000Z | 2019-02-17T11:54:17.000Z | organizing-a-project/issues/mix.exs | sfat/programming-elixir-exercises | 19e62e3f3344ec044e1eb1b39b195f4dad3dff1c | [
"Apache-2.0"
] | null | null | null | organizing-a-project/issues/mix.exs | sfat/programming-elixir-exercises | 19e62e3f3344ec044e1eb1b39b195f4dad3dff1c | [
"Apache-2.0"
] | null | null | null | defmodule Issues.MixProject do
use Mix.Project
def project do
[
app: :issues,
escript: escript_config(),
version: "0.0.1",
name: "Issues",
source_url: "https://github.com/sfat/programming-elixir/issues",
elixir: "~> 1.7",
start_permanent: Mix.env() == :prod,
test... | 21.4375 | 70 | 0.550049 |
acbe1374bb972994f0cb8265e7db31d6739d25a8 | 9 | ex | Elixir | testData/org/elixir_lang/parser_definition/literal_words_heredoc_parsing_test_case/Minimal.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/literal_words_heredoc_parsing_test_case/Minimal.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/literal_words_heredoc_parsing_test_case/Minimal.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 145 | 2015-01-15T11:37:16.000Z | 2021-12-22T05:51:02.000Z | ~W"""
""" | 4.5 | 5 | 0.111111 |
acbe7c6908b93907b4179771a6da83f359f9c7a9 | 1,700 | ex | Elixir | clients/analytics/lib/google_api/analytics/v3/model/goal_visit_time_on_site_details.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/analytics/lib/google_api/analytics/v3/model/goal_visit_time_on_site_details.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/analytics/lib/google_api/analytics/v3/model/goal_visit_time_on_site_details.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 34 | 130 | 0.74 |
acbe80c986828a9d3e9796a656f75f5c48f95877 | 644 | ex | Elixir | apps/core/lib/core/employee_requests/employee_request.ex | ehealth-ua/ehealth.api | 4ffe26a464fe40c95fb841a4aa2e147068f65ca2 | [
"Apache-2.0"
] | 8 | 2019-06-14T11:34:49.000Z | 2021-08-05T19:14:24.000Z | apps/core/lib/core/employee_requests/employee_request.ex | edenlabllc/ehealth.api.public | 4ffe26a464fe40c95fb841a4aa2e147068f65ca2 | [
"Apache-2.0"
] | 1 | 2019-07-08T15:20:22.000Z | 2019-07-08T15:20:22.000Z | apps/core/lib/core/employee_requests/employee_request.ex | ehealth-ua/ehealth.api | 4ffe26a464fe40c95fb841a4aa2e147068f65ca2 | [
"Apache-2.0"
] | 6 | 2018-05-11T13:59:32.000Z | 2022-01-19T20:15:22.000Z | defmodule Core.EmployeeRequests.EmployeeRequest do
@moduledoc false
use Ecto.Schema
@primary_key {:id, :binary_id, autogenerate: true}
@derive {Jason.Encoder, except: [:__meta__]}
@status_new "NEW"
@status_approved "APPROVED"
@status_rejected "REJECTED"
@status_expired "EXPIRED"
def status(:new),... | 23 | 52 | 0.717391 |
acbe8c2498cfef5c2ca3a8c0b5e526507773efab | 668 | exs | Elixir | mix.exs | trustatom-oss/oauth2c | 342372624529c9e92897915c85b12418fb1f41b8 | [
"MIT"
] | null | null | null | mix.exs | trustatom-oss/oauth2c | 342372624529c9e92897915c85b12418fb1f41b8 | [
"MIT"
] | null | null | null | mix.exs | trustatom-oss/oauth2c | 342372624529c9e92897915c85b12418fb1f41b8 | [
"MIT"
] | null | null | null | defmodule OAuth2.Mixfile do
use Mix.Project
def project do
[
app: :oauth2c,
version: "0.0.3",
elixir: "~> 1.0",
deps: deps,
package: package,
description: "An Elixir OAuth 2.0 Client Library"
]
end
def application do
[applications: [:httpoison]]
end
defp de... | 18.054054 | 60 | 0.511976 |
acbe99105725e69c69b2f8359f1984b92ba3c52d | 2,152 | ex | Elixir | lib/schocken/game/ranking.ex | jannikbecher/schocken | ea45d27dbbbbfa540aebeba55f82f420c7ddda8f | [
"MIT"
] | null | null | null | lib/schocken/game/ranking.ex | jannikbecher/schocken | ea45d27dbbbbfa540aebeba55f82f420c7ddda8f | [
"MIT"
] | null | null | null | lib/schocken/game/ranking.ex | jannikbecher/schocken | ea45d27dbbbbfa540aebeba55f82f420c7ddda8f | [
"MIT"
] | null | null | null | defmodule Schocken.Game.Ranking do
@moduledoc false
alias Schocken.Game.Player
# Hand ranks
@schock_out 5
@schock 4
@general 3
@straight 2
@house_number 1
@doc """
Evaluates the current toss and returns {rank, high, tries}
"""
@spec evaluate(Player.current_toss()) :: Player.current_toss()
d... | 25.619048 | 93 | 0.612918 |
acbec84c8ef5cdee1a45096ea4883d87e4893781 | 17,125 | exs | Elixir | test/example_16/accounts_test.exs | pzingg/phoenix_16_example | 7f4160de837229101e18a4e1cc97a00f4af5aaa7 | [
"MIT"
] | null | null | null | test/example_16/accounts_test.exs | pzingg/phoenix_16_example | 7f4160de837229101e18a4e1cc97a00f4af5aaa7 | [
"MIT"
] | null | null | null | test/example_16/accounts_test.exs | pzingg/phoenix_16_example | 7f4160de837229101e18a4e1cc97a00f4af5aaa7 | [
"MIT"
] | null | null | null | defmodule Example16.AccountsTest do
use Example16.DataCase
alias Example16.Accounts
import Example16.AccountsFixtures
alias Example16.Accounts.{User, UserToken}
describe "get_user_by_email/1" do
test "does not return the user if the email does not exist" do
refute Accounts.get_user_by_email("unkn... | 33.644401 | 97 | 0.659854 |
acbecbfe524d2eba4131dac3891aedbbd8a3835e | 6,688 | exs | Elixir | apps/re/test/seller_leads/duplicity_checker_test.exs | ruby2elixir/emcasa-backend | 70d7f4f233555417941ffa6ada84cf8740c21dd2 | [
"MIT"
] | 4 | 2019-11-01T16:29:31.000Z | 2020-10-10T21:20:12.000Z | apps/re/test/seller_leads/duplicity_checker_test.exs | eduardomartines/emcasa-backend | 70d7f4f233555417941ffa6ada84cf8740c21dd2 | [
"MIT"
] | null | null | null | apps/re/test/seller_leads/duplicity_checker_test.exs | eduardomartines/emcasa-backend | 70d7f4f233555417941ffa6ada84cf8740c21dd2 | [
"MIT"
] | 5 | 2019-11-04T21:25:45.000Z | 2020-02-13T23:49:36.000Z | defmodule Re.SellerLead.DuplicityChecker do
use Re.ModelCase
import Re.Factory
alias Re.{
Listing,
SellerLead,
SellerLeads.DuplicityChecker
}
setup do
{:ok, address: insert(:address)}
end
describe "duplicated?" do
test "should be false when the address doesn't exists for seller lea... | 40.289157 | 165 | 0.685706 |
acbecc09eed7fbb47aea445540c0584ebf945568 | 1,107 | ex | Elixir | lib/hex_flora/herbarium/specimen.ex | palm86/hex_flora | 26dc95f948763507b4d7cb643d98696936b45e07 | [
"CC-BY-3.0"
] | null | null | null | lib/hex_flora/herbarium/specimen.ex | palm86/hex_flora | 26dc95f948763507b4d7cb643d98696936b45e07 | [
"CC-BY-3.0"
] | 8 | 2021-06-04T18:50:28.000Z | 2021-08-08T19:43:46.000Z | lib/hex_flora/herbarium/specimen.ex | palm86/hex_flora | 26dc95f948763507b4d7cb643d98696936b45e07 | [
"CC-BY-3.0"
] | null | null | null | defmodule HexFlora.Herbarium.Specimen do
defmodule Builder do
@enforce_keys [:id, :name, :rank, :taxonomy, :body, :description]
defstruct [:id, :name, :rank, :taxonomy, :body, :description, vegetation_type_ids: [], common_names: [], local_names: []]
def build(filename, attrs, body) do
id = filename... | 33.545455 | 125 | 0.673893 |
acbee7321272d5fa95e0cc365ce4ed3d12497abe | 1,804 | exs | Elixir | config/prod.exs | TiagoDanin/Aquamarine-Monitor | 432e50f0bddc6c04689a65e1dd25843f0efe2cce | [
"MIT"
] | 1 | 2022-01-25T22:07:43.000Z | 2022-01-25T22:07:43.000Z | config/prod.exs | TiagoDanin/Aquamarine-Monitor | 432e50f0bddc6c04689a65e1dd25843f0efe2cce | [
"MIT"
] | null | null | null | config/prod.exs | TiagoDanin/Aquamarine-Monitor | 432e50f0bddc6c04689a65e1dd25843f0efe2cce | [
"MIT"
] | null | null | null | import Config
# For production, don't forget to configure the url host
# to something meaningful, Phoenix uses this information
# when generating URLs.
#
# Note we also include the path to a cache manifest
# containing the digested version of static files. This
# manifest is generated by the `mix phx.digest` task,
# w... | 36.08 | 100 | 0.710643 |
acbee797357503e6e830dceb938bb423ce896481 | 1,745 | ex | Elixir | clients/people/lib/google_api/people/v1/model/biography.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/people/lib/google_api/people/v1/model/biography.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/people/lib/google_api/people/v1/model/biography.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... | 32.924528 | 120 | 0.710602 |
acbeecb61347f0f0482514812f3ad0c2b7204305 | 500 | ex | Elixir | phoenix/web/models/post.ex | pfac/generated | 3611d887bb4eba1ef63b1f16ed1dba54ce94f341 | [
"MIT"
] | null | null | null | phoenix/web/models/post.ex | pfac/generated | 3611d887bb4eba1ef63b1f16ed1dba54ce94f341 | [
"MIT"
] | null | null | null | phoenix/web/models/post.ex | pfac/generated | 3611d887bb4eba1ef63b1f16ed1dba54ce94f341 | [
"MIT"
] | null | null | null | defmodule Phoenix.Post do
use Phoenix.Web, :model
schema "post" do
field :title, :string
field :content, :string
timestamps
end
@required_fields ~w(title content)
@optional_fields ~w()
@doc """
Creates a changeset based on the `model` and `params`.
If no params are provided, an invalid ... | 20 | 61 | 0.684 |
acbf05910aa6bd8b86d4d02c859d6dfdad9e895c | 665 | exs | Elixir | priv/repo/migrations/20170905045855_add_orders_table.exs | DenisGorbachev/crypto-cli | 94e5097ff24237fbc5fdd3fea371a5c9a1f727e4 | [
"MIT"
] | 5 | 2018-09-19T09:13:15.000Z | 2021-10-20T23:29:57.000Z | priv/repo/migrations/20170905045855_add_orders_table.exs | DenisGorbachev/crypto-cli | 94e5097ff24237fbc5fdd3fea371a5c9a1f727e4 | [
"MIT"
] | 6 | 2018-07-29T05:33:02.000Z | 2018-09-18T20:42:19.000Z | priv/repo/migrations/20170905045855_add_orders_table.exs | DenisGorbachev/crypto-cli | 94e5097ff24237fbc5fdd3fea371a5c9a1f727e4 | [
"MIT"
] | 3 | 2018-07-24T05:55:04.000Z | 2018-09-19T09:14:08.000Z | defmodule Cryptozaur.Repo.Migrations.AddOrdersTable do
use Ecto.Migration
def change do
create table(:orders) do
add(:account_id, references(:accounts, on_delete: :delete_all, on_update: :update_all), null: false)
add(:uid, :string, null: false)
add(:pair, :string, null: false)
add(:pri... | 33.25 | 106 | 0.67218 |
acbf0dae007e13b10d454664d1aea76b73a8e9e2 | 539 | ex | Elixir | other-benchmarks/elixir-phoenix-absinthe/lib/benchmark_web/views/error_view.ex | uladzislau-hlebovich/node-graphql-benchmarks | 00b8ba59299e7f725d7a79215f9e56471247f95b | [
"MIT"
] | null | null | null | other-benchmarks/elixir-phoenix-absinthe/lib/benchmark_web/views/error_view.ex | uladzislau-hlebovich/node-graphql-benchmarks | 00b8ba59299e7f725d7a79215f9e56471247f95b | [
"MIT"
] | null | null | null | other-benchmarks/elixir-phoenix-absinthe/lib/benchmark_web/views/error_view.ex | uladzislau-hlebovich/node-graphql-benchmarks | 00b8ba59299e7f725d7a79215f9e56471247f95b | [
"MIT"
] | null | null | null | defmodule BenchmarkWeb.ErrorView do
use BenchmarkWeb, :view
# If you want to customize a particular status code
# for a certain format, you may uncomment below.
# def render("500.json", _assigns) do
# %{errors: %{detail: "Internal Server Error"}}
# end
# By default, Phoenix returns the status message ... | 31.705882 | 83 | 0.721707 |
acbf153ad90c551f18fb1283bf59c13335d4cc68 | 948 | exs | Elixir | test/toolshed/unix_test.exs | fhunleth/toolbag | 6eda196a2c0506ccad01fb437aa30b81def55eda | [
"Apache-2.0"
] | 51 | 2018-10-20T00:48:39.000Z | 2021-02-26T13:42:03.000Z | test/toolshed/unix_test.exs | fhunleth/toolbag | 6eda196a2c0506ccad01fb437aa30b81def55eda | [
"Apache-2.0"
] | 27 | 2021-02-27T15:57:22.000Z | 2022-03-18T03:12:59.000Z | test/toolshed/unix_test.exs | fhunleth/toolbag | 6eda196a2c0506ccad01fb437aa30b81def55eda | [
"Apache-2.0"
] | 11 | 2018-11-02T00:00:57.000Z | 2021-02-24T19:03:34.000Z | defmodule Toolshed.UnixTest do
use ExUnit.Case
import ExUnit.CaptureIO
alias Toolshed.Unix
test "cat/1 reads file content" do
assert capture_io(fn -> Unix.cat("test/support/test_file.doc") end) ==
"Content of this will be read for test purposes"
end
test "tree/1 prints directories and fil... | 32.689655 | 97 | 0.674051 |
acbf1b2f31173227f1e912c918712785bcdf6f2a | 5,536 | ex | Elixir | lib/sanbase/insight/search/search.ex | santiment/sanbase2 | 9ef6e2dd1e377744a6d2bba570ea6bd477a1db31 | [
"MIT"
] | 81 | 2017-11-20T01:20:22.000Z | 2022-03-05T12:04:25.000Z | lib/sanbase/insight/search/search.ex | santiment/sanbase2 | 9ef6e2dd1e377744a6d2bba570ea6bd477a1db31 | [
"MIT"
] | 359 | 2017-10-15T14:40:53.000Z | 2022-01-25T13:34:20.000Z | lib/sanbase/insight/search/search.ex | santiment/sanbase2 | 9ef6e2dd1e377744a6d2bba570ea6bd477a1db31 | [
"MIT"
] | 16 | 2017-11-19T13:57:40.000Z | 2022-02-07T08:13:02.000Z | defmodule Sanbase.Insight.Search do
import Ecto.Query
import Sanbase.Utils.Transform, only: [opts_to_limit_offset: 1]
import Sanbase.Insight.Search.Macro
@doc ~s"""
Provided a query which has `document_tokens` tsvector field and a search term,
filter the results of the query that match the searching condit... | 32.564706 | 91 | 0.649386 |
acbf442a32498faf46e743ffd64f0db4352a463b | 553 | ex | Elixir | lib/lovelace/release.ex | cciuenf/lovelaceccuenf_bot | 22a9d4e25d59cf3e5f1de4c4de8e257a6b44fba9 | [
"MIT"
] | null | null | null | lib/lovelace/release.ex | cciuenf/lovelaceccuenf_bot | 22a9d4e25d59cf3e5f1de4c4de8e257a6b44fba9 | [
"MIT"
] | null | null | null | lib/lovelace/release.ex | cciuenf/lovelaceccuenf_bot | 22a9d4e25d59cf3e5f1de4c4de8e257a6b44fba9 | [
"MIT"
] | null | null | null | defmodule Lovelace.Release do
@moduledoc """
Helper module to run migration on release
"""
@app :lovelace
def migrate do
load_app()
for repo <- repos() do
{:ok, _, _} = Ecto.Migrator.with_repo(repo, &Ecto.Migrator.run(&1, :up, all: true))
end
end
def rollback(repo, version) do
lo... | 19.068966 | 91 | 0.638336 |
acbf5f0982436d1d922e5fbd1e063b3100eec909 | 111 | ex | Elixir | plugins/one_chat/lib/one_chat/settings/message.ex | smpallen99/ucx_ucc | 47225f205a6ac4aacdb9bb4f7512dcf4092576ad | [
"MIT"
] | 11 | 2017-05-15T18:35:05.000Z | 2018-02-05T18:27:40.000Z | plugins/one_chat/lib/one_chat/settings/message.ex | anndream/infinity_one | 47225f205a6ac4aacdb9bb4f7512dcf4092576ad | [
"MIT"
] | 15 | 2017-11-27T10:38:05.000Z | 2018-02-09T20:42:08.000Z | plugins/one_chat/lib/one_chat/settings/message.ex | anndream/infinity_one | 47225f205a6ac4aacdb9bb4f7512dcf4092576ad | [
"MIT"
] | 4 | 2017-09-13T11:34:16.000Z | 2018-02-26T13:37:06.000Z | defmodule OneChat.Settings.Message do
use OneSettings.Settings, schema: OneChat.Settings.Schema.Message
end
| 22.2 | 67 | 0.828829 |
acbfe34c476459eb815963cdedce1ada2a916b88 | 322 | ex | Elixir | apps/panacea_beacon/lib/panacea_beacon/network/discv5/discv5.ex | timjp87/panacea | 5edddfa12a8f18b040248b9b186479b9ec8aed51 | [
"MIT"
] | null | null | null | apps/panacea_beacon/lib/panacea_beacon/network/discv5/discv5.ex | timjp87/panacea | 5edddfa12a8f18b040248b9b186479b9ec8aed51 | [
"MIT"
] | null | null | null | apps/panacea_beacon/lib/panacea_beacon/network/discv5/discv5.ex | timjp87/panacea | 5edddfa12a8f18b040248b9b186479b9ec8aed51 | [
"MIT"
] | null | null | null | defmodule Beacon.Network.DiscV5 do
@moduledoc """
Implementation of Discovery V5 Peer Discovery Protocol.
"""
use GenServer
require Logger
def start_link(args) do
GenServer.start_link(__MODULE__, args)
end
def init(args) do
Logger.info("Starting DiscoveryV5 Service!")
{:ok, args}
end
en... | 17.888889 | 57 | 0.708075 |
acbffb00e97dc036cfc73c52ea9a94e8a1e7f56d | 531 | exs | Elixir | test/jwt_claims/claim/jti_test.exs | pablodavila95/jwt_claims_ex | d83bc51de170d771fcdb8f46bb2f8ad3b80cf98f | [
"MIT"
] | 10 | 2015-08-22T21:13:09.000Z | 2020-01-13T19:32:44.000Z | test/jwt_claims/claim/jti_test.exs | pablodavila95/jwt_claims_ex | d83bc51de170d771fcdb8f46bb2f8ad3b80cf98f | [
"MIT"
] | 5 | 2016-06-23T21:36:54.000Z | 2019-05-22T14:26:42.000Z | test/jwt_claims/claim/jti_test.exs | pablodavila95/jwt_claims_ex | d83bc51de170d771fcdb8f46bb2f8ad3b80cf98f | [
"MIT"
] | 3 | 2016-01-25T23:57:06.000Z | 2020-10-01T17:21:52.000Z | defmodule JwtClaims.Claim.JtiTest do
use ExUnit.Case
alias JwtClaims.Claim.Jti
doctest Jti
@jwt_id "jwt_id"
test "reject?/2 w :jti claim match" do
refute Jti.reject?(@jwt_id, %{jti: @jwt_id})
end
test "reject?/2 w/o :jti claim match" do
assert Jti.reject?(@jwt_id, %{jti: "not jwt_id"})
end
... | 20.423077 | 53 | 0.644068 |
acc02bd5ea0b1ac1c21f10525696031394242575 | 6,987 | exs | Elixir | test/fontais/vekil/proxy_form_dict/dict1_test.exs | ianrumford/plymio_fontais | 828d6726223d2fa038f2c1374fcd2f4b67371544 | [
"MIT"
] | null | null | null | test/fontais/vekil/proxy_form_dict/dict1_test.exs | ianrumford/plymio_fontais | 828d6726223d2fa038f2c1374fcd2f4b67371544 | [
"MIT"
] | null | null | null | test/fontais/vekil/proxy_form_dict/dict1_test.exs | ianrumford/plymio_fontais | 828d6726223d2fa038f2c1374fcd2f4b67371544 | [
"MIT"
] | null | null | null | defmodule PlymioFontaisProxyForomDict1ModuleA do
@vekil %{
mod_a_1: 1,
mod_a_2: :due,
mod_a_3: "tre"
}
def __vekil__() do
@vekil
end
end
defmodule PlymioFontaisProxyForomDict1ModuleB do
@vekil %{
mod_b_1: 1,
mod_b_2: :due,
mod_b_3: "tre"
}
def __vekil__() do
@vekil
end... | 24.515789 | 95 | 0.624589 |
acc037218fa22d8921404c6b6eb1f73a6e1b1d5c | 2,218 | ex | Elixir | apps/ewallet_api/lib/ewallet_api/v1/controllers/auth_controller.ex | jimpeebles/ewallet | ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405 | [
"Apache-2.0"
] | null | null | null | apps/ewallet_api/lib/ewallet_api/v1/controllers/auth_controller.ex | jimpeebles/ewallet | ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405 | [
"Apache-2.0"
] | null | null | null | apps/ewallet_api/lib/ewallet_api/v1/controllers/auth_controller.ex | 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... | 38.912281 | 98 | 0.711903 |
acc0534ab43de5b00940d1fbb0ade9917e7d9491 | 1,027 | ex | Elixir | implementations/elixir/ockam/ockam/lib/ockam/examples/transport/tcp.ex | kylematsuda/ockam | 1b89ef8164b6f9291a0d36bd1e2d8161938299f3 | [
"Apache-2.0"
] | null | null | null | implementations/elixir/ockam/ockam/lib/ockam/examples/transport/tcp.ex | kylematsuda/ockam | 1b89ef8164b6f9291a0d36bd1e2d8161938299f3 | [
"Apache-2.0"
] | null | null | null | implementations/elixir/ockam/ockam/lib/ockam/examples/transport/tcp.ex | kylematsuda/ockam | 1b89ef8164b6f9291a0d36bd1e2d8161938299f3 | [
"Apache-2.0"
] | null | null | null | defmodule Ockam.Examples.Transport.TCP do
@moduledoc """
Example usage of tcp transport
"""
alias Ockam.Transport.TCP
alias Ockam.Transport.TCPAddress
def server() do
## Start a transport with listener on port 4000
TCP.start(listen: [port: 4000])
Ockam.Examples.Transport.Printer.create(address:... | 23.883721 | 64 | 0.651412 |
acc05599dfa6a97fde54f906684fc3fc081b4dcc | 500 | ex | Elixir | safe-indexer-ex/lib/safe_indexer/request_scheduler.ex | gnosis/simple-indexer | 573484c0b9253d97883a51fe430519d718345b10 | [
"MIT"
] | 1 | 2022-01-30T02:15:03.000Z | 2022-01-30T02:15:03.000Z | safe-indexer-ex/lib/safe_indexer/request_scheduler.ex | gnosis/safe-indexer | 573484c0b9253d97883a51fe430519d718345b10 | [
"MIT"
] | 4 | 2021-08-31T10:02:21.000Z | 2021-12-03T15:05:53.000Z | safe-indexer-ex/lib/safe_indexer/request_scheduler.ex | gnosis/simple-tracer | 573484c0b9253d97883a51fe430519d718345b10 | [
"MIT"
] | 2 | 2021-12-19T01:56:44.000Z | 2022-03-28T15:12:37.000Z | defmodule SafeIndexer.RequestScheduler do
use GenServer
def start_link(_) do
# starts supervised process
GenServer.start_link(__MODULE__, nil, name: __MODULE__)
end
def init(_) do
Process.send_after(self(), :check, 1000)
{:ok, []}
end
def handle_info(:check, st... | 25 | 84 | 0.626 |
acc077cd4d27f22970ae72218ead99a5424f4c24 | 750 | ex | Elixir | lib/himamo/obs_seq.ex | mfilej/himamo | 78d10964d2f2557d9ddf8f8e8f22aeece59fb7c5 | [
"MIT"
] | 2 | 2017-09-25T07:24:26.000Z | 2019-08-23T19:55:10.000Z | lib/himamo/obs_seq.ex | mfilej/himamo | 78d10964d2f2557d9ddf8f8e8f22aeece59fb7c5 | [
"MIT"
] | null | null | null | lib/himamo/obs_seq.ex | mfilej/himamo | 78d10964d2f2557d9ddf8f8e8f22aeece59fb7c5 | [
"MIT"
] | null | null | null | defmodule Himamo.ObsSeq do
@moduledoc ~S"""
Defines an observation sequence.
## Examples
iex> Himamo.ObsSeq.new([0, 0, 1, 0, 1])
%Himamo.ObsSeq{len: 5, prob: nil, seq: [0, 0, 1, 0, 1]}
"""
defstruct [:seq, :len, :prob]
@type sequence :: list(Himamo.Model.symbol)
@type obs_seq(prob) :: %__M... | 24.193548 | 61 | 0.634667 |
acc088fba11a0cfed1ad38eb79a9352f5b3d12ba | 91 | exs | Elixir | test/policr_mini_web/helper_test.exs | WOCyo/policr-mini | 23e5e9f927d083cba5993f39e9f122e3a0ad1be2 | [
"MIT"
] | 487 | 2020-06-08T03:04:21.000Z | 2022-03-31T14:51:36.000Z | test/policr_mini_web/helper_test.exs | WOCyo/policr-mini | 23e5e9f927d083cba5993f39e9f122e3a0ad1be2 | [
"MIT"
] | 141 | 2020-06-11T01:03:29.000Z | 2022-03-30T20:23:32.000Z | test/policr_mini_web/helper_test.exs | WOCyo/policr-mini | 23e5e9f927d083cba5993f39e9f122e3a0ad1be2 | [
"MIT"
] | 61 | 2020-06-10T05:25:03.000Z | 2022-03-23T15:54:26.000Z | defmodule PolicrMiniWeb.HelperTest do
use ExUnit.Case
doctest PolicrMiniWeb.Helper
end
| 18.2 | 37 | 0.835165 |
acc09f010615d8f6cd2f906a1330fafaba5718e7 | 1,356 | ex | Elixir | lib/instream/connection/response_parser_v2.ex | astery/instream | 91d031d4cdc1091314451279ce43651d8fd7ec89 | [
"Apache-2.0"
] | 204 | 2015-06-04T06:38:57.000Z | 2022-01-30T08:56:33.000Z | lib/instream/connection/response_parser_v2.ex | astery/instream | 91d031d4cdc1091314451279ce43651d8fd7ec89 | [
"Apache-2.0"
] | 71 | 2015-05-24T02:08:28.000Z | 2022-01-10T17:13:27.000Z | lib/instream/connection/response_parser_v2.ex | astery/instream | 91d031d4cdc1091314451279ce43651d8fd7ec89 | [
"Apache-2.0"
] | 41 | 2015-09-05T21:24:04.000Z | 2021-11-10T02:52:48.000Z | defmodule Instream.Connection.ResponseParserV2 do
@moduledoc false
alias Instream.Connection.JSON
alias Instream.Decoder.CSV
alias Instream.HTTPClient
@doc """
Parses a response.
"""
@spec maybe_parse(HTTPClient.response(), module, Keyword.t()) :: any
def maybe_parse({:error, _} = error, _, _), do: ... | 26.076923 | 84 | 0.660029 |
acc0af28cfba74fb7d65276eb62b9ad9d872f502 | 1,162 | exs | Elixir | mix.exs | jimsynz/stream_split | ea1eee3cd0f6fa98b21527cf384f31069ba35246 | [
"MIT"
] | null | null | null | mix.exs | jimsynz/stream_split | ea1eee3cd0f6fa98b21527cf384f31069ba35246 | [
"MIT"
] | null | null | null | mix.exs | jimsynz/stream_split | ea1eee3cd0f6fa98b21527cf384f31069ba35246 | [
"MIT"
] | null | null | null | defmodule StreamSplit.Mixfile do
use Mix.Project
def project do
[app: :stream_split,
description: "Split a stream into a head and tail, without iterating the tail",
version: "0.1.5",
elixir: "~> 1.7",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps(... | 23.24 | 84 | 0.592083 |
acc0d23b64addbfc1c7a1b1e09e365dee5660eea | 1,956 | ex | Elixir | test/support/uri.ex | davidsulc/scraping_hub_ex | 78fbf8f4c18f8f3650148b9c8861f22856dbb8b1 | [
"Apache-2.0"
] | 2 | 2021-03-30T07:59:54.000Z | 2021-04-06T12:32:40.000Z | test/support/uri.ex | davidsulc/scrapy_cloud_ex | 78fbf8f4c18f8f3650148b9c8861f22856dbb8b1 | [
"Apache-2.0"
] | null | null | null | test/support/uri.ex | davidsulc/scrapy_cloud_ex | 78fbf8f4c18f8f3650148b9c8861f22856dbb8b1 | [
"Apache-2.0"
] | null | null | null | defmodule Test.Support.URI do
@moduledoc false
def get_query(url) when is_binary(url) do
url
|> URI.parse()
|> Map.get(:query)
end
def query_to_map(query) do
query
|> URI.query_decoder()
|> Enum.reduce(%{}, fn {k, v}, acc -> add_to_query_map(acc, k, v) end)
end
def equivalent?(que... | 23.853659 | 91 | 0.617076 |
acc0db54cd85b79317a4d8100703bfd888316aa8 | 1,766 | exs | Elixir | test/groupher_server_web/mutation/cms/abuse_reports/works_report_test.exs | coderplanets/coderplanets_server | 3663e56340d6d050e974c91f7e499d8424fc25e9 | [
"Apache-2.0"
] | 240 | 2018-11-06T09:36:54.000Z | 2022-02-20T07:12:36.000Z | test/groupher_server_web/mutation/cms/abuse_reports/works_report_test.exs | coderplanets/coderplanets_server | 3663e56340d6d050e974c91f7e499d8424fc25e9 | [
"Apache-2.0"
] | 363 | 2018-07-11T03:38:14.000Z | 2021-12-14T01:42:40.000Z | test/groupher_server_web/mutation/cms/abuse_reports/works_report_test.exs | mydearxym/mastani_server | f24034a4a5449200165cf4a547964a0961793eab | [
"Apache-2.0"
] | 22 | 2019-01-27T11:47:56.000Z | 2021-02-28T13:17:52.000Z | defmodule GroupherServer.Test.Mutation.AbuseReports.WorksReport do
use GroupherServer.TestTools
alias GroupherServer.CMS
setup do
{:ok, user} = db_insert(:user)
{:ok, community} = db_insert(:community)
works_attrs = mock_attrs(:works, %{community_id: community.id})
guest_conn = simu_conn(:gues... | 28.031746 | 94 | 0.646093 |
acc121c5085728e733d50447a0bbfb264e4cf809 | 966 | ex | Elixir | apps/artemis_web/lib/artemis_web/live/pager_duty_live.ex | artemis-platform/artemis_dashboard | 5ab3f5ac4c5255478bbebf76f0e43b44992e3cab | [
"MIT"
] | 9 | 2019-08-19T19:56:34.000Z | 2022-03-22T17:56:38.000Z | apps/artemis_web/lib/artemis_web/live/pager_duty_live.ex | chrislaskey/atlas_dashboard | 9009ef5aac8fefba126fa7d3e3b82d1b610ee6fe | [
"MIT"
] | 7 | 2019-07-12T21:41:01.000Z | 2020-08-17T21:29:22.000Z | apps/artemis_web/lib/artemis_web/live/pager_duty_live.ex | chrislaskey/atlas_dashboard | 9009ef5aac8fefba126fa7d3e3b82d1b610ee6fe | [
"MIT"
] | 2 | 2019-07-05T22:51:47.000Z | 2019-08-19T19:56:37.000Z | defmodule ArtemisWeb.PagerDutyLive do
use ArtemisWeb.LiveView
# LiveView Callbacks
@impl true
def mount(_params, _session, socket) do
socket = assign(socket, :updated_at, Timex.now())
subscribe_to_incident_changes()
subscribe_to_on_call_changes()
{:ok, socket}
end
@impl true
def rende... | 21 | 98 | 0.717391 |
acc1252512dea3ca57277d9ffe0817abf0c4ef7b | 172 | ex | Elixir | lib/elixir_script/lib/functions.ex | beadsland/elixirscript | cb9698ad96075fcbe87b3933009d7ab2a2c939de | [
"MIT"
] | 854 | 2017-02-19T01:50:45.000Z | 2022-03-14T18:55:38.000Z | lib/elixir_script/lib/functions.ex | beadsland/elixirscript | cb9698ad96075fcbe87b3933009d7ab2a2c939de | [
"MIT"
] | 210 | 2017-02-20T17:44:39.000Z | 2020-08-01T10:18:07.000Z | lib/elixir_script/lib/functions.ex | beadsland/elixirscript | cb9698ad96075fcbe87b3933009d7ab2a2c939de | [
"MIT"
] | 56 | 2017-02-19T14:50:05.000Z | 2022-02-25T17:25:30.000Z | defmodule ElixirScript.Core.Functions do
@moduledoc false
use ElixirScript.FFI, global: true
defexternal split_at(value, position)
defexternal graphemes(str)
end
| 19.111111 | 40 | 0.790698 |
acc12c656804f4de0f9cfc68defa8ded6913cda5 | 6,039 | ex | Elixir | lib/relay/resources/lds.ex | aclemmensen/relay | 4bce71ed7d8bd4936f96d62ed08d007729c4253d | [
"BSD-3-Clause"
] | 5 | 2018-10-12T13:13:19.000Z | 2020-10-03T17:51:37.000Z | lib/relay/resources/lds.ex | aclemmensen/relay | 4bce71ed7d8bd4936f96d62ed08d007729c4253d | [
"BSD-3-Clause"
] | 207 | 2018-02-09T14:24:14.000Z | 2020-07-25T11:09:19.000Z | lib/relay/resources/lds.ex | aclemmensen/relay | 4bce71ed7d8bd4936f96d62ed08d007729c4253d | [
"BSD-3-Clause"
] | 1 | 2019-08-08T11:30:59.000Z | 2019-08-08T11:30:59.000Z | defmodule Relay.Resources.LDS do
@moduledoc """
Builds Envoy Listener values from cluster resources.
"""
alias Relay.ProtobufUtil
alias Relay.Resources.{CertInfo, Config}
import Relay.Resources.Common,
only: [api_config_source: 0, socket_address: 2, truncate_obj_name: 1]
alias Envoy.Api.V2.Core.Data... | 33.926966 | 94 | 0.695479 |
acc1549c4f03b85a005897214d557ba94d6f8af7 | 945 | exs | Elixir | apps/local_ledger/mix.exs | turbo-play/ewallet | b7fee3eed62ac716f46246132c2ead1045f2e4f3 | [
"Apache-2.0"
] | 2 | 2019-07-13T05:49:03.000Z | 2021-08-19T23:58:23.000Z | apps/local_ledger/mix.exs | turbo-play/ewallet | b7fee3eed62ac716f46246132c2ead1045f2e4f3 | [
"Apache-2.0"
] | null | null | null | apps/local_ledger/mix.exs | turbo-play/ewallet | b7fee3eed62ac716f46246132c2ead1045f2e4f3 | [
"Apache-2.0"
] | 3 | 2018-05-08T17:15:42.000Z | 2021-11-10T04:08:33.000Z | defmodule LocalLedger.Mixfile do
use Mix.Project
def project do
[
app: :local_ledger,
version: "0.1.0-beta",
build_path: "../../_build",
config_path: "../../config/config.exs",
deps_path: "../../deps",
lockfile: "../../mix.lock",
elixir: "~> 1.5",
start_permanent... | 23.04878 | 59 | 0.551323 |
acc15a42fdadda675f4290058bfb628908e51623 | 62 | ex | Elixir | lib/smwc_web/views/user_session_view.ex | druu/smwcbot | 0c9e3530c470028c767b6a77be8a939481756438 | [
"MIT"
] | 2 | 2022-03-09T18:04:42.000Z | 2022-03-11T22:24:25.000Z | lib/smwc_web/views/user_session_view.ex | druu/smwcbot | 0c9e3530c470028c767b6a77be8a939481756438 | [
"MIT"
] | null | null | null | lib/smwc_web/views/user_session_view.ex | druu/smwcbot | 0c9e3530c470028c767b6a77be8a939481756438 | [
"MIT"
] | 2 | 2022-02-27T22:00:17.000Z | 2022-02-28T02:20:21.000Z | defmodule SMWCWeb.UserSessionView do
use SMWCWeb, :view
end
| 15.5 | 36 | 0.806452 |
acc17eebea2dee9de39e1d5c6b6e1f94c9b64230 | 1,374 | ex | Elixir | apps/ewallet/lib/ewallet/web/v1/overlays/invite_overlay.ex | jimpeebles/ewallet | ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405 | [
"Apache-2.0"
] | null | null | null | apps/ewallet/lib/ewallet/web/v1/overlays/invite_overlay.ex | jimpeebles/ewallet | ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405 | [
"Apache-2.0"
] | null | null | null | apps/ewallet/lib/ewallet/web/v1/overlays/invite_overlay.ex | 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... | 21.46875 | 74 | 0.65575 |
acc198f742601df4dd9b906c078eb1f9b915b9bc | 2,602 | ex | Elixir | deps/postgrex/lib/postgrex/builtins.ex | hallebadkapp/rumbl-ms | ae2ef9975658115f8c4d5c49c28d8bde00a74b83 | [
"MIT"
] | 1 | 2016-08-17T11:39:26.000Z | 2016-08-17T11:39:26.000Z | deps/postgrex/lib/postgrex/builtins.ex | hallebadkapp/rumbl-ms | ae2ef9975658115f8c4d5c49c28d8bde00a74b83 | [
"MIT"
] | null | null | null | deps/postgrex/lib/postgrex/builtins.ex | hallebadkapp/rumbl-ms | ae2ef9975658115f8c4d5c49c28d8bde00a74b83 | [
"MIT"
] | null | null | null | defmodule Postgrex.Date do
@moduledoc """
Struct for Postgres date.
## Fields
* `year`
* `month`
* `day`
"""
@type t :: %__MODULE__{year: 0..10000, month: 1..12, day: 1..31}
defstruct [
year: 0,
month: 1,
day: 1]
end
defmodule Postgrex.Time do
@moduledoc """
Struct for Postgr... | 15.865854 | 79 | 0.554958 |
acc19cdefe945ef5430fe31d3197fcb0ff38d76c | 2,200 | ex | Elixir | test/support/event_factory.ex | mwillema/eventstore | 8c96ccec2fc8a43f2144db2fe880a8da70c463c6 | [
"MIT"
] | null | null | null | test/support/event_factory.ex | mwillema/eventstore | 8c96ccec2fc8a43f2144db2fe880a8da70c463c6 | [
"MIT"
] | null | null | null | test/support/event_factory.ex | mwillema/eventstore | 8c96ccec2fc8a43f2144db2fe880a8da70c463c6 | [
"MIT"
] | null | null | null | defmodule EventStore.EventFactory do
alias EventStore.{EventData,RecordedEvent}
@serializer Application.get_env(:eventstore, EventStore.Storage)[:serializer] || EventStore.JsonSerializer
defmodule Event do
@derive Jason.Encoder
defstruct event: nil
end
def create_events(number_of_events, initial_ev... | 30.136986 | 115 | 0.680909 |
acc1bbb252cbe2a9534770e24e3892f8667c85e1 | 146 | ex | Elixir | lib/screens_web/views/v2/screen_view.ex | mbta/screens | 4b586970f8844b19543bb2ffd4b032a89f6fa40a | [
"MIT"
] | 3 | 2021-07-27T14:11:00.000Z | 2022-01-03T14:16:43.000Z | lib/screens_web/views/v2/screen_view.ex | mbta/screens | 4b586970f8844b19543bb2ffd4b032a89f6fa40a | [
"MIT"
] | 444 | 2021-03-10T20:57:17.000Z | 2022-03-31T16:00:35.000Z | lib/screens_web/views/v2/screen_view.ex | mbta/screens | 4b586970f8844b19543bb2ffd4b032a89f6fa40a | [
"MIT"
] | null | null | null | defmodule ScreensWeb.V2.ScreenView do
use ScreensWeb, :view
def record_sentry?, do: Application.get_env(:screens, :record_sentry, false)
end
| 24.333333 | 78 | 0.780822 |
acc200137cf64a56d6198590cbe3d4dbdd309aa3 | 1,318 | ex | Elixir | clients/dataflow/lib/google_api/dataflow/v1b3/model/send_debug_capture_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/dataflow/lib/google_api/dataflow/v1b3/model/send_debug_capture_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/dataflow/lib/google_api/dataflow/v1b3/model/send_debug_capture_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 ... | 30.651163 | 86 | 0.767071 |
acc20fcf3cc13f78d0710ea69a57b0bd0971f96a | 4,775 | exs | Elixir | test/json_api_client/middleware/fuse_test.exs | jmax/json_api_client | 10518564077860c291008887639dcef13f9ac3a7 | [
"MIT"
] | 36 | 2017-10-06T17:58:27.000Z | 2022-01-07T13:52:50.000Z | test/json_api_client/middleware/fuse_test.exs | jmax/json_api_client | 10518564077860c291008887639dcef13f9ac3a7 | [
"MIT"
] | 12 | 2017-11-30T00:17:05.000Z | 2019-11-25T18:05:24.000Z | test/json_api_client/middleware/fuse_test.exs | jmax/json_api_client | 10518564077860c291008887639dcef13f9ac3a7 | [
"MIT"
] | 12 | 2017-12-03T21:14:55.000Z | 2020-09-08T23:43:33.000Z | defmodule JsonApiClient.Middleware.FuseTest do
use ExUnit.Case
doctest JsonApiClient.Middleware.Fuse, import: true
import Mock
alias JsonApiClient.{Request, Response, RequestError}
alias JsonApiClient.Middleware.Fuse
@request %Request{}
@service_name :my_service
@options [
{@service_name, {{:stand... | 25.951087 | 112 | 0.548272 |
acc2578240708d368e8651395ff43876dcad2a98 | 11,796 | ex | Elixir | lib/skeleton/elasticsearch.ex | skeleton-elixir/skeleton_elasticsearch | e1cd011a15aaed2b518bdae6870eb347bb383def | [
"MIT"
] | null | null | null | lib/skeleton/elasticsearch.ex | skeleton-elixir/skeleton_elasticsearch | e1cd011a15aaed2b518bdae6870eb347bb383def | [
"MIT"
] | 4 | 2021-02-19T00:21:14.000Z | 2021-02-26T13:05:38.000Z | lib/skeleton/elasticsearch.ex | skeleton-elixir/skeleton_elasticsearch | e1cd011a15aaed2b518bdae6870eb347bb383def | [
"MIT"
] | 1 | 2021-08-04T17:22:06.000Z | 2021-08-04T17:22:06.000Z | defmodule Skeleton.Elasticsearch do
alias Skeleton.Elasticsearch.Config
import Ecto.Query
defmacro __using__(opts) do
alias Skeleton.Elasticsearch
alias Skeleton.Elasticsearch.Config
quote do
@otp_app unquote(opts[:otp_app]) || raise("OTP App required")
@module __MODULE__
def conf... | 27.305556 | 98 | 0.634283 |
acc25953dcf899ede1a336dfedb2e60ab0286091 | 2,565 | ex | Elixir | lib/idService/accounts.ex | dougalcorn/id-server | a699cdc05a484faf498846d7d428921dfaecb978 | [
"MIT"
] | null | null | null | lib/idService/accounts.ex | dougalcorn/id-server | a699cdc05a484faf498846d7d428921dfaecb978 | [
"MIT"
] | null | null | null | lib/idService/accounts.ex | dougalcorn/id-server | a699cdc05a484faf498846d7d428921dfaecb978 | [
"MIT"
] | null | null | null | defmodule IdService.Accounts do
@moduledoc """
The Accounts context.
"""
import Ecto.Query, warn: false
alias IdService.Repo
alias IdService.Accounts.User
alias IdService.Guardian
import Comeonin.Bcrypt, only: [checkpw: 2, dummy_checkpw: 0]
@doc """
Returns the list of users.
## Examples
... | 18.722628 | 92 | 0.597661 |
acc26eb5c7a55968e236f22aba021a7443bba613 | 670 | ex | Elixir | web/router.ex | jtrudell/yo_phoenix | d242ae5b0151bd7b6b8039e3507b8c4946acc6d4 | [
"MIT"
] | null | null | null | web/router.ex | jtrudell/yo_phoenix | d242ae5b0151bd7b6b8039e3507b8c4946acc6d4 | [
"MIT"
] | null | null | null | web/router.ex | jtrudell/yo_phoenix | d242ae5b0151bd7b6b8039e3507b8c4946acc6d4 | [
"MIT"
] | null | null | null | defmodule YoPhoenix.Router do
use YoPhoenix.Web, :router
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_flash
plug :protect_from_forgery
plug :put_secure_browser_headers
end
pipeline :api do
plug :accepts, ["json"]
end
scope "/", YoPhoenix do
pipe... | 22.333333 | 59 | 0.677612 |
acc2b4e9a5a50cde5d834cc08fd74273ca0e3255 | 2,456 | ex | Elixir | backend/lib/honeyland_web.ex | bejolithic/honeyland | 8c4a0d3b56543648d3acb96cc6906df86526743b | [
"Apache-2.0"
] | null | null | null | backend/lib/honeyland_web.ex | bejolithic/honeyland | 8c4a0d3b56543648d3acb96cc6906df86526743b | [
"Apache-2.0"
] | null | null | null | backend/lib/honeyland_web.ex | bejolithic/honeyland | 8c4a0d3b56543648d3acb96cc6906df86526743b | [
"Apache-2.0"
] | null | null | null | #
# This file is part of Honeyland.
#
# Copyright 2022 Nervive Studio
#
# 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 ... | 25.319588 | 76 | 0.708062 |
acc2d2dc94d254efcb2be52407cd0c921d1317ea | 802 | ex | Elixir | lib/sanbase/alerts/trigger/trigger_query.ex | santiment/sanbase2 | 9ef6e2dd1e377744a6d2bba570ea6bd477a1db31 | [
"MIT"
] | 81 | 2017-11-20T01:20:22.000Z | 2022-03-05T12:04:25.000Z | lib/sanbase/alerts/trigger/trigger_query.ex | santiment/sanbase2 | 9ef6e2dd1e377744a6d2bba570ea6bd477a1db31 | [
"MIT"
] | 359 | 2017-10-15T14:40:53.000Z | 2022-01-25T13:34:20.000Z | lib/sanbase/alerts/trigger/trigger_query.ex | santiment/sanbase2 | 9ef6e2dd1e377744a6d2bba570ea6bd477a1db31 | [
"MIT"
] | 16 | 2017-11-19T13:57:40.000Z | 2022-02-07T08:13:02.000Z | defmodule Sanbase.Alert.TriggerQuery do
defmacro trigger_type_is(type) do
quote do
fragment(
"""
trigger->'settings'->'type' = ?
""",
^unquote(type)
)
end
end
defmacro trigger_by_id(id) do
quote do
fragment(
"""
trigger->>'id' = ?
... | 15.72549 | 39 | 0.487531 |
acc2de6b87d93eb90769962fae003c9457132da5 | 29 | exs | Elixir | apps/docker/test/test_helper.exs | vapordao/staxx | 5110167573e67a91c0865c3265896642ebe4012e | [
"Apache-2.0"
] | 10 | 2020-10-16T05:15:21.000Z | 2021-10-04T19:38:59.000Z | test/unit/test_helper.exs | svnlto/andi | 153465c92f01d776579dca5b8e7bcbc78a8d2e6a | [
"Apache-2.0"
] | 29 | 2018-12-04T16:55:01.000Z | 2019-01-29T14:33:26.000Z | test/unit/test_helper.exs | svnlto/andi | 153465c92f01d776579dca5b8e7bcbc78a8d2e6a | [
"Apache-2.0"
] | 7 | 2019-10-09T05:49:52.000Z | 2022-03-23T16:48:45.000Z | ExUnit.start()
Faker.start()
| 9.666667 | 14 | 0.724138 |
acc2def2344f46b83f396edfd3eddae3bed20ef1 | 76 | ex | Elixir | lib/corker/scheduler.ex | justmendes/corker | b7a6d7cbae47d30816bb99b8fe8576e9a0d5722d | [
"0BSD"
] | 5 | 2019-05-24T17:00:42.000Z | 2019-05-27T13:50:56.000Z | lib/corker/scheduler.ex | justmendes/corker | b7a6d7cbae47d30816bb99b8fe8576e9a0d5722d | [
"0BSD"
] | 17 | 2019-05-27T08:59:36.000Z | 2020-02-17T06:45:27.000Z | lib/corker/scheduler.ex | justmendes/corker | b7a6d7cbae47d30816bb99b8fe8576e9a0d5722d | [
"0BSD"
] | 1 | 2019-08-27T14:27:06.000Z | 2019-08-27T14:27:06.000Z | defmodule Corker.Scheduler do
use Quantum.Scheduler, otp_app: :corker
end
| 19 | 41 | 0.802632 |
acc2f0dff0c534fbbefdb0662f76cf35029e74ad | 2,131 | ex | Elixir | apps/artemis_web/lib/artemis_web/views/team_member_view.ex | artemis-platform/artemis_teams | 9930c3d9528e37b76f0525390e32b66eed7eadde | [
"MIT"
] | 2 | 2020-04-23T02:29:18.000Z | 2020-07-07T13:13:17.000Z | apps/artemis_web/lib/artemis_web/views/team_member_view.ex | chrislaskey/artemis_teams | 9930c3d9528e37b76f0525390e32b66eed7eadde | [
"MIT"
] | 4 | 2020-04-26T20:35:36.000Z | 2020-11-10T22:13:19.000Z | apps/artemis_web/lib/artemis_web/views/team_member_view.ex | chrislaskey/artemis_teams | 9930c3d9528e37b76f0525390e32b66eed7eadde | [
"MIT"
] | null | null | null | defmodule ArtemisWeb.TeamMemberView do
use ArtemisWeb, :view
# Data Table
def data_table_available_columns() do
[
{"Actions", "actions"},
{"Team", "team"},
{"Type", "type"},
{"Updated At", "updated_at"},
{"User", "user"}
]
end
def data_table_allowed_columns() do
%{... | 28.039474 | 96 | 0.530737 |
acc2f212d68e9a83d6598005ff6b06724e893828 | 1,853 | ex | Elixir | clients/service_usage/lib/google_api/service_usage/v1/model/monitoring_destination.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/service_usage/lib/google_api/service_usage/v1/model/monitoring_destination.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/service_usage/lib/google_api/service_usage/v1/model/monitoring_destination.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 34.962264 | 125 | 0.737183 |
acc320ac6d8f47458d06fbc44f92ad244df7c955 | 1,748 | ex | Elixir | lib/surface_bulma_widgets/ui/numbers/number_button.ex | elcritch/surface_bulma_widgets | 94e0d129b6dda95b2dda45ce797e54a60266878b | [
"MIT"
] | null | null | null | lib/surface_bulma_widgets/ui/numbers/number_button.ex | elcritch/surface_bulma_widgets | 94e0d129b6dda95b2dda45ce797e54a60266878b | [
"MIT"
] | null | null | null | lib/surface_bulma_widgets/ui/numbers/number_button.ex | elcritch/surface_bulma_widgets | 94e0d129b6dda95b2dda45ce797e54a60266878b | [
"MIT"
] | null | null | null | defmodule SurfaceBulmaWidgets.UI.NumberButton do
use Surface.LiveComponent
use SurfaceBulmaWidgets
import SurfaceBulmaWidgets.UI.NumberUtils
require Logger
prop name, :any, default: nil
prop value, :number, default: 0.0
prop digits, :string, default: "4.1"
prop color, :any, default: "primary"
pro... | 29.133333 | 103 | 0.512586 |
acc34d81f66a383fe8d1c3478f6f82f7c9cb86ac | 53,583 | ex | Elixir | lib/codes/codes_s50.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_s50.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_s50.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | defmodule IcdCode.ICDCode.Codes_S50 do
alias IcdCode.ICDCode
def _S5000XA do
%ICDCode{full_code: "S5000XA",
category_code: "S50",
short_code: "00XA",
full_name: "Contusion of unspecified elbow, initial encounter",
short_name: "Contusion of unspecified elbow, initial encoun... | 41.122794 | 102 | 0.649721 |
acc38c166ed0eea8e80387f01fb04d65b1802c12 | 58 | ex | Elixir | lib/ueberauth_passwordless.ex | isakemanuel/ueberauth_passwordless | 8fbbe5d3a86a6235f933b14a3800b4f3e10616b7 | [
"MIT"
] | 7 | 2020-02-12T20:44:23.000Z | 2022-02-04T18:28:49.000Z | lib/ueberauth_passwordless.ex | isakemanuel/ueberauth_passwordless | 8fbbe5d3a86a6235f933b14a3800b4f3e10616b7 | [
"MIT"
] | 12 | 2021-07-05T07:07:15.000Z | 2022-03-28T07:06:56.000Z | lib/ueberauth_passwordless.ex | isakemanuel/ueberauth_passwordless | 8fbbe5d3a86a6235f933b14a3800b4f3e10616b7 | [
"MIT"
] | 4 | 2020-02-12T08:42:19.000Z | 2022-03-06T09:55:14.000Z | defmodule UeberauthPasswordless do
@moduledoc false
end
| 14.5 | 34 | 0.844828 |
acc3a59d3f7428bcaa35bbe7a534730f10626667 | 2,567 | exs | Elixir | mix.exs | ssachse/pmr_pb | 800270c62bc308ead56eb68586bd006dc5948819 | [
"Apache-2.0"
] | null | null | null | mix.exs | ssachse/pmr_pb | 800270c62bc308ead56eb68586bd006dc5948819 | [
"Apache-2.0"
] | null | null | null | mix.exs | ssachse/pmr_pb | 800270c62bc308ead56eb68586bd006dc5948819 | [
"Apache-2.0"
] | null | null | null | defmodule NervesSystemBbb.MixProject do
use Mix.Project
@app :nerves_system_bbb
@version Path.join(__DIR__, "VERSION")
|> File.read!()
|> String.trim()
def project do
[
app: @app,
version: @version,
elixir: "~> 1.6",
compilers: Mix.compilers() ++ [:nerves_pack... | 22.517544 | 79 | 0.584729 |
acc3dd8be5de4fdda8b5253fd601d69d400e6ca5 | 6,311 | ex | Elixir | lib/membrane/core/parent/lifecycle_controller.ex | vKxni/membrane_core | d14a67304b63706d6df520fa306dd2fda147c07c | [
"Apache-2.0"
] | null | null | null | lib/membrane/core/parent/lifecycle_controller.ex | vKxni/membrane_core | d14a67304b63706d6df520fa306dd2fda147c07c | [
"Apache-2.0"
] | null | null | null | lib/membrane/core/parent/lifecycle_controller.ex | vKxni/membrane_core | d14a67304b63706d6df520fa306dd2fda147c07c | [
"Apache-2.0"
] | null | null | null | defmodule Membrane.Core.Parent.LifecycleController do
@moduledoc false
use Bunch
use Membrane.Core.PlaybackHandler
alias Bunch.Type
alias Membrane.{Child, Core, Notification, Pad, Sync}
alias Membrane.Core.{CallbackHandler, Message, Component, Parent, PlaybackHandler}
alias Membrane.Core.Events
alias M... | 31.555 | 95 | 0.691333 |
acc3fe40921f2cf5586204308d012e8e31f219ff | 3,920 | ex | Elixir | clients/reseller/lib/google_api/reseller/v1/model/customer.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/reseller/lib/google_api/reseller/v1/model/customer.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/reseller/lib/google_api/reseller/v1/model/customer.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 57.647059 | 355 | 0.722704 |
acc40600c8c7af6f36e3169bcf5ca54cae3f6010 | 2,609 | exs | Elixir | test/controllers/episode_controller_test.exs | soleo/changelog.com | 621c7471b23379e1cdd4a0c960b66ed98d8d1a53 | [
"MIT"
] | null | null | null | test/controllers/episode_controller_test.exs | soleo/changelog.com | 621c7471b23379e1cdd4a0c960b66ed98d8d1a53 | [
"MIT"
] | null | null | null | test/controllers/episode_controller_test.exs | soleo/changelog.com | 621c7471b23379e1cdd4a0c960b66ed98d8d1a53 | [
"MIT"
] | null | null | null | defmodule Changelog.EpisodeControllerTest do
use Changelog.ConnCase
test "getting a published podcast episode page" do
p = insert(:podcast)
e = insert(:published_episode, podcast: p)
insert(:episode_host, episode: e)
insert(:episode_host, episode: e)
insert(:episode_sponsor, episode: e)
co... | 30.694118 | 79 | 0.663089 |
acc41d775696b794404dca736dda691fb5e647fe | 15,648 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/api/advertiser_landing_pages.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/api/advertiser_landing_pages.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/api/advertiser_landing_pages.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 42.406504 | 518 | 0.626917 |
acc4b620a0b62dcfd211614fe810e5bc5ec234cf | 945 | ex | Elixir | test/support/channel_case.ex | nested-tech/rihanna_ui | 89ad67e443c9fd6d014f56c2300e285572a570e8 | [
"MIT"
] | null | null | null | test/support/channel_case.ex | nested-tech/rihanna_ui | 89ad67e443c9fd6d014f56c2300e285572a570e8 | [
"MIT"
] | null | null | null | test/support/channel_case.ex | nested-tech/rihanna_ui | 89ad67e443c9fd6d014f56c2300e285572a570e8 | [
"MIT"
] | null | null | null | defmodule RihannaUIWeb.ChannelCase do
@moduledoc """
This module defines the test case to be used by
channel tests.
Such tests rely on `Phoenix.ChannelTest` and also
import other functionality to make it easier
to build common datastructures and query the data layer.
Finally, if the test case interacts ... | 24.868421 | 71 | 0.718519 |
acc4c7cecbec466f8b79659d84d90fc5b660b08a | 328 | exs | Elixir | test/lib/timber/formatter_test.exs | girishramnani/timber-elixir | 7fda5c3cb5e765a34524d2ec21cfbd5b30240bd5 | [
"ISC"
] | null | null | null | test/lib/timber/formatter_test.exs | girishramnani/timber-elixir | 7fda5c3cb5e765a34524d2ec21cfbd5b30240bd5 | [
"ISC"
] | null | null | null | test/lib/timber/formatter_test.exs | girishramnani/timber-elixir | 7fda5c3cb5e765a34524d2ec21cfbd5b30240bd5 | [
"ISC"
] | null | null | null | defmodule Timber.FormatterTest do
use Timber.TestCase
import ExUnit.CaptureLog
require Logger
describe "Timber.Formatter.format/4" do
test "includes runtime metadata" do
log_output = capture_log(fn ->
Logger.error("log message")
end)
assert log_output =~ " @metadata "
end
... | 19.294118 | 41 | 0.679878 |
acc4d83b25c5bcfcd98a7788abc87132ce4c97f4 | 18,231 | ex | Elixir | lib/phoenix_live_view/channel.ex | joaobalsini/phoenix_live_view | 7fb5636e2cd25e379be75e61002b2ea48134a839 | [
"MIT"
] | null | null | null | lib/phoenix_live_view/channel.ex | joaobalsini/phoenix_live_view | 7fb5636e2cd25e379be75e61002b2ea48134a839 | [
"MIT"
] | null | null | null | lib/phoenix_live_view/channel.ex | joaobalsini/phoenix_live_view | 7fb5636e2cd25e379be75e61002b2ea48134a839 | [
"MIT"
] | null | null | null | defmodule Phoenix.LiveView.Channel do
@moduledoc false
use GenServer, restart: :temporary
require Logger
alias Phoenix.LiveView.{Socket, View, Diff}
alias Phoenix.Socket.Message
@prefix :phoenix
def start_link({auth_payload, from, phx_socket}) do
GenServer.start_link(__MODULE__, {auth_payload, fro... | 31.271012 | 100 | 0.6303 |
acc50179fe6f213a0e90d23183c3add9ec8e2b7a | 1,617 | ex | Elixir | lib/ex_aliyun_ots/tunnel/utils.ex | kianmeng/ex_aliyun_ots | 554da4a80b7d59640f1b8aed75c2ff81678f0c4d | [
"MIT"
] | null | null | null | lib/ex_aliyun_ots/tunnel/utils.ex | kianmeng/ex_aliyun_ots | 554da4a80b7d59640f1b8aed75c2ff81678f0c4d | [
"MIT"
] | null | null | null | lib/ex_aliyun_ots/tunnel/utils.ex | kianmeng/ex_aliyun_ots | 554da4a80b7d59640f1b8aed75c2ff81678f0c4d | [
"MIT"
] | null | null | null | defmodule ExAliyunOts.Tunnel.Utils do
@moduledoc false
alias ExAliyunOts.TableStoreTunnel.{Token, TokenContent, TokenContentV2}
alias ExAliyunOts.Logger
def utc_now_ms() do
DateTime.utc_now() |> DateTime.to_unix(:millisecond)
end
@doc """
This check of channel type will be done from tunnel server.
... | 21.851351 | 74 | 0.5671 |
acc51bb6b2f6aa2ec0d557ed6c8c5814cc9d072b | 400 | ex | Elixir | priv/catalogue/divider/example01.ex | code-shoily/lotus | d14958956103f2376d51974f40bcc7d7c59c2ad9 | [
"MIT"
] | 3 | 2021-09-20T10:34:15.000Z | 2021-09-20T16:23:07.000Z | priv/catalogue/divider/example01.ex | code-shoily/lotus | d14958956103f2376d51974f40bcc7d7c59c2ad9 | [
"MIT"
] | null | null | null | priv/catalogue/divider/example01.ex | code-shoily/lotus | d14958956103f2376d51974f40bcc7d7c59c2ad9 | [
"MIT"
] | 1 | 2021-11-23T13:10:27.000Z | 2021-11-23T13:10:27.000Z | defmodule Lotus.Catalogue.Divider.Example01 do
use Surface.Catalogue.Example,
subject: Lotus.Divider,
catalogue: Lotus.Catalogue,
title: "Divider",
height: "200px",
direction: "horizontal",
container: {:div, class: "uk-container"}
def render(assigns) do
~F"""
<Divider type="small" /... | 22.222222 | 46 | 0.635 |
acc52e067884afa98b81244401f7e1c764caae6e | 276 | ex | Elixir | lib/code_corps/auth/ensure_auth_pipeline.ex | fikape/code-corps-api | c21674b0b2a19fa26945c94268db8894420ca181 | [
"MIT"
] | 275 | 2015-06-23T00:20:51.000Z | 2021-08-19T16:17:37.000Z | lib/code_corps/auth/ensure_auth_pipeline.ex | fikape/code-corps-api | c21674b0b2a19fa26945c94268db8894420ca181 | [
"MIT"
] | 1,304 | 2015-06-26T02:11:54.000Z | 2019-12-12T21:08:00.000Z | lib/code_corps/auth/ensure_auth_pipeline.ex | fikape/code-corps-api | c21674b0b2a19fa26945c94268db8894420ca181 | [
"MIT"
] | 140 | 2016-01-01T18:19:47.000Z | 2020-11-22T06:24:47.000Z | defmodule CodeCorps.Auth.EnsureAuthPipeline do
use Guardian.Plug.Pipeline, otp_app: :code_corps,
module: CodeCorps.Guardian,
error_handler: CodeCorps.Auth.ErrorHandler
plug Guardian.Plug.EnsureAuthenticated
end
| 34.5 | 72 | 0.655797 |
acc550f8583112617d94ef31d92b6335ddb1cb39 | 2,015 | ex | Elixir | lib/rdf/serialization/reader.ex | pukkamustard/rdf-ex | c459d8e7fa548fdfad82643338b68decf380a296 | [
"MIT"
] | null | null | null | lib/rdf/serialization/reader.ex | pukkamustard/rdf-ex | c459d8e7fa548fdfad82643338b68decf380a296 | [
"MIT"
] | null | null | null | lib/rdf/serialization/reader.ex | pukkamustard/rdf-ex | c459d8e7fa548fdfad82643338b68decf380a296 | [
"MIT"
] | null | null | null | defmodule RDF.Serialization.Reader do
@moduledoc """
General functions for reading a `RDF.Graph` or `RDF.Dataset` from a serialization file or encoded-string.
You probably won't use these functions directly, but instead use the automatically
generated functions with same name on a `RDF.Serialization.Format`, w... | 34.152542 | 107 | 0.678412 |
acc567811f9486c1d170ab39c3116097521a3b66 | 170 | ex | Elixir | lib/faker/random/elixir.ex | joshillian/faker | eeede9d7c35c543dcf6abe72dc476e755c80415b | [
"MIT"
] | 540 | 2015-01-05T16:31:49.000Z | 2019-09-25T00:40:27.000Z | lib/faker/random/elixir.ex | echenim/faker | 15172b7d9c2b7711173a5faf3e45bfc4e45d6a97 | [
"MIT"
] | 172 | 2015-01-06T03:55:17.000Z | 2019-10-03T12:58:02.000Z | lib/faker/random/elixir.ex | echenim/faker | 15172b7d9c2b7711173a5faf3e45bfc4e45d6a97 | [
"MIT"
] | 163 | 2015-01-05T21:24:54.000Z | 2019-10-03T07:59:42.000Z | defmodule Faker.Random.Elixir do
@moduledoc """
Default implementation of random functions based on erlang and elixir standard library.
"""
use Faker.Random
end
| 21.25 | 89 | 0.758824 |
acc583cc113a636d8bf3452d9c66d09d57aef407 | 6,965 | exs | Elixir | test/jobs/status_test.exs | nipierre/ex_step_flow | 4345ee57bd4e5eb79138df68d10579ba1b9ec6a1 | [
"MIT"
] | null | null | null | test/jobs/status_test.exs | nipierre/ex_step_flow | 4345ee57bd4e5eb79138df68d10579ba1b9ec6a1 | [
"MIT"
] | null | null | null | test/jobs/status_test.exs | nipierre/ex_step_flow | 4345ee57bd4e5eb79138df68d10579ba1b9ec6a1 | [
"MIT"
] | null | null | null | defmodule StepFlow.Jobs.StatusTest do
use ExUnit.Case
use Plug.Test
alias StepFlow.Jobs.Status
doctest StepFlow
test "get queued state enum label" do
assert "queued" == Status.state_enum_label(:queued)
assert "queued" == Status.state_enum_label(0)
end
test "get skipped state enum label" do
... | 24.875 | 83 | 0.572434 |
acc5953003f06a7bba0f9604ac80baa6e4e2e266 | 10,893 | ex | Elixir | int_sort/lib/int_sort.ex | Maultasche/ElixirLargeSort | 31f8be646309105c8c0dfcda33ab6b3d7b77235a | [
"MIT"
] | 2 | 2020-05-12T15:55:13.000Z | 2020-11-13T16:53:00.000Z | int_sort/lib/int_sort.ex | Maultasche/ElixirLargeSort | 31f8be646309105c8c0dfcda33ab6b3d7b77235a | [
"MIT"
] | null | null | null | int_sort/lib/int_sort.ex | Maultasche/ElixirLargeSort | 31f8be646309105c8c0dfcda33ab6b3d7b77235a | [
"MIT"
] | null | null | null | defmodule IntSort do
@moduledoc """
Contains functionality for sorting and chunking integers as well as merging the
chunk files
"""
alias IntSort.Chunk
alias IntSort.IntermediateFile
@integer_file Application.get_env(:int_sort, :integer_file)
# The chunk files represent the first generation of merge f... | 35.366883 | 127 | 0.681722 |
acc59b2c209d433ce7fe00d0054f23371c72ee3d | 12,858 | ex | Elixir | lib/phoenix/endpoint/supervisor.ex | esambo/phoenix | f7784f86ed803a39eb45486f0e031e974e708818 | [
"MIT"
] | null | null | null | lib/phoenix/endpoint/supervisor.ex | esambo/phoenix | f7784f86ed803a39eb45486f0e031e974e708818 | [
"MIT"
] | null | null | null | lib/phoenix/endpoint/supervisor.ex | esambo/phoenix | f7784f86ed803a39eb45486f0e031e974e708818 | [
"MIT"
] | null | null | null | defmodule Phoenix.Endpoint.Supervisor do
# This module contains the logic used by most functions in Phoenix.Endpoint
# as well the supervisor for sockets, adapters, watchers, etc.
@moduledoc false
require Logger
use Supervisor
@doc """
Starts the endpoint supervision tree.
"""
def start_link(otp_app... | 28.765101 | 108 | 0.655934 |
acc59d479ae6ca8069fcc069bb83d37ec06a0c88 | 2,193 | ex | Elixir | clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/custom_error.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/custom_error.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/custom_error.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 35.95082 | 184 | 0.733698 |
acc5a3b7932dd2bfa64536124236978df540e1bf | 1,090 | ex | Elixir | test/support/conn_case.ex | alissonfpmorais/tucano | d22480fc416d14b44862be2ed89040d92b7c08d1 | [
"MIT"
] | null | null | null | test/support/conn_case.ex | alissonfpmorais/tucano | d22480fc416d14b44862be2ed89040d92b7c08d1 | [
"MIT"
] | null | null | null | test/support/conn_case.ex | alissonfpmorais/tucano | d22480fc416d14b44862be2ed89040d92b7c08d1 | [
"MIT"
] | null | null | null | defmodule Tucano.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 data... | 24.222222 | 68 | 0.702752 |
acc5ce92c80b64e52f4485fca5240a742ad2f951 | 1,197 | ex | Elixir | lib/client/projects_client.ex | littlelines/frex | e3d9005b782fa0c0aaff0c0368f154c45fb7a302 | [
"Apache-2.0"
] | 2 | 2017-02-10T16:46:21.000Z | 2020-05-04T11:50:50.000Z | lib/client/projects_client.ex | littlelines/frex | e3d9005b782fa0c0aaff0c0368f154c45fb7a302 | [
"Apache-2.0"
] | null | null | null | lib/client/projects_client.ex | littlelines/frex | e3d9005b782fa0c0aaff0c0368f154c45fb7a302 | [
"Apache-2.0"
] | 1 | 2019-11-27T15:43:55.000Z | 2019-11-27T15:43:55.000Z | defmodule Frex.Client.Projects do
@moduledoc """
Client module for interacting with the Freshbooks projects endpoint.
Staff have access to the API calls listed below if the Time Tracking
tab is enabled for staff. Each staff member can view all projects to
which he or she is assigned. Each staff member can ... | 26.6 | 70 | 0.694236 |
acc612c773da81ae21bf72cb5de8270566f536b7 | 5,390 | exs | Elixir | test/required_test.exs | MajAhd/elx_validation | 4146a86bf16ea1154d391bde1aa847fe5cc79c4e | [
"MIT"
] | 3 | 2021-07-03T08:27:46.000Z | 2021-08-18T06:00:38.000Z | test/required_test.exs | MajAhd/elx_validation | 4146a86bf16ea1154d391bde1aa847fe5cc79c4e | [
"MIT"
] | 1 | 2021-06-21T19:27:35.000Z | 2021-06-30T18:24:39.000Z | test/required_test.exs | MajAhd/elx_validation | 4146a86bf16ea1154d391bde1aa847fe5cc79c4e | [
"MIT"
] | 1 | 2021-08-13T16:14:13.000Z | 2021-08-13T16:14:13.000Z | defmodule ElxValidation.RequiredTest do
use ExUnit.Case
doctest ElxValidation.Required
# Required test
test "required passed" do
data = %{
name: "Majid ahd",
email: "example@email.com"
}
rules = [
%{
field: "name",
as: "first name",
validate: ["required", ... | 23.232759 | 107 | 0.488683 |
acc6268a15a221a63c405f61a691ba2ec61a7078 | 400 | exs | Elixir | elixir/mix.exs | sndnv/nonamedb | e229ea19df94a89ddd135cf9e2b5bce5f1aa0f6f | [
"Apache-2.0"
] | 1 | 2019-04-21T05:29:54.000Z | 2019-04-21T05:29:54.000Z | elixir/mix.exs | sndnv/nonamedb | e229ea19df94a89ddd135cf9e2b5bce5f1aa0f6f | [
"Apache-2.0"
] | null | null | null | elixir/mix.exs | sndnv/nonamedb | e229ea19df94a89ddd135cf9e2b5bce5f1aa0f6f | [
"Apache-2.0"
] | null | null | null | defmodule Nonamedb.MixProject do
use Mix.Project
def project do
[
app: :nonamedb,
version: "0.1.0",
elixir: "~> 1.6",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
def application do
[
extra_applications: [:logger, :cowboy, :plug]
]
end
defp d... | 14.814815 | 51 | 0.505 |
acc6540a32f0439c2649fe6b4ae55891b9ed8530 | 4,768 | exs | Elixir | test/grizzly/zwave/commands/firmware_md_report_test.exs | jellybob/grizzly | 290bee04cb16acbb9dc996925f5c501697b7ac94 | [
"Apache-2.0"
] | 76 | 2019-09-04T16:56:58.000Z | 2022-03-29T06:54:36.000Z | test/grizzly/zwave/commands/firmware_md_report_test.exs | jellybob/grizzly | 290bee04cb16acbb9dc996925f5c501697b7ac94 | [
"Apache-2.0"
] | 124 | 2019-09-05T14:01:24.000Z | 2022-02-28T22:58:14.000Z | test/grizzly/zwave/commands/firmware_md_report_test.exs | jellybob/grizzly | 290bee04cb16acbb9dc996925f5c501697b7ac94 | [
"Apache-2.0"
] | 10 | 2019-10-23T19:25:45.000Z | 2021-11-17T13:21:20.000Z | defmodule Grizzly.ZWave.Commands.FirmwareMDReportTest do
use ExUnit.Case, async: true
alias Grizzly.ZWave.Command
alias Grizzly.ZWave.Commands.FirmwareMDReport
test "creates the command and validates params" do
{:ok, report} =
FirmwareMDReport.new(
manufacturer_id: 1,
firmware_id: 2,... | 34.057143 | 98 | 0.660864 |
acc668a3e7fc38ed9dc561f644294551de2d0d2f | 1,111 | exs | Elixir | apps/elixir_security_advisory_api_v1/test/elixir_security_advisory_api_v1/schema/query/node_test.exs | ex-security-advisory/api | 75674d42efd3b9f2406233e36244d5cb5f174971 | [
"MIT"
] | 5 | 2019-01-03T18:33:40.000Z | 2021-01-25T10:15:06.000Z | apps/elixir_security_advisory_api_v1/test/elixir_security_advisory_api_v1/schema/query/node_test.exs | ex-security-advisory/api | 75674d42efd3b9f2406233e36244d5cb5f174971 | [
"MIT"
] | 15 | 2018-12-27T16:59:06.000Z | 2019-01-04T17:34:38.000Z | apps/elixir_security_advisory_api_v1/test/elixir_security_advisory_api_v1/schema/query/node_test.exs | ex-security-advisory/api | 75674d42efd3b9f2406233e36244d5cb5f174971 | [
"MIT"
] | null | null | null | defmodule ElixirSecurityAdvisoryApiV1.Schema.Query.NodeTest do
@moduledoc false
use ElixirSecurityAdvisoryApiV1.GraphQLCase
import Mox
setup :verify_on_exit!
@query """
query Node($id: ID!) {
node(id: $id) {
id
__typename
}
}
"""
test "loads vulnerability" do
stub(ElixirSe... | 20.2 | 66 | 0.556256 |
acc68a7b191b8fa733b83f00e3d724f394d9cbb1 | 3,300 | exs | Elixir | scripts/chicago_film_festival.exs | feihong/event-announcer | b73d6f0c286b1101accb0898b16e658b68f9bb01 | [
"Apache-2.0"
] | null | null | null | scripts/chicago_film_festival.exs | feihong/event-announcer | b73d6f0c286b1101accb0898b16e658b68f9bb01 | [
"Apache-2.0"
] | null | null | null | scripts/chicago_film_festival.exs | feihong/event-announcer | b73d6f0c286b1101accb0898b16e658b68f9bb01 | [
"Apache-2.0"
] | null | null | null | defmodule Main do
alias Events.Download
@screening_format "{WDshort}, {Mshort} {D}, {YYYY} {h12}:{m} {AM}"
def main() do
url = "http://www.chicagofilmfestival.com/festival/film-event-listing/"
html = Download.fetch_page("chifilmfest__index", url, %{})
film_urls =
Floki.find(html, "ul.film-list... | 26.190476 | 87 | 0.560909 |
acc698734f6453442b73271c87d8920c665c4e1a | 888 | ex | Elixir | lib/kiq/periodic.ex | locaweb/kiq | fa561b9a1a2361e99b4af5eafc4d3c7ece576ea9 | [
"MIT"
] | 59 | 2018-07-13T23:17:00.000Z | 2021-12-21T07:03:03.000Z | lib/kiq/periodic.ex | locaweb/kiq | fa561b9a1a2361e99b4af5eafc4d3c7ece576ea9 | [
"MIT"
] | 5 | 2019-08-05T13:14:42.000Z | 2022-03-09T12:38:46.000Z | lib/kiq/periodic.ex | locaweb/kiq | fa561b9a1a2361e99b4af5eafc4d3c7ece576ea9 | [
"MIT"
] | 6 | 2018-09-24T13:16:21.000Z | 2021-05-03T08:26:52.000Z | defmodule Kiq.Periodic do
@moduledoc false
alias Kiq.Job
alias Kiq.Periodic.Crontab
@type t :: %__MODULE__{crontab: Crontab.t(), worker: module(), options: Keyword.t()}
@enforce_keys [:crontab, :worker]
defstruct [:crontab, :worker, options: []]
@spec new({binary(), module()} | {binary(), module(), Ke... | 26.909091 | 86 | 0.661036 |
acc6a183e16acc2ebd2c9feda6da3e91be446c0e | 1,068 | ex | Elixir | lib/surface_bootstrap4_demo/application.ex | tschmidleithner/surface_bootstrap4_demo | 9034762e3df1b31832a88a7a08931fe6571e1456 | [
"MIT"
] | null | null | null | lib/surface_bootstrap4_demo/application.ex | tschmidleithner/surface_bootstrap4_demo | 9034762e3df1b31832a88a7a08931fe6571e1456 | [
"MIT"
] | null | null | null | lib/surface_bootstrap4_demo/application.ex | tschmidleithner/surface_bootstrap4_demo | 9034762e3df1b31832a88a7a08931fe6571e1456 | [
"MIT"
] | null | null | null | defmodule SurfaceBootstrap4Demo.Application do
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
use Application
def start(_type, _args) do
children = [
# Start the Telemetry supervisor
SurfaceBootstrap4DemoWeb.Telemetry,
# Sta... | 32.363636 | 79 | 0.737828 |
acc6a97a1613c672d31f3799e87a0c74e1bf7124 | 1,083 | exs | Elixir | code/protocols/obsolete/bitmap_algebra.exs | alvarocamillont/introdu-o_elixir | 1d72d4f4b01d9312c4b066ce3c0fe8d9bfaaade1 | [
"MIT"
] | null | null | null | code/protocols/obsolete/bitmap_algebra.exs | alvarocamillont/introdu-o_elixir | 1d72d4f4b01d9312c4b066ce3c0fe8d9bfaaade1 | [
"MIT"
] | 1 | 2021-03-09T16:27:25.000Z | 2021-03-09T16:27:25.000Z | programming-elixir-book/code/protocols/obsolete/bitmap_algebra.exs | jordanhubbard/elixir-projects | dee341d672e83a45a17a4a85abd54a480f95c506 | [
"BSD-2-Clause"
] | null | null | null | #---
# Excerpted from "Programming Elixir ≥ 1.6",
# published by The Pragmatic Bookshelf.
# Copyrights apply to this code. It may not be used to create training material,
# courses, books, articles, and the like. Contact us if you are in doubt.
# We make no guarantees that this code is fit for any purpose.
# Visit http... | 27.075 | 85 | 0.588181 |
acc6e48f229879c48aad96313616720beedf472a | 1,020 | ex | Elixir | lib/surface/constructs/if.ex | EddyLane/surface | 1f13259cbdf81b5a4740ee13349a48f8b6c54bb5 | [
"MIT"
] | 1 | 2020-12-29T10:43:19.000Z | 2020-12-29T10:43:19.000Z | lib/surface/constructs/if.ex | EddyLane/surface | 1f13259cbdf81b5a4740ee13349a48f8b6c54bb5 | [
"MIT"
] | null | null | null | lib/surface/constructs/if.ex | EddyLane/surface | 1f13259cbdf81b5a4740ee13349a48f8b6c54bb5 | [
"MIT"
] | null | null | null | defmodule Surface.Constructs.If do
@moduledoc """
Provides an alternative to the `:if` directive for wrapping multiple elements in an if expression.
## Examples
```
<If condition={{ @display_link }}>
<Icon name="cheveron_left" />
<a href={{ @item.to }}>{{ @item.label }}</a>
</If>
```
"""
use ... | 21.702128 | 100 | 0.593137 |
acc6e8bcc670f127a2fa96d45764e80e48ef3266 | 26,121 | ex | Elixir | lib/tox/datetime.ex | hrzndhrn/tox | c7439a9eb83b9989b1866a23c8e6feedbb0b56b6 | [
"MIT"
] | 6 | 2020-07-18T06:16:10.000Z | 2021-11-12T14:12:20.000Z | lib/tox/datetime.ex | hrzndhrn/tox | c7439a9eb83b9989b1866a23c8e6feedbb0b56b6 | [
"MIT"
] | null | null | null | lib/tox/datetime.ex | hrzndhrn/tox | c7439a9eb83b9989b1866a23c8e6feedbb0b56b6 | [
"MIT"
] | null | null | null | defmodule Tox.DateTime do
@moduledoc """
A set of functions to work with `DateTime`.
All examples are using
[`TimeZoneInfo.TimeZoneDatabase`](https://hexdocs.pm/time_zone_info/TimeZoneInfo.TimeZoneDatabase.html). But everything also works with any other time zone DB as long as the time
zones are available in... | 34.145098 | 180 | 0.622641 |
acc6f94283e1f3245eb16612a2509f0172207db4 | 1,381 | exs | Elixir | apps/admin_api/test/admin_api/v1/channels/account_channel_test.exs | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 322 | 2018-02-28T07:38:44.000Z | 2020-05-27T23:09:55.000Z | apps/admin_api/test/admin_api/v1/channels/account_channel_test.exs | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 643 | 2018-02-28T12:05:20.000Z | 2020-05-22T08:34:38.000Z | apps/admin_api/test/admin_api/v1/channels/account_channel_test.exs | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 63 | 2018-02-28T10:57:06.000Z | 2020-05-27T23:10:38.000Z | # Copyright 2018-2019 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 ... | 30.688889 | 74 | 0.709631 |
acc73d227544c1412aed2cfb11035bfc887d5490 | 1,913 | exs | Elixir | kousa/test/broth/_message/room/unban_test.exs | LeonardSSH/dogehouse | 584055ad407bc37fa35cdf36ebb271622e29d436 | [
"MIT"
] | 9 | 2021-03-17T03:56:18.000Z | 2021-09-24T22:45:14.000Z | kousa/test/broth/_message/room/unban_test.exs | ActuallyTomas/dogehouse | 8c3d2cd1d7e99e173f0658759467a391c4a90c4e | [
"MIT"
] | 12 | 2021-07-06T12:51:13.000Z | 2022-03-16T12:38:18.000Z | kousa/test/broth/_message/room/unban_test.exs | ActuallyTomas/dogehouse | 8c3d2cd1d7e99e173f0658759467a391c4a90c4e | [
"MIT"
] | 4 | 2021-07-15T20:33:50.000Z | 2022-03-27T12:46:47.000Z | defmodule BrothTest.Message.Room.UnbanTest do
use ExUnit.Case, async: true
@moduletag :message
alias Broth.Message.Room.Unban
setup do
{:ok, uuid: UUID.uuid4()}
end
describe "when you send a unban message" do
test "it populates userId", %{uuid: uuid} do
assert {:ok,
%{
... | 30.854839 | 96 | 0.465761 |
acc7a8e6bd0b8020a12014cd294ef7a2c5d83bbe | 789 | ex | Elixir | lib/commanded/commands/execution_result.ex | edwardzhou/commanded | f104cbf5ff3a37a6e9b637bc07ccde1d79c0725d | [
"MIT"
] | 1 | 2018-12-28T20:48:23.000Z | 2018-12-28T20:48:23.000Z | lib/commanded/commands/execution_result.ex | edwardzhou/commanded | f104cbf5ff3a37a6e9b637bc07ccde1d79c0725d | [
"MIT"
] | 1 | 2018-12-05T18:17:08.000Z | 2018-12-05T18:17:08.000Z | lib/commanded/commands/execution_result.ex | edwardzhou/commanded | f104cbf5ff3a37a6e9b637bc07ccde1d79c0725d | [
"MIT"
] | 1 | 2018-12-28T20:48:24.000Z | 2018-12-28T20:48:24.000Z | defmodule Commanded.Commands.ExecutionResult do
@moduledoc """
Contains the events and metadata created by a command succesfully executed
against an aggregate.
The available fields are:
- `aggregate_uuid` - identity of the aggregate instance.
- `aggregate_version` - resultant version of the aggregate afte... | 25.451613 | 76 | 0.704689 |
acc7a9e939566fc1e0bc490e5fcb0006bd1f8ee0 | 2,596 | exs | Elixir | test/sentry_test.exs | runhyve/sentry-elixir | c27a52915767af5ff57bb5b63311b6e8e1081240 | [
"MIT"
] | null | null | null | test/sentry_test.exs | runhyve/sentry-elixir | c27a52915767af5ff57bb5b63311b6e8e1081240 | [
"MIT"
] | null | null | null | test/sentry_test.exs | runhyve/sentry-elixir | c27a52915767af5ff57bb5b63311b6e8e1081240 | [
"MIT"
] | null | null | null | defmodule SentryTest do
use ExUnit.Case
import ExUnit.CaptureLog
import Sentry.TestEnvironmentHelper
test "excludes events properly" do
bypass = Bypass.open()
Bypass.expect(bypass, fn conn ->
{:ok, body, conn} = Plug.Conn.read_body(conn)
assert body =~ "RuntimeError"
assert conn.requ... | 27.041667 | 94 | 0.590524 |
acc7b0b378703d86630aaeef350c70e4ab4acbc6 | 55,170 | ex | Elixir | lib/phoenix_html/form.ex | sabiwara/phoenix_html | 5ebc9c2af9a158ad973d4db799a294774e1741f0 | [
"MIT"
] | null | null | null | lib/phoenix_html/form.ex | sabiwara/phoenix_html | 5ebc9c2af9a158ad973d4db799a294774e1741f0 | [
"MIT"
] | null | null | null | lib/phoenix_html/form.ex | sabiwara/phoenix_html | 5ebc9c2af9a158ad973d4db799a294774e1741f0 | [
"MIT"
] | null | null | null | defmodule Phoenix.HTML.Form do
@moduledoc ~S"""
Helpers related to producing HTML forms.
The functions in this module can be used in three
distinct scenarios:
* with changeset data - when information to populate
the form comes from a changeset
* with limited data - when a form is created withou... | 30.994382 | 112 | 0.634167 |
acc7b6dbebfa8d3ba14fc741a3554ba6a9fca43e | 739 | ex | Elixir | lib/cforum/messages/message_audit_json.ex | jrieger/cforum_ex | 61f6ce84708cb55bd0feedf69853dae64146a7a0 | [
"MIT"
] | 16 | 2019-04-04T06:33:33.000Z | 2021-08-16T19:34:31.000Z | lib/cforum/messages/message_audit_json.ex | jrieger/cforum_ex | 61f6ce84708cb55bd0feedf69853dae64146a7a0 | [
"MIT"
] | 294 | 2019-02-10T11:10:27.000Z | 2022-03-30T04:52:53.000Z | lib/cforum/messages/message_audit_json.ex | jrieger/cforum_ex | 61f6ce84708cb55bd0feedf69853dae64146a7a0 | [
"MIT"
] | 10 | 2019-02-10T10:39:24.000Z | 2021-07-06T11:46:05.000Z | defmodule Cforum.Messages.MessageAuditJson do
@msg_auditing_fields_to_ignore [
:__meta__,
:user,
:editor,
:forum,
:messages,
:parent,
:votes,
:cites,
:versions,
:messages
]
def to_json(message) do
message = Cforum.Repo.preload(message, [:thread, :tags])
message
... | 25.482759 | 90 | 0.679296 |
acc802dece23b30be275b53993316f963d74baf4 | 881 | ex | Elixir | lib/contracts_api/superscription/address.ex | gissandrogama/contracts_api | 13bcd292637d0e2bc4d2a6c05f5b3266e8bf28e1 | [
"MIT"
] | null | null | null | lib/contracts_api/superscription/address.ex | gissandrogama/contracts_api | 13bcd292637d0e2bc4d2a6c05f5b3266e8bf28e1 | [
"MIT"
] | 2 | 2021-03-16T06:43:04.000Z | 2021-03-16T06:54:55.000Z | lib/contracts_api/superscription/address.ex | gissandrogama/contracts_api | 13bcd292637d0e2bc4d2a6c05f5b3266e8bf28e1 | [
"MIT"
] | null | null | null | defmodule ContractsApi.Superscription.Address do
@moduledoc """
schema of addresses
"""
use Ecto.Schema
import Ecto.Changeset
alias ContractsApi.LegalEntytis.Company
alias ContractsApi.PhysicalPersons.Person
@primary_key {:id, :binary_id, autogenerate: true}
@foreign_key_type :binary_id
schema "ad... | 25.171429 | 92 | 0.704881 |
acc815cb7b9859f8822699af7b6a88f9dd7487a9 | 237 | ex | Elixir | lib/elixbwe/application/tag/tag_service.ex | pwgn/elixbwe | ce8baedfb923d36991ff944de368ce7008e72805 | [
"MIT"
] | 1 | 2019-03-17T15:04:36.000Z | 2019-03-17T15:04:36.000Z | lib/elixbwe/application/tag/tag_service.ex | pwgn/elixbwe | ce8baedfb923d36991ff944de368ce7008e72805 | [
"MIT"
] | null | null | null | lib/elixbwe/application/tag/tag_service.ex | pwgn/elixbwe | ce8baedfb923d36991ff944de368ce7008e72805 | [
"MIT"
] | null | null | null | defmodule Elixbwe.Application.Tag.TagService do
def get_all() do
tags = Elixbwe.Repo.all(Elixbwe.Domain.Model.Tag)
tags
end
def get_by_id(id) do
tag = Elixbwe.Repo.get(Elixbwe.Domain.Model.Tag, id)
tag
end
end
| 16.928571 | 56 | 0.696203 |
acc82118196c06045e0ba269fa2eb4b768c4c792 | 11,692 | ex | Elixir | lib/guardian/plug.ex | sparta-science/guardian | d625c7d2bf8d5d02338857748a08047f0b8521ac | [
"MIT"
] | null | null | null | lib/guardian/plug.ex | sparta-science/guardian | d625c7d2bf8d5d02338857748a08047f0b8521ac | [
"MIT"
] | null | null | null | lib/guardian/plug.ex | sparta-science/guardian | d625c7d2bf8d5d02338857748a08047f0b8521ac | [
"MIT"
] | null | null | null | if Code.ensure_loaded?(Plug) do
defmodule Guardian.Plug do
@moduledoc ~S"""
Provides functions for the implementation module for dealing with
Guardian in a Plug environment
```elixir
defmodule MyApp.Tokens do
use Guardian, otp_app: :my_app
# ... snip
end
```
Your impleme... | 30.368831 | 99 | 0.597246 |
acc83f4188962e90f938c924bbbfd9b462f53c58 | 323 | exs | Elixir | priv/repo/migrations/20180522013006_create_categories.exs | coderplanets/coderplanets_server | 3663e56340d6d050e974c91f7e499d8424fc25e9 | [
"Apache-2.0"
] | 240 | 2018-11-06T09:36:54.000Z | 2022-02-20T07:12:36.000Z | priv/repo/migrations/20180522013006_create_categories.exs | coderplanets/coderplanets_server | 3663e56340d6d050e974c91f7e499d8424fc25e9 | [
"Apache-2.0"
] | 363 | 2018-07-11T03:38:14.000Z | 2021-12-14T01:42:40.000Z | priv/repo/migrations/20180522013006_create_categories.exs | mydearxym/mastani_server | f24034a4a5449200165cf4a547964a0961793eab | [
"Apache-2.0"
] | 22 | 2019-01-27T11:47:56.000Z | 2021-02-28T13:17:52.000Z | defmodule GroupherServer.Repo.Migrations.CreateCategories do
use Ecto.Migration
def change do
create table(:categories) do
add(:title, :string)
add(:user_id, references(:users, on_delete: :delete_all), null: false)
timestamps()
end
create(unique_index(:categories, [:title]))
end
e... | 21.533333 | 76 | 0.693498 |
acc85ed5076156a91cce7995e8d4024dbd0c0197 | 229 | exs | Elixir | test/support/datetime_sigil.exs | camelohq/cocktail | 9b25d8f24d148397be6537ab1414abdbdec1ce8d | [
"MIT"
] | null | null | null | test/support/datetime_sigil.exs | camelohq/cocktail | 9b25d8f24d148397be6537ab1414abdbdec1ce8d | [
"MIT"
] | 1 | 2020-11-12T10:04:27.000Z | 2020-11-12T10:13:29.000Z | test/support/datetime_sigil.exs | camelohq/cocktail | 9b25d8f24d148397be6537ab1414abdbdec1ce8d | [
"MIT"
] | 2 | 2020-08-03T12:03:39.000Z | 2020-11-11T14:36:45.000Z | defmodule Cocktail.TestSupport.DateTimeSigil do
def sigil_Y(string, []) do
[date, time, zone] = String.split(string, " ")
"#{date} #{time}"
|> NaiveDateTime.from_iso8601!()
|> Timex.to_datetime(zone)
end
end
| 22.9 | 50 | 0.650655 |
acc8888f9dcc80be8606bb45476c49fbd8c0af30 | 6,538 | exs | Elixir | test/lib/bamboo/adapters/mandrill_adapter_test.exs | Raulkumar/bamboo | 0fcff1bf61e595eb821bc691ed9370b6a092afbf | [
"MIT"
] | 1 | 2021-12-01T13:37:19.000Z | 2021-12-01T13:37:19.000Z | test/lib/bamboo/adapters/mandrill_adapter_test.exs | Raulkumar/bamboo | 0fcff1bf61e595eb821bc691ed9370b6a092afbf | [
"MIT"
] | 1 | 2021-02-23T18:44:13.000Z | 2021-02-23T18:44:13.000Z | test/lib/bamboo/adapters/mandrill_adapter_test.exs | Raulkumar/bamboo | 0fcff1bf61e595eb821bc691ed9370b6a092afbf | [
"MIT"
] | 1 | 2021-04-20T02:45:55.000Z | 2021-04-20T02:45:55.000Z | defmodule Bamboo.MandrillAdapterTest do
use ExUnit.Case
alias Bamboo.Email
alias Bamboo.MandrillHelper
alias Bamboo.MandrillAdapter
@config %{adapter: MandrillAdapter, api_key: "123_abc"}
@config_with_bad_key %{adapter: MandrillAdapter, api_key: nil}
defmodule FakeMandrill do
use Plug.Router
pl... | 29.853881 | 92 | 0.599878 |
acc89f6021e289b2f7a314a29ac6a6d2d7908b6e | 1,974 | ex | Elixir | clients/sheets/lib/google_api/sheets/v4/model/source_and_destination.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/sheets/lib/google_api/sheets/v4/model/source_and_destination.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/sheets/lib/google_api/sheets/v4/model/source_and_destination.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | 1 | 2018-07-28T20:50:50.000Z | 2018-07-28T20:50:50.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 37.245283 | 260 | 0.74924 |
acc8d72e54693de38de445988bfd79aef59cc158 | 3,612 | ex | Elixir | lib/mix/lib/mix/tasks/deps.tree.ex | elkinsd/elixir | 810965e193cb57b82363e7c0c97b719743b7964f | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/tasks/deps.tree.ex | elkinsd/elixir | 810965e193cb57b82363e7c0c97b719743b7964f | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/tasks/deps.tree.ex | elkinsd/elixir | 810965e193cb57b82363e7c0c97b719743b7964f | [
"Apache-2.0"
] | null | null | null | defmodule Mix.Tasks.Deps.Tree do
use Mix.Task
@shortdoc "Prints the dependency tree"
@recursive true
@moduledoc """
Prints the dependency tree.
mix deps.tree
If no dependency is given, it uses the tree defined in the `mix.exs` file.
## Command line options
* `--only` - the enviroment to sh... | 28.896 | 102 | 0.609635 |
acc90d8639a9b0e6a901eb7aae12b5fcf0d98079 | 1,623 | exs | Elixir | mix.exs | CMcDonald82/phoenix-api-starter | c3ece669ea047dc523c867e7609486f1a1818a1f | [
"MIT"
] | null | null | null | mix.exs | CMcDonald82/phoenix-api-starter | c3ece669ea047dc523c867e7609486f1a1818a1f | [
"MIT"
] | null | null | null | mix.exs | CMcDonald82/phoenix-api-starter | c3ece669ea047dc523c867e7609486f1a1818a1f | [
"MIT"
] | null | null | null | defmodule PhoenixApiStarter.Mixfile do
use Mix.Project
def project do
[
app: :phoenix_api_starter,
version: "0.0.1",
elixir: "~> 1.6",
elixirc_paths: elixirc_paths(Mix.env),
compilers: [:phoenix, :gettext] ++ Mix.compilers,
start_permanent: Mix.env == :prod,
aliases: a... | 26.177419 | 79 | 0.583487 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.