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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c8a6eaecd22022815bdb72dd40587d3e25724680 | 6,534 | ex | Elixir | lib/ash/query/operator/operator.ex | regularfellow/ash | 179495fecb141e0eb8eaf35bbb4d04000eab694b | [
"MIT"
] | null | null | null | lib/ash/query/operator/operator.ex | regularfellow/ash | 179495fecb141e0eb8eaf35bbb4d04000eab694b | [
"MIT"
] | null | null | null | lib/ash/query/operator/operator.ex | regularfellow/ash | 179495fecb141e0eb8eaf35bbb4d04000eab694b | [
"MIT"
] | null | null | null | defmodule Ash.Query.Operator do
@moduledoc """
An operator is a predicate with a `left` and a `right`
For more information on being a predicate, see `Ash.Filter.Predicate`. Most of the complexities
are there. An operator must meet both behaviours.
"""
@doc """
Create a new predicate. There are various r... | 24.2 | 99 | 0.585552 |
c8a73b491cf04925e1ab368d5d3a25c01cc626ca | 2,321 | exs | Elixir | talks-articles/frameworks/phoenix/book--programming-phoenix-ge-1.4/videologue/priv/repo/seeds_test_data.exs | abhishekkr/tutorials_as_code | f355dc62a5025b710ac6d4a6ac2f9610265fad54 | [
"MIT"
] | 37 | 2015-02-01T23:16:39.000Z | 2021-12-22T16:50:48.000Z | talks-articles/frameworks/phoenix/book--programming-phoenix-ge-1.4/videologue/priv/repo/seeds_test_data.exs | abhishekkr/tutorials_as_code | f355dc62a5025b710ac6d4a6ac2f9610265fad54 | [
"MIT"
] | 1 | 2017-03-02T04:55:48.000Z | 2018-01-14T10:51:11.000Z | talks-articles/frameworks/phoenix/book--programming-phoenix-ge-1.4/videologue/priv/repo/seeds_test_data.exs | abhishekkr/tutorials_as_code | f355dc62a5025b710ac6d4a6ac2f9610265fad54 | [
"MIT"
] | 15 | 2015-03-02T08:09:01.000Z | 2021-06-10T03:25:41.000Z | alias Videologue.Accounts
alias Videologue.Multimedia
defmodule Seeds.Accounts.User do
def add_test do
%{name: "Sherlock Holmes", username: "sherlock", password: "this is sherlock"}
|> Accounts.register_user()
%{name: "Mycroft Holmes", username: "mycroft", password: "this is mycroft"}
|> Accounts.re... | 48.354167 | 273 | 0.735028 |
c8a750b69b5d55e28bd9276e8c5ddee834497b78 | 1,047 | exs | Elixir | test/request_test.exs | kintu-games/elidactyl | 2d95694ef4a85c72e962379d8d12fc08bd8352ac | [
"MIT"
] | null | null | null | test/request_test.exs | kintu-games/elidactyl | 2d95694ef4a85c72e962379d8d12fc08bd8352ac | [
"MIT"
] | null | null | null | test/request_test.exs | kintu-games/elidactyl | 2d95694ef4a85c72e962379d8d12fc08bd8352ac | [
"MIT"
] | null | null | null | defmodule Elidactyl.RequestTest do
use ExUnit.Case
alias Elidactyl.Request
alias Elidactyl.Error
test "basic requests to mocked server" do
assert {:ok, %{"type" => "get"}} == Request.request(:get, "/test", "", [])
assert {:ok, %{"type" => "post", "params" => %{"_json" => "{}"}}} ==
Reques... | 32.71875 | 84 | 0.491882 |
c8a77a749b21074320e5c0d2f422c049b5126e55 | 5,883 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/api/countries.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/api/countries.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/api/countries.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... | 40.294521 | 187 | 0.63947 |
c8a78bb7c682010b687910c53afb7d8ada2764c5 | 784 | exs | Elixir | lib/mix/test/mix/tasks/compile.yecc_test.exs | Nicd/elixir | e62ef92a4be1b562033d35b2d822cc9d6c661077 | [
"Apache-2.0"
] | null | null | null | lib/mix/test/mix/tasks/compile.yecc_test.exs | Nicd/elixir | e62ef92a4be1b562033d35b2d822cc9d6c661077 | [
"Apache-2.0"
] | null | null | null | lib/mix/test/mix/tasks/compile.yecc_test.exs | Nicd/elixir | e62ef92a4be1b562033d35b2d822cc9d6c661077 | [
"Apache-2.0"
] | null | null | null | Code.require_file "../../test_helper.exs", __DIR__
defmodule Mix.Tasks.Compile.YeccTest do
use MixTest.Case
test "tries to compile src/test_fail.yrl" do
in_fixture "compile_yecc", fn ->
output = mix "compile"
assert output =~ %r"src/test\.yrl.+grammar rules are missing"
end
end
test "com... | 23.058824 | 67 | 0.65051 |
c8a797f7c59d5fb0b83fa5997de61b628d321dc2 | 5,416 | ex | Elixir | lib/absinthe/plug/request/query.ex | imolorhe/absinthe_plug | fc938660a393c1b5f9c4eef46a83dfff3b19d1e0 | [
"MIT"
] | null | null | null | lib/absinthe/plug/request/query.ex | imolorhe/absinthe_plug | fc938660a393c1b5f9c4eef46a83dfff3b19d1e0 | [
"MIT"
] | null | null | null | lib/absinthe/plug/request/query.ex | imolorhe/absinthe_plug | fc938660a393c1b5f9c4eef46a83dfff3b19d1e0 | [
"MIT"
] | null | null | null | defmodule Absinthe.Plug.Request.Query do
@moduledoc false
# A struct containing, among a bunch of config params,
# the raw GraphQL document and variables that make up the meat
# of a GraphQL request. A GraphQL request can contain multiple Queries.
# Queries are fed through a DocumentProvider, and then passed... | 26.679803 | 86 | 0.65288 |
c8a7b318e95239c4795302166f43ea9112fa432c | 2,718 | exs | Elixir | test/controllers/build_job_status_controller_test.exs | crosscloudci/ci_status_repository | 335e8b89bbf59e6cf63e49541ce3ea6b60167e52 | [
"Apache-2.0"
] | 2 | 2019-03-05T16:29:10.000Z | 2020-01-17T14:11:48.000Z | test/controllers/build_job_status_controller_test.exs | crosscloudci/ci_status_repository | 335e8b89bbf59e6cf63e49541ce3ea6b60167e52 | [
"Apache-2.0"
] | 3 | 2019-03-18T20:26:48.000Z | 2020-06-25T14:31:13.000Z | test/controllers/build_job_status_controller_test.exs | crosscloudci/ci_status_repository | 335e8b89bbf59e6cf63e49541ce3ea6b60167e52 | [
"Apache-2.0"
] | 1 | 2018-06-16T15:32:25.000Z | 2018-06-16T15:32:25.000Z | defmodule CncfDashboardApi.BuildJobStatusControllerTest do
use CncfDashboardApi.ConnCase
alias CncfDashboardApi.BuildJobStatus
@valid_attrs %{pipeline_id: 42, pipeline_monitor_id: 42, status: "some content"}
@invalid_attrs %{}
# setup %{conn: conn} do
# {:ok, conn: put_req_header(conn, "accept", "applic... | 40.567164 | 109 | 0.715968 |
c8a7d00c0dea665c95f15b414bc110df593d994b | 461 | exs | Elixir | bench/noop.exs | dominicletz/tinycc | 1c71d5a416da88e3f1010c477e16051c6711be1f | [
"MIT"
] | 5 | 2021-05-03T19:37:25.000Z | 2021-11-15T20:40:48.000Z | bench/noop.exs | dominicletz/tinycc | 1c71d5a416da88e3f1010c477e16051c6711be1f | [
"MIT"
] | null | null | null | bench/noop.exs | dominicletz/tinycc | 1c71d5a416da88e3f1010c477e16051c6711be1f | [
"MIT"
] | null | null | null |
defmodule Noop do
use Niffler
def noop_elixir(bin), do: bin
def noop_nif!(bin) do
{:ok, [ret]} = noop_nif(bin)
ret
end
defnif :noop_nif, [a: :int], ret: :int do
"$ret = $a;"
end
end
0 = Noop.noop_elixir(0)
0 = Noop.noop_nif!(0)
{:ok, [0]} = Noop.noop_nif([0])
Benchee.run(
%{
"noop_ni... | 16.464286 | 50 | 0.56833 |
c8a7d74ebc68357d208cdc59706423104c28dabf | 1,453 | ex | Elixir | clients/drive_activity/lib/google_api/drive_activity/v2/model/application_reference.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/drive_activity/lib/google_api/drive_activity/v2/model/application_reference.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/drive_activity/lib/google_api/drive_activity/v2/model/application_reference.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... | 30.914894 | 101 | 0.741913 |
c8a7d9f21c29f7de9d7005cd3a1ade037be75ddf | 4,074 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/geo_targeting.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/geo_targeting.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/geo_targeting.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... | 65.709677 | 443 | 0.743986 |
c8a7de60796b7be961aa43d4089637371187f208 | 150 | exs | Elixir | apps/elixir_ls_utils/test/test_helper.exs | maciej-szlosarczyk/elixir-ls | f9e3a969a32212482a7625deec9e0fd0f533f991 | [
"Apache-2.0"
] | 865 | 2018-10-31T20:29:13.000Z | 2022-03-29T11:13:39.000Z | apps/elixir_ls_utils/test/test_helper.exs | maciej-szlosarczyk/elixir-ls | f9e3a969a32212482a7625deec9e0fd0f533f991 | [
"Apache-2.0"
] | 441 | 2019-01-05T02:33:52.000Z | 2022-03-30T20:56:50.000Z | apps/elixir_ls_utils/test/test_helper.exs | maciej-szlosarczyk/elixir-ls | f9e3a969a32212482a7625deec9e0fd0f533f991 | [
"Apache-2.0"
] | 126 | 2018-11-12T19:16:53.000Z | 2022-03-26T13:27:50.000Z | if Version.match?(System.version(), ">= 1.11.0") do
Code.put_compiler_option(:warnings_as_errors, true)
end
ExUnit.start(exclude: [pending: true])
| 25 | 53 | 0.733333 |
c8a7e564b98368d710c81df37bb66749e44054f7 | 1,817 | exs | Elixir | elixir-intro/kode/eksempler/mos_mulvarp.exs | kentdahl/nektar-nuby | 03f6624c8bf8de41dd63a0adda5456639b256bc5 | [
"MIT"
] | null | null | null | elixir-intro/kode/eksempler/mos_mulvarp.exs | kentdahl/nektar-nuby | 03f6624c8bf8de41dd63a0adda5456639b256bc5 | [
"MIT"
] | null | null | null | elixir-intro/kode/eksempler/mos_mulvarp.exs | kentdahl/nektar-nuby | 03f6624c8bf8de41dd63a0adda5456639b256bc5 | [
"MIT"
] | null | null | null | defmodule MosMulvarp do
defstruct plen: [], mulvarp: nil
def new do
mulvarp = (0..9) |> Enum.random
plen = (0..9) |> Enum.map( &({:green, &1}) )
%MosMulvarp{plen: plen, mulvarp: mulvarp}
end
def mosing(mos) do
vis_plen(mos)
mos = mos_til(mos)
mosing(mos)
end
def mos_til(mos) do... | 24.226667 | 84 | 0.56907 |
c8a81fd597fc9b705d9068ca0b0986feab1b4d37 | 3,791 | ex | Elixir | lib/livebook_web/live/output.ex | ByeongUkChoi/livebook | 55be1ff7cd7558f36e43ca8608078ccf6e6a8371 | [
"Apache-2.0"
] | null | null | null | lib/livebook_web/live/output.ex | ByeongUkChoi/livebook | 55be1ff7cd7558f36e43ca8608078ccf6e6a8371 | [
"Apache-2.0"
] | null | null | null | lib/livebook_web/live/output.ex | ByeongUkChoi/livebook | 55be1ff7cd7558f36e43ca8608078ccf6e6a8371 | [
"Apache-2.0"
] | null | null | null | defmodule LivebookWeb.Output do
use Phoenix.Component
import LivebookWeb.Helpers
alias LivebookWeb.Output
@doc """
Renders a list of cell outputs.
"""
def outputs(assigns) do
~H"""
<%= for {idx, output} <- Enum.reverse(@outputs) do %>
<div class="max-w-full" id={"output-wrapper-#{@dom_id_... | 28.503759 | 145 | 0.625429 |
c8a8214bbf0cc8c527623bddfc8d65074dad551c | 4,695 | ex | Elixir | lib/jaxon/path.ex | leandrocp/jaxon | c2bb8ce6a4c7707e8df6611ff982ce7d4691cad9 | [
"Apache-2.0"
] | null | null | null | lib/jaxon/path.ex | leandrocp/jaxon | c2bb8ce6a4c7707e8df6611ff982ce7d4691cad9 | [
"Apache-2.0"
] | null | null | null | lib/jaxon/path.ex | leandrocp/jaxon | c2bb8ce6a4c7707e8df6611ff982ce7d4691cad9 | [
"Apache-2.0"
] | null | null | null | defmodule Jaxon.Path do
alias Jaxon.{ParseError, EncodeError}
@moduledoc ~S"""
Utility module for parsing and encoding JSON path expressions.
"""
@type t :: [String.t() | :all | :root | integer]
@doc ~S"""
Encoding path expressions:
```
iex> Jaxon.Path.encode([:root, "test", 0])
{:ok, "$.test[0]... | 20.150215 | 90 | 0.549734 |
c8a84a57934606ff3e385f11a78f49fc1a20e028 | 176 | ex | Elixir | lib/ex_aws/polly/parsers.ex | lawitschka/ex_aws_polly | 0ad8542d78da1371e95258b8bbc65706139bcec8 | [
"MIT"
] | 1 | 2017-12-24T19:05:24.000Z | 2017-12-24T19:05:24.000Z | lib/ex_aws/polly/parsers.ex | lawitschka/ex_aws_polly | 0ad8542d78da1371e95258b8bbc65706139bcec8 | [
"MIT"
] | 2 | 2020-05-28T11:31:41.000Z | 2022-03-21T11:08:53.000Z | lib/ex_aws/polly/parsers.ex | lawitschka/ex_aws_polly | 0ad8542d78da1371e95258b8bbc65706139bcec8 | [
"MIT"
] | 3 | 2018-04-07T20:39:48.000Z | 2022-03-15T11:32:26.000Z | defmodule ExAws.Polly.Parsers do
def parse({:ok, %{body: json}}, :describe_voices) do
Poison.decode(json)
end
def parse(response, _action) do
response
end
end
| 17.6 | 54 | 0.6875 |
c8a86845311b2dfcd2214a346051e6146b65d063 | 1,082 | ex | Elixir | lib/ingram_marketplace/model/post_customer_details.ex | fbettag/ingram_marketplace.ex | 1c63d391707058fb8cf58fdefd54e2ade97acf4b | [
"MIT"
] | null | null | null | lib/ingram_marketplace/model/post_customer_details.ex | fbettag/ingram_marketplace.ex | 1c63d391707058fb8cf58fdefd54e2ade97acf4b | [
"MIT"
] | null | null | null | lib/ingram_marketplace/model/post_customer_details.ex | fbettag/ingram_marketplace.ex | 1c63d391707058fb8cf58fdefd54e2ade97acf4b | [
"MIT"
] | null | null | null | defmodule Ingram.Marketplace.Model.PostCustomerDetails do
@moduledoc """
The extended representation of a specific customer with additional arrays of addresses and contacts, and the preferred language of the customer.
"""
@derive [Poison.Encoder]
defstruct [
:taxRegId,
:contactPersons,
:id,
:... | 27.74359 | 146 | 0.642329 |
c8a86b7e38bbb6163b273989213a7a95a573a5ab | 1,943 | ex | Elixir | apps/ewallet/lib/ewallet/web/v1/serializers/exchange_pair_serializer.ex | jimpeebles/ewallet | ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405 | [
"Apache-2.0"
] | null | null | null | apps/ewallet/lib/ewallet/web/v1/serializers/exchange_pair_serializer.ex | jimpeebles/ewallet | ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405 | [
"Apache-2.0"
] | null | null | null | apps/ewallet/lib/ewallet/web/v1/serializers/exchange_pair_serializer.ex | jimpeebles/ewallet | ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405 | [
"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... | 35.327273 | 74 | 0.740607 |
c8a87b199cd256b3a2058daaf8f68a6635a83fdc | 12,757 | ex | Elixir | lib/codes/codes_m92.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_m92.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_m92.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | defmodule IcdCode.ICDCode.Codes_M92 do
alias IcdCode.ICDCode
def _M9200 do
%ICDCode{full_code: "M9200",
category_code: "M92",
short_code: "00",
full_name: "Juvenile osteochondrosis of humerus, unspecified arm",
short_name: "Juvenile osteochondrosis of humerus, unspecified ... | 39.618012 | 103 | 0.644822 |
c8a8b5547340b009df288b7409b1148e550c8a29 | 1,762 | exs | Elixir | test/survey_tool/successful_report_generation_test.exs | paulfioravanti/survey_tool_elixir | aacf14c97d9e00697c81e6d27f16506644a337c8 | [
"MIT"
] | 1 | 2020-01-18T23:27:50.000Z | 2020-01-18T23:27:50.000Z | test/survey_tool/successful_report_generation_test.exs | paulfioravanti/survey_tool_elixir | aacf14c97d9e00697c81e6d27f16506644a337c8 | [
"MIT"
] | null | null | null | test/survey_tool/successful_report_generation_test.exs | paulfioravanti/survey_tool_elixir | aacf14c97d9e00697c81e6d27f16506644a337c8 | [
"MIT"
] | null | null | null | defmodule SuccessfulReportGenerationTest do
use ExUnit.Case
import ExUnit.CaptureIO
@report_output File.read!("test/fixtures/output/valid_survey_output.txt")
setup(%{argv: argv}) do
output = capture_io(fn -> SurveyTool.main(argv) end)
{:ok, [output: output]}
end
describe "Generating a report, onl... | 32.62963 | 78 | 0.632804 |
c8a8c56cd2f59821b13c29d00401f08256c055fc | 3,673 | ex | Elixir | apps/realtime/lib/realtime/vehicle_positions.ex | bus-detective/bus_detective_ng | ef54684d4f640384bd20a4d5550ff51ab440190b | [
"MIT"
] | 8 | 2018-07-06T14:44:10.000Z | 2021-08-19T17:24:25.000Z | apps/realtime/lib/realtime/vehicle_positions.ex | bus-detective/bus_detective_ng | ef54684d4f640384bd20a4d5550ff51ab440190b | [
"MIT"
] | 12 | 2018-07-15T18:43:04.000Z | 2022-02-10T16:07:47.000Z | apps/realtime/lib/realtime/vehicle_positions.ex | bus-detective/bus_detective_ng | ef54684d4f640384bd20a4d5550ff51ab440190b | [
"MIT"
] | 1 | 2018-07-13T17:30:20.000Z | 2018-07-13T17:30:20.000Z | defmodule Realtime.VehiclePositions do
@moduledoc """
Main entrypoint for realtime vehicle positions
"""
use GenServer
require Logger
alias Realtime.Messages.FeedMessage
alias Realtime.{VehiclePositionFinder, VehiclePositionsSource}
@behaviour VehiclePositionsSource
def child_spec(args) do
%{... | 26.615942 | 110 | 0.646338 |
c8a8d118875c142071597eb52f396884a2ec6bea | 3,207 | ex | Elixir | lib/day12/n_body4.ex | anamba/adventofcode2019 | a5de43ddce8b40f67c3017f349d8563c73c94e20 | [
"MIT"
] | null | null | null | lib/day12/n_body4.ex | anamba/adventofcode2019 | a5de43ddce8b40f67c3017f349d8563c73c94e20 | [
"MIT"
] | null | null | null | lib/day12/n_body4.ex | anamba/adventofcode2019 | a5de43ddce8b40f67c3017f349d8563c73c94e20 | [
"MIT"
] | null | null | null | # rewritten to use lists instead of maps... the slowest one
defmodule Day12.NBody4 do
def part2 do
# puzzle input
positions = [
{-1, 7, 3},
{12, 2, -13},
{14, 18, -8},
{17, 4, -4}
]
# example 1
# positions = [
# {-1, 0, 2},
# {2, -10, -7},
# {4, -8, 8},
... | 28.380531 | 93 | 0.53851 |
c8a8eb041e6824a51c3ba1a1b627339d16014e43 | 136 | ex | Elixir | apps/bus_detective/lib/bus_detective/postgres_types.ex | bus-detective/bus_detective_ng | ef54684d4f640384bd20a4d5550ff51ab440190b | [
"MIT"
] | 8 | 2018-07-06T14:44:10.000Z | 2021-08-19T17:24:25.000Z | apps/bus_detective/lib/bus_detective/postgres_types.ex | bus-detective/bus_detective_ng | ef54684d4f640384bd20a4d5550ff51ab440190b | [
"MIT"
] | 12 | 2018-07-15T18:43:04.000Z | 2022-02-10T16:07:47.000Z | apps/bus_detective/lib/bus_detective/postgres_types.ex | bus-detective/bus_detective_ng | ef54684d4f640384bd20a4d5550ff51ab440190b | [
"MIT"
] | 1 | 2018-07-13T17:30:20.000Z | 2018-07-13T17:30:20.000Z | Postgrex.Types.define(
BusDetective.PostgresTypes,
[Geo.PostGIS.Extension] ++ Ecto.Adapters.Postgres.extensions(),
json: Poison
)
| 22.666667 | 65 | 0.757353 |
c8a9026a612b29c61057b184fc88edd959ae56bc | 1,126 | ex | Elixir | test/support/conn_case.ex | molossus/api | 39da836aa244239ad8bf55371f3e1573541eeb7a | [
"BSD-2-Clause"
] | 1 | 2016-02-23T11:31:18.000Z | 2016-02-23T11:31:18.000Z | test/support/conn_case.ex | molossus/api | 39da836aa244239ad8bf55371f3e1573541eeb7a | [
"BSD-2-Clause"
] | null | null | null | test/support/conn_case.ex | molossus/api | 39da836aa244239ad8bf55371f3e1573541eeb7a | [
"BSD-2-Clause"
] | null | null | null | defmodule BalanceSheet.ConnCase do
@moduledoc """
This module defines the test case to be used by
tests that require setting up a connection.
Such tests rely on `Phoenix.ConnTest` and also
import other functionality to make it easier
to build and query models.
Finally, if the test case interacts with th... | 25.022222 | 74 | 0.712256 |
c8a935b38b3695d6052d400ad87c8c918b3eb726 | 1,514 | ex | Elixir | clients/monitoring/lib/google_api/monitoring/v3/model/tcp_check.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/monitoring/lib/google_api/monitoring/v3/model/tcp_check.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/monitoring/lib/google_api/monitoring/v3/model/tcp_check.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... | 32.212766 | 219 | 0.73712 |
c8a9947966d0652fc106c33632834bbdb8d9ce39 | 2,204 | ex | Elixir | lib/jaeger/thrift/agent/zipkin/annotation.ex | konstantinzolotarev/frettchen | 4aced1fb3d1571893ae09c18a31b05352c80cd9e | [
"MIT"
] | 3 | 2018-10-27T18:18:14.000Z | 2020-11-27T11:47:41.000Z | lib/jaeger/thrift/agent/zipkin/annotation.ex | konstantinzolotarev/frettchen | 4aced1fb3d1571893ae09c18a31b05352c80cd9e | [
"MIT"
] | null | null | null | lib/jaeger/thrift/agent/zipkin/annotation.ex | konstantinzolotarev/frettchen | 4aced1fb3d1571893ae09c18a31b05352c80cd9e | [
"MIT"
] | 3 | 2019-01-07T12:32:44.000Z | 2021-09-05T07:24:09.000Z | defmodule(Jaeger.Thrift.Agent.Zipkin.Annotation) do
_ = "Auto-generated Thrift struct zipkincore.Annotation"
_ = "1: i64 timestamp"
_ = "2: string value"
_ = "3: zipkincore.Endpoint host"
defstruct(timestamp: nil, value: nil, host: nil)
@type(t :: %__MODULE__{})
def(new) do
%__MODULE__{}
end
defmo... | 32.895522 | 122 | 0.611615 |
c8a9c88ea901038a6c1e229ea1f0ee2c294f3d90 | 3,661 | ex | Elixir | clients/web_security_scanner/lib/google_api/web_security_scanner/v1alpha/model/scan_config.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/web_security_scanner/lib/google_api/web_security_scanner/v1alpha/model/scan_config.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/web_security_scanner/lib/google_api/web_security_scanner/v1alpha/model/scan_config.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 49.472973 | 286 | 0.734772 |
c8a9d5ef1f5aaca584986cd43a3e4244c19af958 | 188 | exs | Elixir | priv/repo/migrations/20180919203520_rename_signup_deadline_to_registration_deadline_in_contests.exs | richeterre/jumubase-phoenix | 7584f890af117d496971b5284bf9de798e22266f | [
"MIT"
] | 2 | 2019-01-20T07:03:30.000Z | 2019-04-11T10:20:14.000Z | priv/repo/migrations/20180919203520_rename_signup_deadline_to_registration_deadline_in_contests.exs | richeterre/jumubase-phoenix | 7584f890af117d496971b5284bf9de798e22266f | [
"MIT"
] | 6 | 2018-09-20T05:52:14.000Z | 2019-04-23T19:27:39.000Z | priv/repo/migrations/20180919203520_rename_signup_deadline_to_registration_deadline_in_contests.exs | richeterre/jumubase-phoenix | 7584f890af117d496971b5284bf9de798e22266f | [
"MIT"
] | null | null | null | defmodule Jumubase.Repo.Migrations.RenameSignupDeadlineToDeadlineInContests do
use Ecto.Migration
def change do
rename table(:contests), :signup_deadline, to: :deadline
end
end
| 23.5 | 78 | 0.797872 |
c8a9f45855c5c52efa31600914076e1179e13c28 | 774 | ex | Elixir | Microsoft.Azure.Management.Network/lib/microsoft/azure/management/network/model/application_gateway_firewall_rule_set.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | 4 | 2018-09-29T03:43:15.000Z | 2021-04-01T18:30:46.000Z | Microsoft.Azure.Management.Network/lib/microsoft/azure/management/network/model/application_gateway_firewall_rule_set.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | null | null | null | Microsoft.Azure.Management.Network/lib/microsoft/azure/management/network/model/application_gateway_firewall_rule_set.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | null | null | null | # NOTE: This class is auto generated by the swagger code generator program.
# https://github.com/swagger-api/swagger-codegen.git
# Do not edit the class manually.
defmodule Microsoft.Azure.Management.Network.Model.ApplicationGatewayFirewallRuleSet do
@moduledoc """
A web application firewall rule set.
"""
@de... | 22.764706 | 106 | 0.664083 |
c8aa0c62ce5302318f8b2f36f73b9169070488df | 225 | exs | Elixir | priv/repo/migrations/20181021134437_add_artist_to_pieces.exs | richeterre/jumubase-phoenix | 7584f890af117d496971b5284bf9de798e22266f | [
"MIT"
] | 2 | 2019-01-20T07:03:30.000Z | 2019-04-11T10:20:14.000Z | priv/repo/migrations/20181021134437_add_artist_to_pieces.exs | richeterre/jumubase-phoenix | 7584f890af117d496971b5284bf9de798e22266f | [
"MIT"
] | 6 | 2018-09-20T05:52:14.000Z | 2019-04-23T19:27:39.000Z | priv/repo/migrations/20181021134437_add_artist_to_pieces.exs | richeterre/jumubase-phoenix | 7584f890af117d496971b5284bf9de798e22266f | [
"MIT"
] | null | null | null | defmodule Jumubase.Repo.Migrations.AddArtistToPieces do
use Ecto.Migration
def change do
alter table(:pieces) do
add :artist, :string
end
rename table(:pieces), :composer_name, to: :composer
end
end
| 18.75 | 56 | 0.706667 |
c8aa0f5d68d3a42b94eeb6c11e0f578a7f5eaaab | 1,495 | ex | Elixir | lib/credo/cli/command/info/info_command.ex | andyl/credo | 4743c3e378a77177f79b5a822f38566ebcf85116 | [
"MIT"
] | null | null | null | lib/credo/cli/command/info/info_command.ex | andyl/credo | 4743c3e378a77177f79b5a822f38566ebcf85116 | [
"MIT"
] | null | null | null | lib/credo/cli/command/info/info_command.ex | andyl/credo | 4743c3e378a77177f79b5a822f38566ebcf85116 | [
"MIT"
] | null | null | null | defmodule Credo.CLI.Command.Info.InfoCommand do
@moduledoc false
use Credo.CLI.Command,
short_description: "Show useful debug information",
cli_switches: Credo.CLI.Command.Suggest.SuggestCommand.cli_switches()
alias Credo.CLI.Command.Info.InfoOutput
alias Credo.CLI.Task
alias Credo.Execution
def ... | 23.359375 | 81 | 0.600669 |
c8aa1594f868cb24ade10abd745043c0947ee3eb | 3,253 | ex | Elixir | clients/you_tube/lib/google_api/you_tube/v3/model/channel_section.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/you_tube/lib/google_api/you_tube/v3/model/channel_section.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/you_tube/lib/google_api/you_tube/v3/model/channel_section.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 ... | 48.552239 | 255 | 0.723025 |
c8aa1d719778086749dac50b108f9de5a0b13360 | 2,329 | ex | Elixir | lib/fun_with_flags/store/persistent.ex | gburd/fun_with_flags | db44e02278d7c448c3a06327affe33ab0473a1da | [
"MIT"
] | null | null | null | lib/fun_with_flags/store/persistent.ex | gburd/fun_with_flags | db44e02278d7c448c3a06327affe33ab0473a1da | [
"MIT"
] | null | null | null | lib/fun_with_flags/store/persistent.ex | gburd/fun_with_flags | db44e02278d7c448c3a06327affe33ab0473a1da | [
"MIT"
] | null | null | null | defmodule FunWithFlags.Store.Persistent do
@moduledoc """
A behaviour module for implementing persistence adapters.
The package ships with persistence adapters for Redis and Ecto, but you
can provide your own adapters by adopting this behaviour.
"""
@doc """
A persistent adapter should return either
[... | 31.90411 | 95 | 0.641477 |
c8aa252773c2df09b03f2fd427e397663ec58d14 | 3,598 | ex | Elixir | clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1p1beta1__label_annotation.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1p1beta1__label_annotation.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1p1beta1__label_annotation.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... | 39.108696 | 191 | 0.732351 |
c8aa295f37b6576400b9cfccd2f82b32b7155305 | 400 | ex | Elixir | lib/hobot/supervisor.ex | niku/hobot | 5e71f51af7737fa4ce7ddffcc2a01235ec41d0c0 | [
"MIT"
] | 11 | 2017-08-19T11:10:48.000Z | 2022-01-24T07:05:12.000Z | lib/hobot/supervisor.ex | niku/beam_homunculus | 5e71f51af7737fa4ce7ddffcc2a01235ec41d0c0 | [
"MIT"
] | null | null | null | lib/hobot/supervisor.ex | niku/beam_homunculus | 5e71f51af7737fa4ce7ddffcc2a01235ec41d0c0 | [
"MIT"
] | null | null | null | defmodule Hobot.Supervisor do
@moduledoc false
use DynamicSupervisor
def start_link([]) do
DynamicSupervisor.start_link(__MODULE__, [], name: __MODULE__)
end
def start_child(arg) do
spec = Supervisor.Spec.worker(Hobot.Bot.Supervisor, [arg])
DynamicSupervisor.start_child(__MODULE__, spec)
end
... | 21.052632 | 66 | 0.7325 |
c8aa2b3dd2de3e665e4d6dc5ff5539ff8b244225 | 1,485 | ex | Elixir | lib/mulix/tools/attrib_tools.ex | ORBAT/mulix | 75503f79eb1832329afe96540cfd0e2dc9c01575 | [
"MIT"
] | null | null | null | lib/mulix/tools/attrib_tools.ex | ORBAT/mulix | 75503f79eb1832329afe96540cfd0e2dc9c01575 | [
"MIT"
] | null | null | null | lib/mulix/tools/attrib_tools.ex | ORBAT/mulix | 75503f79eb1832329afe96540cfd0e2dc9c01575 | [
"MIT"
] | null | null | null | defmodule AttribTools do
def attrib_ast(name, value, ctx),
do: {:@, [context: Elixir, import: Kernel], [{name, [context: ctx], [value]}]}
@doc """
Takes a variable (so AST like {:atom, [...], [...]}) or an atom plus and a value, and turns them into
`@name value`
"""
defmacro attrib({name, _, _}, value)... | 30.306122 | 103 | 0.650505 |
c8aa3000889359cc384acf691f6b7b5ca55941da | 1,804 | ex | Elixir | lib/shippex/carrier.ex | workwithmax/shippex | abc520f04570313806ea894d1dd611184af556e9 | [
"MIT"
] | null | null | null | lib/shippex/carrier.ex | workwithmax/shippex | abc520f04570313806ea894d1dd611184af556e9 | [
"MIT"
] | null | null | null | lib/shippex/carrier.ex | workwithmax/shippex | abc520f04570313806ea894d1dd611184af556e9 | [
"MIT"
] | null | null | null | defmodule Shippex.Carrier do
@moduledoc """
Defines a behaviour for implementing a new Carrier module. Includes a helper
function for fetching the Carrier module.
"""
alias Shippex.Carrier
alias Shippex.{Shipment, Service, Rate, Transaction}
@callback fetch_rates(Shipment.t()) :: [{atom, Rate.t()}]
@c... | 30.576271 | 90 | 0.639135 |
c8aa30257b7688f9df816569337c9ef8dd3c6837 | 136 | exs | Elixir | apps/torrent_downloader/test/torrent_downloader_test.exs | sschneider1207/ex_torrent | 39e58891ddb642b058a4739752453276aa16ce0d | [
"MIT"
] | null | null | null | apps/torrent_downloader/test/torrent_downloader_test.exs | sschneider1207/ex_torrent | 39e58891ddb642b058a4739752453276aa16ce0d | [
"MIT"
] | null | null | null | apps/torrent_downloader/test/torrent_downloader_test.exs | sschneider1207/ex_torrent | 39e58891ddb642b058a4739752453276aa16ce0d | [
"MIT"
] | null | null | null | defmodule TorrentDownloaderTest do
use ExUnit.Case
doctest TorrentDownloader
test "the truth" do
assert 1 + 1 == 2
end
end
| 15.111111 | 34 | 0.720588 |
c8aa4b51af2028c819e1fda59b2055da58e2c7f3 | 1,101 | exs | Elixir | test/commands/group/member/remove_test.exs | matusf/cog | 71708301c7dc570fb0d3498a50f47a70ef957788 | [
"Apache-2.0"
] | 1,003 | 2016-02-23T17:21:12.000Z | 2022-02-20T14:39:35.000Z | test/commands/group/member/remove_test.exs | matusf/cog | 71708301c7dc570fb0d3498a50f47a70ef957788 | [
"Apache-2.0"
] | 906 | 2016-02-22T22:54:19.000Z | 2022-03-11T15:19:43.000Z | test/commands/group/member/remove_test.exs | matusf/cog | 71708301c7dc570fb0d3498a50f47a70ef957788 | [
"Apache-2.0"
] | 95 | 2016-02-23T13:42:31.000Z | 2021-11-30T14:39:55.000Z | defmodule Cog.Test.Commands.Group.Member.RemoveTest do
use Cog.CommandCase, command_module: Cog.Commands.Group
alias Cog.Commands.Group.Member
import Cog.Support.ModelUtilities,
only: [user: 1, group: 1, add_to_group: 2]
setup [:with_user, :with_group]
test "can be removed from a group", %{user: us... | 27.525 | 70 | 0.659401 |
c8aa6b062bda63146df32ab3910c57a7f9d08a88 | 3,136 | ex | Elixir | lib/pushest/socket/data/presence.ex | bigardone/pushest | 3b2712a816f4bab940bd0f5db53b950a04e21401 | [
"MIT"
] | 31 | 2018-03-29T10:14:28.000Z | 2021-01-24T16:02:05.000Z | lib/pushest/socket/data/presence.ex | bigardone/pushest | 3b2712a816f4bab940bd0f5db53b950a04e21401 | [
"MIT"
] | 4 | 2018-03-28T21:28:41.000Z | 2020-11-09T15:40:55.000Z | lib/pushest/socket/data/presence.ex | bigardone/pushest | 3b2712a816f4bab940bd0f5db53b950a04e21401 | [
"MIT"
] | 6 | 2018-04-16T07:37:46.000Z | 2022-03-10T22:11:39.000Z | defmodule Pushest.Socket.Data.Presence do
@moduledoc ~S"""
Structure representing presence information, connected user IDs and data of them.
"""
defstruct count: 0, hash: %{}, ids: [], me: %{}
@doc ~S"""
Merges current Presence struct with new presence data frame. Always keeps :me
part from current stat... | 30.446602 | 124 | 0.569196 |
c8aa708425454ccc8c08c0b0fee0a7137c647523 | 1,793 | ex | Elixir | clients/android_device_provisioning/lib/google_api/android_device_provisioning/v1/model/customer_remove_configuration_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/android_device_provisioning/lib/google_api/android_device_provisioning/v1/model/customer_remove_configuration_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/android_device_provisioning/lib/google_api/android_device_provisioning/v1/model/customer_remove_configuration_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 34.480769 | 164 | 0.766313 |
c8aacd35755245456d95263548142d2ec0488e95 | 1,089 | ex | Elixir | test/support/channel_case.ex | matin360/TaksoWebApp | 4dd8fef625ecc2364fe1d6e18e73c96c59d15349 | [
"MIT"
] | null | null | null | test/support/channel_case.ex | matin360/TaksoWebApp | 4dd8fef625ecc2364fe1d6e18e73c96c59d15349 | [
"MIT"
] | null | null | null | test/support/channel_case.ex | matin360/TaksoWebApp | 4dd8fef625ecc2364fe1d6e18e73c96c59d15349 | [
"MIT"
] | null | null | null | defmodule TaksoWeb.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 data structures and query the data layer.
Finally, if the test case interacts wit... | 29.432432 | 86 | 0.734619 |
c8aafeb77d3f24214cc1888b397b065d3b8e6cc0 | 13,724 | ex | Elixir | clients/content/lib/google_api/content/v2/api/products.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/api/products.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/api/products.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 ... | 47 | 215 | 0.642087 |
c8ab9c1a7d752c3b17fa422fa623cf9620289c22 | 59,982 | ex | Elixir | clients/storage/lib/google_api/storage/v1/api/objects.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/storage/lib/google_api/storage/v1/api/objects.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/storage/lib/google_api/storage/v1/api/objects.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 54.529091 | 520 | 0.696909 |
c8aba450abd67a10f04e7b387a136fc558075a20 | 323 | ex | Elixir | lib/dqs/error.ex | chun37/dqs | 143f8bf87d1b3022f3344ac5023797677f7a44a9 | [
"MIT"
] | 6 | 2021-03-17T13:38:27.000Z | 2021-05-09T04:01:08.000Z | lib/dqs/error.ex | chun37/dqs | 143f8bf87d1b3022f3344ac5023797677f7a44a9 | [
"MIT"
] | 12 | 2021-03-21T14:44:11.000Z | 2021-07-31T09:35:00.000Z | lib/dqs/error.ex | chun37/dqs | 143f8bf87d1b3022f3344ac5023797677f7a44a9 | [
"MIT"
] | 3 | 2021-04-11T11:08:59.000Z | 2021-11-02T15:36:04.000Z | defmodule Dqs.Error do
def rate_limit(msg) do
Nostrum.Api.create_message(msg.channel_id, "レートリミットによりアップデートできませんでした。しばらく経ってから再度お試しください。")
end
def retry_after(msg, retry_after) do
Nostrum.Api.create_message(msg.channel_id, ~s/レートリミットによりアップデートできませんでした。約#{Float.floor(retry_after/60000)}分後に再度行ってください。/)
end
... | 35.888889 | 124 | 0.79257 |
c8abc2eecc652cb0b0f08d37da65964f0c8a5d4d | 9,343 | exs | Elixir | test/hexpm_web/controllers/package_controller_test.exs | Benjamin-Philip/hexpm | 6f38244f81bbabd234c660f46ea973849ba77a7f | [
"Apache-2.0"
] | 691 | 2017-03-08T09:15:45.000Z | 2022-03-23T22:04:47.000Z | test/hexpm_web/controllers/package_controller_test.exs | Benjamin-Philip/hexpm | 6f38244f81bbabd234c660f46ea973849ba77a7f | [
"Apache-2.0"
] | 491 | 2017-03-07T12:58:42.000Z | 2022-03-29T23:32:54.000Z | test/hexpm_web/controllers/package_controller_test.exs | Benjamin-Philip/hexpm | 6f38244f81bbabd234c660f46ea973849ba77a7f | [
"Apache-2.0"
] | 200 | 2017-03-12T23:03:39.000Z | 2022-03-05T17:55:52.000Z | defmodule HexpmWeb.PackageControllerTest do
use HexpmWeb.ConnCase, async: true
setup do
user1 = insert(:user)
user2 = insert(:user)
repository1 = insert(:repository)
repository2 = insert(:repository)
package1 = insert(:package)
package2 = insert(:package)
package3 = insert(:package, r... | 30.937086 | 95 | 0.609226 |
c8abdd8e9c3c846317da3d46362254a7b5b4d702 | 1,072 | ex | Elixir | lib/hui/http/httpoison.ex | bluedevelz/hui | e5f24a30ade504db3adbffab1aeec90d490ac6a0 | [
"Apache-2.0"
] | null | null | null | lib/hui/http/httpoison.ex | bluedevelz/hui | e5f24a30ade504db3adbffab1aeec90d490ac6a0 | [
"Apache-2.0"
] | null | null | null | lib/hui/http/httpoison.ex | bluedevelz/hui | e5f24a30ade504db3adbffab1aeec90d490ac6a0 | [
"Apache-2.0"
] | null | null | null | defmodule Hui.Http.Httpoison do
alias Hui.Http
@behaviour Hui.Http
@impl Hui.Http
def dispatch(req) do
body = if req.body == nil, do: "", else: req.body
HTTPoison.request(req.method, req.url, body, req.headers, req.options)
|> handle_response
end
defp handle_response({:ok, %{body: body, head... | 28.972973 | 115 | 0.63806 |
c8abefec8e60f95769ac63e2a40833e9843088a0 | 189 | exs | Elixir | apps/firestorm_notifier/test/firestorm_notifier/notification_consumer_test.exs | CircleCI-Public/firestorm | 9ca2c46a2b2377370347ad94d6003eeb77be38d6 | [
"MIT"
] | 10 | 2017-06-28T08:06:52.000Z | 2022-03-19T17:49:21.000Z | apps/firestorm_notifier/test/firestorm_notifier/notification_consumer_test.exs | CircleCI-Public/firestorm | 9ca2c46a2b2377370347ad94d6003eeb77be38d6 | [
"MIT"
] | null | null | null | apps/firestorm_notifier/test/firestorm_notifier/notification_consumer_test.exs | CircleCI-Public/firestorm | 9ca2c46a2b2377370347ad94d6003eeb77be38d6 | [
"MIT"
] | 2 | 2017-10-21T12:01:02.000Z | 2021-01-29T10:26:22.000Z | defmodule FirestormNotifier.NotificationConsumerTest do
@moduledoc false
use ExUnit.Case
test "sends an email when an event is sent over the producer it subscribes to" do
end
end
| 21 | 83 | 0.78836 |
c8ac0bc9d282b39de1c3bcf111e2adf76e61b4ca | 11,005 | ex | Elixir | lib/phoenix/logger.ex | joshchernoff/phoenix | cd1541a8bc12cdb2501be6b08403558e82c5b72b | [
"MIT"
] | 1 | 2020-04-14T09:49:46.000Z | 2020-04-14T09:49:46.000Z | lib/phoenix/logger.ex | joshchernoff/phoenix | cd1541a8bc12cdb2501be6b08403558e82c5b72b | [
"MIT"
] | null | null | null | lib/phoenix/logger.ex | joshchernoff/phoenix | cd1541a8bc12cdb2501be6b08403558e82c5b72b | [
"MIT"
] | null | null | null | defmodule Phoenix.Logger do
@moduledoc """
Instrumenter to handle logging of various instrumentation events.
## Instrumentation
Phoenix uses the `:telemetry` library for instrumentation. The following events
are published by Phoenix with the following measurements and metadata:
* `[:phoenix, :endpoint,... | 34.071207 | 186 | 0.642072 |
c8ac3054d1695ae40e28247b2d8498e15293466c | 3,710 | exs | Elixir | lib/elixir/test/elixir/calendar/holocene.exs | IvanRublev/elixir | 1ce201aa1ebbfc1666c4e4bde64f706a89629d59 | [
"Apache-2.0"
] | 2 | 2020-06-02T18:00:28.000Z | 2021-12-10T03:21:42.000Z | lib/elixir/test/elixir/calendar/holocene.exs | IvanRublev/elixir | 1ce201aa1ebbfc1666c4e4bde64f706a89629d59 | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/calendar/holocene.exs | IvanRublev/elixir | 1ce201aa1ebbfc1666c4e4bde64f706a89629d59 | [
"Apache-2.0"
] | 1 | 2018-01-09T20:10:59.000Z | 2018-01-09T20:10:59.000Z | defmodule Calendar.Holocene do
# This calendar is used to test conversions between calendars.
# It implements the Holocene calendar, which is based on the
# Proleptic Gregorian calendar with every year + 10000.
@behaviour Calendar
def date(year, month, day) do
%Date{year: year, month: month, day: day, c... | 24.407895 | 88 | 0.662264 |
c8ac5e8f593cb1317f9ddd176eb4954cf53c60fe | 7,358 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/attached_disk.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/compute/lib/google_api/compute/v1/model/attached_disk.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/compute/lib/google_api/compute/v1/model/attached_disk.ex | dazuma/elixir-google-api | 6a9897168008efe07a6081d2326735fe332e522c | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 81.755556 | 1,032 | 0.730769 |
c8ac627ccb5a5aad5e6bae9608349db09fffaf98 | 32 | ex | Elixir | lib/eggman/handler.ex | ohr486/eggman | 82eb614dab64aadaa556454b9c3c89ca9ed3c9b2 | [
"MIT"
] | 1 | 2020-01-13T20:50:40.000Z | 2020-01-13T20:50:40.000Z | lib/eggman/handler.ex | ohr486/eggman | 82eb614dab64aadaa556454b9c3c89ca9ed3c9b2 | [
"MIT"
] | 25 | 2019-07-02T05:57:46.000Z | 2021-07-26T05:20:55.000Z | lib/eggman/handler.ex | ohr486/eggman | 82eb614dab64aadaa556454b9c3c89ca9ed3c9b2 | [
"MIT"
] | null | null | null | defmodule Eggman.Handler do
end
| 10.666667 | 27 | 0.84375 |
c8ac7b1e6a399a3edf008903b6e58ec4a212eb3f | 499 | ex | Elixir | elixir/compute-the-perimeter-of-a-polygon.ex | felipe-araujo/functional-programming | f69ed723f17fba4fd5a956ee27935a770252b7ce | [
"MIT"
] | null | null | null | elixir/compute-the-perimeter-of-a-polygon.ex | felipe-araujo/functional-programming | f69ed723f17fba4fd5a956ee27935a770252b7ce | [
"MIT"
] | null | null | null | elixir/compute-the-perimeter-of-a-polygon.ex | felipe-araujo/functional-programming | f69ed723f17fba4fd5a956ee27935a770252b7ce | [
"MIT"
] | null | null | null | n = IO.read(:stdio, :line)
|> String.trim
|> String.to_integer
points = Enum.to_list(1..n)
|> Enum.map(fn _ -> IO.read(:stdio, :line) end)
|> Enum.map(&String.trim/1)
|> Enum.map(fn line -> String.split(line, " ") end)
|> Enum.map( fn [a, b] -> [String.to_integer(a), String.to_integer(b)] end)
Enum.zip(tl... | 31.1875 | 88 | 0.577154 |
c8ac7d914637de248445473c25463acb00070be6 | 114 | ex | Elixir | lib/buy_the_food/repo.ex | Fomich686/buy_the_food | ca4638a4efbb5f86347948ad07bcf7827f6523f9 | [
"Apache-2.0"
] | null | null | null | lib/buy_the_food/repo.ex | Fomich686/buy_the_food | ca4638a4efbb5f86347948ad07bcf7827f6523f9 | [
"Apache-2.0"
] | null | null | null | lib/buy_the_food/repo.ex | Fomich686/buy_the_food | ca4638a4efbb5f86347948ad07bcf7827f6523f9 | [
"Apache-2.0"
] | null | null | null | defmodule BuyTheFood.Repo do
use Ecto.Repo,
otp_app: :buy_the_food,
adapter: Ecto.Adapters.Postgres
end
| 19 | 35 | 0.745614 |
c8ac82428cc0ef212c0311a155aab8f6506239ad | 1,206 | ex | Elixir | magic_logo/lib/magic_logo/endpoint.ex | jshahs/magiclogo | 5b18cb4efff04c3547d167bab194d2806ec20d8a | [
"MIT"
] | null | null | null | magic_logo/lib/magic_logo/endpoint.ex | jshahs/magiclogo | 5b18cb4efff04c3547d167bab194d2806ec20d8a | [
"MIT"
] | null | null | null | magic_logo/lib/magic_logo/endpoint.ex | jshahs/magiclogo | 5b18cb4efff04c3547d167bab194d2806ec20d8a | [
"MIT"
] | null | null | null | defmodule MagicLogo.Endpoint do
use Phoenix.Endpoint, otp_app: :magic_logo
socket "/socket", MagicLogo.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.St... | 28.046512 | 69 | 0.718076 |
c8ac9f77d9373084fac6cddb8bee2d27c0917f89 | 1,859 | ex | Elixir | clients/display_video/lib/google_api/display_video/v1/model/gender_assigned_targeting_option_details.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/display_video/lib/google_api/display_video/v1/model/gender_assigned_targeting_option_details.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/display_video/lib/google_api/display_video/v1/model/gender_assigned_targeting_option_details.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... | 37.18 | 170 | 0.753093 |
c8acdaf5aa6fceb90b8c11c43a250b124090ca5f | 9,965 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/api/dynamic_targeting_keys.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/api/dynamic_targeting_keys.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/api/dynamic_targeting_keys.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 42.404255 | 286 | 0.636427 |
c8acdeea84fbc30fe6dd33bb4880c1e56fbc1ab3 | 31,328 | exs | Elixir | test/elixir_sense/signature_test.exs | J3RN/elixir_sense | 0e978dcfbf0a0602743917e3e71dfa40bf7467cf | [
"MIT",
"Unlicense"
] | null | null | null | test/elixir_sense/signature_test.exs | J3RN/elixir_sense | 0e978dcfbf0a0602743917e3e71dfa40bf7467cf | [
"MIT",
"Unlicense"
] | null | null | null | test/elixir_sense/signature_test.exs | J3RN/elixir_sense | 0e978dcfbf0a0602743917e3e71dfa40bf7467cf | [
"MIT",
"Unlicense"
] | null | null | null | defmodule ElixirSense.SignatureTest do
use ExUnit.Case, async: true
alias ElixirSense.Providers.Signature
doctest Signature
describe "type signature" do
test "find signatures from local type" do
code = """
defmodule MyModule do
@typep my(a) :: {a, nil}
@typep my(a, b) :: {a, b}... | 29.978947 | 237 | 0.427732 |
c8ad02508bba3770c1026eec7a73c9c0f4c41038 | 64 | exs | Elixir | test/test_helper.exs | anndream/phoenix-commerce | 5e4471fa8fd1ac402d4df68fe7ccbcb0f7a53296 | [
"MIT"
] | 229 | 2016-09-21T09:24:46.000Z | 2020-05-16T22:41:31.000Z | test/test_helper.exs | sadiqmmm/ex-shop | 5e4471fa8fd1ac402d4df68fe7ccbcb0f7a53296 | [
"MIT"
] | 3 | 2016-09-21T10:26:50.000Z | 2016-10-19T07:25:12.000Z | test/test_helper.exs | sadiqmmm/ex-shop | 5e4471fa8fd1ac402d4df68fe7ccbcb0f7a53296 | [
"MIT"
] | 32 | 2016-09-22T05:19:05.000Z | 2019-11-01T04:07:13.000Z | ExUnit.start
Ecto.Adapters.SQL.Sandbox.mode(Ap.Repo, :manual)
| 12.8 | 48 | 0.765625 |
c8ad3b24ef1a719d6f3dfa4a3daf1769f0654492 | 1,948 | exs | Elixir | test/upload/adapters/s3_test.exs | joydrive/upload | 81614ab11a8f90add04cbfbbd38dc476a99c9bd0 | [
"MIT"
] | null | null | null | test/upload/adapters/s3_test.exs | joydrive/upload | 81614ab11a8f90add04cbfbbd38dc476a99c9bd0 | [
"MIT"
] | null | null | null | test/upload/adapters/s3_test.exs | joydrive/upload | 81614ab11a8f90add04cbfbbd38dc476a99c9bd0 | [
"MIT"
] | null | null | null | defmodule Upload.Adapters.S3Test do
use ExUnit.Case, async: true
doctest Upload.Adapters.S3
alias Upload.Adapters.S3, as: Adapter
@fixture Path.expand("../../fixtures/text.txt", __DIR__)
@upload %Upload{path: @fixture, filename: "text.txt", key: "foo/text.txt"}
defp ensure_bucket_exists! do
with {:e... | 31.934426 | 98 | 0.654517 |
c8ad505c1a2b27fe5744becfd91be8926a15014e | 6,750 | ex | Elixir | lib/bugsnag/payload.ex | team-telnyx/bugsnag-elixir | 496b214c1eac57c156b6ce8d36dcc65c7723588c | [
"MIT"
] | null | null | null | lib/bugsnag/payload.ex | team-telnyx/bugsnag-elixir | 496b214c1eac57c156b6ce8d36dcc65c7723588c | [
"MIT"
] | 5 | 2022-01-12T06:19:15.000Z | 2022-03-24T06:25:19.000Z | lib/bugsnag/payload.ex | team-telnyx/bugsnag-elixir | 496b214c1eac57c156b6ce8d36dcc65c7723588c | [
"MIT"
] | null | null | null | defmodule Bugsnag.Payload do
require Logger
@notifier_info %{
name: "Bugsnag Elixir",
version: Bugsnag.Mixfile.project()[:version],
url: Bugsnag.Mixfile.project()[:package][:links][:GitHub]
}
defstruct api_key: nil, notifier: @notifier_info, events: nil
def new(exception, stacktrace, options) w... | 31.25 | 97 | 0.635556 |
c8ad9798d6c4ca1eb5cf03a7f899b8fb44ee3af1 | 131 | exs | Elixir | apps/bus_detective/test/test_helper.exs | bus-detective/bus_detective_ng | ef54684d4f640384bd20a4d5550ff51ab440190b | [
"MIT"
] | 8 | 2018-07-06T14:44:10.000Z | 2021-08-19T17:24:25.000Z | apps/bus_detective/test/test_helper.exs | bus-detective/bus_detective_ng | ef54684d4f640384bd20a4d5550ff51ab440190b | [
"MIT"
] | 12 | 2018-07-15T18:43:04.000Z | 2022-02-10T16:07:47.000Z | apps/bus_detective/test/test_helper.exs | bus-detective/bus_detective_ng | ef54684d4f640384bd20a4d5550ff51ab440190b | [
"MIT"
] | 1 | 2018-07-13T17:30:20.000Z | 2018-07-13T17:30:20.000Z | ExUnit.start()
Ecto.Adapters.SQL.Sandbox.mode(BusDetective.Repo, :manual)
{:ok, _} = Application.ensure_all_started(:ex_machina)
| 21.833333 | 58 | 0.770992 |
c8ad999999405d7223b930c20cdb040baf0a0972 | 4,188 | ex | Elixir | lib/ex_vatcheck/vies_client/xml_parser.ex | taxjar/ex_vatcheck | 5848b53a0a034031556b7c4e34147ea25b1c0658 | [
"MIT"
] | 10 | 2020-01-13T18:56:34.000Z | 2022-03-23T14:52:55.000Z | lib/ex_vatcheck/vies_client/xml_parser.ex | taxjar/ex_vatcheck | 5848b53a0a034031556b7c4e34147ea25b1c0658 | [
"MIT"
] | 3 | 2021-03-19T16:31:59.000Z | 2021-12-10T10:18:53.000Z | lib/ex_vatcheck/vies_client/xml_parser.ex | taxjar/ex_vatcheck | 5848b53a0a034031556b7c4e34147ea25b1c0658 | [
"MIT"
] | 2 | 2020-09-24T16:39:42.000Z | 2021-03-19T20:48:15.000Z | defmodule ExVatcheck.VIESClient.XMLParser do
@moduledoc """
A module for parsing XML responses from VIES client requests into Elixir maps.
"""
alias ExVatcheck.Xml
@type response :: %{
country_code: binary,
vat_number: binary,
request_date: binary,
valid: boolean,
... | 32.465116 | 138 | 0.663324 |
c8adabfab7d50065dfb6a8d5e4e0922cfeb1ed55 | 469 | exs | Elixir | priv/repo/migrations/20160905183001_create_product.exs | anndream/phoenix-commerce | 5e4471fa8fd1ac402d4df68fe7ccbcb0f7a53296 | [
"MIT"
] | 229 | 2016-09-21T09:24:46.000Z | 2020-05-16T22:41:31.000Z | priv/repo/migrations/20160905183001_create_product.exs | sadiqmmm/ex-shop | 5e4471fa8fd1ac402d4df68fe7ccbcb0f7a53296 | [
"MIT"
] | 3 | 2016-09-21T10:26:50.000Z | 2016-10-19T07:25:12.000Z | priv/repo/migrations/20160905183001_create_product.exs | sadiqmmm/ex-shop | 5e4471fa8fd1ac402d4df68fe7ccbcb0f7a53296 | [
"MIT"
] | 32 | 2016-09-22T05:19:05.000Z | 2019-11-01T04:07:13.000Z | defmodule Ap.Repo.Migrations.CreateProduct do
use Ecto.Migration
def change do
create table(:products) do
add :title, :string
add :slug, :string
add :page_title, :string
add :content, :text
add :vendor, :string
add :demo_url, :string
add :meta_description, :text
... | 20.391304 | 45 | 0.633262 |
c8adb767239eb42717a3c2af5d4c3a4225fa875d | 505 | exs | Elixir | mix.exs | cybrox/elixir-udp-ws-streaming-testsuite | 5718cbe3af927825668aae46ddb9aa0e2060b0dd | [
"MIT"
] | 2 | 2019-01-29T09:50:59.000Z | 2020-12-09T10:39:56.000Z | mix.exs | cybrox/elixir-udp-ws-streaming-testsuite | 5718cbe3af927825668aae46ddb9aa0e2060b0dd | [
"MIT"
] | null | null | null | mix.exs | cybrox/elixir-udp-ws-streaming-testsuite | 5718cbe3af927825668aae46ddb9aa0e2060b0dd | [
"MIT"
] | null | null | null | defmodule Relay.MixProject do
use Mix.Project
def project do
[
app: :relay,
version: "0.1.0",
elixir: "~> 1.7",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applica... | 17.413793 | 59 | 0.560396 |
c8add82bfa83ef55801dfaa0e1160a939b9dafe2 | 20,797 | ex | Elixir | lib/aws/macie2.ex | ahsandar/aws-elixir | 25de8b6c3a1401bde737cfc26b0679b14b058f23 | [
"Apache-2.0"
] | null | null | null | lib/aws/macie2.ex | ahsandar/aws-elixir | 25de8b6c3a1401bde737cfc26b0679b14b058f23 | [
"Apache-2.0"
] | null | null | null | lib/aws/macie2.ex | ahsandar/aws-elixir | 25de8b6c3a1401bde737cfc26b0679b14b058f23 | [
"Apache-2.0"
] | null | null | null | # WARNING: DO NOT EDIT, AUTO-GENERATED CODE!
# See https://github.com/aws-beam/aws-codegen for more details.
defmodule AWS.Macie2 do
@moduledoc """
Amazon Macie is a fully managed data security and data privacy service that
uses machine learning and pattern matching to discover and protect your
sensitive data ... | 30.184325 | 107 | 0.651392 |
c8ade6b35d910719897af53ea0e8241da3dbaff3 | 2,315 | exs | Elixir | test/data_structures/singly_linked_list_test.exs | iccowan/Elixir | cc346493c0b24796fb07ad05de5b065ff132089e | [
"MIT"
] | 131 | 2019-10-28T19:44:55.000Z | 2022-03-27T21:48:48.000Z | test/data_structures/singly_linked_list_test.exs | iccowan/Elixir | cc346493c0b24796fb07ad05de5b065ff132089e | [
"MIT"
] | 52 | 2021-08-09T22:40:20.000Z | 2022-03-07T16:56:36.000Z | test/data_structures/singly_linked_list_test.exs | iccowan/Elixir | cc346493c0b24796fb07ad05de5b065ff132089e | [
"MIT"
] | 50 | 2019-11-17T16:59:04.000Z | 2022-03-23T00:16:51.000Z | defmodule Algorithms.DataStructures.SinglyLinkedListTest do
alias Algorithms.DataStructures.SinglyLinkedList
alias SinglyLinkedList.LinkedList
alias SinglyLinkedList.Node
use ExUnit.Case
doctest Algorithms
describe "add_node_head/2" do
test "it works when the list is empty" do
node = %Node{value... | 31.712329 | 91 | 0.601728 |
c8ade896537e5733594bf84ac7c3c8766ae1ab10 | 5,131 | ex | Elixir | lib/sanbase/transfers/btc_transfers.ex | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | 1 | 2022-01-30T19:51:39.000Z | 2022-01-30T19:51:39.000Z | lib/sanbase/transfers/btc_transfers.ex | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | null | null | null | lib/sanbase/transfers/btc_transfers.ex | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | null | null | null | defmodule Sanbase.Transfers.BtcTransfers do
alias Sanbase.ClickhouseRepo
@type transaction :: %{
from_address: String.t(),
to_address: String.t(),
trx_value: float,
trx_hash: String.t(),
datetime: Datetime.t()
}
@spec top_transfers(
%DateTime{}... | 29.153409 | 146 | 0.614695 |
c8adec122bc7884a30727517e83f22ca4bbff935 | 8,370 | ex | Elixir | lib/changelog/data/news/news_item.ex | boneskull/changelog.com | 2fa2e356bb0e8fcf038c46a4a947fef98822e37d | [
"MIT"
] | null | null | null | lib/changelog/data/news/news_item.ex | boneskull/changelog.com | 2fa2e356bb0e8fcf038c46a4a947fef98822e37d | [
"MIT"
] | null | null | null | lib/changelog/data/news/news_item.ex | boneskull/changelog.com | 2fa2e356bb0e8fcf038c46a4a947fef98822e37d | [
"MIT"
] | null | null | null | defmodule Changelog.NewsItem do
use Changelog.Data, default_sort: :published_at
alias Changelog.{Episode, Files, NewsItemTopic, NewsIssue, NewsQueue, NewsSource,
Person, Post, Regexp, UrlKit}
defenum Status, declined: -1, draft: 0, queued: 1, submitted: 2, published: 3
defenum Type, link: 0... | 44.521277 | 159 | 0.654241 |
c8adf8954f1fb5cd5e18c5e81ae0ec368a3138ea | 185 | exs | Elixir | config/dev.exs | kzmake/ex_nifcloud | 87e69bb78fba4132b767decbc33eeb10bd79c593 | [
"MIT"
] | null | null | null | config/dev.exs | kzmake/ex_nifcloud | 87e69bb78fba4132b767decbc33eeb10bd79c593 | [
"MIT"
] | null | null | null | config/dev.exs | kzmake/ex_nifcloud | 87e69bb78fba4132b767decbc33eeb10bd79c593 | [
"MIT"
] | null | null | null | use Mix.Config
config :ex_nifcloud,
debug_requests: true,
access_key_id: [{:system, "ACCESS_KEY_ID"}],
secret_access_key: [{:system, "SECRET_ACCESS_KEY"}],
region: "jp-east-1"
| 23.125 | 54 | 0.713514 |
c8adfcaa0a34a5548342f4e2aca3370860330b7b | 2,002 | exs | Elixir | config/prod.exs | michaelroudnitski/hello-phoenix | 3fee75784948b37732a0feba1a31e22b83281e7f | [
"Apache-2.0"
] | null | null | null | config/prod.exs | michaelroudnitski/hello-phoenix | 3fee75784948b37732a0feba1a31e22b83281e7f | [
"Apache-2.0"
] | null | null | null | config/prod.exs | michaelroudnitski/hello-phoenix | 3fee75784948b37732a0feba1a31e22b83281e7f | [
"Apache-2.0"
] | null | null | null | use Mix.Config
# For production, don't forget to configure the url host
# to something meaningful, Phoenix uses this information
# when generating URLs.
#
# Note we also include the path to a cache manifest
# containing the digested version of static files. This
# manifest is generated by the `mix phx.digest` task,
# ... | 35.75 | 66 | 0.712288 |
c8adfd49e136b27876ce210658e71a2f32f78d8c | 1,108 | ex | Elixir | lib/watch_periodically.ex | tjheeta/tz | f2cc72e0b0c910a1bfaa6366049aed8b91ae151d | [
"Apache-2.0"
] | null | null | null | lib/watch_periodically.ex | tjheeta/tz | f2cc72e0b0c910a1bfaa6366049aed8b91ae151d | [
"Apache-2.0"
] | null | null | null | lib/watch_periodically.ex | tjheeta/tz | f2cc72e0b0c910a1bfaa6366049aed8b91ae151d | [
"Apache-2.0"
] | null | null | null | if Code.ensure_loaded?(Mint.HTTP) do
defmodule Tz.WatchPeriodically do
use GenServer
require Logger
alias Tz.Updater
alias Tz.PeriodsProvider
defp watch() do
Logger.debug("Tz is checking for IANA time zone database updates")
case Updater.fetch_iana_tz_version() do
{:ok, lates... | 25.181818 | 102 | 0.625451 |
c8ae251c31c80b095377d32730d8950131ccb3eb | 266 | exs | Elixir | 13-phoenix/chirp/test/chirp_web/views/layout_view_test.exs | kranfix/elixir-playground | 28f1314b137eb591946f501647e76d8017070ffa | [
"MIT"
] | 5 | 2015-09-11T15:02:54.000Z | 2020-10-14T05:16:18.000Z | 13-phoenix/chirp/test/chirp_web/views/layout_view_test.exs | kranfix/elixir-playground | 28f1314b137eb591946f501647e76d8017070ffa | [
"MIT"
] | 21 | 2019-12-28T11:18:09.000Z | 2022-01-02T10:32:36.000Z | Elixir/Phoenix/chirp/test/chirp_web/views/layout_view_test.exs | Jac21/GistsCollection | 4200b0cecf00af443711ca127028fccbbe8cfbf5 | [
"MIT"
] | 2 | 2016-11-07T23:16:56.000Z | 2020-10-14T05:16:49.000Z | defmodule ChirpWeb.LayoutViewTest do
use ChirpWeb.ConnCase, async: true
# When testing helpers, you may want to import Phoenix.HTML and
# use functions such as safe_to_string() to convert the helper
# result into an HTML string.
# import Phoenix.HTML
end
| 29.555556 | 65 | 0.763158 |
c8ae6a5306e04a1eec52a572734e8f8eb4332bf0 | 1,505 | ex | Elixir | lib/jaya_currency_converter/clients/exchange_rates_client.ex | franknfjr/jaya_currency_converter | 56dfcf40b2ed2c9307fa39d7a5d1121cf4a1a37e | [
"MIT"
] | null | null | null | lib/jaya_currency_converter/clients/exchange_rates_client.ex | franknfjr/jaya_currency_converter | 56dfcf40b2ed2c9307fa39d7a5d1121cf4a1a37e | [
"MIT"
] | null | null | null | lib/jaya_currency_converter/clients/exchange_rates_client.ex | franknfjr/jaya_currency_converter | 56dfcf40b2ed2c9307fa39d7a5d1121cf4a1a37e | [
"MIT"
] | null | null | null | defmodule JayaCurrencyConverter.Clients.ExchangeRatesClient do
@moduledoc """
This is the ExchangeRatesClient module that makes the request for the Exchanges Rates API.
"""
use Tesla
plug Tesla.Middleware.BaseUrl, "http://api.exchangeratesapi.io/v1"
plug Tesla.Middleware.Headers, [{"User-Agent", "request"... | 27.363636 | 92 | 0.59402 |
c8ae90e8ec420c83e567f4a668b9802b27e4c7bd | 98 | exs | Elixir | test/pushest/api/utils_test.exs | bigardone/pushest | 3b2712a816f4bab940bd0f5db53b950a04e21401 | [
"MIT"
] | 31 | 2018-03-29T10:14:28.000Z | 2021-01-24T16:02:05.000Z | test/pushest/api/utils_test.exs | bigardone/pushest | 3b2712a816f4bab940bd0f5db53b950a04e21401 | [
"MIT"
] | 4 | 2018-03-28T21:28:41.000Z | 2020-11-09T15:40:55.000Z | test/pushest/api/utils_test.exs | bigardone/pushest | 3b2712a816f4bab940bd0f5db53b950a04e21401 | [
"MIT"
] | 6 | 2018-04-16T07:37:46.000Z | 2022-03-10T22:11:39.000Z | defmodule Pushest.Api.UtilsTest do
use ExUnit.Case, async: true
doctest Pushest.Api.Utils
end
| 19.6 | 34 | 0.785714 |
c8aeabfb38b74cb69e2ba0e6c20294fa566ef4f8 | 1,212 | exs | Elixir | mix.exs | maco/breezex | a578e64716ca873a1868f0177bf5404df2c156c7 | [
"MIT"
] | null | null | null | mix.exs | maco/breezex | a578e64716ca873a1868f0177bf5404df2c156c7 | [
"MIT"
] | null | null | null | mix.exs | maco/breezex | a578e64716ca873a1868f0177bf5404df2c156c7 | [
"MIT"
] | null | null | null | defmodule Breezex.MixProject do
use Mix.Project
@version "0.1.0"
def project do
[
app: :breezex,
version: @version,
elixir: "~> 1.11",
start_permanent: Mix.env() == :prod,
deps: deps(),
package: package(),
docs: docs(),
description: "A wrapper client for the Br... | 21.642857 | 83 | 0.561881 |
c8aeba67dbc90ba9bf3f980c35beb9143c60c51a | 12,156 | ex | Elixir | lib/fake_server.ex | JacksonIsaac/fake_server | a646287b252d1ce4da4b61eac50e897a6423b7ed | [
"Apache-2.0"
] | null | null | null | lib/fake_server.ex | JacksonIsaac/fake_server | a646287b252d1ce4da4b61eac50e897a6423b7ed | [
"Apache-2.0"
] | null | null | null | lib/fake_server.ex | JacksonIsaac/fake_server | a646287b252d1ce4da4b61eac50e897a6423b7ed | [
"Apache-2.0"
] | null | null | null | defmodule FakeServer do
alias FakeServer.HTTP.Server
alias FakeServer.Agents.EnvAgent
@moduledoc """
Manage HTTP servers on your tests
"""
@doc """
Runs a test with an HTTP server.
If you need an HTTP server on your test, just write it using `test_with_server/3` instead of `ExUnit.Case.test/3`. Thei... | 37.060976 | 319 | 0.693485 |
c8aec5c4625748403aec61f8a59d5050460e8853 | 912 | ex | Elixir | clients/abusive_experience_report/lib/google_api/abusive_experience_report/v1/metadata.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/abusive_experience_report/lib/google_api/abusive_experience_report/v1/metadata.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/abusive_experience_report/lib/google_api/abusive_experience_report/v1/metadata.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # 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... | 33.777778 | 74 | 0.766447 |
c8aee17834b7650ff658e3a7c066afbf13340374 | 524 | exs | Elixir | test/sticky/offers/offers_test.exs | kawikadkekahuna/Stickylixer | b81a1953522d5b5873f8893d54ac01e87891af73 | [
"BSD-3-Clause"
] | null | null | null | test/sticky/offers/offers_test.exs | kawikadkekahuna/Stickylixer | b81a1953522d5b5873f8893d54ac01e87891af73 | [
"BSD-3-Clause"
] | null | null | null | test/sticky/offers/offers_test.exs | kawikadkekahuna/Stickylixer | b81a1953522d5b5873f8893d54ac01e87891af73 | [
"BSD-3-Clause"
] | null | null | null | defmodule StickyTest.OffersTest do
use Sticky.StickyCase, async: true
setup do
mock(fn _body ->
%Tesla.Env{status: 200, body: %{"response_code" => "100"}}
end)
:ok
end
test "offer_view/1 by campaign_id" do
assert {:ok, _} = Sticky.Offers.offer_view(%{campaign_id: 1})
assert_sticky_r... | 23.818182 | 65 | 0.666031 |
c8aef3a7788c57e4ea957f4e61f4e61784ac1aaf | 3,041 | exs | Elixir | apps/roadtrip_web/test/roadtrip_web/controllers/vehicle_controller_test.exs | myrrlyn/roadtrip | 424d85dd6a713e99c27f97f052cff88dbbeb6423 | [
"MIT"
] | 2 | 2022-01-19T17:59:21.000Z | 2022-01-19T18:05:05.000Z | apps/roadtrip_web/test/roadtrip_web/controllers/vehicle_controller_test.exs | myrrlyn/roadtrip | 424d85dd6a713e99c27f97f052cff88dbbeb6423 | [
"MIT"
] | null | null | null | apps/roadtrip_web/test/roadtrip_web/controllers/vehicle_controller_test.exs | myrrlyn/roadtrip | 424d85dd6a713e99c27f97f052cff88dbbeb6423 | [
"MIT"
] | null | null | null | defmodule RoadtripWeb.VehicleControllerTest do
use RoadtripWeb.ConnCase
import Roadtrip.GarageFixtures
alias Roadtrip.Garage.Vehicle
@create_attrs %{
make: "Subaru",
model: "Outback",
name: "Savah",
vin: "4S4BSANC6K3352864",
year: 2019
}
@update_attrs %{
make: "Pontiac",
model:... | 30.41 | 92 | 0.662282 |
c8aefa72475c37b2dec1043c703dd302a5890781 | 604 | exs | Elixir | mix.exs | bryanhuntesl/poc_cowboy_ws_elixir | fac46929619407e0c67709de38a74e30c44cb7be | [
"Apache-2.0"
] | null | null | null | mix.exs | bryanhuntesl/poc_cowboy_ws_elixir | fac46929619407e0c67709de38a74e30c44cb7be | [
"Apache-2.0"
] | null | null | null | mix.exs | bryanhuntesl/poc_cowboy_ws_elixir | fac46929619407e0c67709de38a74e30c44cb7be | [
"Apache-2.0"
] | null | null | null | defmodule CowboyWs.MixProject do
use Mix.Project
def project do
[
app: :cowboy_ws,
version: "0.1.0",
elixir: "~> 1.7",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_... | 20.133333 | 88 | 0.572848 |
c8af0c6f80adac85bf5e4d71f55be865ef3c393c | 6,634 | ex | Elixir | lib/cluster.ex | F2011B/hordetest | 960bdb545bbcfae642a50061db926ae6c74266f5 | [
"MIT"
] | null | null | null | lib/cluster.ex | F2011B/hordetest | 960bdb545bbcfae642a50061db926ae6c74266f5 | [
"MIT"
] | null | null | null | lib/cluster.ex | F2011B/hordetest | 960bdb545bbcfae642a50061db926ae6c74266f5 | [
"MIT"
] | null | null | null | defmodule Hordetest.Cluster do
@connect_env "HORDE_TEST_NODE"
require Logger
def start_link(opts \\ []) do
sup = start_supervisor()
connect_initial_nodes(opts)
{:ok, sup}
end
def stop() do
Supervisor.stop(Hordetest.Cluster.Supervisor)
end
def start_payload_process(payload_spec, payload... | 28.843478 | 115 | 0.636268 |
c8af351c5422d19da8b6e40a2e1cbcc2562a073a | 698 | ex | Elixir | lib/live_sup_web/live/team/components/teams_header_component.ex | livesup-dev/livesup | eaf9ffc78d3043bd9e3408f0f4df26ed16eb8446 | [
"Apache-2.0",
"MIT"
] | null | null | null | lib/live_sup_web/live/team/components/teams_header_component.ex | livesup-dev/livesup | eaf9ffc78d3043bd9e3408f0f4df26ed16eb8446 | [
"Apache-2.0",
"MIT"
] | 3 | 2022-02-23T15:51:48.000Z | 2022-03-14T22:52:43.000Z | lib/live_sup_web/live/team/components/teams_header_component.ex | livesup-dev/livesup | eaf9ffc78d3043bd9e3408f0f4df26ed16eb8446 | [
"Apache-2.0",
"MIT"
] | null | null | null | defmodule LiveSupWeb.Teams.Components.TeamsHeaderComponent do
use LiveSupWeb, :component
def render(assigns) do
~H"""
<div class="justify-between flex flex-row space-x-4 border-b dark:border-primary-darker px-4 py-2">
<div class="flex items-center basis-4/5 flex-wrap">
<%= link "Home", class:... | 38.777778 | 155 | 0.657593 |
c8af640748492c822969ded8abdf4635f8e0f2dc | 1,556 | exs | Elixir | mix.exs | Wachiwi/speedcontrol | eecff3aab909d6b9264e72f9310ebb062d4ca0fe | [
"MIT"
] | null | null | null | mix.exs | Wachiwi/speedcontrol | eecff3aab909d6b9264e72f9310ebb062d4ca0fe | [
"MIT"
] | null | null | null | mix.exs | Wachiwi/speedcontrol | eecff3aab909d6b9264e72f9310ebb062d4ca0fe | [
"MIT"
] | null | null | null | defmodule Speedcontrol.MixProject do
use Mix.Project
def project do
[
app: :speedcontrol,
version: "0.1.0",
elixir: "~> 1.7",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix, :gettext] ++ Mix.compilers(),
start_permanent: Mix.env() == :prod,
aliases: alia... | 25.096774 | 84 | 0.585476 |
c8af98cbdb7d45dac44cf33c31a1641005a94801 | 1,337 | ex | Elixir | lib/hangman_web/endpoint.ex | empex2019liveview/hangman | 3f3f4a0c65542a6441e2aa313b1ec5e5dbe35503 | [
"MIT"
] | 1 | 2020-01-30T18:24:20.000Z | 2020-01-30T18:24:20.000Z | lib/hangman_web/endpoint.ex | empex2019liveview/hangman | 3f3f4a0c65542a6441e2aa313b1ec5e5dbe35503 | [
"MIT"
] | null | null | null | lib/hangman_web/endpoint.ex | empex2019liveview/hangman | 3f3f4a0c65542a6441e2aa313b1ec5e5dbe35503 | [
"MIT"
] | null | null | null | defmodule HangmanWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :hangman
socket "/socket", HangmanWeb.UserSocket,
websocket: true,
longpoll: false
# Push LiveView through /live
socket "/live", Phoenix.LiveView.Socket
# Serve at "/" the static files from "priv/static" directory.
#
# You should s... | 26.74 | 69 | 0.709798 |
c8afc884923b9329baf997754b243826d94d04bd | 966 | ex | Elixir | backend/postgres_auth/lib/postgres_auth/Guardian.ex | jacruzca/elixir_auth | b2bb9da04270211a7d6aa7c9c160ab3ec2a12662 | [
"MIT"
] | null | null | null | backend/postgres_auth/lib/postgres_auth/Guardian.ex | jacruzca/elixir_auth | b2bb9da04270211a7d6aa7c9c160ab3ec2a12662 | [
"MIT"
] | null | null | null | backend/postgres_auth/lib/postgres_auth/Guardian.ex | jacruzca/elixir_auth | b2bb9da04270211a7d6aa7c9c160ab3ec2a12662 | [
"MIT"
] | null | null | null | defmodule PostgresAuth.Guardian do
use Guardian, otp_app: :postgres_auth
def subject_for_token(resource, _claims) do
# You can use any value for the subject of your token but
# it should be useful in retrieving the resource later, see
# how it being used on `resource_from_claims/1` function.
# A un... | 31.16129 | 74 | 0.699793 |
c8afd85be41458bdb6fd854c70489a27bcab937f | 59 | exs | Elixir | apps/camera/config/prod.exs | paulanthonywilson/mcam | df9c5aaae00b568749dff22613636f5cb92f905a | [
"MIT"
] | null | null | null | apps/camera/config/prod.exs | paulanthonywilson/mcam | df9c5aaae00b568749dff22613636f5cb92f905a | [
"MIT"
] | 8 | 2020-11-16T09:59:12.000Z | 2020-11-16T10:13:07.000Z | apps/camera/config/prod.exs | paulanthonywilson/mcam | df9c5aaae00b568749dff22613636f5cb92f905a | [
"MIT"
] | null | null | null | use Mix.Config
config :camera, Camera.Cam, Camera.RealCam
| 14.75 | 42 | 0.779661 |
c8aff5f1379ab0a21e9187aee985613e99ccadce | 7,655 | exs | Elixir | test/analyzer_test.exs | haldihri3/lowendinsight | 238f568125a43f5694b2fc93cf2445c88fa7edb1 | [
"BSD-3-Clause"
] | null | null | null | test/analyzer_test.exs | haldihri3/lowendinsight | 238f568125a43f5694b2fc93cf2445c88fa7edb1 | [
"BSD-3-Clause"
] | null | null | null | test/analyzer_test.exs | haldihri3/lowendinsight | 238f568125a43f5694b2fc93cf2445c88fa7edb1 | [
"BSD-3-Clause"
] | null | null | null | # Copyright (C) 2020 by the Georgia Tech Research Institute (GTRI)
# This software may be modified and distributed under the terms of
# the BSD 3-Clause license. See the LICENSE file for details.
defmodule AnalyzerTest do
use ExUnit.Case
doctest AnalyzerModule
setup_all do
{:ok, tmp_path} = Temp.path("lei-a... | 33.871681 | 126 | 0.634749 |
c8b00478fe9fd8828d6b778d66394d09a129edcf | 1,127 | exs | Elixir | config/config.exs | thecodeboss/minecraft | e5e6c54a1e93497432363aef4700e4be7a145bb3 | [
"MIT"
] | 29 | 2018-09-03T15:34:33.000Z | 2021-12-30T19:36:42.000Z | config/config.exs | thecodeboss/minecraft | e5e6c54a1e93497432363aef4700e4be7a145bb3 | [
"MIT"
] | 76 | 2018-07-13T13:19:09.000Z | 2022-03-23T15:27:43.000Z | config/config.exs | thecodeboss/minecraft | e5e6c54a1e93497432363aef4700e4be7a145bb3 | [
"MIT"
] | 2 | 2020-10-06T15:50:17.000Z | 2021-12-29T08:06:48.000Z | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on this project, this
# file won't be loaded nor affect the paren... | 36.354839 | 73 | 0.75244 |
c8b029ec42a4d85f757e0f63c6b3e2f6cc06cac2 | 20,886 | ex | Elixir | lib/binance.ex | paulofabiano/binance.ex | 8f6f9e6f4a07a79853286a7a1d42dfe809548786 | [
"MIT"
] | null | null | null | lib/binance.ex | paulofabiano/binance.ex | 8f6f9e6f4a07a79853286a7a1d42dfe809548786 | [
"MIT"
] | null | null | null | lib/binance.ex | paulofabiano/binance.ex | 8f6f9e6f4a07a79853286a7a1d42dfe809548786 | [
"MIT"
] | null | null | null | defmodule Binance do
alias Binance.Rest.HTTPClient
# Server
@doc """
Pings binance API. Returns `{:ok, %{}}` if successful, `{:error, reason}` otherwise
"""
def ping() do
HTTPClient.get_binance("/api/v3/ping")
end
@doc """
Get binance server time in unix epoch.
Returns `{:ok, time}` if succe... | 26.949677 | 147 | 0.602796 |
c8b02bc72707fe9ebd3fceadee6b96d066f29de5 | 95 | exs | Elixir | test/views/page_view_test.exs | timwis/ueberauth_example | 7e4d8b41c08d344a606a59554265d385555000a1 | [
"MIT"
] | null | null | null | test/views/page_view_test.exs | timwis/ueberauth_example | 7e4d8b41c08d344a606a59554265d385555000a1 | [
"MIT"
] | 3 | 2020-07-17T15:34:04.000Z | 2021-05-09T22:10:14.000Z | test/views/page_view_test.exs | timwis/ueberauth_example | 7e4d8b41c08d344a606a59554265d385555000a1 | [
"MIT"
] | null | null | null | defmodule UeberauthExample.PageViewTest do
use UeberauthExampleWeb.ConnCase, async: true
end
| 23.75 | 47 | 0.852632 |
c8b03ad3eba92bdff176a9fc4a4a0a11bfa9e0bb | 2,914 | exs | Elixir | test/plp_test.exs | kianmeng/tds | 36f228275c2bfde2baa45fe70d29d1eb1d44379b | [
"Apache-2.0"
] | null | null | null | test/plp_test.exs | kianmeng/tds | 36f228275c2bfde2baa45fe70d29d1eb1d44379b | [
"Apache-2.0"
] | null | null | null | test/plp_test.exs | kianmeng/tds | 36f228275c2bfde2baa45fe70d29d1eb1d44379b | [
"Apache-2.0"
] | 1 | 2021-09-07T15:25:40.000Z | 2021-09-07T15:25:40.000Z | defmodule PLPTest do
import Tds.TestHelper
require Logger
use ExUnit.Case, async: true
@tag timeout: 50000
setup do
opts = Application.fetch_env!(:tds, :opts)
{:ok, pid} = Tds.start_link(opts)
{:ok, [pid: pid]}
end
test "Max and Large PLP returns", context do
# :dbg.tracer()
# :dbg... | 24.487395 | 86 | 0.542553 |
c8b051c7e5d4b9b8f09d41c94348c58ca2691a7a | 20,269 | ex | Elixir | lib/ash/actions/side_load.ex | doawoo/ash | 9d59ae5611785bbd2668b0865c743116633afac1 | [
"MIT"
] | null | null | null | lib/ash/actions/side_load.ex | doawoo/ash | 9d59ae5611785bbd2668b0865c743116633afac1 | [
"MIT"
] | null | null | null | lib/ash/actions/side_load.ex | doawoo/ash | 9d59ae5611785bbd2668b0865c743116633afac1 | [
"MIT"
] | null | null | null | defmodule Ash.Actions.SideLoad do
@moduledoc false
alias Ash.Engine
alias Ash.Engine.Request
require Ash.Query
def requests(
query,
use_data_for_filter? \\ true,
root_data \\ [],
root_query \\ nil,
path \\ []
)
def requests(nil, _, _, _, _), do: []
def req... | 27.72777 | 101 | 0.563817 |
c8b065304e59f32851c8b1a71fa9045349b03c7e | 6,199 | exs | Elixir | lib/mix/test/mix/tasks/new_test.exs | tmbb/exdocs_makedown_demo | 6a0039c54d2fa10d79c080efcef8d70d359678f8 | [
"Apache-2.0"
] | 1 | 2017-07-25T21:46:25.000Z | 2017-07-25T21:46:25.000Z | lib/mix/test/mix/tasks/new_test.exs | tmbb/exdocs_makedown_demo | 6a0039c54d2fa10d79c080efcef8d70d359678f8 | [
"Apache-2.0"
] | null | null | null | lib/mix/test/mix/tasks/new_test.exs | tmbb/exdocs_makedown_demo | 6a0039c54d2fa10d79c080efcef8d70d359678f8 | [
"Apache-2.0"
] | 1 | 2017-07-25T21:46:48.000Z | 2017-07-25T21:46:48.000Z | Code.require_file "../../test_helper.exs", __DIR__
defmodule Mix.Tasks.NewTest do
use MixTest.Case
test "new" do
in_tmp "new", fn ->
Mix.Tasks.New.run ["hello_world"]
assert_file "hello_world/mix.exs", fn(file) ->
assert file =~ "app: :hello_world"
assert file =~ "version: \"0.1.0... | 32.286458 | 93 | 0.624617 |
c8b09904d240878d76a52b28b1feccd960c6b4f8 | 6,744 | ex | Elixir | lib/google_apis/change_analyzer.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | lib/google_apis/change_analyzer.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | lib/google_apis/change_analyzer.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... | 35.308901 | 127 | 0.655397 |
c8b09b7ed9d060c08627b01fea8aa3653d1e6999 | 6,323 | ex | Elixir | lib/bmp3xx.ex | elixir-sensors/bmp3xx | 39ea2d62ed345204b1d45d3e280429e7cd8f1f7a | [
"Apache-2.0"
] | 1 | 2021-05-28T23:32:36.000Z | 2021-05-28T23:32:36.000Z | lib/bmp3xx.ex | mnishiguchi/bmp3xx | 39ea2d62ed345204b1d45d3e280429e7cd8f1f7a | [
"Apache-2.0"
] | null | null | null | lib/bmp3xx.ex | mnishiguchi/bmp3xx | 39ea2d62ed345204b1d45d3e280429e7cd8f1f7a | [
"Apache-2.0"
] | null | null | null | defmodule BMP3XX do
@moduledoc """
Read pressure and temperature from a Bosch BMP388 or BMP390 sensor
"""
use GenServer
require Logger
@type sensor_mod :: BMP3XX.BMP388 | BMP3XX.BMP390
@type bus_address :: 0x76 | 0x77
@typedoc """
BMP3XX GenServer start_link options
* `:name` - a name for the ... | 31.147783 | 96 | 0.692235 |
c8b0e0dbdd7a084078d23bb169439a3bfbd92968 | 3,099 | exs | Elixir | test/login_test.exs | manukall/phoenix_token_auth | 389deeda9e2dc8c93e9e5c066e9df72cff19cdff | [
"MIT"
] | 190 | 2015-03-11T14:05:44.000Z | 2021-11-13T03:42:59.000Z | test/login_test.exs | manukall/phoenix_token_auth | 389deeda9e2dc8c93e9e5c066e9df72cff19cdff | [
"MIT"
] | 48 | 2015-03-14T17:41:25.000Z | 2016-08-16T11:37:37.000Z | test/login_test.exs | manukall/phoenix_token_auth | 389deeda9e2dc8c93e9e5c066e9df72cff19cdff | [
"MIT"
] | 62 | 2015-03-20T04:31:34.000Z | 2020-08-24T05:05:12.000Z | defmodule LoginTest do
use PhoenixTokenAuth.Case
use Plug.Test
import RouterHelper
alias PhoenixTokenAuth.TestRouter
alias PhoenixTokenAuth.Registrator
alias PhoenixTokenAuth.Confirmator
alias PhoenixTokenAuth.UserHelper
import PhoenixTokenAuth.Util
@email "user@example.com"
@username "user@exampl... | 38.259259 | 146 | 0.682478 |
c8b10018b614f85b6ca6090c08f927405b9a353b | 3,638 | exs | Elixir | test/game/command/look_test.exs | stevegrossi/ex_venture | e02d5a63fdb882d92cfb4af3e15f7b48ad7054aa | [
"MIT"
] | null | null | null | test/game/command/look_test.exs | stevegrossi/ex_venture | e02d5a63fdb882d92cfb4af3e15f7b48ad7054aa | [
"MIT"
] | null | null | null | test/game/command/look_test.exs | stevegrossi/ex_venture | e02d5a63fdb882d92cfb4af3e15f7b48ad7054aa | [
"MIT"
] | null | null | null | defmodule Game.Command.LookTest do
use Data.ModelCase
doctest Game.Command.Look
@socket Test.Networking.Socket
@room Test.Game.Room
alias Data.Item
alias Game.Command.Look
alias Game.Environment
describe "normal room" do
setup do
start_and_clear_items()
item = create_item(%{name: "Sho... | 28.421875 | 103 | 0.582463 |
c8b1190376f29bf5c724ac6ea57268650e48ba69 | 10,528 | ex | Elixir | clients/double_click_bid_manager/lib/google_api/double_click_bid_manager/v1/api/queries.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/double_click_bid_manager/lib/google_api/double_click_bid_manager/v1/api/queries.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/double_click_bid_manager/lib/google_api/double_click_bid_manager/v1/api/queries.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 37.870504 | 170 | 0.672397 |
c8b11f0e039bdb4910d37e2078937e1ff61b304a | 351 | exs | Elixir | priv/repo/seeds.exs | elexeum/elexeum | a38bccdd21035e47b286e2ec128b3d217cc4d0bf | [
"Apache-2.0"
] | 2 | 2022-02-16T11:07:01.000Z | 2022-03-14T08:29:48.000Z | priv/repo/seeds.exs | elexeum/elexeum | a38bccdd21035e47b286e2ec128b3d217cc4d0bf | [
"Apache-2.0"
] | null | null | null | priv/repo/seeds.exs | elexeum/elexeum | a38bccdd21035e47b286e2ec128b3d217cc4d0bf | [
"Apache-2.0"
] | null | null | null | # Script for populating the database. You can run it as:
#
# mix run priv/repo/seeds.exs
#
# Inside the script, you can read and write to any of your
# repositories directly:
#
# Elexeum.Repo.insert!(%Elexeum.SomeSchema{})
#
# We recommend using the bang functions (`insert!`, `update!`
# and so on) as they will... | 29.25 | 61 | 0.706553 |
c8b12b4874f342e5a27b3f54834f4bc267de3443 | 3,265 | ex | Elixir | lib/gateway/shard.ex | SpaceEEC/crux_gateway | cd6e3dd661f39047fd1499bfa3d96f9f1f324d5a | [
"MIT"
] | 7 | 2018-05-22T07:13:45.000Z | 2020-08-16T19:24:38.000Z | lib/gateway/shard.ex | SpaceEEC/crux_gateway | cd6e3dd661f39047fd1499bfa3d96f9f1f324d5a | [
"MIT"
] | 1 | 2020-10-08T16:59:47.000Z | 2020-10-10T20:18:00.000Z | lib/gateway/shard.ex | SpaceEEC/crux_gateway | cd6e3dd661f39047fd1499bfa3d96f9f1f324d5a | [
"MIT"
] | null | null | null | defmodule Crux.Gateway.Shard do
@moduledoc false
require Logger
use Supervisor
alias Crux.Gateway.Connection
alias Crux.Gateway.RateLimiter
alias Crux.Gateway.Registry
alias Crux.Gateway.Shard.Producer
@shard_opts_keys ~w/intents presence session_id seq shard_id shard_count/a
def child_spec(shard... | 24.734848 | 102 | 0.652986 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.