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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f7bb62a623d84e2c3f4cb06318e6fb767f6fd136 | 3,330 | ex | Elixir | lib/elixir_ecommerce/product.ex | abmBispo/elixir-ecommerce | 0507f7621d68ba8f0f65409a1a503683b7c0d37b | [
"MIT"
] | 4 | 2020-05-29T03:33:02.000Z | 2021-08-21T23:01:48.000Z | lib/elixir_ecommerce/product.ex | abmBispo/elixir-ecommerce | 0507f7621d68ba8f0f65409a1a503683b7c0d37b | [
"MIT"
] | 2 | 2020-07-29T01:50:46.000Z | 2021-08-31T20:10:47.000Z | lib/elixir_ecommerce/product.ex | abmBispo/elixir-ecommerce | 0507f7621d68ba8f0f65409a1a503683b7c0d37b | [
"MIT"
] | 1 | 2022-03-21T18:13:21.000Z | 2022-03-21T18:13:21.000Z | defmodule ElixirEcommerce.Product do
use Ecto.Schema
import Ecto.Query
import Ecto.Changeset
alias ElixirEcommerce.{
ProductImages,
Repo,
Department,
Product,
ProductImages,
ElasticsearchCluster,
ProductAttribute
}
@required_fields [:name, :amount, :price, :department, :descrip... | 24.485294 | 126 | 0.608408 |
f7bb735ecfbd0483bfeb2dd35f4315cc03e00cad | 5,718 | exs | Elixir | test/ja_serializer/builder/pagination_links_test.exs | mbta/ja_serializer | efb1d4489809e31e4b54b4af9e85f0b3ceeb650b | [
"Apache-2.0"
] | null | null | null | test/ja_serializer/builder/pagination_links_test.exs | mbta/ja_serializer | efb1d4489809e31e4b54b4af9e85f0b3ceeb650b | [
"Apache-2.0"
] | 1 | 2021-06-25T13:28:34.000Z | 2021-06-25T13:28:34.000Z | test/ja_serializer/builder/pagination_links_test.exs | mbta/ja_serializer | efb1d4489809e31e4b54b4af9e85f0b3ceeb650b | [
"Apache-2.0"
] | null | null | null | defmodule JaSerializer.Builder.PaginationLinksTest do
use ExUnit.Case
alias JaSerializer.Builder.PaginationLinks
setup do
on_exit(fn ->
Application.delete_env(:ja_serializer, :page_key)
Application.delete_env(:ja_serializer, :page_base_url)
Application.delete_env(:ja_serializer, :page_size_... | 24.435897 | 84 | 0.588492 |
f7bb740d003ba8d179fba00d39b4e62f69261b40 | 12,863 | ex | Elixir | lib/mapper/cp437.ex | nikneroz/exconv | 31a9f424462f88024af3afb32d2cb80160f07ebf | [
"MIT"
] | null | null | null | lib/mapper/cp437.ex | nikneroz/exconv | 31a9f424462f88024af3afb32d2cb80160f07ebf | [
"MIT"
] | 1 | 2020-07-16T09:38:33.000Z | 2020-07-16T09:38:33.000Z | lib/mapper/cp437.ex | nikneroz/exconv | 31a9f424462f88024af3afb32d2cb80160f07ebf | [
"MIT"
] | null | null | null | defmodule Exconv.Mapper.Cp437 do
def to_unicode(255), do: 160 # <<194, 160>> | " "
def to_unicode(254), do: 9632 # <<226, 150, 160>> | "■"
def to_unicode(253), do: 178 # <<194, 178>> | "²"
def to_unicode(252), do: 8319 # <<226, 129, 191>> | "ⁿ"
def to_unicode(251), do: 8730 # <<226, 136, 154>> | "√"
def to_... | 49.856589 | 57 | 0.519163 |
f7bb76c404004ae46c274841e6f6bc1f0ce360c1 | 28,870 | exs | Elixir | lib/elixir/test/elixir/calendar/datetime_test.exs | doughsay/elixir | 7356a47047d0b54517bd6886603f09b1121dde2b | [
"Apache-2.0"
] | 19,291 | 2015-01-01T02:42:49.000Z | 2022-03-31T21:01:40.000Z | lib/elixir/test/elixir/calendar/datetime_test.exs | doughsay/elixir | 7356a47047d0b54517bd6886603f09b1121dde2b | [
"Apache-2.0"
] | 8,082 | 2015-01-01T04:16:23.000Z | 2022-03-31T22:08:02.000Z | lib/elixir/test/elixir/calendar/datetime_test.exs | doughsay/elixir | 7356a47047d0b54517bd6886603f09b1121dde2b | [
"Apache-2.0"
] | 3,472 | 2015-01-03T04:11:56.000Z | 2022-03-29T02:07:30.000Z | Code.require_file("../test_helper.exs", __DIR__)
Code.require_file("holocene.exs", __DIR__)
Code.require_file("fakes.exs", __DIR__)
defmodule DateTimeTest do
use ExUnit.Case
doctest DateTime
test "sigil_U" do
assert ~U[2000-01-01T12:34:56Z] ==
%DateTime{
calendar: Calendar.ISO,
... | 29.489275 | 143 | 0.519397 |
f7bb8bc19d894b1e1aa332e628b0ab4155318a21 | 713 | exs | Elixir | apps/state/test/state/line_test.exs | fjlanasa/api | c39bc393aea572bfb81754b2ea1adf9dda9ce24a | [
"MIT"
] | 62 | 2019-01-17T12:34:39.000Z | 2022-03-20T21:49:47.000Z | apps/state/test/state/line_test.exs | fjlanasa/api | c39bc393aea572bfb81754b2ea1adf9dda9ce24a | [
"MIT"
] | 375 | 2019-02-13T15:30:50.000Z | 2022-03-30T18:50:41.000Z | apps/state/test/state/line_test.exs | fjlanasa/api | c39bc393aea572bfb81754b2ea1adf9dda9ce24a | [
"MIT"
] | 14 | 2019-01-16T19:35:57.000Z | 2022-02-26T18:55:54.000Z | defmodule State.LineTest do
use ExUnit.Case
alias Model.Line
setup do
State.Line.new_state([])
:ok
end
test "returns nil for unknown line" do
assert State.Line.by_id("1") == nil
end
test "it can add a line and query it" do
line = %Line{
id: "1",
short_name: "1st Line",
... | 19.805556 | 42 | 0.532959 |
f7bba31412baca4c832ad3f2949990685a8ba64c | 643 | ex | Elixir | lib/wasabi_ex/errors.ex | goodhamgupta/wasabi_ex | 77e5e955aaf6be8cd1e1357cf681c6dc58afc258 | [
"Apache-2.0"
] | null | null | null | lib/wasabi_ex/errors.ex | goodhamgupta/wasabi_ex | 77e5e955aaf6be8cd1e1357cf681c6dc58afc258 | [
"Apache-2.0"
] | null | null | null | lib/wasabi_ex/errors.ex | goodhamgupta/wasabi_ex | 77e5e955aaf6be8cd1e1357cf681c6dc58afc258 | [
"Apache-2.0"
] | null | null | null | defmodule WasabiEx.Errors.NotImplemented do
defexception [:reason]
def exception(reason), do: %__MODULE__{reason: reason}
def message(%__MODULE__{reason: reason}), do: "WasabiEx::NotImplemented - #{reason}"
end
defmodule WasabiEx.Errors.ApiError do
defexception [:reason]
def exception(reason), do: %__MODU... | 26.791667 | 86 | 0.74028 |
f7bbcfbfbfb5ea56eb082bd7912fcbd642ea9a44 | 608 | exs | Elixir | mix.exs | bgracie/domain_planner | c12d7b62092dc096777e2f602040fbf5fe1341bc | [
"MIT"
] | null | null | null | mix.exs | bgracie/domain_planner | c12d7b62092dc096777e2f602040fbf5fe1341bc | [
"MIT"
] | null | null | null | mix.exs | bgracie/domain_planner | c12d7b62092dc096777e2f602040fbf5fe1341bc | [
"MIT"
] | null | null | null | defmodule DomainPlanner.Mixfile do
use Mix.Project
def project do
[
app: :domain_planner,
version: "0.1.0",
elixir: "~> 1.5",
start_permanent: Mix.env == :prod,
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
e... | 20.266667 | 88 | 0.572368 |
f7bbfd528f6741ec1649a5dfccb4dc65c9d9e944 | 1,370 | ex | Elixir | lib/todo.ex | TwelveNights/todo | 484b46b800b17abfe9e560c1f11ebf772c6d3bb4 | [
"MIT"
] | null | null | null | lib/todo.ex | TwelveNights/todo | 484b46b800b17abfe9e560c1f11ebf772c6d3bb4 | [
"MIT"
] | null | null | null | lib/todo.ex | TwelveNights/todo | 484b46b800b17abfe9e560c1f11ebf772c6d3bb4 | [
"MIT"
] | null | null | null | defmodule Todo do
@moduledoc """
Documentation for Todo.
"""
alias Todo.{Repo, Task}
require Ecto.Query
@format_string "~4ts~55ts~12ts~n"
@doc """
Hello world.
## Examples
iex> Todo.hello
:world
"""
def add(message) do
%Task{task: message} |> Repo.insert!()
IO.puts("Added... | 17.792208 | 71 | 0.551825 |
f7bc14f8edadb4a8b8deda1b79eb56dfabb63d25 | 7,026 | exs | Elixir | test/opentelemetry_liveview_test.exs | aaronrenner/opentelemetry_liveview | 3f14bcbc39f321170fca2b51477c51adb15aa1ee | [
"Apache-2.0"
] | null | null | null | test/opentelemetry_liveview_test.exs | aaronrenner/opentelemetry_liveview | 3f14bcbc39f321170fca2b51477c51adb15aa1ee | [
"Apache-2.0"
] | null | null | null | test/opentelemetry_liveview_test.exs | aaronrenner/opentelemetry_liveview | 3f14bcbc39f321170fca2b51477c51adb15aa1ee | [
"Apache-2.0"
] | null | null | null | defmodule OpentelemetryLiveViewTest do
use ExUnit.Case, async: false
# require OpenTelemetry.Tracer
# require OpenTelemetry.Span
require Record
# alias PhoenixMeta, as: Meta
for {name, spec} <- Record.extract_all(from_lib: "opentelemetry/include/otel_span.hrl") do
Record.defrecord(name, spec)
end
... | 29.771186 | 100 | 0.550811 |
f7bc3bf51214ebec241a69cfeafae044e8b82c84 | 655 | ex | Elixir | enigma/lib/enigma/score.ex | vmopuri/otp_p1 | 6f52e84a1e2a25e5ad0d922278d491f77ade13c7 | [
"MIT"
] | null | null | null | enigma/lib/enigma/score.ex | vmopuri/otp_p1 | 6f52e84a1e2a25e5ad0d922278d491f77ade13c7 | [
"MIT"
] | null | null | null | enigma/lib/enigma/score.ex | vmopuri/otp_p1 | 6f52e84a1e2a25e5ad0d922278d491f77ade13c7 | [
"MIT"
] | 4 | 2021-06-17T19:06:13.000Z | 2021-06-21T14:57:54.000Z | defmodule Enigma.Score do
defstruct [:red, :white]
def new(answer, move) do
%__MODULE__{red: reds(answer, move), white: whites(Enum.count(answer), reds(answer, move), misses(answer, move))}
end
defp reds(answer, move) do
answer
|> Enum.zip(move)
|> Enum.count(fn {x,y} -> x == y end)
end
... | 21.833333 | 117 | 0.636641 |
f7bc6e90eb2af2b5a7319e10ad0c7507370f3488 | 1,415 | exs | Elixir | mix.exs | mnishiguchi/bit_flagger | 5bec0cef47870861e22554c42354ef30763b58a0 | [
"MIT"
] | 1 | 2021-09-03T23:40:16.000Z | 2021-09-03T23:40:16.000Z | mix.exs | mnishiguchi/bit_flagger | 5bec0cef47870861e22554c42354ef30763b58a0 | [
"MIT"
] | null | null | null | mix.exs | mnishiguchi/bit_flagger | 5bec0cef47870861e22554c42354ef30763b58a0 | [
"MIT"
] | 1 | 2021-09-03T23:43:50.000Z | 2021-09-03T23:43:50.000Z | defmodule BitFlagger.MixProject do
use Mix.Project
@version "0.1.1"
@source_url "https://github.com/mnishiguchi/bit_flagger"
def project do
[
app: :bit_flagger,
version: @version,
description: "Manipulate bit flags in Elixir",
elixir: "~> 1.11",
start_permanent: Mix.env() == ... | 20.507246 | 81 | 0.539223 |
f7bc7ed7bfb85a6f736d4f760c4eea70c32188f4 | 1,816 | exs | Elixir | test/glimesh_web/live/user_live_components/report_button_test.exs | itsUnsmart/glimesh.tv | 22c532184bb5046f6c6d8232e8bd66ba534c01c1 | [
"MIT"
] | null | null | null | test/glimesh_web/live/user_live_components/report_button_test.exs | itsUnsmart/glimesh.tv | 22c532184bb5046f6c6d8232e8bd66ba534c01c1 | [
"MIT"
] | null | null | null | test/glimesh_web/live/user_live_components/report_button_test.exs | itsUnsmart/glimesh.tv | 22c532184bb5046f6c6d8232e8bd66ba534c01c1 | [
"MIT"
] | null | null | null | defmodule GlimeshWeb.UserLive.Components.ReportButtonTest do
use GlimeshWeb.ConnCase
use Bamboo.Test, shared: true
import Phoenix.LiveViewTest
import Glimesh.AccountsFixtures
@component GlimeshWeb.UserLive.Components.ReportButton
defp create_streamer(_) do
%{streamer: streamer_fixture()}
end
des... | 28.375 | 99 | 0.638216 |
f7bc81897faf2743c7bfa63c63a006977f763183 | 4,835 | ex | Elixir | assets/node_modules/phoenix/lib/phoenix/router/scope.ex | xiongxin/web_chat | 4123887993083058a358358595c06970a5ac873f | [
"MIT"
] | null | null | null | assets/node_modules/phoenix/lib/phoenix/router/scope.ex | xiongxin/web_chat | 4123887993083058a358358595c06970a5ac873f | [
"MIT"
] | null | null | null | assets/node_modules/phoenix/lib/phoenix/router/scope.ex | xiongxin/web_chat | 4123887993083058a358358595c06970a5ac873f | [
"MIT"
] | null | null | null | defmodule Phoenix.Router.Scope do
alias Phoenix.Router.Scope
@moduledoc false
@stack :phoenix_router_scopes
@pipes :phoenix_pipeline_scopes
defstruct path: nil, alias: nil, as: nil, pipes: [], host: nil, private: %{}, assigns: %{}
@doc """
Initializes the scope.
"""
def init(module) do
Module.p... | 27.011173 | 107 | 0.633919 |
f7bc8545a7bcecdd942f73a8f88ecfc49d340b78 | 6,856 | ex | Elixir | clients/cloud_functions/lib/google_api/cloud_functions/v1/api/operations.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/cloud_functions/lib/google_api/cloud_functions/v1/api/operations.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/cloud_functions/lib/google_api/cloud_functions/v1/api/operations.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | # 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... | 47.282759 | 669 | 0.690198 |
f7bc8901b830363eb8c2a5190c7eb2688361feb1 | 1,053 | ex | Elixir | create_fun_umbrella/apps/create_fun_cms/test/support/conn_case.ex | Vorzious/CreateFun | 5744c913ef706bc29062fa90a8ec5de12d267dab | [
"MIT"
] | null | null | null | create_fun_umbrella/apps/create_fun_cms/test/support/conn_case.ex | Vorzious/CreateFun | 5744c913ef706bc29062fa90a8ec5de12d267dab | [
"MIT"
] | 9 | 2018-06-17T09:54:03.000Z | 2018-06-17T09:55:20.000Z | create_fun_umbrella/apps/create_fun_cms/test/support/conn_case.ex | Vorzious/CreateFun | 5744c913ef706bc29062fa90a8ec5de12d267dab | [
"MIT"
] | 1 | 2018-06-05T18:38:01.000Z | 2018-06-05T18:38:01.000Z | defmodule CreateFunCms.ConnCase do
@moduledoc """
This module defines the test case to be used by
tests that require setting up a connection.
Such tests rely on `Phoenix.ConnTest` and also
import other functionality to make it easier
to build common datastructures and query the data layer.
Finally, if t... | 27 | 71 | 0.723647 |
f7bc8b79b2d807244b7e499c5a5ead65d1c60910 | 1,482 | exs | Elixir | mix.exs | brettwise/recase | 1e5c6d466be999b923ce2344c54de3c87a157ff0 | [
"MIT"
] | null | null | null | mix.exs | brettwise/recase | 1e5c6d466be999b923ce2344c54de3c87a157ff0 | [
"MIT"
] | null | null | null | mix.exs | brettwise/recase | 1e5c6d466be999b923ce2344c54de3c87a157ff0 | [
"MIT"
] | null | null | null | defmodule Recase.Mixfile do
use Mix.Project
@version "0.6.0"
@url "https://github.com/sobolevn/recase"
def project do
[
app: :recase,
version: @version,
elixir: "~> 1.6",
deps: deps(),
# Hex:
docs: docs(),
description: description(),
package: package(),
... | 21.171429 | 62 | 0.554656 |
f7bd20b0d21a8d381a67bf36745116fea96c6268 | 2,038 | exs | Elixir | apps/ewallet_db/priv/repo/migrations/20180704072742_update_transactions_owners.exs | jimpeebles/ewallet | ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405 | [
"Apache-2.0"
] | null | null | null | apps/ewallet_db/priv/repo/migrations/20180704072742_update_transactions_owners.exs | jimpeebles/ewallet | ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405 | [
"Apache-2.0"
] | null | null | null | apps/ewallet_db/priv/repo/migrations/20180704072742_update_transactions_owners.exs | jimpeebles/ewallet | ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405 | [
"Apache-2.0"
] | null | null | null | # Copyright 2018 OmiseGO Pte Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writi... | 36.392857 | 85 | 0.557409 |
f7bd6503f75b9e46047726e617ef786db854bce3 | 358 | exs | Elixir | config/dev.sample.exs | beamkenya/ex_jenga | 03a936a04d99614043d120d0e3ee787f1b8a5b8d | [
"AML",
"MIT"
] | 1 | 2021-09-14T09:50:22.000Z | 2021-09-14T09:50:22.000Z | config/dev.sample.exs | beamkenya/ex_jenga | 03a936a04d99614043d120d0e3ee787f1b8a5b8d | [
"AML",
"MIT"
] | 15 | 2021-04-23T11:28:49.000Z | 2021-06-23T04:42:35.000Z | config/dev.sample.exs | beamkenya/ex_jenga | 03a936a04d99614043d120d0e3ee787f1b8a5b8d | [
"AML",
"MIT"
] | null | null | null | use Mix.Config
config :tesla, adapter: Tesla.Adapter.Hackney
config :ex_jenga,
# When changed to "false" one will use the live endpoint url
sandbox: true,
jenga: [
api_key: "=======API KEY HERE ========",
username: "=====USERNAME HERE=====",
password: "=======PASSWORD HERE =======",
private_key: ... | 27.538462 | 62 | 0.578212 |
f7bd68ad09a40e63dd6d624d9004ca820b850ffb | 2,353 | ex | Elixir | clients/bigtable_admin/lib/google_api/bigtable_admin/v2/model/list_instances_response.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/bigtable_admin/lib/google_api/bigtable_admin/v2/model/list_instances_response.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/bigtable_admin/lib/google_api/bigtable_admin/v2/model/list_instances_response.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... | 40.568966 | 136 | 0.734807 |
f7bd8207a9f6350ead46c996d11115afb2eb73c0 | 824 | ex | Elixir | lib/amazon_product_advertising_client/item_search.ex | mikeover/elixir-amazon-product-advertising-client | 33bce0e0d9fe9c934eb036a4deb1198ca95aef67 | [
"MIT"
] | null | null | null | lib/amazon_product_advertising_client/item_search.ex | mikeover/elixir-amazon-product-advertising-client | 33bce0e0d9fe9c934eb036a4deb1198ca95aef67 | [
"MIT"
] | null | null | null | lib/amazon_product_advertising_client/item_search.ex | mikeover/elixir-amazon-product-advertising-client | 33bce0e0d9fe9c934eb036a4deb1198ca95aef67 | [
"MIT"
] | 1 | 2018-07-15T05:14:55.000Z | 2018-07-15T05:14:55.000Z | defmodule AmazonProductAdvertisingClient.ItemSearch do
@moduledoc """
The [ItemSearch](http://docs.aws.amazon.com/AWSECommerceService/latest/DG/ItemSearch.html) operation
"""
alias __MODULE__
alias AmazonProductAdvertisingClient.Config
defstruct "Availability": "Available",
"BrowseNode": nil,
... | 25.75 | 102 | 0.657767 |
f7bd9f5d42227af173f974d660f40645e63c5d47 | 1,085 | exs | Elixir | mix.exs | lbighetti/exop | 206381c493610d3161f8fddd4d00028477daa7e3 | [
"MIT"
] | null | null | null | mix.exs | lbighetti/exop | 206381c493610d3161f8fddd4d00028477daa7e3 | [
"MIT"
] | null | null | null | mix.exs | lbighetti/exop | 206381c493610d3161f8fddd4d00028477daa7e3 | [
"MIT"
] | null | null | null | defmodule Exop.Mixfile do
use Mix.Project
@description """
A library that provides a few macros which allow
you to encapsulate business logic and validate incoming
params over predefined contract.
"""
def project do
[
app: :exop,
version: "1.4.2",
elixir: ">= 1.6.0",
name: "E... | 22.142857 | 64 | 0.556682 |
f7bdae862623f3d1b6ed923087cb6f01c3d5a432 | 3,842 | exs | Elixir | elixir/ocr-numbers/test/ocr_numbers_test.exs | paulfioravanti/exercism | b3bf15814b89b0ef50b9bf062b3c800e80e37e75 | [
"MIT"
] | 6 | 2019-06-19T15:43:20.000Z | 2020-07-17T19:46:09.000Z | elixir/ocr-numbers/test/ocr_numbers_test.exs | paulfioravanti/exercism | b3bf15814b89b0ef50b9bf062b3c800e80e37e75 | [
"MIT"
] | 10 | 2021-05-10T21:02:55.000Z | 2021-05-11T20:29:41.000Z | elixir/ocr-numbers/test/ocr_numbers_test.exs | paulfioravanti/exercism | b3bf15814b89b0ef50b9bf062b3c800e80e37e75 | [
"MIT"
] | 1 | 2019-06-25T10:42:14.000Z | 2019-06-25T10:42:14.000Z | defmodule OcrNumbersTest do
use ExUnit.Case
test "Recognizes 0" do
number =
OcrNumbers.convert([
" _ ",
"| |",
"|_|",
" "
])
assert number == {:ok, "0"}
end
test "Recognizes 1" do
number =
OcrNumbers.convert([
" ",
" |",
... | 17.869767 | 90 | 0.367257 |
f7bddb80d8158c2189bd3d0603a49ec7dd5bd5c4 | 49 | ex | Elixir | lib/novel_reader/format/gravitytales.ex | jinyeow/novel_reader | 090c1076110f441d82d99f27f82958b79bf73d63 | [
"MIT"
] | null | null | null | lib/novel_reader/format/gravitytales.ex | jinyeow/novel_reader | 090c1076110f441d82d99f27f82958b79bf73d63 | [
"MIT"
] | null | null | null | lib/novel_reader/format/gravitytales.ex | jinyeow/novel_reader | 090c1076110f441d82d99f27f82958b79bf73d63 | [
"MIT"
] | null | null | null | defmodule NovelReader.Format.Gravitytales do
end
| 16.333333 | 44 | 0.877551 |
f7bdde1c6b59bc1b8ef1b6a1371a1150b97f0b81 | 945 | ex | Elixir | debian/postrm.ex | michaelw/python-ssh-ldap-pubkey-deb | 34d50226d9aa3c47b10247b82d5cbf75984eff5b | [
"MIT"
] | null | null | null | debian/postrm.ex | michaelw/python-ssh-ldap-pubkey-deb | 34d50226d9aa3c47b10247b82d5cbf75984eff5b | [
"MIT"
] | null | null | null | debian/postrm.ex | michaelw/python-ssh-ldap-pubkey-deb | 34d50226d9aa3c47b10247b82d5cbf75984eff5b | [
"MIT"
] | null | null | null | #!/bin/sh
# postrm script for python-ssh-ldap-pubkey
#
# see: dh_installdeb(1)
set -e
# summary of how this script can be called:
# * <postrm> `remove'
# * <postrm> `purge'
# * <old-postrm> `upgrade' <new-version>
# * <new-postrm> `failed-upgrade' <old-version>
# * <new-postrm> `abo... | 24.868421 | 78 | 0.630688 |
f7be6fcca15cd912ac3fa8877548f32f48e84563 | 611 | ex | Elixir | apps/artemis/lib/artemis/contexts/user_recognition/create_user_recognition.ex | artemis-platform/artemis_teams | 9930c3d9528e37b76f0525390e32b66eed7eadde | [
"MIT"
] | 2 | 2020-04-23T02:29:18.000Z | 2020-07-07T13:13:17.000Z | apps/artemis/lib/artemis/contexts/user_recognition/create_user_recognition.ex | chrislaskey/artemis_teams | 9930c3d9528e37b76f0525390e32b66eed7eadde | [
"MIT"
] | 4 | 2020-04-26T20:35:36.000Z | 2020-11-10T22:13:19.000Z | apps/artemis/lib/artemis/contexts/user_recognition/create_user_recognition.ex | chrislaskey/artemis_teams | 9930c3d9528e37b76f0525390e32b66eed7eadde | [
"MIT"
] | null | null | null | defmodule Artemis.CreateUserRecognition do
use Artemis.Context
alias Artemis.Repo
alias Artemis.UserRecognition
def call!(params, user) do
case call(params, user) do
{:error, _} -> raise(Artemis.Context.Error, "Error creating user recognition")
{:ok, result} -> result
end
end
def call... | 21.821429 | 84 | 0.671031 |
f7be80fa2ca0996df0cdf7e826edafb58da83f72 | 35,852 | ex | Elixir | lib/chat_api/slack/helpers.ex | jalford14/papercups | fbe5e5ce4ff51702a0f898c39a9be47c33e9cb4a | [
"MIT"
] | null | null | null | lib/chat_api/slack/helpers.ex | jalford14/papercups | fbe5e5ce4ff51702a0f898c39a9be47c33e9cb4a | [
"MIT"
] | null | null | null | lib/chat_api/slack/helpers.ex | jalford14/papercups | fbe5e5ce4ff51702a0f898c39a9be47c33e9cb4a | [
"MIT"
] | null | null | null | defmodule ChatApi.Slack.Helpers do
@moduledoc """
Utility methods for interacting with Slack
"""
require Logger
alias ChatApi.{
Companies,
Conversations,
Customers,
Slack,
SlackAuthorizations,
SlackConversationThreads,
Users
}
alias ChatApi.Conversations.Conversation
alias... | 33.196296 | 124 | 0.633688 |
f7bea02c8c47fe417efd6c8c41c0b69893be11ad | 4,716 | exs | Elixir | test/grapevine/featured/implementation_test.exs | sb8244/grapevine | effaaa01294d30114090c20f9cc40b8665d834f2 | [
"MIT"
] | null | null | null | test/grapevine/featured/implementation_test.exs | sb8244/grapevine | effaaa01294d30114090c20f9cc40b8665d834f2 | [
"MIT"
] | null | null | null | test/grapevine/featured/implementation_test.exs | sb8244/grapevine | effaaa01294d30114090c20f9cc40b8665d834f2 | [
"MIT"
] | null | null | null | defmodule Grapevine.Featured.ImplementationTest do
use Grapevine.DataCase
alias Grapevine.Featured.Implementation
alias GrapevineData.Games
alias GrapevineData.Statistics
describe "determining the amount of milliseconds to delay" do
test "for the next cycle" do
now =
Timex.now()
|>... | 30.823529 | 96 | 0.624894 |
f7beb83a800249317457ba6930e1bc485f2d4c4c | 3,452 | ex | Elixir | clients/testing/lib/google_api/testing/v1/model/test_specification.ex | MechimCook/elixir-google-api | 0240ede69ec77115076724d223f9d1f849ff1d6b | [
"Apache-2.0"
] | null | null | null | clients/testing/lib/google_api/testing/v1/model/test_specification.ex | MechimCook/elixir-google-api | 0240ede69ec77115076724d223f9d1f849ff1d6b | [
"Apache-2.0"
] | null | null | null | clients/testing/lib/google_api/testing/v1/model/test_specification.ex | MechimCook/elixir-google-api | 0240ede69ec77115076724d223f9d1f849ff1d6b | [
"Apache-2.0"
] | null | null | null | # 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... | 47.287671 | 158 | 0.744496 |
f7beeb841e95570f96f0216cee030b8154baea89 | 13,548 | exs | Elixir | test/ecto/adapters/postgres/sql_test.exs | yrashk/ecto | 1462d5ad4cbb7bf74c292ec405852bc196808daf | [
"Apache-2.0"
] | 1 | 2016-08-15T21:23:28.000Z | 2016-08-15T21:23:28.000Z | test/ecto/adapters/postgres/sql_test.exs | yrashk/ecto | 1462d5ad4cbb7bf74c292ec405852bc196808daf | [
"Apache-2.0"
] | null | null | null | test/ecto/adapters/postgres/sql_test.exs | yrashk/ecto | 1462d5ad4cbb7bf74c292ec405852bc196808daf | [
"Apache-2.0"
] | null | null | null | defmodule Ecto.Adapters.Postgres.SQLTest do
use ExUnit.Case, async: true
import Ecto.Query
alias Ecto.Adapters.Postgres.SQL
alias Ecto.Queryable
alias Ecto.Query.Planner
defmodule Model do
use Ecto.Model
schema "model" do
field :x, :integer
field :y, :integer
has_many :comment... | 36.815217 | 133 | 0.561559 |
f7bf1b02e857e24de9640ba801ff5440cdbe6232 | 1,627 | ex | Elixir | lib/event_serializer/config.ex | quiqupltd/event_serializer | 988a203ddc078e18fbff8183e964fb10e6b0000d | [
"MIT"
] | null | null | null | lib/event_serializer/config.ex | quiqupltd/event_serializer | 988a203ddc078e18fbff8183e964fb10e6b0000d | [
"MIT"
] | 5 | 2018-10-16T17:21:13.000Z | 2019-01-21T15:16:41.000Z | lib/event_serializer/config.ex | quiqupltd/event_serializer | 988a203ddc078e18fbff8183e964fb10e6b0000d | [
"MIT"
] | 2 | 2018-10-12T11:39:56.000Z | 2018-10-16T17:06:35.000Z | defmodule EventSerializer.Config do
@moduledoc """
Helpers for getting config
"""
def topic_names do
:event_serializer
|> EnvConfig.get(:topic_names)
|> topic_names()
end
defp topic_names(nil), do: nil
defp topic_names(list) when is_list(list), do: parse(list)
defp topic_names(csv) when i... | 23.57971 | 91 | 0.70252 |
f7bf2e54edaf9bef5b350b8d9ccce2219f9e0868 | 63 | exs | Elixir | test/test_helper.exs | mattludwigs/harald | 82e67a71d9940d8572fd217eaf29575e81533151 | [
"MIT"
] | null | null | null | test/test_helper.exs | mattludwigs/harald | 82e67a71d9940d8572fd217eaf29575e81533151 | [
"MIT"
] | null | null | null | test/test_helper.exs | mattludwigs/harald | 82e67a71d9940d8572fd217eaf29575e81533151 | [
"MIT"
] | null | null | null | ExUnit.start()
:ok = Application.ensure_started(:stream_data)
| 15.75 | 46 | 0.777778 |
f7bf6a0f895ae8a1e38c866376d6df98091aa862 | 144 | exs | Elixir | rclex_node/test/rclex_node_test.exs | rclex/rcjp2021_demo | 3f8c980b1f50052ed953f02a886d7282c1de4ad4 | [
"Apache-2.0"
] | null | null | null | rclex_node/test/rclex_node_test.exs | rclex/rcjp2021_demo | 3f8c980b1f50052ed953f02a886d7282c1de4ad4 | [
"Apache-2.0"
] | 7 | 2021-05-27T08:40:05.000Z | 2021-11-30T09:25:13.000Z | rclex_node/test/rclex_node_test.exs | rclex/rcjp2021_demo | 3f8c980b1f50052ed953f02a886d7282c1de4ad4 | [
"Apache-2.0"
] | null | null | null | defmodule RclexNodeTest do
use ExUnit.Case
doctest RclexNode
test "greets the world" do
assert RclexNode.hello() == :world
end
end
| 16 | 38 | 0.722222 |
f7bf7486e33c211ca7e72cc0cb647684dac7e4d9 | 311 | ex | Elixir | core/handler/helper_modules.ex | IvanPereyra-23/PaaS | 0179c7b57645473308b0a295a70b6284ed220fbf | [
"Apache-2.0"
] | 1 | 2020-08-27T18:43:11.000Z | 2020-08-27T18:43:11.000Z | core/handler/helper_modules.ex | IvanPereyra-23/PaaS | 0179c7b57645473308b0a295a70b6284ed220fbf | [
"Apache-2.0"
] | null | null | null | core/handler/helper_modules.ex | IvanPereyra-23/PaaS | 0179c7b57645473308b0a295a70b6284ed220fbf | [
"Apache-2.0"
] | 1 | 2020-08-27T18:43:21.000Z | 2020-08-27T18:43:21.000Z | # Copyright(c) 2015-2020 ACCESS CO., LTD. All rights reserved.
defmodule AntikytheraCore.Handler.HelperModules do
use Croma.Struct, recursive_new?: true, fields: [
top: Croma.Atom,
router: Croma.Atom,
logger: Croma.Atom,
metrics_uploader: Croma.Atom,
]
end
| 28.272727 | 62 | 0.639871 |
f7bfabb9e2b0dc4f395801f9760207450c16efce | 6,511 | ex | Elixir | lib/tesla/middleware/logger.ex | jordan0day/tesla | 9aaccf4d8914e8e9d9573bc8b39d36c10fe20b58 | [
"MIT"
] | null | null | null | lib/tesla/middleware/logger.ex | jordan0day/tesla | 9aaccf4d8914e8e9d9573bc8b39d36c10fe20b58 | [
"MIT"
] | null | null | null | lib/tesla/middleware/logger.ex | jordan0day/tesla | 9aaccf4d8914e8e9d9573bc8b39d36c10fe20b58 | [
"MIT"
] | null | null | null | defmodule Tesla.Middleware.Logger.Formatter do
@moduledoc false
# Heavily based on Elixir's Logger.Formatter
# https://github.com/elixir-lang/elixir/blob/v1.6.4/lib/logger/lib/logger/formatter.ex
@default_format "$method $url -> $status ($time ms)"
@keys ~w(method url status time)
@type format :: [atom |... | 26.360324 | 104 | 0.631393 |
f7bfb2a74e5052b063711c3f5c05c66cdaa8c6c6 | 3,524 | exs | Elixir | test/plug/telemetry_test.exs | tomciopp/plug | af7fba19e8bce208129d858b924c7a49b93beef1 | [
"Apache-2.0"
] | null | null | null | test/plug/telemetry_test.exs | tomciopp/plug | af7fba19e8bce208129d858b924c7a49b93beef1 | [
"Apache-2.0"
] | null | null | null | test/plug/telemetry_test.exs | tomciopp/plug | af7fba19e8bce208129d858b924c7a49b93beef1 | [
"Apache-2.0"
] | null | null | null | Application.ensure_all_started(:telemetry)
defmodule Plug.TelemetryTest do
use ExUnit.Case, async: true
use Plug.Test
defmodule MyPlug do
use Plug.Builder
plug Plug.Telemetry, event_prefix: [:pipeline]
plug :send_resp, 200
defp send_resp(conn, status) do
Plug.Conn.send_resp(conn, status,... | 27.107692 | 97 | 0.66714 |
f7bfc73b675b3b00fe8eddf023a78095e0c25cfd | 166 | ex | Elixir | test/e2e/test/support/helpers.ex | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 40 | 2022-01-19T20:27:36.000Z | 2022-03-31T18:17:41.000Z | test/e2e/test/support/helpers.ex | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 42 | 2022-02-03T22:52:43.000Z | 2022-03-26T20:57:32.000Z | test/e2e/test/support/helpers.ex | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 3 | 2022-02-10T04:00:37.000Z | 2022-03-08T22:07:45.000Z | defmodule HologramE2E.Test.Helpers do
alias Hologram.Compiler
def compile(opts \\ []) do
Keyword.put(opts, :force, true)
|> Compiler.compile()
end
end
| 18.444444 | 37 | 0.686747 |
f7bffb84c02a1ce1b08a5947c79a4f125ffe9dff | 1,121 | exs | Elixir | clients/manufacturers/mix.exs | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | null | null | null | clients/manufacturers/mix.exs | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | null | null | null | clients/manufacturers/mix.exs | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | defmodule GoogleApi.Manufacturers.V1.Mixfile do
use Mix.Project
@version "0.1.0"
def project do
[app: :google_api_manufacturers,
version: @version,
elixir: "~> 1.4",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
description: description(),
package: packag... | 23.354167 | 113 | 0.606601 |
f7bfff3039248556b111a98cd98fa4c25acf8c06 | 1,022 | ex | Elixir | backend/lib/aptamer/application.ex | ui-icts/aptamer-web | a28502c22a4e55ab1fbae8bbeaa6b11c9a477c06 | [
"MIT"
] | null | null | null | backend/lib/aptamer/application.ex | ui-icts/aptamer-web | a28502c22a4e55ab1fbae8bbeaa6b11c9a477c06 | [
"MIT"
] | 7 | 2019-02-08T18:28:49.000Z | 2022-02-12T06:44:59.000Z | backend/lib/aptamer/application.ex | ui-icts/aptamer-web | a28502c22a4e55ab1fbae8bbeaa6b11c9a477c06 | [
"MIT"
] | null | null | null | defmodule Aptamer.Application do
use Application
# See http://elixir-lang.org/docs/stable/elixir/Application.html
# for more information on OTP Applications
def start(_type, _args) do
import Supervisor.Spec
# Define workers and child supervisors to be supervised
children = [
# Start the Ecto... | 31.9375 | 85 | 0.720157 |
f7c0435ccd1a688ed2977042323e43ad6cb872c9 | 1,739 | ex | Elixir | clients/notebooks/lib/google_api/notebooks/v1/model/accelerator_config.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/notebooks/lib/google_api/notebooks/v1/model/accelerator_config.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/notebooks/lib/google_api/notebooks/v1/model/accelerator_config.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... | 34.78 | 223 | 0.725129 |
f7c0803456355b50537ffec72e66870995105f77 | 1,401 | ex | Elixir | apps/andi/lib/andi_web/views/display_names.ex | msomji/smartcitiesdata | fc96abc1ef1306f7af6bd42bbcb4ed041a6d922c | [
"Apache-2.0"
] | null | null | null | apps/andi/lib/andi_web/views/display_names.ex | msomji/smartcitiesdata | fc96abc1ef1306f7af6bd42bbcb4ed041a6d922c | [
"Apache-2.0"
] | null | null | null | apps/andi/lib/andi_web/views/display_names.ex | msomji/smartcitiesdata | fc96abc1ef1306f7af6bd42bbcb4ed041a6d922c | [
"Apache-2.0"
] | null | null | null | defmodule AndiWeb.Views.DisplayNames do
@moduledoc false
@display_names %{
id: "ID",
benefitRating: "Benefit",
cadence: "Cadence",
contactEmail: "Maintainer Email",
contactName: "Maintainer Name",
dataJsonUrl: "Data JSON URL",
dataTitle: "Dataset Title",
description: "Description",
... | 25.017857 | 43 | 0.630264 |
f7c082976a0f9f8e16d806c77d4e3457adf5247f | 522 | ex | Elixir | lib/phoenix/supervisor.ex | bitgamma/phoenix | c06fc0fa03a95f2c863c49711da58fedfa56c374 | [
"MIT"
] | null | null | null | lib/phoenix/supervisor.ex | bitgamma/phoenix | c06fc0fa03a95f2c863c49711da58fedfa56c374 | [
"MIT"
] | null | null | null | lib/phoenix/supervisor.ex | bitgamma/phoenix | c06fc0fa03a95f2c863c49711da58fedfa56c374 | [
"MIT"
] | null | null | null | defmodule Phoenix.Supervisor do
use Supervisor
def start_link do
Supervisor.start_link(__MODULE__, [])
end
def init([]) do
code_reloader = Application.get_env(:phoenix, :code_reloader)
[]
|> child(Phoenix.CodeReloader.Server, [], code_reloader)
|> child(Phoenix.Transports.LongPoller.Super... | 26.1 | 75 | 0.697318 |
f7c09b6adf3381c522efc10dd041844855ff0529 | 107 | exs | Elixir | config/ci.exs | am-kantox/tarearbol | 37bac59178940df4c72bf942dd08d8acca505130 | [
"MIT"
] | 49 | 2017-07-22T12:25:46.000Z | 2022-02-12T20:29:36.000Z | config/ci.exs | am-kantox/tarearbol | 37bac59178940df4c72bf942dd08d8acca505130 | [
"MIT"
] | 15 | 2017-07-21T13:17:32.000Z | 2021-02-25T05:40:11.000Z | config/ci.exs | am-kantox/tarearbol | 37bac59178940df4c72bf942dd08d8acca505130 | [
"MIT"
] | 4 | 2017-10-26T10:28:00.000Z | 2019-09-13T08:04:01.000Z | import Config
config :cloister,
sentry: ~w|tarearbol_0@127.0.0.1 inexisting@127.0.0.1|a,
consensus: 4
| 17.833333 | 58 | 0.719626 |
f7c0a24f536503da4b615e719d99979acfc9263c | 207 | exs | Elixir | test/controllers/page_controller_test.exs | obahareth/twitter-relations-grapher | 952df9569d7d794a5446ea4f14cf5e1cde08f5df | [
"MIT"
] | 1 | 2017-06-07T22:53:52.000Z | 2017-06-07T22:53:52.000Z | test/controllers/page_controller_test.exs | obahareth/twitter-relations-grapher | 952df9569d7d794a5446ea4f14cf5e1cde08f5df | [
"MIT"
] | null | null | null | test/controllers/page_controller_test.exs | obahareth/twitter-relations-grapher | 952df9569d7d794a5446ea4f14cf5e1cde08f5df | [
"MIT"
] | null | null | null | defmodule TwitterGrapher.PageControllerTest do
use TwitterGrapher.ConnCase
test "GET /", %{conn: conn} do
conn = get conn, "/"
assert html_response(conn, 200) =~ "Welcome to Phoenix!"
end
end
| 23 | 60 | 0.695652 |
f7c0bf3d39e7a4f3ef3ddb46b4fa858eaa71b206 | 821 | exs | Elixir | priv/repo/migrations/20210524200728_create_users_auth_tables.exs | manojsamanta/stripe-single-product | d0af1cede55ce6ac71100b9f4b5473919c16c884 | [
"MIT"
] | null | null | null | priv/repo/migrations/20210524200728_create_users_auth_tables.exs | manojsamanta/stripe-single-product | d0af1cede55ce6ac71100b9f4b5473919c16c884 | [
"MIT"
] | null | null | null | priv/repo/migrations/20210524200728_create_users_auth_tables.exs | manojsamanta/stripe-single-product | d0af1cede55ce6ac71100b9f4b5473919c16c884 | [
"MIT"
] | null | null | null | defmodule SingleProduct.Repo.Migrations.CreateUsersAuthTables do
use Ecto.Migration
def change do
execute "CREATE EXTENSION IF NOT EXISTS citext", ""
create table(:users) do
add :email, :citext, null: false
add :hashed_password, :string, null: false
add :role, :string, null: false, defau... | 28.310345 | 75 | 0.671133 |
f7c1057ffffcd7e5582964e0518087119e228baa | 1,327 | exs | Elixir | config/config.exs | ftenario/members | 3de1ecc46a93053fa30f7e6845aee05352c9b03e | [
"MIT"
] | null | null | null | config/config.exs | ftenario/members | 3de1ecc46a93053fa30f7e6845aee05352c9b03e | [
"MIT"
] | null | null | null | config/config.exs | ftenario/members | 3de1ecc46a93053fa30f7e6845aee05352c9b03e | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
config :members, Members.Repo,
adapter: Ecto.Adapters.MySQL,
database: "members_repo",
username: "root",
password: "pcm_iot",
hostname: "localhost"
# This configuration i... | 33.175 | 73 | 0.746044 |
f7c1091ddc4e8cae849eb62713d82d5b9de17232 | 614 | exs | Elixir | mix.exs | larskrantz/nervous_gardener | 4e03cc739a19e35943d73503d20e8a2c26af2c63 | [
"MIT"
] | null | null | null | mix.exs | larskrantz/nervous_gardener | 4e03cc739a19e35943d73503d20e8a2c26af2c63 | [
"MIT"
] | null | null | null | mix.exs | larskrantz/nervous_gardener | 4e03cc739a19e35943d73503d20e8a2c26af2c63 | [
"MIT"
] | null | null | null | defmodule NervousGardener.Mixfile do
use Mix.Project
def project do
[apps_path: "apps",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps]
end
# Dependencies can be Hex packages:
#
# {:mydep, "~> 0.3.0"}
#
# Or git/path repositories:
#
# {:mydep... | 22.740741 | 77 | 0.644951 |
f7c11cbcf656c68f815a5589587ac6267c511c9e | 887 | exs | Elixir | ui/mix.exs | ejc123/meeting_indicator | 7557971f1a8fece55b01c25dc633be1bb1b9cc2c | [
"Apache-2.0"
] | null | null | null | ui/mix.exs | ejc123/meeting_indicator | 7557971f1a8fece55b01c25dc633be1bb1b9cc2c | [
"Apache-2.0"
] | null | null | null | ui/mix.exs | ejc123/meeting_indicator | 7557971f1a8fece55b01c25dc633be1bb1b9cc2c | [
"Apache-2.0"
] | null | null | null | defmodule Ui.Mixfile do
use Mix.Project
def project do
[
app: :ui,
version: "0.1.3",
elixir: "~> 1.12",
elixirc_paths: elixirc_paths(Mix.env()),
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
deps: deps(),
aliases: aliases()
]
end
... | 21.634146 | 62 | 0.526494 |
f7c122718db136554d95987404df2d03915869e8 | 2,988 | ex | Elixir | lib/maru/utils.ex | nicooga/maru | e61cf79f11c4d016766efb6778f6ae735445b1b3 | [
"BSD-3-Clause"
] | null | null | null | lib/maru/utils.ex | nicooga/maru | e61cf79f11c4d016766efb6778f6ae735445b1b3 | [
"BSD-3-Clause"
] | null | null | null | lib/maru/utils.ex | nicooga/maru | e61cf79f11c4d016766efb6778f6ae735445b1b3 | [
"BSD-3-Clause"
] | null | null | null | defmodule Maru.Utils do
@moduledoc false
@doc false
def is_blank(s) do
s in [nil, "", '', %{}]
end
@doc false
def upper_camel_case(s) do
s |> String.split("_") |> Enum.map(
fn i -> i |> String.capitalize end
) |> Enum.join("")
end
@doc false
def lower_underscore(s) do
for << i... | 22.984615 | 92 | 0.571954 |
f7c13643e8ced6e7b31b15b4f6f78df7f3be142c | 242 | ex | Elixir | lib/glimesh_web/plugs/user_agent_plug.ex | MemoryLeakDeath/glimesh.tv | 1462c4b939da899f5e3f67c3f28850025d59a10f | [
"MIT"
] | null | null | null | lib/glimesh_web/plugs/user_agent_plug.ex | MemoryLeakDeath/glimesh.tv | 1462c4b939da899f5e3f67c3f28850025d59a10f | [
"MIT"
] | null | null | null | lib/glimesh_web/plugs/user_agent_plug.ex | MemoryLeakDeath/glimesh.tv | 1462c4b939da899f5e3f67c3f28850025d59a10f | [
"MIT"
] | null | null | null | defmodule GlimeshWeb.Plugs.UserAgent do
import Plug.Conn
def init(_opts), do: nil
def call(conn, _opts \\ []) do
user_agent = get_req_header(conn, "user-agent")
conn
|> put_session(:user_agent, "#{user_agent}")
end
end
| 18.615385 | 51 | 0.669421 |
f7c14a047227d38fb229d995a14dd9b3fcb243c5 | 855 | ex | Elixir | lib/orders/report.ex | Sup3r-Us3r/exlivery | 7d8c5c0011f53cdca1fc8345e1b267355995ac35 | [
"MIT"
] | null | null | null | lib/orders/report.ex | Sup3r-Us3r/exlivery | 7d8c5c0011f53cdca1fc8345e1b267355995ac35 | [
"MIT"
] | null | null | null | lib/orders/report.ex | Sup3r-Us3r/exlivery | 7d8c5c0011f53cdca1fc8345e1b267355995ac35 | [
"MIT"
] | null | null | null | defmodule Exlivery.Orders.Report do
alias Exlivery.Orders.Agent, as: OrderAgent
alias Exlivery.Orders.{Item, Order}
def create(filename \\ "report.csv") do
order_list = build_order_list()
File.write(filename, order_list)
{:ok, "Report has been generated"}
end
defp build_order_list() do
Ord... | 24.428571 | 85 | 0.636257 |
f7c17fcc5068dd5b4a409b7949c2a756e96d9a8d | 130 | ex | Elixir | apps/firestorm_web/lib/firestorm_web/web/views/inbound_view.ex | CircleCI-Public/firestorm | 9ca2c46a2b2377370347ad94d6003eeb77be38d6 | [
"MIT"
] | 10 | 2017-06-28T08:06:52.000Z | 2022-03-19T17:49:21.000Z | apps/firestorm_web/lib/firestorm_web/web/views/inbound_view.ex | CircleCI-Public/firestorm | 9ca2c46a2b2377370347ad94d6003eeb77be38d6 | [
"MIT"
] | null | null | null | apps/firestorm_web/lib/firestorm_web/web/views/inbound_view.ex | CircleCI-Public/firestorm | 9ca2c46a2b2377370347ad94d6003eeb77be38d6 | [
"MIT"
] | 2 | 2017-10-21T12:01:02.000Z | 2021-01-29T10:26:22.000Z | defmodule FirestormWeb.Web.InboundView do
use FirestormWeb.Web, :view
def render("sendgrid.json", %{}) do
"ok"
end
end
| 16.25 | 41 | 0.692308 |
f7c18b5f3d6e655803fd6fe5c065c17f3b144917 | 2,529 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/instance_group_managers_list_per_instance_configs_resp.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/instance_group_managers_list_per_instance_configs_resp.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/compute/lib/google_api/compute/v1/model/instance_group_managers_list_per_instance_configs_resp.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... | 40.790323 | 393 | 0.752076 |
f7c19e02fd9de486db74ac9238381959322be73e | 1,491 | ex | Elixir | DL-PR26/DL-PR26 (Pmin=0.0,Pmax=1.0).ELEMENT-IoT.ex | Realscrat/decentlab-decoders | 3ca5006cd85e3772a15a1b3fff3922c50979eeb6 | [
"MIT"
] | 13 | 2020-01-18T22:08:44.000Z | 2022-02-06T14:19:57.000Z | DL-PR26/DL-PR26 (Pmin=0.0,Pmax=1.0).ELEMENT-IoT.ex | johannesE/decentlab-decoders | c290ea1218de2c82d665fdc9f71f16682e12d917 | [
"MIT"
] | 4 | 2019-05-10T07:17:41.000Z | 2021-10-20T16:24:04.000Z | DL-PR26/DL-PR26 (Pmin=0.0,Pmax=1.0).ELEMENT-IoT.ex | johannesE/decentlab-decoders | c290ea1218de2c82d665fdc9f71f16682e12d917 | [
"MIT"
] | 15 | 2019-06-04T06:13:32.000Z | 2022-02-15T07:28:52.000Z |
# https://www.decentlab.com/products/pressure-/-liquid-level-and-temperature-sensor-for-lorawan
defmodule Parser do
use Platform.Parsing.Behaviour
# device-specific parameters
defp pmin(), do: 0.0
defp pmax(), do: 1.0
## test payloads
# 02016700033e8060170c7f
# 02016700020c7f
def fields do
... | 27.611111 | 95 | 0.551979 |
f7c1c0da951bff80feeaee473c6711ab0cb8b56e | 557 | ex | Elixir | lib/geo/wkb/writer.ex | ilyashuma/geo | 92c276a784237affd194b9dd0e3428bdc39ce4f8 | [
"MIT"
] | 1 | 2021-08-23T13:14:22.000Z | 2021-08-23T13:14:22.000Z | lib/geo/wkb/writer.ex | ilyashuma/geo | 92c276a784237affd194b9dd0e3428bdc39ce4f8 | [
"MIT"
] | null | null | null | lib/geo/wkb/writer.ex | ilyashuma/geo | 92c276a784237affd194b9dd0e3428bdc39ce4f8 | [
"MIT"
] | null | null | null | defmodule Geo.WKB.Writer do
@moduledoc false
defstruct wkb: nil, endian: :xdr
def new(:ndr) do
%Geo.WKB.Writer{wkb: "01", endian: :ndr}
end
def new(:xdr) do
%Geo.WKB.Writer{wkb: "00", endian: :xdr}
end
def write(%{endian: :ndr} = writer, value) do
value = Geo.Utils.reverse_byte_order(value)... | 20.62963 | 47 | 0.626571 |
f7c2135af1bc983ba612b66a7575ed3f7e21debe | 1,212 | exs | Elixir | mix.exs | powerhome/clockr | 751ceb03885a1a0a0f20e7443e961d6f1ca0a091 | [
"Apache-2.0"
] | null | null | null | mix.exs | powerhome/clockr | 751ceb03885a1a0a0f20e7443e961d6f1ca0a091 | [
"Apache-2.0"
] | null | null | null | mix.exs | powerhome/clockr | 751ceb03885a1a0a0f20e7443e961d6f1ca0a091 | [
"Apache-2.0"
] | null | null | null | defmodule Clockr.Mixfile do
use Mix.Project
def project do
[app: :clockr,
version: "0.0.1",
elixir: "~> 1.2",
elixirc_paths: elixirc_paths(Mix.env),
compilers: [:phoenix, :gettext] ++ Mix.compilers,
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: de... | 28.857143 | 90 | 0.589109 |
f7c22d574170bec2256db4f3d231019e3f852273 | 2,380 | ex | Elixir | lib/incident.ex | OleMchls/incident | 220e46598719fc50d10c96e5a848080172bf6f9b | [
"MIT"
] | null | null | null | lib/incident.ex | OleMchls/incident | 220e46598719fc50d10c96e5a848080172bf6f9b | [
"MIT"
] | null | null | null | lib/incident.ex | OleMchls/incident | 220e46598719fc50d10c96e5a848080172bf6f9b | [
"MIT"
] | null | null | null | defmodule Incident do
@moduledoc false
use Supervisor
alias Incident.{EventStore, EventStoreSupervisor, ProjectionStore}
@doc """
Starts an instance of Incident with an Incident supervisor.
"""
def start_link(config) do
Supervisor.start_link(__MODULE__, config, name: Incident.Supervisor)
end
@... | 27.045455 | 111 | 0.670588 |
f7c22fb81d08762cf3ab19775a985562d1d9c4a8 | 419 | ex | Elixir | bench/lib/benchmarks.pb.ex | redink/protobuf | 9f3e443ba2f0e808aae8ae075ffb7abeeca75483 | [
"MIT"
] | 4 | 2021-01-16T02:21:44.000Z | 2022-03-04T18:42:18.000Z | bench/lib/benchmarks.pb.ex | redink/protobuf | 9f3e443ba2f0e808aae8ae075ffb7abeeca75483 | [
"MIT"
] | 5 | 2020-04-07T20:22:38.000Z | 2020-09-23T02:28:36.000Z | bench/lib/benchmarks.pb.ex | redink/protobuf | 9f3e443ba2f0e808aae8ae075ffb7abeeca75483 | [
"MIT"
] | 4 | 2020-07-22T23:38:34.000Z | 2021-03-26T18:52:54.000Z | defmodule Benchmarks.BenchmarkDataset do
@moduledoc false
use Protobuf, syntax: :proto3
@type t :: %__MODULE__{
name: String.t(),
message_name: String.t(),
payload: [binary]
}
defstruct [:name, :message_name, :payload]
field :name, 1, type: :string
field :message_name... | 26.1875 | 65 | 0.642005 |
f7c2315112f088f0e99088c8e7311cae2bbbc064 | 1,506 | exs | Elixir | test/saltpack_test.exs | mwmiller/saltpack_ex | 6789dc6a37e7e5c103e78c90d28a0074e9aabb1d | [
"MIT"
] | 9 | 2016-04-12T21:47:02.000Z | 2020-02-03T02:09:16.000Z | test/saltpack_test.exs | mwmiller/saltpack_ex | 6789dc6a37e7e5c103e78c90d28a0074e9aabb1d | [
"MIT"
] | null | null | null | test/saltpack_test.exs | mwmiller/saltpack_ex | 6789dc6a37e7e5c103e78c90d28a0074e9aabb1d | [
"MIT"
] | null | null | null | defmodule SaltpackTest do
use ExUnit.Case
doctest Saltpack
test "encryption cycle" do
{ask, apk} = Saltpack.new_key_pair()
{bsk, bpk} = Saltpack.new_key_pair()
short_message = :crypto.strong_rand_bytes(32)
long_message = :crypto.strong_rand_bytes(8192)
assert short_message |> Saltpack.encry... | 33.466667 | 98 | 0.702523 |
f7c2789c7c8370057bbdfd3dc671471508d7763f | 12,909 | exs | Elixir | priv/repo/migrations/20200310193550_init_core_schemas.exs | malav2110/oli-torus | 8af64e762a7c8a2058bd27a7ab8e96539ffc055f | [
"MIT"
] | 45 | 2020-04-17T15:40:27.000Z | 2022-03-25T00:13:30.000Z | priv/repo/migrations/20200310193550_init_core_schemas.exs | malav2110/oli-torus | 8af64e762a7c8a2058bd27a7ab8e96539ffc055f | [
"MIT"
] | 944 | 2020-02-13T02:37:01.000Z | 2022-03-31T17:50:07.000Z | priv/repo/migrations/20200310193550_init_core_schemas.exs | malav2110/oli-torus | 8af64e762a7c8a2058bd27a7ab8e96539ffc055f | [
"MIT"
] | 23 | 2020-07-28T03:36:13.000Z | 2022-03-17T14:29:02.000Z | defmodule Oli.Repo.Migrations.InitCoreSchemas do
use Ecto.Migration
def change do
create table(:resource_types) do
timestamps(type: :timestamptz)
add :type, :string
end
create table(:scoring_strategies) do
timestamps(type: :timestamptz)
add :type, :string
end
create ta... | 31.03125 | 99 | 0.673096 |
f7c29e2264b47b43d2189f3a8663d816e6b1beeb | 3,325 | ex | Elixir | clients/firestore/lib/google_api/firestore/v1/model/google_firestore_admin_v1_database.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/firestore/lib/google_api/firestore/v1/model/google_firestore_admin_v1_database.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/firestore/lib/google_api/firestore/v1/model/google_firestore_admin_v1_database.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... | 53.629032 | 652 | 0.726617 |
f7c2b52b50a7a73927931d3dda070cb5c789ec19 | 1,489 | exs | Elixir | mix.exs | Deepidoo/axioncable | 99e860e12418b4b0f4661824b300a04406504253 | [
"MIT"
] | null | null | null | mix.exs | Deepidoo/axioncable | 99e860e12418b4b0f4661824b300a04406504253 | [
"MIT"
] | null | null | null | mix.exs | Deepidoo/axioncable | 99e860e12418b4b0f4661824b300a04406504253 | [
"MIT"
] | null | null | null | defmodule Axioncable.MixProject do
use Mix.Project
def project do
[
app: :axioncable,
version: "0.2.5",
elixir: "~> 1.5",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix, :gettext] ++ Mix.compilers(),
start_permanent: Mix.env() == :prod,
description: desc... | 24.016129 | 83 | 0.572196 |
f7c2de84388e262af8d3ef151893561313cf9799 | 4,923 | exs | Elixir | test/absinthe/phase/document/arguments/coerce_lists_test.exs | TheRealReal/absinthe | 6eae5bc36283e58f42d032b8afd90de3ad64f97b | [
"MIT"
] | 4,101 | 2016-03-02T03:49:20.000Z | 2022-03-31T05:46:01.000Z | test/absinthe/phase/document/arguments/coerce_lists_test.exs | TheRealReal/absinthe | 6eae5bc36283e58f42d032b8afd90de3ad64f97b | [
"MIT"
] | 889 | 2016-03-02T16:06:59.000Z | 2022-03-31T20:24:12.000Z | test/absinthe/phase/document/arguments/coerce_lists_test.exs | TheRealReal/absinthe | 6eae5bc36283e58f42d032b8afd90de3ad64f97b | [
"MIT"
] | 564 | 2016-03-02T07:49:59.000Z | 2022-03-06T14:40:59.000Z | defmodule Absinthe.Phase.Document.Arguments.CoerceListsTest do
use Absinthe.PhaseCase,
phase: Absinthe.Phase.Document.Arguments.CoerceLists,
schema: __MODULE__.Schema,
async: true
alias Absinthe.Blueprint
defmodule Schema do
use Absinthe.Schema
query do
field :foo_int_list, :foo do
... | 31.76129 | 98 | 0.592931 |
f7c2e09da0f2b5a5f59093da17f1110f48220ec8 | 1,739 | ex | Elixir | clients/iam_credentials/lib/google_api/iam_credentials/v1/model/generate_identity_binding_access_token_response.ex | chingor13/elixir-google-api | 85e13fa25c4c9f4618bb463ab4c79245fc6d2a7b | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/iam_credentials/lib/google_api/iam_credentials/v1/model/generate_identity_binding_access_token_response.ex | chingor13/elixir-google-api | 85e13fa25c4c9f4618bb463ab4c79245fc6d2a7b | [
"Apache-2.0"
] | null | null | null | clients/iam_credentials/lib/google_api/iam_credentials/v1/model/generate_identity_binding_access_token_response.ex | chingor13/elixir-google-api | 85e13fa25c4c9f4618bb463ab4c79245fc6d2a7b | [
"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 ... | 31.053571 | 89 | 0.732605 |
f7c2e8959df134c8344a820ed7ab9b01b76e44ad | 2,672 | ex | Elixir | lib/new_relic/harvest/collector/metric/harvester.ex | simonprev/elixir_agent | 56e6bf32259706ba45f3a158079f8e5a26f28b91 | [
"Apache-2.0"
] | null | null | null | lib/new_relic/harvest/collector/metric/harvester.ex | simonprev/elixir_agent | 56e6bf32259706ba45f3a158079f8e5a26f28b91 | [
"Apache-2.0"
] | null | null | null | lib/new_relic/harvest/collector/metric/harvester.ex | simonprev/elixir_agent | 56e6bf32259706ba45f3a158079f8e5a26f28b91 | [
"Apache-2.0"
] | null | null | null | defmodule NewRelic.Harvest.Collector.Metric.Harvester do
use GenServer
@moduledoc false
alias NewRelic.Harvest.Collector
def start_link(_) do
GenServer.start_link(__MODULE__, [])
end
def init(_) do
{:ok,
%{
start_time: System.system_time(),
start_time_mono: System.monotonic_ti... | 25.207547 | 87 | 0.656811 |
f7c2eafaab8b6e630e095af946e4f22c974dd89e | 1,605 | exs | Elixir | mix.exs | szTheory/coverex | 9a6806a01ddd96d802bd0332bffdf29e235df334 | [
"Apache-2.0"
] | 107 | 2015-02-09T21:37:47.000Z | 2021-09-07T16:27:23.000Z | mix.exs | szTheory/coverex | 9a6806a01ddd96d802bd0332bffdf29e235df334 | [
"Apache-2.0"
] | 35 | 2015-02-09T21:07:16.000Z | 2022-01-15T13:29:22.000Z | mix.exs | szTheory/coverex | 9a6806a01ddd96d802bd0332bffdf29e235df334 | [
"Apache-2.0"
] | 35 | 2015-05-04T16:12:13.000Z | 2021-01-20T12:11:57.000Z | defmodule Coverex.Mixfile do
use Mix.Project
def project do
[app: :coverex,
version: "1.5.1-dev",
elixir: ">= 1.6.0",
package: package(),
name: "Coverex - Coverage Reports for Elixir",
source_url: "https://github.com/alfert/coverex",
homepage_url: "https://github.com/alfert/covere... | 28.157895 | 90 | 0.618069 |
f7c2eec11e2aaeee8174c938b7ec9ac5117ddc93 | 1,971 | ex | Elixir | clients/you_tube/lib/google_api/you_tube/v3/model/comment.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | null | null | null | clients/you_tube/lib/google_api/you_tube/v3/model/comment.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | null | null | null | clients/you_tube/lib/google_api/you_tube/v3/model/comment.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 34.578947 | 138 | 0.718417 |
f7c2ef08a6f38068e5135887bbdb6b5358e64d34 | 110 | exs | Elixir | test/web3_test.exs | wuminzhe/web3.ex | 3f34c6d59d17b54dfd743e6edf20921f6938a404 | [
"MIT"
] | null | null | null | test/web3_test.exs | wuminzhe/web3.ex | 3f34c6d59d17b54dfd743e6edf20921f6938a404 | [
"MIT"
] | null | null | null | test/web3_test.exs | wuminzhe/web3.ex | 3f34c6d59d17b54dfd743e6edf20921f6938a404 | [
"MIT"
] | null | null | null | defmodule Web3Test do
use ExUnit.Case
doctest Web3
test "the truth" do
assert 1 + 1 == 2
end
end
| 12.222222 | 21 | 0.654545 |
f7c2f409b57f06e649574f157ec3978a357f161c | 134 | ex | Elixir | apps/store/lib/staxx/store/chains.ex | makerdao/qa_backend_gateway | 38e9a3f3f4b66212f1ee9d38b3b698a2a1f9a809 | [
"Apache-2.0"
] | 1 | 2020-10-23T19:25:27.000Z | 2020-10-23T19:25:27.000Z | apps/store/lib/staxx/store/chains.ex | makerdao/qa_backend_gateway | 38e9a3f3f4b66212f1ee9d38b3b698a2a1f9a809 | [
"Apache-2.0"
] | 5 | 2019-01-11T11:48:08.000Z | 2019-01-16T17:29:23.000Z | apps/store/lib/staxx/store/chains.ex | makerdao/qa_backend_gateway | 38e9a3f3f4b66212f1ee9d38b3b698a2a1f9a809 | [
"Apache-2.0"
] | 7 | 2019-10-09T05:49:52.000Z | 2022-03-23T16:48:45.000Z | defmodule Staxx.Store.Chains do
@moduledoc """
Module that will handle most of actions regarding work with chains model
"""
end
| 22.333333 | 74 | 0.746269 |
f7c2f972e2774f86a67a89fda7ecfc6aa5b13827 | 505 | ex | Elixir | lib/meeseeks/selector/element/attribute/value_contains.ex | RichMorin/meeseeks | d52a15a0b78acfc4d7b979d1df6e146482dc3a10 | [
"Apache-2.0",
"MIT"
] | 291 | 2017-03-27T15:53:36.000Z | 2022-03-14T23:01:42.000Z | lib/meeseeks/selector/element/attribute/value_contains.ex | RichMorin/meeseeks | d52a15a0b78acfc4d7b979d1df6e146482dc3a10 | [
"Apache-2.0",
"MIT"
] | 70 | 2017-03-30T23:32:34.000Z | 2021-06-27T06:26:28.000Z | lib/meeseeks/selector/element/attribute/value_contains.ex | RichMorin/meeseeks | d52a15a0b78acfc4d7b979d1df6e146482dc3a10 | [
"Apache-2.0",
"MIT"
] | 23 | 2017-06-18T10:29:04.000Z | 2021-11-04T13:08:12.000Z | defmodule Meeseeks.Selector.Element.Attribute.ValueContains do
use Meeseeks.Selector
@moduledoc false
alias Meeseeks.Document
alias Meeseeks.Selector.Element.Attribute.Helpers
defstruct attribute: nil, value: nil
@impl true
def match(selector, %Document.Element{} = element, _document, _context) do
... | 25.25 | 76 | 0.760396 |
f7c2fdd87d9ca3d94f24b3ed3702dab830773cf4 | 708 | ex | Elixir | lib/detect_web/gettext.ex | serokellcao/preact-phoenix | 6094c0db9411231adb053f2dc351b447dc53732a | [
"MIT"
] | null | null | null | lib/detect_web/gettext.ex | serokellcao/preact-phoenix | 6094c0db9411231adb053f2dc351b447dc53732a | [
"MIT"
] | 2 | 2021-03-10T04:41:11.000Z | 2021-05-11T00:41:00.000Z | lib/detect_web/gettext.ex | serokellcao/preact-phoenix | 6094c0db9411231adb053f2dc351b447dc53732a | [
"MIT"
] | null | null | null | defmodule DetectWeb.Gettext do
@moduledoc """
A module providing Internationalization with a gettext-based API.
By using [Gettext](https://hexdocs.pm/gettext),
your module gains a set of macros for translations, for example:
import DetectWeb.Gettext
# Simple translation
gettext("Here is the... | 28.32 | 72 | 0.676554 |
f7c302b7740c2bb81b61cd550631482c07756494 | 1,007 | exs | Elixir | config/config.exs | DeathstarNovember/legends | 8354f83942f0275f484e66d883413f308c013793 | [
"Unlicense"
] | null | null | null | config/config.exs | DeathstarNovember/legends | 8354f83942f0275f484e66d883413f308c013793 | [
"Unlicense"
] | 6 | 2019-11-20T19:31:23.000Z | 2021-09-02T02:34:05.000Z | config/config.exs | DeathstarNovember/legends | 8354f83942f0275f484e66d883413f308c013793 | [
"Unlicense"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
#
# This configuration file is loaded before any dependency and
# is restricted to this project.
# General application configuration
use Mix.Config
config :legends,
ecto_repos: [Legends.Repo]
#... | 32.483871 | 86 | 0.769613 |
f7c33737a510264d519931d64eebd561a6a976b3 | 132 | exs | Elixir | config/config.exs | MaethorNaur/forget | 8ce8adfcbf88a48d7adabc03c4815f5777e75f03 | [
"MIT"
] | null | null | null | config/config.exs | MaethorNaur/forget | 8ce8adfcbf88a48d7adabc03c4815f5777e75f03 | [
"MIT"
] | null | null | null | config/config.exs | MaethorNaur/forget | 8ce8adfcbf88a48d7adabc03c4815f5777e75f03 | [
"MIT"
] | null | null | null | import Config
config :libcluster, :topologies, []
config :forget, :configuration,
cluster: [
quorum: 1,
schema: :ram
]
| 14.666667 | 35 | 0.651515 |
f7c369433466fbce3d623ea6c8b34305bf014c59 | 533 | ex | Elixir | test/support/test_helpers/agency_helpers.ex | jennstein2017/Challenge_gov | e0820df8b124a32ff8b78cb827ae43551492988b | [
"CC0-1.0"
] | null | null | null | test/support/test_helpers/agency_helpers.ex | jennstein2017/Challenge_gov | e0820df8b124a32ff8b78cb827ae43551492988b | [
"CC0-1.0"
] | null | null | null | test/support/test_helpers/agency_helpers.ex | jennstein2017/Challenge_gov | e0820df8b124a32ff8b78cb827ae43551492988b | [
"CC0-1.0"
] | null | null | null | defmodule ChallengeGov.TestHelpers.AgencyHelpers do
@moduledoc """
Helper factory functions for agencies
"""
alias ChallengeGov.Agencies
alias ChallengeGov.Repo
defp default_attributes(attributes) do
Map.merge(
%{
name: "Test Agency",
acronym: "TA"
},
attributes
)
... | 19.740741 | 73 | 0.643527 |
f7c37c26df51948b300661b183607795a3958f07 | 1,888 | exs | Elixir | test/ex_jagaimo_blog/blogs_test.exs | JasonTrue/ex_jagaimo_blog | e90e2dfe67971e009f3fafb9b4a06dd3bc92ffb9 | [
"MIT"
] | 1 | 2021-06-19T04:19:06.000Z | 2021-06-19T04:19:06.000Z | test/ex_jagaimo_blog/blogs_test.exs | JasonTrue/ex_jagaimo_blog | e90e2dfe67971e009f3fafb9b4a06dd3bc92ffb9 | [
"MIT"
] | 1 | 2021-06-19T04:21:52.000Z | 2021-06-19T04:21:52.000Z | test/ex_jagaimo_blog/blogs_test.exs | JasonTrue/ex_jagaimo_blog | e90e2dfe67971e009f3fafb9b4a06dd3bc92ffb9 | [
"MIT"
] | null | null | null | defmodule ExJagaimoBlog.BlogsTest do
use ExJagaimoBlog.DataCase
# alias ExJagaimoBlog.Blogs
#
# describe "blogs" do
# alias ExJagaimoBlog.Blogs.Blog
#
# @valid_attrs %{}
# @update_attrs %{}
# @invalid_attrs %{}
#
# def blog_fixture(attrs \\ %{}) do
# {:ok, blog} =
# ... | 29.968254 | 85 | 0.586335 |
f7c3955d2a1ac690ec9b9059de4588dc26d15e14 | 3,164 | ex | Elixir | clients/composer/lib/google_api/composer/v1beta1/model/environment.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/composer/lib/google_api/composer/v1beta1/model/environment.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/composer/lib/google_api/composer/v1beta1/model/environment.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 ... | 41.090909 | 146 | 0.689001 |
f7c399a5975d0702219d84d8e14f92f5d87872f3 | 1,762 | exs | Elixir | backend/test/honeyland/geolocation/providers/free_geo_ip_test.exs | bejolithic/honeyland | 8c4a0d3b56543648d3acb96cc6906df86526743b | [
"Apache-2.0"
] | null | null | null | backend/test/honeyland/geolocation/providers/free_geo_ip_test.exs | bejolithic/honeyland | 8c4a0d3b56543648d3acb96cc6906df86526743b | [
"Apache-2.0"
] | null | null | null | backend/test/honeyland/geolocation/providers/free_geo_ip_test.exs | bejolithic/honeyland | 8c4a0d3b56543648d3acb96cc6906df86526743b | [
"Apache-2.0"
] | null | null | null | #
# This file is part of Honeyland.
#
# Copyright 2022 Nervive Studio
#
# 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 ... | 27.968254 | 88 | 0.678774 |
f7c3ea0347ad2723247e84b7e45047137127f693 | 1,726 | ex | Elixir | Microsoft.Azure.Management.Network/lib/microsoft/azure/management/network/model/virtual_network_properties_format.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | 4 | 2018-09-29T03:43:15.000Z | 2021-04-01T18:30:46.000Z | Microsoft.Azure.Management.Network/lib/microsoft/azure/management/network/model/virtual_network_properties_format.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | null | null | null | Microsoft.Azure.Management.Network/lib/microsoft/azure/management/network/model/virtual_network_properties_format.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | null | null | null | # NOTE: This class is auto generated by the swagger code generator program.
# https://github.com/swagger-api/swagger-codegen.git
# Do not edit the class manually.
defmodule Microsoft.Azure.Management.Network.Model.VirtualNetworkPropertiesFormat do
@moduledoc """
Properties of the virtual network.
"""
@derive ... | 35.958333 | 125 | 0.724797 |
f7c3fb7cc3bc352258c155bf5095bc8b257df0ad | 2,295 | ex | Elixir | lib/petal_web.ex | colindensem/petal-k8s | def9dc653dcae2ef35021d44821e6c69d8744e15 | [
"MIT"
] | 1 | 2021-02-12T09:17:38.000Z | 2021-02-12T09:17:38.000Z | lib/petal_web.ex | colindensem/petal-k8s | def9dc653dcae2ef35021d44821e6c69d8744e15 | [
"MIT"
] | null | null | null | lib/petal_web.ex | colindensem/petal-k8s | def9dc653dcae2ef35021d44821e6c69d8744e15 | [
"MIT"
] | null | null | null | defmodule PetalWeb 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 PetalWeb, :controller
use PetalWeb, :view
The definitions below will be executed for every view,
controller, etc, s... | 22.281553 | 78 | 0.678431 |
f7c427d012a60bd632840d49faee33b201af82ec | 22,750 | ex | Elixir | lib/elixir/lib/calendar/time.ex | spencerdcarlson/elixir | 23d75ecdf58df80969e12f4420282238e19219a1 | [
"Apache-2.0"
] | 1 | 2021-12-16T20:32:28.000Z | 2021-12-16T20:32:28.000Z | lib/elixir/lib/calendar/time.ex | spencerdcarlson/elixir | 23d75ecdf58df80969e12f4420282238e19219a1 | [
"Apache-2.0"
] | 1 | 2020-09-14T16:23:33.000Z | 2021-03-25T17:38:59.000Z | lib/elixir/lib/calendar/time.ex | spencerdcarlson/elixir | 23d75ecdf58df80969e12f4420282238e19219a1 | [
"Apache-2.0"
] | 1 | 2020-11-25T02:22:55.000Z | 2020-11-25T02:22:55.000Z | defmodule Time do
@moduledoc """
A Time struct and functions.
The Time struct contains the fields hour, minute, second and microseconds.
New times can be built with the `new/4` function or using the
`~T` (see `Kernel.sigil_T/2`) sigil:
iex> ~T[23:00:07.001]
~T[23:00:07.001]
Both `new/4` and s... | 28.761062 | 102 | 0.623253 |
f7c4511cd7a641c37f49712b1f62a6b52f5a787c | 276 | exs | Elixir | apps/mishka_html/test/mishka_html_web/views/layout_view_test.exs | mojtaba-naserei/mishka-cms | 1f31f61347bab1aae6ba0d47c5515a61815db6c9 | [
"Apache-2.0"
] | 35 | 2021-06-26T09:05:50.000Z | 2022-03-30T15:41:22.000Z | apps/mishka_html/test/mishka_html_web/views/layout_view_test.exs | iArazar/mishka-cms | 8b579101d607d91e80834527c1508fe5f4ceefef | [
"Apache-2.0"
] | 101 | 2021-01-01T09:54:07.000Z | 2022-03-28T10:02:24.000Z | apps/mishka_html/test/mishka_html_web/views/layout_view_test.exs | iArazar/mishka-cms | 8b579101d607d91e80834527c1508fe5f4ceefef | [
"Apache-2.0"
] | 8 | 2021-01-17T17:08:07.000Z | 2022-03-11T16:12:06.000Z | defmodule MishkaHtmlWeb.LayoutViewTest do
use MishkaHtmlWeb.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
| 30.666667 | 65 | 0.771739 |
f7c4654d01b3ec0cacdfc93626de05e66254f69e | 6,734 | ex | Elixir | apps/state/lib/state.ex | fjlanasa/api | c39bc393aea572bfb81754b2ea1adf9dda9ce24a | [
"MIT"
] | null | null | null | apps/state/lib/state.ex | fjlanasa/api | c39bc393aea572bfb81754b2ea1adf9dda9ce24a | [
"MIT"
] | null | null | null | apps/state/lib/state.ex | fjlanasa/api | c39bc393aea572bfb81754b2ea1adf9dda9ce24a | [
"MIT"
] | null | null | null | defmodule State do
@moduledoc """
Maintains the current state of the MBTA system: routes, schedules, vehicle locations, predictions, etc. It also allows
for querying of that state to answer questions from clients.
"""
use Application
@type sort_option :: {:order_by, {atom, :asc | :desc}}
@type option ::... | 25.800766 | 120 | 0.599495 |
f7c47b998f212f89cbb6a7c579ff12eb0b2a664b | 16,898 | ex | Elixir | lib/x/compiler.ex | omohokcoj/x_component | 0f51d78b80b7d54d238b7d0c2c3c2f93b9320108 | [
"MIT"
] | 53 | 2020-02-09T16:34:46.000Z | 2021-04-01T17:48:26.000Z | lib/x/compiler.ex | omohokcoj/x_component | 0f51d78b80b7d54d238b7d0c2c3c2f93b9320108 | [
"MIT"
] | 1 | 2020-03-11T03:22:52.000Z | 2020-03-11T03:22:52.000Z | lib/x/compiler.ex | omohokcoj/x_component | 0f51d78b80b7d54d238b7d0c2c3c2f93b9320108 | [
"MIT"
] | 1 | 2020-02-09T16:34:49.000Z | 2020-02-09T16:34:49.000Z | defmodule X.Compiler do
@moduledoc """
X template compiler module.
"""
alias X.Ast
import X.Transformer,
only: [
compact_ast: 1,
transform_expresion: 3,
transform_inline_component: 4
]
@special_tag_name 'X'
@assigns_key_name 'assigns'
@component_key_name 'component'
@is_ke... | 31.644195 | 98 | 0.552906 |
f7c480e81a1c41921bc32c06e77548b8538042d3 | 3,297 | exs | Elixir | test/plug/redirect_test.exs | madebystitched/plug-redirect | 7593d355333a6ea8c36b8d9f39aef193b0128a4a | [
"MIT"
] | null | null | null | test/plug/redirect_test.exs | madebystitched/plug-redirect | 7593d355333a6ea8c36b8d9f39aef193b0128a4a | [
"MIT"
] | null | null | null | test/plug/redirect_test.exs | madebystitched/plug-redirect | 7593d355333a6ea8c36b8d9f39aef193b0128a4a | [
"MIT"
] | null | null | null | defmodule Plug.RedirectTest do
use ExUnit.Case
use Plug.Test
defmodule MyPlug do
use Plug.Redirect
redirect("/foo/bar", "/go/here", status: 301)
redirect("/jump/up", "/get/down", status: 302)
redirect("/ra/wavy", "/by/droid", status: 303)
redirect("/rock/on", "/roll/out", status: 307)
r... | 27.705882 | 77 | 0.632696 |
f7c4b01a5cef1caf4a4355923c525edac8d73163 | 17,242 | exs | Elixir | test/lib/bamboo/mailer_test.exs | mrcasals/bamboo | c3b82436d9594d7838775fcc906cd4bd8516690e | [
"MIT"
] | 1,845 | 2016-03-29T23:36:36.000Z | 2022-03-31T19:23:38.000Z | test/lib/bamboo/mailer_test.exs | mrcasals/bamboo | c3b82436d9594d7838775fcc906cd4bd8516690e | [
"MIT"
] | 407 | 2016-03-29T14:55:19.000Z | 2022-02-02T13:53:50.000Z | test/lib/bamboo/mailer_test.exs | mrcasals/bamboo | c3b82436d9594d7838775fcc906cd4bd8516690e | [
"MIT"
] | 361 | 2016-03-31T13:33:22.000Z | 2022-02-25T12:38:43.000Z | defmodule Bamboo.MailerTest do
use ExUnit.Case
alias Bamboo.Email
@mailer_config adapter: __MODULE__.DefaultAdapter, foo: :bar, interceptors: nil
setup context do
config =
Keyword.merge(
@mailer_config,
[adapter: context[:adapter], interceptors: context[:interceptors]],
fn
... | 32.593573 | 117 | 0.671094 |
f7c4dbb4772fdc0d402577a5285612d15e5a5021 | 1,642 | ex | Elixir | lib/mix/lib/mix/tasks/compile.leex.ex | QuinnWilton/elixir | e42e3e55ca1561fe56b58d6f51c7b0faae6a7a1e | [
"Apache-2.0"
] | 1 | 2015-11-12T19:23:45.000Z | 2015-11-12T19:23:45.000Z | lib/mix/lib/mix/tasks/compile.leex.ex | enokd/elixir | e39b32f235082b8a29fcb22d250c822cca98609f | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/tasks/compile.leex.ex | enokd/elixir | e39b32f235082b8a29fcb22d250c822cca98609f | [
"Apache-2.0"
] | null | null | null | defmodule Mix.Tasks.Compile.Leex do
alias Mix.Tasks.Compile.Erlang
use Mix.Task
@recursive true
@manifest ".compile.leex"
@moduledoc """
Compile Leex source files.
When this task runs, it will check the modification time of every file, and
if it has changed, the file will be compiled. Files will be
... | 26.918033 | 84 | 0.669915 |
f7c517fea3cc69ad0b95525f046a0de55d5dae1d | 2,374 | ex | Elixir | clients/ad_mob/lib/google_api/ad_mob/v1/model/date.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/ad_mob/lib/google_api/ad_mob/v1/model/date.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/ad_mob/lib/google_api/ad_mob/v1/model/date.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... | 35.969697 | 128 | 0.699242 |
f7c52eacd11da7b2c62326ede936d61557e5670d | 2,405 | ex | Elixir | lib/ueberauth/strategy/strava/oauth.ex | Tiltify/ueberauth_strava | 6f77ae7dd43dd7510eec521698d0637b7ebe55ce | [
"MIT"
] | null | null | null | lib/ueberauth/strategy/strava/oauth.ex | Tiltify/ueberauth_strava | 6f77ae7dd43dd7510eec521698d0637b7ebe55ce | [
"MIT"
] | null | null | null | lib/ueberauth/strategy/strava/oauth.ex | Tiltify/ueberauth_strava | 6f77ae7dd43dd7510eec521698d0637b7ebe55ce | [
"MIT"
] | null | null | null | defmodule Ueberauth.Strategy.Strava.OAuth do
@moduledoc """
OAuth2 for Strava.
Add `client_id` and `client_secret` to your configuration:
config :ueberauth, Ueberauth.Strategy.Strava.OAuth,
client_id: System.get_env("Strava_APP_ID"),
client_secret: System.get_env("Strava_APP_SECRET")
"""
use OAuth... | 29.691358 | 81 | 0.661123 |
f7c552188fc5a38f9f2cb55b5f551b7eec1ec9b7 | 5,993 | exs | Elixir | test/ex_dice_roller_test.exs | rishenko/dice_roller | 1cdea207a2a6007963e52dca817129245ffb470e | [
"Apache-2.0"
] | 8 | 2018-09-24T22:37:07.000Z | 2021-06-17T00:47:20.000Z | test/ex_dice_roller_test.exs | rishenko/dice_roller | 1cdea207a2a6007963e52dca817129245ffb470e | [
"Apache-2.0"
] | 14 | 2018-10-05T11:17:45.000Z | 2018-11-12T13:47:10.000Z | test/ex_dice_roller_test.exs | rishenko/dice_roller | 1cdea207a2a6007963e52dca817129245ffb470e | [
"Apache-2.0"
] | null | null | null | defmodule ExDiceRollerTest do
@moduledoc """
Tests around tokenizing, parsing, and rolling.
Note that test setup seeds the randomizer for each test, which allows for
predictable test results.
"""
use ExDiceRoller.Case
doctest ExDiceRoller
alias ExDiceRoller.Cache
describe "rolls" do
test "basi... | 31.376963 | 96 | 0.576673 |
f7c552ab7ee9b741e5e5fd6841e7d5ba1fd98031 | 251 | ex | Elixir | apps/database/lib/database/schema/mod_tag.ex | gregredhead/belethor | 255925396b18ba4a6950f386abf8a9e17a7e5e7c | [
"Apache-2.0"
] | 3 | 2018-07-20T22:14:36.000Z | 2018-12-21T19:54:48.000Z | apps/database/lib/database/schema/mod_tag.ex | gregredhead/belethor | 255925396b18ba4a6950f386abf8a9e17a7e5e7c | [
"Apache-2.0"
] | 36 | 2018-09-15T21:46:54.000Z | 2020-03-28T16:10:18.000Z | apps/database/lib/database/schema/mod_tag.ex | gregredhead/belethor | 255925396b18ba4a6950f386abf8a9e17a7e5e7c | [
"Apache-2.0"
] | 2 | 2018-07-22T08:47:07.000Z | 2021-12-11T01:39:19.000Z | defmodule Database.Schema.ModTag do
@moduledoc """
Stores info about each tag
"""
use Ecto.Schema
schema "mod_tag" do
field(:name, :string)
many_to_many(:mods, Database.Schema.Mod, join_through: "mods_tags", unique: true)
end
end
| 20.916667 | 85 | 0.697211 |
f7c55fde344bee211a2aa1f06e0e1a91437ec0d5 | 1,109 | exs | Elixir | mix.exs | gabiseabra/logger_batched_backend | fc9e2e3ef93d4bb37e4cd37b633dd712191a08aa | [
"MIT"
] | null | null | null | mix.exs | gabiseabra/logger_batched_backend | fc9e2e3ef93d4bb37e4cd37b633dd712191a08aa | [
"MIT"
] | null | null | null | mix.exs | gabiseabra/logger_batched_backend | fc9e2e3ef93d4bb37e4cd37b633dd712191a08aa | [
"MIT"
] | null | null | null | defmodule LoggerBatchedBackend.MixProject do
use Mix.Project
def project do
[
app: :logger_batched_backend,
version: "0.1.0",
elixir: "~> 1.9",
start_permanent: Mix.env() == :prod,
build_embedded: Mix.env() == :prod,
source_url: "https://github.com/gabiseabra/logger_batched_... | 23.104167 | 75 | 0.599639 |
f7c57d61e7f0292143b426405d6a128deca3c44e | 748 | ex | Elixir | lib/ex_esi/api/skills.ex | lukasni/ex-esi | b902a2a4d9ef834473c71b5c470320cc2854e8eb | [
"MIT"
] | null | null | null | lib/ex_esi/api/skills.ex | lukasni/ex-esi | b902a2a4d9ef834473c71b5c470320cc2854e8eb | [
"MIT"
] | null | null | null | lib/ex_esi/api/skills.ex | lukasni/ex-esi | b902a2a4d9ef834473c71b5c470320cc2854e8eb | [
"MIT"
] | null | null | null | defmodule ExEsi.API.Skills do
@moduledoc false
alias ExEsi.API
alias ExEsi.API.Character
@version "v1"
@spec attributes(ExEsi.API.Character.t()) :: ExEsi.Operation.JSON.t()
def attributes(%Character{id: character_id}) do
"/#{@version}/characters/#{character_id}/attributes/"
|> API.get()
end
@... | 26.714286 | 71 | 0.67246 |
f7c5850092b5368e1e1046dab96a43a8736ecbc6 | 455 | ex | Elixir | lib/hl7/2.5.1/segments/db1.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | lib/hl7/2.5.1/segments/db1.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | lib/hl7/2.5.1/segments/db1.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | defmodule HL7.V2_5_1.Segments.DB1 do
@moduledoc false
require Logger
alias HL7.V2_5_1.{DataTypes}
use HL7.Segment,
fields: [
segment: nil,
set_id_db1: nil,
disabled_person_code: nil,
disabled_person_identifier: DataTypes.Cx,
disabled_indicator: nil,
disability_start_dat... | 22.75 | 47 | 0.701099 |
f7c5885c20fb36847664c1afe5cef99384d0a66f | 12,852 | ex | Elixir | lib/kaffy/resource_form.ex | sulphur/kaffy | 72f07149f811925e247d119a0e7053d6a3e241a1 | [
"MIT"
] | null | null | null | lib/kaffy/resource_form.ex | sulphur/kaffy | 72f07149f811925e247d119a0e7053d6a3e241a1 | [
"MIT"
] | null | null | null | lib/kaffy/resource_form.ex | sulphur/kaffy | 72f07149f811925e247d119a0e7053d6a3e241a1 | [
"MIT"
] | null | null | null | defmodule Kaffy.ResourceForm do
use Phoenix.HTML
def form_label_string({field, options}), do: Map.get(options, :label, field)
def form_label_string(field) when is_atom(field), do: field
def form_label(form, field) do
label_text = form_label_string(field)
label(form, label_text)
end
def form_help_... | 30.820144 | 99 | 0.565126 |
f7c5caabc4243abe8fa573364a91e5c0507d739b | 743 | ex | Elixir | lib/wabanex/imc.ex | vitorrsbarbosa/wabanex | b4e723dc3afa7c5cba20a587f90858b6276ac215 | [
"MIT"
] | null | null | null | lib/wabanex/imc.ex | vitorrsbarbosa/wabanex | b4e723dc3afa7c5cba20a587f90858b6276ac215 | [
"MIT"
] | null | null | null | lib/wabanex/imc.ex | vitorrsbarbosa/wabanex | b4e723dc3afa7c5cba20a587f90858b6276ac215 | [
"MIT"
] | null | null | null | defmodule Wabanex.IMC do
@moduledoc """
Um módulo é um agrupamento de funções
"""
def calculate(%{"filename" => filename}) do
filename
|> File.read()
|> handle_file()
end
defp handle_file({:ok, content}) do
data =
content
|> String.split("\n")
|> Enum.map(fn line -> parse_... | 21.228571 | 84 | 0.597577 |
f7c5f3d16c2e753c6fbd2463e34df8734c4caf50 | 638 | ex | Elixir | lib/makeup/styles/html/pygments/igor.ex | rubysolo/makeup | e1c5d27e3f14c04904d74b94b6298bbc28a406c3 | [
"BSD-2-Clause"
] | null | null | null | lib/makeup/styles/html/pygments/igor.ex | rubysolo/makeup | e1c5d27e3f14c04904d74b94b6298bbc28a406c3 | [
"BSD-2-Clause"
] | null | null | null | lib/makeup/styles/html/pygments/igor.ex | rubysolo/makeup | e1c5d27e3f14c04904d74b94b6298bbc28a406c3 | [
"BSD-2-Clause"
] | null | null | null |
defmodule Makeup.Styles.HTML.IgorStyle do
@moduledoc false
require Makeup.Token.TokenTypes
alias Makeup.Token.TokenTypes, as: Tok
@styles %{
Tok.keyword => "#0000FF",
Tok.name_class => "#007575",
Tok.name_decorator => "#CC00A3",
Tok.name_function => "#C34E00",
Tok.string => "#009C00",
... | 21.266667 | 41 | 0.626959 |
f7c5fea645b31aaaecd4e885fae03e0ebea0086e | 933 | exs | Elixir | flatten-array/flatten_array_test.exs | ChrisWilding/exercism-elixir | ee966439b460f82ef9581611f71c2f626402d14a | [
"MIT"
] | null | null | null | flatten-array/flatten_array_test.exs | ChrisWilding/exercism-elixir | ee966439b460f82ef9581611f71c2f626402d14a | [
"MIT"
] | null | null | null | flatten-array/flatten_array_test.exs | ChrisWilding/exercism-elixir | ee966439b460f82ef9581611f71c2f626402d14a | [
"MIT"
] | null | null | null | if !System.get_env("EXERCISM_TEST_EXAMPLES") do
Code.load_file("flatten_array.exs", __DIR__)
end
ExUnit.start()
ExUnit.configure(exclude: :pending, trace: true)
defmodule FlattenArrayTest do
use ExUnit.Case
test "returns original list if there is nothing to flatten" do
assert FlattenArray.flatten([1, 2, 3]... | 26.657143 | 93 | 0.647374 |
f7c6720eb2b71c03f2e2642a3b0d21df9599c80e | 604 | ex | Elixir | spec/support/element/trivial_pipeline.ex | mkaput/membrane-core | f65ae3d847f2c10f3ab20d0c7aa75b0faa274ec7 | [
"Apache-2.0"
] | null | null | null | spec/support/element/trivial_pipeline.ex | mkaput/membrane-core | f65ae3d847f2c10f3ab20d0c7aa75b0faa274ec7 | [
"Apache-2.0"
] | null | null | null | spec/support/element/trivial_pipeline.ex | mkaput/membrane-core | f65ae3d847f2c10f3ab20d0c7aa75b0faa274ec7 | [
"Apache-2.0"
] | null | null | null | defmodule Membrane.Support.Element.TrivialPipeline do
alias Membrane.Support.Element.{TrivialSource, TrivialFilter, TrivialSink}
use Membrane.Pipeline
@impl true
def handle_init(_) do
children = [
producer: TrivialSource,
filter: TrivialFilter,
consumer: TrivialSink
]
links = %{
... | 23.230769 | 82 | 0.635762 |
f7c68b063d62c01003634bc98dcdf1b04371f48e | 295 | ex | Elixir | lib/helpdesk_assistant/responses/utter_help.ex | r26D/elixir-rasa-action-server | df41d36189f4ed737752343457dfe06d37a8e758 | [
"MIT"
] | 1 | 2021-04-19T18:05:10.000Z | 2021-04-19T18:05:10.000Z | lib/helpdesk_assistant/responses/utter_help.ex | r26D/elixir-rasa-action-server | df41d36189f4ed737752343457dfe06d37a8e758 | [
"MIT"
] | null | null | null | lib/helpdesk_assistant/responses/utter_help.ex | r26D/elixir-rasa-action-server | df41d36189f4ed737752343457dfe06d37a8e758 | [
"MIT"
] | null | null | null | defmodule HelpdeskAssistant.Responses.UtterHelp do
use RasaSDK.Responses.Response
def simple_text(), do: "I can help you open a service request ticket.
You can ask me things like \"Open an incident\", \"Help me reset my password\", or
\"I'm having a issue with my email.\""
end | 49.166667 | 88 | 0.715254 |
f7c6924c29ee40a8a4075371da156f0d301303fd | 10,032 | ex | Elixir | lib/aws/generated/timestream_write.ex | kw7oe/aws-elixir | 4ba60502dde270c83143822c9964018c7770bad7 | [
"Apache-2.0"
] | 341 | 2018-04-04T19:06:19.000Z | 2022-03-25T21:34:23.000Z | lib/aws/generated/timestream_write.ex | kw7oe/aws-elixir | 4ba60502dde270c83143822c9964018c7770bad7 | [
"Apache-2.0"
] | 82 | 2018-04-04T17:32:33.000Z | 2022-03-24T15:12:04.000Z | lib/aws/generated/timestream_write.ex | kw7oe/aws-elixir | 4ba60502dde270c83143822c9964018c7770bad7 | [
"Apache-2.0"
] | 76 | 2018-04-10T20:19:44.000Z | 2022-03-15T13:49:19.000Z | # WARNING: DO NOT EDIT, AUTO-GENERATED CODE!
# See https://github.com/aws-beam/aws-codegen for more details.
defmodule AWS.TimestreamWrite do
@moduledoc """
Amazon Timestream is a fast, scalable, fully managed time series database
service that makes it easy to store and analyze trillions of time series data
po... | 42.871795 | 170 | 0.745514 |
f7c69f646faa1c0123e4ecf6a5ac3c89943563b5 | 1,658 | ex | Elixir | lib/mix/lib/mix/shell/io.ex | jquadrin/elixir | 98746e08eaa2bf58c202e8500b6cf83ed2368cc0 | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/shell/io.ex | jquadrin/elixir | 98746e08eaa2bf58c202e8500b6cf83ed2368cc0 | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/shell/io.ex | jquadrin/elixir | 98746e08eaa2bf58c202e8500b6cf83ed2368cc0 | [
"Apache-2.0"
] | null | null | null | defmodule Mix.Shell.IO do
@moduledoc """
This is Mix's default shell.
It simply prints messages to stdio and stderr.
"""
@behaviour Mix.Shell
@doc """
Prints the currently running application if it
was not printed yet.
"""
def print_app do
if name = Mix.Shell.printable_app_name do
IO.pu... | 21.25641 | 67 | 0.638118 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.