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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e8a1b3c95b7f544f30f1cab1db2eff5b4b002412 | 870 | exs | Elixir | test_app/config/config.exs | valiot/simple_graphql_client | 455be8c7f1fdbf2f7ffc71a0402f8604ec8243b6 | [
"MIT"
] | 20 | 2018-11-04T17:55:55.000Z | 2021-05-15T13:00:57.000Z | test_app/config/config.exs | valiot/simple_graphql_client | 455be8c7f1fdbf2f7ffc71a0402f8604ec8243b6 | [
"MIT"
] | 1 | 2019-04-29T06:29:30.000Z | 2019-08-05T20:26:52.000Z | test_app/config/config.exs | valiot/simple_graphql_client | 455be8c7f1fdbf2f7ffc71a0402f8604ec8243b6 | [
"MIT"
] | 4 | 2019-03-14T23:07:49.000Z | 2019-08-05T18:34:37.000Z | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
#
# This configuration file is loaded before any dependency and
# is restricted to this project.
use Mix.Config
# Configures the endpoint
config :absinthe_test_app, AbsintheTestAppWeb.Endpoint,
u... | 37.826087 | 86 | 0.775862 |
e8a1c4802b31b4e052d374e8c5e9ac91b80712e5 | 3,541 | ex | Elixir | lib/edgedb/types/named_tuple.ex | f0lio/edgedb-elixir | b285bd8037b0b951aabfa1d1733889880f8bfd66 | [
"MIT"
] | null | null | null | lib/edgedb/types/named_tuple.ex | f0lio/edgedb-elixir | b285bd8037b0b951aabfa1d1733889880f8bfd66 | [
"MIT"
] | null | null | null | lib/edgedb/types/named_tuple.ex | f0lio/edgedb-elixir | b285bd8037b0b951aabfa1d1733889880f8bfd66 | [
"MIT"
] | null | null | null | defmodule EdgeDB.NamedTuple do
@moduledoc """
An immutable value representing an EdgeDB named tuple value.
`EdgeDB.NamedTuple` implements `Access` behavior to access fields
by index or key and `Enumerable` protocol for iterating over tuple values.
```elixir
iex(1)> {:ok, pid} = EdgeDB.start_link()
iex... | 23.296053 | 96 | 0.622705 |
e8a21a609477b94b8d34e71e5163d80123d78f9f | 3,055 | ex | Elixir | clients/os_config/lib/google_api/os_config/v1/model/vulnerability_report_vulnerability_details.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/os_config/lib/google_api/os_config/v1/model/vulnerability_report_vulnerability_details.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/os_config/lib/google_api/os_config/v1/model/vulnerability_report_vulnerability_details.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... | 44.275362 | 205 | 0.723732 |
e8a23db8a180e0c307feae6a66bc393ee7492ca6 | 1,173 | ex | Elixir | rojak-api/lib/rojak_api.ex | pyk/rojak | 0dd69efedb58ee5d951e1a43cdfa65b60f8bb7c7 | [
"BSD-3-Clause"
] | 107 | 2016-10-02T05:54:42.000Z | 2021-08-05T00:20:51.000Z | rojak-api/lib/rojak_api.ex | pyk/rojak | 0dd69efedb58ee5d951e1a43cdfa65b60f8bb7c7 | [
"BSD-3-Clause"
] | 134 | 2016-10-02T21:21:08.000Z | 2016-12-27T02:46:34.000Z | rojak-api/lib/rojak_api.ex | pyk/rojak | 0dd69efedb58ee5d951e1a43cdfa65b60f8bb7c7 | [
"BSD-3-Clause"
] | 54 | 2016-10-02T08:47:56.000Z | 2020-03-08T00:56:03.000Z | defmodule RojakAPI do
use Application
# Get version from mix config
# Usage: RojakAPI.version
@version Mix.Project.config[:version]
def version, do: @version
# See http://elixir-lang.org/docs/stable/elixir/Application.html
# for more information on OTP Applications
def start(_type, _args) do
impor... | 31.702703 | 86 | 0.714408 |
e8a2735f0f48e5c87bd4db0e52114fc0d1aefe8b | 794 | ex | Elixir | lib/radiator_web/plug/block_kown_paths.ex | bhtabor/radiator | 39c137a18d36d6f418f9d1ffb7aa2c99011d66cf | [
"MIT"
] | 92 | 2019-01-03T11:46:23.000Z | 2022-02-19T21:28:44.000Z | lib/radiator_web/plug/block_kown_paths.ex | bhtabor/radiator | 39c137a18d36d6f418f9d1ffb7aa2c99011d66cf | [
"MIT"
] | 350 | 2019-04-11T07:55:51.000Z | 2021-08-03T11:19:05.000Z | lib/radiator_web/plug/block_kown_paths.ex | bhtabor/radiator | 39c137a18d36d6f418f9d1ffb7aa2c99011d66cf | [
"MIT"
] | 10 | 2019-04-18T12:47:27.000Z | 2022-01-25T20:49:15.000Z | defmodule RadiatorWeb.Plug.BlockKnownPaths do
@behaviour Plug
import Plug.Conn
# Bail early on known paths so we don't do unneccesary processing
@impl Plug
def init(opts), do: opts
@impl Plug
def call(conn, _opts) do
basename = Path.basename(conn.request_path)
[
"contentWindow.map",
... | 22.685714 | 77 | 0.608312 |
e8a28ad78bea98ff37b5707d2fb9dbdf71c6509f | 449 | exs | Elixir | elixir-match/app/config/test.exs | jim80net/elixir_tutorial_projects | db19901a9305b297faa90642bebcc08455621b52 | [
"Unlicense"
] | null | null | null | elixir-match/app/config/test.exs | jim80net/elixir_tutorial_projects | db19901a9305b297faa90642bebcc08455621b52 | [
"Unlicense"
] | null | null | null | elixir-match/app/config/test.exs | jim80net/elixir_tutorial_projects | db19901a9305b297faa90642bebcc08455621b52 | [
"Unlicense"
] | null | null | null | use Mix.Config
# We don't run a server during test. If one is required,
# you can enable the server option below.
config :match, MatchWeb.Endpoint,
http: [port: 4002],
server: false
# Print only warnings and errors during test
config :logger, level: :warn
# Configure your database
config :match, Match.Repo,
us... | 23.631579 | 56 | 0.726058 |
e8a296279f9a63d5386f1ec097d147e9f2668286 | 1,848 | ex | Elixir | clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p4beta1_face_annotation_landmark.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p4beta1_face_annotation_landmark.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p4beta1_face_annotation_landmark.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... | 33.6 | 135 | 0.74513 |
e8a2a072f0487f8f46e2b7650adb61ef1a849f44 | 10,084 | ex | Elixir | lib/endpoints/app/comments.ex | davidsulc/scraping_hub_ex | 78fbf8f4c18f8f3650148b9c8861f22856dbb8b1 | [
"Apache-2.0"
] | 2 | 2021-03-30T07:59:54.000Z | 2021-04-06T12:32:40.000Z | lib/endpoints/app/comments.ex | davidsulc/scrapy_cloud_ex | 78fbf8f4c18f8f3650148b9c8861f22856dbb8b1 | [
"Apache-2.0"
] | null | null | null | lib/endpoints/app/comments.ex | davidsulc/scrapy_cloud_ex | 78fbf8f4c18f8f3650148b9c8861f22856dbb8b1 | [
"Apache-2.0"
] | null | null | null | defmodule ScrapyCloudEx.Endpoints.App.Comments do
@moduledoc """
Wraps the [Comments](https://doc.scrapinghub.com/api/comments.html) endpoint.
The comments API lets you add comments directly to scraped data, which can later
be viewed on the items page.
"""
import ScrapyCloudEx.Endpoints.Guards
alias Sc... | 37.073529 | 224 | 0.685343 |
e8a2b5151ea7b5989fcc11f0a8ef509fae134bcb | 827 | ex | Elixir | lib/inmana_web/router.ex | douglastofoli/inmana | 0c2bd661f5a3c83557dc3fd1d094a195dae3a839 | [
"MIT"
] | null | null | null | lib/inmana_web/router.ex | douglastofoli/inmana | 0c2bd661f5a3c83557dc3fd1d094a195dae3a839 | [
"MIT"
] | null | null | null | lib/inmana_web/router.ex | douglastofoli/inmana | 0c2bd661f5a3c83557dc3fd1d094a195dae3a839 | [
"MIT"
] | null | null | null | defmodule InmanaWeb.Router do
use InmanaWeb, :router
pipeline :api do
plug :accepts, ["json"]
end
scope "/api", InmanaWeb do
pipe_through :api
get "/", WelcomeController, :index
end
# Enables LiveDashboard only for development
#
# If you want to use the LiveDashboard in production, you s... | 27.566667 | 70 | 0.709794 |
e8a2d9fcad14be3c66862ea746f4d383d955cf7e | 3,657 | ex | Elixir | sixth_semester/Rozprochy/Rabbits/lib/doctor.ex | MajronMan/agh_stuff | d045e3bd47ac17880526203d9993d9b2389a9ffe | [
"Unlicense"
] | 2 | 2019-03-02T19:31:57.000Z | 2019-04-03T19:54:39.000Z | sixth_semester/Rozprochy/Rabbits/lib/doctor.ex | MajronMan/agh_stuff | d045e3bd47ac17880526203d9993d9b2389a9ffe | [
"Unlicense"
] | null | null | null | sixth_semester/Rozprochy/Rabbits/lib/doctor.ex | MajronMan/agh_stuff | d045e3bd47ac17880526203d9993d9b2389a9ffe | [
"Unlicense"
] | 1 | 2019-04-03T18:26:50.000Z | 2019-04-03T18:26:50.000Z | defmodule Doctor do
@hospital_exchange "hospital"
@admin_exchange "admin"
@info_key "info"
@log_key "log"
use GenServer
def start_link do
GenServer.start_link(__MODULE__, [], [])
end
def init(_opts) do
rabbitmq_connect()
end
defp unique_id do
:erlang.timestamp
|> Tuple.to_list
... | 28.130769 | 99 | 0.661471 |
e8a3592abd8acf51fb2f5901c45cb0e7c3088177 | 1,481 | ex | Elixir | lib/util/map_util.ex | wses-yoshida/antikythera | e108e59d2339edd0b0fad31ad4f41f56df45be55 | [
"Apache-2.0"
] | null | null | null | lib/util/map_util.ex | wses-yoshida/antikythera | e108e59d2339edd0b0fad31ad4f41f56df45be55 | [
"Apache-2.0"
] | null | null | null | lib/util/map_util.ex | wses-yoshida/antikythera | e108e59d2339edd0b0fad31ad4f41f56df45be55 | [
"Apache-2.0"
] | null | null | null | # Copyright(c) 2015-2019 ACCESS CO., LTD. All rights reserved.
use Croma
defmodule Antikythera.MapUtil do
@moduledoc """
Utility functions to work with maps.
"""
defun map_values(m :: v[%{k => v1}], f :: ({k, v1} -> v2)) :: %{k => v2} when k: any, v1: any, v2: any do
Map.new(m, fn {k, v} -> {k, f.({k, v}... | 32.195652 | 123 | 0.561107 |
e8a384cc1b431d9d2694dba256a2003420b80e57 | 2,169 | ex | Elixir | clients/double_click_bid_manager/lib/google_api/double_click_bid_manager/v1/model/row_status.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/double_click_bid_manager/lib/google_api/double_click_bid_manager/v1/model/row_status.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/double_click_bid_manager/lib/google_api/double_click_bid_manager/v1/model/row_status.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 34.983871 | 117 | 0.682803 |
e8a3a14d54d5a8a87f975cc267b216dca221b3b3 | 6,106 | exs | Elixir | test/central_web/controllers/communication/notification_controller_test.exs | icexuick/teiserver | 22f2e255e7e21f977e6b262acf439803626a506c | [
"MIT"
] | 6 | 2021-02-08T10:42:53.000Z | 2021-04-25T12:12:03.000Z | test/central_web/controllers/communication/notification_controller_test.exs | icexuick/teiserver | 22f2e255e7e21f977e6b262acf439803626a506c | [
"MIT"
] | null | null | null | test/central_web/controllers/communication/notification_controller_test.exs | icexuick/teiserver | 22f2e255e7e21f977e6b262acf439803626a506c | [
"MIT"
] | 2 | 2021-02-23T22:34:00.000Z | 2021-04-08T13:31:36.000Z | defmodule CentralWeb.Communication.NotificationControllerTest do
use CentralWeb.ConnCase
alias Central.Helpers.GeneralTestLib
setup do
GeneralTestLib.conn_setup()
end
alias Central.Communication
# @valid_attrs %{body: "some content", data: %{}, expires: %{day: 17, hour: 14, min: 0, month: 4, sec: 0,... | 26.4329 | 256 | 0.623158 |
e8a3e6cc77ee2fc0698ef117a7fae25116e37c4f | 1,997 | ex | Elixir | clients/content/lib/google_api/content/v2/model/unit_invoice_additional_charge.ex | kaaboaye/elixir-google-api | 1896784c4342151fd25becd089a5beb323eff567 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/model/unit_invoice_additional_charge.ex | kaaboaye/elixir-google-api | 1896784c4342151fd25becd089a5beb323eff567 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/model/unit_invoice_additional_charge.ex | kaaboaye/elixir-google-api | 1896784c4342151fd25becd089a5beb323eff567 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 37.679245 | 142 | 0.736104 |
e8a44e6aa0f66b92fce2815435a75dfce3ccf503 | 119 | exs | Elixir | test/error/doctest1_test.exs | ianrumford/harnais_error | f3151d7f15200a357fb8da1f16bcb4719fb2e839 | [
"MIT"
] | null | null | null | test/error/doctest1_test.exs | ianrumford/harnais_error | f3151d7f15200a357fb8da1f16bcb4719fb2e839 | [
"MIT"
] | null | null | null | test/error/doctest1_test.exs | ianrumford/harnais_error | f3151d7f15200a357fb8da1f16bcb4719fb2e839 | [
"MIT"
] | null | null | null | defmodule HarnaisErrorDoctest1Test do
use HarnaisErrorHelperTest
import Harnais.Error
doctest Harnais.Error
end
| 17 | 37 | 0.840336 |
e8a48139e5a465bcaa1499100ea891e7b8fe7161 | 1,926 | ex | Elixir | apps/core/lib/core/services/rbac.ex | svilenkov/plural | ac6c6cc15ac4b66a3b5e32ed4a7bee4d46d1f026 | [
"Apache-2.0"
] | 1 | 2021-12-13T09:43:15.000Z | 2021-12-13T09:43:15.000Z | apps/core/lib/core/services/rbac.ex | svilenkov/plural | ac6c6cc15ac4b66a3b5e32ed4a7bee4d46d1f026 | [
"Apache-2.0"
] | null | null | null | apps/core/lib/core/services/rbac.ex | svilenkov/plural | ac6c6cc15ac4b66a3b5e32ed4a7bee4d46d1f026 | [
"Apache-2.0"
] | null | null | null | defmodule Core.Services.Rbac do
alias Core.Schema.{User, Role}
def preload(user) do
Core.Repo.preload(user, [:account, role_bindings: :role, group_role_bindings: :role])
end
def evaluate_policy(user, policy) do
%{groups: user_groups} = Core.Repo.preload(user, [:groups])
%{bindings: bindings} = Cor... | 35.018182 | 96 | 0.632918 |
e8a4889523ca280677b31a27c3ceaa7945d138cd | 911 | ex | Elixir | lib/turbo_ecto/config.ex | zgohr/turbo_ecto | 2467be3f0923193349c08d18061efbc952523b21 | [
"MIT"
] | 63 | 2018-08-01T13:04:07.000Z | 2021-08-18T06:09:11.000Z | lib/turbo_ecto/config.ex | zgohr/turbo_ecto | 2467be3f0923193349c08d18061efbc952523b21 | [
"MIT"
] | 66 | 2018-08-03T02:04:02.000Z | 2021-08-18T03:40:41.000Z | lib/turbo_ecto/config.ex | zgohr/turbo_ecto | 2467be3f0923193349c08d18061efbc952523b21 | [
"MIT"
] | 15 | 2018-08-03T02:30:49.000Z | 2021-08-17T13:06:05.000Z | defmodule Turbo.Ecto.Config do
@moduledoc false
def per_page(application \\ :turbo_ecto) do
config(:per_page, 10, application)
end
def repo(application \\ :turbo_ecto) do
config(:repo, nil, application)
end
def entry_name(application \\ :turbo_ecto) do
config(:entry_name, "datas", application... | 21.690476 | 54 | 0.69045 |
e8a488b7c29b6a582a4a41707eb5e0c6b0e90ee7 | 2,188 | ex | Elixir | lib/web/controllers/oauth/authorization_controller.ex | random-mud-pie/grapevine | 40688da3413e5216df5ee19ad6f7272932d49e23 | [
"MIT"
] | 107 | 2018-10-05T18:20:32.000Z | 2022-02-28T04:02:50.000Z | lib/web/controllers/oauth/authorization_controller.ex | random-mud-pie/grapevine | 40688da3413e5216df5ee19ad6f7272932d49e23 | [
"MIT"
] | 33 | 2018-10-05T14:11:18.000Z | 2022-02-10T22:19:18.000Z | lib/web/controllers/oauth/authorization_controller.ex | random-mud-pie/grapevine | 40688da3413e5216df5ee19ad6f7272932d49e23 | [
"MIT"
] | 18 | 2019-02-03T03:08:20.000Z | 2021-12-28T04:29:36.000Z | defmodule Web.Oauth.AuthorizationController do
use Web, :controller
plug(Web.Plugs.FetchGame when action in [:new])
alias GrapevineData.Authorizations
def new(conn, params) do
%{current_user: user} = conn.assigns
with %{client_game: game} <- conn.assigns,
{:ok, user} <- Authorizations.check... | 32.656716 | 90 | 0.616545 |
e8a4b085e256735e67eca4a586bfec64ce8200f8 | 3,267 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/ssl_health_check.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/ssl_health_check.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/ssl_health_check.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... | 50.261538 | 581 | 0.740741 |
e8a4b5c310ffa93a70539f5c4043f5d114c280c8 | 8,331 | ex | Elixir | clients/document_ai/lib/google_api/document_ai/v1/model/google_cloud_documentai_v1beta1_document_page.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/document_ai/lib/google_api/document_ai/v1/model/google_cloud_documentai_v1beta1_document_page.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/document_ai/lib/google_api/document_ai/v1/model/google_cloud_documentai_v1beta1_document_page.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... | 48.719298 | 299 | 0.725843 |
e8a4ebf6d9566085193742da53276b8ef9bcd25a | 1,486 | exs | Elixir | apps/tai/test/tai/commands/start_advisors_test.exs | ihorkatkov/tai | 09f9f15d2c385efe762ae138a8570f1e3fd41f26 | [
"MIT"
] | 1 | 2019-12-19T05:16:26.000Z | 2019-12-19T05:16:26.000Z | apps/tai/test/tai/commands/start_advisors_test.exs | ihorkatkov/tai | 09f9f15d2c385efe762ae138a8570f1e3fd41f26 | [
"MIT"
] | null | null | null | apps/tai/test/tai/commands/start_advisors_test.exs | ihorkatkov/tai | 09f9f15d2c385efe762ae138a8570f1e3fd41f26 | [
"MIT"
] | 1 | 2020-05-03T23:32:11.000Z | 2020-05-03T23:32:11.000Z | defmodule Tai.Commands.StartAdvisorsTest do
use ExUnit.Case, async: false
import ExUnit.CaptureIO
import Support.Advisors, only: [insert_spec: 2]
@test_store_id __MODULE__
setup do
start_supervised!({Tai.Advisors.Supervisor, []})
start_supervised!({Tai.Advisors.Store, id: @test_store_id})
insert... | 36.243902 | 95 | 0.637954 |
e8a505180dd7a574fd05d6ef0b490ee8cb3a6843 | 124 | ex | Elixir | apps/hefty/lib/hefty.ex | Cinderella-Man/crypto-streamer | b1e990d375f7143c5149930be991249f0d9c3ee3 | [
"MIT"
] | 49 | 2019-10-28T22:27:28.000Z | 2021-10-11T06:40:29.000Z | apps/hefty/lib/hefty.ex | Cinderella-Man/crypto-streamer | b1e990d375f7143c5149930be991249f0d9c3ee3 | [
"MIT"
] | 9 | 2019-08-30T13:15:36.000Z | 2019-10-10T21:25:14.000Z | apps/hefty/lib/hefty.ex | Cinderella-Man/crypto-streamer | b1e990d375f7143c5149930be991249f0d9c3ee3 | [
"MIT"
] | 7 | 2019-10-31T06:19:26.000Z | 2021-09-30T04:20:58.000Z | defmodule Hefty do
@moduledoc """
Documentation for Hefty.
Hefty comes from hft
(high frequence trading)
"""
end
| 13.777778 | 26 | 0.693548 |
e8a560a9d518b6b5fefe481fa9462bb8999b43e1 | 3,427 | exs | Elixir | test/groupher_server/cms/upvotes/drink_upvote_test.exs | coderplanets/coderplanets_server | 3663e56340d6d050e974c91f7e499d8424fc25e9 | [
"Apache-2.0"
] | 240 | 2018-11-06T09:36:54.000Z | 2022-02-20T07:12:36.000Z | test/groupher_server/cms/upvotes/drink_upvote_test.exs | coderplanets/coderplanets_server | 3663e56340d6d050e974c91f7e499d8424fc25e9 | [
"Apache-2.0"
] | 363 | 2018-07-11T03:38:14.000Z | 2021-12-14T01:42:40.000Z | test/groupher_server/cms/upvotes/drink_upvote_test.exs | mydearxym/mastani_server | f24034a4a5449200165cf4a547964a0961793eab | [
"Apache-2.0"
] | 22 | 2019-01-27T11:47:56.000Z | 2021-02-28T13:17:52.000Z | defmodule GroupherServer.Test.Upvotes.DrinkUpvote do
@moduledoc false
use GroupherServer.TestTools
alias GroupherServer.CMS
setup do
{:ok, user} = db_insert(:user)
{:ok, user2} = db_insert(:user)
{:ok, community} = db_insert(:community)
drink_attrs = mock_attrs(:drink, %{community_id: communi... | 36.849462 | 85 | 0.675518 |
e8a5858aba06301661e7a180161ddbfa1e9b65ff | 19,942 | exs | Elixir | test/xema/keyword_test.exs | kianmeng/xema | a990d64fb4bcd708249514daa55426ee003da25d | [
"MIT"
] | 49 | 2018-06-05T09:42:19.000Z | 2022-02-15T12:50:51.000Z | test/xema/keyword_test.exs | kianmeng/xema | a990d64fb4bcd708249514daa55426ee003da25d | [
"MIT"
] | 152 | 2017-06-11T13:43:06.000Z | 2022-01-09T17:13:45.000Z | test/xema/keyword_test.exs | kianmeng/xema | a990d64fb4bcd708249514daa55426ee003da25d | [
"MIT"
] | 6 | 2019-05-31T05:41:47.000Z | 2021-12-14T08:09:36.000Z | defmodule Xema.KeywordTest do
use ExUnit.Case, async: true
import Xema, only: [valid?: 2, validate: 2]
alias Xema.ValidationError
describe "empty keyword schema" do
setup do
%{schema: Xema.new(:keyword)}
end
test "validate/2 with an empty keyword list", %{schema: schema} do
assert va... | 27.243169 | 95 | 0.471217 |
e8a5a44b659898aa8027250b2dd0cf227058dec3 | 5,646 | ex | Elixir | apps/astarte_trigger_engine/lib/astarte_trigger_engine/events_consumer.ex | matt-mazzucato/astarte | 34d84941a5019efc42321052f7f34b7d907a38f2 | [
"Apache-2.0"
] | 1 | 2020-02-04T13:15:22.000Z | 2020-02-04T13:15:22.000Z | apps/astarte_trigger_engine/lib/astarte_trigger_engine/events_consumer.ex | matt-mazzucato/astarte | 34d84941a5019efc42321052f7f34b7d907a38f2 | [
"Apache-2.0"
] | 11 | 2018-08-27T13:19:39.000Z | 2019-12-05T17:27:55.000Z | apps/astarte_trigger_engine/lib/astarte_trigger_engine/events_consumer.ex | matt-mazzucato/astarte | 34d84941a5019efc42321052f7f34b7d907a38f2 | [
"Apache-2.0"
] | 2 | 2018-08-27T13:12:47.000Z | 2019-11-19T15:42:13.000Z | #
# 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... | 30.354839 | 97 | 0.644881 |
e8a5d8fdb853f30524d7a2e0ccb7250a65142910 | 1,388 | ex | Elixir | orderapi/test/support/data_case.ex | iandeherdt/phoenixshop | cd6e223c676505b75c1340b96908468a5c09fd7c | [
"Apache-2.0"
] | 1 | 2018-03-06T10:32:22.000Z | 2018-03-06T10:32:22.000Z | orderapi/test/support/data_case.ex | iandeherdt/phoenixshop | cd6e223c676505b75c1340b96908468a5c09fd7c | [
"Apache-2.0"
] | null | null | null | orderapi/test/support/data_case.ex | iandeherdt/phoenixshop | cd6e223c676505b75c1340b96908468a5c09fd7c | [
"Apache-2.0"
] | null | null | null | defmodule Orderapi.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 tes... | 25.703704 | 77 | 0.680836 |
e8a60bc842a5ab6d899d0331b235ce0504e6f267 | 1,814 | ex | Elixir | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v2beta1/model/list_proposals_response.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v2beta1/model/list_proposals_response.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v2beta1/model/list_proposals_response.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... | 36.28 | 129 | 0.747519 |
e8a61e42e5d61de2ef407b84c3424bbfcdf886b2 | 14,543 | ex | Elixir | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v14/api/pretargeting_config.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v14/api/pretargeting_config.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v14/api/pretargeting_config.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... | 37.194373 | 170 | 0.664787 |
e8a622a4ce9f46a71af91df85032b1afadca2bf3 | 3,241 | exs | Elixir | test/test_helper.exs | mveytsman/phoenix_live_dashboard | 9abcaf72be2ba2334c1d07c181f3312b732b5485 | [
"MIT"
] | 1 | 2020-11-04T16:17:32.000Z | 2020-11-04T16:17:32.000Z | test/test_helper.exs | mveytsman/phoenix_live_dashboard | 9abcaf72be2ba2334c1d07c181f3312b732b5485 | [
"MIT"
] | null | null | null | test/test_helper.exs | mveytsman/phoenix_live_dashboard | 9abcaf72be2ba2334c1d07c181f3312b732b5485 | [
"MIT"
] | 1 | 2020-11-16T14:01:08.000Z | 2020-11-16T14:01:08.000Z | System.put_env("PHX_DASHBOARD_TEST", "PHX_DASHBOARD_ENV_VALUE")
pg_url = System.get_env("PG_URL") || "postgres:postgres@127.0.0.1"
Application.put_env(:phoenix_live_dashboard, Phoenix.LiveDashboardTest.Repo,
url: "ecto://#{pg_url}/phx_dashboard_test"
)
defmodule Phoenix.LiveDashboardTest.Repo do
use Ecto.Repo, o... | 27.700855 | 91 | 0.744523 |
e8a636f0e4a79b21607cb868cea2a0806a195e72 | 125 | ex | Elixir | emulator/lib/out.ex | lucas-larsson/ID1019 | b21a79bfa7fbbaaba0b4db88ec8b44fc5e9f291c | [
"MIT"
] | null | null | null | emulator/lib/out.ex | lucas-larsson/ID1019 | b21a79bfa7fbbaaba0b4db88ec8b44fc5e9f291c | [
"MIT"
] | null | null | null | emulator/lib/out.ex | lucas-larsson/ID1019 | b21a79bfa7fbbaaba0b4db88ec8b44fc5e9f291c | [
"MIT"
] | null | null | null | defmodule Out do
def new() do [] end
def put(out, a) do [a | out] end
def close(out) do Enum.reverse(out) end
end
| 11.363636 | 41 | 0.616 |
e8a69086f38b9e1bb5decca3dee2e3aeddc5bc8a | 351 | ex | Elixir | lib/supabase_surface/components/icons/icon_minus_square.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_minus_square.ex | treebee/supabase-surface | 5a184ca92323c085dd81e2fc8aa8c10367f2382e | [
"Apache-2.0"
] | null | null | null | lib/supabase_surface/components/icons/icon_minus_square.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.IconMinusSquare do
use SupabaseSurface.Components.Icon
@impl true
def render(assigns) do
icon_size = IconContainer.get_size(assigns.size)
~F"""
<IconContainer assigns={assigns}>
{Feathericons.minus_square(width: icon_size, height: icon_size)}
</Ic... | 23.4 | 70 | 0.726496 |
e8a6c9f83c02284d50ff6972f8c2659fc2d85b21 | 663 | ex | Elixir | test/environment/ecto/unix_time.ex | invertase/dilute | 65fe0ad09c894ddb16294dc1e1474ce657f6dbf4 | [
"Apache-2.0"
] | 19 | 2018-11-10T09:08:18.000Z | 2021-12-06T10:15:23.000Z | test/environment/ecto/unix_time.ex | invertase/dilute | 65fe0ad09c894ddb16294dc1e1474ce657f6dbf4 | [
"Apache-2.0"
] | 3 | 2018-11-29T06:47:12.000Z | 2020-10-07T14:34:56.000Z | test/environment/ecto/unix_time.ex | frobese/dilute | 65fe0ad09c894ddb16294dc1e1474ce657f6dbf4 | [
"Apache-2.0"
] | 4 | 2019-03-30T14:50:48.000Z | 2022-03-18T17:06:49.000Z | defmodule DiluteTest.Environment.Ecto.UnixTime do
@behaviour Ecto.Type
def type, do: :integer
def cast(timestamp) when is_integer(timestamp) do
case DateTime.from_unix(timestamp, :second) do
{:error, _} -> :error
ok -> ok
end
end
def cast(%DateTime{} = datetime) do
{:ok, datetime}
... | 19.5 | 51 | 0.636501 |
e8a715aa6380e5cbdeb1d9910a8e9de543bd9f24 | 658 | ex | Elixir | hub/lib/hub.ex | judas-christ/love-potions | 39a43dca4c66b5e8028759c8a81d97a8c0562956 | [
"MIT"
] | null | null | null | hub/lib/hub.ex | judas-christ/love-potions | 39a43dca4c66b5e8028759c8a81d97a8c0562956 | [
"MIT"
] | null | null | null | hub/lib/hub.ex | judas-christ/love-potions | 39a43dca4c66b5e8028759c8a81d97a8c0562956 | [
"MIT"
] | null | null | null | defmodule Hub do
HTTPotion.start
@username "judas-christ"
"https://api.github.com/users/#{@username}/repos"
|> HTTPotion.get([headers: ["User-Agent": "Elixir"]])
|> Map.get(:body)
|> Poison.decode!
|> Enum.each fn repo ->
def unquote(String.to_atom(repo["name"]))() do
unquote(Macro.escape(repo)... | 21.933333 | 55 | 0.604863 |
e8a73c48346d741283219a511dac9f9513abbfb2 | 9,821 | exs | Elixir | test/arangox_test.exs | otaq/arangox | 6846c6ddb1644d85eec0414374b5300d420bc268 | [
"MIT"
] | 43 | 2019-10-10T22:12:20.000Z | 2022-03-31T22:34:42.000Z | test/arangox_test.exs | suazithustra/arangox | 8ce80b965958a75523ce6f4c68faa8cc83c811d9 | [
"MIT"
] | 2 | 2021-02-10T16:23:57.000Z | 2021-05-21T13:10:48.000Z | test/arangox_test.exs | suazithustra/arangox | 8ce80b965958a75523ce6f4c68faa8cc83c811d9 | [
"MIT"
] | 3 | 2021-05-13T04:01:03.000Z | 2022-03-31T22:34:10.000Z | defmodule ArangoxTest do
use ExUnit.Case, async: true
import ExUnit.CaptureLog
import TestHelper, only: [opts: 1, opts: 0]
alias Arangox.{
Error,
GunClient,
Request,
Response
}
doctest Arangox
@unreachable TestHelper.unreachable()
@default TestHelper.default()
@no_auth TestHelper.no... | 32.956376 | 97 | 0.63354 |
e8a74ce81595d3dc4889a339a540051f8c0b364f | 7,541 | exs | Elixir | lib/eex/test/eex_test.exs | Nicd/elixir | e62ef92a4be1b562033d35b2d822cc9d6c661077 | [
"Apache-2.0"
] | 4 | 2016-04-05T05:51:36.000Z | 2019-10-31T06:46:35.000Z | lib/eex/test/eex_test.exs | Nicd/elixir | e62ef92a4be1b562033d35b2d822cc9d6c661077 | [
"Apache-2.0"
] | null | null | null | lib/eex/test/eex_test.exs | Nicd/elixir | e62ef92a4be1b562033d35b2d822cc9d6c661077 | [
"Apache-2.0"
] | 5 | 2015-02-01T06:01:19.000Z | 2019-08-29T09:02:35.000Z | Code.require_file "test_helper.exs", __DIR__
require EEx
defmodule EExText.Compiled do
def before_compile do
fill_in_stacktrace
{ __ENV__.line, hd(tl(System.stacktrace)) }
end
{ :erlang, 1, 2 }.tuple_to_list
EEx.function_from_string :def, :string_sample, "<%= a + b %>", [:a, :b]
filename = Path.joi... | 21.423295 | 109 | 0.614773 |
e8a74fb6142df566d6404bbbc25015fed72c000b | 543 | ex | Elixir | lib/hl7/2.3.1/segments/om3.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | lib/hl7/2.3.1/segments/om3.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | lib/hl7/2.3.1/segments/om3.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | defmodule HL7.V2_3_1.Segments.OM3 do
@moduledoc false
require Logger
alias HL7.V2_3_1.{DataTypes}
use HL7.Segment,
fields: [
segment: nil,
sequence_number_test_observation_master_file: nil,
preferred_coding_system: DataTypes.Ce,
valid_coded_answers_: DataTypes.Ce,
normal_text... | 28.578947 | 69 | 0.760589 |
e8a76d8f755b7893e9d288d444320fd762cf9123 | 1,113 | ex | Elixir | apps/artemis/lib/artemis/workers/instances/repo_reset_on_interval.ex | artemis-platform/artemis_dashboard | 5ab3f5ac4c5255478bbebf76f0e43b44992e3cab | [
"MIT"
] | 9 | 2019-08-19T19:56:34.000Z | 2022-03-22T17:56:38.000Z | apps/artemis/lib/artemis/workers/instances/repo_reset_on_interval.ex | chrislaskey/artemis_teams | 9930c3d9528e37b76f0525390e32b66eed7eadde | [
"MIT"
] | 7 | 2019-07-12T21:41:01.000Z | 2020-08-17T21:29:22.000Z | apps/artemis/lib/artemis/workers/instances/repo_reset_on_interval.ex | chrislaskey/artemis_teams | 9930c3d9528e37b76f0525390e32b66eed7eadde | [
"MIT"
] | 2 | 2019-07-05T22:51:47.000Z | 2019-08-19T19:56:37.000Z | defmodule Artemis.Worker.RepoResetOnInterval do
use Artemis.IntervalWorker,
enabled: enabled?(),
interval: get_interval(),
delayed_start: :timer.seconds(10),
name: :repo_reset_on_interval
alias Artemis.Repo.DeleteAll
alias Artemis.Repo.GenerateData
alias Artemis.Repo.GenerateFillerData
# Cal... | 24.733333 | 89 | 0.654987 |
e8a77b30809b654b5e5bfd56593e0491257c40e1 | 66 | ex | Elixir | lib/turret_web/views/user_session_view.ex | rosswilson/turret-elixir | effbc34a14e95d73db2075c66fe78f8432f83977 | [
"MIT"
] | 1 | 2021-02-03T23:34:04.000Z | 2021-02-03T23:34:04.000Z | lib/turret_web/views/user_session_view.ex | rosswilson/turret-elixir | effbc34a14e95d73db2075c66fe78f8432f83977 | [
"MIT"
] | 58 | 2021-02-16T10:16:08.000Z | 2022-03-07T10:57:32.000Z | lib/turret_web/views/user_session_view.ex | rosswilson/turret-elixir | effbc34a14e95d73db2075c66fe78f8432f83977 | [
"MIT"
] | null | null | null | defmodule TurretWeb.UserSessionView do
use TurretWeb, :view
end
| 16.5 | 38 | 0.818182 |
e8a7a33f731708353668f53099a0f3b3e849ecf5 | 664 | exs | Elixir | playground_project/config/test.exs | JohnBortotti/learning-elixir | 54ce9c50904e809065d0321d51367cea7a5b2bf8 | [
"MIT"
] | null | null | null | playground_project/config/test.exs | JohnBortotti/learning-elixir | 54ce9c50904e809065d0321d51367cea7a5b2bf8 | [
"MIT"
] | null | null | null | playground_project/config/test.exs | JohnBortotti/learning-elixir | 54ce9c50904e809065d0321d51367cea7a5b2bf8 | [
"MIT"
] | null | null | null | use Mix.Config
# Configure your database
#
# The MIX_TEST_PARTITION environment variable can be used
# to provide built-in test partitioning in CI environment.
# Run `mix help test` for more information.
config :crud_tdd, CrudTdd.Repo,
username: "postgres",
password: "postgres",
database: "crud_tdd_test#{System.... | 28.869565 | 67 | 0.75 |
e8a7a4d080c54796f683cd0721fa9fc4017a914f | 14,784 | exs | Elixir | test/elements/elements_test.exs | Badiapp/bolt_sips | ea5e1ae3295700a9f9b0324d26d953845da17050 | [
"Apache-2.0"
] | null | null | null | test/elements/elements_test.exs | Badiapp/bolt_sips | ea5e1ae3295700a9f9b0324d26d953845da17050 | [
"Apache-2.0"
] | null | null | null | test/elements/elements_test.exs | Badiapp/bolt_sips | ea5e1ae3295700a9f9b0324d26d953845da17050 | [
"Apache-2.0"
] | null | null | null | defmodule Bolt.Sips.Elements.Test do
use ExUnit.Case, async: true
doctest Bolt.Sips
alias Bolt.Sips.{Success, Error, Response}
alias Bolt.Sips.Types.{Node, Relationship, Path}
@success [
success: %{"fields" => ["p", "r"]},
record: [
[sig: 78, fields: [1, ["Person"], %{"born" => 1964, "name" =>... | 32.563877 | 440 | 0.468344 |
e8a7f677338b70b032d77b77f2f8e3a031e4d562 | 1,602 | exs | Elixir | mix.exs | AlShu/recycling.itsavesplanet.org | dd26944e39b250f3b0d12cbb99abb91e8f8ff49e | [
"MIT"
] | null | null | null | mix.exs | AlShu/recycling.itsavesplanet.org | dd26944e39b250f3b0d12cbb99abb91e8f8ff49e | [
"MIT"
] | null | null | null | mix.exs | AlShu/recycling.itsavesplanet.org | dd26944e39b250f3b0d12cbb99abb91e8f8ff49e | [
"MIT"
] | null | null | null | defmodule RISP.Mixfile do
use Mix.Project
def project do
[
app: :recycling_itsavesplanet_org,
version: "0.0.1",
elixir: "~> 1.4",
elixirc_paths: elixirc_paths(Mix.env),
compilers: [:phoenix, :gettext] ++ Mix.compilers,
start_permanent: Mix.env == :prod,
aliases: aliase... | 25.83871 | 79 | 0.589263 |
e8a806522a157e527130015c9a220fc0c4f4b1e8 | 400 | ex | Elixir | web/views/error_view.ex | mciastek/emotions-wheel-backend | 072a88b3ad15b2c6d2aad414e6b7cfc8fb4a70bf | [
"MIT"
] | null | null | null | web/views/error_view.ex | mciastek/emotions-wheel-backend | 072a88b3ad15b2c6d2aad414e6b7cfc8fb4a70bf | [
"MIT"
] | null | null | null | web/views/error_view.ex | mciastek/emotions-wheel-backend | 072a88b3ad15b2c6d2aad414e6b7cfc8fb4a70bf | [
"MIT"
] | null | null | null | defmodule EmotionsWheelBackend.ErrorView do
use EmotionsWheelBackend.Web, :view
def render("404.html", _assigns) do
"Page not found"
end
def render("500.html", _assigns) do
"Server internal error"
end
# In case no render clause matches or no
# template is found, let's render it as 500
def tem... | 22.222222 | 47 | 0.7175 |
e8a86c205c315566abb0982869a8cd2bfd3103a0 | 1,255 | ex | Elixir | test/support/conn_case.ex | AkioCode/elixir-survey | 420f4e5f60b84d381707f162b473dd91eb0fe9f2 | [
"MIT"
] | null | null | null | test/support/conn_case.ex | AkioCode/elixir-survey | 420f4e5f60b84d381707f162b473dd91eb0fe9f2 | [
"MIT"
] | null | null | null | test/support/conn_case.ex | AkioCode/elixir-survey | 420f4e5f60b84d381707f162b473dd91eb0fe9f2 | [
"MIT"
] | null | null | null | defmodule SurveyApiWeb.ConnCase do
@moduledoc """
This module defines the test case to be used by
tests that require setting up a connection.
Such tests rely on `Phoenix.ConnTest` and also
import other functionality to make it easier
to build common data structures and query the data layer.
Finally, if ... | 28.522727 | 71 | 0.72749 |
e8a871a6bf27f11ad5ce067fd0937165a05fa49b | 7,455 | ex | Elixir | lib/rihanna/migration.ex | lpil/rihanna | 83db1fab1550244a9e3cb347ccda607f5ff4e4b5 | [
"MIT"
] | null | null | null | lib/rihanna/migration.ex | lpil/rihanna | 83db1fab1550244a9e3cb347ccda607f5ff4e4b5 | [
"MIT"
] | null | null | null | lib/rihanna/migration.ex | lpil/rihanna | 83db1fab1550244a9e3cb347ccda607f5ff4e4b5 | [
"MIT"
] | null | null | null | defmodule Rihanna.Migration do
@max_32_bit_signed_integer (:math.pow(2, 31) |> round) - 1
@moduledoc """
A set of tools for creating the Rihanna jobs table.
Rihanna stores jobs in a table in your database. The default table name is
"rihanna_jobs". The name is configurable by either passing it as an argument... | 27.509225 | 155 | 0.62495 |
e8a88bfbf56eea67419a9c565561c16790df0ff5 | 3,843 | ex | Elixir | lib/astarte_device/handler.ex | rbino/astarte-device-sdk-elixir | bef82cc046658764942a7a2d0b5e693c2bdf0aed | [
"Apache-2.0"
] | 3 | 2020-02-10T07:12:49.000Z | 2020-09-19T02:56:40.000Z | lib/astarte_device/handler.ex | rbino/astarte-device-sdk-elixir | bef82cc046658764942a7a2d0b5e693c2bdf0aed | [
"Apache-2.0"
] | 9 | 2019-11-18T16:51:13.000Z | 2021-02-24T17:43:03.000Z | lib/astarte_device/handler.ex | rbino/astarte-device-sdk-elixir | bef82cc046658764942a7a2d0b5e693c2bdf0aed | [
"Apache-2.0"
] | 5 | 2020-01-25T12:14:15.000Z | 2021-06-18T08:33:40.000Z | #
# This file is part of Astarte.
#
# Copyright 2019 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 appl... | 32.025 | 127 | 0.630757 |
e8a89060090786a8fa59be190b1c72ede9cede28 | 162 | ex | Elixir | lib/defconst/enum/generator.ex | aram356/defconst | b61722017da90ac734c6487a11c0d77361ac9e37 | [
"Apache-2.0"
] | 2 | 2018-08-13T13:08:21.000Z | 2020-11-26T00:40:04.000Z | lib/defconst/enum/generator.ex | aram356/defconst | b61722017da90ac734c6487a11c0d77361ac9e37 | [
"Apache-2.0"
] | null | null | null | lib/defconst/enum/generator.ex | aram356/defconst | b61722017da90ac734c6487a11c0d77361ac9e37 | [
"Apache-2.0"
] | null | null | null | defmodule Defconst.Enum.Generator do
@moduledoc """
Callbacks definition for generating enum values
"""
@callback next_value(atom(), any()) :: any()
end
| 20.25 | 49 | 0.703704 |
e8a89949095880fef6afe9002075c8c62e2f1f2d | 6,707 | ex | Elixir | lib/oban/query.ex | qdentity/oban | d511f5ffd2f3b979afd6af94bc802949654ea410 | [
"Apache-2.0"
] | 2,219 | 2019-04-10T01:50:19.000Z | 2022-03-30T11:20:01.000Z | lib/oban/query.ex | qdentity/oban | d511f5ffd2f3b979afd6af94bc802949654ea410 | [
"Apache-2.0"
] | 532 | 2019-05-16T00:22:28.000Z | 2022-03-31T19:04:02.000Z | lib/oban/query.ex | qdentity/oban | d511f5ffd2f3b979afd6af94bc802949654ea410 | [
"Apache-2.0"
] | 230 | 2019-05-15T14:15:18.000Z | 2022-03-23T22:59:43.000Z | defmodule Oban.Query do
@moduledoc false
import Ecto.Query
import DateTime, only: [utc_now: 0]
alias Ecto.{Changeset, Multi}
alias Oban.{Config, Job, Repo}
@type lock_key :: pos_integer()
@spec fetch_or_insert_job(Config.t(), Job.changeset()) :: {:ok, Job.t()} | {:error, term()}
def fetch_or_insert_... | 28.540426 | 96 | 0.598479 |
e8a8b0fca816a0ef7e33304ab452ab7fe380e73f | 351 | exs | Elixir | priv/repo/seeds.exs | zundel48/elv | a3d7411e02dabfbc50f28e6a2b3671ef0fe98fba | [
"MIT"
] | null | null | null | priv/repo/seeds.exs | zundel48/elv | a3d7411e02dabfbc50f28e6a2b3671ef0fe98fba | [
"MIT"
] | null | null | null | priv/repo/seeds.exs | zundel48/elv | a3d7411e02dabfbc50f28e6a2b3671ef0fe98fba | [
"MIT"
] | null | null | null | # Script for populating the database. You can run it as:
#
# mix run priv/repo/seeds.exs
#
# Inside the script, you can read and write to any of your
# repositories directly:
#
# Kaytest.Repo.insert!(%Kaytest.SomeSchema{})
#
# We recommend using the bang functions (`insert!`, `update!`
# and so on) as they will... | 29.25 | 61 | 0.706553 |
e8a9029f24a4e5354a9f3dfde3f4f7c390e3fb67 | 4,026 | ex | Elixir | lib/sauce.ex | saucelabs/sauce-elixir | 44817d9c502f73dc048a0d282bfec83d9d6dd27e | [
"MIT"
] | 1 | 2021-11-17T23:04:50.000Z | 2021-11-17T23:04:50.000Z | lib/sauce.ex | saucelabs/sauce-elixir | 44817d9c502f73dc048a0d282bfec83d9d6dd27e | [
"MIT"
] | 1 | 2020-10-20T20:16:04.000Z | 2020-10-20T20:16:04.000Z | lib/sauce.ex | saucelabs/sauce-elixir | 44817d9c502f73dc048a0d282bfec83d9d6dd27e | [
"MIT"
] | 1 | 2021-11-17T23:04:39.000Z | 2021-11-17T23:04:39.000Z | defmodule Sauce do
@moduledoc false
use GenServer
@type asset_file_response :: {:ok, list()}
@type not_found_response :: {:ok, term}
@type ok_api_response :: {:ok, map()} | not_found_response | asset_file_response
@type error_api_resonse :: {:error, String.t}
@type api_response :: ok_api_response | erro... | 27.202703 | 97 | 0.630402 |
e8a920ce15dd559cd33cf186d6c1f655ea65b4b2 | 29,255 | ex | Elixir | lib/ex_pirate.ex | zergera/ex_pirate | 2c90d2a458da2cfdedc53c3d513ca0b8a0f59eff | [
"MIT"
] | null | null | null | lib/ex_pirate.ex | zergera/ex_pirate | 2c90d2a458da2cfdedc53c3d513ca0b8a0f59eff | [
"MIT"
] | null | null | null | lib/ex_pirate.ex | zergera/ex_pirate | 2c90d2a458da2cfdedc53c3d513ca0b8a0f59eff | [
"MIT"
] | null | null | null | defmodule ExPirate do
require Logger
import ExPirate.Utils
use AgentMap
@moduledoc """
Yo-ho-ho! `ExPirate` is a layer on top of the `AgentMap` library that provides
TTL and statistics.
## Supported attributes
Each stored value is wrapped in a map ("item"). This item may contain the
following key... | 24.3995 | 96 | 0.496667 |
e8a92f3c73407d5f3ecc0d511fb122f54dc9ea40 | 21,803 | ex | Elixir | lib/iex/lib/iex/introspection.ex | lytedev/elixir | dc25bb8e1484e2328eef819402d268dec7bb908a | [
"Apache-2.0"
] | 1 | 2018-08-08T12:15:48.000Z | 2018-08-08T12:15:48.000Z | lib/iex/lib/iex/introspection.ex | lytedev/elixir | dc25bb8e1484e2328eef819402d268dec7bb908a | [
"Apache-2.0"
] | 1 | 2018-09-10T23:36:45.000Z | 2018-09-10T23:36:45.000Z | lib/iex/lib/iex/introspection.ex | lytedev/elixir | dc25bb8e1484e2328eef819402d268dec7bb908a | [
"Apache-2.0"
] | 1 | 2018-09-10T23:32:56.000Z | 2018-09-10T23:32:56.000Z | # Convenience helpers for showing docs, specs, types
# and opening modules. Invoked directly from IEx.Helpers.
defmodule IEx.Introspection do
@moduledoc false
import IEx, only: [dont_display_result: 0]
alias Code.Typespec
@doc """
Decomposes an introspection call into `{mod, fun, arity}`,
`{mod, fun}` or... | 27.459698 | 106 | 0.59212 |
e8a93d6b2be162abc1aa0720c2df15c7a91230df | 2,700 | exs | Elixir | test/unit/logger_json/plug_test.exs | anthonyfalzetti/logger_json | 3724714cc3be98924ac4fcbc20d5d9b31922fde9 | [
"MIT"
] | null | null | null | test/unit/logger_json/plug_test.exs | anthonyfalzetti/logger_json | 3724714cc3be98924ac4fcbc20d5d9b31922fde9 | [
"MIT"
] | null | null | null | test/unit/logger_json/plug_test.exs | anthonyfalzetti/logger_json | 3724714cc3be98924ac4fcbc20d5d9b31922fde9 | [
"MIT"
] | null | null | null | defmodule LoggerJSON.PlugTest do
use Logger.Case
use Plug.Test
import ExUnit.CaptureIO
require Logger
defmodule MyPlug do
use Plug.Builder
plug(LoggerJSON.Plug)
plug(:passthrough)
defp passthrough(conn, _) do
Plug.Conn.send_resp(conn, 200, "Passthrough")
end
end
setup do
... | 26.213592 | 110 | 0.529259 |
e8a940483f937e22c92b7d3cea142ab1a9e06d12 | 2,314 | exs | Elixir | priv/mock/prod_category.exs | mydearxym/mastani_server | f24034a4a5449200165cf4a547964a0961793eab | [
"Apache-2.0"
] | 2 | 2018-03-26T08:56:21.000Z | 2018-07-02T22:34:51.000Z | priv/mock/prod_category.exs | mydearxym/mastani_server | f24034a4a5449200165cf4a547964a0961793eab | [
"Apache-2.0"
] | 22 | 2018-03-21T03:40:50.000Z | 2018-07-10T06:33:10.000Z | priv/mock/prod_category.exs | mydearxym/mastani_server | f24034a4a5449200165cf4a547964a0961793eab | [
"Apache-2.0"
] | null | null | null | alias GroupherServer.CMS
CMS.seed_set_category(
# ["elixir", "ruby", "javascript", "typescript", "java", "php"],
[
"mithril",
"prolog",
"zig",
"fasm",
"nim",
"hack",
"applescript",
"crystal",
"deno",
"swift",
"haskell",
"scala",
"rust",
"reason",
"red",
... | 14.4625 | 69 | 0.444685 |
e8a96e19f34efa396b872b59c9554777a259f30f | 826 | exs | Elixir | test/screenshot_test.exs | katehedgpeth/resemblixir | 0ff32c75d9e9cd897477c721c38227cf0e62b969 | [
"MIT"
] | null | null | null | test/screenshot_test.exs | katehedgpeth/resemblixir | 0ff32c75d9e9cd897477c721c38227cf0e62b969 | [
"MIT"
] | null | null | null | test/screenshot_test.exs | katehedgpeth/resemblixir | 0ff32c75d9e9cd897477c721c38227cf0e62b969 | [
"MIT"
] | null | null | null | defmodule Resemblixir.ScreenshotTest do
alias Resemblixir.{Screenshot, Scenario, Paths, TestHelpers}
use ExUnit.Case, async: true
@screenshot File.cwd!() |> Path.join("/priv/454x444.png") |> File.read!()
describe "take/2" do
test "takes a screenshot when given valid params" do
bypass = Bypass.open()... | 37.545455 | 113 | 0.671913 |
e8a98dfb5649ae44490074ab4a64477de00d5935 | 1,612 | ex | Elixir | clients/android_publisher/lib/google_api/android_publisher/v3/model/page_info.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/android_publisher/lib/google_api/android_publisher/v3/model/page_info.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/android_publisher/lib/google_api/android_publisher/v3/model/page_info.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 ... | 30.415094 | 77 | 0.706576 |
e8a99ce33362820f3848668d26f2bfa53b728fba | 832 | ex | Elixir | deps/phoenix/lib/mix/tasks/phoenix.server.ex | hallebadkapp/rumbl-ms | ae2ef9975658115f8c4d5c49c28d8bde00a74b83 | [
"MIT"
] | null | null | null | deps/phoenix/lib/mix/tasks/phoenix.server.ex | hallebadkapp/rumbl-ms | ae2ef9975658115f8c4d5c49c28d8bde00a74b83 | [
"MIT"
] | null | null | null | deps/phoenix/lib/mix/tasks/phoenix.server.ex | hallebadkapp/rumbl-ms | ae2ef9975658115f8c4d5c49c28d8bde00a74b83 | [
"MIT"
] | 1 | 2020-02-08T16:23:00.000Z | 2020-02-08T16:23:00.000Z | defmodule Mix.Tasks.Phoenix.Server do
use Mix.Task
@shortdoc "Starts applications and their servers"
@moduledoc """
Starts the application by configuring all endpoints servers to run.
## Command line options
This task accepts the same command-line arguments as `run`.
For additional information, refer ... | 24.470588 | 75 | 0.704327 |
e8a9a834618834e56af9f3e729f182950ad176f6 | 29,806 | exs | Elixir | test/ecto/adapters/postgres_test.exs | photomattmills/ecto | ad3a455aa3d5e4f932a5bb8ae1590b21d95cce54 | [
"Apache-2.0"
] | null | null | null | test/ecto/adapters/postgres_test.exs | photomattmills/ecto | ad3a455aa3d5e4f932a5bb8ae1590b21d95cce54 | [
"Apache-2.0"
] | null | null | null | test/ecto/adapters/postgres_test.exs | photomattmills/ecto | ad3a455aa3d5e4f932a5bb8ae1590b21d95cce54 | [
"Apache-2.0"
] | null | null | null | Code.require_file "../../../integration_test/support/types.exs", __DIR__
defmodule Ecto.Adapters.PostgresTest do
use ExUnit.Case, async: true
import Ecto.Query
alias Ecto.Queryable
alias Ecto.Adapters.Postgres.Connection, as: SQL
defmodule Model do
use Ecto.Schema
schema "model" do
field :x... | 40.886145 | 133 | 0.5824 |
e8a9be2244a45d802513e0af845562055fc419ff | 1,846 | exs | Elixir | elixir/config/dev.exs | swalcoff/web-homework | 8aa2aa4c0158a2df9149daf00ba15cdf36a66b73 | [
"MIT"
] | null | null | null | elixir/config/dev.exs | swalcoff/web-homework | 8aa2aa4c0158a2df9149daf00ba15cdf36a66b73 | [
"MIT"
] | null | null | null | elixir/config/dev.exs | swalcoff/web-homework | 8aa2aa4c0158a2df9149daf00ba15cdf36a66b73 | [
"MIT"
] | null | null | null | # use Mix.Config
import Config
# Configure your database
config :homework, Homework.Repo,
username: System.get_env("POSTGRES_USER") || "postgres",
password: System.get_env("POSTGRES_PASSWORD") || "postgres",
hostname: System.get_env("POSTGRES_HOST") || "localhost",
database: System.get_env("POSTGRES_DATABASE")... | 31.288136 | 68 | 0.728602 |
e8a9ea804873633e0522d3e25c1c0fbbdbb494f3 | 132 | exs | Elixir | hanoi/test/hanoi_test.exs | CraigTreptow/hanoi | 85527201caff2ccab4570af28167b65c5356e7a0 | [
"MIT"
] | null | null | null | hanoi/test/hanoi_test.exs | CraigTreptow/hanoi | 85527201caff2ccab4570af28167b65c5356e7a0 | [
"MIT"
] | null | null | null | hanoi/test/hanoi_test.exs | CraigTreptow/hanoi | 85527201caff2ccab4570af28167b65c5356e7a0 | [
"MIT"
] | null | null | null | defmodule HanoiTest do
use ExUnit.Case
doctest Hanoi
test "greets the world" do
assert Hanoi.hello() == :world
end
end
| 14.666667 | 34 | 0.69697 |
e8aa20365bddc372fd6d8479508e87a17144dfac | 1,268 | ex | Elixir | lib/podcatcher/web/views/error_helpers.ex | danjac/podcatcher | 748cf7419aebfff9216e7ff9353a5bdb46d3d7b1 | [
"MIT"
] | null | null | null | lib/podcatcher/web/views/error_helpers.ex | danjac/podcatcher | 748cf7419aebfff9216e7ff9353a5bdb46d3d7b1 | [
"MIT"
] | null | null | null | lib/podcatcher/web/views/error_helpers.ex | danjac/podcatcher | 748cf7419aebfff9216e7ff9353a5bdb46d3d7b1 | [
"MIT"
] | null | null | null | defmodule Podcatcher.Web.ErrorHelpers do
@moduledoc """
Conveniences for translating and building error messages.
"""
use Phoenix.HTML
@doc """
Generates tag for inlined form input errors.
"""
def error_tag(form, field) do
if error = form.errors[field] do
content_tag :p, "#{humanize(field)}:... | 30.926829 | 89 | 0.666404 |
e8aa676fb61cc79c3352e717fa6a840c978f1532 | 448 | exs | Elixir | Elixir/Phoenix/hello/config/test.exs | Jac21/GistsCollection | 4200b0cecf00af443711ca127028fccbbe8cfbf5 | [
"MIT"
] | 5 | 2015-09-11T15:02:54.000Z | 2020-10-14T05:16:18.000Z | Elixir/Phoenix/hello/config/test.exs | Jac21/GistsCollection | 4200b0cecf00af443711ca127028fccbbe8cfbf5 | [
"MIT"
] | 21 | 2019-12-28T11:18:09.000Z | 2022-01-02T10:32:36.000Z | Elixir/Phoenix/hello/config/test.exs | Jac21/GistsCollection | 4200b0cecf00af443711ca127028fccbbe8cfbf5 | [
"MIT"
] | 2 | 2016-11-07T23:16:56.000Z | 2020-10-14T05:16:49.000Z | use Mix.Config
# Configure your database
config :hello, Hello.Repo,
username: "postgres",
password: "demo123",
database: "hello_test",
hostname: "localhost",
pool: Ecto.Adapters.SQL.Sandbox
# We don't run a server during test. If one is required,
# you can enable the server option below.
config :hello, Hell... | 23.578947 | 56 | 0.725446 |
e8aa7266af384db6a83d67cc6481689ab53309b0 | 14,062 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/placement.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/placement.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/placement.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... | 76.010811 | 562 | 0.723937 |
e8aaa3bee1960b2f495072db1dd3f8cd727ae3c6 | 862 | ex | Elixir | lib/jukee/players/player.ex | samuelbriole/Jukee | 1f0dd7616d63d742fac17daabaf50b406d9dbede | [
"MIT"
] | 3 | 2018-05-17T17:43:06.000Z | 2018-06-09T02:12:25.000Z | lib/jukee/players/player.ex | samuelbriole/Jukee | 1f0dd7616d63d742fac17daabaf50b406d9dbede | [
"MIT"
] | 2 | 2018-06-04T15:51:36.000Z | 2018-06-20T11:31:23.000Z | lib/jukee/players/player.ex | samuelbriole/jukee | 1f0dd7616d63d742fac17daabaf50b406d9dbede | [
"MIT"
] | null | null | null | defmodule Jukee.Players.Player do
use Ecto.Schema
import Ecto.Changeset
schema "players" do
field :muted, :boolean, default: false
field :playing, :boolean, default: false
field :track_start, :naive_datetime
field :volume, :float
field :track_progress, :integer, default: 0
field :autopla... | 29.724138 | 89 | 0.730858 |
e8aaa9b114c90ff0676873a8a8e6be92315a9ec2 | 1,113 | ex | Elixir | lib/dashboard/application.ex | mammenj/dashboard | 85166ff9cb5fb8c9ba326bf89730066d36a90054 | [
"Apache-2.0"
] | null | null | null | lib/dashboard/application.ex | mammenj/dashboard | 85166ff9cb5fb8c9ba326bf89730066d36a90054 | [
"Apache-2.0"
] | null | null | null | lib/dashboard/application.ex | mammenj/dashboard | 85166ff9cb5fb8c9ba326bf89730066d36a90054 | [
"Apache-2.0"
] | null | null | null | defmodule Dashboard.Application do
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
use Application
@impl true
def start(_type, _args) do
children = [
# Start the Ecto repository
# Dashboard.Repo,
# Start the Telemetry super... | 29.289474 | 67 | 0.701707 |
e8aaffe54450371725f4c90da38726c2fb14b51b | 309 | ex | Elixir | lib/central_web/views/account/group_view.ex | icexuick/teiserver | 22f2e255e7e21f977e6b262acf439803626a506c | [
"MIT"
] | 6 | 2021-02-08T10:42:53.000Z | 2021-04-25T12:12:03.000Z | lib/central_web/views/account/group_view.ex | icexuick/teiserver | 22f2e255e7e21f977e6b262acf439803626a506c | [
"MIT"
] | 14 | 2021-08-01T02:36:14.000Z | 2022-01-30T21:15:03.000Z | lib/central_web/views/account/group_view.ex | icexuick/teiserver | 22f2e255e7e21f977e6b262acf439803626a506c | [
"MIT"
] | 7 | 2021-05-13T12:55:28.000Z | 2022-01-14T06:39:06.000Z | defmodule CentralWeb.Account.GroupView do
use CentralWeb, :view
@spec colours :: {String.t(), String.t(), String.t()}
def colours, do: Central.Account.GroupLib.colours()
@spec icon :: String.t()
def icon, do: Central.Account.GroupLib.icon()
@spec name :: String.t()
def name, do: "group"
end
| 23.769231 | 55 | 0.676375 |
e8ab040fe9eb32f94f6e87a1dce70093871f83da | 1,836 | exs | Elixir | test/types_test.exs | nicooga/maru | e61cf79f11c4d016766efb6778f6ae735445b1b3 | [
"BSD-3-Clause"
] | null | null | null | test/types_test.exs | nicooga/maru | e61cf79f11c4d016766efb6778f6ae735445b1b3 | [
"BSD-3-Clause"
] | null | null | null | test/types_test.exs | nicooga/maru | e61cf79f11c4d016766efb6778f6ae735445b1b3 | [
"BSD-3-Clause"
] | null | null | null | defmodule Maru.TypesTest do
use ExUnit.Case, async: true
alias Maru.Types
test "string" do
assert Types.String.parse(1, %{}) == "1"
assert Types.String.parse('1', %{}) == "1"
end
test "integer" do
assert Types.Integer.parse(1, %{}) == 1
assert Types.Integer.parse('1', %{}) == 1
asser... | 27 | 91 | 0.564815 |
e8ab39ac84e4cbb184aa43acce99bd4a1e50aa71 | 1,635 | ex | Elixir | lib/hammoc/identity/authentication.ex | hammoc-app/hammoc-elixir | 00cd24e2170cc3dee65c7848868ea3d1096ac25c | [
"MIT"
] | 5 | 2019-07-13T22:20:50.000Z | 2020-07-13T05:05:43.000Z | lib/hammoc/identity/authentication.ex | hammoc-app/hammoc-elixir | 00cd24e2170cc3dee65c7848868ea3d1096ac25c | [
"MIT"
] | 33 | 2019-08-01T03:48:23.000Z | 2021-07-28T03:29:40.000Z | lib/hammoc/identity/authentication.ex | hammoc-app/hammoc-elixir | 00cd24e2170cc3dee65c7848868ea3d1096ac25c | [
"MIT"
] | 2 | 2019-09-03T22:45:11.000Z | 2020-01-01T23:56:58.000Z | defmodule Hammoc.Identity.Authentication do
@moduledoc "An authentication with an external provider, e.g. Twitter."
use Ecto.Schema
alias Hammoc.Ecto.{Encrypted, Hashed}
alias Hammoc.Identity.{User, UserAuthentication}
import Ecto.Changeset
@primary_key {:id, :binary_id, autogenerate: true}
@foreign_k... | 28.684211 | 87 | 0.730275 |
e8ab4ec2af6653bc72205cd42bc325d53afb7064 | 554 | exs | Elixir | jitex.exs | ktravers/JitEx | 93900bbe8389a303fe7c6ca4a802d07d792d062c | [
"MIT"
] | null | null | null | jitex.exs | ktravers/JitEx | 93900bbe8389a303fe7c6ca4a802d07d792d062c | [
"MIT"
] | null | null | null | jitex.exs | ktravers/JitEx | 93900bbe8389a303fe7c6ca4a802d07d792d062c | [
"MIT"
] | null | null | null | #! /usr/bin/env elixir
# Usage
#
# ./jitex <command> <arg>
#
# Ex. `./jitex init .`
[command | args] = System.argv()
case command do
"init" ->
{:ok, cwd} = File.cwd()
path = List.first(args) || cwd
git_dir = "#{path}/.git"
[git_dir, "#{git_dir}/objects", "#{git_dir}/refs"]
|> Enum.each(fn dir... | 16.787879 | 57 | 0.536101 |
e8ab5d0df66cce250e517a8ac169ecf1bb2846a0 | 1,364 | exs | Elixir | test/auth/plain_test.exs | hauptbenutzer/snap | 8993183e3cae6bd52ce62e3b1248e35a4deda6d1 | [
"MIT"
] | 20 | 2021-04-16T19:33:59.000Z | 2022-03-16T17:16:51.000Z | test/auth/plain_test.exs | hauptbenutzer/snap | 8993183e3cae6bd52ce62e3b1248e35a4deda6d1 | [
"MIT"
] | 8 | 2021-02-05T20:17:18.000Z | 2022-03-28T21:43:47.000Z | test/auth/plain_test.exs | hauptbenutzer/snap | 8993183e3cae6bd52ce62e3b1248e35a4deda6d1 | [
"MIT"
] | 5 | 2021-04-12T13:54:26.000Z | 2022-03-10T17:59:58.000Z | defmodule Snap.Auth.PlainTest do
use ExUnit.Case
alias Snap.Auth.Plain
test "without a username and password in the config" do
config = []
method = "GET"
path = "/_cluster/health"
headers = []
body = nil
{:ok, {method2, path2, headers2, body2}} = Plain.sign(config, method, path, headers... | 28.416667 | 94 | 0.640762 |
e8ab654153dc7ff8d5fdde73a27a9478a47b084b | 300 | exs | Elixir | priv/repo/migrations/20191027174654_add-default-timestamps.exs | chittolina/stackexchange_crawler | e0ab27eb718bbf62b50ff3b76abefe947ec3fea8 | [
"MIT"
] | null | null | null | priv/repo/migrations/20191027174654_add-default-timestamps.exs | chittolina/stackexchange_crawler | e0ab27eb718bbf62b50ff3b76abefe947ec3fea8 | [
"MIT"
] | 1 | 2022-02-10T19:50:54.000Z | 2022-02-10T19:50:54.000Z | priv/repo/migrations/20191027174654_add-default-timestamps.exs | chittolina/stackexchange_crawler | e0ab27eb718bbf62b50ff3b76abefe947ec3fea8 | [
"MIT"
] | null | null | null | defmodule :"Elixir.StackexchangeCrawler.Repo.Migrations.Add-default-timestamps" do
use Ecto.Migration
def change do
alter table("users") do
modify(:inserted_at, :timestamp, default: fragment("now()"))
modify(:updated_at, :timestamp, default: fragment("now()"))
end
end
end
| 27.272727 | 82 | 0.703333 |
e8ab7a3d911409694747b6535bad0edb4b51da58 | 1,577 | ex | Elixir | lib/bombadil/search.ex | andrewstuarttaxfix/bombadil | c05e93a02d5bd691bb222024ab1930b19fc46560 | [
"Apache-2.0"
] | null | null | null | lib/bombadil/search.ex | andrewstuarttaxfix/bombadil | c05e93a02d5bd691bb222024ab1930b19fc46560 | [
"Apache-2.0"
] | null | null | null | lib/bombadil/search.ex | andrewstuarttaxfix/bombadil | c05e93a02d5bd691bb222024ab1930b19fc46560 | [
"Apache-2.0"
] | null | null | null | defmodule Bombadil.Search do
@moduledoc false
import Ecto.Query
# EXPLORE websearch
# SELECT websearch_to_tsquery('english', '"supernovae stars" -crab');
# TODO: Convert to opts the options ;)
def search(schema, search_query, opts \\ [])
def search(schema, search_query, opts) when is_list(search_query)... | 29.203704 | 78 | 0.719721 |
e8abb10cc744874991f2a3fa08db236151f9b5c7 | 150 | ex | Elixir | apps/snitch_core/lib/core/tools/generate_nanoid.ex | Acrecio/avia | 54d264fc179b5b5f17d174854bdca063e1d935e9 | [
"MIT"
] | 456 | 2018-09-20T02:40:59.000Z | 2022-03-07T08:53:48.000Z | apps/snitch_core/lib/core/tools/generate_nanoid.ex | Acrecio/avia | 54d264fc179b5b5f17d174854bdca063e1d935e9 | [
"MIT"
] | 273 | 2018-09-19T06:43:43.000Z | 2021-08-07T12:58:26.000Z | apps/snitch_core/lib/core/tools/generate_nanoid.ex | Acrecio/avia | 54d264fc179b5b5f17d174854bdca063e1d935e9 | [
"MIT"
] | 122 | 2018-09-26T16:32:46.000Z | 2022-03-13T11:44:19.000Z | defmodule Snitch.Tools.GenNanoid do
# to be mocked
def gen_nano_id() do
Nanoid.generate(10, "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ")
end
end
| 21.428571 | 63 | 0.766667 |
e8abcd9070aa7f9e0670a3c90e07a022e3149bad | 543 | ex | Elixir | lib/google_fit/dataset/number_summary.ex | tsubery/google_fit | 7578b832c560b3b4a78059ac86af6e111812712e | [
"Apache-2.0"
] | 2 | 2017-02-01T13:51:26.000Z | 2019-04-12T11:37:25.000Z | lib/google_fit/dataset/number_summary.ex | tsubery/google_fit | 7578b832c560b3b4a78059ac86af6e111812712e | [
"Apache-2.0"
] | null | null | null | lib/google_fit/dataset/number_summary.ex | tsubery/google_fit | 7578b832c560b3b4a78059ac86af6e111812712e | [
"Apache-2.0"
] | null | null | null | defmodule GoogleFit.Dataset.NumberSummary do
@moduledoc """
This module represents daily aggregation for numeric data types
"""
alias GoogleFit.Dataset.ValueFormatError
defstruct ~w[average maximum minimum]a
@doc false
def decode([
%{"fpVal" => avg},
%{"fpVal" => max},
%{"fpVal" => min}
... | 19.392857 | 87 | 0.661142 |
e8abd5c3dded69e63b93fb9c34502ad590e9d0cb | 3,624 | ex | Elixir | lib/sanbase/event_bus/event_bus.ex | santiment/sanbase2 | 9ef6e2dd1e377744a6d2bba570ea6bd477a1db31 | [
"MIT"
] | 81 | 2017-11-20T01:20:22.000Z | 2022-03-05T12:04:25.000Z | lib/sanbase/event_bus/event_bus.ex | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | 359 | 2017-10-15T14:40:53.000Z | 2022-01-25T13:34:20.000Z | lib/sanbase/event_bus/event_bus.ex | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | 16 | 2017-11-19T13:57:40.000Z | 2022-02-07T08:13:02.000Z | defmodule Sanbase.EventBus do
@moduledoc """
The Event Bus is a mechanism that allows different components to communicate
with each other without knowing about eachother.
The Event Bus allows to decouple the creation of an event from the processing
of that same event. A component sends events to the Event Bu... | 33.555556 | 93 | 0.709161 |
e8abe254e81b1bb4893d6164454e80b713ec2bb8 | 1,028 | ex | Elixir | lib/crawly/application.ex | m4hi2/crawly | b9e1bfffcc97e978023924e7aad53fc8a223aebf | [
"Apache-2.0"
] | 486 | 2019-05-30T09:19:59.000Z | 2021-04-28T07:51:31.000Z | lib/crawly/application.ex | m4hi2/crawly | b9e1bfffcc97e978023924e7aad53fc8a223aebf | [
"Apache-2.0"
] | 131 | 2019-06-29T12:43:24.000Z | 2021-04-24T19:40:07.000Z | lib/crawly/application.ex | m4hi2/crawly | b9e1bfffcc97e978023924e7aad53fc8a223aebf | [
"Apache-2.0"
] | 52 | 2019-06-24T10:13:41.000Z | 2021-03-28T07:36:42.000Z | defmodule Crawly.Application do
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
use Application
def start(_type, _args) do
import Supervisor.Spec, warn: false
# List all child processes to be supervised
children = [
{Crawly.Engi... | 31.151515 | 74 | 0.681907 |
e8ac52bfe69a9befa6e32acca54cc8de1971b9f0 | 1,127 | ex | Elixir | lib/lib_ten_web/controllers/auth_controller.ex | 10clouds/10Books | 622360ea190421e07d4b207700867be105894218 | [
"MIT"
] | 11 | 2018-08-29T15:59:09.000Z | 2021-08-25T16:35:13.000Z | lib/lib_ten_web/controllers/auth_controller.ex | fram74/10Books | 9e4e280032c7f7b9625c831efa9850d999327e53 | [
"MIT"
] | 16 | 2018-08-29T15:43:52.000Z | 2021-05-09T00:53:56.000Z | lib/lib_ten_web/controllers/auth_controller.ex | fram74/10Books | 9e4e280032c7f7b9625c831efa9850d999327e53 | [
"MIT"
] | 3 | 2019-05-29T14:22:59.000Z | 2020-06-06T12:30:54.000Z | defmodule LibTenWeb.AuthController do
use LibTenWeb, :controller
plug Ueberauth
alias LibTen.Accounts
def index(conn, _params) do
if get_session(conn, :user_id) do
redirect(conn, to: products_path(conn, :library))
else
conn
|> put_layout("empty.html")
|> render("index.html")
... | 22.54 | 75 | 0.603372 |
e8ac6b61a0f4c124ec9c23d5ff346e4a1694598f | 26,576 | ex | Elixir | lib/ash/resource/dsl.ex | savish/ash | 7faf73097a6c6f801851e9d89569b6f5e6e87f81 | [
"MIT"
] | null | null | null | lib/ash/resource/dsl.ex | savish/ash | 7faf73097a6c6f801851e9d89569b6f5e6e87f81 | [
"MIT"
] | null | null | null | lib/ash/resource/dsl.ex | savish/ash | 7faf73097a6c6f801851e9d89569b6f5e6e87f81 | [
"MIT"
] | null | null | null | defmodule Ash.Resource.Dsl do
@attribute %Ash.Dsl.Entity{
name: :attribute,
describe: """
Declares an attribute on the resource
Type can be either a built in type (see `Ash.Type`) for more, or a module
implementing the `Ash.Type` behaviour.
*Strings are trimmed by default*. If you want to re... | 28.212314 | 126 | 0.626204 |
e8ac6f190e89fb512c0cd19f06124352bb50df13 | 2,910 | ex | Elixir | clients/iam_credentials/lib/google_api/iam_credentials/v1/model/generate_access_token_request.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/iam_credentials/lib/google_api/iam_credentials/v1/model/generate_access_token_request.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/iam_credentials/lib/google_api/iam_credentials/v1/model/generate_access_token_request.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... | 54.90566 | 613 | 0.753608 |
e8aca3a78ceebe58ee34ef05a3b4e14f6f7e8a4c | 990 | ex | Elixir | lib/mgp/application.ex | imprest/mgp | 61457315243d0e0c26713601b9930ca34a116a16 | [
"MIT"
] | null | null | null | lib/mgp/application.ex | imprest/mgp | 61457315243d0e0c26713601b9930ca34a116a16 | [
"MIT"
] | 2 | 2020-12-22T12:30:58.000Z | 2021-05-19T10:07:26.000Z | lib/mgp/application.ex | imprest/mgp | 61457315243d0e0c26713601b9930ca34a116a16 | [
"MIT"
] | null | null | null | defmodule Mgp.Application do
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
use Application
def start(_type, _args) do
children = [
# Start the Ecto repository
Mgp.Repo,
# Start the Telemetry supervisor
MgpWeb.Telemetr... | 27.5 | 61 | 0.686869 |
e8acae0cdb67659d2d101c89811cb84dd30eb1c3 | 3,673 | ex | Elixir | questions/aggregates/00050000-fachours2.ex | morenoh149/pgexercises | ae5b46d84d5e4cdb6af49047960d7abd76e80f30 | [
"BSD-2-Clause"
] | null | null | null | questions/aggregates/00050000-fachours2.ex | morenoh149/pgexercises | ae5b46d84d5e4cdb6af49047960d7abd76e80f30 | [
"BSD-2-Clause"
] | null | null | null | questions/aggregates/00050000-fachours2.ex | morenoh149/pgexercises | ae5b46d84d5e4cdb6af49047960d7abd76e80f30 | [
"BSD-2-Clause"
] | 1 | 2019-10-08T04:46:40.000Z | 2019-10-08T04:46:40.000Z | |QUESTIONNAME|
Output the facility id that has the highest number of slots booked
|QUESTION|
Output the facility id that has the highest number of slots booked. For bonus points, try a version without a <c>LIMIT</c> clause. This version will probably look messy!
|QUERY|
select facid, sum(slots) as "Total Slots"
from ... | 55.651515 | 488 | 0.746529 |
e8acb42a466ebae69a30ffe0e085c8978f3ca043 | 1,951 | ex | Elixir | apps/omg_rpc/lib/web/controllers/fallback.ex | hoardexchange/elixir-omg | 423528699d467f1cc0d02c596290ab907af38c2c | [
"Apache-2.0"
] | null | null | null | apps/omg_rpc/lib/web/controllers/fallback.ex | hoardexchange/elixir-omg | 423528699d467f1cc0d02c596290ab907af38c2c | [
"Apache-2.0"
] | null | null | null | apps/omg_rpc/lib/web/controllers/fallback.ex | hoardexchange/elixir-omg | 423528699d467f1cc0d02c596290ab907af38c2c | [
"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... | 30.968254 | 113 | 0.698616 |
e8acc50db307b2b36398f7f0e30b2d6132033f61 | 11,363 | ex | Elixir | lib/geocalc/calculator.ex | kianmeng/geocalc | 8022321193d8071af43040b4cc58c62af04b8e0d | [
"MIT"
] | null | null | null | lib/geocalc/calculator.ex | kianmeng/geocalc | 8022321193d8071af43040b4cc58c62af04b8e0d | [
"MIT"
] | null | null | null | lib/geocalc/calculator.ex | kianmeng/geocalc | 8022321193d8071af43040b4cc58c62af04b8e0d | [
"MIT"
] | null | null | null | defmodule Geocalc.Calculator do
@moduledoc false
alias Geocalc.Point
@earth_radius 6_371_000
@pi :math.pi()
@epsilon 2.220446049250313e-16
@intersection_not_found "No intersection point found"
def distance_between(point_1, point_2, radius \\ @earth_radius) do
fo_1 = degrees_to_radians(Point.latitud... | 33.031977 | 110 | 0.652205 |
e8acdc0ca7e06477f9670757628c839aef161d6c | 4,770 | exs | Elixir | test/crew_web/live/person_live_test.exs | anamba/crew | c25f6a1d6ddbe0b58da9d556ff53a641c4d2a7b1 | [
"BSL-1.0"
] | null | null | null | test/crew_web/live/person_live_test.exs | anamba/crew | c25f6a1d6ddbe0b58da9d556ff53a641c4d2a7b1 | [
"BSL-1.0"
] | 5 | 2020-07-20T01:49:01.000Z | 2021-09-08T00:17:04.000Z | test/crew_web/live/person_live_test.exs | anamba/crew | c25f6a1d6ddbe0b58da9d556ff53a641c4d2a7b1 | [
"BSL-1.0"
] | null | null | null | defmodule CrewWeb.PersonLiveTest do
use CrewWeb.ConnCase
import Phoenix.LiveViewTest
import Crew.AccountsFixtures
alias Crew.Persons
alias Crew.Sites
@create_attrs %{
first_name: "some first_name",
last_name: "some last_name",
middle_names: "some middle_names",
note: "some note",
prof... | 29.627329 | 96 | 0.620964 |
e8ad32b01e2d5b4ed6d29ddf6b0c8f8d0862155d | 1,511 | ex | Elixir | lib/ua_inspector/parser/os.ex | elixir-inspector/ua_inspector | d6e3622686bffe743869fef2842b065da7d7ff1d | [
"Apache-2.0"
] | 44 | 2019-03-17T10:44:04.000Z | 2022-01-30T10:09:28.000Z | lib/ua_inspector/parser/os.ex | elixir-inspector/ua_inspector | d6e3622686bffe743869fef2842b065da7d7ff1d | [
"Apache-2.0"
] | 12 | 2019-06-06T15:26:26.000Z | 2022-03-09T17:21:21.000Z | lib/ua_inspector/parser/os.ex | elixir-inspector/ua_inspector | d6e3622686bffe743869fef2842b065da7d7ff1d | [
"Apache-2.0"
] | 8 | 2020-04-21T07:49:37.000Z | 2021-12-07T00:18:33.000Z | defmodule UAInspector.Parser.OS do
@moduledoc false
alias UAInspector.Database.OSs
alias UAInspector.Result
alias UAInspector.Util
@behaviour UAInspector.Parser
@platforms [
{"ARM", Util.build_regex("arm|aarch64|Apple ?TV|Watch ?OS|Watch1,[12]")},
{"SuperH", Util.build_regex("sh4")},
{"MIPS",... | 24.370968 | 77 | 0.647253 |
e8adee8c4503a08ac2e4b589acc705bde5646535 | 1,250 | exs | Elixir | spec/assertions/be_close_to_spec.exs | MeneDev/espec | ec4b3d579c5192999e930224a8a2650bb1fdf0bc | [
"Apache-2.0"
] | 807 | 2015-03-25T14:00:19.000Z | 2022-03-24T08:08:15.000Z | spec/assertions/be_close_to_spec.exs | MeneDev/espec | ec4b3d579c5192999e930224a8a2650bb1fdf0bc | [
"Apache-2.0"
] | 254 | 2015-03-27T10:12:25.000Z | 2021-07-12T01:40:15.000Z | spec/assertions/be_close_to_spec.exs | MeneDev/espec | ec4b3d579c5192999e930224a8a2650bb1fdf0bc | [
"Apache-2.0"
] | 85 | 2015-04-02T10:25:19.000Z | 2021-01-30T21:30:43.000Z | defmodule ESpec.Assertions.BeCloseToSpec do
use ESpec, async: true
describe "ESpec.Assertions.BeCloseTo" do
context "Success" do
it "checks success with `to`" do
message = expect(5) |> to(be_close_to(4, 1))
expect(message) |> to(eq "`5` is close to `4` with delta `1`.")
end
i... | 29.069767 | 86 | 0.5656 |
e8adf52ad86ba27ae76544d73196b0b2af2f3c29 | 916 | exs | Elixir | apps/proxy/mix.exs | vapordao/staxx | 5110167573e67a91c0865c3265896642ebe4012e | [
"Apache-2.0"
] | null | null | null | apps/proxy/mix.exs | vapordao/staxx | 5110167573e67a91c0865c3265896642ebe4012e | [
"Apache-2.0"
] | null | null | null | apps/proxy/mix.exs | vapordao/staxx | 5110167573e67a91c0865c3265896642ebe4012e | [
"Apache-2.0"
] | null | null | null | defmodule Staxx.Proxy.MixProject do
use Mix.Project
def project do
[
app: :proxy,
version: "0.1.0",
build_path: "../../_build",
config_path: "../../config/config.exs",
deps_path: "../../deps",
lockfile: "../../mix.lock",
elixir: "~> 1.9",
start_permanent: Mix.env... | 22.9 | 59 | 0.563319 |
e8ae05180e2de97b1bf7e8be861c347d9d013950 | 296 | exs | Elixir | test/users_test.exs | kddeisz/travis.ex | 5d54cf61342f1b470d363c10b608a28ce97ee580 | [
"MIT"
] | null | null | null | test/users_test.exs | kddeisz/travis.ex | 5d54cf61342f1b470d363c10b608a28ce97ee580 | [
"MIT"
] | null | null | null | test/users_test.exs | kddeisz/travis.ex | 5d54cf61342f1b470d363c10b608a28ce97ee580 | [
"MIT"
] | null | null | null | defmodule Travis.UsersTest do
use ExUnit.Case
@client Travis.Client.new(System.get_env("TRAVIS_TOKEN"))
test "#list" do
%{"user" => %{"id" => _id}} = Travis.Users.list(@client)
end
test "#show" do
%{"user" => %{"id" => 135884}} = Travis.Users.show(135884, @client)
end
end
| 21.142857 | 71 | 0.618243 |
e8ae0695c87a6050feb204963122905925820a82 | 304 | ex | Elixir | lib/models/entity/mention.ex | jmnsf/ex_microsoftbot | c1c2185f1414b1cbb03999b2195745e35936c2d9 | [
"MIT"
] | 35 | 2016-05-11T02:34:27.000Z | 2021-04-29T07:34:11.000Z | lib/models/entity/mention.ex | jmnsf/ex_microsoftbot | c1c2185f1414b1cbb03999b2195745e35936c2d9 | [
"MIT"
] | 27 | 2016-07-10T18:32:25.000Z | 2021-09-29T07:00:22.000Z | lib/models/entity/mention.ex | jmnsf/ex_microsoftbot | c1c2185f1414b1cbb03999b2195745e35936c2d9 | [
"MIT"
] | 23 | 2016-05-10T18:53:13.000Z | 2021-06-25T22:04:21.000Z | defmodule ExMicrosoftBot.Models.Entity.Mention do
@moduledoc """
Mention entities have
"""
@derive [Poison.Encoder]
defstruct [:id, :name]
@type t :: %__MODULE__{
id: String.t(),
name: String.t()
}
@doc false
def decoding_map do
%__MODULE__{}
end
end
| 16 | 49 | 0.598684 |
e8ae10f7e2bf0cd5cac768aae2e9f7c1d3fed82a | 835 | ex | Elixir | debian/watch.ex | Ertain/wii-u-gc-adapter | e5f81d6cdd6aaf792c19e975ca62e5e18b2eca44 | [
"MIT"
] | 6 | 2016-05-21T11:17:11.000Z | 2018-12-17T22:36:07.000Z | debian/watch.ex | Ertain/wii-u-gc-adapter | e5f81d6cdd6aaf792c19e975ca62e5e18b2eca44 | [
"MIT"
] | null | null | null | debian/watch.ex | Ertain/wii-u-gc-adapter | e5f81d6cdd6aaf792c19e975ca62e5e18b2eca44 | [
"MIT"
] | 4 | 2016-05-31T20:13:35.000Z | 2019-07-07T15:44:40.000Z | # Example watch control file for uscan
# Rename this file to "watch" and then you can run the "uscan" command
# to check for upstream updates and more.
# See uscan(1) for format
# Compulsory line, this is a version 3 file
version=3
# Uncomment to examine a Webpage
# <Webpage URL> <string match>
#http://www.example.co... | 34.791667 | 72 | 0.717365 |
e8ae51bd8e887b159805bb0cc9e7f575f2d1f7bb | 1,119 | exs | Elixir | slackbot/config/config.exs | enilsen16/elixir | b4d1d45858a25e4beb39e07de8685f3d93d6a520 | [
"MIT"
] | null | null | null | slackbot/config/config.exs | enilsen16/elixir | b4d1d45858a25e4beb39e07de8685f3d93d6a520 | [
"MIT"
] | null | null | null | slackbot/config/config.exs | enilsen16/elixir | b4d1d45858a25e4beb39e07de8685f3d93d6a520 | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on this project, this
# file won't be loaded nor affect the paren... | 36.096774 | 73 | 0.751564 |
e8aef1b595456f0203b3bdd8d59261302f96ef8a | 1,967 | exs | Elixir | config/config.exs | mojotech/situation-room | d43b0e35376ec6fe1c2d69810b4eee8cb752f286 | [
"MIT"
] | 9 | 2015-10-04T11:47:19.000Z | 2019-12-09T16:02:23.000Z | config/config.exs | mojotech/situation-room | d43b0e35376ec6fe1c2d69810b4eee8cb752f286 | [
"MIT"
] | 14 | 2015-07-28T04:41:57.000Z | 2022-03-31T18:12:51.000Z | config/config.exs | mojotech/situation-room | d43b0e35376ec6fe1c2d69810b4eee8cb752f286 | [
"MIT"
] | 1 | 2017-07-26T03:17:02.000Z | 2017-07-26T03:17:02.000Z | # This file is responsible for configuring your application
# and its dependencies with the aid of the Config module.
#
# This configuration file is loaded before any dependency and
# is restricted to this project.
# General application configuration
import Config
config :situation_room,
ecto_repos: [SituationRoom.... | 30.734375 | 117 | 0.722928 |
e8af23657189580d3654984fdf6861a20fd0438b | 75 | exs | Elixir | config/config.exs | parallel-markets/ex_persona | ef65aba6630333d251b4661eac3816144128eab5 | [
"MIT"
] | null | null | null | config/config.exs | parallel-markets/ex_persona | ef65aba6630333d251b4661eac3816144128eab5 | [
"MIT"
] | null | null | null | config/config.exs | parallel-markets/ex_persona | ef65aba6630333d251b4661eac3816144128eab5 | [
"MIT"
] | null | null | null | use Mix.Config
config :ex_persona, api_key: System.get_env("PERSONA_KEY")
| 18.75 | 58 | 0.786667 |
e8af476f751e93f7fd314f1cd113062d7f659e30 | 2,112 | exs | Elixir | test/extensor/tensor_test.exs | pylon/extensor | 57eba1660952d94416152531e159abd6b1faaee9 | [
"Apache-2.0"
] | 58 | 2018-06-12T00:01:51.000Z | 2022-01-30T17:29:42.000Z | test/extensor/tensor_test.exs | pylon/extensor | 57eba1660952d94416152531e159abd6b1faaee9 | [
"Apache-2.0"
] | 9 | 2018-06-13T19:33:39.000Z | 2020-02-17T17:24:15.000Z | test/extensor/tensor_test.exs | pylon/extensor | 57eba1660952d94416152531e159abd6b1faaee9 | [
"Apache-2.0"
] | 3 | 2018-06-13T19:45:36.000Z | 2021-05-16T17:40:08.000Z | defmodule Extensor.TensorTest do
use ExUnit.Case, async: true
alias Extensor.Tensor
@types [
:float,
:double,
:int32,
:uint8,
:int16,
:int8,
:int64,
:bool,
:qint8,
:quint8,
:qint32,
:qint16,
:quint16,
:uint32,
:uint64
]
test "list conversion" do
... | 23.730337 | 78 | 0.545928 |
e8af69b6a98833dff6e94d9f7cbc901e2a4b8675 | 346 | ex | Elixir | lib/piazza.ex | michaeljguarino/piazza_core | 9cb24c59687db068cd16d2de94066dc85f871bc0 | [
"MIT"
] | null | null | null | lib/piazza.ex | michaeljguarino/piazza_core | 9cb24c59687db068cd16d2de94066dc85f871bc0 | [
"MIT"
] | null | null | null | lib/piazza.ex | michaeljguarino/piazza_core | 9cb24c59687db068cd16d2de94066dc85f871bc0 | [
"MIT"
] | null | null | null | defmodule Piazza do
@moduledoc """
Basic utilities to expedite building web services in elixir. Tools
include:
* acl framework in Piazza.Policy
* pubsub framework in Piazza.PubSub.{Broadcaster, Consumer}
* ecto tools, release module, schema bootstrapper that autodefines
a Jason protocol (optionally), ... | 28.833333 | 69 | 0.745665 |
e8af6df790a787c6178b0e9e22ca819e72a94690 | 209 | ex | Elixir | lib/hexpm_web/views/docs_view.ex | Benjamin-Philip/hexpm | 6f38244f81bbabd234c660f46ea973849ba77a7f | [
"Apache-2.0"
] | 691 | 2017-03-08T09:15:45.000Z | 2022-03-23T22:04:47.000Z | lib/hexpm_web/views/docs_view.ex | Benjamin-Philip/hexpm | 6f38244f81bbabd234c660f46ea973849ba77a7f | [
"Apache-2.0"
] | 491 | 2017-03-07T12:58:42.000Z | 2022-03-29T23:32:54.000Z | lib/hexpm_web/views/docs_view.ex | Benjamin-Philip/hexpm | 6f38244f81bbabd234c660f46ea973849ba77a7f | [
"Apache-2.0"
] | 200 | 2017-03-12T23:03:39.000Z | 2022-03-05T17:55:52.000Z | defmodule HexpmWeb.DocsView do
use HexpmWeb, :view
alias HexpmWeb.DocsView
def selected_docs(conn, view) do
if conn.assigns.view_name == view do
"selected"
else
""
end
end
end
| 16.076923 | 40 | 0.660287 |
e8af9a76db68f74e2cd7cdfb19a20d770dbcc0e3 | 6,419 | exs | Elixir | .credo.exs | fbettag/phoenix_mdbootstrap_form | 3c9400f90944107e3d34e28e7f24e4c98a066de3 | [
"MIT"
] | 1 | 2021-05-05T16:20:26.000Z | 2021-05-05T16:20:26.000Z | .credo.exs | fbettag/phoenix_mdbootstrap_form.ex | 3c9400f90944107e3d34e28e7f24e4c98a066de3 | [
"MIT"
] | null | null | null | .credo.exs | fbettag/phoenix_mdbootstrap_form.ex | 3c9400f90944107e3d34e28e7f24e4c98a066de3 | [
"MIT"
] | null | null | null | # This file contains the configuration for Credo and you are probably reading
# this after creating it with `mix credo.gen.config`.
#
# If you find anything wrong or unclear in this file, please report an
# issue on GitHub: https://github.com/rrrene/credo/issues
#
%{
#
# You can have as many configs as you like in ... | 38.90303 | 96 | 0.611466 |
e8afb5d77bb027e649d44e300d17c545f2fe7bdf | 1,663 | ex | Elixir | clients/recommendation_engine/lib/google_api/recommendation_engine/v1beta1/model/google_cloud_recommendationengine_v1beta1_prediction_api_key_registration.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/recommendation_engine/lib/google_api/recommendation_engine/v1beta1/model/google_cloud_recommendationengine_v1beta1_prediction_api_key_registration.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/recommendation_engine/lib/google_api/recommendation_engine/v1beta1/model/google_cloud_recommendationengine_v1beta1_prediction_api_key_registration.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... | 30.796296 | 124 | 0.760673 |
e8afce40d74fd0c386c780e5ee70369bc001557d | 5,233 | exs | Elixir | test/dispatch/registry_test.exs | bjuretic/dispatch | e0c81efe69c0609390c14ddbc7762b6b7c9ba828 | [
"MIT"
] | null | null | null | test/dispatch/registry_test.exs | bjuretic/dispatch | e0c81efe69c0609390c14ddbc7762b6b7c9ba828 | [
"MIT"
] | null | null | null | test/dispatch/registry_test.exs | bjuretic/dispatch | e0c81efe69c0609390c14ddbc7762b6b7c9ba828 | [
"MIT"
] | null | null | null | defmodule Dispatch.RegistryTest do
use ExUnit.Case, async: false
alias Dispatch.{Registry, Helper}
setup do
type = "RegistryTest"
pubsub_server = Application.get_env(:dispatch, :pubsub)
|> Keyword.get(:name, Dispatch.PubSub)
Phoenix.PubSub.subscribe(pubsub_server, type)
{:ok... | 39.345865 | 111 | 0.666921 |
e8aff3925bc36620875920a287387ccffaa748e6 | 73 | exs | Elixir | elixir/13.exs | merxer/kata | 5dbbca8b4173029f9311398148de9437a329cf9a | [
"MIT"
] | null | null | null | elixir/13.exs | merxer/kata | 5dbbca8b4173029f9311398148de9437a329cf9a | [
"MIT"
] | null | null | null | elixir/13.exs | merxer/kata | 5dbbca8b4173029f9311398148de9437a329cf9a | [
"MIT"
] | null | null | null | list1 = [3, 2, 1]
IO.inspect list1
list2 = [4 | list1]
IO.inspect list2
| 12.166667 | 19 | 0.643836 |
e8b00c0a29c9398738df1893f28e2cd8e62c2560 | 8,684 | ex | Elixir | lib/ash/filter/runtime.ex | savish/ash | 7faf73097a6c6f801851e9d89569b6f5e6e87f81 | [
"MIT"
] | null | null | null | lib/ash/filter/runtime.ex | savish/ash | 7faf73097a6c6f801851e9d89569b6f5e6e87f81 | [
"MIT"
] | null | null | null | lib/ash/filter/runtime.ex | savish/ash | 7faf73097a6c6f801851e9d89569b6f5e6e87f81 | [
"MIT"
] | null | null | null | defmodule Ash.Filter.Runtime do
@moduledoc """
Checks a record to see if it matches a filter statement.
We can't always tell if a record matches a filter statement, and as such this
function may return `:unknown`. Additionally, some expressions wouldn't ever
make sense outside of the context of the data laye... | 24.954023 | 88 | 0.57059 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.