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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
28742aaa32568f79cd1a08fd16cd66875e80a9fe | 2,096 | exs | Elixir | config/prod.exs | matsubara0507/pastry-chef-test | 05c0fc3a3864e5469690da980e7bf3d2dbdb3919 | [
"MIT"
] | 1 | 2017-09-20T23:46:35.000Z | 2017-09-20T23:46:35.000Z | config/prod.exs | matsubara0507/pastry-chef-test | 05c0fc3a3864e5469690da980e7bf3d2dbdb3919 | [
"MIT"
] | null | null | null | config/prod.exs | matsubara0507/pastry-chef-test | 05c0fc3a3864e5469690da980e7bf3d2dbdb3919 | [
"MIT"
] | null | null | null | use Mix.Config
# For production, we configure the host to read the PORT
# from the system environment. Therefore, you will need
# to set PORT=80 before running your server.
#
# You should also configure the url host to something
# meaningful, we use this information when generating URLs.
#
# Finally, we also include t... | 33.269841 | 69 | 0.71708 |
28742cf9016fffba2cf3d1a76edde1645222b358 | 277 | ex | Elixir | assets/anakinResult.ex | valerybugakov/gqlSlides | 7ca310b222738673abbecbfa7345acd316b28008 | [
"MIT"
] | null | null | null | assets/anakinResult.ex | valerybugakov/gqlSlides | 7ca310b222738673abbecbfa7345acd316b28008 | [
"MIT"
] | null | null | null | assets/anakinResult.ex | valerybugakov/gqlSlides | 7ca310b222738673abbecbfa7345acd316b28008 | [
"MIT"
] | null | null | null | "person": {
"name": "Darth Vader",
"birthYear": "41.9BBY",
"planet": {
"name": "Tatooine"
},
"films": [
{ "title": "A New Hope" },
{ "title": "The Empire Strikes Back" },
{ "title": "Return of the Jedi" },
{ "title": "Revenge of the Sith" }
]
}
| 19.785714 | 43 | 0.494585 |
28746bfe5d44b9c99384f18eb78f15be690ca144 | 1,410 | exs | Elixir | test/letter_lines_elixir/board_word_test.exs | adam-phillips/letter_lines_elixir | 03ac93049b7a31d72650ef0dafdacc82737a7221 | [
"MIT"
] | null | null | null | test/letter_lines_elixir/board_word_test.exs | adam-phillips/letter_lines_elixir | 03ac93049b7a31d72650ef0dafdacc82737a7221 | [
"MIT"
] | 5 | 2020-05-12T05:46:44.000Z | 2020-06-13T09:46:09.000Z | test/letter_lines_elixir/board_word_test.exs | adam-phillips/letter_lines_elixir | 03ac93049b7a31d72650ef0dafdacc82737a7221 | [
"MIT"
] | null | null | null | defmodule LetterLinesElixir.BoardWordTest do
use ExUnit.Case
alias LetterLinesElixir.BoardWord
test "get_max_size/1 returns correct max coordinates for a horizontal word" do
word = BoardWord.new(0, 4, :h, "zebra")
assert BoardWord.get_max_size(word) == {4, 4}
end
test "get_max_size/1 returns corre... | 34.390244 | 82 | 0.660284 |
28748cbcf135c6e434cc405bd8d1a0b9bdbe603f | 203 | ex | Elixir | lib/elapi/repo.ex | Baltazore/elapi | afd107433f2e0a0b91d96e7addf8c8b4843a4a55 | [
"MIT"
] | null | null | null | lib/elapi/repo.ex | Baltazore/elapi | afd107433f2e0a0b91d96e7addf8c8b4843a4a55 | [
"MIT"
] | null | null | null | lib/elapi/repo.ex | Baltazore/elapi | afd107433f2e0a0b91d96e7addf8c8b4843a4a55 | [
"MIT"
] | null | null | null | defmodule Repo do
use Ecto.Repo, adapter: Ecto.Adapters.Postgres
def conf do
parse_url "ecto://postgres:postgres@localhost/elapi"
end
def priv do
app_dir(:elapi, "priv/repo")
end
end
| 16.916667 | 56 | 0.704433 |
2874a9d62e4940788cf03ce41a08fd38cb309f30 | 632 | ex | Elixir | lib/api/search.ex | bwireman/censys_elixir | 2fb0b92cc3071d99431b8e1cdd66f31124f9ddb5 | [
"MIT"
] | 4 | 2021-06-13T17:53:15.000Z | 2021-07-27T20:54:10.000Z | lib/api/search.ex | bwireman/censys_elixir | 2fb0b92cc3071d99431b8e1cdd66f31124f9ddb5 | [
"MIT"
] | 2 | 2021-07-27T20:33:09.000Z | 2022-03-23T19:17:48.000Z | lib/api/search.ex | bwireman/censys_ex | 2fb0b92cc3071d99431b8e1cdd66f31124f9ddb5 | [
"MIT"
] | null | null | null | defmodule CensysEx.Search do
@moduledoc """
Search API V2 Specific wrapper around CensysEx.Paginate
"""
alias CensysEx.{Paginate, Util}
@spec search(String.t(), String.t(), integer(), Keyword.t()) :: CensysEx.result_stream(map())
def search(index, query \\ "", per_page \\ 100, other_params \\ Keyword.new(... | 35.111111 | 106 | 0.677215 |
2874b58e017ac0ba87a916eb6970dcafef468265 | 1,805 | ex | Elixir | lib/helper/formatter.ex | lizhaochao/Argx | d2fb6e346d824a2775603e2eb779bb588870636d | [
"MIT"
] | 2 | 2021-05-07T03:27:19.000Z | 2021-05-19T02:04:01.000Z | lib/helper/formatter.ex | lizhaochao/Argx | d2fb6e346d824a2775603e2eb779bb588870636d | [
"MIT"
] | 1 | 2021-05-10T14:09:36.000Z | 2021-05-10T14:10:11.000Z | lib/helper/formatter.ex | lizhaochao/Argx | d2fb6e346d824a2775603e2eb779bb588870636d | [
"MIT"
] | null | null | null | defmodule Argx.Formatter do
@moduledoc false
import Argx.Error
###
def fmt_match_result({errors, new_args}, origin_type \\ nil) do
with errors <- sort_errors(errors),
new_args <- (origin_type && restore(origin_type, new_args)) || new_args do
{errors, new_args}
end
end
###
def fmt... | 29.112903 | 84 | 0.612742 |
2874bc2e597d08c77757283977633d4d09ea8d4a | 1,292 | ex | Elixir | lib/indulgences/activation/constant/engine.ex | TrsNium/Indulgences | 9492e49508551eb30c030016f5422475184e90f7 | [
"MIT"
] | 5 | 2019-09-09T08:51:25.000Z | 2020-01-01T06:28:21.000Z | lib/indulgences/activation/constant/engine.ex | TrsNium/Indulgences | 9492e49508551eb30c030016f5422475184e90f7 | [
"MIT"
] | 10 | 2020-05-19T20:28:34.000Z | 2022-03-23T21:39:11.000Z | lib/indulgences/activation/constant/engine.ex | TrsNium/Indulgences | 9492e49508551eb30c030016f5422475184e90f7 | [
"MIT"
] | null | null | null | defmodule Indulgences.Activation.Constant.Engine do
use Indulgences.Activation.Engine
alias Indulgences.Activation
alias Indulgences.Scenario
def execute(%Activation{} = activation, %Scenario{} = scenario, master) do
microsecond_duration = activation.duration * 1_000_000
end_time = Time.add(Time.utc_no... | 34 | 91 | 0.702012 |
2874e0dc350a15eb134b573f467eeef6ede18ce6 | 974 | exs | Elixir | test/cli_test.exs | maxmaccari/issues | 6f5501a88f5adebb4c573bbcdc5f8b85aa2e1506 | [
"MIT"
] | null | null | null | test/cli_test.exs | maxmaccari/issues | 6f5501a88f5adebb4c573bbcdc5f8b85aa2e1506 | [
"MIT"
] | null | null | null | test/cli_test.exs | maxmaccari/issues | 6f5501a88f5adebb4c573bbcdc5f8b85aa2e1506 | [
"MIT"
] | null | null | null | defmodule CliTest do
use ExUnit.Case
doctest Issues
import Issues.CLI, only: [parse_args: 1,
sort_into_ascending_order: 1]
test ":help returned by option parsing with -h and --help options" do
assert parse_args(["-h", "anything"]) == :help
assert parse_args(["--help", "... | 30.4375 | 77 | 0.632444 |
2874f2f98123d0df2eab4afdf8495903e36622f0 | 1,633 | exs | Elixir | test/evalixatir_test.exs | hvnsweeting/evalixator | b1b58eafcf2be7300061de6249e61f19058322db | [
"BSD-3-Clause"
] | null | null | null | test/evalixatir_test.exs | hvnsweeting/evalixator | b1b58eafcf2be7300061de6249e61f19058322db | [
"BSD-3-Clause"
] | null | null | null | test/evalixatir_test.exs | hvnsweeting/evalixator | b1b58eafcf2be7300061de6249e61f19058322db | [
"BSD-3-Clause"
] | null | null | null | defmodule EvalixatirTest do
use ExUnit.Case
doctest Evalixatir
test "valid 1 digit integer" do
assert Evalixatir.integer?("0") == true
end
test "valid 3 digits integer" do
assert Evalixatir.integer?("123") == true
end
test "valid negative integer" do
assert Evalixatir.integer?("-123") == tr... | 25.123077 | 78 | 0.683405 |
287500cecc558a8a8a476b5b53be5ffc062fd356 | 551 | ex | Elixir | test/ahab_test_modules.ex | jquadrino/ahab | cc3ba1fb5c043f19b233d3fed01199b3ea1a8bcf | [
"Apache-2.0"
] | 2 | 2019-07-09T18:18:54.000Z | 2020-01-18T10:30:34.000Z | test/ahab_test_modules.ex | jquadrino/ahab | cc3ba1fb5c043f19b233d3fed01199b3ea1a8bcf | [
"Apache-2.0"
] | null | null | null | test/ahab_test_modules.ex | jquadrino/ahab | cc3ba1fb5c043f19b233d3fed01199b3ea1a8bcf | [
"Apache-2.0"
] | null | null | null | defmodule Ahab.TestModule do
def start_link do
pid = spawn_link(__MODULE__, :init, [])
{:ok, pid}
end
def init do
{:ok, socket} = Ahab.init_ack
loop(socket)
end
def loop(socket) do
case :gen_tcp.recv(socket, 0) do
{:ok, "exit"} ->
exit("test called exit")
{:ok, msg} ... | 17.774194 | 43 | 0.575318 |
28750aa37ea82808ad686597c7daf7a8dc223cb4 | 469 | exs | Elixir | test/models/section_test.exs | emanchado/cataloger | 4ecd08e26017fd19b1a26196e87604b3d973b6be | [
"BSD-3-Clause"
] | 2 | 2016-08-07T12:27:07.000Z | 2017-07-19T22:28:36.000Z | test/models/section_test.exs | emanchado/cataloger | 4ecd08e26017fd19b1a26196e87604b3d973b6be | [
"BSD-3-Clause"
] | null | null | null | test/models/section_test.exs | emanchado/cataloger | 4ecd08e26017fd19b1a26196e87604b3d973b6be | [
"BSD-3-Clause"
] | 1 | 2018-11-22T03:08:25.000Z | 2018-11-22T03:08:25.000Z | defmodule Cataloger.SectionTest do
use Cataloger.ModelCase
alias Cataloger.Section
@valid_attrs %{cover_image_path: "some content", name: "some content"}
@invalid_attrs %{}
test "changeset with valid attributes" do
changeset = Section.changeset(%Section{}, @valid_attrs)
assert changeset.valid?
en... | 24.684211 | 72 | 0.73774 |
28752269a7832b1b5183327a76a0449a3cc94f83 | 1,187 | ex | Elixir | web/channels/user_socket.ex | gilacost/task_manager | 550d8ce603b555f017dd689a2db6819b85ddbbd1 | [
"MIT"
] | null | null | null | web/channels/user_socket.ex | gilacost/task_manager | 550d8ce603b555f017dd689a2db6819b85ddbbd1 | [
"MIT"
] | null | null | null | web/channels/user_socket.ex | gilacost/task_manager | 550d8ce603b555f017dd689a2db6819b85ddbbd1 | [
"MIT"
] | null | null | null | defmodule HomeWorkManager.UserSocket do
use Phoenix.Socket
## Channels
# channel "rooms:*", PhoenixTrello.RoomChannel
## Transports
transport :websocket, Phoenix.Transports.WebSocket
# transport :longpoll, Phoenix.Transports.LongPoll
# Socket params are passed from the client and can
# be used to ver... | 31.236842 | 86 | 0.706824 |
28753fae7c9698a0dee111cebe549f8dae8c7c95 | 5,081 | ex | Elixir | lib/codes/codes_d68.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_d68.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_d68.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | defmodule IcdCode.ICDCode.Codes_D68 do
alias IcdCode.ICDCode
def _D680 do
%ICDCode{full_code: "D680",
category_code: "D68",
short_code: "0",
full_name: "Von Willebrand's disease",
short_name: "Von Willebrand's disease",
category_name: "Von Willebrand's disease"
... | 33.649007 | 124 | 0.625467 |
28755e4e13774a82425c58c10a32f0fe1e8dfbe9 | 1,152 | ex | Elixir | lib/example/application.ex | BenSchZA/kawapi-phoenix | 5ed91b1d30d91bcc85c5f120d18691d236a41e88 | [
"MIT"
] | 1 | 2020-12-18T17:23:31.000Z | 2020-12-18T17:23:31.000Z | lib/example/application.ex | BenSchZA/kawapi-phoenix | 5ed91b1d30d91bcc85c5f120d18691d236a41e88 | [
"MIT"
] | null | null | null | lib/example/application.ex | BenSchZA/kawapi-phoenix | 5ed91b1d30d91bcc85c5f120d18691d236a41e88 | [
"MIT"
] | null | null | null | defmodule Example.Endpoint do
use GRPC.Endpoint
intercept GRPC.Logger.Server
run Example.Grpc.Server
end
defmodule Example.Application do
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
use Application
import Supervisor.Spec, warn: false
... | 28.097561 | 69 | 0.722222 |
287572967cb568486a18ba95d54e9d0148c9ef18 | 218 | ex | Elixir | lib/chat_api_web/controllers/page_controller.ex | raditya3/papercups | 4657b258ee381ac0b7517e57e4d6261ce94b5871 | [
"MIT"
] | 1 | 2021-01-18T09:57:23.000Z | 2021-01-18T09:57:23.000Z | lib/chat_api_web/controllers/page_controller.ex | raditya3/papercups | 4657b258ee381ac0b7517e57e4d6261ce94b5871 | [
"MIT"
] | 1 | 2021-01-17T10:42:34.000Z | 2021-01-17T10:42:34.000Z | lib/chat_api_web/controllers/page_controller.ex | raditya3/papercups | 4657b258ee381ac0b7517e57e4d6261ce94b5871 | [
"MIT"
] | null | null | null | defmodule ChatApiWeb.PageController do
use ChatApiWeb, :controller
@spec index(Plug.Conn.t(), map()) :: Plug.Conn.t()
def index(conn, _params) do
html(conn, File.read!("./priv/static/index.html"))
end
end
| 24.222222 | 54 | 0.688073 |
2875a6035fe674cbf2a6ea965b2fd0e459f9e3b5 | 3,345 | exs | Elixir | test/credo/check/consistency/parameter_pattern_matching_test.exs | sevenseacat/credo | 48837401040d9c2340b5fb9c7d786d31f89f6426 | [
"MIT"
] | null | null | null | test/credo/check/consistency/parameter_pattern_matching_test.exs | sevenseacat/credo | 48837401040d9c2340b5fb9c7d786d31f89f6426 | [
"MIT"
] | null | null | null | test/credo/check/consistency/parameter_pattern_matching_test.exs | sevenseacat/credo | 48837401040d9c2340b5fb9c7d786d31f89f6426 | [
"MIT"
] | null | null | null | defmodule Credo.Check.Readability.ParameterPatternMatchingTest do
use Credo.TestHelper
@described_check Credo.Check.Consistency.ParameterPatternMatching
@left_and_right_mix """
defmodule Credo.Sample do
defmodule InlineModule do
def list_after([bar, baz] = foo), do: :ok
def struct_before(foo = %User{... | 22.910959 | 125 | 0.650224 |
2875cc46c45efea458af361ca53d4cfdbe79404a | 1,852 | ex | Elixir | clients/content/lib/google_api/content/v2/model/accounts_custom_batch_response.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/model/accounts_custom_batch_response.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/model/accounts_custom_batch_response.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... | 37.04 | 190 | 0.74892 |
2875ea12c65b66c4935f30ae47bf9a69661cb3dc | 2,175 | ex | Elixir | lib/crawly/fetchers/splash.ex | m4hi2/crawly | b9e1bfffcc97e978023924e7aad53fc8a223aebf | [
"Apache-2.0"
] | null | null | null | lib/crawly/fetchers/splash.ex | m4hi2/crawly | b9e1bfffcc97e978023924e7aad53fc8a223aebf | [
"Apache-2.0"
] | null | null | null | lib/crawly/fetchers/splash.ex | m4hi2/crawly | b9e1bfffcc97e978023924e7aad53fc8a223aebf | [
"Apache-2.0"
] | null | null | null | defmodule Crawly.Fetchers.Splash do
@moduledoc """
Implements Crawly.Fetchers.Fetcher behavior for Splash Javascript rendering.
Splash is a lightweight QT based Javascript rendering engine. See:
https://splash.readthedocs.io/
Splash exposes the render.html endpoint which renders incoming requests sent
wit... | 31.521739 | 87 | 0.656092 |
2876171c967f66f1882c4161b93418eb137b6339 | 640 | exs | Elixir | accumulate/accumulate.exs | RamanBut-Husaim/exercism.elixir | 683bb3b5700945dbbebcedf26d37208d4201ef49 | [
"MIT"
] | null | null | null | accumulate/accumulate.exs | RamanBut-Husaim/exercism.elixir | 683bb3b5700945dbbebcedf26d37208d4201ef49 | [
"MIT"
] | null | null | null | accumulate/accumulate.exs | RamanBut-Husaim/exercism.elixir | 683bb3b5700945dbbebcedf26d37208d4201ef49 | [
"MIT"
] | null | null | null | defmodule Accumulate do
@doc """
Given a list and a function, apply the function to each list item and
replace it with the function's return value.
Returns a list.
## Examples
iex> Accumulate.accumulate([], fn(x) -> x * 2 end)
[]
iex> Accumulate.accumulate([1, 2, 3], fn(x) -> x *... | 20.645161 | 73 | 0.596875 |
28761e9a899355f724250f055d04b7e5f83092fc | 827 | ex | Elixir | lib/banchan_web/live/studio_live/components/tab_button.ex | riamaria/banchan | c4f8bd9374acaf0a8bb2c501e2ae1eb78f96579f | [
"BlueOak-1.0.0",
"Apache-2.0"
] | null | null | null | lib/banchan_web/live/studio_live/components/tab_button.ex | riamaria/banchan | c4f8bd9374acaf0a8bb2c501e2ae1eb78f96579f | [
"BlueOak-1.0.0",
"Apache-2.0"
] | null | null | null | lib/banchan_web/live/studio_live/components/tab_button.ex | riamaria/banchan | c4f8bd9374acaf0a8bb2c501e2ae1eb78f96579f | [
"BlueOak-1.0.0",
"Apache-2.0"
] | null | null | null | defmodule BanchanWeb.StudioLive.Components.TabButton do
@moduledoc """
Component for the tab links in the Studio page.
"""
use BanchanWeb, :component
alias Surface.Components.LiveRedirect
prop studio, :struct, required: true
prop tab_name, :atom, required: true
prop current_tab, :atom, required: true
... | 23.628571 | 55 | 0.605804 |
28764bf8ad3a344e51103006c0c229bbf8a6f8fc | 2,049 | exs | Elixir | test/lib/absinthe/phase/document/validation/lone_anonymous_operation_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/lone_anonymous_operation_test.exs | bruce/absinthe | 19b63d3aaa9fb75aad01ffd5e91d89e0b30d7f91 | [
"MIT"
] | null | null | null | test/lib/absinthe/phase/document/validation/lone_anonymous_operation_test.exs | bruce/absinthe | 19b63d3aaa9fb75aad01ffd5e91d89e0b30d7f91 | [
"MIT"
] | null | null | null | defmodule Absinthe.Phase.Document.Validation.LoneAnonymousOperationTest do
use Absinthe.Case, async: true
@rule Absinthe.Phase.Document.Validation.LoneAnonymousOperation
use Support.Harness.Validation
alias Absinthe.Blueprint
defp anon_not_alone(line) do
bad_value(
Blueprint.Document.Operation,
... | 16.392 | 74 | 0.450464 |
287665b0b267558be12ac140d744bb958d02a1b2 | 717 | ex | Elixir | web/controllers/session_controller.ex | av-ast/scrawler | 4fe7e59dd35aad977fa0d73b400461bcccfe727e | [
"MIT"
] | null | null | null | web/controllers/session_controller.ex | av-ast/scrawler | 4fe7e59dd35aad977fa0d73b400461bcccfe727e | [
"MIT"
] | null | null | null | web/controllers/session_controller.ex | av-ast/scrawler | 4fe7e59dd35aad977fa0d73b400461bcccfe727e | [
"MIT"
] | null | null | null | defmodule Scrawler.SessionController do
use Scrawler.Web, :controller
alias Passport.Session
def new(conn, _) do
conn
|> render(:new)
end
def create(conn, %{"session" => %{"email" => email, "password" => pass}}) do
case Session.login(conn, email, pass) do
{:ok, conn} ->
conn
|> ... | 23.129032 | 78 | 0.603905 |
2876c384bae2c3a71bbd2b5c65e44df7de903cbf | 958 | exs | Elixir | test/milkpotion/base/url_test.exs | croesnick/milkpotion | a9e776cb612924cef9f98c616aa25d031e772687 | [
"MIT"
] | 1 | 2017-01-20T05:29:22.000Z | 2017-01-20T05:29:22.000Z | test/milkpotion/base/url_test.exs | croesnick/milkpotion | a9e776cb612924cef9f98c616aa25d031e772687 | [
"MIT"
] | null | null | null | test/milkpotion/base/url_test.exs | croesnick/milkpotion | a9e776cb612924cef9f98c616aa25d031e772687 | [
"MIT"
] | null | null | null | defmodule Milkpotion.Base.UrlTest do
use ExUnit.Case
alias Milkpotion.Base.Url
def query_dict_from_uri(uri) do
uri
|> URI.parse
|> Map.fetch!(:query)
|> URI.decode_query
end
test "rest/2" do
uri = Url.rest("test.method", "sample_token")
assert %{"method" => "test.method",
... | 26.611111 | 70 | 0.526096 |
2876cf501c9e313b8b7222fdd6a06152a010fc13 | 8,246 | exs | Elixir | lib/elixir/test/elixir/dict_test.exs | MSch/elixir | fc42dc9bb76ec1fdcfcbdbfb11fea6a845a62fca | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/dict_test.exs | MSch/elixir | fc42dc9bb76ec1fdcfcbdbfb11fea6a845a62fca | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/dict_test.exs | MSch/elixir | fc42dc9bb76ec1fdcfcbdbfb11fea6a845a62fca | [
"Apache-2.0"
] | null | null | null | Code.require_file "test_helper.exs", __DIR__
defmodule DictTest.Common do
defmacro __using__(module) do
quote location: :keep do
# Most underlying Dict implementations have no key order guarantees,
# sort them before we compare:
defmacrop dicts_equal(actual, expected) do
quote do
... | 32.085603 | 78 | 0.586224 |
2876e596b6b8668c8bd4b8d4e227da85fc7d993c | 1,653 | ex | Elixir | clients/docs/lib/google_api/docs/v1/model/footer.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/docs/lib/google_api/docs/v1/model/footer.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/docs/lib/google_api/docs/v1/model/footer.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... | 31.788462 | 125 | 0.715064 |
2877079a47d59f65454ff7ac2d3ba4b61e3faeb6 | 111 | ex | Elixir | lib/metrics.ex | miguelcoba/metrics | 0e008f550ca0c346b14d59b65b0d2223dcca5a8c | [
"MIT"
] | 1 | 2022-02-24T14:06:38.000Z | 2022-02-24T14:06:38.000Z | lib/metrics.ex | miguelcoba/metrics | 0e008f550ca0c346b14d59b65b0d2223dcca5a8c | [
"MIT"
] | null | null | null | lib/metrics.ex | miguelcoba/metrics | 0e008f550ca0c346b14d59b65b0d2223dcca5a8c | [
"MIT"
] | null | null | null | defmodule Metrics do
def emit(value) do
:telemetry.execute([:metrics, :emit], %{value: value})
end
end
| 18.5 | 58 | 0.675676 |
287717ff8978154b0d72376161bd75f17e42b748 | 981 | ex | Elixir | blog/lib/blog.ex | xymbol/otp-examples | daa9bc1392d4324d2aa9f37657b205f9b1dfa447 | [
"MIT"
] | 6 | 2017-04-17T22:19:53.000Z | 2019-05-14T09:49:22.000Z | blog/lib/blog.ex | xymbol/otp-examples | daa9bc1392d4324d2aa9f37657b205f9b1dfa447 | [
"MIT"
] | null | null | null | blog/lib/blog.ex | xymbol/otp-examples | daa9bc1392d4324d2aa9f37657b205f9b1dfa447 | [
"MIT"
] | null | null | null | defmodule Blog do
use Application
# See http://elixir-lang.org/docs/stable/elixir/Application.html
# for more information on OTP Applications
def start(_type, _args) do
import Supervisor.Spec
# Define workers and child supervisors to be supervised
children = [
# Start the endpoint when the a... | 31.645161 | 82 | 0.70948 |
287755718ff75fb9dea10c4b3162aea1a34b06b0 | 2,072 | ex | Elixir | clients/slides/lib/google_api/slides/v1/model/solid_fill.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/slides/lib/google_api/slides/v1/model/solid_fill.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/slides/lib/google_api/slides/v1/model/solid_fill.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... | 34.533333 | 120 | 0.715734 |
2877654fc99bfe093cf4132512e70570de2fca26 | 1,280 | exs | Elixir | mix.exs | TeachersPayTeachers/goth | 8b6f974af2c6973f0d096112a57f7a8e631858dc | [
"MIT"
] | null | null | null | mix.exs | TeachersPayTeachers/goth | 8b6f974af2c6973f0d096112a57f7a8e631858dc | [
"MIT"
] | null | null | null | mix.exs | TeachersPayTeachers/goth | 8b6f974af2c6973f0d096112a57f7a8e631858dc | [
"MIT"
] | null | null | null | defmodule Goth.Mixfile do
use Mix.Project
def project do
[
app: :goth,
version: "0.9.0",
description: description(),
package: package(),
elixirc_paths: elixirc_paths(Mix.env()),
elixirc_options: [warnings_as_errors: true],
elixir: "~> 1.4",
deps: deps()
]
e... | 23.272727 | 103 | 0.535938 |
287778bbc188874580428a4156db73dd87d8ba85 | 1,023 | ex | Elixir | apps/admin_api/lib/admin_api/v1/views/wallet_view.ex | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 322 | 2018-02-28T07:38:44.000Z | 2020-05-27T23:09:55.000Z | apps/admin_api/lib/admin_api/v1/views/wallet_view.ex | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 643 | 2018-02-28T12:05:20.000Z | 2020-05-22T08:34:38.000Z | apps/admin_api/lib/admin_api/v1/views/wallet_view.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 ... | 33 | 74 | 0.742913 |
28779b4bc2766ce5fa3eb342624e20f416ade03c | 7,356 | ex | Elixir | apps/omg_status/lib/omg_status/metric/event.ex | omisego/elixir-omg | 2c68973d8f29033d137f63a6e060f12e2a7dcd59 | [
"Apache-2.0"
] | 177 | 2018-08-24T03:51:02.000Z | 2020-05-30T13:29:25.000Z | apps/omg_status/lib/omg_status/metric/event.ex | omisego/elixir-omg | 2c68973d8f29033d137f63a6e060f12e2a7dcd59 | [
"Apache-2.0"
] | 1,042 | 2018-08-25T00:52:39.000Z | 2020-06-01T05:15:17.000Z | apps/omg_status/lib/omg_status/metric/event.ex | omisego/elixir-omg | 2c68973d8f29033d137f63a6e060f12e2a7dcd59 | [
"Apache-2.0"
] | 47 | 2018-08-24T12:06:33.000Z | 2020-04-28T11:49:25.000Z | # Copyright 2019-2020 OMG Network Pte Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | 59.322581 | 133 | 0.809407 |
2877b15a2489c16db1a229867faeccf2c5c42401 | 11,576 | ex | Elixir | lib/mimic.ex | moskyb/mimic | c52f4d9eed0790e955b7bcc85fa5ee4de21b8c89 | [
"Apache-2.0"
] | null | null | null | lib/mimic.ex | moskyb/mimic | c52f4d9eed0790e955b7bcc85fa5ee4de21b8c89 | [
"Apache-2.0"
] | null | null | null | lib/mimic.ex | moskyb/mimic | c52f4d9eed0790e955b7bcc85fa5ee4de21b8c89 | [
"Apache-2.0"
] | null | null | null | defmodule Mimic do
@moduledoc """
Mimic is a library that simplifies the usage of mocks in Elixir.
Mimic is mostly API compatible with [mox](https://hex.pm/packages/mox) but
doesn't require explicit contract checking with behaviours. It's also faster.
You're welcome.
Mimic works by copying your module ou... | 26.858469 | 96 | 0.666724 |
2877bc469c88310d1f36aaf104190151e84c1111 | 422 | ex | Elixir | apps/core/lib/core/manual_merge/manual_merge_candidate.ex | ehealth-ua/ehealth.api | 4ffe26a464fe40c95fb841a4aa2e147068f65ca2 | [
"Apache-2.0"
] | 8 | 2019-06-14T11:34:49.000Z | 2021-08-05T19:14:24.000Z | apps/core/lib/core/manual_merge/manual_merge_candidate.ex | edenlabllc/ehealth.api.public | 4ffe26a464fe40c95fb841a4aa2e147068f65ca2 | [
"Apache-2.0"
] | 1 | 2019-07-08T15:20:22.000Z | 2019-07-08T15:20:22.000Z | apps/core/lib/core/manual_merge/manual_merge_candidate.ex | ehealth-ua/ehealth.api | 4ffe26a464fe40c95fb841a4aa2e147068f65ca2 | [
"Apache-2.0"
] | 6 | 2018-05-11T13:59:32.000Z | 2022-01-19T20:15:22.000Z | defmodule Core.ManualMerge.ManualMergeCandidate do
@moduledoc false
use Ecto.Schema
alias Core.ManualMerge.MergeCandidate
alias Ecto.UUID
embedded_schema do
field(:status, :string)
field(:decision, :string)
field(:assignee_id, UUID)
field(:person_id, UUID)
field(:master_person_id, UUID)... | 21.1 | 50 | 0.739336 |
2877bf9c53ea8b4dbfd4188e07b48681deeb9e98 | 888 | ex | Elixir | clients/tool_results/lib/google_api/tool_results/v1/metadata.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/tool_results/lib/google_api/tool_results/v1/metadata.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/tool_results/lib/google_api/tool_results/v1/metadata.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 32.888889 | 74 | 0.760135 |
28780798e09ab37d1f533d93064e853fe0036432 | 5,765 | exs | Elixir | test/poll_sip_test.exs | Euklidian-Space/poll-sip | ac074f8b271f3f9e1aede17b1ed70b464e1f6ea0 | [
"MIT"
] | null | null | null | test/poll_sip_test.exs | Euklidian-Space/poll-sip | ac074f8b271f3f9e1aede17b1ed70b464e1f6ea0 | [
"MIT"
] | null | null | null | test/poll_sip_test.exs | Euklidian-Space/poll-sip | ac074f8b271f3f9e1aede17b1ed70b464e1f6ea0 | [
"MIT"
] | null | null | null | defmodule PollSipTest do
use ExUnit.Case, async: true
alias PollSip.{PollWorker}
import PollSip.TestHelpers
setup do
cand_map = Enum.reduce(1..5, %{}, fn _, m ->
[name, data] = generate_name_and_data()
Map.put_new(m, name, data)
end)
candidates = Enum.map(1..10, fn _ -> Faker.Name.... | 27.985437 | 94 | 0.633651 |
28782bb605cf8ea15b663475207f4be19505a4bb | 361 | ex | Elixir | lib/hl7/2.3.1/segments/al1.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | lib/hl7/2.3.1/segments/al1.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | lib/hl7/2.3.1/segments/al1.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | defmodule HL7.V2_3_1.Segments.AL1 do
@moduledoc false
require Logger
alias HL7.V2_3_1.{DataTypes}
use HL7.Segment,
fields: [
segment: nil,
set_id_al1: nil,
allergy_type: nil,
allergy_code_mnemonic_description: DataTypes.Ce,
allergy_severity: nil,
allergy_reaction: nil,
... | 20.055556 | 54 | 0.67867 |
2878837e79acda677e0603c3a3d1f701da3cde00 | 30 | ex | Elixir | testData/org/elixir_lang/parser_definition/interpolated_string_sigil_line_parsing_test_case/SigilModifiers.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 1,668 | 2015-01-03T05:54:27.000Z | 2022-03-25T08:01:20.000Z | testData/org/elixir_lang/parser_definition/interpolated_string_sigil_line_parsing_test_case/SigilModifiers.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 2,018 | 2015-01-01T22:43:39.000Z | 2022-03-31T20:13:08.000Z | testData/org/elixir_lang/parser_definition/interpolated_string_sigil_line_parsing_test_case/SigilModifiers.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 145 | 2015-01-15T11:37:16.000Z | 2021-12-22T05:51:02.000Z | ~s{}abcdefghijklmnopqrstuvwxyz | 30 | 30 | 0.9 |
2878a20a80a02848c90b3ab4dbae56e20ebcfee2 | 1,692 | ex | Elixir | vue_fire/web/web.ex | hectorip/VuePhoenix | 2bd5ff6de9811d373c260a1eda60d6809d472d15 | [
"Apache-2.0"
] | 1 | 2016-08-30T17:14:49.000Z | 2016-08-30T17:14:49.000Z | vue_fire/web/web.ex | hectorip/VuePhoenix | 2bd5ff6de9811d373c260a1eda60d6809d472d15 | [
"Apache-2.0"
] | null | null | null | vue_fire/web/web.ex | hectorip/VuePhoenix | 2bd5ff6de9811d373c260a1eda60d6809d472d15 | [
"Apache-2.0"
] | null | null | null | defmodule VueFire.Web do
@moduledoc """
A module that keeps using definitions for controllers,
views and so on.
This can be used in your application as:
use VueFire.Web, :controller
use VueFire.Web, :view
The definitions below will be executed for every view,
controller, etc, so keep them sho... | 20.634146 | 88 | 0.660165 |
2878b5b93fc14703f57c40fadf49faf3f8e061b8 | 1,831 | ex | Elixir | clients/content/lib/google_api/content/v21/model/collection_featured_product.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v21/model/collection_featured_product.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v21/model/collection_featured_product.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... | 34.54717 | 120 | 0.716548 |
2878b70102f8f57de712ea5e0e2300c37cef5762 | 527 | ex | Elixir | lib/edgedb/protocol/datatypes/uint64.ex | nsidnev/edgedb-elixir | bade2b9daba2e83bfaa5915b2addb74f41610968 | [
"MIT"
] | 30 | 2021-05-19T08:54:44.000Z | 2022-03-11T22:52:25.000Z | lib/edgedb/protocol/datatypes/uint64.ex | nsidnev/edgedb-elixir | bade2b9daba2e83bfaa5915b2addb74f41610968 | [
"MIT"
] | 3 | 2021-11-17T21:26:01.000Z | 2022-03-12T09:49:25.000Z | lib/edgedb/protocol/datatypes/uint64.ex | nsidnev/edgedb-elixir | bade2b9daba2e83bfaa5915b2addb74f41610968 | [
"MIT"
] | 3 | 2021-08-29T14:55:41.000Z | 2022-03-12T01:30:35.000Z | defmodule EdgeDB.Protocol.Datatypes.UInt64 do
use EdgeDB.Protocol.Datatype
@uint64_max 0xFFFFFFFFFFFFFFFF
@uint64_min 0x0
defguard is_uint64(number)
when is_integer(number) and @uint64_min <= number and number <= @uint64_max
defdatatype(type: non_neg_integer())
@impl EdgeDB.Protocol.Datatype
... | 23.954545 | 86 | 0.734345 |
2878ebf110dc740960c72d7e968c81469bfd4903 | 1,852 | exs | Elixir | clients/redis/mix.exs | jamesvl/elixir-google-api | 6c87fb31d996f08fb42ce6066317e9d652a87acc | [
"Apache-2.0"
] | null | null | null | clients/redis/mix.exs | jamesvl/elixir-google-api | 6c87fb31d996f08fb42ce6066317e9d652a87acc | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/redis/mix.exs | myskoach/elixir-google-api | 4f8cbc2fc38f70ffc120fd7ec48e27e46807b563 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 27.641791 | 124 | 0.655508 |
28791fce267f7b4dd775cfa4080acd13da93ace8 | 828 | ex | Elixir | lib/ex_neo4j/model/serializer.ex | raw1z/ex_neo4j | afb778f56ff65c63ceb848b8debe9c3e8b3a375e | [
"MIT"
] | 2 | 2015-07-28T16:12:56.000Z | 2015-10-09T21:21:16.000Z | lib/ex_neo4j/model/serializer.ex | raw1z/ex_neo4j | afb778f56ff65c63ceb848b8debe9c3e8b3a375e | [
"MIT"
] | 1 | 2015-11-01T16:14:34.000Z | 2015-11-02T10:35:48.000Z | lib/ex_neo4j/model/serializer.ex | raw1z/ex_neo4j | afb778f56ff65c63ceb848b8debe9c3e8b3a375e | [
"MIT"
] | null | null | null | defmodule ExNeo4j.Model.Serializer do
alias ExNeo4j.SerializationBuffer
def serialize(module, models) when is_list(models) do
if Enum.count(models) > 0 do
Enum.reduce models, %{}, fn (model, acc) ->
SerializationBuffer.add_model(acc, module, model)
end
else
resource_name = Seriali... | 26.709677 | 64 | 0.700483 |
28795789ecf4e5ebe669767a8b31cc5ce7ccb682 | 1,750 | ex | Elixir | core/metrics/aggregate_strategy/time_distribution.ex | IvanPereyra-23/PaaS | 0179c7b57645473308b0a295a70b6284ed220fbf | [
"Apache-2.0"
] | 1 | 2020-08-27T18:43:11.000Z | 2020-08-27T18:43:11.000Z | core/metrics/aggregate_strategy/time_distribution.ex | IvanPereyra-23/PaaS | 0179c7b57645473308b0a295a70b6284ed220fbf | [
"Apache-2.0"
] | null | null | null | core/metrics/aggregate_strategy/time_distribution.ex | IvanPereyra-23/PaaS | 0179c7b57645473308b0a295a70b6284ed220fbf | [
"Apache-2.0"
] | 1 | 2020-08-27T18:43:21.000Z | 2020-08-27T18:43:21.000Z | # Copyright(c) 2015-2020 ACCESS CO., LTD. All rights reserved.
use Croma
alias AntikytheraCore.Metrics.AggregateStrategy, as: Strategy
defmodule Strategy.TimeDistribution do
@moduledoc """
Aggregate strategy for time distribution (such as response times).
This calculates the following values from time durations... | 30.172414 | 99 | 0.663429 |
28795e3ba0fbcd725c4082362f54ac7a14aaac0a | 22,767 | ex | Elixir | lib/scenic/view_port/input.ex | PragTob/scenic | 7e5193c2a0b86768937e5bbd7c22f00544d26048 | [
"Apache-2.0"
] | null | null | null | lib/scenic/view_port/input.ex | PragTob/scenic | 7e5193c2a0b86768937e5bbd7c22f00544d26048 | [
"Apache-2.0"
] | null | null | null | lib/scenic/view_port/input.ex | PragTob/scenic | 7e5193c2a0b86768937e5bbd7c22f00544d26048 | [
"Apache-2.0"
] | null | null | null | #
# Created by Boyd Multerer on 11/05/17.
# Rewritten: 3/25/2018
# Copyright © 2017 Kry10 Industries. All rights reserved.
#
# The main helpers and organizers for input
# resizing is temporarily not supported
defmodule Scenic.ViewPort.Input do
@moduledoc false
alias Scenic.Scene
alias Scenic.ViewPort.Contex... | 30.356 | 97 | 0.534897 |
28796877c28851fc1c596709e8de8a1e6b1ad7e2 | 1,436 | exs | Elixir | test/skroutz/notification_test.exs | skroutz/skroutz.ex | d0915212f1bfd6a7c2a721cf4d50e80939f71947 | [
"MIT"
] | 10 | 2016-02-22T08:23:00.000Z | 2020-02-12T12:42:18.000Z | test/skroutz/notification_test.exs | skroutz/skroutz.ex | d0915212f1bfd6a7c2a721cf4d50e80939f71947 | [
"MIT"
] | null | null | null | test/skroutz/notification_test.exs | skroutz/skroutz.ex | d0915212f1bfd6a7c2a721cf4d50e80939f71947 | [
"MIT"
] | 1 | 2020-02-12T12:42:21.000Z | 2020-02-12T12:42:21.000Z | defmodule Skroutz.NotificationTest do
use ExUnit.Case
use ExVCR.Mock, adapter: ExVCR.Adapter.Hackney
alias Skroutz.Notification
setup_all do
token = "token"
{:ok, skroutz} = Skroutz.new(token)
{:ok, [skroutz: skroutz, notification_id: 179498022]}
end
test "all returns a Map", context do
... | 26.592593 | 89 | 0.663649 |
287971f9e1a86248a2fce282a9fe6952bc4771a1 | 994 | exs | Elixir | apps/api/mix.exs | omgnetwork/omg-childchain-v2 | 31cc9cf9e42718fc3b9bd6668f24a627cac80b4f | [
"Apache-2.0"
] | 4 | 2020-11-30T17:38:57.000Z | 2021-01-23T21:29:41.000Z | apps/api/mix.exs | omgnetwork/omg-childchain-v2 | 31cc9cf9e42718fc3b9bd6668f24a627cac80b4f | [
"Apache-2.0"
] | 24 | 2020-11-30T17:32:48.000Z | 2021-02-22T06:25:22.000Z | apps/api/mix.exs | omgnetwork/omg-childchain-v2 | 31cc9cf9e42718fc3b9bd6668f24a627cac80b4f | [
"Apache-2.0"
] | null | null | null | defmodule API.MixProject do
use Mix.Project
def project do
[
app: :api,
version: "0.1.0",
build_path: "../../_build",
config_path: "../../config/config.exs",
deps_path: "../../deps",
lockfile: "../../mix.lock",
elixir: "~> 1.10",
start_permanent: Mix.env() == :pr... | 24.243902 | 94 | 0.531187 |
28798374e70325da9a4b1a983c36704aa09115ab | 611 | ex | Elixir | installer/lib/mix/tasks/local.phx.ex | Douvi/phoenix | 7832e45e056a48f9dd4bd8178d6c6b0569f19194 | [
"MIT"
] | null | null | null | installer/lib/mix/tasks/local.phx.ex | Douvi/phoenix | 7832e45e056a48f9dd4bd8178d6c6b0569f19194 | [
"MIT"
] | null | null | null | installer/lib/mix/tasks/local.phx.ex | Douvi/phoenix | 7832e45e056a48f9dd4bd8178d6c6b0569f19194 | [
"MIT"
] | null | null | null | defmodule Mix.Tasks.Local.Phx do
use Mix.Task
@shortdoc "Updates the Phoenix project generator locally"
@moduledoc """
Updates the Phoenix project generator locally.
mix local.phx
Accepts the same command line options as `archive.install hex phx_new`.
*Note: Older versions of this task (up to and... | 29.095238 | 83 | 0.713584 |
287992d751c12779259b19eccf6df98e57cea584 | 864 | ex | Elixir | lib/temple/parser/slot.ex | mhanberg/temple | ec484bcef65e1bffa9134c3b259795237c1845d0 | [
"MIT"
] | 366 | 2019-07-12T22:43:35.000Z | 2022-03-31T07:26:25.000Z | lib/temple/parser/slot.ex | mhanberg/temple | ec484bcef65e1bffa9134c3b259795237c1845d0 | [
"MIT"
] | 114 | 2019-07-12T19:49:10.000Z | 2022-03-23T10:48:48.000Z | lib/temple/parser/slot.ex | mhanberg/temple | ec484bcef65e1bffa9134c3b259795237c1845d0 | [
"MIT"
] | 17 | 2019-07-23T15:16:34.000Z | 2021-02-25T02:42:02.000Z | defmodule Temple.Parser.Slot do
@moduledoc false
@behaviour Temple.Parser
alias Temple.Parser.Utils
defstruct name: nil, args: []
@impl true
def applicable?({:slot, _, _}) do
true
end
def applicable?(_), do: false
@impl true
def run({:slot, _, [slot_name | rest]}) do
args =
case re... | 20.093023 | 79 | 0.572917 |
2879c4a327dee4df0ad4c93e34f6e46079d609d6 | 198 | ex | Elixir | lib/app_web/controllers/admin/ips_controller.ex | vsyrovat/inn-checker | 03cb3f282af598c7d62ea96c483540edead4ba1e | [
"MIT"
] | null | null | null | lib/app_web/controllers/admin/ips_controller.ex | vsyrovat/inn-checker | 03cb3f282af598c7d62ea96c483540edead4ba1e | [
"MIT"
] | null | null | null | lib/app_web/controllers/admin/ips_controller.ex | vsyrovat/inn-checker | 03cb3f282af598c7d62ea96c483540edead4ba1e | [
"MIT"
] | null | null | null | defmodule AppWeb.Admin.IpsController do
use AppWeb, :controller
alias App.Banhammer
def index(conn, _params) do
ips = Banhammer.all()
render(conn, "ips.html", %{ips: ips})
end
end
| 18 | 41 | 0.686869 |
2879cec3ad4274107cda57ebf883615169745ac8 | 2,572 | ex | Elixir | lib/cadet/auth/providers/github.ex | source-academy/backend | 0074e1ab846a091ba3bbfbfb76660498b3e4b4be | [
"Apache-2.0"
] | 3 | 2021-08-15T23:57:32.000Z | 2022-02-02T06:50:55.000Z | lib/cadet/auth/providers/github.ex | source-academy/backend | 0074e1ab846a091ba3bbfbfb76660498b3e4b4be | [
"Apache-2.0"
] | 76 | 2021-07-05T07:13:52.000Z | 2022-03-28T07:23:11.000Z | lib/cadet/auth/providers/github.ex | source-academy/backend | 0074e1ab846a091ba3bbfbfb76660498b3e4b4be | [
"Apache-2.0"
] | 1 | 2022-03-26T14:27:51.000Z | 2022-03-26T14:27:51.000Z | defmodule Cadet.Auth.Providers.GitHub do
@moduledoc """
Provides identity using GitHub OAuth.
"""
alias Cadet.Auth.Provider
@behaviour Provider
@type config :: %{
clients: %{},
token_url: String.t(),
user_api: String.t()
}
@spec authorise(config(), Provider.code(),... | 30.987952 | 97 | 0.567263 |
2879ed1d33979de597adbe6718942cf0524e6286 | 432 | ex | Elixir | lib/ua_inspector/database/vendor_fragments.ex | elixir-twister/ua_inspector | 70642c66c9562d6879fd462e2f9993edb8ab4ce1 | [
"Apache-2.0"
] | null | null | null | lib/ua_inspector/database/vendor_fragments.ex | elixir-twister/ua_inspector | 70642c66c9562d6879fd462e2f9993edb8ab4ce1 | [
"Apache-2.0"
] | null | null | null | lib/ua_inspector/database/vendor_fragments.ex | elixir-twister/ua_inspector | 70642c66c9562d6879fd462e2f9993edb8ab4ce1 | [
"Apache-2.0"
] | 1 | 2020-01-30T18:55:12.000Z | 2020-01-30T18:55:12.000Z | defmodule UAInspector.Database.VendorFragments do
@moduledoc """
UAInspector vendor fragment information database.
"""
use UAInspector.Database, [
sources: [{ "", "vendorfragments.yml" }],
type: :vendor_fragment
]
alias UAInspector.Util
def to_ets({ brand, regexes }, _type) do
regexes = ... | 19.636364 | 56 | 0.645833 |
287a00ab7c3c8d6797c9a1607f4c12e6ce12a90c | 245 | exs | Elixir | test/day01_test.exs | h-j-k/advent20 | e14d0789987347ec3061302422e008dd5be852fd | [
"Apache-2.0"
] | null | null | null | test/day01_test.exs | h-j-k/advent20 | e14d0789987347ec3061302422e008dd5be852fd | [
"Apache-2.0"
] | null | null | null | test/day01_test.exs | h-j-k/advent20 | e14d0789987347ec3061302422e008dd5be852fd | [
"Apache-2.0"
] | null | null | null | defmodule AdventOfCode.Day01Test do
use ExUnit.Case
import AdventOfCode.{Day01, TestUtils}
@input test_file([to_integer: true])
test "part1", do: assert part1(@input) == 357504
test "part2", do: assert part2(@input) == 12747392
end | 22.272727 | 52 | 0.718367 |
287a082039a0da236434e17396d1411801d54e65 | 1,109 | exs | Elixir | config/prod.secret.template.exs | danielmarreirosdeoliveira/cometoid | 7a1c4f7700eb4dbb5f4c44fdc5185d048a429e50 | [
"Apache-2.0"
] | null | null | null | config/prod.secret.template.exs | danielmarreirosdeoliveira/cometoid | 7a1c4f7700eb4dbb5f4c44fdc5185d048a429e50 | [
"Apache-2.0"
] | null | null | null | config/prod.secret.template.exs | danielmarreirosdeoliveira/cometoid | 7a1c4f7700eb4dbb5f4c44fdc5185d048a429e50 | [
"Apache-2.0"
] | 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
config :cometoid,
views: ["Software"]
config :cometoid, Cometoid.Repo,... | 29.184211 | 67 | 0.721371 |
287a0e8295d58ac18350871d32f0191108f29c89 | 1,533 | ex | Elixir | clients/cloud_iot/lib/google_api/cloud_iot/v1/model/http_config.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/cloud_iot/lib/google_api/cloud_iot/v1/model/http_config.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/cloud_iot/lib/google_api/cloud_iot/v1/model/http_config.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... | 32.617021 | 206 | 0.74364 |
287a12f9329aa777cf86803612a5fb01cebe256d | 124 | exs | Elixir | apps/buzzcms/test/test_helper.exs | buzzcms/buzzcms | 8ca8e6dea381350f94cc4a666448b5dba6676520 | [
"Apache-2.0"
] | null | null | null | apps/buzzcms/test/test_helper.exs | buzzcms/buzzcms | 8ca8e6dea381350f94cc4a666448b5dba6676520 | [
"Apache-2.0"
] | 41 | 2020-02-12T07:53:14.000Z | 2020-03-30T02:18:14.000Z | apps/buzzcms_web/test/test_helper.exs | buzzcms/buzzcms | 8ca8e6dea381350f94cc4a666448b5dba6676520 | [
"Apache-2.0"
] | null | null | null | ExUnit.start()
Ecto.Adapters.SQL.Sandbox.mode(Buzzcms.Repo, :manual)
{:ok, _} = Application.ensure_all_started(:ex_machina)
| 31 | 54 | 0.774194 |
287aa77137f3915d05f126e6d278c3c386a393ff | 8,199 | exs | Elixir | lib/mix/test/mix/tasks/compile.app_test.exs | doughsay/elixir | 7356a47047d0b54517bd6886603f09b1121dde2b | [
"Apache-2.0"
] | 19,291 | 2015-01-01T02:42:49.000Z | 2022-03-31T21:01:40.000Z | lib/mix/test/mix/tasks/compile.app_test.exs | doughsay/elixir | 7356a47047d0b54517bd6886603f09b1121dde2b | [
"Apache-2.0"
] | 8,082 | 2015-01-01T04:16:23.000Z | 2022-03-31T22:08:02.000Z | lib/mix/test/mix/tasks/compile.app_test.exs | doughsay/elixir | 7356a47047d0b54517bd6886603f09b1121dde2b | [
"Apache-2.0"
] | 3,472 | 2015-01-03T04:11:56.000Z | 2022-03-29T02:07:30.000Z | Code.require_file("../../test_helper.exs", __DIR__)
defmodule Mix.Tasks.Compile.AppTest do
use MixTest.Case
defmodule CustomProject do
def project do
[
app: :custom_project,
version: "0.2.0",
description: "Some UTF-8 dëscriptión"
]
end
def application do
[
... | 30.366667 | 146 | 0.615929 |
287aeba3887efe8ac34fb7dc732755fb3223cdcb | 387 | ex | Elixir | web/controllers/avatar_controller.ex | smpallen99/ucx_chat | 0dd98d0eb5e0537521844520ea2ba63a08fd3f19 | [
"MIT"
] | 60 | 2017-05-09T19:08:26.000Z | 2021-01-20T11:09:42.000Z | web/controllers/avatar_controller.ex | smpallen99/ucx_chat | 0dd98d0eb5e0537521844520ea2ba63a08fd3f19 | [
"MIT"
] | 6 | 2017-05-10T15:43:16.000Z | 2020-07-15T07:14:41.000Z | web/controllers/avatar_controller.ex | smpallen99/ucx_chat | 0dd98d0eb5e0537521844520ea2ba63a08fd3f19 | [
"MIT"
] | 10 | 2017-05-10T04:13:54.000Z | 2020-12-28T10:30:27.000Z | defmodule UcxChat.AvatarController do
use UcxChat.Web, :controller
import UcxChat.AvatarService
def show(conn, %{"username" => username}) do
# xml = UcxChat.AvatarService.avatar_initials(username)
conn
|> put_layout(:none)
|> put_resp_content_type("image/svg+xml")
|> render("show.xml", color:... | 27.642857 | 87 | 0.715762 |
287b16e116519cac66dff8d5c0a6d511b4ef9500 | 19,196 | ex | Elixir | lib/elixir/lib/calendar/time.ex | stevedomin/elixir | df1a7d36472a92aedc97c0afe9f782678b7aa7e5 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/calendar/time.ex | stevedomin/elixir | df1a7d36472a92aedc97c0afe9f782678b7aa7e5 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/calendar/time.ex | stevedomin/elixir | df1a7d36472a92aedc97c0afe9f782678b7aa7e5 | [
"Apache-2.0"
] | 8 | 2018-02-20T18:30:53.000Z | 2019-06-18T14:23:31.000Z | defmodule Time do
@moduledoc """
A Time struct and functions.
The Time struct contains the fields hour, minute, second and microseconds.
New times can be built with the `new/4` function or using the
[`~T`](`Kernel.sigil_T/2`) sigil:
iex> ~T[23:00:07.001]
~T[23:00:07.001]
Both `new/4` and sigi... | 29.351682 | 102 | 0.621848 |
287b37407c51ab229e6ed3d6f916a3a0076da1c7 | 319 | ex | Elixir | test/support/counter.ex | primait/auth0_ex | 15ef5d6d91d8fe00ff703a4f58e1cb32bb169a82 | [
"MIT"
] | 5 | 2021-12-01T10:50:40.000Z | 2022-02-15T13:07:02.000Z | test/support/counter.ex | primait/auth0_ex | 15ef5d6d91d8fe00ff703a4f58e1cb32bb169a82 | [
"MIT"
] | 11 | 2021-12-22T09:19:28.000Z | 2022-03-24T06:15:04.000Z | test/support/counter.ex | primait/auth0_ex | 15ef5d6d91d8fe00ff703a4f58e1cb32bb169a82 | [
"MIT"
] | null | null | null | defmodule PrimaAuth0Ex.TestSupport.Counter do
@moduledoc """
A simple counter for testing purposes.
"""
use Agent
def start_link(_opts) do
Agent.start_link(fn -> 0 end)
end
def count(agent) do
Agent.get(agent, & &1)
end
def increment(agent) do
Agent.update(agent, &(&1 + 1))
end
end
| 15.95 | 45 | 0.655172 |
287b43edbadffe4c2bd82fe9d47de2f4be233996 | 1,586 | ex | Elixir | lib/shopify_api/rest/usage_charge.ex | pixelunion/elixir-shopifyapi | d6c57bda6e59006d68ffb16a2a8b80bcc2f1cc96 | [
"Apache-2.0"
] | 18 | 2019-06-07T13:36:39.000Z | 2021-08-03T21:06:36.000Z | lib/shopify_api/rest/usage_charge.ex | pixelunion/elixir-shopifyapi | d6c57bda6e59006d68ffb16a2a8b80bcc2f1cc96 | [
"Apache-2.0"
] | 158 | 2018-08-30T22:09:00.000Z | 2021-09-22T01:18:59.000Z | lib/shopify_api/rest/usage_charge.ex | pixelunion-apps/elixir-shopifyapi | dcc22f8f9edeeb65daa7b9752f7d8896570b5bfb | [
"Apache-2.0"
] | 4 | 2020-09-05T00:48:46.000Z | 2020-09-30T15:53:50.000Z | defmodule ShopifyAPI.REST.UsageCharge do
@moduledoc """
ShopifyAPI REST API UsageCharge resource
"""
alias ShopifyAPI.AuthToken
alias ShopifyAPI.REST
@doc """
Create a usage charge.
## Example
iex> ShopifyAPI.REST.UsageCharge.create(auth, integer, map)
{:ok, %{} = usage_charge}
"""
d... | 22.985507 | 111 | 0.631148 |
287b5845860f996498b6000add19c66928b5fe00 | 492 | ex | Elixir | lib/block_keys.ex | nicocaille/block_keys | 03c4c0dc1528169616706ae97234317f4a7b4d9b | [
"Apache-2.0"
] | 20 | 2019-01-15T20:00:20.000Z | 2021-12-15T02:40:22.000Z | lib/block_keys.ex | nicocaille/block_keys | 03c4c0dc1528169616706ae97234317f4a7b4d9b | [
"Apache-2.0"
] | 13 | 2019-03-04T16:56:26.000Z | 2021-11-02T01:11:15.000Z | lib/block_keys.ex | nicocaille/block_keys | 03c4c0dc1528169616706ae97234317f4a7b4d9b | [
"Apache-2.0"
] | 9 | 2019-03-09T08:08:06.000Z | 2021-06-22T08:22:01.000Z | defmodule BlockKeys do
@moduledoc """
Generates or restores a wallet from mnemonic phrases
"""
alias BlockKeys.Mnemonic
alias BlockKeys.CKD
def generate(network \\ :mainnet) do
phrase = Mnemonic.generate_phrase()
%{
mnemonic: phrase,
root_key: from_mnemonic(phrase, network)
}
en... | 19.68 | 54 | 0.676829 |
287b5a005b80cd26ba0fc644bfe8dfe17a451b85 | 1,675 | ex | Elixir | lib/auto_api/capabilities/climate_capability.ex | nonninz/auto-api-elixir | 53e11542043285e94bbb5a0a3b8ffff0b1b47167 | [
"MIT"
] | null | null | null | lib/auto_api/capabilities/climate_capability.ex | nonninz/auto-api-elixir | 53e11542043285e94bbb5a0a3b8ffff0b1b47167 | [
"MIT"
] | null | null | null | lib/auto_api/capabilities/climate_capability.ex | nonninz/auto-api-elixir | 53e11542043285e94bbb5a0a3b8ffff0b1b47167 | [
"MIT"
] | null | null | null | # AutoAPI
# The MIT License
#
# Copyright (c) 2018- High-Mobility GmbH (https://high-mobility.com)
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without lim... | 37.222222 | 79 | 0.74209 |
287b5a17bfc8be705ccc477f537d4a220a8c7d7d | 5,274 | ex | Elixir | lib/phoenix_live_view/router.ex | bartekupartek/phoenix_live_view | 652daf654ed04fe306e848ca292fe683ad2898b1 | [
"MIT"
] | null | null | null | lib/phoenix_live_view/router.ex | bartekupartek/phoenix_live_view | 652daf654ed04fe306e848ca292fe683ad2898b1 | [
"MIT"
] | null | null | null | lib/phoenix_live_view/router.ex | bartekupartek/phoenix_live_view | 652daf654ed04fe306e848ca292fe683ad2898b1 | [
"MIT"
] | null | null | null | defmodule Phoenix.LiveView.Router do
@moduledoc """
Provides LiveView routing for Phoenix routers.
"""
@doc """
Defines a LiveView route.
A LiveView can be routed to by using the `live` macro with a path and
the name of the LiveView:
live "/thermostat", ThermostatLive
By default, you can gener... | 34.025806 | 97 | 0.676147 |
287b60538ea855162b2cfffb20babba23aaa68b5 | 5,971 | ex | Elixir | lib/sentry/sources.ex | ScriptDrop/sentry-elixir | 984b56eb529c592d95a8332eab3aaa8268b81fa2 | [
"MIT"
] | null | null | null | lib/sentry/sources.ex | ScriptDrop/sentry-elixir | 984b56eb529c592d95a8332eab3aaa8268b81fa2 | [
"MIT"
] | null | null | null | lib/sentry/sources.ex | ScriptDrop/sentry-elixir | 984b56eb529c592d95a8332eab3aaa8268b81fa2 | [
"MIT"
] | null | null | null | defmodule Sentry.Sources do
alias Sentry.Config
@moduledoc """
This module is responsible for providing functionality that stores
the text of source files during compilation for displaying the
source code that caused an exception.
### Configuration
There is configuration required to set up this function... | 41.465278 | 148 | 0.717133 |
287b7337bdeacca1e6884eb0503af66ac156d506 | 36,866 | ex | Elixir | lib/elixir/lib/supervisor.ex | howleysv/elixir | 40f0f680160fe6cf8622eaceff3f67d617aac050 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/supervisor.ex | howleysv/elixir | 40f0f680160fe6cf8622eaceff3f67d617aac050 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/supervisor.ex | howleysv/elixir | 40f0f680160fe6cf8622eaceff3f67d617aac050 | [
"Apache-2.0"
] | null | null | null | defmodule Supervisor do
@moduledoc ~S"""
A behaviour module for implementing supervisors.
A supervisor is a process which supervises other processes, which we
refer to as *child processes*. Supervisors are used to build a hierarchical
process structure called a *supervision tree*. Supervision trees provide
... | 37.125881 | 104 | 0.693566 |
287b799e72ca33c6751462751e2a783a7509bd9c | 1,885 | exs | Elixir | mix.exs | cloudcommitco/email_checker | d780d9dc2180bbd4b0fbb5cd704131a5ce72672b | [
"MIT"
] | null | null | null | mix.exs | cloudcommitco/email_checker | d780d9dc2180bbd4b0fbb5cd704131a5ce72672b | [
"MIT"
] | null | null | null | mix.exs | cloudcommitco/email_checker | d780d9dc2180bbd4b0fbb5cd704131a5ce72672b | [
"MIT"
] | 1 | 2021-07-02T21:40:14.000Z | 2021-07-02T21:40:14.000Z | defmodule EmailChecker.Mixfile do
use Mix.Project
@version "0.2.1"
def project do
[
app: :email_checker,
version: @version,
elixir: "~> 1.3",
elixirc_paths: elixirc_paths(Mix.env()),
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
test_cover... | 24.480519 | 98 | 0.581432 |
287b7d4e4910f9c02bc0cc9f35bfc57512a0f9e1 | 690 | ex | Elixir | lib/meeseeks/selector/element.ex | RichMorin/meeseeks | d52a15a0b78acfc4d7b979d1df6e146482dc3a10 | [
"Apache-2.0",
"MIT"
] | 291 | 2017-03-27T15:53:36.000Z | 2022-03-14T23:01:42.000Z | lib/meeseeks/selector/element.ex | RichMorin/meeseeks | d52a15a0b78acfc4d7b979d1df6e146482dc3a10 | [
"Apache-2.0",
"MIT"
] | 70 | 2017-03-30T23:32:34.000Z | 2021-06-27T06:26:28.000Z | lib/meeseeks/selector/element.ex | RichMorin/meeseeks | d52a15a0b78acfc4d7b979d1df6e146482dc3a10 | [
"Apache-2.0",
"MIT"
] | 23 | 2017-06-18T10:29:04.000Z | 2021-11-04T13:08:12.000Z | defmodule Meeseeks.Selector.Element do
use Meeseeks.Selector
@moduledoc false
alias Meeseeks.{Document, Selector}
alias Meeseeks.Selector.Element
defstruct selectors: [], combinator: nil, filters: nil
@impl true
def match(%Element{selectors: []}, %Document.Element{}, _document, _context) do
true
... | 23.793103 | 82 | 0.724638 |
287b9aef1558051529d2b355d8af829587121cc0 | 1,148 | ex | Elixir | lib/level/resolvers/group_membership_connection.ex | pradyumna2905/level | 186878a128521074923edd7171eda2f1b181b4f4 | [
"Apache-2.0"
] | null | null | null | lib/level/resolvers/group_membership_connection.ex | pradyumna2905/level | 186878a128521074923edd7171eda2f1b181b4f4 | [
"Apache-2.0"
] | null | null | null | lib/level/resolvers/group_membership_connection.ex | pradyumna2905/level | 186878a128521074923edd7171eda2f1b181b4f4 | [
"Apache-2.0"
] | null | null | null | defmodule Level.Resolvers.GroupMembershipConnection do
@moduledoc """
A paginated connection for fetching a group's memberships.
"""
import Ecto.Query
alias Level.Groups.GroupUser
alias Level.Pagination
alias Level.Pagination.Args
defstruct first: nil,
last: nil,
before: nil,
... | 26.697674 | 83 | 0.594077 |
287b9cdbb35c912659a7b3ab4a28e4551733c229 | 1,498 | ex | Elixir | elixir/otp_todo_app/lib/todo/web.ex | raventid/coursera_learning | 115a03f08d30d8ba49f02c9692c289cbfb242358 | [
"MIT"
] | 1 | 2019-11-28T09:26:00.000Z | 2019-11-28T09:26:00.000Z | elixir/otp_todo_app/lib/todo/web.ex | raventid/coursera_learning | 115a03f08d30d8ba49f02c9692c289cbfb242358 | [
"MIT"
] | null | null | null | elixir/otp_todo_app/lib/todo/web.ex | raventid/coursera_learning | 115a03f08d30d8ba49f02c9692c289cbfb242358 | [
"MIT"
] | null | null | null | defmodule Todo.Web do
use Plug.Router
plug :match
plug :dispatch
def child_spec(_arg) do
Plug.Adapters.Cowboy.child_spec(
scheme: :http,
options: [port: Application.fetch_env!(:todo, :http_port)],
plug: __MODULE__
)
end
post "/add_entry" do
conn = Plug.Conn.fetch_query_param... | 23.40625 | 65 | 0.612817 |
287bb728aff8d5b048a5de41c4f1bcf082827a61 | 13,123 | ex | Elixir | app/lib/noodl/ticketing.ex | nathanjohnson320/noodl | 2e449aab15b54fc5a1dc45ebf4b79e7b64b7c967 | [
"MIT"
] | 1 | 2021-01-20T20:00:50.000Z | 2021-01-20T20:00:50.000Z | app/lib/noodl/ticketing.ex | nathanjohnson320/noodl | 2e449aab15b54fc5a1dc45ebf4b79e7b64b7c967 | [
"MIT"
] | null | null | null | app/lib/noodl/ticketing.ex | nathanjohnson320/noodl | 2e449aab15b54fc5a1dc45ebf4b79e7b64b7c967 | [
"MIT"
] | null | null | null | defmodule Noodl.Ticketing do
import Ecto.Query
alias Ecto.Multi
alias Noodl.Repo
alias Ecto.Multi
alias Noodl.Events.Event
alias Noodl.Ticketing.Release
alias Noodl.Ticketing.Ticket
alias Noodl.Ticketing
use Timex
@payout_percent 0.65
@currency Application.get_env(:money, :default_currency) |>... | 21.871667 | 95 | 0.600168 |
287bc175740d1438a2409cbc2109c6ad96d7cebf | 1,111 | exs | Elixir | apps/app_ui/config/dev.exs | mikeonslow/guardian_live_oss | 5f6101d19e2a30830475993465187e4e4391db39 | [
"MIT"
] | null | null | null | apps/app_ui/config/dev.exs | mikeonslow/guardian_live_oss | 5f6101d19e2a30830475993465187e4e4391db39 | [
"MIT"
] | null | null | null | apps/app_ui/config/dev.exs | mikeonslow/guardian_live_oss | 5f6101d19e2a30830475993465187e4e4391db39 | [
"MIT"
] | null | null | null | use Mix.Config
# For development, we disable any cache and enable
# debugging and code reloading.
#
# The watchers configuration can be used to run external
# watchers to your application. For example, we use it
# with brunch.io to recompile .js and .css sources.
config :app_ui, AppUi.Endpoint,
http: [port: 4000],
... | 27.097561 | 75 | 0.693969 |
287bce537d34f0be1edcf39d1fc92e41611258f9 | 1,113 | exs | Elixir | config/config.exs | kaermorchen/rrule | 4a648c94d824a06cf8a450848e4fbe5e3db363d2 | [
"MIT"
] | null | null | null | config/config.exs | kaermorchen/rrule | 4a648c94d824a06cf8a450848e4fbe5e3db363d2 | [
"MIT"
] | null | null | null | config/config.exs | kaermorchen/rrule | 4a648c94d824a06cf8a450848e4fbe5e3db363d2 | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on this project, this
# file won't be loaded nor affect the paren... | 35.903226 | 73 | 0.750225 |
287bf5d45b0fc0a481282984d701c9107aabb678 | 5,868 | exs | Elixir | .credo.exs | blockfi/humiex | dd3c2a6e34df4a90ff14d64cf1445f998ede6517 | [
"MIT"
] | 2 | 2020-11-17T15:25:48.000Z | 2021-02-05T16:51:26.000Z | .credo.exs | blockfi/humiex | dd3c2a6e34df4a90ff14d64cf1445f998ede6517 | [
"MIT"
] | 1 | 2020-10-28T15:27:53.000Z | 2020-11-23T20:41:45.000Z | .credo.exs | blockfi/humiex | dd3c2a6e34df4a90ff14d64cf1445f998ede6517 | [
"MIT"
] | null | null | null | # This file contains the configuration for Credo and you are probably reading
# this after creating it with `mix credo.gen.config`.
#
# If you find anything wrong or unclear in this file, please report an
# issue on GitHub: https://github.com/rrrene/credo/issues
#
%{
#
# You can have as many configs as you like in ... | 39.12 | 97 | 0.620143 |
287c10eb2a96ea2240b1623cbb740c1f8179c902 | 2,016 | exs | Elixir | config/prod.exs | Dania02525/widget_saas | 17b853f07be08a851c3e355863c18e15755cb7cb | [
"MIT"
] | 12 | 2016-01-27T01:30:42.000Z | 2019-12-07T20:31:01.000Z | config/prod.exs | Dania02525/widget_saas | 17b853f07be08a851c3e355863c18e15755cb7cb | [
"MIT"
] | 3 | 2016-11-22T12:22:59.000Z | 2017-08-01T17:26:40.000Z | config/prod.exs | Dania02525/widget_saas | 17b853f07be08a851c3e355863c18e15755cb7cb | [
"MIT"
] | 5 | 2016-07-11T18:39:02.000Z | 2019-10-23T03:22:49.000Z | use Mix.Config
# For production, we configure the host to read the PORT
# from the system environment. Therefore, you will need
# to set PORT=80 before running your server.
#
# You should also configure the url host to something
# meaningful, we use this information when generating URLs.
#
# Finally, we also include t... | 32.516129 | 67 | 0.717262 |
287c276fd44b745faa7a21a04c7e941979f696cc | 2,977 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/grpc_health_check.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/grpc_health_check.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/compute/lib/google_api/compute/v1/model/grpc_health_check.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... | 45.8 | 244 | 0.73564 |
287c293186bc129a702a14e163fe82dca2fae740 | 196 | exs | Elixir | test/tasks_web/controllers/page_controller_test.exs | Charlie1099/tasks | 38020d28c98cf197473b623bc7650b930b11da07 | [
"Unlicense"
] | null | null | null | test/tasks_web/controllers/page_controller_test.exs | Charlie1099/tasks | 38020d28c98cf197473b623bc7650b930b11da07 | [
"Unlicense"
] | null | null | null | test/tasks_web/controllers/page_controller_test.exs | Charlie1099/tasks | 38020d28c98cf197473b623bc7650b930b11da07 | [
"Unlicense"
] | null | null | null | defmodule TasksWeb.PageControllerTest do
use TasksWeb.ConnCase
test "GET /", %{conn: conn} do
conn = get(conn, "/")
assert html_response(conn, 200) =~ "Welcome to Phoenix!"
end
end
| 21.777778 | 60 | 0.673469 |
287c72bb1e671b08d9576fd32121a433a7c9c361 | 1,080 | ex | Elixir | web/router.ex | kluthen/upsilon_battle | 3e01bb162def2c42c78936afc07b4a74c67624ac | [
"MIT"
] | null | null | null | web/router.ex | kluthen/upsilon_battle | 3e01bb162def2c42c78936afc07b4a74c67624ac | [
"MIT"
] | 2 | 2017-07-05T06:48:59.000Z | 2017-07-13T14:16:25.000Z | web/router.ex | kluthen/upsilon_battle | 3e01bb162def2c42c78936afc07b4a74c67624ac | [
"MIT"
] | null | null | null | defmodule UpsilonBattle.Router do
use UpsilonBattle.Web, :router
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_flash
plug :protect_from_forgery
plug :put_secure_browser_headers
end
pipeline :api do
plug :accepts, ["json"]
plug :fetch_session
plug... | 23.478261 | 58 | 0.688889 |
287c7e0dd7758122d3bc6a7193d3e5a97d530796 | 14,861 | ex | Elixir | lib/aws/cognito_sync.ex | xflagstudio/aws-elixir | 2b6444181793f3e5665bcafb4333a3bab9e8d3a8 | [
"Apache-2.0"
] | null | null | null | lib/aws/cognito_sync.ex | xflagstudio/aws-elixir | 2b6444181793f3e5665bcafb4333a3bab9e8d3a8 | [
"Apache-2.0"
] | null | null | null | lib/aws/cognito_sync.ex | xflagstudio/aws-elixir | 2b6444181793f3e5665bcafb4333a3bab9e8d3a8 | [
"Apache-2.0"
] | null | null | null | # WARNING: DO NOT EDIT, AUTO-GENERATED CODE!
# See https://github.com/jkakar/aws-codegen for more details.
defmodule AWS.Cognito.Sync do
@moduledoc """
Amazon Cognito Sync
Amazon Cognito Sync provides an AWS service and client library that enable
cross-device syncing of application-related user data. High-lev... | 43.200581 | 172 | 0.722361 |
287c823a2ad91623f349f728123739e770b02ada | 366 | ex | Elixir | blog_writer_api/lib/message/message_supervisor.ex | xawe/elixir_micro_blog | eee893238a9647708336901f3ead4629067d590f | [
"MIT"
] | null | null | null | blog_writer_api/lib/message/message_supervisor.ex | xawe/elixir_micro_blog | eee893238a9647708336901f3ead4629067d590f | [
"MIT"
] | null | null | null | blog_writer_api/lib/message/message_supervisor.ex | xawe/elixir_micro_blog | eee893238a9647708336901f3ead4629067d590f | [
"MIT"
] | null | null | null | defmodule Message.MessageSupervisor do
use DynamicSupervisor
require Logger
def start_link(_args) do
sup = DynamicSupervisor.start_link(__MODULE__, :ok, name: __MODULE__)
DynamicSupervisor.start_child(__MODULE__, {Message.ConsumerApi, :stored_data_server})
sup
end
def init(_) do
DynamicSupe... | 22.875 | 89 | 0.765027 |
287c8fd10cca4dd03e1bd067bb29131dcf7cca02 | 2,983 | ex | Elixir | divvy_tracker/lib/divvy_tracker_web/controllers/transaction_controller.ex | tpennock/divvy-tracker-app | 6896a19fd7380a827573231ff56ead8db04c66bf | [
"MIT"
] | null | null | null | divvy_tracker/lib/divvy_tracker_web/controllers/transaction_controller.ex | tpennock/divvy-tracker-app | 6896a19fd7380a827573231ff56ead8db04c66bf | [
"MIT"
] | 3 | 2018-12-11T00:07:41.000Z | 2018-12-11T00:09:36.000Z | divvy_tracker/lib/divvy_tracker_web/controllers/transaction_controller.ex | tpennock/divvy-tracker-app | 6896a19fd7380a827573231ff56ead8db04c66bf | [
"MIT"
] | null | null | null | defmodule DivvyTrackerWeb.TransactionController do
use DivvyTrackerWeb, :controller
alias DivvyTracker.Expenses
alias DivvyTracker.Expenses.Transaction
def index(conn, _params) do
transactions = Expenses.list_transactions()
render(conn, "index.json", transactions: transactions)
end
def new(conn, ... | 35.511905 | 81 | 0.678512 |
287caf55040573f58ebfc4d3857639fc365b9bce | 1,323 | ex | Elixir | clients/network_management/lib/google_api/network_management/v1/model/cancel_operation_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/network_management/lib/google_api/network_management/v1/model/cancel_operation_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/network_management/lib/google_api/network_management/v1/model/cancel_operation_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"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... | 31.5 | 91 | 0.773243 |
287cb26668a26e91ccdcd387809856f05fac4424 | 92 | ex | Elixir | testData/org/elixir_lang/parser_definition/interpolated_char_list_sigil_heredoc_parsing_test_case/EscapeSequences.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 1,668 | 2015-01-03T05:54:27.000Z | 2022-03-25T08:01:20.000Z | testData/org/elixir_lang/parser_definition/interpolated_char_list_sigil_heredoc_parsing_test_case/EscapeSequences.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 2,018 | 2015-01-01T22:43:39.000Z | 2022-03-31T20:13:08.000Z | testData/org/elixir_lang/parser_definition/interpolated_char_list_sigil_heredoc_parsing_test_case/EscapeSequences.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 145 | 2015-01-15T11:37:16.000Z | 2021-12-22T05:51:02.000Z | ~c'''
\'''
\#{}
\"
\0
\1
\a
\b
\d
\e
\f
\b
\r
\s
\v
\u1234
\x12
\
\u{100000}
\x{100000}
'''
| 4.181818 | 10 | 0.369565 |
287cc14779f2db5cbc5158ea121eae60f7cfe815 | 1,087 | exs | Elixir | test/icalendar/value_test.exs | clockkcom/icalendar | a476eff9e17f4a386e81e06353a9109645f03388 | [
"MIT"
] | 82 | 2016-05-13T10:13:10.000Z | 2022-02-23T04:11:12.000Z | test/icalendar/value_test.exs | clockkcom/icalendar | a476eff9e17f4a386e81e06353a9109645f03388 | [
"MIT"
] | 50 | 2015-12-24T12:30:55.000Z | 2022-03-22T18:13:19.000Z | test/icalendar/value_test.exs | clockkcom/icalendar | a476eff9e17f4a386e81e06353a9109645f03388 | [
"MIT"
] | 43 | 2016-05-25T15:11:18.000Z | 2022-03-19T16:54:58.000Z | defmodule ICalendar.ValueTest do
use ExUnit.Case
alias ICalendar.Value
test "value of a date" do
result = Value.to_ics(Timex.to_date({2016, 1, 4}))
assert result == "20160104"
end
test "value of a datetime" do
result = Value.to_ics(Timex.to_datetime({{2016, 1, 4}, {0, 42, 23}}))
assert resu... | 23.630435 | 73 | 0.613615 |
287cca39dffcc9b47ff406d52c762562001cdb6d | 5,164 | ex | Elixir | lib/cog/models/join_table.ex | matusf/cog | 71708301c7dc570fb0d3498a50f47a70ef957788 | [
"Apache-2.0"
] | 1,003 | 2016-02-23T17:21:12.000Z | 2022-02-20T14:39:35.000Z | lib/cog/models/join_table.ex | matusf/cog | 71708301c7dc570fb0d3498a50f47a70ef957788 | [
"Apache-2.0"
] | 906 | 2016-02-22T22:54:19.000Z | 2022-03-11T15:19:43.000Z | lib/cog/models/join_table.ex | matusf/cog | 71708301c7dc570fb0d3498a50f47a70ef957788 | [
"Apache-2.0"
] | 95 | 2016-02-23T13:42:31.000Z | 2021-11-30T14:39:55.000Z | defmodule Cog.Models.JoinTable do
alias Ecto.Adapters.SQL
alias Cog.Repo
@moduledoc """
Many of our models have many-to-many associations amongst
themselves. Examples include:
User >--< Permission
User >--< Roles
Role >--< Permission
Group >--< Permission
User >--< Group
and so o... | 30.376471 | 103 | 0.672734 |
287cfe7c0550c5f667185a520b0756ace8d1fa8d | 3,436 | ex | Elixir | lib/helpers.ex | jpcaruana/microformats2-elixir | 4e5709637cfe01fe2c17e563c649f4baca8ca905 | [
"MIT"
] | null | null | null | lib/helpers.ex | jpcaruana/microformats2-elixir | 4e5709637cfe01fe2c17e563c649f4baca8ca905 | [
"MIT"
] | null | null | null | lib/helpers.ex | jpcaruana/microformats2-elixir | 4e5709637cfe01fe2c17e563c649f4baca8ca905 | [
"MIT"
] | null | null | null | defmodule Microformats2.Helpers do
@spec attr_list(String.t() | [any()] | tuple(), String.t()) :: [String.t()]
def attr_list(node, attr \\ "class") do
node
|> Floki.attribute(attr)
|> List.first()
|> to_string
|> String.split(" ", trim: true)
end
@spec blank?(any()) :: boolean()
def blank... | 32.415094 | 109 | 0.596333 |
287cfe9c87231bc625fa77006ac0a432f26c5e05 | 194 | exs | Elixir | priv/repo/migrations/20190301122344_add_country_code_to_pageviews.exs | wvffle/analytics | 2c0fd55bc67f74af1fe1e2641678d44e9fee61d5 | [
"MIT"
] | 984 | 2019-09-02T11:36:41.000Z | 2020-06-08T06:25:48.000Z | priv/repo/migrations/20190301122344_add_country_code_to_pageviews.exs | wvffle/analytics | 2c0fd55bc67f74af1fe1e2641678d44e9fee61d5 | [
"MIT"
] | 24 | 2019-09-10T09:53:17.000Z | 2020-06-08T07:35:26.000Z | priv/repo/migrations/20190301122344_add_country_code_to_pageviews.exs | wvffle/analytics | 2c0fd55bc67f74af1fe1e2641678d44e9fee61d5 | [
"MIT"
] | 51 | 2019-09-03T10:48:10.000Z | 2020-06-07T00:23:34.000Z | defmodule Plausible.Repo.Migrations.AddCountryCodeToPageviews do
use Ecto.Migration
def change do
alter table(:pageviews) do
add :country_code, :string, size: 2
end
end
end
| 19.4 | 64 | 0.731959 |
287d038432327eef30f048451f53850c4a3565bc | 4,674 | ex | Elixir | lib/witchcraft/semigroup.ex | baseballlover723/witchcraft | 75b62d87bc2c22917f6d5f2bc42d1e0163d40460 | [
"MIT"
] | 1 | 2019-10-04T11:32:01.000Z | 2019-10-04T11:32:01.000Z | lib/witchcraft/semigroup.ex | baseballlover723/witchcraft | 75b62d87bc2c22917f6d5f2bc42d1e0163d40460 | [
"MIT"
] | null | null | null | lib/witchcraft/semigroup.ex | baseballlover723/witchcraft | 75b62d87bc2c22917f6d5f2bc42d1e0163d40460 | [
"MIT"
] | null | null | null | import TypeClass
defclass Witchcraft.Semigroup do
@moduledoc ~S"""
A semigroup is a structure describing data that can be appendenated with others of its type.
That is to say that appending another list returns a list, appending one map
to another returns a map, and appending two integers returns an integer, a... | 25.681319 | 117 | 0.603124 |
287d1681976024631070ab70a66b846f247519c3 | 1,171 | exs | Elixir | test/yuki_helper/config/languages_test.exs | penqen/yuki_helper | 9952dd4711fc2dc98d8cdc41bd758b9b271ea036 | [
"MIT"
] | null | null | null | test/yuki_helper/config/languages_test.exs | penqen/yuki_helper | 9952dd4711fc2dc98d8cdc41bd758b9b271ea036 | [
"MIT"
] | 1 | 2021-05-13T16:28:58.000Z | 2021-05-13T16:28:58.000Z | test/yuki_helper/config/languages_test.exs | penqen/yuki_helper | 9952dd4711fc2dc98d8cdc41bd758b9b271ea036 | [
"MIT"
] | null | null | null | defmodule YukiHelper.Config.LanguagesTest do
use ExUnit.Case
doctest YukiHelper.Config.Languages
alias YukiHelper.Config.{Languages, Language}
@invalid_primaries [
"worng ",
"foo",
"bar",
nil
]
defp languages(primary) do
%Languages{
primary: primary,
elixir: Language.new(),... | 23.897959 | 73 | 0.609735 |
287d3394c8cdf1509c3d7167817f977a32608332 | 1,755 | exs | Elixir | test/firmware/uart_observer_test.exs | FarmBot/farmbot_os | 5ebdca3afd672eb6b0af5c71cfca02488b32569a | [
"MIT"
] | 843 | 2016-10-05T23:46:05.000Z | 2022-03-14T04:31:55.000Z | farmbot_core/test/firmware/uart_observer_test.exs | gdwb/farmbot_os | 0ef2697c580c9fbf37a22daa063a64addfcb778d | [
"MIT"
] | 455 | 2016-10-15T08:49:16.000Z | 2022-03-15T12:23:04.000Z | farmbot_core/test/firmware/uart_observer_test.exs | gdwb/farmbot_os | 0ef2697c580c9fbf37a22daa063a64addfcb778d | [
"MIT"
] | 261 | 2016-10-10T04:37:06.000Z | 2022-03-13T21:07:38.000Z | defmodule FarmbotCore.Firmware.UARTObserverTest do
use ExUnit.Case
use Mimic
alias FarmbotCore.AssetWorker.FarmbotCore.Asset.FirmwareConfig
alias FarmbotCore.Firmware.UARTCore
alias FarmbotCore.Firmware.UARTObserver
test "data_available/2" do
parent_pid = self()
caller = fn ->
UARTObserver.... | 24.71831 | 80 | 0.666667 |
287dddae85225fc1eb58aa7953024aca13c9770e | 3,752 | exs | Elixir | mix.exs | feld/swoosh | 05e70573385830bb345e0fa5f5cc1d1ad524a90a | [
"MIT"
] | 1,214 | 2016-03-21T16:56:42.000Z | 2022-03-31T19:10:11.000Z | mix.exs | feld/swoosh | 05e70573385830bb345e0fa5f5cc1d1ad524a90a | [
"MIT"
] | 399 | 2016-03-21T23:11:32.000Z | 2022-03-04T10:52:28.000Z | mix.exs | feld/swoosh | 05e70573385830bb345e0fa5f5cc1d1ad524a90a | [
"MIT"
] | 208 | 2016-03-21T21:12:11.000Z | 2022-03-04T06:35:33.000Z | defmodule Swoosh.Mixfile do
use Mix.Project
@source_url "https://github.com/swoosh/swoosh"
@version "1.5.1"
def project do
[
app: :swoosh,
version: @version,
elixir: "~> 1.10",
elixirc_paths: elixirc_paths(Mix.env()),
consolidate_protocols: Mix.env() != :test,
build_emb... | 24.051282 | 85 | 0.529851 |
287e12bd97b98de8fe9a39c4f8cbaf3da00f00d6 | 3,701 | exs | Elixir | test/bno055_app/configuration_test.exs | TattdCodeMonkey/bno055_app | 5f4e3746f7ba19d7cfd594a32c14e65aa6c2577e | [
"MIT"
] | null | null | null | test/bno055_app/configuration_test.exs | TattdCodeMonkey/bno055_app | 5f4e3746f7ba19d7cfd594a32c14e65aa6c2577e | [
"MIT"
] | null | null | null | test/bno055_app/configuration_test.exs | TattdCodeMonkey/bno055_app | 5f4e3746f7ba19d7cfd594a32c14e65aa6c2577e | [
"MIT"
] | null | null | null | defmodule BNO055.App.ConfigurationTest do
use ExUnit.Case
test "process_names" do
:application.set_env(:bno055, :names, "test")
assert BNO055.App.Configuration.process_names == "test"
end
test "sensors" do
:application.set_env(:bno055, :sensors, "test")
assert BNO055.App.Configuration.sensor... | 28.251908 | 183 | 0.635234 |
287e286e12934b5d8dae08e200a29bb5ad8dbd2a | 7,953 | exs | Elixir | test/acceptance/ast/html/block_test.exs | sionide21/earmark_parser | d9283fd90dad21d4bf4277e284b2e4a8560d14b0 | [
"Apache-2.0"
] | null | null | null | test/acceptance/ast/html/block_test.exs | sionide21/earmark_parser | d9283fd90dad21d4bf4277e284b2e4a8560d14b0 | [
"Apache-2.0"
] | null | null | null | test/acceptance/ast/html/block_test.exs | sionide21/earmark_parser | d9283fd90dad21d4bf4277e284b2e4a8560d14b0 | [
"Apache-2.0"
] | null | null | null | defmodule Acceptance.Ast.Html.BlockTest do
use ExUnit.Case, async: true
import Support.Helpers, only: [as_ast: 1]
import EarmarkAstDsl
@verbatim %{verbatim: true}
describe "HTML blocks" do
test "tables are just tables again (or was that mountains?)" do
markdown =
"<table>\n <tr>\n <td>... | 29.346863 | 98 | 0.549981 |
287e40ab2a195700c4ab8de1b4f25dc83a537893 | 921 | exs | Elixir | config/prod.secret.exs | paulfioravanti/phx_liveview_i18n_example | a1813758f4f9ff8d2250c8776cb045a700c69077 | [
"MIT"
] | 9 | 2020-01-18T23:27:36.000Z | 2021-12-22T04:56:14.000Z | config/prod.secret.exs | paulfioravanti/phx_liveview_i18n_example | a1813758f4f9ff8d2250c8776cb045a700c69077 | [
"MIT"
] | 6 | 2020-03-29T10:53:33.000Z | 2021-05-22T12:22:54.000Z | config/prod.secret.exs | paulfioravanti/phx_i18n_example | a1813758f4f9ff8d2250c8776cb045a700c69077 | [
"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
secret_key_base =
System.get_env("SECRET_KEY_BASE") ||
raise """
... | 34.111111 | 76 | 0.747014 |
287e83d5e8a7fb8cd548a9e151e6dea8734c1fe4 | 756 | ex | Elixir | lib/cgrates_web_jsonapi_web/controllers/load_tariff_plan_controller.ex | max-konin/cgrates_web_jsonapi | e82690e343d790b0f77dea6699483fcb6fd8a162 | [
"MIT"
] | 2 | 2018-10-03T07:41:32.000Z | 2021-03-21T11:27:27.000Z | lib/cgrates_web_jsonapi_web/controllers/load_tariff_plan_controller.ex | max-konin/cgrates_web_jsonapi | e82690e343d790b0f77dea6699483fcb6fd8a162 | [
"MIT"
] | 1 | 2018-10-31T04:55:59.000Z | 2018-10-31T04:55:59.000Z | lib/cgrates_web_jsonapi_web/controllers/load_tariff_plan_controller.ex | max-konin/cgrates_web_jsonapi | e82690e343d790b0f77dea6699483fcb6fd8a162 | [
"MIT"
] | 5 | 2018-09-27T11:30:44.000Z | 2021-01-16T08:28:58.000Z | defmodule CgratesWebJsonapiWeb.LoadTariffPlanController do
use CgratesWebJsonapiWeb, :controller
alias CgratesWebJsonapi.Cgrates.Adapter
alias JaSerializer.Params
plug :scrub_params, "data" when action in [:create]
def create(conn, %{
"data" =>
data = %{
"attributes" => %{"tpi... | 25.2 | 92 | 0.599206 |
287e92244dcd974d00a34d91d59bfaf1c5c9b501 | 688 | ex | Elixir | lib/rasa_api/model/entity.ex | whitedr/rasa-api-elixir | 3ff932ee4cb4d04f0dd5ea66ec4b8f83195a003a | [
"Apache-2.0"
] | null | null | null | lib/rasa_api/model/entity.ex | whitedr/rasa-api-elixir | 3ff932ee4cb4d04f0dd5ea66ec4b8f83195a003a | [
"Apache-2.0"
] | null | null | null | lib/rasa_api/model/entity.ex | whitedr/rasa-api-elixir | 3ff932ee4cb4d04f0dd5ea66ec4b8f83195a003a | [
"Apache-2.0"
] | 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 RasaApi.Model.Entity do
@moduledoc """
Entities within a message
"""
@derive [Poison.Encoder]
defstruct [
:start,
:end,
:value,... | 18.105263 | 91 | 0.635174 |
287ea1a7c0f50f5867ce1da22cb57fe3e18eb767 | 4,449 | ex | Elixir | server/lib/realtime_web/channels/realtime_channel.ex | profencer/realtime | b3a20e8278276a98d47c2c938abe73cfd9e69a63 | [
"Apache-2.0"
] | null | null | null | server/lib/realtime_web/channels/realtime_channel.ex | profencer/realtime | b3a20e8278276a98d47c2c938abe73cfd9e69a63 | [
"Apache-2.0"
] | null | null | null | server/lib/realtime_web/channels/realtime_channel.ex | profencer/realtime | b3a20e8278276a98d47c2c938abe73cfd9e69a63 | [
"Apache-2.0"
] | null | null | null | defmodule RealtimeWeb.RealtimeChannel do
use RealtimeWeb, :channel
require Logger, warn: false
alias Phoenix.{PubSub, Socket}
alias Phoenix.Socket.Broadcast
alias Realtime.SubscriptionManager
alias Realtime.Metrics.SocketMonitor
alias RealtimeWeb.{ChannelsAuthorization, Endpoint}
@verify_token_interva... | 27.128049 | 90 | 0.584401 |
287ea448cfa730a3c0dbb7f0932cd1f016b3184d | 3,782 | ex | Elixir | apps/omg/lib/omg/state/transaction/signed.ex | omgnetwork/omg-childchain-v1 | 1e2313029ece2282c22ce411edc078a17e6bba09 | [
"Apache-2.0"
] | 1 | 2020-10-06T03:07:47.000Z | 2020-10-06T03:07:47.000Z | apps/omg/lib/omg/state/transaction/signed.ex | omgnetwork/omg-childchain-v1 | 1e2313029ece2282c22ce411edc078a17e6bba09 | [
"Apache-2.0"
] | 9 | 2020-09-16T15:31:17.000Z | 2021-03-17T07:12:35.000Z | apps/omg/lib/omg/state/transaction/signed.ex | omgnetwork/omg-childchain-v1 | 1e2313029ece2282c22ce411edc078a17e6bba09 | [
"Apache-2.0"
] | 1 | 2020-09-30T17:17:27.000Z | 2020-09-30T17:17:27.000Z | # Copyright 2019-2020 OmiseGO Pte Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 33.767857 | 113 | 0.680857 |
287eafd78d08a4b3d860888a6412246503d18d33 | 1,693 | ex | Elixir | clients/content/lib/google_api/content/v2/model/accountstatuses_custom_batch_request.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/content/lib/google_api/content/v2/model/accountstatuses_custom_batch_request.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/model/accountstatuses_custom_batch_request.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 ... | 33.196078 | 171 | 0.757236 |
287ebf1455c555d5a9a02d9582f8fa0428f949a7 | 1,347 | ex | Elixir | lib/show_me_the_code_web/endpoint.ex | intellild/show-me-the-code | 767461d631e57c4a1d56a959d41abe611d5ce51f | [
"MIT"
] | 161 | 2018-07-11T09:49:17.000Z | 2021-11-16T12:43:36.000Z | lib/show_me_the_code_web/endpoint.ex | intellild/show-me-the-code | 767461d631e57c4a1d56a959d41abe611d5ce51f | [
"MIT"
] | 8 | 2018-08-16T06:46:58.000Z | 2021-08-25T03:37:42.000Z | lib/show_me_the_code_web/endpoint.ex | intellild/show-me-the-code | 767461d631e57c4a1d56a959d41abe611d5ce51f | [
"MIT"
] | 18 | 2018-10-16T10:42:14.000Z | 2022-03-11T10:49:24.000Z | defmodule ShowMeTheCodeWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :show_me_the_code
socket "/socket", ShowMeTheCodeWeb.UserSocket,
websocket: true,
longpoll: false
# Serve at "/" the static files from "priv/static" directory.
#
# You should set gzip to true if you are running phx.digest
# when... | 28.659574 | 69 | 0.720119 |
287ed5755b78d77b3f1cd47ff338d71456ed5c37 | 22,719 | ex | Elixir | clients/people/lib/google_api/people/v1/api/contact_groups.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/people/lib/google_api/people/v1/api/contact_groups.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/people/lib/google_api/people/v1/api/contact_groups.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... | 46.843299 | 196 | 0.629209 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.