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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3f1596bf7e8fbfd85319c55fe3753e234c0e8c21 | 1,864 | ex | Elixir | clients/ad_sense/lib/google_api/ad_sense/v2/model/list_child_accounts_response.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/ad_sense/lib/google_api/ad_sense/v2/model/list_child_accounts_response.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/ad_sense/lib/google_api/ad_sense/v2/model/list_child_accounts_response.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... | 37.28 | 205 | 0.737661 |
3f15c13da742f401eacf3cf04846bf0fb795db0a | 3,209 | exs | Elixir | lib/mix/test/mix/tasks/compile.app_test.exs | mk/elixir | 2b2c66ecf7b1cc2167cae9cc3e88f950994223f1 | [
"Apache-2.0"
] | 4 | 2015-12-22T02:46:39.000Z | 2016-04-26T06:11:09.000Z | lib/mix/test/mix/tasks/compile.app_test.exs | mk/elixir | 2b2c66ecf7b1cc2167cae9cc3e88f950994223f1 | [
"Apache-2.0"
] | null | null | null | lib/mix/test/mix/tasks/compile.app_test.exs | mk/elixir | 2b2c66ecf7b1cc2167cae9cc3e88f950994223f1 | [
"Apache-2.0"
] | 1 | 2020-12-07T08:04:16.000Z | 2020-12-07T08:04:16.000Z | Code.require_file "../../test_helper.exs", __DIR__
defmodule Mix.Tasks.Compile.AppTest do
use MixTest.Case
defmodule CustomProject do
def project do
[app: :custom_project, version: "0.2.0"]
end
def application do
[maxT: :infinity,
applications: [:example_app]]
end
end
defm... | 28.39823 | 93 | 0.626675 |
3f15dda53da9ac03e13353555af589fcf4f530a2 | 3,680 | ex | Elixir | lib/teiserver/account/code_of_conduct_data.ex | badosu/teiserver | 19b623aeb7c2ab28756405f7486e92b714777c54 | [
"MIT"
] | 4 | 2021-07-29T16:23:20.000Z | 2022-02-23T05:34:36.000Z | lib/teiserver/account/code_of_conduct_data.ex | badosu/teiserver | 19b623aeb7c2ab28756405f7486e92b714777c54 | [
"MIT"
] | 14 | 2021-08-01T02:36:14.000Z | 2022-01-30T21:15:03.000Z | lib/teiserver/account/code_of_conduct_data.ex | badosu/teiserver | 19b623aeb7c2ab28756405f7486e92b714777c54 | [
"MIT"
] | 7 | 2021-05-13T12:55:28.000Z | 2022-01-14T06:39:06.000Z | defmodule Teiserver.Account.CodeOfConductData do
alias Central.NestedMaps
@spec data() :: %{String.t() => %{String.t() => String.t()}}
def data do
%{
"1" => %{
"1" => "Promoting illegal activities including but not limited to gambling, drug use, phishing, self-harm and the like; note some of th... | 62.372881 | 264 | 0.674185 |
3f162b6f6e3b1ba582d9ba860530aff7311588bf | 649 | ex | Elixir | lib/prm/web/controllers/global_parameter_controller.ex | EDENLABLLC/prm.api | 86743f26874f47ce3d48010ccf5d2cd596a3474b | [
"Apache-2.0"
] | 1 | 2017-07-27T16:03:28.000Z | 2017-07-27T16:03:28.000Z | lib/prm/web/controllers/global_parameter_controller.ex | EDENLABLLC/prm.api | 86743f26874f47ce3d48010ccf5d2cd596a3474b | [
"Apache-2.0"
] | null | null | null | lib/prm/web/controllers/global_parameter_controller.ex | EDENLABLLC/prm.api | 86743f26874f47ce3d48010ccf5d2cd596a3474b | [
"Apache-2.0"
] | null | null | null | defmodule PRM.Web.GlobalParameterController do
@moduledoc false
use PRM.Web, :controller
alias PRM.GlobalParameters
action_fallback PRM.Web.FallbackController
def index(conn, _params) do
with global_parameters <- GlobalParameters.list_global_parameters() do
render(conn, "index.json", global_para... | 27.041667 | 114 | 0.767334 |
3f163516d4eee07c8e12bb491a925c9f2e48ef3b | 1,487 | ex | Elixir | lib/rasa_sdk/deserializer.ex | henry-hz/rasa-sdk-elixir | 575a57a32b322eb5647bac67bd88e0e03f36685e | [
"Apache-2.0"
] | 3 | 2020-06-18T11:26:33.000Z | 2021-04-19T18:05:42.000Z | lib/rasa_sdk/deserializer.ex | henry-hz/rasa-sdk-elixir | 575a57a32b322eb5647bac67bd88e0e03f36685e | [
"Apache-2.0"
] | null | null | null | lib/rasa_sdk/deserializer.ex | henry-hz/rasa-sdk-elixir | 575a57a32b322eb5647bac67bd88e0e03f36685e | [
"Apache-2.0"
] | 3 | 2020-06-15T22:16:56.000Z | 2021-02-04T01:10:35.000Z | # NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
# https://openapi-generator.tech
# Do not edit the class manually.
defmodule RasaSdk.Deserializer do
@moduledoc """
Helper functions for deserializing responses into models
"""
@doc """
Update the provided model with... | 29.74 | 141 | 0.61735 |
3f163a053d0bd1da87890b77415b20c841d334c8 | 2,327 | exs | Elixir | lib/archive/exercise_service_test.exs | Onlyhope/tokyo | 5579fe134a00f61f14d239a9de72209656391543 | [
"MIT"
] | null | null | null | lib/archive/exercise_service_test.exs | Onlyhope/tokyo | 5579fe134a00f61f14d239a9de72209656391543 | [
"MIT"
] | null | null | null | lib/archive/exercise_service_test.exs | Onlyhope/tokyo | 5579fe134a00f61f14d239a9de72209656391543 | [
"MIT"
] | null | null | null | defmodule TokyoTest.ExerciseService do
use ExUnit.Case
doctest Tokyo.ExerciseService
alias Tokyo.ExerciseService
require Ecto.Query
@default_payload %{
ex_id: "squat_123",
reps: 5,
weights: 135
}
test "create, then delete exercise record" do
saved_re... | 26.146067 | 91 | 0.648045 |
3f16825d637fd18e0ec19a9e2c91892800a1f697 | 102 | exs | Elixir | config/prod.exs | nickveys/slack-churrobot | 1eecbd9dd72185e6efd72cf47b479ee7678532bb | [
"MIT"
] | 1 | 2018-05-18T16:18:03.000Z | 2018-05-18T16:18:03.000Z | config/prod.exs | nickveys/slack-churrobot | 1eecbd9dd72185e6efd72cf47b479ee7678532bb | [
"MIT"
] | null | null | null | config/prod.exs | nickveys/slack-churrobot | 1eecbd9dd72185e6efd72cf47b479ee7678532bb | [
"MIT"
] | null | null | null | use Mix.Config
config :churrobot, Churrobot.Repo,
adapter: Ecto.Adapters.Postgres,
pool_size: 20
| 17 | 34 | 0.764706 |
3f16a258425da92f96f2fe3b28d6a7254f4e8cab | 8,756 | ex | Elixir | _epub/lib/elixir_lang_guide.ex | losvedir/elixir-lang.github.com | 73e58725e0374cf1699fe103a3fd45174191ea78 | [
"Apache-2.0"
] | 1 | 2021-01-09T17:38:43.000Z | 2021-01-09T17:38:43.000Z | _epub/lib/elixir_lang_guide.ex | losvedir/elixir-lang.github.com | 73e58725e0374cf1699fe103a3fd45174191ea78 | [
"Apache-2.0"
] | null | null | null | _epub/lib/elixir_lang_guide.ex | losvedir/elixir-lang.github.com | 73e58725e0374cf1699fe103a3fd45174191ea78 | [
"Apache-2.0"
] | null | null | null | defmodule ElixirLangGuide do
@moduledoc """
Generate EPUB documents for Elixir guides.
"""
@type config :: %{
guide: String.t(),
homepage: String.t(),
output: Path.t(),
root_dir: Path.t(),
scripts: [Path.t()],
styles: [Path.t()],
images: [Pa... | 27.108359 | 96 | 0.594792 |
3f16a9942ed9fcbf3a2d6b009bd9d0e695f35dd1 | 851 | ex | Elixir | apps/eigr_functions/lib/functions/action/supervisor.ex | sleipnir/permastate-elixir | 43cda3a186819c9cfd3ce993907f24251c9ef42b | [
"Apache-2.0"
] | 2 | 2021-07-28T23:02:24.000Z | 2021-07-29T00:34:42.000Z | apps/eigr_functions/lib/functions/action/supervisor.ex | sleipnir/permastate-elixir | 43cda3a186819c9cfd3ce993907f24251c9ef42b | [
"Apache-2.0"
] | null | null | null | apps/eigr_functions/lib/functions/action/supervisor.ex | sleipnir/permastate-elixir | 43cda3a186819c9cfd3ce993907f24251c9ef42b | [
"Apache-2.0"
] | 1 | 2021-07-28T21:31:12.000Z | 2021-07-28T21:31:12.000Z | defmodule Functions.Action.Supervisor do
@moduledoc false
use DynamicSupervisor
@impl true
def init(_opts) do
DynamicSupervisor.init(strategy: :one_for_one)
end
@spec start_link(any) :: :ignore | {:error, any} | {:ok, pid}
def start_link(opts) do
DynamicSupervisor.start_link(__MODULE__, opts, n... | 26.59375 | 88 | 0.673325 |
3f16b391229e62ab0589e0040c2b2398a69edd78 | 9,197 | ex | Elixir | lib/cldr/datetime.ex | tcitworld/cldr_dates_times | 4b2cff026b135caf840c471c42a0d27c4953e2e4 | [
"Apache-2.0"
] | null | null | null | lib/cldr/datetime.ex | tcitworld/cldr_dates_times | 4b2cff026b135caf840c471c42a0d27c4953e2e4 | [
"Apache-2.0"
] | null | null | null | lib/cldr/datetime.ex | tcitworld/cldr_dates_times | 4b2cff026b135caf840c471c42a0d27c4953e2e4 | [
"Apache-2.0"
] | null | null | null | defmodule Cldr.DateTime do
@moduledoc """
Provides localization and formatting of a `DateTime`
struct or any map with the keys `:year`, `:month`,
`:day`, `:calendar`, `:hour`, `:minute`, `:second` and optionally `:microsecond`.
`Cldr.DateTime` provides support for the built-in calendar
`Calendar.ISO` or an... | 37.386179 | 99 | 0.67348 |
3f16e0e132d3010d4e9f2475cdc8337f1fac1525 | 5,011 | ex | Elixir | clients/alert_center/lib/google_api/alert_center/v1beta1/model/alert.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/alert_center/lib/google_api/alert_center/v1beta1/model/alert.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/alert_center/lib/google_api/alert_center/v1beta1/model/alert.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... | 45.144144 | 154 | 0.681301 |
3f16e7c5169681af5cff222a24168e830136fc96 | 189 | ex | Elixir | lib/graphql/type/enum_value.ex | marvinhagemeister/graphql | 43bccc041438f05d14c8c6f40f193c3d7957ca9d | [
"BSD-3-Clause"
] | 719 | 2016-03-18T03:10:46.000Z | 2022-02-02T10:07:29.000Z | lib/graphql/type/enum_value.ex | marvinhagemeister/graphql | 43bccc041438f05d14c8c6f40f193c3d7957ca9d | [
"BSD-3-Clause"
] | 51 | 2015-08-30T03:15:17.000Z | 2016-03-02T07:13:26.000Z | lib/graphql/type/enum_value.ex | marvinhagemeister/graphql | 43bccc041438f05d14c8c6f40f193c3d7957ca9d | [
"BSD-3-Clause"
] | 34 | 2016-03-30T12:56:11.000Z | 2021-08-30T09:21:54.000Z | defmodule GraphQL.Type.EnumValue do
@type t :: %GraphQL.Type.EnumValue{
name: binary,
description: binary,
value: any
}
defstruct name: "", value: "", description: ""
end
| 21 | 48 | 0.650794 |
3f17162e1639346cababc939403e7b9b9baddc13 | 3,547 | exs | Elixir | examples/vision/cnn_image_denoising.exs | goodhamgupta/axon | 759033455e3bd9b9a27b33d3fb9c6241108a7a58 | [
"Apache-2.0"
] | null | null | null | examples/vision/cnn_image_denoising.exs | goodhamgupta/axon | 759033455e3bd9b9a27b33d3fb9c6241108a7a58 | [
"Apache-2.0"
] | null | null | null | examples/vision/cnn_image_denoising.exs | goodhamgupta/axon | 759033455e3bd9b9a27b33d3fb9c6241108a7a58 | [
"Apache-2.0"
] | null | null | null | Mix.install([
{:axon, "~> 0.1.0-dev", github: "elixir-nx/axon"},
{:exla, "~> 0.1.0-dev", github: "elixir-nx/nx", sparse: "exla"},
{:nx, "~> 0.1.0-dev", github: "elixir-nx/nx", sparse: "nx", override: true},
{:scidata, "~> 0.1.0"}
])
EXLA.set_preferred_defn_options([:tpu, :cuda, :rocm, :host])
defmodule MnistD... | 26.871212 | 97 | 0.602763 |
3f1742c59750a9eb16eafd03450293bb0e3d7da3 | 199 | ex | Elixir | lib/cascade.ex | hazen/cascade | b1b8277e40612853a112511c0f1d61e5514bf3b2 | [
"MIT"
] | null | null | null | lib/cascade.ex | hazen/cascade | b1b8277e40612853a112511c0f1d61e5514bf3b2 | [
"MIT"
] | null | null | null | lib/cascade.ex | hazen/cascade | b1b8277e40612853a112511c0f1d61e5514bf3b2 | [
"MIT"
] | null | null | null | defmodule Cascade do
@moduledoc """
Documentation for Cascade.
"""
@doc """
Hello world.
## Examples
iex> Cascade.hello()
:world
"""
def hello do
:world
end
end
| 10.473684 | 28 | 0.562814 |
3f174fe9bf5dacff9e16be68cbf93dd8954cd9f3 | 270 | exs | Elixir | test/test_helper.exs | moogle19/bandit | 610aebaac2ddf76d53faac109b07e519727affb6 | [
"MIT"
] | null | null | null | test/test_helper.exs | moogle19/bandit | 610aebaac2ddf76d53faac109b07e519727affb6 | [
"MIT"
] | null | null | null | test/test_helper.exs | moogle19/bandit | 610aebaac2ddf76d53faac109b07e519727affb6 | [
"MIT"
] | null | null | null | Path.wildcard(Path.join(__DIR__, "support/*.{ex,exs}")) |> Enum.each(&Code.require_file/1)
ExUnit.start()
# Capture all logs so we're able to assert on logging done at info level in tests
Logger.configure(level: :debug)
Logger.configure_backend(:console, level: :warn)
| 38.571429 | 90 | 0.748148 |
3f1784c5460f575ac5bb1b422fbf487f850241a5 | 202 | exs | Elixir | phoenix/priv/repo/migrations/20160503112708_create_post.exs | pfac/generated | 3611d887bb4eba1ef63b1f16ed1dba54ce94f341 | [
"MIT"
] | null | null | null | phoenix/priv/repo/migrations/20160503112708_create_post.exs | pfac/generated | 3611d887bb4eba1ef63b1f16ed1dba54ce94f341 | [
"MIT"
] | null | null | null | phoenix/priv/repo/migrations/20160503112708_create_post.exs | pfac/generated | 3611d887bb4eba1ef63b1f16ed1dba54ce94f341 | [
"MIT"
] | null | null | null | defmodule Phoenix.Repo.Migrations.CreatePost do
use Ecto.Migration
def change do
create table(:post) do
add :title, :string
add :content, :text
timestamps
end
end
end
| 14.428571 | 47 | 0.658416 |
3f17bf805d7aa5abe56c4868eb2de5f1f93cead3 | 1,120 | exs | Elixir | programming/elixir/learning_elixir_code_bundle/code/chapter9/xml.exs | NomikOS/learning | 268f94605214f6861ef476ca7573e68c068ccbe5 | [
"Unlicense"
] | 1 | 2020-01-09T03:22:09.000Z | 2020-01-09T03:22:09.000Z | elixir/tour/learning_elixir_code_bundle/code/chapter9/xml.exs | lijiansong/lang | e255709da2b12e09dea45f86d54f77a19b96f13b | [
"WTFPL"
] | null | null | null | elixir/tour/learning_elixir_code_bundle/code/chapter9/xml.exs | lijiansong/lang | e255709da2b12e09dea45f86d54f77a19b96f13b | [
"WTFPL"
] | null | null | null | defmodule Xml do
def start_buffer(state), do: Agent.start_link(fn -> state end)
def stop_buffer(buffer), do: Agent.stop(buffer)
def put_buffer(buffer, content), do: Agent.update(buffer, &[content | &1])
def render(buffer) do
Agent.get(buffer, &(&1))
|> Enum.reverse
|> Enum.join("")
end
defm... | 24.888889 | 77 | 0.598214 |
3f17f524ee995bfd5edd5dd4d48767de449740d6 | 3,230 | ex | Elixir | lib/changelog_web/views/feed_view.ex | grouville/changelog.com | bd32ea5da444f209722dd4a23d4e4b701b4e2253 | [
"MIT"
] | 1 | 2021-12-07T11:32:34.000Z | 2021-12-07T11:32:34.000Z | lib/changelog_web/views/feed_view.ex | grouville/changelog.com | bd32ea5da444f209722dd4a23d4e4b701b4e2253 | [
"MIT"
] | null | null | null | lib/changelog_web/views/feed_view.ex | grouville/changelog.com | bd32ea5da444f209722dd4a23d4e4b701b4e2253 | [
"MIT"
] | null | null | null | defmodule ChangelogWeb.FeedView do
use ChangelogWeb, :public_view
alias Changelog.{Episode, ListKit, NewsItem, Post}
alias ChangelogWeb.{
Endpoint,
EpisodeView,
NewsItemView,
PersonView,
PodcastView,
PostView,
TimeView
}
def discussion_link(nil), do: ""
def discussion_link(ep... | 32.959184 | 98 | 0.681734 |
3f17f8f0f0021222367a98d54614219bf508b18d | 2,396 | exs | Elixir | exercises/practice/knapsack/test/knapsack_test.exs | devtayls/elixir | 67824de8209ff1b6ed2f736deedfb5bd815130ca | [
"MIT"
] | 343 | 2017-06-22T16:28:28.000Z | 2022-03-25T21:33:32.000Z | exercises/practice/knapsack/test/knapsack_test.exs | devtayls/elixir | 67824de8209ff1b6ed2f736deedfb5bd815130ca | [
"MIT"
] | 583 | 2017-06-19T10:48:40.000Z | 2022-03-28T21:43:12.000Z | exercises/practice/knapsack/test/knapsack_test.exs | devtayls/elixir | 67824de8209ff1b6ed2f736deedfb5bd815130ca | [
"MIT"
] | 228 | 2017-07-05T07:09:32.000Z | 2022-03-27T08:59:08.000Z | defmodule KnapsackTest do
use ExUnit.Case
# @tag :pending
test "no items" do
items = []
maximum_weight = 100
assert Knapsack.maximum_value(items, maximum_weight) == 0
end
@tag :pending
test "one item, too heavy" do
items = [%{value: 1, weight: 100}]
maximum_weight = 10
assert Kna... | 22.392523 | 64 | 0.559683 |
3f18192631911d21b8c0845dd507cec220b4b084 | 5,940 | exs | Elixir | apps/astarte_appengine_api/test/astarte_appengine_api_web/controllers/interface_values_by_group_controller_test.exs | matt-mazzucato/astarte | 34d84941a5019efc42321052f7f34b7d907a38f2 | [
"Apache-2.0"
] | 191 | 2018-03-30T13:23:08.000Z | 2022-03-02T12:05:32.000Z | apps/astarte_appengine_api/test/astarte_appengine_api_web/controllers/interface_values_by_group_controller_test.exs | matt-mazzucato/astarte | 34d84941a5019efc42321052f7f34b7d907a38f2 | [
"Apache-2.0"
] | 402 | 2018-03-30T13:37:00.000Z | 2022-03-31T16:47:10.000Z | apps/astarte_appengine_api/test/astarte_appengine_api_web/controllers/interface_values_by_group_controller_test.exs | matt-mazzucato/astarte | 34d84941a5019efc42321052f7f34b7d907a38f2 | [
"Apache-2.0"
] | 24 | 2018-03-30T13:29:48.000Z | 2022-02-28T11:10:26.000Z | #
# This file is part of Astarte.
#
# Copyright 2019 Ispirata Srl
#
# 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 appl... | 27.627907 | 114 | 0.559259 |
3f1842fbc43b29114d0c95e6a96ff10999bea6f1 | 2,109 | exs | Elixir | mix.exs | kamidev/survey_ap | 483314842cf2e8279e1224e83b57d61a5da143ad | [
"MIT"
] | null | null | null | mix.exs | kamidev/survey_ap | 483314842cf2e8279e1224e83b57d61a5da143ad | [
"MIT"
] | null | null | null | mix.exs | kamidev/survey_ap | 483314842cf2e8279e1224e83b57d61a5da143ad | [
"MIT"
] | null | null | null | defmodule SurveyAPI.Mixfile do
use Mix.Project
def project do
[
app: :survey_api,
version: "1.5.6",
elixir: "~> 1.13",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix, :gettext] ++ Mix.compilers(),
start_permanent: Mix.env() == :prod,
aliases: aliases(),
... | 27.75 | 79 | 0.541015 |
3f186cf5a47b2c90c96ec3042c0ef9401ecacd81 | 872 | ex | Elixir | clients/tpu/lib/google_api/tpu/v1/metadata.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/tpu/lib/google_api/tpu/v1/metadata.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/tpu/lib/google_api/tpu/v1/metadata.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 32.296296 | 74 | 0.755734 |
3f187be598269523430c8a38c8471cbb5dca96a5 | 3,409 | ex | Elixir | clients/surveys/lib/google_api/surveys/v2/api/results.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/surveys/lib/google_api/surveys/v2/api/results.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/surveys/lib/google_api/surveys/v2/api/results.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... | 43.151899 | 187 | 0.668818 |
3f187f0805cc6c63e2dff4076bc41d7d8c76c34d | 2,090 | ex | Elixir | server/lib/realtime/webhook_connector.ex | 0xflotus/realtime | 1fc8e85b3ecb0a8cd39bc4ce29965e857b4bb293 | [
"Apache-2.0"
] | 7 | 2020-07-15T17:57:51.000Z | 2022-01-30T04:37:57.000Z | server/lib/realtime/webhook_connector.ex | 0xflotus/realtime | 1fc8e85b3ecb0a8cd39bc4ce29965e857b4bb293 | [
"Apache-2.0"
] | null | null | null | server/lib/realtime/webhook_connector.ex | 0xflotus/realtime | 1fc8e85b3ecb0a8cd39bc4ce29965e857b4bb293 | [
"Apache-2.0"
] | 1 | 2021-10-14T23:26:46.000Z | 2021-10-14T23:26:46.000Z | defmodule Realtime.WebhookConnector do
# Store the notification function and configuration getter
# so that we can test the module without mocking.
defmodule(State, do: defstruct([:notify, :get_config]))
use GenServer
require Logger
alias Realtime.TransactionFilter
def start_link(_) do
GenServer.sta... | 29.43662 | 99 | 0.697608 |
3f18829c0656f4cec7a3c7eba6e634fef72ff846 | 85,372 | ex | Elixir | clients/sas_portal/lib/google_api/sas_portal/v1alpha1/api/customers.ex | myskoach/elixir-google-api | 4f8cbc2fc38f70ffc120fd7ec48e27e46807b563 | [
"Apache-2.0"
] | null | null | null | clients/sas_portal/lib/google_api/sas_portal/v1alpha1/api/customers.ex | myskoach/elixir-google-api | 4f8cbc2fc38f70ffc120fd7ec48e27e46807b563 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/sas_portal/lib/google_api/sas_portal/v1alpha1/api/customers.ex | myskoach/elixir-google-api | 4f8cbc2fc38f70ffc120fd7ec48e27e46807b563 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 45.997845 | 237 | 0.615729 |
3f18843ff7bf04a820d88a9101d950a284856436 | 1,115 | ex | Elixir | lib/storeHall/items/filters.ex | macypa/storeHall | 9fe810f763527cc87fa165138bdfb3cda92fa553 | [
"MIT"
] | null | null | null | lib/storeHall/items/filters.ex | macypa/storeHall | 9fe810f763527cc87fa165138bdfb3cda92fa553 | [
"MIT"
] | 4 | 2019-07-16T06:24:42.000Z | 2021-05-07T22:26:14.000Z | lib/storeHall/items/filters.ex | macypa/storeHall | 9fe810f763527cc87fa165138bdfb3cda92fa553 | [
"MIT"
] | 1 | 2018-11-23T21:13:31.000Z | 2018-11-23T21:13:31.000Z | defmodule StoreHall.Items.Filters do
use Ecto.Schema
import Ecto.Changeset
schema "item_filters" do
field :count, :integer
field :name, :string
field :type, :string
timestamps(type: :utc_datetime)
end
@doc false
def changeset(filters, attrs) do
filters
|> cast(attrs, [:name, :type... | 23.229167 | 65 | 0.515695 |
3f18ef650ea3d1effceefe1f5e989d78ef373076 | 555 | exs | Elixir | mix.exs | IrinaKostiuk/soa | ce1e79aaaaa42e9b14a9ffa7d3efb915a0403062 | [
"MIT"
] | null | null | null | mix.exs | IrinaKostiuk/soa | ce1e79aaaaa42e9b14a9ffa7d3efb915a0403062 | [
"MIT"
] | null | null | null | mix.exs | IrinaKostiuk/soa | ce1e79aaaaa42e9b14a9ffa7d3efb915a0403062 | [
"MIT"
] | null | null | null | defmodule Soap.MixProject do
use Mix.Project
def project do
[
app: :soa,
version: "0.1.6",
deps: deps(),
package: package(),
description: "SOA Simple Object Access Protocol",
]
end
def deps, do: [{:ex_doc, "~> 0.11", only: :dev}]
def application, do: [extra_applications... | 22.2 | 59 | 0.563964 |
3f18f4b3f1f1b4184726ca5ac65ca853ae79b18b | 1,283 | ex | Elixir | test/support/conn_case.ex | ayushpandey8439/QueuerBackend | 36195b98e02ee8af2b8ba95b9a73547887efb9ce | [
"MIT"
] | null | null | null | test/support/conn_case.ex | ayushpandey8439/QueuerBackend | 36195b98e02ee8af2b8ba95b9a73547887efb9ce | [
"MIT"
] | null | null | null | test/support/conn_case.ex | ayushpandey8439/QueuerBackend | 36195b98e02ee8af2b8ba95b9a73547887efb9ce | [
"MIT"
] | null | null | null | defmodule QueuerbackendWeb.ConnCase do
@moduledoc """
This module defines the test case to be used by
tests that require setting up a connection.
Such tests rely on `Phoenix.ConnTest` and also
import other functionality to make it easier
to build common data structures and query the data layer.
Finally,... | 29.159091 | 75 | 0.733437 |
3f18fdf55462b315987869a8c38803325094106d | 3,003 | ex | Elixir | lib/txt.ex | 5HT/chat-2 | 906497b07ec9149b2b528c31aeda728e8eee67a1 | [
"0BSD"
] | 6 | 2016-03-09T20:47:10.000Z | 2019-05-14T11:54:56.000Z | lib/txt.ex | 5HT/chat-2 | 906497b07ec9149b2b528c31aeda728e8eee67a1 | [
"0BSD"
] | null | null | null | lib/txt.ex | 5HT/chat-2 | 906497b07ec9149b2b528c31aeda728e8eee67a1 | [
"0BSD"
] | 1 | 2021-01-26T22:29:50.000Z | 2021-01-26T22:29:50.000Z | defmodule CHAT.TXT do
@moduledoc """
`CHAT.TXT` is a WebSocket client interface and client
socket protocol (session level) representation and
textual protocol termination.
"""
use N2O, with: [:n2o, :kvs]
require CHAT
defp format_msg(
CHAT."Pub"(bin: pl, key: id, adr: CHAT."Adr"(src: fr, dst: {... | 30.642857 | 97 | 0.500833 |
3f191f306dc4fc5e4dc2766a11c1e09e4ed5a25d | 1,598 | exs | Elixir | test/groupher_server_web/mutation/cms/upvotes/guide_upvote_test.exs | coderplanets/coderplanets_server | 3663e56340d6d050e974c91f7e499d8424fc25e9 | [
"Apache-2.0"
] | 240 | 2018-11-06T09:36:54.000Z | 2022-02-20T07:12:36.000Z | test/groupher_server_web/mutation/cms/upvotes/guide_upvote_test.exs | coderplanets/coderplanets_server | 3663e56340d6d050e974c91f7e499d8424fc25e9 | [
"Apache-2.0"
] | 363 | 2018-07-11T03:38:14.000Z | 2021-12-14T01:42:40.000Z | test/groupher_server_web/mutation/cms/upvotes/guide_upvote_test.exs | mydearxym/mastani_server | f24034a4a5449200165cf4a547964a0961793eab | [
"Apache-2.0"
] | 22 | 2019-01-27T11:47:56.000Z | 2021-02-28T13:17:52.000Z | defmodule GroupherServer.Test.Mutation.Upvotes.GuideUpvote do
@moduledoc false
use GroupherServer.TestTools
alias GroupherServer.CMS
setup do
{:ok, guide} = db_insert(:guide)
{:ok, user} = db_insert(:user)
guest_conn = simu_conn(:guest)
user_conn = simu_conn(:user, user)
{:ok, ~m(user_co... | 24.584615 | 82 | 0.61577 |
3f1931114438746cd5f7ef056c88b9ef40b06fe4 | 175 | ex | Elixir | test/fixtures/elixir/get_silent.ex | csperando/curlconverter | 733f110e5621375701f4424299ccd72e669876f6 | [
"MIT"
] | 536 | 2021-10-06T17:21:25.000Z | 2022-03-31T13:05:48.000Z | test/fixtures/elixir/get_silent.ex | csperando/curlconverter | 733f110e5621375701f4424299ccd72e669876f6 | [
"MIT"
] | 74 | 2021-10-08T13:57:14.000Z | 2022-03-31T06:55:39.000Z | test/fixtures/elixir/get_silent.ex | csperando/curlconverter | 733f110e5621375701f4424299ccd72e669876f6 | [
"MIT"
] | 104 | 2021-10-06T19:36:15.000Z | 2022-03-31T07:34:04.000Z | request = %HTTPoison.Request{
method: :get,
url: "http://localhost:28139",
options: [],
headers: [],
params: [],
body: ""
}
response = HTTPoison.request(request)
| 15.909091 | 37 | 0.617143 |
3f19ae8cbfac7e8a2bd46fd22445183592454869 | 2,335 | ex | Elixir | clients/document_ai/lib/google_api/document_ai/v1beta3/model/google_cloud_documentai_v1beta2_document_label.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_v1beta2_document_label.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_v1beta2_document_label.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... | 40.258621 | 253 | 0.737473 |
3f19b01a496e3f8c053f322eaf6b11604e8fa213 | 1,588 | ex | Elixir | clients/admin/lib/google_api/admin/directory_v1/model/chrome_os_device_active_time_ranges.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/admin/lib/google_api/admin/directory_v1/model/chrome_os_device_active_time_ranges.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/admin/lib/google_api/admin/directory_v1/model/chrome_os_device_active_time_ranges.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... | 31.76 | 97 | 0.729219 |
3f19b2bae4a6110b5ddd82ab17165ced13e49f52 | 6,512 | ex | Elixir | lib/Structs/audit_log.ex | BenAlbin/alchemy | c31bce54e13a692acdba3c3b581ff49090da7604 | [
"MIT"
] | 1 | 2019-02-24T03:13:22.000Z | 2019-02-24T03:13:22.000Z | lib/Structs/audit_log.ex | appositum/alchemy | 2e4c06e198fa8c824183782508610815395d7c0e | [
"MIT"
] | null | null | null | lib/Structs/audit_log.ex | appositum/alchemy | 2e4c06e198fa8c824183782508610815395d7c0e | [
"MIT"
] | null | null | null | defmodule Alchemy.AuditLog do
@moduledoc """
This module contains functions and types related to audit logs.
"""
alias Alchemy.{Guild.Role, OverWrite, User, Webhook}
alias Alchemy.Discord.Guilds
import Alchemy.Discord.RateManager, only: [send_req: 2]
import Alchemy.Structs
@type snowflake :: String.t... | 25.84127 | 142 | 0.598587 |
3f19b450016a362d60143b3fa66b65b2d2e43d7b | 92 | exs | Elixir | example_app/test/views/page_view_test.exs | jespr/noegle | e14953085d38384c80993dd750aa85202db11418 | [
"MIT"
] | null | null | null | example_app/test/views/page_view_test.exs | jespr/noegle | e14953085d38384c80993dd750aa85202db11418 | [
"MIT"
] | 1 | 2017-05-08T15:09:09.000Z | 2017-05-10T06:05:24.000Z | example_app/test/views/page_view_test.exs | jespr/noegle | e14953085d38384c80993dd750aa85202db11418 | [
"MIT"
] | null | null | null | defmodule NoegleExampleApp.PageViewTest do
use NoegleExampleApp.ConnCase, async: true
end
| 23 | 44 | 0.847826 |
3f19c5bfbefa4bc3a384afaa6f4473eeccdbbaa8 | 679 | exs | Elixir | config/test.exs | irisTa56/sdo_elixir | de856596c462141477bb27aee5d63cb7b95a3b67 | [
"MIT"
] | null | null | null | config/test.exs | irisTa56/sdo_elixir | de856596c462141477bb27aee5d63cb7b95a3b67 | [
"MIT"
] | 2 | 2021-03-10T17:42:11.000Z | 2021-05-11T13:38:31.000Z | config/test.exs | irisTa56/sdo_elixir | de856596c462141477bb27aee5d63cb7b95a3b67 | [
"MIT"
] | null | null | null | import Config
# Configure your database
#
# The MIX_TEST_PARTITION environment variable can be used
# to provide built-in test partitioning in CI environment.
# Run `mix help test` for more information.
config :sdo_phoenix, SdoPhoenix.Repo,
username: "postgres",
password: "postgres",
database: "sdo_phoenix_test#... | 29.521739 | 70 | 0.755523 |
3f19c7f6e756a1388fdca9d4f1fd3d2268d79d05 | 584 | ex | Elixir | web/policies/column_value.ex | sahilpaudel/AfterGlow | 0859ec14b47c8c5704cc8e5cba86d39aa258fff5 | [
"MIT"
] | null | null | null | web/policies/column_value.ex | sahilpaudel/AfterGlow | 0859ec14b47c8c5704cc8e5cba86d39aa258fff5 | [
"MIT"
] | null | null | null | web/policies/column_value.ex | sahilpaudel/AfterGlow | 0859ec14b47c8c5704cc8e5cba86d39aa258fff5 | [
"MIT"
] | null | null | null | defmodule AfterGlow.ColumnValue.Policy do
import AfterGlow.Policy.Helpers
def can?(nil, _action, _column_value), do: false
def can?(user, :index, _column_value), do: has_permission(user, "Question.show")
def can?(user, :show, _column_value), do: has_permission(user, "Question.show")
def can?(user, :update, _c... | 48.666667 | 85 | 0.729452 |
3f1a17415df14da8428f6504d432738e796975b7 | 1,276 | ex | Elixir | lib/examples_web/router.ex | iodevs/chart_example | 69202596fbf8a7b802c21d45d021f0021406ad39 | [
"MIT"
] | null | null | null | lib/examples_web/router.ex | iodevs/chart_example | 69202596fbf8a7b802c21d45d021f0021406ad39 | [
"MIT"
] | null | null | null | lib/examples_web/router.ex | iodevs/chart_example | 69202596fbf8a7b802c21d45d021f0021406ad39 | [
"MIT"
] | null | null | null | defmodule ExamplesWeb.Router do
use ExamplesWeb, :router
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_live_flash
plug :put_root_layout, {ExamplesWeb.LayoutView, :root}
plug :protect_from_forgery
plug :put_secure_browser_headers
end
pipeline :api do
p... | 26.583333 | 70 | 0.699843 |
3f1a28831004858f6f72442884597d90606ca3a8 | 1,539 | exs | Elixir | test/pipelines/write_to_file_test.exs | harlantwood/crawly | d57a1b97e4a909d20f03f063a27157c8209367c4 | [
"Apache-2.0"
] | null | null | null | test/pipelines/write_to_file_test.exs | harlantwood/crawly | d57a1b97e4a909d20f03f063a27157c8209367c4 | [
"Apache-2.0"
] | null | null | null | test/pipelines/write_to_file_test.exs | harlantwood/crawly | d57a1b97e4a909d20f03f063a27157c8209367c4 | [
"Apache-2.0"
] | null | null | null | defmodule Pipelines.WriteToFileTest do
use ExUnit.Case, async: false
@binary "Some binary"
setup do
on_exit(fn ->
Application.put_env(:crawly, :"Crawly.Pipelines.WriteToFile", nil)
:meck.unload(IO)
:meck.unload(File)
end)
end
test "Writes a given item to a file with global config"... | 17.292135 | 72 | 0.563353 |
3f1a674537fb529d041180670af4b30d37f1dbc5 | 1,191 | ex | Elixir | examples/example-phx-1_2/lib/example/endpoint.ex | devshane/thesis-phoenix | afe22a25542f91e15cfffb1e93ff8d833a64c25b | [
"MIT"
] | 681 | 2016-06-21T20:49:21.000Z | 2022-02-19T04:08:38.000Z | examples/example-phx-1_2/lib/example/endpoint.ex | devshane/thesis-phoenix | afe22a25542f91e15cfffb1e93ff8d833a64c25b | [
"MIT"
] | 125 | 2016-06-21T21:14:49.000Z | 2020-12-12T20:15:48.000Z | examples/example-phx-1_2/lib/example/endpoint.ex | devshane/thesis-phoenix | afe22a25542f91e15cfffb1e93ff8d833a64c25b | [
"MIT"
] | 76 | 2016-09-06T03:40:55.000Z | 2022-01-20T21:29:22.000Z | defmodule Example.Endpoint do
use Phoenix.Endpoint, otp_app: :example
socket "/socket", Example.UserSocket
# Serve at "/" the static files from "priv/static" directory.
#
# You should set gzip to true if you are running phoenix.digest
# when deploying your static files in production.
plug Plug.Static,
... | 27.697674 | 69 | 0.714526 |
3f1a87f407973ac5639c0f92e69ec758d30469a6 | 347 | exs | Elixir | priv/repo/migrations/20210811162849_add_oban_jobs_table.exs | Kapeusz/employee_reward_app | 738d1514ec733b0e8027423e740abdbdc27716d0 | [
"PostgreSQL",
"MIT"
] | null | null | null | priv/repo/migrations/20210811162849_add_oban_jobs_table.exs | Kapeusz/employee_reward_app | 738d1514ec733b0e8027423e740abdbdc27716d0 | [
"PostgreSQL",
"MIT"
] | null | null | null | priv/repo/migrations/20210811162849_add_oban_jobs_table.exs | Kapeusz/employee_reward_app | 738d1514ec733b0e8027423e740abdbdc27716d0 | [
"PostgreSQL",
"MIT"
] | null | null | null | defmodule EmployeeRewardApp.Repo.Migrations.AddObanJobsTable do
use Ecto.Migration
def up do
Oban.Migrations.up()
end
# We specify `version: 1` in `down`, ensuring that we'll roll all the way back down if
# necessary, regardless of which version we've migrated `up` to.
def down do
Oban.Migrations.... | 24.785714 | 88 | 0.726225 |
3f1abca51bd89b8cc78f1f6cfa86dce3543c612f | 4,455 | ex | Elixir | apps/ewallet_db/lib/ewallet_db/token.ex | vanmil/ewallet | 6c1aca95a83e0a9d93007670a40d8c45764a8122 | [
"Apache-2.0"
] | null | null | null | apps/ewallet_db/lib/ewallet_db/token.ex | vanmil/ewallet | 6c1aca95a83e0a9d93007670a40d8c45764a8122 | [
"Apache-2.0"
] | null | null | null | apps/ewallet_db/lib/ewallet_db/token.ex | vanmil/ewallet | 6c1aca95a83e0a9d93007670a40d8c45764a8122 | [
"Apache-2.0"
] | null | null | null | defmodule EWalletDB.Token do
@moduledoc """
Ecto Schema representing tokens.
"""
use Ecto.Schema
use EWalletDB.Types.ExternalID
import Ecto.{Changeset, Query}
import EWalletDB.Helpers.Preloader
import EWalletDB.Validator
alias Ecto.UUID
alias EWalletDB.{Repo, Account, Token}
alias ExULID.ULID
@... | 21.626214 | 80 | 0.600449 |
3f1ac27338010e491d9c093744294512720ff3ec | 152 | ex | Elixir | lib/teslamate_web/views/geo_fence_view.ex | tlogik/teslamate | 3d13056bdf60b97dac4b4eb1b538543ed305b53b | [
"MIT"
] | 1 | 2020-05-17T05:05:22.000Z | 2020-05-17T05:05:22.000Z | lib/teslamate_web/views/geo_fence_view.ex | tlogik/teslamate | 3d13056bdf60b97dac4b4eb1b538543ed305b53b | [
"MIT"
] | null | null | null | lib/teslamate_web/views/geo_fence_view.ex | tlogik/teslamate | 3d13056bdf60b97dac4b4eb1b538543ed305b53b | [
"MIT"
] | null | null | null | defmodule TeslaMateWeb.GeoFenceView do
use TeslaMateWeb, :view
alias TeslaMateWeb.GeoFenceLive
import TeslaMate.Convert, only: [m_to_ft: 1]
end
| 19 | 46 | 0.789474 |
3f1ac75166f24d437b66a9674cac3de8c4e6d70d | 245 | ex | Elixir | lib/demo.ex | juliandicks/phoenix-startbootstrap-sb-admin-2 | 609e78528684b00ab7228abc136c1c2b692590de | [
"MIT"
] | 40 | 2017-09-07T03:25:23.000Z | 2022-02-27T04:47:14.000Z | lib/demo.ex | juliandicks/phoenix-startbootstrap-sb-admin-2 | 609e78528684b00ab7228abc136c1c2b692590de | [
"MIT"
] | 12 | 2021-07-06T21:08:21.000Z | 2021-09-27T11:11:19.000Z | lib/demo.ex | juliandicks/phoenix-startbootstrap-sb-admin-2 | 609e78528684b00ab7228abc136c1c2b692590de | [
"MIT"
] | 15 | 2017-09-29T09:16:11.000Z | 2022-01-19T22:48:14.000Z | defmodule Demo do
@moduledoc """
Demo keeps the contexts that define your domain
and business logic.
Contexts are also responsible for managing your data, regardless
if it comes from the database, an external API or others.
"""
end
| 24.5 | 66 | 0.746939 |
3f1adb56c04400f1949bde3d2ecbafc24c2e0d35 | 6,783 | exs | Elixir | test/event/handler_config_test.exs | Cantido/commanded | e8058c4381e16547e6960eaf9f38619c6a43b18f | [
"MIT"
] | 1,220 | 2017-10-31T10:56:40.000Z | 2022-03-31T17:40:19.000Z | test/event/handler_config_test.exs | Cantido/commanded | e8058c4381e16547e6960eaf9f38619c6a43b18f | [
"MIT"
] | 294 | 2017-11-03T10:33:41.000Z | 2022-03-24T08:36:42.000Z | test/event/handler_config_test.exs | Cantido/commanded | e8058c4381e16547e6960eaf9f38619c6a43b18f | [
"MIT"
] | 208 | 2017-11-03T10:56:47.000Z | 2022-03-14T05:49:38.000Z | defmodule Commanded.Event.HandlerConfigTest do
use ExUnit.Case
alias Commanded.DefaultApp
defmodule DefaultConfigHandler do
use Commanded.Event.Handler,
application: DefaultApp,
name: __MODULE__
end
setup do
start_supervised!(DefaultApp)
:ok
end
test "should default to `:eventu... | 28.86383 | 118 | 0.676987 |
3f1b0d22415e5fa4cea7f05e4cadfcdb239cf4c0 | 3,361 | ex | Elixir | lib/event_store/storage.ex | kaikuchn/eventstore | cfe77cb22860526ef3591ba43649ceffc3175259 | [
"MIT"
] | null | null | null | lib/event_store/storage.ex | kaikuchn/eventstore | cfe77cb22860526ef3591ba43649ceffc3175259 | [
"MIT"
] | null | null | null | lib/event_store/storage.ex | kaikuchn/eventstore | cfe77cb22860526ef3591ba43649ceffc3175259 | [
"MIT"
] | null | null | null | defmodule EventStore.Storage do
@moduledoc false
alias EventStore.Snapshots.SnapshotData
alias EventStore.Storage.{
Appender,
CreateStream,
DeleteStream,
QueryStreamInfo,
Reader,
Snapshot,
Subscription
}
@doc """
Create a new event stream with the given unique identifier.
""... | 29.482456 | 94 | 0.708718 |
3f1b113442c2f5f72944fb0ba1838cc1aa216c40 | 888 | ex | Elixir | clients/recommender/lib/google_api/recommender/v1/metadata.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/recommender/lib/google_api/recommender/v1/metadata.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/recommender/lib/google_api/recommender/v1/metadata.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 32.888889 | 74 | 0.760135 |
3f1b12a86a93da3a4de9a6b788d0280954ae0c25 | 4,994 | ex | Elixir | apps/dtask_tui/lib/dtask/tui/views/task_common.ex | fehu/elixir-dtask | 93b39a1acb616cdc7b4fffb4950e82021ef5b0f6 | [
"MIT"
] | null | null | null | apps/dtask_tui/lib/dtask/tui/views/task_common.ex | fehu/elixir-dtask | 93b39a1acb616cdc7b4fffb4950e82021ef5b0f6 | [
"MIT"
] | null | null | null | apps/dtask_tui/lib/dtask/tui/views/task_common.ex | fehu/elixir-dtask | 93b39a1acb616cdc7b4fffb4950e82021ef5b0f6 | [
"MIT"
] | null | null | null | defmodule DTask.TUI.Views.TaskCommon do
@moduledoc false
alias DTask.Task.DTO.Progress
alias DTask.TUI
alias Ratatouille.Constants
import DTask.Util.Syntax
@default_color Constants.color(:default)
@pending_label "pending"
@pending_color @default_color
@running_label "running"
@running_color Con... | 32.428571 | 100 | 0.630156 |
3f1b36bde956ac33cee08730d766ff369ab98c05 | 2,470 | ex | Elixir | lib/flamelex/gui/components/memex/sub_components/hypercard/hypercard_tagsbox.ex | JediLuke/flamelex | b38d1171b8f93375d8dc59f1710442860b6c8580 | [
"Apache-2.0"
] | 10 | 2021-03-02T20:05:13.000Z | 2022-03-14T21:10:39.000Z | lib/flamelex/gui/components/memex/sub_components/hypercard/hypercard_tagsbox.ex | JediLuke/flamelex | b38d1171b8f93375d8dc59f1710442860b6c8580 | [
"Apache-2.0"
] | 2 | 2021-12-14T18:29:44.000Z | 2021-12-23T20:38:27.000Z | lib/flamelex/gui/components/memex/sub_components/hypercard/hypercard_tagsbox.ex | JediLuke/flamelex | b38d1171b8f93375d8dc59f1710442860b6c8580 | [
"Apache-2.0"
] | 2 | 2021-12-05T20:41:26.000Z | 2021-12-26T01:46:42.000Z | defmodule Flamelex.GUI.Component.Memex.HyperCard.TagsBox do
use Scenic.Component
use Flamelex.ProjectAliases
require Logger
@component_id :hypercard_tagsbox
@background_color :red
def validate(%{frame: %Frame{} = _f} = data) do
Logger.debug "#{__MODULE__} accepted params: #{inspect dat... | 30.493827 | 139 | 0.578543 |
3f1b47731ebd90eb9bb7104abc90434076d05029 | 400 | ex | Elixir | web_finngen_r6/lib/risteys_web/channels/stats_data_channel.ex | vincent-octo/risteys | 5bb1e70b78988770048b91b42fad025faf98d84a | [
"MIT"
] | null | null | null | web_finngen_r6/lib/risteys_web/channels/stats_data_channel.ex | vincent-octo/risteys | 5bb1e70b78988770048b91b42fad025faf98d84a | [
"MIT"
] | null | null | null | web_finngen_r6/lib/risteys_web/channels/stats_data_channel.ex | vincent-octo/risteys | 5bb1e70b78988770048b91b42fad025faf98d84a | [
"MIT"
] | null | null | null | defmodule RisteysWeb.StatsDataChannel do
use RisteysWeb, :channel
alias Risteys.FGEndpoint
def join("stats_data", _payload, socket) do
{:ok, socket}
end
def handle_in("get_correlations", %{"endpoint" => endpoint_name}, socket) do
payload = FGEndpoint.list_correlations(endpoint_name)
:ok = push(... | 25 | 78 | 0.715 |
3f1b4b7beec22500f76f55a69d23b9229f9ce2a9 | 11,308 | ex | Elixir | lib/map_list.ex | imahiro-t/smallex | 5fbc7080fde7f63b3440d8325f45d61f5d1b5bc3 | [
"Apache-2.0"
] | 7 | 2020-01-13T21:17:28.000Z | 2021-11-15T12:10:55.000Z | lib/map_list.ex | data-maestro/smallex | 5fbc7080fde7f63b3440d8325f45d61f5d1b5bc3 | [
"Apache-2.0"
] | 26 | 2021-02-25T09:22:28.000Z | 2021-06-11T02:59:11.000Z | lib/map_list.ex | data-maestro/smallex | 5fbc7080fde7f63b3440d8325f45d61f5d1b5bc3 | [
"Apache-2.0"
] | 2 | 2018-01-02T17:59:40.000Z | 2018-01-12T17:16:02.000Z | defmodule MapList do
@moduledoc """
Map list library.
"""
@doc """
To CSV (Pickup keys from first line)
## Examples (Comment out as doctest does not work)
#iex> MapList.to_csv( [ %{ "c1" => "v1", "c2" => 2, "c3" => true }, %{ "c1" => "v2", "c2" => 5, "c3" => false } ] )
#"c1,c2,c3\n\"v1\",\"2\",\"true\"\n\"... | 54.365385 | 171 | 0.429696 |
3f1b72d0fbdb259229bab74f766459402e9b4eb8 | 4,365 | ex | Elixir | lib/scanner_module.ex | dmyers87/lowendinsight | 5c5426d521a97d8a754261da5328ebeb52beb1fa | [
"BSD-3-Clause"
] | 9 | 2020-04-07T17:22:15.000Z | 2022-01-29T21:56:07.000Z | lib/scanner_module.ex | dmyers87/lowendinsight | 5c5426d521a97d8a754261da5328ebeb52beb1fa | [
"BSD-3-Clause"
] | 49 | 2020-03-03T16:18:50.000Z | 2021-05-29T13:48:04.000Z | lib/scanner_module.ex | dmyers87/lowendinsight | 5c5426d521a97d8a754261da5328ebeb52beb1fa | [
"BSD-3-Clause"
] | 3 | 2020-05-14T16:26:03.000Z | 2022-01-24T22:03:40.000Z | # Copyright (C) 2020 by the Georgia Tech Research Institute (GTRI)
# This software may be modified and distributed under the terms of
# the BSD 3-Clause license. See the LICENSE file for details.
defmodule ScannerModule do
@moduledoc """
Scanner scans.
"""
def dependencies(path) do
cwd = File.cwd!()
... | 27.45283 | 94 | 0.589003 |
3f1b8683152b8dbc99a47ef3a1b4ba1aafebadb6 | 1,895 | ex | Elixir | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_intent_message_link_out_suggestion.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_intent_message_link_out_suggestion.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_intent_message_link_out_suggestion.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... | 33.245614 | 127 | 0.737731 |
3f1ba0dcee455f77a8b0c5cdb963d51839a41197 | 2,131 | ex | Elixir | clients/you_tube/lib/google_api/you_tube/v3/model/link_card.ex | ukrbublik/elixir-google-api | 364cec36bc76f60bec94cbcad34844367a29d174 | [
"Apache-2.0"
] | null | null | null | clients/you_tube/lib/google_api/you_tube/v3/model/link_card.ex | ukrbublik/elixir-google-api | 364cec36bc76f60bec94cbcad34844367a29d174 | [
"Apache-2.0"
] | null | null | null | clients/you_tube/lib/google_api/you_tube/v3/model/link_card.ex | ukrbublik/elixir-google-api | 364cec36bc76f60bec94cbcad34844367a29d174 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 36.118644 | 131 | 0.702487 |
3f1ba847742533fdee43625ac1ff46609fa485d5 | 16,611 | ex | Elixir | lib/ecto/multi.ex | jccf091/ecto | 42d47a6da0711f842e1a0e6724a89b318b9b2144 | [
"Apache-2.0"
] | 1 | 2017-11-27T06:00:32.000Z | 2017-11-27T06:00:32.000Z | lib/ecto/multi.ex | jccf091/ecto | 42d47a6da0711f842e1a0e6724a89b318b9b2144 | [
"Apache-2.0"
] | null | null | null | lib/ecto/multi.ex | jccf091/ecto | 42d47a6da0711f842e1a0e6724a89b318b9b2144 | [
"Apache-2.0"
] | null | null | null | defmodule Ecto.Multi do
@moduledoc """
`Ecto.Multi` is a data structure for grouping multiple Repo operations.
`Ecto.Multi` makes it possible to pack operations that should be
performed in a single database transaction and gives a way to introspect
the queued operations without actually performing them. Each... | 35.87689 | 106 | 0.664499 |
3f1bc46b113a7a2a70df236496c23d4b506dd6fe | 416 | exs | Elixir | priv/repo/migrations/20170109200028_create_ui_dismissal.exs | usecanvas/api-v2 | 59214db3a2cf12eb939f22fed320fd10cb47cdfe | [
"Apache-2.0"
] | 123 | 2017-04-04T18:15:48.000Z | 2021-04-26T08:04:22.000Z | priv/repo/migrations/20170109200028_create_ui_dismissal.exs | usecanvas/api-v2 | 59214db3a2cf12eb939f22fed320fd10cb47cdfe | [
"Apache-2.0"
] | null | null | null | priv/repo/migrations/20170109200028_create_ui_dismissal.exs | usecanvas/api-v2 | 59214db3a2cf12eb939f22fed320fd10cb47cdfe | [
"Apache-2.0"
] | 17 | 2017-04-04T18:58:29.000Z | 2021-05-10T21:39:16.000Z | defmodule CanvasAPI.Repo.Migrations.CreateUIDismissal do
use Ecto.Migration
def change do
create table(:ui_dismissals, primary_key: false) do
add :id, :binary_id, primary_key: true
add :identifier, :text
add :account_id, references(:accounts, on_delete: :nothing, type: :binary_id)
time... | 26 | 83 | 0.711538 |
3f1bcdcf87cda849f9c1ebc1d1df9860600b92ae | 2,621 | ex | Elixir | lib/quadquizaminos/brick.ex | sparrell/quizquadaminos | 6388252b7c32aa4101486cbf45d0d57d4e3a79da | [
"MIT"
] | 1 | 2022-01-11T20:06:31.000Z | 2022-01-11T20:06:31.000Z | lib/quadquizaminos/brick.ex | sFractal-Podii/quizquadaminos | 4c9023b9c6212a92741b0f21d9eb05871aa73916 | [
"MIT"
] | 484 | 2021-02-15T18:43:40.000Z | 2022-03-29T12:27:24.000Z | lib/quadquizaminos/brick.ex | sFractal-Podii/quizquadaminos | 4c9023b9c6212a92741b0f21d9eb05871aa73916 | [
"MIT"
] | 8 | 2021-02-15T19:12:51.000Z | 2021-12-15T03:02:46.000Z | defmodule Quadquizaminos.Brick do
@x_center 40
defstruct name: :i,
location: {40, 0},
rotation: 0,
reflection: false
alias Quadquizaminos.Points
def new(attributes \\ []), do: __struct__(attributes)
def new_random do
%__MODULE__{
name: random_name(),
loc... | 16.694268 | 55 | 0.529569 |
3f1bf09d2733156a48201f10fe1a9f2166520d4e | 18,242 | ex | Elixir | lib/ecto/repo/preloader.ex | gjaldon/ecto | a81aba7840afcf53c3408de17b756ec415a866d6 | [
"Apache-2.0"
] | null | null | null | lib/ecto/repo/preloader.ex | gjaldon/ecto | a81aba7840afcf53c3408de17b756ec415a866d6 | [
"Apache-2.0"
] | null | null | null | lib/ecto/repo/preloader.ex | gjaldon/ecto | a81aba7840afcf53c3408de17b756ec415a866d6 | [
"Apache-2.0"
] | null | null | null | defmodule Ecto.Repo.Preloader do
# The module invoked by user defined repo_names
# for preload related functionality.
@moduledoc false
require Ecto.Query
require Logger
@doc """
Transforms a result set based on query preloads, loading
the associations onto their parent schema.
"""
@spec query([lis... | 34.680608 | 115 | 0.617641 |
3f1bf1f6b4b6d26a805b584f4b37b92c0ce5b44e | 259 | ex | Elixir | lib/media_sample/enums/section_type.ex | kenta-aktsk/media_sample | a0368236bd81c18ac136a54aa7383332a5e3cf36 | [
"MIT"
] | 99 | 2016-04-19T11:11:57.000Z | 2021-12-12T14:38:02.000Z | lib/media_sample/enums/section_type.ex | ogamw/media_sample | a0368236bd81c18ac136a54aa7383332a5e3cf36 | [
"MIT"
] | 48 | 2016-04-06T02:28:46.000Z | 2016-05-31T06:56:56.000Z | lib/media_sample/enums/section_type.ex | ogamw/media_sample | a0368236bd81c18ac136a54aa7383332a5e3cf36 | [
"MIT"
] | 32 | 2016-04-19T11:12:00.000Z | 2021-03-25T18:19:52.000Z | defmodule MediaSample.Enums.SectionType do
use ExEnum
row id: 1, type: :text, text: "text"
row id: 2, type: :image, text: "image"
row id: 3, type: :quote, text: "quote"
row id: 4, type: :header, text: "header"
accessor :type
translate :text
end
| 25.9 | 42 | 0.660232 |
3f1c0d97b6fe6bf697364c96feb96df1b6ba723f | 3,368 | ex | Elixir | clients/books/lib/google_api/books/v1/model/download_access_restriction.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/books/lib/google_api/books/v1/model/download_access_restriction.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/books/lib/google_api/books/v1/model/download_access_restriction.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... | 41.580247 | 211 | 0.713183 |
3f1c1ef717455c5bf89eb383ae7cc6970bbcdfde | 534 | exs | Elixir | apps/legion/test/identity/information/political/intermediate_region_test.exs | i386-64/legion | 41ae99af9be962d7fb38726ddf4bb0456edb5ca4 | [
"Apache-2.0"
] | 1 | 2021-01-04T11:06:12.000Z | 2021-01-04T11:06:12.000Z | apps/legion/test/identity/information/political/intermediate_region_test.exs | i386-64/legion | 41ae99af9be962d7fb38726ddf4bb0456edb5ca4 | [
"Apache-2.0"
] | 3 | 2021-01-30T06:40:37.000Z | 2021-01-30T06:41:08.000Z | apps/legion/test/identity/information/political/intermediate_region_test.exs | i386-64/legion | 41ae99af9be962d7fb38726ddf4bb0456edb5ca4 | [
"Apache-2.0"
] | null | null | null | defmodule Legion.Identity.Information.Political.IntermediateRegionTest do
@moduledoc false
use Legion.DataCase
alias Legion.Identity.Information.Political.IntermediateRegion
@attr %{name: "name", subregion_name: "subregion_name", code: 123_456}
test "changeset will error no matter what" do
refute Inter... | 31.411765 | 76 | 0.784644 |
3f1c4ead82a669606a9c6271f5a0b32e00b1cddf | 1,666 | ex | Elixir | lib/mix/lib/mix/dep/umbrella.ex | pap/elixir | c803afe90c766663823c74397fb23ed40ec52c5b | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/dep/umbrella.ex | pap/elixir | c803afe90c766663823c74397fb23ed40ec52c5b | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/dep/umbrella.ex | pap/elixir | c803afe90c766663823c74397fb23ed40ec52c5b | [
"Apache-2.0"
] | null | null | null | defmodule Mix.Dep.Umbrella do
@moduledoc false
@doc """
Gets all umbrella dependencies in unloaded format.
"""
def unloaded do
config = Mix.Project.config
if apps_path = config[:apps_path] do
paths = Path.wildcard(Path.join(apps_path, "*/mix.exs")) |> Enum.map(&Path.dirname/1)
build = Mi... | 25.630769 | 91 | 0.611645 |
3f1c4fd0fbaa8930db329f0b9d78955272a45e61 | 863 | ex | Elixir | apps/artemis/lib/artemis/contexts/user_role/get_and_delete_user_role.ex | artemis-platform/artemis_dashboard | 5ab3f5ac4c5255478bbebf76f0e43b44992e3cab | [
"MIT"
] | 9 | 2019-08-19T19:56:34.000Z | 2022-03-22T17:56:38.000Z | apps/artemis/lib/artemis/contexts/user_role/get_and_delete_user_role.ex | chrislaskey/artemis_teams | 9930c3d9528e37b76f0525390e32b66eed7eadde | [
"MIT"
] | 7 | 2019-07-12T21:41:01.000Z | 2020-08-17T21:29:22.000Z | apps/artemis/lib/artemis/contexts/user_role/get_and_delete_user_role.ex | chrislaskey/artemis_teams | 9930c3d9528e37b76f0525390e32b66eed7eadde | [
"MIT"
] | 2 | 2019-07-05T22:51:47.000Z | 2019-08-19T19:56:37.000Z | defmodule Artemis.GetAndDeleteUserRole do
use Artemis.Context
alias Artemis.DeleteUserRole
alias Artemis.GetUserRole
def call(user_id, role_id, params, creator) do
params
|> Map.put("created_by", creator)
|> Map.put("role_id", role_id)
|> Map.put("user_id", user_id)
|> call(creator)
end
... | 22.710526 | 63 | 0.668598 |
3f1c56f68012052eaa1e460d00c6132222d849d7 | 1,457 | ex | Elixir | clients/document_ai/lib/google_api/document_ai/v1/model/google_cloud_documentai_v1_undeploy_processor_version_response.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/document_ai/lib/google_api/document_ai/v1/model/google_cloud_documentai_v1_undeploy_processor_version_response.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/document_ai/lib/google_api/document_ai/v1/model/google_cloud_documentai_v1_undeploy_processor_version_response.ex | dazuma/elixir-google-api | 6a9897168008efe07a6081d2326735fe332e522c | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 31 | 98 | 0.777625 |
3f1c7ac320cfb7b2bcb3ce7f2578ce0bff8f67e3 | 675 | exs | Elixir | mix.exs | mblayman/ex_unit_tap | 860f8b2b6d1aba10844bc9e78f12b572ff6ec961 | [
"MIT"
] | null | null | null | mix.exs | mblayman/ex_unit_tap | 860f8b2b6d1aba10844bc9e78f12b572ff6ec961 | [
"MIT"
] | 1 | 2016-07-24T01:31:37.000Z | 2016-07-24T01:31:37.000Z | mix.exs | mblayman/ex_unit_tap | 860f8b2b6d1aba10844bc9e78f12b572ff6ec961 | [
"MIT"
] | null | null | null | defmodule ExUnitTap.Mixfile do
use Mix.Project
def project do
[app: :ex_unit_tap,
version: "0.1.0",
elixir: "~> 1.3",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps()]
end
# Configuration for the OTP application
#
# Type "mix help compile.app" ... | 20.454545 | 77 | 0.61037 |
3f1c86ad33cf41af66e740316b18ecce6e227061 | 917 | exs | Elixir | example/config/config.exs | rstacruz/phoenix_expug | ba14a81728cecbd3af23bb7f3e7d33d50d005544 | [
"MIT"
] | 24 | 2016-06-28T09:40:44.000Z | 2022-01-14T23:00:26.000Z | example/config/config.exs | edjroot/phoenix_expug | d6d235597cd3dc56c307541e4ba9ba822c81782b | [
"MIT"
] | 5 | 2017-10-18T12:13:18.000Z | 2020-02-19T22:41:51.000Z | example/config/config.exs | edjroot/phoenix_expug | d6d235597cd3dc56c307541e4ba9ba822c81782b | [
"MIT"
] | 8 | 2016-11-15T11:12:25.000Z | 2019-09-18T05:09:07.000Z | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
#
# This configuration file is loaded before any dependency and
# is restricted to this project.
use Mix.Config
# Configures the endpoint
config :example, Example.Endpoint,
url: [host: "localhost... | 32.75 | 86 | 0.758997 |
3f1c9085a1d61f0cbed206606159785b59065116 | 403 | exs | Elixir | test/worker_pool_test.exs | zeam-vm/worker_pool | 6893790559ce6d6df1bfd5049135bc2e5bada4c4 | [
"Apache-2.0"
] | null | null | null | test/worker_pool_test.exs | zeam-vm/worker_pool | 6893790559ce6d6df1bfd5049135bc2e5bada4c4 | [
"Apache-2.0"
] | null | null | null | test/worker_pool_test.exs | zeam-vm/worker_pool | 6893790559ce6d6df1bfd5049135bc2e5bada4c4 | [
"Apache-2.0"
] | null | null | null | defmodule WorkerPoolTest do
use ExUnit.Case
doctest WorkerPool
setup_all do
{:ok, pid} = WorkerPool.start_link(SampleWorker)
{:ok, pool: pid}
end
test "Ensure loaded? test/support/sample_worker.ex" do
assert Code.ensure_loaded?(SampleWorker)
end
test "Sample Worker" do
WorkerPool.get_wo... | 21.210526 | 64 | 0.707196 |
3f1ca0c787fd47c7b8ca61316de2ed82c6ffb3b0 | 1,634 | ex | Elixir | clients/data_migration/lib/google_api/data_migration/v1beta1/model/vpc_peering_connectivity.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/data_migration/lib/google_api/data_migration/v1beta1/model/vpc_peering_connectivity.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/data_migration/lib/google_api/data_migration/v1beta1/model/vpc_peering_connectivity.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... | 34.765957 | 176 | 0.749694 |
3f1ca72c8ce5c0c060e5aeb501492a4e345dd9ad | 34,912 | ex | Elixir | clients/compute/lib/google_api/compute/v1/api/images.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/api/images.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/api/images.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... | 49.874286 | 434 | 0.642444 |
3f1ca918571edb87fd0ca19aadb65a286b6aa2e2 | 1,620 | ex | Elixir | lib/pushover/api/messages.ex | RMATech/pushover | eb4bc2eaf5f247dd8fa2902886a0de028f6b56c2 | [
"MIT"
] | null | null | null | lib/pushover/api/messages.ex | RMATech/pushover | eb4bc2eaf5f247dd8fa2902886a0de028f6b56c2 | [
"MIT"
] | null | null | null | lib/pushover/api/messages.ex | RMATech/pushover | eb4bc2eaf5f247dd8fa2902886a0de028f6b56c2 | [
"MIT"
] | null | null | null | defmodule Pushover.Api.Messages do
@moduledoc """
API calls for Pushover Message API
"""
alias Pushover.Connection
alias GoogleApi.Gax.{Request, Response}
@doc """
Sends a message.
## Parameters
* `message` (*type:* `Pushover.Model.Message`) - the message to send.
* `connection` (*type:* `Pu... | 29.454545 | 99 | 0.619136 |
3f1cb9bae39293cac6388ed1f206b7ee7b2d4fc1 | 902 | exs | Elixir | priv/repo/migrations/20171122153530_fix-project-logos.exs | sitedata/sanbase2 | 8da5e44a343288fbc41b68668c6c80ae8547d557 | [
"MIT"
] | 81 | 2017-11-20T01:20:22.000Z | 2022-03-05T12:04:25.000Z | priv/repo/migrations/20171122153530_fix-project-logos.exs | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | 359 | 2017-10-15T14:40:53.000Z | 2022-01-25T13:34:20.000Z | priv/repo/migrations/20171122153530_fix-project-logos.exs | sitedata/sanbase2 | 8da5e44a343288fbc41b68668c6c80ae8547d557 | [
"MIT"
] | 16 | 2017-11-19T13:57:40.000Z | 2022-02-07T08:13:02.000Z | defmodule :"Elixir.Sanbase.Repo.Migrations.Fix-project-logos" do
use Ecto.Migration
import Ecto.Query
alias Sanbase.Model.Project
alias Sanbase.Repo
def up do
[
{"Civic", "civic.png"},
{"Status", "status.png"},
{"Iconomi", "iconomi.png"},
{"DigixDAO", "digixdao.png"},
{"Ae... | 24.378378 | 64 | 0.55765 |
3f1ce9c04f86a65572d7c50e2e0c3459ac5efb1f | 1,131 | ex | Elixir | lib/spender_web/schema/money_log_types.ex | LittleKidogo/Budgetinization | eae6dd62208ec7fb43c8c212f40611f8635205d5 | [
"MIT"
] | 2 | 2018-02-27T06:29:59.000Z | 2018-06-09T16:53:49.000Z | lib/spender_web/schema/money_log_types.ex | LittleKidogo/Budgetinization | eae6dd62208ec7fb43c8c212f40611f8635205d5 | [
"MIT"
] | 94 | 2018-02-22T06:03:19.000Z | 2018-06-28T14:30:31.000Z | lib/spender_web/schema/money_log_types.ex | LittleKidogo/Budgetinization | eae6dd62208ec7fb43c8c212f40611f8635205d5 | [
"MIT"
] | 1 | 2020-03-04T19:41:06.000Z | 2020-03-04T19:41:06.000Z | defmodule SpenderWeb.Schema.MoneyLogTypes do
use Absinthe.Schema.Notation
@desc "An owner of a moneylog in the system"
object :owner do
field :name, :string
field :id, :id
field :type, :string
field :user_id, :integer
end
@desc "A Moneylog that belongs to a user"
object :moneylog do
f... | 24.06383 | 46 | 0.671972 |
3f1ceb087b2be37c29820c5a037b3586847a30b3 | 2,548 | ex | Elixir | lib/parsers/normalplaytime/parser.ex | podlove/chapters | 6365a7b6867434e2d7b41bdaf6e563df8210ddd0 | [
"MIT"
] | null | null | null | lib/parsers/normalplaytime/parser.ex | podlove/chapters | 6365a7b6867434e2d7b41bdaf6e563df8210ddd0 | [
"MIT"
] | 2 | 2019-06-26T10:56:12.000Z | 2019-07-08T10:05:42.000Z | lib/parsers/normalplaytime/parser.ex | podlove/chapters | 6365a7b6867434e2d7b41bdaf6e563df8210ddd0 | [
"MIT"
] | null | null | null | defmodule Chapters.Parsers.Normalplaytime.Parser do
import NimbleParsec
@moduledoc ~S"""
Parses Normal Play Time strings.
See https://www.w3.org/TR/media-frags/#npttimedef.
## Examples
iex> {:ok, r, "", _, _, _} = parse("1")
iex> r
[{:seconds, 1}]
iex> {:ok, r, "", _, _, _} = pars... | 24.5 | 83 | 0.548666 |
3f1d094f08e86ac2de56f7957bbc4c05bd9eec2b | 356 | exs | Elixir | priv/repo/seeds.exs | linx-iot/linx_controller | 1a227ebff85180f0781fef7fd0371e2fcb94cfeb | [
"MIT"
] | null | null | null | priv/repo/seeds.exs | linx-iot/linx_controller | 1a227ebff85180f0781fef7fd0371e2fcb94cfeb | [
"MIT"
] | null | null | null | priv/repo/seeds.exs | linx-iot/linx_controller | 1a227ebff85180f0781fef7fd0371e2fcb94cfeb | [
"MIT"
] | null | null | null | # Script for populating the database. You can run it as:
#
# mix run priv/repo/seeds.exs
#
# Inside the script, you can read and write to any of your
# repositories directly:
#
# LinxCntrlr.Repo.insert!(%LinxCntrlr.SomeModel{})
#
# We recommend using the bang functions (`insert!`, `update!`
# and so on) as they... | 29.666667 | 61 | 0.710674 |
3f1d154663390dc59670b18d71fa2e3c6e9cd245 | 53 | ex | Elixir | lib/cip_web/views/dict_view.ex | fletchermoore/cip | 5dd1c6f105d6a4c8c34a9e824cbad2fcf78a0655 | [
"Unlicense"
] | null | null | null | lib/cip_web/views/dict_view.ex | fletchermoore/cip | 5dd1c6f105d6a4c8c34a9e824cbad2fcf78a0655 | [
"Unlicense"
] | null | null | null | lib/cip_web/views/dict_view.ex | fletchermoore/cip | 5dd1c6f105d6a4c8c34a9e824cbad2fcf78a0655 | [
"Unlicense"
] | null | null | null | defmodule CipWeb.DictView do
use CipWeb, :view
end
| 13.25 | 28 | 0.773585 |
3f1d3b80a34fada36f0f0f5a56ed971a5f4af3ca | 5,361 | ex | Elixir | clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/documentation.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/documentation.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/documentation.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... | 85.095238 | 1,951 | 0.750233 |
3f1d4a699c0d6409dad89427cfb121f97aa2af70 | 798 | ex | Elixir | priv/perf/apps/load_test/lib/runner/transactions.ex | omisego/elixir-omg | 2c68973d8f29033d137f63a6e060f12e2a7dcd59 | [
"Apache-2.0"
] | 177 | 2018-08-24T03:51:02.000Z | 2020-05-30T13:29:25.000Z | priv/perf/apps/load_test/lib/runner/transactions.ex | omisego/elixir-omg | 2c68973d8f29033d137f63a6e060f12e2a7dcd59 | [
"Apache-2.0"
] | 1,042 | 2018-08-25T00:52:39.000Z | 2020-06-01T05:15:17.000Z | priv/perf/apps/load_test/lib/runner/transactions.ex | omisego/elixir-omg | 2c68973d8f29033d137f63a6e060f12e2a7dcd59 | [
"Apache-2.0"
] | 47 | 2018-08-24T12:06:33.000Z | 2020-04-28T11:49:25.000Z | # Copyright 2019-2020 OMG Network 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... | 29.555556 | 74 | 0.734336 |
3f1d6f5819e0babf1d4234051775200bd1e999ab | 1,343 | exs | Elixir | lib/mix/test/mix/tasks/compile.yecc_test.exs | MSch/elixir | fc42dc9bb76ec1fdcfcbdbfb11fea6a845a62fca | [
"Apache-2.0"
] | 1 | 2017-09-09T20:59:04.000Z | 2017-09-09T20:59:04.000Z | lib/mix/test/mix/tasks/compile.yecc_test.exs | bruce/elixir | d77ccf941541959079e5f677f8717da24b486fac | [
"Apache-2.0"
] | null | null | null | lib/mix/test/mix/tasks/compile.yecc_test.exs | bruce/elixir | d77ccf941541959079e5f677f8717da24b486fac | [
"Apache-2.0"
] | null | null | null | Code.require_file "../../test_helper.exs", __DIR__
defmodule Mix.Tasks.Compile.YeccTest do
use MixTest.Case
import ExUnit.CaptureIO
test "compilation continues if one file fails to compile" do
in_fixture "compile_yecc", fn ->
File.write!("src/zzz.yrl", """)
oops.
"""
assert_raise Co... | 27.408163 | 73 | 0.625465 |
3f1d7013041abc720c4005b7d97bac08383b4575 | 1,504 | exs | Elixir | test/sakavault/aes_test.exs | Api2sem2021/5-ADS2020-2-equipe6-api | 11484e0232c1edd7fc928aa68d5014f2e3a20d07 | [
"MIT"
] | null | null | null | test/sakavault/aes_test.exs | Api2sem2021/5-ADS2020-2-equipe6-api | 11484e0232c1edd7fc928aa68d5014f2e3a20d07 | [
"MIT"
] | 3 | 2020-09-20T22:59:35.000Z | 2020-09-20T23:00:47.000Z | test/sakavault/aes_test.exs | SEGURANCA-DA-INFORMACAO-LGPD/sakavault_api | 11484e0232c1edd7fc928aa68d5014f2e3a20d07 | [
"MIT"
] | null | null | null | defmodule SakaVault.AESTest do
use SakaVault.DataCase
alias SakaVault.{AES, Krypto}
setup do
%{key: Krypto.secret_key("sakavault")}
end
describe ".encrypt/1" do
test "encrypt includes the random initial vector in the value", %{key: key} do
<<initial_vector::binary-16, cipher_text::binary>> = ... | 25.491525 | 84 | 0.632314 |
3f1d734816680f65aaddecbafc64f42badbe8b7f | 4,686 | ex | Elixir | elixir/codes-from-books/little-elixir/cap8/blitzy/deps/timex/lib/format/duration/formatters/default.ex | trxeste/wrk | 3e05e50ff621866f0361cc8494ce8f6bb4d97fae | [
"BSD-3-Clause"
] | 1 | 2017-10-16T03:00:50.000Z | 2017-10-16T03:00:50.000Z | elixir/codes-from-books/little-elixir/cap8/blitzy/deps/timex/lib/format/duration/formatters/default.ex | trxeste/wrk | 3e05e50ff621866f0361cc8494ce8f6bb4d97fae | [
"BSD-3-Clause"
] | null | null | null | elixir/codes-from-books/little-elixir/cap8/blitzy/deps/timex/lib/format/duration/formatters/default.ex | trxeste/wrk | 3e05e50ff621866f0361cc8494ce8f6bb4d97fae | [
"BSD-3-Clause"
] | 1 | 2019-11-23T12:09:14.000Z | 2019-11-23T12:09:14.000Z | defmodule Timex.Format.Duration.Formatters.Default do
@moduledoc """
Handles formatting Duration values as ISO 8601 durations as described below.
Durations are represented by the format P[n]Y[n]M[n]DT[n]H[n]M[n]S.
In this representation, the [n] is replaced by the value for each of the
date and time elements... | 44.207547 | 118 | 0.661972 |
3f1d8bf9edec89b0f2c5dd007b7ad63b1f3b915e | 540 | exs | Elixir | test/lotus/accordion_item_test.exs | code-shoily/lotus | d14958956103f2376d51974f40bcc7d7c59c2ad9 | [
"MIT"
] | 3 | 2021-09-20T10:34:15.000Z | 2021-09-20T16:23:07.000Z | test/lotus/accordion_item_test.exs | code-shoily/lotus | d14958956103f2376d51974f40bcc7d7c59c2ad9 | [
"MIT"
] | null | null | null | test/lotus/accordion_item_test.exs | code-shoily/lotus | d14958956103f2376d51974f40bcc7d7c59c2ad9 | [
"MIT"
] | 1 | 2021-11-23T13:10:27.000Z | 2021-11-23T13:10:27.000Z | defmodule Lotus.AccordionItemTest do
use Lotus.Support.ConnCase, async: true
@moduletag :component_accordion_item
alias Lotus.AccordionItem
test "Creates a AccordionItem" do
html =
render_surface do
~F"""
<AccordionItem title="1">Hello</AccordionItem>
"""
end
asse... | 20.769231 | 57 | 0.538889 |
3f1d9012cc1cd5875860ef367e731887bac99990 | 2,058 | ex | Elixir | clients/display_video/lib/google_api/display_video/v1/model/create_assigned_targeting_options_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/display_video/lib/google_api/display_video/v1/model/create_assigned_targeting_options_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/display_video/lib/google_api/display_video/v1/model/create_assigned_targeting_options_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 37.418182 | 188 | 0.753644 |
3f1d9467a676373f4fc57bdec7fed0f617f3884b | 1,979 | ex | Elixir | lib/nudge_api/users/oauth/instagram_handler.ex | feelja-tech/feelja-api | 03ce15430460cf2dac24a7740242c7e5ac5c5804 | [
"MIT"
] | null | null | null | lib/nudge_api/users/oauth/instagram_handler.ex | feelja-tech/feelja-api | 03ce15430460cf2dac24a7740242c7e5ac5c5804 | [
"MIT"
] | null | null | null | lib/nudge_api/users/oauth/instagram_handler.ex | feelja-tech/feelja-api | 03ce15430460cf2dac24a7740242c7e5ac5c5804 | [
"MIT"
] | null | null | null | defmodule NudgeApi.Users.OAuth.InstagramHandler do
alias NudgeApi.Users.Actions.GetOauthToken
alias NudgeApi.Users
@behaviour NudgeApi.Users.OAuth.OAuthHandler
@oauth_endpoint "https://api.instagram.com/oauth/access_token"
@api_endpoint "https://graph.instagram.com/access_token"
# TODO: query API before ... | 29.537313 | 94 | 0.66195 |
3f1daf1b8c97bb8cdd4e32a775b066afbcaeeb5f | 1,147 | ex | Elixir | clients/cloud_billing/lib/google_api/cloud_billing/v1/connection.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/cloud_billing/lib/google_api/cloud_billing/v1/connection.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/cloud_billing/lib/google_api/cloud_billing/v1/connection.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 ... | 34.757576 | 77 | 0.743679 |
3f1dd416dd0f32d3e5fb81a2e0c06347500465d9 | 413 | exs | Elixir | test/tictac_web/views/error_view_test.exs | brainlid/tictac | 2e5c5cd44a147e5b7b754860d187fcfda74cf74a | [
"Apache-2.0"
] | 251 | 2021-04-30T04:46:53.000Z | 2022-03-30T06:39:52.000Z | test/tictac_web/views/error_view_test.exs | brainlid/tictac | 2e5c5cd44a147e5b7b754860d187fcfda74cf74a | [
"Apache-2.0"
] | 3 | 2021-05-06T03:01:39.000Z | 2022-03-29T13:04:16.000Z | test/tictac_web/views/error_view_test.exs | brainlid/tictac | 2e5c5cd44a147e5b7b754860d187fcfda74cf74a | [
"Apache-2.0"
] | 21 | 2021-04-30T05:25:57.000Z | 2022-03-01T17:22:21.000Z | defmodule TictacWeb.ErrorViewTest do
use TictacWeb.ConnCase, async: true
# Bring render/3 and render_to_string/3 for testing custom views
import Phoenix.View
test "renders 404.html" do
assert render_to_string(TictacWeb.ErrorView, "404.html", []) == "Not Found"
end
test "renders 500.html" do
asser... | 27.533333 | 91 | 0.731235 |
3f1de9c71dbb9ac7320e6b30eb2cc17f139dfb01 | 44,590 | exs | Elixir | test/ecto/adapters/postgres_test.exs | christhekeele/ecto | 8d4a9b4e3230bf98694ed652972bd127ac2f7460 | [
"Apache-2.0"
] | null | null | null | test/ecto/adapters/postgres_test.exs | christhekeele/ecto | 8d4a9b4e3230bf98694ed652972bd127ac2f7460 | [
"Apache-2.0"
] | null | null | null | test/ecto/adapters/postgres_test.exs | christhekeele/ecto | 8d4a9b4e3230bf98694ed652972bd127ac2f7460 | [
"Apache-2.0"
] | null | null | null | Code.require_file "../../../integration_test/support/types.exs", __DIR__
defmodule Ecto.Adapters.PostgresTest do
use ExUnit.Case, async: true
import Ecto.Query
alias Ecto.Queryable
alias Ecto.Adapters.Postgres.Connection, as: SQL
defmodule Schema do
use Ecto.Schema
schema "schema" do
field ... | 44.104847 | 156 | 0.588652 |
3f1e205a84a39bf4e4c7cefa76d004d567a51c46 | 1,890 | exs | Elixir | mix.exs | hertogp/iptrie | bd51bf983b35859bbdb065e9c6d9e06febdbb612 | [
"MIT"
] | 1 | 2021-10-01T19:35:01.000Z | 2021-10-01T19:35:01.000Z | mix.exs | hertogp/iptrie | bd51bf983b35859bbdb065e9c6d9e06febdbb612 | [
"MIT"
] | 1 | 2021-07-11T14:15:32.000Z | 2021-07-18T11:29:44.000Z | mix.exs | hertogp/iptrie | bd51bf983b35859bbdb065e9c6d9e06febdbb612 | [
"MIT"
] | 1 | 2021-07-11T05:10:03.000Z | 2021-07-11T05:10:03.000Z | defmodule Iptrie.MixProject do
use Mix.Project
# Before publishing to Hex:
# - update CHANGELOG.md for changes in new version
# - set new version tag in mix.exs, README.md
# - mix test
# - mix docs
# - mix dialyzer
# - git tag -a vx.y.z -m 'Release vx.y.z'
# - git push --tags
# mix hex.publish
@... | 21.976744 | 97 | 0.536508 |
3f1e2564dde9d6b842752b08d51c822b1d9097c0 | 2,052 | ex | Elixir | clients/firebase_dynamic_links/lib/google_api/firebase_dynamic_links/v1/model/i_tunes_connect_analytics.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/firebase_dynamic_links/lib/google_api/firebase_dynamic_links/v1/model/i_tunes_connect_analytics.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/firebase_dynamic_links/lib/google_api/firebase_dynamic_links/v1/model/i_tunes_connect_analytics.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... | 35.37931 | 126 | 0.708577 |
3f1e2b00edc5150b8a2f1eb6b224b044416fa826 | 13,272 | exs | Elixir | test/domo_use_test.exs | cuevacreativa/Domo | 5f2f5ff3cb57dfe774408dcae6ccb5b79d1a3089 | [
"MIT"
] | null | null | null | test/domo_use_test.exs | cuevacreativa/Domo | 5f2f5ff3cb57dfe774408dcae6ccb5b79d1a3089 | [
"MIT"
] | null | null | null | test/domo_use_test.exs | cuevacreativa/Domo | 5f2f5ff3cb57dfe774408dcae6ccb5b79d1a3089 | [
"MIT"
] | null | null | null | defmodule DomoUseTest do
use Domo.FileCase, async: false
use Placebo
alias Domo.TypeEnsurerFactory.ResolvePlanner
alias Domo.MixProjectHelper
alias Mix.Tasks.Compile.DomoCompiler, as: DomoMixTask
alias ModuleTypes
@no_domo_compiler_error_regex Regex.compile!("""
Domo comp... | 29.041575 | 125 | 0.56849 |
3f1e36597c84c500660b3b0bbcf1d14c4d5dcd2a | 1,756 | ex | Elixir | lib/cgrates_web_jsonapi_web/controllers/tp_stat_controller.ex | max-konin/cgrates_web_jsonapi | e82690e343d790b0f77dea6699483fcb6fd8a162 | [
"MIT"
] | 2 | 2018-10-03T07:41:32.000Z | 2021-03-21T11:27:27.000Z | lib/cgrates_web_jsonapi_web/controllers/tp_stat_controller.ex | max-konin/cgrates_web_jsonapi | e82690e343d790b0f77dea6699483fcb6fd8a162 | [
"MIT"
] | 1 | 2018-10-31T04:55:59.000Z | 2018-10-31T04:55:59.000Z | lib/cgrates_web_jsonapi_web/controllers/tp_stat_controller.ex | max-konin/cgrates_web_jsonapi | e82690e343d790b0f77dea6699483fcb6fd8a162 | [
"MIT"
] | 5 | 2018-09-27T11:30:44.000Z | 2021-01-16T08:28:58.000Z | defmodule CgratesWebJsonapiWeb.TpStatController do
use CgratesWebJsonapiWeb, :controller
use JaResource
use CgratesWebJsonapi.TpSubresource
use CgratesWebJsonapi.DefaultSorting
use CgratesWebJsonapi.CsvExport
use CgratesWebJsonapi.DeleteAll
alias CgratesWebJsonapi.TariffPlans.TpStat
plug JaResource
... | 36.583333 | 97 | 0.65262 |
3f1e483b42f0a643fbddbc0921539efa408fbc5d | 3,819 | ex | Elixir | lib/trie/storage.ex | aeternity/merkle_patricia_tree | 375385956f765edbc8899c6dc0cf8ecdfb9ec355 | [
"MIT"
] | 8 | 2018-04-25T18:15:53.000Z | 2021-02-09T20:42:46.000Z | lib/trie/storage.ex | aeternity/merkle_patricia_tree | 375385956f765edbc8899c6dc0cf8ecdfb9ec355 | [
"MIT"
] | 9 | 2018-06-19T09:42:46.000Z | 2018-12-12T00:13:58.000Z | lib/trie/storage.ex | aeternity/merkle_patricia_tree | 375385956f765edbc8899c6dc0cf8ecdfb9ec355 | [
"MIT"
] | 7 | 2018-07-30T22:05:19.000Z | 2022-03-06T09:22:51.000Z | defmodule MerklePatriciaTree.Trie.Storage do
@moduledoc """
Module to get and put nodes in a trie by the given
storage mechanism. Generally, handles the function `n(I, i)`,
Eq.(178) from the Yellow Paper.
"""
alias MerklePatriciaTree.DB
alias MerklePatriciaTree.Trie
alias MerklePatriciaTree.Utils
@m... | 36.028302 | 228 | 0.648075 |
3f1e5e7d8c4a37b385ff8e6ebf62696c563ad5c3 | 2,501 | exs | Elixir | test/cadet/assessments/question_test.exs | Hou-Rui/cadet | f9036d76005bf3b267b632dce176067ae1a19f71 | [
"Apache-2.0"
] | null | null | null | test/cadet/assessments/question_test.exs | Hou-Rui/cadet | f9036d76005bf3b267b632dce176067ae1a19f71 | [
"Apache-2.0"
] | 10 | 2022-02-24T17:57:38.000Z | 2022-03-31T07:43:05.000Z | test/cadet/assessments/question_test.exs | Hou-Rui/cadet | f9036d76005bf3b267b632dce176067ae1a19f71 | [
"Apache-2.0"
] | 1 | 2019-07-17T15:51:58.000Z | 2019-07-17T15:51:58.000Z | defmodule Cadet.Assessments.QuestionTest do
alias Cadet.Assessments.Question
use Cadet.ChangesetCase, entity: Question
@required_fields ~w(question type assessment_id)a
@required_embeds ~w(library)a
setup do
assessment = insert(:assessment)
valid_programming_params = %{
type: :programming,
... | 25.520408 | 91 | 0.640144 |
3f1e7aab20c4e24c5a76688ba5d4062e8ce3807a | 709 | exs | Elixir | test/006_test.exs | pascalwengerter/ProjectEuler100 | 5e553839b6dc3c85521bd979fd6eaa1d02b83fff | [
"MIT"
] | 1 | 2021-02-27T10:57:27.000Z | 2021-02-27T10:57:27.000Z | test/006_test.exs | pascalwengerter/ProjectEuler100 | 5e553839b6dc3c85521bd979fd6eaa1d02b83fff | [
"MIT"
] | null | null | null | test/006_test.exs | pascalwengerter/ProjectEuler100 | 5e553839b6dc3c85521bd979fd6eaa1d02b83fff | [
"MIT"
] | null | null | null | defmodule Euler6Test do
use ExUnit.Case
import DiffSumsquareSquaresum, only: [calculate: 1]
describe "Testing the calculate function" do
test "Calculate the difference between the sum of the squares between 1 and 2 and the square of the sum between 1 and 2 (9 - 5)" do
assert calculate(1..2) == 4
e... | 35.45 | 142 | 0.70945 |
3f1e8d283d8ab26c35f0608a0b807b149f0c6697 | 12,800 | ex | Elixir | lib/bit_field_set.ex | gausby/bit_field_set | 2048bee7c7d20cd5817253b34e353f702f56fdad | [
"Apache-2.0"
] | 18 | 2015-12-29T21:21:54.000Z | 2020-07-21T12:29:10.000Z | lib/bit_field_set.ex | gausby/bit_field_set | 2048bee7c7d20cd5817253b34e353f702f56fdad | [
"Apache-2.0"
] | null | null | null | lib/bit_field_set.ex | gausby/bit_field_set | 2048bee7c7d20cd5817253b34e353f702f56fdad | [
"Apache-2.0"
] | null | null | null | defmodule BitFieldSet do
@moduledoc false
use Bitwise
@type piece_index :: non_neg_integer
@type size :: non_neg_integer
@type errors :: :out_of_bounds | :bit_field_size_too_small
@opaque t :: %__MODULE__{size: size, pieces: non_neg_integer}
defstruct size: 0, pieces: 0
@doc """
Create a new bit f... | 28.959276 | 93 | 0.619609 |
3f1e95f71ba3322a7208c1cdb4933881755d8ac0 | 399 | ex | Elixir | webrtc_to_hls/lib/webrtc_to_hls_web/controllers/hls_controller.ex | membraneframework/videoroom_advanced | d5bfbcec7558bb7ddd4f74742c0d842e5d759b21 | [
"Apache-2.0"
] | 84 | 2020-08-01T14:57:29.000Z | 2022-03-27T13:28:23.000Z | webrtc_to_hls/lib/webrtc_to_hls_web/controllers/hls_controller.ex | membraneframework/videoroom_advanced | d5bfbcec7558bb7ddd4f74742c0d842e5d759b21 | [
"Apache-2.0"
] | 75 | 2020-08-24T08:01:53.000Z | 2022-03-17T10:41:22.000Z | webrtc_to_hls/lib/webrtc_to_hls_web/controllers/hls_controller.ex | membraneframework/videoroom_advanced | d5bfbcec7558bb7ddd4f74742c0d842e5d759b21 | [
"Apache-2.0"
] | 17 | 2020-09-15T21:04:23.000Z | 2022-03-31T07:43:48.000Z | defmodule WebRTCToHLSWeb.HLSController do
use WebRTCToHLSWeb, :controller
alias WebRTCToHLS.Helpers
alias Plug
def index(conn, %{"prefix" => prefix, "filename" => filename}) do
path = Helpers.hls_output_path(prefix, filename)
if File.exists?(path) do
conn |> Plug.Conn.send_file(200, path)
e... | 23.470588 | 67 | 0.686717 |
3f1e98e1b5f2b6080515a5635d3a895cdc5b59bb | 4,513 | ex | Elixir | lib/judgment/majority/analysis.ex | MieuxVoter/majority-judgment-library-elixir | 0dd2cb1553d88dedd85585af4046a789c364143d | [
"MIT"
] | null | null | null | lib/judgment/majority/analysis.ex | MieuxVoter/majority-judgment-library-elixir | 0dd2cb1553d88dedd85585af4046a789c364143d | [
"MIT"
] | 1 | 2021-10-18T02:40:58.000Z | 2021-10-18T02:40:58.000Z | lib/judgment/majority/analysis.ex | MieuxVoter/majority-judgment-library-elixir | 0dd2cb1553d88dedd85585af4046a789c364143d | [
"MIT"
] | null | null | null | defmodule Judgment.Majority.Analysis do
@moduledoc """
An analysis of the tally of a single proposal (its merit profile).
This does not hold the score nor the rank and is used to compute the score.
"""
defstruct [
:median_grade,
:second_group_grade,
:second_group_size,
:second_group_sign,
... | 23.38342 | 77 | 0.616663 |
3f1ea3e25afa0ccfff9c17e6cd7926cfb4b2f588 | 722 | ex | Elixir | lib/plausible_web/views/layout_view.ex | wvffle/analytics | 2c0fd55bc67f74af1fe1e2641678d44e9fee61d5 | [
"MIT"
] | 1 | 2020-10-08T13:33:04.000Z | 2020-10-08T13:33:04.000Z | lib/plausible_web/views/layout_view.ex | wvffle/analytics | 2c0fd55bc67f74af1fe1e2641678d44e9fee61d5 | [
"MIT"
] | null | null | null | lib/plausible_web/views/layout_view.ex | wvffle/analytics | 2c0fd55bc67f74af1fe1e2641678d44e9fee61d5 | [
"MIT"
] | null | null | null | defmodule PlausibleWeb.LayoutView do
use PlausibleWeb, :view
def admin_email do
Application.get_env(:plausible, :admin_email)
end
def base_domain do
PlausibleWeb.Endpoint.host()
end
def plausible_url do
PlausibleWeb.Endpoint.url()
end
def home_dest(conn) do
if conn.assigns[:current_u... | 18.05 | 51 | 0.624654 |
3f1eb5f279e768de89b90a68fb482f3a11414944 | 413 | exs | Elixir | test/ledemo_web/views/error_view_test.exs | andyl/live_editable_demo | 645d628d8717d706da207db9fe9f6f71ecfce303 | [
"MIT"
] | null | null | null | test/ledemo_web/views/error_view_test.exs | andyl/live_editable_demo | 645d628d8717d706da207db9fe9f6f71ecfce303 | [
"MIT"
] | 7 | 2021-05-10T15:57:48.000Z | 2021-05-27T13:05:14.000Z | test/ledemo_web/views/error_view_test.exs | andyl/live_editable_demo | 645d628d8717d706da207db9fe9f6f71ecfce303 | [
"MIT"
] | null | null | null | defmodule LedemoWeb.ErrorViewTest do
use LedemoWeb.ConnCase, async: true
# Bring render/3 and render_to_string/3 for testing custom views
import Phoenix.View
test "renders 404.html" do
assert render_to_string(LedemoWeb.ErrorView, "404.html", []) == "Not Found"
end
test "renders 500.html" do
asser... | 27.533333 | 91 | 0.731235 |
3f1ee5096a77e999e1b64d4be7a635cc3d990574 | 1,702 | exs | Elixir | haha/elixir/config/dev.exs | oasis-open/openc2-lycan-beam | 0be49bb26f4489260f3d8c9c64545c0008c52e1c | [
"MIT"
] | 4 | 2018-04-27T19:40:56.000Z | 2019-07-02T14:12:30.000Z | haha/elixir/config/dev.exs | oasis-open/openc2-lycan-beam | 0be49bb26f4489260f3d8c9c64545c0008c52e1c | [
"MIT"
] | 8 | 2018-10-23T20:12:51.000Z | 2021-05-11T01:27:53.000Z | haha/elixir/config/dev.exs | oasis-open/openc2-lycan-beam | 0be49bb26f4489260f3d8c9c64545c0008c52e1c | [
"MIT"
] | 3 | 2018-03-23T20:37:40.000Z | 2018-06-13T01:12:31.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 brunch.io to recompile .js and .css sources.
config :haha, HaHaWeb.Endpoint,
http: [port: 4000],
... | 34.04 | 170 | 0.697415 |
3f1f1c438bc61b91211e4ace84a95de2c8c792f9 | 4,275 | ex | Elixir | clients/security_center/lib/google_api/security_center/v1/model/binding.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/security_center/lib/google_api/security_center/v1/model/binding.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/security_center/lib/google_api/security_center/v1/model/binding.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 80.660377 | 1,970 | 0.752982 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.