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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c85508ba21c5c0a6ac90bc2985125a782f99bc6c | 2,021 | ex | Elixir | apps/mishka_html/lib/mishka_html_web/live/components/admin/subscription/delete_error_component.ex | mishka-group/mishka-cms | 4e34ed646f807687f4ae809e862acb6f2c5aacef | [
"Apache-2.0"
] | 35 | 2021-06-26T09:05:50.000Z | 2022-03-30T15:41:22.000Z | apps/mishka_html/lib/mishka_html_web/live/components/admin/subscription/delete_error_component.ex | mishka-group/mishka-cms | 4e34ed646f807687f4ae809e862acb6f2c5aacef | [
"Apache-2.0"
] | 101 | 2021-01-01T09:54:07.000Z | 2022-03-28T10:02:24.000Z | apps/mishka_html/lib/mishka_html_web/live/components/admin/subscription/delete_error_component.ex | mishka-group/mishka-cms | 4e34ed646f807687f4ae809e862acb6f2c5aacef | [
"Apache-2.0"
] | 8 | 2021-01-17T17:08:07.000Z | 2022-03-11T16:12:06.000Z | defmodule MishkaHtmlWeb.Admin.Subscription.DeleteErrorComponent do
use MishkaHtmlWeb, :live_component
def render(assigns) do
~L"""
<div class="error-card-modal col">
<div class="alert alert-danger vazir rtl" role="alert">
<div class="col-sm-6 svg-div-error-modal">
<svg xmlns="h... | 54.621622 | 270 | 0.628897 |
c8553c34dd35979e66d7b8c8c757efde2ab8e4e2 | 2,334 | ex | Elixir | clients/ad_mob/lib/google_api/ad_mob/v1/model/date.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/ad_mob/lib/google_api/ad_mob/v1/model/date.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/ad_mob/lib/google_api/ad_mob/v1/model/date.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 44.037736 | 548 | 0.711225 |
c8555be3357ca4e39d5bfdd4617660ac75c69680 | 561 | exs | Elixir | onboarding/service/priv/repo/migrations/20160824020185_create_merchant_applications.exs | FoxComm/highlander | 1aaf8f9e5353b94c34d574c2a92206a1c363b5be | [
"MIT"
] | 10 | 2018-04-12T22:29:52.000Z | 2021-10-18T17:07:45.000Z | onboarding/service/priv/repo/migrations/20160824020185_create_merchant_applications.exs | FoxComm/highlander | 1aaf8f9e5353b94c34d574c2a92206a1c363b5be | [
"MIT"
] | null | null | null | onboarding/service/priv/repo/migrations/20160824020185_create_merchant_applications.exs | FoxComm/highlander | 1aaf8f9e5353b94c34d574c2a92206a1c363b5be | [
"MIT"
] | 1 | 2018-07-06T18:42:05.000Z | 2018-07-06T18:42:05.000Z | defmodule OnboardingService.Repo.Migrations.CreateMerchantApplication do
use Ecto.Migration
def change do
create table(:merchant_applications) do
add :reference_number, :binary_id
add :name, :string
add :business_name, :string
add :phone_number, :string
add :email_address, :string... | 25.5 | 72 | 0.698752 |
c8556a0754ee03ca8df9626f30a934177315bfef | 75 | ex | Elixir | test/fixtures/drunkin_phoenix_1_4/lib/drunkin_phoenix_web/views/page_view.ex | willfore/bootleg_phoenix | ec49516ff9b3d3e2c3ad13fa6026fb614e8c527e | [
"MIT"
] | null | null | null | test/fixtures/drunkin_phoenix_1_4/lib/drunkin_phoenix_web/views/page_view.ex | willfore/bootleg_phoenix | ec49516ff9b3d3e2c3ad13fa6026fb614e8c527e | [
"MIT"
] | null | null | null | test/fixtures/drunkin_phoenix_1_4/lib/drunkin_phoenix_web/views/page_view.ex | willfore/bootleg_phoenix | ec49516ff9b3d3e2c3ad13fa6026fb614e8c527e | [
"MIT"
] | null | null | null | defmodule DrunkinPhoenixWeb.PageView do
use DrunkinPhoenixWeb, :view
end
| 18.75 | 39 | 0.84 |
c85574f34c410cb08b317476cdda353836f2f4c7 | 553 | ex | Elixir | apps/local_ledger_db/lib/repo.ex | vanmil/ewallet | 6c1aca95a83e0a9d93007670a40d8c45764a8122 | [
"Apache-2.0"
] | 1 | 2018-12-07T06:21:21.000Z | 2018-12-07T06:21:21.000Z | apps/local_ledger_db/lib/repo.ex | vanmil/ewallet | 6c1aca95a83e0a9d93007670a40d8c45764a8122 | [
"Apache-2.0"
] | null | null | null | apps/local_ledger_db/lib/repo.ex | vanmil/ewallet | 6c1aca95a83e0a9d93007670a40d8c45764a8122 | [
"Apache-2.0"
] | null | null | null | defmodule LocalLedgerDB.Repo do
use Ecto.Repo, otp_app: :local_ledger_db
# Workaround an issue where ecto.migrate task won't start the app
# thus DeferredConfig.populate is not getting called.
#
# Ecto itself only supports {:system, ENV_VAR} tuple, but not
# DeferredConfig's {:system, ENV_VAR, DEFAULT} tup... | 30.722222 | 67 | 0.698011 |
c8558888158d7c0156bc8887991be80dd30e8331 | 7,096 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/api/account_permissions.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/api/account_permissions.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/api/account_permissions.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 41.255814 | 196 | 0.625986 |
c85598f19f3ac6e026d8629c4075e286547644fe | 211 | exs | Elixir | priv/test_repo/migrations/20170709182918_add_test_model.exs | arsduo/load_resource | 1b1c438479b633331aec07a44299f6931b2f479a | [
"MIT"
] | 3 | 2017-07-11T16:40:18.000Z | 2018-04-18T22:10:36.000Z | priv/test_repo/migrations/20170709182918_add_test_model.exs | arsduo/load_resource | 1b1c438479b633331aec07a44299f6931b2f479a | [
"MIT"
] | 1 | 2017-07-12T00:46:45.000Z | 2017-07-13T00:04:23.000Z | priv/test_repo/migrations/20170709182918_add_test_model.exs | arsduo/load_resource | 1b1c438479b633331aec07a44299f6931b2f479a | [
"MIT"
] | null | null | null | defmodule TestRepo.Migrations.AddTestModel do
use Ecto.Migration
def change do
create table(:books) do
add :title, :string
add :user_id, :int
add :publisher, :string
end
end
end
| 17.583333 | 45 | 0.663507 |
c855ba4b365af3dacb85715da7d5ebf65ed58c17 | 2,586 | ex | Elixir | lib/event_emitter.ex | braynm/wallaby | bdc7716285ad657dca0847144213ed98fff3a63c | [
"MIT"
] | 926 | 2016-03-28T17:01:54.000Z | 2019-11-05T11:59:58.000Z | lib/event_emitter.ex | braynm/wallaby | bdc7716285ad657dca0847144213ed98fff3a63c | [
"MIT"
] | 377 | 2016-03-17T00:35:56.000Z | 2019-11-03T07:15:24.000Z | lib/event_emitter.ex | braynm/wallaby | bdc7716285ad657dca0847144213ed98fff3a63c | [
"MIT"
] | 144 | 2016-03-29T15:28:28.000Z | 2019-10-31T00:48:42.000Z | defmodule EventEmitter do
@moduledoc false
# This module offers telemetry style event emission for testing purposes.
# If you'd like to emit a message to the event stream, you can call `emit/1` from your
# implementation code. This is macro, and will not result in any AST injection when not being
# compiled ... | 21.731092 | 99 | 0.62761 |
c855c122185b67f7a24b3cfd9fefef666d05e8da | 455 | exs | Elixir | test/random_test.exs | sleepycat/tempfile | 69bb1cddca7d5a35c09e691518907d125ef7b619 | [
"MIT"
] | null | null | null | test/random_test.exs | sleepycat/tempfile | 69bb1cddca7d5a35c09e691518907d125ef7b619 | [
"MIT"
] | null | null | null | test/random_test.exs | sleepycat/tempfile | 69bb1cddca7d5a35c09e691518907d125ef7b619 | [
"MIT"
] | null | null | null | defmodule TempfileRandomTest do
use ExUnit.Case
setup do
# :random.seed returns a default value unless you pass it data.
{:ok, seed: :random.seed }
end
test "it randomly selects from the given set of characters" do
assert Tempfile.Random.selections("a", 1) == "a"
end
test "it returns the numb... | 25.277778 | 83 | 0.703297 |
c855c17596a1cfcba9300bfe3ab597a951746f44 | 522 | ex | Elixir | lib/swedbankpay_checkout/client/psp/consumers/post_response.ex | hooplab/swedbank-pay-checkout-elixir | 91c9034d898907d15c513623519382a0648212c3 | [
"MIT"
] | null | null | null | lib/swedbankpay_checkout/client/psp/consumers/post_response.ex | hooplab/swedbank-pay-checkout-elixir | 91c9034d898907d15c513623519382a0648212c3 | [
"MIT"
] | null | null | null | lib/swedbankpay_checkout/client/psp/consumers/post_response.ex | hooplab/swedbank-pay-checkout-elixir | 91c9034d898907d15c513623519382a0648212c3 | [
"MIT"
] | null | null | null | defmodule SwedbankpayCheckout.Client.Psp.Consumers.PostResponse do
@moduledoc """
"""
@typedoc """
Root response for initiating a checkin.
See https://developer.swedbankpay.com/checkout/checkin
"""
@type t :: %__MODULE__{
:token => String.t(),
:operations => [SwedbankpayCheckout.Mode... | 19.333333 | 66 | 0.636015 |
c855cdde96e3c1abc0023a02f55d11820e99f3f7 | 1,508 | ex | Elixir | test/support/data_case.ex | V-Sekai/uro | 0b23da65d5c7e459efcd6b2c3d9bdf91c533b737 | [
"MIT"
] | 1 | 2022-01-11T04:05:39.000Z | 2022-01-11T04:05:39.000Z | test/support/data_case.ex | V-Sekai/uro | 0b23da65d5c7e459efcd6b2c3d9bdf91c533b737 | [
"MIT"
] | 35 | 2021-02-10T08:18:57.000Z | 2021-05-06T17:19:50.000Z | test/support/data_case.ex | V-Sekai/uro | 0b23da65d5c7e459efcd6b2c3d9bdf91c533b737 | [
"MIT"
] | null | null | null | defmodule Uro.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,
we enable the SQL sandbox, so changes done to the d... | 26.928571 | 77 | 0.683687 |
c855d8300a4bcb218deca8b22694a4ed7bed1ceb | 1,342 | ex | Elixir | lib/oli_web/live/history/restore_revision_modal.ex | malav2110/oli-torus | 8af64e762a7c8a2058bd27a7ab8e96539ffc055f | [
"MIT"
] | 45 | 2020-04-17T15:40:27.000Z | 2022-03-25T00:13:30.000Z | lib/oli_web/live/history/restore_revision_modal.ex | malav2110/oli-torus | 8af64e762a7c8a2058bd27a7ab8e96539ffc055f | [
"MIT"
] | 944 | 2020-02-13T02:37:01.000Z | 2022-03-31T17:50:07.000Z | lib/oli_web/live/history/restore_revision_modal.ex | malav2110/oli-torus | 8af64e762a7c8a2058bd27a7ab8e96539ffc055f | [
"MIT"
] | 23 | 2020-07-28T03:36:13.000Z | 2022-03-17T14:29:02.000Z | defmodule OliWeb.History.RestoreRevisionModal do
use Phoenix.LiveComponent
use Phoenix.HTML
def render(assigns) do
~L"""
<div class="modal fade show" id="<%= @id %>" tabindex="-1" role="dialog" aria-hidden="true" phx-hook="ModalLaunch">
<div class="modal-dialog" role="document">
<div class=... | 35.315789 | 119 | 0.522355 |
c855d9cdfb2a433b34fd835a34e4c6940473d1a6 | 156 | exs | Elixir | thy_supervisor/test/thy_supervisor_test.exs | mrmarbury/TheLittleElixirAndOTPGuideBook | 5aa46cdaee896ab5ecd87d3cf86bd7f9140fcda8 | [
"Apache-2.0"
] | null | null | null | thy_supervisor/test/thy_supervisor_test.exs | mrmarbury/TheLittleElixirAndOTPGuideBook | 5aa46cdaee896ab5ecd87d3cf86bd7f9140fcda8 | [
"Apache-2.0"
] | null | null | null | thy_supervisor/test/thy_supervisor_test.exs | mrmarbury/TheLittleElixirAndOTPGuideBook | 5aa46cdaee896ab5ecd87d3cf86bd7f9140fcda8 | [
"Apache-2.0"
] | null | null | null | defmodule ThySupervisorTest do
use ExUnit.Case
doctest ThySupervisor
test "greets the world" do
assert ThySupervisor.hello() == :world
end
end
| 17.333333 | 42 | 0.74359 |
c855e931dc766f4264b12a0472fdbdf923ddd172 | 346 | exs | Elixir | priv/repo/migrations/20190510071926_add_stripe_customer_id_to_users.exs | sitedata/sanbase2 | 8da5e44a343288fbc41b68668c6c80ae8547d557 | [
"MIT"
] | 81 | 2017-11-20T01:20:22.000Z | 2022-03-05T12:04:25.000Z | priv/repo/migrations/20190510071926_add_stripe_customer_id_to_users.exs | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | 359 | 2017-10-15T14:40:53.000Z | 2022-01-25T13:34:20.000Z | priv/repo/migrations/20190510071926_add_stripe_customer_id_to_users.exs | sitedata/sanbase2 | 8da5e44a343288fbc41b68668c6c80ae8547d557 | [
"MIT"
] | 16 | 2017-11-19T13:57:40.000Z | 2022-02-07T08:13:02.000Z | defmodule Sanbase.Repo.Migrations.AddStripeCustomerIdToUsers do
use Ecto.Migration
@table :users
def up do
alter table(@table) do
add(:stripe_customer_id, :string)
end
create(unique_index(@table, [:stripe_customer_id]))
end
def down do
alter table(@table) do
remove(:stripe_custo... | 18.210526 | 63 | 0.696532 |
c8560f010731b7d4467dad032236ba0ae1a8b976 | 5,983 | exs | Elixir | test/binary_test.exs | comboy/elixir-binary | fd2e0df233272fc974584939da4ca3b16289e09c | [
"MIT"
] | 17 | 2017-04-19T20:37:50.000Z | 2021-12-12T09:13:09.000Z | test/binary_test.exs | comboy/elixir-binary | fd2e0df233272fc974584939da4ca3b16289e09c | [
"MIT"
] | 2 | 2018-04-27T08:30:08.000Z | 2018-06-20T20:31:23.000Z | test/binary_test.exs | comboy/elixir-binary | fd2e0df233272fc974584939da4ca3b16289e09c | [
"MIT"
] | 1 | 2018-04-25T17:16:52.000Z | 2018-04-25T17:16:52.000Z | defmodule BinaryTest do
use ExUnit.Case
doctest Binary
import Binary
test "to_list" do
assert to_list(<<>>) == []
assert to_list(<<1, 2>>) == [1,2]
assert to_list("moo") == 'moo'
end
test "From_list" do
assert from_list([]) == <<>>
assert from_list([3, 1, 7]) == <<3, 1, 7>>
assert... | 30.065327 | 73 | 0.448437 |
c85636fa6cfd98f6bbff775ab86f0b5a5409c2d9 | 5,765 | ex | Elixir | lib/mix/lib/mix/tasks/deps.compile.ex | carlosantoniodasilva/elixir | 0b7d1c9d4964cd6699b72298294844d8d7d694b5 | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/tasks/deps.compile.ex | carlosantoniodasilva/elixir | 0b7d1c9d4964cd6699b72298294844d8d7d694b5 | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/tasks/deps.compile.ex | carlosantoniodasilva/elixir | 0b7d1c9d4964cd6699b72298294844d8d7d694b5 | [
"Apache-2.0"
] | null | null | null | defmodule Mix.Tasks.Deps.Compile do
use Mix.Task
@shortdoc "Compile dependencies"
@moduledoc """
Compile dependencies.
By default, compile all dependencies. A list of dependencies can
be given to force the compilation of specific dependencies.
This task attempts to detect if the project contains one o... | 30.342105 | 100 | 0.621336 |
c85669e3b2dd081d90363fac63d5f011a268e107 | 654 | ex | Elixir | apps/plant_monitor_web/lib/plant_monitor_web/plugs/validate_access_token.ex | bartoszgorka/PlantMonitor | 23e18cd76c51bd8eee021ee98668926de885047b | [
"MIT"
] | 2 | 2019-01-25T21:21:56.000Z | 2021-02-24T08:18:51.000Z | apps/plant_monitor_web/lib/plant_monitor_web/plugs/validate_access_token.ex | bartoszgorka/PlantMonitor | 23e18cd76c51bd8eee021ee98668926de885047b | [
"MIT"
] | null | null | null | apps/plant_monitor_web/lib/plant_monitor_web/plugs/validate_access_token.ex | bartoszgorka/PlantMonitor | 23e18cd76c51bd8eee021ee98668926de885047b | [
"MIT"
] | null | null | null | defmodule PlantMonitorWeb.Plugs.ValidateAccessToken do
@moduledoc false
import Plug.Conn
def init(opts), do: opts
def call(conn, _params \\ %{}) do
conn
|> assign_token_claims()
end
defp assign_token_claims(conn) do
with ["Bearer " <> token] <- get_req_header(conn, "authorization"),
... | 21.8 | 85 | 0.643731 |
c8569b5a50c8a1828249f4141fb7d919f661df1e | 3,925 | ex | Elixir | lib/glimesh/channel_lookups.ex | aMytho/glimesh.tv | f2855e83647611f33ecbdb21ab35d716933db024 | [
"MIT"
] | null | null | null | lib/glimesh/channel_lookups.ex | aMytho/glimesh.tv | f2855e83647611f33ecbdb21ab35d716933db024 | [
"MIT"
] | null | null | null | lib/glimesh/channel_lookups.ex | aMytho/glimesh.tv | f2855e83647611f33ecbdb21ab35d716933db024 | [
"MIT"
] | null | null | null | defmodule Glimesh.ChannelLookups do
@moduledoc """
Channel Filtering Functionality
"""
import Ecto.Query, warn: false
alias Glimesh.AccountFollows.Follower
alias Glimesh.Accounts.User
alias Glimesh.Repo
alias Glimesh.Streams.{Category, Channel, Tag}
## Filtering
def list_channels(wheres \\ []) d... | 26.342282 | 90 | 0.609172 |
c856c4a5028d609a934b6cf5abd1796e80ac8987 | 22,806 | ex | Elixir | lib/elixir/lib/map.ex | allansson/elixir | 3db086a51eb48d4fef05c7f9b698a7da97128a2d | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/map.ex | allansson/elixir | 3db086a51eb48d4fef05c7f9b698a7da97128a2d | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/map.ex | allansson/elixir | 3db086a51eb48d4fef05c7f9b698a7da97128a2d | [
"Apache-2.0"
] | null | null | null | defmodule Map do
@moduledoc """
A set of functions for working with maps.
Maps are the "go to" key-value data structure in Elixir. Maps can be created
with the `%{}` syntax, and key-value pairs can be expressed as `key => value`:
iex> %{}
%{}
iex> %{"one" => :two, 3 => "four"}
%{3 => "... | 25.653543 | 98 | 0.572919 |
c856de2e878fa37420a03c034f8ff53b820f7734 | 3,276 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/tcp_health_check.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/compute/lib/google_api/compute/v1/model/tcp_health_check.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/tcp_health_check.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 43.105263 | 289 | 0.710317 |
c856eb5f852c2f550981d77247a0e5485f1ffb09 | 4,173 | exs | Elixir | test/astarte_core/mapping/value_type_test.exs | Pavinati/astarte_core | dd37ddd2b1bdcef0b1474be9c81d9a0efa4cda81 | [
"Apache-2.0"
] | 16 | 2018-02-02T14:07:10.000Z | 2021-02-03T13:57:30.000Z | test/astarte_core/mapping/value_type_test.exs | Pavinati/astarte_core | dd37ddd2b1bdcef0b1474be9c81d9a0efa4cda81 | [
"Apache-2.0"
] | 62 | 2019-03-14T15:52:12.000Z | 2022-03-22T10:34:56.000Z | test/astarte_core/mapping/value_type_test.exs | Pavinati/astarte_core | dd37ddd2b1bdcef0b1474be9c81d9a0efa4cda81 | [
"Apache-2.0"
] | 9 | 2018-02-02T09:55:06.000Z | 2021-03-04T15:15:08.000Z | defmodule Astarte.Core.Mapping.ValueTypeTest do
use ExUnit.Case
alias Astarte.Core.Mapping.ValueType
test "valid values are accepted" do
assert ValueType.validate_value(:double, 1.1) == :ok
assert ValueType.validate_value(:double, 1.0) == :ok
assert ValueType.validate_value(:double, 1) == :ok
ass... | 43.46875 | 98 | 0.692308 |
c8570f5a42baaf988201781ec56afcfcb03b9eb2 | 97 | exs | Elixir | test/test_helper.exs | bonfire-networks/bonfire_editor_ck | a215d58d1e81119bdb6d8ea609615269db3112fa | [
"MIT"
] | 1 | 2022-03-11T13:09:11.000Z | 2022-03-11T13:09:11.000Z | test/test_helper.exs | bonfire-networks/bonfire_editor_ck | a215d58d1e81119bdb6d8ea609615269db3112fa | [
"MIT"
] | null | null | null | test/test_helper.exs | bonfire-networks/bonfire_editor_ck | a215d58d1e81119bdb6d8ea609615269db3112fa | [
"MIT"
] | null | null | null | ExUnit.start()
Ecto.Adapters.SQL.Sandbox.mode(Bonfire.Common.Config.get!(:repo_module), :manual)
| 32.333333 | 81 | 0.783505 |
c85713437354d0b050903e6a097f00e5140bce62 | 108 | ex | Elixir | lib/checkers/repo.ex | AmazingSuka/checkers | ef85e329eeb86bb64a80bebb1214247aec2b89a5 | [
"MIT"
] | null | null | null | lib/checkers/repo.ex | AmazingSuka/checkers | ef85e329eeb86bb64a80bebb1214247aec2b89a5 | [
"MIT"
] | null | null | null | lib/checkers/repo.ex | AmazingSuka/checkers | ef85e329eeb86bb64a80bebb1214247aec2b89a5 | [
"MIT"
] | null | null | null | defmodule Checkers.Repo do
use Ecto.Repo,
otp_app: :checkers,
adapter: Ecto.Adapters.Postgres
end
| 18 | 35 | 0.731481 |
c8573bec51d03b5be2010f54d6fefb9e3496b487 | 321 | exs | Elixir | priv/repo/migrations/20160915203423_create_citext_uuid_extensions.exs | usecanvas/api-v2 | 59214db3a2cf12eb939f22fed320fd10cb47cdfe | [
"Apache-2.0"
] | 123 | 2017-04-04T18:15:48.000Z | 2021-04-26T08:04:22.000Z | priv/repo/migrations/20160915203423_create_citext_uuid_extensions.exs | usecanvas/api-v2 | 59214db3a2cf12eb939f22fed320fd10cb47cdfe | [
"Apache-2.0"
] | null | null | null | priv/repo/migrations/20160915203423_create_citext_uuid_extensions.exs | usecanvas/api-v2 | 59214db3a2cf12eb939f22fed320fd10cb47cdfe | [
"Apache-2.0"
] | 17 | 2017-04-04T18:58:29.000Z | 2021-05-10T21:39:16.000Z | defmodule CanvasAPI.Repo.Migrations.CreateCitextUuidExtensions do
use Ecto.Migration
def up do
execute ~s(CREATE EXTENSION IF NOT EXISTS "uuid-ossp")
execute ~s(CREATE EXTENSION IF NOT EXISTS "citext")
end
def down do
execute ~s(-- Not Dropping "uuid-ossp" or "citext" extensions)
end
end... | 24.692308 | 67 | 0.71028 |
c8574d0df201db1f442da8f6ca5cd811c0a0e38a | 2,887 | exs | Elixir | credo.exs | gtronset/honeycomb | 0abe9283864aa7b7149b94fff515653da97bdf18 | [
"MIT"
] | null | null | null | credo.exs | gtronset/honeycomb | 0abe9283864aa7b7149b94fff515653da97bdf18 | [
"MIT"
] | 1 | 2019-09-17T22:06:14.000Z | 2019-09-17T22:06:14.000Z | credo.exs | gtronset/basalt | 0abe9283864aa7b7149b94fff515653da97bdf18 | [
"MIT"
] | null | null | null | %{
configs: [
%{
name: "default",
files: %{
included: ~w{config lib test}
},
strict: true,
color: true,
checks: [
{Credo.Check.Consistency.ExceptionNames},
{Credo.Check.Consistency.LineEndings},
{Credo.Check.Consistency.ParameterPatternMatching},... | 43.089552 | 81 | 0.682023 |
c8575ff6f571bc6d0134960a8aab656c995da20e | 1,284 | exs | Elixir | test/grovepi/button_test.exs | schainker/grovepi | 2de21f12a2ab28f9788a2add4c6409871e098479 | [
"Apache-2.0"
] | 2 | 2018-09-06T21:30:01.000Z | 2018-09-06T21:30:08.000Z | test/grovepi/button_test.exs | schainks/grovepi | 2de21f12a2ab28f9788a2add4c6409871e098479 | [
"Apache-2.0"
] | null | null | null | test/grovepi/button_test.exs | schainks/grovepi | 2de21f12a2ab28f9788a2add4c6409871e098479 | [
"Apache-2.0"
] | null | null | null | defmodule GrovePi.ButtonTest do
use ComponentTestCase, async: true
@pressed <<1>>
@released <<0>>
setup %{prefix: prefix} = tags do
poll_interval = Map.get(tags, :poll_interval, 1)
{:ok, _} = GrovePi.Button.start_link(@pin,
poll_interval: poll_interval,
... | 29.181818 | 70 | 0.542835 |
c85764b395d39a2d845cda02c35cef04ba72a6a0 | 789 | exs | Elixir | mix.exs | errkk/sonex | 80bcb4be071b09a46df82b8e96e9b5fc24a788d7 | [
"MIT"
] | null | null | null | mix.exs | errkk/sonex | 80bcb4be071b09a46df82b8e96e9b5fc24a788d7 | [
"MIT"
] | null | null | null | mix.exs | errkk/sonex | 80bcb4be071b09a46df82b8e96e9b5fc24a788d7 | [
"MIT"
] | null | null | null | defmodule Sonex.Mixfile do
use Mix.Project
def project do
[app: :sonex,
version: "0.0.1",
elixir: "~> 1.2",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps()]
end
# Configuration for the OTP application
#
# Type "mix help compile.app" for more i... | 23.205882 | 78 | 0.586819 |
c8578370e8a6743085f1af3411487aa64e19b6e4 | 14,763 | ex | Elixir | lib/codes/codes_t75.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_t75.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_t75.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | defmodule IcdCode.ICDCode.Codes_T75 do
alias IcdCode.ICDCode
def _T7500XA do
%ICDCode{full_code: "T7500XA",
category_code: "T75",
short_code: "00XA",
full_name: "Unspecified effects of lightning, initial encounter",
short_name: "Unspecified effects of lightning, initial en... | 38.345455 | 104 | 0.641672 |
c857b3dd429f2eaeab6ffff150d0234fcb6294e7 | 3,855 | ex | Elixir | lib/ex_doc/formatter/html.ex | asaaki/ex_doc | 243b160a7d48f758a8eb1c8b62abedd6ec2e096e | [
"Apache-2.0"
] | null | null | null | lib/ex_doc/formatter/html.ex | asaaki/ex_doc | 243b160a7d48f758a8eb1c8b62abedd6ec2e096e | [
"Apache-2.0"
] | null | null | null | lib/ex_doc/formatter/html.ex | asaaki/ex_doc | 243b160a7d48f758a8eb1c8b62abedd6ec2e096e | [
"Apache-2.0"
] | null | null | null | defmodule ExDoc.Formatter.HTML do
@moduledoc """
Provide HTML-formatted documentation
"""
alias ExDoc.Formatter.HTML.Templates
alias ExDoc.Formatter.HTML.Autolink
@doc """
Generate HTML documentation for the given modules
"""
def run(modules, config) do
output = Path.expand(config.output)
:... | 31.598361 | 107 | 0.68716 |
c858061ea4c6e69179bbbe80fd4a5244a81017ce | 40,406 | ex | Elixir | lib/phoenix/endpoint.ex | pdgonzalez872/phoenix | 6615b961248189d598509d3d0409c7a28a6aaa0f | [
"MIT"
] | 7 | 2021-01-31T04:51:08.000Z | 2022-01-09T06:59:28.000Z | lib/phoenix/endpoint.ex | pdgonzalez872/phoenix | 6615b961248189d598509d3d0409c7a28a6aaa0f | [
"MIT"
] | null | null | null | lib/phoenix/endpoint.ex | pdgonzalez872/phoenix | 6615b961248189d598509d3d0409c7a28a6aaa0f | [
"MIT"
] | 2 | 2021-02-06T08:40:23.000Z | 2021-03-20T16:35:47.000Z | defmodule Phoenix.Endpoint do
@moduledoc ~S"""
Defines a Phoenix endpoint.
The endpoint is the boundary where all requests to your
web application start. It is also the interface your
application provides to the underlying web servers.
Overall, an endpoint has three responsibilities:
* to provide a w... | 45.095982 | 10,138 | 0.737217 |
c8581fd32e77aadc587b0d9bc3dbeeffc88b6da2 | 2,011 | exs | Elixir | test/acceptance/ast/lists/list_and_block_test.exs | akash-akya/earmark_parser | de2216ca0622a9d2491ea2295d0be1bedcaf64c6 | [
"Apache-2.0"
] | null | null | null | test/acceptance/ast/lists/list_and_block_test.exs | akash-akya/earmark_parser | de2216ca0622a9d2491ea2295d0be1bedcaf64c6 | [
"Apache-2.0"
] | null | null | null | test/acceptance/ast/lists/list_and_block_test.exs | akash-akya/earmark_parser | de2216ca0622a9d2491ea2295d0be1bedcaf64c6 | [
"Apache-2.0"
] | null | null | null | defmodule Acceptance.Ast.Lists.ListAndBlockTest do
use ExUnit.Case
import Support.Helpers, only: [as_ast: 1, parse_html: 1]
import EarmarkAstDsl
describe "Block Quotes in Lists" do
# Incorrect behavior needs to be fixed with #249 or #304
test "two spaces" do
markdown = "- a\n > b"
html ... | 25.455696 | 100 | 0.538538 |
c8582d5be34b8901f37dfe09dfee88147cf399a2 | 573 | exs | Elixir | anagrams-phx/test/views/error_view_test.exs | mcdickenson/anagrams | 3132a98d5ac8b6175e134109386ce1d6a7270d94 | [
"MIT"
] | null | null | null | anagrams-phx/test/views/error_view_test.exs | mcdickenson/anagrams | 3132a98d5ac8b6175e134109386ce1d6a7270d94 | [
"MIT"
] | null | null | null | anagrams-phx/test/views/error_view_test.exs | mcdickenson/anagrams | 3132a98d5ac8b6175e134109386ce1d6a7270d94 | [
"MIT"
] | null | null | null | defmodule Anagrams.ErrorViewTest do
use Anagrams.ConnCase, async: true
# Bring render/3 and render_to_string/3 for testing custom views
import Phoenix.View
test "renders 404.html" do
assert render_to_string(Anagrams.ErrorView, "404.html", []) ==
"Page not found"
end
test "render 500.html" ... | 26.045455 | 66 | 0.678883 |
c85833e4a8d9093b519e9db5b27425b3242b7899 | 3,490 | exs | Elixir | package.head.exs | tsloughter/hackney | 076469936e3c0460223a1e2da0f439319626d797 | [
"Apache-2.0"
] | null | null | null | package.head.exs | tsloughter/hackney | 076469936e3c0460223a1e2da0f439319626d797 | [
"Apache-2.0"
] | null | null | null | package.head.exs | tsloughter/hackney | 076469936e3c0460223a1e2da0f439319626d797 | [
"Apache-2.0"
] | null | null | null | Expm.Package.new(name: "hackney", description: "Simple HTTP client in Erlang",
version: :head, keywords: ["http","client","binary"],
dependencies: ["mimetypes", "hackney_lib"],
licenses: [[name: "Apache License, Version 2.0", file: "LICENSE"]],
contrib... | 51.323529 | 84 | 0.287106 |
c85866f5f23785e3ff8ea589e9f03471aeb6f993 | 1,239 | exs | Elixir | config/prod.secret.exs | girorme/starer | 4e3840291da6a7d47c0b94aacb456794fbee091b | [
"MIT"
] | null | null | null | config/prod.secret.exs | girorme/starer | 4e3840291da6a7d47c0b94aacb456794fbee091b | [
"MIT"
] | null | null | null | config/prod.secret.exs | girorme/starer | 4e3840291da6a7d47c0b94aacb456794fbee091b | [
"MIT"
] | null | null | null | # In this file, we load production configuration and secrets
# from environment variables. You can also hardcode secrets,
# although such is generally not recommended and you have to
# remember to add this file to your .gitignore.
use Mix.Config
database_url =
System.get_env("DATABASE_URL") ||
raise """
envi... | 29.5 | 67 | 0.717514 |
c858755acdc9bfc1038f9a503e73f3ac6351851d | 2,440 | ex | Elixir | clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/location_preference.ex | mopp/elixir-google-api | d496227d17600bccbdf8f6be9ad1b7e7219d7ec6 | [
"Apache-2.0"
] | null | null | null | clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/location_preference.ex | mopp/elixir-google-api | d496227d17600bccbdf8f6be9ad1b7e7219d7ec6 | [
"Apache-2.0"
] | null | null | null | clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/location_preference.ex | mopp/elixir-google-api | d496227d17600bccbdf8f6be9ad1b7e7219d7ec6 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 43.571429 | 234 | 0.72377 |
c8587d1a66630512602736c61b08d99168c9e65c | 4,539 | ex | Elixir | lib/bunch/config.ex | geometerio/bunch | 2b8fe7f44881ef5e4a035080cd7dd3a59e86dbb9 | [
"Apache-2.0"
] | 12 | 2018-09-10T09:59:22.000Z | 2021-08-29T00:37:02.000Z | lib/bunch/config.ex | geometerio/bunch | 2b8fe7f44881ef5e4a035080cd7dd3a59e86dbb9 | [
"Apache-2.0"
] | 8 | 2018-09-03T08:29:47.000Z | 2022-03-27T16:28:08.000Z | lib/bunch/config.ex | geometerio/bunch | 2b8fe7f44881ef5e4a035080cd7dd3a59e86dbb9 | [
"Apache-2.0"
] | 2 | 2019-07-23T04:21:26.000Z | 2021-10-15T23:45:57.000Z | defmodule Bunch.Config do
@moduledoc """
A bunch of helpers for parsing and validating configurations.
"""
alias Bunch.Type
use Bunch
@doc """
Parses `config` according to `fields_specs`.
`fields_specs` consist of constraints on each field. Supported constraints are:
* validate - function determi... | 31.741259 | 101 | 0.528971 |
c858a6afc168184fcbb021ac48b1c5567441d0bb | 1,867 | exs | Elixir | clients/testing/mix.exs | corp-momenti/elixir-google-api | fe1580e305789ab2ca0741791b8ffe924bd3240c | [
"Apache-2.0"
] | null | null | null | clients/testing/mix.exs | corp-momenti/elixir-google-api | fe1580e305789ab2ca0741791b8ffe924bd3240c | [
"Apache-2.0"
] | null | null | null | clients/testing/mix.exs | corp-momenti/elixir-google-api | fe1580e305789ab2ca0741791b8ffe924bd3240c | [
"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... | 27.865672 | 134 | 0.658275 |
c858dadc1c46177d0a2b820afd50306c4093d162 | 1,227 | ex | Elixir | apps/ewallet_db/lib/ewallet_db/repo.ex | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 322 | 2018-02-28T07:38:44.000Z | 2020-05-27T23:09:55.000Z | apps/ewallet_db/lib/ewallet_db/repo.ex | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 643 | 2018-02-28T12:05:20.000Z | 2020-05-22T08:34:38.000Z | apps/ewallet_db/lib/ewallet_db/repo.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 ... | 34.083333 | 74 | 0.730236 |
c858ea895695aa8e54f9db23965fc89ea2f395aa | 1,505 | exs | Elixir | test/exbrainz_test.exs | ozgunatacan/exbrainz | 1ed6759d876cc1848079a4d3ff1268dfbc1ca71d | [
"MIT"
] | 1 | 2021-12-30T20:02:30.000Z | 2021-12-30T20:02:30.000Z | test/exbrainz_test.exs | ozgunatacan/exbrainz | 1ed6759d876cc1848079a4d3ff1268dfbc1ca71d | [
"MIT"
] | null | null | null | test/exbrainz_test.exs | ozgunatacan/exbrainz | 1ed6759d876cc1848079a4d3ff1268dfbc1ca71d | [
"MIT"
] | null | null | null | defmodule ExbrainzTest do
use ExUnit.Case
alias Exbrainz.{Recording, Recordings, Alias, Works, Work}
@mbid "e77a055f-bb96-4317-bfd0-45ec69c9e852"
test "get artist with musicbrainz id" do
artist = Exbrainz.get_artist!(@mbid)
assert artist.id == @mbid
assert artist.name == "Alfredo De Angelis"
... | 30.714286 | 73 | 0.665781 |
c858f211e5e1c4ea5abfb660c3c336c5c340ea52 | 253 | ex | Elixir | lib/oli/user_identities/author_identity.ex | malav2110/oli-torus | 8af64e762a7c8a2058bd27a7ab8e96539ffc055f | [
"MIT"
] | 45 | 2020-04-17T15:40:27.000Z | 2022-03-25T00:13:30.000Z | lib/oli/user_identities/author_identity.ex | malav2110/oli-torus | 8af64e762a7c8a2058bd27a7ab8e96539ffc055f | [
"MIT"
] | 944 | 2020-02-13T02:37:01.000Z | 2022-03-31T17:50:07.000Z | lib/oli/user_identities/author_identity.ex | malav2110/oli-torus | 8af64e762a7c8a2058bd27a7ab8e96539ffc055f | [
"MIT"
] | 23 | 2020-07-28T03:36:13.000Z | 2022-03-17T14:29:02.000Z | defmodule Oli.UserIdentities.AuthorIdentity do
use Ecto.Schema
use PowAssent.Ecto.UserIdentities.Schema, user: Oli.Accounts.Author
schema "author_identities" do
pow_assent_user_identity_fields()
timestamps(type: :utc_datetime)
end
end
| 23 | 69 | 0.790514 |
c859151b84a95eb8e975b8419676ec6202d2c81c | 1,800 | ex | Elixir | apps/tai/lib/tai/venue_adapters/bitmex/products.ex | CalebOts/tai | 1603bfefa390eac89085ba18fd259b2e9fcac6c0 | [
"MIT"
] | 1 | 2019-12-19T05:16:26.000Z | 2019-12-19T05:16:26.000Z | apps/tai/lib/tai/venue_adapters/bitmex/products.ex | CalebOts/tai | 1603bfefa390eac89085ba18fd259b2e9fcac6c0 | [
"MIT"
] | null | null | null | apps/tai/lib/tai/venue_adapters/bitmex/products.ex | CalebOts/tai | 1603bfefa390eac89085ba18fd259b2e9fcac6c0 | [
"MIT"
] | null | null | null | defmodule Tai.VenueAdapters.Bitmex.Products do
def products(venue_id) do
with {:ok, instruments, _rate_limit} <-
ExBitmex.Rest.Instrument.Index.get(%{start: 0, count: 500}) do
products =
instruments
|> Enum.map(&build(&1, venue_id))
|> Enum.filter(& &1)
{:ok, produc... | 33.962264 | 90 | 0.670556 |
c859230960485d0dfe80dec1fe09cd7f832f1158 | 3,982 | ex | Elixir | lib/ex_diet_web/graphql/mutations/food.ex | mugimaru/ex_diet | 9602c07af27255decbb32fd7ae0c12b3ffe662a3 | [
"Apache-2.0"
] | 2 | 2020-06-25T11:51:46.000Z | 2020-09-30T14:00:40.000Z | lib/ex_diet_web/graphql/mutations/food.ex | mugimaru/ex_diet | 9602c07af27255decbb32fd7ae0c12b3ffe662a3 | [
"Apache-2.0"
] | null | null | null | lib/ex_diet_web/graphql/mutations/food.ex | mugimaru/ex_diet | 9602c07af27255decbb32fd7ae0c12b3ffe662a3 | [
"Apache-2.0"
] | 1 | 2020-01-29T08:43:07.000Z | 2020-01-29T08:43:07.000Z | defmodule ExDietWeb.GraphQL.Mutations.Food do
@moduledoc false
use Absinthe.Schema.Notation
use Absinthe.Relay.Schema.Notation, :modern
alias ExDietWeb.GraphQL.Resolvers.Food, as: Resolver
alias ExDietWeb.GraphQL.Middleware.RequireAuth
alias Absinthe.Relay.Node.ParseIDs
input_object :create_ingredient_... | 25.690323 | 89 | 0.674787 |
c8593fad7aa3758fa385533e28cf674d54fd5103 | 13,080 | ex | Elixir | lib/mix/lib/mix/dep.ex | jovannypcg/elixir | de3f5df7fdcda79e2661f9cee6005707e7e8d030 | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/dep.ex | jovannypcg/elixir | de3f5df7fdcda79e2661f9cee6005707e7e8d030 | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/dep.ex | jovannypcg/elixir | de3f5df7fdcda79e2661f9cee6005707e7e8d030 | [
"Apache-2.0"
] | null | null | null | defmodule Mix.Dep do
@moduledoc false
@doc """
The Mix.Dep struct keeps information about your project dependencies.
It contains:
* `scm` - a module representing the source code management tool (SCM)
operations
* `app` - the application name as an atom
* `requirement` - a binary or regex ... | 32.137592 | 132 | 0.639373 |
c8596b0b491d188d8cdcb6f78a22439093d452ec | 2,315 | exs | Elixir | test/tentacat_test.exs | supersimple/tentacat | b7df1fbb3e8e9dee50cdb5c28291f406fd589a06 | [
"MIT"
] | null | null | null | test/tentacat_test.exs | supersimple/tentacat | b7df1fbb3e8e9dee50cdb5c28291f406fd589a06 | [
"MIT"
] | null | null | null | test/tentacat_test.exs | supersimple/tentacat | b7df1fbb3e8e9dee50cdb5c28291f406fd589a06 | [
"MIT"
] | 1 | 2018-11-02T15:59:28.000Z | 2018-11-02T15:59:28.000Z | defmodule TentacatTest do
use ExUnit.Case
import Tentacat
doctest Tentacat
setup_all do
:meck.new(JSX, [:no_link])
on_exit(fn ->
:meck.unload(JSX)
end)
end
setup do
on_exit(fn ->
Application.delete_env(:tentacat, :deserialization_options)
end)
end
test "authorization... | 30.064935 | 285 | 0.693737 |
c8597aeee8edcdfbbbd8353c82439224727db12c | 2,241 | ex | Elixir | lib/phoenix_slack/channel_message.ex | Sitch/phoenix_slack | 7c29aeced97d499208a52c549dff0ff01e8f91f6 | [
"MIT"
] | null | null | null | lib/phoenix_slack/channel_message.ex | Sitch/phoenix_slack | 7c29aeced97d499208a52c549dff0ff01e8f91f6 | [
"MIT"
] | null | null | null | lib/phoenix_slack/channel_message.ex | Sitch/phoenix_slack | 7c29aeced97d499208a52c549dff0ff01e8f91f6 | [
"MIT"
] | null | null | null | defmodule Phoenix.Slack.ChannelMessage do
defstruct channel: nil,
subject: nil,
text_body: "",
options: %{},
assigns: %{},
private: %{}
@type channel :: String.t
@type subject :: String.t
@type text_body :: String.t
@type options :: String.t
@typ... | 26.678571 | 117 | 0.634092 |
c8598d4d7de1c3a15a420ab8b963c4b71de1ebf5 | 2,350 | exs | Elixir | mix.exs | lexmag/plug | 56d0bf2f482adb9f4412aa5bf076c39948720d90 | [
"Apache-2.0"
] | null | null | null | mix.exs | lexmag/plug | 56d0bf2f482adb9f4412aa5bf076c39948720d90 | [
"Apache-2.0"
] | null | null | null | mix.exs | lexmag/plug | 56d0bf2f482adb9f4412aa5bf076c39948720d90 | [
"Apache-2.0"
] | null | null | null | defmodule Plug.MixProject do
use Mix.Project
@version "1.7.2"
@description "A specification and conveniences for composable modules between web applications"
@xref_exclude [Plug.Cowboy]
def project do
[
app: :plug,
version: @version,
elixir: "~> 1.4",
deps: deps(),
package:... | 21.171171 | 97 | 0.542553 |
c859995729408dcf1facfcf2f8426bcdf7bb98de | 3,840 | exs | Elixir | test/credo/check/consistency/parameter_pattern_matching_test.exs | hrzndhrn/credo | 71a7b24a5ca8e7a48416e0cdfb42cf8a0fef9593 | [
"MIT"
] | 4,590 | 2015-09-28T06:01:43.000Z | 2022-03-29T08:48:57.000Z | test/credo/check/consistency/parameter_pattern_matching_test.exs | hrzndhrn/credo | 71a7b24a5ca8e7a48416e0cdfb42cf8a0fef9593 | [
"MIT"
] | 890 | 2015-11-16T21:07:07.000Z | 2022-03-29T08:52:07.000Z | test/credo/check/consistency/parameter_pattern_matching_test.exs | hrzndhrn/credo | 71a7b24a5ca8e7a48416e0cdfb42cf8a0fef9593 | [
"MIT"
] | 479 | 2015-11-17T19:42:40.000Z | 2022-03-29T00:09:21.000Z | defmodule Credo.Check.Readability.ParameterPatternMatchingTest do
use Credo.Test.Case
@described_check Credo.Check.Consistency.ParameterPatternMatching
@left_and_right_mix """
defmodule Credo.Sample do
defmodule InlineModule do
def list_after([bar, baz] = foo), do: :ok
def struct_before(foo_le... | 22.588235 | 125 | 0.616667 |
c85a02e905de378103f358fe9e6606fc22dce415 | 354 | ex | Elixir | messages.ex | sighmin/chatter | af1d07690e7f46cd8a066537a74b7ae13e2d044a | [
"MIT"
] | null | null | null | messages.ex | sighmin/chatter | af1d07690e7f46cd8a066537a74b7ae13e2d044a | [
"MIT"
] | null | null | null | messages.ex | sighmin/chatter | af1d07690e7f46cd8a066537a74b7ae13e2d044a | [
"MIT"
] | null | null | null | # Error messages
Chatter.Endpoint.broadcast("notifications:general", "flash:message", %{type: "danger", body: "Hark! Functional languages are a mental jump for OOP brains!"})
# Notices
Chatter.Endpoint.broadcast("notifications:general", "flash:message", %{type: "info", body: "Info: Phoenix provides features that RoR a... | 59 | 167 | 0.745763 |
c85a139a582cbba76ba8a3dc2468d4cef6b50f7f | 10,589 | ex | Elixir | lib/blue_jet/app/crm/service.ex | freshcom/freshcom-api | 4f2083277943cf4e4e8fd4c4d443c7309f285ad7 | [
"BSD-3-Clause"
] | 44 | 2018-05-09T01:08:57.000Z | 2021-01-19T07:25:26.000Z | lib/blue_jet/app/crm/service.ex | freshcom/freshcom-api | 4f2083277943cf4e4e8fd4c4d443c7309f285ad7 | [
"BSD-3-Clause"
] | 36 | 2018-05-08T23:59:54.000Z | 2018-09-28T13:50:30.000Z | lib/blue_jet/app/crm/service.ex | freshcom/freshcom-api | 4f2083277943cf4e4e8fd4c4d443c7309f285ad7 | [
"BSD-3-Clause"
] | 9 | 2018-05-09T14:09:19.000Z | 2021-03-21T21:04:04.000Z | defmodule BlueJet.CRM.Service do
use BlueJet, :service
import BlueJet.Utils, only: [atomize_keys: 2]
alias BlueJet.CRM.IdentityService
alias BlueJet.Utils
alias BlueJet.CRM.{Customer, PointAccount, PointTransaction}
@doc """
List customer that matches the given query.
For usage example please see `B... | 34.832237 | 111 | 0.681367 |
c85a2ea08654f58755fc4af0b75d1e74c54ce837 | 517 | ex | Elixir | elixir/flatten-array/lib/flatten_array.ex | herminiotorres/exercism | 82173fcf1f09c27da0134f746a799840aa5eac05 | [
"MIT"
] | null | null | null | elixir/flatten-array/lib/flatten_array.ex | herminiotorres/exercism | 82173fcf1f09c27da0134f746a799840aa5eac05 | [
"MIT"
] | null | null | null | elixir/flatten-array/lib/flatten_array.ex | herminiotorres/exercism | 82173fcf1f09c27da0134f746a799840aa5eac05 | [
"MIT"
] | 1 | 2021-03-15T11:02:40.000Z | 2021-03-15T11:02:40.000Z | defmodule FlattenArray do
@doc """
Accept a list and return the list flattened without nil values.
## Examples
iex> FlattenArray.flatten([1, [2], 3, nil])
[1,2,3]
iex> FlattenArray.flatten([nil, nil])
[]
"""
@spec flatten(list) :: list
def flatten([]), do: []
def flatten([... | 24.619048 | 83 | 0.611219 |
c85a3002c65fe23472056f0e37baa2717a76faab | 1,701 | exs | Elixir | test/ex_rss_web/controllers/api/v1/entry_controller_test.exs | cruessler/exrss | 6ac17b7533d78460a1c34cabaae86fec317f460a | [
"MIT"
] | 4 | 2020-02-16T07:18:35.000Z | 2021-12-09T14:43:10.000Z | test/ex_rss_web/controllers/api/v1/entry_controller_test.exs | cruessler/exrss | 6ac17b7533d78460a1c34cabaae86fec317f460a | [
"MIT"
] | 27 | 2019-10-16T18:35:19.000Z | 2022-03-13T16:39:57.000Z | test/ex_rss_web/controllers/api/v1/entry_controller_test.exs | cruessler/exrss | 6ac17b7533d78460a1c34cabaae86fec317f460a | [
"MIT"
] | null | null | null | defmodule ExRssWeb.Api.V1.EntryControllerTest do
use ExRssWeb.ConnCase
alias ExRss.Entry
alias ExRss.{Feed, User}
alias ExRss.User.Account
@salt "user"
setup do
Repo.insert!(%User{id: 1, email: "jane@doe.com"})
Repo.insert!(%Feed{id: 1, user_id: 1, title: "Title", url: "http://example.com"})
... | 25.38806 | 85 | 0.573192 |
c85a3ae9a4a8f6d2a6ab755850dfe5ea0a7eb8bd | 772 | ex | Elixir | token_registry/test/support/fixtures/accounts_fixtures.ex | canuckasaurus/archeio-solanaszn | 55dc8712cf0409d110ae342cbbc620745668a4df | [
"MIT"
] | 1 | 2021-12-18T16:17:19.000Z | 2021-12-18T16:17:19.000Z | token_registry/test/support/fixtures/accounts_fixtures.ex | canuckasaurus/archeio-solanaszn | 55dc8712cf0409d110ae342cbbc620745668a4df | [
"MIT"
] | null | null | null | token_registry/test/support/fixtures/accounts_fixtures.ex | canuckasaurus/archeio-solanaszn | 55dc8712cf0409d110ae342cbbc620745668a4df | [
"MIT"
] | null | null | null | defmodule TokenRegistry.AccountsFixtures do
@moduledoc """
This module defines test helpers for creating
entities via the `TokenRegistry.Accounts` context.
"""
def unique_user_email, do: "user#{System.unique_integer()}@example.com"
def valid_user_password, do: "hello world!"
def valid_user_attributes(at... | 24.125 | 73 | 0.656736 |
c85a5364a7c151856f4f5a4d3cc713b0d5a96fde | 882 | ex | Elixir | clients/reseller/lib/google_api/reseller/v1/metadata.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/reseller/lib/google_api/reseller/v1/metadata.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/reseller/lib/google_api/reseller/v1/metadata.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 32.666667 | 74 | 0.758503 |
c85a62cc176158f8426588cc347cb4ae784ce7a0 | 1,695 | ex | Elixir | clients/game_services/lib/google_api/game_services/v1/model/test_iam_permissions_request.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/game_services/lib/google_api/game_services/v1/model/test_iam_permissions_request.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/game_services/lib/google_api/game_services/v1/model/test_iam_permissions_request.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 36.06383 | 288 | 0.746313 |
c85a6ec6427495fa3ed27c921e08dff6aa1be2eb | 330 | ex | Elixir | lib/memo_web/controllers/user_profile_controller.ex | ashkan18/memo | da62914abff2f4f4c75ad6b996e3f6c3d5e9ad64 | [
"MIT"
] | null | null | null | lib/memo_web/controllers/user_profile_controller.ex | ashkan18/memo | da62914abff2f4f4c75ad6b996e3f6c3d5e9ad64 | [
"MIT"
] | null | null | null | lib/memo_web/controllers/user_profile_controller.ex | ashkan18/memo | da62914abff2f4f4c75ad6b996e3f6c3d5e9ad64 | [
"MIT"
] | null | null | null | defmodule MemoWeb.UserProfileController do
use MemoWeb, :controller
alias Memo.Interests
def index(conn, _params) do
user = conn.assigns.current_user
conn
|> assign(:my_interests, Interests.user_interests(user))
|> assign(:follow_stats, Interests.follow_stats(user))
|> render("index.html")
... | 22 | 60 | 0.721212 |
c85a854994eccb45ce71e43a913eac4833c93ca7 | 5,348 | ex | Elixir | lib/oban/migrations.ex | maxmarcon/oban | 1834b741024974355937d708a8e3549e80a42e20 | [
"Apache-2.0"
] | null | null | null | lib/oban/migrations.ex | maxmarcon/oban | 1834b741024974355937d708a8e3549e80a42e20 | [
"Apache-2.0"
] | null | null | null | lib/oban/migrations.ex | maxmarcon/oban | 1834b741024974355937d708a8e3549e80a42e20 | [
"Apache-2.0"
] | null | null | null | defmodule Oban.Migrations do
@moduledoc """
Migrations create and modify the database tables Oban needs to function.
## Usage
To use migrations in your application you'll need to generate an `Ecto.Migration` that wraps
calls to `Oban.Migrations`:
```bash
mix ecto.gen.migration add_oban
```
Open th... | 27.285714 | 109 | 0.692595 |
c85aa9c55cc2629ef7152e943c60ee4d02eac118 | 1,011 | ex | Elixir | apps/app_ui/test/support/channel_case.ex | mikeonslow/guardian_live_oss | 5f6101d19e2a30830475993465187e4e4391db39 | [
"MIT"
] | null | null | null | apps/app_ui/test/support/channel_case.ex | mikeonslow/guardian_live_oss | 5f6101d19e2a30830475993465187e4e4391db39 | [
"MIT"
] | null | null | null | apps/app_ui/test/support/channel_case.ex | mikeonslow/guardian_live_oss | 5f6101d19e2a30830475993465187e4e4391db39 | [
"MIT"
] | 1 | 2018-07-26T17:34:23.000Z | 2018-07-26T17:34:23.000Z | defmodule AppUi.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 and query models.
Finally, if the test case interacts with the database,
it cannot be asy... | 22.977273 | 66 | 0.692384 |
c85aaa1d34f09b6c51e7d66344c374626a55bfe4 | 1,052 | ex | Elixir | lib/still/compiler/incremental/output_to_input_file_registry.ex | michaeldelago/still | 2c4593779a3c4f987d718fd27ee8a76c79cfd5d8 | [
"0BSD"
] | null | null | null | lib/still/compiler/incremental/output_to_input_file_registry.ex | michaeldelago/still | 2c4593779a3c4f987d718fd27ee8a76c79cfd5d8 | [
"0BSD"
] | null | null | null | lib/still/compiler/incremental/output_to_input_file_registry.ex | michaeldelago/still | 2c4593779a3c4f987d718fd27ee8a76c79cfd5d8 | [
"0BSD"
] | null | null | null | defmodule Still.Compiler.Incremental.OutputToInputFileRegistry do
@moduledoc """
Keeps track of which input file generates each output file.
It's used to identify which file needs to be compiled when there's a request from the browser.
"""
import Still.Utils
@doc """
Registers an input and output pair.
... | 26.3 | 96 | 0.678707 |
c85abdfe4ca162fa1dc5153be2812a515bded625 | 1,569 | ex | Elixir | lib/nostrum/struct/event/thread_list_sync.ex | mckethanor/nostrum | 13a3927c872c1540266e9f1ba4bcad4182baa9bf | [
"MIT"
] | null | null | null | lib/nostrum/struct/event/thread_list_sync.ex | mckethanor/nostrum | 13a3927c872c1540266e9f1ba4bcad4182baa9bf | [
"MIT"
] | null | null | null | lib/nostrum/struct/event/thread_list_sync.ex | mckethanor/nostrum | 13a3927c872c1540266e9f1ba4bcad4182baa9bf | [
"MIT"
] | null | null | null | defmodule Nostrum.Struct.Event.ThreadListSync do
@moduledoc """
Struct representing a Thread List Sync event.
This event is sent when the user gains access to a channel.
"""
@moduledoc since: "0.5.1"
alias Nostrum.Struct.{Channel, Guild, ThreadMember}
alias Nostrum.{Snowflake, Util}
defstruct [
:... | 25.721311 | 84 | 0.629063 |
c85af32890b3d63a43d79e2620841f764dcd4540 | 935 | ex | Elixir | lib/chat_api_web/views/account_view.ex | jefferycline1/papercups | 509a9e1c14808cef7eac362349bfa9044c4f4f6a | [
"MIT"
] | 2 | 2020-09-21T07:27:13.000Z | 2021-12-20T13:23:56.000Z | lib/chat_api_web/views/account_view.ex | davgit/papercups | 509a9e1c14808cef7eac362349bfa9044c4f4f6a | [
"MIT"
] | null | null | null | lib/chat_api_web/views/account_view.ex | davgit/papercups | 509a9e1c14808cef7eac362349bfa9044c4f4f6a | [
"MIT"
] | 1 | 2021-08-29T14:10:18.000Z | 2021-08-29T14:10:18.000Z | defmodule ChatApiWeb.AccountView do
use ChatApiWeb, :view
alias ChatApiWeb.{AccountView, UserView, WidgetSettingsView}
def render("index.json", %{accounts: accounts}) do
%{data: render_many(accounts, AccountView, "account.json")}
end
def render("show.json", %{account: account}) do
%{data: render_one... | 27.5 | 87 | 0.678075 |
c85b00cffb862ff7f04542bab79ebdb0a3b31f7c | 2,742 | ex | Elixir | kousa/lib/beef/access/users.ex | lazarospsa/dogehouse | 4400518f5b6bce929e40eada615356e8814a8d28 | [
"MIT"
] | 1 | 2021-03-22T22:10:34.000Z | 2021-03-22T22:10:34.000Z | kousa/lib/beef/access/users.ex | lazarospsa/dogehouse | 4400518f5b6bce929e40eada615356e8814a8d28 | [
"MIT"
] | 1 | 2022-03-25T19:20:22.000Z | 2022-03-25T19:20:22.000Z | kousa/lib/beef/access/users.ex | lazarospsa/dogehouse | 4400518f5b6bce929e40eada615356e8814a8d28 | [
"MIT"
] | 1 | 2021-11-24T04:01:49.000Z | 2021-11-24T04:01:49.000Z | defmodule Beef.Access.Users do
import Ecto.Query, warn: false
alias Beef.Queries.Users, as: Query
alias Beef.Repo
alias Beef.Schemas.User
alias Beef.Schemas.Room
alias Beef.Rooms
def find_by_github_ids(ids) do
Query.start()
|> Query.filter_by_github_ids(ids)
|> Query.select_id()
|> Repo.... | 23.237288 | 82 | 0.594821 |
c85b29bebb2f274c97b283fb651094afe1bd8ff2 | 752 | exs | Elixir | config/dev.exs | edenlabllc/pkcs7_verify.api | ec2cfcd4892babae345ac485b833455773f1222b | [
"MIT"
] | 1 | 2020-09-25T10:10:16.000Z | 2020-09-25T10:10:16.000Z | config/dev.exs | Nebo15/pkcs7_verify.api | ec2cfcd4892babae345ac485b833455773f1222b | [
"MIT"
] | null | null | null | config/dev.exs | Nebo15/pkcs7_verify.api | ec2cfcd4892babae345ac485b833455773f1222b | [
"MIT"
] | 1 | 2018-01-16T14:37:16.000Z | 2018-01-16T14:37:16.000Z | use Mix.Config
# Configuration for test environment
# For development, we disable any cache and enable
# debugging and code reloading.
#
# The watchers configuration can be used to run external
# watchers to your application. For example, we use it
# with brunch.io to recompile .js and .css sources.
config :pkcs7_ve... | 30.08 | 68 | 0.765957 |
c85b6f11ad5be142789957535bb3e315c854be97 | 1,265 | exs | Elixir | test/rust/generic_test.exs | patefacio/kojin | 34f1959b7fa5fdc48e07ae6d81f8fa3ab31af982 | [
"MIT"
] | 3 | 2021-12-20T04:46:00.000Z | 2022-01-31T22:26:44.000Z | test/rust/generic_test.exs | patefacio/kojin | 34f1959b7fa5fdc48e07ae6d81f8fa3ab31af982 | [
"MIT"
] | 1 | 2021-12-20T14:46:50.000Z | 2021-12-20T14:46:50.000Z | test/rust/generic_test.exs | patefacio/kojin | 34f1959b7fa5fdc48e07ae6d81f8fa3ab31af982 | [
"MIT"
] | 1 | 2021-12-20T00:15:52.000Z | 2021-12-20T00:15:52.000Z | defmodule GenericTest do
use ExUnit.Case
import Kojin
alias Kojin.Rust.Generic
alias Kojin.Rust.TypeParm
import Generic
test "type parm" do
assert dark_matter(TypeParm.code(TypeParm.type_parm(:T, default: :i32))) ==
dark_matter("T = i32")
end
test "type parm with bounds" do
import... | 29.418605 | 92 | 0.56996 |
c85b7e629045aecc4c8d236a609adbd72d23c92b | 343 | exs | Elixir | src/priv/repo/seeds.exs | leonardolpeixoto/meetapp_server | 6f0ac03e2b13aee71db22ac98881ea50c7f5fb63 | [
"MIT"
] | null | null | null | src/priv/repo/seeds.exs | leonardolpeixoto/meetapp_server | 6f0ac03e2b13aee71db22ac98881ea50c7f5fb63 | [
"MIT"
] | null | null | null | src/priv/repo/seeds.exs | leonardolpeixoto/meetapp_server | 6f0ac03e2b13aee71db22ac98881ea50c7f5fb63 | [
"MIT"
] | null | null | null | # Script for populating the database. You can run it as:
#
# mix run priv/repo/seeds.exs
#
# Inside the script, you can read and write to any of your
# repositories directly:
#
# Src.Repo.insert!(%Src.SomeSchema{})
#
# We recommend using the bang functions (`insert!`, `update!`
# and so on) as they will fail if... | 28.583333 | 61 | 0.699708 |
c85bcaa02c04839380599cfb01e555f912b37d12 | 2,238 | ex | Elixir | clients/you_tube/lib/google_api/you_tube/v3/model/activity_content_details_social.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/you_tube/lib/google_api/you_tube/v3/model/activity_content_details_social.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/you_tube/lib/google_api/you_tube/v3/model/activity_content_details_social.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... | 37.3 | 155 | 0.705987 |
c85bcac497d5e36a749f30d96dddfc328530dce1 | 848 | exs | Elixir | bench/transform_bench.exs | hrzndhrn/time_zone_info | 18fa4e7aefd68d256202de8e0f96b69b8a9dc618 | [
"MIT"
] | 5 | 2020-04-05T16:03:03.000Z | 2022-02-07T22:11:04.000Z | bench/transform_bench.exs | hrzndhrn/time_zone_info | 18fa4e7aefd68d256202de8e0f96b69b8a9dc618 | [
"MIT"
] | 16 | 2020-03-28T17:46:13.000Z | 2021-08-25T08:35:48.000Z | bench/transform_bench.exs | hrzndhrn/time_zone_info | 18fa4e7aefd68d256202de8e0f96b69b8a9dc618 | [
"MIT"
] | null | null | null | defmodule TransformBench do
use BencheeDsl.Benchmark
alias TimeZoneInfo.{IanaParser, Transformer}
@title "Benchmark: Transform"
@description """
This benchmark measures the performance of the transformation of the
raw IANA data to the data structure used by `TimeZoneInfo`.
"""
formatter Benchee.Form... | 22.315789 | 89 | 0.658019 |
c85bdb1109f4c9fca25ad8ef07d5ff864ba01d3a | 25,367 | ex | Elixir | apps/mishka_html/lib/mishka_html/helpers/live_crud.ex | mojtaba-naseri/mishka-cms | 1fb35b49177b9b27f5e68c1b0bf9d72dc0ff9935 | [
"Apache-2.0"
] | null | null | null | apps/mishka_html/lib/mishka_html/helpers/live_crud.ex | mojtaba-naseri/mishka-cms | 1fb35b49177b9b27f5e68c1b0bf9d72dc0ff9935 | [
"Apache-2.0"
] | null | null | null | apps/mishka_html/lib/mishka_html/helpers/live_crud.ex | mojtaba-naseri/mishka-cms | 1fb35b49177b9b27f5e68c1b0bf9d72dc0ff9935 | [
"Apache-2.0"
] | null | null | null | defmodule MishkaHtml.Helpers.LiveCRUD do
import Phoenix.LiveView
require MishkaTranslator.Gettext
defmacro __using__(opts) do
quote(bind_quoted: [opts: opts]) do
import MishkaHtml.Helpers.LiveCRUD
require MishkaHtml.Helpers.LiveCRUD
@interface_module opts
end
end
defmacro paginate(... | 38.728244 | 233 | 0.656128 |
c85be57674b81d583ba7ea8e12db347bf2280056 | 844 | ex | Elixir | lib/docusign/model/recipient_signature_information.ex | gaslight/docusign_elixir | d9d88d53dd85d32a39d537bade9db28d779414e6 | [
"MIT"
] | 4 | 2020-12-21T12:50:13.000Z | 2022-01-12T16:50:43.000Z | lib/docusign/model/recipient_signature_information.ex | gaslight/docusign_elixir | d9d88d53dd85d32a39d537bade9db28d779414e6 | [
"MIT"
] | 12 | 2018-09-18T15:26:34.000Z | 2019-09-28T15:29:39.000Z | lib/docusign/model/recipient_signature_information.ex | gaslight/docusign_elixir | d9d88d53dd85d32a39d537bade9db28d779414e6 | [
"MIT"
] | 15 | 2020-04-29T21:50:16.000Z | 2022-02-11T18:01:51.000Z | # NOTE: This class is auto generated by the swagger code generator program.
# https://github.com/swagger-api/swagger-codegen.git
# Do not edit the class manually.
defmodule DocuSign.Model.RecipientSignatureInformation do
@moduledoc """
Allows the sender to pre-specify the signature name, signature initials and sig... | 29.103448 | 202 | 0.7109 |
c85bf0b4ca4575148000272d431b6a6737b9a8ef | 2,941 | ex | Elixir | lib/erlef/community/event.ex | dhadka/website | e67c23d7052b4ef00a1af52b0b9ebc952d34776e | [
"Apache-2.0"
] | null | null | null | lib/erlef/community/event.ex | dhadka/website | e67c23d7052b4ef00a1af52b0b9ebc952d34776e | [
"Apache-2.0"
] | null | null | null | lib/erlef/community/event.ex | dhadka/website | e67c23d7052b4ef00a1af52b0b9ebc952d34776e | [
"Apache-2.0"
] | null | null | null | defmodule Erlef.Community.Event do
@moduledoc """
Erlef.Community.Event schema
"""
use Erlef.Schema
@type t :: %__MODULE__{
id: Ecto.UUID.t(),
type: atom() | String.t(),
title: String.t(),
description: String.t(),
slug: String.t(),
url: :uri_string.... | 26.736364 | 93 | 0.625978 |
c85bfe0bf674dfdc744ca45f8b8b1dc90f6841f9 | 1,896 | ex | Elixir | lib/con_cache/lock/monitors.ex | pap/con_cache | 2e13b6abd7de76dd378017ee3ef972c48916097c | [
"MIT"
] | null | null | null | lib/con_cache/lock/monitors.ex | pap/con_cache | 2e13b6abd7de76dd378017ee3ef972c48916097c | [
"MIT"
] | null | null | null | lib/con_cache/lock/monitors.ex | pap/con_cache | 2e13b6abd7de76dd378017ee3ef972c48916097c | [
"MIT"
] | null | null | null | defmodule ConCache.Lock.Monitors do
@moduledoc false
defstruct processes: HashDict.new
def new, do: %__MODULE__{}
def inc_ref(%__MODULE__{processes: processes} = monitors, pid, lock_instance) do
process_info = case HashDict.fetch(processes, pid) do
:error ->
%{
count: 1,
... | 30.095238 | 82 | 0.5923 |
c85c079e54b3e1e42c57d02b895f1119c79f2a48 | 2,316 | ex | Elixir | clients/vector_tile/lib/google_api/vector_tile/v1/model/extruded_area.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/vector_tile/lib/google_api/vector_tile/v1/model/extruded_area.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/vector_tile/lib/google_api/vector_tile/v1/model/extruded_area.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 43.698113 | 350 | 0.73057 |
c85c10235dc3309bfc8f98df13b2b59ff2eb9e21 | 3,424 | ex | Elixir | lib/live_sup/core/dashboards.ex | livesup-dev/livesup | eaf9ffc78d3043bd9e3408f0f4df26ed16eb8446 | [
"Apache-2.0",
"MIT"
] | null | null | null | lib/live_sup/core/dashboards.ex | livesup-dev/livesup | eaf9ffc78d3043bd9e3408f0f4df26ed16eb8446 | [
"Apache-2.0",
"MIT"
] | 3 | 2022-02-23T15:51:48.000Z | 2022-03-14T22:52:43.000Z | lib/live_sup/core/dashboards.ex | livesup-dev/livesup | eaf9ffc78d3043bd9e3408f0f4df26ed16eb8446 | [
"Apache-2.0",
"MIT"
] | null | null | null | defmodule LiveSup.Core.Dashboards do
@moduledoc """
The Dashboards context.
"""
alias LiveSup.Schemas.{Dashboard, Project, WidgetInstance}
alias LiveSup.Queries.{DashboardQuery, DashboardWidgetQuery, WidgetInstanceQuery}
alias LiveSup.Helpers.StringHelper
@doc """
Returns the list of dashboards.
##... | 21.808917 | 92 | 0.662091 |
c85c16a3bc10ceb069f61baaa05927e5aba528a3 | 3,131 | exs | Elixir | test/chat_api/conversations_test.exs | raditya3/papercups | 4657b258ee381ac0b7517e57e4d6261ce94b5871 | [
"MIT"
] | 1 | 2020-10-02T18:33:47.000Z | 2020-10-02T18:33:47.000Z | test/chat_api/conversations_test.exs | raditya3/papercups | 4657b258ee381ac0b7517e57e4d6261ce94b5871 | [
"MIT"
] | null | null | null | test/chat_api/conversations_test.exs | raditya3/papercups | 4657b258ee381ac0b7517e57e4d6261ce94b5871 | [
"MIT"
] | null | null | null | defmodule ChatApi.ConversationsTest do
use ChatApi.DataCase, async: true
alias ChatApi.Conversations
describe "conversations" do
alias ChatApi.Conversations.Conversation
@valid_attrs %{status: "open"}
@update_attrs %{status: "closed"}
@invalid_attrs %{status: nil}
def valid_create_attrs do... | 33.666667 | 99 | 0.712552 |
c85c2b6322f45407498db2d6560c892db48ea0f1 | 1,508 | ex | Elixir | clients/android_publisher/lib/google_api/android_publisher/v2/model/images_list_response.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/android_publisher/lib/google_api/android_publisher/v2/model/images_list_response.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/android_publisher/lib/google_api/android_publisher/v2/model/images_list_response.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... | 32.085106 | 97 | 0.746684 |
c85c371a43898f7325e33fa3658d2e628d43ec26 | 2,824 | ex | Elixir | kousa/lib/gen/room_chat.ex | samoersnaes/dogehouse | ee55c38c2fac8e097adf6ddced14181454e3c1aa | [
"MIT"
] | 5 | 2021-03-02T09:00:45.000Z | 2021-03-13T04:45:46.000Z | kousa/lib/gen/room_chat.ex | RonaldColyar/dogehouse | eb0599ecad1e8f2ca663906f42ee8bea346be5cb | [
"MIT"
] | null | null | null | kousa/lib/gen/room_chat.ex | RonaldColyar/dogehouse | eb0599ecad1e8f2ca663906f42ee8bea346be5cb | [
"MIT"
] | 1 | 2021-04-09T12:25:24.000Z | 2021-04-09T12:25:24.000Z | defmodule Kousa.Gen.RoomChat do
use GenServer
defmodule State do
@type t :: %__MODULE__{
room_id: String.t(),
users: [String.t()],
ban_map: map(),
last_message_map: map()
}
defstruct room_id: "", users: [], ban_map: %{}, last_message_map: %{}
end... | 24.99115 | 144 | 0.591714 |
c85c4560552dc154998dcf129670120113f3fd4a | 915 | ex | Elixir | lib/adyen_checkout_ex/model/bank_account.ex | rsystem-se/adyen_checkout_ex | 4210f1c7150152e81f350dc6ca55aeb19665b85b | [
"MIT"
] | 1 | 2021-05-30T20:45:10.000Z | 2021-05-30T20:45:10.000Z | lib/adyen_checkout_ex/model/bank_account.ex | rsystem-se/adyen_checkout_ex | 4210f1c7150152e81f350dc6ca55aeb19665b85b | [
"MIT"
] | null | null | null | lib/adyen_checkout_ex/model/bank_account.ex | rsystem-se/adyen_checkout_ex | 4210f1c7150152e81f350dc6ca55aeb19665b85b | [
"MIT"
] | 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 AdyenCheckoutEx.Model.BankAccount do
@moduledoc """
"""
@derive [Poison.Encoder]
defstruct [
:"bankAccountNumber",
:"bankCity",
... | 21.785714 | 91 | 0.608743 |
c85ca1437acdf9a98ecc179be13faaa9d95457ce | 963 | ex | Elixir | elixir_heat/lib/elixir_heat_web/views/error_view.ex | tavareshenrique/nlw-heat | 5e735388cf899b7a6796bb7da8d01aeee6abdd69 | [
"MIT"
] | null | null | null | elixir_heat/lib/elixir_heat_web/views/error_view.ex | tavareshenrique/nlw-heat | 5e735388cf899b7a6796bb7da8d01aeee6abdd69 | [
"MIT"
] | null | null | null | elixir_heat/lib/elixir_heat_web/views/error_view.ex | tavareshenrique/nlw-heat | 5e735388cf899b7a6796bb7da8d01aeee6abdd69 | [
"MIT"
] | null | null | null | defmodule ElixirHeatWeb.ErrorView do
use ElixirHeatWeb, :view
import Ecto.Changeset, only: [traverse_errors: 2]
alias Ecto.Changeset
# 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: "Intern... | 28.323529 | 83 | 0.687435 |
c85cda2e8aded5ff1621ef6020da08e3ac8aad98 | 2,075 | ex | Elixir | lib/money/display_options.ex | liuggio/money | 1e0e9c34e86ad2da0ed0598158af5dabebfdca4b | [
"MIT"
] | 260 | 2015-08-26T16:42:31.000Z | 2019-02-15T17:19:41.000Z | lib/money/display_options.ex | liuggio/money | 1e0e9c34e86ad2da0ed0598158af5dabebfdca4b | [
"MIT"
] | 64 | 2016-05-24T10:23:15.000Z | 2019-02-17T10:04:52.000Z | lib/money/display_options.ex | liuggio/money | 1e0e9c34e86ad2da0ed0598158af5dabebfdca4b | [
"MIT"
] | 70 | 2015-08-28T16:45:57.000Z | 2019-02-06T01:11:11.000Z | defmodule Money.DisplayOptions do
@moduledoc false
alias Money.Currency
alias Money.ParseOptions
@type t :: %__MODULE__{
separator: String.t(),
delimiter: String.t(),
symbol: String.t(),
symbol_on_right: boolean(),
symbol_space: boolean(),
fractional_... | 34.583333 | 112 | 0.703133 |
c85d18fc86310f7de9e3915aaa6ade604ea27628 | 649 | ex | Elixir | examples/lib/live_maps_web/live/page_live.ex | sntran/live_map | 9c1fa5b29c4af9d59ad464d45a0e884f5f90a048 | [
"MIT"
] | 3 | 2021-11-28T18:17:05.000Z | 2021-12-19T01:35:13.000Z | examples/lib/live_maps_web/live/page_live.ex | sntran/live_map | 9c1fa5b29c4af9d59ad464d45a0e884f5f90a048 | [
"MIT"
] | null | null | null | examples/lib/live_maps_web/live/page_live.ex | sntran/live_map | 9c1fa5b29c4af9d59ad464d45a0e884f5f90a048 | [
"MIT"
] | null | null | null | defmodule LiveMapsWeb.PageLive do
use LiveMapsWeb, :live_view
@impl true
def mount(_params, _session, socket) do
{:ok,
socket
|> assign(:latitude, 10.4197639)
|> assign(:longitude, 107.1070841)
|> assign(:zoom, 11)
}
end
@impl true
def handle_event("change", %{"latitude" => lat... | 23.178571 | 108 | 0.613251 |
c85d426dd71d98f3971dcb4699e6d66736ace95e | 1,152 | exs | Elixir | apps/artemis/priv/repo/migrations/20190523175249_create_incidents.exs | artemis-platform/artemis_dashboard | 5ab3f5ac4c5255478bbebf76f0e43b44992e3cab | [
"MIT"
] | 9 | 2019-08-19T19:56:34.000Z | 2022-03-22T17:56:38.000Z | apps/artemis/priv/repo/migrations/20190523175249_create_incidents.exs | chrislaskey/atlas_dashboard | 9009ef5aac8fefba126fa7d3e3b82d1b610ee6fe | [
"MIT"
] | 7 | 2019-07-12T21:41:01.000Z | 2020-08-17T21:29:22.000Z | apps/artemis/priv/repo/migrations/20190523175249_create_incidents.exs | chrislaskey/atlas_dashboard | 9009ef5aac8fefba126fa7d3e3b82d1b610ee6fe | [
"MIT"
] | 2 | 2019-07-05T22:51:47.000Z | 2019-08-19T19:56:37.000Z | defmodule Artemis.Repo.Migrations.CreateIncidents do
use Ecto.Migration
def change do
create table(:incidents) do
add :acknowledged_at, :utc_datetime
add :acknowledged_by, :text
add :description, :text
add :meta, :map
add :resolved_at, :utc_datetime
add :resolved_by, :text
... | 31.135135 | 102 | 0.690972 |
c85d89f6df5f6ae7798b943e8aa1bc8c488ca66b | 674 | ex | Elixir | test/support/exemplars/minimal.ex | brownt23/crit19 | c45c7b3ae580c193168d83144da0eeb9bc91c8a9 | [
"MIT"
] | 6 | 2019-07-16T19:31:23.000Z | 2021-06-05T19:01:05.000Z | test/support/exemplars/minimal.ex | brownt23/crit19 | c45c7b3ae580c193168d83144da0eeb9bc91c8a9 | [
"MIT"
] | null | null | null | test/support/exemplars/minimal.ex | brownt23/crit19 | c45c7b3ae580c193168d83144da0eeb9bc91c8a9 | [
"MIT"
] | 3 | 2020-02-24T23:38:27.000Z | 2020-08-01T23:50:17.000Z | defmodule Crit.Exemplars.Minimal do
@moduledoc """
This is for dirt-simple structures where only a few most obvious structure
fields are relevant. Typically, for example, associated records are not
created.
"""
use ExUnit.CaseTemplate
use Crit.TestConstants
alias Crit.Factory
alias Crit.Users.Sche... | 26.96 | 76 | 0.716617 |
c85e0233f383b34460f5cafd9789309f815ab1a9 | 70 | exs | Elixir | test/test_helper.exs | blacksph3re/alastair3 | d6064e322b8ef5c6eb8da59a080852179a71b9d5 | [
"Apache-2.0"
] | null | null | null | test/test_helper.exs | blacksph3re/alastair3 | d6064e322b8ef5c6eb8da59a080852179a71b9d5 | [
"Apache-2.0"
] | null | null | null | test/test_helper.exs | blacksph3re/alastair3 | d6064e322b8ef5c6eb8da59a080852179a71b9d5 | [
"Apache-2.0"
] | 1 | 2017-12-15T15:49:16.000Z | 2017-12-15T15:49:16.000Z | ExUnit.start
Ecto.Adapters.SQL.Sandbox.mode(Alastair.Repo, :manual)
| 14 | 54 | 0.785714 |
c85e2ef0372633749d2224e7ed738e4b24381036 | 629 | ex | Elixir | Microsoft.Azure.Management.Preview.Containers/lib/microsoft/azure/management/preview/containers/model/container_port.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | 4 | 2018-09-29T03:43:15.000Z | 2021-04-01T18:30:46.000Z | Microsoft.Azure.Management.Preview.Containers/lib/microsoft/azure/management/preview/containers/model/container_port.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | null | null | null | Microsoft.Azure.Management.Preview.Containers/lib/microsoft/azure/management/preview/containers/model/container_port.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | null | null | null | # NOTE: This class is auto generated by the swagger code generator program.
# https://github.com/swagger-api/swagger-codegen.git
# Do not edit the class manually.
defmodule Microsoft.Azure.Management.Preview.Containers.Model.ContainerPort do
@moduledoc """
The port exposed on the container instance.
"""
@deri... | 22.464286 | 97 | 0.705882 |
c85e4c7d42457d084accb4174400a3456c81fbbe | 7,870 | exs | Elixir | apps/admin_api/test/admin_api/v1/controllers/user_auth_controller_test.exs | jimpeebles/ewallet | ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405 | [
"Apache-2.0"
] | null | null | null | apps/admin_api/test/admin_api/v1/controllers/user_auth_controller_test.exs | jimpeebles/ewallet | ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405 | [
"Apache-2.0"
] | null | null | null | apps/admin_api/test/admin_api/v1/controllers/user_auth_controller_test.exs | jimpeebles/ewallet | ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405 | [
"Apache-2.0"
] | null | null | null | # Copyright 2018 OmiseGO Pte Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writi... | 31.48 | 97 | 0.620584 |
c85e5e1e6d130e550eb5cdf82ebea611e9461886 | 1,978 | ex | Elixir | lib/ecto/enum.ex | alco/ecto | 8972c318d8ed551395607b0d6e15e3c6cfbf425a | [
"Apache-2.0"
] | null | null | null | lib/ecto/enum.ex | alco/ecto | 8972c318d8ed551395607b0d6e15e3c6cfbf425a | [
"Apache-2.0"
] | null | null | null | lib/ecto/enum.ex | alco/ecto | 8972c318d8ed551395607b0d6e15e3c6cfbf425a | [
"Apache-2.0"
] | null | null | null | defmodule Ecto.Enum do
@moduledoc """
A custom type that maps atoms to strings.
`Ecto.Enum` must be used whenever you want to keep atom values in a field.
Since atoms cannot be persisted to the database, `Ecto.Enum` converts them
to string when writing to the database and converts them back to atoms when
l... | 26.373333 | 90 | 0.629424 |
c85e661c4e261947d86d3e2bc60158c2a8f9a9f9 | 1,675 | ex | Elixir | lib/fuschia/entities/contato.ex | cciuenf/fuschia | cc21d38445a8236142191efd66a3e3997b25cf42 | [
"BSD-3-Clause"
] | 1 | 2022-02-21T18:25:14.000Z | 2022-02-21T18:25:14.000Z | lib/fuschia/entities/contato.ex | cciuenf/fuschia | cc21d38445a8236142191efd66a3e3997b25cf42 | [
"BSD-3-Clause"
] | 32 | 2021-07-27T20:48:30.000Z | 2022-03-26T10:35:43.000Z | lib/fuschia/entities/contato.ex | cciuenf/fuschia | cc21d38445a8236142191efd66a3e3997b25cf42 | [
"BSD-3-Clause"
] | null | null | null | defmodule Fuschia.Entities.Contato do
@moduledoc """
Contato schema
"""
use Fuschia.Schema
import Ecto.Changeset
alias Fuschia.Common.Formats
@required_fields ~w(email endereco celular)a
@mobile_format Formats.mobile()
schema "contato" do
field :celular, :string
field :email, :string
... | 23.263889 | 71 | 0.64597 |
c85e75424a6d56d78b165a21187b9dc028f37fc0 | 3,036 | exs | Elixir | test/blog/accounts_test.exs | gissandrogama/blog | fedd7fbf908b11d651debdac2a040128a50ecd2f | [
"MIT"
] | null | null | null | test/blog/accounts_test.exs | gissandrogama/blog | fedd7fbf908b11d651debdac2a040128a50ecd2f | [
"MIT"
] | 17 | 2021-04-22T00:58:05.000Z | 2021-09-26T04:03:12.000Z | test/blog/accounts_test.exs | gissandrogama/blog | fedd7fbf908b11d651debdac2a040128a50ecd2f | [
"MIT"
] | null | null | null | defmodule Blog.AccountsTest do
@moduledoc """
Test module of accounts
"""
use Blog.DataCase
alias Blog.Accounts
describe "users" do
alias Blog.Accounts.User
@valid_attrs %{
first_name: "some first_name",
image: "some image",
last_name: "some last_name",
provider: "some pro... | 29.475728 | 85 | 0.640316 |
c85e7c6b324dd5733f74024867e16b28fbf606d2 | 773 | exs | Elixir | apps/gobstopper_service/config/dev.exs | ZURASTA/gobstopper | f8d231c4459af6fa44273c3ef80857348410c70b | [
"BSD-2-Clause"
] | null | null | null | apps/gobstopper_service/config/dev.exs | ZURASTA/gobstopper | f8d231c4459af6fa44273c3ef80857348410c70b | [
"BSD-2-Clause"
] | 12 | 2017-07-24T12:29:51.000Z | 2018-04-05T03:58:10.000Z | apps/gobstopper_service/config/dev.exs | ZURASTA/gobstopper | f8d231c4459af6fa44273c3ef80857348410c70b | [
"BSD-2-Clause"
] | 4 | 2017-07-24T12:19:23.000Z | 2019-02-19T06:34:46.000Z | use Mix.Config
# Do not include metadata nor timestamps in development logs
config :logger, :console, format: "[$level] $message\n"
# Configure database
config :gobstopper_service, Gobstopper.Service.Repo,
adapter: Ecto.Adapters.Postgres,
username: "postgres",
password: "postgres",
database: "gobstopp... | 33.608696 | 145 | 0.756792 |
c85e95a41d509d0e234234cb859ae5f806721389 | 719 | exs | Elixir | apps/external_tracing_1/rel/config.exs | WhiteRookPL/elixir-fire-brigade-workshop | 1c6183339fc623842a09f4d10be75bcecf2c37e7 | [
"MIT"
] | 14 | 2017-08-09T14:21:47.000Z | 2022-03-11T04:10:49.000Z | apps/external_tracing_1/rel/config.exs | nicholasjhenry/elixir-fire-brigade-workshop | 1c6183339fc623842a09f4d10be75bcecf2c37e7 | [
"MIT"
] | null | null | null | apps/external_tracing_1/rel/config.exs | nicholasjhenry/elixir-fire-brigade-workshop | 1c6183339fc623842a09f4d10be75bcecf2c37e7 | [
"MIT"
] | 15 | 2017-09-05T15:43:53.000Z | 2020-04-13T16:20:18.000Z | use Mix.Releases.Config,
default_release: :default,
default_environment: Mix.env()
cookie_dev = :"DEV_COOKIE"
environment :dev do
set dev_mode: true
set include_erts: false
set cookie: cookie_dev
set overlay_vars: [ cookie: cookie_dev ]
set vm_args: "rel/vm.args"
end
cookie_prod = :"PROD_COOKIE"
environ... | 21.787879 | 43 | 0.714882 |
c85e96b38e9fc034c366c1b72f71a8a557b9b93d | 714 | ex | Elixir | apps/ewallet/lib/ewallet/web/api_docs/errors_view.ex | jimpeebles/ewallet | ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405 | [
"Apache-2.0"
] | null | null | null | apps/ewallet/lib/ewallet/web/api_docs/errors_view.ex | jimpeebles/ewallet | ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405 | [
"Apache-2.0"
] | null | null | null | apps/ewallet/lib/ewallet/web/api_docs/errors_view.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... | 35.7 | 74 | 0.759104 |
c85ea21e50176c4a1263cfad07d8106bc1132e44 | 3,000 | exs | Elixir | mix.exs | transumption-unstable/fsentry | 453e171bd2f520dcbc2c8286de4f630376c31621 | [
"CC0-1.0"
] | 1 | 2019-10-11T18:48:34.000Z | 2019-10-11T18:48:34.000Z | mix.exs | transumption-unstable/fsentry | 453e171bd2f520dcbc2c8286de4f630376c31621 | [
"CC0-1.0"
] | null | null | null | mix.exs | transumption-unstable/fsentry | 453e171bd2f520dcbc2c8286de4f630376c31621 | [
"CC0-1.0"
] | null | null | null | defmodule FSentry.MixProject do
use Mix.Project
def project do
[
app: :fsentry,
version: "0.1.0",
aliases: ["compile.fsentry": &compile_lazy/1],
compilers: [:fsentry] ++ Mix.compilers(),
deps: [
{:dialyxir, "~> 0.5", only: :dev, runtime: false},
{:ex_doc, "~> 0.18.... | 26.785714 | 93 | 0.599333 |
c85eae6a07f2cc76559d21c9a626771d84651ba3 | 1,172 | ex | Elixir | lib/pin_bin_web/channels/user_socket.ex | jdesilvio/pin-bin-api | 3fa1b5ecc21a99e08a11d9bbaf21d558cf5fdbb7 | [
"Apache-2.0"
] | null | null | null | lib/pin_bin_web/channels/user_socket.ex | jdesilvio/pin-bin-api | 3fa1b5ecc21a99e08a11d9bbaf21d558cf5fdbb7 | [
"Apache-2.0"
] | 5 | 2018-11-22T01:01:29.000Z | 2019-03-15T01:02:43.000Z | lib/pin_bin_web/channels/user_socket.ex | jdesilvio/pin_bin | 3fa1b5ecc21a99e08a11d9bbaf21d558cf5fdbb7 | [
"Apache-2.0"
] | null | null | null | defmodule PinBinWeb.UserSocket do
use Phoenix.Socket
## Channels
# channel "room:*", PinBinWeb.RoomChannel
## Transports
transport :websocket, Phoenix.Transports.WebSocket
# transport :longpoll, Phoenix.Transports.LongPoll
# Socket params are passed from the client and can
# be used to verify and aut... | 30.842105 | 83 | 0.703072 |
c85ee271d7572e36b424df1943db30a52c4fec03 | 1,177 | exs | Elixir | mix.exs | crewstad/romeo | 94ebe08c9de92c21a5d10018df0512d05bc1fa7a | [
"MIT"
] | 78 | 2015-11-17T14:24:27.000Z | 2022-01-18T05:24:23.000Z | mix.exs | crewstad/romeo | 94ebe08c9de92c21a5d10018df0512d05bc1fa7a | [
"MIT"
] | 38 | 2015-12-16T07:35:28.000Z | 2021-04-06T08:52:01.000Z | mix.exs | crewstad/romeo | 94ebe08c9de92c21a5d10018df0512d05bc1fa7a | [
"MIT"
] | 56 | 2015-11-23T17:57:52.000Z | 2022-01-20T16:17:29.000Z | defmodule Romeo.Mixfile do
use Mix.Project
@version "0.7.0"
def project do
[app: :romeo,
name: "Romeo",
version: @version,
elixir: "~> 1.1",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
description: description(),
deps: deps(),
docs: docs(),
... | 20.649123 | 86 | 0.568394 |
c85f027100910ef9dd6f74071fcccfbbd327367e | 775 | ex | Elixir | lib/rak/session.ex | rak/rak | cdfcd7227b38d9c6cac10bd778b03361b28f67df | [
"MIT"
] | 2 | 2018-09-30T02:59:33.000Z | 2018-10-08T19:55:38.000Z | lib/rak/session.ex | rak/rak | cdfcd7227b38d9c6cac10bd778b03361b28f67df | [
"MIT"
] | null | null | null | lib/rak/session.ex | rak/rak | cdfcd7227b38d9c6cac10bd778b03361b28f67df | [
"MIT"
] | null | null | null | defmodule Rak.Session do
@moduledoc """
Defines the behavior expected from session components.
Sessions here must be understood as connection states;
whereas the underlying connection may currently be disconnected,
the server itself may still consider the target device as present,
buffer messages, etc.
... | 25.833333 | 72 | 0.734194 |
c85f2bbf93df015dbbd544cd97eda2095bf812b1 | 91,737 | ex | Elixir | lib/aws/generated/quick_sight.ex | andrewhr/aws-elixir | 861dc2fafca50a2b2f83badba4cdcb44b5b0c171 | [
"Apache-2.0"
] | null | null | null | lib/aws/generated/quick_sight.ex | andrewhr/aws-elixir | 861dc2fafca50a2b2f83badba4cdcb44b5b0c171 | [
"Apache-2.0"
] | null | null | null | lib/aws/generated/quick_sight.ex | andrewhr/aws-elixir | 861dc2fafca50a2b2f83badba4cdcb44b5b0c171 | [
"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.QuickSight do
@moduledoc """
Amazon QuickSight API Reference
Amazon QuickSight is a fully managed, serverless business intelligence service
for the Amazon Web Services Cloud that makes it... | 23.582776 | 214 | 0.616076 |
c85f4290640a4446d408ec5956848231b1b25fe3 | 259 | ex | Elixir | lib/sift/http/request.ex | msramos/sift | 28c09763ae0a3509c815df0c2e3c88ce671b1055 | [
"MIT"
] | null | null | null | lib/sift/http/request.ex | msramos/sift | 28c09763ae0a3509c815df0c2e3c88ce671b1055 | [
"MIT"
] | null | null | null | lib/sift/http/request.ex | msramos/sift | 28c09763ae0a3509c815df0c2e3c88ce671b1055 | [
"MIT"
] | null | null | null | defmodule Sift.HTTP.Request do
@enforce_keys [:url]
defstruct url: nil, body: nil, headers: [], method: :get
@type t :: %{
url: String.t(),
body: map() | nil,
headers: [tuple],
method: :post | :get
}
end
| 21.583333 | 58 | 0.509653 |
c85f4f6bacdfbff220aec1fd37bf3cda5c333e94 | 17,418 | exs | Elixir | test/phoenix/test/conn_test.exs | shritesh/phoenix | 4bf53ecaae5a9057ea57c248964490dfdee312af | [
"MIT"
] | null | null | null | test/phoenix/test/conn_test.exs | shritesh/phoenix | 4bf53ecaae5a9057ea57c248964490dfdee312af | [
"MIT"
] | 1 | 2021-11-17T12:10:06.000Z | 2021-11-24T12:53:45.000Z | test/phoenix/test/conn_test.exs | shritesh/phoenix | 4bf53ecaae5a9057ea57c248964490dfdee312af | [
"MIT"
] | null | null | null | defmodule Phoenix.Test.ConnTest.CatchAll do
def init(opts), do: opts
def call(conn, :stat), do: conn.params["action"].(conn)
def call(conn, _opts), do: Plug.Conn.assign(conn, :catch_all, true)
end
alias Phoenix.Test.ConnTest.CatchAll
defmodule Phoenix.Test.ConnTest.RedirRouter do
use Phoenix.Router
get "/",... | 30.719577 | 145 | 0.609772 |
c85f5a032ae9d9e0c1cbfb18723f9a182a3fb9db | 914 | exs | Elixir | test/ua_parser/parsers/user_agent_test.exs | ClarkThan/ua_parser | 51f9ef5d9d0cfc8a7e29e0dde4b48516e7a23a7a | [
"Apache-2.0"
] | 20 | 2019-05-21T17:19:07.000Z | 2022-01-22T14:45:46.000Z | test/ua_parser/parsers/user_agent_test.exs | ClarkThan/ua_parser | 51f9ef5d9d0cfc8a7e29e0dde4b48516e7a23a7a | [
"Apache-2.0"
] | 17 | 2019-05-21T18:38:34.000Z | 2022-03-27T06:07:30.000Z | test/ua_parser/parsers/user_agent_test.exs | ClarkThan/ua_parser | 51f9ef5d9d0cfc8a7e29e0dde4b48516e7a23a7a | [
"Apache-2.0"
] | 8 | 2016-12-20T17:44:36.000Z | 2019-04-09T11:58:45.000Z | defmodule UAParser.Parsers.UATest do
use ExUnit.Case
alias UAParser.Parsers.UA, as: Parser
alias UAParser.{UA, Version}
@pattern [
regex:
~r/\b(MobileIron|Crosswalk|AdobeAIR|FireWeb|Jasmine|ANTGalio|Midori|Fresco|Lobo|PaleMoon|Maxthon|Lynx|OmniWeb|Dillo|Camino|Demeter|Fluid|Fennec|Epiphany|Shiira|Su... | 45.7 | 480 | 0.733042 |
c85f9970815127e115d4425187e4915a50835aeb | 2,052 | ex | Elixir | apps/site/lib/site_web/controllers/old_site_file_controller.ex | noisecapella/dotcom | d5ef869412102d2230fac3dcc216f01a29726227 | [
"MIT"
] | 42 | 2019-05-29T16:05:30.000Z | 2021-08-09T16:03:37.000Z | apps/site/lib/site_web/controllers/old_site_file_controller.ex | noisecapella/dotcom | d5ef869412102d2230fac3dcc216f01a29726227 | [
"MIT"
] | 872 | 2019-05-29T17:55:50.000Z | 2022-03-30T09:28:43.000Z | apps/site/lib/site_web/controllers/old_site_file_controller.ex | noisecapella/dotcom | d5ef869412102d2230fac3dcc216f01a29726227 | [
"MIT"
] | 12 | 2019-07-01T18:33:21.000Z | 2022-03-10T02:13:57.000Z | defmodule SiteWeb.OldSiteFileController do
@moduledoc """
Makes sure that URLs to static files from the old site continue to work.
"""
use SiteWeb, :controller
import SiteWeb.Router.Helpers
@config Application.get_env(:site, OldSiteFileController)
@response_fn @config[:response_fn]
@s3_files ["feed_inf... | 29.73913 | 83 | 0.70614 |
c85fa5748a947941480688837f74c1d5a1454dc5 | 1,321 | exs | Elixir | test/integration/off_broadway_kafka_per_partition_test.exs | bbalser/off_broadway_kafka | 5d8a4ece71d198bab36c60f57ca497a0a3b4b7a5 | [
"Apache-2.0"
] | 16 | 2019-07-30T19:17:38.000Z | 2021-05-06T18:50:36.000Z | test/integration/off_broadway_kafka_per_partition_test.exs | bbalser/off_broadway_kafka | 5d8a4ece71d198bab36c60f57ca497a0a3b4b7a5 | [
"Apache-2.0"
] | 4 | 2019-08-08T13:40:54.000Z | 2020-03-06T10:14:33.000Z | test/integration/off_broadway_kafka_per_partition_test.exs | bbalser/off_broadway_kafka | 5d8a4ece71d198bab36c60f57ca497a0a3b4b7a5 | [
"Apache-2.0"
] | 3 | 2019-08-16T22:37:47.000Z | 2020-01-28T08:07:49.000Z | defmodule OffBroadway.Kafka.PerPartitionTest do
use ExUnit.Case
use Divo
test "it lives!!!" do
{:ok, _pid} = PerPartition.start_link(pid: self())
Elsa.produce([localhost: 9092], "topic1", [{"key1", "value1"}], partition: 0)
Elsa.produce([localhost: 9092], "topic1", [{"key2", "value2"}], partition: 1... | 24.924528 | 94 | 0.610144 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.