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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9ec3d4eddbdcb346de639f1897db00ddcbdad943 | 878 | exs | Elixir | test/test_helper.exs | BKStephens/phoenix_liveview_stock_tracker | 7cbf5e546f797a33d3e47b91fd75768bc18d8a5c | [
"MIT"
] | null | null | null | test/test_helper.exs | BKStephens/phoenix_liveview_stock_tracker | 7cbf5e546f797a33d3e47b91fd75768bc18d8a5c | [
"MIT"
] | null | null | null | test/test_helper.exs | BKStephens/phoenix_liveview_stock_tracker | 7cbf5e546f797a33d3e47b91fd75768bc18d8a5c | [
"MIT"
] | null | null | null | ExUnit.start()
Mox.defmock(PhoenixLiveviewStockTracker.AlphaVantageApiClientMock,
for: PhoenixLiveviewStockTracker.AlphaVantageApiClientBehaviour
)
Application.put_env(
:phoenix_liveview_stock_tracker,
:alpha_vantage_api_client,
PhoenixLiveviewStockTracker.AlphaVantageApiClientMock
)
Mox.defmock(HttpMock, fo... | 24.388889 | 82 | 0.750569 |
9ec3f3a4d427880e3999f17e7451e6eabd74254f | 995 | exs | Elixir | ds_backend/config/config.exs | ohr486/d-screen | 5a70c4f599e63c07bcefc7867bbd4d98d7cc4be7 | [
"MIT"
] | null | null | null | ds_backend/config/config.exs | ohr486/d-screen | 5a70c4f599e63c07bcefc7867bbd4d98d7cc4be7 | [
"MIT"
] | null | null | null | ds_backend/config/config.exs | ohr486/d-screen | 5a70c4f599e63c07bcefc7867bbd4d98d7cc4be7 | [
"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
# Configures the endpoint
config :ds_backend, Ds... | 34.310345 | 87 | 0.773869 |
9ec45d128877ac8dd7f9fb9a6704d5d689362efc | 152 | exs | Elixir | config/prod.exs | jimydotorg/ex_binance | fe16a12e5c3da9ae6e551bcb8daa1257061079cb | [
"MIT"
] | 1 | 2018-01-09T00:05:34.000Z | 2018-01-09T00:05:34.000Z | config/prod.exs | jimydotorg/ex_binance | fe16a12e5c3da9ae6e551bcb8daa1257061079cb | [
"MIT"
] | null | null | null | config/prod.exs | jimydotorg/ex_binance | fe16a12e5c3da9ae6e551bcb8daa1257061079cb | [
"MIT"
] | null | null | null | use Mix.Config
config :ex_binance, api_key: System.get_env("BINANCE_API_KEY"),
api_secret: System.get_env("BINANCE_API_SECRET")
| 30.4 | 68 | 0.684211 |
9ec491e2b9856357493f00fec986f130c5c2bbad | 5,855 | ex | Elixir | lib/ace/http/service.ex | CharlesOkwuagwu/Ace | e39bfbf5a99dde225d3adcf680885e0bd71a86a4 | [
"MIT"
] | null | null | null | lib/ace/http/service.ex | CharlesOkwuagwu/Ace | e39bfbf5a99dde225d3adcf680885e0bd71a86a4 | [
"MIT"
] | null | null | null | lib/ace/http/service.ex | CharlesOkwuagwu/Ace | e39bfbf5a99dde225d3adcf680885e0bd71a86a4 | [
"MIT"
] | null | null | null | defmodule Ace.HTTP.Service do
@moduledoc """
Run a `Raxx.Server` application for HTTP/1.x and HTTP/2 clients
**NOTE:** Ace services are served over a secure transport layer TLS(SSL),
therefore `:cert` + `:key` or `:certfile` + `:keyfile` are required options.
Starting a service will start and manage a cohor... | 31.820652 | 207 | 0.640478 |
9ec4c43eb7daae136ddee5469445a13e516afb62 | 794 | exs | Elixir | test/rocketpay_web/controllers/users_controller_test.exs | leandroslc/rocketpay | 92e807998ca48e842a30f10be681481271905691 | [
"MIT"
] | null | null | null | test/rocketpay_web/controllers/users_controller_test.exs | leandroslc/rocketpay | 92e807998ca48e842a30f10be681481271905691 | [
"MIT"
] | null | null | null | test/rocketpay_web/controllers/users_controller_test.exs | leandroslc/rocketpay | 92e807998ca48e842a30f10be681481271905691 | [
"MIT"
] | null | null | null | defmodule RocketpayWeb.UsersControllerTest do
use RocketpayWeb.ConnCase, async: true
describe "create/2" do
test "should create user", %{conn: conn} do
params = %{
"name" => "Test User",
"age" => "20",
"email" => "test-user@example.com",
"password" => "Pass$123",
"... | 23.352941 | 57 | 0.469773 |
9ec4cad724eb6f43fd828b94b6ff952184c74d32 | 1,589 | ex | Elixir | lib/phelmx_web.ex | ilkka/phoenix-elm-graphql-starter | fd88adf0e471eb97feb98a32026c2a1581e55490 | [
"Apache-2.0"
] | null | null | null | lib/phelmx_web.ex | ilkka/phoenix-elm-graphql-starter | fd88adf0e471eb97feb98a32026c2a1581e55490 | [
"Apache-2.0"
] | null | null | null | lib/phelmx_web.ex | ilkka/phoenix-elm-graphql-starter | fd88adf0e471eb97feb98a32026c2a1581e55490 | [
"Apache-2.0"
] | null | null | null | defmodule PhelmxWeb do
@moduledoc """
The entrypoint for defining your web interface, such
as controllers, views, channels and so on.
This can be used in your application as:
use PhelmxWeb, :controller
use PhelmxWeb, :view
The definitions below will be executed for every view,
controller, etc... | 23.367647 | 69 | 0.684078 |
9ec4d88e088915c9cd865087bdd1d4d842ae4e93 | 1,355 | ex | Elixir | lib/kronky/validation_message.ex | mirego/kronky | cfc786bd87c1968d4186407fb8683f2bee3457c2 | [
"MIT"
] | 1 | 2019-03-21T12:57:00.000Z | 2019-03-21T12:57:00.000Z | lib/kronky/validation_message.ex | mirego/kronky | cfc786bd87c1968d4186407fb8683f2bee3457c2 | [
"MIT"
] | 1 | 2018-09-19T10:58:11.000Z | 2018-09-19T10:58:11.000Z | lib/kronky/validation_message.ex | mirego/kronky | cfc786bd87c1968d4186407fb8683f2bee3457c2 | [
"MIT"
] | 8 | 2018-02-18T10:41:04.000Z | 2019-08-19T13:28:45.000Z | defmodule Kronky.ValidationMessage do
@moduledoc """
Stores validation message information.
## Fields
### :field
The input field that the error applies to. The field can be used to
identify which field the error message should be displayed next to in the
presentation layer.
If there are multiple erro... | 31.511628 | 103 | 0.737269 |
9ec4dba445b89732fee0913cfd0ed952a8232e2b | 8,137 | ex | Elixir | lib/aws/signature.ex | kianmeng/aws-elixir | 07017efc4cd9f5c245f7851736204ac91e15ec18 | [
"Apache-2.0"
] | null | null | null | lib/aws/signature.ex | kianmeng/aws-elixir | 07017efc4cd9f5c245f7851736204ac91e15ec18 | [
"Apache-2.0"
] | null | null | null | lib/aws/signature.ex | kianmeng/aws-elixir | 07017efc4cd9f5c245f7851736204ac91e15ec18 | [
"Apache-2.0"
] | null | null | null | defmodule AWS.Signature do
@moduledoc false
# Implements the Signature algorithm v4.
# See: https://docs.aws.amazon.com/general/latest/gr/signature-version-4.html
alias AWS.Client
alias AWS.Util
# https://docs.aws.amazon.com/general/latest/gr/sigv4_changes.html
@default_region_for_global_services "us-e... | 33.485597 | 146 | 0.690304 |
9ec528539085c976f612a72a58792255c0ffe09c | 6,339 | ex | Elixir | apps/site/lib/site_web/views/mode_view.ex | noisecapella/dotcom | d5ef869412102d2230fac3dcc216f01a29726227 | [
"MIT"
] | 42 | 2019-05-29T16:05:30.000Z | 2021-08-09T16:03:37.000Z | apps/site/lib/site_web/views/mode_view.ex | noisecapella/dotcom | d5ef869412102d2230fac3dcc216f01a29726227 | [
"MIT"
] | 872 | 2019-05-29T17:55:50.000Z | 2022-03-30T09:28:43.000Z | apps/site/lib/site_web/views/mode_view.ex | noisecapella/dotcom | d5ef869412102d2230fac3dcc216f01a29726227 | [
"MIT"
] | 12 | 2019-07-01T18:33:21.000Z | 2022-03-10T02:13:57.000Z | defmodule SiteWeb.ModeView do
@moduledoc false
use SiteWeb, :view
alias Alerts.Match
alias Plug.Conn
alias Routes.Route
alias Site.MapHelpers
alias SiteWeb.PartialView
alias SiteWeb.PartialView.SvgIconWithCircle
def get_route_group(:commuter_rail = route_type, route_groups) do
# Note that we do ... | 28.426009 | 97 | 0.659252 |
9ec52b20bac14f25d98468184cb16882b26e2b3e | 1,301 | ex | Elixir | lib/ex_chat_web/channels/user_socket.ex | embik/ex_chat | 08d83fe2076a96f9dad647fe509daec301b4965a | [
"Apache-2.0"
] | 1 | 2017-12-28T12:49:19.000Z | 2017-12-28T12:49:19.000Z | lib/ex_chat_web/channels/user_socket.ex | embik/ex_chat | 08d83fe2076a96f9dad647fe509daec301b4965a | [
"Apache-2.0"
] | null | null | null | lib/ex_chat_web/channels/user_socket.ex | embik/ex_chat | 08d83fe2076a96f9dad647fe509daec301b4965a | [
"Apache-2.0"
] | null | null | null | defmodule ExChatWeb.UserSocket do
use Phoenix.Socket
use Guardian.Phoenix.Socket
## Channels
channel "room:*", ExChatWeb.RoomChannel
## Transports
transport :websocket, Phoenix.Transports.WebSocket
# transport :longpoll, Phoenix.Transports.LongPoll
# Socket params are passed from the client and can
... | 30.97619 | 83 | 0.700231 |
9ec55fb1bcc33a2c2b5a01d24df8e5793ee9c00d | 302 | exs | Elixir | apps/ewallet_config/config/test.exs | jimpeebles/ewallet | ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405 | [
"Apache-2.0"
] | null | null | null | apps/ewallet_config/config/test.exs | jimpeebles/ewallet | ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405 | [
"Apache-2.0"
] | null | null | null | apps/ewallet_config/config/test.exs | jimpeebles/ewallet | ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405 | [
"Apache-2.0"
] | null | null | null | use Mix.Config
config :ewallet_config, EWalletConfig.Repo,
adapter: Ecto.Adapters.Postgres,
pool: Ecto.Adapters.SQL.Sandbox,
url: {:system, "DATABASE_URL", "postgres://localhost/ewallet_test"},
migration_timestamps: [type: :naive_datetime_usec],
queue_target: 1_000,
queue_interval: 5_000
| 30.2 | 70 | 0.764901 |
9ec56a4a3ef6b1c88af6051159433436f1dac11f | 1,323 | exs | Elixir | config/prod.secret.exs | gratraw/home_appliances_store | 36b5274294ef3e0124740c2f992695860884976d | [
"MIT"
] | null | null | null | config/prod.secret.exs | gratraw/home_appliances_store | 36b5274294ef3e0124740c2f992695860884976d | [
"MIT"
] | null | null | null | config/prod.secret.exs | gratraw/home_appliances_store | 36b5274294ef3e0124740c2f992695860884976d | [
"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.5 | 82 | 0.73545 |
9ec5739a72255fd64a03f84129e2c6d5263bbd6a | 2,325 | ex | Elixir | lib/epi_contacts/commcare/api.ex | RatioPBC/epi-contacts | 6c43eea52cbfe2097f48b02e3d0c8fce3b46f1ee | [
"Apache-2.0"
] | null | null | null | lib/epi_contacts/commcare/api.ex | RatioPBC/epi-contacts | 6c43eea52cbfe2097f48b02e3d0c8fce3b46f1ee | [
"Apache-2.0"
] | 13 | 2021-06-29T04:35:41.000Z | 2022-02-09T04:25:39.000Z | lib/epi_contacts/commcare/api.ex | RatioPBC/epi-contacts | 6c43eea52cbfe2097f48b02e3d0c8fce3b46f1ee | [
"Apache-2.0"
] | null | null | null | defmodule EpiContacts.Commcare.Api do
@moduledoc """
This module provides an interface to the Commcare API.
"""
require Logger
@timeout 20_000
@recv_timeout 45_000
def get_case(case_id, domain) do
commcare_api_case_url(domain, case_id)
|> get()
|> parse_response()
end
def post_case(xml... | 28.703704 | 115 | 0.674409 |
9ec578e2eb9dd9726d42334b51fb1bfe12e33ff1 | 558 | exs | Elixir | test/views/error_view_test.exs | slurmulon/thing | 21791e7a9579d41de28a0a6131218aed3679d033 | [
"Apache-2.0"
] | null | null | null | test/views/error_view_test.exs | slurmulon/thing | 21791e7a9579d41de28a0a6131218aed3679d033 | [
"Apache-2.0"
] | null | null | null | test/views/error_view_test.exs | slurmulon/thing | 21791e7a9579d41de28a0a6131218aed3679d033 | [
"Apache-2.0"
] | null | null | null | defmodule Thing.ErrorViewTest do
use Thing.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(Thing.ErrorView, "404.html", []) ==
"Page not found"
end
test "render 500.html" do
as... | 25.363636 | 66 | 0.670251 |
9ec5848a8b87e76f237b5f88b7d3ab4cbd6070ad | 2,251 | exs | Elixir | apps/ewallet_db/test/ewallet_db/blockchain_wallet_test.exs | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 322 | 2018-02-28T07:38:44.000Z | 2020-05-27T23:09:55.000Z | apps/ewallet_db/test/ewallet_db/blockchain_wallet_test.exs | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 643 | 2018-02-28T12:05:20.000Z | 2020-05-22T08:34:38.000Z | apps/ewallet_db/test/ewallet_db/blockchain_wallet_test.exs | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 63 | 2018-02-28T10:57:06.000Z | 2020-05-27T23:10:38.000Z | # Copyright 2018-2019 OmiseGO Pte Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 33.102941 | 74 | 0.733452 |
9ec5887b0733eac58319d4edbc7d324fc2c2a293 | 256 | ex | Elixir | test/support/mocks.ex | f0lio/edgedb-elixir | b285bd8037b0b951aabfa1d1733889880f8bfd66 | [
"MIT"
] | 30 | 2021-05-19T08:54:44.000Z | 2022-03-11T22:52:25.000Z | test/support/mocks.ex | f0lio/edgedb-elixir | b285bd8037b0b951aabfa1d1733889880f8bfd66 | [
"MIT"
] | 3 | 2021-11-17T21:26:01.000Z | 2022-03-12T09:49:25.000Z | test/support/mocks.ex | f0lio/edgedb-elixir | b285bd8037b0b951aabfa1d1733889880f8bfd66 | [
"MIT"
] | 3 | 2021-08-29T14:55:41.000Z | 2022-03-12T01:30:35.000Z | Mox.defmock(Tests.Support.Mocks.FileMock, for: Tests.Support.Mocks.Behaviours.File)
Mox.defmock(Tests.Support.Mocks.SystemMock, for: Tests.Support.Mocks.Behaviours.System)
Mox.defmock(Tests.Support.Mocks.PathMock, for: Tests.Support.Mocks.Behaviours.Path)
| 64 | 87 | 0.824219 |
9ec595fb9075c17ba142f2c4dc5cf67f8c9a0881 | 6,715 | ex | Elixir | lib/cloudinary/transformation/layer.ex | h-ikeda/cloudinary-elixir | 5e70aedb6d1e51839f1e21c49b40293036b99efd | [
"MIT"
] | 1 | 2021-05-23T09:17:44.000Z | 2021-05-23T09:17:44.000Z | lib/cloudinary/transformation/layer.ex | h-ikeda/cloudinary-elixir | 5e70aedb6d1e51839f1e21c49b40293036b99efd | [
"MIT"
] | 44 | 2020-05-15T03:36:36.000Z | 2022-03-23T21:39:11.000Z | lib/cloudinary/transformation/layer.ex | h-ikeda/cloudinary-elixir | 5e70aedb6d1e51839f1e21c49b40293036b99efd | [
"MIT"
] | null | null | null | defmodule Cloudinary.Transformation.Layer do
@moduledoc """
The overlay/underlay transformations.
"""
defguardp is_font_size(font_size) when is_integer(font_size) and font_size >= 0
@typedoc """
Any type of overlay/underlay options.
The `t:String.t/0` is treated as a public ID of the overlay image.
##... | 39.733728 | 172 | 0.651229 |
9ec5a26f456d896676e2f6763cfa8d26db722f96 | 411 | ex | Elixir | day_05/lib/day05.ex | simon-wolf/advent-of-code-2019 | 571d30f156a2beeeb49a52a2f0223fff5051e7b3 | [
"MIT"
] | null | null | null | day_05/lib/day05.ex | simon-wolf/advent-of-code-2019 | 571d30f156a2beeeb49a52a2f0223fff5051e7b3 | [
"MIT"
] | null | null | null | day_05/lib/day05.ex | simon-wolf/advent-of-code-2019 | 571d30f156a2beeeb49a52a2f0223fff5051e7b3 | [
"MIT"
] | null | null | null | defmodule Day05 do
@moduledoc """
Documentation for Day05.
"""
alias Day05.Coder
def air_conditioning_test() do
input_value = 1
"./intcode.txt"
|> Aoc.get_file_list_values()
|> Coder.execute_program(input_value)
end
def radiator_controller_test() do
input_value = 5
"./intcode.... | 17.125 | 41 | 0.673966 |
9ec5a71632babd2bd6d4cae218afcdb7276a4144 | 3,741 | ex | Elixir | lib/yuki_helper/donwload.ex | penqen/yuki_helper | 9952dd4711fc2dc98d8cdc41bd758b9b271ea036 | [
"MIT"
] | null | null | null | lib/yuki_helper/donwload.ex | penqen/yuki_helper | 9952dd4711fc2dc98d8cdc41bd758b9b271ea036 | [
"MIT"
] | 1 | 2021-05-13T16:28:58.000Z | 2021-05-13T16:28:58.000Z | lib/yuki_helper/donwload.ex | penqen/yuki_helper | 9952dd4711fc2dc98d8cdc41bd758b9b271ea036 | [
"MIT"
] | null | null | null | defmodule YukiHelper.Download do
@moduledoc """
Provides a module related to downloading teastcases.
"""
alias YukiHelper.{Config, Problem, Api.Yukicoder}
alias YukiHelper.Exceptions.DownloadError
@typedoc """
Two types of testcase file, input file and output file.
"""
@type filetype() :: :in | :o... | 28.12782 | 117 | 0.565357 |
9ec5a872df7bfcf0f716cf54b831aa72b74ca954 | 2,125 | ex | Elixir | clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1_explicit_content_annotation.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | null | null | null | clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1_explicit_content_annotation.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | null | null | null | clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1_explicit_content_annotation.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 34.274194 | 167 | 0.760471 |
9ec5ed1f0a44ffb51454df649ae563ffcef31996 | 781 | ex | Elixir | lib/tpuserve/driver.ex | seanmor5/tpuserve | 0a0a5fb74457b3893d87cb52bf98a660f8d1190d | [
"Apache-2.0"
] | null | null | null | lib/tpuserve/driver.ex | seanmor5/tpuserve | 0a0a5fb74457b3893d87cb52bf98a660f8d1190d | [
"Apache-2.0"
] | null | null | null | lib/tpuserve/driver.ex | seanmor5/tpuserve | 0a0a5fb74457b3893d87cb52bf98a660f8d1190d | [
"Apache-2.0"
] | null | null | null | defmodule TPUServe.Driver do
require Logger
use GenServer
alias __MODULE__, as: Driver
@name __MODULE__
defstruct [:ref]
# TODO: Is driver thread safe?
def start_link(_) do
Logger.info("Starting TPUServe Driver")
{:ok, driver_ref} = TPUServe.NIF.init_driver()
driver = %Driver{ref: driver_r... | 22.314286 | 96 | 0.681178 |
9ec5f2a82825d2281e054183c28fe2e6bc5e3ff9 | 584 | ex | Elixir | apps/neoscan_cache/lib/neoscan_cache/ets_process.ex | vincentgeneste/neo-scan | 4a654575331eeb3eb12d4fd61696a7bd6dbca3ce | [
"MIT"
] | 1 | 2019-12-16T17:21:21.000Z | 2019-12-16T17:21:21.000Z | apps/neoscan_cache/lib/neoscan_cache/ets_process.ex | vincentgeneste/neo-scan | 4a654575331eeb3eb12d4fd61696a7bd6dbca3ce | [
"MIT"
] | null | null | null | apps/neoscan_cache/lib/neoscan_cache/ets_process.ex | vincentgeneste/neo-scan | 4a654575331eeb3eb12d4fd61696a7bd6dbca3ce | [
"MIT"
] | null | null | null | defmodule NeoscanCache.EtsProcess do
use GenServer
# Callbacks
def start_link do
GenServer.start_link(__MODULE__, :ok, name: __MODULE__)
end
@impl true
def init(:ok) do
{:ok, %{}}
end
def create_table(name) do
GenServer.call(__MODULE__, {:create, name})
end
@impl true
def handle_c... | 17.176471 | 59 | 0.606164 |
9ec60c3e6f747ad2e77c9454e61dd5d337c8196a | 1,615 | ex | Elixir | lib/cforum/jobs/user_cleanup_job.ex | jrieger/cforum_ex | 61f6ce84708cb55bd0feedf69853dae64146a7a0 | [
"MIT"
] | 16 | 2019-04-04T06:33:33.000Z | 2021-08-16T19:34:31.000Z | lib/cforum/jobs/user_cleanup_job.ex | jrieger/cforum_ex | 61f6ce84708cb55bd0feedf69853dae64146a7a0 | [
"MIT"
] | 294 | 2019-02-10T11:10:27.000Z | 2022-03-30T04:52:53.000Z | lib/cforum/jobs/user_cleanup_job.ex | jrieger/cforum_ex | 61f6ce84708cb55bd0feedf69853dae64146a7a0 | [
"MIT"
] | 10 | 2019-02-10T10:39:24.000Z | 2021-07-06T11:46:05.000Z | defmodule Cforum.Jobs.UserCleanupJob do
use Oban.Worker, queue: :background, max_attempts: 5
import Ecto.Query, warn: false
require Logger
alias Cforum.Repo
alias Cforum.System
alias Cforum.Users.User
@impl Oban.Worker
def perform(_) do
cleanup_unconfirmed_users()
cleanup_users_wo_posts()
... | 25.634921 | 112 | 0.637152 |
9ec63bdd2a580642a342d06556f1e32914ef1430 | 1,706 | ex | Elixir | apps/dockup/lib/dockup/backends/compose/deploy_job.ex | rudydydy/dockup | 0d05d1ef65cc5523800bd852178361521cd3e7d8 | [
"MIT"
] | null | null | null | apps/dockup/lib/dockup/backends/compose/deploy_job.ex | rudydydy/dockup | 0d05d1ef65cc5523800bd852178361521cd3e7d8 | [
"MIT"
] | null | null | null | apps/dockup/lib/dockup/backends/compose/deploy_job.ex | rudydydy/dockup | 0d05d1ef65cc5523800bd852178361521cd3e7d8 | [
"MIT"
] | null | null | null | defmodule Dockup.Backends.Compose.DeployJob do
require Logger
alias Dockup.{
DefaultCallback,
Project,
Backends.Compose.Container,
Backends.Compose.DockerComposeConfig
}
def spawn_process(%{id: id, git_url: repository, branch: branch}, callback) do
spawn(fn -> perform(id, repository, branc... | 32.188679 | 80 | 0.732708 |
9ec647af0ec15261f78b43fae890d2e9a1bcc99e | 1,248 | ex | Elixir | test/support/conn_case.ex | Harmful-Alchemist/FunRetro | 6b53c16adb2c233e5338799732a5a5c2fe10acaf | [
"MIT"
] | null | null | null | test/support/conn_case.ex | Harmful-Alchemist/FunRetro | 6b53c16adb2c233e5338799732a5a5c2fe10acaf | [
"MIT"
] | null | null | null | test/support/conn_case.ex | Harmful-Alchemist/FunRetro | 6b53c16adb2c233e5338799732a5a5c2fe10acaf | [
"MIT"
] | null | null | null | defmodule FunRetroWeb.ConnCase do
@moduledoc """
This module defines the test case to be used by
tests that require setting up a connection.
Such tests rely on `Phoenix.ConnTest` and also
import other functionality to make it easier
to build common data structures and query the data layer.
Finally, if t... | 28.363636 | 70 | 0.725962 |
9ec65425a05ffde549e76153e9aecb235b893815 | 2,210 | ex | Elixir | project/grep/lib/grep/search.ex | MickeyOoh/Exercises | 3b34e7fdab4a09e0269d20c68531b4fb75bb7f16 | [
"MIT"
] | null | null | null | project/grep/lib/grep/search.ex | MickeyOoh/Exercises | 3b34e7fdab4a09e0269d20c68531b4fb75bb7f16 | [
"MIT"
] | 1 | 2018-06-19T18:59:41.000Z | 2018-06-19T18:59:41.000Z | project/grep/lib/grep/search.ex | MickeyOoh/Exercises | 3b34e7fdab4a09e0269d20c68531b4fb75bb7f16 | [
"MIT"
] | null | null | null | defmodule Grep.Search do
@moduledoc """
Documentation for Grep.
"""
@switch [help: :boolean, line_num: :boolean, file_name: :boolean,
case: :boolean, invert: :boolean, entire: :boolean]
@alias [n: :line_num,l: :file_name,i: :case,
v: :invert, x: :entire, h: :help]
def parse_args(ar... | 30.694444 | 74 | 0.561991 |
9ec6643a7a7a911dc5ce9b7b966eb111e69ec441 | 19,759 | ex | Elixir | lib/gnat.ex | mkaput/nats.ex | 5c1ac83087e64fc3021093f1f7a7d494f81ff903 | [
"MIT"
] | null | null | null | lib/gnat.ex | mkaput/nats.ex | 5c1ac83087e64fc3021093f1f7a7d494f81ff903 | [
"MIT"
] | null | null | null | lib/gnat.ex | mkaput/nats.ex | 5c1ac83087e64fc3021093f1f7a7d494f81ff903 | [
"MIT"
] | null | null | null | # State transitions:
# :waiting_for_message => receive PING, send PONG => :waiting_for_message
# :waiting_for_message => receive MSG... -> :waiting_for_message
defmodule Gnat do
use GenServer
require Logger
alias Gnat.{Command, Parsec}
@type t :: GenServer.server()
@type headers :: [{binary(), iodata()}]
... | 36.795158 | 140 | 0.665115 |
9ec6692cd8123ff527829af1bfcb621ff86c253c | 2,739 | ex | Elixir | lib/web/controllers/admin/shop_item_controller.ex | stevegrossi/ex_venture | e02d5a63fdb882d92cfb4af3e15f7b48ad7054aa | [
"MIT"
] | 2 | 2019-05-14T11:36:44.000Z | 2020-07-01T08:54:04.000Z | lib/web/controllers/admin/shop_item_controller.ex | nickwalton/ex_venture | d8ff1b0181db03f9ddcb7610ae7ab533feecbfbb | [
"MIT"
] | null | null | null | lib/web/controllers/admin/shop_item_controller.ex | nickwalton/ex_venture | d8ff1b0181db03f9ddcb7610ae7ab533feecbfbb | [
"MIT"
] | 1 | 2021-01-29T14:12:40.000Z | 2021-01-29T14:12:40.000Z | defmodule Web.Admin.ShopItemController do
use Web.AdminController
alias Web.Item
alias Web.Room
alias Web.Shop
def new(conn, %{"shop_id" => shop_id}) do
shop = Shop.get(shop_id)
room = Room.get(shop.room_id)
changeset = Shop.new_item(shop)
conn
|> assign(:items, Item.all())
|> assig... | 27.666667 | 99 | 0.571742 |
9ec66fbba594645dbdc2d659895e16eb5d4f3d2f | 1,102 | exs | Elixir | day_23/solution.exs | polarfoxgirl/advent-of-code-2020 | 549794d5aefca5d413b97a29244b228b470383bb | [
"Unlicense"
] | null | null | null | day_23/solution.exs | polarfoxgirl/advent-of-code-2020 | 549794d5aefca5d413b97a29244b228b470383bb | [
"Unlicense"
] | null | null | null | day_23/solution.exs | polarfoxgirl/advent-of-code-2020 | 549794d5aefca5d413b97a29244b228b470383bb | [
"Unlicense"
] | null | null | null | {:ok, input} = File.read("test_input")
defmodule CrabCups do
defp find_insert_after_candidates(current, max_value) do
cond do
current > 4 -> (current-1)..(current-4)
current > 1 ->
Enum.concat((current - 1)..1, max_value..(max_value - 4 + current))
current == 1 -> max_value..(max_value ... | 27.55 | 75 | 0.611615 |
9ec68099c7ed41ead1a7e64756a5c1b8b8f874fe | 65 | ex | Elixir | lib/servantex_web/views/page_view.ex | alisinabh/servantex | 03bd4b7c1c47fc926a37b52670394f827c2d97ad | [
"Apache-2.0"
] | null | null | null | lib/servantex_web/views/page_view.ex | alisinabh/servantex | 03bd4b7c1c47fc926a37b52670394f827c2d97ad | [
"Apache-2.0"
] | null | null | null | lib/servantex_web/views/page_view.ex | alisinabh/servantex | 03bd4b7c1c47fc926a37b52670394f827c2d97ad | [
"Apache-2.0"
] | null | null | null | defmodule ServantexWeb.PageView do
use ServantexWeb, :view
end
| 16.25 | 34 | 0.815385 |
9ec6b114c0ff118eb5f6426b7ba7d4b43d3681e0 | 299 | ex | Elixir | lib/quebo.ex | mlikoga/code-beer-6 | 249bb3c46b8d09461f3e7c28d5a88a9314c53658 | [
"MIT"
] | null | null | null | lib/quebo.ex | mlikoga/code-beer-6 | 249bb3c46b8d09461f3e7c28d5a88a9314c53658 | [
"MIT"
] | null | null | null | lib/quebo.ex | mlikoga/code-beer-6 | 249bb3c46b8d09461f3e7c28d5a88a9314c53658 | [
"MIT"
] | null | null | null | defmodule Quebo do
def shorten(url) do
if !url do
raise "errrrrrouu!"
end
"que.bo/" <> Base.encode64(url)
end
def decode(short_url) do
{ :ok, response } = short_url
|> String.split("que.bo/")
|> List.last()
|> Base.decode64()
response
end
end
| 14.95 | 35 | 0.561873 |
9ec6cd356ab5eb0939485545f5cd7fe70ab787f4 | 2,935 | exs | Elixir | test/integration/crontab_test.exs | wtfleming/oban | 1ffc4d1f25bb5dfb737b9e19e54ab0324e189ea5 | [
"Apache-2.0"
] | null | null | null | test/integration/crontab_test.exs | wtfleming/oban | 1ffc4d1f25bb5dfb737b9e19e54ab0324e189ea5 | [
"Apache-2.0"
] | null | null | null | test/integration/crontab_test.exs | wtfleming/oban | 1ffc4d1f25bb5dfb737b9e19e54ab0324e189ea5 | [
"Apache-2.0"
] | null | null | null | defmodule Oban.Integration.CrontabTest do
use Oban.Case
import Ecto.Query, only: [select: 2]
@moduletag :integration
test "cron jobs are enqueued on startup" do
oban_opts = [
repo: Repo,
queues: [default: 5],
crontab: [
{"* * * * *", Worker, args: worker_args(1)},
{"59 2... | 25.745614 | 87 | 0.590801 |
9ec7165fb201d6c94509cf8a19c33dcbcf51f520 | 629 | exs | Elixir | test/chess_app/web/views/error_view_test.exs | leobessa/exchess | 289819d183f3001dddf56810c36298fa669c3a06 | [
"MIT"
] | 3 | 2017-06-02T20:47:07.000Z | 2018-05-25T11:17:12.000Z | test/chess_app/web/views/error_view_test.exs | leobessa/exchess | 289819d183f3001dddf56810c36298fa669c3a06 | [
"MIT"
] | null | null | null | test/chess_app/web/views/error_view_test.exs | leobessa/exchess | 289819d183f3001dddf56810c36298fa669c3a06 | [
"MIT"
] | null | null | null | defmodule ChessApp.Web.ErrorViewTest do
use ChessApp.Web.ConnCase, async: true
# Bring render/3 and render_to_string/3 for testing custom views
import Phoenix.View
test "renders 404.json" do
assert render(ChessApp.Web.ErrorView, "404.json", []) ==
%{errors: %{detail: "Page not found"}}
end
... | 28.590909 | 66 | 0.651828 |
9ec71a6c4dff3972512e07d74e020041b8bbe9f1 | 20,605 | ex | Elixir | lib/elixir/lib/calendar/time.ex | ReefTrip/elixir | 43a4dca94ab605a0a5795d43e43e5671f4a49071 | [
"Apache-2.0"
] | 1 | 2018-11-12T22:34:19.000Z | 2018-11-12T22:34:19.000Z | lib/elixir/lib/calendar/time.ex | ReefTrip/elixir | 43a4dca94ab605a0a5795d43e43e5671f4a49071 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/calendar/time.ex | ReefTrip/elixir | 43a4dca94ab605a0a5795d43e43e5671f4a49071 | [
"Apache-2.0"
] | null | null | null | defmodule Time do
@moduledoc """
A Time struct and functions.
The Time struct contains the fields hour, minute, second and microseconds.
New times can be built with the `new/4` function or using the
`~T` (see `Kernel.sigil_T/2`) sigil:
iex> ~T[23:00:07.001]
~T[23:00:07.001]
Both `new/4` and s... | 28.737796 | 102 | 0.621111 |
9ec7534a901d23b4f3aa98fd56348b6d3d495f20 | 3,413 | ex | Elixir | lib/dovetail/deliver.ex | thusfresh/dovetail | f4a498f0db572484b6fe70a3885ce4a89e3a3492 | [
"BSD-3-Clause"
] | 2 | 2016-02-07T22:36:34.000Z | 2016-02-09T13:33:01.000Z | lib/dovetail/deliver.ex | thusfresh/dovetail | f4a498f0db572484b6fe70a3885ce4a89e3a3492 | [
"BSD-3-Clause"
] | 1 | 2015-08-10T10:00:18.000Z | 2015-08-10T15:44:21.000Z | lib/dovetail/deliver.ex | thusfresh/dovetail | f4a498f0db572484b6fe70a3885ce4a89e3a3492 | [
"BSD-3-Clause"
] | null | null | null | defmodule Dovetail.Deliver do
@moduledoc """
Use dovecot's LDA [deliver] to deliver mail.
"""
alias Dovetail.Config
require Logger
require EEx
@timeout 5000
@default_exec_path Path.join(Config.dovecot_path(),
"libexec/dovecot/deliver")
@doc """
Deliver the email to... | 27.524194 | 76 | 0.622912 |
9ec7542ba5a8cdfe2cece85bd96b640c4068a5b8 | 52 | exs | Elixir | priv/repo/migrations/.formatter.exs | SquashConsulting/hopper | d68ac8b4749b2411959c2ba7be7cd9402a3e4b2b | [
"BSD-3-Clause"
] | 1 | 2019-12-22T16:00:11.000Z | 2019-12-22T16:00:11.000Z | priv/repo/migrations/.formatter.exs | SquashConsulting/hopper | d68ac8b4749b2411959c2ba7be7cd9402a3e4b2b | [
"BSD-3-Clause"
] | 2 | 2021-03-10T02:31:42.000Z | 2021-05-10T22:02:29.000Z | priv/repo/migrations/.formatter.exs | SquashConsulting/hopper | d68ac8b4749b2411959c2ba7be7cd9402a3e4b2b | [
"BSD-3-Clause"
] | null | null | null | [
inputs: ["*.exs"],
import_deps: [:ecto_aql]
]
| 10.4 | 26 | 0.538462 |
9ec75ad8e71beef21f1e42defa46527a4568c069 | 3,885 | ex | Elixir | lib/phoenix_live_view_collection/collection.ex | craft-ex/phoenix_live_view_collection | e0e05e6a5008dcd66d6121c54ec879b1d283c48a | [
"MIT"
] | 4 | 2021-05-04T13:14:32.000Z | 2021-09-04T12:16:44.000Z | lib/phoenix_live_view_collection/collection.ex | craft-ex/phoenix_live_view_collection | e0e05e6a5008dcd66d6121c54ec879b1d283c48a | [
"MIT"
] | null | null | null | lib/phoenix_live_view_collection/collection.ex | craft-ex/phoenix_live_view_collection | e0e05e6a5008dcd66d6121c54ec879b1d283c48a | [
"MIT"
] | null | null | null | defmodule LiveViewCollection.Collection do
@moduledoc "Source of truth for collection entries"
use GenServer
require Logger
@default_page_size 15
@spec start_link(keyword()) :: GenServer.on_start()
def start_link(opts \\ []) do
GenServer.start_link(__MODULE__, opts, name: __MODULE__)
end
@spec al... | 26.793103 | 115 | 0.630888 |
9ec786326a026954a43f1f03c04243a4eed8e027 | 202 | ex | Elixir | lib/elixibop.ex | derrickp/elixibop | e84cee0d0ce1b194a7de91aaefbb0b9ff3c4c9df | [
"MIT"
] | null | null | null | lib/elixibop.ex | derrickp/elixibop | e84cee0d0ce1b194a7de91aaefbb0b9ff3c4c9df | [
"MIT"
] | null | null | null | lib/elixibop.ex | derrickp/elixibop | e84cee0d0ce1b194a7de91aaefbb0b9ff3c4c9df | [
"MIT"
] | null | null | null | defmodule Elixibop do
@moduledoc """
Documentation for Elixibop.
"""
@doc """
Hello world.
## Examples
iex> Elixibop.hello()
:world
"""
def hello do
:world
end
end
| 10.631579 | 29 | 0.569307 |
9ec79e25768c6ef2c643dbee7c91218dffcdc38e | 270 | exs | Elixir | apps/snitch_api/config/test.exs | VeryBigThings/avia | 7ce5d5b244ae0dfddc30c09c17efe27f1718a4c9 | [
"MIT"
] | 1 | 2021-04-08T22:29:19.000Z | 2021-04-08T22:29:19.000Z | apps/snitch_api/config/test.exs | VeryBigThings/avia | 7ce5d5b244ae0dfddc30c09c17efe27f1718a4c9 | [
"MIT"
] | null | null | null | apps/snitch_api/config/test.exs | VeryBigThings/avia | 7ce5d5b244ae0dfddc30c09c17efe27f1718a4c9 | [
"MIT"
] | 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 :snitch_api, SnitchApiWeb.Endpoint,
http: [port: 4001],
server: false
# Print only warnings and errors during test
config :logger, level: :warn
| 24.545455 | 56 | 0.744444 |
9ec7afeec7266bcb413ff4a83c7df2c1952eecfd | 1,441 | exs | Elixir | mix.exs | ashton314/excoveralls | 58bcdd2d10af7c999cf1214cb79b4646ffde44aa | [
"MIT"
] | null | null | null | mix.exs | ashton314/excoveralls | 58bcdd2d10af7c999cf1214cb79b4646ffde44aa | [
"MIT"
] | null | null | null | mix.exs | ashton314/excoveralls | 58bcdd2d10af7c999cf1214cb79b4646ffde44aa | [
"MIT"
] | null | null | null | defmodule ExCoveralls.Mixfile do
use Mix.Project
def project do
[ app: :excoveralls,
version: "0.13.1",
elixir: "~> 1.3",
elixirc_paths: elixirc_paths(Mix.env()),
deps: deps(),
description: description(),
package: package(),
test_coverage: [tool: ExCoveralls],
pr... | 25.732143 | 94 | 0.591256 |
9ec7c781a48b946545c2822c9ffc5ed35fc38637 | 17,774 | ex | Elixir | lib/elixir/lib/task/supervisor.ex | samgaw/elixir | 92e8263102d95281a5aa7850b747636805f13fc9 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/task/supervisor.ex | samgaw/elixir | 92e8263102d95281a5aa7850b747636805f13fc9 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/task/supervisor.ex | samgaw/elixir | 92e8263102d95281a5aa7850b747636805f13fc9 | [
"Apache-2.0"
] | null | null | null | defmodule Task.Supervisor do
@moduledoc """
A task supervisor.
This module defines a supervisor which can be used to dynamically
supervise tasks.
A task supervisor is started with no children, often under a
supervisor and a name:
children = [
{Task.Supervisor, name: MyApp.TaskSupervisor}
... | 36.052738 | 97 | 0.677844 |
9ec8384137b0c633d5fb9e1325b547498433cad4 | 3,323 | ex | Elixir | lib/pigeon/gcm_worker.ex | irybakov/pigeon | 8b734de28b14dbeeeb71c9d1ca24840434e429b7 | [
"MIT"
] | null | null | null | lib/pigeon/gcm_worker.ex | irybakov/pigeon | 8b734de28b14dbeeeb71c9d1ca24840434e429b7 | [
"MIT"
] | null | null | null | lib/pigeon/gcm_worker.ex | irybakov/pigeon | 8b734de28b14dbeeeb71c9d1ca24840434e429b7 | [
"MIT"
] | 1 | 2020-05-22T11:58:11.000Z | 2020-05-22T11:58:11.000Z | defmodule Pigeon.GCMWorker do
@moduledoc """
Handles all FCM request and response parsing over an HTTP2 connection.
"""
use Pigeon.GenericH2Worker, ping_interval: 60_000
alias Pigeon.GCM.NotificationResponse
require Logger
def default_name, do: :gcm_default
def host(config) do
config[:endpoint] ... | 29.936937 | 106 | 0.617815 |
9ec8510d144d50010b3916fd73bb41d919b326c1 | 1,999 | ex | Elixir | clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p2beta1_color_info.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p2beta1_color_info.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p2beta1_color_info.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... | 36.345455 | 118 | 0.721861 |
9ec8649eceaed70bc9570ecddf4d1eb7d5ec00fe | 4,412 | ex | Elixir | lib/ex_aws/request.ex | Costa-Silva/ex_aws | 6a54c3ccf70f58d5c795a4726324d7ab4290d5e4 | [
"MIT"
] | 1 | 2021-01-05T11:56:32.000Z | 2021-01-05T11:56:32.000Z | lib/ex_aws/request.ex | hetaoapps/ex_aws | 1dcf28d13f0cfb384545dc7a068486874c74635a | [
"MIT"
] | null | null | null | lib/ex_aws/request.ex | hetaoapps/ex_aws | 1dcf28d13f0cfb384545dc7a068486874c74635a | [
"MIT"
] | 2 | 2020-12-29T13:52:35.000Z | 2021-05-11T07:36:26.000Z | defmodule ExAws.Request do
require Logger
@moduledoc """
Makes requests to AWS.
"""
@type http_status :: pos_integer
@type success_content :: %{body: binary, headers: [{binary, binary}]}
@type success_t :: {:ok, success_content}
@type error_t :: {:error, {:http_error, http_status, binary}}
@type res... | 28.464516 | 97 | 0.55417 |
9ec86ee6981964e609039e142692b19e16d18606 | 294 | exs | Elixir | acronym/acronym.exs | ravanscafi/exercism-elixir | 0f5c8c923166a0a795c323c7e2d6ccc9da572fcf | [
"MIT"
] | null | null | null | acronym/acronym.exs | ravanscafi/exercism-elixir | 0f5c8c923166a0a795c323c7e2d6ccc9da572fcf | [
"MIT"
] | null | null | null | acronym/acronym.exs | ravanscafi/exercism-elixir | 0f5c8c923166a0a795c323c7e2d6ccc9da572fcf | [
"MIT"
] | null | null | null | defmodule Acronym do
@doc """
Generate an acronym from a string.
"This is a string" => "TIAS"
"""
@spec abbreviate(String.t()) :: String.t()
def abbreviate(string) do
String.split(string, ~r{\B[a-z]+|\W}, trim: true)
|> Enum.reduce("", &(&2 <> String.upcase(&1)))
end
end
| 24.5 | 53 | 0.595238 |
9ec89643a952445bffd09454bd52a04bd811b1ff | 1,139 | exs | Elixir | config/config.exs | molbrown/currency_formatter | 35bd8779700d1508a9f8cde8301f71a81bc461d7 | [
"WTFPL"
] | 14 | 2016-03-23T21:51:07.000Z | 2022-01-26T18:33:43.000Z | config/config.exs | molbrown/currency_formatter | 35bd8779700d1508a9f8cde8301f71a81bc461d7 | [
"WTFPL"
] | 12 | 2016-06-24T14:22:22.000Z | 2021-08-09T22:58:52.000Z | config/config.exs | molbrown/currency_formatter | 35bd8779700d1508a9f8cde8301f71a81bc461d7 | [
"WTFPL"
] | 13 | 2016-06-24T09:48:16.000Z | 2021-07-15T21:55:08.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.741935 | 73 | 0.755926 |
9ec9227fd8002e13f058b440ed4807ce0c2250b3 | 4,697 | ex | Elixir | lib/github/parse_owner.ex | gebner/bors-ng | 7a88ef7cceb1f112374a426a4bdfffc323b44a61 | [
"Apache-2.0"
] | null | null | null | lib/github/parse_owner.ex | gebner/bors-ng | 7a88ef7cceb1f112374a426a4bdfffc323b44a61 | [
"Apache-2.0"
] | null | null | null | lib/github/parse_owner.ex | gebner/bors-ng | 7a88ef7cceb1f112374a426a4bdfffc323b44a61 | [
"Apache-2.0"
] | null | null | null | require Logger
defmodule BorsNG.CodeOwners do
@type tjson :: map
@type t :: %BorsNG.CodeOwners{
patterns: [BorsNG.FilePattern]
}
defstruct(patterns: [])
end
defmodule BorsNG.FilePattern do
@type tjson :: map
@type t :: %BorsNG.FilePattern{
file_pattern: String.t,
approv... | 34.036232 | 127 | 0.607196 |
9ec9343cf5da78a8d42c4eb10866959f7081528a | 10,161 | ex | Elixir | lib/bincode/structs.ex | LeonardBesson/bincode | 0e2950e6d09eaf9e9cea439e33cad5397747e331 | [
"MIT"
] | null | null | null | lib/bincode/structs.ex | LeonardBesson/bincode | 0e2950e6d09eaf9e9cea439e33cad5397747e331 | [
"MIT"
] | null | null | null | lib/bincode/structs.ex | LeonardBesson/bincode | 0e2950e6d09eaf9e9cea439e33cad5397747e331 | [
"MIT"
] | null | null | null | defmodule Bincode.Structs do
@moduledoc """
Module defining macros related to structs and enums.
"""
@doc """
Declares a new struct. This macro generates a struct with serialization and
deserialization methods according to the given fields.
## Options
* `absolute` - When set to true, the given struct... | 32.672026 | 183 | 0.549749 |
9ec93af32fd42c642826d2fe1f6a00f0ef1ec18a | 1,798 | exs | Elixir | mix.exs | zamith/hound | 2fcddb59e1e71ac77bbebfcb97bc6d74ae11d116 | [
"MIT"
] | null | null | null | mix.exs | zamith/hound | 2fcddb59e1e71ac77bbebfcb97bc6d74ae11d116 | [
"MIT"
] | null | null | null | mix.exs | zamith/hound | 2fcddb59e1e71ac77bbebfcb97bc6d74ae11d116 | [
"MIT"
] | null | null | null | defmodule Hound.Mixfile do
use Mix.Project
def project do
[ app: :hound,
version: "0.5.10",
elixir: ">= 1.0.0",
description: description,
deps: deps(Mix.env),
package: package,
docs: [readme: true, main: "README"]
]
end
# Configuration for the OTP application
def... | 22.475 | 160 | 0.619021 |
9ec96b75dfded0aa6375fb1302908e53e19971dd | 1,583 | exs | Elixir | test/movement/persisters/new_slave_test.exs | isshindev/accent | ae4c13139b0a0dfd64ff536b94c940a4e2862150 | [
"BSD-3-Clause"
] | 806 | 2018-04-07T20:40:33.000Z | 2022-03-30T01:39:57.000Z | test/movement/persisters/new_slave_test.exs | isshindev/accent | ae4c13139b0a0dfd64ff536b94c940a4e2862150 | [
"BSD-3-Clause"
] | 194 | 2018-04-07T13:49:37.000Z | 2022-03-30T19:58:45.000Z | test/movement/persisters/new_slave_test.exs | doc-ai/accent | e337e16f3658cc0728364f952c0d9c13710ebb06 | [
"BSD-3-Clause"
] | 89 | 2018-04-09T13:55:49.000Z | 2022-03-24T07:09:31.000Z | defmodule AccentTest.Movement.Persisters.NewSlave do
use Accent.RepoCase
alias Accent.{
Language,
ProjectCreator,
Repo,
User
}
alias Movement.Persisters.NewSlave, as: NewSlavePersister
@user %User{email: "test@test.com"}
setup do
user = Repo.insert!(@user)
language = Repo.insert!... | 33.680851 | 131 | 0.692356 |
9ec9704e83f167cf3e959ee8f4f98fe7b025d344 | 1,827 | ex | Elixir | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v14/model/dimension_dimension_value.ex | ericrwolfe/elixir-google-api | 3dc0f17edd5e2d6843580c16ddae3bf84b664ffd | [
"Apache-2.0"
] | null | null | null | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v14/model/dimension_dimension_value.ex | ericrwolfe/elixir-google-api | 3dc0f17edd5e2d6843580c16ddae3bf84b664ffd | [
"Apache-2.0"
] | null | null | null | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v14/model/dimension_dimension_value.ex | ericrwolfe/elixir-google-api | 3dc0f17edd5e2d6843580c16ddae3bf84b664ffd | [
"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... | 38.0625 | 262 | 0.749863 |
9ec9760b3d00e0faea41c4709243038910709134 | 8,981 | ex | Elixir | lib/circular/accounts.ex | cblock/circular | fb784d638bde2b1f125a03c403783f93533f5892 | [
"Apache-2.0"
] | null | null | null | lib/circular/accounts.ex | cblock/circular | fb784d638bde2b1f125a03c403783f93533f5892 | [
"Apache-2.0"
] | 3 | 2020-09-04T09:32:55.000Z | 2022-03-06T02:17:06.000Z | lib/circular/accounts.ex | cblock/circular | fb784d638bde2b1f125a03c403783f93533f5892 | [
"Apache-2.0"
] | null | null | null | defmodule Circular.Accounts do
@moduledoc """
The Accounts context.
"""
import Ecto.Query, warn: false
alias Circular.Repo
alias Circular.Accounts.{User, UserToken, UserNotifier}
## Database getters
@doc """
Gets a user by email.
## Examples
iex> get_user_by_email("foo@example.com")
... | 25.66 | 116 | 0.66251 |
9ec9833239e9a0fb8906cbe6042da447b1285aa3 | 8,777 | exs | Elixir | test/quantum/execution_broadcaster_test.exs | happysalada/quantum-core | a4758de2edac7758f879a7e3f3fde5c3aca7bf71 | [
"Apache-2.0"
] | null | null | null | test/quantum/execution_broadcaster_test.exs | happysalada/quantum-core | a4758de2edac7758f879a7e3f3fde5c3aca7bf71 | [
"Apache-2.0"
] | null | null | null | test/quantum/execution_broadcaster_test.exs | happysalada/quantum-core | a4758de2edac7758f879a7e3f3fde5c3aca7bf71 | [
"Apache-2.0"
] | 1 | 2022-03-06T10:24:39.000Z | 2022-03-06T10:24:39.000Z | defmodule Quantum.ExecutionBroadcasterTest do
@moduledoc false
use ExUnit.Case, async: true
import Crontab.CronExpression
import ExUnit.CaptureLog
import Quantum.CaptureLogExtend
alias Quantum.ClockBroadcaster.Event, as: ClockEvent
alias Quantum.ExecutionBroadcaster
alias Quantum.ExecutionBroadcaster... | 31.458781 | 97 | 0.613194 |
9ec98de25980faca2afdcabea5d62212ddafad64 | 198 | ex | Elixir | lib/phone/pk.ex | net/phone | 18e1356d2f8d32fe3f95638c3c44bceab0164fb2 | [
"Apache-2.0"
] | null | null | null | lib/phone/pk.ex | net/phone | 18e1356d2f8d32fe3f95638c3c44bceab0164fb2 | [
"Apache-2.0"
] | null | null | null | lib/phone/pk.ex | net/phone | 18e1356d2f8d32fe3f95638c3c44bceab0164fb2 | [
"Apache-2.0"
] | null | null | null | defmodule Phone.PK do
@moduledoc false
use Helper.Country
def regex, do: ~r/^(92)()(.+'')/
def country, do: "Pakistan"
def a2, do: "PK"
def a3, do: "PAK"
matcher :regex, ["92"]
end
| 15.230769 | 34 | 0.590909 |
9ec9a27c1f61fa3f3edaacf090717679070cce5c | 463 | ex | Elixir | lib/ueberauth/failure/error.ex | gseddon/ueberauth | a914cbb1894224bdc1ff5653011af5966838cab2 | [
"MIT"
] | 1,456 | 2015-11-18T05:27:24.000Z | 2022-03-24T15:07:59.000Z | lib/ueberauth/failure/error.ex | gseddon/ueberauth | a914cbb1894224bdc1ff5653011af5966838cab2 | [
"MIT"
] | 139 | 2015-11-18T18:34:03.000Z | 2022-03-30T18:22:01.000Z | lib/ueberauth/failure/error.ex | gseddon/ueberauth | a914cbb1894224bdc1ff5653011af5966838cab2 | [
"MIT"
] | 120 | 2015-11-19T16:25:02.000Z | 2022-02-06T01:31:45.000Z | defmodule Ueberauth.Failure.Error do
@moduledoc """
A specific error for a failed authentication attempt.
The message_key may be used to identify fields or other machine interpreted
methods like translation. The message field is for a human readable message
indicating the cause of the error.
"""
@type t ... | 27.235294 | 77 | 0.695464 |
9ec9c2c2662f9213c88c100e585d82f967f5bea2 | 2,090 | ex | Elixir | clients/admin/lib/google_api/admin/directory_v1/api/users.ex | dereksweet/elixir-google-api | 9ddd171f77a2efdcc6a968a0c001e503cb34dbb3 | [
"Apache-2.0"
] | null | null | null | clients/admin/lib/google_api/admin/directory_v1/api/users.ex | dereksweet/elixir-google-api | 9ddd171f77a2efdcc6a968a0c001e503cb34dbb3 | [
"Apache-2.0"
] | null | null | null | clients/admin/lib/google_api/admin/directory_v1/api/users.ex | dereksweet/elixir-google-api | 9ddd171f77a2efdcc6a968a0c001e503cb34dbb3 | [
"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... | 32.153846 | 86 | 0.686603 |
9ec9d72906733a10d44cb4ebca0f1969d38bb4af | 8,294 | ex | Elixir | lib/chat_api_web/router.ex | Tiamat-Tech/papercups | f17d2b0ce080c0edab92a4b2e6d4afcef04aa291 | [
"MIT"
] | null | null | null | lib/chat_api_web/router.ex | Tiamat-Tech/papercups | f17d2b0ce080c0edab92a4b2e6d4afcef04aa291 | [
"MIT"
] | null | null | null | lib/chat_api_web/router.ex | Tiamat-Tech/papercups | f17d2b0ce080c0edab92a4b2e6d4afcef04aa291 | [
"MIT"
] | null | null | null | defmodule ChatApiWeb.Router do
use ChatApiWeb, :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(ChatApiWeb.IPAddressPlug)
plug(:accepts, ["json"])
... | 43.652632 | 97 | 0.719074 |
9ec9e3299c663f9fb1229dbc28e9a505f3879cdc | 51 | exs | Elixir | bench/bench_helper.exs | elixir-bench/demo | fffdb4ba4728649ffb74e8cd8588151ddc3a1188 | [
"Apache-2.0"
] | null | null | null | bench/bench_helper.exs | elixir-bench/demo | fffdb4ba4728649ffb74e8cd8588151ddc3a1188 | [
"Apache-2.0"
] | null | null | null | bench/bench_helper.exs | elixir-bench/demo | fffdb4ba4728649ffb74e8cd8588151ddc3a1188 | [
"Apache-2.0"
] | null | null | null | Code.load_file("benchmarks/flat_map.exs", __DIR__)
| 25.5 | 50 | 0.803922 |
9ec9ff5c61d43835f04742c4b9bda6f64710c00a | 2,687 | ex | Elixir | clients/health_care/lib/google_api/health_care/v1beta1/model/info_type_config.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/health_care/lib/google_api/health_care/v1beta1/model/info_type_config.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/health_care/lib/google_api/health_care/v1beta1/model/info_type_config.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... | 50.698113 | 751 | 0.719017 |
9eca3ca4ea8423af1984f4605e94c36ca77e7780 | 331 | ex | Elixir | lib/application.ex | geonnave/felix | f770af9db656978450ae3cf75573559957f203c8 | [
"MIT"
] | 5 | 2019-02-10T03:33:23.000Z | 2019-02-11T12:25:50.000Z | lib/application.ex | geonnave/felix | f770af9db656978450ae3cf75573559957f203c8 | [
"MIT"
] | null | null | null | lib/application.ex | geonnave/felix | f770af9db656978450ae3cf75573559957f203c8 | [
"MIT"
] | null | null | null | defmodule Felix.Application do
use Application
def start(_type, _args) do
import Supervisor.Spec, warn: false
children = [
{Felix.Server, 2222},
{Task.Supervisor, name: Felix.Handler.TaskSupervisor},
{ForceApp.People, []}
]
Supervisor.start_link(children, strategy: :one_for_one)... | 20.6875 | 60 | 0.676737 |
9eca477fcdfc56d338fd734f04608b158deacf3e | 1,056 | ex | Elixir | lib/reactive/raw_db_access.ex | ReactiveWeb/reactive_db | 764eda0b59156fd92fd424141b050937dcc8983a | [
"MIT"
] | 1 | 2016-02-16T11:48:37.000Z | 2016-02-16T11:48:37.000Z | lib/reactive/raw_db_access.ex | ReactiveWeb/reactive_db | 764eda0b59156fd92fd424141b050937dcc8983a | [
"MIT"
] | null | null | null | lib/reactive/raw_db_access.ex | ReactiveWeb/reactive_db | 764eda0b59156fd92fd424141b050937dcc8983a | [
"MIT"
] | null | null | null | defmodule Reactive.RawDbAccess do
defp get_db(name) do
case name do
[] -> Reactive.Entities.get_db()
end
end
def binary_to_json(binary) do
try do
term = :erlang.binary_to_term(binary)
%{ type: "term", data: to_string(:lists.flatten(:io_lib.format("~80tp", [term]))) }
rescue
... | 26.4 | 89 | 0.609848 |
9eca4ab3be4ff63b853357a474c6336807b9bd06 | 5,704 | ex | Elixir | lib/neo4j_sips_models/model.ex | szTheory/neo4j_sips_models | 70c7ad45da4aec97dc56dcf951df878b9e801e47 | [
"MIT"
] | 8 | 2016-04-22T03:13:02.000Z | 2021-01-01T02:49:28.000Z | lib/neo4j_sips_models/model.ex | szTheory/neo4j_sips_models | 70c7ad45da4aec97dc56dcf951df878b9e801e47 | [
"MIT"
] | 2 | 2016-10-06T07:20:19.000Z | 2020-03-05T02:04:52.000Z | lib/neo4j_sips_models/model.ex | szTheory/neo4j_sips_models | 70c7ad45da4aec97dc56dcf951df878b9e801e47 | [
"MIT"
] | 5 | 2016-07-21T04:31:24.000Z | 2020-03-03T20:23:01.000Z | defmodule Neo4j.Sips.Model do @doc false
@moduledoc """
Base class for the Neo4j.Sips models.
"""
defmacro __using__(_opts) do
quote do
import Kernel, except: [def: 1, def: 2, defp: 1, defp: 2]
import Neo4j.Sips.Model
Module.register_attribute(__MODULE__ , :fields , accumul... | 26.045662 | 121 | 0.667076 |
9eca4cb9ac3ebc93bdae05f08f935c9be50113b3 | 67 | ex | Elixir | jobsPortalService/lib/models/company.ex | andraspatka/jobportal-ms | 006c8ca212f88566113c4b5c00dfe1d4e421c034 | [
"MIT"
] | 1 | 2021-05-25T18:24:27.000Z | 2021-05-25T18:24:27.000Z | jobsPortalService/lib/models/company.ex | andraspatka/jobportal-ms | 006c8ca212f88566113c4b5c00dfe1d4e421c034 | [
"MIT"
] | 1 | 2021-05-23T09:50:10.000Z | 2021-05-23T09:50:10.000Z | jobsPortalService/lib/models/company.ex | andraspatka/jobportal-ms | 006c8ca212f88566113c4b5c00dfe1d4e421c034 | [
"MIT"
] | null | null | null | defmodule Models.Company do
defstruct name: nil, admin: nil
end | 22.333333 | 35 | 0.761194 |
9eca8561c0429cd5259a22b83f620c62c130f783 | 2,218 | ex | Elixir | lib/checker_mal_web/controllers/unapproved_controller.ex | Hiyori-API/checker_mal | c59f38c4ce72776b401f823dfb2000934acfc509 | [
"MIT"
] | 10 | 2020-06-12T18:36:58.000Z | 2022-02-20T11:07:49.000Z | lib/checker_mal_web/controllers/unapproved_controller.ex | Hiyori-API/checker_mal | c59f38c4ce72776b401f823dfb2000934acfc509 | [
"MIT"
] | 7 | 2020-05-08T06:03:08.000Z | 2022-01-24T02:57:16.000Z | lib/checker_mal_web/controllers/unapproved_controller.ex | Hiyori-API/checker_mal | c59f38c4ce72776b401f823dfb2000934acfc509 | [
"MIT"
] | 1 | 2020-12-03T03:49:27.000Z | 2020-12-03T03:49:27.000Z | defmodule CheckerMalWeb.UnapprovedController do
use CheckerMalWeb, :controller
require Logger
@html_basepath Application.get_env(:checker_mal, :unapproved_html_basepath, "/mal_unapproved")
@error_msg "Page is currently being updated, this page will automatically refresh when its done..."
defp get_data(type... | 26.094118 | 101 | 0.565374 |
9eca9ade483f33992530d2588dd0b52cae6d4d77 | 958 | ex | Elixir | lib/serum.ex | igalic/Serum | 352f80ebcc8ed160230e7775aac3590787c912c6 | [
"MIT"
] | 1 | 2021-08-03T11:16:36.000Z | 2021-08-03T11:16:36.000Z | lib/serum.ex | igalic/Serum | 352f80ebcc8ed160230e7775aac3590787c912c6 | [
"MIT"
] | null | null | null | lib/serum.ex | igalic/Serum | 352f80ebcc8ed160230e7775aac3590787c912c6 | [
"MIT"
] | null | null | null | defmodule Serum do
@moduledoc """
Defines Serum OTP application.
Serum is a simple static website generator written in Elixir programming
language. The goal of this project is to provide the way to create awesome
static websites with little effort.
This documentation is for developers and advanced users. ... | 26.611111 | 76 | 0.72547 |
9ecab0a0228673e32f900079777e4883e81e2e5c | 938 | ex | Elixir | lib/mail_slurp_api/model/create_webhook_options.ex | sumup-bank/mailslurp-client-elixir | 87ccdedf2f0f4cd3e50f5781ffb088142e3cf4e8 | [
"MIT"
] | null | null | null | lib/mail_slurp_api/model/create_webhook_options.ex | sumup-bank/mailslurp-client-elixir | 87ccdedf2f0f4cd3e50f5781ffb088142e3cf4e8 | [
"MIT"
] | null | null | null | lib/mail_slurp_api/model/create_webhook_options.ex | sumup-bank/mailslurp-client-elixir | 87ccdedf2f0f4cd3e50f5781ffb088142e3cf4e8 | [
"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 MailSlurpAPI.Model.CreateWebhookOptions do
@moduledoc """
Options for creating a webhook. Webhooks can be attached to inboxes and MailSlurp will P... | 29.3125 | 225 | 0.716418 |
9ecadfa0c09bc7ec9381eb09d2e2f971b6c5f681 | 245 | ex | Elixir | lib/hello_web/controllers/hello_controller.ex | loretoparisi/phoenix-elixir-boilerplate | 1fd0afa7c1cefbb82d3080f151fef269332d8e14 | [
"MIT"
] | 4 | 2019-04-07T17:43:10.000Z | 2020-07-07T21:32:44.000Z | lib/hello_web/controllers/hello_controller.ex | loretoparisi/phoenix-elixir-boilerplate | 1fd0afa7c1cefbb82d3080f151fef269332d8e14 | [
"MIT"
] | null | null | null | lib/hello_web/controllers/hello_controller.ex | loretoparisi/phoenix-elixir-boilerplate | 1fd0afa7c1cefbb82d3080f151fef269332d8e14 | [
"MIT"
] | 3 | 2019-09-09T15:21:41.000Z | 2020-07-07T21:35:07.000Z | defmodule HelloWeb.HelloController do
use HelloWeb, :controller
def index(conn, _params) do
render(conn, "index.html")
end
def show(conn, %{"messenger" => messenger}) do
render(conn, "show.html", messenger: messenger)
end
end
| 22.272727 | 51 | 0.697959 |
9ecaedcbae86eb25a5be0bfdab61c56447032aac | 347 | ex | Elixir | lib/tradehub/extended_key/binary.ex | anhmv/tradehub-api-elixir | 6ec87c2b07188d4140506011e2b28db4d372ac6d | [
"MIT"
] | 5 | 2021-05-04T16:54:25.000Z | 2021-12-15T06:53:24.000Z | lib/tradehub/extended_key/binary.ex | anhmv/tradehub-api-elixir | 6ec87c2b07188d4140506011e2b28db4d372ac6d | [
"MIT"
] | 5 | 2021-05-19T04:49:00.000Z | 2021-06-01T13:36:50.000Z | lib/tradehub/extended_key/binary.ex | anhmv/tradehub-elixir | 6ec87c2b07188d4140506011e2b28db4d372ac6d | [
"MIT"
] | null | null | null | defmodule Tradehub.ExtendedKey.Binary do
@moduledoc false
def take(binary, count)
when is_binary(binary) and is_integer(count) and count in 0..byte_size(binary) do
<<bin::bytes-size(count), _rest::binary>> = binary
bin
end
def unsigned_sum(bin1, bin2), do: :binary.decode_unsigned(bin1) + :binary... | 28.916667 | 97 | 0.723343 |
9ecb02d1ed5a1fcb732743925ac7e56a13d1edd7 | 2,365 | exs | Elixir | test/ex_venture/rooms_test.exs | oestrich/exventure | 8e8062f9411656f4ec49cc2c35a1e4a9dd5d4190 | [
"MIT"
] | 610 | 2017-08-09T15:20:25.000Z | 2022-03-27T15:49:07.000Z | test/ex_venture/rooms_test.exs | oestrich/ex_mud | 8e8062f9411656f4ec49cc2c35a1e4a9dd5d4190 | [
"MIT"
] | 69 | 2017-09-23T04:02:30.000Z | 2022-03-19T21:08:21.000Z | test/ex_venture/rooms_test.exs | oestrich/ex_mud | 8e8062f9411656f4ec49cc2c35a1e4a9dd5d4190 | [
"MIT"
] | 85 | 2017-09-23T04:07:11.000Z | 2021-11-20T06:44:56.000Z | defmodule ExVenture.RoomsTest do
use ExVenture.DataCase
alias ExVenture.Rooms
describe "creating rooms" do
test "successfully" do
{:ok, zone} = TestHelpers.create_zone()
{:ok, room} =
Rooms.create(zone, %{
key: "room",
name: "Room",
description: "Descriptio... | 22.740385 | 66 | 0.544609 |
9ecb381ae2c0929e3ee05d1d1801b5f9765b32ee | 8,109 | ex | Elixir | clients/logging/lib/google_api/logging/v2/model/log_entry.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/logging/lib/google_api/logging/v2/model/log_entry.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/logging/lib/google_api/logging/v2/model/log_entry.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... | 83.597938 | 1,185 | 0.750031 |
9ecb4ebe0dda1ab1c755846bd5ee53182e2aac7e | 687 | exs | Elixir | test/vutuv_web/controllers/api/vcard_controller_test.exs | vutuv/vutuv | 174706cdaf28cef24e1cc06bec0884c25f2412be | [
"MIT"
] | 309 | 2016-05-03T17:16:23.000Z | 2022-03-01T09:30:22.000Z | test/vutuv_web/controllers/api/vcard_controller_test.exs | vutuv/vutuv | 174706cdaf28cef24e1cc06bec0884c25f2412be | [
"MIT"
] | 662 | 2016-04-27T07:45:18.000Z | 2022-01-05T07:29:19.000Z | test/vutuv_web/controllers/api/vcard_controller_test.exs | vutuv/vutuv | 174706cdaf28cef24e1cc06bec0884c25f2412be | [
"MIT"
] | 40 | 2016-04-27T07:46:22.000Z | 2021-12-31T05:54:34.000Z | defmodule VutuvWeb.Api.VcardControllerTest do
use VutuvWeb.ConnCase
import Vutuv.Factory
test "shows vcard for valid user", %{conn: conn} do
user = insert(:user)
[email_address] = user.email_addresses
conn = get(conn, Routes.api_user_vcard_path(conn, :vcard, user))
assert conn.status == 200
... | 28.625 | 68 | 0.676856 |
9ecb6f5bfb8a7e8bc37ea506c3b68057eee9eb78 | 61 | ex | Elixir | elixir/auction_umbrella/apps/auction_web/lib/auction_web/views/user_view.ex | kendru/darwin | 67096eb900bc36d30bf5ce36d38aaa6db86a29a2 | [
"MIT"
] | 5 | 2021-11-17T04:37:39.000Z | 2022-01-02T06:43:23.000Z | elixir/auction_umbrella/apps/auction_web/lib/auction_web/views/user_view.ex | kendru/darwin | 67096eb900bc36d30bf5ce36d38aaa6db86a29a2 | [
"MIT"
] | 3 | 2021-05-21T21:50:11.000Z | 2021-11-21T14:34:53.000Z | elixir/auction_umbrella/apps/auction_web/lib/auction_web/views/user_view.ex | kendru/darwin | 67096eb900bc36d30bf5ce36d38aaa6db86a29a2 | [
"MIT"
] | 2 | 2021-11-16T14:14:05.000Z | 2021-12-31T02:01:06.000Z | defmodule AuctionWeb.UserView do
use AuctionWeb, :view
end
| 15.25 | 32 | 0.803279 |
9ecb8e9fab3026e2896587388f6264e40c0c3255 | 894 | ex | Elixir | bowling_game/lib/iteration_02/bowling_game/day09.ex | alex-dukhno/elixir-tdd-katas | 57e25fc275c4274c889f2b3760276cc8a393de9e | [
"MIT"
] | null | null | null | bowling_game/lib/iteration_02/bowling_game/day09.ex | alex-dukhno/elixir-tdd-katas | 57e25fc275c4274c889f2b3760276cc8a393de9e | [
"MIT"
] | null | null | null | bowling_game/lib/iteration_02/bowling_game/day09.ex | alex-dukhno/elixir-tdd-katas | 57e25fc275c4274c889f2b3760276cc8a393de9e | [
"MIT"
] | null | null | null | defmodule BowlingGame.Day09 do
def new_game() do
{:ok, pid} = Task.start_link(fn -> loop(%{rolls: []}) end)
pid
end
defp loop(%{rolls: rolls}) do
receive do
{:score, caller} ->
send caller, {:score, score(Enum.reverse(rolls), 1)}
loop(%{rolls: rolls})
{:roll, pins} ->
... | 22.923077 | 70 | 0.558166 |
9ecb9a3ec16c55083088c353bdd45fcded237084 | 631 | ex | Elixir | lib/jsonapi/plugs/format_required.ex | jnylen/jsonapi | eda4774c99689afadf5a6e8228b88bdb3a98dd86 | [
"MIT"
] | null | null | null | lib/jsonapi/plugs/format_required.ex | jnylen/jsonapi | eda4774c99689afadf5a6e8228b88bdb3a98dd86 | [
"MIT"
] | null | null | null | lib/jsonapi/plugs/format_required.ex | jnylen/jsonapi | eda4774c99689afadf5a6e8228b88bdb3a98dd86 | [
"MIT"
] | null | null | null | defmodule JSONAPI.FormatRequired do
@moduledoc """
Enforces the JSONAPI format of {"data" => {"attributes" => ...}} for request bodies
"""
import JSONAPI.ErrorView
def init(opts), do: opts
def call(%{method: method} = conn, _opts) when method in ["DELETE", "GET", "HEAD"], do: conn
def call(%{params: %{... | 33.210526 | 94 | 0.622821 |
9ecb9e21de03a6be77558ed9fac7ccb4c6794c0a | 1,131 | exs | Elixir | config/config.exs | undr/entitiex | c6666909290b4077b47659ce11891659226e3b88 | [
"MIT"
] | null | null | null | config/config.exs | undr/entitiex | c6666909290b4077b47659ce11891659226e3b88 | [
"MIT"
] | null | null | null | config/config.exs | undr/entitiex | c6666909290b4077b47659ce11891659226e3b88 | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# 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.483871 | 73 | 0.751547 |
9ecba0ca482846c3ab7e5abf3c1728abd85dd74c | 429 | exs | Elixir | test/models/role_test.exs | melbystyle/jw_ministry_api | 2065d628a84e829b805c71b7e73fb0bee3d0dd44 | [
"Apache-2.0"
] | 1 | 2017-06-19T18:18:11.000Z | 2017-06-19T18:18:11.000Z | test/models/role_test.exs | melbystyle/jw_ministry_api | 2065d628a84e829b805c71b7e73fb0bee3d0dd44 | [
"Apache-2.0"
] | null | null | null | test/models/role_test.exs | melbystyle/jw_ministry_api | 2065d628a84e829b805c71b7e73fb0bee3d0dd44 | [
"Apache-2.0"
] | null | null | null | defmodule JwMinistryApi.RoleTest do
use JwMinistryApi.ModelCase
alias JwMinistryApi.Role
@valid_attrs %{name: "some content"}
@invalid_attrs %{}
test "changeset with valid attributes" do
changeset = Role.changeset(%Role{}, @valid_attrs)
assert changeset.valid?
end
test "changeset with invalid ... | 22.578947 | 55 | 0.729604 |
9ecbb553e00d7b4987765cbd61b944011a5cb0a2 | 3,162 | exs | Elixir | mix.exs | gmcintire/papercups | c518a787dfb44547d9a057a8782c40c42614062d | [
"MIT"
] | null | null | null | mix.exs | gmcintire/papercups | c518a787dfb44547d9a057a8782c40c42614062d | [
"MIT"
] | null | null | null | mix.exs | gmcintire/papercups | c518a787dfb44547d9a057a8782c40c42614062d | [
"MIT"
] | null | null | null | defmodule ChatApi.MixProject do
use Mix.Project
def project do
[
app: :chat_api,
version: "0.1.0",
elixir: "~> 1.10",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix, :gettext] ++ Mix.compilers() ++ [:phoenix_swagger],
start_permanent: Mix.env() == :prod,
... | 29.551402 | 84 | 0.506958 |
9ecbc2075e9b798d93c8462629afe68356a40074 | 38,693 | ex | Elixir | lib/aws/generated/sts.ex | andrewhr/aws-elixir | 861dc2fafca50a2b2f83badba4cdcb44b5b0c171 | [
"Apache-2.0"
] | null | null | null | lib/aws/generated/sts.ex | andrewhr/aws-elixir | 861dc2fafca50a2b2f83badba4cdcb44b5b0c171 | [
"Apache-2.0"
] | null | null | null | lib/aws/generated/sts.ex | andrewhr/aws-elixir | 861dc2fafca50a2b2f83badba4cdcb44b5b0c171 | [
"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.STS do
@moduledoc """
Security Token Service
Security Token Service (STS) enables you to request temporary, limited-privilege
credentials for Identity and Access Management (IAM) users or... | 58.983232 | 221 | 0.780968 |
9ecbdaecee2f7474e4c04f606cec28ced76fddec | 940 | ex | Elixir | lib/my_app/application.ex | bigbassroller/ueberauth_example | 5e889abaf060b6a37add2eb8a3cf1938f394c4af | [
"MIT"
] | null | null | null | lib/my_app/application.ex | bigbassroller/ueberauth_example | 5e889abaf060b6a37add2eb8a3cf1938f394c4af | [
"MIT"
] | null | null | null | lib/my_app/application.ex | bigbassroller/ueberauth_example | 5e889abaf060b6a37add2eb8a3cf1938f394c4af | [
"MIT"
] | null | null | null | defmodule MyApp.Application do
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
use Application
def start(_type, _args) do
children = [
# Start the Telemetry supervisor
MyAppWeb.Telemetry,
# Start the PubSub system
{Phoe... | 28.484848 | 63 | 0.702128 |
9ecbed7456fb6a0756b2b9bd6d109a04ecd55994 | 1,343 | ex | Elixir | lib/exavier/mutators/negate_conditionals.ex | Cantido/exavier | 4fb6796597f487e901cda1ac0b726d501a28e591 | [
"MIT"
] | 93 | 2019-07-22T09:21:31.000Z | 2022-02-02T05:49:29.000Z | lib/exavier/mutators/negate_conditionals.ex | Cantido/exavier | 4fb6796597f487e901cda1ac0b726d501a28e591 | [
"MIT"
] | 21 | 2019-07-26T12:54:37.000Z | 2022-03-10T10:56:47.000Z | lib/exavier/mutators/negate_conditionals.ex | Cantido/exavier | 4fb6796597f487e901cda1ac0b726d501a28e591 | [
"MIT"
] | 7 | 2019-11-05T08:32:51.000Z | 2020-11-25T19:37:35.000Z | defmodule Exavier.Mutators.NegateConditionals do
@moduledoc """
Mutates conditional operators into their opposite.
Conditionals are replaced according to the table below.
| Original | Mutation |
|----------|----------|
| == | != |
| != | == |
| <= | > |
| >= ... | 22.383333 | 77 | 0.543559 |
9ecbf3fb9fbe022f179168eab4967998b2210263 | 3,019 | exs | Elixir | test/bimultimap_properties_test.exs | mat-hek/elixir-bimap | c3dcdcf64d6022052cce28a0f5c39e2c171714e5 | [
"MIT"
] | 15 | 2017-08-10T20:26:36.000Z | 2022-03-12T16:10:22.000Z | test/bimultimap_properties_test.exs | mat-hek/elixir-bimap | c3dcdcf64d6022052cce28a0f5c39e2c171714e5 | [
"MIT"
] | 10 | 2018-09-03T07:17:06.000Z | 2021-06-14T17:25:58.000Z | test/bimultimap_properties_test.exs | mat-hek/elixir-bimap | c3dcdcf64d6022052cce28a0f5c39e2c171714e5 | [
"MIT"
] | 4 | 2019-05-22T02:51:33.000Z | 2020-03-24T18:35:18.000Z | defmodule BiMultiMapPropertiesTest do
use ExUnit.Case, async: true
use ExUnitProperties
require BiMultiMap
property "finds present items in bimultimap" do
check all key_set <- nonempty(list_of(term())),
value_set <- list_of(term(), length: Enum.count(key_set)) do
kv_list = Enum.zip(key_... | 37.271605 | 93 | 0.661477 |
9ecbf469727f466fc9e4a560147db9d83464c372 | 1,533 | ex | Elixir | lib/exkml/stage.ex | EdsonGermano/exkml | 21feff5fa0cbc2322f6a60e90352705fe9e47dbe | [
"Apache-2.0"
] | null | null | null | lib/exkml/stage.ex | EdsonGermano/exkml | 21feff5fa0cbc2322f6a60e90352705fe9e47dbe | [
"Apache-2.0"
] | null | null | null | lib/exkml/stage.ex | EdsonGermano/exkml | 21feff5fa0cbc2322f6a60e90352705fe9e47dbe | [
"Apache-2.0"
] | null | null | null | defmodule Exkml.Stage do
alias Experimental.GenStage
use GenStage
def start_link(binstream, chunk_size) do
GenStage.start_link(__MODULE__, [binstream, chunk_size])
end
def init([binstream, chunk_size]) do
ref = make_ref()
Exkml.setup(binstream, chunk_size, ref)
buf = []
demand = 0
{:... | 25.983051 | 82 | 0.635356 |
9ecbfaa3083ea60ad8e4b52e24f8c8a03a1d2e2a | 5,550 | exs | Elixir | test/guardian/token/jwe_test.exs | jlauemoeller/guardian_jwe | 8d2708daf570eb2bd8d7e8f3c3166fccfef606aa | [
"MIT"
] | 2 | 2018-03-29T15:25:26.000Z | 2018-05-26T05:47:25.000Z | test/guardian/token/jwe_test.exs | jlauemoeller/guardian_jwe | 8d2708daf570eb2bd8d7e8f3c3166fccfef606aa | [
"MIT"
] | null | null | null | test/guardian/token/jwe_test.exs | jlauemoeller/guardian_jwe | 8d2708daf570eb2bd8d7e8f3c3166fccfef606aa | [
"MIT"
] | null | null | null | defmodule Guardian.Token.JweTest do
use ExUnit.Case
defmodule Impl do
use Guardian,
otp_app: :guardian_test,
token_module: Guardian.Token.Jwe
def subject_for_token(resource, _claims) do
sub = to_string(resource.id)
{:ok, sub}
end
def resource_from_claims(claims) do
... | 25.227273 | 81 | 0.610631 |
9ecc03801274f358c03d48d90c32692777a4bee2 | 2,694 | ex | Elixir | lib/rop.ex | kalys/rop | 2189768517158cab3aaf6f6086c834862f634160 | [
"MIT"
] | null | null | null | lib/rop.ex | kalys/rop | 2189768517158cab3aaf6f6086c834862f634160 | [
"MIT"
] | null | null | null | lib/rop.ex | kalys/rop | 2189768517158cab3aaf6f6086c834862f634160 | [
"MIT"
] | null | null | null | # https://gist.github.com/zabirauf/17ced02bdf9829b6956e
# https://github.com/remiq/railway-oriented-programming-elixir
defmodule Rop do
defmacro __using__(_) do
quote do
import Rop
end
end
@doc ~s"""
Extracts the value from a tagged tuple like {:ok, value}
Raises the value from a tagged tuple... | 23.025641 | 118 | 0.525612 |
9ecc092abe7b55dceee12f2e45e9ad6819e58c5c | 2,662 | ex | Elixir | clients/cloud_resource_manager/lib/google_api/cloud_resource_manager/v1/model/search_organizations_request.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/cloud_resource_manager/lib/google_api/cloud_resource_manager/v1/model/search_organizations_request.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/cloud_resource_manager/lib/google_api/cloud_resource_manager/v1/model/search_organizations_request.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"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... | 49.296296 | 728 | 0.710368 |
9ecc28f14b01b7461c8934c44cc0ee1c9ce6f40e | 1,076 | ex | Elixir | web_finngen_r8/test/support/conn_case.ex | vincent-octo/risteys | 5bb1e70b78988770048b91b42fad025faf98d84a | [
"MIT"
] | null | null | null | web_finngen_r8/test/support/conn_case.ex | vincent-octo/risteys | 5bb1e70b78988770048b91b42fad025faf98d84a | [
"MIT"
] | null | null | null | web_finngen_r8/test/support/conn_case.ex | vincent-octo/risteys | 5bb1e70b78988770048b91b42fad025faf98d84a | [
"MIT"
] | null | null | null | defmodule RisteysWeb.ConnCase do
@moduledoc """
This module defines the test case to be used by
tests that require setting up a connection.
Such tests rely on `Phoenix.ConnTest` and also
import other functionality to make it easier
to build common data structures and query the data layer.
Finally, if th... | 26.9 | 69 | 0.716543 |
9ecc29c480d7a168701712598d23e0a519c934bd | 1,677 | exs | Elixir | mix.exs | KosyanMedia/ueberauth_vk | 0a73979802a83b60d59f632f0d8ac0d398fae23d | [
"MIT"
] | null | null | null | mix.exs | KosyanMedia/ueberauth_vk | 0a73979802a83b60d59f632f0d8ac0d398fae23d | [
"MIT"
] | null | null | null | mix.exs | KosyanMedia/ueberauth_vk | 0a73979802a83b60d59f632f0d8ac0d398fae23d | [
"MIT"
] | null | null | null | defmodule UeberauthVK.Mixfile do
use Mix.Project
@version "0.2.6"
@url "https://github.com/sobolevn/ueberauth_vk"
def project do
[
app: :ueberauth_vk,
version: @version,
name: "Ueberauth VK Strategy",
package: package(),
elixir: "~> 1.2",
build_embedded: Mix.env == :pr... | 20.703704 | 60 | 0.538462 |
9ecc932981fe2038ec834c54d9d69176ca8814a1 | 7,004 | ex | Elixir | lib/broadway/topology/batcher_stage.ex | isaacsanders/broadway | 14fce62cec6ea1f89ca14689adf67c67b69739db | [
"Apache-2.0"
] | null | null | null | lib/broadway/topology/batcher_stage.ex | isaacsanders/broadway | 14fce62cec6ea1f89ca14689adf67c67b69739db | [
"Apache-2.0"
] | null | null | null | lib/broadway/topology/batcher_stage.ex | isaacsanders/broadway | 14fce62cec6ea1f89ca14689adf67c67b69739db | [
"Apache-2.0"
] | null | null | null | defmodule Broadway.Topology.BatcherStage do
@moduledoc false
use GenStage
alias Broadway.BatchInfo
@all_batches __MODULE__.All
@spec start_link(term, GenServer.options()) :: GenServer.on_start()
def start_link(args, stage_options) do
Broadway.Topology.Subscriber.start_link(
__MODULE__,
arg... | 28.471545 | 97 | 0.677184 |
9ecc962958d59f896f1b4231c048ebd4934eb5bc | 570 | ex | Elixir | lib/bitpal_phx/process_registry.ex | bitpal/bitpal_demo | 989df08f60dadc5d4e340fef91890cf8bb3106ad | [
"BSD-3-Clause-Clear"
] | null | null | null | lib/bitpal_phx/process_registry.ex | bitpal/bitpal_demo | 989df08f60dadc5d4e340fef91890cf8bb3106ad | [
"BSD-3-Clause-Clear"
] | 1 | 2021-06-04T13:53:01.000Z | 2021-06-04T13:53:01.000Z | lib/bitpal_phx/process_registry.ex | bitpal/bitpal_demo | 989df08f60dadc5d4e340fef91890cf8bb3106ad | [
"BSD-3-Clause-Clear"
] | null | null | null | defmodule BitPalPhx.ProcessRegistry do
def start_link do
Registry.start_link(keys: :unique, name: __MODULE__)
end
def via_tuple(key) do
{:via, Registry, {__MODULE__, key}}
end
@spec get_process(any) :: {:ok, pid} | {:error, :not_found}
def get_process(key) do
case Registry.lookup(__MODULE__, k... | 19.655172 | 61 | 0.603509 |
9ecca13a341133660e5ac1b63cf0dbde3e66efcd | 15,899 | ex | Elixir | lib/iex/lib/iex/pry.ex | kenichi/elixir | 8c27da88c70623cbe516d5310c885943395a82a2 | [
"Apache-2.0"
] | 1 | 2019-08-13T23:22:33.000Z | 2019-08-13T23:22:33.000Z | lib/iex/lib/iex/pry.ex | kenichi/elixir | 8c27da88c70623cbe516d5310c885943395a82a2 | [
"Apache-2.0"
] | 1 | 2015-06-09T15:52:43.000Z | 2015-06-09T15:52:43.000Z | lib/iex/lib/iex/pry.ex | kenichi/elixir | 8c27da88c70623cbe516d5310c885943395a82a2 | [
"Apache-2.0"
] | null | null | null | defmodule IEx.Pry do
@moduledoc """
The low-level API for prying sessions and setting up breakpoints.
"""
@doc false
use GenServer
@table __MODULE__
@server __MODULE__
@timeout :infinity
@initial_counter 1
@type id :: integer()
@type break :: {id, module, {function, arity}, pending :: non_neg_i... | 30.05482 | 100 | 0.608026 |
9eccb28a348fbfd220fb7ba50aa30c8ce024bc5f | 1,312 | ex | Elixir | lib/client/recurring_client.ex | littlelines/frex | e3d9005b782fa0c0aaff0c0368f154c45fb7a302 | [
"Apache-2.0"
] | 2 | 2017-02-10T16:46:21.000Z | 2020-05-04T11:50:50.000Z | lib/client/recurring_client.ex | littlelines/frex | e3d9005b782fa0c0aaff0c0368f154c45fb7a302 | [
"Apache-2.0"
] | null | null | null | lib/client/recurring_client.ex | littlelines/frex | e3d9005b782fa0c0aaff0c0368f154c45fb7a302 | [
"Apache-2.0"
] | 1 | 2019-11-27T15:43:55.000Z | 2019-11-27T15:43:55.000Z | defmodule Frex.Client.Recurring do
@moduledoc """
Client module for interacting with the Freshbooks recurring endpoint.
"""
use Frex.Endpoint, :client
@doc """
Return the details of an existing recurring profile, including
auto-bill information if this recurring profile has auto-billing
enabled.
... | 26.77551 | 72 | 0.696646 |
9eccb499ca02b08e07042fb64de1f150bb60165d | 3,235 | ex | Elixir | clients/machine_learning/lib/google_api/machine_learning/v1/model/google_cloud_ml_v1__replica_config.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/machine_learning/lib/google_api/machine_learning/v1/model/google_cloud_ml_v1__replica_config.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/machine_learning/lib/google_api/machine_learning/v1/model/google_cloud_ml_v1__replica_config.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... | 43.716216 | 196 | 0.742813 |
9eccc053e2096992f1642bc58ab9f942076202eb | 8,533 | exs | Elixir | test/scenic/cache/hash_test.exs | ruan-brandao/scenic | cbd8bf50c4239bb5e4ae7971bbc9850ae1f9f2b7 | [
"Apache-2.0"
] | null | null | null | test/scenic/cache/hash_test.exs | ruan-brandao/scenic | cbd8bf50c4239bb5e4ae7971bbc9850ae1f9f2b7 | [
"Apache-2.0"
] | null | null | null | test/scenic/cache/hash_test.exs | ruan-brandao/scenic | cbd8bf50c4239bb5e4ae7971bbc9850ae1f9f2b7 | [
"Apache-2.0"
] | null | null | null | #
# Created by Boyd Multerer on 2017-11-12.
# Copyright © 2017 Kry10 Industries. All rights reserved.
#
defmodule Scenic.Cache.HashTest do
use ExUnit.Case, async: true
doctest Scenic.Cache.File
alias Scenic.Cache.Hash
# import IEx
@valid_hash_path "test/test_data/valid_hash_file.txt.aqw2vpKePkeDvZzBz-1... | 37.262009 | 98 | 0.653815 |
9eccca6731de5a6dceeeb98141e6528f741e3b81 | 916 | ex | Elixir | lib/airbrakex/plug.ex | talum/airbrakex | ffe9c15d56f42928841e903e0baf572b5d1a4400 | [
"MIT"
] | null | null | null | lib/airbrakex/plug.ex | talum/airbrakex | ffe9c15d56f42928841e903e0baf572b5d1a4400 | [
"MIT"
] | null | null | null | lib/airbrakex/plug.ex | talum/airbrakex | ffe9c15d56f42928841e903e0baf572b5d1a4400 | [
"MIT"
] | 2 | 2020-02-05T12:02:31.000Z | 2021-04-22T09:06:41.000Z | defmodule Airbrakex.Plug do
@moduledoc """
You can plug `Airbrakex.Plug` in your web application Plug stack
to send all exception to `airbrake`
```elixir
defmodule YourApp.Router do
use Phoenix.Router
use Airbrakex.Plug
# ...
end
```
"""
alias Airbrakex.{ExceptionParser, Notifier}
de... | 20.355556 | 73 | 0.628821 |
9ecd01006ba349dbf6c68feaa3d607774749e638 | 1,428 | ex | Elixir | clients/you_tube/lib/google_api/you_tube/v3/model/localized_string.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/you_tube/lib/google_api/you_tube/v3/model/localized_string.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/you_tube/lib/google_api/you_tube/v3/model/localized_string.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... | 28.56 | 74 | 0.710784 |
9ecd2345b8434bfe58e984326803b41bbd0e5cdf | 1,509 | exs | Elixir | apps/prometheus/mix.exs | thluiz/prometheus | 0936e0b1e066ed35917221628d060adf8d7aed29 | [
"MIT"
] | null | null | null | apps/prometheus/mix.exs | thluiz/prometheus | 0936e0b1e066ed35917221628d060adf8d7aed29 | [
"MIT"
] | null | null | null | apps/prometheus/mix.exs | thluiz/prometheus | 0936e0b1e066ed35917221628d060adf8d7aed29 | [
"MIT"
] | 1 | 2020-11-04T06:04:51.000Z | 2020-11-04T06:04:51.000Z | defmodule Prometheus.MixProject do
use Mix.Project
def project do
[
app: :prometheus,
version: "0.1.0",
build_path: "../../_build",
config_path: "../../config/config.exs",
deps_path: "../../deps",
lockfile: "../../mix.lock",
elixir: "~> 1.7",
elixirc_paths: elixi... | 25.576271 | 79 | 0.579192 |
9ecd31ca850a2e7c571397c16bba5d5b86dd597a | 798 | ex | Elixir | lib/todo/database_worker.ex | jaroslav-kubicek/elixir-in-action | 8add6a9a01d741c554d7395417838a8e2f5b713a | [
"MIT"
] | null | null | null | lib/todo/database_worker.ex | jaroslav-kubicek/elixir-in-action | 8add6a9a01d741c554d7395417838a8e2f5b713a | [
"MIT"
] | null | null | null | lib/todo/database_worker.ex | jaroslav-kubicek/elixir-in-action | 8add6a9a01d741c554d7395417838a8e2f5b713a | [
"MIT"
] | null | null | null | defmodule Todo.DatabaseWorker do
@moduledoc false
use GenServer
def start_link(folder) do
GenServer.start_link(__MODULE__, folder)
end
def store(pid, key, data) do
GenServer.cast(pid, {:store, key, data})
end
def get(pid, key) do
GenServer.call(pid, {:get, key})
end
# behaviours:
... | 19.95 | 55 | 0.64411 |
9ecd3404472628aa1ab2c78231671cafa1ae2e28 | 640 | ex | Elixir | lib/stathat.ex | travisjeffery/stathat | 15c0bf61de4188b0128f83f367a8aa94b870e4b4 | [
"MIT"
] | null | null | null | lib/stathat.ex | travisjeffery/stathat | 15c0bf61de4188b0128f83f367a8aa94b870e4b4 | [
"MIT"
] | null | null | null | lib/stathat.ex | travisjeffery/stathat | 15c0bf61de4188b0128f83f367a8aa94b870e4b4 | [
"MIT"
] | null | null | null | defmodule StatHat do
use Application
require Logger
def start(_type, _args) do
import Supervisor.Spec, warn: false
ez_key = Application.get_env(:stathat, :ez_key)
children = [
worker(StatHat.Server, [[ez_key: ez_key]])
]
opts = [strategy: :one_for_one, name: StatHat.Supervisor]
Supe... | 21.333333 | 61 | 0.660938 |
9ecd641243afbffb94d711bec62f5379db317361 | 696 | ex | Elixir | web/gettext.ex | alexadaze/alexa | 35fbef14f6cd884a51447553cfe2cf9794d153b3 | [
"Apache-2.0"
] | null | null | null | web/gettext.ex | alexadaze/alexa | 35fbef14f6cd884a51447553cfe2cf9794d153b3 | [
"Apache-2.0"
] | null | null | null | web/gettext.ex | alexadaze/alexa | 35fbef14f6cd884a51447553cfe2cf9794d153b3 | [
"Apache-2.0"
] | null | null | null | defmodule Alexa.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 Alexa.Gettext
# Simple translation
gettext "Here is the string ... | 27.84 | 72 | 0.675287 |
9ecd693c45588f02faf57f8c0fd64c4424396816 | 32 | exs | Elixir | test/test_helper.exs | libitx/shapeshifter | e20c49fa6b920084e427998394f72b470314f261 | [
"Apache-2.0"
] | 6 | 2020-08-10T18:33:00.000Z | 2022-03-08T12:30:15.000Z | test/test_helper.exs | libitx/shapeshifter | e20c49fa6b920084e427998394f72b470314f261 | [
"Apache-2.0"
] | 1 | 2021-01-23T18:49:33.000Z | 2021-01-24T19:48:27.000Z | test/test_helper.exs | libitx/shapeshifter | e20c49fa6b920084e427998394f72b470314f261 | [
"Apache-2.0"
] | null | null | null | ExUnit.start(exclude: :pending)
| 16 | 31 | 0.78125 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.