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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
74e07ee8b17b78c1030a03563e5f9045ceb70747 | 16,262 | ex | Elixir | lib/mail/parsers/rfc_2822.ex | toptal/elixir-mail | 0f625039d4de119c2e523917353e4076c12b76c2 | [
"MIT"
] | 387 | 2016-02-09T23:17:51.000Z | 2022-03-31T13:57:05.000Z | lib/mail/parsers/rfc_2822.ex | toptal/elixir-mail | 0f625039d4de119c2e523917353e4076c12b76c2 | [
"MIT"
] | 84 | 2016-02-09T21:20:11.000Z | 2022-03-10T09:58:43.000Z | lib/mail/parsers/rfc_2822.ex | toptal/elixir-mail | 0f625039d4de119c2e523917353e4076c12b76c2 | [
"MIT"
] | 70 | 2016-02-10T15:21:44.000Z | 2021-12-08T18:20:25.000Z | defmodule Mail.Parsers.RFC2822 do
@moduledoc """
RFC2822 Parser
Will attempt to parse a valid RFC2822 message back into
a `%Mail.Message{}` data model.
Mail.Parsers.RFC2822.parse(message)
%Mail.Message{body: "Some message", headers: %{to: ["user@example.com"], from: "other@example.com", subject: "... | 35.275488 | 129 | 0.6351 |
74e0a100f8462e5111466e3d1f7be6eec00d1deb | 2,710 | ex | Elixir | clients/content/lib/google_api/content/v21/model/account_status.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | 1 | 2021-10-01T09:20:41.000Z | 2021-10-01T09:20:41.000Z | clients/content/lib/google_api/content/v21/model/account_status.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v21/model/account_status.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"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... | 41.692308 | 228 | 0.716605 |
74e0c66ea32241dd5df3d09ba392a5452d4d1451 | 706 | exs | Elixir | plugins/ucc_chat/priv/repo/migrations/04420180112042470_add_notifications_to_chat_general.exs | josephkabraham/ucx_ucc | 0dbd9e3eb5940336b4870cff033482ceba5f6ee7 | [
"MIT"
] | null | null | null | plugins/ucc_chat/priv/repo/migrations/04420180112042470_add_notifications_to_chat_general.exs | josephkabraham/ucx_ucc | 0dbd9e3eb5940336b4870cff033482ceba5f6ee7 | [
"MIT"
] | null | null | null | plugins/ucc_chat/priv/repo/migrations/04420180112042470_add_notifications_to_chat_general.exs | josephkabraham/ucx_ucc | 0dbd9e3eb5940336b4870cff033482ceba5f6ee7 | [
"MIT"
] | null | null | null | defmodule UcxUcc.Repo.Migrations.AddNotificationsToChatGeneral do
use Ecto.Migration
def change do
alter table(:settings_chat_general) do
add :unread_count, :string, default: "user_and_group"
add :unread_count_dm, :string, default: "all"
add :default_message_notification_audio, :string, defau... | 41.529412 | 76 | 0.747875 |
74e0d5ba50ea7f8b740c76fc8bf9e5df8cd87fd2 | 74 | exs | Elixir | test/pebl_web/views/page_view_test.exs | tomkonidas/pebl | 6a43570885fba5cf6cdf15c48d843116eedab79b | [
"MIT"
] | 6 | 2020-08-26T11:29:36.000Z | 2021-11-25T08:37:28.000Z | test/pebl_web/views/page_view_test.exs | tomkonidas/pebl | 6a43570885fba5cf6cdf15c48d843116eedab79b | [
"MIT"
] | 20 | 2020-03-06T05:33:35.000Z | 2022-02-17T17:20:38.000Z | test/pebl_web/views/page_view_test.exs | tomkonidas/pebl | 6a43570885fba5cf6cdf15c48d843116eedab79b | [
"MIT"
] | 2 | 2020-12-11T16:24:59.000Z | 2021-08-16T11:31:08.000Z | defmodule PeblWeb.PageViewTest do
use PeblWeb.ConnCase, async: true
end
| 18.5 | 35 | 0.810811 |
74e0feec2f03ab6cd9d07f6f6a0783daaa8b66f6 | 1,909 | ex | Elixir | clients/content/lib/google_api/content/v21/model/unit_invoice_tax_line.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v21/model/unit_invoice_tax_line.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v21/model/unit_invoice_tax_line.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 32.913793 | 147 | 0.698795 |
74e105a8277f939d70acebf4f028053b25a4fe96 | 1,497 | exs | Elixir | config/dev.exs | sreecodeslayer/hello-phoenix-genserver | a30b95af71cacb7df53222bd34dcbae682b98282 | [
"MIT"
] | 1 | 2020-01-31T20:38:34.000Z | 2020-01-31T20:38:34.000Z | config/dev.exs | sreecodeslayer/hello-phoenix-genserver | a30b95af71cacb7df53222bd34dcbae682b98282 | [
"MIT"
] | null | null | null | config/dev.exs | sreecodeslayer/hello-phoenix-genserver | a30b95af71cacb7df53222bd34dcbae682b98282 | [
"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 webpack to recompile .js and .css sources.
config :hello_genserver, HelloGenserverWeb.Endpoint,
ht... | 29.94 | 68 | 0.724783 |
74e13869f88a9813360ca9bd9e6d93a8dfc79293 | 2,102 | exs | Elixir | apps/aeutil/test/aeutil_serialization_test.exs | wuminzhe/elixir-node | eb87b47339a8349bac767dd4cf597dfaf0ed75c6 | [
"ISC"
] | null | null | null | apps/aeutil/test/aeutil_serialization_test.exs | wuminzhe/elixir-node | eb87b47339a8349bac767dd4cf597dfaf0ed75c6 | [
"ISC"
] | null | null | null | apps/aeutil/test/aeutil_serialization_test.exs | wuminzhe/elixir-node | eb87b47339a8349bac767dd4cf597dfaf0ed75c6 | [
"ISC"
] | null | null | null | defmodule AeutilSerializationTest do
use ExUnit.Case
alias Aeutil.Serialization
alias Aewallet.Encoding
alias Aecore.Wallet.Worker, as: Wallet
@tag :serialization
test "serialize a block" do
block = get_block()
serialized_block = Serialization.block(block, :serialize)
assert check_header_value... | 27.657895 | 97 | 0.561846 |
74e164aa41dc8ec06c75812802e91400440b6dd8 | 2,466 | ex | Elixir | clients/double_click_search/lib/google_api/double_click_search/v2/model/report_request_report_scope.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/double_click_search/lib/google_api/double_click_search/v2/model/report_request_report_scope.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/double_click_search/lib/google_api/double_click_search/v2/model/report_request_report_scope.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... | 37.938462 | 209 | 0.684509 |
74e182d22c626028fc0389134fcc8e99123745a5 | 8,591 | ex | Elixir | lib/peluquero/peluqueria.ex | facundokantox/peluquero | 16e54ad00016858b925313fa20eb38310b18718f | [
"MIT"
] | null | null | null | lib/peluquero/peluqueria.ex | facundokantox/peluquero | 16e54ad00016858b925313fa20eb38310b18718f | [
"MIT"
] | null | null | null | lib/peluquero/peluqueria.ex | facundokantox/peluquero | 16e54ad00016858b925313fa20eb38310b18718f | [
"MIT"
] | null | null | null | defmodule Peluquero.Peluqueria do
@moduledoc ~S"""
The supervisor process for the `Peluquero.Actor` and `Peluquero.Rabbit` pair.
"""
use Supervisor
use Peluquero.Namer
require Logger
@scissors Application.get_env(:peluquero, :scissors, [])
@rabbits Application.get_env(:peluquero, :rabbits, 1)
@opts ... | 31.936803 | 97 | 0.579909 |
74e1920397f2a55ffd540fca19ab4853c961e8e7 | 1,623 | ex | Elixir | clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/instances_export_request.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/instances_export_request.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/instances_export_request.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 34.531915 | 147 | 0.76032 |
74e1abb9b8dbd1bb8d25770ad4953091b1e53642 | 15,560 | ex | Elixir | lib/mongo/topology.ex | reetou/elixir-mongodb-driver | b17b8fa337a3fdea783bbb991984f93a4848b652 | [
"Apache-2.0"
] | null | null | null | lib/mongo/topology.ex | reetou/elixir-mongodb-driver | b17b8fa337a3fdea783bbb991984f93a4848b652 | [
"Apache-2.0"
] | null | null | null | lib/mongo/topology.ex | reetou/elixir-mongodb-driver | b17b8fa337a3fdea783bbb991984f93a4848b652 | [
"Apache-2.0"
] | null | null | null | defmodule Mongo.Topology do
@moduledoc false
require Logger
use GenServer
alias Mongo.Events.{ServerDescriptionChangedEvent, ServerOpeningEvent, ServerClosedEvent,
TopologyDescriptionChangedEvent, TopologyOpeningEvent, TopologyClosedEvent}
alias Mongo.TopologyDescription
alias Mongo.... | 34.04814 | 190 | 0.65527 |
74e1b36790344a5a94e651eab7be21e2c4c23d37 | 232 | exs | Elixir | .formatter.exs | tl-vanilla/raditz | 72bb05ddd96401b6e0abe8f011cb059ef552787c | [
"MIT"
] | 1 | 2020-12-21T15:14:12.000Z | 2020-12-21T15:14:12.000Z | .formatter.exs | IanLuites/raditz | 3dcfd30a0049719eadbb7cbddf44677ee12c56a0 | [
"MIT"
] | null | null | null | .formatter.exs | IanLuites/raditz | 3dcfd30a0049719eadbb7cbddf44677ee12c56a0 | [
"MIT"
] | 2 | 2021-01-08T05:44:50.000Z | 2021-01-11T11:37:33.000Z | locals_without_parens = [
defscript: 2
]
[
inputs: ["{mix,.formatter}.exs", "{config,lib,test}/**/*.{ex,exs}"],
locals_without_parens: locals_without_parens,
export: [
locals_without_parens: locals_without_parens
]
]
| 19.333333 | 70 | 0.689655 |
74e1e29fbd8e7aa656cfa46ab31f966d722cd60c | 875 | exs | Elixir | mix.exs | wingyplus/castore | ed3f0d4445e136d92d7c6b97196d1b8a5b39b8ea | [
"Apache-2.0"
] | null | null | null | mix.exs | wingyplus/castore | ed3f0d4445e136d92d7c6b97196d1b8a5b39b8ea | [
"Apache-2.0"
] | null | null | null | mix.exs | wingyplus/castore | ed3f0d4445e136d92d7c6b97196d1b8a5b39b8ea | [
"Apache-2.0"
] | null | null | null | defmodule CAStore.MixProject do
use Mix.Project
@version "0.1.11"
@repo_url "https://github.com/elixir-mint/castore"
def project do
[
app: :castore,
version: @version,
elixir: "~> 1.0",
start_permanent: Mix.env() == :prod,
deps: deps(),
xref: [exclude: [:public_key]],
... | 17.857143 | 64 | 0.528 |
74e205de97ebcd7be37d01ed2d4ca61809dcf5bf | 1,084 | exs | Elixir | test/action_test.exs | borodark/type_test | b58fb1fad312caad7bae92fcbe897b4dc9fbe778 | [
"MIT"
] | null | null | null | test/action_test.exs | borodark/type_test | b58fb1fad312caad7bae92fcbe897b4dc9fbe778 | [
"MIT"
] | null | null | null | test/action_test.exs | borodark/type_test | b58fb1fad312caad7bae92fcbe897b4dc9fbe778 | [
"MIT"
] | null | null | null | defmodule TypeTest.ActionTest do
use ExUnit.Case, async: true
alias TypeTest.{Action, Repo}
doctest TypeTest.Action
setup do
# Explicitly get a connection before each test
:ok = Ecto.Adapters.SQL.Sandbox.checkout(Repo)
end
test "Return an empty summary" do
assert [] == Action.summary("a")
e... | 27.1 | 67 | 0.627306 |
74e226efec2f61aa75a56710ae3b2484497c42f2 | 4,417 | exs | Elixir | test/meta_logger_test.exs | isabella232/meta_logger | 8b775a48244748b282a13f3ccd483b849ffb938d | [
"Apache-2.0"
] | null | null | null | test/meta_logger_test.exs | isabella232/meta_logger | 8b775a48244748b282a13f3ccd483b849ffb938d | [
"Apache-2.0"
] | 1 | 2022-03-19T20:35:50.000Z | 2022-03-19T20:35:50.000Z | test/meta_logger_test.exs | isabella232/meta_logger | 8b775a48244748b282a13f3ccd483b849ffb938d | [
"Apache-2.0"
] | null | null | null | defmodule MetaLoggerTest do
use ExUnit.Case
import ExUnit.CaptureLog
alias MetaLogger, as: Subject
setup do
Logger.configure_backend(:console, metadata: [:foo, :bar, :baz])
on_exit(fn -> Logger.configure_backend(:console, metadata: []) end)
end
~w(debug error info warn)a
|> Enum.each(fn level... | 25.096591 | 100 | 0.490152 |
74e2589c1f19f68cbeecde901c32ded345747b41 | 478 | ex | Elixir | lib/hl7/2.5/datatypes/cnn.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | lib/hl7/2.5/datatypes/cnn.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | lib/hl7/2.5/datatypes/cnn.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | defmodule HL7.V2_5.DataTypes.Cnn do
@moduledoc false
use HL7.DataType,
fields: [
id_number: nil,
family_name: nil,
given_name: nil,
second_and_further_given_names_or_initials_thereof: nil,
suffix_eg_jr_or_iii: nil,
prefix_eg_dr: nil,
degree_eg_md: nil,
source_tab... | 25.157895 | 62 | 0.702929 |
74e262ad4d17ddc845856f74b94e5f65c3fb98d1 | 1,843 | exs | Elixir | lib/day4b.exs | TablesawTablesawsen/advent-of-code-2016 | db4e6612ca8c043729d7a35e56efe374133af704 | [
"MIT"
] | null | null | null | lib/day4b.exs | TablesawTablesawsen/advent-of-code-2016 | db4e6612ca8c043729d7a35e56efe374133af704 | [
"MIT"
] | null | null | null | lib/day4b.exs | TablesawTablesawsen/advent-of-code-2016 | db4e6612ca8c043729d7a35e56efe374133af704 | [
"MIT"
] | null | null | null | defmodule Day4b do
@space_value 32
def run do
File.read!("day4.txt")
|> String.split
|> Enum.map(&str_to_room/1)
|> Enum.filter(&is_real?/1)
|> Enum.map(&decode_room/1)
end
def str_to_room(str) do
{list, [ id, checksum ]} = str
... | 24.573333 | 80 | 0.502984 |
74e26f959c54942733a58cae059350909c0358b7 | 697 | ex | Elixir | lib/acme_bank/application.ex | alesshh/acme-bank | 0f885dc12614cba4c8f3a46c04b714f3ada8bb9b | [
"MIT"
] | null | null | null | lib/acme_bank/application.ex | alesshh/acme-bank | 0f885dc12614cba4c8f3a46c04b714f3ada8bb9b | [
"MIT"
] | null | null | null | lib/acme_bank/application.ex | alesshh/acme-bank | 0f885dc12614cba4c8f3a46c04b714f3ada8bb9b | [
"MIT"
] | null | null | null | defmodule AcmeBank.Application do
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
use Application
def start(_type, _args) do
port = Application.fetch_env!(:acme_bank, :port)
children = [
# Starts a worker by calling: AcmeBank.Worker... | 29.041667 | 85 | 0.698709 |
74e29ebc741986083588df4e0e2dd25b3ef01970 | 2,647 | ex | Elixir | clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/tenancy_unit.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/tenancy_unit.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/tenancy_unit.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... | 41.359375 | 225 | 0.720816 |
74e2d18af59c851ba62c4502c6b110616ba58968 | 906 | exs | Elixir | test/test_helper.exs | sirikid/yuri_template | 66846ed0f5a8407749408a4ebf526f9c27cb9366 | [
"Apache-2.0"
] | 3 | 2020-05-03T15:30:21.000Z | 2021-05-09T01:35:41.000Z | test/test_helper.exs | sirikid/yuri_template | 66846ed0f5a8407749408a4ebf526f9c27cb9366 | [
"Apache-2.0"
] | 1 | 2021-04-15T20:08:14.000Z | 2021-04-18T20:48:17.000Z | test/test_helper.exs | sirikid/yuri_template | 66846ed0f5a8407749408a4ebf526f9c27cb9366 | [
"Apache-2.0"
] | null | null | null | ExUnit.start(colors: [enabled: false])
defmodule ExpanderTest do
@substitutes [
count: ["one", "two", "three"],
dom: ["example", "com"],
dub: "me/too",
hello: "Hello World!",
half: "50%",
var: "value",
who: "fred",
base: "http://example.com/home/",
path: "/foo/bar",
list: ["re... | 22.65 | 84 | 0.503311 |
74e2e0a6c5a0ffe62afabd9d1806df9c822a58f2 | 9,082 | ex | Elixir | lib/phoenix/presence.ex | angwoontiong/phoenix-ui | 03227b13f3c780b5626d56207bfa99c8a06525d8 | [
"MIT"
] | null | null | null | lib/phoenix/presence.ex | angwoontiong/phoenix-ui | 03227b13f3c780b5626d56207bfa99c8a06525d8 | [
"MIT"
] | null | null | null | lib/phoenix/presence.ex | angwoontiong/phoenix-ui | 03227b13f3c780b5626d56207bfa99c8a06525d8 | [
"MIT"
] | null | null | null | defmodule Phoenix.Presence do
@moduledoc """
Provides Presence tracking to processes and channels.
This behaviour provides presence features such as fetching
presences for a given topic, as well as handling diffs of
join and leave events as they occur in real-time. Using this
module defines a supervisor an... | 36.039683 | 117 | 0.654371 |
74e3210c9d13a96b239bc0cb1bfc3457efe46702 | 2,629 | exs | Elixir | mix.exs | chulkilee/ex_doc | c393cae07a35d891177be0b5f47ed31bf67c2213 | [
"Apache-2.0",
"CC-BY-4.0"
] | null | null | null | mix.exs | chulkilee/ex_doc | c393cae07a35d891177be0b5f47ed31bf67c2213 | [
"Apache-2.0",
"CC-BY-4.0"
] | 1 | 2018-10-16T07:07:17.000Z | 2018-10-16T07:07:17.000Z | mix.exs | chulkilee/ex_doc | c393cae07a35d891177be0b5f47ed31bf67c2213 | [
"Apache-2.0",
"CC-BY-4.0"
] | null | null | null | defmodule ExDoc.Mixfile do
use Mix.Project
@version "0.19.1"
def project do
[
app: :ex_doc,
version: @version,
elixir: "~> 1.7",
deps: deps(),
aliases: aliases(),
package: package(),
escript: escript(),
source_url: "https://github.com/elixir-lang/ex_doc/",
... | 22.279661 | 94 | 0.546596 |
74e32d29ee3358b7bcf6143f79345075f98893f6 | 426 | exs | Elixir | apps/dockup_ui/config/test.exs | rudydydy/dockup | 0d05d1ef65cc5523800bd852178361521cd3e7d8 | [
"MIT"
] | 1 | 2019-08-20T07:45:10.000Z | 2019-08-20T07:45:10.000Z | apps/dockup_ui/config/test.exs | rudydydy/dockup | 0d05d1ef65cc5523800bd852178361521cd3e7d8 | [
"MIT"
] | null | null | null | apps/dockup_ui/config/test.exs | rudydydy/dockup | 0d05d1ef65cc5523800bd852178361521cd3e7d8 | [
"MIT"
] | 2 | 2019-03-08T10:51:34.000Z | 2019-08-20T07:45:13.000Z | use Mix.Config
# We don't run a server during test. If one is required,
# you can enable the server option below.
config :dockup_ui, DockupUi.Endpoint,
http: [port: 4001],
server: false
# Configure your database
config :dockup_ui, DockupUi.Repo,
adapter: Ecto.Adapters.Postgres,
#username: "postgres",
#passw... | 25.058824 | 56 | 0.730047 |
74e38ec66e6b6a6de04338b269b184de874c32f6 | 353 | exs | Elixir | config/dev.exs | mallond/elixir-mix | dfdec1faace5e4457cecf4a34c83ca3c9c0f0f5f | [
"MIT"
] | 1 | 2017-10-05T08:53:03.000Z | 2017-10-05T08:53:03.000Z | config/dev.exs | mallond/elixir-mix | dfdec1faace5e4457cecf4a34c83ca3c9c0f0f5f | [
"MIT"
] | null | null | null | config/dev.exs | mallond/elixir-mix | dfdec1faace5e4457cecf4a34c83ca3c9c0f0f5f | [
"MIT"
] | 1 | 2019-04-06T02:33:19.000Z | 2019-04-06T02:33:19.000Z | use Mix.Config
config :elixir_mix, ElixirMix.Endpoint,
http: [port: System.get_env("PORT") || 4000],
debug_errors: true,
cache_static_lookup: false
# Enables code reloading for development
config :phoenix, :code_reloader, true
# Do not include metadata nor timestamps in development logs
config :logger, :consol... | 27.153846 | 60 | 0.753541 |
74e3c7ec64cb162077247620046b89405ea550e6 | 913 | ex | Elixir | lib/rocketpay/accounts/transaction.ex | luigiMinardi/nlw-4 | 944a90ca2f858d60172ceb2fd52a645d108b4ef5 | [
"MIT"
] | null | null | null | lib/rocketpay/accounts/transaction.ex | luigiMinardi/nlw-4 | 944a90ca2f858d60172ceb2fd52a645d108b4ef5 | [
"MIT"
] | null | null | null | lib/rocketpay/accounts/transaction.ex | luigiMinardi/nlw-4 | 944a90ca2f858d60172ceb2fd52a645d108b4ef5 | [
"MIT"
] | null | null | null | defmodule Rocketpay.Accounts.Transaction do
alias Ecto.Multi
alias Rocketpay.Accounts.Transactions.Response, as: TransactionResponse
alias Rocketpay.{Accounts.Operation, Repo}
def call(%{"from" => from_id, "to" => to_id, "value" => value}) do
withdraw_params = build_params(from_id, value)
deposit_para... | 35.115385 | 81 | 0.692223 |
74e3e2f6005fe65105a7b5a2b1d89ecd77254071 | 5,854 | exs | Elixir | test/response_snapshot/diff_test.exs | sb8244/elixir_response_snapshot | 0f1e84f258678167e28869bbb041757728acd878 | [
"MIT"
] | 37 | 2018-04-17T09:37:48.000Z | 2022-01-23T23:43:16.000Z | test/response_snapshot/diff_test.exs | sb8244/elixir_response_snapshot | 0f1e84f258678167e28869bbb041757728acd878 | [
"MIT"
] | 2 | 2018-08-21T17:42:58.000Z | 2019-11-13T04:42:24.000Z | test/response_snapshot/diff_test.exs | sb8244/elixir_response_snapshot | 0f1e84f258678167e28869bbb041757728acd878 | [
"MIT"
] | 3 | 2018-04-22T13:34:21.000Z | 2019-11-13T04:33:23.000Z | defmodule ResponseSnapshot.DiffTest do
use ExUnit.Case, async: true
alias ResponseSnapshot.Diff
alias ResponseSnapshot.Changes
describe "compare/2 with simple maps" do
test "two empty maps are identical" do
assert Diff.compare(%{}, %{}) == Changes.empty()
end
test "a mismatch key appears as... | 30.973545 | 104 | 0.505808 |
74e3e951ecd2021166f11e00da02c9a6e7dd929a | 700 | ex | Elixir | flights/web/gettext.ex | sifxtreme/phoenix-flights | afc8724e9a9d6f9158305d57df8132327943894d | [
"MIT"
] | null | null | null | flights/web/gettext.ex | sifxtreme/phoenix-flights | afc8724e9a9d6f9158305d57df8132327943894d | [
"MIT"
] | null | null | null | flights/web/gettext.ex | sifxtreme/phoenix-flights | afc8724e9a9d6f9158305d57df8132327943894d | [
"MIT"
] | null | null | null | defmodule Flights.Gettext do
@moduledoc """
A module providing Internationalization with a gettext-based API.
By using [Gettext](http://hexdocs.pm/gettext),
your module gains a set of macros for translations, for example:
import Flights.Gettext
# Simple translation
gettext "Here is the stri... | 28 | 71 | 0.677143 |
74e4404c80fcc79c89996bafb88d75abfc77bbc8 | 2,140 | exs | Elixir | apps/subs_web/test/subs_web/acceptance/user_password_recover_test.exs | gitter-badger/opensubs.io | 76d5b4d355a530c8f496efe3ac2095d87f078997 | [
"MIT"
] | 36 | 2018-02-03T10:58:51.000Z | 2020-09-19T20:52:17.000Z | apps/subs_web/test/subs_web/acceptance/user_password_recover_test.exs | joaquimadraz/subs | 9a26144ed660d5ece849ee447a9e5de53a311408 | [
"MIT"
] | 8 | 2018-01-17T17:15:48.000Z | 2020-07-06T08:56:54.000Z | apps/subs_web/test/subs_web/acceptance/user_password_recover_test.exs | joaquimadraz/subs | 9a26144ed660d5ece849ee447a9e5de53a311408 | [
"MIT"
] | 10 | 2018-05-21T18:20:32.000Z | 2022-01-29T14:25:48.000Z | defmodule SubsWeb.Test.Acceptance.UserRecoverPasswordTest do
use SubsWeb.FeatureCase
import Wallaby.Query
import SubsWeb.Test.Support.AcceptanceHelpers, only: [
assert_signup: 3,
]
alias Subs.{User, UserRepo}
setup %{session: session} do
email = "mac@example.com"
session
|> assert_signup... | 35.081967 | 99 | 0.666355 |
74e4558a7c313d3dd90de43e8b6f7c24014b3127 | 190 | exs | Elixir | apps/omg_watcher_info/priv/repo/migrations/20200514115919_add_eth_height_to_eth_events.exs | boolafish/elixir-omg | 46b568404972f6e4b4da3195d42d4fb622edb934 | [
"Apache-2.0"
] | 177 | 2018-08-24T03:51:02.000Z | 2020-05-30T13:29:25.000Z | apps/omg_watcher_info/priv/repo/migrations/20200514115919_add_eth_height_to_eth_events.exs | boolafish/elixir-omg | 46b568404972f6e4b4da3195d42d4fb622edb934 | [
"Apache-2.0"
] | 1,042 | 2018-08-25T00:52:39.000Z | 2020-06-01T05:15:17.000Z | apps/omg_watcher_info/priv/repo/migrations/20200514115919_add_eth_height_to_eth_events.exs | boolafish/elixir-omg | 46b568404972f6e4b4da3195d42d4fb622edb934 | [
"Apache-2.0"
] | 47 | 2018-08-24T12:06:33.000Z | 2020-04-28T11:49:25.000Z | defmodule OMG.WatcherInfo.DB.Repo.Migrations.AddEthHeightToEthEvents do
use Ecto.Migration
def up() do
alter table(:ethevents) do
add(:eth_height, :integer)
end
end
end
| 19 | 71 | 0.721053 |
74e4615ac30a370332fed26e55e3ad4e1ac467bc | 373 | ex | Elixir | apps/generic_plug/lib/plug.ex | jfis/ex-gulp | 806d305ede7df3c2b42d21c2e7b574987832c8d6 | [
"MIT"
] | null | null | null | apps/generic_plug/lib/plug.ex | jfis/ex-gulp | 806d305ede7df3c2b42d21c2e7b574987832c8d6 | [
"MIT"
] | null | null | null | apps/generic_plug/lib/plug.ex | jfis/ex-gulp | 806d305ede7df3c2b42d21c2e7b574987832c8d6 | [
"MIT"
] | null | null | null | defmodule Plug do
use GenericPlug
end
defmodule Plug.Conn do
defstruct halted: false
end
defmodule Plug.Builder do
defmacro __using__(_opts) do
quote do
use GenericPlug.Builder, pluggable: Plug.Conn, behaviour: Plug
end
end
end
defimpl Pluggable, for: Plug.Conn do
def halted?(%Plug.Conn{halt... | 17.761905 | 69 | 0.72118 |
74e49c2d045fd50508cc8d152cf3ecb99d6eba54 | 876 | ex | Elixir | clients/gmail/lib/google_api/gmail/v1/metadata.ex | denispeplin/elixir-google-api | 66c948e91feee521503dd685404ddcfd7c70f2ea | [
"Apache-2.0"
] | null | null | null | clients/gmail/lib/google_api/gmail/v1/metadata.ex | denispeplin/elixir-google-api | 66c948e91feee521503dd685404ddcfd7c70f2ea | [
"Apache-2.0"
] | null | null | null | clients/gmail/lib/google_api/gmail/v1/metadata.ex | denispeplin/elixir-google-api | 66c948e91feee521503dd685404ddcfd7c70f2ea | [
"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.444444 | 74 | 0.756849 |
74e4a1897d351482b0d3fe9647f78bb7b6f4c136 | 1,135 | exs | Elixir | apps/demo_greeter/config/config.exs | kimlindholm/gigalixir_umbrella_demo | 369cd029687bb05273d881082afe72e9ac3bc0c1 | [
"MIT"
] | 2 | 2019-05-26T12:57:38.000Z | 2020-01-22T20:28:32.000Z | apps/demo_greeter/config/config.exs | kimlindholm/gigalixir_umbrella_demo | 369cd029687bb05273d881082afe72e9ac3bc0c1 | [
"MIT"
] | null | null | null | apps/demo_greeter/config/config.exs | kimlindholm/gigalixir_umbrella_demo | 369cd029687bb05273d881082afe72e9ac3bc0c1 | [
"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... | 36.612903 | 73 | 0.752423 |
74e4a922d5b73365b0b162e59dc4bb5b881acb92 | 792 | exs | Elixir | test/holidefs/date_calculator_test.exs | opendoor-labs/holidefs | 3d1bc08d82258489e72872124acbd96da33a6bd5 | [
"MIT"
] | 16 | 2018-02-28T21:55:48.000Z | 2022-02-28T08:29:18.000Z | test/holidefs/date_calculator_test.exs | opendoor-labs/holidefs | 3d1bc08d82258489e72872124acbd96da33a6bd5 | [
"MIT"
] | 15 | 2018-02-08T23:42:51.000Z | 2022-02-05T16:41:13.000Z | test/holidefs/date_calculator_test.exs | opendoor-labs/holidefs | 3d1bc08d82258489e72872124acbd96da33a6bd5 | [
"MIT"
] | 7 | 2018-09-18T08:43:28.000Z | 2021-07-22T13:29:26.000Z | defmodule Holidefs.DateCalculatorTest do
use ExUnit.Case
alias Holidefs.DateCalculator
doctest DateCalculator
test "nth_day_of_week/4 returns the nth day of week" do
assert DateCalculator.nth_day_of_week(2017, 7, -3, 3) == ~D[2017-07-12]
assert DateCalculator.nth_day_of_week(2017, 11, -3, 3) == ~D[201... | 44 | 76 | 0.704545 |
74e4b9e79bcaadeb0d293fa8986e5af481949ed2 | 1,132 | ex | Elixir | lib/app_web/controllers/stage_controller.ex | ThanhUong/Chronos | 5e1b0823c585b784f5c51212513d518cab53a571 | [
"MIT"
] | null | null | null | lib/app_web/controllers/stage_controller.ex | ThanhUong/Chronos | 5e1b0823c585b784f5c51212513d518cab53a571 | [
"MIT"
] | null | null | null | lib/app_web/controllers/stage_controller.ex | ThanhUong/Chronos | 5e1b0823c585b784f5c51212513d518cab53a571 | [
"MIT"
] | null | null | null | defmodule AppWeb.StageController do
use AppWeb, :controller
alias App.Projects
alias App.Projects.Stage
action_fallback AppWeb.FallbackController
def index(conn, _params) do
stages = Projects.list_stages()
render(conn, "index.json", stages: stages)
end
def create(conn, %{"stage" => stage_param... | 25.727273 | 81 | 0.641343 |
74e4f506f934cb9d65963e79f0028b8c9be0e6b7 | 3,897 | exs | Elixir | test/cachex/services/overseer_test.exs | botwerk/cachex | d37996d3be35b0d8281e347d44c024ecf2735131 | [
"MIT"
] | 946 | 2017-06-26T00:36:58.000Z | 2022-03-29T19:52:31.000Z | test/cachex/services/overseer_test.exs | botwerk/cachex | d37996d3be35b0d8281e347d44c024ecf2735131 | [
"MIT"
] | 152 | 2017-06-28T10:01:24.000Z | 2022-03-24T18:46:13.000Z | test/cachex/services/overseer_test.exs | botwerk/cachex | d37996d3be35b0d8281e347d44c024ecf2735131 | [
"MIT"
] | 84 | 2017-06-30T05:30:31.000Z | 2022-03-01T20:23:16.000Z | defmodule Cachex.OverseerTest do
use CachexCase
# Bind any required hooks for test execution
setup_all do
ForwardHook.bind([
overseer_forward_hook_provision: [
provisions: [ :cache ]
]
])
:ok
end
# This test case just covers the addition of a new state into the state table.
... | 30.209302 | 82 | 0.692841 |
74e5347929e434f2b5b9ec6b0c7d3c8980d1f62f | 821 | ex | Elixir | lib/contentful_preview/preview.ex | prototypsthlm/contentful.ex | cde53cd6792643c2d5518f97db00c4118f842863 | [
"MIT"
] | 28 | 2016-06-19T00:18:46.000Z | 2021-05-17T07:53:22.000Z | lib/contentful_preview/preview.ex | prototypsthlm/contentful.ex | cde53cd6792643c2d5518f97db00c4118f842863 | [
"MIT"
] | 79 | 2016-07-13T14:46:07.000Z | 2021-05-17T09:26:50.000Z | lib/contentful_preview/preview.ex | prototypsthlm/contentful.ex | cde53cd6792643c2d5518f97db00c4118f842863 | [
"MIT"
] | 25 | 2016-07-13T17:31:52.000Z | 2021-05-08T10:14:46.000Z | defmodule Contentful.Preview do
@moduledoc """
The Contentful Preview API allows the interaction with content that is not yet
published and will return assets, entries, etc.
It exhibits the same behavior as the Content Delivery API - see
`Contentful.Delivery`.
## Usage
In order to use it:
```
# in... | 21.605263 | 80 | 0.684531 |
74e540f653f8aa989f1ea3cea07504c917ac6faf | 812 | exs | Elixir | test/flea_test.exs | davidgrupp/Flea | a15bb7d4b121b08155862b390dfe1626bbdc5840 | [
"Apache-2.0"
] | null | null | null | test/flea_test.exs | davidgrupp/Flea | a15bb7d4b121b08155862b390dfe1626bbdc5840 | [
"Apache-2.0"
] | null | null | null | test/flea_test.exs | davidgrupp/Flea | a15bb7d4b121b08155862b390dfe1626bbdc5840 | [
"Apache-2.0"
] | null | null | null | defmodule FleaTest do
use ExUnit.Case
test "the truth" do
assert 1 + 1 == 2
end
test "usage example" do
temp_var = Flea.Variable.init(:temperature)
|> Flea.Variable.add_func(:cold, %Flea.TrapezoidMemFunc{ a: 0, b: 0, c: 20, d: 40 })
|> Flea.Variable.add_func(:warm, %Flea.TriangleMemFunc{ a: ... | 28 | 91 | 0.615764 |
74e5606b3be70332a7eaccdc8d3127d299b030cc | 1,104 | ex | Elixir | implementations/elixir/ockam/ockam/lib/ockam/messaging/pipe_channel.ex | twittner/ockam | 96eadf99da42f7c35539c6e29010a657c579ccba | [
"Apache-2.0"
] | null | null | null | implementations/elixir/ockam/ockam/lib/ockam/messaging/pipe_channel.ex | twittner/ockam | 96eadf99da42f7c35539c6e29010a657c579ccba | [
"Apache-2.0"
] | 119 | 2021-07-20T15:12:29.000Z | 2022-03-01T10:31:53.000Z | implementations/elixir/ockam/ockam/lib/ockam/messaging/pipe_channel.ex | twittner/ockam | 96eadf99da42f7c35539c6e29010a657c579ccba | [
"Apache-2.0"
] | 1 | 2021-12-01T19:40:11.000Z | 2021-12-01T19:40:11.000Z | defmodule Ockam.Messaging.PipeChannel do
@moduledoc """
Ockam channel using pipes to deliver messages
Can be used with different pipe implementations to get different delivery properties
See `Ockam.Messaging.PipeChannel.Initiator` and `Ockam.Messaging.PipeChannel.Responder` for usage
Session setup:
See ... | 25.090909 | 99 | 0.756341 |
74e566ef7fadb55f1988955c4411287fc9c11024 | 2,228 | ex | Elixir | lib/neko/user_handler/supervisor.ex | Boogiep0p/neko-achievements | d26c969b9ebd88060d6278ccb9dc01e746cb002b | [
"MIT"
] | null | null | null | lib/neko/user_handler/supervisor.ex | Boogiep0p/neko-achievements | d26c969b9ebd88060d6278ccb9dc01e746cb002b | [
"MIT"
] | null | null | null | lib/neko/user_handler/supervisor.ex | Boogiep0p/neko-achievements | d26c969b9ebd88060d6278ccb9dc01e746cb002b | [
"MIT"
] | null | null | null | # it's used just like Neko.UserRate.Store.Supervisor
# except that store registry is provided by Elixir's Registry
defmodule Neko.UserHandler.Supervisor do
@moduledoc false
use Supervisor
require Logger
@registry_name Application.get_env(:neko, :user_handler_registry)[:name]
#------------------------------... | 32.764706 | 74 | 0.593357 |
74e593dd0a04dca695b1f37cd4b48c7d421e5851 | 310 | ex | Elixir | lib/absinthe/blueprint/type_reference/non_null.ex | TheRealReal/absinthe | 6eae5bc36283e58f42d032b8afd90de3ad64f97b | [
"MIT"
] | 4,101 | 2016-03-02T03:49:20.000Z | 2022-03-31T05:46:01.000Z | lib/absinthe/blueprint/type_reference/non_null.ex | TheRealReal/absinthe | 6eae5bc36283e58f42d032b8afd90de3ad64f97b | [
"MIT"
] | 889 | 2016-03-02T16:06:59.000Z | 2022-03-31T20:24:12.000Z | lib/absinthe/blueprint/type_reference/non_null.ex | TheRealReal/absinthe | 6eae5bc36283e58f42d032b8afd90de3ad64f97b | [
"MIT"
] | 564 | 2016-03-02T07:49:59.000Z | 2022-03-06T14:40:59.000Z | defmodule Absinthe.Blueprint.TypeReference.NonNull do
@moduledoc false
alias Absinthe.{Blueprint, Phase}
@enforce_keys [:of_type]
defstruct [
:of_type,
errors: []
]
@type t :: %__MODULE__{
of_type: Blueprint.TypeReference.t(),
errors: [Phase.Error.t()]
}
end
| 18.235294 | 53 | 0.629032 |
74e59f4368c046eaad01ba5728f93eb756105de4 | 112 | exs | Elixir | apps/cb_web/test/cb_web_test.exs | CultivateHQ/cultivatarmobile | 09148467d8569138e9b692a7b726b7090b2af5d6 | [
"MIT"
] | 16 | 2016-09-14T16:57:33.000Z | 2017-11-11T16:31:14.000Z | apps/cb_web/test/cb_web_test.exs | CultivateHQ/cultivatarmobile | 09148467d8569138e9b692a7b726b7090b2af5d6 | [
"MIT"
] | 5 | 2016-09-08T07:14:44.000Z | 2018-11-09T12:34:19.000Z | apps/cb_web/test/cb_web_test.exs | CultivateHQ/cultivatarmobile | 09148467d8569138e9b692a7b726b7090b2af5d6 | [
"MIT"
] | null | null | null | defmodule CbWebTest do
use ExUnit.Case
doctest CbWeb
test "the truth" do
assert 1 + 1 == 2
end
end
| 12.444444 | 22 | 0.660714 |
74e6397e065f253f1446ec985003d71a928eb3bd | 1,674 | ex | Elixir | lib/xdr/types/hyper_int.ex | revelrylabs/exdr | 4a3a5d65e2d0ba2daba32c5f648cbe401176e2e1 | [
"MIT"
] | 3 | 2020-01-12T03:16:38.000Z | 2020-09-06T03:37:03.000Z | lib/xdr/types/hyper_int.ex | revelrylabs/exdr | 4a3a5d65e2d0ba2daba32c5f648cbe401176e2e1 | [
"MIT"
] | 7 | 2019-10-14T14:27:31.000Z | 2020-05-01T22:27:52.000Z | lib/xdr/types/hyper_int.ex | revelrylabs/exdr | 4a3a5d65e2d0ba2daba32c5f648cbe401176e2e1 | [
"MIT"
] | 1 | 2020-02-06T23:19:24.000Z | 2020-02-06T23:19:24.000Z | defmodule XDR.Type.HyperInt do
@moduledoc """
Signed 64-bit integer
"""
defstruct type_name: "HyperInt", value: nil
@type value() :: -0x80000000_00000000..0x7FFFFFFF_FFFFFFFF
@type t() :: %__MODULE__{type_name: String.t(), value: value()}
@type encoding() :: <<_::64>>
@doc """
Encode the given integ... | 26.15625 | 76 | 0.651135 |
74e648253243792579457270aa76a75d94c0c999 | 463 | ex | Elixir | netaxs_sniff/suckmisic/lib/suckmisic/node/node_supervisor.ex | TomasMadeja/santomet-playground | f4467233401756e276612b8a94421e7820ad67fc | [
"WTFPL"
] | null | null | null | netaxs_sniff/suckmisic/lib/suckmisic/node/node_supervisor.ex | TomasMadeja/santomet-playground | f4467233401756e276612b8a94421e7820ad67fc | [
"WTFPL"
] | null | null | null | netaxs_sniff/suckmisic/lib/suckmisic/node/node_supervisor.ex | TomasMadeja/santomet-playground | f4467233401756e276612b8a94421e7820ad67fc | [
"WTFPL"
] | null | null | null | defmodule Suckmisic.Node.NodeSupervisor do
# Automatically defines child_spec/1
use DynamicSupervisor
def start_link(init_arg) do
DynamicSupervisor.start_link(__MODULE__, init_arg, name: __MODULE__)
end
def start_child(foo, bar, baz) do
spec = {MyWorker, foo: foo, bar: bar, baz: baz}
DynamicSupe... | 24.368421 | 72 | 0.7473 |
74e6531de4741bc13a40e5f6308050234aa20055 | 228 | ex | Elixir | lib/asciinema/upgrades/worker.ex | remerle/asciinema-server | 895bf5a7ffb7db1b418c97cfd2ac9136c46dfb57 | [
"Apache-2.0"
] | null | null | null | lib/asciinema/upgrades/worker.ex | remerle/asciinema-server | 895bf5a7ffb7db1b418c97cfd2ac9136c46dfb57 | [
"Apache-2.0"
] | null | null | null | lib/asciinema/upgrades/worker.ex | remerle/asciinema-server | 895bf5a7ffb7db1b418c97cfd2ac9136c46dfb57 | [
"Apache-2.0"
] | null | null | null | defmodule Asciinema.Upgrades.Worker do
defmacro __using__(_) do
quote do
use Oban.Worker,
queue: :upgrades,
unique: [period: :infinity, states: [:available, :scheduled, :executing]]
end
end
end
| 22.8 | 81 | 0.653509 |
74e655977627792a63c8ec6699eaaeb475ed376e | 151,240 | ex | Elixir | data/auto_generated/video/da9f1f6cfdee27f19a7a44778e7708f2.ex | breunigs/veloroute | ac3b1eeb2ef2369c27186a138f6ffd8284652dab | [
"0BSD"
] | 12 | 2018-06-15T10:18:43.000Z | 2022-01-24T12:50:54.000Z | data/auto_generated/video/da9f1f6cfdee27f19a7a44778e7708f2.ex | breunigs/veloroute | ac3b1eeb2ef2369c27186a138f6ffd8284652dab | [
"0BSD"
] | 15 | 2018-06-21T18:04:12.000Z | 2021-10-16T12:54:39.000Z | data/auto_generated/video/da9f1f6cfdee27f19a7a44778e7708f2.ex | breunigs/veloroute | ac3b1eeb2ef2369c27186a138f6ffd8284652dab | [
"0BSD"
] | 2 | 2020-03-09T19:21:36.000Z | 2022-01-16T03:29:51.000Z | defmodule(Data.AutoGenerated.Video.Rendered_da9f1f6cfdee27f19a7a44778e7708f2) do
@moduledoc "#{"Alltagsroute 11: aus Eißendorf in die Innenstadt"}
AUTOGENERATED. To update this file, run mix velo.videos.generate.
See Video.Rendered for functionality.
"
@behaviour Video.Rendered
@impl Video.Rendered
def... | 79.224725 | 98 | 0.701746 |
74e655cbf968a8832c0c528872003481623493a1 | 10,025 | ex | Elixir | lib/plotex/output/svg.ex | k-cross/plotex | 5b5634bf47d677172e7c8da4877ebe38f62d16a1 | [
"Apache-2.0"
] | null | null | null | lib/plotex/output/svg.ex | k-cross/plotex | 5b5634bf47d677172e7c8da4877ebe38f62d16a1 | [
"Apache-2.0"
] | null | null | null | lib/plotex/output/svg.ex | k-cross/plotex | 5b5634bf47d677172e7c8da4877ebe38f62d16a1 | [
"Apache-2.0"
] | null | null | null | defmodule Plotex.Output.Svg do
require Logger
alias Plotex.Output.Options
alias Plotex.Output.Formatter
use Phoenix.HTML
@doc """
Default example CSS Styling.
"""
def default_css() do
"""
.plx-labels {
text-anchor: middle;
dominant-baseline: central;
}
.... | 36.587591 | 160 | 0.424439 |
74e6617dab8cba482e7b73d0fe1aed689c659d91 | 130 | ex | Elixir | apps/twitter/lib/twitter/plug_router.ex | glv/revista | 00ecb0780c62a5525155a773b959b169e0e0500d | [
"MIT"
] | 17 | 2019-01-31T18:33:09.000Z | 2022-01-18T12:38:49.000Z | apps/twitter/lib/twitter/plug_router.ex | glv/revista | 00ecb0780c62a5525155a773b959b169e0e0500d | [
"MIT"
] | null | null | null | apps/twitter/lib/twitter/plug_router.ex | glv/revista | 00ecb0780c62a5525155a773b959b169e0e0500d | [
"MIT"
] | 4 | 2018-11-10T01:56:17.000Z | 2020-06-09T21:10:41.000Z | defmodule Twitter.PlugRouter do
use Plug.Router
plug(:match)
plug(:dispatch)
get("/", do: send_resp(conn, 200, ""))
end
| 14.444444 | 40 | 0.661538 |
74e66d86be86b99f96bf1a616322654725d2cc99 | 388 | exs | Elixir | rocketpay/priv/repo/migrations/20210225192036_create_user_table.exs | Samuel-Ricardo/RocketPay | aeec9d00fd04de8b1541f5369dcdcb2cb5e03807 | [
"MIT"
] | 3 | 2021-02-24T02:55:37.000Z | 2021-07-14T18:55:40.000Z | rocketpay/priv/repo/migrations/20210225192036_create_user_table.exs | Samuel-Ricardo/RocketPay | aeec9d00fd04de8b1541f5369dcdcb2cb5e03807 | [
"MIT"
] | null | null | null | rocketpay/priv/repo/migrations/20210225192036_create_user_table.exs | Samuel-Ricardo/RocketPay | aeec9d00fd04de8b1541f5369dcdcb2cb5e03807 | [
"MIT"
] | 1 | 2021-03-13T01:32:40.000Z | 2021-03-13T01:32:40.000Z | defmodule Rocketpay.Repo.Migrations.CreateUserTable do
use Ecto.Migration
def change do
create table :users do
add :name, :string
add :age, :integer
add :email, :string
add :password_hash, :string
add :nickname, :string
timestamps()
end
create unique_index(:users... | 17.636364 | 54 | 0.646907 |
74e691e74ba288bbf3c93d475276fbd0d0bdb82a | 1,116 | exs | Elixir | test/langue/gettext/header_test.exs | leonardocouy/accent | 29fb324395ff998cc5cdc6947c60070ffabe647c | [
"BSD-3-Clause"
] | null | null | null | test/langue/gettext/header_test.exs | leonardocouy/accent | 29fb324395ff998cc5cdc6947c60070ffabe647c | [
"BSD-3-Clause"
] | null | null | null | test/langue/gettext/header_test.exs | leonardocouy/accent | 29fb324395ff998cc5cdc6947c60070ffabe647c | [
"BSD-3-Clause"
] | null | null | null | defmodule LangueTest.Formatter.Gettext.Header do
use ExUnit.Case, async: true
Code.require_file("expectation_test.exs", __DIR__)
alias Accent.FormatterTestHelper
alias Langue.Formatter.Gettext
alias LangueTest.Formatter.Gettext.Expectation.{
Simple,
LanguageHeader,
PluralFormsHeader
}
test... | 32.823529 | 148 | 0.72043 |
74e6a7655e8630475dff73f8b8937cf191a7f9c3 | 2,454 | exs | Elixir | config/prod.exs | LunarLogic/skillset | fe7eda83506ce45e2a60fd77bd17c3981b2ef254 | [
"MIT"
] | null | null | null | config/prod.exs | LunarLogic/skillset | fe7eda83506ce45e2a60fd77bd17c3981b2ef254 | [
"MIT"
] | null | null | null | config/prod.exs | LunarLogic/skillset | fe7eda83506ce45e2a60fd77bd17c3981b2ef254 | [
"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,
# ... | 34.083333 | 69 | 0.713936 |
74e6af9d86fe8ba566d0abef7ce96304e69cc1a4 | 1,365 | exs | Elixir | mix.exs | jshmrtn/ex-apple-pay | 6cb14ecb5ae71952ed51a54378aa5fdf5e34e0ed | [
"MIT"
] | 3 | 2018-02-05T14:27:19.000Z | 2020-04-02T13:54:29.000Z | mix.exs | jshmrtn/ex-apple-pay | 6cb14ecb5ae71952ed51a54378aa5fdf5e34e0ed | [
"MIT"
] | null | null | null | mix.exs | jshmrtn/ex-apple-pay | 6cb14ecb5ae71952ed51a54378aa5fdf5e34e0ed | [
"MIT"
] | 1 | 2020-04-30T12:00:34.000Z | 2020-04-30T12:00:34.000Z | defmodule ApplePay.MixProject do
@moduledoc false
use Mix.Project
def project do
[
app: :apple_pay,
version: "0.1.0",
elixir: "~> 1.6",
start_permanent: Mix.env() == :prod,
deps: deps(),
description: description(),
package: package(),
preferred_cli_env: [
... | 22.75 | 69 | 0.52967 |
74e6b73a9effec68939922ce942e8faee252b376 | 765 | ex | Elixir | apps/ins_web/lib/ins_web/controllers/session_controller.ex | ODYLIGHT/ins_umbrella | 40534551b18030b4621f882f33b0416ab60ba02a | [
"MIT"
] | null | null | null | apps/ins_web/lib/ins_web/controllers/session_controller.ex | ODYLIGHT/ins_umbrella | 40534551b18030b4621f882f33b0416ab60ba02a | [
"MIT"
] | null | null | null | apps/ins_web/lib/ins_web/controllers/session_controller.ex | ODYLIGHT/ins_umbrella | 40534551b18030b4621f882f33b0416ab60ba02a | [
"MIT"
] | null | null | null | defmodule InsWeb.SessionController do
use InsWeb, :controller
alias Ins.Accounts
def new(conn, _) do
render(conn, "new.html")
end
def create(conn, %{"user" => %{"email" => email, "password" => password}}) do
case Accounts.authenticate_by_email_password(email, password) do
{:ok, user} ->
... | 25.5 | 79 | 0.596078 |
74e6f053042aff2c4f6b2304947eb1d1b1c937fa | 629 | ex | Elixir | lib/firmata/protocol/modes.ex | cambrian-era/firmata | 77cccf65349d75e8e6bbc7831fe75c26e72298fd | [
"ISC"
] | null | null | null | lib/firmata/protocol/modes.ex | cambrian-era/firmata | 77cccf65349d75e8e6bbc7831fe75c26e72298fd | [
"ISC"
] | null | null | null | lib/firmata/protocol/modes.ex | cambrian-era/firmata | 77cccf65349d75e8e6bbc7831fe75c26e72298fd | [
"ISC"
] | null | null | null | defmodule Firmata.Protocol.Modes do
defmacro __using__(_) do
quote location: :keep do
@input 0x00
@output 0x01
@analog 0x02
@pwm 0x03
@servo 0x04
@shift 0x05
@i2c 0x06
@onewire 0x07
@stepper 0x08
@serial 0x0A
@ignore 0x7F
@ping_read 0x75
... | 16.552632 | 35 | 0.476948 |
74e71846c9de6762cdfbc8d557ed67ad4c3e2b40 | 3,600 | ex | Elixir | lib/aoc/day_10.ex | CraigCottingham/advent-of-code-2019 | 76a1545e4cca14fe1e9e0de475de253170da1645 | [
"Apache-2.0"
] | null | null | null | lib/aoc/day_10.ex | CraigCottingham/advent-of-code-2019 | 76a1545e4cca14fe1e9e0de475de253170da1645 | [
"Apache-2.0"
] | null | null | null | lib/aoc/day_10.ex | CraigCottingham/advent-of-code-2019 | 76a1545e4cca14fe1e9e0de475de253170da1645 | [
"Apache-2.0"
] | null | null | null | defmodule AoC.Day10 do
@moduledoc false
def part_1 do
"data/day10-input.txt"
|> File.stream!()
|> Enum.map(&String.trim/1)
|> AoC.Day10.max_detected()
|> elem(1)
end
def part_2 do
map_data =
"data/day10-input.txt"
|> File.stream!()
|> Enum.map(&String.trim/1)
{ba... | 27.480916 | 88 | 0.590278 |
74e7901178d86e7d23e40a1ac413761231c67cd1 | 5,091 | ex | Elixir | largesort_shared/lib/cli.ex | Maultasche/ElixirLargeSort | 31f8be646309105c8c0dfcda33ab6b3d7b77235a | [
"MIT"
] | 2 | 2020-05-12T15:55:13.000Z | 2020-11-13T16:53:00.000Z | largesort_shared/lib/cli.ex | Maultasche/ElixirLargeSort | 31f8be646309105c8c0dfcda33ab6b3d7b77235a | [
"MIT"
] | null | null | null | largesort_shared/lib/cli.ex | Maultasche/ElixirLargeSort | 31f8be646309105c8c0dfcda33ab6b3d7b77235a | [
"MIT"
] | null | null | null | defmodule LargeSort.Shared.CLI do
@moduledoc """
Contains CLI functionality that can be reused in multiple projects
"""
@doc """
Measures how long it takes for a function to complete and returns the amount
# of time in milliseconds
## Parameters
- function: The function to be run and measured
## R... | 35.354167 | 100 | 0.726183 |
74e79433c4c69fa26875916afb6d31e015a51df0 | 5,921 | exs | Elixir | test/lob/letter_test.exs | chase-adams/lob-elixir | c96c663244b130787a3187486c6590256022cf42 | [
"MIT"
] | null | null | null | test/lob/letter_test.exs | chase-adams/lob-elixir | c96c663244b130787a3187486c6590256022cf42 | [
"MIT"
] | null | null | null | test/lob/letter_test.exs | chase-adams/lob-elixir | c96c663244b130787a3187486c6590256022cf42 | [
"MIT"
] | null | null | null | defmodule Lob.LetterTest do
use ExUnit.Case
alias Lob.Address
alias Lob.Letter
setup do
sample_address = %{
name: "TestAddress",
email: "test@test.com",
address_line1: "185 Berry Street",
address_line2: "Suite 6100",
address_city: "San Francisco",
address_state: "CA",
... | 31 | 124 | 0.627597 |
74e7a09ce4beb87c97d974bbdc816afcf1d83aab | 1,143 | exs | Elixir | config/config.exs | kirilkoroves/phoenix_microsoftbot | e86cf48e32c6192a4267632d7a066958497d0e42 | [
"MIT"
] | 3 | 2016-05-11T10:48:47.000Z | 2017-11-21T19:25:22.000Z | config/config.exs | kirilkoroves/phoenix_microsoftbot | e86cf48e32c6192a4267632d7a066958497d0e42 | [
"MIT"
] | 2 | 2016-12-22T11:28:08.000Z | 2017-01-03T18:26:57.000Z | config/config.exs | kirilkoroves/phoenix_microsoftbot | e86cf48e32c6192a4267632d7a066958497d0e42 | [
"MIT"
] | 6 | 2016-09-16T06:42:47.000Z | 2020-11-27T22:05:00.000Z | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on this project, this
# file won't be loaded nor affect the paren... | 36.870968 | 73 | 0.75678 |
74e7a5b3392cb342d0134e1f6c906bb57ac58ad3 | 748 | ex | Elixir | lib/radiator_web/gettext.ex | bhtabor/radiator | 39c137a18d36d6f418f9d1ffb7aa2c99011d66cf | [
"MIT"
] | 92 | 2019-01-03T11:46:23.000Z | 2022-02-19T21:28:44.000Z | lib/radiator_web/gettext.ex | bhtabor/radiator | 39c137a18d36d6f418f9d1ffb7aa2c99011d66cf | [
"MIT"
] | 350 | 2019-04-11T07:55:51.000Z | 2021-08-03T11:19:05.000Z | lib/radiator_web/gettext.ex | bhtabor/radiator | 39c137a18d36d6f418f9d1ffb7aa2c99011d66cf | [
"MIT"
] | 10 | 2019-04-18T12:47:27.000Z | 2022-01-25T20:49:15.000Z | defmodule RadiatorWeb.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 RadiatorWeb.Gettext
# Simple translation
gettext("Here is... | 28.769231 | 72 | 0.683155 |
74e7b3a7e770cf059d4a14a7373d6d3bee74b27f | 1,219 | ex | Elixir | test/support/conn_case.ex | christhekeele/ex_venture | 4f4b329f50a133e219969f9823144a4cb9bf738d | [
"MIT"
] | 610 | 2017-08-09T15:20:25.000Z | 2022-03-27T15:49:07.000Z | test/support/conn_case.ex | christhekeele/ex_venture | 4f4b329f50a133e219969f9823144a4cb9bf738d | [
"MIT"
] | 69 | 2017-09-23T04:02:30.000Z | 2022-03-19T21:08:21.000Z | test/support/conn_case.ex | christhekeele/ex_venture | 4f4b329f50a133e219969f9823144a4cb9bf738d | [
"MIT"
] | 85 | 2017-09-23T04:07:11.000Z | 2021-11-20T06:44:56.000Z | defmodule Web.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 data structures and query the data layer.
Finally, if the test ... | 27.704545 | 71 | 0.719442 |
74e7d8250ec1129c37f185545815e3e0388ae4b2 | 4,165 | ex | Elixir | clients/data_labeling/lib/google_api/data_labeling/v1beta1/model/google_cloud_datalabeling_v1beta1_human_annotation_config.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_human_annotation_config.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_human_annotation_config.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... | 54.802632 | 375 | 0.72533 |
74e818be10cb5119809cfd6eca7ef22b8dda48f9 | 188 | ex | Elixir | instrumentation/opentelemetry_ecto/test/support/test_repo.ex | raphaklaus/opentelemetry-erlang-contrib | b4046eb07395c1751f3a222982720c682a0339fa | [
"Apache-2.0"
] | 24 | 2021-05-07T18:37:11.000Z | 2022-03-13T06:21:00.000Z | instrumentation/opentelemetry_ecto/test/support/test_repo.ex | raphaklaus/opentelemetry-erlang-contrib | b4046eb07395c1751f3a222982720c682a0339fa | [
"Apache-2.0"
] | 42 | 2021-05-10T20:19:22.000Z | 2022-03-31T17:48:13.000Z | instrumentation/opentelemetry_ecto/test/support/test_repo.ex | raphaklaus/opentelemetry-erlang-contrib | b4046eb07395c1751f3a222982720c682a0339fa | [
"Apache-2.0"
] | 19 | 2020-04-06T15:11:42.000Z | 2021-09-28T21:51:14.000Z | defmodule OpentelemetryEcto.TestRepo do
use Ecto.Repo,
otp_app: :opentelemetry_ecto,
adapter: Ecto.Adapters.Postgres,
telemetry_prefix: [:opentelemetry_ecto, :test_repo]
end
| 26.857143 | 55 | 0.771277 |
74e82360faca3cbf192578fc7f542563626d887c | 6,439 | ex | Elixir | lib/joq/retry.ex | FelixKiunke/joq | aa71b20b6a385eb80a06045b28d19aad2d697ade | [
"Unlicense",
"MIT"
] | null | null | null | lib/joq/retry.ex | FelixKiunke/joq | aa71b20b6a385eb80a06045b28d19aad2d697ade | [
"Unlicense",
"MIT"
] | 2 | 2017-01-20T17:39:37.000Z | 2017-01-20T17:40:49.000Z | lib/joq/retry.ex | FelixKiunke/joq | aa71b20b6a385eb80a06045b28d19aad2d697ade | [
"Unlicense",
"MIT"
] | null | null | null | defmodule Joq.Retry do
@moduledoc """
Handles configuration for automatic retries of failed jobs.
Retry configs can be specified at three levels:
* In the global configuration, e.g. `config :joq, retry: [max_attempts: 3]`
* Per worker module, e.g. `use Joq.Worker, retry: {:static, 250}`
* Per job, e... | 37.876471 | 80 | 0.662525 |
74e82a1e3088201f6517c706eb91b2baff5fb3d7 | 533 | ex | Elixir | lib/meeseeks/selector/combinator/descendants.ex | RichMorin/meeseeks | d52a15a0b78acfc4d7b979d1df6e146482dc3a10 | [
"Apache-2.0",
"MIT"
] | 291 | 2017-03-27T15:53:36.000Z | 2022-03-14T23:01:42.000Z | lib/meeseeks/selector/combinator/descendants.ex | RichMorin/meeseeks | d52a15a0b78acfc4d7b979d1df6e146482dc3a10 | [
"Apache-2.0",
"MIT"
] | 70 | 2017-03-30T23:32:34.000Z | 2021-06-27T06:26:28.000Z | lib/meeseeks/selector/combinator/descendants.ex | RichMorin/meeseeks | d52a15a0b78acfc4d7b979d1df6e146482dc3a10 | [
"Apache-2.0",
"MIT"
] | 23 | 2017-06-18T10:29:04.000Z | 2021-11-04T13:08:12.000Z | defmodule Meeseeks.Selector.Combinator.Descendants do
@moduledoc false
use Meeseeks.Selector.Combinator
alias Meeseeks.Document
defstruct selector: nil
def next(_combinator, %Document.Element{children: []}, _document) do
nil
end
def next(_combinator, %Document.Element{} = element, document) do
... | 21.32 | 70 | 0.72045 |
74e848fbe042ffe26e6063d7ab4e3d0c4f535624 | 1,837 | exs | Elixir | snippets/radius.exs | sgeos/simplex_noise | b2fe2da0436d8e824bb398c39170c7ca44d9b215 | [
"CC0-1.0"
] | 7 | 2016-09-06T23:15:19.000Z | 2020-11-12T13:59:00.000Z | snippets/radius.exs | sgeos/simplex_noise | b2fe2da0436d8e824bb398c39170c7ca44d9b215 | [
"CC0-1.0"
] | null | null | null | snippets/radius.exs | sgeos/simplex_noise | b2fe2da0436d8e824bb398c39170c7ca44d9b215 | [
"CC0-1.0"
] | 1 | 2019-10-28T18:53:34.000Z | 2019-10-28T18:53:34.000Z | min_dimensions=1
max_dimensions=10
# In 2D, we have two 2-simplices (triangles), OAL and OBL.
# O is the origin of the unit hypercube and simplices it contains.
# L is the last point, also shared by all simplices.
#
# In simplicial grid space it looks like this:
#
# A---L
# | /|
# |/ |
# O---B
#
# O = [0.0, 0.0]
# ... | 30.114754 | 91 | 0.65215 |
74e8551dda3d1c59d7f4d37731b81650c3520844 | 1,570 | ex | Elixir | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_cloud_storage_path.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_cloud_storage_path.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_cloud_storage_path.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 ... | 32.708333 | 120 | 0.743312 |
74e8893b7a39b8e349c12311edbee89f6de1ebed | 96 | exs | Elixir | elixir/samples/kv_umbrella/apps/kv_server/test/command_test.exs | afronski/playground-erlang | 6ac4b58b2fd717260c22a33284547d44a9b5038e | [
"MIT"
] | 2 | 2015-12-09T02:16:51.000Z | 2021-07-26T22:53:43.000Z | elixir/samples/kv_umbrella/apps/kv_server/test/command_test.exs | afronski/playground-erlang | 6ac4b58b2fd717260c22a33284547d44a9b5038e | [
"MIT"
] | null | null | null | elixir/samples/kv_umbrella/apps/kv_server/test/command_test.exs | afronski/playground-erlang | 6ac4b58b2fd717260c22a33284547d44a9b5038e | [
"MIT"
] | 1 | 2016-05-08T18:40:31.000Z | 2016-05-08T18:40:31.000Z | defmodule KVServer.CommandTest do
use ExUnit.Case, async: true
doctest KVServer.Command
end | 19.2 | 33 | 0.802083 |
74e897c6e52ff050dd674f8aa8c97bc3347f5ede | 109 | exs | Elixir | test/repository/account_repository_test.exs | JVZELLER/sistema-financeiro | 98ed39019219f5c0065912fe3be2f9e33e10cf41 | [
"MIT"
] | 2 | 2020-04-01T02:35:59.000Z | 2021-07-26T05:21:01.000Z | test/repository/account_repository_test.exs | JVZELLER/sistema-financeiro | 98ed39019219f5c0065912fe3be2f9e33e10cf41 | [
"MIT"
] | null | null | null | test/repository/account_repository_test.exs | JVZELLER/sistema-financeiro | 98ed39019219f5c0065912fe3be2f9e33e10cf41 | [
"MIT"
] | null | null | null | defmodule AccountRepositoryTest do
use ExUnit.Case, async: true
doctest Repository.AccountRepository
end
| 21.8 | 38 | 0.834862 |
74e8a217ed30d74e103aed68637a0c2c09d1ac9d | 644 | ex | Elixir | lib/web/controllers/admin/user_controller.ex | oestrich/exventure | 8e8062f9411656f4ec49cc2c35a1e4a9dd5d4190 | [
"MIT"
] | 610 | 2017-08-09T15:20:25.000Z | 2022-03-27T15:49:07.000Z | lib/web/controllers/admin/user_controller.ex | oestrich/ex_mud | 8e8062f9411656f4ec49cc2c35a1e4a9dd5d4190 | [
"MIT"
] | 69 | 2017-09-23T04:02:30.000Z | 2022-03-19T21:08:21.000Z | lib/web/controllers/admin/user_controller.ex | oestrich/ex_mud | 8e8062f9411656f4ec49cc2c35a1e4a9dd5d4190 | [
"MIT"
] | 85 | 2017-09-23T04:07:11.000Z | 2021-11-20T06:44:56.000Z | defmodule Web.Admin.UserController do
use Web, :controller
alias ExVenture.Users
plug(Web.Plugs.ActiveTab, tab: :users)
plug(Web.Plugs.FetchPage when action in [:index])
def index(conn, _params) do
%{page: page, per: per} = conn.assigns
%{page: users, pagination: pagination} = Users.all(page: page,... | 23 | 76 | 0.631988 |
74e8accae0229df0b9e7ea457b427919238f5b55 | 7,562 | exs | Elixir | test/lib/absinthe/phase/document/validation/no_undefined_variables_test.exs | bruce/absinthe | 19b63d3aaa9fb75aad01ffd5e91d89e0b30d7f91 | [
"MIT"
] | 3 | 2017-06-22T16:33:58.000Z | 2021-07-07T15:21:09.000Z | test/lib/absinthe/phase/document/validation/no_undefined_variables_test.exs | bruce/absinthe | 19b63d3aaa9fb75aad01ffd5e91d89e0b30d7f91 | [
"MIT"
] | null | null | null | test/lib/absinthe/phase/document/validation/no_undefined_variables_test.exs | bruce/absinthe | 19b63d3aaa9fb75aad01ffd5e91d89e0b30d7f91 | [
"MIT"
] | null | null | null | defmodule Absinthe.Phase.Document.Validation.NoUndefinedVariablesTest do
use Absinthe.Case, async: true
@rule Absinthe.Phase.Document.Validation.NoUndefinedVariables
use Support.Harness.Validation
alias Absinthe.Blueprint
defp undefined_variable(name, variable_line, operation_name, operation_line) do
b... | 21.241573 | 81 | 0.420656 |
74e8bd27b32aafab1c73e9b618aa90072ea6ce97 | 164 | exs | Elixir | crackingthecodinginterview/techniques/01_primality.exs | nathanchere/HackerRank_Elixir | 607e4ae10d94edb20296c8979179648af4af3ca6 | [
"MIT"
] | 2 | 2016-09-20T11:56:33.000Z | 2016-10-20T20:11:04.000Z | crackingthecodinginterview/techniques/01_primality.exs | nathanchere/HackerRank_Elixir | 607e4ae10d94edb20296c8979179648af4af3ca6 | [
"MIT"
] | null | null | null | crackingthecodinginterview/techniques/01_primality.exs | nathanchere/HackerRank_Elixir | 607e4ae10d94edb20296c8979179648af4af3ca6 | [
"MIT"
] | null | null | null | # HackerRank "Cracking The Coding Interview" - Techniques/Concepts (Time Complexity) - Primality
defmodule Solution do
def main() do
end
end
Solution.main()
| 16.4 | 96 | 0.75 |
74e8ceec1080e55bcfaeeb351dabeeddd3368bc9 | 1,147 | ex | Elixir | lib/dev_quotes/adapters/dev_quotes/stackoverflow_adapter.ex | renuo/dev-quotes | dcb187c82697c756f19c40bbe84b0555eda6ae86 | [
"MIT"
] | null | null | null | lib/dev_quotes/adapters/dev_quotes/stackoverflow_adapter.ex | renuo/dev-quotes | dcb187c82697c756f19c40bbe84b0555eda6ae86 | [
"MIT"
] | null | null | null | lib/dev_quotes/adapters/dev_quotes/stackoverflow_adapter.ex | renuo/dev-quotes | dcb187c82697c756f19c40bbe84b0555eda6ae86 | [
"MIT"
] | null | null | null | defmodule DevQuotes.StackoverflowAdapter do
@moduledoc false
def resolve(stackoverflow_id) do
questions(stackoverflow_id) ++ answers(stackoverflow_id)
end
defp user(stackoverflow_id) do
List.first(get("users/#{stackoverflow_id}", %{})["items"])
end
defp answers(stackoverflow_id) do
get("users... | 34.757576 | 119 | 0.645161 |
74e8d1d0a661fc6d13caaf8f71d5c89a009240ed | 833 | ex | Elixir | lib/adyen_checkout_ex/model/klarna_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/klarna_details.ex | rsystem-se/adyen_checkout_ex | 4210f1c7150152e81f350dc6ca55aeb19665b85b | [
"MIT"
] | null | null | null | lib/adyen_checkout_ex/model/klarna_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.KlarnaDetails do
@moduledoc """
"""
@derive [Poison.Encoder]
defstruct [
:"billingAddress",
:"deliveryAddres... | 23.138889 | 91 | 0.667467 |
74e8d914fcf0a00d47fa0e2b1f37b3ac28047d80 | 1,992 | ex | Elixir | lib/ex_json_schema/validator/format.ex | elliesterner/ex_json_schema | b09afbf7da68aa6d134c47877fa5bbf7654bde73 | [
"MIT"
] | null | null | null | lib/ex_json_schema/validator/format.ex | elliesterner/ex_json_schema | b09afbf7da68aa6d134c47877fa5bbf7654bde73 | [
"MIT"
] | 1 | 2019-09-24T17:50:02.000Z | 2019-09-24T23:05:46.000Z | lib/ex_json_schema/validator/format.ex | elliesterner/ex_json_schema | b09afbf7da68aa6d134c47877fa5bbf7654bde73 | [
"MIT"
] | 1 | 2019-07-16T19:13:21.000Z | 2019-07-16T19:13:21.000Z | defmodule ExJsonSchema.Validator.Format do
alias ExJsonSchema.Validator
@date_time_regex ~r/^(-?(?:[1-9][0-9]*)?[0-9]{4})-(1[0-2]|0[1-9])-(3[01]|0[1-9]|[12][0-9])T(2[0-3]|[01][0-9]):([0-5][0-9]):([0-5][0-9])(\.[0-9]+)?(Z|[+-](?:2[0-3]|[01][0-9]):[0-5][0-9])?$/
@email_regex ~r<^[\w!#$%&'*+/=?`{|}~^-]+(?:\.[\w!#$%... | 41.5 | 195 | 0.574297 |
74e8db57e2a6129fa46c86c7e95bf8b0d94d8764 | 1,245 | ex | Elixir | lib/new_relixir/instrumenters/plug.ex | nikhilbelchada/new-relixir | 6595b7ef713617e4c69ff414371c01c0e168a706 | [
"MIT"
] | 192 | 2016-03-18T23:58:14.000Z | 2022-02-04T13:41:32.000Z | lib/new_relixir/instrumenters/plug.ex | nikhilbelchada/new-relixir | 6595b7ef713617e4c69ff414371c01c0e168a706 | [
"MIT"
] | 53 | 2016-05-06T17:57:06.000Z | 2019-01-25T21:11:52.000Z | lib/new_relixir/instrumenters/plug.ex | nikhilbelchada/new-relixir | 6595b7ef713617e4c69ff414371c01c0e168a706 | [
"MIT"
] | 55 | 2016-04-29T09:45:36.000Z | 2020-05-27T23:35:04.000Z | defmodule NewRelixir.Instrumenters.Plug do
@moduledoc """
New Relic instrumenter for raw Plug endpoints.
To start recording, attach `plug NewRelixir.Instrumenters.Plug` at the
beginning of your pipeline:
```
defmodule MyApp.PlugRouter do
use Plug.Router
plug NewRelixir.Instrumenters.Plug
plu... | 21.465517 | 90 | 0.698795 |
74e8e7a2f4bcb268c813f836a3244baeee1bf5e7 | 250 | ex | Elixir | lib/atys/behaviours/key_value_store.ex | AtysDev/atys | ea5c7c6fadc6dcdac038bb3ed1bf4f6f0c725525 | [
"MIT"
] | null | null | null | lib/atys/behaviours/key_value_store.ex | AtysDev/atys | ea5c7c6fadc6dcdac038bb3ed1bf4f6f0c725525 | [
"MIT"
] | null | null | null | lib/atys/behaviours/key_value_store.ex | AtysDev/atys | ea5c7c6fadc6dcdac038bb3ed1bf4f6f0c725525 | [
"MIT"
] | null | null | null | defmodule Atys.Behaviours.KeyValueStore do
@type key :: String.t()
@type value :: String.t()
@type context :: term
@callback get(context, key) :: {:ok, value} | {:error, term}
@callback put(context, key, value) :: :ok | {:error, term}
end
| 27.777778 | 62 | 0.64 |
74e8fb736308d6025c272d9da7ea76696d9d897a | 1,083 | ex | Elixir | test/support/web/web.ex | Gamecode-HQ/drab | dfbe73c0675831f42829f0f3f7fe12d47a78badc | [
"MIT"
] | 933 | 2017-01-14T13:47:37.000Z | 2022-03-21T18:14:41.000Z | test/support/web/web.ex | Gamecode-HQ/drab | dfbe73c0675831f42829f0f3f7fe12d47a78badc | [
"MIT"
] | 189 | 2017-01-15T18:35:06.000Z | 2022-01-24T17:41:22.000Z | test/support/web/web.ex | Gamecode-HQ/drab | dfbe73c0675831f42829f0f3f7fe12d47a78badc | [
"MIT"
] | 54 | 2017-01-15T18:10:48.000Z | 2021-02-06T17:21:44.000Z | defmodule DrabTestApp.Web do
@moduledoc false
def model do
quote do
# Define common model functionality
end
end
def controller do
quote do
use Phoenix.Controller
import DrabTestApp.Router.Helpers
import DrabTestApp.Gettext
end
end
def view do
quote do
us... | 19.690909 | 88 | 0.669437 |
74e9216e1eb82e8a725dccd10618e5e787bc9ffe | 598 | exs | Elixir | test/red_potion/web/views/error_view_test.exs | mvdwg/red_potion | 3026b13d80d9157a598b08e959beb5e56c6f9ff9 | [
"MIT"
] | null | null | null | test/red_potion/web/views/error_view_test.exs | mvdwg/red_potion | 3026b13d80d9157a598b08e959beb5e56c6f9ff9 | [
"MIT"
] | null | null | null | test/red_potion/web/views/error_view_test.exs | mvdwg/red_potion | 3026b13d80d9157a598b08e959beb5e56c6f9ff9 | [
"MIT"
] | null | null | null | defmodule RedPotion.Web.ErrorViewTest do
use RedPotion.Web.ConnCase, async: true
# Bring render/3 and render_to_string/3 for testing custom views
import Phoenix.View
test "renders 404.html" do
assert render_to_string(RedPotion.Web.ErrorView, "404.html", []) ==
"Page not found"
end
test "re... | 27.181818 | 71 | 0.683946 |
74e92b699d16c926a5c5f90c4c2a91cf2cf8ef0e | 826 | ex | Elixir | apps/definition_dictionary/lib/dictionary/type/integer.ex | rucker/hindsight | 876a5d344c5d8eebbea37684ee07e0a91e4430f0 | [
"Apache-2.0"
] | null | null | null | apps/definition_dictionary/lib/dictionary/type/integer.ex | rucker/hindsight | 876a5d344c5d8eebbea37684ee07e0a91e4430f0 | [
"Apache-2.0"
] | null | null | null | apps/definition_dictionary/lib/dictionary/type/integer.ex | rucker/hindsight | 876a5d344c5d8eebbea37684ee07e0a91e4430f0 | [
"Apache-2.0"
] | null | null | null | defmodule Dictionary.Type.Integer do
use Definition, schema: Dictionary.Type.Integer.V1
use Dictionary.JsonEncoder
defstruct version: 1,
name: nil,
description: ""
defimpl Dictionary.Type.Normalizer, for: __MODULE__ do
def normalize(_field, value) when value in [nil, ""], do: Ok.ok... | 23.6 | 73 | 0.661017 |
74e92dd52c6e39a28115583745edd8aa87acbf4d | 581 | exs | Elixir | config/test.exs | davidsantoso/kaffe | 101fc08dfb788ba74068ec2892663bcfd1ca8c3f | [
"MIT"
] | null | null | null | config/test.exs | davidsantoso/kaffe | 101fc08dfb788ba74068ec2892663bcfd1ca8c3f | [
"MIT"
] | null | null | null | config/test.exs | davidsantoso/kaffe | 101fc08dfb788ba74068ec2892663bcfd1ca8c3f | [
"MIT"
] | null | null | null | use Mix.Config
config :kaffe,
kafka_mod: TestBrod,
group_subscriber_mod: TestBrodGroupSubscriber,
test_partition_count: 32,
consumer: [
endpoints: [kafka: 9092],
topics: ["kaffe-test"],
consumer_group: "kaffe-test-group",
message_handler: SilentMessage,
async_message_ack: false,
offset_... | 24.208333 | 48 | 0.703959 |
74e930343fd05c74b8fa70612b07b2ad02c6007e | 978 | exs | Elixir | samples/run_defaults.exs | gomoripeti/benchee | bd5185bcfdc8320c237959505e63a89d31e044a9 | [
"MIT"
] | 636 | 2016-06-06T07:58:36.000Z | 2019-03-19T15:27:37.000Z | samples/run_defaults.exs | gomoripeti/benchee | bd5185bcfdc8320c237959505e63a89d31e044a9 | [
"MIT"
] | 198 | 2016-06-18T08:19:15.000Z | 2019-03-19T15:32:37.000Z | samples/run_defaults.exs | gomoripeti/benchee | bd5185bcfdc8320c237959505e63a89d31e044a9 | [
"MIT"
] | 43 | 2016-06-08T08:04:30.000Z | 2019-02-13T17:10:24.000Z | list = Enum.to_list(1..10_000)
map_fun = fn i -> [i, i * i] end
Benchee.run(%{
"flat_map" => fn -> Enum.flat_map(list, map_fun) end,
"map.flatten" => fn -> list |> Enum.map(map_fun) |> List.flatten() end
})
# Operating System: Linux
# CPU Information: Intel(R) Core(TM) i7-4790 CPU @ 3.60GHz
# Number of Available ... | 28.764706 | 83 | 0.601227 |
74e94803e61a69550fac515b729364eb6e11627a | 1,144 | exs | Elixir | config/config.exs | Skoda091/dobble-generator | 6dd084d6af55beeac4369772a3cba1be76ec8d41 | [
"MIT"
] | 4 | 2020-04-11T23:00:13.000Z | 2022-02-07T14:51:18.000Z | config/config.exs | Skoda091/dobble-generator | 6dd084d6af55beeac4369772a3cba1be76ec8d41 | [
"MIT"
] | 2 | 2021-03-10T13:32:34.000Z | 2021-05-11T09:27:10.000Z | config/config.exs | Skoda091/dobble-generator | 6dd084d6af55beeac4369772a3cba1be76ec8d41 | [
"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.
# General application configuration
use Mix.Config
config :dobble_generator,
ecto_repos: [DobbleG... | 34.666667 | 86 | 0.783217 |
74e98cdf2f7861deeeaaf6303d7fa9ec9d7f5da3 | 40,190 | ex | Elixir | data/auto_generated/video/695e28731f9a008ea8fab77b48a12dc5.ex | breunigs/veloroute | ac3b1eeb2ef2369c27186a138f6ffd8284652dab | [
"0BSD"
] | 12 | 2018-06-15T10:18:43.000Z | 2022-01-24T12:50:54.000Z | data/auto_generated/video/695e28731f9a008ea8fab77b48a12dc5.ex | breunigs/veloroute | ac3b1eeb2ef2369c27186a138f6ffd8284652dab | [
"0BSD"
] | 15 | 2018-06-21T18:04:12.000Z | 2021-10-16T12:54:39.000Z | data/auto_generated/video/695e28731f9a008ea8fab77b48a12dc5.ex | breunigs/veloroute | ac3b1eeb2ef2369c27186a138f6ffd8284652dab | [
"0BSD"
] | 2 | 2020-03-09T19:21:36.000Z | 2022-01-16T03:29:51.000Z | defmodule(Data.AutoGenerated.Video.Rendered_695e28731f9a008ea8fab77b48a12dc5) do
@moduledoc "#{"Alltagsroute 5: City Nord zur Hamburger Meile"}
AUTOGENERATED. To update this file, run mix velo.videos.generate.
See Video.Rendered for functionality.
"
@behaviour Video.Rendered
@impl Video.Rendered
def(na... | 75.830189 | 81 | 0.70107 |
74e9a32a771a0c6ac5380327661777b0c05d340e | 3,196 | ex | Elixir | clients/big_query/lib/google_api/big_query/v2/model/expr.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/big_query/lib/google_api/big_query/v2/model/expr.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/big_query/lib/google_api/big_query/v2/model/expr.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... | 57.071429 | 1,092 | 0.734355 |
74e9dc3ef11b4b28efc4a54fbed073ec3536ff43 | 13,718 | ex | Elixir | lib/table_rex/renderer/text.ex | mayel/licensir | 75679438cac30cf79c497c3ae7a4d0ce818df530 | [
"MIT"
] | null | null | null | lib/table_rex/renderer/text.ex | mayel/licensir | 75679438cac30cf79c497c3ae7a4d0ce818df530 | [
"MIT"
] | null | null | null | lib/table_rex/renderer/text.ex | mayel/licensir | 75679438cac30cf79c497c3ae7a4d0ce818df530 | [
"MIT"
] | 1 | 2022-01-11T13:58:12.000Z | 2022-01-11T13:58:12.000Z | defmodule TableRex.Renderer.Text do
@moduledoc """
Renderer module which handles outputting ASCII-style tables for display.
"""
alias TableRex.Cell
alias TableRex.Table
alias TableRex.Renderer.Text.Meta
@behaviour TableRex.Renderer
# horizontal_styles: [:all, :header, :frame:, :off]
# vertical_style... | 30.896396 | 101 | 0.660738 |
74ea3969ccbfe9b6258a886e83916a1a2d2ef5a7 | 394 | exs | Elixir | test/delx_test.exs | tlux/delx | 8510f5ae2a6d9ec3886a3feed050ffcfd795937d | [
"MIT"
] | 2 | 2021-02-26T05:46:07.000Z | 2021-04-01T16:43:03.000Z | test/delx_test.exs | tlux/delx | 8510f5ae2a6d9ec3886a3feed050ffcfd795937d | [
"MIT"
] | 1 | 2019-07-28T21:15:47.000Z | 2019-07-28T21:15:47.000Z | test/delx_test.exs | tlux/delx | 8510f5ae2a6d9ec3886a3feed050ffcfd795937d | [
"MIT"
] | null | null | null | defmodule DelxTest do
use ExUnit.Case, async: true
describe "use/2" do
test "raise when :otp_app option missing" do
assert_raise ArgumentError,
"expected otp_app: to be given as argument",
fn ->
defmodule OtpAppMissing do
u... | 24.625 | 63 | 0.5 |
74ea3e9a2a86f64e8561baddef096203c34540a9 | 3,586 | ex | Elixir | lib/x509/test/crl_server.ex | fhunleth/x509 | 24c5fcc42207cc74e1e00a322f4809caf058eb6b | [
"BSD-3-Clause"
] | 75 | 2018-07-02T12:00:57.000Z | 2022-02-07T14:47:56.000Z | lib/x509/test/crl_server.ex | fhunleth/x509 | 24c5fcc42207cc74e1e00a322f4809caf058eb6b | [
"BSD-3-Clause"
] | 30 | 2018-07-04T12:33:01.000Z | 2022-01-14T18:29:00.000Z | lib/x509/test/crl_server.ex | fhunleth/x509 | 24c5fcc42207cc74e1e00a322f4809caf058eb6b | [
"BSD-3-Clause"
] | 12 | 2018-09-21T04:34:02.000Z | 2022-02-28T20:11:13.000Z | defmodule X509.Test.CRLServer do
@moduledoc """
Simple CRL responder for use in test suites.
"""
use GenServer
require Logger
@doc """
Starts a CRL responder.
## Options:
* `:port` - the TCP port to listen on; defaults to 0, meaning an ephemeral
port is selected by the operating system, which m... | 24.731034 | 84 | 0.593698 |
74ea4f3f721368b5bf636557496bf52e1e875081 | 20,375 | ex | Elixir | lib/elixir/lib/version.ex | samgaw/elixir | 92e8263102d95281a5aa7850b747636805f13fc9 | [
"Apache-2.0"
] | 2 | 2021-11-10T01:18:41.000Z | 2021-11-10T01:35:54.000Z | lib/elixir/lib/version.ex | samgaw/elixir | 92e8263102d95281a5aa7850b747636805f13fc9 | [
"Apache-2.0"
] | 1 | 2021-10-21T08:22:30.000Z | 2021-10-21T08:22:30.000Z | lib/elixir/lib/version.ex | samgaw/elixir | 92e8263102d95281a5aa7850b747636805f13fc9 | [
"Apache-2.0"
] | 1 | 2020-12-18T19:20:35.000Z | 2020-12-18T19:20:35.000Z | defmodule Version do
@moduledoc ~S"""
Functions for parsing and matching versions against requirements.
A version is a string in a specific format or a `Version`
generated after parsing via `Version.parse/1`.
Although Elixir projects are not required to follow SemVer,
they must follow the format outlined ... | 30.593093 | 100 | 0.607166 |
74ea583977703e0428485e0f5995ec46b701d9c7 | 1,368 | ex | Elixir | lib/kaffe/config.ex | davidsantoso/kaffe | 101fc08dfb788ba74068ec2892663bcfd1ca8c3f | [
"MIT"
] | null | null | null | lib/kaffe/config.ex | davidsantoso/kaffe | 101fc08dfb788ba74068ec2892663bcfd1ca8c3f | [
"MIT"
] | null | null | null | lib/kaffe/config.ex | davidsantoso/kaffe | 101fc08dfb788ba74068ec2892663bcfd1ca8c3f | [
"MIT"
] | null | null | null | defmodule Kaffe.Config do
def heroku_kafka_endpoints do
"KAFKA_URL"
|> System.get_env
|> heroku_kafka_endpoints
end
def heroku_kafka_endpoints(kafka_url) do
kafka_url
|> String.replace("kafka+ssl://", "")
|> String.replace("kafka://", "")
|> String.split(",")
|> Enum.map(&url_endp... | 20.117647 | 59 | 0.644006 |
74ea5c1cd671858702b488d118e2781294dff2d4 | 2,589 | exs | Elixir | test/rockelivery/orders/update_test.exs | LuizFerK/Rockelivery | 4742d73027bcaa97c2fc7969c8d032edf73a28fd | [
"MIT"
] | null | null | null | test/rockelivery/orders/update_test.exs | LuizFerK/Rockelivery | 4742d73027bcaa97c2fc7969c8d032edf73a28fd | [
"MIT"
] | null | null | null | test/rockelivery/orders/update_test.exs | LuizFerK/Rockelivery | 4742d73027bcaa97c2fc7969c8d032edf73a28fd | [
"MIT"
] | null | null | null | defmodule Rockelivery.Orders.UpdateTest do
use Rockelivery.DataCase, async: true
import Rockelivery.Factory
alias Rockelivery.{Error, Item, Order}
alias Rockelivery.Orders.Update
describe "call/1" do
setup do
order_id = "b925ffac-7a13-43e1-9a0a-64639b140721"
user1_id = "b925ffac-7a13-43e1-9a... | 29.420455 | 98 | 0.598687 |
74ea87ba9616bae88908c3b958fd3867f7e98a29 | 1,878 | ex | Elixir | clients/docs/lib/google_api/docs/v1/model/named_styles_suggestion_state.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/docs/lib/google_api/docs/v1/model/named_styles_suggestion_state.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/docs/lib/google_api/docs/v1/model/named_styles_suggestion_state.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 37.56 | 376 | 0.763578 |
74eab3faa3fe0e37c30cb2cc0c86e9cb36d66343 | 470 | exs | Elixir | mix.exs | andrewaguiar/rpx | 945ff12edc0f64a0c45a15aaa0af65b73e51bb9b | [
"MIT"
] | 1 | 2018-04-24T13:34:16.000Z | 2018-04-24T13:34:16.000Z | mix.exs | andrewaguiar/rpx | 945ff12edc0f64a0c45a15aaa0af65b73e51bb9b | [
"MIT"
] | null | null | null | mix.exs | andrewaguiar/rpx | 945ff12edc0f64a0c45a15aaa0af65b73e51bb9b | [
"MIT"
] | null | null | null | defmodule Rpx.MixProject do
use Mix.Project
def project do
[
app: :rpx,
version: "0.1.0",
elixir: "~> 1.6",
start_permanent: Mix.env() == :prod,
escript: [main_module: Rpx.CLI],
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def appli... | 17.407407 | 59 | 0.582979 |
74eae779a81d16a7ac164817b6812f5aa3f5bce1 | 621 | exs | Elixir | des/mix.exs | icaropires/crypto-lista1 | acecc81d328d223988b3020d5e9359a55131917a | [
"MIT"
] | 2 | 2019-06-28T17:08:04.000Z | 2019-07-06T22:40:53.000Z | des/mix.exs | icaropires/crypto-lista1 | acecc81d328d223988b3020d5e9359a55131917a | [
"MIT"
] | null | null | null | des/mix.exs | icaropires/crypto-lista1 | acecc81d328d223988b3020d5e9359a55131917a | [
"MIT"
] | null | null | null | defmodule Des.MixProject do
use Mix.Project
def project do
[
app: :des,
version: "0.1.0",
elixir: "~> 1.8",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_application... | 20.7 | 87 | 0.563607 |
74eafe9379dffe533eea5b13d4f9f01939a30aeb | 5,906 | exs | Elixir | config/.credo.exs | bamorim/exchema | 4e11136fae6092e0e64870b455fd6a68cf36603c | [
"Apache-2.0"
] | 21 | 2018-01-06T22:33:20.000Z | 2020-02-07T18:49:22.000Z | config/.credo.exs | bamorim/exchema | 4e11136fae6092e0e64870b455fd6a68cf36603c | [
"Apache-2.0"
] | 5 | 2018-02-15T16:39:14.000Z | 2018-11-30T21:06:08.000Z | config/.credo.exs | bamorim/exchema | 4e11136fae6092e0e64870b455fd6a68cf36603c | [
"Apache-2.0"
] | 4 | 2018-05-21T21:26:27.000Z | 2019-04-17T16:45:14.000Z | # This file contains the configuration for Credo and you are probably reading
# this after creating it with `mix credo.gen.config`.
#
# If you find anything wrong or unclear in this file, please report an
# issue on GitHub: https://github.com/rrrene/credo/issues
#
%{
#
# You can have as many configs as you like in ... | 40.176871 | 81 | 0.653742 |
74eb0a173a3241febe20c8c6d0dd956d03c41572 | 317 | ex | Elixir | test/e2e/test/support/channel_case.ex | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 40 | 2022-01-19T20:27:36.000Z | 2022-03-31T18:17:41.000Z | test/e2e/test/support/channel_case.ex | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 42 | 2022-02-03T22:52:43.000Z | 2022-03-26T20:57:32.000Z | test/e2e/test/support/channel_case.ex | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 3 | 2022-02-10T04:00:37.000Z | 2022-03-08T22:07:45.000Z | defmodule HologramE2E.Test.ChannelCase do
use ExUnit.CaseTemplate
using do
quote do
import Phoenix.ChannelTest
import HologramE2E.Test.ChannelCase
import HologramE2E.Test.Helpers
@endpoint HologramE2EWeb.Endpoint
@fixtures_path "#{File.cwd!()}/test/fixtures"
end
end
end
| 21.133333 | 51 | 0.716088 |
74eb59b02981a529558ee046c2306696d445e81f | 702 | ex | Elixir | lib/leetcode/reverse_integer.ex | ornj/leetcode_ex | a2245c6d7eece967fd095c296d7b5b10120632fd | [
"Unlicense"
] | null | null | null | lib/leetcode/reverse_integer.ex | ornj/leetcode_ex | a2245c6d7eece967fd095c296d7b5b10120632fd | [
"Unlicense"
] | null | null | null | lib/leetcode/reverse_integer.ex | ornj/leetcode_ex | a2245c6d7eece967fd095c296d7b5b10120632fd | [
"Unlicense"
] | null | null | null | defmodule Leetcode.ReverseInteger do
@moduledoc """
Given a 32-bit signed integer, reverse digits of an integer.
Example 1:
Input: 123
Output: 321
Example 2:
Input: -123
Output: -321
Example 3:
Input: 120
Output: 21
Note:
Assume we are dealing with an environment which could only store ... | 20.057143 | 86 | 0.675214 |
74eb5d0e7505bfb89828355d5a032df28542f05a | 2,341 | ex | Elixir | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_cx_v3beta1_page_info.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_cx_v3beta1_page_info.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_cx_v3beta1_page_info.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"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... | 41.070175 | 221 | 0.750961 |
74eb6b797f184e9c16872e3dcb61d415a8f53af5 | 1,772 | ex | Elixir | clients/document_ai/lib/google_api/document_ai/v1beta3/model/google_cloud_documentai_v1beta1_document_page_dimension.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/document_ai/lib/google_api/document_ai/v1beta3/model/google_cloud_documentai_v1beta1_document_page_dimension.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/document_ai/lib/google_api/document_ai/v1beta3/model/google_cloud_documentai_v1beta1_document_page_dimension.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... | 30.551724 | 97 | 0.71614 |
74eb71b9121118af12a7d5686f68b4f3330a5975 | 78 | ex | Elixir | lib/find_my_personal_web/views/teacher_view.ex | romenigld/find_my_personal | d3545d29cdf80c6e2a90b0bb784579bbd488120c | [
"MIT"
] | null | null | null | lib/find_my_personal_web/views/teacher_view.ex | romenigld/find_my_personal | d3545d29cdf80c6e2a90b0bb784579bbd488120c | [
"MIT"
] | 11 | 2022-01-12T02:39:42.000Z | 2022-02-09T02:17:04.000Z | lib/find_my_personal_web/views/teacher_view.ex | gissandrogama/find_my_personal | 12f23b37e967949af9f3e511cf1ce684452d8f66 | [
"MIT"
] | null | null | null | defmodule FindMyPersonalWeb.TeacherView do
use FindMyPersonalWeb, :view
end
| 19.5 | 42 | 0.846154 |
74eba37d60b0b44ad405f6b2ea3d2a4693812b77 | 721 | ex | Elixir | lib/cxs_starter_web/gettext.ex | antp/cxs_starter | 349cbd61e561f276b552f95e88e24e01397b8519 | [
"MIT"
] | null | null | null | lib/cxs_starter_web/gettext.ex | antp/cxs_starter | 349cbd61e561f276b552f95e88e24e01397b8519 | [
"MIT"
] | null | null | null | lib/cxs_starter_web/gettext.ex | antp/cxs_starter | 349cbd61e561f276b552f95e88e24e01397b8519 | [
"MIT"
] | null | null | null | defmodule CxsStarterWeb.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 CxsStarterWeb.Gettext
# Simple translation
gettext("Her... | 28.84 | 72 | 0.682386 |
74ebb0716d01cb1c544bfe327aff66501474d48c | 1,200 | ex | Elixir | aoc2019_elixir/apps/day14/lib/reaction.ex | mjm/advent-of-code-2019 | a30599c1cba05d574fb30b6de98acdcec1ddc643 | [
"MIT"
] | 1 | 2019-12-09T07:43:02.000Z | 2019-12-09T07:43:02.000Z | aoc2019_elixir/apps/day14/lib/reaction.ex | mjm/advent-of-code-2019 | a30599c1cba05d574fb30b6de98acdcec1ddc643 | [
"MIT"
] | null | null | null | aoc2019_elixir/apps/day14/lib/reaction.ex | mjm/advent-of-code-2019 | a30599c1cba05d574fb30b6de98acdcec1ddc643 | [
"MIT"
] | null | null | null | defmodule Day14.Reaction do
@moduledoc """
Types and functions for working with individual chemical reactions.
"""
@typedoc """
A reaction that consumes one or more input components and produces some output
component.
"""
@type t :: {list(component), component}
@typedoc """
An input or output to a... | 26.666667 | 84 | 0.641667 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.