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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
dad8c76c43bc11868d171f4dfe12cb9593d394d6 | 138 | exs | Elixir | priv/templates/admin.gen.resource/resource.exs | spunkedy/ex_admin | a576bead2a030f3dfe7abec0ff610809eb0db06f | [
"MIT"
] | 23 | 2018-04-10T07:45:48.000Z | 2019-12-31T01:11:07.000Z | priv/templates/admin.gen.resource/resource.exs | leonardzhou/ex_admin | c241e956503c548a472e3ee89751e64a16477638 | [
"MIT"
] | 115 | 2018-04-15T14:11:18.000Z | 2021-08-01T11:20:34.000Z | priv/templates/admin.gen.resource/resource.exs | leonardzhou/ex_admin | c241e956503c548a472e3ee89751e64a16477638 | [
"MIT"
] | 15 | 2018-10-04T19:09:00.000Z | 2020-06-25T16:02:30.000Z | defmodule <%= base %>Web.ExAdmin.<%= resource %> do
use ExAdmin.Register
register_resource <%= base %>.<%= resource %> do
end
end
| 17.25 | 51 | 0.637681 |
dad8c959446121d7e9ad7eb6b5c593a970a2bf3b | 566 | ex | Elixir | test/support/assertions/assertion.ex | jesseshieh/crit19 | 0bba407fea09afed72cbb90ca579ba34c537edef | [
"MIT"
] | null | null | null | test/support/assertions/assertion.ex | jesseshieh/crit19 | 0bba407fea09afed72cbb90ca579ba34c537edef | [
"MIT"
] | null | null | null | test/support/assertions/assertion.ex | jesseshieh/crit19 | 0bba407fea09afed72cbb90ca579ba34c537edef | [
"MIT"
] | null | null | null | defmodule Crit.Assertions.Assertion do
# Assertions about the behavior of assertions, whee.
import Crit.Assertions.Defchain
import ExUnit.Assertions
defchain assert_diagnostic(exception, message),
do: assert exception.message =~ message
def assertion_fails_with_diagnostic(messages, f) when is_list(... | 26.952381 | 77 | 0.768551 |
dad8e9d22c45e3cc6d007e7740aad1a59941261e | 2,934 | ex | Elixir | clients/sql_admin/lib/google_api/sql_admin/v1beta4/api/tiers.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | null | null | null | clients/sql_admin/lib/google_api/sql_admin/v1beta4/api/tiers.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | null | null | null | clients/sql_admin/lib/google_api/sql_admin/v1beta4/api/tiers.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"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... | 39.648649 | 170 | 0.701772 |
dad90929dab904d924a9437beb8c6dca4f49f238 | 2,402 | ex | Elixir | lib/ueberauth/strategy/flickr/oauth.ex | christopheradams/ueberauth_flickr | cd8fcf3a608945f691e2db05a558950e501566e7 | [
"MIT"
] | 1 | 2019-11-19T11:53:49.000Z | 2019-11-19T11:53:49.000Z | lib/ueberauth/strategy/flickr/oauth.ex | christopheradams/ueberauth_flickr | cd8fcf3a608945f691e2db05a558950e501566e7 | [
"MIT"
] | null | null | null | lib/ueberauth/strategy/flickr/oauth.ex | christopheradams/ueberauth_flickr | cd8fcf3a608945f691e2db05a558950e501566e7 | [
"MIT"
] | null | null | null | defmodule Ueberauth.Strategy.Flickr.OAuth do
@moduledoc """
OAuth1 for Flickr.
Add `consumer_key` and `consumer_secret` to your configuration:
config :ueberauth, Ueberauth.Strategy.Flickr.OAuth,
consumer_key: System.get_env("FLICKR_CONSUMER_KEY"),
consumer_secret: System.get_env("FLICKR_CO... | 20.886957 | 68 | 0.5995 |
dad9447abd1fd3ce7b1f5d355bcd7704606bd30e | 53 | ex | Elixir | installer/auth/web/views/page_view.ex | omotenko/phoenix_auth | a6b4a1be4a6aa6d4ca65a2ec5a08cce7b9d744bc | [
"MIT"
] | null | null | null | installer/auth/web/views/page_view.ex | omotenko/phoenix_auth | a6b4a1be4a6aa6d4ca65a2ec5a08cce7b9d744bc | [
"MIT"
] | null | null | null | installer/auth/web/views/page_view.ex | omotenko/phoenix_auth | a6b4a1be4a6aa6d4ca65a2ec5a08cce7b9d744bc | [
"MIT"
] | null | null | null | defmodule Auth.PageView do
use Auth.Web, :view
end
| 13.25 | 26 | 0.754717 |
dad9cff962ec67122ba66e1fec9257ca7f138686 | 31,965 | ex | Elixir | clients/recommender/lib/google_api/recommender/v1beta1/api/projects.ex | corp-momenti/elixir-google-api | fe1580e305789ab2ca0741791b8ffe924bd3240c | [
"Apache-2.0"
] | null | null | null | clients/recommender/lib/google_api/recommender/v1beta1/api/projects.ex | corp-momenti/elixir-google-api | fe1580e305789ab2ca0741791b8ffe924bd3240c | [
"Apache-2.0"
] | null | null | null | clients/recommender/lib/google_api/recommender/v1beta1/api/projects.ex | corp-momenti/elixir-google-api | fe1580e305789ab2ca0741791b8ffe924bd3240c | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 48.727134 | 738 | 0.642985 |
dad9e058169e5d3573d5dbe4aed1481fa207b80d | 1,456 | exs | Elixir | test/credo/plugin_test.exs | andersonmcook/credo | cea1ac63dc378316f5e6dd050165a00e5b20ca2f | [
"MIT"
] | null | null | null | test/credo/plugin_test.exs | andersonmcook/credo | cea1ac63dc378316f5e6dd050165a00e5b20ca2f | [
"MIT"
] | null | null | null | test/credo/plugin_test.exs | andersonmcook/credo | cea1ac63dc378316f5e6dd050165a00e5b20ca2f | [
"MIT"
] | 1 | 2021-07-05T19:04:48.000Z | 2021-07-05T19:04:48.000Z | defmodule Credo.PluginTest do
use Credo.Test.Case, async: false
alias Credo.Test.IntegrationTest
@integration_path "test/fixtures/example_plugin_integration"
alias Credo.Execution
Code.require_file("test/fixtures/example_plugin_integration/plugin/example_plugin.ex")
test "it should use ExamplePlugin's ... | 31.652174 | 88 | 0.721841 |
dad9ec85320b8b021a88b2c2d8069ec289b5e6eb | 130 | ex | Elixir | web/controllers/todo_controller.ex | diegoangel/todo-app-elixir | 7dc8d1734a6435f78a243dc621766f523177eea0 | [
"Apache-2.0"
] | null | null | null | web/controllers/todo_controller.ex | diegoangel/todo-app-elixir | 7dc8d1734a6435f78a243dc621766f523177eea0 | [
"Apache-2.0"
] | null | null | null | web/controllers/todo_controller.ex | diegoangel/todo-app-elixir | 7dc8d1734a6435f78a243dc621766f523177eea0 | [
"Apache-2.0"
] | null | null | null | defmodule Todo.TodoController do
use Todo.Web, :controller
def index(conn, _params) do
render conn, "index.html"
end
end | 14.444444 | 32 | 0.730769 |
dad9ed512cd6b9eb5cba7d33018b8cc26f0da223 | 5,209 | ex | Elixir | clients/games_management/lib/google_api/games_management/v1management/api/rooms.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/games_management/lib/google_api/games_management/v1management/api/rooms.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/games_management/lib/google_api/games_management/v1management/api/rooms.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... | 43.408333 | 187 | 0.661931 |
dada0fca0197b30c682c3c44e45af579bf58d7d4 | 406 | ex | Elixir | lib/mix/tasks/create_admin.ex | fletchermoore/cip | 5dd1c6f105d6a4c8c34a9e824cbad2fcf78a0655 | [
"Unlicense"
] | null | null | null | lib/mix/tasks/create_admin.ex | fletchermoore/cip | 5dd1c6f105d6a4c8c34a9e824cbad2fcf78a0655 | [
"Unlicense"
] | null | null | null | lib/mix/tasks/create_admin.ex | fletchermoore/cip | 5dd1c6f105d6a4c8c34a9e824cbad2fcf78a0655 | [
"Unlicense"
] | null | null | null | defmodule Mix.Tasks.CreateAdmin do
use Mix.Task
def run(_) do
Mix.Task.run "app.start", []
name = IO.gets("Enter an admin username: ") |> String.trim
pw = IO.gets("Enter an admin password: ") |> String.trim
Cip.Users.create_user %{
"email" => name,
"password_hash" => pw,
"is_adm... | 22.555556 | 62 | 0.596059 |
dada46c1e8dd9b1ee1e48e16b88aec26c3f39eeb | 1,605 | ex | Elixir | clients/connectors/lib/google_api/connectors/v1/model/lock_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/connectors/lib/google_api/connectors/v1/model/lock_config.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/connectors/lib/google_api/connectors/v1/model/lock_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... | 32.1 | 107 | 0.71838 |
dadac95e1a3234a32ea61079ce10564556e12281 | 2,337 | ex | Elixir | lib/mail_sniffex/size_watcher.ex | adrid/mailsniffex | 93a0cc8f96eb4786bd85dbebfb92f867e2ca3c3f | [
"MIT"
] | 3 | 2021-01-25T20:28:00.000Z | 2021-01-26T12:22:08.000Z | lib/mail_sniffex/size_watcher.ex | adrid/mailsniffex | 93a0cc8f96eb4786bd85dbebfb92f867e2ca3c3f | [
"MIT"
] | null | null | null | lib/mail_sniffex/size_watcher.ex | adrid/mailsniffex | 93a0cc8f96eb4786bd85dbebfb92f867e2ca3c3f | [
"MIT"
] | null | null | null | defmodule MailSniffex.SizeWatcher do
use GenStateMachine, callback_mode: [:handle_event_function]
@data_path Application.compile_env(:mail_sniffex, :data_path)
def init(_state) do
{:ok, :waiting, %{current_size: calculate_size(), update_expected: false}}
end
def start_link(_opts) do
GenStateMachine... | 32.458333 | 127 | 0.703466 |
dadad71856a0382763bc5b4724ecb4c0bd7901cd | 59 | ex | Elixir | lib/demo/repo.ex | austinschwartz/docker_frontend_demo | 5f6d0bb3db91db93d032b59cec95998bbb1935d8 | [
"MIT"
] | null | null | null | lib/demo/repo.ex | austinschwartz/docker_frontend_demo | 5f6d0bb3db91db93d032b59cec95998bbb1935d8 | [
"MIT"
] | null | null | null | lib/demo/repo.ex | austinschwartz/docker_frontend_demo | 5f6d0bb3db91db93d032b59cec95998bbb1935d8 | [
"MIT"
] | null | null | null | defmodule Demo.Repo do
use Ecto.Repo, otp_app: :demo
end
| 14.75 | 31 | 0.745763 |
dadad83814c3d3d3f4aa0d79212225cc30b48af6 | 1,758 | ex | Elixir | lib/google_apis.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | lib/google_apis.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | lib/google_apis.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.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 writing, ... | 29.3 | 78 | 0.73322 |
dadb0649158944801856d7107059027085e97477 | 6,732 | ex | Elixir | clients/secret_manager/lib/google_api/secret_manager/v1beta1/model/policy.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/secret_manager/lib/google_api/secret_manager/v1beta1/model/policy.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/secret_manager/lib/google_api/secret_manager/v1beta1/model/policy.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 42.607595 | 172 | 0.681967 |
dadb1b854fc60aa8a9390ce2675317466bfecf1d | 281 | exs | Elixir | priv/repo/migrations/20160403173722_add_company_id_to_trucks.exs | simwms/apiv4 | c3da7407eaf3580b759f49726028439b4b8ea9d0 | [
"MIT"
] | 2 | 2016-02-25T20:12:35.000Z | 2018-01-03T00:03:12.000Z | priv/repo/migrations/20160403173722_add_company_id_to_trucks.exs | simwms/apiv4 | c3da7407eaf3580b759f49726028439b4b8ea9d0 | [
"MIT"
] | 1 | 2016-01-11T04:50:39.000Z | 2016-01-12T05:00:08.000Z | priv/repo/migrations/20160403173722_add_company_id_to_trucks.exs | simwms/apiv4 | c3da7407eaf3580b759f49726028439b4b8ea9d0 | [
"MIT"
] | null | null | null | defmodule Apiv4.Repo.Migrations.AddCompanyIdToTrucks do
use Ecto.Migration
def change do
alter table(:trucks) do
add :company_id, references(:companies, on_delete: :nothing)
add :company_name, :string
end
create index(:trucks, [:company_id])
end
end
| 23.416667 | 66 | 0.711744 |
dadb1da8450a3b4cdcd3e7dc8a5b8c8de7a47e75 | 392 | exs | Elixir | priv/repo/migrations/20161019110737_create_donation_goal.exs | superdev999/Phoenix-project | ab13ac9366cdd0aa9581da7faf993b11aaa5344c | [
"MIT"
] | 275 | 2015-06-23T00:20:51.000Z | 2021-08-19T16:17:37.000Z | priv/repo/migrations/20161019110737_create_donation_goal.exs | superdev999/Phoenix-project | ab13ac9366cdd0aa9581da7faf993b11aaa5344c | [
"MIT"
] | 1,304 | 2015-06-26T02:11:54.000Z | 2019-12-12T21:08:00.000Z | priv/repo/migrations/20161019110737_create_donation_goal.exs | superdev999/Phoenix-project | ab13ac9366cdd0aa9581da7faf993b11aaa5344c | [
"MIT"
] | 140 | 2016-01-01T18:19:47.000Z | 2020-11-22T06:24:47.000Z | defmodule CodeCorps.Repo.Migrations.CreateDonationGoal do
use Ecto.Migration
def change do
create table(:donation_goals) do
add :amount, :integer
add :current, :boolean
add :description, :text
add :project_id, references(:projects)
add :title, :string, null: false
timestamp... | 21.777778 | 57 | 0.67602 |
dadb2b59331d1fda31de28438fbe06258e34e1ef | 2,392 | exs | Elixir | test/providers/assume_role_with_web_identity_test.exs | smanolloff/tesla-aws-signer | 8f5ce9f33c2e86049449a1f089674b27b0d7eea9 | [
"Apache-2.0"
] | null | null | null | test/providers/assume_role_with_web_identity_test.exs | smanolloff/tesla-aws-signer | 8f5ce9f33c2e86049449a1f089674b27b0d7eea9 | [
"Apache-2.0"
] | null | null | null | test/providers/assume_role_with_web_identity_test.exs | smanolloff/tesla-aws-signer | 8f5ce9f33c2e86049449a1f089674b27b0d7eea9 | [
"Apache-2.0"
] | null | null | null | defmodule AwsSigner.Providers.AssumeRoleWithWebIdentityTest do
use ExUnit.Case
alias AwsSigner.Providers.AssumeRoleWithWebIdentity
test "get_credentials/1" do
resp_body = """
<AssumeRoleWithWebIdentityResponse xmlns="https://sts.amazonaws.com/doc/2011-06-15/">
<AssumeRoleWithWebIdentityResult>
... | 39.213115 | 137 | 0.676421 |
dadb36bbbde5bc1600b5a6dd58eabab637ee284c | 4,393 | ex | Elixir | clients/policy_troubleshooter/lib/google_api/policy_troubleshooter/v1/model/google_iam_v1_binding.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/policy_troubleshooter/lib/google_api/policy_troubleshooter/v1/model/google_iam_v1_binding.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/policy_troubleshooter/lib/google_api/policy_troubleshooter/v1/model/google_iam_v1_binding.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... | 82.886792 | 1,972 | 0.759618 |
dadbaa901be72b1c24b7ea9c32474b506318cb8a | 3,420 | ex | Elixir | backend/lib/spades_game/deck.ex | mreishus/spades | 3e06fa5c2415ff43258ec4c231f8d6c49c683fe0 | [
"MIT"
] | 9 | 2019-10-28T08:48:50.000Z | 2021-03-05T09:44:46.000Z | backend/lib/spades_game/deck.ex | mreishus/spades | 3e06fa5c2415ff43258ec4c231f8d6c49c683fe0 | [
"MIT"
] | 227 | 2019-10-28T08:52:58.000Z | 2022-02-27T04:31:42.000Z | backend/lib/spades_game/deck.ex | mreishus/spades | 3e06fa5c2415ff43258ec4c231f8d6c49c683fe0 | [
"MIT"
] | 4 | 2020-04-18T19:38:37.000Z | 2021-08-02T19:43:03.000Z | defmodule SpadesGame.Deck do
@moduledoc """
Represents a list of playing cards.
"""
alias SpadesGame.{Deck, Card}
@type t :: [Card.t()]
@spec new_shuffled() :: Deck.t()
@doc """
new_shuffled/0: Returns a new deck with 52 cards, shuffled.
"""
def new_shuffled do
for rank <- Card.ranks(), suit <... | 25.909091 | 73 | 0.49269 |
dadbcd352081008f42002e7f12936c0802622334 | 104 | exs | Elixir | config/config.exs | StoiximanServices/ex_rabbitmq_rpc | 83adc49fe380e674bad0588618e33c776fd1fe6a | [
"MIT"
] | 6 | 2018-02-26T08:31:09.000Z | 2021-08-24T10:38:53.000Z | config/config.exs | StoiximanServices/ex_rabbitmq_rpc | 83adc49fe380e674bad0588618e33c776fd1fe6a | [
"MIT"
] | 2 | 2018-10-25T06:19:52.000Z | 2019-07-12T14:10:56.000Z | config/config.exs | StoiximanServices/ex_rabbitmq_rpc | 83adc49fe380e674bad0588618e33c776fd1fe6a | [
"MIT"
] | 6 | 2018-03-15T18:53:07.000Z | 2021-09-29T02:42:25.000Z | import Config
if File.exists?("#{__DIR__}/#{Mix.env()}.exs") do
import_config "#{Mix.env()}.exs"
end
| 17.333333 | 49 | 0.644231 |
dadbfb91ecbc49eb66d591e89705e71bb6ea9b0d | 1,051 | ex | Elixir | apps/definition_dictionary/lib/dictionary/type/timestamp.ex | kennyatpillar/hindsight | e90e2150a14218e5d6fdf5874f57eb055fd2dd07 | [
"Apache-2.0"
] | null | null | null | apps/definition_dictionary/lib/dictionary/type/timestamp.ex | kennyatpillar/hindsight | e90e2150a14218e5d6fdf5874f57eb055fd2dd07 | [
"Apache-2.0"
] | null | null | null | apps/definition_dictionary/lib/dictionary/type/timestamp.ex | kennyatpillar/hindsight | e90e2150a14218e5d6fdf5874f57eb055fd2dd07 | [
"Apache-2.0"
] | null | null | null | defmodule Dictionary.Type.Timestamp do
use Definition, schema: Dictionary.Type.Timestamp.V1
use Dictionary.JsonEncoder
defstruct version: 1,
name: nil,
description: "",
format: nil
defimpl Dictionary.Type.Normalizer, for: __MODULE__ do
@tokenizer Timex.Parse.DateTime.To... | 25.02381 | 84 | 0.646051 |
dadbff037a01e03ed7b104ab8fca13ae717db380 | 86 | exs | Elixir | test/views/page_view_test.exs | haruio/haru-elixir-api | 8a1762ac4f7f781fb806539cf07c850a418e3b3c | [
"MIT"
] | 2 | 2015-10-18T16:14:20.000Z | 2015-10-24T18:33:02.000Z | test/views/page_view_test.exs | haruio/haru-elixir-api | 8a1762ac4f7f781fb806539cf07c850a418e3b3c | [
"MIT"
] | null | null | null | test/views/page_view_test.exs | haruio/haru-elixir-api | 8a1762ac4f7f781fb806539cf07c850a418e3b3c | [
"MIT"
] | null | null | null | defmodule HaruElixirApi.PageViewTest do
use HaruElixirApi.ConnCase, async: true
end
| 21.5 | 41 | 0.837209 |
dadc078598f2f041a39e9c44af828c6a9183e5e5 | 494 | ex | Elixir | lib/esyslog/entry.ex | jbenden/esyslog | 7a65c134948490adb9f4b1a5020842bb81ca6a34 | [
"Apache-2.0"
] | 1 | 2019-09-19T12:54:50.000Z | 2019-09-19T12:54:50.000Z | lib/esyslog/entry.ex | jbenden/esyslog | 7a65c134948490adb9f4b1a5020842bb81ca6a34 | [
"Apache-2.0"
] | null | null | null | lib/esyslog/entry.ex | jbenden/esyslog | 7a65c134948490adb9f4b1a5020842bb81ca6a34 | [
"Apache-2.0"
] | null | null | null | defmodule Syslog.Entry do
@moduledoc """
Wraps a parsed Syslog Message in to each message component.
"""
@type t :: %__MODULE__{ip: tuple, port: integer, arrival_datetime: NaiveDateTime.t, priority: integer, facility: integer, severity: integer, datetime: NaiveDateTime.t, hostname: binary, process: binary, pid... | 54.888889 | 245 | 0.730769 |
dadc27a55f78963935d2b000436ec587fb7c7844 | 7,346 | ex | Elixir | lib/yggdrasil/subscriber/adapter/postgres.ex | jsangilve/yggdrasil | a2ee905e877b6a9d918d8858153a01aadf2d5d63 | [
"MIT"
] | null | null | null | lib/yggdrasil/subscriber/adapter/postgres.ex | jsangilve/yggdrasil | a2ee905e877b6a9d918d8858153a01aadf2d5d63 | [
"MIT"
] | null | null | null | lib/yggdrasil/subscriber/adapter/postgres.ex | jsangilve/yggdrasil | a2ee905e877b6a9d918d8858153a01aadf2d5d63 | [
"MIT"
] | null | null | null | defmodule Yggdrasil.Subscriber.Adapter.Postgres do
@moduledoc """
Yggdrasil subscriber adapter for Postgres. The name of the channel must be a
binary e.g:
Subscription to channel:
```elixir
iex(1)> alias Yggdrasil.Channel
iex(2)> sub_channel = %Channel{
...(2)> name: "postgres_channel",
...(2)> ... | 26.42446 | 79 | 0.651103 |
dadc467e1a52b22d400cf646bbe5a400fcbad8c2 | 12,224 | ex | Elixir | lib/mix/lib/mix/tasks/test.ex | xtian/elixir | c680eb1a3992309c272e8f808e15990ea5318d6e | [
"Apache-2.0"
] | 1 | 2017-07-25T21:46:25.000Z | 2017-07-25T21:46:25.000Z | lib/mix/lib/mix/tasks/test.ex | xtian/elixir | c680eb1a3992309c272e8f808e15990ea5318d6e | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/tasks/test.ex | xtian/elixir | c680eb1a3992309c272e8f808e15990ea5318d6e | [
"Apache-2.0"
] | 1 | 2017-07-25T21:46:48.000Z | 2017-07-25T21:46:48.000Z | defmodule Mix.Tasks.Test do
defmodule Cover do
@moduledoc false
def start(compile_path, opts) do
Mix.shell.info "Cover compiling modules ..."
_ = :cover.start
case :cover.compile_beam_directory(compile_path |> to_charlist) do
results when is_list(results) ->
:ok
{... | 32.424403 | 97 | 0.66713 |
dadc84331dc4ca1607ebe863b529cbbddc13ee33 | 1,737 | ex | Elixir | lib/koans/10_structs.ex | joeldarling/elixir_koans | 215f5a80007013ca2b33ea5c3da2af82cc629747 | [
"MIT"
] | null | null | null | lib/koans/10_structs.ex | joeldarling/elixir_koans | 215f5a80007013ca2b33ea5c3da2af82cc629747 | [
"MIT"
] | null | null | null | lib/koans/10_structs.ex | joeldarling/elixir_koans | 215f5a80007013ca2b33ea5c3da2af82cc629747 | [
"MIT"
] | null | null | null | defmodule Structs do
use Koans
@intro "Structs"
defmodule Person do
defstruct [:name, :age]
end
koan "Structs are defined and named after a module" do
person = %Person{}
assert person == %Structs.Person{age: nil, name: nil}
end
koan "Unless previously defined, fields begin as nil" do
n... | 28.95 | 144 | 0.655728 |
dadcbcdec99d3d33867d31597159d6415f9c63d9 | 2,469 | ex | Elixir | lib/vintage_net_mobile/to_elixir/server.ex | jfcloutier/vintage_net_mobile | 55f4ebfcd2d5bd9da7759ab112325c3a261a0d12 | [
"Apache-2.0"
] | 2 | 2020-02-11T15:15:25.000Z | 2020-02-11T15:15:27.000Z | lib/vintage_net_mobile/to_elixir/server.ex | jfcloutier/vintage_net_mobile | 55f4ebfcd2d5bd9da7759ab112325c3a261a0d12 | [
"Apache-2.0"
] | 8 | 2020-01-28T21:02:56.000Z | 2020-02-24T16:13:38.000Z | lib/vintage_net_mobile/to_elixir/server.ex | jfcloutier/vintage_net_mobile | 55f4ebfcd2d5bd9da7759ab112325c3a261a0d12 | [
"Apache-2.0"
] | 1 | 2020-02-08T20:46:27.000Z | 2020-02-08T20:46:27.000Z | defmodule VintageNetMobile.ToElixir.Server do
use GenServer
require Logger
alias VintageNetMobile.ToElixir.PPPDHandler
@moduledoc false
# This GenServer routes messages from C and shell scripts to the appropriate
# places in VintageNetMobile.
@doc """
Start the GenServer.
"""
@spec start_link(Pa... | 25.989474 | 95 | 0.662211 |
dadcc6365dd9e01492dce77d53d576a8920ade4f | 485 | exs | Elixir | pi_control_manager/test/models/user_test.exs | harmon25/picontrol | 90a203ac63c94cd0ab975313225100170c9c589a | [
"MIT"
] | 2 | 2016-07-14T06:51:32.000Z | 2017-02-10T19:19:08.000Z | pi_control_manager/test/models/user_test.exs | harmon25/picontrol | 90a203ac63c94cd0ab975313225100170c9c589a | [
"MIT"
] | null | null | null | pi_control_manager/test/models/user_test.exs | harmon25/picontrol | 90a203ac63c94cd0ab975313225100170c9c589a | [
"MIT"
] | null | null | null | defmodule PiCntrlMngr.UserTest do
use PiCntrlMngr.ModelCase
alias PiCntrlMngr.User
@valid_attrs %{admin: true, email: "some content", name: "some content", password: "some content"}
@invalid_attrs %{}
test "changeset with valid attributes" do
changeset = User.changeset(%User{}, @valid_attrs)
assert... | 25.526316 | 100 | 0.723711 |
dadccb4864888dbbe50fd40cae634c92ce6637c9 | 2,263 | ex | Elixir | lib/arc/file.ex | dominikknafelj/arc | f8850cafae821d0c00b6f6803c5196e7bbc1e332 | [
"Apache-2.0"
] | null | null | null | lib/arc/file.ex | dominikknafelj/arc | f8850cafae821d0c00b6f6803c5196e7bbc1e332 | [
"Apache-2.0"
] | null | null | null | lib/arc/file.ex | dominikknafelj/arc | f8850cafae821d0c00b6f6803c5196e7bbc1e332 | [
"Apache-2.0"
] | null | null | null | defmodule Arc.File do
defstruct [:path, :file_name, :binary]
def generate_temporary_path(file \\ nil) do
extension = Path.extname((file && file.path) || "")
file_name =
:crypto.rand_bytes(20)
|> Base.encode32()
|> Kernel.<>(extension)
Path.join(System.tmp_dir, file_name)
end
# ... | 26.313953 | 90 | 0.644719 |
dadcd2d4d2f6ac7e630fe4a3e9a5b3598af8beb8 | 27 | ex | Elixir | lib/birdwatch.ex | Faheetah/bird_watch | 590c89382c8266e654014a73d8fb4ebfe380db31 | [
"Apache-2.0"
] | null | null | null | lib/birdwatch.ex | Faheetah/bird_watch | 590c89382c8266e654014a73d8fb4ebfe380db31 | [
"Apache-2.0"
] | null | null | null | lib/birdwatch.ex | Faheetah/bird_watch | 590c89382c8266e654014a73d8fb4ebfe380db31 | [
"Apache-2.0"
] | null | null | null | defmodule BirdWatch do
end
| 9 | 22 | 0.851852 |
dadcd7d757f99f2104448abf84e86fe30f990374 | 817 | ex | Elixir | lib/day_02.ex | robindaumann/aoc-2020 | 63e2dd4cd3062b15fc5be3ec8b3fe75716701f7a | [
"MIT"
] | 1 | 2020-12-19T18:40:00.000Z | 2020-12-19T18:40:00.000Z | lib/day_02.ex | robindaumann/aoc-2020 | 63e2dd4cd3062b15fc5be3ec8b3fe75716701f7a | [
"MIT"
] | null | null | null | lib/day_02.ex | robindaumann/aoc-2020 | 63e2dd4cd3062b15fc5be3ec8b3fe75716701f7a | [
"MIT"
] | null | null | null | defmodule Day02 do
def part1(path) do
solve(path, &contains_times?/4)
end
def part2(path) do
solve(path, &char_at?/4)
end
def solve(path, f) do
path
|> File.stream!()
|> Enum.map(&Regex.run(~r/(\d+)-(\d+) (\w): (\w+)/, &1, capture: :all_but_first))
|> Enum.filter(fn [min, max, char, ... | 22.694444 | 85 | 0.587515 |
dadcf14132fef7d57f8e884254f09a98049dcc5d | 819 | exs | Elixir | mix.exs | IanLuites/elixir-pdf | d69be5a2514063105f6c3d5ffa116c546991bba7 | [
"MIT"
] | null | null | null | mix.exs | IanLuites/elixir-pdf | d69be5a2514063105f6c3d5ffa116c546991bba7 | [
"MIT"
] | null | null | null | mix.exs | IanLuites/elixir-pdf | d69be5a2514063105f6c3d5ffa116c546991bba7 | [
"MIT"
] | 2 | 2018-05-14T21:52:46.000Z | 2020-01-24T15:44:29.000Z | defmodule PDF.Mixfile do
use Mix.Project
def project do
[
app: :pdf,
version: "0.1.0",
elixir: "~> 1.4",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps(),
# Testing
test_coverage: [tool: ExCoveralls],
preferred_cli_env: ["c... | 22.75 | 123 | 0.56044 |
dadd11b15d41252456dbe1fbb8e181750f7d960e | 207 | exs | Elixir | playground_project/priv/repo/migrations/20210806004041_create_games.exs | JohnBortotti/learning-elixir | 54ce9c50904e809065d0321d51367cea7a5b2bf8 | [
"MIT"
] | null | null | null | playground_project/priv/repo/migrations/20210806004041_create_games.exs | JohnBortotti/learning-elixir | 54ce9c50904e809065d0321d51367cea7a5b2bf8 | [
"MIT"
] | null | null | null | playground_project/priv/repo/migrations/20210806004041_create_games.exs | JohnBortotti/learning-elixir | 54ce9c50904e809065d0321d51367cea7a5b2bf8 | [
"MIT"
] | null | null | null | defmodule CrudTdd.Repo.Migrations.CreateGames do
use Ecto.Migration
def change do
create table(:games) do
add :title, :string
add :grade, :integer
timestamps()
end
end
end
| 14.785714 | 48 | 0.657005 |
dadd541a614d2ddc4c7eb3f6b29fbee25cd7b20f | 4,809 | ex | Elixir | lib/mix/lib/mix/tasks/escript.install.ex | xtian/elixir | c680eb1a3992309c272e8f808e15990ea5318d6e | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/tasks/escript.install.ex | xtian/elixir | c680eb1a3992309c272e8f808e15990ea5318d6e | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/tasks/escript.install.ex | xtian/elixir | c680eb1a3992309c272e8f808e15990ea5318d6e | [
"Apache-2.0"
] | null | null | null | defmodule Mix.Tasks.Escript.Install do
use Mix.Task
@shortdoc "Installs an escript locally"
@moduledoc """
Installs an escript locally.
If no argument is supplied but there is an escript in the project's root directory
(created with `mix escript.build`), then the escript will be installed
locally. For ... | 33.629371 | 96 | 0.678104 |
dadd5c1316b4043235a479af72115a0704c5a4e5 | 14,327 | ex | Elixir | lib/vault.ex | jvantuyl/libvault | 8c14be1feeafd8773743441fa0ec089aede0643e | [
"MIT"
] | null | null | null | lib/vault.ex | jvantuyl/libvault | 8c14be1feeafd8773743441fa0ec089aede0643e | [
"MIT"
] | null | null | null | lib/vault.ex | jvantuyl/libvault | 8c14be1feeafd8773743441fa0ec089aede0643e | [
"MIT"
] | null | null | null | defmodule Vault do
@moduledoc """
The main module for configuring and interacting with HashiCorp's Vault.
"""
require Logger
@http if Code.ensure_loaded?(Tesla), do: Vault.HTTP.Tesla, else: nil
@json if Code.ensure_loaded?(Jason),
do: Jason,
else: if(Code.ensure_loaded?(Poison), do: Po... | 29.60124 | 101 | 0.642493 |
dadd7a59b59b5b86132c662306dfe5c7e672be74 | 475 | exs | Elixir | test/models/variable_dashboard_test.exs | sahilpaudel/AfterGlow | 0859ec14b47c8c5704cc8e5cba86d39aa258fff5 | [
"MIT"
] | null | null | null | test/models/variable_dashboard_test.exs | sahilpaudel/AfterGlow | 0859ec14b47c8c5704cc8e5cba86d39aa258fff5 | [
"MIT"
] | null | null | null | test/models/variable_dashboard_test.exs | sahilpaudel/AfterGlow | 0859ec14b47c8c5704cc8e5cba86d39aa258fff5 | [
"MIT"
] | null | null | null | defmodule AfterGlow.VariableDashboardTest do
use AfterGlow.ModelCase
alias AfterGlow.VariableDashboard
@valid_attrs %{}
@invalid_attrs %{}
test "changeset with valid attributes" do
changeset = VariableDashboard.changeset(%VariableDashboard{}, @valid_attrs)
assert changeset.valid?
end
test "cha... | 25 | 81 | 0.766316 |
dadd934f1fdd6ee48f3a2a607d954f2c9651e4f4 | 4,116 | ex | Elixir | lib/problems/romania.ex | aiyogi01/aima-elixir | bccee7e373b0816d737e590b955ca662fbf51999 | [
"MIT"
] | null | null | null | lib/problems/romania.ex | aiyogi01/aima-elixir | bccee7e373b0816d737e590b955ca662fbf51999 | [
"MIT"
] | null | null | null | lib/problems/romania.ex | aiyogi01/aima-elixir | bccee7e373b0816d737e590b955ca662fbf51999 | [
"MIT"
] | null | null | null | defmodule Problems.Romania do
alias Problems.Romania, as: Romania
defstruct initial: nil, goal: nil, transitions: %{
"Oradea" => %{
"go to Zerind" => %{result: "Zerind", cost: 71},
"go to Sibui" => %{result: "Sibui", cost: 151},
},
"Zerind" => %{
"go to Arad" => %{result: "Arad", cost... | 31.661538 | 80 | 0.51725 |
dadd9db4653b9208fc23d6273330cae4750d9566 | 1,351 | ex | Elixir | lib/ppg_web/endpoint.ex | ohyecloudy/phoenix-prometheus-grafana | e956f27a34c794e85d1e89fc61af79be18a0ce35 | [
"MIT"
] | 1 | 2020-04-23T08:18:08.000Z | 2020-04-23T08:18:08.000Z | lib/ppg_web/endpoint.ex | ohyecloudy/phoenix_prometheus_grafana | e956f27a34c794e85d1e89fc61af79be18a0ce35 | [
"MIT"
] | null | null | null | lib/ppg_web/endpoint.ex | ohyecloudy/phoenix_prometheus_grafana | e956f27a34c794e85d1e89fc61af79be18a0ce35 | [
"MIT"
] | null | null | null | defmodule PpgWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :ppg
# 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: "_ppg_key",
sig... | 26.490196 | 69 | 0.707624 |
dadda477bf59a6889e5431e60925764479cb645c | 5,730 | ex | Elixir | apps/mishka_api/lib/mishka_api_web/router.ex | mojtaba-naserei/mishka-cms | 1f31f61347bab1aae6ba0d47c5515a61815db6c9 | [
"Apache-2.0"
] | 35 | 2021-06-26T09:05:50.000Z | 2022-03-30T15:41:22.000Z | apps/mishka_api/lib/mishka_api_web/router.ex | iArazar/mishka-cms | 8b579101d607d91e80834527c1508fe5f4ceefef | [
"Apache-2.0"
] | 101 | 2021-01-01T09:54:07.000Z | 2022-03-28T10:02:24.000Z | apps/mishka_api/lib/mishka_api_web/router.ex | iArazar/mishka-cms | 8b579101d607d91e80834527c1508fe5f4ceefef | [
"Apache-2.0"
] | 8 | 2021-01-17T17:08:07.000Z | 2022-03-11T16:12:06.000Z | defmodule MishkaApiWeb.Router do
use MishkaApiWeb, :router
use Plug.ErrorHandler
pipeline :api do
plug :accepts, ["json"]
end
scope "/api", MishkaApiWeb do
pipe_through :api
end
pipeline :access_token do
plug MishkaApi.Plug.AccessTokenPlug
end
pipeline :acl_check do
plug MishkaApi.... | 36.967742 | 95 | 0.734904 |
daddab176ccc3e8c08aef7b42c79e22b94b60845 | 154 | ex | Elixir | lib/redlock/node_chooser/store.ex | madhuravius/redlock | 6d39156bad658abd4cbdaa955e9b64fffb4c15e6 | [
"MIT"
] | null | null | null | lib/redlock/node_chooser/store.ex | madhuravius/redlock | 6d39156bad658abd4cbdaa955e9b64fffb4c15e6 | [
"MIT"
] | null | null | null | lib/redlock/node_chooser/store.ex | madhuravius/redlock | 6d39156bad658abd4cbdaa955e9b64fffb4c15e6 | [
"MIT"
] | 1 | 2020-10-26T03:29:04.000Z | 2020-10-26T03:29:04.000Z | defmodule Redlock.NodeChooser.Store do
@callback new(pools_list :: [list]) :: any
@callback choose(store :: any, resource :: String.t) :: list
end
| 19.25 | 62 | 0.688312 |
daddc8c89ef28bbfff49566e5d496c2bbb679296 | 1,115 | exs | Elixir | config/config.exs | techacolyte42/params | 22921ca190a7d21c4982cc9adda7c2f6b990eca5 | [
"Apache-2.0"
] | 285 | 2016-01-24T13:42:34.000Z | 2022-02-22T22:20:02.000Z | config/config.exs | techacolyte42/params | 22921ca190a7d21c4982cc9adda7c2f6b990eca5 | [
"Apache-2.0"
] | 31 | 2016-03-09T14:06:47.000Z | 2022-01-31T15:24:45.000Z | config/config.exs | techacolyte42/params | 22921ca190a7d21c4982cc9adda7c2f6b990eca5 | [
"Apache-2.0"
] | 33 | 2016-01-25T21:37:03.000Z | 2021-12-29T07:55:24.000Z | # 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... | 35.967742 | 73 | 0.750673 |
dadddc1ed883fdff8727d5dc775b6572829b9e81 | 1,768 | ex | Elixir | lib/routing_table/bucket.ex | kaiserd/MlDHT | 402b30179bfa24824dcaf8a284f241b8fce16410 | [
"MIT"
] | null | null | null | lib/routing_table/bucket.ex | kaiserd/MlDHT | 402b30179bfa24824dcaf8a284f241b8fce16410 | [
"MIT"
] | null | null | null | lib/routing_table/bucket.ex | kaiserd/MlDHT | 402b30179bfa24824dcaf8a284f241b8fce16410 | [
"MIT"
] | null | null | null | defmodule RoutingTable.Bucket do
@moduledoc false
alias RoutingTable.Bucket
alias RoutingTable.Node
require Logger
defstruct index: 0, last_update: 0, nodes: []
@k_bucket 8
def new(index) do
%Bucket{index: index, last_update: :os.system_time(:seconds)}
end
def size(bucket) do
Enum.count(... | 21.82716 | 78 | 0.621041 |
dadde909072c77c8e3ba8faf8c365e21326d4933 | 5,726 | ex | Elixir | clients/logging/lib/google_api/logging/v2/api/entries.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/logging/lib/google_api/logging/v2/api/entries.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/logging/lib/google_api/logging/v2/api/entries.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... | 41.79562 | 178 | 0.670625 |
dadded7b61dd87ffa0e537fa53ab419b6cb87d27 | 494 | ex | Elixir | lib/gitexpress/entries/entry.ex | juhalehtonen/GitExPress | 1116d72fdf74571a7506d6550f0f55fde3293422 | [
"MIT"
] | null | null | null | lib/gitexpress/entries/entry.ex | juhalehtonen/GitExPress | 1116d72fdf74571a7506d6550f0f55fde3293422 | [
"MIT"
] | null | null | null | lib/gitexpress/entries/entry.ex | juhalehtonen/GitExPress | 1116d72fdf74571a7506d6550f0f55fde3293422 | [
"MIT"
] | null | null | null | defmodule GitExPress.Entries.Entry do
@moduledoc """
The Entry struct represents a single entry in the GitExPress system. All saved
entries are converted to a format that fits the struct defined here, which allows
us to keep all our web-facing representations of data follow the same shape.
Entries are comple... | 38 | 83 | 0.765182 |
daddf83a4045e8ed9b62f3041e028e8b02d815d8 | 372 | ex | Elixir | test/support/test_notification.ex | acutario/ravenx | 66b523af1073330de918056b0cdcb6fbaa5401a7 | [
"MIT"
] | 111 | 2017-01-11T20:28:40.000Z | 2021-10-13T03:23:28.000Z | test/support/test_notification.ex | acutario/ravenx | 66b523af1073330de918056b0cdcb6fbaa5401a7 | [
"MIT"
] | 32 | 2016-11-26T09:51:37.000Z | 2018-02-17T12:01:57.000Z | test/support/test_notification.ex | acutario/ravenx | 66b523af1073330de918056b0cdcb6fbaa5401a7 | [
"MIT"
] | 10 | 2017-05-24T10:33:38.000Z | 2018-01-21T08:48:35.000Z | defmodule Ravenx.Test.TestNotification do
use Ravenx.Notification
@doc """
Test notification that delivers a dummy notification with the expected result
and one with the opposite.
"""
def get_notifications_config(result) when is_boolean(result) do
[
dummy: {:dummy, %{result: result}},
dumm... | 23.25 | 79 | 0.693548 |
daddfbdd94a1306bd140b61d8de861945ef9352c | 420 | exs | Elixir | mix.exs | Naupio/pical | 8d1ea236645493e8a546bc66051c16649888bbbe | [
"MIT"
] | 4 | 2018-06-11T07:02:04.000Z | 2018-07-31T08:09:09.000Z | mix.exs | Naupio/npdata | 8d1ea236645493e8a546bc66051c16649888bbbe | [
"MIT"
] | null | null | null | mix.exs | Naupio/npdata | 8d1ea236645493e8a546bc66051c16649888bbbe | [
"MIT"
] | 1 | 2019-08-15T14:33:35.000Z | 2019-08-15T14:33:35.000Z | defmodule PiCal.MixProject do
use Mix.Project
def project do
[
apps_path: "apps",
version: "0.1.0",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Dependencies listed here are available only for this
# project and cannot be accessed from applications inside
# the... | 19.090909 | 59 | 0.635714 |
dade1217b0ac5cbdd1c85d74aec75882a0654591 | 206 | exs | Elixir | lib/system/targets/host/fs.exs | KRISHITECH/farmbot_os | 4220baf8f3ef930ce3b861b178ca6a76e2fd7591 | [
"MIT"
] | null | null | null | lib/system/targets/host/fs.exs | KRISHITECH/farmbot_os | 4220baf8f3ef930ce3b861b178ca6a76e2fd7591 | [
"MIT"
] | null | null | null | lib/system/targets/host/fs.exs | KRISHITECH/farmbot_os | 4220baf8f3ef930ce3b861b178ca6a76e2fd7591 | [
"MIT"
] | null | null | null | defmodule Module.concat([Farmbot, System, "host", FileSystem]) do
@moduledoc false
@behaviour Farmbot.System.FS
def fs_init, do: :ok
def mount_read_only, do: :ok
def mount_read_write, do: :ok
end
| 25.75 | 65 | 0.728155 |
dade1b54be3090d99eefbeb8f7757fb6a69bdc66 | 455 | exs | Elixir | Elixir/problem007.exs | emergent/ProjectEuler | ec1c92cc47fde80efddeb0346d9b0fa511df1f00 | [
"Unlicense"
] | null | null | null | Elixir/problem007.exs | emergent/ProjectEuler | ec1c92cc47fde80efddeb0346d9b0fa511df1f00 | [
"Unlicense"
] | null | null | null | Elixir/problem007.exs | emergent/ProjectEuler | ec1c92cc47fde80efddeb0346d9b0fa511df1f00 | [
"Unlicense"
] | null | null | null | # Problem 7 - Project Euler
# http://projecteuler.net/index.php?section=problems&id=7
defmodule P007 do
defp sieve([hd | tl], x, ans) do
if hd * hd > x do
Enum.reverse(ans) ++ [hd | tl]
else
tl
|> Enum.filter(&(rem(&1, hd) != 0))
|> sieve(x, [hd | ans])
end
end
def solve(index... | 18.958333 | 57 | 0.536264 |
dade45a41b3754ff98250d2edeae669d62972085 | 2,647 | exs | Elixir | test/ex_lcd_test.exs | cthree/ex_lcd | 43b4fb055e254e851058410be2586fd43c297df9 | [
"Apache-2.0"
] | 17 | 2017-03-28T03:04:07.000Z | 2021-07-07T18:11:59.000Z | test/ex_lcd_test.exs | cthree/ex_lcd | 43b4fb055e254e851058410be2586fd43c297df9 | [
"Apache-2.0"
] | 5 | 2017-03-28T02:36:19.000Z | 2021-01-18T11:39:29.000Z | test/ex_lcd_test.exs | cthree/ex_lcd | 43b4fb055e254e851058410be2586fd43c297df9 | [
"Apache-2.0"
] | 9 | 2017-03-30T11:49:55.000Z | 2020-11-29T15:02:44.000Z | defmodule ExLCDTest do
use ExUnit.Case
test "start_link starts a genserver and initializes its state" do
assert {:ok, pid} = ExLCD.start_link({TestDriver, %{}})
assert Process.alive?(pid)
end
describe "cast operations" do
setup do
# A state for testing
state = %ExLCD.LCDState{displ... | 32.280488 | 86 | 0.62977 |
dade4ebb5e8e6c552649abbdec8e53b4b3cbfd62 | 1,472 | exs | Elixir | test/hush/transfomer/cast_test.exs | gordalina/hush | 5fd9826bc7df6a7754c74a062756d1c7d5651f09 | [
"Apache-2.0"
] | 86 | 2020-08-12T17:24:19.000Z | 2022-03-09T09:48:08.000Z | test/hush/transfomer/cast_test.exs | gordalina/hush | 5fd9826bc7df6a7754c74a062756d1c7d5651f09 | [
"Apache-2.0"
] | 6 | 2020-12-13T05:24:10.000Z | 2022-01-25T19:49:00.000Z | test/hush/transfomer/cast_test.exs | gordalina/hush | 5fd9826bc7df6a7754c74a062756d1c7d5651f09 | [
"Apache-2.0"
] | null | null | null | defmodule Hush.Transformer.CastTest do
use ExUnit.Case
doctest Hush.Transformer.Cast
alias Hush.Transformer.Cast
describe "key/0" do
test "ok" do
assert :cast == Cast.key()
end
end
describe "transform/2" do
test "ok" do
assert {:ok, 1} == Cast.transform(:integer, "1")
end
... | 33.454545 | 83 | 0.624321 |
dade6b561786f808abbaae2f5abf71d4f84ef75f | 12,043 | exs | Elixir | test/ex338/draft_queues/draft_queue_test.exs | axelclark/ex338 | 3fb3c260d93bda61f7636ee1a677770d2dc1b89a | [
"MIT"
] | 17 | 2016-12-22T06:39:26.000Z | 2021-01-20T13:51:13.000Z | test/ex338/draft_queues/draft_queue_test.exs | axelclark/ex338 | 3fb3c260d93bda61f7636ee1a677770d2dc1b89a | [
"MIT"
] | 608 | 2016-08-06T18:57:58.000Z | 2022-03-01T02:48:17.000Z | test/ex338/draft_queues/draft_queue_test.exs | axelclark/ex338 | 3fb3c260d93bda61f7636ee1a677770d2dc1b89a | [
"MIT"
] | 6 | 2017-11-21T22:35:45.000Z | 2022-01-11T21:37:40.000Z | defmodule Ex338.DraftQueues.DraftQueueTest do
use Ex338.DataCase, async: true
alias Ex338.DraftQueues.DraftQueue
describe "by_league/2" do
test "returns draft queues for a fantasy league" do
league = insert(:fantasy_league)
team = insert(:fantasy_team, fantasy_league: league)
insert(:draft... | 29.809406 | 89 | 0.639459 |
dade75c4be293b7340d9c7f7bf0a8b9168fd8cba | 2,038 | ex | Elixir | clients/android_publisher/lib/google_api/android_publisher/v2/model/reviews_list_response.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/android_publisher/lib/google_api/android_publisher/v2/model/reviews_list_response.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/android_publisher/lib/google_api/android_publisher/v2/model/reviews_list_response.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 38.45283 | 110 | 0.741904 |
dade8e2cacd415dae52f4cbd94f54fde5f179c14 | 443 | ex | Elixir | lib/segment/hktab.ex | Ablu/fintex | 3dd2088c01a4e035478d09df1e09ec244b54cf87 | [
"MIT"
] | 27 | 2015-08-09T16:36:31.000Z | 2020-01-26T17:47:17.000Z | lib/segment/hktab.ex | Ablu/fintex | 3dd2088c01a4e035478d09df1e09ec244b54cf87 | [
"MIT"
] | 14 | 2015-07-31T07:28:07.000Z | 2018-09-06T18:32:37.000Z | lib/segment/hktab.ex | Ablu/fintex | 3dd2088c01a4e035478d09df1e09ec244b54cf87 | [
"MIT"
] | 19 | 2015-07-31T01:25:17.000Z | 2019-06-29T16:28:42.000Z | defmodule FinTex.Segment.HKTAB do
@moduledoc false
alias FinTex.Model.Dialog
alias FinTex.Helper.Segment
defstruct [segment: nil]
import Segment
def new(%__MODULE__{}, d = %Dialog{}) do
v = max_version(d, __MODULE__)
%__MODULE__{
segment:
[
["HKTAB", "?", v],
"0... | 15.821429 | 45 | 0.591422 |
dadea054ea210c8b0ef81b637fe1b56a10ea9299 | 2,572 | exs | Elixir | mix.exs | ambareesha7/node-zaryn | 136e542801bf9b6fa4a015d3464609fdf3dacee8 | [
"Apache-2.0"
] | 1 | 2021-07-06T19:47:14.000Z | 2021-07-06T19:47:14.000Z | mix.exs | ambareesha7/node-zaryn | 136e542801bf9b6fa4a015d3464609fdf3dacee8 | [
"Apache-2.0"
] | null | null | null | mix.exs | ambareesha7/node-zaryn | 136e542801bf9b6fa4a015d3464609fdf3dacee8 | [
"Apache-2.0"
] | null | null | null | defmodule Zaryn.MixProject do
use Mix.Project
def project do
[
app: :zaryn,
version: "0.10.0",
build_path: "_build",
config_path: "config/config.exs",
deps_path: "deps",
lockfile: "mix.lock",
elixir: "~> 1.11",
start_permanent: Mix.env() == :prod,
deps: dep... | 28.898876 | 77 | 0.508554 |
dadec5827490958021ab675669d04c748f32a8b5 | 193 | ex | Elixir | test/fixtures.ex | smartvokat/fixture_builder | 1fda003dc1792453db6dc691a2b528db5b444f2c | [
"Apache-2.0"
] | 1 | 2020-12-22T21:36:11.000Z | 2020-12-22T21:36:11.000Z | test/fixtures.ex | smartvokat/fixture_builder | 1fda003dc1792453db6dc691a2b528db5b444f2c | [
"Apache-2.0"
] | null | null | null | test/fixtures.ex | smartvokat/fixture_builder | 1fda003dc1792453db6dc691a2b528db5b444f2c | [
"Apache-2.0"
] | null | null | null | defmodule FixtureBuilder.Test.Fixtures do
use FixtureBuilder
import_fixtures(FixtureBuilder.Test.Fixtures.SimpleBuilder)
import_fixtures(FixtureBuilder.Test.Fixtures.ComplexBuilder)
end
| 27.571429 | 62 | 0.860104 |
dadedc3a9043b91a94409bfb38e7a4d5b5b0ad15 | 364 | ex | Elixir | lib/behavior/task.ex | tulinmola/elixir-behavior-tree | 218d1d8a87eb26245f3ff2064b7c49647d33bb58 | [
"MIT"
] | null | null | null | lib/behavior/task.ex | tulinmola/elixir-behavior-tree | 218d1d8a87eb26245f3ff2064b7c49647d33bb58 | [
"MIT"
] | null | null | null | lib/behavior/task.ex | tulinmola/elixir-behavior-tree | 218d1d8a87eb26245f3ff2064b7c49647d33bb58 | [
"MIT"
] | null | null | null | defprotocol Behavior.Task do
@type seconds :: float
@type result :: :success | :running | :failure
@type state :: map
@spec run(t, state, seconds) :: {result, t, state, seconds}
def run(task, state, time)
end
defmodule Behavior.TaskFactory do
alias Behavior.Node
@spec create(any) :: any
def create(no... | 20.222222 | 61 | 0.681319 |
dadf0d3d8ee7eaab17795d82f7989d5f1510733c | 4,262 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/api/dimension_values.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/api/dimension_values.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/api/dimension_values.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 43.489796 | 196 | 0.649695 |
dadf0f8835a29b39c5dd436cbb1161ae1b326e8e | 1,196 | ex | Elixir | legacy/artie/apps/artie_main/lib/artie_main.ex | MaxStrange/ArtieInfant | 1edbb171a5405d2971227f2d2d83acb523c70034 | [
"MIT"
] | 1 | 2018-04-28T16:55:05.000Z | 2018-04-28T16:55:05.000Z | legacy/artie/apps/artie_main/lib/artie_main.ex | MaxStrange/ArtieInfant | 1edbb171a5405d2971227f2d2d83acb523c70034 | [
"MIT"
] | null | null | null | legacy/artie/apps/artie_main/lib/artie_main.ex | MaxStrange/ArtieInfant | 1edbb171a5405d2971227f2d2d83acb523c70034 | [
"MIT"
] | null | null | null | defmodule ArtieMain do
@moduledoc """
This is the main module for Artie.
"""
use GenServer
def start_link(robin_server) do
GenServer.start_link(__MODULE__, robin_server, name: __MODULE__)
end
def init(robin_server) do
{:ok, robin_server}
end
def handle_cast(:start, robin_server) do
spaw... | 27.181818 | 90 | 0.661371 |
dadf532f46f46183cb7b9c2bbffdc68cca72f16b | 101 | exs | Elixir | test/jirex/utils/query_params_test.exs | dullandwitless/elixir-ex_jira | d9a2f45fe47c70e1b5f1e1dd2ba2c3e5175c4bc2 | [
"MIT"
] | 2 | 2019-09-18T00:43:54.000Z | 2019-10-24T21:35:02.000Z | test/jirex/utils/query_params_test.exs | dullandwitless/elixir-ex_jira | d9a2f45fe47c70e1b5f1e1dd2ba2c3e5175c4bc2 | [
"MIT"
] | 5 | 2018-05-21T15:47:45.000Z | 2022-02-11T16:21:00.000Z | test/jirex/utils/query_params_test.exs | dullandwitless/elixir-ex_jira | d9a2f45fe47c70e1b5f1e1dd2ba2c3e5175c4bc2 | [
"MIT"
] | 6 | 2018-01-04T01:40:04.000Z | 2022-02-11T16:02:27.000Z | defmodule QueryParamsTest do
use ExUnit.Case
alias ExJira.QueryParams
doctest QueryParams
end
| 14.428571 | 28 | 0.811881 |
dadf9f45f858aa7b67aa1512b9d16a0194501f0c | 563 | exs | Elixir | config/test.exs | floriank/postgres_sync_fiel_fdw | 729e4e709c952755d1b89c6d6e66cdc0981f8352 | [
"MIT"
] | 1 | 2018-07-16T04:22:27.000Z | 2018-07-16T04:22:27.000Z | config/test.exs | floriank/postgres_sync_fiel_fdw | 729e4e709c952755d1b89c6d6e66cdc0981f8352 | [
"MIT"
] | null | null | null | config/test.exs | floriank/postgres_sync_fiel_fdw | 729e4e709c952755d1b89c6d6e66cdc0981f8352 | [
"MIT"
] | null | null | null | use Mix.Config
# We don't run a server during test. If one is required,
# you can enable the server option below.
config :postgres_sync_file_fdw, PostgresSyncFileFdwWeb.Endpoint,
http: [port: 4001],
server: false
# Print only warnings and errors during test
config :logger, level: :warn
# Configure your database
... | 28.15 | 64 | 0.767318 |
dadfc1d2294617995921b310677216a44e6c303c | 2,725 | ex | Elixir | clients/service_management/lib/google_api/service_management/v1/model/o_auth_requirements.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | null | null | null | clients/service_management/lib/google_api/service_management/v1/model/o_auth_requirements.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | null | null | null | clients/service_management/lib/google_api/service_management/v1/model/o_auth_requirements.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"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... | 56.770833 | 995 | 0.766972 |
dadfe5893f8e68536af23b972da91b3c2fb1c783 | 19,306 | ex | Elixir | clients/drive/lib/google_api/drive/v3/api/permissions.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/drive/lib/google_api/drive/v3/api/permissions.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/drive/lib/google_api/drive/v3/api/permissions.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... | 55.002849 | 590 | 0.658034 |
dadff5436ca6b260dca0b0fcc8baceaa1279597f | 762 | exs | Elixir | elx_pmap/test/crawler_test.exs | bhatti/concurency-katas | e235a71d042cf1093544cc7b878a68f27e653747 | [
"MIT"
] | null | null | null | elx_pmap/test/crawler_test.exs | bhatti/concurency-katas | e235a71d042cf1093544cc7b878a68f27e653747 | [
"MIT"
] | null | null | null | elx_pmap/test/crawler_test.exs | bhatti/concurency-katas | e235a71d042cf1093544cc7b878a68f27e653747 | [
"MIT"
] | null | null | null | ##--------------------------------------------------------------------------
# tests for fake web crawler using pmap
##--------------------------------------------------------------------------
defmodule CrawlerTest do
use ExUnit.Case
doctest Crawler
@root_urls ["a.com", "b.com", "c.com", "d.com", "e.com", "f.co... | 34.636364 | 130 | 0.506562 |
dae00e4753ea91f1b65602c31cfec445d2c4097f | 2,173 | exs | Elixir | config/dev.exs | yuchunc/mix-deploy-example | 19072e7f4aca62d782d2dba82e11cdc1ef7d8fd4 | [
"Apache-2.0"
] | 39 | 2019-07-10T08:34:13.000Z | 2021-07-06T23:54:56.000Z | config/dev.exs | yuchunc/mix-deploy-example | 19072e7f4aca62d782d2dba82e11cdc1ef7d8fd4 | [
"Apache-2.0"
] | 11 | 2019-07-22T02:35:28.000Z | 2021-05-08T15:27:50.000Z | config/dev.exs | yuchunc/mix-deploy-example | 19072e7f4aca62d782d2dba82e11cdc1ef7d8fd4 | [
"Apache-2.0"
] | 8 | 2019-11-20T08:04:04.000Z | 2020-11-18T09:48:35.000Z | 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 :mix_deploy_example, MixDeployExampleWeb.Endpoint,... | 28.592105 | 68 | 0.699954 |
dae011cabd04cd2b6572ad8519993f52ac75004a | 5,054 | exs | Elixir | test/ex_oauth2_provider/oauth2/authorization_test.exs | heroinbob/ex_oauth2_provider | 80c21a53bba0955ab3b66f1bd32cc81db0f04f49 | [
"MIT"
] | null | null | null | test/ex_oauth2_provider/oauth2/authorization_test.exs | heroinbob/ex_oauth2_provider | 80c21a53bba0955ab3b66f1bd32cc81db0f04f49 | [
"MIT"
] | null | null | null | test/ex_oauth2_provider/oauth2/authorization_test.exs | heroinbob/ex_oauth2_provider | 80c21a53bba0955ab3b66f1bd32cc81db0f04f49 | [
"MIT"
] | null | null | null | defmodule ExOauth2Provider.AuthorizationTest do
use ExOauth2Provider.TestCase
alias ExOauth2Provider.Authorization
alias ExOauth2Provider.DeviceGrants
alias ExOauth2Provider.Test.{Fixtures, QueryHelpers}
@client_id "Jf5rM8hQBc"
@client_secret "secret"
@valid_request %{
"client_id" => @client_id,
... | 37.161765 | 218 | 0.708548 |
dae026fc973eaeba450ae3f24585d228f69d5d07 | 2,002 | ex | Elixir | clients/page_speed_online/lib/google_api/page_speed_online/v4/model/pagespeed_api_format_string_v4.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/page_speed_online/lib/google_api/page_speed_online/v4/model/pagespeed_api_format_string_v4.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/page_speed_online/lib/google_api/page_speed_online/v4/model/pagespeed_api_format_string_v4.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... | 40.04 | 309 | 0.749251 |
dae0325f08bbb02df8656a98c7db511ca995fcc3 | 4,038 | ex | Elixir | clients/classroom/lib/google_api/classroom/v1/connection.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/classroom/lib/google_api/classroom/v1/connection.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/classroom/lib/google_api/classroom/v1/connection.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... | 42.0625 | 155 | 0.733284 |
dae0378d6c0d8b993834367c4ed12dd5c52c5eaa | 1,170 | exs | Elixir | mix.exs | rupurt/ex_ftx | aac6b6d2467df7f10580b705431cec95ff0f1dd6 | [
"MIT"
] | 3 | 2021-09-27T17:19:41.000Z | 2022-03-16T09:28:13.000Z | mix.exs | rupurt/ex_ftx | aac6b6d2467df7f10580b705431cec95ff0f1dd6 | [
"MIT"
] | 3 | 2021-07-28T19:53:02.000Z | 2021-09-27T15:48:38.000Z | mix.exs | rupurt/ex_ftx | aac6b6d2467df7f10580b705431cec95ff0f1dd6 | [
"MIT"
] | 4 | 2021-08-01T11:25:58.000Z | 2021-10-11T22:15:44.000Z | defmodule ExFtx.MixProject do
use Mix.Project
def project do
[
app: :ex_ftx,
version: "0.0.14",
elixir: "~> 1.10",
package: package(),
start_permanent: Mix.env() == :prod,
description: description(),
deps: deps(),
test_coverage: [tool: ExCoveralls]
]
end
... | 22.5 | 76 | 0.510256 |
dae063fefa97d9e4b39e1b02176fae0da16b5c93 | 863 | ex | Elixir | src/lib/changelog/data/news/news_issue_ad.ex | thenets/docker-chocoquest | 856fa5ff41a5831ed67b1ef865cd8951df5af023 | [
"MIT"
] | 1 | 2018-01-22T20:07:10.000Z | 2018-01-22T20:07:10.000Z | lib/changelog/data/news/news_issue_ad.ex | joebew42/changelog.com | da4ec68d15f3a2b4b6c29033443d7e7afe814d18 | [
"MIT"
] | null | null | null | lib/changelog/data/news/news_issue_ad.ex | joebew42/changelog.com | da4ec68d15f3a2b4b6c29033443d7e7afe814d18 | [
"MIT"
] | null | null | null | defmodule Changelog.NewsIssueAd do
use Changelog.Data
alias Changelog.{NewsIssue, NewsAd}
schema "news_issue_ads" do
field :position, :integer
field :delete, :boolean, virtual: true
belongs_to :ad, NewsAd, foreign_key: :ad_id
belongs_to :issue, NewsIssue, foreign_key: :issue_id
timestamps(... | 23.324324 | 70 | 0.687138 |
dae07221d114e304d084bfbae54e8b266f5d5fd5 | 1,664 | ex | Elixir | lib/slackex.ex | SirFitz/slack | 2843fe07c006f75a20fd652f0ec31e76db923d9d | [
"MIT"
] | null | null | null | lib/slackex.ex | SirFitz/slack | 2843fe07c006f75a20fd652f0ec31e76db923d9d | [
"MIT"
] | null | null | null | lib/slackex.ex | SirFitz/slack | 2843fe07c006f75a20fd652f0ec31e76db923d9d | [
"MIT"
] | null | null | null | defmodule Slack do
@moduledoc """
An HTTP client for Slack.
"""
# Let's build on top of HTTPoison
use Application
use HTTPoison.Base
def start(_type, _args) do
Slack.Supervisor.start_link
end
@doc """
Creates the URL for our endpoint.
Args:
* endpoint - part of the API we're hitting
R... | 19.576471 | 70 | 0.641226 |
dae079d08f4288107f1745949321a6da2ac8fff6 | 1,637 | ex | Elixir | clients/vm_migration/lib/google_api/vm_migration/v1/model/applied_license.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/vm_migration/lib/google_api/vm_migration/v1/model/applied_license.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/vm_migration/lib/google_api/vm_migration/v1/model/applied_license.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... | 32.74 | 119 | 0.725107 |
dae08bb390a57edc2b5941ba88e43967649fda05 | 128 | ex | Elixir | web/models/search_results.ex | kentcdodds/changelog.com | e1c0d7ee5d47dc83dd443d623adb0f07e4acb28d | [
"MIT"
] | null | null | null | web/models/search_results.ex | kentcdodds/changelog.com | e1c0d7ee5d47dc83dd443d623adb0f07e4acb28d | [
"MIT"
] | null | null | null | web/models/search_results.ex | kentcdodds/changelog.com | e1c0d7ee5d47dc83dd443d623adb0f07e4acb28d | [
"MIT"
] | null | null | null | defmodule Changelog.SearchResults do
defstruct count_total: 0, count_episodes: 0, count_posts: 0, episodes: [], posts: []
end
| 32 | 86 | 0.757813 |
dae09b9b71add63fe744da77422be264fddc79d1 | 1,783 | ex | Elixir | lib/app_unite_web.ex | JakTomczak/AppUniteTask | 05694bef7c9867cd873ebce308e3fe1bb8e89bf4 | [
"Unlicense"
] | null | null | null | lib/app_unite_web.ex | JakTomczak/AppUniteTask | 05694bef7c9867cd873ebce308e3fe1bb8e89bf4 | [
"Unlicense"
] | null | null | null | lib/app_unite_web.ex | JakTomczak/AppUniteTask | 05694bef7c9867cd873ebce308e3fe1bb8e89bf4 | [
"Unlicense"
] | null | null | null | defmodule AppUniteWeb 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 AppUniteWeb, :controller
use AppUniteWeb, :view
The definitions below will be executed for every view,
controlle... | 22.858974 | 76 | 0.691531 |
dae09f64bc1f607e012757c0a8b205ed88443506 | 4,270 | ex | Elixir | clients/dataflow/lib/google_api/dataflow/v1b3/model/runtime_environment.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/dataflow/lib/google_api/dataflow/v1b3/model/runtime_environment.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/dataflow/lib/google_api/dataflow/v1b3/model/runtime_environment.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 ... | 45.913978 | 144 | 0.687822 |
dae0baab361c026d96bfebe235268aad0a4cda88 | 1,486 | ex | Elixir | clients/analytics/lib/google_api/analytics/v3/model/user_deletion_request_id.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/analytics/lib/google_api/analytics/v3/model/user_deletion_request_id.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/analytics/lib/google_api/analytics/v3/model/user_deletion_request_id.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... | 29.72 | 82 | 0.716016 |
dae0c031f3a87e75d96b7238f3de6d7df67e17ba | 6,733 | ex | Elixir | clients/remote_build_execution/lib/google_api/remote_build_execution/v2/model/google_devtools_remotebuildexecution_admin_v1alpha_feature_policy.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/remote_build_execution/lib/google_api/remote_build_execution/v2/model/google_devtools_remotebuildexecution_admin_v1alpha_feature_policy.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/remote_build_execution/lib/google_api/remote_build_execution/v2/model/google_devtools_remotebuildexecution_admin_v1alpha_feature_policy.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... | 57.059322 | 645 | 0.791029 |
dae0d630969eda62bea99cb63482675407dca8f2 | 5,235 | ex | Elixir | lib/oli_web/controllers/resource_controller.ex | AnkitKadamATS/oli-torus | 3f9d5e8d568684b28d2ed65e17f796ae4c27c072 | [
"MIT"
] | 45 | 2020-04-17T15:40:27.000Z | 2022-03-25T00:13:30.000Z | lib/oli_web/controllers/resource_controller.ex | AnkitKadamATS/oli-torus | 3f9d5e8d568684b28d2ed65e17f796ae4c27c072 | [
"MIT"
] | 944 | 2020-02-13T02:37:01.000Z | 2022-03-31T17:50:07.000Z | lib/oli_web/controllers/resource_controller.ex | Simon-Initiative/oli-torus | 7f3eaeaa18ca8837e5afbff3e8899ae13b49de8b | [
"MIT"
] | 23 | 2020-07-28T03:36:13.000Z | 2022-03-17T14:29:02.000Z | defmodule OliWeb.ResourceController do
use OliWeb, :controller
import OliWeb.ProjectPlugs
alias Oli.Activities.Realizer.Query.Source
alias Oli.Authoring.Editing.PageEditor
alias Oli.Accounts
alias Oli.Activities
alias Oli.Publishing.AuthoringResolver
alias OliWeb.Common.Breadcrumb
alias Oli.PartCompo... | 35.371622 | 107 | 0.649475 |
dae0d88c552c969d449f69c5e51a7d9707179008 | 1,149 | exs | Elixir | config/config.exs | spilth/elixirway | bd7f6b9ef5df282fd6b1302a76c50e4d0a6fc4c5 | [
"MIT"
] | null | null | null | config/config.exs | spilth/elixirway | bd7f6b9ef5df282fd6b1302a76c50e4d0a6fc4c5 | [
"MIT"
] | null | null | null | config/config.exs | spilth/elixirway | bd7f6b9ef5df282fd6b1302a76c50e4d0a6fc4c5 | [
"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
config :ex_unit, trace: true
# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on this project, this
# file won't ... | 34.818182 | 73 | 0.751088 |
dae0da223fbce9b6e6398485b37a26fa333034a7 | 411 | ex | Elixir | apps/nerves_hub_device/lib/nerves_hub_device_web/views/device_view.ex | Gazler/nerves_hub_web | 9a636a17310382819eaa6cee590e053cb47f0dcc | [
"Apache-2.0"
] | 1 | 2020-08-04T14:13:24.000Z | 2020-08-04T14:13:24.000Z | apps/nerves_hub_device/lib/nerves_hub_device_web/views/device_view.ex | Eaftos/nerves_hub_web | ac03bd044b97265bf3ba3edd8da249d300fa3668 | [
"Apache-2.0"
] | 1 | 2020-09-08T15:15:50.000Z | 2020-09-08T16:13:28.000Z | apps/nerves_hub_device/lib/nerves_hub_device_web/views/device_view.ex | Eaftos/nerves_hub_web | ac03bd044b97265bf3ba3edd8da249d300fa3668 | [
"Apache-2.0"
] | null | null | null | defmodule NervesHubDeviceWeb.DeviceView do
use NervesHubDeviceWeb, :view
alias NervesHubDeviceWeb.DeviceView
def render("show.json", %{device: device}) do
%{data: render_one(device, DeviceView, "device.json")}
end
def render("device.json", %{device: device}) do
%{
identifier: device.identifier... | 21.631579 | 58 | 0.678832 |
dae0f5cc3b4052b0757b1d5ce79447bb5c46c0f8 | 116 | exs | Elixir | test/fixtures/math/complex/add_bench.exs | kianmeng/benchee_dsl | 79e120ded84645192af372a5a45f9256ddb83313 | [
"MIT"
] | 3 | 2020-07-18T11:02:23.000Z | 2021-06-24T12:32:56.000Z | test/fixtures/math/complex/add_bench.exs | kianmeng/benchee_dsl | 79e120ded84645192af372a5a45f9256ddb83313 | [
"MIT"
] | 6 | 2020-05-02T15:32:26.000Z | 2020-10-22T11:33:08.000Z | test/fixtures/math/complex/add_bench.exs | kianmeng/benchee_dsl | 79e120ded84645192af372a5a45f9256ddb83313 | [
"MIT"
] | 1 | 2020-10-22T11:06:05.000Z | 2020-10-22T11:06:05.000Z | defmodule Math.Complex.AddBench do
use BencheeDsl.Benchmark
config time: 1
job do_it do
1 + 1
end
end
| 11.6 | 34 | 0.698276 |
dae112a591e8053d5bc96670a87f02a450bfcd06 | 524 | ex | Elixir | web/models/choice.ex | smpallen99/elixir_survey_tutorial | 24aa40d73cd3254d510e484693c7249ebcf93605 | [
"MIT"
] | 48 | 2015-10-02T19:16:02.000Z | 2022-01-18T20:50:00.000Z | web/models/choice.ex | smpallen99/elixir_survey_tutorial | 24aa40d73cd3254d510e484693c7249ebcf93605 | [
"MIT"
] | 1 | 2017-01-29T21:46:11.000Z | 2017-05-09T02:47:01.000Z | web/models/choice.ex | smpallen99/elixir_survey_tutorial | 24aa40d73cd3254d510e484693c7249ebcf93605 | [
"MIT"
] | 8 | 2015-10-02T19:18:37.000Z | 2019-09-11T06:25:28.000Z | defmodule Survey.Choice do
use Survey.Web, :model
schema "choices" do
field :key, :integer
field :name, :string
belongs_to :question, Survey.Question
has_many :answers, Survey.Answer
timestamps()
end
@fields ~w(key name question_id)
@doc """
Creates a changeset based on the `model` a... | 20.153846 | 61 | 0.671756 |
dae1146b4b3e900205c0885807f37ee161b3703a | 2,841 | ex | Elixir | clients/firestore/lib/google_api/firestore/v1/model/listen_response.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/firestore/lib/google_api/firestore/v1/model/listen_response.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/firestore/lib/google_api/firestore/v1/model/listen_response.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... | 48.152542 | 283 | 0.741992 |
dae14004b37c8912cad55a632ed4e634f18236e4 | 2,317 | ex | Elixir | lib/web/router.ex | suryatmodulus/accent | 6aaf34075c33f3d9d84d38237af4a39b594eb808 | [
"BSD-3-Clause"
] | null | null | null | lib/web/router.ex | suryatmodulus/accent | 6aaf34075c33f3d9d84d38237af4a39b594eb808 | [
"BSD-3-Clause"
] | null | null | null | lib/web/router.ex | suryatmodulus/accent | 6aaf34075c33f3d9d84d38237af4a39b594eb808 | [
"BSD-3-Clause"
] | null | null | null | defmodule Accent.Router do
use Phoenix.Router
use Sentry.Phoenix.Endpoint
pipeline :graphql do
plug(Accent.Plugs.AssignCurrentUser)
plug(Accent.Plugs.SentryUserContext)
plug(Accent.Plugs.BotParamsInjector)
plug(Accent.Plugs.GraphQLContext)
plug(Accent.Plugs.GraphQLOperationNameLogger)
end
... | 30.090909 | 117 | 0.701338 |
dae14d5af0bab51f0d42823b95d0c25e4770f397 | 1,086 | ex | Elixir | lib/photog/api/image.ex | allen-garvey/photog-phoenix | 69cbcffbba905e623fe9c9c236e3be27b678ec75 | [
"MIT"
] | null | null | null | lib/photog/api/image.ex | allen-garvey/photog-phoenix | 69cbcffbba905e623fe9c9c236e3be27b678ec75 | [
"MIT"
] | 1 | 2020-09-05T17:07:35.000Z | 2020-09-05T17:07:35.000Z | lib/photog/api/image.ex | allen-garvey/photog-phoenix | 69cbcffbba905e623fe9c9c236e3be27b678ec75 | [
"MIT"
] | null | null | null | defmodule Photog.Api.Image do
use Ecto.Schema
import Ecto.Changeset
schema "images" do
field :apple_photos_id, :integer
field :creation_time, :utc_datetime
field :is_favorite, :boolean, default: false
field :master_path, :string
field :mini_thumbnail_path, :string
field :thumbnail_path, ... | 31.028571 | 133 | 0.735727 |
dae1768a81ec6e02c96a9b4848975be4fb0cd797 | 353 | exs | Elixir | demo/monster_cfg.exs | laozhp/excg | be946bc19011bf17f35d4fa01ed69ad1a0b9dcaa | [
"MIT"
] | 1 | 2016-08-17T09:34:07.000Z | 2016-08-17T09:34:07.000Z | demo/monster_cfg.exs | laozhp/excg | be946bc19011bf17f35d4fa01ed69ad1a0b9dcaa | [
"MIT"
] | 3 | 2015-09-17T02:47:35.000Z | 2015-09-18T02:51:49.000Z | demo/monster_cfg.exs | laozhp/excg | be946bc19011bf17f35d4fa01ed69ad1a0b9dcaa | [
"MIT"
] | null | null | null | defmodule MonsterCfg do
use Excg
config :monster, "怪物", xml_file: "g怪物.xml", mod_name: :battle do
field :id, "标识", :integer, min: 1, max: 9999, pri_key: true
field :name, "名称", :string, min_len: 1
field :level, "等级", :integer
field :hp, "血气", :integer
field :attack, "攻击", :integer
field :de... | 25.214286 | 66 | 0.617564 |
dae19740b9a8c9a03f75d3d9f8a2fbe9954f45bc | 6,256 | ex | Elixir | lib/broadway/topology/processor_stage.ex | coop/broadway | fd54452485103331a38cc7388387e19731fb8b5f | [
"Apache-2.0"
] | 1,004 | 2020-01-20T15:19:59.000Z | 2022-03-30T07:19:34.000Z | lib/broadway/topology/processor_stage.ex | coop/broadway | fd54452485103331a38cc7388387e19731fb8b5f | [
"Apache-2.0"
] | 130 | 2020-01-26T10:09:30.000Z | 2022-03-21T13:20:11.000Z | lib/broadway/topology/processor_stage.ex | coop/broadway | fd54452485103331a38cc7388387e19731fb8b5f | [
"Apache-2.0"
] | 90 | 2020-01-24T17:01:33.000Z | 2022-02-16T04:42:59.000Z | defmodule Broadway.Topology.ProcessorStage do
@moduledoc false
use GenStage
require Logger
alias Broadway.{Message, Acknowledger}
@spec start_link(term, GenServer.options()) :: GenServer.on_start()
def start_link(args, stage_options) do
Broadway.Topology.Subscriber.start_link(
__MODULE__,
... | 28.962963 | 98 | 0.609015 |
dae20418aff7a6ab5c2351e943a19c1eb29887fe | 707 | ex | Elixir | lib/AutoDemand/Source.ex | membraneframework/membrane_performance_test | 7a4abf74be04a8b37d3899f416a09b29564817d6 | [
"Apache-2.0"
] | null | null | null | lib/AutoDemand/Source.ex | membraneframework/membrane_performance_test | 7a4abf74be04a8b37d3899f416a09b29564817d6 | [
"Apache-2.0"
] | null | null | null | lib/AutoDemand/Source.ex | membraneframework/membrane_performance_test | 7a4abf74be04a8b37d3899f416a09b29564817d6 | [
"Apache-2.0"
] | null | null | null | defmodule AutoDemand.Source do
use Base.Source
def_output_pad :output, caps: :any, demand_unit: :buffers
def_options_with_default()
@impl true
def handle_init(opts) do
Base.Source.handle_init(opts)
end
@impl true
def handle_prepared_to_playing(ctx, state) do
Base.Source.handle_prepared_to_pl... | 21.424242 | 74 | 0.718529 |
dae229ecfc28528e12d5538412cb5dad0312ddfc | 1,441 | ex | Elixir | apps/photog/lib/photog_web/controllers/tag_controller.ex | allen-garvey/phoenix-umbrella | 1d444bbd62a5e7b5f51d317ce2be71ee994125d5 | [
"MIT"
] | 4 | 2019-10-04T16:11:15.000Z | 2021-08-18T21:00:13.000Z | apps/photog/lib/photog_web/controllers/tag_controller.ex | allen-garvey/phoenix-umbrella | 1d444bbd62a5e7b5f51d317ce2be71ee994125d5 | [
"MIT"
] | 5 | 2020-03-16T23:52:25.000Z | 2021-09-03T16:52:17.000Z | apps/photog/lib/photog_web/controllers/tag_controller.ex | allen-garvey/phoenix-umbrella | 1d444bbd62a5e7b5f51d317ce2be71ee994125d5 | [
"MIT"
] | null | null | null | defmodule PhotogWeb.TagController do
use PhotogWeb, :controller
alias Photog.Api
alias Photog.Api.Tag
action_fallback PhotogWeb.FallbackController
def index(conn, %{"sort" => "newest"}) do
tags = Api.list_tags([desc: :id])
render(conn, "index.json", tags: tags)
end
def index(conn, _params) do
... | 25.280702 | 94 | 0.614851 |
dae24c7840dede2394da88ce11f230fe5f6975ba | 832 | exs | Elixir | code/tooling/pbt/mix.exs | alvarocamillont/introdu-o_elixir | 1d72d4f4b01d9312c4b066ce3c0fe8d9bfaaade1 | [
"MIT"
] | null | null | null | code/tooling/pbt/mix.exs | alvarocamillont/introdu-o_elixir | 1d72d4f4b01d9312c4b066ce3c0fe8d9bfaaade1 | [
"MIT"
] | 1 | 2021-03-09T16:27:25.000Z | 2021-03-09T16:27:25.000Z | programming-elixir-book/code/tooling/pbt/mix.exs | jordanhubbard/elixir-projects | dee341d672e83a45a17a4a85abd54a480f95c506 | [
"BSD-2-Clause"
] | null | null | null | #---
# Excerpted from "Programming Elixir ≥ 1.6",
# published by The Pragmatic Bookshelf.
# Copyrights apply to this code. It may not be used to create training material,
# courses, books, articles, and the like. Contact us if you are in doubt.
# We make no guarantees that this code is fit for any purpose.
# Visit http... | 22.486486 | 85 | 0.585337 |
dae2533906d31af991c1c817e5e9210f4c2eca89 | 1,041 | exs | Elixir | test/mail/encoders/seven_bit_test.exs | sam701/elixir-mail | 5771a8b8808c26f7d6adc3a44859f2c140c994e1 | [
"MIT"
] | 387 | 2016-02-09T23:17:51.000Z | 2022-03-31T13:57:05.000Z | test/mail/encoders/seven_bit_test.exs | sam701/elixir-mail | 5771a8b8808c26f7d6adc3a44859f2c140c994e1 | [
"MIT"
] | 84 | 2016-02-09T21:20:11.000Z | 2022-03-10T09:58:43.000Z | test/mail/encoders/seven_bit_test.exs | sam701/elixir-mail | 5771a8b8808c26f7d6adc3a44859f2c140c994e1 | [
"MIT"
] | 70 | 2016-02-10T15:21:44.000Z | 2021-12-08T18:20:25.000Z | defmodule Mail.Encoders.SevenBitTest do
use ExUnit.Case, async: true
test "encode handles empty strings" do
assert Mail.Encoders.SevenBit.encode("") == ""
end
test "encode wraps lines longer than 1000 characters" do
message = String.duplicate("-", 2000)
encoding = Mail.Encoders.SevenBit.encode(mes... | 28.135135 | 69 | 0.679155 |
dae269125444c7a737aa8df877fe654c78aa400f | 1,821 | ex | Elixir | lib/data/quest_progress.ex | the3hm/seraph_mud | c098a22184a0a6bcbd56cacf7b0f176dd173260d | [
"MIT"
] | 2 | 2019-05-14T11:36:44.000Z | 2020-07-01T08:54:04.000Z | lib/data/quest_progress.ex | nickwalton/ex_venture | d8ff1b0181db03f9ddcb7610ae7ab533feecbfbb | [
"MIT"
] | null | null | null | lib/data/quest_progress.ex | nickwalton/ex_venture | d8ff1b0181db03f9ddcb7610ae7ab533feecbfbb | [
"MIT"
] | 1 | 2021-01-29T14:12:40.000Z | 2021-01-29T14:12:40.000Z | defmodule Data.QuestProgress do
@moduledoc """
Quest Progress schema
"""
use Data.Schema
alias Data.Character
alias Data.Quest
@statuses ["active", "complete"]
defmodule Progress do
@moduledoc """
Convert progress keys into integers
"""
@behaviour Ecto.Type
@impl Ecto.Type
... | 23.960526 | 90 | 0.644701 |
dae28368cec9ea0b4852edebed69748f91dcf11a | 253 | exs | Elixir | .formatter.exs | MortadaAK/axon | 42fb2f0d49d0e842653bc18951c5e4e0414e6462 | [
"Apache-2.0"
] | 922 | 2021-04-08T11:48:26.000Z | 2022-03-30T05:17:52.000Z | .formatter.exs | t-rutten/axon | 1ab69552e194bdaa4e5bc85ca116966be872f072 | [
"Apache-2.0"
] | 112 | 2021-04-08T20:27:37.000Z | 2022-03-31T21:22:09.000Z | .formatter.exs | t-rutten/axon | 1ab69552e194bdaa4e5bc85ca116966be872f072 | [
"Apache-2.0"
] | 56 | 2021-04-08T12:54:16.000Z | 2022-03-29T01:36:18.000Z | locals_without_parens = [
defn: 2,
defnp: 2
]
[
locals_without_parens: locals_without_parens,
export: [locals_without_parens: locals_without_parens],
inputs: ["{mix,.formatter}.exs", "{config,lib,test}/**/*.{ex,exs}"],
import_deps: [:nx]
]
| 21.083333 | 70 | 0.687747 |
dae2af34976e6fa0a5dcc7bd58db5ebe9bc3e03e | 1,067 | exs | Elixir | test/status_test.exs | kianmeng/ex_health | f7311d5e23e8cfbb6dd91381a52a420345331535 | [
"MIT"
] | 9 | 2019-03-16T21:24:57.000Z | 2021-12-29T21:31:16.000Z | test/status_test.exs | kianmeng/ex_health | f7311d5e23e8cfbb6dd91381a52a420345331535 | [
"MIT"
] | 13 | 2018-12-11T16:43:26.000Z | 2022-02-09T23:08:01.000Z | test/status_test.exs | kianmeng/ex_health | f7311d5e23e8cfbb6dd91381a52a420345331535 | [
"MIT"
] | 4 | 2019-09-18T00:54:04.000Z | 2021-05-09T05:30:47.000Z | defmodule StatusTest do
use ExUnit.Case, async: true
doctest ExHealth.Status
test "%ExHealth.Status{} has defaults" do
assert %ExHealth.Status{
interval_ms: 15000,
last_check: nil,
result: %{msg: :pending, check_results: []}
} = %ExHealth.Status{}
end
t... | 28.078947 | 73 | 0.585754 |
dae2b10bd3d0c8523ba3131159385bcb5241c30f | 204 | ex | Elixir | lib/ledger_ex.ex | cgarvis/ledger_ex | e1842024cf01b178563a25c8b5383d35c6a1f84d | [
"MIT"
] | null | null | null | lib/ledger_ex.ex | cgarvis/ledger_ex | e1842024cf01b178563a25c8b5383d35c6a1f84d | [
"MIT"
] | null | null | null | lib/ledger_ex.ex | cgarvis/ledger_ex | e1842024cf01b178563a25c8b5383d35c6a1f84d | [
"MIT"
] | null | null | null | defmodule LedgerEx do
@moduledoc """
Documentation for `LedgerEx`.
"""
@doc """
Hello world.
## Examples
iex> LedgerEx.hello()
:world
"""
def hello do
:world
end
end
| 10.736842 | 31 | 0.563725 |
dae2bb7d0242510e96fbeae787507ed02a57c9bf | 708 | ex | Elixir | web/gettext.ex | sahilpaudel/AfterGlow | 0859ec14b47c8c5704cc8e5cba86d39aa258fff5 | [
"MIT"
] | null | null | null | web/gettext.ex | sahilpaudel/AfterGlow | 0859ec14b47c8c5704cc8e5cba86d39aa258fff5 | [
"MIT"
] | null | null | null | web/gettext.ex | sahilpaudel/AfterGlow | 0859ec14b47c8c5704cc8e5cba86d39aa258fff5 | [
"MIT"
] | null | null | null | defmodule AfterGlow.Gettext do
@moduledoc """
A module providing Internationalization with a gettext-based API.
By using [Gettext](https://hexdocs.pm/gettext),
your module gains a set of macros for translations, for example:
import AfterGlow.Gettext
# Simple translation
gettext "Here is the... | 28.32 | 72 | 0.680791 |
dae2d241b0a128fa68449c977856d4479b38f6ef | 475 | ex | Elixir | web/models/playlist.ex | Poniverse/LunaTube-API | 433473f32ec04a636f6de60642e445fd2e478f98 | [
"Apache-2.0"
] | null | null | null | web/models/playlist.ex | Poniverse/LunaTube-API | 433473f32ec04a636f6de60642e445fd2e478f98 | [
"Apache-2.0"
] | null | null | null | web/models/playlist.ex | Poniverse/LunaTube-API | 433473f32ec04a636f6de60642e445fd2e478f98 | [
"Apache-2.0"
] | null | null | null | defmodule Lunatube.Playlist do
use Lunatube.Web, :model
schema "playlists" do
field :name, :string
field :tracks_count, :integer
has_many :playlist_videos, Lunatube.PlaylistVideo
timestamps()
end
@doc """
Builds a changeset based on the `playlist` and `params`.
"""
def changeset(playli... | 20.652174 | 58 | 0.663158 |
dae30585ec24b37eadd4e35e8cca5c979270f18b | 1,517 | ex | Elixir | clients/content/lib/google_api/content/v2/model/account_user.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/model/account_user.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/model/account_user.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"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... | 29.745098 | 77 | 0.725775 |
dae3079bf2cf1c371b05f1ab598ebad6381b359a | 1,078 | exs | Elixir | clients/groups_settings/test/test_helper.exs | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/groups_settings/test/test_helper.exs | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/groups_settings/test/test_helper.exs | 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... | 29.944444 | 83 | 0.742115 |
dae3164a6fb9d33b88111c10b3165ca7de03a682 | 1,452 | ex | Elixir | lib/phoenix_live_view/router.ex | raygesualdo/phoenix_live_view | 824694e8124d2afe9f45bffed52e35ffce524e7d | [
"MIT"
] | 1 | 2021-11-28T23:39:08.000Z | 2021-11-28T23:39:08.000Z | lib/phoenix_live_view/router.ex | raygesualdo/phoenix_live_view | 824694e8124d2afe9f45bffed52e35ffce524e7d | [
"MIT"
] | null | null | null | lib/phoenix_live_view/router.ex | raygesualdo/phoenix_live_view | 824694e8124d2afe9f45bffed52e35ffce524e7d | [
"MIT"
] | 1 | 2021-11-28T23:39:01.000Z | 2021-11-28T23:39:01.000Z | defmodule Phoenix.LiveView.Router do
@moduledoc """
Provides LiveView routing for Phoenix routers.
"""
@doc """
Defines a LiveView route.
## Options
* `:session` - the optional list of keys to pull out of the Plug
connection session and into the LiveView session.
The `:path_params` keys m... | 27.396226 | 79 | 0.639807 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.