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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1d213e826ff521729955e6237ecf9c7ab1b5ef90 | 1,025 | exs | Elixir | farmbot_os/config/host/test.exs | gdwb/farmbot_os | 0ef2697c580c9fbf37a22daa063a64addfcb778d | [
"MIT"
] | 1 | 2021-08-23T13:36:14.000Z | 2021-08-23T13:36:14.000Z | farmbot_os/config/host/test.exs | gdwb/farmbot_os | 0ef2697c580c9fbf37a22daa063a64addfcb778d | [
"MIT"
] | null | null | null | farmbot_os/config/host/test.exs | gdwb/farmbot_os | 0ef2697c580c9fbf37a22daa063a64addfcb778d | [
"MIT"
] | null | null | null | use Mix.Config
data_path = Path.join(["/", "tmp", "farmbot"])
File.mkdir_p(data_path)
config :farmbot_ext,
data_path: data_path
config :farmbot_core, FarmbotCore.Config.Repo,
adapter: Sqlite.Ecto2,
loggers: [],
database: Path.join(data_path, "config-#{Mix.env()}.sqlite3")
config :farmbot_core, FarmbotCore.L... | 25 | 63 | 0.733659 |
1d2140c0dd7d8f90bb6929fb7c5c9de23eb4f800 | 184 | exs | Elixir | test/lakeland/app_test.exs | nonsense2020/lakeland | f7f928562ef8f81193f07d80e5d5c79cc919422c | [
"MIT"
] | 3 | 2016-04-27T14:42:30.000Z | 2016-05-11T13:05:46.000Z | test/lakeland/app_test.exs | lerencao/lakeland | f7f928562ef8f81193f07d80e5d5c79cc919422c | [
"MIT"
] | 5 | 2016-02-28T08:15:40.000Z | 2020-02-10T21:16:52.000Z | test/lakeland/app_test.exs | nonsense2020/lakeland | f7f928562ef8f81193f07d80e5d5c79cc919422c | [
"MIT"
] | null | null | null | defmodule Lakeland.AppTest do
use ExUnit.Case
test "lakeland app shoud start correctly" do
assert Application.started_applications |> List.keymember?(:lakeland, 0)
end
end
| 20.444444 | 76 | 0.76087 |
1d218be80e2efaa94744aeb7065369aa1c626270 | 17,087 | ex | Elixir | clients/classroom/lib/google_api/classroom/v1/api/invitations.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/classroom/lib/google_api/classroom/v1/api/invitations.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/classroom/lib/google_api/classroom/v1/api/invitations.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... | 52.900929 | 591 | 0.644115 |
1d21a1624bd6aee9ee1fc6a3c90299d154bbd9a9 | 417 | exs | Elixir | backend/test/bucoliq_web/views/error_view_test.exs | antogon/bucoliq | 0fe4727c4312322862d30014bdfae2530cc49de1 | [
"MIT"
] | null | null | null | backend/test/bucoliq_web/views/error_view_test.exs | antogon/bucoliq | 0fe4727c4312322862d30014bdfae2530cc49de1 | [
"MIT"
] | 9 | 2019-12-01T18:31:31.000Z | 2021-03-10T00:38:48.000Z | backend/test/bucoliq_web/views/error_view_test.exs | antogon/bucoliq | 0fe4727c4312322862d30014bdfae2530cc49de1 | [
"MIT"
] | null | null | null | defmodule BucoliqWeb.ErrorViewTest do
use BucoliqWeb.ConnCase, async: true
# Bring render/3 and render_to_string/3 for testing custom views
import Phoenix.View
test "renders 404.html" do
assert render_to_string(BucoliqWeb.ErrorView, "404.html", []) == "Not Found"
end
test "renders 500.html" do
as... | 27.8 | 92 | 0.733813 |
1d21b607e4591c1322144a5d64ef0c569cb9b5b3 | 1,258 | exs | Elixir | mix.exs | couchemar/elixir-janus | 50dd60ff056ea93dd282fb8ea050d1addf4bfc5d | [
"MIT"
] | 41 | 2016-12-21T13:28:14.000Z | 2021-09-11T14:48:05.000Z | mix.exs | meetupcall/elixir-janus | af24ac04ef61d40ea0a582c0d182826d2075eb72 | [
"MIT"
] | 11 | 2017-01-04T20:22:16.000Z | 2020-09-07T06:29:22.000Z | mix.exs | meetupcall/elixir-janus | af24ac04ef61d40ea0a582c0d182826d2075eb72 | [
"MIT"
] | 13 | 2016-12-21T13:28:16.000Z | 2021-05-15T07:48:50.000Z | defmodule Janus.Mixfile do
use Mix.Project
def project do
[
app: :janus,
version: "0.1.0",
elixir: "~> 1.3",
elixirc_paths: elixirc_paths(Mix.env),
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps(),
name: "Janus",
source_url:... | 23.735849 | 77 | 0.573132 |
1d21c56d60f2e5b2c5746c957d1d7f73d153d792 | 3,768 | ex | Elixir | elixir/codes-from-books/little-elixir/cap8/blitzy/deps/timex/lib/format/duration/formatters/humanized.ex | trxeste/wrk | 3e05e50ff621866f0361cc8494ce8f6bb4d97fae | [
"BSD-3-Clause"
] | 1 | 2017-10-16T03:00:50.000Z | 2017-10-16T03:00:50.000Z | elixir/codes-from-books/little-elixir/cap8/blitzy/deps/timex/lib/format/duration/formatters/humanized.ex | trxeste/wrk | 3e05e50ff621866f0361cc8494ce8f6bb4d97fae | [
"BSD-3-Clause"
] | null | null | null | elixir/codes-from-books/little-elixir/cap8/blitzy/deps/timex/lib/format/duration/formatters/humanized.ex | trxeste/wrk | 3e05e50ff621866f0361cc8494ce8f6bb4d97fae | [
"BSD-3-Clause"
] | 1 | 2019-11-23T12:09:14.000Z | 2019-11-23T12:09:14.000Z | defmodule Timex.Format.Duration.Formatters.Humanized do
@moduledoc """
Handles formatting timestamp values as human readable strings.
For formatting timestamps as points in time rather than intervals,
use `Timex.format`
"""
use Timex.Format.Duration.Formatter
alias Timex.Translator
@minute 60
@hour ... | 38.845361 | 117 | 0.640393 |
1d21c6bb201963b1bff4a5e0b371748aeb942e7d | 1,780 | ex | Elixir | clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1beta1_rename_tag_template_field_enum_value_request.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1beta1_rename_tag_template_field_enum_value_request.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1beta1_rename_tag_template_field_enum_value_request.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.962963 | 156 | 0.769663 |
1d21f42014e6e084f6295e2d0f332a5dd500a7ca | 16,639 | exs | Elixir | lib/elixir/test/elixir/macro_test.exs | enokd/elixir | e39b32f235082b8a29fcb22d250c822cca98609f | [
"Apache-2.0"
] | 1 | 2015-11-12T19:23:45.000Z | 2015-11-12T19:23:45.000Z | lib/elixir/test/elixir/macro_test.exs | enokd/elixir | e39b32f235082b8a29fcb22d250c822cca98609f | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/macro_test.exs | enokd/elixir | e39b32f235082b8a29fcb22d250c822cca98609f | [
"Apache-2.0"
] | null | null | null | Code.require_file "test_helper.exs", __DIR__
defmodule Macro.ExternalTest do
defmacro external do
line = 18
file = __ENV__.file
^line = __CALLER__.line
^file = __CALLER__.file
^line = __CALLER__.location[:line]
^file = __CALLER__.location[:file]
end
defmacro oror(left, right) do
quot... | 33.013889 | 102 | 0.600036 |
1d21fffde721580fc7b48c4884132b2ac86dbac2 | 1,944 | ex | Elixir | clients/slides/lib/google_api/slides/v1/model/placeholder.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/slides/lib/google_api/slides/v1/model/placeholder.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/slides/lib/google_api/slides/v1/model/placeholder.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... | 36.679245 | 231 | 0.717078 |
1d22136a3aa379013ab9fe1a7d7eff96a816a902 | 7,745 | ex | Elixir | lib/game/round.ex | Science-Adventurers/game-backend | 9c99609b5c9c8e350af04fa1e838c3fa31283e42 | [
"MIT"
] | 5 | 2017-02-21T17:19:51.000Z | 2017-02-24T14:46:00.000Z | lib/game/round.ex | Science-Adventurers/game-backend | 9c99609b5c9c8e350af04fa1e838c3fa31283e42 | [
"MIT"
] | null | null | null | lib/game/round.ex | Science-Adventurers/game-backend | 9c99609b5c9c8e350af04fa1e838c3fa31283e42 | [
"MIT"
] | null | null | null | defmodule Game.Round do
@behaviour :gen_statem
@number_of_questions 5
alias Game.{ItemStore, Question, RoundRegistry}
defmodule PlayerState do
defstruct current_question: nil,
remaining_questions: [],
answers: %{}
end
defmodule Data do
defstruct category: nil,
... | 36.361502 | 125 | 0.640155 |
1d222d2e108011ab2342173774224cd88feaf2d4 | 143 | ex | Elixir | test/support/resources/nested_enum.ex | michaelst/ash_graphql | bdf814cae2305b5a0151e5c94c7a973dec1d659f | [
"MIT"
] | 12 | 2020-06-15T08:00:05.000Z | 2021-12-16T22:46:52.000Z | test/support/resources/nested_enum.ex | michaelst/ash_graphql | bdf814cae2305b5a0151e5c94c7a973dec1d659f | [
"MIT"
] | 24 | 2020-06-05T01:06:52.000Z | 2021-09-25T00:30:39.000Z | test/support/resources/nested_enum.ex | michaelst/ash_graphql | bdf814cae2305b5a0151e5c94c7a973dec1d659f | [
"MIT"
] | 7 | 2020-08-25T19:20:26.000Z | 2022-01-26T00:54:50.000Z | defmodule AshGraphql.Test.NestedEnum do
@moduledoc false
use Ash.Type.Enum, values: [:foo, :bar]
def graphql_type, do: :nested_enum
end
| 20.428571 | 41 | 0.741259 |
1d223420aa8d4132ec3ba8d1b56aed9367e098bc | 4,285 | ex | Elixir | clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/cloud_storage_source_spec.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/cloud_storage_source_spec.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/cloud_storage_source_spec.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... | 50.411765 | 178 | 0.718786 |
1d224b0a82a9f923a48ec1588af10b72c8c4145e | 768 | ex | Elixir | lib/mail_slurp_api/model/update_domain_options.ex | sumup-bank/mailslurp-client-elixir | 87ccdedf2f0f4cd3e50f5781ffb088142e3cf4e8 | [
"MIT"
] | 1 | 2021-06-17T18:07:49.000Z | 2021-06-17T18:07:49.000Z | lib/mail_slurp_api/model/update_domain_options.ex | sumup-bank/mailslurp-client-elixir | 87ccdedf2f0f4cd3e50f5781ffb088142e3cf4e8 | [
"MIT"
] | null | null | null | lib/mail_slurp_api/model/update_domain_options.ex | sumup-bank/mailslurp-client-elixir | 87ccdedf2f0f4cd3e50f5781ffb088142e3cf4e8 | [
"MIT"
] | 1 | 2021-03-16T18:55:56.000Z | 2021-03-16T18:55:56.000Z | # NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
# https://openapi-generator.tech
# Do not edit the class manually.
defmodule MailSlurpAPI.Model.UpdateDomainOptions do
@moduledoc """
Options for creating a domain to use with MailSlurp. You must have ownership access to th... | 29.538462 | 261 | 0.742188 |
1d226b9a79473af2b46669f4fce43a1531582acb | 245 | ex | Elixir | lib/adoptoposs_web/views/repo_view.ex | paulgoetze/adoptoposs | 1a143917ac5a192f12054fff4410a1ee18935353 | [
"MIT"
] | 120 | 2020-03-30T13:58:40.000Z | 2022-03-30T10:17:50.000Z | lib/adoptoposs_web/views/repo_view.ex | paulgoetze/adoptoposs | 1a143917ac5a192f12054fff4410a1ee18935353 | [
"MIT"
] | 34 | 2020-04-01T23:11:59.000Z | 2022-03-13T08:14:37.000Z | lib/adoptoposs_web/views/repo_view.ex | paulgoetze/adoptoposs | 1a143917ac5a192f12054fff4410a1ee18935353 | [
"MIT"
] | 16 | 2020-04-24T17:14:23.000Z | 2022-03-27T22:32:48.000Z | defmodule AdoptopossWeb.RepoView do
use AdoptopossWeb, :view
def selected_attr(attr, other_attr) do
if attr == other_attr, do: :selected
end
def hashed(text) do
:crypto.hash(:md5, text) |> Base.encode16(case: :lower)
end
end
| 20.416667 | 59 | 0.702041 |
1d226cf8a7c0dfdfd1d205c09fcaecf8c5162662 | 8,627 | ex | Elixir | clients/storage/lib/google_api/storage/v1/model/object.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/storage/lib/google_api/storage/v1/model/object.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/storage/lib/google_api/storage/v1/model/object.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... | 62.514493 | 851 | 0.715081 |
1d22ae6e2387d8ac193f68dd7e11d7037afba364 | 703 | ex | Elixir | apps/biz/lib/biz.ex | aforward/wuw | 8f41157aeb9fce738a402e757bf78a322a890b7a | [
"MIT"
] | null | null | null | apps/biz/lib/biz.ex | aforward/wuw | 8f41157aeb9fce738a402e757bf78a322a890b7a | [
"MIT"
] | null | null | null | apps/biz/lib/biz.ex | aforward/wuw | 8f41157aeb9fce738a402e757bf78a322a890b7a | [
"MIT"
] | null | null | null | defmodule Biz 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, warn: false
# Define workers and child supervisors to be supervised
children = [
# Starts a worker b... | 28.12 | 75 | 0.70128 |
1d22de458e673a156ef2819baa0d963ecaddaf90 | 99 | ex | Elixir | lib/elixir/test/elixir/fixtures/dialyzer/for_bitstring.ex | doughsay/elixir | 7356a47047d0b54517bd6886603f09b1121dde2b | [
"Apache-2.0"
] | 19,291 | 2015-01-01T02:42:49.000Z | 2022-03-31T21:01:40.000Z | lib/elixir/test/elixir/fixtures/dialyzer/for_bitstring.ex | doughsay/elixir | 7356a47047d0b54517bd6886603f09b1121dde2b | [
"Apache-2.0"
] | 8,082 | 2015-01-01T04:16:23.000Z | 2022-03-31T22:08:02.000Z | lib/elixir/test/elixir/fixtures/dialyzer/for_bitstring.ex | doughsay/elixir | 7356a47047d0b54517bd6886603f09b1121dde2b | [
"Apache-2.0"
] | 3,472 | 2015-01-03T04:11:56.000Z | 2022-03-29T02:07:30.000Z | defmodule Dialyzer.ForBitstring do
def foo() do
for a <- 1..3, into: "", do: <<a>>
end
end
| 16.5 | 38 | 0.585859 |
1d22f74d13f277daa6771cbf84d6f210b83ce454 | 74 | exs | Elixir | test/retro_test.exs | c4710n/retro | 52494acbc38e24120f439d2a1a7f2951f771e49c | [
"MIT"
] | 1 | 2021-02-24T20:40:37.000Z | 2021-02-24T20:40:37.000Z | test/retro_test.exs | c4710n/retro | 52494acbc38e24120f439d2a1a7f2951f771e49c | [
"MIT"
] | null | null | null | test/retro_test.exs | c4710n/retro | 52494acbc38e24120f439d2a1a7f2951f771e49c | [
"MIT"
] | null | null | null | defmodule RetroTest do
use ExUnit.Case, async: true
doctest Retro
end
| 14.8 | 30 | 0.77027 |
1d22fbcd63d5232a6ca1318b717d9f068c2851f8 | 3,824 | exs | Elixir | mix.exs | inaniyants/phoenix_live_view | b659081737f9dfaaef677bf66a0212eb651be050 | [
"MIT"
] | null | null | null | mix.exs | inaniyants/phoenix_live_view | b659081737f9dfaaef677bf66a0212eb651be050 | [
"MIT"
] | null | null | null | mix.exs | inaniyants/phoenix_live_view | b659081737f9dfaaef677bf66a0212eb651be050 | [
"MIT"
] | null | null | null | defmodule Phoenix.LiveView.MixProject do
use Mix.Project
@version "0.17.7"
def project do
[
app: :phoenix_live_view,
version: @version,
elixir: "~> 1.7",
start_permanent: Mix.env() == :prod,
elixirc_paths: elixirc_paths(Mix.env()),
compilers: compilers(Mix.env()),
p... | 26.372414 | 99 | 0.595188 |
1d22fd1e65721fa0b77892da077c0cbed7e2ebe2 | 1,064 | ex | Elixir | lib/level_web/controllers/session_controller.ex | pradyumna2905/level | 186878a128521074923edd7171eda2f1b181b4f4 | [
"Apache-2.0"
] | null | null | null | lib/level_web/controllers/session_controller.ex | pradyumna2905/level | 186878a128521074923edd7171eda2f1b181b4f4 | [
"Apache-2.0"
] | null | null | null | lib/level_web/controllers/session_controller.ex | pradyumna2905/level | 186878a128521074923edd7171eda2f1b181b4f4 | [
"Apache-2.0"
] | null | null | null | defmodule LevelWeb.SessionController do
@moduledoc false
use LevelWeb, :controller
alias Level.FeatureFlags
plug :fetch_current_user_by_session
plug :redirect_if_signed_in
plug :put_feature_flags
def new(conn, _params) do
render conn, "new.html"
end
def create(conn, %{"session" => %{"email" =... | 23.644444 | 78 | 0.638158 |
1d2312a096a93aca5a7eddd4a313d771dd54f45e | 1,922 | ex | Elixir | lib/validix/fetch.ex | MainframeHQ/validix | 42427e1a6b44c3b12d7703a41d00ea267ba49207 | [
"BSD-3-Clause"
] | 2 | 2017-12-21T17:26:03.000Z | 2018-05-30T19:21:55.000Z | lib/validix/fetch.ex | thusfresh/validix | 42427e1a6b44c3b12d7703a41d00ea267ba49207 | [
"BSD-3-Clause"
] | null | null | null | lib/validix/fetch.ex | thusfresh/validix | 42427e1a6b44c3b12d7703a41d00ea267ba49207 | [
"BSD-3-Clause"
] | 1 | 2018-02-20T06:13:30.000Z | 2018-02-20T06:13:30.000Z | defmodule Validix.Fetch do
alias Validix.Source
@spec required_field(Source.t, field :: term, opts :: Keyword.t)
:: {:ok, Source.t, value :: term} | {:ok, Source.t} | {:error, term}
def required_field(source, field, opts) do
nillable? = Source.get_opt(source, opts, :nillable, false)
case Source.... | 29.121212 | 78 | 0.596254 |
1d232dd952f4c8639559f3d700881ae72121aa42 | 486 | ex | Elixir | lib/earmark_parser/helpers/yecc_helpers.ex | sionide21/earmark_parser | d9283fd90dad21d4bf4277e284b2e4a8560d14b0 | [
"Apache-2.0"
] | 32 | 2020-07-01T17:25:08.000Z | 2022-03-23T05:38:38.000Z | lib/earmark_parser/helpers/yecc_helpers.ex | sionide21/earmark_parser | d9283fd90dad21d4bf4277e284b2e4a8560d14b0 | [
"Apache-2.0"
] | 91 | 2020-06-30T09:08:00.000Z | 2022-03-24T18:11:16.000Z | lib/earmark_parser/helpers/yecc_helpers.ex | sionide21/earmark_parser | d9283fd90dad21d4bf4277e284b2e4a8560d14b0 | [
"Apache-2.0"
] | 22 | 2020-07-02T08:50:17.000Z | 2022-02-21T08:31:27.000Z | defmodule EarmarkParser.Helpers.YeccHelpers do
@moduledoc false
import EarmarkParser.Helpers.LeexHelpers, only: [lex: 2]
def parse!( text, lexer: lexer, parser: parser ) do
case parse(text, lexer: lexer, parser: parser) do
{:ok, ast} -> ast
{:error, _} -> nil
end
end
def parse( tex... | 23.142857 | 58 | 0.650206 |
1d2345dc1b4b6f74d39da47303b11ac6b13a2035 | 1,617 | ex | Elixir | clients/slides/lib/google_api/slides/v1/model/optional_color.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/slides/lib/google_api/slides/v1/model/optional_color.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/slides/lib/google_api/slides/v1/model/optional_color.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 33.6875 | 144 | 0.748918 |
1d236e82956cfeac93cd5a7d9fdec7bcc50db28c | 12,930 | exs | Elixir | machine_translation/MorpHIN/Learned/Resources/Set1/TrainingInstances/87.exs | AdityaPrasadMishra/NLP--Project-Group-16 | fb62cc6a1db4a494058171f11c14a2be3933a9a1 | [
"MIT"
] | null | null | null | machine_translation/MorpHIN/Learned/Resources/Set1/TrainingInstances/87.exs | AdityaPrasadMishra/NLP--Project-Group-16 | fb62cc6a1db4a494058171f11c14a2be3933a9a1 | [
"MIT"
] | null | null | null | machine_translation/MorpHIN/Learned/Resources/Set1/TrainingInstances/87.exs | AdityaPrasadMishra/NLP--Project-Group-16 | fb62cc6a1db4a494058171f11c14a2be3933a9a1 | [
"MIT"
] | null | null | null | **EXAMPLE FILE**
noun cm verb_aux conj verb;
cm noun verb_aux verb_aux verb;
pnoun cm conj pn verb;
pnoun cm conj adjective verb;
noun cm verb_aux verb_aux verb;
noun cm verb conj noun;
conj pn verb verb_aux noun;
noun cm verb conj noun;
cm pn verb_aux verb_aux verb;
noun cm conj quantifier verb;
cm noun ve... | 29.453303 | 43 | 0.763418 |
1d236ffa2ef007801a2761249f60ab59927a9a20 | 583 | ex | Elixir | lib/rules/poker/resolution/filters/eight_or_less_distinct_lowball.ex | luismasuelli/poker-elixir | 32b80d79eed3a987531043531b4bff8bf2a1bdee | [
"MIT"
] | null | null | null | lib/rules/poker/resolution/filters/eight_or_less_distinct_lowball.ex | luismasuelli/poker-elixir | 32b80d79eed3a987531043531b4bff8bf2a1bdee | [
"MIT"
] | null | null | null | lib/rules/poker/resolution/filters/eight_or_less_distinct_lowball.ex | luismasuelli/poker-elixir | 32b80d79eed3a987531043531b4bff8bf2a1bdee | [
"MIT"
] | null | null | null | defmodule Rules.Poker.Resolution.Filters.EightOrLessDistinctLowball do
@moduledoc """
This accepts all hands. No hand will be rejected
no matters how bad the hand is.
"""
alias Rules.Poker.Resolution.Filters.Base
alias Rules.Poker.Resolution.Scores.Result
@behaviour Base
def passes(%Result{cmp_data... | 25.347826 | 74 | 0.684391 |
1d238541d9e269b13ea3df9dfa35e23c84893b32 | 2,381 | exs | Elixir | mix.exs | rill-project/rill | 16d35f9dda1ec58190fa6bda9923372834ab456b | [
"MIT"
] | 1 | 2022-01-26T15:06:14.000Z | 2022-01-26T15:06:14.000Z | mix.exs | rill-project/rill | 16d35f9dda1ec58190fa6bda9923372834ab456b | [
"MIT"
] | null | null | null | mix.exs | rill-project/rill | 16d35f9dda1ec58190fa6bda9923372834ab456b | [
"MIT"
] | null | null | null | defmodule Rill.MixProject do
use Mix.Project
@external_resource path = Path.join(__DIR__, "VERSION")
@version path |> File.read!() |> String.trim()
def project do
[
app: :rill,
version: @version,
elixir: "~> 1.7",
package: package(),
deps: deps(),
aliases: aliases(),
... | 23.81 | 67 | 0.545569 |
1d238e08c8aee62057952258bd6c7923dd5ee605 | 30,188 | exs | Elixir | test/phoenix_live_view/integrations/elements_test.exs | cw789/phoenix_live_view | bd581d966a023de632136b1c6ba166f85ea27f64 | [
"MIT"
] | null | null | null | test/phoenix_live_view/integrations/elements_test.exs | cw789/phoenix_live_view | bd581d966a023de632136b1c6ba166f85ea27f64 | [
"MIT"
] | null | null | null | test/phoenix_live_view/integrations/elements_test.exs | cw789/phoenix_live_view | bd581d966a023de632136b1c6ba166f85ea27f64 | [
"MIT"
] | null | null | null | defmodule Phoenix.LiveView.ElementsTest do
use ExUnit.Case, async: true
import Phoenix.ConnTest
import Phoenix.LiveViewTest
alias Phoenix.LiveViewTest.{Endpoint}
@endpoint Endpoint
defp last_event(view) do
view |> element("#last-event") |> render() |> HtmlEntities.decode()
end
defp last_componen... | 39.931217 | 168 | 0.555784 |
1d2391adbdcebd73047aa9643b677ff7657918ce | 5,394 | exs | Elixir | test/media_server/integrations_test.exs | cgomesu/midarr-server | 02833567ceaedfff5549b90104ce7256b9e7472b | [
"MIT"
] | 1 | 2022-02-14T16:40:55.000Z | 2022-02-14T16:40:55.000Z | test/media_server/integrations_test.exs | smilenkovski/midarr-server | ba1815f5ab12fbe5d5377aaee6709ea26c5459d4 | [
"MIT"
] | null | null | null | test/media_server/integrations_test.exs | smilenkovski/midarr-server | ba1815f5ab12fbe5d5377aaee6709ea26c5459d4 | [
"MIT"
] | null | null | null | defmodule MediaServer.IntegrationsTest do
use MediaServer.DataCase
alias MediaServer.Integrations
describe "sonarrs" do
alias MediaServer.Integrations.Sonarr
import MediaServer.IntegrationsFixtures
@invalid_attrs %{api_key: nil, name: nil, url: nil}
test "list_sonarrs/0 returns all sonarrs" d... | 36.945205 | 107 | 0.688543 |
1d23a9e127d7e6e823b219653b4d49d6602deb6e | 2,221 | exs | Elixir | test/commodity_api/iam/access_control/permission_set/permission_set_test.exs | akdilsiz/commodity-cloud | 08c366c9fc95fbb3565131672db4cc52f8b870c9 | [
"Apache-2.0"
] | 7 | 2019-04-11T21:12:49.000Z | 2021-04-14T12:56:42.000Z | test/commodity_api/iam/access_control/permission_set/permission_set_test.exs | akdilsiz/commodity-cloud | 08c366c9fc95fbb3565131672db4cc52f8b870c9 | [
"Apache-2.0"
] | null | null | null | test/commodity_api/iam/access_control/permission_set/permission_set_test.exs | akdilsiz/commodity-cloud | 08c366c9fc95fbb3565131672db4cc52f8b870c9 | [
"Apache-2.0"
] | 2 | 2019-06-06T18:05:33.000Z | 2019-07-16T08:49:45.000Z | ##
# Copyright 2018 Abdulkadir DILSIZ
#
# 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... | 31.728571 | 77 | 0.667267 |
1d240cce043cbe88d95ad7d30b2245f0712d1201 | 43,670 | exs | Elixir | test/flop_test.exs | jokawachi-hg/flop | 0d8132e5da9f6b08913f16dba26a5c20a9b49db7 | [
"MIT"
] | null | null | null | test/flop_test.exs | jokawachi-hg/flop | 0d8132e5da9f6b08913f16dba26a5c20a9b49db7 | [
"MIT"
] | null | null | null | test/flop_test.exs | jokawachi-hg/flop | 0d8132e5da9f6b08913f16dba26a5c20a9b49db7 | [
"MIT"
] | null | null | null | defmodule FlopTest do
use ExUnit.Case, async: true
use ExUnitProperties
doctest Flop, import: true
import Ecto.Query
import Flop.Factory
import Flop.Generators
import Flop.TestUtil
alias Ecto.Adapters.SQL.Sandbox
alias Ecto.Query.QueryExpr
alias Flop.Filter
alias Flop.Meta
alias Flop.Pet
al... | 32.252585 | 80 | 0.507259 |
1d2414eae746d909509d370dfbe843a79f7402ea | 289 | ex | Elixir | lib/automata/reasoning/utility_ai/automata_utility_ai.ex | venomnert/automata | 26b9bf3cb57fa8bc152fac8992ddcfe07c6e07a9 | [
"Apache-2.0"
] | 150 | 2020-02-04T15:10:52.000Z | 2022-02-19T15:33:17.000Z | lib/automata/reasoning/utility_ai/automata_utility_ai.ex | venomnert/automata | 26b9bf3cb57fa8bc152fac8992ddcfe07c6e07a9 | [
"Apache-2.0"
] | 31 | 2020-02-09T01:37:23.000Z | 2020-05-21T01:50:14.000Z | lib/automata/reasoning/utility_ai/automata_utility_ai.ex | venomnert/automata | 26b9bf3cb57fa8bc152fac8992ddcfe07c6e07a9 | [
"Apache-2.0"
] | 8 | 2020-02-06T04:42:20.000Z | 2022-01-21T00:21:20.000Z | defmodule Automata.Utility do
@moduledoc """
Global utility decisioning
First pass should prioritize automata based on global utility calculations
Second pass should coordinate automata in achievement of some global goal
"""
defmacro __using__(_automaton_config) do
end
end
| 26.272727 | 76 | 0.792388 |
1d24230393f37defd4e29f367cc9b9840d5118cc | 1,559 | ex | Elixir | backend/test/support/model_case.ex | hploscar/palike | 71618593ee6e6687e0d1cdc9e923ed8f9c2cc2cb | [
"MIT"
] | null | null | null | backend/test/support/model_case.ex | hploscar/palike | 71618593ee6e6687e0d1cdc9e923ed8f9c2cc2cb | [
"MIT"
] | null | null | null | backend/test/support/model_case.ex | hploscar/palike | 71618593ee6e6687e0d1cdc9e923ed8f9c2cc2cb | [
"MIT"
] | null | null | null | defmodule Palike.ModelCase do
@moduledoc """
This module defines the test case to be used by
model tests.
You may define functions here to be used as helpers in
your model tests. See `errors_on/2`'s definition as reference.
Finally, if the test case interacts with the database,
it cannot be async. For t... | 26.423729 | 84 | 0.683772 |
1d2467c003e027dc3c604e926aeb8d4474fecee6 | 4,768 | ex | Elixir | lib/fanout_listener.ex | the-mikedavis/extreme | c467bba50f96df4a37cce561252efbac9b0d351a | [
"MIT"
] | null | null | null | lib/fanout_listener.ex | the-mikedavis/extreme | c467bba50f96df4a37cce561252efbac9b0d351a | [
"MIT"
] | null | null | null | lib/fanout_listener.ex | the-mikedavis/extreme | c467bba50f96df4a37cce561252efbac9b0d351a | [
"MIT"
] | null | null | null | defmodule Extreme.FanoutListener do
@moduledoc ~S"""
Module that uses this listener will connect to stream of event store and wait for new events.
In the contrast of Extreme.Listener which will first read existing events (starting from position x) and then
keep listening new events.
This is similar behavior ... | 34.302158 | 111 | 0.642408 |
1d249f1067fe9b3acd3647ab1e2f5f28fb28378d | 1,853 | ex | Elixir | clients/big_query/lib/google_api/big_query/v2/model/list_routines_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/big_query/lib/google_api/big_query/v2/model/list_routines_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/big_query/lib/google_api/big_query/v2/model/list_routines_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 35.634615 | 168 | 0.735024 |
1d24caee3a47ad24f3e62a96a94240f0fc01a298 | 4,188 | ex | Elixir | lib/ecto/model/optimistic_lock.ex | timgestson/ecto | 1c1eb6d322db04cfa48a4fc81da1332e91adbc1f | [
"Apache-2.0"
] | null | null | null | lib/ecto/model/optimistic_lock.ex | timgestson/ecto | 1c1eb6d322db04cfa48a4fc81da1332e91adbc1f | [
"Apache-2.0"
] | null | null | null | lib/ecto/model/optimistic_lock.ex | timgestson/ecto | 1c1eb6d322db04cfa48a4fc81da1332e91adbc1f | [
"Apache-2.0"
] | null | null | null | defmodule Ecto.Model.OptimisticLock do
@moduledoc """
Facilities for using the optimistic-locking technique.
[Optimistic
locking](http://en.wikipedia.org/wiki/Optimistic_concurrency_control) (or
*optimistic concurrency control*) is a technique that allows concurrent edits
on a single record. While pessimis... | 34.04878 | 80 | 0.700812 |
1d250d1d52116295fd4d8db39c101a76d953a8a5 | 2,242 | exs | Elixir | apps/re_web/test/graphql/interests/contact_requests/mutation_test.exs | ruby2elixir/emcasa-backend | 70d7f4f233555417941ffa6ada84cf8740c21dd2 | [
"MIT"
] | 4 | 2019-11-01T16:29:31.000Z | 2020-10-10T21:20:12.000Z | apps/re_web/test/graphql/interests/contact_requests/mutation_test.exs | caspg/backend | 34df9dc14ab8ed75de4578fefa2e087580c7e867 | [
"MIT"
] | null | null | null | apps/re_web/test/graphql/interests/contact_requests/mutation_test.exs | caspg/backend | 34df9dc14ab8ed75de4578fefa2e087580c7e867 | [
"MIT"
] | 5 | 2019-11-04T21:25:45.000Z | 2020-02-13T23:49:36.000Z | defmodule ReWeb.GraphQL.Interests.ContactRequest.MutationTest do
use ReWeb.ConnCase
alias ReWeb.AbsintheHelpers
import Re.Factory
alias Re.{
Interests.ContactRequest,
Repo
}
setup %{conn: conn} do
conn = put_req_header(conn, "accept", "application/json")
user_user = insert(:user, email: ... | 29.5 | 97 | 0.598127 |
1d252ccf6a4818d220882eb072f372c2232d8a27 | 8,823 | exs | Elixir | apps/gitgud_web/test/gitgud_web/controllers/user_controller_test.exs | EdmondFrank/gitgud | 1952c16130564357aa6f23e35f48f19e3a50d4dd | [
"MIT"
] | 449 | 2018-03-06T01:05:55.000Z | 2022-03-23T21:03:56.000Z | apps/gitgud_web/test/gitgud_web/controllers/user_controller_test.exs | EdmondFrank/gitgud | 1952c16130564357aa6f23e35f48f19e3a50d4dd | [
"MIT"
] | 69 | 2018-03-06T09:26:41.000Z | 2022-03-21T22:43:09.000Z | apps/gitgud_web/test/gitgud_web/controllers/user_controller_test.exs | EdmondFrank/gitgud | 1952c16130564357aa6f23e35f48f19e3a50d4dd | [
"MIT"
] | 41 | 2018-03-06T01:06:07.000Z | 2021-11-21T17:55:04.000Z | defmodule GitGud.Web.UserControllerTest do
use GitGud.Web.ConnCase, async: true
use GitGud.Web.DataFactory
alias GitGud.Email
alias GitGud.User
alias GitGud.UserQuery
alias GitGud.Web.LayoutView
test "renders user registration form", %{conn: conn} do
conn = get(conn, Routes.user_path(conn, :new))
... | 53.150602 | 205 | 0.682308 |
1d25592afc52c1177bd37d730b36a25cb2fac284 | 59,504 | ex | Elixir | lib/plug/conn.ex | kamilwaz/plug | 123974e43594373ee586a60fcd8961405829817e | [
"Apache-2.0"
] | null | null | null | lib/plug/conn.ex | kamilwaz/plug | 123974e43594373ee586a60fcd8961405829817e | [
"Apache-2.0"
] | null | null | null | lib/plug/conn.ex | kamilwaz/plug | 123974e43594373ee586a60fcd8961405829817e | [
"Apache-2.0"
] | null | null | null | alias Plug.Conn.Unfetched
defmodule Plug.Conn do
@moduledoc """
The Plug connection.
This module defines a `Plug.Conn` struct and the main functions
for working with Plug connections.
Note request headers are normalized to lowercase and response
headers are expected to have lowercase keys.
## Request ... | 33.186838 | 104 | 0.670123 |
1d257048fe8bb67819d3c83a06ea0e350517a50e | 503 | exs | Elixir | iex.exs | virtualtam/dotfiles | 4fb0362aadf4ed22bc2c796d21ec32d3193408d2 | [
"WTFPL"
] | 5 | 2016-06-23T09:30:47.000Z | 2021-06-12T06:20:44.000Z | iex.exs | virtualtam/dotfiles | 4fb0362aadf4ed22bc2c796d21ec32d3193408d2 | [
"WTFPL"
] | null | null | null | iex.exs | virtualtam/dotfiles | 4fb0362aadf4ed22bc2c796d21ec32d3193408d2 | [
"WTFPL"
] | 1 | 2020-07-13T03:50:32.000Z | 2020-07-13T03:50:32.000Z | IEx.configure([
colors: [
syntax_colors: [
atom: :cyan,
boolean: [:green, :bright],
nil: :red,
number: :green,
string: :green,
],
ls_directory: :blue,
ls_device: :yellow,
doc_code: :green,
doc_inline_code: :magenta,
doc_headings: [:cyan, :underline],
doc_t... | 20.958333 | 44 | 0.578529 |
1d25773623e5f90fa68acf253a3121da11da44a9 | 1,960 | ex | Elixir | clients/content/lib/google_api/content/v21/model/order_line_item_adjustment.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v21/model/order_line_item_adjustment.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v21/model/order_line_item_adjustment.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... | 35 | 136 | 0.720918 |
1d257a9698c51824dc49f6690913736f24618ffc | 6,196 | ex | Elixir | clients/machine_learning/lib/google_api/machine_learning/v1/model/google_cloud_ml_v1__predict_request.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/machine_learning/lib/google_api/machine_learning/v1/model/google_cloud_ml_v1__predict_request.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/machine_learning/lib/google_api/machine_learning/v1/model/google_cloud_ml_v1__predict_request.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | 1 | 2018-07-28T20:50:50.000Z | 2018-07-28T20:50:50.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... | 158.871795 | 4,955 | 0.625081 |
1d259406954079e92ce3918ba0a8d5a7153f2242 | 289 | ex | Elixir | lib/obelisk/yaml_to_dict.ex | FreedomBen/obelisk | f8f5ca8d73f619f26213c3b2442127c25dec45a2 | [
"MIT"
] | 406 | 2015-01-01T14:59:37.000Z | 2022-02-19T08:08:47.000Z | lib/obelisk/yaml_to_dict.ex | FreedomBen/obelisk | f8f5ca8d73f619f26213c3b2442127c25dec45a2 | [
"MIT"
] | 38 | 2015-01-19T11:58:30.000Z | 2019-01-18T14:06:24.000Z | lib/obelisk/yaml_to_dict.ex | FreedomBen/obelisk | f8f5ca8d73f619f26213c3b2442127c25dec45a2 | [
"MIT"
] | 64 | 2015-01-19T09:59:55.000Z | 2021-02-06T01:14:59.000Z | defmodule Obelisk.YamlToDict do
def convert(dictionary, []) do
dictionary
end
def convert(dictionary, [head|tail]) do
key = String.to_atom(to_string(elem(head, 0)))
value = to_string(elem(head, 1))
n = Dict.put dictionary, key, value
convert n, tail
end
end
| 19.266667 | 50 | 0.67128 |
1d25c4b99175a86ddbb38ea9c3507442d542782d | 250 | exs | Elixir | config/dev.exs | jschoch/zdb | 89b361e624a1c20f503dc237570ca0fd5ea1fd8c | [
"MIT"
] | 11 | 2015-01-04T12:47:21.000Z | 2016-06-27T13:16:46.000Z | config/dev.exs | jschoch/zdb | 89b361e624a1c20f503dc237570ca0fd5ea1fd8c | [
"MIT"
] | 5 | 2015-04-12T11:57:44.000Z | 2016-01-21T21:01:24.000Z | config/test.exs | jschoch/zdb | 89b361e624a1c20f503dc237570ca0fd5ea1fd8c | [
"MIT"
] | null | null | null | use Mix.Config
config :zdb,
ddb_port: 8000,
ddb_host: 'localhost',
ddb_scheme: 'http://',
ddb_key: 'ddb_local_' ++ (Mix.env|>Atom.to_string|> String.to_char_list),
ddb_skey: 'ddb_local_' ++ (Mix.env|>Atom.to_string|> String.to_char_list)
| 25 | 75 | 0.692 |
1d25c76ed993f536b5e03f62643ca6b28aee8f39 | 2,103 | exs | Elixir | mix.exs | nickagliano/books | eec595ed4add9d678278785d9ab10106e1e426d1 | [
"MIT"
] | null | null | null | mix.exs | nickagliano/books | eec595ed4add9d678278785d9ab10106e1e426d1 | [
"MIT"
] | null | null | null | mix.exs | nickagliano/books | eec595ed4add9d678278785d9ab10106e1e426d1 | [
"MIT"
] | null | null | null | defmodule Books.MixProject do
use Mix.Project
def project do
[
app: :books,
version: "0.1.0",
elixir: "~> 1.11.3",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix, :gettext] ++ Mix.compilers(),
start_permanent: Mix.env() == :prod,
aliases: aliases(),
... | 29.208333 | 84 | 0.564432 |
1d25cc73a418141c4d9cc6f23a7bcc813818fc8f | 4,905 | exs | Elixir | test/merkel/audit_test.exs | brpandey/merkel | c295a27476e2d64481bfb343d2e3671ec1680b29 | [
"MIT"
] | 16 | 2018-02-16T23:04:46.000Z | 2022-01-27T08:41:03.000Z | test/merkel/audit_test.exs | brpandey/merkel | c295a27476e2d64481bfb343d2e3671ec1680b29 | [
"MIT"
] | 1 | 2018-06-02T08:47:53.000Z | 2020-01-20T03:21:48.000Z | test/merkel/audit_test.exs | brpandey/merkel | c295a27476e2d64481bfb343d2e3671ec1680b29 | [
"MIT"
] | 1 | 2019-02-12T13:28:41.000Z | 2019-02-12T13:28:41.000Z | defmodule Merkel.AuditTest do
use ExUnit.Case, async: true
import Merkel.Helper
import Merkel.TestHelper
alias Merkel.BinaryHashTree, as: Tree
@list [
{"zebra", 23},
{<<9, 9, 2>>, "992"},
{"giraffe", nil},
{"anteater", "12"},
{"walrus", 49},
{<<23, 1, 0>>, 99},
{<<100, 2>>, :fur... | 35.543478 | 92 | 0.676453 |
1d25fc468494b19f1178b2d8eac0e8ca52b1a112 | 580 | ex | Elixir | lib/osc/bit_string.ex | camshaft/osc_ex | fe6c00fcee0da012cfdf836d4e8eec57dcaf5472 | [
"MIT"
] | 9 | 2016-01-28T09:48:14.000Z | 2022-01-04T08:10:39.000Z | lib/osc/bit_string.ex | camshaft/osc_ex | fe6c00fcee0da012cfdf836d4e8eec57dcaf5472 | [
"MIT"
] | null | null | null | lib/osc/bit_string.ex | camshaft/osc_ex | fe6c00fcee0da012cfdf836d4e8eec57dcaf5472 | [
"MIT"
] | 2 | 2020-10-24T06:35:53.000Z | 2020-12-08T01:54:39.000Z | defimpl OSC.Encoder, for: BitString do
def encode(value, options) do
String.printable?(value)
&& encode_string(value, options)
|| encode_blob(value, options)
end
defp encode_string(value, _) do
pad(value)
end
defp encode_blob(value, _) do
value
|> OSC.Encoder.prefix_size()
|> pad... | 18.709677 | 46 | 0.591379 |
1d2639dcb889188e0781c6e66baa6423a2d38f79 | 1,015 | ex | Elixir | lib/crawly/application.ex | TORIFUKUKaiou/crawly | b40fced067c33a4c55dfd261ebc11d5c9d7f6725 | [
"Apache-2.0"
] | 1 | 2020-10-02T18:33:23.000Z | 2020-10-02T18:33:23.000Z | lib/crawly/application.ex | TORIFUKUKaiou/crawly | b40fced067c33a4c55dfd261ebc11d5c9d7f6725 | [
"Apache-2.0"
] | null | null | null | lib/crawly/application.ex | TORIFUKUKaiou/crawly | b40fced067c33a4c55dfd261ebc11d5c9d7f6725 | [
"Apache-2.0"
] | null | null | null | defmodule Crawly.Application do
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
use Application
def start(_type, _args) do
import Supervisor.Spec, warn: false
# List all child processes to be supervised
children = [
worker(Crawl... | 29 | 66 | 0.666995 |
1d265b0205b988ec835e6bafb97d8548fe76ca98 | 4,134 | exs | Elixir | test/esx/schema/mapping_test.exs | gor181/esx | 8cc247ff92e2dac7f4ee4601298521622597f10c | [
"MIT"
] | 27 | 2017-03-21T15:42:07.000Z | 2021-10-18T21:15:53.000Z | test/esx/schema/mapping_test.exs | ikeikeikeike/es | f38d6576e9bce466b91e4d75ed2c690756db6fb0 | [
"MIT"
] | 2 | 2017-06-03T19:25:13.000Z | 2019-06-05T00:06:48.000Z | test/esx/schema/mapping_test.exs | ikeikeikeike/es | f38d6576e9bce466b91e4d75ed2c690756db6fb0 | [
"MIT"
] | 4 | 2017-10-08T20:17:14.000Z | 2021-05-24T11:22:13.000Z | Code.require_file("../../../test_helper.exs", __ENV__.file)
defmodule ESx.Model.MappingTest do
use ExUnit.Case
doctest ESx
# import ESx.Test.Support.Checks
alias ESx.Test.Support.Definition.{
Schema,
NoDSLSchema
# Model, NonameSchema
}
test "ok schema.mapping.__es_mapping__" do
assert Sc... | 29.319149 | 76 | 0.47702 |
1d268ff14b95fdbabf255a62388bc60c49aaeb2e | 1,002 | exs | Elixir | test/support/endpoint.exs | thefuture2092/coherence | 377d91ff01622773b5a9ec39fadf1f8c27328879 | [
"MIT"
] | 8 | 2019-01-15T08:57:07.000Z | 2020-08-26T13:43:01.000Z | test/support/endpoint.exs | thefuture2092/coherence | 377d91ff01622773b5a9ec39fadf1f8c27328879 | [
"MIT"
] | 2 | 2019-05-29T17:49:10.000Z | 2019-06-18T21:39:22.000Z | test/support/endpoint.exs | thefuture2092/coherence | 377d91ff01622773b5a9ec39fadf1f8c27328879 | [
"MIT"
] | 22 | 2018-12-10T02:15:18.000Z | 2020-10-06T08:42:22.000Z | defmodule TestCoherenceWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :coherence
# def config(one, two) do
# IO.puts "endpoint config one: #{inspect one}, two: #{inspect two}"
# String.duplicate("abcdefgh", 8)
# end
# Serve at "/" the static files from "priv/static" directory.
#
# You should set gz... | 25.692308 | 72 | 0.688623 |
1d26a5b5f13c3a2156cdcdd34a7c743ee4ba161d | 1,851 | exs | Elixir | clients/real_time_bidding/mix.exs | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/real_time_bidding/mix.exs | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/real_time_bidding/mix.exs | 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... | 27.626866 | 108 | 0.660724 |
1d26a8c8d7f25de06afc2bc1b911beef49d97f24 | 780 | ex | Elixir | lib/sobelow/vuln/ecto.ex | kianmeng/sobelow | 40c5f12ed6801c1f9cca13201f7f6ff31c8a7660 | [
"Apache-2.0"
] | null | null | null | lib/sobelow/vuln/ecto.ex | kianmeng/sobelow | 40c5f12ed6801c1f9cca13201f7f6ff31c8a7660 | [
"Apache-2.0"
] | null | null | null | lib/sobelow/vuln/ecto.ex | kianmeng/sobelow | 40c5f12ed6801c1f9cca13201f7f6ff31c8a7660 | [
"Apache-2.0"
] | null | null | null | defmodule Sobelow.Vuln.Ecto do
alias Sobelow.Config
alias Sobelow.Vuln
use Sobelow.Finding
@vuln_vsn ["2.2.0"]
def run(root) do
plug_conf = root <> "/deps/ecto/mix.exs"
if File.exists?(plug_conf) do
vsn = Config.get_version(plug_conf)
case Version.parse(vsn) do
{:ok, vsn} ->
... | 21.081081 | 86 | 0.529487 |
1d26add6ee86910287da03a04a906de4fbef2b3d | 1,043 | ex | Elixir | test/support/conn_case.ex | niku/nigiwaiki | 52c37d2abb2d19084d6bda69c10773ed87701135 | [
"MIT"
] | 2 | 2017-12-07T10:57:47.000Z | 2018-02-04T09:01:05.000Z | test/support/conn_case.ex | niku/nigiwaiki | 52c37d2abb2d19084d6bda69c10773ed87701135 | [
"MIT"
] | null | null | null | test/support/conn_case.ex | niku/nigiwaiki | 52c37d2abb2d19084d6bda69c10773ed87701135 | [
"MIT"
] | null | null | null | defmodule NigiwikiWeb.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 th... | 26.74359 | 70 | 0.720997 |
1d26def44f41cb02eb7d42baee36f46e91f161d3 | 1,200 | exs | Elixir | test/json_xema/chrome_extension_test.exs | starbelly/json_xema | 73ca23f9ce51d450d2f9cf0509ee6bb82f9a8c79 | [
"MIT"
] | 1 | 2019-06-21T10:55:33.000Z | 2019-06-21T10:55:33.000Z | test/json_xema/chrome_extension_test.exs | starbelly/json_xema | 73ca23f9ce51d450d2f9cf0509ee6bb82f9a8c79 | [
"MIT"
] | null | null | null | test/json_xema/chrome_extension_test.exs | starbelly/json_xema | 73ca23f9ce51d450d2f9cf0509ee6bb82f9a8c79 | [
"MIT"
] | null | null | null | defmodule JsonXema.ChromeExtensionTest do
use ExUnit.Case, async: true
import JsonXema, only: [validate: 2]
describe "chrome extension schema" do
setup do
%{schema: JsonXema.new(schema())}
end
test "with valid data", %{schema: schema} do
assert validate(schema, data()) == :ok
end
... | 22.222222 | 77 | 0.538333 |
1d26e88189d8a8cbcdc9b30616a60152a35485aa | 977 | exs | Elixir | mix.exs | RichMorin/phoenix_html | fd5036c474cee65b9d85e86057eae135069f5666 | [
"MIT"
] | null | null | null | mix.exs | RichMorin/phoenix_html | fd5036c474cee65b9d85e86057eae135069f5666 | [
"MIT"
] | null | null | null | mix.exs | RichMorin/phoenix_html | fd5036c474cee65b9d85e86057eae135069f5666 | [
"MIT"
] | null | null | null | defmodule PhoenixHtml.Mixfile do
use Mix.Project
# Also change package.json version
@version "2.13.1"
def project do
[
app: :phoenix_html,
version: @version,
elixir: "~> 1.5.1 or ~> 1.6",
deps: deps(),
name: "Phoenix.HTML",
description: "Phoenix view functions for worki... | 22.204545 | 77 | 0.582395 |
1d26f09c9933bbf09085282ed8931696cbfac662 | 78 | exs | Elixir | test/views/page_view_test.exs | juanjcsr/BudgetAndCashAPI | 89c83c73175663d4572d6bfd0442af22353b6bc9 | [
"MIT"
] | null | null | null | test/views/page_view_test.exs | juanjcsr/BudgetAndCashAPI | 89c83c73175663d4572d6bfd0442af22353b6bc9 | [
"MIT"
] | null | null | null | test/views/page_view_test.exs | juanjcsr/BudgetAndCashAPI | 89c83c73175663d4572d6bfd0442af22353b6bc9 | [
"MIT"
] | null | null | null | defmodule BudgetApi.PageViewTest do
use BudgetApi.ConnCase, async: true
end
| 19.5 | 37 | 0.820513 |
1d26fda2d1797fef34f9a2924cf8082b68b0ee15 | 1,833 | exs | Elixir | test/blockchain_test.exs | bmitc/introducing-blockchain-with-elixir | 69cbf670657c8a15313f49acff0c3e6e3cc8023f | [
"MIT"
] | 1 | 2022-03-21T22:57:46.000Z | 2022-03-21T22:57:46.000Z | test/blockchain_test.exs | bmitc/introducing-blockchain-with-elixir | 69cbf670657c8a15313f49acff0c3e6e3cc8023f | [
"MIT"
] | null | null | null | test/blockchain_test.exs | bmitc/introducing-blockchain-with-elixir | 69cbf670657c8a15313f49acff0c3e6e3cc8023f | [
"MIT"
] | null | null | null | defmodule Blockchain.BlockchainTest do
use ExUnit.Case, async: true
alias Blockchain.Hash
alias Blockchain.Transaction
alias Blockchain.Wallet
test "initializing a blockchain" do
coin_base = Wallet.new()
wallet_a = Wallet.new()
genesis_transaction = Transaction.new(coin_base, wallet_a, 100, [])
... | 27.772727 | 92 | 0.65521 |
1d2704e46608eb8c9b99e347433f27cd6f09bcd7 | 1,969 | exs | Elixir | test/neo4j_sips_server_test.exs | szTheory/neo4j_sips | 1d455fa98d9aaef9fa12d49b380d8a74c7e60903 | [
"MIT"
] | 90 | 2015-10-12T17:57:11.000Z | 2021-04-26T06:29:00.000Z | test/neo4j_sips_server_test.exs | szTheory/neo4j_sips | 1d455fa98d9aaef9fa12d49b380d8a74c7e60903 | [
"MIT"
] | 23 | 2015-12-04T01:56:03.000Z | 2019-10-08T23:23:37.000Z | test/neo4j_sips_server_test.exs | szTheory/neo4j_sips | 1d455fa98d9aaef9fa12d49b380d8a74c7e60903 | [
"MIT"
] | 36 | 2016-01-06T16:07:56.000Z | 2021-02-18T09:29:48.000Z | defmodule Neo4j.Sips.Server.Test do
use ExUnit.Case, async: true
# alias Neo4j.Sips.Server
# @db_url Neo4j.Sips.Utils.default_config()[:url]
# test "server initialization" do
# case Server.init(url: @db_url, timeout: 60) do
# {:ok, pid} -> {:ok, %{pid: pid}}
# {:error, message} -> Mix.r... | 35.8 | 90 | 0.648045 |
1d2748d6c5826e4e60b7a29c980fd8009d564fc5 | 413 | exs | Elixir | test/hayago_web/views/error_view_test.exs | jeffkreeftmeijer/hayago | f80e3204efc70fb4c144a75952534ef143ab584d | [
"Apache-2.0"
] | 60 | 2019-06-14T02:38:33.000Z | 2022-02-27T22:08:36.000Z | test/hayago_web/views/error_view_test.exs | jeffkreeftmeijer/hayago | f80e3204efc70fb4c144a75952534ef143ab584d | [
"Apache-2.0"
] | 2 | 2020-01-05T09:09:58.000Z | 2020-12-31T09:54:13.000Z | test/hayago_web/views/error_view_test.exs | jeffkreeftmeijer/hayago | f80e3204efc70fb4c144a75952534ef143ab584d | [
"Apache-2.0"
] | 15 | 2019-06-14T02:38:39.000Z | 2021-10-30T21:53:08.000Z | defmodule HayagoWeb.ErrorViewTest do
use HayagoWeb.ConnCase, async: true
# Bring render/3 and render_to_string/3 for testing custom views
import Phoenix.View
test "renders 404.html" do
assert render_to_string(HayagoWeb.ErrorView, "404.html", []) == "Not Found"
end
test "renders 500.html" do
asser... | 27.533333 | 91 | 0.731235 |
1d27552634d36a54c6a83d15a1b79c00bff775f3 | 119 | ex | Elixir | lib/day1/day1.ex | crsanti/advent-of-code-elixir-boilerplate | 91cea8e48541888535184b06c61982b939830f03 | [
"MIT"
] | null | null | null | lib/day1/day1.ex | crsanti/advent-of-code-elixir-boilerplate | 91cea8e48541888535184b06c61982b939830f03 | [
"MIT"
] | null | null | null | lib/day1/day1.ex | crsanti/advent-of-code-elixir-boilerplate | 91cea8e48541888535184b06c61982b939830f03 | [
"MIT"
] | null | null | null | defmodule AdventOfCode.Day1 do
def input do
""
end
def run1(input) do
end
def run2(input) do
end
end
| 9.916667 | 30 | 0.647059 |
1d2768335e14a6ecc156ef19354c0a95e22d4946 | 2,619 | ex | Elixir | lib/imager/tool.ex | appunite/imager | b41f76be975faf4d255ad0a5d8e972df1924356b | [
"MIT"
] | 55 | 2018-10-02T14:56:04.000Z | 2021-12-10T21:08:07.000Z | lib/imager/tool.ex | appunite/imager | b41f76be975faf4d255ad0a5d8e972df1924356b | [
"MIT"
] | 27 | 2018-10-02T14:57:09.000Z | 2019-04-11T07:51:11.000Z | lib/imager/tool.ex | appunite/imager | b41f76be975faf4d255ad0a5d8e972df1924356b | [
"MIT"
] | 3 | 2018-10-12T18:31:41.000Z | 2020-04-22T15:26:25.000Z | defmodule Imager.Tool do
@moduledoc """
Describe tool used by the current instance to convert images
"""
@type command ::
{:thumbnail, binary()}
| {:strip, any()}
| {:gravity, binary()}
| {:extent, binary()}
| {:flatten, any()}
| {:background, any()}
... | 32.7375 | 74 | 0.621993 |
1d27be044794696ac0002b147cc97a19b5f54eba | 701 | ex | Elixir | lib/hook/broadcaster.ex | paulelliott/accent | fabd0d2768088adf780317c6e44fcabcccadba11 | [
"BSD-3-Clause"
] | 1 | 2020-07-01T16:08:34.000Z | 2020-07-01T16:08:34.000Z | lib/hook/broadcaster.ex | paulelliott/accent | fabd0d2768088adf780317c6e44fcabcccadba11 | [
"BSD-3-Clause"
] | 6 | 2021-03-11T07:37:48.000Z | 2022-02-13T21:10:33.000Z | lib/hook/broadcaster.ex | doc-ai/accent | e337e16f3658cc0728364f952c0d9c13710ebb06 | [
"BSD-3-Clause"
] | 1 | 2020-05-29T21:47:35.000Z | 2020-05-29T21:47:35.000Z | defmodule Accent.Hook.Broadcaster do
@notifiers [
Accent.Hook.Producers.Email,
Accent.Hook.Producers.Websocket,
Accent.Hook.Producers.Slack,
Accent.Hook.Producers.Discord
]
@callback notify(Accent.Hook.Context.t()) :: no_return()
@callback external_document_update(:github, Accent.Hook.Context.t... | 29.208333 | 95 | 0.720399 |
1d27e502004e252fe4a3e7a0538d2c3330163a7b | 179 | exs | Elixir | test/controllers/page_controller_test.exs | korczis/web-spa | 0e8d684fbd8c91b9c745c75c757517821fc24a3a | [
"MIT"
] | 1 | 2021-01-17T21:57:46.000Z | 2021-01-17T21:57:46.000Z | test/controllers/page_controller_test.exs | korczis/web-spa | 0e8d684fbd8c91b9c745c75c757517821fc24a3a | [
"MIT"
] | null | null | null | test/controllers/page_controller_test.exs | korczis/web-spa | 0e8d684fbd8c91b9c745c75c757517821fc24a3a | [
"MIT"
] | 1 | 2017-07-13T08:34:20.000Z | 2017-07-13T08:34:20.000Z | defmodule WebSpa.PageControllerTest do
use WebSpa.ConnCase
test "GET /", %{conn: conn} do
conn = get conn, "/"
assert html_response(conn, 200) =~ "Web SPA"
end
end
| 19.888889 | 48 | 0.659218 |
1d27f3004af363904895c8e7135eed84f8fd06b8 | 213 | ex | Elixir | lib/phone/nanp/dm.ex | net/phone | 18e1356d2f8d32fe3f95638c3c44bceab0164fb2 | [
"Apache-2.0"
] | null | null | null | lib/phone/nanp/dm.ex | net/phone | 18e1356d2f8d32fe3f95638c3c44bceab0164fb2 | [
"Apache-2.0"
] | null | null | null | lib/phone/nanp/dm.ex | net/phone | 18e1356d2f8d32fe3f95638c3c44bceab0164fb2 | [
"Apache-2.0"
] | null | null | null | defmodule Phone.NANP.DM do
@moduledoc false
use Helper.Country
def regex, do: ~r/^(1)(767)([2-9].{6})$/
def country, do: "Dominica"
def a2, do: "DM"
def a3, do: "DMA"
matcher :regex, ["1767"]
end
| 16.384615 | 42 | 0.600939 |
1d282e7a9bb1fb2d3f06c31565cceb0f3aad3784 | 16 | exs | Elixir | start_point/test/test_helper.exs | cyber-dojo-start-points/elixir-exunit | ebc7a55024105e368b700aa212bfd668f6011665 | [
"BSD-2-Clause"
] | 2 | 2017-12-02T18:55:13.000Z | 2019-05-16T09:27:51.000Z | start_point/test/test_helper.exs | cyber-dojo-start-points/elixir-exunit | ebc7a55024105e368b700aa212bfd668f6011665 | [
"BSD-2-Clause"
] | 2 | 2017-12-02T21:09:33.000Z | 2019-01-22T02:04:50.000Z | start_point/test/test_helper.exs | cyber-dojo-start-points/elixir-exunit | ebc7a55024105e368b700aa212bfd668f6011665 | [
"BSD-2-Clause"
] | 3 | 2017-12-06T15:13:10.000Z | 2019-01-21T02:14:40.000Z | ExUnit.start()
| 8 | 15 | 0.6875 |
1d2834db364077d82b5665e3e6ca04ba64a67e75 | 561 | exs | Elixir | 17-Conway3d/test/conway3d_test.exs | dvrensk/advent-of-code-2020 | 237e80da9958f37e51c0ac84da74bec5fec1f185 | [
"Unlicense"
] | 1 | 2020-12-02T01:34:06.000Z | 2020-12-02T01:34:06.000Z | 17-Conway3d/test/conway3d_test.exs | dvrensk/advent-of-code-2020 | 237e80da9958f37e51c0ac84da74bec5fec1f185 | [
"Unlicense"
] | null | null | null | 17-Conway3d/test/conway3d_test.exs | dvrensk/advent-of-code-2020 | 237e80da9958f37e51c0ac84da74bec5fec1f185 | [
"Unlicense"
] | null | null | null | defmodule Conway3dTest do
use ExUnit.Case
doctest Conway3d
test "puzzle 1: count after boot" do
assert Conway3d.count_after_6(input()) == 348
end
def input(path \\ "input.txt"), do: File.read!(path)
def input_lines(path \\ "input.txt"), do: input(path) |> String.split("\n", trim: true)
def input_par... | 31.166667 | 96 | 0.655971 |
1d2878f2dcec6a81a8875a674ae08cde20f21e32 | 1,922 | ex | Elixir | clients/cloud_asset/lib/google_api/cloud_asset/v1/model/iam_policy_analysis_state.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/cloud_asset/lib/google_api/cloud_asset/v1/model/iam_policy_analysis_state.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/cloud_asset/lib/google_api/cloud_asset/v1/model/iam_policy_analysis_state.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... | 38.44 | 347 | 0.737773 |
1d28961ec32e937923c93f54daac52d657f03c9a | 772 | ex | Elixir | lib/ouidata/parser.ex | shamanime/ouidata | 4acba55f56195c6f939b4eefd68472480548e7fe | [
"MIT"
] | null | null | null | lib/ouidata/parser.ex | shamanime/ouidata | 4acba55f56195c6f939b4eefd68472480548e7fe | [
"MIT"
] | null | null | null | lib/ouidata/parser.ex | shamanime/ouidata | 4acba55f56195c6f939b4eefd68472480548e7fe | [
"MIT"
] | null | null | null | defmodule Ouidata.Parser do
@moduledoc false
import Ouidata.Util
def read_file(file_name, dir_prepend) do
File.stream!("#{dir_prepend}/#{file_name}")
|> process_file
end
def process_file(file_stream) do
file_stream
|> filter_comment_lines
|> filter_empty_lines
|> Stream.map(fn strin... | 23.393939 | 71 | 0.549223 |
1d28d52e2faa6f7202f630c7807ef823cd5e576a | 722 | exs | Elixir | test/bacen/ccs/message_body_test.exs | aleDsz/bacen_ccs | 573634bd4cad5f068a120850fe8ef846d270a604 | [
"MIT"
] | 3 | 2021-10-30T20:02:52.000Z | 2021-11-12T22:55:30.000Z | test/bacen/ccs/message_body_test.exs | aleDsz/bacen_ccs | 573634bd4cad5f068a120850fe8ef846d270a604 | [
"MIT"
] | 7 | 2021-11-18T00:39:10.000Z | 2022-03-23T11:11:26.000Z | test/bacen/ccs/message_body_test.exs | aleDsz/bacen_ccs | 573634bd4cad5f068a120850fe8ef846d270a604 | [
"MIT"
] | null | null | null | defmodule Bacen.CCS.MessageBodyTest do
use Bacen.CCS.EctoCase
alias Bacen.CCS.MessageBody
test "type/0 returns map type" do
assert MessageBody.type() == :map
end
describe "cast/1" do
test "casts successfully an ACCS message type" do
message = build(:accs001)
assert {:ok, message} == Mes... | 23.290323 | 56 | 0.674515 |
1d28e3549772260983f8579639b2465775707786 | 2,298 | ex | Elixir | lib/parser.ex | liveforeverx/lisir | 4974b88c6fe2789933a21c0aa3343fedd3c6f42b | [
"MIT"
] | 3 | 2018-05-27T13:32:29.000Z | 2021-12-11T10:56:13.000Z | lib/parser.ex | liveforeverx/lisir | 4974b88c6fe2789933a21c0aa3343fedd3c6f42b | [
"MIT"
] | null | null | null | lib/parser.ex | liveforeverx/lisir | 4974b88c6fe2789933a21c0aa3343fedd3c6f42b | [
"MIT"
] | 1 | 2018-10-04T09:13:37.000Z | 2018-10-04T09:13:37.000Z | defmodule Parser do
@moduledoc """
Contains the parser for lisir.
"""
@doc """
Turns the given expression into a list of tokens.
eg.
"(define x (* 2 3))" => ['(', 'define', 'x', '(', '*', '2', '3', ')', ')']
"""
def tokenize(s) do
tokenize(s, [], [])
end
def tokenize("", t_acc, acc) do
u... | 21.082569 | 76 | 0.508268 |
1d28f6a5583138b6cc5d196188a58fa085c9f19a | 147 | ex | Elixir | lib/igdb/resources/game_version_feature.ex | facto/igdb | 9662e9ffd41e0925c22b1d3cd4774ae49b68e89e | [
"MIT"
] | 2 | 2018-04-09T07:34:37.000Z | 2020-03-08T06:50:03.000Z | lib/igdb/resources/game_version_feature.ex | tomasz-tomczyk/igdb | 98d777798503f427e6c302da0251e819b9583c65 | [
"MIT"
] | null | null | null | lib/igdb/resources/game_version_feature.ex | tomasz-tomczyk/igdb | 98d777798503f427e6c302da0251e819b9583c65 | [
"MIT"
] | null | null | null | defmodule Igdb.GameVersionFeature do
@moduledoc """
Represents a Game Version Feature resource in the IGDB API.
"""
use Igdb.Resource
end
| 18.375 | 61 | 0.741497 |
1d2922680da9833b2584aa22401bfa5bb7f3940b | 1,964 | ex | Elixir | clients/content/lib/google_api/content/v21/model/order_line_item_shipping_details_method.ex | kaaboaye/elixir-google-api | 1896784c4342151fd25becd089a5beb323eff567 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v21/model/order_line_item_shipping_details_method.ex | kaaboaye/elixir-google-api | 1896784c4342151fd25becd089a5beb323eff567 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v21/model/order_line_item_shipping_details_method.ex | kaaboaye/elixir-google-api | 1896784c4342151fd25becd089a5beb323eff567 | [
"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.071429 | 153 | 0.716904 |
1d295ec6b4e95aff1cd903317e3b48621ffff38f | 344 | exs | Elixir | priv/repo/seeds.exs | seansu4you87/betazoids | a8aac9074f5efaad4cd88ffdf7cdef53d4beb5cd | [
"MIT"
] | null | null | null | priv/repo/seeds.exs | seansu4you87/betazoids | a8aac9074f5efaad4cd88ffdf7cdef53d4beb5cd | [
"MIT"
] | null | null | null | priv/repo/seeds.exs | seansu4you87/betazoids | a8aac9074f5efaad4cd88ffdf7cdef53d4beb5cd | [
"MIT"
] | 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:
#
# Betazoids.Repo.insert!(%SomeModel{})
#
# We recommend using the bang functions (`insert!`, `update!`
# and so on) as they will fail i... | 28.666667 | 61 | 0.703488 |
1d296142cb4ce35edf7273c33b444826a0229f23 | 1,543 | ex | Elixir | lib/gutenex/pdf/images.ex | tulinmola/gutenex | 09a17dada273e089685176b5a14820430624675f | [
"MIT"
] | 184 | 2015-01-16T23:05:42.000Z | 2018-10-25T18:51:52.000Z | lib/gutenex/pdf/images.ex | nicolasva/gutenex | 69aba56001455e3ff6ec6257d95b2f70e3fcffad | [
"MIT"
] | 15 | 2015-05-29T00:28:08.000Z | 2018-10-11T18:55:35.000Z | lib/gutenex/pdf/images.ex | nicolasva/gutenex | 69aba56001455e3ff6ec6257d95b2f70e3fcffad | [
"MIT"
] | 32 | 2015-02-14T07:39:48.000Z | 2018-09-12T21:01:02.000Z | defmodule Gutenex.PDF.Images do
alias Gutenex.PDF.Graphics
alias Imagineer.Image.PNG
def set_image(image_alias, %PNG{} = image, options \\ %{}) do
Graphics.with_state(fn ->
scale(image_options(image, options)) <> Graphics.paint(image_alias)
end)
end
# So named because `alias` is not something ... | 22.362319 | 73 | 0.604666 |
1d2982d5a965abbe9a8f420b84cffc62d808f8c8 | 71 | exs | Elixir | test/helpers/escaped_default_test.exs | fireproofsocks/zappa | d89d983b73652e761861bd7c2c5d03a45fc4badd | [
"Apache-2.0"
] | 1 | 2021-08-23T21:48:14.000Z | 2021-08-23T21:48:14.000Z | test/helpers/escaped_default_test.exs | fireproofsocks/zappa | d89d983b73652e761861bd7c2c5d03a45fc4badd | [
"Apache-2.0"
] | null | null | null | test/helpers/escaped_default_test.exs | fireproofsocks/zappa | d89d983b73652e761861bd7c2c5d03a45fc4badd | [
"Apache-2.0"
] | null | null | null | defmodule Zappa.Helpers.EscapedDefaultTest do
use Zappa.TestCase
end
| 17.75 | 45 | 0.84507 |
1d298791ab6111edf602e89b88190cace92ef618 | 708 | ex | Elixir | todoapi/lib/todoapi_web/gettext.ex | BruceBC/BakeOffElixirPhoenix | b674b0d2ddc9ba04ff00f21e0eb1586543002467 | [
"MIT"
] | null | null | null | todoapi/lib/todoapi_web/gettext.ex | BruceBC/BakeOffElixirPhoenix | b674b0d2ddc9ba04ff00f21e0eb1586543002467 | [
"MIT"
] | null | null | null | todoapi/lib/todoapi_web/gettext.ex | BruceBC/BakeOffElixirPhoenix | b674b0d2ddc9ba04ff00f21e0eb1586543002467 | [
"MIT"
] | null | null | null | defmodule TodoapiWeb.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 TodoapiWeb.Gettext
# Simple translation
gettext "Here is t... | 28.32 | 72 | 0.680791 |
1d299c7626c589878e817fea8dcca120720b404d | 950 | ex | Elixir | lib/chat_api/widget_settings/widget_setting.ex | raditya3/papercups | 4657b258ee381ac0b7517e57e4d6261ce94b5871 | [
"MIT"
] | 1 | 2020-10-02T18:33:47.000Z | 2020-10-02T18:33:47.000Z | lib/chat_api/widget_settings/widget_setting.ex | raditya3/papercups | 4657b258ee381ac0b7517e57e4d6261ce94b5871 | [
"MIT"
] | null | null | null | lib/chat_api/widget_settings/widget_setting.ex | raditya3/papercups | 4657b258ee381ac0b7517e57e4d6261ce94b5871 | [
"MIT"
] | null | null | null | defmodule ChatApi.WidgetSettings.WidgetSetting do
use Ecto.Schema
import Ecto.Changeset
alias ChatApi.Accounts.Account
@primary_key {:id, :binary_id, autogenerate: true}
@foreign_key_type :binary_id
schema "widget_settings" do
field :title, :string
field :subtitle, :string
field :color, :strin... | 21.111111 | 52 | 0.663158 |
1d29c9054b2f4ccfec92d968c812753f6f8b0b49 | 4,706 | ex | Elixir | implementations/elixir/ockam/ockam/lib/ockam/protocol/message_protocol.ex | jjscheel/ockam | 04088346c5c11c0f2969422288ffd95404d9b00a | [
"Apache-2.0"
] | null | null | null | implementations/elixir/ockam/ockam/lib/ockam/protocol/message_protocol.ex | jjscheel/ockam | 04088346c5c11c0f2969422288ffd95404d9b00a | [
"Apache-2.0"
] | null | null | null | implementations/elixir/ockam/ockam/lib/ockam/protocol/message_protocol.ex | jjscheel/ockam | 04088346c5c11c0f2969422288ffd95404d9b00a | [
"Apache-2.0"
] | null | null | null | defmodule Ockam.MessageProtocol do
@moduledoc false
@type schema() :: any()
@type extended_schema() :: schema() | [{atom(), schema()}]
@type protocol_mapping() :: Ockam.Protocol.mapping()
@type decode_error() :: {:error, {:decode_error, schema :: schema(), result :: any()}}
@type match_error() ::
... | 29.049383 | 96 | 0.630897 |
1d29d6fb9a797d32e0ddf7ba9f8e72b23fea2d66 | 8,795 | ex | Elixir | lib/earmark/parser/list_parser.ex | maartenvanvliet/earmark | 6e0e4ae202728fa7b1f0e3e10ef982a167120450 | [
"Apache-1.1"
] | null | null | null | lib/earmark/parser/list_parser.ex | maartenvanvliet/earmark | 6e0e4ae202728fa7b1f0e3e10ef982a167120450 | [
"Apache-1.1"
] | null | null | null | lib/earmark/parser/list_parser.ex | maartenvanvliet/earmark | 6e0e4ae202728fa7b1f0e3e10ef982a167120450 | [
"Apache-1.1"
] | null | null | null | defmodule Earmark.Parser.ListParser do
alias Earmark.Block
alias Earmark.Line
alias Earmark.Options
alias Earmark.Parser.ListInfo
import Earmark.Helpers.StringHelpers, only: [behead: 2]
import Earmark.Helpers.LookaheadHelpers, only: [ still_inline_code: 2]
import Earmark.Message, only: [add_message: 2]
... | 39.088889 | 161 | 0.701649 |
1d2a15b275e6c239b400ea48346cf62b2cf94f4b | 471 | exs | Elixir | app_ui/config/test.exs | samuelventura/nerves_sample_bbb_emmc | 13b2d376b002c420f71f62cfe48fc3eea4c83a1d | [
"Apache-2.0"
] | null | null | null | app_ui/config/test.exs | samuelventura/nerves_sample_bbb_emmc | 13b2d376b002c420f71f62cfe48fc3eea4c83a1d | [
"Apache-2.0"
] | null | null | null | app_ui/config/test.exs | samuelventura/nerves_sample_bbb_emmc | 13b2d376b002c420f71f62cfe48fc3eea4c83a1d | [
"Apache-2.0"
] | null | null | null | import Config
# We don't run a server during test. If one is required,
# you can enable the server option below.
config :app_ui, AppUiWeb.Endpoint,
http: [ip: {127, 0, 0, 1}, port: 4002],
secret_key_base: "SyXdamVb/I6t5fN6hGSZGstjfHH3Cpn/mJL5DnFy85gGa60AMQAbYsqyvJxV6c7h",
server: false
# Print only warnings and... | 31.4 | 86 | 0.764331 |
1d2a2bf8a5b584011f448d3d602968b56ae9e776 | 9,352 | ex | Elixir | test/support/fixtures.ex | Gazler/nerves_hub_web | 9a636a17310382819eaa6cee590e053cb47f0dcc | [
"Apache-2.0"
] | null | null | null | test/support/fixtures.ex | Gazler/nerves_hub_web | 9a636a17310382819eaa6cee590e053cb47f0dcc | [
"Apache-2.0"
] | null | null | null | test/support/fixtures.ex | Gazler/nerves_hub_web | 9a636a17310382819eaa6cee590e053cb47f0dcc | [
"Apache-2.0"
] | null | null | null | Code.compiler_options(ignore_module_conflict: true)
defmodule NervesHubWebCore.Fixtures do
alias NervesHubWebCore.{
Accounts,
Accounts.Org,
Certificate,
Devices,
Deployments,
Firmwares,
Products,
Repo
}
alias NervesHubWebCore.Support.Fwup
@after_compile {__MODULE__, :compiler_... | 28.775385 | 96 | 0.651198 |
1d2a2caa84dc51b78b1ac0dfc46fb7c2b6bca283 | 225 | ex | Elixir | lib/shopix/schema/property.ex | gsarwate/shopix | 21d0e85294ee92cb7573d1b5a5746af6824b9355 | [
"MIT"
] | 196 | 2019-05-05T15:59:32.000Z | 2022-03-15T02:37:19.000Z | lib/shopix/schema/property.ex | gsarwate/shopix | 21d0e85294ee92cb7573d1b5a5746af6824b9355 | [
"MIT"
] | 105 | 2019-05-04T19:04:40.000Z | 2021-07-28T11:21:45.000Z | lib/shopix/schema/property.ex | gsarwate/shopix | 21d0e85294ee92cb7573d1b5a5746af6824b9355 | [
"MIT"
] | 26 | 2019-05-05T19:40:52.000Z | 2021-11-16T00:32:46.000Z | defmodule Shopix.Schema.Property do
use Ecto.Schema
use Shopix.TranslationFields, translated_fields: ~w(name)
schema "properties" do
field :key, :string
schema_translation_fields()
timestamps()
end
end
| 17.307692 | 59 | 0.733333 |
1d2a2df4c0dec0c36f7c018ea3579640744dd4ef | 7,909 | ex | Elixir | implementations/elixir/ockam/ockam/lib/ockam/worker.ex | twittner/ockam | 96eadf99da42f7c35539c6e29010a657c579ccba | [
"Apache-2.0"
] | null | null | null | implementations/elixir/ockam/ockam/lib/ockam/worker.ex | twittner/ockam | 96eadf99da42f7c35539c6e29010a657c579ccba | [
"Apache-2.0"
] | 10 | 2022-02-23T06:44:58.000Z | 2022-03-23T21:04:37.000Z | implementations/elixir/ockam/ockam/lib/ockam/worker.ex | twittner/ockam | 96eadf99da42f7c35539c6e29010a657c579ccba | [
"Apache-2.0"
] | null | null | null | defmodule Ockam.Worker do
@moduledoc false
alias Ockam.Telemetry
@callback setup(options :: Keyword.t(), initial_state :: map()) ::
{:ok, state :: map()} | {:error, reason :: any()}
@callback handle_message(message :: Ockam.Message.t(), state :: map()) ::
{:ok, state :: map()}
... | 30.419231 | 101 | 0.618536 |
1d2a73ea3b2f20567fcc408224afb4793ac3532f | 2,763 | ex | Elixir | implementations/elixir/ockam/ockam/lib/ockam/remote_forwarder.ex | jared-s/ockam | a1d482550aeafbc2a6040a5efb3f5effc9974d51 | [
"Apache-2.0"
] | 1,912 | 2019-01-10T14:17:00.000Z | 2022-03-30T19:16:44.000Z | implementations/elixir/ockam/ockam/lib/ockam/remote_forwarder.ex | jared-s/ockam | a1d482550aeafbc2a6040a5efb3f5effc9974d51 | [
"Apache-2.0"
] | 1,473 | 2019-01-16T15:14:47.000Z | 2022-03-31T23:44:50.000Z | implementations/elixir/ockam/ockam/lib/ockam/remote_forwarder.ex | jared-s/ockam | a1d482550aeafbc2a6040a5efb3f5effc9974d51 | [
"Apache-2.0"
] | 219 | 2019-01-11T03:35:13.000Z | 2022-03-31T10:25:56.000Z | defmodule Ockam.RemoteForwarder do
@moduledoc """
Ockam worker to handle forwarding from the Ockam Hub forwarding service `Ockam.Hub.Service.Forwarding`
On start creates a hub forwarder in the forwarding service.
Forwards messages from the hub forwarder to configured route.
Options:
`service_route` - a r... | 27.63 | 104 | 0.707564 |
1d2a9fcb4a4b07f4b687c84c9683600b54d8e1fd | 19,458 | exs | Elixir | test/changeset/changeset_test.exs | WolfDan/ash | 7cc60f41a003e2d06b5e19107e22424efafed1be | [
"MIT"
] | null | null | null | test/changeset/changeset_test.exs | WolfDan/ash | 7cc60f41a003e2d06b5e19107e22424efafed1be | [
"MIT"
] | null | null | null | test/changeset/changeset_test.exs | WolfDan/ash | 7cc60f41a003e2d06b5e19107e22424efafed1be | [
"MIT"
] | null | null | null | defmodule Ash.Test.Changeset.ChangesetTest do
@moduledoc false
use ExUnit.Case, async: true
alias Ash.Changeset
defmodule Category do
use Ash.Resource, data_layer: Ash.DataLayer.Ets
ets do
private?(true)
end
actions do
read :default
create :default
end
attributes d... | 26.950139 | 128 | 0.591325 |
1d2aa041cdd154bac66c1b9445fca467bbc18359 | 1,691 | ex | Elixir | lib/ex_clubhouse/ops/file.ex | pootsbook/exclubhouse | 3b93cded0124e4e5df489db4f9262a560595bb8e | [
"MIT"
] | 4 | 2020-03-17T00:42:10.000Z | 2021-04-11T16:39:52.000Z | lib/ex_clubhouse/ops/file.ex | pootsbook/exclubhouse | 3b93cded0124e4e5df489db4f9262a560595bb8e | [
"MIT"
] | 7 | 2020-03-21T20:22:13.000Z | 2021-12-30T16:32:07.000Z | lib/ex_clubhouse/ops/file.ex | pootsbook/exclubhouse | 3b93cded0124e4e5df489db4f9262a560595bb8e | [
"MIT"
] | 4 | 2020-03-25T18:34:49.000Z | 2021-09-13T16:44:00.000Z | defmodule ExClubhouse.Ops.File do
@moduledoc """
File ops
"""
alias ExClubhouse.Operation
alias ExClubhouse.Model.Input
@spec list :: ExClubhouse.Operation.t()
def list do
%Operation{
id: :file_list,
method: :get,
path: "files"
}
end
@spec get(integer()) :: ExClubhouse.Ope... | 22.851351 | 111 | 0.637493 |
1d2aa04fd4c7a0ed91486dc8d3744a6ff12805b2 | 1,780 | exs | Elixir | test/exnn/nodes_test.exs | zampino/exnn | 2be888df107644daab1aca7614fecb4940fe3c84 | [
"MIT"
] | 104 | 2015-06-18T18:54:25.000Z | 2021-11-04T15:07:02.000Z | test/exnn/nodes_test.exs | nelyj/exnn | 2be888df107644daab1aca7614fecb4940fe3c84 | [
"MIT"
] | 3 | 2016-10-09T11:19:42.000Z | 2018-09-17T16:36:32.000Z | test/exnn/nodes_test.exs | nelyj/exnn | 2be888df107644daab1aca7614fecb4940fe3c84 | [
"MIT"
] | 17 | 2016-03-08T19:02:51.000Z | 2019-04-27T16:40:52.000Z | defmodule EXNN.NodesTest do
use ExUnit.Case, async: true
defmodule TestSensor do
use GenServer
def start_link(genome) do
send :test_pid, genome.message
GenServer.start_link(__MODULE__, genome, [name: genome.id])
end
def handle_cast :foo, state do
IO.puts "foo!!!"
{:noreply... | 23.733333 | 93 | 0.622472 |
1d2ab6dae1c120768778eaf4792941238158eba6 | 257 | ex | Elixir | hello_naked/lib/hello_naked.ex | playgd/learning-elixir | 3909b540ccd7f54b174de9c6c6f258e94865ba6b | [
"MIT"
] | 16 | 2021-11-08T12:15:27.000Z | 2022-02-11T01:00:20.000Z | hello_naked/lib/hello_naked.ex | playgd/learning-elixir | 3909b540ccd7f54b174de9c6c6f258e94865ba6b | [
"MIT"
] | null | null | null | hello_naked/lib/hello_naked.ex | playgd/learning-elixir | 3909b540ccd7f54b174de9c6c6f258e94865ba6b | [
"MIT"
] | 2 | 2021-11-19T11:32:58.000Z | 2022-01-16T00:36:32.000Z | defmodule HelloNaked do
@moduledoc """
HelloNaked keeps the contexts that define your domain
and business logic.
Contexts are also responsible for managing your data, regardless
if it comes from the database, an external API or others.
"""
end
| 25.7 | 66 | 0.758755 |
1d2acb952db4ffafa064151448da34720206c256 | 2,954 | ex | Elixir | lib/scrivener/html/seo.ex | c4710n/scrivener_html_semi | dbf647508d07e98a5c484f36c0f0ebc2dae777ea | [
"MIT"
] | null | null | null | lib/scrivener/html/seo.ex | c4710n/scrivener_html_semi | dbf647508d07e98a5c484f36c0f0ebc2dae777ea | [
"MIT"
] | null | null | null | lib/scrivener/html/seo.ex | c4710n/scrivener_html_semi | dbf647508d07e98a5c484f36c0f0ebc2dae777ea | [
"MIT"
] | null | null | null | defmodule Scrivener.HTML.SEO do
import Phoenix.HTML.Tag, only: [tag: 2]
import Scrivener.HTML.Helper, only: [fetch_options: 2]
alias Scrivener.Page
@defaults Scrivener.HTML.defaults()
@moduledoc """
SEO related functions for pagination.
See [Indicating paginated content to Google](https://web.archive.o... | 29.247525 | 149 | 0.661476 |
1d2ad8f1f8e9386473c58ba789b71e7c1c7f4a90 | 801 | exs | Elixir | mix.exs | radixpool/mix-erlang-tasks | d8709b47f67b505519fcb0567a41c6657c0f300b | [
"MIT"
] | null | null | null | mix.exs | radixpool/mix-erlang-tasks | d8709b47f67b505519fcb0567a41c6657c0f300b | [
"MIT"
] | null | null | null | mix.exs | radixpool/mix-erlang-tasks | d8709b47f67b505519fcb0567a41c6657c0f300b | [
"MIT"
] | null | null | null | defmodule MixErlangTasks.Mixfile do
use Mix.Project
def project do
[
app: :mix_erlang_tasks,
version: "0.1.0",
elixir: "~> 1.0",
description: description(),
package: package(),
]
end
def application do
[
extra_applications: [:common_test, :edoc, :eunit]
]
... | 20.538462 | 87 | 0.589263 |
1d2aec5551699016f086d72aae2bb5c7ebeb6ac3 | 1,471 | ex | Elixir | lib/excoveralls/semaphore.ex | ni-kismet/excoveralls-overall | c232b2a928a9e1ea61bc0e9d0fd645237726b54f | [
"MIT"
] | 1 | 2020-05-06T15:16:11.000Z | 2020-05-06T15:16:11.000Z | lib/excoveralls/semaphore.ex | ni-kismet/excoveralls-overall | c232b2a928a9e1ea61bc0e9d0fd645237726b54f | [
"MIT"
] | null | null | null | lib/excoveralls/semaphore.ex | ni-kismet/excoveralls-overall | c232b2a928a9e1ea61bc0e9d0fd645237726b54f | [
"MIT"
] | null | null | null | defmodule ExCoveralls.Semaphore do
@moduledoc """
Handles semaphore-ci integration with coveralls.
"""
alias ExCoveralls.Poster
def execute(stats, options) do
json = generate_json(stats, Enum.into(options, %{}))
if options[:verbose] do
IO.puts JSX.prettify!(json)
end
Poster.execute(json... | 21.632353 | 78 | 0.635622 |
1d2af13bbd4daf4f6268a194148891fafd2a8208 | 3,741 | exs | Elixir | test/ex_oneroster/enrollments/enrollments_test.exs | jrissler/ex_oneroster | cec492117bffc14aec91e2448643682ceeb449e9 | [
"Apache-2.0"
] | 3 | 2018-09-06T11:15:07.000Z | 2021-12-27T15:36:51.000Z | test/ex_oneroster/enrollments/enrollments_test.exs | jrissler/ex_oneroster | cec492117bffc14aec91e2448643682ceeb449e9 | [
"Apache-2.0"
] | null | null | null | test/ex_oneroster/enrollments/enrollments_test.exs | jrissler/ex_oneroster | cec492117bffc14aec91e2448643682ceeb449e9 | [
"Apache-2.0"
] | null | null | null | defmodule ExOneroster.EnrollmentsTest do
use ExOneroster.DataCase
alias ExOneroster.Enrollments
describe "enrollments" do
alias ExOneroster.Enrollments.Enrollment
test "list_enrollments/0 returns all enrollments" do
enrollment = base_setup()[:enrollment] |> Repo.preload([:user, :class, :org])
... | 48.584416 | 141 | 0.743117 |
1d2b1c25f984457e9d611258722f26346ab02d69 | 962 | ex | Elixir | lib/movielist_web/views/movie_view.ex | allen-garvey/movielist-phoenix | 8105db8c6eb6a35e0dcfa1939b3a659be43cda1e | [
"MIT"
] | null | null | null | lib/movielist_web/views/movie_view.ex | allen-garvey/movielist-phoenix | 8105db8c6eb6a35e0dcfa1939b3a659be43cda1e | [
"MIT"
] | 2 | 2021-05-08T02:24:44.000Z | 2022-02-10T15:35:55.000Z | lib/movielist_web/views/movie_view.ex | allen-garvey/movielist-phoenix | 8105db8c6eb6a35e0dcfa1939b3a659be43cda1e | [
"MIT"
] | null | null | null | defmodule MovielistWeb.MovieView do
use MovielistWeb, :view
def to_s(movie) do
movie.title
end
@doc """
Maps a list of movies into tuples, used for forms
"""
def map_for_form(movies) do
Enum.map(movies, &{to_s(&1), &1.id})
end
@doc """
String representation of active status
"""
def is_... | 19.24 | 66 | 0.637214 |
1d2b5feab3f2895b680ca2e29d2787ca1272e6ba | 269 | ex | Elixir | lib/strava/model/meta_club.ex | rkorzeniec/strava | aa99040355f72ff2766c080d5a919c66a53ac44b | [
"MIT"
] | 39 | 2016-04-09T21:50:34.000Z | 2022-03-04T09:16:25.000Z | lib/strava/model/meta_club.ex | rkorzeniec/strava | aa99040355f72ff2766c080d5a919c66a53ac44b | [
"MIT"
] | 24 | 2016-05-29T15:49:07.000Z | 2022-01-17T11:57:05.000Z | lib/strava/model/meta_club.ex | rkorzeniec/strava | aa99040355f72ff2766c080d5a919c66a53ac44b | [
"MIT"
] | 21 | 2016-02-02T01:19:23.000Z | 2022-02-06T23:29:32.000Z | defmodule Strava.MetaClub do
@moduledoc """
"""
@derive [Poison.Encoder]
defstruct [
:id,
:resource_state,
:name
]
@type t :: %__MODULE__{
id: integer(),
resource_state: integer(),
name: String.t()
}
end
| 14.157895 | 36 | 0.524164 |
1d2b7d5bb38ef891c51e64e75f1a0e7d69e2ca93 | 1,972 | ex | Elixir | lib/cizen/effects/all.ex | Hihaheho-Studios/Cizen | 09ba3c66aa11d0db913ffde804509bc7bef80db9 | [
"MIT"
] | null | null | null | lib/cizen/effects/all.ex | Hihaheho-Studios/Cizen | 09ba3c66aa11d0db913ffde804509bc7bef80db9 | [
"MIT"
] | null | null | null | lib/cizen/effects/all.ex | Hihaheho-Studios/Cizen | 09ba3c66aa11d0db913ffde804509bc7bef80db9 | [
"MIT"
] | null | null | null | defmodule Cizen.Effects.All do
@moduledoc """
An effect to perform multiple effects.
Returns the list of resolved values.
## Example
[result1, result2] = perform %All{
effects: [effect1, effect2]
}
"""
@keys [:effects]
@enforce_keys @keys
defstruct @keys
alias Cizen.Effec... | 22.666667 | 78 | 0.543103 |
1d2ba394f0f4c434b48727d721133cc7c7c269c9 | 268 | exs | Elixir | crawler_challenge/priv/repo/migrations/20191009220118_add_process_id_fk_to_details.exs | tuliostarling/crawler-challenge | 1b948769db200d09ac0481b9fd71a175d876d20f | [
"Apache-2.0"
] | null | null | null | crawler_challenge/priv/repo/migrations/20191009220118_add_process_id_fk_to_details.exs | tuliostarling/crawler-challenge | 1b948769db200d09ac0481b9fd71a175d876d20f | [
"Apache-2.0"
] | 3 | 2021-05-08T08:50:39.000Z | 2022-02-10T19:40:38.000Z | crawler_challenge/priv/repo/migrations/20191009220118_add_process_id_fk_to_details.exs | tuliostarling/elixir-crawler | 1b948769db200d09ac0481b9fd71a175d876d20f | [
"Apache-2.0"
] | null | null | null | defmodule CrawlerChallenge.Repo.Migrations.AddProcessIdFkToDetails do
use Ecto.Migration
def change do
alter table(:details) do
add :process_id, references(:processes, on_delete: :delete_all)
end
create index(:details, [:process_id])
end
end
| 22.333333 | 69 | 0.738806 |
1d2ba67d04226732106d15ab5dcc495a57a1eaed | 17,280 | ex | Elixir | lib/aws/generated/health.ex | benmmari/aws-elixir | b97477498a9e8ba0d46a09255302d88c6a1c8573 | [
"Apache-2.0"
] | null | null | null | lib/aws/generated/health.ex | benmmari/aws-elixir | b97477498a9e8ba0d46a09255302d88c6a1c8573 | [
"Apache-2.0"
] | null | null | null | lib/aws/generated/health.ex | benmmari/aws-elixir | b97477498a9e8ba0d46a09255302d88c6a1c8573 | [
"Apache-2.0"
] | null | null | null | # WARNING: DO NOT EDIT, AUTO-GENERATED CODE!
# See https://github.com/aws-beam/aws-codegen for more details.
defmodule AWS.Health do
@moduledoc """
AWS Health
The AWS Health API provides programmatic access to the AWS Health
information that appears in the [AWS Personal Health
Dashboard](https://phd.aws.ama... | 44.194373 | 150 | 0.756308 |
1d2ba8fd6b56c168fc848bc30610941ed7051b89 | 2,836 | ex | Elixir | lib/livebook.ex | auser/livebook | 6f6b7e3ee08feb53a5d047744c7dccfe76d0a86d | [
"Apache-2.0"
] | null | null | null | lib/livebook.ex | auser/livebook | 6f6b7e3ee08feb53a5d047744c7dccfe76d0a86d | [
"Apache-2.0"
] | null | null | null | lib/livebook.ex | auser/livebook | 6f6b7e3ee08feb53a5d047744c7dccfe76d0a86d | [
"Apache-2.0"
] | null | null | null | defmodule Livebook do
@moduledoc """
Livebook is an interactive notebook system for Elixir.
This module includes the public API.
"""
@doc """
Executes Livebook's config/runtime.exs.
If you use Livebook as a dependency, you can add the following
to your `config/runtime.exs` to trigger Livebook's confi... | 30.826087 | 85 | 0.705924 |
1d2bacd47e1ce338f9a139317c9f183a11848462 | 1,215 | exs | Elixir | config/prod.secret.exs | silva96/newslettex | 4876392c9900c0ce169dcdcb9ebb01ab3da83d65 | [
"MIT"
] | null | null | null | config/prod.secret.exs | silva96/newslettex | 4876392c9900c0ce169dcdcb9ebb01ab3da83d65 | [
"MIT"
] | 10 | 2019-07-29T03:03:02.000Z | 2021-05-10T23:59:25.000Z | config/prod.secret.exs | silva96/newslettex | 4876392c9900c0ce169dcdcb9ebb01ab3da83d65 | [
"MIT"
] | null | null | null | # In this file, we load production configuration and secrets
# from environment variables. You can also hardcode secrets,
# although such is generally not recommended and you have to
# remember to add this file to your .gitignore.
use Mix.Config
database_url =
System.get_env("DATABASE_URL") ||
raise """
envi... | 31.153846 | 76 | 0.728395 |
1d2bb9ec9380b47f7f907d5e9a5930f8cd63a876 | 559 | ex | Elixir | lib/teiserver/telemetry/schemas/property_types.ex | icexuick/teiserver | 22f2e255e7e21f977e6b262acf439803626a506c | [
"MIT"
] | 6 | 2021-02-08T10:42:53.000Z | 2021-04-25T12:12:03.000Z | lib/teiserver/telemetry/schemas/property_types.ex | icexuick/teiserver | 22f2e255e7e21f977e6b262acf439803626a506c | [
"MIT"
] | 14 | 2021-08-01T02:36:14.000Z | 2022-01-30T21:15:03.000Z | lib/teiserver/telemetry/schemas/property_types.ex | icexuick/teiserver | 22f2e255e7e21f977e6b262acf439803626a506c | [
"MIT"
] | 7 | 2021-05-13T12:55:28.000Z | 2022-01-14T06:39:06.000Z | defmodule Teiserver.Telemetry.PropertyType do
use CentralWeb, :schema
schema "teiserver_telemetry_property_types" do
field :name, :string
end
@doc """
Builds a changeset based on the `struct` and `params`.
"""
@spec changeset(Map.t(), Map.t()) :: Ecto.Changeset.t()
def changeset(struct, params \\ ... | 26.619048 | 86 | 0.667263 |
1d2bdfd3c1deed078a40041b14cdfcb3379dbaea | 356 | ex | Elixir | lib/lucidboard_web/views/page_view.ex | borodark/lucidboard | 487a9a54053977ea9704121d4a6a4343012d4421 | [
"MIT"
] | 86 | 2019-01-07T20:49:04.000Z | 2021-10-02T21:15:42.000Z | lib/lucidboard_web/views/page_view.ex | borodark/lucidboard | 487a9a54053977ea9704121d4a6a4343012d4421 | [
"MIT"
] | 26 | 2019-03-27T12:06:52.000Z | 2020-09-20T05:21:09.000Z | lib/lucidboard_web/views/page_view.ex | borodark/lucidboard | 487a9a54053977ea9704121d4a6a4343012d4421 | [
"MIT"
] | 19 | 2015-01-06T19:02:49.000Z | 2020-05-25T08:54:00.000Z | defmodule LucidboardWeb.PageView do
use LucidboardWeb, :view
@changelog_html [File.cwd!(), "CHANGELOG.md"]
|> Path.join()
|> File.read!()
|> Earmark.as_html!()
def render("changelog.html", _params) do
raw("""
<div class="content">
#{@changelog_... | 20.941176 | 47 | 0.522472 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.