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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4aafc3fde22f6e95453493a1e1e2300798eb88c2 | 53,016 | ex | Elixir | lib/aws/generated/ses.ex | smanolloff/aws-elixir | c7cb6577802f5010be7e7b6ccb2c0f3c8c73ea84 | [
"Apache-2.0"
] | null | null | null | lib/aws/generated/ses.ex | smanolloff/aws-elixir | c7cb6577802f5010be7e7b6ccb2c0f3c8c73ea84 | [
"Apache-2.0"
] | null | null | null | lib/aws/generated/ses.ex | smanolloff/aws-elixir | c7cb6577802f5010be7e7b6ccb2c0f3c8c73ea84 | [
"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.SES do
@moduledoc """
Amazon Simple Email Service
This document contains reference information for the [Amazon Simple Email Service](https://aws.amazon.com/ses/) (Amazon SES) API, version 2... | 42.927935 | 192 | 0.753546 |
4aafc8087c3ed78b3e601a0547de3e9c9d370103 | 3,135 | ex | Elixir | lib/observables/combineLatest_var.ex | DriesDeBackker/observables-extended | c4f66384369e8a827337451ba9d10f5c9fc4701c | [
"MIT"
] | 2 | 2019-07-18T12:44:08.000Z | 2019-07-18T13:50:42.000Z | lib/observables/combineLatest_var.ex | DriesDeBackker/observables-extended | c4f66384369e8a827337451ba9d10f5c9fc4701c | [
"MIT"
] | null | null | null | lib/observables/combineLatest_var.ex | DriesDeBackker/observables-extended | c4f66384369e8a827337451ba9d10f5c9fc4701c | [
"MIT"
] | null | null | null | defmodule Observables.Operator.CombineLatestVar do
@moduledoc false
use Observables.GenObservable
alias Observables.Obs
def init([pids, inits, obstp]) do
Logger.debug("CombineLatestVar: #{inspect(self())}")
# Define the index for the next observable.
index = length(inits)
# Create a map that ma... | 46.102941 | 173 | 0.697927 |
4ab0010a6956980c3a706380ee5c4ae652e853e2 | 1,324 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/target_reference.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/compute/lib/google_api/compute/v1/model/target_reference.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/compute/lib/google_api/compute/v1/model/target_reference.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 28.170213 | 74 | 0.728097 |
4ab02d59990624669dc931dd6f485bb5ca129b8c | 565 | ex | Elixir | lib/exq/middleware/manager.ex | JamesFerguson/exq | 4457ea50ad4c8a6a7e127da5acafc130960822bb | [
"Apache-2.0"
] | null | null | null | lib/exq/middleware/manager.ex | JamesFerguson/exq | 4457ea50ad4c8a6a7e127da5acafc130960822bb | [
"Apache-2.0"
] | null | null | null | lib/exq/middleware/manager.ex | JamesFerguson/exq | 4457ea50ad4c8a6a7e127da5acafc130960822bb | [
"Apache-2.0"
] | null | null | null | defmodule Exq.Middleware.Manager do
@behaviour Exq.Middleware.Behaviour
require Logger
alias Exq.Manager.Server, as: Manager
alias Exq.Middleware.Pipeline
def before_work(pipeline) do
pipeline
end
def after_processed_work(pipeline) do
pipeline |> notify
end
def after_failed_work(pipeline) d... | 18.833333 | 56 | 0.713274 |
4ab0348f4dd3ceaf06393b4cd327defe174d6415 | 1,103 | exs | Elixir | mix.exs | frekw/absinthe_relay | 6127fa44f9be825c77ec91127da90172f7c7472b | [
"MIT"
] | null | null | null | mix.exs | frekw/absinthe_relay | 6127fa44f9be825c77ec91127da90172f7c7472b | [
"MIT"
] | null | null | null | mix.exs | frekw/absinthe_relay | 6127fa44f9be825c77ec91127da90172f7c7472b | [
"MIT"
] | null | null | null | defmodule AbsintheRelay.Mixfile do
use Mix.Project
@version "1.4.1"
def project do
[app: :absinthe_relay,
version: @version,
elixir: "~> 1.4",
elixirc_paths: elixirc_paths(Mix.env),
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
package: package(),
do... | 25.068182 | 76 | 0.592928 |
4ab0632794a426fb8c44f7eba13e81073c829461 | 863 | ex | Elixir | lib/erlef/application.ex | RudolfMan/website | dacf833f043e22f8f297a149a7ecce0d2fdb1696 | [
"Apache-2.0"
] | null | null | null | lib/erlef/application.ex | RudolfMan/website | dacf833f043e22f8f297a149a7ecce0d2fdb1696 | [
"Apache-2.0"
] | null | null | null | lib/erlef/application.ex | RudolfMan/website | dacf833f043e22f8f297a149a7ecce0d2fdb1696 | [
"Apache-2.0"
] | null | null | null | defmodule Erlef.Application do
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
use Application
def start(_type, _args) do
# List all child processes to be supervised
children = [
# Start the endpoint when the application starts
... | 28.766667 | 64 | 0.717265 |
4ab06edd89cd85e5c205fc250f5338c2ea15f98d | 2,162 | exs | Elixir | test/livebook_web/channels/js_view_channel_test.exs | howard0su/livebook | 6b7825871338af0ec3f4196ec3e17d2670e6a92c | [
"Apache-2.0"
] | null | null | null | test/livebook_web/channels/js_view_channel_test.exs | howard0su/livebook | 6b7825871338af0ec3f4196ec3e17d2670e6a92c | [
"Apache-2.0"
] | null | null | null | test/livebook_web/channels/js_view_channel_test.exs | howard0su/livebook | 6b7825871338af0ec3f4196ec3e17d2670e6a92c | [
"Apache-2.0"
] | null | null | null | defmodule LivebookWeb.JSViewChannelTest do
use LivebookWeb.ChannelCase, async: true
setup do
session_id = Livebook.Utils.random_node_aware_id()
{:ok, _, socket} =
LivebookWeb.Socket
|> socket()
|> subscribe_and_join(LivebookWeb.JSViewChannel, "js_view", %{
"session_id" => session... | 32.757576 | 97 | 0.575393 |
4ab07a546c07a849735e5aa8f4bc33e31c1c1536 | 5,123 | exs | Elixir | test/schema_test.exs | Elonsoft/arc_ecto | 03990d057b72250a27e9790b8c75fcdce2e15e0d | [
"Apache-2.0"
] | null | null | null | test/schema_test.exs | Elonsoft/arc_ecto | 03990d057b72250a27e9790b8c75fcdce2e15e0d | [
"Apache-2.0"
] | null | null | null | test/schema_test.exs | Elonsoft/arc_ecto | 03990d057b72250a27e9790b8c75fcdce2e15e0d | [
"Apache-2.0"
] | null | null | null | defmodule ArcTest.Ecto.Schema do
use ExUnit.Case, async: false
import Mock
import ExUnit.CaptureLog
defmodule TestUser do
use Ecto.Schema
import Ecto.Changeset
use Arc.Ecto.Schema
schema "users" do
field :first_name, :string
field :avatar, DummyDefinition.Type
end
def chan... | 43.786325 | 216 | 0.657427 |
4ab0b7e219af12427e4922d9a837ba4e795c1040 | 1,911 | exs | Elixir | mix.exs | sergioaugrod/elixir-cassette | 8b48f2732c96878a0bb750732e0e9b57fc66811c | [
"MIT"
] | null | null | null | mix.exs | sergioaugrod/elixir-cassette | 8b48f2732c96878a0bb750732e0e9b57fc66811c | [
"MIT"
] | null | null | null | mix.exs | sergioaugrod/elixir-cassette | 8b48f2732c96878a0bb750732e0e9b57fc66811c | [
"MIT"
] | null | null | null | defmodule Cassette.Mixfile do
use Mix.Project
def version, do: "1.4.1"
def project do
[app: :cassette,
version: version(),
elixir: "~> 1.2",
description: "A CAS client and validation library",
elixirc_paths: elixirc_paths(Mix.env),
package: package(),
docs: [
extras: ["R... | 28.954545 | 78 | 0.547357 |
4ab0bacde850cb341ee95939c87bb865e6cd6f59 | 1,792 | ex | Elixir | clients/admin/lib/google_api/admin/directory_v1/model/asps.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/admin/lib/google_api/admin/directory_v1/model/asps.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/admin/lib/google_api/admin/directory_v1/model/asps.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... | 33.811321 | 145 | 0.704799 |
4ab0ca615b8b1ad053ec88ae8e60b51ebaadb8e1 | 638 | ex | Elixir | lib/elasticsearch_elixir_bulk_processor/bulk/direct_upload.ex | sashman/elasticsearch_elixir_bulk_processor | b44a8c97eee706bb14d477157044b7a9090c05ea | [
"Apache-2.0"
] | 13 | 2020-01-01T10:49:47.000Z | 2022-01-14T22:03:02.000Z | lib/elasticsearch_elixir_bulk_processor/bulk/direct_upload.ex | sashman/elasticsearch_elixir_bulk_processor | b44a8c97eee706bb14d477157044b7a9090c05ea | [
"Apache-2.0"
] | 12 | 2019-10-03T09:01:33.000Z | 2020-11-23T08:54:33.000Z | lib/elasticsearch_elixir_bulk_processor/bulk/direct_upload.ex | sashman/elasticsearch_elixir_bulk_processor | b44a8c97eee706bb14d477157044b7a9090c05ea | [
"Apache-2.0"
] | 3 | 2019-10-08T11:16:17.000Z | 2020-11-21T16:23:26.000Z | defmodule ElasticsearchElixirBulkProcessor.Bulk.DirectUpload do
alias ElasticsearchElixirBulkProcessor.Bulk.{Client, Handlers}
def add_requests(bulk_requests) do
success_fun =
Application.get_env(
:elasticsearch_elixir_bulk_processor,
:success_function,
&Handlers.default_success/1... | 25.52 | 64 | 0.69279 |
4ab0fdcc099bfc28bed3df2ea5ceaf6ca26e4b15 | 2,191 | ex | Elixir | lib/absinthe/execution/input/meta.ex | scrogson/absinthe | aa7e9c83dc10603c72f80e09a60d12495bc1c6b7 | [
"Unlicense"
] | 1 | 2019-05-07T15:05:52.000Z | 2019-05-07T15:05:52.000Z | lib/absinthe/execution/input/meta.ex | scrogson/absinthe | aa7e9c83dc10603c72f80e09a60d12495bc1c6b7 | [
"Unlicense"
] | null | null | null | lib/absinthe/execution/input/meta.ex | scrogson/absinthe | aa7e9c83dc10603c72f80e09a60d12495bc1c6b7 | [
"Unlicense"
] | null | null | null | defmodule Absinthe.Execution.Input.Meta do
@moduledoc false
# Includes common functionality for handling Variables and Arguments
alias Absinthe.Execution
alias Absinthe.Type
defstruct schema: nil,
missing: [],
invalid: [],
deprecated: [],
extra: [],
variables: %{}
def build(%Executio... | 31.3 | 93 | 0.653583 |
4ab1485539f11b2c08fdae5dd656801dcbd80bd0 | 3,581 | exs | Elixir | apps/tai/test/tai/venue_adapters/bitmex/stream/process_auth/messages/update_orders/new_partial_fill_test.exs | yurikoval/tai | 94254b45d22fa0307b01577ff7c629c7280c0295 | [
"MIT"
] | null | null | null | apps/tai/test/tai/venue_adapters/bitmex/stream/process_auth/messages/update_orders/new_partial_fill_test.exs | yurikoval/tai | 94254b45d22fa0307b01577ff7c629c7280c0295 | [
"MIT"
] | 78 | 2020-10-12T06:21:43.000Z | 2022-03-28T09:02:00.000Z | apps/tai/test/tai/venue_adapters/bitmex/stream/process_auth/messages/update_orders/new_partial_fill_test.exs | yurikoval/tai | 94254b45d22fa0307b01577ff7c629c7280c0295 | [
"MIT"
] | null | null | null | defmodule Tai.VenueAdapters.Bitmex.Stream.ProcessAuth.Messages.UpdateOrders.NewPartialFillTest do
use Tai.TestSupport.DataCase, async: false
import Tai.TestSupport.Assertions.Event
alias Tai.VenueAdapters.Bitmex.ClientId
alias Tai.VenueAdapters.Bitmex.Stream.ProcessAuth
alias Tai.Orders.OrderStore
@venue_c... | 32.554545 | 97 | 0.702597 |
4ab1631827d36e252c715479c4023beafc4e9c79 | 1,606 | ex | Elixir | clients/monitoring/lib/google_api/monitoring/v3/model/cloud_endpoints.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/monitoring/lib/google_api/monitoring/v3/model/cloud_endpoints.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/monitoring/lib/google_api/monitoring/v3/model/cloud_endpoints.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 34.170213 | 252 | 0.745953 |
4ab167a0fe81aeae2bfbb186232f148063b6ae95 | 28,946 | ex | Elixir | lib/elixir/lib/calendar/naive_datetime.ex | HarshBalyan/elixir | 266719f7b68abf7d6412d89c7fa09581cbf0a693 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/calendar/naive_datetime.ex | HarshBalyan/elixir | 266719f7b68abf7d6412d89c7fa09581cbf0a693 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/calendar/naive_datetime.ex | HarshBalyan/elixir | 266719f7b68abf7d6412d89c7fa09581cbf0a693 | [
"Apache-2.0"
] | null | null | null | defmodule NaiveDateTime do
@moduledoc """
A NaiveDateTime struct (without a time zone) and functions.
The NaiveDateTime struct contains the fields year, month, day, hour,
minute, second, microsecond and calendar. New naive datetimes can be
built with the `new/2` and `new/7` functions or using the
[`~N`](`K... | 32.744344 | 110 | 0.634215 |
4ab175cec5b3b88bc814292dde6011b12d40e1a0 | 434 | ex | Elixir | lib/jeff/error_checks.ex | smartrent/jeff | 1cd2e418207579c338cdbdcaa331da8e17585b28 | [
"Apache-2.0"
] | null | null | null | lib/jeff/error_checks.ex | smartrent/jeff | 1cd2e418207579c338cdbdcaa331da8e17585b28 | [
"Apache-2.0"
] | null | null | null | lib/jeff/error_checks.ex | smartrent/jeff | 1cd2e418207579c338cdbdcaa331da8e17585b28 | [
"Apache-2.0"
] | null | null | null | defmodule Jeff.ErrorChecks do
@moduledoc false
use Bitwise
@spec crc(binary()) :: integer()
def crc(data) when is_binary(data) do
crc_defn = :cerlc.init(:crc16_aug_ccitt)
:cerlc.calc_crc(data, crc_defn)
end
@spec checksum(binary()) :: integer()
def checksum(data) when is_binary(data) do
<<i... | 19.727273 | 44 | 0.610599 |
4ab1909d5e2765989ed0021623e8b7da0d679405 | 922 | ex | Elixir | apps/bytepack/lib/bytepack/extensions/ecto/validations.ex | dashbitco/bytepack_archive | 79f8e62149d020f2afcc501592ed399f7ce7a60b | [
"Unlicense"
] | 313 | 2020-12-03T17:26:24.000Z | 2022-03-18T09:05:14.000Z | apps/bytepack/lib/bytepack/extensions/ecto/validations.ex | dashbitco/bytepack_archive | 79f8e62149d020f2afcc501592ed399f7ce7a60b | [
"Unlicense"
] | null | null | null | apps/bytepack/lib/bytepack/extensions/ecto/validations.ex | dashbitco/bytepack_archive | 79f8e62149d020f2afcc501592ed399f7ce7a60b | [
"Unlicense"
] | 57 | 2020-12-03T17:41:53.000Z | 2022-03-17T17:28:16.000Z | defmodule Bytepack.Extensions.Ecto.Validations do
import Ecto.Changeset
def validate_email(changeset, field) do
changeset
|> validate_format(field, ~r/^[^\s]+@[^\s]+$/, message: "must have the @ sign and no spaces")
|> validate_length(field, max: 160)
end
def normalize_and_validate_url(changeset, ... | 27.117647 | 97 | 0.663774 |
4ab190c215fdc8a013bd10aeb0f309ac76e50a1b | 2,185 | ex | Elixir | clients/admin/lib/google_api/admin/reports_v1/model/activity_actor.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/admin/lib/google_api/admin/reports_v1/model/activity_actor.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/admin/lib/google_api/admin/reports_v1/model/activity_actor.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... | 39.017857 | 258 | 0.708924 |
4ab194bb9a66d54c2e707d209206ce4f1cf74827 | 8,007 | ex | Elixir | lib/codes/codes_m07.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_m07.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_m07.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | defmodule IcdCode.ICDCode.Codes_M07 do
alias IcdCode.ICDCode
def _M0760 do
%ICDCode{full_code: "M0760",
category_code: "M07",
short_code: "60",
full_name: "Enteropathic arthropathies, unspecified site",
short_name: "Enteropathic arthropathies, unspecified site",
... | 35.90583 | 81 | 0.636818 |
4ab1b58120422e4db75836e980bb8327a009da18 | 528 | ex | Elixir | lib/absinthe/blueprint/input/enum.ex | maartenvanvliet/absinthe | ebe820717200f53756e225b3dffbfefe924a94d3 | [
"MIT"
] | null | null | null | lib/absinthe/blueprint/input/enum.ex | maartenvanvliet/absinthe | ebe820717200f53756e225b3dffbfefe924a94d3 | [
"MIT"
] | 2 | 2020-07-21T05:23:37.000Z | 2020-08-26T04:56:12.000Z | lib/absinthe/blueprint/input/enum.ex | jlgeering/absinthe | a3dbc29640d613928398626ad75a8f03203a1720 | [
"MIT"
] | null | null | null | defmodule Absinthe.Blueprint.Input.Enum do
@moduledoc false
alias Absinthe.{Blueprint, Phase}
@enforce_keys [:value, :source_location]
defstruct [
:value,
:source_location,
# Added by phases
flags: %{},
schema_node: nil,
errors: []
]
@type t :: %__MODULE__{
value: String... | 22 | 65 | 0.604167 |
4ab1cca6fb030c162e89677cf7c250b4f25a6d17 | 1,675 | ex | Elixir | lib/expedia_phx_elm_web.ex | saifelokour/expedia_phx_elm | 2112e58821e4bb994654b4a1882997678c0e7f16 | [
"MIT"
] | null | null | null | lib/expedia_phx_elm_web.ex | saifelokour/expedia_phx_elm | 2112e58821e4bb994654b4a1882997678c0e7f16 | [
"MIT"
] | null | null | null | lib/expedia_phx_elm_web.ex | saifelokour/expedia_phx_elm | 2112e58821e4bb994654b4a1882997678c0e7f16 | [
"MIT"
] | null | null | null | defmodule ExpediaPhxElmWeb do
@moduledoc """
The entrypoint for defining your web interface, such
as controllers, views, channels and so on.
This can be used in your application as:
use ExpediaPhxElmWeb, :controller
use ExpediaPhxElmWeb, :view
The definitions below will be executed for every vi... | 24.632353 | 69 | 0.700299 |
4ab20736d65878b1644597736006b56a983a1837 | 5,722 | exs | Elixir | test/components/markdown_test.exs | davydog187/surface_markdown | de0f3034a979f19e6b34a613199b5b0d124be701 | [
"MIT"
] | 6 | 2021-04-16T23:33:48.000Z | 2022-02-16T19:00:56.000Z | test/components/markdown_test.exs | davydog187/surface_markdown | de0f3034a979f19e6b34a613199b5b0d124be701 | [
"MIT"
] | 4 | 2021-03-30T22:37:08.000Z | 2021-11-25T11:23:51.000Z | test/components/markdown_test.exs | davydog187/surface_markdown | de0f3034a979f19e6b34a613199b5b0d124be701 | [
"MIT"
] | 2 | 2021-11-24T20:27:57.000Z | 2022-03-18T15:35:51.000Z | defmodule Surface.Components.MarkdownTest do
use SurfaceMarkdown.ConnCase, async: true
alias Surface.Components.Markdown
test "translate markdown into HTML" do
html =
render_surface do
~F"""
<#Markdown>
# Head 1
Bold: **bold**
Code: `code`
</#Markd... | 21.674242 | 98 | 0.442153 |
4ab21424c57434aed65ad07b748ea3084e59c3ab | 1,374 | ex | Elixir | lib/booklist_web/views/shared_view.ex | allen-garvey/booklist-phoenix | b3c87713d742b64684c222cd3e5869dc9fbd2bd2 | [
"MIT"
] | null | null | null | lib/booklist_web/views/shared_view.ex | allen-garvey/booklist-phoenix | b3c87713d742b64684c222cd3e5869dc9fbd2bd2 | [
"MIT"
] | 3 | 2020-07-16T14:24:43.000Z | 2021-03-08T23:34:18.000Z | lib/booklist_web/views/shared_view.ex | allen-garvey/booklist-phoenix | b3c87713d742b64684c222cd3e5869dc9fbd2bd2 | [
"MIT"
] | null | null | null | defmodule BooklistWeb.SharedView do
use BooklistWeb, :view
@doc """
Naive implementation of function to pluralize string
"""
def naive_pluralize(singular) do
if String.ends_with? singular, "y" do
String.replace_trailing(singular, "y", "ies")
else
singular <> "s"
end
end
@doc """
Takes da... | 29.869565 | 135 | 0.688501 |
4ab2146f7eade5ad3488bf07585dcb05946ea054 | 2,196 | ex | Elixir | lib/gettext/extractor_agent.ex | wojtekmach/gettext | f7ad21ec372f8359c3222a7f2994697e50542a47 | [
"Apache-2.0"
] | 110 | 2019-09-23T18:58:00.000Z | 2022-03-07T00:27:34.000Z | lib/gettext/extractor_agent.ex | wojtekmach/gettext | f7ad21ec372f8359c3222a7f2994697e50542a47 | [
"Apache-2.0"
] | 93 | 2019-09-08T18:28:28.000Z | 2022-03-31T20:38:59.000Z | deps/gettext/lib/gettext/extractor_agent.ex | adrianomota/blog | ef3b2d2ed54f038368ead8234d76c18983caa75b | [
"MIT"
] | 41 | 2019-09-16T14:17:49.000Z | 2022-03-03T15:11:59.000Z | defmodule Gettext.ExtractorAgent do
@moduledoc false
use Agent
@name __MODULE__
# :translations is a map where keys are Gettext backends and values
# are maps. In these maps, keys are domains and values are maps of
# translation_id => translation.
# :backends is just a list of backends that call `use Ge... | 27.111111 | 95 | 0.663479 |
4ab2303d26cfa0a5f82799319e3708724b32dde7 | 5,114 | ex | Elixir | lib/smppsend/esme_helpers.ex | galina/smppsend | 8ab15487a11b1c968e9f160515025e2c670f0521 | [
"Apache-2.0"
] | null | null | null | lib/smppsend/esme_helpers.ex | galina/smppsend | 8ab15487a11b1c968e9f160515025e2c670f0521 | [
"Apache-2.0"
] | null | null | null | lib/smppsend/esme_helpers.ex | galina/smppsend | 8ab15487a11b1c968e9f160515025e2c670f0521 | [
"Apache-2.0"
] | null | null | null | defmodule SMPPSend.ESMEHelpers do
alias SMPPEX.Pdu
alias SMPPEX.Pdu.Factory
alias SMPPEX.Pdu.PP
alias :timer, as: Timer
require Logger
def connect(host, port, bind_pdu, session_opts \\ [], esme_mod \\ SMPPEX.ESME.Sync) do
Logger.info "Connecting to #{host}:#{port}"
case esme_mod.start_link(host, ... | 34.789116 | 102 | 0.649198 |
4ab2322173c7d6e74e6919d811a1805933f428c8 | 727 | ex | Elixir | lib/httparrot/deflate_handler.ex | qgadrian/httparrot | 5b3409d5b17f1772a1e503ce9da6b7b8390c0537 | [
"MIT"
] | 68 | 2015-01-07T20:29:02.000Z | 2022-03-03T16:44:31.000Z | lib/httparrot/deflate_handler.ex | qgadrian/httparrot | 5b3409d5b17f1772a1e503ce9da6b7b8390c0537 | [
"MIT"
] | 29 | 2015-01-11T05:12:46.000Z | 2021-12-23T13:07:47.000Z | lib/httparrot/deflate_handler.ex | qgadrian/httparrot | 5b3409d5b17f1772a1e503ce9da6b7b8390c0537 | [
"MIT"
] | 29 | 2015-01-08T22:33:15.000Z | 2022-03-16T00:31:31.000Z | defmodule HTTParrot.DeflateHandler do
@moduledoc """
Encode body using deflate encoding
"""
alias HTTParrot.GeneralRequestInfo
use HTTParrot.Cowboy, methods: ~w(GET HEAD OPTIONS)
def content_types_provided(req, state) do
{[{{"application", "json", []}, :get_json}], req, state}
end
def get_json(req... | 25.964286 | 73 | 0.672627 |
4ab2462cba75dc48c29b8001a702f6d70bd435ff | 1,556 | ex | Elixir | demo_backend/lib/demo_server_web/views/error_helpers.ex | jacopofar/godot-multiplayer-phoenix-demo | fef08cffe9ad51d27051b614ef90a8d4257cdcaa | [
"MIT"
] | 7 | 2020-11-12T14:30:30.000Z | 2021-08-03T20:49:53.000Z | demo_backend/lib/demo_server_web/views/error_helpers.ex | jacopofar/godot-multiplayer-phoenix-demo | fef08cffe9ad51d27051b614ef90a8d4257cdcaa | [
"MIT"
] | null | null | null | demo_backend/lib/demo_server_web/views/error_helpers.ex | jacopofar/godot-multiplayer-phoenix-demo | fef08cffe9ad51d27051b614ef90a8d4257cdcaa | [
"MIT"
] | 1 | 2022-01-09T07:25:14.000Z | 2022-01-09T07:25:14.000Z | defmodule DemoServerWeb.ErrorHelpers do
@moduledoc """
Conveniences for translating and building error messages.
"""
use Phoenix.HTML
@doc """
Generates tag for inlined form input errors.
"""
def error_tag(form, field) do
Enum.map(Keyword.get_values(form.errors, field), fn error ->
content_t... | 32.416667 | 79 | 0.667095 |
4ab2799e1c8d949071a84874817fcd96871a9fe5 | 2,277 | ex | Elixir | web/couchdb.ex | mkrogemann/bird_watch | 2ce2d1489b25560d767d6ee8c7824f2c07d211c4 | [
"Apache-2.0"
] | 18 | 2016-02-25T22:03:43.000Z | 2017-10-03T09:19:46.000Z | web/couchdb.ex | mkrogemann/bird_watch | 2ce2d1489b25560d767d6ee8c7824f2c07d211c4 | [
"Apache-2.0"
] | 1 | 2016-03-18T03:41:04.000Z | 2016-03-21T21:02:51.000Z | web/couchdb.ex | mkrogemann/bird_watch | 2ce2d1489b25560d767d6ee8c7824f2c07d211c4 | [
"Apache-2.0"
] | 6 | 2016-05-17T04:40:15.000Z | 2021-08-20T05:39:37.000Z | defmodule BirdWatch.Couchdb do
@database_properties %{
protocol: Application.get_env(:couchdb_connector, :protocol),
hostname: Application.get_env(:couchdb_connector, :hostname),
database: Application.get_env(:couchdb_connector, :database),
port: Application.get_env(:couchdb_connector, :port)
}
... | 27.768293 | 119 | 0.682477 |
4ab2868510bf1a4c7462748a88d30a8e341bb2ee | 529 | ex | Elixir | lib/shopify/oauth/helpers/json.ex | kurt-friedrich/shopify-oauth-elixir | bccac1c34ea35445fb737933a5d075d2972ea0be | [
"MIT"
] | 3 | 2020-01-13T22:36:29.000Z | 2021-12-12T17:59:03.000Z | lib/shopify/oauth/helpers/json.ex | kurt-friedrich/shopify-oauth-elixir | bccac1c34ea35445fb737933a5d075d2972ea0be | [
"MIT"
] | 6 | 2020-04-23T16:20:26.000Z | 2021-08-03T05:47:44.000Z | lib/shopify/oauth/helpers/json.ex | kurt-friedrich/shopify-oauth-elixir | bccac1c34ea35445fb737933a5d075d2972ea0be | [
"MIT"
] | 1 | 2020-04-23T16:29:37.000Z | 2020-04-23T16:29:37.000Z | defmodule Shopify.OAuth.Helpers.JSON do
@moduledoc false
alias Shopify.OAuth.{ Config }
@spec decode(String.t(), Config.t()) :: map
def decode(string, config) do
case config.json_codec.decode(string) do
{ :ok, result } ->
result
{ :error, _reason } ->
%{}
end
end
@spe... | 19.592593 | 45 | 0.567108 |
4ab2c0525ba51f5759b7bee544515b5030ce65eb | 1,854 | ex | Elixir | clients/authorized_buyers_marketplace/lib/google_api/authorized_buyers_marketplace/v1/model/uri_targeting.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/authorized_buyers_marketplace/lib/google_api/authorized_buyers_marketplace/v1/model/uri_targeting.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/authorized_buyers_marketplace/lib/google_api/authorized_buyers_marketplace/v1/model/uri_targeting.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... | 37.08 | 203 | 0.734088 |
4ab2c5c6dff2dd8218bdf855e12b368712b09ca5 | 1,387 | ex | Elixir | svg_parser/lib/svg_parser/coordinate_mapper.ex | cdegroot/uderzo_poncho | af2f416cfae4dbcd41e3e88a86dfeb0fd423ed75 | [
"Apache-2.0"
] | 46 | 2018-05-08T12:06:18.000Z | 2022-03-23T18:30:13.000Z | svg_parser/lib/svg_parser/coordinate_mapper.ex | cdegroot/uderzo_poncho | af2f416cfae4dbcd41e3e88a86dfeb0fd423ed75 | [
"Apache-2.0"
] | 13 | 2018-05-08T11:42:00.000Z | 2018-09-17T22:41:55.000Z | svg_parser/lib/svg_parser/coordinate_mapper.ex | cdegroot/uderzo_poncho | af2f416cfae4dbcd41e3e88a86dfeb0fd423ed75 | [
"Apache-2.0"
] | 4 | 2018-06-06T05:04:00.000Z | 2018-07-13T01:23:31.000Z | defmodule SvgParser.CoordinateMapper do
@moduledoc """
This module helps in mapping SVG coordinates between systems, scaling,
etcetera. At some point, this'll end up just applying a 2D transform,
but KISS for now, we do rotations later.
"""
use SvgParser.Elems
def normalize(%Svg{height: h, width: w} = s... | 28.895833 | 79 | 0.616438 |
4ab2e1892fc0e20487254f1a63834ffcee05007f | 497 | exs | Elixir | phoenix/kth_chat/config/test.exs | Murre3/ID1019 | 8240d07be35843610c6c14a40bcb3ed21b3ea36f | [
"MIT"
] | null | null | null | phoenix/kth_chat/config/test.exs | Murre3/ID1019 | 8240d07be35843610c6c14a40bcb3ed21b3ea36f | [
"MIT"
] | null | null | null | phoenix/kth_chat/config/test.exs | Murre3/ID1019 | 8240d07be35843610c6c14a40bcb3ed21b3ea36f | [
"MIT"
] | null | null | null | use Mix.Config
# We don't run a server during test. If one is required,
# you can enable the server option below.
config :kth_chat, KthChatWeb.Endpoint,
http: [port: 4001],
server: false
# Print only warnings and errors during test
config :logger, level: :warn
# Configure your database
config :kth_chat, KthChat.... | 24.85 | 56 | 0.736419 |
4ab2fadf6d2c58850390a093f4ad421e59d1db54 | 10,698 | exs | Elixir | test/job_queue_test.exs | baron/ecto_job | 8c3ddc90e2e5d9bf08e853a5080b819dd16e1da4 | [
"MIT"
] | null | null | null | test/job_queue_test.exs | baron/ecto_job | 8c3ddc90e2e5d9bf08e853a5080b819dd16e1da4 | [
"MIT"
] | null | null | null | test/job_queue_test.exs | baron/ecto_job | 8c3ddc90e2e5d9bf08e853a5080b819dd16e1da4 | [
"MIT"
] | null | null | null | defmodule EctoJob.JobQueueTest do
# credo:disable-for-this-file
use ExUnit.Case, async: true
alias EctoJob.Test.Repo
require Ecto.Query, as: Query
setup do
:ok = Ecto.Adapters.SQL.Sandbox.checkout(Repo)
end
@default_timeout 300_000
describe "JobQueue __using__ macro" do
test "table_name is s... | 33.223602 | 98 | 0.601701 |
4ab32481732ce65beaeb33029ab859a30d598eca | 1,954 | exs | Elixir | test/application/fetch_test.exs | ityonemo/multiverses | 24b65367b369cc8122d24836816340ff2072c501 | [
"MIT"
] | 4 | 2020-06-27T02:15:42.000Z | 2020-12-21T14:24:42.000Z | test/application/fetch_test.exs | ityonemo/multiverses | 24b65367b369cc8122d24836816340ff2072c501 | [
"MIT"
] | 4 | 2020-06-03T16:51:55.000Z | 2020-09-08T19:28:55.000Z | test/application/fetch_test.exs | ityonemo/multiverses | 24b65367b369cc8122d24836816340ff2072c501 | [
"MIT"
] | 1 | 2020-12-21T14:24:47.000Z | 2020-12-21T14:24:47.000Z | import MultiversesTest.Replicant
defmoduler MultiversesTest.Application.FetchTest do
use ExUnit.Case, async: true
use Multiverses, with: Application
# see test_helper.exs for the :global environment variable
describe "basic Application.fetch_env/2 gets an env variable" do
test "that was set by the global... | 30.53125 | 85 | 0.684237 |
4ab347bd6c07d18370b122592f17ee440cc81463 | 1,357 | ex | Elixir | clients/redis/lib/google_api/redis/v1/model/google_cloud_redis_v1_zone_metadata.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/redis/lib/google_api/redis/v1/model/google_cloud_redis_v1_zone_metadata.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/redis/lib/google_api/redis/v1/model/google_cloud_redis_v1_zone_metadata.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"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.309524 | 103 | 0.771555 |
4ab37ac011b4dcfb6cb97db4d7e0729bfdd150b5 | 1,316 | ex | Elixir | lib/ex_21/application.ex | jparadasb/ex_21 | 897a141afdb0697667a580eada727c8430e61b6d | [
"MIT"
] | null | null | null | lib/ex_21/application.ex | jparadasb/ex_21 | 897a141afdb0697667a580eada727c8430e61b6d | [
"MIT"
] | null | null | null | lib/ex_21/application.ex | jparadasb/ex_21 | 897a141afdb0697667a580eada727c8430e61b6d | [
"MIT"
] | null | null | null | defmodule Ex21.Application do
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
use Application
def start(_type, _args) do
card_values_seed()
Ex21.GameStorage.setup()
children = [
# Start the Ecto repository
Ex21.Repo,
... | 29.244444 | 119 | 0.680851 |
4ab38a29e581c31eebd337bbad5c57707d842455 | 3,806 | ex | Elixir | clients/domains_rdap/lib/google_api/domains_rdap/v1/api/entity.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/domains_rdap/lib/google_api/domains_rdap/v1/api/entity.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/domains_rdap/lib/google_api/domains_rdap/v1/api/entity.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... | 43.25 | 196 | 0.646611 |
4ab394dbebcee38d4496d41d3d914993d20f8a3f | 1,519 | ex | Elixir | clients/cloud_trace/lib/google_api/cloud_trace/v2/model/empty.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/cloud_trace/lib/google_api/cloud_trace/v2/model/empty.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/cloud_trace/lib/google_api/cloud_trace/v2/model/empty.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 36.166667 | 345 | 0.756419 |
4ab39faa407c3d3251b5af561243daa489f1719e | 2,035 | ex | Elixir | clients/fusion_tables/lib/google_api/fusion_tables/v2/model/style_function_gradient.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/fusion_tables/lib/google_api/fusion_tables/v2/model/style_function_gradient.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/fusion_tables/lib/google_api/fusion_tables/v2/model/style_function_gradient.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 38.396226 | 145 | 0.729238 |
4ab3c966bea7e4f6b2059ea33f66d14c2ad1d55a | 3,094 | ex | Elixir | deps/credo/lib/credo/check/refactor/variable_rebinding.ex | BandanaPandey/nary_tree | fb1eeb69e38e43c9f9ffb54297cef52dff5c928d | [
"MIT"
] | 13 | 2018-09-19T21:03:29.000Z | 2022-01-27T04:06:32.000Z | deps/credo/lib/credo/check/refactor/variable_rebinding.ex | BandanaPandey/nary_tree | fb1eeb69e38e43c9f9ffb54297cef52dff5c928d | [
"MIT"
] | 1 | 2020-05-26T04:16:57.000Z | 2020-05-26T04:16:57.000Z | deps/credo/lib/credo/check/refactor/variable_rebinding.ex | BandanaPandey/nary_tree | fb1eeb69e38e43c9f9ffb54297cef52dff5c928d | [
"MIT"
] | 3 | 2020-05-21T04:32:08.000Z | 2021-07-28T05:14:01.000Z | defmodule Credo.Check.Refactor.VariableRebinding do
@moduledoc """
You might want to refrain from rebinding variables.
Although technically fine, rebinding to the same name can lead to less
precise naming.
Consider this example:
def find_a_good_time do
time = MyApp.DateTime.now
time =... | 24.362205 | 75 | 0.642857 |
4ab404b379eb8ebbadb63765fbae0a6ed2da666f | 908 | ex | Elixir | lib/httparrot/delete_cookies_handler.ex | idabmat/httparrot | 1bc15bf4c7330341b36f7dc7d933285cda7bbf67 | [
"MIT"
] | null | null | null | lib/httparrot/delete_cookies_handler.ex | idabmat/httparrot | 1bc15bf4c7330341b36f7dc7d933285cda7bbf67 | [
"MIT"
] | null | null | null | lib/httparrot/delete_cookies_handler.ex | idabmat/httparrot | 1bc15bf4c7330341b36f7dc7d933285cda7bbf67 | [
"MIT"
] | null | null | null | defmodule HTTParrot.DeleteCookiesHandler do
@moduledoc """
Deletes one or more simple cookies.
"""
use HTTParrot.Cowboy, methods: ~w(GET HEAD OPTIONS)
def malformed_request(req, state) do
{qs_vals, req} = :cowboy_req.qs_vals(req)
if Enum.empty?(qs_vals), do: {true, req, state}, else: {false, req, qs_... | 31.310345 | 90 | 0.654185 |
4ab405eca5db28dd0c8772a33f49f775317bda62 | 313 | ex | Elixir | lib/ex_21_web/live/game_live.ex | jparadasb/ex_21 | 897a141afdb0697667a580eada727c8430e61b6d | [
"MIT"
] | null | null | null | lib/ex_21_web/live/game_live.ex | jparadasb/ex_21 | 897a141afdb0697667a580eada727c8430e61b6d | [
"MIT"
] | null | null | null | lib/ex_21_web/live/game_live.ex | jparadasb/ex_21 | 897a141afdb0697667a580eada727c8430e61b6d | [
"MIT"
] | null | null | null | defmodule Ex21Web.GameLive do
use Ex21Web, :live_view
alias Ex21.GamePlay
@impl true
def mount(_params, _session, socket) do
{:ok, assign(socket, game_play: nil)}
end
@impl true
def handle_event("start_game", _, socket) do
{:noreply, assign(socket, game_play: GamePlay.start())}
end
end
| 20.866667 | 59 | 0.699681 |
4ab411c4432a48a7c4f43316f36ccfb570e5fadc | 362 | ex | Elixir | lib/gandalf.ex | pragmaticivan/gandalf | d6f79489104f3b3544247856bb93679f47ec9e0d | [
"Apache-2.0",
"MIT"
] | 1 | 2018-05-01T01:34:56.000Z | 2018-05-01T01:34:56.000Z | lib/gandalf.ex | pragmaticivan/gandalf | d6f79489104f3b3544247856bb93679f47ec9e0d | [
"Apache-2.0",
"MIT"
] | null | null | null | lib/gandalf.ex | pragmaticivan/gandalf | d6f79489104f3b3544247856bb93679f47ec9e0d | [
"Apache-2.0",
"MIT"
] | null | null | null | defmodule Gandalf do
@moduledoc """
Documentation for Gandalf.
"""
use Application
@repo Application.get_env(:gandalf, :repo)
def start(_type, _args) do
import Supervisor.Spec
children = [
supervisor(@repo, [])
]
opts = [strategy: :one_for_one, name: Gandalf.Supervisor]
Superv... | 17.238095 | 61 | 0.665746 |
4ab416f38511a7a61b9ac2c6ecbafc7d36341834 | 3,619 | exs | Elixir | test/ex_oneroster/users/users_test.exs | jrissler/ex_oneroster | cec492117bffc14aec91e2448643682ceeb449e9 | [
"Apache-2.0"
] | 3 | 2018-09-06T11:15:07.000Z | 2021-12-27T15:36:51.000Z | test/ex_oneroster/users/users_test.exs | jrissler/ex_oneroster | cec492117bffc14aec91e2448643682ceeb449e9 | [
"Apache-2.0"
] | null | null | null | test/ex_oneroster/users/users_test.exs | jrissler/ex_oneroster | cec492117bffc14aec91e2448643682ceeb449e9 | [
"Apache-2.0"
] | null | null | null | defmodule ExOneroster.UsersTest do
use ExOneroster.DataCase
alias ExOneroster.Users
describe "users" do
alias ExOneroster.Users.User
test "list_users/0 returns all users" do
user = insert(:user)
assert Users.list_users() == [user |> Repo.preload([:identifiers, :agents, :orgs])]
end
... | 40.211111 | 159 | 0.687759 |
4ab43f76f8a035fe73f3b92120d35190cdcfa64b | 1,071 | ex | Elixir | test/support/conn_case.ex | imsekun/fengen | d24e6583c9aa662a27f8d884b261ec24d4a85807 | [
"MIT"
] | 2 | 2021-05-28T19:33:52.000Z | 2021-05-28T21:10:19.000Z | test/support/conn_case.ex | hsek/fen_gen | d24e6583c9aa662a27f8d884b261ec24d4a85807 | [
"MIT"
] | 20 | 2021-05-12T15:26:50.000Z | 2021-05-29T14:42:47.000Z | test/support/conn_case.ex | imsekun/fengen | d24e6583c9aa662a27f8d884b261ec24d4a85807 | [
"MIT"
] | null | null | null | defmodule FenGenWeb.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... | 28.184211 | 60 | 0.73296 |
4ab44fb6d48657a391e36b8e26d8baa7accd8d64 | 7,503 | ex | Elixir | lib/nerves_hub/console_channel.ex | aadavids/nerves_hub | 504f143381b2cc7c7e76a049febbb590ad5752f1 | [
"Apache-2.0"
] | null | null | null | lib/nerves_hub/console_channel.ex | aadavids/nerves_hub | 504f143381b2cc7c7e76a049febbb590ad5752f1 | [
"Apache-2.0"
] | null | null | null | lib/nerves_hub/console_channel.ex | aadavids/nerves_hub | 504f143381b2cc7c7e76a049febbb590ad5752f1 | [
"Apache-2.0"
] | null | null | null | defmodule NervesHub.ConsoleChannel do
use GenServer
require Logger
@moduledoc """
Wraps IEx.Server setting this process as the group_leader.
This allows tunneling the `io_request`'s over the channel socket.
The remote console ability is disabled by default and requires the
`remote_iex` key to be enabled... | 34.897674 | 100 | 0.678529 |
4ab4783974ed1ce75a6ff59b08dec0c969da325a | 594 | exs | Elixir | 2020/otp/race_condition_bank/mix.exs | herminiotorres/programmer_passport | d1786518a3a5f82471457e0ace41c4c33343739a | [
"MIT"
] | null | null | null | 2020/otp/race_condition_bank/mix.exs | herminiotorres/programmer_passport | d1786518a3a5f82471457e0ace41c4c33343739a | [
"MIT"
] | null | null | null | 2020/otp/race_condition_bank/mix.exs | herminiotorres/programmer_passport | d1786518a3a5f82471457e0ace41c4c33343739a | [
"MIT"
] | null | null | null | defmodule RaceConditionBank.MixProject do
use Mix.Project
def project do
[
app: :race_condition_bank,
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 d... | 20.482759 | 87 | 0.592593 |
4ab4817697bb5a46c211962539875d353899d0e5 | 836 | ex | Elixir | generated-sources/elixir/mojang-authentication/lib/com/github/asyncmc/mojang/authentication/elixir/server/model/reduced_user_data.ex | AsyncMC/Mojang-API-Libs | b01bbd2bce44bfa2b9ed705a128cf4ecda077916 | [
"Apache-2.0"
] | null | null | null | generated-sources/elixir/mojang-authentication/lib/com/github/asyncmc/mojang/authentication/elixir/server/model/reduced_user_data.ex | AsyncMC/Mojang-API-Libs | b01bbd2bce44bfa2b9ed705a128cf4ecda077916 | [
"Apache-2.0"
] | null | null | null | generated-sources/elixir/mojang-authentication/lib/com/github/asyncmc/mojang/authentication/elixir/server/model/reduced_user_data.ex | AsyncMC/Mojang-API-Libs | b01bbd2bce44bfa2b9ed705a128cf4ecda077916 | [
"Apache-2.0"
] | 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 com.github.asyncmc.mojang.authentication.elixir.server.Model.ReducedUserData do
@moduledoc """
"""
@derive [Poison.Encoder]
defstruct [
... | 27.866667 | 131 | 0.727273 |
4ab4a2730f860d32918b2b532903285223ac326c | 415 | ex | Elixir | lib/notified/receivers/email.ex | fremantle-industries/notified | f8566676dbf6b17f85964941ee1cf533c8393890 | [
"MIT"
] | 13 | 2021-05-13T22:29:17.000Z | 2021-11-21T09:57:12.000Z | lib/notified/receivers/email.ex | fremantle-industries/notified | f8566676dbf6b17f85964941ee1cf533c8393890 | [
"MIT"
] | 14 | 2021-09-01T14:01:36.000Z | 2022-03-01T14:02:44.000Z | lib/notified/receivers/email.ex | fremantle-industries/notified | f8566676dbf6b17f85964941ee1cf533c8393890 | [
"MIT"
] | 2 | 2021-05-20T18:03:50.000Z | 2022-01-25T23:07:18.000Z | defmodule Notified.Receivers.Email do
@type t :: %__MODULE__{
addresses: [String.t()]
}
@enforce_keys ~w[addresses]a
defstruct ~w[addresses]a
defimpl Notified.Receiver do
def send(receiver, notification) do
receiver.addresses
|> Enum.each(fn to ->
Notified.Email.base_... | 21.842105 | 51 | 0.636145 |
4ab4aadeae9f49f384ff9965c0d0edf57a7b6631 | 266 | exs | Elixir | test/noted_web/views/layout_view_test.exs | lawik/noted | a51b5d79cf44abfc2463560f83f1a8d65e6af85e | [
"BSD-3-Clause"
] | 28 | 2021-02-20T22:22:49.000Z | 2022-03-24T21:07:39.000Z | test/noted_web/views/layout_view_test.exs | gerhard/noted | c83bfd2e8e2950187268a2e3ba0904ae8a9773e5 | [
"BSD-3-Clause"
] | 5 | 2021-05-06T11:37:11.000Z | 2021-08-31T11:38:14.000Z | test/noted_web/views/layout_view_test.exs | gerhard/noted | c83bfd2e8e2950187268a2e3ba0904ae8a9773e5 | [
"BSD-3-Clause"
] | 7 | 2021-02-24T19:18:28.000Z | 2021-09-13T16:07:08.000Z | defmodule NotedWeb.LayoutViewTest do
use NotedWeb.ConnCase, async: true
# When testing helpers, you may want to import Phoenix.HTML and
# use functions such as safe_to_string() to convert the helper
# result into an HTML string.
# import Phoenix.HTML
end
| 29.555556 | 65 | 0.763158 |
4ab50202a544583d7307c3360d8cfd597f6101e7 | 9,633 | exs | Elixir | test/group_manager/data/item_test.exs | dbeck/groupman_ex | 69231eba468f9e45a7e13b62e717b5fc18f4ff74 | [
"MIT"
] | 1 | 2016-04-12T02:05:30.000Z | 2016-04-12T02:05:30.000Z | test/group_manager/data/item_test.exs | dbeck/groupman_ex | 69231eba468f9e45a7e13b62e717b5fc18f4ff74 | [
"MIT"
] | null | null | null | test/group_manager/data/item_test.exs | dbeck/groupman_ex | 69231eba468f9e45a7e13b62e717b5fc18f4ff74 | [
"MIT"
] | null | null | null | defmodule GroupManager.Data.ItemTest do
use ExUnit.Case
alias GroupManager.Data.Item
alias Chatter.NetID
defp dummy_netid do
NetID.new({1,2,3,4},1)
end
test "basic test for new" do
assert Item.valid?(Item.new(dummy_netid))
end
test "basic test for invalid input" do
assert Item.valid?(nil... | 46.090909 | 98 | 0.690439 |
4ab50aa728f356b6ce26f4b63cd0ef1efd7163c0 | 883 | ex | Elixir | lib/ello_click/affiliate.ex | ello/ello-click | 14ce02f4b99e1aa3ac23cd28f3c8872ec2cab277 | [
"MIT"
] | 3 | 2016-08-03T01:54:04.000Z | 2020-01-13T20:32:20.000Z | lib/ello_click/affiliate.ex | ello/ello-click | 14ce02f4b99e1aa3ac23cd28f3c8872ec2cab277 | [
"MIT"
] | 6 | 2016-07-14T04:16:34.000Z | 2016-08-10T21:06:16.000Z | lib/ello_click/affiliate.ex | ello/ello-click | 14ce02f4b99e1aa3ac23cd28f3c8872ec2cab277 | [
"MIT"
] | null | null | null | defmodule ElloClick.Affiliate do
alias ElloClick.Affiliate.VigLink
@behaviour Plug
def init(opts), do: opts
def call(conn, _opts) do
{:ok, url} = affiliate(conn)
Plug.Conn.put_resp_header(conn, "location", url)
end
defp affiliate(conn) do
conn.assigns.url
|> skip_ello
|> skip_vimeo
... | 27.59375 | 65 | 0.646659 |
4ab5198a7d368a1ee42cd12c6f54b45ae7cdccd4 | 1,408 | exs | Elixir | config/config.exs | rbino/astarte_data_access | d3fa2210fbe3b3d3942a8be10732c0fb6334d048 | [
"Apache-2.0"
] | null | null | null | config/config.exs | rbino/astarte_data_access | d3fa2210fbe3b3d3942a8be10732c0fb6334d048 | [
"Apache-2.0"
] | 47 | 2019-11-18T17:26:35.000Z | 2022-03-29T13:45:20.000Z | config/config.exs | rbino/astarte_data_access | d3fa2210fbe3b3d3942a8be10732c0fb6334d048 | [
"Apache-2.0"
] | 5 | 2018-08-27T13:15:23.000Z | 2021-03-23T15:08:45.000Z | #
# This file is part of Astarte.
#
# Copyright 2017 Ispirata Srl
#
# 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 appl... | 32.744186 | 74 | 0.75142 |
4ab5397dddd4c0443eb346e27d250057681c14a2 | 1,335 | ex | Elixir | examples/example_project/lib/sender.ex | michael-borisov/membrane_ice_plugin | 5175473dbbca57f389da3ac1447e5fa82bc0e8a5 | [
"Apache-2.0"
] | null | null | null | examples/example_project/lib/sender.ex | michael-borisov/membrane_ice_plugin | 5175473dbbca57f389da3ac1447e5fa82bc0e8a5 | [
"Apache-2.0"
] | null | null | null | examples/example_project/lib/sender.ex | michael-borisov/membrane_ice_plugin | 5175473dbbca57f389da3ac1447e5fa82bc0e8a5 | [
"Apache-2.0"
] | null | null | null | defmodule Example.Sender do
use Membrane.Pipeline
require Membrane.Logger
alias Example.Common
alias Membrane.Hackney
@impl true
def handle_init(_) do
children = %{
ice: %Membrane.ICE.Bin{
stream_name: "video",
stun_servers: ["64.233.161.127:19302"],
controlling_mode: tr... | 24.722222 | 92 | 0.64794 |
4ab53be5e7788e746355c1ef2783d2bbb96ec0d5 | 1,175 | ex | Elixir | lib/phoenix_sample/application.ex | gotoeveryone/phoenix_sample | 8e53f1d1a0c9bf37e474755c60d06f3cb578ae7f | [
"MIT"
] | null | null | null | lib/phoenix_sample/application.ex | gotoeveryone/phoenix_sample | 8e53f1d1a0c9bf37e474755c60d06f3cb578ae7f | [
"MIT"
] | null | null | null | lib/phoenix_sample/application.ex | gotoeveryone/phoenix_sample | 8e53f1d1a0c9bf37e474755c60d06f3cb578ae7f | [
"MIT"
] | null | null | null | defmodule PhoenixSample.Application do
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
use Application
@impl true
def start(_type, _args) do
children = [
# Start the App State
PhoenixSample.Count,
# Start the Ecto repositor... | 29.375 | 71 | 0.709787 |
4ab550cd6ad90f013a0c83aa67f5567c61c96d69 | 1,802 | ex | Elixir | clients/books/lib/google_api/books/v1/model/volume_layer_info_layers.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/books/lib/google_api/books/v1/model/volume_layer_info_layers.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/books/lib/google_api/books/v1/model/volume_layer_info_layers.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 35.333333 | 272 | 0.745283 |
4ab55d04a2ad0a1a84386467d3744aeb9ef4b3ed | 2,671 | ex | Elixir | spec/fixtures/mix/deps/earmark/lib/earmark/parser.ex | mttkay/license_scout | dc6997e21af70237bb1636b466aff86dee846929 | [
"ECL-2.0",
"Apache-2.0"
] | 4 | 2017-10-01T18:00:25.000Z | 2022-02-23T18:26:53.000Z | spec/fixtures/mix/deps/earmark/lib/earmark/parser.ex | mttkay/license_scout | dc6997e21af70237bb1636b466aff86dee846929 | [
"ECL-2.0",
"Apache-2.0"
] | 107 | 2016-08-03T18:16:51.000Z | 2021-07-23T08:42:51.000Z | spec/fixtures/mix/deps/earmark/lib/earmark/parser.ex | mttkay/license_scout | dc6997e21af70237bb1636b466aff86dee846929 | [
"ECL-2.0",
"Apache-2.0"
] | 10 | 2017-10-31T16:16:05.000Z | 2022-02-16T10:31:04.000Z | defmodule Earmark.Parser do
alias Earmark.Line
alias Earmark.Block
import Earmark.Message, only: [add_messages: 2]
def parse(text_lines), do: parse(text_lines, %Earmark.Options{}, false)
def parse(text_lines, options = %Earmark.Options{}, recursive) do
[ "" | text_lines ++ [""] ]
|> Line.scan_line... | 34.24359 | 123 | 0.60614 |
4ab5846fe0f3df5a4712da7574ddb4de6b50f5db | 3,131 | exs | Elixir | test/jumubase_web/live/performance_live/new_test.exs | richeterre/jumubase-phoenix | 7584f890af117d496971b5284bf9de798e22266f | [
"MIT"
] | 2 | 2019-01-20T07:03:30.000Z | 2019-04-11T10:20:14.000Z | test/jumubase_web/live/performance_live/new_test.exs | richeterre/jumubase-phoenix | 7584f890af117d496971b5284bf9de798e22266f | [
"MIT"
] | 6 | 2018-09-20T05:52:14.000Z | 2019-04-23T19:27:39.000Z | test/jumubase_web/live/performance_live/new_test.exs | richeterre/jumubase-phoenix | 7584f890af117d496971b5284bf9de798e22266f | [
"MIT"
] | null | null | null | defmodule JumubaseWeb.PerformanceLive.NewTest do
use JumubaseWeb.ConnCase
use Bamboo.Test, shared: true
import Phoenix.LiveViewTest
alias Jumubase.Repo
alias Jumubase.Showtime.Performance
setup config do
contest =
insert(:contest, deadline: Timex.today(), allows_registration: true)
|> with_... | 28.463636 | 109 | 0.65602 |
4ab599ddbefa5bee1c54cf65aec2931ca5d846c5 | 920 | ex | Elixir | lib/custodian/github/client.ex | newaperio/custodian | 6614fa63f5aeb88be82927548522617f3d877faf | [
"MIT"
] | 4 | 2018-01-24T19:58:37.000Z | 2021-09-18T13:08:16.000Z | lib/custodian/github/client.ex | newaperio/custodian | 6614fa63f5aeb88be82927548522617f3d877faf | [
"MIT"
] | 12 | 2017-12-26T21:46:34.000Z | 2019-05-15T17:39:22.000Z | lib/custodian/github/client.ex | newaperio/custodian | 6614fa63f5aeb88be82927548522617f3d877faf | [
"MIT"
] | 1 | 2018-08-28T16:49:05.000Z | 2018-08-28T16:49:05.000Z | defmodule Custodian.Github.Client do
@moduledoc """
Behaviour interface for taking actions on specific repos on GitHub.
Implemented using [Tentacat] in `Custodian.Github.Tentacat.Client`. In tests,
implemented as a mock in Mockcat.
[Tentacat]: https://github.com/edgurgel/tentacat
"""
@doc """
Uses th... | 30.666667 | 79 | 0.728261 |
4ab5b6897086f8fb05646efbd3c43cd3f2f7d6f7 | 17,016 | exs | Elixir | test/xcribe/conn_parser_test.exs | brainn-co/xcribe | 06e66df0ac28d5b3e525f54bc52ed21722701a06 | [
"Apache-2.0"
] | 30 | 2019-12-17T20:09:41.000Z | 2021-01-11T13:58:24.000Z | test/xcribe/conn_parser_test.exs | Finbits/xcribe | 37f4195315e27e415212910f0219c68d96a16d4a | [
"Apache-2.0"
] | 36 | 2019-12-17T20:32:04.000Z | 2020-12-02T17:50:49.000Z | test/xcribe/conn_parser_test.exs | Finbits/xcribe | 37f4195315e27e415212910f0219c68d96a16d4a | [
"Apache-2.0"
] | 3 | 2020-02-21T18:13:59.000Z | 2020-10-20T07:59:05.000Z | defmodule Xcribe.ConnParserTest do
use Xcribe.ConnCase, async: false
alias Plug.Conn
alias Xcribe.{ConnParser, Request, Request.Error}
setup do
Application.put_env(:xcribe, :information_source, Xcribe.Support.Information)
:ok
end
describe "execute/2" do
test "extract request data from an ind... | 36.75162 | 94 | 0.469617 |
4ab5f0eb8fa2dec6a8411299afd936f705824aad | 2,493 | ex | Elixir | clients/run/lib/google_api/run/v1/model/secret_key_selector.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/run/lib/google_api/run/v1/model/secret_key_selector.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/run/lib/google_api/run/v1/model/secret_key_selector.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... | 33.24 | 174 | 0.70718 |
4ab614fb9cf1ad4fe4d12d0d6a314fedbdd029ec | 1,773 | exs | Elixir | integration_test/pg/test_helper.exs | rbishop/ecto | a8a3215c9e2e35f7556f54c8d47d78a3670796d8 | [
"Apache-2.0"
] | null | null | null | integration_test/pg/test_helper.exs | rbishop/ecto | a8a3215c9e2e35f7556f54c8d47d78a3670796d8 | [
"Apache-2.0"
] | null | null | null | integration_test/pg/test_helper.exs | rbishop/ecto | a8a3215c9e2e35f7556f54c8d47d78a3670796d8 | [
"Apache-2.0"
] | null | null | null | Logger.configure(level: :info)
ExUnit.start
# Configure Ecto for support and tests
Application.put_env(:ecto, :lock_for_update, "FOR UPDATE")
Application.put_env(:ecto, :primary_key_type, :id)
# Load support files
Code.require_file "../support/repo.exs", __DIR__
Code.require_file "../support/models.exs", __DIR__
Code... | 26.073529 | 79 | 0.746193 |
4ab62b8a20ab27d7051d2fef7e000efe6eca373c | 5,734 | ex | Elixir | apps/ewallet_db/lib/ewallet_db/validator.ex | enyan94/ewallet | e938e686319867d133b21cd0eb5496e213ae7620 | [
"Apache-2.0"
] | null | null | null | apps/ewallet_db/lib/ewallet_db/validator.ex | enyan94/ewallet | e938e686319867d133b21cd0eb5496e213ae7620 | [
"Apache-2.0"
] | null | null | null | apps/ewallet_db/lib/ewallet_db/validator.ex | enyan94/ewallet | e938e686319867d133b21cd0eb5496e213ae7620 | [
"Apache-2.0"
] | null | null | null | # Copyright 2018-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 ... | 25.598214 | 94 | 0.637949 |
4ab62d44fc56af7b7a4e8baee2554cb04b31bcee | 340 | ex | Elixir | lib/graphql/types/language.ex | isshindev/accent | ae4c13139b0a0dfd64ff536b94c940a4e2862150 | [
"BSD-3-Clause"
] | 806 | 2018-04-07T20:40:33.000Z | 2022-03-30T01:39:57.000Z | lib/graphql/types/language.ex | isshindev/accent | ae4c13139b0a0dfd64ff536b94c940a4e2862150 | [
"BSD-3-Clause"
] | 194 | 2018-04-07T13:49:37.000Z | 2022-03-30T19:58:45.000Z | lib/graphql/types/language.ex | doc-ai/accent | e337e16f3658cc0728364f952c0d9c13710ebb06 | [
"BSD-3-Clause"
] | 89 | 2018-04-09T13:55:49.000Z | 2022-03-24T07:09:31.000Z | defmodule Accent.GraphQL.Types.Language do
use Absinthe.Schema.Notation
object :language do
field(:id, non_null(:id))
field(:slug, non_null(:id))
field(:name, non_null(:string))
end
object :languages do
field(:meta, non_null(:pagination_meta))
field(:entries, non_null(list_of(non_null(:lan... | 22.666667 | 59 | 0.7 |
4ab63f2546f50f332870884ce591abd03f135e58 | 1,973 | ex | Elixir | lib/map_data/area_type.ex | lindend/map-tile-renderer | 28316e9b79e7bfdbd0f0d4439e82becc89418284 | [
"MIT"
] | null | null | null | lib/map_data/area_type.ex | lindend/map-tile-renderer | 28316e9b79e7bfdbd0f0d4439e82becc89418284 | [
"MIT"
] | null | null | null | lib/map_data/area_type.ex | lindend/map-tile-renderer | 28316e9b79e7bfdbd0f0d4439e82becc89418284 | [
"MIT"
] | null | null | null | defmodule MapTileRenderer.MapData.AreaType do
require Logger
@tile_types %{
#Layer 0
:land => {[], 0, 100, 1},
:water => {[{"natural", "water"}, {"waterway", "riverbank"}], 0, 0, 2},
:grass => {[{"landuse", "grass"}], 0, 4, 3},
:forest => {[{"landuse", "forest"}, {"natur... | 32.883333 | 124 | 0.498226 |
4ab66929d4958f37b31c7089a6b31d4085b95a6f | 4,047 | ex | Elixir | lib/ex_rabbit_m_q/config/connection.ex | dennisxtria/exrabbitmq | 50705c5f42daedd6ce465662dd752f8c2f6895b2 | [
"MIT"
] | null | null | null | lib/ex_rabbit_m_q/config/connection.ex | dennisxtria/exrabbitmq | 50705c5f42daedd6ce465662dd752f8c2f6895b2 | [
"MIT"
] | null | null | null | lib/ex_rabbit_m_q/config/connection.ex | dennisxtria/exrabbitmq | 50705c5f42daedd6ce465662dd752f8c2f6895b2 | [
"MIT"
] | null | null | null | defmodule ExRabbitMQ.Config.Connection do
@moduledoc """
A structure holding the necessary information about a connection to a RabbitMQ node.
#### Connection configuration example:
```elixir
# :connection is this connection's configuration name
config :exrabbitmq, :my_connection_config,
# username fo... | 29.115108 | 101 | 0.662466 |
4ab67ba7a57e38d0e5ddad2c8a06498449bb72ad | 362 | ex | Elixir | ch19/duper/lib/duper/worker_supervisor.ex | rafanoronha/prog_elixir_1_6 | 5ae2137da4ffdb6de1c9b164812ed6e43c0922d3 | [
"MIT"
] | null | null | null | ch19/duper/lib/duper/worker_supervisor.ex | rafanoronha/prog_elixir_1_6 | 5ae2137da4ffdb6de1c9b164812ed6e43c0922d3 | [
"MIT"
] | null | null | null | ch19/duper/lib/duper/worker_supervisor.ex | rafanoronha/prog_elixir_1_6 | 5ae2137da4ffdb6de1c9b164812ed6e43c0922d3 | [
"MIT"
] | null | null | null | defmodule Duper.WorkerSupervisor do
use DynamicSupervisor
@me WorkerSupervisor
def start_link(_) do
DynamicSupervisor.start_link(__MODULE__, :no_args, name: @me)
end
def init(:no_args) do
DynamicSupervisor.init(strategy: :one_for_one)
end
def add_worker() do
{:ok, _pid} = DynamicSupervisor... | 20.111111 | 66 | 0.734807 |
4ab6823e90baced2b3482af47a764c57eba1f88b | 1,831 | ex | Elixir | clients/sheets/lib/google_api/sheets/v4/model/padding.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/sheets/lib/google_api/sheets/v4/model/padding.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/sheets/lib/google_api/sheets/v4/model/padding.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.122807 | 88 | 0.684872 |
4ab6933aa0283357f46547feb234fe161432c3b1 | 69 | ex | Elixir | lib/exinfiltr8_web/views/layout_view.ex | jgsmith/exinfiltr8 | cabe92dd44e9d6ac390856e9983f5897989a5bfc | [
"Apache-2.0"
] | null | null | null | lib/exinfiltr8_web/views/layout_view.ex | jgsmith/exinfiltr8 | cabe92dd44e9d6ac390856e9983f5897989a5bfc | [
"Apache-2.0"
] | 2 | 2021-03-10T14:09:03.000Z | 2021-05-11T09:54:54.000Z | lib/exinfiltr8_web/views/layout_view.ex | jgsmith/exinfiltr8 | cabe92dd44e9d6ac390856e9983f5897989a5bfc | [
"Apache-2.0"
] | null | null | null | defmodule Exinfiltr8Web.LayoutView do
use Exinfiltr8Web, :view
end
| 17.25 | 37 | 0.826087 |
4ab6b6c758a5f3f2432199902e350fd48eb9fd4e | 1,523 | exs | Elixir | test/code_test.exs | ericgoodwin/ibu | 949ce9baf4f794ed74c0903f43e25c1f9caec840 | [
"Apache-2.0"
] | 1 | 2021-01-18T17:39:05.000Z | 2021-01-18T17:39:05.000Z | test/code_test.exs | ericgoodwin/ibu | 949ce9baf4f794ed74c0903f43e25c1f9caec840 | [
"Apache-2.0"
] | null | null | null | test/code_test.exs | ericgoodwin/ibu | 949ce9baf4f794ed74c0903f43e25c1f9caec840 | [
"Apache-2.0"
] | null | null | null | defmodule ParseTest do
use ExUnit.Case
doctest IBU.Code
alias IBU.Code
@error {:error, :unknown_format, nil}
test "athlete" do
assert @error = Code.parse(nil)
assert {:ok, :individual, data} = Code.parse("BTGER12403199001")
assert %{
country_code: "GER",
gender: :male,... | 23.796875 | 75 | 0.539068 |
4ab6c18c737c1f18fac5574c683125c60f846778 | 1,181 | ex | Elixir | api/web/channels/user_socket.ex | AlexYanai/microblogger | 833320759cddd276bc31dabaec6f0c9e2eabb05a | [
"MIT"
] | null | null | null | api/web/channels/user_socket.ex | AlexYanai/microblogger | 833320759cddd276bc31dabaec6f0c9e2eabb05a | [
"MIT"
] | null | null | null | api/web/channels/user_socket.ex | AlexYanai/microblogger | 833320759cddd276bc31dabaec6f0c9e2eabb05a | [
"MIT"
] | null | null | null | defmodule Microblogger.UserSocket do
use Phoenix.Socket
## Channels
# channel "room:*", Microblogger.RoomChannel
## Transports
transport :websocket, Phoenix.Transports.WebSocket
# transport :longpoll, Phoenix.Transports.LongPoll
# Socket params are passed from the client and can
# be used to verify a... | 31.078947 | 85 | 0.705334 |
4ab70219c87be75e88d4ae167dcf7646ec6181e3 | 2,352 | ex | Elixir | lib/codes/codes_n98.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_n98.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_n98.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | defmodule IcdCode.ICDCode.Codes_N98 do
alias IcdCode.ICDCode
def _N980 do
%ICDCode{full_code: "N980",
category_code: "N98",
short_code: "0",
full_name: "Infection associated with artificial insemination",
short_name: "Infection associated with artificial insemination",
... | 38.557377 | 118 | 0.67432 |
4ab7354a78202dd2f4002b797c57ac2de14a7ae9 | 1,305 | ex | Elixir | lib/web/views/form_helpers.ex | yknx4/opencov | dc961a41e29b41b0657bc2a64bb67350a65477b8 | [
"MIT"
] | 8 | 2021-08-22T10:37:57.000Z | 2022-01-10T11:27:06.000Z | lib/web/views/form_helpers.ex | yknx4/librecov | dc961a41e29b41b0657bc2a64bb67350a65477b8 | [
"MIT"
] | 109 | 2021-08-20T04:08:04.000Z | 2022-01-03T07:39:18.000Z | lib/web/views/form_helpers.ex | Librecov/librecov | dc961a41e29b41b0657bc2a64bb67350a65477b8 | [
"MIT"
] | null | null | null | defmodule Librecov.FormHelpers do
import Librecov.ErrorHelpers
import Phoenix.HTML.Tag
import Phoenix.HTML.Form
@input_default_opts [label: [], type: :text_input, attrs: [], args: []]
def form_group(form, field, do: block) do
content_tag(:div, block, class: "form-group #{state_class(form, field)}")
en... | 27.765957 | 84 | 0.63295 |
4ab748afc7c14bf55dc0a86bbfb62358d9bbcbcc | 487 | ex | Elixir | lib/ex_app_web/views/error_view.ex | kuffel/ex_app | c67c1c9f9b48d6020859ea2b1f9d070dca69c84f | [
"MIT"
] | null | null | null | lib/ex_app_web/views/error_view.ex | kuffel/ex_app | c67c1c9f9b48d6020859ea2b1f9d070dca69c84f | [
"MIT"
] | 12 | 2020-11-02T21:22:41.000Z | 2021-05-18T13:08:30.000Z | lib/ex_app_web/views/error_view.ex | kuffel/ex_app | c67c1c9f9b48d6020859ea2b1f9d070dca69c84f | [
"MIT"
] | null | null | null | defmodule ExAppWeb.ErrorView do
use ExAppWeb, :view
# If you want to customize a particular status code
# for a certain format, you may uncomment below.
# def render("500.html", _assigns) do
# "Internal Server Error"
# end
# By default, Phoenix returns the status message from
# the template name. Fo... | 28.647059 | 61 | 0.73306 |
4ab74f470bd2929d5d5ef26804628abdffc7b822 | 1,759 | ex | Elixir | kv_umbrella/apps/kv_server/lib/kv_server.ex | mrroot5/elixir-getting-started-tutorial | eeff5e01ff010be62cf636a2e3983beef782ffe2 | [
"MIT"
] | null | null | null | kv_umbrella/apps/kv_server/lib/kv_server.ex | mrroot5/elixir-getting-started-tutorial | eeff5e01ff010be62cf636a2e3983beef782ffe2 | [
"MIT"
] | null | null | null | kv_umbrella/apps/kv_server/lib/kv_server.ex | mrroot5/elixir-getting-started-tutorial | eeff5e01ff010be62cf636a2e3983beef782ffe2 | [
"MIT"
] | null | null | null | defmodule KVServer do
require Logger
def accept(port) do
# The options below mean:
#
# 1. `:binary` - receives data as binaries (instead of lists)
# 2. `packet: :line` - receives data line by line
# 3. `active: false` - blocks on `:gen_tcp.recv/2` until data is available
# 4. `reuseaddr: tr... | 27.484375 | 94 | 0.653781 |
4ab75e0947a6fbe0c83f59aa7e73b28a65f69751 | 543 | ex | Elixir | test/support/protein/empty_server.ex | katafrakt/protein-elixir | f5ea6e079904ea0defa40e99a0e5becaa02a5735 | [
"MIT"
] | 9 | 2018-01-16T12:25:58.000Z | 2021-11-24T13:19:35.000Z | test/support/protein/empty_server.ex | katafrakt/protein-elixir | f5ea6e079904ea0defa40e99a0e5becaa02a5735 | [
"MIT"
] | 3 | 2018-09-07T16:09:57.000Z | 2019-02-19T10:37:13.000Z | test/support/protein/empty_server.ex | katafrakt/protein-elixir | f5ea6e079904ea0defa40e99a0e5becaa02a5735 | [
"MIT"
] | 3 | 2018-05-27T08:56:52.000Z | 2021-11-24T13:19:37.000Z | defmodule Protein.EmptyServer do
@moduledoc false
use Protein.Server
proto(:empty)
proto(:error)
proto(:async_error)
end
defmodule Protein.EmptyServer.EmptyService do
@moduledoc false
def call(_request) do
:timer.sleep(100)
:ok
end
end
defmodule Protein.EmptyServer.ErrorService do
@module... | 15.514286 | 54 | 0.723757 |
4ab78997f09124a24880592d4f6889a7ee23b1e1 | 194 | exs | Elixir | test/empexlogo_web/controllers/page_controller_test.exs | empex2019liveview/empexlogo | d20d09e91333039e3bd82faf4b4615103a892f1e | [
"MIT"
] | null | null | null | test/empexlogo_web/controllers/page_controller_test.exs | empex2019liveview/empexlogo | d20d09e91333039e3bd82faf4b4615103a892f1e | [
"MIT"
] | null | null | null | test/empexlogo_web/controllers/page_controller_test.exs | empex2019liveview/empexlogo | d20d09e91333039e3bd82faf4b4615103a892f1e | [
"MIT"
] | 1 | 2020-02-17T17:53:50.000Z | 2020-02-17T17:53:50.000Z | defmodule EmpexlogoWeb.PageControllerTest do
use EmpexlogoWeb.ConnCase
test "GET /", %{conn: conn} do
conn = get(conn, "/")
assert html_response(conn, 200) =~ "Empexlogo"
end
end
| 21.555556 | 50 | 0.685567 |
4ab79a9ae85463933029711bbfb17a8015681623 | 39 | ex | Elixir | lib/oauth2_server/settings.ex | kevinbaisas/oauth2_server | b622bb2c3f5f6e930a014d7ead7e3bfe14baed22 | [
"MIT"
] | 13 | 2016-05-16T13:27:42.000Z | 2017-03-14T19:57:33.000Z | lib/oauth2_server/settings.ex | kvnbai/oauth2_server | b622bb2c3f5f6e930a014d7ead7e3bfe14baed22 | [
"MIT"
] | null | null | null | lib/oauth2_server/settings.ex | kvnbai/oauth2_server | b622bb2c3f5f6e930a014d7ead7e3bfe14baed22 | [
"MIT"
] | 1 | 2016-06-23T18:14:53.000Z | 2016-06-23T18:14:53.000Z | defmodule Oauth2Server.Settings do
end
| 13 | 34 | 0.871795 |
4ab7ca693f40698ab358c5c9245a1f3d1a60867a | 14,331 | exs | Elixir | test/xcribe/swagger/formatter_test.exs | antedeguemon/xcribe | 00cbcaf150a04fd07b6ec727be9aa34f92a81a72 | [
"Apache-2.0"
] | null | null | null | test/xcribe/swagger/formatter_test.exs | antedeguemon/xcribe | 00cbcaf150a04fd07b6ec727be9aa34f92a81a72 | [
"Apache-2.0"
] | null | null | null | test/xcribe/swagger/formatter_test.exs | antedeguemon/xcribe | 00cbcaf150a04fd07b6ec727be9aa34f92a81a72 | [
"Apache-2.0"
] | null | null | null | defmodule Xcribe.Swagger.FormatterTest do
use ExUnit.Case, async: true
alias Xcribe.Request
alias Xcribe.Support.Information, as: ExampleInformation
alias Xcribe.Support.Samples.SwaggerFormater.PathItemObject, as: Samples
alias Xcribe.Swagger.Formatter
describe "raw_openapi_object/0" do
test "return a... | 30.687366 | 98 | 0.51113 |
4ab7dae21b2e8835442711edbc03302411487384 | 3,868 | exs | Elixir | mix.exs | azizk/ecto | e38f9ddd99c68ef879da38d292f3d01c858aee2b | [
"Apache-2.0"
] | null | null | null | mix.exs | azizk/ecto | e38f9ddd99c68ef879da38d292f3d01c858aee2b | [
"Apache-2.0"
] | null | null | null | mix.exs | azizk/ecto | e38f9ddd99c68ef879da38d292f3d01c858aee2b | [
"Apache-2.0"
] | 2 | 2021-11-02T18:12:08.000Z | 2021-11-02T18:40:51.000Z | defmodule Ecto.MixProject do
use Mix.Project
@source_url "https://github.com/elixir-ecto/ecto"
@version "3.7.1"
def project do
[
app: :ecto,
version: @version,
elixir: "~> 1.8",
deps: deps(),
consolidate_protocols: Mix.env() != :test,
elixirc_paths: elixirc_paths(Mix.en... | 26.861111 | 90 | 0.581437 |
4ab80b2fe0223e443c65c872f032b3fd3df2fba4 | 12,497 | ex | Elixir | lib/iex/lib/iex/introspection.ex | thomascchen/elixir | d19a92bbf4cb3743ce726a87e584a1741b59f5b0 | [
"Apache-2.0"
] | null | null | null | lib/iex/lib/iex/introspection.ex | thomascchen/elixir | d19a92bbf4cb3743ce726a87e584a1741b59f5b0 | [
"Apache-2.0"
] | null | null | null | lib/iex/lib/iex/introspection.ex | thomascchen/elixir | d19a92bbf4cb3743ce726a87e584a1741b59f5b0 | [
"Apache-2.0"
] | null | null | null | # Convenience helpers for showing docs, specs and types
# from modules. Invoked directly from IEx.Helpers.
defmodule IEx.Introspection do
@moduledoc false
import IEx, only: [dont_display_result: 0]
alias Kernel.Typespec
@doc """
Prints the documentation for the given module.
"""
def h(module) when is_a... | 27.345733 | 115 | 0.597583 |
4ab8434facf4265f0a5d71065d6a3e2a64e94ce7 | 2,507 | exs | Elixir | apps/ewallet/test/ewallet/web/v1/serializers/key_serializer_test.exs | amadeobrands/ewallet | 505b7822721940a7b892a9b35c225e80cc8ac0b4 | [
"Apache-2.0"
] | 1 | 2018-12-07T06:21:21.000Z | 2018-12-07T06:21:21.000Z | apps/ewallet/test/ewallet/web/v1/serializers/key_serializer_test.exs | amadeobrands/ewallet | 505b7822721940a7b892a9b35c225e80cc8ac0b4 | [
"Apache-2.0"
] | null | null | null | apps/ewallet/test/ewallet/web/v1/serializers/key_serializer_test.exs | amadeobrands/ewallet | 505b7822721940a7b892a9b35c225e80cc8ac0b4 | [
"Apache-2.0"
] | null | null | null | defmodule EWallet.Web.V1.KeySerializerTest do
use EWallet.Web.SerializerCase, :v1
alias Ecto.Association.NotLoaded
alias EWallet.Web.{Date, Paginator}
alias EWallet.Web.V1.KeySerializer
describe "serialize/1" do
test "serializes a key into the correct response format" do
key = :key |> insert() |> R... | 29.494118 | 63 | 0.573993 |
4ab84f3d912bd339afc88446433aeaea0cdfdddb | 910 | ex | Elixir | lib/crius_chat_web/channels/user_channel.ex | AmadorZcv/crius_chat | 2ed002414f207536a0d2ab6e53e7d99da9fa920d | [
"MIT"
] | null | null | null | lib/crius_chat_web/channels/user_channel.ex | AmadorZcv/crius_chat | 2ed002414f207536a0d2ab6e53e7d99da9fa920d | [
"MIT"
] | 3 | 2021-03-09T17:37:23.000Z | 2021-09-01T22:28:38.000Z | lib/crius_chat_web/channels/user_channel.ex | AmadorZcv/crius_chat | 2ed002414f207536a0d2ab6e53e7d99da9fa920d | [
"MIT"
] | null | null | null | defmodule CriusChatWeb.UserChannel do
use CriusChatWeb, :channel
def join("user:" <> _private_room_id, payload, socket) do
if authorized?(payload) do
{:ok, socket}
else
{:error, %{reason: "unauthorized"}}
end
end
# Channels can be used in a request/response fashion
# by sending repli... | 26 | 61 | 0.681319 |
4ab8f5aaffdfc9fc8c013fc7df3a9c875d01eb28 | 2,540 | exs | Elixir | test/adaptable_costs_evaluator/policies/organizations/organization_policy_test.exs | patrotom/adaptable-costs-evaluator | c97e65af1e021d7c6acf6564f4671c60321346e3 | [
"MIT"
] | null | null | null | test/adaptable_costs_evaluator/policies/organizations/organization_policy_test.exs | patrotom/adaptable-costs-evaluator | c97e65af1e021d7c6acf6564f4671c60321346e3 | [
"MIT"
] | 4 | 2021-12-07T12:26:50.000Z | 2021-12-30T14:17:25.000Z | test/adaptable_costs_evaluator/policies/organizations/organization_policy_test.exs | patrotom/adaptable-costs-evaluator | c97e65af1e021d7c6acf6564f4671c60321346e3 | [
"MIT"
] | null | null | null | defmodule AdaptableCostsEvaluator.Policies.Organizations.OrganizationPolicyTest do
use AdaptableCostsEvaluator.DataCase
use AdaptableCostsEvaluator.Fixtures.{OrganizationFixture, UserFixture}
alias AdaptableCostsEvaluator.Organizations
import AdaptableCostsEvaluator.Policies.Organizations.OrganizationPolicy
... | 30.97561 | 87 | 0.677953 |
4ab9184e833ec2d7601c92b9d160d968017b8c49 | 1,002 | exs | Elixir | mix.exs | drowzy/explorer | cbf2af5c65fda31d1e0bdb3499e4a66008d6db98 | [
"MIT"
] | 1 | 2021-09-04T12:53:44.000Z | 2021-09-04T12:53:44.000Z | mix.exs | drowzy/explorer | cbf2af5c65fda31d1e0bdb3499e4a66008d6db98 | [
"MIT"
] | null | null | null | mix.exs | drowzy/explorer | cbf2af5c65fda31d1e0bdb3499e4a66008d6db98 | [
"MIT"
] | null | null | null | defmodule Explorer.MixProject do
use Mix.Project
@source_url "https://github.com/amplifiedai/explorer"
@version "0.1.0-dev"
def project do
[
app: :explorer,
name: "Explorer",
version: @version,
elixir: "~> 1.12",
deps: deps(),
docs: docs()
]
end
def application... | 20.04 | 82 | 0.538922 |
4ab92d349b3c5d1aac128b438854a44845ba1d43 | 451 | ex | Elixir | apps/snitch_core/lib/core/data/schema/variation.ex | Acrecio/avia | 54d264fc179b5b5f17d174854bdca063e1d935e9 | [
"MIT"
] | 456 | 2018-09-20T02:40:59.000Z | 2022-03-07T08:53:48.000Z | apps/snitch_core/lib/core/data/schema/variation.ex | Acrecio/avia | 54d264fc179b5b5f17d174854bdca063e1d935e9 | [
"MIT"
] | 273 | 2018-09-19T06:43:43.000Z | 2021-08-07T12:58:26.000Z | apps/snitch_core/lib/core/data/schema/variation.ex | Acrecio/avia | 54d264fc179b5b5f17d174854bdca063e1d935e9 | [
"MIT"
] | 122 | 2018-09-26T16:32:46.000Z | 2022-03-13T11:44:19.000Z | defmodule Snitch.Data.Schema.Variation do
@moduledoc false
use Snitch.Data.Schema
alias Snitch.Data.Schema.Product
schema "snitch_product_variants" do
belongs_to(:parent_product, Product)
# This can be uniquely indexed
belongs_to(:child_product, Product)
end
def changeset(model, params \\ %{}... | 23.736842 | 81 | 0.713969 |
4ab93aba5d07135f9e78ff2901abb1fd2ba01604 | 1,255 | ex | Elixir | packaging/debian/emacsen-startup.ex | colinkiama/ambition | ee37ed9c5821c4f5e131cb6969514bffb03c0361 | [
"Apache-2.0"
] | 19 | 2015-01-03T20:09:31.000Z | 2020-01-25T22:19:08.000Z | packaging/debian/emacsen-startup.ex | colinkiama/ambition | ee37ed9c5821c4f5e131cb6969514bffb03c0361 | [
"Apache-2.0"
] | 4 | 2016-01-11T19:05:39.000Z | 2021-04-13T18:20:39.000Z | packaging/debian/emacsen-startup.ex | colinkiama/ambition | ee37ed9c5821c4f5e131cb6969514bffb03c0361 | [
"Apache-2.0"
] | 5 | 2015-03-18T20:09:02.000Z | 2021-11-25T15:20:46.000Z | ;; -*-emacs-lisp-*-
;;
;; Emacs startup file, e.g. /etc/emacs/site-start.d/50ambition.el
;; for the Debian ambition package
;;
;; Originally contributed by Nils Naumann <naumann@unileoben.ac.at>
;; Modified by Dirk Eddelbuettel <edd@debian.org>
;; Adapted for dh-make by Jim Van Zandt <jrv@debian.org>
;; The ambition ... | 44.821429 | 73 | 0.678088 |
4ab96e763b746a9b8f9964c13f25042bcf3e2117 | 2,463 | ex | Elixir | lib/polyglot/interpreter.ex | sysdea-libs/polyglot | b747eac16c76dd86f97e567e14d7a90012710c13 | [
"MIT"
] | 1 | 2015-08-01T06:05:28.000Z | 2015-08-01T06:05:28.000Z | lib/polyglot/interpreter.ex | sysdea-libs/polyglot | b747eac16c76dd86f97e567e14d7a90012710c13 | [
"MIT"
] | null | null | null | lib/polyglot/interpreter.ex | sysdea-libs/polyglot | b747eac16c76dd86f97e567e14d7a90012710c13 | [
"MIT"
] | null | null | null | defmodule Polyglot.Interpreter do
alias Polyglot.Parser
import Polyglot.Plural
def interpret(lang, str, args \\ %{}) do
{:ok, ast} = Parser.parse(str)
interpret_ast(ast, %{lang: lang, printer: nil}, args)
end
def interpret_ast({:select, arg, m}, env, args) do
v = Map.get(args, arg)
case Map.... | 29.674699 | 81 | 0.559886 |
4ab981b228f0671de47df4dce600bd7a8f69d979 | 2,622 | exs | Elixir | mix.exs | wingyplus/plug | 1f76e671ce891b6daec2f0718009360d3490bd4c | [
"Apache-2.0"
] | null | null | null | mix.exs | wingyplus/plug | 1f76e671ce891b6daec2f0718009360d3490bd4c | [
"Apache-2.0"
] | null | null | null | mix.exs | wingyplus/plug | 1f76e671ce891b6daec2f0718009360d3490bd4c | [
"Apache-2.0"
] | null | null | null | defmodule Plug.MixProject do
use Mix.Project
@version "1.11.1"
@description "A specification and conveniences for composable modules between web applications"
@xref_exclude [Plug.Cowboy, :telemetry]
def project do
[
app: :plug,
version: @version,
elixir: "~> 1.7",
deps: deps(),
... | 22.220339 | 97 | 0.540046 |
4ab9b7fbb075a23856f33367e17962efb5919684 | 997 | ex | Elixir | lib/assent/strategies/auth0.ex | goaero/assent | c0ff4bec043486054507b5779fb7a1246dd20d2c | [
"MIT"
] | 1 | 2022-02-16T19:57:40.000Z | 2022-02-16T19:57:40.000Z | lib/assent/strategies/auth0.ex | goaero/assent | c0ff4bec043486054507b5779fb7a1246dd20d2c | [
"MIT"
] | null | null | null | lib/assent/strategies/auth0.ex | goaero/assent | c0ff4bec043486054507b5779fb7a1246dd20d2c | [
"MIT"
] | null | null | null | defmodule Assent.Strategy.Auth0 do
@moduledoc """
Auth0 OAuth 2.0 strategy.
## Usage
config = [
client_id: "REPLACE_WITH_CLIENT_ID",
client_secret: "REPLACE_WITH_CLIENT_SECRET",
domain: "REPLACE_WITH_DOMAIN"
]
"""
use Assent.Strategy.OAuth2.Base
alias Assent.Config
... | 24.317073 | 73 | 0.652959 |
4ab9c56bc89450b426ebaddca20981c96270a18f | 67 | ex | Elixir | hacker_news/lib/hacker_news_web/views/page_view.ex | suulcoder/ElixirStories | 6aaf8cdaf834b019d02f8c82461f0f7825540629 | [
"MIT"
] | null | null | null | hacker_news/lib/hacker_news_web/views/page_view.ex | suulcoder/ElixirStories | 6aaf8cdaf834b019d02f8c82461f0f7825540629 | [
"MIT"
] | null | null | null | hacker_news/lib/hacker_news_web/views/page_view.ex | suulcoder/ElixirStories | 6aaf8cdaf834b019d02f8c82461f0f7825540629 | [
"MIT"
] | null | null | null | defmodule HackerNewsWeb.PageView do
use HackerNewsWeb, :view
end
| 16.75 | 35 | 0.820896 |
4ab9cc9bb8fbf68385e324f2d3d07c12ba5dd466 | 198 | exs | Elixir | config/test.exs | blitzstudios/honeybadger-elixir | 81ec81c8e7303847de784c2fb7a189b8521c296c | [
"MIT"
] | 175 | 2015-07-04T16:01:53.000Z | 2022-03-30T10:18:03.000Z | config/test.exs | blitzstudios/honeybadger-elixir | 81ec81c8e7303847de784c2fb7a189b8521c296c | [
"MIT"
] | 225 | 2015-07-03T22:08:58.000Z | 2022-02-03T14:16:20.000Z | config/test.exs | blitzstudios/honeybadger-elixir | 81ec81c8e7303847de784c2fb7a189b8521c296c | [
"MIT"
] | 69 | 2015-09-17T13:56:28.000Z | 2022-03-20T17:49:17.000Z | use Mix.Config
config :honeybadger,
environment_name: :test,
api_key: "abc123",
origin: "http://localhost:4444"
config :ex_unit,
assert_receive_timeout: 400,
refute_receive_timeout: 200
| 18 | 33 | 0.747475 |
4ab9e264eef83e1f3f0fa3bc94084569d472b653 | 1,648 | ex | Elixir | lib/tai_shang_web/endpoint.ex | leeduckgo/Tai-Shang | 33831f54b0ef8eb7772b0b559d8fe8897a06b57c | [
"MIT"
] | 17 | 2021-06-10T07:39:18.000Z | 2021-12-16T03:26:53.000Z | lib/tai_shang_web/endpoint.ex | leeduckgo/Tai-Shang | 33831f54b0ef8eb7772b0b559d8fe8897a06b57c | [
"MIT"
] | 4 | 2021-05-19T02:09:53.000Z | 2021-07-03T09:34:09.000Z | lib/tai_shang_web/endpoint.ex | leeduckgo/Tai-Shang | 33831f54b0ef8eb7772b0b559d8fe8897a06b57c | [
"MIT"
] | 4 | 2021-07-06T02:50:29.000Z | 2021-12-21T09:33:20.000Z | defmodule TaiShangWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :tai_shang
# The session will be stored in the cookie and signed,
# this means its contents can be read but not tampered with.
# Set :encryption_salt if you would also like to encrypt it.
@session_options [
store: :cookie,
key: "_tai_sh... | 27.932203 | 98 | 0.708738 |
4ab9e34a2f6caf6c0b857acd3cc849744f12a391 | 589 | exs | Elixir | kv_umbrella/mix.exs | guthb/fp | 2a754adfcf2eb60e80016a23de81fad83993bafe | [
"MIT"
] | null | null | null | kv_umbrella/mix.exs | guthb/fp | 2a754adfcf2eb60e80016a23de81fad83993bafe | [
"MIT"
] | null | null | null | kv_umbrella/mix.exs | guthb/fp | 2a754adfcf2eb60e80016a23de81fad83993bafe | [
"MIT"
] | null | null | null | defmodule KvUmbrella.MixProject do
use Mix.Project
def project do
[
apps_path: "apps",
version: "0.1.0",
start_permanent: Mix.env() == :prod,
deps: deps()
releases: [
foo: [
version: "0.0.1",
applications: [kv_server: :permanent, kv: :permanent]
... | 20.310345 | 63 | 0.595925 |
4ab9f32914b438dbe05ea7034c3c8b016f12bb99 | 200 | exs | Elixir | priv/repo/migrations/20170324214112_add_active_to_channels.exs | smpallen99/ucx_chat | 0dd98d0eb5e0537521844520ea2ba63a08fd3f19 | [
"MIT"
] | 60 | 2017-05-09T19:08:26.000Z | 2021-01-20T11:09:42.000Z | priv/repo/migrations/20170324214112_add_active_to_channels.exs | smpallen99/ucx_chat | 0dd98d0eb5e0537521844520ea2ba63a08fd3f19 | [
"MIT"
] | 6 | 2017-05-10T15:43:16.000Z | 2020-07-15T07:14:41.000Z | priv/repo/migrations/20170324214112_add_active_to_channels.exs | smpallen99/ucx_chat | 0dd98d0eb5e0537521844520ea2ba63a08fd3f19 | [
"MIT"
] | 10 | 2017-05-10T04:13:54.000Z | 2020-12-28T10:30:27.000Z | defmodule UcxChat.Repo.Migrations.AddActiveToChannels do
use Ecto.Migration
def change do
alter table(:channels) do
add :active, :boolean, default: true, null: false
end
end
end
| 18.181818 | 56 | 0.715 |
4ab9f34212a71e411a29467a6fe0272095e25194 | 778 | ex | Elixir | lib/rasa_sdk/model/response_ok.ex | r26D/rasa-sdk-elixir | 65da9444add5da2e2c0989c36bcbdf902733c709 | [
"Apache-2.0"
] | 2 | 2020-09-24T09:58:52.000Z | 2021-02-08T12:35:55.000Z | lib/rasa_sdk/model/response_ok.ex | r26D/rasa-sdk-elixir | 65da9444add5da2e2c0989c36bcbdf902733c709 | [
"Apache-2.0"
] | null | null | null | lib/rasa_sdk/model/response_ok.ex | r26D/rasa-sdk-elixir | 65da9444add5da2e2c0989c36bcbdf902733c709 | [
"Apache-2.0"
] | 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 RasaSDK.Model.ResponseOk do
@moduledoc """
Action was executed succesfully.
"""
alias RasaSDK.Model.Event
alias RasaSDK.Model.Response
@d... | 23.575758 | 91 | 0.687661 |
4aba1d0bddfe9994fe33f7e169992455563f20ef | 37,092 | ex | Elixir | lib/mongo.ex | rafamedina/mongodb | 65bd68adbc2753c38d927ad0ba804fe8e66d50d7 | [
"Apache-2.0"
] | null | null | null | lib/mongo.ex | rafamedina/mongodb | 65bd68adbc2753c38d927ad0ba804fe8e66d50d7 | [
"Apache-2.0"
] | null | null | null | lib/mongo.ex | rafamedina/mongodb | 65bd68adbc2753c38d927ad0ba804fe8e66d50d7 | [
"Apache-2.0"
] | null | null | null | defmodule Mongo do
@moduledoc """
The main entry point for doing queries. All functions take a topology to
run the query on.
## Generic options
All operations take these options.
* `:timeout` - The maximum time that the caller is allowed the to hold the
connection’s state (ignored when using a ru... | 38.004098 | 124 | 0.645099 |
4aba232b9f83109092854c072921aa04435d9ee1 | 128 | exs | Elixir | template/$PROJECT_NAME$/test/$PROJECT_NAME$_web/views/page_view_test.exs | paridin/phx_custom_template | e48ae570eea4d1e79d654f140cd0a329e346a03b | [
"Apache-2.0"
] | 72 | 2017-04-30T05:45:22.000Z | 2021-05-20T21:00:31.000Z | template/$PROJECT_NAME$/test/$PROJECT_NAME$_web/views/page_view_test.exs | paridin/phx_custom_template | e48ae570eea4d1e79d654f140cd0a329e346a03b | [
"Apache-2.0"
] | 13 | 2017-04-30T07:03:59.000Z | 2017-12-15T08:19:16.000Z | template/$PROJECT_NAME$/test/$PROJECT_NAME$_web/views/page_view_test.exs | paridin/phx_custom_template | e48ae570eea4d1e79d654f140cd0a329e346a03b | [
"Apache-2.0"
] | 4 | 2017-09-05T14:21:29.000Z | 2018-09-30T11:11:38.000Z | defmodule <%= @project_name_camel_case %>Web.PageViewTest do
use <%= @project_name_camel_case %>Web.ConnCase, async: true
end
| 32 | 62 | 0.765625 |
4aba5d6b757ac312a4ca56a3bf0cbec0faa4fa08 | 1,061 | ex | Elixir | test/support/conn_case.ex | toranb/elixir-gleam-match | 2102b071de2d45a7b528fc4fc7172e62dc72ce50 | [
"MIT"
] | 22 | 2020-09-06T22:18:35.000Z | 2022-01-30T13:58:33.000Z | test/support/conn_case.ex | toranb/liveview-workshop | bd78cf16e246c0cdb575c824f812335dd752c6d0 | [
"MIT"
] | 3 | 2021-09-06T19:26:18.000Z | 2021-09-06T19:27:04.000Z | test/support/conn_case.ex | toranb/liveview-workshop | bd78cf16e246c0cdb575c824f812335dd752c6d0 | [
"MIT"
] | 2 | 2020-09-06T23:02:38.000Z | 2020-09-09T05:23:03.000Z | defmodule GameWeb.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 t... | 27.921053 | 60 | 0.730443 |
4aba706d9d0d8d3726120b6b2f87253e0ad225f2 | 1,383 | ex | Elixir | apps/neoscan/test/support/data_case.ex | cc1776/neo-scan | 49fc9256f5c7ed4e0a7cd43513b27ba5d9d4f287 | [
"MIT"
] | 1 | 2021-02-23T02:55:26.000Z | 2021-02-23T02:55:26.000Z | apps/neoscan/test/support/data_case.ex | cc1776/neo-scan | 49fc9256f5c7ed4e0a7cd43513b27ba5d9d4f287 | [
"MIT"
] | null | null | null | apps/neoscan/test/support/data_case.ex | cc1776/neo-scan | 49fc9256f5c7ed4e0a7cd43513b27ba5d9d4f287 | [
"MIT"
] | 1 | 2019-10-16T21:37:31.000Z | 2019-10-16T21:37:31.000Z | defmodule Neoscan.DataCase do
@moduledoc """
This module defines the setup for tests requiring
access to the application's data layer.
You may define functions here to be used as helpers in
your tests.
Finally, if the test case interacts with the database,
it cannot be async. For this reason, every test... | 25.611111 | 77 | 0.679682 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.