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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
da6a29e5df4d48fa2b56d6f8be707a64e877e5d8 | 330 | exs | Elixir | priv/repo/tenant_migrations/20180720075134_add_gist_index_starts_at_to_appointment.exs | GabrielMalakias/Copan | cdf4dec19d9f9cefca59aa9f01fe33060fe7e019 | [
"MIT"
] | 1 | 2019-01-19T00:53:07.000Z | 2019-01-19T00:53:07.000Z | priv/repo/tenant_migrations/20180720075134_add_gist_index_starts_at_to_appointment.exs | dkuku/copan | cdf4dec19d9f9cefca59aa9f01fe33060fe7e019 | [
"MIT"
] | null | null | null | priv/repo/tenant_migrations/20180720075134_add_gist_index_starts_at_to_appointment.exs | dkuku/copan | cdf4dec19d9f9cefca59aa9f01fe33060fe7e019 | [
"MIT"
] | 1 | 2020-01-29T21:46:16.000Z | 2020-01-29T21:46:16.000Z | defmodule Copan.Repo.Migrations.AddGistIndexStartsAtToAppointment do
use Ecto.Migration
def up do
create index("appointments", [:starts_at], name: "appointments_starts_at_g", concurrently: false, using: :gist)
end
def down do
drop index("appointments", [:starts_at], name: "appointments_starts_at_g")
... | 27.5 | 116 | 0.751515 |
da6a3c7ee38f9d5fdd556391474134b022cb2664 | 1,240 | ex | Elixir | apps/omg_child_chain_rpc/lib/omg_child_chain_rpc/web/router.ex | boolafish/elixir-omg | 46b568404972f6e4b4da3195d42d4fb622edb934 | [
"Apache-2.0"
] | null | null | null | apps/omg_child_chain_rpc/lib/omg_child_chain_rpc/web/router.ex | boolafish/elixir-omg | 46b568404972f6e4b4da3195d42d4fb622edb934 | [
"Apache-2.0"
] | null | null | null | apps/omg_child_chain_rpc/lib/omg_child_chain_rpc/web/router.ex | boolafish/elixir-omg | 46b568404972f6e4b4da3195d42d4fb622edb934 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019-2020 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 ... | 35.428571 | 76 | 0.727419 |
da6a75d0c3e7180445e07b48644c80e768249ff1 | 13,416 | exs | Elixir | test/pockets_test.exs | fireproofsocks/pockets | b0e7ebd8836e22f7354f083dea9e52d6b4ce365a | [
"Apache-2.0"
] | 4 | 2020-09-29T17:54:47.000Z | 2022-03-01T19:26:07.000Z | test/pockets_test.exs | fireproofsocks/pockets | b0e7ebd8836e22f7354f083dea9e52d6b4ce365a | [
"Apache-2.0"
] | 3 | 2020-11-20T20:54:39.000Z | 2021-10-09T00:39:57.000Z | test/pockets_test.exs | fireproofsocks/pockets | b0e7ebd8836e22f7354f083dea9e52d6b4ce365a | [
"Apache-2.0"
] | 1 | 2020-11-04T14:09:30.000Z | 2020-11-04T14:09:30.000Z | defmodule PocketsTest do
use ExUnit.Case, async: false
alias Pockets.{DetsInfo, EtsInfo, Table}
@ets_tid :test_ram
@tmp_dets_path "test/tmp.dets"
@tmp_dets_path2 "test/tmp2.dets"
@persistent_dets_path "test/support/files/test.dets"
setup do
on_exit(fn ->
File.rm(@tmp_dets_path)
File.rm(... | 29.421053 | 87 | 0.590414 |
da6a8f76c0194578ebd4a7cc2621f4e375ca7aa4 | 1,166 | exs | Elixir | config/config.exs | dliberalesso/advent_of_code | dc96a9e92304dd1c00e282583909cca297c6d56e | [
"MIT"
] | null | null | null | config/config.exs | dliberalesso/advent_of_code | dc96a9e92304dd1c00e282583909cca297c6d56e | [
"MIT"
] | null | null | null | config/config.exs | dliberalesso/advent_of_code | dc96a9e92304dd1c00e282583909cca297c6d56e | [
"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
config :aoc, key: System.get_env("SESSION_KEY")
# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on this project,... | 35.333333 | 73 | 0.747856 |
da6ad0cfcf12042435e6c6c4563e7234540183b8 | 170,888 | ex | Elixir | clients/dataproc/lib/google_api/dataproc/v1/api/projects.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/dataproc/lib/google_api/dataproc/v1/api/projects.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/dataproc/lib/google_api/dataproc/v1/api/projects.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 ... | 48.727687 | 826 | 0.625884 |
da6b0cb0a87998cef2f27ba67459e6c2e2b1b23f | 584 | ex | Elixir | lib/xml2_yml/application.ex | jyeshe/xml2yml | 1fc308d67c7080f39c08d756609912082f23bc20 | [
"Apache-2.0"
] | null | null | null | lib/xml2_yml/application.ex | jyeshe/xml2yml | 1fc308d67c7080f39c08d756609912082f23bc20 | [
"Apache-2.0"
] | null | null | null | lib/xml2_yml/application.ex | jyeshe/xml2yml | 1fc308d67c7080f39c08d756609912082f23bc20 | [
"Apache-2.0"
] | null | null | null | defmodule Xml2Yml.Application do
@moduledoc false
use Application
import Xml2Yml.XmlReader
@input "test/input.xml"
@output "output.yml"
def start(_type, _args) do
children = [
{Xml2Yml.YmlComposer, id: 0}
]
opts = [strategy: :one_for_one, name: Xml2Yml.Supervisor]
Supervisor.star... | 18.83871 | 61 | 0.640411 |
da6b15166a2e85df6541621315a6c744b9da70a4 | 159 | ex | Elixir | testData/org/elixir_lang/parser_definition/matched_arrow_operation_parsing_test_case/DecimalFloat.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 1,668 | 2015-01-03T05:54:27.000Z | 2022-03-25T08:01:20.000Z | testData/org/elixir_lang/parser_definition/matched_arrow_operation_parsing_test_case/DecimalFloat.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 2,018 | 2015-01-01T22:43:39.000Z | 2022-03-31T20:13:08.000Z | testData/org/elixir_lang/parser_definition/matched_arrow_operation_parsing_test_case/DecimalFloat.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 145 | 2015-01-15T11:37:16.000Z | 2021-12-22T05:51:02.000Z | 1.2e-3 <~ 4.5e+6
1.2e-3 |> 4.5e+6
1.2e-3 ~> 4.5e+6
1.2e-3 <<< 4.5e+6
1.2e-3 <<~ 4.5e+6
1.2e-3 <|> 4.5e+6
1.2e-3 <~> 4.5e+6
1.2e-3 >>> 4.5e+6
1.2e-3 ~>> 4.5e+6
| 15.9 | 17 | 0.45283 |
da6b2d335c96c284b648bc956609d69a54a35d49 | 2,726 | ex | Elixir | clients/api_gateway/lib/google_api/api_gateway/v1beta/model/apigateway_api.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/api_gateway/lib/google_api/api_gateway/v1beta/model/apigateway_api.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/api_gateway/lib/google_api/api_gateway/v1beta/model/apigateway_api.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 41.938462 | 290 | 0.694424 |
da6b3439ac4a859fa61f4e3c43a49ab6c9ce2168 | 3,866 | ex | Elixir | lib/ex_plasma/output/type/abstract_payment.ex | omisego/ex_plasma | 27c33206297a4d6832a9419c4e61e04b3c2c9f71 | [
"Apache-2.0"
] | 6 | 2019-11-15T13:34:24.000Z | 2020-03-02T11:38:01.000Z | lib/ex_plasma/output/type/abstract_payment.ex | omisego/ex_plasma | 27c33206297a4d6832a9419c4e61e04b3c2c9f71 | [
"Apache-2.0"
] | 34 | 2019-11-20T03:33:22.000Z | 2020-05-27T18:40:10.000Z | lib/ex_plasma/output/type/abstract_payment.ex | omisego/ex_plasma | 27c33206297a4d6832a9419c4e61e04b3c2c9f71 | [
"Apache-2.0"
] | 6 | 2020-06-02T19:00:36.000Z | 2021-08-19T11:06:33.000Z | defmodule ExPlasma.Output.Type.AbstractPayment do
@moduledoc """
Abstract payment output type.
"""
@behaviour ExPlasma.Output
alias __MODULE__.Validator
alias ExPlasma.Output
alias ExPlasma.Utils.RlpDecoder
@type address() :: <<_::160>>
@type output_guard() :: address()
@type token() :: address()... | 28.850746 | 112 | 0.625194 |
da6b979f5ac47d621d30c846cb3ce927f72e1a69 | 61 | ex | Elixir | lib/topflow_web/views/page_view.ex | angelo-moreira/topflow | 00946c317aba3e2247932e83cc4f5ac7fd38e280 | [
"Unlicense"
] | null | null | null | lib/topflow_web/views/page_view.ex | angelo-moreira/topflow | 00946c317aba3e2247932e83cc4f5ac7fd38e280 | [
"Unlicense"
] | null | null | null | lib/topflow_web/views/page_view.ex | angelo-moreira/topflow | 00946c317aba3e2247932e83cc4f5ac7fd38e280 | [
"Unlicense"
] | null | null | null | defmodule TopflowWeb.PageView do
use TopflowWeb, :view
end
| 15.25 | 32 | 0.803279 |
da6b9cf45aa2a06f56f21560d82037cc97135139 | 1,595 | exs | Elixir | test/notifications/notify_events_test.exs | MichalDolata/eventstore | 2a6725fcb4c398d81a74455b6077901189b75386 | [
"MIT"
] | null | null | null | test/notifications/notify_events_test.exs | MichalDolata/eventstore | 2a6725fcb4c398d81a74455b6077901189b75386 | [
"MIT"
] | null | null | null | test/notifications/notify_events_test.exs | MichalDolata/eventstore | 2a6725fcb4c398d81a74455b6077901189b75386 | [
"MIT"
] | null | null | null | defmodule EventStore.Notifications.NotifyEventsTest do
use EventStore.StorageCase
alias EventStore.{Config, EventFactory}
alias TestEventStore, as: EventStore
@channel "events"
setup do
{:ok, conn} = start_listener()
{:ok, ref} = Postgrex.Notifications.listen(conn, @channel)
[ref: ref]
end
... | 31.9 | 91 | 0.711599 |
da6bbe6603f90572d7fc0f3f6a2d10d349437c6b | 1,939 | exs | Elixir | clients/access_context_manager/mix.exs | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/access_context_manager/mix.exs | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/access_context_manager/mix.exs | 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... | 28.940299 | 125 | 0.668901 |
da6bd31c2c625197b52e6c16289c24dc8167e335 | 1,305 | ex | Elixir | lib/xuber/endpoint.ex | CCL77/trackme | af3e2dbfb3cbf92e96c0bdc8f2f6a19595d92140 | [
"MIT"
] | 1 | 2020-08-16T05:45:54.000Z | 2020-08-16T05:45:54.000Z | lib/xuber/endpoint.ex | CCL77/xuber-old | af3e2dbfb3cbf92e96c0bdc8f2f6a19595d92140 | [
"MIT"
] | null | null | null | lib/xuber/endpoint.ex | CCL77/xuber-old | af3e2dbfb3cbf92e96c0bdc8f2f6a19595d92140 | [
"MIT"
] | null | null | null | defmodule XUber.Endpoint do
use Phoenix.Endpoint, otp_app: :xuber
socket "/socket", XUber.UserSocket,
websocket: [timeout: 45_000],
longpoll: false
# Serve at "/" the static files from "priv/static" directory.
#
# You should set gzip to true if you are running phoenix.digest
# when deploying your s... | 27.765957 | 69 | 0.708046 |
da6c0170303676203f137d7b7d4ca4fdcfbf2ce3 | 1,244 | ex | Elixir | kousa/lib/routes/dev.ex | samoersnaes/dogehouse | ee55c38c2fac8e097adf6ddced14181454e3c1aa | [
"MIT"
] | null | null | null | kousa/lib/routes/dev.ex | samoersnaes/dogehouse | ee55c38c2fac8e097adf6ddced14181454e3c1aa | [
"MIT"
] | null | null | null | kousa/lib/routes/dev.ex | samoersnaes/dogehouse | ee55c38c2fac8e097adf6ddced14181454e3c1aa | [
"MIT"
] | null | null | null | defmodule Kousa.Dev do
import Plug.Conn
alias Beef.Schemas.User
use Plug.Router
plug(:match)
plug(:dispatch)
get "/test-info" do
if Application.fetch_env!(:kousa, :env) != :dev and
not Kousa.Caster.bool(Application.get_env(:kousa, :is_staging)) do
conn
|> put_resp_content_type("... | 27.644444 | 126 | 0.543408 |
da6c79022d330d62befd473d28338d2e223b3419 | 2,352 | ex | Elixir | clients/on_demand_scanning/lib/google_api/on_demand_scanning/v1/model/status.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/on_demand_scanning/lib/google_api/on_demand_scanning/v1/model/status.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/on_demand_scanning/lib/google_api/on_demand_scanning/v1/model/status.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... | 44.377358 | 427 | 0.722364 |
da6c7a7d159f22abd40abbf0dad0ce149b1dcfbf | 1,705 | ex | Elixir | lib/central_web/controllers/logging/error_log_controller.ex | icexuick/teiserver | 22f2e255e7e21f977e6b262acf439803626a506c | [
"MIT"
] | 6 | 2021-02-08T10:42:53.000Z | 2021-04-25T12:12:03.000Z | lib/central_web/controllers/logging/error_log_controller.ex | icexuick/teiserver | 22f2e255e7e21f977e6b262acf439803626a506c | [
"MIT"
] | 14 | 2021-08-01T02:36:14.000Z | 2022-01-30T21:15:03.000Z | lib/central_web/controllers/logging/error_log_controller.ex | icexuick/teiserver | 22f2e255e7e21f977e6b262acf439803626a506c | [
"MIT"
] | 7 | 2021-05-13T12:55:28.000Z | 2022-01-14T06:39:06.000Z | defmodule CentralWeb.Logging.ErrorLogController do
use CentralWeb, :controller
alias Central.Logging
plug Bodyguard.Plug.Authorize,
policy: Central.Logging.ErrorLog,
action: {Phoenix.Controller, :action_name},
user: {Central.Account.AuthLib, :current_user}
plug :add_breadcrumb, name: 'Logging', u... | 27.063492 | 66 | 0.653372 |
da6c91ad0a05008dc00c43cb6a31c61bbbf622d2 | 367 | ex | Elixir | lib/sanbase_web/graphql/schema/types/github_types.ex | sitedata/sanbase2 | 8da5e44a343288fbc41b68668c6c80ae8547d557 | [
"MIT"
] | 81 | 2017-11-20T01:20:22.000Z | 2022-03-05T12:04:25.000Z | lib/sanbase_web/graphql/schema/types/github_types.ex | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | 359 | 2017-10-15T14:40:53.000Z | 2022-01-25T13:34:20.000Z | lib/sanbase_web/graphql/schema/types/github_types.ex | sitedata/sanbase2 | 8da5e44a343288fbc41b68668c6c80ae8547d557 | [
"MIT"
] | 16 | 2017-11-19T13:57:40.000Z | 2022-02-07T08:13:02.000Z | defmodule SanbaseWeb.Graphql.GithubTypes do
use Absinthe.Schema.Notation
input_object :github_organizations_selector do
field(:slug, :string)
field(:market_segments, list_of(:string))
field(:organizations, list_of(:string))
end
object :activity_point do
field(:datetime, non_null(:datetime))
... | 24.466667 | 48 | 0.741144 |
da6ca30d61f6e4992e408f558cc0f4ba90beee0a | 131 | ex | Elixir | lib/repoex/get_repos_behaviour.ex | RomuloHe4rt/Repoex | 6ccf09e1f0be63d3021533c3c9bd7b8e5fd73925 | [
"MIT"
] | null | null | null | lib/repoex/get_repos_behaviour.ex | RomuloHe4rt/Repoex | 6ccf09e1f0be63d3021533c3c9bd7b8e5fd73925 | [
"MIT"
] | null | null | null | lib/repoex/get_repos_behaviour.ex | RomuloHe4rt/Repoex | 6ccf09e1f0be63d3021533c3c9bd7b8e5fd73925 | [
"MIT"
] | null | null | null | defmodule Repoex.GetReposBehaviour do
alias Repoex.Error
@callback call(String.t()) :: {:ok, map()} | {:error, Error.t()}
end
| 21.833333 | 66 | 0.671756 |
da6cb8190934208279c56e6d2c3d95a7c0f115bf | 5,213 | exs | Elixir | test/credo/check/readability/large_numbers_test.exs | hrzndhrn/credo | 71a7b24a5ca8e7a48416e0cdfb42cf8a0fef9593 | [
"MIT"
] | 4,590 | 2015-09-28T06:01:43.000Z | 2022-03-29T08:48:57.000Z | test/credo/check/readability/large_numbers_test.exs | hrzndhrn/credo | 71a7b24a5ca8e7a48416e0cdfb42cf8a0fef9593 | [
"MIT"
] | 890 | 2015-11-16T21:07:07.000Z | 2022-03-29T08:52:07.000Z | test/credo/check/readability/large_numbers_test.exs | hrzndhrn/credo | 71a7b24a5ca8e7a48416e0cdfb42cf8a0fef9593 | [
"MIT"
] | 479 | 2015-11-17T19:42:40.000Z | 2022-03-29T00:09:21.000Z | defmodule Credo.Check.Readability.LargeNumbersTest do
use Credo.Test.Case
@described_check Credo.Check.Readability.LargeNumbers
#
# cases NOT raising issues
#
test "it should NOT report expected code" do
"""
@budgets %{
budget1: 100_000,
budget2: 200_000,
budget3: 300_000,
... | 20.686508 | 79 | 0.599655 |
da6cb8f1215ce965dcb5f526457fb0ad562270de | 4,036 | exs | Elixir | test/budget_app_web/controllers/v1/income_controller_test.exs | djordje/budget_app.backend | 3febe64892e700f3174b8eddbc4b96260c444308 | [
"MIT"
] | null | null | null | test/budget_app_web/controllers/v1/income_controller_test.exs | djordje/budget_app.backend | 3febe64892e700f3174b8eddbc4b96260c444308 | [
"MIT"
] | null | null | null | test/budget_app_web/controllers/v1/income_controller_test.exs | djordje/budget_app.backend | 3febe64892e700f3174b8eddbc4b96260c444308 | [
"MIT"
] | null | null | null | defmodule BudgetAppWeb.V1.IncomeControllerTest do
use BudgetAppWeb.APIControllerCase
describe "index" do
test "returns paginated collection of incomes", %{conn: conn} do
incomes = insert_list(5, :income)
income = Enum.at(incomes, 4)
res = get conn, v1_income_path(conn, :index), page_n... | 31.779528 | 113 | 0.550793 |
da6cc992748217152ed58166433fe1e3cf956136 | 1,813 | ex | Elixir | Server/Log_In/model.ex | da99/megauni.alpha | 65e402cc139e45f043e67a9384caf77d1fcbe5b7 | [
"MIT"
] | null | null | null | Server/Log_In/model.ex | da99/megauni.alpha | 65e402cc139e45f043e67a9384caf77d1fcbe5b7 | [
"MIT"
] | null | null | null | Server/Log_In/model.ex | da99/megauni.alpha | 65e402cc139e45f043e67a9384caf77d1fcbe5b7 | [
"MIT"
] | null | null | null |
defmodule Log_In do
def reset_all do
{:ok, _} = Megauni.SQL.query("DELETE FROM log_in;", []);
end # === def reset_all
def aged str do
if !In.dev do
raise "Only to be used in dev"
end
Megauni.SQL.query(
"""
UPDATE log_in
SET at = at + '#{str}'::interval
""",
... | 24.5 | 74 | 0.523442 |
da6cf94c2c3bb1e456845fe99ac5ee34b6aff0cc | 1,932 | exs | Elixir | test/ex338/roster_positions/ir_position_test.exs | axelclark/ex338 | 3fb3c260d93bda61f7636ee1a677770d2dc1b89a | [
"MIT"
] | 17 | 2016-12-22T06:39:26.000Z | 2021-01-20T13:51:13.000Z | test/ex338/roster_positions/ir_position_test.exs | axelclark/ex338 | 3fb3c260d93bda61f7636ee1a677770d2dc1b89a | [
"MIT"
] | 608 | 2016-08-06T18:57:58.000Z | 2022-03-01T02:48:17.000Z | test/ex338/roster_positions/ir_position_test.exs | axelclark/ex338 | 3fb3c260d93bda61f7636ee1a677770d2dc1b89a | [
"MIT"
] | 6 | 2017-11-21T22:35:45.000Z | 2022-01-11T21:37:40.000Z | defmodule Ex338.RosterPositions.IRPositionTest do
use Ex338.DataCase, async: true
alias Ex338.RosterPositions.IRPosition
describe "separate_from_active_for_teams/1" do
test "puts all ir position under ir_positions key and renames position" do
teams = [
%{
roster_positions: [
... | 29.723077 | 78 | 0.615942 |
da6d0483123262c2bfab7c1a6545e5ce1a622d05 | 722 | ex | Elixir | Microsoft.Azure.Management.Preview.Advisor/lib/microsoft/azure/management/preview/advisor/model/resource.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.Preview.Advisor/lib/microsoft/azure/management/preview/advisor/model/resource.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | null | null | null | Microsoft.Azure.Management.Preview.Advisor/lib/microsoft/azure/management/preview/advisor/model/resource.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.Preview.Advisor.Model.Resource do
@moduledoc """
An Azure resource.
"""
@derive [Poison.Encoder]
defstruct [... | 21.235294 | 89 | 0.641274 |
da6d0b42cddf119bf8b9daf4adbde8dae17a46ba | 1,137 | exs | Elixir | config/dev.exs | leifg/time_tracking | 115c53482398f5aa6a2dbb246bee14c9f075b767 | [
"MIT"
] | 6 | 2018-01-09T08:57:20.000Z | 2018-06-20T08:59:42.000Z | config/dev.exs | leifg/time_tracking | 115c53482398f5aa6a2dbb246bee14c9f075b767 | [
"MIT"
] | 80 | 2016-05-04T20:31:37.000Z | 2021-07-12T05:12:29.000Z | config/dev.exs | leifg/time_tracking | 115c53482398f5aa6a2dbb246bee14c9f075b767 | [
"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 :time_tracking, TimeTrackingWeb.Endpoint,
http... | 30.72973 | 64 | 0.734389 |
da6d25f7e886c180d7259cee9e0955753941248a | 2,621 | ex | Elixir | clients/cloud_error_reporting/lib/google_api/cloud_error_reporting/v1beta1/model/http_request_context.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | null | null | null | clients/cloud_error_reporting/lib/google_api/cloud_error_reporting/v1beta1/model/http_request_context.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | null | null | null | clients/cloud_error_reporting/lib/google_api/cloud_error_reporting/v1beta1/model/http_request_context.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 41.603175 | 234 | 0.728348 |
da6d3a416a9eec1aa2a3860fe28d0c457a491b1e | 2,657 | ex | Elixir | elixir/lib/homework/users.ex | jwoods1/web-homework | 74c4c9470a5c56c434cb5452bc2d17a125f593c1 | [
"MIT"
] | null | null | null | elixir/lib/homework/users.ex | jwoods1/web-homework | 74c4c9470a5c56c434cb5452bc2d17a125f593c1 | [
"MIT"
] | null | null | null | elixir/lib/homework/users.ex | jwoods1/web-homework | 74c4c9470a5c56c434cb5452bc2d17a125f593c1 | [
"MIT"
] | null | null | null | defmodule Homework.Users do
@moduledoc """
The Users context.
"""
import Ecto.Query, warn: false
alias Homework.Repo
alias Homework.Users.User
alias Homework.Transactions.Transaction
@doc """
Returns the list of users.
## Examples
iex> list_users([])
[%User{}, ...]
"""
def lis... | 18.58042 | 98 | 0.579601 |
da6db687e55ae3f97bca29512581ef0ad25f342b | 1,119 | ex | Elixir | lib/csp_report_collector/application.ex | eoinkelly/csp_report_collector | 12e965cb5c23add1f2dbe6745c605a9cf0b42d75 | [
"Apache-2.0"
] | 2 | 2018-12-03T17:17:52.000Z | 2022-02-01T13:26:20.000Z | lib/csp_report_collector/application.ex | eoinkelly/csp_report_collector | 12e965cb5c23add1f2dbe6745c605a9cf0b42d75 | [
"Apache-2.0"
] | null | null | null | lib/csp_report_collector/application.ex | eoinkelly/csp_report_collector | 12e965cb5c23add1f2dbe6745c605a9cf0b42d75 | [
"Apache-2.0"
] | null | null | null | defmodule CspReportCollector.Application do
@moduledoc false
use Application
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
def start(_type, _args) do
import Supervisor.Spec
# Define workers and child supervisors to be supervised
children = [
#... | 32.911765 | 96 | 0.733691 |
da6ddb0659bb8b32a53981f49013d20ac74cee89 | 1,505 | ex | Elixir | clients/ad_sense/lib/google_api/ad_sense/v14/model/ad_style_font.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/ad_sense/lib/google_api/ad_sense/v14/model/ad_style_font.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/ad_sense/lib/google_api/ad_sense/v14/model/ad_style_font.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.1 | 79 | 0.708306 |
da6e15e9b2d78d48522532fce8ff77ed90cb7546 | 28,390 | exs | Elixir | lib/logger/test/logger/translator_test.exs | princemaple/elixir | d894dcca3380b2a37a72e940103ae8eeb42e540e | [
"Apache-2.0"
] | null | null | null | lib/logger/test/logger/translator_test.exs | princemaple/elixir | d894dcca3380b2a37a72e940103ae8eeb42e540e | [
"Apache-2.0"
] | null | null | null | lib/logger/test/logger/translator_test.exs | princemaple/elixir | d894dcca3380b2a37a72e940103ae8eeb42e540e | [
"Apache-2.0"
] | null | null | null | defmodule Logger.TranslatorTest do
use Logger.Case
defmodule MyGenServer do
use GenServer
def init(args) do
{:ok, args}
end
def handle_cast(:error, _) do
raise "oops"
end
def handle_call(:error, _, _) do
raise "oops"
end
def handle_call(:error_on_down, {pid, _}... | 34.749082 | 146 | 0.524903 |
da6e26c922a66629744bd8a013082b2ebc6eff5e | 2,842 | ex | Elixir | clients/pub_sub/lib/google_api/pub_sub/v1/model/pubsub_message.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/pub_sub/lib/google_api/pub_sub/v1/model/pubsub_message.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/pub_sub/lib/google_api/pub_sub/v1/model/pubsub_message.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 ... | 41.188406 | 136 | 0.716045 |
da6e36473c3f054175365907372581b53d498c44 | 6,143 | ex | Elixir | clients/composer/lib/google_api/composer/v1/model/node_config.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/composer/lib/google_api/composer/v1/model/node_config.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/composer/lib/google_api/composer/v1/model/node_config.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 86.521127 | 1,055 | 0.747029 |
da6e38d85bb848a3428faa9fa93d247a1d3e2cbc | 1,708 | ex | Elixir | clients/sql_admin/lib/google_api/sql_admin/v1/model/operation_error.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/sql_admin/lib/google_api/sql_admin/v1/model/operation_error.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/sql_admin/lib/google_api/sql_admin/v1/model/operation_error.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 32.226415 | 108 | 0.705504 |
da6e57d1100b0ffc96815cc425e30125d84dfa23 | 17,074 | ex | Elixir | lib/oban.ex | khedaywi/oban | 0b79c53a3c41648f438e112dda435ad79c86f811 | [
"Apache-2.0"
] | null | null | null | lib/oban.ex | khedaywi/oban | 0b79c53a3c41648f438e112dda435ad79c86f811 | [
"Apache-2.0"
] | null | null | null | lib/oban.ex | khedaywi/oban | 0b79c53a3c41648f438e112dda435ad79c86f811 | [
"Apache-2.0"
] | null | null | null | defmodule Oban do
@moduledoc """
Oban isn't an application and won't be started automatically. It is started by a supervisor that
must be included in your application's supervision tree. All of your configuration is passed
into the `Oban` supervisor, allowing you to configure Oban like the rest of your applicat... | 36.173729 | 99 | 0.710144 |
da6e766c81e576e8097a4d11dff445655e83e6ec | 101 | ex | Elixir | lib/elixir_phoenix_liveview_n_queen_web/views/page_view.ex | aronkst/elixir_phoenix_liveview_n_queen | e23d0c4dad0d16fecdd41b709a4d9830edf8bdee | [
"MIT"
] | 1 | 2020-05-09T02:03:24.000Z | 2020-05-09T02:03:24.000Z | lib/elixir_phoenix_liveview_n_queen_web/views/page_view.ex | aronkst/elixir_phoenix_liveview_n_queen | e23d0c4dad0d16fecdd41b709a4d9830edf8bdee | [
"MIT"
] | null | null | null | lib/elixir_phoenix_liveview_n_queen_web/views/page_view.ex | aronkst/elixir_phoenix_liveview_n_queen | e23d0c4dad0d16fecdd41b709a4d9830edf8bdee | [
"MIT"
] | null | null | null | defmodule ElixirPhoenixLiveviewNQueenWeb.PageView do
use ElixirPhoenixLiveviewNQueenWeb, :view
end
| 25.25 | 52 | 0.881188 |
da6e7e6ab14fb8df4bf6e0bfab60959693d5274e | 12,850 | exs | Elixir | test/sanbase/alerts/history/trigger_metric_signal_history_test.exs | santiment/sanbase2 | 9ef6e2dd1e377744a6d2bba570ea6bd477a1db31 | [
"MIT"
] | 81 | 2017-11-20T01:20:22.000Z | 2022-03-05T12:04:25.000Z | test/sanbase/alerts/history/trigger_metric_signal_history_test.exs | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | 359 | 2017-10-15T14:40:53.000Z | 2022-01-25T13:34:20.000Z | test/sanbase/alerts/history/trigger_metric_signal_history_test.exs | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | 16 | 2017-11-19T13:57:40.000Z | 2022-02-07T08:13:02.000Z | defmodule Sanbase.Alert.TriggerMetricHistoryTest do
use Sanbase.DataCase, async: false
import Sanbase.Factory
import Sanbase.TestHelpers
alias Sanbase.Alert.UserTrigger
setup_all_with_mocks([
{Sanbase.Metric, [:passthrough], [timeseries_data: fn _, _, _, _, _ -> {:ok, resp()} end]}
]) do
[]
end... | 31.038647 | 94 | 0.56249 |
da6eaa247b2dede9647b7998ff7342b5f0e76a69 | 838 | exs | Elixir | mix.exs | cedretaber/cowguest | dd41ca95f19820de3707e4b1afa04f901a9e9670 | [
"MIT"
] | null | null | null | mix.exs | cedretaber/cowguest | dd41ca95f19820de3707e4b1afa04f901a9e9670 | [
"MIT"
] | null | null | null | mix.exs | cedretaber/cowguest | dd41ca95f19820de3707e4b1afa04f901a9e9670 | [
"MIT"
] | null | null | null | defmodule Cowguest.MixProject do
use Mix.Project
def project do
[
app: :cowguest,
version: "0.1.0",
elixir: "~> 1.6",
start_permanent: Mix.env() == :prod,
deps: deps(),
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [coveralls: :test, "coveralls.json": :test]
... | 23.277778 | 68 | 0.544153 |
da6ee605f43ab61c54f769ceede8718ab8fd3f4b | 1,405 | ex | Elixir | clients/genomics/lib/google_api/genomics/v1/model/import_read_group_sets_response.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/genomics/lib/google_api/genomics/v1/model/import_read_group_sets_response.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/genomics/lib/google_api/genomics/v1/model/import_read_group_sets_response.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... | 30.543478 | 102 | 0.760142 |
da6f1f3514acfed6a63adc6c9be3bc0da0763a13 | 966 | ex | Elixir | lib/teiserver/libs/pubsub_listener.ex | icexuick/teiserver | 22f2e255e7e21f977e6b262acf439803626a506c | [
"MIT"
] | 6 | 2021-02-08T10:42:53.000Z | 2021-04-25T12:12:03.000Z | lib/teiserver/libs/pubsub_listener.ex | icexuick/teiserver | 22f2e255e7e21f977e6b262acf439803626a506c | [
"MIT"
] | 14 | 2021-08-01T02:36:14.000Z | 2022-01-30T21:15:03.000Z | lib/teiserver/libs/pubsub_listener.ex | icexuick/teiserver | 22f2e255e7e21f977e6b262acf439803626a506c | [
"MIT"
] | 7 | 2021-05-13T12:55:28.000Z | 2022-01-14T06:39:06.000Z | defmodule Teiserver.Common.PubsubListener do
@moduledoc """
A genserver whose sole purpose is to listen to one pubusbs and record what they hear
"""
use GenServer
alias Phoenix.PubSub
def new_listener(rooms) do
{:ok, pid} = start_link(rooms)
pid
end
def get(pid) do
GenServer.call(pid, :ge... | 20.125 | 95 | 0.675983 |
da6f698d25fe126609cdd3bfffaed1d8a66bdf30 | 26,034 | ex | Elixir | lib/mix/lib/mix/compilers/elixir.ex | nolman/elixir | 88694f02fbb9c9cdb9a893ec88d0cb4b80fb938d | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/compilers/elixir.ex | nolman/elixir | 88694f02fbb9c9cdb9a893ec88d0cb4b80fb938d | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/compilers/elixir.ex | nolman/elixir | 88694f02fbb9c9cdb9a893ec88d0cb4b80fb938d | [
"Apache-2.0"
] | null | null | null | defmodule Mix.Compilers.Elixir do
@moduledoc false
@manifest_vsn 9
import Record
defrecord :module, [:module, :kind, :sources, :export, :recompile?]
defrecord :source,
source: nil,
size: 0,
digest: nil,
compile_references: [],
export_references: [],
runtime_references: [],
comp... | 33.986945 | 106 | 0.652301 |
da6f740c0b7c55556f6027be1f55a5ab50b47063 | 1,199 | ex | Elixir | kousa/lib/broth/message/user/block.ex | transli/dogehouse | ae916f4d7b240abed162f2be6341bbc06d1fdad7 | [
"MIT"
] | null | null | null | kousa/lib/broth/message/user/block.ex | transli/dogehouse | ae916f4d7b240abed162f2be6341bbc06d1fdad7 | [
"MIT"
] | null | null | null | kousa/lib/broth/message/user/block.ex | transli/dogehouse | ae916f4d7b240abed162f2be6341bbc06d1fdad7 | [
"MIT"
] | null | null | null | defmodule Broth.Message.User.Block do
use Broth.Message.Call
@primary_key false
embedded_schema do
field(:userId, :binary_id)
end
def changeset(initializer \\ %__MODULE__{}, data) do
initializer
|> cast(data, [:userId])
|> validate_required([:userId])
end
defmodule Reply do
# TODO: ... | 26.065217 | 93 | 0.63553 |
da6f8c779218b9ccf365ccaf44b7709df2a714b4 | 12,504 | exs | Elixir | test/controllers/html/user_controller_test.exs | lumenlunae/sentinel | 189d9b02aeeea942a41963b42ef8523ef192fd03 | [
"MIT"
] | null | null | null | test/controllers/html/user_controller_test.exs | lumenlunae/sentinel | 189d9b02aeeea942a41963b42ef8523ef192fd03 | [
"MIT"
] | null | null | null | test/controllers/html/user_controller_test.exs | lumenlunae/sentinel | 189d9b02aeeea942a41963b42ef8523ef192fd03 | [
"MIT"
] | null | null | null | defmodule Html.UserControllerTest do
use Sentinel.ConnCase
alias Mix.Config
alias Sentinel.Changeset.AccountUpdater
alias Sentinel.Changeset.Confirmator
alias Sentinel.Changeset.PasswordResetter
alias Sentinel.Changeset.Registrator
alias Guardian.DB.Token
@password "secret"
setup do
on_exit(fn ... | 34.070845 | 159 | 0.671305 |
da6fb733a9cb09252f87ae0f72e100ea55f919c0 | 12,062 | ex | Elixir | lib/paper_trail.ex | itskoko/paper_trail | 14ee50e5cd44244adcf784152f7d1090f465d065 | [
"MIT"
] | null | null | null | lib/paper_trail.ex | itskoko/paper_trail | 14ee50e5cd44244adcf784152f7d1090f465d065 | [
"MIT"
] | null | null | null | lib/paper_trail.ex | itskoko/paper_trail | 14ee50e5cd44244adcf784152f7d1090f465d065 | [
"MIT"
] | 3 | 2021-04-07T14:54:04.000Z | 2021-04-07T14:54:16.000Z | defmodule PaperTrail do
import Ecto.Changeset
alias Ecto.Multi
alias PaperTrail.Version
alias PaperTrail.RepoClient
defdelegate get_version(record), to: PaperTrail.VersionQueries
defdelegate get_version(model_or_record, id_or_options), to: PaperTrail.VersionQueries
defdelegate get_version(model, id, opt... | 33.22865 | 99 | 0.60902 |
da6fc16f4bffacbfd7458ce96ddc7d875e22e640 | 9,269 | exs | Elixir | test/ex_doc/retriever_test.exs | DisruptiveAngels/ex_doc | d67b5293e6cd10bf440e26cbb913a0fb68a61786 | [
"Apache-2.0",
"CC-BY-4.0"
] | null | null | null | test/ex_doc/retriever_test.exs | DisruptiveAngels/ex_doc | d67b5293e6cd10bf440e26cbb913a0fb68a61786 | [
"Apache-2.0",
"CC-BY-4.0"
] | 1 | 2022-03-02T13:10:59.000Z | 2022-03-02T13:10:59.000Z | test/ex_doc/retriever_test.exs | DisruptiveAngels/ex_doc | d67b5293e6cd10bf440e26cbb913a0fb68a61786 | [
"Apache-2.0",
"CC-BY-4.0"
] | null | null | null | defmodule ExDoc.RetrieverTest do
use ExUnit.Case, async: true
alias ExDoc.Retriever
defp docs_from_files(names, config \\ []) do
files = Enum.map(names, fn n -> "test/tmp/Elixir.#{n}.beam" end)
default = %ExDoc.Config{
source_url_pattern: "http://example.com/%{path}#L%{line}",
source_root: ... | 33.828467 | 98 | 0.640954 |
da6fd13efe30360a70001cb7bef647e77be44ba6 | 2,237 | ex | Elixir | clients/slides/lib/google_api/slides/v1/model/weighted_font_family.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/slides/lib/google_api/slides/v1/model/weighted_font_family.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/slides/lib/google_api/slides/v1/model/weighted_font_family.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... | 36.672131 | 129 | 0.711667 |
da700886f5586c1d2d028b938e38356badaeade5 | 340 | exs | Elixir | priv/repo/seeds.exs | ajrob27/elixir-practice-rumbl | 55573bea782a0d4f56fbaf2995bee985fa0fe3be | [
"MIT"
] | 1 | 2016-09-19T01:31:35.000Z | 2016-09-19T01:31:35.000Z | priv/repo/seeds.exs | ajrob27/elixir-practice-rumbl | 55573bea782a0d4f56fbaf2995bee985fa0fe3be | [
"MIT"
] | null | null | null | priv/repo/seeds.exs | ajrob27/elixir-practice-rumbl | 55573bea782a0d4f56fbaf2995bee985fa0fe3be | [
"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:
#
# Rumbl.Repo.insert!(%SomeModel{})
#
# We recommend using the bang functions (`insert!`, `update!`
# and so on) as they will fail if so... | 28.333333 | 61 | 0.7 |
da703516bd03e083d176a0566271a41c0e26afc8 | 1,741 | exs | Elixir | mix.exs | danielzfranklin/coord | bf2fd85302128698367f4781d78baac9e534f071 | [
"Apache-2.0",
"MIT"
] | null | null | null | mix.exs | danielzfranklin/coord | bf2fd85302128698367f4781d78baac9e534f071 | [
"Apache-2.0",
"MIT"
] | null | null | null | mix.exs | danielzfranklin/coord | bf2fd85302128698367f4781d78baac9e534f071 | [
"Apache-2.0",
"MIT"
] | null | null | null | defmodule Coord.MixProject do
use Mix.Project
@github "https://github.com/danielzfranklin/coord"
def project do
[
app: :coord,
version: "0.1.0",
elixir: "~> 1.10",
start_permanent: Mix.env() == :prod,
deps: deps(),
preferred_cli_env: [
propcheck: :test,
"p... | 24.521127 | 86 | 0.593337 |
da7049f6fa4d4489a4752db531943f8c8db5d6aa | 59 | exs | Elixir | test/woke_test.exs | lorenzosinisi/woke | 91823d8a5dacd450287887adf3e5a9072388833a | [
"Apache-2.0"
] | null | null | null | test/woke_test.exs | lorenzosinisi/woke | 91823d8a5dacd450287887adf3e5a9072388833a | [
"Apache-2.0"
] | null | null | null | test/woke_test.exs | lorenzosinisi/woke | 91823d8a5dacd450287887adf3e5a9072388833a | [
"Apache-2.0"
] | null | null | null | defmodule WokeTest do
use ExUnit.Case
doctest Woke
end
| 11.8 | 21 | 0.779661 |
da70686aa3d0da01c89cec1e3c373264597998e6 | 876 | ex | Elixir | scripts/debian/prerm.ex | orzuk-lmj/xmake | 2aec1cfaa90e1f885410ff3c2eed4f70186c2eb2 | [
"Apache-2.0"
] | 3,721 | 2019-02-14T09:12:03.000Z | 2022-03-31T22:58:53.000Z | scripts/debian/prerm.ex | orzuk-lmj/xmake | 2aec1cfaa90e1f885410ff3c2eed4f70186c2eb2 | [
"Apache-2.0"
] | 1,536 | 2019-02-08T14:22:32.000Z | 2022-03-31T17:00:35.000Z | scripts/debian/prerm.ex | orzuk-lmj/xmake | 2aec1cfaa90e1f885410ff3c2eed4f70186c2eb2 | [
"Apache-2.0"
] | 361 | 2019-02-08T12:20:22.000Z | 2022-03-31T15:07:59.000Z | #!/bin/sh
# prerm script for xmake
#
# see: dh_installdeb(1)
set -e
# summary of how this script can be called:
# * <prerm> `remove'
# * <old-prerm> `upgrade' <new-version>
# * <new-prerm> `failed-upgrade' <old-version>
# * <conflictor's-prerm> `remove' `in-favour' <package> <new-version>
... | 22.461538 | 76 | 0.625571 |
da707aa51418c3d45371ebc3d61d96ada9c4061a | 24,681 | ex | Elixir | lib/ex_unit/lib/ex_unit/assertions.ex | Sae497/elixir | 666a0bca8daac6a9dffb80db837c883805a6a22e | [
"Apache-2.0"
] | null | null | null | lib/ex_unit/lib/ex_unit/assertions.ex | Sae497/elixir | 666a0bca8daac6a9dffb80db837c883805a6a22e | [
"Apache-2.0"
] | null | null | null | lib/ex_unit/lib/ex_unit/assertions.ex | Sae497/elixir | 666a0bca8daac6a9dffb80db837c883805a6a22e | [
"Apache-2.0"
] | null | null | null | defmodule ExUnit.AssertionError do
@moduledoc """
Raised to signal an assertion error.
"""
@no_value :ex_unit_no_meaningful_value
defexception left: @no_value,
right: @no_value,
message: @no_value,
expr: @no_value,
args: @no_value
@doc """
Ind... | 25.92542 | 98 | 0.622746 |
da70a31acdc97971a51b36aaed6304134e6187e2 | 3,210 | exs | Elixir | test/game/color_test.exs | jgsmith/ex_venture | 546adaa8fe80d45a72fde6de8d8d6906902c12d4 | [
"MIT"
] | 2 | 2019-05-14T11:36:44.000Z | 2020-07-01T08:54:04.000Z | test/game/color_test.exs | nickwalton/ex_venture | d8ff1b0181db03f9ddcb7610ae7ab533feecbfbb | [
"MIT"
] | null | null | null | test/game/color_test.exs | nickwalton/ex_venture | d8ff1b0181db03f9ddcb7610ae7ab533feecbfbb | [
"MIT"
] | 1 | 2021-01-29T14:12:40.000Z | 2021-01-29T14:12:40.000Z | defmodule Game.ColorTest do
use ExUnit.Case
doctest Game.Color
alias Game.Color
alias Game.ColorCodes
import Game.Color, only: [format: 1, format: 2]
test "replaces multiple colors" do
assert format("{black}word{/black} {blue}word{/blue}") == "\e[30mword\e[0m \e[34mword\e[0m"
end
test "replaces ... | 28.660714 | 109 | 0.628349 |
da70c9c242cd135e3d291503f761ea7b5d3968aa | 2,065 | ex | Elixir | lib/nerves_grove/i2c_adc.ex | harmon25/nerves_grove | 963b59bb448ad5e2aaefcc853ff4c581e150fa37 | [
"Unlicense"
] | 18 | 2016-08-14T19:17:42.000Z | 2018-06-09T08:11:22.000Z | lib/nerves_grove/i2c_adc.ex | harmon25/nerves_grove | 963b59bb448ad5e2aaefcc853ff4c581e150fa37 | [
"Unlicense"
] | 3 | 2016-10-09T13:57:07.000Z | 2017-04-15T09:19:48.000Z | lib/nerves_grove/i2c_adc.ex | harmon25/nerves_grove | 963b59bb448ad5e2aaefcc853ff4c581e150fa37 | [
"Unlicense"
] | 4 | 2016-09-11T12:37:30.000Z | 2018-08-30T19:47:24.000Z | # This is free and unencumbered software released into the public domain.
defmodule Nerves.Grove.I2C.ADC do
@moduledoc """
Seeed Studio [Grove I2C ADC](http://wiki.seeedstudio.com/wiki/Grove_-_I2C_ADC)
## Datasheet
http://www.ti.com/lit/ds/snas415f/snas415f.pdf
# Example
alias Nerves.Grove.I2C
... | 27.905405 | 81 | 0.658596 |
da70f12234745348e2d7dfb17602ada9011cddb1 | 830 | ex | Elixir | lib/this_weekend_web/router.ex | drews256/this_weekend | 6b20f6b591d2f43044c16a6e4fab6ad5822620c7 | [
"Apache-2.0"
] | null | null | null | lib/this_weekend_web/router.ex | drews256/this_weekend | 6b20f6b591d2f43044c16a6e4fab6ad5822620c7 | [
"Apache-2.0"
] | 2 | 2021-03-10T17:57:38.000Z | 2022-03-26T16:51:58.000Z | lib/this_weekend_web/router.ex | drews256/this_weekend | 6b20f6b591d2f43044c16a6e4fab6ad5822620c7 | [
"Apache-2.0"
] | null | null | null | defmodule ThisWeekendWeb.Router do
use ThisWeekendWeb, :router
import Phoenix.LiveView.Router
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_flash
plug :protect_from_forgery
plug :put_secure_browser_headers
end
scope "/", ThisWeekendWeb do
pipe_through :... | 29.642857 | 79 | 0.715663 |
da7105f6496b3682082dba77f231df7436ff1ef5 | 1,524 | ex | Elixir | clients/game_services/lib/google_api/game_services/v1/model/authorization_logging_options.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/game_services/lib/google_api/game_services/v1/model/authorization_logging_options.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/game_services/lib/google_api/game_services/v1/model/authorization_logging_options.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... | 32.425532 | 108 | 0.751969 |
da712b0fbbe3e77f1076c5eaa0af4f8a468f7cfc | 3,654 | exs | Elixir | test/exqlite/queries_test.exs | Eiji7/exqlite | 025bba63a2ebf2011d7bdf2c7a300f5782d917ae | [
"MIT"
] | null | null | null | test/exqlite/queries_test.exs | Eiji7/exqlite | 025bba63a2ebf2011d7bdf2c7a300f5782d917ae | [
"MIT"
] | null | null | null | test/exqlite/queries_test.exs | Eiji7/exqlite | 025bba63a2ebf2011d7bdf2c7a300f5782d917ae | [
"MIT"
] | null | null | null | defmodule Exqlite.QueriesTest do
use ExUnit.Case
alias Exqlite.Queries
alias Exqlite.Query
describe ".put/2" do
test "does not store an unnamed query" do
cache = Queries.new(:foo)
query = %Query{name: nil}
assert :error == Queries.put(cache, query)
assert 0 == Queries.size(cache)
... | 25.552448 | 67 | 0.608648 |
da713d7faadcb1d899d3843cab1209b0c73bbed7 | 214 | exs | Elixir | priv/repo/migrations/20170710183933_create_venues_room.exs | community-tools/community-tools | 40b0e6cc9234b44593d2ab60bb2303d7224deb30 | [
"Apache-2.0"
] | 2 | 2017-10-06T01:14:35.000Z | 2017-11-18T16:44:44.000Z | priv/repo/migrations/20170710183933_create_venues_room.exs | community-tools/community-tools | 40b0e6cc9234b44593d2ab60bb2303d7224deb30 | [
"Apache-2.0"
] | 6 | 2017-10-06T00:04:59.000Z | 2017-10-06T00:09:27.000Z | priv/repo/migrations/20170710183933_create_venues_room.exs | apps-team/community-tools | 40b0e6cc9234b44593d2ab60bb2303d7224deb30 | [
"Apache-2.0"
] | 1 | 2017-10-06T01:17:35.000Z | 2017-10-06T01:17:35.000Z | defmodule CommunityTools.Repo.Migrations.CreateCommunityTools.Venues.Room do
use Ecto.Migration
def change do
create table(:venues_rooms) do
add :name, :string
timestamps()
end
end
end
| 16.461538 | 76 | 0.714953 |
da713e5ee129fecc3806bd9a1affd8336cac11be | 3,674 | ex | Elixir | clients/you_tube/lib/google_api/you_tube/v3/model/channel_settings.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | null | null | null | clients/you_tube/lib/google_api/you_tube/v3/model/channel_settings.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | null | null | null | clients/you_tube/lib/google_api/you_tube/v3/model/channel_settings.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 42.229885 | 176 | 0.71203 |
da715825757b17be36c9510ff87d7c6de566cc61 | 202 | ex | Elixir | lib/mix/tasks/run_espec.ex | ne1ro/tracker_bot | 2dc96c0a8366dbd51e4e5e7b2a54383483c8c774 | [
"MIT"
] | 2 | 2019-10-06T18:08:28.000Z | 2020-05-05T11:58:32.000Z | lib/mix/tasks/run_espec.ex | ne1ro/tracker_bot | 2dc96c0a8366dbd51e4e5e7b2a54383483c8c774 | [
"MIT"
] | 66 | 2017-09-16T08:44:33.000Z | 2021-08-01T07:15:50.000Z | lib/mix/tasks/run_espec.ex | ne1ro/tracker_bot | 2dc96c0a8366dbd51e4e5e7b2a54383483c8c774 | [
"MIT"
] | null | null | null | defmodule Mix.Tasks.RunEspec do
use Mix.Task
alias Mix.Shell
@moduledoc false
@spec run(any()) :: any()
def run(_), do: "MIX_ENV='test' mix espec --format=doc" |> Shell.cmd(&IO.write/1)
end
| 20.2 | 83 | 0.658416 |
da71625aef9d8e0f3cc6823f8fd8eda0522e5696 | 1,164 | ex | Elixir | clients/cloud_debugger/lib/google_api/cloud_debugger/v2/model/update_active_breakpoint_response.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/cloud_debugger/lib/google_api/cloud_debugger/v2/model/update_active_breakpoint_response.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/cloud_debugger/lib/google_api/cloud_debugger/v2/model/update_active_breakpoint_response.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... | 31.459459 | 96 | 0.762887 |
da717b4d59a0f4ca05d131cd8a7be1d2a81a141b | 286 | exs | Elixir | priv/repo/migrations/20190110074712_add_tls_to_hypervisor.exs | runhyve/webapp | 434b074f98c1ebac657b56062c1c1a54e683dea1 | [
"BSD-2-Clause"
] | 12 | 2019-07-02T14:30:06.000Z | 2022-03-12T08:22:18.000Z | priv/repo/migrations/20190110074712_add_tls_to_hypervisor.exs | runhyve/webapp | 434b074f98c1ebac657b56062c1c1a54e683dea1 | [
"BSD-2-Clause"
] | 9 | 2020-03-16T20:10:50.000Z | 2021-06-17T17:45:44.000Z | priv/repo/migrations/20190110074712_add_tls_to_hypervisor.exs | runhyve/webapp | 434b074f98c1ebac657b56062c1c1a54e683dea1 | [
"BSD-2-Clause"
] | null | null | null | defmodule Webapp.Repo.Migrations.AddTlsToHypervisor do
use Ecto.Migration
def change do
alter table(:hypervisors) do
add(:fqdn, :string)
add(:tls, :boolean, default: true)
remove(:ip_address, :inet)
remove(:webhook_endpoint, :string)
end
end
end
| 20.428571 | 54 | 0.674825 |
da718e488122481ec9cab420adfc79690fcd3491 | 3,165 | ex | Elixir | lib/google_api/you_tube/v3/api/i18n_regions.ex | jesteracer/ytb | 67e3cab899e4f69e586383f7be2c3855c6beea49 | [
"Apache-2.0"
] | null | null | null | lib/google_api/you_tube/v3/api/i18n_regions.ex | jesteracer/ytb | 67e3cab899e4f69e586383f7be2c3855c6beea49 | [
"Apache-2.0"
] | null | null | null | lib/google_api/you_tube/v3/api/i18n_regions.ex | jesteracer/ytb | 67e3cab899e4f69e586383f7be2c3855c6beea49 | [
"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... | 43.356164 | 217 | 0.711532 |
da71c8052ed69714e1d28dbd82c723ba92f9aa5c | 1,015 | ex | Elixir | lib/hbasex/rest_client.ex | tongdao/hbasex | 4be1f3950cdfde30b5a2f34508e9b9ea86085c9e | [
"MIT"
] | 2 | 2017-08-26T15:11:46.000Z | 2017-12-20T02:42:57.000Z | lib/hbasex/rest_client.ex | tongdao/hbasex | 4be1f3950cdfde30b5a2f34508e9b9ea86085c9e | [
"MIT"
] | null | null | null | lib/hbasex/rest_client.ex | tongdao/hbasex | 4be1f3950cdfde30b5a2f34508e9b9ea86085c9e | [
"MIT"
] | null | null | null | defmodule Hbasex.RestClient do
@moduledoc """
Hbase rest API interface.
"""
defp get_base_url(%{host: host, rest_port: rest_port}) do
"http://" <> host <> ":" <> to_string(rest_port) <> "/"
end
defp get_schema_url(config, table_name) do
base_url = get_base_url(config)
base_url <> table_name ... | 27.432432 | 79 | 0.62266 |
da71faa26b4db095adf6cdeb8884e2f56b98505f | 2,075 | ex | Elixir | lib/absinthe/subscription/local.ex | hauptbenutzer/absinthe | f1d76e5c249ca337187971b0c96b1870f53716ed | [
"MIT"
] | null | null | null | lib/absinthe/subscription/local.ex | hauptbenutzer/absinthe | f1d76e5c249ca337187971b0c96b1870f53716ed | [
"MIT"
] | null | null | null | lib/absinthe/subscription/local.ex | hauptbenutzer/absinthe | f1d76e5c249ca337187971b0c96b1870f53716ed | [
"MIT"
] | 1 | 2018-11-16T02:34:40.000Z | 2018-11-16T02:34:40.000Z | defmodule Absinthe.Subscription.Local do
@moduledoc false
require Logger
alias Absinthe.Pipeline.BatchResolver
# This module handles running and broadcasting documents that are local to this
# node.
def publish_mutation(pubsub, mutation_result, subscribed_fields) do
docs_and_topics =
for {fiel... | 28.040541 | 91 | 0.671807 |
da7207f9d76a7d8018f25fe7dcc37105cc4eaa87 | 6,862 | exs | Elixir | test/chat_api/slack_test.exs | arjenrschat/papercups | cba421945dd484689392c120ef98ed77200564d7 | [
"MIT"
] | null | null | null | test/chat_api/slack_test.exs | arjenrschat/papercups | cba421945dd484689392c120ef98ed77200564d7 | [
"MIT"
] | null | null | null | test/chat_api/slack_test.exs | arjenrschat/papercups | cba421945dd484689392c120ef98ed77200564d7 | [
"MIT"
] | null | null | null | defmodule ChatApi.SlackTest do
use ChatApi.DataCase
import ExUnit.CaptureLog
alias ChatApi.{
Conversations,
Slack,
SlackConversationThreads,
Users
}
describe "slack" do
setup do
account = account_fixture()
customer = customer_fixture(account)
conversation = conversatio... | 30.7713 | 101 | 0.542699 |
da720b7b2ccee124c834bf7bf75888255119e944 | 355 | exs | Elixir | elixir/gigasecond/gigasecond.exs | macborowy/exercism | c5d45e074e81b946a82a340b2730e0d2732b7e0a | [
"MIT"
] | null | null | null | elixir/gigasecond/gigasecond.exs | macborowy/exercism | c5d45e074e81b946a82a340b2730e0d2732b7e0a | [
"MIT"
] | null | null | null | elixir/gigasecond/gigasecond.exs | macborowy/exercism | c5d45e074e81b946a82a340b2730e0d2732b7e0a | [
"MIT"
] | null | null | null | defmodule Gigasecond do
@doc """
Calculate a date one billion seconds after an input date.
"""
@gigasecond 1_000_000_000
@spec from(:calendar.datetime) :: :calendar.datetime
def from(datetime) do
datetime
|> :calendar.datetime_to_gregorian_seconds
|> Kernel.+(@gigasecond)
|> :calendar.grego... | 23.666667 | 59 | 0.71831 |
da72666ee808da106c05736eb86f83bbbf1198ca | 1,818 | exs | Elixir | mix.exs | axelson/reverse_proxy_plug | 1747a6f2b38b7a0d7967eaf7adfc5876e74b78a3 | [
"MIT"
] | null | null | null | mix.exs | axelson/reverse_proxy_plug | 1747a6f2b38b7a0d7967eaf7adfc5876e74b78a3 | [
"MIT"
] | null | null | null | mix.exs | axelson/reverse_proxy_plug | 1747a6f2b38b7a0d7967eaf7adfc5876e74b78a3 | [
"MIT"
] | null | null | null | defmodule ReverseProxyPlug.MixProject do
use Mix.Project
@source_url "https://github.com/tallarium/reverse_proxy_plug"
@version "1.5.0"
def project do
[
app: :reverse_proxy_plug,
version: @version,
elixir: "~> 1.7",
start_permanent: Mix.env() == :prod,
elixirc_paths: elixirc_... | 23.307692 | 81 | 0.537954 |
da72867f1efa24a51510766b2aec596b0fd40d7d | 506 | ex | Elixir | lib/cepex/service/service.ex | vinibrsl/cep.ex | f83b059f5d4c4ea343cc6395c1936ce6fbb57241 | [
"MIT"
] | 7 | 2021-05-14T02:22:18.000Z | 2021-05-17T14:09:56.000Z | lib/cepex/service/service.ex | vinibrsl/cep.ex | f83b059f5d4c4ea343cc6395c1936ce6fbb57241 | [
"MIT"
] | null | null | null | lib/cepex/service/service.ex | vinibrsl/cep.ex | f83b059f5d4c4ea343cc6395c1936ce6fbb57241 | [
"MIT"
] | null | null | null | defmodule Cepex.Service do
@moduledoc """
The `Cepex.Service` defines the behaviour for postal code lookup APIs.
"""
@doc """
Lookups a postal code (CEP) and returns a `Cepex.Address` struct with the address
information.
"""
@callback lookup(http_client :: module(), cep :: Cepex.CEP.t()) ::
... | 31.625 | 83 | 0.600791 |
da7291b0be59c1711eef27620bac015e98346306 | 193 | exs | Elixir | priv/repo/migrations/20171207004707_unique_links.exs | Queertoo/Queerlink | 0a7726460cda63fc4ab342a2fe1d1155caa3d6d4 | [
"MIT"
] | 38 | 2015-11-07T23:54:26.000Z | 2021-04-09T04:14:25.000Z | priv/repo/migrations/20171207004707_unique_links.exs | Queertoo/Queerlink | 0a7726460cda63fc4ab342a2fe1d1155caa3d6d4 | [
"MIT"
] | 2 | 2015-11-23T15:00:34.000Z | 2015-11-26T09:59:26.000Z | priv/repo/migrations/20171207004707_unique_links.exs | Queertoo/Queerlink | 0a7726460cda63fc4ab342a2fe1d1155caa3d6d4 | [
"MIT"
] | 6 | 2015-11-26T00:25:22.000Z | 2020-03-04T22:13:59.000Z | defmodule Queerlink.Repo.Migrations.UniqueLinks do
use Ecto.Migration
def change do
create index(:links, :source, unique: true)
create index(:links, :hash, unique: true)
end
end
| 21.444444 | 50 | 0.725389 |
da729b4c53bbb2c7b35fa25bc65239080c0118ca | 1,377 | exs | Elixir | test/wonderland_test.exs | tkachuk-labs/wonderland | 575cb23fa14b9adba5520b5e608e6029296d7b11 | [
"MIT"
] | 14 | 2020-03-09T22:43:01.000Z | 2021-01-20T01:50:00.000Z | test/wonderland_test.exs | 21it/wonderland | 575cb23fa14b9adba5520b5e608e6029296d7b11 | [
"MIT"
] | 1 | 2020-04-04T15:06:42.000Z | 2020-04-10T18:13:25.000Z | test/wonderland_test.exs | 21it/wonderland | 575cb23fa14b9adba5520b5e608e6029296d7b11 | [
"MIT"
] | null | null | null | defmodule WonderlandTest do
use ExUnit.Case
use Wonderland
doctest Wonderland
doctest Wonderland.Combinator
doctest Either
doctest Thunk
defmodule Demo do
use Wonderland
@spec parse(term) :: Either.t(String.t(), Date.t())
def parse(x) when is_binary(x) do
x
|> Date.from_iso8601()... | 22.57377 | 65 | 0.554829 |
da72a6c9466950cbd675bb9b80ebcba48c00f4f0 | 9,225 | ex | Elixir | clients/cloud_build/lib/google_api/cloud_build/v1/model/build.ex | jamesvl/elixir-google-api | 6c87fb31d996f08fb42ce6066317e9d652a87acc | [
"Apache-2.0"
] | null | null | null | clients/cloud_build/lib/google_api/cloud_build/v1/model/build.ex | jamesvl/elixir-google-api | 6c87fb31d996f08fb42ce6066317e9d652a87acc | [
"Apache-2.0"
] | null | null | null | clients/cloud_build/lib/google_api/cloud_build/v1/model/build.ex | jamesvl/elixir-google-api | 6c87fb31d996f08fb42ce6066317e9d652a87acc | [
"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... | 75.614754 | 758 | 0.701138 |
da72b3535433f85529cc729d38618c7e390f3f1c | 4,300 | ex | Elixir | clients/service_user/lib/google_api/service_user/v1/model/api.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | null | null | null | clients/service_user/lib/google_api/service_user/v1/model/api.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | null | null | null | clients/service_user/lib/google_api/service_user/v1/model/api.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 64.179104 | 1,084 | 0.741628 |
da72c850cac70684329c51976c8a611165f7ed54 | 1,332 | ex | Elixir | lib/course_planner/accounts/teachers.ex | digitalnatives/course_planner | 27b1c8067edc262685e9c4dcbfcf82633bc8b8dc | [
"MIT"
] | 38 | 2017-04-11T13:37:38.000Z | 2021-05-22T19:35:36.000Z | lib/course_planner/accounts/teachers.ex | digitalnatives/course_planner | 27b1c8067edc262685e9c4dcbfcf82633bc8b8dc | [
"MIT"
] | 226 | 2017-04-07T13:14:14.000Z | 2018-03-08T16:50:11.000Z | lib/course_planner/accounts/teachers.ex | digitalnatives/course_planner | 27b1c8067edc262685e9c4dcbfcf82633bc8b8dc | [
"MIT"
] | 7 | 2017-08-30T23:58:13.000Z | 2021-03-28T11:50:45.000Z | defmodule CoursePlanner.Accounts.Teachers do
@moduledoc false
import Ecto.Query
alias CoursePlanner.{Repo, Accounts.User, Accounts.Users, Courses.OfferedCourse}
@teachers from u in User, where: u.role == "Teacher",
order_by: [u.name, u.family_name, u.nickname]
def all do
Repo.all(@teachers)
end
... | 25.615385 | 87 | 0.644895 |
da72eb33b81552bedb0884173ff69d3790133162 | 2,914 | exs | Elixir | test/extractly/functiondoc_test.exs | RobertDober/Extractly | 9b1ee855e663f6ded8a3cf25fba1ad0777748ba9 | [
"Apache-2.0"
] | 4 | 2021-02-22T18:39:16.000Z | 2021-10-30T09:11:29.000Z | test/extractly/functiondoc_test.exs | RobertDober/Extractly | 9b1ee855e663f6ded8a3cf25fba1ad0777748ba9 | [
"Apache-2.0"
] | 12 | 2019-01-26T11:52:05.000Z | 2021-11-16T10:50:38.000Z | test/extractly/functiondoc_test.exs | RobertDober/extractly | 9b1ee855e663f6ded8a3cf25fba1ad0777748ba9 | [
"Apache-2.0"
] | null | null | null | defmodule Extractly.FunctiondocTest do
use ExUnit.Case
import Support.Random, only: [random_string: 0]
describe "no such doc or function" do
test "undocumented public function" do
fdoc = Extractly.functiondoc "Support.Module1.sample/0"
assert fdoc == [{:error, "Function doc for function Support... | 33.113636 | 100 | 0.648936 |
da72f06bcac04e98c63933695405df0904f1ab59 | 1,799 | exs | Elixir | test/teslamate/vehicles/vehicle/charging_sync_test.exs | shagberg/teslamate | 1f139b29bd5c2c93b158bdef10c66f9f3556e95c | [
"MIT"
] | null | null | null | test/teslamate/vehicles/vehicle/charging_sync_test.exs | shagberg/teslamate | 1f139b29bd5c2c93b158bdef10c66f9f3556e95c | [
"MIT"
] | null | null | null | test/teslamate/vehicles/vehicle/charging_sync_test.exs | shagberg/teslamate | 1f139b29bd5c2c93b158bdef10c66f9f3556e95c | [
"MIT"
] | null | null | null | defmodule TeslaMate.Vehicles.Vehicle.ChargingSyncTest do
use TeslaMate.DataCase
use TeslaMate.VehicleCase
import ExUnit.CaptureLog
alias TeslaMate.Log
@log_opts format: "[$level] $message\n",
colors: [enabled: false]
@tag :capture_log
test "handles invalid charge data", %{test: name} do
... | 29.016129 | 92 | 0.558088 |
da73556a4f8dae7eb498c72481011b888332d6b3 | 2,218 | ex | Elixir | clients/container/lib/google_api/container/v1/model/upgrade_available_event.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/container/lib/google_api/container/v1/model/upgrade_available_event.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/container/lib/google_api/container/v1/model/upgrade_available_event.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... | 39.607143 | 178 | 0.722723 |
da7367764b4c87bf8385521e30d48124bb9b1681 | 345 | ex | Elixir | lib/strava/model/smooth_grade_stream.ex | rkorzeniec/strava | aa99040355f72ff2766c080d5a919c66a53ac44b | [
"MIT"
] | 39 | 2016-04-09T21:50:34.000Z | 2022-03-04T09:16:25.000Z | lib/strava/model/smooth_grade_stream.ex | rkorzeniec/strava | aa99040355f72ff2766c080d5a919c66a53ac44b | [
"MIT"
] | 24 | 2016-05-29T15:49:07.000Z | 2022-01-17T11:57:05.000Z | lib/strava/model/smooth_grade_stream.ex | rkorzeniec/strava | aa99040355f72ff2766c080d5a919c66a53ac44b | [
"MIT"
] | 21 | 2016-02-02T01:19:23.000Z | 2022-02-06T23:29:32.000Z | defmodule Strava.SmoothGradeStream do
@moduledoc """
"""
@derive [Poison.Encoder]
defstruct [
:original_size,
:resolution,
:series_type,
:data
]
@type t :: %__MODULE__{
original_size: integer(),
resolution: String.t(),
series_type: String.t(),
data:... | 16.428571 | 37 | 0.553623 |
da737501385476a7624bd1be9e1e51b4f4c5b093 | 2,932 | ex | Elixir | lib/codesynth/endpointsynth.ex | rstorsauce/Exaggerate | 3f3093e7b6247638180bc01cb0751db70aa6f236 | [
"MIT"
] | 2 | 2017-12-20T11:21:08.000Z | 2020-01-27T00:44:23.000Z | lib/codesynth/endpointsynth.ex | rstorsauce/Exaggerate | 3f3093e7b6247638180bc01cb0751db70aa6f236 | [
"MIT"
] | 1 | 2018-10-15T22:33:24.000Z | 2019-04-05T01:01:32.000Z | lib/codesynth/endpointsynth.ex | rstorsauce/Exaggerate | 3f3093e7b6247638180bc01cb0751db70aa6f236 | [
"MIT"
] | 1 | 2018-12-06T03:16:21.000Z | 2018-12-06T03:16:21.000Z | defmodule Exaggerate.Codesynth.Endpointsynth do
@doc """
master function which builds the textual material inside an endpoint file
"""
def build_endpointmodule(swaggerfile, _filename, modulename, defs_to_ignore \\ []) do
endpointcode = build_endpoints(swaggerfile["paths"], modulename, defs_to_ignore)
... | 31.526882 | 139 | 0.603342 |
da737ab84dc80ad1fa2fb6cac844dbb4b70fd6d0 | 2,103 | ex | Elixir | lib/nostrum/struct/voice_ws_state.ex | phereford/nostrum | 3d273671f51d839eedac4d6e52ba9cf70720ac01 | [
"MIT"
] | 637 | 2017-03-07T11:25:35.000Z | 2022-03-31T13:37:51.000Z | lib/nostrum/struct/voice_ws_state.ex | phereford/nostrum | 3d273671f51d839eedac4d6e52ba9cf70720ac01 | [
"MIT"
] | 372 | 2017-03-07T20:42:03.000Z | 2022-03-30T22:46:46.000Z | lib/nostrum/struct/voice_ws_state.ex | phereford/nostrum | 3d273671f51d839eedac4d6e52ba9cf70720ac01 | [
"MIT"
] | 149 | 2017-03-07T12:11:58.000Z | 2022-03-19T22:11:51.000Z | defmodule Nostrum.Struct.VoiceWSState do
@moduledoc """
Struct representing the current Voice WS state.
"""
defstruct [
:guild_id,
:session,
:token,
:conn,
:conn_pid,
:stream,
:gateway,
:identified,
:last_heartbeat_send,
:last_heartbeat_ack,
:heartbeat_ack,
:hear... | 25.337349 | 74 | 0.658583 |
da73e7d98ccfba66b6cc360172c5797e8735a3ad | 902 | ex | Elixir | clients/analytics_data/lib/google_api/analytics_data/v1alpha/metadata.ex | myskoach/elixir-google-api | 4f8cbc2fc38f70ffc120fd7ec48e27e46807b563 | [
"Apache-2.0"
] | null | null | null | clients/analytics_data/lib/google_api/analytics_data/v1alpha/metadata.ex | myskoach/elixir-google-api | 4f8cbc2fc38f70ffc120fd7ec48e27e46807b563 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/analytics_data/lib/google_api/analytics_data/v1alpha/metadata.ex | myskoach/elixir-google-api | 4f8cbc2fc38f70ffc120fd7ec48e27e46807b563 | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 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.407407 | 74 | 0.763858 |
da7411faadb79f8262fd521671f41fd3e1936678 | 11,200 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/disk.ex | MechimCook/elixir-google-api | 0240ede69ec77115076724d223f9d1f849ff1d6b | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/disk.ex | MechimCook/elixir-google-api | 0240ede69ec77115076724d223f9d1f849ff1d6b | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/disk.ex | MechimCook/elixir-google-api | 0240ede69ec77115076724d223f9d1f849ff1d6b | [
"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... | 84.210526 | 858 | 0.737946 |
da7434859b27c3fe6ae9ca85b06d6ff0da3f6bab | 82 | ex | Elixir | elixir-class/advanced/executables/lib/main.ex | ikhlas-firlana/learning-class | 58c2db1e8121eaec47190105dffa47d6db84bb55 | [
"Apache-2.0"
] | null | null | null | elixir-class/advanced/executables/lib/main.ex | ikhlas-firlana/learning-class | 58c2db1e8121eaec47190105dffa47d6db84bb55 | [
"Apache-2.0"
] | null | null | null | elixir-class/advanced/executables/lib/main.ex | ikhlas-firlana/learning-class | 58c2db1e8121eaec47190105dffa47d6db84bb55 | [
"Apache-2.0"
] | null | null | null | defmodule Executables.Main do
def main(args \\ []) do
# Do stuff
end
end | 16.4 | 29 | 0.634146 |
da7468154faec5948d7fdc89b203546a6024dc72 | 1,743 | ex | Elixir | apps/raptor/lib/raptor_web/controllers/list_access_groups_controller.ex | smartcitiesdata/smartcitiesdata | c926c25003a8ee2d09b933c521c49f674841c0b6 | [
"Apache-2.0"
] | 26 | 2019-09-20T23:54:45.000Z | 2020-08-20T14:23:32.000Z | apps/raptor/lib/raptor_web/controllers/list_access_groups_controller.ex | smartcitiesdata/smartcitiesdata | c926c25003a8ee2d09b933c521c49f674841c0b6 | [
"Apache-2.0"
] | 757 | 2019-08-15T18:15:07.000Z | 2020-09-18T20:55:31.000Z | apps/raptor/lib/raptor_web/controllers/list_access_groups_controller.ex | smartcitiesdata/smartcitiesdata | c926c25003a8ee2d09b933c521c49f674841c0b6 | [
"Apache-2.0"
] | 9 | 2019-11-12T16:43:46.000Z | 2020-03-25T16:23:16.000Z | defmodule RaptorWeb.ListAccessGroupsController do
use RaptorWeb, :controller
alias Raptor.Services.DatasetAccessGroupRelationStore
alias Raptor.Services.UserAccessGroupRelationStore
alias Raptor.Services.Auth0Management
alias Raptor.Services.UserOrgAssocStore
require Logger
plug(:accepts, ["json"])
d... | 31.690909 | 93 | 0.693058 |
da7494e81c3ff9fab9605d65a0394a40655cd690 | 1,623 | exs | Elixir | test/elixir/fixtures/fridge.exs | tlossen/elixir | 38567f7f84bfce69a58c0be0ee6959cc7c6b3d6b | [
"MIT"
] | 1 | 2015-10-25T11:30:13.000Z | 2015-10-25T11:30:13.000Z | test/elixir/fixtures/fridge.exs | tlossen/elixir | 38567f7f84bfce69a58c0be0ee6959cc7c6b3d6b | [
"MIT"
] | null | null | null | test/elixir/fixtures/fridge.exs | tlossen/elixir | 38567f7f84bfce69a58c0be0ee6959cc7c6b3d6b | [
"MIT"
] | null | null | null | % Example taken from http://learnyousomeerlang.com/more-on-multiprocessing#state-your-state
% This example is very very erlangish. See process_test.exs.
% It would require you to pass the PID around the whole time,
% a better example is the MyFridge object below.
module Fridge
def store(pid, food)
pid <- {Proces... | 21.077922 | 91 | 0.614911 |
da74a5567a34fd2cd77843dd8df2eda263ca17d1 | 1,657 | ex | Elixir | clients/chat/lib/google_api/chat/v1/model/user_mention_metadata.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | null | null | null | clients/chat/lib/google_api/chat/v1/model/user_mention_metadata.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | null | null | null | clients/chat/lib/google_api/chat/v1/model/user_mention_metadata.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2018 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 31.865385 | 77 | 0.726614 |
da74b641cb063cb693f11ef2dc6e6a845cdb4261 | 722 | ex | Elixir | lib/debug.ex | jonasrichard/iris | eb4547ced7f7ff9305a4edfa1c32e8d45fa2aa00 | [
"Apache-2.0"
] | 1 | 2017-03-31T09:26:21.000Z | 2017-03-31T09:26:21.000Z | lib/debug.ex | jonasrichard/iris | eb4547ced7f7ff9305a4edfa1c32e8d45fa2aa00 | [
"Apache-2.0"
] | 1 | 2017-05-03T06:30:09.000Z | 2017-05-03T06:30:09.000Z | lib/debug.ex | jonasrichard/iris | eb4547ced7f7ff9305a4edfa1c32e8d45fa2aa00 | [
"Apache-2.0"
] | null | null | null | defmodule Iris.Debug do
alias Amnesia.Table.Match
def channels do
with %Match{values: values} <- Iris.Database.Channel.match!([]), do: values
end
def inbox do
with %Match{values: values} <- Iris.Database.Inbox.match!([]), do: values
end
def cmd_create_channel(name, sender_id, members, first_messa... | 27.769231 | 79 | 0.706371 |
da74e184396b651c7258515cf1e28e826b8775b4 | 8,770 | exs | Elixir | test/ex338_web/controllers/injured_reserve_controller_test.exs | axelclark/ex338 | 3fb3c260d93bda61f7636ee1a677770d2dc1b89a | [
"MIT"
] | 17 | 2016-12-22T06:39:26.000Z | 2021-01-20T13:51:13.000Z | test/ex338_web/controllers/injured_reserve_controller_test.exs | axelclark/ex338 | 3fb3c260d93bda61f7636ee1a677770d2dc1b89a | [
"MIT"
] | 608 | 2016-08-06T18:57:58.000Z | 2022-03-01T02:48:17.000Z | test/ex338_web/controllers/injured_reserve_controller_test.exs | axelclark/ex338 | 3fb3c260d93bda61f7636ee1a677770d2dc1b89a | [
"MIT"
] | 6 | 2017-11-21T22:35:45.000Z | 2022-01-11T21:37:40.000Z | defmodule Ex338Web.InjuredReserveControllerTest do
use Ex338Web.ConnCase
alias Ex338.{Accounts.User, CalendarAssistant, InjuredReserves.InjuredReserve}
setup %{conn: conn} do
user = %User{name: "test", email: "test@example.com", id: 1}
{:ok, conn: assign(conn, :current_user, user), user: user}
end
d... | 34.940239 | 99 | 0.655758 |
da74f02bc1b694c7f9f8e49c67cbef1d1f647265 | 4,010 | ex | Elixir | lib/annon_api/plugins/auth/strategies/jwt.ex | gabheadz/annon.api | 9921d98e44c8472c133554dd55ea649c0f55726c | [
"MIT"
] | 328 | 2017-05-05T15:19:46.000Z | 2022-03-11T10:52:45.000Z | lib/annon_api/plugins/auth/strategies/jwt.ex | gabheadz/annon.api | 9921d98e44c8472c133554dd55ea649c0f55726c | [
"MIT"
] | 83 | 2017-04-30T10:36:15.000Z | 2019-10-14T13:14:34.000Z | lib/annon_api/plugins/auth/strategies/jwt.ex | gabheadz/annon.api | 9921d98e44c8472c133554dd55ea649c0f55726c | [
"MIT"
] | 29 | 2017-05-02T14:36:50.000Z | 2021-09-03T13:36:17.000Z | defmodule Annon.Plugins.Auth.Strategies.JWT do
@moduledoc """
JWT adapter for Auth strategies.
"""
import Joken
alias Joken.Token
alias Annon.PublicAPI.Consumer
alias Annon.Plugins.Auth.ThirdPartyResolver
@behaviour Annon.Plugins.Auth.Strategy
def fetch_consumer(:bearer, token, settings) do
%{"se... | 33.697479 | 110 | 0.673317 |
da752e0d1aa8aae8f37212c3567c0671e8660e19 | 13,628 | exs | Elixir | test/plug/parsers_test.exs | bruteforcecat/plug | 45165d978e59d18df8b8085e4e158997dcac19a3 | [
"Apache-2.0"
] | null | null | null | test/plug/parsers_test.exs | bruteforcecat/plug | 45165d978e59d18df8b8085e4e158997dcac19a3 | [
"Apache-2.0"
] | null | null | null | test/plug/parsers_test.exs | bruteforcecat/plug | 45165d978e59d18df8b8085e4e158997dcac19a3 | [
"Apache-2.0"
] | null | null | null | defmodule Plug.ParsersTest do
use ExUnit.Case, async: true
use Plug.Test
defmodule BodyReader do
def read_body(conn, opts) do
{:ok, body, conn} = Plug.Conn.read_body(conn, opts)
{:ok, body <> "BAR", conn}
end
def read_body(conn, opts, "test", "read body") do
{:ok, body, conn} = Pl... | 30.556054 | 101 | 0.612342 |
da7590f9915c8dcfe1d2cfa20e5a6f2eba5ff195 | 1,242 | exs | Elixir | test/gleam_plug_test.exs | krendil/plug | f55276f1e8b20f9aa10df0535740073c9f336ffe | [
"Apache-2.0"
] | 16 | 2020-10-01T07:16:16.000Z | 2021-12-14T18:46:00.000Z | test/gleam_plug_test.exs | krendil/plug | f55276f1e8b20f9aa10df0535740073c9f336ffe | [
"Apache-2.0"
] | null | null | null | test/gleam_plug_test.exs | krendil/plug | f55276f1e8b20f9aa10df0535740073c9f336ffe | [
"Apache-2.0"
] | 3 | 2020-12-19T04:28:37.000Z | 2021-10-31T22:53:41.000Z | defmodule GleamPlugTest do
use ExUnit.Case
doctest GleamPlug
import Plug.Test
test "calling a service" do
conn = conn(:patch, "/hello")
conn =
conn
|> GleamPlug.conn_to_request("hello")
|> :service.handle()
|> GleamPlug.send(conn)
assert sent_resp(conn) ==
{20... | 27.6 | 73 | 0.453301 |
da75d53db16ec9f271460a841c03076472dcd122 | 1,753 | ex | Elixir | lib/postoffice/adapters/pubsub.ex | andrewgy8/postoffice | eadd84c613e20af9fd4afe4591c3a336733d3f0b | [
"Apache-2.0"
] | 15 | 2020-01-24T10:33:57.000Z | 2020-10-24T07:57:14.000Z | lib/postoffice/adapters/pubsub.ex | andrewgy8/postoffice | eadd84c613e20af9fd4afe4591c3a336733d3f0b | [
"Apache-2.0"
] | 24 | 2020-01-24T09:52:56.000Z | 2021-02-19T09:15:12.000Z | lib/postoffice/adapters/pubsub.ex | andrewgy8/postoffice | eadd84c613e20af9fd4afe4591c3a336733d3f0b | [
"Apache-2.0"
] | 5 | 2020-01-25T18:03:44.000Z | 2021-02-23T10:07:03.000Z | defmodule Postoffice.Adapters.Pubsub do
@moduledoc false
require Logger
@behaviour Postoffice.Adapters.Impl
@impl true
def publish(
id,
%{
"attributes" => attributes,
"consumer_id" => consumer_id,
"payload" => payload,
"target" => target
} = _a... | 27.825397 | 93 | 0.639475 |
da75d6167f96bb76e6c52ecf2fa37afd6824c966 | 1,844 | exs | Elixir | clients/content/mix.exs | myskoach/elixir-google-api | 4f8cbc2fc38f70ffc120fd7ec48e27e46807b563 | [
"Apache-2.0"
] | null | null | null | clients/content/mix.exs | myskoach/elixir-google-api | 4f8cbc2fc38f70ffc120fd7ec48e27e46807b563 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/content/mix.exs | myskoach/elixir-google-api | 4f8cbc2fc38f70ffc120fd7ec48e27e46807b563 | [
"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... | 27.522388 | 106 | 0.656182 |
da75dc1be3bd8dffaeecaff6561eaa84a07c32f6 | 2,687 | ex | Elixir | lib/readability/candidate/scoring.ex | luoken/readability | 64cd8085587a2f90bed9c2e328ef5bad3c44de53 | [
"Apache-2.0"
] | 205 | 2016-04-24T09:48:00.000Z | 2022-02-02T21:20:37.000Z | lib/readability/candidate/scoring.ex | luoken/readability | 64cd8085587a2f90bed9c2e328ef5bad3c44de53 | [
"Apache-2.0"
] | 42 | 2016-05-01T13:28:12.000Z | 2021-12-23T13:11:02.000Z | lib/readability/candidate/scoring.ex | luoken/readability | 64cd8085587a2f90bed9c2e328ef5bad3c44de53 | [
"Apache-2.0"
] | 49 | 2016-05-01T17:32:33.000Z | 2021-08-23T15:14:10.000Z | defmodule Readability.Candidate.Scoring do
@moduledoc """
Score html tree
"""
alias Readability.Helper
@element_scores %{"div" => 5, "blockquote" => 3, "form" => -3, "th" => -5}
@type html_tree :: tuple | list
@type options :: list
@doc """
Score html tree by some algorithm that check children node... | 27.989583 | 97 | 0.634537 |
da75dd02ba6f6f839551c9bb59d4bc68bd64c2ac | 4,521 | ex | Elixir | lib/multipart.ex | egillet/multipart | 7d261c6800f455db50c9178e43b4f58d7661b19a | [
"MIT"
] | 5 | 2021-04-19T13:59:06.000Z | 2022-01-17T20:40:34.000Z | lib/multipart.ex | egillet/multipart | 7d261c6800f455db50c9178e43b4f58d7661b19a | [
"MIT"
] | 5 | 2021-04-30T00:19:50.000Z | 2022-03-30T07:41:30.000Z | lib/multipart.ex | egillet/multipart | 7d261c6800f455db50c9178e43b4f58d7661b19a | [
"MIT"
] | 5 | 2021-05-26T10:53:19.000Z | 2022-01-27T21:58:53.000Z | defmodule Multipart do
@moduledoc """
`Multipart` constructs multipart messages.
It aims to produce multipart messages that are compatible with [RFC
2046](https://tools.ietf.org/html/rfc2046#section-5.1) for general use, and
[RFC 7578](https://tools.ietf.org/html/rfc7578) for constructing
`multipart/form-d... | 27.4 | 90 | 0.651183 |
da7607a312226d315726432ea37257facd862d1e | 399 | exs | Elixir | prototypes/blitzy/mix.exs | PJS4-projet-gestionnaire-de-contact/Gambett-Server | fa30a85ffa6da480e177d40364dd59f73f0ad892 | [
"MIT"
] | 5 | 2021-03-28T21:20:41.000Z | 2021-07-02T22:46:29.000Z | prototypes/blitzy/mix.exs | PJS4-projet-gestionnaire-de-contact/Gambett-Server | fa30a85ffa6da480e177d40364dd59f73f0ad892 | [
"MIT"
] | null | null | null | prototypes/blitzy/mix.exs | PJS4-projet-gestionnaire-de-contact/Gambett-Server | fa30a85ffa6da480e177d40364dd59f73f0ad892 | [
"MIT"
] | null | null | null | defmodule Blitzy.Mixfile do
use Mix.Project
def project do
[app: :blitzy,
version: "0.0.1",
elixir: "~> 1.1-rc1",
deps: deps]
end
def application do
[mod: {Blitzy, []},
applications: [:logger, :httpoison, :timex]]
end
defp deps do
[
{:httpoison, "~> 0.9.0"},
{:tim... | 19 | 49 | 0.516291 |
da76350126a07c2facbd73265875d86c0cd9491d | 178 | exs | Elixir | priv/repo/migrations/20180131112038_add_has_variant_to_product.exs | harry-gao/ex-cart | 573e7f977bb3b710d11618dd215d4ddd8f819fb3 | [
"Apache-2.0"
] | null | null | null | priv/repo/migrations/20180131112038_add_has_variant_to_product.exs | harry-gao/ex-cart | 573e7f977bb3b710d11618dd215d4ddd8f819fb3 | [
"Apache-2.0"
] | null | null | null | priv/repo/migrations/20180131112038_add_has_variant_to_product.exs | harry-gao/ex-cart | 573e7f977bb3b710d11618dd215d4ddd8f819fb3 | [
"Apache-2.0"
] | null | null | null | defmodule Nectar.Repo.Migrations.AddHasVariantToProduct do
use Ecto.Migration
def change do
alter table(:products) do
add :has_variant, :boolean
end
end
end
| 17.8 | 58 | 0.730337 |
da765067eb79f6ebd5bfa8e26a66fc84aea8ddb4 | 352 | ex | Elixir | web/models/comment.ex | leomindez/Discuss | f1f720dccb331f4f8606d8403416f91b4d5a287d | [
"MIT"
] | null | null | null | web/models/comment.ex | leomindez/Discuss | f1f720dccb331f4f8606d8403416f91b4d5a287d | [
"MIT"
] | null | null | null | web/models/comment.ex | leomindez/Discuss | f1f720dccb331f4f8606d8403416f91b4d5a287d | [
"MIT"
] | null | null | null | defmodule Discuss.Comment do
use Discuss.Web, :model
schema "comments" do
field :content, :string
belongs_to :user, Discuss.User
belongs_to :topic, Discuss.Topic
timestamps()
end
def changeset(struct, params \\ %{}) do
struct
|> cast(params, [:content])
|> validate_r... | 19.555556 | 40 | 0.627841 |
da76518881a8b05223fc1fe3e540622b0a2d66d8 | 5,439 | exs | Elixir | test/blanket_test.exs | niahoo/blanket | f2024ef3016db15389414ab7ba79e1f3a27444fb | [
"MIT"
] | 6 | 2015-09-04T08:25:39.000Z | 2019-03-01T15:46:00.000Z | test/blanket_test.exs | niahoo/blanket | f2024ef3016db15389414ab7ba79e1f3a27444fb | [
"MIT"
] | null | null | null | test/blanket_test.exs | niahoo/blanket | f2024ef3016db15389414ab7ba79e1f3a27444fb | [
"MIT"
] | null | null | null | defmodule BlanketTest do
use ExUnit.Case
# require Logger
setup do
# Logger.debug("SETUP ---------------------------------------------")
:ok = :application.ensure_started(:blanket)
case Process.whereis(TestTableSup) do
nil -> :ok
pid -> Process.exit(pid, :kill)
end
{:ok, _} = Test... | 29.4 | 80 | 0.659864 |
da76605fd95d689c422ae7325d88faed355cafce | 866 | exs | Elixir | config/prod.sample.exs | TraceyOnim/SbomPoc-sFractal | bac895a7eda61c47c00b8bbe682a6fda4dd7255c | [
"MIT"
] | 2 | 2020-10-04T12:41:58.000Z | 2021-03-11T20:51:26.000Z | config/prod.sample.exs | TraceyOnim/SbomPoc-sFractal | bac895a7eda61c47c00b8bbe682a6fda4dd7255c | [
"MIT"
] | 113 | 2020-07-25T02:29:33.000Z | 2022-03-01T01:07:23.000Z | config/prod.sample.exs | TraceyOnim/SbomPoc-sFractal | bac895a7eda61c47c00b8bbe682a6fda4dd7255c | [
"MIT"
] | 5 | 2020-07-10T09:57:58.000Z | 2021-03-11T20:51:29.000Z | # In this file, we load production configuration and secrets
# from environment variables. You can also hardcode secrets,
# although such is generally not recommended and you have to
# remember to add this file to your .gitignore.
use Mix.Config
database_url = "ecto://user:password@ipaddress/db_name"
config :sbom_poc... | 29.862069 | 67 | 0.741339 |
da76840df29b8c7dc8e5faa2426c166275079ae8 | 195 | exs | Elixir | api/config/config.exs | lucas-angermann/idai-field-web | 788c9c9505b6fd12d591345b23053e934f1022d1 | [
"Apache-2.0"
] | null | null | null | api/config/config.exs | lucas-angermann/idai-field-web | 788c9c9505b6fd12d591345b23053e934f1022d1 | [
"Apache-2.0"
] | null | null | null | api/config/config.exs | lucas-angermann/idai-field-web | 788c9c9505b6fd12d591345b23053e934f1022d1 | [
"Apache-2.0"
] | null | null | null | import Config
config :logger, :console,
format: {Api.IdaiConsoleLogger, :format},
metadata: [:mfa]
config :tesla, :adapter, Tesla.Adapter.Ibrowse
import_config "#{Mix.env()}.exs" | 21.666667 | 48 | 0.682051 |
da76a72339dd904daed01b4156ed2b821af9c16a | 856 | ex | Elixir | lib/hb/yahoo_finance.ex | lexa62/hb | c6b2169ad3e5af546da3f7ad0d499f5d5d29d044 | [
"MIT"
] | null | null | null | lib/hb/yahoo_finance.ex | lexa62/hb | c6b2169ad3e5af546da3f7ad0d499f5d5d29d044 | [
"MIT"
] | null | null | null | lib/hb/yahoo_finance.ex | lexa62/hb | c6b2169ad3e5af546da3f7ad0d499f5d5d29d044 | [
"MIT"
] | null | null | null | defmodule YahooFinance do
def exchange_rate_for([first | second], cached \\ true) do
case cached do
true ->
Cachex.get(:cache, "#{first}/#{second}", [fallback: fn(key) ->
key |> String.split("/") |> YahooFinance.exchange_rate_for(false)
end])
_ ->
fetch(first, second)... | 32.923077 | 204 | 0.667056 |
da76a8495bcc3be8815fd86fef27499835215344 | 310 | ex | Elixir | Module #02/Challenges/gen_report/lib/gen_report.ex | abreumatheus/RocketseatIgniteElixir | 47f126e060565af69287ee5409dc2f95247feb53 | [
"MIT"
] | null | null | null | Module #02/Challenges/gen_report/lib/gen_report.ex | abreumatheus/RocketseatIgniteElixir | 47f126e060565af69287ee5409dc2f95247feb53 | [
"MIT"
] | null | null | null | Module #02/Challenges/gen_report/lib/gen_report.ex | abreumatheus/RocketseatIgniteElixir | 47f126e060565af69287ee5409dc2f95247feb53 | [
"MIT"
] | null | null | null | defmodule GenReport do
alias GenReport.Builder
alias GenReport.Parser
def build, do: {:error, "Please provide a filename."}
def build(filename) do
filename
|> Parser.parse()
|> Enum.reduce(Builder.report_acc(), fn line, report ->
Builder.sum_values(line, report)
end)
end
end
| 20.666667 | 59 | 0.677419 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.