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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ab68a47a262a8b3caae26b4081d35e4b9fb0609f | 1,737 | ex | Elixir | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_cx_v3_fulfillment_set_parameter_action.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_cx_v3_fulfillment_set_parameter_action.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_cx_v3_fulfillment_set_parameter_action.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 31.581818 | 118 | 0.735751 |
ab68f08d93f61dd6fa6facea80255df25348e84b | 305 | exs | Elixir | apps/snitch_core/priv/repo/migrations/20180314173742_alter_user_password_hash_field.exs | Acrecio/avia | 54d264fc179b5b5f17d174854bdca063e1d935e9 | [
"MIT"
] | 456 | 2018-09-20T02:40:59.000Z | 2022-03-07T08:53:48.000Z | apps/snitch_core/priv/repo/migrations/20180314173742_alter_user_password_hash_field.exs | Acrecio/avia | 54d264fc179b5b5f17d174854bdca063e1d935e9 | [
"MIT"
] | 273 | 2018-09-19T06:43:43.000Z | 2021-08-07T12:58:26.000Z | apps/snitch_core/priv/repo/migrations/20180314173742_alter_user_password_hash_field.exs | Acrecio/avia | 54d264fc179b5b5f17d174854bdca063e1d935e9 | [
"MIT"
] | 122 | 2018-09-26T16:32:46.000Z | 2022-03-13T11:44:19.000Z | defmodule Snitch.Repo.Migrations.AlterUserPasswordHashField do
use Ecto.Migration
def change do
alter table(:snitch_users) do
modify(:password_hash, :string, null: false)
end
end
def down do
alter table(:snitch_users) do
modify(:password_hash, :string)
end
end
end
| 19.0625 | 62 | 0.704918 |
ab692cefa925c65c25ae009afdfa29e5793630b4 | 411 | exs | Elixir | test/erlef_web/controllers/event_controller_test.exs | zacky1972/website | b0638572bf0a7a18882c4b8ed6d561dcfa61475d | [
"Apache-2.0"
] | null | null | null | test/erlef_web/controllers/event_controller_test.exs | zacky1972/website | b0638572bf0a7a18882c4b8ed6d561dcfa61475d | [
"Apache-2.0"
] | null | null | null | test/erlef_web/controllers/event_controller_test.exs | zacky1972/website | b0638572bf0a7a18882c4b8ed6d561dcfa61475d | [
"Apache-2.0"
] | null | null | null | defmodule ErlefWeb.EventControllerTest do
use ErlefWeb.ConnCase
test "GET /events", %{conn: conn} do
conn = get(conn, Routes.event_path(conn, :index))
assert html_response(conn, 200) =~ "id=\"calendar\""
end
test "GET /events/:id", %{conn: conn} do
conn = get(conn, Routes.event_path(conn, :show, "... | 29.357143 | 76 | 0.673966 |
ab693a783d67376aa98f5e24b1d13063282a68b9 | 1,560 | exs | Elixir | src/dguweb/test/controllers/publisher_controller_test.exs | datagovuk/dgu2 | 3e24bdf27b30c22791efc19029ead05488c8f571 | [
"MIT"
] | 2 | 2016-08-09T16:46:52.000Z | 2016-08-09T16:46:59.000Z | src/dguweb/test/controllers/publisher_controller_test.exs | datagovuk/dgu2 | 3e24bdf27b30c22791efc19029ead05488c8f571 | [
"MIT"
] | 48 | 2016-07-14T15:12:41.000Z | 2016-09-27T16:19:54.000Z | src/dguweb/test/controllers/publisher_controller_test.exs | datagovuk/dgu2 | 3e24bdf27b30c22791efc19029ead05488c8f571 | [
"MIT"
] | 1 | 2021-04-10T21:23:44.000Z | 2021-04-10T21:23:44.000Z | defmodule DGUWeb.PublisherControllerTest do
use DGUWeb.ConnCase
@valid_attrs %{name: "some content", title: "some content", url: "some content"}
@invalid_attrs %{}
test "lists all entries on index", %{conn: conn} do
conn = get conn, publisher_path(conn, :index)
assert html_response(conn, 200) =~ "Orga... | 31.2 | 99 | 0.694872 |
ab697b9f24a48b44a3f4cc652ce8bd237859c016 | 533 | ex | Elixir | db_server/lib/db_server_web/router.ex | Graveyardillon/db_server | ce5a5884d7d1f0eacb3c5cc27066203424594cf4 | [
"MIT"
] | null | null | null | db_server/lib/db_server_web/router.ex | Graveyardillon/db_server | ce5a5884d7d1f0eacb3c5cc27066203424594cf4 | [
"MIT"
] | null | null | null | db_server/lib/db_server_web/router.ex | Graveyardillon/db_server | ce5a5884d7d1f0eacb3c5cc27066203424594cf4 | [
"MIT"
] | null | null | null | defmodule DbServerWeb.Router do
use DbServerWeb, :router
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_flash
plug :protect_from_forgery
plug :put_secure_browser_headers
end
pipeline :api do
plug :accepts, ["json"]
end
scope "/", DbServerWeb do
pi... | 18.37931 | 43 | 0.675422 |
ab69b07578893097f935fbcc9f736d2c06a83a78 | 764 | ex | Elixir | lib/alias_injecting_strategy.ex | skylerparr/syringe | 4dd5456c7964b185f09d90816a0d67837b124781 | [
"MIT"
] | 24 | 2016-09-28T04:08:56.000Z | 2022-01-21T17:36:35.000Z | lib/alias_injecting_strategy.ex | skylerparr/syringe | 4dd5456c7964b185f09d90816a0d67837b124781 | [
"MIT"
] | 6 | 2017-02-09T18:20:44.000Z | 2019-10-01T17:51:49.000Z | lib/alias_injecting_strategy.ex | skylerparr/syringe | 4dd5456c7964b185f09d90816a0d67837b124781 | [
"MIT"
] | 3 | 2017-02-16T18:29:06.000Z | 2019-11-08T20:28:41.000Z | defmodule AliasInjectingStrategy do
def inject(definition, options) do
module = Injector.get_module(definition)
[as: as_option] = options
as = Injector.get_module(as_option)
as_atom = Injector.as_elixir_module(as)
module = module |> Injector.as_elixir_module
write_alias(module, as_atom)
end
... | 22.470588 | 49 | 0.684555 |
ab69cba9c9fc8269c71fc24922c4d7770556b6fa | 377 | ex | Elixir | islands_interface/lib/islands_interface_web/controllers/page_controller.ex | moritzploss/islands | ae804c4a443469a49a5d54c69d86951e76050205 | [
"MIT"
] | 3 | 2020-04-14T20:21:33.000Z | 2021-03-18T16:47:04.000Z | islands_interface/lib/islands_interface_web/controllers/page_controller.ex | moritzploss/islands | ae804c4a443469a49a5d54c69d86951e76050205 | [
"MIT"
] | null | null | null | islands_interface/lib/islands_interface_web/controllers/page_controller.ex | moritzploss/islands | ae804c4a443469a49a5d54c69d86951e76050205 | [
"MIT"
] | null | null | null | defmodule IslandsInterfaceWeb.PageController do
use IslandsInterfaceWeb, :controller
alias IE.GameSupervisor
def index(conn, _params) do
render(conn, "index.html")
end
def test(conn, %{"name" => name}) do
{:ok, _pid} = GameSupervisor.start_game(name)
conn
|> put_flash(:info, "You entered th... | 22.176471 | 57 | 0.67374 |
ab69f6659922032609e199725788ee98b24f2113 | 1,107 | exs | Elixir | mix.exs | IanLuites/websockex | 5a7d0fd6993914161255ffbc44e083564b992fa3 | [
"MIT"
] | null | null | null | mix.exs | IanLuites/websockex | 5a7d0fd6993914161255ffbc44e083564b992fa3 | [
"MIT"
] | null | null | null | mix.exs | IanLuites/websockex | 5a7d0fd6993914161255ffbc44e083564b992fa3 | [
"MIT"
] | null | null | null | defmodule WebSockex.Mixfile do
use Mix.Project
def project do
[
app: :websockex,
name: "WebSockex",
version: "0.4.1",
elixir: "~> 1.3",
description: "An Elixir WebSocket client",
source_url: "https://github.com/Azolo/websockex",
build_embedded: Mix.env() == :prod,
... | 21.705882 | 78 | 0.551039 |
ab6a61b49f5475036831f049c4f999ff74beb873 | 605 | ex | Elixir | lib/nomad_client/model/search_response.ex | mrmstn/nomad_client | a586022e5eb4d166acba08b55b198ec079d4b118 | [
"Apache-2.0"
] | 8 | 2021-09-04T21:22:53.000Z | 2022-02-22T22:48:38.000Z | lib/nomad_client/model/search_response.ex | mrmstn/nomad_client | a586022e5eb4d166acba08b55b198ec079d4b118 | [
"Apache-2.0"
] | null | null | null | lib/nomad_client/model/search_response.ex | mrmstn/nomad_client | a586022e5eb4d166acba08b55b198ec079d4b118 | [
"Apache-2.0"
] | null | null | null | # NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
# https://openapi-generator.tech
# Do not edit the class manually.
defmodule NomadClient.Model.SearchResponse do
@moduledoc """
"""
@derive [Poison.Encoder]
defstruct [
:Matches,
:Truncations
]
@type t ::... | 22.407407 | 91 | 0.649587 |
ab6a7df5184ab1b3d37f9156ba92dc681929ee8b | 2,173 | exs | Elixir | config/prod.exs | HackathonSupport/auxilio | 7afc7372d0fbd902580a567be4cd106ece0d5b9b | [
"MIT"
] | null | null | null | config/prod.exs | HackathonSupport/auxilio | 7afc7372d0fbd902580a567be4cd106ece0d5b9b | [
"MIT"
] | 1 | 2018-02-04T02:33:55.000Z | 2018-12-07T11:22:13.000Z | config/prod.exs | HackathonSupport/auxilio | 7afc7372d0fbd902580a567be4cd106ece0d5b9b | [
"MIT"
] | null | null | null | use Mix.Config
# For production, we often load configuration from external
# sources, such as your system environment. For this reason,
# you won't find the :http configuration below, but set inside
# AuxilioWeb.Endpoint.init/2 when load_from_system_env is
# true. Any dynamic configuration should be done there.
#
# Do... | 33.430769 | 67 | 0.721583 |
ab6a8056f389225c53c39bc160150e131bdae7ed | 4,054 | ex | Elixir | lib/phoenix/endpoint/cowboy_handler.ex | raspo/phoenix | 438b74255e7a4d68b4eaf1a295d0fcd201c71421 | [
"MIT"
] | 2 | 2017-06-08T23:28:13.000Z | 2017-06-08T23:28:16.000Z | lib/phoenix/endpoint/cowboy_handler.ex | raspo/phoenix | 438b74255e7a4d68b4eaf1a295d0fcd201c71421 | [
"MIT"
] | null | null | null | lib/phoenix/endpoint/cowboy_handler.ex | raspo/phoenix | 438b74255e7a4d68b4eaf1a295d0fcd201c71421 | [
"MIT"
] | 1 | 2020-02-08T16:23:00.000Z | 2020-02-08T16:23:00.000Z | defmodule Phoenix.Endpoint.CowboyHandler do
@moduledoc """
The Cowboy adapter for Phoenix.
It implements the required `child_spec/3` function as well
as the handler for the WebSocket transport.
## Custom dispatch options
*NOTE*: This feature depends on the internals of Cowboy 1.0 API
and how it integra... | 34.355932 | 103 | 0.650222 |
ab6ac08210a6554519270b557792793b17e5e149 | 1,110 | exs | Elixir | test/dobar_web/api/login_test.exs | ashkan18/dobar | 37381af2a56b2456cfe2a0a358169fd2764cd3f0 | [
"MIT"
] | null | null | null | test/dobar_web/api/login_test.exs | ashkan18/dobar | 37381af2a56b2456cfe2a0a358169fd2764cd3f0 | [
"MIT"
] | 14 | 2019-09-02T18:00:07.000Z | 2021-09-02T00:49:54.000Z | test/dobar_web/api/login_test.exs | ashkan18/dobar | 37381af2a56b2456cfe2a0a358169fd2764cd3f0 | [
"MIT"
] | 1 | 2016-07-27T14:40:55.000Z | 2016-07-27T14:40:55.000Z | defmodule DobarWeb.LoginTest do
use DobarWeb.ConnCase, async: true
alias Dobar.Fixtures
@query """
mutation login($username: String!, $password: String!){
login(username: $username, password: $password){
token
}
}
"""
setup do
[
user:
Fixtures.create(:user,
user... | 20.943396 | 82 | 0.56036 |
ab6b0294987c7c8a8d8bb060ed3fe88614b70e2b | 2,157 | exs | Elixir | test/json_schema_test_suite/draft4/maximum_test.exs | hrzndhrn/json_xema | 955eab7b0919d144b38364164d90275201c89474 | [
"MIT"
] | 54 | 2019-03-10T19:51:07.000Z | 2021-12-23T07:31:09.000Z | test/json_schema_test_suite/draft4/maximum_test.exs | hrzndhrn/json_xema | 955eab7b0919d144b38364164d90275201c89474 | [
"MIT"
] | 36 | 2018-05-20T09:13:20.000Z | 2021-03-14T15:22:03.000Z | test/json_schema_test_suite/draft4/maximum_test.exs | hrzndhrn/json_xema | 955eab7b0919d144b38364164d90275201c89474 | [
"MIT"
] | 3 | 2019-04-12T09:08:51.000Z | 2019-12-04T01:23:56.000Z | defmodule JsonSchemaTestSuite.Draft4.MaximumTest do
use ExUnit.Case
import JsonXema, only: [valid?: 2]
describe ~s|maximum validation| do
setup do
%{schema: JsonXema.new(%{"maximum" => 3.0})}
end
test ~s|below the maximum is valid|, %{schema: schema} do
assert valid?(schema, 2.6)
en... | 25.081395 | 79 | 0.623088 |
ab6b1b54a8e17c6192dabed19f60aac08c5ad053 | 9,586 | ex | Elixir | lib/gutenex.ex | manuel-rubio/gutenex | 73b87d2c948dc4afb08559c853d42e01779b6419 | [
"MIT"
] | null | null | null | lib/gutenex.ex | manuel-rubio/gutenex | 73b87d2c948dc4afb08559c853d42e01779b6419 | [
"MIT"
] | null | null | null | lib/gutenex.ex | manuel-rubio/gutenex | 73b87d2c948dc4afb08559c853d42e01779b6419 | [
"MIT"
] | null | null | null | defmodule Gutenex do
use GenServer
alias Gutenex.PDF
alias Gutenex.PDF.Text
alias Gutenex.PDF.Font
alias Gutenex.PDF.Geometry
#######################
## Setup ##
#######################
@doc """
Starts the PDF generation server.
"""
def start_link(opts \\ []) do
GenServer.start... | 23.669136 | 82 | 0.567077 |
ab6b574aeeda1ed664080c1fcb927805ae9c9872 | 1,301 | exs | Elixir | apps/local_ledger_db/mix.exs | turbo-play/ewallet | b7fee3eed62ac716f46246132c2ead1045f2e4f3 | [
"Apache-2.0"
] | 2 | 2019-07-13T05:49:03.000Z | 2021-08-19T23:58:23.000Z | apps/local_ledger_db/mix.exs | turbo-play/ewallet | b7fee3eed62ac716f46246132c2ead1045f2e4f3 | [
"Apache-2.0"
] | null | null | null | apps/local_ledger_db/mix.exs | turbo-play/ewallet | b7fee3eed62ac716f46246132c2ead1045f2e4f3 | [
"Apache-2.0"
] | 3 | 2018-05-08T17:15:42.000Z | 2021-11-10T04:08:33.000Z | defmodule LocalLedgerDB.Mixfile do
use Mix.Project
def project do
[
app: :local_ledger_db,
version: "0.1.0-beta",
build_path: "../../_build",
config_path: "../../config/config.exs",
deps_path: "../../deps",
lockfile: "../../mix.lock",
elixir: "~> 1.5",
elixirc_pa... | 26.02 | 74 | 0.571868 |
ab6b6324b17b23bcbc5c0112955cfea85b817927 | 949 | exs | Elixir | test/priority_queue_test.exs | renaudlenne/libgraph | bd9b71fcc0a4080551668cc69dfc6bee14be5a0c | [
"MIT"
] | 366 | 2017-06-03T23:10:04.000Z | 2022-03-22T12:26:38.000Z | test/priority_queue_test.exs | renaudlenne/libgraph | bd9b71fcc0a4080551668cc69dfc6bee14be5a0c | [
"MIT"
] | 50 | 2017-07-14T17:55:53.000Z | 2022-03-11T07:40:31.000Z | test/priority_queue_test.exs | renaudlenne/libgraph | bd9b71fcc0a4080551668cc69dfc6bee14be5a0c | [
"MIT"
] | 64 | 2017-07-29T07:01:42.000Z | 2022-03-20T12:07:55.000Z | defmodule PriorityQueue.Test do
use ExUnit.Case, async: true
doctest PriorityQueue
test "inspect" do
pq =
Enum.reduce(0..4, PriorityQueue.new(), fn i, pq ->
pq
|> PriorityQueue.push(?a + i, i)
end)
str = "#{inspect(pq)}"
assert "#PriorityQueue<size: 5, queue: 'abcde'>" = ... | 24.973684 | 97 | 0.503688 |
ab6b6b4c77615f8accbbf09cd0a053252cba48a9 | 1,744 | ex | Elixir | apps/core/lib/core/contract_requests/request_pack.ex | ehealth-ua/ehealth.api | 4ffe26a464fe40c95fb841a4aa2e147068f65ca2 | [
"Apache-2.0"
] | 8 | 2019-06-14T11:34:49.000Z | 2021-08-05T19:14:24.000Z | apps/core/lib/core/contract_requests/request_pack.ex | edenlabllc/ehealth.api.public | 4ffe26a464fe40c95fb841a4aa2e147068f65ca2 | [
"Apache-2.0"
] | 1 | 2019-07-08T15:20:22.000Z | 2019-07-08T15:20:22.000Z | apps/core/lib/core/contract_requests/request_pack.ex | ehealth-ua/ehealth.api | 4ffe26a464fe40c95fb841a4aa2e147068f65ca2 | [
"Apache-2.0"
] | 6 | 2018-05-11T13:59:32.000Z | 2022-01-19T20:15:22.000Z | defmodule Core.ContractRequests.RequestPack do
@moduledoc """
Input request structure for Contract Request
"""
alias Core.CapitationContractRequests
alias Core.ContractRequests.CapitationContractRequest
alias Core.ContractRequests.ReimbursementContractRequest
alias Core.ReimbursementContractRequests
d... | 31.709091 | 118 | 0.766055 |
ab6b7b8b869558090d3dcc81a9b7d4821564e629 | 8,495 | ex | Elixir | lib/aino/middleware.ex | oestrich/aino | 952f1e3b68e28bfca1d8aa273e35fb814804c774 | [
"MIT"
] | 103 | 2021-08-30T15:50:59.000Z | 2022-03-15T14:35:00.000Z | lib/aino/middleware.ex | oestrich/aino | 952f1e3b68e28bfca1d8aa273e35fb814804c774 | [
"MIT"
] | null | null | null | lib/aino/middleware.ex | oestrich/aino | 952f1e3b68e28bfca1d8aa273e35fb814804c774 | [
"MIT"
] | null | null | null | defmodule Aino.Middleware do
@moduledoc """
Middleware functions for processing a request into a response
Included in Aino are common functions that deal with requests, such
as parsing the POST body for form data or parsing query/path params.
"""
require Logger
alias Aino.Token
@doc """
Common mid... | 23.084239 | 90 | 0.585756 |
ab6b8348bcf973ceb38b407603109ea11e218c39 | 1,521 | exs | Elixir | config/dev.exs | justinrlle/GORProject-API | 07cad451cb9acee242612357d706e4f64e3069d8 | [
"MIT"
] | 2 | 2018-09-03T05:42:54.000Z | 2018-09-18T05:48:17.000Z | config/dev.exs | justinrlle/GORProject-API | 07cad451cb9acee242612357d706e4f64e3069d8 | [
"MIT"
] | 2 | 2018-09-17T16:06:06.000Z | 2018-09-24T18:06:19.000Z | config/dev.exs | justinrlle/GORProject-API | 07cad451cb9acee242612357d706e4f64e3069d8 | [
"MIT"
] | 1 | 2018-09-17T14:57:20.000Z | 2018-09-17T14:57:20.000Z | use Mix.Config
# For development, we disable any cache and enable
# debugging and code reloading.
#
# The watchers configuration can be used to run external
# watchers to your application. For example, we use it
# with brunch.io to recompile .js and .css sources.
config :gor_project, GORprojectWeb.Endpoint,
http: [p... | 32.361702 | 170 | 0.737673 |
ab6b8e8a02dea7d684b2e786d0ee8a3660c32ae5 | 18,478 | ex | Elixir | lib/mix/lib/mix.ex | hurrycaner/elixir | c54daf97764c222a3ade6c84ac89bacb68abb0fb | [
"Apache-2.0"
] | 1 | 2021-05-05T02:11:24.000Z | 2021-05-05T02:11:24.000Z | lib/mix/lib/mix.ex | hurrycaner/elixir | c54daf97764c222a3ade6c84ac89bacb68abb0fb | [
"Apache-2.0"
] | 6 | 2021-03-19T12:33:21.000Z | 2021-04-02T17:52:45.000Z | lib/mix/lib/mix.ex | hurrycaner/elixir | c54daf97764c222a3ade6c84ac89bacb68abb0fb | [
"Apache-2.0"
] | null | null | null | defmodule Mix do
@moduledoc ~S"""
Mix is a build tool that provides tasks for creating, compiling,
and testing Elixir projects, managing its dependencies, and more.
## Mix.Project
The foundation of Mix is a project. A project can be defined by using
`Mix.Project` in a module, usually placed in a file name... | 30.441516 | 148 | 0.666035 |
ab6c0cd07487a2cdb504badb06fec0de83f5d474 | 14,843 | ex | Elixir | lib/magpie/experiments.ex | b-a-b-e/ProComPrag | 50c6c87933e71cb69b5c95bc77bf591a34661410 | [
"MIT"
] | 1 | 2018-05-19T12:08:10.000Z | 2018-05-19T12:08:10.000Z | lib/magpie/experiments.ex | b-a-b-e/ProComPrag | 50c6c87933e71cb69b5c95bc77bf591a34661410 | [
"MIT"
] | 59 | 2018-05-16T00:53:06.000Z | 2019-04-19T12:16:49.000Z | lib/magpie/experiments.ex | babe-project/BABE | 50c6c87933e71cb69b5c95bc77bf591a34661410 | [
"MIT"
] | 1 | 2019-07-28T19:17:43.000Z | 2019-07-28T19:17:43.000Z | defmodule Magpie.Experiments do
@moduledoc """
Context for experiments
"""
alias Magpie.Experiments.{AssignmentIdentifier, Experiment, ExperimentResult, ExperimentStatus}
alias Magpie.Repo
alias Ecto.Multi
import Ecto.Query
import Magpie.Helpers
require Logger
def create_experiment(experiment_par... | 33.965675 | 171 | 0.684632 |
ab6c13b419384277ac7b471c6636e90e69464e20 | 870 | ex | Elixir | apps/wall_web/lib/wall_web/application.ex | rizafahmi/community_wall | 3cc99942ce9f73d1f520f53075da44a1c5a3356b | [
"MIT"
] | 6 | 2019-12-24T11:18:32.000Z | 2020-02-15T10:24:14.000Z | apps/wall_web/lib/wall_web/application.ex | rizafahmi/community_wall | 3cc99942ce9f73d1f520f53075da44a1c5a3356b | [
"MIT"
] | null | null | null | apps/wall_web/lib/wall_web/application.ex | rizafahmi/community_wall | 3cc99942ce9f73d1f520f53075da44a1c5a3356b | [
"MIT"
] | 2 | 2020-02-28T16:21:17.000Z | 2020-08-17T19:55:09.000Z | defmodule WallWeb.Application do
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
use Application
def start(_type, _args) do
# List all child processes to be supervised
children = [
# Start the endpoint when the application starts
... | 29 | 66 | 0.718391 |
ab6c2917fb089fd930403c6858338bfd15467a59 | 823 | exs | Elixir | test/bpmn/context_test.exs | Around25/hashiru-bpmn | 56271b700b71ecef409f932dbacb02392f403be9 | [
"Apache-2.0"
] | 13 | 2017-09-19T17:49:59.000Z | 2021-09-21T18:20:15.000Z | test/bpmn/context_test.exs | Around25/hashiru-bpmn | 56271b700b71ecef409f932dbacb02392f403be9 | [
"Apache-2.0"
] | 7 | 2017-10-17T16:44:37.000Z | 2017-11-14T23:40:40.000Z | test/bpmn/context_test.exs | Around25/hashiru-bpmn | 56271b700b71ecef409f932dbacb02392f403be9 | [
"Apache-2.0"
] | 3 | 2017-10-21T08:23:26.000Z | 2021-09-10T14:27:07.000Z | defmodule Bpmn.ContextTest do
use ExUnit.Case, async: true
alias Bpmn.Context
doctest Bpmn.Context
setup do
{:ok, context} = Context.start_link(%{id: "my_process"}, %{"username": "test", "password": "secret"})
{:ok, context: context}
end
test "create context", %{context: context} do
assert Co... | 31.653846 | 105 | 0.691373 |
ab6c4034dfdfa74e55c632d2cca2ca2ff5dacdee | 1,319 | exs | Elixir | test/plug/session/mnemonix_test.exs | christhekeele/mnemonix | 41c81b00b89562250ea451035fd34bf775173e50 | [
"MIT"
] | 36 | 2016-10-30T21:40:19.000Z | 2021-05-03T10:51:50.000Z | test/plug/session/mnemonix_test.exs | christhekeele/mnemonix | 41c81b00b89562250ea451035fd34bf775173e50 | [
"MIT"
] | 52 | 2016-10-30T20:57:35.000Z | 2017-12-28T03:39:57.000Z | test/plug/session/mnemonix_test.exs | christhekeele/mnemonix | 41c81b00b89562250ea451035fd34bf775173e50 | [
"MIT"
] | 5 | 2017-01-25T22:02:58.000Z | 2018-01-30T14:27:55.000Z | defmodule Plug.Session.MNEMONIX.Test do
use Mnemonix.Test.Case, async: true
alias Plug.Session.MNEMONIX
@mnemonix_store Mnemonix.Plug.Session
setup do
Mnemonix.Stores.Map.start_link(name: @mnemonix_store)
:ok
end
test "put and get session" do
opts = MNEMONIX.init(mnemonix: @mnemonix_store)
... | 28.673913 | 65 | 0.607278 |
ab6c5813e95b99b340e489c6769c4387cc7fb363 | 2,539 | ex | Elixir | lib/geometry/hull.ex | crertel/elixir_rigid_physics | 059f121d5504b7b8fed22aa907503d9e9fd8ac1d | [
"Apache-2.0"
] | 6 | 2019-05-23T19:57:26.000Z | 2021-06-14T16:52:53.000Z | lib/geometry/hull.ex | crertel/elixir_rigid_physics | 059f121d5504b7b8fed22aa907503d9e9fd8ac1d | [
"Apache-2.0"
] | 10 | 2019-06-21T22:09:39.000Z | 2019-07-10T04:16:12.000Z | lib/geometry/hull.ex | crertel/elixir_rigid_physics | 059f121d5504b7b8fed22aa907503d9e9fd8ac1d | [
"Apache-2.0"
] | 1 | 2021-01-09T01:58:55.000Z | 2021-01-09T01:58:55.000Z | defmodule ElixirRigidPhysics.Geometry.Hull do
@moduledoc """
Hull geometry module.
Hulls are lists of coplanar faces wound CCW (to find normal, follow right-hand rule).
Their center is assumed to be at the origin, but in the absence of a frame that doesn't matter.
"""
alias Graphmath.Vec3
require Recor... | 27.597826 | 132 | 0.530918 |
ab6c619cb1ec29d37e883012fe9ee3c0044227ac | 1,216 | ex | Elixir | lib/mix/tasks/teamster/teamster.ex | allen-garvey/booklist-phoenix | b3c87713d742b64684c222cd3e5869dc9fbd2bd2 | [
"MIT"
] | null | null | null | lib/mix/tasks/teamster/teamster.ex | allen-garvey/booklist-phoenix | b3c87713d742b64684c222cd3e5869dc9fbd2bd2 | [
"MIT"
] | 3 | 2020-07-16T14:24:43.000Z | 2021-03-08T23:34:18.000Z | lib/mix/tasks/teamster/teamster.ex | allen-garvey/booklist-phoenix | b3c87713d742b64684c222cd3e5869dc9fbd2bd2 | [
"MIT"
] | null | null | null | defmodule Mix.Tasks.Teamster do
use Mix.Task
import Ecto.Query, warn: false
alias Booklist.Repo
alias Booklist.RepoLegacy
@moduledoc """
Mix tasks to migrate the book_list rails database data to the booklist phoenix application
"""
@shortdoc "Migrates data from book_list rails to current booklist p... | 29.658537 | 93 | 0.749178 |
ab6c6521f860bd35c7647661c3c3906bfded7a7b | 310 | exs | Elixir | priv/repo/migrations/20170609113553_create_projection_versions.exs | edwardzhou/commanded-ecto-projections | e7e16d3feb04d8faa42c682d77db2cefdc899051 | [
"MIT"
] | null | null | null | priv/repo/migrations/20170609113553_create_projection_versions.exs | edwardzhou/commanded-ecto-projections | e7e16d3feb04d8faa42c682d77db2cefdc899051 | [
"MIT"
] | null | null | null | priv/repo/migrations/20170609113553_create_projection_versions.exs | edwardzhou/commanded-ecto-projections | e7e16d3feb04d8faa42c682d77db2cefdc899051 | [
"MIT"
] | null | null | null | defmodule Commanded.Projections.Repo.Migrations.CreateProjectionVersions do
use Ecto.Migration
def change do
create table(:projection_versions, primary_key: false) do
add :projection_name, :text, primary_key: true
add :last_seen_event_number, :bigint
timestamps()
end
end
end
| 23.846154 | 75 | 0.745161 |
ab6c6aab1600b6c2d62285e1dd16af98674a6a00 | 78 | exs | Elixir | test/dobar_web/views/layout_view_test.exs | ashkan18/dobar | 37381af2a56b2456cfe2a0a358169fd2764cd3f0 | [
"MIT"
] | null | null | null | test/dobar_web/views/layout_view_test.exs | ashkan18/dobar | 37381af2a56b2456cfe2a0a358169fd2764cd3f0 | [
"MIT"
] | 14 | 2019-09-02T18:00:07.000Z | 2021-09-02T00:49:54.000Z | test/dobar_web/views/layout_view_test.exs | ashkan18/dobar | 37381af2a56b2456cfe2a0a358169fd2764cd3f0 | [
"MIT"
] | 1 | 2016-07-27T14:40:55.000Z | 2016-07-27T14:40:55.000Z | defmodule DobarWeb.LayoutViewTest do
use DobarWeb.ConnCase, async: true
end
| 19.5 | 36 | 0.820513 |
ab6c7cb1bed7fcbb52d0d2d516bd1b47a0f22acb | 1,985 | ex | Elixir | lib/actions/download.ex | yashin5/mangaex | 2303c49a62527f617f17620931db3371f2b7f4bd | [
"MIT"
] | 2 | 2021-04-22T18:22:48.000Z | 2021-06-10T10:23:08.000Z | lib/actions/download.ex | yashin5/mangaex | 2303c49a62527f617f17620931db3371f2b7f4bd | [
"MIT"
] | null | null | null | lib/actions/download.ex | yashin5/mangaex | 2303c49a62527f617f17620931db3371f2b7f4bd | [
"MIT"
] | null | null | null | defmodule MangaEx.Actions.Download do
use Tesla
require Logger
alias MangaEx.Util.DownloadUtils
@spec download_pages(
pages_url :: [String.t()],
manga_name :: String.t(),
chapter :: String.t() | integer(),
sleep :: integer(),
headers :: list()
) :: li... | 27.191781 | 94 | 0.562217 |
ab6c7ecdcef6795fda1c0afd6cfabc2b6adc7a7b | 943 | ex | Elixir | lib/helios/aggregate/supervisor.ex | exponentially/helios | 3a7b66bd95a8c53c500272eb8a269a73e6de6d8a | [
"Apache-2.0"
] | 12 | 2018-09-20T21:33:07.000Z | 2020-01-14T19:31:11.000Z | lib/helios/aggregate/supervisor.ex | exponentially/helios | 3a7b66bd95a8c53c500272eb8a269a73e6de6d8a | [
"Apache-2.0"
] | null | null | null | lib/helios/aggregate/supervisor.ex | exponentially/helios | 3a7b66bd95a8c53c500272eb8a269a73e6de6d8a | [
"Apache-2.0"
] | null | null | null | defmodule Helios.Aggregate.Supervisor do
@moduledoc false
use Supervisor
def child_spec(otp_app, endpoint) do
%{
id: __MODULE__,
start:
{__MODULE__, :start_link, [otp_app, endpoint]},
type: :supervisor
}
end
@spec supervisor_name(atom) :: atom
def supervisor_name(endpoint... | 23.575 | 82 | 0.675504 |
ab6c82d88071b17cd811ab257829a37a62a8f1a7 | 6,957 | exs | Elixir | mix.exs | cdegroot/commanded | 7b537c9c81536a9d6f38aa9b73e87b171728a4a3 | [
"MIT"
] | null | null | null | mix.exs | cdegroot/commanded | 7b537c9c81536a9d6f38aa9b73e87b171728a4a3 | [
"MIT"
] | null | null | null | mix.exs | cdegroot/commanded | 7b537c9c81536a9d6f38aa9b73e87b171728a4a3 | [
"MIT"
] | null | null | null | defmodule Commanded.Mixfile do
use Mix.Project
@version "1.2.0"
def project do
[
app: :commanded,
version: @version,
elixir: "~> 1.6",
elixirc_paths: elixirc_paths(Mix.env()),
deps: deps(),
description: description(),
docs: docs(),
package: package(),
al... | 27.498024 | 86 | 0.568061 |
ab6ca4b72d16f994e24d5a6600b22af10ca86ca6 | 1,519 | exs | Elixir | domain_holder/mix.exs | nerves-build/DomainHolder | 86bea50aef12a6ff50b0dd92bbf66b1a691e24a9 | [
"MIT"
] | 1 | 2019-08-30T08:45:43.000Z | 2019-08-30T08:45:43.000Z | domain_holder/mix.exs | nerves-build/DomainHolder | 86bea50aef12a6ff50b0dd92bbf66b1a691e24a9 | [
"MIT"
] | 5 | 2020-10-15T13:33:02.000Z | 2020-10-15T13:33:04.000Z | domain_holder/mix.exs | nerves-build/DomainHolder | 86bea50aef12a6ff50b0dd92bbf66b1a691e24a9 | [
"MIT"
] | null | null | null | defmodule DomainHolder.MixProject do
use Mix.Project
@all_targets [:rpi0, :rpi3]
def project do
[
app: :domain_holder,
version: "1.0.0",
elixir: "~> 1.9",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix, :gettext] ++ Mix.compilers(),
start_permanent: Mix.env(... | 28.12963 | 74 | 0.576037 |
ab6ca739cea2480d4ae7390ff8d702c5dfb3b9f0 | 4,598 | exs | Elixir | test/wobserver/web/router/api_test.exs | szlend/wobserver | 6c3ea1ef772ddb4a0b35956d155f33fc46f71a8c | [
"MIT"
] | 984 | 2017-02-06T17:13:48.000Z | 2022-03-18T22:46:55.000Z | test/wobserver/web/router/api_test.exs | szlend/wobserver | 6c3ea1ef772ddb4a0b35956d155f33fc46f71a8c | [
"MIT"
] | 52 | 2017-02-13T16:12:10.000Z | 2021-04-08T22:31:28.000Z | test/wobserver/web/router/api_test.exs | szlend/wobserver | 6c3ea1ef772ddb4a0b35956d155f33fc46f71a8c | [
"MIT"
] | 74 | 2017-02-13T15:23:49.000Z | 2021-07-30T07:43:27.000Z | defmodule Wobserver.Web.Router.ApiTest do
use ExUnit.Case, async: true
use Plug.Test
alias Wobserver.Util.Node.Remote
alias Wobserver.Web.Router.Api
@opts Api.init([])
test "/about returns about" do
conn = conn(:get, "/about")
conn = Api.call(conn, @opts)
assert conn.state == :sent
asse... | 21.895238 | 113 | 0.611788 |
ab6cc1d5f64d69105d16d0e10658177a21da61cc | 621 | exs | Elixir | test/plasm/minimum_test.exs | facto/plasm | cd8a713e8409738f776f77cecbc65e2f0f42c146 | [
"Apache-2.0"
] | 56 | 2016-07-31T19:35:49.000Z | 2021-10-21T20:32:42.000Z | test/plasm/minimum_test.exs | atomic-fads/plasm | cd8a713e8409738f776f77cecbc65e2f0f42c146 | [
"Apache-2.0"
] | 2 | 2016-01-27T17:38:55.000Z | 2016-05-21T18:33:14.000Z | test/plasm/minimum_test.exs | atomic-fads/plasm | cd8a713e8409738f776f77cecbc65e2f0f42c146 | [
"Apache-2.0"
] | 3 | 2016-01-27T14:00:55.000Z | 2016-05-21T18:06:56.000Z | defmodule Plasm.MinimumTest do
use Plasm.Case
alias Plasm.Repo
alias Plasm.User
import Plasm.Factory
test ".minimum with an atom field name" do
# Arrange
insert(:user, age: 18)
insert(:user, age: 40)
insert(:user, age: 81)
# Act
minimum = User |> Plasm.minimum(:age) |> Repo.one
... | 17.742857 | 54 | 0.608696 |
ab6cd5ef1d6f84204f1ef503bbf4f1ff4a339408 | 80 | exs | Elixir | test/hayago_web/views/layout_view_test.exs | jeffkreeftmeijer/hayago | f80e3204efc70fb4c144a75952534ef143ab584d | [
"Apache-2.0"
] | 60 | 2019-06-14T02:38:33.000Z | 2022-02-27T22:08:36.000Z | test/hayago_web/views/layout_view_test.exs | jeffkreeftmeijer/hayago | f80e3204efc70fb4c144a75952534ef143ab584d | [
"Apache-2.0"
] | 2 | 2020-01-05T09:09:58.000Z | 2020-12-31T09:54:13.000Z | test/hayago_web/views/layout_view_test.exs | jeffkreeftmeijer/hayago | f80e3204efc70fb4c144a75952534ef143ab584d | [
"Apache-2.0"
] | 15 | 2019-06-14T02:38:39.000Z | 2021-10-30T21:53:08.000Z | defmodule HayagoWeb.LayoutViewTest do
use HayagoWeb.ConnCase, async: true
end
| 20 | 37 | 0.825 |
ab6cd5f291e6ada19f154350c92ac2a29353dc7b | 536 | ex | Elixir | lib/policr_mini_bot/consumer.ex | WOCyo/policr-mini | 23e5e9f927d083cba5993f39e9f122e3a0ad1be2 | [
"MIT"
] | 487 | 2020-06-08T03:04:21.000Z | 2022-03-31T14:51:36.000Z | lib/policr_mini_bot/consumer.ex | WOCyo/policr-mini | 23e5e9f927d083cba5993f39e9f122e3a0ad1be2 | [
"MIT"
] | 141 | 2020-06-11T01:03:29.000Z | 2022-03-30T20:23:32.000Z | lib/policr_mini_bot/consumer.ex | WOCyo/policr-mini | 23e5e9f927d083cba5993f39e9f122e3a0ad1be2 | [
"MIT"
] | 61 | 2020-06-10T05:25:03.000Z | 2022-03-23T15:54:26.000Z | defmodule PolicrMiniBot.Consumer do
@moduledoc """
消息更新的消费实现。
"""
use DynamicSupervisor
alias PolicrMiniBot.State
def start_link(default \\ []) when is_list(default) do
DynamicSupervisor.start_link(__MODULE__, %{}, name: __MODULE__)
end
@impl true
def init(_) do
DynamicSupervisor.init(stra... | 20.615385 | 68 | 0.692164 |
ab6cf0cbc939d97a723a411451c8e4259feadd06 | 30,520 | exs | Elixir | test/floki_test.exs | herbstrith/floki | a4c621f07beac87488d9a84828206cf0d7e56279 | [
"MIT"
] | null | null | null | test/floki_test.exs | herbstrith/floki | a4c621f07beac87488d9a84828206cf0d7e56279 | [
"MIT"
] | null | null | null | test/floki_test.exs | herbstrith/floki | a4c621f07beac87488d9a84828206cf0d7e56279 | [
"MIT"
] | null | null | null | defmodule FlokiTest do
use ExUnit.Case, async: true
doctest Floki
@html """
<html>
<head>
<title>Test</title>
</head>
<body>
<div class="content">
<a href="http://google.com" class="js-google js-cool">Google</a>
<a href="http://elixir-lang.org" class="js-elixir js-cool">Elixir lang</a>... | 26.655022 | 197 | 0.488041 |
ab6cf38e8f704930fb67b2e1bc1f8c62978a565a | 2,526 | ex | Elixir | clients/android_device_provisioning/lib/google_api/android_device_provisioning/v1/model/partner_unclaim.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/android_device_provisioning/lib/google_api/android_device_provisioning/v1/model/partner_unclaim.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/android_device_provisioning/lib/google_api/android_device_provisioning/v1/model/partner_unclaim.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... | 42.1 | 188 | 0.726049 |
ab6d0d4b02f8aced07759e0b0220be81f43a5c7c | 445 | exs | Elixir | test/mainnet/router_sc_test.exs | victorflx/elrondex | a90521ce5e39ad37453dcb53f527b8311ae1ae4f | [
"MIT"
] | 8 | 2021-10-02T16:25:19.000Z | 2022-02-03T17:50:34.000Z | test/mainnet/router_sc_test.exs | victorflx/elrondex | a90521ce5e39ad37453dcb53f527b8311ae1ae4f | [
"MIT"
] | 1 | 2022-01-19T12:10:49.000Z | 2022-01-19T12:10:49.000Z | test/mainnet/router_sc_test.exs | victorflx/elrondex | a90521ce5e39ad37453dcb53f527b8311ae1ae4f | [
"MIT"
] | 2 | 2022-01-10T07:48:16.000Z | 2022-02-06T17:05:57.000Z | defmodule Mainnet.RouterScTest do
alias Elrondex.{Network}
alias Elrondex.Sc.RouterSc
use ExUnit.Case
require Logger
@moduletag network: :mainnet
@router_address "erd1qqqqqqqqqqqqqpgqq66xk9gfr4esuhem3jru86wg5hvp33a62jps2fy57p"
# @tag :skip
test "get_all_pairs test" do
mainnet = Network.get(:mainn... | 20.227273 | 82 | 0.74382 |
ab6d1e5550454a397b41a4916e49c8f167541ebb | 4,919 | ex | Elixir | clients/vault/lib/google_api/vault/v1/model/query.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/vault/lib/google_api/vault/v1/model/query.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/vault/lib/google_api/vault/v1/model/query.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 54.655556 | 279 | 0.722505 |
ab6d3d517a1f243e65ac5aeef681724756436ea9 | 703 | ex | Elixir | lib/rss/handler.ex | oestrich/aino-rss | 5216ca53b0447f83b7f7e20afe38562864c126fd | [
"MIT"
] | 1 | 2021-09-20T13:07:55.000Z | 2021-09-20T13:07:55.000Z | lib/rss/handler.ex | oestrich/aino-rss | 5216ca53b0447f83b7f7e20afe38562864c126fd | [
"MIT"
] | null | null | null | lib/rss/handler.ex | oestrich/aino-rss | 5216ca53b0447f83b7f7e20afe38562864c126fd | [
"MIT"
] | null | null | null | defmodule RSS.Handler do
@moduledoc false
import Aino.Middleware.Routes, only: [get: 2, post: 2]
alias RSS.Feeds
alias RSS.Pages
alias RSS.Layout
@behaviour Aino.Handler
@impl true
def handle(token) do
routes = [
get("/", &Pages.index/1),
get("/items/:id", &Pages.item/1),
post(... | 21.30303 | 56 | 0.634424 |
ab6d4a44d5836cbd1f8657e8f8b4c92deeef9922 | 1,115 | exs | Elixir | config/config.exs | ncloudioj/iconic | 20dac2e8f9e737292d1caccf0ded3b51abe63a97 | [
"Apache-2.0"
] | 2 | 2017-10-30T18:16:25.000Z | 2021-02-09T09:29:24.000Z | config/config.exs | ncloudioj/iconic | 20dac2e8f9e737292d1caccf0ded3b51abe63a97 | [
"Apache-2.0"
] | null | null | null | config/config.exs | ncloudioj/iconic | 20dac2e8f9e737292d1caccf0ded3b51abe63a97 | [
"Apache-2.0"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on this project, this
# file won't be loaded nor affect the paren... | 35.967742 | 73 | 0.755157 |
ab6d4d720c8602b9a9bd85f2c1e32696ce41230d | 1,147 | ex | Elixir | lib/helpers.ex | imeraj/elixir_git | 27792b6aa9f8b14c946543cd81b253977d8686f8 | [
"MIT"
] | 22 | 2021-03-07T17:00:42.000Z | 2022-03-21T07:16:11.000Z | lib/helpers.ex | imeraj/elixir_git | 27792b6aa9f8b14c946543cd81b253977d8686f8 | [
"MIT"
] | null | null | null | lib/helpers.ex | imeraj/elixir_git | 27792b6aa9f8b14c946543cd81b253977d8686f8 | [
"MIT"
] | 2 | 2021-03-10T21:16:51.000Z | 2021-05-06T10:49:13.000Z | defmodule Egit.Helpers do
@moduledoc """
An Elixir implementation of Git version control system
"""
def git_path(root_path) do
root_path
|> Path.join(".git")
end
def head_path(root_path) do
root_path
|> git_path()
|> Path.join("HEAD")
end
def db_path(root_path) do
root_path
... | 19.775862 | 66 | 0.574542 |
ab6d776850d55442e1cbcdc088e58e1a9ae87252 | 5,418 | ex | Elixir | lib/binance/websocket/ws_client.ex | quantd2/binance_ex | 74e2a5b2d6d76174f0f8f4d4497ae14224daa93b | [
"MIT"
] | null | null | null | lib/binance/websocket/ws_client.ex | quantd2/binance_ex | 74e2a5b2d6d76174f0f8f4d4497ae14224daa93b | [
"MIT"
] | null | null | null | lib/binance/websocket/ws_client.ex | quantd2/binance_ex | 74e2a5b2d6d76174f0f8f4d4497ae14224daa93b | [
"MIT"
] | null | null | null | defmodule Binance.WebSocket.WSClient do
@moduledoc """
WebSocket client for Binance Spot
There are 2 types of WebSocket channels/streams for Spot trading on Binance:
- [Public streams](https://github.com/binance-exchange/binance-official-api-docs/blob/master/web-socket-streams.md)
- [User Data stream](https... | 35.880795 | 121 | 0.663898 |
ab6d7dc30ed42307dcbcf178159ecfd617aed33b | 4,655 | ex | Elixir | lib/koans/18_genservers.ex | nicole-cedano/learning-elixir | 1069869ccc1765ae1767aab16c437b1f6a4f1d55 | [
"MIT"
] | 1 | 2022-02-20T10:43:47.000Z | 2022-02-20T10:43:47.000Z | lib/koans/18_genservers.ex | lucazulian/elixir-koans | e2955211c5fbc605911f6aa52691872909013a83 | [
"MIT"
] | null | null | null | lib/koans/18_genservers.ex | lucazulian/elixir-koans | e2955211c5fbc605911f6aa52691872909013a83 | [
"MIT"
] | null | null | null | defmodule GenServers do
use Koans
@intro "GenServers"
defmodule Laptop do
use GenServer
#####
# External API
def init(args) do
{:ok, args}
end
def start(init_password) do
# The __MODULE__ macro returns the current module name as an atom
GenServer.start(__MODULE__, ini... | 28.734568 | 114 | 0.670892 |
ab6d8a73fa5bd24f94ac79f60866712a0039b946 | 1,288 | ex | Elixir | lib/skroutz/favorite.ex | skroutz/skroutz.ex | d0915212f1bfd6a7c2a721cf4d50e80939f71947 | [
"MIT"
] | 10 | 2016-02-22T08:23:00.000Z | 2020-02-12T12:42:18.000Z | lib/skroutz/favorite.ex | skroutz/skroutz.ex | d0915212f1bfd6a7c2a721cf4d50e80939f71947 | [
"MIT"
] | null | null | null | lib/skroutz/favorite.ex | skroutz/skroutz.ex | d0915212f1bfd6a7c2a721cf4d50e80939f71947 | [
"MIT"
] | 1 | 2020-02-12T12:42:21.000Z | 2020-02-12T12:42:21.000Z | defmodule Skroutz.Favorite do
@moduledoc """
Groups functions handling [Favorite](http://developer.skroutz.gr/api/v3/favorite)
endpoints
"""
@doc """
Retrieves all favorites
@see http://developer.skroutz.gr/api/v3/favorites/#list-favorites
"""
def all(client), do: client |> Skroutz.get("/favorites")
... | 29.953488 | 96 | 0.688665 |
ab6dc38b79a73fffa2c430580fbec68d11391b6f | 1,191 | exs | Elixir | clients/container/mix.exs | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | null | null | null | clients/container/mix.exs | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | null | null | null | clients/container/mix.exs | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | defmodule GoogleApi.Container.V1.Mixfile do
use Mix.Project
@version "0.1.0"
def project do
[app: :google_api_container,
version: @version,
elixir: "~> 1.4",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
description: description(),
package: package(),
... | 24.8125 | 149 | 0.617128 |
ab6dd3fce94cf11eb741a21a1a1cecd86a64c2b6 | 2,044 | ex | Elixir | lib/advanced_aggregator/social_media_storage/storage.ex | Aridjar/advanced_aggregator | 8215a71850339d987015172fce1da822fd20e62e | [
"MIT"
] | null | null | null | lib/advanced_aggregator/social_media_storage/storage.ex | Aridjar/advanced_aggregator | 8215a71850339d987015172fce1da822fd20e62e | [
"MIT"
] | null | null | null | lib/advanced_aggregator/social_media_storage/storage.ex | Aridjar/advanced_aggregator | 8215a71850339d987015172fce1da822fd20e62e | [
"MIT"
] | null | null | null | defmodule AdvancedAggregator.SocialMediaStorage.Storage do
@moduledoc """
The storage module is here to store pages. It is an agent, and is under the distributor.
It also as some function allowing to interact with the list, and directly with one element.
It should store elements in an map, where the key is the... | 31.9375 | 122 | 0.571918 |
ab6dd47b672b755b1bf0fc8c0856a8735fe7d43e | 1,479 | ex | Elixir | test/support/data_case.ex | madebymany/lazy_context | 7786607a2e56ecd280851a7c3f8085a164ea15c1 | [
"Apache-2.0"
] | 3 | 2019-01-02T17:45:21.000Z | 2019-12-04T18:11:53.000Z | test/support/data_case.ex | madebymany/lazy_context | 7786607a2e56ecd280851a7c3f8085a164ea15c1 | [
"Apache-2.0"
] | null | null | null | test/support/data_case.ex | madebymany/lazy_context | 7786607a2e56ecd280851a7c3f8085a164ea15c1 | [
"Apache-2.0"
] | null | null | null | defmodule LazyContext.DataCase do
@moduledoc """
This module defines the setup for tests requiring
access to the application's data layer.
You may define functions here to be used as helpers in
your tests.
Finally, if the test case interacts with the database,
it cannot be async. For this reason, every ... | 25.947368 | 77 | 0.688979 |
ab6df3c36ca6a091391ed484de2ec1e26c8efd30 | 2,577 | exs | Elixir | test/resources/projects_test.exs | procore/elixir-sdk | abff2935702a5e9f0290a072e90c2f219bca3cb8 | [
"MIT"
] | 6 | 2018-02-01T01:34:16.000Z | 2020-08-31T15:15:08.000Z | test/resources/projects_test.exs | procore/elixir-sdk | abff2935702a5e9f0290a072e90c2f219bca3cb8 | [
"MIT"
] | 6 | 2018-02-03T03:01:48.000Z | 2021-06-08T18:39:40.000Z | test/resources/projects_test.exs | procore/elixir-sdk | abff2935702a5e9f0290a072e90c2f219bca3cb8 | [
"MIT"
] | 3 | 2018-08-12T03:51:52.000Z | 2020-02-27T14:29:14.000Z | defmodule Procore.Resources.ProjectsTest do
use ExUnit.Case
alias Procore.ResponseResult
alias Procore.Resources.Projects
test "find/1 with default API version" do
client = Procore.client()
params = %{"company_id" => 1, "project_id" => 1}
assert %ResponseResult{reply: :ok, status_code: 200, parsed... | 33.038462 | 78 | 0.631742 |
ab6df8122040fe33bec13cb03ad4655ad9d31091 | 1,058 | ex | Elixir | elixir/phoenix_demo/test/support/conn_case.ex | gilmoreg/learn | 0c4f34387f0d2235ecd88ac62fb86a51f87eb5c2 | [
"MIT"
] | null | null | null | elixir/phoenix_demo/test/support/conn_case.ex | gilmoreg/learn | 0c4f34387f0d2235ecd88ac62fb86a51f87eb5c2 | [
"MIT"
] | null | null | null | elixir/phoenix_demo/test/support/conn_case.ex | gilmoreg/learn | 0c4f34387f0d2235ecd88ac62fb86a51f87eb5c2 | [
"MIT"
] | null | null | null | defmodule PhoenixDemoWeb.ConnCase do
@moduledoc """
This module defines the test case to be used by
tests that require setting up a connection.
Such tests rely on `Phoenix.ConnTest` and also
import other functionality to make it easier
to build common datastructures and query the data layer.
Finally, if... | 27.128205 | 73 | 0.724953 |
ab6e1bada97c88820708233b0d0f60b58dfaba4c | 1,370 | exs | Elixir | mix.exs | arcseldon/exploring-elixir | 0115aed80e5905384e7277dfe740d09e3a496b7b | [
"Apache-2.0"
] | 30 | 2017-07-03T23:53:37.000Z | 2021-03-14T21:27:14.000Z | mix.exs | arcseldon/exploring-elixir | 0115aed80e5905384e7277dfe740d09e3a496b7b | [
"Apache-2.0"
] | 1 | 2018-05-25T20:00:24.000Z | 2018-05-30T09:40:09.000Z | mix.exs | aseigo/exploring-elixir | 0115aed80e5905384e7277dfe740d09e3a496b7b | [
"Apache-2.0"
] | 4 | 2017-07-27T09:07:17.000Z | 2019-05-22T11:14:25.000Z | defmodule ExploringElixir.Mixfile do
use Mix.Project
def project do
[app: :exploring_elixir,
version: "0.1.0",
elixir: "~> 1.4",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps(),
aliases: aliases()]
end
def application do
[
# as a fi... | 24.909091 | 72 | 0.526277 |
ab6e2b6f3411ac5496f8d07d4c005101ade998be | 591 | ex | Elixir | api/lib/muhnee_web/controllers/fallback_controller.ex | bkbooth/muhnee | b0a1f33f3509a8b1ca90db77001ccfd26b8b3c67 | [
"MIT"
] | null | null | null | api/lib/muhnee_web/controllers/fallback_controller.ex | bkbooth/muhnee | b0a1f33f3509a8b1ca90db77001ccfd26b8b3c67 | [
"MIT"
] | null | null | null | api/lib/muhnee_web/controllers/fallback_controller.ex | bkbooth/muhnee | b0a1f33f3509a8b1ca90db77001ccfd26b8b3c67 | [
"MIT"
] | null | null | null | defmodule MuhneeWeb.FallbackController do
@moduledoc """
Translates controller action results into valid `Plug.Conn` responses.
See `Phoenix.Controller.action_fallback/1` for more details.
"""
use MuhneeWeb, :controller
def call(conn, {:error, %Ecto.Changeset{} = changeset}) do
conn
|> put_status(... | 25.695652 | 72 | 0.692047 |
ab6e3173203ced58d4da5e7900dfd347efe8c02a | 263 | ex | Elixir | api/lib/grook/schemas/post.ex | ukita/grook | add716bf92fcde35b941ea8067933c28c192e01e | [
"MIT"
] | 3 | 2017-05-22T13:28:13.000Z | 2018-06-29T16:39:19.000Z | api/lib/grook/schemas/post.ex | ukita/grook | add716bf92fcde35b941ea8067933c28c192e01e | [
"MIT"
] | null | null | null | api/lib/grook/schemas/post.ex | ukita/grook | add716bf92fcde35b941ea8067933c28c192e01e | [
"MIT"
] | null | null | null | defmodule Grook.Schema.Post do
use Grook.Schema
schema "posts" do
field :message, :string
belongs_to :user, Grook.Schema.User
belongs_to :room, Grook.Schema.Room
has_many :attachments, Grook.Schema.PostAttachment
timestamps()
end
end
| 18.785714 | 54 | 0.718631 |
ab6e380eef3f62b95709bf340225d6c70752a0b2 | 420 | ex | Elixir | lib/tentacat/reactions.ex | hi-rustin/tentacat | be0b4a671f90faab2598b6d58a691d506f46cfb5 | [
"MIT"
] | 432 | 2015-01-19T20:38:35.000Z | 2022-01-11T14:32:28.000Z | lib/tentacat/reactions.ex | hi-rustin/tentacat | be0b4a671f90faab2598b6d58a691d506f46cfb5 | [
"MIT"
] | 183 | 2015-01-19T08:55:29.000Z | 2022-03-01T20:26:03.000Z | lib/tentacat/reactions.ex | hi-rustin/tentacat | be0b4a671f90faab2598b6d58a691d506f46cfb5 | [
"MIT"
] | 189 | 2015-01-04T14:56:59.000Z | 2021-12-14T20:48:18.000Z | defmodule Tentacat.Reactions do
alias Tentacat.Client
@doc """
Delete a reaction.
## Example
Tentacat.Reactions.delete(client, reaction_id)
More info at: https://developer.github.com/v3/reactions/#delete-a-reaction
"""
@spec delete(Client.t(), integer) :: Tentacat.response()
def delete(clien... | 21 | 76 | 0.688095 |
ab6e6ca66dec443d18c6e021bd7499c87ec8ca84 | 10,805 | ex | Elixir | clients/android_publisher/lib/google_api/android_publisher/v3/api/reviews.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/android_publisher/lib/google_api/android_publisher/v3/api/reviews.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/android_publisher/lib/google_api/android_publisher/v3/api/reviews.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.876984 | 196 | 0.61851 |
ab6e7f2ecfd77fbf1e36a473bcdecc31805d4b78 | 706 | ex | Elixir | lib/app_api_web/gettext.ex | turbo-play/phoenix-services | 9d3318c6b5d5ce6dead441758fc86ec34892b0f6 | [
"Apache-2.0"
] | 2 | 2018-07-05T15:13:12.000Z | 2021-12-16T08:58:56.000Z | lib/app_api_web/gettext.ex | turbo-play/phoenix-services | 9d3318c6b5d5ce6dead441758fc86ec34892b0f6 | [
"Apache-2.0"
] | null | null | null | lib/app_api_web/gettext.ex | turbo-play/phoenix-services | 9d3318c6b5d5ce6dead441758fc86ec34892b0f6 | [
"Apache-2.0"
] | 2 | 2018-08-13T21:37:00.000Z | 2021-11-10T04:08:26.000Z | defmodule AppApiWeb.Gettext do
@moduledoc """
A module providing Internationalization with a gettext-based API.
By using [Gettext](https://hexdocs.pm/gettext),
your module gains a set of macros for translations, for example:
import AppApiWeb.Gettext
# Simple translation
gettext "Here is the... | 28.24 | 72 | 0.679887 |
ab6e800f1bb8c8f2798f62df9523f282dc6087a1 | 2,030 | exs | Elixir | talks-articles/frameworks/phoenix/book--programming-phoenix-ge-1.4/videologue/config/prod.exs | abhishekkr/tutorials_as_code | f355dc62a5025b710ac6d4a6ac2f9610265fad54 | [
"MIT"
] | 37 | 2015-02-01T23:16:39.000Z | 2021-12-22T16:50:48.000Z | talks-articles/frameworks/phoenix/book--programming-phoenix-ge-1.4/videologue/config/prod.exs | abhishekkr/tutorials_as_code | f355dc62a5025b710ac6d4a6ac2f9610265fad54 | [
"MIT"
] | 1 | 2017-03-02T04:55:48.000Z | 2018-01-14T10:51:11.000Z | talks-articles/frameworks/phoenix/book--programming-phoenix-ge-1.4/videologue/config/prod.exs | abhishekkr/tutorials_as_code | f355dc62a5025b710ac6d4a6ac2f9610265fad54 | [
"MIT"
] | 15 | 2015-03-02T08:09:01.000Z | 2021-06-10T03:25:41.000Z | use Mix.Config
# For production, don't forget to configure the url host
# to something meaningful, Phoenix uses this information
# when generating URLs.
#
# Note we also include the path to a cache manifest
# containing the digested version of static files. This
# manifest is generated by the `mix phx.digest` task,
# ... | 36.25 | 66 | 0.717241 |
ab6e8c8527ef0f72784d42b884cee54ab5e02870 | 8,801 | ex | Elixir | lib/live_dendron/tree_editor/tree_editor.ex | kuroda/live_dendron | dd21ed5c53456765ea0c50a22bdf915c0c55c92f | [
"MIT"
] | 5 | 2019-07-27T14:57:38.000Z | 2020-11-01T00:26:32.000Z | lib/live_dendron/tree_editor/tree_editor.ex | kuroda/live_dendron | dd21ed5c53456765ea0c50a22bdf915c0c55c92f | [
"MIT"
] | 6 | 2019-07-29T03:45:23.000Z | 2021-05-10T03:49:39.000Z | lib/live_dendron/tree_editor/tree_editor.ex | kuroda/live_dendron | dd21ed5c53456765ea0c50a22bdf915c0c55c92f | [
"MIT"
] | 2 | 2019-07-29T02:17:02.000Z | 2020-02-17T17:59:05.000Z | defmodule LiveDendron.TreeEditor do
alias LiveDendron.Core
alias LiveDendron.TeamEditor
alias LiveDendron.TreeEditor
@doc false
def toggle_group_expanded(%TeamEditor{} = editor, uuid) do
tree_editor = expand_or_shrink(editor.tree_editor, uuid)
%{editor | tree_editor: tree_editor}
end
defp expand... | 34.924603 | 95 | 0.675037 |
ab6e93ae624d2fe838dd33d6c76b86cdb52c9ceb | 955 | exs | Elixir | apps/bbq_ui/config/rpi3/prod.exs | easco/ex_bbq | d736204bb124ea256907629f5025c3abaf08c0bb | [
"BSD-3-Clause"
] | 2 | 2016-09-22T13:32:35.000Z | 2017-02-17T20:26:50.000Z | apps/bbq_ui/config/rpi3/prod.exs | easco/ex_bbq | d736204bb124ea256907629f5025c3abaf08c0bb | [
"BSD-3-Clause"
] | null | null | null | apps/bbq_ui/config/rpi3/prod.exs | easco/ex_bbq | d736204bb124ea256907629f5025c3abaf08c0bb | [
"BSD-3-Clause"
] | null | null | null | use Mix.Config
# For production, we configure the host to read the PORT
# from the system environment. Therefore, you will need
# to set PORT=80 before running your server.
#
# You should also configure the url host to something
# meaningful, we use this information when generating URLs.
#
# Finally, we also include t... | 31.833333 | 61 | 0.756021 |
ab6e99336d2b5bc1295f7406bbb0e7aacb927a1b | 1,883 | ex | Elixir | apps/tai/lib/tai/test_support/mocks/responses/orders/fill_or_kill.ex | yurikoval/tai | 94254b45d22fa0307b01577ff7c629c7280c0295 | [
"MIT"
] | null | null | null | apps/tai/lib/tai/test_support/mocks/responses/orders/fill_or_kill.ex | yurikoval/tai | 94254b45d22fa0307b01577ff7c629c7280c0295 | [
"MIT"
] | 78 | 2020-10-12T06:21:43.000Z | 2022-03-28T09:02:00.000Z | apps/tai/lib/tai/test_support/mocks/responses/orders/fill_or_kill.ex | yurikoval/tai | 94254b45d22fa0307b01577ff7c629c7280c0295 | [
"MIT"
] | null | null | null | defmodule Tai.TestSupport.Mocks.Responses.Orders.FillOrKill do
alias Tai.TestSupport.Mocks
alias Tai.Orders
@type buy_limit :: Tai.Orders.Submissions.BuyLimitFok.t()
@type sell_limit :: Tai.Orders.Submissions.SellLimitFok.t()
@type submission :: buy_limit | sell_limit
@type venue_order_id :: Tai.Orders.Ord... | 28.969231 | 72 | 0.694636 |
ab6eb5247b508bb721b98d1687e08a03894d0a4f | 3,279 | ex | Elixir | lib/poxa/web_hook/event_data.ex | robktek/poxa | 1c330789735f9bc1e91c3dfa7a10edb3aff50aab | [
"MIT"
] | null | null | null | lib/poxa/web_hook/event_data.ex | robktek/poxa | 1c330789735f9bc1e91c3dfa7a10edb3aff50aab | [
"MIT"
] | null | null | null | lib/poxa/web_hook/event_data.ex | robktek/poxa | 1c330789735f9bc1e91c3dfa7a10edb3aff50aab | [
"MIT"
] | null | null | null | defmodule Poxa.WebHook.EventData do
@moduledoc """
This module contains a set of functions to generate web hook events.
Take a look at https://pusher.com/docs/webhooks#events for more details.
"""
alias Poxa.PresenceSubscription
@doc """
Returns a map describing the event happening whenever any channel... | 32.465347 | 129 | 0.68527 |
ab6ebd524df292f3fcfa34763a04f7bae8144fef | 250 | ex | Elixir | lib/hexpm/repository/repository_user.ex | findmypast/hexfmp | 38a50f5e1057833fd98748faac230bf4b9cc26a3 | [
"Apache-2.0"
] | null | null | null | lib/hexpm/repository/repository_user.ex | findmypast/hexfmp | 38a50f5e1057833fd98748faac230bf4b9cc26a3 | [
"Apache-2.0"
] | null | null | null | lib/hexpm/repository/repository_user.ex | findmypast/hexfmp | 38a50f5e1057833fd98748faac230bf4b9cc26a3 | [
"Apache-2.0"
] | null | null | null | defmodule Hexpm.Repository.RepositoryUser do
use Hexpm.Web, :schema
schema "repository_users" do
field :role, :string
belongs_to :repository, Repository
belongs_to :user, User
end
@roles ["owner", "admin", "write", "read"]
end
| 19.230769 | 44 | 0.696 |
ab6ec9337a9ca5f3ad45900f7717d0c959c861f9 | 11,782 | exs | Elixir | test/parse_owners_test.exs | ansonlc/bors-ng | 524ae21a471e25c11bf02c87c9ad3f6cf997ac7d | [
"Apache-2.0"
] | null | null | null | test/parse_owners_test.exs | ansonlc/bors-ng | 524ae21a471e25c11bf02c87c9ad3f6cf997ac7d | [
"Apache-2.0"
] | 1 | 2020-03-07T08:28:14.000Z | 2020-03-07T08:28:14.000Z | test/parse_owners_test.exs | ansonlc/bors-ng | 524ae21a471e25c11bf02c87c9ad3f6cf997ac7d | [
"Apache-2.0"
] | null | null | null | defmodule BorsNG.ParseTest do
use ExUnit.Case
test "BorsNG.FilePattern can exist" do
%BorsNG.FilePattern{}
end
test "BorsNG.CodeOwners can exist" do
%BorsNG.CodeOwners{}
end
test "Parse simple file" do
IO.inspect(File.cwd())
{:ok, codeowner} = File.read("test/testdata/code_owners_1")
... | 31.757412 | 114 | 0.681633 |
ab6eebdd088a1376ccb83e7d4ee0a7269926de32 | 10,172 | exs | Elixir | test/swoosh/adapters/mailgun_test.exs | ntodd/swoosh | e2cc97b695543f9ef29c02d0c50dd692107762b0 | [
"MIT"
] | null | null | null | test/swoosh/adapters/mailgun_test.exs | ntodd/swoosh | e2cc97b695543f9ef29c02d0c50dd692107762b0 | [
"MIT"
] | null | null | null | test/swoosh/adapters/mailgun_test.exs | ntodd/swoosh | e2cc97b695543f9ef29c02d0c50dd692107762b0 | [
"MIT"
] | null | null | null | defmodule Swoosh.Adapters.MailgunTest do
use Swoosh.AdapterCase, async: true
import Swoosh.Email
alias Swoosh.Adapters.Mailgun
@success_response """
{
"message": "Queued. Thank you.",
"id": "<20111114174239.25659.5817@samples.mailgun.org>"
}
"""
setup do
bypass = Bypass.open()
... | 32.394904 | 116 | 0.570979 |
ab6ef14d1cbf10aae81cdde941b3ff15125ab132 | 1,033 | exs | Elixir | test/cli_test.exs | kanmo/ehee | 0d0abca877841dae45e0c26ff5ef6b4814b6f623 | [
"MIT"
] | 1 | 2016-09-26T14:29:08.000Z | 2016-09-26T14:29:08.000Z | test/cli_test.exs | kanmo/ehee | 0d0abca877841dae45e0c26ff5ef6b4814b6f623 | [
"MIT"
] | null | null | null | test/cli_test.exs | kanmo/ehee | 0d0abca877841dae45e0c26ff5ef6b4814b6f623 | [
"MIT"
] | null | null | null | defmodule CliTest do
use ExUnit.Case
doctest Ehee
import Ehee.CLI, only: [ parse_args: 1 ]
test ":help returned by option parsing with -h and --help options" do
assert parse_args(["-h", "anything"]) == :help
assert parse_args(["--help", "anything"]) == :help
end
test "gists method name returned b... | 36.892857 | 94 | 0.631171 |
ab6eff5ac94a0001a4445464fd342c8c357d7d0f | 2,305 | ex | Elixir | lib/daily_meals_web/telemetry.ex | vinolivae/daily_meals | 8f375cbb7eaf54abfa6b683705bb8075067f9078 | [
"MIT"
] | null | null | null | lib/daily_meals_web/telemetry.ex | vinolivae/daily_meals | 8f375cbb7eaf54abfa6b683705bb8075067f9078 | [
"MIT"
] | null | null | null | lib/daily_meals_web/telemetry.ex | vinolivae/daily_meals | 8f375cbb7eaf54abfa6b683705bb8075067f9078 | [
"MIT"
] | null | null | null | defmodule DailyMealsWeb.Telemetry do
use Supervisor
import Telemetry.Metrics
def start_link(arg) do
Supervisor.start_link(__MODULE__, arg, name: __MODULE__)
end
@impl true
def init(_arg) do
children = [
# Telemetry poller will execute the given period measurements
# every 10_000ms. Lea... | 32.013889 | 88 | 0.657267 |
ab6f04d192698ac06e9f4f8739001ea3234705ca | 1,088 | ex | Elixir | test/server.ex | ulfurinn/riemannx | 433290573726924c9b14a4777e4fc3ea80139bf4 | [
"MIT"
] | 27 | 2017-09-29T17:00:06.000Z | 2021-02-05T17:43:53.000Z | test/server.ex | ulfurinn/riemannx | 433290573726924c9b14a4777e4fc3ea80139bf4 | [
"MIT"
] | 18 | 2017-10-18T13:18:34.000Z | 2020-04-02T11:27:46.000Z | test/server.ex | ulfurinn/riemannx | 433290573726924c9b14a4777e4fc3ea80139bf4 | [
"MIT"
] | 3 | 2019-03-18T10:28:54.000Z | 2019-10-21T11:13:36.000Z | defmodule RiemannxTest.Server do
@moduledoc """
A simple behaviour module for implementing test servers.
"""
# ===========================================================================
# Callbacks
# ===========================================================================
@callback start(p :: pid()) ... | 40.296296 | 79 | 0.379596 |
ab6f18a56406c699758038f66fe61686b6bcbba2 | 2,044 | ex | Elixir | clients/cloud_asset/lib/google_api/cloud_asset/v1/model/analyze_iam_policy_longrunning_request.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/cloud_asset/lib/google_api/cloud_asset/v1/model/analyze_iam_policy_longrunning_request.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/cloud_asset/lib/google_api/cloud_asset/v1/model/analyze_iam_policy_longrunning_request.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 40.88 | 193 | 0.770059 |
ab6f1f6765ff2055b6bae4688e229f2743dfc3ab | 442 | ex | Elixir | test/support/order_non_negative_total.ex | IvanRublev/Nestru | 4e65cdbeec812de718fc3373c2f1ab92c4fbcca7 | [
"MIT"
] | 15 | 2021-11-10T23:15:29.000Z | 2022-03-26T01:03:38.000Z | test/support/order_non_negative_total.ex | IvanRublev/Nestru | 4e65cdbeec812de718fc3373c2f1ab92c4fbcca7 | [
"MIT"
] | null | null | null | test/support/order_non_negative_total.ex | IvanRublev/Nestru | 4e65cdbeec812de718fc3373c2f1ab92c4fbcca7 | [
"MIT"
] | null | null | null | defmodule OrderNonNegativeTotal do
@moduledoc false
defstruct [:max_total]
defimpl Nestru.Decoder do
def from_map_hint(_value, _context, map) do
{:ok,
if map.max_total > 0 do
%{}
end}
end
end
defimpl Nestru.Encoder do
def to_map(struct) do
map = Map.from_struc... | 15.785714 | 47 | 0.570136 |
ab6f36b0e2d45bc2d1caf94820293a823010f2f4 | 139 | ex | Elixir | lib/declaimer.ex | Joe-noh/declaimer | b120e9c1367f42084abe06d5e753578fe768fff8 | [
"MIT"
] | null | null | null | lib/declaimer.ex | Joe-noh/declaimer | b120e9c1367f42084abe06d5e753578fe768fff8 | [
"MIT"
] | 2 | 2017-10-09T15:19:46.000Z | 2017-10-09T15:19:46.000Z | lib/declaimer.ex | Joe-noh/declaimer | b120e9c1367f42084abe06d5e753578fe768fff8 | [
"MIT"
] | null | null | null | defmodule Declaimer do
defmacro __using__(_) do
quote do
import Declaimer.DSL
import Declaimer.Builder
end
end
end
| 15.444444 | 30 | 0.690647 |
ab6f44509937c002388556189dec10af73efe988 | 2,333 | ex | Elixir | lib/celery/ast.ex | bahanni/custom_rpi4 | ddefa85d30bacaae40151a63a9a0ebbf4ad30ed5 | [
"MIT"
] | null | null | null | lib/celery/ast.ex | bahanni/custom_rpi4 | ddefa85d30bacaae40151a63a9a0ebbf4ad30ed5 | [
"MIT"
] | null | null | null | lib/celery/ast.ex | bahanni/custom_rpi4 | ddefa85d30bacaae40151a63a9a0ebbf4ad30ed5 | [
"MIT"
] | null | null | null | defmodule FarmbotOS.Celery.AST do
@moduledoc """
Handy functions for turning various data types into Farbot Celery Script
Ast nodes.
"""
alias FarmbotOS.Celery.AST
@typedoc "Arguments to a ast node."
@type args :: map
@typedoc "Body of a ast node."
@type body :: [t]
@typedoc "Kind of a ast node."... | 25.358696 | 79 | 0.585512 |
ab6f4e4b5def7cd75e25f2a04460c85ca1fc8e93 | 2,230 | ex | Elixir | lib/opencov/services/users.ex | yknx4/opencov | dc961a41e29b41b0657bc2a64bb67350a65477b8 | [
"MIT"
] | 8 | 2021-08-22T10:37:57.000Z | 2022-01-10T11:27:06.000Z | lib/opencov/services/users.ex | yknx4/librecov | dc961a41e29b41b0657bc2a64bb67350a65477b8 | [
"MIT"
] | 109 | 2021-08-20T04:08:04.000Z | 2022-01-03T07:39:18.000Z | lib/opencov/services/users.ex | Librecov/librecov | dc961a41e29b41b0657bc2a64bb67350a65477b8 | [
"MIT"
] | null | null | null | defmodule Librecov.Services.Users do
alias Librecov.User
alias Librecov.Repo
alias Librecov.User.Authorization
alias Librecov.Services.Authorizations
use EctoResource
using_repo(Repo) do
resource(User)
end
def change_account(account \\ %User{}) do
User.changeset(account, %{})
end
defp ex... | 26.547619 | 97 | 0.618834 |
ab6f575868d5c29228dacc92e4ee91a777be7a1d | 2,254 | exs | Elixir | test/http_test.exs | sdanzan/feedistiller | c1f4cdcc3991c84052f1269225971365207b3acf | [
"Apache-2.0"
] | null | null | null | test/http_test.exs | sdanzan/feedistiller | c1f4cdcc3991c84052f1269225971365207b3acf | [
"Apache-2.0"
] | null | null | null | test/http_test.exs | sdanzan/feedistiller | c1f4cdcc3991c84052f1269225971365207b3acf | [
"Apache-2.0"
] | null | null | null | defmodule Feedistiller.Http.Test do
use ExUnit.Case, async: false
import Mock
doctest Feedistiller.Http
alias Feedistiller.Http
test "stream_get!/6" do
with_mock HTTPoison, [get!: fn
(_url, [], [stream_to: _, hackney: _]) ->
data = "DATA"
send(self(), %HTTPoison.AsyncStatus{c... | 28.897436 | 80 | 0.531943 |
ab6f8dbc4011c712138269d7de927683c2724d6a | 20,176 | exs | Elixir | test/ecto/association_test.exs | victorsolis/ecto | 6c0dbf1ee2afd9b5bdf1f3feee8d361c8197c99a | [
"Apache-2.0"
] | null | null | null | test/ecto/association_test.exs | victorsolis/ecto | 6c0dbf1ee2afd9b5bdf1f3feee8d361c8197c99a | [
"Apache-2.0"
] | null | null | null | test/ecto/association_test.exs | victorsolis/ecto | 6c0dbf1ee2afd9b5bdf1f3feee8d361c8197c99a | [
"Apache-2.0"
] | null | null | null | defmodule Ecto.AssociationTest do
use ExUnit.Case, async: true
doctest Ecto.Association
import Ecto
import Ecto.Query, only: [from: 2]
alias __MODULE__.Author
alias __MODULE__.Comment
alias __MODULE__.Permalink
alias __MODULE__.Post
alias __MODULE__.Summary
alias __MODULE__.Email
alias __MODULE_... | 39.100775 | 121 | 0.613501 |
ab6fb477a334d06695c0cfb33dce6366f6998566 | 1,764 | ex | Elixir | apps/ae_channel_interface/lib/ae_channel_interface_web.ex | davidyuk/ae-channel-service | bfde1d3e6ca4fc6bcc4a387381d4838cd3f1ec42 | [
"0BSD"
] | 9 | 2019-04-24T17:21:18.000Z | 2021-07-19T16:41:33.000Z | apps/ae_channel_interface/lib/ae_channel_interface_web.ex | davidyuk/ae-channel-service | bfde1d3e6ca4fc6bcc4a387381d4838cd3f1ec42 | [
"0BSD"
] | 68 | 2019-08-06T09:25:13.000Z | 2021-03-10T11:04:41.000Z | apps/ae_channel_interface/lib/ae_channel_interface_web.ex | isabella232/ae-channel-service | bfde1d3e6ca4fc6bcc4a387381d4838cd3f1ec42 | [
"ISC"
] | 6 | 2019-10-23T18:23:48.000Z | 2022-03-06T07:02:45.000Z | defmodule AeChannelInterfaceWeb do
@moduledoc """
The entrypoint for defining your web interface, such
as controllers, views, channels and so on.
This can be used in your application as:
use AeChannelInterfaceWeb, :controller
use AeChannelInterfaceWeb, :view
The definitions below will be execut... | 25.2 | 83 | 0.712585 |
ab6fcda7cbb1fb0a54eb79c943fb4e555b445a55 | 2,274 | ex | Elixir | clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1p3beta1_annotate_video_progress.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1p3beta1_annotate_video_progress.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1p3beta1_annotate_video_progress.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 36.095238 | 206 | 0.762973 |
ab6fe07659bad217de4938aedf618db1a4fbbd09 | 10,009 | ex | Elixir | lib/mix/tasks/nerves_hub.device.ex | pdgonzalez872/nerves_hub_cli | 0554bcb5931dee5effccd4359129ca7ee704884e | [
"Apache-2.0"
] | null | null | null | lib/mix/tasks/nerves_hub.device.ex | pdgonzalez872/nerves_hub_cli | 0554bcb5931dee5effccd4359129ca7ee704884e | [
"Apache-2.0"
] | null | null | null | lib/mix/tasks/nerves_hub.device.ex | pdgonzalez872/nerves_hub_cli | 0554bcb5931dee5effccd4359129ca7ee704884e | [
"Apache-2.0"
] | null | null | null | defmodule Mix.Tasks.NervesHub.Device do
use Mix.Task
import Mix.NervesHubCLI.Utils
alias Mix.NervesHubCLI.Shell
@shortdoc "Manages your NervesHub devices"
@moduledoc """
Manage your NervesHub devices.
## create
Create a new NervesHub device. The shell will prompt for information about the
device... | 26.978437 | 94 | 0.628135 |
ab6fe1e2aec4d270dfc3ca23ce53fe45e94fd527 | 110 | ex | Elixir | lib/flame_on.ex | DockYard/flame_on | 47580c687c131c23b3a6c435e243dba3d18dc93d | [
"MIT"
] | 55 | 2022-02-23T20:36:43.000Z | 2022-03-31T13:55:28.000Z | lib/flame_on.ex | DockYard/flame_on | 47580c687c131c23b3a6c435e243dba3d18dc93d | [
"MIT"
] | 7 | 2022-02-24T00:23:10.000Z | 2022-03-28T18:23:30.000Z | lib/flame_on.ex | DockYard/flame_on | 47580c687c131c23b3a6c435e243dba3d18dc93d | [
"MIT"
] | 1 | 2022-02-26T03:27:00.000Z | 2022-02-26T03:27:00.000Z | defmodule FlameOn do
@moduledoc """
For Documentation on FlameOn, see the [README](readme.html)
"""
end
| 18.333333 | 61 | 0.7 |
ab6fecbb34432b2713cec24b2eb023356f484d32 | 438 | ex | Elixir | web/views/error_view.ex | zombalo/cgrates_web_jsonapi | 47845be4311839fe180cc9f2c7c6795649da4430 | [
"MIT"
] | null | null | null | web/views/error_view.ex | zombalo/cgrates_web_jsonapi | 47845be4311839fe180cc9f2c7c6795649da4430 | [
"MIT"
] | null | null | null | web/views/error_view.ex | zombalo/cgrates_web_jsonapi | 47845be4311839fe180cc9f2c7c6795649da4430 | [
"MIT"
] | null | null | null | defmodule CgratesWebJsonapi.ErrorView do
use CgratesWebJsonapi.Web, :view
def render("404.json", _assigns) do
%{errors: %{detail: "Page not found"}}
end
def render("500.json", _assigns) do
%{errors: %{detail: "Internal server error"}}
end
# In case no render clause matches or no
# template is f... | 24.333333 | 49 | 0.696347 |
ab70096e78e8483021c317481c5b72641911e0db | 99,808 | ex | Elixir | clients/api_gateway/lib/google_api/api_gateway/v1beta/api/projects.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/api_gateway/lib/google_api/api_gateway/v1beta/api/projects.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/api_gateway/lib/google_api/api_gateway/v1beta/api/projects.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 45.973284 | 607 | 0.619399 |
ab70148e2d1db2974e250475ce82d8407a7cfc41 | 70 | ex | Elixir | phoenix_crud/web/views/welcome_view.ex | enilsen16/elixir | b4d1d45858a25e4beb39e07de8685f3d93d6a520 | [
"MIT"
] | null | null | null | phoenix_crud/web/views/welcome_view.ex | enilsen16/elixir | b4d1d45858a25e4beb39e07de8685f3d93d6a520 | [
"MIT"
] | null | null | null | phoenix_crud/web/views/welcome_view.ex | enilsen16/elixir | b4d1d45858a25e4beb39e07de8685f3d93d6a520 | [
"MIT"
] | null | null | null | defmodule PhoenixCrud.WelcomeView do
use PhoenixCrud.Web, :view
end
| 17.5 | 36 | 0.814286 |
ab70163ff54d6c97def3e5ef094f1d711dd0d6a7 | 4,184 | ex | Elixir | lib/mix/tasks/tilex/hdb.ex | Calamari/tilex | 00e3afb093d200c8810e83053f9dd052319dc45e | [
"MIT"
] | 1 | 2018-11-20T15:23:59.000Z | 2018-11-20T15:23:59.000Z | lib/mix/tasks/tilex/hdb.ex | Calamari/tilex | 00e3afb093d200c8810e83053f9dd052319dc45e | [
"MIT"
] | 14 | 2018-10-29T09:43:13.000Z | 2019-01-18T11:06:08.000Z | lib/mix/tasks/tilex/hdb.ex | Calamari/tilex | 00e3afb093d200c8810e83053f9dd052319dc45e | [
"MIT"
] | 1 | 2020-02-24T18:21:26.000Z | 2020-02-24T18:21:26.000Z | require Logger
defmodule Mix.Tasks.Tilex.Hdb do
use Mix.Task
@shortdoc "Replace development PostgreSQL DB with dump from a Heroku app's DB."
@moduledoc """
Run `mix tilex.hdb` to copy all data from the production database to the
development database.
"""
def run(args) do
parser =
Optimus.new... | 22.989011 | 88 | 0.538002 |
ab701943af99c257c7e54a8d6b263e74983d2bfb | 12,524 | ex | Elixir | lib/kaffy/resource_form.ex | WeDoProduct/kaffy | 47608d0b71e440a3b867c76c916712416260772a | [
"MIT"
] | null | null | null | lib/kaffy/resource_form.ex | WeDoProduct/kaffy | 47608d0b71e440a3b867c76c916712416260772a | [
"MIT"
] | null | null | null | lib/kaffy/resource_form.ex | WeDoProduct/kaffy | 47608d0b71e440a3b867c76c916712416260772a | [
"MIT"
] | 1 | 2021-01-05T23:06:37.000Z | 2021-01-05T23:06:37.000Z | defmodule Kaffy.ResourceForm do
use Phoenix.HTML
def form_label_string({field, options}), do: Map.get(options, :label, field)
def form_label_string(field) when is_atom(field), do: field
def form_label(form, field) do
label_text = form_label_string(field)
label(form, label_text)
end
def form_help_... | 30.771499 | 99 | 0.559326 |
ab704c79def06d64bd1892ca197540e531ba9c58 | 504 | exs | Elixir | mix.exs | RumataEstor/mix_mib | 7a8d1c31eb904ccdf76fa92fa8e0c568bb66db48 | [
"MIT"
] | null | null | null | mix.exs | RumataEstor/mix_mib | 7a8d1c31eb904ccdf76fa92fa8e0c568bb66db48 | [
"MIT"
] | null | null | null | mix.exs | RumataEstor/mix_mib | 7a8d1c31eb904ccdf76fa92fa8e0c568bb66db48 | [
"MIT"
] | null | null | null | defmodule MixMib.Mixfile do
use Mix.Project
def project do
[app: :mix_mib,
version: "1.0.0",
elixir: "~> 1.4",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: [],
description: "Erlang SNMP MIB compiler for Mix",
package: [
licenses: ["MIT"],... | 20.16 | 70 | 0.571429 |
ab704e3b2d2f03c12144bf16d6f4cfaa01e5c70b | 353 | ex | Elixir | lib/supabase_surface/components/icons/icon_chevrons_left.ex | treebee/supabase-surface | 5a184ca92323c085dd81e2fc8aa8c10367f2382e | [
"Apache-2.0"
] | 5 | 2021-06-08T08:02:43.000Z | 2022-02-09T23:13:46.000Z | lib/supabase_surface/components/icons/icon_chevrons_left.ex | treebee/supabase-surface | 5a184ca92323c085dd81e2fc8aa8c10367f2382e | [
"Apache-2.0"
] | null | null | null | lib/supabase_surface/components/icons/icon_chevrons_left.ex | treebee/supabase-surface | 5a184ca92323c085dd81e2fc8aa8c10367f2382e | [
"Apache-2.0"
] | 1 | 2021-07-14T05:20:31.000Z | 2021-07-14T05:20:31.000Z | defmodule SupabaseSurface.Components.Icons.IconChevronsLeft do
use SupabaseSurface.Components.Icon
@impl true
def render(assigns) do
icon_size = IconContainer.get_size(assigns.size)
~F"""
<IconContainer assigns={assigns}>
{Feathericons.chevrons_left(width: icon_size, height: icon_size)}
</... | 23.533333 | 71 | 0.728045 |
ab7057da700beb709f62b523b341d9fd98f2eda2 | 552 | ex | Elixir | web/router.ex | joeletizia/blogger | 64b7b5665cdd75cbf24f5cfd938faf5135eb914a | [
"MIT"
] | null | null | null | web/router.ex | joeletizia/blogger | 64b7b5665cdd75cbf24f5cfd938faf5135eb914a | [
"MIT"
] | null | null | null | web/router.ex | joeletizia/blogger | 64b7b5665cdd75cbf24f5cfd938faf5135eb914a | [
"MIT"
] | null | null | null | defmodule Blogger.Router do
use Blogger.Web, :router
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_flash
plug :protect_from_forgery
plug :put_secure_browser_headers
end
pipeline :api do
plug :accepts, ["json"]
end
scope "/", Blogger do
pipe_throu... | 19.714286 | 57 | 0.675725 |
ab706b54f931aced7b3e3301a5bc9e3f65da5f97 | 13,334 | exs | Elixir | test/ex_zample/ex_zample_test/insert_test.exs | ulissesalmeida/ex_zample | b177bdad8469ad7743bc247e9983bb6e65d1ac99 | [
"MIT"
] | 9 | 2020-02-29T10:44:06.000Z | 2020-11-19T21:49:02.000Z | test/ex_zample/ex_zample_test/insert_test.exs | ulissesalmeida/ex_zample | b177bdad8469ad7743bc247e9983bb6e65d1ac99 | [
"MIT"
] | 5 | 2020-03-28T15:41:06.000Z | 2020-10-07T08:31:40.000Z | test/ex_zample/ex_zample_test/insert_test.exs | ulissesalmeida/ex_zample | b177bdad8469ad7743bc247e9983bb6e65d1ac99 | [
"MIT"
] | 1 | 2020-03-28T15:14:52.000Z | 2020-03-28T15:14:52.000Z | defmodule ExZample.InsertTest do
use ExZample.DataCase, async: false
alias ExZample.RPG.{Attributes, Character, Class, Inventory, Item, Player}
import Mox
setup :verify_on_exit!
unless Version.match?(System.version(), ">= 1.8.0") do
# NOTE: Old Elixirs need explit allowance for mox
setup :set_mox_... | 26.042969 | 98 | 0.59232 |
ab70802d0c643f265f15306a1b12f02d7a02e001 | 2,616 | exs | Elixir | test/models/project_test.exs | roryqueue/code-corps-api | f23007e13fed2d7264fd2e2e97b1497488fb54ba | [
"MIT"
] | null | null | null | test/models/project_test.exs | roryqueue/code-corps-api | f23007e13fed2d7264fd2e2e97b1497488fb54ba | [
"MIT"
] | null | null | null | test/models/project_test.exs | roryqueue/code-corps-api | f23007e13fed2d7264fd2e2e97b1497488fb54ba | [
"MIT"
] | null | null | null | defmodule CodeCorps.ProjectTest do
use CodeCorps.ModelCase
alias CodeCorps.Project
@valid_attrs %{title: "A title"}
@invalid_attrs %{}
describe "changeset/3" do
test "with valid attributes is valid" do
changeset = Project.changeset(%Project{}, @valid_attrs)
assert changeset.valid?
end
... | 33.974026 | 117 | 0.686544 |
ab708b60b0d3d6f04dcfb54f788dc0a6f8a4b6e7 | 922 | ex | Elixir | test/support/channel_case.ex | bitpal/bitpal_demo | 989df08f60dadc5d4e340fef91890cf8bb3106ad | [
"BSD-3-Clause-Clear"
] | null | null | null | test/support/channel_case.ex | bitpal/bitpal_demo | 989df08f60dadc5d4e340fef91890cf8bb3106ad | [
"BSD-3-Clause-Clear"
] | 1 | 2021-06-04T13:53:01.000Z | 2021-06-04T13:53:01.000Z | test/support/channel_case.ex | bitpal/bitpal_demo | 989df08f60dadc5d4e340fef91890cf8bb3106ad | [
"BSD-3-Clause-Clear"
] | null | null | null | defmodule Demo.ChannelCase do
@moduledoc """
This module defines the test case to be used by
channel tests.
Such tests rely on `Phoenix.ChannelTest` and also
import other functionality to make it easier
to build common data structures and query the data layer.
Finally, if the test case interacts with th... | 26.342857 | 60 | 0.732104 |
ab70ab423fa774401e643c2580594c58b225ad24 | 1,694 | ex | Elixir | clients/civic_info/lib/google_api/civic_info/v2/model/channel.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/civic_info/lib/google_api/civic_info/v2/model/channel.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/civic_info/lib/google_api/civic_info/v2/model/channel.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 ... | 33.88 | 239 | 0.718418 |
ab710d49088f5a80afb2d019d7eb049b91cef0f9 | 896 | exs | Elixir | config/config.exs | joakimk/livecoding_workspace | 2d4a30c80e61503323bccf6a1f097d83242171da | [
"MIT",
"Unlicense"
] | 2 | 2016-07-02T21:53:17.000Z | 2016-07-07T16:35:58.000Z | config/config.exs | joakimk/livecoding_workspace | 2d4a30c80e61503323bccf6a1f097d83242171da | [
"MIT",
"Unlicense"
] | null | null | null | config/config.exs | joakimk/livecoding_workspace | 2d4a30c80e61503323bccf6a1f097d83242171da | [
"MIT",
"Unlicense"
] | 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
# Configures the endpoint
config :livecoding_workspace, LivecodingWorkspace.Endpoint,... | 37.333333 | 86 | 0.774554 |
ab71718a63bd46f16fc2426a91bb2875eb2dcdc8 | 13,150 | ex | Elixir | lib/elixir/lib/module/dispatch_tracker.ex | MSch/elixir | fc42dc9bb76ec1fdcfcbdbfb11fea6a845a62fca | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/module/dispatch_tracker.ex | MSch/elixir | fc42dc9bb76ec1fdcfcbdbfb11fea6a845a62fca | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/module/dispatch_tracker.ex | MSch/elixir | fc42dc9bb76ec1fdcfcbdbfb11fea6a845a62fca | [
"Apache-2.0"
] | null | null | null | # This is a module Elixir responsible for tracking
# calls in order to extract Elixir modules' behaviour
# during compilation time.
#
# ## Implementation
#
# The implementation uses the digraph module to track
# all dependencies. The graph starts with three main
# vertices:
#
# * `:local` - points to local functions
# ... | 28.964758 | 99 | 0.655361 |
ab7171e31c76170c1c7f682b49151f4f059deacc | 1,569 | ex | Elixir | lib/mix/tasks/compile.cargo.ex | Pragmatic-Elixir-Meetup/rpi_video | eb70bc19eb96ee2e617ae3a6477480e5c41cbe3a | [
"MIT"
] | 1 | 2019-12-12T09:00:18.000Z | 2019-12-12T09:00:18.000Z | lib/mix/tasks/compile.cargo.ex | silathdiir/rpi_video | eb70bc19eb96ee2e617ae3a6477480e5c41cbe3a | [
"MIT"
] | 2 | 2019-12-12T01:25:26.000Z | 2019-12-12T17:51:33.000Z | lib/mix/tasks/compile.cargo.ex | Pragmatic-Elixir-Meetup/rpi_video | eb70bc19eb96ee2e617ae3a6477480e5c41cbe3a | [
"MIT"
] | 1 | 2019-12-12T09:13:47.000Z | 2019-12-12T09:13:47.000Z | defmodule Mix.Tasks.Compile.Cargo do
use Mix.Task
@shortdoc "Builds Rust part."
def run(args) do
Mix.shell().print_app()
target = parse_target(args)
build(target)
copy(target)
end
defp bin_filename(:mac), do: "mock_rpi_video"
defp bin_filename(:rpi), do: "real_rpi_video"
defp build(ta... | 19.860759 | 97 | 0.618866 |
ab7172db4adf7b039665cc3724c9b09b6b64e35c | 1,922 | ex | Elixir | clients/document_ai/lib/google_api/document_ai/v1beta3/model/google_cloud_documentai_v1beta3_document_page_detected_language.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/document_ai/lib/google_api/document_ai/v1beta3/model/google_cloud_documentai_v1beta3_document_page_detected_language.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/document_ai/lib/google_api/document_ai/v1beta3/model/google_cloud_documentai_v1beta3_document_page_detected_language.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... | 34.945455 | 208 | 0.743496 |
ab71ac52186294cb1e8c47fdc20e7a057cee787a | 2,147 | ex | Elixir | data/route/rsw_elmshorn.ex | breunigs/veloroute | ac3b1eeb2ef2369c27186a138f6ffd8284652dab | [
"0BSD"
] | 12 | 2018-06-15T10:18:43.000Z | 2022-01-24T12:50:54.000Z | data/route/rsw_elmshorn.ex | breunigs/veloroute | ac3b1eeb2ef2369c27186a138f6ffd8284652dab | [
"0BSD"
] | 15 | 2018-06-21T18:04:12.000Z | 2021-10-16T12:54:39.000Z | data/route/rsw_elmshorn.ex | breunigs/veloroute | ac3b1eeb2ef2369c27186a138f6ffd8284652dab | [
"0BSD"
] | 2 | 2020-03-09T19:21:36.000Z | 2022-01-16T03:29:51.000Z | defmodule Data.Route.RSWElmshorn do
@behaviour Route.Behaviour
def id(), do: "rsw-elmshorn"
def type(), do: :rsw
def color(), do: "#000000"
def name(), do: "Radschnellweg Elmshorn"
def article(), do: "rsw-elmshorn"
def osm_relation_ref(), do: nil
forward = %Video.Track{
group: "Radschnellweg Elmsh... | 43.816327 | 75 | 0.612948 |
ab71d60a7b167207b329bd5ccff3d6b8a7e38da1 | 1,797 | ex | Elixir | elixir/lib/junks_web/router.ex | crappygraphix/junks | a56b5b86e1a5cbcf0a71fc44d6292d6bcd525b76 | [
"Apache-2.0"
] | 1 | 2019-04-29T17:46:44.000Z | 2019-04-29T17:46:44.000Z | elixir/lib/junks_web/router.ex | crappygraphix/junks | a56b5b86e1a5cbcf0a71fc44d6292d6bcd525b76 | [
"Apache-2.0"
] | null | null | null | elixir/lib/junks_web/router.ex | crappygraphix/junks | a56b5b86e1a5cbcf0a71fc44d6292d6bcd525b76 | [
"Apache-2.0"
] | null | null | null | defmodule JunksWeb.Router.AlterSecureHeaders do
alias Plug.Conn
def init(default), do: default
def call(conn, _opts) do
Conn.delete_resp_header(conn, "x-content-type-options")
end
end
defmodule JunksWeb.Router do
@moduledoc false
use JunksWeb, :router
pipeline :browser do
plug :accepts, ["htm... | 29.459016 | 77 | 0.688926 |
ab71e6ac8c391b9ca83309ad7faa4391f1c540e5 | 5,451 | exs | Elixir | test/sanbase_web/graphql/entity/get_most_recent_api_test.exs | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | 1 | 2022-01-30T19:51:39.000Z | 2022-01-30T19:51:39.000Z | test/sanbase_web/graphql/entity/get_most_recent_api_test.exs | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | null | null | null | test/sanbase_web/graphql/entity/get_most_recent_api_test.exs | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | null | null | null | defmodule SanbaseWeb.Graphql.GetMostRecentApitest do
use SanbaseWeb.ConnCase, async: true
import SanbaseWeb.Graphql.TestHelpers
import Sanbase.Factory
alias Sanbase.Timeline.TimelineEvent
setup do
user = insert(:user)
conn = setup_jwt_auth(build_conn(), user)
{:ok, conn: conn, user: user}
en... | 41.610687 | 88 | 0.690699 |
ab722d6311cf61b567e3115d5d9bcf103ebd5718 | 1,241 | exs | Elixir | test/nys_etl/monitoring/transformer/failure_reporter_test.exs | RatioPBC/epi-viaduct-nys | 99fb637785ea207aee5449fa01fa59dd18ec8bf2 | [
"MIT"
] | 2 | 2021-06-22T21:01:49.000Z | 2021-11-04T18:36:48.000Z | test/nys_etl/monitoring/transformer/failure_reporter_test.exs | RatioPBC/epi-viaduct-nys | 99fb637785ea207aee5449fa01fa59dd18ec8bf2 | [
"MIT"
] | null | null | null | test/nys_etl/monitoring/transformer/failure_reporter_test.exs | RatioPBC/epi-viaduct-nys | 99fb637785ea207aee5449fa01fa59dd18ec8bf2 | [
"MIT"
] | null | null | null | defmodule NYSETL.Monitoring.Transformer.FailureReporterTest do
use NYSETL.DataCase, async: false
use Oban.Testing, repo: NYSETL.Repo
alias NYSETL.{Repo, ECLRS}
alias NYSETL.Monitoring.Transformer.FailureReporter
setup do
{:ok, _oban} = start_supervised({Oban, queues: [commcare: 1], repo: NYSETL.Repo})
... | 35.457143 | 94 | 0.701048 |
ab7231be9ca404e29ffd683cba8c6b1f74d86b6a | 595 | exs | Elixir | test/number/number_string_test.exs | jeroenvisser101/cldr_numbers | 9a529817fe8d9f61be330fa970a5a0ffa443a177 | [
"Apache-2.0"
] | 21 | 2019-12-21T23:25:14.000Z | 2022-03-22T00:40:34.000Z | test/number/number_string_test.exs | jeroenvisser101/cldr_numbers | 9a529817fe8d9f61be330fa970a5a0ffa443a177 | [
"Apache-2.0"
] | 15 | 2019-06-14T16:29:23.000Z | 2022-03-02T07:56:33.000Z | test/number/number_string_test.exs | jeroenvisser101/cldr_numbers | 9a529817fe8d9f61be330fa970a5a0ffa443a177 | [
"Apache-2.0"
] | 7 | 2017-10-05T11:35:36.000Z | 2018-08-20T12:17:03.000Z | defmodule Number.String.Test do
use ExUnit.Case, async: true
alias Cldr.Number
test "that the regexp for latin1 is correct" do
assert Number.String.latin1() == ~r/([\x00-\x7F])/
end
test "that the regexp for not latin1 is correct" do
assert Number.String.not_latin1() == ~r/([^\x00-\x7F])/
end
... | 25.869565 | 74 | 0.67563 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.