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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9e79ffe7a742389a0b3fc79b0341d24c0463d1c9 | 107 | exs | Elixir | test/platform/speech/speech_test.exs | lucab85/audioslides.io | cb502ccf6ed0b2db42d9fb20bb4c963bcca3cfa9 | [
"MIT"
] | 17 | 2017-11-14T14:03:18.000Z | 2021-12-10T04:18:48.000Z | test/platform/speech/speech_test.exs | lucab85/audioslides.io | cb502ccf6ed0b2db42d9fb20bb4c963bcca3cfa9 | [
"MIT"
] | 21 | 2017-11-19T13:38:07.000Z | 2022-02-10T00:11:14.000Z | test/platform/speech/speech_test.exs | lucab85/audioslides.io | cb502ccf6ed0b2db42d9fb20bb4c963bcca3cfa9 | [
"MIT"
] | 2 | 2019-09-03T03:32:13.000Z | 2021-02-23T21:52:57.000Z | defmodule Platform.SpeechTest do
use ExUnit.Case
import Platform.Speech
doctest Platform.Speech
end
| 15.285714 | 32 | 0.803738 |
9e7a21d2eee6c7d515349ce992164198983361e2 | 808 | exs | Elixir | mix.exs | ericentin/snooper | 1713e97db35ab0b11e7df8c2231c5d4d5c1a651d | [
"Apache-2.0"
] | null | null | null | mix.exs | ericentin/snooper | 1713e97db35ab0b11e7df8c2231c5d4d5c1a651d | [
"Apache-2.0"
] | null | null | null | mix.exs | ericentin/snooper | 1713e97db35ab0b11e7df8c2231c5d4d5c1a651d | [
"Apache-2.0"
] | null | null | null | defmodule Snooper.MixProject do
use Mix.Project
def project do
[
app: :snooper,
version: "0.1.0",
elixir: "~> 1.8",
start_permanent: Mix.env() == :prod,
deps: deps(),
description: description(),
package: package(),
source_url: "https://github.com/ericentin/snoope... | 20.717949 | 83 | 0.591584 |
9e7a29e1875b0b8ae63db243f610fd6f4bb0de79 | 2,220 | exs | Elixir | config/dev.exs | yliaho/suomi.dev | 4e1946adbeb67cebdc1b7e2009ddecf66497a9c7 | [
"MIT"
] | 19 | 2020-08-24T02:50:26.000Z | 2021-05-31T20:54:30.000Z | config/dev.exs | yliaho/suomi.dev | 4e1946adbeb67cebdc1b7e2009ddecf66497a9c7 | [
"MIT"
] | 2 | 2020-08-24T06:59:46.000Z | 2020-08-26T09:51:40.000Z | config/dev.exs | yliaho/suomi.dev | 4e1946adbeb67cebdc1b7e2009ddecf66497a9c7 | [
"MIT"
] | 6 | 2020-08-26T02:52:48.000Z | 2022-03-08T12:55:51.000Z | use Mix.Config
# Configure your database
config :suomidev, Suomidev.Repo,
username: "suomidev",
password: "suomidev",
database: "suomidev2_dev",
hostname: "localhost",
show_sensitive_data_on_connection_error: true,
pool_size: 10,
types: Suomidev.PostgresTypes
config :suomidev, :use_plausible, false
# F... | 27.75 | 68 | 0.695045 |
9e7a31363c1c41e3d770361a304a3a10c46ff81c | 138 | ex | Elixir | test/helpers/connections/ranch_socket_connection.ex | manulitic/instream | 5ad521dcf6a456325ba30b4c0dbb40f1f5107f32 | [
"Apache-2.0"
] | null | null | null | test/helpers/connections/ranch_socket_connection.ex | manulitic/instream | 5ad521dcf6a456325ba30b4c0dbb40f1f5107f32 | [
"Apache-2.0"
] | null | null | null | test/helpers/connections/ranch_socket_connection.ex | manulitic/instream | 5ad521dcf6a456325ba30b4c0dbb40f1f5107f32 | [
"Apache-2.0"
] | null | null | null | defmodule Instream.TestHelpers.Connections.RanchSocketConnection do
@moduledoc false
use Instream.Connection, otp_app: :instream
end
| 23 | 67 | 0.833333 |
9e7a3da81fc7ef69c1c359f4af8627b7d246594d | 399 | ex | Elixir | lib/transmission/torrent_add.ex | zhulik/ex_transmission | f7c977bb3535a7c0a976951b9dff51bc94c1575b | [
"MIT"
] | 1 | 2022-01-07T17:17:22.000Z | 2022-01-07T17:17:22.000Z | lib/transmission/torrent_add.ex | zhulik/ex_transmission | f7c977bb3535a7c0a976951b9dff51bc94c1575b | [
"MIT"
] | null | null | null | lib/transmission/torrent_add.ex | zhulik/ex_transmission | f7c977bb3535a7c0a976951b9dff51bc94c1575b | [
"MIT"
] | 1 | 2020-05-01T12:34:57.000Z | 2020-05-01T12:34:57.000Z | defmodule Transmission.TorrentAdd do
alias Transmission.Utils
@default_options [filename: nil, metainfo: nil]
def method(options \\ []) do
options = Keyword.merge(@default_options, options)
%{
method: "torrent-add",
arguments:
%{
filename: options[:filename],
met... | 19.95 | 54 | 0.601504 |
9e7a5d1606af3d34ea752a1c2bec7e42dcb98e73 | 849 | ex | Elixir | lib/adyen_checkout_ex/model/open_invoice_details.ex | rsystem-se/adyen_checkout_ex | 4210f1c7150152e81f350dc6ca55aeb19665b85b | [
"MIT"
] | 1 | 2021-05-30T20:45:10.000Z | 2021-05-30T20:45:10.000Z | lib/adyen_checkout_ex/model/open_invoice_details.ex | rsystem-se/adyen_checkout_ex | 4210f1c7150152e81f350dc6ca55aeb19665b85b | [
"MIT"
] | null | null | null | lib/adyen_checkout_ex/model/open_invoice_details.ex | rsystem-se/adyen_checkout_ex | 4210f1c7150152e81f350dc6ca55aeb19665b85b | [
"MIT"
] | null | null | null | # NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
# https://openapi-generator.tech
# Do not edit the class manually.
defmodule AdyenCheckoutEx.Model.OpenInvoiceDetails do
@moduledoc """
"""
@derive [Poison.Encoder]
defstruct [
:"billingAddress",
:"deliveryA... | 23.583333 | 91 | 0.6702 |
9e7a66f5dec1efb0f722f4cdb376c6873ad3141e | 758 | ex | Elixir | apps/evm/lib/evm/configuration/tangerine_whistle.ex | wolflee/mana | db66dac85addfaad98d40da5bd4082b3a0198bb1 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 152 | 2018-10-27T04:52:03.000Z | 2022-03-26T10:34:00.000Z | apps/evm/lib/evm/configuration/tangerine_whistle.ex | wolflee/mana | db66dac85addfaad98d40da5bd4082b3a0198bb1 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 270 | 2018-04-14T07:34:57.000Z | 2018-10-25T18:10:45.000Z | apps/evm/lib/evm/configuration/tangerine_whistle.ex | wolflee/mana | db66dac85addfaad98d40da5bd4082b3a0198bb1 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 25 | 2018-10-27T12:15:13.000Z | 2022-01-25T20:31:14.000Z | defmodule EVM.Configuration.TangerineWhistle do
alias EVM.Configuration.Homestead
use EVM.Configuration,
fallback_config: Homestead,
overrides: %{
extcodesize_cost: 700,
extcodecopy_cost: 700,
balance_cost: 400,
sload_cost: 200,
call_cost: 700,
selfdestruct_cost: 5_000,
... | 26.137931 | 81 | 0.746702 |
9e7a951196d4ce141fe05a3867c99c87b68994cc | 84,458 | ex | Elixir | clients/dataflow/lib/google_api/dataflow/v1b3/api/projects.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | null | null | null | clients/dataflow/lib/google_api/dataflow/v1b3/api/projects.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | null | null | null | clients/dataflow/lib/google_api/dataflow/v1b3/api/projects.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"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.763544 | 213 | 0.655722 |
9e7a9a709bf5f303f3cf51ebc7f2159761c1fd11 | 919 | ex | Elixir | testData/org/elixir_lang/parser_definition/unmatched_expression_parsing_test_case/AtQualifiedNoArgumentsCallBlock.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 1,668 | 2015-01-03T05:54:27.000Z | 2022-03-25T08:01:20.000Z | testData/org/elixir_lang/parser_definition/unmatched_expression_parsing_test_case/AtQualifiedNoArgumentsCallBlock.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 2,018 | 2015-01-01T22:43:39.000Z | 2022-03-31T20:13:08.000Z | testData/org/elixir_lang/parser_definition/unmatched_expression_parsing_test_case/AtQualifiedNoArgumentsCallBlock.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 145 | 2015-01-15T11:37:16.000Z | 2021-12-22T05:51:02.000Z | @@one[two].three do end
@@one[two].three.four do end
@@one.two do end
@@one.two.three do end
@one()().two do end
@one()().two.three do end
@one[two].three do end
@one[two].three.four do end
@one.two do end
@one.two.three do end
@@1.two do end
@@1.two.three do end
@&1.two do end
@&1.two.three do end
@^1.two do en... | 13.128571 | 28 | 0.611534 |
9e7aa8163a543038ad62a61da9c022a6ceabebd7 | 4,202 | exs | Elixir | integration_test/cases/type.exs | timgestson/ecto | 1c1eb6d322db04cfa48a4fc81da1332e91adbc1f | [
"Apache-2.0"
] | null | null | null | integration_test/cases/type.exs | timgestson/ecto | 1c1eb6d322db04cfa48a4fc81da1332e91adbc1f | [
"Apache-2.0"
] | null | null | null | integration_test/cases/type.exs | timgestson/ecto | 1c1eb6d322db04cfa48a4fc81da1332e91adbc1f | [
"Apache-2.0"
] | null | null | null | defmodule Ecto.Integration.TypeTest do
use Ecto.Integration.Case
require Ecto.Integration.TestRepo, as: TestRepo
import Ecto.Query
alias Ecto.Integration.Post
alias Ecto.Integration.Tag
test "primitive types" do
integer = 1
float = 0.1
text = <<0,1>>
uuid = <<0,1,2,3,4,5,6,7,8... | 38.907407 | 111 | 0.599476 |
9e7accc643bc38b7ee381bdb34e11c98feb57f5b | 71 | ex | Elixir | lib/cryptozaur/repo.ex | DenisGorbachev/crypto-cli | 94e5097ff24237fbc5fdd3fea371a5c9a1f727e4 | [
"MIT"
] | 5 | 2018-09-19T09:13:15.000Z | 2021-10-20T23:29:57.000Z | lib/cryptozaur/repo.ex | DenisGorbachev/crypto-cli | 94e5097ff24237fbc5fdd3fea371a5c9a1f727e4 | [
"MIT"
] | 6 | 2018-07-29T05:33:02.000Z | 2018-09-18T20:42:19.000Z | lib/cryptozaur/repo.ex | DenisGorbachev/crypto-cli | 94e5097ff24237fbc5fdd3fea371a5c9a1f727e4 | [
"MIT"
] | 3 | 2018-07-24T05:55:04.000Z | 2018-09-19T09:14:08.000Z | defmodule Cryptozaur.Repo do
use Ecto.Repo, otp_app: :cryptozaur
end
| 17.75 | 37 | 0.788732 |
9e7ad6f1e11b751961b05a9557bf80746a70f32e | 2,891 | exs | Elixir | test/acceptance/ast/list_and_inline_code_test.exs | RobertDober/earmark_parser | 8a4e2bf47f4ce0d749df67288046f5a69e8f1f5d | [
"Apache-2.0"
] | 32 | 2020-07-01T17:25:08.000Z | 2022-03-23T05:38:38.000Z | test/acceptance/ast/list_and_inline_code_test.exs | RobertDober/earmark_parser | 8a4e2bf47f4ce0d749df67288046f5a69e8f1f5d | [
"Apache-2.0"
] | 91 | 2020-06-30T09:08:00.000Z | 2022-03-24T18:11:16.000Z | test/acceptance/ast/list_and_inline_code_test.exs | RobertDober/earmark_parser | 8a4e2bf47f4ce0d749df67288046f5a69e8f1f5d | [
"Apache-2.0"
] | 22 | 2020-07-02T08:50:17.000Z | 2022-02-21T08:31:27.000Z | defmodule Acceptance.Ast.ListAndInlineCodeTest do
use ExUnit.Case, async: true
import Support.Helpers, only: [as_ast: 1, parse_html: 1]
import EarmarkAstDsl
describe "List parsing running into EOI inside inline code" do
test "simple case" do
markdown = ~s(* And\n`Hello\n* World)
ast = tag(... | 38.039474 | 121 | 0.571429 |
9e7af99ddfdbdbba7bd2cf6415a3a6927fbf13b5 | 4,151 | ex | Elixir | lib/benx/decoder.ex | sschneider1207/benx | ab3ff74188c6f8bfbc2e494499b5df492dff84ae | [
"MIT"
] | 1 | 2017-02-01T13:17:18.000Z | 2017-02-01T13:17:18.000Z | lib/benx/decoder.ex | sschneider1207/benx | ab3ff74188c6f8bfbc2e494499b5df492dff84ae | [
"MIT"
] | null | null | null | lib/benx/decoder.ex | sschneider1207/benx | ab3ff74188c6f8bfbc2e494499b5df492dff84ae | [
"MIT"
] | null | null | null | defmodule Benx.Decoder do
@moduledoc """
Provides decoding for iodata according to the
Bencoding specification.
"""
alias Benx.Decoder.SyntaxError
@doc """
Decodes a Bencoded iolist.
"""
@spec decode(iodata) ::
{:ok, Benx.Encoder.t} |
{:error, SyntaxError.t}
def decode(data) do
with fla... | 29.863309 | 91 | 0.61696 |
9e7b21083db9c86f07844885861811d2cb1b2f56 | 137 | ex | Elixir | lib/yacco_web/controllers/page_controller.ex | rengel-de/yacco | b8714165d2d1ace07f4116719b54e8ea077c3587 | [
"Apache-2.0"
] | null | null | null | lib/yacco_web/controllers/page_controller.ex | rengel-de/yacco | b8714165d2d1ace07f4116719b54e8ea077c3587 | [
"Apache-2.0"
] | null | null | null | lib/yacco_web/controllers/page_controller.ex | rengel-de/yacco | b8714165d2d1ace07f4116719b54e8ea077c3587 | [
"Apache-2.0"
] | null | null | null | defmodule YaccoWeb.PageController do
use YaccoWeb, :controller
def index(conn, _params) do
render(conn, "index.html")
end
end
| 17.125 | 36 | 0.729927 |
9e7b33f9c320f7ad3c55d221281c9a0a3a45f303 | 2,223 | exs | Elixir | test/fault_tree_test.exs | hexedpackets/fault_tree | 340d08e8ea7733999531f79bdc712515053e0e85 | [
"Apache-2.0"
] | 3 | 2019-06-05T14:16:24.000Z | 2020-08-10T00:33:05.000Z | test/fault_tree_test.exs | hexedpackets/fault_tree | 340d08e8ea7733999531f79bdc712515053e0e85 | [
"Apache-2.0"
] | 15 | 2019-05-15T21:38:48.000Z | 2019-06-04T17:26:43.000Z | test/fault_tree_test.exs | hexedpackets/fault_tree | 340d08e8ea7733999531f79bdc712515053e0e85 | [
"Apache-2.0"
] | null | null | null | defmodule FaultTreeTest do
use ExUnit.Case
import ExUnit.CaptureLog
doctest FaultTree
setup do
or_tree = FaultTree.create(:or)
|> FaultTree.add_basic("root", "0.01", "foo")
|> FaultTree.add_basic("root", "0.01", "bar")
and_tree = FaultTree.create(:and)
|> FaultTree.add_basic("root", "0.01"... | 29.25 | 83 | 0.62933 |
9e7b6456e9179e470c0626c6100db282c4908c08 | 711 | exs | Elixir | test/wallet_test.exs | sgessa/dpos-ex | b2b3407fd120224b800fe755e3966556fd609e20 | [
"MIT"
] | 4 | 2018-07-10T09:39:01.000Z | 2020-09-11T22:46:45.000Z | test/wallet_test.exs | lwfcoin/dpos-ex | b2b3407fd120224b800fe755e3966556fd609e20 | [
"MIT"
] | null | null | null | test/wallet_test.exs | lwfcoin/dpos-ex | b2b3407fd120224b800fe755e3966556fd609e20 | [
"MIT"
] | null | null | null | defmodule Dpos.WalletTest do
use ExUnit.Case
alias Dpos.Wallet
@wallet %{
secret: "robust swift grocery peasant forget share enable convince deputy road keep cheap",
address: "8273455169423958419S",
pub_key: "9d3058175acab969f41ad9b86f7a2926c74258670fe56b37c429c01fca9f2f0f"
}
describe "wallet" ... | 29.625 | 95 | 0.7173 |
9e7b886b4ca41a8eb92e3f63a9637d0c85d42fb0 | 1,206 | ex | Elixir | lib/batched_communication/buffer.ex | skirino/batched_communication | 14dea7075a13c94df0e3c63c034029cc36bd0ab0 | [
"MIT"
] | 4 | 2018-08-28T03:49:08.000Z | 2020-06-25T16:00:13.000Z | lib/batched_communication/buffer.ex | skirino/batched_communication | 14dea7075a13c94df0e3c63c034029cc36bd0ab0 | [
"MIT"
] | null | null | null | lib/batched_communication/buffer.ex | skirino/batched_communication | 14dea7075a13c94df0e3c63c034029cc36bd0ab0 | [
"MIT"
] | null | null | null | use Croma
defmodule BatchedCommunication.Buffer do
alias BatchedCommunication.{Compression, EncodedBatch}
@type proc :: pid | atom
@type dest :: proc | [proc]
@type t :: {pos_integer, reference, [{dest, any}]}
defun make(node :: node, wait_time :: pos_integer, dest :: dest, msg :: any) :: t do
timer... | 30.923077 | 148 | 0.617745 |
9e7ba93d17009a0d83239ad07e9843373192d421 | 4,464 | ex | Elixir | deps/ex_aws/lib/ex_aws/request.ex | fast-radius/kinesis | f98e1792c650c18bb1967d1067e77fe365245f2a | [
"MIT"
] | null | null | null | deps/ex_aws/lib/ex_aws/request.ex | fast-radius/kinesis | f98e1792c650c18bb1967d1067e77fe365245f2a | [
"MIT"
] | null | null | null | deps/ex_aws/lib/ex_aws/request.ex | fast-radius/kinesis | f98e1792c650c18bb1967d1067e77fe365245f2a | [
"MIT"
] | null | null | null | defmodule ExAws.Request do
require Logger
@moduledoc """
Makes requests to AWS.
"""
@type http_status :: pos_integer
@type success_content :: %{body: binary, headers: [{binary, binary}]}
@type success_t :: {:ok, success_content}
@type error_t :: {:error, {:http_error, http_status, binary}}
@type res... | 28.075472 | 97 | 0.553987 |
9e7bd15e9ac3df76a44367b9f63d193c3cd1fb9f | 2,838 | exs | Elixir | mix.exs | wingyplus/quantum-core | 91a4df2490b9ebf01e6a46299920cd0550a89f62 | [
"Apache-2.0"
] | null | null | null | mix.exs | wingyplus/quantum-core | 91a4df2490b9ebf01e6a46299920cd0550a89f62 | [
"Apache-2.0"
] | null | null | null | mix.exs | wingyplus/quantum-core | 91a4df2490b9ebf01e6a46299920cd0550a89f62 | [
"Apache-2.0"
] | null | null | null | defmodule Quantum.Mixfile do
@moduledoc false
use Mix.Project
@source_url "https://github.com/quantum-elixir/quantum-core"
@version "3.3.0"
def project do
[
app: :quantum,
build_embedded: Mix.env() == :prod,
deps: deps(),
description: "Cron-like job scheduler for Elixir.",
... | 25.567568 | 85 | 0.526075 |
9e7be1ddf0d55283f7d1ff08f9a44b7216d0412f | 2,979 | exs | Elixir | apps/gitgud/test/gitgud/repo_test.exs | chulkilee/gitgud | 7a9b1023ff986ca08fb821a5e7658904a6061ba3 | [
"MIT"
] | null | null | null | apps/gitgud/test/gitgud/repo_test.exs | chulkilee/gitgud | 7a9b1023ff986ca08fb821a5e7658904a6061ba3 | [
"MIT"
] | null | null | null | apps/gitgud/test/gitgud/repo_test.exs | chulkilee/gitgud | 7a9b1023ff986ca08fb821a5e7658904a6061ba3 | [
"MIT"
] | null | null | null | defmodule GitGud.RepoTest do
use GitGud.DataCase
alias GitRekt.Git
alias GitGud.User
alias GitGud.Repo
alias GitGud.RepoQuery
@valid_attrs %{name: "project-awesome", description: "Awesome things are going on here!"}
setup do
user = User.register!(name: "Mario Flach", username: "redrabbit", email: ... | 35.464286 | 127 | 0.667002 |
9e7be6eef2992cd21c66e858d32e732807d8b399 | 36,208 | ex | Elixir | lib/aws/generated/cognito_identity_provider.ex | benmmari/aws-elixir | b97477498a9e8ba0d46a09255302d88c6a1c8573 | [
"Apache-2.0"
] | null | null | null | lib/aws/generated/cognito_identity_provider.ex | benmmari/aws-elixir | b97477498a9e8ba0d46a09255302d88c6a1c8573 | [
"Apache-2.0"
] | null | null | null | lib/aws/generated/cognito_identity_provider.ex | benmmari/aws-elixir | b97477498a9e8ba0d46a09255302d88c6a1c8573 | [
"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.CognitoIdentityProvider do
@moduledoc """
Using the Amazon Cognito User Pools API, you can create a user pool to
manage directories and users. You can authenticate a user to obtain tokens
... | 33.902622 | 141 | 0.720283 |
9e7c17dcb9dbc71a1f2b84fd0990d3f61146b040 | 338 | exs | Elixir | test/integration/pages_test.exs | knewter/markdown_server | 0b852d23247589ad23557bf1a205e9d1b9af7dda | [
"Unlicense"
] | null | null | null | test/integration/pages_test.exs | knewter/markdown_server | 0b852d23247589ad23557bf1a205e9d1b9af7dda | [
"Unlicense"
] | 1 | 2015-12-13T19:55:09.000Z | 2015-12-13T19:55:09.000Z | test/integration/pages_test.exs | knewter/markdown_server | 0b852d23247589ad23557bf1a205e9d1b9af7dda | [
"Unlicense"
] | null | null | null | defmodule Integration.PagesTest do
use IntegrationTest.Case
test "renders an index of available files" do
body = get("/pages")
assert Regex.match?(%r/Index of markdown files/, body)
assert Regex.match?(%r/basic/, body)
assert Regex.match?(%r/middling/, body)
refute Regex.match?(%r/notmd.blergh/... | 28.166667 | 58 | 0.695266 |
9e7c1aee3d5936ef068e355ded31375ab15e341b | 324 | exs | Elixir | phoenix158/my-phoenix-json-api/priv/repo/20210301071821_create_gifts.exs | salbador/oldphp7_vs_laravel7_vs_phoenix1.5.8_vs_phalcon4 | 294b8668dc4940c07d6dde198f02b38100a1dc00 | [
"MIT"
] | null | null | null | phoenix158/my-phoenix-json-api/priv/repo/20210301071821_create_gifts.exs | salbador/oldphp7_vs_laravel7_vs_phoenix1.5.8_vs_phalcon4 | 294b8668dc4940c07d6dde198f02b38100a1dc00 | [
"MIT"
] | null | null | null | phoenix158/my-phoenix-json-api/priv/repo/20210301071821_create_gifts.exs | salbador/oldphp7_vs_laravel7_vs_phoenix1.5.8_vs_phalcon4 | 294b8668dc4940c07d6dde198f02b38100a1dc00 | [
"MIT"
] | null | null | null | defmodule MyApp.Repo.Migrations.CreateGifts do
use Ecto.Migration
def change do
create table(:gifts, primary_key: false) do
add :id, :binary_id, primary_key: true
add :name, :string
add :categories, {:array, :string}
timestamps()
end
create unique_index(:gifts, [:name])
end
... | 20.25 | 47 | 0.660494 |
9e7c44427b576a2429204d9d98e4570d6cca0ab2 | 2,767 | ex | Elixir | clients/cloud_search/lib/google_api/cloud_search/v1/model/restrict_item.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/cloud_search/lib/google_api/cloud_search/v1/model/restrict_item.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/cloud_search/lib/google_api/cloud_search/v1/model/restrict_item.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... | 43.920635 | 129 | 0.732562 |
9e7ca5c76497ca8a27a58e302d4f39bc6e1f8512 | 217 | exs | Elixir | rna-transcription/dna.exs | wobh/xelixir | 63e5beec40d5c441cf6cf87f30c29848f481bb1b | [
"MIT"
] | null | null | null | rna-transcription/dna.exs | wobh/xelixir | 63e5beec40d5c441cf6cf87f30c29848f481bb1b | [
"MIT"
] | null | null | null | rna-transcription/dna.exs | wobh/xelixir | 63e5beec40d5c441cf6cf87f30c29848f481bb1b | [
"MIT"
] | null | null | null | defmodule DNA do
@doc """
Transcribes a character list representing DNA nucleotides to RNA
## Examples
iex> DNA.to_rna('ACTG')
'UGAC'
"""
@spec to_rna([char]) :: [char]
def to_rna(dna) do
end
end
| 14.466667 | 66 | 0.640553 |
9e7cd002a18b0889489f3573afbe510bf222d8cd | 2,655 | exs | Elixir | lib/elixir/test/elixir/integer_test.exs | jquadrin/elixir | 98746e08eaa2bf58c202e8500b6cf83ed2368cc0 | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/integer_test.exs | jquadrin/elixir | 98746e08eaa2bf58c202e8500b6cf83ed2368cc0 | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/integer_test.exs | jquadrin/elixir | 98746e08eaa2bf58c202e8500b6cf83ed2368cc0 | [
"Apache-2.0"
] | null | null | null | Code.require_file "test_helper.exs", __DIR__
defmodule IntegerTest do
use ExUnit.Case, async: true
require Integer
test :odd? do
assert Integer.is_odd(0) == false
assert Integer.is_odd(1) == true
assert Integer.is_odd(2) == false
assert Integer.is_odd(3) == true
assert Integer.is_odd(-1) == ... | 34.480519 | 87 | 0.60113 |
9e7cd3510acfc01e6e1c9e80a97d9dae00b847ce | 608 | exs | Elixir | mix.exs | Snake-Sanders/pcanlog-parser | e933601b2847d43378c958da3f46bdec98b5239c | [
"MIT"
] | 1 | 2022-03-18T21:57:43.000Z | 2022-03-18T21:57:43.000Z | mix.exs | Snake-Sanders/pcanlog-parser | e933601b2847d43378c958da3f46bdec98b5239c | [
"MIT"
] | null | null | null | mix.exs | Snake-Sanders/pcanlog-parser | e933601b2847d43378c958da3f46bdec98b5239c | [
"MIT"
] | null | null | null | defmodule PcanlogParser.MixProject do
use Mix.Project
def project do
[
app: :pcanlog_parser,
version: "0.1.0",
elixir: "~> 1.12",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
... | 20.266667 | 87 | 0.572368 |
9e7d000880963e89f1cbd233ee972e590bfcadc1 | 1,685 | ex | Elixir | lib/party_hub_web/telemetry.ex | AminArria/party_hub | aef6d17500856789c115e1c68fc95b853b220e1f | [
"MIT"
] | 2 | 2020-05-22T15:45:53.000Z | 2020-06-07T21:07:03.000Z | lib/party_hub_web/telemetry.ex | AminArria/party_hub | aef6d17500856789c115e1c68fc95b853b220e1f | [
"MIT"
] | 1 | 2021-03-10T16:36:46.000Z | 2021-03-10T16:36:46.000Z | lib/party_hub_web/telemetry.ex | AminArria/party_hub | aef6d17500856789c115e1c68fc95b853b220e1f | [
"MIT"
] | null | null | null | defmodule PartyHubWeb.Telemetry do
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, measurements: periodic_measurements(), period: 10_000}
# Add repo... | 31.203704 | 86 | 0.667656 |
9e7d06f9b7d5844cda7673417f81f4e24effad14 | 122 | ex | Elixir | elixir/elixir-sips/samples/everyoneapi_cli/lib/everyoneapi_cli.ex | afronski/playground-erlang | 6ac4b58b2fd717260c22a33284547d44a9b5038e | [
"MIT"
] | 2 | 2015-12-09T02:16:51.000Z | 2021-07-26T22:53:43.000Z | elixir/elixir-sips/samples/everyoneapi_cli/lib/everyoneapi_cli.ex | afronski/playground-erlang | 6ac4b58b2fd717260c22a33284547d44a9b5038e | [
"MIT"
] | null | null | null | elixir/elixir-sips/samples/everyoneapi_cli/lib/everyoneapi_cli.ex | afronski/playground-erlang | 6ac4b58b2fd717260c22a33284547d44a9b5038e | [
"MIT"
] | 1 | 2016-05-08T18:40:31.000Z | 2016-05-08T18:40:31.000Z | defmodule EveryoneapiCli do
def main(number) do
Everyoneapi.start
IO.inspect Everyoneapi.info! number
end
end
| 17.428571 | 39 | 0.754098 |
9e7d2b46558ef1f38eae7841c13e8299892ad99a | 233 | ex | Elixir | ChatRoomServer/chat_server/lib/proto/message_respond.pb.ex | GameEssa/ChatRoom | 13cc75e3fecfdd692246df2eab84eba73b6761e3 | [
"MIT"
] | null | null | null | ChatRoomServer/chat_server/lib/proto/message_respond.pb.ex | GameEssa/ChatRoom | 13cc75e3fecfdd692246df2eab84eba73b6761e3 | [
"MIT"
] | null | null | null | ChatRoomServer/chat_server/lib/proto/message_respond.pb.ex | GameEssa/ChatRoom | 13cc75e3fecfdd692246df2eab84eba73b6761e3 | [
"MIT"
] | null | null | null | defmodule Data.Message.MessageRespond do
@moduledoc false
use Protobuf, syntax: :proto3
@type t :: %__MODULE__{
respondState: boolean
}
defstruct [:respondState]
field :respondState, 1, type: :bool
end
| 17.923077 | 40 | 0.67382 |
9e7d428bd6e32805daa14872821019f6980d092e | 805 | exs | Elixir | mix.exs | QuinnWilton/tiferet | d2ed7002e7e31c1ba0c7f22de8cc615416a0acb6 | [
"MIT"
] | 51 | 2020-03-08T21:52:59.000Z | 2022-01-18T21:49:50.000Z | mix.exs | QuinnWilton/daat | d2ed7002e7e31c1ba0c7f22de8cc615416a0acb6 | [
"MIT"
] | 2 | 2020-03-09T23:22:38.000Z | 2020-03-12T17:50:58.000Z | mix.exs | QuinnWilton/daat | d2ed7002e7e31c1ba0c7f22de8cc615416a0acb6 | [
"MIT"
] | 1 | 2020-03-09T09:32:20.000Z | 2020-03-09T09:32:20.000Z | defmodule Daat.MixProject do
use Mix.Project
def project do
[
app: :daat,
version: "0.2.0",
elixir: "~> 1.10",
start_permanent: Mix.env() == :prod,
deps: deps(),
# Docs
name: "Daat",
docs: docs(),
# Hex
description: "Parameterized modules for Elixir... | 17.888889 | 66 | 0.520497 |
9e7d46d098badf6fdcc5e2bedd275eec6051fe52 | 118 | ex | Elixir | lib/from_the_ashes/repo.ex | hazen/from_the_ashes | 05b4468b6ce5ff0225ff2fed5e27d6055bf3d852 | [
"MIT"
] | null | null | null | lib/from_the_ashes/repo.ex | hazen/from_the_ashes | 05b4468b6ce5ff0225ff2fed5e27d6055bf3d852 | [
"MIT"
] | 1 | 2021-03-09T22:08:11.000Z | 2021-03-09T22:08:11.000Z | lib/from_the_ashes/repo.ex | hazen/from_the_ashes | 05b4468b6ce5ff0225ff2fed5e27d6055bf3d852 | [
"MIT"
] | null | null | null | defmodule FromTheAshes.Repo do
use Ecto.Repo,
otp_app: :from_the_ashes,
adapter: Ecto.Adapters.Postgres
end
| 19.666667 | 35 | 0.754237 |
9e7d5e46adf910e94a4cf63dad4952063e40e7c5 | 2,101 | ex | Elixir | lib/student_list_web/controllers/adult_controller.ex | jwarwick/student_list | d35a2fcef2025d3de9b7915682965c48481c1d15 | [
"MIT"
] | 1 | 2021-06-27T20:02:11.000Z | 2021-06-27T20:02:11.000Z | lib/student_list_web/controllers/adult_controller.ex | jwarwick/student_list | d35a2fcef2025d3de9b7915682965c48481c1d15 | [
"MIT"
] | null | null | null | lib/student_list_web/controllers/adult_controller.ex | jwarwick/student_list | d35a2fcef2025d3de9b7915682965c48481c1d15 | [
"MIT"
] | null | null | null | defmodule StudentListWeb.AdultController do
use StudentListWeb, :controller
alias StudentList.Directory
alias StudentList.Directory.Adult
plug(:put_root_layout, {StudentListWeb.LayoutView, "torch.html"})
plug(:put_layout, false)
def index(conn, params) do
case Directory.paginate_adults(params) ... | 29.180556 | 86 | 0.63684 |
9e7d92dc78cc57c071277832c882ab78de01b62c | 2,034 | ex | Elixir | extra/notes.ex | TylerWasniowski/WritersUnblocked | edd74b2597289163374212cf09ca60a519b0a898 | [
"MIT"
] | 2 | 2018-04-15T00:28:41.000Z | 2018-04-15T04:58:42.000Z | extra/notes.ex | TylerWasniowski/WritersUnblocked | edd74b2597289163374212cf09ca60a519b0a898 | [
"MIT"
] | 23 | 2018-04-19T02:34:29.000Z | 2018-05-08T03:19:55.000Z | extra/notes.ex | TylerWasniowski/WritersUnblocked | edd74b2597289163374212cf09ca60a519b0a898 | [
"MIT"
] | 1 | 2018-04-16T05:41:14.000Z | 2018-04-16T05:41:14.000Z | #[ ] is like list
#can "overload" on a specific runtime value of a type, eg: a list with a head vs an empty list
# or fib(0), fib (1), fib(n), where n>1
#?a is the (integer?) literal ascii of a
#'abc' is a charlist [97,98,99]
#"abc" is a binary
#pattern matching
#[head|rest] = list
#<<a, b>> = <<1,2>> will result in... | 23.113636 | 96 | 0.619961 |
9e7d96f2363535fe77d768915a1ddde51aa9dc2e | 1,859 | ex | Elixir | clients/android_management/lib/google_api/android_management/v1/model/block_action.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/android_management/lib/google_api/android_management/v1/model/block_action.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/android_management/lib/google_api/android_management/v1/model/block_action.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.553191 | 297 | 0.757396 |
9e7da52f7fb0d80073177463dc63849b4417ab8a | 73 | ex | Elixir | lib/plantar_web/views/user_confirmation_view.ex | pantanal-labs/plantar | 8b119874fbddf50fe23d435462fb3238bb1d6e42 | [
"MIT"
] | null | null | null | lib/plantar_web/views/user_confirmation_view.ex | pantanal-labs/plantar | 8b119874fbddf50fe23d435462fb3238bb1d6e42 | [
"MIT"
] | 23 | 2020-07-29T21:03:00.000Z | 2021-02-01T18:20:35.000Z | lib/plantar_web/views/user_confirmation_view.ex | pantanal-labs/plantar | 8b119874fbddf50fe23d435462fb3238bb1d6e42 | [
"MIT"
] | null | null | null | defmodule PlantarWeb.UserConfirmationView do
use PlantarWeb, :view
end
| 18.25 | 44 | 0.835616 |
9e7dbbc6d6a88db586ebe498347ff28b6414d4f9 | 676 | ex | Elixir | lib/twaddler_web/context.ex | woeye/twaddler | e06a22a94520055bc33aaaacfe51989ba8ab665f | [
"Apache-2.0"
] | 1 | 2018-10-08T13:57:08.000Z | 2018-10-08T13:57:08.000Z | lib/twaddler_web/context.ex | woeye/twaddler | e06a22a94520055bc33aaaacfe51989ba8ab665f | [
"Apache-2.0"
] | null | null | null | lib/twaddler_web/context.ex | woeye/twaddler | e06a22a94520055bc33aaaacfe51989ba8ab665f | [
"Apache-2.0"
] | 1 | 2018-10-08T13:55:44.000Z | 2018-10-08T13:55:44.000Z | defmodule TwaddlerWeb.Context do
@behaviour Plug
import Plug.Conn
# import Ecto.Query
# alias Twaddler.Repo
# alias Twaddler.Db.User
def init(opts), do: opts
def call(conn, _) do
context = build_context(conn)
Absinthe.Plug.put_options(conn, context: context)
end
defp build_context(conn) d... | 21.125 | 71 | 0.670118 |
9e7dca879a5859dcc9357c2550ff2c0547ea36e8 | 2,156 | ex | Elixir | clients/you_tube/lib/google_api/you_tube/v3/model/video_category.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/you_tube/lib/google_api/you_tube/v3/model/video_category.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/you_tube/lib/google_api/you_tube/v3/model/video_category.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.5 | 186 | 0.717069 |
9e7dd241f1a9d659edb5c94d38ce089245842f3b | 1,958 | ex | Elixir | clients/alert_center/lib/google_api/alert_center/v1beta1/model/primary_admin_changed_event.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/alert_center/lib/google_api/alert_center/v1beta1/model/primary_admin_changed_event.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/alert_center/lib/google_api/alert_center/v1beta1/model/primary_admin_changed_event.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... | 36.943396 | 127 | 0.733401 |
9e7df03fac379db70bf1946725d63e57bb40064d | 1,565 | ex | Elixir | lib/crit_web/views/fomantic/elements.ex | brownt23/crit19 | c45c7b3ae580c193168d83144da0eeb9bc91c8a9 | [
"MIT"
] | 6 | 2019-07-16T19:31:23.000Z | 2021-06-05T19:01:05.000Z | lib/crit_web/views/fomantic/elements.ex | brownt23/crit19 | c45c7b3ae580c193168d83144da0eeb9bc91c8a9 | [
"MIT"
] | null | null | null | lib/crit_web/views/fomantic/elements.ex | brownt23/crit19 | c45c7b3ae580c193168d83144da0eeb9bc91c8a9 | [
"MIT"
] | 3 | 2020-02-24T23:38:27.000Z | 2020-08-01T23:50:17.000Z | defmodule CritWeb.Fomantic.Elements do
use Phoenix.HTML
# import CritWeb.Fomantic.Helpers
# import CritWeb.Fomantic.Informative
def centered_image(src) do
classes = "ui center aligned container main"
~E"""
<div class="<%=classes%>">
<img src=<%=src%>>
</div>
"""
end
def lis... | 23.014706 | 74 | 0.576997 |
9e7e151297bbc9ffc57a575fc32c4e959e31c20c | 4,912 | ex | Elixir | lib/ex_queb.ex | leonardzhou/ex_queb | a750abcf2df56efff768b577e8e6ced71c5c81a3 | [
"MIT"
] | null | null | null | lib/ex_queb.ex | leonardzhou/ex_queb | a750abcf2df56efff768b577e8e6ced71c5c81a3 | [
"MIT"
] | null | null | null | lib/ex_queb.ex | leonardzhou/ex_queb | a750abcf2df56efff768b577e8e6ced71c5c81a3 | [
"MIT"
] | null | null | null | defmodule ExQueb do
@moduledoc """
Build Ecto filter Queries.
"""
import Ecto.Query
@doc """
Create the filter
Uses the :q query parameter to build the filter.
"""
def filter(query, params) do
q = params[Application.get_env(:ex_queb, :filter_param, :q)]
if q do
filters =
Map.t... | 26.84153 | 93 | 0.60627 |
9e7e47121d85796a4123b3b517536d58fbf19eea | 111 | exs | Elixir | test/log_forwarder_test.exs | g-viet/log_fowarder | 1c2ccb25dc72651cb979ea83597e2d0824807c3f | [
"MIT"
] | null | null | null | test/log_forwarder_test.exs | g-viet/log_fowarder | 1c2ccb25dc72651cb979ea83597e2d0824807c3f | [
"MIT"
] | null | null | null | test/log_forwarder_test.exs | g-viet/log_fowarder | 1c2ccb25dc72651cb979ea83597e2d0824807c3f | [
"MIT"
] | null | null | null | defmodule LogForwarderTest do
use ExUnit.Case
doctest LogForwarder
test "greets the world" do
end
end
| 13.875 | 29 | 0.765766 |
9e7e543b8a664f68aba4a28d7ac26c9d5308034c | 253 | ex | Elixir | lib/cometoid.ex | danielmarreirosdeoliveira/cometoid | 7a1c4f7700eb4dbb5f4c44fdc5185d048a429e50 | [
"Apache-2.0"
] | null | null | null | lib/cometoid.ex | danielmarreirosdeoliveira/cometoid | 7a1c4f7700eb4dbb5f4c44fdc5185d048a429e50 | [
"Apache-2.0"
] | null | null | null | lib/cometoid.ex | danielmarreirosdeoliveira/cometoid | 7a1c4f7700eb4dbb5f4c44fdc5185d048a429e50 | [
"Apache-2.0"
] | null | null | null | defmodule Cometoid do
@moduledoc """
Cometoid keeps the contexts that define your domain
and business logic.
Contexts are also responsible for managing your data, regardless
if it comes from the database, an external API or others.
"""
end
| 25.3 | 66 | 0.754941 |
9e7e7dfa5c70aaa7ea8a8fe0d4015b25828d0c6d | 712 | ex | Elixir | phoenix/web/gettext.ex | sap-archive/jam-login-microservice | 9f4e9d465c8e3913754fb73d08a68b4e8f13a8d2 | [
"Apache-2.0"
] | 1 | 2020-01-03T16:00:09.000Z | 2020-01-03T16:00:09.000Z | phoenix/web/gettext.ex | SAP/jam-login-microservice | 9f4e9d465c8e3913754fb73d08a68b4e8f13a8d2 | [
"Apache-2.0"
] | null | null | null | phoenix/web/gettext.ex | SAP/jam-login-microservice | 9f4e9d465c8e3913754fb73d08a68b4e8f13a8d2 | [
"Apache-2.0"
] | null | null | null | defmodule LoginProxy.Gettext do
@moduledoc """
A module providing Internationalization with a gettext-based API.
By using [Gettext](https://hexdocs.pm/gettext),
your module gains a set of macros for translations, for example:
import LoginProxy.Gettext
# Simple translation
gettext "Here is t... | 28.48 | 72 | 0.682584 |
9e7e7f4bef68c88dfdab71914a80dc792d7bdd08 | 2,012 | ex | Elixir | clients/service_management/lib/google_api/service_management/v1/model/change_report.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | null | null | null | clients/service_management/lib/google_api/service_management/v1/model/change_report.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | null | null | null | clients/service_management/lib/google_api/service_management/v1/model/change_report.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"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... | 41.916667 | 351 | 0.772366 |
9e7e7fb7622720318af9b485f2ab705bd9cc9e72 | 4,477 | ex | Elixir | clients/service_control/lib/google_api/service_control/v1/model/log_entry.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/service_control/lib/google_api/service_control/v1/model/log_entry.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/service_control/lib/google_api/service_control/v1/model/log_entry.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... | 47.62766 | 187 | 0.692651 |
9e7ed205e99484043f8fed4293873765a6d0dee5 | 85 | ex | Elixir | exercises/practice/bob/lib/bob.ex | devtayls/elixir | 67824de8209ff1b6ed2f736deedfb5bd815130ca | [
"MIT"
] | 343 | 2017-06-22T16:28:28.000Z | 2022-03-25T21:33:32.000Z | exercises/practice/bob/lib/bob.ex | devtayls/elixir | 67824de8209ff1b6ed2f736deedfb5bd815130ca | [
"MIT"
] | 583 | 2017-06-19T10:48:40.000Z | 2022-03-28T21:43:12.000Z | exercises/practice/bob/lib/bob.ex | devtayls/elixir | 67824de8209ff1b6ed2f736deedfb5bd815130ca | [
"MIT"
] | 228 | 2017-07-05T07:09:32.000Z | 2022-03-27T08:59:08.000Z | defmodule Bob do
@spec hey(String.t()) :: String.t()
def hey(input) do
end
end
| 14.166667 | 37 | 0.635294 |
9e7ef25de34275e7970402b0a78938d63547a950 | 331 | ex | Elixir | lib/stripe_mock_web/endpoint.ex | whitepaperclip/stripe_mock | a8ba9101a04216f26d0650eb38448173d8e090a1 | [
"MIT"
] | 4 | 2019-06-04T20:35:21.000Z | 2021-09-02T04:04:21.000Z | lib/stripe_mock_web/endpoint.ex | whitepaperclip/stripe_mock | a8ba9101a04216f26d0650eb38448173d8e090a1 | [
"MIT"
] | 2 | 2020-02-04T17:38:12.000Z | 2021-04-29T06:59:06.000Z | lib/stripe_mock_web/endpoint.ex | whitepaperclip/stripe_mock | a8ba9101a04216f26d0650eb38448173d8e090a1 | [
"MIT"
] | null | null | null | defmodule StripeMockWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :stripe_mock
plug Plug.RequestId
plug Plug.Logger
plug Plug.Parsers,
parsers: [:urlencoded, :multipart, :json],
pass: ["*/*"],
json_decoder: Phoenix.json_library()
plug Plug.MethodOverride
plug Plug.Head
plug StripeMockWeb.... | 19.470588 | 46 | 0.722054 |
9e7efab334addf9ac1341071c737b06467fffe39 | 2,266 | ex | Elixir | lib/andrex/blog/entry.ex | amalbuquerque/andrex | 20c298a7203c96655a992570ece6f3998739ae21 | [
"MIT"
] | null | null | null | lib/andrex/blog/entry.ex | amalbuquerque/andrex | 20c298a7203c96655a992570ece6f3998739ae21 | [
"MIT"
] | null | null | null | lib/andrex/blog/entry.ex | amalbuquerque/andrex | 20c298a7203c96655a992570ece6f3998739ae21 | [
"MIT"
] | null | null | null | defmodule Andrex.Blog.Entry do
alias Andrex.Blog.Pandoc
defstruct [:tags, :year, :month, :day, :url_title, :filename, :pandoc, :andrex]
def from_markdown(filename, markdown) when is_binary(filename) and is_binary(markdown) do
with {:ok, %Pandoc{metadata: metadata} = pandoc} <- Pandoc.from_markdown(markdown)... | 28.683544 | 128 | 0.59797 |
9e7efc5b9e100813c598b002fed85e5205e21f3b | 2,714 | ex | Elixir | lib/epi_locator/tr/search/filter_person_results.ex | RatioPBC/epi-locator | 58c90500c4e0071ce365d76ec9812f9051d6a9f9 | [
"Apache-2.0"
] | null | null | null | lib/epi_locator/tr/search/filter_person_results.ex | RatioPBC/epi-locator | 58c90500c4e0071ce365d76ec9812f9051d6a9f9 | [
"Apache-2.0"
] | 6 | 2021-10-19T01:55:57.000Z | 2022-02-15T01:04:19.000Z | lib/epi_locator/tr/search/filter_person_results.ex | RatioPBC/epi-locator | 58c90500c4e0071ce365d76ec9812f9051d6a9f9 | [
"Apache-2.0"
] | 2 | 2022-01-21T08:38:50.000Z | 2022-01-21T08:42:04.000Z | defmodule EpiLocator.Search.FilterPersonResults do
alias EpiLocator.Search.PersonResult
def filter(person_results, filters) do
regular_filters = Map.drop(filters, ~w{phone dob}a)
person_results
|> apply_regular_filters(regular_filters)
|> apply_phone_filter(filters[:phone])
|> apply_dob_filter... | 32.698795 | 110 | 0.699705 |
9e7f029b68a65af16dc62ab52c7889a06dc63a73 | 67 | ex | Elixir | lib/watch_faces_web/views/page_view.ex | DaniruKun/watchfaces-ex | 699e345596000ec3e50141e44217b155400261d6 | [
"MIT"
] | null | null | null | lib/watch_faces_web/views/page_view.ex | DaniruKun/watchfaces-ex | 699e345596000ec3e50141e44217b155400261d6 | [
"MIT"
] | null | null | null | lib/watch_faces_web/views/page_view.ex | DaniruKun/watchfaces-ex | 699e345596000ec3e50141e44217b155400261d6 | [
"MIT"
] | null | null | null | defmodule WatchFacesWeb.PageView do
use WatchFacesWeb, :view
end
| 16.75 | 35 | 0.820896 |
9e7f144ebba85bcecf5796d2fd6e74388ff8e553 | 636 | ex | Elixir | lib/Cogs/event_registry.ex | ElinksFr/alchemy | 4c64e5c619977a62a5674dbd2b1ef29f76f6f44e | [
"MIT"
] | 163 | 2017-03-01T09:02:35.000Z | 2022-03-09T23:31:48.000Z | lib/Cogs/event_registry.ex | ElinksFr/alchemy | 4c64e5c619977a62a5674dbd2b1ef29f76f6f44e | [
"MIT"
] | 91 | 2017-02-23T23:23:35.000Z | 2021-12-29T23:47:44.000Z | lib/Cogs/event_registry.ex | ElinksFr/alchemy | 4c64e5c619977a62a5674dbd2b1ef29f76f6f44e | [
"MIT"
] | 38 | 2017-03-23T13:16:44.000Z | 2022-02-26T15:53:32.000Z | defmodule Alchemy.Cogs.EventRegistry do
# Serves as a registry for processes wanting
@moduledoc false
# to subscribe to events. The dispatch will then be used to allow
# for dynamic hooking into events.
def start_link do
Registry.start_link(keys: :duplicate, name: __MODULE__)
end
def subscribe do
... | 26.5 | 67 | 0.696541 |
9e7f18d0438158c78d74965421cc1a2ddf616111 | 1,848 | ex | Elixir | test/intercepted_modules/do_block/intercepted_on_success.ex | filipecabaco/interceptor | e108946d3909d9ceffb2ab9406c5534fa6dcad28 | [
"MIT"
] | 40 | 2018-09-30T13:39:20.000Z | 2022-01-07T12:47:45.000Z | test/intercepted_modules/do_block/intercepted_on_success.ex | filipecabaco/interceptor | e108946d3909d9ceffb2ab9406c5534fa6dcad28 | [
"MIT"
] | 6 | 2019-02-17T22:21:17.000Z | 2021-04-26T21:47:59.000Z | test/intercepted_modules/do_block/intercepted_on_success.ex | filipecabaco/interceptor | e108946d3909d9ceffb2ab9406c5534fa6dcad28 | [
"MIT"
] | 5 | 2020-05-16T00:31:45.000Z | 2021-07-16T13:39:05.000Z | defmodule OnSuccess.Callback do
def on_success({_module, _function, _args} = mfa, result, started_at) do
Agent.update(:on_success_test_process,
fn messages ->
[{started_at, Interceptor.Utils.timestamp(), result, mfa} | messages]
end)
"Doesn't influence the function at all"
end
end
defmo... | 21.741176 | 113 | 0.63961 |
9e7f3c89b221470342a0bd5f1c9d2e02a9ecf308 | 102 | ex | Elixir | apps/hefty/lib/hefty/repo.ex | Cinderella-Man/crypto-streamer | b1e990d375f7143c5149930be991249f0d9c3ee3 | [
"MIT"
] | 49 | 2019-10-28T22:27:28.000Z | 2021-10-11T06:40:29.000Z | apps/hefty/lib/hefty/repo.ex | Cinderella-Man/crypto-streamer | b1e990d375f7143c5149930be991249f0d9c3ee3 | [
"MIT"
] | 9 | 2019-08-30T13:15:36.000Z | 2019-10-10T21:25:14.000Z | apps/hefty/lib/hefty/repo.ex | Cinderella-Man/crypto-streamer | b1e990d375f7143c5149930be991249f0d9c3ee3 | [
"MIT"
] | 7 | 2019-10-31T06:19:26.000Z | 2021-09-30T04:20:58.000Z | defmodule Hefty.Repo do
use Ecto.Repo,
otp_app: :hefty,
adapter: Ecto.Adapters.Postgres
end
| 17 | 35 | 0.715686 |
9e7f4ddafa8937fe992905c3678c01bb54283707 | 1,254 | exs | Elixir | test/auto_api/states/hood_state_test.exs | nonninz/auto-api-elixir | 53e11542043285e94bbb5a0a3b8ffff0b1b47167 | [
"MIT"
] | 4 | 2018-01-19T16:11:10.000Z | 2019-12-13T16:35:10.000Z | test/auto_api/states/hood_state_test.exs | nonninz/auto-api-elixir | 53e11542043285e94bbb5a0a3b8ffff0b1b47167 | [
"MIT"
] | 5 | 2018-11-29T09:48:29.000Z | 2019-11-06T12:11:35.000Z | test/auto_api/states/hood_state_test.exs | nonninz/auto-api-elixir | 53e11542043285e94bbb5a0a3b8ffff0b1b47167 | [
"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... | 46.444444 | 79 | 0.777512 |
9e7f50cf9dc00b054e51f35a6faf112b4c9adddb | 233 | exs | Elixir | installer/templates/phx_umbrella/config/prod.exs | matthewp/phoenix | af86b95db365faada58d326e98de65c811690bc7 | [
"MIT"
] | 1 | 2020-07-23T18:03:42.000Z | 2020-07-23T18:03:42.000Z | installer/templates/phx_umbrella/config/prod.exs | matthewp/phoenix | af86b95db365faada58d326e98de65c811690bc7 | [
"MIT"
] | null | null | null | installer/templates/phx_umbrella/config/prod.exs | matthewp/phoenix | af86b95db365faada58d326e98de65c811690bc7 | [
"MIT"
] | 1 | 2020-08-31T15:29:31.000Z | 2020-08-31T15:29:31.000Z | import Config
# Do not print debug messages in production
config :logger, level: :info
# Finally import the config/prod.secret.exs which loads secrets
# and configuration from environment variables.
import_config "prod.secret.exs"
| 25.888889 | 63 | 0.798283 |
9e7f5d1e653c87f1523e0a3fce9f86a4b6e2c69d | 1,087 | ex | Elixir | lib/whois.ex | andruby/whois.ex | 07a33eeac40bf14907e9ee1c9032a6a694157a74 | [
"MIT"
] | null | null | null | lib/whois.ex | andruby/whois.ex | 07a33eeac40bf14907e9ee1c9032a6a694157a74 | [
"MIT"
] | null | null | null | lib/whois.ex | andruby/whois.ex | 07a33eeac40bf14907e9ee1c9032a6a694157a74 | [
"MIT"
] | null | null | null | defmodule Whois do
def request(hostname) do
server = server_for(hostname)
{:ok, socket} = :gen_tcp.connect(to_char_list(server["host"]), 43, [:binary, active: false])
:ok = :gen_tcp.send(socket, "#{hostname}\r\n")
receive_until_closed(socket)
end
def available?(hostname) do
server = server_fo... | 29.378378 | 96 | 0.687213 |
9e7f72e09b30f22c16e18eeb8a3598eff03ce6be | 2,350 | exs | Elixir | config/prod.exs | jdcumpson/elixir-phoenix-ssr-redux-postgres | 20ecf8bac1322be273ed6441bb586b8574998286 | [
"MIT"
] | 1 | 2020-11-04T04:32:56.000Z | 2020-11-04T04:32:56.000Z | config/prod.exs | jdcumpson/elixir-phoenix-ssr-redux-postgres | 20ecf8bac1322be273ed6441bb586b8574998286 | [
"MIT"
] | 4 | 2021-10-06T22:46:17.000Z | 2022-02-27T12:04:59.000Z | config/prod.exs | jdcumpson/elixir-phoenix-ssr-redux-postgres | 20ecf8bac1322be273ed6441bb586b8574998286 | [
"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.074627 | 87 | 0.714894 |
9e7f74dac5cc6191d96e4d13153146b2d1648b70 | 3,071 | ex | Elixir | lib/membrane_mp4/movie_fragment_box.ex | membraneframework/membrane_mp4_plugin | 825249ec92b9fdb0d6faa6ca6f37ea4ed1c730e4 | [
"Apache-2.0"
] | 2 | 2021-09-29T14:31:47.000Z | 2021-12-24T18:22:17.000Z | lib/membrane_mp4/movie_fragment_box.ex | membraneframework/membrane_mp4_plugin | 825249ec92b9fdb0d6faa6ca6f37ea4ed1c730e4 | [
"Apache-2.0"
] | 13 | 2020-05-27T14:23:18.000Z | 2022-01-10T11:48:05.000Z | lib/membrane_mp4/movie_fragment_box.ex | membraneframework/membrane_mp4_plugin | 825249ec92b9fdb0d6faa6ca6f37ea4ed1c730e4 | [
"Apache-2.0"
] | 2 | 2022-03-06T13:25:23.000Z | 2022-03-06T13:26:42.000Z | defmodule Membrane.MP4.MovieFragmentBox do
@moduledoc """
A module containing a function for assembling an MPEG-4 movie fragment box.
The movie fragment box (`moof` atom) is a top-level box and consists of:
* exactly one movie fragment header (`mfhd` atom)
The movie fragment header contains a sequenc... | 30.107843 | 96 | 0.541843 |
9e7f9dd8425178969ec204dc306cf3904ef15f36 | 1,020 | ex | Elixir | lib/elmmeetup/endpoint.ex | chasm/elmmeetup | 95f9850a075dcc6ea884279485c532ac2f4db803 | [
"MIT"
] | null | null | null | lib/elmmeetup/endpoint.ex | chasm/elmmeetup | 95f9850a075dcc6ea884279485c532ac2f4db803 | [
"MIT"
] | 1 | 2018-12-26T09:07:03.000Z | 2018-12-26T09:07:03.000Z | lib/elmmeetup/endpoint.ex | chasm/elmmeetup | 95f9850a075dcc6ea884279485c532ac2f4db803 | [
"MIT"
] | null | null | null | defmodule Elmmeetup.Endpoint do
use Phoenix.Endpoint, otp_app: :elmmeetup
socket "/socket", Elmmeetup.UserSocket
# Serve at "/" the static files from "priv/static" directory.
#
# You should set gzip to true if you are running phoenix.digest
# when deploying your static files in production.
plug Plug.Sta... | 25.5 | 69 | 0.711765 |
9e7faf474831fad392f95dad5017c78aba514219 | 29,951 | exs | Elixir | lib/ex_unit/test/ex_unit/doc_test_test.exs | fmterrorf/elixir | eafb7b87756179adac5dc2bc11edcb04c1f187cc | [
"Apache-2.0"
] | 1 | 2019-06-27T08:47:13.000Z | 2019-06-27T08:47:13.000Z | lib/ex_unit/test/ex_unit/doc_test_test.exs | fmterrorf/elixir | eafb7b87756179adac5dc2bc11edcb04c1f187cc | [
"Apache-2.0"
] | null | null | null | lib/ex_unit/test/ex_unit/doc_test_test.exs | fmterrorf/elixir | eafb7b87756179adac5dc2bc11edcb04c1f187cc | [
"Apache-2.0"
] | null | null | null | Code.require_file("../test_helper.exs", __DIR__)
defmodule ExUnit.BeamHelpers do
# Beam files compiled on demand
path = Path.expand("../../tmp/beams", __DIR__)
File.rm_rf!(path)
File.mkdir_p!(path)
Code.prepend_path(path)
def write_beam({:module, name, bin, _} = res) do
beam_path = Path.join(unquote(p... | 29.980981 | 283 | 0.578912 |
9e7fbb0f201820ae954c57004decb4025582cbce | 46 | exs | Elixir | config/test.exs | kelvinst/httpill | 7094c7582b0caf52eb949f6e40ba23aa66a7f136 | [
"MIT"
] | 1 | 2017-10-04T13:27:53.000Z | 2017-10-04T13:27:53.000Z | config/test.exs | kelvinst/httpill | 7094c7582b0caf52eb949f6e40ba23aa66a7f136 | [
"MIT"
] | 5 | 2017-08-15T00:13:02.000Z | 2017-08-16T20:41:12.000Z | config/test.exs | kelvinst/httpill | 7094c7582b0caf52eb949f6e40ba23aa66a7f136 | [
"MIT"
] | null | null | null | use Mix.Config
config :logger, level: :warn
| 9.2 | 28 | 0.717391 |
9e7fd99b2c03172ffbbf6db2d25f094c8522563c | 60 | exs | Elixir | config/test.exs | trojanh/slack-bot-test | 763e3722b39cb2aeaf57b2e7c49d92f0c97a4fcf | [
"MIT"
] | 3 | 2017-03-14T12:26:35.000Z | 2022-02-19T20:17:09.000Z | config/test.exs | trojanh/slack-bot-test | 763e3722b39cb2aeaf57b2e7c49d92f0c97a4fcf | [
"MIT"
] | 2 | 2018-01-08T11:37:51.000Z | 2018-01-08T12:43:16.000Z | config/test.exs | trojanh/slack-bot-test | 763e3722b39cb2aeaf57b2e7c49d92f0c97a4fcf | [
"MIT"
] | 2 | 2017-09-30T17:07:41.000Z | 2018-01-08T11:20:38.000Z | use Mix.Config
config :tasker, enable_tasker_worker: false
| 15 | 43 | 0.816667 |
9e800c6c73930e36e0c067b2ed1f44ad3fb5a7e7 | 466 | ex | Elixir | lib/stripe_callbacks/worker.ex | aforward/stripe-callbacks | e9ba4a9ad2762f6b4024f346f0511d5de5152057 | [
"MIT"
] | 1 | 2019-03-14T18:56:43.000Z | 2019-03-14T18:56:43.000Z | lib/stripe_callbacks/worker.ex | aforward/stripe-callbacks | e9ba4a9ad2762f6b4024f346f0511d5de5152057 | [
"MIT"
] | null | null | null | lib/stripe_callbacks/worker.ex | aforward/stripe-callbacks | e9ba4a9ad2762f6b4024f346f0511d5de5152057 | [
"MIT"
] | null | null | null | defmodule StripeCallbacks.Worker do
use GenServer
### Public API
def start_link() do
{:ok, _pid} = GenServer.start_link(__MODULE__, [], name: __MODULE__)
end
def process(data) do
GenServer.call(StripeCallbacks.Worker, {:process, data})
end
### Server Callbacks
def init() do
{:ok, {}}
... | 17.923077 | 72 | 0.66309 |
9e80671abbc3accb729d50028574cf200d3fa886 | 1,208 | ex | Elixir | apps/shopping_web/lib/shopping_web/live/checklist_live/index.ex | paulanthonywilson/shopping | 11870c4d70b04fb139908793102ce3917d189275 | [
"MIT"
] | null | null | null | apps/shopping_web/lib/shopping_web/live/checklist_live/index.ex | paulanthonywilson/shopping | 11870c4d70b04fb139908793102ce3917d189275 | [
"MIT"
] | null | null | null | apps/shopping_web/lib/shopping_web/live/checklist_live/index.ex | paulanthonywilson/shopping | 11870c4d70b04fb139908793102ce3917d189275 | [
"MIT"
] | null | null | null | defmodule ShoppingWeb.ChecklistLive.Index do
@moduledoc """
Lists checklists
"""
use ShoppingWeb, :live_view
alias Shopping.Checklists
alias Shopping.Checklists.Checklist
@impl true
def mount(_params, _session, socket) do
{:ok, assign(socket, :checklists, list_checklists())}
end
@impl true
... | 23.686275 | 72 | 0.683775 |
9e808c1e571e7a08e9e08f4c70325375ec7e268b | 2,087 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/placement_groups_list_response.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/v33/model/placement_groups_list_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/placement_groups_list_response.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.377358 | 200 | 0.74413 |
9e808cd62d49b94e63b98a46bb0797c334959a8f | 53 | ex | Elixir | lib/web/views/connection_view.ex | stevegrossi/ex_venture | e02d5a63fdb882d92cfb4af3e15f7b48ad7054aa | [
"MIT"
] | 2 | 2019-05-14T11:36:44.000Z | 2020-07-01T08:54:04.000Z | lib/web/views/connection_view.ex | nickwalton/ex_venture | d8ff1b0181db03f9ddcb7610ae7ab533feecbfbb | [
"MIT"
] | null | null | null | lib/web/views/connection_view.ex | nickwalton/ex_venture | d8ff1b0181db03f9ddcb7610ae7ab533feecbfbb | [
"MIT"
] | 1 | 2021-01-29T14:12:40.000Z | 2021-01-29T14:12:40.000Z | defmodule Web.ConnectionView do
use Web, :view
end
| 13.25 | 31 | 0.773585 |
9e809e57f433137bce2dc39ac7ef2bf5407664aa | 155 | ex | Elixir | vendor/ex_brace_expansion/ex_brace_expansion/concat_map.ex | isshindev/accent | ae4c13139b0a0dfd64ff536b94c940a4e2862150 | [
"BSD-3-Clause"
] | 806 | 2018-04-07T20:40:33.000Z | 2022-03-30T01:39:57.000Z | vendor/ex_brace_expansion/ex_brace_expansion/concat_map.ex | isshindev/accent | ae4c13139b0a0dfd64ff536b94c940a4e2862150 | [
"BSD-3-Clause"
] | 194 | 2018-04-07T13:49:37.000Z | 2022-03-30T19:58:45.000Z | vendor/ex_brace_expansion/ex_brace_expansion/concat_map.ex | isshindev/accent | ae4c13139b0a0dfd64ff536b94c940a4e2862150 | [
"BSD-3-Clause"
] | 89 | 2018-04-09T13:55:49.000Z | 2022-03-24T07:09:31.000Z | defmodule ExBraceExpansion.ConcatMap do
def concat_map(coll, func) do
coll
|> Enum.map(fn val -> func.(val) end)
|> List.flatten
end
end
| 15.5 | 41 | 0.658065 |
9e80c323390bfd750bda729529ac2eef58f8d7da | 1,139 | exs | Elixir | clients/service_broker/config/config.exs | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/service_broker/config/config.exs | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/service_broker/config/config.exs | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on this project, this
# file won't be loaded nor affect the paren... | 36.741935 | 73 | 0.755926 |
9e810717cc10cc5313f3958308c155ba9da09888 | 65 | ex | Elixir | web/views/page_view.ex | robvandenbogaard/elm-blogger | 53ba88e125c9ddf90a5e5e5a0b68914bf6d81003 | [
"BSD-3-Clause"
] | 19 | 2017-02-26T10:18:00.000Z | 2022-01-18T18:21:28.000Z | web/views/page_view.ex | robvandenbogaard/elm-blogger | 53ba88e125c9ddf90a5e5e5a0b68914bf6d81003 | [
"BSD-3-Clause"
] | 1 | 2017-10-29T22:37:47.000Z | 2017-10-29T22:37:47.000Z | web/views/page_view.ex | robvandenbogaard/elm-blogger | 53ba88e125c9ddf90a5e5e5a0b68914bf6d81003 | [
"BSD-3-Clause"
] | 4 | 2017-08-07T23:33:01.000Z | 2020-02-27T12:36:25.000Z | defmodule ElmBlogger.PageView do
use ElmBlogger.Web, :view
end
| 16.25 | 32 | 0.8 |
9e811fc7773fab2d39b5aaf3951e2bb05a121a01 | 1,539 | exs | Elixir | dh11_live_view_ui/mix.exs | ayarhlaine/dh11_live_view | e52aebc14d7667772bd314f0a147347be0afb599 | [
"MIT"
] | null | null | null | dh11_live_view_ui/mix.exs | ayarhlaine/dh11_live_view | e52aebc14d7667772bd314f0a147347be0afb599 | [
"MIT"
] | null | null | null | dh11_live_view_ui/mix.exs | ayarhlaine/dh11_live_view | e52aebc14d7667772bd314f0a147347be0afb599 | [
"MIT"
] | null | null | null | defmodule Dh11LiveViewUi.MixProject do
use Mix.Project
def project do
[
app: :dh11_live_view_ui,
version: "0.1.0",
elixir: "~> 1.7",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix, :gettext] ++ Mix.compilers(),
start_permanent: Mix.env() == :prod,
aliase... | 25.229508 | 84 | 0.590643 |
9e81296e5449c93f9442a4b2234dfc84861aaddc | 6,232 | exs | Elixir | test/yourbot_web/controllers/user_auth_test.exs | ConnorRigby/yourbot | eea40e63b0f93963ed14b7efab9ecbe898ab11dd | [
"Apache-2.0"
] | 3 | 2021-11-08T15:19:19.000Z | 2021-11-11T03:18:35.000Z | test/yourbot_web/controllers/user_auth_test.exs | ConnorRigby/yourbot | eea40e63b0f93963ed14b7efab9ecbe898ab11dd | [
"Apache-2.0"
] | null | null | null | test/yourbot_web/controllers/user_auth_test.exs | ConnorRigby/yourbot | eea40e63b0f93963ed14b7efab9ecbe898ab11dd | [
"Apache-2.0"
] | null | null | null | defmodule YourBotWeb.UserAuthTest do
use YourBotWeb.ConnCase, async: true
alias YourBot.Accounts
alias YourBotWeb.UserAuth
import YourBot.AccountsFixtures
@remember_me_cookie "_your_bot_web_user_remember_me"
setup %{conn: conn} do
conn =
conn
|> Map.replace!(:secret_key_base, YourBotWeb.E... | 36.444444 | 98 | 0.676508 |
9e813f8929ccc20a09717257c85a1cffebc2ff72 | 265 | ex | Elixir | lib/request.ex | rockerBOO/hacker_news | 326e02fa5ae7de0e2b2ffe6a360641514179d314 | [
"MIT"
] | null | null | null | lib/request.ex | rockerBOO/hacker_news | 326e02fa5ae7de0e2b2ffe6a360641514179d314 | [
"MIT"
] | null | null | null | lib/request.ex | rockerBOO/hacker_news | 326e02fa5ae7de0e2b2ffe6a360641514179d314 | [
"MIT"
] | null | null | null | defmodule HackerNews.Request do
@moduledoc """
HTTP Request module
"""
use HTTPoison.Base
def process_url(url) do
"https://hacker-news.firebaseio.com/v0/#{url}.json"
end
def process_response_body(body) do
body |> Poison.decode!()
end
end | 17.666667 | 55 | 0.683019 |
9e815d4cd33b3b99f6cc40eac9f63f5a5faf6fa1 | 261 | ex | Elixir | lib/secret_grinch.ex | clorofila-league/secret_grinch | b06ac85ff5f06d5405d190ccc9966b01f0406b87 | [
"Apache-2.0"
] | 3 | 2017-08-03T16:49:18.000Z | 2018-10-03T03:30:26.000Z | lib/secret_grinch.ex | clorofila-league/secret_grinch | b06ac85ff5f06d5405d190ccc9966b01f0406b87 | [
"Apache-2.0"
] | 18 | 2017-08-04T12:43:08.000Z | 2017-08-05T14:15:41.000Z | lib/secret_grinch.ex | clorofila-league/secret_grinch | b06ac85ff5f06d5405d190ccc9966b01f0406b87 | [
"Apache-2.0"
] | 1 | 2018-10-03T03:30:29.000Z | 2018-10-03T03:30:29.000Z | defmodule SecretGrinch do
@moduledoc """
SecretGrinch keeps the contexts that define your domain
and business logic.
Contexts are also responsible for managing your data, regardless
if it comes from the database, an external API or others.
"""
end
| 26.1 | 66 | 0.762452 |
9e8175f7345ab6288d25d8f9a22ba91eaaacaed6 | 1,035 | exs | Elixir | config/config.exs | MishaConway/resque-web-squared | dbc0d119cb667561867d642edab20197057f1515 | [
"MIT"
] | null | null | null | config/config.exs | MishaConway/resque-web-squared | dbc0d119cb667561867d642edab20197057f1515 | [
"MIT"
] | null | null | null | config/config.exs | MishaConway/resque-web-squared | dbc0d119cb667561867d642edab20197057f1515 | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
#
# This configuration file is loaded before any dependency and
# is restricted to this project.
use Mix.Config
config :resque,
host: "redis",
port: 6379,
namespace: "resque",
db: 2
# Ge... | 29.571429 | 86 | 0.75942 |
9e81907c53365e0e2be648331a6f06d515104518 | 2,975 | ex | Elixir | lib/strategy/erlang_hosts.ex | polyglot-concurrency/libcluster | 1a0640f2b39adc430a121add01ab2ae0a4ee35b2 | [
"MIT"
] | 1,571 | 2016-09-30T20:38:30.000Z | 2022-03-31T15:06:38.000Z | lib/strategy/erlang_hosts.ex | polyglot-concurrency/libcluster | 1a0640f2b39adc430a121add01ab2ae0a4ee35b2 | [
"MIT"
] | 140 | 2016-10-11T10:03:06.000Z | 2022-03-18T21:06:32.000Z | lib/strategy/erlang_hosts.ex | polyglot-concurrency/libcluster | 1a0640f2b39adc430a121add01ab2ae0a4ee35b2 | [
"MIT"
] | 167 | 2016-10-24T09:47:16.000Z | 2022-03-15T11:59:50.000Z | defmodule Cluster.Strategy.ErlangHosts do
@moduledoc """
This clustering strategy relies on Erlang's built-in distribution protocol by
using a `.hosts.erlang` file (as used by the `:net_adm` module).
Please see [the net_adm docs](http://erlang.org/doc/man/net_adm.html) for more details.
In short, the follow... | 30.670103 | 121 | 0.684034 |
9e81f07a7d33f026978be3e882180c39adf8503c | 2,755 | ex | Elixir | lib/tirexs/elastic_search.ex | brightroll/tirexs | 7bddd93c11a852ade2747c478bd2cebbc6932d50 | [
"Apache-2.0"
] | null | null | null | lib/tirexs/elastic_search.ex | brightroll/tirexs | 7bddd93c11a852ade2747c478bd2cebbc6932d50 | [
"Apache-2.0"
] | null | null | null | lib/tirexs/elastic_search.ex | brightroll/tirexs | 7bddd93c11a852ade2747c478bd2cebbc6932d50 | [
"Apache-2.0"
] | null | null | null | defmodule Tirexs.ElasticSearch do
@doc """
This module provides a simple convenience for connection options such as `port`, `uri`, `user`, `pass`
and functions for doing a `HTTP` request to `ElasticSearch` engine directly.
"""
defrecord Config, [port: 9200, uri: "127.0.0.1", user: nil, pass: nil]
@doc fa... | 29 | 112 | 0.606534 |
9e81f84b77133f2ff26137baf5d208669cfbc7e8 | 2,009 | ex | Elixir | clients/calendar/lib/google_api/calendar/v3/model/acl_rule_scope.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | null | null | null | clients/calendar/lib/google_api/calendar/v3/model/acl_rule_scope.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | null | null | null | clients/calendar/lib/google_api/calendar/v3/model/acl_rule_scope.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"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.392157 | 446 | 0.720259 |
9e8207cbacd252fd9cf5c8ac42231da59c9754c1 | 1,446 | ex | Elixir | lib/ex_algo/sort/exchange.ex | code-shoily/ex_algo | 7837c222fd2844a151b6b92038f94ea088bec0a2 | [
"MIT"
] | 21 | 2021-11-21T08:07:38.000Z | 2022-03-13T06:19:35.000Z | lib/ex_algo/sort/exchange.ex | code-shoily/ex_algo | 7837c222fd2844a151b6b92038f94ea088bec0a2 | [
"MIT"
] | 3 | 2021-11-26T22:54:09.000Z | 2022-03-06T21:16:12.000Z | lib/ex_algo/sort/exchange.ex | code-shoily/ex_algo | 7837c222fd2844a151b6b92038f94ea088bec0a2 | [
"MIT"
] | null | null | null | defmodule ExAlgo.Sort.Exchange do
@moduledoc """
Implements sorting algorithms based on exchanges.
"""
@type item :: any()
@type t :: [item()]
@doc """
Perform sort by using the bubble_sort algorithm.
## Example
iex> Exchange.bubble_sort([])
[]
iex> Exchange.bubble_sort([1])
... | 21.264706 | 91 | 0.53527 |
9e820f6e843bd1de49800832405396e56cbb8fee | 2,241 | exs | Elixir | config/prod.exs | chulkilee/hello_graphql_phoenix | d6357b000ce682c1bb037de6a9de876198baee50 | [
"BSD-3-Clause"
] | 87 | 2016-03-02T11:40:29.000Z | 2022-03-02T21:21:47.000Z | config/prod.exs | chulkilee/hello_graphql_phoenix | d6357b000ce682c1bb037de6a9de876198baee50 | [
"BSD-3-Clause"
] | 12 | 2015-12-22T19:58:48.000Z | 2016-02-26T06:08:29.000Z | config/prod.exs | chulkilee/hello_graphql_phoenix | d6357b000ce682c1bb037de6a9de876198baee50 | [
"BSD-3-Clause"
] | 13 | 2016-05-22T08:41:15.000Z | 2017-07-20T15:27:40.000Z | use Mix.Config
# For production, we configure the host to read the PORT
# from the system environment. Therefore, you will need
# to set PORT=80 before running your server.
#
# You should also configure the url host to something
# meaningful, we use this information when generating URLs.
#
# Finally, we also include t... | 32.478261 | 67 | 0.727354 |
9e8225dea59f8685507a736b748180f21b9444dd | 3,944 | exs | Elixir | test/dialyxir/formatter_test.exs | PragTob/dialyxir | 3d0a13f17a46649bca2413d57cef45bb278d1474 | [
"Apache-2.0"
] | null | null | null | test/dialyxir/formatter_test.exs | PragTob/dialyxir | 3d0a13f17a46649bca2413d57cef45bb278d1474 | [
"Apache-2.0"
] | null | null | null | test/dialyxir/formatter_test.exs | PragTob/dialyxir | 3d0a13f17a46649bca2413d57cef45bb278d1474 | [
"Apache-2.0"
] | null | null | null | defmodule Dialyxir.FormatterTest do
use ExUnit.Case
import ExUnit.CaptureIO, only: [capture_io: 1]
alias Dialyxir.Formatter
alias Dialyxir.Project
defp in_project(app, f) when is_atom(app) do
Mix.Project.in_project(app, "test/fixtures/#{Atom.to_string(app)}", fn _ -> f.() end)
end
describe "exs ig... | 32.065041 | 97 | 0.622972 |
9e82335c8fe384c3f5c94e462a31b484a35ec10a | 207 | exs | Elixir | web_finngen_r8/priv/repo/migrations/20200416123624_alter_phenocode_add_fields_r5.exs | vincent-octo/risteys | 5bb1e70b78988770048b91b42fad025faf98d84a | [
"MIT"
] | null | null | null | web_finngen_r8/priv/repo/migrations/20200416123624_alter_phenocode_add_fields_r5.exs | vincent-octo/risteys | 5bb1e70b78988770048b91b42fad025faf98d84a | [
"MIT"
] | null | null | null | web_finngen_r8/priv/repo/migrations/20200416123624_alter_phenocode_add_fields_r5.exs | vincent-octo/risteys | 5bb1e70b78988770048b91b42fad025faf98d84a | [
"MIT"
] | null | null | null | defmodule Risteys.Repo.Migrations.AlterPhenocodeAddFieldsR5 do
use Ecto.Migration
def change do
alter table(:phenocodes) do
add :hd_icd_10_atc, :text
add :latin, :text
end
end
end
| 18.818182 | 62 | 0.710145 |
9e8274143666beac52475f365edfbdda1cf81e41 | 3,396 | ex | Elixir | lib/vintage_net_mobile/modem/ublox_TOBY_L2.ex | dognotdog/vintage_net_mobile | a709d8f8ce3af71c444d11ff07483b4be180c4c5 | [
"Apache-2.0"
] | 18 | 2020-03-08T21:06:10.000Z | 2022-02-05T00:44:55.000Z | lib/vintage_net_mobile/modem/ublox_TOBY_L2.ex | dognotdog/vintage_net_mobile | a709d8f8ce3af71c444d11ff07483b4be180c4c5 | [
"Apache-2.0"
] | 27 | 2020-02-28T16:07:07.000Z | 2022-01-19T03:51:02.000Z | lib/vintage_net_mobile/modem/ublox_TOBY_L2.ex | dognotdog/vintage_net_mobile | a709d8f8ce3af71c444d11ff07483b4be180c4c5 | [
"Apache-2.0"
] | 7 | 2020-03-25T20:08:22.000Z | 2021-10-22T03:20:17.000Z | defmodule VintageNetMobile.Modem.UbloxTOBYL2 do
@behaviour VintageNetMobile.Modem
@moduledoc """
# u-blox TOBY-L2 support
The u-blox TOBY-L2 is a series of LTE Cat 4 modules with HSPA+ and/or 2G
fallback. Here's an example configuration:
```elixir
VintageNet.configure(
"ppp0",
%{
type: Vi... | 26.325581 | 115 | 0.677562 |
9e82a58a80a75de9bf8a40ee668221bb613da1bc | 1,913 | exs | Elixir | clients/run/mix.exs | corp-momenti/elixir-google-api | fe1580e305789ab2ca0741791b8ffe924bd3240c | [
"Apache-2.0"
] | null | null | null | clients/run/mix.exs | corp-momenti/elixir-google-api | fe1580e305789ab2ca0741791b8ffe924bd3240c | [
"Apache-2.0"
] | null | null | null | clients/run/mix.exs | corp-momenti/elixir-google-api | fe1580e305789ab2ca0741791b8ffe924bd3240c | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 28.552239 | 212 | 0.66022 |
9e82ba727df0714159bc89abeed7da15d34d7f1f | 2,277 | ex | Elixir | apps/omg_child_chain/lib/child_chain.ex | karmonezz/elixir-omg | 3b26fc072fa553992277e1b9c4bad37b3d61ec6a | [
"Apache-2.0"
] | 1 | 2020-05-01T12:30:09.000Z | 2020-05-01T12:30:09.000Z | apps/omg_child_chain/lib/child_chain.ex | karmonezz/elixir-omg | 3b26fc072fa553992277e1b9c4bad37b3d61ec6a | [
"Apache-2.0"
] | null | null | null | apps/omg_child_chain/lib/child_chain.ex | karmonezz/elixir-omg | 3b26fc072fa553992277e1b9c4bad37b3d61ec6a | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 OmiseGO Pte Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writi... | 35.578125 | 110 | 0.704875 |
9e82c55b9ddff38b09373ae28f449e8f7bdae6f6 | 1,962 | exs | Elixir | test/cmd/runlet_filter_test.exs | msantos/runlet | d9cb44b113295387c296ab4576a09ca4a7ce0f7b | [
"ISC"
] | 4 | 2020-01-12T19:04:46.000Z | 2021-09-20T14:37:22.000Z | test/cmd/runlet_filter_test.exs | msantos/runlet | d9cb44b113295387c296ab4576a09ca4a7ce0f7b | [
"ISC"
] | null | null | null | test/cmd/runlet_filter_test.exs | msantos/runlet | d9cb44b113295387c296ab4576a09ca4a7ce0f7b | [
"ISC"
] | 1 | 2021-09-20T14:37:25.000Z | 2021-09-20T14:37:25.000Z | defmodule RunletFilterTest do
use ExUnit.Case
test "grep" do
e = [
%Runlet.Event{
event: %Runlet.Event.Stdout{
service: "service",
host: "host",
description: "test"
}
},
%Runlet.Event{
event: %Runlet.Event.Stdout{
service: "servi... | 23.357143 | 62 | 0.380734 |
9e82c86edfe68285cd8fc802a9ae2f75dffdd808 | 635 | exs | Elixir | test/instream/query/builder_injection.exs | qgadrian/instream | 3dc828fe476817d442b83dc5da58ceca56e9886f | [
"Apache-2.0"
] | null | null | null | test/instream/query/builder_injection.exs | qgadrian/instream | 3dc828fe476817d442b83dc5da58ceca56e9886f | [
"Apache-2.0"
] | null | null | null | test/instream/query/builder_injection.exs | qgadrian/instream | 3dc828fe476817d442b83dc5da58ceca56e9886f | [
"Apache-2.0"
] | null | null | null | defmodule Instream.Query.BuilderInjectionTest do
use ExUnit.Case, async: true
alias Instream.Encoder.InfluxQL
alias Instream.Query.Builder
alias Instream.TestHelpers.Connections.DefaultConnection
test "SELECT InfluxQL Injection" do
# result if escaping is broken:
# %{error: "error parsing query: fou... | 33.421053 | 95 | 0.656693 |
9e82ceeccc7725ee0d506912cd0d22488d2a0ff8 | 884 | ex | Elixir | lib/credo/cli/filter.ex | ayrat555/credo | 517699f82fc6ebe266152d997b64878b334e7bd8 | [
"MIT"
] | null | null | null | lib/credo/cli/filter.ex | ayrat555/credo | 517699f82fc6ebe266152d997b64878b334e7bd8 | [
"MIT"
] | null | null | null | lib/credo/cli/filter.ex | ayrat555/credo | 517699f82fc6ebe266152d997b64878b334e7bd8 | [
"MIT"
] | null | null | null | defmodule Credo.CLI.Filter do
alias Credo.Issue
alias Credo.SourceFile
alias Credo.Check.ConfigComment
alias Credo.Execution
def important(list, exec) when is_list(list) do
Enum.filter(list, &important?(&1, exec))
end
def important?(%Issue{} = issue, exec) do
issue.priority >= exec.min_priority
... | 23.891892 | 65 | 0.675339 |
9e82f506bb77618ebea0945ec4f8becc0b9fe85b | 88 | ex | Elixir | lib/green_worker/exceptions/deadline_exceeded_error.ex | renderedtext/green-worker | ca69c243e5a98590a6d82ca2872996783948b8fb | [
"Apache-2.0"
] | 1 | 2019-09-05T14:40:33.000Z | 2019-09-05T14:40:33.000Z | lib/green_worker/exceptions/deadline_exceeded_error.ex | renderedtext/green-worker | ca69c243e5a98590a6d82ca2872996783948b8fb | [
"Apache-2.0"
] | null | null | null | lib/green_worker/exceptions/deadline_exceeded_error.ex | renderedtext/green-worker | ca69c243e5a98590a6d82ca2872996783948b8fb | [
"Apache-2.0"
] | null | null | null | defmodule GreenWorker.Exceptions.DeadlineExceededError do
defexception [:message]
end
| 22 | 57 | 0.852273 |
9e831b4c2bdb0b6565a2fbaa7aac5484f68943d1 | 7,835 | exs | Elixir | test/exw3/utils_test.exs | Metalink-App/ex_w3 | dd97ec95fcb6374055010b65083384f1f0f09578 | [
"Apache-2.0"
] | 3 | 2021-09-28T21:28:15.000Z | 2022-01-30T23:01:45.000Z | test/exw3/utils_test.exs | Metalink-App/ex_w3 | dd97ec95fcb6374055010b65083384f1f0f09578 | [
"Apache-2.0"
] | null | null | null | test/exw3/utils_test.exs | Metalink-App/ex_w3 | dd97ec95fcb6374055010b65083384f1f0f09578 | [
"Apache-2.0"
] | 1 | 2022-02-16T16:13:23.000Z | 2022-02-16T16:13:23.000Z | defmodule Web3x.UtilsTest do
use ExUnit.Case
doctest Web3x.Utils
describe ".hex_to_integer/1" do
test "parses a hex encoded string to an integer" do
assert Web3x.Utils.hex_to_integer("0x1") == {:ok, 1}
assert Web3x.Utils.hex_to_integer("0x2") == {:ok, 2}
assert Web3x.Utils.hex_to_integer("0... | 42.351351 | 99 | 0.69164 |
9e8339a5b9958062c49f182ed98660726fd5323e | 568 | exs | Elixir | 18-NewMath/mix.exs | dvrensk/advent-of-code-2020 | 237e80da9958f37e51c0ac84da74bec5fec1f185 | [
"Unlicense"
] | 1 | 2020-12-02T01:34:06.000Z | 2020-12-02T01:34:06.000Z | 18-NewMath/mix.exs | dvrensk/advent-of-code-2020 | 237e80da9958f37e51c0ac84da74bec5fec1f185 | [
"Unlicense"
] | null | null | null | 18-NewMath/mix.exs | dvrensk/advent-of-code-2020 | 237e80da9958f37e51c0ac84da74bec5fec1f185 | [
"Unlicense"
] | null | null | null | defmodule NewMath.MixProject do
use Mix.Project
def project do
[
app: :aoc,
version: "0.1.0",
elixir: "~> 1.10",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applic... | 19.586207 | 87 | 0.573944 |
9e834b53c95087d5046a9f1e95390e634b2bb9eb | 903 | exs | Elixir | basictypes/lists.exs | ezkemboi/elixir | 5641c8c9cc24b5e51546328b7fbba04d3b28e3b2 | [
"Apache-2.0"
] | 1 | 2020-01-21T19:58:41.000Z | 2020-01-21T19:58:41.000Z | basictypes/lists.exs | ezkemboi/elixir | 5641c8c9cc24b5e51546328b7fbba04d3b28e3b2 | [
"Apache-2.0"
] | null | null | null | basictypes/lists.exs | ezkemboi/elixir | 5641c8c9cc24b5e51546328b7fbba04d3b28e3b2 | [
"Apache-2.0"
] | null | null | null | # list uses square brackets
IO.inspect [0, 1, "ke", true, nil]
# check the length of a list
mylist = [1, 2, true, nil]
IO.puts length(mylist)
# adding list
secondlist = ["Ezrqn Kemboi", false]
addedlist = mylist ++ secondlist
IO.inspect addedlist
# subtract list
subtractitems = [false, 2]
subtractedlist = addedlist --... | 27.363636 | 74 | 0.75526 |
9e83536cefa7435ad287c94fc28d6456fc421f0a | 1,012 | ex | Elixir | lib/phxpay_web/router.ex | ramonlimaramos/phxpay | accf0ada9581a8f8f396849fdfe10e1a1c4ae2af | [
"MIT"
] | null | null | null | lib/phxpay_web/router.ex | ramonlimaramos/phxpay | accf0ada9581a8f8f396849fdfe10e1a1c4ae2af | [
"MIT"
] | null | null | null | lib/phxpay_web/router.ex | ramonlimaramos/phxpay | accf0ada9581a8f8f396849fdfe10e1a1c4ae2af | [
"MIT"
] | null | null | null | defmodule PhxpayWeb.Router do
use PhxpayWeb, :router
pipeline :api do
plug :accepts, ["json"]
end
scope "/api", PhxpayWeb do
pipe_through :api
get "/:filename", WellcomeController, :index
post "/users", UsersController, :create
post "/accounts/:id/deposit", AccountsController, :deposit
... | 28.111111 | 70 | 0.711462 |
9e8358bfe778bb7e7d995435df6fd3b5d13a7cf9 | 2,484 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v35/model/site_skippable_setting.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v35/model/site_skippable_setting.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v35/model/site_skippable_setting.ex | dazuma/elixir-google-api | 6a9897168008efe07a6081d2326735fe332e522c | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 44.357143 | 220 | 0.736312 |
9e8361d4809dfe84c5d2b5d813726741b5305a51 | 1,045 | exs | Elixir | config/dev.exs | philosodad/dashex | a3662d3b95e48fd3e7433b30c8a7505accf58e77 | [
"MIT"
] | null | null | null | config/dev.exs | philosodad/dashex | a3662d3b95e48fd3e7433b30c8a7505accf58e77 | [
"MIT"
] | null | null | null | config/dev.exs | philosodad/dashex | a3662d3b95e48fd3e7433b30c8a7505accf58e77 | [
"MIT"
] | null | null | null | use Mix.Config
# For development, we disable any cache and enable
# debugging and code reloading.
#
# The watchers configuration can be used to run external
# watchers to your application. For example, we use it
# with brunch.io to recompile .js and .css sources.
config :dashex, Dashex.Endpoint,
http: [port: 4000],
... | 29.027778 | 63 | 0.70622 |
9e837b1e09491740171e44b9537365ed2cfb5c10 | 1,455 | ex | Elixir | lib/exns/api.ex | walkr/exns | 40379d38ce363b6f9208182dc3309529b1939fe3 | [
"MIT"
] | 6 | 2016-06-12T12:59:21.000Z | 2018-09-23T06:57:42.000Z | lib/exns/api.ex | walkr/exns | 40379d38ce363b6f9208182dc3309529b1939fe3 | [
"MIT"
] | null | null | null | lib/exns/api.ex | walkr/exns | 40379d38ce363b6f9208182dc3309529b1939fe3 | [
"MIT"
] | null | null | null | defmodule Exns.Api do
@moduledoc """
This module contains the public functions of the Exns app.
"""
defmacro __using__(_opts) do
quote do
import Exns.Api
@doc ~S"""
Call a method on a remote service
"""
def call(service, method, args \... | 28.529412 | 77 | 0.515464 |
9e837b5c23562b9d58e7c332446600a9bd01cdbd | 1,215 | exs | Elixir | config/config.exs | sschneider1207/RGBMonitor | a2cf73b072423831b2ef27fcd644ffddba04d524 | [
"MIT"
] | null | null | null | config/config.exs | sschneider1207/RGBMonitor | a2cf73b072423831b2ef27fcd644ffddba04d524 | [
"MIT"
] | null | null | null | config/config.exs | sschneider1207/RGBMonitor | a2cf73b072423831b2ef27fcd644ffddba04d524 | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on this project, this
# file won't be loaded nor affect the paren... | 35.735294 | 73 | 0.747325 |
9e839fea58103626b42d7ce0af5eff50002bf359 | 532 | ex | Elixir | apps/service_gather/test/support/fake_step.ex | rucker/hindsight | 876a5d344c5d8eebbea37684ee07e0a91e4430f0 | [
"Apache-2.0"
] | 12 | 2020-01-27T19:43:02.000Z | 2021-07-28T19:46:29.000Z | apps/service_gather/test/support/fake_step.ex | rucker/hindsight | 876a5d344c5d8eebbea37684ee07e0a91e4430f0 | [
"Apache-2.0"
] | 81 | 2020-01-28T18:07:23.000Z | 2021-11-22T02:12:13.000Z | apps/service_gather/test/support/fake_step.ex | rucker/hindsight | 876a5d344c5d8eebbea37684ee07e0a91e4430f0 | [
"Apache-2.0"
] | 10 | 2020-02-13T21:24:09.000Z | 2020-05-21T18:39:35.000Z | defmodule Fake.Step do
defstruct [:values, :pid, :chunk_size]
defimpl Extract.Step, for: __MODULE__ do
import Extract.Context
def execute(step, context) do
chunk_size = step.chunk_size || 2
source = fn _ ->
step.values
|> Stream.map(&Extract.Message.new(data: &1))
|> S... | 21.28 | 53 | 0.593985 |
9e83a18f8a108a1c3a46db039cf520aed0af7ed1 | 128 | exs | Elixir | test/test_helper.exs | tailcalldev/pg_queuetopia | ea18c6a7633a78cc82473b9b60da205454009af4 | [
"MIT"
] | null | null | null | test/test_helper.exs | tailcalldev/pg_queuetopia | ea18c6a7633a78cc82473b9b60da205454009af4 | [
"MIT"
] | null | null | null | test/test_helper.exs | tailcalldev/pg_queuetopia | ea18c6a7633a78cc82473b9b60da205454009af4 | [
"MIT"
] | null | null | null | {:ok, _pid} = PgQueuetopia.TestRepo.start_link()
Ecto.Adapters.SQL.Sandbox.mode(PgQueuetopia.TestRepo, :manual)
ExUnit.start()
| 25.6 | 62 | 0.773438 |
9e83c779b8e9f73f3de8030add09b983d732b4ac | 3,651 | ex | Elixir | lib/grizzly/packet/decode.ex | pragdave/grizzly | bcd7b46ab2cff1797dac04bc3cd12a36209dd579 | [
"Apache-2.0"
] | null | null | null | lib/grizzly/packet/decode.ex | pragdave/grizzly | bcd7b46ab2cff1797dac04bc3cd12a36209dd579 | [
"Apache-2.0"
] | null | null | null | lib/grizzly/packet/decode.ex | pragdave/grizzly | bcd7b46ab2cff1797dac04bc3cd12a36209dd579 | [
"Apache-2.0"
] | null | null | null | defmodule Grizzly.Packet.Decode do
@moduledoc false
import Bitwise
alias Grizzly.CommandClass.Mappings
alias Grizzly.Packet.HeaderExtension
require Logger
@packet_types %{
nack_option_error: 0x04,
nack_queue_full: 0x08,
nack_waiting: 0x10,
nack_response: 0x20,
ack_response: 0x40,
... | 27.246269 | 94 | 0.657902 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.