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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2d24f69f8c9c6ad0d849d52009194aa67f6718a8 | 727 | exs | Elixir | mix.exs | milmazz/lang_tags | 4162648cb36957bc301c12434b0c82029e483885 | [
"Apache-2.0"
] | null | null | null | mix.exs | milmazz/lang_tags | 4162648cb36957bc301c12434b0c82029e483885 | [
"Apache-2.0"
] | null | null | null | mix.exs | milmazz/lang_tags | 4162648cb36957bc301c12434b0c82029e483885 | [
"Apache-2.0"
] | null | null | null | defmodule LangTags.Mixfile do
use Mix.Project
@version "0.2.0-dev"
def project do
[app: :lang_tags,
version: @version,
description: "Work with IANA language tags in Elixir (BCP47 / RFC5646)",
elixir: "~> 1.3",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
... | 22.030303 | 77 | 0.583219 |
2d250bc54a2f6091a37d41bf06fd7758a16a48cc | 1,028 | ex | Elixir | lib/level/pagination/args.ex | mindriot101/level | 0a2cbae151869c2d9b79b3bfb388f5d00739ae12 | [
"Apache-2.0"
] | 928 | 2018-04-03T16:18:11.000Z | 2019-09-09T17:59:55.000Z | lib/level/pagination/args.ex | mindriot101/level | 0a2cbae151869c2d9b79b3bfb388f5d00739ae12 | [
"Apache-2.0"
] | 74 | 2018-04-03T00:46:50.000Z | 2019-03-10T18:57:27.000Z | lib/level/pagination/args.ex | mindriot101/level | 0a2cbae151869c2d9b79b3bfb388f5d00739ae12 | [
"Apache-2.0"
] | 89 | 2018-04-03T17:33:20.000Z | 2019-08-19T03:40:20.000Z | defmodule Level.Pagination.Args do
@moduledoc """
Arguments for pagination.
"""
defstruct first: nil,
last: nil,
before: nil,
after: nil,
order_by: %{field: :id, direction: :asc}
@type t :: %__MODULE__{
first: integer() | nil,
last: integer... | 29.371429 | 83 | 0.529183 |
2d2565c50b3255f6f215b42fc5e672179754c60f | 4,532 | exs | Elixir | test/scenic/component/button_test.exs | tiger808/scenic | 77abc6d891b7a1a9262cdc47d7c5fac3c8609d1f | [
"Apache-2.0"
] | 1 | 2020-09-20T14:07:49.000Z | 2020-09-20T14:07:49.000Z | test/scenic/component/button_test.exs | tiger808/scenic | 77abc6d891b7a1a9262cdc47d7c5fac3c8609d1f | [
"Apache-2.0"
] | null | null | null | test/scenic/component/button_test.exs | tiger808/scenic | 77abc6d891b7a1a9262cdc47d7c5fac3c8609d1f | [
"Apache-2.0"
] | null | null | null | #
# Created by Boyd Multerer on 2018-07-15.
# Copyright © 2018 Kry10 Industries. All rights reserved.
#
defmodule Scenic.Component.ButtonTest do
use ExUnit.Case, async: true
doctest Scenic
# alias Scenic.Component
alias Scenic.Graph
alias Scenic.Primitive
alias Scenic.ViewPort
alias Scenic.Component.B... | 29.428571 | 98 | 0.598632 |
2d2580e980c080440072a239a3f94f6d5aa638c0 | 675 | ex | Elixir | lib/swarm/logger.ex | burmajam/swarm | 738decbc9cfcc4b0de80b6a4f72b092b01f4c8f7 | [
"MIT"
] | null | null | null | lib/swarm/logger.ex | burmajam/swarm | 738decbc9cfcc4b0de80b6a4f72b092b01f4c8f7 | [
"MIT"
] | null | null | null | lib/swarm/logger.ex | burmajam/swarm | 738decbc9cfcc4b0de80b6a4f72b092b01f4c8f7 | [
"MIT"
] | null | null | null | defmodule Swarm.Logger do
@moduledoc false
require Logger
@doc """
Log a debugging message
"""
@spec debug(String.t()) :: :ok
def debug(message), do: Logger.debug("[swarm on #{Node.self()}] #{message}")
@doc """
Log a warning message
"""
@spec warn(String.t()) :: :ok
def warn(message), do: Log... | 23.275862 | 78 | 0.594074 |
2d2592564b9368aa4ed1f28851c4502f53e3378c | 1,502 | exs | Elixir | config/dev.exs | PsOverflow/changelog.com | 53f4ecfc39b021c6b8cfcc0fa11f29aff8038a7f | [
"MIT"
] | 1 | 2020-10-12T13:28:41.000Z | 2020-10-12T13:28:41.000Z | config/dev.exs | PsOverflow/changelog.com | 53f4ecfc39b021c6b8cfcc0fa11f29aff8038a7f | [
"MIT"
] | null | null | null | config/dev.exs | PsOverflow/changelog.com | 53f4ecfc39b021c6b8cfcc0fa11f29aff8038a7f | [
"MIT"
] | 1 | 2018-10-03T20:55:52.000Z | 2018-10-03T20:55:52.000Z | use Mix.Config
# For development, we disable any cache and enable
# debugging and code reloading.
#
# The watchers configuration can be used to run external
# watchers to your application. For example, we use it
# with brunch.io to recompile .js and .css sources.
config :changelog, ChangelogWeb.Endpoint,
http: [port... | 30.653061 | 83 | 0.70972 |
2d25994542233c2a5fe43deb08919d07e7c19c40 | 1,501 | ex | Elixir | lib/toby/util/tree.ex | ndreynolds/toby | fc2e6960d8d5b366c0ecf130349659fc33ac2e2a | [
"MIT"
] | 82 | 2019-01-14T20:35:16.000Z | 2022-02-22T11:19:43.000Z | lib/toby/util/tree.ex | ndreynolds/toby | fc2e6960d8d5b366c0ecf130349659fc33ac2e2a | [
"MIT"
] | 3 | 2019-01-20T17:17:44.000Z | 2019-01-24T08:51:55.000Z | lib/toby/util/tree.ex | ndreynolds/toby | fc2e6960d8d5b366c0ecf130349659fc33ac2e2a | [
"MIT"
] | 5 | 2020-03-27T16:54:18.000Z | 2021-07-26T18:24:00.000Z | defmodule Toby.Util.Tree do
@moduledoc """
Functions for working with abstract trees (but particularly
process/supervision trees).
"""
@doc """
Given a tree data structure (`{label, children}`), this produces a copy of the
tree with the index of each node (as visited in a depth-first traversal)
include... | 25.016667 | 80 | 0.600266 |
2d259ea6ef2179daacd1c3a9641bda8789154454 | 894 | ex | Elixir | clients/cloud_functions/lib/google_api/cloud_functions/v1/metadata.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/cloud_functions/lib/google_api/cloud_functions/v1/metadata.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/cloud_functions/lib/google_api/cloud_functions/v1/metadata.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 33.111111 | 74 | 0.761745 |
2d25a29cb1a4a1d1e8b48399517215099aa0e7fe | 199 | exs | Elixir | test/fitaweb_web/controllers/page_controller_test.exs | hugorifbjerg/fitaweb | 0d370d3f48905d936e7ee68d966d8ea287b152a8 | [
"MIT"
] | null | null | null | test/fitaweb_web/controllers/page_controller_test.exs | hugorifbjerg/fitaweb | 0d370d3f48905d936e7ee68d966d8ea287b152a8 | [
"MIT"
] | null | null | null | test/fitaweb_web/controllers/page_controller_test.exs | hugorifbjerg/fitaweb | 0d370d3f48905d936e7ee68d966d8ea287b152a8 | [
"MIT"
] | null | null | null | defmodule FitawebWeb.PageControllerTest do
use FitawebWeb.ConnCase
test "GET /", %{conn: conn} do
conn = get conn, "/"
assert html_response(conn, 200) =~ "Welcome to Phoenix!"
end
end
| 22.111111 | 60 | 0.683417 |
2d25a597d5e7d854f9d83f03d7b13baa8927dc4d | 3,516 | ex | Elixir | clients/plus_domains/lib/google_api/plus_domains/v1/api/audiences.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/plus_domains/lib/google_api/plus_domains/v1/api/audiences.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/plus_domains/lib/google_api/plus_domains/v1/api/audiences.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... | 45.076923 | 225 | 0.709044 |
2d25babf6aa68c0a2c6e374f4fbbadc641f0eae0 | 3,593 | ex | Elixir | apps/gen_peer/lib/gen_peer/utorrent_transport_protocol.ex | sschneider1207/ex_torrent | 39e58891ddb642b058a4739752453276aa16ce0d | [
"MIT"
] | null | null | null | apps/gen_peer/lib/gen_peer/utorrent_transport_protocol.ex | sschneider1207/ex_torrent | 39e58891ddb642b058a4739752453276aa16ce0d | [
"MIT"
] | null | null | null | apps/gen_peer/lib/gen_peer/utorrent_transport_protocol.ex | sschneider1207/ex_torrent | 39e58891ddb642b058a4739752453276aa16ce0d | [
"MIT"
] | null | null | null | defmodule GenPeer.UTorrentTransportProtocol do
@behaviour GenPeer
alias GenPeer.UTorrentTransportProtocol.Packet
@type t :: %__MODULE__{
ip: :inet.ip_address,
port: :inet.port_number,
socket: :gen_udp.socket,
max_window: non_neg_integer,
cur_window: non_neg_integer,
wnd_size: non_neg_inte... | 29.45082 | 114 | 0.621765 |
2d25cea4117e396dc73370caddb303120101ac5d | 758 | ex | Elixir | external/activestorage_ex_phoenix/lib/activestorage_ex_phoenix_web/gettext.ex | kieraneglin/activestorage_ex | 3cc00c212f2e87f9e04651e16e6701af8893cc7b | [
"MIT"
] | null | null | null | external/activestorage_ex_phoenix/lib/activestorage_ex_phoenix_web/gettext.ex | kieraneglin/activestorage_ex | 3cc00c212f2e87f9e04651e16e6701af8893cc7b | [
"MIT"
] | null | null | null | external/activestorage_ex_phoenix/lib/activestorage_ex_phoenix_web/gettext.ex | kieraneglin/activestorage_ex | 3cc00c212f2e87f9e04651e16e6701af8893cc7b | [
"MIT"
] | 2 | 2019-05-30T18:29:37.000Z | 2020-06-27T18:40:03.000Z | defmodule ActivestorageExPhoenixWeb.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 ActivestorageExPhoenixWeb.Gettext
# Simple transl... | 30.32 | 72 | 0.697889 |
2d25f5efb7a40cfdebbcba11e3a7fda9bb33137d | 6,799 | ex | Elixir | lib/militerm/ecs/component.ex | jgsmith/militerm | c4252d0a93f5620b90750ac2b61baf282e9ef7eb | [
"Apache-2.0"
] | 6 | 2017-06-16T10:26:35.000Z | 2021-04-07T15:01:00.000Z | lib/militerm/ecs/component.ex | jgsmith/militerm | c4252d0a93f5620b90750ac2b61baf282e9ef7eb | [
"Apache-2.0"
] | 2 | 2020-04-14T02:17:46.000Z | 2021-03-10T11:09:05.000Z | lib/militerm/ecs/component.ex | jgsmith/militerm | c4252d0a93f5620b90750ac2b61baf282e9ef7eb | [
"Apache-2.0"
] | null | null | null | defmodule Militerm.ECS.Component do
@moduledoc """
The component service tracks component data for entities.
For example, if you have a component named MyGame.Components.Health, you
can start a copy of this with:
Militerm.ECS.Component.start_link(name: MyGame.Components.Health)
Then, later, you can s... | 29.4329 | 98 | 0.624651 |
2d260e45ea2b94603d3f7697a7b1cb874f4f397c | 1,455 | ex | Elixir | clients/service_usage/lib/google_api/service_usage/v1/model/create_admin_quota_policy_metadata.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/service_usage/lib/google_api/service_usage/v1/model/create_admin_quota_policy_metadata.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/service_usage/lib/google_api/service_usage/v1/model/create_admin_quota_policy_metadata.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 34.642857 | 173 | 0.781443 |
2d260ffb95958ff11b06156e84d84d966ee23279 | 14,763 | exs | Elixir | test/scenic/view_port_test.exs | zacck/scenic | 5f2170b7fba63b0af597ddeb3107fb1ffb79c2fe | [
"Apache-2.0"
] | null | null | null | test/scenic/view_port_test.exs | zacck/scenic | 5f2170b7fba63b0af597ddeb3107fb1ffb79c2fe | [
"Apache-2.0"
] | null | null | null | test/scenic/view_port_test.exs | zacck/scenic | 5f2170b7fba63b0af597ddeb3107fb1ffb79c2fe | [
"Apache-2.0"
] | null | null | null | #
# re-Created by Boyd Multerer May 2018.
# Copyright © 2018 Kry10 Industries. All rights reserved.
#
defmodule Scenic.ViewPortTest do
use ExUnit.Case, async: false
doctest Scenic.ViewPort
alias Scenic.ViewPort
alias Scenic.Scene
alias Scenic.ViewPort.Tables
@viewports :scenic_dyn_viewports
defmodule... | 28.777778 | 91 | 0.623992 |
2d26570ce1a91020d3d403ddcf2bab1f29575839 | 598 | exs | Elixir | day17/test/day17_test.exs | bjorng/advent-of-code-2015 | d59ac2fc4a93c86ebfe3917d89ebaad3b571bdb6 | [
"Apache-2.0"
] | null | null | null | day17/test/day17_test.exs | bjorng/advent-of-code-2015 | d59ac2fc4a93c86ebfe3917d89ebaad3b571bdb6 | [
"Apache-2.0"
] | null | null | null | day17/test/day17_test.exs | bjorng/advent-of-code-2015 | d59ac2fc4a93c86ebfe3917d89ebaad3b571bdb6 | [
"Apache-2.0"
] | null | null | null | defmodule Day17Test do
use ExUnit.Case
doctest Day17
test "part 1 with example" do
assert Day17.part1(example(), 25) == 4
end
test "part 1 with my input data" do
assert Day17.part1(input()) == 1638
end
test "part 2 with example" do
assert Day17.part2(example(), 25) == 3
end
test "part ... | 16.162162 | 42 | 0.585284 |
2d26651d5427c3161ebdcf85198b67d07e4f524e | 473 | ex | Elixir | test/support/factory.ex | RatioPBC/commcare_api | 94e6056521565a8d86269920a566a06cdf376645 | [
"Apache-2.0"
] | null | null | null | test/support/factory.ex | RatioPBC/commcare_api | 94e6056521565a8d86269920a566a06cdf376645 | [
"Apache-2.0"
] | null | null | null | test/support/factory.ex | RatioPBC/commcare_api | 94e6056521565a8d86269920a566a06cdf376645 | [
"Apache-2.0"
] | null | null | null | defmodule CommcareAPI.Factory do
@moduledoc "Builds fake data for various data models"
def build_contact(overridden_attrs \\ %{}) do
default = %{
first_name: "Bob",
last_name: "Jones",
name: "Bob Jones",
email: "bob@jones.com",
phone: "5035550123",
case_id: "bbb-bbb",
... | 22.52381 | 55 | 0.623679 |
2d26bcf5e0e0f55abda3b4e877291a84af05f270 | 1,172 | ex | Elixir | web/channels/user_socket.ex | pdebelak/snack_chat | db24d47257b57abb5886ec5c742532c99a31cc8c | [
"MIT"
] | null | null | null | web/channels/user_socket.ex | pdebelak/snack_chat | db24d47257b57abb5886ec5c742532c99a31cc8c | [
"MIT"
] | null | null | null | web/channels/user_socket.ex | pdebelak/snack_chat | db24d47257b57abb5886ec5c742532c99a31cc8c | [
"MIT"
] | null | null | null | defmodule SnackChat.UserSocket do
use Phoenix.Socket
## Channels
# channel "room:*", SnackChat.RoomChannel
## Transports
transport :websocket, Phoenix.Transports.WebSocket
# transport :longpoll, Phoenix.Transports.LongPoll
# Socket params are passed from the client and can
# be used to verify and aut... | 30.842105 | 83 | 0.703072 |
2d26cdb1c832a53d8d5cfc16379dee1f9731c8ee | 261 | ex | Elixir | lib/conduit/blog/commands/unfavorite_article.ex | fpauser/conduit | 8721f72c75ae702992283e05ac9b992495274458 | [
"MIT"
] | 298 | 2017-06-05T14:28:23.000Z | 2022-03-30T16:53:44.000Z | lib/conduit/blog/commands/unfavorite_article.ex | fpauser/conduit | 8721f72c75ae702992283e05ac9b992495274458 | [
"MIT"
] | 28 | 2017-07-21T01:06:47.000Z | 2021-03-07T12:32:56.000Z | lib/conduit/blog/commands/unfavorite_article.ex | fpauser/conduit | 8721f72c75ae702992283e05ac9b992495274458 | [
"MIT"
] | 77 | 2017-08-14T20:12:03.000Z | 2021-12-08T22:24:59.000Z | defmodule Conduit.Blog.Commands.UnfavoriteArticle do
defstruct article_uuid: "",
unfavorited_by_author_uuid: ""
use ExConstructor
use Vex.Struct
validates(:article_uuid, uuid: true)
validates(:unfavorited_by_author_uuid, uuid: true)
end
| 23.727273 | 52 | 0.754789 |
2d2710141012bec2b1e9eeafc1fe299e8184abe3 | 1,469 | exs | Elixir | test_fixtures/precompiled/good-pages.exs | nallwhy/Serum | ed9f51a83e328789ccfca18d2a0397b45ac4be0f | [
"MIT"
] | null | null | null | test_fixtures/precompiled/good-pages.exs | nallwhy/Serum | ed9f51a83e328789ccfca18d2a0397b45ac4be0f | [
"MIT"
] | null | null | null | test_fixtures/precompiled/good-pages.exs | nallwhy/Serum | ed9f51a83e328789ccfca18d2a0397b45ac4be0f | [
"MIT"
] | null | null | null | [%{__struct__: Serum.Page, data: "<h1>Hello, world!</h1>\n<p>The quick brown fox jumps over the lazy dog.</p>\n<img src=\"/test-site/media/test-image.jpg\">", file: %{__struct__: Serum.File, src: "/home/dalgona/repo/Serum/priv/fixtures/pages/good-md.md"}, group: "test", label: "test-md", order: 1, output: "/dest/home/d... | 734.5 | 1,468 | 0.71273 |
2d274376cb039bdfc20607bc14c833c185a3d155 | 76 | exs | Elixir | test/test_helper.exs | trewdys/source-academy2-debug | 6146e1fac81472184877f47aa32dee7fdceb4fb6 | [
"Unlicense"
] | null | null | null | test/test_helper.exs | trewdys/source-academy2-debug | 6146e1fac81472184877f47aa32dee7fdceb4fb6 | [
"Unlicense"
] | null | null | null | test/test_helper.exs | trewdys/source-academy2-debug | 6146e1fac81472184877f47aa32dee7fdceb4fb6 | [
"Unlicense"
] | null | null | null | ExUnit.start()
Ecto.Adapters.SQL.Sandbox.mode(SourceAcademy.Repo, :manual)
| 19 | 59 | 0.789474 |
2d27701dfe828f2cdbc329e612e7ca35f97e7224 | 9 | ex | Elixir | testData/org/elixir_lang/parser_definition/sigil_dot_operation_parsing_test_case/Atom.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 1,668 | 2015-01-03T05:54:27.000Z | 2022-03-25T08:01:20.000Z | testData/org/elixir_lang/parser_definition/sigil_dot_operation_parsing_test_case/Atom.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 2,018 | 2015-01-01T22:43:39.000Z | 2022-03-31T20:13:08.000Z | testData/org/elixir_lang/parser_definition/sigil_dot_operation_parsing_test_case/Atom.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 145 | 2015-01-15T11:37:16.000Z | 2021-12-22T05:51:02.000Z | ~x{}.:two | 9 | 9 | 0.444444 |
2d278e5339357749e9750ab8aa2a70b3f728277e | 924 | ex | Elixir | lib/bank/account/birth_date_helpers.ex | tilacog/bank-account-opening | e9d6ad11e6376af08b92a7f61e17d5df80a3a08f | [
"MIT"
] | null | null | null | lib/bank/account/birth_date_helpers.ex | tilacog/bank-account-opening | e9d6ad11e6376af08b92a7f61e17d5df80a3a08f | [
"MIT"
] | null | null | null | lib/bank/account/birth_date_helpers.ex | tilacog/bank-account-opening | e9d6ad11e6376af08b92a7f61e17d5df80a3a08f | [
"MIT"
] | null | null | null | defmodule Bank.Account.BirthDateHelper do
@moduledoc """
General use hepler functions.
"""
@max_customer_age 130
@min_customer_age 16
def max_customer_age, do: @max_customer_age
def min_customer_age, do: @min_customer_age
def error_message, do: "age must be between #{@min_customer_age} and #{@max_custo... | 30.8 | 102 | 0.731602 |
2d279dbc3a9970c7b8dbb2f9510a2389c2acb987 | 758 | ex | Elixir | lib/sanbase_web/graphql/schema/types/user_trigger_types.ex | santiment/sanbase2 | 9ef6e2dd1e377744a6d2bba570ea6bd477a1db31 | [
"MIT"
] | 81 | 2017-11-20T01:20:22.000Z | 2022-03-05T12:04:25.000Z | lib/sanbase_web/graphql/schema/types/user_trigger_types.ex | santiment/sanbase2 | 9ef6e2dd1e377744a6d2bba570ea6bd477a1db31 | [
"MIT"
] | 359 | 2017-10-15T14:40:53.000Z | 2022-01-25T13:34:20.000Z | lib/sanbase_web/graphql/schema/types/user_trigger_types.ex | santiment/sanbase2 | 9ef6e2dd1e377744a6d2bba570ea6bd477a1db31 | [
"MIT"
] | 16 | 2017-11-19T13:57:40.000Z | 2022-02-07T08:13:02.000Z | defmodule SanbaseWeb.Graphql.UserTriggerTypes do
use Absinthe.Schema.Notation
alias SanbaseWeb.Graphql.Resolvers.UserTriggerResolver
object :user_trigger do
field(:user_id, :integer)
field(:trigger, :trigger)
end
object :trigger do
field(:id, non_null(:integer))
field(:title, non_null(:stri... | 26.137931 | 61 | 0.712401 |
2d27b8704f3c96767c649457783186107c07980d | 545 | ex | Elixir | apps/ello_serve/web/views/webapp/search_view.ex | ello/apex | 4acb096b3ce172ff4ef9a51e5d068d533007b920 | [
"MIT"
] | 16 | 2017-06-21T21:31:20.000Z | 2021-05-09T03:23:26.000Z | apps/ello_serve/web/views/webapp/search_view.ex | ello/apex | 4acb096b3ce172ff4ef9a51e5d068d533007b920 | [
"MIT"
] | 25 | 2017-06-07T12:18:28.000Z | 2018-06-08T13:27:43.000Z | apps/ello_serve/web/views/webapp/search_view.ex | ello/apex | 4acb096b3ce172ff4ef9a51e5d068d533007b920 | [
"MIT"
] | 3 | 2018-06-14T15:34:07.000Z | 2022-02-28T21:06:13.000Z | defmodule Ello.Serve.Webapp.SearchView do
use Ello.Serve.Web, :view
def render("noscript.html", %{type: "users"} = assigns),
do: render_template("noscript.html", assigns)
def render("noscript.html", assigns),
do: render_template("noscript.html", assigns)
def next_search_page_url(search, type) when ty... | 32.058824 | 80 | 0.719266 |
2d27dfe82c8a60e87bf7748112bb84e345a8361e | 108 | exs | Elixir | apps/astarte_housekeeping_api/.formatter.exs | matt-mazzucato/astarte | 34d84941a5019efc42321052f7f34b7d907a38f2 | [
"Apache-2.0"
] | 4 | 2018-03-15T14:26:43.000Z | 2019-12-20T15:07:10.000Z | apps/astarte_housekeeping_api/.formatter.exs | matt-mazzucato/astarte | 34d84941a5019efc42321052f7f34b7d907a38f2 | [
"Apache-2.0"
] | 27 | 2018-06-28T16:00:07.000Z | 2019-12-19T10:05:36.000Z | apps/astarte_housekeeping_api/.formatter.exs | matt-mazzucato/astarte | 34d84941a5019efc42321052f7f34b7d907a38f2 | [
"Apache-2.0"
] | 2 | 2018-03-16T09:37:29.000Z | 2019-11-18T17:37:42.000Z | [
import_deps: [:phoenix, :ecto],
inputs: ["{mix,.formatter}.exs", "{config,lib,test}/**/*.{ex,exs}"]
]
| 21.6 | 69 | 0.564815 |
2d27f96b08a70454804d5728a54e33b85c17c47e | 1,286 | ex | Elixir | lib/todo_app_web/controllers/auth_controller.ex | tarcisiooliveira/todo_app | 2a5291390c64cc6a0a593b8d0f671ad899dea034 | [
"MIT"
] | null | null | null | lib/todo_app_web/controllers/auth_controller.ex | tarcisiooliveira/todo_app | 2a5291390c64cc6a0a593b8d0f671ad899dea034 | [
"MIT"
] | null | null | null | lib/todo_app_web/controllers/auth_controller.ex | tarcisiooliveira/todo_app | 2a5291390c64cc6a0a593b8d0f671ad899dea034 | [
"MIT"
] | null | null | null | defmodule TodoAppWeb.AuthController do
use TodoAppWeb, :controller
alias TodoApp.Usuario
alias TodoApp.Repo
plug Ueberauth
def callback(conn, params) do
%{"provider" => provider}=params
%{assigns: %{ueberauth_auth: auth}}=conn
usuario = %{name: auth.info.name, email: auth.info.email, token: aut... | 27.361702 | 112 | 0.647745 |
2d27fcf336a760e6ed3cee9a1af627d96bad69ea | 90 | ex | Elixir | apps/mishka_content/lib/email/mailer.ex | mojtaba-naserei/mishka-cms | 1f31f61347bab1aae6ba0d47c5515a61815db6c9 | [
"Apache-2.0"
] | 35 | 2021-06-26T09:05:50.000Z | 2022-03-30T15:41:22.000Z | apps/mishka_content/lib/email/mailer.ex | iArazar/mishka-cms | 8b579101d607d91e80834527c1508fe5f4ceefef | [
"Apache-2.0"
] | 101 | 2021-01-01T09:54:07.000Z | 2022-03-28T10:02:24.000Z | apps/mishka_content/lib/email/mailer.ex | iArazar/mishka-cms | 8b579101d607d91e80834527c1508fe5f4ceefef | [
"Apache-2.0"
] | 8 | 2021-01-17T17:08:07.000Z | 2022-03-11T16:12:06.000Z | defmodule MishkaContent.Email.Mailer do
use Bamboo.Mailer, otp_app: :mishka_content
end
| 22.5 | 45 | 0.822222 |
2d27ff995d20d3364ea817add5fb062be95cfcc0 | 1,467 | ex | Elixir | lib/ex_rabbit_m_q/constants.ex | dennisxtria/exrabbitmq | 50705c5f42daedd6ce465662dd752f8c2f6895b2 | [
"MIT"
] | null | null | null | lib/ex_rabbit_m_q/constants.ex | dennisxtria/exrabbitmq | 50705c5f42daedd6ce465662dd752f8c2f6895b2 | [
"MIT"
] | null | null | null | lib/ex_rabbit_m_q/constants.ex | dennisxtria/exrabbitmq | 50705c5f42daedd6ce465662dd752f8c2f6895b2 | [
"MIT"
] | null | null | null | defmodule ExRabbitMQ.Constants do
@moduledoc """
A module holding constants (e.g., process dictionay keys) that are used in multiple sites.
"""
@doc """
The key in the process dictionary holding the connection pid (GenServer) used by a consumer or a producer.
"""
@spec connection_pid_key :: atom
def co... | 31.891304 | 128 | 0.739605 |
2d27ffee867eff3a767fc4b260896145a7020aaf | 75 | ex | Elixir | web/views/page_view.ex | ukisami/fdl-messenger-bot | 571d29795612a21a3be21ce9f8851afa5a7b387f | [
"MIT"
] | null | null | null | web/views/page_view.ex | ukisami/fdl-messenger-bot | 571d29795612a21a3be21ce9f8851afa5a7b387f | [
"MIT"
] | null | null | null | web/views/page_view.ex | ukisami/fdl-messenger-bot | 571d29795612a21a3be21ce9f8851afa5a7b387f | [
"MIT"
] | null | null | null | defmodule FdlMessengerBot.PageView do
use FdlMessengerBot.Web, :view
end
| 18.75 | 37 | 0.826667 |
2d28357004dc77f6cfb479a24bb7c0f398e29144 | 43,244 | exs | Elixir | apps/man_api/priv/repo/migrations/20170419095211_add_crpf_template.exs | edenlabllc/man.api.public | 010016c5ecc209413a56ee1f8e9e6fa31da8de18 | [
"MIT"
] | null | null | null | apps/man_api/priv/repo/migrations/20170419095211_add_crpf_template.exs | edenlabllc/man.api.public | 010016c5ecc209413a56ee1f8e9e6fa31da8de18 | [
"MIT"
] | null | null | null | apps/man_api/priv/repo/migrations/20170419095211_add_crpf_template.exs | edenlabllc/man.api.public | 010016c5ecc209413a56ee1f8e9e6fa31da8de18 | [
"MIT"
] | null | null | null | defmodule Man.Repo.Migrations.AddCrpfTemplate do
use Ecto.Migration
alias Man.Repo
alias Man.Templates.Template
import Ecto.Changeset
def locale_changeset(%Man.Templates.Template.Locale{} = locale, attrs) do
cast(locale, attrs, ~w(code params)a)
end
def change do
result =
case Repo.get_by(... | 1,108.820513 | 42,397 | 0.779276 |
2d287ca26349a11ec7e065afc63d2d045133ec77 | 1,545 | ex | Elixir | lib/runlet/ctrl/signal.ex | msantos/runlet | d9cb44b113295387c296ab4576a09ca4a7ce0f7b | [
"ISC"
] | 4 | 2020-01-12T19:04:46.000Z | 2021-09-20T14:37:22.000Z | lib/runlet/ctrl/signal.ex | msantos/runlet | d9cb44b113295387c296ab4576a09ca4a7ce0f7b | [
"ISC"
] | null | null | null | lib/runlet/ctrl/signal.ex | msantos/runlet | d9cb44b113295387c296ab4576a09ca4a7ce0f7b | [
"ISC"
] | 1 | 2021-09-20T14:37:25.000Z | 2021-09-20T14:37:25.000Z | defmodule Runlet.Ctrl.Signal do
@moduledoc "Send a signal to a process"
@doc """
Sends SIGHUP to a process.
"""
@spec exec(Runlet.t(), String.t() | Runlet.PID.t()) :: Enumerable.t()
def exec(env, pid), do: exec(env, pid, "hup")
@doc """
Sends a signal to a process.
"""
@spec exec(Runlet.t(), Strin... | 30.294118 | 76 | 0.577994 |
2d288cd3bb77ab79c0649e73aa8b185ac72c1b9c | 4,118 | ex | Elixir | tests/syntax_test_attributes.ex | princemaple/elixir-sublime-syntax | f8154fd24afd478d444a47b963566ed434df2062 | [
"MIT"
] | 14 | 2018-01-26T07:41:42.000Z | 2021-09-28T16:51:20.000Z | tests/syntax_test_attributes.ex | princemaple/elixir-sublime-syntax | f8154fd24afd478d444a47b963566ed434df2062 | [
"MIT"
] | 25 | 2019-02-13T02:56:33.000Z | 2021-10-11T00:54:57.000Z | tests/syntax_test_attributes.ex | elixir-sublime/elixir-sublime-syntax | 5f8aae15bfe5f12e31ec7a3509bc5619aa74babd | [
"MIT"
] | 7 | 2019-02-12T13:03:49.000Z | 2021-09-23T16:50:53.000Z | # SYNTAX TEST "Elixir.sublime-syntax"
## Attributes
@attr :attr
# ^ punctuation.section.arguments.end
# ^ punctuation.section.arguments.begin
#^^^^ entity.name.constant
@attr? :attr?
#^^^^^ entity.name.constant
@attr! :attr!
#^^^^^ entity.name.constant
@attr
#^^^^ variable.other.constant
@attr?
#^^^^^ var... | 26.063291 | 64 | 0.577222 |
2d28ba41c32df64c268e3e3a540e1e482ea7de48 | 904 | exs | Elixir | apps/database/test/database/services/account/open_test.exs | fschuindt/amethyst | 0e8d60f83693b3bdb2c05d461cc3a74fa8b88b30 | [
"MIT"
] | 2 | 2018-06-23T11:43:34.000Z | 2019-01-07T10:52:42.000Z | apps/database/test/database/services/account/open_test.exs | fschuindt/amethyst | 0e8d60f83693b3bdb2c05d461cc3a74fa8b88b30 | [
"MIT"
] | 1 | 2018-06-21T01:20:04.000Z | 2018-06-21T01:20:04.000Z | apps/database/test/database/services/account/open_test.exs | fschuindt/amethyst | 0e8d60f83693b3bdb2c05d461cc3a74fa8b88b30 | [
"MIT"
] | 1 | 2018-06-30T21:40:51.000Z | 2018-06-30T21:40:51.000Z | defmodule DataBase.Services.Account.OpenTest do
alias DataBase.Services.Account.Open, as: Subject
alias DataBase.Repos.AmethystRepo, as: Repo
alias DataBase.Test.Support.Factories
alias DataBase.Schemas.Account
alias Decimal, as: D
use ExUnit.Case, async: true
setup do
:ok = Ecto.Adapters.SQL.Sandbo... | 23.789474 | 55 | 0.679204 |
2d28ddc5489f62df8266fd9ec57d05adc39da407 | 2,166 | ex | Elixir | lib/tortoise/transport/tcp.ex | ppikula/tortoise | fcb01d7b457725f5e8fefab3541470bd546e6586 | [
"Apache-2.0"
] | 272 | 2018-04-22T22:47:35.000Z | 2022-03-01T05:22:02.000Z | lib/tortoise/transport/tcp.ex | ppikula/tortoise | fcb01d7b457725f5e8fefab3541470bd546e6586 | [
"Apache-2.0"
] | 120 | 2018-04-22T20:42:04.000Z | 2022-01-20T23:12:13.000Z | lib/tortoise/transport/tcp.ex | ppikula/tortoise | fcb01d7b457725f5e8fefab3541470bd546e6586 | [
"Apache-2.0"
] | 58 | 2018-04-24T06:28:36.000Z | 2022-02-09T06:55:42.000Z | defmodule Tortoise.Transport.Tcp do
@moduledoc false
@behaviour Tortoise.Transport
alias Tortoise.Transport
@impl true
def new(opts) do
{host, opts} = Keyword.pop(opts, :host)
{port, opts} = Keyword.pop(opts, :port, 1883)
{list_opts, opts} = Keyword.pop(opts, :opts, [])
host = coerce_host(h... | 20.628571 | 75 | 0.668052 |
2d28e355db223f00f9aa81f3b4a42c18dad9dbd0 | 276 | exs | Elixir | demos/brella_demo_umbrella/apps/brella_demo_web/test/brella_demo_web/views/layout_view_test.exs | axelson/priv_check | ba4228881edbf16ac61b0e006537de517c7f6f06 | [
"MIT"
] | 8 | 2020-03-15T19:22:02.000Z | 2021-09-28T11:00:18.000Z | demos/brella_demo_umbrella/apps/brella_demo_web/test/brella_demo_web/views/layout_view_test.exs | axelson/priv_check | ba4228881edbf16ac61b0e006537de517c7f6f06 | [
"MIT"
] | 7 | 2020-03-11T06:21:57.000Z | 2020-11-15T19:48:54.000Z | demos/brella_demo_umbrella/apps/brella_demo_web/test/brella_demo_web/views/layout_view_test.exs | axelson/priv_check | ba4228881edbf16ac61b0e006537de517c7f6f06 | [
"MIT"
] | null | null | null | defmodule BrellaDemoWeb.LayoutViewTest do
use BrellaDemoWeb.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 |
2d290ec5a21f53030f7c94fb81b4c5285fc20c65 | 1,120 | ex | Elixir | test/support/conn_case.ex | bmordas11/fun_in_the_sun | eb6f4f604a8ebf0f12b7a51c3b4e37ac777fe84b | [
"MIT"
] | null | null | null | test/support/conn_case.ex | bmordas11/fun_in_the_sun | eb6f4f604a8ebf0f12b7a51c3b4e37ac777fe84b | [
"MIT"
] | null | null | null | test/support/conn_case.ex | bmordas11/fun_in_the_sun | eb6f4f604a8ebf0f12b7a51c3b4e37ac777fe84b | [
"MIT"
] | null | null | null | defmodule FunInTheSun.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 and query models.
Finally, if the test case interacts with the... | 24.888889 | 73 | 0.710714 |
2d29107e863ab9a8de177d9701573ffbd5d30f9f | 2,986 | ex | Elixir | clients/vault/lib/google_api/vault/v1/model/hold.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/vault/lib/google_api/vault/v1/model/hold.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/vault/lib/google_api/vault/v1/model/hold.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... | 44.567164 | 282 | 0.721366 |
2d29110f2ea306110ffb7629bd133142cac47b8b | 73 | ex | Elixir | apps/game_services_web/lib/game_services_web/views/ticket_view.ex | Alezrik/game_services_umbrella | 9b9dd6707c200b10c5a73568913deb4d5d8320be | [
"MIT"
] | 4 | 2018-11-09T16:57:06.000Z | 2021-03-02T22:57:17.000Z | apps/game_services_web/lib/game_services_web/views/ticket_view.ex | Alezrik/game_services_umbrella | 9b9dd6707c200b10c5a73568913deb4d5d8320be | [
"MIT"
] | 29 | 2018-10-26T08:29:37.000Z | 2018-12-09T21:02:05.000Z | apps/game_services_web/lib/game_services_web/views/ticket_view.ex | Alezrik/game_services_umbrella | 9b9dd6707c200b10c5a73568913deb4d5d8320be | [
"MIT"
] | null | null | null | defmodule GameServicesWeb.TicketView do
use GameServicesWeb, :view
end
| 18.25 | 39 | 0.835616 |
2d294237493498bd164324571ba162cbc9a1daf5 | 1,376 | exs | Elixir | index.exs | willpower18/elixir_calculator | b5528a0480df37e71eab665af1cbe6b3cc857c92 | [
"MIT"
] | null | null | null | index.exs | willpower18/elixir_calculator | b5528a0480df37e71eab665af1cbe6b3cc857c92 | [
"MIT"
] | null | null | null | index.exs | willpower18/elixir_calculator | b5528a0480df37e71eab665af1cbe6b3cc857c92 | [
"MIT"
] | null | null | null | IO.puts("\nBem Vindo a Calculadora Em Elixir\n");
IO.puts("Escolha uma opcao abaixo no menu para realizar a operacao: \n");
IO.puts("1 - Soma");
IO.puts("2 - Subtracao");
IO.puts("3 - Multiplicacao");
IO.puts("4 - Divisao");
IO.puts("5 - Calcular Idade\n");
opt = IO.gets("Digite uma opcao: ");
opcaoConvertida = Intege... | 27.52 | 73 | 0.597384 |
2d29425f0bed506a7ba2015f81fafa5274aad6ff | 486 | ex | Elixir | test/elixir/test/support/couch_test_case.ex | mtenrero/couchdb-vetcontrol | b7ede3ededdf0072c73f08d8f1217cb723b03f7a | [
"Apache-2.0"
] | 1 | 2017-07-05T18:50:12.000Z | 2017-07-05T18:50:12.000Z | test/elixir/test/support/couch_test_case.ex | mtenrero/couchdb-vetcontrol | b7ede3ededdf0072c73f08d8f1217cb723b03f7a | [
"Apache-2.0"
] | 1 | 2017-09-05T15:46:20.000Z | 2017-09-05T15:46:20.000Z | test/elixir/test/support/couch_test_case.ex | garrensmith/couchdb | 25838d078b1cf8ef5554f41c0b51d8628ca712ba | [
"Apache-2.0"
] | null | null | null | defmodule CouchTestCase do
@moduledoc false
use ExUnit.CaseTemplate
using do
quote do
require Logger
use ExUnit.Case
import Couch.DBTest
end
end
setup context do
setup_funs = [
&Couch.DBTest.set_db_context/1,
&Couch.DBTest.set_config_context/1,
&Couch.DBTest... | 16.2 | 59 | 0.633745 |
2d29467519ceb8974f568d5305f935f3d5258ec4 | 1,192 | exs | Elixir | test/behaviour_introspection_test.exs | findmypast/behaviour-introspection | 680cbb9602f7c3234ad6a4b7afa63afbbd1ebb65 | [
"Apache-2.0"
] | null | null | null | test/behaviour_introspection_test.exs | findmypast/behaviour-introspection | 680cbb9602f7c3234ad6a4b7afa63afbbd1ebb65 | [
"Apache-2.0"
] | null | null | null | test/behaviour_introspection_test.exs | findmypast/behaviour-introspection | 680cbb9602f7c3234ad6a4b7afa63afbbd1ebb65 | [
"Apache-2.0"
] | 1 | 2020-07-24T15:27:22.000Z | 2020-07-24T15:27:22.000Z | defmodule BehaviourIntrospectionTest do
use ExUnit.Case
test "Ensure that memoised result is identical to non-memoised result." do
non_memoised_result = BehaviourIntrospection.available_modules_with_behaviour(Test.SimpleBehaviour)
memoised_result = BehaviourIntrospection.available_modules_with_behaviour(Te... | 41.103448 | 103 | 0.790268 |
2d2982fe9531bb6c0585342bf90213bdea8df2b1 | 6,054 | ex | Elixir | lib/ueberauth/strategy/vk.ex | versilov/ueberauth_vk | 3edd5443d67b3ae12fa2311af2cb44a3cbeda478 | [
"MIT"
] | null | null | null | lib/ueberauth/strategy/vk.ex | versilov/ueberauth_vk | 3edd5443d67b3ae12fa2311af2cb44a3cbeda478 | [
"MIT"
] | null | null | null | lib/ueberauth/strategy/vk.ex | versilov/ueberauth_vk | 3edd5443d67b3ae12fa2311af2cb44a3cbeda478 | [
"MIT"
] | null | null | null | defmodule Ueberauth.Strategy.VK do
@moduledoc """
VK Strategy for Überauth.
"""
use Ueberauth.Strategy, default_scope: "",
default_display: "page",
default_state: "",
profile_fields: "",
uid_field: :uid,
... | 26.436681 | 79 | 0.597621 |
2d29c0f32bdd4df901151c96bcf502a36dc6527b | 833 | exs | Elixir | apps/data_warehouse/mix.exs | frathon/hedgehog | 3ed1469919ba819280709a8f26def761003a99df | [
"Unlicense"
] | 65 | 2020-07-07T01:51:27.000Z | 2021-09-27T00:13:59.000Z | apps/data_warehouse/mix.exs | Cinderella-Man/hedgehog | 3ed1469919ba819280709a8f26def761003a99df | [
"Unlicense"
] | 5 | 2021-02-12T08:21:15.000Z | 2021-09-01T21:17:27.000Z | apps/data_warehouse/mix.exs | frathon/hedgehog | 3ed1469919ba819280709a8f26def761003a99df | [
"Unlicense"
] | 10 | 2020-08-13T13:39:31.000Z | 2021-09-14T12:46:51.000Z | defmodule DataWarehouse.MixProject do
use Mix.Project
def project do
[
app: :data_warehouse,
version: "0.1.0",
build_path: "../../_build",
config_path: "../../config/config.exs",
deps_path: "../../deps",
lockfile: "../../mix.lock",
elixir: "~> 1.10",
start_perman... | 21.921053 | 59 | 0.534214 |
2d29c2b54087a2b73f4f07a2e87b82442a81599d | 1,447 | exs | Elixir | text_client/lib/procs/fib_cache.exs | johncoleman83/elixir-for-programmers | 062d0a761e59b30909377694151655c946f48bb4 | [
"MIT"
] | null | null | null | text_client/lib/procs/fib_cache.exs | johncoleman83/elixir-for-programmers | 062d0a761e59b30909377694151655c946f48bb4 | [
"MIT"
] | null | null | null | text_client/lib/procs/fib_cache.exs | johncoleman83/elixir-for-programmers | 062d0a761e59b30909377694151655c946f48bb4 | [
"MIT"
] | null | null | null | defmodule Cache do
@moduledoc """
We implement a simple key/value cache. State is stored in an Agent, in
the form of a map.
The function `lookup` tries to look the value up in the cache, and then
calls `complete_if_not_found`. This takes two forms. If there was
no value in the cache, it calls the function ... | 22.968254 | 73 | 0.656531 |
2d29d545bca97dd13377927da8515335c441a74a | 190 | exs | Elixir | priv/repo/migrations/20180921113934_add_access_token_secret_to_users.exs | chenxsan/telegram-bot-for-twitter | 892107c7609123028ac2375342cd7b2329931635 | [
"MIT"
] | 14 | 2018-03-23T04:13:29.000Z | 2021-07-26T06:15:50.000Z | priv/repo/migrations/20180921113934_add_access_token_secret_to_users.exs | chenxsan/telegram-bot-for-twitter | 892107c7609123028ac2375342cd7b2329931635 | [
"MIT"
] | 2 | 2021-03-08T18:20:20.000Z | 2021-05-06T22:47:09.000Z | priv/repo/migrations/20180921113934_add_access_token_secret_to_users.exs | chenxsan/telegram-bot-for-twitter | 892107c7609123028ac2375342cd7b2329931635 | [
"MIT"
] | 3 | 2020-11-04T08:11:47.000Z | 2022-01-13T17:41:42.000Z | defmodule TweetBot.Repo.Migrations.AddAccessTokenSecretToUsers do
use Ecto.Migration
def change do
alter table(:users) do
add(:access_token_secret, :string)
end
end
end
| 19 | 65 | 0.742105 |
2d29e58e354b8c16bd908dfdb0a13067d55ff481 | 1,873 | ex | Elixir | clients/replica_pool_updater/lib/google_api/replica_pool_updater/v1beta1/model/instance_update_error_errors.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/replica_pool_updater/lib/google_api/replica_pool_updater/v1beta1/model/instance_update_error_errors.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/replica_pool_updater/lib/google_api/replica_pool_updater/v1beta1/model/instance_update_error_errors.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.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.685185 | 144 | 0.739455 |
2d2a0539503664778484d080d45a2deecbb6b279 | 16,302 | exs | Elixir | test/teslamate/vehicles/vehicle/streaming_test.exs | kuma/teslamate | ea175fddb49cc08070182455e0073c3dcfcb3b4c | [
"MIT"
] | 1 | 2021-05-20T07:40:58.000Z | 2021-05-20T07:40:58.000Z | test/teslamate/vehicles/vehicle/streaming_test.exs | kuma/teslamate | ea175fddb49cc08070182455e0073c3dcfcb3b4c | [
"MIT"
] | 170 | 2020-07-27T05:57:31.000Z | 2022-03-01T04:05:16.000Z | test/teslamate/vehicles/vehicle/streaming_test.exs | kuma/teslamate | ea175fddb49cc08070182455e0073c3dcfcb3b4c | [
"MIT"
] | null | null | null | defmodule TeslaMate.Vehicles.Vehicle.StreamingTest do
use TeslaMate.VehicleCase, async: true
use TeslaMate.DataCase, async: true
import ExUnit.CaptureLog
alias TeslaMate.Log.Car
alias TeslaApi.Stream
defp stream(name, data) do
base_attrs = %{
shift_state: nil,
est_lat: 42.10,
est_ln... | 32.345238 | 99 | 0.556189 |
2d2a1aeb42b733d42f253799db873d9b037e0ada | 529 | ex | Elixir | web/router.ex | selfup/hyper_potion | 6e4f3f393e4fd8d7ddf7e0dcbf8021e7dad18823 | [
"MIT"
] | null | null | null | web/router.ex | selfup/hyper_potion | 6e4f3f393e4fd8d7ddf7e0dcbf8021e7dad18823 | [
"MIT"
] | null | null | null | web/router.ex | selfup/hyper_potion | 6e4f3f393e4fd8d7ddf7e0dcbf8021e7dad18823 | [
"MIT"
] | null | null | null | defmodule HyperPotion.Router do
use HyperPotion.Web, :router
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_flash
plug :protect_from_forgery
plug :put_secure_browser_headers
end
pipeline :api do
plug :accepts, ["json"]
end
scope "/", HyperPotion do
... | 19.592593 | 57 | 0.68242 |
2d2a215acef59e5423e34fdd338c82140ea9ad25 | 967 | exs | Elixir | test/json_schema_test_suite/draft4/optional/format/ipv4_test.exs | hrzndhrn/json_xema | 955eab7b0919d144b38364164d90275201c89474 | [
"MIT"
] | 54 | 2019-03-10T19:51:07.000Z | 2021-12-23T07:31:09.000Z | test/json_schema_test_suite/draft4/optional/format/ipv4_test.exs | hrzndhrn/json_xema | 955eab7b0919d144b38364164d90275201c89474 | [
"MIT"
] | 36 | 2018-05-20T09:13:20.000Z | 2021-03-14T15:22:03.000Z | test/json_schema_test_suite/draft4/optional/format/ipv4_test.exs | hrzndhrn/json_xema | 955eab7b0919d144b38364164d90275201c89474 | [
"MIT"
] | 3 | 2019-04-12T09:08:51.000Z | 2019-12-04T01:23:56.000Z | defmodule JsonSchemaTestSuite.Draft4.Optional.Format.Ipv4Test do
use ExUnit.Case
import JsonXema, only: [valid?: 2]
describe ~s|validation of IP addresses| do
setup do
%{schema: JsonXema.new(%{"format" => "ipv4"})}
end
test ~s|a valid IP address|, %{schema: schema} do
assert valid?(sche... | 26.861111 | 73 | 0.635988 |
2d2a28277fe31bf83b80aaa6cc8b617f59bdc59b | 49,416 | ex | Elixir | lib/elixir/lib/kernel/special_forms.ex | hamiltop/elixir | 3b601660d4d4eb0c69f824fcebbbe93a3f2ba463 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/kernel/special_forms.ex | hamiltop/elixir | 3b601660d4d4eb0c69f824fcebbbe93a3f2ba463 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/kernel/special_forms.ex | hamiltop/elixir | 3b601660d4d4eb0c69f824fcebbbe93a3f2ba463 | [
"Apache-2.0"
] | null | null | null | defmodule Kernel.SpecialForms do
@moduledoc """
Special forms are the basic building blocks of Elixir, and therefore
they cannot be overridden by the developer.
We define them in this module. Some of these forms are lexical (like
`alias`, `case`, etc). The macros `{}` and `<<>>` are also special
forms used... | 27.499165 | 115 | 0.638558 |
2d2a2fa0323e7366a8b5539e7becfcb45ff9dc11 | 874 | ex | Elixir | clients/chat/lib/google_api/chat/v1/metadata.ex | jechol/elixir-google-api | 0290b683dfc6491ca2ef755a80bc329378738d03 | [
"Apache-2.0"
] | null | null | null | clients/chat/lib/google_api/chat/v1/metadata.ex | jechol/elixir-google-api | 0290b683dfc6491ca2ef755a80bc329378738d03 | [
"Apache-2.0"
] | null | null | null | clients/chat/lib/google_api/chat/v1/metadata.ex | jechol/elixir-google-api | 0290b683dfc6491ca2ef755a80bc329378738d03 | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 32.37037 | 74 | 0.756293 |
2d2a44f319f041a58acdbe020057f3dfbb7e6cd8 | 1,436 | exs | Elixir | mix.exs | geometerio/euclid | 9a9e059ec77d87858ae7878df8d4d75dc01c57f8 | [
"MIT-0"
] | 4 | 2021-06-14T13:54:05.000Z | 2021-10-22T02:55:16.000Z | mix.exs | geometerio/euclid | 9a9e059ec77d87858ae7878df8d4d75dc01c57f8 | [
"MIT-0"
] | 3 | 2021-06-15T21:45:51.000Z | 2022-01-14T20:08:32.000Z | mix.exs | geometerio/euclid | 9a9e059ec77d87858ae7878df8d4d75dc01c57f8 | [
"MIT-0"
] | null | null | null | defmodule Euclid.MixProject do
use Mix.Project
def project do
[
app: :euclid,
deps: deps(),
description: "Shared functions for Elixir projects at Geometer",
docs: docs(),
elixir: "~> 1.9",
elixirc_options: [warnings_as_errors: true],
elixirc_paths: elixirc_paths(Mix.en... | 22.4375 | 70 | 0.55571 |
2d2a4ffea5f0b668f45e13512b152f89b3044d4a | 111 | exs | Elixir | config/server2.exs | rockerBOO/master-slave-failover | 7db82af3a5a4f1ee83c7bdbe13982958c385ab39 | [
"MIT"
] | null | null | null | config/server2.exs | rockerBOO/master-slave-failover | 7db82af3a5a4f1ee83c7bdbe13982958c385ab39 | [
"MIT"
] | null | null | null | config/server2.exs | rockerBOO/master-slave-failover | 7db82af3a5a4f1ee83c7bdbe13982958c385ab39 | [
"MIT"
] | null | null | null |
use Mix.Config
port = 8882
config :msf, :uri, "127.0.0.1:#{port}"
config :maru, MSF.API, http: [port: port] | 13.875 | 41 | 0.630631 |
2d2a5fbe031ed7a57414796c571d2ee7efdfbf7b | 136 | ex | Elixir | lib/stripe/subscriptions/product.ex | Finger-Ink/stripe-elixir | 018cef01a6645074547be4a93b6a443d21be2484 | [
"MIT"
] | null | null | null | lib/stripe/subscriptions/product.ex | Finger-Ink/stripe-elixir | 018cef01a6645074547be4a93b6a443d21be2484 | [
"MIT"
] | null | null | null | lib/stripe/subscriptions/product.ex | Finger-Ink/stripe-elixir | 018cef01a6645074547be4a93b6a443d21be2484 | [
"MIT"
] | null | null | null | defmodule Stripe.Product do
use Stripe.API, [:create, :retrieve, :update, :delete, :list]
def endpoint do
"products"
end
end
| 17 | 63 | 0.683824 |
2d2a652ace6e46de7abdd6e788b9077f6f664345 | 2,363 | exs | Elixir | test/lib/import_test.exs | micahyoung/cbstats-importer | a7176b3a25d8a4e919ddda32475c9ecf65e9892a | [
"Unlicense",
"MIT"
] | 1 | 2016-01-06T18:19:35.000Z | 2016-01-06T18:19:35.000Z | test/lib/import_test.exs | micahyoung/cbstats-importer | a7176b3a25d8a4e919ddda32475c9ecf65e9892a | [
"Unlicense",
"MIT"
] | null | null | null | test/lib/import_test.exs | micahyoung/cbstats-importer | a7176b3a25d8a4e919ddda32475c9ecf65e9892a | [
"Unlicense",
"MIT"
] | null | null | null | defmodule CbstatsImporterTest.TestHelper do
import Ecto.Query
def drop_models do
CbstatsImporter.Repo.delete_all(from CbstatsImporter.Reading, where: true)
CbstatsImporter.Repo.delete_all(from CbstatsImporter.Station, where: true)
:ok
end
end
defmodule CbstatsImporterTest.Mix.Tasks.Import do
impo... | 29.911392 | 113 | 0.664833 |
2d2ab73b7761d955ffe2c01a9b7414308e46c466 | 2,344 | ex | Elixir | apps/andi/lib/andi_web/live/edit_live_view/key_value_editor.ex | msomji/smartcitiesdata | fc96abc1ef1306f7af6bd42bbcb4ed041a6d922c | [
"Apache-2.0"
] | null | null | null | apps/andi/lib/andi_web/live/edit_live_view/key_value_editor.ex | msomji/smartcitiesdata | fc96abc1ef1306f7af6bd42bbcb4ed041a6d922c | [
"Apache-2.0"
] | null | null | null | apps/andi/lib/andi_web/live/edit_live_view/key_value_editor.ex | msomji/smartcitiesdata | fc96abc1ef1306f7af6bd42bbcb4ed041a6d922c | [
"Apache-2.0"
] | null | null | null | defmodule AndiWeb.EditLiveView.KeyValueEditor do
@moduledoc """
LiveComponent for an nested key/value form
"""
use Phoenix.LiveComponent
import Phoenix.HTML.Form
import AndiWeb.ErrorHelpers
alias AndiWeb.Views.DisplayNames
def render(assigns) do
~L"""
<div id="<%= @id %>" class="url-form__<%... | 41.857143 | 177 | 0.59727 |
2d2ae8840ddd70a3679991be696c553627241879 | 200 | exs | Elixir | test/norm/core/collection_test.exs | kieraneglin/norm | 5fe9872226ca8b56c6c6ad4b69ec30256c26414e | [
"MIT"
] | 585 | 2019-06-25T15:41:45.000Z | 2021-10-13T16:12:42.000Z | test/norm/core/collection_test.exs | kieraneglin/norm | 5fe9872226ca8b56c6c6ad4b69ec30256c26414e | [
"MIT"
] | 77 | 2019-06-25T14:58:47.000Z | 2021-09-22T10:12:37.000Z | test/norm/core/collection_test.exs | kieraneglin/norm | 5fe9872226ca8b56c6c6ad4b69ec30256c26414e | [
"MIT"
] | 28 | 2019-07-18T04:54:13.000Z | 2021-06-21T15:43:59.000Z | defmodule Norm.Core.CollectionTest do
use Norm.Case, async: true
test "inspect" do
spec = coll_of(spec(is_atom()))
assert inspect(spec) == "#Norm.CollOf<#Norm.Spec<is_atom()>>"
end
end
| 22.222222 | 65 | 0.68 |
2d2b062f4887ad44e4b6af6f54a75159a50b8081 | 1,602 | ex | Elixir | clients/surveys/lib/google_api/surveys/v2/model/surveys_start_request.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/surveys/lib/google_api/surveys/v2/model/surveys_start_request.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/surveys/lib/google_api/surveys/v2/model/surveys_start_request.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 34.085106 | 269 | 0.750936 |
2d2b0d237db8797f7221f4c542331984595c3bd2 | 2,392 | ex | Elixir | web/router.ex | mcousillas6/BioMonitor | 312a903fe19751b6896aca9346340ea502397350 | [
"MIT"
] | null | null | null | web/router.ex | mcousillas6/BioMonitor | 312a903fe19751b6896aca9346340ea502397350 | [
"MIT"
] | null | null | null | web/router.ex | mcousillas6/BioMonitor | 312a903fe19751b6896aca9346340ea502397350 | [
"MIT"
] | null | null | null | defmodule BioMonitor.Router do
use BioMonitor.Web, :router
use ExAdmin.Router
use Coherence.Router
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_flash
plug :protect_from_forgery
plug :put_secure_browser_headers
plug Coherence.Authentication.Session
end
... | 30.278481 | 82 | 0.715719 |
2d2b4faf4eeb006985706319c2fe5a621ea3789c | 2,515 | ex | Elixir | clients/classroom/lib/google_api/classroom/v1/model/user_profile.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/classroom/lib/google_api/classroom/v1/model/user_profile.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/classroom/lib/google_api/classroom/v1/model/user_profile.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... | 39.920635 | 289 | 0.717694 |
2d2b5263e213450b2400842b09b293c9b12cdbb7 | 839 | ex | Elixir | lib/dobar/accounts/user_list.ex | ashkan18/dobar | 37381af2a56b2456cfe2a0a358169fd2764cd3f0 | [
"MIT"
] | null | null | null | lib/dobar/accounts/user_list.ex | ashkan18/dobar | 37381af2a56b2456cfe2a0a358169fd2764cd3f0 | [
"MIT"
] | 14 | 2019-09-02T18:00:07.000Z | 2021-09-02T00:49:54.000Z | lib/dobar/accounts/user_list.ex | ashkan18/dobar | 37381af2a56b2456cfe2a0a358169fd2764cd3f0 | [
"MIT"
] | 1 | 2016-07-27T14:40:55.000Z | 2016-07-27T14:40:55.000Z | defmodule Dobar.Accounts.UserList do
use Ecto.Schema
import Ecto.Changeset
@primary_key {:id, :binary_id, autogenerate: true}
@foreign_key_type :binary_id
schema "user_lists" do
field :list_type, :string
belongs_to :user, Dobar.Accounts.User
belongs_to :place, Dobar.Places.Place
timestamps()... | 27.064516 | 65 | 0.740167 |
2d2b79ad3cc35e2314275bb21b746e6f98e7e34a | 594 | ex | Elixir | lib/music_sync_web/controllers/user_controller.ex | ZucchiniZe/music_sync | 23550e5aa71503dfdbad39f49cfcd83bd98ce457 | [
"MIT"
] | 2 | 2021-07-27T10:39:02.000Z | 2021-12-18T06:55:42.000Z | lib/music_sync_web/controllers/user_controller.ex | ZucchiniZe/music_sync | 23550e5aa71503dfdbad39f49cfcd83bd98ce457 | [
"MIT"
] | null | null | null | lib/music_sync_web/controllers/user_controller.ex | ZucchiniZe/music_sync | 23550e5aa71503dfdbad39f49cfcd83bd98ce457 | [
"MIT"
] | null | null | null | defmodule MusicSyncWeb.UserController do
use MusicSyncWeb, :controller
alias MusicSync.Accounts
alias MusicSyncWeb.UserAuth
def logout(conn, _params) do
conn
|> put_flash(:info, "Logged out successfully!")
|> UserAuth.log_out_user()
end
def show(conn, _params) do
render(conn, "show.html")
... | 21.214286 | 51 | 0.658249 |
2d2b84e8f81c828f02984918fb8d2fef0b9ffe77 | 4,811 | exs | Elixir | apps/ewallet/priv/repo/report_minimum.exs | vanmil/ewallet | 6c1aca95a83e0a9d93007670a40d8c45764a8122 | [
"Apache-2.0"
] | null | null | null | apps/ewallet/priv/repo/report_minimum.exs | vanmil/ewallet | 6c1aca95a83e0a9d93007670a40d8c45764a8122 | [
"Apache-2.0"
] | null | null | null | apps/ewallet/priv/repo/report_minimum.exs | vanmil/ewallet | 6c1aca95a83e0a9d93007670a40d8c45764a8122 | [
"Apache-2.0"
] | null | null | null | alias EWallet.CLI
alias EWalletDB.AuthToken
# :prod environment does not have a default :base_url value and should not have one.
# But we have a fallback value here so we can generate a friendly output message for seeding.
base_url = Application.get_env(:ewallet_db, :base_url) || "https://example.com"
# Prepare URLs
... | 42.575221 | 99 | 0.689877 |
2d2ba4e75b48888af91bc1adad7900f022324798 | 516 | exs | Elixir | test/test_helper.exs | astorre88/pers_queue | 8feea510d8452f182bd532c7da8ef1cc8a2a70ec | [
"MIT"
] | 2 | 2018-07-29T16:09:50.000Z | 2022-01-26T15:18:29.000Z | test/test_helper.exs | astorre88/pers_queue | 8feea510d8452f182bd532c7da8ef1cc8a2a70ec | [
"MIT"
] | null | null | null | test/test_helper.exs | astorre88/pers_queue | 8feea510d8452f182bd532c7da8ef1cc8a2a70ec | [
"MIT"
] | null | null | null | ExUnit.start()
defmodule Helpers.Persistence do
alias PersQueue.Message
alias PersQueue.Persistence
def create_sample_messages do
[
%Message{content: "a", consumer: "consumer1"},
%Message{content: "b", consumer: "consumer2"},
%Message{content: "c", consumer: "consumer3"},
%Message{co... | 27.157895 | 52 | 0.651163 |
2d2bff57221952749477d66f6d70226c087b454e | 6,490 | ex | Elixir | lib/batch_please/impl.ex | appcues/batch-please | e1c2ac3dfe70a4a6ce3d034219530535a14caae1 | [
"MIT"
] | null | null | null | lib/batch_please/impl.ex | appcues/batch-please | e1c2ac3dfe70a4a6ce3d034219530535a14caae1 | [
"MIT"
] | null | null | null | lib/batch_please/impl.ex | appcues/batch-please | e1c2ac3dfe70a4a6ce3d034219530535a14caae1 | [
"MIT"
] | null | null | null | defmodule BatchPlease.Impl do
@moduledoc false
require Logger
import BatchPlease.DynamicResolvers
#### GenServer implementation
@doc false
@spec init(Keyword.t, atom) :: BatchPlease.batch_return
def init(opts, module) do
state = %{
opts: opts, ## invocation opts
module: module, ## ... | 26.707819 | 90 | 0.629738 |
2d2c151c01f84395987dba9784b7091489eabe33 | 1,289 | ex | Elixir | lib/codes/codes_o61.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_o61.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_o61.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | defmodule IcdCode.ICDCode.Codes_O61 do
alias IcdCode.ICDCode
def _O610 do
%ICDCode{full_code: "O610",
category_code: "O61",
short_code: "0",
full_name: "Failed medical induction of labor",
short_name: "Failed medical induction of labor",
category_name: "Failed me... | 29.976744 | 65 | 0.615206 |
2d2c3c048a3e6a5c6199b56cfbfca82c2bcb19fd | 5,614 | ex | Elixir | test/support/macros.ex | dbernheisel/date_time_parser | 53378ccfb5938c304a18fd62b1f288ab94dd5446 | [
"MIT"
] | 73 | 2019-07-26T19:48:10.000Z | 2022-03-23T10:01:34.000Z | test/support/macros.ex | dbernheisel/date_time_parser | 53378ccfb5938c304a18fd62b1f288ab94dd5446 | [
"MIT"
] | 23 | 2019-08-28T22:08:32.000Z | 2021-06-14T19:33:18.000Z | test/support/macros.ex | dbernheisel/date_time_parser | 53378ccfb5938c304a18fd62b1f288ab94dd5446 | [
"MIT"
] | 9 | 2019-08-01T22:42:20.000Z | 2022-02-15T19:02:50.000Z | defmodule DateTimeParserTestMacros do
@moduledoc false
alias DateTimeParser
alias DateTimeParserTest.Recorder
def to_iso(%NaiveDateTime{} = datetime), do: NaiveDateTime.to_iso8601(datetime)
def to_iso(%DateTime{} = datetime), do: DateTime.to_iso8601(datetime)
def to_iso(%Date{} = date), do: Date.to_iso8601... | 31.539326 | 97 | 0.632348 |
2d2c53c22a01d4a3e78fd55bc08a743e67902f2b | 1,784 | exs | Elixir | test/json_schema_test_suite_test.exs | edenlabllc/nex_json_schema | f7445a1da1f470b2876e9ee28965e675c54e74c2 | [
"MIT"
] | 3 | 2016-10-25T12:10:00.000Z | 2020-11-06T21:33:23.000Z | test/json_schema_test_suite_test.exs | edenlabllc/nex_json_schema | f7445a1da1f470b2876e9ee28965e675c54e74c2 | [
"MIT"
] | 12 | 2017-05-31T17:23:16.000Z | 2020-10-21T00:58:45.000Z | test/json_schema_test_suite_test.exs | edenlabllc/nex_json_schema | f7445a1da1f470b2876e9ee28965e675c54e74c2 | [
"MIT"
] | 4 | 2018-06-18T23:37:53.000Z | 2020-07-08T13:03:20.000Z | defmodule NExJsonSchema.JsonSchemaTestSuiteTest.Helpers do
use ExUnit.Case, async: true
@schema_tests_path "test/JSON-Schema-Test-Suite/tests/draft4/"
def schema_tests_path do
@schema_tests_path
end
def schema_test_path(filename) do
Path.join(schema_tests_path(), filename)
end
def load_schema_... | 26.235294 | 105 | 0.590807 |
2d2c7cebc3afedfee018193a3693f48d9d2fcaf0 | 1,954 | ex | Elixir | lib/ann/training/backpropagation/propagate_errors.ex | rdk08/annex | 68380ae23f079cac1dcef7bdfbe6541e19f41864 | [
"MIT"
] | 1 | 2021-02-04T07:03:31.000Z | 2021-02-04T07:03:31.000Z | lib/ann/training/backpropagation/propagate_errors.ex | rdk08/ann | 68380ae23f079cac1dcef7bdfbe6541e19f41864 | [
"MIT"
] | null | null | null | lib/ann/training/backpropagation/propagate_errors.ex | rdk08/ann | 68380ae23f079cac1dcef7bdfbe6541e19f41864 | [
"MIT"
] | null | null | null | defmodule ANN.Training.Backpropagation.PropagateErrors do
alias ANN.{Layer, Network, Neuron, Signal}
@spec propagate(%Network{}, list(float), list(float), module) :: %Network{}
def propagate(network, output, expected_output, activation_fn) do
layers = Enum.reverse(network.layers)
initial_deltas = calcula... | 36.185185 | 94 | 0.715967 |
2d2c9eb3f5952b1e21ac46ca30412a3870cd4ca8 | 521 | ex | Elixir | presentations/otp/code/stack.ex | dgoldie/elixir_workshop | 54a3e74782b936ed3f289ab93d08a31f227dac3e | [
"MIT"
] | 2 | 2015-03-25T05:19:32.000Z | 2018-09-16T04:48:09.000Z | presentations/otp/code/stack.ex | dgoldie/elixir_workshop | 54a3e74782b936ed3f289ab93d08a31f227dac3e | [
"MIT"
] | null | null | null | presentations/otp/code/stack.ex | dgoldie/elixir_workshop | 54a3e74782b936ed3f289ab93d08a31f227dac3e | [
"MIT"
] | 2 | 2015-06-19T04:37:15.000Z | 2021-12-26T22:14:37.000Z | defmodule Stack do
use GenServer
def start_link(state) do
{:ok, pid} = GenServer.start_link(Stack, state, [])
pid
end
def pop(pid) do
GenServer.call(pid, :pop)
end
def push(pid, value) do
GenServer.cast(pid, {:push, value})
end
def handle_call(:pop, _from, []) do
{:reply, nil, []... | 16.806452 | 55 | 0.618042 |
2d2ca2119d949344d627ebee709ad71c732a592c | 65,427 | exs | Elixir | test/ecto/changeset_test.exs | ccapndave/ecto | c1d27f004ca18905b69f7ca45958c50c0c5f0ce8 | [
"Apache-2.0"
] | null | null | null | test/ecto/changeset_test.exs | ccapndave/ecto | c1d27f004ca18905b69f7ca45958c50c0c5f0ce8 | [
"Apache-2.0"
] | null | null | null | test/ecto/changeset_test.exs | ccapndave/ecto | c1d27f004ca18905b69f7ca45958c50c0c5f0ce8 | [
"Apache-2.0"
] | null | null | null | defmodule Ecto.ChangesetTest do
use ExUnit.Case, async: true
import Ecto.Changeset
defmodule SocialSource do
use Ecto.Schema
@primary_key false
embedded_schema do
field :origin
field :url
end
def changeset(schema \\ %SocialSource{}, params) do
cast(schema, params, ~w(origi... | 38.306206 | 167 | 0.634188 |
2d2ca255beacf9d5ffa9a447b9fc2e61f1407066 | 1,289 | exs | Elixir | test/level_web/graphql/subscriptions/post_created_test.exs | mindriot101/level | 0a2cbae151869c2d9b79b3bfb388f5d00739ae12 | [
"Apache-2.0"
] | 928 | 2018-04-03T16:18:11.000Z | 2019-09-09T17:59:55.000Z | test/level_web/graphql/subscriptions/post_created_test.exs | mindriot101/level | 0a2cbae151869c2d9b79b3bfb388f5d00739ae12 | [
"Apache-2.0"
] | 74 | 2018-04-03T00:46:50.000Z | 2019-03-10T18:57:27.000Z | test/level_web/graphql/subscriptions/post_created_test.exs | mindriot101/level | 0a2cbae151869c2d9b79b3bfb388f5d00739ae12 | [
"Apache-2.0"
] | 89 | 2018-04-03T17:33:20.000Z | 2019-08-19T03:40:20.000Z | defmodule LevelWeb.GraphQL.PostCreatedTest do
use LevelWeb.ChannelCase
alias Level.Posts
@operation """
subscription GroupSubscription(
$id: ID!
) {
spaceUserSubscription(spaceUserId: $id) {
__typename
... on PostCreatedPayload {
post {
id
su... | 24.320755 | 101 | 0.567882 |
2d2ca9b662b5f5ae0a750ef95603de923d7b16a3 | 1,543 | ex | Elixir | lib/adyen_checkout_ex/model/payment_verification_response.ex | rsystem-se/adyen_checkout_ex | 4210f1c7150152e81f350dc6ca55aeb19665b85b | [
"MIT"
] | 1 | 2021-05-30T20:45:10.000Z | 2021-05-30T20:45:10.000Z | lib/adyen_checkout_ex/model/payment_verification_response.ex | rsystem-se/adyen_checkout_ex | 4210f1c7150152e81f350dc6ca55aeb19665b85b | [
"MIT"
] | null | null | null | lib/adyen_checkout_ex/model/payment_verification_response.ex | rsystem-se/adyen_checkout_ex | 4210f1c7150152e81f350dc6ca55aeb19665b85b | [
"MIT"
] | null | null | null | # NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
# https://openapi-generator.tech
# Do not edit the class manually.
defmodule AdyenCheckoutEx.Model.PaymentVerificationResponse do
@moduledoc """
"""
@derive [Poison.Encoder]
defstruct [
:"additionalData",
:"... | 30.86 | 91 | 0.683733 |
2d2cb9896be3ca6cc040db8b44c6fc8ee2611fab | 1,251 | exs | Elixir | apps/reaper/test/unit/reaper/data_slurper/sftp_test.exs | smartcitiesdata/smartcitiesdata | c926c25003a8ee2d09b933c521c49f674841c0b6 | [
"Apache-2.0"
] | 26 | 2019-09-20T23:54:45.000Z | 2020-08-20T14:23:32.000Z | apps/reaper/test/unit/reaper/data_slurper/sftp_test.exs | smartcitiesdata/smartcitiesdata | c926c25003a8ee2d09b933c521c49f674841c0b6 | [
"Apache-2.0"
] | 757 | 2019-08-15T18:15:07.000Z | 2020-09-18T20:55:31.000Z | apps/reaper/test/unit/reaper/data_slurper/sftp_test.exs | smartcitiesdata/smartcitiesdata | c926c25003a8ee2d09b933c521c49f674841c0b6 | [
"Apache-2.0"
] | 9 | 2019-11-12T16:43:46.000Z | 2020-03-25T16:23:16.000Z | defmodule Reaper.DataSlurper.SftpTest do
use ExUnit.Case
use Placebo
describe "DataSlurper.Sftp.slurp/2" do
setup do
%{source_url: "sftp://localhost:222/does/not/matter.csv", ingestion_id: "12345-6789"}
end
test "handles failure to retrieve any ingestino credentials", map do
allow Reaper... | 35.742857 | 119 | 0.640288 |
2d2cf8af00b507fd553fe0aeb5f216b11924639d | 457 | ex | Elixir | lib/commanded/event/upcast.ex | edwardzhou/commanded | f104cbf5ff3a37a6e9b637bc07ccde1d79c0725d | [
"MIT"
] | null | null | null | lib/commanded/event/upcast.ex | edwardzhou/commanded | f104cbf5ff3a37a6e9b637bc07ccde1d79c0725d | [
"MIT"
] | null | null | null | lib/commanded/event/upcast.ex | edwardzhou/commanded | f104cbf5ff3a37a6e9b637bc07ccde1d79c0725d | [
"MIT"
] | null | null | null | defmodule Commanded.Event.Upcast do
alias Commanded.Event.Upcaster
alias Commanded.EventStore.RecordedEvent
def upcast_event_stream(%Stream{} = event_stream) do
Stream.map(event_stream, &upcast_event/1)
end
def upcast_event_stream(event_stream) do
Enum.map(event_stream, &upcast_event/1)
end
def... | 26.882353 | 78 | 0.757112 |
2d2d2c52b28ccbea98460d8d72a3626a47f15784 | 15,533 | exs | Elixir | test/phoenix/digester_test.exs | rrrcompagnoni/phoenix | ca7488815a9b5bcaee0b9afee10162d177a2b90d | [
"MIT"
] | 1 | 2020-04-14T09:49:46.000Z | 2020-04-14T09:49:46.000Z | test/phoenix/digester_test.exs | rrrcompagnoni/phoenix | ca7488815a9b5bcaee0b9afee10162d177a2b90d | [
"MIT"
] | 1 | 2020-11-08T08:30:10.000Z | 2020-11-08T08:30:10.000Z | test/phoenix/digester_test.exs | rrrcompagnoni/phoenix | ca7488815a9b5bcaee0b9afee10162d177a2b90d | [
"MIT"
] | null | null | null | defmodule Phoenix.DigesterTest do
use ExUnit.Case, async: true
@output_path Path.join("tmp", "phoenix_digest")
@fake_now 32132173
@hash_regex ~S"[a-fA-F\d]{32}"
setup do
File.rm_rf!(@output_path)
:ok
end
describe "compile" do
test "fails when the given paths are invalid" do
assert {:e... | 38.258621 | 137 | 0.647911 |
2d2d69051faea605cfe6cd19622a8a8f288cb21d | 637 | ex | Elixir | lib/apq/strategy/raw_query.ex | fuelen/apq | 3cf1d5bdf58d690711ed33d506b92096939da9ae | [
"MIT"
] | 41 | 2018-09-15T13:02:28.000Z | 2022-01-11T23:17:11.000Z | lib/apq/strategy/raw_query.ex | fuelen/apq | 3cf1d5bdf58d690711ed33d506b92096939da9ae | [
"MIT"
] | 41 | 2018-09-15T13:17:56.000Z | 2022-03-24T04:03:50.000Z | lib/apq/strategy/raw_query.ex | fuelen/apq | 3cf1d5bdf58d690711ed33d506b92096939da9ae | [
"MIT"
] | 4 | 2018-09-25T09:59:30.000Z | 2021-11-15T10:08:37.000Z | defmodule Apq.Strategy.RawQuery do
@moduledoc """
Caching strategy that will cache the raw
string query
"""
@behaviour Apq.Strategy
def pipeline([Absinthe.Phase.Init | _] = pipeline, opts) do
do_pipeline(pipeline, opts)
end
def pipeline([phase | _] = _pipeline, _opts) do
raise RuntimeError, "... | 20.548387 | 61 | 0.66876 |
2d2d7b9bc4d32f736aed25bfdb909b92a316dca5 | 1,123 | exs | Elixir | config/config.exs | ryanwinchester/hedwig_irc | b85d457dc0c7c88aba7385c4e7a62e5cea93463c | [
"MIT"
] | 15 | 2016-03-26T13:17:26.000Z | 2021-04-30T17:02:05.000Z | config/config.exs | ryanwinchester/hedwig_irc | b85d457dc0c7c88aba7385c4e7a62e5cea93463c | [
"MIT"
] | 6 | 2017-06-25T21:16:59.000Z | 2020-07-26T05:06:36.000Z | config/config.exs | ryanwinchester/hedwig_irc | b85d457dc0c7c88aba7385c4e7a62e5cea93463c | [
"MIT"
] | 12 | 2016-11-15T14:14:15.000Z | 2021-03-10T15:30:50.000Z | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on this project, this
# file won't be loaded nor affect the paren... | 36.225806 | 73 | 0.752449 |
2d2d822cf6c89ccab6e4d441140af9c5710420ad | 2,503 | ex | Elixir | clients/cloud_error_reporting/lib/google_api/cloud_error_reporting/v1beta1/model/error_event.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/cloud_error_reporting/lib/google_api/cloud_error_reporting/v1beta1/model/error_event.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/cloud_error_reporting/lib/google_api/cloud_error_reporting/v1beta1/model/error_event.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... | 44.696429 | 236 | 0.740312 |
2d2d90341df246ca6d3f8d0159be5599c7f5e8df | 19 | exs | Elixir | bench/bench_helper.exs | kianmeng/extwitter | aa1761f3dc618603a2ffe114589313cd8f306582 | [
"MIT"
] | 395 | 2015-01-12T16:33:42.000Z | 2022-03-13T08:37:08.000Z | bench/bench_helper.exs | kianmeng/extwitter | aa1761f3dc618603a2ffe114589313cd8f306582 | [
"MIT"
] | 133 | 2015-01-25T00:08:36.000Z | 2022-03-07T04:50:41.000Z | bench/bench_helper.exs | kianmeng/extwitter | aa1761f3dc618603a2ffe114589313cd8f306582 | [
"MIT"
] | 134 | 2015-01-14T16:44:13.000Z | 2022-02-02T22:11:36.000Z | Benchfella.start()
| 9.5 | 18 | 0.789474 |
2d2d9496462efe7a0417ef2657c74af0e4c4374e | 2,240 | ex | Elixir | clients/sql_admin/lib/google_api/sql_admin/v1/model/password_validation_policy.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/sql_admin/lib/google_api/sql_admin/v1/model/password_validation_policy.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/sql_admin/lib/google_api/sql_admin/v1/model/password_validation_policy.ex | dazuma/elixir-google-api | 6a9897168008efe07a6081d2326735fe332e522c | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 37.966102 | 129 | 0.714732 |
2d2d9a4699c968f0169ff88882554ec66fb57837 | 59 | exs | Elixir | apps/auth/test/auth_test.exs | lbrty/idp-backend | 81d5f10ef6177a1e678b994331c5a09abbdca8d6 | [
"Apache-2.0"
] | null | null | null | apps/auth/test/auth_test.exs | lbrty/idp-backend | 81d5f10ef6177a1e678b994331c5a09abbdca8d6 | [
"Apache-2.0"
] | null | null | null | apps/auth/test/auth_test.exs | lbrty/idp-backend | 81d5f10ef6177a1e678b994331c5a09abbdca8d6 | [
"Apache-2.0"
] | null | null | null | defmodule AuthTest do
use ExUnit.Case
doctest Auth
end
| 11.8 | 21 | 0.779661 |
2d2de2bb94609a1fefac62864d31707d32ef3166 | 1,412 | ex | Elixir | lib/credo/check/readability/single_pipe.ex | sevenseacat/credo | 48837401040d9c2340b5fb9c7d786d31f89f6426 | [
"MIT"
] | null | null | null | lib/credo/check/readability/single_pipe.ex | sevenseacat/credo | 48837401040d9c2340b5fb9c7d786d31f89f6426 | [
"MIT"
] | null | null | null | lib/credo/check/readability/single_pipe.ex | sevenseacat/credo | 48837401040d9c2340b5fb9c7d786d31f89f6426 | [
"MIT"
] | null | null | null | defmodule Credo.Check.Readability.SinglePipe do
@moduledoc """
Pipes (`|>`) should only be used when piping data through multiple calls.
So while this is fine:
list
|> Enum.take(5)
|> Enum.shuffle
|> evaluate
The code in this example ...
list
|> evaluate
... should be ... | 24.344828 | 81 | 0.635269 |
2d2df54bcd78a7d0fa2a3abad37916e191d21302 | 683 | ex | Elixir | lib/changelog/meta/feeds.ex | soleo/changelog.com | 621c7471b23379e1cdd4a0c960b66ed98d8d1a53 | [
"MIT"
] | null | null | null | lib/changelog/meta/feeds.ex | soleo/changelog.com | 621c7471b23379e1cdd4a0c960b66ed98d8d1a53 | [
"MIT"
] | null | null | null | lib/changelog/meta/feeds.ex | soleo/changelog.com | 621c7471b23379e1cdd4a0c960b66ed98d8d1a53 | [
"MIT"
] | null | null | null | defmodule Changelog.Meta.Feeds do
alias Changelog.{PostView}
import Changelog.Router.Helpers
def rss_feeds(assigns), do: assigns |> get
defp get(%{podcast: podcast}) do
shared ++ [%{url: feed_url(conn, :podcast, podcast.slug), title: "#{podcast.name} Podcast Feed"}]
end
defp get(%{view_module: PostV... | 23.551724 | 101 | 0.642753 |
2d2e2c71cb925383e755c04f2eacaec4c9c64ac3 | 183 | exs | Elixir | test/test_helper.exs | smpallen99/exrm | 2e67d3b3bc1fcb0a7ec9a223da247a6ce9d607ad | [
"MIT"
] | null | null | null | test/test_helper.exs | smpallen99/exrm | 2e67d3b3bc1fcb0a7ec9a223da247a6ce9d607ad | [
"MIT"
] | null | null | null | test/test_helper.exs | smpallen99/exrm | 2e67d3b3bc1fcb0a7ec9a223da247a6ce9d607ad | [
"MIT"
] | null | null | null | ExUnit.start()
defmodule PathHelpers do
def fixture_path() do
Path.expand("fixtures", __DIR__)
end
def fixture_path(extra) do
Path.join(fixture_path, extra)
end
end
| 15.25 | 36 | 0.715847 |
2d2e2fdf9d82be5d44be7992dead222a90988e7b | 3,728 | ex | Elixir | lib/mqtt/server.ex | kopera/erlang-mqtt | d4aa0739dfe1e1958e66a96ec9418b655ddc8651 | [
"Apache-2.0"
] | 15 | 2017-05-15T13:24:17.000Z | 2021-01-13T20:33:51.000Z | lib/mqtt/server.ex | kopera/erlang-mqtt | d4aa0739dfe1e1958e66a96ec9418b655ddc8651 | [
"Apache-2.0"
] | 5 | 2017-03-10T07:50:23.000Z | 2018-06-21T17:39:17.000Z | lib/mqtt/server.ex | kopera/erlang-mqtt | d4aa0739dfe1e1958e66a96ec9418b655ddc8651 | [
"Apache-2.0"
] | 5 | 2017-04-03T16:51:08.000Z | 2021-06-02T05:27:38.000Z | defmodule MQTT.Server do
@moduledoc """
A behaviour module for implementing an MQTT "broker".
"""
@callback init(args :: any, params :: init_parameters) ::
{:ok, state} |
{:stop, reason :: init_stop_reason} when state: any
@callback handle_publish(topic :: String.t, message :: binary, opts :: map, s... | 28.242424 | 123 | 0.598712 |
2d2e7225512984354333f4876d7dff8e735e19cf | 270 | exs | Elixir | priv/repo/migrations/20210423030406_create_restaurants_table.exs | amravazzi/nlw-inmana | ce46d245a87aff994c942ce365c19bfdbec54f15 | [
"MIT"
] | null | null | null | priv/repo/migrations/20210423030406_create_restaurants_table.exs | amravazzi/nlw-inmana | ce46d245a87aff994c942ce365c19bfdbec54f15 | [
"MIT"
] | null | null | null | priv/repo/migrations/20210423030406_create_restaurants_table.exs | amravazzi/nlw-inmana | ce46d245a87aff994c942ce365c19bfdbec54f15 | [
"MIT"
] | null | null | null | defmodule Inmana.Repo.Migrations.CreateRestaurantsTable do
use Ecto.Migration
def change do
create table(:restaurants) do
add :email, :string
add :name, :string
timestamps()
end
create unique_index(:restaurants, [:email])
end
end
| 16.875 | 58 | 0.681481 |
2d2e7d356e94c0d4590463f50d57ae6f5cd70f01 | 836 | ex | Elixir | apps/load_tester/lib/load_tester/runner.ex | amadeobrands/ewallet | 505b7822721940a7b892a9b35c225e80cc8ac0b4 | [
"Apache-2.0"
] | 1 | 2018-12-07T06:21:21.000Z | 2018-12-07T06:21:21.000Z | apps/load_tester/lib/load_tester/runner.ex | amadeobrands/ewallet | 505b7822721940a7b892a9b35c225e80cc8ac0b4 | [
"Apache-2.0"
] | null | null | null | apps/load_tester/lib/load_tester/runner.ex | amadeobrands/ewallet | 505b7822721940a7b892a9b35c225e80cc8ac0b4 | [
"Apache-2.0"
] | null | null | null | defmodule LoadTester.Runner do
@moduledoc """
Defines the running sequence for the scenarios.
"""
use Chaperon.LoadTest
alias LoadTester.Scenarios.{
AccountAll,
AccountCreate,
AccountGetWallets,
AdminLogin,
Index,
TokenAll,
TokenCreate,
TransactionCreate,
UserGetWallets
... | 18.173913 | 57 | 0.616029 |
2d2ea0132f6dc39ad1f7380ecad396ad3e1eeb00 | 10,435 | exs | Elixir | test/json_schema_test_suite/draft6/unique_items_test.exs | hrzndhrn/json_xema | 955eab7b0919d144b38364164d90275201c89474 | [
"MIT"
] | 54 | 2019-03-10T19:51:07.000Z | 2021-12-23T07:31:09.000Z | test/json_schema_test_suite/draft6/unique_items_test.exs | hrzndhrn/json_xema | 955eab7b0919d144b38364164d90275201c89474 | [
"MIT"
] | 36 | 2018-05-20T09:13:20.000Z | 2021-03-14T15:22:03.000Z | test/json_schema_test_suite/draft6/unique_items_test.exs | hrzndhrn/json_xema | 955eab7b0919d144b38364164d90275201c89474 | [
"MIT"
] | 3 | 2019-04-12T09:08:51.000Z | 2019-12-04T01:23:56.000Z | defmodule JsonSchemaTestSuite.Draft6.UniqueItemsTest do
use ExUnit.Case
import JsonXema, only: [valid?: 2]
describe ~s|uniqueItems validation| do
setup do
%{schema: JsonXema.new(%{"uniqueItems" => true})}
end
test ~s|unique array of integers is valid|, %{schema: schema} do
assert valid?... | 31.056548 | 92 | 0.559655 |
2d2eeb6773339c08848760a50ae91b37cd65b6ca | 4,425 | ex | Elixir | backend/lib/honeyland/geolocation.ex | bejolithic/honeyland | 8c4a0d3b56543648d3acb96cc6906df86526743b | [
"Apache-2.0"
] | null | null | null | backend/lib/honeyland/geolocation.ex | bejolithic/honeyland | 8c4a0d3b56543648d3acb96cc6906df86526743b | [
"Apache-2.0"
] | null | null | null | backend/lib/honeyland/geolocation.ex | 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 ... | 30.729167 | 91 | 0.705085 |
2d2ef1b66029d4782342274ee367db77e136a8da | 477 | exs | Elixir | test/rc_test.exs | scouten/esqlite-race-condition | cd58ebdce5cc4ec1a690f04b21baa1513248614f | [
"MIT"
] | null | null | null | test/rc_test.exs | scouten/esqlite-race-condition | cd58ebdce5cc4ec1a690f04b21baa1513248614f | [
"MIT"
] | null | null | null | test/rc_test.exs | scouten/esqlite-race-condition | cd58ebdce5cc4ec1a690f04b21baa1513248614f | [
"MIT"
] | null | null | null | defmodule RcTest do
use ExUnit.Case
test "doesn't crash on open, prepare, GC in quick succession" do
Enum.each(1..10_000, fn _ ->
{:ok, task_pid} = Task.start(fn ->
{:ok, db} = Sqlitex.Server.start_link(":memory:")
Sqlitex.Server.prepare(db, "PRAGMA foreign_keys = ON")
end)
Pr... | 29.8125 | 84 | 0.620545 |
2d2f4cb6f4a8d9c95fd37d2d340c99c06525cde7 | 276 | exs | Elixir | priv/repo/migrations/20210627221650_create_payment_method.exs | gjlbro/testdelivery | 3d667cca67b3a561d7395673b6b968523ed3270a | [
"MIT"
] | null | null | null | priv/repo/migrations/20210627221650_create_payment_method.exs | gjlbro/testdelivery | 3d667cca67b3a561d7395673b6b968523ed3270a | [
"MIT"
] | null | null | null | priv/repo/migrations/20210627221650_create_payment_method.exs | gjlbro/testdelivery | 3d667cca67b3a561d7395673b6b968523ed3270a | [
"MIT"
] | null | null | null | defmodule Delivery.Repo.Migrations.CreatePaymentMethod do
use Ecto.Migration
def change do
up_query = "CREATE TYPE payment_method AS ENUM ('money', 'credit_card', 'debit_card')"
down_query = "DROP TYPE payment_method"
execute(up_query, down_query)
end
end
| 25.090909 | 90 | 0.746377 |
2d2f6809c859fa6470daac91a6b72077ebf141a0 | 308 | ex | Elixir | lib/hologram/compiler/transformers/binary_type_transformer.ex | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 40 | 2022-01-19T20:27:36.000Z | 2022-03-31T18:17:41.000Z | lib/hologram/compiler/transformers/binary_type_transformer.ex | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 42 | 2022-02-03T22:52:43.000Z | 2022-03-26T20:57:32.000Z | lib/hologram/compiler/transformers/binary_type_transformer.ex | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 3 | 2022-02-10T04:00:37.000Z | 2022-03-08T22:07:45.000Z | defmodule Hologram.Compiler.BinaryTypeTransformer do
alias Hologram.Compiler.{Context, Transformer}
alias Hologram.Compiler.IR.BinaryType
def transform({:<<>>, _, parts}, %Context{} = context) do
parts = Enum.map(parts, &Transformer.transform(&1, context))
%BinaryType{parts: parts}
end
end
| 30.8 | 64 | 0.730519 |
2d2f72b332ea377aaf320aaa32860e7f8d7dfddb | 967 | ex | Elixir | lib/xdr/types/uint32.ex | einerzg/stellar_base | 2d10c5fc3b8159efc5de10b5c7c665e3b57b3d8f | [
"MIT"
] | 3 | 2021-08-17T20:32:45.000Z | 2022-03-13T20:26:02.000Z | lib/xdr/types/uint32.ex | einerzg/stellar_base | 2d10c5fc3b8159efc5de10b5c7c665e3b57b3d8f | [
"MIT"
] | 45 | 2021-08-12T20:19:41.000Z | 2022-03-27T21:00:10.000Z | lib/xdr/types/uint32.ex | einerzg/stellar_base | 2d10c5fc3b8159efc5de10b5c7c665e3b57b3d8f | [
"MIT"
] | 2 | 2021-09-22T23:11:13.000Z | 2022-01-23T03:19:11.000Z | defmodule StellarBase.XDR.UInt32 do
@moduledoc """
Representation of Stellar `UInt32` type.
"""
@behaviour XDR.Declaration
defstruct [:datum]
@type t :: %__MODULE__{datum: non_neg_integer()}
@spec new(uint32 :: non_neg_integer()) :: t()
def new(uint32), do: %__MODULE__{datum: uint32}
@impl true
... | 23.02381 | 75 | 0.65667 |
2d2f9bb3b0fc0fbcaa963169a09b3b267a96e512 | 1,483 | exs | Elixir | token_registry/config/config.exs | canuckasaurus/archeio-solanaszn | 55dc8712cf0409d110ae342cbbc620745668a4df | [
"MIT"
] | 1 | 2021-12-18T16:17:19.000Z | 2021-12-18T16:17:19.000Z | token_registry/config/config.exs | canuckasaurus/archeio-solanaszn | 55dc8712cf0409d110ae342cbbc620745668a4df | [
"MIT"
] | null | null | null | token_registry/config/config.exs | canuckasaurus/archeio-solanaszn | 55dc8712cf0409d110ae342cbbc620745668a4df | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
#
# This configuration file is loaded before any dependency and
# is restricted to this project.
# General application configuration
use Mix.Config
require Logger
config :token_registry,
ecto_re... | 30.895833 | 108 | 0.709373 |
2d30026e0c1d55e09c43225749de6373e6c35881 | 369 | ex | Elixir | lib/mfpb/config.ex | rbino/mfpb | 07ab703f4d8480e3662406115d3258a412cccbcb | [
"Apache-2.0"
] | 22 | 2019-10-13T17:03:09.000Z | 2021-11-09T11:05:44.000Z | lib/mfpb/config.ex | rbino/mfpb | 07ab703f4d8480e3662406115d3258a412cccbcb | [
"Apache-2.0"
] | 11 | 2021-03-09T19:59:47.000Z | 2022-02-16T23:34:25.000Z | lib/mfpb/config.ex | rbino/mfpb | 07ab703f4d8480e3662406115d3258a412cccbcb | [
"Apache-2.0"
] | 5 | 2019-10-17T16:40:26.000Z | 2022-03-08T01:45:35.000Z | defmodule MFPB.Config do
def bin_inactivity_timeout_ms do
Application.get_env(:mfpb, :bin_inactivity_timeout_ms, :infinity)
end
def bin_max_requests do
# nil is ok as default since any integer is <= nil
Application.get_env(:mfpb, :bin_max_requests)
end
def bin_subdomains? do
Application.get_... | 24.6 | 69 | 0.750678 |
2d3004532165d22f2330002588c50586cfa56a1c | 1,541 | ex | Elixir | clients/slides/lib/google_api/slides/v1/model/color_scheme.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/slides/lib/google_api/slides/v1/model/color_scheme.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/slides/lib/google_api/slides/v1/model/color_scheme.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 32.787234 | 154 | 0.741077 |
2d3007b4c5a0e544cee286959328b2d33e2419d0 | 1,022 | ex | Elixir | test/helpers/process_helper.ex | Cantido/commanded | e8058c4381e16547e6960eaf9f38619c6a43b18f | [
"MIT"
] | 1,220 | 2017-10-31T10:56:40.000Z | 2022-03-31T17:40:19.000Z | test/helpers/process_helper.ex | Cantido/commanded | e8058c4381e16547e6960eaf9f38619c6a43b18f | [
"MIT"
] | 294 | 2017-11-03T10:33:41.000Z | 2022-03-24T08:36:42.000Z | test/helpers/process_helper.ex | Cantido/commanded | e8058c4381e16547e6960eaf9f38619c6a43b18f | [
"MIT"
] | 208 | 2017-11-03T10:56:47.000Z | 2022-03-14T05:49:38.000Z | defmodule Commanded.Helpers.ProcessHelper do
@moduledoc false
import ExUnit.Assertions
alias Commanded.Registration
alias Commanded.Helpers.Wait
@doc """
Stop the given process with a non-normal exit reason.
"""
def shutdown(pid, reason \\ :shutdown)
def shutdown(pid, reason) when is_pid(pid) do
... | 23.767442 | 74 | 0.695695 |
2d301093170a7fe56f3b10ac23b1e5c3af6fbe44 | 971 | ex | Elixir | lib/searchex/command/cmd_helpers.ex | andyl/searchex | aae186cddd14f0415b116fca198b8cc95eb2c379 | [
"MIT"
] | 91 | 2016-11-22T23:52:01.000Z | 2022-02-12T13:06:24.000Z | lib/searchex/command/cmd_helpers.ex | andyl/searchex | aae186cddd14f0415b116fca198b8cc95eb2c379 | [
"MIT"
] | 11 | 2016-11-23T17:37:57.000Z | 2018-03-07T13:40:48.000Z | lib/searchex/command/cmd_helpers.ex | andyl/searchex | aae186cddd14f0415b116fca198b8cc95eb2c379 | [
"MIT"
] | 9 | 2016-11-24T01:44:40.000Z | 2020-05-15T04:16:19.000Z | defmodule Searchex.Command.CmdHelpers do
@moduledoc false
def repo_dir(frame) do
repo_name = frame.cfg_name |> String.split("/") |> Enum.at(0)
"#{Searchex.base_dir}" <> "/" <> repo_name
end
def cache_dir(frame) do
Path.expand frame.params.cache_dir, repo_dir(frame)
end
def cache_file(frame) ... | 26.243243 | 96 | 0.685891 |
2d301d4612ff57e483a8abe0450945d801270c84 | 59 | ex | Elixir | lib/kepler_web/views/star_view.ex | SAAF-Alex-and-Ashton-Forces/kepler | 06cea361e5972b5ebe4e19f70793d921aca25664 | [
"MIT"
] | null | null | null | lib/kepler_web/views/star_view.ex | SAAF-Alex-and-Ashton-Forces/kepler | 06cea361e5972b5ebe4e19f70793d921aca25664 | [
"MIT"
] | null | null | null | lib/kepler_web/views/star_view.ex | SAAF-Alex-and-Ashton-Forces/kepler | 06cea361e5972b5ebe4e19f70793d921aca25664 | [
"MIT"
] | null | null | null | defmodule KeplerWeb.StarView do
use KeplerWeb, :view
end
| 14.75 | 31 | 0.79661 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.