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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ff96cdb63d1d6e69f7c3f68819c7a0f187131cee | 3,431 | ex | Elixir | farmbot_core/lib/farmbot_core/asset_workers/regimen_instance_worker.ex | EarthEngineering/facetop_os | c82a7f1e8098d3a03dddbd2f2cb46cda7b88b6fb | [
"MIT"
] | 1 | 2021-04-22T10:18:50.000Z | 2021-04-22T10:18:50.000Z | farmbot_core/lib/farmbot_core/asset_workers/regimen_instance_worker.ex | bluewaysw/farmbot_os | 3449864bc5c17a688ec2fe75e4a5cf247da57806 | [
"MIT"
] | null | null | null | farmbot_core/lib/farmbot_core/asset_workers/regimen_instance_worker.ex | bluewaysw/farmbot_os | 3449864bc5c17a688ec2fe75e4a5cf247da57806 | [
"MIT"
] | null | null | null | defimpl FarmbotCore.AssetWorker, for: FarmbotCore.Asset.RegimenInstance do
@moduledoc """
An instance of a running Regimen. Asset.Regimen is the blueprint by which a
Regimen "instance" is created.
"""
use GenServer
require Logger
require FarmbotCore.Logger
alias FarmbotCeleryScript.AST
alias Farmbot... | 37.703297 | 127 | 0.717575 |
ff96ecfb8a04332a840f0651bfbfb9be7952571b | 1,281 | ex | Elixir | lib/issues/table_formatter.ex | LucasPaszinski/github_issues | 9da6c91d37b54727037d39d063d50ff0a18c4f8d | [
"MIT"
] | null | null | null | lib/issues/table_formatter.ex | LucasPaszinski/github_issues | 9da6c91d37b54727037d39d063d50ff0a18c4f8d | [
"MIT"
] | null | null | null | lib/issues/table_formatter.ex | LucasPaszinski/github_issues | 9da6c91d37b54727037d39d063d50ff0a18c4f8d | [
"MIT"
] | null | null | null | defmodule Issues.TableFormater do
def print_table_for_columns(rows, headers) do
with data_by_columns = split_into_columns(rows, headers),
columns_widths = widths_of(data_by_columns),
format = format_for(columns_widths) do
puts_one_line_in_columns(headers, format)
IO.puts(separator(co... | 27.847826 | 84 | 0.685402 |
ff96f29a78317159395c9c33de4d788bafed3c46 | 104 | exs | Elixir | test/srp/identity_verifier_test.exs | thiamsantos/spr | c1db6c338543ecb9ec4d855d05a125a490c1606b | [
"Apache-2.0"
] | 15 | 2018-11-03T18:39:21.000Z | 2022-02-21T22:17:50.000Z | test/srp/identity_verifier_test.exs | thiamsantos/spr | c1db6c338543ecb9ec4d855d05a125a490c1606b | [
"Apache-2.0"
] | 7 | 2018-10-27T00:13:08.000Z | 2019-05-14T16:43:36.000Z | test/srp/identity_verifier_test.exs | thiamsantos/spr | c1db6c338543ecb9ec4d855d05a125a490c1606b | [
"Apache-2.0"
] | 3 | 2019-05-14T16:24:04.000Z | 2019-07-06T21:47:40.000Z | defmodule SRP.IdentityVerifierTest do
use ExUnit.Case, async: true
doctest SRP.IdentityVerifier
end
| 20.8 | 37 | 0.817308 |
ff96f5b78593f0b30e975ca5b38f4e044ccc108c | 6,328 | ex | Elixir | apps/mishka_html/lib/mishka_html_web/live/components/admin/user/list_component.ex | mishka-group/mishka-cms | 4e34ed646f807687f4ae809e862acb6f2c5aacef | [
"Apache-2.0"
] | 35 | 2021-06-26T09:05:50.000Z | 2022-03-30T15:41:22.000Z | apps/mishka_html/lib/mishka_html_web/live/components/admin/user/list_component.ex | mishka-group/mishka-cms | 4e34ed646f807687f4ae809e862acb6f2c5aacef | [
"Apache-2.0"
] | 101 | 2021-01-01T09:54:07.000Z | 2022-03-28T10:02:24.000Z | apps/mishka_html/lib/mishka_html_web/live/components/admin/user/list_component.ex | mishka-group/mishka-cms | 4e34ed646f807687f4ae809e862acb6f2c5aacef | [
"Apache-2.0"
] | 8 | 2021-01-17T17:08:07.000Z | 2022-03-11T16:12:06.000Z | defmodule MishkaHtmlWeb.Admin.User.ListComponent do
use MishkaHtmlWeb, :live_component
def render(assigns) do
~L"""
<div class="col bw admin-blog-post-list">
<div class="table-responsive">
<table class="table vazir">
<thead>
<tr>
... | 57.009009 | 184 | 0.437579 |
ff96fb893118b4eb4b7ae98211be7b873dfde4a3 | 1,167 | ex | Elixir | clients/private_ca/lib/google_api/private_ca/v1beta1/connection.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/private_ca/lib/google_api/private_ca/v1beta1/connection.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/private_ca/lib/google_api/private_ca/v1beta1/connection.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... | 35.363636 | 114 | 0.741217 |
ff97080d44a4530283d8f1bd4ad1f09183e6a838 | 875 | ex | Elixir | lib/rocketpay_web/controllers/accounts_controller.ex | tairone-livinalli/rocketpay | f58be9330b678a486d717613790e9e3d9f0fe9d1 | [
"MIT"
] | null | null | null | lib/rocketpay_web/controllers/accounts_controller.ex | tairone-livinalli/rocketpay | f58be9330b678a486d717613790e9e3d9f0fe9d1 | [
"MIT"
] | null | null | null | lib/rocketpay_web/controllers/accounts_controller.ex | tairone-livinalli/rocketpay | f58be9330b678a486d717613790e9e3d9f0fe9d1 | [
"MIT"
] | null | null | null | defmodule RocketpayWeb.AccountsController do
use RocketpayWeb, :controller
alias Rocketpay.Account
alias Rocketpay.Accounts.Transactions.Response, as: TransactionResponse
action_fallback RocketpayWeb.FallbackController
def deposit(conn, params) do
with {:ok, %Account{} = account} <- Rocketpay.deposit(p... | 26.515152 | 88 | 0.678857 |
ff971819292631bf2babc04bf3784d6e9a24b14c | 127 | ex | Elixir | lib/blog/repo.ex | cuongkta/login_logout_elixir | 71ad24e1077402fa719ce52fb3bc2a77510b1b86 | [
"Apache-2.0"
] | null | null | null | lib/blog/repo.ex | cuongkta/login_logout_elixir | 71ad24e1077402fa719ce52fb3bc2a77510b1b86 | [
"Apache-2.0"
] | null | null | null | lib/blog/repo.ex | cuongkta/login_logout_elixir | 71ad24e1077402fa719ce52fb3bc2a77510b1b86 | [
"Apache-2.0"
] | null | null | null | defmodule Blog.Repo do
#use Ecto.Repo, otp_app: :blog
use Ecto.Repo, adapter: Ecto.Adapters.Postgres, otp_app: :blog
end
| 18.142857 | 64 | 0.732283 |
ff972d8ba6469eba95945f032bef0c398cb4079a | 586 | exs | Elixir | test/wobserver2/util/port_test.exs | aruki-delivery/wobserver | 7db6b219b405defc1e28bd86836f9a90eed235b6 | [
"MIT"
] | null | null | null | test/wobserver2/util/port_test.exs | aruki-delivery/wobserver | 7db6b219b405defc1e28bd86836f9a90eed235b6 | [
"MIT"
] | null | null | null | test/wobserver2/util/port_test.exs | aruki-delivery/wobserver | 7db6b219b405defc1e28bd86836f9a90eed235b6 | [
"MIT"
] | null | null | null | defmodule Wobserver2.PortTest do
use ExUnit.Case
alias Wobserver2.Port
describe "list" do
test "returns a list" do
assert is_list(Port.list())
end
test "returns a list of maps" do
assert is_map(List.first(Port.list()))
end
test "returns a list of table information" do
ass... | 20.206897 | 49 | 0.494881 |
ff97814fb1606fc0b1622b2bc5cae3a9529207a3 | 723 | ex | Elixir | lib/expokefight_web/gettext.ex | vbertazzo/expokefight | 19b6bd39af43e17c3ee14eab845cb24fb71d6d80 | [
"MIT"
] | null | null | null | lib/expokefight_web/gettext.ex | vbertazzo/expokefight | 19b6bd39af43e17c3ee14eab845cb24fb71d6d80 | [
"MIT"
] | null | null | null | lib/expokefight_web/gettext.ex | vbertazzo/expokefight | 19b6bd39af43e17c3ee14eab845cb24fb71d6d80 | [
"MIT"
] | null | null | null | defmodule ExpokefightWeb.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 ExpokefightWeb.Gettext
# Simple translation
gettext("H... | 28.92 | 72 | 0.683264 |
ff97ae3ddeba5b4a375fc3f2cc3b635d249d019e | 3,634 | ex | Elixir | lib/grizzly/zwave/commands/node_add_dsk_report.ex | smartrent/grizzly | 65a397ea7bfedb5518fe63a3f058a0b6af473e39 | [
"Apache-2.0"
] | 76 | 2019-09-04T16:56:58.000Z | 2022-03-29T06:54:36.000Z | lib/grizzly/zwave/commands/node_add_dsk_report.ex | smartrent/grizzly | 65a397ea7bfedb5518fe63a3f058a0b6af473e39 | [
"Apache-2.0"
] | 124 | 2019-09-05T14:01:24.000Z | 2022-02-28T22:58:14.000Z | lib/grizzly/zwave/commands/node_add_dsk_report.ex | smartrent/grizzly | 65a397ea7bfedb5518fe63a3f058a0b6af473e39 | [
"Apache-2.0"
] | 10 | 2019-10-23T19:25:45.000Z | 2021-11-17T13:21:20.000Z | defmodule Grizzly.ZWave.Commands.NodeAddDSKReport do
@moduledoc """
The Z-Wave Command `NODE_ADD_DSK_REPORT`
This report is used by the including controller to ask for the DSK
for the device that is being included.
## Params
- `:seq_number` - sequence number for the command (required)
- `:input_dsk... | 29.786885 | 98 | 0.656577 |
ff97bf8eeb43996c411d19d0cf530c1580ca23ad | 3,989 | ex | Elixir | DL-SMTP/DL-SMTP.ELEMENT-IoT.ex | Realscrat/decentlab-decoders | 3ca5006cd85e3772a15a1b3fff3922c50979eeb6 | [
"MIT"
] | 13 | 2020-01-18T22:08:44.000Z | 2022-02-06T14:19:57.000Z | DL-SMTP/DL-SMTP.ELEMENT-IoT.ex | johannesE/decentlab-decoders | c290ea1218de2c82d665fdc9f71f16682e12d917 | [
"MIT"
] | 4 | 2019-05-10T07:17:41.000Z | 2021-10-20T16:24:04.000Z | DL-SMTP/DL-SMTP.ELEMENT-IoT.ex | johannesE/decentlab-decoders | c290ea1218de2c82d665fdc9f71f16682e12d917 | [
"MIT"
] | 15 | 2019-06-04T06:13:32.000Z | 2022-02-15T07:28:52.000Z |
# https://www.decentlab.com/products/soil-moisture-and-temperature-profile-for-lorawan
defmodule Parser do
use Platform.Parsing.Behaviour
## test payloads
# 020b50000309018a8c09438a9809278a920b3c8aa50c9c8a8c11e08aa500000000000000000b3b
# 020b5000020b3b
def fields do
[
%{field: "soil_moisture... | 51.141026 | 277 | 0.60015 |
ff97d7c07cca30b4415cb3103527e933da0957be | 6,366 | exs | Elixir | test/plug/session/cookie_test.exs | qcam/plug | c547f2bd7a64aec7c4759dcc1ed88b6eab0c7499 | [
"Apache-2.0"
] | null | null | null | test/plug/session/cookie_test.exs | qcam/plug | c547f2bd7a64aec7c4759dcc1ed88b6eab0c7499 | [
"Apache-2.0"
] | null | null | null | test/plug/session/cookie_test.exs | qcam/plug | c547f2bd7a64aec7c4759dcc1ed88b6eab0c7499 | [
"Apache-2.0"
] | null | null | null | defmodule Plug.Session.CookieTest do
use ExUnit.Case, async: true
use Plug.Test
alias Plug.Session.COOKIE, as: CookieStore
@default_opts [
store: :cookie,
key: "foobar",
encryption_salt: "encrypted cookie salt",
signing_salt: "signing salt",
log: false
]
@secret String.duplicate("abcd... | 29.472222 | 98 | 0.625825 |
ff97ef103a20bf0dac00f533107ca8521f53c146 | 2,260 | ex | Elixir | lib/mix/tasks/compile.nerves_package.ex | petermm/nerves | 173b0a424177f45f77db4206406d9c98f1d73e95 | [
"Apache-2.0"
] | null | null | null | lib/mix/tasks/compile.nerves_package.ex | petermm/nerves | 173b0a424177f45f77db4206406d9c98f1d73e95 | [
"Apache-2.0"
] | null | null | null | lib/mix/tasks/compile.nerves_package.ex | petermm/nerves | 173b0a424177f45f77db4206406d9c98f1d73e95 | [
"Apache-2.0"
] | null | null | null | defmodule Mix.Tasks.Compile.NervesPackage do
use Mix.Task
import Mix.Nerves.IO
require Logger
@moduledoc """
Build a Nerves Artifact from a Nerves Package
"""
@shortdoc "Nerves Package Compiler"
@recursive true
@impl true
def run(_args) do
debug_info("Compile.NervesPackage start")
if Ne... | 23.789474 | 90 | 0.595575 |
ff980efda11afdc357629ba67dbf1f2fa958ec9b | 403 | exs | Elixir | apps/tai/lib/tai/events/stream_error_test.exs | ihorkatkov/tai | 09f9f15d2c385efe762ae138a8570f1e3fd41f26 | [
"MIT"
] | 1 | 2019-12-19T05:16:26.000Z | 2019-12-19T05:16:26.000Z | apps/tai/lib/tai/events/stream_error_test.exs | ihorkatkov/tai | 09f9f15d2c385efe762ae138a8570f1e3fd41f26 | [
"MIT"
] | null | null | null | apps/tai/lib/tai/events/stream_error_test.exs | ihorkatkov/tai | 09f9f15d2c385efe762ae138a8570f1e3fd41f26 | [
"MIT"
] | 1 | 2020-05-03T23:32:11.000Z | 2020-05-03T23:32:11.000Z | defmodule Tai.Events.StreamErrorTest do
use ExUnit.Case, async: true
test ".to_data/1 transforms reason to a string" do
event = %Tai.Events.StreamError{
venue_id: :my_venue,
reason: {:function_clause, "Some error"}
}
assert Tai.LogEvent.to_data(event) == %{
venue_id: :my_venue... | 25.1875 | 57 | 0.617866 |
ff9811e9adb25678447e10bbd8872fb07ed181c7 | 328 | ex | Elixir | lib/streaming_metrics.ex | smartcitiesdata/streaming-metrics | deada3f52d9763e5b257199a6c2ec0a098515616 | [
"Apache-2.0"
] | 1 | 2019-07-09T15:49:02.000Z | 2019-07-09T15:49:02.000Z | lib/streaming_metrics.ex | smartcitiesdata/streaming-metrics | deada3f52d9763e5b257199a6c2ec0a098515616 | [
"Apache-2.0"
] | 1 | 2021-05-28T16:43:38.000Z | 2021-05-28T16:43:38.000Z | lib/streaming_metrics.ex | Datastillery/streaming_metrics | deada3f52d9763e5b257199a6c2ec0a098515616 | [
"Apache-2.0"
] | null | null | null | defmodule StreamingMetrics do
@moduledoc false
use Application
def start(_type, _args) do
Application.get_env(:streaming_metrics, :collector, StreamingMetrics.ConsoleMetricCollector).init()
children = [
StreamingMetrics.Hostname
]
Supervisor.start_link(children, strategy: :one_for_one)
... | 21.866667 | 103 | 0.75 |
ff98658f46976429b5fff035950a9d7e5c8f7808 | 1,393 | ex | Elixir | lib/polimorfismo_web/endpoint.ex | jobsonita/rocketseat-yt-cd-111-elixir-protocols | d5e683ff53fa764dd4b8adae6f75ef1abd010d97 | [
"MIT"
] | null | null | null | lib/polimorfismo_web/endpoint.ex | jobsonita/rocketseat-yt-cd-111-elixir-protocols | d5e683ff53fa764dd4b8adae6f75ef1abd010d97 | [
"MIT"
] | null | null | null | lib/polimorfismo_web/endpoint.ex | jobsonita/rocketseat-yt-cd-111-elixir-protocols | d5e683ff53fa764dd4b8adae6f75ef1abd010d97 | [
"MIT"
] | null | null | null | defmodule PolimorfismoWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :polimorfismo
# The session will be stored in the cookie and signed,
# this means its contents can be read but not tampered with.
# Set :encryption_salt if you would also like to encrypt it.
@session_options [
store: :cookie,
key: "... | 29.020833 | 97 | 0.720029 |
ff9871513365c04a92da7abf34ea1fd679d03287 | 847 | ex | Elixir | apps/concierge_site/lib/users/confirmation_message.ex | mbta/alerts_concierge | d8e643445ef06f80ca273f2914c6959daea146f6 | [
"MIT"
] | null | null | null | apps/concierge_site/lib/users/confirmation_message.ex | mbta/alerts_concierge | d8e643445ef06f80ca273f2914c6959daea146f6 | [
"MIT"
] | 21 | 2021-03-12T17:05:30.000Z | 2022-02-16T21:48:35.000Z | apps/concierge_site/lib/users/confirmation_message.ex | mbta/alerts_concierge | d8e643445ef06f80ca273f2914c6959daea146f6 | [
"MIT"
] | 1 | 2021-12-09T15:09:53.000Z | 2021-12-09T15:09:53.000Z | defmodule ConciergeSite.ConfirmationMessage do
@moduledoc """
Handles user confirmation messaging
"""
alias AlertProcessor.Model.Notification
alias AlertProcessor.Dissemination.NotificationSender
alias ConciergeSite.Dissemination.{Email, Mailer}
def send_email_confirmation(user) do
user
|> Email.... | 28.233333 | 84 | 0.698937 |
ff98722f7674b8d592df7f00d2a61fd03cde8387 | 479 | exs | Elixir | config/config.exs | gcalmettes/fieldbot-aoc | a64868eb3c7b5e6c621cfb4fc9439b569a3a0d56 | [
"BSD-3-Clause"
] | 1 | 2020-12-09T12:48:23.000Z | 2020-12-09T12:48:23.000Z | config/config.exs | gcalmettes/fieldbot-aoc | a64868eb3c7b5e6c621cfb4fc9439b569a3a0d56 | [
"BSD-3-Clause"
] | 3 | 2021-01-12T19:28:12.000Z | 2021-12-01T21:35:21.000Z | config/config.exs | gcalmettes/fieldbot-aoc | a64868eb3c7b5e6c621cfb4fc9439b569a3a0d56 | [
"BSD-3-Clause"
] | 1 | 2021-01-10T12:27:15.000Z | 2021-01-10T12:27:15.000Z | import Config
config :elixir, :time_zone_database, Tzdata.TimeZoneDatabase
config :aoc, Aoc.Scheduler,
jobs: [
{"0 4 * * *", &Aoc.Scheduler.aocbot_updates/0},
{"0 1,12,18 * * *", &Aoc.Scheduler.aocbot_stats/0},
{"1 5 * * *", &Aoc.Scheduler.aocbot_today/0},
{"5,20,35,50 * * *", &Aoc.Scheduler.aocbot_... | 25.210526 | 60 | 0.655532 |
ff987e8a7b5207aeb6e39790b7173b4135371203 | 1,868 | ex | Elixir | lib/mix/lib/mix/tasks/local.hex.ex | IvanRublev/elixir | 1ce201aa1ebbfc1666c4e4bde64f706a89629d59 | [
"Apache-2.0"
] | 2 | 2018-11-15T06:38:14.000Z | 2018-11-17T18:03:14.000Z | lib/mix/lib/mix/tasks/local.hex.ex | IvanRublev/elixir | 1ce201aa1ebbfc1666c4e4bde64f706a89629d59 | [
"Apache-2.0"
] | 1 | 2019-04-25T12:52:49.000Z | 2019-04-25T13:27:31.000Z | lib/mix/lib/mix/tasks/local.hex.ex | IvanRublev/elixir | 1ce201aa1ebbfc1666c4e4bde64f706a89629d59 | [
"Apache-2.0"
] | 1 | 2018-01-09T20:10:59.000Z | 2018-01-09T20:10:59.000Z | defmodule Mix.Tasks.Local.Hex do
use Mix.Task
@hex_list_path "/installs/hex-1.x.csv"
@hex_archive_path "/installs/[ELIXIR_VERSION]/hex-[HEX_VERSION].ez"
@shortdoc "Installs Hex locally"
@moduledoc """
Installs Hex locally.
mix local.hex
## Command line options
* `--force` - forces installa... | 26.309859 | 92 | 0.668094 |
ff988d839754621025d321102b4f632ebbc51c2d | 3,638 | ex | Elixir | lib/client.ex | xirsys/xturn-websocket-logger | b10f038ec9de64978f919ad91ead905b0816f1af | [
"Apache-2.0"
] | null | null | null | lib/client.ex | xirsys/xturn-websocket-logger | b10f038ec9de64978f919ad91ead905b0816f1af | [
"Apache-2.0"
] | null | null | null | lib/client.ex | xirsys/xturn-websocket-logger | b10f038ec9de64978f919ad91ead905b0816f1af | [
"Apache-2.0"
] | null | null | null | ### ----------------------------------------------------------------------
###
### Copyright (c) 2013 - 2018 Lee Sylvester and Xirsys LLC <experts@xirsys.com>
###
### All rights reserved.
###
### XTurn is licensed by Xirsys under the Apache
### License, Version 2.0. (the "License");
###
### you may not use this file ex... | 31.362069 | 123 | 0.448873 |
ff98c5b960ef7887bc3777e0222baa5ebc8f584a | 292 | ex | Elixir | lib/phoenix_absinthe_dataloader_kv_web/resolvers.ex | alexandrubagu/phoenie_absinthe_dataloader_kv | b75ceabe6e384a56b40144e35624bcbd823af273 | [
"MIT"
] | null | null | null | lib/phoenix_absinthe_dataloader_kv_web/resolvers.ex | alexandrubagu/phoenie_absinthe_dataloader_kv | b75ceabe6e384a56b40144e35624bcbd823af273 | [
"MIT"
] | 3 | 2020-05-08T21:01:07.000Z | 2020-05-08T21:01:07.000Z | lib/phoenix_absinthe_dataloader_kv_web/resolvers.ex | alexandrubagu/phoenie_absinthe_dataloader_kv | b75ceabe6e384a56b40144e35624bcbd823af273 | [
"MIT"
] | 2 | 2019-02-14T13:43:45.000Z | 2020-02-28T22:04:33.000Z | defmodule PhoenixAbsintheDataloaderKvWeb.Resolvers do
alias PhoenixAbsintheDataloaderKv.Core
def list_webpages(_parent, _args, _resolution) do
{:ok, Core.list_webpages()}
end
def get_link(%{id: webpage_id}, _args, _resolution) do
{:ok, Core.get_links(webpage_id)}
end
end
| 24.333333 | 56 | 0.756849 |
ff98e00c20589a2b8c7915b8a897a769023e11ac | 2,148 | ex | Elixir | clients/fonts/lib/google_api/fonts/v1/deserializer.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/fonts/lib/google_api/fonts/v1/deserializer.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/fonts/lib/google_api/fonts/v1/deserializer.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | 1 | 2018-07-28T20:50:50.000Z | 2018-07-28T20:50:50.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 35.8 | 139 | 0.687616 |
ff992abf6a202198db81b36280e3803ed37c8573 | 1,209 | ex | Elixir | lib/2020/day3.ex | Bentheburrito/adventofcode | 6fca0933c2a0e541567fe9f8bc34df4a048b5d8a | [
"MIT"
] | null | null | null | lib/2020/day3.ex | Bentheburrito/adventofcode | 6fca0933c2a0e541567fe9f8bc34df4a048b5d8a | [
"MIT"
] | null | null | null | lib/2020/day3.ex | Bentheburrito/adventofcode | 6fca0933c2a0e541567fe9f8bc34df4a048b5d8a | [
"MIT"
] | null | null | null | defmodule AOC.Day3 do
def run(input) do
map = input |> String.split("\n")
trees1 = AOC.time(&tree_count/3, [map, 3, 1])
IO.puts "Number of trees hit (3, 1): #{trees1}"
trees2 = AOC.time(&tree_count/3, [map, 1, 1])
IO.puts "Number of trees hit (1, 1): #{trees2}"
trees3 = AOC.time(&tree_count/3, [map, 5, 1]... | 37.78125 | 136 | 0.638544 |
ff992d2b3bb9da5eaa8449bd9964fc3ac5821ce8 | 389 | ex | Elixir | apps/hefty/lib/hefty/trader_supervisor.ex | Soimil/Igthorn | 6187a94d7a75a28f3c42b357fa7cc211cfe4bafe | [
"MIT"
] | null | null | null | apps/hefty/lib/hefty/trader_supervisor.ex | Soimil/Igthorn | 6187a94d7a75a28f3c42b357fa7cc211cfe4bafe | [
"MIT"
] | null | null | null | apps/hefty/lib/hefty/trader_supervisor.ex | Soimil/Igthorn | 6187a94d7a75a28f3c42b357fa7cc211cfe4bafe | [
"MIT"
] | null | null | null | defmodule Hefty.TraderSupervisor do
use Supervisor
def start_link() do
Supervisor.start_link(
__MODULE__,
[],
name: __MODULE__
)
end
def init(_args) do
children = [
worker(Hefty.NaiveTrader, [])
]
opts = [strategy: :simple_one_for_one, max_restarts: 5, max_seconds:... | 15.56 | 75 | 0.611825 |
ff9957e0deb9dc0cd094d533e3319489711cac47 | 237 | exs | Elixir | apps/error/spec/spec_helper.exs | mikrofusion/passwordless | 26621389cc0e8e307080b1eb5be42b0527e6611b | [
"MIT"
] | null | null | null | apps/error/spec/spec_helper.exs | mikrofusion/passwordless | 26621389cc0e8e307080b1eb5be42b0527e6611b | [
"MIT"
] | null | null | null | apps/error/spec/spec_helper.exs | mikrofusion/passwordless | 26621389cc0e8e307080b1eb5be42b0527e6611b | [
"MIT"
] | null | null | null | ExUnit.start
{:ok, _} = Application.ensure_all_started(:ex_machina)
Code.require_file("spec/factories/factory.exs")
ESpec.configure fn(config) ->
config.before fn ->
:ok
end
config.finally fn(_shared) ->
:ok
end
end
| 13.941176 | 54 | 0.687764 |
ff996125b0e47fde30a15873e808aa3065dc472b | 96 | exs | Elixir | examples/phoenix_example/test/phoenix_example_web/views/layout_view_test.exs | kianmeng/ex_health | f7311d5e23e8cfbb6dd91381a52a420345331535 | [
"MIT"
] | 9 | 2019-03-16T21:24:57.000Z | 2021-12-29T21:31:16.000Z | examples/phoenix_example/test/phoenix_example_web/views/layout_view_test.exs | kianmeng/ex_health | f7311d5e23e8cfbb6dd91381a52a420345331535 | [
"MIT"
] | 13 | 2018-12-11T16:43:26.000Z | 2022-02-09T23:08:01.000Z | examples/phoenix_example/test/phoenix_example_web/views/layout_view_test.exs | kianmeng/ex_health | f7311d5e23e8cfbb6dd91381a52a420345331535 | [
"MIT"
] | 4 | 2019-09-18T00:54:04.000Z | 2021-05-09T05:30:47.000Z | defmodule PhoenixExampleWeb.LayoutViewTest do
use PhoenixExampleWeb.ConnCase, async: true
end
| 24 | 45 | 0.854167 |
ff9991e84a3514f30b36e28d6937e49a9985543d | 3,915 | exs | Elixir | host_core/test/e2e/echo_test.exs | nickisonpar/wasmcloud-otp | eab10ddba11d86f5172441b8f8075c97d47d9a8e | [
"Apache-2.0"
] | null | null | null | host_core/test/e2e/echo_test.exs | nickisonpar/wasmcloud-otp | eab10ddba11d86f5172441b8f8075c97d47d9a8e | [
"Apache-2.0"
] | null | null | null | host_core/test/e2e/echo_test.exs | nickisonpar/wasmcloud-otp | eab10ddba11d86f5172441b8f8075c97d47d9a8e | [
"Apache-2.0"
] | null | null | null | defmodule HostCore.E2E.EchoTest do
use ExUnit.Case, async: false
setup do
{:ok, evt_watcher} =
GenServer.start_link(HostCoreTest.EventWatcher, HostCore.Host.lattice_prefix())
[
evt_watcher: evt_watcher
]
end
@echo_key HostCoreTest.Constants.echo_key()
@echo_path HostCoreTest.Constan... | 29.43609 | 100 | 0.66539 |
ff9a01b522d5664f88bbd8e09c86683e037a9d21 | 1,249 | exs | Elixir | mix.exs | typesend/princess | 948f3afdeab20deef3debecddc3440031f836e36 | [
"MIT"
] | 3 | 2020-05-24T01:30:14.000Z | 2020-06-20T20:32:37.000Z | mix.exs | typesend/princess | 948f3afdeab20deef3debecddc3440031f836e36 | [
"MIT"
] | null | null | null | mix.exs | typesend/princess | 948f3afdeab20deef3debecddc3440031f836e36 | [
"MIT"
] | null | null | null | defmodule Princess.MixProject do
use Mix.Project
def project do
[
app: :princess,
version: "0.1.0",
elixir: "~> 1.10",
start_permanent: Mix.env() == :prod,
description: description(),
package: package(),
deps: deps(),
name: "Princess",
source_url: "https://... | 21.912281 | 110 | 0.582866 |
ff9a0c8c33e3fd99dc569ba82b6f96a53e9b99f9 | 567 | exs | Elixir | prime/mix.exs | TraceyOnim/prime_numbers | 91b2fd4d54135466e3681307d9b419bb151a05b3 | [
"Apache-2.0"
] | null | null | null | prime/mix.exs | TraceyOnim/prime_numbers | 91b2fd4d54135466e3681307d9b419bb151a05b3 | [
"Apache-2.0"
] | null | null | null | prime/mix.exs | TraceyOnim/prime_numbers | 91b2fd4d54135466e3681307d9b419bb151a05b3 | [
"Apache-2.0"
] | null | null | null | defmodule Prime.MixProject do
use Mix.Project
def project do
[
app: :prime,
version: "0.1.0",
elixir: "~> 1.8",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applica... | 19.551724 | 87 | 0.573192 |
ff9a2a5212e9c0a33d55751fe6d2539abf8bc4d0 | 84 | ex | Elixir | lib/phoenix_example_app_web/views/session_view.ex | dreamingechoes/phoenix-example-app | 9b3e9cd0c7acbe2ffee627c58b0150fe0e811780 | [
"MIT"
] | 2 | 2018-06-03T19:33:09.000Z | 2020-01-14T03:19:05.000Z | lib/phoenix_example_app_web/views/session_view.ex | dreamingechoes/phoenix-example-app | 9b3e9cd0c7acbe2ffee627c58b0150fe0e811780 | [
"MIT"
] | null | null | null | lib/phoenix_example_app_web/views/session_view.ex | dreamingechoes/phoenix-example-app | 9b3e9cd0c7acbe2ffee627c58b0150fe0e811780 | [
"MIT"
] | 1 | 2018-06-22T00:00:39.000Z | 2018-06-22T00:00:39.000Z | defmodule PhoenixExampleAppWeb.SessionView do
use PhoenixExampleAppWeb, :view
end
| 21 | 45 | 0.857143 |
ff9a583b32deb681526f404b2cce4db0de48cfe2 | 3,056 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/resource_policy_aggregated_list.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/resource_policy_aggregated_list.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/resource_policy_aggregated_list.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... | 45.61194 | 393 | 0.71106 |
ff9a5b53c1a3c5992d2c6ebfb145f56151e4f3b3 | 3,077 | ex | Elixir | clients/jobs/lib/google_api/jobs/v2/model/compensation_entry.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/jobs/lib/google_api/jobs/v2/model/compensation_entry.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/jobs/lib/google_api/jobs/v2/model/compensation_entry.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... | 38.4625 | 142 | 0.703932 |
ff9a5c99358a0453805f955519b1739905dba597 | 975 | exs | Elixir | elixir/config/test.exs | VitorFirmino/NLW-7 | 16d3319c6bcf2308ef6ea5fdf8257be78887a190 | [
"MIT"
] | null | null | null | elixir/config/test.exs | VitorFirmino/NLW-7 | 16d3319c6bcf2308ef6ea5fdf8257be78887a190 | [
"MIT"
] | null | null | null | elixir/config/test.exs | VitorFirmino/NLW-7 | 16d3319c6bcf2308ef6ea5fdf8257be78887a190 | [
"MIT"
] | null | null | null | import Config
# Configure your database
#
# The MIX_TEST_PARTITION environment variable can be used
# to provide built-in test partitioning in CI environment.
# Run `mix help test` for more information.
config :elixer, Elixer.Repo,
username: "postgres",
password: "postgres",
database: "elixer_test#{System.get_en... | 31.451613 | 86 | 0.757949 |
ff9a6f59d7f3d24fefc41a30407c6f825abf23f6 | 489 | ex | Elixir | lib/re_web/auth/guardian_pipeline.ex | diemesleno/backend | a55f9c846cc826b5269f3fd6ce19223f0c6a1682 | [
"MIT"
] | 1 | 2020-01-23T04:24:58.000Z | 2020-01-23T04:24:58.000Z | lib/re_web/auth/guardian_pipeline.ex | diemesleno/backend | a55f9c846cc826b5269f3fd6ce19223f0c6a1682 | [
"MIT"
] | null | null | null | lib/re_web/auth/guardian_pipeline.ex | diemesleno/backend | a55f9c846cc826b5269f3fd6ce19223f0c6a1682 | [
"MIT"
] | 1 | 2019-12-31T16:11:21.000Z | 2019-12-31T16:11:21.000Z | defmodule ReWeb.GuardianPipeline do
@moduledoc """
Module to define guardian related plugs into a pipeline
"""
@claims %{typ: "access"}
use Guardian.Plug.Pipeline,
otp_app: :re,
module: ReWeb.Guardian,
error_handler: ReWeb.Guardian.AuthErrorHandler
plug(Guardian.Plug.VerifySession, claims: @cl... | 28.764706 | 67 | 0.742331 |
ff9ab25bc086be9b58ff372f9856497d25b13608 | 2,356 | exs | Elixir | test/Rules/RuleEvaluator_test.exs | davidgrupp/Flea | a15bb7d4b121b08155862b390dfe1626bbdc5840 | [
"Apache-2.0"
] | null | null | null | test/Rules/RuleEvaluator_test.exs | davidgrupp/Flea | a15bb7d4b121b08155862b390dfe1626bbdc5840 | [
"Apache-2.0"
] | null | null | null | test/Rules/RuleEvaluator_test.exs | davidgrupp/Flea | a15bb7d4b121b08155862b390dfe1626bbdc5840 | [
"Apache-2.0"
] | null | null | null | defmodule RuleEvaluatorTest do
use ExUnit.Case
test "evaluate single - v IS f - 0.5", do: evaluate_single({ 0, 0, 10, 20, :is, 15, 0.5 })
test "evaluate single - v NOT f - 0.5", do: evaluate_single({ 0, 0, 10, 20, :isnot, 15, 0.5 })
test "evaluate single - v IS f - 0.75", do: evaluate_single({ 0, 0, ... | 51.217391 | 138 | 0.58871 |
ff9ab2bb487e2dc6c3f5f976cde34e06ff049f2d | 2,349 | ex | Elixir | clients/content/lib/google_api/content/v21/model/orders_reject_return_line_item_request.ex | kaaboaye/elixir-google-api | 1896784c4342151fd25becd089a5beb323eff567 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v21/model/orders_reject_return_line_item_request.ex | kaaboaye/elixir-google-api | 1896784c4342151fd25becd089a5beb323eff567 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v21/model/orders_reject_return_line_item_request.ex | kaaboaye/elixir-google-api | 1896784c4342151fd25becd089a5beb323eff567 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 37.887097 | 185 | 0.699021 |
ff9ab4fe1e6c137ea4756cb877d7e2e22674b523 | 12,229 | exs | Elixir | apps/blockchain/test/blockchain/transaction_test.exs | atoulme/mana | cff3fd96c23feaaeb9fe32df3c0d35ee6dc548a5 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | null | null | null | apps/blockchain/test/blockchain/transaction_test.exs | atoulme/mana | cff3fd96c23feaaeb9fe32df3c0d35ee6dc548a5 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | null | null | null | apps/blockchain/test/blockchain/transaction_test.exs | atoulme/mana | cff3fd96c23feaaeb9fe32df3c0d35ee6dc548a5 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | null | null | null | defmodule Blockchain.TransactionTest do
use ExUnit.Case, async: true
use EthCommonTest.Harness
doctest Blockchain.Transaction
alias Blockchain.{Account, Chain, Transaction}
alias Blockchain.Account.Repo
alias Blockchain.Transaction.Signature
alias EVM.MachineCode
alias ExthCrypto.Hash.Keccak
alias M... | 26.995585 | 118 | 0.590155 |
ff9ab5bacc3e48c09b1f43bfd5bc1171bcb8132f | 1,342 | ex | Elixir | kousa/lib/broth/message/_types/operator.ex | Bilal-Akkil/dogehouse | 11aebdd1ae7e97732e43e618f0662f2afbee22a6 | [
"MIT"
] | 2 | 2021-05-15T12:46:12.000Z | 2021-05-15T14:15:16.000Z | kousa/lib/broth/message/_types/operator.ex | ActuallyTomas/dogehouse | 8c3d2cd1d7e99e173f0658759467a391c4a90c4e | [
"MIT"
] | null | null | null | kousa/lib/broth/message/_types/operator.ex | ActuallyTomas/dogehouse | 8c3d2cd1d7e99e173f0658759467a391c4a90c4e | [
"MIT"
] | 1 | 2021-05-05T15:57:23.000Z | 2021-05-05T15:57:23.000Z | import EctoEnum
alias Broth.Message.User
alias Broth.Message.Room
alias Broth.Message.Chat
alias Broth.Message.Auth
alias Broth.Message.Misc
defenum(
Broth.Message.Types.Operator,
[
# user commands and casts: 0..63
{User.GetFollowing, 1},
{User.GetFollowers, 2},
{User.Follow, 3},
{User.Ban, 4}... | 23.54386 | 45 | 0.607303 |
ff9acc80cadee0173676682c813bfdeaa195be41 | 1,123 | ex | Elixir | lib/camino_challenge_web/controllers/params/ContratoParams.ex | kadmohardy/camino_challenge | 53117f763c0a51b0825cac18b799b7d772781671 | [
"MIT"
] | null | null | null | lib/camino_challenge_web/controllers/params/ContratoParams.ex | kadmohardy/camino_challenge | 53117f763c0a51b0825cac18b799b7d772781671 | [
"MIT"
] | null | null | null | lib/camino_challenge_web/controllers/params/ContratoParams.ex | kadmohardy/camino_challenge | 53117f763c0a51b0825cac18b799b7d772781671 | [
"MIT"
] | null | null | null | defmodule CaminoChallenge.Api.Params.ContratoParams do
alias CaminoChallenge.Validations
require Logger
use Params.Schema, %{
nome: :string,
descricao: :string,
partes: :string,
data: :date,
arquivo: CaminoChallenge.Uploaders.Pdf.Type
}
import Ecto.Changeset
def child(ch, params) do
... | 24.955556 | 80 | 0.690116 |
ff9add1088cf83060ef3ef107189e7ffed22f8f4 | 3,472 | exs | Elixir | test/grizzly/zwave/commands/door_lock_configuration_report_test.exs | smartrent/grizzly | 65a397ea7bfedb5518fe63a3f058a0b6af473e39 | [
"Apache-2.0"
] | 76 | 2019-09-04T16:56:58.000Z | 2022-03-29T06:54:36.000Z | test/grizzly/zwave/commands/door_lock_configuration_report_test.exs | smartrent/grizzly | 65a397ea7bfedb5518fe63a3f058a0b6af473e39 | [
"Apache-2.0"
] | 124 | 2019-09-05T14:01:24.000Z | 2022-02-28T22:58:14.000Z | test/grizzly/zwave/commands/door_lock_configuration_report_test.exs | smartrent/grizzly | 65a397ea7bfedb5518fe63a3f058a0b6af473e39 | [
"Apache-2.0"
] | 10 | 2019-10-23T19:25:45.000Z | 2021-11-17T13:21:20.000Z | defmodule Grizzly.ZWave.Commands.DoorLockConfigurationReportTest do
use ExUnit.Case, async: true
alias Grizzly.ZWave.Commands.DoorLockConfigurationReport
describe "creates the command and validates params" do
test "v1-3" do
params = [
operation_type: :constant_operation,
manual_outside... | 36.166667 | 94 | 0.658986 |
ff9af1b559b4e9a61df8fab1fa5752092346a00c | 6,609 | ex | Elixir | lib/evo.ex | cas27/evo | 4ca1945749014917b7a3af870c1cd4db645cb09b | [
"Apache-2.0"
] | 3 | 2016-07-20T22:45:32.000Z | 2017-05-03T17:15:39.000Z | lib/evo.ex | cas27/evo | 4ca1945749014917b7a3af870c1cd4db645cb09b | [
"Apache-2.0"
] | null | null | null | lib/evo.ex | cas27/evo | 4ca1945749014917b7a3af870c1cd4db645cb09b | [
"Apache-2.0"
] | null | null | null | defmodule Evo do
use Application
alias Evo.Cart
alias Evo.Cart.Supervisor, as: CartSupervisor
@doc """
Adds an Ecto.Cart.CartItem to the cart
## Example
iex> cart_id = 101
iex> Evo.create_or_get_cart(cart_id)
iex> item = %Evo.Cart.CartItem{id: "APPL2", name: "Apple",
...> price... | 31.174528 | 81 | 0.605084 |
ff9b01171d116ceeecbc3ad0ccf8bf8b9297a317 | 3,040 | ex | Elixir | lib/cdev/nif.ex | elixir-circuits/circuits_cdev | c78af04742b289d4f791932895ae7bee9d346f68 | [
"Apache-2.0"
] | 10 | 2019-10-21T15:40:36.000Z | 2021-05-04T19:40:09.000Z | lib/cdev/nif.ex | elixir-circuits/circuits_cdev | c78af04742b289d4f791932895ae7bee9d346f68 | [
"Apache-2.0"
] | 4 | 2021-02-27T22:59:55.000Z | 2021-11-22T22:27:22.000Z | lib/cdev/nif.ex | elixir-circuits/circuits_cdev | c78af04742b289d4f791932895ae7bee9d346f68 | [
"Apache-2.0"
] | 4 | 2019-10-21T17:20:20.000Z | 2022-02-19T17:05:40.000Z | defmodule Circuits.Cdev.Nif do
@moduledoc false
# Lower level nif bindings
@on_load {:load_nif, 0}
@compile {:autoload, false}
alias Circuits.Cdev
def load_nif() do
nif_binary = Application.app_dir(:circuits_cdev, "priv/cdev_nif")
:erlang.load_nif(to_charlist(nif_binary), 0)
end
@doc """
... | 28.679245 | 94 | 0.6625 |
ff9b1d79126c064b2c7d371f4c36508119ffc05f | 1,152 | ex | Elixir | lib/certbot/provider/static.ex | maartenvanvliet/certbot | 587bb80058d9e204c0e688d74179dadb70862a94 | [
"MIT"
] | 11 | 2019-07-12T17:25:21.000Z | 2021-03-27T21:07:42.000Z | lib/certbot/provider/static.ex | maartenvanvliet/certbot | 587bb80058d9e204c0e688d74179dadb70862a94 | [
"MIT"
] | 37 | 2019-07-19T09:25:22.000Z | 2022-03-24T04:17:25.000Z | lib/certbot/provider/static.ex | maartenvanvliet/certbot | 587bb80058d9e204c0e688d74179dadb70862a94 | [
"MIT"
] | 1 | 2020-01-04T23:48:06.000Z | 2020-01-04T23:48:06.000Z | defmodule Certbot.Provider.Static do
@moduledoc """
Static certificate provider
Expects a `certificates` keyword with a map of hostnames as keys and
`%Certbot.Certificate{}` structs as values.
Also an example of a simple certificate provider.
```elixir
defmodule Myapp.StaticProvider do
use Certbot.... | 24 | 73 | 0.655382 |
ff9b3066dc15961b72a6e2db79db6565c2400472 | 1,366 | exs | Elixir | test/mp_api_web/controllers/password_reset_controller_test.exs | jsvelasquezv/mp_api | 9a2262188b5b12c0e2ecd9284a8e7f445d2be4a0 | [
"MIT"
] | null | null | null | test/mp_api_web/controllers/password_reset_controller_test.exs | jsvelasquezv/mp_api | 9a2262188b5b12c0e2ecd9284a8e7f445d2be4a0 | [
"MIT"
] | null | null | null | test/mp_api_web/controllers/password_reset_controller_test.exs | jsvelasquezv/mp_api | 9a2262188b5b12c0e2ecd9284a8e7f445d2be4a0 | [
"MIT"
] | null | null | null | defmodule MpApiWeb.PasswordResetControllerTest do
use MpApiWeb.ConnCase
import MpApiWeb.AuthCase
setup %{conn: conn} do
add_reset_user("gladys@example.com")
{:ok, %{conn: conn}}
end
test "user can create a password reset request", %{conn: conn} do
valid_attrs = %{email: "gladys@example.com"}
... | 37.944444 | 109 | 0.700586 |
ff9b68433a9a53a08503becfb35b0f324f976eda | 3,202 | ex | Elixir | lib/ucx_chat/emoji_one.ex | smpallen99/ucx_chat | 0dd98d0eb5e0537521844520ea2ba63a08fd3f19 | [
"MIT"
] | 60 | 2017-05-09T19:08:26.000Z | 2021-01-20T11:09:42.000Z | lib/ucx_chat/emoji_one.ex | smpallen99/ucx_chat | 0dd98d0eb5e0537521844520ea2ba63a08fd3f19 | [
"MIT"
] | 6 | 2017-05-10T15:43:16.000Z | 2020-07-15T07:14:41.000Z | lib/ucx_chat/emoji_one.ex | smpallen99/ucx_chat | 0dd98d0eb5e0537521844520ea2ba63a08fd3f19 | [
"MIT"
] | 10 | 2017-05-10T04:13:54.000Z | 2020-12-28T10:30:27.000Z | defmodule EmojiOne do
import EmojiOne.Data
require Logger
@shortname Enum.to_list(?a..?z) ++ Enum.to_list(?A..?Z) ++ Enum.to_list(?0..?9) ++ '-_'
@shortname_regex ~r/^:[a-zA-Z0-9_-]+:$/
@default_src_path "/images"
def shortname_to_image(text, opts \\ []) do
opts = options opts
opts_shortname =... | 30.207547 | 108 | 0.582136 |
ff9b820811cd029b2c6c6aae1fe50b5917929193 | 2,255 | ex | Elixir | clients/gax/lib/google_api/gax/response.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | null | null | null | clients/gax/lib/google_api/gax/response.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | null | null | null | clients/gax/lib/google_api/gax/response.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2018 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 ... | 30.890411 | 112 | 0.684701 |
ff9bcd0660503fd49b171f6d2ca1e4af7afd0a60 | 1,522 | ex | Elixir | backend-elixir/apps/pixelflut_canvas/lib/canvas_client.ex | ftsell/pixelflu | 3e8699f11b89f25c683801bda27b7c770ac5b8df | [
"MIT"
] | 7 | 2019-01-16T19:43:25.000Z | 2022-03-23T05:29:07.000Z | backend-elixir/apps/pixelflut_canvas/lib/canvas_client.ex | ftsell/pixelflu | 3e8699f11b89f25c683801bda27b7c770ac5b8df | [
"MIT"
] | 1 | 2021-06-02T11:53:54.000Z | 2021-06-02T11:53:54.000Z | backend-elixir/apps/pixelflut_canvas/lib/canvas_client.ex | ftsell/pixelflu | 3e8699f11b89f25c683801bda27b7c770ac5b8df | [
"MIT"
] | 1 | 2021-10-06T21:18:58.000Z | 2021-10-06T21:18:58.000Z | defmodule PixelflutCanvas.CanvasClient do
@moduledoc false
@doc """
Sets a pixel on the canvas to the specified color.
The color is simply a 3-byte bitstring which gets saved and returned later; it is not
interpreted by the CanvasServer in any way.
Coordinates start at zero and shall not be larger than th... | 37.121951 | 107 | 0.698423 |
ff9bd11a83de8a7a27af8905733aaca1623115c4 | 2,977 | ex | Elixir | lib/wechat_pay/payment_methods/native.ex | sjava/wechat_pay | 101fd27668f01463d93c1a50033787cfb19bf3e5 | [
"MIT"
] | null | null | null | lib/wechat_pay/payment_methods/native.ex | sjava/wechat_pay | 101fd27668f01463d93c1a50033787cfb19bf3e5 | [
"MIT"
] | null | null | null | lib/wechat_pay/payment_methods/native.ex | sjava/wechat_pay | 101fd27668f01463d93c1a50033787cfb19bf3e5 | [
"MIT"
] | null | null | null | defmodule WechatPay.Native do
@moduledoc """
The **Native** payment method.
[Official document](https://pay.weixin.qq.com/wiki/doc/api/native.php?chapter=6_1)
"""
alias WechatPay.API.Client
alias WechatPay.Config
alias WechatPay.API
import WechatPay.Shared
defmacro __using__(mod) do
quote do
... | 29.186275 | 91 | 0.649647 |
ff9bdb6035460fd50e50755b30b8e76bff47417f | 3,192 | ex | Elixir | clients/cloud_asset/lib/google_api/cloud_asset/v1/model/google_cloud_asset_v1_big_query_destination.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/cloud_asset/lib/google_api/cloud_asset/v1/model/google_cloud_asset_v1_big_query_destination.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/cloud_asset/lib/google_api/cloud_asset/v1/model/google_cloud_asset_v1_big_query_destination.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"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... | 57 | 785 | 0.759712 |
ff9be1e87dac7e1f917d4b1b4e0028f26303bdbf | 3,081 | ex | Elixir | lib/pow/phoenix/controllers/registration_controller.ex | dweremeichik/pow | 8c45624c1bf40487680abf5a077549fad2de2141 | [
"MIT"
] | null | null | null | lib/pow/phoenix/controllers/registration_controller.ex | dweremeichik/pow | 8c45624c1bf40487680abf5a077549fad2de2141 | [
"MIT"
] | null | null | null | lib/pow/phoenix/controllers/registration_controller.ex | dweremeichik/pow | 8c45624c1bf40487680abf5a077549fad2de2141 | [
"MIT"
] | null | null | null | defmodule Pow.Phoenix.RegistrationController do
@moduledoc false
use Pow.Phoenix.Controller
alias Plug.Conn
alias Pow.Plug
plug :require_not_authenticated when action in [:new, :create]
plug :require_authenticated when action in [:edit, :update, :delete]
plug :assign_create_path when action in [:new, :c... | 31.438776 | 74 | 0.658877 |
ff9beeacb315857d0a780468fa00ebb26dbf64f3 | 711 | ex | Elixir | lib/ex_stone_openbank/api/models/payment_account.ex | polvalente/ex-stone-openbank | f60720abbf755ebf7824fe0de435e47e8cc5c3f5 | [
"Apache-2.0"
] | null | null | null | lib/ex_stone_openbank/api/models/payment_account.ex | polvalente/ex-stone-openbank | f60720abbf755ebf7824fe0de435e47e8cc5c3f5 | [
"Apache-2.0"
] | null | null | null | lib/ex_stone_openbank/api/models/payment_account.ex | polvalente/ex-stone-openbank | f60720abbf755ebf7824fe0de435e47e8cc5c3f5 | [
"Apache-2.0"
] | null | null | null | defmodule ExStoneOpenbank.API.Model.PaymentAccount do
@moduledoc """
PaymentAccount model
"""
use ExStoneOpenbank.Model
@fields [
:account_code,
:branch_code,
:id,
:owner_document,
:owner_id,
:owner_name,
:restricted_features,
:status
]
embedded_schema do
field :accou... | 19.75 | 53 | 0.66526 |
ff9c1adeb89fa16ab6ec83aacff948288bcbbb38 | 5,024 | exs | Elixir | test/plug_rest/conn_test.exs | ashishthete/plug_rest | 0dff5e130e3627909df54cb410bb8f891e3fa60c | [
"Apache-2.0"
] | null | null | null | test/plug_rest/conn_test.exs | ashishthete/plug_rest | 0dff5e130e3627909df54cb410bb8f891e3fa60c | [
"Apache-2.0"
] | null | null | null | test/plug_rest/conn_test.exs | ashishthete/plug_rest | 0dff5e130e3627909df54cb410bb8f891e3fa60c | [
"Apache-2.0"
] | null | null | null | defmodule PlugRest.ConnTest do
use ExUnit.Case
use Plug.Test
import PlugRest.Conn
test "parse content type header" do
content_type = "application/json"
actual_header = conn(:post, "/")
|> put_req_header("content-type", content_type)
|> parse_media_type_header("content-type")
expected_hea... | 26.723404 | 116 | 0.644307 |
ff9c29b14b480c7a7b3453831fcf596f61cbb96d | 1,243 | ex | Elixir | lib/bootstrap_form/input_builder.ex | feliperenan/bootstrap_form | a12d0665973687bfefeee499f8581398a25ccf75 | [
"MIT"
] | 6 | 2019-02-07T00:37:24.000Z | 2021-05-29T23:37:32.000Z | lib/bootstrap_form/input_builder.ex | feliperenan/bootstrap_form | a12d0665973687bfefeee499f8581398a25ccf75 | [
"MIT"
] | 7 | 2019-02-07T00:19:39.000Z | 2019-11-04T17:01:50.000Z | lib/bootstrap_form/input_builder.ex | feliperenan/bootstrap_form | a12d0665973687bfefeee499f8581398a25ccf75 | [
"MIT"
] | 3 | 2019-10-30T13:49:44.000Z | 2021-09-26T23:45:02.000Z | defmodule BootstrapForm.InputBuilder do
@moduledoc false
@callback build(BootstrapForm.form(), BootstrapForm.field(), Keyword.t()) ::
BootstrapForm.safe_html()
@implementation_types %{
checkbox: BootstrapForm.Checkbox,
email_input: BootstrapForm.EmailInput,
password_input: BootstrapFor... | 32.710526 | 99 | 0.709574 |
ff9c397a124a59a358f8823eba9db4ec17b788cc | 1,030 | exs | Elixir | issues/test/cli_test.exs | douchuan/elixir_intro | 3c841405740c5842e868e99514ba271dbf6fd95f | [
"MIT"
] | 1 | 2021-09-16T03:32:39.000Z | 2021-09-16T03:32:39.000Z | issues/test/cli_test.exs | douchuan/elixir_intro | 3c841405740c5842e868e99514ba271dbf6fd95f | [
"MIT"
] | null | null | null | issues/test/cli_test.exs | douchuan/elixir_intro | 3c841405740c5842e868e99514ba271dbf6fd95f | [
"MIT"
] | null | null | null | defmodule CliTest do
use ExUnit.Case
import Issues.CLI,
only: [parse_args: 1, sort_into_ascending_order: 1, convert_to_list_of_hashdicts: 1]
test ":help returned by option parsing with -h and --help options" do
assert parse_args(["-h", "anything"]) == :help
assert parse_args(["--help", "anything"]) ... | 27.105263 | 88 | 0.640777 |
ff9c813569395fd92c8029122c8bab760e691484 | 45,416 | ex | Elixir | clients/logging/lib/google_api/logging/v2/api/billing_accounts.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | null | null | null | clients/logging/lib/google_api/logging/v2/api/billing_accounts.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | null | null | null | clients/logging/lib/google_api/logging/v2/api/billing_accounts.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 54.390419 | 719 | 0.689493 |
ff9cadb85983b0bb15c1fec2f20da8b4fb3c532a | 587 | exs | Elixir | src/004/p004.exs | murilocamargos/polyglot-euler | cbc48d2542a3c44b2fa2714decad961be6074233 | [
"MIT"
] | null | null | null | src/004/p004.exs | murilocamargos/polyglot-euler | cbc48d2542a3c44b2fa2714decad961be6074233 | [
"MIT"
] | null | null | null | src/004/p004.exs | murilocamargos/polyglot-euler | cbc48d2542a3c44b2fa2714decad961be6074233 | [
"MIT"
] | null | null | null | #!/usr/bin/env elixir
defmodule Problem004 do
defp reverse_number(x) do
x
|> Integer.to_string()
|> String.reverse()
|> String.to_integer()
end
defp is_palindrome(x), do: x == reverse_number(x)
defp get_palindrome_multiples(x, a, b) do
a..b
|> Stream.map(&(&1 * x))
... | 20.241379 | 59 | 0.579216 |
ff9d6faf49e9118de834a0199ba9dccda434d7b0 | 8,752 | ex | Elixir | lib/surface.ex | mathewdgardner/surface | cd01707b5bd383fb6d1337dc55f0b9b4014581d7 | [
"MIT"
] | null | null | null | lib/surface.ex | mathewdgardner/surface | cd01707b5bd383fb6d1337dc55f0b9b4014581d7 | [
"MIT"
] | null | null | null | lib/surface.ex | mathewdgardner/surface | cd01707b5bd383fb6d1337dc55f0b9b4014581d7 | [
"MIT"
] | 1 | 2020-04-21T18:49:15.000Z | 2020-04-21T18:49:15.000Z | defmodule Surface do
@moduledoc """
Surface is component based library for **Phoenix LiveView**.
Built on top of the new `Phoenix.LiveComponent` API, Surface provides
a more declarative way to express and use components in Phoenix.
Full documentation and live examples can be found at [surface-demo.msaraiva.... | 26.361446 | 124 | 0.622029 |
ff9d7ac2c7baec6a52eab2d339bd4c9589d8f17c | 120,869 | ex | Elixir | clients/classroom/lib/google_api/classroom/v1/api/courses.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | null | null | null | clients/classroom/lib/google_api/classroom/v1/api/courses.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | null | null | null | clients/classroom/lib/google_api/classroom/v1/api/courses.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 53.434571 | 999 | 0.683095 |
ff9d7dce852db4ed2937b7df930b58e24f95dd6c | 1,846 | ex | Elixir | clients/dialogflow/lib/google_api/dialogflow/v3/model/google_cloud_dialogflow_cx_v3_webhook_request_fulfillment_info.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/dialogflow/lib/google_api/dialogflow/v3/model/google_cloud_dialogflow_cx_v3_webhook_request_fulfillment_info.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/dialogflow/lib/google_api/dialogflow/v3/model/google_cloud_dialogflow_cx_v3_webhook_request_fulfillment_info.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 35.5 | 329 | 0.761105 |
ff9dd924fd059718bc1c09ab815ab876a8ad3fb8 | 840 | exs | Elixir | test/advent_of_code_2019/cli_test.exs | scorphus/advent-of-code-2019 | 48305ff3b13b23cac60bed02349775d8feb05a3b | [
"BSD-3-Clause"
] | null | null | null | test/advent_of_code_2019/cli_test.exs | scorphus/advent-of-code-2019 | 48305ff3b13b23cac60bed02349775d8feb05a3b | [
"BSD-3-Clause"
] | null | null | null | test/advent_of_code_2019/cli_test.exs | scorphus/advent-of-code-2019 | 48305ff3b13b23cac60bed02349775d8feb05a3b | [
"BSD-3-Clause"
] | null | null | null | defmodule AdventOfCode2019.CLITest do
use ExUnit.Case
import Mock
test "AdventOfCode2019.CLI.main halts" do
with_mock System, halt: fn code -> code end do
with_mock IO, puts: fn _data -> :ok end do
assert AdventOfCode2019.CLI.main([]) == 1
assert_called(IO.puts(:_))
end
end
... | 28.965517 | 78 | 0.633333 |
ff9df538db826e09f6de11a7afeff59114168d85 | 318 | ex | Elixir | lib/messengyr/web/controllers/user_controller.ex | josecarlo-macariola/messengyr | b0d141b3665b22be1efd740fde823c20e2ee9615 | [
"Unlicense"
] | null | null | null | lib/messengyr/web/controllers/user_controller.ex | josecarlo-macariola/messengyr | b0d141b3665b22be1efd740fde823c20e2ee9615 | [
"Unlicense"
] | null | null | null | lib/messengyr/web/controllers/user_controller.ex | josecarlo-macariola/messengyr | b0d141b3665b22be1efd740fde823c20e2ee9615 | [
"Unlicense"
] | null | null | null | defmodule Messengyr.Web.UserController do
use Messengyr.Web, :controller
alias Messengyr.Accounts
action_fallback Messengyr.Web.FallbackController
def show(conn, %{"id" => user_id}) do
user = Accounts.get_user(user_id)
if user do
render(conn, "show.json", user: user)
end
end
end
| 18.705882 | 50 | 0.694969 |
ff9e3e44aacc9fe3adc58926fe66adb9c9dfba25 | 518 | ex | Elixir | lib/parse_helpers/unwrap.ex | kianmeng/url | e65a0f3cff4bea203c7965d4d7c4cf612169d726 | [
"Apache-2.0"
] | 13 | 2018-11-26T09:08:52.000Z | 2022-01-21T10:21:35.000Z | lib/parse_helpers/unwrap.ex | kianmeng/url | e65a0f3cff4bea203c7965d4d7c4cf612169d726 | [
"Apache-2.0"
] | 1 | 2021-05-11T18:48:26.000Z | 2021-05-11T18:48:26.000Z | lib/parse_helpers/unwrap.ex | kipcole9/url | 0840f51a96f618b0123bdf33cebcaac517b830e3 | [
"Apache-2.0"
] | null | null | null | defmodule URL.ParseHelpers.Unwrap do
@moduledoc false
@doc false
def unwrap({:ok, acc, "", _, _, _}) when is_list(acc) do
{:ok, acc}
end
@doc false
def unwrap({:error, reason, rest, _, {line, _}, _offset}) do
{:error, {URL.Parser.ParseError, "#{reason}. Detected on line #{inspect line} at #{inspec... | 28.777778 | 125 | 0.638996 |
ff9e5265e1a211e3facb269e6e99012cf8f77052 | 3,288 | ex | Elixir | lib/fn/api/routes.ex | fnproject/fn_elixir | 9f3361b251b41b92284ca86cbd02d60753a26d55 | [
"Apache-2.0"
] | 2 | 2017-10-07T09:09:50.000Z | 2018-01-31T13:36:17.000Z | lib/fn/api/routes.ex | fnproject/fn_elixir | 9f3361b251b41b92284ca86cbd02d60753a26d55 | [
"Apache-2.0"
] | null | null | null | lib/fn/api/routes.ex | fnproject/fn_elixir | 9f3361b251b41b92284ca86cbd02d60753a26d55 | [
"Apache-2.0"
] | null | null | null | defmodule Fn.Api.Routes do
@moduledoc """
Documentation for Fn.Api.Routes.
"""
use Tesla
plug Tesla.Middleware.BaseUrl, "https://127.0.0.1:8080/v1"
plug Tesla.Middleware.JSON
@doc """
Get route list by app name.
This will list routes for a particular app, returned in alphabetical order.
"""
de... | 26.304 | 144 | 0.626825 |
ff9e6fa0be347524eccb005e8ab7368a61602aa7 | 353 | exs | Elixir | priv/repo/seeds.exs | cciuenf/lovelaceccuenf_bot | 22a9d4e25d59cf3e5f1de4c4de8e257a6b44fba9 | [
"MIT"
] | null | null | null | priv/repo/seeds.exs | cciuenf/lovelaceccuenf_bot | 22a9d4e25d59cf3e5f1de4c4de8e257a6b44fba9 | [
"MIT"
] | null | null | null | priv/repo/seeds.exs | cciuenf/lovelaceccuenf_bot | 22a9d4e25d59cf3e5f1de4c4de8e257a6b44fba9 | [
"MIT"
] | null | null | null | # Script for populating the database. You can run it as:
#
# mix run priv/repo/seeds.exs
#
# Inside the script, you can read and write to any of your
# repositories directly:
#
# Lovelace.Repo.insert!(%Lovelace.SomeSchema{})
#
# We recommend using the bang functions (`insert!`, `update!`
# and so on) as they wi... | 29.416667 | 61 | 0.708215 |
ff9e8a27a9a87d18d6f8457b7314cded51354c10 | 1,008 | ex | Elixir | hexdocs__pm__phoenix__up_and_running.html/hello/lib/hello_web/controllers/page_controller.ex | jim80net/elixir_tutorial_projects | db19901a9305b297faa90642bebcc08455621b52 | [
"Unlicense"
] | null | null | null | hexdocs__pm__phoenix__up_and_running.html/hello/lib/hello_web/controllers/page_controller.ex | jim80net/elixir_tutorial_projects | db19901a9305b297faa90642bebcc08455621b52 | [
"Unlicense"
] | null | null | null | hexdocs__pm__phoenix__up_and_running.html/hello/lib/hello_web/controllers/page_controller.ex | jim80net/elixir_tutorial_projects | db19901a9305b297faa90642bebcc08455621b52 | [
"Unlicense"
] | null | null | null | defmodule HelloWeb.PageController do
use HelloWeb, :controller
def index(conn, %{"_format" => "json"}) do
pages = [%{title: "foo"}, %{title: "bar"}]
render(conn, :index, pages: pages)
end
def index(conn, %{"just_status" => "true"}) do
conn
|> put_resp_content_type("text/plain")
|> send_res... | 23.44186 | 83 | 0.621032 |
ff9e8db64b59cc714c115d0065ac2be11a248185 | 505 | ex | Elixir | learningElixir/lib/learningElixir_web/views/error_view.ex | Maxweston/learning-elixir | 7b80372d25410377404ddb55632f35e964b42c1a | [
"MIT"
] | null | null | null | learningElixir/lib/learningElixir_web/views/error_view.ex | Maxweston/learning-elixir | 7b80372d25410377404ddb55632f35e964b42c1a | [
"MIT"
] | null | null | null | learningElixir/lib/learningElixir_web/views/error_view.ex | Maxweston/learning-elixir | 7b80372d25410377404ddb55632f35e964b42c1a | [
"MIT"
] | null | null | null | defmodule LearningElixirWeb.ErrorView do
use LearningElixirWeb, :view
# If you want to customize a particular status code
# for a certain format, you may uncomment below.
# def render("500.html", _assigns) do
# "Internal Server Error"
# end
# By default, Phoenix returns the status message from
# the... | 29.705882 | 61 | 0.742574 |
ff9e966b3327e5d4970fa77c69374a55ca07bf8e | 2,892 | ex | Elixir | apps/omg_watcher/lib/omg_watcher/exit_processor/request.ex | karmonezz/elixir-omg | 3b26fc072fa553992277e1b9c4bad37b3d61ec6a | [
"Apache-2.0"
] | 1 | 2020-05-01T12:30:09.000Z | 2020-05-01T12:30:09.000Z | apps/omg_watcher/lib/omg_watcher/exit_processor/request.ex | karmonezz/elixir-omg | 3b26fc072fa553992277e1b9c4bad37b3d61ec6a | [
"Apache-2.0"
] | null | null | null | apps/omg_watcher/lib/omg_watcher/exit_processor/request.ex | karmonezz/elixir-omg | 3b26fc072fa553992277e1b9c4bad37b3d61ec6a | [
"Apache-2.0"
] | null | null | null | # Copyright 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 writi... | 39.616438 | 116 | 0.701936 |
ff9eddc5983506dcd6591c11846ec9ec69ed1280 | 3,449 | ex | Elixir | lib/elixir_phoenix_liveview_n_queen_web/live/n_queen_live.ex | aronkst/elixir_phoenix_liveview_n_queen | e23d0c4dad0d16fecdd41b709a4d9830edf8bdee | [
"MIT"
] | 1 | 2020-05-09T02:03:24.000Z | 2020-05-09T02:03:24.000Z | lib/elixir_phoenix_liveview_n_queen_web/live/n_queen_live.ex | aronkst/elixir_phoenix_liveview_n_queen | e23d0c4dad0d16fecdd41b709a4d9830edf8bdee | [
"MIT"
] | null | null | null | lib/elixir_phoenix_liveview_n_queen_web/live/n_queen_live.ex | aronkst/elixir_phoenix_liveview_n_queen | e23d0c4dad0d16fecdd41b709a4d9830edf8bdee | [
"MIT"
] | null | null | null | defmodule ElixirPhoenixLiveviewNQueenWeb.NQueenLive do
use Phoenix.LiveView
def mount(_params, _session, socket) do
{:ok, assign(socket, number: 4, type: "text", one: false, loading: false, chess: queen(4, false))}
end
def handle_event("submit", %{"type" => type, "one" => _, "number" => number}, socket) d... | 31.354545 | 117 | 0.496376 |
ff9ee1d632a18177ccd494b86daebebda77076e9 | 1,117 | exs | Elixir | config/config.exs | lewapkon/eulixir | 990017cdccee7cd508269b7036e290ec777aea3d | [
"MIT"
] | null | null | null | config/config.exs | lewapkon/eulixir | 990017cdccee7cd508269b7036e290ec777aea3d | [
"MIT"
] | null | null | null | config/config.exs | lewapkon/eulixir | 990017cdccee7cd508269b7036e290ec777aea3d | [
"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.032258 | 73 | 0.751119 |
ff9ef81b9c4433ea1bd6a2caf5fe2137a8932041 | 2,290 | ex | Elixir | lib/crypto_exchanges/adapters/bittrex_adapter.ex | sbrink/crypto_exchanges_elixir | 0d500f9129e27b3ab24b59118b88c4d1cbdbec11 | [
"MIT"
] | 12 | 2017-10-01T10:37:11.000Z | 2019-08-09T07:02:02.000Z | lib/crypto_exchanges/adapters/bittrex_adapter.ex | sbrink/crypto_exchanges_elixir | 0d500f9129e27b3ab24b59118b88c4d1cbdbec11 | [
"MIT"
] | 1 | 2017-10-02T21:43:40.000Z | 2017-10-08T18:37:19.000Z | lib/crypto_exchanges/adapters/bittrex_adapter.ex | sbrink/crypto_exchanges_elixir | 0d500f9129e27b3ab24b59118b88c4d1cbdbec11 | [
"MIT"
] | null | null | null | defmodule CryptoExchanges.BittrexAdapter do
@moduledoc """
An Adapter for the Bittrex Exchange
"""
use CryptoExchanges.Adapter
def get_info, do: %CryptoExchange{
name: "Bittrex",
homepage_url: "https://bittrex.com/",
api_docs_url: "https://bittrex.com/home/api",
country: "USA",
intervals:... | 27.261905 | 102 | 0.678166 |
ff9f403269dc6eac16b18e10a97df7baed0102cb | 2,142 | ex | Elixir | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2beta1_intent_message_telephony_synthesize_speech.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2beta1_intent_message_telephony_synthesize_speech.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2beta1_intent_message_telephony_synthesize_speech.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... | 36.931034 | 295 | 0.760037 |
ff9f766c4c31d53cbb24407fe0a990f209697b91 | 102 | exs | Elixir | apps/ex_wire/test/ex_wire/message/pong_test.exs | atoulme/ethereum | cebb0756c7292ac266236636d2ab5705cb40a52e | [
"MIT"
] | 14 | 2017-08-21T06:14:49.000Z | 2020-05-15T12:00:52.000Z | apps/ex_wire/test/ex_wire/message/pong_test.exs | atoulme/ethereum | cebb0756c7292ac266236636d2ab5705cb40a52e | [
"MIT"
] | 7 | 2017-08-11T07:50:14.000Z | 2018-08-23T20:42:50.000Z | apps/ex_wire/test/ex_wire/message/pong_test.exs | atoulme/ethereum | cebb0756c7292ac266236636d2ab5705cb40a52e | [
"MIT"
] | 3 | 2017-08-20T17:56:41.000Z | 2018-08-21T00:36:10.000Z | defmodule ExWire.Message.PongTest do
use ExUnit.Case, async: true
doctest ExWire.Message.Pong
end | 20.4 | 36 | 0.794118 |
ff9f998a851f6a5c11189081222e22b23dabb749 | 498 | ex | Elixir | learning/gnome/game/gallows/lib/gallows_web/router.ex | Mdlkxzmcp/various_elixir | c87527b7118a0c74a042073c04d2228025888ddf | [
"MIT"
] | 2 | 2020-01-20T20:15:20.000Z | 2020-02-27T11:08:42.000Z | learning/gnome/game/gallows/lib/gallows_web/router.ex | Mdlkxzmcp/various_elixir | c87527b7118a0c74a042073c04d2228025888ddf | [
"MIT"
] | null | null | null | learning/gnome/game/gallows/lib/gallows_web/router.ex | Mdlkxzmcp/various_elixir | c87527b7118a0c74a042073c04d2228025888ddf | [
"MIT"
] | null | null | null | defmodule GallowsWeb.Router do
use GallowsWeb, :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 "/hangman", GallowsWeb... | 19.153846 | 46 | 0.674699 |
ff9fa560b6671068ad8e06da9fd22e259ac6f30d | 4,329 | ex | Elixir | clients/security_center/lib/google_api/security_center/v1/model/google_cloud_securitycenter_v1p1beta1_asset.ex | kaaboaye/elixir-google-api | 1896784c4342151fd25becd089a5beb323eff567 | [
"Apache-2.0"
] | null | null | null | clients/security_center/lib/google_api/security_center/v1/model/google_cloud_securitycenter_v1p1beta1_asset.ex | kaaboaye/elixir-google-api | 1896784c4342151fd25becd089a5beb323eff567 | [
"Apache-2.0"
] | null | null | null | clients/security_center/lib/google_api/security_center/v1/model/google_cloud_securitycenter_v1p1beta1_asset.ex | kaaboaye/elixir-google-api | 1896784c4342151fd25becd089a5beb323eff567 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 43.727273 | 221 | 0.740818 |
ff9fa7b659ee67855b22a7f410549802978f8cc3 | 2,287 | exs | Elixir | test/ecto/query/builder/select_test.exs | jeregrine/ecto | 98b2dd4bf7b39738ab9a5ae3fa7e48e43a4af39b | [
"Apache-2.0"
] | null | null | null | test/ecto/query/builder/select_test.exs | jeregrine/ecto | 98b2dd4bf7b39738ab9a5ae3fa7e48e43a4af39b | [
"Apache-2.0"
] | null | null | null | test/ecto/query/builder/select_test.exs | jeregrine/ecto | 98b2dd4bf7b39738ab9a5ae3fa7e48e43a4af39b | [
"Apache-2.0"
] | null | null | null | defmodule Ecto.Query.Builder.SelectTest do
use ExUnit.Case, async: true
import Ecto.Query
import Ecto.Query.Builder.Select
doctest Ecto.Query.Builder.Select
test "escape" do
assert {Macro.escape(quote do &0 end), {%{}, %{}}} ==
escape(quote do x end, [x: 0], __ENV__)
assert {Macro.escape... | 41.581818 | 105 | 0.46655 |
ff9fde054f48159abb3c5d90ca786e58779fa122 | 14,427 | ex | Elixir | server/lib/spend_index.ex | bitfeed-project/bitfeed | 48b346ec18fa1be2e09a9e1f36ac10db9c0fab62 | [
"MIT"
] | 27 | 2022-01-01T14:58:22.000Z | 2022-03-22T06:11:18.000Z | server/lib/spend_index.ex | bitfeed-project/bitfeed | 48b346ec18fa1be2e09a9e1f36ac10db9c0fab62 | [
"MIT"
] | 22 | 2022-01-01T04:26:10.000Z | 2022-03-22T00:02:31.000Z | server/lib/spend_index.ex | bitfeed-project/bitfeed | 48b346ec18fa1be2e09a9e1f36ac10db9c0fab62 | [
"MIT"
] | 9 | 2022-01-03T07:34:36.000Z | 2022-03-14T23:19:56.000Z | require Logger
defmodule BitcoinStream.Index.Spend do
use GenServer
alias BitcoinStream.Protocol.Block, as: BitcoinBlock
alias BitcoinStream.Protocol.Transaction, as: BitcoinTx
alias BitcoinStream.RPC, as: RPC
def start_link(opts) do
Logger.info("Starting Spend Index");
{indexed, opts} = Keyword.p... | 28.681909 | 109 | 0.602343 |
ffa02c36f1d029c36e2dd5911171c978e986da61 | 6,902 | ex | Elixir | lib/distillery/tasks/init.ex | arikai/distillery | 65ddbcc143f2849a6ed5574e8c397a68ca92eb81 | [
"MIT"
] | 3,097 | 2016-07-18T13:59:00.000Z | 2022-03-29T00:27:23.000Z | lib/distillery/tasks/init.ex | arikai/distillery | 65ddbcc143f2849a6ed5574e8c397a68ca92eb81 | [
"MIT"
] | 672 | 2016-07-18T18:25:29.000Z | 2022-02-24T17:39:30.000Z | lib/distillery/tasks/init.ex | arikai/distillery | 65ddbcc143f2849a6ed5574e8c397a68ca92eb81 | [
"MIT"
] | 483 | 2016-07-22T14:08:49.000Z | 2022-03-21T09:35:23.000Z | defmodule Mix.Tasks.Distillery.Init do
@moduledoc """
Prepares a new project for use with releases.
This simply creates a `rel` directory in the project root,
and creates a basic initial configuration file in `rel/config.exs`.
It will also creates a vm.args file in `rel/vm.args` to tweak the
configuration o... | 27.608 | 101 | 0.625471 |
ffa047e64a520090cc9663a070dd894747ef65ba | 392 | exs | Elixir | test/test_helper.exs | manukall/phoenix | 5ce19ebb63b1b31e37da5fe6465edb6c4850772e | [
"MIT"
] | 1 | 2019-06-11T20:22:21.000Z | 2019-06-11T20:22:21.000Z | test/test_helper.exs | DavidAlphaFox/phoenix | 560131ab3b48c6b6cf864a3d20b7667e40990237 | [
"MIT"
] | null | null | null | test/test_helper.exs | DavidAlphaFox/phoenix | 560131ab3b48c6b6cf864a3d20b7667e40990237 | [
"MIT"
] | null | null | null | Code.require_file("support/router_helper.exs", __DIR__)
# Starts web server applications
Application.ensure_all_started(:cowboy)
# Used whenever a router fails. We default to simply
# rendering a short string.
defmodule Phoenix.ErrorView do
def render(template, _assigns) do
"#{template} from Phoenix.ErrorView"
... | 21.777778 | 55 | 0.772959 |
ffa0542d79ca9df1d0b18400e076d907e8f58842 | 486 | ex | Elixir | lib/secret_grinch/assignment.ex | clorofila-league/secret_grinch | b06ac85ff5f06d5405d190ccc9966b01f0406b87 | [
"Apache-2.0"
] | 3 | 2017-08-03T16:49:18.000Z | 2018-10-03T03:30:26.000Z | lib/secret_grinch/assignment.ex | clorofila-league/secret_grinch | b06ac85ff5f06d5405d190ccc9966b01f0406b87 | [
"Apache-2.0"
] | 18 | 2017-08-04T12:43:08.000Z | 2017-08-05T14:15:41.000Z | lib/secret_grinch/assignment.ex | clorofila-league/secret_grinch | b06ac85ff5f06d5405d190ccc9966b01f0406b87 | [
"Apache-2.0"
] | 1 | 2018-10-03T03:30:29.000Z | 2018-10-03T03:30:29.000Z | defmodule SecretGrinch.Assignment do
@moduledoc """
Represents the relationship between a sender and a recipient for a match
"""
use Ecto.Schema
import Ecto.Changeset
alias SecretGrinch.Assignment
schema "assignments" do
field :match_id, :id
field :sender_id, :id
field :recepient_id, :id
... | 19.44 | 74 | 0.685185 |
ffa06155a955b7a58d7ec758288aa1adb4b4b787 | 1,700 | ex | Elixir | apps/welcome/lib/welcome_web/endpoint.ex | norbu09/e_no_time | 16a0db136dd91cdcf38d4aab5f11b0684dae289d | [
"BSD-2-Clause"
] | null | null | null | apps/welcome/lib/welcome_web/endpoint.ex | norbu09/e_no_time | 16a0db136dd91cdcf38d4aab5f11b0684dae289d | [
"BSD-2-Clause"
] | null | null | null | apps/welcome/lib/welcome_web/endpoint.ex | norbu09/e_no_time | 16a0db136dd91cdcf38d4aab5f11b0684dae289d | [
"BSD-2-Clause"
] | null | null | null | defmodule WelcomeWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :welcome
socket "/socket", WelcomeWeb.UserSocket
# Serve at "/" the static files from "priv/static" directory.
#
# You should set gzip to true if you are running phoenix.digest
# when deploying your static files in production.
plug Plug.Sta... | 28.813559 | 95 | 0.710588 |
ffa06bbf732ba6a7c78ddb50da440bf4aee4af40 | 397 | exs | Elixir | test/rubber_band/client/request_error_test.exs | tlux/rubberband | bece85cf8049ba487bba1d5df0906f6fbfa146eb | [
"MIT"
] | null | null | null | test/rubber_band/client/request_error_test.exs | tlux/rubberband | bece85cf8049ba487bba1d5df0906f6fbfa146eb | [
"MIT"
] | null | null | null | test/rubber_band/client/request_error_test.exs | tlux/rubberband | bece85cf8049ba487bba1d5df0906f6fbfa146eb | [
"MIT"
] | null | null | null | defmodule RubberBand.RequestErrorTest do
use ExUnit.Case, async: true
alias RubberBand.Client.RequestError
@error %RequestError{reason: :timeout}
test "raiseable" do
assert_raise RequestError, fn ->
raise @error
end
end
describe "message/1" do
test "get message" do
assert Request... | 19.85 | 78 | 0.692695 |
ffa07b2cd4aebb60cd65ae7feb27cce858176ddb | 519 | exs | Elixir | priv/repo/migrations/20140501024735_create_readings.exs | micahyoung/cbstats-importer | a7176b3a25d8a4e919ddda32475c9ecf65e9892a | [
"Unlicense",
"MIT"
] | 1 | 2016-01-06T18:19:35.000Z | 2016-01-06T18:19:35.000Z | priv/repo/migrations/20140501024735_create_readings.exs | micahyoung/cbstats-importer | a7176b3a25d8a4e919ddda32475c9ecf65e9892a | [
"Unlicense",
"MIT"
] | null | null | null | priv/repo/migrations/20140501024735_create_readings.exs | micahyoung/cbstats-importer | a7176b3a25d8a4e919ddda32475c9ecf65e9892a | [
"Unlicense",
"MIT"
] | null | null | null | defmodule CbstatsImporter.Repo.Migrations.CreateReadings do
use Ecto.Migration
def up do
"""
CREATE TABLE readings (
id serial NOT NULL,
station_id integer,
status character varying(255),
available_bikes integer,
available_docks integer,
taken_at timestamp wi... | 20.76 | 59 | 0.639692 |
ffa0903b81c35050403a4c32b6a651275c8d7939 | 2,080 | exs | Elixir | integration_test/support/models.exs | john-vinters/ecto | 82683a80e865dd0863c08860f609d6910355bfc4 | [
"Apache-2.0"
] | null | null | null | integration_test/support/models.exs | john-vinters/ecto | 82683a80e865dd0863c08860f609d6910355bfc4 | [
"Apache-2.0"
] | null | null | null | integration_test/support/models.exs | john-vinters/ecto | 82683a80e865dd0863c08860f609d6910355bfc4 | [
"Apache-2.0"
] | null | null | null | Code.require_file "types.exs", __DIR__
defmodule Ecto.Integration.Post do
use Ecto.Model
schema "posts" do
field :title, :string
field :counter, :integer, read_after_writes: true
field :text, :binary
field :uuid, :uuid
field :temp, :string, default: "temp", virtual: true
field :public, :bo... | 22.608696 | 78 | 0.715865 |
ffa0c41c28eda8ce734d53b7da398a5a47794448 | 2,338 | ex | Elixir | aoc2019_elixir/apps/day23/lib/nat.ex | mjm/advent-of-code-2019 | a30599c1cba05d574fb30b6de98acdcec1ddc643 | [
"MIT"
] | 1 | 2019-12-09T07:43:02.000Z | 2019-12-09T07:43:02.000Z | aoc2019_elixir/apps/day23/lib/nat.ex | mjm/advent-of-code-2019 | a30599c1cba05d574fb30b6de98acdcec1ddc643 | [
"MIT"
] | null | null | null | aoc2019_elixir/apps/day23/lib/nat.ex | mjm/advent-of-code-2019 | a30599c1cba05d574fb30b6de98acdcec1ddc643 | [
"MIT"
] | null | null | null | require Logger
defmodule Day23.NAT do
@moduledoc """
A process that is responsible for keeping the network active.
The NAT receives packets addressed to address `255` during the course of normal
network traffic. When the router informs the NAT that all addresses are idling,
the NAT may rebroadcast the last ... | 26.873563 | 82 | 0.624893 |
ffa0cf64c85032c69c0aada5a2d9f517f23034d1 | 3,292 | ex | Elixir | clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p1beta1_product.ex | chingor13/elixir-google-api | 85e13fa25c4c9f4618bb463ab4c79245fc6d2a7b | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p1beta1_product.ex | chingor13/elixir-google-api | 85e13fa25c4c9f4618bb463ab4c79245fc6d2a7b | [
"Apache-2.0"
] | null | null | null | clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p1beta1_product.ex | chingor13/elixir-google-api | 85e13fa25c4c9f4618bb463ab4c79245fc6d2a7b | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 38.729412 | 195 | 0.71294 |
ffa0e1c713b34b02819c22fedb8a3ad512aa2dad | 2,031 | ex | Elixir | lib/edgedb/connection/queries_cache.ex | f0lio/edgedb-elixir | b285bd8037b0b951aabfa1d1733889880f8bfd66 | [
"MIT"
] | null | null | null | lib/edgedb/connection/queries_cache.ex | f0lio/edgedb-elixir | b285bd8037b0b951aabfa1d1733889880f8bfd66 | [
"MIT"
] | null | null | null | lib/edgedb/connection/queries_cache.ex | f0lio/edgedb-elixir | b285bd8037b0b951aabfa1d1733889880f8bfd66 | [
"MIT"
] | null | null | null | defmodule EdgeDB.Connection.QueriesCache do
@moduledoc false
use GenServer
alias EdgeDB.Protocol.Enums
defmodule State do
@moduledoc false
defstruct [
:cache
]
@type t() :: %__MODULE__{
cache: :ets.tab()
}
end
@type t() :: GenServer.server()
@spec start_l... | 23.079545 | 85 | 0.615953 |
ffa0f31fc0c3d4643bcb88d08d042b27d23ecfcb | 342 | exs | Elixir | day24/test/day24_test.exs | bjorng/advent-of-code-2021 | 82c22dfa0ba7e9134e39b9dbc95227bb99f62c8d | [
"Apache-2.0"
] | 10 | 2021-12-01T08:49:00.000Z | 2022-03-24T13:24:50.000Z | day24/test/day24_test.exs | bjorng/advent-of-code-2021 | 82c22dfa0ba7e9134e39b9dbc95227bb99f62c8d | [
"Apache-2.0"
] | null | null | null | day24/test/day24_test.exs | bjorng/advent-of-code-2021 | 82c22dfa0ba7e9134e39b9dbc95227bb99f62c8d | [
"Apache-2.0"
] | 1 | 2021-12-16T07:09:11.000Z | 2021-12-16T07:09:11.000Z | defmodule Day24Test do
use ExUnit.Case
doctest Day24
test "part 1 with my input data" do
assert Day24.part1(input()) == 51983999947999
end
test "part 2 with my input data" do
assert Day24.part2(input()) == 11211791111365
end
defp input() do
File.read!("input.txt")
|> String.split("\n", ... | 19 | 49 | 0.660819 |
ffa108388536e87261e01ead7693d9e330638785 | 510 | exs | Elixir | test/exred_node_aws_iot_daemon_test.exs | exredorg/exred_node_aws_iot_daemon | a48135563d9ba6cc4790be109376c3532a5b3595 | [
"MIT"
] | null | null | null | test/exred_node_aws_iot_daemon_test.exs | exredorg/exred_node_aws_iot_daemon | a48135563d9ba6cc4790be109376c3532a5b3595 | [
"MIT"
] | null | null | null | test/exred_node_aws_iot_daemon_test.exs | exredorg/exred_node_aws_iot_daemon | a48135563d9ba6cc4790be109376c3532a5b3595 | [
"MIT"
] | null | null | null | defmodule Exred.Node.AwsIotDaemonTest do
use ExUnit.Case
doctest Exred.Node.AwsIotDaemon
@config_overrides %{
host: %{value: "test.mosquitto.org"},
port: %{value: 8883}
}
use Exred.NodeTest, module: Exred.Node.AwsIotDaemon, config: @config_overrides
setup_all do
start_node()
end
test "no... | 19.615385 | 80 | 0.696078 |
ffa1396d3722d8a584b3767d08f6741f51a56d6e | 32,405 | ex | Elixir | lib/gringotts/gateways/authorize_net.ex | lyoung83/gringotts | c119a3027e2a313a32f5abeb76a401979e48f7d0 | [
"MIT"
] | null | null | null | lib/gringotts/gateways/authorize_net.ex | lyoung83/gringotts | c119a3027e2a313a32f5abeb76a401979e48f7d0 | [
"MIT"
] | null | null | null | lib/gringotts/gateways/authorize_net.ex | lyoung83/gringotts | c119a3027e2a313a32f5abeb76a401979e48f7d0 | [
"MIT"
] | null | null | null | defmodule Gringotts.Gateways.AuthorizeNet do
@moduledoc """
A module for working with the Authorize.Net payment gateway.
Refer the official Authorize.Net [API docs][docs].
The following set of functions for Authorize.Net have been implemented:
| Action | Method ... | 35.885936 | 135 | 0.62478 |
ffa144b0c74fe46f3d4a2cbb67cbfecfebe29273 | 1,027 | ex | Elixir | lib/smartsheet/row/row.ex | kianmeng/smartsheet | ca3f0734fe4bc08811d1726c7dd1072502a60ad2 | [
"MIT"
] | null | null | null | lib/smartsheet/row/row.ex | kianmeng/smartsheet | ca3f0734fe4bc08811d1726c7dd1072502a60ad2 | [
"MIT"
] | 6 | 2020-07-21T17:36:50.000Z | 2021-12-16T00:49:21.000Z | lib/smartsheet/row/row.ex | kianmeng/smartsheet | ca3f0734fe4bc08811d1726c7dd1072502a60ad2 | [
"MIT"
] | 1 | 2020-10-20T13:04:51.000Z | 2020-10-20T13:04:51.000Z | defmodule Smartsheet.Row do
@derive [Poison.Encoder]
defstruct [
:id,
:sheet_id,
:access_level,
:attachments,
:cells,
:columns,
:conditional_format,
:created_at,
:created_by,
:discussions,
:expanded,
:filtered_out,
:format,
:in_critical_path,
:locked,
... | 19.75 | 34 | 0.528724 |
ffa14b87a14bb2f221f30f87aa2e98ebbb2cf7d4 | 266 | exs | Elixir | test/empty_web/views/layout_view_test.exs | manojsamanta/empty-app-with-auth | e601a7c6ef1b4a992758117e6bf0922a5ce08f04 | [
"MIT"
] | null | null | null | test/empty_web/views/layout_view_test.exs | manojsamanta/empty-app-with-auth | e601a7c6ef1b4a992758117e6bf0922a5ce08f04 | [
"MIT"
] | null | null | null | test/empty_web/views/layout_view_test.exs | manojsamanta/empty-app-with-auth | e601a7c6ef1b4a992758117e6bf0922a5ce08f04 | [
"MIT"
] | null | null | null | defmodule EmptyWeb.LayoutViewTest do
use EmptyWeb.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
| 29.555556 | 65 | 0.763158 |
ffa187e1182db369f5d04140fee334884aff50c4 | 2,685 | ex | Elixir | lib/retrospectivex/retrospectives/managers/board.ex | dreamingechoes/retrospectivex | cad0df6cfde5376121d841f4a8b36861b6ec5d45 | [
"MIT"
] | 5 | 2018-06-27T17:51:51.000Z | 2020-10-05T09:59:04.000Z | lib/retrospectivex/retrospectives/managers/board.ex | dreamingechoes/retrospectivex | cad0df6cfde5376121d841f4a8b36861b6ec5d45 | [
"MIT"
] | 1 | 2018-10-08T11:33:12.000Z | 2018-10-08T11:33:12.000Z | lib/retrospectivex/retrospectives/managers/board.ex | dreamingechoes/retrospectivex | cad0df6cfde5376121d841f4a8b36861b6ec5d45 | [
"MIT"
] | 2 | 2018-10-08T11:31:55.000Z | 2020-10-05T09:59:05.000Z | defmodule Retrospectivex.Retrospectives.Managers.Board do
import Ecto.Query, warn: false
alias Retrospectivex.Repo
alias Retrospectivex.Retrospectives.Schemas.Board
alias Retrospectivex.Retrospectives.Queries.Card, as: CardQuery
@doc """
Returns the list of boards.
## Examples
iex> list_boards()... | 18.390411 | 65 | 0.609683 |
ffa1ac3d1983aebe6c237175745c78eeb5861fda | 351 | ex | Elixir | test/commands/support/aggregate_router.ex | octowombat/commanded | 79a1965e276d3369dcf70ae65ef904d7e59f4a6a | [
"MIT"
] | 1,220 | 2017-10-31T10:56:40.000Z | 2022-03-31T17:40:19.000Z | test/commands/support/aggregate_router.ex | octowombat/commanded | 79a1965e276d3369dcf70ae65ef904d7e59f4a6a | [
"MIT"
] | 294 | 2017-11-03T10:33:41.000Z | 2022-03-24T08:36:42.000Z | test/commands/support/aggregate_router.ex | octowombat/commanded | 79a1965e276d3369dcf70ae65ef904d7e59f4a6a | [
"MIT"
] | 208 | 2017-11-03T10:56:47.000Z | 2022-03-14T05:49:38.000Z | defmodule Commanded.Commands.AggregateRouter do
@moduledoc false
use Commanded.Commands.Router
alias Commanded.Commands.AggregateRoot
alias Commanded.Commands.AggregateRoot.{Command, Command2}
dispatch Command, to: AggregateRoot, identity: :uuid
dispatch Command2, to: AggregateRoot, function: :custom_func... | 31.909091 | 88 | 0.809117 |
ffa1b575631f0927ba3c527bdaa1c1fc7b9a696b | 2,478 | ex | Elixir | clients/iam_credentials/lib/google_api/iam_credentials/v1/model/generate_id_token_request.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/iam_credentials/lib/google_api/iam_credentials/v1/model/generate_id_token_request.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/iam_credentials/lib/google_api/iam_credentials/v1/model/generate_id_token_request.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... | 38.71875 | 138 | 0.721953 |
ffa1ddc46b2e09a4cbd4f802d7fc96c93a69a3ee | 2,591 | exs | Elixir | test/api/scenes_test.exs | connorlay/hue_sdk | f69e038c7f6527277f2ef13c92eb10c5d98b6ba8 | [
"MIT"
] | 4 | 2021-03-22T16:50:55.000Z | 2021-07-09T11:42:08.000Z | test/api/scenes_test.exs | connorlay/hue_sdk | f69e038c7f6527277f2ef13c92eb10c5d98b6ba8 | [
"MIT"
] | null | null | null | test/api/scenes_test.exs | connorlay/hue_sdk | f69e038c7f6527277f2ef13c92eb10c5d98b6ba8 | [
"MIT"
] | null | null | null | defmodule HueSDK.ScenesTest do
alias HueSDK.API.Scenes
use HueSDK.BypassCase, async: true
@json_resp %{"1" => %{"name" => "example"}}
@http_error %Mint.TransportError{reason: :econnrefused}
describe "get_all_scenes/1" do
test "returns parsed JSON if the request succeeds", %{bypass: bypass, bridge: brid... | 37.550725 | 92 | 0.667696 |
ffa1e2f25154e81c486d9ae1b36c9f6214b6ce29 | 1,044 | exs | Elixir | test/type/literal_emptylist/subtype_test.exs | ityonemo/mavis | 6f71c1ff9e12626c1ac5fcd1276c9adb433bfb99 | [
"MIT"
] | 97 | 2020-09-22T01:52:19.000Z | 2022-03-21T17:50:13.000Z | test/type/literal_emptylist/subtype_test.exs | ityonemo/mavis | 6f71c1ff9e12626c1ac5fcd1276c9adb433bfb99 | [
"MIT"
] | 106 | 2020-09-22T18:55:28.000Z | 2021-11-30T01:51:04.000Z | test/type/literal_emptylist/subtype_test.exs | ityonemo/mavis | 6f71c1ff9e12626c1ac5fcd1276c9adb433bfb99 | [
"MIT"
] | 3 | 2020-10-27T22:36:56.000Z | 2022-01-25T21:00:24.000Z | defmodule TypeTest.LiteralEmptylist.SubtypeTest do
use ExUnit.Case, async: true
@moduletag :subtype
import Type, only: :macros
alias Type.List
use Type.Operators
describe "a literal []" do
test "is a subtype of itself" do
assert [] in []
end
test "is a subtype of generic Type.List" d... | 22.212766 | 78 | 0.595785 |
ffa1f79ad077093a12391e26a0f024f44035085d | 2,055 | exs | Elixir | config/dev.exs | dreamingechoes/diversity-in-tech | 4eb5dadf69f82fd08e1cdd1b125264930d3b4e6f | [
"MIT"
] | 8 | 2018-06-22T05:43:30.000Z | 2020-04-13T20:31:40.000Z | config/dev.exs | dreamingechoes/diversity-in-tech | 4eb5dadf69f82fd08e1cdd1b125264930d3b4e6f | [
"MIT"
] | null | null | null | config/dev.exs | dreamingechoes/diversity-in-tech | 4eb5dadf69f82fd08e1cdd1b125264930d3b4e6f | [
"MIT"
] | null | null | null | use Mix.Config
# For development, we disable any cache and enable
# debugging and code reloading.
#
# The watchers configuration can be used to run external
# watchers to your application. For example, we use it
# with brunch.io to recompile .js and .css sources.
config :diversity_in_tech, DiversityInTechWeb.Endpoint,... | 33.145161 | 170 | 0.723114 |
ffa1feddd58252ad76cdfde8f035c864f4bc39ca | 1,635 | ex | Elixir | clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_session.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_session.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_session.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 32.7 | 134 | 0.727217 |
ffa21e5ca209e3ba428a2ff0faf6081a390ecd2d | 875 | exs | Elixir | phoenix_example/config/config.exs | Opaala/phoenix_wings | 4cd41769f2450b526bb926ddc6a2531c57ad1e1b | [
"MIT"
] | 1 | 2019-08-31T22:26:40.000Z | 2019-08-31T22:26:40.000Z | phoenix_example/config/config.exs | Opaala/phoenix_wings | 4cd41769f2450b526bb926ddc6a2531c57ad1e1b | [
"MIT"
] | 2 | 2020-07-19T14:16:53.000Z | 2021-03-10T07:44:45.000Z | phoenix_example/config/config.exs | Opaala/phoenix_wings | 4cd41769f2450b526bb926ddc6a2531c57ad1e1b | [
"MIT"
] | 1 | 2019-06-26T08:01:08.000Z | 2019-06-26T08:01:08.000Z | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
#
# This configuration file is loaded before any dependency and
# is restricted to this project.
use Mix.Config
# Configures the endpoint
config :channel_server, ChannelServerWeb.Endpoint,
url: [... | 36.458333 | 86 | 0.766857 |
ffa22cc00906fa97c03760291b2b91109d9a4761 | 1,068 | ex | Elixir | test/support/conn_case.ex | InFact-coop/your-sanctuary | 066e3b99ae52ee0d3fddac80b6aaf65ffef2bd0f | [
"BSD-3-Clause"
] | 2 | 2018-10-23T13:30:00.000Z | 2018-10-24T14:32:52.000Z | test/support/conn_case.ex | InFact-coop/your-sanctuary | 066e3b99ae52ee0d3fddac80b6aaf65ffef2bd0f | [
"BSD-3-Clause"
] | 60 | 2018-10-23T13:39:19.000Z | 2019-02-11T14:18:01.000Z | test/support/conn_case.ex | InFact-coop/your-sanctuary | 066e3b99ae52ee0d3fddac80b6aaf65ffef2bd0f | [
"BSD-3-Clause"
] | null | null | null | defmodule YourSanctuaryWeb.ConnCase do
@moduledoc """
This module defines the test case to be used by
tests that require setting up a connection.
Such tests rely on `Phoenix.ConnTest` and also
import other functionality to make it easier
to build common datastructures and query the data layer.
Finally, ... | 27.384615 | 75 | 0.727528 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.