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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ff20d571d29b01306ba9c04c6fe716062491316a | 71 | ex | Elixir | lib/user_service_web/views/layout_view.ex | sb8244/pow_starter_pack | 82e16c3e4139ecc85295078b54024f58f95ab794 | [
"MIT"
] | 13 | 2020-03-31T21:45:40.000Z | 2021-02-13T12:17:22.000Z | lib/user_service_web/views/layout_view.ex | sb8244/pow_starter_pack | 82e16c3e4139ecc85295078b54024f58f95ab794 | [
"MIT"
] | 1 | 2021-03-10T12:57:21.000Z | 2021-03-10T12:57:21.000Z | lib/user_service_web/views/layout_view.ex | sb8244/pow_starter_pack | 82e16c3e4139ecc85295078b54024f58f95ab794 | [
"MIT"
] | 1 | 2020-04-28T15:41:56.000Z | 2020-04-28T15:41:56.000Z | defmodule UserServiceWeb.LayoutView do
use UserServiceWeb, :view
end
| 17.75 | 38 | 0.830986 |
ff212e10d77df453783c959824d37349b1ec7062 | 994 | ex | Elixir | lib/bd_pro.ex | bus-detective/pro | d313f4facdb4c9229bd7a022eeabb85170000e18 | [
"MIT"
] | null | null | null | lib/bd_pro.ex | bus-detective/pro | d313f4facdb4c9229bd7a022eeabb85170000e18 | [
"MIT"
] | null | null | null | lib/bd_pro.ex | bus-detective/pro | d313f4facdb4c9229bd7a022eeabb85170000e18 | [
"MIT"
] | null | null | null | defmodule BdPro do
use Application
# See http://elixir-lang.org/docs/stable/elixir/Application.html
# for more information on OTP Applications
def start(_type, _args) do
import Supervisor.Spec, warn: false
children = [
# Start the endpoint when the application starts
supervisor(BdPro.Endpo... | 31.0625 | 71 | 0.702213 |
ff2148fb19ea5c854fd9413f312c690699bb3188 | 402 | ex | Elixir | lib/ex_pool/manager/info.ex | jcabotc/ex_pool | ec5acab0e16aa7b7d5c58abba8aa1ebcf8c5c6e4 | [
"Apache-2.0"
] | 6 | 2015-11-29T10:43:02.000Z | 2016-04-07T17:32:17.000Z | lib/ex_pool/manager/info.ex | jcabotc/ex_pool | ec5acab0e16aa7b7d5c58abba8aa1ebcf8c5c6e4 | [
"Apache-2.0"
] | null | null | null | lib/ex_pool/manager/info.ex | jcabotc/ex_pool | ec5acab0e16aa7b7d5c58abba8aa1ebcf8c5c6e4 | [
"Apache-2.0"
] | null | null | null | defmodule ExPool.Manager.Info do
alias ExPool.State
def get(state) do
%{
workers: workers(state),
waiting: waiting(state)
}
end
defp workers(state) do
total = State.total_workers(state)
free = State.available_workers(state)
in_use = total - free
%{total: total, free: fr... | 19.142857 | 50 | 0.656716 |
ff214f03e3378578413fe87c38df8e182bfce8a1 | 202 | exs | Elixir | priv/repo/migrations/20140115124723_create_rooms.exs | debonair/mogo-chat | 108c611177363a04d278221aabc03dcd2b66597c | [
"MIT"
] | 210 | 2015-01-01T04:17:56.000Z | 2022-02-26T23:54:56.000Z | priv/repo/migrations/20140115124723_create_rooms.exs | debonair/mogo-chat | 108c611177363a04d278221aabc03dcd2b66597c | [
"MIT"
] | 1 | 2015-05-08T21:44:36.000Z | 2015-05-08T21:44:36.000Z | priv/repo/migrations/20140115124723_create_rooms.exs | debonair/mogo-chat | 108c611177363a04d278221aabc03dcd2b66597c | [
"MIT"
] | 40 | 2015-01-06T08:48:40.000Z | 2020-05-26T18:03:07.000Z | defmodule Repo.Migrations.CreateRooms do
use Ecto.Migration
def up do
"CREATE TABLE IF NOT EXISTS rooms(id serial primary key, name text)"
end
def down do
"DROP TABLE rooms"
end
end
| 16.833333 | 72 | 0.712871 |
ff2160cee6df974580d37d7e98b26348b2f60bf4 | 3,188 | ex | Elixir | clients/dataflow/lib/google_api/dataflow/v1b3/model/execution_stage_summary.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/dataflow/lib/google_api/dataflow/v1b3/model/execution_stage_summary.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/dataflow/lib/google_api/dataflow/v1b3/model/execution_stage_summary.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 49.046154 | 209 | 0.72522 |
ff2176274ea7e1af77f8ffe7f5e55c5595b4c05f | 3,331 | ex | Elixir | lib/bpxe/engine/parallel_gateway.ex | cjsuite/bpxe | 4b4759b7e2e8ced9f6f76ab55e5da26eb319a7c9 | [
"Apache-2.0"
] | null | null | null | lib/bpxe/engine/parallel_gateway.ex | cjsuite/bpxe | 4b4759b7e2e8ced9f6f76ab55e5da26eb319a7c9 | [
"Apache-2.0"
] | null | null | null | lib/bpxe/engine/parallel_gateway.ex | cjsuite/bpxe | 4b4759b7e2e8ced9f6f76ab55e5da26eb319a7c9 | [
"Apache-2.0"
] | null | null | null | defmodule BPXE.Engine.ParallelGateway do
use GenServer
use BPXE.Engine.FlowNode
alias BPXE.Engine.Process
alias BPXE.Engine.Process.Log
defstate token_ids: %{}, drop_tokens: %{}
@persist_state :token_ids
@persist_state :drop_tokens
def start_link(element, attrs, model, process) do
GenServer.start... | 28.228814 | 89 | 0.563494 |
ff21948287057b4f4da74e0852c3f89027fa989a | 5,986 | exs | Elixir | priv/repo/seeds.exs | smpallen99/ucx_chat | 0dd98d0eb5e0537521844520ea2ba63a08fd3f19 | [
"MIT"
] | 60 | 2017-05-09T19:08:26.000Z | 2021-01-20T11:09:42.000Z | priv/repo/seeds.exs | smpallen99/ucx_chat | 0dd98d0eb5e0537521844520ea2ba63a08fd3f19 | [
"MIT"
] | 6 | 2017-05-10T15:43:16.000Z | 2020-07-15T07:14:41.000Z | priv/repo/seeds.exs | smpallen99/ucx_chat | 0dd98d0eb5e0537521844520ea2ba63a08fd3f19 | [
"MIT"
] | 10 | 2017-05-10T04:13:54.000Z | 2020-12-28T10:30:27.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:
#
# UcxChat.Repo.insert!(%UcxChat.SomeModel{})
#
# We recommend using the bang functions (`insert!`, `update!`
# and so on) as they will ... | 29.2 | 146 | 0.655864 |
ff21c6a9598cd27c2652f22afa3701e0d9cfff94 | 1,135 | exs | Elixir | printer-error/config/config.exs | crsanti/codewars-elixir | 7e7d9bceea5db8b965ecc1e17be52bc2aeafa4f0 | [
"MIT"
] | 2 | 2021-08-18T11:31:31.000Z | 2021-08-24T00:25:08.000Z | printer-error/config/config.exs | crsanti/codewars-elixir | 7e7d9bceea5db8b965ecc1e17be52bc2aeafa4f0 | [
"MIT"
] | null | null | null | printer-error/config/config.exs | crsanti/codewars-elixir | 7e7d9bceea5db8b965ecc1e17be52bc2aeafa4f0 | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on this project, this
# file won't be loaded nor affect the paren... | 36.612903 | 73 | 0.754185 |
ff21d414f59c6f28c9683291e2174819408b3c45 | 1,157 | exs | Elixir | mix.exs | raymondboswel/bureaucrat | 4c0ef96cf2226552c457ed4d1a9afd53e197b145 | [
"Unlicense"
] | null | null | null | mix.exs | raymondboswel/bureaucrat | 4c0ef96cf2226552c457ed4d1a9afd53e197b145 | [
"Unlicense"
] | null | null | null | mix.exs | raymondboswel/bureaucrat | 4c0ef96cf2226552c457ed4d1a9afd53e197b145 | [
"Unlicense"
] | null | null | null | defmodule Bureaucrat.Mixfile do
use Mix.Project
def project do
[
app: :bureaucrat,
version: "0.2.7",
elixir: "~> 1.6 or ~> 1.7",
description: "Generate Phoenix API documentation from tests",
deps: deps(),
package: package()
]
end
# Configuration for the OTP applicat... | 22.686275 | 72 | 0.536733 |
ff21f4ca22cc1c10a578c35b4a207251eb4062d1 | 271 | ex | Elixir | core/src/main/java/site/ycsb/data_gen/Graph_gen/Graph_gen/examples/localmotifcluster/Makefile.ex | qiuhere/Bench | 80f15facb81120b754547586cf3a7e5f46ca1551 | [
"Apache-2.0"
] | 1,805 | 2015-01-06T20:01:35.000Z | 2022-03-29T16:12:51.000Z | examples/localmotifcluster/Makefile.ex | lizhaoqing/snap | 907c34aac6bcddc7c2f8efb64be76e87dd7e4ea5 | [
"BSD-3-Clause"
] | 168 | 2015-01-07T22:57:29.000Z | 2022-03-15T01:20:24.000Z | examples/localmotifcluster/Makefile.ex | lizhaoqing/snap | 907c34aac6bcddc7c2f8efb64be76e87dd7e4ea5 | [
"BSD-3-Clause"
] | 768 | 2015-01-09T02:28:45.000Z | 2022-03-30T00:53:46.000Z | #
# configuration variables for the example
## Main application file
MAIN = localmotifclustermain
DEPH = $(EXSNAPADV)/localmotifcluster.h
DEPCPP = $(EXSNAPADV)/localmotifcluster.cpp
# Set the suffix _ if the fortran77 routines are named that way
CXXFLAGS += -DF77_POST
| 24.636364 | 63 | 0.782288 |
ff22049a7835195e4e8efa9ac429314c2b8c663e | 330 | exs | Elixir | test_projects/nif/bundlex.exs | vanillahsu/unifex | a501479b611a94c8a1477d969e170a7280673b7c | [
"Apache-2.0"
] | 42 | 2018-09-11T02:27:00.000Z | 2022-03-23T18:30:56.000Z | test_projects/nif/bundlex.exs | vanillahsu/unifex | a501479b611a94c8a1477d969e170a7280673b7c | [
"Apache-2.0"
] | 30 | 2018-10-18T10:56:22.000Z | 2022-03-09T13:04:51.000Z | test_projects/nif/bundlex.exs | vanillahsu/unifex | a501479b611a94c8a1477d969e170a7280673b7c | [
"Apache-2.0"
] | 7 | 2018-10-24T09:21:40.000Z | 2022-03-29T12:39:08.000Z | defmodule Example.BundlexProject do
use Bundlex.Project
def project() do
[
natives: natives(Bundlex.platform())
]
end
def natives(_platform) do
[
example: [
src_base: "example",
sources: ["example.c"],
preprocessor: Unifex,
interface: :nif
]
]
... | 15.714286 | 42 | 0.566667 |
ff222b32cce01c71c68beba20dae650f91913a00 | 1,370 | ex | Elixir | lib/example/tasks/migrate.ex | sfairchild/distillery-aws-example | 156ce07eef6ae9f133daf328899e0cccc5f8edea | [
"Apache-2.0"
] | 46 | 2018-08-06T23:18:46.000Z | 2020-11-26T12:43:49.000Z | lib/example/tasks/migrate.ex | sfairchild/distillery-aws-example | 156ce07eef6ae9f133daf328899e0cccc5f8edea | [
"Apache-2.0"
] | 15 | 2018-08-23T08:29:48.000Z | 2020-05-18T14:05:38.000Z | lib/example/tasks/migrate.ex | sfairchild/distillery-aws-example | 156ce07eef6ae9f133daf328899e0cccc5f8edea | [
"Apache-2.0"
] | 84 | 2018-08-27T11:56:59.000Z | 2022-01-28T00:33:47.000Z | defmodule Example.Tasks.Migrate do
@moduledoc false
def migrate(_args) do
# Configure
Distillery.Releases.Config.Providers.Elixir.init(["${RELEASE_ROOT_DIR}/etc/config.exs"])
repo_config = Application.get_env(:distillery_example, Example.Repo)
repo_config = Keyword.put(repo_config, :adapter, Ecto.A... | 31.860465 | 92 | 0.667883 |
ff228213e6ca0b65f5d69c66747f2fd7cf5a4851 | 1,390 | ex | Elixir | clients/cloud_resource_manager/lib/google_api/cloud_resource_manager/v3/model/undelete_project_metadata.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/cloud_resource_manager/lib/google_api/cloud_resource_manager/v3/model/undelete_project_metadata.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/cloud_resource_manager/lib/google_api/cloud_resource_manager/v3/model/undelete_project_metadata.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... | 33.095238 | 104 | 0.774101 |
ff22d85c1d6e4e4b1e74b698468a04c765444de2 | 1,881 | ex | Elixir | clients/document_ai/lib/google_api/document_ai/v1beta2/model/google_cloud_documentai_v1beta1_document_provenance_parent.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/document_ai/lib/google_api/document_ai/v1beta2/model/google_cloud_documentai_v1beta1_document_provenance_parent.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/document_ai/lib/google_api/document_ai/v1beta2/model/google_cloud_documentai_v1beta1_document_provenance_parent.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 34.2 | 158 | 0.74588 |
ff231fb7a67942c0da16857eb292a7ce7d80ad3b | 1,538 | exs | Elixir | exercises/raindrops/raindrops_test.exs | jerith/elixir | 9a3f2a2fbee26a7b6a6b3ad74a9e6d1ff2495ed4 | [
"Apache-2.0"
] | null | null | null | exercises/raindrops/raindrops_test.exs | jerith/elixir | 9a3f2a2fbee26a7b6a6b3ad74a9e6d1ff2495ed4 | [
"Apache-2.0"
] | null | null | null | exercises/raindrops/raindrops_test.exs | jerith/elixir | 9a3f2a2fbee26a7b6a6b3ad74a9e6d1ff2495ed4 | [
"Apache-2.0"
] | 1 | 2018-07-19T23:43:56.000Z | 2018-07-19T23:43:56.000Z | if !System.get_env("EXERCISM_TEST_EXAMPLES") do
Code.load_file("raindrops.exs", __DIR__)
end
ExUnit.start()
ExUnit.configure(exclude: :pending, trace: true)
defmodule RaindropsTest do
use ExUnit.Case
# @tag :pending
test "1" do
assert Raindrops.convert(1) == "1"
end
@tag :pending
test "3" do
a... | 16.901099 | 54 | 0.635241 |
ff23471aa50f6880262294fac802c776db5b62d8 | 2,062 | exs | Elixir | config/prod.exs | elpassion/sprint-poker | 5c9b34bb264c7a30ff48f0aeac40821b67310ff8 | [
"MIT"
] | 199 | 2015-10-22T16:20:09.000Z | 2021-11-08T11:20:45.000Z | config/prod.exs | elpassion/sprint-poker | 5c9b34bb264c7a30ff48f0aeac40821b67310ff8 | [
"MIT"
] | 4 | 2015-10-24T20:43:29.000Z | 2016-03-03T21:09:06.000Z | config/prod.exs | elpassion/sprint-poker | 5c9b34bb264c7a30ff48f0aeac40821b67310ff8 | [
"MIT"
] | 34 | 2015-10-23T06:38:43.000Z | 2019-08-13T23:49:24.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... | 30.776119 | 66 | 0.723569 |
ff234751c52b68e4ed6157502b53f37102f813ac | 23,736 | ex | Elixir | lib/elixir/lib/map.ex | axelson/elixir | accadf541c2045844b0c399adae22476840b3602 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/map.ex | axelson/elixir | accadf541c2045844b0c399adae22476840b3602 | [
"Apache-2.0"
] | 1 | 2019-04-25T12:52:49.000Z | 2019-04-25T13:27:31.000Z | lib/elixir/lib/map.ex | fertapric/elixir | 9df2216670493aa30f37681cc812f3192adfe55a | [
"Apache-2.0"
] | null | null | null | defmodule Map do
@moduledoc """
Maps are the "go to" key-value data structure in Elixir.
Maps can be created with the `%{}` syntax, and key-value pairs can be
expressed as `key => value`:
iex> %{}
%{}
iex> %{"one" => :two, 3 => "four"}
%{3 => "four", "one" => :two}
Key-value pairs i... | 25.550054 | 98 | 0.576424 |
ff234d114ea200ed7dbf875d386e1510bfcac1fa | 222 | exs | Elixir | test/test_helper.exs | keichan34/phoenix_exfile_test_app | 63de22ab04a61ef7f13a53f2b34d3c752a1def7a | [
"MIT"
] | 1 | 2016-04-19T11:56:32.000Z | 2016-04-19T11:56:32.000Z | test/test_helper.exs | keichan34/phoenix_exfile_test_app | 63de22ab04a61ef7f13a53f2b34d3c752a1def7a | [
"MIT"
] | 1 | 2016-08-05T07:52:34.000Z | 2016-09-02T03:45:03.000Z | test/test_helper.exs | keichan34/phoenix_exfile_test_app | 63de22ab04a61ef7f13a53f2b34d3c752a1def7a | [
"MIT"
] | null | null | null | ExUnit.start
Mix.Task.run "ecto.create", ~w(-r PhoenixExfileTestApp.Repo --quiet)
Mix.Task.run "ecto.migrate", ~w(-r PhoenixExfileTestApp.Repo --quiet)
Ecto.Adapters.SQL.begin_test_transaction(PhoenixExfileTestApp.Repo)
| 31.714286 | 69 | 0.788288 |
ff2369de970251b413f3d4b2ac87c3febb6cc25e | 1,426 | exs | Elixir | test/branch_cutter/pull_requests_test.exs | smaximov/branch_cutter | eb750db1fcc9715ab7bbecadd2ccd3368b41dc81 | [
"MIT"
] | null | null | null | test/branch_cutter/pull_requests_test.exs | smaximov/branch_cutter | eb750db1fcc9715ab7bbecadd2ccd3368b41dc81 | [
"MIT"
] | null | null | null | test/branch_cutter/pull_requests_test.exs | smaximov/branch_cutter | eb750db1fcc9715ab7bbecadd2ccd3368b41dc81 | [
"MIT"
] | null | null | null | defmodule BranchCutter.PullRequestsTest do
use BranchCutter.RepoCase, async: true
alias BranchCutter.PullRequests
alias BranchCutter.Schema.PullRequest
describe "insert/3" do
import PullRequests, only: [insert: 3, count: 2]
test "it is successful with valid values and duplicates" do
repo = "rep... | 27.423077 | 81 | 0.591865 |
ff236cdb0870e54061856d7faa2b29b2746a4521 | 1,967 | exs | Elixir | config/dev.exs | ilkka/phoenix-elm-graphql-starter | fd88adf0e471eb97feb98a32026c2a1581e55490 | [
"Apache-2.0"
] | null | null | null | config/dev.exs | ilkka/phoenix-elm-graphql-starter | fd88adf0e471eb97feb98a32026c2a1581e55490 | [
"Apache-2.0"
] | null | null | null | config/dev.exs | ilkka/phoenix-elm-graphql-starter | fd88adf0e471eb97feb98a32026c2a1581e55490 | [
"Apache-2.0"
] | 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 :phelmx, PhelmxWeb.Endpoint,
http: [port: 4000... | 29.80303 | 170 | 0.692425 |
ff236cdfa29ea29606cf8f269f5f134f3f6d13c4 | 1,802 | ex | Elixir | test/support/model_case.ex | jwarwick/class_list | 05ac775e7b5d42f258024db361a9de1aeed71c73 | [
"MIT"
] | null | null | null | test/support/model_case.ex | jwarwick/class_list | 05ac775e7b5d42f258024db361a9de1aeed71c73 | [
"MIT"
] | null | null | null | test/support/model_case.ex | jwarwick/class_list | 05ac775e7b5d42f258024db361a9de1aeed71c73 | [
"MIT"
] | null | null | null | defmodule ClassList.ModelCase do
@moduledoc """
This module defines the test case to be used by
model tests.
You may define functions here to be used as helpers in
your model tests. See `errors_on/2`'s definition as reference.
Finally, if the test case interacts with the database,
it cannot be async. Fo... | 27.30303 | 84 | 0.687014 |
ff23734a4f43d3c84b302a88cc0eeb9f8ceb0854 | 1,141 | exs | Elixir | config/config.exs | robosseum/client-elixir | 65efed560bc8aa79c866db0efcf6463be28527f0 | [
"MIT"
] | null | null | null | config/config.exs | robosseum/client-elixir | 65efed560bc8aa79c866db0efcf6463be28527f0 | [
"MIT"
] | null | null | null | config/config.exs | robosseum/client-elixir | 65efed560bc8aa79c866db0efcf6463be28527f0 | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on this project, this
# file won't be loaded nor affect the paren... | 36.806452 | 73 | 0.755478 |
ff23afc408114d01e24357ea98aad5e1797782ac | 1,380 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/forwarding_rule_reference.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/compute/lib/google_api/compute/v1/model/forwarding_rule_reference.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/compute/lib/google_api/compute/v1/model/forwarding_rule_reference.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... | 29.361702 | 82 | 0.73913 |
ff23c026fcbe3c6d85cc71af772d364a6bb166c3 | 1,007 | exs | Elixir | priv/repo/migrations/20210221114143_add_chat_tokens.exs | Megami-Studios/glimesh.tv | 57dde3a328fabdcc3305be48ae1b82df27b83c9b | [
"MIT"
] | 328 | 2020-07-23T22:13:49.000Z | 2022-03-31T21:22:28.000Z | priv/repo/migrations/20210221114143_add_chat_tokens.exs | Megami-Studios/glimesh.tv | 57dde3a328fabdcc3305be48ae1b82df27b83c9b | [
"MIT"
] | 362 | 2020-07-23T22:38:38.000Z | 2022-03-24T02:11:16.000Z | priv/repo/migrations/20210221114143_add_chat_tokens.exs | Megami-Studios/glimesh.tv | 57dde3a328fabdcc3305be48ae1b82df27b83c9b | [
"MIT"
] | 72 | 2020-07-23T22:50:46.000Z | 2022-02-02T11:59:32.000Z | defmodule Glimesh.Repo.Migrations.AddChatTokens do
use Ecto.Migration
import Ecto.Query
def change do
alter table(:chat_messages) do
add :tokens, {:array, :map}, default: []
end
flush()
channels =
Glimesh.Repo.all(
from(u in "channels",
select: %Glimesh.Streams.Ch... | 22.886364 | 94 | 0.593843 |
ff23cdeb1973f45a9f9cf08c5fa59b9e0841aa56 | 1,605 | ex | Elixir | lib/sftp_client/key_provider.ex | zoten/sftp_client | 814d06e36915f60bf98149d790051d03bee189f5 | [
"MIT"
] | null | null | null | lib/sftp_client/key_provider.ex | zoten/sftp_client | 814d06e36915f60bf98149d790051d03bee189f5 | [
"MIT"
] | null | null | null | lib/sftp_client/key_provider.ex | zoten/sftp_client | 814d06e36915f60bf98149d790051d03bee189f5 | [
"MIT"
] | null | null | null | defmodule SFTPClient.KeyProvider do
@moduledoc """
A provider that loads keys for authentication from the given location.
Implements the `:ssh_client_key_api` behavior.
"""
@behaviour :ssh_client_key_api
require Logger
@impl true
defdelegate add_host_key(host, public_key, opts), to: :ssh_file
@imp... | 26.311475 | 73 | 0.627414 |
ff23fee7960ceb4062794633e5810be6d0d76d96 | 485 | exs | Elixir | test/bencode/encode_eqc.exs | olof/elixir-bencode | e9bd497f22ef5f4c481378ca1efbfde4a453b472 | [
"Apache-2.0"
] | 19 | 2015-12-05T13:50:41.000Z | 2022-01-31T20:20:48.000Z | test/bencode/encode_eqc.exs | olof/elixir-bencode | e9bd497f22ef5f4c481378ca1efbfde4a453b472 | [
"Apache-2.0"
] | 7 | 2016-02-24T13:46:42.000Z | 2020-03-23T01:03:26.000Z | test/bencode/encode_eqc.exs | olof/elixir-bencode | e9bd497f22ef5f4c481378ca1efbfde4a453b472 | [
"Apache-2.0"
] | 5 | 2016-02-24T13:18:29.000Z | 2019-09-09T08:59:52.000Z | defmodule Bencode.EncodeEQC do
use ExUnit.Case, async: true
use EQC.ExUnit
# numbers
property "encode numbers" do
forall input <- int() do
ensure Bencode.encode!(input) == "i#{input}e"
end
end
property "encode strings" do
forall input <- utf8() do
ensure Bencode.encode!(input) == "... | 23.095238 | 68 | 0.665979 |
ff2428d16e6bbbd757b47c6a23f1418320805567 | 367 | ex | Elixir | lib/bitcrowd_ecto.ex | bitcrowd/bitcrowd_ecto | 6e2d41d7dbe1fa1398b545c12385cde2db94285c | [
"Apache-2.0"
] | 2 | 2022-01-11T08:03:49.000Z | 2022-02-11T10:25:30.000Z | lib/bitcrowd_ecto.ex | bitcrowd/bitcrowd_ecto | 6e2d41d7dbe1fa1398b545c12385cde2db94285c | [
"Apache-2.0"
] | 3 | 2022-02-03T21:28:14.000Z | 2022-03-25T09:03:15.000Z | lib/bitcrowd_ecto.ex | bitcrowd/bitcrowd_ecto | 6e2d41d7dbe1fa1398b545c12385cde2db94285c | [
"Apache-2.0"
] | null | null | null | # SPDX-License-Identifier: Apache-2.0
defmodule BitcrowdEcto do
@readme Path.join([__DIR__, "../README.md"])
@external_resource @readme
@moduledoc @readme
|> File.read!()
|> String.split("<!-- MDOC -->")
|> Enum.drop(1)
|> Enum.take_every(2)
|> En... | 22.9375 | 46 | 0.531335 |
ff24428997020a33c3a90ecd58c94c216f6a34e7 | 95 | exs | Elixir | test/conduit/plug/created_at_test.exs | log4b/conduit | 5ecf5aa0edd831f54c28d596f1cb2d414fc99c6e | [
"MIT"
] | 119 | 2016-11-21T13:19:22.000Z | 2021-11-07T17:29:05.000Z | test/conduit/plug/created_at_test.exs | log4b/conduit | 5ecf5aa0edd831f54c28d596f1cb2d414fc99c6e | [
"MIT"
] | 104 | 2018-02-02T20:42:46.000Z | 2021-08-03T05:36:09.000Z | test/conduit/plug/created_at_test.exs | log4b/conduit | 5ecf5aa0edd831f54c28d596f1cb2d414fc99c6e | [
"MIT"
] | 21 | 2018-08-03T02:38:21.000Z | 2022-03-16T18:26:58.000Z | defmodule Conduit.Plug.CreatedAtTest do
use ExUnit.Case
doctest Conduit.Plug.CreatedAt
end
| 19 | 39 | 0.821053 |
ff245e700039e6bb584feea4b5b559d94e2d3d62 | 32 | ex | Elixir | lib/badapi/tester.ex | fusillicode/badapi | ca00999bd1a33c1798d1965d56c6ad590631eef9 | [
"MIT"
] | null | null | null | lib/badapi/tester.ex | fusillicode/badapi | ca00999bd1a33c1798d1965d56c6ad590631eef9 | [
"MIT"
] | null | null | null | lib/badapi/tester.ex | fusillicode/badapi | ca00999bd1a33c1798d1965d56c6ad590631eef9 | [
"MIT"
] | null | null | null | defmodule Badapi.Tester do
end
| 8 | 26 | 0.8125 |
ff2513280dcd8d58be9ec351496b213bd3dc171a | 104 | exs | Elixir | test/schemas/previous_translation_test.exs | leonardocouy/accent | 29fb324395ff998cc5cdc6947c60070ffabe647c | [
"BSD-3-Clause"
] | null | null | null | test/schemas/previous_translation_test.exs | leonardocouy/accent | 29fb324395ff998cc5cdc6947c60070ffabe647c | [
"BSD-3-Clause"
] | null | null | null | test/schemas/previous_translation_test.exs | leonardocouy/accent | 29fb324395ff998cc5cdc6947c60070ffabe647c | [
"BSD-3-Clause"
] | null | null | null | defmodule AccentTest.PreviousTranslation do
use ExUnit.Case
doctest Accent.PreviousTranslation
end
| 17.333333 | 43 | 0.846154 |
ff25221003a2cad61eebe98f6df1477b98c407ff | 972 | ex | Elixir | lib/shenu/message/color.ex | jsdelivrbot/shenu | 98acf65b915b62528eccd824020e8007931ee01c | [
"MIT"
] | 3 | 2016-06-19T00:21:54.000Z | 2021-09-28T22:04:07.000Z | lib/shenu/message/color.ex | jsdelivrbot/shenu | 98acf65b915b62528eccd824020e8007931ee01c | [
"MIT"
] | null | null | null | lib/shenu/message/color.ex | jsdelivrbot/shenu | 98acf65b915b62528eccd824020e8007931ee01c | [
"MIT"
] | 1 | 2018-12-06T22:51:26.000Z | 2018-12-06T22:51:26.000Z | defmodule Shenu.Message.Color do
@moduledoc """
RGBA color
"""
use Shenu.Message
defmessage %{
type: "object",
properties: %{
r: %{
type: "integer",
minimum: 0,
maximum: 255,
default: 0
},
g: %{
type: "integer",
minimum: 0,
ma... | 17.672727 | 50 | 0.504115 |
ff252c31507575fa69baa2c7687304c6e36e2754 | 1,397 | exs | Elixir | test/helix/users/follows_test.exs | Eein/twitch-api | cc53145b8425f7f8d474e9f20f083ce6856f9d20 | [
"MIT"
] | 1 | 2020-02-04T18:38:59.000Z | 2020-02-04T18:38:59.000Z | test/helix/users/follows_test.exs | Eein/helix | cc53145b8425f7f8d474e9f20f083ce6856f9d20 | [
"MIT"
] | null | null | null | test/helix/users/follows_test.exs | Eein/helix | cc53145b8425f7f8d474e9f20f083ce6856f9d20 | [
"MIT"
] | null | null | null | defmodule TwitchApi.Helix.Users.FollowsTest do
use ExUnit.Case, async: true
use ExVCR.Mock, adapter: ExVCR.Adapter.Hackney
doctest TwitchApi.Helix.Users.Follows
alias TwitchApi.Client
alias TwitchApi.Helix.Users.Follows
setup do
ExVCR.Config.filter_request_headers("Client-ID")
ExVCR.Config.filter... | 31.044444 | 74 | 0.675734 |
ff253781a8af82c461375aa86219900f09195c24 | 40,669 | ex | Elixir | clients/cloud_search/lib/google_api/cloud_search/v1/api/settings.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/cloud_search/lib/google_api/cloud_search/v1/api/settings.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/cloud_search/lib/google_api/cloud_search/v1/api/settings.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.214773 | 337 | 0.615801 |
ff25761fe604ee5ec4bfb7d3a7b4ca2823b5662f | 1,709 | ex | Elixir | lib/mix/tasks/erlang_cookie.ex | CMcDonald82/phoenix-api-starter | c3ece669ea047dc523c867e7609486f1a1818a1f | [
"MIT"
] | 1 | 2018-05-29T11:50:17.000Z | 2018-05-29T11:50:17.000Z | lib/mix/tasks/erlang_cookie.ex | CMcDonald82/phoenix-api-starter | c3ece669ea047dc523c867e7609486f1a1818a1f | [
"MIT"
] | null | null | null | lib/mix/tasks/erlang_cookie.ex | CMcDonald82/phoenix-api-starter | c3ece669ea047dc523c867e7609486f1a1818a1f | [
"MIT"
] | null | null | null | defmodule Mix.Tasks.ErlangCookie do
use Mix.Task
@shortdoc "Creates an Erlang cookie and outputs the value to a file"
@moduledoc """
This task creates a "magic cookie" for the Erlang node
(see the "Security" section at http://erlang.org/doc/reference_manual/distributed.html)
Once the cookie has been cre... | 26.292308 | 127 | 0.689292 |
ff2577d68cf70dc0aebedfbf8219206508288ff5 | 930 | exs | Elixir | mix.exs | christopher-dG/osu-ex | ee1c4bc49e5c146a7bcd0d6b976a19d605d695ed | [
"MIT"
] | null | null | null | mix.exs | christopher-dG/osu-ex | ee1c4bc49e5c146a7bcd0d6b976a19d605d695ed | [
"MIT"
] | null | null | null | mix.exs | christopher-dG/osu-ex | ee1c4bc49e5c146a7bcd0d6b976a19d605d695ed | [
"MIT"
] | null | null | null | defmodule OsuEx.MixProject do
use Mix.Project
def project do
[
app: :osu_ex,
version: "0.2.0",
elixir: "~> 1.7",
start_permanent: Mix.env() == :prod,
deps: deps(),
package: package(),
name: "osu!ex",
description: "osu! tools for Elixir.",
source_url: "https... | 23.846154 | 76 | 0.548387 |
ff25b8f65ae1694699f568457c3b3423d4c6a78d | 1,744 | ex | Elixir | DIR819_v1.06/src/opensource/inadyn/inadyn-mt/debian/manpage.1.ex | Sirherobrine23/Dir819gpl_code | 8af92d65416198755974e3247b7bbe7f1151d525 | [
"BSD-2-Clause"
] | 1 | 2022-03-19T06:38:01.000Z | 2022-03-19T06:38:01.000Z | DIR819_v1.06/src/opensource/inadyn/inadyn-mt/debian/manpage.1.ex | Sirherobrine23/Dir819gpl_code | 8af92d65416198755974e3247b7bbe7f1151d525 | [
"BSD-2-Clause"
] | null | null | null | DIR819_v1.06/src/opensource/inadyn/inadyn-mt/debian/manpage.1.ex | Sirherobrine23/Dir819gpl_code | 8af92d65416198755974e3247b7bbe7f1151d525 | [
"BSD-2-Clause"
] | 1 | 2022-03-19T06:38:03.000Z | 2022-03-19T06:38:03.000Z | .\" Hey, EMACS: -*- nroff -*-
.\" First parameter, NAME, should be all caps
.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
.\" other parameters are allowed: see man(7), man(1)
.TH INADYN-MT SECTION "June 4, 2010"
.\" Please adjust this date whenever revising the ... | 29.066667 | 70 | 0.669725 |
ff25d5f6a47da4ac19fa448159b96e74a5529384 | 1,260 | ex | Elixir | lib/coxir/voice/server.ex | Xh4H/coxir | 72295f796e9e540891c63a21126be4d10e5841fc | [
"Apache-2.0"
] | null | null | null | lib/coxir/voice/server.ex | Xh4H/coxir | 72295f796e9e540891c63a21126be4d10e5841fc | [
"Apache-2.0"
] | 3 | 2018-08-27T06:12:34.000Z | 2018-10-19T05:42:34.000Z | lib/coxir/voice/server.ex | Xh4H/coxir | 72295f796e9e540891c63a21126be4d10e5841fc | [
"Apache-2.0"
] | null | null | null | defmodule Coxir.Voice.Server do
@moduledoc false
use Supervisor
alias Coxir.Voice.{Handler, Gateway, Audio}
def start_link(state) do
Supervisor.start_link __MODULE__, state
end
def init(state) do
state = state
|> Map.merge(
%{
server: self()
}
)
children = [
... | 16.8 | 45 | 0.571429 |
ff25e0d1b16fde49a745fca6ff8e7d2519ed7790 | 150 | ex | Elixir | web/controllers/page_controller.ex | koenighotze/callforpaper | 3ca57abc0cd8d857dedf20e70bce841264d0fe30 | [
"MIT"
] | 1 | 2017-01-25T21:34:37.000Z | 2017-01-25T21:34:37.000Z | web/controllers/page_controller.ex | koenighotze/callforpaper | 3ca57abc0cd8d857dedf20e70bce841264d0fe30 | [
"MIT"
] | 40 | 2017-02-09T07:22:25.000Z | 2020-10-28T13:43:12.000Z | web/controllers/page_controller.ex | koenighotze/callforpaper | 3ca57abc0cd8d857dedf20e70bce841264d0fe30 | [
"MIT"
] | null | null | null | defmodule Callforpapers.PageController do
use Callforpapers.Web, :controller
def index(conn, _params) do
render conn, "index.html"
end
end
| 18.75 | 41 | 0.753333 |
ff25f5d45f2dc04bfaf54a97219fc05d09251f27 | 3,671 | ex | Elixir | services/fc_identity/lib/fc_identity/policies/user_policy.ex | dclausen/freshcom | 7e1d6397c8ab222cfd03830232cee0718f050490 | [
"BSD-3-Clause"
] | null | null | null | services/fc_identity/lib/fc_identity/policies/user_policy.ex | dclausen/freshcom | 7e1d6397c8ab222cfd03830232cee0718f050490 | [
"BSD-3-Clause"
] | null | null | null | services/fc_identity/lib/fc_identity/policies/user_policy.ex | dclausen/freshcom | 7e1d6397c8ab222cfd03830232cee0718f050490 | [
"BSD-3-Clause"
] | null | null | null | defmodule FCIdentity.UserPolicy do
@moduledoc false
use OK.Pipe
alias FCIdentity.{
RegisterUser,
AddUser,
DeleteUser,
GeneratePasswordResetToken,
ChangePassword,
ChangeUserRole,
UpdateUserInfo,
GenerateEmailVerificationToken,
VerifyEmail
}
def authorize(%{requester_role:... | 34.308411 | 142 | 0.674476 |
ff2604530115560313d52f9491ed1ac6c7366488 | 2,679 | exs | Elixir | test/datafeed_test.exs | icanmakeitbetter/decipher_api | 3e2152f8fd87f4a92489d08e0bd4f53d18e3c0d2 | [
"MIT"
] | null | null | null | test/datafeed_test.exs | icanmakeitbetter/decipher_api | 3e2152f8fd87f4a92489d08e0bd4f53d18e3c0d2 | [
"MIT"
] | null | null | null | test/datafeed_test.exs | icanmakeitbetter/decipher_api | 3e2152f8fd87f4a92489d08e0bd4f53d18e3c0d2 | [
"MIT"
] | null | null | null | defmodule DecipherAPITest.DatafeedTest do
alias DecipherAPITest.Support.InMemoryHTTPClient
alias DecipherAPITest.Support.FakeData
alias DecipherAPI.Datafeed
alias DecipherAPI.Datafeed.ResultSet
use ExUnit.Case, async: true
@survey_id FakeData.survey_id()
@account_info FakeData.account_info
@datafeed Da... | 32.670732 | 101 | 0.637178 |
ff2614a70d2fd47227c1ddf5171b044eee23d2f2 | 1,134 | exs | Elixir | mix.exs | zvkemp/hmac_auth_ex | 8d6f4e68400807c01e9e6a8091ef308fe1f7d694 | [
"MIT"
] | 1 | 2021-05-11T18:34:46.000Z | 2021-05-11T18:34:46.000Z | mix.exs | zvkemp/hmac_auth_ex | 8d6f4e68400807c01e9e6a8091ef308fe1f7d694 | [
"MIT"
] | null | null | null | mix.exs | zvkemp/hmac_auth_ex | 8d6f4e68400807c01e9e6a8091ef308fe1f7d694 | [
"MIT"
] | null | null | null | defmodule HMACAuth.MixProject do
use Mix.Project
def project do
[app: :hmac_auth_ex,
version: "0.3.0",
elixir: "~> 1.3",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps(),
package: package(),
description: description(),
source_url: github_... | 20.618182 | 77 | 0.594356 |
ff2618f583ec4c21afce3ddb1e0143d0575ae457 | 2,595 | ex | Elixir | clients/fusion_tables/lib/google_api/fusion_tables/v2/model/template.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/fusion_tables/lib/google_api/fusion_tables/v2/model/template.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/fusion_tables/lib/google_api/fusion_tables/v2/model/template.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.854839 | 269 | 0.703276 |
ff26198e95297f6df1f715bdd9e46d1e6bff6343 | 1,574 | exs | Elixir | test/budget/calculations/daily_test.exs | corybuecker/simple-budget | d86241ff712552267da87052120468b01d2b8f41 | [
"MIT"
] | 2 | 2019-04-02T01:06:40.000Z | 2019-05-13T01:12:24.000Z | test/budget/calculations/daily_test.exs | corybuecker/simple-budget | d86241ff712552267da87052120468b01d2b8f41 | [
"MIT"
] | 7 | 2018-12-27T12:33:38.000Z | 2021-03-08T22:31:14.000Z | test/budget/calculations/daily_test.exs | corybuecker/simple-budget | d86241ff712552267da87052120468b01d2b8f41 | [
"MIT"
] | null | null | null | defmodule SimpleBudget.Calculations.DailyTest do
use SimpleBudget.DataCase
alias SimpleBudget.Accounts
alias SimpleBudget.Calculations.Daily
alias SimpleBudget.Goals
alias SimpleBudget.Savings
setup do
{:ok, credit} = Accounts.create_account(%{name: "some name", balance: 750, debt: false})
{:ok, _... | 31.48 | 93 | 0.634053 |
ff2626607d362ce42279484029d420eb50e2f6ce | 74,929 | ex | Elixir | clients/service_management/lib/google_api/service_management/v1/api/services.ex | ukrbublik/elixir-google-api | 364cec36bc76f60bec94cbcad34844367a29d174 | [
"Apache-2.0"
] | null | null | null | clients/service_management/lib/google_api/service_management/v1/api/services.ex | ukrbublik/elixir-google-api | 364cec36bc76f60bec94cbcad34844367a29d174 | [
"Apache-2.0"
] | null | null | null | clients/service_management/lib/google_api/service_management/v1/api/services.ex | ukrbublik/elixir-google-api | 364cec36bc76f60bec94cbcad34844367a29d174 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 48.185852 | 633 | 0.629703 |
ff265ab1b222eadefa332d4eceb4ae12a07ef57c | 457 | exs | Elixir | source/backend/api_app/config/test.exs | edwinvautier/aio-group3-proj01 | 2ca3d834f358a38692e8ae4d6266bbea130a6cb5 | [
"MIT"
] | 3 | 2020-04-05T15:26:55.000Z | 2020-06-17T15:01:33.000Z | source/backend/api_app/config/test.exs | edwinvautier/aio-group3-proj01 | 2ca3d834f358a38692e8ae4d6266bbea130a6cb5 | [
"MIT"
] | 48 | 2020-04-01T16:00:47.000Z | 2020-04-28T16:22:12.000Z | source/backend/api_app/config/test.exs | edwinvautier/aio-group3-proj01 | 2ca3d834f358a38692e8ae4d6266bbea130a6cb5 | [
"MIT"
] | 4 | 2020-03-30T15:36:55.000Z | 2020-06-17T15:01:36.000Z | use Mix.Config
# Configure your database
config :api_app, ApiApp.Repo,
username: "postgres",
password: "postgres",
database: "api_app_test",
hostname: "localhost",
pool: Ecto.Adapters.SQL.Sandbox
# We don't run a server during test. If one is required,
# you can enable the server option below.
config :api_a... | 24.052632 | 56 | 0.730853 |
ff265e1592d0951cf64a7aa83039cbeee6cd6356 | 89 | ex | Elixir | .env.ex | MindfulMinun/discord-haruka | 88bb12fa516423825364082a408054c3cec9f3ed | [
"MIT"
] | 2 | 2018-08-03T05:45:38.000Z | 2018-10-13T15:50:10.000Z | .env.ex | MindfulMinun/discord-haruka | 88bb12fa516423825364082a408054c3cec9f3ed | [
"MIT"
] | 8 | 2018-10-28T16:30:03.000Z | 2022-02-15T23:37:04.000Z | .env.ex | MindfulMinun/discord-haruka | 88bb12fa516423825364082a408054c3cec9f3ed | [
"MIT"
] | 1 | 2022-02-18T05:32:10.000Z | 2022-02-18T05:32:10.000Z | # Follow instructions in README.md
DISCORD_TOKEN=
KANJI_ALIVE_KEY=
WA_APPID=
HARUKA_OPS=
| 14.833333 | 34 | 0.831461 |
ff2668ff1fdeb3286e762ccc96f7dcee164d8919 | 2,260 | exs | Elixir | mix.exs | xinz/protox | 0baa4acd0ab6694fdb3d52fd875832c377028833 | [
"MIT"
] | null | null | null | mix.exs | xinz/protox | 0baa4acd0ab6694fdb3d52fd875832c377028833 | [
"MIT"
] | null | null | null | mix.exs | xinz/protox | 0baa4acd0ab6694fdb3d52fd875832c377028833 | [
"MIT"
] | null | null | null | defmodule Protox.Mixfile do
use Mix.Project
def project do
[
app: :protox,
version: "1.2.3",
elixir: "~> 1.7",
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
deps: deps(),
test_coverage: [tool: ExCoveralls],
elixirc_paths: elixirc_paths(... | 26.904762 | 101 | 0.564159 |
ff266b73bca5d46c6c5099cb89dcb748e84947ba | 2,014 | exs | Elixir | test/level/spaces/user_test.exs | pradyumna2905/level | 186878a128521074923edd7171eda2f1b181b4f4 | [
"Apache-2.0"
] | null | null | null | test/level/spaces/user_test.exs | pradyumna2905/level | 186878a128521074923edd7171eda2f1b181b4f4 | [
"Apache-2.0"
] | null | null | null | test/level/spaces/user_test.exs | pradyumna2905/level | 186878a128521074923edd7171eda2f1b181b4f4 | [
"Apache-2.0"
] | null | null | null | defmodule Level.Users.UserTest do
use Level.DataCase, async: true
alias Level.Users.User
describe "create_changeset/2" do
test "validates with valid data" do
changeset = User.create_changeset(%User{}, valid_user_params())
assert changeset.valid?
end
test "sets the default time zone if o... | 33.566667 | 77 | 0.682721 |
ff267cfbdd982843a9d81398e8de5010dd521394 | 27,867 | ex | Elixir | lib/mint/core/transport/ssl.ex | ryochin/mint | 1ea7731d921840ad75a47fa9415525c3d94b9980 | [
"Apache-2.0"
] | 477 | 2019-10-28T14:53:23.000Z | 2022-03-30T08:13:21.000Z | lib/mint/core/transport/ssl.ex | ryochin/mint | 1ea7731d921840ad75a47fa9415525c3d94b9980 | [
"Apache-2.0"
] | 108 | 2019-11-05T04:21:04.000Z | 2022-02-24T18:36:15.000Z | lib/mint/core/transport/ssl.ex | ryochin/mint | 1ea7731d921840ad75a47fa9415525c3d94b9980 | [
"Apache-2.0"
] | 56 | 2019-11-10T01:19:56.000Z | 2022-03-25T18:08:06.000Z | defmodule Mint.Core.Transport.SSL do
@moduledoc false
require Logger
require Record
@behaviour Mint.Core.Transport
# From RFC7540 appendix A
@blocked_ciphers MapSet.new([
{:null, :null, :null},
{:rsa, :null, :md5},
{:rsa, :null, :sha},
... | 38.226337 | 117 | 0.524599 |
ff269b67b30ce01b841732f127158ab3cff5f975 | 5,459 | ex | Elixir | apps/site/lib/trip_info.ex | noisecapella/dotcom | d5ef869412102d2230fac3dcc216f01a29726227 | [
"MIT"
] | 42 | 2019-05-29T16:05:30.000Z | 2021-08-09T16:03:37.000Z | apps/site/lib/trip_info.ex | noisecapella/dotcom | d5ef869412102d2230fac3dcc216f01a29726227 | [
"MIT"
] | 872 | 2019-05-29T17:55:50.000Z | 2022-03-30T09:28:43.000Z | apps/site/lib/trip_info.ex | noisecapella/dotcom | d5ef869412102d2230fac3dcc216f01a29726227 | [
"MIT"
] | 12 | 2019-07-01T18:33:21.000Z | 2022-03-10T02:13:57.000Z | defmodule TripInfo do
require Routes.Route
alias Fares.OneWay
@moduledoc """
Wraps the important information about a trip.
* route: the %Routes.Route{} the trip is on
* origin_id: the ID of the stop where we consider the trip to start.
This is either the real start, or the origin the user selected.
... | 33.906832 | 94 | 0.663675 |
ff26c67856a925794bc17d87e9e37192ed3b4f74 | 2,036 | exs | Elixir | apps/artemis/test/artemis/contexts/user_recognition/delete_user_recognition_test.exs | artemis-platform/artemis_teams | 9930c3d9528e37b76f0525390e32b66eed7eadde | [
"MIT"
] | 2 | 2020-04-23T02:29:18.000Z | 2020-07-07T13:13:17.000Z | apps/artemis/test/artemis/contexts/user_recognition/delete_user_recognition_test.exs | chrislaskey/artemis_teams | 9930c3d9528e37b76f0525390e32b66eed7eadde | [
"MIT"
] | 4 | 2020-04-26T20:35:36.000Z | 2020-11-10T22:13:19.000Z | apps/artemis/test/artemis/contexts/user_recognition/delete_user_recognition_test.exs | chrislaskey/artemis_teams | 9930c3d9528e37b76f0525390e32b66eed7eadde | [
"MIT"
] | null | null | null | defmodule Artemis.DeleteUserRecognitionTest do
use Artemis.DataCase
import Artemis.Factories
alias Artemis.UserRecognition
alias Artemis.DeleteUserRecognition
describe "call!" do
test "raises an exception when id not found" do
invalid_id = 50_000_000
assert_raise Artemis.Context.Error, fn ... | 27.513514 | 105 | 0.689587 |
ff26d1404ab49ffba03eb6c7beb4b12874e5f77f | 1,720 | ex | Elixir | elixir_runtime/lib/mix/tasks/build.ex | Sailias/aws-lambda-elixir-runtime | 70808bdebda270b8402a0b6ac875f0a948a920e6 | [
"MIT-0"
] | 3 | 2019-09-10T22:12:27.000Z | 2022-01-06T01:21:04.000Z | elixir_runtime/lib/mix/tasks/build.ex | StratoSpire/aws-lambda-elixir-runtime | 68259e321edf6e975a2e7e257a98603b243de87a | [
"MIT-0"
] | null | null | null | elixir_runtime/lib/mix/tasks/build.ex | StratoSpire/aws-lambda-elixir-runtime | 68259e321edf6e975a2e7e257a98603b243de87a | [
"MIT-0"
] | 2 | 2020-08-13T05:37:17.000Z | 2022-01-06T01:24:02.000Z | defmodule Mix.Tasks.Lambda.Build.Docker do
use Mix.Task
@shortdoc "Uses Docker to build a release zip for deployment to Lambda"
@moduledoc """
Uses Docker to build a release zip for deployment to Lambda.
```
mix lambda.build
```
## Examples
```
❯ mix lambda.build
Building elixir_lambda_exa... | 26.060606 | 80 | 0.590116 |
ff26d626ceb79427ccdf5754009bb36d20ae62dc | 3,595 | ex | Elixir | web/controllers/list_controller.ex | robot-overlord/todo-example | 2877bf3dc94e857a576fdc922c040c6af2f68ec0 | [
"MIT"
] | 1 | 2017-07-20T17:41:13.000Z | 2017-07-20T17:41:13.000Z | web/controllers/list_controller.ex | robot-overlord/todo-example | 2877bf3dc94e857a576fdc922c040c6af2f68ec0 | [
"MIT"
] | null | null | null | web/controllers/list_controller.ex | robot-overlord/todo-example | 2877bf3dc94e857a576fdc922c040c6af2f68ec0 | [
"MIT"
] | null | null | null | defmodule Todo.ListController do
alias Todo.{List, User, Item}
use Todo.Web, :controller
@spec index(Plug.Conn.t(), map()) :: Plug.Conn.t()
def index(conn, _params) do
render(conn, "index.html", lists: Repo.all(List), conn: conn)
end
@spec show(Plug.Conn.t(), map()) :: Plug.Conn.t()
def show(conn, %... | 30.726496 | 95 | 0.564673 |
ff26e10f8319609f8dfe128c17d47ea6fa8a23e8 | 3,240 | exs | Elixir | test/broker_test.exs | lafka/cicadabus | d40a9d8456dff80f81706a4425833b877abdcf36 | [
"BSD-3-Clause"
] | null | null | null | test/broker_test.exs | lafka/cicadabus | d40a9d8456dff80f81706a4425833b877abdcf36 | [
"BSD-3-Clause"
] | null | null | null | test/broker_test.exs | lafka/cicadabus | d40a9d8456dff80f81706a4425833b877abdcf36 | [
"BSD-3-Clause"
] | null | null | null | defmodule CicadaBus.BrokerTest do
use ExUnit.Case
alias CicadaBus.Event
alias CicadaBus
alias __MODULE__.Broker
defmodule Broker do
use CicadaBus.Handler
# this makes a queue but for each
deftopic "match/short/topic"
deftopic "match/wildcard/suffix/**"
deftopic "match/wildcard/*/path"
... | 26.341463 | 111 | 0.625926 |
ff26ed0aa54398a417cb4536c5645fe45e371b45 | 761 | ex | Elixir | test/support/channel_case.ex | swarut/movies-elixir-phoenix | d88f28c0e8c43529d3a28f98cce6034213a93b0d | [
"MIT"
] | 25 | 2015-10-26T18:20:30.000Z | 2022-01-28T17:53:01.000Z | test/support/channel_case.ex | swarut/movies-elixir-phoenix | d88f28c0e8c43529d3a28f98cce6034213a93b0d | [
"MIT"
] | 1 | 2015-10-28T08:43:36.000Z | 2015-10-28T08:43:36.000Z | test/support/channel_case.ex | swarut/movies-elixir-phoenix | d88f28c0e8c43529d3a28f98cce6034213a93b0d | [
"MIT"
] | 8 | 2016-08-10T16:26:02.000Z | 2021-09-29T06:11:39.000Z | defmodule MoviesElixirPhoenix.ChannelCase do
@moduledoc """
This module defines the test case to be used by
channel tests.
Such tests rely on `Phoenix.ChannelTest` and also
import other functionality to make it easier
to build and query models.
Finally, if the test case interacts with the database,
it... | 22.382353 | 56 | 0.726675 |
ff26fed4ff285d1f449b3360d58474965cfcca54 | 1,113 | exs | Elixir | config/config.exs | akshbn/larva | 396b3571c2f25b65d93739438819e52551d1f537 | [
"MIT"
] | null | null | null | config/config.exs | akshbn/larva | 396b3571c2f25b65d93739438819e52551d1f537 | [
"MIT"
] | null | null | null | config/config.exs | akshbn/larva | 396b3571c2f25b65d93739438819e52551d1f537 | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on this project, this
# file won't be loaded nor affect the paren... | 35.903226 | 73 | 0.750225 |
ff271ac86dc65ff98840f481379a6051fd863a50 | 271 | ex | Elixir | lib/porterage/deliverer_state.ex | mneudert/porterage | a49857a6e7b39e182c49b8f06275e83685b87b67 | [
"Apache-2.0"
] | 1 | 2020-01-13T23:59:51.000Z | 2020-01-13T23:59:51.000Z | lib/porterage/deliverer_state.ex | mneudert/porterage | a49857a6e7b39e182c49b8f06275e83685b87b67 | [
"Apache-2.0"
] | null | null | null | lib/porterage/deliverer_state.ex | mneudert/porterage | a49857a6e7b39e182c49b8f06275e83685b87b67 | [
"Apache-2.0"
] | null | null | null | defmodule Porterage.DelivererState do
@moduledoc false
alias Porterage.Deliverer
@type t :: %__MODULE__{
deliverer: module,
substate: Deliverer.state(),
supervisor: pid
}
defstruct [:deliverer, :substate, :supervisor]
end
| 19.357143 | 48 | 0.645756 |
ff271b927a6e33798772d9a2c9b8593a7ce5e183 | 1,216 | ex | Elixir | lib/squadster_web/views/error_helpers.ex | Squadster/squadster-api | cf04af79317148d7a08c649d5b5d0197722acb7a | [
"MIT"
] | null | null | null | lib/squadster_web/views/error_helpers.ex | Squadster/squadster-api | cf04af79317148d7a08c649d5b5d0197722acb7a | [
"MIT"
] | null | null | null | lib/squadster_web/views/error_helpers.ex | Squadster/squadster-api | cf04af79317148d7a08c649d5b5d0197722acb7a | [
"MIT"
] | null | null | null | defmodule SquadsterWeb.ErrorHelpers do
@moduledoc """
Conveniences for translating and building error messages.
"""
@doc """
Translates an error message using gettext.
"""
def translate_error({msg, opts}) do
# When using gettext, we typically pass the strings we want
# to translate as a static ar... | 35.764706 | 78 | 0.672697 |
ff27206eb0aaeeb0854db5cae023d2ba1291e05b | 881 | exs | Elixir | priv/repo/migrations/20180523013618_create_cms_jobs.exs | DavidAlphaFox/coderplanets_server | 3fd47bf3bba6cc04c9a34698201a60ad2f3e8254 | [
"Apache-2.0"
] | 1 | 2019-05-07T15:03:54.000Z | 2019-05-07T15:03:54.000Z | priv/repo/migrations/20180523013618_create_cms_jobs.exs | DavidAlphaFox/coderplanets_server | 3fd47bf3bba6cc04c9a34698201a60ad2f3e8254 | [
"Apache-2.0"
] | null | null | null | priv/repo/migrations/20180523013618_create_cms_jobs.exs | DavidAlphaFox/coderplanets_server | 3fd47bf3bba6cc04c9a34698201a60ad2f3e8254 | [
"Apache-2.0"
] | null | null | null | defmodule MastaniServer.Repo.Migrations.CreateCmsJobs do
use Ecto.Migration
def change do
create table(:cms_jobs) do
add(:title, :string)
add(:company, :string)
add(:bonus, :string)
add(:company_logo, :string)
add(:location, :string)
add(:desc, :text)
add(:body, :text)... | 28.419355 | 84 | 0.628831 |
ff273943a9951a617ce71312952c4211cff22789 | 6,762 | ex | Elixir | lib/util/env.ex | IvanPereyra-23/PaaS | 0179c7b57645473308b0a295a70b6284ed220fbf | [
"Apache-2.0"
] | 1 | 2020-08-27T18:43:11.000Z | 2020-08-27T18:43:11.000Z | lib/util/env.ex | IvanPereyra-23/PaaS | 0179c7b57645473308b0a295a70b6284ed220fbf | [
"Apache-2.0"
] | null | null | null | lib/util/env.ex | IvanPereyra-23/PaaS | 0179c7b57645473308b0a295a70b6284ed220fbf | [
"Apache-2.0"
] | 1 | 2020-08-27T18:43:21.000Z | 2020-08-27T18:43:21.000Z | # Copyright(c) 2015-2020 ACCESS CO., LTD. All rights reserved.
use Croma
defmodule Antikythera.Env do
@moduledoc """
Module to provide helpers to access environment variables defined by antikythera.
## Environments and deployments
Antikythera instances and gears may run in the following two modes:
- As a... | 47.286713 | 133 | 0.653505 |
ff274e69da7522c280805f6a6c1ffa9c874037b9 | 4,556 | ex | Elixir | clients/composer/lib/google_api/composer/v1beta1/model/status.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | null | null | null | clients/composer/lib/google_api/composer/v1beta1/model/status.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | null | null | null | clients/composer/lib/google_api/composer/v1beta1/model/status.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"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.37037 | 2,549 | 0.756365 |
ff275b64a999986afeaf0832d1fe9daed9fbcd54 | 2,583 | ex | Elixir | clients/health_care/lib/google_api/health_care/v1/model/deidentify_config.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/health_care/lib/google_api/health_care/v1/model/deidentify_config.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/health_care/lib/google_api/health_care/v1/model/deidentify_config.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 46.125 | 222 | 0.740612 |
ff27604f7d72393b065504a90d33b759d1134517 | 16,756 | ex | Elixir | lib/estructura/hooks.ex | am-kantox/estructura | e319603bbe629e9c15cd7f6521ae82b4cfa3bcc5 | [
"MIT"
] | 12 | 2022-01-21T21:13:30.000Z | 2022-02-06T03:06:24.000Z | lib/estructura/hooks.ex | am-kantox/estructura | e319603bbe629e9c15cd7f6521ae82b4cfa3bcc5 | [
"MIT"
] | 7 | 2022-01-21T05:55:54.000Z | 2022-03-28T11:01:09.000Z | lib/estructura/hooks.ex | am-kantox/estructura | e319603bbe629e9c15cd7f6521ae82b4cfa3bcc5 | [
"MIT"
] | 1 | 2022-02-01T21:19:00.000Z | 2022-02-01T21:19:00.000Z | defmodule Estructura.Hooks do
@moduledoc false
alias Estructura.Config, as: Cfg
@spec access_ast(boolean(), [Cfg.key()]) :: Macro.t()
defp access_ast(false, _fields), do: []
defp access_ast(lazy?, fields) when lazy? in [true, :lazy] and is_list(fields) do
opening =
quote generated: true, location... | 31.555556 | 97 | 0.536465 |
ff2760abd03d34b6f43d5e6a53a265be3ad7b222 | 243 | exs | Elixir | apps/ewallet_db/priv/repo/migrations/20171128175932_add_email_to_user_table.exs | vanmil/ewallet | 6c1aca95a83e0a9d93007670a40d8c45764a8122 | [
"Apache-2.0"
] | 2 | 2019-07-13T05:49:03.000Z | 2021-08-19T23:58:23.000Z | apps/ewallet_db/priv/repo/migrations/20171128175932_add_email_to_user_table.exs | vanmil/ewallet | 6c1aca95a83e0a9d93007670a40d8c45764a8122 | [
"Apache-2.0"
] | null | null | null | apps/ewallet_db/priv/repo/migrations/20171128175932_add_email_to_user_table.exs | vanmil/ewallet | 6c1aca95a83e0a9d93007670a40d8c45764a8122 | [
"Apache-2.0"
] | 3 | 2018-05-08T17:15:42.000Z | 2021-11-10T04:08:33.000Z | defmodule EWalletDB.Repo.Migrations.AddEmailToUserTable do
use Ecto.Migration
def change do
alter table(:user) do
add :email, :string
add :password_hash, :string
end
create unique_index(:user, [:email])
end
end
| 18.692308 | 58 | 0.691358 |
ff2784ea82d26a3c7f852d64147d3d067ab6b212 | 378 | ex | Elixir | apps/ewallet_api/lib/ewallet_api/v1/serializers/json/settings_serializer.ex | turbo-play/ewallet | b7fee3eed62ac716f46246132c2ead1045f2e4f3 | [
"Apache-2.0"
] | 2 | 2019-07-13T05:49:03.000Z | 2021-08-19T23:58:23.000Z | apps/ewallet_api/lib/ewallet_api/v1/serializers/json/settings_serializer.ex | turbo-play/ewallet | b7fee3eed62ac716f46246132c2ead1045f2e4f3 | [
"Apache-2.0"
] | null | null | null | apps/ewallet_api/lib/ewallet_api/v1/serializers/json/settings_serializer.ex | turbo-play/ewallet | b7fee3eed62ac716f46246132c2ead1045f2e4f3 | [
"Apache-2.0"
] | 3 | 2018-05-08T17:15:42.000Z | 2021-11-10T04:08:33.000Z | defmodule EWalletAPI.V1.JSON.SettingsSerializer do
@moduledoc """
Serializes provider settings data into V1 JSON response format.
"""
use EWalletAPI.V1
alias EWalletAPI.V1.JSON.MintedTokenSerializer
def serialize(%{minted_tokens: minted_tokens}) do
%{
object: "setting",
minted_tokens: Minte... | 25.2 | 67 | 0.740741 |
ff27addbd3ed1f359bcdb315aa6f5479e6866448 | 812 | exs | Elixir | test/capture_io_test.exs | lanalabs/IElixir | c185ce83649c268b7766e707481a3a49c525485b | [
"Apache-2.0"
] | 363 | 2015-07-12T07:36:38.000Z | 2022-03-23T22:48:41.000Z | test/capture_io_test.exs | lanalabs/IElixir | c185ce83649c268b7766e707481a3a49c525485b | [
"Apache-2.0"
] | 51 | 2015-07-30T08:40:46.000Z | 2021-12-03T09:18:58.000Z | test/capture_io_test.exs | lanalabs/IElixir | c185ce83649c268b7766e707481a3a49c525485b | [
"Apache-2.0"
] | 50 | 2015-07-30T05:31:58.000Z | 2021-12-03T09:15:58.000Z | defmodule IElixir.CaptureIOTest do
use ExUnit.Case
doctest IElixir.CaptureIO
require IElixir.CaptureIO, as: CIO
test "correct value for function result is returned" do
{"wombat", _, _} = CIO.capture do: "wombat"
end
test "stdout is passed back" do
{_, "one\ntwo\n", _} = CIO.capture do
IO.put... | 23.2 | 70 | 0.598522 |
ff27b0387c383eebb7c875dc8cb788e57c3f3a7c | 2,462 | ex | Elixir | lib/raxx/request.ex | cryic/raxx | a6e33f5dbd9b9344753b43c5d4eb4cbf838bdddf | [
"Apache-2.0"
] | null | null | null | lib/raxx/request.ex | cryic/raxx | a6e33f5dbd9b9344753b43c5d4eb4cbf838bdddf | [
"Apache-2.0"
] | null | null | null | lib/raxx/request.ex | cryic/raxx | a6e33f5dbd9b9344753b43c5d4eb4cbf838bdddf | [
"Apache-2.0"
] | null | null | null | defmodule Raxx.Request do
@moduledoc """
HTTP requests to a Raxx application are encapsulated in a `Raxx.Request` struct.
A request has all the properties of the url it was sent to.
In addition it has optional content, in the body.
As well as a variable number of headers that contain meta data.
Where appr... | 40.360656 | 244 | 0.651097 |
ff27bcb06b4c041ab2cb19b1cf965b34b5f8a19b | 82,186 | ex | Elixir | clients/ad_sense/lib/google_api/ad_sense/v2/api/accounts.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/ad_sense/lib/google_api/ad_sense/v2/api/accounts.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/ad_sense/lib/google_api/ad_sense/v2/api/accounts.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... | 51.559598 | 498 | 0.624498 |
ff27ca2522ffab2044bd683b219019d726fa625e | 3,547 | exs | Elixir | test/core/converter_test.exs | lizhaochao/Argx | d2fb6e346d824a2775603e2eb779bb588870636d | [
"MIT"
] | 2 | 2021-05-07T03:27:19.000Z | 2021-05-19T02:04:01.000Z | test/core/converter_test.exs | lizhaochao/Argx | d2fb6e346d824a2775603e2eb779bb588870636d | [
"MIT"
] | 1 | 2021-05-10T14:09:36.000Z | 2021-05-10T14:10:11.000Z | test/core/converter_test.exs | lizhaochao/Argx | d2fb6e346d824a2775603e2eb779bb588870636d | [
"MIT"
] | null | null | null | defmodule ConverterTest do
use ExUnit.Case
alias Argx.Converter, as: C
###
describe "convert - ok" do
test "integer" do
arg = {:total, "3"}
config = {
:total,
%Argx.Config{type: :integer, autoconvert: true, optional: false, empty: false}
}
assert {:total, 3} == C.... | 26.080882 | 86 | 0.519594 |
ff27de0f9ea59607f8d321ca9dc098bd591b670f | 2,533 | ex | Elixir | clients/firestore/lib/google_api/firestore/v1beta1/model/batch_get_documents_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/firestore/lib/google_api/firestore/v1beta1/model/batch_get_documents_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/firestore/lib/google_api/firestore/v1beta1/model/batch_get_documents_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 ... | 40.854839 | 126 | 0.726017 |
ff27e43af3879a759068cc609b8954b5a2dd2ae2 | 434 | ex | Elixir | lib/appsignal/utils/push_api_key_validator.ex | MeterSoft/appsignal-elixir | 52e3505b9dc90bce0795c4753a758d40bdf41463 | [
"MIT"
] | 234 | 2016-08-18T20:43:15.000Z | 2022-02-27T11:31:48.000Z | lib/appsignal/utils/push_api_key_validator.ex | MeterSoft/appsignal-elixir | 52e3505b9dc90bce0795c4753a758d40bdf41463 | [
"MIT"
] | 563 | 2016-07-25T17:45:14.000Z | 2022-03-21T11:39:29.000Z | lib/appsignal/utils/push_api_key_validator.ex | MeterSoft/appsignal-elixir | 52e3505b9dc90bce0795c4753a758d40bdf41463 | [
"MIT"
] | 86 | 2016-09-13T22:53:46.000Z | 2022-02-16T11:03:51.000Z | defmodule Appsignal.Utils.PushApiKeyValidator do
@moduledoc false
alias Appsignal.Transmitter
def validate(config) do
url = "#{config[:endpoint]}/1/auth?api_key=#{config[:push_api_key]}"
case Transmitter.request(:get, url) do
{:ok, 200, _, _} -> :ok
{:ok, 401, _, _} -> {:error, :invalid}
... | 27.125 | 72 | 0.619816 |
ff280ac504a39e2f8ae38242430b9b5d3f80e7d3 | 441 | exs | Elixir | apps/storage/priv/repo/migrations/20190201121431_create_aritlce.exs | anyex-project/anyex | d04018337bcec621f2e2e8d17773fa2724e3c6e1 | [
"MIT"
] | 12 | 2019-02-21T21:29:08.000Z | 2019-05-14T11:41:10.000Z | apps/storage/priv/repo/migrations/20190201121431_create_aritlce.exs | Hentioe/anyex | d04018337bcec621f2e2e8d17773fa2724e3c6e1 | [
"MIT"
] | 18 | 2019-02-05T17:19:33.000Z | 2019-03-13T13:38:08.000Z | apps/storage/priv/repo/migrations/20190201121431_create_aritlce.exs | Hentioe/anyex | d04018337bcec621f2e2e8d17773fa2724e3c6e1 | [
"MIT"
] | null | null | null | defmodule Storage.Repo.Migrations.CreateAritlce do
use Storage.Migration
def change do
create table(:article) do
add :qtext, :string, null: false, comment: "查询文本"
add :title, :string, null: false, comment: "文章标题"
add :preface, :text, comment: "文章前言"
add :content, :text, comment: "文章内容"
... | 24.5 | 55 | 0.650794 |
ff281f73620ddb78ef2a7148bcc8aa6c86585205 | 513 | ex | Elixir | elixir/lib/homework/users/user.ex | MilioFrankie/transactions-app | 5299526824393d2de3c4d6435286d665829991c5 | [
"MIT"
] | null | null | null | elixir/lib/homework/users/user.ex | MilioFrankie/transactions-app | 5299526824393d2de3c4d6435286d665829991c5 | [
"MIT"
] | 3 | 2021-09-02T19:01:31.000Z | 2022-02-27T11:09:27.000Z | elixir/lib/homework/users/user.ex | MilioFrankie/transactions-app | 5299526824393d2de3c4d6435286d665829991c5 | [
"MIT"
] | null | null | null | defmodule Homework.Users.User do
use Ecto.Schema
import Ecto.Changeset
alias Homework.Transactions.Transaction
@fields [:first_name, :last_name, :dob]
@primary_key {:id, :binary_id, autogenerate: true}
schema "users" do
field(:dob, :string)
field(:first_name, :string)
field(:last_name, :string)... | 21.375 | 52 | 0.688109 |
ff2821bc40ccc92a47677a1b1d821e1090f4bba3 | 146 | ex | Elixir | test/support/user.ex | milmazz/dataloader | a61f550a28820d2befcd94411f7b03163f30db30 | [
"MIT"
] | null | null | null | test/support/user.ex | milmazz/dataloader | a61f550a28820d2befcd94411f7b03163f30db30 | [
"MIT"
] | null | null | null | test/support/user.ex | milmazz/dataloader | a61f550a28820d2befcd94411f7b03163f30db30 | [
"MIT"
] | null | null | null | defmodule Dataloader.User do
use Ecto.Schema
schema "users" do
field(:username, :string)
has_many(:posts, Dataloader.Post)
end
end
| 16.222222 | 37 | 0.705479 |
ff282e0c2f7db2bd68716b2df2d170becae67301 | 2,287 | ex | Elixir | src/pollution_data_stream.ex | tomros766/pollution_server | 2f37fdf964ee60b41d57f8d1eeed35619801096a | [
"Apache-2.0"
] | null | null | null | src/pollution_data_stream.ex | tomros766/pollution_server | 2f37fdf964ee60b41d57f8d1eeed35619801096a | [
"Apache-2.0"
] | null | null | null | src/pollution_data_stream.ex | tomros766/pollution_server | 2f37fdf964ee60b41d57f8d1eeed35619801096a | [
"Apache-2.0"
] | null | null | null | defmodule PollutionDataStream do
@moduledoc false
def importLinesFromCSV(name \\ "pollution.csv") do
File.stream!(name)
end
def convertLine(line) do
[date, time, longitude, latitude, value] = line |> String.split(",")
parsedDate = date |> String.split("-") |> Enum.reverse() |> Enum.map( fn(x) -> el... | 42.351852 | 140 | 0.647136 |
ff28d6c91eb67a8bb6a6db00376b67e003401191 | 84 | exs | Elixir | test/tribevibe_web/views/page_view_test.exs | futurice/tribevibe-server | d51fa08528e6391ee50c98adf8696ca35af2c53d | [
"MIT"
] | null | null | null | test/tribevibe_web/views/page_view_test.exs | futurice/tribevibe-server | d51fa08528e6391ee50c98adf8696ca35af2c53d | [
"MIT"
] | null | null | null | test/tribevibe_web/views/page_view_test.exs | futurice/tribevibe-server | d51fa08528e6391ee50c98adf8696ca35af2c53d | [
"MIT"
] | null | null | null | defmodule TribevibeWeb.PageViewTest do
use TribevibeWeb.ConnCase, async: true
end
| 21 | 40 | 0.833333 |
ff28fbba92404f5343cb8e667b0acee1d0b7a554 | 1,864 | ex | Elixir | clients/big_query/lib/google_api/big_query/v2/model/query_parameter_type_struct_types.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/big_query/lib/google_api/big_query/v2/model/query_parameter_type_struct_types.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/big_query/lib/google_api/big_query/v2/model/query_parameter_type_struct_types.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... | 35.169811 | 128 | 0.721567 |
ff290c4dbfe68c38576dec5bca0fee538b1dfe5b | 1,518 | ex | Elixir | clients/content/lib/google_api/content/v21/model/weight.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v21/model/weight.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v21/model/weight.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 28.111111 | 100 | 0.693017 |
ff292c45d6d21fcde0f1c2aefe4d4110c3d5dbff | 126 | exs | Elixir | test/cdn_test.exs | AviKav/CDN | 5af2317e801e817dfc8d84dc431635e68694e915 | [
"MIT"
] | null | null | null | test/cdn_test.exs | AviKav/CDN | 5af2317e801e817dfc8d84dc431635e68694e915 | [
"MIT"
] | null | null | null | test/cdn_test.exs | AviKav/CDN | 5af2317e801e817dfc8d84dc431635e68694e915 | [
"MIT"
] | null | null | null | defmodule CdnTest do
use ExUnit.Case
doctest Cdn
test "greets the world" do
assert Cdn.hello() == :world
end
end
| 14 | 32 | 0.68254 |
ff2937abc8c9e41a9dbe6de72ede9036612b232a | 4,425 | exs | Elixir | farmbot_core/test/asset_workers/farm_event_worker/regimen_event_test.exs | adamswsk/farmbot_os | d177d3b74888c1e7bcbf8f8595818708ee97f73b | [
"MIT"
] | null | null | null | farmbot_core/test/asset_workers/farm_event_worker/regimen_event_test.exs | adamswsk/farmbot_os | d177d3b74888c1e7bcbf8f8595818708ee97f73b | [
"MIT"
] | null | null | null | farmbot_core/test/asset_workers/farm_event_worker/regimen_event_test.exs | adamswsk/farmbot_os | d177d3b74888c1e7bcbf8f8595818708ee97f73b | [
"MIT"
] | null | null | null | defmodule FarmbotCore.FarmEventWorker.RegimenEventTest do
use ExUnit.Case, async: true
alias FarmbotCore.FarmEventWorker.RegimenEvent
alias Farmbot.TestSupport.AssetFixtures
import ExUnit.CaptureLog
require Logger
use Mimic
@two_days_in_seconds 60 * 60 * 24 * 2
describe "regimen event scheduler" do
... | 26.339286 | 78 | 0.600452 |
ff293dc2560e1a4c696437c1639036d6da9bd086 | 1,844 | exs | Elixir | test/cased/publisher/http_test.exs | cased/cased-elixir | a19a4c5d6dec3374c1067a908b357db798cfb2c8 | [
"MIT"
] | 3 | 2021-02-06T01:41:33.000Z | 2021-07-09T21:19:06.000Z | test/cased/publisher/http_test.exs | cased/cased-elixir | a19a4c5d6dec3374c1067a908b357db798cfb2c8 | [
"MIT"
] | 1 | 2021-07-09T20:34:35.000Z | 2021-07-09T20:35:29.000Z | test/cased/publisher/http_test.exs | cased/cased-elixir | a19a4c5d6dec3374c1067a908b357db798cfb2c8 | [
"MIT"
] | 2 | 2021-03-05T22:52:16.000Z | 2021-03-18T13:18:30.000Z | defmodule Cased.Publisher.HTTPTest do
use ExUnit.Case, async: true
import ExUnit.CaptureLog
import Cased.TestHelper
@key "publish_test_abcd"
setup context do
bypass = Bypass.open()
publisher =
start_supervised!(
{Cased.Publisher.HTTP,
key: @key, url: "http://localhost:#{bypas... | 29.741935 | 96 | 0.643167 |
ff29409365a62e1dbcaf30183f944d8723bb7406 | 83 | exs | Elixir | test/r_list/support_test.exs | tashirosota/ex-rubenium | 0ddb30c31b678889a65dae7674ab7010e1dd7c5e | [
"Apache-2.0"
] | 24 | 2022-01-13T23:13:11.000Z | 2022-03-27T18:02:39.000Z | test/r_list/support_test.exs | tashirosota/ex-rubenium | 0ddb30c31b678889a65dae7674ab7010e1dd7c5e | [
"Apache-2.0"
] | 16 | 2022-01-16T09:18:17.000Z | 2022-02-08T01:10:09.000Z | test/r_list/support_test.exs | tashirosota/ex-rubenium | 0ddb30c31b678889a65dae7674ab7010e1dd7c5e | [
"Apache-2.0"
] | 6 | 2022-01-16T04:40:42.000Z | 2022-02-07T14:56:26.000Z | defmodule RList.RList.SupportTest do
use ExUnit.Case
doctest RList.Support
end
| 16.6 | 36 | 0.807229 |
ff295f06b1165816c84d4c927cbe62b01196cc64 | 2,843 | ex | Elixir | lib/ecto/query/builder/dynamic.ex | joerichsen/ecto | 13e22d1f2a18f5698d5b0db5112f3936cab86ae8 | [
"Apache-2.0"
] | 1 | 2022-01-24T07:32:34.000Z | 2022-01-24T07:32:34.000Z | lib/ecto/query/builder/dynamic.ex | joerichsen/ecto | 13e22d1f2a18f5698d5b0db5112f3936cab86ae8 | [
"Apache-2.0"
] | null | null | null | lib/ecto/query/builder/dynamic.ex | joerichsen/ecto | 13e22d1f2a18f5698d5b0db5112f3936cab86ae8 | [
"Apache-2.0"
] | null | null | null | import Kernel, except: [apply: 2]
defmodule Ecto.Query.Builder.Dynamic do
@moduledoc false
alias Ecto.Query.Builder
@doc """
Builds a dynamic expression.
"""
@spec build([Macro.t], Macro.t, Macro.Env.t) :: Macro.t
def build(binding, expr, env) do
{query, vars} = Builder.escape_binding(quote(do: que... | 37.407895 | 104 | 0.609919 |
ff298863d7de65e6dccb02c6abc072a44e2d0deb | 2,062 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/user_role_permission_groups_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/dfa_reporting/lib/google_api/dfa_reporting/v33/model/user_role_permission_groups_list_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/user_role_permission_groups_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 ... | 36.821429 | 218 | 0.757032 |
ff29a1df3b7e694432c9fdcf4012f9a02070526b | 2,291 | exs | Elixir | apps/snitch_core/test/data/model/product_review_test.exs | saurabharch/avia | 74a82a95cf8bfe8143d1fce8136a3bb7ffc9467c | [
"MIT"
] | 1 | 2018-12-01T18:13:55.000Z | 2018-12-01T18:13:55.000Z | apps/snitch_core/test/data/model/product_review_test.exs | saurabharch/avia | 74a82a95cf8bfe8143d1fce8136a3bb7ffc9467c | [
"MIT"
] | null | null | null | apps/snitch_core/test/data/model/product_review_test.exs | saurabharch/avia | 74a82a95cf8bfe8143d1fce8136a3bb7ffc9467c | [
"MIT"
] | null | null | null | defmodule Snitch.Data.Model.ProductReviewTest do
use ExUnit.Case, async: true
use Snitch.DataCase
import Snitch.Factory
alias Snitch.Data.Model.ProductReview
setup do
product = insert(:product)
[product: product]
end
setup :rating_options
@tag rating_option_count: 1
test "create product rev... | 31.819444 | 74 | 0.695766 |
ff29cbeb1ee43ae5fa9dd31f0eca3058703e6df5 | 2,031 | exs | Elixir | test/commands/alias/create_test.exs | matusf/cog | 71708301c7dc570fb0d3498a50f47a70ef957788 | [
"Apache-2.0"
] | 1,003 | 2016-02-23T17:21:12.000Z | 2022-02-20T14:39:35.000Z | test/commands/alias/create_test.exs | matusf/cog | 71708301c7dc570fb0d3498a50f47a70ef957788 | [
"Apache-2.0"
] | 906 | 2016-02-22T22:54:19.000Z | 2022-03-11T15:19:43.000Z | test/commands/alias/create_test.exs | matusf/cog | 71708301c7dc570fb0d3498a50f47a70ef957788 | [
"Apache-2.0"
] | 95 | 2016-02-23T13:42:31.000Z | 2021-11-30T14:39:55.000Z | defmodule Cog.Test.Commands.Alias.CreateTest do
use Cog.CommandCase, command_module: Cog.Commands.Alias
alias Cog.Commands.Alias.Create
import Cog.Support.ModelUtilities, only: [with_alias: 3,
get_alias: 2,
user: 1]
setup ... | 30.313433 | 112 | 0.585426 |
ff29d13d47f3c12717c4cbb08b9c3e8667cd6099 | 2,094 | ex | Elixir | clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1__speech_context.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1__speech_context.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1__speech_context.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.103448 | 136 | 0.748329 |
ff29fe0e89530b91f7cd593df4ca45853cd81ef2 | 1,061 | exs | Elixir | mix.exs | knewter/ecto | faacfeef25e35c42b1e97323b03d5bed9ba51416 | [
"Apache-2.0"
] | null | null | null | mix.exs | knewter/ecto | faacfeef25e35c42b1e97323b03d5bed9ba51416 | [
"Apache-2.0"
] | null | null | null | mix.exs | knewter/ecto | faacfeef25e35c42b1e97323b03d5bed9ba51416 | [
"Apache-2.0"
] | null | null | null | defmodule Ecto.Mixfile do
use Mix.Project
def project do
[ app: :ecto,
version: "0.0.1",
deps: deps(Mix.env),
env: envs,
name: "Ecto",
elixir: "~> 0.11.0",
source_url: "https://github.com/elixir-lang/ecto",
docs: fn -> [
source_ref: System.cmd("git rev-parse --... | 21.22 | 70 | 0.574929 |
ff2a04492acb54f6c3071751d965481678a1829e | 1,700 | exs | Elixir | config/config.exs | NorifumiKawamoto/ginjyo | 8e28438db4675bb55ba090614c6834190adb61b1 | [
"MIT"
] | null | null | null | config/config.exs | NorifumiKawamoto/ginjyo | 8e28438db4675bb55ba090614c6834190adb61b1 | [
"MIT"
] | null | null | null | config/config.exs | NorifumiKawamoto/ginjyo | 8e28438db4675bb55ba090614c6834190adb61b1 | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
#
# This configuration file is loaded before any dependency and
# is restricted to this project.
use Mix.Config
# Configures the endpoint
config :ginjyo, Ginjyo.Endpoint,
url: [host: "localhost"]... | 26.153846 | 71 | 0.722941 |
ff2a0cb1adcc37a91097b645e842f770d70d09ce | 554 | ex | Elixir | lib/pipe_converter/cli.ex | marocchino/pipe_converter | a847df3a59ae8e396c862af32b844ecdb56e4e70 | [
"MIT"
] | 6 | 2016-11-08T08:33:56.000Z | 2021-02-02T05:44:36.000Z | lib/pipe_converter/cli.ex | marocchino/pipe_converter | a847df3a59ae8e396c862af32b844ecdb56e4e70 | [
"MIT"
] | null | null | null | lib/pipe_converter/cli.ex | marocchino/pipe_converter | a847df3a59ae8e396c862af32b844ecdb56e4e70 | [
"MIT"
] | 1 | 2021-02-02T05:44:44.000Z | 2021-02-02T05:44:44.000Z | defmodule PipeConverter.CLI do
@moduledoc """
Parse options and run script
"""
alias PipeConverter.Tree
def main(args \\ []) do
parse_args(args) |> response() |> IO.puts()
end
defp parse_args(args) do
{opts, [code | _], _} = OptionParser.parse(args, switches: [revert: :boolean])
{opts, code}... | 23.083333 | 82 | 0.658845 |
ff2a452f2b6cd32fa1cc0e18cfca3acfefe7b502 | 5,351 | ex | Elixir | lib/changelog_web/meta/title.ex | akoutmos/changelog.com | 395459cf825764c002ad93794824986b76cf9b10 | [
"MIT"
] | null | null | null | lib/changelog_web/meta/title.ex | akoutmos/changelog.com | 395459cf825764c002ad93794824986b76cf9b10 | [
"MIT"
] | null | null | null | lib/changelog_web/meta/title.ex | akoutmos/changelog.com | 395459cf825764c002ad93794824986b76cf9b10 | [
"MIT"
] | null | null | null | defmodule ChangelogWeb.Meta.Title do
alias ChangelogWeb.{
AuthView,
EpisodeView,
EpisodeRequestView,
LiveView,
NewsItemView,
NewsSourceView,
PageView,
PersonView,
PodcastView,
PostView,
TopicView,
Helpers.SharedHelpers,
SearchView
}
@default "News and podcasts ... | 27.025253 | 112 | 0.652588 |
ff2aaa79f796e8378df4eae353b729a46eb2fb50 | 1,661 | exs | Elixir | config/dev.exs | jennifertakagi/chewiepay | 15b5eca89f56e2933610f3edda7412889dc08137 | [
"MIT"
] | 4 | 2021-02-22T18:27:51.000Z | 2021-02-28T21:54:12.000Z | config/dev.exs | jennifertakagi/chewiepay | 15b5eca89f56e2933610f3edda7412889dc08137 | [
"MIT"
] | null | null | null | config/dev.exs | jennifertakagi/chewiepay | 15b5eca89f56e2933610f3edda7412889dc08137 | [
"MIT"
] | null | null | null | use Mix.Config
# Configure your database
config :chewiepay, Chewiepay.Repo,
username: "postgres",
password: "postgres",
database: "chewiepay_dev",
hostname: "localhost",
show_sensitive_data_on_connection_error: true,
pool_size: 10
# For development, we disable any cache and enable
# debugging and code rel... | 28.637931 | 68 | 0.727875 |
ff2ab60df359c4f23971fe77ad417498e2581602 | 1,980 | exs | Elixir | src/server/config/prod.exs | bryceklinker/trader | 9fb06bf7638e2434802b0414ac9bea46cf4f94c9 | [
"MIT"
] | null | null | null | src/server/config/prod.exs | bryceklinker/trader | 9fb06bf7638e2434802b0414ac9bea46cf4f94c9 | [
"MIT"
] | null | null | null | src/server/config/prod.exs | bryceklinker/trader | 9fb06bf7638e2434802b0414ac9bea46cf4f94c9 | [
"MIT"
] | null | null | null | use Mix.Config
# For production, we configure the host to read the PORT
# from the system environment. Therefore, you will need
# to set PORT=80 before running your server.
#
# You should also configure the url host to something
# meaningful, we use this information when generating URLs.
#
# Finally, we also include t... | 31.935484 | 67 | 0.712121 |
ff2ac856a123d833f0e576f62e856b9d3c4c9f73 | 4,232 | ex | Elixir | deps/credo/lib/credo/execution.ex | BandanaPandey/nary_tree | fb1eeb69e38e43c9f9ffb54297cef52dff5c928d | [
"MIT"
] | 13 | 2018-09-19T21:03:29.000Z | 2022-01-27T04:06:32.000Z | deps/credo/lib/credo/execution.ex | BandanaPandey/nary_tree | fb1eeb69e38e43c9f9ffb54297cef52dff5c928d | [
"MIT"
] | 1 | 2020-05-26T04:16:57.000Z | 2020-05-26T04:16:57.000Z | deps/credo/lib/credo/execution.ex | BandanaPandey/nary_tree | fb1eeb69e38e43c9f9ffb54297cef52dff5c928d | [
"MIT"
] | 3 | 2020-05-21T04:32:08.000Z | 2021-07-28T05:14:01.000Z | defmodule Credo.Execution do
@doc """
Every run of Credo is configured via a `Execution` struct, which is created and
manipulated via the `Credo.Execution` module.
"""
defstruct argv: [],
cli_options: nil,
# config
files: nil,
... | 25.04142 | 100 | 0.592864 |
ff2ae01655a55ad6d5ba3199921e0f6c45521f19 | 3,365 | exs | Elixir | test/elixir_google_scraper_web/controllers/user_confirmation_controller_test.exs | junan/elixir_google_scraper | d032f3a9d5a30e354f1e6d607434670334936630 | [
"MIT"
] | null | null | null | test/elixir_google_scraper_web/controllers/user_confirmation_controller_test.exs | junan/elixir_google_scraper | d032f3a9d5a30e354f1e6d607434670334936630 | [
"MIT"
] | 25 | 2021-05-21T02:23:37.000Z | 2021-07-09T09:22:32.000Z | test/elixir_google_scraper_web/controllers/user_confirmation_controller_test.exs | junan/elixir_google_scraper | d032f3a9d5a30e354f1e6d607434670334936630 | [
"MIT"
] | null | null | null | defmodule ElixirGoogleScraperWeb.UserConfirmationControllerTest do
use ElixirGoogleScraperWeb.ConnCase, async: true
import ElixirGoogleScraper.AccountsFixtures
alias ElixirGoogleScraper.Account.Users
alias ElixirGoogleScraper.Account.Schemas.{User, UserToken}
alias ElixirGoogleScraper.Repo
setup do
%{... | 35.052083 | 94 | 0.651709 |
ff2b7e7e986af135569a3231cf97f6cc014688d7 | 83 | ex | Elixir | examples/uniswap_v2/events/sync.ex | AwaitFuture/slurp | f1d0fe5feb21f3135727c1516908e89130ea5801 | [
"MIT"
] | 20 | 2021-01-02T07:45:04.000Z | 2022-03-29T07:34:42.000Z | examples/uniswap_v2/events/sync.ex | AwaitFuture/slurp | f1d0fe5feb21f3135727c1516908e89130ea5801 | [
"MIT"
] | 11 | 2021-01-25T13:10:34.000Z | 2021-09-23T05:34:08.000Z | examples/uniswap_v2/events/sync.ex | AwaitFuture/slurp | f1d0fe5feb21f3135727c1516908e89130ea5801 | [
"MIT"
] | 1 | 2021-03-12T07:27:05.000Z | 2021-03-12T07:27:05.000Z | defmodule Examples.UniswapV2.Events.Sync do
defstruct ~w[reserve0 reserve1]a
end
| 20.75 | 43 | 0.819277 |
ff2b818dbeaae963302d918e2e2b9ecc09312809 | 584 | exs | Elixir | mix.exs | sorentwo/euler | 76244a0ef3dcfa17d6b9571daa5d0b46f09057f4 | [
"MIT"
] | 8 | 2015-11-04T05:03:05.000Z | 2022-01-25T19:34:46.000Z | mix.exs | sorentwo/euler | 76244a0ef3dcfa17d6b9571daa5d0b46f09057f4 | [
"MIT"
] | null | null | null | mix.exs | sorentwo/euler | 76244a0ef3dcfa17d6b9571daa5d0b46f09057f4 | [
"MIT"
] | null | null | null | defmodule Euler.Mixfile do
use Mix.Project
def project do
[app: :euler,
version: "0.0.1",
elixir: "~> 1.0",
deps: deps]
end
# Configuration for the OTP application
#
# Type `mix help compile.app` for more information
def application do
[applications: [:logger]]
end
# Dependen... | 18.83871 | 77 | 0.604452 |
ff2b95c3c114edaa08224b6934cec216f6fcad7b | 453 | ex | Elixir | lib/mix/tasks/phx_up.gen.p.ex | adolfont/phoenix_up | 97b9ba4c0a0696d9197a0466adfd71433353cc1f | [
"MIT"
] | 27 | 2020-02-22T21:15:33.000Z | 2021-12-25T07:31:14.000Z | lib/mix/tasks/phx_up.gen.p.ex | adolfont/phoenix_up | 97b9ba4c0a0696d9197a0466adfd71433353cc1f | [
"MIT"
] | 1 | 2020-03-07T12:14:12.000Z | 2020-03-07T12:14:12.000Z | lib/mix/tasks/phx_up.gen.p.ex | adolfont/phoenix_up | 97b9ba4c0a0696d9197a0466adfd71433353cc1f | [
"MIT"
] | 2 | 2020-03-03T13:09:08.000Z | 2020-07-24T05:07:45.000Z | defmodule Mix.Tasks.PhxUp.Gen.P do
@shortdoc false
@moduledoc false
use Mix.Task
@doc false
def run(io_puts \\ true, args) do
if io_puts == true do
IO.puts("""
_ __ __ _____
___| |_ _ _ | | | _ |
| . | |_'_| | | | __|
| _|_|_|_,_|_____|... | 20.590909 | 46 | 0.461369 |
ff2b9f0c19d23e90cdd5f925fc318ec351eaafb1 | 1,001 | exs | Elixir | lib/perspective/event_chain/current_page/tests/current_page_test.exs | backmath/perspective | a0a577d0ffb06805b64e4dcb171a093e051884b0 | [
"MIT"
] | 2 | 2020-04-24T19:43:06.000Z | 2020-04-24T19:52:27.000Z | lib/perspective/event_chain/current_page/tests/current_page_test.exs | backmath/perspective | a0a577d0ffb06805b64e4dcb171a093e051884b0 | [
"MIT"
] | null | null | null | lib/perspective/event_chain/current_page/tests/current_page_test.exs | backmath/perspective | a0a577d0ffb06805b64e4dcb171a093e051884b0 | [
"MIT"
] | null | null | null | defmodule Perspective.EventChain.CurrentPage.Test do
use ExUnit.Case, async: true
use Perspective.BootAppPerTest
test "initial load returns a empty events" do
assert %Perspective.EventChain.CurrentPage.State{events: events} = Perspective.EventChain.CurrentPage.get()
assert events == []
end
test "wr... | 25.666667 | 111 | 0.674326 |
ff2bcbbaf0021051bb38fe17bd5ac6cf84821886 | 1,417 | exs | Elixir | apps/etv_web/config/dev.exs | sheharyarn/etv | 65b96e436d5fe6fa11bfb293fa676f0bbf2d5121 | [
"MIT"
] | 2 | 2020-01-13T09:34:04.000Z | 2021-05-19T07:51:07.000Z | apps/etv_web/config/dev.exs | sheharyarn/etv | 65b96e436d5fe6fa11bfb293fa676f0bbf2d5121 | [
"MIT"
] | null | null | null | apps/etv_web/config/dev.exs | sheharyarn/etv | 65b96e436d5fe6fa11bfb293fa676f0bbf2d5121 | [
"MIT"
] | 2 | 2018-09-01T20:58:11.000Z | 2021-05-19T07:51:11.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 :etv_web, ETV.Web.Endpoint,
http: [port: 4000]... | 31.488889 | 170 | 0.678193 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.