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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4a49c7d2864326e1bcad23fa88844d2be64ba278 | 2,994 | ex | Elixir | clients/blogger/lib/google_api/blogger/v3/model/comment.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/blogger/lib/google_api/blogger/v3/model/comment.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/blogger/lib/google_api/blogger/v3/model/comment.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... | 38.384615 | 104 | 0.695391 |
4a49cbe096a35fe2ace83e1b55fe61e7181f9435 | 5,187 | exs | Elixir | lib/elixir/test/elixir/kernel/import_test.exs | samgaw/elixir | 92e8263102d95281a5aa7850b747636805f13fc9 | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/kernel/import_test.exs | samgaw/elixir | 92e8263102d95281a5aa7850b747636805f13fc9 | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/kernel/import_test.exs | samgaw/elixir | 92e8263102d95281a5aa7850b747636805f13fc9 | [
"Apache-2.0"
] | null | null | null | Code.require_file("../test_helper.exs", __DIR__)
defmodule Kernel.ImportTest do
use ExUnit.Case, async: true
# This should not warn due to the empty only
import URI, only: []
defmodule ImportAvailable do
defmacro flatten do
[flatten: 1]
end
end
test "multi-call" do
assert [List, String... | 24.013889 | 68 | 0.60883 |
4a49e270516f2e6622ede79041a26f4b57d692ba | 1,673 | ex | Elixir | lib/no_slides/write_fsm.ex | antoinereyt/riak_core_elixir | 7637d75e4a4a6f2fd3e60550db06606279a2fd5c | [
"Apache-2.0"
] | 16 | 2016-12-21T01:40:35.000Z | 2021-06-25T22:39:27.000Z | lib/no_slides/write_fsm.ex | antoinereyt/riak_core_elixir | 7637d75e4a4a6f2fd3e60550db06606279a2fd5c | [
"Apache-2.0"
] | 7 | 2016-12-13T07:49:26.000Z | 2018-07-13T16:35:10.000Z | lib/no_slides/write_fsm.ex | antoinereyt/riak_core_elixir | 7637d75e4a4a6f2fd3e60550db06606279a2fd5c | [
"Apache-2.0"
] | 9 | 2016-12-21T22:56:59.000Z | 2019-01-30T21:18:01.000Z | defmodule NoSlides.WriteFsm do
require Logger
@timeout 30_000
@n_writers 2
@n_val 3
def write(k, v) do
req_id = mk_reqid()
NoSlides.WriteFsmSupervisor.start_write_fsm([req_id, self(), k, v])
{:ok, req_id}
end
def start_link(req_id, from, k, v) do
Logger.debug "Start WriteFSM"
{:ok, ... | 26.140625 | 83 | 0.644949 |
4a4a3fe7f9b64e2b55fa37a8fa01439b1daddb01 | 852 | ex | Elixir | lib/keshikimi2/application.ex | nabinno/keshikimi2 | b0d62e07e3dc8db47a3be6edad1ae70664584284 | [
"MIT"
] | 1 | 2019-06-11T02:15:16.000Z | 2019-06-11T02:15:16.000Z | lib/keshikimi2/application.ex | nabinno/keshikimi2 | b0d62e07e3dc8db47a3be6edad1ae70664584284 | [
"MIT"
] | null | null | null | lib/keshikimi2/application.ex | nabinno/keshikimi2 | b0d62e07e3dc8db47a3be6edad1ae70664584284 | [
"MIT"
] | null | null | null | defmodule Keshikimi2.Application do
@moduledoc false
use Application
import Supervisor.Spec
require IEx
def start(_type, [prefix]) do
Supervisor.start_link(
[
:hackney_pool.child_spec(:hatena_bookmark_pool, timeout: 15_000, max_connections: 100),
supervisor(Cachex, [:feed, []]),
... | 25.818182 | 95 | 0.651408 |
4a4aa348b71f667a2783ba7c6c7151013c0912fc | 594 | ex | Elixir | lib/cookbook/release.ex | joerichsen/live_view_cookbook | a211e6bcfaa872df120f186b3d65e0672f410365 | [
"MIT"
] | null | null | null | lib/cookbook/release.ex | joerichsen/live_view_cookbook | a211e6bcfaa872df120f186b3d65e0672f410365 | [
"MIT"
] | 11 | 2021-12-19T09:07:30.000Z | 2022-01-01T17:54:43.000Z | lib/cookbook/release.ex | joerichsen/live_view_cookbook | a211e6bcfaa872df120f186b3d65e0672f410365 | [
"MIT"
] | null | null | null | defmodule Cookbook.Release do
@moduledoc """
Used for executing DB release tasks when run in production without Mix
installed.
"""
@app :cookbook
def migrate do
load_app()
for repo <- repos() do
{:ok, _, _} = Ecto.Migrator.with_repo(repo, &Ecto.Migrator.run(&1, :up, all: true))
end
end... | 20.482759 | 91 | 0.649832 |
4a4aa9147c58730fe7be2d9e4ca97c67d95d9203 | 429 | exs | Elixir | test/battleship_web/views/error_view_test.exs | randallhunt/battleship | 4e39adf0f54a63009a0ebf3bb830711195a7da42 | [
"MIT"
] | null | null | null | test/battleship_web/views/error_view_test.exs | randallhunt/battleship | 4e39adf0f54a63009a0ebf3bb830711195a7da42 | [
"MIT"
] | 3 | 2020-12-30T23:04:44.000Z | 2020-12-31T00:18:26.000Z | test/battleship_web/views/error_view_test.exs | randallhunt/battleship | 4e39adf0f54a63009a0ebf3bb830711195a7da42 | [
"MIT"
] | null | null | null | defmodule BattleshipWeb.ErrorViewTest do
use BattleshipWeb.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(BattleshipWeb.ErrorView, "404.html", []) == "Not Found"
end
test "renders 500.html" ... | 28.6 | 95 | 0.741259 |
4a4aade64fae56ab790ebce92afa9ac622a1103a | 15,226 | ex | Elixir | lib/stripe/api.ex | Rutaba/stripity_stripe | 12c525301c781f9c8c7e578cc0d933f5d35183d5 | [
"BSD-3-Clause"
] | null | null | null | lib/stripe/api.ex | Rutaba/stripity_stripe | 12c525301c781f9c8c7e578cc0d933f5d35183d5 | [
"BSD-3-Clause"
] | 1 | 2020-05-20T21:04:19.000Z | 2020-05-20T21:04:19.000Z | lib/stripe/api.ex | Rutaba/stripity_stripe | 12c525301c781f9c8c7e578cc0d933f5d35183d5 | [
"BSD-3-Clause"
] | 1 | 2021-09-06T14:46:19.000Z | 2021-09-06T14:46:19.000Z | defmodule Stripe.API do
@moduledoc """
Low-level utilities for interacting with the Stripe API.
Usually the utilities in `Stripe.Request` are a better way to write custom interactions with
the API.
"""
alias Stripe.{Config, Error}
@callback oauth_request(method, String.t(), map) :: {:ok, map}
@type m... | 30.391218 | 100 | 0.67122 |
4a4abdb059675c39f8a46cabf3c97b59a722207b | 2,397 | exs | Elixir | mix.exs | AndreOrlov/quantum-storage-persistent-ets | 888502d9a427c7a1c66b588077be33112aebd658 | [
"Apache-2.0"
] | null | null | null | mix.exs | AndreOrlov/quantum-storage-persistent-ets | 888502d9a427c7a1c66b588077be33112aebd658 | [
"Apache-2.0"
] | null | null | null | mix.exs | AndreOrlov/quantum-storage-persistent-ets | 888502d9a427c7a1c66b588077be33112aebd658 | [
"Apache-2.0"
] | null | null | null | defmodule QuantumStoragePersistentEts.MixProject do
@moduledoc false
use Mix.Project
@version "1.0.0"
def project do
[
app: :quantum_storage_persistent_ets,
version: @version,
elixir: "~> 1.8",
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
de... | 27.551724 | 102 | 0.563621 |
4a4ad0d483ee25de074a196f8bcb5f36360cfeaa | 2,475 | ex | Elixir | apps/discordbot/test/fake/discord/core.ex | alexweav/discordbot | 1ee138f7c42a6901ab769e2ce59a6878bf603290 | [
"MIT"
] | 4 | 2018-11-19T06:10:52.000Z | 2022-02-03T01:50:23.000Z | apps/discordbot/test/fake/discord/core.ex | alexweav/discordbot | 1ee138f7c42a6901ab769e2ce59a6878bf603290 | [
"MIT"
] | 254 | 2018-11-19T06:08:51.000Z | 2021-07-22T13:47:26.000Z | apps/discordbot/test/fake/discord/core.ex | alexweav/discordbot | 1ee138f7c42a6901ab769e2ce59a6878bf603290 | [
"MIT"
] | null | null | null | defmodule DiscordBot.Fake.Discord.Core do
@moduledoc false
use GenServer
alias DiscordBot.Model.{Guild, Hello}
def start_link(opts) do
state = %{
api_version: nil,
encoding: nil,
latest_text_frame: nil,
all_frames: [],
handler: nil
}
GenServer.start_link(__MODULE__,... | 22.5 | 95 | 0.655758 |
4a4ad4ca3e74b6b3cb8f02b687ca734513146390 | 3,783 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/report_reach_criteria.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/report_reach_criteria.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/report_reach_criteria.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... | 54.826087 | 241 | 0.738303 |
4a4adca431d55390b72f601db0e7245d53cc03ee | 466 | exs | Elixir | priv/repo/migrations/20180601171834_make_counts_64bit.exs | nickveys/slack-churrobot | 1eecbd9dd72185e6efd72cf47b479ee7678532bb | [
"MIT"
] | 1 | 2018-05-18T16:18:03.000Z | 2018-05-18T16:18:03.000Z | priv/repo/migrations/20180601171834_make_counts_64bit.exs | nickveys/slack-churrobot | 1eecbd9dd72185e6efd72cf47b479ee7678532bb | [
"MIT"
] | null | null | null | priv/repo/migrations/20180601171834_make_counts_64bit.exs | nickveys/slack-churrobot | 1eecbd9dd72185e6efd72cf47b479ee7678532bb | [
"MIT"
] | null | null | null | defmodule Churrobot.Repo.Migrations.MakeCounts64bit do
use Ecto.Migration
def down do
alter table(:history) do
modify :amount, :integer, null: false
end
alter table(:counts) do
modify :churros, :integer, null: false, default: 0
end
end
def up do
alter table(:history) do
m... | 21.181818 | 56 | 0.652361 |
4a4af0e40397e5926ab9c04bc92d585e8e5fbd1a | 2,401 | exs | Elixir | apps/local_ledger_db/priv/repo/migrations/20180307072417_add_encrypted_metadata.exs | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 322 | 2018-02-28T07:38:44.000Z | 2020-05-27T23:09:55.000Z | apps/local_ledger_db/priv/repo/migrations/20180307072417_add_encrypted_metadata.exs | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 643 | 2018-02-28T12:05:20.000Z | 2020-05-22T08:34:38.000Z | apps/local_ledger_db/priv/repo/migrations/20180307072417_add_encrypted_metadata.exs | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 63 | 2018-02-28T10:57:06.000Z | 2020-05-27T23:10:38.000Z | # Copyright 2018-2019 OmiseGO Pte Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 28.247059 | 74 | 0.637651 |
4a4b0a16b8ef456d5a3828407e0e5d0d74653528 | 94 | exs | Elixir | test/test_helper.exs | beamlike/locale_plug | 70e05e804495c9f0caa15af6f2cf8b2545e9c0ca | [
"MIT"
] | 7 | 2019-04-13T07:10:19.000Z | 2020-03-05T10:52:06.000Z | test/test_helper.exs | beamlike/locale_plug | 70e05e804495c9f0caa15af6f2cf8b2545e9c0ca | [
"MIT"
] | 15 | 2020-05-15T00:22:53.000Z | 2022-03-24T01:08:11.000Z | test/test_helper.exs | beamlike/locale_plug | 70e05e804495c9f0caa15af6f2cf8b2545e9c0ca | [
"MIT"
] | 2 | 2020-07-15T15:14:27.000Z | 2021-03-10T19:52:47.000Z | [__DIR__, "fixtures", "my_app", "ebin"]
|> Path.join()
|> Code.prepend_path()
ExUnit.start()
| 15.666667 | 39 | 0.638298 |
4a4b1240c84535c42e578231a42cd286c663258f | 893 | exs | Elixir | Automation/Checklists/elixir_list.exs | bengroneman/utils | c92bf4bf94062c48ccc3053ae0cad5ce79ccc6f5 | [
"MIT"
] | null | null | null | Automation/Checklists/elixir_list.exs | bengroneman/utils | c92bf4bf94062c48ccc3053ae0cad5ce79ccc6f5 | [
"MIT"
] | null | null | null | Automation/Checklists/elixir_list.exs | bengroneman/utils | c92bf4bf94062c48ccc3053ae0cad5ce79ccc6f5 | [
"MIT"
] | null | null | null | # get today's date
date = Date.utc_today()
year = Integer.to_string(date.year)
month = Integer.to_string(date.month)
day = Integer.to_string(date.day)
# Generate the month's full path with YYYY/MM format
month_path =
File.cwd!()
|> Path.join(year)
|> Path.join(month)
# Create the month and year directories
File... | 19.413043 | 52 | 0.68533 |
4a4b7c2552c6a73604a9a7a7acf8dfd39f8d757b | 12,734 | ex | Elixir | lib/aws/generated/resource_groups.ex | salemove/aws-elixir | debdf6482158a71a57636ac664c911e682093395 | [
"Apache-2.0"
] | null | null | null | lib/aws/generated/resource_groups.ex | salemove/aws-elixir | debdf6482158a71a57636ac664c911e682093395 | [
"Apache-2.0"
] | null | null | null | lib/aws/generated/resource_groups.ex | salemove/aws-elixir | debdf6482158a71a57636ac664c911e682093395 | [
"Apache-2.0"
] | null | null | null | # WARNING: DO NOT EDIT, AUTO-GENERATED CODE!
# See https://github.com/aws-beam/aws-codegen for more details.
defmodule AWS.ResourceGroups do
@moduledoc """
AWS Resource Groups
AWS Resource Groups lets you organize AWS resources such as Amazon EC2
instances, Amazon Relational Database Service databases, and Am... | 23.713222 | 150 | 0.653605 |
4a4b981e0ddb1fb8d9ab8835e3686f7fd192cd7f | 2,855 | ex | Elixir | lib/hedwig/adapters/console.ex | scrogson/hedwig | a453847d04a9d730952fc5b2f8239848f4285573 | [
"MIT"
] | 51 | 2015-01-15T10:47:58.000Z | 2020-10-21T19:55:23.000Z | lib/hedwig/adapters/console.ex | scrogson/hedwig | a453847d04a9d730952fc5b2f8239848f4285573 | [
"MIT"
] | 13 | 2015-01-27T13:39:45.000Z | 2015-09-10T22:16:45.000Z | lib/hedwig/adapters/console.ex | scrogson/hedwig | a453847d04a9d730952fc5b2f8239848f4285573 | [
"MIT"
] | 16 | 2015-04-02T10:24:16.000Z | 2022-01-04T10:34:40.000Z | defmodule Hedwig.Adapters.Console do
@moduledoc """
Hedwig Console Adapter
The console adapter is useful for testing out responders without a remote
chat service.
config :my_app, MyApp.Robot,
adapter: Hedwig.Adapters.Console,
...
Start your application with `mix run --no-halt` and you... | 22.131783 | 81 | 0.603503 |
4a4bd0b37cbf714f3172fe204c0723ff6f601ab9 | 663 | ex | Elixir | apps/artemis/lib/artemis/contexts/permission/delete_permission.ex | chrislaskey/atlas_platform | 969aea95814f62d3471f93000ee5ad77edb9d1bf | [
"MIT"
] | 10 | 2019-07-05T19:59:20.000Z | 2021-05-23T07:36:11.000Z | apps/artemis/lib/artemis/contexts/permission/delete_permission.ex | chrislaskey/atlas_platform | 969aea95814f62d3471f93000ee5ad77edb9d1bf | [
"MIT"
] | 3 | 2019-03-05T23:55:09.000Z | 2019-05-29T13:46:34.000Z | apps/artemis/lib/artemis/contexts/permission/delete_permission.ex | chrislaskey/atlas_platform | 969aea95814f62d3471f93000ee5ad77edb9d1bf | [
"MIT"
] | 4 | 2019-07-05T20:04:08.000Z | 2021-05-13T16:28:33.000Z | defmodule Artemis.DeletePermission do
use Artemis.Context
alias Artemis.GetPermission
alias Artemis.Repo
def call!(id, user) do
case call(id, user) do
{:error, _} -> raise(Artemis.Context.Error, "Error deleting permission")
{:ok, result} -> result
end
end
def call(id, user) do
id
... | 24.555556 | 78 | 0.6727 |
4a4bfbbf8219b2d28bd85c747183b9a8a4ea948b | 2,221 | ex | Elixir | clients/big_query_connection/lib/google_api/big_query_connection/v1beta1/model/get_policy_options.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/big_query_connection/lib/google_api/big_query_connection/v1beta1/model/get_policy_options.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/big_query_connection/lib/google_api/big_query_connection/v1beta1/model/get_policy_options.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 47.255319 | 805 | 0.771724 |
4a4c3d3964b994ac01bba471834a419127f52c61 | 13,189 | exs | Elixir | test/teslamate/vehicles/vehicle/driving_test.exs | DP19/teslamate | 7218286f39d2689566dd7188264ebdb7aea62663 | [
"MIT"
] | 1 | 2019-10-14T20:49:45.000Z | 2019-10-14T20:49:45.000Z | test/teslamate/vehicles/vehicle/driving_test.exs | DP19/teslamate | 7218286f39d2689566dd7188264ebdb7aea62663 | [
"MIT"
] | null | null | null | test/teslamate/vehicles/vehicle/driving_test.exs | DP19/teslamate | 7218286f39d2689566dd7188264ebdb7aea62663 | [
"MIT"
] | 1 | 2019-12-03T20:40:02.000Z | 2019-12-03T20:40:02.000Z | defmodule TeslaMate.Vehicles.Vehicle.DrivingTest do
use TeslaMate.VehicleCase, async: true
alias TeslaMate.Log.{Drive, Car}
test "logs a full drive", %{test: name} do
now = DateTime.utc_now()
now_ts = DateTime.to_unix(now, :millisecond)
events = [
{:ok, online_event()},
{:ok, drive_even... | 35.93733 | 98 | 0.618167 |
4a4c6241efd0d5cbaed413cef015c3689f52884a | 1,040 | ex | Elixir | src/mbs/lib/utils.ex | visciang/mbs | 3f218b82f3097c03149b6a4a440804056d94c387 | [
"MIT"
] | null | null | null | src/mbs/lib/utils.ex | visciang/mbs | 3f218b82f3097c03149b6a4a440804056d94c387 | [
"MIT"
] | 1 | 2021-12-15T07:22:59.000Z | 2021-12-15T07:47:56.000Z | src/mbs/lib/utils.ex | visciang/mbs | 3f218b82f3097c03149b6a4a440804056d94c387 | [
"MIT"
] | null | null | null | defmodule MBS.Utils do
@moduledoc false
@dialyzer {:nowarn_function, halt: 1}
@spec halt(nil | String.t(), non_neg_integer()) :: no_return()
def halt(message, exit_status \\ 1) do
if message != nil and message != "" do
IO.puts(:stderr, IO.ANSI.format([:red, message]))
end
System.halt(exit_s... | 26 | 93 | 0.649038 |
4a4c7295b571e3c69b1114bbf7b7c8de1ac26c8e | 272 | exs | Elixir | test/chit_chat_web/views/layout_view_test.exs | GalPin-Ark/chit_chat | 8cb492b7c6daca82fdbd536f6dbc185c02991730 | [
"MIT"
] | 1 | 2021-09-10T16:49:36.000Z | 2021-09-10T16:49:36.000Z | test/chit_chat_web/views/layout_view_test.exs | areski/ex-chitchat | 0ec14e9af6acba40d6708f924b76fb4fbe592dcf | [
"MIT"
] | 2 | 2020-05-22T18:42:14.000Z | 2021-01-25T16:34:38.000Z | test/chit_chat_web/views/layout_view_test.exs | areski/ex-chitchat | 0ec14e9af6acba40d6708f924b76fb4fbe592dcf | [
"MIT"
] | null | null | null | defmodule ChitChatWeb.LayoutViewTest do
use ChitChatWeb.ConnCase, async: true
# When testing helpers, you may want to import Phoenix.HTML and
# use functions such as safe_to_string() to convert the helper
# result into an HTML string.
# import Phoenix.HTML
end
| 30.222222 | 65 | 0.768382 |
4a4c763d7a08b553a6b3b23d8ede59012f576614 | 4,283 | ex | Elixir | clients/spanner/lib/google_api/spanner/v1/model/read_only.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/spanner/lib/google_api/spanner/v1/model/read_only.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/spanner/lib/google_api/spanner/v1/model/read_only.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... | 69.080645 | 603 | 0.74714 |
4a4c940c4c08a26601e20c78f25071f84c1794f8 | 1,968 | ex | Elixir | clients/spanner/lib/google_api/spanner/v1/model/field.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/spanner/lib/google_api/spanner/v1/model/field.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/spanner/lib/google_api/spanner/v1/model/field.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... | 39.36 | 538 | 0.724085 |
4a4ca736d089048de3345a45a23b265f68c903b4 | 31,465 | exs | Elixir | test/paper_trail/bang_functions_simple_mode_test.exs | rschef/paper_trail | 6ab8b29ee97b46222cc48d376daea70fc5cb8105 | [
"MIT"
] | 1 | 2021-03-17T14:22:49.000Z | 2021-03-17T14:22:49.000Z | test/paper_trail/bang_functions_simple_mode_test.exs | rschef/paper_trail | 6ab8b29ee97b46222cc48d376daea70fc5cb8105 | [
"MIT"
] | null | null | null | test/paper_trail/bang_functions_simple_mode_test.exs | rschef/paper_trail | 6ab8b29ee97b46222cc48d376daea70fc5cb8105 | [
"MIT"
] | 2 | 2021-06-08T11:47:03.000Z | 2021-10-18T21:44:08.000Z | defmodule PaperTrailTest.SimpleModeBangFunctions do
use ExUnit.Case
import Ecto.Query
alias PaperTrail.Version
alias SimpleCompany, as: Company
alias SimplePerson, as: Person
alias PaperTrailTest.MultiTenantHelper, as: MultiTenant
alias PaperTrail.RepoClient
alias PaperTrail.Serializer
@create_comp... | 30.578231 | 107 | 0.587923 |
4a4ce6cb9d6d25990c28eba8bf4eb88f9a990929 | 743 | exs | Elixir | mix.exs | ckampfe/ox | d8da521a580dd14df27406ac2fe35ab8890f979a | [
"MIT"
] | null | null | null | mix.exs | ckampfe/ox | d8da521a580dd14df27406ac2fe35ab8890f979a | [
"MIT"
] | null | null | null | mix.exs | ckampfe/ox | d8da521a580dd14df27406ac2fe35ab8890f979a | [
"MIT"
] | null | null | null | defmodule Ox.Mixfile do
use Mix.Project
def project do
[
app: :ox,
version: "0.2.0",
elixir: "~> 1.5",
package: package(),
description: "An implementation of Okasaki data structures",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
def application do
... | 20.081081 | 66 | 0.543742 |
4a4cfd195950e558a7573fbf8962704b809cd88d | 204 | exs | Elixir | priv/repo/migrations/20160227233833_rename_lang_id_in_object_texts.exs | lyncms/lyn | ef825e7ff8df049a41f9a10685324079ebe116f9 | [
"MIT"
] | 96 | 2016-02-26T20:20:33.000Z | 2020-10-02T16:21:00.000Z | priv/repo/migrations/20160227233833_rename_lang_id_in_object_texts.exs | lyncms/lyn | ef825e7ff8df049a41f9a10685324079ebe116f9 | [
"MIT"
] | 12 | 2016-02-27T16:23:55.000Z | 2017-07-04T13:46:00.000Z | priv/repo/migrations/20160227233833_rename_lang_id_in_object_texts.exs | lyncms/lyn | ef825e7ff8df049a41f9a10685324079ebe116f9 | [
"MIT"
] | 24 | 2016-03-10T23:55:33.000Z | 2019-06-07T18:32:34.000Z | defmodule Lyn.Repo.Migrations.RenameLangIdInObjectTexts do
use Ecto.Migration
def change do
alter table(:object_texts) do
remove :lang_id
add :language_id, :integer
end
end
end
| 18.545455 | 58 | 0.720588 |
4a4d2aa258a3277b10b9f2607711d68c551ab380 | 3,800 | ex | Elixir | apps/omg_watcher/lib/omg_watcher/api/status.ex | PinkDiamond1/elixir-omg | 70dfd24a0a1ddf5d1d9d71aab61ea25300f889f7 | [
"Apache-2.0"
] | null | null | null | apps/omg_watcher/lib/omg_watcher/api/status.ex | PinkDiamond1/elixir-omg | 70dfd24a0a1ddf5d1d9d71aab61ea25300f889f7 | [
"Apache-2.0"
] | null | null | null | apps/omg_watcher/lib/omg_watcher/api/status.ex | PinkDiamond1/elixir-omg | 70dfd24a0a1ddf5d1d9d71aab61ea25300f889f7 | [
"Apache-2.0"
] | 1 | 2021-12-04T00:37:46.000Z | 2021-12-04T00:37:46.000Z | # Copyright 2019 OmiseGO Pte Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writi... | 40.860215 | 119 | 0.750789 |
4a4d3f70b8339e58801a1f9946cbec7306986a6d | 138 | exs | Elixir | apps/re/priv/repo/migrations/20180608171155_remove_featured_listings.exs | ruby2elixir/emcasa-backend | 70d7f4f233555417941ffa6ada84cf8740c21dd2 | [
"MIT"
] | 4 | 2019-11-01T16:29:31.000Z | 2020-10-10T21:20:12.000Z | apps/re/priv/repo/migrations/20180608171155_remove_featured_listings.exs | caspg/backend | 34df9dc14ab8ed75de4578fefa2e087580c7e867 | [
"MIT"
] | null | null | null | apps/re/priv/repo/migrations/20180608171155_remove_featured_listings.exs | caspg/backend | 34df9dc14ab8ed75de4578fefa2e087580c7e867 | [
"MIT"
] | 5 | 2019-11-04T21:25:45.000Z | 2020-02-13T23:49:36.000Z | defmodule Re.Repo.Migrations.RemoveFeaturedListings do
use Ecto.Migration
def change do
drop table(:featured_listings)
end
end
| 17.25 | 54 | 0.782609 |
4a4d60ebf6ef5f8809f8bfa4d943de63bf4d60e4 | 4,571 | ex | Elixir | clients/analytics_admin/lib/google_api/analytics_admin/v1alpha/model/google_analytics_admin_v1alpha_property.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/analytics_admin/lib/google_api/analytics_admin/v1alpha/model/google_analytics_admin_v1alpha_property.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/analytics_admin/lib/google_api/analytics_admin/v1alpha/model/google_analytics_admin_v1alpha_property.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 53.776471 | 416 | 0.700722 |
4a4d82b91fd699f216a5736ce6620d122091c3a4 | 3,426 | ex | Elixir | deps/db_connection/lib/db_connection/backoff.ex | rpillar/Top5_Elixir | 9c450d2e9b291108ff1465dc066dfe442dbca822 | [
"MIT"
] | null | null | null | deps/db_connection/lib/db_connection/backoff.ex | rpillar/Top5_Elixir | 9c450d2e9b291108ff1465dc066dfe442dbca822 | [
"MIT"
] | null | null | null | deps/db_connection/lib/db_connection/backoff.ex | rpillar/Top5_Elixir | 9c450d2e9b291108ff1465dc066dfe442dbca822 | [
"MIT"
] | null | null | null | defmodule DBConnection.Backoff do
@moduledoc false
@compile :nowarn_deprecated_function
alias DBConnection.Backoff
@default_type :rand_exp
@min 1_000
@max 30_000
defstruct [:type, :min, :max, :state]
def new(opts) do
case Keyword.get(opts, :backoff_type, @default_t... | 29.534483 | 79 | 0.578517 |
4a4d9eee04a2dc008cee359e2753a0f9f2b902d8 | 1,456 | exs | Elixir | mix.exs | akash-akya/livebook | c3a0b7c01d76e8c646d4d1db0c49f1401ca80153 | [
"Apache-2.0"
] | null | null | null | mix.exs | akash-akya/livebook | c3a0b7c01d76e8c646d4d1db0c49f1401ca80153 | [
"Apache-2.0"
] | null | null | null | mix.exs | akash-akya/livebook | c3a0b7c01d76e8c646d4d1db0c49f1401ca80153 | [
"Apache-2.0"
] | null | null | null | defmodule Livebook.MixProject do
use Mix.Project
def project do
[
app: :livebook,
version: "0.1.0",
elixir: "~> 1.11",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix] ++ Mix.compilers(),
start_permanent: Mix.env() == :prod,
aliases: aliases(),
deps... | 23.868852 | 74 | 0.526786 |
4a4da49fc8b6f6c9015e6cb8b341375a4ac3dec2 | 454 | ex | Elixir | lib/http/cable_adapter.ex | Onlyhope/cable | e2c91e28e112d0724b1cfb88acfa096f6fcbb455 | [
"MIT"
] | null | null | null | lib/http/cable_adapter.ex | Onlyhope/cable | e2c91e28e112d0724b1cfb88acfa096f6fcbb455 | [
"MIT"
] | null | null | null | lib/http/cable_adapter.ex | Onlyhope/cable | e2c91e28e112d0724b1cfb88acfa096f6fcbb455 | [
"MIT"
] | null | null | null | defmodule Cable.ConnAdapter do
require Logger
def dispatch(request, plug) do
%{full_path: _full_path} = Http.read_request(request)
|> IO.inspect
%Plug.Conn{
adapter: {Http.PlugAdapter, request},
owner: self(),
}
|> plug.play([wo... | 21.619048 | 61 | 0.555066 |
4a4dc2920c8edba3ae1617c72ed690cfa631136f | 2,001 | ex | Elixir | lib/storeHall/items/item.ex | macypa/storeHall | 9fe810f763527cc87fa165138bdfb3cda92fa553 | [
"MIT"
] | null | null | null | lib/storeHall/items/item.ex | macypa/storeHall | 9fe810f763527cc87fa165138bdfb3cda92fa553 | [
"MIT"
] | 4 | 2019-07-16T06:24:42.000Z | 2021-05-07T22:26:14.000Z | lib/storeHall/items/item.ex | macypa/storeHall | 9fe810f763527cc87fa165138bdfb3cda92fa553 | [
"MIT"
] | 1 | 2018-11-23T21:13:31.000Z | 2018-11-23T21:13:31.000Z | defmodule StoreHall.Items.Item do
use Ecto.Schema
import Ecto.Changeset
import StoreHall.ReactionFields
@derive {Jason.Encoder,
only:
[:id, :name, :details, :user, :user_id, :inserted_at, :updated_at] ++
reaction_jason_fields()}
schema "items" do
field :name, :strin... | 27.040541 | 82 | 0.590205 |
4a4dd3c0861032d20e9018d6021c85208e605d8f | 643 | ex | Elixir | lib/docusign/model/brand_resources_list.ex | gaslight/docusign_elixir | d9d88d53dd85d32a39d537bade9db28d779414e6 | [
"MIT"
] | 4 | 2020-12-21T12:50:13.000Z | 2022-01-12T16:50:43.000Z | lib/docusign/model/brand_resources_list.ex | gaslight/docusign_elixir | d9d88d53dd85d32a39d537bade9db28d779414e6 | [
"MIT"
] | 12 | 2018-09-18T15:26:34.000Z | 2019-09-28T15:29:39.000Z | lib/docusign/model/brand_resources_list.ex | gaslight/docusign_elixir | d9d88d53dd85d32a39d537bade9db28d779414e6 | [
"MIT"
] | 15 | 2020-04-29T21:50:16.000Z | 2022-02-11T18:01:51.000Z | # NOTE: This class is auto generated by the swagger code generator program.
# https://github.com/swagger-api/swagger-codegen.git
# Do not edit the class manually.
defmodule DocuSign.Model.BrandResourcesList do
@moduledoc """
"""
@derive [Poison.Encoder]
defstruct [
:resourcesContentTypes
]
@type t :... | 22.964286 | 89 | 0.723173 |
4a4def03311dde40ff61be2ad7b30884753e590b | 1,580 | ex | Elixir | examples/swagger_demo/web/web.ex | Whatnot-Inc/bureaucrat | d0634c6017dc68f8a23078cbc8c181a4b2d3e6db | [
"Unlicense"
] | 326 | 2015-08-19T10:05:07.000Z | 2022-03-28T08:49:33.000Z | examples/swagger_demo/web/web.ex | Whatnot-Inc/bureaucrat | d0634c6017dc68f8a23078cbc8c181a4b2d3e6db | [
"Unlicense"
] | 64 | 2015-08-19T06:44:19.000Z | 2022-03-29T06:23:34.000Z | examples/swagger_demo/web/web.ex | Whatnot-Inc/bureaucrat | d0634c6017dc68f8a23078cbc8c181a4b2d3e6db | [
"Unlicense"
] | 66 | 2016-01-08T20:40:40.000Z | 2022-03-03T02:15:15.000Z | defmodule SwaggerDemo.Web do
@moduledoc """
A module that keeps using definitions for controllers,
views and so on.
This can be used in your application as:
use SwaggerDemo.Web, :controller
use SwaggerDemo.Web, :view
The definitions below will be executed for every view,
controller, etc, so k... | 20 | 88 | 0.677215 |
4a4dfc4460c112452a4dfad4ff2ed115fb3a89d7 | 554 | exs | Elixir | test/wallaby/browser/click_link_test.exs | schnittchen/wallaby | 30be89cc78087e53e5b47a86043c2bbe8566bbf4 | [
"MIT"
] | null | null | null | test/wallaby/browser/click_link_test.exs | schnittchen/wallaby | 30be89cc78087e53e5b47a86043c2bbe8566bbf4 | [
"MIT"
] | null | null | null | test/wallaby/browser/click_link_test.exs | schnittchen/wallaby | 30be89cc78087e53e5b47a86043c2bbe8566bbf4 | [
"MIT"
] | null | null | null | defmodule Wallaby.Browser.ClickLinkTest do
use Wallaby.SessionCase, async: true
test "click through to another page", %{session: session} do
session
|> visit("")
|> click_link("Page 1")
element =
session
|> find(Query.css(".blue"))
assert element
end
describe "click_link/2" d... | 19.103448 | 62 | 0.595668 |
4a4dfdda6fdf4845f2b3d2a7d16bba83c072fa2e | 3,312 | ex | Elixir | clients/dataflow/lib/google_api/dataflow/v1b3/model/worker_message_code.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/dataflow/lib/google_api/dataflow/v1b3/model/worker_message_code.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/dataflow/lib/google_api/dataflow/v1b3/model/worker_message_code.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 ... | 38.511628 | 128 | 0.724034 |
4a4e1abb6ba4d2deb3254215194bf7dcdca49780 | 25,156 | ex | Elixir | deps/ecto/lib/ecto/query.ex | scouten/crash_esqlite_case | 986f0b0721399c7ed520f6b9df133980906e3f51 | [
"MIT"
] | null | null | null | deps/ecto/lib/ecto/query.ex | scouten/crash_esqlite_case | 986f0b0721399c7ed520f6b9df133980906e3f51 | [
"MIT"
] | null | null | null | deps/ecto/lib/ecto/query.ex | scouten/crash_esqlite_case | 986f0b0721399c7ed520f6b9df133980906e3f51 | [
"MIT"
] | null | null | null | defmodule Ecto.Query do
@moduledoc ~S"""
Provides the Query DSL.
Queries are used to retrieve and manipulate data in a repository
(see `Ecto.Repo`). Although this module provides a complete API,
supporting expressions like `where/3`, `select/3` and so forth,
most of the time developers need to import only ... | 31.964422 | 113 | 0.662069 |
4a4e2144e972814cb6fff347e01299d6e1556e50 | 2,158 | ex | Elixir | clients/double_click_bid_manager/lib/google_api/double_click_bid_manager/v1/model/query_schedule.ex | jechol/elixir-google-api | 0290b683dfc6491ca2ef755a80bc329378738d03 | [
"Apache-2.0"
] | null | null | null | clients/double_click_bid_manager/lib/google_api/double_click_bid_manager/v1/model/query_schedule.ex | jechol/elixir-google-api | 0290b683dfc6491ca2ef755a80bc329378738d03 | [
"Apache-2.0"
] | null | null | null | clients/double_click_bid_manager/lib/google_api/double_click_bid_manager/v1/model/query_schedule.ex | jechol/elixir-google-api | 0290b683dfc6491ca2ef755a80bc329378738d03 | [
"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.535714 | 214 | 0.720575 |
4a4e6e4d6cec77f4346becbfba6f9667c1aba253 | 640 | exs | Elixir | elixir/mix.exs | vlamy/lcd | fdcd38709e7d2837e186a9e618e69da84f3128b1 | [
"MIT"
] | null | null | null | elixir/mix.exs | vlamy/lcd | fdcd38709e7d2837e186a9e618e69da84f3128b1 | [
"MIT"
] | null | null | null | elixir/mix.exs | vlamy/lcd | fdcd38709e7d2837e186a9e618e69da84f3128b1 | [
"MIT"
] | null | null | null | defmodule Lcd.MixProject do
use Mix.Project
def project do
[
app: :lcd,
version: "0.1.0",
elixir: "~> 1.7",
start_permanent: Mix.env() == :prod,
escript: [main_module: LCD.CLI],
default_task: "escript.build",
deps: deps()
]
end
# Run "mix help compile.app" to ... | 20.645161 | 88 | 0.576563 |
4a4e7caeda6078ea494dd92d754ccedbdc3cae18 | 233 | ex | Elixir | lib/cgrates_web_jsonapi/auth_error_handler.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/auth_error_handler.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/auth_error_handler.ex | max-konin/cgrates_web_jsonapi | e82690e343d790b0f77dea6699483fcb6fd8a162 | [
"MIT"
] | 5 | 2018-09-27T11:30:44.000Z | 2021-01-16T08:28:58.000Z | defmodule CgratesWebJsonapi.AuthErrorHandler do
@moduledoc false
import Plug.Conn
def auth_error(conn, {type, reason}, _opts) do
body = Poison.encode!(%{message: to_string(type)})
send_resp(conn, 401, body)
end
end
| 21.181818 | 54 | 0.72103 |
4a4e9251dbeb1916660bf01ab65161150e1c0b04 | 5,442 | exs | Elixir | test/cadet_web/controllers/assets_controller_test.exs | seanlowjk/cadet | 52b55cc0f777cb0d55a78fe1693f762085ab36c2 | [
"Apache-2.0"
] | null | null | null | test/cadet_web/controllers/assets_controller_test.exs | seanlowjk/cadet | 52b55cc0f777cb0d55a78fe1693f762085ab36c2 | [
"Apache-2.0"
] | 10 | 2022-02-24T17:57:38.000Z | 2022-03-31T07:43:05.000Z | test/cadet_web/controllers/assets_controller_test.exs | seanlowjk/cadet | 52b55cc0f777cb0d55a78fe1693f762085ab36c2 | [
"Apache-2.0"
] | 1 | 2019-07-17T15:51:58.000Z | 2019-07-17T15:51:58.000Z | defmodule CadetWeb.AssetsControllerTest do
use CadetWeb.ConnCase
use ExVCR.Mock, adapter: ExVCR.Adapter.Hackney
alias CadetWeb.AssetsController
setup_all do
HTTPoison.start()
end
test "swagger" do
AssetsController.swagger_definitions()
AssetsController.swagger_path_index(nil)
AssetsContro... | 30.233333 | 98 | 0.633591 |
4a4ea6192b3fd6b70de5b630c2504e2828154b5a | 1,619 | ex | Elixir | clients/service_management/lib/google_api/service_management/v1/model/source_context.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/service_management/lib/google_api/service_management/v1/model/source_context.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/service_management/lib/google_api/service_management/v1/model/source_context.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... | 34.446809 | 203 | 0.74861 |
4a4eaf915a4530df583aa50eb81e51f3080a4ce9 | 1,252 | ex | Elixir | web/policies/question.ex | sahilpaudel/AfterGlow | 0859ec14b47c8c5704cc8e5cba86d39aa258fff5 | [
"MIT"
] | null | null | null | web/policies/question.ex | sahilpaudel/AfterGlow | 0859ec14b47c8c5704cc8e5cba86d39aa258fff5 | [
"MIT"
] | null | null | null | web/policies/question.ex | sahilpaudel/AfterGlow | 0859ec14b47c8c5704cc8e5cba86d39aa258fff5 | [
"MIT"
] | null | null | null | defmodule AfterGlow.Question.Policy do
import Ecto.Query
import AfterGlow.Policy.Helpers
def can?(nil, _action, _question), do: false
def can?(user, :index, _question), do: has_permission(user, "Question.show")
def can?(user, :show, _question), do: has_permission(user, "Question.show")
def can?(user, :searc... | 40.387097 | 88 | 0.63099 |
4a4ef822c76334f56ce3d53881a65e3faa2fbb61 | 501 | ex | Elixir | apps/magnetissimo_web/lib/magnetissimo_web/views/error_view.ex | Hashim-mansoor/magnetissimo | 44be76ca646f5ebe62be72c618ab2216a44ac9b3 | [
"MIT"
] | 2,849 | 2016-07-22T15:48:08.000Z | 2022-03-30T12:01:22.000Z | apps/magnetissimo_web/lib/magnetissimo_web/views/error_view.ex | Hashim-mansoor/magnetissimo | 44be76ca646f5ebe62be72c618ab2216a44ac9b3 | [
"MIT"
] | 119 | 2016-08-06T06:55:12.000Z | 2020-08-24T23:31:35.000Z | apps/magnetissimo_web/lib/magnetissimo_web/views/error_view.ex | Hashim-mansoor/magnetissimo | 44be76ca646f5ebe62be72c618ab2216a44ac9b3 | [
"MIT"
] | 234 | 2016-07-27T11:03:56.000Z | 2022-03-14T11:32:36.000Z | defmodule MagnetissimoWeb.ErrorView do
use MagnetissimoWeb, :view
# If you want to customize a particular status code
# for a certain format, you may uncomment below.
# def render("500.html", _assigns) do
# "Internal Server Error"
# end
# By default, Phoenix returns the status message from
# the tem... | 29.470588 | 61 | 0.740519 |
4a4f0946d863368798d3a74b742907f10e945cfc | 392 | ex | Elixir | example_app/web/views/error_view.ex | jespr/noegle | e14953085d38384c80993dd750aa85202db11418 | [
"MIT"
] | null | null | null | example_app/web/views/error_view.ex | jespr/noegle | e14953085d38384c80993dd750aa85202db11418 | [
"MIT"
] | 1 | 2017-05-08T15:09:09.000Z | 2017-05-10T06:05:24.000Z | example_app/web/views/error_view.ex | jespr/noegle | e14953085d38384c80993dd750aa85202db11418 | [
"MIT"
] | null | null | null | defmodule NoegleExampleApp.ErrorView do
use NoegleExampleApp.Web, :view
def render("404.html", _assigns) do
"Page not found"
end
def render("500.html", _assigns) do
"Internal server error"
end
# In case no render clause matches or no
# template is found, let's render it as 500
def template_no... | 21.777778 | 47 | 0.711735 |
4a4f1d1b224511739887b78f2537ebf739bc57e3 | 1,024 | ex | Elixir | lib/membrane/parser.ex | RohanPoojary/membrane | badbb948c3120054d800f84eb93b75ec2c48ceaf | [
"MIT"
] | null | null | null | lib/membrane/parser.ex | RohanPoojary/membrane | badbb948c3120054d800f84eb93b75ec2c48ceaf | [
"MIT"
] | null | null | null | lib/membrane/parser.ex | RohanPoojary/membrane | badbb948c3120054d800f84eb93b75ec2c48ceaf | [
"MIT"
] | null | null | null | defmodule Membrane.Parser do
@moduledoc ~S"""
This is an aggregate module that uses all the parsers and handles fallback value.
It imports all the 4 parsers:
* `Membrane.Parser.AtomParser`
* `Membrane.Parser.PropertyParser`
* `Membrane.Parser.LogicalParser`
* `Membrane.Parser.ListParser`
... | 23.813953 | 89 | 0.681641 |
4a4f1dcb23236343feb7c38a55e77968ee22c04b | 1,926 | exs | Elixir | exercises/practice/dominoes/test/dominoes_test.exs | devtayls/elixir | 67824de8209ff1b6ed2f736deedfb5bd815130ca | [
"MIT"
] | 343 | 2017-06-22T16:28:28.000Z | 2022-03-25T21:33:32.000Z | exercises/practice/dominoes/test/dominoes_test.exs | devtayls/elixir | 67824de8209ff1b6ed2f736deedfb5bd815130ca | [
"MIT"
] | 583 | 2017-06-19T10:48:40.000Z | 2022-03-28T21:43:12.000Z | exercises/practice/dominoes/test/dominoes_test.exs | devtayls/elixir | 67824de8209ff1b6ed2f736deedfb5bd815130ca | [
"MIT"
] | 228 | 2017-07-05T07:09:32.000Z | 2022-03-27T08:59:08.000Z | defmodule DominoesTest do
use ExUnit.Case
test "empty input = empty output" do
assert Dominoes.chain?([]) == true
end
@tag :pending
test "singleton input = singleton output" do
assert Dominoes.chain?([{1, 1}]) == true
end
@tag :pending
test "singleton that can't be chained" do
assert Domi... | 22.928571 | 84 | 0.530114 |
4a4f25f50619d10b07f2f1a2fce42845afa2ad65 | 1,531 | ex | Elixir | clients/civic_info/lib/google_api/civic_info/v2/model/message_set.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/civic_info/lib/google_api/civic_info/v2/model/message_set.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/civic_info/lib/google_api/civic_info/v2/model/message_set.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 ... | 32.574468 | 120 | 0.753756 |
4a4f32f9b783a18b19867cba8ab8e3f1ece03e13 | 5,303 | ex | Elixir | lib/gen.ex | fstp/computercraft | 16f0a559a5c180e3a10ded81fb7456d54c2b5aa2 | [
"MIT"
] | null | null | null | lib/gen.ex | fstp/computercraft | 16f0a559a5c180e3a10ded81fb7456d54c2b5aa2 | [
"MIT"
] | null | null | null | lib/gen.ex | fstp/computercraft | 16f0a559a5c180e3a10ded81fb7456d54c2b5aa2 | [
"MIT"
] | null | null | null | defmodule Gen do
def main do
layers = File.read!("blueprint.txt")
|> String.split("\n", trim: true)
|> create_layers(%{layers: []}, 1)
IO.puts lua_functions
IO.puts layers.layers
end
def create_layers([head | tail], state, depth) do
{_x, length} = parse_dimensions(head)
{rows, ta... | 23.157205 | 79 | 0.551952 |
4a4f461451ca3c4472456da14f1a8d946ed97448 | 8,076 | ex | Elixir | lib/hayago/state.ex | jeffkreeftmeijer/hayago | f80e3204efc70fb4c144a75952534ef143ab584d | [
"Apache-2.0"
] | 60 | 2019-06-14T02:38:33.000Z | 2022-02-27T22:08:36.000Z | lib/hayago/state.ex | jeffkreeftmeijer/hayago | f80e3204efc70fb4c144a75952534ef143ab584d | [
"Apache-2.0"
] | 2 | 2020-01-05T09:09:58.000Z | 2020-12-31T09:54:13.000Z | lib/hayago/state.ex | jeffkreeftmeijer/hayago | f80e3204efc70fb4c144a75952534ef143ab584d | [
"Apache-2.0"
] | 15 | 2019-06-14T02:38:39.000Z | 2021-10-30T21:53:08.000Z | defmodule Hayago.State do
@moduledoc """
A struct to describe the current state in the game, and functions to update
the state by placing stones and to check if a certain move is legal.
## Attributes
### Positions
The *positions* attribute is a list of positions on the board. Initially,
it's generated a... | 32.963265 | 97 | 0.609955 |
4a4f72b4f43cf91379c4e70b4e90e81d4afbeee1 | 159 | ex | Elixir | lib/slackerton_web/controllers/helper_controller.ex | matthewoden/slackerton | 0604122884cf08087432f2e32d80eca42a878c37 | [
"MIT"
] | 1 | 2022-02-19T17:49:37.000Z | 2022-02-19T17:49:37.000Z | lib/slackerton_web/controllers/helper_controller.ex | matthewoden/slackerton | 0604122884cf08087432f2e32d80eca42a878c37 | [
"MIT"
] | 4 | 2018-07-14T16:30:17.000Z | 2022-02-10T16:23:23.000Z | lib/slackerton_web/controllers/helper_controller.ex | matthewoden/slackerton | 0604122884cf08087432f2e32d80eca42a878c37 | [
"MIT"
] | null | null | null | defmodule SlackertonWeb.HelperController do
use SlackertonWeb, :controller
def index(conn, _params) do
render conn, "ping.json", ping: true
end
end
| 19.875 | 43 | 0.748428 |
4a4f8fa5f8bc4097ca6de05d56c46fc8850c6d27 | 854 | exs | Elixir | test/type/fetch_type/functions_test.exs | kianmeng/mavis | 6ba154efdfadcce1aca92ac735dadb209380c25b | [
"MIT"
] | null | null | null | test/type/fetch_type/functions_test.exs | kianmeng/mavis | 6ba154efdfadcce1aca92ac735dadb209380c25b | [
"MIT"
] | null | null | null | test/type/fetch_type/functions_test.exs | kianmeng/mavis | 6ba154efdfadcce1aca92ac735dadb209380c25b | [
"MIT"
] | null | null | null | defmodule TypeTest.Type.FetchType.FunctionsTest do
use ExUnit.Case, async: true
import Type, only: :macros
@moduletag :fetch
@source TypeTest.TypeExample.Functions
alias Type.Function
test "zero arity" do
assert {:ok, %Function{params: [], return: builtin(:any)}} ==
Type.fetch_type(@source, :... | 23.722222 | 100 | 0.666276 |
4a4f998fa4dcd7fd555f1e00ffea4161b911da78 | 120 | exs | Elixir | test/config_test.exs | weareyipyip/YipYipExAuth | 4c845f778dea3594c347236706e9963a338d4c74 | [
"Apache-2.0"
] | 2 | 2020-03-02T20:59:11.000Z | 2021-02-24T13:53:15.000Z | test/config_test.exs | weareyipyip/YipyipExAuth | 4c845f778dea3594c347236706e9963a338d4c74 | [
"Apache-2.0"
] | null | null | null | test/config_test.exs | weareyipyip/YipyipExAuth | 4c845f778dea3594c347236706e9963a338d4c74 | [
"Apache-2.0"
] | null | null | null | defmodule YipyipExAuth.ConfigTest do
use ExUnit.Case
import YipyipExAuth.Config
doctest YipyipExAuth.Config
end
| 15 | 36 | 0.816667 |
4a4fb2fa9eec99f227e25a085f46d3f9c06462c2 | 24,521 | ex | Elixir | lib/aws/lambda.ex | kaashyapan/aws-elixir | 3b6c371fe8c850d961c35274089b9df47aa5edf4 | [
"Apache-2.0"
] | 223 | 2015-05-29T17:45:35.000Z | 2021-06-29T08:37:14.000Z | lib/aws/lambda.ex | kaashyapan/aws-elixir | 3b6c371fe8c850d961c35274089b9df47aa5edf4 | [
"Apache-2.0"
] | 33 | 2015-11-20T20:56:43.000Z | 2021-07-09T20:13:34.000Z | lib/aws/lambda.ex | kaashyapan/aws-elixir | 3b6c371fe8c850d961c35274089b9df47aa5edf4 | [
"Apache-2.0"
] | 62 | 2015-06-14T20:53:24.000Z | 2021-12-13T07:20:15.000Z | # WARNING: DO NOT EDIT, AUTO-GENERATED CODE!
# See https://github.com/jkakar/aws-codegen for more details.
defmodule AWS.Lambda do
@moduledoc """
AWS Lambda
**Overview**
This is the *AWS Lambda API Reference*. The AWS Lambda Developer Guide
provides additional information. For the service overview, see [Wh... | 42.794066 | 117 | 0.724685 |
4a4fda6c5d726db56a6aa92af5507e99f577fce2 | 372 | ex | Elixir | lib/quadquizaminos_web/live/modal_component.ex | StickyFloors/quizquadaminos | 03e3b5f150d3a911efa2174bc4631a0ee6b54888 | [
"MIT"
] | 1 | 2022-01-11T20:06:31.000Z | 2022-01-11T20:06:31.000Z | lib/quadquizaminos_web/live/modal_component.ex | StickyFloors/quizquadaminos | 03e3b5f150d3a911efa2174bc4631a0ee6b54888 | [
"MIT"
] | 484 | 2021-02-15T18:43:40.000Z | 2022-03-29T12:27:24.000Z | lib/quadquizaminos_web/live/modal_component.ex | StickyFloors/quizquadaminos | 03e3b5f150d3a911efa2174bc4631a0ee6b54888 | [
"MIT"
] | 8 | 2021-02-15T19:12:51.000Z | 2021-12-15T03:02:46.000Z | defmodule QuadquizaminosWeb.ModalComponent do
use QuadquizaminosWeb, :live_component
@impl true
def render(assigns) do
~L"""
<div id="<%= @id %>" class="phx-modal"
phx-target="#<%= @id %>"
phx-page-loading>
<div class="phx-modal-content">
<%= live_component @socket, @component,... | 20.666667 | 56 | 0.580645 |
4a4fe2587ea9a53f6a5f84e3d3a6e728f3d1d2a4 | 113 | ex | Elixir | lib/repo.ex | areski/freeswitch_realtime | aca5d07341b6e3d8a2bebab0475ba77c23f301ff | [
"MIT"
] | 14 | 2016-12-19T23:16:44.000Z | 2021-07-08T02:22:01.000Z | lib/repo.ex | areski/freeswitch_realtime | aca5d07341b6e3d8a2bebab0475ba77c23f301ff | [
"MIT"
] | null | null | null | lib/repo.ex | areski/freeswitch_realtime | aca5d07341b6e3d8a2bebab0475ba77c23f301ff | [
"MIT"
] | 4 | 2017-08-15T10:44:10.000Z | 2020-03-09T17:07:33.000Z | defmodule FSRealtime.Repo do
use Ecto.Repo,
otp_app: :fs_realtime,
adapter: Ecto.Adapters.Postgres
end
| 18.833333 | 35 | 0.743363 |
4a4ffe0d7094caca5b7a8b7d9c3ba924b68238a6 | 254 | exs | Elixir | priv/repo/migrations/20190105125633_create_post.exs | albertschr/blog_supported_blockchain | ee9578c8ebddd3e72ff5eaabefc2d724c3e2a9a1 | [
"MIT"
] | 1 | 2019-02-06T12:29:35.000Z | 2019-02-06T12:29:35.000Z | priv/repo/migrations/20190105125633_create_post.exs | albertschr/blog_supported_blockchain | ee9578c8ebddd3e72ff5eaabefc2d724c3e2a9a1 | [
"MIT"
] | null | null | null | priv/repo/migrations/20190105125633_create_post.exs | albertschr/blog_supported_blockchain | ee9578c8ebddd3e72ff5eaabefc2d724c3e2a9a1 | [
"MIT"
] | null | null | null | defmodule Blog.Repo.Migrations.CreatePost do
use Ecto.Migration
def change do
create table(:articles) do
add :title, :string
add :type, :string
add :body, :text
add :user_id, :integer
timestamps()
end
end
end
| 18.142857 | 44 | 0.633858 |
4a50594d42d26e3129b33db74cad2cf6898062df | 16,186 | ex | Elixir | clients/ad_sense_host/lib/google_api/ad_sense_host/v41/api/customchannels.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/ad_sense_host/lib/google_api/ad_sense_host/v41/api/customchannels.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/ad_sense_host/lib/google_api/ad_sense_host/v41/api/customchannels.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 ... | 43.394102 | 211 | 0.635673 |
4a50877434b57f78804521da69ac512990cc7225 | 7,236 | exs | Elixir | apps/jobs/test/unit/legal_entity_deactivation_job_test.exs | ehealth-ua/ehealth.api | 4ffe26a464fe40c95fb841a4aa2e147068f65ca2 | [
"Apache-2.0"
] | 8 | 2019-06-14T11:34:49.000Z | 2021-08-05T19:14:24.000Z | apps/jobs/test/unit/legal_entity_deactivation_job_test.exs | edenlabllc/ehealth.api.public | 4ffe26a464fe40c95fb841a4aa2e147068f65ca2 | [
"Apache-2.0"
] | 1 | 2019-07-08T15:20:22.000Z | 2019-07-08T15:20:22.000Z | apps/jobs/test/unit/legal_entity_deactivation_job_test.exs | ehealth-ua/ehealth.api | 4ffe26a464fe40c95fb841a4aa2e147068f65ca2 | [
"Apache-2.0"
] | 6 | 2018-05-11T13:59:32.000Z | 2022-01-19T20:15:22.000Z | defmodule Unit.LegalEntityDeactivationJobTest do
@moduledoc false
use Core.ConnCase, async: false
import Mox
alias Core.ContractRequests
alias Core.ContractRequests.RequestPack
alias Core.ContractRequests.CapitationContractRequest
alias Core.ContractRequests.ReimbursementContractRequest
alias Core.Cont... | 33.971831 | 102 | 0.688226 |
4a50eaae8e935cbcbb9b89c76498023cac768d24 | 1,239 | exs | Elixir | config/prod.secret.exs | SAAF-Alex-and-Ashton-Forces/kepler | 06cea361e5972b5ebe4e19f70793d921aca25664 | [
"MIT"
] | null | null | null | config/prod.secret.exs | SAAF-Alex-and-Ashton-Forces/kepler | 06cea361e5972b5ebe4e19f70793d921aca25664 | [
"MIT"
] | null | null | null | config/prod.secret.exs | SAAF-Alex-and-Ashton-Forces/kepler | 06cea361e5972b5ebe4e19f70793d921aca25664 | [
"MIT"
] | null | null | null | # In this file, we load production configuration and secrets
# from environment variables. You can also hardcode secrets,
# although such is generally not recommended and you have to
# remember to add this file to your .gitignore.
use Mix.Config
database_url =
System.get_env("DATABASE_URL") ||
raise """
envi... | 29.5 | 67 | 0.717514 |
4a50f703d42da06afcb47862aed29132a92ef609 | 13,696 | ex | Elixir | lib/unicode/category/assigned.ex | kianmeng/unicode | 85702a499c155cfe8aecefde937f9cfc1d67b26c | [
"Apache-2.0"
] | 21 | 2019-11-22T02:29:31.000Z | 2021-12-14T01:30:36.000Z | lib/unicode/category/assigned.ex | kipcole9/cldr_unicode | 43f7b53a0df4e178098f8e507f596387a37d1e13 | [
"Apache-2.0"
] | 3 | 2020-10-10T22:02:03.000Z | 2021-05-24T18:15:46.000Z | lib/unicode/category/assigned.ex | kipcole9/cldr_unicode | 43f7b53a0df4e178098f8e507f596387a37d1e13 | [
"Apache-2.0"
] | 2 | 2020-10-10T14:50:04.000Z | 2021-05-24T16:35:52.000Z | defmodule Unicode.DerivedCategory.Assigned do
@moduledoc false
# assigned is [:any:] - [:Cn:]
# This is a static version calculated
# by [unicode_set](https://hex.pm/packages/unicode_set) by the
# operation `"[[:any:]-[:Cn:]]`
# It should be regenerated each Unicode release
@assigned_category [
{0... | 19.649928 | 64 | 0.49686 |
4a5114004a164d30fd30cab7b1f299b415747c47 | 2,032 | ex | Elixir | clients/games_management/lib/google_api/games_management/v1management/model/hidden_player_list.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/games_management/lib/google_api/games_management/v1management/model/hidden_player_list.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/games_management/lib/google_api/games_management/v1management/model/hidden_player_list.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... | 38.339623 | 169 | 0.734744 |
4a5127579517f2754535582eca6e891e6629d1cc | 21,233 | ex | Elixir | lib/mix/lib/mix/tasks/format.ex | mattnenterprise/elixir | 8b624835a9b94fec0f881d211e3d018b37828997 | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/tasks/format.ex | mattnenterprise/elixir | 8b624835a9b94fec0f881d211e3d018b37828997 | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/tasks/format.ex | mattnenterprise/elixir | 8b624835a9b94fec0f881d211e3d018b37828997 | [
"Apache-2.0"
] | null | null | null | defmodule Mix.Tasks.Format do
use Mix.Task
@shortdoc "Formats the given files/patterns"
@moduledoc """
Formats the given files and patterns.
mix format mix.exs "lib/**/*.{ex,exs}" "test/**/*.{ex,exs}"
If any of the files is `-`, then the output is read from stdin
and written to stdout.
## Forma... | 33.703175 | 110 | 0.669194 |
4a517e77eb792fd1cdd030f1ac35c0a56db02733 | 11,680 | ex | Elixir | lib/beam_file.ex | hrzndhrn/beam_file | 3a54bdfa9c458501e0c308e8ceba0ade661317b7 | [
"MIT"
] | 16 | 2020-05-28T20:41:45.000Z | 2022-03-29T13:51:14.000Z | lib/beam_file.ex | hrzndhrn/beam_file | 3a54bdfa9c458501e0c308e8ceba0ade661317b7 | [
"MIT"
] | null | null | null | lib/beam_file.ex | hrzndhrn/beam_file | 3a54bdfa9c458501e0c308e8ceba0ade661317b7 | [
"MIT"
] | 1 | 2021-08-23T02:51:47.000Z | 2021-08-23T02:51:47.000Z | defmodule BeamFile do
@moduledoc """
An interface to the BEAM file format.
This module is mainly a wrapper around Erlangs `:beam_lib`.
Furthermore, different code representations can be generated from the file.
- `BeamFile.abstract_code/1`
- `BeamFile.byte_code/1`
- `BeamFile.erl_code/1`
- `BeamFile.e... | 23.548387 | 94 | 0.552568 |
4a518954268bb3e26c4661c4076fe29622f27626 | 1,578 | ex | Elixir | lib/hl7/2.1/segments/in1.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | lib/hl7/2.1/segments/in1.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | lib/hl7/2.1/segments/in1.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | defmodule HL7.V2_1.Segments.IN1 do
@moduledoc false
require Logger
use HL7.Segment,
fields: [
segment: nil,
set_id_insurance: nil,
insurance_plan_id: nil,
insurance_company_id: nil,
insurance_company_name: nil,
insurance_company_address: nil,
insurance_co_contact_pe... | 28.690909 | 44 | 0.691381 |
4a518fac006049c97cb900298620a86e7d861446 | 801 | ex | Elixir | lib/adyen_checkout_ex/model/upi_details.ex | rsystem-se/adyen_checkout_ex | 4210f1c7150152e81f350dc6ca55aeb19665b85b | [
"MIT"
] | 1 | 2021-05-30T20:45:10.000Z | 2021-05-30T20:45:10.000Z | lib/adyen_checkout_ex/model/upi_details.ex | rsystem-se/adyen_checkout_ex | 4210f1c7150152e81f350dc6ca55aeb19665b85b | [
"MIT"
] | null | null | null | lib/adyen_checkout_ex/model/upi_details.ex | rsystem-se/adyen_checkout_ex | 4210f1c7150152e81f350dc6ca55aeb19665b85b | [
"MIT"
] | null | null | null | # NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
# https://openapi-generator.tech
# Do not edit the class manually.
defmodule AdyenCheckoutEx.Model.UpiDetails do
@moduledoc """
"""
@derive [Poison.Encoder]
defstruct [
:"recurringDetailReference",
:"shopper... | 23.558824 | 91 | 0.686642 |
4a51b8e823fa3cd813b480bc301f17da09056d76 | 3,000 | ex | Elixir | lib/podcast-feeds.ex | argl/podcast-feeds | 371fddb5626b8173483662a6e16391d5c361ed90 | [
"MIT"
] | 1 | 2016-01-22T19:59:41.000Z | 2016-01-22T19:59:41.000Z | lib/podcast-feeds.ex | argl/podcast-feeds | 371fddb5626b8173483662a6e16391d5c361ed90 | [
"MIT"
] | 1 | 2018-05-22T09:20:06.000Z | 2018-06-12T03:50:52.000Z | lib/podcast-feeds.ex | argl/podcast-feeds | 371fddb5626b8173483662a6e16391d5c361ed90 | [
"MIT"
] | 2 | 2016-01-22T20:03:44.000Z | 2018-05-19T00:25:36.000Z | defmodule PodcastFeeds do
# RSS2 image element
defmodule Image do
defstruct title: nil,
url: nil,
link: nil,
width: nil,
height: nil,
description: nil
end
# RSS2 enclosure element
defmodule Enclosure do
defstruct url: nil,
... | 25.423729 | 147 | 0.525333 |
4a51ba3e916a228d724155fafa753c84c8739b18 | 1,666 | ex | Elixir | lib/gitlab/endpoint.ex | avitex/elixir-gitlab | ca2f3a20364d39d19a1c6dd22193090ecf5d20de | [
"MIT"
] | 2 | 2020-05-31T19:41:35.000Z | 2020-09-08T13:22:53.000Z | lib/gitlab/endpoint.ex | avitex/elixir-gitlab | ca2f3a20364d39d19a1c6dd22193090ecf5d20de | [
"MIT"
] | 23 | 2020-04-15T23:37:44.000Z | 2021-06-25T15:36:30.000Z | lib/gitlab/endpoint.ex | avitex/elixir-gitlab | ca2f3a20364d39d19a1c6dd22193090ecf5d20de | [
"MIT"
] | null | null | null | defmodule Gitlab.Endpoint do
@type t :: module()
@type url :: String.t()
@type id :: integer() | String.t()
@type scope :: resource() | resource_list()
@type resource :: resource_simple | resource_scoped
@type resource_simple :: {t(), id()}
@type resource_scoped :: {t(), scope(), id()}
@type resource... | 27.311475 | 91 | 0.667467 |
4a51c0dd8e655c6105ef7c03ff28e285bdddf72d | 2,379 | ex | Elixir | lib/pbkdf2/stats.ex | smt116/pbkdf2_elixir | 9d654afeb44b994c955c884b79b569815524a978 | [
"BSD-3-Clause"
] | 47 | 2017-07-11T03:38:16.000Z | 2022-03-14T19:44:20.000Z | lib/pbkdf2/stats.ex | smt116/pbkdf2_elixir | 9d654afeb44b994c955c884b79b569815524a978 | [
"BSD-3-Clause"
] | 17 | 2017-08-30T03:29:19.000Z | 2022-03-24T16:51:30.000Z | lib/pbkdf2/stats.ex | smt116/pbkdf2_elixir | 9d654afeb44b994c955c884b79b569815524a978 | [
"BSD-3-Clause"
] | 11 | 2017-12-20T00:15:50.000Z | 2021-12-25T03:08:55.000Z | defmodule Pbkdf2.Stats do
@moduledoc """
Module to provide statistics for the Pbkdf2 password hashing function.
## Configuring Pbkdf2
The main configuration option for Pbkdf2 is the number of rounds that
it uses. Increasing this value will increase the complexity, and time
taken, of the Pbkdf2 function.
... | 33.507042 | 89 | 0.70702 |
4a51c70db7c2a9a2b32acf2df7910c0547713f7f | 16,955 | ex | Elixir | clients/content/lib/google_api/content/v2/model/product.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/model/product.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/model/product.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 60.770609 | 400 | 0.70463 |
4a52154f60f273d954139c506a6549755324fc6e | 6,701 | ex | Elixir | clients/civic_info/lib/google_api/civic_info/v2/api/representatives.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/civic_info/lib/google_api/civic_info/v2/api/representatives.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/civic_info/lib/google_api/civic_info/v2/api/representatives.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... | 51.546154 | 244 | 0.709148 |
4a52203b54f82009350de5cacbd5c50047094572 | 1,876 | ex | Elixir | lib/strava/model/activity_stats.ex | rkorzeniec/strava | aa99040355f72ff2766c080d5a919c66a53ac44b | [
"MIT"
] | 39 | 2016-04-09T21:50:34.000Z | 2022-03-04T09:16:25.000Z | lib/strava/model/activity_stats.ex | rkorzeniec/strava | aa99040355f72ff2766c080d5a919c66a53ac44b | [
"MIT"
] | 24 | 2016-05-29T15:49:07.000Z | 2022-01-17T11:57:05.000Z | lib/strava/model/activity_stats.ex | rkorzeniec/strava | aa99040355f72ff2766c080d5a919c66a53ac44b | [
"MIT"
] | 21 | 2016-02-02T01:19:23.000Z | 2022-02-06T23:29:32.000Z | defmodule Strava.ActivityStats do
@moduledoc """
A set of rolled-up statistics and totals for an athlete
"""
@derive [Poison.Encoder]
defstruct [
:biggest_ride_distance,
:biggest_climb_elevation_gain,
:recent_ride_totals,
:recent_run_totals,
:recent_swim_totals,
:ytd_ride_totals,
... | 36.076923 | 79 | 0.708955 |
4a523010369aef85e9a559c4f224d513b875e7c9 | 7,146 | exs | Elixir | test/integration/subscription_transport_ws_test.exs | maartenvanvliet/subscriptions-transport-ws | 5e85c87f813f0d7b676e3adddc39d93cac7a93fb | [
"MIT"
] | 12 | 2021-03-05T21:30:05.000Z | 2022-03-18T23:20:49.000Z | test/integration/subscription_transport_ws_test.exs | maartenvanvliet/subscriptions-transport-ws | 5e85c87f813f0d7b676e3adddc39d93cac7a93fb | [
"MIT"
] | 11 | 2021-03-23T22:03:30.000Z | 2022-03-24T04:10:36.000Z | test/integration/subscription_transport_ws_test.exs | maartenvanvliet/subscriptions-transport-ws | 5e85c87f813f0d7b676e3adddc39d93cac7a93fb | [
"MIT"
] | null | null | null | Code.require_file("../support/websocket_client.exs", __DIR__)
Code.require_file("../support/test_schema.exs", __DIR__)
defmodule SubscriptionsTransportWS.Integration.SocketTest do
use ExUnit.Case
import ExUnit.CaptureLog
alias __MODULE__.Endpoint
alias SubscriptionsTransportWS.OperationMessage
alias Subscri... | 23.201299 | 87 | 0.554016 |
4a526fc2e43e755450421931d9eb22ab8626bd44 | 6,412 | ex | Elixir | lib/sdr.ex | anandgeorge/sdr | f6433d4eb8c71d7d160e28cf62920a7ed9b7800b | [
"BSD-3-Clause"
] | null | null | null | lib/sdr.ex | anandgeorge/sdr | f6433d4eb8c71d7d160e28cf62920a7ed9b7800b | [
"BSD-3-Clause"
] | null | null | null | lib/sdr.ex | anandgeorge/sdr | f6433d4eb8c71d7d160e28cf62920a7ed9b7800b | [
"BSD-3-Clause"
] | null | null | null | defmodule Sdr do
@moduledoc """
SDR is an Elixir library for Sparse Distributed Representations
"""
defp factorial(n), do: factorial(n, 1)
defp factorial(0, acc), do: acc
defp factorial(n, acc) when n > 0, do: factorial(n - 1, acc * n)
@doc """
Capacity of a SDR.
## Examples
```elixir
iex... | 22.263889 | 144 | 0.533063 |
4a527ea7e779f4c1b7221269abc5cb814099b6c0 | 5,031 | ex | Elixir | lib/pow/extension/ecto/schema.ex | abartier/pow | 58a3d082da093e2dc7f07825a950ee133204813f | [
"Unlicense",
"MIT"
] | null | null | null | lib/pow/extension/ecto/schema.ex | abartier/pow | 58a3d082da093e2dc7f07825a950ee133204813f | [
"Unlicense",
"MIT"
] | null | null | null | lib/pow/extension/ecto/schema.ex | abartier/pow | 58a3d082da093e2dc7f07825a950ee133204813f | [
"Unlicense",
"MIT"
] | null | null | null | defmodule Pow.Extension.Ecto.Schema do
@moduledoc """
Handles extensions for the user Ecto schema.
The macro will append attributes to the `:pow_fields` module attribute, and
run `validate!/2` when compilation is done.
## Usage
Configure `lib/my_project/users/user.ex` the following way:
defmodule ... | 28.585227 | 134 | 0.689326 |
4a52c0aab0b8e4ecb676ce85139a10d467e6c909 | 132 | exs | Elixir | tail_recursive.exs | karlosmid/book_programming_elixir_12 | 53769b35728a82eddde3a21d4cbd45c1c21596a4 | [
"MIT"
] | null | null | null | tail_recursive.exs | karlosmid/book_programming_elixir_12 | 53769b35728a82eddde3a21d4cbd45c1c21596a4 | [
"MIT"
] | null | null | null | tail_recursive.exs | karlosmid/book_programming_elixir_12 | 53769b35728a82eddde3a21d4cbd45c1c21596a4 | [
"MIT"
] | null | null | null | defmodule TailRecursive do
def fact(n), do: _fact(n,1)
defp _fact(0,acc), do: acc
defp _fact(n,acc), do: _fact(n-1,acc*n)
end
| 22 | 41 | 0.666667 |
4a52d20c98dc5dba0d90acb563a2c0824d7e8964 | 1,348 | ex | Elixir | lib/ambry/media/processor/mp4_re_encode.ex | doughsay/ambry | c04e855bf06a6b00b8053c6eacb2eac14a56a37c | [
"MIT"
] | 12 | 2021-09-30T20:51:49.000Z | 2022-01-27T04:09:32.000Z | lib/ambry/media/processor/mp4_re_encode.ex | doughsay/ambry | c04e855bf06a6b00b8053c6eacb2eac14a56a37c | [
"MIT"
] | 76 | 2021-10-01T05:45:11.000Z | 2022-03-28T04:12:39.000Z | lib/ambry/media/processor/mp4_re_encode.ex | doughsay/ambry | c04e855bf06a6b00b8053c6eacb2eac14a56a37c | [
"MIT"
] | 2 | 2021-10-04T19:27:28.000Z | 2022-01-13T22:36:38.000Z | defmodule Ambry.Media.Processor.MP4ReEncode do
@moduledoc """
A media processor that re-encodes and converts a single MP4 to dash & hls
streaming format.
"""
import Ambry.Media.Processor.Shared
alias Ambry.Media.Media
alias Ambry.Media.Processor.ProgressTracker
@extensions ~w(.mp4 .m4a .m4b)
def n... | 21.741935 | 97 | 0.643917 |
4a52dbfd55a5b0dd771e2d6d688f659d253576e9 | 2,367 | ex | Elixir | apps/ewallet/lib/ewallet/web/api_docs.ex | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 322 | 2018-02-28T07:38:44.000Z | 2020-05-27T23:09:55.000Z | apps/ewallet/lib/ewallet/web/api_docs.ex | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 643 | 2018-02-28T12:05:20.000Z | 2020-05-22T08:34:38.000Z | apps/ewallet/lib/ewallet/web/api_docs.ex | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 63 | 2018-02-28T10:57:06.000Z | 2020-05-27T23:10:38.000Z | # Copyright 2018-2019 OmiseGO Pte Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 32.875 | 100 | 0.673426 |
4a5308a9f26913f220da5e90addba2b014f20943 | 27,516 | ex | Elixir | lib/plug/debugger.ex | sascha-wolf/plug | 325ee50483d2aaf61a5257dba91500190115778b | [
"Apache-2.0"
] | 1 | 2021-02-24T13:06:18.000Z | 2021-02-24T13:06:18.000Z | lib/plug/debugger.ex | sascha-wolf/plug | 325ee50483d2aaf61a5257dba91500190115778b | [
"Apache-2.0"
] | null | null | null | lib/plug/debugger.ex | sascha-wolf/plug | 325ee50483d2aaf61a5257dba91500190115778b | [
"Apache-2.0"
] | null | null | null | defmodule Plug.Debugger do
@moduledoc """
A module (**not a plug**) for debugging in development.
This module is commonly used within a `Plug.Builder` or a `Plug.Router`
and it wraps the `call/2` function.
Notice `Plug.Debugger` *does not* catch errors, as errors should still
propagate so that the Elixir ... | 55.032 | 12,756 | 0.788923 |
4a533d7fd01512bb535f61cdbf598960046bba46 | 1,183 | ex | Elixir | lib/freshcom/core/request.ex | dclausen/freshcom | 7e1d6397c8ab222cfd03830232cee0718f050490 | [
"BSD-3-Clause"
] | null | null | null | lib/freshcom/core/request.ex | dclausen/freshcom | 7e1d6397c8ab222cfd03830232cee0718f050490 | [
"BSD-3-Clause"
] | null | null | null | lib/freshcom/core/request.ex | dclausen/freshcom | 7e1d6397c8ab222cfd03830232cee0718f050490 | [
"BSD-3-Clause"
] | null | null | null | defmodule Freshcom.Request do
use TypedStruct
typedstruct do
field :requester_id, String.t()
field :client_id, String.t()
field :account_id, String.t()
field :fields, map(), default: %{}
field :identifiers, map(), default: %{}
field :filter, list(), default: []
field :search, String.t()... | 29.575 | 68 | 0.626374 |
4a536cb5b94578ffd6a110fd3ab55515b7592e05 | 1,324 | ex | Elixir | clients/deployment_manager/lib/google_api/deployment_manager/v2/model/resource_update_error.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/deployment_manager/lib/google_api/deployment_manager/v2/model/resource_update_error.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/deployment_manager/lib/google_api/deployment_manager/v2/model/resource_update_error.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... | 33.948718 | 106 | 0.76284 |
4a5377286e224c29d66b4221a44b72e0bdf2a6b6 | 2,034 | exs | Elixir | mix.exs | code-supply/gcs_signed_url | e3e72b8b11e80c47899713189f03d94e28b2a831 | [
"MIT"
] | null | null | null | mix.exs | code-supply/gcs_signed_url | e3e72b8b11e80c47899713189f03d94e28b2a831 | [
"MIT"
] | null | null | null | mix.exs | code-supply/gcs_signed_url | e3e72b8b11e80c47899713189f03d94e28b2a831 | [
"MIT"
] | null | null | null | defmodule GcsSignedUrl.MixProject do
use Mix.Project
@source_url "https://github.com/alexandrubagu/gcs_signed_url"
@version "0.4.2"
def project do
[
app: :gcs_signed_url,
version: @version,
elixir: "~> 1.8",
elixirc_paths: elixirc_paths(Mix.env()),
package: package(),
p... | 24.214286 | 75 | 0.560472 |
4a53959320940c06a6e8567c5e34695709371bde | 765 | ex | Elixir | lib/extensions/email_confirmation/ecto/context.ex | abartier/pow | 58a3d082da093e2dc7f07825a950ee133204813f | [
"Unlicense",
"MIT"
] | null | null | null | lib/extensions/email_confirmation/ecto/context.ex | abartier/pow | 58a3d082da093e2dc7f07825a950ee133204813f | [
"Unlicense",
"MIT"
] | null | null | null | lib/extensions/email_confirmation/ecto/context.ex | abartier/pow | 58a3d082da093e2dc7f07825a950ee133204813f | [
"Unlicense",
"MIT"
] | null | null | null | defmodule PowEmailConfirmation.Ecto.Context do
@moduledoc false
use Pow.Extension.Ecto.Context.Base
alias Ecto.Changeset
alias Pow.Config
alias Pow.Ecto.Context
alias PowEmailConfirmation.Ecto.Schema
@doc """
Finds a user by the `email_confirmation_token` column.
"""
@spec get_by_confirmation_toke... | 28.333333 | 82 | 0.711111 |
4a53bafa61e1df408ccbf72e3eec0c7f0c2b11cc | 1,318 | ex | Elixir | apps/firestorm_web/lib/firestorm_web/markdown.ex | CircleCI-Public/firestorm | 9ca2c46a2b2377370347ad94d6003eeb77be38d6 | [
"MIT"
] | 10 | 2017-06-28T08:06:52.000Z | 2022-03-19T17:49:21.000Z | apps/firestorm_web/lib/firestorm_web/markdown.ex | CircleCI-Public/firestorm | 9ca2c46a2b2377370347ad94d6003eeb77be38d6 | [
"MIT"
] | null | null | null | apps/firestorm_web/lib/firestorm_web/markdown.ex | CircleCI-Public/firestorm | 9ca2c46a2b2377370347ad94d6003eeb77be38d6 | [
"MIT"
] | 2 | 2017-10-21T12:01:02.000Z | 2021-01-29T10:26:22.000Z | defmodule FirestormWeb.Markdown do
@moduledoc """
Render a string as markdown in the FirestormWeb style.
Then sanitize the resulting HTML.
"""
def render(body) do
body
|> as_html!
end
defp as_html!(body) do
body
|> Earmark.as_html!(earmark_options())
|> HtmlSanitizeEx.markdown_html
... | 32.95 | 81 | 0.691199 |
4a53bd07bbc87ecfa5fe5d472187695544ce90a4 | 1,848 | ex | Elixir | clients/container/lib/google_api/container/v1/model/node_taint.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/container/lib/google_api/container/v1/model/node_taint.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/container/lib/google_api/container/v1/model/node_taint.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... | 34.867925 | 297 | 0.709957 |
4a53de83dff113aab506d3e23bd6a649c64caa4c | 7,630 | ex | Elixir | deps/distillery/lib/distillery/tasks/release.ex | renatoalmeidaoliveira/Merlin | 92a0e318872190cdfa07ced85ee54cc69cad5c14 | [
"Apache-2.0"
] | null | null | null | deps/distillery/lib/distillery/tasks/release.ex | renatoalmeidaoliveira/Merlin | 92a0e318872190cdfa07ced85ee54cc69cad5c14 | [
"Apache-2.0"
] | null | null | null | deps/distillery/lib/distillery/tasks/release.ex | renatoalmeidaoliveira/Merlin | 92a0e318872190cdfa07ced85ee54cc69cad5c14 | [
"Apache-2.0"
] | null | null | null | defmodule Mix.Tasks.Release do
@moduledoc """
Build a release for the current mix application.
## Examples
# Build a release using defaults
mix release
# Build an executable release
mix release --executable
# Build an executable release which will cleanup after itself after it ru... | 34.681818 | 109 | 0.621887 |
4a53e0a783949db286a9ab64cc500a7cddf87365 | 23,586 | exs | Elixir | test/groupher_server/cms/comments/job_comment_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/cms/comments/job_comment_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/cms/comments/job_comment_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.CMS.Comments.JobComment do
@moduledoc false
use GroupherServer.TestTools
import Helper.Utils, only: [get_config: 2]
alias Helper.ORM
alias GroupherServer.{Accounts, CMS}
alias Accounts.Model.User
alias CMS.Model.{Comment, PinnedComment, Embeds, Job}
@active_period get_co... | 35.574661 | 93 | 0.643433 |
4a541e05b9ec53494c6e02df3db06d9c0b3eda15 | 109 | ex | Elixir | tests/dummy/web/views/history_view.ex | autoxjs/autox-phoenix | 6446f4487e3af28955f6560973cff6add34be4d4 | [
"MIT"
] | null | null | null | tests/dummy/web/views/history_view.ex | autoxjs/autox-phoenix | 6446f4487e3af28955f6560973cff6add34be4d4 | [
"MIT"
] | 20 | 2016-04-05T06:28:58.000Z | 2016-05-12T15:45:37.000Z | tests/dummy/web/views/history_view.ex | foxnewsnetwork/autox | 66ea3f0f7ba8b3f9e910984a2ed3cdf0ef5ef29a | [
"MIT"
] | null | null | null | defmodule Dummy.HistoryView do
use Dummy.Web, :view
@relationships ~w()a
use Autox.ResourceView
end | 15.571429 | 30 | 0.733945 |
4a542c12cb3cca9e5b9c86d42b8639c7d328c64c | 1,713 | ex | Elixir | lib/toy_robot/repl.ex | devdug/toy_robot | ec0214c4ea7762136b6913e5da75499643ea7324 | [
"MIT"
] | null | null | null | lib/toy_robot/repl.ex | devdug/toy_robot | ec0214c4ea7762136b6913e5da75499643ea7324 | [
"MIT"
] | null | null | null | lib/toy_robot/repl.ex | devdug/toy_robot | ec0214c4ea7762136b6913e5da75499643ea7324 | [
"MIT"
] | null | null | null | defmodule ToyRobot.Repl do
@moduledoc """
REPL loop for command line interface.
"""
alias ToyRobot.Api
@doc """
Starts the Api server and on success calls the `ToyRobot.Repl.loop/1` function to run the repl.
"""
def run() do
# Api.start_server() returns {:ok, server_pid} or {:error, reason} tuples.... | 21.683544 | 97 | 0.636894 |
4a5439a971b69d39a457cbd0b404f990889c63a7 | 656 | exs | Elixir | config/config.exs | sbrink/ecto_context | eb67c10aac30fdd69028229b3da7f240d01a2c59 | [
"MIT"
] | 1 | 2019-03-03T20:23:29.000Z | 2019-03-03T20:23:29.000Z | config/config.exs | sbrink/ecto_context | eb67c10aac30fdd69028229b3da7f240d01a2c59 | [
"MIT"
] | 30 | 2020-07-06T05:19:08.000Z | 2021-07-28T04:49:23.000Z | config/config.exs | sbrink/ecto_context | eb67c10aac30fdd69028229b3da7f240d01a2c59 | [
"MIT"
] | null | null | null | 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 parent project. For this reason,
# if you want to provide default values for your application for
# third-party users, it shoul... | 28.521739 | 70 | 0.739329 |
4a54491724e9bb64e6760458a9d88d49bf6dc937 | 1,289 | ex | Elixir | lib/built_with_elixir_web/views/error_helpers.ex | ospaarmann/built_with_elixir | 5919107c79f200b2035352c7ef9714f8a8f6ff4c | [
"MIT"
] | 8 | 2018-04-15T19:01:14.000Z | 2018-11-19T16:13:56.000Z | lib/built_with_elixir_web/views/error_helpers.ex | ospaarmann/built_with_elixir | 5919107c79f200b2035352c7ef9714f8a8f6ff4c | [
"MIT"
] | 8 | 2018-04-14T03:32:12.000Z | 2018-05-15T04:28:27.000Z | lib/built_with_elixir_web/views/error_helpers.ex | ospaarmann/built_with_elixir | 5919107c79f200b2035352c7ef9714f8a8f6ff4c | [
"MIT"
] | 2 | 2021-09-22T13:44:09.000Z | 2021-12-21T14:26:03.000Z | defmodule BuiltWithElixirWeb.ErrorHelpers do
@moduledoc """
Conveniences for translating and building error messages.
"""
use Phoenix.HTML
@doc """
Generates tag for inlined form input errors.
"""
def error_tag(form, field) do
Enum.map(Keyword.get_values(form.errors, field), fn error ->
cont... | 31.439024 | 84 | 0.677269 |
4a54776e2090d9b5b6f378163fbd3a98c53e9619 | 1,643 | ex | Elixir | lib/spawn_api_web.ex | spawnfest/spawn_api | e99dbc20dfc5ff18747efc0c2dafbecdf577707c | [
"MIT"
] | 2 | 2018-12-19T16:12:41.000Z | 2020-01-20T17:37:15.000Z | lib/spawn_api_web.ex | spawnfest/spawn_api | e99dbc20dfc5ff18747efc0c2dafbecdf577707c | [
"MIT"
] | null | null | null | lib/spawn_api_web.ex | spawnfest/spawn_api | e99dbc20dfc5ff18747efc0c2dafbecdf577707c | [
"MIT"
] | null | null | null | defmodule SpawnApiWeb 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 SpawnApiWeb, :controller
use SpawnApiWeb, :view
The definitions below will be executed for every view,
controlle... | 23.471429 | 83 | 0.691418 |
4a548fa991308940899913852b7e250f10713ab0 | 2,388 | ex | Elixir | apps/re/lib/developments/units/units.ex | ruby2elixir/emcasa-backend | 70d7f4f233555417941ffa6ada84cf8740c21dd2 | [
"MIT"
] | 4 | 2019-11-01T16:29:31.000Z | 2020-10-10T21:20:12.000Z | apps/re/lib/developments/units/units.ex | eduardomartines/emcasa-backend | 70d7f4f233555417941ffa6ada84cf8740c21dd2 | [
"MIT"
] | null | null | null | apps/re/lib/developments/units/units.ex | eduardomartines/emcasa-backend | 70d7f4f233555417941ffa6ada84cf8740c21dd2 | [
"MIT"
] | 5 | 2019-11-04T21:25:45.000Z | 2020-02-13T23:49:36.000Z | defmodule Re.Units do
@moduledoc """
Context module for unit. A unit represents realty/real estate properties,
for a listing. A listing can have one or more units.
"""
@behaviour Bodyguard.Policy
require Logger
alias Ecto.{
Changeset,
Multi
}
alias Re.{
Developments.JobQueue,
Repo,
... | 25.404255 | 98 | 0.644891 |
4a54c3367cdeadba44f2a36d8c5dbe0ee9aee213 | 1,480 | ex | Elixir | lib/beet_diet_web/views/error_helpers.ex | Vaysman/beer-diet | 14bf38e08afc25bd3f0139d8fff75f0df1821793 | [
"MIT"
] | null | null | null | lib/beet_diet_web/views/error_helpers.ex | Vaysman/beer-diet | 14bf38e08afc25bd3f0139d8fff75f0df1821793 | [
"MIT"
] | null | null | null | lib/beet_diet_web/views/error_helpers.ex | Vaysman/beer-diet | 14bf38e08afc25bd3f0139d8fff75f0df1821793 | [
"MIT"
] | null | null | null | defmodule BeetDietWeb.ErrorHelpers do
@moduledoc """
Conveniences for translating and building error messages.
"""
use Phoenix.HTML
@doc """
Generates tag for inlined form input errors.
"""
def error_tag(form, field) do
Enum.map(Keyword.get_values(form.errors, field), fn error ->
content_tag... | 32.888889 | 77 | 0.670946 |
4a54c5e091fcaf6a4ad76f7e346adfa3d9b997cb | 7,290 | ex | Elixir | lib/grapevine/telnet/client.ex | shanesveller/grapevine | fe74ade1adff88dfe4c1ab55fee3902dbb4664fe | [
"MIT"
] | null | null | null | lib/grapevine/telnet/client.ex | shanesveller/grapevine | fe74ade1adff88dfe4c1ab55fee3902dbb4664fe | [
"MIT"
] | null | null | null | lib/grapevine/telnet/client.ex | shanesveller/grapevine | fe74ade1adff88dfe4c1ab55fee3902dbb4664fe | [
"MIT"
] | null | null | null | defmodule Grapevine.Telnet.Client do
@moduledoc """
A client to check for MSSP data
"""
use GenServer, restart: :transient
require Logger
@type message() :: any()
@type option() :: tuple()
@type result() :: {:noreply, state()} | {:stop, :normal, state()}
@type server_options() :: Keyword.t()
@typ... | 30 | 107 | 0.635391 |
4a54e3e07ac1dfaca1486c6e05531f17eb47d003 | 159 | ex | Elixir | lib/cgrates_web_jsonapi_web/views/tp_filter_import_job_view.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/views/tp_filter_import_job_view.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/views/tp_filter_import_job_view.ex | max-konin/cgrates_web_jsonapi | e82690e343d790b0f77dea6699483fcb6fd8a162 | [
"MIT"
] | 5 | 2018-09-27T11:30:44.000Z | 2021-01-16T08:28:58.000Z | defmodule CgratesWebJsonapiWeb.TpDestinationRateImportJobView do
use CgratesWebJsonapiWeb, :view
use JaSerializer.PhoenixView
attributes([:status])
end
| 22.714286 | 64 | 0.836478 |
4a54f208090005cc42684401b78464cede02d3c6 | 1,545 | ex | Elixir | lib/database/attempt_status.ex | UnofficialJuliaMirror/bors-ng-bors-ng | fcec51b5f6e5a691d3e310bd35ba7b74e55b667f | [
"Apache-2.0"
] | null | null | null | lib/database/attempt_status.ex | UnofficialJuliaMirror/bors-ng-bors-ng | fcec51b5f6e5a691d3e310bd35ba7b74e55b667f | [
"Apache-2.0"
] | 1 | 2020-03-07T08:28:14.000Z | 2020-03-07T08:28:14.000Z | lib/database/attempt_status.ex | UnofficialJuliaMirror/bors-ng-bors-ng | fcec51b5f6e5a691d3e310bd35ba7b74e55b667f | [
"Apache-2.0"
] | null | null | null | defmodule BorsNG.Database.AttemptStatus do
@moduledoc """
A database record for an individual CI run.
It corresponds to an item in the status = []
array of bors.toml.
This version links to an attempt,
rather than a batch.
"""
use BorsNG.Database.Model
alias BorsNG.Database.AttemptStatusState
@typ... | 28.090909 | 91 | 0.691909 |
4a5505cb596d74f69d3467a9ac7a0c328e06e7ca | 2,203 | ex | Elixir | apps/theta/lib/theta/cachedb.ex | LangPham/thetaproject | c6479d1b761ff58fe6ae5f82e2d9de87a8658883 | [
"MIT"
] | null | null | null | apps/theta/lib/theta/cachedb.ex | LangPham/thetaproject | c6479d1b761ff58fe6ae5f82e2d9de87a8658883 | [
"MIT"
] | 11 | 2020-07-21T09:34:54.000Z | 2021-08-29T07:38:02.000Z | apps/theta/lib/theta/cachedb.ex | LangPham/thetaproject | c6479d1b761ff58fe6ae5f82e2d9de87a8658883 | [
"MIT"
] | null | null | null | defmodule Theta.CacheDB do
@moduledoc """
The Cachedb.
"""
use GenServer
alias :ets, as: Ets
# 1 ngay
# @expired_after 60 * 60 * 24
def start_link(args \\ []) do
GenServer.start_link(__MODULE__, args, name: __MODULE__)
end
def set(key, value) do
GenServer.cast(__MODULE__, {:set, key, val... | 20.980952 | 77 | 0.548343 |
4a550aaccbf6b1a50aea0f0aec332d3b614a17c0 | 388 | ex | Elixir | apps/massa_proxy/lib/infra/http/transcoding_proxy_router.ex | drowzy/massa | 624cb02e0039b0624c534636f96fd157b1e34a95 | [
"Apache-2.0"
] | 20 | 2021-06-28T12:03:49.000Z | 2022-03-28T22:35:56.000Z | apps/massa_proxy/lib/infra/http/transcoding_proxy_router.ex | drowzy/massa | 624cb02e0039b0624c534636f96fd157b1e34a95 | [
"Apache-2.0"
] | 48 | 2021-03-19T12:01:38.000Z | 2022-03-29T21:19:26.000Z | apps/massa_proxy/lib/infra/http/transcoding_proxy_router.ex | drowzy/massa | 624cb02e0039b0624c534636f96fd157b1e34a95 | [
"Apache-2.0"
] | 5 | 2021-03-18T21:46:10.000Z | 2021-10-01T17:39:05.000Z | defmodule Infra.Http.TranscodingProxyRouter do
@moduledoc """
Simple proxy for handle http requests.
All requests sended to Http Router
"""
require Logger
alias MassaProxy.Server.HttpRouter
def init(opts), do: opts
def call(conn, opts) do
Logger.debug("HTTP Request: #{inspect(conn)}:#{inspect(opts... | 24.25 | 67 | 0.71134 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.