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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e8ce608d498ab2e9bc1111aaae38fa85008899b7 | 8,368 | exs | Elixir | lib/mix/test/test_helper.exs | xtian/elixir | c680eb1a3992309c272e8f808e15990ea5318d6e | [
"Apache-2.0"
] | null | null | null | lib/mix/test/test_helper.exs | xtian/elixir | c680eb1a3992309c272e8f808e15990ea5318d6e | [
"Apache-2.0"
] | null | null | null | lib/mix/test/test_helper.exs | xtian/elixir | c680eb1a3992309c272e8f808e15990ea5318d6e | [
"Apache-2.0"
] | null | null | null | Mix.start()
Mix.shell(Mix.Shell.Process)
Application.put_env(:mix, :colors, [enabled: false])
ExUnit.start [trace: "--trace" in System.argv]
unless {1, 7, 4} <= Mix.SCM.Git.git_version do
IO.puts :stderr, "Skipping tests with git sparse checkouts..."
ExUnit.configure(exclude: :git_sparse)
end
defmodule MixTest.C... | 22.079156 | 82 | 0.620339 |
e8ce69c353b22b3eb66c11a986fa74552cb8f38b | 211 | ex | Elixir | src/proto_app/apps/marketplace/lib/marketplace.ex | cjimison/ethermint_prototype | 5d8924e2ddc167c59cf712c2496f43976bcbad00 | [
"MIT"
] | null | null | null | src/proto_app/apps/marketplace/lib/marketplace.ex | cjimison/ethermint_prototype | 5d8924e2ddc167c59cf712c2496f43976bcbad00 | [
"MIT"
] | null | null | null | src/proto_app/apps/marketplace/lib/marketplace.ex | cjimison/ethermint_prototype | 5d8924e2ddc167c59cf712c2496f43976bcbad00 | [
"MIT"
] | 1 | 2020-01-22T19:18:34.000Z | 2020-01-22T19:18:34.000Z | defmodule Marketplace do
@moduledoc """
Documentation for Marketplace.
"""
@doc """
Hello world.
## Examples
iex> Marketplace.hello()
:world
"""
def hello do
:world
end
end
| 11.105263 | 32 | 0.587678 |
e8ce79b7db800d9810bc963b72b75c2d87bd3124 | 2,090 | exs | Elixir | elixir/elixir-quiz/caesar-cipher/caesar-cipher.exs | afronski/playground-erlang | 6ac4b58b2fd717260c22a33284547d44a9b5038e | [
"MIT"
] | 2 | 2015-12-09T02:16:51.000Z | 2021-07-26T22:53:43.000Z | elixir/elixir-quiz/caesar-cipher/caesar-cipher.exs | afronski/playground-erlang | 6ac4b58b2fd717260c22a33284547d44a9b5038e | [
"MIT"
] | null | null | null | elixir/elixir-quiz/caesar-cipher/caesar-cipher.exs | afronski/playground-erlang | 6ac4b58b2fd717260c22a33284547d44a9b5038e | [
"MIT"
] | 1 | 2016-05-08T18:40:31.000Z | 2016-05-08T18:40:31.000Z | defmodule CaesarCipher do
def encode_file(path, offset \\ 13) do
path
|> File.read!
|> encode(offset)
end
def encode(text, offset \\ 13)
def encode(_, offset) when offset < 0, do: raise "Offset has to be positive."
def encode(_, offset) when offset >= 26, do: raise "Offset has to be less than 26... | 23.483146 | 85 | 0.654545 |
e8ce8e9bb9fae97a3adfd8fb224dbdf63ba7ab5e | 1,013 | exs | Elixir | test/adm/result_parser_test.exs | mumughal/pigeon | 6cb698fa5668c3b981f97464a48a61dc3863b3a0 | [
"MIT"
] | 1 | 2021-09-05T13:34:21.000Z | 2021-09-05T13:34:21.000Z | test/adm/result_parser_test.exs | mumughal/pigeon | 6cb698fa5668c3b981f97464a48a61dc3863b3a0 | [
"MIT"
] | null | null | null | test/adm/result_parser_test.exs | mumughal/pigeon | 6cb698fa5668c3b981f97464a48a61dc3863b3a0 | [
"MIT"
] | null | null | null | defmodule Pigeon.ADM.ResultParserTest do
use ExUnit.Case
doctest Pigeon.ADM.ResultParser, import: true
test "parses known error reasons without crashing" do
n = Pigeon.ADM.Notification.new("test")
onr = fn _ -> :ok end
Pigeon.ADM.ResultParser.parse(n, %{"reason" => "InvalidRegistrationId"}, onr)
... | 48.238095 | 83 | 0.686081 |
e8ce93556d12b24a837fb15463b2f84c1b0755be | 642 | ex | Elixir | lib/instream/writer/udp.ex | manulitic/instream | 5ad521dcf6a456325ba30b4c0dbb40f1f5107f32 | [
"Apache-2.0"
] | null | null | null | lib/instream/writer/udp.ex | manulitic/instream | 5ad521dcf6a456325ba30b4c0dbb40f1f5107f32 | [
"Apache-2.0"
] | null | null | null | lib/instream/writer/udp.ex | manulitic/instream | 5ad521dcf6a456325ba30b4c0dbb40f1f5107f32 | [
"Apache-2.0"
] | null | null | null | defmodule Instream.Writer.UDP do
@moduledoc """
Point writer for the line protocol using UDP.
"""
alias Instream.Encoder.Line, as: Encoder
@behaviour Instream.Writer
def write(%{payload: %{points: points}}, _opts, %{module: conn, udp_socket: udp_socket})
when is_list(points) and 0 < length(points) ... | 22.137931 | 90 | 0.607477 |
e8cea2f3a24d82e400787f0822b61542bb7ad819 | 848 | ex | Elixir | lib/client.ex | Ventup-IT/conekta-elixir | c871f3e4d53272cecb85f7952f931db57f82ec62 | [
"MIT"
] | null | null | null | lib/client.ex | Ventup-IT/conekta-elixir | c871f3e4d53272cecb85f7952f931db57f82ec62 | [
"MIT"
] | null | null | null | lib/client.ex | Ventup-IT/conekta-elixir | c871f3e4d53272cecb85f7952f931db57f82ec62 | [
"MIT"
] | null | null | null | defmodule Conekta.Client do
@moduledoc false
import Conekta.Wrapper
def get_request(url) do
get(url)
end
def post_request(url) do
post(url, [])
end
def post_request(url, params) do
post(url, encode_params(params), [], timeout: 150_000, recv_timeout: 150_000)
end
def delete_request(url)... | 18.434783 | 91 | 0.617925 |
e8ced8792f6578a97eb919b2f3a05be70aa6b6bc | 2,641 | ex | Elixir | clients/content/lib/google_api/content/v2/model/test_order_line_item.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/content/lib/google_api/content/v2/model/test_order_line_item.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/content/lib/google_api/content/v2/model/test_order_line_item.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... | 44.762712 | 176 | 0.733434 |
e8ceda873f78ead4feeab94a2047a37a84983313 | 1,253 | ex | Elixir | lib/models/attachment_info.ex | Mohammad-Haseeb/ex_microsoftbot | 72c417ce1e6dd42cf982bf856f3b402b67cf820e | [
"MIT"
] | 35 | 2016-05-11T02:34:27.000Z | 2021-04-29T07:34:11.000Z | lib/models/attachment_info.ex | Mohammad-Haseeb/ex_microsoftbot | 72c417ce1e6dd42cf982bf856f3b402b67cf820e | [
"MIT"
] | 27 | 2016-07-10T18:32:25.000Z | 2021-09-29T07:00:22.000Z | lib/models/attachment_info.ex | Mohammad-Haseeb/ex_microsoftbot | 72c417ce1e6dd42cf982bf856f3b402b67cf820e | [
"MIT"
] | 23 | 2016-05-10T18:53:13.000Z | 2021-06-25T22:04:21.000Z | defmodule ExMicrosoftBot.Models.AttachmentInfo do
@moduledoc """
Microsoft bot attachment info structure
"""
alias ExMicrosoftBot.Models.AttachmentView
@derive [Poison.Encoder]
defstruct [:name, :type, :views]
@type t :: %ExMicrosoftBot.Models.AttachmentInfo{
name: String.t,
type: String.t,
... | 26.104167 | 70 | 0.706305 |
e8cf515992385724cb5c21b5422532ae342a2027 | 11,329 | ex | Elixir | lib/shiftplaner/person.ex | pfitz/shiftplaner | 6c53314a24a974e2beba831d729b0c27e20f9463 | [
"MIT"
] | null | null | null | lib/shiftplaner/person.ex | pfitz/shiftplaner | 6c53314a24a974e2beba831d729b0c27e20f9463 | [
"MIT"
] | null | null | null | lib/shiftplaner/person.ex | pfitz/shiftplaner | 6c53314a24a974e2beba831d729b0c27e20f9463 | [
"MIT"
] | null | null | null | defmodule Shiftplaner.Person do
@moduledoc """
The `Shiftplaner.Person` modul handles all aspect of workers and grillers for the shiftplan.
"""
alias Shiftplaner.{Person, Repo, Shift}
alias Ecto.UUID
import Ecto.{Query, Changeset}, warn: false
require Logger
use Ecto.Schema
@primary_key {:id, :bi... | 32.93314 | 100 | 0.634213 |
e8cf67840680a3032afa0246c3dfd8485d8f0d99 | 1,984 | ex | Elixir | lib/servy/sensor_server.ex | Sinha-Ujjawal/Servy | b03a5aa963f33ac74f3642d81cc4734044705999 | [
"MIT"
] | null | null | null | lib/servy/sensor_server.ex | Sinha-Ujjawal/Servy | b03a5aa963f33ac74f3642d81cc4734044705999 | [
"MIT"
] | null | null | null | lib/servy/sensor_server.ex | Sinha-Ujjawal/Servy | b03a5aa963f33ac74f3642d81cc4734044705999 | [
"MIT"
] | null | null | null | defmodule Servy.SensorServer do
@name :sensor_server
use GenServer
alias Servy.VideoCam
alias Servy.Tracker
defmodule State do
# mins
@refresh_interval 10
defstruct refresh_interval: @refresh_interval, sensor_data: %{}
end
# Client Interface
def start_link(%{refresh_interval: refresh_inte... | 30.060606 | 93 | 0.710181 |
e8cfb6e787bcb7ba5ba08f2a2cb1727d29f16b81 | 104 | ex | Elixir | tests/dummy/web/views/kitchen_relationship_view.ex | autoxjs/autox-phoenix | 6446f4487e3af28955f6560973cff6add34be4d4 | [
"MIT"
] | null | null | null | tests/dummy/web/views/kitchen_relationship_view.ex | autoxjs/autox-phoenix | 6446f4487e3af28955f6560973cff6add34be4d4 | [
"MIT"
] | 20 | 2016-04-05T06:28:58.000Z | 2016-05-12T15:45:37.000Z | tests/dummy/web/views/kitchen_relationship_view.ex | foxnewsnetwork/autox | 66ea3f0f7ba8b3f9e910984a2ed3cdf0ef5ef29a | [
"MIT"
] | null | null | null | defmodule Dummy.KitchenRelationshipView do
use Dummy.Web, :view
use Autox.RelationshipView
end | 17.333333 | 42 | 0.778846 |
e8cfb92be5cb39897c6c842fd592751a4992f2de | 1,499 | ex | Elixir | lib/expletive/configuration.ex | xavier/expletive | 319a3039209797ce2571a11082a4574b535999b1 | [
"Apache-2.0"
] | 32 | 2015-02-15T05:26:34.000Z | 2021-08-14T21:38:24.000Z | lib/expletive/configuration.ex | xavier/expletive | 319a3039209797ce2571a11082a4574b535999b1 | [
"Apache-2.0"
] | 5 | 2017-04-19T15:08:01.000Z | 2021-08-04T06:58:30.000Z | lib/expletive/configuration.ex | xavier/expletive | 319a3039209797ce2571a11082a4574b535999b1 | [
"Apache-2.0"
] | 8 | 2015-02-15T11:12:02.000Z | 2021-06-19T04:19:59.000Z | defmodule Expletive.Configuration do
@moduledoc false
defstruct whitelist: [],
blacklist: [],
replacement: :default,
regex: nil
def new(options) do
%__MODULE__{} |> update(options)
end
def update(config, options) do
config |> update_config(options) |> compile
e... | 23.793651 | 92 | 0.657772 |
e8cff2102be83af6fc479c27f2db847399a6bd2f | 12,006 | ex | Elixir | lib/aws/generated/iot_device_advisor.ex | andrewhr/aws-elixir | 861dc2fafca50a2b2f83badba4cdcb44b5b0c171 | [
"Apache-2.0"
] | null | null | null | lib/aws/generated/iot_device_advisor.ex | andrewhr/aws-elixir | 861dc2fafca50a2b2f83badba4cdcb44b5b0c171 | [
"Apache-2.0"
] | null | null | null | lib/aws/generated/iot_device_advisor.ex | andrewhr/aws-elixir | 861dc2fafca50a2b2f83badba4cdcb44b5b0c171 | [
"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.IotDeviceAdvisor do
@moduledoc """
Amazon Web Services IoT Core Device Advisor is a cloud-based, fully managed test
capability for validating IoT devices during device software development.
... | 25.0125 | 140 | 0.649175 |
e8cff581dead4cf82209eb627e389d30f48df6e6 | 563 | ex | Elixir | priv/templates/lib/main/veil/session.ex | hassan/veil | 345b5d3539ccaba7e51b4e83583e9d15d8379fd4 | [
"MIT"
] | 164 | 2018-02-10T21:33:40.000Z | 2022-03-15T06:10:50.000Z | priv/templates/lib/main/veil/session.ex | hassan/veil | 345b5d3539ccaba7e51b4e83583e9d15d8379fd4 | [
"MIT"
] | 21 | 2018-02-15T02:31:40.000Z | 2021-04-04T07:16:43.000Z | priv/templates/lib/main/veil/session.ex | hassan/veil | 345b5d3539ccaba7e51b4e83583e9d15d8379fd4 | [
"MIT"
] | 14 | 2018-03-24T11:15:07.000Z | 2020-06-28T12:33:38.000Z | defmodule <%= main_module %>.Veil.Session do
@moduledoc """
Veil's Session Schema
"""
use Ecto.Schema
import Ecto.Changeset
alias <%= main_module %>.Veil.User
schema "veil_sessions" do
field(:unique_id, :string)
field(:phoenix_token, :string)
field(:ip_address, :string)
belongs_to(:user, ... | 23.458333 | 77 | 0.664298 |
e8d039fb59da27d6ea1021f922fada481b338314 | 2,143 | ex | Elixir | apps/nerves_hub_device/test/support/conn_case.ex | acrogenesis/nerves_hub_web | 27f651dd64b40a034254b50805884f4efd679957 | [
"Apache-2.0"
] | 1 | 2019-10-13T10:56:28.000Z | 2019-10-13T10:56:28.000Z | apps/nerves_hub_device/test/support/conn_case.ex | Eaftos/nerves_hub_web | ac03bd044b97265bf3ba3edd8da249d300fa3668 | [
"Apache-2.0"
] | null | null | null | apps/nerves_hub_device/test/support/conn_case.ex | Eaftos/nerves_hub_web | ac03bd044b97265bf3ba3edd8da249d300fa3668 | [
"Apache-2.0"
] | null | null | null | defmodule NervesHubDeviceWeb.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 common datastructures and query the data layer.
Finally... | 28.959459 | 86 | 0.702287 |
e8d050cc284332076b5def41bfa791b7f2e05808 | 9,019 | ex | Elixir | apps/language_server/lib/language_server/build.ex | bottlenecked/elixir-ls | 99ab6e98ff181aae01ca3d119dee0ea9c49c727a | [
"Apache-2.0"
] | null | null | null | apps/language_server/lib/language_server/build.ex | bottlenecked/elixir-ls | 99ab6e98ff181aae01ca3d119dee0ea9c49c727a | [
"Apache-2.0"
] | null | null | null | apps/language_server/lib/language_server/build.ex | bottlenecked/elixir-ls | 99ab6e98ff181aae01ca3d119dee0ea9c49c727a | [
"Apache-2.0"
] | null | null | null | defmodule ElixirLS.LanguageServer.Build do
alias ElixirLS.LanguageServer.{Server, JsonRpc, SourceFile, Diagnostics}
def build(parent, root_path, opts) when is_binary(root_path) do
if Path.absname(File.cwd!()) != Path.absname(root_path) do
IO.puts("Skipping build because cwd changed from #{root_path} to #... | 28.272727 | 104 | 0.566803 |
e8d057c9e44722ad9680a45d834f7889a9da3cc5 | 6,662 | ex | Elixir | lib/earmark/transform.ex | paradox460/earmark | 24c516daf264a4dced1424777c60d9f1620f11bb | [
"Apache-1.1"
] | null | null | null | lib/earmark/transform.ex | paradox460/earmark | 24c516daf264a4dced1424777c60d9f1620f11bb | [
"Apache-1.1"
] | null | null | null | lib/earmark/transform.ex | paradox460/earmark | 24c516daf264a4dced1424777c60d9f1620f11bb | [
"Apache-1.1"
] | null | null | null | defmodule Earmark.Transform do
import Earmark.Helpers, only: [replace: 3]
alias Earmark.Options
@compact_tags ~w[a code em strong del]
# https://www.w3.org/TR/2011/WD-html-markup-20110113/syntax.html#void-element
@void_elements ~W(area base br col command embed hr img input keygen link meta param source t... | 33.646465 | 114 | 0.651456 |
e8d05ab679bd7fc748b6d0aea861f28a7daedb7d | 1,802 | ex | Elixir | clients/cloud_build/lib/google_api/cloud_build/v1/model/list_operations_response.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | null | null | null | clients/cloud_build/lib/google_api/cloud_build/v1/model/list_operations_response.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | null | null | null | clients/cloud_build/lib/google_api/cloud_build/v1/model/list_operations_response.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"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... | 35.333333 | 121 | 0.749723 |
e8d0a42ce7df3b1c1a450129b54c75b217ddf6fb | 186 | ex | Elixir | lib/elixir/test/elixir/fixtures/dialyzer/defmacrop.ex | doughsay/elixir | 7356a47047d0b54517bd6886603f09b1121dde2b | [
"Apache-2.0"
] | 19,291 | 2015-01-01T02:42:49.000Z | 2022-03-31T21:01:40.000Z | lib/elixir/test/elixir/fixtures/dialyzer/defmacrop.ex | doughsay/elixir | 7356a47047d0b54517bd6886603f09b1121dde2b | [
"Apache-2.0"
] | 8,082 | 2015-01-01T04:16:23.000Z | 2022-03-31T22:08:02.000Z | lib/elixir/test/elixir/fixtures/dialyzer/defmacrop.ex | doughsay/elixir | 7356a47047d0b54517bd6886603f09b1121dde2b | [
"Apache-2.0"
] | 3,472 | 2015-01-03T04:11:56.000Z | 2022-03-29T02:07:30.000Z | defmodule Dialyzer.Defmacrop do
defmacrop good_macro(id) do
quote do
{:good, {:good_macro, unquote(id)}}
end
end
def run() do
good_macro("Not So Bad")
end
end
| 15.5 | 41 | 0.639785 |
e8d0ad8fd3768586544cb581cf8a493d7bd4025c | 848 | ex | Elixir | lib/content/audio.ex | mbta/realtime_signs | 3fd8cbc26ce2b0820e608e60fe12135dab5def69 | [
"MIT"
] | 1 | 2022-01-24T12:39:05.000Z | 2022-01-24T12:39:05.000Z | lib/content/audio.ex | mbta/realtime_signs | 3fd8cbc26ce2b0820e608e60fe12135dab5def69 | [
"MIT"
] | 40 | 2021-05-05T10:14:25.000Z | 2022-03-31T18:34:15.000Z | lib/content/audio.ex | mbta/realtime_signs | 3fd8cbc26ce2b0820e608e60fe12135dab5def69 | [
"MIT"
] | 1 | 2022-03-20T21:08:12.000Z | 2022-03-20T21:08:12.000Z | defprotocol Content.Audio do
@moduledoc """
Types of audio messages are defined as structs with certain
variables. The PA system HTTP POSTs take a "mid" (message ID)
and list of variables. Any "canned" audio announcement we want
to make should be represented as a struct, which implements
this protocol, in o... | 38.545455 | 81 | 0.704009 |
e8d0bab42584f526b37d6ac6305298a115a24fcd | 14,551 | exs | Elixir | test/gen_rmq_publisher_test.exs | VanHelmont/gen_rmq | ae6958c7f5d61b64e075020a9760cc5b64d749c3 | [
"MIT"
] | 164 | 2018-03-25T10:02:09.000Z | 2022-03-15T12:39:24.000Z | test/gen_rmq_publisher_test.exs | VanHelmont/gen_rmq | ae6958c7f5d61b64e075020a9760cc5b64d749c3 | [
"MIT"
] | 239 | 2018-03-14T13:08:42.000Z | 2022-03-20T08:59:16.000Z | test/gen_rmq_publisher_test.exs | VanHelmont/gen_rmq | ae6958c7f5d61b64e075020a9760cc5b64d749c3 | [
"MIT"
] | 41 | 2018-05-15T10:07:13.000Z | 2022-02-11T14:36:27.000Z | defmodule GenRMQ.PublisherTest do
use ExUnit.Case, async: false
use GenRMQ.RabbitCase
alias GenRMQ.Publisher
alias GenRMQ.Test.Assert
alias TestPublisher.{
Default,
RedeclaringExistingExchange,
WithConfirmations,
WithDefaultExchange
}
@connection "amqp://guest:guest@localhost:5672"
@e... | 34.562945 | 119 | 0.671363 |
e8d0d283f36788ad8140e7933ff853cb9f4e42e5 | 1,955 | ex | Elixir | deps/earmark/lib/earmark/helpers/html_helpers.ex | BandanaPandey/nary_tree | fb1eeb69e38e43c9f9ffb54297cef52dff5c928d | [
"MIT"
] | 13 | 2018-09-19T21:03:29.000Z | 2022-01-27T04:06:32.000Z | deps/earmark/lib/earmark/helpers/html_helpers.ex | mwindholtz/limbo | 84da57c72ddb2f1dd78bf2992410268c5ad1b2d4 | [
"Apache-2.0"
] | 1 | 2020-05-26T04:16:57.000Z | 2020-05-26T04:16:57.000Z | deps/earmark/lib/earmark/helpers/html_helpers.ex | mwindholtz/limbo | 84da57c72ddb2f1dd78bf2992410268c5ad1b2d4 | [
"Apache-2.0"
] | 3 | 2020-05-21T04:32:08.000Z | 2021-07-28T05:14:01.000Z | defmodule Earmark.Helpers.HtmlHelpers do
import Earmark.Helpers.AttrParser
@simple_tag ~r{^<(.*?)\s*>}
@doc false
def augment_tag_with_ial(context, tag, ial, lnb) do
case Regex.run( @simple_tag, tag) do
nil ->
nil
["<code class=\"inline\">", "code class=\"inline\""] ->
ta... | 29.179104 | 110 | 0.568798 |
e8d0d6adebca1e1e8b99fea74a492a17e3688dd8 | 3,352 | ex | Elixir | clients/container_analysis/lib/google_api/container_analysis/v1alpha1/model/slsa_recipe.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/container_analysis/lib/google_api/container_analysis/v1alpha1/model/slsa_recipe.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/container_analysis/lib/google_api/container_analysis/v1alpha1/model/slsa_recipe.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... | 56.813559 | 387 | 0.735382 |
e8d0e626225fb57b90f0e48edaf3b0bf8727f790 | 916 | ex | Elixir | debian/postrm.ex | klali/jpcsc | 176a9961e6910173587429a5fcb0925492326d45 | [
"BSD-Source-Code"
] | 1 | 2019-04-20T05:52:44.000Z | 2019-04-20T05:52:44.000Z | debian/postrm.ex | klali/jpcsc | 176a9961e6910173587429a5fcb0925492326d45 | [
"BSD-Source-Code"
] | null | null | null | debian/postrm.ex | klali/jpcsc | 176a9961e6910173587429a5fcb0925492326d45 | [
"BSD-Source-Code"
] | 5 | 2017-07-27T11:38:19.000Z | 2019-11-11T08:33:26.000Z | #! /bin/sh
# postrm script for jpcsc
#
# see: dh_installdeb(1)
set -e
# summary of how this script can be called:
# * <postrm> `remove'
# * <postrm> `purge'
# * <old-postrm> `upgrade' <new-version>
# * <new-postrm> `failed-upgrade' <old-version>
# * <new-postrm> `abort-install'
# ... | 23.487179 | 81 | 0.627729 |
e8d0e672aaa79c83eaf1387aab5c69730c1dcab0 | 185 | ex | Elixir | lib/wechat_mp_auth/component_verify_ticket.ex | he9qi/wechat_mp_auth | 307e5ffb2214f9aca3fb230c302852b1216ce0c3 | [
"MIT"
] | 21 | 2016-05-12T17:06:29.000Z | 2018-01-14T14:44:21.000Z | lib/wechat_mp_auth/component_verify_ticket.ex | he9qi/wechat_mp_auth | 307e5ffb2214f9aca3fb230c302852b1216ce0c3 | [
"MIT"
] | 3 | 2016-05-12T06:11:30.000Z | 2016-10-12T04:59:09.000Z | lib/wechat_mp_auth/component_verify_ticket.ex | he9qi/wechat_mp_auth | 307e5ffb2214f9aca3fb230c302852b1216ce0c3 | [
"MIT"
] | 1 | 2017-11-30T01:55:17.000Z | 2017-11-30T01:55:17.000Z | defmodule WechatMPAuth.ComponentVerifyTicket do
@type t :: %__MODULE__{
app_id: binary,
ticket: binary
}
defstruct [:app_id, :ticket]
end
| 23.125 | 47 | 0.578378 |
e8d1211d0f8a53f3b284cc41f6f1b9866a828175 | 1,510 | ex | Elixir | lib/wabanex_web/endpoint.ex | pouthergust/wabanex | 5c665eddf2937388e28c820c4c1c50b2f812ea29 | [
"MIT"
] | null | null | null | lib/wabanex_web/endpoint.ex | pouthergust/wabanex | 5c665eddf2937388e28c820c4c1c50b2f812ea29 | [
"MIT"
] | null | null | null | lib/wabanex_web/endpoint.ex | pouthergust/wabanex | 5c665eddf2937388e28c820c4c1c50b2f812ea29 | [
"MIT"
] | null | null | null | defmodule WabanexWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :wabanex
# The session will be stored in the cookie and signed,
# this means its contents can be read but not tampered with.
# Set :encryption_salt if you would also like to encrypt it.
@session_options [
store: :cookie,
key: "_wabanex_k... | 28.490566 | 97 | 0.713907 |
e8d125cfe51562c7f76481165b291ef3bca903e1 | 758 | exs | Elixir | mix.exs | fxn/memoize | 97dcd380e8eb6fff7d2aed21f6403eb997f504b5 | [
"MIT"
] | null | null | null | mix.exs | fxn/memoize | 97dcd380e8eb6fff7d2aed21f6403eb997f504b5 | [
"MIT"
] | null | null | null | mix.exs | fxn/memoize | 97dcd380e8eb6fff7d2aed21f6403eb997f504b5 | [
"MIT"
] | null | null | null | defmodule Memoize.Mixfile do
use Mix.Project
def project do
[
app: :memoize,
version: "1.3.0",
elixir: "~> 1.4.5 or ~> 1.5",
description: "A method caching macro for elixir using CAS on ETS",
package: [
maintainers: ["melpon"],
licenses: ["MIT"],
links: %{"... | 24.451613 | 72 | 0.565963 |
e8d1ccc20a0152fe320ed56d5fe6d8100f1aecf0 | 5,302 | ex | Elixir | lib/alambic/countdown.ex | sdanzan/alambic | fdde3d1568e24dac95453337c7e50c12d2cce348 | [
"Apache-2.0"
] | null | null | null | lib/alambic/countdown.ex | sdanzan/alambic | fdde3d1568e24dac95453337c7e50c12d2cce348 | [
"Apache-2.0"
] | null | null | null | lib/alambic/countdown.ex | sdanzan/alambic | fdde3d1568e24dac95453337c7e50c12d2cce348 | [
"Apache-2.0"
] | 1 | 2018-04-19T03:25:31.000Z | 2018-04-19T03:25:31.000Z | # Copyright 2015 Serge Danzanvilliers <serge.danzanvilliers@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... | 23.882883 | 77 | 0.635986 |
e8d1f4cf780eac845d926d61cf870e747b848b7c | 1,287 | ex | Elixir | lib/timber/events/channel_receive_event.ex | axelson/timber-elixir | def9de8ebbb64a6f6d5dd85f8958d8b24f8d6c31 | [
"0BSD"
] | 244 | 2016-10-10T15:30:32.000Z | 2021-08-11T08:45:53.000Z | lib/timber/events/channel_receive_event.ex | axelson/timber-elixir | def9de8ebbb64a6f6d5dd85f8958d8b24f8d6c31 | [
"0BSD"
] | 242 | 2016-10-10T19:34:44.000Z | 2020-11-20T18:56:43.000Z | lib/timber/events/channel_receive_event.ex | axelson/timber-elixir | def9de8ebbb64a6f6d5dd85f8958d8b24f8d6c31 | [
"0BSD"
] | 35 | 2016-12-04T07:33:04.000Z | 2020-06-17T20:22:11.000Z | defmodule Timber.Events.ChannelReceiveEvent do
@deprecated_message ~S"""
The `Timber.Events.ChannelReceiveEvent` module is deprecated.
The next evolution of Timber (2.0) no long requires a strict schema and therefore
simplifies how users log events.
To easily migrate, please install the `:timber_phoenix` li... | 23.4 | 93 | 0.654235 |
e8d218fa58730c60423ee3bfde07b81df8cd8047 | 731 | ex | Elixir | test/support/channel_case.ex | Science-Adventurers/game-backend | 9c99609b5c9c8e350af04fa1e838c3fa31283e42 | [
"MIT"
] | 5 | 2017-02-21T17:19:51.000Z | 2017-02-24T14:46:00.000Z | test/support/channel_case.ex | Science-Adventurers/game-backend | 9c99609b5c9c8e350af04fa1e838c3fa31283e42 | [
"MIT"
] | null | null | null | test/support/channel_case.ex | Science-Adventurers/game-backend | 9c99609b5c9c8e350af04fa1e838c3fa31283e42 | [
"MIT"
] | null | null | null | defmodule Game.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 and query models.
Finally, if the test case interacts with the database,
it cannot be asyn... | 21.5 | 56 | 0.715458 |
e8d246aa27163a1d3b4f143176c5e5e89eb492b7 | 4,133 | exs | Elixir | lib/elixir/test/elixir/set_test.exs | jeregrine/elixir | 080201477955bcd2d755fb4162966dc6882b1521 | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/set_test.exs | jeregrine/elixir | 080201477955bcd2d755fb4162966dc6882b1521 | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/set_test.exs | jeregrine/elixir | 080201477955bcd2d755fb4162966dc6882b1521 | [
"Apache-2.0"
] | null | null | null | Code.require_file "test_helper.exs", __DIR__
defmodule SetTest.Common do
defmacro __using__(module) do
quote location: :keep do
use ExUnit.Case, async: true
defp new_set(list // []) do
unquote(module).new(list)
end
defp new_set(list, fun) do
unquote(module).new(list, fun... | 28.503448 | 85 | 0.548028 |
e8d254ea574e32bb91eddbbc883f7d47b5488cab | 1,671 | ex | Elixir | clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/on_premises_configuration.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/on_premises_configuration.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/on_premises_configuration.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 33.42 | 123 | 0.736086 |
e8d26c420496f76378129d2ce4270ee521fbf5ab | 6,643 | ex | Elixir | lib/mix/lib/releases/config/providers/elixir.ex | mobileoverlord/distillery | e0fb269e970095b3bac2e68e40a8f9c5d1b8f494 | [
"MIT"
] | null | null | null | lib/mix/lib/releases/config/providers/elixir.ex | mobileoverlord/distillery | e0fb269e970095b3bac2e68e40a8f9c5d1b8f494 | [
"MIT"
] | null | null | null | lib/mix/lib/releases/config/providers/elixir.ex | mobileoverlord/distillery | e0fb269e970095b3bac2e68e40a8f9c5d1b8f494 | [
"MIT"
] | null | null | null | defmodule Mix.Releases.Config.Providers.Elixir do
@moduledoc """
Provides loading of Elixir's `config.exs` config file.
"""
use Mix.Releases.Config.Provider
alias Mix.Releases.Shell
@impl Provider
def init([path]) do
with {:ok, path} <- Provider.expand_path(path) do
path
|> eval!()
... | 30.058824 | 101 | 0.618245 |
e8d289a2d73fab2f338abeb683658616e1c6aec8 | 8,885 | ex | Elixir | lib/rdf/serialization/serialization.ex | pukkamustard/rdf-ex | c459d8e7fa548fdfad82643338b68decf380a296 | [
"MIT"
] | null | null | null | lib/rdf/serialization/serialization.ex | pukkamustard/rdf-ex | c459d8e7fa548fdfad82643338b68decf380a296 | [
"MIT"
] | null | null | null | lib/rdf/serialization/serialization.ex | pukkamustard/rdf-ex | c459d8e7fa548fdfad82643338b68decf380a296 | [
"MIT"
] | null | null | null | defmodule RDF.Serialization do
@moduledoc """
General functions for working with RDF serializations.
"""
alias RDF.{Dataset, Graph}
@type format :: module
@formats [
RDF.Turtle,
JSON.LD,
RDF.NTriples,
RDF.NQuads,
]
@doc """
The list of all known `RDF.Serialization.Format`s in the R... | 30.428082 | 94 | 0.676984 |
e8d2902a110dee002248d713a96a4d33badc3f59 | 15,397 | ex | Elixir | lib/scenic/component/input/text_field.ex | PragTob/scenic | 7e5193c2a0b86768937e5bbd7c22f00544d26048 | [
"Apache-2.0"
] | null | null | null | lib/scenic/component/input/text_field.ex | PragTob/scenic | 7e5193c2a0b86768937e5bbd7c22f00544d26048 | [
"Apache-2.0"
] | null | null | null | lib/scenic/component/input/text_field.ex | PragTob/scenic | 7e5193c2a0b86768937e5bbd7c22f00544d26048 | [
"Apache-2.0"
] | null | null | null | #
# Created by Boyd Multerer August 5, 2018.
# Copyright © 2018 Kry10 Industries. All rights reserved.
#
defmodule Scenic.Component.Input.TextField do
use Scenic.Component, has_children: true
alias Scenic.Graph
alias Scenic.Scene
alias Scenic.ViewPort
alias Scenic.Component.Input.Caret
alias Scenic.Prim... | 25.407591 | 87 | 0.498344 |
e8d2ac04624beeb30c42308ac3f5ab1d33073e32 | 320 | ex | Elixir | lib/codes/codes_g14.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_g14.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_g14.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | defmodule IcdCode.ICDCode.Codes_G14 do
alias IcdCode.ICDCode
def _G14 do
%ICDCode{full_code: "G14",
category_code: "G14",
short_code: "",
full_name: "Postpolio syndrome",
short_name: "Postpolio syndrome",
category_name: "Postpolio syndrome"
}
end
end
| 20 | 45 | 0.6125 |
e8d2c3369f290815401e91f903da0eb2ab1e5582 | 633 | ex | Elixir | apps/tai/lib/tai/iex/commands/stop_venue.ex | ccamateur/tai | 41c4b3e09dafc77987fa3f6b300c15461d981e16 | [
"MIT"
] | 276 | 2018-01-16T06:36:06.000Z | 2021-03-20T21:48:01.000Z | apps/tai/lib/tai/iex/commands/stop_venue.ex | ccamateur/tai | 41c4b3e09dafc77987fa3f6b300c15461d981e16 | [
"MIT"
] | 78 | 2020-10-12T06:21:43.000Z | 2022-03-28T09:02:00.000Z | apps/tai/lib/tai/iex/commands/stop_venue.ex | yurikoval/tai | 94254b45d22fa0307b01577ff7c629c7280c0295 | [
"MIT"
] | 43 | 2018-06-09T09:54:51.000Z | 2021-03-07T07:35:17.000Z | defmodule Tai.IEx.Commands.StopVenue do
@type venue_id :: Tai.Venue.id()
@type store_id :: Tai.Venues.VenueStore.store_id()
@type options :: Tai.Commander.StopVenue.options()
@spec stop(venue_id, options) :: no_return
def stop(venue_id, options) do
venue_id
|> Tai.Commander.StopVenue.execute(options)... | 26.375 | 65 | 0.647709 |
e8d2c3c49bbf12522c5f418ca5a6f6301b409635 | 646 | exs | Elixir | exercises/concept/stack-underflow/test/test_helper.exs | devtayls/elixir | 67824de8209ff1b6ed2f736deedfb5bd815130ca | [
"MIT"
] | 343 | 2017-06-22T16:28:28.000Z | 2022-03-25T21:33:32.000Z | exercises/concept/stack-underflow/test/test_helper.exs | devtayls/elixir | 67824de8209ff1b6ed2f736deedfb5bd815130ca | [
"MIT"
] | 583 | 2017-06-19T10:48:40.000Z | 2022-03-28T21:43:12.000Z | exercises/concept/stack-underflow/test/test_helper.exs | devtayls/elixir | 67824de8209ff1b6ed2f736deedfb5bd815130ca | [
"MIT"
] | 228 | 2017-07-05T07:09:32.000Z | 2022-03-27T08:59:08.000Z | options = [
undefined_division_by_zero_error_module:
Code.ensure_compiled(RPNCalculator.Exception.DivisionByZeroError) == {:error, :nofile},
undefined_stack_underflow_error_module:
Code.ensure_compiled(RPNCalculator.Exception.StackUnderflowError) == {:error, :nofile},
undefined_struct_division_by_zero_err... | 46.142857 | 91 | 0.817337 |
e8d2f04a3f0f0ac8b461a69fce26c173017519c5 | 3,366 | exs | Elixir | lib/event_store/event_store_listener_test.exs | STUDITEMPS/jehovakel_ex_event_store | 0f3d23ab7f5484bb7ce9427cf06302dc52423b90 | [
"MIT"
] | null | null | null | lib/event_store/event_store_listener_test.exs | STUDITEMPS/jehovakel_ex_event_store | 0f3d23ab7f5484bb7ce9427cf06302dc52423b90 | [
"MIT"
] | 10 | 2020-11-13T02:34:40.000Z | 2022-01-24T02:15:17.000Z | lib/event_store/event_store_listener_test.exs | STUDITEMPS/jehovakel_ex_event_store | 0f3d23ab7f5484bb7ce9427cf06302dc52423b90 | [
"MIT"
] | 2 | 2021-06-28T06:45:55.000Z | 2021-07-05T09:23:25.000Z | defmodule Shared.EventStoreListenerTest do
use Support.EventStoreCase, async: false
import ExUnit.CaptureLog
@event %Shared.EventTest.FakeEvent{}
defmodule EventHandlingError do
defexception [:message]
end
defmodule Counter do
use Agent
def start_link(initial_value) do
Agent.start_link... | 29.269565 | 92 | 0.6735 |
e8d330a13641eada98ae7b12501eb2ef5cb72684 | 2,616 | ex | Elixir | clients/you_tube/lib/google_api/you_tube/v3/model/subscription_snippet.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/you_tube/lib/google_api/you_tube/v3/model/subscription_snippet.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/you_tube/lib/google_api/you_tube/v3/model/subscription_snippet.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | 1 | 2018-07-28T20:50:50.000Z | 2018-07-28T20:50:50.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 43.6 | 260 | 0.752294 |
e8d33bae582db2d607ab6902282f50f3a4572100 | 115 | ex | Elixir | test/support/test_repo.ex | mojidabckuu/ex_machina | 31d19cc5572d85d3c144756b765b634995ab9c2b | [
"MIT"
] | null | null | null | test/support/test_repo.ex | mojidabckuu/ex_machina | 31d19cc5572d85d3c144756b765b634995ab9c2b | [
"MIT"
] | null | null | null | test/support/test_repo.ex | mojidabckuu/ex_machina | 31d19cc5572d85d3c144756b765b634995ab9c2b | [
"MIT"
] | 1 | 2021-01-16T19:05:50.000Z | 2021-01-16T19:05:50.000Z | defmodule ExMachina.TestRepo do
use Ecto.Repo,
otp_app: :ex_machina,
adapter: Ecto.Adapters.Postgres
end
| 19.166667 | 35 | 0.747826 |
e8d3707dfa10f7962b533d9538ad959bfb1ed5dd | 399 | ex | Elixir | apps/snitch_core/test/support/factory/taxonomy.ex | Acrecio/avia | 54d264fc179b5b5f17d174854bdca063e1d935e9 | [
"MIT"
] | 456 | 2018-09-20T02:40:59.000Z | 2022-03-07T08:53:48.000Z | apps/snitch_core/test/support/factory/taxonomy.ex | Acrecio/avia | 54d264fc179b5b5f17d174854bdca063e1d935e9 | [
"MIT"
] | 273 | 2018-09-19T06:43:43.000Z | 2021-08-07T12:58:26.000Z | apps/snitch_core/test/support/factory/taxonomy.ex | Acrecio/avia | 54d264fc179b5b5f17d174854bdca063e1d935e9 | [
"MIT"
] | 122 | 2018-09-26T16:32:46.000Z | 2022-03-13T11:44:19.000Z | defmodule Snitch.Factory.Taxonomy do
@moduledoc false
defmacro __using__(_otps) do
quote do
alias Snitch.Data.Schema.{
Taxon,
Taxonomy
}
def taxonomy_factory do
%Taxonomy{
name: sequence("Taxonomy")
}
end
def taxon_factory() do
%... | 15.96 | 36 | 0.538847 |
e8d3b4614ab5bb48f9a3d9d99e2c5743e65948b1 | 4,187 | ex | Elixir | clients/tool_results/lib/google_api/tool_results/v1beta3/model/execution.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/tool_results/lib/google_api/tool_results/v1beta3/model/execution.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/tool_results/lib/google_api/tool_results/v1beta3/model/execution.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... | 65.421875 | 601 | 0.763076 |
e8d3bbe0521df4ad15237aa4973bff7664e24a9e | 1,711 | ex | Elixir | lib/riak/pool.ex | suddenrushofsushi/riak-elixir-client | cc3f7293dc014720e1fc1514cd4fb0f89ffa6919 | [
"Apache-2.0"
] | null | null | null | lib/riak/pool.ex | suddenrushofsushi/riak-elixir-client | cc3f7293dc014720e1fc1514cd4fb0f89ffa6919 | [
"Apache-2.0"
] | null | null | null | lib/riak/pool.ex | suddenrushofsushi/riak-elixir-client | cc3f7293dc014720e1fc1514cd4fb0f89ffa6919 | [
"Apache-2.0"
] | null | null | null | defmodule Riak.Pool do
@moduledoc """
[EXPERIMENTAL]
This module adds defpool to define functions with a
lower arity for each function so:
Riak.put(pid, bucket, key, data) ->
Riak.put(bucket, key, data) that calls the previous function
with a pid from the pool
"""
defmacro defpool(args, do: block) do... | 31.685185 | 92 | 0.661017 |
e8d3bcaca2b83ce54f75963f9eec00438b8ea967 | 64 | ex | Elixir | 05-chapter/02_example.ex | herminiotorres/programming-elixir | 70add5ec9fe7f91129da0a4e39ab329afb9be598 | [
"MIT"
] | null | null | null | 05-chapter/02_example.ex | herminiotorres/programming-elixir | 70add5ec9fe7f91129da0a4e39ab329afb9be598 | [
"MIT"
] | null | null | null | 05-chapter/02_example.ex | herminiotorres/programming-elixir | 70add5ec9fe7f91129da0a4e39ab329afb9be598 | [
"MIT"
] | null | null | null | greet = fn -> IO.puts("Hello") end
IO.puts("greet.()")
greet.()
| 16 | 34 | 0.578125 |
e8d3ec5a8659083db713b49cfe9564abb1e62b66 | 2,230 | ex | Elixir | clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p4beta1_text_annotation.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p4beta1_text_annotation.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p4beta1_text_annotation.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 ... | 39.821429 | 141 | 0.752466 |
e8d3faf5b03fcc435f9216a85b220525190748ab | 2,165 | ex | Elixir | lib/mix/lib/mix/tasks/compile.all.ex | irisTa56/elixir | 0a953d75fb2cbdc6f3d33040aa60738d85512a1f | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/tasks/compile.all.ex | irisTa56/elixir | 0a953d75fb2cbdc6f3d33040aa60738d85512a1f | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/tasks/compile.all.ex | irisTa56/elixir | 0a953d75fb2cbdc6f3d33040aa60738d85512a1f | [
"Apache-2.0"
] | null | null | null | defmodule Mix.Tasks.Compile.All do
use Mix.Task.Compiler
@moduledoc false
@compile {:no_warn_undefined, Logger}
@recursive true
# This is an internal task used by "mix compile" which
# is meant to be recursive and be invoked for each child
# project.
@impl true
def run(args) do
Mix.Project.get!... | 26.084337 | 84 | 0.664203 |
e8d424d1f03741362f98baf6de22ba02cccb93f9 | 199 | exs | Elixir | test/yaml_to_dict_test.exs | FreedomBen/obelisk | f8f5ca8d73f619f26213c3b2442127c25dec45a2 | [
"MIT"
] | 406 | 2015-01-01T14:59:37.000Z | 2022-02-19T08:08:47.000Z | test/yaml_to_dict_test.exs | FreedomBen/obelisk | f8f5ca8d73f619f26213c3b2442127c25dec45a2 | [
"MIT"
] | 38 | 2015-01-19T11:58:30.000Z | 2019-01-18T14:06:24.000Z | test/yaml_to_dict_test.exs | FreedomBen/obelisk | f8f5ca8d73f619f26213c3b2442127c25dec45a2 | [
"MIT"
] | 64 | 2015-01-19T09:59:55.000Z | 2021-02-06T01:14:59.000Z | defmodule YamlToDictTest do
use ExUnit.Case, async: false
test "Can convert yaml to dict" do
assert %{a: "a", b: "b"} == Obelisk.YamlToDict.convert(%{}, [{'a', 'a'}, {'b', 'b'}])
end
end
| 22.111111 | 89 | 0.592965 |
e8d4327a4cb4ed9a5d24eaad6454f09ba36946a8 | 289 | exs | Elixir | test/agents/backups_manager_test.exs | silbermm/memelex | 1ab62069ceb4deb773b479b6ed21ac34ae0bfab5 | [
"Apache-2.0"
] | 5 | 2021-11-03T03:45:59.000Z | 2021-12-14T04:39:06.000Z | test/agents/backups_manager_test.exs | silbermm/memelex | 1ab62069ceb4deb773b479b6ed21ac34ae0bfab5 | [
"Apache-2.0"
] | 1 | 2021-12-14T18:26:14.000Z | 2021-12-14T18:26:14.000Z | test/agents/backups_manager_test.exs | silbermm/memelex | 1ab62069ceb4deb773b479b6ed21ac34ae0bfab5 | [
"Apache-2.0"
] | 3 | 2021-12-07T01:51:55.000Z | 2021-12-08T22:21:46.000Z | #iex(21)> Memex.Agents.BackupManager.is_older_than_24_hours?(%{timepoint: My.current_time |> Timex.shift(days: -1) |> DateTime.to_unix})
#true
#iex(22)> Memex.Agents.BackupManager.is_older_than_24_hours?(%{timepoint: My.current_time |> Timex.shift(hours: -23) |> DateTime.to_unix})
#false
| 57.8 | 138 | 0.757785 |
e8d438119af796e84b00f9848b252061774e1e95 | 872 | ex | Elixir | clients/dlp/lib/google_api/dlp/v2/metadata.ex | jamesvl/elixir-google-api | 6c87fb31d996f08fb42ce6066317e9d652a87acc | [
"Apache-2.0"
] | null | null | null | clients/dlp/lib/google_api/dlp/v2/metadata.ex | jamesvl/elixir-google-api | 6c87fb31d996f08fb42ce6066317e9d652a87acc | [
"Apache-2.0"
] | null | null | null | clients/dlp/lib/google_api/dlp/v2/metadata.ex | jamesvl/elixir-google-api | 6c87fb31d996f08fb42ce6066317e9d652a87acc | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 32.296296 | 74 | 0.755734 |
e8d465706779012ff46b97a6d5fcefcf49b11704 | 2,772 | ex | Elixir | lib/membrane_element_audiometer/peakmeter.ex | membraneframework/membrane-element-audiometer | 3fa9255b91ec31b785df9a844485a552c756f69d | [
"Apache-2.0"
] | 1 | 2019-03-21T08:45:03.000Z | 2019-03-21T08:45:03.000Z | lib/membrane_element_audiometer/peakmeter.ex | membraneframework/membrane-element-audiometer | 3fa9255b91ec31b785df9a844485a552c756f69d | [
"Apache-2.0"
] | 2 | 2019-08-09T12:49:45.000Z | 2019-08-09T12:50:33.000Z | lib/membrane_element_audiometer/peakmeter.ex | membraneframework/membrane-element-audiometer | 3fa9255b91ec31b785df9a844485a552c756f69d | [
"Apache-2.0"
] | 1 | 2019-08-06T15:49:58.000Z | 2019-08-06T15:49:58.000Z | defmodule Membrane.Audiometer.Peakmeter do
@moduledoc """
This element computes peaks in each channel of the given signal at
regular time intervals, regardless if it receives data or not.
It uses erlang's `:timer.send_interval/2` which might not provide
perfect accuracy.
It accepts audio samples in any fo... | 27.72 | 105 | 0.654762 |
e8d4da0142895cba7fdfd532ce4252f70ad10ff8 | 4,317 | ex | Elixir | lib/datix/date_time.ex | hrzndhrn/datix | b076deb58bb36efa7b4e0f5c73d6c59dfa9776cd | [
"MIT"
] | 4 | 2021-01-14T00:29:15.000Z | 2021-02-05T12:44:03.000Z | lib/datix/date_time.ex | hrzndhrn/datix | b076deb58bb36efa7b4e0f5c73d6c59dfa9776cd | [
"MIT"
] | null | null | null | lib/datix/date_time.ex | hrzndhrn/datix | b076deb58bb36efa7b4e0f5c73d6c59dfa9776cd | [
"MIT"
] | null | null | null | defmodule Datix.DateTime do
@moduledoc """
A `DateTime` parser using `Calendar.strftime` format-string.
"""
@doc """
Parses a datetime string according to the given `format`.
See the `Calendar.strftime` documentation for how to specify a format-string.
The `:ok` tuple contains always an UTC datetime an... | 33.992126 | 91 | 0.601807 |
e8d51af9564214f12686ccd5acb22634f940c66e | 1,878 | exs | Elixir | clients/text_to_speech/mix.exs | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/text_to_speech/mix.exs | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/text_to_speech/mix.exs | 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... | 28.029851 | 124 | 0.660809 |
e8d552cea3ad2417873ed43e4c478af8ef3fcc44 | 2,021 | ex | Elixir | clients/data_labeling/lib/google_api/data_labeling/v1beta1/model/google_cloud_datalabeling_v1beta1_label_image_bounding_box_operation_metadata.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/data_labeling/lib/google_api/data_labeling/v1beta1/model/google_cloud_datalabeling_v1beta1_label_image_bounding_box_operation_metadata.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/data_labeling/lib/google_api/data_labeling/v1beta1/model/google_cloud_datalabeling_v1beta1_label_image_bounding_box_operation_metadata.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.844828 | 198 | 0.775854 |
e8d5a7fb09d566132d2f6583dcf1f6271fc55980 | 832 | exs | Elixir | mix.exs | thoughtbot/brady | 4e5ce55d6bbf703733d5d074fc20c557916e6e78 | [
"MIT"
] | 34 | 2016-03-24T02:17:13.000Z | 2021-09-28T18:02:34.000Z | mix.exs | thoughtbot/brady | 4e5ce55d6bbf703733d5d074fc20c557916e6e78 | [
"MIT"
] | 18 | 2016-04-15T14:31:37.000Z | 2020-10-15T18:48:55.000Z | mix.exs | thoughtbot/brady | 4e5ce55d6bbf703733d5d074fc20c557916e6e78 | [
"MIT"
] | 8 | 2016-10-08T20:47:28.000Z | 2021-01-04T15:41:17.000Z | defmodule Brady.Mixfile do
use Mix.Project
def project do
[
app: :brady,
build_embedded: Mix.env == :prod,
deps: deps(),
description: "Template helpers for Phoenix applications",
elixir: "~> 1.3",
package: package(),
start_permanent: Mix.env == :prod,
version: "0... | 20.8 | 66 | 0.519231 |
e8d5ac57ed47a1f5eecd88d9ffcd8e6702acee5d | 1,432 | ex | Elixir | clients/analytics_data/lib/google_api/analytics_data/v1alpha/model/metric_order_by.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/analytics_data/lib/google_api/analytics_data/v1alpha/model/metric_order_by.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/analytics_data/lib/google_api/analytics_data/v1alpha/model/metric_order_by.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... | 30.468085 | 101 | 0.740223 |
e8d609bde85cf92528c0581b528c1f4febaec3f6 | 359 | exs | Elixir | priv/repo/seeds.exs | arielj/jeopardixir | d596dd4c0af7398f8b533518b5d8dc30c5bac94b | [
"MIT"
] | 1 | 2021-06-16T15:27:04.000Z | 2021-06-16T15:27:04.000Z | priv/repo/seeds.exs | arielj/jeopardixir | d596dd4c0af7398f8b533518b5d8dc30c5bac94b | [
"MIT"
] | 25 | 2021-06-18T13:08:18.000Z | 2021-12-15T19:04:57.000Z | priv/repo/seeds.exs | arielj/jeopardixir | d596dd4c0af7398f8b533518b5d8dc30c5bac94b | [
"MIT"
] | 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:
#
# Jeopardixir.Repo.insert!(%Jeopardixir.SomeSchema{})
#
# We recommend using the bang functions (`insert!`, `update!`
# and so on) as t... | 29.916667 | 61 | 0.713092 |
e8d6168541afcd9142ee81382be74dd56f80acc0 | 64 | ex | Elixir | lib/dgraph_ex/expr/avg.ex | WolfDan/dgraph_ex | 4dad42983f2387f10febf9996ac8f2db20aea710 | [
"MIT"
] | 21 | 2017-08-20T06:19:37.000Z | 2021-02-04T23:22:10.000Z | lib/dgraph_ex/expr/avg.ex | WolfDan/dgraph_ex | 4dad42983f2387f10febf9996ac8f2db20aea710 | [
"MIT"
] | 43 | 2017-08-06T21:03:28.000Z | 2018-09-08T13:00:35.000Z | lib/dgraph_ex/expr/avg.ex | WolfDan/dgraph_ex | 4dad42983f2387f10febf9996ac8f2db20aea710 | [
"MIT"
] | 1 | 2017-10-12T02:20:13.000Z | 2017-10-12T02:20:13.000Z | defmodule DgraphEx.Expr.Avg do
use DgraphEx.Expr.Agg, :avg
end | 21.333333 | 30 | 0.78125 |
e8d61ee6198460f7caec3e7ed993b5b606725770 | 831 | ex | Elixir | lib/community_web/live/city_live.ex | elixir-china-community/community | b1c52c0530949a60bf4aadf63e60a34c5d58dd66 | [
"MIT"
] | 18 | 2019-10-04T01:49:16.000Z | 2020-07-04T23:53:26.000Z | lib/community_web/live/city_live.ex | elixirchina/community | b1c52c0530949a60bf4aadf63e60a34c5d58dd66 | [
"MIT"
] | 2 | 2019-10-17T04:56:54.000Z | 2019-11-11T04:05:06.000Z | lib/community_web/live/city_live.ex | elixir-china-community/community | b1c52c0530949a60bf4aadf63e60a34c5d58dd66 | [
"MIT"
] | 5 | 2019-10-17T06:42:26.000Z | 2020-02-17T18:08:54.000Z | defmodule CommunityWeb.CityLive do
alias CommunityWeb.{LiveView, PageView, IndexLive}
use LiveView, container: {:div, class: "cm-page"}
def render(assigns) do
Phoenix.View.render(PageView, "city.html", assigns)
end
def mount(_session, socket) do
{:ok, socket}
end
def handle_params(params, _uri... | 21.868421 | 67 | 0.614922 |
e8d645406a22f203c725accbfe383159bb153517 | 9,803 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/subnetwork.ex | richiboi1977/elixir-google-api | c495bb3548090eb7a63d12f6fb145ec48aecdc0b | [
"Apache-2.0"
] | 1 | 2021-10-01T09:20:41.000Z | 2021-10-01T09:20:41.000Z | clients/compute/lib/google_api/compute/v1/model/subnetwork.ex | richiboi1977/elixir-google-api | c495bb3548090eb7a63d12f6fb145ec48aecdc0b | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/subnetwork.ex | richiboi1977/elixir-google-api | c495bb3548090eb7a63d12f6fb145ec48aecdc0b | [
"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... | 85.991228 | 502 | 0.72488 |
e8d6511f5a8587cdbbad0c1edc8c8682761d9e34 | 6,264 | ex | Elixir | lib/phx_in_place.ex | cjwadair/phx_in_place | 12ea71ec1d3dc8ac2b2f220d0b3f4c676706c570 | [
"MIT"
] | 4 | 2018-05-17T09:56:51.000Z | 2022-02-26T21:24:47.000Z | lib/phx_in_place.ex | cjwadair/phx_in_place | 12ea71ec1d3dc8ac2b2f220d0b3f4c676706c570 | [
"MIT"
] | null | null | null | lib/phx_in_place.ex | cjwadair/phx_in_place | 12ea71ec1d3dc8ac2b2f220d0b3f4c676706c570 | [
"MIT"
] | null | null | null | defmodule PhxInPlace do
@moduledoc """
The PhxInPlace module provides helper functions for generating inline editable fields that make use of Phoenix.Channels to automatically update to the database when values are changed.
"""
# Number provides convenience methods for formatting number values
import Numb... | 36.208092 | 188 | 0.663155 |
e8d656e3d07720ee4f63a65b1831d0fb0d02d299 | 4,415 | ex | Elixir | clients/managed_identities/lib/google_api/managed_identities/v1/model/domain.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/managed_identities/lib/google_api/managed_identities/v1/model/domain.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/managed_identities/lib/google_api/managed_identities/v1/model/domain.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... | 55.1875 | 407 | 0.701019 |
e8d69b5cd08b587c756ed146573c7de3679f868b | 57 | ex | Elixir | apps/subs_web/lib/subs_web/views/layout_view.ex | gitter-badger/opensubs.io | 76d5b4d355a530c8f496efe3ac2095d87f078997 | [
"MIT"
] | 36 | 2018-02-03T10:58:51.000Z | 2020-09-19T20:52:17.000Z | apps/subs_web/lib/subs_web/views/layout_view.ex | joaquimadraz/subs | 9a26144ed660d5ece849ee447a9e5de53a311408 | [
"MIT"
] | 8 | 2018-01-17T17:15:48.000Z | 2020-07-06T08:56:54.000Z | apps/subs_web/lib/subs_web/views/layout_view.ex | joaquimadraz/subs | 9a26144ed660d5ece849ee447a9e5de53a311408 | [
"MIT"
] | 10 | 2018-05-21T18:20:32.000Z | 2022-01-29T14:25:48.000Z | defmodule SubsWeb.LayoutView do
use SubsWeb, :view
end
| 14.25 | 31 | 0.789474 |
e8d6dd2edecb59b53b5fd1cb7e8ebaaae8081835 | 862 | ex | Elixir | lib/comparable/naivedatetime.ex | chungwong/timex | bcd2504119f5c11ada7455d19726b5a49254dabf | [
"MIT"
] | null | null | null | lib/comparable/naivedatetime.ex | chungwong/timex | bcd2504119f5c11ada7455d19726b5a49254dabf | [
"MIT"
] | null | null | null | lib/comparable/naivedatetime.ex | chungwong/timex | bcd2504119f5c11ada7455d19726b5a49254dabf | [
"MIT"
] | null | null | null | defimpl Timex.Comparable, for: NaiveDateTime do
alias Timex.AmbiguousDateTime
alias Timex.Comparable.Utils
alias Timex.Comparable.Diff
require Timex.Macros
def compare(a, :epoch, granularity), do: compare(a, Timex.epoch(), granularity)
def compare(a, :zero, granularity), do: compare(a,... | 41.047619 | 91 | 0.683295 |
e8d6e096abcd1233608330de8da1a1d9a7b510e9 | 1,224 | exs | Elixir | config/prod.secret.exs | sntpiraquara/mapa_celulas | 5e0b1206748bd5169cefb75b006a5489117bfda3 | [
"MIT"
] | null | null | null | config/prod.secret.exs | sntpiraquara/mapa_celulas | 5e0b1206748bd5169cefb75b006a5489117bfda3 | [
"MIT"
] | null | null | null | config/prod.secret.exs | sntpiraquara/mapa_celulas | 5e0b1206748bd5169cefb75b006a5489117bfda3 | [
"MIT"
] | null | null | null | # In this file, we load production configuration and secrets
# from environment variables. You can also hardcode secrets,
# although such is generally not recommended and you have to
# remember to add this file to your .gitignore.
use Mix.Config
database_url =
System.get_env("DATABASE_URL") ||
raise """
envi... | 31.384615 | 76 | 0.730392 |
e8d72848a00b0b8bcafb679358f0cea3187d750e | 974 | ex | Elixir | lib/exp/application.ex | karloescota/exp | 77267b80febf6d738b3ac6b6203795feef01e666 | [
"MIT"
] | null | null | null | lib/exp/application.ex | karloescota/exp | 77267b80febf6d738b3ac6b6203795feef01e666 | [
"MIT"
] | null | null | null | lib/exp/application.ex | karloescota/exp | 77267b80febf6d738b3ac6b6203795feef01e666 | [
"MIT"
] | null | null | null | defmodule Exp.Application do
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
use Application
def start(_type, _args) do
children = [
# Start the Ecto repository
Exp.Repo,
# Start the Telemetry supervisor
ExpWeb.Telemetr... | 27.828571 | 61 | 0.690965 |
e8d74658ebdc1675c1aefdd0cbab69eb6d5c071a | 1,852 | ex | Elixir | lib/blog_web/telemetry.ex | jhonisds/blog | e7265060abe978f48b2b9fc4d6115d314c84c813 | [
"MIT"
] | null | null | null | lib/blog_web/telemetry.ex | jhonisds/blog | e7265060abe978f48b2b9fc4d6115d314c84c813 | [
"MIT"
] | 3 | 2021-01-01T18:21:41.000Z | 2021-01-02T02:18:27.000Z | lib/blog_web/telemetry.ex | jhonisds/blog | e7265060abe978f48b2b9fc4d6115d314c84c813 | [
"MIT"
] | null | null | null | defmodule BlogWeb.Telemetry do
@moduledoc """
Documentation for Telemetry.
"""
use Supervisor
import Telemetry.Metrics
def start_link(arg) do
Supervisor.start_link(__MODULE__, arg, name: __MODULE__)
end
@impl true
def init(_arg) do
children = [
# Telemetry poller will execute the given... | 31.389831 | 86 | 0.666847 |
e8d7485b0e62e2b13c1b97c2a477197acc5f64d6 | 9,322 | ex | Elixir | lib/pow/store/backend/mnesia_cache/unsplit.ex | danschultzer/authex | 920ab2ef9dafaaaba215247e08c3e194e9474fc0 | [
"MIT"
] | 4 | 2018-05-07T16:37:15.000Z | 2018-07-14T00:44:12.000Z | lib/pow/store/backend/mnesia_cache/unsplit.ex | danschultzer/authex | 920ab2ef9dafaaaba215247e08c3e194e9474fc0 | [
"MIT"
] | null | null | null | lib/pow/store/backend/mnesia_cache/unsplit.ex | danschultzer/authex | 920ab2ef9dafaaaba215247e08c3e194e9474fc0 | [
"MIT"
] | null | null | null | defmodule Pow.Store.Backend.MnesiaCache.Unsplit do
@moduledoc """
GenServer that handles network split recovery for
`Pow.Store.Backend.MnesiaCache`.
This should be run on node(s) that has the `Pow.Store.Backend.MnesiaCache`
GenServer running. It'll subscribe to the Mnesia system messages, and listen
for `:... | 33.412186 | 141 | 0.682579 |
e8d74be29c250fa87f5360e86efaded35388a0c3 | 747 | exs | Elixir | installer/priv/templates/mix.exs | fmterrorf/still | fd316bcc38cdf618444dbd36ec9d259fe5256a3e | [
"0BSD"
] | 2 | 2021-02-15T07:55:38.000Z | 2021-03-05T18:04:53.000Z | installer/priv/templates/mix.exs | mrmicahcooper/still | ba785b0b068d998d0343f73a1fd1795edbe9831c | [
"0BSD"
] | null | null | null | installer/priv/templates/mix.exs | mrmicahcooper/still | ba785b0b068d998d0343f73a1fd1795edbe9831c | [
"0BSD"
] | 1 | 2021-04-14T16:12:32.000Z | 2021-04-14T16:12:32.000Z | defmodule <%= @app_module %>.MixProject do
use Mix.Project
def project do
[
app: :<%= @app_name %>,
version: "0.1.0",
elixir: "~> 1.10",
start_permanent: Mix.env() == :prod,
elixirc_paths: elixirc_paths(Mix.env()),
deps: deps()
]
end
# Run "mix help compile.app" to ... | 21.342857 | 59 | 0.595716 |
e8d75e610c3d9d78520ebd33f3035ad6dfb1ef1f | 2,395 | exs | Elixir | mix.exs | jeroenvisser101/cldr_numbers | 9a529817fe8d9f61be330fa970a5a0ffa443a177 | [
"Apache-2.0"
] | null | null | null | mix.exs | jeroenvisser101/cldr_numbers | 9a529817fe8d9f61be330fa970a5a0ffa443a177 | [
"Apache-2.0"
] | null | null | null | mix.exs | jeroenvisser101/cldr_numbers | 9a529817fe8d9f61be330fa970a5a0ffa443a177 | [
"Apache-2.0"
] | null | null | null | defmodule CldrNumbers.Mixfile do
@moduledoc false
use Mix.Project
@version "2.15.1-dev"
def project do
[
app: :ex_cldr_numbers,
version: @version,
elixir: "~> 1.6",
name: "Cldr Numbers",
description: description(),
source_url: "https://github.com/elixir-cldr/cldr_numbe... | 24.690722 | 97 | 0.559499 |
e8d769e131ab9a6cae573e73b268d54542a714fe | 2,050 | ex | Elixir | clients/analytics/lib/google_api/analytics/v3/model/profile_summary.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/analytics/lib/google_api/analytics/v3/model/profile_summary.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/analytics/lib/google_api/analytics/v3/model/profile_summary.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... | 34.745763 | 120 | 0.686341 |
e8d7ab861d423558077247199729901da2cd871f | 1,593 | exs | Elixir | mix.exs | habitus-incorporated/ex_fontawesome | 6a691677bf484a2ce81bae871880db417acd501a | [
"MIT"
] | null | null | null | mix.exs | habitus-incorporated/ex_fontawesome | 6a691677bf484a2ce81bae871880db417acd501a | [
"MIT"
] | null | null | null | mix.exs | habitus-incorporated/ex_fontawesome | 6a691677bf484a2ce81bae871880db417acd501a | [
"MIT"
] | null | null | null | defmodule ExFontawesome.MixProject do
use Mix.Project
@version "0.3.0"
def project do
[
app: :ex_fontawesome,
version: @version,
elixir: "~> 1.11",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
deps: deps(),
docs: docs(),
descri... | 23.426471 | 127 | 0.588198 |
e8d81612320f5248d0452b689d1e4450fdf3f1e4 | 3,566 | ex | Elixir | lib/nerves/utils/http_client.ex | opencollective/nerves | 81f5d30de283e77f3720a87fa1435619f0da12de | [
"Apache-2.0"
] | 1 | 2019-06-12T17:34:10.000Z | 2019-06-12T17:34:10.000Z | lib/nerves/utils/http_client.ex | opencollective/nerves | 81f5d30de283e77f3720a87fa1435619f0da12de | [
"Apache-2.0"
] | null | null | null | lib/nerves/utils/http_client.ex | opencollective/nerves | 81f5d30de283e77f3720a87fa1435619f0da12de | [
"Apache-2.0"
] | null | null | null | defmodule Nerves.Utils.HTTPClient do
use GenServer
@progress_steps 50
@redirect_status_codes [301, 302, 303, 307, 308]
def start_link() do
{:ok, _} = Application.ensure_all_started(:nerves)
start_httpc()
GenServer.start_link(__MODULE__, [])
end
def stop(pid) do
GenServer.stop(pid)
end
... | 29.229508 | 158 | 0.616938 |
e8d8491a76c6e54a522655510b57510907e530e9 | 1,259 | exs | Elixir | mix.exs | andrzej-mag/meshx_consul | 8287b0db3124e366b1359da24b4f2e804be375ee | [
"Apache-2.0"
] | 1 | 2021-05-20T07:09:29.000Z | 2021-05-20T07:09:29.000Z | mix.exs | andrzej-mag/meshx_consul | 8287b0db3124e366b1359da24b4f2e804be375ee | [
"Apache-2.0"
] | null | null | null | mix.exs | andrzej-mag/meshx_consul | 8287b0db3124e366b1359da24b4f2e804be375ee | [
"Apache-2.0"
] | null | null | null | defmodule MeshxConsul.MixProject do
use Mix.Project
@source_url "https://github.com/andrzej-mag/meshx_consul"
@version "0.1.0"
def project do
[
app: :meshx_consul,
version: @version,
elixir: "~> 1.10",
start_permanent: Mix.env() == :prod,
deps: deps(),
package: package(... | 22.482143 | 98 | 0.549643 |
e8d868150ed377ed22c51112ae4fbddf1938e6f9 | 2,887 | ex | Elixir | lib/plug_session_redis/ruby_encoder.ex | eole-repos/plug_session_redis | 499cc538a398a314d21c7208de0bf02ca2e3c996 | [
"MIT"
] | null | null | null | lib/plug_session_redis/ruby_encoder.ex | eole-repos/plug_session_redis | 499cc538a398a314d21c7208de0bf02ca2e3c996 | [
"MIT"
] | null | null | null | lib/plug_session_redis/ruby_encoder.ex | eole-repos/plug_session_redis | 499cc538a398a314d21c7208de0bf02ca2e3c996 | [
"MIT"
] | null | null | null | defmodule PlugSessionRedis.RubyEncoder do
def encode(data) do
{:ok, encode!(data)}
end
def decode(data) do
try do
{:ok, decode!(data)}
rescue
reason -> {:error, reason}
end
end
def encode!(data) do
ExMarshal.encode(data)
end
def decode!(data) do
encoded_user_id = ext... | 27.495238 | 91 | 0.566678 |
e8d8891f9c8c3b37177fc0a365ac0300a64e8407 | 1,924 | ex | Elixir | lib/exred_node_picar.ex | exredorg/exred_node_picar | 4dfec9fc5d06f9301715656a74cb5ba81ff78d70 | [
"MIT"
] | null | null | null | lib/exred_node_picar.ex | exredorg/exred_node_picar | 4dfec9fc5d06f9301715656a74cb5ba81ff78d70 | [
"MIT"
] | null | null | null | lib/exred_node_picar.ex | exredorg/exred_node_picar | 4dfec9fc5d06f9301715656a74cb5ba81ff78d70 | [
"MIT"
] | null | null | null | defmodule Exred.Node.Picar do
@moduledoc """
Controls a SunFounder PiCar.
Messages:
%{payload: "stop"} -> RearWheels.stop()
%{payload: {"speed", speed}} -> RearWheels.speed(speed)
%{payload: {"left", angle}} -> FrontWheels.left(angle)
%{payload: {"right", angle}} -> FrontWheels.right(angle... | 21.863636 | 96 | 0.560291 |
e8d8b82d03ce7ab39fcf3aef05b8c41899e254d4 | 1,142 | ex | Elixir | lib/surface/components/form/multiple_select.ex | jprincipe/surface | 011ff48401f6b3659f03fbd6a92e7028b0173547 | [
"MIT"
] | null | null | null | lib/surface/components/form/multiple_select.ex | jprincipe/surface | 011ff48401f6b3659f03fbd6a92e7028b0173547 | [
"MIT"
] | null | null | null | lib/surface/components/form/multiple_select.ex | jprincipe/surface | 011ff48401f6b3659f03fbd6a92e7028b0173547 | [
"MIT"
] | null | null | null | defmodule Surface.Components.Form.MultipleSelect do
@moduledoc """
Defines a select.
Provides a wrapper for Phoenix.HTML.Form's `multiple_select/4` function.
All options passed via `opts` will be sent to `multiple_select/4`, `class` can
be set directly and will override anything in `opts`.
"""
use Surf... | 25.377778 | 86 | 0.690893 |
e8d911dd5cb7642345bcec379acb5914890808b6 | 121 | exs | Elixir | examples/chuck_ex/config/config.exs | igor-i/bookish_spork | bcefdc6d911044d6438a1efa74d69e9d0921db4f | [
"Apache-2.0"
] | 90 | 2018-06-13T08:05:53.000Z | 2021-09-28T13:06:44.000Z | examples/chuck_ex/config/config.exs | igor-i/bookish_spork | bcefdc6d911044d6438a1efa74d69e9d0921db4f | [
"Apache-2.0"
] | 58 | 2018-07-31T20:52:01.000Z | 2022-02-02T08:50:48.000Z | examples/chuck_ex/config/config.exs | igor-i/bookish_spork | bcefdc6d911044d6438a1efa74d69e9d0921db4f | [
"Apache-2.0"
] | 9 | 2018-06-27T05:50:33.000Z | 2022-02-01T03:59:17.000Z | use Mix.Config
config :chuck_norris_api,
host: "api.chucknorris.io",
proto: "https"
import_config "#{Mix.env}.exs"
| 15.125 | 30 | 0.710744 |
e8d93717e2a605cf607b2a14155d08f82557fd7d | 745 | exs | Elixir | mix.exs | Ghouli/exravendb | c0f1de86ed84896a0fc177a251aa3d08fbb856b6 | [
"MIT"
] | null | null | null | mix.exs | Ghouli/exravendb | c0f1de86ed84896a0fc177a251aa3d08fbb856b6 | [
"MIT"
] | null | null | null | mix.exs | Ghouli/exravendb | c0f1de86ed84896a0fc177a251aa3d08fbb856b6 | [
"MIT"
] | null | null | null | defmodule ExRavenDB.Mixfile do
use Mix.Project
def project do
[app: :exravendb,
version: "0.1.0",
elixir: "~> 1.4",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps()]
end
# Configuration for the OTP application
#
# Type "mix help compile.app" fo... | 21.911765 | 79 | 0.626846 |
e8d940ee5d3b1612d63c4d8e9ce1f37bd6352aa1 | 1,480 | ex | Elixir | web/views/error_helpers.ex | flacerdk/upcoming_elixir | 6143a8d39328a8208b71a66a2c49e1dc3538f9a9 | [
"MIT"
] | null | null | null | web/views/error_helpers.ex | flacerdk/upcoming_elixir | 6143a8d39328a8208b71a66a2c49e1dc3538f9a9 | [
"MIT"
] | 2 | 2021-03-09T23:45:27.000Z | 2021-05-10T19:40:45.000Z | web/views/error_helpers.ex | flacerdk/upcoming_elixir | 6143a8d39328a8208b71a66a2c49e1dc3538f9a9 | [
"MIT"
] | null | null | null | defmodule UpcomingWeb.ErrorHelpers do
@moduledoc """
Conveniences for translating and building error messages.
"""
use Phoenix.HTML
@doc """
Generates tag for inlined form input errors.
"""
def error_tag(form, field) do
Enum.map(Keyword.get_values(form.errors, field), fn error ->
content_tag... | 32.888889 | 77 | 0.670946 |
e8d9481f41f38cfc933cb20693cbe011f2ebca45 | 2,837 | ex | Elixir | lib/geo.ex | wojtekmach/geo | 787542de02a85f699e6e930609db6b03d48119f8 | [
"MIT"
] | 1 | 2021-04-13T12:35:52.000Z | 2021-04-13T12:35:52.000Z | lib/geo.ex | wojtekmach/geo | 787542de02a85f699e6e930609db6b03d48119f8 | [
"MIT"
] | null | null | null | lib/geo.ex | wojtekmach/geo | 787542de02a85f699e6e930609db6b03d48119f8 | [
"MIT"
] | null | null | null | defmodule Geo do
@moduledoc """
A collection of GIS functions. Handles conversions to and from WKT, WKB, and GeoJSON for the following geometries:
* Point
* PointZ
* LineString
* LineStringZ
* Polygon
* PolygonZ
* MultiPoint
* MulitLineString
* MulitLineStringZ
* MultiPolygon
* MultiPolygonZ
... | 25.330357 | 116 | 0.597815 |
e8d94ea0fb88f951dfdec02f18d77f31a6bd01b5 | 379 | ex | Elixir | lib/short_url_web/views/error_view.ex | Youthink/short_url | b42450e8ea4ef8ea387291a73e3435eaa8fbfccd | [
"MIT"
] | 170 | 2018-02-06T05:04:25.000Z | 2021-01-27T07:45:25.000Z | lib/short_url_web/views/error_view.ex | imfycc/short_url | b42450e8ea4ef8ea387291a73e3435eaa8fbfccd | [
"MIT"
] | 3 | 2021-03-09T01:06:36.000Z | 2022-02-09T22:57:27.000Z | lib/short_url_web/views/error_view.ex | Youthink/short_url | b42450e8ea4ef8ea387291a73e3435eaa8fbfccd | [
"MIT"
] | 26 | 2018-02-26T06:53:10.000Z | 2020-11-08T23:02:13.000Z | defmodule ShortUrlWeb.ErrorView do
use ShortUrlWeb, :view
def render("404.html", _assigns) do
"Page not found"
end
def render("500.html", _assigns) do
"Internal server error"
end
# In case no render clause matches or no
# template is found, let's render it as 500
def template_not_found(_templ... | 21.055556 | 47 | 0.701847 |
e8d993dd9bcd0df2b908d70bc7672fb76bac01d5 | 232 | ex | Elixir | lib/events_web/controllers/page_controller.ex | jacrdn/web_dev_hw08 | 1727810bb56a9a30733cb93cd77a8db7f5f747ed | [
"MIT"
] | null | null | null | lib/events_web/controllers/page_controller.ex | jacrdn/web_dev_hw08 | 1727810bb56a9a30733cb93cd77a8db7f5f747ed | [
"MIT"
] | null | null | null | lib/events_web/controllers/page_controller.ex | jacrdn/web_dev_hw08 | 1727810bb56a9a30733cb93cd77a8db7f5f747ed | [
"MIT"
] | null | null | null | defmodule EventsWeb.PageController do
use EventsWeb, :controller
alias Events.Posts
# alias Events.Invitees
def index(conn, _params) do
posts = Posts.list_posts()
render(conn, "index.html", posts: posts)
end
end
| 19.333333 | 44 | 0.719828 |
e8d9ab238c1567707894d668b9a7c6ece27d79be | 2,455 | ex | Elixir | lib/tasks/mix.ex | thomas9911/elixir_git_hooks | 01bad3d745921c7d197dfff96e562ba35df5ae46 | [
"MIT"
] | 95 | 2018-05-01T10:37:39.000Z | 2022-03-29T06:51:17.000Z | lib/tasks/mix.ex | thomas9911/elixir_git_hooks | 01bad3d745921c7d197dfff96e562ba35df5ae46 | [
"MIT"
] | 84 | 2018-06-11T18:50:37.000Z | 2022-03-28T00:06:28.000Z | lib/tasks/mix.ex | thomas9911/elixir_git_hooks | 01bad3d745921c7d197dfff96e562ba35df5ae46 | [
"MIT"
] | 13 | 2019-05-06T09:20:13.000Z | 2022-02-25T20:53:18.000Z | defmodule GitHooks.Tasks.Mix do
@moduledoc """
Represents a Mix task that will be executed as a git hook task.
A mix task should be configured as `{:mix_task, task_name, task_args}`,
being `task_args` an optional configuration. See `#{__MODULE__}.new/1` for
more information.
For example:
```elixir
co... | 24.55 | 94 | 0.623625 |
e8d9b2c2ead88f82bc298ddadfef293de7e95485 | 2,684 | ex | Elixir | clients/content/lib/google_api/content/v2/model/orders_return_line_item_request.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/model/orders_return_line_item_request.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/content/lib/google_api/content/v2/model/orders_return_line_item_request.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... | 43.290323 | 456 | 0.701565 |
e8d9b3492d24e264635d79e225e4e23f7ea5d6d7 | 448 | ex | Elixir | lib/chaperon/master/supervisor.ex | kianmeng/chaperon | 6161aaace38d86f54a25e2dba68e27747c134d60 | [
"MIT"
] | 97 | 2017-09-20T09:09:11.000Z | 2022-01-13T18:26:22.000Z | lib/chaperon/master/supervisor.ex | kianmeng/chaperon | 6161aaace38d86f54a25e2dba68e27747c134d60 | [
"MIT"
] | 13 | 2017-10-25T08:47:33.000Z | 2022-03-24T16:39:49.000Z | lib/chaperon/master/supervisor.ex | kianmeng/chaperon | 6161aaace38d86f54a25e2dba68e27747c134d60 | [
"MIT"
] | 18 | 2018-02-02T19:19:01.000Z | 2022-03-23T16:59:06.000Z | defmodule Chaperon.Master.Supervisor do
@moduledoc """
Supervisor for the globally registered `Chaperon.Master` load test runner process.
"""
import Supervisor.Spec
@name __MODULE__
def start_link do
children = [
worker(Chaperon.Master, [])
]
opts = [strategy: :simple_one_for_one, name... | 19.478261 | 84 | 0.694196 |
e8d9ca5ce4bb94ae0bd2568e7757a52c7833bea0 | 880 | ex | Elixir | lib/mix/tasks/init_db.ex | freester1/OniiChain | 28153c2fa3b1425aeac240df016c907d5b822101 | [
"Apache-2.0"
] | 9 | 2017-12-17T02:58:48.000Z | 2018-11-07T13:48:50.000Z | lib/mix/tasks/init_db.ex | freester1/OniiChain | 28153c2fa3b1425aeac240df016c907d5b822101 | [
"Apache-2.0"
] | 1 | 2017-12-12T23:58:22.000Z | 2017-12-13T00:00:21.000Z | lib/mix/tasks/init_db.ex | freester1/OniiChain | 28153c2fa3b1425aeac240df016c907d5b822101 | [
"Apache-2.0"
] | 3 | 2017-12-12T23:57:20.000Z | 2018-03-03T22:13:38.000Z | defmodule Mix.Tasks.InitDb do
use Mix.Task
@moduledoc """
initializes the on-disk database and creates necessary tables.
"""
def run(_args) do
node = Node.self()
Node.start(node)
IO.puts("Initializing Mnesia DB on #{node}...")
initialize_db(node)
:ok
end
def initialize_db(node) do
... | 22.564103 | 69 | 0.6125 |
e8d9eea752482bcd7315c2517dd82c80b1a0525e | 171 | exs | Elixir | priv/test_repo/migrations/1_create_posts.exs | nsweeting/ecto_observable | 830273420bff5f766392132c4358ad00fc1651c8 | [
"MIT"
] | 29 | 2018-06-29T19:20:06.000Z | 2021-09-15T00:19:21.000Z | priv/test_repo/migrations/1_create_posts.exs | nsweeting/ecto_observable | 830273420bff5f766392132c4358ad00fc1651c8 | [
"MIT"
] | null | null | null | priv/test_repo/migrations/1_create_posts.exs | nsweeting/ecto_observable | 830273420bff5f766392132c4358ad00fc1651c8 | [
"MIT"
] | 2 | 2018-07-03T23:34:22.000Z | 2022-01-07T12:46:13.000Z | defmodule Ecto.Observable.TestRepo.Migrations.CreatePosts do
use Ecto.Migration
def change do
create table(:posts) do
add :title, :string
end
end
end
| 17.1 | 60 | 0.71345 |
e8da0a9a73747b4916a7fa54784327c81dd02d23 | 276 | ex | Elixir | lib/ex_binance/spot/private/requests/create_order_request.ex | rupurt/ex_binance | fa3fe75878758eef73508c72533e881fbf6ea0d7 | [
"MIT"
] | 7 | 2019-04-12T12:46:53.000Z | 2021-06-29T19:43:41.000Z | lib/ex_binance/spot/private/requests/create_order_request.ex | rupurt/ex_binance | fa3fe75878758eef73508c72533e881fbf6ea0d7 | [
"MIT"
] | 18 | 2020-05-25T09:03:58.000Z | 2021-06-24T19:44:29.000Z | lib/ex_binance/spot/private/requests/create_order_request.ex | rupurt/ex_binance | fa3fe75878758eef73508c72533e881fbf6ea0d7 | [
"MIT"
] | 12 | 2019-08-08T09:20:59.000Z | 2021-04-12T19:19:43.000Z | defmodule ExBinance.Spot.Private.Requests.CreateOrderRequest do
@type t :: %__MODULE__{}
defstruct ~w[
new_client_order_id
symbol
side
type
quantity
quote_order_qty
price
stop_price
time_in_force
timestamp
recv_window
]a
end
| 15.333333 | 63 | 0.688406 |
e8da5122aeb7a73f5092d20f1674212141445fde | 8,079 | ex | Elixir | backend/deps/jose/lib/jose/poison/lexical_encoder.ex | hploscar/palike | 71618593ee6e6687e0d1cdc9e923ed8f9c2cc2cb | [
"MIT"
] | null | null | null | backend/deps/jose/lib/jose/poison/lexical_encoder.ex | hploscar/palike | 71618593ee6e6687e0d1cdc9e923ed8f9c2cc2cb | [
"MIT"
] | null | null | null | backend/deps/jose/lib/jose/poison/lexical_encoder.ex | hploscar/palike | 71618593ee6e6687e0d1cdc9e923ed8f9c2cc2cb | [
"MIT"
] | null | null | null | defmodule JOSE.Poison.LexicalEncodeError do
defexception value: nil, message: nil
def message(%{value: value, message: nil}) do
"unable to encode value: #{inspect value}"
end
def message(%{message: message}) do
message
end
end
defmodule JOSE.Poison.LexicalEncode do
defmacro __using__(_) do
qu... | 26.401961 | 99 | 0.630895 |
e8da78792dff5ef489517f27a8c2fe1e98fab2ff | 703 | ex | Elixir | lib/example/application.ex | sfairchild/distillery-aws-example | 156ce07eef6ae9f133daf328899e0cccc5f8edea | [
"Apache-2.0"
] | 46 | 2018-08-06T23:18:46.000Z | 2020-11-26T12:43:49.000Z | lib/example/application.ex | sfairchild/distillery-aws-example | 156ce07eef6ae9f133daf328899e0cccc5f8edea | [
"Apache-2.0"
] | 15 | 2018-08-23T08:29:48.000Z | 2020-05-18T14:05:38.000Z | lib/example/application.ex | sfairchild/distillery-aws-example | 156ce07eef6ae9f133daf328899e0cccc5f8edea | [
"Apache-2.0"
] | 84 | 2018-08-27T11:56:59.000Z | 2022-01-28T00:33:47.000Z | defmodule Example.Application do
use Application
def start(_type, _args) do
import Supervisor.Spec
children =
[
supervisor(Example.Database, []),
supervisor(ExampleWeb.Endpoint, [])
] ++ libcluster()
opts = [strategy: :one_for_one, name: Example.Supervisor]
Supervisor.... | 23.433333 | 78 | 0.692745 |
e8da94da6cb7dd28cb875f301106fc537611e52f | 8,669 | ex | Elixir | lib/ex_aws/cloudformation/parsers.ex | ex-aws/ex_aws_cloudformation | 8fe8ceb62ab9d018a572038387fe98f3ffdc4212 | [
"Unlicense",
"MIT"
] | null | null | null | lib/ex_aws/cloudformation/parsers.ex | ex-aws/ex_aws_cloudformation | 8fe8ceb62ab9d018a572038387fe98f3ffdc4212 | [
"Unlicense",
"MIT"
] | 3 | 2017-10-19T01:31:27.000Z | 2021-02-18T13:14:02.000Z | lib/ex_aws/cloudformation/parsers.ex | ex-aws/ex_aws_cloudformation | 8fe8ceb62ab9d018a572038387fe98f3ffdc4212 | [
"Unlicense",
"MIT"
] | 4 | 2017-10-27T05:36:35.000Z | 2019-10-29T07:28:30.000Z | if Code.ensure_loaded?(SweetXml) do
defmodule ExAws.Cloudformation.Parsers do
import SweetXml, only: [sigil_x: 2, transform_by: 2]
@type resource_status ::
:create_in_progress | :create_failed | :create_complete |
:delete_in_progress | :delete_failed | :delete_complete | :delete_skipped |
:... | 37.691304 | 115 | 0.595224 |
e8daba930d4015868f0f62290bf6dedf1b1aee20 | 1,496 | ex | Elixir | clients/firebase_hosting/lib/google_api/firebase_hosting/v1beta1/model/empty.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/firebase_hosting/lib/google_api/firebase_hosting/v1beta1/model/empty.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/firebase_hosting/lib/google_api/firebase_hosting/v1beta1/model/empty.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"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.619048 | 282 | 0.764037 |
e8dad4c0f326d656e0699515aff141e1d436c4f9 | 2,453 | ex | Elixir | lib/nerves_bootstrap.ex | se-apc/nerves_bootstrap | 0fa54456ffeee81e72c4d6c34274477cec0c7840 | [
"Apache-2.0"
] | null | null | null | lib/nerves_bootstrap.ex | se-apc/nerves_bootstrap | 0fa54456ffeee81e72c4d6c34274477cec0c7840 | [
"Apache-2.0"
] | null | null | null | lib/nerves_bootstrap.ex | se-apc/nerves_bootstrap | 0fa54456ffeee81e72c4d6c34274477cec0c7840 | [
"Apache-2.0"
] | null | null | null | defmodule Nerves.Bootstrap do
use Application
@version Mix.Project.config()[:version]
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
def start(_type, _args) do
Nerves.Bootstrap.Aliases.init()
{:ok, self()}
end
@doc """
Returns t... | 23.141509 | 99 | 0.586629 |
e8dad901d0a53afffcb8db23e20a5e411e2f6cf4 | 1,238 | ex | Elixir | clients/language/lib/google_api/language/v1/model/analyze_entities_response.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/language/lib/google_api/language/v1/model/analyze_entities_response.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/language/lib/google_api/language/v1/model/analyze_entities_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... | 30.95 | 83 | 0.750404 |
e8dae31fb6cd0def02d064f570b22ebf3a7475f4 | 4,361 | ex | Elixir | lib/cache.ex | boonious/lastfm_archive | a3d0194f28cd67572c230a207583e5d0b88eb199 | [
"Apache-2.0"
] | 1 | 2019-04-25T18:28:24.000Z | 2019-04-25T18:28:24.000Z | lib/cache.ex | boonious/lastfm_archive | a3d0194f28cd67572c230a207583e5d0b88eb199 | [
"Apache-2.0"
] | 14 | 2020-12-24T16:54:08.000Z | 2021-05-05T15:21:55.000Z | lib/cache.ex | boonious/lastfm_archive | a3d0194f28cd67572c230a207583e5d0b88eb199 | [
"Apache-2.0"
] | 1 | 2019-10-20T23:02:06.000Z | 2019-10-20T23:02:06.000Z | defmodule LastfmArchive.Cache do
@moduledoc false
use GenServer
alias LastfmArchive.Utils
@cache_file_prefix ".cache_"
@cache_file_wildcard @cache_file_prefix <> "????"
@ticks_before_serialise 60
@file_io Application.get_env(:lastfm_archive, :file_io)
@path_io Application.get_env(:lastfm_archive, :pa... | 32.544776 | 115 | 0.638386 |
e8daee2f555f4c0401508a1e03289affe0995ad9 | 920 | ex | Elixir | lib/ws/auth/plug.ex | zekroTJA/imgserver | a2efc3483bc83cc9734dbef7ca9bd3dc4a19bb64 | [
"MIT"
] | null | null | null | lib/ws/auth/plug.ex | zekroTJA/imgserver | a2efc3483bc83cc9734dbef7ca9bd3dc4a19bb64 | [
"MIT"
] | null | null | null | lib/ws/auth/plug.ex | zekroTJA/imgserver | a2efc3483bc83cc9734dbef7ca9bd3dc4a19bb64 | [
"MIT"
] | null | null | null | defmodule Imgserver.Ws.Auth.Plug do
import Plug.Conn
import Imgserver.Ws.Util
@behaviour Plug
@moduledoc """
Plug providing authentication using the configured
authorization module and HTTP cookies.
"""
@authmodule Imgserver.Config.get_sub(WS, :auth_module, Imgserver.Ws.Auth.Jwt)
@authsub "default"
... | 24.210526 | 94 | 0.675 |
e8db0c354b3e853ddb8a1cd066b58dda69bb4ed1 | 1,989 | exs | Elixir | mix.exs | sorentwo/braintree-elixir | 111c651b43443762f207ff106b5114de61511ebc | [
"MIT"
] | 108 | 2016-02-03T12:45:03.000Z | 2022-02-19T16:56:36.000Z | mix.exs | sorentwo/braintree-elixir | 111c651b43443762f207ff106b5114de61511ebc | [
"MIT"
] | 77 | 2016-02-12T15:52:53.000Z | 2022-02-21T14:38:08.000Z | mix.exs | sorentwo/braintree-elixir | 111c651b43443762f207ff106b5114de61511ebc | [
"MIT"
] | 64 | 2016-04-04T07:07:24.000Z | 2022-03-24T05:42:05.000Z | defmodule Braintree.Mixfile do
use Mix.Project
@version "0.12.0"
def project do
[
app: :braintree,
version: @version,
elixir: "~> 1.9",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
test_coverage: [tool: ExCoveralls],
description: des... | 24.256098 | 75 | 0.561589 |
e8db132fd545f936b287324d1633c81a1b6cdfa5 | 1,326 | ex | Elixir | clients/deployment_manager/lib/google_api/deployment_manager/v2/model/log_config_cloud_audit_options.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/deployment_manager/lib/google_api/deployment_manager/v2/model/log_config_cloud_audit_options.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/deployment_manager/lib/google_api/deployment_manager/v2/model/log_config_cloud_audit_options.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | 1 | 2018-07-28T20:50:50.000Z | 2018-07-28T20:50:50.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 33.15 | 134 | 0.767722 |
e8db207f5f10ae135dc3c79a88b2521e53e12f90 | 724 | ex | Elixir | lib/forget/supervisor.ex | MaethorNaur/forget | 8ce8adfcbf88a48d7adabc03c4815f5777e75f03 | [
"MIT"
] | null | null | null | lib/forget/supervisor.ex | MaethorNaur/forget | 8ce8adfcbf88a48d7adabc03c4815f5777e75f03 | [
"MIT"
] | null | null | null | lib/forget/supervisor.ex | MaethorNaur/forget | 8ce8adfcbf88a48d7adabc03c4815f5777e75f03 | [
"MIT"
] | null | null | null | defmodule Forget.Supervisor do
@moduledoc """
Forget supervisor
"""
use Supervisor
require Logger
@doc """
```elixir
config = [
cluster: [
disc_copies
]
]
```
"""
@spec start_link(init_args :: Forget.init_args()) :: :ignore | {:error, term()} | {:ok, pid()}
def start_link... | 21.294118 | 96 | 0.611878 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.