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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0870c436a16f1f7abf24a1850d803b7b8de72e2e | 362 | ex | Elixir | web/controllers/blog_post_controller.ex | codebender/5280elixir | f7dee84b785b70f61b44f4dccacfe0311ad39617 | [
"MIT"
] | null | null | null | web/controllers/blog_post_controller.ex | codebender/5280elixir | f7dee84b785b70f61b44f4dccacfe0311ad39617 | [
"MIT"
] | null | null | null | web/controllers/blog_post_controller.ex | codebender/5280elixir | f7dee84b785b70f61b44f4dccacfe0311ad39617 | [
"MIT"
] | null | null | null | defmodule Elixir5280.BlogPostController do
use Elixir5280.Web, :controller
alias Elixir5280.BlogPost
def index(conn, _params) do
blog_posts = BlogPost.all()
render(conn, "index.json", blog_posts: blog_posts)
end
def show(conn, %{"id" => id}) do
blog_post = BlogPost.get!(id)
render(conn, "sh... | 22.625 | 54 | 0.698895 |
0870dddac397c3ca3022f94d5167fe0f1b3d7091 | 431 | ex | Elixir | lib/bgg/supervisor.ex | peralmq/bgg-elixir | 50ee895c27d7ffc8a38d4670a4fd34ba9bcd7da8 | [
"MIT"
] | 3 | 2016-01-19T14:40:39.000Z | 2020-07-07T16:37:55.000Z | lib/bgg/supervisor.ex | peralmq/bgg-elixir | 50ee895c27d7ffc8a38d4670a4fd34ba9bcd7da8 | [
"MIT"
] | null | null | null | lib/bgg/supervisor.ex | peralmq/bgg-elixir | 50ee895c27d7ffc8a38d4670a4fd34ba9bcd7da8 | [
"MIT"
] | null | null | null | defmodule BGG.Supervisor do
use Supervisor
def start_link do
:supervisor.start_link(__MODULE__, [])
end
def init([]) do
children = [
# Define workers and child supervisors to be supervised
# worker(BGG.Worker, [])
]
# See http://elixir-lang.org/docs/stable/Supervisor.Behaviour.ht... | 20.52381 | 70 | 0.684455 |
0870e7eddbeb00950e04230da9cac2d0e48959a8 | 1,504 | ex | Elixir | lib/google_api/you_tube/v3/model/playlist_snippet.ex | jesteracer/ytb | 67e3cab899e4f69e586383f7be2c3855c6beea49 | [
"Apache-2.0"
] | null | null | null | lib/google_api/you_tube/v3/model/playlist_snippet.ex | jesteracer/ytb | 67e3cab899e4f69e586383f7be2c3855c6beea49 | [
"Apache-2.0"
] | null | null | null | lib/google_api/you_tube/v3/model/playlist_snippet.ex | jesteracer/ytb | 67e3cab899e4f69e586383f7be2c3855c6beea49 | [
"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... | 31.333333 | 99 | 0.732048 |
0870f811ee2d6306153404038204be2be06b87bc | 3,832 | ex | Elixir | lib/changelog_web/helpers/admin_helpers.ex | PsOverflow/changelog.com | 53f4ecfc39b021c6b8cfcc0fa11f29aff8038a7f | [
"MIT"
] | null | null | null | lib/changelog_web/helpers/admin_helpers.ex | PsOverflow/changelog.com | 53f4ecfc39b021c6b8cfcc0fa11f29aff8038a7f | [
"MIT"
] | null | null | null | lib/changelog_web/helpers/admin_helpers.ex | PsOverflow/changelog.com | 53f4ecfc39b021c6b8cfcc0fa11f29aff8038a7f | [
"MIT"
] | null | null | null | defmodule ChangelogWeb.Helpers.AdminHelpers do
use Phoenix.HTML
alias Changelog.Repo
alias ChangelogWeb.TimeView
alias ChangelogWeb.Helpers.SharedHelpers
def error_class(form, field) do
if form.errors[field], do: "error", else: ""
end
def error_message(form, field) do
case form.errors[field] do... | 29.476923 | 124 | 0.643267 |
0870fb3264de52cfacec8f809565d6387d4bf994 | 103,667 | ex | Elixir | clients/sas_portal/lib/google_api/sas_portal/v1alpha1/api/customers.ex | jamesvl/elixir-google-api | 6c87fb31d996f08fb42ce6066317e9d652a87acc | [
"Apache-2.0"
] | null | null | null | clients/sas_portal/lib/google_api/sas_portal/v1alpha1/api/customers.ex | jamesvl/elixir-google-api | 6c87fb31d996f08fb42ce6066317e9d652a87acc | [
"Apache-2.0"
] | null | null | null | clients/sas_portal/lib/google_api/sas_portal/v1alpha1/api/customers.ex | jamesvl/elixir-google-api | 6c87fb31d996f08fb42ce6066317e9d652a87acc | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 45.587951 | 237 | 0.614323 |
08711950859c9c778705b88a72501a58c1a659c7 | 882 | ex | Elixir | clients/calendar/lib/google_api/calendar/v3/metadata.ex | corp-momenti/elixir-google-api | fe1580e305789ab2ca0741791b8ffe924bd3240c | [
"Apache-2.0"
] | 1 | 2021-10-01T09:20:41.000Z | 2021-10-01T09:20:41.000Z | clients/calendar/lib/google_api/calendar/v3/metadata.ex | corp-momenti/elixir-google-api | fe1580e305789ab2ca0741791b8ffe924bd3240c | [
"Apache-2.0"
] | null | null | null | clients/calendar/lib/google_api/calendar/v3/metadata.ex | corp-momenti/elixir-google-api | fe1580e305789ab2ca0741791b8ffe924bd3240c | [
"Apache-2.0"
] | null | null | null | # 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 |
08714ab616695ee523b40156356c14b51ab30d5d | 1,328 | exs | Elixir | test/mysql/test_helper.exs | alesasnouski/ecto_enum | b32cdd58abf4e05d61f4ced951f124944cc549ec | [
"MIT"
] | null | null | null | test/mysql/test_helper.exs | alesasnouski/ecto_enum | b32cdd58abf4e05d61f4ced951f124944cc549ec | [
"MIT"
] | null | null | null | test/mysql/test_helper.exs | alesasnouski/ecto_enum | b32cdd58abf4e05d61f4ced951f124944cc549ec | [
"MIT"
] | null | null | null | Logger.configure(level: :info)
ExUnit.start()
alias Ecto.Integration.TestRepo
alias Ecto.Integration.PoolRepo
Code.require_file("ecto_migration.exs", __DIR__)
Application.put_env(:ecto, TestRepo,
url: "ecto://root@localhost/ecto_test",
pool: Ecto.Adapters.SQL.Sandbox
)
defmodule TestRepo do
use Ecto.Repo, otp_... | 24.592593 | 75 | 0.746235 |
087170f4a25a0c989506e66b9500ba847ab6131d | 1,535 | ex | Elixir | lib/demo_web/endpoint.ex | pthompson/liveview_javascript_examples | 93296a400a7214156c54c17c34ef11331a987984 | [
"MIT"
] | null | null | null | lib/demo_web/endpoint.ex | pthompson/liveview_javascript_examples | 93296a400a7214156c54c17c34ef11331a987984 | [
"MIT"
] | 1 | 2021-05-11T18:42:35.000Z | 2021-05-11T18:42:35.000Z | lib/demo_web/endpoint.ex | pthompson/liveview_javascript_examples | 93296a400a7214156c54c17c34ef11331a987984 | [
"MIT"
] | 1 | 2020-09-03T05:15:50.000Z | 2020-09-03T05:15:50.000Z | defmodule DemoWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :demo
# 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: "_demo_key",
... | 28.425926 | 97 | 0.713355 |
0871a460388aafda35649aaec697fa0a15f89465 | 50 | exs | Elixir | config/test.exs | axelson/lifx | 9ac02474d181001efc6bc08d7d39a6f6e3bb0d2a | [
"Apache-2.0"
] | null | null | null | config/test.exs | axelson/lifx | 9ac02474d181001efc6bc08d7d39a6f6e3bb0d2a | [
"Apache-2.0"
] | null | null | null | config/test.exs | axelson/lifx | 9ac02474d181001efc6bc08d7d39a6f6e3bb0d2a | [
"Apache-2.0"
] | null | null | null | use Mix.Config
config :lifx,
udp: Lifx.UdpMock
| 10 | 19 | 0.72 |
0871b0b463fb416182a4ca9b4af66385c42dade4 | 1,593 | ex | Elixir | clients/sql_admin/lib/google_api/sql_admin/v1/model/sql_server_audit_config.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/sql_admin/lib/google_api/sql_admin/v1/model/sql_server_audit_config.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/sql_admin/lib/google_api/sql_admin/v1/model/sql_server_audit_config.ex | dazuma/elixir-google-api | 6a9897168008efe07a6081d2326735fe332e522c | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 31.86 | 113 | 0.720025 |
0871b27e9337ed54d4939c373b8d59d1d1e39fcb | 2,499 | ex | Elixir | lib/mix/tasks/ecto.load.ex | IcyEagle/ecto | 26237057d4ffff2daf5258e181eccc3238b71490 | [
"Apache-2.0"
] | null | null | null | lib/mix/tasks/ecto.load.ex | IcyEagle/ecto | 26237057d4ffff2daf5258e181eccc3238b71490 | [
"Apache-2.0"
] | null | null | null | lib/mix/tasks/ecto.load.ex | IcyEagle/ecto | 26237057d4ffff2daf5258e181eccc3238b71490 | [
"Apache-2.0"
] | 1 | 2018-09-21T16:05:29.000Z | 2018-09-21T16:05:29.000Z | defmodule Mix.Tasks.Ecto.Load do
use Mix.Task
import Mix.Ecto
@shortdoc "Loads previously dumped database structure"
@default_opts [force: false, quiet: false]
@aliases [
d: :dump_path,
f: :force,
q: :quiet
]
@switches [
dump_path: :string,
force: :boolean,
quiet: :boolean
]
... | 28.724138 | 141 | 0.636655 |
0871bfbf61c4a7333cfb6a2dddd80635eae93472 | 2,576 | ex | Elixir | clients/dataflow/lib/google_api/dataflow/v1b3/model/par_do_instruction.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/dataflow/lib/google_api/dataflow/v1b3/model/par_do_instruction.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/dataflow/lib/google_api/dataflow/v1b3/model/par_do_instruction.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 ... | 41.548387 | 177 | 0.71972 |
0871cc8535b7a98564ee4f609eeda8ec43fa8eff | 79,168 | ex | Elixir | lib/elixir/lib/enum.ex | eproxus/elixir | 1c3a3bde539bc96c80d917fbcf3c9dc9e123860b | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/enum.ex | eproxus/elixir | 1c3a3bde539bc96c80d917fbcf3c9dc9e123860b | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/enum.ex | eproxus/elixir | 1c3a3bde539bc96c80d917fbcf3c9dc9e123860b | [
"Apache-2.0"
] | null | null | null | defprotocol Enumerable do
@moduledoc """
Enumerable protocol used by `Enum` and `Stream` modules.
When you invoke a function in the `Enum` module, the first argument
is usually a collection that must implement this protocol.
For example, the expression:
Enum.map([1, 2, 3], &(&1 * 2))
invokes `Enume... | 26.611092 | 105 | 0.604297 |
08721d5bb7faa7a98fc4beca179c5a26aa3f74c6 | 352 | exs | Elixir | test/dextruct_use_test.exs | taiansu/dextruct | 13459db2b4a6d79d13ab7542717d3b2829bc9422 | [
"Apache-2.0"
] | 1 | 2017-10-21T09:44:44.000Z | 2017-10-21T09:44:44.000Z | test/dextruct_use_test.exs | taiansu/dextruct | 13459db2b4a6d79d13ab7542717d3b2829bc9422 | [
"Apache-2.0"
] | null | null | null | test/dextruct_use_test.exs | taiansu/dextruct | 13459db2b4a6d79d13ab7542717d3b2829bc9422 | [
"Apache-2.0"
] | null | null | null | defmodule DextructUseTest do
use ExUnit.Case
use Dextruct, fill: 0
describe "use different filler" do
test "Destruct with list" do
[a, b] <~ [1]
assert [a, b] == [1, 0]
end
test "Destruct with map" do
%{a: a, b: b, c: foo} <~ %{a: 1}
assert a == 1
assert b == 0
as... | 18.526316 | 38 | 0.53125 |
087222b5e834945668de568c600c77ebf35ebf9e | 1,154 | ex | Elixir | lib/surgex/parser/parsers/float_parser.ex | surgeventures/surgex | b3acdd6a9a010c26f0081b9cb23aeb072459be30 | [
"MIT"
] | 10 | 2017-09-15T08:55:48.000Z | 2021-07-08T09:26:24.000Z | lib/surgex/parser/parsers/float_parser.ex | surgeventures/surgex | b3acdd6a9a010c26f0081b9cb23aeb072459be30 | [
"MIT"
] | 17 | 2017-07-24T11:27:22.000Z | 2022-01-24T22:28:18.000Z | lib/surgex/parser/parsers/float_parser.ex | surgeventures/surgex | b3acdd6a9a010c26f0081b9cb23aeb072459be30 | [
"MIT"
] | 2 | 2018-04-12T15:01:00.000Z | 2018-05-27T12:14:34.000Z | defmodule Surgex.Parser.FloatParser do
@moduledoc false
@type errors :: :invalid_float | :out_of_range
@type option :: {:min, number()} | {:max, number()}
@spec call(term(), [option()]) :: {:ok, float() | nil} | {:error, errors()}
def call(input, opts \\ [])
def call(nil, _opts), do: {:ok, nil}
def call(... | 24.553191 | 88 | 0.598787 |
08723bc92517d6e66e5cf21ea3ca071fda49d472 | 238 | ex | Elixir | lib/phone/es/cc.ex | ajmath/phone | 0c7c7033ea93d028d3bd2a9e445d3aa93a6bc2fa | [
"Apache-2.0"
] | null | null | null | lib/phone/es/cc.ex | ajmath/phone | 0c7c7033ea93d028d3bd2a9e445d3aa93a6bc2fa | [
"Apache-2.0"
] | null | null | null | lib/phone/es/cc.ex | ajmath/phone | 0c7c7033ea93d028d3bd2a9e445d3aa93a6bc2fa | [
"Apache-2.0"
] | null | null | null | defmodule Phone.ES.CC do
@moduledoc false
use Helper.Area
def regex, do: ~r/^(34)(927|827)(.{6})/
def area_name, do: "Cáceres"
def area_type, do: "province"
def area_abbreviation, do: "CC"
matcher(["34927", "34827"])
end
| 18.307692 | 41 | 0.647059 |
08725140f2656f59c36890bf6d784eb8045d589a | 1,290 | ex | Elixir | lib/conduit/blog/slugger.ex | rudyyazdi/conduit | 8defa60962482fb81f5093ea5d58b71a160db3c4 | [
"MIT"
] | null | null | null | lib/conduit/blog/slugger.ex | rudyyazdi/conduit | 8defa60962482fb81f5093ea5d58b71a160db3c4 | [
"MIT"
] | 2 | 2022-01-15T02:09:30.000Z | 2022-01-22T10:18:43.000Z | lib/conduit/blog/slugger.ex | rudyyazdi/conduit | 8defa60962482fb81f5093ea5d58b71a160db3c4 | [
"MIT"
] | null | null | null | defmodule Conduit.Blog.Slugger do
alias Conduit.Blog
@doc """
Slugify the given text and ensure that it is unique.
A slug will contain only alphanumeric characters (`a-z`, `0-9`) and the default separator character (`-`).
If the generated slug is already taken, append a numeric suffix and keep incrementing... | 28.666667 | 117 | 0.669767 |
087282dce7ff4c21cebc33ea25c8b6448a7b9ba8 | 76 | ex | Elixir | testData/org/elixir_lang/parser_definition/matched_arrow_operation_parsing_test_case/DecimalWholeNumber.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 1,668 | 2015-01-03T05:54:27.000Z | 2022-03-25T08:01:20.000Z | testData/org/elixir_lang/parser_definition/matched_arrow_operation_parsing_test_case/DecimalWholeNumber.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 2,018 | 2015-01-01T22:43:39.000Z | 2022-03-31T20:13:08.000Z | testData/org/elixir_lang/parser_definition/matched_arrow_operation_parsing_test_case/DecimalWholeNumber.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 145 | 2015-01-15T11:37:16.000Z | 2021-12-22T05:51:02.000Z | 1 <~ 2
1 |> 2
1 ~> 2
1 <<< 2
1 <<~ 2
1 <|> 2
1 <~> 2
1 >>> 2
1 ~>> 2
1 ^^^ 2 | 7.6 | 7 | 0.263158 |
08729605688fbb96037bf0b5b6c8f714b302a79f | 782 | exs | Elixir | test/token_test.exs | cjsuite/bpxe | 4b4759b7e2e8ced9f6f76ab55e5da26eb319a7c9 | [
"Apache-2.0"
] | null | null | null | test/token_test.exs | cjsuite/bpxe | 4b4759b7e2e8ced9f6f76ab55e5da26eb319a7c9 | [
"Apache-2.0"
] | null | null | null | test/token_test.exs | cjsuite/bpxe | 4b4759b7e2e8ced9f6f76ab55e5da26eb319a7c9 | [
"Apache-2.0"
] | null | null | null | defmodule BPXETest.Token do
use ExUnit.Case, async: true
doctest BPXE.Token
test "generating new generation ID always generates non-duplicate, monotonic IDs" do
activation = BPXE.Engine.Process.Activation.new()
token = BPXE.Token.new(activation: activation)
pid = self()
for _ <- 1..1000 do
... | 23 | 86 | 0.648338 |
08730dc1561b709de33040df2918c17257b551a2 | 1,170 | exs | Elixir | rustler_tests/test/thread_test.exs | sthagen/rusterlium-rustler | 5f0b052e6ae96185794bb5dae6594f0fc48689d7 | [
"Apache-2.0",
"MIT"
] | 2,075 | 2019-03-10T02:30:23.000Z | 2022-03-31T21:34:49.000Z | rustler_tests/test/thread_test.exs | sthagen/rusterlium-rustler | 5f0b052e6ae96185794bb5dae6594f0fc48689d7 | [
"Apache-2.0",
"MIT"
] | 194 | 2019-03-10T00:14:16.000Z | 2022-03-30T13:37:00.000Z | rustler_tests/test/thread_test.exs | sthagen/rusterlium-rustler | 5f0b052e6ae96185794bb5dae6594f0fc48689d7 | [
"Apache-2.0",
"MIT"
] | 130 | 2019-03-13T05:31:10.000Z | 2022-03-27T15:34:05.000Z | defmodule RustlerTest.ThreadTest do
use ExUnit.Case, async: true
test "simple threaded nif" do
RustlerTest.threaded_fac(19)
receive do
x -> assert x == 121_645_100_408_832_000
end
end
test "sleeping nif" do
RustlerTest.threaded_sleep(200)
receive do
_ -> raise "timeout_expect... | 19.5 | 69 | 0.594872 |
0873174d396d26ec78e5d7fc4a63e524abc72224 | 7,288 | exs | Elixir | test/oli_web/live/progress_live_test.exs | malav2110/oli-torus | 8af64e762a7c8a2058bd27a7ab8e96539ffc055f | [
"MIT"
] | 1 | 2022-03-17T20:35:47.000Z | 2022-03-17T20:35:47.000Z | test/oli_web/live/progress_live_test.exs | malav2110/oli-torus | 8af64e762a7c8a2058bd27a7ab8e96539ffc055f | [
"MIT"
] | 9 | 2021-11-02T16:52:09.000Z | 2022-03-25T15:14:01.000Z | test/oli_web/live/progress_live_test.exs | malav2110/oli-torus | 8af64e762a7c8a2058bd27a7ab8e96539ffc055f | [
"MIT"
] | null | null | null | defmodule OliWeb.ProgressLiveTest do
use ExUnit.Case
use OliWeb.ConnCase
import Phoenix.LiveViewTest
import Oli.Factory
alias Lti_1p3.Tool.{ContextRoles, PlatformRoles}
alias Oli.Accounts
alias Oli.Delivery.Sections
defp live_view_student_resource_route(section_slug, user_id, resource_id) do
Rout... | 33.585253 | 134 | 0.662184 |
08732ecf8c91b022c496600a15fe26db0fc684da | 1,190 | ex | Elixir | apps/core/lib/core/schema/upgrade.ex | michaeljguarino/forge | 50ee583ecb4aad5dee4ef08fce29a8eaed1a0824 | [
"Apache-2.0"
] | 59 | 2021-09-16T19:29:39.000Z | 2022-03-31T20:44:24.000Z | apps/core/lib/core/schema/upgrade.ex | svilenkov/plural | ac6c6cc15ac4b66a3b5e32ed4a7bee4d46d1f026 | [
"Apache-2.0"
] | 111 | 2021-08-15T09:56:37.000Z | 2022-03-31T23:59:32.000Z | apps/core/lib/core/schema/upgrade.ex | svilenkov/plural | ac6c6cc15ac4b66a3b5e32ed4a7bee4d46d1f026 | [
"Apache-2.0"
] | 4 | 2021-12-13T09:43:01.000Z | 2022-03-29T18:08:44.000Z | defmodule Core.Schema.Upgrade do
use Piazza.Ecto.Schema
alias Core.Schema.{UpgradeQueue, Repository}
alias Piazza.Ecto.UUID
defenum Type, deploy: 0, approval: 1, bounce: 2
schema "upgrades" do
field :type, Type
field :message, :string
belongs_to :queue, UpgradeQueue
belongs_to :repo... | 24.791667 | 58 | 0.668067 |
08733f16621e31e0ebb3b511ec0b8f4bea844d1d | 2,251 | ex | Elixir | clients/monitoring/lib/google_api/monitoring/v3/model/distribution_cut.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/monitoring/lib/google_api/monitoring/v3/model/distribution_cut.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/monitoring/lib/google_api/monitoring/v3/model/distribution_cut.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 45.02 | 321 | 0.753443 |
0873682de65ad87a3d9a6f56b638355f7779052d | 113 | ex | Elixir | lib/cereal/errors.ex | APB9785/cereal_ex | 7405122553aacfc0a37b69bb4b14ae013be99f0c | [
"MIT"
] | 4 | 2018-09-29T18:34:04.000Z | 2019-11-24T17:18:57.000Z | lib/cereal/errors.ex | APB9785/cereal_ex | 7405122553aacfc0a37b69bb4b14ae013be99f0c | [
"MIT"
] | 4 | 2018-07-25T17:09:21.000Z | 2020-01-23T15:06:21.000Z | lib/cereal/errors.ex | APB9785/cereal_ex | 7405122553aacfc0a37b69bb4b14ae013be99f0c | [
"MIT"
] | 1 | 2021-11-01T19:32:18.000Z | 2021-11-01T19:32:18.000Z | defmodule Cereal.Errors do
@moduledoc """
A serializer to handle errors and correctly encode them.
"""
end
| 18.833333 | 58 | 0.725664 |
08739d3b89863d3341eaa44456d9be6a2fc9013a | 1,257 | exs | Elixir | mix.exs | wkhere/webassembly | f24b43a7383c73da907095d03bfdf54ea6ecbabe | [
"BSD-2-Clause"
] | 44 | 2017-01-22T03:54:32.000Z | 2022-01-24T16:06:19.000Z | mix.exs | wkhere/webassembly | f24b43a7383c73da907095d03bfdf54ea6ecbabe | [
"BSD-2-Clause"
] | 2 | 2018-09-28T03:07:30.000Z | 2022-01-13T00:02:46.000Z | mix.exs | wkhere/webassembly | f24b43a7383c73da907095d03bfdf54ea6ecbabe | [
"BSD-2-Clause"
] | 6 | 2018-03-03T16:45:11.000Z | 2021-05-28T16:09:20.000Z | defmodule WebAssembly.Mixfile do
use Mix.Project
def project do
[app: :webassembly,
docs: [main: WebAssembly],
version: "0.6.2-dev",
elixir: "~> 1.0",
deps: deps,
description: description,
package: package,
test_coverage: [tool: ExCoveralls]]
end
def application do
[... | 24.173077 | 73 | 0.595863 |
0873c364e067a7eb88e011cbde8b68ed1eeb8c9c | 1,003 | exs | Elixir | config/test.exs | calleluks/ex-remit | 893dbc42c9ace6db6ee044f82371075198089fdc | [
"MIT"
] | null | null | null | config/test.exs | calleluks/ex-remit | 893dbc42c9ace6db6ee044f82371075198089fdc | [
"MIT"
] | null | null | null | config/test.exs | calleluks/ex-remit | 893dbc42c9ace6db6ee044f82371075198089fdc | [
"MIT"
] | null | null | null | use Mix.Config
# Configure your database
#
# The MIX_TEST_PARTITION environment variable can be used
# to provide built-in test partitioning in CI environment.
# Run `mix help test` for more information.
config :remit, Remit.Repo,
database: "remit_test#{System.get_env("MIX_TEST_PARTITION")}",
hostname: "localhost"... | 28.657143 | 70 | 0.749751 |
0873dba327d114a912e9828aec8891937f02ce61 | 116 | exs | Elixir | test/breaker_configuration_test.exs | BobbyMcWho/breaker_box | bb5c2c6f676251cb658293e9eb7452bd22a94f4e | [
"MIT"
] | 3 | 2019-09-24T22:11:57.000Z | 2022-01-19T22:34:21.000Z | test/breaker_configuration_test.exs | BobbyMcWho/breaker_box | bb5c2c6f676251cb658293e9eb7452bd22a94f4e | [
"MIT"
] | 1 | 2021-05-18T01:47:02.000Z | 2021-05-18T01:47:02.000Z | test/breaker_configuration_test.exs | BobbyMcWho/breaker_box | bb5c2c6f676251cb658293e9eb7452bd22a94f4e | [
"MIT"
] | 3 | 2021-01-08T02:46:14.000Z | 2022-01-13T15:30:52.000Z | defmodule BreakerConfigurationTest do
use ExUnit.Case, async: true
doctest BreakerBox.BreakerConfiguration
end
| 19.333333 | 41 | 0.836207 |
08740cf0237327371bc485824220c8a8d324d380 | 1,239 | ex | Elixir | exercises/practice/rectangles/.meta/example.ex | jaimeiniesta/elixir-1 | e8ddafeb313822645e0cd76743955a5c728a84c5 | [
"MIT"
] | 343 | 2017-06-22T16:28:28.000Z | 2022-03-25T21:33:32.000Z | exercises/practice/rectangles/.meta/example.ex | jaimeiniesta/elixir-1 | e8ddafeb313822645e0cd76743955a5c728a84c5 | [
"MIT"
] | 583 | 2017-06-19T10:48:40.000Z | 2022-03-28T21:43:12.000Z | exercises/practice/rectangles/.meta/example.ex | jaimeiniesta/elixir-1 | e8ddafeb313822645e0cd76743955a5c728a84c5 | [
"MIT"
] | 228 | 2017-07-05T07:09:32.000Z | 2022-03-27T08:59:08.000Z | defmodule Rectangles do
@doc """
Count the number of ASCII rectangles.
"""
@spec count(input :: String.t()) :: integer
def count(input) do
input =
input
|> String.split("\n")
|> Enum.map(&to_charlist/1)
coord =
for {row, r} <- Enum.with_index(input),
{char, c} <- Enu... | 25.285714 | 60 | 0.497175 |
08741186645337da5d2786b71e8778b193b44116 | 524 | ex | Elixir | lib/hook/inbounds/github/http.ex | isshindev/accent | ae4c13139b0a0dfd64ff536b94c940a4e2862150 | [
"BSD-3-Clause"
] | 806 | 2018-04-07T20:40:33.000Z | 2022-03-30T01:39:57.000Z | lib/hook/inbounds/github/http.ex | isshindev/accent | ae4c13139b0a0dfd64ff536b94c940a4e2862150 | [
"BSD-3-Clause"
] | 194 | 2018-04-07T13:49:37.000Z | 2022-03-30T19:58:45.000Z | lib/hook/inbounds/github/http.ex | isshindev/accent | ae4c13139b0a0dfd64ff536b94c940a4e2862150 | [
"BSD-3-Clause"
] | 89 | 2018-04-09T13:55:49.000Z | 2022-03-24T07:09:31.000Z | defmodule Accent.Hook.Inbounds.GitHub.FileServer.HTTP do
use HTTPoison.Base
@behaviour Accent.Hook.Inbounds.GitHub.FileServer
@base_url "https://api.github.com/repos/"
@impl true
def get_path(path, options), do: get(path, options)
@impl true
def process_url(@base_url <> path), do: process_url(path)
... | 20.96 | 59 | 0.669847 |
08742615caea4896a4ea4fe3f8481dd4670755a3 | 1,525 | ex | Elixir | core/alert/handler_config.ex | wses-yoshida/antikythera | e108e59d2339edd0b0fad31ad4f41f56df45be55 | [
"Apache-2.0"
] | null | null | null | core/alert/handler_config.ex | wses-yoshida/antikythera | e108e59d2339edd0b0fad31ad4f41f56df45be55 | [
"Apache-2.0"
] | null | null | null | core/alert/handler_config.ex | wses-yoshida/antikythera | e108e59d2339edd0b0fad31ad4f41f56df45be55 | [
"Apache-2.0"
] | null | null | null | # Copyright(c) 2015-2019 ACCESS CO., LTD. All rights reserved.
use Croma
defmodule AntikytheraCore.Alert.HandlerConfig do
@moduledoc """
Type module for map of configurations for a single alert handler.
Fields are treated as opaque at this layer; details are defined by each handler implementation.
"""
ali... | 30.5 | 104 | 0.729836 |
087445a3db572643788d568ce5d0916e1e3a2796 | 5,391 | ex | Elixir | lib/stripe/core_resources/refund.ex | Rutaba/stripity_stripe | 12c525301c781f9c8c7e578cc0d933f5d35183d5 | [
"BSD-3-Clause"
] | 555 | 2016-11-29T05:02:27.000Z | 2022-03-30T00:47:59.000Z | lib/stripe/core_resources/refund.ex | Rutaba/stripity_stripe | 12c525301c781f9c8c7e578cc0d933f5d35183d5 | [
"BSD-3-Clause"
] | 532 | 2016-11-28T18:22:25.000Z | 2022-03-30T17:04:32.000Z | lib/stripe/core_resources/refund.ex | Rutaba/stripity_stripe | 12c525301c781f9c8c7e578cc0d933f5d35183d5 | [
"BSD-3-Clause"
] | 296 | 2016-12-05T14:04:09.000Z | 2022-03-28T20:39:37.000Z | defmodule Stripe.Refund do
@moduledoc """
Work with [Stripe `refund` objects](https://stripe.com/docs/api/refunds/object).
You can:
- [Create a refund](https://stripe.com/docs/api/refunds/create)
- [Retrieve a refund](https://stripe.com/docs/api/refunds/retrieve)
- [Update a refund](https://stripe.com/docs... | 33.277778 | 98 | 0.612502 |
08746d1f2f6936198388bc8945b95dc989f06986 | 2,155 | ex | Elixir | lib/rfx/edit/credo/multi_alias1.ex | pcorey/rfx | db5be95d93b7aba0cf9799db273d8583c21bfc26 | [
"MIT"
] | 31 | 2021-05-29T22:57:04.000Z | 2022-03-13T16:24:57.000Z | lib/rfx/edit/credo/multi_alias1.ex | pcorey/rfx | db5be95d93b7aba0cf9799db273d8583c21bfc26 | [
"MIT"
] | 4 | 2021-06-04T23:34:38.000Z | 2021-07-16T16:01:20.000Z | lib/rfx/edit/credo/multi_alias1.ex | pcorey/rfx | db5be95d93b7aba0cf9799db273d8583c21bfc26 | [
"MIT"
] | 4 | 2021-06-11T13:10:04.000Z | 2022-02-11T13:33:16.000Z | defmodule Rfx.Edit.Credo.MultiAlias1 do
@behaviour Rfx.Edit
@moduledoc false
@impl true
def edit(source) do
source
|> Sourceror.parse_string!()
|> expand_aliases()
|> Sourceror.to_string()
end
defp expand_aliases(quoted) do
Sourceror.postwalk(quoted, fn
{:alias, _, [{{:., _, [_,... | 26.280488 | 97 | 0.612065 |
08747697ab98f745a5f514c20a3351c2ffd1f462 | 586 | ex | Elixir | lib/les/invoices/invoice.ex | gpad/les | 2317b8055ab24aa857a6cda06f6e529c992c668c | [
"Apache-2.0"
] | 11 | 2018-04-06T14:02:15.000Z | 2020-12-09T10:44:03.000Z | lib/les/invoices/invoice.ex | gpad/les | 2317b8055ab24aa857a6cda06f6e529c992c668c | [
"Apache-2.0"
] | 1 | 2018-11-18T02:35:23.000Z | 2018-11-18T02:35:23.000Z | lib/les/invoices/invoice.ex | gpad/les | 2317b8055ab24aa857a6cda06f6e529c992c668c | [
"Apache-2.0"
] | null | null | null | defmodule Les.Invoices.Invoice do
use Ecto.Schema
import Ecto.Changeset
alias Les.Invoices.Invoice
schema "invoices" do
field :amount, :integer
field :status, :string
belongs_to :user, Les.Accounts.User
belongs_to :cart, Les.Carts.Cart
has_many :items, Les.Invoices.InvoiceItem, on_replace... | 23.44 | 90 | 0.691126 |
08747e0ab91f73a5306b3c95eff4d1bd39c1830f | 525 | exs | Elixir | test/stemmer_test.exs | fredwu/stemmer | 750514636c399350e7ee7fbef5b731ea1cf0335c | [
"MIT"
] | 149 | 2016-07-18T14:21:16.000Z | 2022-02-24T01:23:17.000Z | test/stemmer_test.exs | fredwu/stemmer | 750514636c399350e7ee7fbef5b731ea1cf0335c | [
"MIT"
] | 1 | 2022-01-09T03:18:14.000Z | 2022-01-09T13:16:43.000Z | test/stemmer_test.exs | fredwu/stemmer | 750514636c399350e7ee7fbef5b731ea1cf0335c | [
"MIT"
] | 8 | 2016-07-19T09:23:31.000Z | 2022-01-08T14:29:33.000Z | defmodule StemmerTest do
use ExUnit.Case, async: true
doctest Stemmer
test "official diffs.txt" do
file_path = Path.join(File.cwd!(), "test/samples/diffs.tar.gz")
temp_path = Path.join(File.cwd!(), "test/temp")
System.cmd("tar", ["xzvf", file_path, "-C", temp_path], stderr_to_stdout: true)
Pat... | 25 | 83 | 0.651429 |
08747ecb8e364f2bdd5c4046875227a9411da180 | 448 | ex | Elixir | lib/okr_app_web/serializers/linked_objective.ex | sb8244/okr_app_pub | 933872107bd13390a0a5ea119d7997d4cb5ea7db | [
"MIT"
] | 12 | 2019-05-10T21:48:06.000Z | 2021-11-07T14:04:30.000Z | lib/okr_app_web/serializers/linked_objective.ex | sb8244/okr_app_pub | 933872107bd13390a0a5ea119d7997d4cb5ea7db | [
"MIT"
] | 2 | 2019-05-14T19:07:10.000Z | 2019-05-20T21:06:27.000Z | lib/okr_app_web/serializers/linked_objective.ex | sb8244/okr_app_pub | 933872107bd13390a0a5ea119d7997d4cb5ea7db | [
"MIT"
] | 3 | 2019-05-19T18:24:20.000Z | 2019-10-31T20:29:12.000Z | defmodule OkrAppWeb.Serializer.LinkedObjective do
use Remodel
alias OkrAppWeb.Serializer
attributes([:id, :content, :cancelled_at, :inserted_at, :updated_at, :owner])
def owner(%{user: user}) when not is_nil(user) do
Serializer.PlainUser.to_map(user)
|> Map.put("owner_type", "user")
end
def owne... | 24.888889 | 79 | 0.700893 |
08749e3a6ec0edcef267edb8334ee29eb04e1c8f | 974 | exs | Elixir | config/travis.exs | karabiner-inc/materia_file_transfer | d72f11d97a4ac87362225558aaf88909c9a10c64 | [
"Apache-2.0"
] | null | null | null | config/travis.exs | karabiner-inc/materia_file_transfer | d72f11d97a4ac87362225558aaf88909c9a10c64 | [
"Apache-2.0"
] | null | null | null | config/travis.exs | karabiner-inc/materia_file_transfer | d72f11d97a4ac87362225558aaf88909c9a10c64 | [
"Apache-2.0"
] | 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 :materia_file_transfer, MateriaFileTransferWeb.Test.Endpoint,
http: [port: 4001],
# server: false,
debug_errors: true,
code_reloader: false,
check_origin: false,
watchers: []
# Print on... | 27.828571 | 70 | 0.755647 |
08749e82389b42fc289c6fd1bc39c788e5b40d09 | 4,602 | ex | Elixir | lib/absinthe/phase/schema/hydrate.ex | jscheid/absinthe | 5b5079f03402f482c5f52a35efc263a5a6ccaf64 | [
"MIT"
] | null | null | null | lib/absinthe/phase/schema/hydrate.ex | jscheid/absinthe | 5b5079f03402f482c5f52a35efc263a5a6ccaf64 | [
"MIT"
] | null | null | null | lib/absinthe/phase/schema/hydrate.ex | jscheid/absinthe | 5b5079f03402f482c5f52a35efc263a5a6ccaf64 | [
"MIT"
] | null | null | null | defmodule Absinthe.Phase.Schema.Hydrate do
@moduledoc false
@behaviour Absinthe.Schema.Hydrator
use Absinthe.Phase
alias Absinthe.Blueprint
@hydrate [
Blueprint.Schema.DirectiveDefinition,
Blueprint.Schema.EnumTypeDefinition,
Blueprint.Schema.EnumValueDefinition,
Blueprint.Schema.FieldDefini... | 27.890909 | 84 | 0.659713 |
08749fe4c0887214cd11b37cb880c695c30ff879 | 928 | exs | Elixir | config/config.exs | leodag/phoenix | 25da1373693eab8f9a7e51c135862ba8084a2d3f | [
"MIT"
] | null | null | null | config/config.exs | leodag/phoenix | 25da1373693eab8f9a7e51c135862ba8084a2d3f | [
"MIT"
] | null | null | null | config/config.exs | leodag/phoenix | 25da1373693eab8f9a7e51c135862ba8084a2d3f | [
"MIT"
] | null | null | null | import Config
config :logger, :console, colors: [enabled: false]
config :phoenix, :stacktrace_depth, 20
config :phoenix, :json_library, Jason
config :phoenix, :trim_on_html_eex_engine, false
if Mix.env() == :dev do
esbuild = fn args ->
[
args: ~w(./js/phoenix --bundle) ++ args,
cd: Path.expand(".... | 28.121212 | 112 | 0.619612 |
0874ab0d03bfd9a82f4646d36a5ce54bd292be5e | 1,615 | ex | Elixir | lib/phoenix/html/safe.ex | wojtekmach/phoenix | a6b3bf301c7088b8824a39a165582dc85dfdd2a4 | [
"MIT"
] | null | null | null | lib/phoenix/html/safe.ex | wojtekmach/phoenix | a6b3bf301c7088b8824a39a165582dc85dfdd2a4 | [
"MIT"
] | null | null | null | lib/phoenix/html/safe.ex | wojtekmach/phoenix | a6b3bf301c7088b8824a39a165582dc85dfdd2a4 | [
"MIT"
] | null | null | null | alias Phoenix.HTML
defprotocol Phoenix.HTML.Safe do
@moduledoc """
Defines the HTML safe protocol.
In order to promote HTML safety, Phoenix templates
do not use `Kernel.to_string/1` to convert data types to
strings in templates. Instead, Phoenix uses this
protocol which must be implemented by data structu... | 23.405797 | 65 | 0.715789 |
0874ee09a3e8b8df42f81af0309bda2632efc02b | 1,866 | ex | Elixir | clients/document_ai/lib/google_api/document_ai/v1/model/google_cloud_documentai_v1_document_revision_human_review.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/document_ai/lib/google_api/document_ai/v1/model/google_cloud_documentai_v1_document_revision_human_review.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/document_ai/lib/google_api/document_ai/v1/model/google_cloud_documentai_v1_document_revision_human_review.ex | dazuma/elixir-google-api | 6a9897168008efe07a6081d2326735fe332e522c | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 33.927273 | 197 | 0.736334 |
087521a92c71c1fded6373a11e167c4a8fff59c7 | 1,996 | ex | Elixir | lib/oli_web/live/manual_grading/filters.ex | malav2110/oli-torus | 8af64e762a7c8a2058bd27a7ab8e96539ffc055f | [
"MIT"
] | 1 | 2022-03-17T20:35:47.000Z | 2022-03-17T20:35:47.000Z | lib/oli_web/live/manual_grading/filters.ex | malav2110/oli-torus | 8af64e762a7c8a2058bd27a7ab8e96539ffc055f | [
"MIT"
] | 9 | 2021-11-02T16:52:09.000Z | 2022-03-25T15:14:01.000Z | lib/oli_web/live/manual_grading/filters.ex | malav2110/oli-torus | 8af64e762a7c8a2058bd27a7ab8e96539ffc055f | [
"MIT"
] | null | null | null | defmodule OliWeb.ManualGrading.Filters do
use Surface.Component
alias OliWeb.ManualGrading.FilterButton
prop options, :struct, required: true
prop selection, :boolean, required: true
def render(assigns) do
~F"""
<div style="display: inline;">
<FilterButton selection={@selection} tooltip="Only ... | 39.137255 | 115 | 0.695892 |
08760162513af95197eaaadd815479014da82dd5 | 1,665 | ex | Elixir | clients/dataproc/lib/google_api/dataproc/v1/model/cluster_metrics.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/dataproc/lib/google_api/dataproc/v1/model/cluster_metrics.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/dataproc/lib/google_api/dataproc/v1/model/cluster_metrics.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... | 33.3 | 168 | 0.723123 |
08760bddf5df5f87d35f9b35b0ed683783aeb7eb | 3,920 | ex | Elixir | lib/saxy/xml.ex | marcelotto/saxy | a942d8d2d3ff028294b667487b9251d690ca9364 | [
"MIT"
] | 1 | 2020-04-29T08:08:22.000Z | 2020-04-29T08:08:22.000Z | lib/saxy/xml.ex | marcelotto/saxy | a942d8d2d3ff028294b667487b9251d690ca9364 | [
"MIT"
] | null | null | null | lib/saxy/xml.ex | marcelotto/saxy | a942d8d2d3ff028294b667487b9251d690ca9364 | [
"MIT"
] | null | null | null | defmodule Saxy.XML do
alias Saxy.Builder
@moduledoc """
Helper functions for building XML elements.
"""
@type characters() :: {:characters, String.t()}
@type cdata() :: {:cdata, String.t()}
@type comment() :: {:comment, String.t()}
@type ref() :: entity_ref() | hex_ref() | dec_ref()
@type entity... | 22.4 | 108 | 0.596939 |
087639ec3b5ec6fa617ac052d33a0ae2518487a9 | 906 | ex | Elixir | apps/omg_watcher/lib/omg_watcher/release_tasks/set_application.ex | boolafish/elixir-omg | 46b568404972f6e4b4da3195d42d4fb622edb934 | [
"Apache-2.0"
] | null | null | null | apps/omg_watcher/lib/omg_watcher/release_tasks/set_application.ex | boolafish/elixir-omg | 46b568404972f6e4b4da3195d42d4fb622edb934 | [
"Apache-2.0"
] | null | null | null | apps/omg_watcher/lib/omg_watcher/release_tasks/set_application.ex | boolafish/elixir-omg | 46b568404972f6e4b4da3195d42d4fb622edb934 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019-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 ... | 33.555556 | 98 | 0.764901 |
08763d6d83ba6cc121fb00105984300727811966 | 4,922 | exs | Elixir | test/models/old_animal_test.exs | marick/eecrit | 50b1ebeadc5cf21ea9f9df6add65e4d7037e2482 | [
"MIT"
] | 10 | 2016-07-15T15:57:33.000Z | 2018-06-09T00:40:46.000Z | test/models/old_animal_test.exs | marick/eecrit | 50b1ebeadc5cf21ea9f9df6add65e4d7037e2482 | [
"MIT"
] | null | null | null | test/models/old_animal_test.exs | marick/eecrit | 50b1ebeadc5cf21ea9f9df6add65e4d7037e2482 | [
"MIT"
] | 6 | 2016-07-15T15:57:41.000Z | 2018-03-22T16:38:00.000Z | defmodule Eecrit.OldAnimalTest do
use Eecrit.ModelCase
alias Eecrit.OldAnimal, as: S
@valid_date "2012-02-29"
@invalid_date "2011-01-32"
@invalid_species "catine"
@valid_attrs %{kind: "kind", name: "name",
procedure_description_kind: hd(S.valid_species)}
@optional_attrs %{nickname: "n... | 35.410072 | 93 | 0.626371 |
087688ba2f1d838754224a9597e3c273918cc98b | 1,239 | exs | Elixir | test/publickey_test.exs | PinkDiamond1/ecdsa-elixir | dd1953cc48974b5bfb9461d3a2179d1d937b264d | [
"MIT"
] | 23 | 2020-01-31T17:45:09.000Z | 2022-02-12T03:52:11.000Z | test/publickey_test.exs | PinkDiamond1/ecdsa-elixir | dd1953cc48974b5bfb9461d3a2179d1d937b264d | [
"MIT"
] | 1 | 2020-02-04T22:26:14.000Z | 2020-02-05T01:03:42.000Z | test/publickey_test.exs | PinkDiamond1/ecdsa-elixir | dd1953cc48974b5bfb9461d3a2179d1d937b264d | [
"MIT"
] | 2 | 2020-01-30T22:00:07.000Z | 2021-11-05T15:41:05.000Z | defmodule PublicKeyTest do
use ExUnit.Case
alias EllipticCurve.{PrivateKey, PublicKey}
test "pem conversion" do
privateKey = PrivateKey.generate()
publicKey1 = PrivateKey.getPublicKey(privateKey)
pem = PublicKey.toPem(publicKey1)
{:ok, publicKey2} = PublicKey.fromPem(pem)
assert publicKey... | 27.533333 | 57 | 0.728006 |
0876aaff10e4fbe2dc89acd0470de1cb3701f218 | 3,609 | exs | Elixir | test/mix/tasks/phx.new_test.exs | TheMushrr00m/phoenix | 5f15107d6e102d5ceafc92b1ec1c397b601b9b66 | [
"MIT"
] | null | null | null | test/mix/tasks/phx.new_test.exs | TheMushrr00m/phoenix | 5f15107d6e102d5ceafc92b1ec1c397b601b9b66 | [
"MIT"
] | null | null | null | test/mix/tasks/phx.new_test.exs | TheMushrr00m/phoenix | 5f15107d6e102d5ceafc92b1ec1c397b601b9b66 | [
"MIT"
] | null | null | null | for pattern <- ["../../../installer/lib/phx_new/project.ex",
"../../../installer/lib/phx_new/generator.ex",
"../../../installer/lib/phx_new/*.ex",
"../../../installer/lib/mix/tasks/phx.new.ex",
"../../../installer/test/mix_helper.exs"],
file <- [_|_] =... | 35.382353 | 88 | 0.607648 |
0876d8a4cb28cd608f65cd74ff7c6b87d3373338 | 3,512 | ex | Elixir | lib/changelog_web/controllers/page_controller.ex | snyk-omar/changelog.com | 66a8cff17ed8a237e439976aa7fb96b58ef276a3 | [
"MIT"
] | 2,599 | 2016-10-25T15:02:53.000Z | 2022-03-26T02:34:42.000Z | lib/changelog_web/controllers/page_controller.ex | snyk-omar/changelog.com | 66a8cff17ed8a237e439976aa7fb96b58ef276a3 | [
"MIT"
] | 253 | 2016-10-25T20:29:24.000Z | 2022-03-29T21:52:36.000Z | lib/changelog_web/controllers/page_controller.ex | snyk-omar/changelog.com | 66a8cff17ed8a237e439976aa7fb96b58ef276a3 | [
"MIT"
] | 298 | 2016-10-25T15:18:31.000Z | 2022-01-18T21:25:52.000Z | defmodule ChangelogWeb.PageController do
use ChangelogWeb, :controller
alias Changelog.{Cache, Episode, Newsletters, NewsSponsorship, Podcast}
alias ChangelogWeb.TimeView
alias ChangelogWeb.Plug.ResponseCache
plug RequireGuest, "before joining" when action in [:join]
plug ResponseCache
# pages that nee... | 29.762712 | 79 | 0.660308 |
0876e35c7aaa311627648bdf65c385a9e02f5679 | 3,341 | ex | Elixir | lib/warpath/element.ex | Cleidiano/warpath | b566c7aa65dc5ad1063f0d2e878d9878e7e8ae38 | [
"MIT"
] | 16 | 2020-04-28T12:39:27.000Z | 2021-12-21T16:50:58.000Z | lib/warpath/element.ex | cleidiano/warpath | 216a0e3c1bf72460daec7e5a75d0c45f3d0ae3af | [
"MIT"
] | 41 | 2020-02-01T18:10:50.000Z | 2022-01-18T08:11:22.000Z | lib/warpath/element.ex | cleidiano/warpath | 216a0e3c1bf72460daec7e5a75d0c45f3d0ae3af | [
"MIT"
] | 3 | 2020-04-27T12:53:57.000Z | 2020-10-02T18:33:32.000Z | defmodule Warpath.Element do
@moduledoc false
alias __MODULE__
alias Warpath.Element.Path
@type t :: %Element{value: any, path: Path.acc()}
@type path_accumulator :: (Path.token(), Path.acc() -> Path.acc())
defstruct value: nil, path: nil
@doc """
Create a new element struct.
## Example
... | 27.162602 | 92 | 0.577073 |
087710170f7185749263ecc5cd3f6475022f6b62 | 1,251 | ex | Elixir | clients/cloud_build/lib/google_api/cloud_build/v1/model/retry_build_request.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/cloud_build/lib/google_api/cloud_build/v1/model/retry_build_request.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/cloud_build/lib/google_api/cloud_build/v1/model/retry_build_request.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... | 29.785714 | 79 | 0.760991 |
08772390b0595a19318f3b6debfa0bdd434fd9d0 | 1,673 | exs | Elixir | test/board_test.exs | tpetersen0308/tic_tac_toe | db7dbf77eadc6a9a98f10f3a4c0f27deae5d559f | [
"MIT"
] | null | null | null | test/board_test.exs | tpetersen0308/tic_tac_toe | db7dbf77eadc6a9a98f10f3a4c0f27deae5d559f | [
"MIT"
] | null | null | null | test/board_test.exs | tpetersen0308/tic_tac_toe | db7dbf77eadc6a9a98f10f3a4c0f27deae5d559f | [
"MIT"
] | null | null | null | defmodule TicTacToe.BoardTest do
use ExUnit.Case
doctest TicTacToe.Board
import TicTacToe.Board
@empty_board empty()
@full_board %{ 1 => "X", 2 => "O", 3 => "X", 4 => "O", 5 => "X", 6 => "O", 7 => "O", 8 => "X", 9 => "O"}
test "it can create an empty board" do
assert %{ 1 => nil, 2 => nil, 3 => nil,... | 32.803922 | 193 | 0.54991 |
08772c855ac85138cbfd709e7815c2a67bbc5ff2 | 3,818 | exs | Elixir | test/registry_test.exs | diodechain/diode_server | 1692788bd92cc17654965878abd059d13b5e236c | [
"Apache-2.0"
] | 8 | 2021-03-12T15:35:09.000Z | 2022-03-06T06:37:49.000Z | test/registry_test.exs | diodechain/diode_server_ex | 5cf47e5253a0caafd335d0af4dba711d4dcad42d | [
"Apache-2.0"
] | 15 | 2019-09-06T07:58:01.000Z | 2021-03-06T17:04:46.000Z | test/registry_test.exs | diodechain/diode_server | 1692788bd92cc17654965878abd059d13b5e236c | [
"Apache-2.0"
] | 5 | 2021-10-01T12:52:28.000Z | 2022-02-02T19:29:56.000Z | # Diode Server
# Copyright 2021 Diode
# Licensed under the Diode License, Version 1.1
defmodule RegistryTest do
alias Object.Ticket
import Ticket
alias Contract.{Fleet, Registry}
use ExUnit.Case, async: false
import Edge2Client
import While
setup_all do
Chain.reset_state()
while Chain.peak() < C... | 28.073529 | 93 | 0.635411 |
0877ba3b187d641109b45767747f5f2ed4df99a5 | 453 | ex | Elixir | lib/blue_jet/core/service/helper.ex | freshcom/freshcom-api | 4f2083277943cf4e4e8fd4c4d443c7309f285ad7 | [
"BSD-3-Clause"
] | 44 | 2018-05-09T01:08:57.000Z | 2021-01-19T07:25:26.000Z | lib/blue_jet/core/service/helper.ex | freshcom/freshcom-api | 4f2083277943cf4e4e8fd4c4d443c7309f285ad7 | [
"BSD-3-Clause"
] | 36 | 2018-05-08T23:59:54.000Z | 2018-09-28T13:50:30.000Z | lib/blue_jet/core/service/helper.ex | freshcom/freshcom-api | 4f2083277943cf4e4e8fd4c4d443c7309f285ad7 | [
"BSD-3-Clause"
] | 9 | 2018-05-09T14:09:19.000Z | 2021-03-21T21:04:04.000Z | defmodule BlueJet.Service.Helper do
def extract_filter(fields) do
fields[:filter] || %{}
end
def extract_nil_filter(map) do
Enum.reduce(map, %{}, fn({k, v}, acc) ->
if is_nil(v) do
Map.put(acc, k, v)
else
acc
end
end)
end
def extract_clauses(map) do
Enum.red... | 18.12 | 44 | 0.527594 |
0877bfcb7f2ed45d975c5355b457ba82f9379f35 | 637 | ex | Elixir | lib/nets_easy/model/get_order_response/order_details.ex | hooplab/nets-easy-elixir | 5d60a31ef36bb1518d7a3768851d09b258f62411 | [
"MIT"
] | null | null | null | lib/nets_easy/model/get_order_response/order_details.ex | hooplab/nets-easy-elixir | 5d60a31ef36bb1518d7a3768851d09b258f62411 | [
"MIT"
] | null | null | null | lib/nets_easy/model/get_order_response/order_details.ex | hooplab/nets-easy-elixir | 5d60a31ef36bb1518d7a3768851d09b258f62411 | [
"MIT"
] | null | null | null | defmodule NetsEasy.Model.GetOrderResponse.OrderDetails do
@moduledoc """
"""
@typedoc """
.order_details
"""
@type t :: %__MODULE__{
amount: String.t(),
currency: String.t(),
reference: String.t()
}
@derive Poison.Encoder
defstruct [
:amount,
:currency,
... | 18.735294 | 63 | 0.627943 |
0877cddb7f3ad8ab9d95adf44dc92eef5c2ecc27 | 239 | exs | Elixir | year_2020/test/day_09_test.exs | bschmeck/advent_of_code | cbec98019c6c00444e0f4c7e15e01b1ed9ae6145 | [
"MIT"
] | null | null | null | year_2020/test/day_09_test.exs | bschmeck/advent_of_code | cbec98019c6c00444e0f4c7e15e01b1ed9ae6145 | [
"MIT"
] | null | null | null | year_2020/test/day_09_test.exs | bschmeck/advent_of_code | cbec98019c6c00444e0f4c7e15e01b1ed9ae6145 | [
"MIT"
] | null | null | null | defmodule Day09Test do
use ExUnit.Case
test "it finds the weakness" do
assert Day09.part_one(InputTestFile, 5) == 127
end
test "it finds the encryption weakness" do
assert Day09.part_two(InputTestFile, 5) == 62
end
end
| 19.916667 | 50 | 0.715481 |
0878041db7641671f053521952438283bde8ec5e | 4,622 | ex | Elixir | apps/tai/lib/tai/trading/order_store.ex | ihorkatkov/tai | 09f9f15d2c385efe762ae138a8570f1e3fd41f26 | [
"MIT"
] | 1 | 2019-12-19T05:16:26.000Z | 2019-12-19T05:16:26.000Z | apps/tai/lib/tai/trading/order_store.ex | ihorkatkov/tai | 09f9f15d2c385efe762ae138a8570f1e3fd41f26 | [
"MIT"
] | null | null | null | apps/tai/lib/tai/trading/order_store.ex | ihorkatkov/tai | 09f9f15d2c385efe762ae138a8570f1e3fd41f26 | [
"MIT"
] | 1 | 2020-05-03T23:32:11.000Z | 2020-05-03T23:32:11.000Z | defmodule Tai.Trading.OrderStore do
@moduledoc """
Track and manage the local state of orders with a swappable backend
"""
use GenServer
alias Tai.Trading.{Order, OrderSubmissions, OrderStore}
@type submission :: OrderSubmissions.Factory.submission()
@type order :: Order.t()
@type status :: Order.stat... | 29.628205 | 95 | 0.64907 |
087829c278bb08db64fdea4a4aa860ba17add8e2 | 1,609 | exs | Elixir | test/get_inputs_test.exs | danielburnley/Advent-Of-Code-1 | 84038e91cc9561755db0d5973ed6af27b50f9dd3 | [
"MIT"
] | null | null | null | test/get_inputs_test.exs | danielburnley/Advent-Of-Code-1 | 84038e91cc9561755db0d5973ed6af27b50f9dd3 | [
"MIT"
] | null | null | null | test/get_inputs_test.exs | danielburnley/Advent-Of-Code-1 | 84038e91cc9561755db0d5973ed6af27b50f9dd3 | [
"MIT"
] | null | null | null | defmodule AdventOfCodeHelper.GetInputsTest do
alias AdventOfCodeHelper.GetInputs
use ExUnit.Case, async: true
use ExVCR.Mock
setup_all _context do
cache_dir = Application.get_env(:advent_of_code_helper, :cache_dir)
File.mkdir(cache_dir)
File.write(Path.join(cache_dir,"input_2016_2"), "test_post_pl... | 30.358491 | 154 | 0.704786 |
08783d089afe693cbd0e87645c6e88ff4adf3da9 | 1,487 | ex | Elixir | lib/landing_page_web/views/error_helpers.ex | paulfioravanti/phoenix-and-elm-landing-page | 8453cf0209bca8da46248d78a17092982e5a7e62 | [
"MIT"
] | null | null | null | lib/landing_page_web/views/error_helpers.ex | paulfioravanti/phoenix-and-elm-landing-page | 8453cf0209bca8da46248d78a17092982e5a7e62 | [
"MIT"
] | null | null | null | lib/landing_page_web/views/error_helpers.ex | paulfioravanti/phoenix-and-elm-landing-page | 8453cf0209bca8da46248d78a17092982e5a7e62 | [
"MIT"
] | null | null | null | defmodule LandingPageWeb.ErrorHelpers do
@moduledoc """
Conveniences for translating and building error messages.
"""
use Phoenix.HTML
@doc """
Generates tag for inlined form input errors.
"""
def error_tag(form, field) do
Enum.map(Keyword.get_values(form.errors, field), fn error ->
content_... | 33.044444 | 80 | 0.67384 |
08784c5acbefdd9d22bc82ad2f3e2e4d60101346 | 520 | ex | Elixir | lib/triplex/plugs/subdomain_plug_config.ex | felipe-kosouski/triplex | daa68037217a17eedf9eef4c9e8ca88da4ad8870 | [
"MIT"
] | null | null | null | lib/triplex/plugs/subdomain_plug_config.ex | felipe-kosouski/triplex | daa68037217a17eedf9eef4c9e8ca88da4ad8870 | [
"MIT"
] | null | null | null | lib/triplex/plugs/subdomain_plug_config.ex | felipe-kosouski/triplex | daa68037217a17eedf9eef4c9e8ca88da4ad8870 | [
"MIT"
] | null | null | null | defmodule Triplex.SubdomainPlugConfig do
@moduledoc """
This is a struct that holds the configuration for `Triplex.SubdomainPlug`.
Here are the config keys allowed:
- `tenant_handler`: function to handle the tenant param. Its return will
be used as the tenant.
- `assign`: the name of the assign where we m... | 26 | 76 | 0.717308 |
0878dc3d6001654eccc4528fd148b396e95eb7b3 | 24,976 | exs | Elixir | lib/elixir/test/elixir/base_test.exs | chulkilee/elixir | 699231dcad52916a76f38856cbd7cf7c7bdadc51 | [
"Apache-2.0"
] | 1 | 2021-04-28T21:35:01.000Z | 2021-04-28T21:35:01.000Z | lib/elixir/test/elixir/base_test.exs | chulkilee/elixir | 699231dcad52916a76f38856cbd7cf7c7bdadc51 | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/base_test.exs | chulkilee/elixir | 699231dcad52916a76f38856cbd7cf7c7bdadc51 | [
"Apache-2.0"
] | 8 | 2018-02-20T18:30:53.000Z | 2019-06-18T14:23:31.000Z | Code.require_file("test_helper.exs", __DIR__)
defmodule BaseTest do
use ExUnit.Case, async: true
doctest Base
import Base
test "encode16/1" do
assert "" == encode16("")
assert "66" == encode16("f")
assert "666F" == encode16("fo")
assert "666F6F" == encode16("foo")
assert "666F6F62" == enc... | 30.910891 | 99 | 0.653547 |
08791588fb7459db8c2ee817a5b00a5692666acf | 3,653 | ex | Elixir | clients/dataproc/lib/google_api/dataproc/v1/model/py_spark_job.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/dataproc/lib/google_api/dataproc/v1/model/py_spark_job.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/dataproc/lib/google_api/dataproc/v1/model/py_spark_job.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... | 53.720588 | 305 | 0.701889 |
087963a245ff310be111887e12f3ec97a8470af0 | 4,649 | ex | Elixir | lib/stripe/issuing/card.ex | neneboe/stripity_stripe | e86be7cd8f19dd208ee3cb7d9bd6165be3e71f17 | [
"BSD-3-Clause"
] | null | null | null | lib/stripe/issuing/card.ex | neneboe/stripity_stripe | e86be7cd8f19dd208ee3cb7d9bd6165be3e71f17 | [
"BSD-3-Clause"
] | null | null | null | lib/stripe/issuing/card.ex | neneboe/stripity_stripe | e86be7cd8f19dd208ee3cb7d9bd6165be3e71f17 | [
"BSD-3-Clause"
] | null | null | null | defmodule Stripe.Issuing.Card do
@moduledoc """
Work with Stripe Issuing card objects.
You can:
- Create a card
- Retrieve a card
- Update a card
- List all cards
Stripe API reference: https://stripe.com/docs/api/issuing/cards
"""
use Stripe.Entity
import Stripe.Request
@type t :: %__MODULE... | 30.585526 | 98 | 0.529791 |
08798364dd0b799776d6f40e9b31459bb53252aa | 150 | ex | Elixir | web/controllers/page_controller.ex | flipjs/film-is-not-dead | a7ee56362e98ee08403532435dc3c05aa1ee58c3 | [
"MIT"
] | null | null | null | web/controllers/page_controller.ex | flipjs/film-is-not-dead | a7ee56362e98ee08403532435dc3c05aa1ee58c3 | [
"MIT"
] | null | null | null | web/controllers/page_controller.ex | flipjs/film-is-not-dead | a7ee56362e98ee08403532435dc3c05aa1ee58c3 | [
"MIT"
] | null | null | null | defmodule FilmIsNotDead.PageController do
use FilmIsNotDead.Web, :controller
def index(conn, _params) do
render conn, "index.html"
end
end
| 18.75 | 41 | 0.753333 |
0879e9981a01d245f41c8838d589425669979eb6 | 5,016 | exs | Elixir | test/bodyguard/plug_test.exs | annkissam/bodyguard | 601bdc123a56186b76779fd8993d060ccd17c948 | [
"MIT"
] | 608 | 2016-09-09T19:35:31.000Z | 2022-03-30T15:46:26.000Z | test/bodyguard/plug_test.exs | annkissam/bodyguard | 601bdc123a56186b76779fd8993d060ccd17c948 | [
"MIT"
] | 69 | 2016-09-08T14:21:36.000Z | 2021-08-04T00:10:41.000Z | test/bodyguard/plug_test.exs | annkissam/bodyguard | 601bdc123a56186b76779fd8993d060ccd17c948 | [
"MIT"
] | 45 | 2016-09-08T20:06:51.000Z | 2021-12-20T18:04:54.000Z | defmodule PlugTest do
use ExUnit.Case, async: false
import Bodyguard.Action
alias Bodyguard.Action
setup do
conn = Plug.Test.conn(:get, "/")
allow_user = %TestContext.User{allow: true}
deny_user = %TestContext.User{allow: false}
{:ok, conn: conn, allow_user: allow_user, deny_user: deny_user}
... | 29.333333 | 101 | 0.662281 |
087a0096c1764064a55f2fc2704da08eafef172b | 4,292 | ex | Elixir | lib/stripe.ex | Rutaba/stripity_stripe | 12c525301c781f9c8c7e578cc0d933f5d35183d5 | [
"BSD-3-Clause"
] | 555 | 2016-11-29T05:02:27.000Z | 2022-03-30T00:47:59.000Z | lib/stripe.ex | Rutaba/stripity_stripe | 12c525301c781f9c8c7e578cc0d933f5d35183d5 | [
"BSD-3-Clause"
] | 532 | 2016-11-28T18:22:25.000Z | 2022-03-30T17:04:32.000Z | lib/stripe.ex | Rutaba/stripity_stripe | 12c525301c781f9c8c7e578cc0d933f5d35183d5 | [
"BSD-3-Clause"
] | 296 | 2016-12-05T14:04:09.000Z | 2022-03-28T20:39:37.000Z | defmodule Stripe do
@moduledoc """
A HTTP client for Stripe.
## Configuration
### API Key
You need to set your API key in your application configuration. Typically
this is done in `config/config.exs` or a similar file. For example:
config :stripity_stripe, api_key: "sk_test_abc123456789qwerty"
... | 40.490566 | 165 | 0.716682 |
087a05797bc89c11a2da28e5e40ea1bb956b7535 | 2,404 | ex | Elixir | clients/composer/lib/google_api/composer/v1/model/date.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/composer/lib/google_api/composer/v1/model/date.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/composer/lib/google_api/composer/v1/model/date.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 45.358491 | 590 | 0.709235 |
087a1ef2408c56ccd636b7d2824d20cca65739fa | 2,411 | ex | Elixir | lib/geocoder/worker.ex | fancyturtle/geocoder | e897bba5645a86cbf2cab09d2260b61a5dbe7c56 | [
"MIT"
] | 98 | 2015-08-21T08:47:11.000Z | 2021-10-18T07:48:40.000Z | lib/geocoder/worker.ex | DaoDeCyrus/geocoder | 330f000cc620ef4141ed94deb1b40b11979f8e01 | [
"MIT"
] | 42 | 2015-09-03T14:02:18.000Z | 2021-05-17T13:56:24.000Z | lib/geocoder/worker.ex | DaoDeCyrus/geocoder | 330f000cc620ef4141ed94deb1b40b11979f8e01 | [
"MIT"
] | 63 | 2015-09-03T13:50:27.000Z | 2021-09-14T20:50:58.000Z | defmodule Geocoder.Worker do
use GenServer
use Towel
# Public API
def geocode(params) do
assign(:geocode, params)
end
def geocode_list(params) do
assign(:geocode_list, params)
end
def reverse_geocode(params) do
assign(:reverse_geocode, params)
end
def reverse_geocode_list(params) do
... | 25.378947 | 89 | 0.676483 |
087a6dadae94c83defebcb2bb75a37e275d044cc | 2,045 | exs | Elixir | chat/config/dev.exs | ikhlas-firlana/web-chat-service-elixir | bad0426619a7e217890c06e506f11d0999ee6ff3 | [
"Apache-2.0"
] | null | null | null | chat/config/dev.exs | ikhlas-firlana/web-chat-service-elixir | bad0426619a7e217890c06e506f11d0999ee6ff3 | [
"Apache-2.0"
] | null | null | null | chat/config/dev.exs | ikhlas-firlana/web-chat-service-elixir | bad0426619a7e217890c06e506f11d0999ee6ff3 | [
"Apache-2.0"
] | null | null | null | use Mix.Config
# 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 webpack to recompile .js and .css sources.
config :chat, ChatWeb.Endpoint,
http: [port: 4000],
d... | 26.907895 | 68 | 0.681174 |
087a6fb40c64724e8c0589fb868009a92cbcffff | 7,853 | ex | Elixir | lib/codes/codes_c4a.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_c4a.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_c4a.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | defmodule IcdCode.ICDCode.Codes_C4A do
alias IcdCode.ICDCode
def _C4A0 do
%ICDCode{full_code: "C4A0",
category_code: "C4A",
short_code: "0",
full_name: "Merkel cell carcinoma of lip",
short_name: "Merkel cell carcinoma of lip",
category_name: "Merkel cell carcino... | 38.307317 | 96 | 0.634662 |
087a7cb8c5ab7959be508184bbd0f2b235bf1975 | 2,730 | ex | Elixir | lib/pulsar/dashboard_server.ex | walmartlabs/pulsar | d2362082078e2be5d7158177674b29f96075d47e | [
"Apache-2.0"
] | 22 | 2017-10-10T17:00:10.000Z | 2021-10-04T08:08:01.000Z | lib/pulsar/dashboard_server.ex | walmartlabs/pulsar | d2362082078e2be5d7158177674b29f96075d47e | [
"Apache-2.0"
] | null | null | null | lib/pulsar/dashboard_server.ex | walmartlabs/pulsar | d2362082078e2be5d7158177674b29f96075d47e | [
"Apache-2.0"
] | 1 | 2020-03-12T20:33:20.000Z | 2020-03-12T20:33:20.000Z | defmodule Pulsar.DashboardServer do
alias Pulsar.Dashboard, as: D
@moduledoc """
Responsible for managing a Dashboard, updating it based on received messages, and
periodically flushing it to output.
The `Pulsar` module is the client API for creating and updating jobs.
The `:pulsar` application defines t... | 24.818182 | 90 | 0.683883 |
087a8ceb6517409396b7630eb6fd4bcbcb4cf1aa | 2,980 | exs | Elixir | lib/mix/test/mix/tasks/profile.cprof_test.exs | tmbb/exdocs_makedown_demo | 6a0039c54d2fa10d79c080efcef8d70d359678f8 | [
"Apache-2.0"
] | null | null | null | lib/mix/test/mix/tasks/profile.cprof_test.exs | tmbb/exdocs_makedown_demo | 6a0039c54d2fa10d79c080efcef8d70d359678f8 | [
"Apache-2.0"
] | null | null | null | lib/mix/test/mix/tasks/profile.cprof_test.exs | tmbb/exdocs_makedown_demo | 6a0039c54d2fa10d79c080efcef8d70d359678f8 | [
"Apache-2.0"
] | null | null | null | Code.require_file "../../test_helper.exs", __DIR__
defmodule Mix.Tasks.Profile.CprofTest do
use MixTest.Case
import ExUnit.CaptureIO
alias Mix.Tasks.Profile.Cprof
@moduletag apps: [:sample]
@expr "Enum.each(1..5, &String.Chars.Integer.to_string/1)"
test "profiles evaluated expression", context do
i... | 28.113208 | 99 | 0.594295 |
087a940ed217068d55f9a707fbeb188fd47e1b05 | 300 | ex | Elixir | lib/utils.ex | Sanchos01/Cachets | b3b0e3524c99ac847553e753c4ecbad61ea55843 | [
"MIT"
] | null | null | null | lib/utils.ex | Sanchos01/Cachets | b3b0e3524c99ac847553e753c4ecbad61ea55843 | [
"MIT"
] | null | null | null | lib/utils.ex | Sanchos01/Cachets | b3b0e3524c99ac847553e753c4ecbad61ea55843 | [
"MIT"
] | null | null | null | defmodule Cachets.Utils do
def nowstamp do
{a,b,c} = :os.timestamp
a * 1000000000 + b * 1000 + div(c, 1000)
end
def name_for_table(name) do
String.to_atom("__Cachets__" <> name <> "__")
end
def via_tuple(name) do
{:via, Registry, {Cachets.Worker.Registry, name}}
end
end | 21.428571 | 53 | 0.643333 |
087ac8d0672ba24005bca26c4bc0f9408ff45fb9 | 335 | exs | Elixir | macro/trans/i18n.exs | techgaun/dumpster | c2a5394afe759fb99041aea677e9b0bc4bf91aec | [
"Unlicense"
] | 1 | 2019-12-10T22:25:31.000Z | 2019-12-10T22:25:31.000Z | macro/trans/i18n.exs | techgaun/dumpster | c2a5394afe759fb99041aea677e9b0bc4bf91aec | [
"Unlicense"
] | 3 | 2020-10-25T04:40:05.000Z | 2020-10-25T04:48:10.000Z | macro/trans/i18n.exs | techgaun/dumpster | c2a5394afe759fb99041aea677e9b0bc4bf91aec | [
"Unlicense"
] | null | null | null | defmodule I18n do
use Translator
locale "en",
flash: [
hello: "Hello %{first} %{last}",
bye: "Bye, ${name}!"
],
users: [
title: "Users"
]
locale "fr",
flash: [
hello: "Salut %{first} %{last}",
bye: "Au revoir, %{name}"
],
users: [
title: "Utilisate... | 15.227273 | 38 | 0.468657 |
087adc33582961aff0237195333cb2b2a9d72cad | 572 | ex | Elixir | lib/lambda.ex | nimaai/shen-elixir | 41db4935d43615503ed46aff36af1bf8359b2d12 | [
"MIT"
] | null | null | null | lib/lambda.ex | nimaai/shen-elixir | 41db4935d43615503ed46aff36af1bf8359b2d12 | [
"MIT"
] | null | null | null | lib/lambda.ex | nimaai/shen-elixir | 41db4935d43615503ed46aff36af1bf8359b2d12 | [
"MIT"
] | null | null | null | defmodule Kl.Lambda do
require IEx
# param is not free
def beta_reduce([:lambda, param, _] = lambda, param, _) do
lambda
end
# param is free
def beta_reduce([:lambda, param_x, body], param_y, val) do
[:lambda, param_x, beta_reduce(body, param_y, val)]
end
def beta_reduce([fst | rest], param, ... | 19.066667 | 66 | 0.643357 |
087afb9bdaa65fb009faf5e1de45cf146f54ed7e | 26,150 | ex | Elixir | lib/plug/debugger.ex | shadowfacts/plug | c27823e537df26557a1facc3febad5ebe5f1e415 | [
"Apache-2.0"
] | null | null | null | lib/plug/debugger.ex | shadowfacts/plug | c27823e537df26557a1facc3febad5ebe5f1e415 | [
"Apache-2.0"
] | null | null | null | lib/plug/debugger.ex | shadowfacts/plug | c27823e537df26557a1facc3febad5ebe5f1e415 | [
"Apache-2.0"
] | null | null | null | defmodule Plug.Debugger do
@moduledoc """
A module (**not a plug**) for debugging in development.
This module is commonly used within a `Plug.Builder` or a `Plug.Router`
and it wraps the `call/2` function.
Notice `Plug.Debugger` *does not* catch errors, as errors should still
propagate so that the Elixir ... | 57.853982 | 12,756 | 0.79587 |
087b15098ffbe85931cc60c95d4d3fe7e176cca0 | 16,047 | exs | Elixir | test/game/quest_test.exs | deep-spaced/ex_venture | 45848abe509620d6d2643b2a780dab01c1ac523b | [
"MIT"
] | null | null | null | test/game/quest_test.exs | deep-spaced/ex_venture | 45848abe509620d6d2643b2a780dab01c1ac523b | [
"MIT"
] | null | null | null | test/game/quest_test.exs | deep-spaced/ex_venture | 45848abe509620d6d2643b2a780dab01c1ac523b | [
"MIT"
] | null | null | null | defmodule Game.QuestTest do
use Data.ModelCase
alias Data.QuestProgress
alias Data.QuestStep
alias Game.Quest
describe "start a quest" do
test "creates a new quest progress record" do
guard = create_npc(%{is_quest_giver: true})
quest = create_quest(guard, %{name: "Into the Dungeon"})
... | 37.846698 | 128 | 0.653269 |
087b2292b94c5dfd7b50a4f401630764c504fd77 | 1,094 | ex | Elixir | lib/jeff_bank_web/channels/user_socket.ex | jeffersono7/jeffbank | b817b298ed2729fb0f458e19807b1503681ffb1d | [
"BSD-2-Clause"
] | null | null | null | lib/jeff_bank_web/channels/user_socket.ex | jeffersono7/jeffbank | b817b298ed2729fb0f458e19807b1503681ffb1d | [
"BSD-2-Clause"
] | null | null | null | lib/jeff_bank_web/channels/user_socket.ex | jeffersono7/jeffbank | b817b298ed2729fb0f458e19807b1503681ffb1d | [
"BSD-2-Clause"
] | null | null | null | defmodule JeffBankWeb.UserSocket do
use Phoenix.Socket
## Channels
# channel "room:*", JeffBankWeb.RoomChannel
# Socket params are passed from the client and can
# be used to verify and authenticate a user. After
# verification, you can put default assigns into
# the socket that will be set for all chan... | 30.388889 | 83 | 0.695612 |
087b230da7239e121db6d58b20c07082589338d6 | 3,956 | ex | Elixir | deps/plug/lib/plug/ssl.ex | renatoalmeidaoliveira/Merlin | 92a0e318872190cdfa07ced85ee54cc69cad5c14 | [
"Apache-2.0"
] | null | null | null | deps/plug/lib/plug/ssl.ex | renatoalmeidaoliveira/Merlin | 92a0e318872190cdfa07ced85ee54cc69cad5c14 | [
"Apache-2.0"
] | null | null | null | deps/plug/lib/plug/ssl.ex | renatoalmeidaoliveira/Merlin | 92a0e318872190cdfa07ced85ee54cc69cad5c14 | [
"Apache-2.0"
] | null | null | null | defmodule Plug.SSL do
@moduledoc """
A plug to force SSL connections.
If the scheme of a request is `https`, it'll add a `strict-transport-security`
header to enable HTTP Strict Transport Security.
Otherwise, the request will be redirected to a corresponding location
with the `https` scheme by setting the... | 33.811966 | 85 | 0.67088 |
087b2c9c34291895393998d46d64ae8f3a6acef3 | 1,921 | exs | Elixir | test/elixir_google_spreadsheets/client/limiter_test.exs | trusty/elixir_google_spreadsheets | b7f74d75e61027dc0b12aa5260168563d0777c92 | [
"MIT"
] | 50 | 2016-12-21T06:39:08.000Z | 2022-03-16T04:52:42.000Z | test/elixir_google_spreadsheets/client/limiter_test.exs | trusty/elixir_google_spreadsheets | b7f74d75e61027dc0b12aa5260168563d0777c92 | [
"MIT"
] | 36 | 2017-01-31T19:12:19.000Z | 2022-03-10T17:27:58.000Z | test/elixir_google_spreadsheets/client/limiter_test.exs | nested-tech/elixir_google_spreadsheets | 45895fe6ac5bc9f256bc2e271be1a3324ce8aded | [
"MIT"
] | 34 | 2017-01-16T04:22:16.000Z | 2022-03-01T01:46:39.000Z | defmodule GSS.Client.LimiterTest do
use ExUnit.Case, async: true
alias GSS.Client.Limiter
alias GSS.StubModules.{Producer, Consumer}
setup context do
{:ok, client} = Producer.start_link([])
{:ok, limiter} =
GenStage.start_link(
Limiter,
name: context.test,
clients: [clie... | 28.25 | 76 | 0.628839 |
087b41a3ab07c15273a2040aac537f288e31a3dd | 985 | ex | Elixir | lib/orders/create_or_update.ex | LuizFerK/Exlivery | 22c91a2ae71506f694b7d7213bf8343b9201cce1 | [
"MIT"
] | 1 | 2022-03-16T20:41:39.000Z | 2022-03-16T20:41:39.000Z | lib/orders/create_or_update.ex | LuizFerK/Exlivery | 22c91a2ae71506f694b7d7213bf8343b9201cce1 | [
"MIT"
] | null | null | null | lib/orders/create_or_update.ex | LuizFerK/Exlivery | 22c91a2ae71506f694b7d7213bf8343b9201cce1 | [
"MIT"
] | null | null | null | defmodule Exlivery.Orders.CreateOrUpdate do
alias Exlivery.Orders.Agent, as: OrderAgent
alias Exlivery.Orders.{Item, Order}
alias Exlivery.Users.Agent, as: UserAgent
def call(%{user_cpf: user_cpf, items: items}) do
with {:ok, user} <- UserAgent.get(user_cpf),
{:ok, items} <- build_items(items),
... | 25.921053 | 88 | 0.627411 |
087b4ea59ba255383e4f9abdcffc0b0413787093 | 328 | exs | Elixir | priv/repo/migrations/20150428072308_change_to_jsonb.exs | findmypast/hexfmp | 38a50f5e1057833fd98748faac230bf4b9cc26a3 | [
"Apache-2.0"
] | null | null | null | priv/repo/migrations/20150428072308_change_to_jsonb.exs | findmypast/hexfmp | 38a50f5e1057833fd98748faac230bf4b9cc26a3 | [
"Apache-2.0"
] | null | null | null | priv/repo/migrations/20150428072308_change_to_jsonb.exs | findmypast/hexfmp | 38a50f5e1057833fd98748faac230bf4b9cc26a3 | [
"Apache-2.0"
] | null | null | null | defmodule Hexpm.Repo.Migrations.ChangeToJsonb do
use Ecto.Migration
def up do
execute """
ALTER TABLE packages
ALTER COLUMN meta TYPE jsonb USING meta::text::jsonb
"""
end
def down do
execute """
ALTER TABLE packages
ALTER COLUMN meta TYPE json USING meta::text::json
"""
... | 18.222222 | 58 | 0.658537 |
087b75b605bf2d79c80dd8d0aac1a5d85223e725 | 1,275 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/accelerator_type_list.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/accelerator_type_list.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/accelerator_type_list.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.651163 | 88 | 0.735686 |
087b8e363aa66a5f515a16d866ec8747af96c7e3 | 1,614 | ex | Elixir | lib/ecto/adapter/migration.ex | rbishop/ecto | a8a3215c9e2e35f7556f54c8d47d78a3670796d8 | [
"Apache-2.0"
] | null | null | null | lib/ecto/adapter/migration.ex | rbishop/ecto | a8a3215c9e2e35f7556f54c8d47d78a3670796d8 | [
"Apache-2.0"
] | null | null | null | lib/ecto/adapter/migration.ex | rbishop/ecto | a8a3215c9e2e35f7556f54c8d47d78a3670796d8 | [
"Apache-2.0"
] | null | null | null | defmodule Ecto.Adapter.Migration do
@moduledoc """
Specifies the adapter migrations API.
"""
use Behaviour
alias Ecto.Migration.Table
alias Ecto.Migration.Index
alias Ecto.Migration.Reference
@typedoc "All migration commands"
@type command ::
raw :: String.t |
{:create, Table.t, [table_sub... | 29.345455 | 87 | 0.671623 |
087ba10c4b19a0d402db4b10a9d1c3f453f367f3 | 5,747 | ex | Elixir | lib/tzdata/parser.ex | hoyon/tzdata | 28b470c5ca0ce80d67e1606b5839adb13e1375a8 | [
"MIT"
] | 1 | 2020-01-31T10:23:37.000Z | 2020-01-31T10:23:37.000Z | lib/tzdata/parser.ex | hoyon/tzdata | 28b470c5ca0ce80d67e1606b5839adb13e1375a8 | [
"MIT"
] | 1 | 2018-12-30T12:15:35.000Z | 2018-12-30T12:15:35.000Z | lib/tzdata/parser.ex | hoyon/tzdata | 28b470c5ca0ce80d67e1606b5839adb13e1375a8 | [
"MIT"
] | 2 | 2020-09-08T08:16:34.000Z | 2020-10-26T01:53:39.000Z | defmodule Tzdata.Parser do
@moduledoc false
require Tzdata.Util
import Tzdata.Util
def read_file(file_name, dir_prepend) do
File.stream!("#{dir_prepend}/#{file_name}")
|> process_file
end
def process_file(file_stream) do
file_stream
|> filter_comment_lines
|> filter_empty_lines
|> ... | 39.363014 | 199 | 0.642422 |
087bcbf270fa880a6b359434c3ef4ef3547c1027 | 6,315 | ex | Elixir | lib/arkenston/subject.ex | dolfinus/omicron-backend | dd3544a421ce8b05447fe72640f73f180549270f | [
"MIT"
] | 1 | 2019-04-29T18:07:08.000Z | 2019-04-29T18:07:08.000Z | lib/arkenston/subject.ex | dolfinus/omicron-backend | dd3544a421ce8b05447fe72640f73f180549270f | [
"MIT"
] | 126 | 2020-12-03T15:39:31.000Z | 2022-03-30T22:02:23.000Z | lib/arkenston/subject.ex | dolfinus/arkenston-backend | 258880936dce673eb15db0c4b52e68d3d40c58ff | [
"MIT"
] | null | null | null | defmodule Arkenston.Subject do
@moduledoc """
The Subject context.
"""
import Ecto.Query, warn: false
alias Arkenston.Helper.QueryHelper
alias Arkenston.Repo
alias Arkenston.Subject.{User, Author}
defp filter_author(query, opts) do
opts = opts |> Enum.into(%{})
new_query =
case opts do... | 21.552901 | 97 | 0.568804 |
087bd17e804412242671afc73223da2fa79f6868 | 8,686 | ex | Elixir | lib/gtfs_realtime_viz.ex | paulswartz/gtfs_realtime_viz | 0336cf1f37a168eaf4d39e8cc71ab89364c120dc | [
"MIT"
] | null | null | null | lib/gtfs_realtime_viz.ex | paulswartz/gtfs_realtime_viz | 0336cf1f37a168eaf4d39e8cc71ab89364c120dc | [
"MIT"
] | null | null | null | lib/gtfs_realtime_viz.ex | paulswartz/gtfs_realtime_viz | 0336cf1f37a168eaf4d39e8cc71ab89364c120dc | [
"MIT"
] | null | null | null | defmodule GTFSRealtimeViz do
@moduledoc """
GTFSRealtimeViz is an OTP app that can be run by itself or as part of another
application. You can send it protobuf VehiclePositions.pb files, in sequence,
and then output them as an HTML fragment, to either open in a browser or embed
in another view.
Example usa... | 35.165992 | 175 | 0.683168 |
087c12b944d8c156cb5d3f311f1afc172e444a2b | 3,663 | exs | Elixir | test/elixir_google_scraper/scraper/keywords_test.exs | junan/elixir_google_scraper | d032f3a9d5a30e354f1e6d607434670334936630 | [
"MIT"
] | null | null | null | test/elixir_google_scraper/scraper/keywords_test.exs | junan/elixir_google_scraper | d032f3a9d5a30e354f1e6d607434670334936630 | [
"MIT"
] | 25 | 2021-05-21T02:23:37.000Z | 2021-07-09T09:22:32.000Z | test/elixir_google_scraper/scraper/keywords_test.exs | junan/elixir_google_scraper | d032f3a9d5a30e354f1e6d607434670334936630 | [
"MIT"
] | null | null | null | defmodule ElixirGoogleScraper.Scraper.KeywordsTest do
use ElixirGoogleScraper.DataCase, async: true
alias ElixirGoogleScraper.Scraper.Keywords
alias ElixirGoogleScraper.Scraper.Schemas.Keyword
describe "mark_as_completed/1" do
test "updates the keyword as completed" do
user = insert(:user)
key... | 29.780488 | 104 | 0.668305 |
087c4de226b64c022eaefc010aa316bdf98f3346 | 6,016 | ex | Elixir | clients/service_management/lib/google_api/service_management/v1/model/quota_limit.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/service_management/lib/google_api/service_management/v1/model/quota_limit.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/service_management/lib/google_api/service_management/v1/model/quota_limit.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... | 94 | 886 | 0.756316 |
087c67bc49152e417e80f22eef0f45aa3e244884 | 1,931 | ex | Elixir | clients/pub_sub/lib/google_api/pub_sub/v1/model/list_subscriptions_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/pub_sub/lib/google_api/pub_sub/v1/model/list_subscriptions_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/pub_sub/lib/google_api/pub_sub/v1/model/list_subscriptions_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 37.134615 | 142 | 0.741067 |
087c83244bae50def1388aa93a16462cef827d3f | 3,748 | exs | Elixir | apps/tai/test/tai/venue_adapters/bitmex/stream/process_auth/messages/update_orders/to_partially_filled_test.exs | ihorkatkov/tai | 09f9f15d2c385efe762ae138a8570f1e3fd41f26 | [
"MIT"
] | 1 | 2019-12-19T05:16:26.000Z | 2019-12-19T05:16:26.000Z | apps/tai/test/tai/venue_adapters/bitmex/stream/process_auth/messages/update_orders/to_partially_filled_test.exs | ihorkatkov/tai | 09f9f15d2c385efe762ae138a8570f1e3fd41f26 | [
"MIT"
] | null | null | null | apps/tai/test/tai/venue_adapters/bitmex/stream/process_auth/messages/update_orders/to_partially_filled_test.exs | ihorkatkov/tai | 09f9f15d2c385efe762ae138a8570f1e3fd41f26 | [
"MIT"
] | null | null | null | defmodule Tai.VenueAdapters.Bitmex.Stream.ProcessAuth.Messages.UpdateOrders.ToPartiallyFilledTest do
use ExUnit.Case, async: false
import Tai.TestSupport.Assertions.Event
alias Tai.VenueAdapters.Bitmex.ClientId
alias Tai.VenueAdapters.Bitmex.Stream.ProcessAuth
alias Tai.Trading.OrderStore
alias Tai.Events
... | 31.495798 | 100 | 0.699306 |
087c8f02a16931b17452be6b59fb81f04cd497e0 | 549 | ex | Elixir | lib/gistsio/gist_client_manager.ex | sntran/gists.io | 74575514c0760cbfe2313b1479919ac45a29e8a2 | [
"MIT"
] | 1 | 2015-05-22T18:31:28.000Z | 2015-05-22T18:31:28.000Z | lib/gistsio/gist_client_manager.ex | sntran/gists.io | 74575514c0760cbfe2313b1479919ac45a29e8a2 | [
"MIT"
] | null | null | null | lib/gistsio/gist_client_manager.ex | sntran/gists.io | 74575514c0760cbfe2313b1479919ac45a29e8a2 | [
"MIT"
] | 1 | 2020-10-23T01:23:36.000Z | 2020-10-23T01:23:36.000Z | defmodule GistsIO.GistClientManager do
use Supervisor.Behaviour
def start_link(client_id, client_secret) do
:supervisor.start_link({:local, __MODULE__}, __MODULE__, [client_id, client_secret])
end
def start_client(args // []) do
:supervisor.start_child(__MODULE__, args)
end
de... | 27.45 | 92 | 0.677596 |
087c93220729575163a9cc4b83df9bb1c9868dc2 | 1,833 | ex | Elixir | clients/logging/lib/google_api/logging/v2/model/list_sinks_response.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/logging/lib/google_api/logging/v2/model/list_sinks_response.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/logging/lib/google_api/logging/v2/model/list_sinks_response.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"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... | 35.941176 | 249 | 0.742499 |
087cc549c4023d009482ef3f8ca4e928f9fb4527 | 763 | exs | Elixir | test/document_viewer_web/ueberauth/strategy/fake_test.exs | arkadyan/document_viewer | d45594632b83559520820744e4afd37d3bfdb03d | [
"MIT"
] | 1 | 2021-03-17T19:04:28.000Z | 2021-03-17T19:04:28.000Z | test/document_viewer_web/ueberauth/strategy/fake_test.exs | mbta/document_viewer | f3af972f4996759bc18811186f753b87bbe43b53 | [
"MIT"
] | 121 | 2021-03-18T21:03:02.000Z | 2022-03-28T09:24:49.000Z | test/document_viewer_web/ueberauth/strategy/fake_test.exs | arkadyan/document_viewer | d45594632b83559520820744e4afd37d3bfdb03d | [
"MIT"
] | 1 | 2021-05-19T21:21:56.000Z | 2021-05-19T21:21:56.000Z | defmodule DocumentViewerWeb.Ueberauth.Strategy.FakeTest do
use ExUnit.Case, async: true
alias DocumentViewerWeb.Ueberauth.Strategy.Fake
alias Ueberauth.Auth.{Credentials, Extra, Info}
test "credentials returns a credentials struct" do
assert Fake.credentials(%{}) == %Credentials{
token: "fake... | 30.52 | 63 | 0.650066 |
087cc7e45e192f53e889a501765fa184487ea969 | 2,625 | exs | Elixir | apps/glayu_core/test/glayu/validations/validator_test.exs | pmartinezalvarez/glayu | 8dc30eea4d04c38f5c7999b593c066828423a3dc | [
"MIT"
] | 51 | 2017-05-21T07:27:34.000Z | 2017-11-30T04:34:17.000Z | apps/glayu_core/test/glayu/validations/validator_test.exs | doc22940/glayu | 8dc30eea4d04c38f5c7999b593c066828423a3dc | [
"MIT"
] | 17 | 2017-06-14T18:40:44.000Z | 2017-08-20T16:14:58.000Z | apps/glayu_core/test/glayu/validations/validator_test.exs | doc22940/glayu | 8dc30eea4d04c38f5c7999b593c066828423a3dc | [
"MIT"
] | 5 | 2017-06-04T19:55:56.000Z | 2017-07-29T16:18:58.000Z | defmodule Glayu.Validations.ValidatorTest do
use ExUnit.Case
test "validate raises a ValidationError when receives an invalid proplist " do
source = [
{'title', 'The Glayu Times'},
{'permalink', 'categories/year/month/day/titl'}, # invalid permalink format
{'source_dir', 'source'},
{'... | 36.458333 | 189 | 0.638095 |
087cdca8aa571782decc2950ef49990329946b59 | 3,709 | ex | Elixir | clients/big_query/lib/google_api/big_query/v2/model/bigtable_column.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/big_query/lib/google_api/big_query/v2/model/bigtable_column.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/big_query/lib/google_api/big_query/v2/model/bigtable_column.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... | 59.822581 | 571 | 0.728498 |
087ce11c61343430842de2f3378fc3007eef31fe | 1,084 | ex | Elixir | clients/hydra/elixir/lib/ory/api/metadata.ex | ory/sdk-generator | 958314d130922ad6f20f439b5230141a832231a5 | [
"Apache-2.0"
] | null | null | null | clients/hydra/elixir/lib/ory/api/metadata.ex | ory/sdk-generator | 958314d130922ad6f20f439b5230141a832231a5 | [
"Apache-2.0"
] | null | null | null | clients/hydra/elixir/lib/ory/api/metadata.ex | ory/sdk-generator | 958314d130922ad6f20f439b5230141a832231a5 | [
"Apache-2.0"
] | null | null | null | # NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
# https://openapi-generator.tech
# Do not edit the class manually.
defmodule Ory.Api.Metadata do
@moduledoc """
API calls for all endpoints tagged `Metadata`.
"""
alias Ory.Connection
import Ory.RequestBuilder
@d... | 27.794872 | 118 | 0.661439 |
087cff20f1788ddd84084a8c45cda3bf9c3ebd8e | 2,214 | ex | Elixir | apps/ewallet_db/lib/ewallet_db/invite.ex | turbo-play/ewallet | b7fee3eed62ac716f46246132c2ead1045f2e4f3 | [
"Apache-2.0"
] | 2 | 2019-07-13T05:49:03.000Z | 2021-08-19T23:58:23.000Z | apps/ewallet_db/lib/ewallet_db/invite.ex | turbo-play/ewallet | b7fee3eed62ac716f46246132c2ead1045f2e4f3 | [
"Apache-2.0"
] | null | null | null | apps/ewallet_db/lib/ewallet_db/invite.ex | turbo-play/ewallet | b7fee3eed62ac716f46246132c2ead1045f2e4f3 | [
"Apache-2.0"
] | 3 | 2018-05-08T17:15:42.000Z | 2021-11-10T04:08:33.000Z | defmodule EWalletDB.Invite do
@moduledoc """
Ecto Schema representing invite.
"""
use Ecto.Schema
import Ecto.{Changeset, Query}
alias Ecto.UUID
alias EWalletDB.{Repo, Invite, User}
alias EWalletDB.Helpers.Crypto
@primary_key {:id, UUID, autogenerate: true}
@token_length 32
@allowed_user_attrs [:... | 23.0625 | 82 | 0.629178 |
087cff5d39545f776c3f21d64d030a845f6f1ace | 873 | ex | Elixir | lib/nubank_api/config.ex | jeffhsta/nubank_api | c4ca246f6e6ff6e77e349293daaff3741d3975ff | [
"MIT"
] | 14 | 2019-02-19T16:59:16.000Z | 2021-10-30T14:57:10.000Z | lib/nubank_api/config.ex | fernandozoomp/API_NuBank | cb05de00d48275f3eae94fa3cb4ea55684289937 | [
"MIT"
] | 32 | 2019-02-21T02:40:03.000Z | 2020-06-09T00:04:03.000Z | lib/nubank_api/config.ex | fernandozoomp/API_NuBank | cb05de00d48275f3eae94fa3cb4ea55684289937 | [
"MIT"
] | 3 | 2019-02-22T00:20:34.000Z | 2021-04-08T20:35:07.000Z | defmodule NubankAPI.Config do
@moduledoc """
This configuration module is responsable for load the essential information from
the configurations and set a default value for the missing configurations.
"""
@default_token_api_uri "https://prod-s0-webapp-proxy.nubank.com.br/api/proxy/AJxL5LBUC2Tx4PB-W6VD1SEIOd2... | 37.956522 | 179 | 0.719359 |
087d10dcdff0303733d5b9fdaeff723def7d1183 | 195 | ex | Elixir | test/support/web/controllers/broadcast3_controller.ex | bdfinlayson/drab | ce11a643ec8fe7e7f622489af5792ef12e69a8c7 | [
"MIT"
] | null | null | null | test/support/web/controllers/broadcast3_controller.ex | bdfinlayson/drab | ce11a643ec8fe7e7f622489af5792ef12e69a8c7 | [
"MIT"
] | null | null | null | test/support/web/controllers/broadcast3_controller.ex | bdfinlayson/drab | ce11a643ec8fe7e7f622489af5792ef12e69a8c7 | [
"MIT"
] | null | null | null | defmodule DrabTestApp.Broadcast3Controller do
@moduledoc false
use DrabTestApp.Web, :controller
use Drab.Controller
def index(conn, _params) do
render(conn, "index.html")
end
end
| 17.727273 | 45 | 0.748718 |
087d75f9d5f614a26f5593ab01bcbb6b99691a67 | 3,610 | exs | Elixir | test/oli_web/controllers/api/product_controller_test.exs | wyeworks/oli-torus | 146ee79a7e315e57bdf3c7b6fd4f7dbe73610647 | [
"MIT"
] | null | null | null | test/oli_web/controllers/api/product_controller_test.exs | wyeworks/oli-torus | 146ee79a7e315e57bdf3c7b6fd4f7dbe73610647 | [
"MIT"
] | 9 | 2021-11-02T16:52:09.000Z | 2022-03-25T15:14:01.000Z | test/oli_web/controllers/api/product_controller_test.exs | wyeworks/oli-torus | 146ee79a7e315e57bdf3c7b6fd4f7dbe73610647 | [
"MIT"
] | null | null | null | defmodule OliWeb.ProductControllerTest do
@moduledoc false
use OliWeb.ConnCase
alias Oli.Inventories
alias Oli.Seeder
describe "index" do
setup [:setup_session]
test "lists all products", %{
conn: conn,
api_key: api_key,
map: map
} do
publisher_id = Inventories.default_... | 30.59322 | 97 | 0.559557 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.