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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0396358cbece17cd210bd953d46c0500c4e264f2 | 2,078 | ex | Elixir | lib/ash_thrift.ex | arisechurch/ash_thrift | 96416cbb34d543758c52813b1137959b309eb602 | [
"MIT"
] | null | null | null | lib/ash_thrift.ex | arisechurch/ash_thrift | 96416cbb34d543758c52813b1137959b309eb602 | [
"MIT"
] | null | null | null | lib/ash_thrift.ex | arisechurch/ash_thrift | 96416cbb34d543758c52813b1137959b309eb602 | [
"MIT"
] | null | null | null | defmodule AshThrift do
defmodule Namespace do
@type t :: %__MODULE__{
language: atom(),
name: String.t()
}
defstruct [:language, :name]
end
defmodule Field do
@type t :: %__MODULE__{
id: non_neg_integer(),
attribute: atom(),
optio... | 27.342105 | 93 | 0.493263 |
03964578f65ae33636c1792fe199bac96b0f0025 | 9,114 | exs | Elixir | test/tesla_test.exs | brenomaia/tesla | c1e0f2d031eb87a207db33333b8d4afc58384e87 | [
"MIT"
] | 1 | 2022-01-22T16:59:48.000Z | 2022-01-22T16:59:48.000Z | test/tesla_test.exs | brenomaia/tesla | c1e0f2d031eb87a207db33333b8d4afc58384e87 | [
"MIT"
] | null | null | null | test/tesla_test.exs | brenomaia/tesla | c1e0f2d031eb87a207db33333b8d4afc58384e87 | [
"MIT"
] | 1 | 2021-09-26T18:49:44.000Z | 2021-09-26T18:49:44.000Z | defmodule TeslaTest do
use ExUnit.Case
doctest Tesla
require Tesla
@url "http://localhost:#{Application.get_env(:httparrot, :http_port)}"
describe "Adapters" do
defmodule ModuleAdapter do
def call(env, opts) do
{:ok, Map.put(env, :url, env.url <> "/module/" <> opts[:with])}
end
... | 28.304348 | 98 | 0.596555 |
03966842e16018d9641d858a55ff6fc28b78660a | 2,764 | exs | Elixir | 27-frank-2.exs | lbiru/30-days-of-elixir | 8472b6bf4a2f0a12dc6aea930abde2d50867b460 | [
"MIT"
] | 3,040 | 2015-01-01T00:26:22.000Z | 2022-03-17T04:10:43.000Z | 27-frank-2.exs | tifazxy/30-days-of-elixir | 1d3e5cc1580ecbfdf9bd8eafed6ed68cb681404a | [
"MIT"
] | 29 | 2015-01-03T02:36:47.000Z | 2019-05-20T13:01:52.000Z | 27-frank-2.exs | tifazxy/30-days-of-elixir | 1d3e5cc1580ecbfdf9bd8eafed6ed68cb681404a | [
"MIT"
] | 520 | 2015-01-01T09:43:36.000Z | 2022-03-19T00:02:22.000Z | # A micro web DSL library called "Frank"
# The motivation was mainly to learn about macros.
#
# This version is only slightly better than the last...
# It still does not support paths with regex match :-(
#
# Improvements over the last version are:
# * define methods as `def handle(path, data)` instead of `def path(dat... | 24.245614 | 111 | 0.611071 |
0396779fe7fb1519215d110ab62757cdc335d559 | 1,706 | ex | Elixir | lib/online_editor_web/endpoint.ex | zzats/online-editor | 2532315b40c974fe766e960e0b0933773907906d | [
"MIT"
] | null | null | null | lib/online_editor_web/endpoint.ex | zzats/online-editor | 2532315b40c974fe766e960e0b0933773907906d | [
"MIT"
] | null | null | null | lib/online_editor_web/endpoint.ex | zzats/online-editor | 2532315b40c974fe766e960e0b0933773907906d | [
"MIT"
] | null | null | null | defmodule OnlineEditorWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :online_editor
socket "/socket", OnlineEditorWeb.UserSocket
# Serve at "/" the static files from "priv/static" directory.
#
# You should set gzip to true if you are running phoenix.digest
# when deploying your static files in production.... | 29.413793 | 95 | 0.712778 |
039677ee053c1f12d778b9fa6fb30ab8823fef9a | 4,260 | ex | Elixir | lib/level/resolvers/post_connection.ex | denismitr/level | 0b01b0e46c252510dd50b3558d987c6f1e0b1da9 | [
"Apache-2.0"
] | 1 | 2019-06-11T20:20:32.000Z | 2019-06-11T20:20:32.000Z | lib/level/resolvers/post_connection.ex | denismitr/level | 0b01b0e46c252510dd50b3558d987c6f1e0b1da9 | [
"Apache-2.0"
] | null | null | null | lib/level/resolvers/post_connection.ex | denismitr/level | 0b01b0e46c252510dd50b3558d987c6f1e0b1da9 | [
"Apache-2.0"
] | null | null | null | defmodule Level.Resolvers.PostConnection do
@moduledoc """
A paginated connection for fetching a user's mentioned posts.
"""
import Ecto.Query, warn: false
alias Level.Pagination
alias Level.Pagination.Args
alias Level.Posts
alias Level.Schemas.Group
alias Level.Schemas.Space
defstruct first: nil... | 30.869565 | 96 | 0.610329 |
0396c4c34d34490b3ad77ab22742597a7c48c429 | 1,116 | ex | Elixir | lib/queuerbackend_web/controllers/queue_controller.ex | ayushpandey8439/QueuerBackend | 36195b98e02ee8af2b8ba95b9a73547887efb9ce | [
"MIT"
] | null | null | null | lib/queuerbackend_web/controllers/queue_controller.ex | ayushpandey8439/QueuerBackend | 36195b98e02ee8af2b8ba95b9a73547887efb9ce | [
"MIT"
] | null | null | null | lib/queuerbackend_web/controllers/queue_controller.ex | ayushpandey8439/QueuerBackend | 36195b98e02ee8af2b8ba95b9a73547887efb9ce | [
"MIT"
] | null | null | null | import Ecto.Query
import Jason
defmodule QueuerbackendWeb.QueueController do
use QueuerbackendWeb, :controller
alias Queuerbackend.{Repo,Queue}
@spec index(Plug.Conn.t(), any) :: Plug.Conn.t()
def index(conn, _params) do
fieldMap = [:name , :head, :queuers]
query = from q in Queue, select: map( q , ^fi... | 31.885714 | 168 | 0.638889 |
0396e028f61422a7822e3f998f610e29dac9bbe4 | 1,558 | exs | Elixir | test/constructs/for_test.exs | EddyLane/surface | 1f13259cbdf81b5a4740ee13349a48f8b6c54bb5 | [
"MIT"
] | 1 | 2020-12-29T10:43:19.000Z | 2020-12-29T10:43:19.000Z | test/constructs/for_test.exs | EddyLane/surface | 1f13259cbdf81b5a4740ee13349a48f8b6c54bb5 | [
"MIT"
] | null | null | null | test/constructs/for_test.exs | EddyLane/surface | 1f13259cbdf81b5a4740ee13349a48f8b6c54bb5 | [
"MIT"
] | null | null | null | defmodule Surface.Constructs.ForTest do
use Surface.ConnCase, async: true
defmodule ListProp do
use Surface.Component
prop prop, :list
def render(assigns) do
~H"""
List?: {{ is_list(@prop) }}
<span :for={{ v <- @prop }}>value: {{inspect(v)}}</span>
"""
end
end
test "i... | 22.257143 | 98 | 0.537869 |
0397339468b1cc5cfc3391f190770965b4e72a98 | 1,088 | exs | Elixir | clients/network_connectivity/test/test_helper.exs | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/network_connectivity/test/test_helper.exs | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/network_connectivity/test/test_helper.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... | 30.222222 | 83 | 0.744485 |
03974cb68e62c0e46f2614252b89430554b679ea | 66 | ex | Elixir | lib/tnd_web/views/user_reset_password_view.ex | tndrpg/tnd | a9a348ed7ce2f3d8f55046559f9551e2607f3236 | [
"0BSD"
] | null | null | null | lib/tnd_web/views/user_reset_password_view.ex | tndrpg/tnd | a9a348ed7ce2f3d8f55046559f9551e2607f3236 | [
"0BSD"
] | 1 | 2021-05-11T14:31:58.000Z | 2021-05-11T14:31:58.000Z | lib/tnd_web/views/user_reset_password_view.ex | tndrpg/tnd | a9a348ed7ce2f3d8f55046559f9551e2607f3236 | [
"0BSD"
] | null | null | null | defmodule TndWeb.UserResetPasswordView do
use TndWeb, :view
end
| 16.5 | 41 | 0.818182 |
03974eca72d2930a9e1331c5ea7fa3b59d657b98 | 1,164 | ex | Elixir | lib/events_api/doings/event.ex | gissandrogama/events | 1b21b151a336ae5eef8bf1d68f2a792194f21be3 | [
"MIT"
] | null | null | null | lib/events_api/doings/event.ex | gissandrogama/events | 1b21b151a336ae5eef8bf1d68f2a792194f21be3 | [
"MIT"
] | 4 | 2021-02-10T22:04:56.000Z | 2021-02-12T22:01:42.000Z | lib/events_api/doings/event.ex | gissandrogama/events | 1b21b151a336ae5eef8bf1d68f2a792194f21be3 | [
"MIT"
] | 1 | 2021-03-22T13:48:48.000Z | 2021-03-22T13:48:48.000Z | defmodule EventsApi.Doings.Event do
@moduledoc """
Modulo de schema da tabela `events`, ele possui função que valida as informações de um `map`.
"""
use Ecto.Schema
import Ecto.Changeset
alias EventsApi.Accounts.User
@primary_key {:id, :binary_id, autogenerate: true}
@foreign_key_type :binary_id
sche... | 20.785714 | 95 | 0.615979 |
03975666ae52ab278d7e2e20a559ea8a5cec7dfb | 1,087 | exs | Elixir | factories/wood.exs | jdfrens/calctorio | 40418e3f7e562c0ade2a672434589727949e0439 | [
"MIT"
] | null | null | null | factories/wood.exs | jdfrens/calctorio | 40418e3f7e562c0ade2a672434589727949e0439 | [
"MIT"
] | null | null | null | factories/wood.exs | jdfrens/calctorio | 40418e3f7e562c0ade2a672434589727949e0439 | [
"MIT"
] | null | null | null | alias Calctorio.{AssemblyLine, Machine, Recipe}
defmodule WoodAssemblyLine do
def foo do
%AssemblyLine{
root: wood_to_tar_and_petroleum(),
lines: [
%AssemblyLine{root: tar_to_solid_fuel()},
%AssemblyLine{root: petroleum_to_solid_fuel()}
]
}
end
def m(recipe) do
%Mac... | 17.532258 | 54 | 0.584177 |
039760cecffdccbe52485d3565e9272dd4d9c029 | 1,835 | ex | Elixir | clients/vision/lib/google_api/vision/v1/model/list_products_in_product_set_response.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/vision/lib/google_api/vision/v1/model/list_products_in_product_set_response.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/vision/lib/google_api/vision/v1/model/list_products_in_product_set_response.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 35.980392 | 145 | 0.747684 |
03976b0282e2b936ead7180c85bb88ba4be28125 | 5,645 | exs | Elixir | test/sanbase/alerts/wallet_movement/trigger_eth_wallet_test.exs | santiment/sanbase2 | 9ef6e2dd1e377744a6d2bba570ea6bd477a1db31 | [
"MIT"
] | 81 | 2017-11-20T01:20:22.000Z | 2022-03-05T12:04:25.000Z | test/sanbase/alerts/wallet_movement/trigger_eth_wallet_test.exs | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | 359 | 2017-10-15T14:40:53.000Z | 2022-01-25T13:34:20.000Z | test/sanbase/alerts/wallet_movement/trigger_eth_wallet_test.exs | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | 16 | 2017-11-19T13:57:40.000Z | 2022-02-07T08:13:02.000Z | defmodule Sanbase.Alert.EthWalletTriggerTest do
use Sanbase.DataCase, async: false
import Mock
import Sanbase.Factory
alias Sanbase.Model.Project
alias Sanbase.Alert.{
UserTrigger,
Trigger.EthWalletTriggerSettings,
Scheduler
}
alias Sanbase.Clickhouse.HistoricalBalance
setup do
Sanb... | 26.753555 | 92 | 0.590434 |
0397e99d36eb00d795f268746e4aebf014e545e5 | 609 | exs | Elixir | mix.exs | qwertystop/scrub | d3dae0d705c3453ea855f56ce7d594dfb78c5394 | [
"MIT"
] | null | null | null | mix.exs | qwertystop/scrub | d3dae0d705c3453ea855f56ce7d594dfb78c5394 | [
"MIT"
] | null | null | null | mix.exs | qwertystop/scrub | d3dae0d705c3453ea855f56ce7d594dfb78c5394 | [
"MIT"
] | null | null | null | defmodule Scrub.Mixfile do
use Mix.Project
def project do
[apps_path: "apps",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps()]
end
# Dependencies can be Hex packages:
#
# {:my_dep, "~> 0.3.0"}
#
# Or git/path repositories:
#
# {:my_dep, git:... | 22.555556 | 79 | 0.638752 |
0397eddc60e2aea88780f7cdde10dd333deda345 | 1,516 | ex | Elixir | .clext/saml2aws.ex | peterwwillis/clinst | 0fff3e125ca3dbb1bdba2d4dde96170c8b644a1f | [
"MIT"
] | null | null | null | .clext/saml2aws.ex | peterwwillis/clinst | 0fff3e125ca3dbb1bdba2d4dde96170c8b644a1f | [
"MIT"
] | null | null | null | .clext/saml2aws.ex | peterwwillis/clinst | 0fff3e125ca3dbb1bdba2d4dde96170c8b644a1f | [
"MIT"
] | null | null | null | #!/usr/bin/env sh
set -eu
[ "${DEBUG:-0}" = "1" ] && set -x
### Extension-specific variables
CLINST_E_NAME="${CLINST_E_NAME:-saml2aws}"
CLINST_E_REV="0.3.0"
CLINST_E_BIN_NAME="${CLINST_E_BIN_NAME:-$CLINST_E_NAME}"
CLINST_E_DLFILE="${CLINST_E_DLFILE:-$CLINST_E_NAME.tar.gz}"
CLINST_E_INSTDIR="${CLINST_E_INSTDIR:-$(pwd)}... | 47.375 | 150 | 0.675462 |
0397ee5adb7e13d56cf63733a2b657595182d5f2 | 855 | ex | Elixir | lib/blog/endpoint.ex | cuongkta/login_logout_elixir | 71ad24e1077402fa719ce52fb3bc2a77510b1b86 | [
"Apache-2.0"
] | null | null | null | lib/blog/endpoint.ex | cuongkta/login_logout_elixir | 71ad24e1077402fa719ce52fb3bc2a77510b1b86 | [
"Apache-2.0"
] | null | null | null | lib/blog/endpoint.ex | cuongkta/login_logout_elixir | 71ad24e1077402fa719ce52fb3bc2a77510b1b86 | [
"Apache-2.0"
] | null | null | null | defmodule Blog.Endpoint do
use Phoenix.Endpoint, otp_app: :blog
# Serve at "/" the static files from "priv/static" directory.
#
# You should set gzip to true if you are running phoenix.digest
# when deploying your static files in production.
plug Plug.Static,
at: "/", from: :blog, gzip: false,
only... | 23.75 | 65 | 0.694737 |
0397fd94441f0a6649891b69c83332d78b85eeb0 | 1,489 | ex | Elixir | clients/double_click_bid_manager/lib/google_api/double_click_bid_manager/v1/model/download_line_items_response.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/double_click_bid_manager/lib/google_api/double_click_bid_manager/v1/model/download_line_items_response.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/double_click_bid_manager/lib/google_api/double_click_bid_manager/v1/model/download_line_items_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... | 32.369565 | 152 | 0.768972 |
0397ffea56bcfea6566c740988faec702135cd0f | 1,949 | exs | Elixir | config/prod.exs | wmnnd/phoenix_live_view_collection | 61e0acf0cda8533c185edfc6011457c466ab5e09 | [
"MIT"
] | null | null | null | config/prod.exs | wmnnd/phoenix_live_view_collection | 61e0acf0cda8533c185edfc6011457c466ab5e09 | [
"MIT"
] | null | null | null | config/prod.exs | wmnnd/phoenix_live_view_collection | 61e0acf0cda8533c185edfc6011457c466ab5e09 | [
"MIT"
] | null | null | null | import Config
# For production, don't forget to configure the url host
# to something meaningful, Phoenix uses this information
# when generating URLs.
#
# Note we also include the path to a cache manifest
# containing the digested version of static files. This
# manifest is generated by the `mix phx.digest` task,
# w... | 36.773585 | 75 | 0.721396 |
03980e5e1115a4d2e7afbb92e18c7a9d7d9fbd53 | 419 | exs | Elixir | mix.exs | CodeSteak/setup-plug-with-certbot | b7d33f58b755ed5cbee518e735823d770e943367 | [
"Unlicense"
] | null | null | null | mix.exs | CodeSteak/setup-plug-with-certbot | b7d33f58b755ed5cbee518e735823d770e943367 | [
"Unlicense"
] | null | null | null | mix.exs | CodeSteak/setup-plug-with-certbot | b7d33f58b755ed5cbee518e735823d770e943367 | [
"Unlicense"
] | null | null | null | defmodule Certbot.MixProject do
use Mix.Project
def project do
[
app: :certbot,
version: "0.1.0",
elixir: "~> 1.6",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_app... | 15.518519 | 59 | 0.541766 |
0398b2306024a2cdaa05968f8fce2003990ac336 | 776 | exs | Elixir | mix.exs | tanguilp/attribute_repository_mnesia | 9e8d6284716bbbe8d24b6f551cd295fbaf5d7674 | [
"Apache-2.0"
] | 1 | 2022-01-27T11:48:58.000Z | 2022-01-27T11:48:58.000Z | mix.exs | tanguilp/attribute_repository_mnesia | 9e8d6284716bbbe8d24b6f551cd295fbaf5d7674 | [
"Apache-2.0"
] | null | null | null | mix.exs | tanguilp/attribute_repository_mnesia | 9e8d6284716bbbe8d24b6f551cd295fbaf5d7674 | [
"Apache-2.0"
] | null | null | null | defmodule AttributeRepositoryMnesia.MixProject do
use Mix.Project
def project do
[
app: :attribute_repository_mnesia,
version: "0.2.0",
elixir: "~> 1.7",
start_permanent: Mix.env() == :prod,
deps: deps(),
docs: [
main: "readme",
extras: ["README.md"]
]
... | 22.823529 | 86 | 0.582474 |
0398d9ac2d3027f437080c9c6bb390262a5b1639 | 3,597 | ex | Elixir | lib/exhort/sat/constraint.ex | josejimenezjr0/exhort | 07c9b735d82a96d6437554f51229c38cf287b39f | [
"Apache-2.0"
] | null | null | null | lib/exhort/sat/constraint.ex | josejimenezjr0/exhort | 07c9b735d82a96d6437554f51229c38cf287b39f | [
"Apache-2.0"
] | null | null | null | lib/exhort/sat/constraint.ex | josejimenezjr0/exhort | 07c9b735d82a96d6437554f51229c38cf287b39f | [
"Apache-2.0"
] | null | null | null | defmodule Exhort.SAT.Constraint do
@moduledoc """
A constraint on the model.
The binary constraints are:
```
:< | :<= | :== | :>= | :> | :"abs=="
```
The list constraints are:
```
:"all!=" | :no_overlap
```
The expression must include a boundary: `<`, `<=`, `==`, `>=`, `>`.
```
x < y
`... | 25.330986 | 87 | 0.573812 |
0398e886bd80ff98e509238687e1cda99b3750a7 | 1,018 | ex | Elixir | test/support/channel_case.ex | openregister/show-the-mess | c164420b246c6bf4df15911dd58c6902132dc4e0 | [
"MIT"
] | null | null | null | test/support/channel_case.ex | openregister/show-the-mess | c164420b246c6bf4df15911dd58c6902132dc4e0 | [
"MIT"
] | null | null | null | test/support/channel_case.ex | openregister/show-the-mess | c164420b246c6bf4df15911dd58c6902132dc4e0 | [
"MIT"
] | 1 | 2021-04-11T08:29:41.000Z | 2021-04-11T08:29:41.000Z | defmodule ShowTheMess.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 cannot ... | 23.136364 | 73 | 0.706287 |
039914aaabed36aecf37dde4160c7ec39dc08cd4 | 250 | exs | Elixir | priv/repo/migrations/20180107204841_create_categories.exs | allen-garvey/block-quote-phoenix | 5c0f5d16daf6bb515a8f1846c3e4311b368a7bdb | [
"MIT"
] | 4 | 2019-10-04T16:11:15.000Z | 2021-08-18T21:00:13.000Z | apps/blockquote/priv/repo/migrations/20180107204841_create_categories.exs | allen-garvey/phoenix-umbrella | 1d444bbd62a5e7b5f51d317ce2be71ee994125d5 | [
"MIT"
] | 5 | 2020-03-16T23:52:25.000Z | 2021-09-03T16:52:17.000Z | apps/blockquote/priv/repo/migrations/20180107204841_create_categories.exs | allen-garvey/phoenix-umbrella | 1d444bbd62a5e7b5f51d317ce2be71ee994125d5 | [
"MIT"
] | null | null | null | defmodule Blockquote.Repo.Migrations.CreateCategories do
use Ecto.Migration
def change do
create table(:categories) do
add :name, :string, null: false
timestamps()
end
create unique_index(:categories, [:name])
end
end
| 19.230769 | 56 | 0.696 |
03995258e623a41b39e10fc27a79b98a12d5bdd2 | 1,284 | exs | Elixir | mix.exs | satoren/libcluster_ec2 | aa035c508d41c4667b865cc4c5f41f608311a280 | [
"MIT"
] | 78 | 2017-07-26T13:18:52.000Z | 2021-12-17T21:27:40.000Z | mix.exs | satoren/libcluster_ec2 | aa035c508d41c4667b865cc4c5f41f608311a280 | [
"MIT"
] | 17 | 2017-07-25T14:57:03.000Z | 2022-03-05T04:09:41.000Z | mix.exs | satoren/libcluster_ec2 | aa035c508d41c4667b865cc4c5f41f608311a280 | [
"MIT"
] | 27 | 2017-10-24T13:54:12.000Z | 2022-03-02T01:24:37.000Z | defmodule ClusterEC2.Mixfile do
use Mix.Project
def project do
[
app: :libcluster_ec2,
version: "0.6.0",
elixir: "~> 1.4",
name: "libcluster_ec2",
source_url: "https://github.com/kyleaa/libcluster_ec2",
homepage_url: "https://github.com/kyleaa/libcluster_ec2",
descript... | 22.526316 | 66 | 0.558411 |
039958be1256f697db61e29eaf2122f97c53bd4e | 146 | ex | Elixir | web/controllers/page_controller.ex | jespr/ex_blog_example | 0a014d4b88b224210a7e15d7c60521aff05059c9 | [
"Unlicense"
] | null | null | null | web/controllers/page_controller.ex | jespr/ex_blog_example | 0a014d4b88b224210a7e15d7c60521aff05059c9 | [
"Unlicense"
] | null | null | null | web/controllers/page_controller.ex | jespr/ex_blog_example | 0a014d4b88b224210a7e15d7c60521aff05059c9 | [
"Unlicense"
] | null | null | null | defmodule BlogExample.PageController do
use BlogExample.Web, :controller
def index(conn, _params) do
render conn, "index.html"
end
end
| 18.25 | 39 | 0.746575 |
03996a1cd37e4c026ff8c342e316bbb7e936f386 | 626 | ex | Elixir | web/models/request.ex | damonkelley/requestbin | 1f59df73ad3e47e74ba18a2987bd0b0cce262a13 | [
"MIT"
] | 4 | 2016-05-20T04:40:21.000Z | 2017-12-20T12:54:55.000Z | web/models/request.ex | damonkelley/requestbin | 1f59df73ad3e47e74ba18a2987bd0b0cce262a13 | [
"MIT"
] | null | null | null | web/models/request.ex | damonkelley/requestbin | 1f59df73ad3e47e74ba18a2987bd0b0cce262a13 | [
"MIT"
] | null | null | null | defmodule RequestBin.Request do
use RequestBin.Web, :model
use Ecto.Model.Callbacks
schema "requests" do
field :method
field :headers, :map
field :body, :binary
field :remote_ip
belongs_to :bin, RequestBin.Bin
timestamps
end
@required_fields ~w(method)
@optional_fields ~w(headers ... | 21.586207 | 61 | 0.698083 |
039984b7cb2fc939e7af529a4d412691dce79429 | 1,960 | exs | Elixir | test/validator_test.exs | Zac-Garby/ultradark_core | 639f269e9a416ea034df78ac1c24703a23457840 | [
"MIT"
] | 1 | 2018-06-28T20:34:05.000Z | 2018-06-28T20:34:05.000Z | test/validator_test.exs | Zac-Garby/ultradark_core | 639f269e9a416ea034df78ac1c24703a23457840 | [
"MIT"
] | null | null | null | test/validator_test.exs | Zac-Garby/ultradark_core | 639f269e9a416ea034df78ac1c24703a23457840 | [
"MIT"
] | null | null | null | defmodule ValidatorTest do
alias UltraDark.Validator
alias UltraDark.Blockchain.Block
alias UltraDark.KeyPair
alias UltraDark.Transaction
use ExUnit.Case, async: true
setup _ do
on_exit(fn -> File.rm_rf!(".keys") end)
:ok
end
test "refutes blocks with invalid difficulties" do
difficulty = ... | 25.128205 | 71 | 0.569388 |
0399b676dde7d978e040a7dd7ceb8f9fa7c1ba41 | 2,590 | exs | Elixir | test/vutuv/sessions_test.exs | vutuv/vutuv | 174706cdaf28cef24e1cc06bec0884c25f2412be | [
"MIT"
] | 309 | 2016-05-03T17:16:23.000Z | 2022-03-01T09:30:22.000Z | test/vutuv/sessions_test.exs | vutuv/vutuv | 174706cdaf28cef24e1cc06bec0884c25f2412be | [
"MIT"
] | 662 | 2016-04-27T07:45:18.000Z | 2022-01-05T07:29:19.000Z | test/vutuv/sessions_test.exs | vutuv/vutuv | 174706cdaf28cef24e1cc06bec0884c25f2412be | [
"MIT"
] | 40 | 2016-04-27T07:46:22.000Z | 2021-12-31T05:54:34.000Z | defmodule Vutuv.SessionsTest do
use Vutuv.DataCase
alias Vutuv.{UserProfiles, Sessions, Sessions.Session}
setup do
attrs = %{
"email" => "fred@example.com",
"password" => "reallyHard2gue$$",
"gender" => "male",
"full_name" => "fred frederickson"
}
{:ok, user} = UserProfiles.... | 34.078947 | 84 | 0.663707 |
0399c1f616b837d44491f4b943ea94745c61d881 | 1,321 | ex | Elixir | lib/dbfs/crypto.ex | sunnys/dbfs | bf0e01b969d1107d12b8b7c0130dad17187b027b | [
"MIT"
] | 57 | 2018-01-22T22:42:16.000Z | 2022-02-18T05:20:25.000Z | lib/dbfs/crypto.ex | sunnys/dbfs | bf0e01b969d1107d12b8b7c0130dad17187b027b | [
"MIT"
] | 2 | 2018-05-14T20:50:41.000Z | 2021-12-12T18:15:59.000Z | lib/dbfs/crypto.ex | sunnys/dbfs | bf0e01b969d1107d12b8b7c0130dad17187b027b | [
"MIT"
] | 15 | 2017-11-11T04:25:04.000Z | 2022-03-07T04:55:19.000Z | defmodule DBFS.Crypto do
alias DBFS.Block
alias DBFS.JSON
@sign_fields [:data, :type, :prev, :timestamp]
@hash_fields [:creator, :signature | @sign_fields]
@doc "Calculate a block's hash"
def hash(block) do
block
|> JSON.encode(@hash_fields)
|> sha256
end
def hash!(block) do
%{ bloc... | 17.851351 | 58 | 0.626041 |
0399e731f58aeee6be30386c3dd5d292ed515733 | 16,414 | ex | Elixir | lib/hex/remote_converger.ex | hrzndhrn/hex | f74e2ed979e74130bdc4a6974660aa986333f33f | [
"Apache-2.0"
] | 824 | 2015-01-05T09:12:36.000Z | 2022-03-28T12:02:29.000Z | lib/hex/remote_converger.ex | hrzndhrn/hex | f74e2ed979e74130bdc4a6974660aa986333f33f | [
"Apache-2.0"
] | 737 | 2015-01-01T05:48:46.000Z | 2022-03-29T12:56:12.000Z | lib/hex/remote_converger.ex | hrzndhrn/hex | f74e2ed979e74130bdc4a6974660aa986333f33f | [
"Apache-2.0"
] | 220 | 2015-03-14T17:55:11.000Z | 2022-03-23T22:17:07.000Z | defmodule Hex.RemoteConverger do
@moduledoc false
@behaviour Mix.RemoteConverger
alias Hex.Registry.Server, as: Registry
def post_converge() do
Hex.UpdateChecker.check()
if Hex.State.get(:print_sponsored_tip) do
Hex.Shell.info(
"You have added/upgraded packages you could sponsor, " <>
... | 28.348877 | 119 | 0.60753 |
039a0024b4a7ef1a9e8e9f2565a7f6ece919f4c2 | 449 | ex | Elixir | lib/zero_phoenix_web/graphql/schemas/queries/person.ex | conradwt/zero-to-graphql-using-elixir | 1014681c5708e2ee02db6fb9b6f64cee0f533150 | [
"MIT"
] | 6 | 2021-12-15T13:29:04.000Z | 2022-01-23T14:13:03.000Z | lib/zero_phoenix_web/graphql/schemas/queries/person.ex | conradwt/zero-to-graphql-using-elixir | 1014681c5708e2ee02db6fb9b6f64cee0f533150 | [
"MIT"
] | null | null | null | lib/zero_phoenix_web/graphql/schemas/queries/person.ex | conradwt/zero-to-graphql-using-elixir | 1014681c5708e2ee02db6fb9b6f64cee0f533150 | [
"MIT"
] | null | null | null | defmodule ZeroPhoenixWeb.GraphQL.Schemas.Queries.Person do
use Absinthe.Schema.Notation
object :person_queries do
field :person, type: :person do
arg :id, non_null(:id)
resolve(&ZeroPhoenixWeb.GraphQL.Resolvers.PersonResolver.find/3)
end
field :people, type: list_of(:person) do
arg(... | 24.944444 | 70 | 0.710468 |
039a0954a5bfed7d04fb7893d41e70df081fc91b | 165 | ex | Elixir | monitoring_hub/apps/monitoring_hub_utils/lib/monitoring_hub_utils/helpers.ex | pvmsikrsna/wallaroo | a08ef579ec809e5bf4ffe10937b2be20059a0530 | [
"Apache-2.0"
] | 1,459 | 2017-09-16T13:13:15.000Z | 2020-10-05T06:19:50.000Z | monitoring_hub/apps/monitoring_hub_utils/lib/monitoring_hub_utils/helpers.ex | pvmsikrsna/wallaroo | a08ef579ec809e5bf4ffe10937b2be20059a0530 | [
"Apache-2.0"
] | 1,413 | 2017-09-14T18:18:14.000Z | 2020-09-28T08:10:30.000Z | monitoring_hub/apps/monitoring_hub_utils/lib/monitoring_hub_utils/helpers.ex | pvmsikrsna/wallaroo | a08ef579ec809e5bf4ffe10937b2be20059a0530 | [
"Apache-2.0"
] | 80 | 2017-09-27T23:16:23.000Z | 2020-06-02T09:18:53.000Z | defmodule MonitoringHubUtils.Helpers do
def create_channel_name(category, app_name, pipeline_key) do
category <> ":" <> app_name <> "||" <> pipeline_key
end
end
| 27.5 | 61 | 0.739394 |
039a298a5a98c77b66fe06f9b75c3691d4b928c4 | 1,714 | exs | Elixir | test/sanbase_web/graphql/projects/project_api_is_trending_test.exs | sitedata/sanbase2 | 8da5e44a343288fbc41b68668c6c80ae8547d557 | [
"MIT"
] | null | null | null | test/sanbase_web/graphql/projects/project_api_is_trending_test.exs | sitedata/sanbase2 | 8da5e44a343288fbc41b68668c6c80ae8547d557 | [
"MIT"
] | 1 | 2021-07-24T16:26:03.000Z | 2021-07-24T16:26:03.000Z | test/sanbase_web/graphql/projects/project_api_is_trending_test.exs | sitedata/sanbase2 | 8da5e44a343288fbc41b68668c6c80ae8547d557 | [
"MIT"
] | null | null | null | defmodule SanbaseWeb.Graphql.ProjectApiIsTrendingTest do
use SanbaseWeb.ConnCase, async: false
import Mock
import Sanbase.Factory
import SanbaseWeb.Graphql.TestHelpers, only: [execute_query: 3]
test "fetch social_volume_query project field", context do
p1 = insert(:random_erc20_project)
p2 = insert(... | 27.645161 | 78 | 0.574679 |
039a2c34bdf221c939cf85014703951c1aac7b68 | 8,360 | ex | Elixir | lib/cldr/language.ex | tcitworld/cldr_languages | 6a3fcec2eda0d4d17cae65f673ccb3dbf0f3ad00 | [
"Apache-2.0"
] | null | null | null | lib/cldr/language.ex | tcitworld/cldr_languages | 6a3fcec2eda0d4d17cae65f673ccb3dbf0f3ad00 | [
"Apache-2.0"
] | null | null | null | lib/cldr/language.ex | tcitworld/cldr_languages | 6a3fcec2eda0d4d17cae65f673ccb3dbf0f3ad00 | [
"Apache-2.0"
] | null | null | null | defmodule Cldr.Language do
@moduledoc """
Cldr Languages does provide functionality regarding languages within the data
supplied by the Cldr core package.
To use the functionality of this module you need to [register it as provider](https://github.com/kipcole9/cldr#providers) in your cldr backend module.
##... | 39.433962 | 152 | 0.549761 |
039a3f56f2ceb12ffa85f890875137a4252b9d81 | 4,268 | ex | Elixir | lib/membrane/rtcp/receiver.ex | membraneframework/membrane_rtp | 1df5f0bdb66d5c89bc63122c8b29af6cd4e600aa | [
"Apache-2.0"
] | null | null | null | lib/membrane/rtcp/receiver.ex | membraneframework/membrane_rtp | 1df5f0bdb66d5c89bc63122c8b29af6cd4e600aa | [
"Apache-2.0"
] | 2 | 2020-04-01T14:06:34.000Z | 2020-04-08T11:48:59.000Z | lib/membrane/rtcp/receiver.ex | membraneframework/membrane_rtp | 1df5f0bdb66d5c89bc63122c8b29af6cd4e600aa | [
"Apache-2.0"
] | null | null | null | defmodule Membrane.RTCP.Receiver do
@moduledoc """
Element exchanging RTCP packets and RTCP receiver statistics.
"""
use Membrane.Filter
alias Membrane.RTCPEvent
alias Membrane.RTCP.{FeedbackPacket, SenderReportPacket}
alias Membrane.{RTCP, RTP}
alias Membrane.RTCP.ReceiverReport
alias Membrane.Time
... | 31.382353 | 109 | 0.685098 |
039aaf61ccf843c38dca2dd14cda4bfe272da58a | 3,856 | ex | Elixir | lib/nfl_player_searchex.ex | krmannix/nfl-player-searchex | 2644f5927adda27d5a394a397baedab3d0db785a | [
"MIT"
] | 5 | 2017-07-05T13:36:25.000Z | 2021-08-06T05:21:01.000Z | lib/nfl_player_searchex.ex | krmannix/nfl_player_searchex | 2644f5927adda27d5a394a397baedab3d0db785a | [
"MIT"
] | null | null | null | lib/nfl_player_searchex.ex | krmannix/nfl_player_searchex | 2644f5927adda27d5a394a397baedab3d0db785a | [
"MIT"
] | null | null | null | defmodule NFLPlayerSearchex do
@root "http://www.nfl.com"
@search_root @root <> "/players/search"
@moduledoc """
NFLPlayerSearchex allows look up of NFL Players via the official NFL player search. This module is not an official NFL module.
Replicates the functionality found at http://www.nfl.com/players/sea... | 29.891473 | 145 | 0.668568 |
039aafd07aefd29fd9b1298f8075188dd79e112d | 3,141 | ex | Elixir | clients/qpx_express/lib/google_api/qpx_express/v1/model/slice_input.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/qpx_express/lib/google_api/qpx_express/v1/model/slice_input.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/qpx_express/lib/google_api/qpx_express/v1/model/slice_input.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"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... | 46.191176 | 203 | 0.746896 |
039ab13fae25dc0d94567624d0b6fead7b6e44a5 | 38,902 | ex | Elixir | lib/elixir/lib/macro.ex | davidsulc/elixir | dd4fd6ab742acd75862e34e26dbdb86e0cf6453f | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/macro.ex | davidsulc/elixir | dd4fd6ab742acd75862e34e26dbdb86e0cf6453f | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/macro.ex | davidsulc/elixir | dd4fd6ab742acd75862e34e26dbdb86e0cf6453f | [
"Apache-2.0"
] | null | null | null | import Kernel, except: [to_string: 1]
defmodule Macro do
@moduledoc ~S"""
Conveniences for working with macros.
## Custom Sigils
To create a custom sigil, define a function with the name
`sigil_{identifier}` that takes two arguments. The first argument will be
the string, the second will be a charlist co... | 30.040154 | 106 | 0.611974 |
039ab9e6aed6d9febbcebf57f30a5f9dc56ddbb2 | 2,389 | ex | Elixir | clients/you_tube/lib/google_api/you_tube/v3/model/live_chat_gift_membership_received_details.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/you_tube/lib/google_api/you_tube/v3/model/live_chat_gift_membership_received_details.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/you_tube/lib/google_api/you_tube/v3/model/live_chat_gift_membership_received_details.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... | 45.075472 | 362 | 0.756802 |
039ae08dcf0653469c097574ec77f33bdb27c1de | 542 | exs | Elixir | video-code/30-application/servy/mix.exs | anwarsky/elixir_sample2 | 613599113e15fcd400853fc0e560a39001435f6d | [
"Unlicense"
] | null | null | null | video-code/30-application/servy/mix.exs | anwarsky/elixir_sample2 | 613599113e15fcd400853fc0e560a39001435f6d | [
"Unlicense"
] | null | null | null | video-code/30-application/servy/mix.exs | anwarsky/elixir_sample2 | 613599113e15fcd400853fc0e560a39001435f6d | [
"Unlicense"
] | null | null | null | defmodule Servy.Mixfile do
use Mix.Project
def project do
[
app: :servy,
description: "A humble HTTP server",
version: "0.1.0",
elixir: "~> 1.5",
start_permanent: Mix.env == :prod,
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def ap... | 18.066667 | 59 | 0.564576 |
039b475ca5e8af57ff34280421244a3afe743650 | 881 | ex | Elixir | priv/templates/comgen.build/aggregate.ex | andyl/phx-cmdd | f72319d81b264b4deba4831ee1d0eb725d2b5adb | [
"MIT"
] | 5 | 2019-05-23T23:25:25.000Z | 2019-05-31T12:10:59.000Z | priv/templates/comgen.build/aggregate.ex | andyl/comgen | f72319d81b264b4deba4831ee1d0eb725d2b5adb | [
"MIT"
] | 3 | 2019-05-31T04:42:02.000Z | 2019-06-01T06:42:14.000Z | priv/templates/comgen.build/aggregate.ex | andyl/comgen | f72319d81b264b4deba4831ee1d0eb725d2b5adb | [
"MIT"
] | 1 | 2019-06-01T05:04:14.000Z | 2019-06-01T05:04:14.000Z | # <%= filedata.templates.lib.dst %>
defmodule <%= filedata.module_long %> do
defstruct [<%= filedata.string_fields %> ]
alias <%= filedata.module_long %>
<%= for command <- annotations.commands do %>
alias <%= command.module_long %> <% end %>
<%= for event <- annotations.events do %>
alias <%= event.modul... | 33.884615 | 113 | 0.569807 |
039b47c84a2b682ba705e7302a3d0117469b3c22 | 3,354 | ex | Elixir | lib/gnat/connection_supervisor.ex | lubien/nats.ex | 9ddb11acbca7727e97c6624425a2cb22243cfafe | [
"MIT"
] | 102 | 2019-04-17T06:19:48.000Z | 2022-03-31T02:36:11.000Z | lib/gnat/connection_supervisor.ex | lubien/nats.ex | 9ddb11acbca7727e97c6624425a2cb22243cfafe | [
"MIT"
] | 68 | 2017-03-23T04:54:00.000Z | 2019-03-04T03:30:28.000Z | lib/gnat/connection_supervisor.ex | lubien/nats.ex | 9ddb11acbca7727e97c6624425a2cb22243cfafe | [
"MIT"
] | 17 | 2019-05-07T19:33:17.000Z | 2022-03-24T18:27:25.000Z | defmodule Gnat.ConnectionSupervisor do
use GenServer
require Logger
@moduledoc """
A process that can supervise a named connection for you
If you would like to supervise a Gnat connection and have it automatically re-connect in case of failure you can use this module in your supervision tree.
It takes a m... | 38.551724 | 371 | 0.710197 |
039b56317105697c2ca28a8c3936ca81eb05aee5 | 3,945 | exs | Elixir | test/people_sorter/people_list_test.exs | mstang/people_sorter | e712622c071748c79b26e977a8b029e1ba1877c5 | [
"MIT"
] | null | null | null | test/people_sorter/people_list_test.exs | mstang/people_sorter | e712622c071748c79b26e977a8b029e1ba1877c5 | [
"MIT"
] | null | null | null | test/people_sorter/people_list_test.exs | mstang/people_sorter | e712622c071748c79b26e977a8b029e1ba1877c5 | [
"MIT"
] | null | null | null | defmodule PeopleSorter.PersonListTest do
use ExUnit.Case, async: true
alias Faker.{Color, Internet, Person}
setup do
child_spec = %{
id: TestProcess,
start: {PeopleSorter.PeopleList, :start_link, [[], [name: TestProcess]]}
}
person_1 = create_random_person()
person_2 = create_random... | 24.968354 | 93 | 0.656781 |
039b63594427614f00a77cfee6759acf6b4af199 | 1,870 | ex | Elixir | clients/script/lib/google_api/script/v1/model/list_user_processes_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/script/lib/google_api/script/v1/model/list_user_processes_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/script/lib/google_api/script/v1/model/list_user_processes_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 35.961538 | 158 | 0.742246 |
039b6ee3fa63629f4217e78e7a9a35b527123f9c | 952 | ex | Elixir | lib/web.ex | openrowing/raceman2 | eee2d51c50bddf63b9c5b9b351424d4c056fa27d | [
"Apache-2.0"
] | null | null | null | lib/web.ex | openrowing/raceman2 | eee2d51c50bddf63b9c5b9b351424d4c056fa27d | [
"Apache-2.0"
] | null | null | null | lib/web.ex | openrowing/raceman2 | eee2d51c50bddf63b9c5b9b351424d4c056fa27d | [
"Apache-2.0"
] | null | null | null | defmodule Web 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(Web.Endpoint,... | 30.709677 | 71 | 0.703782 |
039b8ffa1b9dd2f07c620b411ae265e57e2bea30 | 183 | exs | Elixir | blog_data_writer_server/config/dev.exs | xawe/elixir_micro_blog | eee893238a9647708336901f3ead4629067d590f | [
"MIT"
] | null | null | null | blog_data_writer_server/config/dev.exs | xawe/elixir_micro_blog | eee893238a9647708336901f3ead4629067d590f | [
"MIT"
] | null | null | null | blog_data_writer_server/config/dev.exs | xawe/elixir_micro_blog | eee893238a9647708336901f3ead4629067d590f | [
"MIT"
] | null | null | null | import Config
config :app, App.Repo,
database: "blog_data_writer_dev",
username: "postgres",
password: "postgres",
hostname: "localhost"
config :app, ecto_repos: [App.Repo]
| 18.3 | 35 | 0.715847 |
039b935fa5562e7fcda1dae43dde64408f9b0f37 | 2,737 | ex | Elixir | lib/cadet/auth/providers/github.ex | source-academy/cadet | c447552453f78799755de73f66999e4c9d20383c | [
"Apache-2.0"
] | 27 | 2018-01-20T05:56:24.000Z | 2021-05-24T03:21:55.000Z | lib/cadet/auth/providers/github.ex | source-academy/cadet | c447552453f78799755de73f66999e4c9d20383c | [
"Apache-2.0"
] | 731 | 2018-04-16T13:25:49.000Z | 2021-06-22T07:16:12.000Z | lib/cadet/auth/providers/github.ex | source-academy/cadet | c447552453f78799755de73f66999e4c9d20383c | [
"Apache-2.0"
] | 43 | 2018-01-20T06:35:46.000Z | 2021-05-05T03:22:35.000Z | defmodule Cadet.Auth.Providers.GitHub do
@moduledoc """
Provides identity using GitHub OAuth.
"""
alias Cadet.Auth.Provider
@behaviour Provider
@type config :: %{
clients: %{},
token_url: String.t(),
user_api: String.t()
}
@spec authorise(config(), Provider.code(),... | 31.102273 | 97 | 0.576178 |
039b9d18294189c4b5fb707fac1d46ec7ba0af3c | 16,859 | ex | Elixir | lib/chat_api/slack/event.ex | Blazt0/papercups | 5996b268f1d52e4463d546dcc458f9ecd0a7ffcd | [
"MIT"
] | 1 | 2021-08-02T07:59:41.000Z | 2021-08-02T07:59:41.000Z | lib/chat_api/slack/event.ex | Blazt0/papercups | 5996b268f1d52e4463d546dcc458f9ecd0a7ffcd | [
"MIT"
] | null | null | null | lib/chat_api/slack/event.ex | Blazt0/papercups | 5996b268f1d52e4463d546dcc458f9ecd0a7ffcd | [
"MIT"
] | null | null | null | defmodule ChatApi.Slack.Event do
require Logger
alias ChatApi.{
Companies,
Conversations,
Messages,
Slack,
SlackAuthorizations,
SlackConversationThreads
}
alias ChatApi.Conversations.Conversation
alias ChatApi.Messages.Message
alias ChatApi.SlackAuthorizations.SlackAuthorization
... | 37.885393 | 105 | 0.619847 |
039bbac3fb2f119a1702407f7e83729f561f2c4b | 619 | ex | Elixir | generated-sources/elixir/mojang-authentication/lib/com/github/asyncmc/mojang/authentication/elixir/server/model/access_keys.ex | AsyncMC/Mojang-API-Libs | b01bbd2bce44bfa2b9ed705a128cf4ecda077916 | [
"Apache-2.0"
] | null | null | null | generated-sources/elixir/mojang-authentication/lib/com/github/asyncmc/mojang/authentication/elixir/server/model/access_keys.ex | AsyncMC/Mojang-API-Libs | b01bbd2bce44bfa2b9ed705a128cf4ecda077916 | [
"Apache-2.0"
] | null | null | null | generated-sources/elixir/mojang-authentication/lib/com/github/asyncmc/mojang/authentication/elixir/server/model/access_keys.ex | AsyncMC/Mojang-API-Libs | b01bbd2bce44bfa2b9ed705a128cf4ecda077916 | [
"Apache-2.0"
] | null | null | null | # NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
# https://openapi-generator.tech
# Do not edit the class manually.
defmodule com.github.asyncmc.mojang.authentication.elixir.server.Model.AccessKeys do
@moduledoc """
"""
@derive [Poison.Encoder]
defstruct [
:"a... | 22.107143 | 103 | 0.701131 |
039bc6b90973c7a87173ba78ebcc77d900cd788b | 2,199 | exs | Elixir | demo/config/prod.exs | git-toni/lv-states | 588652ae698efc7193dc25a8e4a68b5201aa09bd | [
"MIT"
] | 3 | 2021-07-07T09:10:11.000Z | 2022-03-18T10:28:14.000Z | demo/config/prod.exs | git-toni/lv-states | 588652ae698efc7193dc25a8e4a68b5201aa09bd | [
"MIT"
] | 12 | 2021-07-06T21:08:21.000Z | 2021-09-27T11:11:19.000Z | demo/config/prod.exs | git-toni/lv-states | 588652ae698efc7193dc25a8e4a68b5201aa09bd | [
"MIT"
] | null | null | null | use Mix.Config
host_url =
case System.get_env("DOCKER_DEBUG") do
"true" -> "localhost"
_ -> "lv-states.fly.dev"
end
# For production, don't forget to configure the url host
# to something meaningful, Phoenix uses this information
# when generating URLs.
#
# Note we also include the path to a cache manife... | 34.904762 | 83 | 0.707594 |
039bcc1fa6d75862d55aa49d8d24e4bae5646aaa | 2,409 | exs | Elixir | config/dev.exs | frunox/discuss | d19367eceb8c68ebef4e565981ceef256b5cb04e | [
"MIT"
] | null | null | null | config/dev.exs | frunox/discuss | d19367eceb8c68ebef4e565981ceef256b5cb04e | [
"MIT"
] | null | null | null | config/dev.exs | frunox/discuss | d19367eceb8c68ebef4e565981ceef256b5cb04e | [
"MIT"
] | null | null | null | import Config
# Configure your database
config :discuss, Discuss.Repo,
username: "postgres",
password: "frunox",
database: "discuss_dev",
hostname: "localhost",
show_sensitive_data_on_connection_error: true,
pool_size: 10
# For development, we disable any cache and enable
# debugging and code reloading.
#... | 31.697368 | 86 | 0.706517 |
039bccb014c5701b5605ce0172ebc925d29a5fc0 | 322 | ex | Elixir | lib/publishers/default.ex | krisztian-adam-liqid/ev | a4733d531967f0f4d4066f4e33b58a7414702a15 | [
"MIT"
] | 2 | 2021-12-29T15:37:34.000Z | 2022-01-12T23:52:47.000Z | lib/publishers/default.ex | krisztian-adam-liqid/ev | a4733d531967f0f4d4066f4e33b58a7414702a15 | [
"MIT"
] | null | null | null | lib/publishers/default.ex | krisztian-adam-liqid/ev | a4733d531967f0f4d4066f4e33b58a7414702a15 | [
"MIT"
] | 1 | 2022-01-31T11:07:57.000Z | 2022-01-31T11:07:57.000Z | defmodule EV.Publishers.Default do
@moduledoc """
The default publisher.
Simply uses `Ecto.Changeset.apply_action/2` to return an event based on the given changeset.
"""
@behaviour EV.Publisher
@impl EV.Publisher
def call(changeset, _opts) do
Ecto.Changeset.apply_action(changeset, :insert)
end
en... | 21.466667 | 94 | 0.736025 |
039be0eea795386703685f471f181fc8b6554a2e | 719 | ex | Elixir | lib/peerage/list.ex | kelostrada/peerage | 1bc83b2662129161d36901a063553c1650bcbf4e | [
"MIT"
] | 389 | 2016-10-29T01:40:47.000Z | 2022-03-19T09:49:26.000Z | lib/peerage/list.ex | kelostrada/peerage | 1bc83b2662129161d36901a063553c1650bcbf4e | [
"MIT"
] | 18 | 2017-01-11T13:27:36.000Z | 2019-04-09T20:17:15.000Z | lib/peerage/list.ex | kelostrada/peerage | 1bc83b2662129161d36901a063553c1650bcbf4e | [
"MIT"
] | 23 | 2017-01-11T12:50:18.000Z | 2021-04-12T01:42:54.000Z | defmodule Peerage.Via.List do
@behaviour Peerage.Provider
@moduledoc """
Uses configurable list of
node names. Good for development, or when you know
production node names ahead of time. See example below.
### Example
```elixir
config :peerage, via: Peerage.Via.List
config :peerage, node_list: [
... | 23.193548 | 65 | 0.656467 |
039bf7bb39ff9a87fbf1b4616da9679104fa0954 | 3,708 | exs | Elixir | test/lib/timber/event_plug_test.exs | montebrown/timber-elixir | 1e177cc426422be3617479143038f5882037752f | [
"0BSD"
] | null | null | null | test/lib/timber/event_plug_test.exs | montebrown/timber-elixir | 1e177cc426422be3617479143038f5882037752f | [
"0BSD"
] | null | null | null | test/lib/timber/event_plug_test.exs | montebrown/timber-elixir | 1e177cc426422be3617479143038f5882037752f | [
"0BSD"
] | null | null | null | defmodule Timber.Integrations.EventPlugTest do
# use Timber.TestCase, async: false
# use Plug.Test
#
# import ExUnit.CaptureIO
#
# require Logger
#
# describe "Timber.Integrations.EventPlug.call/2" do
# test "logs an incoming HTTP request event" do
# conn = generate_conn(:get, [])
#
... | 32.526316 | 116 | 0.549622 |
039bf7e4e8a8af43c7cbfd0b77000813e3fb82c9 | 11,143 | exs | Elixir | test/livebook/evaluator_test.exs | kianmeng/livebook | 8fe8d27d3d46b64d22126d1b97157330b87e611c | [
"Apache-2.0"
] | null | null | null | test/livebook/evaluator_test.exs | kianmeng/livebook | 8fe8d27d3d46b64d22126d1b97157330b87e611c | [
"Apache-2.0"
] | null | null | null | test/livebook/evaluator_test.exs | kianmeng/livebook | 8fe8d27d3d46b64d22126d1b97157330b87e611c | [
"Apache-2.0"
] | null | null | null | defmodule Livebook.EvaluatorTest do
use ExUnit.Case, async: true
alias Livebook.Evaluator
setup do
{:ok, _pid, evaluator} = start_supervised(Evaluator)
%{evaluator: evaluator}
end
describe "evaluate_code/6" do
test "given a valid code returns evaluation result", %{evaluator: evaluator} do
... | 35.714744 | 118 | 0.646146 |
039bfdcf71bd592c837e42d10a26db6177ef0b9d | 1,588 | exs | Elixir | test/ex_pesa/Mpesa/b2b_test.exs | MidigoF/ex_pesa | d2a62e72c67084385609c895e52a6ac52e8a9a8a | [
"AML",
"MIT"
] | 20 | 2020-08-07T18:45:03.000Z | 2021-12-02T12:47:07.000Z | test/ex_pesa/Mpesa/b2b_test.exs | MidigoF/ex_pesa | d2a62e72c67084385609c895e52a6ac52e8a9a8a | [
"AML",
"MIT"
] | 65 | 2020-08-17T05:52:33.000Z | 2021-05-20T16:06:34.000Z | test/ex_pesa/Mpesa/b2b_test.exs | MidigoF/ex_pesa | d2a62e72c67084385609c895e52a6ac52e8a9a8a | [
"AML",
"MIT"
] | 11 | 2020-08-17T07:53:02.000Z | 2021-04-02T20:57:16.000Z | defmodule ExPesa.Mpesa.B2BTest do
@moduledoc false
use ExUnit.Case, async: true
import Tesla.Mock
doctest ExPesa.Mpesa.B2B
alias ExPesa.Mpesa.B2B
setup do
mock(fn
%{
url: "https://sandbox.safaricom.co.ke/oauth/v1/generate?grant_type=client_credentials",
method: :get
} ->
... | 24.430769 | 95 | 0.576196 |
039c2afa8d0e5a4ed16c1a914394a90214be5ce1 | 106 | ex | Elixir | lib/argo/repo.ex | ne1ro/argo | 87f6c0de8311cb3e1e4eb05fa63bb0b71068a743 | [
"MIT"
] | null | null | null | lib/argo/repo.ex | ne1ro/argo | 87f6c0de8311cb3e1e4eb05fa63bb0b71068a743 | [
"MIT"
] | null | null | null | lib/argo/repo.ex | ne1ro/argo | 87f6c0de8311cb3e1e4eb05fa63bb0b71068a743 | [
"MIT"
] | null | null | null | defmodule Argo.Repo do
@moduledoc """
OTP app repository
"""
use Ecto.Repo, otp_app: :argo
end
| 13.25 | 31 | 0.650943 |
039c32810788ba37b27452271b4be3a47e9292a9 | 22 | ex | Elixir | day5/lib/day5.ex | ryanbillingsley/advent_of_code | 9219a4b763966b70caed85865bb073a26bb3a705 | [
"MIT"
] | null | null | null | day5/lib/day5.ex | ryanbillingsley/advent_of_code | 9219a4b763966b70caed85865bb073a26bb3a705 | [
"MIT"
] | null | null | null | day5/lib/day5.ex | ryanbillingsley/advent_of_code | 9219a4b763966b70caed85865bb073a26bb3a705 | [
"MIT"
] | null | null | null | defmodule Day5 do
end
| 7.333333 | 17 | 0.818182 |
039c467e188093b5de6ff51bb3dc9216ae0595cc | 648 | ex | Elixir | lib/arc/processor.ex | PharosProduction/arc | e799fb9e2abdff7fec5dd3f0c5926c501a3576d4 | [
"Apache-2.0"
] | 1,213 | 2015-06-18T04:01:20.000Z | 2022-01-19T18:47:23.000Z | lib/arc/processor.ex | PharosProduction/arc | e799fb9e2abdff7fec5dd3f0c5926c501a3576d4 | [
"Apache-2.0"
] | 260 | 2015-06-18T22:34:58.000Z | 2022-01-06T17:43:29.000Z | lib/arc/processor.ex | PharosProduction/arc | e799fb9e2abdff7fec5dd3f0c5926c501a3576d4 | [
"Apache-2.0"
] | 270 | 2015-07-07T17:10:31.000Z | 2021-11-13T09:16:03.000Z | defmodule Arc.Processor do
def process(definition, version, {file, scope}) do
transform = definition.transform(version, {file, scope})
apply_transformation(file, transform)
end
defp apply_transformation(_, :skip), do: {:ok, nil}
defp apply_transformation(file, :noaction), do: {:ok, file}
defp apply_t... | 36 | 82 | 0.729938 |
039c6f5d23a198020fa171aedbdb8318a025130d | 495 | ex | Elixir | lib/web/controllers/api/agency_controller.ex | smartlogic/Challenge_gov | b4203d1fcfb742dd17ecfadb9e9c56ad836d4254 | [
"CC0-1.0"
] | 9 | 2020-02-26T20:24:38.000Z | 2022-03-22T21:14:52.000Z | lib/web/controllers/api/agency_controller.ex | smartlogic/Challenge_gov | b4203d1fcfb742dd17ecfadb9e9c56ad836d4254 | [
"CC0-1.0"
] | 15 | 2020-04-22T19:33:24.000Z | 2022-03-26T15:11:17.000Z | lib/web/controllers/api/agency_controller.ex | smartlogic/Challenge_gov | b4203d1fcfb742dd17ecfadb9e9c56ad836d4254 | [
"CC0-1.0"
] | 4 | 2020-04-27T22:58:57.000Z | 2022-01-14T13:42:09.000Z | defmodule Web.Api.AgencyController do
use Web, :controller
alias ChallengeGov.Agencies
alias Web.Api.ErrorView
def sub_agencies(conn, %{"agency_id" => id}) do
with {id, _} <- Integer.parse(id),
{:ok, agency} <- Agencies.get(id) do
conn
|> assign(:agencies, agency.sub_agencies)
|... | 22.5 | 49 | 0.593939 |
039c779ef516e04aec07d834e7e75f69b406a9c7 | 1,598 | ex | Elixir | clients/text_to_speech/lib/google_api/text_to_speech/v1beta1/model/list_voices_response.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/text_to_speech/lib/google_api/text_to_speech/v1beta1/model/list_voices_response.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/text_to_speech/lib/google_api/text_to_speech/v1beta1/model/list_voices_response.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 34 | 117 | 0.749687 |
039c9cd43bae53f3bdec119f5cffd7928cdbb75c | 2,019 | ex | Elixir | clients/you_tube/lib/google_api/you_tube/v3/model/i18n_region_list_response.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/you_tube/lib/google_api/you_tube/v3/model/i18n_region_list_response.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/you_tube/lib/google_api/you_tube/v3/model/i18n_region_list_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... | 36.709091 | 196 | 0.744923 |
039cd74daf7dfee1c10076398a8fe7cfebf0984d | 1,359 | ex | Elixir | example/lib/example.ex | arjan/sworm | a76a5fed2108db2a58615cd2d1721139d608ef23 | [
"MIT"
] | 21 | 2019-05-15T09:43:20.000Z | 2021-01-12T10:04:47.000Z | example/lib/example.ex | arjan/sworm | a76a5fed2108db2a58615cd2d1721139d608ef23 | [
"MIT"
] | 1 | 2019-05-30T09:18:28.000Z | 2019-08-16T13:41:38.000Z | example/lib/example.ex | arjan/sworm | a76a5fed2108db2a58615cd2d1721139d608ef23 | [
"MIT"
] | null | null | null | defmodule Example do
defmodule TestServer do
require Logger
use GenServer
def start_link() do
GenServer.start_link(__MODULE__, [])
end
def init(a) do
{:ok, a}
end
def handle_info({:begin_handoff, delegate, ref}, state) do
Logger.info("begin handoff")
send(deleg... | 19.414286 | 77 | 0.613687 |
039d094920d03c994351c00afdd0269ffd9e7d7d | 1,088 | ex | Elixir | lib/ketbin_web/channels/user_socket.ex | ATechnoHazard/katbin | 20a0b45954cf7819cd9d51c401db06be0f47666b | [
"MIT"
] | 4 | 2020-08-05T20:05:34.000Z | 2020-10-01T10:01:56.000Z | lib/ketbin_web/channels/user_socket.ex | ATechnoHazard/katbin | 20a0b45954cf7819cd9d51c401db06be0f47666b | [
"MIT"
] | 1 | 2020-07-08T05:02:12.000Z | 2020-09-25T10:05:11.000Z | lib/ketbin_web/channels/user_socket.ex | ATechnoHazard/katbin | 20a0b45954cf7819cd9d51c401db06be0f47666b | [
"MIT"
] | 1 | 2020-08-30T12:59:49.000Z | 2020-08-30T12:59:49.000Z | defmodule KetbinWeb.UserSocket do
use Phoenix.Socket
## Channels
# channel "room:*", KetbinWeb.RoomChannel
# Socket params are passed from the client and can
# be used to verify and authenticate a user. After
# verification, you can put default assigns into
# the socket that will be set for all channels... | 30.222222 | 83 | 0.693934 |
039dd7a153787e3d0d9eb63b86dc51935b32a3f4 | 1,514 | ex | Elixir | api/web/web.ex | manna422/loose | 1d2dc1d1a88976fa3f883917f47023eae3167c37 | [
"MIT"
] | null | null | null | api/web/web.ex | manna422/loose | 1d2dc1d1a88976fa3f883917f47023eae3167c37 | [
"MIT"
] | null | null | null | api/web/web.ex | manna422/loose | 1d2dc1d1a88976fa3f883917f47023eae3167c37 | [
"MIT"
] | null | null | null | defmodule Loose.Web do
@moduledoc """
A module that keeps using definitions for controllers,
views and so on.
This can be used in your application as:
use Loose.Web, :controller
use Loose.Web, :view
The definitions below will be executed for every view,
controller, etc, so keep them short and... | 19.164557 | 88 | 0.663144 |
039de490fb2c53090a50416cf0af4042f95d7507 | 6,489 | exs | Elixir | lib/elixir/test/elixir/module_test.exs | gabrielelana/elixir | 7e78113f925d438568b7efa8eaded5ae43dce4b1 | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/module_test.exs | gabrielelana/elixir | 7e78113f925d438568b7efa8eaded5ae43dce4b1 | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/module_test.exs | gabrielelana/elixir | 7e78113f925d438568b7efa8eaded5ae43dce4b1 | [
"Apache-2.0"
] | null | null | null | Code.require_file "test_helper.exs", __DIR__
defmodule ModuleTest.ToBeUsed do
def value, do: 1
defmacro __using__(_) do
target = __CALLER__.module
Module.put_attribute(target, :has_callback, true)
Module.put_attribute(target, :before_compile, __MODULE__)
Module.put_attribute(target, :after_compile... | 25.956 | 106 | 0.670365 |
039dfbeecd6124f3a22cf5b5f06aeb3a571d1874 | 322 | exs | Elixir | priv/repo/migrations/20180716130048_create_emails.exs | nunopolonia/psc-api | 2e358503851cc04cdaa89201a3f56586f8746736 | [
"MIT"
] | 1 | 2017-09-10T23:51:40.000Z | 2017-09-10T23:51:40.000Z | priv/repo/migrations/20180716130048_create_emails.exs | nunopolonia/psc-api | 2e358503851cc04cdaa89201a3f56586f8746736 | [
"MIT"
] | 24 | 2018-03-14T18:17:00.000Z | 2021-03-01T07:47:53.000Z | priv/repo/migrations/20180716130048_create_emails.exs | portosummerofcode/psc-api | 2e358503851cc04cdaa89201a3f56586f8746736 | [
"MIT"
] | null | null | null | defmodule Api.Repo.Migrations.CreateEmails do
use Ecto.Migration
def change do
create table(:emails, primary_key: false) do
add :id, :binary_id, primary_key: true
add :name, :string
add :title, :string
add :subject, :string
add :content, :text
timestamps()
end
end
en... | 18.941176 | 48 | 0.642857 |
039e15efba4b509b7672d689286743fe419d3764 | 205,711 | ex | Elixir | clients/spanner/lib/google_api/spanner/v1/api/projects.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | 1 | 2021-10-01T09:20:41.000Z | 2021-10-01T09:20:41.000Z | clients/spanner/lib/google_api/spanner/v1/api/projects.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/spanner/lib/google_api/spanner/v1/api/projects.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"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... | 49.378541 | 1,856 | 0.625353 |
039e3a6a4c3230041848d2ed17acc4b29b1e2dda | 2,204 | exs | Elixir | apps/lab3/test/log_test.exs | 226wyj/Raft | b882839579bc70b5501e7f1d6fe41d3119162df4 | [
"MIT"
] | null | null | null | apps/lab3/test/log_test.exs | 226wyj/Raft | b882839579bc70b5501e7f1d6fe41d3119162df4 | [
"MIT"
] | null | null | null | apps/lab3/test/log_test.exs | 226wyj/Raft | b882839579bc70b5501e7f1d6fe41d3119162df4 | [
"MIT"
] | null | null | null | defmodule LogTest do
use ExUnit.Case
doctest Raft
defp create_empty_log() do
Raft.new_configuration([:a, :b, :c], :a, 100, 1000, 20)
end
defp create_nop_log(last_index) do
config = create_empty_log()
log = for idx <- last_index..1, do: Raft.LogEntry.nop(idx, 1, :a)
%{config | log: log}
end... | 33.393939 | 69 | 0.703267 |
039e405ed1ea331e3aec400f420588ec1444b4f8 | 808 | exs | Elixir | test/data_helper.exs | elcritch/matrex_numerix | 5835a9b477d8ea41bb9b862272a0997fe37c1236 | [
"MIT"
] | 8 | 2020-01-08T06:55:36.000Z | 2021-03-10T15:44:46.000Z | test/data_helper.exs | elcritch/matrex_numerix | 5835a9b477d8ea41bb9b862272a0997fe37c1236 | [
"MIT"
] | null | null | null | test/data_helper.exs | elcritch/matrex_numerix | 5835a9b477d8ea41bb9b862272a0997fe37c1236 | [
"MIT"
] | null | null | null | defmodule DataHelper do
def read(dataset) do
lines = "test/resources/data/#{dataset}.dat" |> File.stream!()
%{std_dev: parse_std_dev(lines), data: parse_data(lines)}
end
def read_mtx(dataset) do
"test/resources/data/#{dataset}.mtx" |> Matrex.load()
end
defp parse_std_dev(lines) do
lines
... | 25.25 | 88 | 0.60396 |
039e4d9c30e74cbe74cd7fe136996d8c2dfd4ec8 | 2,989 | ex | Elixir | lib/jsonrpc2/servers/http.ex | InoMurko/jsonrpc2-elixir | 3edb92061231ddc9edc1a69531f7248d3d00d8f3 | [
"Apache-2.0"
] | null | null | null | lib/jsonrpc2/servers/http.ex | InoMurko/jsonrpc2-elixir | 3edb92061231ddc9edc1a69531f7248d3d00d8f3 | [
"Apache-2.0"
] | null | null | null | lib/jsonrpc2/servers/http.ex | InoMurko/jsonrpc2-elixir | 3edb92061231ddc9edc1a69531f7248d3d00d8f3 | [
"Apache-2.0"
] | null | null | null | defmodule JSONRPC2.Servers.HTTP do
@moduledoc """
An HTTP server which responds to POSTed JSON-RPC 2.0 in the request body.
This server will respond to all requests on the given port. If you wish to mount a JSON-RPC 2.0
handler within a Plug-based web app (such as Phoenix), please see `JSONRPC2.Servers.HTTP.Pl... | 33.965909 | 100 | 0.689863 |
039e62ce63ef266f212033a0d6fa46ced0f994b8 | 1,753 | ex | Elixir | lib/doc_gen/release_tasks.ex | the-mikedavis/doc_gen | efcc884ea65bba5748f41c5601abd00db2777ec4 | [
"BSD-3-Clause"
] | null | null | null | lib/doc_gen/release_tasks.ex | the-mikedavis/doc_gen | efcc884ea65bba5748f41c5601abd00db2777ec4 | [
"BSD-3-Clause"
] | 27 | 2018-10-29T18:34:44.000Z | 2019-03-11T18:43:12.000Z | lib/doc_gen/release_tasks.ex | the-mikedavis/doc_gen | efcc884ea65bba5748f41c5601abd00db2777ec4 | [
"BSD-3-Clause"
] | null | null | null | defmodule DocGen.ReleaseTasks do
@moduledoc """
Tasks runnable from a distillery release for doing database things.
"""
@start_apps [
:crypto,
:ssl,
:postgrex,
:ecto
]
@repos Application.get_env(:doc_gen, :ecto_repos, [])
def migrate do
start_services()
run_migrations()
st... | 20.149425 | 69 | 0.659441 |
039e7a4cb43f536f2083a86f3ec91094fc86271d | 1,648 | exs | Elixir | mix.exs | annkissam/freshbooks_api_client | 016edcf9e126d711048c6321ffd7f45b4727fd3d | [
"MIT"
] | 2 | 2018-09-18T21:26:55.000Z | 2020-04-24T15:29:05.000Z | mix.exs | annkissam/freshbooks_api_client | 016edcf9e126d711048c6321ffd7f45b4727fd3d | [
"MIT"
] | 1 | 2018-03-02T14:33:21.000Z | 2018-03-02T14:33:21.000Z | mix.exs | annkissam/freshbooks_api_client | 016edcf9e126d711048c6321ffd7f45b4727fd3d | [
"MIT"
] | null | null | null | defmodule FreshbooksApiClient.Mixfile do
use Mix.Project
@version "0.4.0"
@url "https://github.com/annkissam/freshbooks_api_client"
def project do
[
app: :freshbooks_api_client,
version: @version,
elixir: "~> 1.5",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix... | 20.860759 | 69 | 0.552791 |
039e7c2b9b6b7c0cdba2fea93fcead6fff982d17 | 3,952 | exs | Elixir | test/suite/draft4/ref_remote_test.exs | depressed-pho/xema | 56de4a5d3b3f37827c70f6052f895c59feb0bb51 | [
"MIT"
] | null | null | null | test/suite/draft4/ref_remote_test.exs | depressed-pho/xema | 56de4a5d3b3f37827c70f6052f895c59feb0bb51 | [
"MIT"
] | null | null | null | test/suite/draft4/ref_remote_test.exs | depressed-pho/xema | 56de4a5d3b3f37827c70f6052f895c59feb0bb51 | [
"MIT"
] | null | null | null | defmodule Draft4.RefRemoteTest do
use ExUnit.Case, async: true
import Xema, only: [valid?: 2]
describe "remote ref" do
setup do
%{schema: Xema.new({:ref, "http://localhost:1234/integer.exon"})}
end
test "remote ref valid", %{schema: schema} do
data = 1
assert valid?(schema, data)
... | 23.111111 | 87 | 0.501518 |
039ead8d1fc6d885aac5adb1f6a9cd2b7bc3f02c | 7,335 | ex | Elixir | apps/ex_wire/lib/ex_wire/framing/frame.ex | atoulme/mana | cff3fd96c23feaaeb9fe32df3c0d35ee6dc548a5 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | null | null | null | apps/ex_wire/lib/ex_wire/framing/frame.ex | atoulme/mana | cff3fd96c23feaaeb9fe32df3c0d35ee6dc548a5 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | null | null | null | apps/ex_wire/lib/ex_wire/framing/frame.ex | atoulme/mana | cff3fd96c23feaaeb9fe32df3c0d35ee6dc548a5 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | null | null | null | defmodule ExWire.Framing.Frame do
@moduledoc """
Handles framing a message for transport in RLPx.
This is defined in the [RLPx docs[(https://github.com/ethereum/devp2p/blob/master/rlpx.md)
under Framing section.
TODO: Handle multi-frame packets, etc.
TODO: Add tests, etc.
"""
alias ExthCrypto.{AES, M... | 35.095694 | 102 | 0.644717 |
039eb4928bf61d7b01aa38bf5da5cd211b30223f | 878 | ex | Elixir | clients/people/lib/google_api/people/v1/metadata.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/people/lib/google_api/people/v1/metadata.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/people/lib/google_api/people/v1/metadata.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"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... | 32.518519 | 74 | 0.757403 |
039ec124920672c0132b0906a1e3c6bcaadb107e | 81 | exs | Elixir | test/absinthe/integration/execution/custom_types/basic.exs | maartenvanvliet/absinthe | ebe820717200f53756e225b3dffbfefe924a94d3 | [
"MIT"
] | null | null | null | test/absinthe/integration/execution/custom_types/basic.exs | maartenvanvliet/absinthe | ebe820717200f53756e225b3dffbfefe924a94d3 | [
"MIT"
] | 2 | 2020-07-21T05:23:37.000Z | 2020-08-26T04:56:12.000Z | test/absinthe/integration/execution/custom_types/basic.exs | jlgeering/absinthe | a3dbc29640d613928398626ad75a8f03203a1720 | [
"MIT"
] | null | null | null | {:ok, %{data: %{"customTypesQuery" => %{"datetime" => "2017-01-27T20:31:55Z"}}}}
| 40.5 | 80 | 0.567901 |
039ecc37ade3b0ff7ac96fa147c788c0a8f31da1 | 2,569 | ex | Elixir | clients/data_labeling/lib/google_api/data_labeling/v1beta1/model/google_cloud_datalabeling_v1p1alpha1_export_data_operation_metadata.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/data_labeling/lib/google_api/data_labeling/v1beta1/model/google_cloud_datalabeling_v1p1alpha1_export_data_operation_metadata.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/data_labeling/lib/google_api/data_labeling/v1beta1/model/google_cloud_datalabeling_v1p1alpha1_export_data_operation_metadata.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 40.777778 | 262 | 0.740366 |
039f0ebd7a79ffb238be9174b053a357ec426149 | 1,797 | ex | Elixir | clients/health_care/lib/google_api/health_care/v1beta1/model/import_dicom_data_error_details.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/health_care/lib/google_api/health_care/v1beta1/model/import_dicom_data_error_details.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/health_care/lib/google_api/health_care/v1beta1/model/import_dicom_data_error_details.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... | 35.94 | 152 | 0.760712 |
039f12a776deb0c5cb22f22201cd128e08462118 | 1,854 | exs | Elixir | clients/cloud_scheduler/mix.exs | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/cloud_scheduler/mix.exs | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/cloud_scheduler/mix.exs | 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... | 27.671642 | 106 | 0.658576 |
039f2589fc6db224f8ace85ba8c6c9a91380544c | 1,343 | exs | Elixir | config/dev.exs | gilacost/task_manager | 550d8ce603b555f017dd689a2db6819b85ddbbd1 | [
"MIT"
] | null | null | null | config/dev.exs | gilacost/task_manager | 550d8ce603b555f017dd689a2db6819b85ddbbd1 | [
"MIT"
] | null | null | null | config/dev.exs | gilacost/task_manager | 550d8ce603b555f017dd689a2db6819b85ddbbd1 | [
"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 :home_work_manager, HomeWorkManager.Endpoint,
... | 29.195652 | 73 | 0.714073 |
039f2adf8c334ae0994875ded7db673f39dae3c3 | 306 | exs | Elixir | apps/rumbl/priv/repo/migrations/20160630203719_create_user.exs | Krustee/rumbrella | 252ee46da0c563680f8dddb381523ab7a75069fe | [
"MIT"
] | null | null | null | apps/rumbl/priv/repo/migrations/20160630203719_create_user.exs | Krustee/rumbrella | 252ee46da0c563680f8dddb381523ab7a75069fe | [
"MIT"
] | null | null | null | apps/rumbl/priv/repo/migrations/20160630203719_create_user.exs | Krustee/rumbrella | 252ee46da0c563680f8dddb381523ab7a75069fe | [
"MIT"
] | null | null | null | defmodule Rumbl.Repo.Migrations.CreateUser do
use Ecto.Migration
def change do
create table(:users) do
add :name, :string
add :username, :string, null: false
add :password_hash, :string
timestamps
end
create unique_index(:users, [:username])
end
end
| 19.125 | 45 | 0.640523 |
039f47c1f2eaf791cd7ef6e46ded6c38c390460c | 1,970 | ex | Elixir | clients/games/lib/google_api/games/v1/model/player_achievement_list_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/games/lib/google_api/games/v1/model/player_achievement_list_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/games/lib/google_api/games/v1/model/player_achievement_list_response.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... | 37.169811 | 172 | 0.726904 |
039f83c7190a122071e996eef6562f3fa5d5a42c | 1,141 | ex | Elixir | clients/data_migration/lib/google_api/data_migration/v1beta1/connection.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | 1 | 2021-10-01T09:20:41.000Z | 2021-10-01T09:20:41.000Z | clients/data_migration/lib/google_api/data_migration/v1beta1/connection.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/data_migration/lib/google_api/data_migration/v1beta1/connection.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 34.575758 | 74 | 0.743208 |
039f87fea2d4b0ce913876ceefed3806c1912266 | 1,516 | ex | Elixir | lib/ratatouille/renderer/element/tree.ex | Fitblip/ratatouille | 873f8a51b0f824ce9e39b7575850fcc585cfc7b1 | [
"MIT"
] | 504 | 2019-01-13T21:53:21.000Z | 2022-03-31T20:58:21.000Z | lib/ratatouille/renderer/element/tree.ex | iboard/ratatouille | cc7b6a37e0b1757cd89cc5084343814a79dd86dc | [
"MIT"
] | 28 | 2019-01-26T21:00:23.000Z | 2021-12-28T19:06:15.000Z | lib/ratatouille/renderer/element/tree.ex | iboard/ratatouille | cc7b6a37e0b1757cd89cc5084343814a79dd86dc | [
"MIT"
] | 21 | 2019-02-21T09:08:27.000Z | 2021-12-20T15:51:10.000Z | defmodule Ratatouille.Renderer.Element.Tree do
@moduledoc false
@behaviour Ratatouille.Renderer
alias ExTermbox.Position
alias Ratatouille.Renderer.{Canvas, Element, Text}
@impl true
def render(%Canvas{} = canvas, %Element{children: nodes}, _render_fn) do
canvas
|> render_nodes(nodes, "", true)
... | 25.266667 | 74 | 0.655673 |
039f9ccf824c7caded7e4dc04da5d8afa454be3a | 77 | exs | Elixir | spec/brex/rule_spec.exs | kianmeng/brex | f9758e0e8684404d7552597aac9e436aa8063532 | [
"MIT"
] | 34 | 2018-04-04T10:27:08.000Z | 2019-05-19T15:46:08.000Z | spec/brex/rule_spec.exs | kianmeng/brex | f9758e0e8684404d7552597aac9e436aa8063532 | [
"MIT"
] | 4 | 2020-05-04T08:50:21.000Z | 2021-12-15T01:25:43.000Z | spec/brex/rule_spec.exs | kianmeng/brex | f9758e0e8684404d7552597aac9e436aa8063532 | [
"MIT"
] | 3 | 2020-05-07T13:36:25.000Z | 2021-11-04T22:49:16.000Z | defmodule Brex.RuleSpec do
use ESpec, async: true
doctest Brex.Rule
end
| 12.833333 | 26 | 0.753247 |
039fbdda5775b74e2fd9af595ccb81a02f8dc42e | 1,129 | exs | Elixir | excollections/config/config.exs | metabrain/elixir-playground | 0c114ee8a8cb2d610f54b9cca83cbe6917226c33 | [
"MIT"
] | null | null | null | excollections/config/config.exs | metabrain/elixir-playground | 0c114ee8a8cb2d610f54b9cca83cbe6917226c33 | [
"MIT"
] | null | null | null | excollections/config/config.exs | metabrain/elixir-playground | 0c114ee8a8cb2d610f54b9cca83cbe6917226c33 | [
"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.419355 | 73 | 0.753764 |
03a02d9062805783ec843e262e794751bacda784 | 16,677 | ex | Elixir | lib/ecto/repo/queryable.ex | adbatista/ecto | ab63701cf9b3ceab6ddf54c87d549abe24e1248a | [
"Apache-2.0"
] | 2 | 2021-02-25T15:51:16.000Z | 2021-02-25T18:42:35.000Z | lib/ecto/repo/queryable.ex | adbatista/ecto | ab63701cf9b3ceab6ddf54c87d549abe24e1248a | [
"Apache-2.0"
] | null | null | null | lib/ecto/repo/queryable.ex | adbatista/ecto | ab63701cf9b3ceab6ddf54c87d549abe24e1248a | [
"Apache-2.0"
] | 1 | 2018-06-18T14:47:58.000Z | 2018-06-18T14:47:58.000Z | defmodule Ecto.Repo.Queryable do
@moduledoc false
alias Ecto.Queryable
alias Ecto.Query
alias Ecto.Query.Planner
alias Ecto.Query.SelectExpr
require Ecto.Query
def all(name, queryable, opts) when is_list(opts) do
query =
queryable
|> Ecto.Queryable.to_query()
|> Ecto.Query.Planner... | 29.412698 | 144 | 0.619896 |
03a07fc45554abd53a715e011ae651ca3a884bfd | 2,949 | exs | Elixir | mix.exs | df1228/elixir-boilerplate | dcd0282aa4a9a0e604e3d2b7ae1dc209f16fb02b | [
"BSD-3-Clause"
] | null | null | null | mix.exs | df1228/elixir-boilerplate | dcd0282aa4a9a0e604e3d2b7ae1dc209f16fb02b | [
"BSD-3-Clause"
] | null | null | null | mix.exs | df1228/elixir-boilerplate | dcd0282aa4a9a0e604e3d2b7ae1dc209f16fb02b | [
"BSD-3-Clause"
] | null | null | null | defmodule ElixirBoilerplate.Mixfile do
use Mix.Project
def project do
[
app: :elixir_boilerplate,
version: "0.0.1",
elixir: "~> 1.12",
erlang: "~> 24.1",
elixirc_paths: elixirc_paths(Mix.env()),
test_paths: ["test"],
test_pattern: "**/*_test.exs",
test_coverage: ... | 25.205128 | 121 | 0.517124 |
03a0e2f067af6ba3119ee145f2100e64bca25087 | 1,507 | ex | Elixir | lib/rfx/util/source.ex | doorgan/rfx | 566b8623ce8957632329b4b0a142ea26a46f2301 | [
"MIT"
] | null | null | null | lib/rfx/util/source.ex | doorgan/rfx | 566b8623ce8957632329b4b0a142ea26a46f2301 | [
"MIT"
] | null | null | null | lib/rfx/util/source.ex | doorgan/rfx | 566b8623ce8957632329b4b0a142ea26a46f2301 | [
"MIT"
] | null | null | null | defmodule Rfx.Util.Source do
@moduledoc """
A utility module for source code manipulation.
"""
alias Rfx.Util.Str
@base_diff "/tmp/rfx_base_diff"
@doc """
Returns updated text, edited according to the Sourceror edit function.
"""
def edit(code, efun) do
code
|> Sourceror.parse_string()
... | 23.184615 | 72 | 0.613139 |
03a10a2ecffe538e561ae31e5ff9af1dd42be5b7 | 3,071 | ex | Elixir | lib/asterix.ex | chribben/asterix | 92d30b7489df9209168f3991b8d5ead500054cb6 | [
"MIT"
] | 1 | 2015-02-20T19:25:29.000Z | 2015-02-20T19:25:29.000Z | lib/asterix.ex | chribben/asterix | 92d30b7489df9209168f3991b8d5ead500054cb6 | [
"MIT"
] | null | null | null | lib/asterix.ex | chribben/asterix | 92d30b7489df9209168f3991b8d5ead500054cb6 | [
"MIT"
] | null | null | null | defmodule Asterix do
alias Asterix.Protocol.Request
alias Asterix.Protocol.Response
alias Asterix.Protocol.MetadataRequest
alias Asterix.Protocol.MetadataResponse
alias Asterix.Protocol.Encodeable
alias Asterix.Protocol.Decodeable
alias Asterix.Protocol.Decoder
alias Asterix.Protocol.ProduceRequest
al... | 24.766129 | 61 | 0.629437 |
03a12dd5a85e0c789632052a400244cd344439b8 | 5,030 | ex | Elixir | lib/riak/object.ex | MikaAK/riak-elixir-client | c58700ec30a451a46b226a09387144becc47d5ae | [
"Apache-2.0"
] | 193 | 2015-01-04T15:36:15.000Z | 2022-03-17T21:31:57.000Z | lib/riak/object.ex | MikaAK/riak-elixir-client | c58700ec30a451a46b226a09387144becc47d5ae | [
"Apache-2.0"
] | 51 | 2015-02-12T02:32:23.000Z | 2020-09-22T11:10:56.000Z | lib/riak/object.ex | MikaAK/riak-elixir-client | c58700ec30a451a46b226a09387144becc47d5ae | [
"Apache-2.0"
] | 54 | 2015-03-05T01:10:33.000Z | 2021-09-27T10:40:26.000Z | defmodule Riak.Object do
@moduledoc """
The Data wrapper makes it convenient to work with Riak data in Elixir
"""
@doc """
Struct representing a Riak Object. Attributes:
* `type`: String; Bucket Type with a unique name within the cluster namespace
* `bucket`: String; Bucket with a unique name within the ... | 26.613757 | 119 | 0.636978 |
03a132b1d49896e4e5256c9a285add57ff9dc068 | 419 | exs | Elixir | test/support/test_client.exs | mbta/sentry-elixir | ce417a69efec0eeb968a3c8fdcd61d3115c69875 | [
"MIT"
] | null | null | null | test/support/test_client.exs | mbta/sentry-elixir | ce417a69efec0eeb968a3c8fdcd61d3115c69875 | [
"MIT"
] | null | null | null | test/support/test_client.exs | mbta/sentry-elixir | ce417a69efec0eeb968a3c8fdcd61d3115c69875 | [
"MIT"
] | null | null | null | defmodule Sentry.TestClient do
@behaviour Sentry.HTTPClient
def send_event(%Sentry.Event{} = event, _opts \\ []) do
{endpoint, _public_key, _secret_key} = Sentry.Client.get_dsn!
event = Sentry.Client.maybe_call_before_send_event(event)
case Poison.encode(event) do
{:ok, body} ->
Sentry.Cl... | 27.933333 | 65 | 0.658711 |
03a153253f21c677b1d6e88c0c4daf3cffa70f75 | 11,300 | exs | Elixir | test/extensions/persistent_session/plug/cookie_test.exs | jordelver/pow | 60235189155c87efbb40238ce5008340d470e995 | [
"MIT"
] | null | null | null | test/extensions/persistent_session/plug/cookie_test.exs | jordelver/pow | 60235189155c87efbb40238ce5008340d470e995 | [
"MIT"
] | null | null | null | test/extensions/persistent_session/plug/cookie_test.exs | jordelver/pow | 60235189155c87efbb40238ce5008340d470e995 | [
"MIT"
] | null | null | null | defmodule PowPersistentSession.Plug.CookieTest do
use ExUnit.Case
doctest PowPersistentSession.Plug.Cookie
alias Plug.Conn
alias Pow.{Plug, Plug.Session}
alias Pow.Test.ConnHelpers
alias PowPersistentSession.{Plug.Cookie, Store.PersistentSessionCache}
alias PowPersistentSession.Test.Users.User
@cookie... | 35.093168 | 193 | 0.643628 |
03a1546a2acc00347e00db47f81a8a249ab738e9 | 629 | ex | Elixir | Microsoft.Azure.Management.Preview.Containers/lib/microsoft/azure/management/preview/containers/model/docker_build_step.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.Containers/lib/microsoft/azure/management/preview/containers/model/docker_build_step.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | null | null | null | Microsoft.Azure.Management.Preview.Containers/lib/microsoft/azure/management/preview/containers/model/docker_build_step.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.Containers.Model.DockerBuildStep do
@moduledoc """
The Docker build step.
"""
@derive [Poison.Encoder]... | 22.464286 | 99 | 0.712242 |
03a1e39076c2e8d7078a0163f606d3a8aaabb3e3 | 7,146 | ex | Elixir | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v2beta1/model/proposal.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v2beta1/model/proposal.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v2beta1/model/proposal.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... | 64.378378 | 496 | 0.724461 |
03a1ef6e7e84656d68db7385ca2a14f32028edc1 | 655 | exs | Elixir | test/charge_test.exs | NarrativeApp/stripe-elixir | 873c79cf4f6cc5db974b11fbd4e4f85c8a0a9004 | [
"MIT"
] | null | null | null | test/charge_test.exs | NarrativeApp/stripe-elixir | 873c79cf4f6cc5db974b11fbd4e4f85c8a0a9004 | [
"MIT"
] | 24 | 2020-09-08T20:24:59.000Z | 2021-09-22T04:04:17.000Z | test/charge_test.exs | NarrativeApp/stripe-elixir | 873c79cf4f6cc5db974b11fbd4e4f85c8a0a9004 | [
"MIT"
] | null | null | null | defmodule Stripe.ChargeTest do
use ExUnit.Case, async: true
alias Stripe.Charge
alias Stripe.InvalidRequestError
@tag skip: "currently failing"
test "create a charge" do
assert {:error, %InvalidRequestError{message: "Must provide source or customer."}} =
Charge.create([])
end
@tag skip... | 27.291667 | 88 | 0.659542 |
03a1f1ef6c11b954b4de6f9dc5818d4c035367c0 | 21,628 | ex | Elixir | lib/cldr/interval/date_time.ex | kipcole9/cldr_dates_times | c5d495ac8bd4cdd8a279a517ed24c243c9c2e4a3 | [
"Apache-2.0"
] | 9 | 2017-10-07T00:01:18.000Z | 2019-01-12T17:20:09.000Z | lib/cldr/interval/date_time.ex | kipcole9/cldr_dates_times | c5d495ac8bd4cdd8a279a517ed24c243c9c2e4a3 | [
"Apache-2.0"
] | 8 | 2017-10-05T20:00:52.000Z | 2019-02-12T00:22:11.000Z | lib/cldr/interval/date_time.ex | kipcole9/cldr_dates_times | c5d495ac8bd4cdd8a279a517ed24c243c9c2e4a3 | [
"Apache-2.0"
] | 3 | 2017-10-05T11:35:34.000Z | 2018-12-28T16:31:35.000Z | defmodule Cldr.DateTime.Interval do
@moduledoc """
Interval formats allow for software to format intervals like "Jan 10-12, 2008" as a
shorter and more natural format than "Jan 10, 2008 - Jan 12, 2008". They are designed
to take a start and end date, time or datetime plus a formatting pattern
and use that inf... | 33.583851 | 108 | 0.676715 |
03a1fb0492eae47fb3bb620a6869f4182febe31d | 129 | exs | Elixir | config/ipv6.exs | thomasvolk/lightbulb | f8d512c62073f814846762093076cf16a1e100be | [
"Apache-2.0"
] | null | null | null | config/ipv6.exs | thomasvolk/lightbulb | f8d512c62073f814846762093076cf16a1e100be | [
"Apache-2.0"
] | null | null | null | config/ipv6.exs | thomasvolk/lightbulb | f8d512c62073f814846762093076cf16a1e100be | [
"Apache-2.0"
] | null | null | null | use Mix.Config
config :lightbulb,
udp_api: Lightbulb.UdpIpv6,
broadcast_address: "ff02::1"
config :logger, level: :debug
| 16.125 | 31 | 0.728682 |
03a200721912f07fcef0faec78a22eab07d6aba2 | 393 | exs | Elixir | test/w_web/views/error_view_test.exs | ponyatov/w | 3211fd253018f07da382871cf2d08b80574b72e6 | [
"MIT"
] | null | null | null | test/w_web/views/error_view_test.exs | ponyatov/w | 3211fd253018f07da382871cf2d08b80574b72e6 | [
"MIT"
] | null | null | null | test/w_web/views/error_view_test.exs | ponyatov/w | 3211fd253018f07da382871cf2d08b80574b72e6 | [
"MIT"
] | null | null | null | defmodule WWeb.ErrorViewTest do
use WWeb.ConnCase, async: true
# Bring render/3 and render_to_string/3 for testing custom views
import Phoenix.View
test "renders 404.html" do
assert render_to_string(WWeb.ErrorView, "404.html", []) == "Not Found"
end
test "renders 500.html" do
assert render_to_str... | 26.2 | 86 | 0.717557 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.