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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9eae66d627b270dabc597633ab7ae37ba4317348 | 708 | ex | Elixir | lib/calendarific/apis/holidays.ex | Bounceapp/elixir-calendarific | f3c3b9b8d17d0fbf9773f3948bacf687a093a832 | [
"MIT"
] | 3 | 2021-03-16T15:21:08.000Z | 2021-03-19T22:38:20.000Z | lib/calendarific/apis/holidays.ex | Bounceapp/elixir-calendarific | f3c3b9b8d17d0fbf9773f3948bacf687a093a832 | [
"MIT"
] | null | null | null | lib/calendarific/apis/holidays.ex | Bounceapp/elixir-calendarific | f3c3b9b8d17d0fbf9773f3948bacf687a093a832 | [
"MIT"
] | null | null | null | defmodule Calendarific.Apis.Holidays do
@derive [Poison.Encoder]
alias Calendarific.HttpClient
alias Calendarific.Types
@endpoint "holidays"
def fetch(country_code, year) do
HttpClient.request(:get, @endpoint, country: country_code, year: year)
|> Map.get("response")
|> parse_holidays()
end
... | 21.454545 | 74 | 0.60452 |
9eae6c8e6b10ad9868029b4e5d9ede44b4ffcac9 | 1,840 | exs | Elixir | clients/apps_activity/mix.exs | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/apps_activity/mix.exs | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/apps_activity/mix.exs | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"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... | 27.462687 | 104 | 0.657065 |
9eae8b55965b38a255cc56043d2548c29fc15f52 | 992 | exs | Elixir | mix.exs | mjaric/tds-encoding | 9bcc0cfcd9c1a02125f0ed3384868b42727cf5cb | [
"MIT"
] | 1 | 2021-10-09T09:09:08.000Z | 2021-10-09T09:09:08.000Z | mix.exs | mjaric/tds-encoding | 9bcc0cfcd9c1a02125f0ed3384868b42727cf5cb | [
"MIT"
] | 2 | 2021-05-24T15:21:54.000Z | 2021-10-09T18:02:18.000Z | mix.exs | mjaric/tds-encoding | 9bcc0cfcd9c1a02125f0ed3384868b42727cf5cb | [
"MIT"
] | 3 | 2021-05-21T00:26:31.000Z | 2021-09-29T08:06:05.000Z | defmodule Tds.Encoding.MixProject do
use Mix.Project
def project do
[
app: :tds_encoding,
compilers: Mix.compilers(),
version: "1.1.1",
elixir: "~> 1.9",
start_permanent: Mix.env() == :prod,
deps: deps(),
description:
"String encoding/decoding NIF using rust [e... | 23.069767 | 104 | 0.586694 |
9eae8fa278235bbd6b4192be1fe601a6d5b0f619 | 3,978 | exs | Elixir | test/grant_type/client_credentials_test.exs | smartvokat/door_frame | 9052ab233b2af65582dd1925a998e2b46b0eb569 | [
"Apache-2.0"
] | 5 | 2019-06-12T11:26:12.000Z | 2022-01-28T19:45:47.000Z | test/grant_type/client_credentials_test.exs | smartvokat/door_frame | 9052ab233b2af65582dd1925a998e2b46b0eb569 | [
"Apache-2.0"
] | 2 | 2019-06-04T13:19:55.000Z | 2021-04-19T07:17:34.000Z | test/grant_type/client_credentials_test.exs | smartvokat/door_frame | 9052ab233b2af65582dd1925a998e2b46b0eb569 | [
"Apache-2.0"
] | 1 | 2019-06-12T11:26:14.000Z | 2019-06-12T11:26:14.000Z | defmodule DoorFrame.GrantType.ClientCredentialsTest do
alias DoorFrame.Error
alias DoorFrame.GrantType.ClientCredentials
alias DoorFrame.Request
alias DoorFrame.Response
use ExUnit.Case
setup do
request = %Request{
client_id: "secret_client_id",
client_secret: "secret_client_secret",
... | 29.466667 | 99 | 0.620161 |
9eaeeea6eba8d2a82da822f9ed7d1739fe437c42 | 554 | ex | Elixir | lib/gexbot_web/router.ex | jakewilkins/gexbot | b92cd5bae794becaedbee9c8884e4b66942198b7 | [
"WTFPL"
] | null | null | null | lib/gexbot_web/router.ex | jakewilkins/gexbot | b92cd5bae794becaedbee9c8884e4b66942198b7 | [
"WTFPL"
] | null | null | null | lib/gexbot_web/router.ex | jakewilkins/gexbot | b92cd5bae794becaedbee9c8884e4b66942198b7 | [
"WTFPL"
] | null | null | null | defmodule GexbotWeb.Router do
use GexbotWeb, :router
pipeline :public_api do
plug :accepts, ["json"]
end
pipeline :authenticated_api do
plug :accepts, ["json"]
end
scope "/api", GexbotWeb do
pipe_through :authenticated_api
resources "/installations", InstallationController, except: [:new,... | 26.380952 | 86 | 0.712996 |
9eaefa491aeb5c96633495f87d420693037492d4 | 1,722 | exs | Elixir | test/sponsorly_web/controllers/user_registration_controller_test.exs | AminArria/sponsorly | fa78ead63076a54cb1cb1f9d4f4c5fd7a4a78fac | [
"MIT"
] | null | null | null | test/sponsorly_web/controllers/user_registration_controller_test.exs | AminArria/sponsorly | fa78ead63076a54cb1cb1f9d4f4c5fd7a4a78fac | [
"MIT"
] | null | null | null | test/sponsorly_web/controllers/user_registration_controller_test.exs | AminArria/sponsorly | fa78ead63076a54cb1cb1f9d4f4c5fd7a4a78fac | [
"MIT"
] | null | null | null | defmodule SponsorlyWeb.UserRegistrationControllerTest do
use SponsorlyWeb.ConnCase, async: true
import Sponsorly.AccountsFixtures
describe "GET /users/register" do
test "renders registration page", %{conn: conn} do
conn = get(conn, Routes.user_registration_path(conn, :new))
response = html_respo... | 35.142857 | 104 | 0.646341 |
9eaf128bb83bbbdb7426dc56df504c97633c2abf | 1,044 | exs | Elixir | test/lib/canvas_api/unfurl/gist_test.exs | usecanvas/api-v2 | 59214db3a2cf12eb939f22fed320fd10cb47cdfe | [
"Apache-2.0"
] | 123 | 2017-04-04T18:15:48.000Z | 2021-04-26T08:04:22.000Z | test/lib/canvas_api/unfurl/gist_test.exs | usecanvas/api-v2 | 59214db3a2cf12eb939f22fed320fd10cb47cdfe | [
"Apache-2.0"
] | null | null | null | test/lib/canvas_api/unfurl/gist_test.exs | usecanvas/api-v2 | 59214db3a2cf12eb939f22fed320fd10cb47cdfe | [
"Apache-2.0"
] | 17 | 2017-04-04T18:58:29.000Z | 2021-05-10T21:39:16.000Z | defmodule CanvasAPI.Unfurl.GistTest do
use ExUnit.Case
alias CanvasAPI.Unfurl
alias CanvasAPI.Unfurl.Gist, as: UnfurlGist
import Mock
test "unfurls via a GitHub Gist" do
url = "https://gist.github.com/user/id.json"
with_mock HTTPoison, [get: mock_get(url)] do
unfurl = UnfurlGist.unfurl(url)
... | 27.473684 | 97 | 0.585249 |
9eaf2231460f53a4ac25b48b373d744517592190 | 14,290 | exs | Elixir | lib/elixir/test/elixir/task_test.exs | mk/elixir | 2b2c66ecf7b1cc2167cae9cc3e88f950994223f1 | [
"Apache-2.0"
] | 4 | 2015-12-22T02:46:39.000Z | 2016-04-26T06:11:09.000Z | lib/elixir/test/elixir/task_test.exs | mk/elixir | 2b2c66ecf7b1cc2167cae9cc3e88f950994223f1 | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/task_test.exs | mk/elixir | 2b2c66ecf7b1cc2167cae9cc3e88f950994223f1 | [
"Apache-2.0"
] | null | null | null | Code.require_file "test_helper.exs", __DIR__
defmodule TaskTest do
use ExUnit.Case
setup do
Logger.remove_backend(:console)
on_exit fn -> Logger.add_backend(:console, flush: true) end
:ok
end
def wait_and_send(caller, atom) do
send caller, :ready
receive do: (true -> true)
send caller... | 33.466042 | 106 | 0.642617 |
9eaf2f324c3d87c99dd0e50b69f591d92b47b396 | 621 | ex | Elixir | gallows/lib/gallows_web/views/helpers/game_state_helper.ex | wronfim/hangman_game | c4dc4b9f122e773fe87ac4dc88206b792c1b239e | [
"MIT"
] | null | null | null | gallows/lib/gallows_web/views/helpers/game_state_helper.ex | wronfim/hangman_game | c4dc4b9f122e773fe87ac4dc88206b792c1b239e | [
"MIT"
] | null | null | null | gallows/lib/gallows_web/views/helpers/game_state_helper.ex | wronfim/hangman_game | c4dc4b9f122e773fe87ac4dc88206b792c1b239e | [
"MIT"
] | null | null | null | defmodule GallowsWeb.Views.Helpers.GameStateHelper do
import Phoenix.HTML, only: [raw: 1]
@responses %{
won: {:success, "You Won!"},
lost: {:danger, "You Lost!"},
good_guess: {:success, "Good guess!"},
bad_guess: {:warning, "Bad guess!"},
already_used: {:info, "You already... | 22.178571 | 55 | 0.558776 |
9eaf357cf1ddadcaf74d71d816591c944721aa09 | 720 | ex | Elixir | lib/cforum/jobs/database_maintenance_job.ex | MatthiasApsel/cforum_ex | 52c621a583182d82692b74694b0b2792ac23b8ff | [
"MIT"
] | null | null | null | lib/cforum/jobs/database_maintenance_job.ex | MatthiasApsel/cforum_ex | 52c621a583182d82692b74694b0b2792ac23b8ff | [
"MIT"
] | null | null | null | lib/cforum/jobs/database_maintenance_job.ex | MatthiasApsel/cforum_ex | 52c621a583182d82692b74694b0b2792ac23b8ff | [
"MIT"
] | null | null | null | defmodule Cforum.Jobs.DatabaseMaintenanceJob do
use Oban.Worker, queue: :background, max_attempts: 5
import Ecto.Query, warn: false
require Logger
alias Cforum.Repo
@impl Oban.Worker
def perform(_, _) do
Logger.info("Starting database maintenance…")
Logger.info("VACCUM FULL ANALYZE…")
Repo.q... | 27.692308 | 102 | 0.694444 |
9eaf49c1b0ae7815c29edbc30a898144c823d788 | 12,723 | ex | Elixir | lib/ecto/adapters/myxql.ex | jeroenvisser101/ecto_sql | f189802129ac866b2d376ce073b07809a3317238 | [
"Apache-2.0"
] | null | null | null | lib/ecto/adapters/myxql.ex | jeroenvisser101/ecto_sql | f189802129ac866b2d376ce073b07809a3317238 | [
"Apache-2.0"
] | null | null | null | lib/ecto/adapters/myxql.ex | jeroenvisser101/ecto_sql | f189802129ac866b2d376ce073b07809a3317238 | [
"Apache-2.0"
] | null | null | null | defmodule Ecto.Adapters.MyXQL do
@moduledoc """
Adapter module for MySQL.
It uses `MyXQL` for communicating to the database.
## Options
MySQL options split in different categories described
below. All options can be given via the repository
configuration:
### Connection options
* `:protocol` - ... | 32.706941 | 114 | 0.649375 |
9eaf7d93e785f55142428e2f10d082429256829b | 1,404 | ex | Elixir | lib/plausible_web/endpoint.ex | pmhoudry/plausible | 454feec36e62b866ae86e07a1f4133d9782d4365 | [
"MIT"
] | null | null | null | lib/plausible_web/endpoint.ex | pmhoudry/plausible | 454feec36e62b866ae86e07a1f4133d9782d4365 | [
"MIT"
] | null | null | null | lib/plausible_web/endpoint.ex | pmhoudry/plausible | 454feec36e62b866ae86e07a1f4133d9782d4365 | [
"MIT"
] | null | null | null | defmodule PlausibleWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :plausible
use Sentry.Phoenix.Endpoint
# Serve at "/" the static files from "priv/static" directory.
#
# You should set gzip to true if you are running phx.digest
# when deploying your static files in production.
plug Plug.Static,
at: ... | 25.527273 | 141 | 0.692308 |
9eaf918986cc853f21cda55240c1fb33fea5aee9 | 1,722 | ex | Elixir | apps/discordbot/lib/discordbot/model/voice_identify.ex | alexweav/discordbot | 1ee138f7c42a6901ab769e2ce59a6878bf603290 | [
"MIT"
] | 4 | 2018-11-19T06:10:52.000Z | 2022-02-03T01:50:23.000Z | apps/discordbot/lib/discordbot/model/voice_identify.ex | alexweav/discordbot | 1ee138f7c42a6901ab769e2ce59a6878bf603290 | [
"MIT"
] | 254 | 2018-11-19T06:08:51.000Z | 2021-07-22T13:47:26.000Z | apps/discordbot/lib/discordbot/model/voice_identify.ex | alexweav/discordbot | 1ee138f7c42a6901ab769e2ce59a6878bf603290 | [
"MIT"
] | null | null | null | defmodule DiscordBot.Model.VoiceIdentify do
@derive [Poison.Encoder]
@moduledoc """
Identifies the client over the voice control websocket.
"""
use DiscordBot.Model.Serializable
alias DiscordBot.Model.{Serializable, VoicePayload}
defstruct([
:server_id,
:user_id,
:session_id,
:token
]... | 22.96 | 90 | 0.642276 |
9eaf96e0efdcba430848c78eea1057b6078e9f7d | 1,245 | exs | Elixir | mix.exs | beamuav/elixir_mavlink_util | caab0b8d096e67f12512fa87197e73f53ccda5fd | [
"MIT"
] | null | null | null | mix.exs | beamuav/elixir_mavlink_util | caab0b8d096e67f12512fa87197e73f53ccda5fd | [
"MIT"
] | 1 | 2021-05-20T22:25:53.000Z | 2021-05-20T22:25:53.000Z | mix.exs | beamuav/elixir_mavlink_util | caab0b8d096e67f12512fa87197e73f53ccda5fd | [
"MIT"
] | null | null | null | defmodule MAVLink.Util.MixProject do
use Mix.Project
def project do
[
app: :mavlink_util,
version: "0.1.0",
elixir: "~> 1.10",
start_permanent: Mix.env() == :prod,
description: description(),
package: package(),
deps: deps(),
source_url: "https://github.com/robin... | 24.9 | 77 | 0.611245 |
9eafa566df7754767b68d5534a25fd984a1bc711 | 4,297 | ex | Elixir | apps/omg_watcher/lib/web/controllers/challenge.ex | Pongch/elixir-omg | 8a33c246898b49cba62b847e0989d9b6c89f5106 | [
"Apache-2.0"
] | null | null | null | apps/omg_watcher/lib/web/controllers/challenge.ex | Pongch/elixir-omg | 8a33c246898b49cba62b847e0989d9b6c89f5106 | [
"Apache-2.0"
] | null | null | null | apps/omg_watcher/lib/web/controllers/challenge.ex | Pongch/elixir-omg | 8a33c246898b49cba62b847e0989d9b6c89f5106 | [
"Apache-2.0"
] | null | null | null | # Copyright 2018 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... | 41.718447 | 1,041 | 0.759832 |
9eb004f8e76e4350986615b4d9e5db2621622895 | 776 | ex | Elixir | lib/perspective/event_chain/page_manifest/page_manifest_state.ex | backmath/perspective | a0a577d0ffb06805b64e4dcb171a093e051884b0 | [
"MIT"
] | 2 | 2020-04-24T19:43:06.000Z | 2020-04-24T19:52:27.000Z | lib/perspective/event_chain/page_manifest/page_manifest_state.ex | backmath/perspective | a0a577d0ffb06805b64e4dcb171a093e051884b0 | [
"MIT"
] | null | null | null | lib/perspective/event_chain/page_manifest/page_manifest_state.ex | backmath/perspective | a0a577d0ffb06805b64e4dcb171a093e051884b0 | [
"MIT"
] | null | null | null | defmodule Perspective.EventChain.PageManifest.State do
defstruct pages: []
alias __MODULE__
def new() do
page_name = new_page_name()
%State{
pages: [page_name]
}
end
def current_page(%State{pages: pages}) do
List.last(pages)
end
def add_page(%State{pages: pages} = state) do
n... | 18.926829 | 54 | 0.612113 |
9eb0172343595ff7d9683aca256b80d160c742ca | 516 | ex | Elixir | lib/plug/quiet_logger.ex | Driftrock/quiet_logger | e0ec525bc22d17b135709e7f48b924bb037c62bf | [
"Apache-2.0"
] | 1 | 2019-01-24T09:09:14.000Z | 2019-01-24T09:09:14.000Z | lib/plug/quiet_logger.ex | Driftrock/quiet_logger | e0ec525bc22d17b135709e7f48b924bb037c62bf | [
"Apache-2.0"
] | 1 | 2018-07-24T11:05:48.000Z | 2018-07-24T14:33:26.000Z | lib/plug/quiet_logger.ex | Driftrock/quiet_logger | e0ec525bc22d17b135709e7f48b924bb037c62bf | [
"Apache-2.0"
] | 1 | 2018-07-16T13:42:16.000Z | 2018-07-16T13:42:16.000Z | defmodule Plug.QuietLogger do
@behaviour Plug
def init(opts) do
path = Keyword.get(opts, :path, "/health-check")
log = Keyword.get(opts, :log, :info)
%{log: log, path: path}
end
def call(%{request_path: path} = conn, %{log: log, path: paths}) when is_list(paths) do
if path in paths, do: conn,... | 24.571429 | 89 | 0.633721 |
9eb0402b087c667b97b60be7e5ea2861def7f103 | 2,123 | ex | Elixir | lib/credo/cli/command/info/info_output.ex | kanmaniselvan/credo | 276e0fc24d1bf56c8fc2902a9e933c8f208ce391 | [
"MIT"
] | 1 | 2021-12-01T13:37:43.000Z | 2021-12-01T13:37:43.000Z | lib/credo/cli/command/info/info_output.ex | kanmaniselvan/credo | 276e0fc24d1bf56c8fc2902a9e933c8f208ce391 | [
"MIT"
] | null | null | null | lib/credo/cli/command/info/info_output.ex | kanmaniselvan/credo | 276e0fc24d1bf56c8fc2902a9e933c8f208ce391 | [
"MIT"
] | 1 | 2019-10-08T16:42:40.000Z | 2019-10-08T16:42:40.000Z | defmodule Credo.CLI.Command.Info.InfoOutput do
@moduledoc false
use Credo.CLI.Output.FormatDelegator,
default: Credo.CLI.Command.Info.Output.Default,
json: Credo.CLI.Command.Info.Output.Json
alias Credo.CLI.Output.UI
def print(exec, info) do
format_mod = format_mod(exec)
format_mod.print(exe... | 34.241935 | 109 | 0.595384 |
9eb05da9c8f5a8e5109e6d362d3bd5650855ed91 | 1,689 | exs | Elixir | test/central_web/controllers/logging/audit_log_controller_test.exs | icexuick/teiserver | 22f2e255e7e21f977e6b262acf439803626a506c | [
"MIT"
] | null | null | null | test/central_web/controllers/logging/audit_log_controller_test.exs | icexuick/teiserver | 22f2e255e7e21f977e6b262acf439803626a506c | [
"MIT"
] | null | null | null | test/central_web/controllers/logging/audit_log_controller_test.exs | icexuick/teiserver | 22f2e255e7e21f977e6b262acf439803626a506c | [
"MIT"
] | null | null | null | defmodule CentralWeb.Logging.AuditLogControllerTest do
use CentralWeb.ConnCase, async: true
# alias CentralWeb.Logging.AuditLog
alias Central.Logging.Helpers
# @valid_attrs %{action: "some content", details: "{}", ip: "some content"}
# @invalid_attrs %{}
alias Central.Helpers.GeneralTestLib
alias Centra... | 29.12069 | 77 | 0.648313 |
9eb082f95b267e7b7c9426b3e5e7dd77f810f61e | 682 | ex | Elixir | lib/bolt/schema/action_group.ex | CyberFlameGO/bolt | 225e6276983bec646e7f13519df066e8e1e770ed | [
"ISC"
] | null | null | null | lib/bolt/schema/action_group.ex | CyberFlameGO/bolt | 225e6276983bec646e7f13519df066e8e1e770ed | [
"ISC"
] | null | null | null | lib/bolt/schema/action_group.ex | CyberFlameGO/bolt | 225e6276983bec646e7f13519df066e8e1e770ed | [
"ISC"
] | null | null | null | defmodule Bolt.Schema.ActionGroup do
@moduledoc "A collection of actions to run"
alias Bolt.Schema.Action
import Ecto.Changeset
use Ecto.Schema
schema "action_group" do
field :guild_id, :id
field :name, :string
field :deduplicate, :boolean, default: true
has_many :actions, Action, foreign_k... | 25.259259 | 74 | 0.668622 |
9eb09ba4ce032553098a010506c4a5944468123e | 2,002 | ex | Elixir | code/tooling/webapp/web/web.ex | alvarocamillont/introdu-o_elixir | 1d72d4f4b01d9312c4b066ce3c0fe8d9bfaaade1 | [
"MIT"
] | null | null | null | code/tooling/webapp/web/web.ex | alvarocamillont/introdu-o_elixir | 1d72d4f4b01d9312c4b066ce3c0fe8d9bfaaade1 | [
"MIT"
] | 1 | 2021-03-09T16:27:25.000Z | 2021-03-09T16:27:25.000Z | programming-elixir-book/code/tooling/webapp/web/web.ex | jordanhubbard/elixir-projects | dee341d672e83a45a17a4a85abd54a480f95c506 | [
"BSD-2-Clause"
] | null | null | null | #---
# Excerpted from "Programming Elixir ≥ 1.6",
# published by The Pragmatic Bookshelf.
# Copyrights apply to this code. It may not be used to create training material,
# courses, books, articles, and the like. Contact us if you are in doubt.
# We make no guarantees that this code is fit for any purpose.
# Visit http... | 22.244444 | 88 | 0.680819 |
9eb0dca1fcfa863a33c0cbe199a5b01011b35cfb | 6,210 | ex | Elixir | lib/rdf/query/bgp/stream.ex | rdf-elixir/rdf-ex | 7d4280ec9a912ef6ee9fc96ecdfdf26647016d6a | [
"MIT"
] | 19 | 2020-06-05T16:55:54.000Z | 2022-03-22T10:30:11.000Z | lib/rdf/query/bgp/stream.ex | rdf-elixir/rdf-ex | 7d4280ec9a912ef6ee9fc96ecdfdf26647016d6a | [
"MIT"
] | 4 | 2020-07-03T21:02:55.000Z | 2021-11-18T07:22:06.000Z | lib/rdf/query/bgp/stream.ex | rdf-elixir/rdf-ex | 7d4280ec9a912ef6ee9fc96ecdfdf26647016d6a | [
"MIT"
] | 3 | 2020-07-03T13:25:36.000Z | 2021-04-04T12:33:51.000Z | defmodule RDF.Query.BGP.Stream do
@moduledoc false
@behaviour RDF.Query.BGP.Matcher
alias RDF.Query.BGP
alias RDF.Query.BGP.{QueryPlanner, BlankNodeHandler}
alias RDF.{Graph, Description}
@impl RDF.Query.BGP.Matcher
def stream(bgp, graph, opts \\ [])
# https://www.w3.org/TR/sparql11-query/#emptyGrou... | 33.208556 | 107 | 0.644605 |
9eb184bbee8e375b83dcf49ffad2d0073f1cb697 | 325 | ex | Elixir | stack2/lib/stack2/sub_supervisor.ex | benjohns1/elixer-app | 6e866ec084c5e75442c0b70f66e35f61b5b74d34 | [
"MIT"
] | null | null | null | stack2/lib/stack2/sub_supervisor.ex | benjohns1/elixer-app | 6e866ec084c5e75442c0b70f66e35f61b5b74d34 | [
"MIT"
] | null | null | null | stack2/lib/stack2/sub_supervisor.ex | benjohns1/elixer-app | 6e866ec084c5e75442c0b70f66e35f61b5b74d34 | [
"MIT"
] | null | null | null | defmodule Stack2.SubSupervisor do
use Supervisor
def start_link(stash_pid) do
{:ok, _pid} = Supervisor.start_link(__MODULE__, stash_pid)
end
def init(stash_pid) do
child_processes = [
worker(Stack2.Server, [stash_pid])
]
supervise child_processes, strategy: :one_for_one
end... | 23.214286 | 63 | 0.689231 |
9eb190fcfe7c1ac48da6b4af938e0201e1004cc4 | 9,327 | exs | Elixir | test/astarte_housekeeping/rpc/amqp_server_test.exs | rbino/astarte_housekeeping | d582175f9499ffd3eaefe3a69fcfceba8b2089b9 | [
"Apache-2.0"
] | null | null | null | test/astarte_housekeeping/rpc/amqp_server_test.exs | rbino/astarte_housekeeping | d582175f9499ffd3eaefe3a69fcfceba8b2089b9 | [
"Apache-2.0"
] | null | null | null | test/astarte_housekeeping/rpc/amqp_server_test.exs | rbino/astarte_housekeeping | d582175f9499ffd3eaefe3a69fcfceba8b2089b9 | [
"Apache-2.0"
] | null | null | null | #
# This file is part of Astarte.
#
# Copyright 2017-2018 Ispirata Srl
#
# 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... | 26.878963 | 105 | 0.639112 |
9eb19db59eba6e21df026b59ec6010b0d826a90b | 768 | ex | Elixir | examples/golomb_bab.ex | mbta/solverl | 3d972db4fa173e9453357814884bd37f52a9713d | [
"MIT"
] | 30 | 2020-07-30T19:22:34.000Z | 2022-03-28T02:06:55.000Z | examples/golomb_bab.ex | mbta/solverl | 3d972db4fa173e9453357814884bd37f52a9713d | [
"MIT"
] | 1 | 2022-02-14T22:56:02.000Z | 2022-02-15T14:13:53.000Z | examples/golomb_bab.ex | mbta/solverl | 3d972db4fa173e9453357814884bd37f52a9713d | [
"MIT"
] | 4 | 2020-08-18T04:31:38.000Z | 2022-03-19T19:33:26.000Z | defmodule GolombBAB do
import MinizincSearch
import MinizincUtils
require Logger
@moduledoc false
@objective_var "obj"
@model resource_file("mzn/golomb_mybab.mzn")
def solve(opts \\ []) do
instance = MinizincInstance.new(@model, [], opts)
results = bab(
instance,
fn solution, met... | 24.774194 | 71 | 0.705729 |
9eb1b6c5ea3f9b98c81a988956e69329b30f896a | 1,549 | ex | Elixir | lib/malan_web/controllers/phone_number_controller.ex | FreedomBen/malan | ec8cd6ed3694e33371f065f018b1169956f2accf | [
"MIT"
] | 3 | 2021-04-24T17:54:55.000Z | 2021-09-10T15:40:19.000Z | lib/malan_web/controllers/phone_number_controller.ex | FreedomBen/malan | ec8cd6ed3694e33371f065f018b1169956f2accf | [
"MIT"
] | 57 | 2021-04-24T03:17:16.000Z | 2022-03-27T04:50:22.000Z | lib/malan_web/controllers/phone_number_controller.ex | FreedomBen/malan | ec8cd6ed3694e33371f065f018b1169956f2accf | [
"MIT"
] | null | null | null | defmodule MalanWeb.PhoneNumberController do
use MalanWeb, :controller
alias Malan.Accounts
alias Malan.Accounts.PhoneNumber
action_fallback MalanWeb.FallbackController
def index(conn, _params) do
phone_numbers = Accounts.list_phone_numbers()
render(conn, "index.json", phone_numbers: phone_numbers)
... | 31.612245 | 98 | 0.684958 |
9eb1bf1cd2fabb9d92c2379846b9299c618ba8a9 | 132 | exs | Elixir | test/support/repo.exs | mainframe2/addict | aa70768f20939bf1f4d36a680240cb32f36e2a79 | [
"MIT"
] | null | null | null | test/support/repo.exs | mainframe2/addict | aa70768f20939bf1f4d36a680240cb32f36e2a79 | [
"MIT"
] | null | null | null | test/support/repo.exs | mainframe2/addict | aa70768f20939bf1f4d36a680240cb32f36e2a79 | [
"MIT"
] | null | null | null | defmodule TestAddictRepo do
use Ecto.Repo, otp_app: :addict, pool: Ecto.Adapters.SQL.Sandbox, adapter: Ecto.Adapters.Postgres
end
| 33 | 99 | 0.795455 |
9eb202166d4c0abcb9b9fb3c82220d939ef153bf | 1,444 | ex | Elixir | clients/vault/lib/google_api/vault/v1/model/held_hangouts_chat_query.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/vault/lib/google_api/vault/v1/model/held_hangouts_chat_query.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/vault/lib/google_api/vault/v1/model/held_hangouts_chat_query.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... | 30.723404 | 115 | 0.740305 |
9eb208edb2d996477973aa098f338a4513cb4fb7 | 490 | ex | Elixir | lib/geonames/endpoints/contains.ex | vheathen/geonames-elixir | b47ef0e38462c3bdbfb1a5b710f53993d9d3056d | [
"MIT"
] | null | null | null | lib/geonames/endpoints/contains.ex | vheathen/geonames-elixir | b47ef0e38462c3bdbfb1a5b710f53993d9d3056d | [
"MIT"
] | null | null | null | lib/geonames/endpoints/contains.ex | vheathen/geonames-elixir | b47ef0e38462c3bdbfb1a5b710f53993d9d3056d | [
"MIT"
] | null | null | null | defmodule Geonames.Endpoints.Contains do
@moduledoc false
@behaviour Geonames.Endpoint
@default_arguments %{
geonameId: nil,
featureClass: nil,
featureCode: nil
}
def endpoint, do: "containsJSON"
def available_url_parameters, do: [:geonameId, :featureClass, :featureCode]
def required_url_par... | 23.333333 | 77 | 0.74898 |
9eb254e3821c7354eaeb6e8720f5a4d4dcd78f23 | 1,924 | exs | Elixir | test/validators/character_set_validator_test.exs | philippneugebauer/password-validator | 01d8f6532d4391e4d74f10548c2b32b2449eeb66 | [
"Apache-2.0"
] | null | null | null | test/validators/character_set_validator_test.exs | philippneugebauer/password-validator | 01d8f6532d4391e4d74f10548c2b32b2449eeb66 | [
"Apache-2.0"
] | null | null | null | test/validators/character_set_validator_test.exs | philippneugebauer/password-validator | 01d8f6532d4391e4d74f10548c2b32b2449eeb66 | [
"Apache-2.0"
] | null | null | null | defmodule PasswordValidator.Validators.CharacterSetValidatorTest do
use ExUnit.Case, async: true
import PasswordValidator.Validators.CharacterSetValidator, only: [validate: 2]
alias PasswordValidator.Validators.CharacterSetValidator
doctest CharacterSetValidator
test "upper_case 2" do
opts = [character_... | 32.066667 | 116 | 0.682952 |
9eb2573f0429b6b9d732ebb97118a3ce672990f8 | 27,876 | exs | Elixir | old/test/blue_jet_web/controllers/sku_controller_test.exs | freshcom/freshcom-api | 4f2083277943cf4e4e8fd4c4d443c7309f285ad7 | [
"BSD-3-Clause"
] | 44 | 2018-05-09T01:08:57.000Z | 2021-01-19T07:25:26.000Z | old/test/blue_jet_web/controllers/sku_controller_test.exs | freshcom/freshcom-api | 4f2083277943cf4e4e8fd4c4d443c7309f285ad7 | [
"BSD-3-Clause"
] | 36 | 2018-05-08T23:59:54.000Z | 2018-09-28T13:50:30.000Z | old/test/blue_jet_web/controllers/sku_controller_test.exs | freshcom/freshcom-api | 4f2083277943cf4e4e8fd4c4d443c7309f285ad7 | [
"BSD-3-Clause"
] | 9 | 2018-05-09T14:09:19.000Z | 2021-03-21T21:04:04.000Z | defmodule BlueJetWeb.SkuControllerTest do
use BlueJetWeb.ConnCase
alias BlueJet.Identity.User
alias BlueJet.Identity
alias BlueJet.Inventory.Sku
alias BlueJet.FileStorage.File
alias BlueJet.FileStorage.FileCollection
alias BlueJet.FileStorage.FileCollectionMembership
alias BlueJet.Repo
@valid_attrs... | 31.605442 | 136 | 0.539496 |
9eb288b9126815af874bacad5105527a9f4a1e9f | 2,765 | exs | Elixir | architect/mix.exs | VJftw/velocity | 8335c39c510dbde1446e6cde03eebb450339d212 | [
"Apache-2.0"
] | 3 | 2017-12-09T21:05:54.000Z | 2019-08-06T08:13:34.000Z | architect/mix.exs | VJftw/velocity | 8335c39c510dbde1446e6cde03eebb450339d212 | [
"Apache-2.0"
] | 63 | 2017-09-09T15:44:24.000Z | 2022-03-03T22:16:24.000Z | architect/mix.exs | VJftw/velocity | 8335c39c510dbde1446e6cde03eebb450339d212 | [
"Apache-2.0"
] | 5 | 2017-09-14T00:17:22.000Z | 2019-11-27T14:43:45.000Z | defmodule Architect.MixProject do
use Mix.Project
def project do
[
app: :architect,
version: "0.1.0",
elixir: "~> 1.5",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix, :gettext, :phoenix_swagger] ++ Mix.compilers(),
start_permanent: Mix.env() == :prod,
a... | 29.414894 | 79 | 0.535262 |
9eb28f56965830361a11575d3a7e30daee3c7ae1 | 412 | ex | Elixir | lib/collection/address.ex | vinceurag/kups | 456d4e1e030721e70ffe616bc1fbb81c85a98c76 | [
"MIT"
] | 3 | 2018-02-19T05:22:59.000Z | 2018-02-19T05:37:45.000Z | lib/collection/address.ex | vinceurag/kups | 456d4e1e030721e70ffe616bc1fbb81c85a98c76 | [
"MIT"
] | null | null | null | lib/collection/address.ex | vinceurag/kups | 456d4e1e030721e70ffe616bc1fbb81c85a98c76 | [
"MIT"
] | null | null | null | defmodule Kups.Collection.Address do
@moduledoc false
def city do
[ "Alaminos", "Angeles", "Antipolo", "Bacolod", "Batangas City", "Biñan", "Dagupan", "Dapitan", "Dipolog", "Iloilo City", "Laoag", "Pasig", "Marikina", "San Fernando", "Zamboanga" ]
end
def province do
[ "Pangasinan", "Rizal", "Ilocos S... | 34.333333 | 185 | 0.648058 |
9eb297862d4d64e911912fc0e5e9a5ab6db14f06 | 140 | exs | Elixir | kekend/config/dev.exs | evbogdanov/serial_killer | 7e67452b26f66a0fd01eca0133e705219957a17d | [
"MIT"
] | null | null | null | kekend/config/dev.exs | evbogdanov/serial_killer | 7e67452b26f66a0fd01eca0133e705219957a17d | [
"MIT"
] | null | null | null | kekend/config/dev.exs | evbogdanov/serial_killer | 7e67452b26f66a0fd01eca0133e705219957a17d | [
"MIT"
] | null | null | null | use Mix.Config
config :serial_killer,
database: "serial_killer",
username: "postgres",
password: "postgres",
hostname: "localhost"
| 17.5 | 28 | 0.721429 |
9eb2bcb9c88d201ae0ac99f2bb4343f3c6c01ba9 | 927 | exs | Elixir | config/config.exs | raguiar9080/fractalman | 7fa5d87e23d3d3e718c8410e63a1b4c15036ce8e | [
"MIT"
] | null | null | null | config/config.exs | raguiar9080/fractalman | 7fa5d87e23d3d3e718c8410e63a1b4c15036ce8e | [
"MIT"
] | null | null | null | config/config.exs | raguiar9080/fractalman | 7fa5d87e23d3d3e718c8410e63a1b4c15036ce8e | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
#
# This configuration file is loaded before any dependency and
# is restricted to this project.
use Mix.Config
# General application configuration
config :gurren,
ecto_repos: [Gurren.Repo]
# Co... | 33.107143 | 86 | 0.760518 |
9eb2fe31ef3d1641651d7c56c4ed20f09d104c79 | 21,990 | ex | Elixir | lib/commanded/commands/router.ex | octowombat/commanded | 79a1965e276d3369dcf70ae65ef904d7e59f4a6a | [
"MIT"
] | 1,220 | 2017-10-31T10:56:40.000Z | 2022-03-31T17:40:19.000Z | lib/commanded/commands/router.ex | octowombat/commanded | 79a1965e276d3369dcf70ae65ef904d7e59f4a6a | [
"MIT"
] | 294 | 2017-11-03T10:33:41.000Z | 2022-03-24T08:36:42.000Z | lib/commanded/commands/router.ex | octowombat/commanded | 79a1965e276d3369dcf70ae65ef904d7e59f4a6a | [
"MIT"
] | 208 | 2017-11-03T10:56:47.000Z | 2022-03-14T05:49:38.000Z | defmodule Commanded.Commands.Router do
@moduledoc """
Command routing macro to allow configuration of each command to its command handler.
## Example
Define a router module which uses `Commanded.Commands.Router` and configures
available commands to dispatch:
defmodule BankRouter do
use Comman... | 33.167421 | 127 | 0.655707 |
9eb3251e27da519b041027aeaec5ab08a900c1c7 | 6,277 | ex | Elixir | lib/credo/code/module.ex | sevenseacat/credo | 48837401040d9c2340b5fb9c7d786d31f89f6426 | [
"MIT"
] | null | null | null | lib/credo/code/module.ex | sevenseacat/credo | 48837401040d9c2340b5fb9c7d786d31f89f6426 | [
"MIT"
] | null | null | null | lib/credo/code/module.ex | sevenseacat/credo | 48837401040d9c2340b5fb9c7d786d31f89f6426 | [
"MIT"
] | null | null | null | defmodule Credo.Code.Module do
@moduledoc """
This module provides helper functions to analyse modules, return the defined
funcions or module attributes.
"""
alias Credo.Code
alias Credo.Code.Block
@def_ops [:def, :defp, :defmacro]
@doc "Returns the list of aliases defined in a given module source ... | 26.045643 | 128 | 0.629122 |
9eb3488b43bd7ec364db98a0e31e0828fdf393e9 | 498 | exs | Elixir | apps/authenticator/priv/repo/migrations/20201004125044_create_user_sign_in_attempt_table.exs | dcdourado/watcher_ex | ce80df81610a6e9b77612911aac2a6d6cf4de8d5 | [
"Apache-2.0"
] | 9 | 2020-10-13T14:11:37.000Z | 2021-08-12T18:40:08.000Z | apps/authenticator/priv/repo/migrations/20201004125044_create_user_sign_in_attempt_table.exs | dcdourado/watcher_ex | ce80df81610a6e9b77612911aac2a6d6cf4de8d5 | [
"Apache-2.0"
] | 28 | 2020-10-04T14:43:48.000Z | 2021-12-07T16:54:22.000Z | apps/authenticator/priv/repo/migrations/20201004125044_create_user_sign_in_attempt_table.exs | dcdourado/watcher_ex | ce80df81610a6e9b77612911aac2a6d6cf4de8d5 | [
"Apache-2.0"
] | 3 | 2020-11-25T20:59:47.000Z | 2021-08-30T10:36:58.000Z | defmodule Authenticator.Repo.Migrations.CreateUserSignInAttemptTable do
use Ecto.Migration
def change do
create_if_not_exists table(:user_sign_in_attempt, primary_key: false) do
add :id, :uuid, primary_key: true
add :username, :string, null: false
add :was_successful, :boolean, null: false
... | 29.294118 | 96 | 0.728916 |
9eb365c04de1de9bfcd71df1da4451049011d036 | 205 | exs | Elixir | test/controllers/page_controller_test.exs | MarcAntoine-Arnaud/ecto_relations | 477853429af12adb33cd8000b29da044649c1283 | [
"MIT"
] | null | null | null | test/controllers/page_controller_test.exs | MarcAntoine-Arnaud/ecto_relations | 477853429af12adb33cd8000b29da044649c1283 | [
"MIT"
] | null | null | null | test/controllers/page_controller_test.exs | MarcAntoine-Arnaud/ecto_relations | 477853429af12adb33cd8000b29da044649c1283 | [
"MIT"
] | null | null | null | defmodule EctoRelations.PageControllerTest do
use EctoRelations.ConnCase
test "GET /", %{conn: conn} do
conn = get conn, "/"
assert html_response(conn, 200) =~ "Welcome to Phoenix!"
end
end
| 22.777778 | 60 | 0.692683 |
9eb372e9fdc3ffb174ecf692800f7da9fca89d11 | 971 | exs | Elixir | mix.exs | cgrothaus/ueberauth_oidc | 31798ffab8e86a0299512ea215234d45b42d06d7 | [
"MIT"
] | null | null | null | mix.exs | cgrothaus/ueberauth_oidc | 31798ffab8e86a0299512ea215234d45b42d06d7 | [
"MIT"
] | 5 | 2019-06-04T12:10:20.000Z | 2022-02-18T15:12:40.000Z | mix.exs | cgrothaus/ueberauth_oidc | 31798ffab8e86a0299512ea215234d45b42d06d7 | [
"MIT"
] | 4 | 2021-03-15T18:47:39.000Z | 2021-11-03T15:03:46.000Z | defmodule UeberauthOIDC.Mixfile do
use Mix.Project
def project do
[
app: :ueberauth_oidc,
name: "Ueberauth OIDC",
version: "0.1.2",
elixir: "~> 1.7",
description: """
An Ueberauth strategy for generic OpenID Connect authentication.
""",
package: package(),
... | 21.108696 | 79 | 0.510814 |
9eb37952889ea8c500f9379c8e6f152a4cd36e85 | 1,386 | exs | Elixir | word-count/test/word_count_test.exs | koladilip/elixir-examples | 49553fe39bbff6e35d1cb2c26fcb6d87fe4e28d3 | [
"MIT"
] | null | null | null | word-count/test/word_count_test.exs | koladilip/elixir-examples | 49553fe39bbff6e35d1cb2c26fcb6d87fe4e28d3 | [
"MIT"
] | null | null | null | word-count/test/word_count_test.exs | koladilip/elixir-examples | 49553fe39bbff6e35d1cb2c26fcb6d87fe4e28d3 | [
"MIT"
] | null | null | null | defmodule WordCountTest do
use ExUnit.Case
test "count one word" do
assert WordCount.count("word") == %{"word" => 1}
end
test "count one of each" do
expected = %{"one" => 1, "of" => 1, "each" => 1}
assert WordCount.count("one of each") == expected
end
test "count multiple occurrences" do
... | 24.75 | 86 | 0.592352 |
9eb38c21aff240927c1e20a055fa3c189fd9626d | 661 | exs | Elixir | bench/benchmarks/jobs_bench.exs | locaweb/kiq | fa561b9a1a2361e99b4af5eafc4d3c7ece576ea9 | [
"MIT"
] | 59 | 2018-07-13T23:17:00.000Z | 2021-12-21T07:03:03.000Z | bench/benchmarks/jobs_bench.exs | locaweb/kiq | fa561b9a1a2361e99b4af5eafc4d3c7ece576ea9 | [
"MIT"
] | 5 | 2019-08-05T13:14:42.000Z | 2022-03-09T12:38:46.000Z | bench/benchmarks/jobs_bench.exs | locaweb/kiq | fa561b9a1a2361e99b4af5eafc4d3c7ece576ea9 | [
"MIT"
] | 6 | 2018-09-24T13:16:21.000Z | 2021-05-03T08:26:52.000Z | defmodule Bench.Worker do
use Kiq.Worker, queue: "bench"
import Bench.Kiq, only: [bin_to_pid: 1]
def perform([index, index, pid_bin]) do
send(bin_to_pid(pid_bin), :finished)
end
def perform([index, total, _pid_bin]) do
index * total
end
end
enqueue_and_wait = fn total ->
pid_bin = Bench.Kiq.pi... | 18.361111 | 45 | 0.641452 |
9eb38ec68fbd4372c338cd089f417703572d394e | 235 | ex | Elixir | test/support/commands/create_account.ex | Cantido/calamity | 203c95eca8cbe6cf7eab8a8f88f14ece6246935f | [
"MIT"
] | null | null | null | test/support/commands/create_account.ex | Cantido/calamity | 203c95eca8cbe6cf7eab8a8f88f14ece6246935f | [
"MIT"
] | 1 | 2022-02-28T11:22:00.000Z | 2022-02-28T11:22:00.000Z | test/support/commands/create_account.ex | Cantido/calamity | 203c95eca8cbe6cf7eab8a8f88f14ece6246935f | [
"MIT"
] | null | null | null | # SPDX-FileCopyrightText: 2021 Rosa Richter
#
# SPDX-License-Identifier: MIT
defmodule Calamity.Commands.CreateAccount do
@derive {Calamity.Command, mod: Calamity.BankAccount, key: :account_id}
defstruct [
:account_id
]
end
| 21.363636 | 73 | 0.757447 |
9eb398ccb155fcbabd3c83fefb63784c0478d3ce | 1,539 | ex | Elixir | clients/cloud_kms/lib/google_api/cloud_kms/v1/model/test_iam_permissions_response.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/cloud_kms/lib/google_api/cloud_kms/v1/model/test_iam_permissions_response.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/cloud_kms/lib/google_api/cloud_kms/v1/model/test_iam_permissions_response.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... | 32.0625 | 134 | 0.744639 |
9eb405ac0f9aa6b23eff08477aea84303075f459 | 1,633 | ex | Elixir | clients/cloud_shell/lib/google_api/cloud_shell/v1/model/start_environment_metadata.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | null | null | null | clients/cloud_shell/lib/google_api/cloud_shell/v1/model/start_environment_metadata.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | null | null | null | clients/cloud_shell/lib/google_api/cloud_shell/v1/model/start_environment_metadata.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2018 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.326531 | 90 | 0.75444 |
9eb40e1714b8867306d21409cc9f78eebb372c3b | 1,925 | ex | Elixir | clients/cloud_asset/lib/google_api/cloud_asset/v1/model/identity_selector.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/cloud_asset/lib/google_api/cloud_asset/v1/model/identity_selector.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/cloud_asset/lib/google_api/cloud_asset/v1/model/identity_selector.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... | 40.957447 | 469 | 0.750649 |
9eb43991ed36e3ba7076e1b25e8fb98eeecb89ba | 118 | ex | Elixir | lib/doc_gen_web/views/about_view.ex | the-mikedavis/doc_gen | efcc884ea65bba5748f41c5601abd00db2777ec4 | [
"BSD-3-Clause"
] | null | null | null | lib/doc_gen_web/views/about_view.ex | the-mikedavis/doc_gen | efcc884ea65bba5748f41c5601abd00db2777ec4 | [
"BSD-3-Clause"
] | 27 | 2018-10-29T18:34:44.000Z | 2019-03-11T18:43:12.000Z | lib/doc_gen_web/views/about_view.ex | the-mikedavis/doc_gen | efcc884ea65bba5748f41c5601abd00db2777ec4 | [
"BSD-3-Clause"
] | null | null | null | defmodule DocGenWeb.AboutView do
use DocGenWeb, :view
def title(_, %{title: title}), do: title <> " - About"
end
| 19.666667 | 56 | 0.669492 |
9eb4483e12812e9f76392e044f97d3c26c304f71 | 56 | exs | Elixir | test/payment_messenger_test.exs | aleDsz/payment-messenger | 91477413373b96167fc8185ff7dc0acc78c8be41 | [
"Apache-2.0"
] | 2 | 2021-07-18T11:41:29.000Z | 2021-07-18T22:27:04.000Z | test/payment_messenger_test.exs | aleDsz/payment-messenger | 91477413373b96167fc8185ff7dc0acc78c8be41 | [
"Apache-2.0"
] | null | null | null | test/payment_messenger_test.exs | aleDsz/payment-messenger | 91477413373b96167fc8185ff7dc0acc78c8be41 | [
"Apache-2.0"
] | null | null | null | defmodule PaymentMessengerTest do
use ExUnit.Case
end
| 14 | 33 | 0.839286 |
9eb469c295816cb5a96da347d9c4591e228d2b8a | 3,080 | ex | Elixir | lib/cli/commands/add/execute.ex | AnilRedshift/wand-cli | c364cf5397353fd61ba0e5fc33225575eb72ccda | [
"BSD-3-Clause"
] | 3 | 2018-07-01T05:31:02.000Z | 2019-08-03T04:11:32.000Z | lib/cli/commands/add/execute.ex | AnilRedshift/wand-cli | c364cf5397353fd61ba0e5fc33225575eb72ccda | [
"BSD-3-Clause"
] | 8 | 2018-06-28T07:30:04.000Z | 2018-07-13T07:36:56.000Z | lib/cli/commands/add/execute.ex | AnilRedshift/wand-cli | c364cf5397353fd61ba0e5fc33225575eb72ccda | [
"BSD-3-Clause"
] | null | null | null | defmodule Wand.CLI.Commands.Add.Execute do
@moduledoc false
alias Wand.CLI.Commands.Add.Package
alias Wand.CLI.Executor.Result
alias WandCore.WandFile
alias WandCore.WandFile.Dependency
alias Wand.CLI.DependencyDownloader
def execute(packages, %{wand_file: file}) do
with {:ok, dependencies} <- get_de... | 27.017544 | 93 | 0.61461 |
9eb4927545e24ee228dc1c9df8e9f2d33319daee | 659 | ex | Elixir | lib/impl/atomizer/map.ex | Ventup-IT/digger | 60e4cf70ac5f4ab712d45448f8c7971a1db929b2 | [
"MIT"
] | null | null | null | lib/impl/atomizer/map.ex | Ventup-IT/digger | 60e4cf70ac5f4ab712d45448f8c7971a1db929b2 | [
"MIT"
] | null | null | null | lib/impl/atomizer/map.ex | Ventup-IT/digger | 60e4cf70ac5f4ab712d45448f8c7971a1db929b2 | [
"MIT"
] | 1 | 2021-11-09T14:20:08.000Z | 2021-11-09T14:20:08.000Z | defimpl Digger.Atomizer, for: Map do
alias Digger.Atomizer
alias Digger.Opts.Atomizer, as: Opts
def atomize(map, opts) do
opts = Opts.set_options(opts)
map
|> Enum.reduce(%{}, fn {key, value}, acc ->
Map.merge(acc, %{
Atomizer.atomize(key,
type: :key,
key_transform:... | 26.36 | 64 | 0.587253 |
9eb49a4ca4b015827a0a8c080b054fe7e3ee7ba1 | 1,097 | ex | Elixir | lib/mix/tasks/init.ex | MeneDev/espec | ec4b3d579c5192999e930224a8a2650bb1fdf0bc | [
"Apache-2.0"
] | 807 | 2015-03-25T14:00:19.000Z | 2022-03-24T08:08:15.000Z | lib/mix/tasks/init.ex | MeneDev/espec | ec4b3d579c5192999e930224a8a2650bb1fdf0bc | [
"Apache-2.0"
] | 254 | 2015-03-27T10:12:25.000Z | 2021-07-12T01:40:15.000Z | lib/mix/tasks/init.ex | MeneDev/espec | ec4b3d579c5192999e930224a8a2650bb1fdf0bc | [
"Apache-2.0"
] | 85 | 2015-04-02T10:25:19.000Z | 2021-01-30T21:30:43.000Z | defmodule Mix.Tasks.Espec.Init do
use Mix.Task
import Mix.Generator
@preferred_cli_env :test
@shortdoc "Create spec/spec_helper.exs"
@moduledoc """
Creates necessary files.
This tasks creates `spec/spec_helper.exs`
"""
@spec_folder "spec"
@spec_helper "spec_helper.exs"
@shared_spec_folder "sh... | 21.94 | 97 | 0.708295 |
9eb4a292ab1b757edee88b07bf7d5b3cb2f13ff8 | 2,317 | exs | Elixir | apps/artemis_web/test/artemis_web/browser/wiki_revision_page_test.exs | artemis-platform/artemis_dashboard | 5ab3f5ac4c5255478bbebf76f0e43b44992e3cab | [
"MIT"
] | 9 | 2019-08-19T19:56:34.000Z | 2022-03-22T17:56:38.000Z | apps/artemis_web/test/artemis_web/browser/wiki_revision_page_test.exs | chrislaskey/artemis_teams | 9930c3d9528e37b76f0525390e32b66eed7eadde | [
"MIT"
] | 7 | 2019-07-12T21:41:01.000Z | 2020-08-17T21:29:22.000Z | apps/artemis_web/test/artemis_web/browser/wiki_revision_page_test.exs | chrislaskey/artemis_teams | 9930c3d9528e37b76f0525390e32b66eed7eadde | [
"MIT"
] | 2 | 2019-07-05T22:51:47.000Z | 2019-08-19T19:56:37.000Z | defmodule ArtemisWeb.WikiRevisionPageTest do
use ArtemisWeb.ConnCase
use ExUnit.Case
use Hound.Helpers
import Artemis.Factories
import ArtemisWeb.BrowserHelpers
import ArtemisWeb.Router.Helpers
@moduletag :browser
@url wiki_page_url(ArtemisWeb.Endpoint, :index)
hound_session()
describe "authenti... | 23.17 | 86 | 0.676306 |
9eb4a4bfd46dd4a44cb73d87111f749ed738a727 | 1,901 | exs | Elixir | exercises/anagram/test/anagram_test.exs | filalex77/exercism-elixir | df6beeea3fe8b003a0f761aa3f02b66a8a5e83ff | [
"MIT"
] | null | null | null | exercises/anagram/test/anagram_test.exs | filalex77/exercism-elixir | df6beeea3fe8b003a0f761aa3f02b66a8a5e83ff | [
"MIT"
] | null | null | null | exercises/anagram/test/anagram_test.exs | filalex77/exercism-elixir | df6beeea3fe8b003a0f761aa3f02b66a8a5e83ff | [
"MIT"
] | null | null | null | defmodule AnagramTest do
use ExUnit.Case
# @tag :pending
test "no matches" do
matches = Anagram.match("diaper", ["hello", "world", "zombies", "pants"])
assert matches == []
end
@tag :pending
test "detect simple anagram" do
matches = Anagram.match("ant", ["tan", "stand", "at"])
assert match... | 27.157143 | 93 | 0.65071 |
9eb4aab3c26745b4f57511edd4473d3300cd181b | 12,235 | ex | Elixir | lib/grizzly/zwave/decoder.ex | jellybob/grizzly | 290bee04cb16acbb9dc996925f5c501697b7ac94 | [
"Apache-2.0"
] | null | null | null | lib/grizzly/zwave/decoder.ex | jellybob/grizzly | 290bee04cb16acbb9dc996925f5c501697b7ac94 | [
"Apache-2.0"
] | null | null | null | lib/grizzly/zwave/decoder.ex | jellybob/grizzly | 290bee04cb16acbb9dc996925f5c501697b7ac94 | [
"Apache-2.0"
] | null | null | null | defmodule Grizzly.ZWave.Decoder do
@moduledoc false
defmodule Generate do
@moduledoc false
alias Grizzly.ZWave.{Command, Commands, DecodeError}
@mappings [
# {command_class_byte, command_byte, command_module}
# Basic
{0x20, 0x01, Commands.BasicSet},
{0x20, 0x02, Commands.BasicG... | 43.080986 | 110 | 0.681079 |
9eb4b790b9b9256b16e0e2a579cd47e639b90908 | 1,839 | ex | Elixir | lib/working_with_multiple_processes_5/monitor.ex | mikan/elixir-practice | 624525605eb2324e0c55a4ddcb68388c0d2ecefc | [
"Apache-2.0"
] | null | null | null | lib/working_with_multiple_processes_5/monitor.ex | mikan/elixir-practice | 624525605eb2324e0c55a4ddcb68388c0d2ecefc | [
"Apache-2.0"
] | 1 | 2020-01-28T00:19:53.000Z | 2020-01-28T00:19:53.000Z | lib/working_with_multiple_processes_5/monitor.ex | mikan/elixir-practice | 624525605eb2324e0c55a4ddcb68388c0d2ecefc | [
"Apache-2.0"
] | null | null | null | defmodule WorkingWithMultipleProcesses5 do
import :timer, only: [ sleep: 1 ]
def sad_function_exit(back) do
send back, "message sent"
exit(:boom)
end
def sad_function_raise(back) do
send back, "message sent"
raise "boom"
end
def run_exit do
Process.flag(:trap_exit, true)
res = spawn... | 32.263158 | 122 | 0.693312 |
9eb4bb95ba148317487cb67f3e97ee7a2372009f | 674 | exs | Elixir | test/game/command/crash_test.exs | nomicflux/ex_venture | 3e87dc8802c24067256d99856198c814d0bae4d6 | [
"MIT"
] | null | null | null | test/game/command/crash_test.exs | nomicflux/ex_venture | 3e87dc8802c24067256d99856198c814d0bae4d6 | [
"MIT"
] | null | null | null | test/game/command/crash_test.exs | nomicflux/ex_venture | 3e87dc8802c24067256d99856198c814d0bae4d6 | [
"MIT"
] | null | null | null | defmodule Game.Command.CrashTest do
use ExVenture.CommandCase
alias Game.Command.Crash
doctest Crash
setup do
user = create_user(%{name: "user", password: "password", flags: ["admin"]})
%{state: %{socket: :socket, user: user, save: %{room_id: 10}}}
end
describe "crashing a room" do
test "sen... | 23.241379 | 79 | 0.624629 |
9eb4d490242c2069fd2a5f76a2ca9f67eb551145 | 778 | ex | Elixir | lib/yodlee/refreshinfo.ex | copia-wealth-studios/yodlee-elixir | f39ba0f32082e9b2116c2ba0fe7da8c6a100e5ad | [
"MIT"
] | 1 | 2019-11-04T09:56:02.000Z | 2019-11-04T09:56:02.000Z | lib/yodlee/refreshinfo.ex | copia-wealth-studios/yodlee-elixir | f39ba0f32082e9b2116c2ba0fe7da8c6a100e5ad | [
"MIT"
] | 2 | 2018-07-11T10:45:09.000Z | 2018-07-12T17:47:53.000Z | lib/yodlee/refreshinfo.ex | copia-wealth-studios/yodlee-elixir | f39ba0f32082e9b2116c2ba0fe7da8c6a100e5ad | [
"MIT"
] | 1 | 2021-07-19T18:20:27.000Z | 2021-07-19T18:20:27.000Z | defmodule Yodlee.Refreshinfo do
@moduledoc """
Yodlee data structure for provider account refresh information.
"""
defstruct status_code: nil, status_message: nil, next_refresh_scheduled: nil,
last_refreshed: nil, last_refresh_attempt: nil, action_required: nil,
additional_status: nil, ... | 40.947368 | 81 | 0.564267 |
9eb4d564ad78629dc855a1868b8da8ae93d82a8c | 826 | ex | Elixir | test/support/mocks.ex | eeng/blaine | d91d94034925d64632789925ef90a198c0a1d8ea | [
"MIT"
] | null | null | null | test/support/mocks.ex | eeng/blaine | d91d94034925d64632789925ef90a198c0a1d8ea | [
"MIT"
] | null | null | null | test/support/mocks.ex | eeng/blaine | d91d94034925d64632789925ef90a198c0a1d8ea | [
"MIT"
] | null | null | null | Mox.defmock(Blaine.Services.MockAccountsManager,
for: Blaine.Services.AccountsManager.Behaviour
)
Mox.defmock(Blaine.Services.MockUploadsService,
for: Blaine.Services.UploadsService.Behaviour
)
Mox.defmock(Blaine.Persistance.MockRepository, for: Blaine.Persistance.Repository)
Mox.defmock(Blaine.Google.MockAuthAP... | 30.592593 | 82 | 0.799031 |
9eb4de1873f9754a3430ba83a4a595a0c7344044 | 1,048 | ex | Elixir | lib/ecto/query/builder/lock.ex | timgestson/ecto | 1c1eb6d322db04cfa48a4fc81da1332e91adbc1f | [
"Apache-2.0"
] | 1 | 2019-05-07T15:05:52.000Z | 2019-05-07T15:05:52.000Z | lib/ecto/query/builder/lock.ex | timgestson/ecto | 1c1eb6d322db04cfa48a4fc81da1332e91adbc1f | [
"Apache-2.0"
] | null | null | null | lib/ecto/query/builder/lock.ex | timgestson/ecto | 1c1eb6d322db04cfa48a4fc81da1332e91adbc1f | [
"Apache-2.0"
] | null | null | null | defmodule Ecto.Query.Builder.Lock do
@moduledoc false
alias Ecto.Query.Builder
@doc """
Escapes the lock code.
iex> escape(quote do: "FOO")
"FOO"
"""
@spec escape(Macro.t) :: Macro.t | no_return
def escape(lock) when is_binary(lock), do: lock
def escape(other) do
Builder.error! "`#{... | 24.952381 | 81 | 0.655534 |
9eb50b7964f2f41edd97b38c3b8e378b5b286b90 | 270 | ex | Elixir | apps/api/lib/api/configuration.ex | omgnetwork/omg-childchain-v2 | 31cc9cf9e42718fc3b9bd6668f24a627cac80b4f | [
"Apache-2.0"
] | 4 | 2020-11-30T17:38:57.000Z | 2021-01-23T21:29:41.000Z | apps/api/lib/api/configuration.ex | omgnetwork/omg-childchain-v2 | 31cc9cf9e42718fc3b9bd6668f24a627cac80b4f | [
"Apache-2.0"
] | 24 | 2020-11-30T17:32:48.000Z | 2021-02-22T06:25:22.000Z | apps/api/lib/api/configuration.ex | omgnetwork/omg-childchain-v2 | 31cc9cf9e42718fc3b9bd6668f24a627cac80b4f | [
"Apache-2.0"
] | null | null | null | defmodule API.Configuration do
@moduledoc false
@app :api
@spec port() :: pos_integer()
def port() do
Application.get_env(@app, :port)
end
@spec cors_enabled?() :: bool()
def cors_enabled?() do
Application.get_env(@app, :cors_enabled)
end
end
| 16.875 | 44 | 0.662963 |
9eb55d053c4d0c92808fa47c84287a4b3c4b6fb7 | 1,365 | ex | Elixir | clients/elixir/generated/lib/cloud_manager_api/model/pipeline_execution.ex | shinesolutions/cloudmanager-api-clients | d73a25878f6cc57af954362ba8dccc90d54e6131 | [
"Apache-2.0"
] | 3 | 2020-06-23T05:31:52.000Z | 2020-11-26T05:34:57.000Z | clients/elixir/generated/lib/cloud_manager_api/model/pipeline_execution.ex | shinesolutions/cloudmanager-api-clients | d73a25878f6cc57af954362ba8dccc90d54e6131 | [
"Apache-2.0"
] | 2 | 2021-01-21T01:19:54.000Z | 2021-12-09T22:30:22.000Z | clients/elixir/generated/lib/cloud_manager_api/model/pipeline_execution.ex | shinesolutions/cloudmanager-api-clients | d73a25878f6cc57af954362ba8dccc90d54e6131 | [
"Apache-2.0"
] | 1 | 2020-11-18T11:48:13.000Z | 2020-11-18T11:48:13.000Z | # NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
# https://openapi-generator.tech
# Do not edit the class manually.
defmodule CloudManagerAPI.Model.PipelineExecution do
@moduledoc """
Wraps a pipeline execution
"""
@derive [Poison.Encoder]
defstruct [
:"id",
... | 26.764706 | 99 | 0.643956 |
9eb57e3a2652dd841746e803d67b86f0fe139d3c | 8,038 | ex | Elixir | lib/vintage_net/ip/dhcpd_config.ex | axelson/vintage_net | 68866ff223fa40e7ad6fd4d9fb2f7960cf51b1ca | [
"Apache-2.0"
] | 85 | 2019-05-09T14:54:38.000Z | 2022-02-08T16:52:04.000Z | lib/vintage_net/ip/dhcpd_config.ex | axelson/vintage_net | 68866ff223fa40e7ad6fd4d9fb2f7960cf51b1ca | [
"Apache-2.0"
] | 132 | 2019-05-09T15:57:59.000Z | 2022-02-28T16:31:22.000Z | lib/vintage_net/ip/dhcpd_config.ex | axelson/vintage_net | 68866ff223fa40e7ad6fd4d9fb2f7960cf51b1ca | [
"Apache-2.0"
] | 14 | 2019-07-08T19:18:23.000Z | 2022-02-08T16:52:05.000Z | defmodule VintageNet.IP.DhcpdConfig do
@moduledoc """
This is a helper module for VintageNet.Technology implementations that use
a DHCP server.
DHCP server parameters are:
* `:start` - Start of the lease block
* `:end` - End of the lease block
* `:max_leases` - The maximum number of leases
* `:decline... | 29.551471 | 109 | 0.657502 |
9eb58352d1bcd99004d7e46929f49d84e66c17c2 | 1,886 | ex | Elixir | clients/display_video/lib/google_api/display_video/v1/model/bulk_edit_partner_assigned_targeting_options_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/display_video/lib/google_api/display_video/v1/model/bulk_edit_partner_assigned_targeting_options_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/display_video/lib/google_api/display_video/v1/model/bulk_edit_partner_assigned_targeting_options_response.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... | 33.678571 | 246 | 0.76193 |
9eb5a644844974ada71d13b906941bc80b04ad5e | 757 | ex | Elixir | lib/ophion_ircv3.ex | ophion-project/ophion_ircv3 | 365f74bb430c1c29ef23c71b21c127f4550a0369 | [
"BSD-3-Clause"
] | null | null | null | lib/ophion_ircv3.ex | ophion-project/ophion_ircv3 | 365f74bb430c1c29ef23c71b21c127f4550a0369 | [
"BSD-3-Clause"
] | null | null | null | lib/ophion_ircv3.ex | ophion-project/ophion_ircv3 | 365f74bb430c1c29ef23c71b21c127f4550a0369 | [
"BSD-3-Clause"
] | null | null | null | defmodule Ophion.IRCv3 do
@moduledoc """
Documentation for `Ophion.IRCv3`.
"""
alias Ophion.IRCv3.Composer
alias Ophion.IRCv3.Message
alias Ophion.IRCv3.Parser
@doc """
Parse an IRCv3 frame into an `%Ophion.IRCv3.Message{}`.
"""
def parse(msg) do
with {:ok, %Message{} = data} <- Parser.parse(m... | 18.925 | 59 | 0.546896 |
9eb5bd10662dbe5438c329888ab5e85048c62fa5 | 7,621 | exs | Elixir | test/skeleton/elasticsearch_test.exs | gVirtu/skeleton_elasticsearch | b86d0329c28a06fa7aa736c233ac19d828c72b71 | [
"MIT"
] | null | null | null | test/skeleton/elasticsearch_test.exs | gVirtu/skeleton_elasticsearch | b86d0329c28a06fa7aa736c233ac19d828c72b71 | [
"MIT"
] | null | null | null | test/skeleton/elasticsearch_test.exs | gVirtu/skeleton_elasticsearch | b86d0329c28a06fa7aa736c233ac19d828c72b71 | [
"MIT"
] | null | null | null | defmodule Skeleton.ElasticsearchTest do
use Skeleton.Query.TestCase
import Skeleton.App.Elasticsearch
alias Skeleton.App.{User, UserIndex}
describe "index" do
setup ctx do
data = %{
settings: %{index: %{number_of_shards: 1, number_of_replicas: 0}},
mappings: %{properties: %{name: %{ty... | 30.484 | 98 | 0.559507 |
9eb61d59ee4be2ef3372b50de7469dea9dd2c631 | 4,950 | ex | Elixir | lib/google/rpc/error_details.pb.ex | coingaming/grpc | 33b8b3ceec007ae530a33b49a7b302a1ee356b05 | [
"Apache-2.0"
] | null | null | null | lib/google/rpc/error_details.pb.ex | coingaming/grpc | 33b8b3ceec007ae530a33b49a7b302a1ee356b05 | [
"Apache-2.0"
] | null | null | null | lib/google/rpc/error_details.pb.ex | coingaming/grpc | 33b8b3ceec007ae530a33b49a7b302a1ee356b05 | [
"Apache-2.0"
] | 1 | 2022-01-19T22:21:04.000Z | 2022-01-19T22:21:04.000Z | defmodule Google.Rpc.RetryInfo do
@moduledoc false
use Protobuf, syntax: :proto3
@type t :: %__MODULE__{
retry_delay: Google.Protobuf.Duration.t() | nil
}
defstruct [:retry_delay]
field :retry_delay, 1, type: Google.Protobuf.Duration
end
defmodule Google.Rpc.DebugInfo do
@moduledoc fal... | 22.197309 | 89 | 0.650101 |
9eb61ee78c72c899e8cabe77a11c4b2347c8c1bc | 2,527 | exs | Elixir | config/dev.exs | runhyve/webapp | 434b074f98c1ebac657b56062c1c1a54e683dea1 | [
"BSD-2-Clause"
] | 12 | 2019-07-02T14:30:06.000Z | 2022-03-12T08:22:18.000Z | config/dev.exs | runhyve/webapp | 434b074f98c1ebac657b56062c1c1a54e683dea1 | [
"BSD-2-Clause"
] | 9 | 2020-03-16T20:10:50.000Z | 2021-06-17T17:45:44.000Z | config/dev.exs | runhyve/webapp | 434b074f98c1ebac657b56062c1c1a54e683dea1 | [
"BSD-2-Clause"
] | 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 webpack to recompile .js and .css sources.
config :webapp, WebappWeb.Endpoint,
http: [port: 4000],... | 29.045977 | 77 | 0.688959 |
9eb63bab7655068b9ecdfa822fd3305bf5ec6bf1 | 1,452 | exs | Elixir | benchs/decompress_bench.exs | sezaru/r_zstd | a4b308b37df2f5212a5ed4dd077b3ecdebbd9726 | [
"MIT"
] | 2 | 2021-04-28T17:20:44.000Z | 2021-12-21T08:18:41.000Z | benchs/decompress_bench.exs | sezaru/rzstd | a4b308b37df2f5212a5ed4dd077b3ecdebbd9726 | [
"MIT"
] | null | null | null | benchs/decompress_bench.exs | sezaru/rzstd | a4b308b37df2f5212a5ed4dd077b3ecdebbd9726 | [
"MIT"
] | 1 | 2021-11-12T16:24:39.000Z | 2021-11-12T16:24:39.000Z | data = """
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore ... | 51.857143 | 445 | 0.764463 |
9eb645ae416404d3335c2ee700bd79a3509db89f | 3,010 | exs | Elixir | apps/robby_web/mix.exs | puppetlabs/openrobby | a4b70939ee1b878d44cb09d757b7f72e7109ac5d | [
"Apache-2.0"
] | 3 | 2021-04-16T21:54:55.000Z | 2021-04-30T22:15:41.000Z | apps/robby_web/mix.exs | puppetlabs/openrobby | a4b70939ee1b878d44cb09d757b7f72e7109ac5d | [
"Apache-2.0"
] | 1 | 2021-06-29T15:54:19.000Z | 2021-06-29T15:54:19.000Z | apps/robby_web/mix.exs | puppetlabs/openrobby | a4b70939ee1b878d44cb09d757b7f72e7109ac5d | [
"Apache-2.0"
] | 2 | 2021-04-16T22:23:16.000Z | 2021-05-26T15:52:55.000Z | defmodule RobbyWeb.Mixfile do
use Mix.Project
def project do
[
app: :robby_web,
version: get_version(),
deps_path: "../../deps",
lockfile: "../../mix.lock",
elixir: "~> 1.1",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix, :gettext] ++ Mix.compilers(),
... | 24.876033 | 69 | 0.495681 |
9eb67a46cf07f1c44c41321d28e688ae0b564850 | 2,722 | ex | Elixir | clients/document_ai/lib/google_api/document_ai/v1beta3/model/google_cloud_documentai_v1beta3_document_page_anchor_page_ref.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/document_ai/lib/google_api/document_ai/v1beta3/model/google_cloud_documentai_v1beta3_document_page_anchor_page_ref.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/document_ai/lib/google_api/document_ai/v1beta3/model/google_cloud_documentai_v1beta3_document_page_anchor_page_ref.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... | 40.029412 | 205 | 0.728508 |
9eb69f897ba42ee38b40e94ac0ff046264cef703 | 1,960 | ex | Elixir | apps/omg_eth/lib/omg_eth/encoding.ex | kendricktan/elixir-omg | 834c103fd5c4b9e063c1d32b9b4e5728abb64009 | [
"Apache-2.0"
] | null | null | null | apps/omg_eth/lib/omg_eth/encoding.ex | kendricktan/elixir-omg | 834c103fd5c4b9e063c1d32b9b4e5728abb64009 | [
"Apache-2.0"
] | null | null | null | apps/omg_eth/lib/omg_eth/encoding.ex | kendricktan/elixir-omg | 834c103fd5c4b9e063c1d32b9b4e5728abb64009 | [
"Apache-2.0"
] | 2 | 2020-06-07T11:14:54.000Z | 2020-08-02T07:36:32.000Z | # Copyright 2018 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... | 36.296296 | 108 | 0.715306 |
9eb7001cbe9a0481615982a3b9109bf7b7d06900 | 1,332 | exs | Elixir | apps/merkle_patricia_tree/test/merkle_patricia_tree_test.exs | atoulme/mana | cff3fd96c23feaaeb9fe32df3c0d35ee6dc548a5 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | null | null | null | apps/merkle_patricia_tree/test/merkle_patricia_tree_test.exs | atoulme/mana | cff3fd96c23feaaeb9fe32df3c0d35ee6dc548a5 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | null | null | null | apps/merkle_patricia_tree/test/merkle_patricia_tree_test.exs | atoulme/mana | cff3fd96c23feaaeb9fe32df3c0d35ee6dc548a5 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | null | null | null | defmodule MerklePatriciaTreeTest do
use ExUnit.Case
alias ExthCrypto.Math
alias MerklePatriciaTree.Trie
@ethereum_common_tests_path "../../ethereum_common_tests"
@passing_tests %{
anyorder: :all,
test: :all
}
test "Ethereum Common Tests" do
for {test_type, test_group} <- @passing_tests do
... | 25.615385 | 86 | 0.600601 |
9eb7063af35b49079d391be7ba1ea6baa5e62eec | 1,266 | ex | Elixir | lib/rumbl/info_sys/wolfram.ex | GArmane/rumbl | 6dbc0c4515601b7fdfe2bed54ef39abfcd8bcb5e | [
"MIT"
] | null | null | null | lib/rumbl/info_sys/wolfram.ex | GArmane/rumbl | 6dbc0c4515601b7fdfe2bed54ef39abfcd8bcb5e | [
"MIT"
] | 2 | 2021-03-09T19:04:16.000Z | 2021-05-10T16:20:10.000Z | lib/rumbl/info_sys/wolfram.ex | GArmane/rumbl | 6dbc0c4515601b7fdfe2bed54ef39abfcd8bcb5e | [
"MIT"
] | 1 | 2020-07-17T14:48:52.000Z | 2020-07-17T14:48:52.000Z | defmodule Rumbl.InfoSys.Wolfram do
import SweetXml
alias Rumbl.InfoSys.Result
defp send_results(nil, query_ref, owner) do
send(owner, {:results, query_ref, []})
end
defp send_results(answer, query_ref, owner) do
results = [
%Result{
backend: "wolfram",
score: 95,
text:... | 26.375 | 73 | 0.605845 |
9eb7198d32545021aa02a72095a0921b02588600 | 196 | exs | Elixir | priv/repo/migrations/20180405122434_create_teachers.exs | nliechti/termDirectory | 267b3025c14e26575c7a9483692e94a7bf29e5fe | [
"MIT"
] | 1 | 2019-03-15T15:40:24.000Z | 2019-03-15T15:40:24.000Z | priv/repo/migrations/20180405122434_create_teachers.exs | nliechti/termDirectory | 267b3025c14e26575c7a9483692e94a7bf29e5fe | [
"MIT"
] | null | null | null | priv/repo/migrations/20180405122434_create_teachers.exs | nliechti/termDirectory | 267b3025c14e26575c7a9483692e94a7bf29e5fe | [
"MIT"
] | null | null | null | defmodule TermDirectory.Repo.Migrations.CreateTeachers do
use Ecto.Migration
def change do
create table(:teachers) do
add :firstName, :string
timestamps()
end
end
end
| 15.076923 | 57 | 0.69898 |
9eb733d06f50aa8e0747e75667dba2b510b5e494 | 6,434 | ex | Elixir | lib/exdis/database.ex | g-andrade/exdis | 6cb6775b16a237718f10dc5177d9369279e2d528 | [
"MIT"
] | 2 | 2020-03-20T17:25:59.000Z | 2020-03-22T14:17:30.000Z | lib/exdis/database.ex | g-andrade/exdis | 6cb6775b16a237718f10dc5177d9369279e2d528 | [
"MIT"
] | null | null | null | lib/exdis/database.ex | g-andrade/exdis | 6cb6775b16a237718f10dc5177d9369279e2d528 | [
"MIT"
] | null | null | null | defmodule Exdis.Database do
require Logger
require Record
## ------------------------------------------------------------------
## Macro-like Attribute Definitions
## ------------------------------------------------------------------
@server __MODULE__
## -----------------------------------------------... | 35.744444 | 107 | 0.58253 |
9eb73c3585db28d0840743e6299e2546ae976a6b | 687 | exs | Elixir | exercise_1.43.exs | bschmeck/sicp-elixir | 4e6f959f506d0cb4e2692177cbdad1c87779cf7d | [
"MIT"
] | 2 | 2019-08-26T13:17:27.000Z | 2020-09-24T13:16:07.000Z | exercise_1.43.exs | bschmeck/sicp-elixir | 4e6f959f506d0cb4e2692177cbdad1c87779cf7d | [
"MIT"
] | null | null | null | exercise_1.43.exs | bschmeck/sicp-elixir | 4e6f959f506d0cb4e2692177cbdad1c87779cf7d | [
"MIT"
] | null | null | null | defmodule Composition do
def of(f, g), do: fn x -> f.(g.(x)) end
end
defmodule Repeat do
def n_times(f, 1), do: f
def n_times(f, n) when rem(n, 2) == 0 do
g = n_times(f, div(n, 2))
Composition.of(g, g)
end
def n_times(f, n), do: fn x -> f.(n_times(f, n - 1).(x)) end
end
ExUnit.start
defmodule Repea... | 22.16129 | 62 | 0.60262 |
9eb755693f9807ac5e9fd45e45ac2f48c233ca23 | 1,584 | ex | Elixir | clients/storage/lib/google_api/storage/v1/model/notifications.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/storage/lib/google_api/storage/v1/model/notifications.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/storage/lib/google_api/storage/v1/model/notifications.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... | 32.326531 | 133 | 0.748106 |
9eb75a83fc23778d5d5e12f14e53ac7759b9f7e5 | 11,144 | ex | Elixir | clients/sql_admin/lib/google_api/sql_admin/v1/model/database_instance.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/sql_admin/lib/google_api/sql_admin/v1/model/database_instance.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/sql_admin/lib/google_api/sql_admin/v1/model/database_instance.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... | 71.896774 | 375 | 0.702889 |
9eb770c060bac9d7660ebad8799b3c132fe3f9f9 | 642 | ex | Elixir | implementations/elixir/ockam/ockam/lib/ockam/examples/messaging/filter.ex | jared-s/ockam | a1d482550aeafbc2a6040a5efb3f5effc9974d51 | [
"Apache-2.0"
] | null | null | null | implementations/elixir/ockam/ockam/lib/ockam/examples/messaging/filter.ex | jared-s/ockam | a1d482550aeafbc2a6040a5efb3f5effc9974d51 | [
"Apache-2.0"
] | 119 | 2021-07-20T15:12:29.000Z | 2022-03-01T10:31:53.000Z | implementations/elixir/ockam/ockam/lib/ockam/examples/messaging/filter.ex | jared-s/ockam | a1d482550aeafbc2a6040a5efb3f5effc9974d51 | [
"Apache-2.0"
] | null | null | null | defmodule Ockam.Examples.Messaging.Filter do
@moduledoc """
Filter worker
Randomly drops 5% of messages, forwards the rest to onward_route
Adds itself to return_route
"""
use Ockam.Worker
alias Ockam.Message
@impl true
def handle_message(message, state) do
if :rand.uniform(100) > 5 do
fo... | 20.0625 | 66 | 0.688474 |
9eb770e1fc6a7d573747e729e83de53dc24349c4 | 5,271 | ex | Elixir | lib/aws/generated/transcribe_streaming.ex | salemove/aws-elixir | debdf6482158a71a57636ac664c911e682093395 | [
"Apache-2.0"
] | null | null | null | lib/aws/generated/transcribe_streaming.ex | salemove/aws-elixir | debdf6482158a71a57636ac664c911e682093395 | [
"Apache-2.0"
] | null | null | null | lib/aws/generated/transcribe_streaming.ex | salemove/aws-elixir | debdf6482158a71a57636ac664c911e682093395 | [
"Apache-2.0"
] | null | null | null | # WARNING: DO NOT EDIT, AUTO-GENERATED CODE!
# See https://github.com/aws-beam/aws-codegen for more details.
defmodule AWS.TranscribeStreaming do
@moduledoc """
Operations and objects for transcribing streaming speech to text.
"""
alias AWS.Client
alias AWS.Request
def metadata do
%AWS.ServiceMetadat... | 34.45098 | 93 | 0.642762 |
9eb792b6dfdfde10bb3fed25a56ec4c99293f05b | 916 | ex | Elixir | lib/mix/tasks/google_apis.convert.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | null | null | null | lib/mix/tasks/google_apis.convert.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | null | null | null | lib/mix/tasks/google_apis.convert.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | 31.586207 | 74 | 0.744541 |
9eb7a90f6e67c99b498ca6e20341486fd7dfa8f9 | 1,021 | exs | Elixir | rumbl/config/config.exs | arilsonsouza/programming_phoenix | 71a2a44e8cf84b6b133422899324363a09ccc07c | [
"MIT"
] | null | null | null | rumbl/config/config.exs | arilsonsouza/programming_phoenix | 71a2a44e8cf84b6b133422899324363a09ccc07c | [
"MIT"
] | null | null | null | rumbl/config/config.exs | arilsonsouza/programming_phoenix | 71a2a44e8cf84b6b133422899324363a09ccc07c | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
#
# This configuration file is loaded before any dependency and
# is restricted to this project.
# General application configuration
use Mix.Config
config :rumbl,
ecto_repos: [Rumbl.Repo]
# Con... | 31.90625 | 86 | 0.766895 |
9eb7ac5a0abc3e7a95d9ca681a1d1a79faf42f2f | 2,479 | ex | Elixir | clients/cloud_error_reporting/lib/google_api/cloud_error_reporting/v1beta1/model/error_event.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/cloud_error_reporting/lib/google_api/cloud_error_reporting/v1beta1/model/error_event.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/cloud_error_reporting/lib/google_api/cloud_error_reporting/v1beta1/model/error_event.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... | 44.267857 | 236 | 0.742638 |
9eb7b22b02d2f84c4493083ab0eef294c13c2a9a | 3,129 | ex | Elixir | lib/tz_world/backend/ets_with_index_cache.ex | LostKobrakai/tz_world | 65e138301adc0c9e6d6135897d2607ef6c361bca | [
"MIT"
] | null | null | null | lib/tz_world/backend/ets_with_index_cache.ex | LostKobrakai/tz_world | 65e138301adc0c9e6d6135897d2607ef6c361bca | [
"MIT"
] | null | null | null | lib/tz_world/backend/ets_with_index_cache.ex | LostKobrakai/tz_world | 65e138301adc0c9e6d6135897d2607ef6c361bca | [
"MIT"
] | null | null | null | defmodule TzWorld.Backend.EtsWithIndexCache do
@moduledoc false
@behaviour TzWorld.Backend
use GenServer
alias Geo.Point
@timeout 10_000
@tz_world_version :tz_world_version
@doc false
@options [:named_table, :compressed, read_concurrency: true]
def start_link(options \\ @options) do
options =... | 26.294118 | 83 | 0.639821 |
9eb7bdddc9c27cb1c58e9adf1bb7111c0abd5810 | 3,237 | ex | Elixir | lib/azurex/authorization/shared_key.ex | Zinoex/azurex | ba6e56434d0ff6f5cda7332718fd3080b800cc4b | [
"MIT"
] | null | null | null | lib/azurex/authorization/shared_key.ex | Zinoex/azurex | ba6e56434d0ff6f5cda7332718fd3080b800cc4b | [
"MIT"
] | 1 | 2021-05-05T23:09:55.000Z | 2021-05-05T23:09:55.000Z | lib/azurex/authorization/shared_key.ex | workplacearcade/azurex | 9e9b42870db4c2fe28893b604a178e0ce1e8fdd7 | [
"MIT"
] | null | null | null | defmodule Azurex.Authorization.SharedKey do
@moduledoc """
Implements Azure Rest Api Authorization method.
It is based on: https://docs.microsoft.com/en-us/rest/api/storageservices/authorize-with-shared-key
As defined in 26 November 2019
"""
@spec sign(HTTPoison.Request.t(), keyword) :: HTTPoison.Request.... | 26.532787 | 101 | 0.591597 |
9eb7bff0489ec391c8151a2040ebc23026177f12 | 1,709 | ex | Elixir | clients/content/lib/google_api/content/v21/model/free_listings_program_status_review_ineligibility_reason_details.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v21/model/free_listings_program_status_review_ineligibility_reason_details.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v21/model/free_listings_program_status_review_ineligibility_reason_details.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.865385 | 165 | 0.761264 |
9eb7c1cdd476296be79b91e03e602028dd23eebb | 788 | ex | Elixir | lib/ex_prometheus_io.ex | kennyballou/ex_prometheus_io | da2a3bf02ee083ba1caef3673ebef0e708b9b9ee | [
"Apache-2.0"
] | 2 | 2016-03-16T12:47:48.000Z | 2016-03-16T19:16:04.000Z | lib/ex_prometheus_io.ex | kennyballou/ex_prometheus_io | da2a3bf02ee083ba1caef3673ebef0e708b9b9ee | [
"Apache-2.0"
] | null | null | null | lib/ex_prometheus_io.ex | kennyballou/ex_prometheus_io | da2a3bf02ee083ba1caef3673ebef0e708b9b9ee | [
"Apache-2.0"
] | null | null | null | defmodule ExPrometheusIo do
use Application
def start(_, _) do
ExPrometheusIo.Supervisor.start_link
end
def query(query, _opts \\ []) do
query_opts = [query]
spawn_query(:query, query_opts)
end
def range(query, start_ts, end_ts, step, _opts \\ []) do
query_opts = {query, start_ts, end_ts,... | 23.176471 | 59 | 0.666244 |
9eb7f7853b47762b399853873416b4456631502c | 150 | ex | Elixir | test/support/models/channel/sms_result.ex | daveli/polymorphic_embed | 8f6c8180a682f26aec98c6e9cbd84c20b6895be9 | [
"Apache-2.0"
] | null | null | null | test/support/models/channel/sms_result.ex | daveli/polymorphic_embed | 8f6c8180a682f26aec98c6e9cbd84c20b6895be9 | [
"Apache-2.0"
] | null | null | null | test/support/models/channel/sms_result.ex | daveli/polymorphic_embed | 8f6c8180a682f26aec98c6e9cbd84c20b6895be9 | [
"Apache-2.0"
] | 1 | 2020-11-26T01:50:50.000Z | 2020-11-26T01:50:50.000Z | defmodule PolymorphicEmbed.Channel.SMSResult do
use Ecto.Schema
@primary_key false
embedded_schema do
field(:success, :boolean)
end
end
| 15 | 47 | 0.76 |
9eb813544ddf5fed3cc9ea90536dcf8429c4dafc | 8,734 | ex | Elixir | lib/livebook_web/helpers.ex | Fudoshiki/livebook | 0b30fd02d9a50b84873725f3e05974d62fee398f | [
"Apache-2.0"
] | null | null | null | lib/livebook_web/helpers.ex | Fudoshiki/livebook | 0b30fd02d9a50b84873725f3e05974d62fee398f | [
"Apache-2.0"
] | null | null | null | lib/livebook_web/helpers.ex | Fudoshiki/livebook | 0b30fd02d9a50b84873725f3e05974d62fee398f | [
"Apache-2.0"
] | null | null | null | defmodule LivebookWeb.Helpers do
use Phoenix.Component
alias Phoenix.LiveView.JS
alias LivebookWeb.Router.Helpers, as: Routes
alias Livebook.FileSystem
@doc """
Wraps the given content in a modal dialog.
When closed, the modal redirects to the given `:return_to` URL.
## Example
<.live_modal... | 26.95679 | 123 | 0.592283 |
9eb818ca10f3dfa9f7406c07cf782575e82fcdfa | 703 | ex | Elixir | lib/conduit/plug/created_by.ex | peek-travel/conduit | f37b96513769bdf70c89eebd77bb03023d248158 | [
"MIT"
] | 119 | 2016-11-21T13:19:22.000Z | 2021-11-07T17:29:05.000Z | lib/conduit/plug/created_by.ex | peek-travel/conduit | f37b96513769bdf70c89eebd77bb03023d248158 | [
"MIT"
] | 104 | 2018-02-02T20:42:46.000Z | 2021-08-03T05:36:09.000Z | lib/conduit/plug/created_by.ex | peek-travel/conduit | f37b96513769bdf70c89eebd77bb03023d248158 | [
"MIT"
] | 21 | 2018-08-03T02:38:21.000Z | 2022-03-16T18:26:58.000Z | defmodule Conduit.Plug.CreatedBy do
use Conduit.Plug.Builder
@moduledoc """
Assigns name of app to created_by of the message.
## Examples
iex> defmodule MyPipeline do
iex> use Conduit.Plug.Builder
iex>
iex> plug Conduit.Plug.CreatedBy, app: "myapp"
iex> end
iex> messag... | 17.575 | 55 | 0.603129 |
9eb81b79e35d2e65d0c8d7acecad2a56ffb13d05 | 3,569 | ex | Elixir | lib/elixir/lib/map_set.ex | pap/elixir | c803afe90c766663823c74397fb23ed40ec52c5b | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/map_set.ex | pap/elixir | c803afe90c766663823c74397fb23ed40ec52c5b | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/map_set.ex | pap/elixir | c803afe90c766663823c74397fb23ed40ec52c5b | [
"Apache-2.0"
] | null | null | null | defmodule MapSet do
@moduledoc """
A set store.
The `MapSet` is represented internally as a struct, therefore
`%MapSet{}` can be used whenever there is a need to match
on any `MapSet`. Note though the struct fields are private and
must not be accessed directly. Instead, use the functions on this
or in th... | 23.793333 | 79 | 0.579994 |
9eb82494d459c51ca2570670337d7a032bc28c05 | 831 | exs | Elixir | test/gcs_signed_url/iso_date_time_test.exs | code-supply/gcs_signed_url | e3e72b8b11e80c47899713189f03d94e28b2a831 | [
"MIT"
] | 16 | 2019-07-25T16:05:20.000Z | 2022-02-09T06:24:55.000Z | test/gcs_signed_url/iso_date_time_test.exs | code-supply/gcs_signed_url | e3e72b8b11e80c47899713189f03d94e28b2a831 | [
"MIT"
] | 53 | 2020-04-21T16:35:49.000Z | 2022-03-28T13:04:07.000Z | test/gcs_signed_url/iso_date_time_test.exs | code-supply/gcs_signed_url | e3e72b8b11e80c47899713189f03d94e28b2a831 | [
"MIT"
] | 10 | 2020-04-21T12:19:47.000Z | 2021-11-19T12:00:06.000Z | defmodule GcsSignedUrl.ISODateTimeTest do
use ExUnit.Case
alias GcsSignedUrl.ISODateTime, as: MUT
describe "generate/0" do
test "returns a DateTime Struct" do
iso_date_time = MUT.generate()
assert MUT == iso_date_time.__struct__
end
end
describe "generate/1" do
test "returns correct ... | 23.083333 | 57 | 0.614922 |
9eb85d91f6808df7cfe516f094f27cb86e72540d | 1,484 | ex | Elixir | node_modules/@snyk/snyk-hex-plugin/elixirsrc/lib/mix_project.ex | muhamarief/cobafrappe | 9f4c787338873e774d73779a8f1cee168daa2b62 | [
"MIT"
] | null | null | null | node_modules/@snyk/snyk-hex-plugin/elixirsrc/lib/mix_project.ex | muhamarief/cobafrappe | 9f4c787338873e774d73779a8f1cee168daa2b62 | [
"MIT"
] | null | null | null | node_modules/@snyk/snyk-hex-plugin/elixirsrc/lib/mix_project.ex | muhamarief/cobafrappe | 9f4c787338873e774d73779a8f1cee168daa2b62 | [
"MIT"
] | null | null | null | import Snyk.MixProject.Common
defmodule Snyk.MixProject.Mix.Project do
def load_mix_project(""), do: error("Please provide a valid path for the project")
def load_mix_project(path) do
manifest = load_manifest(path)
apps = get_apps(manifest[:apps_path], path)
lock_file_name = get_lock_file_name(manife... | 28 | 103 | 0.677224 |
9eb85e92cf07bc0bad7f4b30da83e7a3024beab7 | 1,407 | exs | Elixir | test/still/compiler/incremental/node_test.exs | fmterrorf/still | fd316bcc38cdf618444dbd36ec9d259fe5256a3e | [
"0BSD"
] | null | null | null | test/still/compiler/incremental/node_test.exs | fmterrorf/still | fd316bcc38cdf618444dbd36ec9d259fe5256a3e | [
"0BSD"
] | null | null | null | test/still/compiler/incremental/node_test.exs | fmterrorf/still | fd316bcc38cdf618444dbd36ec9d259fe5256a3e | [
"0BSD"
] | null | null | null | defmodule Still.Compiler.Incremental.NodeTest do
use Still.Case, async: false
alias Still.Compiler.Incremental.{Registry, Node}
alias Still.Preprocessor.{Frontmatter, Slime, AddLayout, AddContent, Save, OutputPath}
@preprocessors [
AddContent,
Frontmatter,
Slime,
AddLayout,
OutputPath,
... | 25.125 | 88 | 0.675195 |
9eb87cd24a391f52a69417621c3d1eac99070d5e | 2,332 | ex | Elixir | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v2beta1/model/absolute_date_range.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v2beta1/model/absolute_date_range.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v2beta1/model/absolute_date_range.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... | 46.64 | 300 | 0.754288 |
9eb90072b7eba14735a454dcf84a7da565248140 | 1,918 | exs | Elixir | test/conduit/blog/aggregates/comment_test.exs | rudyyazdi/conduit | 8defa60962482fb81f5093ea5d58b71a160db3c4 | [
"MIT"
] | null | null | null | test/conduit/blog/aggregates/comment_test.exs | rudyyazdi/conduit | 8defa60962482fb81f5093ea5d58b71a160db3c4 | [
"MIT"
] | 2 | 2022-01-15T02:09:30.000Z | 2022-01-22T10:18:43.000Z | test/conduit/blog/aggregates/comment_test.exs | rudyyazdi/conduit | 8defa60962482fb81f5093ea5d58b71a160db3c4 | [
"MIT"
] | null | null | null | defmodule Conduit.Blog.CommentTest do
use Conduit.AggregateCase, aggregate: Conduit.Blog.Aggregates.Comment
alias Conduit.Blog.Commands.{
DeleteComment,
}
alias Conduit.Blog.Events.{
ArticleCommented,
CommentDeleted,
}
describe "comment on article" do
@tag :unit
test "should succeed w... | 29.96875 | 131 | 0.67414 |
9eb96743038fbbe2f655871bd6d0f1347ba49fdc | 214 | ex | Elixir | lib/retrospectivex_web/channels/user_socket.ex | dreamingechoes/retrospectivex | cad0df6cfde5376121d841f4a8b36861b6ec5d45 | [
"MIT"
] | 5 | 2018-06-27T17:51:51.000Z | 2020-10-05T09:59:04.000Z | lib/retrospectivex_web/channels/user_socket.ex | dreamingechoes/retrospectivex | cad0df6cfde5376121d841f4a8b36861b6ec5d45 | [
"MIT"
] | 1 | 2018-10-08T11:33:12.000Z | 2018-10-08T11:33:12.000Z | lib/retrospectivex_web/channels/user_socket.ex | dreamingechoes/retrospectivex | cad0df6cfde5376121d841f4a8b36861b6ec5d45 | [
"MIT"
] | 2 | 2018-10-08T11:31:55.000Z | 2020-10-05T09:59:05.000Z | defmodule RetrospectivexWeb.UserSocket do
use Phoenix.Socket
## Channels
channel("frankt", RetrospectivexWeb.FranktChannel)
def connect(_params, socket), do: {:ok, socket}
def id(_socket), do: nil
end
| 19.454545 | 52 | 0.738318 |
9eb9b77a1f598328d493a65c2a043d190b0405dd | 1,394 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/http_health_check.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/http_health_check.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/http_health_check.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... | 28.44898 | 132 | 0.718077 |
9eb9c8eac3e5515611515c4fa0d42315925d6d72 | 1,567 | ex | Elixir | clients/manufacturers/lib/google_api/manufacturers/v1/model/destination_status.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/manufacturers/lib/google_api/manufacturers/v1/model/destination_status.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/manufacturers/lib/google_api/manufacturers/v1/model/destination_status.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... | 31.34 | 89 | 0.723038 |
9eb9ca78d34a0acb661be1a793efc0ab2b9167bf | 1,435 | ex | Elixir | lib/packet/utils.ex | qwexvf/McProtocol | a9e243e2d6de7b51e049881c8ea8f12bff94feb1 | [
"MIT"
] | 21 | 2016-04-23T03:54:33.000Z | 2021-07-08T12:03:44.000Z | lib/packet/utils.ex | qwexvf/McProtocol | a9e243e2d6de7b51e049881c8ea8f12bff94feb1 | [
"MIT"
] | 2 | 2016-04-06T07:01:18.000Z | 2017-04-15T11:09:23.000Z | lib/packet/utils.ex | hansihe/elixir_mc_protocol | 4b3011338af573c6f583f541c410fb23574f4c10 | [
"MIT"
] | 9 | 2016-04-09T21:05:48.000Z | 2021-07-27T12:42:49.000Z | defmodule McProtocol.Packet.Utils do
@moduledoc false
def state_name_to_ident("play"), do: :Play
def state_name_to_ident("handshaking"), do: :Handshake
def state_name_to_ident("status"), do: :Status
def state_name_to_ident("login"), do: :Login
def direction_name_to_ident("toClient"), do: :Server
def dir... | 26.090909 | 89 | 0.626481 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.