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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
08b375e0884d2b19d09d70bff5d460c1eb2a8b78 | 351 | exs | Elixir | priv/repo/migrations/20150902201300_create_vehicle_position.exs | bus-detective/pro | d313f4facdb4c9229bd7a022eeabb85170000e18 | [
"MIT"
] | null | null | null | priv/repo/migrations/20150902201300_create_vehicle_position.exs | bus-detective/pro | d313f4facdb4c9229bd7a022eeabb85170000e18 | [
"MIT"
] | null | null | null | priv/repo/migrations/20150902201300_create_vehicle_position.exs | bus-detective/pro | d313f4facdb4c9229bd7a022eeabb85170000e18 | [
"MIT"
] | null | null | null | defmodule BdPro.Repo.Migrations.CreateVehiclePosition do
use Ecto.Migration
def change do
create table(:vehicle_positions) do
add :trip_remote_id, :integer
add :lat, :float
add :lng, :float
add :vehicle_id, references(:vehicles)
timestamps
end
create index(:vehicle_positi... | 20.647059 | 56 | 0.689459 |
08b379becb2bc211f43711c7dde722e34db7da9f | 1,046 | exs | Elixir | config/config.exs | majeX/phoenix-liveview-demo | e6c27fdd771eae8d64b3e8950a53e2534be72168 | [
"MIT"
] | null | null | null | config/config.exs | majeX/phoenix-liveview-demo | e6c27fdd771eae8d64b3e8950a53e2534be72168 | [
"MIT"
] | null | null | null | config/config.exs | majeX/phoenix-liveview-demo | e6c27fdd771eae8d64b3e8950a53e2534be72168 | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
#
# This configuration file is loaded before any dependency and
# is restricted to this project.
# General application configuration
use Mix.Config
# Configures the endpoint
config :mcf_phoenix, M... | 33.741935 | 86 | 0.770554 |
08b387819542e881715925acf4461c5d250c6398 | 1,031 | exs | Elixir | apps/zones/mix.exs | mbta/crispy-spoon | 7ef28a1a6adc73899b007e334b9220f7a48a60fa | [
"MIT"
] | null | null | null | apps/zones/mix.exs | mbta/crispy-spoon | 7ef28a1a6adc73899b007e334b9220f7a48a60fa | [
"MIT"
] | null | null | null | apps/zones/mix.exs | mbta/crispy-spoon | 7ef28a1a6adc73899b007e334b9220f7a48a60fa | [
"MIT"
] | null | null | null | defmodule Zones.Mixfile do
use Mix.Project
def project do
[
app: :zones,
version: "0.1.0",
build_path: "../../_build",
config_path: "../../config/config.exs",
deps_path: "../../deps",
lockfile: "../../mix.lock",
build_embedded: Mix.env() == :prod,
start_permanent... | 22.413043 | 77 | 0.57517 |
08b38dda0b3c82a80c66eddb5a187714cba148cb | 3,675 | exs | Elixir | mix.exs | j127/tesla | 9ea2e9e663b6ec3ca1acad7178a863b76da0cab9 | [
"MIT"
] | 1 | 2021-10-16T22:37:03.000Z | 2021-10-16T22:37:03.000Z | mix.exs | barisbalic/tesla | 979595465e83102b47e71bfd223a16c99e97f778 | [
"MIT"
] | null | null | null | mix.exs | barisbalic/tesla | 979595465e83102b47e71bfd223a16c99e97f778 | [
"MIT"
] | null | null | null | defmodule Tesla.Mixfile do
use Mix.Project
@version "1.3.0"
def project do
[
app: :tesla,
version: @version,
description: description(),
package: package(),
source_ref: "v#{@version}",
source_url: "https://github.com/teamon/tesla",
elixir: "~> 1.5",
elixirc_pa... | 27.222222 | 91 | 0.566259 |
08b3d922f68c102a4de21899289faab82c67954c | 225 | exs | Elixir | tor_practice_snippets/mylist.exs | TheDeepEnd/elixir-snippets | 68d1429706f725410e690ef86406eb4bf900aff2 | [
"MIT"
] | null | null | null | tor_practice_snippets/mylist.exs | TheDeepEnd/elixir-snippets | 68d1429706f725410e690ef86406eb4bf900aff2 | [
"MIT"
] | null | null | null | tor_practice_snippets/mylist.exs | TheDeepEnd/elixir-snippets | 68d1429706f725410e690ef86406eb4bf900aff2 | [
"MIT"
] | null | null | null | defmodule MyList do
def len([]), do: 0
def len( [ _head | tail ] ), do: 1 + len(tail)
def square([]), do: []
def square( [ head | tail ] ), do: [ head * head | square(tail) ]
end
| 22.5 | 67 | 0.453333 |
08b4017727d6417332fae6bb8daced37935535ba | 1,159 | ex | Elixir | lib/dialyxir/warnings/pattern_match_covered.ex | legoscia/dialyxir | 39579cb3abf6570da56a2a7185204452c49f9b5c | [
"Apache-2.0"
] | null | null | null | lib/dialyxir/warnings/pattern_match_covered.ex | legoscia/dialyxir | 39579cb3abf6570da56a2a7185204452c49f9b5c | [
"Apache-2.0"
] | null | null | null | lib/dialyxir/warnings/pattern_match_covered.ex | legoscia/dialyxir | 39579cb3abf6570da56a2a7185204452c49f9b5c | [
"Apache-2.0"
] | null | null | null | defmodule Dialyxir.Warnings.PatternMatchCovered do
@behaviour Dialyxir.Warning
@impl Dialyxir.Warning
@spec warning() :: :pattern_match_cov
def warning(), do: :pattern_match_cov
@impl Dialyxir.Warning
@spec format_short([String.t()]) :: String.t()
def format_short(_) do
"The pattern can never match ... | 22.72549 | 80 | 0.67472 |
08b4279342875377a7fdcd03ef4a733ae66cb9e2 | 12,413 | exs | Elixir | test/mastani_server_web/query/cms/job_comment_test.exs | DavidAlphaFox/coderplanets_server | 3fd47bf3bba6cc04c9a34698201a60ad2f3e8254 | [
"Apache-2.0"
] | 1 | 2019-05-07T15:03:54.000Z | 2019-05-07T15:03:54.000Z | test/mastani_server_web/query/cms/job_comment_test.exs | DavidAlphaFox/coderplanets_server | 3fd47bf3bba6cc04c9a34698201a60ad2f3e8254 | [
"Apache-2.0"
] | null | null | null | test/mastani_server_web/query/cms/job_comment_test.exs | DavidAlphaFox/coderplanets_server | 3fd47bf3bba6cc04c9a34698201a60ad2f3e8254 | [
"Apache-2.0"
] | null | null | null | defmodule MastaniServer.Test.Query.JobComment do
use MastaniServer.TestTools
alias MastaniServer.CMS
setup do
{:ok, job} = db_insert(:job)
{:ok, user} = db_insert(:user)
{:ok, community} = db_insert(:community)
guest_conn = simu_conn(:guest)
user_conn = simu_conn(:user)
{:ok, ~m(user_c... | 33.013298 | 98 | 0.591799 |
08b46e9caf9fcf8e02f74bee94e4de2ad3b6caef | 45,020 | ex | Elixir | clients/compute/lib/google_api/compute/v1/api/instance_group_managers.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/api/instance_group_managers.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/api/instance_group_managers.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... | 54.835566 | 1,213 | 0.701888 |
08b491a441eb0bb3d9656275f6b5d62193970058 | 107 | ex | Elixir | src/Makefile.ex | w-guo/Network-TDA | 6af7241cb65eb1b6f46fa5bb898a21423b4beee1 | [
"MIT"
] | null | null | null | src/Makefile.ex | w-guo/Network-TDA | 6af7241cb65eb1b6f46fa5bb898a21423b4beee1 | [
"MIT"
] | null | null | null | src/Makefile.ex | w-guo/Network-TDA | 6af7241cb65eb1b6f46fa5bb898a21423b4beee1 | [
"MIT"
] | 1 | 2021-11-08T21:45:00.000Z | 2021-11-08T21:45:00.000Z | #
# configuration variables for the example
## Main application file
MAIN = main_dyCPM
DEPH =
DEPCPP =
| 11.888889 | 41 | 0.728972 |
08b4ab08a7f0d80e94523921d3a8d6c411037c84 | 1,637 | ex | Elixir | lib/blockquote_web.ex | allen-garvey/block-quote-phoenix | 5c0f5d16daf6bb515a8f1846c3e4311b368a7bdb | [
"MIT"
] | 4 | 2019-10-04T16:11:15.000Z | 2021-08-18T21:00:13.000Z | apps/blockquote/lib/blockquote_web.ex | allen-garvey/phoenix-umbrella | 1d444bbd62a5e7b5f51d317ce2be71ee994125d5 | [
"MIT"
] | 5 | 2020-03-16T23:52:25.000Z | 2021-09-03T16:52:17.000Z | apps/blockquote/lib/blockquote_web.ex | allen-garvey/phoenix-umbrella | 1d444bbd62a5e7b5f51d317ce2be71ee994125d5 | [
"MIT"
] | null | null | null | defmodule BlockquoteWeb 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 BlockquoteWeb, :controller
use BlockquoteWeb, :view
The definitions below will be executed for every view,
con... | 24.073529 | 69 | 0.693341 |
08b4d5e67c852dd95518d6a1068a9118c51b355a | 1,225 | ex | Elixir | lib/jeopardy_web/components/tv/pre_jeopardy/awaiting_start.ex | ryoung786/jeopardy | 5558fc49013c5a22e556a0040cbc116aa8f63912 | [
"MIT"
] | null | null | null | lib/jeopardy_web/components/tv/pre_jeopardy/awaiting_start.ex | ryoung786/jeopardy | 5558fc49013c5a22e556a0040cbc116aa8f63912 | [
"MIT"
] | 32 | 2020-06-08T14:50:46.000Z | 2021-01-01T05:40:44.000Z | lib/jeopardy_web/components/tv/pre_jeopardy/awaiting_start.ex | ryoung786/jeopardy | 5558fc49013c5a22e556a0040cbc116aa8f63912 | [
"MIT"
] | null | null | null | defmodule JeopardyWeb.Components.TV.PreJeopardy.AwaitingStart do
use JeopardyWeb.Components.Base, :tv
alias Jeopardy.GameEngine, as: Engine
@impl true
def handle_event("start_game", _params, socket) do
with :ok <- Engine.event(:start_game, socket.assigns.game.id) do
{:noreply, socket}
else
... | 29.878049 | 101 | 0.663673 |
08b535f3eaa02e25ae99ec1f6a99a65d78281734 | 863 | exs | Elixir | mix.exs | alice-bot/alice_doge_me | 927bc47f7aa5bdf83eeb8db2ca7c44a91b021e1d | [
"MIT"
] | null | null | null | mix.exs | alice-bot/alice_doge_me | 927bc47f7aa5bdf83eeb8db2ca7c44a91b021e1d | [
"MIT"
] | null | null | null | mix.exs | alice-bot/alice_doge_me | 927bc47f7aa5bdf83eeb8db2ca7c44a91b021e1d | [
"MIT"
] | null | null | null | defmodule AliceDogeMe.Mixfile do
use Mix.Project
def project do
[app: :alice_doge_me,
version: "0.1.1",
elixir: "~> 1.3",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
description: description,
package: package,
deps: deps]
end
def application do
... | 21.575 | 73 | 0.575898 |
08b53c655af93aa7737ed5d421fd988b1bb72468 | 619 | exs | Elixir | test/my_bot_ex_test/client/slack/reporter_test.exs | KazuCocoa/my_bot_ex | 9d3d71b4340109f35cf6e72b84346a3e609f40a5 | [
"MIT"
] | null | null | null | test/my_bot_ex_test/client/slack/reporter_test.exs | KazuCocoa/my_bot_ex | 9d3d71b4340109f35cf6e72b84346a3e609f40a5 | [
"MIT"
] | null | null | null | test/my_bot_ex_test/client/slack/reporter_test.exs | KazuCocoa/my_bot_ex | 9d3d71b4340109f35cf6e72b84346a3e609f40a5 | [
"MIT"
] | null | null | null | defmodule MyBotExTest.Client.Slack.ReporterTest do
use ExUnit.Case, async: true
alias MyBotEx.Client.Slack.Reporter, as: SlackReporter
test "correct GooglePlay review url" do
review_uel = "https://play.google.com/store/getreviews?id=com.android.chrome&xhr=1&reviewSortOrder=0&reviewType=1&pageNum=0&hl=en"
... | 38.6875 | 134 | 0.770598 |
08b5acf39fcce0ab6fd6c77c8ae7d9773b25763f | 1,018 | ex | Elixir | lib/files/save_url.ex | ijunaid8989/elixir_dropbox | c726a16fe38372d1199bd146849512ed829f5ed8 | [
"MIT"
] | null | null | null | lib/files/save_url.ex | ijunaid8989/elixir_dropbox | c726a16fe38372d1199bd146849512ed829f5ed8 | [
"MIT"
] | null | null | null | lib/files/save_url.ex | ijunaid8989/elixir_dropbox | c726a16fe38372d1199bd146849512ed829f5ed8 | [
"MIT"
] | null | null | null | defmodule ElixirDropbox.Files.SaveUrl do
@moduledoc """
"""
import ElixirDropbox
@doc """
Save a specified URL into a file in user's Dropbox.
## Example
ElixirDropbox.Files.SaveUrl.save_url(client, "/a.txt", "http://example.com/a.txt")
More info at: https://www.dropbox.com/developers/documentation... | 28.277778 | 98 | 0.698428 |
08b5b32e970f14d6c9549bb1f1e070fbf1e32fae | 3,718 | exs | Elixir | mix.exs | mattjg908/custom_rpi4 | 3824f85a3fc3d18730c2aafa104136fde40f3487 | [
"Apache-2.0"
] | null | null | null | mix.exs | mattjg908/custom_rpi4 | 3824f85a3fc3d18730c2aafa104136fde40f3487 | [
"Apache-2.0"
] | null | null | null | mix.exs | mattjg908/custom_rpi4 | 3824f85a3fc3d18730c2aafa104136fde40f3487 | [
"Apache-2.0"
] | null | null | null | defmodule CustomRpi4.MixProject do
use Mix.Project
#@github_organization "nerves-project"
@github_organization "mattjg908"
#@app :nerves_system_rpi4
@app :custom_rpi4
@source_url "https://github.com/#{@github_organization}/#{@app}"
@version Path.join(__DIR__, "VERSION")
|> File.read!()
... | 24.95302 | 99 | 0.589564 |
08b5b81807fef5d6c0c88d3af6391cb7e30af9f9 | 1,188 | ex | Elixir | lib/game_engine.ex | NikitaNaumenko/brain_games_elixir | 25ef3898164846faab5813096804661734d54af8 | [
"MIT"
] | null | null | null | lib/game_engine.ex | NikitaNaumenko/brain_games_elixir | 25ef3898164846faab5813096804661734d54af8 | [
"MIT"
] | null | null | null | lib/game_engine.ex | NikitaNaumenko/brain_games_elixir | 25ef3898164846faab5813096804661734d54af8 | [
"MIT"
] | null | null | null | defmodule BrainGames.GameEngine do
@moduledoc """
Main game engine which run, a chosen game
"""
alias BrainGames.Games.{Even, Calc, Gcd, Progression, Prime}
@games %{"1" => Even, "2" => Calc, "3" => Gcd, "4" => Progression, "5" => Prime}
@rounds_count 3
@spec play(game_number :: String.t(), user :: Stri... | 31.263158 | 90 | 0.637205 |
08b5c63b881362803238d9edc97870f725ca20ff | 2,779 | exs | Elixir | exercises/concept/rpg-character-sheet/test/rpg/character_sheet_test.exs | SaschaMann/elixir | 2489747bba72a0ba5efa27e7e00441a428fdf987 | [
"MIT"
] | 1 | 2021-06-09T06:57:02.000Z | 2021-06-09T06:57:02.000Z | exercises/concept/rpg-character-sheet/test/rpg/character_sheet_test.exs | SaschaMann/elixir | 2489747bba72a0ba5efa27e7e00441a428fdf987 | [
"MIT"
] | 6 | 2022-03-04T13:05:25.000Z | 2022-03-30T18:36:49.000Z | exercises/concept/rpg-character-sheet/test/rpg/character_sheet_test.exs | SaschaMann/elixir | 2489747bba72a0ba5efa27e7e00441a428fdf987 | [
"MIT"
] | null | null | null | defmodule RPG.CharacterSheetTest do
use ExUnit.Case
import ExUnit.CaptureIO
describe "welcome/0" do
@task_id 1
test "it prints a welcome message" do
io =
capture_io(fn ->
assert RPG.CharacterSheet.welcome() == :ok
end)
assert io == "Welcome! Let's fill out your char... | 23.158333 | 77 | 0.530407 |
08b5ceb7260314f19486ce132e3f1400e52f1c17 | 7,478 | ex | Elixir | lib/fika/compiler/parser/helper.ex | fika-lang/fika | 15bffc30daed744670bb2c0fba3e674055adac47 | [
"Apache-2.0"
] | 220 | 2020-09-12T18:16:29.000Z | 2022-03-15T14:39:05.000Z | lib/fika/compiler/parser/helper.ex | fika-lang/fika | 15bffc30daed744670bb2c0fba3e674055adac47 | [
"Apache-2.0"
] | 60 | 2020-09-23T14:20:36.000Z | 2021-03-08T08:55:57.000Z | lib/fika/compiler/parser/helper.ex | fika-lang/fika | 15bffc30daed744670bb2c0fba3e674055adac47 | [
"Apache-2.0"
] | 25 | 2020-09-19T09:06:10.000Z | 2021-08-24T23:48:39.000Z | defmodule Fika.Compiler.Parser.Helper do
import NimbleParsec
alias Fika.Compiler.TypeChecker.Types, as: T
@keywords ~w(fn do if else end case)
def to_ast(c, kind) do
c
|> line()
|> byte_offset()
|> map({__MODULE__, :put_line_offset, []})
|> post_traverse({__MODULE__, :post_traverse, [kind... | 25.435374 | 91 | 0.611661 |
08b5d4e000b4500508ac93e8572125452f6b9d6e | 1,791 | ex | Elixir | clients/file/lib/google_api/file/v1/model/schedule.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/file/lib/google_api/file/v1/model/schedule.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/file/lib/google_api/file/v1/model/schedule.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... | 33.792453 | 133 | 0.708543 |
08b5d6471329625e099e79462356aa72ff12dc16 | 616 | exs | Elixir | test/makeup/lexers/elixir_lexer/registry_test.exs | davydog187/makeup_elixir | 462b0edd8b7ec878202587c6506ae1fe029aaca9 | [
"BSD-2-Clause"
] | 14 | 2018-07-11T17:37:33.000Z | 2020-08-03T15:22:45.000Z | test/makeup/lexers/elixir_lexer/registry_test.exs | davydog187/makeup_elixir | 462b0edd8b7ec878202587c6506ae1fe029aaca9 | [
"BSD-2-Clause"
] | 14 | 2020-09-29T17:22:28.000Z | 2022-02-08T12:50:28.000Z | test/makeup/lexers/elixir_lexer/registry_test.exs | davydog187/makeup_elixir | 462b0edd8b7ec878202587c6506ae1fe029aaca9 | [
"BSD-2-Clause"
] | 9 | 2018-07-11T14:42:30.000Z | 2020-04-23T09:06:01.000Z | defmodule Makeup.Lexers.ElixirLexer.RegistryTest do
use ExUnit.Case, async: true
alias Makeup.Registry
alias Makeup.Lexers.ElixirLexer
describe "the elixir lexer has successfully registered itself:" do
test "language name" do
assert {:ok, {ElixirLexer, []}} == Registry.fetch_lexer_by_name("elixir")
... | 32.421053 | 81 | 0.693182 |
08b606abef96a67cd4743f3a53f552a91a04cc1e | 2,539 | exs | Elixir | test_fixtures/precompiled/good-posts.exs | nallwhy/Serum | ed9f51a83e328789ccfca18d2a0397b45ac4be0f | [
"MIT"
] | null | null | null | test_fixtures/precompiled/good-posts.exs | nallwhy/Serum | ed9f51a83e328789ccfca18d2a0397b45ac4be0f | [
"MIT"
] | null | null | null | test_fixtures/precompiled/good-posts.exs | nallwhy/Serum | ed9f51a83e328789ccfca18d2a0397b45ac4be0f | [
"MIT"
] | null | null | null | [%{__struct__: Serum.Post, date: "2019-01-01", file: %{__struct__: Serum.File, src: "/home/dalgona/repo/Serum/priv/fixtures/posts/good-post.md"}, html: "<h1>Hello, world!</h1>\n<p>The quick brown fox jumps over the lazy dog.\nThe quick brown fox jumps over the lazy dog.\nThe quick brown fox jumps over the lazy dog.\nTh... | 1,269.5 | 2,538 | 0.719968 |
08b606e377e55d25a1db27029fa9ff8406e4bd08 | 475 | ex | Elixir | lib/flip.ex | kdisneur/flip | 78b8f4a36ecd23ddce3e4fc5b16f81da48737a2b | [
"MIT"
] | null | null | null | lib/flip.ex | kdisneur/flip | 78b8f4a36ecd23ddce3e4fc5b16f81da48737a2b | [
"MIT"
] | null | null | null | lib/flip.ex | kdisneur/flip | 78b8f4a36ecd23ddce3e4fc5b16f81da48737a2b | [
"MIT"
] | null | null | null | defmodule Flip do
@doc """
Flip the first and second parameter when calling a method. The second
parameter needs to be an array. The last one is the method which is
going to be called.
## Examples
iex> 2 |> Flip.flip([10], &Kernel.-/2)
8
iex> 2 |> Flip.flip([10, 3], fn (x1, x2, x3) -> (x1 - x2) * x3 e... | 26.388889 | 71 | 0.663158 |
08b60f1fe67b93f4b3e412aafe7037dde4d46010 | 537 | exs | Elixir | mix.exs | totorigolo/xain | 54421fb20f8fa4d8576710bbd0d6e804dfefeda7 | [
"MIT"
] | null | null | null | mix.exs | totorigolo/xain | 54421fb20f8fa4d8576710bbd0d6e804dfefeda7 | [
"MIT"
] | null | null | null | mix.exs | totorigolo/xain | 54421fb20f8fa4d8576710bbd0d6e804dfefeda7 | [
"MIT"
] | null | null | null | defmodule Xain.Mixfile do
use Mix.Project
@version "0.6.1"
def project do
[app: :xain,
version: @version,
elixir: "~> 1.0",
package: package(),
deps: [],
description: """
An html DSL package.
"""
]
end
def application do
[applications: [:logger]]
end
defp ... | 18.517241 | 66 | 0.569832 |
08b647a303dc545b8a191940d286be0372e557cb | 866 | exs | Elixir | app/test/noodl_web/live/experiences/show/show_test.exs | nathanjohnson320/noodl | 2e449aab15b54fc5a1dc45ebf4b79e7b64b7c967 | [
"MIT"
] | 1 | 2021-01-20T20:00:50.000Z | 2021-01-20T20:00:50.000Z | app/test/noodl_web/live/experiences/show/show_test.exs | nathanjohnson320/noodl | 2e449aab15b54fc5a1dc45ebf4b79e7b64b7c967 | [
"MIT"
] | null | null | null | app/test/noodl_web/live/experiences/show/show_test.exs | nathanjohnson320/noodl | 2e449aab15b54fc5a1dc45ebf4b79e7b64b7c967 | [
"MIT"
] | null | null | null | defmodule NoodlWeb.LiveEventsShow do
use NoodlWeb.ConnCase
import Noodl.Factory
describe "Logged In" do
test "renders an event" do
conn = session_conn()
user = insert(:user)
conn = conn |> put_session(:user, user.id)
event = insert(:event, creator: user)
conn =
conn
... | 18.041667 | 52 | 0.518476 |
08b68902fcd06bfae1ce8d0fc50925e182afde6a | 3,547 | ex | Elixir | lib/ecto_list.ex | popo63301/ecto_list | adce0006617f2e88aedcf4e493b642b41b227b5a | [
"MIT"
] | 18 | 2019-07-18T09:11:27.000Z | 2020-08-07T11:01:22.000Z | lib/ecto_list.ex | popo63301/ecto_list | adce0006617f2e88aedcf4e493b642b41b227b5a | [
"MIT"
] | null | null | null | lib/ecto_list.ex | popo63301/ecto_list | adce0006617f2e88aedcf4e493b642b41b227b5a | [
"MIT"
] | null | null | null | defmodule EctoList do
@moduledoc """
Implements conveniences to handle the items order of a list.
"""
@doc """
Returns the list of items ordered according to the items_order list.
If ids are missing in items_order, the items will be ordered according to their inserted date.
## Examples
all_items... | 33.780952 | 110 | 0.610093 |
08b6a45b60ea8e569a313f5ed49729bf45372c07 | 150 | exs | Elixir | elixir-class/advanced/executables/test/executables_test.exs | ikhlas-firlana/learning-class | 58c2db1e8121eaec47190105dffa47d6db84bb55 | [
"Apache-2.0"
] | null | null | null | elixir-class/advanced/executables/test/executables_test.exs | ikhlas-firlana/learning-class | 58c2db1e8121eaec47190105dffa47d6db84bb55 | [
"Apache-2.0"
] | null | null | null | elixir-class/advanced/executables/test/executables_test.exs | ikhlas-firlana/learning-class | 58c2db1e8121eaec47190105dffa47d6db84bb55 | [
"Apache-2.0"
] | null | null | null | defmodule ExecutablesTest do
use ExUnit.Case
doctest Executables
test "greets the world" do
assert Executables.hello() == :world
end
end
| 16.666667 | 40 | 0.733333 |
08b711478caa5c93d7565df00c00cc95348f7634 | 2,614 | ex | Elixir | lib/api/dev_tools.ex | JediLuke/franklin | 8eb77a342547de3eb43d28dcf9f835ff443ad489 | [
"Apache-2.0"
] | 1 | 2020-02-09T23:04:33.000Z | 2020-02-09T23:04:33.000Z | lib/api/dev_tools.ex | JediLuke/franklin | 8eb77a342547de3eb43d28dcf9f835ff443ad489 | [
"Apache-2.0"
] | null | null | null | lib/api/dev_tools.ex | JediLuke/franklin | 8eb77a342547de3eb43d28dcf9f835ff443ad489 | [
"Apache-2.0"
] | null | null | null | defmodule DevTools do
# require Logger
# def widget_workbench do
# Logger.debug "#{__MODULE__} opening the WidgetWorkbench..."
# Flamelex.Fluxus.action({Flamelex.Fluxus.Reducers.DevTools, :open_widget_workbench})
# end
def refresh_menubar do
radix_state = Flamelex.Fluxus.Ra... | 39.014925 | 93 | 0.680566 |
08b7182479f71b7026e4c405dcdda6c59163dac6 | 7,372 | ex | Elixir | test/support/v3/services/test_pool/test_worker_entity.ex | noizu-labs/SimplePoolAdvanced | 9555071e42917d280c7ce4846c19ef208c77f14e | [
"MIT"
] | null | null | null | test/support/v3/services/test_pool/test_worker_entity.ex | noizu-labs/SimplePoolAdvanced | 9555071e42917d280c7ce4846c19ef208c77f14e | [
"MIT"
] | null | null | null | test/support/v3/services/test_pool/test_worker_entity.ex | noizu-labs/SimplePoolAdvanced | 9555071e42917d280c7ce4846c19ef208c77f14e | [
"MIT"
] | null | null | null | #-------------------------------------------------------------------------------
# Author: Keith Brings
# Copyright (C) 2022 Noizu Labs, Inc. All rights reserved.
#-------------------------------------------------------------------------------
defmodule Noizu.AdvancedPool.Support.TestV3Worker do
use Noizu.AdvancedPo... | 34.610329 | 117 | 0.530521 |
08b726e6b04f5d6ad71091760992951b9f6bfa75 | 62 | exs | Elixir | config/config.exs | LaudateCorpus1/gen_registry | 74246ae4e4d9b3c330bacc529c9dd32851378446 | [
"MIT"
] | 39 | 2020-04-11T07:21:23.000Z | 2022-02-03T13:17:59.000Z | config/config.exs | LaudateCorpus1/gen_registry | 74246ae4e4d9b3c330bacc529c9dd32851378446 | [
"MIT"
] | 2 | 2019-06-21T17:47:11.000Z | 2019-06-21T19:10:35.000Z | config/config.exs | LaudateCorpus1/gen_registry | 74246ae4e4d9b3c330bacc529c9dd32851378446 | [
"MIT"
] | 7 | 2021-01-19T00:00:10.000Z | 2022-03-17T09:51:10.000Z | use Mix.Config
config :gen_registry,
gen_module: GenServer
| 12.4 | 23 | 0.790323 |
08b72b18e828b83285718aab89a2e998c5883fd6 | 992 | ex | Elixir | lib/api/graphql/mutations/users.ex | nunopolonia/psc-api | 2e358503851cc04cdaa89201a3f56586f8746736 | [
"MIT"
] | 1 | 2017-09-10T23:51:40.000Z | 2017-09-10T23:51:40.000Z | lib/api/graphql/mutations/users.ex | nunopolonia/psc-api | 2e358503851cc04cdaa89201a3f56586f8746736 | [
"MIT"
] | 24 | 2018-03-14T18:17:00.000Z | 2021-03-01T07:47:53.000Z | lib/api/graphql/mutations/users.ex | portosummerofcode/psc-api | 2e358503851cc04cdaa89201a3f56586f8746736 | [
"MIT"
] | null | null | null | defmodule Api.GraphQL.Mutations.Users do
use Absinthe.Schema.Notation
use Absinthe.Relay.Schema.Notation, :modern
alias Api.GraphQL.Middleware.{RequireAdmin}
alias Api.Accounts
object :users_mutations do
@desc "Makes a user admin (admin only)"
field :make_admin, :user do
arg :id, non_null(:st... | 22.044444 | 60 | 0.638105 |
08b72ec290bddd8de135d113b76caf6d209513a9 | 625 | exs | Elixir | 25-set.exs | yortz/30-days-of-elixir | b7126eeee16b726df0b00234fd4aff03a5c3e1a9 | [
"MIT"
] | null | null | null | 25-set.exs | yortz/30-days-of-elixir | b7126eeee16b726df0b00234fd4aff03a5c3e1a9 | [
"MIT"
] | null | null | null | 25-set.exs | yortz/30-days-of-elixir | b7126eeee16b726df0b00234fd4aff03a5c3e1a9 | [
"MIT"
] | null | null | null | ExUnit.start
defmodule SetTest do
use ExUnit.Case
test "to_list" do
list = HashSet.new([1, 2, 2, 3]) |> HashSet.to_list
assert list == [2, 3, 1] # unintuitive ordering
end
test "union" do
union = HashSet.new([1, 2, 3]) |> HashSet.union(HashSet.new([2, 3, 4]))
assert Set.to_list(union) == [2, ... | 25 | 93 | 0.6224 |
08b74d9292b7c9817ce3c439f2686215eba1b571 | 92 | exs | Elixir | test/boots_of_speed_web/views/layout_view_test.exs | Baradoy/boots_of_speed | 6004da8fb43e15cb7443e0bd00fe70c936a41015 | [
"MIT"
] | 1 | 2019-04-18T05:10:21.000Z | 2019-04-18T05:10:21.000Z | test/boots_of_speed_web/views/layout_view_test.exs | Baradoy/boots_of_speed | 6004da8fb43e15cb7443e0bd00fe70c936a41015 | [
"MIT"
] | 3 | 2020-07-16T17:41:44.000Z | 2021-05-08T03:39:49.000Z | test/boots_of_speed_web/views/layout_view_test.exs | Baradoy/boots_of_speed | 6004da8fb43e15cb7443e0bd00fe70c936a41015 | [
"MIT"
] | null | null | null | defmodule BootsOfSpeedWeb.LayoutViewTest do
use BootsOfSpeedWeb.ConnCase, async: true
end
| 23 | 43 | 0.847826 |
08b78b5ed100fa8aafd72cfeb28dfe39dce8c30e | 3,560 | ex | Elixir | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_cx_v3beta1_form_parameter.ex | jamesvl/elixir-google-api | 6c87fb31d996f08fb42ce6066317e9d652a87acc | [
"Apache-2.0"
] | null | null | null | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_cx_v3beta1_form_parameter.ex | jamesvl/elixir-google-api | 6c87fb31d996f08fb42ce6066317e9d652a87acc | [
"Apache-2.0"
] | null | null | null | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_cx_v3beta1_form_parameter.ex | jamesvl/elixir-google-api | 6c87fb31d996f08fb42ce6066317e9d652a87acc | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 47.466667 | 380 | 0.729494 |
08b79a6a1e00892f00705fddb5d6d1858257c229 | 1,055 | exs | Elixir | test/wabanex_web/controllers/imc_controller_test.exs | riosvictor/wabanex | 380b8078db1ac700d6cf2a232a92730fbe3ffc64 | [
"MIT"
] | 1 | 2022-03-16T20:41:59.000Z | 2022-03-16T20:41:59.000Z | test/wabanex_web/controllers/imc_controller_test.exs | riosvictor/wabanex | 380b8078db1ac700d6cf2a232a92730fbe3ffc64 | [
"MIT"
] | null | null | null | test/wabanex_web/controllers/imc_controller_test.exs | riosvictor/wabanex | 380b8078db1ac700d6cf2a232a92730fbe3ffc64 | [
"MIT"
] | null | null | null | defmodule WabanexWeb.IMCControllerTest do
use WabanexWeb.ConnCase, async: true
describe "index/2" do
test "when all params are valid, returns the imc info", %{conn: conn} do
params = %{"filename" => "students.csv"}
response =
conn
|> get(Routes.imc_path(conn, :index, params))
... | 26.375 | 76 | 0.58673 |
08b7aa934524448e176f3550240d358718ea7580 | 850 | ex | Elixir | fogex/lib/fogex/modules/connector/handlers/mqtt/supevisor.ex | FogEx/poc | 0d3a26b482152b4b73a279dfdb2bf69008234c06 | [
"MIT"
] | null | null | null | fogex/lib/fogex/modules/connector/handlers/mqtt/supevisor.ex | FogEx/poc | 0d3a26b482152b4b73a279dfdb2bf69008234c06 | [
"MIT"
] | null | null | null | fogex/lib/fogex/modules/connector/handlers/mqtt/supevisor.ex | FogEx/poc | 0d3a26b482152b4b73a279dfdb2bf69008234c06 | [
"MIT"
] | null | null | null | defmodule FogEx.Modules.Connector.MQTT.Supervisor do
use Supervisor
def start_link(init_arg) do
Supervisor.start_link(__MODULE__, init_arg, name: __MODULE__)
end
def init(_init_arg) do
mqtt_host = Application.get_env(:fogex, :mqtt_host)
mqtt_port = Application.get_env(:fogex, :mqtt_port)
mqtt... | 24.285714 | 65 | 0.658824 |
08b7b17e0e2c70278be41e0dbbe77efe70c48690 | 2,896 | ex | Elixir | clients/document_ai/lib/google_api/document_ai/v1beta2/model/google_cloud_documentai_v1beta1_document_page_line.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/v1beta2/model/google_cloud_documentai_v1beta1_document_page_line.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/v1beta2/model/google_cloud_documentai_v1beta1_document_page_line.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.105263 | 212 | 0.746547 |
08b7ba01c4e857344a98eab3296438f1920f4628 | 1,954 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/projects_list_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/projects_list_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/projects_list_response.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... | 36.867925 | 156 | 0.725691 |
08b7dd8cc72001c980259c1775f4e0cac1e8d03a | 2,669 | ex | Elixir | lib/guardian/token.ex | gestsol/guardian | ee173c7ff0343d77cf10c559bd11ac2c88804ad8 | [
"MIT"
] | null | null | null | lib/guardian/token.ex | gestsol/guardian | ee173c7ff0343d77cf10c559bd11ac2c88804ad8 | [
"MIT"
] | null | null | null | lib/guardian/token.ex | gestsol/guardian | ee173c7ff0343d77cf10c559bd11ac2c88804ad8 | [
"MIT"
] | null | null | null | defmodule Guardian.Token do
@moduledoc """
The behaviour module for all token modules.
Token modules are responsible for all the heavy lifting
in Guardian.
"""
@type token :: String.t()
@type claims :: map
@type resource :: any
@type ttl ::
{pos_integer, :second}
| {pos_integer, :... | 30.329545 | 101 | 0.568752 |
08b7fa6615985a85b50ced713da0a14aa0a3a143 | 1,300 | ex | Elixir | lib/cog/chat/slack/formatter.ex | NiyiOdumosu/cog | f1f7b66894bd13e865e47e89df6379d78fd79e88 | [
"Apache-2.0"
] | null | null | null | lib/cog/chat/slack/formatter.ex | NiyiOdumosu/cog | f1f7b66894bd13e865e47e89df6379d78fd79e88 | [
"Apache-2.0"
] | null | null | null | lib/cog/chat/slack/formatter.ex | NiyiOdumosu/cog | f1f7b66894bd13e865e47e89df6379d78fd79e88 | [
"Apache-2.0"
] | null | null | null | defmodule Cog.Chat.Slack.Formatter do
@channel ~r/<\#(C.*)(\|(.*))?>/U
@user ~r/<\@(U.*)(\|(.*))?>/U
@command ~r/<\!(.*)(\|(.*))?>/U
@link ~r/<(.*)(\|(.*))?>/U
def unescape(message, slack) do
message
|> unescape_channels(slack)
|> unescape_users(slack)
|> unescape_commands
|> unesca... | 25.490196 | 60 | 0.583846 |
08b89130e082b310e9a243abf5915872b0a05af9 | 979 | exs | Elixir | test/support/endpoint.exs | andriybohdan/ex_admin | e31c725078ac4e7390204a87d96360a21ffe7b90 | [
"MIT"
] | 1 | 2018-08-30T20:20:56.000Z | 2018-08-30T20:20:56.000Z | test/support/endpoint.exs | 8thlight/ex_admin | 314d4068270c47799ec54f719073a565222bcfad | [
"MIT"
] | null | null | null | test/support/endpoint.exs | 8thlight/ex_admin | 314d4068270c47799ec54f719073a565222bcfad | [
"MIT"
] | 2 | 2018-07-12T07:44:50.000Z | 2018-07-19T11:45:09.000Z | defmodule TestExAdmin.Endpoint do
use Phoenix.Endpoint, otp_app: :ex_admin
# 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,
at: "/", from: :ex_admin, gzip: ... | 25.763158 | 69 | 0.711951 |
08b8aa8097d8a5ca069861a4cfecb93ff191af8c | 320 | exs | Elixir | config/prod.exs | Navneet-gupta01/commanded-extreme-adapter | daac1726573d4b979aaeddd0dae9aca0473a9446 | [
"MIT"
] | null | null | null | config/prod.exs | Navneet-gupta01/commanded-extreme-adapter | daac1726573d4b979aaeddd0dae9aca0473a9446 | [
"MIT"
] | null | null | null | config/prod.exs | Navneet-gupta01/commanded-extreme-adapter | daac1726573d4b979aaeddd0dae9aca0473a9446 | [
"MIT"
] | null | null | null | use Mix.Config
config :extreme, :event_store,
db_type: :node,
host: "localhost",
port: 1113,
username: "admin",
password: "changeit",
reconnect_delay: 2_000,
max_attempts: :infinity
config :commanded_extreme_adapter,
serializer: Commanded.Serialization.JsonSerializer,
stream_prefix: "commandedprod"
| 21.333333 | 53 | 0.75 |
08b8af5112cf5c94fb87eddb5909799215c26227 | 105,654 | ex | Elixir | clients/managed_identities/lib/google_api/managed_identities/v1/api/projects.ex | corp-momenti/elixir-google-api | fe1580e305789ab2ca0741791b8ffe924bd3240c | [
"Apache-2.0"
] | null | null | null | clients/managed_identities/lib/google_api/managed_identities/v1/api/projects.ex | corp-momenti/elixir-google-api | fe1580e305789ab2ca0741791b8ffe924bd3240c | [
"Apache-2.0"
] | null | null | null | clients/managed_identities/lib/google_api/managed_identities/v1/api/projects.ex | corp-momenti/elixir-google-api | fe1580e305789ab2ca0741791b8ffe924bd3240c | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 46.05667 | 607 | 0.619305 |
08b8ede20f4c6207d171f22d0de8c23e64208247 | 652 | ex | Elixir | lib/xuber/coordinator.ex | CCL77/trackme | af3e2dbfb3cbf92e96c0bdc8f2f6a19595d92140 | [
"MIT"
] | 3 | 2017-06-14T15:27:29.000Z | 2017-09-13T12:54:30.000Z | lib/xuber/coordinator.ex | joshnuss/xuber | a5fb61e4ddac87dbb8c140edb8d1550f5c2b1cff | [
"MIT"
] | null | null | null | lib/xuber/coordinator.ex | joshnuss/xuber | a5fb61e4ddac87dbb8c140edb8d1550f5c2b1cff | [
"MIT"
] | 2 | 2019-07-22T04:04:38.000Z | 2020-08-15T14:50:18.000Z | defmodule XUber.Coordinator do
@name __MODULE__
def start_link,
do: Agent.start_link(fn -> %{} end, name: @name)
def register(name),
do: Agent.update(@name, &Map.put(&1, name, []))
def known,
do: Agent.get(@name, &Map.keys(&1))
def positions do
Agent.get(@name, fn names ->
for {key, ... | 19.757576 | 55 | 0.582822 |
08b90e7f75f9faf4bf75b82671e3e92f3d0e909b | 71 | ex | Elixir | lib/web/views/layout_view.ex | irisTa56/sdo_elixir | de856596c462141477bb27aee5d63cb7b95a3b67 | [
"MIT"
] | null | null | null | lib/web/views/layout_view.ex | irisTa56/sdo_elixir | de856596c462141477bb27aee5d63cb7b95a3b67 | [
"MIT"
] | 2 | 2021-03-10T17:42:11.000Z | 2021-05-11T13:38:31.000Z | lib/web/views/layout_view.ex | irisTa56/sdo_elixir | de856596c462141477bb27aee5d63cb7b95a3b67 | [
"MIT"
] | null | null | null | defmodule SdoPhoenix.Web.LayoutView do
use SdoPhoenix.Web, :view
end
| 17.75 | 38 | 0.802817 |
08b910cf20e2e4c1d243fd77c31a3418ff43a04d | 1,209 | ex | Elixir | apps/note_it_web/lib/note_it_web/endpoint.ex | sushilman/note-it | c47edafb4272b9f01d53f8566f5ed7858f2d355c | [
"Apache-2.0"
] | null | null | null | apps/note_it_web/lib/note_it_web/endpoint.ex | sushilman/note-it | c47edafb4272b9f01d53f8566f5ed7858f2d355c | [
"Apache-2.0"
] | null | null | null | apps/note_it_web/lib/note_it_web/endpoint.ex | sushilman/note-it | c47edafb4272b9f01d53f8566f5ed7858f2d355c | [
"Apache-2.0"
] | null | null | null | defmodule NoteItWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :note_it_web
socket "/socket", NoteItWeb.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.S... | 28.116279 | 69 | 0.718776 |
08b9306a17f0678fcb3c686effbd9e9fee9b47ce | 102 | ex | Elixir | lib/binance_ex/orderbook.ex | Jonsey/BinanceEx | cf41f06f649d4d347ef17c7ae6b3bd8f50c224ca | [
"MIT"
] | null | null | null | lib/binance_ex/orderbook.ex | Jonsey/BinanceEx | cf41f06f649d4d347ef17c7ae6b3bd8f50c224ca | [
"MIT"
] | null | null | null | lib/binance_ex/orderbook.ex | Jonsey/BinanceEx | cf41f06f649d4d347ef17c7ae6b3bd8f50c224ca | [
"MIT"
] | null | null | null | defmodule BinanceEx.Orderbook do
defstruct [:bids, :asks, :last_update_id]
use ExConstructor
end
| 17 | 43 | 0.77451 |
08b9429c76a99cdc21169cbec8fc7628af16cb6f | 1,042 | exs | Elixir | chromoid_web/config/test.exs | ConnorRigby/chromoid | 6424a9234227d18d7c287ded869caeb31511bb97 | [
"Apache-2.0"
] | 7 | 2020-11-18T11:29:20.000Z | 2022-01-16T03:16:14.000Z | chromoid_web/config/test.exs | ConnorRigby/chromoid | 6424a9234227d18d7c287ded869caeb31511bb97 | [
"Apache-2.0"
] | null | null | null | chromoid_web/config/test.exs | ConnorRigby/chromoid | 6424a9234227d18d7c287ded869caeb31511bb97 | [
"Apache-2.0"
] | 1 | 2021-01-06T15:40:46.000Z | 2021-01-06T15:40:46.000Z | use Mix.Config
# Only in tests, remove the complexity from the password hashing algorithm
config :bcrypt_elixir, :log_rounds, 1
# 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.
c... | 34.733333 | 96 | 0.778311 |
08b943ea2e125428f35fb66f7be8630c28d9e7bd | 954 | ex | Elixir | lib/adventofcode.ex | scmx/advent-of-code-2018-elixir | bad5a125fdc98519c29cbca1e5b7f64d61da5869 | [
"MIT"
] | 2 | 2019-01-16T16:10:31.000Z | 2019-05-14T04:41:15.000Z | lib/adventofcode.ex | scmx/advent-of-code-2019-elixir | f3022efb422e15abead6b882c78855b26b138443 | [
"MIT"
] | null | null | null | lib/adventofcode.ex | scmx/advent-of-code-2019-elixir | f3022efb422e15abead6b882c78855b26b138443 | [
"MIT"
] | 1 | 2020-12-10T10:47:21.000Z | 2020-12-10T10:47:21.000Z | defmodule Adventofcode do
@moduledoc """
Base module for day solutions. By `use`ing this module a `puzzle_input/0`
function will be provided that reads puzzle input to a string. Will probably
only be used during tests
"""
defmacro __using__(options) do
quote do
import Adventofcode
def puzz... | 25.105263 | 78 | 0.642558 |
08b96bc5959aac8e93d06035dab7732faab213a6 | 4,415 | ex | Elixir | lib/credo/check/refactor/cyclomatic_complexity.ex | isaacsanders/credo | 5623570bb2e3944345f1bf11819ca613533b5e10 | [
"MIT"
] | null | null | null | lib/credo/check/refactor/cyclomatic_complexity.ex | isaacsanders/credo | 5623570bb2e3944345f1bf11819ca613533b5e10 | [
"MIT"
] | null | null | null | lib/credo/check/refactor/cyclomatic_complexity.ex | isaacsanders/credo | 5623570bb2e3944345f1bf11819ca613533b5e10 | [
"MIT"
] | 1 | 2020-06-30T16:32:44.000Z | 2020-06-30T16:32:44.000Z | defmodule Credo.Check.Refactor.CyclomaticComplexity do
@moduledoc false
@checkdoc """
Cyclomatic complexity is a software complexity metric closely correlated with
coding errors.
If a function feels like it's gotten too complex, it more often than not also
has a high CC value. So, if anything, this is use... | 24.803371 | 87 | 0.590034 |
08b9ac9d7638ed6449bfe9cb59b535b9ffcf2a73 | 27,729 | exs | Elixir | test/lib/bamboo/adapters/smtp_adapter_test.exs | kianmeng/bamboo_smtp | e6f159d230a785a9c67aa180a199eb5ec3af3f41 | [
"MIT"
] | null | null | null | test/lib/bamboo/adapters/smtp_adapter_test.exs | kianmeng/bamboo_smtp | e6f159d230a785a9c67aa180a199eb5ec3af3f41 | [
"MIT"
] | null | null | null | test/lib/bamboo/adapters/smtp_adapter_test.exs | kianmeng/bamboo_smtp | e6f159d230a785a9c67aa180a199eb5ec3af3f41 | [
"MIT"
] | null | null | null | defmodule Bamboo.SMTPAdapterTest do
use ExUnit.Case
alias Bamboo.Email
alias Bamboo.SMTPAdapter
defmodule FakeGenSMTP do
use GenServer
@impl true
def init(args) do
{:ok, args}
end
def start_link(_) do
GenServer.start_link(__MODULE__, [], name: __MODULE__)
end
def sen... | 33.692588 | 97 | 0.657326 |
08b9cf42a69d4407995a73354571585df36ccc98 | 401 | exs | Elixir | test/repo_test.exs | jcarlos7121/ex_admin | 60a07320efaf549814d29f3593715543aef51e6b | [
"MIT"
] | 1,347 | 2015-10-05T18:23:49.000Z | 2022-01-09T18:38:36.000Z | test/repo_test.exs | leonardzhou/ex_admin | c241e956503c548a472e3ee89751e64a16477638 | [
"MIT"
] | 402 | 2015-10-03T13:53:32.000Z | 2021-07-08T09:52:22.000Z | test/repo_test.exs | leonardzhou/ex_admin | c241e956503c548a472e3ee89751e64a16477638 | [
"MIT"
] | 333 | 2015-10-12T22:56:57.000Z | 2021-05-26T18:40:24.000Z | defmodule ExAdmin.RepoTest do
use ExUnit.Case
require Logger
defmodule Schema do
defstruct id: 0, name: nil
end
defmodule Schema2 do
defstruct id: 0, field: nil
end
defmodule Cs1 do
defstruct model: nil, changes: %{}
end
defmodule Cs2 do
defstruct data: nil, changes: %{}
end
s... | 16.04 | 62 | 0.680798 |
08b9e5bb54ce91cc02691b4c33af50917bb8b414 | 487 | ex | Elixir | lib/pongo_web/views/error_view.ex | cristianberneanu/pongo | c158d32981deebbc09c70bd1568c4e5fca4df226 | [
"MIT"
] | 2 | 2020-09-21T12:13:35.000Z | 2020-09-21T14:58:28.000Z | lib/pongo_web/views/error_view.ex | cristianberneanu/pongo | c158d32981deebbc09c70bd1568c4e5fca4df226 | [
"MIT"
] | null | null | null | lib/pongo_web/views/error_view.ex | cristianberneanu/pongo | c158d32981deebbc09c70bd1568c4e5fca4df226 | [
"MIT"
] | null | null | null | defmodule PongoWeb.ErrorView do
use PongoWeb, :view
# If you want to customize a particular status code
# for a certain format, you may uncomment below.
# def render("500.html", _assigns) do
# "Internal Server Error"
# end
# By default, Phoenix returns the status message from
# the template name. Fo... | 28.647059 | 61 | 0.73306 |
08b9f7d145f24dd32d7fa13326f88ff8d8d4e06a | 1,758 | ex | Elixir | clients/memcache/lib/google_api/memcache/v1beta2/model/update_parameters_request.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/memcache/lib/google_api/memcache/v1beta2/model/update_parameters_request.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/memcache/lib/google_api/memcache/v1beta2/model/update_parameters_request.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 35.16 | 145 | 0.745165 |
08b9ffa22f6c6777cce672d2c8fa1917b292f2e0 | 816 | ex | Elixir | lib/meeseeks/selector/xpath/expr/boolean.ex | RichMorin/meeseeks | d52a15a0b78acfc4d7b979d1df6e146482dc3a10 | [
"Apache-2.0",
"MIT"
] | 291 | 2017-03-27T15:53:36.000Z | 2022-03-14T23:01:42.000Z | lib/meeseeks/selector/xpath/expr/boolean.ex | RichMorin/meeseeks | d52a15a0b78acfc4d7b979d1df6e146482dc3a10 | [
"Apache-2.0",
"MIT"
] | 70 | 2017-03-30T23:32:34.000Z | 2021-06-27T06:26:28.000Z | lib/meeseeks/selector/xpath/expr/boolean.ex | RichMorin/meeseeks | d52a15a0b78acfc4d7b979d1df6e146482dc3a10 | [
"Apache-2.0",
"MIT"
] | 23 | 2017-06-18T10:29:04.000Z | 2021-11-04T13:08:12.000Z | defmodule Meeseeks.Selector.XPath.Expr.Boolean do
use Meeseeks.Selector.XPath.Expr
@moduledoc false
alias Meeseeks.Selector.XPath.Expr
defstruct op: nil, e1: nil, e2: nil
@impl true
def eval(%Expr.Boolean{op: :or} = expr, node, document, context) do
v1 =
Expr.eval(expr.e1, node, document, conte... | 22.666667 | 70 | 0.644608 |
08ba37a5e278986eee51d084acb3fa78f29e7306 | 1,235 | ex | Elixir | clients/cloud_debugger/lib/google_api/cloud_debugger/v2/model/list_debuggees_response.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/cloud_debugger/lib/google_api/cloud_debugger/v2/model/list_debuggees_response.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/cloud_debugger/lib/google_api/cloud_debugger/v2/model/list_debuggees_response.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... | 31.666667 | 91 | 0.757895 |
08ba603be2be7a37c05b64f8b708bdd0000a8e25 | 136 | exs | Elixir | plugins/one_pages/mix.exs | smpallen99/ucx_ucc | 47225f205a6ac4aacdb9bb4f7512dcf4092576ad | [
"MIT"
] | 11 | 2017-05-15T18:35:05.000Z | 2018-02-05T18:27:40.000Z | plugins/one_pages/mix.exs | anndream/infinity_one | 47225f205a6ac4aacdb9bb4f7512dcf4092576ad | [
"MIT"
] | 15 | 2017-11-27T10:38:05.000Z | 2018-02-09T20:42:08.000Z | plugins/one_pages/mix.exs | anndream/infinity_one | 47225f205a6ac4aacdb9bb4f7512dcf4092576ad | [
"MIT"
] | 4 | 2017-09-13T11:34:16.000Z | 2018-02-26T13:37:06.000Z | defmodule OnePages.Mixfile do
use Mix.Project
def project do
[
app: :one_pages,
version: "0.0.1",
]
end
end
| 11.333333 | 29 | 0.580882 |
08ba618432ae46fa6501cb02e2adddfef6860b7b | 69 | ex | Elixir | examples/phoenix_shell/web/views/page_view.ex | acj/parley | 56b5c7b34f39c74af6ccd4a85a23ceccfc117bdf | [
"MIT"
] | 1 | 2021-07-02T22:50:40.000Z | 2021-07-02T22:50:40.000Z | examples/phoenix_shell/web/views/page_view.ex | acj/parley | 56b5c7b34f39c74af6ccd4a85a23ceccfc117bdf | [
"MIT"
] | null | null | null | examples/phoenix_shell/web/views/page_view.ex | acj/parley | 56b5c7b34f39c74af6ccd4a85a23ceccfc117bdf | [
"MIT"
] | null | null | null | defmodule PhoenixShell.PageView do
use PhoenixShell.Web, :view
end
| 17.25 | 34 | 0.811594 |
08baa75e8e3d33e7b157a3e71a0c34f03248b5e9 | 2,988 | exs | Elixir | test/unit/discovery_api_web/utilities/geojson_utils_test.exs | folkengine/discovery_api | 0bb7a0aff4603a4f7532cc65ca8c8dbb37a57217 | [
"Apache-2.0"
] | null | null | null | test/unit/discovery_api_web/utilities/geojson_utils_test.exs | folkengine/discovery_api | 0bb7a0aff4603a4f7532cc65ca8c8dbb37a57217 | [
"Apache-2.0"
] | null | null | null | test/unit/discovery_api_web/utilities/geojson_utils_test.exs | folkengine/discovery_api | 0bb7a0aff4603a4f7532cc65ca8c8dbb37a57217 | [
"Apache-2.0"
] | null | null | null | defmodule DiscoveryApiWeb.Utilities.GeojsonUtilsTest do
use ExUnit.Case
use Placebo
import Checkov
require Logger
alias DiscoveryApiWeb.Utilities.GeojsonUtils
describe("calculate_bounding_box/1") do
data_test "calculates bounding box for #{geometry_type}" do
Logger.debug("Testing #{geometry_type}... | 27.666667 | 103 | 0.494311 |
08babcbc85957ee40aaf789f1ae7bbf5e93137fa | 1,373 | exs | Elixir | config/config.exs | arpnetwork/dapp_demo | ff87809625ae6053378ddffd63e27c6225d93370 | [
"Apache-2.0"
] | null | null | null | config/config.exs | arpnetwork/dapp_demo | ff87809625ae6053378ddffd63e27c6225d93370 | [
"Apache-2.0"
] | null | null | null | config/config.exs | arpnetwork/dapp_demo | ff87809625ae6053378ddffd63e27c6225d93370 | [
"Apache-2.0"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on this project, this
# file won't be loaded nor affect the paren... | 31.204545 | 73 | 0.736344 |
08bae6ede1c54ea586e10379332d5bceb8690709 | 1,359 | ex | Elixir | lib/new_relic/aggregate/reporter.ex | tpitale/elixir_agent | f356b588fe9d7cc3b9db00d9a251e009a20b3e0e | [
"Apache-2.0"
] | 227 | 2018-09-05T15:33:23.000Z | 2022-02-25T18:12:06.000Z | lib/new_relic/aggregate/reporter.ex | tpitale/elixir_agent | f356b588fe9d7cc3b9db00d9a251e009a20b3e0e | [
"Apache-2.0"
] | 211 | 2018-09-05T21:42:41.000Z | 2022-03-25T17:51:56.000Z | lib/new_relic/aggregate/reporter.ex | tpitale/elixir_agent | f356b588fe9d7cc3b9db00d9a251e009a20b3e0e | [
"Apache-2.0"
] | 84 | 2018-09-05T04:26:26.000Z | 2022-03-09T14:28:14.000Z | defmodule NewRelic.Aggregate.Reporter do
use GenServer
alias NewRelic.Aggregate
# This GenServer collects aggregate metric measurements, aggregates them,
# and reports them to the Harvester at the defined sample_cycle
@moduledoc false
def start_link(_) do
GenServer.start_link(__MODULE__, :ok, name: _... | 26.647059 | 96 | 0.699043 |
08bafee76ebaa543210cb8055dc23273322aaeec | 69 | ex | Elixir | lib/ninescraft_web/views/layout_view.ex | drobertduke/ninescraft | 00a08e4f3433b1ffd8f0a8dc77927d043b4e3ce8 | [
"Apache-2.0"
] | null | null | null | lib/ninescraft_web/views/layout_view.ex | drobertduke/ninescraft | 00a08e4f3433b1ffd8f0a8dc77927d043b4e3ce8 | [
"Apache-2.0"
] | null | null | null | lib/ninescraft_web/views/layout_view.ex | drobertduke/ninescraft | 00a08e4f3433b1ffd8f0a8dc77927d043b4e3ce8 | [
"Apache-2.0"
] | null | null | null | defmodule NinescraftWeb.LayoutView do
use NinescraftWeb, :view
end
| 17.25 | 37 | 0.826087 |
08bb1ba4a2636e5c5cca1d9c102f59701ba6afe1 | 261 | ex | Elixir | test/support/application.ex | blockfi/pg_ranges | d61f51323169fb10706fe61d902dec4b3f42595b | [
"MIT"
] | null | null | null | test/support/application.ex | blockfi/pg_ranges | d61f51323169fb10706fe61d902dec4b3f42595b | [
"MIT"
] | null | null | null | test/support/application.ex | blockfi/pg_ranges | d61f51323169fb10706fe61d902dec4b3f42595b | [
"MIT"
] | null | null | null | defmodule PgRanges.Application do
@moduledoc false
use Application
def start(_type, _args) do
children = [
PgRanges.Repo
]
opts = [strategy: :one_for_one, name: PgRanges.Supervisor]
Supervisor.start_link(children, opts)
end
end
| 17.4 | 62 | 0.693487 |
08bb45f36a4c224a95afc735d294ebb9ffe0685c | 1,865 | ex | Elixir | apps/omg_watcher/lib/web/views/utxo.ex | Pongch/elixir-omg | 8a33c246898b49cba62b847e0989d9b6c89f5106 | [
"Apache-2.0"
] | null | null | null | apps/omg_watcher/lib/web/views/utxo.ex | Pongch/elixir-omg | 8a33c246898b49cba62b847e0989d9b6c89f5106 | [
"Apache-2.0"
] | null | null | null | apps/omg_watcher/lib/web/views/utxo.ex | Pongch/elixir-omg | 8a33c246898b49cba62b847e0989d9b6c89f5106 | [
"Apache-2.0"
] | null | null | null | # Copyright 2018 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... | 25.547945 | 74 | 0.669705 |
08bb4cf3ddc23872edb25935e1a53c80fadd19b5 | 4,858 | ex | Elixir | lib/oli_web/live/sections/overview_view.ex | AnkitKadamATS/oli-torus | 3f9d5e8d568684b28d2ed65e17f796ae4c27c072 | [
"MIT"
] | null | null | null | lib/oli_web/live/sections/overview_view.ex | AnkitKadamATS/oli-torus | 3f9d5e8d568684b28d2ed65e17f796ae4c27c072 | [
"MIT"
] | null | null | null | lib/oli_web/live/sections/overview_view.ex | AnkitKadamATS/oli-torus | 3f9d5e8d568684b28d2ed65e17f796ae4c27c072 | [
"MIT"
] | 1 | 2021-10-30T05:58:19.000Z | 2021-10-30T05:58:19.000Z | defmodule OliWeb.Sections.OverviewView do
use Surface.LiveView, layout: {OliWeb.LayoutView, "live.html"}
alias Oli.Repo.{Paging, Sorting}
alias OliWeb.Common.{Breadcrumb}
alias OliWeb.Common.Properties.{Groups, Group, ReadOnly}
alias Oli.Delivery.Sections.{EnrollmentBrowseOptions}
alias OliWeb.Router.Helpe... | 35.202899 | 154 | 0.640387 |
08bb525e996ab59f73f863f30c0673d05d43f1e1 | 387 | ex | Elixir | lib/apus/application.ex | deniskulicek/apus | be40b09a5507a56feee87d98d68d8720826f5bda | [
"MIT"
] | null | null | null | lib/apus/application.ex | deniskulicek/apus | be40b09a5507a56feee87d98d68d8720826f5bda | [
"MIT"
] | null | null | null | lib/apus/application.ex | deniskulicek/apus | be40b09a5507a56feee87d98d68d8720826f5bda | [
"MIT"
] | null | null | null | defmodule Apus.Application do
@moduledoc false
use Application
def start(_type, _args) do
children = [
%{id: Apus.SentMessages, start: {Apus.SentMessages, :start_link, []}},
{Task.Supervisor, name: Apus.TaskSupervisorStrategy.supervisor_name()}
]
opts = [strategy: :one_for_one, name: Ap... | 24.1875 | 76 | 0.69509 |
08bb58779dc1857cee8cccffd7cdeada92f297bf | 712 | exs | Elixir | priv/repo/migrations/20201229220716_move_tag_checks_into_database.exs | CyberFlameGO/bolt | 225e6276983bec646e7f13519df066e8e1e770ed | [
"ISC"
] | 31 | 2018-12-06T23:12:33.000Z | 2022-03-29T18:34:25.000Z | priv/repo/migrations/20201229220716_move_tag_checks_into_database.exs | CyberFlameGO/bolt | 225e6276983bec646e7f13519df066e8e1e770ed | [
"ISC"
] | 18 | 2021-06-14T19:03:26.000Z | 2022-03-15T17:46:22.000Z | priv/repo/migrations/20201229220716_move_tag_checks_into_database.exs | CyberFlameGO/bolt | 225e6276983bec646e7f13519df066e8e1e770ed | [
"ISC"
] | 4 | 2018-11-07T18:52:28.000Z | 2022-03-16T00:14:38.000Z | defmodule Bolt.Repo.Migrations.MoveTagChecksIntoDatabase do
use Ecto.Migration
def change do
create(constraint("tags", :name_length, check: "length(name) BETWEEN 3 AND 40"))
create(constraint("tags", :content_length, check: "length(content) BETWEEN 10 AND 2000"))
create(
constraint("tags", :name... | 32.363636 | 172 | 0.617978 |
08bb5aef902f0041149e096eff966b34458dd05f | 4,068 | ex | Elixir | clients/safe_browsing/lib/google_api/safe_browsing/v4/model/google_security_safebrowsing_v4_fetch_threat_list_updates_response_list_update_response.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/safe_browsing/lib/google_api/safe_browsing/v4/model/google_security_safebrowsing_v4_fetch_threat_list_updates_response_list_update_response.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/safe_browsing/lib/google_api/safe_browsing/v4/model/google_security_safebrowsing_v4_fetch_threat_list_updates_response_list_update_response.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... | 47.302326 | 376 | 0.738692 |
08bb6f4e08ffe5bd3f22b7efdb37a2220a3fb6d4 | 2,032 | exs | Elixir | test/controllers/bar_controller_test.exs | matthewphilyaw/basic_auth_test | 9bd6b62c8680ec603314adab940b8840e50b240c | [
"MIT"
] | null | null | null | test/controllers/bar_controller_test.exs | matthewphilyaw/basic_auth_test | 9bd6b62c8680ec603314adab940b8840e50b240c | [
"MIT"
] | null | null | null | test/controllers/bar_controller_test.exs | matthewphilyaw/basic_auth_test | 9bd6b62c8680ec603314adab940b8840e50b240c | [
"MIT"
] | null | null | null | defmodule FooApi.BarControllerTest do
use FooApi.ConnCase
alias FooApi.Bar
@valid_attrs %{barnism: "some content"}
@invalid_attrs %{}
setup do
conn = conn() |> put_req_header("accept", "application/json")
{:ok, conn: conn}
end
test "lists all entries on index", %{conn: conn} do
conn = get c... | 32.774194 | 98 | 0.660925 |
08bb76f7c6a327369cd1353c1c43ceb7d67bbf72 | 124 | exs | Elixir | config/prod.exs | mrhooray/dwolla-elixir | 843c40fbef7e1356bb77b4c2f21fd8a534eef5da | [
"MIT"
] | null | null | null | config/prod.exs | mrhooray/dwolla-elixir | 843c40fbef7e1356bb77b4c2f21fd8a534eef5da | [
"MIT"
] | null | null | null | config/prod.exs | mrhooray/dwolla-elixir | 843c40fbef7e1356bb77b4c2f21fd8a534eef5da | [
"MIT"
] | null | null | null | use Mix.Config
config :dwolla,
root_uri: "https://api.dwolla.com/",
oauth_uri: "https://www.dwolla.com/oauth/v2/token"
| 20.666667 | 52 | 0.701613 |
08bb7a184c2e88398a5c36362c06aa0dd904924d | 248 | ex | Elixir | lib/supabase_surface/components/utils.ex | treebee/supabase-surface | 5a184ca92323c085dd81e2fc8aa8c10367f2382e | [
"Apache-2.0"
] | 5 | 2021-06-08T08:02:43.000Z | 2022-02-09T23:13:46.000Z | lib/supabase_surface/components/utils.ex | treebee/supabase-surface | 5a184ca92323c085dd81e2fc8aa8c10367f2382e | [
"Apache-2.0"
] | null | null | null | lib/supabase_surface/components/utils.ex | treebee/supabase-surface | 5a184ca92323c085dd81e2fc8aa8c10367f2382e | [
"Apache-2.0"
] | 1 | 2021-07-14T05:20:31.000Z | 2021-07-14T05:20:31.000Z | defmodule SupabaseSurface.Components.Utils do
def get_style(assigns) do
assigns.style
|> Stream.filter(fn {_key, value} -> not is_nil(value) end)
|> Enum.map(fn {key, value} -> "#{key}: #{value}" end)
|> Enum.join("; ")
end
end
| 27.555556 | 63 | 0.629032 |
08bba01f2aa226df08dcc34d25ba77a41e80f92a | 195 | ex | Elixir | lib/edgar.ex | david-christensen/edgar | 32fdcf5b60b5a9be2f9604ea6d57e4cc1ab27e93 | [
"MIT"
] | null | null | null | lib/edgar.ex | david-christensen/edgar | 32fdcf5b60b5a9be2f9604ea6d57e4cc1ab27e93 | [
"MIT"
] | null | null | null | lib/edgar.ex | david-christensen/edgar | 32fdcf5b60b5a9be2f9604ea6d57e4cc1ab27e93 | [
"MIT"
] | null | null | null | defmodule Edgar do
@moduledoc """
Documentation for `Edgar`.
"""
@doc """
Hello world.
## Examples
iex> Edgar.hello()
:world
"""
def hello do
:world
end
end
| 10.263158 | 28 | 0.54359 |
08bbb3ab31e420f25b4478e55ae084512a7717a4 | 945 | exs | Elixir | kousa/test/broth/_calls/schedule_room_test.exs | AhmetEsad/dogehouse | ba8c757bc0419ac07bd9bf062c67a39ab74cdfa6 | [
"MIT"
] | 1 | 2021-04-22T08:37:55.000Z | 2021-04-22T08:37:55.000Z | kousa/test/broth/_calls/schedule_room_test.exs | mateuszklysz/dogehouse | ba8c757bc0419ac07bd9bf062c67a39ab74cdfa6 | [
"MIT"
] | null | null | null | kousa/test/broth/_calls/schedule_room_test.exs | mateuszklysz/dogehouse | ba8c757bc0419ac07bd9bf062c67a39ab74cdfa6 | [
"MIT"
] | null | null | null | defmodule BrothTest.ScheduleRoomTest do
use ExUnit.Case, async: true
use KousaTest.Support.EctoSandbox
alias Beef.Schemas.User
alias BrothTest.WsClient
alias BrothTest.WsClientFactory
alias KousaTest.Support.Factory
require WsClient
setup do
user = Factory.create(User)
client_ws = WsClientFac... | 24.230769 | 78 | 0.657143 |
08bbd04c92b2d1aa353f41726106ebc9683cb762 | 929 | ex | Elixir | test/support/channel_case.ex | johndavedecano/kwerk | a9e5928c2c5eb7a9a8dfaba30450627c257832a3 | [
"MIT"
] | 2 | 2018-09-23T08:45:07.000Z | 2020-01-20T15:47:45.000Z | test/support/channel_case.ex | johndavedecano/kwerk | a9e5928c2c5eb7a9a8dfaba30450627c257832a3 | [
"MIT"
] | null | null | null | test/support/channel_case.ex | johndavedecano/kwerk | a9e5928c2c5eb7a9a8dfaba30450627c257832a3 | [
"MIT"
] | null | null | null | defmodule KwerkWeb.ChannelCase do
@moduledoc """
This module defines the test case to be used by
channel tests.
Such tests rely on `Phoenix.ChannelTest` and also
import other functionality to make it easier
to build common datastructures and query the data layer.
Finally, if the test case interacts with... | 24.447368 | 67 | 0.713671 |
08bc025987e2ce82cf3d2f9e8fe324f6ce8503c0 | 85 | ex | Elixir | web/views/layout_view.ex | KazuCocoa/web_qa | cd0074e950ef354eeafb7d48db685c82d653cc60 | [
"MIT"
] | null | null | null | web/views/layout_view.ex | KazuCocoa/web_qa | cd0074e950ef354eeafb7d48db685c82d653cc60 | [
"MIT"
] | null | null | null | web/views/layout_view.ex | KazuCocoa/web_qa | cd0074e950ef354eeafb7d48db685c82d653cc60 | [
"MIT"
] | null | null | null | defmodule WebQaVote.LayoutView do
@moduledoc false
use WebQaVote.Web, :view
end
| 14.166667 | 33 | 0.776471 |
08bc3902a97813064dc40a871655832ed25fe6b4 | 1,790 | exs | Elixir | clients/sheets/mix.exs | ukrbublik/elixir-google-api | 364cec36bc76f60bec94cbcad34844367a29d174 | [
"Apache-2.0"
] | null | null | null | clients/sheets/mix.exs | ukrbublik/elixir-google-api | 364cec36bc76f60bec94cbcad34844367a29d174 | [
"Apache-2.0"
] | null | null | null | clients/sheets/mix.exs | 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... | 26.716418 | 97 | 0.649162 |
08bc56d87af43b623668c4ab7417ec089b6ca10e | 9,228 | ex | Elixir | lib/mix/tasks/new.ex | milmazz/scenic_new | 08e3557fc481d23d6cc274e7e1b3a22809a41324 | [
"Apache-2.0"
] | null | null | null | lib/mix/tasks/new.ex | milmazz/scenic_new | 08e3557fc481d23d6cc274e7e1b3a22809a41324 | [
"Apache-2.0"
] | null | null | null | lib/mix/tasks/new.ex | milmazz/scenic_new | 08e3557fc481d23d6cc274e7e1b3a22809a41324 | [
"Apache-2.0"
] | null | null | null | #
# Created by Boyd Multerer on August, 2018.
# Copyright © 2018 Kry10 Industries. All rights reserved.
#
defmodule Mix.Tasks.Scenic.New do
use Mix.Task
import Mix.Generator
@moduledoc """
Generates a starter Scenic application.
This is the easiest way to set up a new Scenic project.
## Install `scen... | 35.629344 | 290 | 0.67772 |
08bc7504a0c4348e1194f5e4378aa1512a7b5e89 | 1,539 | ex | Elixir | clients/tool_results/lib/google_api/tool_results/v1beta3/model/tool_exit_code.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/tool_results/lib/google_api/tool_results/v1beta3/model/tool_exit_code.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/tool_results/lib/google_api/tool_results/v1beta3/model/tool_exit_code.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 30.176471 | 124 | 0.730344 |
08bcc1854b90567b1da9fd1094dce7a753719798 | 2,278 | ex | Elixir | lib/md0/scanner/table_scanner_impl.ex | RobertDober/md0 | b2337e69a9bea6b2b17951b75daa15fe7fe8cfad | [
"Apache-2.0"
] | null | null | null | lib/md0/scanner/table_scanner_impl.ex | RobertDober/md0 | b2337e69a9bea6b2b17951b75daa15fe7fe8cfad | [
"Apache-2.0"
] | null | null | null | lib/md0/scanner/table_scanner_impl.ex | RobertDober/md0 | b2337e69a9bea6b2b17951b75daa15fe7fe8cfad | [
"Apache-2.0"
] | null | null | null | defmodule Md0.Scanner.TableScannerImpl do
@typep token :: {atom(), String.t, number()}
@typep tokens :: list(token)
@typep graphemes :: list(String.t)
@typep scan_info :: {atom(), graphemes(), number(), IO.chardata(), tokens()}
def scan_line({line, lnb}, table),
do: scan({:start, String.graphemes(li... | 39.275862 | 118 | 0.645303 |
08bcef28a722d7c594836572e29fd9ea8b9ca024 | 6,187 | ex | Elixir | clients/binary_authorization/lib/google_api/binary_authorization/v1/model/iam_policy.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/binary_authorization/lib/google_api/binary_authorization/v1/model/iam_policy.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/binary_authorization/lib/google_api/binary_authorization/v1/model/iam_policy.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... | 116.735849 | 2,012 | 0.755778 |
08bd03b34c5db4c48a3f57511eee1274376c8331 | 3,575 | exs | Elixir | test/lib/absinthe/phase/document/validation/known_argument_names_test.exs | bruce/absinthe | 19b63d3aaa9fb75aad01ffd5e91d89e0b30d7f91 | [
"MIT"
] | 3 | 2017-06-22T16:33:58.000Z | 2021-07-07T15:21:09.000Z | test/lib/absinthe/phase/document/validation/known_argument_names_test.exs | bruce/absinthe | 19b63d3aaa9fb75aad01ffd5e91d89e0b30d7f91 | [
"MIT"
] | null | null | null | test/lib/absinthe/phase/document/validation/known_argument_names_test.exs | bruce/absinthe | 19b63d3aaa9fb75aad01ffd5e91d89e0b30d7f91 | [
"MIT"
] | null | null | null | defmodule Absinthe.Phase.Document.Validation.KnownArgumentNamesTest do
use Absinthe.Case, async: true
@rule Absinthe.Phase.Document.Validation.KnownArgumentNames
use Support.Harness.Validation
alias Absinthe.{Blueprint}
context "Valid" do
it "single arg is known" do
assert_passes_rule(@rule,
... | 22.34375 | 131 | 0.503776 |
08bd4c73ac224ca8fa732fd99b379987bc1dbfa5 | 2,349 | ex | Elixir | clients/classroom/lib/google_api/classroom/v1/model/feed.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/classroom/lib/google_api/classroom/v1/model/feed.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/classroom/lib/google_api/classroom/v1/model/feed.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 41.946429 | 192 | 0.742018 |
08bd5c2b27047a1141eb74ceeca756543e138cc2 | 2,316 | exs | Elixir | config/config.exs | richeterre/jumubase-phoenix | 7584f890af117d496971b5284bf9de798e22266f | [
"MIT"
] | 2 | 2019-01-20T07:03:30.000Z | 2019-04-11T10:20:14.000Z | config/config.exs | richeterre/jumubase-phoenix | 7584f890af117d496971b5284bf9de798e22266f | [
"MIT"
] | 6 | 2018-09-20T05:52:14.000Z | 2019-04-23T19:27:39.000Z | config/config.exs | richeterre/jumubase-phoenix | 7584f890af117d496971b5284bf9de798e22266f | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
#
# This configuration file is loaded before any dependency and
# is restricted to this project.
use Mix.Config
# General application configuration
config :jumubase,
ecto_repos: [Jumubase.Repo]
... | 33.085714 | 90 | 0.780656 |
08bd73c67c4970410d9e5862d8a58b91311a06de | 16,972 | ex | Elixir | lib/ex_unit/lib/ex_unit/case.ex | andrewtimberlake/elixir | a1c4ffc897f9407fe7e739e20e697805fbbff810 | [
"Apache-2.0"
] | null | null | null | lib/ex_unit/lib/ex_unit/case.ex | andrewtimberlake/elixir | a1c4ffc897f9407fe7e739e20e697805fbbff810 | [
"Apache-2.0"
] | null | null | null | lib/ex_unit/lib/ex_unit/case.ex | andrewtimberlake/elixir | a1c4ffc897f9407fe7e739e20e697805fbbff810 | [
"Apache-2.0"
] | null | null | null | defmodule ExUnit.DuplicateTestError do
defexception [:message]
end
defmodule ExUnit.DuplicateDescribeError do
defexception [:message]
end
defmodule ExUnit.Case do
@moduledoc """
Helpers for defining test cases.
This module must be used in other modules as a way to configure
and prepare them for testing.
... | 30.145648 | 98 | 0.663622 |
08bd74a9380d683e452fd1c4496503d81d0add80 | 6,534 | ex | Elixir | lib/app/router.ex | george124816/elixir-telegram-bot-boilerplate | 8bfd24d46b4caacd705dfeac3b379d39cdd0b6c9 | [
"MIT"
] | 148 | 2016-11-19T05:59:26.000Z | 2022-02-28T05:09:29.000Z | lib/app/router.ex | george124816/elixir-telegram-bot-boilerplate | 8bfd24d46b4caacd705dfeac3b379d39cdd0b6c9 | [
"MIT"
] | 17 | 2017-01-14T23:49:04.000Z | 2020-06-02T13:35:21.000Z | lib/app/router.ex | george124816/elixir-telegram-bot-boilerplate | 8bfd24d46b4caacd705dfeac3b379d39cdd0b6c9 | [
"MIT"
] | 37 | 2016-11-19T08:40:55.000Z | 2022-02-25T23:37:39.000Z | defmodule App.Router do
@bot_name Application.get_env(:app, :bot_name)
# Code injectors
defmacro __using__(_opts) do
quote do
require Logger
import App.Router
def match_message(message) do
try do
apply(__MODULE__, :do_match_message, [message])
rescue
er... | 25.130769 | 86 | 0.609428 |
08bdb6862cc4987a72deb0f46fc38c9b6eeef196 | 1,063 | ex | Elixir | lib/blue_jet_web/views/point_transaction_view.ex | freshcom/freshcom-api | 4f2083277943cf4e4e8fd4c4d443c7309f285ad7 | [
"BSD-3-Clause"
] | 44 | 2018-05-09T01:08:57.000Z | 2021-01-19T07:25:26.000Z | lib/blue_jet_web/views/point_transaction_view.ex | freshcom/freshcom-api | 4f2083277943cf4e4e8fd4c4d443c7309f285ad7 | [
"BSD-3-Clause"
] | 36 | 2018-05-08T23:59:54.000Z | 2018-09-28T13:50:30.000Z | lib/blue_jet_web/views/point_transaction_view.ex | freshcom/freshcom-api | 4f2083277943cf4e4e8fd4c4d443c7309f285ad7 | [
"BSD-3-Clause"
] | 9 | 2018-05-09T14:09:19.000Z | 2021-03-21T21:04:04.000Z | defmodule BlueJetWeb.PointTransactionView do
use BlueJetWeb, :view
use JaSerializer.PhoenixView
attributes [
:status,
:code,
:name,
:label,
:reason_label,
:amount,
:balance_after_commit,
:caption,
:description,
:custom_data,
:committed_at,
:inserted_at
]
ha... | 25.309524 | 124 | 0.695202 |
08bdf184ede05e60e7962dc42ac1354d85ac33f9 | 5,438 | ex | Elixir | lib/brando/trait.ex | univers-agency/brando | 69c3c52498a3f64518da3522cd9f27294a52cc68 | [
"Apache-2.0"
] | 1 | 2020-04-26T09:53:02.000Z | 2020-04-26T09:53:02.000Z | lib/brando/trait.ex | univers-agency/brando | 69c3c52498a3f64518da3522cd9f27294a52cc68 | [
"Apache-2.0"
] | 198 | 2019-08-20T16:16:07.000Z | 2020-07-03T15:42:07.000Z | lib/brando/trait.ex | univers-agency/brando | 69c3c52498a3f64518da3522cd9f27294a52cc68 | [
"Apache-2.0"
] | null | null | null | defmodule Brando.Trait do
@moduledoc """
## Changeset phase
If you need your trait's `changeset_mutator` to run before `validate_required`
when your `changeset` is generated, you can set `@changeset_phase :before_validate_required`
in your trait. This is useful if you're inserting a required field into the ... | 30.897727 | 96 | 0.679846 |
08be07a2b661088ceab33d886c98c7d1bc927287 | 334 | ex | Elixir | lib/supabase_surface/components/icons/icon_map.ex | treebee/supabase-surface | 5a184ca92323c085dd81e2fc8aa8c10367f2382e | [
"Apache-2.0"
] | 5 | 2021-06-08T08:02:43.000Z | 2022-02-09T23:13:46.000Z | lib/supabase_surface/components/icons/icon_map.ex | treebee/supabase-surface | 5a184ca92323c085dd81e2fc8aa8c10367f2382e | [
"Apache-2.0"
] | null | null | null | lib/supabase_surface/components/icons/icon_map.ex | treebee/supabase-surface | 5a184ca92323c085dd81e2fc8aa8c10367f2382e | [
"Apache-2.0"
] | 1 | 2021-07-14T05:20:31.000Z | 2021-07-14T05:20:31.000Z | defmodule SupabaseSurface.Components.Icons.IconMap do
use SupabaseSurface.Components.Icon
@impl true
def render(assigns) do
icon_size = IconContainer.get_size(assigns.size)
~F"""
<IconContainer assigns={assigns}>
{Feathericons.map(width: icon_size, height: icon_size)}
</IconContainer>
... | 22.266667 | 61 | 0.712575 |
08be0c2a773939502f1480141c9d3c231eadddd9 | 9,911 | ex | Elixir | lib/sparrow/hns/v1/android.ex | muratgurdal/sparrow | 0bb9ff4c4ab21802bcba369b3496749d2637b473 | [
"Apache-2.0"
] | null | null | null | lib/sparrow/hns/v1/android.ex | muratgurdal/sparrow | 0bb9ff4c4ab21802bcba369b3496749d2637b473 | [
"Apache-2.0"
] | null | null | null | lib/sparrow/hns/v1/android.ex | muratgurdal/sparrow | 0bb9ff4c4ab21802bcba369b3496749d2637b473 | [
"Apache-2.0"
] | 1 | 2021-07-06T11:29:18.000Z | 2021-07-06T11:29:18.000Z | defmodule Sparrow.HNS.V1.Android do
@moduledoc """
Struct reflecting HNS object(AndroidConfig).
See: https://firebase.google.com/docs/reference/hns/rest/v1/projects.messages#AndroidConfig
"""
@type priority :: :NORMAL | :HIGH
@type field ::
{:collapse_key, String.t()}
| {:priority, prior... | 29.85241 | 158 | 0.660377 |
08be3615ce04af68d9a167acae25c8bd4beca995 | 133 | exs | Elixir | config/config.exs | dch/sofa | 38cfec41eede03a383cee86682557cf30f13bebf | [
"BSD-2-Clause"
] | null | null | null | config/config.exs | dch/sofa | 38cfec41eede03a383cee86682557cf30f13bebf | [
"BSD-2-Clause"
] | 1 | 2021-07-08T06:06:45.000Z | 2021-07-27T12:36:39.000Z | config/config.exs | dch/sofa | 38cfec41eede03a383cee86682557cf30f13bebf | [
"BSD-2-Clause"
] | 1 | 2021-07-27T15:21:20.000Z | 2021-07-27T15:21:20.000Z | import Config
if config_env() == :test do
config :tesla, adapter: Tesla.Mock
else
config :tesla, adapter: Tesla.Adapter.Gun
end
| 16.625 | 43 | 0.729323 |
08be3f55dfd8a7d428d30641077068eae9eca996 | 831 | ex | Elixir | lib/coherence/plugs/authorization/credential_store/agent.ex | remigijusj/coherence | 36fe35b0bfe7ac63b44b4046f3ba62f2fe69603a | [
"MIT"
] | null | null | null | lib/coherence/plugs/authorization/credential_store/agent.ex | remigijusj/coherence | 36fe35b0bfe7ac63b44b4046f3ba62f2fe69603a | [
"MIT"
] | null | null | null | lib/coherence/plugs/authorization/credential_store/agent.ex | remigijusj/coherence | 36fe35b0bfe7ac63b44b4046f3ba62f2fe69603a | [
"MIT"
] | null | null | null | defmodule Coherence.CredentialStore.Agent do
@behaviour Coherence.CredentialStore
@doc """
Starts a new credentials store.
"""
def start_link do
Agent.start_link(&HashDict.new/0, name: __MODULE__)
end
@doc """
Gets the user data for the given credentials
"""
def get_user_data(credentials) do
... | 23.742857 | 71 | 0.709988 |
08be5444b870544173609492e829c3630f0107e5 | 2,286 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/target_https_proxies_scoped_list_warning.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/target_https_proxies_scoped_list_warning.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/target_https_proxies_scoped_list_warning.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 40.105263 | 196 | 0.728346 |
08be56aeed497c843e2a0fbce4c0595292e24664 | 1,589 | ex | Elixir | lib/bike_brigade_web/live/campaign_live/new.ex | bikebrigade/dispatch | eb622fe4f6dab7c917d678d3d7a322a01f97da44 | [
"Apache-2.0"
] | 28 | 2021-10-11T01:53:53.000Z | 2022-03-24T17:45:55.000Z | lib/bike_brigade_web/live/campaign_live/new.ex | bikebrigade/dispatch | eb622fe4f6dab7c917d678d3d7a322a01f97da44 | [
"Apache-2.0"
] | 20 | 2021-10-21T08:12:31.000Z | 2022-03-31T13:35:53.000Z | lib/bike_brigade_web/live/campaign_live/new.ex | bikebrigade/dispatch | eb622fe4f6dab7c917d678d3d7a322a01f97da44 | [
"Apache-2.0"
] | null | null | null | defmodule BikeBrigadeWeb.CampaignLive.New do
use BikeBrigadeWeb, :live_view
alias BikeBrigade.Delivery
alias BikeBrigade.Delivery.Campaign
alias NimbleCSV.RFC4180, as: CSV
@impl Phoenix.LiveView
def mount(_params, _session, socket) do
{:ok,
socket
|> assign(:page, :campaigns)
|> assign... | 26.483333 | 75 | 0.668345 |
08be6243367c49b8378c43a70bb79b9de25f4858 | 1,113 | ex | Elixir | lib/imager/instrumenter/storage.ex | appunite/imager | b41f76be975faf4d255ad0a5d8e972df1924356b | [
"MIT"
] | 55 | 2018-10-02T14:56:04.000Z | 2021-12-10T21:08:07.000Z | lib/imager/instrumenter/storage.ex | appunite/imager | b41f76be975faf4d255ad0a5d8e972df1924356b | [
"MIT"
] | 27 | 2018-10-02T14:57:09.000Z | 2019-04-11T07:51:11.000Z | lib/imager/instrumenter/storage.ex | appunite/imager | b41f76be975faf4d255ad0a5d8e972df1924356b | [
"MIT"
] | 3 | 2018-10-12T18:31:41.000Z | 2020-04-22T15:26:25.000Z | defmodule Imager.Instrumenter.Storage do
def setup do
:prometheus_counter.declare(
name: :store_retrieved_total,
help: "Count of retrieves from the given store",
labels: [:store]
)
:prometheus_counter.declare(
name: :store_saved_total,
help: "Count of saves into the given st... | 22.26 | 78 | 0.634322 |
08be65ee80e3c3a16532bdbdd1ab7bf4dd4d14c7 | 8,091 | exs | Elixir | test/lib/bamboo/mailer_test.exs | speeddragon/bamboo | b7bc9df132c7710ac3344be677b22a156e4eecd3 | [
"MIT"
] | null | null | null | test/lib/bamboo/mailer_test.exs | speeddragon/bamboo | b7bc9df132c7710ac3344be677b22a156e4eecd3 | [
"MIT"
] | null | null | null | test/lib/bamboo/mailer_test.exs | speeddragon/bamboo | b7bc9df132c7710ac3344be677b22a156e4eecd3 | [
"MIT"
] | null | null | null | defmodule Bamboo.MailerTest do
use ExUnit.Case
alias Bamboo.Email
defmodule FooAdapter do
def deliver(email, config) do
send(:mailer_test, {:deliver, email, config})
end
def handle_config(config), do: config
def supports_attachments?, do: true
end
defmodule CustomConfigAdapter do
... | 30.078067 | 96 | 0.70152 |
08be67c6c653816da2ad329744c0bebf69b4815e | 1,377 | ex | Elixir | example-1-wordcount/lib/wordcount.ex | TattdCodeMonkey/ets-workshop | 42e72b8a5a08742e76f3aa08e5e7c014b4cd7ac2 | [
"MIT"
] | null | null | null | example-1-wordcount/lib/wordcount.ex | TattdCodeMonkey/ets-workshop | 42e72b8a5a08742e76f3aa08e5e7c014b4cd7ac2 | [
"MIT"
] | null | null | null | example-1-wordcount/lib/wordcount.ex | TattdCodeMonkey/ets-workshop | 42e72b8a5a08742e76f3aa08e5e7c014b4cd7ac2 | [
"MIT"
] | null | null | null | defmodule WordCount do
@top_n_words 10
@switches [file: :string]
def main(argv) do
{options, _, _} = OptionParser.parse(argv, strict: @switches)
options
|> run
|> to_exit_status
end
def run(options) do
with {:ok, _} <- WordCount.State.init,
{:ok, file_stream} <- get_file(options)... | 23.741379 | 82 | 0.591866 |
08be808263a39d424dd53ffe0a2506d6d0c4620b | 181 | exs | Elixir | priv/repo/migrations/20220201223427_create_topics.exs | frunox/discuss | d19367eceb8c68ebef4e565981ceef256b5cb04e | [
"MIT"
] | null | null | null | priv/repo/migrations/20220201223427_create_topics.exs | frunox/discuss | d19367eceb8c68ebef4e565981ceef256b5cb04e | [
"MIT"
] | null | null | null | priv/repo/migrations/20220201223427_create_topics.exs | frunox/discuss | d19367eceb8c68ebef4e565981ceef256b5cb04e | [
"MIT"
] | null | null | null | defmodule Discuss.Repo.Migrations.CreateTopics do
use Ecto.Migration
def change do
create table(:topics) do
add :title, :string
timestamps()
end
end
end
| 15.083333 | 49 | 0.679558 |
08bece39a11c9c26170a2eb4683215fb34c25035 | 2,164 | ex | Elixir | clients/android_enterprise/lib/google_api/android_enterprise/v1/model/store_layout.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/android_enterprise/lib/google_api/android_enterprise/v1/model/store_layout.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/android_enterprise/lib/google_api/android_enterprise/v1/model/store_layout.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... | 43.28 | 318 | 0.755083 |
08bef2d30b5b27cf804dfd82b4afa347f239ce7c | 1,307 | exs | Elixir | bench/exmetrics_bench.exs | fourcube/metrics | 0c8cf2ea5b9351d4897b61a619986b738bfc7497 | [
"MIT"
] | null | null | null | bench/exmetrics_bench.exs | fourcube/metrics | 0c8cf2ea5b9351d4897b61a619986b738bfc7497 | [
"MIT"
] | 2 | 2016-02-12T06:48:08.000Z | 2016-02-16T09:59:32.000Z | bench/exmetrics_bench.exs | fourcube/metrics | 0c8cf2ea5b9351d4897b61a619986b738bfc7497 | [
"MIT"
] | null | null | null | defmodule Exmetrics.Bench do
use Benchfella
require Logger
setup_all do
Application.ensure_all_started(:exmetrics)
end
teardown_all _ do
Application.stop(:exmetrics)
end
after_each_bench _ do
Exmetrics.reset
end
bench "Exmetrics.Gauge.set/2" do
Exmetrics.Gauge.set "foo", 1
end
... | 20.746032 | 80 | 0.697781 |
08bf27613d7b44c2724dabf8a7ffdf4481a98bca | 1,174 | exs | Elixir | test/scarecrow/models/timestamps_test.exs | azukiapp/scarecrow | c5d500d36173c74ed8c7e6e4923293de8b39ea9b | [
"Apache-2.0"
] | 1 | 2015-06-13T03:35:02.000Z | 2015-06-13T03:35:02.000Z | test/scarecrow/models/timestamps_test.exs | azukiapp/scarecrow | c5d500d36173c74ed8c7e6e4923293de8b39ea9b | [
"Apache-2.0"
] | null | null | null | test/scarecrow/models/timestamps_test.exs | azukiapp/scarecrow | c5d500d36173c74ed8c7e6e4923293de8b39ea9b | [
"Apache-2.0"
] | null | null | null | Code.require_file "../../test_helper.exs", __DIR__
defmodule ScarecrowModelsTimestampsTest do
use ExUnit.Case
alias Scarecrow.Models
defmodule DocumentTest do
use Models.Document
use Models.Timestamps
end
test "document record have a timestamps fields" do
assert is_record(DocumentTest.new, Docu... | 29.35 | 75 | 0.723169 |
08bf95bfda9a5c675cda2c9a80e3d4ddd1e1d3ff | 1,897 | ex | Elixir | clients/analytics_admin/lib/google_api/analytics_admin/v1alpha/model/google_analytics_admin_v1alpha_batch_get_user_links_response.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_batch_get_user_links_response.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_batch_get_user_links_response.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... | 33.280702 | 158 | 0.761202 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.