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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
79f228a805d447e6342b8144a3a6993e330ed082 | 208 | exs | Elixir | priv/repo/migrations/20180225175943_add_participation_counter_to_workshops.exs | nunopolonia/psc-api | 2e358503851cc04cdaa89201a3f56586f8746736 | [
"MIT"
] | 1 | 2017-09-10T23:51:40.000Z | 2017-09-10T23:51:40.000Z | priv/repo/migrations/20180225175943_add_participation_counter_to_workshops.exs | nunopolonia/psc-api | 2e358503851cc04cdaa89201a3f56586f8746736 | [
"MIT"
] | 24 | 2018-03-14T18:17:00.000Z | 2021-03-01T07:47:53.000Z | priv/repo/migrations/20180225175943_add_participation_counter_to_workshops.exs | portosummerofcode/psc-api | 2e358503851cc04cdaa89201a3f56586f8746736 | [
"MIT"
] | null | null | null | defmodule Api.Repo.Migrations.AddParticipantsCounterToWorkshops do
use Ecto.Migration
def change do
alter table(:workshops) do
add :participants_counter, :integer, default: 0
end
end
end
| 20.8 | 66 | 0.75 |
79f2360c98b2e53aee69d3e72091379fad754339 | 432 | ex | Elixir | testData/org/elixir_lang/parser_definition/matched_dot_operator_call_operation/one_argument_parsing_test_case/EmptyBlock.ex | ArtemGordinsky/intellij-elixir | e2d9b4dfc65651b293d499043edeaad606cf5652 | [
"Apache-2.0"
] | null | null | null | testData/org/elixir_lang/parser_definition/matched_dot_operator_call_operation/one_argument_parsing_test_case/EmptyBlock.ex | ArtemGordinsky/intellij-elixir | e2d9b4dfc65651b293d499043edeaad606cf5652 | [
"Apache-2.0"
] | null | null | null | testData/org/elixir_lang/parser_definition/matched_dot_operator_call_operation/one_argument_parsing_test_case/EmptyBlock.ex | ArtemGordinsky/intellij-elixir | e2d9b4dfc65651b293d499043edeaad606cf5652 | [
"Apache-2.0"
] | null | null | null | (;).and positional
(;).&& positional
(;).|> positional
(;).@ positional
(;).& positional
(;).== positional
(;).+ positional
(;).^^^ positional
(;).<- positional
(;).in positional
(;).= positional
(;)./ positional
(;).* positional
(;).or positional
(;).|| positional
(;).| positional
(;).<= positional
(;).-> positional
(... | 17.28 | 20 | 0.604167 |
79f2397bc199c9cc6b20ab8db8d5435fdd91f3c7 | 1,834 | ex | Elixir | clients/cloud_tasks/lib/google_api/cloud_tasks/v2beta2/model/list_locations_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/cloud_tasks/lib/google_api/cloud_tasks/v2beta2/model/list_locations_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/cloud_tasks/lib/google_api/cloud_tasks/v2beta2/model/list_locations_response.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 ... | 36.68 | 171 | 0.74482 |
79f2436086e0a9aaefbdb609f3560de3d3f677ce | 637 | exs | Elixir | languages/elixir/exercises/concept/stack-underflow/test/test_helper.exs | jwarwick/exercism_v3 | db92721b9d62681c51b8f25fb0c6f5f97bfac44b | [
"MIT"
] | 200 | 2019-12-12T13:50:59.000Z | 2022-02-20T22:38:42.000Z | languages/elixir/exercises/concept/stack-underflow/test/test_helper.exs | jwarwick/exercism_v3 | db92721b9d62681c51b8f25fb0c6f5f97bfac44b | [
"MIT"
] | 1,938 | 2019-12-12T08:07:10.000Z | 2021-01-29T12:56:13.000Z | languages/elixir/exercises/concept/stack-underflow/test/test_helper.exs | jwarwick/exercism_v3 | db92721b9d62681c51b8f25fb0c6f5f97bfac44b | [
"MIT"
] | 239 | 2019-12-12T14:09:08.000Z | 2022-03-18T00:04:07.000Z | options = [
undefined_division_by_zero_error_module:
Code.ensure_compiled(RPNCalculator.Exception.DivisionByZeroError) == {:error, :nofile},
undefined_stack_underflow_error_module:
Code.ensure_compiled(RPNCalculator.Exception.StackUnderflowError) == {:error, :nofile},
undefined_struct_division_by_zero_err... | 45.5 | 91 | 0.821036 |
79f26c2de155dd4793ef31a1f0ca5f4be0de8959 | 568 | ex | Elixir | lib/my_acs.ex | Fullrate/my_acs | 52b179267eb450b49dcc1c4a368605c62e7f2abe | [
"Unlicense"
] | 5 | 2016-11-24T07:34:29.000Z | 2019-09-06T15:55:35.000Z | lib/my_acs.ex | Fullrate/my_acs | 52b179267eb450b49dcc1c4a368605c62e7f2abe | [
"Unlicense"
] | null | null | null | lib/my_acs.ex | Fullrate/my_acs | 52b179267eb450b49dcc1c4a368605c62e7f2abe | [
"Unlicense"
] | 4 | 2017-11-29T05:07:10.000Z | 2021-12-06T10:35:03.000Z | defmodule MyAcs do
@moduledoc """
This is the supervisor for acs_ex, and all the other
application eventually needed to make something for
the real world
"""
use Application
def start(_type, _args) do
import Supervisor.Spec, warn: false
acs_port = Application.get_env(:acs_ex, :acs_port, 7548)... | 21.846154 | 97 | 0.661972 |
79f27f83bd76073ce7f4209cfa2f87ce53ae3f8e | 3,573 | exs | Elixir | test/hash_conversions_test.exs | adolfosilva/soundcloud | 2b1671be3e8cffa8a2d4ec89f87a4b295028fba0 | [
"MIT"
] | null | null | null | test/hash_conversions_test.exs | adolfosilva/soundcloud | 2b1671be3e8cffa8a2d4ec89f87a4b295028fba0 | [
"MIT"
] | null | null | null | test/hash_conversions_test.exs | adolfosilva/soundcloud | 2b1671be3e8cffa8a2d4ec89f87a4b295028fba0 | [
"MIT"
] | null | null | null | defmodule SoundcloudTest.HashConversionsTest do
use ExUnit.Case
use Quixir
import Soundcloud.HashConversions
doctest Soundcloud.HashConversions
@tag :skip
test "normalize_param pair of strings" do
ptest key: string(), value: string() do
assert normalize_param(key, value) == %{key => value}
e... | 27.274809 | 78 | 0.554996 |
79f2957cd4fccf2cc9dc627437ac39f988b01b7b | 989 | ex | Elixir | lib/sibt_web/plugs/register_view.ex | amacgregor/sibt | 9819a9de4735612ee59de00f71ca1a6dfa275860 | [
"MIT"
] | null | null | null | lib/sibt_web/plugs/register_view.ex | amacgregor/sibt | 9819a9de4735612ee59de00f71ca1a6dfa275860 | [
"MIT"
] | 2 | 2020-07-18T02:22:22.000Z | 2021-03-09T15:46:44.000Z | lib/sibt_web/plugs/register_view.ex | amacgregor/shouldibuildthat | 572b0ba95f93f6ea0dc7b250baaa1bc90efd521b | [
"MIT"
] | null | null | null | defmodule SibtWeb.Plugs.RegisterView do
@moduledoc """
Register the project view against a particular project
"""
import Plug.Conn
require Logger
alias Sibt.Operation
def init(_params) do
end
def call(conn, _params) do
views_map = conn.assigns[:views]
current_page = conn.params["project_c... | 21.977778 | 66 | 0.625885 |
79f2a6bb8205815bbbb00e48a014cee0ffb36224 | 1,371 | exs | Elixir | config/dev.exs | gedzubo/pagila_phoenix_api | c72063672a1b09c8d9bcc2814b03a4863a09a7b4 | [
"MIT"
] | null | null | null | config/dev.exs | gedzubo/pagila_phoenix_api | c72063672a1b09c8d9bcc2814b03a4863a09a7b4 | [
"MIT"
] | null | null | null | config/dev.exs | gedzubo/pagila_phoenix_api | c72063672a1b09c8d9bcc2814b03a4863a09a7b4 | [
"MIT"
] | null | null | null | use Mix.Config
# For development, we disable any cache and enable
# debugging and code reloading.
#
# The watchers configuration can be used to run external
# watchers to your application. For example, we use it
# with brunch.io to recompile .js and .css sources.
config :pagila_phoenix_api, PagilaPhoenixApi.Endpoint,
... | 31.159091 | 73 | 0.709701 |
79f2bdb7d7527558cab449619ca49fd62396b1b5 | 553 | ex | Elixir | server/web/router.ex | ravivooda/contactCard | 5e2e219fc4c146487a5876ce7481b0245bba452d | [
"MIT"
] | null | null | null | server/web/router.ex | ravivooda/contactCard | 5e2e219fc4c146487a5876ce7481b0245bba452d | [
"MIT"
] | null | null | null | server/web/router.ex | ravivooda/contactCard | 5e2e219fc4c146487a5876ce7481b0245bba452d | [
"MIT"
] | null | null | null | defmodule ContactCardServer.Router do
use ContactCardServer.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 "/", Conta... | 20.481481 | 57 | 0.696203 |
79f2e6730bec8defbf164382ff0903cc20a37197 | 2,959 | exs | Elixir | apps/nerves_hub_web_core/priv/repo/seeds.exs | tonnenpinguin/nerves_hub_web | 9d36921eb7e20d20a3e3bd308cc98ad7b60cfa72 | [
"Apache-2.0"
] | 111 | 2018-07-25T01:07:51.000Z | 2022-01-25T17:03:01.000Z | apps/nerves_hub_web_core/priv/repo/seeds.exs | tonnenpinguin/nerves_hub_web | 9d36921eb7e20d20a3e3bd308cc98ad7b60cfa72 | [
"Apache-2.0"
] | 361 | 2018-07-22T12:53:00.000Z | 2022-03-31T18:50:34.000Z | apps/nerves_hub_web_core/priv/repo/seeds.exs | tonnenpinguin/nerves_hub_web | 9d36921eb7e20d20a3e3bd308cc98ad7b60cfa72 | [
"Apache-2.0"
] | 54 | 2018-08-26T02:58:04.000Z | 2022-03-09T10:12:19.000Z | # 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:
#
# NervesHubWebCore.Repo.insert!(%NervesHubWWW.SomeSchema{})
#
# We recommend using the bang functions (`insert!`, `update!`
# and so on... | 30.822917 | 106 | 0.682325 |
79f342e01c42e8424f95dd6f952d4cb45cde4a45 | 2,197 | exs | Elixir | test/liblink/cluster/fold_server_test.exs | Xerpa/liblink | 7b983431c5b391bb8cf182edd9ca4937601eea35 | [
"Apache-2.0"
] | 3 | 2018-10-26T12:55:15.000Z | 2019-05-03T22:41:34.000Z | test/liblink/cluster/fold_server_test.exs | Xerpa/liblink | 7b983431c5b391bb8cf182edd9ca4937601eea35 | [
"Apache-2.0"
] | 4 | 2018-08-26T14:43:57.000Z | 2020-09-23T21:14:56.000Z | test/liblink/cluster/fold_server_test.exs | Xerpa/liblink | 7b983431c5b391bb8cf182edd9ca4937601eea35 | [
"Apache-2.0"
] | null | null | null | # Copyright (C) 2018 Xerpa
# 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, soft... | 27.4625 | 75 | 0.656805 |
79f34faa6742c1031080b18d446097208fa898ef | 1,468 | exs | Elixir | apps/rig_auth/mix.exs | maxglassie/reactive-interaction-gateway | 36b68fc75c71b9b4c3b6bd70fb11900c67172137 | [
"Apache-2.0"
] | null | null | null | apps/rig_auth/mix.exs | maxglassie/reactive-interaction-gateway | 36b68fc75c71b9b4c3b6bd70fb11900c67172137 | [
"Apache-2.0"
] | null | null | null | apps/rig_auth/mix.exs | maxglassie/reactive-interaction-gateway | 36b68fc75c71b9b4c3b6bd70fb11900c67172137 | [
"Apache-2.0"
] | null | null | null | defmodule RigAuth.Mixfile do
@moduledoc false
use Mix.Project
def project do
%{rig: rig_version, elixir: elixir_version} = versions()
[
app: :rig_auth,
version: rig_version,
build_path: "../../_build",
config_path: "../../config/config.exs",
deps_path: "../../deps",
l... | 25.310345 | 89 | 0.55654 |
79f37180e02419b42ee93887afeaaa666361c136 | 990 | ex | Elixir | lib/gaga/application.ex | madvoidhq/gaga | 1a539edc327135c7910a51bffd6824bddcba5f7d | [
"MIT"
] | 13 | 2020-11-22T18:43:21.000Z | 2022-02-12T00:57:45.000Z | lib/gaga/application.ex | madvoidhq/gaga | 1a539edc327135c7910a51bffd6824bddcba5f7d | [
"MIT"
] | 2 | 2020-11-25T16:58:15.000Z | 2021-06-21T12:02:41.000Z | lib/gaga/application.ex | madvoidhq/gaga | 1a539edc327135c7910a51bffd6824bddcba5f7d | [
"MIT"
] | 4 | 2020-11-23T08:14:03.000Z | 2022-01-25T08:18:41.000Z | defmodule Gaga.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 Telemetry supervisor
GagaWeb.Telemetry,
# Start the PubSub system
{Phoeni... | 28.285714 | 62 | 0.69596 |
79f388c9f5bd2fdcb360af1ffcd4cf316954d77d | 1,861 | exs | Elixir | apps/ehealth/test/web/controllers/service_controller_test.exs | ehealth-ua/ehealth.api | 4ffe26a464fe40c95fb841a4aa2e147068f65ca2 | [
"Apache-2.0"
] | 8 | 2019-06-14T11:34:49.000Z | 2021-08-05T19:14:24.000Z | apps/ehealth/test/web/controllers/service_controller_test.exs | edenlabllc/ehealth.api.public | 4ffe26a464fe40c95fb841a4aa2e147068f65ca2 | [
"Apache-2.0"
] | 1 | 2019-07-08T15:20:22.000Z | 2019-07-08T15:20:22.000Z | apps/ehealth/test/web/controllers/service_controller_test.exs | ehealth-ua/ehealth.api | 4ffe26a464fe40c95fb841a4aa2e147068f65ca2 | [
"Apache-2.0"
] | 6 | 2018-05-11T13:59:32.000Z | 2022-01-19T20:15:22.000Z | defmodule EHealth.Web.ServiceControllerTest do
@moduledoc false
use EHealth.Web.ConnCase
describe "get services" do
test "success get services", %{conn: conn} do
group1 = insert(:prm, :service_group, code: "G1")
group2 = insert(:prm, :service_group, code: "G2")
group3 = insert(:prm, :servi... | 45.390244 | 116 | 0.618485 |
79f3aaba5167a9d5c87974b860259eadb61df6c9 | 1,298 | ex | Elixir | installer/phoenix/templates/test_helpers.ex | elixircnx/sanction | 5b270fd6eef980d37c06429271f64ec14e0f622d | [
"BSD-3-Clause"
] | 130 | 2016-06-21T07:58:46.000Z | 2022-01-01T21:45:23.000Z | installer/phoenix/templates/test_helpers.ex | elixircnx/sanction | 5b270fd6eef980d37c06429271f64ec14e0f622d | [
"BSD-3-Clause"
] | 50 | 2016-06-29T16:01:42.000Z | 2019-08-07T21:33:49.000Z | installer/phoenix/templates/test_helpers.ex | elixircnx/sanction | 5b270fd6eef980d37c06429271f64ec14e0f622d | [
"BSD-3-Clause"
] | 20 | 2016-07-02T11:37:33.000Z | 2018-10-26T19:12:41.000Z | defmodule <%= base %>.TestHelpers do<%= if api do %>
use Phoenix.ConnTest<% end %>
<%= if confirm do %>
import Ecto.Changeset
<% end %>
alias <%= base %>.{Repo, User}
def add_user(username) do
user = %{username: username, email: "#{username}@mail.com",
password: "mangoes&g0oseberries"}<%= if confirm d... | 30.186047 | 80 | 0.633282 |
79f3bb0b75e79effa784ab4677fafb5d4cac5e32 | 14,953 | ex | Elixir | clients/cloud_private_catalog_producer/lib/google_api/cloud_private_catalog_producer/v1beta1/api/operations.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/cloud_private_catalog_producer/lib/google_api/cloud_private_catalog_producer/v1beta1/api/operations.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/cloud_private_catalog_producer/lib/google_api/cloud_private_catalog_producer/v1beta1/api/operations.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... | 43.722222 | 196 | 0.638802 |
79f3c1d9f487b8c17f47a95d27e3dfbe5a273e93 | 1,447 | exs | Elixir | config/config.exs | gnucifer/open-food-hub | 24632b6e8a01253c716db976d78a313746d5e38f | [
"BSD-3-Clause"
] | null | null | null | config/config.exs | gnucifer/open-food-hub | 24632b6e8a01253c716db976d78a313746d5e38f | [
"BSD-3-Clause"
] | null | null | null | config/config.exs | gnucifer/open-food-hub | 24632b6e8a01253c716db976d78a313746d5e38f | [
"BSD-3-Clause"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
#
# This configuration file is loaded before any dependency and
# is restricted to this project.
use Mix.Config
# General application configuration
config :ofh, [
ecto_repos: [Ofh.Repo],
genera... | 25.839286 | 86 | 0.734623 |
79f3d34479c890c7aeed4c9ce9c46bdbfef54595 | 1,148 | ex | Elixir | lib/team_budget/accounts/core/guardian.ex | AkioCode/elxpro4-teambudget | a7e67d5e1ec538df6cc369cc4f385d005bf60eda | [
"MIT"
] | null | null | null | lib/team_budget/accounts/core/guardian.ex | AkioCode/elxpro4-teambudget | a7e67d5e1ec538df6cc369cc4f385d005bf60eda | [
"MIT"
] | null | null | null | lib/team_budget/accounts/core/guardian.ex | AkioCode/elxpro4-teambudget | a7e67d5e1ec538df6cc369cc4f385d005bf60eda | [
"MIT"
] | null | null | null | defmodule TeamBudget.Accounts.Core.Guardian do
use Guardian, otp_app: :team_budget
def subject_for_token(resource, _claims) do
# You can use any value for the subject of your token but
# it should be useful in retrieving the resource later, see
# how it being used on `resource_from_claims/1` function.
... | 32.8 | 74 | 0.707317 |
79f3dffcc4cd42c1780ce3f45cb521d32d735f6c | 20,487 | exs | Elixir | test/livebook/live_markdown/import_test.exs | doyobi/livebook | 136d5039c42b406dd0b31aea188deb4fce3b1328 | [
"Apache-2.0"
] | 1 | 2022-02-16T09:13:27.000Z | 2022-02-16T09:13:27.000Z | test/livebook/live_markdown/import_test.exs | doyobi/livebook | 136d5039c42b406dd0b31aea188deb4fce3b1328 | [
"Apache-2.0"
] | null | null | null | test/livebook/live_markdown/import_test.exs | doyobi/livebook | 136d5039c42b406dd0b31aea188deb4fce3b1328 | [
"Apache-2.0"
] | null | null | null | defmodule Livebook.LiveMarkdown.ImportTest do
use ExUnit.Case, async: true
alias Livebook.LiveMarkdown.Import
alias Livebook.Notebook
alias Livebook.Notebook.Cell
test "acceptance" do
markdown = """
# My Notebook
## Section 1
Make sure to install:
* Erlang
* Elixir
* PostgreSQ... | 23.123025 | 116 | 0.409674 |
79f3e95e7c6bd257ef761c04bba362ec2f9d37d5 | 2,199 | ex | Elixir | lib/discovergy/client.ex | adriankumpf/discovergy | 9424bc00e31e097ef07c70fd19722a12db0c6508 | [
"MIT"
] | null | null | null | lib/discovergy/client.ex | adriankumpf/discovergy | 9424bc00e31e097ef07c70fd19722a12db0c6508 | [
"MIT"
] | 22 | 2020-07-11T12:57:25.000Z | 2022-03-04T09:22:52.000Z | lib/discovergy/client.ex | adriankumpf/discovergy | 9424bc00e31e097ef07c70fd19722a12db0c6508 | [
"MIT"
] | null | null | null | defmodule Discovergy.Client do
@moduledoc """
A Discovergy API Client
"""
alias Discovergy.{OAuth, Error}
@opaque t :: %__MODULE__{}
@enforce_keys [:tesla_client, :base_url]
defstruct [:tesla_client, :base_url, :consumer, :token]
@base_url "https://api.discovergy.com/public/v1"
@adapter {Tesla.Ada... | 28.192308 | 88 | 0.635744 |
79f40410a76b7d9c36958b0c1cefd5c7cac68f30 | 3,013 | exs | Elixir | test/teslamate_web/controllers/drive_controller_test.exs | kuma/teslamate | ea175fddb49cc08070182455e0073c3dcfcb3b4c | [
"MIT"
] | 2,602 | 2019-07-24T23:19:12.000Z | 2022-03-31T15:03:48.000Z | test/teslamate_web/controllers/drive_controller_test.exs | kuma/teslamate | ea175fddb49cc08070182455e0073c3dcfcb3b4c | [
"MIT"
] | 1,547 | 2019-07-26T22:02:09.000Z | 2022-03-31T15:39:41.000Z | test/teslamate_web/controllers/drive_controller_test.exs | kuma/teslamate | ea175fddb49cc08070182455e0073c3dcfcb3b4c | [
"MIT"
] | 524 | 2019-07-26T17:31:33.000Z | 2022-03-29T15:16:36.000Z | defmodule TeslaMateWeb.DriveControllerTest do
use TeslaMateWeb.ConnCase
alias TeslaMate.Log
alias TeslaMate.Repo
def car_fixture(attrs \\ %{}) do
{:ok, car} =
attrs
|> Enum.into(%{efficiency: 0.153, eid: 42, model: "M3", vid: 42, vin: "xxxxx"})
|> Log.create_car()
car
end
defp ... | 28.158879 | 97 | 0.618321 |
79f41a1ce1a71bc8d4c9e236508b071f7cf6c9ec | 444 | ex | Elixir | web/models/deliveryservice_server.ex | rob05c/tox | f54847ca058ad24b909341ad65d595a4069d2471 | [
"Apache-2.0"
] | 2 | 2016-11-16T17:24:21.000Z | 2019-02-15T05:38:27.000Z | web/models/deliveryservice_server.ex | rob05c/tox | f54847ca058ad24b909341ad65d595a4069d2471 | [
"Apache-2.0"
] | null | null | null | web/models/deliveryservice_server.ex | rob05c/tox | f54847ca058ad24b909341ad65d595a4069d2471 | [
"Apache-2.0"
] | null | null | null | defmodule Tox.DeliveryserviceServer do
use Tox.Web, :model
schema "deliveryserviceservers" do
field :deliveryservice, :integer
field :server_host, :integer
timestamps()
end
@doc """
Builds a changeset based on the `struct` and `params`.
"""
def changeset(struct, params \\ %{}) do
struct... | 22.2 | 58 | 0.682432 |
79f464f9f92776fdea60f0ce0b7b557f550e5dad | 6,833 | ex | Elixir | lib/helpers.ex | bonfire-networks/grumble | 4f3ea815a51a9ef045fd49a44bb54e488a2083c9 | [
"Apache-2.0"
] | 1 | 2020-03-30T11:34:07.000Z | 2020-03-30T11:34:07.000Z | lib/helpers.ex | bonfire-networks/grumble | 4f3ea815a51a9ef045fd49a44bb54e488a2083c9 | [
"Apache-2.0"
] | null | null | null | lib/helpers.ex | bonfire-networks/grumble | 4f3ea815a51a9ef045fd49a44bb54e488a2083c9 | [
"Apache-2.0"
] | null | null | null | # Grumble - a DSL for building GraphQL queries as data structures.
#
# Copyright (c) 2020 James Laver
#
# 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/... | 34.336683 | 95 | 0.646129 |
79f4bc1b4d89a8a0f0d45ce1c304c65f44a78d1f | 342 | exs | Elixir | priv/repo/seeds.exs | sighmin/chatter | af1d07690e7f46cd8a066537a74b7ae13e2d044a | [
"MIT"
] | null | null | null | priv/repo/seeds.exs | sighmin/chatter | af1d07690e7f46cd8a066537a74b7ae13e2d044a | [
"MIT"
] | null | null | null | priv/repo/seeds.exs | sighmin/chatter | af1d07690e7f46cd8a066537a74b7ae13e2d044a | [
"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:
#
# Chatter.Repo.insert!(%SomeModel{})
#
# We recommend using the bang functions (`insert!`, `update!`
# and so on) as they will fail if ... | 28.5 | 61 | 0.701754 |
79f4f782bbe78011799e53e4105cde515dd7555b | 244 | ex | Elixir | lib/api/repo.ex | nunopolonia/psc-api | 2e358503851cc04cdaa89201a3f56586f8746736 | [
"MIT"
] | 1 | 2017-09-10T23:51:40.000Z | 2017-09-10T23:51:40.000Z | lib/api/repo.ex | nunopolonia/psc-api | 2e358503851cc04cdaa89201a3f56586f8746736 | [
"MIT"
] | 24 | 2018-03-14T18:17:00.000Z | 2021-03-01T07:47:53.000Z | lib/api/repo.ex | portosummerofcode/psc-api | 2e358503851cc04cdaa89201a3f56586f8746736 | [
"MIT"
] | null | null | null | defmodule Api.Repo do
use Ecto.Repo, otp_app: :api
@doc """
Dynamically loads the repository url from the
DB_URL environment variable.
"""
def init(_, opts) do
{:ok, Keyword.put(opts, :url, System.get_env("DB_URL"))}
end
end
| 20.333333 | 60 | 0.672131 |
79f5104bd40fdc51a5e86fa363f6264a47c9cb33 | 137,087 | ex | Elixir | clients/managed_identities/lib/google_api/managed_identities/v1/api/projects.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/managed_identities/lib/google_api/managed_identities/v1/api/projects.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/managed_identities/lib/google_api/managed_identities/v1/api/projects.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... | 46.438686 | 802 | 0.620518 |
79f512f860c41787bdbb001109374102aeb4b68a | 4,068 | ex | Elixir | lib/phoenix/endpoint/cowboy_handler.ex | misfo/phoenix | 04464429d9b958e331b2ffe0f0f5926690ab3b56 | [
"MIT"
] | 1 | 2021-03-14T17:50:24.000Z | 2021-03-14T17:50:24.000Z | lib/phoenix/endpoint/cowboy_handler.ex | misfo/phoenix | 04464429d9b958e331b2ffe0f0f5926690ab3b56 | [
"MIT"
] | null | null | null | lib/phoenix/endpoint/cowboy_handler.ex | misfo/phoenix | 04464429d9b958e331b2ffe0f0f5926690ab3b56 | [
"MIT"
] | 2 | 2020-08-02T04:00:17.000Z | 2020-10-07T16:07:37.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.474576 | 103 | 0.652655 |
79f535cb756629341dd01113bae041da92e2f191 | 120 | exs | Elixir | test/test_helper.exs | workpathco/firebase-admin-ex | 83305a4bfcc5b1cc7b692eee9d4c93fa080759f2 | [
"MIT"
] | 38 | 2018-05-29T14:22:03.000Z | 2021-11-16T11:33:05.000Z | test/test_helper.exs | workpathco/firebase-admin-ex | 83305a4bfcc5b1cc7b692eee9d4c93fa080759f2 | [
"MIT"
] | 8 | 2018-12-05T02:41:12.000Z | 2020-06-24T18:41:21.000Z | test/test_helper.exs | workpathco/firebase-admin-ex | 83305a4bfcc5b1cc7b692eee9d4c93fa080759f2 | [
"MIT"
] | 22 | 2018-11-21T03:10:07.000Z | 2022-02-18T01:45:14.000Z | ExUnit.start()
files = Path.wildcard("./test/support/*.ex")
Enum.each(files, fn file ->
Code.require_file(file)
end)
| 17.142857 | 44 | 0.691667 |
79f53f7e4f7ef9e3541ff3797f6c618df7b1f057 | 292 | exs | Elixir | book-material/modules/private-type-functions.exs | AdnanCodes/Elixir-Learning | 6fbab6092384566aff92bccf64b1af90c68ecb6c | [
"MIT"
] | null | null | null | book-material/modules/private-type-functions.exs | AdnanCodes/Elixir-Learning | 6fbab6092384566aff92bccf64b1af90c68ecb6c | [
"MIT"
] | null | null | null | book-material/modules/private-type-functions.exs | AdnanCodes/Elixir-Learning | 6fbab6092384566aff92bccf64b1af90c68ecb6c | [
"MIT"
] | null | null | null | defmodule Fun do
def fun(a) when is_list(a) do
true
end
defp fun(a) do
false
end
end
# This code is invalid due to some heads cannot be private and others public such as fun(a)
# The purpose of private functions is allow them to be called only from their respective Modules
| 22.461538 | 96 | 0.729452 |
79f57e73207e2b5fe2aa074bc54ab5ba1379be0b | 383 | exs | Elixir | allergies/allergies.exs | nickpellant/xelixir | 6e27dc7083ef3e423a1615f5151910672e6397a8 | [
"MIT"
] | null | null | null | allergies/allergies.exs | nickpellant/xelixir | 6e27dc7083ef3e423a1615f5151910672e6397a8 | [
"MIT"
] | null | null | null | allergies/allergies.exs | nickpellant/xelixir | 6e27dc7083ef3e423a1615f5151910672e6397a8 | [
"MIT"
] | null | null | null | defmodule Allergies do
@doc """
List the allergies for which the corresponding flag bit is true.
"""
@spec list(non_neg_integer) :: [String.t]
def list(flags) do
end
@doc """
Returns whether the corresponding flag bit in 'flags' is set for the item.
"""
@spec allergic_to?(non_neg_integer, String... | 21.277778 | 76 | 0.678851 |
79f5d197a19cfd23acfc32d29ba453429a1e514d | 742 | exs | Elixir | test/shopiex/meta_test.exs | byjpr/Shopiex | 360dc00e6ffd21a822f32d83af15948e77f6e11c | [
"MIT"
] | 1 | 2019-03-07T11:30:09.000Z | 2019-03-07T11:30:09.000Z | test/shopiex/meta_test.exs | byjpr/Shopiex | 360dc00e6ffd21a822f32d83af15948e77f6e11c | [
"MIT"
] | 28 | 2020-06-28T19:35:02.000Z | 2021-07-11T13:15:06.000Z | test/shopiex/meta_test.exs | byjpr/Shopiex | 360dc00e6ffd21a822f32d83af15948e77f6e11c | [
"MIT"
] | null | null | null | defmodule Shopiex.MetaTest do
use ExUnit.Case, async: true
import Shopiex.Meta
test "shop_details" do
{_client, object} = Shopiex.client("test-store", "token")
|> shop_details
assert(object == "/admin/shop.json")
end
describe "Testing Options on `shop_metafields`" do
test "single" do
... | 26.5 | 79 | 0.663073 |
79f636ad1d28627716eaf4e4036cc95786d3c8dc | 760 | ex | Elixir | test/support/sim508a.ex | bcdevices/atecc508a | 934652947ac1de2022f1da556adffa3e8cba31e3 | [
"Apache-2.0"
] | 6 | 2018-12-13T16:33:09.000Z | 2022-03-02T08:57:20.000Z | test/support/sim508a.ex | bcdevices/atecc508a | 934652947ac1de2022f1da556adffa3e8cba31e3 | [
"Apache-2.0"
] | 10 | 2019-01-30T19:33:48.000Z | 2022-03-03T21:07:37.000Z | test/support/sim508a.ex | bcdevices/atecc508a | 934652947ac1de2022f1da556adffa3e8cba31e3 | [
"Apache-2.0"
] | 9 | 2019-08-22T06:26:45.000Z | 2022-03-01T18:05:01.000Z | defmodule ATECC508A.Sim508A do
@moduledoc """
This is a simulated ATECC508A for creating things normally created
on the ATECC508A
"""
@slot0_private_key ATECC508A.Certificate.curve() |> X509.PrivateKey.new_ec()
@slot0_public_key X509.PublicKey.derive(@slot0_private_key)
@doc """
Our simulated ECC508A ... | 23.030303 | 78 | 0.681579 |
79f63d04e353d94862d0eea447cdd80574369a94 | 204 | ex | Elixir | lib/geef/odb.ex | kjg/geef | 9e9aa23af7614cb398e99fb06019884af2cbcd79 | [
"MIT"
] | 107 | 2015-01-08T12:05:20.000Z | 2022-03-21T20:36:43.000Z | lib/geef/odb.ex | kjg/geef | 9e9aa23af7614cb398e99fb06019884af2cbcd79 | [
"MIT"
] | 9 | 2015-03-11T18:32:24.000Z | 2020-03-29T21:08:55.000Z | lib/geef/odb.ex | kjg/geef | 9e9aa23af7614cb398e99fb06019884af2cbcd79 | [
"MIT"
] | 28 | 2015-03-03T16:01:26.000Z | 2022-02-20T19:18:03.000Z | defmodule Geef.Odb do
def exists?(pid, id) do
:geef_odb.exists(pid, id)
end
def write(pid, content, type), do: :geef_odb.write(pid, content, type)
def stop(pid), do: :geef_odb.stop(pid)
end
| 20.4 | 72 | 0.671569 |
79f64d4a1d24e930864a46d7c92ab9d015e7dd3d | 499 | ex | Elixir | lib/page_handlers/chargers_page_handler.ex | Sebi55/ocpp-backend | e2c4920aa3d2986934a17e904d7836d4f2a91945 | [
"MIT"
] | 11 | 2019-03-06T12:44:46.000Z | 2022-01-20T10:41:30.000Z | lib/page_handlers/chargers_page_handler.ex | Sebi55/ocpp-backend | e2c4920aa3d2986934a17e904d7836d4f2a91945 | [
"MIT"
] | 3 | 2019-03-06T13:29:36.000Z | 2020-03-21T15:40:47.000Z | lib/page_handlers/chargers_page_handler.ex | Sebi55/ocpp-backend | e2c4920aa3d2986934a17e904d7836d4f2a91945 | [
"MIT"
] | 4 | 2019-03-06T13:24:13.000Z | 2021-12-22T09:17:56.000Z | defmodule PageHandlers.Chargers do
@moduledoc """
Render the Chargers page
"""
def init(req, state) do
handle(req, state)
end
def handle(request, state) do
req = :cowboy_req.reply(
200,
%{"content-type" => "text/html"},
build_body(request),
request
)
{:ok, req, sta... | 19.96 | 79 | 0.637275 |
79f66f7c59724a086d08f46390c012fd1cf19b2f | 2,575 | exs | Elixir | apps/ewallet/test/ewallet/schedulers/transaction_request_scheduler_test.exs | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 322 | 2018-02-28T07:38:44.000Z | 2020-05-27T23:09:55.000Z | apps/ewallet/test/ewallet/schedulers/transaction_request_scheduler_test.exs | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 643 | 2018-02-28T12:05:20.000Z | 2020-05-22T08:34:38.000Z | apps/ewallet/test/ewallet/schedulers/transaction_request_scheduler_test.exs | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 63 | 2018-02-28T10:57:06.000Z | 2020-05-27T23:10:38.000Z | # Copyright 2018-2019 OmiseGO Pte Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 40.234375 | 95 | 0.726602 |
79f6938c363f1194984579a0d59bdf9cf756bc1a | 1,654 | ex | Elixir | lib/codenamex_web.ex | bernardoamc/codenamex | 6e3219569e4d9b8f4fe9273145b372ba182ab945 | [
"MIT"
] | null | null | null | lib/codenamex_web.ex | bernardoamc/codenamex | 6e3219569e4d9b8f4fe9273145b372ba182ab945 | [
"MIT"
] | 2 | 2020-07-20T14:23:21.000Z | 2020-08-01T21:18:45.000Z | lib/codenamex_web.ex | bernardoamc/codenamex | 6e3219569e4d9b8f4fe9273145b372ba182ab945 | [
"MIT"
] | null | null | null | defmodule CodenamexWeb 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 CodenamexWeb, :controller
use CodenamexWeb, :view
The definitions below will be executed for every view,
contro... | 23.628571 | 83 | 0.69347 |
79f6b5f3e39531b74939db2cb80ca24f0443ec3f | 2,231 | ex | Elixir | lib/crawly/engine.ex | harlantwood/crawly | d57a1b97e4a909d20f03f063a27157c8209367c4 | [
"Apache-2.0"
] | null | null | null | lib/crawly/engine.ex | harlantwood/crawly | d57a1b97e4a909d20f03f063a27157c8209367c4 | [
"Apache-2.0"
] | null | null | null | lib/crawly/engine.ex | harlantwood/crawly | d57a1b97e4a909d20f03f063a27157c8209367c4 | [
"Apache-2.0"
] | null | null | null | defmodule Crawly.Engine do
@moduledoc """
Crawly Engine - process responsible for starting and stopping spiders.
Stores all currently running spiders.
"""
require Logger
use GenServer
@type t :: %__MODULE__{started_spiders: started_spiders()}
@type started_spiders() :: %{optional(module()) => identif... | 26.247059 | 79 | 0.650381 |
79f6d3ea3aefb37646a84d0f8b181f850552c182 | 1,127 | ex | Elixir | backend/lib/backend_web/controllers/goal_controller.ex | silver-panda/budgetr | d8cad5c1401677947444add24c8d41f2450c8cc3 | [
"MIT"
] | null | null | null | backend/lib/backend_web/controllers/goal_controller.ex | silver-panda/budgetr | d8cad5c1401677947444add24c8d41f2450c8cc3 | [
"MIT"
] | null | null | null | backend/lib/backend_web/controllers/goal_controller.ex | silver-panda/budgetr | d8cad5c1401677947444add24c8d41f2450c8cc3 | [
"MIT"
] | null | null | null | defmodule BackendWeb.GoalController do
use BackendWeb, :controller
alias Backend.Budgets
alias Backend.Budgets.Goal
action_fallback BackendWeb.FallbackController
def index(conn, _params) do
user_goals = Budgets.list_user_goals()
render(conn, "index.json", user_goals: user_goals)
end
def create... | 25.613636 | 75 | 0.639752 |
79f6ed80347cbb11db196e501863e9d229fa3336 | 574 | ex | Elixir | Microsoft.Azure.Management.Authorization/lib/microsoft/azure/management/authorization/model/role_definition_filter.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | 4 | 2018-09-29T03:43:15.000Z | 2021-04-01T18:30:46.000Z | Microsoft.Azure.Management.Authorization/lib/microsoft/azure/management/authorization/model/role_definition_filter.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | null | null | null | Microsoft.Azure.Management.Authorization/lib/microsoft/azure/management/authorization/model/role_definition_filter.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | null | null | null | # NOTE: This class is auto generated by the swagger code generator program.
# https://github.com/swagger-api/swagger-codegen.git
# Do not edit the class manually.
defmodule Microsoft.Azure.Management.Authorization.Model.RoleDefinitionFilter do
@moduledoc """
Role Definitions filter
"""
@derive [Poison.Encoder... | 22.076923 | 99 | 0.731707 |
79f721d60177a524c784a23c278597559a3475c0 | 3,317 | ex | Elixir | clients/safe_browsing/lib/google_api/safe_browsing/v4/api/threat_lists.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/safe_browsing/lib/google_api/safe_browsing/v4/api/threat_lists.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/safe_browsing/lib/google_api/safe_browsing/v4/api/threat_lists.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | 1 | 2018-07-28T20:50:50.000Z | 2018-07-28T20:50:50.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 40.950617 | 178 | 0.69189 |
79f72fbf294a91be0c8a1b36b1fbf82ebd6649b3 | 158 | ex | Elixir | web/controllers/page_controller.ex | Project-ShangriLa/sana_server_phoenix | d2ea4cc023d02e7249ae9267bb2b41a212b79ce7 | [
"Apache-2.0"
] | 5 | 2015-11-07T11:27:08.000Z | 2017-06-23T00:54:20.000Z | web/controllers/page_controller.ex | Project-ShangriLa/sana_server_phoenix | d2ea4cc023d02e7249ae9267bb2b41a212b79ce7 | [
"Apache-2.0"
] | null | null | null | web/controllers/page_controller.ex | Project-ShangriLa/sana_server_phoenix | d2ea4cc023d02e7249ae9267bb2b41a212b79ce7 | [
"Apache-2.0"
] | null | null | null | defmodule SanaServerPhoenix.PageController do
use SanaServerPhoenix.Web, :controller
def index(conn, _params) do
render conn, "index.html"
end
end
| 19.75 | 45 | 0.765823 |
79f7471fdd4395516dc9ae8d271b0106d8e72b11 | 6,270 | exs | Elixir | test/api_classes/api_base_test.exs | InfiniteSoul/proxer_ex | df60ca5d4b9222d77ff685b7c1897781a738abc1 | [
"MIT"
] | null | null | null | test/api_classes/api_base_test.exs | InfiniteSoul/proxer_ex | df60ca5d4b9222d77ff685b7c1897781a738abc1 | [
"MIT"
] | null | null | null | test/api_classes/api_base_test.exs | InfiniteSoul/proxer_ex | df60ca5d4b9222d77ff685b7c1897781a738abc1 | [
"MIT"
] | null | null | null | defmodule ProxerEx.Test.Api.Base do
use ExUnit.Case, async: true
defmodule TestApi do
use ProxerEx.Api.Base, api_class: "test_api"
api_func "test_func_without_params" do
api_doc("DOC_TEXT")
end
api_func "test_func_with_params" do
api_doc("DOC_TEXT")
parameter("test_param_1", :ge... | 32.65625 | 104 | 0.643222 |
79f778b634ad6a6fdb9484a4f267c60e32d473b6 | 16,249 | exs | Elixir | test/arrow/disruption_test.exs | paulswartz/arrow | c1ba1ce52107c0ed94ce9bca2fef2bfeb606b8f9 | [
"MIT"
] | null | null | null | test/arrow/disruption_test.exs | paulswartz/arrow | c1ba1ce52107c0ed94ce9bca2fef2bfeb606b8f9 | [
"MIT"
] | null | null | null | test/arrow/disruption_test.exs | paulswartz/arrow | c1ba1ce52107c0ed94ce9bca2fef2bfeb606b8f9 | [
"MIT"
] | null | null | null | defmodule Arrow.DisruptionTest do
@moduledoc false
use Arrow.DataCase
alias Arrow.Disruption
alias Arrow.DisruptionRevision
alias Arrow.Repo
describe "database" do
test "defaults to no disruptions" do
assert [] = Repo.all(Disruption)
end
end
describe "create/2" do
test "inserts a new... | 31.798434 | 97 | 0.572404 |
79f77bca8e48aa54a8a1e40177001bd0d637b3e6 | 590 | ex | Elixir | test/support/local_cluster_helper.ex | pdgonzalez872/horde | 1b274eaa07b02c38c2490e79051548ec476b4a11 | [
"MIT"
] | null | null | null | test/support/local_cluster_helper.ex | pdgonzalez872/horde | 1b274eaa07b02c38c2490e79051548ec476b4a11 | [
"MIT"
] | null | null | null | test/support/local_cluster_helper.ex | pdgonzalez872/horde | 1b274eaa07b02c38c2490e79051548ec476b4a11 | [
"MIT"
] | null | null | null | defmodule LocalClusterHelper do
def start(m, f, a) do
:erlang.apply(m, f, a)
receive do
end
end
def send_msg(pid, msg) do
fn -> send(pid, msg) end
end
end
defmodule EchoServer do
def start_link(pid) do
GenServer.start_link(__MODULE__, pid)
end
# def via_tuple do
# {:via, Horde.... | 17.352941 | 55 | 0.633898 |
79f7869ef6a9ae4924436b09944a5d3085740bf4 | 238 | ex | Elixir | lib/easypost/customs_item.ex | winestyr/ex_easypost | a8563ccbff429ad181280c438efeea65383ff852 | [
"MIT"
] | 6 | 2017-09-21T13:19:56.000Z | 2021-01-07T18:31:42.000Z | lib/easypost/customs_item.ex | winestyr/ex_easypost | a8563ccbff429ad181280c438efeea65383ff852 | [
"MIT"
] | null | null | null | lib/easypost/customs_item.ex | winestyr/ex_easypost | a8563ccbff429ad181280c438efeea65383ff852 | [
"MIT"
] | 2 | 2018-07-11T07:12:08.000Z | 2020-06-29T02:04:48.000Z | defmodule EasyPost.CustomsItem do
@doc """
Create a `Customsitem`.
"""
@spec create(map) :: EasyPost.Operation.t()
def create(params) do
%EasyPost.Operation{ method: :post, params: params, path: "/customs_items" }
end
end
| 23.8 | 80 | 0.676471 |
79f7a35784617949d4da11551193dd1236304708 | 1,423 | ex | Elixir | test/support/data_case.ex | SparkPost/elixir-webhook-sample | 22d367b63f4995eb0ddb4b0aaf484790987b8491 | [
"Apache-2.0"
] | 1 | 2021-12-08T18:15:33.000Z | 2021-12-08T18:15:33.000Z | test/support/data_case.ex | SparkPost/elixir-webhook-sample | 22d367b63f4995eb0ddb4b0aaf484790987b8491 | [
"Apache-2.0"
] | null | null | null | test/support/data_case.ex | SparkPost/elixir-webhook-sample | 22d367b63f4995eb0ddb4b0aaf484790987b8491 | [
"Apache-2.0"
] | null | null | null | defmodule TrackUserAgents.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, ev... | 26.351852 | 77 | 0.688686 |
79f7c9a447560cc348a6429b4c80cb1cdc41f01d | 1,133 | ex | Elixir | lib/sbom_poc_web/live/page_live.ex | TraceyOnim/SbomPoc-sFractal | bac895a7eda61c47c00b8bbe682a6fda4dd7255c | [
"MIT"
] | 2 | 2020-10-04T12:41:58.000Z | 2021-03-11T20:51:26.000Z | lib/sbom_poc_web/live/page_live.ex | TraceyOnim/SbomPoc-sFractal | bac895a7eda61c47c00b8bbe682a6fda4dd7255c | [
"MIT"
] | 113 | 2020-07-25T02:29:33.000Z | 2022-03-01T01:07:23.000Z | lib/sbom_poc_web/live/page_live.ex | TraceyOnim/SbomPoc-sFractal | bac895a7eda61c47c00b8bbe682a6fda4dd7255c | [
"MIT"
] | 5 | 2020-07-10T09:57:58.000Z | 2021-03-11T20:51:29.000Z | defmodule SbomPocWeb.PageLive do
@moduledoc "Landing page live view"
use SbomPocWeb, :live_view
@impl true
def mount(_params, _session, socket) do
{:ok, assign(socket, query: "", results: %{})}
end
@impl true
def handle_event("suggest", %{"q" => query}, socket) do
{:noreply, assign(socket, resul... | 27.634146 | 84 | 0.603707 |
79f7c9c1a5bb3d07b0c67f490599e99960e38df9 | 422 | ex | Elixir | lib/nox/parsers/logger.ex | tableturn/nox | 4fbe1a08196b2f84cca702715e84e6c7a67a42aa | [
"Apache-2.0"
] | 5 | 2018-04-28T14:25:09.000Z | 2020-10-27T07:06:59.000Z | lib/nox/parsers/logger.ex | kbrw/nodex | f362cb135cf5da23cc3c1bc159cbe6d120ca1494 | [
"Apache-2.0"
] | 2 | 2018-04-19T08:52:58.000Z | 2018-04-19T13:01:13.000Z | lib/nox/parsers/logger.ex | kbrw/nodex | f362cb135cf5da23cc3c1bc159cbe6d120ca1494 | [
"Apache-2.0"
] | 1 | 2019-07-12T11:10:28.000Z | 2019-07-12T11:10:28.000Z | defmodule Nox.Parsers.Logger do
@moduledoc """
Default CLI parser.
Output lines with Logger.info
"""
use Nox.Parser
require Logger
@doc """
Level can be :info, :debug, :warn
"""
def init(level), do: level
@doc false
def parse(line, :info), do: (Logger.info(line); :info)
def parse(line, :de... | 21.1 | 59 | 0.63981 |
79f7ea6f981bc14eefaddc3e95687e76660928c7 | 1,398 | ex | Elixir | test/support/data_case.ex | troelsim/matchalert | 9379796b3046e0ce28674432568f9cb5b01aab6f | [
"Apache-2.0"
] | null | null | null | test/support/data_case.ex | troelsim/matchalert | 9379796b3046e0ce28674432568f9cb5b01aab6f | [
"Apache-2.0"
] | null | null | null | test/support/data_case.ex | troelsim/matchalert | 9379796b3046e0ce28674432568f9cb5b01aab6f | [
"Apache-2.0"
] | null | null | null | defmodule Matchalert.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 t... | 25.888889 | 77 | 0.683119 |
79f830699c2041efac4260f0193794e45bdf0838 | 186 | exs | Elixir | priv/repo/migrations/20211205234245_create_lead_sources.exs | ThanhUong/Chronos | 5e1b0823c585b784f5c51212513d518cab53a571 | [
"MIT"
] | null | null | null | priv/repo/migrations/20211205234245_create_lead_sources.exs | ThanhUong/Chronos | 5e1b0823c585b784f5c51212513d518cab53a571 | [
"MIT"
] | null | null | null | priv/repo/migrations/20211205234245_create_lead_sources.exs | ThanhUong/Chronos | 5e1b0823c585b784f5c51212513d518cab53a571 | [
"MIT"
] | null | null | null | defmodule App.Repo.Migrations.CreateLeadSources do
use Ecto.Migration
def change do
create table(:lead_sources) do
add :name, :string
timestamps()
end
end
end
| 16.909091 | 50 | 0.693548 |
79f8310b20cd0057402c21c00c8bbadbb4dc291f | 419 | ex | Elixir | test/support/spy_formatter.ex | kianmeng/beamchmark | e5ee1af12339c5161dda0245f254bee9a382697d | [
"Apache-2.0"
] | 34 | 2021-12-08T19:39:02.000Z | 2022-03-31T13:55:41.000Z | test/support/spy_formatter.ex | kianmeng/beamchmark | e5ee1af12339c5161dda0245f254bee9a382697d | [
"Apache-2.0"
] | 8 | 2022-01-12T13:47:28.000Z | 2022-03-21T08:59:50.000Z | test/support/spy_formatter.ex | kianmeng/beamchmark | e5ee1af12339c5161dda0245f254bee9a382697d | [
"Apache-2.0"
] | 1 | 2022-03-26T15:48:21.000Z | 2022-03-26T15:48:21.000Z | defmodule SpyFormatter do
@moduledoc false
@behaviour Beamchmark.Formatter
@impl true
def format(suite, options) do
send(options[:pid], {suite, options})
:ok
end
@impl true
def format(new_suite, base_suite, options) do
send(options[:pid], {new_suite, base_suite, options})
:ok
end
@... | 17.458333 | 57 | 0.665871 |
79f83dd42adb3d2dbb21397c737cb8dcc74dc281 | 4,637 | ex | Elixir | clients/you_tube_reporting/lib/google_api/you_tube_reporting/v1/request_builder.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/you_tube_reporting/lib/google_api/you_tube_reporting/v1/request_builder.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/you_tube_reporting/lib/google_api/you_tube_reporting/v1/request_builder.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | 1 | 2018-07-28T20:50:50.000Z | 2018-07-28T20:50:50.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 28.801242 | 137 | 0.670045 |
79f8411c21e5f2dc7370bf108e2f97311b6c8e3a | 1,261 | ex | Elixir | lib/he_broker/request.ex | HackerExperience/HEBroker | 2a653a43b512c6392f55508dfc1be8463a845b31 | [
"BSD-3-Clause"
] | 5 | 2017-02-15T18:25:35.000Z | 2018-03-29T16:36:31.000Z | lib/he_broker/request.ex | HackerExperience/HeBroker | 2a653a43b512c6392f55508dfc1be8463a845b31 | [
"BSD-3-Clause"
] | null | null | null | lib/he_broker/request.ex | HackerExperience/HeBroker | 2a653a43b512c6392f55508dfc1be8463a845b31 | [
"BSD-3-Clause"
] | null | null | null | defmodule HeBroker.Request do
alias HeBroker.Request.Dont
alias HeBroker.Request.Just
alias HeBroker.Request.Headers
@debug? Application.get_env(:hebroker, :debug, Mix.env in [:test, :dev])
@trace? @debug? || Application.get_env(:hebroker, :trace, true)
@processor @trace? && Just || Dont
@type t :: %__... | 21.372881 | 75 | 0.64314 |
79f86f99cddef11e278db5fbb88faaafdc4e7ec1 | 2,696 | exs | Elixir | config/prod.exs | synion/tilex | ea29646830efaa89fc47fad347f6e495ff7ce48b | [
"MIT"
] | 1 | 2019-05-28T20:43:28.000Z | 2019-05-28T20:43:28.000Z | config/prod.exs | synion/tilex | ea29646830efaa89fc47fad347f6e495ff7ce48b | [
"MIT"
] | 1 | 2019-02-11T23:14:15.000Z | 2019-02-11T23:14:15.000Z | config/prod.exs | synion/tilex | ea29646830efaa89fc47fad347f6e495ff7ce48b | [
"MIT"
] | 1 | 2019-12-02T08:59:45.000Z | 2019-12-02T08:59:45.000Z | 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... | 33.283951 | 98 | 0.724407 |
79f886e44931906adfc2d9d8f7d5e1937afbc657 | 1,690 | exs | Elixir | mix.exs | CTMoney/phoenix-postgres-react | b51c298fdcef339324a601dd874a82e1e0cc8e6e | [
"MIT"
] | null | null | null | mix.exs | CTMoney/phoenix-postgres-react | b51c298fdcef339324a601dd874a82e1e0cc8e6e | [
"MIT"
] | 1 | 2021-03-09T11:33:04.000Z | 2021-03-09T11:33:04.000Z | mix.exs | CTMoney/phoenix_ | b51c298fdcef339324a601dd874a82e1e0cc8e6e | [
"MIT"
] | null | null | null | defmodule PhoenixPostgresReact.MixProject do
use Mix.Project
def project do
[
app: :phoenix_postgres_react,
version: "0.1.0",
elixir: "~> 1.5",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix, :gettext] ++ Mix.compilers(),
start_permanent: Mix.env() == :prod,
... | 26.825397 | 79 | 0.586982 |
79f8985fd8707212a2c7b5ebe5e97a456f1e4b5d | 648 | exs | Elixir | mix.exs | kianmeng/progress_bar | a6285c683b23a46a97870d15652a2988f6631bcc | [
"MIT"
] | null | null | null | mix.exs | kianmeng/progress_bar | a6285c683b23a46a97870d15652a2988f6631bcc | [
"MIT"
] | null | null | null | mix.exs | kianmeng/progress_bar | a6285c683b23a46a97870d15652a2988f6631bcc | [
"MIT"
] | null | null | null | defmodule ProgressBar.Mixfile do
use Mix.Project
def project do
[
app: :progress_bar,
version: "2.0.1",
elixir: "~> 1.3",
description: "Command-line progress bars and spinners.",
package: package(),
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :pro... | 18.514286 | 68 | 0.560185 |
79f89cd668a41b4195d10575adab39540f3e44fc | 2,047 | ex | Elixir | lib/ex_unit_notifier.ex | pojiro/ex_unit_notifier | 4f6977cfeb45521a4a7e48c0ee82afc8c173b484 | [
"MIT"
] | null | null | null | lib/ex_unit_notifier.ex | pojiro/ex_unit_notifier | 4f6977cfeb45521a4a7e48c0ee82afc8c173b484 | [
"MIT"
] | null | null | null | lib/ex_unit_notifier.ex | pojiro/ex_unit_notifier | 4f6977cfeb45521a4a7e48c0ee82afc8c173b484 | [
"MIT"
] | null | null | null | defmodule ExUnitNotifier do
@moduledoc """
Shows notifications for ExUnit test runs
To enable notifications, add `ExUnitNotifier` as a formatter in your `test_helper.exs`:
ExUnit.configure formatters: [ExUnit.CLIFormatter, ExUnitNotifier]
"""
use GenServer
alias ExUnitNotifier.Counter
alias ExU... | 31.015152 | 98 | 0.696629 |
79f8be9e9cad7c442afd0a43d9f7894af27caf4f | 3,066 | ex | Elixir | server/lib/workrec/models/event.ex | iii-ishida/workrec | d9937282f1665aa65cf6a25d56a583831017239e | [
"MIT"
] | 2 | 2019-02-25T01:43:21.000Z | 2019-07-22T03:57:14.000Z | server/lib/workrec/models/event.ex | iii-ishida/workrec | d9937282f1665aa65cf6a25d56a583831017239e | [
"MIT"
] | 2 | 2022-02-14T03:11:33.000Z | 2022-02-27T12:05:43.000Z | server/lib/workrec/models/event.ex | iii-ishida/workrec | d9937282f1665aa65cf6a25d56a583831017239e | [
"MIT"
] | null | null | null | defmodule Workrec.Model.Event do
@moduledoc """
event
"""
@behaviour Workrec.Repository.CloudDatastore.EntityModel
defstruct [
:id,
:prev_id,
:user_id,
:task_id,
:task_action_id,
:action,
:title,
:time,
:created_at
]
def kind_name, do: "Event"
def for_create_task(... | 25.131148 | 106 | 0.652968 |
79f8c06a6f7bc5702c0b68952206c1348531dbb8 | 677 | exs | Elixir | priv/repo/migrations/20150626143135_resources.exs | houshuang/survey | 948acaf20840af82af1d9af3147acca94cb4fcf8 | [
"Apache-2.0"
] | 48 | 2015-06-29T21:20:25.000Z | 2021-05-09T04:27:41.000Z | priv/repo/migrations/20150626143135_resources.exs | houshuang/survey | 948acaf20840af82af1d9af3147acca94cb4fcf8 | [
"Apache-2.0"
] | null | null | null | priv/repo/migrations/20150626143135_resources.exs | houshuang/survey | 948acaf20840af82af1d9af3147acca94cb4fcf8 | [
"Apache-2.0"
] | 15 | 2015-06-29T21:13:57.000Z | 2021-07-27T10:02:40.000Z | defmodule Survey.Repo.Migrations.Resources do
use Ecto.Migration
def change do
create table(:resources) do
add :name, :text
add :url, :text
add :tags, :"text[]"
add :description, :text
add :generic, :boolean
add :user_id, :integer
add :comments, :"jsonb[]"
add :s... | 24.178571 | 45 | 0.610044 |
79f8ca73c29d9f87bb14a66a8f2e3c4baa7af206 | 1,923 | ex | Elixir | lib/koans/06_lists.ex | CuriousCurmudgeon/elixir-koans | d085a59c55495623268cd2051d8e53d2ebd88b96 | [
"MIT"
] | null | null | null | lib/koans/06_lists.ex | CuriousCurmudgeon/elixir-koans | d085a59c55495623268cd2051d8e53d2ebd88b96 | [
"MIT"
] | null | null | null | lib/koans/06_lists.ex | CuriousCurmudgeon/elixir-koans | d085a59c55495623268cd2051d8e53d2ebd88b96 | [
"MIT"
] | null | null | null | defmodule Lists do
use Koans
@intro "Lists"
koan "We can see what is ahead" do
assert List.first([1, 2, 3]) == 1
end
koan "Checking what's trailing is also simple" do
assert List.last([1, 2, 3]) == 3
end
koan "Lists can store anything you throw at them" do
assert [1, 2] ++ [:a, "b"] == [1,... | 25.64 | 73 | 0.599584 |
79f8d5577fbfcee616f41111864172ec6cc51e7f | 2,461 | exs | Elixir | config/dev.exs | ResiliaDev/Planga | b21d290dd7c2c7fa30571d0a5124d63bd09c0c9e | [
"MIT"
] | 37 | 2018-07-13T14:08:16.000Z | 2021-04-09T15:00:22.000Z | config/dev.exs | ResiliaDev/Planga | b21d290dd7c2c7fa30571d0a5124d63bd09c0c9e | [
"MIT"
] | 9 | 2018-07-16T15:24:39.000Z | 2021-09-01T14:21:20.000Z | config/dev.exs | ResiliaDev/Planga | b21d290dd7c2c7fa30571d0a5124d63bd09c0c9e | [
"MIT"
] | 3 | 2018-10-05T20:19:25.000Z | 2019-12-05T00:30:01.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 :planga, PlangaWeb.Endpoint,
http: [port: 4000... | 28.952941 | 170 | 0.689557 |
79f9159d8dda6e1c045eba738158f3668c2f453a | 16,758 | ex | Elixir | apps/nerves_hub_web_core/lib/nerves_hub_web_core/firmwares.ex | nerves-hub/beamware | 5c239b7125a82d8fcb2b84ff1ad22d3bb0af01eb | [
"Apache-2.0"
] | null | null | null | apps/nerves_hub_web_core/lib/nerves_hub_web_core/firmwares.ex | nerves-hub/beamware | 5c239b7125a82d8fcb2b84ff1ad22d3bb0af01eb | [
"Apache-2.0"
] | null | null | null | apps/nerves_hub_web_core/lib/nerves_hub_web_core/firmwares.ex | nerves-hub/beamware | 5c239b7125a82d8fcb2b84ff1ad22d3bb0af01eb | [
"Apache-2.0"
] | null | null | null | defmodule NervesHubWebCore.Firmwares do
import Ecto.Query
alias Ecto.Changeset
alias NervesHubWebCore.Accounts
alias NervesHubWebCore.Accounts.{OrgKey, Org}
alias NervesHubWebCore.Firmwares.{Firmware, FirmwareMetadata, FirmwareDelta, FirmwareTransfer}
alias NervesHubWebCore.Products
alias NervesHubWebCor... | 30.249097 | 100 | 0.620897 |
79f9323df059503bef2054c920cd54493b67ff6d | 720 | exs | Elixir | hamming/hamming.exs | nlhuykhang/elixir-exercism | 0462661cc411cb28b4bf800639b16684480a06a7 | [
"MIT"
] | null | null | null | hamming/hamming.exs | nlhuykhang/elixir-exercism | 0462661cc411cb28b4bf800639b16684480a06a7 | [
"MIT"
] | null | null | null | hamming/hamming.exs | nlhuykhang/elixir-exercism | 0462661cc411cb28b4bf800639b16684480a06a7 | [
"MIT"
] | null | null | null | defmodule Hamming do
@doc """
Returns number of differences between two strands of DNA, known as the Hamming Distance.
## Examples
iex> Hamming.hamming_distance('AAGTCATA', 'TAGCGATC')
{:ok, 4}
"""
@spec hamming_distance([char], [char]) :: non_neg_integer
def hamming_distance(strand1, strand2) do
... | 21.818182 | 90 | 0.608333 |
79f94191a9c4280194e6f3f7abf6eb2fb02ef7ad | 637 | exs | Elixir | elixir/hello-world/hello_world.exs | esambo/exercism_solutions | 520d9a5c28793c6fab2cb963b8c6de6c3404ac0b | [
"MIT"
] | 2 | 2017-05-19T18:31:38.000Z | 2017-05-19T18:31:41.000Z | elixir/hello-world/hello_world.exs | esambo/exorcism_solutions | 520d9a5c28793c6fab2cb963b8c6de6c3404ac0b | [
"MIT"
] | null | null | null | elixir/hello-world/hello_world.exs | esambo/exorcism_solutions | 520d9a5c28793c6fab2cb963b8c6de6c3404ac0b | [
"MIT"
] | null | null | null | defmodule HelloWorld do
@moduledoc """
Elixir counts the number of arguments as part of the function name.
For instance;
def hello() do
end
would be a completely different function from
def hello(name) do
end
Can you find a way to make all the tests pass with just one
function?
... | 21.233333 | 71 | 0.66405 |
79f9425e028a9237025f37791159d1294460d942 | 878 | ex | Elixir | lib/xeroxero/core_api/models/contacts/contact/balances.ex | scottmessinger/elixero | 4e62c4d80d221639ba2347a563002511e8d4a6c6 | [
"MIT"
] | 1 | 2021-12-01T18:21:31.000Z | 2021-12-01T18:21:31.000Z | lib/xeroxero/core_api/models/contacts/contact/balances.ex | scottmessinger/elixero | 4e62c4d80d221639ba2347a563002511e8d4a6c6 | [
"MIT"
] | null | null | null | lib/xeroxero/core_api/models/contacts/contact/balances.ex | scottmessinger/elixero | 4e62c4d80d221639ba2347a563002511e8d4a6c6 | [
"MIT"
] | 1 | 2021-10-01T12:09:46.000Z | 2021-10-01T12:09:46.000Z | defmodule XeroXero.CoreApi.Models.Contacts.Contact.Balances do
use Ecto.Schema
import Ecto.Changeset
@derive {Jason.Encoder, except: [:__meta__, :id]}
schema "balances" do
embeds_one :AccountsReceivable, XeroXero.CoreApi.Models.Contacts.Contact.Balances.Balance
embeds_one :... | 36.583333 | 98 | 0.68451 |
79f9488f3c3277b518066e4cb1876865bb74f1a3 | 14,051 | ex | Elixir | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v14/api/proposals.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v14/api/proposals.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v14/api/proposals.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | 1 | 2018-07-28T20:50:50.000Z | 2018-07-28T20:50:50.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 47.309764 | 269 | 0.693047 |
79f9537936db6978f7254e3852431786f27f9f0a | 311 | exs | Elixir | priv/repo/migrations/20190410150812_create_high_fives.exs | justmendes/corker | b7a6d7cbae47d30816bb99b8fe8576e9a0d5722d | [
"0BSD"
] | 5 | 2019-05-24T17:00:42.000Z | 2019-05-27T13:50:56.000Z | priv/repo/migrations/20190410150812_create_high_fives.exs | justmendes/corker | b7a6d7cbae47d30816bb99b8fe8576e9a0d5722d | [
"0BSD"
] | 17 | 2019-05-27T08:59:36.000Z | 2020-02-17T06:45:27.000Z | priv/repo/migrations/20190410150812_create_high_fives.exs | justmendes/corker | b7a6d7cbae47d30816bb99b8fe8576e9a0d5722d | [
"0BSD"
] | 1 | 2019-08-27T14:27:06.000Z | 2019-08-27T14:27:06.000Z | defmodule Corker.Repo.Migrations.CreateHighFives do
use Ecto.Migration
def change do
create table(:high_fives) do
add :sender_id, references(:users), null: false
add :receiver_id, references(:users), null: false
add :reason, :string, null: false
timestamps()
end
end
end
| 22.214286 | 55 | 0.684887 |
79f9562b08e13f010ed3de469b00a525e16a3c6b | 854 | ex | Elixir | lib/oli_web/live/curriculum/activity_delta.ex | malav2110/oli-torus | 8af64e762a7c8a2058bd27a7ab8e96539ffc055f | [
"MIT"
] | 45 | 2020-04-17T15:40:27.000Z | 2022-03-25T00:13:30.000Z | lib/oli_web/live/curriculum/activity_delta.ex | malav2110/oli-torus | 8af64e762a7c8a2058bd27a7ab8e96539ffc055f | [
"MIT"
] | 944 | 2020-02-13T02:37:01.000Z | 2022-03-31T17:50:07.000Z | lib/oli_web/live/curriculum/activity_delta.ex | malav2110/oli-torus | 8af64e762a7c8a2058bd27a7ab8e96539ffc055f | [
"MIT"
] | 23 | 2020-07-28T03:36:13.000Z | 2022-03-17T14:29:02.000Z | defmodule OliWeb.Curriculum.ActivityDelta do
alias Oli.Resources
defstruct current: nil,
deleted: [],
added: []
def new(current_page, old_page) do
current = get_activities_from_page(current_page) |> MapSet.new()
previous_activities = get_activities_from_page(old_page) |> MapSet.n... | 31.62963 | 81 | 0.723653 |
79f96c9e991acb636a4700e35fde7e16bf9d926f | 532 | exs | Elixir | config/prod.secret.exs | licaonfee/phoenix_gitlab_monitor | 1b7dd437018d42a2b7b9a1643e6767a48f312eee | [
"MIT"
] | 12 | 2018-11-04T03:39:34.000Z | 2020-04-29T19:30:58.000Z | config/prod.secret.exs | licaonfee/phoenix_gitlab_monitor | 1b7dd437018d42a2b7b9a1643e6767a48f312eee | [
"MIT"
] | 16 | 2018-11-07T01:05:01.000Z | 2021-05-07T21:32:07.000Z | config/prod.secret.exs | licaonfee/phoenix_gitlab_monitor | 1b7dd437018d42a2b7b9a1643e6767a48f312eee | [
"MIT"
] | 3 | 2019-08-27T20:29:00.000Z | 2020-05-25T20:36:12.000Z | use Mix.Config
# In this file, we keep production configuration that
# you'll likely want to automate and keep away from
# your version control system.
#
# You should document the content of this
# file or create a script for recreating it, since it's
# kept out of version control and might be hard to recover
# or rec... | 40.923077 | 124 | 0.766917 |
79f97acfbd3a4e4935f7ebbba596e01f36b387bc | 1,942 | ex | Elixir | lib/annotations.ex | openapi-ro/annotations | a141164235d68d20b52ef199e342b5b9bf130acb | [
"WTFPL"
] | null | null | null | lib/annotations.ex | openapi-ro/annotations | a141164235d68d20b52ef199e342b5b9bf130acb | [
"WTFPL"
] | null | null | null | lib/annotations.ex | openapi-ro/annotations | a141164235d68d20b52ef199e342b5b9bf130acb | [
"WTFPL"
] | null | null | null | defmodule Annotations do
alias Annotations.AnnotatedString
@moduledoc """
`Annotations` is a package for augmenting plain strings with information on ranges of that `String`.
Let's create an `AnnotatedString`:
iex(2)> AnnotatedString.new("first second third. fourth fifth sixth.")
%Annotations.Annotated... | 45.162791 | 102 | 0.667353 |
79f9c6ed57c4d688d7b9b2e7d11d462ef91308d8 | 2,530 | exs | Elixir | apps/astarte_data_updater_plant/mix.exs | Annopaolo/astarte | f8190e8bf044759a9b84bdeb5786a55b6f793a4f | [
"Apache-2.0"
] | 191 | 2018-03-30T13:23:08.000Z | 2022-03-02T12:05:32.000Z | apps/astarte_data_updater_plant/mix.exs | Annopaolo/astarte | f8190e8bf044759a9b84bdeb5786a55b6f793a4f | [
"Apache-2.0"
] | 402 | 2018-03-30T13:37:00.000Z | 2022-03-31T16:47:10.000Z | apps/astarte_data_updater_plant/mix.exs | Annopaolo/astarte | f8190e8bf044759a9b84bdeb5786a55b6f793a4f | [
"Apache-2.0"
] | 24 | 2018-03-30T13:29:48.000Z | 2022-02-28T11:10:26.000Z | #
# This file is part of Astarte.
#
# Copyright 2017-2021 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... | 27.802198 | 85 | 0.632806 |
79f9cd636e2a40901d711c3e9d31bd6d47ea450b | 479 | exs | Elixir | test/hlds_logs/log_producer_test.exs | JonnyPower/hlds_logs | be0b58bc5f482da7c6f31cfe3e699875d40ae719 | [
"MIT"
] | 2 | 2021-09-12T00:11:44.000Z | 2022-02-13T20:45:40.000Z | test/hlds_logs/log_producer_test.exs | JonnyPower/hlds_logs | be0b58bc5f482da7c6f31cfe3e699875d40ae719 | [
"MIT"
] | 1 | 2018-11-19T04:47:38.000Z | 2018-11-19T04:47:38.000Z | test/hlds_logs/log_producer_test.exs | JonnyPower/hlds_logs | be0b58bc5f482da7c6f31cfe3e699875d40ae719 | [
"MIT"
] | null | null | null | defmodule HLDSLogs.LogProducerTest do
use ExUnit.Case
doctest HLDSLogs.LogProducer
test "events from udp message" do
assert {:noreply, [%HLDSLogs.LogEntry{}], nil} = HLDSLogs.LogProducer.handle_info(
{
:udp,
nil,
nil,
nil,
<<255, 255, 255, 255, 108>> <> "L 05/10/... | 26.611111 | 171 | 0.607516 |
79f9d5ac1cf8567c1f52f3560de27a0384078d8b | 114 | ex | Elixir | lib/phoenixcicd/repo.ex | JackMaarek/phoenix-cicd | 746c66a7b248e089b1c138a81f5e4169e73aac67 | [
"MIT"
] | 1 | 2021-05-20T12:03:40.000Z | 2021-05-20T12:03:40.000Z | lib/phoenixcicd/repo.ex | JackMaarek/phoenix-cicd | 746c66a7b248e089b1c138a81f5e4169e73aac67 | [
"MIT"
] | null | null | null | lib/phoenixcicd/repo.ex | JackMaarek/phoenix-cicd | 746c66a7b248e089b1c138a81f5e4169e73aac67 | [
"MIT"
] | 1 | 2021-05-20T12:04:10.000Z | 2021-05-20T12:04:10.000Z | defmodule Phoenixcicd.Repo do
use Ecto.Repo,
otp_app: :phoenixcicd,
adapter: Ecto.Adapters.Postgres
end
| 19 | 35 | 0.745614 |
79f9d5bfef8ca0ad6ba2250a3e0455e4c36b221f | 1,766 | ex | Elixir | clients/android_publisher/lib/google_api/android_publisher/v2/model/tracks_list_response.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/v2/model/tracks_list_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/android_publisher/lib/google_api/android_publisher/v2/model/tracks_list_response.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 ... | 35.32 | 190 | 0.739524 |
79f9f90e37fcc8a165467ab2e158d061f06ce0ee | 61 | ex | Elixir | flights/web/views/layout_view.ex | sifxtreme/phoenix-flights | afc8724e9a9d6f9158305d57df8132327943894d | [
"MIT"
] | null | null | null | flights/web/views/layout_view.ex | sifxtreme/phoenix-flights | afc8724e9a9d6f9158305d57df8132327943894d | [
"MIT"
] | null | null | null | flights/web/views/layout_view.ex | sifxtreme/phoenix-flights | afc8724e9a9d6f9158305d57df8132327943894d | [
"MIT"
] | null | null | null | defmodule Flights.LayoutView do
use Flights.Web, :view
end
| 15.25 | 31 | 0.786885 |
79fa13ea034e7ac8f7f4ef0b4ed030eaa3f68f9d | 14,845 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/instance.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/compute/lib/google_api/compute/v1/model/instance.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/compute/lib/google_api/compute/v1/model/instance.ex | dazuma/elixir-google-api | 6a9897168008efe07a6081d2326735fe332e522c | [
"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... | 84.346591 | 866 | 0.717817 |
79fa1976908ba8ec0d98866e6b1f836e8ffc62ac | 719 | exs | Elixir | test/scenic/primitive/style/miter_limit_test.exs | bruceme/scenic | bd8a1e63c122c44cc263e1fb5dfab2547ce8ef43 | [
"Apache-2.0"
] | null | null | null | test/scenic/primitive/style/miter_limit_test.exs | bruceme/scenic | bd8a1e63c122c44cc263e1fb5dfab2547ce8ef43 | [
"Apache-2.0"
] | null | null | null | test/scenic/primitive/style/miter_limit_test.exs | bruceme/scenic | bd8a1e63c122c44cc263e1fb5dfab2547ce8ef43 | [
"Apache-2.0"
] | null | null | null | #
# Created by Boyd Multerer on 2017-05-12.
# Copyright © 2017-2021 Kry10 Limited. All rights reserved.
#
defmodule Scenic.Primitive.Style.MiterLimitTest do
use ExUnit.Case, async: true
doctest Scenic.Primitive.Style.MiterLimit
alias Scenic.Primitive.Style.MiterLimit
test "validate accepts valid data" do
... | 26.62963 | 60 | 0.706537 |
79fa3c4d6dd0098abddda7fdd8525f9823ed9008 | 147 | exs | Elixir | test/bootlegger_test.exs | mogorman/bootlegger | 2852afb8ef09a7098a6c866316191808cda37e06 | [
"MIT"
] | null | null | null | test/bootlegger_test.exs | mogorman/bootlegger | 2852afb8ef09a7098a6c866316191808cda37e06 | [
"MIT"
] | null | null | null | test/bootlegger_test.exs | mogorman/bootlegger | 2852afb8ef09a7098a6c866316191808cda37e06 | [
"MIT"
] | null | null | null | defmodule BootleggerTest do
use ExUnit.Case
doctest Bootlegger
test "greets the world" do
assert Bootlegger.hello() == :world
end
end
| 16.333333 | 39 | 0.727891 |
79fa6227fe68c44c7653c11628b6246bd95fb090 | 1,504 | ex | Elixir | test/support/queue_test_helper.ex | smartrent/task_bunny | db0b91d966b54df75e0f60f9c788ffa044c1f37a | [
"MIT"
] | null | null | null | test/support/queue_test_helper.ex | smartrent/task_bunny | db0b91d966b54df75e0f60f9c788ffa044c1f37a | [
"MIT"
] | null | null | null | test/support/queue_test_helper.ex | smartrent/task_bunny | db0b91d966b54df75e0f60f9c788ffa044c1f37a | [
"MIT"
] | null | null | null | defmodule TaskBunny.QueueTestHelper do
defmacro clean(queues) do
quote do
# Remove pre-existing queues before every test.
{:ok, connection} = AMQP.Connection.open()
{:ok, channel} = AMQP.Channel.open(connection)
Enum.each(unquote(queues), fn queue -> AMQP.Queue.delete(channel, queue) end)... | 25.491525 | 85 | 0.636968 |
79fa9370e7a92811398090965c20126995502090 | 1,925 | ex | Elixir | lib/makeup/styles/html/pygments/colorful.ex | kipcole9/makeup | dff1bd2e3d6b2938138ebaea5771821bf7c4e45a | [
"BSD-2-Clause"
] | 13 | 2018-09-19T21:03:29.000Z | 2022-01-27T04:06:32.000Z | deps/makeup/lib/makeup/styles/html/pygments/colorful.ex | mwindholtz/limbo | 84da57c72ddb2f1dd78bf2992410268c5ad1b2d4 | [
"Apache-2.0"
] | 1 | 2020-05-26T04:16:57.000Z | 2020-05-26T04:16:57.000Z | deps/makeup/lib/makeup/styles/html/pygments/colorful.ex | mwindholtz/limbo | 84da57c72ddb2f1dd78bf2992410268c5ad1b2d4 | [
"Apache-2.0"
] | 3 | 2020-05-21T04:32:08.000Z | 2021-07-28T05:14:01.000Z |
defmodule Makeup.Styles.HTML.ColorfulStyle do
@moduledoc false
@styles %{
:error => "#F00 bg:#FAA",
:keyword => "bold #080",
:keyword_pseudo => "#038",
:keyword_type => "#339",
:name_attribute => "#00C",
:name_builtin => "#007020",
:name_class => "bold #B06",
:name_constant => "bol... | 28.308824 | 45 | 0.578182 |
79fa9c562c423383262f87b288670517a560b004 | 6,064 | ex | Elixir | lib/app/accounts.ex | ThanhUong/Chronos | 5e1b0823c585b784f5c51212513d518cab53a571 | [
"MIT"
] | null | null | null | lib/app/accounts.ex | ThanhUong/Chronos | 5e1b0823c585b784f5c51212513d518cab53a571 | [
"MIT"
] | null | null | null | lib/app/accounts.ex | ThanhUong/Chronos | 5e1b0823c585b784f5c51212513d518cab53a571 | [
"MIT"
] | null | null | null | defmodule App.Accounts do
@moduledoc """
The Accounts context.
"""
import Ecto.Query, warn: false
alias App.Repo
alias App.Accounts.User
alias App.Projects
@doc """
Gets a single user.
Raises `Ecto.NoResultsError` if the User does not exist.
## Examples
iex> get_user!(123)
%User{... | 18.95 | 88 | 0.616755 |
79faababe3956214cc82e94d80370bed2d30b50c | 5,781 | ex | Elixir | clients/games/lib/google_api/games/v1/api/players.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/games/lib/google_api/games/v1/api/players.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/games/lib/google_api/games/v1/api/players.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | 1 | 2018-07-28T20:50:50.000Z | 2018-07-28T20:50:50.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 45.519685 | 220 | 0.692095 |
79faba289eb520a6d21dac0e2f8a11c6bfd2546a | 2,674 | ex | Elixir | lib/ex_oapi/parser/ecto_types/typed_enum.ex | mnussbaumer/ex_oapi | f5eb610283a7f92a69e6266effc0dc4e2c497b61 | [
"MIT"
] | null | null | null | lib/ex_oapi/parser/ecto_types/typed_enum.ex | mnussbaumer/ex_oapi | f5eb610283a7f92a69e6266effc0dc4e2c497b61 | [
"MIT"
] | null | null | null | lib/ex_oapi/parser/ecto_types/typed_enum.ex | mnussbaumer/ex_oapi | f5eb610283a7f92a69e6266effc0dc4e2c497b61 | [
"MIT"
] | null | null | null | defmodule ExOAPI.EctoTypes.TypedEnum do
defmacro __before_compile__(_env) do
# these are inserted in the before_compile hook to give opportunity to the
# implementing module to define additional variations
quote do
def cast(_), do: :error
def dump(_), do: :error
defp get_term(data), do: ... | 30.044944 | 93 | 0.60733 |
79fabb59ebc05c7fb2e0fa999287d42b3b3f188d | 1,212 | exs | Elixir | mix.exs | skirino/pool_sup | 1cd5a60ce6538fac73cd23782fd6ee1431b65032 | [
"MIT"
] | 8 | 2016-04-05T01:59:33.000Z | 2017-09-22T18:59:33.000Z | mix.exs | skirino/pool_sup | 1cd5a60ce6538fac73cd23782fd6ee1431b65032 | [
"MIT"
] | 2 | 2018-06-26T07:53:04.000Z | 2018-06-27T13:28:39.000Z | mix.exs | skirino/pool_sup | 1cd5a60ce6538fac73cd23782fd6ee1431b65032 | [
"MIT"
] | 1 | 2018-06-26T04:35:42.000Z | 2018-06-26T04:35:42.000Z | defmodule PoolSup.Mixfile do
use Mix.Project
@github_url "https://github.com/skirino/pool_sup"
def project() do
[
app: :pool_sup,
version: "0.6.1",
elixir: "~> 1.6",
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,... | 26.933333 | 121 | 0.502475 |
79fac55d8a771dfd543fce4ab0ededffd4b84fe1 | 1,449 | ex | Elixir | insights/lib/insights_web/router.ex | MillionIntegrals/elixir-mongodb-driver | 96c4cc3f21c4043323b8a9b33ad3a374760864c6 | [
"Apache-2.0"
] | null | null | null | insights/lib/insights_web/router.ex | MillionIntegrals/elixir-mongodb-driver | 96c4cc3f21c4043323b8a9b33ad3a374760864c6 | [
"Apache-2.0"
] | null | null | null | insights/lib/insights_web/router.ex | MillionIntegrals/elixir-mongodb-driver | 96c4cc3f21c4043323b8a9b33ad3a374760864c6 | [
"Apache-2.0"
] | null | null | null | defmodule InsightsWeb.Router do
use InsightsWeb, :router
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_live_flash
plug :put_root_layout, {InsightsWeb.LayoutView, :root}
plug :protect_from_forgery
plug :put_secure_browser_headers
end
pipeline :api do
p... | 25.875 | 70 | 0.697723 |
79fac68ea7dd80adf03fdbb98cecc3eec0994777 | 2,999 | exs | Elixir | apps/astarte_pairing_api/mix.exs | Spidey20202022/astarte | 3950855c592b34363af0cf7f8a921762ce64e512 | [
"Apache-2.0"
] | 1 | 2020-02-04T13:15:22.000Z | 2020-02-04T13:15:22.000Z | apps/astarte_pairing_api/mix.exs | Spidey20202022/astarte | 3950855c592b34363af0cf7f8a921762ce64e512 | [
"Apache-2.0"
] | 1 | 2020-01-20T09:52:48.000Z | 2020-01-20T09:52:48.000Z | apps/astarte_pairing_api/mix.exs | Spidey20202022/astarte | 3950855c592b34363af0cf7f8a921762ce64e512 | [
"Apache-2.0"
] | 1 | 2020-02-04T13:15:50.000Z | 2020-02-04T13:15:50.000Z | #
# This file is part of Astarte.
#
# Copyright 2017 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... | 28.836538 | 87 | 0.624542 |
79fad1302e9914e5fa16ea9fb3b6f284b0423e1f | 1,658 | ex | Elixir | priv/templates/brando.install/lib/application_name/authorization.ex | brandocms/brando | 4198e0c0920031bd909969055064e4e2b7230d21 | [
"MIT"
] | 4 | 2020-10-30T08:40:38.000Z | 2022-01-07T22:21:37.000Z | priv/templates/brando.install/lib/application_name/authorization.ex | brandocms/brando | 4198e0c0920031bd909969055064e4e2b7230d21 | [
"MIT"
] | 1,162 | 2020-07-05T11:20:15.000Z | 2022-03-31T06:01:49.000Z | priv/templates/brando.install/lib/application_name/authorization.ex | brandocms/brando | 4198e0c0920031bd909969055064e4e2b7230d21 | [
"MIT"
] | null | null | null | defmodule <%= application_module %>.Authorization do
@moduledoc """
Authorization module for application.
This module sets permissions across the application on the backend
as well as the frontend.
"""
use Brando.Authorization
# Declare types so we can translate seamlessly between
# frontend and back... | 29.087719 | 69 | 0.64234 |
79fb0b1056ce375815221107d4021421a1487df4 | 2,016 | ex | Elixir | apps/gobstopper_api/lib/gobstopper.api/auth.ex | ZURASTA/gobstopper | f8d231c4459af6fa44273c3ef80857348410c70b | [
"BSD-2-Clause"
] | null | null | null | apps/gobstopper_api/lib/gobstopper.api/auth.ex | ZURASTA/gobstopper | f8d231c4459af6fa44273c3ef80857348410c70b | [
"BSD-2-Clause"
] | 12 | 2017-07-24T12:29:51.000Z | 2018-04-05T03:58:10.000Z | apps/gobstopper_api/lib/gobstopper.api/auth.ex | ZURASTA/gobstopper | f8d231c4459af6fa44273c3ef80857348410c70b | [
"BSD-2-Clause"
] | 4 | 2017-07-24T12:19:23.000Z | 2019-02-19T06:34:46.000Z | defmodule Gobstopper.API.Auth do
@moduledoc """
Handles the authorization of session tokens.
"""
@service Gobstopper.Service.Auth
@type token :: String.t
@type uuid :: String.t
@doc """
Logout of an identity's active session.
#{Gobstopper.API.option_docs}
"""
@spec ... | 32 | 148 | 0.623016 |
79fb3416919f721b1b7518ed41036ec7f4e13799 | 1,090 | exs | Elixir | clients/firebase_dynamic_links/test/test_helper.exs | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/firebase_dynamic_links/test/test_helper.exs | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/firebase_dynamic_links/test/test_helper.exs | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 30.277778 | 83 | 0.744954 |
79fb42a0fae56368ed4d807adc64223f4978f726 | 1,445 | exs | Elixir | mix.exs | fenollp/excoveralls | a9fc2410397ac6391d58d2c5436141e644c3d733 | [
"MIT"
] | null | null | null | mix.exs | fenollp/excoveralls | a9fc2410397ac6391d58d2c5436141e644c3d733 | [
"MIT"
] | null | null | null | mix.exs | fenollp/excoveralls | a9fc2410397ac6391d58d2c5436141e644c3d733 | [
"MIT"
] | null | null | null | defmodule ExCoveralls.Mixfile do
use Mix.Project
def project do
[ app: :excoveralls,
version: "0.9.2",
elixir: "~> 1.3",
elixirc_paths: elixirc_paths(Mix.env()),
deps: deps(),
description: description(),
package: package(),
test_coverage: [tool: ExCoveralls],
pre... | 25.803571 | 94 | 0.590311 |
79fb5643aca887df140dac13a6640d6c0b81b64f | 3,256 | ex | Elixir | lib/honeybadger/notice.ex | abstractcoder/honeybadger-elixir | 4917909d8735457d472400c5515a4d0075bff265 | [
"MIT"
] | null | null | null | lib/honeybadger/notice.ex | abstractcoder/honeybadger-elixir | 4917909d8735457d472400c5515a4d0075bff265 | [
"MIT"
] | null | null | null | lib/honeybadger/notice.ex | abstractcoder/honeybadger-elixir | 4917909d8735457d472400c5515a4d0075bff265 | [
"MIT"
] | null | null | null | defmodule Honeybadger.Notice do
@doc false
alias Honeybadger.{Backtrace, Utils}
alias Honeybadger.Breadcrumbs.{Collector}
@type error :: %{
backtrace: list,
class: atom | iodata,
fingerprint: String.t(),
message: iodata,
tags: list
}
@type notifier ... | 29.87156 | 91 | 0.648034 |
79fb9c84065aa8e25d7c343506344924df4ed9e1 | 2,347 | exs | Elixir | test/build_test.exs | eksperimental/buildable | cf6be3dee76bf6dab39517b58bfa5de441b05427 | [
"MIT"
] | 9 | 2021-01-02T07:29:14.000Z | 2021-12-20T01:34:34.000Z | test/build_test.exs | eksperimental/buildable | cf6be3dee76bf6dab39517b58bfa5de441b05427 | [
"MIT"
] | null | null | null | test/build_test.exs | eksperimental/buildable | cf6be3dee76bf6dab39517b58bfa5de441b05427 | [
"MIT"
] | 2 | 2021-11-07T19:42:31.000Z | 2021-11-07T19:43:02.000Z | defmodule BuildTest do
use ExUnit.Case
doctest Build
setup_all _ do
%{
foo: %{__struct__: Foo, map: %{a: 2, b: 4, c: 6}},
map: %{a: 2, b: 4, c: 6}
}
end
test "extract", %{foo: foo, map: map} do
assert Build.extract(foo) == Build.extract(foo, :first)
assert Build.extract(foo, :fir... | 34.514706 | 95 | 0.49297 |
79fbd9ee0fcae5c697696b0125d918cbd990d01b | 4,934 | exs | Elixir | test/sanbase_web/graphql/comments/wallet_hunters_proposal_comments_api_test.exs | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | 1 | 2022-01-30T19:51:39.000Z | 2022-01-30T19:51:39.000Z | test/sanbase_web/graphql/comments/wallet_hunters_proposal_comments_api_test.exs | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | null | null | null | test/sanbase_web/graphql/comments/wallet_hunters_proposal_comments_api_test.exs | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | null | null | null | defmodule SanbaseWeb.Graphql.WalletHuntersProposalCommentsApiTest do
use SanbaseWeb.ConnCase, async: false
import Sanbase.Factory
import Sanbase.TestHelpers
import SanbaseWeb.Graphql.TestHelpers
import Sanbase.CommentsApiHelper
alias Sanbase.WalletHunters.Proposal
@opts [entity_type: :wallet_hunters_pro... | 33.564626 | 91 | 0.67653 |
79fbeef8453581021ae6c6111fa56e817ea38b28 | 493 | ex | Elixir | lib/telepath_web/views/error_view.ex | jdangerx/telepath | 75314db05dd97ea86b5a828ab673fed33ecad5e1 | [
"MIT"
] | null | null | null | lib/telepath_web/views/error_view.ex | jdangerx/telepath | 75314db05dd97ea86b5a828ab673fed33ecad5e1 | [
"MIT"
] | null | null | null | lib/telepath_web/views/error_view.ex | jdangerx/telepath | 75314db05dd97ea86b5a828ab673fed33ecad5e1 | [
"MIT"
] | null | null | null | defmodule TelepathWeb.ErrorView do
use TelepathWeb, :view
# If you want to customize a particular status code
# for a certain format, you may uncomment below.
# def render("500.html", _assigns) do
# "Internal Server Error"
# end
# By default, Phoenix returns the status message from
# the template na... | 29 | 61 | 0.736308 |
79fc1dec2a77ac3e45132beadc9e78e0e9d54cfa | 2,339 | exs | Elixir | exercises/concept/freelancer-rates/test/freelancer_rates_test.exs | devtayls/elixir | 67824de8209ff1b6ed2f736deedfb5bd815130ca | [
"MIT"
] | 1 | 2020-04-06T19:41:50.000Z | 2020-04-06T19:41:50.000Z | exercises/concept/freelancer-rates/test/freelancer_rates_test.exs | devtayls/elixir | 67824de8209ff1b6ed2f736deedfb5bd815130ca | [
"MIT"
] | null | null | null | exercises/concept/freelancer-rates/test/freelancer_rates_test.exs | devtayls/elixir | 67824de8209ff1b6ed2f736deedfb5bd815130ca | [
"MIT"
] | 1 | 2021-03-15T11:02:40.000Z | 2021-03-15T11:02:40.000Z | defmodule FreelancerRatesTest do
use ExUnit.Case
describe "daily_rate/1" do
@tag task_id: 1
test "it's the hourly_rate times 8" do
assert FreelancerRates.daily_rate(50) == 400.0
end
@tag task_id: 1
test "it always returns a float" do
assert FreelancerRates.daily_rate(60) === 480.0
... | 25.988889 | 86 | 0.645575 |
79fc3ccf4f0f59cce2bd47d14dc4d566090d6d33 | 8,248 | ex | Elixir | lib/dart_sass.ex | dominicletz/dart_sass | e2f486686750ac528a261c68ff9bbcece243fe26 | [
"MIT"
] | null | null | null | lib/dart_sass.ex | dominicletz/dart_sass | e2f486686750ac528a261c68ff9bbcece243fe26 | [
"MIT"
] | null | null | null | lib/dart_sass.ex | dominicletz/dart_sass | e2f486686750ac528a261c68ff9bbcece243fe26 | [
"MIT"
] | null | null | null | defmodule DartSass do
@moduledoc """
DartSass is a installer and runner for [sass](https://sass-lang.com/dart-sass).
## Profiles
You can define multiple dart_sass profiles. By default, there is a
profile called `:default` which you can configure its args, current
directory and environment:
config :... | 26.779221 | 96 | 0.603904 |
79fc3e75e56e4ce526e034db6c83d1c0b9eeab01 | 1,708 | ex | Elixir | lib/spelt/application.ex | jec/spelt | b6e5070226b646e1eb5dfc28453db7e7bf5030d9 | [
"BSD-3-Clause"
] | null | null | null | lib/spelt/application.ex | jec/spelt | b6e5070226b646e1eb5dfc28453db7e7bf5030d9 | [
"BSD-3-Clause"
] | null | null | null | lib/spelt/application.ex | jec/spelt | b6e5070226b646e1eb5dfc28453db7e7bf5030d9 | [
"BSD-3-Clause"
] | null | null | null | defmodule Spelt.Application do
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
use Application
def start(_type, _args) do
# Load Vapor config.
providers = [
%Vapor.Provider.File{path: "config/#{Mix.env()}.yaml", bindings: [db: "db", ... | 28.466667 | 97 | 0.669789 |
79fc591e05591be80b9b279282eba17ee7e4d990 | 2,832 | ex | Elixir | lib/rummage_phoenix/view.ex | glasnoster/rummage_phoenix | 4818a096b19ccdd60ae195ddf992728396a08a24 | [
"MIT"
] | null | null | null | lib/rummage_phoenix/view.ex | glasnoster/rummage_phoenix | 4818a096b19ccdd60ae195ddf992728396a08a24 | [
"MIT"
] | null | null | null | lib/rummage_phoenix/view.ex | glasnoster/rummage_phoenix | 4818a096b19ccdd60ae195ddf992728396a08a24 | [
"MIT"
] | null | null | null | defmodule Rummage.Phoenix.View do
@moduledoc """
View Module for Rummage. This has view helpers that can generate rummagable links and forms.
Usage:
```elixir
defmodule MyApp.ProductView do
use MyApp.Web, :view
use Rummage.Phoenix.View
end
```
"""
@doc """
This macro includes the helpers ... | 32.181818 | 148 | 0.650777 |
79fc96cf43ba46daa5354c61bee522f1bc01ed57 | 2,167 | ex | Elixir | aax_test_set/aam_aad_sets.ex | XCaminhante/tutoriais-e-exemplos | a7dc1df8ad1a7a7c04353dfa2eb2b2561704babb | [
"Unlicense"
] | 15 | 2017-11-09T23:58:05.000Z | 2021-07-03T14:28:07.000Z | aax_test_set/aam_aad_sets.ex | XCaminhante/tutoriais-e-exemplos | a7dc1df8ad1a7a7c04353dfa2eb2b2561704babb | [
"Unlicense"
] | 5 | 2020-04-05T23:17:38.000Z | 2021-02-07T14:27:00.000Z | aax_test_set/aam_aad_sets.ex | XCaminhante/tutoriais-e-exemplos | a7dc1df8ad1a7a7c04353dfa2eb2b2561704babb | [
"Unlicense"
] | 2 | 2018-03-26T19:26:18.000Z | 2020-06-05T02:06:31.000Z | namespace aax_test_set
include std/math.e
/* AAM-AAD-J[N]?[PS]-based set-selector brutefinder (???) */
-- Resultset fields
enum X, Y, JTYPE
function test_solution (sequence xy, sequence a_set, sequence what_set, sequence words)
integer found = 1
for k = 2 to length(a_set) do
if and_bits(xor_bits(a_set[k]... | 28.893333 | 87 | 0.562529 |
79fca47a76436f87bd35f79889219679fafe487e | 2,605 | exs | Elixir | test/client_test.exs | mainframe2/postgrex | 7c3312f69b6b787e7d1831eedff32be36c3ee953 | [
"Apache-2.0"
] | null | null | null | test/client_test.exs | mainframe2/postgrex | 7c3312f69b6b787e7d1831eedff32be36c3ee953 | [
"Apache-2.0"
] | null | null | null | test/client_test.exs | mainframe2/postgrex | 7c3312f69b6b787e7d1831eedff32be36c3ee953 | [
"Apache-2.0"
] | null | null | null | defmodule ClientTest do
use ExUnit.Case
import Postgrex.TestHelper
import ExUnit.CaptureLog
setup do
opts = [database: "postgrex_test", backoff_type: :stop]
{:ok, pid} = Postgrex.start_link(opts)
{:ok, [pid: pid, options: opts]}
end
test "active client timeout", context do
conn = context[:... | 24.575472 | 91 | 0.609597 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.