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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ac7b196b50aac1f7d44b554462946390120a094d | 631 | ex | Elixir | clients/elixir/generated/lib/swaggy_jenkins/model/cause_user_id_cause.ex | PankTrue/swaggy-jenkins | aca35a7cca6e1fcc08bd399e05148942ac2f514b | [
"MIT"
] | 23 | 2017-08-01T12:25:26.000Z | 2022-01-25T03:44:11.000Z | clients/elixir/generated/lib/swaggy_jenkins/model/cause_user_id_cause.ex | PankTrue/swaggy-jenkins | aca35a7cca6e1fcc08bd399e05148942ac2f514b | [
"MIT"
] | 35 | 2017-06-14T03:28:15.000Z | 2022-02-14T10:25:54.000Z | clients/elixir/generated/lib/swaggy_jenkins/model/cause_user_id_cause.ex | PankTrue/swaggy-jenkins | aca35a7cca6e1fcc08bd399e05148942ac2f514b | [
"MIT"
] | 11 | 2017-08-31T19:00:20.000Z | 2021-12-19T12:04:12.000Z | # NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
# https://openapi-generator.tech
# Do not edit the class manually.
defmodule SwaggyJenkins.Model.CauseUserIdCause do
@moduledoc """
"""
@derive [Poison.Encoder]
defstruct [
:"_class",
:"shortDescription",
... | 19.71875 | 91 | 0.657686 |
ac7b1af1b158c20e1decdbb8be747f1a06d93ec0 | 2,745 | exs | Elixir | test/blog_web/controllers/author_controller_test.exs | nlundkvist/blog | 8353b0619e7d88285bb233990dcf8ec4959d6ed8 | [
"MIT"
] | null | null | null | test/blog_web/controllers/author_controller_test.exs | nlundkvist/blog | 8353b0619e7d88285bb233990dcf8ec4959d6ed8 | [
"MIT"
] | null | null | null | test/blog_web/controllers/author_controller_test.exs | nlundkvist/blog | 8353b0619e7d88285bb233990dcf8ec4959d6ed8 | [
"MIT"
] | null | null | null | defmodule BlogWeb.AuthorControllerTest do
use BlogWeb.ConnCase
alias Blog.Posts
@create_attrs %{github_user: "some github_user", name: "some name"}
@update_attrs %{github_user: "some updated github_user", name: "some updated name"}
@invalid_attrs %{github_user: nil, name: nil}
def fixture(:author) do
... | 30.842697 | 85 | 0.663024 |
ac7b1b6f383fdf302b0448b20fa68332c0fbb59d | 1,752 | ex | Elixir | lib/wanon/telegram/updates.ex | graffic/wanon-elixir | 65fcde17cbbeb1af3fda5f6423dba112dfa3b9a9 | [
"MIT"
] | 1 | 2018-11-28T07:44:28.000Z | 2018-11-28T07:44:28.000Z | lib/wanon/telegram/updates.ex | graffic/wanon-elixir | 65fcde17cbbeb1af3fda5f6423dba112dfa3b9a9 | [
"MIT"
] | 1 | 2018-10-24T20:59:09.000Z | 2018-10-24T20:59:09.000Z | lib/wanon/telegram/updates.ex | graffic/wanon-elixir | 65fcde17cbbeb1af3fda5f6423dba112dfa3b9a9 | [
"MIT"
] | null | null | null | defmodule Wanon.Telegram.Updates do
use GenStage
require Logger
@telegram Application.get_env(:wanon, Wanon.Telegram.Client)
def init(:ok) do
{:producer, {0, 0}, dispatcher: GenStage.BroadcastDispatcher}
end
def start_link() do
GenStage.start_link(__MODULE__, :ok, name: __MODULE__)
end
def ha... | 28.258065 | 77 | 0.688356 |
ac7b30791786b329d1f2c1ce4b6be67be6d206fb | 4,116 | ex | Elixir | clients/dataflow/lib/google_api/dataflow/v1b3/model/approximate_reported_progress.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/dataflow/lib/google_api/dataflow/v1b3/model/approximate_reported_progress.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/dataflow/lib/google_api/dataflow/v1b3/model/approximate_reported_progress.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... | 73.5 | 1,415 | 0.766035 |
ac7b4d7ab282597dc9422a72be3ef244418f8241 | 376 | ex | Elixir | web/views/error_view.ex | Skipper1992/proa_user | f28f007e19745b7095feaba71f3172e06af6d301 | [
"BSD-3-Clause"
] | null | null | null | web/views/error_view.ex | Skipper1992/proa_user | f28f007e19745b7095feaba71f3172e06af6d301 | [
"BSD-3-Clause"
] | null | null | null | web/views/error_view.ex | Skipper1992/proa_user | f28f007e19745b7095feaba71f3172e06af6d301 | [
"BSD-3-Clause"
] | null | null | null | defmodule ProaUser.ErrorView do
use ProaUser.Web, :view
def render("404.html", _assigns) do
"Page not found"
end
def render("500.html", _assigns) do
"Internal server error"
end
# In case no render clause matches or no
# template is found, let's render it as 500
def template_not_found(_templat... | 20.888889 | 47 | 0.699468 |
ac7b55864ba7f94dd87153d3119da0c925752c8b | 1,510 | ex | Elixir | test/support/data_case.ex | strzibny/ignition | 56c51ca8fbacba1c737a7569cd260db343f01735 | [
"bzip2-1.0.6"
] | null | null | null | test/support/data_case.ex | strzibny/ignition | 56c51ca8fbacba1c737a7569cd260db343f01735 | [
"bzip2-1.0.6"
] | null | null | null | test/support/data_case.ex | strzibny/ignition | 56c51ca8fbacba1c737a7569cd260db343f01735 | [
"bzip2-1.0.6"
] | null | null | null | defmodule MyApp.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... | 29.038462 | 86 | 0.693377 |
ac7b5615bf4983ec680498d1f0f2262e6184d853 | 2,467 | ex | Elixir | server/lib/socket_handler.ex | runcitadel/bitfeed | 2169704007610b02ab9a94b03bfd1c2fa797d80f | [
"MIT"
] | 1 | 2022-03-31T03:49:59.000Z | 2022-03-31T03:49:59.000Z | server/lib/socket_handler.ex | runcitadel/bitfeed | 2169704007610b02ab9a94b03bfd1c2fa797d80f | [
"MIT"
] | null | null | null | server/lib/socket_handler.ex | runcitadel/bitfeed | 2169704007610b02ab9a94b03bfd1c2fa797d80f | [
"MIT"
] | null | null | null | defmodule BitcoinStream.SocketHandler do
@behaviour :cowboy_websocket
use Elixometer
alias BitcoinStream.Protocol.Block, as: BitcoinBlock
alias BitcoinStream.Mempool, as: Mempool
alias BitcoinStream.BlockData, as: BlockData
def init(request, state) do
{:cowboy_websocket, request, state}
end
def ... | 26.526882 | 62 | 0.542359 |
ac7b7a8e45889f6431a027c6d3c6c37b3166b98b | 917 | exs | Elixir | config/config.exs | elpassion/sprint-poker | 5c9b34bb264c7a30ff48f0aeac40821b67310ff8 | [
"MIT"
] | 199 | 2015-10-22T16:20:09.000Z | 2021-11-08T11:20:45.000Z | config/config.exs | elpassion/sprint-poker | 5c9b34bb264c7a30ff48f0aeac40821b67310ff8 | [
"MIT"
] | 4 | 2015-10-24T20:43:29.000Z | 2016-03-03T21:09:06.000Z | config/config.exs | elpassion/sprint-poker | 5c9b34bb264c7a30ff48f0aeac40821b67310ff8 | [
"MIT"
] | 34 | 2015-10-23T06:38:43.000Z | 2019-08-13T23:49:24.000Z | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
#
# This configuration file is loaded before any dependency and
# is restricted to this project.
use Mix.Config
config :sprint_poker, ecto_repos: [SprintPoker.Repo]
# Configures the endpoint
confi... | 33.962963 | 86 | 0.763359 |
ac7bbf7de634b9899d3abd95741c7393e92be465 | 331 | ex | Elixir | web/controllers/desk_controller.ex | simwms/apiv4 | c3da7407eaf3580b759f49726028439b4b8ea9d0 | [
"MIT"
] | 2 | 2016-02-25T20:12:35.000Z | 2018-01-03T00:03:12.000Z | web/controllers/desk_controller.ex | simwms/apiv4 | c3da7407eaf3580b759f49726028439b4b8ea9d0 | [
"MIT"
] | 1 | 2016-01-11T04:50:39.000Z | 2016-01-12T05:00:08.000Z | web/controllers/desk_controller.ex | simwms/apiv4 | c3da7407eaf3580b759f49726028439b4b8ea9d0 | [
"MIT"
] | null | null | null | defmodule Apiv4.DeskController do
use Apiv4.Web, :controller
plug :scrub_params, "data" when action in [:create, :update]
plug Autox.AutoModelPlug, Apiv4.Desk when action in [:show, :update, :delete]
plug Autox.AutoPaginatePlug, [limit: 200, max_limit: 5000] when action in [:index]
use Autox.ResourceContro... | 36.777778 | 84 | 0.743202 |
ac7bc3d23ad16c26d50249970dcc03085663735b | 6,237 | exs | Elixir | test/acceptance/ast/links_images/link_test.exs | raygesualdo/earmark | 8c63366140d81205530cf68960f3d91ae85e63b7 | [
"Apache-1.1"
] | null | null | null | test/acceptance/ast/links_images/link_test.exs | raygesualdo/earmark | 8c63366140d81205530cf68960f3d91ae85e63b7 | [
"Apache-1.1"
] | null | null | null | test/acceptance/ast/links_images/link_test.exs | raygesualdo/earmark | 8c63366140d81205530cf68960f3d91ae85e63b7 | [
"Apache-1.1"
] | null | null | null | defmodule Acceptance.Ast.LinkImages.LinkTest do
use ExUnit.Case, async: true
import Support.Helpers, only: [as_ast: 1, as_ast: 2, parse_html: 1]
@moduletag :ast
describe "Link reference definitions" do
test "link with title" do
markdown = "[foo]: /url \"title\"\n\n[foo]\n"
html = "<p><a href=\... | 27.96861 | 89 | 0.526696 |
ac7bd8664091e8320d03fe13d46bc93895953e49 | 7,501 | exs | Elixir | test/glimesh/apps_test.exs | coredreamstudios/glimesh.tv | 736f4f03aa51a7fbcaaf276ffee2af470afc2fa7 | [
"MIT"
] | 328 | 2020-07-23T22:13:49.000Z | 2022-03-31T21:22:28.000Z | test/glimesh/apps_test.exs | coredreamstudios/glimesh.tv | 736f4f03aa51a7fbcaaf276ffee2af470afc2fa7 | [
"MIT"
] | 362 | 2020-07-23T22:38:38.000Z | 2022-03-24T02:11:16.000Z | test/glimesh/apps_test.exs | coredreamstudios/glimesh.tv | 736f4f03aa51a7fbcaaf276ffee2af470afc2fa7 | [
"MIT"
] | 72 | 2020-07-23T22:50:46.000Z | 2022-02-02T11:59:32.000Z | defmodule Glimesh.AppsTest do
use Glimesh.DataCase
import Glimesh.AccountsFixtures
alias Glimesh.Apps
alias Glimesh.Apps.App
@valid_attrs %{
name: "some name",
description: "some description",
homepage_url: "https://glimesh.tv/",
client: %{
redirect_uris: "https://glimesh.tv/something... | 33.636771 | 118 | 0.602053 |
ac7bf5bd927bae2f1e1289b57f3bb98b2ee5cbdf | 1,572 | exs | Elixir | test/exavier/mutators/aor2_test.exs | KingOfRostov/exavier | fe8020361db6295d9ec92cc71fb5170937c22833 | [
"MIT"
] | null | null | null | test/exavier/mutators/aor2_test.exs | KingOfRostov/exavier | fe8020361db6295d9ec92cc71fb5170937c22833 | [
"MIT"
] | null | null | null | test/exavier/mutators/aor2_test.exs | KingOfRostov/exavier | fe8020361db6295d9ec92cc71fb5170937c22833 | [
"MIT"
] | null | null | null | defmodule Exavier.Mutators.AOR2Test do
use ExUnit.Case, async: true
@subject Exavier.Mutators.AOR2
@mutations [
%{
description: "mutates + to *",
original_code: {:+, [line: 2], [1, 2]},
lines_to_mutate: [2],
mutated_code: {:*, [line: 2], [1, 2]}
},
%{
description: "muta... | 27.103448 | 71 | 0.542621 |
ac7c10aaa038e16b1f75806d2a2d04f83bb7da89 | 1,602 | ex | Elixir | clients/civic_info/lib/google_api/civic_info/v2/model/source.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | null | null | null | clients/civic_info/lib/google_api/civic_info/v2/model/source.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | null | null | null | clients/civic_info/lib/google_api/civic_info/v2/model/source.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 31.411765 | 106 | 0.729713 |
ac7c2cafbedb96bb8624b5b2efc4829afe0c7bdf | 2,954 | ex | Elixir | lib/field.ex | wimwian/strukt | f7893daf4a220da094fbd8e0ed5445aa2b5efbf1 | [
"Apache-2.0"
] | 59 | 2021-06-09T01:47:04.000Z | 2022-03-17T23:41:22.000Z | lib/field.ex | fishtreesugar/strukt | 38569ed7170919f9b5c969db5e8c62934da70c6f | [
"Apache-2.0"
] | 7 | 2021-07-12T14:11:04.000Z | 2022-03-17T18:06:45.000Z | lib/field.ex | wimwian/strukt | f7893daf4a220da094fbd8e0ed5445aa2b5efbf1 | [
"Apache-2.0"
] | 4 | 2021-06-13T13:45:31.000Z | 2021-07-01T08:34:38.000Z | defmodule Strukt.Field do
@moduledoc false
defstruct type: nil,
name: nil,
meta: nil,
value_type: nil,
options: [],
validations: [],
block: nil
@validation_opts [
:required,
:length,
:format,
:one_of,
:none_of,
:subs... | 25.465517 | 89 | 0.620176 |
ac7c309fb92e962dc975dcff03461268868ab199 | 4,199 | ex | Elixir | lib/absinthe/phase/document/validation/no_fragment_cycles.ex | hauptbenutzer/absinthe | f1d76e5c249ca337187971b0c96b1870f53716ed | [
"MIT"
] | null | null | null | lib/absinthe/phase/document/validation/no_fragment_cycles.ex | hauptbenutzer/absinthe | f1d76e5c249ca337187971b0c96b1870f53716ed | [
"MIT"
] | 2 | 2020-07-21T05:23:37.000Z | 2020-08-26T04:56:12.000Z | lib/absinthe/phase/document/validation/no_fragment_cycles.ex | hauptbenutzer/absinthe | f1d76e5c249ca337187971b0c96b1870f53716ed | [
"MIT"
] | 1 | 2018-11-16T02:34:40.000Z | 2018-11-16T02:34:40.000Z | defmodule Absinthe.Phase.Document.Validation.NoFragmentCycles do
@moduledoc false
# Ensure that document doesn't have any fragment cycles that could
# result in a loop during execution.
#
# Note that if this phase fails, an error should immediately be given to
# the user.
alias Absinthe.{Blueprint, Phas... | 29.363636 | 89 | 0.651346 |
ac7c493d021e1fdde35d69d6ab45743e616ac85a | 3,821 | ex | Elixir | lib/websockex/errors.ex | tht/websockex | dd2e0ea1750f482f59e40fe2b3297c65225ba47e | [
"MIT"
] | 1 | 2021-04-13T00:11:59.000Z | 2021-04-13T00:11:59.000Z | lib/websockex/errors.ex | tht/websockex | dd2e0ea1750f482f59e40fe2b3297c65225ba47e | [
"MIT"
] | null | null | null | lib/websockex/errors.ex | tht/websockex | dd2e0ea1750f482f59e40fe2b3297c65225ba47e | [
"MIT"
] | 1 | 2019-10-06T15:45:22.000Z | 2019-10-06T15:45:22.000Z | defmodule WebSockex.ApplicationError do
@moduledoc false
defexception [:reason]
def message(%__MODULE__{reason: :not_started}) do
"""
The :websockex application is not started.
Please start the applications with Application.ensure_all_started(:websockex)
"""
end
end
defmodule WebSockex.ConnErr... | 31.578512 | 128 | 0.731746 |
ac7c6524d8119a27693f568107892a615b0ae0e1 | 11,003 | ex | Elixir | lib/grizzly/commands/command.ex | smartrent/grizzly | 65a397ea7bfedb5518fe63a3f058a0b6af473e39 | [
"Apache-2.0"
] | 76 | 2019-09-04T16:56:58.000Z | 2022-03-29T06:54:36.000Z | lib/grizzly/commands/command.ex | smartrent/grizzly | 65a397ea7bfedb5518fe63a3f058a0b6af473e39 | [
"Apache-2.0"
] | 124 | 2019-09-05T14:01:24.000Z | 2022-02-28T22:58:14.000Z | lib/grizzly/commands/command.ex | smartrent/grizzly | 65a397ea7bfedb5518fe63a3f058a0b6af473e39 | [
"Apache-2.0"
] | 10 | 2019-10-23T19:25:45.000Z | 2021-11-17T13:21:20.000Z | defmodule Grizzly.Commands.Command do
@moduledoc false
# Data structure for working with Z-Wave commands as they relate to the
# Grizzly runtime
alias Grizzly.{Report, SeqNumber, ZWave}
alias Grizzly.Commands.Table
alias Grizzly.ZWave.Command, as: ZWaveCommand
alias Grizzly.ZWave.Commands.ZIPPacket
@t... | 29.657682 | 96 | 0.649732 |
ac7c73cb9b333feb0d564746acc6cd15f2093166 | 3,194 | ex | Elixir | lib/sanbase/social_data/social_dominance.ex | santiment/sanbase2 | 9ef6e2dd1e377744a6d2bba570ea6bd477a1db31 | [
"MIT"
] | 81 | 2017-11-20T01:20:22.000Z | 2022-03-05T12:04:25.000Z | lib/sanbase/social_data/social_dominance.ex | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | 359 | 2017-10-15T14:40:53.000Z | 2022-01-25T13:34:20.000Z | lib/sanbase/social_data/social_dominance.ex | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | 16 | 2017-11-19T13:57:40.000Z | 2022-02-07T08:13:02.000Z | defmodule Sanbase.SocialData.SocialDominance do
import Sanbase.Utils.ErrorHandling
alias Sanbase.SocialData.SocialHelper
require Mockery.Macro
defp http_client, do: Mockery.Macro.mockable(HTTPoison)
require Sanbase.Utils.Config, as: Config
require SanbaseWeb.Graphql.Schema
@recv_timeout 15_000
def ... | 31.94 | 121 | 0.63087 |
ac7d268b6b2b9c353249b50c19035b53a861a6b0 | 898 | exs | Elixir | test/vantagex/http_client_test.exs | sbacarob/vantagex | 3d07417d3496255d7b21682e9cf6561e1431d4f8 | [
"MIT"
] | 11 | 2019-03-31T00:20:57.000Z | 2021-12-19T18:18:29.000Z | test/vantagex/http_client_test.exs | sbacarob/vantagex | 3d07417d3496255d7b21682e9cf6561e1431d4f8 | [
"MIT"
] | 12 | 2019-02-13T11:56:28.000Z | 2020-10-28T04:35:01.000Z | test/vantagex/http_client_test.exs | sbacarob/vantagex | 3d07417d3496255d7b21682e9cf6561e1431d4f8 | [
"MIT"
] | 2 | 2019-05-22T05:46:02.000Z | 2020-04-10T19:08:46.000Z | defmodule Vantagex.HttpClientTest do
use ExUnit.Case, async: true
alias Vantagex.HttpClient
test "datatype defaults to map when not included" do
expected = %{
as_map: true,
apikey: "TEST_API_KEY",
}
assert HttpClient.process_request_params(%{}) == expected
end
test "apikey is corre... | 21.902439 | 76 | 0.642539 |
ac7d4ed7e2760d037a50134d3d49eabba517e8c8 | 176 | ex | Elixir | src/map.ex | myyrakle/Elixir-Example | 0b7fcb11a6bea25e7cca8b50f14ae577a0c8c705 | [
"MIT"
] | null | null | null | src/map.ex | myyrakle/Elixir-Example | 0b7fcb11a6bea25e7cca8b50f14ae577a0c8c705 | [
"MIT"
] | null | null | null | src/map.ex | myyrakle/Elixir-Example | 0b7fcb11a6bea25e7cca8b50f14ae577a0c8c705 | [
"MIT"
] | null | null | null | map = %{ "john"=>3, "tom"=>44 }
IO.puts map["john"]
new_map = Map.put_new map, "홍길동", 999
IO.puts new_map["홍길동"]
new_map = %{ new_map | "홍길동"=> 8888 }
IO.puts new_map["홍길동"]
| 19.555556 | 37 | 0.596591 |
ac7d7092b25dccfd70c355ae85f445d8df75300d | 7,565 | exs | Elixir | test/swoosh/adapters/mailjet_test.exs | statuspal/swoosh | 23fee40fb8bf42f35afd980ce49e645f0b817e9b | [
"MIT"
] | null | null | null | test/swoosh/adapters/mailjet_test.exs | statuspal/swoosh | 23fee40fb8bf42f35afd980ce49e645f0b817e9b | [
"MIT"
] | null | null | null | test/swoosh/adapters/mailjet_test.exs | statuspal/swoosh | 23fee40fb8bf42f35afd980ce49e645f0b817e9b | [
"MIT"
] | null | null | null | defmodule Swoosh.Adapters.MailjetTest do
use Swoosh.AdapterCase, async: true
import Swoosh.Email
alias Swoosh.Adapters.Mailjet
@firstname "Pan"
@lastname "Michal"
@subject "Hello, world!"
@sender "sender@example.com"
@receiver "receiver@example.com"
@developer "developer@example.com"
@template_id ... | 25.216667 | 88 | 0.498612 |
ac7db41adf1d53b1fd2d81a3732fec1182a03dda | 1,417 | ex | Elixir | clients/content/lib/google_api/content/v2/model/product_unit_pricing_base_measure.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/model/product_unit_pricing_base_measure.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/model/product_unit_pricing_base_measure.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... | 29.520833 | 88 | 0.748059 |
ac7dbd4e3939066449ccc8a06359fa5fa2703c63 | 1,538 | ex | Elixir | lib/rockelivery_web/endpoint.ex | felipe-jm/ignite-elixir-rockelivery | 0c057a081561e7f0518be424dbb3647a7ac2401e | [
"MIT"
] | null | null | null | lib/rockelivery_web/endpoint.ex | felipe-jm/ignite-elixir-rockelivery | 0c057a081561e7f0518be424dbb3647a7ac2401e | [
"MIT"
] | null | null | null | lib/rockelivery_web/endpoint.ex | felipe-jm/ignite-elixir-rockelivery | 0c057a081561e7f0518be424dbb3647a7ac2401e | [
"MIT"
] | null | null | null | defmodule RockeliveryWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :rockelivery
# The session will be stored in the cookie and signed,
# this means its contents can be read but not tampered with.
# Set :encryption_salt if you would also like to encrypt it.
@session_options [
store: :cookie,
key: "_r... | 29.018868 | 97 | 0.719116 |
ac7df03e237f8b070d8eef2fb140f639e69996a9 | 1,508 | ex | Elixir | clients/big_query_connection/lib/google_api/big_query_connection/v1beta1/model/empty.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/big_query_connection/lib/google_api/big_query_connection/v1beta1/model/empty.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/big_query_connection/lib/google_api/big_query_connection/v1beta1/model/empty.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... | 35.904762 | 282 | 0.765915 |
ac7e0414f59f77ee34eab16d60dac65b1220ad85 | 4,806 | ex | Elixir | lib/relax/resource.ex | AgilionApps/relax | f8f84717b260afe3a6824df35f72f7606ad3c048 | [
"Apache-2.0"
] | 132 | 2015-01-12T17:30:24.000Z | 2021-07-03T10:21:34.000Z | lib/relax/resource.ex | AgilionApps/relax | f8f84717b260afe3a6824df35f72f7606ad3c048 | [
"Apache-2.0"
] | 14 | 2015-03-03T14:00:03.000Z | 2016-03-07T01:45:28.000Z | lib/relax/resource.ex | AgilionApps/relax | f8f84717b260afe3a6824df35f72f7606ad3c048 | [
"Apache-2.0"
] | 15 | 2015-02-11T20:31:44.000Z | 2019-05-21T06:24:38.000Z | defmodule Relax.Resource do
use Behaviour
@moduledoc """
Provides functionality and defines a behaviour to help build jsonapi.org
resource endpoints.
## Using
When used, `Relax.Resource` works as an parent module that adds
common functionality and behaviours and plugs to your module.
### Submodules
... | 25.978378 | 79 | 0.666875 |
ac7e1eed079ee0792710e0c7f53b68732f2b3bc6 | 1,630 | ex | Elixir | lib/livebook_web/live/home_live/import_url_component.ex | danhuynhdev/livebook | d20d4f6bf123d58e4666c064027b55e3b300702f | [
"Apache-2.0"
] | null | null | null | lib/livebook_web/live/home_live/import_url_component.ex | danhuynhdev/livebook | d20d4f6bf123d58e4666c064027b55e3b300702f | [
"Apache-2.0"
] | null | null | null | lib/livebook_web/live/home_live/import_url_component.ex | danhuynhdev/livebook | d20d4f6bf123d58e4666c064027b55e3b300702f | [
"Apache-2.0"
] | null | null | null | defmodule LivebookWeb.HomeLive.ImportUrlComponent do
use LivebookWeb, :live_component
alias Livebook.{ContentLoader, Utils}
@impl true
def mount(socket) do
{:ok, assign(socket, url: "", error_message: nil)}
end
@impl true
def render(assigns) do
~H"""
<div class="flex-col space-y-5">
<... | 26.721311 | 85 | 0.556442 |
ac7e2853e28cecf6a92b5fa435b9a30bfbf982d4 | 2,133 | exs | Elixir | test/plate_slate_web/schema/mutation/create_menu_item_test.exs | conradwt/crafting-graphql-apis-in-elixir-with-absinthe | b26d050a350425ac189ea6d205834da1e47d4f90 | [
"MIT"
] | 1 | 2019-05-11T21:50:09.000Z | 2019-05-11T21:50:09.000Z | test/plate_slate_web/schema/mutation/create_menu_item_test.exs | conradwt/crafting-graphql-apis-in-elixir-with-absinthe | b26d050a350425ac189ea6d205834da1e47d4f90 | [
"MIT"
] | null | null | null | test/plate_slate_web/schema/mutation/create_menu_item_test.exs | conradwt/crafting-graphql-apis-in-elixir-with-absinthe | b26d050a350425ac189ea6d205834da1e47d4f90 | [
"MIT"
] | null | null | null | defmodule PlateSlateWeb.Schema.Mutation.CreateMenuTest do
use PlateSlateWeb.ConnCase, async: true
alias PlateSlate.{Repo, Menu}
import Ecto.Query
setup do
PlateSlate.Seeds.run()
category_id =
from(t in Menu.Category, where: t.name == "Sandwiches")
|> Repo.one!()
|> Map.fetch!(:id)
... | 24.238636 | 77 | 0.487576 |
ac7e4ef4191ce0bf17c094c3bf672f2a85588f3b | 5,679 | ex | Elixir | lib/phoenix_routes_js/view.ex | szsoppa/phoenix_routes_js | 979f7cfea99862580a14fa53f0a20fd3449af103 | [
"MIT"
] | 19 | 2017-08-27T16:38:54.000Z | 2021-09-30T00:25:23.000Z | lib/phoenix_routes_js/view.ex | szsoppa/phoenix_routes_js | 979f7cfea99862580a14fa53f0a20fd3449af103 | [
"MIT"
] | 2 | 2019-01-08T10:57:58.000Z | 2020-03-14T19:22:46.000Z | lib/phoenix_routes_js/view.ex | szsoppa/phoenix_routes_js | 979f7cfea99862580a14fa53f0a20fd3449af103 | [
"MIT"
] | 7 | 2017-08-29T11:03:36.000Z | 2022-03-24T14:34:24.000Z | defmodule PhoenixRoutesJs.View do
@moduledoc """
Module keep javascript helper that renders main script
"""
import Phoenix.HTML
import Phoenix.HTML.Tag
alias PhoenixRoutesJs.Routes
@doc """
Returns script for injecting helpers to window object
"""
def render_routes_script(conn) when is_map(conn) ... | 24.907895 | 106 | 0.589188 |
ac7e8a0428aee6be7726b4ab4e8f6b4318d6a71f | 3,404 | exs | Elixir | test/go_champs_api/players_test.exs | lairjr/go_champs_api | 01cb3ff2c655910839e5caf4282a8e50543e32a1 | [
"MIT"
] | null | null | null | test/go_champs_api/players_test.exs | lairjr/go_champs_api | 01cb3ff2c655910839e5caf4282a8e50543e32a1 | [
"MIT"
] | 5 | 2021-09-29T04:01:54.000Z | 2021-11-02T03:11:52.000Z | test/go_champs_api/players_test.exs | lairjr/tournamentsapi | dde8f8f659074527d3861391af3ab29f070179f2 | [
"MIT"
] | 1 | 2021-11-02T14:43:15.000Z | 2021-11-02T14:43:15.000Z | defmodule GoChampsApi.PlayersTest do
use GoChampsApi.DataCase
alias GoChampsApi.Helpers.TournamentHelpers
alias GoChampsApi.Players
alias GoChampsApi.Tournaments
describe "players" do
alias GoChampsApi.Players.Player
@valid_attrs %{
facebook: "some facebook",
instagram: "some instagram"... | 33.70297 | 91 | 0.680376 |
ac7e92623d437680f925ed7b9f76c2e278079fe2 | 603 | exs | Elixir | config/test.exs | neslinesli93/exq | c1caff8052c5176b716715a8bf813d6e87d98f37 | [
"Apache-2.0"
] | null | null | null | config/test.exs | neslinesli93/exq | c1caff8052c5176b716715a8bf813d6e87d98f37 | [
"Apache-2.0"
] | null | null | null | config/test.exs | neslinesli93/exq | c1caff8052c5176b716715a8bf813d6e87d98f37 | [
"Apache-2.0"
] | null | null | null | use Mix.Config
config :logger, :console, format: "\n$date $time [$level]: $message \n"
config :exq,
name: Exq,
host: System.get_env("REDIS_HOST") || "127.0.0.1",
port: System.get_env("REDIS_PORT") || 6555,
url: nil,
namespace: "test",
queues: ["default"],
concurrency: :infinite,
scheduler_enable: fals... | 26.217391 | 80 | 0.706468 |
ac7ece583db08592386ec2013ce7982715527df4 | 98 | exs | Elixir | test/monitor_test.exs | archdragon/monitor | 41a96a768e5e78cbc75344025fdaa9ed178a2718 | [
"MIT"
] | null | null | null | test/monitor_test.exs | archdragon/monitor | 41a96a768e5e78cbc75344025fdaa9ed178a2718 | [
"MIT"
] | null | null | null | test/monitor_test.exs | archdragon/monitor | 41a96a768e5e78cbc75344025fdaa9ed178a2718 | [
"MIT"
] | null | null | null | defmodule MonitorTest do
use ExUnit.Case
test "the truth" do
assert 1 + 1 == 2
end
end
| 12.25 | 24 | 0.653061 |
ac7ed2e94b274d02e9da4dbf2bc71589861b750a | 20,182 | exs | Elixir | test/r_enum/ruby_test.exs | TORIFUKUKaiou/ex-r_enum | 5fd99b61dae3c7fe8fc3838158af342ff308dff1 | [
"Apache-2.0"
] | null | null | null | test/r_enum/ruby_test.exs | TORIFUKUKaiou/ex-r_enum | 5fd99b61dae3c7fe8fc3838158af342ff308dff1 | [
"Apache-2.0"
] | null | null | null | test/r_enum/ruby_test.exs | TORIFUKUKaiou/ex-r_enum | 5fd99b61dae3c7fe8fc3838158af342ff308dff1 | [
"Apache-2.0"
] | null | null | null | defmodule REnum.RubyTest do
use ExUnit.Case
import ExUnit.CaptureIO
doctest REnum.Ruby
describe "compact/1" do
test "when list" do
assert REnum.compact([1, 2, 4]) == [1, 2, 4]
assert REnum.compact([1, nil, 2, 4]) == [1, 2, 4]
assert REnum.compact([1, 2, 4, nil]) == [1, 2, 4]
assert ... | 35.09913 | 195 | 0.449658 |
ac7ed442f5a5bd35309184e69eacf72e5625f6bd | 749 | ex | Elixir | lib/arrow/disruption/trip_short_name.ex | paulswartz/arrow | c1ba1ce52107c0ed94ce9bca2fef2bfeb606b8f9 | [
"MIT"
] | null | null | null | lib/arrow/disruption/trip_short_name.ex | paulswartz/arrow | c1ba1ce52107c0ed94ce9bca2fef2bfeb606b8f9 | [
"MIT"
] | null | null | null | lib/arrow/disruption/trip_short_name.ex | paulswartz/arrow | c1ba1ce52107c0ed94ce9bca2fef2bfeb606b8f9 | [
"MIT"
] | null | null | null | defmodule Arrow.Disruption.TripShortName do
use Ecto.Schema
import Ecto.Changeset
@type t :: %__MODULE__{
trip_short_name: String.t() | nil,
disruption_revision: Arrow.DisruptionRevision | Ecto.Association.NotLoaded.t(),
inserted_at: DateTime.t() | nil,
updated_at: DateTim... | 27.740741 | 89 | 0.687583 |
ac7ef4183e26cb768c62878083ba3c1436e8cc78 | 4,429 | exs | Elixir | test/chat_api_web/controllers/conversation_controller_test.exs | raditya3/papercups | 4657b258ee381ac0b7517e57e4d6261ce94b5871 | [
"MIT"
] | 1 | 2020-10-02T18:33:47.000Z | 2020-10-02T18:33:47.000Z | test/chat_api_web/controllers/conversation_controller_test.exs | raditya3/papercups | 4657b258ee381ac0b7517e57e4d6261ce94b5871 | [
"MIT"
] | null | null | null | test/chat_api_web/controllers/conversation_controller_test.exs | raditya3/papercups | 4657b258ee381ac0b7517e57e4d6261ce94b5871 | [
"MIT"
] | null | null | null | defmodule ChatApiWeb.ConversationControllerTest do
use ChatApiWeb.ConnCase, async: true
alias ChatApi.Conversations.Conversation
@create_attrs %{
status: "open"
}
@update_attrs %{
status: "closed"
}
@invalid_attrs %{status: nil}
setup %{conn: conn} do
account = account_fixture()
user ... | 30.756944 | 100 | 0.640551 |
ac7efdb0875be18267f40ff8b0a5db6d0624dc78 | 18,188 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/api/creatives.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/api/creatives.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/creatives.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... | 47.989446 | 480 | 0.623213 |
ac7f0e11700f9172d97688923ed3766089a5b367 | 12,747 | ex | Elixir | lib/ueberauth/strategy.ex | stephenmoloney/ueberauth | cab484ac8ba320eac93761c5a8978ec83fabc710 | [
"MIT"
] | null | null | null | lib/ueberauth/strategy.ex | stephenmoloney/ueberauth | cab484ac8ba320eac93761c5a8978ec83fabc710 | [
"MIT"
] | null | null | null | lib/ueberauth/strategy.ex | stephenmoloney/ueberauth | cab484ac8ba320eac93761c5a8978ec83fabc710 | [
"MIT"
] | null | null | null | defmodule Ueberauth.Strategy do
@moduledoc """
The Strategy is the work-horse of the system.
Strategies are implemented outside this library to meet your needs, the
strategy provides a consistent API and behaviour.
Each strategy operates through two phases.
1. `request phase`
2. `callback phase`
The... | 31.090244 | 88 | 0.696085 |
ac7f538d468fe7447fd5fe1425dd91e6255fb0f7 | 489 | ex | Elixir | lib/squest/queue_poller_pool.ex | meskallito/squest | d814a0036576d3e30e7f624a387d75c9a786bca2 | [
"MIT"
] | 2 | 2017-09-22T21:37:24.000Z | 2017-11-18T05:40:54.000Z | lib/squest/queue_poller_pool.ex | meskallito/squest | d814a0036576d3e30e7f624a387d75c9a786bca2 | [
"MIT"
] | null | null | null | lib/squest/queue_poller_pool.ex | meskallito/squest | d814a0036576d3e30e7f624a387d75c9a786bca2 | [
"MIT"
] | null | null | null | defmodule Squest.QueuePollerPool do
use Supervisor
alias Squest.QueuePoller
@process_name :squest_queue_poller_pool
def start_link(_) do
Supervisor.start_link(__MODULE__, [], name: @process_name)
end
def start_queue_poller(queue_path, message_handler, options) do
Supervisor.start_child(@process_n... | 22.227273 | 81 | 0.734151 |
ac7f63f779520f49a26f165aa948e01a40114f79 | 2,664 | ex | Elixir | lib/rest_twitch/users.ex | rockerBOO/rest_twitch | 20815fd135ff5a47a9e23ecd7a55dd00ac952722 | [
"MIT"
] | 3 | 2015-06-24T14:58:17.000Z | 2019-04-25T23:38:03.000Z | lib/rest_twitch/users.ex | rockerBOO/rest_twitch | 20815fd135ff5a47a9e23ecd7a55dd00ac952722 | [
"MIT"
] | 1 | 2018-01-09T04:18:10.000Z | 2018-01-09T04:18:10.000Z | lib/rest_twitch/users.ex | rockerBOO/rest_twitch | 20815fd135ff5a47a9e23ecd7a55dd00ac952722 | [
"MIT"
] | 2 | 2015-08-16T20:30:10.000Z | 2016-04-14T11:24:03.000Z | # DONEish
defmodule RestTwitch.Users do
alias RestTwitch.Request
alias RestTwitch.TokenRequest
import ExPrintf
defmodule User do
defstruct [
:type,
:name,
:created_at,
:_links,
:logo,
:_id,
:display_name,
:bio
]
end
@doc """
GET /users/:user Get u... | 24.897196 | 109 | 0.66967 |
ac7fa4dbbb20d81450d2a16a122d06f33c04ba86 | 1,406 | exs | Elixir | mix.exs | imolorhe/absinthe_plug | fc938660a393c1b5f9c4eef46a83dfff3b19d1e0 | [
"MIT"
] | null | null | null | mix.exs | imolorhe/absinthe_plug | fc938660a393c1b5f9c4eef46a83dfff3b19d1e0 | [
"MIT"
] | null | null | null | mix.exs | imolorhe/absinthe_plug | fc938660a393c1b5f9c4eef46a83dfff3b19d1e0 | [
"MIT"
] | null | null | null | defmodule Absinthe.Plug.Mixfile do
use Mix.Project
@version "1.5.0-rc.1"
def project do
[
app: :absinthe_plug,
version: @version,
elixir: "~> 1.3",
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
elixirc_paths: elixirc_paths(Mix.env()),
pack... | 27.038462 | 96 | 0.58606 |
ac7fb4c6f056113c8fb9ab24e4df93f9afe3eb00 | 1,464 | ex | Elixir | lib/petal_components/breadcrumbs.ex | cohawk/petal_components | 2741c4de66fa8dfa2896fe1e6e02f1d1653422cd | [
"MIT"
] | null | null | null | lib/petal_components/breadcrumbs.ex | cohawk/petal_components | 2741c4de66fa8dfa2896fe1e6e02f1d1653422cd | [
"MIT"
] | null | null | null | lib/petal_components/breadcrumbs.ex | cohawk/petal_components | 2741c4de66fa8dfa2896fe1e6e02f1d1653422cd | [
"MIT"
] | null | null | null | defmodule PetalComponents.Breadcrumbs do
use Phoenix.Component
alias PetalComponents.Heroicons
alias PetalComponents.Link
# Example:
# <.breadcrumbs separator="chevron" links={[
# %{ label: "Link 1", to: "/" },
# %{ label: "Link 1", to: "/", link_type: "patch|a|redirect" }
# ]}/>
# prop links, :l... | 27.111111 | 120 | 0.562158 |
ac7ffa18f37f196fc0417bcd6afc95bc99786ce2 | 1,357 | ex | Elixir | lib/httpc_fetcher.ex | trbngr/joken_jwks | 4b9aed603f35bedf7ea602052837cf0da1392730 | [
"Apache-2.0"
] | null | null | null | lib/httpc_fetcher.ex | trbngr/joken_jwks | 4b9aed603f35bedf7ea602052837cf0da1392730 | [
"Apache-2.0"
] | null | null | null | lib/httpc_fetcher.ex | trbngr/joken_jwks | 4b9aed603f35bedf7ea602052837cf0da1392730 | [
"Apache-2.0"
] | null | null | null | defmodule JokenJwks.HttpFetcher do
@moduledoc "Fetches signers in the JWKS url"
use Tesla, docs: false
require Logger
alias Tesla.Middleware
plug(Middleware.Retry, delay: 500, max_retries: 10)
plug(Middleware.JSON)
plug(Middleware.Logger)
@doc """
Fetches the JWKS signers from the given url
Thi... | 30.155556 | 75 | 0.647015 |
ac80045515fc50ead2d22e13d4a54ef79e747e37 | 1,374 | ex | Elixir | test/support/test_case.ex | marisradu/plug_session_mnesia | 537e1c777144a2fda25b8d5366994fd2c82ae1a8 | [
"MIT"
] | 23 | 2017-10-18T00:28:16.000Z | 2021-07-30T00:11:00.000Z | test/support/test_case.ex | marisradu/plug_session_mnesia | 537e1c777144a2fda25b8d5366994fd2c82ae1a8 | [
"MIT"
] | 3 | 2018-01-20T15:02:27.000Z | 2019-08-04T14:07:41.000Z | test/support/test_case.ex | marisradu/plug_session_mnesia | 537e1c777144a2fda25b8d5366994fd2c82ae1a8 | [
"MIT"
] | 5 | 2018-12-18T20:38:07.000Z | 2021-02-20T20:46:42.000Z | defmodule PlugSessionMnesia.TestCase do
@moduledoc """
A test case for `PlugSessionMnesia`.
This module provides helpers for testing the application.
"""
use ExUnit.CaseTemplate
using do
quote do
@app :plug_session_mnesia
@table :session_test
@attributes [:sid, :data, :timestamp]
... | 22.9 | 65 | 0.580058 |
ac80145f55f3c849ef02505b4dac27a5b492fc92 | 1,261 | ex | Elixir | test/support/conn_case.ex | ciroque/messaging_status_service | 0d32873ac6e0a78c92a5cf08da373ba4aaf22da4 | [
"MIT"
] | null | null | null | test/support/conn_case.ex | ciroque/messaging_status_service | 0d32873ac6e0a78c92a5cf08da373ba4aaf22da4 | [
"MIT"
] | null | null | null | test/support/conn_case.ex | ciroque/messaging_status_service | 0d32873ac6e0a78c92a5cf08da373ba4aaf22da4 | [
"MIT"
] | null | null | null | defmodule MessagingStatusServiceWeb.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 common datastructures and query the data layer.
... | 28.022222 | 84 | 0.71927 |
ac803a6888d8b45b7597671fa2405bd83babba71 | 308 | ex | Elixir | lib/job_board/repo.ex | TDogVoid/job_board | 23793917bd1cc4e68bccce737b971093030a31eb | [
"MIT"
] | null | null | null | lib/job_board/repo.ex | TDogVoid/job_board | 23793917bd1cc4e68bccce737b971093030a31eb | [
"MIT"
] | null | null | null | lib/job_board/repo.ex | TDogVoid/job_board | 23793917bd1cc4e68bccce737b971093030a31eb | [
"MIT"
] | null | null | null | defmodule JobBoard.Repo do
use Ecto.Repo,
otp_app: :job_board,
adapter: Ecto.Adapters.Postgres
@doc """
Dynamically loads the repository url from the
DATABASE_URL environment variable.
"""
def init(_, opts) do
{:ok, Keyword.put(opts, :url, System.get_env("DATABASE_URL"))}
end
end
| 22 | 66 | 0.694805 |
ac80402cdb53e25d1b29f5a7fe4784461bf6bda3 | 23,757 | ex | Elixir | lib/oli/publishing.ex | ChristianMurphy/oli-torus | ffeee4996b66b7c6c6eb3e0082d030b8cc6cea97 | [
"MIT"
] | null | null | null | lib/oli/publishing.ex | ChristianMurphy/oli-torus | ffeee4996b66b7c6c6eb3e0082d030b8cc6cea97 | [
"MIT"
] | null | null | null | lib/oli/publishing.ex | ChristianMurphy/oli-torus | ffeee4996b66b7c6c6eb3e0082d030b8cc6cea97 | [
"MIT"
] | null | null | null | defmodule Oli.Publishing do
import Ecto.Query, warn: false
alias Oli.Repo
alias Oli.Authoring.Course.Project
alias Oli.Authoring.Course.ProjectVisibility
alias Oli.Accounts.Author
alias Oli.Authoring.Locks
alias Oli.Delivery.Sections
alias Oli.Resources.{Revision, ResourceType}
alias Oli.Publishing.{... | 32.322449 | 127 | 0.663047 |
ac8060ad66feff0d66611cb172325cb75d9608b3 | 1,072 | ex | Elixir | lib/web/views/phase_winner_view.ex | jennstein2017/Challenge_gov | e0820df8b124a32ff8b78cb827ae43551492988b | [
"CC0-1.0"
] | 9 | 2020-02-26T20:24:38.000Z | 2022-03-22T21:14:52.000Z | lib/web/views/phase_winner_view.ex | jennstein2017/Challenge_gov | e0820df8b124a32ff8b78cb827ae43551492988b | [
"CC0-1.0"
] | 15 | 2020-04-22T19:33:24.000Z | 2022-03-26T15:11:17.000Z | lib/web/views/phase_winner_view.ex | jennstein2017/Challenge_gov | e0820df8b124a32ff8b78cb827ae43551492988b | [
"CC0-1.0"
] | 4 | 2020-04-27T22:58:57.000Z | 2022-01-14T13:42:09.000Z | defmodule Web.PhaseWinnerView do
use Web, :view
alias Web.FormView
alias ChallengeGov.Challenges
alias Web.SharedView
alias ChallengeGov.PhaseWinners
alias ChallengeGov.Winners
def render_title(challenge, phase) do
content_tag :h1 do
"Winners for Phase #{phase.title} of #{challenge.title}"
... | 27.487179 | 93 | 0.725746 |
ac808fe679afe5826e1cf6ef67148c0a79c79547 | 1,056 | exs | Elixir | config/test.exs | vaginessa/webbkoll | 9a0be0cdc2eaeac9e577589b35a63a81f68655d7 | [
"MIT"
] | null | null | null | config/test.exs | vaginessa/webbkoll | 9a0be0cdc2eaeac9e577589b35a63a81f68655d7 | [
"MIT"
] | null | null | null | config/test.exs | vaginessa/webbkoll | 9a0be0cdc2eaeac9e577589b35a63a81f68655d7 | [
"MIT"
] | null | null | null | use Mix.Config
# We don't run a server during test. If one is required,
# you can enable the server option below.
config :webbkoll, WebbkollWeb.Endpoint,
http: [port: 4001],
server: false,
debug_errors: false
# Print only warnings and errors during test
config :logger, level: :warn
config :webbkoll,
backends... | 35.2 | 97 | 0.698864 |
ac8096be0000988eee59b3e092a9deebc5f7e338 | 183 | ex | Elixir | test/test_helper/test_formatter.ex | elridion/gelfex | 8204301fc7833af54766153038ef46dffb28bc78 | [
"Apache-2.0"
] | 5 | 2019-06-25T08:15:35.000Z | 2021-05-14T07:56:55.000Z | test/test_helper/test_formatter.ex | elridion/gelfex | 8204301fc7833af54766153038ef46dffb28bc78 | [
"Apache-2.0"
] | 5 | 2020-10-19T08:03:12.000Z | 2021-12-08T15:21:55.000Z | test/test_helper/test_formatter.ex | elridion/gelfex | 8204301fc7833af54766153038ef46dffb28bc78 | [
"Apache-2.0"
] | 5 | 2020-04-02T01:27:46.000Z | 2021-11-04T13:10:27.000Z | defmodule TestFormatter do
def format(level, message, _timestamp, _metadata) do
"[test-logger][#{level}] #{message}\n"
rescue
_ -> "could not format message!\n"
end
end
| 22.875 | 54 | 0.677596 |
ac809de7442b7f1cbfecfd652dc682d087159b61 | 1,630 | ex | Elixir | apps/ex_cucumber/test/helpers/parameter_types/time.ex | Ajwah/ex_cucumber | f2b9cf06caeef624c66424ae6160f274dc133fc6 | [
"Apache-2.0"
] | 2 | 2021-05-18T18:20:05.000Z | 2022-02-13T00:15:06.000Z | apps/ex_cucumber/test/helpers/parameter_types/time.ex | Ajwah/ex_cucumber | f2b9cf06caeef624c66424ae6160f274dc133fc6 | [
"Apache-2.0"
] | 2 | 2021-04-22T00:28:17.000Z | 2021-05-19T21:04:20.000Z | apps/ex_cucumber/test/helpers/parameter_types/time.ex | Ajwah/ex_cucumber | f2b9cf06caeef624c66424ae6160f274dc133fc6 | [
"Apache-2.0"
] | 4 | 2021-04-14T03:07:45.000Z | 2021-12-12T21:23:59.000Z | defmodule Support.ParameterTypes.Time do
@behaviour ExCucumber.CustomParameterType
defstruct raw: :none,
value: :none,
hour: 0,
minutes: 0
alias Support.ParameterTypes.Validator.Integer, as: IntegerValidator
@regex ~r/^(?<hour>\d{1,2}):(?<minutes>\d{1,2})$/
@impl true
... | 25.076923 | 87 | 0.547239 |
ac80a91573a84de92a4ef4cc39253a14ec1b5cd3 | 2,486 | ex | Elixir | lib/ex_png/image.ex | xavier/ex_png | 58a23a705ace85e2351cbf0787e88df79b8f6494 | [
"Apache-2.0"
] | 10 | 2015-03-15T16:12:00.000Z | 2021-02-09T09:30:17.000Z | lib/ex_png/image.ex | xavier/ex_png | 58a23a705ace85e2351cbf0787e88df79b8f6494 | [
"Apache-2.0"
] | 1 | 2019-04-20T12:09:24.000Z | 2019-04-20T12:09:24.000Z | lib/ex_png/image.ex | xavier/ex_png | 58a23a705ace85e2351cbf0787e88df79b8f6494 | [
"Apache-2.0"
] | 5 | 2019-01-19T19:47:09.000Z | 2021-11-11T23:54:25.000Z | defmodule ExPNG.Image do
alias __MODULE__, as: Image
defstruct width: 0, height: 0, pixels: <<>>
def new(width, height) do
new(width, height, ExPNG.Color.transparent)
end
def new(width, height, background_color) do
%Image{width: width, height: height, pixels: String.duplicate(background_color, wid... | 33.146667 | 136 | 0.703138 |
ac80d9a8af1d0b436b7a6d04296d1c43cf3eb569 | 5,341 | ex | Elixir | web/jobs/schema_tasks.ex | sahilpaudel/AfterGlow | 0859ec14b47c8c5704cc8e5cba86d39aa258fff5 | [
"MIT"
] | null | null | null | web/jobs/schema_tasks.ex | sahilpaudel/AfterGlow | 0859ec14b47c8c5704cc8e5cba86d39aa258fff5 | [
"MIT"
] | null | null | null | web/jobs/schema_tasks.ex | sahilpaudel/AfterGlow | 0859ec14b47c8c5704cc8e5cba86d39aa258fff5 | [
"MIT"
] | null | null | null | defmodule AfterGlow.SchemaTasks do
alias AfterGlow.Sql.DbConnection
alias AfterGlow.CacheWrapper.Repo
alias AfterGlow.Table
alias AfterGlow.Database
alias AfterGlow.ForeignKey
alias AfterGlow.CacheWrapper
alias AfterGlow.Column
import Ecto.Query, only: [from: 2]
def sync(_db_record = %Database{db_ty... | 25.075117 | 97 | 0.603071 |
ac80d9c98973a7b6d6dc4df03d74f73b7eee30c5 | 2,700 | exs | Elixir | config/prod.exs | slashdotdash/gift-card-demo | d901ae0f718b8f949dd534230ffad04619759815 | [
"MIT"
] | 15 | 2019-05-25T14:15:31.000Z | 2021-11-16T04:57:32.000Z | config/prod.exs | slashdotdash/gift-card-demo | d901ae0f718b8f949dd534230ffad04619759815 | [
"MIT"
] | 3 | 2020-07-17T02:32:35.000Z | 2021-05-08T22:06:17.000Z | config/prod.exs | slashdotdash/gift-card-demo | d901ae0f718b8f949dd534230ffad04619759815 | [
"MIT"
] | 3 | 2020-05-02T21:44:11.000Z | 2021-06-04T17:52:30.000Z | use Mix.Config
config :eventstore, EventStore.Storage,
serializer: Commanded.Serialization.JsonSerializer,
database: "giftcard_prod",
username: "postgres",
password: "postgres",
hostname: "localhost",
pool_size: 5
config :gift_card_demo, GiftCardDemo.Repo,
database: "giftcard_prod",
username: "postgre... | 33.333333 | 68 | 0.722593 |
ac811d06219403285cde9d55bfe73b8335afaf77 | 258 | ex | Elixir | lib/phone/br/df.ex | davidkovsky/phone | 83108ab1042efe62778c7363f5d02ef888883408 | [
"Apache-2.0"
] | 97 | 2016-04-05T13:08:41.000Z | 2021-12-25T13:08:34.000Z | lib/phone/br/df.ex | davidkovsky/phone | 83108ab1042efe62778c7363f5d02ef888883408 | [
"Apache-2.0"
] | 70 | 2016-06-14T00:56:00.000Z | 2022-02-10T19:43:14.000Z | lib/phone/br/df.ex | davidkovsky/phone | 83108ab1042efe62778c7363f5d02ef888883408 | [
"Apache-2.0"
] | 31 | 2016-04-21T22:26:12.000Z | 2022-01-24T21:40:00.000Z | defmodule Phone.BR.DF do
@moduledoc false
use Helper.Area
def regex, do: ~r/^(55)(61)([2-5|89].{7}|9[89].{7}|78.{6})$/
def area_name, do: "Distrito Federal"
def area_type, do: "district"
def area_abbreviation, do: "DF"
matcher(["5561"])
end
| 19.846154 | 62 | 0.631783 |
ac81245c28a5cf20b16194fb81f9616f388081d5 | 1,588 | ex | Elixir | lib/exnem/dto/inner_transaction.ex | SimplicityMatters/exnem | 05b77fc0ffd98321701eaba974ec2fd1def39fe2 | [
"Apache-2.0"
] | 1 | 2018-10-01T23:57:04.000Z | 2018-10-01T23:57:04.000Z | lib/exnem/dto/inner_transaction.ex | SimplicityMatters/exnem | 05b77fc0ffd98321701eaba974ec2fd1def39fe2 | [
"Apache-2.0"
] | null | null | null | lib/exnem/dto/inner_transaction.ex | SimplicityMatters/exnem | 05b77fc0ffd98321701eaba974ec2fd1def39fe2 | [
"Apache-2.0"
] | null | null | null | defmodule Exnem.DTO.InnerTransaction do
use Ecto.Schema
@primary_key false
import Ecto.Changeset
embedded_schema do
embeds_one(:meta, Exnem.DTO.InnerTransactionMeta)
field(:transaction, :map)
end
def changeset(changeset, params \\ %{}) do
changeset
|> cast(params, [:transaction])
|> ca... | 28.872727 | 88 | 0.687028 |
ac814ce3a1814c1c1d1bea383868843ffbf42a12 | 1,884 | ex | Elixir | lib/teiserver/battle/tasks/post_match_process_task.ex | badosu/teiserver | 19b623aeb7c2ab28756405f7486e92b714777c54 | [
"MIT"
] | 4 | 2021-07-29T16:23:20.000Z | 2022-02-23T05:34:36.000Z | lib/teiserver/battle/tasks/post_match_process_task.ex | badosu/teiserver | 19b623aeb7c2ab28756405f7486e92b714777c54 | [
"MIT"
] | 14 | 2021-08-01T02:36:14.000Z | 2022-01-30T21:15:03.000Z | lib/teiserver/battle/tasks/post_match_process_task.ex | badosu/teiserver | 19b623aeb7c2ab28756405f7486e92b714777c54 | [
"MIT"
] | 7 | 2021-05-13T12:55:28.000Z | 2022-01-14T06:39:06.000Z | defmodule Teiserver.Battle.Tasks.PostMatchProcessTask do
use Oban.Worker, queue: :teiserver
alias Teiserver.{Battle, User}
alias Central.Helpers.NumberHelper
@impl Oban.Worker
@spec perform(any) :: :ok
def perform(_) do
Battle.list_matches(
search: [
ready_for_post_process: true
],... | 23.259259 | 80 | 0.581741 |
ac81a8bfb586a0d268ede74ad019fd7dc5baabf2 | 507 | exs | Elixir | mix.exs | jeantux/xcep | 30cfb4702dcdf05c21cb79abd6c2e3797472e06f | [
"MIT"
] | 2 | 2021-08-15T15:58:01.000Z | 2021-08-15T16:37:23.000Z | mix.exs | jeantux/xcep | 30cfb4702dcdf05c21cb79abd6c2e3797472e06f | [
"MIT"
] | null | null | null | mix.exs | jeantux/xcep | 30cfb4702dcdf05c21cb79abd6c2e3797472e06f | [
"MIT"
] | null | null | null | defmodule XCEP.MixProject do
use Mix.Project
def project do
[
app: :xcep,
version: "0.1.0",
elixir: "~> 1.10",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applicat... | 17.482759 | 59 | 0.554241 |
ac81bdbd89e50e02ba22907c50ff8e51e49a3a17 | 1,079 | ex | Elixir | lib/segment/hnvsk.ex | Ablu/fintex | 3dd2088c01a4e035478d09df1e09ec244b54cf87 | [
"MIT"
] | 27 | 2015-08-09T16:36:31.000Z | 2020-01-26T17:47:17.000Z | lib/segment/hnvsk.ex | Ablu/fintex | 3dd2088c01a4e035478d09df1e09ec244b54cf87 | [
"MIT"
] | 14 | 2015-07-31T07:28:07.000Z | 2018-09-06T18:32:37.000Z | lib/segment/hnvsk.ex | Ablu/fintex | 3dd2088c01a4e035478d09df1e09ec244b54cf87 | [
"MIT"
] | 19 | 2015-07-31T01:25:17.000Z | 2019-06-29T16:28:42.000Z | defmodule FinTex.Segment.HNVSK do
@moduledoc false
alias FinTex.Model.Dialog
alias FinTex.Parser.Lexer
use Timex
defstruct [segment: nil]
def new(s, d = %Dialog{}) do
%Dialog{
bank: bank,
login: login,
country_code: country_code,
client_system_id: ... | 20.75 | 96 | 0.548656 |
ac81d69b3aab1f11f7f1968e78ab7241b2d27069 | 1,084 | ex | Elixir | lib/toolshed/date.ex | amclain/toolshed | 881fd4953ce477310812e172bfced7532a2656d8 | [
"Apache-2.0"
] | null | null | null | lib/toolshed/date.ex | amclain/toolshed | 881fd4953ce477310812e172bfced7532a2656d8 | [
"Apache-2.0"
] | null | null | null | lib/toolshed/date.ex | amclain/toolshed | 881fd4953ce477310812e172bfced7532a2656d8 | [
"Apache-2.0"
] | null | null | null | defmodule Toolshed.Date do
@moduledoc """
This module replicate `date` unix command and its options.
"""
@doc """
Return the date and time in UTC
"""
@spec date() :: String.t()
def date() do
date_in_unix_format(DateTime.utc_now())
end
defp weekday_text(date_time) do
date_time
|> DateT... | 23.565217 | 133 | 0.619004 |
ac81e45333550c5358d461aa07d6c0cc42ac898b | 13,472 | ex | Elixir | clients/android_enterprise/lib/google_api/android_enterprise/v1/api/webapps.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/android_enterprise/lib/google_api/android_enterprise/v1/api/webapps.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/android_enterprise/lib/google_api/android_enterprise/v1/api/webapps.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... | 40.456456 | 187 | 0.622328 |
ac8211497b0c27eddf64f5d5f36e32a603bd9f95 | 1,502 | exs | Elixir | day01/day01.02.exs | jacopofar/adventofcode18-elixir | 561815c0514923dcc87901d213efae572f1d0a41 | [
"MIT"
] | 1 | 2019-05-14T04:42:39.000Z | 2019-05-14T04:42:39.000Z | day01/day01.02.exs | jacopofar/adventofcode18-elixir | 561815c0514923dcc87901d213efae572f1d0a41 | [
"MIT"
] | null | null | null | day01/day01.02.exs | jacopofar/adventofcode18-elixir | 561815c0514923dcc87901d213efae572f1d0a41 | [
"MIT"
] | null | null | null | defmodule DetectSeenPartialSums do
@moduledoc """
Dsay 1, exercise 2.
Iterate over a file with numbers, and perform the partial sum.
When a partial sum appears for a second time, show it.
IMPORTANT: the file is iterated over and over while preserving the
partial sum, as if it was infinitely conc... | 39.526316 | 88 | 0.515979 |
ac8235e2b5c352b9509a61e90c6e119e7788f1a3 | 881 | exs | Elixir | test/mongo/topology_test.exs | aenglisc/elixir-mongodb-driver | a8a72fbb8690f44ac349e0449616ac2cfbf50640 | [
"Apache-2.0"
] | 140 | 2019-04-10T09:23:53.000Z | 2022-03-27T12:37:02.000Z | test/mongo/topology_test.exs | aenglisc/elixir-mongodb-driver | a8a72fbb8690f44ac349e0449616ac2cfbf50640 | [
"Apache-2.0"
] | 99 | 2019-04-11T07:46:45.000Z | 2022-03-31T07:23:28.000Z | test/mongo/topology_test.exs | aenglisc/elixir-mongodb-driver | a8a72fbb8690f44ac349e0449616ac2cfbf50640 | [
"Apache-2.0"
] | 45 | 2019-07-15T07:06:21.000Z | 2021-11-24T09:23:21.000Z | defmodule Mongo.TopologyTest do
use ExUnit.Case # DO NOT MAKE ASYNCHRONOUS
setup_all do
assert {:ok, pid} = Mongo.TestConnection.connect
%{pid: pid}
end
@modes [:secondary, :secondary_preferred, :primary, :primary_preferred]
test "replica set selection", %{pid: mongo_pid} do
for mode <- @modes d... | 36.708333 | 128 | 0.643587 |
ac824d06d6a73a597413a0dad8de422861d9c267 | 6,663 | ex | Elixir | lib/grapevine/telnet/options.ex | shanesveller/grapevine | fe74ade1adff88dfe4c1ab55fee3902dbb4664fe | [
"MIT"
] | null | null | null | lib/grapevine/telnet/options.ex | shanesveller/grapevine | fe74ade1adff88dfe4c1ab55fee3902dbb4664fe | [
"MIT"
] | null | null | null | lib/grapevine/telnet/options.ex | shanesveller/grapevine | fe74ade1adff88dfe4c1ab55fee3902dbb4664fe | [
"MIT"
] | null | null | null | defmodule Grapevine.Telnet.Options do
@moduledoc """
Parse telnet IAC options coming from the game
"""
alias Grapevine.Telnet.GMCP
alias Grapevine.Telnet.MSSP
@se 240
@nop 241
@ga 249
@sb 250
@will 251
@wont 252
@iac_do 253
@dont 254
@iac 255
@term_type 24
@line_mode 34
@charset 42
... | 24.769517 | 91 | 0.58157 |
ac825b079c6d2db6d7d9023905b3ce9caa7577b4 | 9,307 | exs | Elixir | apps/predictions/test/parser_test.exs | noisecapella/dotcom | d5ef869412102d2230fac3dcc216f01a29726227 | [
"MIT"
] | 42 | 2019-05-29T16:05:30.000Z | 2021-08-09T16:03:37.000Z | apps/predictions/test/parser_test.exs | noisecapella/dotcom | d5ef869412102d2230fac3dcc216f01a29726227 | [
"MIT"
] | 872 | 2019-05-29T17:55:50.000Z | 2022-03-30T09:28:43.000Z | apps/predictions/test/parser_test.exs | noisecapella/dotcom | d5ef869412102d2230fac3dcc216f01a29726227 | [
"MIT"
] | 12 | 2019-07-01T18:33:21.000Z | 2022-03-10T02:13:57.000Z | defmodule Predictions.ParserTest do
use ExUnit.Case, async: true
import Predictions.Parser
alias JsonApi.Item
alias Timex.Timezone
describe "parse/1" do
test "parses a %JsonApi.Item{} into a record" do
item = %Item{
attributes: %{
"track" => "5",
"status" => "On Time",
... | 26.667622 | 92 | 0.377135 |
ac825be74a0bea204ddeca664dd08c03cbf20863 | 4,173 | ex | Elixir | clients/people/lib/google_api/people/v1/model/name.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/people/lib/google_api/people/v1/model/name.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/people/lib/google_api/people/v1/model/name.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 46.88764 | 230 | 0.673376 |
ac82a83c3b4e818ad5d925eb081d5f54994f7b4f | 1,242 | exs | Elixir | config/config.exs | jxub/barrel_ex_http | fe00edc2e69b3378c9531b32120237a765c9f5dd | [
"MIT"
] | null | null | null | config/config.exs | jxub/barrel_ex_http | fe00edc2e69b3378c9531b32120237a765c9f5dd | [
"MIT"
] | null | null | null | config/config.exs | jxub/barrel_ex_http | fe00edc2e69b3378c9531b32120237a765c9f5dd | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on this project, this
# file won't be loaded nor affect the paren... | 34.5 | 73 | 0.748792 |
ac82e2db9ca6fea10aed459bc0297ac89b2e43c1 | 176 | ex | Elixir | lib/epad_web/controllers/keyboard_controller.ex | joaohf/epad | ff3e37c3fc3b13363f5fb728c6d4a0a3d0ef3fce | [
"MIT"
] | 2 | 2020-09-07T19:45:28.000Z | 2021-05-04T05:31:41.000Z | lib/epad_web/controllers/keyboard_controller.ex | joaohf/epad | ff3e37c3fc3b13363f5fb728c6d4a0a3d0ef3fce | [
"MIT"
] | null | null | null | lib/epad_web/controllers/keyboard_controller.ex | joaohf/epad | ff3e37c3fc3b13363f5fb728c6d4a0a3d0ef3fce | [
"MIT"
] | null | null | null | defmodule EpadWeb.KeyboardController do
use EpadWeb, :controller
plug :put_layout, "keyboard.html"
def index(conn, _params) do
render(conn, "index.html")
end
end
| 17.6 | 39 | 0.727273 |
ac8300bd924a1dac8312be7cb7ac0582cd0a42b9 | 2,525 | ex | Elixir | clients/cloud_tasks/lib/google_api/cloud_tasks/v2beta2/model/pull_message.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/cloud_tasks/lib/google_api/cloud_tasks/v2beta2/model/pull_message.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/cloud_tasks/lib/google_api/cloud_tasks/v2beta2/model/pull_message.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 35.069444 | 141 | 0.714851 |
ac8341bf2ba6d43c244832548a5e3839b8bfafc2 | 260 | exs | Elixir | elixir_backend/clubhouse_phx/priv/repo/migrations/20210613110844_create_users.exs | yusufaine/nus-clubhouse | eae8223d26111bab5e981c95b539c964293908e8 | [
"MIT"
] | 1 | 2021-05-16T08:17:37.000Z | 2021-05-16T08:17:37.000Z | elixir_backend/clubhouse_phx/priv/repo/migrations/20210613110844_create_users.exs | yusufaine/nus-clubhouse | eae8223d26111bab5e981c95b539c964293908e8 | [
"MIT"
] | 116 | 2021-05-29T16:32:51.000Z | 2021-08-13T16:05:29.000Z | elixir_backend/clubhouse_phx/priv/repo/migrations/20210613110844_create_users.exs | yusufaine/nus-clubhouse | eae8223d26111bab5e981c95b539c964293908e8 | [
"MIT"
] | 2 | 2021-05-23T07:12:40.000Z | 2021-10-11T02:59:40.000Z | defmodule ClubhousePhx.Repo.Migrations.CreateUsers do
use Ecto.Migration
def change do
create table(:users) do
add :email, :string
add :password_hash, :string
timestamps()
end
create unique_index :users, [:email]
end
end
| 17.333333 | 53 | 0.676923 |
ac834253eb1be185e1e626446502c8fdc8c6b8fd | 5,335 | exs | Elixir | test/phantomchain/crypto/transactions/deserializers/transfer_test.exs | PhantomChain/elixir-crypto | d842920d91a9bcbe997736b487f4e74ba0bf2fe3 | [
"MIT"
] | null | null | null | test/phantomchain/crypto/transactions/deserializers/transfer_test.exs | PhantomChain/elixir-crypto | d842920d91a9bcbe997736b487f4e74ba0bf2fe3 | [
"MIT"
] | null | null | null | test/phantomchain/crypto/transactions/deserializers/transfer_test.exs | PhantomChain/elixir-crypto | d842920d91a9bcbe997736b487f4e74ba0bf2fe3 | [
"MIT"
] | null | null | null | defmodule PhantomChain.Crypto.Transactions.Deserializers.TransferTest do
use ExUnit.Case, async: false
alias PhantomChain.Crypto.Transactions.Deserializer
alias PhantomChain.Crypto.Transactions.Transaction
alias PhantomChain.Test.TestHelper
test "should be ok if signed with a passphrase" do
fixture = Tes... | 42.68 | 97 | 0.733271 |
ac8346bb33bc179c5728bb583cd8014a5491395e | 4,523 | exs | Elixir | test/features/developer_creates_post_test.exs | plicjo/tilex | f3d9cba7f2ca99c75622cd1a9992508614dd455f | [
"MIT"
] | 460 | 2016-12-28T21:50:05.000Z | 2022-03-16T14:34:08.000Z | test/features/developer_creates_post_test.exs | plicjo/tilex | f3d9cba7f2ca99c75622cd1a9992508614dd455f | [
"MIT"
] | 412 | 2016-12-27T17:32:01.000Z | 2021-09-17T23:51:47.000Z | test/features/developer_creates_post_test.exs | plicjo/tilex | f3d9cba7f2ca99c75622cd1a9992508614dd455f | [
"MIT"
] | 140 | 2017-01-06T06:55:58.000Z | 2022-02-04T13:35:21.000Z | defmodule DeveloperCreatesPostTest do
use Tilex.IntegrationCase, async: false
alias Tilex.Integration.Pages.{
Navigation,
IndexPage,
CreatePostPage,
PostShowPage,
PostForm
}
test "fills out form and submits", %{session: session} do
Ecto.Adapters.SQL.Sandbox.allow(Tilex.Repo, self(), Pr... | 29.953642 | 93 | 0.668362 |
ac837e9cb3dc9bda378b3060006323673f5534df | 350 | ex | Elixir | lib/sanbase_web/admin/billing/stripe_event.ex | sitedata/sanbase2 | 8da5e44a343288fbc41b68668c6c80ae8547d557 | [
"MIT"
] | 81 | 2017-11-20T01:20:22.000Z | 2022-03-05T12:04:25.000Z | lib/sanbase_web/admin/billing/stripe_event.ex | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | 359 | 2017-10-15T14:40:53.000Z | 2022-01-25T13:34:20.000Z | lib/sanbase_web/admin/billing/stripe_event.ex | sitedata/sanbase2 | 8da5e44a343288fbc41b68668c6c80ae8547d557 | [
"MIT"
] | 16 | 2017-11-19T13:57:40.000Z | 2022-02-07T08:13:02.000Z | defmodule SanbaseWeb.ExAdmin.Billing.StripeEvent do
use ExAdmin.Register
register_resource Sanbase.Billing.StripeEvent do
action_items(only: [:show])
index do
column(:event_id)
column(:type)
column(:is_processed)
column(:inserted_at)
end
show plan do
attributes_table... | 18.421053 | 51 | 0.682857 |
ac83aa7bdd72426d5798034f6a8dd7420d366b95 | 396 | ex | Elixir | lib/pagination/classic/page_request.ex | heyorbit/elixir-server-utils | 32643ecf4042a110495ffb2eaee3016aa5276d5a | [
"MIT"
] | null | null | null | lib/pagination/classic/page_request.ex | heyorbit/elixir-server-utils | 32643ecf4042a110495ffb2eaee3016aa5276d5a | [
"MIT"
] | null | null | null | lib/pagination/classic/page_request.ex | heyorbit/elixir-server-utils | 32643ecf4042a110495ffb2eaee3016aa5276d5a | [
"MIT"
] | null | null | null | defmodule ServerUtils.Pagination.Classic.PageRequest do
@moduledoc """
Structure that represents a page request with the page information and the page size
"""
@typedoc """
Integer values for page number and page size
"""
@type t :: %__MODULE__{
page_number: non_neg_integer(),
page_si... | 24.75 | 86 | 0.684343 |
ac83dc8080d80316039ed5267792ff9519921bd3 | 6,350 | ex | Elixir | lib/ueberauth/strategy/facebook.ex | KosyanMedia/ueberauth_facebook | 5c2deee044f8578ebc99bce76426f4028eced45a | [
"MIT"
] | 1 | 2018-02-28T00:24:52.000Z | 2018-02-28T00:24:52.000Z | lib/ueberauth/strategy/facebook.ex | KosyanMedia/ueberauth_facebook | 5c2deee044f8578ebc99bce76426f4028eced45a | [
"MIT"
] | 1 | 2021-09-22T14:53:17.000Z | 2021-09-22T14:53:17.000Z | lib/ueberauth/strategy/facebook.ex | KosyanMedia/ueberauth_facebook | 5c2deee044f8578ebc99bce76426f4028eced45a | [
"MIT"
] | 2 | 2017-06-13T07:12:41.000Z | 2020-08-21T03:31:09.000Z | defmodule Ueberauth.Strategy.Facebook do
@moduledoc """
Facebook Strategy for Überauth.
"""
use Ueberauth.Strategy, default_scope: "email",
profile_fields: "",
uid_field: :id,
allowed_request_params: [
:au... | 26.680672 | 87 | 0.614488 |
ac83e94d184ddfe62d50dabe8c2b6082e972c866 | 8,504 | exs | Elixir | test/phoenix/endpoint/endpoint_test.exs | dbi1/phoenix | 1021c4d84679666136cef4ec73ba4d0544446a3b | [
"MIT"
] | null | null | null | test/phoenix/endpoint/endpoint_test.exs | dbi1/phoenix | 1021c4d84679666136cef4ec73ba4d0544446a3b | [
"MIT"
] | null | null | null | test/phoenix/endpoint/endpoint_test.exs | dbi1/phoenix | 1021c4d84679666136cef4ec73ba4d0544446a3b | [
"MIT"
] | null | null | null | System.put_env("ENDPOINT_TEST_HOST", "example.com")
defmodule Phoenix.Endpoint.EndpointTest do
use ExUnit.Case, async: true
use RouterHelper
@config [url: [host: {:system, "ENDPOINT_TEST_HOST"}, path: "/api"],
static_url: [host: "static.example.com"],
server: false, http: [port: 80], https... | 36.973913 | 109 | 0.682855 |
ac83fed4b153311500fa337ab508fbae2e14606b | 238 | ex | Elixir | lib/tasks/schema.ex | SimpleBet/schema_diff | a3c427f2442ebe07dfbbfa428cbb7aaf8d05e189 | [
"Apache-2.0"
] | 2 | 2021-01-26T20:14:37.000Z | 2021-01-27T01:08:10.000Z | lib/tasks/schema.ex | SimpleBet/schema_diff | a3c427f2442ebe07dfbbfa428cbb7aaf8d05e189 | [
"Apache-2.0"
] | null | null | null | lib/tasks/schema.ex | SimpleBet/schema_diff | a3c427f2442ebe07dfbbfa428cbb7aaf8d05e189 | [
"Apache-2.0"
] | null | null | null | defmodule Mix.Tasks.Schema do
use Mix.Task
@impl Mix.Task
def run([filename]) do
filename |> SchemaDiff.file_to_schema() |> Mix.shell().info()
end
def run(_args) do
Mix.shell().error("mix schema <file one>")
end
end
| 18.307692 | 65 | 0.659664 |
ac840f07b995f37758c48eeb7c5a6f43551ceae7 | 1,399 | ex | Elixir | apps/parser/lib/readers/dom_map.ex | qwertystop/dominions5.analyst | 7c39ea14640b3a2d2c70df249688bc501f2f2184 | [
"MIT"
] | 1 | 2019-07-04T00:39:31.000Z | 2019-07-04T00:39:31.000Z | apps/parser/lib/readers/dom_map.ex | qwertystop/dominions5.analyst | 7c39ea14640b3a2d2c70df249688bc501f2f2184 | [
"MIT"
] | null | null | null | apps/parser/lib/readers/dom_map.ex | qwertystop/dominions5.analyst | 7c39ea14640b3a2d2c70df249688bc501f2f2184 | [
"MIT"
] | null | null | null | defmodule Parser.Readers.DomMap do
@type subspec :: {atom, any}
@spec read!(Enumerable.t, subspec, subspec) :: Parser.collection
def read!(input_bytestream, {key_type=:integer, key_size}, {val_type, val_spec}) do
read_key(input_bytestream, key_type, key_size, val_type, val_spec)
end
defp delegate_reader... | 37.810811 | 85 | 0.687634 |
ac8415817d1f700e84693eb99d25713c2cb8405f | 211 | ex | Elixir | tutorials/plug/plug_example/lib/plug_example.ex | idfumg/ElixirSynopsis | 74c668d84300812dd41eb18772aecfb89bc7628b | [
"MIT"
] | null | null | null | tutorials/plug/plug_example/lib/plug_example.ex | idfumg/ElixirSynopsis | 74c668d84300812dd41eb18772aecfb89bc7628b | [
"MIT"
] | 1 | 2021-06-25T15:23:14.000Z | 2021-06-25T15:23:14.000Z | tutorials/plug/plug_example/lib/plug_example.ex | idfumg/ElixirSynopsis | 74c668d84300812dd41eb18772aecfb89bc7628b | [
"MIT"
] | null | null | null | defmodule PlugExample do
@moduledoc """
Documentation for PlugExample.
"""
@doc """
Hello world.
## Examples
iex> PlugExample.hello()
:world
"""
def hello do
:world
end
end
| 11.105263 | 32 | 0.587678 |
ac841f54e783a8512e67f3bc2abddc93f765e943 | 4,213 | ex | Elixir | clients/cloud_functions/lib/google_api/cloud_functions/v1/model/binding.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/cloud_functions/lib/google_api/cloud_functions/v1/model/binding.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/cloud_functions/lib/google_api/cloud_functions/v1/model/binding.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... | 79.490566 | 1,972 | 0.753857 |
ac843105bd35b284ce921f331c5814c36084909e | 826 | exs | Elixir | test/meilisearch/system_test.exs | Harrisonl/meilisearch-elixir | d2d9b0a0fe52aeabd597b1df2e47e8d3eb35c7d5 | [
"MIT"
] | 1 | 2020-09-17T21:51:19.000Z | 2020-09-17T21:51:19.000Z | test/meilisearch/system_test.exs | Harrisonl/meilisearch-elixir | d2d9b0a0fe52aeabd597b1df2e47e8d3eb35c7d5 | [
"MIT"
] | null | null | null | test/meilisearch/system_test.exs | Harrisonl/meilisearch-elixir | d2d9b0a0fe52aeabd597b1df2e47e8d3eb35c7d5 | [
"MIT"
] | null | null | null | defmodule Meilisearch.SystemTest do
use ExUnit.Case
alias Meilisearch.System
test "System.info" do
{:ok, info} = System.info()
total_memory =
info
|> Map.get("global")
|> Map.get("totalMemory")
assert Map.has_key?(info, "memoryUsage")
assert Map.has_key?(info, "processorUsage... | 22.944444 | 47 | 0.646489 |
ac844fdbb72fb8ebe415183a516c5a4972dacb8a | 1,380 | exs | Elixir | mix.exs | fremantle-capital/ex_derib | 666591f7e8987422bc300c9af593798074a97c5a | [
"MIT"
] | 2 | 2020-01-27T07:39:51.000Z | 2021-04-27T11:02:03.000Z | mix.exs | fremantle-capital/ex_derib | 666591f7e8987422bc300c9af593798074a97c5a | [
"MIT"
] | 8 | 2020-05-25T09:16:43.000Z | 2021-03-22T17:12:59.000Z | mix.exs | fremantle-capital/ex_derib | 666591f7e8987422bc300c9af593798074a97c5a | [
"MIT"
] | 1 | 2021-04-27T11:02:04.000Z | 2021-04-27T11:02:04.000Z | defmodule ExDeribit.MixProject do
use Mix.Project
def project do
[
app: :ex_deribit,
version: "0.0.9",
elixir: "~> 1.10",
package: package(),
start_permanent: Mix.env() == :prod,
description: description(),
deps: deps(),
dialyzer: [
plt_add_apps: [:mix, :... | 23 | 77 | 0.523188 |
ac846deb1ef06b1615f26ca6f5fb4c2d5e337a86 | 5,528 | ex | Elixir | lib/zig/assembler.ex | wojtekmach/zigler | b2102744bff212351abfeb4f6d87e57dd1ab232c | [
"MIT"
] | 1 | 2021-02-26T00:00:34.000Z | 2021-02-26T00:00:34.000Z | lib/zig/assembler.ex | fhunleth/zigler | 037ff05087563d3255f58fb0abbaedeb12b97211 | [
"MIT"
] | null | null | null | lib/zig/assembler.ex | fhunleth/zigler | 037ff05087563d3255f58fb0abbaedeb12b97211 | [
"MIT"
] | null | null | null | defmodule Zig.Assembler do
@moduledoc """
Fist phase of the Zig compilation process.
Looks through the contents of the zig code and creates a map
of required source code files. Then outputs a struct containing
the relevant information.
"""
require Logger
defstruct [:type, :source, :target, context: ... | 31.409091 | 101 | 0.664255 |
ac84a0f51b1734a6a512923b52e6cbaf2b39a0b1 | 954 | ex | Elixir | test/support/channel_case.ex | nulleof/make-word-bot | bf6ed80975f0d89697cdd5e1019d73c47dd335d4 | [
"MIT"
] | null | null | null | test/support/channel_case.ex | nulleof/make-word-bot | bf6ed80975f0d89697cdd5e1019d73c47dd335d4 | [
"MIT"
] | 5 | 2019-02-10T14:22:39.000Z | 2019-02-11T16:29:02.000Z | test/support/channel_case.ex | nulleof/make-word-bot | bf6ed80975f0d89697cdd5e1019d73c47dd335d4 | [
"MIT"
] | null | null | null | defmodule MakeWordBotWeb.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 data structures and query the data layer.
Finally, if the test case interac... | 25.105263 | 73 | 0.720126 |
ac84d0dcdb384a83fdef5bb3d1b6e122b50b6e78 | 182 | exs | Elixir | test/llp_web/controllers/page_controller_test.exs | Danwhy/llp | 63d4efa78b56351c9d96c46024291c828722c3fe | [
"MIT"
] | 2 | 2019-01-02T11:02:59.000Z | 2019-04-15T10:07:40.000Z | test/llp_web/controllers/page_controller_test.exs | Danwhy/llp | 63d4efa78b56351c9d96c46024291c828722c3fe | [
"MIT"
] | null | null | null | test/llp_web/controllers/page_controller_test.exs | Danwhy/llp | 63d4efa78b56351c9d96c46024291c828722c3fe | [
"MIT"
] | null | null | null | defmodule LlpWeb.PageControllerTest do
use LlpWeb.ConnCase
test "GET /", %{conn: conn} do
conn = get conn, "/"
assert html_response(conn, 200) =~ "Hello Llp!"
end
end
| 20.222222 | 51 | 0.659341 |
ac84d1ec323b8b7a6561cbf93d23497ff8244850 | 2,066 | ex | Elixir | apps/firestorm_data/lib/firestorm_data/commands/tag_category.ex | CircleCI-Public/firestorm | 9ca2c46a2b2377370347ad94d6003eeb77be38d6 | [
"MIT"
] | 10 | 2017-06-28T08:06:52.000Z | 2022-03-19T17:49:21.000Z | apps/firestorm_data/lib/firestorm_data/commands/tag_category.ex | CircleCI-Public/firestorm | 9ca2c46a2b2377370347ad94d6003eeb77be38d6 | [
"MIT"
] | null | null | null | apps/firestorm_data/lib/firestorm_data/commands/tag_category.ex | CircleCI-Public/firestorm | 9ca2c46a2b2377370347ad94d6003eeb77be38d6 | [
"MIT"
] | 2 | 2017-10-21T12:01:02.000Z | 2021-01-29T10:26:22.000Z | defmodule FirestormData.Commands.TagCategory do
@moduledoc """
A command to tag a `Category`.
"""
use FirestormData.Command
alias FirestormData.{Tagging, Tag}
embedded_schema do
field :tag_title, :string
field :category_id, :integer
end
@required_fields ~w(tag_title category_id)a
@optional_... | 25.825 | 103 | 0.602614 |
ac84f161a499b991c4c4ca38a124c78859ef8917 | 1,733 | ex | Elixir | lib/ex_abnf.ex | ldr/ex_abnf | 49bcca0fc736b239b44b200a1ae543c878ad8538 | [
"Apache-2.0"
] | null | null | null | lib/ex_abnf.ex | ldr/ex_abnf | 49bcca0fc736b239b44b200a1ae543c878ad8538 | [
"Apache-2.0"
] | null | null | null | lib/ex_abnf.ex | ldr/ex_abnf | 49bcca0fc736b239b44b200a1ae543c878ad8538 | [
"Apache-2.0"
] | 2 | 2021-03-01T12:02:27.000Z | 2021-03-01T13:33:19.000Z | defmodule ABNF do
@moduledoc """
Main module. ABNF parser as described in [RFC4234](https://tools.ietf.org/html/rfc4234)
and [RFC5234](https://tools.ietf.org/html/rfc5234)
Copyright 2015 Marcelo Gornstein <marcelog@gmail.com>
Licensed under the Apache License, Version 2.0 (the "License");
you ... | 32.092593 | 89 | 0.687248 |
ac8510f3f19c9b5d5b7ac9cd1b3a147fdb459a19 | 7,086 | exs | Elixir | test/params_validation_test.exs | amit115532/plug-body-params-validator | b724f8dae728a18e0660750975731344c8578992 | [
"MIT"
] | 3 | 2018-07-24T12:43:59.000Z | 2020-04-27T00:04:51.000Z | test/params_validation_test.exs | amit115532/plug-params-validator | b724f8dae728a18e0660750975731344c8578992 | [
"MIT"
] | null | null | null | test/params_validation_test.exs | amit115532/plug-params-validator | b724f8dae728a18e0660750975731344c8578992 | [
"MIT"
] | null | null | null | import ParamsValidation
require ParamsValidation
defmodule ParamsValidation.Test do
use ExUnit.Case, async: true
use Plug.Test
doctest ParamsValidation
test "get with valid parameters" do
[private: %{params_validator: validator}] = expect(path_params: %{path_param: :string})
conn = conn("GET", "/:pa... | 34.067308 | 100 | 0.589472 |
ac852d32727342137a481294c1e85d9c260aa62b | 5,667 | exs | Elixir | test/phonetic/metaphone_algorithm_test.exs | jmoggee/the_fuzz | 20e1eb0acd8a070f9e0fab87fb5dae02a632f6c4 | [
"Apache-2.0"
] | 76 | 2015-02-05T13:54:38.000Z | 2021-11-23T12:31:00.000Z | test/phonetic/metaphone_algorithm_test.exs | jmoggee/the_fuzz | 20e1eb0acd8a070f9e0fab87fb5dae02a632f6c4 | [
"Apache-2.0"
] | 6 | 2015-08-26T13:40:26.000Z | 2019-01-09T17:00:48.000Z | test/phonetic/metaphone_algorithm_test.exs | jmoggee/the_fuzz | 20e1eb0acd8a070f9e0fab87fb5dae02a632f6c4 | [
"Apache-2.0"
] | 8 | 2015-05-13T14:06:48.000Z | 2021-10-31T19:43:27.000Z | defmodule MetaphoneAlgorithmTest do
use ExUnit.Case
import TheFuzz.Phonetic.MetaphoneAlgorithm, only: [compute: 1]
test "returns nil with empty argument" do
assert compute("") == nil
end
test "returns nil with non-phonetic argument" do
assert compute("123") == nil
end
test "return the expected... | 25.995413 | 73 | 0.543321 |
ac8544eed6bdc6d7625edf9ce3889915dc2a4485 | 121 | ex | Elixir | test/support/ecto_testset.ex | floatingpointio/delirium_tremexs | 6b7bb1918b7a8a02c4af3b7e266e30b67eba59bc | [
"MIT"
] | 4 | 2019-09-24T09:32:31.000Z | 2021-02-21T13:13:18.000Z | test/support/ecto_testset.ex | floatingpointio/delirium_tremexs | 6b7bb1918b7a8a02c4af3b7e266e30b67eba59bc | [
"MIT"
] | 2 | 2019-02-20T14:24:43.000Z | 2019-05-08T08:54:49.000Z | test/support/ecto_testset.ex | floatingpointio/delirium_tremexs | 6b7bb1918b7a8a02c4af3b7e266e30b67eba59bc | [
"MIT"
] | 1 | 2019-02-20T09:48:04.000Z | 2019-02-20T09:48:04.000Z | defmodule Ecto.Testset do
defstruct action: nil,
changes: %{},
errors: [],
data: nil,
valid?: false
end | 17.285714 | 25 | 0.603306 |
ac8550c74fde6f5c2583ed8f5722c95402f8a2d0 | 1,070 | ex | Elixir | web/models/auth_token.ex | nsarno/winter | a65a6aa61d2b1af39277338277f8b3f479643939 | [
"MIT"
] | 3 | 2015-08-24T11:44:19.000Z | 2016-10-01T21:37:05.000Z | web/models/auth_token.ex | nsarno/winter | a65a6aa61d2b1af39277338277f8b3f479643939 | [
"MIT"
] | null | null | null | web/models/auth_token.ex | nsarno/winter | a65a6aa61d2b1af39277338277f8b3f479643939 | [
"MIT"
] | null | null | null | defmodule Storm.AuthToken do
defstruct jwt: nil
alias Storm.AuthToken
alias Storm.User
alias Storm.Repo
@doc """
Plug for JWT authentication.
"""
def authenticate! conn, _ do
import Plug.Conn, only: [get_req_header: 2, assign: 3, put_status: 2, halt: 1]
import Phoenix.Controller, only: [rend... | 22.291667 | 82 | 0.611215 |
ac8584118a970cfc6b79c608efb89579259da4dc | 987 | ex | Elixir | apps/mishka_html/lib/mishka_html_web/live/components/admin/dashboard/admin_last_notif_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/dashboard/admin_last_notif_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/dashboard/admin_last_notif_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.Dashboard.LastNotifComponent do
use MishkaHtmlWeb, :live_component
def render(assigns) do
~L"""
<div class="col admin-home-toos-left vazir">
<h3>
<div class="row">
<span class="col-sm-1 iconly-bulkDanger"><span class="path1"></span><span class=... | 30.84375 | 160 | 0.56535 |
ac85a15096232636d1ff8091ae4aacb024bb4250 | 1,315 | ex | Elixir | clients/health_care/lib/google_api/health_care/v1beta1/model/cancel_operation_request.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/health_care/lib/google_api/health_care/v1beta1/model/cancel_operation_request.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/health_care/lib/google_api/health_care/v1beta1/model/cancel_operation_request.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 31.309524 | 89 | 0.771863 |
ac85a25059fadb8892cab587a7e8512fdbfe14ef | 1,681 | ex | Elixir | deps/credo/lib/credo/check/design/tag_helper.ex | BandanaPandey/nary_tree | fb1eeb69e38e43c9f9ffb54297cef52dff5c928d | [
"MIT"
] | 13 | 2018-09-19T21:03:29.000Z | 2022-01-27T04:06:32.000Z | deps/credo/lib/credo/check/design/tag_helper.ex | BandanaPandey/nary_tree | fb1eeb69e38e43c9f9ffb54297cef52dff5c928d | [
"MIT"
] | 1 | 2020-05-26T04:16:57.000Z | 2020-05-26T04:16:57.000Z | deps/credo/lib/credo/check/design/tag_helper.ex | BandanaPandey/nary_tree | fb1eeb69e38e43c9f9ffb54297cef52dff5c928d | [
"MIT"
] | 3 | 2020-05-21T04:32:08.000Z | 2021-07-28T05:14:01.000Z | defmodule Credo.Check.Design.TagHelper do
alias Credo.Check.CodeHelper
alias Credo.SourceFile
@doc_attribute_names [:doc, :moduledoc, :shortdoc]
def tags(source_file, tag_name, include_doc?) do
tags_from_module_attributes(source_file, tag_name, include_doc?) ++ tags_from_comments(source_file, tag_name)
... | 28.016667 | 134 | 0.647829 |
ac85d3da348bf66c255a95d513ab312dcee43828 | 3,734 | ex | Elixir | clients/logging/lib/google_api/logging/v2/model/list_log_entries_request.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/logging/lib/google_api/logging/v2/model/list_log_entries_request.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/logging/lib/google_api/logging/v2/model/list_log_entries_request.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 59.269841 | 469 | 0.750402 |
ac85d9ab447be98e40a74987521a22df5f34b4b1 | 1,054 | ex | Elixir | lib/basic_crud/application.ex | Thibault-Santonja/Phoenix_tests | 429100499849837d1449495db354fc1006ceb86c | [
"MIT"
] | null | null | null | lib/basic_crud/application.ex | Thibault-Santonja/Phoenix_tests | 429100499849837d1449495db354fc1006ceb86c | [
"MIT"
] | null | null | null | lib/basic_crud/application.ex | Thibault-Santonja/Phoenix_tests | 429100499849837d1449495db354fc1006ceb86c | [
"MIT"
] | null | null | null | defmodule BasicCrud.Application do
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
use Application
@impl true
def start(_type, _args) do
children = [
# Start the Ecto repository
BasicCrud.Repo,
# Start the Telemetry supervi... | 28.486486 | 67 | 0.704934 |
ac85f080b8df1eb2940dc70d9604a9f31a9dc0c4 | 151 | ex | Elixir | lib/packages_bot/adapter.ex | thiamsantos/packages_bot | 4e3e3f942c075876c93fc901b3034355a26bd627 | [
"Apache-2.0"
] | 4 | 2019-07-08T15:46:38.000Z | 2021-03-29T12:05:25.000Z | lib/packages_bot/adapter.ex | thiamsantos/packages_bot | 4e3e3f942c075876c93fc901b3034355a26bd627 | [
"Apache-2.0"
] | 13 | 2021-03-14T21:31:28.000Z | 2021-12-20T11:56:45.000Z | lib/packages_bot/adapter.ex | thiamsantos/packages_bot | 4e3e3f942c075876c93fc901b3034355a26bd627 | [
"Apache-2.0"
] | 1 | 2019-07-08T18:40:23.000Z | 2019-07-08T18:40:23.000Z | defmodule PackagesBot.Adapter do
@callback bot_token :: String.t()
@callback search_package(String.t()) :: {:ok, [%{}]} | {:error, String.t()}
end
| 30.2 | 77 | 0.655629 |
ac86004446f5f5cd69c330135b8789f7984997e5 | 857 | ex | Elixir | example_ws/src/my_ros_project/lib/my_ros_project/application.ex | the-mikedavis/ros | 9bc048e0e73f44917fd7db9934b21d32804d8e04 | [
"BSD-3-Clause"
] | 9 | 2018-11-26T19:54:01.000Z | 2021-09-12T07:45:01.000Z | example_ws/src/my_ros_project/lib/my_ros_project/application.ex | the-mikedavis/ros | 9bc048e0e73f44917fd7db9934b21d32804d8e04 | [
"BSD-3-Clause"
] | null | null | null | example_ws/src/my_ros_project/lib/my_ros_project/application.ex | the-mikedavis/ros | 9bc048e0e73f44917fd7db9934b21d32804d8e04 | [
"BSD-3-Clause"
] | 1 | 2022-02-07T09:21:58.000Z | 2022-02-07T09:21:58.000Z | defmodule MyRosProject.Application do
@moduledoc false
import ROS.Node.Spec
require Logger
use Application
alias MyRosProject.{ChatterServer, AddTwoIntsServer}
def start(_type, _args) do
# add_two_ints = fn %{a: a, b: b} ->
# Logger.debug(fn -> "[#{a} + #{b} = #{a + b}]" end)
#
# %{sum: ... | 25.969697 | 79 | 0.627771 |
ac860262f64c32b925781e6f7b132a77d31da67c | 268 | ex | Elixir | lib/structs/response.ex | InfiniteSoul/proxer_ex | df60ca5d4b9222d77ff685b7c1897781a738abc1 | [
"MIT"
] | null | null | null | lib/structs/response.ex | InfiniteSoul/proxer_ex | df60ca5d4b9222d77ff685b7c1897781a738abc1 | [
"MIT"
] | null | null | null | lib/structs/response.ex | InfiniteSoul/proxer_ex | df60ca5d4b9222d77ff685b7c1897781a738abc1 | [
"MIT"
] | null | null | null | defmodule ProxerEx.Response do
@moduledoc "Proxer response struct"
@type t :: %ProxerEx.Response{
error: boolean(),
message: binary(),
data: any(),
code: integer()
}
defstruct [:error, :message, :data, :code]
end
| 22.333333 | 44 | 0.567164 |
ac8603268e68bf8c4ad30a7ad9dc79720d52c978 | 2,008 | ex | Elixir | clients/you_tube_reporting/lib/google_api/you_tube_reporting/v1/model/gdata_diff_upload_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/you_tube_reporting/lib/google_api/you_tube_reporting/v1/model/gdata_diff_upload_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/you_tube_reporting/lib/google_api/you_tube_reporting/v1/model/gdata_diff_upload_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 37.886792 | 117 | 0.74502 |
ac8608c2af5cf1c47551e086f6c2a11650b14dfc | 2,515 | ex | Elixir | lib/queries/vacuum_stats.ex | blockfi/ecto_psql_extras | 27602dfb9d508b8ad3a904b1962d8a837128b0c7 | [
"MIT"
] | 278 | 2020-08-04T12:38:29.000Z | 2022-03-25T15:14:28.000Z | lib/queries/vacuum_stats.ex | blockfi/ecto_psql_extras | 27602dfb9d508b8ad3a904b1962d8a837128b0c7 | [
"MIT"
] | 21 | 2020-09-27T14:38:21.000Z | 2021-11-08T22:44:46.000Z | lib/queries/vacuum_stats.ex | blockfi/ecto_psql_extras | 27602dfb9d508b8ad3a904b1962d8a837128b0c7 | [
"MIT"
] | 15 | 2020-09-28T18:08:25.000Z | 2022-03-22T11:26:21.000Z | defmodule EctoPSQLExtras.VacuumStats do
@behaviour EctoPSQLExtras
def info do
%{
title: "Dead rows and whether an automatic vacuum is expected to be triggered",
columns: [
%{name: :schema, type: :string},
%{name: :table, type: :string},
%{name: :last_vacuum, type: :string},
... | 38.692308 | 123 | 0.661233 |
ac8614e3ff133bd4165db9f4eea8f258bd40cede | 3,664 | ex | Elixir | lib/snowplow_tracker.ex | dixahq/snowplow-elixir-tracker | 3952e0dc69c3c03150411c1fb5d0607151d71101 | [
"Apache-2.0"
] | 6 | 2018-04-30T11:02:45.000Z | 2021-06-18T19:09:39.000Z | lib/snowplow_tracker.ex | dixahq/snowplow-elixir-tracker | 3952e0dc69c3c03150411c1fb5d0607151d71101 | [
"Apache-2.0"
] | 15 | 2018-05-23T05:26:27.000Z | 2020-07-12T10:12:32.000Z | lib/snowplow_tracker.ex | dixahq/snowplow-elixir-tracker | 3952e0dc69c3c03150411c1fb5d0607151d71101 | [
"Apache-2.0"
] | 3 | 2020-06-05T23:30:14.000Z | 2021-06-22T08:14:35.000Z | defmodule SnowplowTracker do
@moduledoc """
Module is used to track events and send them to snowplow
"""
alias SnowplowTracker.{
Emitter,
Tracker,
Payload,
Events,
Helper
}
# Private API
@doc false
@spec track(Payload.t(), Tracker.t(), list()) :: {:ok, String.t()} | no_return()
d... | 27.548872 | 101 | 0.617085 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.