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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
74f7a208a596b058513db40495ebdf72fb72b1a4 | 857 | ex | Elixir | lib/yml_reader/config.ex | crosscloudci/ex_ci_proxy | 906b8d2f51f4324893f205ab647edaf34c271170 | [
"Apache-2.0"
] | null | null | null | lib/yml_reader/config.ex | crosscloudci/ex_ci_proxy | 906b8d2f51f4324893f205ab647edaf34c271170 | [
"Apache-2.0"
] | 2 | 2019-12-18T18:08:10.000Z | 2020-11-30T23:01:37.000Z | lib/yml_reader/config.ex | crosscloudci/ex_ci_proxy | 906b8d2f51f4324893f205ab647edaf34c271170 | [
"Apache-2.0"
] | null | null | null | require IEx;
require Logger;
defmodule ExCiProxy.YmlReader.Config do
def get do
path = Path.join(File.cwd!(), "ci_plugins.yml")
{:ok, %{"plugins" => yml}} = YamlElixir.read_from_file(path)
yml
end
def get_repo(service) do
repo = get() |>
Enum.find([], fn(x) ->
if x["name"] == service do ... | 16.803922 | 62 | 0.525088 |
74f7a643dc4aca573f9e74884029f29d439f1ef3 | 1,674 | exs | Elixir | config/config.exs | FROSADO/glimesh.tv | d395e89bcf8ab33ccb723ad603c0a6fb6d4ca139 | [
"MIT"
] | null | null | null | config/config.exs | FROSADO/glimesh.tv | d395e89bcf8ab33ccb723ad603c0a6fb6d4ca139 | [
"MIT"
] | null | null | null | config/config.exs | FROSADO/glimesh.tv | d395e89bcf8ab33ccb723ad603c0a6fb6d4ca139 | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
#
# This configuration file is loaded before any dependency and
# is restricted to this project.
# General application configuration
use Mix.Config
config :glimesh,
ecto_repos: [Glimesh.Repo],
... | 31 | 86 | 0.759259 |
74f7bccc329c03aeb005286680c6a2db0b926769 | 799 | ex | Elixir | lib/sentinel/web/views/user_view.ex | lumenlunae/sentinel | 189d9b02aeeea942a41963b42ef8523ef192fd03 | [
"MIT"
] | 125 | 2016-01-29T11:46:20.000Z | 2021-06-08T09:25:38.000Z | lib/sentinel/web/views/user_view.ex | lumenlunae/sentinel | 189d9b02aeeea942a41963b42ef8523ef192fd03 | [
"MIT"
] | 54 | 2016-02-18T01:11:58.000Z | 2017-10-19T11:25:26.000Z | lib/sentinel/web/views/user_view.ex | lumenlunae/sentinel | 189d9b02aeeea942a41963b42ef8523ef192fd03 | [
"MIT"
] | 29 | 2016-02-20T12:59:16.000Z | 2018-04-11T14:29:41.000Z | defmodule Sentinel.UserView do
use Phoenix.View, root: "lib/sentinel/web/templates/"
use Phoenix.HTML
alias Sentinel.Config
def render("index.json", %{users: users}) do
render_many(users, user_view(), "user.json")
end
def render("show.json", %{user: user, token: token}) do
%{data: %{token: token,... | 25.774194 | 78 | 0.67209 |
74f7bf45e53cd361c35c3190dbee7d1829a2ec9e | 515 | exs | Elixir | priv/templates/phx.gen.notifier/notifier_test.exs | faheempatel/phoenix | a83318f2a2284b7ab29b0b86cdd9d2e1f4d0a7c9 | [
"MIT"
] | 18,092 | 2015-01-01T01:51:04.000Z | 2022-03-31T19:37:14.000Z | priv/templates/phx.gen.notifier/notifier_test.exs | faheempatel/phoenix | a83318f2a2284b7ab29b0b86cdd9d2e1f4d0a7c9 | [
"MIT"
] | 3,905 | 2015-01-01T00:22:47.000Z | 2022-03-31T17:06:21.000Z | priv/templates/phx.gen.notifier/notifier_test.exs | faheempatel/phoenix | a83318f2a2284b7ab29b0b86cdd9d2e1f4d0a7c9 | [
"MIT"
] | 3,205 | 2015-01-03T10:58:22.000Z | 2022-03-30T14:55:57.000Z | defmodule <%= inspect context.module %>Test do
use ExUnit.Case, async: true
import Swoosh.TestAssertions
alias <%= inspect context.module %><%= for message <- notifier_messages do %>
test "deliver_<%= message %>/1" do
user = %{name: "Alice", email: "alice@example.com"}
<%= inflections[:alias] %>.deli... | 27.105263 | 79 | 0.627184 |
74f7cac59a73125a8ccc977d8a23f2e9d47b7e4b | 5,660 | exs | Elixir | test/phoenix/integration/endpoint_test.exs | raspo/phoenix | 438b74255e7a4d68b4eaf1a295d0fcd201c71421 | [
"MIT"
] | 1 | 2015-05-19T11:04:16.000Z | 2015-05-19T11:04:16.000Z | test/phoenix/integration/endpoint_test.exs | raspo/phoenix | 438b74255e7a4d68b4eaf1a295d0fcd201c71421 | [
"MIT"
] | null | null | null | test/phoenix/integration/endpoint_test.exs | raspo/phoenix | 438b74255e7a4d68b4eaf1a295d0fcd201c71421 | [
"MIT"
] | null | null | null | Code.require_file "../../support/http_client.exs", __DIR__
defmodule Phoenix.Integration.EndpointTest do
# Cannot run async because of serve endpoints
use ExUnit.Case
import ExUnit.CaptureLog
alias Phoenix.Integration.AdapterTest.ProdEndpoint
alias Phoenix.Integration.AdapterTest.DevEndpoint
alias Phoenix... | 30.76087 | 110 | 0.618728 |
74f80c897615f99040c79241db6eaa9fc2033763 | 643 | exs | Elixir | nerves/nerves_system_rpi3/nerves.exs | KRISHITECH/farmbot_os | 4220baf8f3ef930ce3b861b178ca6a76e2fd7591 | [
"MIT"
] | null | null | null | nerves/nerves_system_rpi3/nerves.exs | KRISHITECH/farmbot_os | 4220baf8f3ef930ce3b861b178ca6a76e2fd7591 | [
"MIT"
] | null | null | null | nerves/nerves_system_rpi3/nerves.exs | KRISHITECH/farmbot_os | 4220baf8f3ef930ce3b861b178ca6a76e2fd7591 | [
"MIT"
] | null | null | null | use Mix.Config
version = Path.join([__DIR__, "..", "..", "VERSION"])
|> File.read!
|> String.strip
pkg = :nerves_system_rpi3
nerves_target = "rpi3"
config pkg, :nerves_env,
type: :system,
version: version,
compiler: :nerves_package,
artifact_url: [
"https://github.com/FarmBot/farmbot_os/releases/download... | 21.433333 | 123 | 0.648523 |
74f8251c459d38f8636606edefef34d50e756bbb | 1,795 | exs | Elixir | test/airbrakex/logger_parser_test.exs | fmbraga/airbrakex | 5fe02fa8f54259399bea781e9bee03fca97d6aa7 | [
"MIT"
] | 29 | 2015-09-03T21:28:38.000Z | 2020-05-01T21:13:15.000Z | test/airbrakex/logger_parser_test.exs | fmbraga/airbrakex | 5fe02fa8f54259399bea781e9bee03fca97d6aa7 | [
"MIT"
] | 46 | 2015-09-10T22:05:02.000Z | 2022-02-01T00:33:51.000Z | test/airbrakex/logger_parser_test.exs | rum-and-code/airbrakex | 36db3a0f887c7d74492daabf1f33eab98fe9b46f | [
"MIT"
] | 48 | 2015-09-10T20:15:37.000Z | 2021-07-09T11:28:02.000Z | defmodule Airbrakex.LoggerParserTest do
use ExUnit.Case
test "should parse exception from logs" do
exception = """
an exception was raised:
** (Ecto.NoResultsError) expected at least one result but got none in query:
from g in Test.Game,
where: g.id == ^"d8fe9f04-8fda-4d8f-9473-67ba94dc945... | 32.636364 | 151 | 0.552646 |
74f8956ef2eab37e793150f064ed3077cc4074ea | 231 | ex | Elixir | lib/atlas/exceptions/adapter_error.ex | lowks/atlas | e01cefa088fe1174d9162f5834156611f1caa594 | [
"MIT"
] | 94 | 2015-01-01T16:17:40.000Z | 2021-12-16T02:53:01.000Z | lib/atlas/exceptions/adapter_error.ex | IdoBn/atlas | e01cefa088fe1174d9162f5834156611f1caa594 | [
"MIT"
] | 2 | 2015-09-22T14:45:26.000Z | 2017-08-29T18:16:04.000Z | lib/atlas/exceptions/adapter_error.ex | IdoBn/atlas | e01cefa088fe1174d9162f5834156611f1caa594 | [
"MIT"
] | 11 | 2015-01-06T02:25:00.000Z | 2021-12-16T03:10:11.000Z | defmodule Atlas.Exceptions.AdapterError do
defexception [message: "Error when performing query",
can_retry: false]
def full_message(me) do
"Call failed: #{me.message}, retriable: #{me.can_retry}"
end
end
| 25.666667 | 60 | 0.688312 |
74f8a9b94d23560f95a47b48de93655c7ab2f0e8 | 2,786 | ex | Elixir | lib/thrift/exceptions.ex | dnlserrano/elixir-thrift | 568de9f7bdfa43279c819cb50e16c33b4dc09146 | [
"Apache-2.0"
] | null | null | null | lib/thrift/exceptions.ex | dnlserrano/elixir-thrift | 568de9f7bdfa43279c819cb50e16c33b4dc09146 | [
"Apache-2.0"
] | null | null | null | lib/thrift/exceptions.ex | dnlserrano/elixir-thrift | 568de9f7bdfa43279c819cb50e16c33b4dc09146 | [
"Apache-2.0"
] | null | null | null | # credo:disable-for-next-line
defmodule Thrift.TApplicationException do
@moduledoc """
Application-level exception
"""
@enforce_keys [:message, :type]
defexception message: "unknown", type: :unknown
# This list represents the set of well-known TApplicationException types.
# We primarily use their atom n... | 26.788462 | 77 | 0.705671 |
74f8ac00b60ec6b192001b73332c5d67ad9f4a08 | 1,624 | ex | Elixir | clients/you_tube/lib/google_api/you_tube/v3/model/i18n_region_snippet.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/you_tube/lib/google_api/you_tube/v3/model/i18n_region_snippet.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/you_tube/lib/google_api/you_tube/v3/model/i18n_region_snippet.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... | 31.843137 | 87 | 0.730296 |
74f8acd5f29e22c1bee8da358d2aa4b3b8e3c354 | 922 | exs | Elixir | test/ecto/uuid_test.exs | thiagoarrais/ecto | 93d7595beb7f407775c4918d19cad370b0bcd498 | [
"Apache-2.0"
] | null | null | null | test/ecto/uuid_test.exs | thiagoarrais/ecto | 93d7595beb7f407775c4918d19cad370b0bcd498 | [
"Apache-2.0"
] | null | null | null | test/ecto/uuid_test.exs | thiagoarrais/ecto | 93d7595beb7f407775c4918d19cad370b0bcd498 | [
"Apache-2.0"
] | null | null | null | defmodule Ecto.UUIDTest do
use ExUnit.Case, async: true
@test_uuid "601D74E4-A8D3-4B6E-8365-EDDB4C893327"
@test_uuid_binary << 0x60, 0x1D, 0x74, 0xE4, 0xA8, 0xD3, 0x4B, 0x6E, 0x83, 0x65, 0xED, 0xDB, 0x4C, 0x89, 0x33, 0x27 >>
test "cast" do
assert Ecto.UUID.cast(@test_uuid) == {:ok, @test_uuid}
asser... | 28.8125 | 120 | 0.638829 |
74f8eaa30d3b62c308640c25ccb1066c8d975065 | 1,910 | exs | Elixir | clients/remote_build_execution/mix.exs | ukrbublik/elixir-google-api | 364cec36bc76f60bec94cbcad34844367a29d174 | [
"Apache-2.0"
] | null | null | null | clients/remote_build_execution/mix.exs | ukrbublik/elixir-google-api | 364cec36bc76f60bec94cbcad34844367a29d174 | [
"Apache-2.0"
] | null | null | null | clients/remote_build_execution/mix.exs | ukrbublik/elixir-google-api | 364cec36bc76f60bec94cbcad34844367a29d174 | [
"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... | 28.507463 | 113 | 0.665969 |
74f91534b03a3da9cb6ba6b9871fbb094fbd44af | 2,753 | exs | Elixir | test/mix/tasks/send_trial_notifications_test.exs | dukhniav/plausible | dfcbf9cc98637721698b2046eee205b66b204acb | [
"MIT"
] | null | null | null | test/mix/tasks/send_trial_notifications_test.exs | dukhniav/plausible | dfcbf9cc98637721698b2046eee205b66b204acb | [
"MIT"
] | null | null | null | test/mix/tasks/send_trial_notifications_test.exs | dukhniav/plausible | dfcbf9cc98637721698b2046eee205b66b204acb | [
"MIT"
] | null | null | null | defmodule Mix.Tasks.SendTrialNotificationsTest do
use Plausible.DataCase
use Bamboo.Test
test "does not send a notification if user didn't set up their site" do
insert(:user, inserted_at: Timex.now |> Timex.shift(days: -14))
insert(:user, inserted_at: Timex.now |> Timex.shift(days: -29))
insert(:user... | 37.202703 | 91 | 0.676353 |
74f922ec60d5835814fc1c26c4f21ba17ce32497 | 1,698 | ex | Elixir | lib/google_api/storage/v1/model/object_customer_encryption.ex | albert-io/elixir-google-api-storage | 302144ec2c1261104d1a20942482796b2fc0905f | [
"Apache-2.0"
] | null | null | null | lib/google_api/storage/v1/model/object_customer_encryption.ex | albert-io/elixir-google-api-storage | 302144ec2c1261104d1a20942482796b2fc0905f | [
"Apache-2.0"
] | null | null | null | lib/google_api/storage/v1/model/object_customer_encryption.ex | albert-io/elixir-google-api-storage | 302144ec2c1261104d1a20942482796b2fc0905f | [
"Apache-2.0"
] | 1 | 2019-04-17T05:52:55.000Z | 2019-04-17T05:52:55.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.444444 | 89 | 0.749706 |
74f926f558cc899096821790dd3f560b07c83266 | 1,606 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/instance_group_managers_abandon_instances_request.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/instance_group_managers_abandon_instances_request.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/compute/lib/google_api/compute/v1/model/instance_group_managers_abandon_instances_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... | 32.77551 | 199 | 0.750311 |
74f9453f023751e5ed798c683595d04e4d5a2175 | 1,210 | ex | Elixir | lib/koans/02_strings.ex | eduardolujan/elixir_koans | ab969a22e847dec73c665d866102dc2ebdc3f813 | [
"MIT"
] | null | null | null | lib/koans/02_strings.ex | eduardolujan/elixir_koans | ab969a22e847dec73c665d866102dc2ebdc3f813 | [
"MIT"
] | null | null | null | lib/koans/02_strings.ex | eduardolujan/elixir_koans | ab969a22e847dec73c665d866102dc2ebdc3f813 | [
"MIT"
] | null | null | null | defmodule Strings do
use Koans
@intro "Strings"
koan "Strings are there to represent text" do
assert "hello" == "hello"
end
koan "Values may be inserted into strings by interpolation" do
assert "1 + 1 = #{1 + 1}" == "1 + 1 = 2"
end
koan "They can be put together" do
assert "hello world" ==... | 26.304348 | 87 | 0.658678 |
74f97f1d1764904bcfc26fed3e94102cf0fc26d9 | 1,381 | ex | Elixir | apps/ello_v2/web/controllers/user_controller.ex | ello/apex | 4acb096b3ce172ff4ef9a51e5d068d533007b920 | [
"MIT"
] | 16 | 2017-06-21T21:31:20.000Z | 2021-05-09T03:23:26.000Z | apps/ello_v2/web/controllers/user_controller.ex | ello/apex | 4acb096b3ce172ff4ef9a51e5d068d533007b920 | [
"MIT"
] | 25 | 2017-06-07T12:18:28.000Z | 2018-06-08T13:27:43.000Z | apps/ello_v2/web/controllers/user_controller.ex | ello/apex | 4acb096b3ce172ff4ef9a51e5d068d533007b920 | [
"MIT"
] | 3 | 2018-06-14T15:34:07.000Z | 2022-02-28T21:06:13.000Z | defmodule Ello.V2.UserController do
use Ello.V2.Web, :controller
alias Ello.Core.Network
alias Ello.V2.UserView
alias Ello.Search.User.Search
plug Ello.Auth.RequireUser when action in [:autocomplete]
@doc """
GET /v2/users/:id, GET /v2/users/~:username
Render a single user by id or username
"""
d... | 24.660714 | 70 | 0.656046 |
74f9a194b632c4e879f8b28a92c85c192474057b | 1,127 | exs | Elixir | config/config.exs | Schultzer/kryptiles | e6203627e227304829490925758e848c6ff73ebf | [
"Unlicense",
"MIT"
] | 1 | 2018-07-21T22:19:35.000Z | 2018-07-21T22:19:35.000Z | config/config.exs | Schultzer/kryptiles | e6203627e227304829490925758e848c6ff73ebf | [
"Unlicense",
"MIT"
] | null | null | null | config/config.exs | Schultzer/kryptiles | e6203627e227304829490925758e848c6ff73ebf | [
"Unlicense",
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on this project, this
# file won't be loaded nor affect the paren... | 36.354839 | 73 | 0.753327 |
74f9b15aa5b9327b4a8888e53419d7fee00707a4 | 564 | ex | Elixir | apps/admin_api/test/support/view_case.ex | amadeobrands/ewallet | 505b7822721940a7b892a9b35c225e80cc8ac0b4 | [
"Apache-2.0"
] | 1 | 2018-12-07T06:21:21.000Z | 2018-12-07T06:21:21.000Z | apps/admin_api/test/support/view_case.ex | amadeobrands/ewallet | 505b7822721940a7b892a9b35c225e80cc8ac0b4 | [
"Apache-2.0"
] | null | null | null | apps/admin_api/test/support/view_case.ex | amadeobrands/ewallet | 505b7822721940a7b892a9b35c225e80cc8ac0b4 | [
"Apache-2.0"
] | null | null | null | defmodule AdminAPI.ViewCase do
@moduledoc """
This module defines common behaviors shared between V1 view tests.
"""
use ExUnit.CaseTemplate
def v1 do
quote do
use ExUnit.Case
import EWalletDB.Factory
import Phoenix.View
alias Ecto.Adapters.SQL.Sandbox
alias EWalletDB.Repo
... | 20.142857 | 68 | 0.666667 |
74f9d95aaeefe80a6743508db80d7ab22c3e971e | 184 | ex | Elixir | lib/rube/tokens/token_store.ex | icecube11/rube | 5d813c5b9f7b984786ac7db6fd2eca0939bf5468 | [
"MIT"
] | 22 | 2021-06-23T06:25:41.000Z | 2022-02-16T19:08:33.000Z | lib/rube/tokens/token_store.ex | icecube11/rube | 5d813c5b9f7b984786ac7db6fd2eca0939bf5468 | [
"MIT"
] | 16 | 2021-06-21T17:02:13.000Z | 2022-03-21T15:04:14.000Z | lib/rube/tokens/token_store.ex | icecube11/rube | 5d813c5b9f7b984786ac7db6fd2eca0939bf5468 | [
"MIT"
] | 2 | 2021-06-23T13:40:52.000Z | 2021-09-17T07:25:34.000Z | defmodule Rube.Tokens.TokenStore do
use Stored.Store
def after_put(token) do
Phoenix.PubSub.broadcast(Slurpee.PubSub, "after_put_token", {"after_put_token", token})
end
end
| 23 | 91 | 0.76087 |
74f9e5fc46b837084940440d1ea9709db3b4815a | 351 | ex | Elixir | web/views/skill_category_view.ex | ClubNix/academy | 962be0defc1d8eedc5d19ac0a65e931c794c6538 | [
"MIT"
] | 3 | 2016-06-18T17:46:14.000Z | 2020-01-21T03:19:41.000Z | web/views/skill_category_view.ex | ClubNix/academy | 962be0defc1d8eedc5d19ac0a65e931c794c6538 | [
"MIT"
] | 18 | 2016-06-18T18:05:43.000Z | 2018-03-06T08:19:41.000Z | web/views/skill_category_view.ex | ClubNix/academy | 962be0defc1d8eedc5d19ac0a65e931c794c6538 | [
"MIT"
] | 3 | 2016-10-26T19:51:06.000Z | 2018-09-18T09:06:14.000Z | defmodule Academy.SkillCategoryView do
@moduledoc ~S"""
Module used to render skill categories related pages.
"""
use Academy.Web, :view
@doc ~S"""
Get the name of the given category, or "No category" if it is nil.
"""
def name(category) do
case category do
nil -> "No category"
_ -> ca... | 18.473684 | 68 | 0.643875 |
74fa2815aa6a408a4d749ffa2845a020d0ae7762 | 158 | exs | Elixir | test/test_helper.exs | Gronex/wishlist_manager | be240ebc85a737f31bd64bc913a2c3716827fd26 | [
"MIT"
] | null | null | null | test/test_helper.exs | Gronex/wishlist_manager | be240ebc85a737f31bd64bc913a2c3716827fd26 | [
"MIT"
] | 7 | 2015-12-30T19:43:10.000Z | 2016-01-04T14:38:38.000Z | test/test_helper.exs | Gronex/wishlist_manager | be240ebc85a737f31bd64bc913a2c3716827fd26 | [
"MIT"
] | null | null | null | ExUnit.start
Mix.Task.run "ecto.create", ["--quiet"]
Mix.Task.run "ecto.migrate", ["--quiet"]
Ecto.Adapters.SQL.begin_test_transaction(WishlistManager.Repo)
| 26.333333 | 62 | 0.746835 |
74fa3268e955081015d54d0bfc15446879c0da5d | 2,344 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/metadata.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/metadata.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/compute/lib/google_api/compute/v1/model/metadata.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... | 42.618182 | 467 | 0.731655 |
74fa5069bcbccbc28ae73495a35083ec4f740723 | 986 | ex | Elixir | apps/shopping_web/lib/shopping_web/live/items/edit_item_form_component.ex | paulanthonywilson/shopping | 11870c4d70b04fb139908793102ce3917d189275 | [
"MIT"
] | null | null | null | apps/shopping_web/lib/shopping_web/live/items/edit_item_form_component.ex | paulanthonywilson/shopping | 11870c4d70b04fb139908793102ce3917d189275 | [
"MIT"
] | null | null | null | apps/shopping_web/lib/shopping_web/live/items/edit_item_form_component.ex | paulanthonywilson/shopping | 11870c4d70b04fb139908793102ce3917d189275 | [
"MIT"
] | null | null | null | defmodule ShoppingWeb.EditItemFormComponent do
@moduledoc """
Just allows the category to be changed.
"""
use ShoppingWeb, :live_component
def render(assigns) do
~L"""
<form phx-change="update-item-category">
<div class="row"> <div class="column">
<label for="item-category-id">Category for <%... | 26.648649 | 107 | 0.603448 |
74fadf4a537e858b08515cd93980f3a860fa0fe9 | 278 | ex | Elixir | lib/phone/nanp/ca/bc.ex | net/phone | 18e1356d2f8d32fe3f95638c3c44bceab0164fb2 | [
"Apache-2.0"
] | null | null | null | lib/phone/nanp/ca/bc.ex | net/phone | 18e1356d2f8d32fe3f95638c3c44bceab0164fb2 | [
"Apache-2.0"
] | null | null | null | lib/phone/nanp/ca/bc.ex | net/phone | 18e1356d2f8d32fe3f95638c3c44bceab0164fb2 | [
"Apache-2.0"
] | null | null | null | defmodule Phone.NANP.CA.BC do
@moduledoc false
use Helper.Area
def regex, do: ~r/^(1)(604|778|236|250)([2-9].{6})$/
def area_name, do: "British Columbia"
def area_type, do: "province"
def area_abbreviation, do: "BC"
matcher ["1604", "1778", "1236", "1250"]
end
| 21.384615 | 54 | 0.643885 |
74fae7ef3e113f1d3c837998e0270315113f1331 | 3,410 | ex | Elixir | lib/tentacat/organizations/members.ex | nmohoric/tentacat | 3bbb9990aafad0a7232d302526ca00e282e7ba43 | [
"MIT"
] | null | null | null | lib/tentacat/organizations/members.ex | nmohoric/tentacat | 3bbb9990aafad0a7232d302526ca00e282e7ba43 | [
"MIT"
] | null | null | null | lib/tentacat/organizations/members.ex | nmohoric/tentacat | 3bbb9990aafad0a7232d302526ca00e282e7ba43 | [
"MIT"
] | null | null | null | defmodule Tentacat.Organizations.Members do
import Tentacat
alias Tentacat.Client
@doc """
List members of a `organization`. The response will differ if the authenticated user is also owner of the organization
## Example
Tentacat.Organizations.Members.list "github"
Tentacat.Organizations.Member... | 30.446429 | 120 | 0.705572 |
74faf297ecc1829bfdb9ab39a67f9d284ad19bd0 | 33,280 | ex | Elixir | lib/teslamate/vehicles/vehicle.ex | ryandimick/teslamate | 50f6b4ebc4a6e75ad1493bc5a5dc63619a1a3bae | [
"MIT"
] | 1 | 2019-10-14T20:49:45.000Z | 2019-10-14T20:49:45.000Z | lib/teslamate/vehicles/vehicle.ex | ryandimick/teslamate | 50f6b4ebc4a6e75ad1493bc5a5dc63619a1a3bae | [
"MIT"
] | null | null | null | lib/teslamate/vehicles/vehicle.ex | ryandimick/teslamate | 50f6b4ebc4a6e75ad1493bc5a5dc63619a1a3bae | [
"MIT"
] | 1 | 2019-10-09T18:17:32.000Z | 2019-10-09T18:17:32.000Z | defmodule TeslaMate.Vehicles.Vehicle do
use GenStateMachine
require Logger
alias __MODULE__.Summary
alias TeslaMate.{Vehicles, Api, Log, Locations, Settings, Convert}
alias TeslaMate.Settings.CarSettings
alias TeslaApi.Vehicle.State.{Climate, VehicleState, Drive, Charge, VehicleConfig}
alias TeslaApi.V... | 35.555556 | 100 | 0.646665 |
74fb0b9fd007129994c3a3bb2a15ecaa5ad268a3 | 116 | exs | Elixir | test/console_test.exs | nickveys/elixirconf-2016-nerves-console | ead47fe22ee41a48fdd1607a2d7e29b15c714a81 | [
"Unlicense"
] | null | null | null | test/console_test.exs | nickveys/elixirconf-2016-nerves-console | ead47fe22ee41a48fdd1607a2d7e29b15c714a81 | [
"Unlicense"
] | null | null | null | test/console_test.exs | nickveys/elixirconf-2016-nerves-console | ead47fe22ee41a48fdd1607a2d7e29b15c714a81 | [
"Unlicense"
] | null | null | null | defmodule ConsoleTest do
use ExUnit.Case
doctest Console
test "the truth" do
assert 1 + 1 == 2
end
end
| 12.888889 | 24 | 0.672414 |
74fb3841055ea6f4449348f4c405158cb2278c3c | 3,510 | ex | Elixir | clients/accelerated_mobile_page_url/lib/google_api/accelerated_mobile_page_url/v1/api/amp_urls.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/accelerated_mobile_page_url/lib/google_api/accelerated_mobile_page_url/v1/api/amp_urls.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/accelerated_mobile_page_url/lib/google_api/accelerated_mobile_page_url/v1/api/amp_urls.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"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... | 41.785714 | 179 | 0.700285 |
74fb3b224b93734f6d236c09dbea1e4273db1c28 | 1,475 | ex | Elixir | test/support/test_utils.ex | prihandi/ex_rlp | 064d0608c7fb70ba8605f36540a6dc7942d0e721 | [
"MIT"
] | 13 | 2017-08-06T17:08:08.000Z | 2018-10-08T21:59:23.000Z | test/support/test_utils.ex | prihandi/ex_rlp | 064d0608c7fb70ba8605f36540a6dc7942d0e721 | [
"MIT"
] | 6 | 2017-08-01T08:49:16.000Z | 2018-05-02T12:26:39.000Z | test/support/test_utils.ex | prihandi/ex_rlp | 064d0608c7fb70ba8605f36540a6dc7942d0e721 | [
"MIT"
] | 4 | 2017-08-06T17:26:01.000Z | 2018-05-13T10:37:19.000Z | defmodule ExRLP.TestUtils do
@moduledoc false
@tests_directory "test/support/ethereum_common_tests/RLPTests/"
def read_json_file(file_name) do
{:ok, body} = File.read(@tests_directory <> file_name)
Jason.decode!(body)
end
def normalize_data("#" <> number) do
{num, ""} = Integer.parse(number)
... | 27.830189 | 93 | 0.719322 |
74fb7cfd83c07c4d1dd88fe621cbb4741323cc01 | 3,078 | exs | Elixir | test/ja_serializer/content_type_negotiation_test.exs | AgilionApps/json_api_serializers | aa602d9a1f15017cb6a72008dcc50508eb9ed38e | [
"Apache-2.0"
] | 322 | 2016-11-18T22:58:17.000Z | 2022-01-18T15:07:24.000Z | test/ja_serializer/content_type_negotiation_test.exs | AgilionApps/json_api_serializers | aa602d9a1f15017cb6a72008dcc50508eb9ed38e | [
"Apache-2.0"
] | 150 | 2016-11-17T20:14:51.000Z | 2021-03-12T03:56:57.000Z | test/ja_serializer/content_type_negotiation_test.exs | AgilionApps/json_api_serializers | aa602d9a1f15017cb6a72008dcc50508eb9ed38e | [
"Apache-2.0"
] | 104 | 2016-11-17T18:02:36.000Z | 2021-04-06T09:52:16.000Z | defmodule JaSerializer.ContentTypeNegotiationTest do
use ExUnit.Case
use Plug.Test
defmodule ExamplePlug do
use Plug.Builder
plug(JaSerializer.ContentTypeNegotiation)
plug(:return)
def return(conn, _opts) do
send_resp(conn, 200, "success")
end
end
@valid "application/vnd.api+json"... | 27.981818 | 79 | 0.630929 |
74fb9c47b07470cbf0392286e00e55660767e2e7 | 4,716 | ex | Elixir | apps/omg_watcher_rpc/lib/web/controllers/fallback.ex | boolafish/elixir-omg | 46b568404972f6e4b4da3195d42d4fb622edb934 | [
"Apache-2.0"
] | null | null | null | apps/omg_watcher_rpc/lib/web/controllers/fallback.ex | boolafish/elixir-omg | 46b568404972f6e4b4da3195d42d4fb622edb934 | [
"Apache-2.0"
] | null | null | null | apps/omg_watcher_rpc/lib/web/controllers/fallback.ex | boolafish/elixir-omg | 46b568404972f6e4b4da3195d42d4fb622edb934 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019-2020 OmiseGO Pte Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 34.676471 | 107 | 0.687447 |
74fbb23e7e499a042ebfa4a06020f1267591fd30 | 5,754 | ex | Elixir | lib/goth/token.ex | DealPad/goth | 7eb2068331a98036d7779b524895e8f9495d73a7 | [
"MIT"
] | null | null | null | lib/goth/token.ex | DealPad/goth | 7eb2068331a98036d7779b524895e8f9495d73a7 | [
"MIT"
] | null | null | null | lib/goth/token.ex | DealPad/goth | 7eb2068331a98036d7779b524895e8f9495d73a7 | [
"MIT"
] | 1 | 2017-02-28T23:18:47.000Z | 2017-02-28T23:18:47.000Z | defmodule Goth.Token do
@moduledoc ~S"""
Interface for retrieving access tokens, from either the `Goth.TokenStore`
or the Google token API. The first request for a token will hit the API,
but subsequent requests will retrieve the token from Goth's token store.
Goth will automatically refresh access tokens in... | 35.518519 | 173 | 0.625478 |
74fbf25c1e9a251702d442a0676a608eb30dc197 | 1,057 | exs | Elixir | test/grizzly/zwave/commands/firmware_update_md_status_report_test.exs | jellybob/grizzly | 290bee04cb16acbb9dc996925f5c501697b7ac94 | [
"Apache-2.0"
] | 76 | 2019-09-04T16:56:58.000Z | 2022-03-29T06:54:36.000Z | test/grizzly/zwave/commands/firmware_update_md_status_report_test.exs | jellybob/grizzly | 290bee04cb16acbb9dc996925f5c501697b7ac94 | [
"Apache-2.0"
] | 124 | 2019-09-05T14:01:24.000Z | 2022-02-28T22:58:14.000Z | test/grizzly/zwave/commands/firmware_update_md_status_report_test.exs | jellybob/grizzly | 290bee04cb16acbb9dc996925f5c501697b7ac94 | [
"Apache-2.0"
] | 10 | 2019-10-23T19:25:45.000Z | 2021-11-17T13:21:20.000Z | defmodule Grizzly.ZWave.Commands.FirmwareUpdateMDStatusReportTest do
use ExUnit.Case, async: true
alias Grizzly.ZWave.Commands.FirmwareUpdateMDStatusReport
alias Grizzly.ZWave.Command
test "creates the command and validates params" do
{:ok, command} =
FirmwareUpdateMDStatusReport.new(status: :succes... | 35.233333 | 88 | 0.753075 |
74fc0b94a99ed4706882f614b7e11f1eee0a72e1 | 1,321 | ex | Elixir | kousa/lib/broth/message/_types/operator.ex | samyadel/dogehouse | c9daffbfe81a7488093b07f3f9a274a062dde801 | [
"MIT"
] | null | null | null | kousa/lib/broth/message/_types/operator.ex | samyadel/dogehouse | c9daffbfe81a7488093b07f3f9a274a062dde801 | [
"MIT"
] | null | null | null | kousa/lib/broth/message/_types/operator.ex | samyadel/dogehouse | c9daffbfe81a7488093b07f3f9a274a062dde801 | [
"MIT"
] | null | null | null | import EctoEnum
alias Broth.Message.User
alias Broth.Message.Room
alias Broth.Message.Chat
alias Broth.Message.Auth
alias Broth.Message.Misc
defenum(
Broth.Message.Types.Operator,
[
# user commands and casts: 0..63
{User.GetFollowing, 1},
{User.GetFollowers, 2},
{User.Follow, 3},
{User.Ban, 4}... | 23.589286 | 45 | 0.609387 |
74fc2f66f2213d202e795f82fb9187f21d9febd3 | 3,281 | ex | Elixir | clients/cloud_kms/lib/google_api/cloud_kms/v1/model/certificate.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/cloud_kms/lib/google_api/cloud_kms/v1/model/certificate.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/cloud_kms/lib/google_api/cloud_kms/v1/model/certificate.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... | 46.211268 | 164 | 0.692472 |
74fcc4e2169def3f7f391e23c955c89a9862bdc5 | 1,657 | ex | Elixir | lib/sms_blitz/adapters/itagg.ex | sysashi/sms_blitz | 9183fc231364c20b718d7c14351e15d9f7b0d6d5 | [
"MIT"
] | null | null | null | lib/sms_blitz/adapters/itagg.ex | sysashi/sms_blitz | 9183fc231364c20b718d7c14351e15d9f7b0d6d5 | [
"MIT"
] | null | null | null | lib/sms_blitz/adapters/itagg.ex | sysashi/sms_blitz | 9183fc231364c20b718d7c14351e15d9f7b0d6d5 | [
"MIT"
] | 1 | 2021-02-16T09:16:44.000Z | 2021-02-16T09:16:44.000Z | defmodule SmsBlitz.Adapters.Itagg do
@base_uri "https://secure.itagg.com/smsg/"
def authenticate({username, password, route}) do
%{
uri: Enum.join([@base_uri, "sms.mes"], "/"),
auth: [
usr: username,
pwd: password,
route: route
]
}
end
def send_sms(%{uri: uri... | 22.69863 | 142 | 0.558238 |
74fcdb19d53d215029261a3c8128ea0c3da14e37 | 9,689 | ex | Elixir | lib/glimesh/graphql/schema/channel_types.ex | Megami-Studios/glimesh.tv | 57dde3a328fabdcc3305be48ae1b82df27b83c9b | [
"MIT"
] | null | null | null | lib/glimesh/graphql/schema/channel_types.ex | Megami-Studios/glimesh.tv | 57dde3a328fabdcc3305be48ae1b82df27b83c9b | [
"MIT"
] | null | null | null | lib/glimesh/graphql/schema/channel_types.ex | Megami-Studios/glimesh.tv | 57dde3a328fabdcc3305be48ae1b82df27b83c9b | [
"MIT"
] | null | null | null | defmodule Glimesh.Schema.ChannelTypes do
@moduledoc false
use Absinthe.Schema.Notation
import Absinthe.Resolution.Helpers
import_types(Absinthe.Plug.Types)
alias Glimesh.Repo
alias Glimesh.Resolvers.ChannelResolver
alias Glimesh.Streams
input_object :stream_metadata_input do
field :ingest_server,... | 29.449848 | 92 | 0.684591 |
74fced512a333ed284efb8a95f4e393feb3a6cdb | 2,312 | ex | Elixir | lib/lights_out_web.ex | groig/lights_out | 10e0cd9b66b415a5ce9f4004f4b0428640c3c066 | [
"WTFPL"
] | 1 | 2021-10-09T13:31:57.000Z | 2021-10-09T13:31:57.000Z | lib/lights_out_web.ex | groig/lights_out | 10e0cd9b66b415a5ce9f4004f4b0428640c3c066 | [
"WTFPL"
] | null | null | null | lib/lights_out_web.ex | groig/lights_out | 10e0cd9b66b415a5ce9f4004f4b0428640c3c066 | [
"WTFPL"
] | null | null | null | defmodule LightsOutWeb do
@moduledoc """
The entrypoint for defining your web interface, such
as controllers, views, channels and so on.
This can be used in your application as:
use LightsOutWeb, :controller
use LightsOutWeb, :view
The definitions below will be executed for every view,
contro... | 22.666667 | 81 | 0.682093 |
74fd098a8567b9a2b9c277bd3038ab030c5de5de | 434 | ex | Elixir | lib/near_api/rpc/gas.ex | alexfilatov/near_api | 85d92f0ad4fae3a1135adba6a48a1c284870bed8 | [
"MIT"
] | 7 | 2021-12-27T19:02:30.000Z | 2022-03-30T14:08:46.000Z | lib/near_api/rpc/gas.ex | alexfilatov/near_api | 85d92f0ad4fae3a1135adba6a48a1c284870bed8 | [
"MIT"
] | 4 | 2021-12-29T21:16:02.000Z | 2022-01-01T22:07:17.000Z | lib/near_api/rpc/gas.ex | alexfilatov/near_api | 85d92f0ad4fae3a1135adba6a48a1c284870bed8 | [
"MIT"
] | 1 | 2022-02-21T18:17:36.000Z | 2022-02-21T18:17:36.000Z | defmodule NearApi.RPC.Gas do
@moduledoc """
NEAR RPC - Gas API
"""
import NearApi.Helpers, only: [api_call_method: 2]
@doc """
Returns gas price for a specific block_height or block_hash.
Using [nil] will return the most recent block's gas price.
"""
@spec gas_price(block_id :: any) :: {:ok, body ::... | 28.933333 | 81 | 0.679724 |
74fd49601341b44b8341039a50c7ad1ded8a586c | 181 | exs | Elixir | test/gruf_test.exs | verrchu/gruf | dc70f09c82418aac02d3fe742098ef69b47cc59f | [
"MIT"
] | null | null | null | test/gruf_test.exs | verrchu/gruf | dc70f09c82418aac02d3fe742098ef69b47cc59f | [
"MIT"
] | null | null | null | test/gruf_test.exs | verrchu/gruf | dc70f09c82418aac02d3fe742098ef69b47cc59f | [
"MIT"
] | null | null | null | defmodule GrufTest do
use ExUnit.Case
use PropCheck
property "always works" do
forall type <- term() do
boolean(type)
end
end
def boolean(_), do: true
end
| 13.923077 | 28 | 0.651934 |
74fd679b8962630d8c99da17127b8cd540bc7a1b | 5,135 | exs | Elixir | test/components/markdown_test.exs | adrianomitre/surface | 08ca850b1114ebbdda03294da181dea7d4b0d9b7 | [
"MIT"
] | null | null | null | test/components/markdown_test.exs | adrianomitre/surface | 08ca850b1114ebbdda03294da181dea7d4b0d9b7 | [
"MIT"
] | null | null | null | test/components/markdown_test.exs | adrianomitre/surface | 08ca850b1114ebbdda03294da181dea7d4b0d9b7 | [
"MIT"
] | null | null | null | defmodule Surface.Components.MarkdownTest do
use ExUnit.Case, async: true
import Surface
import ComponentTestHelper
alias Surface.Components.Markdown
test "translate markdown into HTML" do
assigns = %{}
code = ~H"""
<#Markdown>
# Head 1
Bold: **bold**
Code: `code`
</#Markd... | 21.758475 | 98 | 0.477313 |
74fd6a2383752cf82e40ced6e4319e71ea624b75 | 2,010 | ex | Elixir | clients/document_ai/lib/google_api/document_ai/v1beta3/model/google_cloud_documentai_v1beta3_batch_process_request_batch_input_config.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/document_ai/lib/google_api/document_ai/v1beta3/model/google_cloud_documentai_v1beta3_batch_process_request_batch_input_config.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/document_ai/lib/google_api/document_ai/v1beta3/model/google_cloud_documentai_v1beta3_batch_process_request_batch_input_config.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... | 35.263158 | 257 | 0.745274 |
74fdbec6a868a2d6f4e73a5c5471acb6ef01c501 | 1,557 | exs | Elixir | mix.exs | blindingnoises/tikt | eca3ff1f641ce94b84f870c141f46e977f35b670 | [
"BSD-3-Clause"
] | null | null | null | mix.exs | blindingnoises/tikt | eca3ff1f641ce94b84f870c141f46e977f35b670 | [
"BSD-3-Clause"
] | null | null | null | mix.exs | blindingnoises/tikt | eca3ff1f641ce94b84f870c141f46e977f35b670 | [
"BSD-3-Clause"
] | null | null | null | defmodule Tikt.Mixfile do
use Mix.Project
def project do
[app: :tikt,
version: "0.0.1",
elixir: "~> 1.0",
elixirc_paths: elixirc_paths(Mix.env),
compilers: [:phoenix, :gettext] ++ Mix.compilers,
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
aliases: ali... | 28.833333 | 78 | 0.599872 |
74fdce68b8d9ad1b332d2e57bd95d577991eb76d | 5,234 | ex | Elixir | lib/shopify_api/throttled.ex | ProtoJazz/elixir-shopifyapi | 759e20baff5afdff235386193bc42b2ecd343f5d | [
"Apache-2.0"
] | 18 | 2019-06-07T13:36:39.000Z | 2021-08-03T21:06:36.000Z | lib/shopify_api/throttled.ex | ProtoJazz/elixir-shopifyapi | 759e20baff5afdff235386193bc42b2ecd343f5d | [
"Apache-2.0"
] | 158 | 2018-08-30T22:09:00.000Z | 2021-09-22T01:18:59.000Z | lib/shopify_api/throttled.ex | ProtoJazz/elixir-shopifyapi | 759e20baff5afdff235386193bc42b2ecd343f5d | [
"Apache-2.0"
] | 4 | 2020-09-05T00:48:46.000Z | 2020-09-30T15:53:50.000Z | defmodule ShopifyAPI.Throttled do
@moduledoc """
A wrapper for requests against Shopify's API, implementing request throttling.
For more information on Shopify's REST API Rate Limiting:
https://help.shopify.com/en/api/reference/rest-admin-api-rate-limits
Request "buckets" are identified based on the provide... | 28.601093 | 98 | 0.654184 |
74fde35c3e5c6626073696df14b7819aad76d225 | 2,632 | exs | Elixir | test/credo/code/heredocs_test.exs | isaacsanders/credo | 5623570bb2e3944345f1bf11819ca613533b5e10 | [
"MIT"
] | null | null | null | test/credo/code/heredocs_test.exs | isaacsanders/credo | 5623570bb2e3944345f1bf11819ca613533b5e10 | [
"MIT"
] | null | null | null | test/credo/code/heredocs_test.exs | isaacsanders/credo | 5623570bb2e3944345f1bf11819ca613533b5e10 | [
"MIT"
] | 1 | 2020-06-30T16:32:44.000Z | 2020-06-30T16:32:44.000Z | defmodule Credo.Code.HeredocsTest do
use Credo.TestHelper
alias Credo.Code.Heredocs
test "it should return the source without string literals 2" do
source = """
@moduledoc \"\"\"
this is an example # TODO: and this is no actual comment
\"\"\"
x = ~s{also: # TODO: no comment here}
?" # T... | 22.305085 | 110 | 0.506459 |
74fde3e30348406be5fdce83d6e76692cb4d3634 | 6,583 | exs | Elixir | apps/subs/test/domain/notification_template_test.exs | gitter-badger/opensubs.io | 76d5b4d355a530c8f496efe3ac2095d87f078997 | [
"MIT"
] | 36 | 2018-02-03T10:58:51.000Z | 2020-09-19T20:52:17.000Z | apps/subs/test/domain/notification_template_test.exs | joaquimadraz/subs | 9a26144ed660d5ece849ee447a9e5de53a311408 | [
"MIT"
] | 8 | 2018-01-17T17:15:48.000Z | 2020-07-06T08:56:54.000Z | apps/subs/test/domain/notification_template_test.exs | joaquimadraz/subs | 9a26144ed660d5ece849ee447a9e5de53a311408 | [
"MIT"
] | 10 | 2018-05-21T18:20:32.000Z | 2022-01-29T14:25:48.000Z | defmodule Subs.Test.Domain.NotificationTemplateTest do
use Subs.DataCase
import Subs.Test.Support.Factory
alias Subs.Domain.NotificationTemplate
describe "Daily notification" do
test "one monthly subscription for daily notification" do
user = insert(:user)
subscriptions = [
build(
... | 20.964968 | 74 | 0.551876 |
74fde600dae79fe4b0dfafcebed2d8ff2c9bfd46 | 51 | exs | Elixir | template/$PROJECT_NAME$/.iex.exs | aforward/gen_template_ecto_service | 02d2cf88e4ba75dc68bedc604f8e31a3c67bcacb | [
"Apache-2.0"
] | 3 | 2017-08-18T15:08:43.000Z | 2022-01-03T23:53:42.000Z | template/$PROJECT_NAME$/.iex.exs | aforward/gen_template_ecto_service | 02d2cf88e4ba75dc68bedc604f8e31a3c67bcacb | [
"Apache-2.0"
] | 1 | 2019-01-03T07:49:54.000Z | 2019-01-03T07:49:54.000Z | template/$PROJECT_NAME$/.iex.exs | aforward/gen_template_ecto_service | 02d2cf88e4ba75dc68bedc604f8e31a3c67bcacb | [
"Apache-2.0"
] | 2 | 2017-09-19T00:27:55.000Z | 2019-10-23T03:05:11.000Z | alias <%= @project_name_camel_case %>.{Action,Repo} | 51 | 51 | 0.745098 |
74fe281448c6ebba7f63a41a9d56401193ee21e2 | 252 | exs | Elixir | priv/repo/migrations/20211030120848_store_slugs.exs | bitpal/bitpal | 0e10eeaacf7a65b23945cfb95e4dbda8bffd4590 | [
"BSD-3-Clause-Clear"
] | 5 | 2021-05-04T21:28:00.000Z | 2021-12-01T11:19:48.000Z | priv/repo/migrations/20211030120848_store_slugs.exs | bitpal/bitpal | 0e10eeaacf7a65b23945cfb95e4dbda8bffd4590 | [
"BSD-3-Clause-Clear"
] | 71 | 2021-04-21T05:48:49.000Z | 2022-03-23T06:30:37.000Z | priv/repo/migrations/20211030120848_store_slugs.exs | bitpal/bitpal | 0e10eeaacf7a65b23945cfb95e4dbda8bffd4590 | [
"BSD-3-Clause-Clear"
] | 1 | 2021-04-25T10:35:41.000Z | 2021-04-25T10:35:41.000Z | defmodule BitPal.Repo.Migrations.StoreSlugs do
use Ecto.Migration
def change do
alter table(:stores) do
modify :label, :string, null: false
add :slug, :string, null: false
end
create unique_index(:stores, :slug)
end
end
| 19.384615 | 46 | 0.678571 |
74fe5390c9ae6aa473458f67b6716814909ea313 | 1,871 | exs | Elixir | mix.exs | kianmeng/miss-elixir | 46ea760212bcec80957ff7a8951d64c4bd2fc5e2 | [
"Apache-2.0"
] | null | null | null | mix.exs | kianmeng/miss-elixir | 46ea760212bcec80957ff7a8951d64c4bd2fc5e2 | [
"Apache-2.0"
] | null | null | null | mix.exs | kianmeng/miss-elixir | 46ea760212bcec80957ff7a8951d64c4bd2fc5e2 | [
"Apache-2.0"
] | null | null | null | defmodule Miss.MixProject do
use Mix.Project
@app :miss
@name "Miss Elixir"
@repo "https://github.com/prodis/miss-elixir"
@version "0.1.0"
def project do
[
app: @app,
name: @name,
version: @version,
elixir: "~> 1.10",
start_permanent: Mix.env() == :prod,
deps: deps(... | 21.755814 | 95 | 0.56868 |
74fe76af1b936351f643375fff5bc84101c35f45 | 1,863 | ex | Elixir | lib/club_backend_web.ex | ufosc/club-backend-ex | 87b55bc9fcccd9d458ee3277c3153f608f3a8a5e | [
"MIT"
] | null | null | null | lib/club_backend_web.ex | ufosc/club-backend-ex | 87b55bc9fcccd9d458ee3277c3153f608f3a8a5e | [
"MIT"
] | 6 | 2020-07-31T23:02:34.000Z | 2021-02-26T21:10:10.000Z | lib/club_backend_web.ex | ufosc/club-backend-ex | 87b55bc9fcccd9d458ee3277c3153f608f3a8a5e | [
"MIT"
] | 2 | 2020-08-23T23:04:00.000Z | 2020-10-03T03:18:11.000Z | defmodule ClubBackendWeb do
@moduledoc """
The entrypoint for defining your web interface, such
as controllers, views, channels and so on.
This can be used in your application as:
use ClubBackendWeb, :controller
use ClubBackendWeb, :view
The definitions below will be executed for every view,
... | 23.582278 | 76 | 0.696189 |
74fe85698208a38580f602b0213a943ab84a86a5 | 4,311 | exs | Elixir | test/bson/decimal128_test.exs | IgorPolyakov/mongodb | 8ffce5761590d608ab64b1eccfa9e21426cd38c5 | [
"Apache-2.0"
] | 286 | 2017-06-06T04:21:31.000Z | 2021-09-11T16:37:59.000Z | test/bson/decimal128_test.exs | IgorPolyakov/mongodb | 8ffce5761590d608ab64b1eccfa9e21426cd38c5 | [
"Apache-2.0"
] | 202 | 2017-05-28T13:22:01.000Z | 2020-05-15T20:15:51.000Z | test/bson/decimal128_test.exs | IgorPolyakov/mongodb | 8ffce5761590d608ab64b1eccfa9e21426cd38c5 | [
"Apache-2.0"
] | 120 | 2016-12-16T17:05:12.000Z | 2020-05-15T16:20:17.000Z | defmodule BSON.Decimal128Test do
use ExUnit.Case, async: true
@nan_binaries <<00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 124>>
@inf_binaries <<00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 120>>
@neg_inf_binaries <<00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 248>>... | 42.683168 | 98 | 0.649965 |
74fe9f886e4d750df03a486740b88f4095c4a31f | 3,563 | ex | Elixir | clients/games/lib/google_api/games/v1/api/stats.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/games/lib/google_api/games/v1/api/stats.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/games/lib/google_api/games/v1/api/stats.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... | 41.917647 | 196 | 0.646927 |
74fef7720b48b5971dd0b83e250b3823a1d6c30e | 1,950 | exs | Elixir | test/blanks_test.exs | Imtiyaaz1234/elixir-koans | e1a8a55e3acbb88bb598becf3f40cb52f912e60a | [
"MIT"
] | 1,944 | 2016-04-24T02:46:10.000Z | 2022-03-29T00:19:17.000Z | test/blanks_test.exs | Imtiyaaz1234/elixir-koans | e1a8a55e3acbb88bb598becf3f40cb52f912e60a | [
"MIT"
] | 157 | 2016-04-23T18:40:24.000Z | 2022-02-10T14:00:45.000Z | test/blanks_test.exs | Imtiyaaz1234/elixir-koans | e1a8a55e3acbb88bb598becf3f40cb52f912e60a | [
"MIT"
] | 636 | 2016-04-23T17:18:00.000Z | 2022-03-23T10:04:06.000Z | defmodule BlanksTest do
use ExUnit.Case, async: true
test "simple replacement" do
ast = quote do: 1 + ___
assert Blanks.replace(ast, 37) == quote(do: 1 + 37)
end
test "Work with multiple different replacements" do
[koan | _] = SampleKoan.all_koans()
assert :ok == apply(SampleKoan, koan, [{:mu... | 21.666667 | 81 | 0.616923 |
74fefe80981428fb15986601e588754b8b60709b | 6,409 | exs | Elixir | test/pow_assent/phoenix/controllers/registration_controller_test.exs | mitkins/pow_assent | 2c7e473e894824c80954e49263c154f40d330059 | [
"MIT"
] | null | null | null | test/pow_assent/phoenix/controllers/registration_controller_test.exs | mitkins/pow_assent | 2c7e473e894824c80954e49263c154f40d330059 | [
"MIT"
] | null | null | null | test/pow_assent/phoenix/controllers/registration_controller_test.exs | mitkins/pow_assent | 2c7e473e894824c80954e49263c154f40d330059 | [
"MIT"
] | null | null | null | defmodule PowAssent.Phoenix.RegistrationControllerTest do
use PowAssent.Test.Phoenix.ConnCase
@provider "test_provider"
@token_params %{"access_token" => "access_token"}
@user_identity_params %{"provider" => @provider, "uid" => "new_user", "token" => @token_params}
@user_params %{"name" => "John Doe", "email... | 43.598639 | 183 | 0.660165 |
74ff68319748470661518bdf684fd1c14df0ca3a | 325 | exs | Elixir | add-length/test/marker_test.exs | crsanti/codewars-elixir | 7e7d9bceea5db8b965ecc1e17be52bc2aeafa4f0 | [
"MIT"
] | 2 | 2021-08-18T11:31:31.000Z | 2021-08-24T00:25:08.000Z | add-length/test/marker_test.exs | crsanti/codewars-elixir | 7e7d9bceea5db8b965ecc1e17be52bc2aeafa4f0 | [
"MIT"
] | null | null | null | add-length/test/marker_test.exs | crsanti/codewars-elixir | 7e7d9bceea5db8b965ecc1e17be52bc2aeafa4f0 | [
"MIT"
] | null | null | null | defmodule MarkerTest do
use ExUnit.Case
import Marker, only: [add_length: 1]
test "basic tests" do
assert add_length("apple ban") == ["apple 5", "ban 3"]
assert add_length("you will win") == ["you 3", "will 4", "win 3"]
assert add_length("you") == ["you 3"]
assert add_length("y") == ["y 1"]
end... | 27.083333 | 69 | 0.609231 |
74ffa866347757a6bb7f8e4193119aaea517b967 | 147 | exs | Elixir | test/suffix_tree_test.exs | dustypomerleau/suffix-tree | 77f61f93d3f1731312ee84e1406891321646f7ad | [
"MIT"
] | null | null | null | test/suffix_tree_test.exs | dustypomerleau/suffix-tree | 77f61f93d3f1731312ee84e1406891321646f7ad | [
"MIT"
] | null | null | null | test/suffix_tree_test.exs | dustypomerleau/suffix-tree | 77f61f93d3f1731312ee84e1406891321646f7ad | [
"MIT"
] | null | null | null | defmodule SuffixTreeTest do
use ExUnit.Case
doctest SuffixTree
test "greets the world" do
assert SuffixTree.hello() == :world
end
end
| 16.333333 | 39 | 0.727891 |
74ffd4386ff20e3d5d06a39b2a2acafee5a7f7d9 | 1,398 | exs | Elixir | test/ecto/query/builder/group_by_test.exs | photomattmills/ecto | ad3a455aa3d5e4f932a5bb8ae1590b21d95cce54 | [
"Apache-2.0"
] | null | null | null | test/ecto/query/builder/group_by_test.exs | photomattmills/ecto | ad3a455aa3d5e4f932a5bb8ae1590b21d95cce54 | [
"Apache-2.0"
] | null | null | null | test/ecto/query/builder/group_by_test.exs | photomattmills/ecto | ad3a455aa3d5e4f932a5bb8ae1590b21d95cce54 | [
"Apache-2.0"
] | null | null | null | defmodule Ecto.Query.Builder.GroupByTest do
use ExUnit.Case, async: true
import Ecto.Query.Builder.GroupBy
doctest Ecto.Query.Builder.GroupBy
import Ecto.Query
test "escape" do
assert {Macro.escape(quote do [&0.y] end), %{}} ==
escape(quote do x.y end, [x: 0], __ENV__)
assert {Macro.esc... | 30.391304 | 90 | 0.600858 |
2d00555b113f821b4d16302dd363070e1fd70075 | 10,044 | exs | Elixir | test/saxy/parser/prolog_test.exs | marcelotto/saxy | a942d8d2d3ff028294b667487b9251d690ca9364 | [
"MIT"
] | null | null | null | test/saxy/parser/prolog_test.exs | marcelotto/saxy | a942d8d2d3ff028294b667487b9251d690ca9364 | [
"MIT"
] | null | null | null | test/saxy/parser/prolog_test.exs | marcelotto/saxy | a942d8d2d3ff028294b667487b9251d690ca9364 | [
"MIT"
] | null | null | null | defmodule Saxy.Parser.PrologTest do
use SaxyTest.ParsingCase, async: true
import Saxy.Parser.Prolog, only: [parse: 5]
alias SaxyTest.ControlHandler
defmodule PrologHandler do
def handle_event(:start_document, prolog, _) do
{:stop, prolog}
end
end
describe "welformed prolog parsing" do
... | 30.253012 | 165 | 0.600259 |
2d0096c2f43aa9426028f032e5896b7d8df90ad4 | 233 | ex | Elixir | lib/binance/symbol_price.ex | dwarvesf/ex_binance | ed55e4b363c1cca54401b3b7d0e76c34e8797877 | [
"MIT"
] | 52 | 2018-01-16T23:38:06.000Z | 2022-02-14T11:05:47.000Z | lib/binance/symbol_price.ex | Cinderella-Man/binance.ex | 8735ed9582f8aebb947f766e53d2418060f69197 | [
"MIT"
] | 56 | 2018-02-24T15:10:29.000Z | 2022-03-28T19:05:41.000Z | lib/binance/symbol_price.ex | Cinderella-Man/binance.ex | 8735ed9582f8aebb947f766e53d2418060f69197 | [
"MIT"
] | 37 | 2018-01-20T14:56:56.000Z | 2022-03-03T20:18:30.000Z | defmodule Binance.SymbolPrice do
@moduledoc """
Struct for representing a result row as returned by /api/v1/ticker/allPrices
```
defstruct [:symbol, :price]
```
"""
defstruct [:symbol, :price]
use ExConstructor
end
| 17.923077 | 78 | 0.686695 |
2d00a9ad688464c57a08f00866e9a8b4c169cc6c | 78 | exs | Elixir | test/test_helper.exs | gedzubo/pagila_phoenix_api | c72063672a1b09c8d9bcc2814b03a4863a09a7b4 | [
"MIT"
] | null | null | null | test/test_helper.exs | gedzubo/pagila_phoenix_api | c72063672a1b09c8d9bcc2814b03a4863a09a7b4 | [
"MIT"
] | null | null | null | test/test_helper.exs | gedzubo/pagila_phoenix_api | c72063672a1b09c8d9bcc2814b03a4863a09a7b4 | [
"MIT"
] | null | null | null | ExUnit.start
Ecto.Adapters.SQL.Sandbox.mode(PagilaPhoenixApi.Repo, :manual)
| 15.6 | 62 | 0.807692 |
2d00bf4567dfa2c33638ffaa92e78f94303c5c8a | 785 | ex | Elixir | lib/ash/error/side_load/no_such_relationship.ex | elbow-jason/ash | eb63bc9d4d24187ad07d9892088b4e55ad6258e4 | [
"MIT"
] | 1 | 2021-12-27T09:43:29.000Z | 2021-12-27T09:43:29.000Z | lib/ash/error/side_load/no_such_relationship.ex | elbow-jason/ash | eb63bc9d4d24187ad07d9892088b4e55ad6258e4 | [
"MIT"
] | null | null | null | lib/ash/error/side_load/no_such_relationship.ex | elbow-jason/ash | eb63bc9d4d24187ad07d9892088b4e55ad6258e4 | [
"MIT"
] | null | null | null | defmodule Ash.Error.SideLoad.NoSuchRelationship do
@moduledoc "Used when attempting to side load a relationship that does not exist"
use Ash.Error
def_ash_error([:resource, :relationship, :side_load_path], class: :invalid)
defimpl Ash.ErrorKind do
def id(_), do: Ecto.UUID.generate()
def code(_), do: ... | 29.074074 | 101 | 0.676433 |
2d00c93487fac50f8fa865eb803a4ee8811c26a3 | 1,225 | exs | Elixir | mix.exs | dbackeus/raagtime-phoenix | 339bf9c3b8d24010b165cf418f583182b91176ca | [
"MIT"
] | null | null | null | mix.exs | dbackeus/raagtime-phoenix | 339bf9c3b8d24010b165cf418f583182b91176ca | [
"MIT"
] | null | null | null | mix.exs | dbackeus/raagtime-phoenix | 339bf9c3b8d24010b165cf418f583182b91176ca | [
"MIT"
] | null | null | null | defmodule Raagtime.Mixfile do
use Mix.Project
def project do
[app: :raagtime,
version: "0.0.1",
elixir: "~> 1.0",
elixirc_paths: elixirc_paths(Mix.env),
compilers: [:phoenix] ++ Mix.compilers,
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps]
... | 25 | 64 | 0.573061 |
2d00d89c37b6119af116321fca82513607458ec3 | 1,443 | ex | Elixir | test/support/factory.ex | ray-sh/cov_detect | b4e74b13850eff4a7c646a64fc7c28fbe700ad2e | [
"MIT"
] | 298 | 2017-06-05T14:28:23.000Z | 2022-03-30T16:53:44.000Z | test/support/factory.ex | ray-sh/cov_detect | b4e74b13850eff4a7c646a64fc7c28fbe700ad2e | [
"MIT"
] | 28 | 2017-07-21T01:06:47.000Z | 2021-03-07T12:32:56.000Z | test/support/factory.ex | ray-sh/cov_detect | b4e74b13850eff4a7c646a64fc7c28fbe700ad2e | [
"MIT"
] | 77 | 2017-08-14T20:12:03.000Z | 2021-12-08T22:24:59.000Z | defmodule Conduit.Factory do
use ExMachina
alias Conduit.Accounts.Commands.RegisterUser
alias Conduit.Blog.Commands.{
CommentOnArticle,
PublishArticle
}
alias Conduit.Blog.Events.ArticlePublished
def article_factory do
%{
article_uuid: UUID.uuid4(),
author_uuid: UUID.uuid4(),
... | 20.913043 | 50 | 0.647263 |
2d00fe3c752c54488564d8b99d2481185c11ebf5 | 180 | exs | Elixir | priv/repo/migrations/20171212105707_add_values_to_ico_currencies.exs | sitedata/sanbase2 | 8da5e44a343288fbc41b68668c6c80ae8547d557 | [
"MIT"
] | 81 | 2017-11-20T01:20:22.000Z | 2022-03-05T12:04:25.000Z | priv/repo/migrations/20171212105707_add_values_to_ico_currencies.exs | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | 359 | 2017-10-15T14:40:53.000Z | 2022-01-25T13:34:20.000Z | priv/repo/migrations/20171212105707_add_values_to_ico_currencies.exs | sitedata/sanbase2 | 8da5e44a343288fbc41b68668c6c80ae8547d557 | [
"MIT"
] | 16 | 2017-11-19T13:57:40.000Z | 2022-02-07T08:13:02.000Z | defmodule Sanbase.Repo.Migrations.AddValuesToIcoCurrency do
use Ecto.Migration
def change do
alter table(:ico_currencies) do
add(:value, :decimal)
end
end
end
| 18 | 59 | 0.727778 |
2d015dc781a21bfd80d1636aa4826d0ec6e9156d | 1,027 | ex | Elixir | test/support/conn_case.ex | twined/brando_instagram | ce15b02b4daddcc194971b1665bf9eaf172b0789 | [
"MIT"
] | 1 | 2020-01-13T23:43:55.000Z | 2020-01-13T23:43:55.000Z | test/support/conn_case.ex | twined/brando_instagram | ce15b02b4daddcc194971b1665bf9eaf172b0789 | [
"MIT"
] | 8 | 2016-06-12T15:18:56.000Z | 2018-11-15T12:11:22.000Z | test/support/conn_case.ex | twined/brando_instagram | ce15b02b4daddcc194971b1665bf9eaf172b0789 | [
"MIT"
] | null | null | null | defmodule BrandoInstagram.ConnCase do
@moduledoc """
This module defines the test case to be used by
tests that require setting up a connection.
Such tests rely on `Phoenix.ConnTest` and also
import other functionality to make it easier
to build and query models.
Finally, if the test case interacts with... | 27.756757 | 82 | 0.722493 |
2d016c07f73cf0b55770db2cdff2d56a96f96cb8 | 618 | exs | Elixir | mix.exs | clintgibler/kindle_clippings_parser | 86654721b7f12d11952b5e18364d67aef8805ce9 | [
"MIT"
] | null | null | null | mix.exs | clintgibler/kindle_clippings_parser | 86654721b7f12d11952b5e18364d67aef8805ce9 | [
"MIT"
] | null | null | null | mix.exs | clintgibler/kindle_clippings_parser | 86654721b7f12d11952b5e18364d67aef8805ce9 | [
"MIT"
] | null | null | null | defmodule KindleClippingsParser.Mixfile do
use Mix.Project
def project do
[app: :kindle_clippings_parser,
version: "0.0.1",
elixir: "~> 1.0",
deps: deps]
end
# Configuration for the OTP application
#
# Type `mix help compile.app` for more information
def application do
[applicatio... | 19.935484 | 77 | 0.626214 |
2d018dd8db82f73d5f011d4114490747b474d6aa | 1,370 | exs | Elixir | test/redirect_flow_test.exs | Capchase/gocardless | 5a3015c4614b8196aac627225691d4dc43dd661e | [
"MIT"
] | 5 | 2017-06-23T16:09:20.000Z | 2020-03-08T15:25:41.000Z | test/redirect_flow_test.exs | Capchase/gocardless | 5a3015c4614b8196aac627225691d4dc43dd661e | [
"MIT"
] | 9 | 2017-06-26T10:29:34.000Z | 2018-10-18T11:05:57.000Z | test/redirect_flow_test.exs | Capchase/gocardless | 5a3015c4614b8196aac627225691d4dc43dd661e | [
"MIT"
] | 2 | 2017-06-23T19:09:07.000Z | 2021-07-14T20:48:59.000Z | defmodule RedirectFlowTest do
use ExUnit.Case
test "create_redirect_flow/1 creates a new Redirect Flow" do
params = %{
creditors: %{name: "Test Creditor"}
}
{:ok, %{"creditors" => new_creditor}} = Gocardless.Client.create_creditor(params)
params = %{
redirect_flows: %{
session... | 29.782609 | 116 | 0.663504 |
2d01b3657288a614774b91a0999b32793f1c02cb | 91 | ex | Elixir | 06-chapter/01_example.ex | herminiotorres/programming-elixir | 70add5ec9fe7f91129da0a4e39ab329afb9be598 | [
"MIT"
] | null | null | null | 06-chapter/01_example.ex | herminiotorres/programming-elixir | 70add5ec9fe7f91129da0a4e39ab329afb9be598 | [
"MIT"
] | null | null | null | 06-chapter/01_example.ex | herminiotorres/programming-elixir | 70add5ec9fe7f91129da0a4e39ab329afb9be598 | [
"MIT"
] | null | null | null | defmodule Times do
def double(n) do
n * 2
end
end
Times.double(2) |> IO.inspect()
| 11.375 | 31 | 0.626374 |
2d01c4521600fd0ff7d107039f337614bd84028e | 134,390 | ex | Elixir | clients/app_engine/lib/google_api/app_engine/v1/api/apps.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/app_engine/lib/google_api/app_engine/v1/api/apps.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/app_engine/lib/google_api/app_engine/v1/api/apps.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... | 47.088297 | 2,818 | 0.615976 |
2d01f5f90ace1015517a0077bfd028eaf82c9e5c | 3,559 | ex | Elixir | lib/offer_hunters/offers/get.ex | Ryandls/offer_hunters-backend | abedff162d8623e2fbaa4c5e4a518f1726bef436 | [
"MIT"
] | 3 | 2021-10-01T21:13:02.000Z | 2021-11-05T22:25:55.000Z | lib/offer_hunters/offers/get.ex | Ryandls/offer_hunters-backend | abedff162d8623e2fbaa4c5e4a518f1726bef436 | [
"MIT"
] | null | null | null | lib/offer_hunters/offers/get.ex | Ryandls/offer_hunters-backend | abedff162d8623e2fbaa4c5e4a518f1726bef436 | [
"MIT"
] | null | null | null | defmodule OfferHunters.Offers.Get do
@moduledoc """
Get offers
"""
import Ecto.Query
alias OfferHunters.{Error, Offer, Repo}
@doc """
Recive the params for query and return a offers conating the terms of query
iex> OfferHunters.Offers.Get.by_query("RTX 3080")
{:ok,
[
%OfferHu... | 38.684783 | 174 | 0.593987 |
2d020c65e99bf8a1e87f1832b4186c287e8a7c05 | 1,046 | exs | Elixir | talks-articles/languages-n-runtimes/elixir/book--programming-elixir-ge-1.6/chapter-15/linked-proc.exs | abhishekkr/tutorials_as_code | f355dc62a5025b710ac6d4a6ac2f9610265fad54 | [
"MIT"
] | 37 | 2015-02-01T23:16:39.000Z | 2021-12-22T16:50:48.000Z | talks-articles/languages-n-runtimes/elixir/book--programming-elixir-ge-1.6/chapter-15/linked-proc.exs | abhishekkr/tutorials_as_code | f355dc62a5025b710ac6d4a6ac2f9610265fad54 | [
"MIT"
] | 1 | 2017-03-02T04:55:48.000Z | 2018-01-14T10:51:11.000Z | talks-articles/languages-n-runtimes/elixir/book--programming-elixir-ge-1.6/chapter-15/linked-proc.exs | abhishekkr/tutorials_as_code | f355dc62a5025b710ac6d4a6ac2f9610265fad54 | [
"MIT"
] | 15 | 2015-03-02T08:09:01.000Z | 2021-06-10T03:25:41.000Z | ## top level knows nothing
defmodule Link1 do
def sad_foo() do
:timer.sleep(500)
exit(:boom)
end
def run do
spawn(Link1, :sad_foo, [])
receive do
m -> IO.puts("someone said: #{m}")
after 1000 ->
IO.puts("nothing happened in time")
end
end
end
Link1.run
## linking 2 proc... | 16.603175 | 54 | 0.59847 |
2d0222a294c3b69279820787e152e872b533695e | 2,350 | ex | Elixir | clients/ad_exchange_seller/lib/google_api/ad_exchange_seller/v20/connection.ex | ericrwolfe/elixir-google-api | 3dc0f17edd5e2d6843580c16ddae3bf84b664ffd | [
"Apache-2.0"
] | null | null | null | clients/ad_exchange_seller/lib/google_api/ad_exchange_seller/v20/connection.ex | ericrwolfe/elixir-google-api | 3dc0f17edd5e2d6843580c16ddae3bf84b664ffd | [
"Apache-2.0"
] | null | null | null | clients/ad_exchange_seller/lib/google_api/ad_exchange_seller/v20/connection.ex | ericrwolfe/elixir-google-api | 3dc0f17edd5e2d6843580c16ddae3bf84b664ffd | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 27.325581 | 84 | 0.708936 |
2d02b7db1c1a46ff71e9582c262ea175f018482c | 4,132 | ex | Elixir | apps/ex_wire/lib/ex_wire/protocol.ex | wolflee/mana | db66dac85addfaad98d40da5bd4082b3a0198bb1 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 152 | 2018-10-27T04:52:03.000Z | 2022-03-26T10:34:00.000Z | apps/ex_wire/lib/ex_wire/protocol.ex | wolflee/mana | db66dac85addfaad98d40da5bd4082b3a0198bb1 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 270 | 2018-04-14T07:34:57.000Z | 2018-10-25T18:10:45.000Z | apps/ex_wire/lib/ex_wire/protocol.ex | wolflee/mana | db66dac85addfaad98d40da5bd4082b3a0198bb1 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 25 | 2018-10-27T12:15:13.000Z | 2022-01-25T20:31:14.000Z | defmodule ExWire.Protocol do
@moduledoc """
Functions to handle encoding and decoding messages for over the wire
transfer.
"""
alias ExWire.Crypto
alias ExWire.Message
@type mdc :: <<_::256>>
@type message_mdc :: <<_::64, _::_*8>>
@type signed_binary :: <<_::8, _::_*8>>
@doc """
Encodes a given ... | 39.730769 | 135 | 0.596079 |
2d02c764ab0ef58d64bb31793ad09ea19b18cd9d | 1,745 | ex | Elixir | clients/monitoring/lib/google_api/monitoring/v3/model/basic_authentication.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/monitoring/lib/google_api/monitoring/v3/model/basic_authentication.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/monitoring/lib/google_api/monitoring/v3/model/basic_authentication.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... | 34.215686 | 180 | 0.746705 |
2d02d14d61d12ab5de54910a875b112a72d6c50e | 2,292 | ex | Elixir | clients/service_user/lib/google_api/service_user/v1/model/documentation_rule.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/service_user/lib/google_api/service_user/v1/model/documentation_rule.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/service_user/lib/google_api/service_user/v1/model/documentation_rule.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... | 38.847458 | 145 | 0.717714 |
2d02d9c1a1947bff110aceee58e0dcb2f15fd9bf | 761 | exs | Elixir | config/config.exs | FreedomBen/bonny | e4584e5ec359477858eb0ac715d2044ffa8bdb53 | [
"MIT"
] | null | null | null | config/config.exs | FreedomBen/bonny | e4584e5ec359477858eb0ac715d2044ffa8bdb53 | [
"MIT"
] | null | null | null | config/config.exs | FreedomBen/bonny | e4584e5ec359477858eb0ac715d2044ffa8bdb53 | [
"MIT"
] | null | null | null | import Config
if Mix.env() == :test do
config :logger, level: :error
config :k8s,
discovery_driver: K8s.Discovery.Driver.File,
discovery_opts: [config: "test/support/discovery/tests.json"],
http_provider: K8s.Client.DynamicHTTPProvider
config :bonny,
controllers: [Widget, Cog],
group: "exam... | 21.742857 | 82 | 0.642576 |
2d02e8085bee8b1e4a080b2dc46ae803ec678e64 | 3,501 | ex | Elixir | lib/pipelinex.ex | PhillippOhlandt/pipelinex | f19238e082eeba4e05239c6fa1550af375928c19 | [
"MIT"
] | 6 | 2017-06-30T16:27:47.000Z | 2021-01-07T23:15:52.000Z | lib/pipelinex.ex | PhillippOhlandt/pipelinex | f19238e082eeba4e05239c6fa1550af375928c19 | [
"MIT"
] | null | null | null | lib/pipelinex.ex | PhillippOhlandt/pipelinex | f19238e082eeba4e05239c6fa1550af375928c19 | [
"MIT"
] | 1 | 2017-06-30T13:15:15.000Z | 2017-06-30T13:15:15.000Z | defmodule Pipelinex do
@moduledoc """
Pipelinex provides macros to build simple data pipelines that
can execute tasks and other pipelines in a defined order.
## Simple Example
Build simple pipelines using the `task` macro:
defmodule MyPipeline do
use Pipelinex
task "add 5", num do
... | 21.218182 | 85 | 0.568123 |
2d031da4592f221754a2eb88c3aef2c8f0f6ebf5 | 66 | ex | Elixir | lib/delivery_web/views/snippet_view.ex | Simon-Initiative/proving-ground | ab6ba03051e55edbaa09535f11d9192776c8d901 | [
"MIT"
] | null | null | null | lib/delivery_web/views/snippet_view.ex | Simon-Initiative/proving-ground | ab6ba03051e55edbaa09535f11d9192776c8d901 | [
"MIT"
] | 4 | 2021-03-01T20:51:23.000Z | 2021-09-20T21:37:12.000Z | lib/delivery_web/views/snippet_view.ex | Simon-Initiative/proving-ground | ab6ba03051e55edbaa09535f11d9192776c8d901 | [
"MIT"
] | null | null | null | defmodule DeliveryWeb.SnippetView do
use DeliveryWeb, :view
end
| 16.5 | 36 | 0.818182 |
2d0344a5ec729c68d43d2c71777df4963fc00a46 | 6,041 | exs | Elixir | test/acceptance/patch_test.exs | peillis/ash_json_api | f63ccacebc049eba8d37b8b58181fb46a4a0ea8c | [
"MIT"
] | 11 | 2020-09-21T22:03:42.000Z | 2022-02-02T23:48:11.000Z | test/acceptance/patch_test.exs | peillis/ash_json_api | f63ccacebc049eba8d37b8b58181fb46a4a0ea8c | [
"MIT"
] | 44 | 2020-05-02T04:37:42.000Z | 2021-06-25T14:38:44.000Z | test/acceptance/patch_test.exs | peillis/ash_json_api | f63ccacebc049eba8d37b8b58181fb46a4a0ea8c | [
"MIT"
] | 9 | 2020-08-25T20:23:34.000Z | 2022-02-14T04:40:10.000Z | defmodule Test.Acceptance.PatchTest do
use ExUnit.Case, async: true
defmodule Author do
use Ash.Resource,
data_layer: Ash.DataLayer.Ets,
extensions: [
AshJsonApi.Resource
]
ets do
private?(true)
end
json_api do
type("author")
routes do
base("/a... | 22.710526 | 99 | 0.51763 |
2d0363e27bad56291b2100f945409642c140f1f8 | 2,367 | ex | Elixir | clients/admin/lib/google_api/admin/reports_v1/model/nested_parameter.ex | MechimCook/elixir-google-api | 0240ede69ec77115076724d223f9d1f849ff1d6b | [
"Apache-2.0"
] | null | null | null | clients/admin/lib/google_api/admin/reports_v1/model/nested_parameter.ex | MechimCook/elixir-google-api | 0240ede69ec77115076724d223f9d1f849ff1d6b | [
"Apache-2.0"
] | null | null | null | clients/admin/lib/google_api/admin/reports_v1/model/nested_parameter.ex | MechimCook/elixir-google-api | 0240ede69ec77115076724d223f9d1f849ff1d6b | [
"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... | 35.863636 | 96 | 0.705534 |
2d0378e87e0951d22fe7924cf35d8abec69f776b | 2,001 | ex | Elixir | clients/docs/lib/google_api/docs/v1/model/suggested_bullet.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/docs/lib/google_api/docs/v1/model/suggested_bullet.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/docs/lib/google_api/docs/v1/model/suggested_bullet.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... | 37.055556 | 163 | 0.737631 |
2d03a9885633dc1a978b8c6c8723812d89bbb312 | 54,667 | ex | Elixir | lib/phoenix_live_view/test/live_view_test.ex | aymanosman/phoenix_live_view | c6f20b7f3d6a42ae9e4b8588152862a465b81a43 | [
"MIT"
] | null | null | null | lib/phoenix_live_view/test/live_view_test.ex | aymanosman/phoenix_live_view | c6f20b7f3d6a42ae9e4b8588152862a465b81a43 | [
"MIT"
] | null | null | null | lib/phoenix_live_view/test/live_view_test.ex | aymanosman/phoenix_live_view | c6f20b7f3d6a42ae9e4b8588152862a465b81a43 | [
"MIT"
] | null | null | null | defmodule Phoenix.LiveViewTest do
@moduledoc ~S'''
Conveniences for testing Phoenix LiveViews.
In LiveView tests, we interact with views via process
communication in substitution of a browser. Like a browser,
our test process receives messages about the rendered updates
from the view which can be asserted ... | 31.345757 | 98 | 0.650959 |
2d03bda0dc504d973ee7eadb3195ac03fca88a99 | 4,532 | ex | Elixir | clients/dlp/lib/google_api/dlp/v2/model/google_rpc_status.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/dlp/lib/google_api/dlp/v2/model/google_rpc_status.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/dlp/lib/google_api/dlp/v2/model/google_rpc_status.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... | 83.925926 | 2,549 | 0.755075 |
2d03c289424073242320d3598b108a9983074464 | 5,016 | exs | Elixir | spec/routemaster/fetcher_spec.exs | deliveroo/routemaster-client-ex | 059ee64a54bc65b731bce1f8474dc8d907eb05d0 | [
"MIT"
] | 2 | 2017-09-20T08:33:20.000Z | 2018-08-17T11:57:09.000Z | spec/routemaster/fetcher_spec.exs | deliveroo/routemaster-client-ex | 059ee64a54bc65b731bce1f8474dc8d907eb05d0 | [
"MIT"
] | 5 | 2017-09-25T21:48:48.000Z | 2018-02-26T09:06:01.000Z | spec/routemaster/fetcher_spec.exs | deliveroo/routemaster-client-ex | 059ee64a54bc65b731bce1f8474dc8d907eb05d0 | [
"MIT"
] | null | null | null | defmodule Routemaster.FetcherSpec do
use ESpec
import Routemaster.TestUtils
alias Routemaster.Fetcher
alias Routemaster.Cache
alias Plug.Conn
describe "get(url)" do
before_all do: clear_redis_test_db(Routemaster.Redis.cache())
before do
bypass = Bypass.open(port: 4567)
{:shared, bypa... | 27.712707 | 96 | 0.555622 |
2d03dff7f91c3b2f35a23327e7d5bebca625ce11 | 867 | ex | Elixir | lib/koans/01_equalities.ex | magusd/elixir-koans | 7a9a0bc3658a06339ec8ecd2e2d9569ca8cf3c79 | [
"MIT"
] | null | null | null | lib/koans/01_equalities.ex | magusd/elixir-koans | 7a9a0bc3658a06339ec8ecd2e2d9569ca8cf3c79 | [
"MIT"
] | null | null | null | lib/koans/01_equalities.ex | magusd/elixir-koans | 7a9a0bc3658a06339ec8ecd2e2d9569ca8cf3c79 | [
"MIT"
] | null | null | null | defmodule Equalities do
use Koans
@intro """
Welcome to the Elixir koans.
Let these be your first humble steps towards learning a new language.
The path laid in front of you is one of many.
"""
# Replace ___ with the answer to make the koan pass.
koan "We shall contemplate truth by testing reality, v... | 21.675 | 83 | 0.680507 |
2d03e56aa527737426c9361d9b9c35e3c80bd0ea | 1,755 | exs | Elixir | mix.exs | forest/surface_bootstrap | ca7a177dc71550bc46429ead250ab907ff4c6156 | [
"MIT"
] | 17 | 2021-02-18T20:10:52.000Z | 2021-12-30T14:41:00.000Z | mix.exs | forest/surface_bootstrap | ca7a177dc71550bc46429ead250ab907ff4c6156 | [
"MIT"
] | 9 | 2021-03-21T20:15:48.000Z | 2021-06-23T07:45:20.000Z | mix.exs | forest/surface_bootstrap | ca7a177dc71550bc46429ead250ab907ff4c6156 | [
"MIT"
] | 10 | 2021-03-21T20:10:37.000Z | 2021-12-28T00:06:06.000Z | defmodule SurfaceBootstrap.MixProject do
use Mix.Project
@source_url "https://github.com/surface-ui/surface_bootstrap"
@version "0.2.5"
def project do
[
app: :surface_bootstrap,
description: "A set of simple Surface components based on Bootstrap.",
version: @version,
elixir: "~> 1.... | 21.9375 | 76 | 0.547009 |
2d03f169c48388a3d5f16dbdd8dcb72cf849bfd2 | 4,379 | ex | Elixir | lib/glimesh_web/live/user_live/components/follow_button.ex | MemoryLeakDeath/glimesh.tv | 1462c4b939da899f5e3f67c3f28850025d59a10f | [
"MIT"
] | null | null | null | lib/glimesh_web/live/user_live/components/follow_button.ex | MemoryLeakDeath/glimesh.tv | 1462c4b939da899f5e3f67c3f28850025d59a10f | [
"MIT"
] | null | null | null | lib/glimesh_web/live/user_live/components/follow_button.ex | MemoryLeakDeath/glimesh.tv | 1462c4b939da899f5e3f67c3f28850025d59a10f | [
"MIT"
] | null | null | null | defmodule GlimeshWeb.UserLive.Components.FollowButton do
use GlimeshWeb, :live_view
alias Glimesh.AccountFollows
@impl true
def render(assigns) do
~H"""
<%= if @user do %>
<%= if @following do %>
<div class="btn-group" role="group">
<button
class="btn btn-primary fo... | 31.503597 | 110 | 0.574332 |
2d0410f74fdca9925daea8e9aec72784c75c924a | 495 | ex | Elixir | apps/ejoi_stats_web/lib/ejoi_stats_web/views/error_view.ex | vahansoft/ejoi-stats | f2faf5fce3324e1dd9980917f78b9bfa3d006380 | [
"MIT"
] | null | null | null | apps/ejoi_stats_web/lib/ejoi_stats_web/views/error_view.ex | vahansoft/ejoi-stats | f2faf5fce3324e1dd9980917f78b9bfa3d006380 | [
"MIT"
] | 2 | 2021-03-10T05:08:08.000Z | 2021-05-11T01:05:07.000Z | apps/ejoi_stats_web/lib/ejoi_stats_web/views/error_view.ex | vahansoft/ejoi-stats | f2faf5fce3324e1dd9980917f78b9bfa3d006380 | [
"MIT"
] | null | null | null | defmodule EjoiStatsWeb.ErrorView do
use EjoiStatsWeb, :view
# If you want to customize a particular status code
# for a certain format, you may uncomment below.
# def render("500.html", _assigns) do
# "Internal Server Error"
# end
# By default, Phoenix returns the status message from
# the template ... | 29.117647 | 61 | 0.737374 |
2d043f75b6a9e22183f53da7c47cb6f52d070c49 | 566 | exs | Elixir | aoc-2020/day3/mix.exs | danurna/elixir-playground | 6acb40e513d8ab324368b3ec5151b0a4fd88f849 | [
"MIT"
] | null | null | null | aoc-2020/day3/mix.exs | danurna/elixir-playground | 6acb40e513d8ab324368b3ec5151b0a4fd88f849 | [
"MIT"
] | null | null | null | aoc-2020/day3/mix.exs | danurna/elixir-playground | 6acb40e513d8ab324368b3ec5151b0a4fd88f849 | [
"MIT"
] | null | null | null | defmodule Day3.MixProject do
use Mix.Project
def project do
[
app: :day3,
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... | 19.517241 | 87 | 0.572438 |
2d046f8fcb7c3449129abe8964be61d154cab734 | 15,496 | exs | Elixir | test/credo/check/warning/unused_file_operation_test.exs | hrzndhrn/credo | 71a7b24a5ca8e7a48416e0cdfb42cf8a0fef9593 | [
"MIT"
] | 4,590 | 2015-09-28T06:01:43.000Z | 2022-03-29T08:48:57.000Z | test/credo/check/warning/unused_file_operation_test.exs | hrzndhrn/credo | 71a7b24a5ca8e7a48416e0cdfb42cf8a0fef9593 | [
"MIT"
] | 890 | 2015-11-16T21:07:07.000Z | 2022-03-29T08:52:07.000Z | test/credo/check/warning/unused_file_operation_test.exs | hrzndhrn/credo | 71a7b24a5ca8e7a48416e0cdfb42cf8a0fef9593 | [
"MIT"
] | 479 | 2015-11-17T19:42:40.000Z | 2022-03-29T00:09:21.000Z | defmodule Credo.Check.Warning.UnusedFileOperationTest do
use Credo.Test.Case
@described_check Credo.Check.Warning.UnusedFileOperation
test "it should NOT report expected code" do
"""
defmodule CredoSampleModule do
def some_function(parameter1, parameter2) do
File.read(parameter1) + paramet... | 25.740864 | 145 | 0.575374 |
2d047ec04288d085ff9352a8d2f285f16a32d388 | 2,050 | ex | Elixir | clients/content/lib/google_api/content/v2/model/unit_invoice_additional_charge.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/model/unit_invoice_additional_charge.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/model/unit_invoice_additional_charge.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... | 36.607143 | 142 | 0.730244 |
2d0492dc1af7868554443a0972ad59e627cd7fd4 | 625 | ex | Elixir | lib/faktory_worker/job_supervisor.ex | vitalsource/faktory_worker | 03633c0ddcd2752aa771afbe0757f6e03352254b | [
"MIT"
] | null | null | null | lib/faktory_worker/job_supervisor.ex | vitalsource/faktory_worker | 03633c0ddcd2752aa771afbe0757f6e03352254b | [
"MIT"
] | null | null | null | lib/faktory_worker/job_supervisor.ex | vitalsource/faktory_worker | 03633c0ddcd2752aa771afbe0757f6e03352254b | [
"MIT"
] | null | null | null | defmodule FaktoryWorker.JobSupervisor do
@moduledoc false
def child_spec(opts) do
name = format_supervisor_name(opts[:name])
%{
id: name,
start: {Task.Supervisor, :start_link, [[name: name]]}
}
end
def format_supervisor_name(name) when is_atom(name) do
:"#{name}_job_supervisor"
... | 22.321429 | 59 | 0.6416 |
2d049d624440a80bc067dd812c898731a0b392a0 | 125,906 | ex | Elixir | lib/nostrum/api.ex | gbottari/nostrum | 5d2470e7e8d54012731210f13747a0558aeb789f | [
"MIT"
] | null | null | null | lib/nostrum/api.ex | gbottari/nostrum | 5d2470e7e8d54012731210f13747a0558aeb789f | [
"MIT"
] | null | null | null | lib/nostrum/api.ex | gbottari/nostrum | 5d2470e7e8d54012731210f13747a0558aeb789f | [
"MIT"
] | null | null | null | defmodule Nostrum.Api do
@moduledoc ~S"""
Interface for Discord's rest API.
By default all methods in this module are ran synchronously. If you wish to
have async rest operations I recommend you execute these functions inside of a
task.
**Examples**
```Elixir
# Async Task
t = Task.async fn ->
No... | 33.637724 | 307 | 0.682454 |
2d04be488a8b7cd50ffee67ac39262d35d2ed29b | 9,022 | ex | Elixir | lib/month.ex | STUDITEMPS/jehovakel_ex_times | 093d4f96ed5bda345d6731a8ce30e9ab3eeb0e7b | [
"MIT"
] | null | null | null | lib/month.ex | STUDITEMPS/jehovakel_ex_times | 093d4f96ed5bda345d6731a8ce30e9ab3eeb0e7b | [
"MIT"
] | 6 | 2021-03-22T03:04:58.000Z | 2021-12-22T09:26:24.000Z | lib/month.ex | STUDITEMPS/jehovakel_ex_times | 093d4f96ed5bda345d6731a8ce30e9ab3eeb0e7b | [
"MIT"
] | 2 | 2021-06-28T06:45:36.000Z | 2021-07-05T09:27:42.000Z | defmodule Shared.Month do
defmodule InvalidMonthIndex do
defexception [:message]
end
if Code.ensure_loaded?(Jason.Encoder) do
@derive Jason.Encoder
end
@enforce_keys [:year, :month]
defstruct [:year, :month]
@type t :: %__MODULE__{
year: integer,
month: integer
}
... | 23.867725 | 97 | 0.626912 |
2d04f687b596519dce54ecbf8307caf607bbb498 | 1,991 | ex | Elixir | clients/private_ca/lib/google_api/private_ca/v1beta1/model/ca_options.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/private_ca/lib/google_api/private_ca/v1beta1/model/ca_options.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/private_ca/lib/google_api/private_ca/v1beta1/model/ca_options.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 39.82 | 376 | 0.737318 |
2d050d6d1c902c54799f7da3abfa877f5a93d604 | 973 | exs | Elixir | mix.exs | lpil/jot | d4d0b3852db54a7e5c201c8a68ffa7894b2f0d42 | [
"MIT"
] | 1 | 2016-08-20T14:41:55.000Z | 2016-08-20T14:41:55.000Z | mix.exs | lpil/jot | d4d0b3852db54a7e5c201c8a68ffa7894b2f0d42 | [
"MIT"
] | 26 | 2016-05-29T00:29:33.000Z | 2018-04-12T13:53:50.000Z | mix.exs | lpil/jot | d4d0b3852db54a7e5c201c8a68ffa7894b2f0d42 | [
"MIT"
] | null | null | null | defmodule Jot.Mixfile do
use Mix.Project
@version "0.0.1"
def project do
[
app: :jot,
version: @version,
elixir: "~> 1.0",
deps: deps,
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
consolidate_protocols: Mix.env != :test,
name: "Jot",
... | 22.113636 | 76 | 0.551901 |
2d052b0ef50326c3f2a6eb760bdf7c47fe38e73d | 384 | ex | Elixir | apps/tai/lib/tai/test_support/factories/failed_order_transition_factory.ex | ccamateur/tai | 41c4b3e09dafc77987fa3f6b300c15461d981e16 | [
"MIT"
] | 276 | 2018-01-16T06:36:06.000Z | 2021-03-20T21:48:01.000Z | apps/tai/lib/tai/test_support/factories/failed_order_transition_factory.ex | ccamateur/tai | 41c4b3e09dafc77987fa3f6b300c15461d981e16 | [
"MIT"
] | 73 | 2018-10-05T18:45:06.000Z | 2021-02-08T05:46:33.000Z | apps/tai/lib/tai/test_support/factories/failed_order_transition_factory.ex | ccamateur/tai | 41c4b3e09dafc77987fa3f6b300c15461d981e16 | [
"MIT"
] | 43 | 2018-06-09T09:54:51.000Z | 2021-03-07T07:35:17.000Z | defmodule Tai.TestSupport.Factories.FailedOrderTransitionFactory do
alias Tai.Orders.{FailedOrderTransition, OrderRepo}
def create_failed_order_transition(order_client_id, error, type) do
%FailedOrderTransition{}
|> FailedOrderTransition.changeset(%{
order_client_id: order_client_id,
error: err... | 27.428571 | 69 | 0.742188 |
2d05389ecd40a89faed7233f75c8ba559db3bc5c | 378 | exs | Elixir | test/name_web/controllers/random_name_controller_test.exs | joaothallis/name | 5f80182f3ad5954668f118ee8868dfdd1354e987 | [
"MIT"
] | 1 | 2021-08-13T14:18:10.000Z | 2021-08-13T14:18:10.000Z | test/name_web/controllers/random_name_controller_test.exs | joaothallis/name | 5f80182f3ad5954668f118ee8868dfdd1354e987 | [
"MIT"
] | 8 | 2021-08-12T23:46:04.000Z | 2021-08-18T19:08:12.000Z | test/name_web/controllers/random_name_controller_test.exs | joaothallis/name | 5f80182f3ad5954668f118ee8868dfdd1354e987 | [
"MIT"
] | 1 | 2021-08-15T02:07:19.000Z | 2021-08-15T02:07:19.000Z | defmodule NameWeb.RandomNameControllerTest do
use NameWeb.ConnCase, async: true
describe "show/2" do
test "Returns a random name", %{conn: conn} do
response = conn |> get(Routes.random_name_path(conn, :show)) |> json_response(200)
assert %{"data" => %{"random_name" => random_name}} = response
... | 29.076923 | 88 | 0.677249 |
2d053da22a3f39e5d3f81835e983112a83021513 | 1,310 | ex | Elixir | lib/phoenix/html.ex | wojtekmach/phoenix | a6b3bf301c7088b8824a39a165582dc85dfdd2a4 | [
"MIT"
] | null | null | null | lib/phoenix/html.ex | wojtekmach/phoenix | a6b3bf301c7088b8824a39a165582dc85dfdd2a4 | [
"MIT"
] | null | null | null | lib/phoenix/html.ex | wojtekmach/phoenix | a6b3bf301c7088b8824a39a165582dc85dfdd2a4 | [
"MIT"
] | null | null | null | defmodule Phoenix.HTML do
@moduledoc """
Conveniences for working HTML strings and templates.
When used, it imports this module and, in the future,
many other modules under the `Phoenix.HTML` namespace.
## HTML Safe
One of the main responsibilities of this module is to
provide convenience functions for... | 23.818182 | 70 | 0.643511 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.