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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
745a0de40d71c7d0dea64c6901b88b662c26e99e | 8,218 | ex | Elixir | lib/ex_rabbit_m_q/connection.ex | dennisxtria/exrabbitmq | 50705c5f42daedd6ce465662dd752f8c2f6895b2 | [
"MIT"
] | null | null | null | lib/ex_rabbit_m_q/connection.ex | dennisxtria/exrabbitmq | 50705c5f42daedd6ce465662dd752f8c2f6895b2 | [
"MIT"
] | null | null | null | lib/ex_rabbit_m_q/connection.ex | dennisxtria/exrabbitmq | 50705c5f42daedd6ce465662dd752f8c2f6895b2 | [
"MIT"
] | null | null | null | defmodule ExRabbitMQ.Connection do
@moduledoc """
A `GenServer` implementing a long running connection to a RabbitMQ server.
Consumers and producers share connections and when a connection reaches the default limit of **65535** channels
or the maximum channels per connection that has been set in the configurat... | 30.894737 | 130 | 0.700657 |
745a2873bf9b96cc5a7e734455ab5cfd1225b2b1 | 9,764 | exs | Elixir | implementations/elixir/ockam/ockam_vault_software/test/vault_software_test.exs | digikata/ockam | 015a834ce0d34921b634439d965f726d877fd076 | [
"Apache-2.0"
] | null | null | null | implementations/elixir/ockam/ockam_vault_software/test/vault_software_test.exs | digikata/ockam | 015a834ce0d34921b634439d965f726d877fd076 | [
"Apache-2.0"
] | null | null | null | implementations/elixir/ockam/ockam_vault_software/test/vault_software_test.exs | digikata/ockam | 015a834ce0d34921b634439d965f726d877fd076 | [
"Apache-2.0"
] | null | null | null | defmodule Ockam.Vault.Software.Tests do
use ExUnit.Case, async: true
doctest Ockam.Vault.Software
describe "Ockam.Vault.Software.sha256/2" do
test "can run natively implemented functions" do
{:ok, handle} = Ockam.Vault.Software.default_init()
{:ok, hash} = Ockam.Vault.Software.sha256(handle, "tes... | 39.370968 | 98 | 0.626178 |
745a3d80c34f3493441ebed3f0fe608c2fc20f41 | 6,704 | ex | Elixir | lib/ex_unit/lib/ex_unit/callbacks.ex | jovannypcg/elixir | de3f5df7fdcda79e2661f9cee6005707e7e8d030 | [
"Apache-2.0"
] | null | null | null | lib/ex_unit/lib/ex_unit/callbacks.ex | jovannypcg/elixir | de3f5df7fdcda79e2661f9cee6005707e7e8d030 | [
"Apache-2.0"
] | null | null | null | lib/ex_unit/lib/ex_unit/callbacks.ex | jovannypcg/elixir | de3f5df7fdcda79e2661f9cee6005707e7e8d030 | [
"Apache-2.0"
] | null | null | null | defmodule ExUnit.Callbacks do
@moduledoc ~S"""
Defines ExUnit Callbacks.
This module defines both `setup_all` and `setup` callbacks, as well as
the `on_exit` facility.
The setup callbacks are defined via macros and each one can optionally
receive a map with metadata, usually referred to as `context`. The
... | 30.198198 | 91 | 0.660054 |
745a6434178498fd5a330f1c0ee165eb9d239f2e | 12,122 | ex | Elixir | lib/crontab/cron_expression/parser.ex | mveytsman/crontab | f42a90a1ab227c9137bd9f31d33ccfb1a82439e2 | [
"MIT"
] | 71 | 2017-01-17T12:43:20.000Z | 2022-03-11T09:31:32.000Z | lib/crontab/cron_expression/parser.ex | mveytsman/crontab | f42a90a1ab227c9137bd9f31d33ccfb1a82439e2 | [
"MIT"
] | 70 | 2017-01-18T08:49:19.000Z | 2022-03-31T00:34:47.000Z | lib/crontab/cron_expression/parser.ex | mveytsman/crontab | f42a90a1ab227c9137bd9f31d33ccfb1a82439e2 | [
"MIT"
] | 29 | 2017-01-02T07:24:11.000Z | 2022-03-11T15:57:56.000Z | defmodule Crontab.CronExpression.Parser do
@moduledoc """
Parse string like `* * * * * *` to a `%Crontab.CronExpression{}`.
"""
alias Crontab.CronExpression
@type result :: {:ok, CronExpression.t()} | {:error, binary}
@specials %{
reboot: %CronExpression{reboot: true},
yearly: %CronExpression{min... | 29.42233 | 95 | 0.590662 |
745aa3f14bde1e550022346efc9177647558df11 | 128 | exs | Elixir | test/ueberauth_bnet_test.exs | dionridley/ueberauth_bnet | 98ffafe76076fbbf41dd6632d9e006c7b9a2d189 | [
"MIT"
] | 3 | 2018-01-26T15:10:52.000Z | 2021-07-07T18:04:24.000Z | test/ueberauth_bnet_test.exs | dionridley/ueberauth_bnet | 98ffafe76076fbbf41dd6632d9e006c7b9a2d189 | [
"MIT"
] | 2 | 2019-10-07T17:08:34.000Z | 2021-08-28T03:03:26.000Z | test/ueberauth_bnet_test.exs | dionridley/ueberauth_bnet | 98ffafe76076fbbf41dd6632d9e006c7b9a2d189 | [
"MIT"
] | 3 | 2017-09-01T16:18:11.000Z | 2021-08-16T21:18:42.000Z | defmodule UeberauthBnetTest do
use ExUnit.Case
doctest UeberauthBnet
test "the truth" do
assert 1 + 1 == 2
end
end
| 14.222222 | 30 | 0.703125 |
745ac19b5dbd236fb1ec738c4944ab4e22f6b6ac | 1,855 | ex | Elixir | lib/core/defaulter.ex | lizhaochao/Argx | d2fb6e346d824a2775603e2eb779bb588870636d | [
"MIT"
] | 2 | 2021-05-07T03:27:19.000Z | 2021-05-19T02:04:01.000Z | lib/core/defaulter.ex | lizhaochao/Argx | d2fb6e346d824a2775603e2eb779bb588870636d | [
"MIT"
] | 1 | 2021-05-10T14:09:36.000Z | 2021-05-10T14:10:11.000Z | lib/core/defaulter.ex | lizhaochao/Argx | d2fb6e346d824a2775603e2eb779bb588870636d | [
"MIT"
] | null | null | null | defmodule Argx.Defaulter do
@moduledoc false
alias Argx.{Checker, Error}
def set_default(
{arg_name, _arg_value} = arg,
{arg_name2, %Argx.Config{}} = config,
module
)
when arg_name == arg_name2 do
do_set_default(arg, config, module)
end
def set_default(_other_arg, _o... | 23.481013 | 86 | 0.578976 |
745adb96c8cea0ecdd1362301ca969e7f2836d87 | 338 | ex | Elixir | lib/spring_config/loader/loader_behaviour.ex | johnf9896/spring_config | f0944a5b031334ac711eab8938d51dd9517ad460 | [
"Apache-2.0"
] | null | null | null | lib/spring_config/loader/loader_behaviour.ex | johnf9896/spring_config | f0944a5b031334ac711eab8938d51dd9517ad460 | [
"Apache-2.0"
] | null | null | null | lib/spring_config/loader/loader_behaviour.ex | johnf9896/spring_config | f0944a5b031334ac711eab8938d51dd9517ad460 | [
"Apache-2.0"
] | 1 | 2019-11-27T06:37:12.000Z | 2019-11-27T06:37:12.000Z | defmodule SpringConfig.Loader.LoaderBehaviour do
@moduledoc """
Defines a behaviour for loading configuration from different sources
"""
@doc """
Loads the configuration from a single source. The options accepted depend on each implementation of this behaviour.
"""
@callback load(opts :: Keyword.t()) :... | 30.727273 | 117 | 0.736686 |
745af35b2cb3954af841723db01dd5c6103849ec | 1,880 | exs | Elixir | test/pco_api/people/list/share_test.exs | geolessel/pco-api-elixir | 6f4d9f86247a1f6370a512166e9fed3a216302e5 | [
"MIT"
] | 4 | 2016-05-13T20:04:32.000Z | 2020-12-03T11:25:01.000Z | test/pco_api/people/list/share_test.exs | geolessel/pco-api-elixir | 6f4d9f86247a1f6370a512166e9fed3a216302e5 | [
"MIT"
] | 23 | 2016-05-14T01:34:02.000Z | 2016-08-16T22:34:40.000Z | test/pco_api/people/list/share_test.exs | geolessel/pco-api-elixir | 6f4d9f86247a1f6370a512166e9fed3a216302e5 | [
"MIT"
] | 4 | 2016-05-27T23:40:39.000Z | 2019-10-06T17:36:40.000Z | defmodule PcoApi.People.List.ShareTest do
use ExUnit.Case, async: false
alias PcoApi.People.List.Share
alias TestHelper.Fixture
setup do
bypass = Bypass.open
Application.put_env(:pco_api, :endpoint_base, "http://localhost:#{bypass.port}/")
{:ok, bypass: bypass}
end
test ".list lists shares wit... | 28.923077 | 86 | 0.65 |
745b0549fce76e585f081754c8843a61a5681548 | 1,883 | ex | Elixir | web/controllers/location_controller.ex | beccanelson/8th-light-library | d0aa70371ca7645abf8609b53202ebb1808ca633 | [
"MIT"
] | null | null | null | web/controllers/location_controller.ex | beccanelson/8th-light-library | d0aa70371ca7645abf8609b53202ebb1808ca633 | [
"MIT"
] | 9 | 2016-09-22T20:30:22.000Z | 2016-09-22T21:00:53.000Z | web/controllers/location_controller.ex | beccanelson/library | d0aa70371ca7645abf8609b53202ebb1808ca633 | [
"MIT"
] | null | null | null | defmodule Bookish.LocationController do
use Bookish.Web, :controller
alias Bookish.Location
alias Bookish.Repository
def index(conn, _params) do
render(conn, "index.html", locations: Repository.get_locations)
end
def new(conn, _params) do
changeset = Location.changeset(%Location{})
render(con... | 29.888889 | 75 | 0.663303 |
745b088a32a39a437902a73c02192a56087bf80b | 421 | exs | Elixir | priv/repo/migrations/20180223040739_create_products.exs | roger120981/planet | a662006551d11427c08cf6cdbacd37d377bcd9c5 | [
"MIT"
] | 1 | 2019-04-01T19:14:16.000Z | 2019-04-01T19:14:16.000Z | priv/repo/migrations/20180223040739_create_products.exs | roger120981/planet | a662006551d11427c08cf6cdbacd37d377bcd9c5 | [
"MIT"
] | null | null | null | priv/repo/migrations/20180223040739_create_products.exs | roger120981/planet | a662006551d11427c08cf6cdbacd37d377bcd9c5 | [
"MIT"
] | 1 | 2019-03-24T01:50:48.000Z | 2019-03-24T01:50:48.000Z | defmodule Excommerce.Repo.Migrations.CreateProducts do
use Ecto.Migration
def change do
create table(:products) do
add :name, :string
add :description, :text
add :permalink, :string
add :available_on, :date
add :deleted_at, :date
add :meta_description, :text
add :meta_... | 21.05 | 54 | 0.662708 |
745b5ad1ab97a2ee9a557d692bc44f5b4e0d0818 | 559 | ex | Elixir | lib/distcount_web/views/error_view.ex | cabol/distcount | b0b42f66dcc130ec6e349ab8b915cfb6f5b77c7b | [
"MIT"
] | null | null | null | lib/distcount_web/views/error_view.ex | cabol/distcount | b0b42f66dcc130ec6e349ab8b915cfb6f5b77c7b | [
"MIT"
] | null | null | null | lib/distcount_web/views/error_view.ex | cabol/distcount | b0b42f66dcc130ec6e349ab8b915cfb6f5b77c7b | [
"MIT"
] | null | null | null | defmodule DistcountWeb.ErrorView do
use DistcountWeb, :view
alias Phoenix.Controller
# If you want to customize a particular status code
# for a certain format, you may uncomment below.
# def render("500.json", _assigns) do
# %{errors: %{detail: "Internal Server Error"}}
# end
# By default, Phoenix... | 29.421053 | 75 | 0.722719 |
745b6e58d805075cc173e9cad618be08a32198a4 | 979 | exs | Elixir | test/users/create_test.exs | lucascprazeres/rocketpay | 1717d1882b089061990c3cf9b0646839f99e935a | [
"MIT"
] | 2 | 2021-02-26T13:03:29.000Z | 2021-02-28T17:08:22.000Z | test/users/create_test.exs | lucascprazeres/rocketpay | 1717d1882b089061990c3cf9b0646839f99e935a | [
"MIT"
] | null | null | null | test/users/create_test.exs | lucascprazeres/rocketpay | 1717d1882b089061990c3cf9b0646839f99e935a | [
"MIT"
] | 3 | 2021-02-22T19:26:18.000Z | 2021-03-22T13:10:53.000Z | defmodule Rocketpay.Users.CreateTest do
use Rocketpay.DataCase, async: true
alias Rocketpay.User
alias Rocketpay.Users.Create
describe "call/1" do
test "should be able to create an user" do
params = %{
name: "teste",
email: "teste@email.com",
nickname: "testinho",
pass... | 23.878049 | 71 | 0.581205 |
745b737f9b32a00ab77bdd5c3d8b597a7be29bb9 | 416 | exs | Elixir | .credo.exs | ssbb/sitemap | b18aef246e995aaec854681b9c90066472acabe5 | [
"MIT"
] | 1 | 2017-02-18T21:20:17.000Z | 2017-02-18T21:20:17.000Z | .credo.exs | ssbb/sitemap | b18aef246e995aaec854681b9c90066472acabe5 | [
"MIT"
] | null | null | null | .credo.exs | ssbb/sitemap | b18aef246e995aaec854681b9c90066472acabe5 | [
"MIT"
] | null | null | null | %{
configs: [
%{
name: "default",
files: %{
included: ["lib/", "src/", "web/", "apps/"],
excluded: []
},
checks: [
{Credo.Check.Readability.MaxLineLength, priority: :low, max_length: 120},
{Credo.Check.Readability.ModuleDoc, false},
{Credo.Check.Refa... | 23.111111 | 81 | 0.524038 |
745b7509b68649df071b79c10632f341578fc701 | 301 | exs | Elixir | test/grizzly/zwave/commands/thermostat_operating_state_get_test.exs | jellybob/grizzly | 290bee04cb16acbb9dc996925f5c501697b7ac94 | [
"Apache-2.0"
] | 76 | 2019-09-04T16:56:58.000Z | 2022-03-29T06:54:36.000Z | test/grizzly/zwave/commands/thermostat_operating_state_get_test.exs | jellybob/grizzly | 290bee04cb16acbb9dc996925f5c501697b7ac94 | [
"Apache-2.0"
] | 124 | 2019-09-05T14:01:24.000Z | 2022-02-28T22:58:14.000Z | test/grizzly/zwave/commands/thermostat_operating_state_get_test.exs | jellybob/grizzly | 290bee04cb16acbb9dc996925f5c501697b7ac94 | [
"Apache-2.0"
] | 10 | 2019-10-23T19:25:45.000Z | 2021-11-17T13:21:20.000Z | defmodule Grizzly.ZWave.Commands.ThermostatOperatingStateGetTest do
use ExUnit.Case, async: true
alias Grizzly.ZWave.Commands.ThermostatOperatingStateGet
test "creates the command and validates params" do
params = []
{:ok, _command} = ThermostatOperatingStateGet.new(params)
end
end
| 27.363636 | 67 | 0.780731 |
745bcf27812c207c10f07cc11df37c1fb382cd9f | 1,216 | exs | Elixir | priv/repo/migrations/20211018180131_store_settings.exs | bitpal/bitpal | 0e10eeaacf7a65b23945cfb95e4dbda8bffd4590 | [
"BSD-3-Clause-Clear"
] | 5 | 2021-05-04T21:28:00.000Z | 2021-12-01T11:19:48.000Z | priv/repo/migrations/20211018180131_store_settings.exs | bitpal/bitpal | 0e10eeaacf7a65b23945cfb95e4dbda8bffd4590 | [
"BSD-3-Clause-Clear"
] | 71 | 2021-04-21T05:48:49.000Z | 2022-03-23T06:30:37.000Z | priv/repo/migrations/20211018180131_store_settings.exs | bitpal/bitpal | 0e10eeaacf7a65b23945cfb95e4dbda8bffd4590 | [
"BSD-3-Clause-Clear"
] | 1 | 2021-04-25T10:35:41.000Z | 2021-04-25T10:35:41.000Z | defmodule BitPal.Repo.Migrations.StoreSettings do
use Ecto.Migration
def change do
create table(:currency_settings) do
add :required_confirmations, :integer
add :double_spend_timeout, :integer
add :currency_id, references(:currencies, type: :string, size: 8), null: false
add :store_id, ... | 32.864865 | 84 | 0.712993 |
745beaca75c4122a51dca13cbcf3e4cda837d0ae | 2,363 | exs | Elixir | test/controllers/user_controller_test.exs | norikakip/exfile_sample | 1da5e24ef39d8bac50c44823eaed75dfb6e2dcb6 | [
"MIT"
] | 1 | 2016-01-23T04:11:44.000Z | 2016-01-23T04:11:44.000Z | test/controllers/user_controller_test.exs | norikakip/exfile_sample | 1da5e24ef39d8bac50c44823eaed75dfb6e2dcb6 | [
"MIT"
] | null | null | null | test/controllers/user_controller_test.exs | norikakip/exfile_sample | 1da5e24ef39d8bac50c44823eaed75dfb6e2dcb6 | [
"MIT"
] | null | null | null | defmodule ExfileSample.UserControllerTest do
use ExfileSample.ConnCase
alias ExfileSample.User
@valid_attrs %{avatar: "some content", email: "some content", name: "some content"}
@invalid_attrs %{}
test "lists all entries on index", %{conn: conn} do
conn = get conn, user_path(conn, :index)
assert ht... | 35.268657 | 98 | 0.678375 |
745bf734d3553f49e465fe94925049253868904d | 6,035 | exs | Elixir | apps/data/.credo.exs | sb8244/grapevine | effaaa01294d30114090c20f9cc40b8665d834f2 | [
"MIT"
] | 107 | 2018-10-05T18:20:32.000Z | 2022-02-28T04:02:50.000Z | apps/data/.credo.exs | sb8244/grapevine | effaaa01294d30114090c20f9cc40b8665d834f2 | [
"MIT"
] | 33 | 2018-10-05T14:11:18.000Z | 2022-02-10T22:19:18.000Z | apps/data/.credo.exs | sb8244/grapevine | effaaa01294d30114090c20f9cc40b8665d834f2 | [
"MIT"
] | 18 | 2019-02-03T03:08:20.000Z | 2021-12-28T04:29:36.000Z | # This file contains the configuration for Credo and you are probably reading
# this after creating it with `mix credo.gen.config`.
#
# If you find anything wrong or unclear in this file, please report an
# issue on GitHub: https://github.com/rrrene/credo/issues
#
%{
#
# You can have as many configs as you like in ... | 37.484472 | 91 | 0.634466 |
745c032e31284c348512f9ad25cc1120bc27bd15 | 7,913 | ex | Elixir | implementations/elixir/lib/ockam/channel/xx.ex | hollyfeld/ockam | 10a618b60b5b913821bfa8df3ad9693a70913ace | [
"Apache-2.0"
] | 1 | 2021-01-02T11:42:16.000Z | 2021-01-02T11:42:16.000Z | implementations/elixir/lib/ockam/channel/xx.ex | ercanersoy/ockam | b537a4951770d223f5493bcff5358d0677865a0f | [
"Apache-2.0"
] | null | null | null | implementations/elixir/lib/ockam/channel/xx.ex | ercanersoy/ockam | b537a4951770d223f5493bcff5358d0677865a0f | [
"Apache-2.0"
] | null | null | null | defmodule Ockam.Channel.XX do
@moduledoc """
Defines the XX Key Agreement protocol.
"""
alias Ockam.Message
alias Ockam.Router
alias Ockam.Vault
defstruct [:vault, :e, :s, :rs, :re, :ck, :k, :n, :h, :prologue]
@protocol_name "Noise_XX_25519_AESGCM_SHA256"
defmacro zero_padded_protocol_name do
q... | 36.976636 | 108 | 0.636042 |
745c11c411232b84b9612f34cae40e3ca494fd30 | 1,832 | ex | Elixir | clients/gmail/lib/google_api/gmail/v1/model/batch_modify_messages_request.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/gmail/lib/google_api/gmail/v1/model/batch_modify_messages_request.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/gmail/lib/google_api/gmail/v1/model/batch_modify_messages_request.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... | 34.566038 | 135 | 0.710153 |
745c19a98dcf43da9cef0adfaa613442e9696637 | 7,974 | ex | Elixir | lib/carbonite/migrations.ex | bitcrowd/carbonite | 663af92caa2afa8838cb43800da8e320f323276a | [
"Apache-2.0"
] | 26 | 2021-10-30T06:32:20.000Z | 2022-03-28T14:34:24.000Z | lib/carbonite/migrations.ex | bitcrowd/carbonite | 663af92caa2afa8838cb43800da8e320f323276a | [
"Apache-2.0"
] | 8 | 2021-10-20T08:03:34.000Z | 2022-02-25T08:48:14.000Z | lib/carbonite/migrations.ex | bitcrowd/carbonite | 663af92caa2afa8838cb43800da8e320f323276a | [
"Apache-2.0"
] | null | null | null | # SPDX-License-Identifier: Apache-2.0
defmodule Carbonite.Migrations do
@moduledoc """
Functions to setup Carbonite audit trails in your migrations.
"""
@moduledoc since: "0.1.0"
use Ecto.Migration
import Carbonite, only: [default_prefix: 0]
import Carbonite.Migrations.Helper
@type patch :: non_neg_... | 29.424354 | 96 | 0.651994 |
745c3a12666631f988054510ff169d94b343d329 | 407 | exs | Elixir | test/nebulex_redis_adapter/standalone_test.exs | bjyoungblood/nebulex_redis_adapter | 8ecf19f91d1d332c39e3507831fbfabc800fcf2b | [
"MIT"
] | 20 | 2018-09-02T15:14:44.000Z | 2021-12-10T16:40:56.000Z | test/nebulex_redis_adapter/standalone_test.exs | bjyoungblood/nebulex_redis_adapter | 8ecf19f91d1d332c39e3507831fbfabc800fcf2b | [
"MIT"
] | 23 | 2018-10-26T19:49:11.000Z | 2022-03-23T22:37:25.000Z | test/nebulex_redis_adapter/standalone_test.exs | bjyoungblood/nebulex_redis_adapter | 8ecf19f91d1d332c39e3507831fbfabc800fcf2b | [
"MIT"
] | 17 | 2018-11-06T00:19:03.000Z | 2021-11-19T09:46:06.000Z | defmodule NebulexRedisAdapter.StandaloneTest do
use ExUnit.Case, async: true
use NebulexRedisAdapter.CacheTest
alias NebulexRedisAdapter.TestCache.Standalone, as: Cache
setup do
{:ok, pid} = Cache.start_link()
Cache.flush()
:ok
on_exit(fn ->
:ok = Process.sleep(100)
if Process.ali... | 20.35 | 59 | 0.670762 |
745c3d0a2e521965b1154d2d1141336966e1e649 | 860 | ex | Elixir | apps/wdpa_importer/test/support/file_mock.ex | lucidstack/wdpa-tracker | da9a10d08bf5b23aff696aee33f5d6ad1089079d | [
"MIT"
] | 4 | 2016-05-08T10:17:19.000Z | 2019-06-10T15:23:20.000Z | apps/wdpa_importer/test/support/file_mock.ex | lucidstack/wdpa-tracker | da9a10d08bf5b23aff696aee33f5d6ad1089079d | [
"MIT"
] | null | null | null | apps/wdpa_importer/test/support/file_mock.ex | lucidstack/wdpa-tracker | da9a10d08bf5b23aff696aee33f5d6ad1089079d | [
"MIT"
] | null | null | null | defmodule WdpaImporter.Test.FileMock do
def stream!("2-pas/year-1997") do
["WDPAID,ISO3", "1,CIV", "2,CIV"]
end
def stream!("2-countries/year-1997") do
["WDPAID,ISO3", "1,CIV", "2,DEU"]
end
def stream!("2-countries-dup/year-1997") do
["WDPAID,ISO3", "1,CIV", "2,CIV"]
end
def stream!("2-desi... | 28.666667 | 107 | 0.673256 |
745c3e4f27509920b924443f05d535d55cee8001 | 2,221 | ex | Elixir | clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1beta2__annotate_video_progress.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1beta2__annotate_video_progress.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1beta2__annotate_video_progress.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 34.703125 | 233 | 0.762719 |
745c72ff77bcf79e4c9db7876f3bc6fa14804350 | 1,858 | ex | Elixir | clients/content/lib/google_api/content/v21/model/orders_list_response.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | 1 | 2021-10-01T09:20:41.000Z | 2021-10-01T09:20:41.000Z | clients/content/lib/google_api/content/v21/model/orders_list_response.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v21/model/orders_list_response.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"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.056604 | 149 | 0.714209 |
745c8a15e733e5e5c8b79c6efe46e947b367973f | 34,018 | ex | Elixir | lib/httpoison/base.ex | rogeriochaves/httpoison | 791f1666d982e82b643ce01a4ec6eff54d19ce1a | [
"MIT"
] | 2,157 | 2015-01-03T11:03:33.000Z | 2022-03-31T12:03:59.000Z | lib/httpoison/base.ex | rogeriochaves/httpoison | 791f1666d982e82b643ce01a4ec6eff54d19ce1a | [
"MIT"
] | 397 | 2015-01-04T07:48:19.000Z | 2022-03-31T07:01:43.000Z | lib/httpoison/base.ex | rogeriochaves/httpoison | 791f1666d982e82b643ce01a4ec6eff54d19ce1a | [
"MIT"
] | 441 | 2015-01-08T22:13:20.000Z | 2022-03-29T17:52:23.000Z | defmodule HTTPoison.Base do
@moduledoc """
Provides a default implementation for HTTPoison functions.
This module is meant to be `use`'d in custom modules in order to wrap the
functionalities provided by HTTPoison. For example, this is very useful to
build API clients around HTTPoison:
defmodule GitHu... | 35.472367 | 100 | 0.616644 |
745c9971513c54685e5b803b452c3ed2f58c7da0 | 16,765 | exs | Elixir | apps/admin_api/test/admin_api/v1/controllers/admin_auth/transaction_request_controller_test.exs | saturnial/ewallet | a0a6a7604fca0891d495b3aebaead37fe02aae2c | [
"Apache-2.0"
] | null | null | null | apps/admin_api/test/admin_api/v1/controllers/admin_auth/transaction_request_controller_test.exs | saturnial/ewallet | a0a6a7604fca0891d495b3aebaead37fe02aae2c | [
"Apache-2.0"
] | null | null | null | apps/admin_api/test/admin_api/v1/controllers/admin_auth/transaction_request_controller_test.exs | saturnial/ewallet | a0a6a7604fca0891d495b3aebaead37fe02aae2c | [
"Apache-2.0"
] | null | null | null | defmodule AdminAPI.V1.AdminAuth.TransactionRequestControllerTest do
use AdminAPI.ConnCase, async: true
alias EWalletDB.{Repo, TransactionRequest, User, Account, AccountUser}
alias EWallet.Web.Date
alias EWallet.Web.V1.{TokenSerializer, UserSerializer, AccountSerializer, WalletSerializer}
describe "/transacti... | 35.369198 | 94 | 0.505279 |
745cbdbea8329f4532d390f9a79d4b78ae80d96c | 1,775 | ex | Elixir | lib/epicenter_web/live_helpers.ex | geometricservices/epi-viewpoin | ecb5316ea0f3f7299d5ff63e2de588539005ac1c | [
"Apache-2.0"
] | 5 | 2021-02-25T18:43:09.000Z | 2021-02-27T06:00:35.000Z | lib/epicenter_web/live_helpers.ex | geometricservices/epi-viewpoint | ecb5316ea0f3f7299d5ff63e2de588539005ac1c | [
"Apache-2.0"
] | 3 | 2021-12-13T17:52:47.000Z | 2021-12-17T01:35:31.000Z | lib/epicenter_web/live_helpers.ex | geometricservices/epi-viewpoint | ecb5316ea0f3f7299d5ff63e2de588539005ac1c | [
"Apache-2.0"
] | 1 | 2022-01-27T23:26:38.000Z | 2022-01-27T23:26:38.000Z | defmodule EpicenterWeb.LiveHelpers do
import Phoenix.LiveView
alias Epicenter.Accounts
alias EpicenterWeb.Endpoint
alias EpicenterWeb.Router.Helpers, as: Routes
@default_assigns [body_class: "body-background-none", show_nav: true]
def assign_defaults(socket, overrides \\ []) do
new_assigns = Keyword.... | 35.5 | 131 | 0.727887 |
745cc0460267c3244e294c934892f0217d645c0c | 53 | ex | Elixir | apps/admin/lib/admin/views/layout_view.ex | glv/revista | 00ecb0780c62a5525155a773b959b169e0e0500d | [
"MIT"
] | 17 | 2019-01-31T18:33:09.000Z | 2022-01-18T12:38:49.000Z | apps/admin/lib/admin/views/layout_view.ex | glv/revista | 00ecb0780c62a5525155a773b959b169e0e0500d | [
"MIT"
] | null | null | null | apps/admin/lib/admin/views/layout_view.ex | glv/revista | 00ecb0780c62a5525155a773b959b169e0e0500d | [
"MIT"
] | 4 | 2018-11-10T01:56:17.000Z | 2020-06-09T21:10:41.000Z | defmodule Admin.LayoutView do
use Admin, :view
end
| 13.25 | 29 | 0.773585 |
745d024053116287477d2a71537b36439ca80881 | 395 | ex | Elixir | lib/cog/models/bundle_version_permission.ex | matusf/cog | 71708301c7dc570fb0d3498a50f47a70ef957788 | [
"Apache-2.0"
] | 1,003 | 2016-02-23T17:21:12.000Z | 2022-02-20T14:39:35.000Z | lib/cog/models/bundle_version_permission.ex | matusf/cog | 71708301c7dc570fb0d3498a50f47a70ef957788 | [
"Apache-2.0"
] | 906 | 2016-02-22T22:54:19.000Z | 2022-03-11T15:19:43.000Z | lib/cog/models/bundle_version_permission.ex | matusf/cog | 71708301c7dc570fb0d3498a50f47a70ef957788 | [
"Apache-2.0"
] | 95 | 2016-02-23T13:42:31.000Z | 2021-11-30T14:39:55.000Z | defmodule Cog.Models.PermissionBundleVersion do
use Cog.Model
alias Cog.Models.{Permission, BundleVersion}
@primary_key false
schema "permission_bundle_version" do
belongs_to :permission, Permission, primary_key: true
belongs_to :bundle_version, BundleVersion, primary_key: true
end
# Insertions a... | 26.333333 | 67 | 0.779747 |
745d1f208a4603cd0ee332f881d1ff9554e3bb75 | 809 | exs | Elixir | test/battle_box_web/controllers/helpers_test.exs | GrantJamesPowell/battle_box | 301091955b68cd4672f6513d645eca4e3c4e17d0 | [
"Apache-2.0"
] | 2 | 2020-10-17T05:48:49.000Z | 2020-11-11T02:34:15.000Z | test/battle_box_web/controllers/helpers_test.exs | FlyingDutchmanGames/battle_box | 301091955b68cd4672f6513d645eca4e3c4e17d0 | [
"Apache-2.0"
] | 3 | 2020-05-18T05:52:21.000Z | 2020-06-09T07:24:14.000Z | test/battle_box_web/controllers/helpers_test.exs | FlyingDutchmanGames/battle_box | 301091955b68cd4672f6513d645eca4e3c4e17d0 | [
"Apache-2.0"
] | null | null | null | defmodule BattleBoxWeb.Controllers.HelpersTest do
use BattleBoxWeb.ConnCase
alias BattleBoxWeb.Controllers.Helpers
alias BattleBox.{Arena, Bot, User}
[
{{Bot, "bot-name"}, "Bot (bot-name) Not Found"},
{{Bot, "bot-name", "user-name"}, "Bot (bot-name) for User (user-name) Not Found"},
{{Arena, "arena... | 40.45 | 97 | 0.653894 |
745d90b9dfc07fc1e179333258f2f439da762328 | 30,603 | exs | Elixir | installer/test/phx_new_umbrella_test.exs | arjun810/phoenix | b50ca688e7b79423f3124af8778711bb1588947f | [
"MIT"
] | null | null | null | installer/test/phx_new_umbrella_test.exs | arjun810/phoenix | b50ca688e7b79423f3124af8778711bb1588947f | [
"MIT"
] | null | null | null | installer/test/phx_new_umbrella_test.exs | arjun810/phoenix | b50ca688e7b79423f3124af8778711bb1588947f | [
"MIT"
] | null | null | null | Code.require_file "mix_helper.exs", __DIR__
defmodule Mix.Tasks.Phx.New.UmbrellaTest do
use ExUnit.Case, async: false
import MixHelper
@app "phx_umb"
setup config do
# The shell asks to install deps.
# We will politely say not.
decline_prompt()
{:ok, tmp_dir: to_string(config.test)}
end
... | 42.094911 | 132 | 0.625984 |
745dc1606207533d299a02097ae4e6d86e5eebf4 | 508 | ex | Elixir | lib/absinthe/blueprint/result/object.ex | zoldar/absinthe | 72ff9f91fcc0a261f9965cf8120c7c72ff6e4c7c | [
"MIT"
] | 4,101 | 2016-03-02T03:49:20.000Z | 2022-03-31T05:46:01.000Z | lib/absinthe/blueprint/result/object.ex | zoldar/absinthe | 72ff9f91fcc0a261f9965cf8120c7c72ff6e4c7c | [
"MIT"
] | 889 | 2016-03-02T16:06:59.000Z | 2022-03-31T20:24:12.000Z | lib/absinthe/blueprint/result/object.ex | zoldar/absinthe | 72ff9f91fcc0a261f9965cf8120c7c72ff6e4c7c | [
"MIT"
] | 564 | 2016-03-02T07:49:59.000Z | 2022-03-06T14:40:59.000Z | defmodule Absinthe.Blueprint.Result.Object do
@moduledoc false
alias Absinthe.{Blueprint, Phase}
@enforce_keys [:emitter, :root_value]
defstruct [
:root_value,
:emitter,
:fields,
errors: [],
flags: %{},
extensions: %{}
]
@type t :: %__MODULE__{
emitter: Blueprint.Documen... | 21.166667 | 49 | 0.580709 |
745de5a37a0c951d2d99fdd37ab62e84d894e83e | 395 | ex | Elixir | lib/codes/codes_j65.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_j65.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_j65.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | defmodule IcdCode.ICDCode.Codes_J65 do
alias IcdCode.ICDCode
def _J65 do
%ICDCode{full_code: "J65",
category_code: "J65",
short_code: "",
full_name: "Pneumoconiosis associated with tuberculosis",
short_name: "Pneumoconiosis associated with tuberculosis",
category... | 24.6875 | 70 | 0.670886 |
745de5e329c70a073405788d4ae166aa8fc46efb | 1,528 | ex | Elixir | lib/exq/support/config.ex | rraub/exq | 1ba253fd8923c50033037601376a63ace2063be0 | [
"Apache-2.0"
] | 1,406 | 2015-01-16T03:00:32.000Z | 2022-03-28T11:38:22.000Z | lib/exq/support/config.ex | rraub/exq | 1ba253fd8923c50033037601376a63ace2063be0 | [
"Apache-2.0"
] | 372 | 2015-01-08T05:15:11.000Z | 2022-03-18T18:05:34.000Z | lib/exq/support/config.ex | rraub/exq | 1ba253fd8923c50033037601376a63ace2063be0 | [
"Apache-2.0"
] | 217 | 2015-02-01T20:21:36.000Z | 2022-01-28T16:19:55.000Z | defmodule Exq.Support.Config do
@default_config %{
name: Exq,
mode: :default,
host: "127.0.0.1",
port: 6379,
database: 0,
redis_options: [],
namespace: "exq",
queues: ["default"],
json_library: Jason,
heartbeat_enable: false,
heartbeat_interval: 60_000,
missed_heartbeat... | 23.507692 | 71 | 0.666885 |
745dedcd43b63056b4f5e5689646c3264cc14b69 | 1,735 | ex | Elixir | lib/alastair/seeds/currency_seed.ex | blacksph3re/alastair3 | d6064e322b8ef5c6eb8da59a080852179a71b9d5 | [
"Apache-2.0"
] | null | null | null | lib/alastair/seeds/currency_seed.ex | blacksph3re/alastair3 | d6064e322b8ef5c6eb8da59a080852179a71b9d5 | [
"Apache-2.0"
] | null | null | null | lib/alastair/seeds/currency_seed.ex | blacksph3re/alastair3 | d6064e322b8ef5c6eb8da59a080852179a71b9d5 | [
"Apache-2.0"
] | 1 | 2017-12-15T15:49:16.000Z | 2017-12-15T15:49:16.000Z | defmodule Alastair.Seeds.CurrencySeed do
def run() do
Alastair.Repo.insert!(%Alastair.Currency{
name: "Romanian Lei",
display_code: "lei"
})
Alastair.Repo.insert!(%Alastair.Currency{
name: "Hungarian forint",
display_code: "Ft"
})
Alastair.Repo.insert!(%Alastair.Currency{
name: "US Dollar",... | 19.277778 | 50 | 0.648991 |
745df259f117b9284d7ed06a850edc3720e5b108 | 722 | exs | Elixir | test/tree_test.exs | Tmw/huffman | 837a6d4e13f88d7a5e23998edff4d172523c33f3 | [
"MIT"
] | 5 | 2020-09-06T18:29:51.000Z | 2021-03-13T13:38:34.000Z | test/tree_test.exs | Tmw/huffman | 837a6d4e13f88d7a5e23998edff4d172523c33f3 | [
"MIT"
] | null | null | null | test/tree_test.exs | Tmw/huffman | 837a6d4e13f88d7a5e23998edff4d172523c33f3 | [
"MIT"
] | 1 | 2020-09-06T18:29:54.000Z | 2020-09-06T18:29:54.000Z | defmodule TreeTest do
use ExUnit.Case
alias Huffman.{Queue, Tree, Node, Leaf}
@sample_tree %Node{
left: %Node{
left: %Leaf{val: "a"},
right: %Leaf{val: "b"}
},
right: %Leaf{val: "c"}
}
@bit_representation <<44, 54, 43, 3::size(5)>>
describe "#build/1" do
map = %{
"a" => ... | 19 | 71 | 0.583102 |
745e14f56811f1f3136c891dd703e778612633b7 | 1,569 | ex | Elixir | web/controllers/admin_controller.ex | devonestes/ex_admin | e135ae7c28de78fc87baf519ff8a32da12e8bf66 | [
"MIT"
] | 1,347 | 2015-10-05T18:23:49.000Z | 2022-01-09T18:38:36.000Z | web/controllers/admin_controller.ex | leonardzhou/ex_admin | c241e956503c548a472e3ee89751e64a16477638 | [
"MIT"
] | 402 | 2015-10-03T13:53:32.000Z | 2021-07-08T09:52:22.000Z | web/controllers/admin_controller.ex | leonardzhou/ex_admin | c241e956503c548a472e3ee89751e64a16477638 | [
"MIT"
] | 333 | 2015-10-12T22:56:57.000Z | 2021-05-26T18:40:24.000Z | defmodule ExAdmin.AdminController do
@moduledoc false
use ExAdmin.Web, :controller
require Logger
plug :set_theme
plug :set_layout
def page(conn, params) do
page = Map.get(params, "page", "dashboard")
defn = get_registered_by_controller_route!(conn, page)
conn = assign(conn, :defn, defn)
... | 34.108696 | 85 | 0.66348 |
745e2c56a79f6aa384d9aa3e0f8d23a9d873439f | 9,476 | ex | Elixir | clients/cloud_billing/lib/google_api/cloud_billing/v1/api/billing_accounts.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/cloud_billing/lib/google_api/cloud_billing/v1/api/billing_accounts.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/cloud_billing/lib/google_api/cloud_billing/v1/api/billing_accounts.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... | 48.594872 | 253 | 0.684255 |
745e5533f5e93af0b466175e659cbc8714703eef | 157 | ex | Elixir | fixtures/test_settings.ex | Cobenian/okta | c6e65f87ad4809955f89d9376175080f6cc2dbea | [
"Apache-2.0"
] | null | null | null | fixtures/test_settings.ex | Cobenian/okta | c6e65f87ad4809955f89d9376175080f6cc2dbea | [
"Apache-2.0"
] | null | null | null | fixtures/test_settings.ex | Cobenian/okta | c6e65f87ad4809955f89d9376175080f6cc2dbea | [
"Apache-2.0"
] | null | null | null | defmodule OktaTestSettings do
def test do
%{
:username => "",
:password => "",
:site => "",
:api_token => ""
}
end
end
| 13.083333 | 29 | 0.452229 |
745e634545ac24ffa80dbf76740109c6f448fac7 | 696 | exs | Elixir | mix.exs | SmartCasual/elixir-zeromq | 91430a6a662399d2d96be731a778e29e8425ce7f | [
"MIT"
] | null | null | null | mix.exs | SmartCasual/elixir-zeromq | 91430a6a662399d2d96be731a778e29e8425ce7f | [
"MIT"
] | null | null | null | mix.exs | SmartCasual/elixir-zeromq | 91430a6a662399d2d96be731a778e29e8425ce7f | [
"MIT"
] | null | null | null | defmodule ZeroMQ.Mixfile do
use Mix.Project
def project do
[app: :elixir_zeromq,
version: "0.0.1",
elixir: "~> 1.1",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps]
end
# Configuration for the OTP application
#
# Type "mix help compile.app" for... | 20.470588 | 77 | 0.603448 |
745e97fa51b3893bece22c0c4e9d45375dd5bf64 | 1,206 | exs | Elixir | test/budget_app/operations/expense/create_test.exs | djordje/budget_app.backend | 3febe64892e700f3174b8eddbc4b96260c444308 | [
"MIT"
] | null | null | null | test/budget_app/operations/expense/create_test.exs | djordje/budget_app.backend | 3febe64892e700f3174b8eddbc4b96260c444308 | [
"MIT"
] | null | null | null | test/budget_app/operations/expense/create_test.exs | djordje/budget_app.backend | 3febe64892e700f3174b8eddbc4b96260c444308 | [
"MIT"
] | null | null | null | defmodule BudgetApp.Operations.Expense.CreateTest do
use BudgetAppWeb.ConnCase, async: true
alias BudgetApp.Operations.Expense.Create
alias BudgetApp.Expense
alias BudgetApp.Repo
test "saves record to the DB" do
currency = insert(:currency)
assert Repo.aggregate(Expense, :count, :id) == 0
{:ok... | 35.470588 | 91 | 0.703151 |
745e9fea0bcbc2c36ef843720e4e005360510830 | 358 | exs | Elixir | priv/repo/seeds.exs | bmordas11/fun_in_the_sun | eb6f4f604a8ebf0f12b7a51c3b4e37ac777fe84b | [
"MIT"
] | null | null | null | priv/repo/seeds.exs | bmordas11/fun_in_the_sun | eb6f4f604a8ebf0f12b7a51c3b4e37ac777fe84b | [
"MIT"
] | null | null | null | priv/repo/seeds.exs | bmordas11/fun_in_the_sun | eb6f4f604a8ebf0f12b7a51c3b4e37ac777fe84b | [
"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:
#
# FunInTheSun.Repo.insert!(%FunInTheSun.SomeModel{})
#
# We recommend using the bang functions (`insert!`, `update!`
# and so on) as th... | 29.833333 | 61 | 0.712291 |
745ec372d0be7c4795802724a7273dfa48b72592 | 398 | ex | Elixir | lib/mongoose_push/config/utils.ex | andrewvmail/MongoosePush | 538846e19a89c9ca4bc1583745131dc69d3d29f4 | [
"Apache-2.0"
] | 107 | 2017-02-10T00:26:05.000Z | 2022-02-23T00:50:07.000Z | lib/mongoose_push/config/utils.ex | andrewvmail/MongoosePush | 538846e19a89c9ca4bc1583745131dc69d3d29f4 | [
"Apache-2.0"
] | 109 | 2017-02-09T14:40:20.000Z | 2021-04-30T22:01:20.000Z | lib/mongoose_push/config/utils.ex | andrewvmail/MongoosePush | 538846e19a89c9ca4bc1583745131dc69d3d29f4 | [
"Apache-2.0"
] | 25 | 2017-08-21T20:55:33.000Z | 2022-03-06T10:01:13.000Z | defmodule MongoosePush.Config.Utils do
@doc """
Used by `prod.exs` to parse env variables to inet-style IP addresses
"""
def parse_bind_addr(string_addr) do
case :inet.parse_address(String.to_charlist(string_addr)) do
{:ok, value} ->
{:ok, value}
{:error, reason} ->
# Confex req... | 24.875 | 70 | 0.640704 |
745ed6189390b60b8bb49372ebd0fc5d8a4e0dcb | 3,199 | ex | Elixir | lib/ptr_web/controllers/variety_controller.ex | francocatena/ptr | 4c8a960cdcb1c8523334fcc0cddba6b7fb3b3e60 | [
"MIT"
] | null | null | null | lib/ptr_web/controllers/variety_controller.ex | francocatena/ptr | 4c8a960cdcb1c8523334fcc0cddba6b7fb3b3e60 | [
"MIT"
] | 2 | 2021-03-09T01:59:47.000Z | 2022-02-10T17:08:54.000Z | lib/ptr_web/controllers/variety_controller.ex | francocatena/ptr | 4c8a960cdcb1c8523334fcc0cddba6b7fb3b3e60 | [
"MIT"
] | null | null | null | defmodule PtrWeb.VarietyController do
use PtrWeb, :controller
alias Ptr.Options
alias Ptr.Options.Variety
plug(:authenticate)
plug(:put_breadcrumb, name: dgettext("varieties", "Varieties"), url: "/varieties")
def action(%{assigns: %{current_session: session}} = conn, _) do
apply(__MODULE__, action_na... | 29.897196 | 84 | 0.670209 |
745f0823aed7be1a374d5d4b49594075c0d3280d | 82 | exs | Elixir | test/wolfgang_web/views/page_view_test.exs | davidenglishmusic/wolfgang | 7f8c29278be4f12412afb35efcf342455a805004 | [
"MIT"
] | null | null | null | test/wolfgang_web/views/page_view_test.exs | davidenglishmusic/wolfgang | 7f8c29278be4f12412afb35efcf342455a805004 | [
"MIT"
] | null | null | null | test/wolfgang_web/views/page_view_test.exs | davidenglishmusic/wolfgang | 7f8c29278be4f12412afb35efcf342455a805004 | [
"MIT"
] | null | null | null | defmodule WolfgangWeb.PageViewTest do
use WolfgangWeb.ConnCase, async: true
end
| 20.5 | 39 | 0.829268 |
745f0ff4d8d4a4e898fc17135b8f9ce2722471f1 | 2,328 | exs | Elixir | mix.exs | mntns/artus | 958380f42612ec0bc9d059037cf7b59dfbe1cfa9 | [
"MIT"
] | null | null | null | mix.exs | mntns/artus | 958380f42612ec0bc9d059037cf7b59dfbe1cfa9 | [
"MIT"
] | null | null | null | mix.exs | mntns/artus | 958380f42612ec0bc9d059037cf7b59dfbe1cfa9 | [
"MIT"
] | null | null | null | defmodule Artus.Mixfile do
use Mix.Project
def project do
[app: :artus,
version: "1.3.9",
elixir: "~> 1.7.3",
elixirc_paths: elixirc_paths(Mix.env),
compilers: [:phoenix, :gettext] ++ Mix.compilers,
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
aliases:... | 32.333333 | 96 | 0.561856 |
745f0ff9c0937ad35f2a4bf66001d297780dc799 | 207 | ex | Elixir | lib/generate/set_parameter_attributes_response.ex | smiyabe/cwmp_ex | 9db322497aa3208b5985ccf496ada5286cde3925 | [
"Artistic-2.0"
] | 3 | 2017-11-29T05:07:35.000Z | 2019-12-18T17:16:41.000Z | lib/generate/set_parameter_attributes_response.ex | smiyabe/cwmp_ex | 9db322497aa3208b5985ccf496ada5286cde3925 | [
"Artistic-2.0"
] | 1 | 2021-12-02T19:35:28.000Z | 2022-03-29T09:40:52.000Z | lib/generate/set_parameter_attributes_response.ex | smiyabe/cwmp_ex | 9db322497aa3208b5985ccf496ada5286cde3925 | [
"Artistic-2.0"
] | 2 | 2017-11-29T05:07:30.000Z | 2020-11-10T07:10:42.000Z | defimpl CWMP.Protocol.Generate, for: CWMP.Protocol.Messages.SetParameterAttributesResponse do
import XmlBuilder
def generate(_req) do
element("cwmp:SetParameterAttributesResponse", nil)
end
end
| 20.7 | 93 | 0.797101 |
745f4a475bec22cf5d2e3347d200d9b37f49cf4f | 338 | exs | Elixir | priv/repo/migrations/20201028142954_create_parts_completed.exs | TomGrozev/SAD-Badges | a94331433ea21a0d719216ac8473e706166d6004 | [
"MIT"
] | null | null | null | priv/repo/migrations/20201028142954_create_parts_completed.exs | TomGrozev/SAD-Badges | a94331433ea21a0d719216ac8473e706166d6004 | [
"MIT"
] | null | null | null | priv/repo/migrations/20201028142954_create_parts_completed.exs | TomGrozev/SAD-Badges | a94331433ea21a0d719216ac8473e706166d6004 | [
"MIT"
] | null | null | null | defmodule Badges.Repo.Migrations.CreatePartsCompleted do
use Ecto.Migration
def change do
create table(:parts_completed) do
add :datetime, :utc_datetime
add :student_id, references(:students, on_delete: :delete_all)
add :part_id, references(:parts, on_delete: :delete_all)
timestamps()
... | 24.142857 | 68 | 0.715976 |
745f616352c85019be8e4d67369a47f585d68fea | 1,718 | ex | Elixir | clients/ad_sense/lib/google_api/ad_sense/v14/model/payments.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/ad_sense/lib/google_api/ad_sense/v14/model/payments.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/ad_sense/lib/google_api/ad_sense/v14/model/payments.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 33.686275 | 181 | 0.727008 |
745f6f01f1209174ee01338a7de0644139efb93d | 2,613 | ex | Elixir | test/support/structs.ex | am-kantox/estructura | e319603bbe629e9c15cd7f6521ae82b4cfa3bcc5 | [
"MIT"
] | 12 | 2022-01-21T21:13:30.000Z | 2022-02-06T03:06:24.000Z | test/support/structs.ex | am-kantox/estructura | e319603bbe629e9c15cd7f6521ae82b4cfa3bcc5 | [
"MIT"
] | 7 | 2022-01-21T05:55:54.000Z | 2022-03-28T11:01:09.000Z | test/support/structs.ex | am-kantox/estructura | e319603bbe629e9c15cd7f6521ae82b4cfa3bcc5 | [
"MIT"
] | 1 | 2022-02-01T21:19:00.000Z | 2022-02-01T21:19:00.000Z | defmodule Estructura.Void do
@moduledoc false
use Estructura, access: false, enumerable: false, collectable: false
defstruct foo: 42, bar: "", baz: %{inner_baz: 42}, zzz: nil
end
defmodule Estructura.LazyInst do
@moduledoc false
use Estructura, access: :lazy
def parse_int(bin), do: with {int, _} <- Integ... | 27.505263 | 104 | 0.6969 |
745f9c61e0e38ab8afb2e70ab8dc5e596643f894 | 385 | exs | Elixir | mix.exs | mattiaslundberg/one_wire | 58793ab89392fea1411dd26584707ba1b500ffd0 | [
"MIT"
] | null | null | null | mix.exs | mattiaslundberg/one_wire | 58793ab89392fea1411dd26584707ba1b500ffd0 | [
"MIT"
] | null | null | null | mix.exs | mattiaslundberg/one_wire | 58793ab89392fea1411dd26584707ba1b500ffd0 | [
"MIT"
] | 1 | 2021-08-08T12:42:14.000Z | 2021-08-08T12:42:14.000Z | defmodule OneWire.MixProject do
use Mix.Project
def project do
[
app: :one_wire,
version: "0.1.0",
elixir: "~> 1.11",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
def application do
[
extra_applications: [:logger]
]
end
defp deps do
[
... | 14.807692 | 51 | 0.524675 |
745fabcd9843e33ebab2ba133fd45ef250bbb88f | 723 | ex | Elixir | lib/request.ex | KeenMate/keen_auth | 55ef1903e446a666ff2762a03080999196c5c355 | [
"MIT"
] | null | null | null | lib/request.ex | KeenMate/keen_auth | 55ef1903e446a666ff2762a03080999196c5c355 | [
"MIT"
] | null | null | null | lib/request.ex | KeenMate/keen_auth | 55ef1903e446a666ff2762a03080999196c5c355 | [
"MIT"
] | null | null | null | defmodule KeenAuth.Request do
alias Plug.Conn
@access_claims_key :access_claims
def has_claims?(conn, _client) do
Map.has_key?(conn.private, @access_claims_key)
end
def get_claims(%Conn{private: %{@access_claims_key => claims}}, _client) do
claims
end
def put_claims(conn, claims, _client) do
... | 24.931034 | 77 | 0.706777 |
745fabd6fa68673d8f3bf2f4d88953592df33bff | 264 | exs | Elixir | test/test_helper.exs | WLSF/guardian_phoenix | 604eefd2cda5555c1b5a935631e006bb29321f95 | [
"MIT"
] | 32 | 2019-01-27T11:59:06.000Z | 2022-03-14T05:16:46.000Z | test/test_helper.exs | WLSF/guardian_phoenix | 604eefd2cda5555c1b5a935631e006bb29321f95 | [
"MIT"
] | 10 | 2019-03-11T20:18:26.000Z | 2022-03-03T15:49:01.000Z | test/test_helper.exs | WLSF/guardian_phoenix | 604eefd2cda5555c1b5a935631e006bb29321f95 | [
"MIT"
] | 8 | 2019-08-22T07:20:28.000Z | 2021-09-24T20:21:10.000Z | ExUnit.start()
opts = [strategy: :one_for_one, name: Controller.Supervisor]
children = [
Guardian.Phoenix.TestSupport.Endpoint,
{Phoenix.PubSub, name: Guardian.Phoenix.PubSub},
Guardian.Phoenix.TestSupport.Presence
]
Supervisor.start_link(children, opts)
| 22 | 60 | 0.772727 |
745fc0120ff29e3800d47467aff5af0099ab3f63 | 3,361 | exs | Elixir | apps/secure_storage/test/secure_storage/schema/encrypted_message_test.exs | thebugcatcher/heimdall | 5da4d2afcf80a8dabd23bbd22b19e24bcbd507a9 | [
"MIT"
] | 2 | 2021-04-03T14:10:20.000Z | 2021-07-07T21:17:35.000Z | apps/secure_storage/test/secure_storage/schema/encrypted_message_test.exs | aditya7iyengar/heimdall | 5da4d2afcf80a8dabd23bbd22b19e24bcbd507a9 | [
"MIT"
] | null | null | null | apps/secure_storage/test/secure_storage/schema/encrypted_message_test.exs | aditya7iyengar/heimdall | 5da4d2afcf80a8dabd23bbd22b19e24bcbd507a9 | [
"MIT"
] | 1 | 2020-11-12T08:38:35.000Z | 2020-11-12T08:38:35.000Z | defmodule SecureStorage.Schema.EncryptedMessageTest do
use SecureStorage.SchemaCase, async: true
@schema SecureStorage.Schema.EncryptedMessage
@required_fields_encrypted ~w(
short_description
txt
enc_at
exp_at
)a
@required_fields_new ~w(short_description)a
@encryption_algos ~w(
plain... | 26.674603 | 96 | 0.664981 |
74603610059b07d7fc06c2be904d0e6968d10b3b | 418 | ex | Elixir | hello/lib/hello_web/channels/room_channel.ex | Ogiwara-CostlierRain464/Elixir | 498d0aa7f1b66ed1674b89c0fec4a5cb34234a33 | [
"MIT"
] | null | null | null | hello/lib/hello_web/channels/room_channel.ex | Ogiwara-CostlierRain464/Elixir | 498d0aa7f1b66ed1674b89c0fec4a5cb34234a33 | [
"MIT"
] | null | null | null | hello/lib/hello_web/channels/room_channel.ex | Ogiwara-CostlierRain464/Elixir | 498d0aa7f1b66ed1674b89c0fec4a5cb34234a33 | [
"MIT"
] | null | null | null | defmodule HelloWeb.RoomChannel do
use Phoenix.Channel
def join("room:lobby", _message, socket) do
{:ok, socket}
end
def join("room:" <> _private_room_id, _params, _socket) do
{:error, %{reason: "unauthorized"}}
end
def handle_in("new_msg", %{"body" => body}, socket) do... | 26.125 | 62 | 0.58134 |
7460414a46a89ad39d7f6a1b52c5054e7613959c | 1,047 | ex | Elixir | tests/dummy/web/channels/user_channel.ex | autoxjs/autox-phoenix | 6446f4487e3af28955f6560973cff6add34be4d4 | [
"MIT"
] | null | null | null | tests/dummy/web/channels/user_channel.ex | autoxjs/autox-phoenix | 6446f4487e3af28955f6560973cff6add34be4d4 | [
"MIT"
] | 20 | 2016-04-05T06:28:58.000Z | 2016-05-12T15:45:37.000Z | tests/dummy/web/channels/user_channel.ex | foxnewsnetwork/autox | 66ea3f0f7ba8b3f9e910984a2ed3cdf0ef5ef29a | [
"MIT"
] | null | null | null | defmodule Dummy.UserChannel do
use Dummy.Web, :channel
def join("users:" <> _room, payload, socket) do
if authorized?(payload) do
{:ok, socket}
else
{:error, %{reason: "unauthorized"}}
end
end
# Channels can be used in a request/response fashion
# by sending replies to requests from ... | 27.552632 | 64 | 0.692455 |
74609b69e3d29f568ed7723b4a4a5a027c6a577f | 1,320 | ex | Elixir | lib/lucia/consumer.ex | svard/lucia | 9c14c385a4573fedb0d92ac3c296ce484cdde60b | [
"MIT"
] | null | null | null | lib/lucia/consumer.ex | svard/lucia | 9c14c385a4573fedb0d92ac3c296ce484cdde60b | [
"MIT"
] | null | null | null | lib/lucia/consumer.ex | svard/lucia | 9c14c385a4573fedb0d92ac3c296ce484cdde60b | [
"MIT"
] | null | null | null | defmodule Lucia.Consumer do
use GenServer
use AMQP
alias Lucia.Controller
alias Poison.Parser
require Logger
def start_link() do
Logger.info "Starting consumer"
GenServer.start_link(__MODULE__, [])
end
@host Application.get_env(:lucia, RabbitMQ)[:host]
@exchange Application.get_env(:lucia, R... | 28.695652 | 84 | 0.681061 |
74609d3f1dd456610174c507e57e687a704738fa | 360 | ex | Elixir | lib/hologram/compiler/module_def_aggregators/if_expression.ex | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 40 | 2022-01-19T20:27:36.000Z | 2022-03-31T18:17:41.000Z | lib/hologram/compiler/module_def_aggregators/if_expression.ex | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 42 | 2022-02-03T22:52:43.000Z | 2022-03-26T20:57:32.000Z | lib/hologram/compiler/module_def_aggregators/if_expression.ex | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 3 | 2022-02-10T04:00:37.000Z | 2022-03-08T22:07:45.000Z | alias Hologram.Compiler.IR.IfExpression
alias Hologram.Compiler.ModuleDefAggregator
defimpl ModuleDefAggregator, for: IfExpression do
def aggregate(%{condition: condition, do: do_clause, else: else_clause}) do
ModuleDefAggregator.aggregate(condition)
ModuleDefAggregator.aggregate(do_clause)
ModuleDefAggr... | 32.727273 | 77 | 0.819444 |
7460ef0381b86404285817049a353c5a9d759e58 | 134 | exs | Elixir | config/dev.exs | plataformatec/engine-credo | 5da8dcfdd3587c8e03163b13ec8047fc6b1753f2 | [
"Apache-2.0"
] | 4 | 2017-03-17T00:23:15.000Z | 2019-04-10T16:13:55.000Z | config/dev.exs | plataformatec/engine-credo | 5da8dcfdd3587c8e03163b13ec8047fc6b1753f2 | [
"Apache-2.0"
] | 8 | 2016-09-19T12:20:33.000Z | 2019-01-29T19:54:39.000Z | config/dev.exs | plataformatec/engine-credo | 5da8dcfdd3587c8e03163b13ec8047fc6b1753f2 | [
"Apache-2.0"
] | 2 | 2017-08-04T18:45:09.000Z | 2019-01-19T09:09:20.000Z | use Mix.Config
config :engine_credo,
source_code_path: ".",
engine_config_file: "test/fixtures/container_root/blank_config.json"
| 22.333333 | 70 | 0.791045 |
7460f6188cf67f6b664d8da550da9f6fa026d798 | 2,783 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v28/model/tag_data.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v28/model/tag_data.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v28/model/tag_data.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 45.622951 | 719 | 0.773266 |
7460f9e2bfc8798b22add71390dc1523fee2c10a | 1,030 | ex | Elixir | lib/extenant/application.ex | ThinkForge/extenant | 70a73aed9a5db42a178919562d60861f9aa09bcb | [
"Apache-2.0"
] | null | null | null | lib/extenant/application.ex | ThinkForge/extenant | 70a73aed9a5db42a178919562d60861f9aa09bcb | [
"Apache-2.0"
] | 1 | 2018-11-24T15:09:30.000Z | 2018-11-24T15:09:30.000Z | lib/extenant/application.ex | ThinkForge/extenant | 70a73aed9a5db42a178919562d60861f9aa09bcb | [
"Apache-2.0"
] | null | null | null | defmodule Extenant.Application do
use Application
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
def start(_type, _args) do
import Supervisor.Spec
# Define workers and child supervisors to be supervised
children = [
# Start the Ecto repository
... | 32.1875 | 86 | 0.715534 |
746109356e3bf31c1aab5fcf56b296d707b7ad1e | 569 | exs | Elixir | elixir/mix.exs | goblindegook/katas | 2e8c3f3c745501cfb389b3c88db22db0f853c99a | [
"MIT"
] | null | null | null | elixir/mix.exs | goblindegook/katas | 2e8c3f3c745501cfb389b3c88db22db0f853c99a | [
"MIT"
] | 3 | 2020-03-23T14:17:32.000Z | 2020-07-22T17:38:56.000Z | elixir/mix.exs | goblindegook/katas | 2e8c3f3c745501cfb389b3c88db22db0f853c99a | [
"MIT"
] | null | null | null | defmodule Katas.MixProject do
use Mix.Project
def project do
[
app: :elixir,
version: "0.1.0",
elixir: "~> 1.12",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_appli... | 19.62069 | 87 | 0.574692 |
746113f829668e1f1a0a037822b18f7f85442d20 | 350 | ex | Elixir | lib/core/asset_worker.ex | bahanni/custom_rpi4 | ddefa85d30bacaae40151a63a9a0ebbf4ad30ed5 | [
"MIT"
] | null | null | null | lib/core/asset_worker.ex | bahanni/custom_rpi4 | ddefa85d30bacaae40151a63a9a0ebbf4ad30ed5 | [
"MIT"
] | null | null | null | lib/core/asset_worker.ex | bahanni/custom_rpi4 | ddefa85d30bacaae40151a63a9a0ebbf4ad30ed5 | [
"MIT"
] | null | null | null | defprotocol FarmbotOS.AssetWorker do
# A process that represents a single database row.
@doc "List of relational resources that need to be preloaded."
def preload(asset)
@doc "Boolean of if this asset should be restarted, or not."
def tracks_changes?(asset)
@doc "GenServer childspec callback."
def star... | 26.923077 | 64 | 0.737143 |
746122290a50213a95aa35ffe4d68b83db32523c | 528 | ex | Elixir | lib/battle_city/application.ex | clszzyh/battle_city_core | 7a3aca9000b186382f1faf526ebce837a76ef86e | [
"MIT"
] | null | null | null | lib/battle_city/application.ex | clszzyh/battle_city_core | 7a3aca9000b186382f1faf526ebce837a76ef86e | [
"MIT"
] | 38 | 2020-12-17T12:40:44.000Z | 2022-03-31T02:05:59.000Z | lib/battle_city/application.ex | clszzyh/battle_city | 7a3aca9000b186382f1faf526ebce837a76ef86e | [
"MIT"
] | null | null | null | defmodule BattleCity.Application do
@moduledoc false
use Application
alias BattleCity.Config
alias BattleCity.Process
def start(_type, _args) do
if Config.get(:telemetry_logger) do
:ok = BattleCity.Telemetry.attach_default_logger(Config.get(:telemetry_logger_level))
end
{:ok, _pid} =
... | 21.12 | 91 | 0.668561 |
74614619fd17b358bc0eb7b5c9a3db36376c9234 | 3,080 | ex | Elixir | clients/datastore/lib/google_api/datastore/v1/model/google_datastore_admin_v1_export_entities_metadata.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/datastore/lib/google_api/datastore/v1/model/google_datastore_admin_v1_export_entities_metadata.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/datastore/lib/google_api/datastore/v1/model/google_datastore_admin_v1_export_entities_metadata.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 47.384615 | 311 | 0.780195 |
746175647267de311099153ffa89d1d65c9e620c | 6,055 | ex | Elixir | lib/satori/pdu.ex | NationalAssociationOfRealtors/SatoriChallenge | 3b975f64426194378fb6b1378e9c12cfb97c9a48 | [
"Apache-2.0"
] | 1 | 2017-06-19T14:09:16.000Z | 2017-06-19T14:09:16.000Z | lib/satori/pdu.ex | NationalAssociationOfRealtors/SatoriChallenge | 3b975f64426194378fb6b1378e9c12cfb97c9a48 | [
"Apache-2.0"
] | 1 | 2017-05-08T20:51:34.000Z | 2017-05-08T20:51:34.000Z | lib/satori/pdu.ex | NationalAssociationOfRealtors/SatoriChallenge | 3b975f64426194378fb6b1378e9c12cfb97c9a48 | [
"Apache-2.0"
] | null | null | null | defmodule Satori.PDU do
use Satori.PDU.Types
@derive [Poison.Encoder]
defstruct action: nil,
id: nil,
body: %{}
defmodule Result do
@derive [Poison.Encoder]
defstruct id: nil, action: nil, channel: nil
end
#Auth Sub-types
defmodule Role do
@derive [Poison.Encoder]
defstruct role... | 21.097561 | 52 | 0.654831 |
7461853bc711a173dd46a3edc9fac3348d0e4e4e | 755 | exs | Elixir | test/logger_2k17_test.exs | davejlong/logger_2k17 | 923e9b673dc201b61f287590ac97452a4c17d014 | [
"MIT"
] | 1 | 2017-03-10T06:59:47.000Z | 2017-03-10T06:59:47.000Z | test/logger_2k17_test.exs | davejlong/logger_2k17 | 923e9b673dc201b61f287590ac97452a4c17d014 | [
"MIT"
] | null | null | null | test/logger_2k17_test.exs | davejlong/logger_2k17 | 923e9b673dc201b61f287590ac97452a4c17d014 | [
"MIT"
] | null | null | null | defmodule Logger2k17Test do
use ExUnit.Case
import ExUnit.CaptureLog
doctest Logger2k17
require Logger
test ".wharrgarbl/1 logs" do
message = "Super technical info!"
assert capture_log(fn -> Logger2k17.wharrgarbl(message) end) =~ "#{message}"
end
test ".fyi/1 logs" do
message = "Hey, I t... | 22.205882 | 80 | 0.666225 |
746185f90fee9d9534f1d90ba76226bf9f40de2c | 135 | ex | Elixir | lib/stripe/bitcoin_receiver.ex | Finger-Ink/stripe-elixir | 018cef01a6645074547be4a93b6a443d21be2484 | [
"MIT"
] | 70 | 2016-07-28T16:39:36.000Z | 2021-08-03T14:26:19.000Z | lib/stripe/bitcoin_receiver.ex | Finger-Ink/stripe-elixir | 018cef01a6645074547be4a93b6a443d21be2484 | [
"MIT"
] | 29 | 2018-09-17T11:35:17.000Z | 2021-08-01T11:15:09.000Z | lib/stripe/bitcoin_receiver.ex | Finger-Ink/stripe-elixir | 018cef01a6645074547be4a93b6a443d21be2484 | [
"MIT"
] | 30 | 2016-10-11T21:07:27.000Z | 2020-12-23T20:15:41.000Z | defmodule Stripe.BitcoinReceiver do
use Stripe.API, [:create, :retrieve, :list]
def endpoint do
"bitcoin/receivers"
end
end
| 16.875 | 45 | 0.718519 |
74621fd4e8def2cfc326c9d21fdb1e2e178487be | 734 | ex | Elixir | lib/camino_challenge/pessoas/entities/endereco.ex | kadmohardy/camino_challenge | 53117f763c0a51b0825cac18b799b7d772781671 | [
"MIT"
] | null | null | null | lib/camino_challenge/pessoas/entities/endereco.ex | kadmohardy/camino_challenge | 53117f763c0a51b0825cac18b799b7d772781671 | [
"MIT"
] | null | null | null | lib/camino_challenge/pessoas/entities/endereco.ex | kadmohardy/camino_challenge | 53117f763c0a51b0825cac18b799b7d772781671 | [
"MIT"
] | null | null | null | defmodule CaminoChallenge.Pessoas.Entities.Endereco do
use Ecto.Schema
import Ecto.Changeset
alias CaminoChallenge.Pessoas.Entities.PessoaJuridica
@primary_key {:id, :binary_id, autogenerate: true}
@derive {Phoenix.Param, key: :id}
schema "enderecos" do
field :cep, :string
field :cidade, :string
... | 23.677419 | 59 | 0.673025 |
746235a54cc3d0e00408d69b52d5c4056c1c2226 | 422 | ex | Elixir | apps/language_server/lib/language_server/providers/implementation.ex | maciej-szlosarczyk/elixir-ls | f9e3a969a32212482a7625deec9e0fd0f533f991 | [
"Apache-2.0"
] | 865 | 2018-10-31T20:29:13.000Z | 2022-03-29T11:13:39.000Z | apps/language_server/lib/language_server/providers/implementation.ex | maciej-szlosarczyk/elixir-ls | f9e3a969a32212482a7625deec9e0fd0f533f991 | [
"Apache-2.0"
] | 441 | 2019-01-05T02:33:52.000Z | 2022-03-30T20:56:50.000Z | apps/language_server/lib/language_server/providers/implementation.ex | maciej-szlosarczyk/elixir-ls | f9e3a969a32212482a7625deec9e0fd0f533f991 | [
"Apache-2.0"
] | 126 | 2018-11-12T19:16:53.000Z | 2022-03-26T13:27:50.000Z | defmodule ElixirLS.LanguageServer.Providers.Implementation do
@moduledoc """
Go-to-implementation provider utilizing Elixir Sense
"""
alias ElixirLS.LanguageServer.Protocol
def implementation(uri, text, line, character) do
locations = ElixirSense.implementations(text, line + 1, character + 1)
result... | 28.133333 | 81 | 0.741706 |
746243460e7c1da02b45d7ca133b66a3dcda9c00 | 178 | exs | Elixir | test/afk/state/keymap_test.exs | doughsay/afk | 9b7f55c98aa8c52dee3f134cef112c1361fe75f4 | [
"MIT"
] | 4 | 2019-12-10T21:27:06.000Z | 2020-01-26T03:07:43.000Z | test/afk/state/keymap_test.exs | doughsay/afk | 9b7f55c98aa8c52dee3f134cef112c1361fe75f4 | [
"MIT"
] | 46 | 2019-12-13T05:46:08.000Z | 2020-10-29T13:07:40.000Z | test/afk/state/keymap_test.exs | nerves-keyboard/afk | 9b7f55c98aa8c52dee3f134cef112c1361fe75f4 | [
"MIT"
] | 1 | 2020-01-02T13:35:03.000Z | 2020-01-02T13:35:03.000Z | defmodule AFK.State.KeymapTest do
@moduledoc false
use ExUnit.Case
alias AFK.State.Keymap
test "empty state keymap" do
assert %Keymap{} = Keymap.new([])
end
end
| 14.833333 | 37 | 0.696629 |
74625bde9da33020a362b9d08acf44a2a3886c25 | 246 | exs | Elixir | test/full_stackory_slack_web/plugs/stripe_plug_test.exs | full-stackory/full_stackory_slack | a58f73248a91248554548187ab184e7e0b3f3b23 | [
"Apache-2.0"
] | null | null | null | test/full_stackory_slack_web/plugs/stripe_plug_test.exs | full-stackory/full_stackory_slack | a58f73248a91248554548187ab184e7e0b3f3b23 | [
"Apache-2.0"
] | 2 | 2021-03-10T06:19:38.000Z | 2021-05-11T02:11:14.000Z | test/full_stackory_slack_web/plugs/stripe_plug_test.exs | full-stackory/full_stackory_slack | a58f73248a91248554548187ab184e7e0b3f3b23 | [
"Apache-2.0"
] | null | null | null | defmodule FullStackorySlackWeb.Plugs.StripePlugTest do
use FullStackorySlackWeb.ConnCase
test "handles verified request" do
end
test "handles unverified request" do
end
test "no operation performed non stripe request" do
end
end
| 18.923077 | 54 | 0.784553 |
7462909edbb51d9edf139a41e223296fc3d41813 | 1,052 | ex | Elixir | lib/cforum_web/views/admin/group_view.ex | MatthiasApsel/cforum_ex | 52c621a583182d82692b74694b0b2792ac23b8ff | [
"MIT"
] | null | null | null | lib/cforum_web/views/admin/group_view.ex | MatthiasApsel/cforum_ex | 52c621a583182d82692b74694b0b2792ac23b8ff | [
"MIT"
] | null | null | null | lib/cforum_web/views/admin/group_view.ex | MatthiasApsel/cforum_ex | 52c621a583182d82692b74694b0b2792ac23b8ff | [
"MIT"
] | null | null | null | defmodule CforumWeb.Admin.GroupView do
use CforumWeb, :view
alias CforumWeb.Views.ViewHelpers
alias CforumWeb.Views.ViewHelpers.Path
alias CforumWeb.ErrorHelpers
def page_title(:index, _), do: gettext("administrate groups")
def page_title(action, _) when action in [:new, :create], do: gettext("new group")... | 37.571429 | 84 | 0.710076 |
7462b023a3e46a7695ccf34321ddc861272ecd8b | 261 | exs | Elixir | .formatter.exs | depressed-pho/xema | 56de4a5d3b3f37827c70f6052f895c59feb0bb51 | [
"MIT"
] | null | null | null | .formatter.exs | depressed-pho/xema | 56de4a5d3b3f37827c70f6052f895c59feb0bb51 | [
"MIT"
] | null | null | null | .formatter.exs | depressed-pho/xema | 56de4a5d3b3f37827c70f6052f895c59feb0bb51 | [
"MIT"
] | null | null | null | locals_without_parens = [xema: 2]
[
inputs: ["mix.exs", ".dialyzer_ignore.exs", "{config,lib,test,bench}/**/*.{ex,exs}"],
locals_without_parens: locals_without_parens ++ [assert_blame: 3],
export: [
locals_without_parens: locals_without_parens
]
]
| 26.1 | 87 | 0.697318 |
7462b8ead8db16fd94ec53d03b53b0de40121664 | 27,837 | exs | Elixir | test/mix/tasks/surface/util/patches_test.exs | msaraiva/surface | 62b88d9feb0a1a44c0942c1951fa9ebc3a2230c9 | [
"MIT"
] | 1,161 | 2019-12-12T02:30:52.000Z | 2021-03-11T17:55:44.000Z | test/mix/tasks/surface/util/patches_test.exs | msaraiva/surface | 62b88d9feb0a1a44c0942c1951fa9ebc3a2230c9 | [
"MIT"
] | 244 | 2019-12-12T14:05:07.000Z | 2021-03-11T07:04:17.000Z | test/mix/tasks/surface/util/patches_test.exs | msaraiva/surface | 62b88d9feb0a1a44c0942c1951fa9ebc3a2230c9 | [
"MIT"
] | 73 | 2019-12-12T13:57:41.000Z | 2021-03-11T21:46:10.000Z | defmodule Mix.Tasks.Surface.Init.PatchesTest do
use ExUnit.Case, async: true
alias Mix.Tasks.Surface.Init.Patches
alias Mix.Tasks.Surface.Init.Patcher
describe "add_surface_to_mix_compilers" do
test "add :surface to compilers" do
code = """
defmodule MyApp.MixProject do
use Mix.Project... | 29.363924 | 115 | 0.549197 |
7463246d9c80f21bca4a8bfc541d048f469ddcde | 1,887 | exs | Elixir | elixir/dnd-character/test/dnd_character_test.exs | paulfioravanti/exercism | b3bf15814b89b0ef50b9bf062b3c800e80e37e75 | [
"MIT"
] | 6 | 2019-06-19T15:43:20.000Z | 2020-07-17T19:46:09.000Z | elixir/dnd-character/test/dnd_character_test.exs | paulfioravanti/exercism | b3bf15814b89b0ef50b9bf062b3c800e80e37e75 | [
"MIT"
] | 10 | 2021-05-10T21:02:55.000Z | 2021-05-11T20:29:41.000Z | elixir/dnd-character/test/dnd_character_test.exs | paulfioravanti/exercism | b3bf15814b89b0ef50b9bf062b3c800e80e37e75 | [
"MIT"
] | 1 | 2019-06-25T10:42:14.000Z | 2019-06-25T10:42:14.000Z | defmodule DndCharacterTest do
use ExUnit.Case
import DndCharacter, only: [modifier: 1, ability: 0, character: 0]
# canonical data version: 1.1.0
describe "ability modifier" do
test "for score 3 is -4" do
assert modifier(3) === -4
end
test "for score 4 is -3" do
assert modifier(4) ===... | 20.074468 | 76 | 0.578166 |
746327c576c3ea146ea54dc1e08f23820438801d | 32,770 | ex | Elixir | lib/mint/http1.ex | wojtekmach/mint | 796b8db097d69ede7163acba223ab2045c2773a4 | [
"Apache-2.0"
] | null | null | null | lib/mint/http1.ex | wojtekmach/mint | 796b8db097d69ede7163acba223ab2045c2773a4 | [
"Apache-2.0"
] | null | null | null | lib/mint/http1.ex | wojtekmach/mint | 796b8db097d69ede7163acba223ab2045c2773a4 | [
"Apache-2.0"
] | null | null | null | defmodule Mint.HTTP1 do
@moduledoc """
Processless HTTP client with support for HTTP/1 and HTTP/1.1.
This module provides a data structure that represents an HTTP/1 or HTTP/1.1 connection to
a given server. The connection is represented as an opaque struct `%Mint.HTTP1{}`.
The connection is a data structure ... | 31.032197 | 101 | 0.638023 |
74635d049563a31a37496821cc4cb344b4bbde24 | 458 | ex | Elixir | lib/yamm_web/live/user_live/show.ex | yammine/YAMM | c118eab5029b86c2caf24890dfffa8437684f5d1 | [
"MIT"
] | null | null | null | lib/yamm_web/live/user_live/show.ex | yammine/YAMM | c118eab5029b86c2caf24890dfffa8437684f5d1 | [
"MIT"
] | null | null | null | lib/yamm_web/live/user_live/show.ex | yammine/YAMM | c118eab5029b86c2caf24890dfffa8437684f5d1 | [
"MIT"
] | null | null | null | defmodule YAMMWeb.UserLive.Show do
use YAMMWeb, :live_view
alias YAMM.Money
@impl true
def mount(_params, _session, socket) do
{:ok, socket}
end
@impl true
def handle_params(%{"id" => id}, _, socket) do
{:noreply,
socket
|> assign(:page_title, page_title(socket.assigns.live_action))
... | 20.818182 | 67 | 0.655022 |
7463715fd088e3fea35d586f74affce82dc0b536 | 3,949 | exs | Elixir | test/article_test.exs | Joe-noh/hippocrene | 8dac2caf7214d1d29db5dd992a24f600b577c880 | [
"MIT"
] | null | null | null | test/article_test.exs | Joe-noh/hippocrene | 8dac2caf7214d1d29db5dd992a24f600b577c880 | [
"MIT"
] | 6 | 2017-10-09T15:18:15.000Z | 2017-10-09T15:18:16.000Z | test/article_test.exs | Joe-noh/hippocrene | 8dac2caf7214d1d29db5dd992a24f600b577c880 | [
"MIT"
] | null | null | null | defmodule ArticleTest do
use ExUnit.Case
use Hippocrene
test "title" do
assert title("The Title") == {:title, "The Title"}
end
test "date" do
expected = {:date, {2014, 8, 9}}
assert date({2014, 8, 9}) == expected
assert date( 2014, 8, 9 ) == expected
end
test "author" do
assert au... | 24.993671 | 87 | 0.482401 |
74637e77d7f5e140766d5b1d323a53d9c90c0924 | 2,834 | ex | Elixir | lib/credo/check/readability/module_doc.ex | harlantwood/credo | 4569c9c8cfcf74a2074d6911541da0265e52ae99 | [
"MIT"
] | null | null | null | lib/credo/check/readability/module_doc.ex | harlantwood/credo | 4569c9c8cfcf74a2074d6911541da0265e52ae99 | [
"MIT"
] | null | null | null | lib/credo/check/readability/module_doc.ex | harlantwood/credo | 4569c9c8cfcf74a2074d6911541da0265e52ae99 | [
"MIT"
] | null | null | null | defmodule Credo.Check.Readability.ModuleDoc do
@moduledoc """
Every module should contain comprehensive documentation.
# preferred
defmodule MyApp.Web.Search do
@moduledoc \"\"\"
This module provides a public API for all search queries originating
in the web layer.
\"\"... | 25.763636 | 91 | 0.630205 |
7463918d14934eb0b1cc0b18899f8926959764bf | 913 | ex | Elixir | lib/school_house_web/controllers/page_controller.ex | fmterrorf/school_house | b3a1374d4b23fbc027b6bc9c95004c6556c48bf0 | [
"Apache-2.0"
] | 90 | 2021-02-10T23:57:52.000Z | 2022-03-17T18:36:55.000Z | lib/school_house_web/controllers/page_controller.ex | fmterrorf/school_house | b3a1374d4b23fbc027b6bc9c95004c6556c48bf0 | [
"Apache-2.0"
] | 120 | 2021-02-11T00:32:44.000Z | 2022-03-23T04:11:59.000Z | lib/school_house_web/controllers/page_controller.ex | fmterrorf/school_house | b3a1374d4b23fbc027b6bc9c95004c6556c48bf0 | [
"Apache-2.0"
] | 18 | 2021-04-15T09:57:44.000Z | 2022-03-23T02:55:26.000Z | defmodule SchoolHouseWeb.PageController do
use SchoolHouseWeb, :controller
alias SchoolHouse.{Lessons, Podcasts, Posts}
def index(conn, _params) do
render(conn, "index.html", page_title: "Home", posts: recent_posts())
end
def podcasts(conn, _params) do
render(conn, "podcasts.html", page_title: "Pod... | 25.361111 | 109 | 0.692223 |
746394cf451225ed35117210c6bf09df3ad13dba | 12,086 | exs | Elixir | integration/oracle/sql/migration.exs | MikeAlbertFleetSolutions/oracle_ecto | 63f510a5cd97c0b8a2f92786d0dfc8af688fb596 | [
"Apache-2.0"
] | null | null | null | integration/oracle/sql/migration.exs | MikeAlbertFleetSolutions/oracle_ecto | 63f510a5cd97c0b8a2f92786d0dfc8af688fb596 | [
"Apache-2.0"
] | 2 | 2019-05-21T15:57:37.000Z | 2019-05-21T16:00:59.000Z | integration/oracle/sql/migration.exs | MikeAlbertFleetSolutions/oracle_ecto | 63f510a5cd97c0b8a2f92786d0dfc8af688fb596 | [
"Apache-2.0"
] | null | null | null | defmodule Ecto.Integration.MigrationTest do
# Cannot be async as other tests may migrate
use ExUnit.Case, async: false
@moduletag :integration
alias Ecto.Integration.PoolRepo
defmodule CreateMigration do
use Ecto.Migration
@table table(:ctable_migration)
@index index(:ctable_migration, [:value]... | 27.783908 | 120 | 0.67632 |
7463b4e78e94f86e4a3035a08d127dd1b358053e | 1,812 | exs | Elixir | test/mldht_search_worker_test.exs | SoCal-Software-Labs/CrissCrossDHT | f1098f093c44f39f2179c86ee639f3e4b9c5e51f | [
"MIT"
] | null | null | null | test/mldht_search_worker_test.exs | SoCal-Software-Labs/CrissCrossDHT | f1098f093c44f39f2179c86ee639f3e4b9c5e51f | [
"MIT"
] | null | null | null | test/mldht_search_worker_test.exs | SoCal-Software-Labs/CrissCrossDHT | f1098f093c44f39f2179c86ee639f3e4b9c5e51f | [
"MIT"
] | null | null | null | defmodule CrissCrossDHT.Search.Worker.Test do
use ExUnit.Case
alias CrissCrossDHT.Search.Worker, as: Search
setup do
node_id = String.duplicate("A", 20)
node_id_enc = Base.encode16(node_id)
start_supervised!(
{CrissCrossDHT.Search.Supervisor,
name: CrissCrossDHT.Registry.via(node_id_en... | 27.454545 | 88 | 0.698124 |
7463e431548dcfa4f2ec3c1e8578719cc8c9c18c | 1,493 | ex | Elixir | test/support/conn_case.ex | rawcodehq/webmonitor | 1397c74cb04434d18eb08e447c2c91d23ca97962 | [
"MIT"
] | 5 | 2016-07-05T20:31:46.000Z | 2021-03-20T20:11:48.000Z | test/support/conn_case.ex | rawcodehq/webmonitor | 1397c74cb04434d18eb08e447c2c91d23ca97962 | [
"MIT"
] | null | null | null | test/support/conn_case.ex | rawcodehq/webmonitor | 1397c74cb04434d18eb08e447c2c91d23ca97962 | [
"MIT"
] | 1 | 2016-07-18T23:00:46.000Z | 2016-07-18T23:00:46.000Z | defmodule Webmonitor.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
imports other functionality to make it easier
to build and query models.
Finally, if the test case interacts with the... | 26.192982 | 75 | 0.682518 |
7463ebf5273e03cb5e9017421e97c45d753c193e | 2,393 | ex | Elixir | clients/firestore/lib/google_api/firestore/v1beta1/model/write_response.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/firestore/lib/google_api/firestore/v1beta1/model/write_response.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/firestore/lib/google_api/firestore/v1beta1/model/write_response.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... | 42.732143 | 220 | 0.723778 |
74640e203f04cf8f1a3554e3751396618d9ba1e7 | 48 | exs | Elixir | elixir/28.exs | merxer/kata | 5dbbca8b4173029f9311398148de9437a329cf9a | [
"MIT"
] | null | null | null | elixir/28.exs | merxer/kata | 5dbbca8b4173029f9311398148de9437a329cf9a | [
"MIT"
] | null | null | null | elixir/28.exs | merxer/kata | 5dbbca8b4173029f9311398148de9437a329cf9a | [
"MIT"
] | null | null | null | sum = fn (a, b) -> a + b end
IO.puts sum.(1,2)
| 12 | 28 | 0.479167 |
74643f72fd3d44a6d7a52b111052978d88244428 | 3,840 | ex | Elixir | test/support/vehicle_case.ex | abhinavWOT/teslamate | 8429c7520ae31bb2c440647ec028d2d296b7ce7d | [
"MIT"
] | null | null | null | test/support/vehicle_case.ex | abhinavWOT/teslamate | 8429c7520ae31bb2c440647ec028d2d296b7ce7d | [
"MIT"
] | null | null | null | test/support/vehicle_case.ex | abhinavWOT/teslamate | 8429c7520ae31bb2c440647ec028d2d296b7ce7d | [
"MIT"
] | null | null | null | defmodule TeslaMate.VehicleCase do
use ExUnit.CaseTemplate
using do
quote do
alias TeslaMate.Vehicles.Vehicle.Summary
alias TeslaMate.Vehicles.Vehicle
alias TeslaMate.Settings.Settings
alias TeslaMate.Log.Car
alias TeslaApi.Vehicle.State
import Ecto
import Ecto.Change... | 30.967742 | 94 | 0.565365 |
7464466bcce1a871bb32a16105c7e2da0d3a864d | 1,219 | ex | Elixir | web/channels/user_socket.ex | samrispaud/phoenix-redux-todo-app | 4810d602adb6325c65ad61cbdb67e766ead1a9c3 | [
"MIT"
] | null | null | null | web/channels/user_socket.ex | samrispaud/phoenix-redux-todo-app | 4810d602adb6325c65ad61cbdb67e766ead1a9c3 | [
"MIT"
] | null | null | null | web/channels/user_socket.ex | samrispaud/phoenix-redux-todo-app | 4810d602adb6325c65ad61cbdb67e766ead1a9c3 | [
"MIT"
] | null | null | null | defmodule PhoenixReactReduxExample.UserSocket do
use Phoenix.Socket
## Channels
# channel "rooms:*", PhoenixReactReduxExample.RoomChannel
## Transports
transport :websocket, Phoenix.Transports.WebSocket
# transport :longpoll, Phoenix.Transports.LongPoll
# Socket params are passed from the client and ca... | 32.078947 | 98 | 0.7137 |
74646131ea3cb3df91ecfc2c889aa2047e76c7e0 | 157 | exs | Elixir | test/config_test.exs | oivoodoo/exfacebook | 42d960336c4e432216ae592925519f93fc817eaf | [
"MIT"
] | 18 | 2016-07-30T00:04:21.000Z | 2020-01-13T09:17:54.000Z | test/config_test.exs | oivoodoo/exfacebook | 42d960336c4e432216ae592925519f93fc817eaf | [
"MIT"
] | 7 | 2016-08-10T08:14:59.000Z | 2017-02-15T09:36:43.000Z | test/config_test.exs | oivoodoo/exfacebook | 42d960336c4e432216ae592925519f93fc817eaf | [
"MIT"
] | 6 | 2016-08-10T07:28:15.000Z | 2017-03-31T11:14:57.000Z | defmodule Exfacebook.ConfigTest do
use ExUnit.Case
alias Exfacebook.Config
test "config reader" do
assert Config.api_version == "v2.6"
end
end
| 15.7 | 39 | 0.732484 |
746470600f59c0c751b21f7a26f015ebea660644 | 3,462 | ex | Elixir | lib/mdns/server.ex | Nuno-Silva-Bose/mdns | 9220a11aa72351ae902530ef152f6bddc41ec3c5 | [
"Apache-2.0"
] | null | null | null | lib/mdns/server.ex | Nuno-Silva-Bose/mdns | 9220a11aa72351ae902530ef152f6bddc41ec3c5 | [
"Apache-2.0"
] | null | null | null | lib/mdns/server.ex | Nuno-Silva-Bose/mdns | 9220a11aa72351ae902530ef152f6bddc41ec3c5 | [
"Apache-2.0"
] | null | null | null | defmodule Mdns.Server do
use GenServer
require Logger
@mdns_group {224, 0, 0, 251}
@port Application.get_env(:mdns, :port, 5353)
@response_packet %DNS.Record{
header: %DNS.Header{
aa: true,
qr: true,
opcode: 0,
rcode: 0
},
anlist: []
}
defmodule State do
defstruc... | 22.927152 | 85 | 0.549682 |
7464758dd67aa53a5361a6eaf073bfe42d0cff9b | 517 | ex | Elixir | lib/straw_hat_map/migrations/create_addresses_table.ex | straw-hat-team/straw_hat_map | df71340122852577b9df2ed2afcbcc4be879aba1 | [
"MIT"
] | 4 | 2018-03-07T04:12:36.000Z | 2018-03-08T16:13:14.000Z | lib/straw_hat_map/migrations/create_addresses_table.ex | straw-hat-labs/straw_hat_map | df71340122852577b9df2ed2afcbcc4be879aba1 | [
"MIT"
] | 61 | 2018-03-07T04:50:42.000Z | 2019-11-01T10:24:03.000Z | lib/straw_hat_map/migrations/create_addresses_table.ex | straw-hat-team/straw_hat_map | df71340122852577b9df2ed2afcbcc4be879aba1 | [
"MIT"
] | 2 | 2018-03-22T19:44:45.000Z | 2019-08-02T03:45:47.000Z | defmodule StrawHat.Map.Migrations.CreateAddressesTable do
@moduledoc """
Create addresses table.
Created at: ~N[2017-05-17 23:24:15]
"""
use Ecto.Migration
def change do
create table(:addresses, primary_key: false) do
add(:id, :binary_id, primary_key: true)
add(:line_one, :string, null: f... | 24.619048 | 71 | 0.667311 |
74648f57cd2260d8838101ca88a47560d025b58a | 1,281 | ex | Elixir | lib/surface/component.ex | andreasknoepfle/surface | 0fc19a662e3b94fb33f49df91841d9bb4a850e5d | [
"MIT"
] | null | null | null | lib/surface/component.ex | andreasknoepfle/surface | 0fc19a662e3b94fb33f49df91841d9bb4a850e5d | [
"MIT"
] | null | null | null | lib/surface/component.ex | andreasknoepfle/surface | 0fc19a662e3b94fb33f49df91841d9bb4a850e5d | [
"MIT"
] | null | null | null | defmodule Surface.Component do
@moduledoc """
Defines a stateless component.
## Example
defmodule Button do
use Surface.Component
property click, :event
def render(assigns) do
~H"\""
<button class="button" phx-click={{ @click }}>
{{ @inner_content.... | 23.722222 | 75 | 0.640906 |
74649ba346f9b565c9fc6495bd1ac0e70db0ca37 | 6,128 | ex | Elixir | lib/oli/delivery/sections/section.ex | malav2110/oli-torus | 8af64e762a7c8a2058bd27a7ab8e96539ffc055f | [
"MIT"
] | null | null | null | lib/oli/delivery/sections/section.ex | malav2110/oli-torus | 8af64e762a7c8a2058bd27a7ab8e96539ffc055f | [
"MIT"
] | null | null | null | lib/oli/delivery/sections/section.ex | malav2110/oli-torus | 8af64e762a7c8a2058bd27a7ab8e96539ffc055f | [
"MIT"
] | null | null | null | defmodule Oli.Delivery.Sections.Section do
use Ecto.Schema
import Ecto.Changeset
import Oli.Utils
alias Oli.Utils.Slug
alias Oli.Authoring.Course.Project
alias Oli.Institutions.Institution
alias Oli.Branding.Brand
alias Oli.Delivery.DeliveryPolicy
alias Oli.Delivery.Sections.{
SectionsProjectsPu... | 30.336634 | 100 | 0.690274 |
7464b7155331a4d79ff357c2ebdbb6df28af3917 | 380 | ex | Elixir | web/views/error_view.ex | deanbrophy/fantastic-garbanzo | 2649c3ddb915a8e3e589be21cbfa1c79c59ed9b4 | [
"MIT"
] | 1 | 2017-03-08T18:46:17.000Z | 2017-03-08T18:46:17.000Z | web/views/error_view.ex | deanbrophy/fantastic-garbanzo | 2649c3ddb915a8e3e589be21cbfa1c79c59ed9b4 | [
"MIT"
] | null | null | null | web/views/error_view.ex | deanbrophy/fantastic-garbanzo | 2649c3ddb915a8e3e589be21cbfa1c79c59ed9b4 | [
"MIT"
] | null | null | null | defmodule Elixircast.ErrorView do
use Elixircast.Web, :view
def render("404.html", _assigns) do
"Page not found"
end
def render("500.html", _assigns) do
"Server internal error"
end
# In case no render clause matches or no
# template is found, let's render it as 500
def template_not_found(_tem... | 21.111111 | 47 | 0.702632 |
7464b990aca1df685d6eb8c990c73adf4c23c09c | 1,280 | ex | Elixir | kousa/lib/broth/message/user/update.ex | alexnix/dogehouse | 515e012fee184dcb059abc5c4a56fb8c26d9f9c8 | [
"MIT"
] | null | null | null | kousa/lib/broth/message/user/update.ex | alexnix/dogehouse | 515e012fee184dcb059abc5c4a56fb8c26d9f9c8 | [
"MIT"
] | null | null | null | kousa/lib/broth/message/user/update.ex | alexnix/dogehouse | 515e012fee184dcb059abc5c4a56fb8c26d9f9c8 | [
"MIT"
] | null | null | null | defmodule Broth.Message.User.Update do
use Broth.Message.Call,
reply: __MODULE__
alias Beef.Repo
@derive {Jason.Encoder, only: ~w(
username
bio
avatarUrl
displayName
muted
deafened
)a}
@primary_key {:id, :binary_id, []}
schema "users" do
field(:username, :string)
field... | 25.098039 | 84 | 0.640625 |
7464bd9567b2c0e923f35b6663ef26efa01ad302 | 3,149 | exs | Elixir | test/batcher/bors_toml_test.exs | dmorina/bors-ng | 833a3685747c441d13068a140849d759c05fe5c5 | [
"Apache-2.0"
] | 1,223 | 2017-01-11T19:25:08.000Z | 2022-03-21T12:31:28.000Z | test/batcher/bors_toml_test.exs | seanpm2001/bors-ng | 2482df1c2f4680b33534620571f04075b6b4390a | [
"Apache-2.0"
] | 1,428 | 2017-01-09T16:36:18.000Z | 2022-03-28T14:19:40.000Z | test/batcher/bors_toml_test.exs | seanpm2001/bors-ng | 2482df1c2f4680b33534620571f04075b6b4390a | [
"Apache-2.0"
] | 184 | 2017-01-10T18:08:06.000Z | 2022-03-14T18:53:24.000Z | defmodule BatcherBorsTomlTest do
use ExUnit.Case, async: true
alias BorsNG.Worker.Batcher.BorsToml
test "does not accept an empty config file" do
r = BorsToml.new("")
assert r == {:error, :empty_config}
end
test "accepts a config file with just labels" do
{:ok, toml} = BorsToml.new(~s/block_lab... | 28.627273 | 91 | 0.62115 |
7465053a97dcdacebebd557b78d8c3a43227c8a7 | 621 | exs | Elixir | test/2020/aoc2020_day18_test.exs | hvnsweeting/adventofcode2018 | 8e5a85ebb7b102361b844b0f92522c18148a672a | [
"BSD-3-Clause"
] | 1 | 2022-01-10T02:34:18.000Z | 2022-01-10T02:34:18.000Z | test/2020/aoc2020_day18_test.exs | hvnsweeting/adventofcode2018 | 8e5a85ebb7b102361b844b0f92522c18148a672a | [
"BSD-3-Clause"
] | null | null | null | test/2020/aoc2020_day18_test.exs | hvnsweeting/adventofcode2018 | 8e5a85ebb7b102361b844b0f92522c18148a672a | [
"BSD-3-Clause"
] | 1 | 2019-12-02T09:42:17.000Z | 2019-12-02T09:42:17.000Z | defmodule Aoc2020Day18Test do
use ExUnit.Case
@tag timeout: :infinity
@tag slow: true
test "1" do
input = "
(1 + (2 * 3) + (4 * (5 + 6)))
"
assert Aoc2020Day18.solve1(input) == 51
# takes ~ 140s to run
{:ok, input} = File.read("test/input2020_18")
assert Aoc2020Day18.solve1(input) == 4... | 22.178571 | 59 | 0.618357 |
7465273edc47a197e8654e8d0ca8ab02f6a751fb | 636 | exs | Elixir | test/encrypted_secrets_test.exs | kieraneglin/encrypted_secrets | 8f59e398f0526fc3a003b939e1303688c5e7f77e | [
"MIT"
] | 43 | 2019-03-03T01:17:35.000Z | 2022-02-27T20:45:05.000Z | test/encrypted_secrets_test.exs | kieraneglin/encrypted_secrets | 8f59e398f0526fc3a003b939e1303688c5e7f77e | [
"MIT"
] | 12 | 2019-03-03T01:11:25.000Z | 2022-02-28T21:11:44.000Z | test/encrypted_secrets_test.exs | kieraneglin/encrypted_secrets | 8f59e398f0526fc3a003b939e1303688c5e7f77e | [
"MIT"
] | 9 | 2019-03-10T19:27:56.000Z | 2021-07-08T04:24:13.000Z | defmodule EncryptedSecretsTest do
use ExUnit.Case
doctest EncryptedSecrets
test "README install version check" do
app = :encrypted_secrets
app_version = "#{Application.spec(app, :vsn)}"
readme = File.read!("README.md")
[_, readme_versions] = Regex.run(~r/{:#{app}, "(.+)"}/, readme)
assert V... | 27.652174 | 89 | 0.605346 |
74655215e1635d315e807b5b908d9074a7006bbc | 780 | ex | Elixir | playing_with_fractions.ex | marcogbarcellos/todo_list_elixir | f50c488160d873ae1215ee173f73cddf4ad9b154 | [
"MIT"
] | null | null | null | playing_with_fractions.ex | marcogbarcellos/todo_list_elixir | f50c488160d873ae1215ee173f73cddf4ad9b154 | [
"MIT"
] | null | null | null | playing_with_fractions.ex | marcogbarcellos/todo_list_elixir | f50c488160d873ae1215ee173f73cddf4ad9b154 | [
"MIT"
] | null | null | null | defmodule PlayingWithFractions do
def test_patterns() do
one_half = Fraction.new(1, 2)
IO.puts "one_half.a: #{one_half.a} and one_half.b: #{one_half.b}"
# works interpreting
# one_quarter = %Fraction.new({one_half | b: 4})
# IO.puts "one_quarter.a: #{one_quarter.a} and one_quarter.b: #{one_quart... | 25.16129 | 83 | 0.616667 |
746552ddbd99a544b236da0812208c6761dba349 | 295 | exs | Elixir | test/ua_inspector/short_code_map/oss_test.exs | elixytics/ua_inspector | 11fd98f69b7853b70529ee73355ef57851248572 | [
"Apache-2.0"
] | 57 | 2015-04-07T03:10:45.000Z | 2019-03-11T01:01:40.000Z | test/ua_inspector/short_code_map/oss_test.exs | elixytics/ua_inspector | 11fd98f69b7853b70529ee73355ef57851248572 | [
"Apache-2.0"
] | 16 | 2015-03-09T19:56:17.000Z | 2019-03-16T14:24:02.000Z | test/ua_inspector/short_code_map/oss_test.exs | elixytics/ua_inspector | 11fd98f69b7853b70529ee73355ef57851248572 | [
"Apache-2.0"
] | 15 | 2015-02-02T23:14:00.000Z | 2019-03-16T13:15:05.000Z | defmodule UAInspector.ShortCodeMap.OSsTest do
use ExUnit.Case, async: true
alias UAInspector.ShortCodeMap.OSs
test "OS name" do
assert "FED" = OSs.to_short("Fedora")
end
test "OS name not convertible" do
name = "--unknown--"
assert ^name = OSs.to_short(name)
end
end
| 18.4375 | 45 | 0.688136 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.