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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
08cacd8df4c7fef4edc7df794764703a5763f177 | 1,105 | ex | Elixir | test/support/channel_case.ex | Nilomiranda/Danpay | 1b6f05a8a5ce6b636241c369fca85f16b229bc82 | [
"MIT"
] | null | null | null | test/support/channel_case.ex | Nilomiranda/Danpay | 1b6f05a8a5ce6b636241c369fca85f16b229bc82 | [
"MIT"
] | null | null | null | test/support/channel_case.ex | Nilomiranda/Danpay | 1b6f05a8a5ce6b636241c369fca85f16b229bc82 | [
"MIT"
] | null | null | null | defmodule DanpayWeb.ChannelCase do
@moduledoc """
This module defines the test case to be used by
channel tests.
Such tests rely on `Phoenix.ChannelTest` and also
import other functionality to make it easier
to build common data structures and query the data layer.
Finally, if the test case interacts wi... | 26.95122 | 68 | 0.725792 |
08cafa94d5e88d7486018146a83fd71cbe1c06be | 1,081 | ex | Elixir | apps/alerts/lib/stop.ex | noisecapella/dotcom | d5ef869412102d2230fac3dcc216f01a29726227 | [
"MIT"
] | 42 | 2019-05-29T16:05:30.000Z | 2021-08-09T16:03:37.000Z | apps/alerts/lib/stop.ex | noisecapella/dotcom | d5ef869412102d2230fac3dcc216f01a29726227 | [
"MIT"
] | 872 | 2019-05-29T17:55:50.000Z | 2022-03-30T09:28:43.000Z | apps/alerts/lib/stop.ex | noisecapella/dotcom | d5ef869412102d2230fac3dcc216f01a29726227 | [
"MIT"
] | 12 | 2019-07-01T18:33:21.000Z | 2022-03-10T02:13:57.000Z | defmodule Alerts.Stop do
@moduledoc """
Given a stop_id, returns the list of alerts which apply to that stop.
Options include:
* route: the route we're interested in (ID string)
* route_type: the route_type of the interested route (GTFS integer)
* direction_id: the direction we're travelling (GTFS intege... | 29.216216 | 72 | 0.682701 |
08cafccff1a8067ed9adc14e35959f180d4b8d77 | 3,596 | exs | Elixir | config/prod.exs | runhyve/webapp | 434b074f98c1ebac657b56062c1c1a54e683dea1 | [
"BSD-2-Clause"
] | 12 | 2019-07-02T14:30:06.000Z | 2022-03-12T08:22:18.000Z | config/prod.exs | runhyve/webapp | 434b074f98c1ebac657b56062c1c1a54e683dea1 | [
"BSD-2-Clause"
] | 9 | 2020-03-16T20:10:50.000Z | 2021-06-17T17:45:44.000Z | config/prod.exs | runhyve/webapp | 434b074f98c1ebac657b56062c1c1a54e683dea1 | [
"BSD-2-Clause"
] | 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,
# ... | 33.924528 | 97 | 0.720523 |
08cb0d81c7adc6c7c3861f8c814918dc68ba121c | 996 | ex | Elixir | lib/verk/event_producer.ex | Psli/verk | a538ceed1217d7aee89e92cf7740a96543ecc94c | [
"MIT"
] | null | null | null | lib/verk/event_producer.ex | Psli/verk | a538ceed1217d7aee89e92cf7740a96543ecc94c | [
"MIT"
] | null | null | null | lib/verk/event_producer.ex | Psli/verk | a538ceed1217d7aee89e92cf7740a96543ecc94c | [
"MIT"
] | null | null | null | defmodule Verk.EventProducer do
@moduledoc """
A GenStage producer that broadcasts events to subscribed consumers.
"""
use GenStage
def start_link(_args \\ []) do
GenStage.start_link(__MODULE__, :ok, name: __MODULE__)
end
def stop, do: GenStage.stop(__MODULE__)
def async_notify(event) do
GenS... | 26.210526 | 76 | 0.671687 |
08cb207e83a10566aca31fdebc3f70358f08f3af | 11,678 | ex | Elixir | lib/membrane/element/base.ex | eboskma/membrane_core | e216994fe1ba99c5d228a4b0959faa5fabb13b1c | [
"Apache-2.0"
] | null | null | null | lib/membrane/element/base.ex | eboskma/membrane_core | e216994fe1ba99c5d228a4b0959faa5fabb13b1c | [
"Apache-2.0"
] | null | null | null | lib/membrane/element/base.ex | eboskma/membrane_core | e216994fe1ba99c5d228a4b0959faa5fabb13b1c | [
"Apache-2.0"
] | null | null | null | defmodule Membrane.Element.Base do
@moduledoc """
Module defining behaviour common to all elements.
When used declares behaviour implementation, provides default callback definitions
and imports macros.
# Elements
Elements are units that produce, process or consume data. They can be linked
with `Membra... | 33.947674 | 118 | 0.661329 |
08cb4e3dd6d70f78c6980266ec5e02455abfc157 | 419 | exs | Elixir | priv/repo/migrations/20210729101154_craete_users_table.exs | nimblehq/liveman-demo-api | e184349983f949c8434b8651f9223db597ef1025 | [
"MIT"
] | null | null | null | priv/repo/migrations/20210729101154_craete_users_table.exs | nimblehq/liveman-demo-api | e184349983f949c8434b8651f9223db597ef1025 | [
"MIT"
] | 19 | 2021-07-02T08:14:52.000Z | 2021-07-30T09:33:12.000Z | priv/repo/migrations/20210729101154_craete_users_table.exs | nimblehq/liveman | e184349983f949c8434b8651f9223db597ef1025 | [
"MIT"
] | null | null | null | defmodule Liveman.Repo.Migrations.CraeteUsersTable do
use Ecto.Migration
def change do
execute "CREATE EXTENSION IF NOT EXISTS citext", ""
create table(:users, primary_key: false) do
add :id, :uuid, primary_key: true, null: false
add :email, :citext, null: false
add :hashed_password, :st... | 23.277778 | 55 | 0.677804 |
08cb5831ba6c63c9ea75cfadbb1f379f08fdab92 | 3,098 | ex | Elixir | clients/admin/lib/google_api/admin/directory_v1/model/customer_postal_address.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/customer_postal_address.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/customer_postal_address.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.633803 | 226 | 0.684958 |
08cbb15ac2f90437538fff290c9ef7a134d1a7b3 | 674 | ex | Elixir | lib/ex_pwned/api.ex | Grantimus9/ex_pwned | e26035372edc35c0b5167446ee852f133800aa03 | [
"Apache-2.0"
] | null | null | null | lib/ex_pwned/api.ex | Grantimus9/ex_pwned | e26035372edc35c0b5167446ee852f133800aa03 | [
"Apache-2.0"
] | null | null | null | lib/ex_pwned/api.ex | Grantimus9/ex_pwned | e26035372edc35c0b5167446ee852f133800aa03 | [
"Apache-2.0"
] | null | null | null | defmodule ExPwned.Api do
@moduledoc """
Base definition for Api client
"""
defmacro __using__(_opts) do
quote do
alias ExPwned.Parser
import ExPwned.Utils
def build_url(path_arg, query_params \\ %{}) do
"#{base_url()}/#{path_arg}?#{URI.encode_query(query_params)}"
end
... | 25.923077 | 119 | 0.632047 |
08cbc90b4a4a7e082aaae15d166b3b85e0836eaf | 24,196 | ex | Elixir | lib/aws/generated/personalize.ex | smanolloff/aws-elixir | c7cb6577802f5010be7e7b6ccb2c0f3c8c73ea84 | [
"Apache-2.0"
] | null | null | null | lib/aws/generated/personalize.ex | smanolloff/aws-elixir | c7cb6577802f5010be7e7b6ccb2c0f3c8c73ea84 | [
"Apache-2.0"
] | null | null | null | lib/aws/generated/personalize.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.Personalize do
@moduledoc """
Amazon Personalize is a machine learning service that makes it easy to add
individualized recommendations to customers.
"""
@doc """
Creates a batch infe... | 31.795007 | 132 | 0.722185 |
08cbcba69ff518e59855294e6f920e9926a16878 | 576 | ex | Elixir | lib/kerosene/html/foundation.ex | AlloyCI/kerosene | 9cba2a414d34ca0f5c5796f7e17d175374ca2b42 | [
"MIT"
] | null | null | null | lib/kerosene/html/foundation.ex | AlloyCI/kerosene | 9cba2a414d34ca0f5c5796f7e17d175374ca2b42 | [
"MIT"
] | null | null | null | lib/kerosene/html/foundation.ex | AlloyCI/kerosene | 9cba2a414d34ca0f5c5796f7e17d175374ca2b42 | [
"MIT"
] | null | null | null | defmodule Kerosene.HTML.Foundation do
use Phoenix.HTML
def generate_links(page_list, additional_class) do
content_tag :ul, class: build_html_class(additional_class), role: "pagination" do
for {label, _page, url, current} <- page_list do
content_tag :li, class: build_html_class(current) do
... | 27.428571 | 85 | 0.697917 |
08cbde9c0e1ce7817ad903a44a7a64e027c996e3 | 758 | exs | Elixir | apps/performance_1/rel/config.exs | WhiteRookPL/elixir-fire-brigade-workshop | 1c6183339fc623842a09f4d10be75bcecf2c37e7 | [
"MIT"
] | 14 | 2017-08-09T14:21:47.000Z | 2022-03-11T04:10:49.000Z | apps/performance_1/rel/config.exs | nicholasjhenry/elixir-fire-brigade-workshop | 1c6183339fc623842a09f4d10be75bcecf2c37e7 | [
"MIT"
] | null | null | null | apps/performance_1/rel/config.exs | nicholasjhenry/elixir-fire-brigade-workshop | 1c6183339fc623842a09f4d10be75bcecf2c37e7 | [
"MIT"
] | 15 | 2017-09-05T15:43:53.000Z | 2020-04-13T16:20:18.000Z | use Mix.Releases.Config,
default_release: :default,
default_environment: Mix.env()
cookie_dev = :"DEV_COOKIE"
environment :dev do
set dev_mode: true
set include_erts: false
set cookie: cookie_dev
set overlay_vars: [ cookie: cookie_dev ]
set vm_args: "rel/vm.args"
end
cookie_prod = :"PROD_COOKIE"
environ... | 21.657143 | 43 | 0.705805 |
08cbe35869f269dfde41b7c72ef7baa1d29fe7f3 | 611 | ex | Elixir | lib/conduit/broker/topology/queue.ex | youalreadydid/conduit | d86b8da06dafe8cc665739b5c5397389f85d821c | [
"MIT"
] | 119 | 2016-11-21T13:19:22.000Z | 2021-11-07T17:29:05.000Z | lib/conduit/broker/topology/queue.ex | youalreadydid/conduit | d86b8da06dafe8cc665739b5c5397389f85d821c | [
"MIT"
] | 104 | 2018-02-02T20:42:46.000Z | 2021-08-03T05:36:09.000Z | lib/conduit/broker/topology/queue.ex | youalreadydid/conduit | d86b8da06dafe8cc665739b5c5397389f85d821c | [
"MIT"
] | 21 | 2018-08-03T02:38:21.000Z | 2022-03-16T18:26:58.000Z | defmodule Conduit.Broker.Topology.Queue do
@moduledoc false
@type t :: %__MODULE__{
name: String.t(),
opts: Keyword.t()
}
@type name :: String.t()
@type opts :: Keyword.t()
defstruct name: nil, opts: []
@spec new(name, opts) :: t()
def new(name, opts) do
%__MODULE__{
... | 22.62963 | 89 | 0.605565 |
08cbea2348846b6044bac5fbca16e25b77b10e6c | 1,299 | ex | Elixir | lib/jmdict/entry_xml.ex | bchase/jmdict-elixir | 29fa95ef85d20e344ee62343df94754bd209a3f2 | [
"MIT"
] | null | null | null | lib/jmdict/entry_xml.ex | bchase/jmdict-elixir | 29fa95ef85d20e344ee62343df94754bd209a3f2 | [
"MIT"
] | null | null | null | lib/jmdict/entry_xml.ex | bchase/jmdict-elixir | 29fa95ef85d20e344ee62343df94754bd209a3f2 | [
"MIT"
] | null | null | null | defmodule JMDict.EntryXML do
import SweetXml
def parse({_, doc}) do
xpath doc, ~x"//entry"e,
# EID
eid: ~x"./ent_seq/text()"s,
k_ele: [ # KANJI
~x"./k_ele"le,
keb: ~x"./keb/text()"ls,
ke_inf: ~x"./ke_inf/text()"ls,
ke_pri: ~x"./ke_pri/text()"ls
],
... | 34.184211 | 87 | 0.460354 |
08cbed563341472247d17d038a55e06a8242b4d5 | 1,186 | ex | Elixir | lib/plausible_web/controllers/tracker_controller.ex | wvffle/analytics | 2c0fd55bc67f74af1fe1e2641678d44e9fee61d5 | [
"MIT"
] | 1 | 2020-10-08T13:33:04.000Z | 2020-10-08T13:33:04.000Z | lib/plausible_web/controllers/tracker_controller.ex | wvffle/analytics | 2c0fd55bc67f74af1fe1e2641678d44e9fee61d5 | [
"MIT"
] | null | null | null | lib/plausible_web/controllers/tracker_controller.ex | wvffle/analytics | 2c0fd55bc67f74af1fe1e2641678d44e9fee61d5 | [
"MIT"
] | null | null | null | defmodule PlausibleWeb.TrackerController do
use PlausibleWeb, :controller
require EEx
EEx.function_from_file(
:defp,
:render_plausible,
Application.app_dir(:plausible, "priv/tracker/js/plausible.js"),
[:base_url]
)
EEx.function_from_file(
:defp,
:render_plausible_hash,
Applicatio... | 21.178571 | 73 | 0.682968 |
08cc51b088fd2812ab1863aa9ea74b84a9eda74e | 1,943 | ex | Elixir | lib/ex_unit/lib/ex_unit/case_template.ex | doughsay/elixir | 7356a47047d0b54517bd6886603f09b1121dde2b | [
"Apache-2.0"
] | 19,291 | 2015-01-01T02:42:49.000Z | 2022-03-31T21:01:40.000Z | lib/ex_unit/lib/ex_unit/case_template.ex | doughsay/elixir | 7356a47047d0b54517bd6886603f09b1121dde2b | [
"Apache-2.0"
] | 8,082 | 2015-01-01T04:16:23.000Z | 2022-03-31T22:08:02.000Z | lib/ex_unit/lib/ex_unit/case_template.ex | doughsay/elixir | 7356a47047d0b54517bd6886603f09b1121dde2b | [
"Apache-2.0"
] | 3,472 | 2015-01-03T04:11:56.000Z | 2022-03-29T02:07:30.000Z | defmodule ExUnit.CaseTemplate do
@moduledoc """
Defines a module template to be used throughout your test suite.
This is useful when there are a set of setup callbacks or a set
of functions that should be shared between test modules.
Once a case template is used, the regular functionality in
`ExUnit.Case`... | 21.351648 | 75 | 0.629439 |
08cc622e79767faf1d00d9290795ebbfbc60dc54 | 1,384 | exs | Elixir | .formatter.exs | maartenvanvliet/ash | c7fd1927169b45d9e1e5ad4ba2ee81703fcf27db | [
"MIT"
] | null | null | null | .formatter.exs | maartenvanvliet/ash | c7fd1927169b45d9e1e5ad4ba2ee81703fcf27db | [
"MIT"
] | null | null | null | .formatter.exs | maartenvanvliet/ash | c7fd1927169b45d9e1e5ad4ba2ee81703fcf27db | [
"MIT"
] | null | null | null | # THIS FILE IS AUTOGENERATED USING `mix ash.formatter`
# DONT MODIFY IT BY HAND
locals_without_parens = [
accept: 1,
allow_nil?: 1,
argument: 2,
argument: 3,
attribute: 2,
attribute: 3,
base_filter: 1,
belongs_to: 2,
belongs_to: 3,
calculate: 2,
calculate: 3,
change: 1,
change: 2,
constraint... | 17.518987 | 70 | 0.645231 |
08ccf2918c419bad45355119ab2bb88d7a2948b8 | 309 | ex | Elixir | lib/exscript/stdlib/js.ex | craigspaeth/exscript | c3a24790dff0eac592060ba3ae349be7c567e0a7 | [
"MIT"
] | 1 | 2017-12-15T23:55:05.000Z | 2017-12-15T23:55:05.000Z | lib/exscript/stdlib/js.ex | craigspaeth/exscript | c3a24790dff0eac592060ba3ae349be7c567e0a7 | [
"MIT"
] | null | null | null | lib/exscript/stdlib/js.ex | craigspaeth/exscript | c3a24790dff0eac592060ba3ae349be7c567e0a7 | [
"MIT"
] | null | null | null | defmodule JS do
@doc "No-op function that gets rewritten at compile-time to embed Javascript"
def embed(_), do: nil
def global, do: nil
end
defmodule ExScript.Stdlib.JS do
def global do
JS.embed "typeof global !== 'undefined' && global || typeof window !== 'undefined' && window || {}"
end
end
| 25.75 | 103 | 0.682848 |
08ccf86353ff214332156ea3ee858b20511700df | 7,338 | exs | Elixir | test/lib/dwolla/customer_test.exs | ark7-inc/dwolla-elixir | a3ee9c149fbf5cd5d38dc2e854278ab321a94bf5 | [
"MIT"
] | 6 | 2018-07-23T07:43:56.000Z | 2021-07-09T01:24:21.000Z | test/lib/dwolla/customer_test.exs | ark7-inc/dwolla-elixir | a3ee9c149fbf5cd5d38dc2e854278ab321a94bf5 | [
"MIT"
] | 1 | 2019-11-05T05:31:35.000Z | 2019-11-06T21:26:38.000Z | test/lib/dwolla/customer_test.exs | ark7-inc/dwolla-elixir | a3ee9c149fbf5cd5d38dc2e854278ab321a94bf5 | [
"MIT"
] | 7 | 2019-02-12T07:48:09.000Z | 2021-11-08T15:58:06.000Z | defmodule Dwolla.CustomerTest do
use ExUnit.Case
import Dwolla.Factory
alias Dwolla.Customer
alias Plug.Conn
setup do
bypass = Bypass.open()
Application.put_env(:dwolla, :root_uri, "http://localhost:#{bypass.port}/")
{:ok, bypass: bypass}
end
describe "customer" do
test "create_unver... | 31.493562 | 109 | 0.610793 |
08cd26a7fcc56bfe777e51391b1408f3f99da8b9 | 304 | ex | Elixir | apps/ello_notifications/lib/ello_notifications.ex | ello/apex | 4acb096b3ce172ff4ef9a51e5d068d533007b920 | [
"MIT"
] | 16 | 2017-06-21T21:31:20.000Z | 2021-05-09T03:23:26.000Z | apps/ello_notifications/lib/ello_notifications.ex | ello/apex | 4acb096b3ce172ff4ef9a51e5d068d533007b920 | [
"MIT"
] | 25 | 2017-06-07T12:18:28.000Z | 2018-06-08T13:27:43.000Z | apps/ello_notifications/lib/ello_notifications.ex | ello/apex | 4acb096b3ce172ff4ef9a51e5d068d533007b920 | [
"MIT"
] | 3 | 2018-06-14T15:34:07.000Z | 2022-02-28T21:06:13.000Z | defmodule Ello.Notifications do
@moduledoc """
Wrapper module for Elixir APIs responsible for interacting with Notification related services.
* Ello.Notifications.Stream - Read and write in app notifications.
* Ello.Notifications.Push - TODO
* Ello.Notifications.Email - TODO
"""
end
| 27.636364 | 96 | 0.743421 |
08cd491365eb310b8d440d78d08e130c2269509f | 4,141 | ex | Elixir | test/support/mix/tasks/gen/test_suite.ex | hrzndhrn/json_xema | 955eab7b0919d144b38364164d90275201c89474 | [
"MIT"
] | 54 | 2019-03-10T19:51:07.000Z | 2021-12-23T07:31:09.000Z | test/support/mix/tasks/gen/test_suite.ex | hrzndhrn/json_xema | 955eab7b0919d144b38364164d90275201c89474 | [
"MIT"
] | 36 | 2018-05-20T09:13:20.000Z | 2021-03-14T15:22:03.000Z | test/support/mix/tasks/gen/test_suite.ex | hrzndhrn/json_xema | 955eab7b0919d144b38364164d90275201c89474 | [
"MIT"
] | 3 | 2019-04-12T09:08:51.000Z | 2019-12-04T01:23:56.000Z | defmodule Mix.Tasks.Gen.TestSuite do
@moduledoc """
This mix task generates tests form the JSON Schema test suite.
"""
use Mix.Task
@url "https://github.com/json-schema-org/JSON-Schema-Test-Suite"
@test_suite_path "JSON-Schema-Test-Suite"
@test_path "test/json_schema_test_suite"
@template File.read!("... | 26.375796 | 92 | 0.627626 |
08cd8417801fb11aef83cb7c69216a38e10264f5 | 841 | ex | Elixir | test/support/conn_case.ex | zan-kusterle/Liquio | 341556529633f9a99ad95b502f182d6644b9b1ed | [
"MIT"
] | 5 | 2016-09-12T08:31:14.000Z | 2018-03-12T23:40:08.000Z | test/support/conn_case.ex | zan-kusterle/Liquio | 341556529633f9a99ad95b502f182d6644b9b1ed | [
"MIT"
] | null | null | null | test/support/conn_case.ex | zan-kusterle/Liquio | 341556529633f9a99ad95b502f182d6644b9b1ed | [
"MIT"
] | null | null | null | defmodule LiquioWeb.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
imports other functionality to make it easier
to build and query models.
Finally, if the test case interacts with the ... | 24.735294 | 56 | 0.724138 |
08cdb848772a881a94295dd3366b0a78d247a8fa | 379 | exs | Elixir | priv/repo/seeds.exs | egjimenezg/absinthe_subscriptions | 49d05d9ce141c9de5d1cfabe21452d2bde8c49d9 | [
"Apache-2.0"
] | null | null | null | priv/repo/seeds.exs | egjimenezg/absinthe_subscriptions | 49d05d9ce141c9de5d1cfabe21452d2bde8c49d9 | [
"Apache-2.0"
] | null | null | null | priv/repo/seeds.exs | egjimenezg/absinthe_subscriptions | 49d05d9ce141c9de5d1cfabe21452d2bde8c49d9 | [
"Apache-2.0"
] | null | null | null | # Script for populating the database. You can run it as:
#
# mix run priv/repo/seeds.exs
#
# Inside the script, you can read and write to any of your
# repositories directly:
#
# AbsintheSubscriptions.Repo.insert!(%AbsintheSubscriptions.SomeSchema{})
#
# We recommend using the bang functions (`insert!`, `update... | 31.583333 | 77 | 0.728232 |
08cdf93a4d67441ed0c8deeb10754757319b90c7 | 80 | ex | Elixir | priv/templates/coherence.install/views/coherence/session_view.ex | remigijusj/coherence | 36fe35b0bfe7ac63b44b4046f3ba62f2fe69603a | [
"MIT"
] | 1 | 2022-03-06T16:30:21.000Z | 2022-03-06T16:30:21.000Z | priv/templates/coherence.install/views/coherence/session_view.ex | ysbaddaden/coherence | 5c4f26d3c87f6a16638adf623d041e2723ccf2b8 | [
"MIT"
] | null | null | null | priv/templates/coherence.install/views/coherence/session_view.ex | ysbaddaden/coherence | 5c4f26d3c87f6a16638adf623d041e2723ccf2b8 | [
"MIT"
] | 2 | 2017-09-22T16:54:36.000Z | 2021-11-09T20:55:58.000Z | defmodule Coherence.SessionView do
use <%= base %>.Coherence.Web, :view
end
| 13.333333 | 38 | 0.7125 |
08cdffaeddf6327f76f0f872d1c5d39f6213e96c | 449 | ex | Elixir | test/fixtures/elixir/multiple_d_post.ex | csperando/curlconverter | 733f110e5621375701f4424299ccd72e669876f6 | [
"MIT"
] | 536 | 2021-10-06T17:21:25.000Z | 2022-03-31T13:05:48.000Z | test/fixtures/elixir/multiple_d_post.ex | csperando/curlconverter | 733f110e5621375701f4424299ccd72e669876f6 | [
"MIT"
] | 74 | 2021-10-08T13:57:14.000Z | 2022-03-31T06:55:39.000Z | test/fixtures/elixir/multiple_d_post.ex | csperando/curlconverter | 733f110e5621375701f4424299ccd72e669876f6 | [
"MIT"
] | 104 | 2021-10-06T19:36:15.000Z | 2022-03-31T07:34:04.000Z | request = %HTTPoison.Request{
method: :post,
url: "https://localhost:28139/webservices/rest.php",
options: [],
headers: [
{~s|Content-Type|, ~s|application/x-www-form-urlencoded|},
],
params: [],
body: [
{~s|version|, ~s|1.2|},
{~s|auth_user|, ~s|fdgxf|},
{~s|auth_pwd|, ~s|oxfdscds|},
... | 24.944444 | 87 | 0.581292 |
08ce093942f5fc503e866786de80593243144e97 | 19,401 | ex | Elixir | lib/ecto/adapters/sql/sandbox.ex | stevedomin/ecto | 31d1fc4a31bce4c159b0ffe33398be7b1f095f2e | [
"Apache-2.0"
] | null | null | null | lib/ecto/adapters/sql/sandbox.ex | stevedomin/ecto | 31d1fc4a31bce4c159b0ffe33398be7b1f095f2e | [
"Apache-2.0"
] | null | null | null | lib/ecto/adapters/sql/sandbox.ex | stevedomin/ecto | 31d1fc4a31bce4c159b0ffe33398be7b1f095f2e | [
"Apache-2.0"
] | null | null | null | defmodule Ecto.Adapters.SQL.Sandbox do
@moduledoc ~S"""
A pool for concurrent transactional tests.
The sandbox pool is implemented on top of an ownership mechanism.
When started, the pool is in automatic mode, which means the
repository will automatically check connections out as with any
other pool.
Th... | 36.195896 | 114 | 0.685016 |
08ce1f489203f84a730c528948e07f01eae469dc | 1,185 | exs | Elixir | mix.exs | cschmatzler/datamatrix | ac8e0733f8535c1b276276acad9e90e90a53e7aa | [
"MIT"
] | 5 | 2020-02-24T22:31:19.000Z | 2022-02-11T08:57:43.000Z | mix.exs | cschmatzler/datamatrix | ac8e0733f8535c1b276276acad9e90e90a53e7aa | [
"MIT"
] | null | null | null | mix.exs | cschmatzler/datamatrix | ac8e0733f8535c1b276276acad9e90e90a53e7aa | [
"MIT"
] | 1 | 2021-08-05T12:01:43.000Z | 2021-08-05T12:01:43.000Z | defmodule DataMatrix.MixProject do
use Mix.Project
@version "0.1.3"
def project do
[
app: :datamatrix,
version: @version,
elixir: "~> 1.9",
start_permanent: Mix.env() == :prod,
deps: deps(),
description: description(),
package: package(),
escript: escript()
... | 21.944444 | 95 | 0.578903 |
08ce252688ff1314139a798ead76d4e63f10f7e3 | 2,179 | ex | Elixir | lib/erlef_web/html.ex | ferd/website | 400409d05ba91ff2a84179ed9a769196aee8f564 | [
"Apache-2.0"
] | null | null | null | lib/erlef_web/html.ex | ferd/website | 400409d05ba91ff2a84179ed9a769196aee8f564 | [
"Apache-2.0"
] | null | null | null | lib/erlef_web/html.ex | ferd/website | 400409d05ba91ff2a84179ed9a769196aee8f564 | [
"Apache-2.0"
] | null | null | null | defmodule ErlefWeb.HTML do
@moduledoc """
ErlefWeb.HTML - HTML helpers for ErlefWeb
"""
import Phoenix.HTML.Tag
def right_svg_hero(f_opts, opts) when is_list(f_opts) do
right_svg_hero(f_opts ++ opts)
end
def right_svg_hero(text, opts) do
right_svg_hero(text, [{:do, text}] ++ opts)
end
def r... | 27.2375 | 124 | 0.64112 |
08ce2542998e8c360fec126fb30c24da718d2c3f | 533 | exs | Elixir | mix.exs | mazurka/mazurka_dsl | de4b24b5d6a2ffa94aab65af413a9e4771e8815d | [
"MIT"
] | null | null | null | mix.exs | mazurka/mazurka_dsl | de4b24b5d6a2ffa94aab65af413a9e4771e8815d | [
"MIT"
] | 1 | 2015-01-26T06:19:55.000Z | 2015-01-26T06:19:55.000Z | mix.exs | mazurka/mazurka_dsl | de4b24b5d6a2ffa94aab65af413a9e4771e8815d | [
"MIT"
] | null | null | null | defmodule MazurkaDsl.Mixfile do
use Mix.Project
def project do
[app: :mazurka_dsl,
version: "0.1.1",
elixir: "~> 1.0",
description: "DSL for defining mazurka resources",
package: package,
deps: deps]
end
def application do
[applications: [:logger]]
end
defp deps do
[]... | 19.035714 | 68 | 0.602251 |
08ce5d2b8480ca73b4ccc46127fd32946b5d617d | 599 | ex | Elixir | apps/auto_publish/lib/auto_publish/application.ex | isavita/diet-umbrella | 0eee4d0dc4d9567888e4b69ccc7993e95d95ed29 | [
"MIT"
] | 1 | 2020-06-01T21:25:54.000Z | 2020-06-01T21:25:54.000Z | apps/auto_publish/lib/auto_publish/application.ex | isavita/diet-umbrella | 0eee4d0dc4d9567888e4b69ccc7993e95d95ed29 | [
"MIT"
] | 221 | 2019-07-20T17:20:49.000Z | 2021-08-02T06:21:10.000Z | apps/auto_publish/lib/auto_publish/application.ex | isavita/diet-umbrella | 0eee4d0dc4d9567888e4b69ccc7993e95d95ed29 | [
"MIT"
] | null | null | null | defmodule AutoPublish.Application do
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
use Application
def start(_type, _args) do
children = [
# Starts a worker by calling: AutoPublish.Worker.start_link(arg)
# {AutoPublish.Worker, ar... | 28.52381 | 70 | 0.712855 |
08ce7c883dab0ef488d84f42a48ccea41c9eb1e0 | 428 | exs | Elixir | test/day_12_test.exs | robindaumann/aoc-2020 | 63e2dd4cd3062b15fc5be3ec8b3fe75716701f7a | [
"MIT"
] | 1 | 2020-12-19T18:40:00.000Z | 2020-12-19T18:40:00.000Z | test/day_12_test.exs | robindaumann/aoc-2020 | 63e2dd4cd3062b15fc5be3ec8b3fe75716701f7a | [
"MIT"
] | null | null | null | test/day_12_test.exs | robindaumann/aoc-2020 | 63e2dd4cd3062b15fc5be3ec8b3fe75716701f7a | [
"MIT"
] | null | null | null | defmodule Day12Test do
use ExUnit.Case, async: true
require Input
test "part1 input" do
f = Input.path()
assert Day12.part1(f) == 1106
end
test "part1 example" do
f = Input.example()
assert Day12.part1(f) == 25
end
test "part2 input" do
f = Input.path()
assert Day12.part2(f) == ... | 17.12 | 36 | 0.623832 |
08ce83cf7c77f304877540a657e98494d80ed968 | 1,618 | exs | Elixir | test/easter_eggs_test.exs | KRISHITECH/farmbot_os | 4220baf8f3ef930ce3b861b178ca6a76e2fd7591 | [
"MIT"
] | null | null | null | test/easter_eggs_test.exs | KRISHITECH/farmbot_os | 4220baf8f3ef930ce3b861b178ca6a76e2fd7591 | [
"MIT"
] | null | null | null | test/easter_eggs_test.exs | KRISHITECH/farmbot_os | 4220baf8f3ef930ce3b861b178ca6a76e2fd7591 | [
"MIT"
] | null | null | null | defmodule Farmbot.EasterEggsTest do
@moduledoc false
use ExUnit.Case, async: true
setup_all do
write_me = test_json() |> Poison.encode!
File.write!("/tmp/test.json", write_me)
:ok
end
test "starts the server with a path to a file" do
path = "/tmp/test.json"
{:ok, pid} = Farmbot.EasterEggs... | 29.962963 | 85 | 0.618047 |
08ce8ea031bb7b1ddedb54b17d79a46752cb4041 | 245 | exs | Elixir | config/test.exs | mbklein/ueberauth_openam | 159574506b4a8add8d0d19db79e9b2bd1a6aed00 | [
"MIT"
] | null | null | null | config/test.exs | mbklein/ueberauth_openam | 159574506b4a8add8d0d19db79e9b2bd1a6aed00 | [
"MIT"
] | 1 | 2022-02-03T06:45:39.000Z | 2022-02-23T05:30:04.000Z | config/test.exs | nulib/ueberauth_openam | 159574506b4a8add8d0d19db79e9b2bd1a6aed00 | [
"MIT"
] | null | null | null | import Config
config :ueberauth, Ueberauth,
providers: [
openam:
{Ueberauth.Strategy.OpenAM,
[base_url: "https://openam.example.edu/", sso_cookie: "openAMssoToken"]}
]
config :ueberauth_openam, :http_client, MockHTTPoison
| 22.272727 | 79 | 0.706122 |
08ce91f0ad11f49c894f0dbc3bb755306d024bb4 | 203 | ex | Elixir | lib/phone/za.ex | davidkovsky/phone | 83108ab1042efe62778c7363f5d02ef888883408 | [
"Apache-2.0"
] | 97 | 2016-04-05T13:08:41.000Z | 2021-12-25T13:08:34.000Z | lib/phone/za.ex | davidkovsky/phone | 83108ab1042efe62778c7363f5d02ef888883408 | [
"Apache-2.0"
] | 70 | 2016-06-14T00:56:00.000Z | 2022-02-10T19:43:14.000Z | lib/phone/za.ex | davidkovsky/phone | 83108ab1042efe62778c7363f5d02ef888883408 | [
"Apache-2.0"
] | 31 | 2016-04-21T22:26:12.000Z | 2022-01-24T21:40:00.000Z | defmodule Phone.ZA do
@moduledoc false
use Helper.Country
def regex, do: ~r/^(27)()(.{9})/
def country, do: "South Africa"
def a2, do: "ZA"
def a3, do: "ZAF"
matcher(:regex, ["27"])
end
| 15.615385 | 34 | 0.596059 |
08ceb3d619bece42580b6eedf27bff85987054aa | 80 | exs | Elixir | apps/uniflow_web/test/uniflow_web/views/page_view_test.exs | andyl/uniflow | 049050d2e41b8242bb1e6c543d715caa0d0e7f02 | [
"MIT"
] | null | null | null | apps/uniflow_web/test/uniflow_web/views/page_view_test.exs | andyl/uniflow | 049050d2e41b8242bb1e6c543d715caa0d0e7f02 | [
"MIT"
] | 9 | 2021-05-10T18:31:22.000Z | 2021-05-27T12:57:20.000Z | apps/uniflow_web/test/uniflow_web/views/page_view_test.exs | andyl/uniflow | 049050d2e41b8242bb1e6c543d715caa0d0e7f02 | [
"MIT"
] | null | null | null | defmodule UniflowWeb.PageViewTest do
use UniflowWeb.ConnCase, async: true
end
| 20 | 38 | 0.825 |
08cf18a77ae8fd767a6c20cf548808afbb404316 | 511 | exs | Elixir | priv/repo/migrations/20210502100549_create_tips.exs | mcintyre94/CentralTipsBot | 626145478d3516493e72d271b045d1f19275fef5 | [
"MIT"
] | null | null | null | priv/repo/migrations/20210502100549_create_tips.exs | mcintyre94/CentralTipsBot | 626145478d3516493e72d271b045d1f19275fef5 | [
"MIT"
] | null | null | null | priv/repo/migrations/20210502100549_create_tips.exs | mcintyre94/CentralTipsBot | 626145478d3516493e72d271b045d1f19275fef5 | [
"MIT"
] | null | null | null | defmodule Centraltipsbot.Repo.Migrations.CreateTips do
use Ecto.Migration
def change do
create table(:tips, primary_key: false) do
add :id, :binary_id, primary_key: true
add :from_source, :string
add :from_source_id, :string
add :to_source, :string
add :to_source_id, :string
... | 24.333333 | 54 | 0.655577 |
08cf2db8afa0e9f61996d7b5806671b07fd51918 | 4,994 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/order.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/order.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/order.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... | 48.019231 | 170 | 0.659191 |
08cf3e8e7fe1020af883fe1eb7c10af085b8e960 | 2,294 | exs | Elixir | test/lua_scripts/cache2_quick_search_test.exs | fangkunping/micro-server | 3307b605ed33a8c089283274d2713d8ee3798b1a | [
"Apache-2.0"
] | null | null | null | test/lua_scripts/cache2_quick_search_test.exs | fangkunping/micro-server | 3307b605ed33a8c089283274d2713d8ee3798b1a | [
"Apache-2.0"
] | null | null | null | test/lua_scripts/cache2_quick_search_test.exs | fangkunping/micro-server | 3307b605ed33a8c089283274d2713d8ee3798b1a | [
"Apache-2.0"
] | null | null | null | defmodule MicroServerTest.LuaScript.Cache2QuickSearchTest do
use MicroServerTest.MyCase, async: false
test "test gen ms" do
lua_script = ~s|
cache1_table("man", id, name, age)
cache1_table("class", id, math, english)
cache1_table("animal", name, type, age)
cache1_def_query("animal", "q_animal",... | 38.233333 | 96 | 0.61857 |
08cf5a99f8345001b543a358c15d5b3150701183 | 598 | exs | Elixir | programming/elixir/conduit/priv/repo/migrations/20170721110435_create_blog_comment.exs | NomikOS/learning | 268f94605214f6861ef476ca7573e68c068ccbe5 | [
"Unlicense"
] | null | null | null | programming/elixir/conduit/priv/repo/migrations/20170721110435_create_blog_comment.exs | NomikOS/learning | 268f94605214f6861ef476ca7573e68c068ccbe5 | [
"Unlicense"
] | null | null | null | programming/elixir/conduit/priv/repo/migrations/20170721110435_create_blog_comment.exs | NomikOS/learning | 268f94605214f6861ef476ca7573e68c068ccbe5 | [
"Unlicense"
] | null | null | null | defmodule Conduit.Repo.Migrations.CreateBlogComment do
use Ecto.Migration
def change do
create table(:blog_comments, primary_key: false) do
add :uuid, :uuid, primary_key: true
add :body, :text
add :article_uuid, :uuid
add :author_uuid, :uuid
add :author_username, :text
add :... | 26 | 55 | 0.677258 |
08cf8010052c658ec9c8650141394a6ffd2f9ec3 | 1,616 | exs | Elixir | mix.exs | f0rest8/pwned | d2bbd279296c1be4eaf5b5be916321965e230e12 | [
"Apache-2.0"
] | 2 | 2021-10-10T09:58:23.000Z | 2022-02-09T02:09:04.000Z | mix.exs | f0rest8/pwned | d2bbd279296c1be4eaf5b5be916321965e230e12 | [
"Apache-2.0"
] | 1 | 2021-01-27T07:54:07.000Z | 2021-01-27T07:54:07.000Z | mix.exs | f0rest8/pwned | d2bbd279296c1be4eaf5b5be916321965e230e12 | [
"Apache-2.0"
] | null | null | null | defmodule Pwned.MixProject do
use Mix.Project
@version "1.5.2"
def project do
[
app: :pwned_coretheory,
version: @version,
elixir: "~> 1.11",
start_permanent: Mix.env() == :prod,
deps: deps(),
description: description(),
package: package(),
docs: docs(),
... | 23.085714 | 72 | 0.568069 |
08cf92c9a4e987d0ce62f85e34a25e05a7ace3f6 | 574 | ex | Elixir | priv/catalogue/button/example02.ex | RobertDober/surface_catalogue | 05495b00573b4138a167812e33e8d441590e4c89 | [
"MIT"
] | 132 | 2021-02-02T04:03:17.000Z | 2022-03-24T07:02:00.000Z | priv/catalogue/button/example02.ex | RobertDober/surface_catalogue | 05495b00573b4138a167812e33e8d441590e4c89 | [
"MIT"
] | 30 | 2021-02-16T13:18:43.000Z | 2022-03-20T20:25:47.000Z | priv/catalogue/button/example02.ex | RobertDober/surface_catalogue | 05495b00573b4138a167812e33e8d441590e4c89 | [
"MIT"
] | 17 | 2021-03-20T16:23:13.000Z | 2022-03-15T16:21:08.000Z | defmodule SurfaceCatalogue.SampleComponents.Button.Example02 do
@moduledoc """
An example with direction `horizontal` with the content larger than the code
area.
"""
use Surface.Catalogue.Example,
subject: SurfaceCatalogue.SampleComponents.Button,
catalogue: SurfaceCatalogue.SampleCatalogue,
titl... | 28.7 | 110 | 0.712544 |
08cf93d63e5968291341a063a8f884d35b82d646 | 1,644 | ex | Elixir | clients/firebase_rules/lib/google_api/firebase_rules/v1/model/arg.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/firebase_rules/lib/google_api/firebase_rules/v1/model/arg.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/firebase_rules/lib/google_api/firebase_rules/v1/model/arg.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 32.88 | 126 | 0.724453 |
08cfa5cc610eda9c2953962d91803e440ea28050 | 880 | ex | Elixir | clients/content/lib/google_api/content/v2/metadata.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/metadata.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/metadata.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"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.592593 | 74 | 0.757955 |
08cfabb158107a9b7f99d429d1966db3a0b60839 | 357 | ex | Elixir | apps/panacea_beacon/lib/panacea_beacon_web/metrics/setup.ex | timjp87/panacea | 5edddfa12a8f18b040248b9b186479b9ec8aed51 | [
"MIT"
] | null | null | null | apps/panacea_beacon/lib/panacea_beacon_web/metrics/setup.ex | timjp87/panacea | 5edddfa12a8f18b040248b9b186479b9ec8aed51 | [
"MIT"
] | null | null | null | apps/panacea_beacon/lib/panacea_beacon_web/metrics/setup.ex | timjp87/panacea | 5edddfa12a8f18b040248b9b186479b9ec8aed51 | [
"MIT"
] | null | null | null | defmodule BeaconWeb.Metrics.Setup do
@moduledoc """
Common area to set up metrics
"""
require Logger
def setup do
Logger.info("Starting Prometheus Metrics on http://localhost:4000/metrics")
BeaconWeb.Metrics.BeaconInstrumenter.setup()
BeaconWeb.Metrics.NetworkInstrumenter.setup()
BeaconWeb.... | 22.3125 | 79 | 0.745098 |
08cfb8e6b2b9a39168302cf14eab5b1a95d5f289 | 886 | ex | Elixir | clients/cloud_shell/lib/google_api/cloud_shell/v1/metadata.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/cloud_shell/lib/google_api/cloud_shell/v1/metadata.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/cloud_shell/lib/google_api/cloud_shell/v1/metadata.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"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.814815 | 74 | 0.759594 |
08cfcabeca511a84af992dfda6e355c62976f609 | 1,066 | exs | Elixir | test/still/node/process_test.exs | still-ex/still_node | 7ac96b28b4b3c952f10660712c107d7a77f03124 | [
"MIT"
] | 2 | 2021-04-25T07:46:51.000Z | 2021-05-01T07:00:16.000Z | test/still/node/process_test.exs | still-ex/still_node | 7ac96b28b4b3c952f10660712c107d7a77f03124 | [
"MIT"
] | null | null | null | test/still/node/process_test.exs | still-ex/still_node | 7ac96b28b4b3c952f10660712c107d7a77f03124 | [
"MIT"
] | null | null | null | defmodule Still.Node.ProcessTest do
use ExUnit.Case, async: true
alias Still.Node.Process
@js_file Path.dirname(__DIR__)
|> Path.join("../../assets/index.js")
|> Path.expand()
describe "invoke/3" do
test "calls a node function" do
{:ok, _} = Process.start_link(file: ... | 26 | 80 | 0.593809 |
08cfdff827a39c732ba3d6d91f04f5d882a29ab8 | 1,365 | ex | Elixir | lib/console/organizations/organization_resolver.ex | maco2035/console | 2a9a65678b8c671c7d92cdb62dfcfc71b84957c5 | [
"Apache-2.0"
] | 83 | 2018-05-31T14:49:10.000Z | 2022-03-27T16:49:49.000Z | lib/console/organizations/organization_resolver.ex | maco2035/console | 2a9a65678b8c671c7d92cdb62dfcfc71b84957c5 | [
"Apache-2.0"
] | 267 | 2018-05-22T23:19:02.000Z | 2022-03-31T04:31:06.000Z | lib/console/organizations/organization_resolver.ex | maco2035/console | 2a9a65678b8c671c7d92cdb62dfcfc71b84957c5 | [
"Apache-2.0"
] | 18 | 2018-11-20T05:15:54.000Z | 2022-03-28T08:20:13.000Z | defmodule Console.Organizations.OrganizationResolver do
alias Console.Repo
alias Console.Organizations.Organization
alias Console.Organizations
def paginate(%{page: page, page_size: page_size}, %{context: %{current_user: current_user, current_membership: current_membership}}) do
organizations =
case ... | 30.333333 | 137 | 0.648352 |
08d03fa21e212d914d6fa3b92c98d0bf156f1a02 | 6,337 | ex | Elixir | test/elixir/lib/couch.ex | frapa/couchdb | 6c28960f0fe2eec06aca7d58fd73f3c7cdbe1112 | [
"Apache-2.0"
] | 1 | 2022-01-14T20:52:55.000Z | 2022-01-14T20:52:55.000Z | test/elixir/lib/couch.ex | frapa/couchdb | 6c28960f0fe2eec06aca7d58fd73f3c7cdbe1112 | [
"Apache-2.0"
] | 1 | 2021-07-28T02:13:39.000Z | 2021-07-28T02:13:39.000Z | test/elixir/lib/couch.ex | frapa/couchdb | 6c28960f0fe2eec06aca7d58fd73f3c7cdbe1112 | [
"Apache-2.0"
] | null | null | null | defmodule Couch.Session do
@moduledoc """
CouchDB session helpers.
"""
defstruct [:cookie, :error, :base_url]
def new(cookie, error \\ "") do
%Couch.Session{cookie: cookie, error: error}
end
def logout(sess) do
headers = [
"Content-Type": "application/x-www-form-urlencoded",
"X-Couc... | 27.79386 | 81 | 0.633423 |
08d04fa934df705b9a12f21bb9414954bbd9d184 | 362 | ex | Elixir | lib/ex_hl7/composite/default/eip.ex | workpathco/ex_hl7 | 20f2fadb158e903cf1752f69cd0ecdeae377c2c3 | [
"Apache-2.0"
] | null | null | null | lib/ex_hl7/composite/default/eip.ex | workpathco/ex_hl7 | 20f2fadb158e903cf1752f69cd0ecdeae377c2c3 | [
"Apache-2.0"
] | null | null | null | lib/ex_hl7/composite/default/eip.ex | workpathco/ex_hl7 | 20f2fadb158e903cf1752f69cd0ecdeae377c2c3 | [
"Apache-2.0"
] | null | null | null | defmodule HL7.Composite.Default.EIP do
@moduledoc """
2.A.26 EIP - entity identifier pair
Components:
- `placer_assigned_id` (EI)
- `filler_assigned_id` (EI)
"""
use HL7.Composite.Spec
require HL7.Composite.Default.EI, as: EI
composite do
component :placer_assigned_id, type: EI
componen... | 20.111111 | 43 | 0.698895 |
08d05e87650bf68da088fc5fcf6244e89af092de | 1,440 | ex | Elixir | clients/script/lib/google_api/script/v1/model/empty.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/script/lib/google_api/script/v1/model/empty.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/script/lib/google_api/script/v1/model/empty.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 34.285714 | 282 | 0.754861 |
08d06dc641505dc58056050968d6a7d40ea167ac | 16,933 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/api/subaccounts.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/api/subaccounts.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/api/subaccounts.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... | 46.391781 | 497 | 0.622512 |
08d09414f59fffe8806553232c581cb1d478c703 | 4,037 | ex | Elixir | apps/tai/lib/tai/markets/order_book.ex | ihorkatkov/tai | 09f9f15d2c385efe762ae138a8570f1e3fd41f26 | [
"MIT"
] | 1 | 2019-12-19T05:16:26.000Z | 2019-12-19T05:16:26.000Z | apps/tai/lib/tai/markets/order_book.ex | ihorkatkov/tai | 09f9f15d2c385efe762ae138a8570f1e3fd41f26 | [
"MIT"
] | null | null | null | apps/tai/lib/tai/markets/order_book.ex | ihorkatkov/tai | 09f9f15d2c385efe762ae138a8570f1e3fd41f26 | [
"MIT"
] | null | null | null | defmodule Tai.Markets.OrderBook do
@moduledoc """
Manage price points for a venue's order book
"""
use GenServer
alias __MODULE__
defmodule ChangeSet do
@type venue_id :: Tai.Venues.Adapter.venue_id()
@type product_symbol :: Tai.Venues.Product.symbol()
@type side :: :bid | :ask
@type price... | 27.277027 | 77 | 0.622244 |
08d11d2955b1120acf81910416ce13147b0765dc | 1,519 | ex | Elixir | clients/tpu/lib/google_api/tpu/v1/model/empty.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/tpu/lib/google_api/tpu/v1/model/empty.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/tpu/lib/google_api/tpu/v1/model/empty.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... | 30.38 | 76 | 0.737986 |
08d1398f5d11cc14f8c2d0e51ee420d4a7b82746 | 198 | ex | Elixir | lib/hon_graffiti_phoenix/parsers/decorated_string.ex | rjdellecese/hon-graffiti-phoenix | a1ee866ef89f9b8ebb45a644db0b19729a37b07d | [
"MIT"
] | null | null | null | lib/hon_graffiti_phoenix/parsers/decorated_string.ex | rjdellecese/hon-graffiti-phoenix | a1ee866ef89f9b8ebb45a644db0b19729a37b07d | [
"MIT"
] | null | null | null | lib/hon_graffiti_phoenix/parsers/decorated_string.ex | rjdellecese/hon-graffiti-phoenix | a1ee866ef89f9b8ebb45a644db0b19729a37b07d | [
"MIT"
] | null | null | null | defmodule HonGraffitiPhoenix.Parsers.DecoratedString do
@moduledoc """
Provides a struct for strings with hon style markup
"""
@enforce_keys [:body]
defstruct [:body, color: "white"]
end
| 22 | 55 | 0.732323 |
08d14ac38a3a7c54683011b23815c7cef1bc0e6b | 1,591 | ex | Elixir | lib/termDirectory_web/controllers/fact_type_controller.ex | nliechti/termDirectory | 267b3025c14e26575c7a9483692e94a7bf29e5fe | [
"MIT"
] | 1 | 2019-03-15T15:40:24.000Z | 2019-03-15T15:40:24.000Z | lib/termDirectory_web/controllers/fact_type_controller.ex | nliechti/termDirectory | 267b3025c14e26575c7a9483692e94a7bf29e5fe | [
"MIT"
] | null | null | null | lib/termDirectory_web/controllers/fact_type_controller.ex | nliechti/termDirectory | 267b3025c14e26575c7a9483692e94a7bf29e5fe | [
"MIT"
] | null | null | null | defmodule TermDirectoryWeb.FactTypeController do
@moduledoc false
use TermDirectoryWeb, :controller
alias TermDirectory.Modules
alias TermDirectory.Modules.FactType
action_fallback TermDirectoryWeb.FallbackController
@doc """
This catches the search url param and performs a search for
the given ... | 28.927273 | 99 | 0.691389 |
08d169af44794946370fd00fb84da25169809ff6 | 1,801 | exs | Elixir | apps/app_udpcan/test/test_helper.exs | niclaslind/signalbroker-server | afb80514dcbabe561ac2da42adc08843a15c37c5 | [
"Apache-2.0"
] | 17 | 2020-06-20T11:29:43.000Z | 2022-03-21T05:53:06.000Z | apps/app_udpcan/test/test_helper.exs | niclaslind/signalbroker-server | afb80514dcbabe561ac2da42adc08843a15c37c5 | [
"Apache-2.0"
] | 2 | 2020-07-09T10:22:50.000Z | 2020-09-01T14:46:40.000Z | apps/app_udpcan/test/test_helper.exs | niclaslind/signalbroker-server | afb80514dcbabe561ac2da42adc08843a15c37c5 | [
"Apache-2.0"
] | 3 | 2020-07-17T20:04:36.000Z | 2022-01-24T14:19:46.000Z | # Copyright 2019 Volvo Cars
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (t... | 33.981132 | 81 | 0.7196 |
08d172690bea9895b31a60c6bc0c6f7ef728e9f6 | 1,109 | exs | Elixir | config/config.exs | brainlid/tictac | 2e5c5cd44a147e5b7b754860d187fcfda74cf74a | [
"Apache-2.0"
] | 251 | 2021-04-30T04:46:53.000Z | 2022-03-30T06:39:52.000Z | config/config.exs | brainlid/tictac | 2e5c5cd44a147e5b7b754860d187fcfda74cf74a | [
"Apache-2.0"
] | 3 | 2021-05-06T03:01:39.000Z | 2022-03-29T13:04:16.000Z | config/config.exs | brainlid/tictac | 2e5c5cd44a147e5b7b754860d187fcfda74cf74a | [
"Apache-2.0"
] | 21 | 2021-04-30T05:25:57.000Z | 2022-03-01T17:22:21.000Z | # 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
# Configures the endpoint
config :tictac, Tictac... | 33.606061 | 86 | 0.767358 |
08d175df4a1d871a3928cb5640e8e270d269ccb5 | 583 | exs | Elixir | test/types/map_test.exs | bamorim/exchema | 4e11136fae6092e0e64870b455fd6a68cf36603c | [
"Apache-2.0"
] | 21 | 2018-01-06T22:33:20.000Z | 2020-02-07T18:49:22.000Z | test/types/map_test.exs | bamorim/exchema | 4e11136fae6092e0e64870b455fd6a68cf36603c | [
"Apache-2.0"
] | 5 | 2018-02-15T16:39:14.000Z | 2018-11-30T21:06:08.000Z | test/types/map_test.exs | bamorim/exchema | 4e11136fae6092e0e64870b455fd6a68cf36603c | [
"Apache-2.0"
] | 4 | 2018-05-21T21:26:27.000Z | 2019-04-17T16:45:14.000Z | defmodule Exchema.Types.MapTest do
use ExUnit.Case
alias Exchema.Types, as: T
test "it allows only maps" do
a %{}
a %{1 => 2}
r nil
r ""
r 1
end
test "it can check the element type" do
a %{1 => 2}
a %{1 => 2, 3 => 4}
r %{1 => "1"}
r %{"1" => 1}
r %{"1" => "1"}
end
... | 17.666667 | 60 | 0.524871 |
08d182da4e6dc0b96952acd05d8f1b4950e68bcc | 765 | ex | Elixir | lib/ueberauth_example_web/router.ex | is2ei/ueberauth_typetalk_example | 545df8f1312f42dfc256c06cf86779c11028e2e6 | [
"MIT"
] | null | null | null | lib/ueberauth_example_web/router.ex | is2ei/ueberauth_typetalk_example | 545df8f1312f42dfc256c06cf86779c11028e2e6 | [
"MIT"
] | 3 | 2020-07-17T15:34:04.000Z | 2021-05-09T22:10:14.000Z | lib/ueberauth_example_web/router.ex | is2ei/ueberauth_typetalk_example | 545df8f1312f42dfc256c06cf86779c11028e2e6 | [
"MIT"
] | null | null | null | defmodule UeberauthExampleWeb.Router do
@moduledoc false
use UeberauthExampleWeb, :router
require Ueberauth
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_flash
plug :protect_from_forgery
plug :put_secure_browser_headers
end
pipeline :api do
plug :acc... | 22.5 | 57 | 0.70719 |
08d184abb94731570f6a56f62d2bd63d257da533 | 6,935 | exs | Elixir | .credo.exs | oestrich/hcl-elixir | aba949284785f81c4e690755cfec5e557c7bda4d | [
"MIT"
] | 125 | 2020-02-09T17:05:27.000Z | 2022-03-31T03:31:00.000Z | .credo.exs | oestrich/hcl-elixir | aba949284785f81c4e690755cfec5e557c7bda4d | [
"MIT"
] | 19 | 2020-02-20T02:36:38.000Z | 2021-08-03T16:24:19.000Z | .credo.exs | oestrich/hcl-elixir | aba949284785f81c4e690755cfec5e557c7bda4d | [
"MIT"
] | 8 | 2020-04-07T05:06:20.000Z | 2021-11-20T06:43: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 ... | 37.896175 | 97 | 0.60894 |
08d19e7eb57413074b947c74b41e02dd584956bc | 3,164 | ex | Elixir | clients/gke_hub/lib/google_api/gke_hub/v1/model/operation.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/gke_hub/lib/google_api/gke_hub/v1/model/operation.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/gke_hub/lib/google_api/gke_hub/v1/model/operation.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... | 53.627119 | 543 | 0.720607 |
08d1b722ad3b34f0c305d03fdfd276265932f7c2 | 75 | ex | Elixir | phone/lib/phone.ex | ejc123/music_phone | 868dae9fc40224e52a63386672bb0ae8cff2f97d | [
"Apache-2.0"
] | 2 | 2021-04-01T18:18:02.000Z | 2021-04-01T18:18:02.000Z | phone/lib/phone.ex | ejc123/music_phone | 868dae9fc40224e52a63386672bb0ae8cff2f97d | [
"Apache-2.0"
] | null | null | null | phone/lib/phone.ex | ejc123/music_phone | 868dae9fc40224e52a63386672bb0ae8cff2f97d | [
"Apache-2.0"
] | null | null | null | defmodule Phone do
@moduledoc """
Documentation for `Phone`.
"""
end
| 12.5 | 28 | 0.653333 |
08d1ce479e9cc72d5cfc64269c75a3874e4acf43 | 883 | exs | Elixir | bench/bench.decoder.exs | aaronrenner/toml-elixir | c2d17a29a4fd31739f04247cc6d3d9054ec27f7e | [
"Apache-2.0"
] | 176 | 2018-07-29T08:29:40.000Z | 2022-03-30T06:20:39.000Z | bench/bench.decoder.exs | aaronrenner/toml-elixir | c2d17a29a4fd31739f04247cc6d3d9054ec27f7e | [
"Apache-2.0"
] | 26 | 2018-08-02T19:00:56.000Z | 2022-03-18T21:29:05.000Z | bench/bench.decoder.exs | aaronrenner/toml-elixir | c2d17a29a4fd31739f04247cc6d3d9054ec27f7e | [
"Apache-2.0"
] | 22 | 2018-08-02T18:39:52.000Z | 2021-12-25T09:53:58.000Z | decode_jobs = %{
"toml" => fn path -> {:ok, _} = Toml.decode_file(path) end,
# Incorrect implementation of 0.5.0 (expected, but fails during parsing)
# "toml_elixir" => fn path -> {:ok, _} = TomlElixir.parse_file(path) end,
# Doesn't support 0.5.0 spec, or incomplete
# "tomlex" => fn path -> %{} = Tomlex.... | 29.433333 | 82 | 0.605889 |
08d1d33487e6c80ac9d62f19805b29545b0b89f9 | 1,195 | ex | Elixir | lib/rfxi_web/channels/user_socket.ex | andyl/rfxi | 9007c75693d643555c45a20e9634dd4b3867deba | [
"MIT"
] | 1 | 2021-08-10T14:46:10.000Z | 2021-08-10T14:46:10.000Z | lib/rfxi_web/channels/user_socket.ex | andyl/rfxi | 9007c75693d643555c45a20e9634dd4b3867deba | [
"MIT"
] | 2 | 2021-06-22T14:12:37.000Z | 2021-06-28T05:06:23.000Z | lib/rfxi_web/channels/user_socket.ex | andyl/rfxi | 9007c75693d643555c45a20e9634dd4b3867deba | [
"MIT"
] | null | null | null | defmodule RfxiWeb.UserSocket do
use Phoenix.Socket
## Channels
# channel "room:*", RfxiWeb.RoomChannel
channel "ping", RfxiWeb.PingChannel
channel "echo", RfxiWeb.EchoChannel
channel "rfx", RfxiWeb.RfxChannel
# Socket params are passed from the client and can
# be used to verify and authenticate a us... | 30.641026 | 83 | 0.697908 |
08d20b95365abe87247670be7e47f9bf66d348d9 | 408 | ex | Elixir | test/support/bill_item_test_helpers.ex | aramisf/caravan | add305c70ee1ceb4a3dff9a7ed606a182e6f12d7 | [
"MIT"
] | null | null | null | test/support/bill_item_test_helpers.ex | aramisf/caravan | add305c70ee1ceb4a3dff9a7ed606a182e6f12d7 | [
"MIT"
] | null | null | null | test/support/bill_item_test_helpers.ex | aramisf/caravan | add305c70ee1ceb4a3dff9a7ed606a182e6f12d7 | [
"MIT"
] | null | null | null | defmodule Caravan.BillItemTestHelpers do
import Caravan.BillTestHelpers
alias Caravan.Repo
alias Caravan.BillItem
@endpoint Caravan.Endpoint
def valid_bill_item_attrs do
bill = create_bill
%{bill_id: bill.id, amount: 62, description: "Real valid item"}
end
def create_bill_item(attrs \\ valid_... | 20.4 | 67 | 0.75 |
08d22090a53810db1bb719a9493963cb3f58b898 | 14,482 | ex | Elixir | lib/mastani_server/cms/delegates/seeds.ex | DavidAlphaFox/coderplanets_server | 3fd47bf3bba6cc04c9a34698201a60ad2f3e8254 | [
"Apache-2.0"
] | 1 | 2019-05-07T15:03:54.000Z | 2019-05-07T15:03:54.000Z | lib/mastani_server/cms/delegates/seeds.ex | DavidAlphaFox/coderplanets_server | 3fd47bf3bba6cc04c9a34698201a60ad2f3e8254 | [
"Apache-2.0"
] | null | null | null | lib/mastani_server/cms/delegates/seeds.ex | DavidAlphaFox/coderplanets_server | 3fd47bf3bba6cc04c9a34698201a60ad2f3e8254 | [
"Apache-2.0"
] | null | null | null | defmodule MastaniServer.CMS.Delegate.Seeds do
@moduledoc """
seeds data for init, should be called ONLY in new database, like migration
"""
import Helper.Utils, only: [done: 1]
import Ecto.Query, warn: false
@oss_endpoint "https://cps-oss.oss-cn-shanghai.aliyuncs.com"
# import MastaniServer.CMS.Utils.Ma... | 31.211207 | 97 | 0.644731 |
08d248216d8a45bca1ae801687c444199dcc835f | 3,398 | ex | Elixir | lib/utility/cache.ex | zestcreative/elixir-utilities-web | 6d7545b61939a038bb277790bb9a9ccd683dd16a | [
"MIT"
] | 25 | 2020-09-16T22:01:53.000Z | 2022-03-12T02:01:01.000Z | lib/utility/cache.ex | zestcreative/elixir-utilities-web | 6d7545b61939a038bb277790bb9a9ccd683dd16a | [
"MIT"
] | 2 | 2021-07-26T20:30:26.000Z | 2022-03-29T19:51:48.000Z | lib/utility/cache.ex | zestcreative/elixir-utilities-web | 6d7545b61939a038bb277790bb9a9ccd683dd16a | [
"MIT"
] | null | null | null | defmodule Utility.Cache do
@moduledoc """
Interface for caching data. This serves as the layer between the real implementations and mock
implementations, and to hide adapters from application code.
"""
defmodule Error do
defexception [:message, :original_error]
end
@callback multi(list(), Keyword.t(... | 33.643564 | 98 | 0.568275 |
08d27f1b9985b18bc68ff82acbfebc0fbffeebb2 | 5,772 | ex | Elixir | lib/zen_monitor.ex | LaudateCorpus1/zen_monitor | a01589e2df68ad643974b79a05fc3212587eca53 | [
"MIT"
] | 84 | 2020-04-29T12:15:29.000Z | 2022-02-15T09:52:37.000Z | lib/zen_monitor.ex | LaudateCorpus1/zen_monitor | a01589e2df68ad643974b79a05fc3212587eca53 | [
"MIT"
] | null | null | null | lib/zen_monitor.ex | LaudateCorpus1/zen_monitor | a01589e2df68ad643974b79a05fc3212587eca53 | [
"MIT"
] | 7 | 2020-10-10T05:30:14.000Z | 2022-03-17T09:48:54.000Z | defmodule ZenMonitor do
@moduledoc """
ZenMonitor provides efficient monitoring of remote processes and controlled dissemination of
any resulting `:DOWN` messages.
This module provides a convenient client interface which aims to be a drop in replacement for
`Process.monitor/1` and `Process.demonitor/2`
# ... | 41.826087 | 98 | 0.717256 |
08d29281518e4c33428d798b33352c6d2a527f4d | 291 | exs | Elixir | year_2021/test/day_14_test.exs | bschmeck/advent_of_code | cbec98019c6c00444e0f4c7e15e01b1ed9ae6145 | [
"MIT"
] | null | null | null | year_2021/test/day_14_test.exs | bschmeck/advent_of_code | cbec98019c6c00444e0f4c7e15e01b1ed9ae6145 | [
"MIT"
] | null | null | null | year_2021/test/day_14_test.exs | bschmeck/advent_of_code | cbec98019c6c00444e0f4c7e15e01b1ed9ae6145 | [
"MIT"
] | null | null | null | defmodule Day14Test do
use ExUnit.Case, async: true
test "it computes the difference after 10 steps" do
assert Day14.part_one(InputTestFile) == 1588
end
test "it computes the difference after 40 steps" do
assert Day14.part_two(InputTestFile) == 2_188_189_693_529
end
end
| 24.25 | 61 | 0.749141 |
08d2a136ccde309d2f18f7437bc58ec13dc99591 | 1,260 | ex | Elixir | test/support/conn_case.ex | kadmohardy/calculator | 671e0d6c6c8d7ef7fba75b7f47a76aaeb29eaf7e | [
"MIT"
] | null | null | null | test/support/conn_case.ex | kadmohardy/calculator | 671e0d6c6c8d7ef7fba75b7f47a76aaeb29eaf7e | [
"MIT"
] | null | null | null | test/support/conn_case.ex | kadmohardy/calculator | 671e0d6c6c8d7ef7fba75b7f47a76aaeb29eaf7e | [
"MIT"
] | null | null | null | defmodule CalculatorWeb.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... | 28 | 64 | 0.727778 |
08d2b19160ef9ed7cc93b71604a8289430c634d4 | 1,087 | ex | Elixir | lib/queries/table_cache_hit.ex | blockfi/ecto_psql_extras | 27602dfb9d508b8ad3a904b1962d8a837128b0c7 | [
"MIT"
] | 278 | 2020-08-04T12:38:29.000Z | 2022-03-25T15:14:28.000Z | lib/queries/table_cache_hit.ex | blockfi/ecto_psql_extras | 27602dfb9d508b8ad3a904b1962d8a837128b0c7 | [
"MIT"
] | 21 | 2020-09-27T14:38:21.000Z | 2021-11-08T22:44:46.000Z | lib/queries/table_cache_hit.ex | blockfi/ecto_psql_extras | 27602dfb9d508b8ad3a904b1962d8a837128b0c7 | [
"MIT"
] | 15 | 2020-09-28T18:08:25.000Z | 2022-03-22T11:26:21.000Z | defmodule EctoPSQLExtras.TableCacheHit do
@behaviour EctoPSQLExtras
def info do
%{
title: "Calculates your cache hit rate for reading tables",
order_by: [ratio: :desc],
columns: [
%{name: :schema, type: :string},
%{name: :name, type: :string},
%{name: :buffer_hits, typ... | 27.871795 | 77 | 0.620975 |
08d2b550ac8de17ae5579ef1e099588c1addb367 | 1,125 | exs | Elixir | lib/elixir/test/elixir/kernel/case_test.exs | guilleiguaran/elixir | 952052869ff7af0e293d2a7160b1aebc68fc46be | [
"Apache-2.0"
] | 1 | 2015-11-12T19:23:45.000Z | 2015-11-12T19:23:45.000Z | lib/elixir/test/elixir/kernel/case_test.exs | guilleiguaran/elixir | 952052869ff7af0e293d2a7160b1aebc68fc46be | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/kernel/case_test.exs | guilleiguaran/elixir | 952052869ff7af0e293d2a7160b1aebc68fc46be | [
"Apache-2.0"
] | null | null | null | Code.require_file "../test_helper.exs", __DIR__
defmodule Kernel.CaseTest do
use ExUnit.Case, async: true
test :inline_case do
assert (case 1, do: (1 -> :ok; 2 -> :wrong)) == :ok
end
test :nested_variables do
assert vars_case(400, 1) == { 400, 1 }
assert vars_case(401, 1) == { 400, -1 }
asser... | 20.089286 | 55 | 0.496889 |
08d2d93bc0da3badde601d5b15bbe8b792e3d7cb | 4,710 | ex | Elixir | lib/makeup/styles/html/style.ex | tmbb/makeup | 8bdc3b3de49e06a23fa6977e4c84c3be0f0d1d32 | [
"BSD-2-Clause"
] | 115 | 2017-08-01T15:13:13.000Z | 2020-08-20T13:29:38.000Z | lib/makeup/styles/html/style.ex | tmbb/makeup | 8bdc3b3de49e06a23fa6977e4c84c3be0f0d1d32 | [
"BSD-2-Clause"
] | 24 | 2017-08-01T13:33:47.000Z | 2020-09-25T10:12:58.000Z | lib/makeup/styles/html/style.ex | tmbb/makeup | 8bdc3b3de49e06a23fa6977e4c84c3be0f0d1d32 | [
"BSD-2-Clause"
] | 18 | 2017-10-05T17:14:13.000Z | 2020-09-01T10:46:54.000Z | defmodule Makeup.Styles.HTML.Style do
@moduledoc """
The style struct.
"""
defstruct long_name: "",
short_name: "",
background_color: "#ffffff",
highlight_color: "#ffffcc",
styles: []
alias Makeup.Styles.HTML.TokenStyle
require Makeup.Token.Utils
alias Mak... | 34.130435 | 110 | 0.623779 |
08d32c75a0e06a9e9c9070614745b83fa31b5234 | 2,204 | ex | Elixir | lib/phoenix_live_view/socket.ex | gjacobrobertson/phoenix_live_view | 459fd4939126edeaad673277791d460028bdb102 | [
"MIT"
] | 1 | 2021-03-16T17:01:33.000Z | 2021-03-16T17:01:33.000Z | lib/phoenix_live_view/socket.ex | gjacobrobertson/phoenix_live_view | 459fd4939126edeaad673277791d460028bdb102 | [
"MIT"
] | null | null | null | lib/phoenix_live_view/socket.ex | gjacobrobertson/phoenix_live_view | 459fd4939126edeaad673277791d460028bdb102 | [
"MIT"
] | 1 | 2020-09-23T17:11:30.000Z | 2020-09-23T17:11:30.000Z | defmodule Phoenix.LiveView.Socket.AssignsNotInSocket do
@moduledoc """
Struct for socket.assigns while rendering.
The socket assigns are available directly inside the template
as LiveEEx `assigns`, such as `@foo` and `@bar`. Any assign access
should be done using the assigns in the template where proper chan... | 26.238095 | 96 | 0.627042 |
08d334fb9bc118306d609d66fe256890d15feee0 | 1,868 | exs | Elixir | exercises/simple-linked-list/example.exs | darktef/elixir-exercism | bcaae351486b1405f0a01cd33b4d39555546298e | [
"MIT"
] | null | null | null | exercises/simple-linked-list/example.exs | darktef/elixir-exercism | bcaae351486b1405f0a01cd33b4d39555546298e | [
"MIT"
] | null | null | null | exercises/simple-linked-list/example.exs | darktef/elixir-exercism | bcaae351486b1405f0a01cd33b4d39555546298e | [
"MIT"
] | null | null | null | defmodule LinkedList do
@opaque t :: tuple()
@doc """
Construct a new LinkedList
"""
@spec new() :: t
def new() do
{}
end
@doc """
Push an item onto a LinkedList
"""
@spec push(t, any()) :: t
def push(list, elem) do
{elem, list}
end
@doc """
Calculate the length of a LinkedList
... | 21.471264 | 62 | 0.569058 |
08d346fb1b5300917633630107c8d77045787cce | 4,808 | exs | Elixir | test/core_contract_test.exs | aeternity/aepp-sdk-elixir | a001b0eb264665623c9b05de25a71d1f13990679 | [
"0BSD"
] | 19 | 2019-04-16T07:27:53.000Z | 2022-01-22T21:35:02.000Z | test/core_contract_test.exs | aeternity/aepp-sdk-elixir | a001b0eb264665623c9b05de25a71d1f13990679 | [
"0BSD"
] | 131 | 2019-04-05T13:01:37.000Z | 2020-07-09T14:53:34.000Z | test/core_contract_test.exs | aeternity/aepp-sdk-elixir | a001b0eb264665623c9b05de25a71d1f13990679 | [
"0BSD"
] | 5 | 2019-04-11T19:21:42.000Z | 2022-03-06T09:08:34.000Z | defmodule CoreContractTest do
use ExUnit.Case
alias AeppSDK.{Account, Client, Contract, Utils.Keys}
setup_all do
Code.require_file("test_utils.ex", "test/")
TestUtils.get_test_data()
end
@tag :travis_test
test "create, call, call static and decode contract", setup_data do
deploy_result =
... | 25.849462 | 98 | 0.607529 |
08d35b2d6a5c974be2c57fb19fa53b3290068a6c | 54 | ex | Elixir | Elixir/elixirexamples/lib/json.ex | kujua/erlang-elixir-imperative-bookcompanion | 7bc9f033bacd0f8744ec6bcee3932794d594fe69 | [
"Apache-2.0"
] | 8 | 2016-08-14T12:35:16.000Z | 2021-01-26T04:05:31.000Z | Elixir/elixirexamples/lib/json.ex | kujua/erlang-elixir-imperative-bookcompanion | 7bc9f033bacd0f8744ec6bcee3932794d594fe69 | [
"Apache-2.0"
] | null | null | null | Elixir/elixirexamples/lib/json.ex | kujua/erlang-elixir-imperative-bookcompanion | 7bc9f033bacd0f8744ec6bcee3932794d594fe69 | [
"Apache-2.0"
] | 5 | 2016-08-18T22:12:19.000Z | 2020-02-17T18:52:41.000Z | defmodule Json do
def to_json(d) do
d
end
end
| 9 | 19 | 0.648148 |
08d368fc6043fb24b0e78c33d32d2abd72b17e1f | 738 | ex | Elixir | lib/littlechat/room.ex | petermm/littlechat | b8672165ab5e6efd0d501f291de682a40b37a7b7 | [
"MIT"
] | 166 | 2020-07-15T14:47:19.000Z | 2022-03-25T03:57:35.000Z | lib/littlechat/room.ex | Jurshsmith/littlechat | 50fac2f907abbfcd574d31b4d4bdad7e51302da7 | [
"MIT"
] | 12 | 2020-07-01T23:32:47.000Z | 2021-03-18T21:21:28.000Z | lib/littlechat/room.ex | Jurshsmith/littlechat | 50fac2f907abbfcd574d31b4d4bdad7e51302da7 | [
"MIT"
] | 21 | 2020-07-15T14:59:39.000Z | 2022-03-20T21:05:16.000Z | defmodule Littlechat.Room do
@moduledoc """
Schema for creating video chat rooms.
"""
use Ecto.Schema
import Ecto.Changeset
schema "rooms" do
field :title, :string
field :slug, :string
field :active_call, :boolean
timestamps()
end
@fields [:title, :slug, :active_call]
def changese... | 19.945946 | 71 | 0.628726 |
08d3ad3c5b1e9cf8b7f77b989465091203f27c94 | 1,645 | ex | Elixir | apps/firestorm_data/lib/firestorm_data/commands/follow_thread.ex | CircleCI-Public/firestorm | 9ca2c46a2b2377370347ad94d6003eeb77be38d6 | [
"MIT"
] | 10 | 2017-06-28T08:06:52.000Z | 2022-03-19T17:49:21.000Z | apps/firestorm_data/lib/firestorm_data/commands/follow_thread.ex | CircleCI-Public/firestorm | 9ca2c46a2b2377370347ad94d6003eeb77be38d6 | [
"MIT"
] | null | null | null | apps/firestorm_data/lib/firestorm_data/commands/follow_thread.ex | CircleCI-Public/firestorm | 9ca2c46a2b2377370347ad94d6003eeb77be38d6 | [
"MIT"
] | 2 | 2017-10-21T12:01:02.000Z | 2021-01-29T10:26:22.000Z | defmodule FirestormData.Commands.FollowThread do
@moduledoc """
A command to follow a `Thread`. This marks the `Thread` as followed by the `User`.
"""
use FirestormData.Command
alias FirestormData.Follow
embedded_schema do
field :user_id, :integer
field :thread_id, :integer
end
@required_fiel... | 27.881356 | 96 | 0.643161 |
08d3adb27485473196c8cf20c86c71c6cdb5241b | 378 | ex | Elixir | lib/photo_gallery/users/user.ex | rayrrr/fameliphotos | cc928abdc6d761d76113067432e9d6d0fcb2507b | [
"MIT"
] | 6 | 2019-10-08T01:30:08.000Z | 2020-10-01T04:49:33.000Z | lib/photo_gallery/users/user.ex | rayrrr/fameliphotos | cc928abdc6d761d76113067432e9d6d0fcb2507b | [
"MIT"
] | null | null | null | lib/photo_gallery/users/user.ex | rayrrr/fameliphotos | cc928abdc6d761d76113067432e9d6d0fcb2507b | [
"MIT"
] | 1 | 2019-11-08T22:58:31.000Z | 2019-11-08T22:58:31.000Z | defmodule PhotoGallery.Users.User do
use Ecto.Schema
use Pow.Ecto.Schema
use Pow.Extension.Ecto.Schema,
extensions: [PowResetPassword, PowEmailConfirmation]
schema "users" do
pow_user_fields()
timestamps()
end
def changeset(user_or_changeset, attrs) do
user_or_changeset
|> pow_changes... | 19.894737 | 56 | 0.73545 |
08d406f5d8fe183271037f10d8c7996587bdb9b0 | 5,670 | ex | Elixir | lib/brotorift/binary.ex | CDR2003/BrotoriftElixir | 03a5aa83c0745e0ad53c38c24508078af5a8008c | [
"MIT"
] | 2 | 2018-05-30T13:05:55.000Z | 2018-12-12T03:54:05.000Z | lib/brotorift/binary.ex | CDR2003/BrotoriftElixir | 03a5aa83c0745e0ad53c38c24508078af5a8008c | [
"MIT"
] | 1 | 2018-06-11T10:50:13.000Z | 2018-06-11T10:50:13.000Z | lib/brotorift/binary.ex | CDR2003/BrotoriftElixir | 03a5aa83c0745e0ad53c38c24508078af5a8008c | [
"MIT"
] | 1 | 2018-06-11T10:22:42.000Z | 2018-06-11T10:22:42.000Z | defmodule Brotorift.Binary do
# Read
def read_bool(data) do
<<value::8-little-unsigned, data::binary>> = data
{data, value != 0}
end
def read_byte(data) do
<<value::8-little-unsigned, data::binary>> = data
{data, value}
end
def read_short(data) do
<<value::16-little-signed, data::bin... | 24.025424 | 77 | 0.644621 |
08d42c42877bbc117ff774ce8af7a533115dead2 | 776 | exs | Elixir | test/option_parser_test.exs | NickNeck/prove | a3f48f8289f9a56dd57d22c58469227981c8ebb7 | [
"MIT"
] | null | null | null | test/option_parser_test.exs | NickNeck/prove | a3f48f8289f9a56dd57d22c58469227981c8ebb7 | [
"MIT"
] | 2 | 2021-08-01T07:15:41.000Z | 2021-08-09T05:40:30.000Z | test/option_parser_test.exs | hrzndhrn/prove | a3f48f8289f9a56dd57d22c58469227981c8ebb7 | [
"MIT"
] | null | null | null | defmodule OptionParserTest do
use ExUnit.Case
import Prove
describe "next" do
def config, do: [strict: [str: :string, int: :integer, bool: :boolean]]
batch "with strict good options" do
prove OptionParser.next(["--str", "hello", "..."], config()) ==
{:ok, :str, "hello", ["..."]}
... | 36.952381 | 96 | 0.511598 |
08d46055adcb444f03d26e648f4f7b8a1c089474 | 1,402 | ex | Elixir | combo/phxexibee/lib/phxexibee_web/telemetry.ex | exineris/shp_challenge2021 | 2a5447af681259d0ea699b670cf079bd31315cd8 | [
"Apache-2.0"
] | null | null | null | combo/phxexibee/lib/phxexibee_web/telemetry.ex | exineris/shp_challenge2021 | 2a5447af681259d0ea699b670cf079bd31315cd8 | [
"Apache-2.0"
] | null | null | null | combo/phxexibee/lib/phxexibee_web/telemetry.ex | exineris/shp_challenge2021 | 2a5447af681259d0ea699b670cf079bd31315cd8 | [
"Apache-2.0"
] | null | null | null | defmodule PhxexibeeWeb.Telemetry do
use Supervisor
import Telemetry.Metrics
def start_link(arg) do
Supervisor.start_link(__MODULE__, arg, name: __MODULE__)
end
@impl true
def init(_arg) do
children = [
# Telemetry poller will execute the given period measurements
# every 10_000ms. Lear... | 28.612245 | 86 | 0.671184 |
08d47e47c110e27d4176ebed2a0859116571a613 | 2,742 | ex | Elixir | lib/straw_hat_review/reviews/reviews.ex | straw-hat-team/straw_hat_review | 342dbbfac0ac96287111babd59b5321efdd8728d | [
"MIT"
] | 11 | 2018-04-09T06:32:02.000Z | 2019-09-11T14:18:21.000Z | lib/straw_hat_review/reviews/reviews.ex | straw-hat-labs/straw_hat_review | 342dbbfac0ac96287111babd59b5321efdd8728d | [
"MIT"
] | 64 | 2018-03-30T06:21:49.000Z | 2019-11-01T13:57:34.000Z | lib/straw_hat_review/reviews/reviews.ex | straw-hat-labs/straw_hat_review | 342dbbfac0ac96287111babd59b5321efdd8728d | [
"MIT"
] | 1 | 2018-06-21T23:00:00.000Z | 2018-06-21T23:00:00.000Z | defmodule StrawHat.Review.Reviews do
@moduledoc """
Interactor module that defines all the functionality for Reviews management.
"""
use StrawHat.Review.Interactor
alias StrawHat.Review.Review
@doc """
Gets the list of reviews.
"""
@spec get_reviews(Scrivener.Config.t() | keyword()) :: Scrivener.Pag... | 24.265487 | 96 | 0.607586 |
08d47f7cebad549a782a48307163001d4217fb02 | 886 | ex | Elixir | clients/connectors/lib/google_api/connectors/v1/metadata.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/connectors/lib/google_api/connectors/v1/metadata.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/connectors/lib/google_api/connectors/v1/metadata.ex | dazuma/elixir-google-api | 6a9897168008efe07a6081d2326735fe332e522c | [
"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.814815 | 74 | 0.759594 |
08d49820b91947197828d52cd505cde59c6b2deb | 4,235 | ex | Elixir | apps/toniefy/lib/toniex_web/live/recorder_live.ex | benvp/toniefy.me | 9a432380e43f1c9a15ccd1910357d491d64a1dc0 | [
"MIT"
] | 17 | 2021-04-12T10:01:14.000Z | 2022-02-25T17:30:27.000Z | apps/toniefy/lib/toniex_web/live/recorder_live.ex | benvp/toniefy.me | 9a432380e43f1c9a15ccd1910357d491d64a1dc0 | [
"MIT"
] | 1 | 2022-03-09T09:35:00.000Z | 2022-03-09T11:46:14.000Z | apps/toniefy/lib/toniex_web/live/recorder_live.ex | benvp/toniefy | 9a432380e43f1c9a15ccd1910357d491d64a1dc0 | [
"MIT"
] | null | null | null | defmodule ToniexWeb.RecorderLive do
use ToniexWeb, :live_view
alias Toniex.{Accounts, Recorder, Library}
@max_playlists 5
def mount(_params, session, socket) do
socket = assign_defaults(session, socket)
has_active_jobs = Recorder.active_jobs(socket.assigns.current_user) |> Enum.count() > 0
has_... | 31.139706 | 163 | 0.598347 |
08d498a3a82e4445f755f41900cad1d90eb48152 | 2,113 | exs | Elixir | config/dev.exs | brunorafa/hello_world | c20af9a5f797a13867a1a5bf4f53cfb420d6377a | [
"MIT"
] | null | null | null | config/dev.exs | brunorafa/hello_world | c20af9a5f797a13867a1a5bf4f53cfb420d6377a | [
"MIT"
] | null | null | null | config/dev.exs | brunorafa/hello_world | c20af9a5f797a13867a1a5bf4f53cfb420d6377a | [
"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_world, HelloWorldWeb.Endpoint,
http: [por... | 27.802632 | 68 | 0.691434 |
08d4e35aeddd006c63d5d935a2d060818cb488a0 | 1,858 | ex | Elixir | clients/gmail/lib/google_api/gmail/v1/model/delegate.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/gmail/lib/google_api/gmail/v1/model/delegate.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/gmail/lib/google_api/gmail/v1/model/delegate.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"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.407407 | 142 | 0.724973 |
08d4f821540e7adb54479bc34a63684da620a732 | 96 | exs | Elixir | config/config.exs | sudokid-software/dart_sass | c6adf3e6fc655826ac96ac211cf900ccf5b904c0 | [
"MIT"
] | null | null | null | config/config.exs | sudokid-software/dart_sass | c6adf3e6fc655826ac96ac211cf900ccf5b904c0 | [
"MIT"
] | null | null | null | config/config.exs | sudokid-software/dart_sass | c6adf3e6fc655826ac96ac211cf900ccf5b904c0 | [
"MIT"
] | null | null | null | import Config
config :dart_sass,
version: "1.39.0",
another: [
args: ["--version"]
]
| 12 | 23 | 0.583333 |
08d5014e564def4940926aa030fbf420d5d0d4df | 209 | exs | Elixir | config/releases.exs | corybuecker/exlytics | b6bffc682954755d0f2e56c2562bf5654d129e67 | [
"Apache-2.0"
] | null | null | null | config/releases.exs | corybuecker/exlytics | b6bffc682954755d0f2e56c2562bf5654d129e67 | [
"Apache-2.0"
] | 27 | 2020-06-11T08:58:48.000Z | 2022-02-28T23:31:13.000Z | config/releases.exs | corybuecker/exlytics | b6bffc682954755d0f2e56c2562bf5654d129e67 | [
"Apache-2.0"
] | null | null | null | import Config
config :exlytics, host: System.get_env("HOST"), port: System.get_env("PORT")
config :exlytics, Exlytics.Data.Repo,
url: System.get_env("DATABASE_URL"),
migration_default_prefix: "exlytics"
| 26.125 | 76 | 0.755981 |
08d52786765fb42e7b300db79128fcd48c5a168e | 1,614 | ex | Elixir | clients/android_publisher/lib/google_api/android_publisher/v3/model/uses_permission.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/android_publisher/lib/google_api/android_publisher/v3/model/uses_permission.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/android_publisher/lib/google_api/android_publisher/v3/model/uses_permission.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 32.28 | 137 | 0.728005 |
08d555c4dac7351d8e4c113fe3ccb22488794e3f | 1,414 | ex | Elixir | lib/kayrock/serialize.ex | joshuawscott/kayrock | 614b930d568f7d0655a00e8d0d760e3b33314366 | [
"MIT"
] | 24 | 2019-06-26T22:08:13.000Z | 2022-01-27T00:10:41.000Z | lib/kayrock/serialize.ex | joshuawscott/kayrock | 614b930d568f7d0655a00e8d0d760e3b33314366 | [
"MIT"
] | 10 | 2020-04-10T07:48:53.000Z | 2021-03-26T10:50:25.000Z | lib/kayrock/serialize.ex | joshuawscott/kayrock | 614b930d568f7d0655a00e8d0d760e3b33314366 | [
"MIT"
] | 11 | 2019-10-30T12:53:09.000Z | 2022-03-09T23:16:42.000Z | defmodule Kayrock.Serialize do
@moduledoc """
Serializations for primitive types for the kafka protocol
"""
defmacro primitive_types do
quote do
[
:boolean,
:int8,
:int16,
:int32,
:int64,
:string,
:nullable_string,
:bytes,
:nulla... | 30.73913 | 84 | 0.61174 |
08d55fec09947c922f5193d2803fff9352c57f22 | 522 | ex | Elixir | lib/jumubase_web/views/generators/pdf_generator.ex | richeterre/jumubase-phoenix | 7584f890af117d496971b5284bf9de798e22266f | [
"MIT"
] | 2 | 2019-01-20T07:03:30.000Z | 2019-04-11T10:20:14.000Z | lib/jumubase_web/views/generators/pdf_generator.ex | richeterre/jumubase-phoenix | 7584f890af117d496971b5284bf9de798e22266f | [
"MIT"
] | 6 | 2018-09-20T05:52:14.000Z | 2019-04-23T19:27:39.000Z | lib/jumubase_web/views/generators/pdf_generator.ex | richeterre/jumubase-phoenix | 7584f890af117d496971b5284bf9de798e22266f | [
"MIT"
] | null | null | null | defmodule JumubaseWeb.PDFGenerator do
alias JumubaseWeb.PDFGenerator.DefaultEngine
def jury_sheets(performances, round) do
get_engine().jury_sheets(performances, round)
end
def jury_table(performances) do
get_engine().jury_table(performances)
end
def certificates(performances, contest) do
get... | 22.695652 | 59 | 0.754789 |
08d56c77ddd217e519aae77f8ab43be288436ebf | 2,953 | exs | Elixir | test/floki/html/generated/tokenizer/namedEntities_part43_test.exs | nathanl/floki | 042b3f60f4d9a6218ec85d558d13cc6dac30c587 | [
"MIT"
] | 1,778 | 2015-01-07T14:12:31.000Z | 2022-03-29T22:42:48.000Z | test/floki/html/generated/tokenizer/namedEntities_part43_test.exs | nathanl/floki | 042b3f60f4d9a6218ec85d558d13cc6dac30c587 | [
"MIT"
] | 279 | 2015-01-01T15:54:50.000Z | 2022-03-28T18:06:03.000Z | test/floki/html/generated/tokenizer/namedEntities_part43_test.exs | nathanl/floki | 042b3f60f4d9a6218ec85d558d13cc6dac30c587 | [
"MIT"
] | 166 | 2015-04-24T20:48:02.000Z | 2022-03-28T17:29:05.000Z | defmodule Floki.HTML.Generated.Tokenizer.NamedentitiesPart43Test do
use ExUnit.Case, async: true
# NOTE: This file was generated by "mix generate_tokenizer_tests namedEntities.test".
# html5lib-tests rev: e52ff68cc7113a6ef3687747fa82691079bf9cc5
alias Floki.HTML.Tokenizer
test "tokenize/1 Named entity: zdo... | 22.891473 | 87 | 0.629191 |
08d56f605545ec49140472b5710af960a6ab68ba | 1,022 | ex | Elixir | lib/cotoami/exceptions.ex | cruatta/cotoami | 29b7ef66c053cf4e381c6ff65d5fd599066ebabe | [
"Apache-2.0"
] | 337 | 2016-11-28T15:46:58.000Z | 2022-03-01T06:21:25.000Z | lib/cotoami/exceptions.ex | cruatta/cotoami | 29b7ef66c053cf4e381c6ff65d5fd599066ebabe | [
"Apache-2.0"
] | 79 | 2017-02-27T05:44:36.000Z | 2021-12-09T00:28:11.000Z | lib/cotoami/exceptions.ex | cruatta/cotoami | 29b7ef66c053cf4e381c6ff65d5fd599066ebabe | [
"Apache-2.0"
] | 47 | 2018-02-03T01:32:13.000Z | 2021-11-08T07:54:43.000Z | defmodule Cotoami.Exceptions do
@moduledoc """
Exceptions
"""
defmodule NoPermission do
@moduledoc """
raised when the amishi has no permission for the operation
"""
defexception message: "You have no permission to do this operation.",
plug_status: 403
end
defmodule NotFou... | 24.926829 | 78 | 0.658513 |
08d59338555bdf0ca233effdd362d30e05e93ea9 | 1,649 | exs | Elixir | mix.exs | Yoosuke/shopmap | 5a1892850d2c79b4732e3ee0c40a8b7c7c55d20d | [
"MIT"
] | null | null | null | mix.exs | Yoosuke/shopmap | 5a1892850d2c79b4732e3ee0c40a8b7c7c55d20d | [
"MIT"
] | null | null | null | mix.exs | Yoosuke/shopmap | 5a1892850d2c79b4732e3ee0c40a8b7c7c55d20d | [
"MIT"
] | null | null | null | defmodule Shopmap.MixProject do
use Mix.Project
def project do
[
app: :shopmap,
version: "0.1.0",
elixir: "~> 1.5",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix, :gettext] ++ Mix.compilers(),
start_permanent: Mix.env() == :prod,
aliases: aliases(),
... | 26.174603 | 79 | 0.576713 |
08d594d56615d327ce47fda8e67f04cea4b89624 | 1,632 | exs | Elixir | test/erlef/integrations_test.exs | joaquinalcerro/website | 52dc89c70cd0b42127ab233a4c0d10f626d2b698 | [
"Apache-2.0"
] | 71 | 2019-07-02T18:06:15.000Z | 2022-03-09T15:30:08.000Z | test/erlef/integrations_test.exs | joaquinalcerro/website | 52dc89c70cd0b42127ab233a4c0d10f626d2b698 | [
"Apache-2.0"
] | 157 | 2019-07-02T01:21:16.000Z | 2022-03-30T16:08:12.000Z | test/erlef/integrations_test.exs | joaquinalcerro/website | 52dc89c70cd0b42127ab233a4c0d10f626d2b698 | [
"Apache-2.0"
] | 45 | 2019-07-04T05:51:11.000Z | 2022-02-27T11:56:02.000Z | defmodule Erlef.IntegrationsTest do
use Erlef.DataCase
alias Erlef.Integrations
describe "apps" do
alias Erlef.Integrations.App
@audit_opts [audit: %{member_id: Ecto.UUID.generate()}]
@valid_attrs %{name: "some name"}
@update_attrs %{name: "some updated name"}
@invalid_attrs %{name: nil}
... | 28.137931 | 95 | 0.645221 |
08d5c45bc1f473cb9b889aa3afdcb881462735d8 | 973 | ex | Elixir | lib/headers/x_permitted_cross_domain_policies.ex | anotherhale/secure_headers | 04c354351562a2211d4fafa4ef10947cfbfacb14 | [
"Apache-2.0"
] | 44 | 2016-01-14T06:30:37.000Z | 2021-10-21T03:22:55.000Z | lib/headers/x_permitted_cross_domain_policies.ex | anotherhale/plug_secure_headers | 04c354351562a2211d4fafa4ef10947cfbfacb14 | [
"Apache-2.0"
] | 3 | 2017-08-08T17:18:33.000Z | 2018-02-18T06:47:24.000Z | lib/headers/x_permitted_cross_domain_policies.ex | anotherhale/plug_secure_headers | 04c354351562a2211d4fafa4ef10947cfbfacb14 | [
"Apache-2.0"
] | 12 | 2017-01-09T15:18:40.000Z | 2020-12-22T08:53:08.000Z | defmodule SecureHeaders.XPermittedCrossDomainPolicies do
@valid_header ~r/\A(ALL\z|NONE\z|MASTER-ONLY\z|BY-FTP-FILENAME\z|BY-CONTENT-TYPE\z|])/i
@error_msg "Invalid configuration for x-permitted-cross-domain-policies"
def validate(options) when is_list(options) do
case Keyword.has_key?(options, :config... | 31.387097 | 89 | 0.670092 |
08d60486fe843c2bbb06f9ad3499fe25de407bfa | 1,764 | ex | Elixir | clients/service_directory/lib/google_api/service_directory/v1/model/set_iam_policy_request.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/service_directory/lib/google_api/service_directory/v1/model/set_iam_policy_request.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/service_directory/lib/google_api/service_directory/v1/model/set_iam_policy_request.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.531915 | 316 | 0.754535 |
08d60f5f61677ec94fb5f98a8cf9f7ffec92a3c3 | 1,150 | ex | Elixir | clients/games_configuration/lib/google_api/games_configuration/v1configuration/connection.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/games_configuration/lib/google_api/games_configuration/v1configuration/connection.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/games_configuration/lib/google_api/games_configuration/v1configuration/connection.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... | 34.848485 | 76 | 0.750435 |
08d610fd71a2c252f30476c76f674f6ec8a09623 | 359 | exs | Elixir | priv/repo/seeds.exs | hugomd/five_hundred | 74d5b251d4da05ff650d786d5627965114f26447 | [
"MIT"
] | 2 | 2021-06-28T07:06:13.000Z | 2021-07-18T01:13:27.000Z | priv/repo/seeds.exs | hugomd/five_hundred | 74d5b251d4da05ff650d786d5627965114f26447 | [
"MIT"
] | 1 | 2021-06-20T07:49:56.000Z | 2021-06-20T07:49:56.000Z | priv/repo/seeds.exs | hugomd/five_hundred | 74d5b251d4da05ff650d786d5627965114f26447 | [
"MIT"
] | 1 | 2021-07-17T10:23:36.000Z | 2021-07-17T10:23:36.000Z | # Script for populating the database. You can run it as:
#
# mix run priv/repo/seeds.exs
#
# Inside the script, you can read and write to any of your
# repositories directly:
#
# FiveHundred.Repo.insert!(%FiveHundred.SomeSchema{})
#
# We recommend using the bang functions (`insert!`, `update!`
# and so on) as t... | 29.916667 | 61 | 0.713092 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.