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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2df3defb0cb981840e7020a76bdf1224c0e6d79d | 131 | exs | Elixir | config/test.exs | terianil/geetest3 | 8a6edaf3d893b1ef57fe140bfe807f5074686a24 | [
"MIT"
] | 1 | 2020-04-29T09:40:11.000Z | 2020-04-29T09:40:11.000Z | config/test.exs | terianil/geetest3 | 8a6edaf3d893b1ef57fe140bfe807f5074686a24 | [
"MIT"
] | null | null | null | config/test.exs | terianil/geetest3 | 8a6edaf3d893b1ef57fe140bfe807f5074686a24 | [
"MIT"
] | null | null | null | use Mix.Config
config :geetest3, :config,
id: "test_id",
key: "test_key"
config :tesla, Geetest3.Client, adapter: Tesla.Mock
| 16.375 | 51 | 0.709924 |
2df3f3589b83e6c5b3e47a6bbe141657f771d119 | 90 | exs | Elixir | test/protocol_test.exs | amokan/elixir_nsq | 26e9cdf8f6c99b6688e540181a501f53aa5e9e4b | [
"MIT"
] | 89 | 2015-11-17T01:15:02.000Z | 2022-01-31T20:17:17.000Z | test/protocol_test.exs | amokan/elixir_nsq | 26e9cdf8f6c99b6688e540181a501f53aa5e9e4b | [
"MIT"
] | 20 | 2016-06-17T14:15:22.000Z | 2019-09-23T13:31:18.000Z | test/protocol_test.exs | amokan/elixir_nsq | 26e9cdf8f6c99b6688e540181a501f53aa5e9e4b | [
"MIT"
] | 33 | 2016-01-28T15:20:43.000Z | 2021-12-18T14:36:19.000Z | defmodule NSQ.ProtocolTest do
use ExUnit.Case, async: false
doctest NSQ.Protocol
end
| 15 | 31 | 0.777778 |
2df405c75e87fe7e2b87e93f51d6004ec045699e | 5,086 | ex | Elixir | lib/exhal.ex | akoutmos/exhal | 86bfc2290dc2bd29713eade53e17941089fdca6a | [
"MIT"
] | 23 | 2016-02-02T14:24:38.000Z | 2021-12-07T16:13:30.000Z | lib/exhal.ex | akoutmos/exhal | 86bfc2290dc2bd29713eade53e17941089fdca6a | [
"MIT"
] | 41 | 2016-02-03T17:19:42.000Z | 2019-06-04T15:42:18.000Z | lib/exhal.ex | akoutmos/exhal | 86bfc2290dc2bd29713eade53e17941089fdca6a | [
"MIT"
] | 19 | 2016-02-03T06:04:12.000Z | 2021-11-19T16:44:06.000Z | defmodule ExHal do
@moduledoc """
Use HAL APIs with ease.
Given a resource `http://example.com/hal` whose HAL representation looks like
```json
{ "name": "Hello!",
"_links": {
"self" : { "href": "http://example.com" },
"profile": [{ "href": "http://example.com/special" },
... | 32.394904 | 123 | 0.655328 |
2df419aa44a275f9b304bf7344f705c19812f9e3 | 906 | exs | Elixir | test/absinthe/adapters/language_conventions_test.exs | TheRealReal/absinthe | 6eae5bc36283e58f42d032b8afd90de3ad64f97b | [
"MIT"
] | 1 | 2019-10-10T02:57:52.000Z | 2019-10-10T02:57:52.000Z | test/absinthe/adapters/language_conventions_test.exs | TheRealReal/absinthe | 6eae5bc36283e58f42d032b8afd90de3ad64f97b | [
"MIT"
] | 2 | 2018-08-02T13:35:38.000Z | 2018-08-02T13:36:42.000Z | test/absinthe/adapters/language_conventions_test.exs | TheRealReal/absinthe | 6eae5bc36283e58f42d032b8afd90de3ad64f97b | [
"MIT"
] | 1 | 2018-11-16T02:34:40.000Z | 2018-11-16T02:34:40.000Z | defmodule Absinthe.Adapter.LanguageConventionsTest do
use Absinthe.Case, async: true
alias Absinthe.Adapter.LanguageConventions
describe "to_internal_name/2" do
test "converts external camelcase field names to underscore" do
assert "foo_bar" = LanguageConventions.to_internal_name("fooBar", :field)
... | 34.846154 | 95 | 0.759382 |
2df429ecc5e21a1d06d72a7995cfb212aa625e3e | 511 | exs | Elixir | functionalprogramming/introduction/04_filter_array.exs | nathanchere/HackerRank_Elixir | 607e4ae10d94edb20296c8979179648af4af3ca6 | [
"MIT"
] | 2 | 2016-09-20T11:56:33.000Z | 2016-10-20T20:11:04.000Z | functionalprogramming/introduction/04_filter_array.exs | nathanchere/HackerRank_Elixir | 607e4ae10d94edb20296c8979179648af4af3ca6 | [
"MIT"
] | null | null | null | functionalprogramming/introduction/04_filter_array.exs | nathanchere/HackerRank_Elixir | 607e4ae10d94edb20296c8979179648af4af3ca6 | [
"MIT"
] | null | null | null | # HackerRank "Functional Programming" - Filter Array
defmodule Solution do
defp read_integer, do: IO.gets("") |> String.strip |> String.to_integer
defp do_filter(value, threshold) when value >= threshold, do: nil
defp do_filter(value, threshold) do
IO.puts value
end
def main() do
filter = read_int... | 22.217391 | 73 | 0.655577 |
2df46d2b54f7fca1d6d1a00eaecfe3ebaed2cd92 | 605 | ex | Elixir | example/apps/plug_upstream/lib/plug_upstream.ex | chai-nadig/elixir-reverse-proxy | 30ed00f591bf7b28b4046961fec4b8610b150621 | [
"MIT"
] | 140 | 2015-08-09T05:17:54.000Z | 2021-12-24T21:24:35.000Z | example/apps/plug_upstream/lib/plug_upstream.ex | chai-nadig/elixir-reverse-proxy | 30ed00f591bf7b28b4046961fec4b8610b150621 | [
"MIT"
] | 20 | 2015-08-20T20:33:40.000Z | 2020-05-06T10:04:38.000Z | example/apps/plug_upstream/lib/plug_upstream.ex | chai-nadig/elixir-reverse-proxy | 30ed00f591bf7b28b4046961fec4b8610b150621 | [
"MIT"
] | 36 | 2015-08-24T18:06:28.000Z | 2022-02-18T23:39:39.000Z | defmodule PlugUpstream 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, warn: false
children = [
# Define workers and child supervisors to be supervised
# worker... | 30.25 | 67 | 0.720661 |
2df496702bef35457caa236dfedf252fd68c9bf5 | 1,679 | exs | Elixir | mix.exs | jameslafa/rumbl | 07f38480884535c9cdecd60b5e42eadfd6f15c20 | [
"MIT"
] | null | null | null | mix.exs | jameslafa/rumbl | 07f38480884535c9cdecd60b5e42eadfd6f15c20 | [
"MIT"
] | null | null | null | mix.exs | jameslafa/rumbl | 07f38480884535c9cdecd60b5e42eadfd6f15c20 | [
"MIT"
] | null | null | null | defmodule Rumbl.Mixfile do
use Mix.Project
def project do
[app: :rumbl,
version: "0.0.1",
elixir: "~> 1.2",
elixirc_paths: elixirc_paths(Mix.env),
compilers: [:phoenix, :gettext] ++ Mix.compilers,
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
aliases: a... | 29.982143 | 89 | 0.597379 |
2df49c7ea3688a01a57f2a2bf83772c5b31a7038 | 651 | exs | Elixir | config/test.exs | esl/betex | b887d95c9c6edac4bcadb8da188fae215d04fe6c | [
"Apache-2.0"
] | 1 | 2021-06-15T08:18:50.000Z | 2021-06-15T08:18:50.000Z | config/test.exs | AdiletAbylov/betex | b887d95c9c6edac4bcadb8da188fae215d04fe6c | [
"Apache-2.0"
] | null | null | null | config/test.exs | AdiletAbylov/betex | b887d95c9c6edac4bcadb8da188fae215d04fe6c | [
"Apache-2.0"
] | 2 | 2021-06-23T16:35:04.000Z | 2021-06-23T16:35:44.000Z | use Mix.Config
# Configure your database
#
# The MIX_TEST_PARTITION environment variable can be used
# to provide built-in test partitioning in CI environment.
# Run `mix help test` for more information.
config :betex, Betex.Repo,
username: "postgres",
password: "postgres",
database: "betex_test#{System.get_env(... | 28.304348 | 64 | 0.745008 |
2df49eb322f226e96358a80f38867a3f9373f67e | 1,636 | ex | Elixir | lib/portmidi/listeners.ex | jimm/ex-portmidi | f4024d8c85252528707ae36f27f2728e7b31ffd5 | [
"MIT"
] | 36 | 2016-03-28T15:01:18.000Z | 2021-09-11T02:41:31.000Z | lib/portmidi/listeners.ex | jimm/ex-portmidi | f4024d8c85252528707ae36f27f2728e7b31ffd5 | [
"MIT"
] | 15 | 2016-05-29T13:01:33.000Z | 2021-11-18T18:24:23.000Z | lib/portmidi/listeners.ex | jimm/ex-portmidi | f4024d8c85252528707ae36f27f2728e7b31ffd5 | [
"MIT"
] | 11 | 2016-05-19T15:37:49.000Z | 2020-12-13T21:34:07.000Z | defmodule PortMidi.Listeners do
def start_link do
GenServer.start_link(__MODULE__, :ok, name: __MODULE__)
end
# Client implementation
#######################
def register(input, pid), do:
GenServer.cast(__MODULE__, {:register, input, pid})
def list(input), do:
GenServer.call(__MODULE__, {:lis... | 24.787879 | 69 | 0.619804 |
2df4a3f7d35a010845e35809d4d629bf64aed4d1 | 1,125 | exs | Elixir | config/config.exs | Cgboal/SchedEx | b13c8856138144d4c46bd406e2dfc1726c301775 | [
"MIT"
] | 192 | 2018-02-16T14:44:09.000Z | 2022-03-22T09:34:58.000Z | config/config.exs | Cgboal/SchedEx | b13c8856138144d4c46bd406e2dfc1726c301775 | [
"MIT"
] | 18 | 2018-05-21T00:41:18.000Z | 2022-01-05T20:03:39.000Z | config/config.exs | Cgboal/SchedEx | b13c8856138144d4c46bd406e2dfc1726c301775 | [
"MIT"
] | 19 | 2018-05-05T09:12:37.000Z | 2021-12-17T21:18:25.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.290323 | 73 | 0.752 |
2df4b3fadaa83b5e358a7a1407f56806257cb566 | 1,676 | ex | Elixir | clients/display_video/lib/google_api/display_video/v1/model/asset.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/display_video/lib/google_api/display_video/v1/model/asset.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/asset.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... | 33.52 | 233 | 0.720167 |
2df4dc7595b7de0e7e93ebe5f9676df231da0b66 | 1,599 | exs | Elixir | apps/donut_web/mix.exs | ZURASTA/donut | b0546c041601e619e76c10d1d2ce62fe5d1701a4 | [
"BSD-2-Clause"
] | null | null | null | apps/donut_web/mix.exs | ZURASTA/donut | b0546c041601e619e76c10d1d2ce62fe5d1701a4 | [
"BSD-2-Clause"
] | null | null | null | apps/donut_web/mix.exs | ZURASTA/donut | b0546c041601e619e76c10d1d2ce62fe5d1701a4 | [
"BSD-2-Clause"
] | null | null | null | defmodule Donut.Web.Mixfile do
use Mix.Project
def project do
[
app: :donut_web,
version: "0.0.1",
build_path: "../../_build",
config_path: "../../config/config.exs",
deps_path: "../../deps",
lockfile: "../../mix.lock",
... | 28.052632 | 69 | 0.502189 |
2df4ec150592f94a089a0cb8fdb3f395212bc419 | 401 | exs | Elixir | elixir/elixir-sips/samples/erlang_js_playground/mix.exs | afronski/playground-erlang | 6ac4b58b2fd717260c22a33284547d44a9b5038e | [
"MIT"
] | 2 | 2015-12-09T02:16:51.000Z | 2021-07-26T22:53:43.000Z | elixir/elixir-sips/samples/erlang_js_playground/mix.exs | afronski/playground-erlang | 6ac4b58b2fd717260c22a33284547d44a9b5038e | [
"MIT"
] | null | null | null | elixir/elixir-sips/samples/erlang_js_playground/mix.exs | afronski/playground-erlang | 6ac4b58b2fd717260c22a33284547d44a9b5038e | [
"MIT"
] | 1 | 2016-05-08T18:40:31.000Z | 2016-05-08T18:40:31.000Z | defmodule ErlangJsPlayground.Mixfile do
use Mix.Project
def project do
[app: :erlang_js_playground,
version: "0.0.1",
elixir: "~> 1.0",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps]
end
def application do
[applications: [:logger]]
end
de... | 17.434783 | 47 | 0.608479 |
2df500ed0d77c542b3591629038ef62442ba3ebd | 9,441 | exs | Elixir | lib/elixir/test/elixir/system_test.exs | moogle19/elixir | 91fa0e3adad1654a4fe2c8bd218e9e6d42b92b47 | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/system_test.exs | moogle19/elixir | 91fa0e3adad1654a4fe2c8bd218e9e6d42b92b47 | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/system_test.exs | moogle19/elixir | 91fa0e3adad1654a4fe2c8bd218e9e6d42b92b47 | [
"Apache-2.0"
] | null | null | null | Code.require_file("test_helper.exs", __DIR__)
defmodule SystemTest do
use ExUnit.Case
import PathHelpers
test "build_info/0" do
build_info = System.build_info()
assert is_map(build_info)
assert is_binary(build_info[:build])
assert is_binary(build_info[:date])
assert is_binary(build_info[:rev... | 29.595611 | 97 | 0.626311 |
2df528ba6f66ac2bbc93eb4dedc937ab0f4b7d89 | 7,692 | exs | Elixir | test/lib/thumbifier/convert/types_test.exs | sysdia-solutions/thumbifier | b2b71571bb8a33159e5d90ecb5ea3931eafdd62b | [
"MIT"
] | 4 | 2016-10-16T22:22:52.000Z | 2019-05-24T13:44:15.000Z | test/lib/thumbifier/convert/types_test.exs | sysdia-solutions/thumbifier | b2b71571bb8a33159e5d90ecb5ea3931eafdd62b | [
"MIT"
] | 1 | 2016-10-21T00:16:16.000Z | 2017-09-24T02:24:23.000Z | test/lib/thumbifier/convert/types_test.exs | sysdia-solutions/thumbifier | b2b71571bb8a33159e5d90ecb5ea3931eafdd62b | [
"MIT"
] | null | null | null | defmodule TypesTest do
use Thumbifier.ConnCase
test "is_basic_image?" do
assert Thumbifier.Convert.Types.is_basic_image?("image/jpg") == true
assert Thumbifier.Convert.Types.is_basic_image?("image/pjpeg") == true
assert Thumbifier.Convert.Types.is_basic_image?("image/jpeg") == true
assert Thumbifie... | 51.28 | 128 | 0.713859 |
2df528e9703a9cfd52cd08a9a0287ada25d9d124 | 1,358 | exs | Elixir | test/delta/pipeline_supervisor_test.exs | mbta/delta_http_s3 | 66c61fd2c95a2184216e8718adf0c5d58318d679 | [
"MIT"
] | 4 | 2020-04-03T14:38:53.000Z | 2021-04-02T10:31:30.000Z | test/delta/pipeline_supervisor_test.exs | mbta/delta_http_s3 | 66c61fd2c95a2184216e8718adf0c5d58318d679 | [
"MIT"
] | 107 | 2020-03-19T13:24:23.000Z | 2022-02-28T06:32:58.000Z | test/delta/pipeline_supervisor_test.exs | mbta/delta_http_s3 | 66c61fd2c95a2184216e8718adf0c5d58318d679 | [
"MIT"
] | 1 | 2019-12-31T17:49:06.000Z | 2019-12-31T17:49:06.000Z | defmodule Delta.PipelineSupervisorTest do
@moduledoc false
use ExUnit.Case
alias Delta.PipelineSupervisor
import ExUnit.CaptureLog
describe "start_link/1" do
test "can start a pipeline with some basic producers and sinks" do
bypass = Bypass.open()
Bypass.expect(bypass, fn conn ->
Plu... | 23.824561 | 70 | 0.470545 |
2df52c52f5f732a4c5c32aa978ef8949dcf9f696 | 6,820 | ex | Elixir | lib/elastic/document/api.ex | flexibility-org/elastic | c9d6e3c514e7a1f4958e2ba462c189829e3e5660 | [
"MIT"
] | null | null | null | lib/elastic/document/api.ex | flexibility-org/elastic | c9d6e3c514e7a1f4958e2ba462c189829e3e5660 | [
"MIT"
] | 1 | 2021-10-18T11:43:13.000Z | 2021-10-19T07:34:57.000Z | lib/elastic/document/api.ex | flexibility-org/elastic | c9d6e3c514e7a1f4958e2ba462c189829e3e5660 | [
"MIT"
] | null | null | null | defmodule Elastic.Document.API do
@moduledoc ~S"""
The Document API provides some helpers for interacting with documents.
The Document API extracts away a lot of the repetition of querying /
indexing of a particular index. Here's an example:
```
defmodule Answer do
@es_type "answer"
@es_index "ans... | 24.357143 | 99 | 0.552199 |
2df53a9ec0bfab7ce18b97ba1c5099988a7d8533 | 1,252 | exs | Elixir | test/alpha_vantage/stock_time_series_test.exs | Cameron-Kurth/elixir-alpha_vantage | b1c489211090b98726db536bdea4ddd20eee8bc5 | [
"MIT"
] | null | null | null | test/alpha_vantage/stock_time_series_test.exs | Cameron-Kurth/elixir-alpha_vantage | b1c489211090b98726db536bdea4ddd20eee8bc5 | [
"MIT"
] | null | null | null | test/alpha_vantage/stock_time_series_test.exs | Cameron-Kurth/elixir-alpha_vantage | b1c489211090b98726db536bdea4ddd20eee8bc5 | [
"MIT"
] | null | null | null | defmodule AlphaVantage.StockTimeSeriesTest do
use ExUnit.Case
alias AlphaVantage.StockTimeSeries
test "intraday/3" do
assert {:ok, %{"Time Series (1min)" => _data}} = StockTimeSeries.intraday("AAPL", "1min")
end
test "intraday_extended_history/4" do
assert {:ok, csv_string} =
StockTimeS... | 29.116279 | 93 | 0.662939 |
2df53e0ae641e6b037d937ce80f15093366f5c81 | 978 | ex | Elixir | lib/hpack.ex | infinityoneframework/kadabra | 0cedd740010514977d8b0fca6583f770ca78cac1 | [
"MIT"
] | 35 | 2016-10-17T09:52:46.000Z | 2021-01-04T16:27:46.000Z | lib/hpack.ex | infinityoneframework/kadabra | 0cedd740010514977d8b0fca6583f770ca78cac1 | [
"MIT"
] | 26 | 2016-12-06T17:21:41.000Z | 2021-11-26T18:49:05.000Z | lib/hpack.ex | infinityoneframework/kadabra | 0cedd740010514977d8b0fca6583f770ca78cac1 | [
"MIT"
] | 13 | 2016-12-06T16:03:30.000Z | 2021-12-16T10:28:03.000Z | defmodule Kadabra.Hpack do
@moduledoc false
use GenServer
def start_link do
GenServer.start_link(__MODULE__, :ok)
end
def encode(pid, headers) do
GenServer.call(pid, {:encode, headers})
end
def decode(pid, headers) do
GenServer.call(pid, {:decode, headers})
end
def update_max_table_si... | 22.744186 | 77 | 0.673824 |
2df547dd57a2f70fe32e217ab572a454718240e4 | 807 | exs | Elixir | test/actions/time_entry_actions_test.exs | behrendtio/phoenix-toggl | dcaa2409ed8b53d3b56dc7ce02cdc4252dd19647 | [
"MIT"
] | 207 | 2016-02-24T06:43:04.000Z | 2021-03-05T02:26:47.000Z | test/actions/time_entry_actions_test.exs | behrendtio/phoenix-toggl | dcaa2409ed8b53d3b56dc7ce02cdc4252dd19647 | [
"MIT"
] | 6 | 2016-02-26T00:13:06.000Z | 2017-06-15T07:49:02.000Z | test/actions/time_entry_actions_test.exs | behrendtio/phoenix-toggl | dcaa2409ed8b53d3b56dc7ce02cdc4252dd19647 | [
"MIT"
] | 24 | 2016-02-24T18:02:21.000Z | 2019-11-11T12:47:06.000Z | defmodule PhoenixToggl.TimeEntryActionsTest do
use PhoenixToggl.ModelCase, async: true
alias PhoenixToggl.{TimeEntryActions, TimeEntry}
alias Timex.Date
setup do
user = create(:user)
valid_attributes = %{
name: "Default",
user_id: user.id,
started_at: Date.now
}
{:ok, valid... | 24.454545 | 101 | 0.716233 |
2df54d93e89629d95346a4bb5cbae730de09d172 | 546 | exs | Elixir | elixir/plug/mix.exs | muhammednagy/web-frameworks | ab3822ff731f2cda0de5e6f1515b81930d403ba2 | [
"MIT"
] | 5 | 2021-01-26T08:47:38.000Z | 2021-01-30T00:42:19.000Z | elixir/plug/mix.exs | sjaviel/web-frameworks | c083601dd7b89abccf2a49745d4f55705ec5bcc5 | [
"MIT"
] | 1 | 2020-12-15T11:38:39.000Z | 2020-12-16T11:41:31.000Z | elixir/plug/mix.exs | sjaviel/web-frameworks | c083601dd7b89abccf2a49745d4f55705ec5bcc5 | [
"MIT"
] | 1 | 2020-08-09T04:24:07.000Z | 2020-08-09T04:24:07.000Z | defmodule Server.MixProject do
use Mix.Project
def project do
[
# App config
app: :server,
version: "0.1.0",
# Elixir config
elixir: "~> 1.10",
start_permanent: Mix.env() == :prod,
deps: deps(),
# Release
releases: [
server: [
include_ex... | 14.756757 | 42 | 0.478022 |
2df563c0caab536fc761a17e992f5335833242d5 | 7,454 | ex | Elixir | aoc-2019/lib/aoc/day5/intcode.ex | sbauer322/advent-of-code | f1174f84485197d51009c35e3797ba26e7e21462 | [
"MIT"
] | 1 | 2020-11-08T22:17:37.000Z | 2020-11-08T22:17:37.000Z | aoc-2019/lib/aoc/day5/intcode.ex | sbauer322/advent-of-code | f1174f84485197d51009c35e3797ba26e7e21462 | [
"MIT"
] | null | null | null | aoc-2019/lib/aoc/day5/intcode.ex | sbauer322/advent-of-code | f1174f84485197d51009c35e3797ba26e7e21462 | [
"MIT"
] | null | null | null | defmodule AOC.Day5.Intcode do
@moduledoc false
@type memory :: %{
integer => integer,
pointer: integer,
inputs: list(integer),
outputs: list(integer)
}
def part1(path, user_inputs) do
stream_puzzle_input(path)
|> puzzle_input_to_map(user_inputs)
|> com... | 27.505535 | 98 | 0.640596 |
2df599b8ac3db0bbf9ca4231a2251a5de2d7d9f9 | 366 | exs | Elixir | example/priv/repo/migrations/20181125010421_add_u2f_key.exs | tino415/u2f_ex | d95f52335dc85140b2b1b3d7975d29c6d71868ea | [
"BSD-3-Clause"
] | 13 | 2018-10-15T10:39:24.000Z | 2019-01-15T06:42:24.000Z | example/priv/repo/migrations/20181125010421_add_u2f_key.exs | tino415/u2f_ex | d95f52335dc85140b2b1b3d7975d29c6d71868ea | [
"BSD-3-Clause"
] | 19 | 2018-08-10T04:33:46.000Z | 2018-12-02T04:55:48.000Z | example/priv/repo/migrations/20181125010421_add_u2f_key.exs | tino415/u2f_ex | d95f52335dc85140b2b1b3d7975d29c6d71868ea | [
"BSD-3-Clause"
] | 4 | 2019-07-06T04:38:31.000Z | 2021-02-01T10:45:57.000Z | defmodule Example.Repo.Migrations.AddU2fKey do
use Ecto.Migration
def change do
create table(:u2f_keys) do
add(:public_key, :string, size: 128)
add(:key_handle, :string, size: 128)
add(:version, :string, size: 10, default: "U2F_V2")
add(:app_id, :string)
add(:user_id, references(:... | 22.875 | 57 | 0.642077 |
2df5e6a08cf6a60602968a723a21e6d8781a120f | 9,736 | exs | Elixir | test/phoenix/endpoint/endpoint_test.exs | faheempatel/phoenix | a83318f2a2284b7ab29b0b86cdd9d2e1f4d0a7c9 | [
"MIT"
] | 18,092 | 2015-01-01T01:51:04.000Z | 2022-03-31T19:37:14.000Z | test/phoenix/endpoint/endpoint_test.exs | faheempatel/phoenix | a83318f2a2284b7ab29b0b86cdd9d2e1f4d0a7c9 | [
"MIT"
] | 3,905 | 2015-01-01T00:22:47.000Z | 2022-03-31T17:06:21.000Z | test/phoenix/endpoint/endpoint_test.exs | faheempatel/phoenix | a83318f2a2284b7ab29b0b86cdd9d2e1f4d0a7c9 | [
"MIT"
] | 3,205 | 2015-01-03T10:58:22.000Z | 2022-03-30T14:55:57.000Z | System.put_env("ENDPOINT_TEST_HOST", "example.com")
defmodule Phoenix.Endpoint.EndpointTest do
use ExUnit.Case, async: true
use RouterHelper
@config [url: [host: {:system, "ENDPOINT_TEST_HOST"}, path: "/api"],
static_url: [host: "static.example.com"],
server: false, http: [port: 80], https... | 38.330709 | 128 | 0.684778 |
2df5e8c05cedf32fd72378e7472f100e92e42923 | 4,902 | exs | Elixir | test/datomex_test.exs | edubkendo/datomex | abac6aef354ae14aacb178d6c0bc1b44ea38d6d4 | [
"MIT"
] | 42 | 2015-04-11T15:39:30.000Z | 2021-11-17T10:53:41.000Z | test/datomex_test.exs | edubkendo/datomex | abac6aef354ae14aacb178d6c0bc1b44ea38d6d4 | [
"MIT"
] | 3 | 2016-01-15T00:56:40.000Z | 2016-02-06T19:17:26.000Z | test/datomex_test.exs | edubkendo/datomex | abac6aef354ae14aacb178d6c0bc1b44ea38d6d4 | [
"MIT"
] | 4 | 2016-01-16T05:29:23.000Z | 2020-04-25T19:35:26.000Z | defmodule DatomexTest do
use ExUnit.Case
def movies, do: [
%{"db/id": dbid(:"db.part/db"),
"db/ident": :"movie/title",
"db/valueType": :"db.type/string",
"db/cardinality": :"db.cardinality/one",
"db/doc": "movie's title",
"db.install/_attribute": :"db.part/db"},
%{"db/id": dbi... | 32.25 | 99 | 0.598939 |
2df5e99eb21a91976d7be875ec918a1f535ae8d4 | 2,798 | ex | Elixir | lib/serum/dev_server/service.ex | dragsubil/Serum | a465c48b388ef1e6d69ee6e8793f2869035b0520 | [
"MIT"
] | null | null | null | lib/serum/dev_server/service.ex | dragsubil/Serum | a465c48b388ef1e6d69ee6e8793f2869035b0520 | [
"MIT"
] | null | null | null | lib/serum/dev_server/service.ex | dragsubil/Serum | a465c48b388ef1e6d69ee6e8793f2869035b0520 | [
"MIT"
] | null | null | null | defmodule Serum.DevServer.Service do
@moduledoc """
A GenServer that provides some utility functions while the Serum development
server is running.
"""
use GenServer
import Serum.Util
alias Serum.Error
alias Serum.SiteBuilder
#
# GenServer Implementation - Client
#
@doc "Starts `Serum.DevServ... | 23.316667 | 78 | 0.666548 |
2df5f57e565e1850aae842bc455ccf03f2649b3f | 1,410 | ex | Elixir | lib/mk_producer.ex | xlhybridsOSS/emqx_mqtt_kafka_plugin | 35ca34b09416a28fd4cfe9ab06da4b8853c10492 | [
"MIT"
] | null | null | null | lib/mk_producer.ex | xlhybridsOSS/emqx_mqtt_kafka_plugin | 35ca34b09416a28fd4cfe9ab06da4b8853c10492 | [
"MIT"
] | null | null | null | lib/mk_producer.ex | xlhybridsOSS/emqx_mqtt_kafka_plugin | 35ca34b09416a28fd4cfe9ab06da4b8853c10492 | [
"MIT"
] | 1 | 2018-11-11T09:54:08.000Z | 2018-11-11T09:54:08.000Z | defmodule MqttKafka.Producer do
use GenServer
require Record
Record.defrecord(:emqx_message, Record.extract(:message, from: "deps/emqx/include/emqx.hrl"))
def start_link(opts) do
GenServer.start_link(__MODULE__, :ok, name: __MODULE__)
end
def forward_to_kafka(msg) do
IO.puts "cast start"
GenS... | 28.2 | 98 | 0.668085 |
2df61c8d85b7d6dd6e623a1a616662b59eadfea7 | 497 | ex | Elixir | lib/honest_chat_web/views/error_view.ex | noozo/honest_chat | b3c45f72fd9c579404d05ce308eb13a0a2997760 | [
"Apache-2.0"
] | 3 | 2021-11-19T07:18:30.000Z | 2021-12-23T22:19:48.000Z | lib/honest_chat_web/views/error_view.ex | noozo/honest_chat | b3c45f72fd9c579404d05ce308eb13a0a2997760 | [
"Apache-2.0"
] | null | null | null | lib/honest_chat_web/views/error_view.ex | noozo/honest_chat | b3c45f72fd9c579404d05ce308eb13a0a2997760 | [
"Apache-2.0"
] | null | null | null | defmodule HonestChatWeb.ErrorView do
use HonestChatWeb, :view
# If you want to customize a particular status code
# for a certain format, you may uncomment below.
# def render("500.html", _assigns) do
# "Internal Server Error"
# end
# By default, Phoenix returns the status message from
# the templat... | 29.235294 | 61 | 0.738431 |
2df63842058fbe85c04f81c422f64a7edd463d22 | 6,620 | ex | Elixir | lib/protobuf/protoc/generator/message.ex | llxff/protobuf-elixir | 365b26833fce85f0f46759a7c50c8858bd3cc1c1 | [
"MIT"
] | null | null | null | lib/protobuf/protoc/generator/message.ex | llxff/protobuf-elixir | 365b26833fce85f0f46759a7c50c8858bd3cc1c1 | [
"MIT"
] | null | null | null | lib/protobuf/protoc/generator/message.ex | llxff/protobuf-elixir | 365b26833fce85f0f46759a7c50c8858bd3cc1c1 | [
"MIT"
] | null | null | null | defmodule Protobuf.Protoc.Generator.Message do
alias Protobuf.Protoc.Generator.Util
alias Protobuf.TypeUtil
alias Protobuf.Protoc.Generator.Enum, as: EnumGenerator
def generate_list(ctx, descs) do
Enum.map(descs, fn desc -> generate(ctx, desc) end)
end
def generate(ctx, desc) do
msg_struct = parse... | 27.698745 | 98 | 0.595468 |
2df640e71bb0f6c4f7e33c84b2c7c05200685ffe | 559 | ex | Elixir | lib/ex_aws/auto_scaling/parse_transforms.ex | jesseshieh/ex_aws_auto_scaling | 019be2f7f11e88c6301cc05b4be661ffe0fce208 | [
"MIT"
] | 1 | 2020-01-12T03:28:18.000Z | 2020-01-12T03:28:18.000Z | lib/ex_aws/auto_scaling/parse_transforms.ex | jesseshieh/ex_aws_auto_scaling | 019be2f7f11e88c6301cc05b4be661ffe0fce208 | [
"MIT"
] | 1 | 2020-05-29T01:51:59.000Z | 2020-05-29T01:51:59.000Z | lib/ex_aws/auto_scaling/parse_transforms.ex | jesseshieh/ex_aws_auto_scaling | 019be2f7f11e88c6301cc05b4be661ffe0fce208 | [
"MIT"
] | 2 | 2019-11-15T21:56:51.000Z | 2020-05-01T21:21:43.000Z | defmodule AwsDetective.AutoScaling.ParseTransforms do
@moduledoc """
Helper functions for parsing some AWS API fields
"""
def to_boolean(str) do
case str do
"false" -> false
"true" -> true
_ -> false
end
end
def to_string_nil(""), do: nil
def to_string_nil(val), do: val
de... | 18.633333 | 53 | 0.599284 |
2df65f3ec3ca2797008895845c2a2c8e98bfb913 | 1,927 | exs | Elixir | clients/double_click_bid_manager/mix.exs | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/double_click_bid_manager/mix.exs | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/double_click_bid_manager/mix.exs | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"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... | 28.761194 | 132 | 0.668915 |
2df65f49492d516e04abfe77969acb7a03437149 | 6,453 | ex | Elixir | lib/eex_formatter.ex | sonercirit/prettieex | 9f27dcf581bb7424d13f7b6dc88a5b6aba717a84 | [
"MIT"
] | 6 | 2020-04-18T11:36:38.000Z | 2022-01-11T17:08:48.000Z | lib/eex_formatter.ex | sonercirit/prettieex | 9f27dcf581bb7424d13f7b6dc88a5b6aba717a84 | [
"MIT"
] | 2 | 2020-06-16T12:37:56.000Z | 2020-09-03T08:26:35.000Z | lib/eex_formatter.ex | sonercirit/prettieex | 9f27dcf581bb7424d13f7b6dc88a5b6aba717a84 | [
"MIT"
] | 1 | 2020-06-17T17:19:00.000Z | 2020-06-17T17:19:00.000Z | defmodule EExFormatter do
@moduledoc false
def process_string(html) do
tokens = html |> EExFormatter.tokenize()
formattable_string = tokens |> EExFormatter.generate_formattable_string()
expressions =
tokens
|> EExFormatter.get_expressions()
|> EExFormatter.prettify_expressions(format... | 22.642105 | 94 | 0.570742 |
2df6a9b468b17b52ec4efb756d605179522e9d7b | 1,515 | ex | Elixir | lib/ex_unit/lib/ex_unit/server.ex | guilleiguaran/elixir | 952052869ff7af0e293d2a7160b1aebc68fc46be | [
"Apache-2.0"
] | null | null | null | lib/ex_unit/lib/ex_unit/server.ex | guilleiguaran/elixir | 952052869ff7af0e293d2a7160b1aebc68fc46be | [
"Apache-2.0"
] | null | null | null | lib/ex_unit/lib/ex_unit/server.ex | guilleiguaran/elixir | 952052869ff7af0e293d2a7160b1aebc68fc46be | [
"Apache-2.0"
] | null | null | null | defmodule ExUnit.Server do
@moduledoc false
@timeout 30_000
use GenServer.Behaviour
defrecord Config, async_cases: [], sync_cases: [], start_load: nil
def start_link() do
:gen_server.start_link({ :local, __MODULE__ }, __MODULE__, :ok, [])
end
## Before run API
def start_load() do
:gen_serve... | 21.642857 | 71 | 0.670627 |
2df6e6f6293422431121a24bb40b09b4af230f45 | 1,829 | exs | Elixir | mix.exs | jeepers3327/senti | 2e346759d8a8704f11364a835b6b9cd00a52c640 | [
"MIT"
] | null | null | null | mix.exs | jeepers3327/senti | 2e346759d8a8704f11364a835b6b9cd00a52c640 | [
"MIT"
] | null | null | null | mix.exs | jeepers3327/senti | 2e346759d8a8704f11364a835b6b9cd00a52c640 | [
"MIT"
] | null | null | null | defmodule Senti.MixProject do
use Mix.Project
def project do
[
app: :senti,
version: "0.1.0",
elixir: "~> 1.7",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix, :gettext] ++ Mix.compilers(),
start_permanent: Mix.env() == :prod,
aliases: aliases(),
d... | 26.897059 | 84 | 0.56479 |
2df6f4ef09964b81c93665ebf8bbc89aa558fa28 | 8,718 | ex | Elixir | lib/clickhouse_ecto/parsers.ex | VinogradovAlexandr/clickhouse_ecto | d78d91ef32fbe8726f5fa13632927695982e5da3 | [
"Apache-2.0"
] | 1 | 2019-02-21T01:19:12.000Z | 2019-02-21T01:19:12.000Z | lib/clickhouse_ecto/parsers.ex | VinogradovAlexandr/clickhouse_ecto | d78d91ef32fbe8726f5fa13632927695982e5da3 | [
"Apache-2.0"
] | null | null | null | lib/clickhouse_ecto/parsers.ex | VinogradovAlexandr/clickhouse_ecto | d78d91ef32fbe8726f5fa13632927695982e5da3 | [
"Apache-2.0"
] | null | null | null | defmodule ClickhouseEcto.Parsers do
def row_binary_parser(binary_data, list_of_types) do
IO.puts("row_binary_parser")
binary_list = :binary.bin_to_list(binary_data)
binary_data |> IO.inspect(limit: 100)
list_of_types
result = convert_types(list_of_types, binary_list, 0) #|> IO.inspect
tupled_... | 29.452703 | 93 | 0.645446 |
2df6f5e3769c15aa6bc30560050350041ee85ae5 | 133 | ex | Elixir | lib/ex_vmstats/application.ex | tongdao/ex_vmstats | bda37f23f8cb8dc9794a1cbbd44f9b9e1c65eba6 | [
"Apache-2.0"
] | 16 | 2015-11-11T16:24:59.000Z | 2021-06-07T06:50:35.000Z | lib/ex_vmstats/application.ex | tongdao/ex_vmstats | bda37f23f8cb8dc9794a1cbbd44f9b9e1c65eba6 | [
"Apache-2.0"
] | 7 | 2015-11-22T22:32:29.000Z | 2022-01-29T08:52:13.000Z | lib/ex_vmstats/application.ex | tongdao/ex_vmstats | bda37f23f8cb8dc9794a1cbbd44f9b9e1c65eba6 | [
"Apache-2.0"
] | 11 | 2015-11-11T09:19:13.000Z | 2021-11-15T03:11:17.000Z | defmodule ExVmstats.Application do
use Application
def start(_type, _args) do
ExVmstats.Supervisor.start_link([])
end
end
| 16.625 | 39 | 0.75188 |
2df6ff572709cac9ca7ab766310b1a009ea40277 | 4,353 | ex | Elixir | lib/users.ex | jacobparry/atrium-elixir | c88bfe8dd0e0fc3c16df7ba6dbf9207dd6552f4f | [
"MIT"
] | 1 | 2019-10-15T14:00:24.000Z | 2019-10-15T14:00:24.000Z | lib/users.ex | jacobparry/atrium-elixir | c88bfe8dd0e0fc3c16df7ba6dbf9207dd6552f4f | [
"MIT"
] | null | null | null | lib/users.ex | jacobparry/atrium-elixir | c88bfe8dd0e0fc3c16df7ba6dbf9207dd6552f4f | [
"MIT"
] | null | null | null | defmodule Atrium.Users do
@moduledoc """
Functions for interacting with the `users` endpoint of Atrium.
"""
alias Atrium.{Request, Response}
@doc """
Required Parameters: none
Optional Parameters: options_list
Optional Params include: identifier, is_disabled, metadata.
None of these parameters are r... | 28.266234 | 85 | 0.661153 |
2df7039a356f33ccf99088074e82725bc69c6d7c | 1,616 | ex | Elixir | clients/tag_manager/lib/google_api/tag_manager/v2/model/list_triggers_response.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/tag_manager/lib/google_api/tag_manager/v2/model/list_triggers_response.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/tag_manager/lib/google_api/tag_manager/v2/model/list_triggers_response.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | 1 | 2018-07-28T20:50:50.000Z | 2018-07-28T20:50:50.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 32.32 | 106 | 0.753713 |
2df72a46b83e0d1adbc030fdc34607c939620f46 | 5,648 | exs | Elixir | elixir/test/gilded_rose_test.exs | Nelsonochoam/GildedRose-Refactoring-Kata | 7326c0831cd1bd6fe59fa7c4c500cd6be22cab92 | [
"MIT"
] | null | null | null | elixir/test/gilded_rose_test.exs | Nelsonochoam/GildedRose-Refactoring-Kata | 7326c0831cd1bd6fe59fa7c4c500cd6be22cab92 | [
"MIT"
] | null | null | null | elixir/test/gilded_rose_test.exs | Nelsonochoam/GildedRose-Refactoring-Kata | 7326c0831cd1bd6fe59fa7c4c500cd6be22cab92 | [
"MIT"
] | null | null | null | defmodule GildedRoseTest do
use ExUnit.Case
import GildedRose
@brie "Aged Brie"
@conjured "Conjured"
@normal "Normal Item"
@sulfuras "Sulfuras, Hand of Ragnaros"
@passes "Backstage passes to a TAFKAL80ETC concert"
def create_items(sell_in, quality) do
[
%Item{name: @sulfuras, sell_i... | 29.726316 | 89 | 0.64961 |
2df74ced9757495b18fa92878fb4bcaa601b61ea | 285 | exs | Elixir | backend/priv/repo/migrations/20211225160241_create_users_chats.exs | diderikk/SimpleChatApp | 2ee9b4109114aa08611f4776a58e6dc5f25135cc | [
"MIT"
] | null | null | null | backend/priv/repo/migrations/20211225160241_create_users_chats.exs | diderikk/SimpleChatApp | 2ee9b4109114aa08611f4776a58e6dc5f25135cc | [
"MIT"
] | null | null | null | backend/priv/repo/migrations/20211225160241_create_users_chats.exs | diderikk/SimpleChatApp | 2ee9b4109114aa08611f4776a58e6dc5f25135cc | [
"MIT"
] | null | null | null | defmodule Backend.Repo.Migrations.CreateUsersChats do
use Ecto.Migration
def change do
create table(:users_chats) do
add :user_id, references(:users)
add :chat_id, references(:chats)
add :has_accepted, :boolean, default: false, null: false
end
end
end
| 23.75 | 62 | 0.705263 |
2df74da46ea87066e2d1a232deb93841cebe1b9e | 571 | ex | Elixir | apps/user_manager/lib/user_manager.ex | Alezrik/game_services_umbrella | 9b9dd6707c200b10c5a73568913deb4d5d8320be | [
"MIT"
] | 4 | 2018-11-09T16:57:06.000Z | 2021-03-02T22:57:17.000Z | apps/user_manager/lib/user_manager.ex | Alezrik/game_services_umbrella | 9b9dd6707c200b10c5a73568913deb4d5d8320be | [
"MIT"
] | 29 | 2018-10-26T08:29:37.000Z | 2018-12-09T21:02:05.000Z | apps/user_manager/lib/user_manager.ex | Alezrik/game_services_umbrella | 9b9dd6707c200b10c5a73568913deb4d5d8320be | [
"MIT"
] | null | null | null | defmodule UserManager do
@moduledoc """
Documentation for UserManager.
"""
@doc """
Register a New User Account
"""
require Logger
@spec register_new_user(String.t(), String.t(), String.t()) ::
{:ok, %GameServices.Account.User{}} | {:error, atom(), any(), any()}
def register_new_user(nam... | 25.954545 | 96 | 0.651489 |
2df755394b93137c690e3438da6ac93e9e521fc6 | 691 | exs | Elixir | test/langue/java_properties/formatter_test.exs | leonardocouy/accent | 29fb324395ff998cc5cdc6947c60070ffabe647c | [
"BSD-3-Clause"
] | null | null | null | test/langue/java_properties/formatter_test.exs | leonardocouy/accent | 29fb324395ff998cc5cdc6947c60070ffabe647c | [
"BSD-3-Clause"
] | null | null | null | test/langue/java_properties/formatter_test.exs | leonardocouy/accent | 29fb324395ff998cc5cdc6947c60070ffabe647c | [
"BSD-3-Clause"
] | null | null | null | defmodule LangueTest.Formatter.JavaProperties do
Code.require_file("expectation_test.exs", __DIR__)
use ExUnit.Case, async: true
alias Langue.Formatter.JavaProperties
@tests [
Simple
]
for test <- @tests, module = Module.concat(LangueTest.Formatter.JavaProperties.Expectation, test) do
test "java... | 31.409091 | 121 | 0.761216 |
2df7602bd669e57fc0605138b2d36778ec77bafe | 5,953 | ex | Elixir | lib/mix/lib/releases/overlays.ex | LaudateCorpus1/distillery | bbf7f1871553465eb21ef8ed5e2ace3308d79683 | [
"MIT"
] | 2 | 2020-07-01T20:41:46.000Z | 2021-09-09T05:44:30.000Z | lib/mix/lib/releases/overlays.ex | LaudateCorpus1/distillery | bbf7f1871553465eb21ef8ed5e2ace3308d79683 | [
"MIT"
] | null | null | null | lib/mix/lib/releases/overlays.ex | LaudateCorpus1/distillery | bbf7f1871553465eb21ef8ed5e2ace3308d79683 | [
"MIT"
] | 3 | 2021-06-03T10:01:32.000Z | 2022-03-17T09:57:37.000Z | defmodule Mix.Releases.Overlays do
@moduledoc """
This module is responsible for applying overlays to a release, prior to packaging.
Overlays are templated with EEx, with bindings set to the values configured in `overlay_vars`.
There are some preconfigured overlay variables, namely:
- `erts_vsn`: The versi... | 46.507813 | 110 | 0.585755 |
2df7b5f67c6ba7dd96ed9f82fcf5c6635045260a | 43,789 | ex | Elixir | lib/timezone/timezone_local.ex | pma/timex | 80f13fe5cdf56f5f8beb980f0131c9d134becd08 | [
"MIT"
] | 2 | 2018-05-25T17:19:19.000Z | 2020-11-21T06:54:33.000Z | lib/timezone/timezone_local.ex | pma/timex | 80f13fe5cdf56f5f8beb980f0131c9d134becd08 | [
"MIT"
] | null | null | null | lib/timezone/timezone_local.ex | pma/timex | 80f13fe5cdf56f5f8beb980f0131c9d134becd08 | [
"MIT"
] | null | null | null | defmodule Timex.Timezone.Local do
@moduledoc """
Contains the logic and parser for extracting local timezone configuration.
"""
alias Timex.DateTime, as: DateTime
alias Timex.Date, as: Date
# Map of Windows time zone names to Olson time zone names
@lookup_olson [
{ "AUS Central Standard Time", "A... | 47.442037 | 104 | 0.610496 |
2df7bb789bcb0636528e94040def35bd352623f7 | 1,179 | exs | Elixir | test/registration_test.exs | sasani5942/exactor | 453b4505d2d6fabd523e3ce70f5b00d4ca71c7c5 | [
"MIT"
] | 616 | 2015-01-09T03:11:36.000Z | 2022-03-16T06:07:55.000Z | test/registration_test.exs | sasani5942/exactor | 453b4505d2d6fabd523e3ce70f5b00d4ca71c7c5 | [
"MIT"
] | 23 | 2015-03-22T19:26:58.000Z | 2021-01-04T10:42:40.000Z | test/registration_test.exs | sasani5942/exactor | 453b4505d2d6fabd523e3ce70f5b00d4ca71c7c5 | [
"MIT"
] | 27 | 2015-03-23T17:41:41.000Z | 2020-10-31T13:20:22.000Z | defmodule RegistrationTest do
use ExUnit.Case
defmodule SingletonServer do
use ExActor.Tolerant, export: :singleton
defstart start(x), do: initial_state(x)
defcall get, state: state, do: reply(state)
defcast set(x), do: new_state(x)
end
test "singleton" do
{:ok, _} = SingletonServer.start... | 24.5625 | 69 | 0.69296 |
2df7c8942f47aab616b2af477223ad088d73eb3f | 408 | ex | Elixir | apps/language_server/lib/language_server/dialyzer/supervisor.ex | ihabunek/elixir-ls | a8bdf9304f04254160c9fc982ad314a50085c51a | [
"Apache-2.0"
] | 865 | 2018-10-31T20:29:13.000Z | 2022-03-29T11:13:39.000Z | apps/language_server/lib/language_server/dialyzer/supervisor.ex | ihabunek/elixir-ls | a8bdf9304f04254160c9fc982ad314a50085c51a | [
"Apache-2.0"
] | 441 | 2019-01-05T02:33:52.000Z | 2022-03-30T20:56:50.000Z | apps/language_server/lib/language_server/dialyzer/supervisor.ex | ihabunek/elixir-ls | a8bdf9304f04254160c9fc982ad314a50085c51a | [
"Apache-2.0"
] | 126 | 2018-11-12T19:16:53.000Z | 2022-03-26T13:27:50.000Z | defmodule ElixirLS.LanguageServer.Dialyzer.Supervisor do
alias ElixirLS.LanguageServer.Dialyzer
use Supervisor
def start_link(parent \\ self(), root_path) do
Supervisor.start_link(__MODULE__, {parent, root_path})
end
@impl Supervisor
def init({parent, root_path}) do
Supervisor.init(
[
... | 21.473684 | 58 | 0.688725 |
2df7ed82f366b6f754c1bbed91595690115e5eb8 | 3,102 | ex | Elixir | lib/analytics/records.ex | OnceApp/Analytics | 4d3d6fd5eb5c7ec18b4df23515bb25661df818d9 | [
"MIT"
] | null | null | null | lib/analytics/records.ex | OnceApp/Analytics | 4d3d6fd5eb5c7ec18b4df23515bb25661df818d9 | [
"MIT"
] | null | null | null | lib/analytics/records.ex | OnceApp/Analytics | 4d3d6fd5eb5c7ec18b4df23515bb25661df818d9 | [
"MIT"
] | 1 | 2019-08-08T16:39:56.000Z | 2019-08-08T16:39:56.000Z | defmodule Analytics.Records do
@callback handle_event(payload :: [tuple()]) :: no_return()
defmacro __using__(_) do
quote location: :keep do
@batch_size Application.fetch_env!(:analytics, :batch_size)
use GenServer
@behaviour Analytics.Records
import Kernel
import Analytics
... | 27.696429 | 85 | 0.574146 |
2df80647d2334b15146319a127b7175e77cceb72 | 244 | exs | Elixir | test/fixtures/good_mix.exs | bryanstearns/mix_deps_add | d09bfc73a6ddf2931aa9810309d1080e27fbf3b0 | [
"MIT"
] | 14 | 2017-03-15T01:48:06.000Z | 2020-07-10T23:38:19.000Z | test/fixtures/good_mix.exs | bryanstearns/mix_deps_add | d09bfc73a6ddf2931aa9810309d1080e27fbf3b0 | [
"MIT"
] | 4 | 2017-03-15T22:43:31.000Z | 2019-07-03T01:47:29.000Z | test/fixtures/good_mix.exs | bryanstearns/mix_deps_add | d09bfc73a6ddf2931aa9810309d1080e27fbf3b0 | [
"MIT"
] | 3 | 2017-04-10T18:08:30.000Z | 2021-06-01T11:23:14.000Z | # These are the example dependencies listed by `mix help deps`
defp deps do
[
{:plug, ">= 0.4.0"},
{:foobar, git: "https://github.com/elixir-lang/foobar.git", tag: "0.1"},
{:foobar, path: "path/to/foobar"}
]
end
| 27.111111 | 78 | 0.565574 |
2df81ff6bf4af45451c0b6de045affa7b42bcaf9 | 2,162 | ex | Elixir | lib/livebook_web/live/sidebar_component.ex | benjreinhart/livebook | 0500ad5c6237167ce9769d8cc78fca360834f576 | [
"Apache-2.0"
] | null | null | null | lib/livebook_web/live/sidebar_component.ex | benjreinhart/livebook | 0500ad5c6237167ce9769d8cc78fca360834f576 | [
"Apache-2.0"
] | null | null | null | lib/livebook_web/live/sidebar_component.ex | benjreinhart/livebook | 0500ad5c6237167ce9769d8cc78fca360834f576 | [
"Apache-2.0"
] | 1 | 2021-07-07T06:18:36.000Z | 2021-07-07T06:18:36.000Z | defmodule LivebookWeb.SidebarComponent do
use LivebookWeb, :live_component
import LivebookWeb.UserHelpers
# ## Attributes
#
# * `:items` - a list of sidebar items
@impl true
def render(assigns) do
~L"""
<div class="w-16 flex flex-col items-center space-y-5 px-3 py-7 bg-gray-900">
<%= fo... | 27.717949 | 183 | 0.581406 |
2df871f95be9f8b10ecd6d8f08ecfc5587c35f29 | 2,198 | exs | Elixir | test/mix/tasks/deps.ghq_get_test.exs | nabinno/deps_ghq_get | fad46c0c7c4784fd16b6ac62aa751bc8ca1a5438 | [
"MIT"
] | 1 | 2018-11-23T13:06:48.000Z | 2018-11-23T13:06:48.000Z | test/mix/tasks/deps.ghq_get_test.exs | nabinno/deps_ghq_get | fad46c0c7c4784fd16b6ac62aa751bc8ca1a5438 | [
"MIT"
] | null | null | null | test/mix/tasks/deps.ghq_get_test.exs | nabinno/deps_ghq_get | fad46c0c7c4784fd16b6ac62aa751bc8ca1a5438 | [
"MIT"
] | null | null | null | Code.require_file("../../test_helper.exs", __DIR__)
defmodule Mix.Tasks.Deps.GhqGetTest do
use MixTest.Case
setup %{describe: describe} = _context do
"Elixir.Mix.Tasks.Deps.GhqGetTest.#{describe}"
|> String.to_existing_atom()
|> Mix.Project.push()
end
describe "HexApp" do
defmodule HexApp do
... | 27.135802 | 94 | 0.585532 |
2df887200976ae44ed41371b1c1edd54227b4545 | 1,078 | ex | Elixir | web/router.ex | helapu/gd_push | 4bfe17194a898232fe8e8a4d54d4f90934ba4125 | [
"MIT"
] | null | null | null | web/router.ex | helapu/gd_push | 4bfe17194a898232fe8e8a4d54d4f90934ba4125 | [
"MIT"
] | null | null | null | web/router.ex | helapu/gd_push | 4bfe17194a898232fe8e8a4d54d4f90934ba4125 | [
"MIT"
] | null | null | null | defmodule GdPush.Router do
use GdPush.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"]
end
scope "/", GdPush do
pipe_through ... | 21.137255 | 58 | 0.640074 |
2df8fd4f521006650c4612f53be10f55610bfe55 | 7,524 | ex | Elixir | Microsoft.Azure.Management.Compute/lib/microsoft/azure/management/compute/api/virtual_machine_scale_set_extensions.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.Compute/lib/microsoft/azure/management/compute/api/virtual_machine_scale_set_extensions.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | null | null | null | Microsoft.Azure.Management.Compute/lib/microsoft/azure/management/compute/api/virtual_machine_scale_set_extensions.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.Compute.Api.VirtualMachineScaleSetExtensions do
@moduledoc """
API calls for all endpoints tagged `VirtualMachineSc... | 55.323529 | 325 | 0.758905 |
2df8ffde6b0f5b1926ccce19de070865c653220c | 1,122 | exs | Elixir | test/test_helper.exs | lpotepa/bodyguard | 22202bdf76bcacb0bddffd469d31075329800b86 | [
"MIT"
] | null | null | null | test/test_helper.exs | lpotepa/bodyguard | 22202bdf76bcacb0bddffd469d31075329800b86 | [
"MIT"
] | null | null | null | test/test_helper.exs | lpotepa/bodyguard | 22202bdf76bcacb0bddffd469d31075329800b86 | [
"MIT"
] | null | null | null | defmodule TestContext do
@behaviour Bodyguard.Policy
defmodule User do
defstruct allow: true
end
def authorize(action, user, params \\ %{})
def authorize(_, %User{allow: false}, _params) do
{:error, :unauthorized}
end
def authorize(:fail_with_params, _user, params) do
{:error, params}
en... | 20.035714 | 67 | 0.705882 |
2df91fec3653b0a39822cfae54272b087666264e | 772 | ex | Elixir | lib/fika/compiler/type_checker/sequential_type_checker.ex | fika-lang/fika | 15bffc30daed744670bb2c0fba3e674055adac47 | [
"Apache-2.0"
] | 220 | 2020-09-12T18:16:29.000Z | 2022-03-15T14:39:05.000Z | lib/fika/compiler/type_checker/sequential_type_checker.ex | fika-lang/fika | 15bffc30daed744670bb2c0fba3e674055adac47 | [
"Apache-2.0"
] | 60 | 2020-09-23T14:20:36.000Z | 2021-03-08T08:55:57.000Z | lib/fika/compiler/type_checker/sequential_type_checker.ex | fika-lang/fika | 15bffc30daed744670bb2c0fba3e674055adac47 | [
"Apache-2.0"
] | 25 | 2020-09-19T09:06:10.000Z | 2021-08-24T23:48:39.000Z | defmodule Fika.Compiler.TypeChecker.SequentialTypeChecker do
alias Fika.Compiler.TypeChecker
alias Fika.Compiler.TypeChecker.FunctionMatch
def get_result(signature, env) do
if result = find_by_signature(env.ast[:function_defs], signature) do
{function, vars} = result
function
|> TypeChecke... | 25.733333 | 72 | 0.689119 |
2df95256e2fab352e8392be92a967b1b54766a8b | 2,665 | ex | Elixir | clients/bigtable_admin/lib/google_api/bigtable_admin/v2/model/cluster.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/bigtable_admin/lib/google_api/bigtable_admin/v2/model/cluster.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/bigtable_admin/lib/google_api/bigtable_admin/v2/model/cluster.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... | 37.535211 | 142 | 0.69606 |
2df97cc142665a6772e290268ab08785eb1976ff | 3,863 | exs | Elixir | config/runtime.exs | SergioRius/teslamate | 747400f6b12c660c6ffad8a941eb27ada7d61c18 | [
"MIT"
] | null | null | null | config/runtime.exs | SergioRius/teslamate | 747400f6b12c660c6ffad8a941eb27ada7d61c18 | [
"MIT"
] | 1 | 2022-03-30T14:40:12.000Z | 2022-03-30T14:40:12.000Z | config/runtime.exs | SergioRius/teslamate | 747400f6b12c660c6ffad8a941eb27ada7d61c18 | [
"MIT"
] | null | null | null | import Config
defmodule Util do
def random_string(length) do
:crypto.strong_rand_bytes(length) |> Base.encode64() |> binary_part(0, length)
end
def to_integer(nil), do: nil
def to_integer(str), do: String.to_integer(str)
def validate_namespace!(nil), do: nil
def validate_namespace!(""), do: nil
de... | 33.017094 | 93 | 0.663992 |
2df9a8448a207073623c42067d5dbd6a2fac09f4 | 1,421 | ex | Elixir | chapter13/issues/lib/issues/cli.ex | ChristopheBelpaire/programmingElixir | 49e2226f2d4c4fe428a655bd48c119d52200ba07 | [
"MIT"
] | null | null | null | chapter13/issues/lib/issues/cli.ex | ChristopheBelpaire/programmingElixir | 49e2226f2d4c4fe428a655bd48c119d52200ba07 | [
"MIT"
] | null | null | null | chapter13/issues/lib/issues/cli.ex | ChristopheBelpaire/programmingElixir | 49e2226f2d4c4fe428a655bd48c119d52200ba07 | [
"MIT"
] | null | null | null | defmodule Issues.CLI do
@default_count 4
def main(argv) do
argv
|> parse_args
|> process
end
def parse_args(argv) do
parse = OptionParser.parse(argv, switches: [help: :boolean],
aliases: [h: :help])
case parse do
{ [ help: true], _, _}
... | 25.375 | 87 | 0.611541 |
2df9ad803fa6b9a1da85ed5b393c11311757b92c | 2,477 | ex | Elixir | lib/google_sheets/loader/file_system.ex | hnen/GoogleSheets | 80d288deb69a0ffa778657e0eb077fc2057804a3 | [
"MIT"
] | null | null | null | lib/google_sheets/loader/file_system.ex | hnen/GoogleSheets | 80d288deb69a0ffa778657e0eb077fc2057804a3 | [
"MIT"
] | null | null | null | lib/google_sheets/loader/file_system.ex | hnen/GoogleSheets | 80d288deb69a0ffa778657e0eb077fc2057804a3 | [
"MIT"
] | null | null | null | defmodule GoogleSheets.Loader.FileSystem do
@moduledoc """
Implements GoogleSheets.Loader behavior for reading given spreadsheets in CSV format
from a directory.
"""
@behaviour GoogleSheets.Loader
@doc """
Reads CSV files from config[:dir] directory.
"""
def load(previous_version, _id, config) when... | 32.592105 | 126 | 0.672588 |
2df9c79e782b963aab5e970460d64478ab13adb4 | 1,473 | ex | Elixir | lib/commanded/aggregates/supervisor.ex | tooploox/commanded | 50cd809830e82b535ce610c2baebc02d3ea13cfe | [
"MIT"
] | null | null | null | lib/commanded/aggregates/supervisor.ex | tooploox/commanded | 50cd809830e82b535ce610c2baebc02d3ea13cfe | [
"MIT"
] | 1 | 2018-12-05T18:17:08.000Z | 2018-12-05T18:17:08.000Z | lib/commanded/aggregates/supervisor.ex | tooploox/commanded | 50cd809830e82b535ce610c2baebc02d3ea13cfe | [
"MIT"
] | 1 | 2018-12-05T18:15:03.000Z | 2018-12-05T18:15:03.000Z | defmodule Commanded.Aggregates.Supervisor do
@moduledoc """
Supervises `Commanded.Aggregates.Aggregate` instance processes.
"""
use Supervisor
require Logger
alias Commanded.Aggregates.Aggregate
alias Commanded.Registration
def start_link(arg) do
Supervisor.start_link(__MODULE__, arg, name: __MO... | 25.396552 | 91 | 0.697217 |
2df9c874235cf54598c893b4c1b3f675b9409504 | 2,006 | exs | Elixir | config/prod.exs | jacrdn/web_dev_hw08 | 1727810bb56a9a30733cb93cd77a8db7f5f747ed | [
"MIT"
] | null | null | null | config/prod.exs | jacrdn/web_dev_hw08 | 1727810bb56a9a30733cb93cd77a8db7f5f747ed | [
"MIT"
] | null | null | null | config/prod.exs | jacrdn/web_dev_hw08 | 1727810bb56a9a30733cb93cd77a8db7f5f747ed | [
"MIT"
] | 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.821429 | 66 | 0.713858 |
2df9d1def79931be831b54e30e183a58fe3b00c4 | 183 | ex | Elixir | example/lib/adder.ex | IdahoEv/prez-tdd-in-elixir | 9742dab3801e1363831d85666a39e3579fa058ff | [
"MIT"
] | 1 | 2016-11-03T03:34:10.000Z | 2016-11-03T03:34:10.000Z | example/lib/adder.ex | IdahoEv/prez-tdd-in-elixir | 9742dab3801e1363831d85666a39e3579fa058ff | [
"MIT"
] | null | null | null | example/lib/adder.ex | IdahoEv/prez-tdd-in-elixir | 9742dab3801e1363831d85666a39e3579fa058ff | [
"MIT"
] | null | null | null | defmodule Adder do
@doc """
Adds two numbers.
## examples
iex> Adder.add_two(1, 4)
5
iex> Adder.add_two(0.5, -3)
-2.5
"""
def add_two(a, b) do
a + b
end
end
| 11.4375 | 29 | 0.551913 |
2df9d8650eeb90269636f75d047bc3993af7d203 | 209 | exs | Elixir | test/controllers/page_controller_test.exs | Gronex/wishlist_manager | be240ebc85a737f31bd64bc913a2c3716827fd26 | [
"MIT"
] | null | null | null | test/controllers/page_controller_test.exs | Gronex/wishlist_manager | be240ebc85a737f31bd64bc913a2c3716827fd26 | [
"MIT"
] | 7 | 2015-12-30T19:43:10.000Z | 2016-01-04T14:38:38.000Z | test/controllers/page_controller_test.exs | Gronex/wishlist_manager | be240ebc85a737f31bd64bc913a2c3716827fd26 | [
"MIT"
] | null | null | null | defmodule WishlistManager.PageControllerTest do
use WishlistManager.ConnCase
test "GET /", %{conn: conn} do
conn = get conn, "/"
assert html_response(conn, 200) =~ "Welcome to Phoenix!"
end
end
| 23.222222 | 60 | 0.698565 |
2df9fdcbd41ee64b43ad38dbe3ceca84423c102e | 1,982 | ex | Elixir | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_update_stored_info_type_request.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_update_stored_info_type_request.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_update_stored_info_type_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 ... | 38.115385 | 179 | 0.757316 |
2dfa8baded3d01dc47937b6a3864cef415e67e15 | 2,052 | exs | Elixir | test/docker_phx/accounts_test.exs | beltranaceves/docker_phx | 06a9cba602ccd4f054568b7a40ca36bedc9a3e27 | [
"MIT"
] | null | null | null | test/docker_phx/accounts_test.exs | beltranaceves/docker_phx | 06a9cba602ccd4f054568b7a40ca36bedc9a3e27 | [
"MIT"
] | null | null | null | test/docker_phx/accounts_test.exs | beltranaceves/docker_phx | 06a9cba602ccd4f054568b7a40ca36bedc9a3e27 | [
"MIT"
] | null | null | null | defmodule DockerPhx.AccountsTest do
use DockerPhx.DataCase
alias DockerPhx.Accounts
describe "users" do
alias DockerPhx.Accounts.User
@valid_attrs %{name: "some name", username: "some username"}
@update_attrs %{name: "some updated name", username: "some updated username"}
@invalid_attrs %{name:... | 30.626866 | 85 | 0.656433 |
2dfa98ec2820f0ff0d67915e7b288edcf439f8d5 | 1,953 | ex | Elixir | clients/security_center/lib/google_api/security_center/v1/model/list_notification_configs_response.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/security_center/lib/google_api/security_center/v1/model/list_notification_configs_response.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/security_center/lib/google_api/security_center/v1/model/list_notification_configs_response.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... | 36.166667 | 176 | 0.7532 |
2dfa9c964ec534a693cec489baf08ed419a47266 | 2,104 | ex | Elixir | lib/auto_api/states/engine_state.ex | highmobility/hm-auto-api-elixir | 026c3f50871c56877a4acd5f39a8887118a87bb5 | [
"MIT"
] | 4 | 2018-01-19T16:11:10.000Z | 2019-12-13T16:35:10.000Z | lib/auto_api/states/engine_state.ex | highmobility/auto-api-elixir | 026c3f50871c56877a4acd5f39a8887118a87bb5 | [
"MIT"
] | 5 | 2020-07-16T07:20:21.000Z | 2021-09-22T10:18:04.000Z | lib/auto_api/states/engine_state.ex | highmobility/hm-auto-api-elixir | 026c3f50871c56877a4acd5f39a8887118a87bb5 | [
"MIT"
] | 1 | 2021-02-17T18:36:13.000Z | 2021-02-17T18:36:13.000Z | # 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... | 34.491803 | 79 | 0.716255 |
2dfabd5bade1b55e99006214c33da5dc804e006e | 1,632 | ex | Elixir | elixir/lib/com/spoonacular/client/model/inline_response_200_22.ex | ddsky/spoonacular-api-clients | 63f955ceb2c356fefdd48ec634deb3c3e16a6ae7 | [
"MIT"
] | 21 | 2019-08-09T18:53:26.000Z | 2022-03-14T22:10:10.000Z | elixir/lib/com/spoonacular/client/model/inline_response_200_22.ex | ddsky/spoonacular-api-clients | 63f955ceb2c356fefdd48ec634deb3c3e16a6ae7 | [
"MIT"
] | null | null | null | elixir/lib/com/spoonacular/client/model/inline_response_200_22.ex | ddsky/spoonacular-api-clients | 63f955ceb2c356fefdd48ec634deb3c3e16a6ae7 | [
"MIT"
] | 55 | 2019-08-13T17:52:47.000Z | 2022-03-27T04:29:34.000Z | # NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
# https://openapi-generator.tech
# Do not edit the class manually.
defmodule com.spoonacular.client.Model.InlineResponse20022 do
@moduledoc """
"""
@derive [Poison.Encoder]
defstruct [
:"id",
:"original",
... | 25.904762 | 121 | 0.629902 |
2dfadf373de31d4de6f35834587ea9f24c8b5eaf | 4,234 | exs | Elixir | fly_postgres/test/lsn/lsn_tracker_test.exs | nbw/fly_rpc_elixir | a52a21dad1b9d79a02d702bc70c54140786a02f2 | [
"Apache-2.0"
] | null | null | null | fly_postgres/test/lsn/lsn_tracker_test.exs | nbw/fly_rpc_elixir | a52a21dad1b9d79a02d702bc70c54140786a02f2 | [
"Apache-2.0"
] | null | null | null | fly_postgres/test/lsn/lsn_tracker_test.exs | nbw/fly_rpc_elixir | a52a21dad1b9d79a02d702bc70c54140786a02f2 | [
"Apache-2.0"
] | null | null | null | defmodule Fly.Postgres.LSN.TrackerTest do
use ExUnit.Case, async: true
doctest Fly.Postgres.LSN.Tracker
alias Fly.Postgres.LSN
alias Fly.Postgres.LSN.Tracker
@test_lsn_table :test_lsn_cache
@test_requests :test_lsn_requests
setup do
server =
Tracker.start_link(
name: :test_tracker,
... | 35.881356 | 82 | 0.674067 |
2dfaeecd4892a6b87e58bf7dc61378a1e785cc64 | 6,282 | ex | Elixir | lib/bsv/message.ex | libitx/bsv-ex | 95070d645fd61f9ea6ba8758e2e1b2367d0f9320 | [
"Apache-2.0"
] | 26 | 2019-08-31T13:39:50.000Z | 2022-01-18T10:23:26.000Z | lib/bsv/message.ex | libitx/bsv-ex | 95070d645fd61f9ea6ba8758e2e1b2367d0f9320 | [
"Apache-2.0"
] | 4 | 2020-04-24T18:24:01.000Z | 2021-06-15T10:59:33.000Z | lib/bsv/message.ex | libitx/bsv-ex | 95070d645fd61f9ea6ba8758e2e1b2367d0f9320 | [
"Apache-2.0"
] | 4 | 2020-05-21T15:27:31.000Z | 2021-06-13T05:26:47.000Z | defmodule BSV.Message do
@moduledoc """
The Message module provides functions for encrypting, decrypting, signing and
verifying arbitrary messages using Bitcoin keys.
Message encryption uses the Electrum-compatible BIE1 ECIES algorithm. Message
signing uses the Bitcoin Signed Message algorithm. Both alorithm... | 30.347826 | 105 | 0.650271 |
2dfaf692f5b5d7049b22a775e9c4587391e1c353 | 1,355 | exs | Elixir | test/aws_metadata_test.exs | uberbrodt/ex_aws_metadata | 3c7ea92ce340875da1aee6b0c012b0f2001e1dfb | [
"Apache-2.0"
] | null | null | null | test/aws_metadata_test.exs | uberbrodt/ex_aws_metadata | 3c7ea92ce340875da1aee6b0c012b0f2001e1dfb | [
"Apache-2.0"
] | null | null | null | test/aws_metadata_test.exs | uberbrodt/ex_aws_metadata | 3c7ea92ce340875da1aee6b0c012b0f2001e1dfb | [
"Apache-2.0"
] | null | null | null | defmodule AWSMetadataTest do
use ExUnit.Case
doctest AWSMetadata
defmodule TestMetadataClient do
def fetch do
client = %{
access_key_id: "ACCESS_KEY_ID" ,
secret_access_key: "SECRET_ACCESS_KEY",
region: "us-east-1",
token: "TOKEN",
endpoint: "amazonaws.com"
... | 27.1 | 79 | 0.641328 |
2dfb1bfbc335b897a36a18c383864c0ccfed0268 | 574 | ex | Elixir | lib/modal/header.ex | vacarsu/flo_ui | 2605f2c826e8f21d16d11e84f0468bd823b5f5e1 | [
"MIT"
] | null | null | null | lib/modal/header.ex | vacarsu/flo_ui | 2605f2c826e8f21d16d11e84f0468bd823b5f5e1 | [
"MIT"
] | null | null | null | lib/modal/header.ex | vacarsu/flo_ui | 2605f2c826e8f21d16d11e84f0468bd823b5f5e1 | [
"MIT"
] | null | null | null | defmodule FloUI.Modal.Header do
@moduledoc false
use SnapFramework.Component,
name: :modal_header,
template: "lib/modal/header.eex",
controller: :none,
assigns: [
width: 500,
height: 500,
show_check: true,
show_close: true
],
opts: []
defcomponent(:modal_header, :... | 21.259259 | 49 | 0.606272 |
2dfb1f8c20c54bb9a6097586c5080fabe0ea7ce0 | 372 | ex | Elixir | lib/app/page_handler.ex | CristianOliveiraDaRosa/cowboy_hello_word | 734a2482994119227fbbc174bc758951912ca398 | [
"MIT"
] | 69 | 2015-11-17T02:17:29.000Z | 2022-01-17T17:36:27.000Z | lib/app/page_handler.ex | CristianOliveiraDaRosa/cowboy_hello_word | 734a2482994119227fbbc174bc758951912ca398 | [
"MIT"
] | 66 | 2015-11-17T16:55:49.000Z | 2020-11-18T20:13:58.000Z | examples/elixir/lib/app/page_handler.ex | eric-erki/platforms | 8d331f8cfca4849a0171a78c9eb87bcc8d60b634 | [
"BSD-3-Clause"
] | 83 | 2015-11-26T08:35:16.000Z | 2022-01-05T01:43:09.000Z | defmodule App.PageHandler do
def init({:tcp, :http}, req, opts) do
headers = [{"content-type", "text/plain"}]
body = "Hello world from tsuru"
{:ok, resp} = :cowboy_req.reply(200, headers, body, req)
{:ok, resp, opts}
end
def handle(req, state) do
{:ok, req, state}
end
def term... | 20.666667 | 61 | 0.591398 |
2dfb24a819a9e1a738997521831bce9d5a9e56b5 | 1,790 | ex | Elixir | clients/machine_learning/lib/google_api/machine_learning/v1/model/google_cloud_ml_v1__disk_config.ex | jamesvl/elixir-google-api | 6c87fb31d996f08fb42ce6066317e9d652a87acc | [
"Apache-2.0"
] | null | null | null | clients/machine_learning/lib/google_api/machine_learning/v1/model/google_cloud_ml_v1__disk_config.ex | jamesvl/elixir-google-api | 6c87fb31d996f08fb42ce6066317e9d652a87acc | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/machine_learning/lib/google_api/machine_learning/v1/model/google_cloud_ml_v1__disk_config.ex | myskoach/elixir-google-api | 4f8cbc2fc38f70ffc120fd7ec48e27e46807b563 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 35.8 | 222 | 0.735754 |
2dfb3096d27a565e38240a53f70d564f5ef44de1 | 44,865 | exs | Elixir | lib/elixir/test/elixir/file_test.exs | xtian/elixir | c680eb1a3992309c272e8f808e15990ea5318d6e | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/file_test.exs | xtian/elixir | c680eb1a3992309c272e8f808e15990ea5318d6e | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/file_test.exs | xtian/elixir | c680eb1a3992309c272e8f808e15990ea5318d6e | [
"Apache-2.0"
] | null | null | null | Code.require_file "test_helper.exs", __DIR__
defmodule Elixir.FileCase do
use ExUnit.CaseTemplate
import PathHelpers
using do
quote do
import PathHelpers
end
end
setup do
File.mkdir_p!(tmp_path())
on_exit(fn -> File.rm_rf(tmp_path()) end)
:ok
end
end
defmodule FileTest do
use... | 26.099476 | 180 | 0.5852 |
2dfb4b5b2300a77c86ea6926ac7276e1a527bfe7 | 876 | ex | Elixir | lib/monis_app/finance/transaction.ex | monisapp/api | 4096d50da23e0b562a309b9d0ccf6b211f431d25 | [
"MIT"
] | 1 | 2020-04-24T19:40:46.000Z | 2020-04-24T19:40:46.000Z | lib/monis_app/finance/transaction.ex | monisapp/api | 4096d50da23e0b562a309b9d0ccf6b211f431d25 | [
"MIT"
] | null | null | null | lib/monis_app/finance/transaction.ex | monisapp/api | 4096d50da23e0b562a309b9d0ccf6b211f431d25 | [
"MIT"
] | null | null | null | defmodule MonisApp.Finance.Transaction do
use Ecto.Schema
import Ecto.Changeset
@moduledoc """
A transaction represents a movement going out or in an account
Each transaction has a category
"""
@primary_key {:id, :binary_id, autogenerate: true}
@foreign_key_type :binary_id
schema "transactions" do
... | 27.375 | 92 | 0.718037 |
2dfb4e3fb9242745e38b2efa54d188e156b8d34c | 1,518 | ex | Elixir | clients/web_security_scanner/lib/google_api/web_security_scanner/v1/model/vulnerable_parameters.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/web_security_scanner/lib/google_api/web_security_scanner/v1/model/vulnerable_parameters.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/web_security_scanner/lib/google_api/web_security_scanner/v1/model/vulnerable_parameters.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... | 32.297872 | 101 | 0.749671 |
2dfb697bfdaa73af3a7f3c6308f8f524e075f219 | 590 | exs | Elixir | code/tooling/webapp/test/controllers/page_controller_test.exs | alvarocamillont/introdu-o_elixir | 1d72d4f4b01d9312c4b066ce3c0fe8d9bfaaade1 | [
"MIT"
] | null | null | null | code/tooling/webapp/test/controllers/page_controller_test.exs | alvarocamillont/introdu-o_elixir | 1d72d4f4b01d9312c4b066ce3c0fe8d9bfaaade1 | [
"MIT"
] | 1 | 2021-03-09T16:27:25.000Z | 2021-03-09T16:27:25.000Z | programming-elixir-book/code/tooling/webapp/test/controllers/page_controller_test.exs | jordanhubbard/elixir-projects | dee341d672e83a45a17a4a85abd54a480f95c506 | [
"BSD-2-Clause"
] | null | null | null | #---
# Excerpted from "Programming Elixir ≥ 1.6",
# published by The Pragmatic Bookshelf.
# Copyrights apply to this code. It may not be used to create training material,
# courses, books, articles, and the like. Contact us if you are in doubt.
# We make no guarantees that this code is fit for any purpose.
# Visit http... | 34.705882 | 85 | 0.723729 |
2dfb993df737517ee3fcc5bc361027c278300a86 | 2,822 | ex | Elixir | lib/event_store/tasks/migrate.ex | andreapavoni/eventstore | 6b2bbfe1afb7846db51a51ec9df96fe435df5214 | [
"MIT"
] | null | null | null | lib/event_store/tasks/migrate.ex | andreapavoni/eventstore | 6b2bbfe1afb7846db51a51ec9df96fe435df5214 | [
"MIT"
] | null | null | null | lib/event_store/tasks/migrate.ex | andreapavoni/eventstore | 6b2bbfe1afb7846db51a51ec9df96fe435df5214 | [
"MIT"
] | null | null | null | defmodule EventStore.Tasks.Migrate do
@moduledoc """
Task to migrate EventStore
"""
import EventStore.Tasks.Output
alias EventStore.Config
alias EventStore.Storage.Database
@available_migrations [
"0.13.0",
"0.14.0",
"0.17.0",
"1.1.0"
]
@dialyzer {:no_return, exec: 2, handle_respon... | 24.119658 | 96 | 0.631467 |
2dfbd7732a075b53a4bbecada9fe88760be5eb5e | 660 | ex | Elixir | lib/integrate_web/plugs/auth_plug.ex | integratedb/core | 0b4a7a38d014e5ae973a1fa807c137834dfdf9cb | [
"MIT"
] | 13 | 2021-01-28T14:45:43.000Z | 2021-11-04T21:54:19.000Z | lib/integrate_web/plugs/auth_plug.ex | integratedb/integrate | 0b4a7a38d014e5ae973a1fa807c137834dfdf9cb | [
"MIT"
] | null | null | null | lib/integrate_web/plugs/auth_plug.ex | integratedb/integrate | 0b4a7a38d014e5ae973a1fa807c137834dfdf9cb | [
"MIT"
] | null | null | null | defmodule IntegrateWeb.AuthPlug do
@moduledoc """
Set `conn.assigns[:current_user]` using the `authorization` header.
If the current_user is empty, looks in the auth header, tries to parse out
a valid user_id and uses that to lookup and assign the current_user.
"""
@behaviour Plug
alias Plug.Conn
ali... | 20 | 76 | 0.648485 |
2dfbe8f9c3be0da5b73104d92cdd6ddc9a4ead2a | 14,360 | ex | Elixir | clients/sql_admin/lib/google_api/sql_admin/v1beta4/api/databases.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/sql_admin/lib/google_api/sql_admin/v1beta4/api/databases.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/sql_admin/lib/google_api/sql_admin/v1beta4/api/databases.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 42.738095 | 170 | 0.679457 |
2dfbfa748bac19bd88482392b62e2e3d5a76384e | 1,526 | ex | Elixir | clients/vault/lib/google_api/vault/v1/model/reopen_matter_response.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/vault/lib/google_api/vault/v1/model/reopen_matter_response.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/vault/lib/google_api/vault/v1/model/reopen_matter_response.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 31.791667 | 78 | 0.747051 |
2dfbfaf3eb5238824fe42286c01ca9aeff3ec7ad | 817 | ex | Elixir | lib/teslamate/release.ex | Ma233/teslamate | 0ea19c19452623941681ca54ecbdc8f2353566ed | [
"MIT"
] | 1 | 2021-10-09T07:28:27.000Z | 2021-10-09T07:28:27.000Z | lib/teslamate/release.ex | Ma233/teslamate | 0ea19c19452623941681ca54ecbdc8f2353566ed | [
"MIT"
] | 20 | 2021-12-01T11:05:21.000Z | 2022-03-01T11:08:34.000Z | lib/teslamate/release.ex | Ma233/teslamate | 0ea19c19452623941681ca54ecbdc8f2353566ed | [
"MIT"
] | 1 | 2021-07-11T08:11:47.000Z | 2021-07-11T08:11:47.000Z | defmodule TeslaMate.Release do
@app :teslamate
import Ecto.Query
alias TeslaMate.Repo
def migrate do
for repo <- repos() do
{:ok, _, _} = Ecto.Migrator.with_repo(repo, &Ecto.Migrator.run(&1, :up, all: true))
end
end
def rollback(repo, version) do
for r <- repos(), r == repo do
{:o... | 24.029412 | 96 | 0.638923 |
2dfbff37a6d3bd78527fabf6bfa65b4aace6f289 | 1,991 | ex | Elixir | clients/container/lib/google_api/container/v1/model/daily_maintenance_window.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/container/lib/google_api/container/v1/model/daily_maintenance_window.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/container/lib/google_api/container/v1/model/daily_maintenance_window.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 39.039216 | 255 | 0.742341 |
2dfc04dee8e8f587474d18223dd2d5f2273ebf71 | 8,057 | ex | Elixir | lib/xema/castable.ex | hrzndhrn/xema | c53ec35f2554a5d465171cf9fab0906fd14c4789 | [
"MIT"
] | 49 | 2018-06-05T09:42:19.000Z | 2022-02-15T12:50:51.000Z | lib/xema/castable.ex | hrzndhrn/xema | c53ec35f2554a5d465171cf9fab0906fd14c4789 | [
"MIT"
] | 152 | 2017-06-11T13:43:06.000Z | 2022-01-09T17:13:45.000Z | lib/xema/castable.ex | hrzndhrn/xema | c53ec35f2554a5d465171cf9fab0906fd14c4789 | [
"MIT"
] | 6 | 2019-05-31T05:41:47.000Z | 2021-12-14T08:09:36.000Z | defprotocol Xema.Castable do
@moduledoc """
Converts data using the specified schema.
"""
@doc """
Converts the given data using the specified schema.
"""
def cast(value, schema)
end
defimpl Xema.Castable, for: Atom do
use Xema.Castable.Helper
def cast(nil, nil, _module, _schema), do: {:ok, nil}
... | 23.02 | 98 | 0.549957 |
2dfc0e1544ef8ab9a5608130083938503782cfa7 | 3,228 | ex | Elixir | clients/health_care/lib/google_api/health_care/v1/model/expr.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/health_care/lib/google_api/health_care/v1/model/expr.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/health_care/lib/google_api/health_care/v1/model/expr.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... | 57.642857 | 1,092 | 0.733271 |
2dfc2cd965e886bded31bcb1b34156599edccb46 | 3,291 | ex | Elixir | clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/job.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/job.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/job.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... | 55.779661 | 369 | 0.744455 |
2dfc339fbe689fab211f9602a1bd83b2ee64dab4 | 1,086 | ex | Elixir | lib/ex_aws_configurator/topic.ex | petlove/ex_aws_configurator | 1b937777d05153e567e36e5667e7293f5c6b9248 | [
"MIT"
] | null | null | null | lib/ex_aws_configurator/topic.ex | petlove/ex_aws_configurator | 1b937777d05153e567e36e5667e7293f5c6b9248 | [
"MIT"
] | 1 | 2022-03-25T18:14:15.000Z | 2022-03-25T18:32:36.000Z | lib/ex_aws_configurator/topic.ex | petlove/ex_aws_configurator | 1b937777d05153e567e36e5667e7293f5c6b9248 | [
"MIT"
] | null | null | null | defmodule ExAwsConfigurator.TopicAttributes do
@type t :: ExAws.SNS.topic_attributes()
defstruct content_based_deduplication: nil, fifo_topic: nil
end
defmodule ExAwsConfigurator.Topic do
require Logger
alias ExAwsConfigurator.TopicAttributes
@type t :: %__MODULE__{
name: binary(),
reg... | 26.487805 | 91 | 0.630755 |
2dfc47132c3161510006b71eee9c41d48af16d71 | 2,480 | ex | Elixir | clients/container_analysis/lib/google_api/container_analysis/v1alpha1/model/command.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/container_analysis/lib/google_api/container_analysis/v1alpha1/model/command.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/container_analysis/lib/google_api/container_analysis/v1alpha1/model/command.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... | 40 | 192 | 0.690726 |
2dfc9d11d9a038ce9f9a5f480420a35af8edf819 | 16,072 | ex | Elixir | lib/timber_phoenix.ex | treble37/timber-elixir-phoenix | 4023b69576a4d2e9029bdee6bd5ce7265973821a | [
"0BSD"
] | 3 | 2019-03-05T21:59:33.000Z | 2020-01-05T13:00:23.000Z | lib/timber_phoenix.ex | treble37/timber-elixir-phoenix | 4023b69576a4d2e9029bdee6bd5ce7265973821a | [
"0BSD"
] | 9 | 2018-12-21T21:19:03.000Z | 2020-04-27T09:35:02.000Z | lib/timber_phoenix.ex | treble37/timber-elixir-phoenix | 4023b69576a4d2e9029bdee6bd5ce7265973821a | [
"0BSD"
] | 6 | 2019-02-24T20:14:41.000Z | 2020-05-15T01:00:38.000Z | defmodule Timber.Phoenix do
@moduledoc """
Handles instrumentation of `Phoenix.Endpoint`.
This module is designed to log events when Phoenix calls a controller or
renders a template. It hooks into the instrumentation tools built into
Phoenix. Because of this, you will have to trigger a Phoenix recompile
in... | 32.273092 | 101 | 0.719637 |
2dfcb58a6c8f1bbad0b055b491caa72339bd3b31 | 14,430 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v28/api/ads.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v28/api/ads.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v28/api/ads.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"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... | 45.377358 | 511 | 0.679903 |
2dfcbf22ecf5a3da36314c2961d6898dd7827094 | 5,502 | ex | Elixir | lib/typo/pdf.ex | john-vinters/typo | 71a0fabca7cec380a5a76b2199554f87ff8aaf73 | [
"Apache-2.0"
] | null | null | null | lib/typo/pdf.ex | john-vinters/typo | 71a0fabca7cec380a5a76b2199554f87ff8aaf73 | [
"Apache-2.0"
] | null | null | null | lib/typo/pdf.ex | john-vinters/typo | 71a0fabca7cec380a5a76b2199554f87ff8aaf73 | [
"Apache-2.0"
] | null | null | null | #
# Copyright 2022, John Vinters <john.vinters@gmail.com>
#
# 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 appli... | 35.496774 | 97 | 0.592512 |
2dfcdc654f7f42876efa4aeff963a1c48d83313d | 92 | ex | Elixir | elixir/graphql/lib/graphql/repo.ex | gilmoreg/learn | 0c4f34387f0d2235ecd88ac62fb86a51f87eb5c2 | [
"MIT"
] | null | null | null | elixir/graphql/lib/graphql/repo.ex | gilmoreg/learn | 0c4f34387f0d2235ecd88ac62fb86a51f87eb5c2 | [
"MIT"
] | null | null | null | elixir/graphql/lib/graphql/repo.ex | gilmoreg/learn | 0c4f34387f0d2235ecd88ac62fb86a51f87eb5c2 | [
"MIT"
] | null | null | null | defmodule Graphql.Repo do
use Ecto.Repo,
otp_app: :graphql,
adapter: Tds.Ecto
end
| 15.333333 | 25 | 0.695652 |
2dfce9d4ef287c462b75149a8feef1598faea5c5 | 8,755 | ex | Elixir | lib/esbuild.ex | craigp/esbuild | 9947f46f0cf16517260635331247713a60adfde8 | [
"MIT"
] | null | null | null | lib/esbuild.ex | craigp/esbuild | 9947f46f0cf16517260635331247713a60adfde8 | [
"MIT"
] | null | null | null | lib/esbuild.ex | craigp/esbuild | 9947f46f0cf16517260635331247713a60adfde8 | [
"MIT"
] | null | null | null | defmodule Esbuild do
# https://registry.npmjs.org/esbuild/latest
@latest_version "0.14.0"
@moduledoc """
Esbuild is an installer and runner for [esbuild](https://esbuild.github.io).
## Profiles
You can define multiple esbuild profiles. By default, there is a
profile called `:default` which you can conf... | 28.611111 | 121 | 0.621588 |
2dfd2ec51f9973ad51f89f0f72fc4aa0baf5d182 | 2,407 | ex | Elixir | lib/esshd/key_authentication.ex | kianmeng/esshd | 1f69b8d88c3621c8187956ce914e74d05f6659ce | [
"Apache-2.0"
] | 46 | 2017-07-27T22:00:28.000Z | 2021-12-28T23:08:30.000Z | lib/esshd/key_authentication.ex | kianmeng/esshd | 1f69b8d88c3621c8187956ce914e74d05f6659ce | [
"Apache-2.0"
] | 7 | 2017-10-19T09:11:42.000Z | 2021-07-26T19:56:20.000Z | lib/esshd/key_authentication.ex | kianmeng/esshd | 1f69b8d88c3621c8187956ce914e74d05f6659ce | [
"Apache-2.0"
] | 9 | 2019-01-28T16:13:30.000Z | 2021-12-28T11:07:50.000Z | defmodule Sshd.KeyAuthentication do
@moduledoc false
@behaviour :ssh_server_key_api
alias Sshd.Sessions
require Record
Record.defrecord(
:RSAPublicKey,
Record.extract(:RSAPublicKey, from_lib: "public_key/include/public_key.hrl")
)
Record.defrecord(
:RSAPrivateKey,
Record.extract(:RSAPr... | 27.352273 | 97 | 0.669298 |
2dfd4b9d6331ae58618192827c595263c157089c | 6,838 | exs | Elixir | test/gen_rmq_consumer_test.exs | haroldvera/gen_rmq | 21e8c74c8940c344e408d96618668655b9f3c85a | [
"MIT"
] | null | null | null | test/gen_rmq_consumer_test.exs | haroldvera/gen_rmq | 21e8c74c8940c344e408d96618668655b9f3c85a | [
"MIT"
] | null | null | null | test/gen_rmq_consumer_test.exs | haroldvera/gen_rmq | 21e8c74c8940c344e408d96618668655b9f3c85a | [
"MIT"
] | null | null | null | defmodule GenRMQ.ConsumerTest do
use ExUnit.Case, async: false
use GenRMQ.RabbitCase
alias GenRMQ.Test.Assert
alias GenRMQ.Consumer
alias TestConsumer.Default
alias TestConsumer.WithCustomDeadletter
alias TestConsumer.WithoutConcurrency
alias TestConsumer.WithoutDeadletter
alias TestConsumer.Without... | 30.123348 | 118 | 0.670664 |
2dfd740749eda531b60b8e31ef0a07493a491b76 | 110 | ex | Elixir | lib/diversity_in_tech_web/views/admin/company_view.ex | dreamingechoes/diversity-in-tech | 4eb5dadf69f82fd08e1cdd1b125264930d3b4e6f | [
"MIT"
] | 8 | 2018-06-22T05:43:30.000Z | 2020-04-13T20:31:40.000Z | lib/diversity_in_tech_web/views/admin/company_view.ex | dreamingechoes/diversity-in-tech | 4eb5dadf69f82fd08e1cdd1b125264930d3b4e6f | [
"MIT"
] | null | null | null | lib/diversity_in_tech_web/views/admin/company_view.ex | dreamingechoes/diversity-in-tech | 4eb5dadf69f82fd08e1cdd1b125264930d3b4e6f | [
"MIT"
] | null | null | null | defmodule DiversityInTechWeb.Admin.CompanyView do
use DiversityInTechWeb, :view
import Scrivener.HTML
end
| 22 | 49 | 0.836364 |
2dfdb3b0b0e4d69d7217977cec30126f6a917575 | 1,101 | ex | Elixir | lib/ai_web/views/error_view.ex | mirai-audio/- | 365c0fba614543bf40ebaae55de47bc541bd473f | [
"MIT"
] | null | null | null | lib/ai_web/views/error_view.ex | mirai-audio/- | 365c0fba614543bf40ebaae55de47bc541bd473f | [
"MIT"
] | null | null | null | lib/ai_web/views/error_view.ex | mirai-audio/- | 365c0fba614543bf40ebaae55de47bc541bd473f | [
"MIT"
] | null | null | null | defmodule AiWeb.ErrorView do
use AiWeb, :view
use JaSerializer.PhoenixView
def render("404.html", _assigns) do
"Page not found"
end
def render("500.html", _assigns) do
"Server internal error"
end
# In case no render clause matches or no
# template is found, let's render it as 500
# def temp... | 24.466667 | 49 | 0.680291 |
2dfdbf1b06be8099d12e7f757a79707ed4887660 | 11,466 | exs | Elixir | test/app/projects_test.exs | ThanhUong/Chronos | 5e1b0823c585b784f5c51212513d518cab53a571 | [
"MIT"
] | null | null | null | test/app/projects_test.exs | ThanhUong/Chronos | 5e1b0823c585b784f5c51212513d518cab53a571 | [
"MIT"
] | null | null | null | test/app/projects_test.exs | ThanhUong/Chronos | 5e1b0823c585b784f5c51212513d518cab53a571 | [
"MIT"
] | null | null | null | defmodule App.ProjectsTest do
use App.DataCase
alias App.Projects
describe "projects" do
alias App.Projects.Project
import App.ProjectsFixtures
test "list_projects/0 returns all projects" do
project = project_fixture_with_dependencies()
assert Projects.list_projects() == [project]
... | 37.106796 | 110 | 0.706088 |
2dfdc29446b6f7a185c8c72041ee27adf107a83c | 2,000 | ex | Elixir | apps/omg_watcher/test/support/web/data_case.ex | kendricktan/elixir-omg | 834c103fd5c4b9e063c1d32b9b4e5728abb64009 | [
"Apache-2.0"
] | null | null | null | apps/omg_watcher/test/support/web/data_case.ex | kendricktan/elixir-omg | 834c103fd5c4b9e063c1d32b9b4e5728abb64009 | [
"Apache-2.0"
] | null | null | null | apps/omg_watcher/test/support/web/data_case.ex | kendricktan/elixir-omg | 834c103fd5c4b9e063c1d32b9b4e5728abb64009 | [
"Apache-2.0"
] | 2 | 2020-06-07T11:14:54.000Z | 2020-08-02T07:36:32.000Z | # 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... | 28.571429 | 77 | 0.7035 |
2dfddc0aee4e0be8121d6ecb3dabda0e357007c3 | 2,142 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/user_role_permission.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/user_role_permission.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/user_role_permission.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... | 36.305085 | 154 | 0.701681 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.