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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9e217ed997f19a1b05edcbb3b485297941ba9d39 | 207 | exs | Elixir | test/docker_phx_web/controllers/page_controller_test.exs | beltranaceves/docker_phx | 06a9cba602ccd4f054568b7a40ca36bedc9a3e27 | [
"MIT"
] | null | null | null | test/docker_phx_web/controllers/page_controller_test.exs | beltranaceves/docker_phx | 06a9cba602ccd4f054568b7a40ca36bedc9a3e27 | [
"MIT"
] | null | null | null | test/docker_phx_web/controllers/page_controller_test.exs | beltranaceves/docker_phx | 06a9cba602ccd4f054568b7a40ca36bedc9a3e27 | [
"MIT"
] | null | null | null | defmodule DockerPhxWeb.PageControllerTest do
use DockerPhxWeb.ConnCase
test "GET /", %{conn: conn} do
conn = get(conn, "/")
assert html_response(conn, 200) =~ "Welcome to Docker Phx!"
end
end
| 23 | 63 | 0.68599 |
9e21ad828d735b131dd18dc1e0703189a04d3c2b | 136 | ex | Elixir | lib/sozui_web/controllers/page_controller.ex | evuez/sozui | e478da720ca72c96be4d53bfb03fe6917670b81d | [
"MIT"
] | null | null | null | lib/sozui_web/controllers/page_controller.ex | evuez/sozui | e478da720ca72c96be4d53bfb03fe6917670b81d | [
"MIT"
] | null | null | null | lib/sozui_web/controllers/page_controller.ex | evuez/sozui | e478da720ca72c96be4d53bfb03fe6917670b81d | [
"MIT"
] | null | null | null | defmodule SozUIWeb.PageController do
use SozUIWeb, :controller
def index(conn, _params) do
render conn, "index.html"
end
end
| 17 | 36 | 0.735294 |
9e21ada50d8d40ee0a84525fa7831a91d6881585 | 213 | ex | Elixir | examples/ex1/task/store.ex | Carburetor/esp_ex | 0a0ab02c71945e521b213befc0421a4642c9e07b | [
"MIT"
] | null | null | null | examples/ex1/task/store.ex | Carburetor/esp_ex | 0a0ab02c71945e521b213befc0421a4642c9e07b | [
"MIT"
] | 1 | 2018-05-11T04:27:54.000Z | 2018-05-11T04:27:54.000Z | examples/ex1/task/store.ex | Carburetor/esp_ex | 0a0ab02c71945e521b213befc0421a4642c9e07b | [
"MIT"
] | 1 | 2018-10-30T06:08:02.000Z | 2018-10-30T06:08:02.000Z | defmodule Ex1.Task.Store do
use EspEx.Store,
entity: Ex1.Task,
stream_category: "task",
projection: Ex1.Task.Projection
# To use the store
# {:ok, task, _version} = Ex1.Task.Store.fetch(id)
end
| 21.3 | 52 | 0.676056 |
9e21d93d8b5036b2bb31d5cfce0e2449ef344fa4 | 60,773 | ex | Elixir | lib/ecto_adapters_dynamodb.ex | rauann/ecto_adapters_dynamodb | 4762bab21c4715775b6155f0c76b3cfabdeebc6e | [
"Apache-2.0"
] | 50 | 2017-06-21T00:15:15.000Z | 2022-01-18T04:12:24.000Z | lib/ecto_adapters_dynamodb.ex | rauann/ecto_adapters_dynamodb | 4762bab21c4715775b6155f0c76b3cfabdeebc6e | [
"Apache-2.0"
] | 91 | 2018-01-10T19:29:25.000Z | 2022-02-24T16:12:26.000Z | lib/ecto_adapters_dynamodb.ex | rauann/ecto_adapters_dynamodb | 4762bab21c4715775b6155f0c76b3cfabdeebc6e | [
"Apache-2.0"
] | 11 | 2017-11-28T06:22:58.000Z | 2022-01-04T18:03:11.000Z | defmodule Ecto.Adapters.DynamoDB do
@moduledoc """
Ecto adapter for Amazon DynamoDB.
"""
@behaviour Ecto.Adapter
@behaviour Ecto.Adapter.Schema
@behaviour Ecto.Adapter.Queryable
@behaviour Ecto.Adapter.Migration
@impl Ecto.Adapter
defmacro __before_compile__(_env) do
# Nothing to see here, yet...... | 35.353694 | 335 | 0.641436 |
9e22148f51cfe36ecf0dffb41c8f2ded6e97bbc1 | 397 | exs | Elixir | test/cog/chat/slack/templates/embedded/bundle_install_test.exs | matusf/cog | 71708301c7dc570fb0d3498a50f47a70ef957788 | [
"Apache-2.0"
] | 1,003 | 2016-02-23T17:21:12.000Z | 2022-02-20T14:39:35.000Z | test/cog/chat/slack/templates/embedded/bundle_install_test.exs | matusf/cog | 71708301c7dc570fb0d3498a50f47a70ef957788 | [
"Apache-2.0"
] | 906 | 2016-02-22T22:54:19.000Z | 2022-03-11T15:19:43.000Z | test/cog/chat/slack/templates/embedded/bundle_install_test.exs | matusf/cog | 71708301c7dc570fb0d3498a50f47a70ef957788 | [
"Apache-2.0"
] | 95 | 2016-02-23T13:42:31.000Z | 2021-11-30T14:39:55.000Z | defmodule Cog.Chat.Slack.Templates.Embedded.BundleInstallTest do
use Cog.TemplateCase
test "bundle-info template" do
data = %{"results" => [%{"name" => "heroku",
"versions" => [%{"version" => "0.0.4"}]}]}
expected = "Installed bundle 'heroku' version '0.0.4'"
assert_rende... | 28.357143 | 81 | 0.617128 |
9e223b234716cf7d9136bb96074b90c1b6cdf334 | 1,995 | ex | Elixir | clients/display_video/lib/google_api/display_video/v1/model/list_combined_audiences_response.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/display_video/lib/google_api/display_video/v1/model/list_combined_audiences_response.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/display_video/lib/google_api/display_video/v1/model/list_combined_audiences_response.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"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.625 | 146 | 0.741855 |
9e228eeb743e4fe0ea62d0d29d82aa1fc9b92575 | 1,216 | ex | Elixir | lib/pelemay/generator/builder.ex | christianjgreen/pelemay | b400c4420f9edd41031d7dbc962eff38215d9e05 | [
"Apache-2.0"
] | null | null | null | lib/pelemay/generator/builder.ex | christianjgreen/pelemay | b400c4420f9edd41031d7dbc962eff38215d9e05 | [
"Apache-2.0"
] | null | null | null | lib/pelemay/generator/builder.ex | christianjgreen/pelemay | b400c4420f9edd41031d7dbc962eff38215d9e05 | [
"Apache-2.0"
] | null | null | null | defmodule Pelemay.Generator.Builder do
alias Pelemay.Generator
@cc "clang"
@cflags ["-Ofast", "-g", "-ansi", "-pedantic", "-femit-all-decls"]
@cflags_includes ["-I/usr/local/include", "-I/usr/include", "-L/usr/local/lib", "-L/usr/lib"]
@cflags_after ["-std=c11", "-Wno-unused-function"]
@ldflags []
@cflag... | 28.952381 | 97 | 0.616776 |
9e229a72e592453f55b3bb4d286dc0f0b5e6c9b7 | 288 | exs | Elixir | test/order_api/buyers_test.exs | gissandrogama/delivery_order | 8642453b03f590fe828225fc13aa58a5f79b2117 | [
"MIT"
] | null | null | null | test/order_api/buyers_test.exs | gissandrogama/delivery_order | 8642453b03f590fe828225fc13aa58a5f79b2117 | [
"MIT"
] | 6 | 2021-01-22T15:23:04.000Z | 2021-01-28T07:56:01.000Z | test/order_api/buyers_test.exs | gissandrogama/delivery_order | 8642453b03f590fe828225fc13aa58a5f79b2117 | [
"MIT"
] | null | null | null | defmodule OrderApi.BuyersTest do
use OrderApi.DataCase
import OrderApi.PayloadFixture
alias OrderApi.Buyers
describe "run/0" do
test "return structure in json" do
build()
result = Buyers.list_buyers()
assert [%OrderApi.Buyer{}] = result
end
end
end
| 18 | 41 | 0.6875 |
9e22f9017b5f316df4db60cbd356b0e2cc77115e | 2,975 | ex | Elixir | plugins/one_webrtc/lib/one_webrtc_web/flex_bar/tab/webrtc.ex | smpallen99/ucx_ucc | 47225f205a6ac4aacdb9bb4f7512dcf4092576ad | [
"MIT"
] | 11 | 2017-05-15T18:35:05.000Z | 2018-02-05T18:27:40.000Z | plugins/one_webrtc/lib/one_webrtc_web/flex_bar/tab/webrtc.ex | anndream/infinity_one | 47225f205a6ac4aacdb9bb4f7512dcf4092576ad | [
"MIT"
] | 15 | 2017-11-27T10:38:05.000Z | 2018-02-09T20:42:08.000Z | plugins/one_webrtc/lib/one_webrtc_web/flex_bar/tab/webrtc.ex | anndream/infinity_one | 47225f205a6ac4aacdb9bb4f7512dcf4092576ad | [
"MIT"
] | 4 | 2017-09-13T11:34:16.000Z | 2018-02-26T13:37:06.000Z | defmodule OneWebrtcWeb.FlexBar.Tab.Webrtc do
use OneChatWeb.FlexBar.Helpers
alias InfinityOne.OnePubSub
alias InfinityOne.{TabBar.Tab, Repo}
alias OneWebrtcWeb.{FlexBar.Tab.MembersList, FlexBarView}
alias OneWebrtc.ClientDevice
require Logger
@spec add_buttons() :: any
def add_buttons do
TabBar.a... | 29.75 | 104 | 0.619832 |
9e22f9f24f3f7bf1d1db8f929d751fb3fc444652 | 1,388 | exs | Elixir | mix.exs | ghaabor/golem | 202cde10fe86a7e4e5d3713e7c78a4848d4d96a1 | [
"Apache-2.0"
] | null | null | null | mix.exs | ghaabor/golem | 202cde10fe86a7e4e5d3713e7c78a4848d4d96a1 | [
"Apache-2.0"
] | null | null | null | mix.exs | ghaabor/golem | 202cde10fe86a7e4e5d3713e7c78a4848d4d96a1 | [
"Apache-2.0"
] | null | null | null | defmodule Golem.Mixfile do
use Mix.Project
def project do
[
app: :golem,
version: "0.0.1-alpha3",
elixir: "~> 1.4",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps(),
package: package(),
description: description(),
test_cove... | 21.030303 | 62 | 0.512968 |
9e230e8de9c97e317aed7c07b1142a072a6350e5 | 1,514 | exs | Elixir | test/absinthe_cache_test.exs | EnthuZiastic/absinthe_cache | 48059fa41f4d04ad819f1564e3ea4a7d3b5c69cf | [
"MIT"
] | 19 | 2020-02-06T09:26:28.000Z | 2022-02-18T01:17:40.000Z | test/absinthe_cache_test.exs | EnthuZiastic/absinthe_cache | 48059fa41f4d04ad819f1564e3ea4a7d3b5c69cf | [
"MIT"
] | 1 | 2021-06-21T16:52:30.000Z | 2021-07-12T00:03:10.000Z | test/absinthe_cache_test.exs | EnthuZiastic/absinthe_cache | 48059fa41f4d04ad819f1564e3ea4a7d3b5c69cf | [
"MIT"
] | 3 | 2021-05-24T08:36:11.000Z | 2021-08-05T07:47:26.000Z | defmodule AbsintheCacheTest do
defmodule Schema do
use Absinthe.Schema
import AbsintheCache, only: [cache_resolve: 1]
require Logger
query do
field :get_name_cached, non_null(:string) do
cache_resolve(fn _, _, _ ->
Logger.info("PRINTING SOME DATA")
{:ok, "Ivan"}
... | 27.527273 | 67 | 0.641347 |
9e2315891abf33866467fb1a352639543237ba1d | 37,691 | ex | Elixir | clients/cloud_resource_manager/lib/google_api/cloud_resource_manager/v2/api/folders.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/cloud_resource_manager/lib/google_api/cloud_resource_manager/v2/api/folders.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/cloud_resource_manager/lib/google_api/cloud_resource_manager/v2/api/folders.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"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.686061 | 196 | 0.645671 |
9e231a87efedb1cc25c98ef4ac8f563625083544 | 1,192 | ex | Elixir | priv/templates/gen.components/catalogue/components_catalogue/icons.ex | inspired-consulting/gen_components | 47c567fb2d6e918341e2efa07c2f7345038a8a90 | [
"MIT"
] | 2 | 2022-03-28T21:33:39.000Z | 2022-03-30T17:14:34.000Z | priv/templates/gen.components/catalogue/components_catalogue/icons.ex | inspired-consulting/gen_components | 47c567fb2d6e918341e2efa07c2f7345038a8a90 | [
"MIT"
] | null | null | null | priv/templates/gen.components/catalogue/components_catalogue/icons.ex | inspired-consulting/gen_components | 47c567fb2d6e918341e2efa07c2f7345038a8a90 | [
"MIT"
] | null | null | null | defmodule <%= catalogue_module %>.Icons do
use <%= web_module %>, :component
import <%= components_module %>.Icon
defp frame(assigns) do
~H"""
<div title={@title} style="
border: 1px solid black;
width: 5rem;
height: 5rem;
margin: 0.5rem;
border-radius: 0.3rem;
displa... | 28.380952 | 95 | 0.555369 |
9e233176afd51a633dc91c104453f5b9bf7dc818 | 132 | exs | Elixir | test/proj3_test.exs | anipmehta/ChordProtocol | 7e9f0a1e0d3ea0d4bd927d1a28fcd3444f50a755 | [
"MIT"
] | null | null | null | test/proj3_test.exs | anipmehta/ChordProtocol | 7e9f0a1e0d3ea0d4bd927d1a28fcd3444f50a755 | [
"MIT"
] | null | null | null | test/proj3_test.exs | anipmehta/ChordProtocol | 7e9f0a1e0d3ea0d4bd927d1a28fcd3444f50a755 | [
"MIT"
] | null | null | null | defmodule Proj3Test do
use ExUnit.Case
doctest Proj3
test "greets the world" do
assert Proj3.hello() == :world
end
end
| 14.666667 | 34 | 0.69697 |
9e237d845221d7323494210b5f235686c5250088 | 1,731 | ex | Elixir | clients/memcache/lib/google_api/memcache/v1beta2/model/daily_cycle.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/memcache/lib/google_api/memcache/v1beta2/model/daily_cycle.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/memcache/lib/google_api/memcache/v1beta2/model/daily_cycle.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... | 34.62 | 139 | 0.731947 |
9e23a28aae934fc7db43d9943f333673b53b6da4 | 973 | ex | Elixir | lib/mix/tasks/compile.phoenix.ex | arkgil/phoenix | b5d82814154b5fb87c0870e25c1c2243c9384d9e | [
"MIT"
] | null | null | null | lib/mix/tasks/compile.phoenix.ex | arkgil/phoenix | b5d82814154b5fb87c0870e25c1c2243c9384d9e | [
"MIT"
] | null | null | null | lib/mix/tasks/compile.phoenix.ex | arkgil/phoenix | b5d82814154b5fb87c0870e25c1c2243c9384d9e | [
"MIT"
] | null | null | null | defmodule Mix.Tasks.Compile.Phoenix do
use Mix.Task
@recursive true
@moduledoc """
Compiles Phoenix source files that support code reloading.
"""
@doc false
def run(_args) do
{:ok, _} = Application.ensure_all_started(:phoenix)
case touch() do
[] -> :noop
_ -> :ok
end
end
@d... | 22.113636 | 90 | 0.664954 |
9e23dd0e34cd931fd513a69742fc6f0916e80e70 | 725 | exs | Elixir | test/grizzly/zwave/commands/barrier_operator_set_test.exs | smartrent/grizzly | 65a397ea7bfedb5518fe63a3f058a0b6af473e39 | [
"Apache-2.0"
] | 76 | 2019-09-04T16:56:58.000Z | 2022-03-29T06:54:36.000Z | test/grizzly/zwave/commands/barrier_operator_set_test.exs | smartrent/grizzly | 65a397ea7bfedb5518fe63a3f058a0b6af473e39 | [
"Apache-2.0"
] | 124 | 2019-09-05T14:01:24.000Z | 2022-02-28T22:58:14.000Z | test/grizzly/zwave/commands/barrier_operator_set_test.exs | smartrent/grizzly | 65a397ea7bfedb5518fe63a3f058a0b6af473e39 | [
"Apache-2.0"
] | 10 | 2019-10-23T19:25:45.000Z | 2021-11-17T13:21:20.000Z | defmodule Grizzly.ZWave.Commands.BarrierOperatorSetTest do
use ExUnit.Case, async: true
alias Grizzly.ZWave.Commands.BarrierOperatorSet
test "creates the command and validates params" do
params = [target_value: :close]
{:ok, _command} = BarrierOperatorSet.new(params)
end
test "encodes params correc... | 30.208333 | 71 | 0.732414 |
9e23e9ed30745a267d867e8a8d536f36d375a406 | 4,300 | ex | Elixir | lib/duck_duck/transform.ex | the-mikedavis/duckduck | b76e3d9e7756e1c5eaa5488f817d28e0a0553e5b | [
"BSD-3-Clause"
] | 3 | 2018-12-06T02:46:16.000Z | 2020-09-25T02:07:19.000Z | lib/duck_duck/transform.ex | the-mikedavis/duckduck | b76e3d9e7756e1c5eaa5488f817d28e0a0553e5b | [
"BSD-3-Clause"
] | 2 | 2018-12-25T14:54:32.000Z | 2019-11-08T02:13:56.000Z | lib/duck_duck/transform.ex | the-mikedavis/duckduck | b76e3d9e7756e1c5eaa5488f817d28e0a0553e5b | [
"BSD-3-Clause"
] | null | null | null | defmodule DuckDuck.Transform do
alias DuckDuck.UploadCommand, as: Command
@moduledoc """
Describes a series of transformations to iteratively build an UploadCommand.
"""
@effects Application.get_env(:duckduck, :effects_client, DuckDuck.Effects)
@switches [tag: :string, path: :string, yes: :boolean]
@al... | 28.104575 | 80 | 0.613953 |
9e24067ace2745c3ea1b0e853c04a0647eb4e708 | 440 | ex | Elixir | test/commands/support/consistency/consistency_prefix_router.ex | jwilger/commanded | 2d9950fd3ce76a23a3c410c99857b812f5705d66 | [
"MIT"
] | 1,220 | 2017-10-31T10:56:40.000Z | 2022-03-31T17:40:19.000Z | test/commands/support/consistency/consistency_prefix_router.ex | jwilger/commanded | 2d9950fd3ce76a23a3c410c99857b812f5705d66 | [
"MIT"
] | 294 | 2017-11-03T10:33:41.000Z | 2022-03-24T08:36:42.000Z | test/commands/support/consistency/consistency_prefix_router.ex | jwilger/commanded | 2d9950fd3ce76a23a3c410c99857b812f5705d66 | [
"MIT"
] | 208 | 2017-11-03T10:56:47.000Z | 2022-03-14T05:49:38.000Z | defmodule Commanded.Commands.ConsistencyPrefixRouter do
use Commanded.Commands.Router
alias Commanded.Commands.ConsistencyAggregateRoot
alias ConsistencyAggregateRoot.{
ConsistencyCommand,
NoOpCommand,
RequestDispatchCommand
}
identify ConsistencyAggregateRoot,
by: :uuid,
prefix: "examp... | 23.157895 | 69 | 0.790909 |
9e2407dc791dfb360a1324214122f6ecf3cefdee | 482 | ex | Elixir | test/support/process_helper.ex | jsmestad/eventstore | 93660ce316ca174ff4694e211a7ac420253e4dac | [
"MIT"
] | 576 | 2017-11-03T14:11:07.000Z | 2022-03-29T06:18:47.000Z | test/support/process_helper.ex | jsmestad/eventstore | 93660ce316ca174ff4694e211a7ac420253e4dac | [
"MIT"
] | 129 | 2017-11-08T06:10:20.000Z | 2021-09-15T16:18:14.000Z | test/support/process_helper.ex | jsmestad/eventstore | 93660ce316ca174ff4694e211a7ac420253e4dac | [
"MIT"
] | 118 | 2017-11-14T14:10:09.000Z | 2022-03-28T13:13:56.000Z | defmodule EventStore.ProcessHelper do
import ExUnit.Assertions
@doc """
Stop the given process name or PID with a non-normal exit reason.
"""
def shutdown(name_or_pid)
def shutdown(name) when is_atom(name) do
name |> Process.whereis() |> shutdown()
end
def shutdown(pid) when is_pid(pid) do
re... | 21.909091 | 67 | 0.692946 |
9e240e1bf11c68a24e2c2c7ed8ebd08c7aa691f7 | 2,854 | ex | Elixir | lib/instagram_clone_web/live/page_live.ex | hminy572/InstagramClonePETAL | 577cdad0e17399e47ef9d3f8e789bd07e33012b9 | [
"MIT"
] | 1 | 2021-08-18T13:01:26.000Z | 2021-08-18T13:01:26.000Z | lib/instagram_clone_web/live/page_live.ex | hminy572/InstagramClonePETAL | 577cdad0e17399e47ef9d3f8e789bd07e33012b9 | [
"MIT"
] | null | null | null | lib/instagram_clone_web/live/page_live.ex | hminy572/InstagramClonePETAL | 577cdad0e17399e47ef9d3f8e789bd07e33012b9 | [
"MIT"
] | null | null | null | defmodule InstagramCloneWeb.PageLive do
use InstagramCloneWeb, :live_view
alias InstagramClone.Uploaders.Avatar
alias InstagramClone.Accounts
alias InstagramCloneWeb.UserLive.FollowComponent
alias InstagramClone.Posts
alias InstagramClone.Posts.Post
alias InstagramCloneWeb.Live.LikeComponent
@impl tr... | 26.924528 | 98 | 0.697968 |
9e242144db05547bf4e8a90375c46441f2a3700a | 73 | ex | Elixir | lib/tapebas_web/views/user_registration_view.ex | cristineguadelupe/tapebas | 5f8c70d5ac36b2a606fe4630cc659161b2f4d7bf | [
"MIT"
] | 3 | 2022-03-24T16:48:38.000Z | 2022-03-24T16:50:04.000Z | lib/tapebas_web/views/user_registration_view.ex | cristineguadelupe/tapebas | 5f8c70d5ac36b2a606fe4630cc659161b2f4d7bf | [
"MIT"
] | null | null | null | lib/tapebas_web/views/user_registration_view.ex | cristineguadelupe/tapebas | 5f8c70d5ac36b2a606fe4630cc659161b2f4d7bf | [
"MIT"
] | 1 | 2022-03-20T01:11:12.000Z | 2022-03-20T01:11:12.000Z | defmodule TapebasWeb.UserRegistrationView do
use TapebasWeb, :view
end
| 18.25 | 44 | 0.835616 |
9e243e8518fa60af613f9b474df32f23d36c12e3 | 2,343 | exs | Elixir | test/credo/check/consistency/space_around_operators/collector_test.exs | hrzndhrn/credo | 71a7b24a5ca8e7a48416e0cdfb42cf8a0fef9593 | [
"MIT"
] | 4,590 | 2015-09-28T06:01:43.000Z | 2022-03-29T08:48:57.000Z | test/credo/check/consistency/space_around_operators/collector_test.exs | hrzndhrn/credo | 71a7b24a5ca8e7a48416e0cdfb42cf8a0fef9593 | [
"MIT"
] | 890 | 2015-11-16T21:07:07.000Z | 2022-03-29T08:52:07.000Z | test/credo/check/consistency/space_around_operators/collector_test.exs | hrzndhrn/credo | 71a7b24a5ca8e7a48416e0cdfb42cf8a0fef9593 | [
"MIT"
] | 479 | 2015-11-17T19:42:40.000Z | 2022-03-29T00:09:21.000Z | defmodule Credo.Check.Consistency.SpaceAroundOperators.CollectorTest do
use Credo.Test.Case
alias Credo.Check.Consistency.SpaceAroundOperators.Collector
test "it should report correct frequencies for operators surrounded by spaces" do
result =
"""
defmodule Credo.Sample1 do
defmodule Inl... | 24.154639 | 87 | 0.522834 |
9e243e9a58e997b7b0551e71fbf15b6f2e1672bc | 2,075 | ex | Elixir | clients/content/lib/google_api/content/v21/model/account_google_my_business_link.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v21/model/account_google_my_business_link.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/content/lib/google_api/content/v21/model/account_google_my_business_link.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... | 39.150943 | 249 | 0.724337 |
9e245cfde8c93cafd20205528b446c43765163f0 | 5,325 | ex | Elixir | lib/fiql_ex.ex | davec82/fiqlex | f0f14c7366821830167f00fe8955b05099b59478 | [
"MIT"
] | 4 | 2020-01-04T09:28:16.000Z | 2020-04-21T15:14:47.000Z | lib/fiql_ex.ex | davec82/fiqlex | f0f14c7366821830167f00fe8955b05099b59478 | [
"MIT"
] | null | null | null | lib/fiql_ex.ex | davec82/fiqlex | f0f14c7366821830167f00fe8955b05099b59478 | [
"MIT"
] | 1 | 2021-04-23T09:25:39.000Z | 2021-04-23T09:25:39.000Z | defmodule FIQLEx do
@moduledoc """
[FIQL](http://tools.ietf.org/html/draft-nottingham-atompub-fiql-00) (Feed Item Query Language)
is a URI-friendly syntax for expressing filters.
FIQL looks like this:
```
fiql = "author.age=ge=25;author.name==*Doe"
```
Using this module you will be able to parse a FI... | 30.084746 | 99 | 0.647887 |
9e2464f78723b5f1a1409a72118be951429e4c74 | 2,502 | exs | Elixir | apps/jsonrpc2/test/jsonrpc2/spec_handler/gas_estimater_test.exs | wolflee/mana | db66dac85addfaad98d40da5bd4082b3a0198bb1 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 152 | 2018-10-27T04:52:03.000Z | 2022-03-26T10:34:00.000Z | apps/jsonrpc2/test/jsonrpc2/spec_handler/gas_estimater_test.exs | wolflee/mana | db66dac85addfaad98d40da5bd4082b3a0198bb1 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 270 | 2018-04-14T07:34:57.000Z | 2018-10-25T18:10:45.000Z | apps/jsonrpc2/test/jsonrpc2/spec_handler/gas_estimater_test.exs | wolflee/mana | db66dac85addfaad98d40da5bd4082b3a0198bb1 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 25 | 2018-10-27T12:15:13.000Z | 2022-01-25T20:31:14.000Z | defmodule JSONRPC2.SpecHandler.GasEstimaterTest do
use ExUnit.Case, async: true
alias Blockchain.Account
alias Blockchain.Block
alias Blockchain.Chain
alias JSONRPC2.SpecHandler.GasEstimater
alias JSONRPC2.TestFactory
setup do
db = MerklePatriciaTree.Test.random_ets_db()
trie = MerklePatriciaTre... | 30.144578 | 93 | 0.663869 |
9e24664472c5ca71b2150a9347dcc98cf69a6acb | 7,570 | ex | Elixir | parkapp_server/lib/parkapp_web/api_integration/api_integration.ex | bitmaker-software/parkapp | 39d9fd3cb8ab6bd1d54b776a5467eccf3b65f310 | [
"MIT"
] | 2 | 2018-11-06T12:21:16.000Z | 2018-11-21T10:20:17.000Z | parkapp_server/lib/parkapp_web/api_integration/api_integration.ex | bitmaker-software/parkapp | 39d9fd3cb8ab6bd1d54b776a5467eccf3b65f310 | [
"MIT"
] | null | null | null | parkapp_server/lib/parkapp_web/api_integration/api_integration.ex | bitmaker-software/parkapp | 39d9fd3cb8ab6bd1d54b776a5467eccf3b65f310 | [
"MIT"
] | null | null | null | defmodule ParkappWeb.ApiIntegration do
@moduledoc """
This module handles coordination beetween thir party APIs and the server's database
"""
require Logger
alias __MODULE__.Embers.Helpers, as: EmbersHelpers
alias __MODULE__.MBWay.Helpers, as: MBWayHelpers
alias __MODULE__.MBWay.WebhookData
alias __... | 33.348018 | 99 | 0.648481 |
9e249a6dc2b604cccde271b7b6d80de25f8af990 | 836 | ex | Elixir | servy/lib/servy.ex | herminiotorres/pragmaticstudio | 273647694519fd4149716abf190eb8d97102f488 | [
"MIT"
] | null | null | null | servy/lib/servy.ex | herminiotorres/pragmaticstudio | 273647694519fd4149716abf190eb8d97102f488 | [
"MIT"
] | null | null | null | servy/lib/servy.ex | herminiotorres/pragmaticstudio | 273647694519fd4149716abf190eb8d97102f488 | [
"MIT"
] | null | null | null | defmodule Servy do
use Application
@doc """
Changing the Port at Runtime
In the video we ran the application with its default environment like so:
mix run --no-halt
But what if you wanted to override the default port value so that the web server runs on
port 5000, for example. Her... | 29.857143 | 97 | 0.687799 |
9e24b36558736a86a286939c05c7211c8b865547 | 340 | exs | Elixir | test/test_helper.exs | joakimk/exqueue | bc2c4fdf311174ea92ff1cf3c0a1860137132ed7 | [
"MIT",
"Unlicense"
] | 366 | 2015-07-04T22:05:44.000Z | 2021-11-15T10:13:46.000Z | test/test_helper.exs | joakimk/exqueue | bc2c4fdf311174ea92ff1cf3c0a1860137132ed7 | [
"MIT",
"Unlicense"
] | 47 | 2015-07-05T13:40:56.000Z | 2019-10-04T03:16:56.000Z | test/test_helper.exs | joakimk/exqueue | bc2c4fdf311174ea92ff1cf3c0a1860137132ed7 | [
"MIT",
"Unlicense"
] | 33 | 2015-07-05T12:50:55.000Z | 2021-01-28T03:42:41.000Z | ExUnit.start()
defmodule CaptureLog do
import ExUnit.CaptureIO
# Borrowed from elixir test helper, is built into elixir in master
def capture_log(level \\ :debug, fun) do
Logger.configure(level: level)
capture_io(:user, fn ->
fun.()
Logger.flush()
end)
after
Logger.configure(level... | 18.888889 | 68 | 0.673529 |
9e24beede21d2e2bc882a74dd5239005957c29ec | 4,030 | exs | Elixir | test/mazes/rectangular_maze_test.exs | angelikatyborska/mazes | cba3b1d6aaaa896f4ca505b477cf03b67523ebf0 | [
"MIT"
] | 116 | 2020-12-26T20:56:01.000Z | 2022-03-12T15:12:37.000Z | test/mazes/rectangular_maze_test.exs | lohayon/mazes | 98a6276ea7440af938edfb14476a5877fdc295e1 | [
"MIT"
] | null | null | null | test/mazes/rectangular_maze_test.exs | lohayon/mazes | 98a6276ea7440af938edfb14476a5877fdc295e1 | [
"MIT"
] | 10 | 2020-12-29T05:11:43.000Z | 2022-01-02T00:57:12.000Z | defmodule Mazes.RectangularMazeTest do
use ExUnit.Case
alias Mazes.RectangularMaze
describe "new" do
test "generates an adjacency matrix with no adjacent vertices" do
result = RectangularMaze.new(width: 2, height: 3)
assert result.width == 2
assert result.height == 3
assert result.ad... | 33.865546 | 103 | 0.437469 |
9e24ebf92a3a23dc959a5b0d8a7c274135594da0 | 1,937 | ex | Elixir | lib/smart_chain/units.ex | esprezzo/elixir-smart-chain | ed031713edd46c610472406f541196a67e07cb59 | [
"MIT"
] | null | null | null | lib/smart_chain/units.ex | esprezzo/elixir-smart-chain | ed031713edd46c610472406f541196a67e07cb59 | [
"MIT"
] | null | null | null | lib/smart_chain/units.ex | esprezzo/elixir-smart-chain | ed031713edd46c610472406f541196a67e07cb59 | [
"MIT"
] | null | null | null | defmodule SmartChain.Units do
@moduledoc """
Module for @Type that represents SmartChain.Unit struct with various ether denominations
"""
alias SmartChain.Units
@typedoc """
Type that represents SmartChain.Unit struct with various ether denominations
"""
@type t :: %Units{
"wei": integer,
"kw... | 26.902778 | 90 | 0.55808 |
9e25272787671cb6bc0e6051b708f70a74f72caf | 1,837 | ex | Elixir | clients/machine_learning/lib/google_api/machine_learning/v1/deserializer.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/machine_learning/lib/google_api/machine_learning/v1/deserializer.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/machine_learning/lib/google_api/machine_learning/v1/deserializer.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.74 | 139 | 0.697877 |
9e25574c88e74091178eebdb507e685e644404f7 | 1,879 | ex | Elixir | apps/game/lib/game.ex | artvinn/phoenix-tictactoe | 14f9a7dcc18449d8cba755c5625b665b7cfccfff | [
"MIT"
] | 1 | 2019-03-11T09:12:16.000Z | 2019-03-11T09:12:16.000Z | apps/game/lib/game.ex | artvinn/phoenix-tictactoe | 14f9a7dcc18449d8cba755c5625b665b7cfccfff | [
"MIT"
] | null | null | null | apps/game/lib/game.ex | artvinn/phoenix-tictactoe | 14f9a7dcc18449d8cba755c5625b665b7cfccfff | [
"MIT"
] | 1 | 2020-09-26T00:37:30.000Z | 2020-09-26T00:37:30.000Z | defmodule Game do
alias Game.{Board, Rules}
defstruct [:board, :turn, :winner, players: [], over: false]
@players [:x, :o]
def new(turn \\ :x) do
%Game{board: Board.new(), turn: turn}
end
def join(%Game{players: players}) when length(players) == 2 do
{:error, "No more players allowed"}
end
... | 27.231884 | 97 | 0.605641 |
9e25aabaf9715f2aca416eccfa5eb2749d73738d | 1,586 | exs | Elixir | test/phoenix/socket/v1_json_serializer_test.exs | faheempatel/phoenix | a83318f2a2284b7ab29b0b86cdd9d2e1f4d0a7c9 | [
"MIT"
] | 18,092 | 2015-01-01T01:51:04.000Z | 2022-03-31T19:37:14.000Z | test/phoenix/socket/v1_json_serializer_test.exs | faheempatel/phoenix | a83318f2a2284b7ab29b0b86cdd9d2e1f4d0a7c9 | [
"MIT"
] | 3,905 | 2015-01-01T00:22:47.000Z | 2022-03-31T17:06:21.000Z | test/phoenix/socket/v1_json_serializer_test.exs | faheempatel/phoenix | a83318f2a2284b7ab29b0b86cdd9d2e1f4d0a7c9 | [
"MIT"
] | 3,205 | 2015-01-03T10:58:22.000Z | 2022-03-30T14:55:57.000Z | defmodule Phoenix.Socket.V1.JSONSerializerTest do
use ExUnit.Case, async: true
alias Phoenix.Socket.{Broadcast, Message, Reply, V1}
# v1 responses must not contain join_ref
@serializer V1.JSONSerializer
@v1_msg_json "{\"event\":\"e\",\"payload\":\"m\",\"ref\":null,\"topic\":\"t\"}"
@v1_reply_json "{\"even... | 36.045455 | 125 | 0.649433 |
9e25bdb457513028def26468ae0936e1ecf703f2 | 648 | ex | Elixir | lib/jabbax/plug.ex | surgeventures/jabbax | 69c90ef620c5a44705015601e5f5a4dd739bd593 | [
"MIT"
] | 14 | 2017-03-20T12:43:20.000Z | 2021-11-24T13:19:16.000Z | lib/jabbax/plug.ex | surgeventures/jabbax | 69c90ef620c5a44705015601e5f5a4dd739bd593 | [
"MIT"
] | 3 | 2017-04-27T15:00:33.000Z | 2022-02-14T11:45:53.000Z | lib/jabbax/plug.ex | surgeventures/jabbax | 69c90ef620c5a44705015601e5f5a4dd739bd593 | [
"MIT"
] | 1 | 2019-09-09T13:57:58.000Z | 2019-09-09T13:57:58.000Z | if Code.ensure_loaded?(Plug) do
defmodule Jabbax.Plug do
@moduledoc false
def init(opts) do
[
assign: Keyword.get(opts || [], :assign, :doc)
]
end
def call(conn = %{body_params: %{}}, opts) do
case Plug.Conn.get_req_header(conn, "content-type") do
["application/vnd.... | 25.92 | 91 | 0.618827 |
9e25c569e0fcaadcfca8ee4e76a76ed53b0a2d4b | 635 | exs | Elixir | test/survey_api_web/views/error_view_test.exs | kamidev/survey_ap | 483314842cf2e8279e1224e83b57d61a5da143ad | [
"MIT"
] | 6 | 2020-02-04T16:18:30.000Z | 2020-10-31T06:00:03.000Z | test/survey_api_web/views/error_view_test.exs | kamidev/survey_ap | 483314842cf2e8279e1224e83b57d61a5da143ad | [
"MIT"
] | 114 | 2019-11-14T03:48:17.000Z | 2022-03-17T12:38:14.000Z | test/survey_api_web/views/error_view_test.exs | kamidev/survey_ap | 483314842cf2e8279e1224e83b57d61a5da143ad | [
"MIT"
] | 1 | 2021-07-08T01:48:56.000Z | 2021-07-08T01:48:56.000Z | defmodule SurveyAPIWeb.ErrorViewTest do
use SurveyAPIWeb.ConnCase, async: true
# Bring render/3 and render_to_string/3 for testing custom views
import Phoenix.View
test "renders 404.json" do
assert render(SurveyAPIWeb.ErrorView, "404.json", []) ==
%{errors: %{detail: "Page not found"}}
end
... | 28.863636 | 66 | 0.653543 |
9e25dcfc06d187febdd090d135dc097810bddcef | 4,389 | exs | Elixir | test/griffin/model/validations_test.exs | craigspaeth/griffin | 44a59e08b119b4725369e90dc1398b9ec51173b7 | [
"MIT"
] | null | null | null | test/griffin/model/validations_test.exs | craigspaeth/griffin | 44a59e08b119b4725369e90dc1398b9ec51173b7 | [
"MIT"
] | 2 | 2017-12-11T06:40:30.000Z | 2018-03-06T06:04:05.000Z | test/griffin/model/validations_test.exs | craigspaeth/griffin | 44a59e08b119b4725369e90dc1398b9ec51173b7 | [
"MIT"
] | null | null | null | defmodule Griffin.Model.ValidationsTest do
@moduledoc """
Tests for Griffin validations functionality
"""
use ExUnit.Case
import Griffin.Model.Validations
test "validates a DSL schema" do
schema = [
name: [:string, :required]
]
harry = %{name: "Harry Potter"}
voldemort = %{name: nil... | 23.345745 | 91 | 0.558442 |
9e25e403741750f755a13d8892067f93a634f2eb | 865 | exs | Elixir | apps/avro/mix.exs | jdenen/hindsight | ef69b4c1a74c94729dd838a9a0849a48c9b6e04c | [
"Apache-2.0"
] | 12 | 2020-01-27T19:43:02.000Z | 2021-07-28T19:46:29.000Z | apps/avro/mix.exs | jdenen/hindsight | ef69b4c1a74c94729dd838a9a0849a48c9b6e04c | [
"Apache-2.0"
] | 81 | 2020-01-28T18:07:23.000Z | 2021-11-22T02:12:13.000Z | apps/avro/mix.exs | jdenen/hindsight | ef69b4c1a74c94729dd838a9a0849a48c9b6e04c | [
"Apache-2.0"
] | 10 | 2020-02-13T21:24:09.000Z | 2020-05-21T18:39:35.000Z | defmodule Avro.MixProject do
use Mix.Project
def project do
[
app: :avro,
version: "0.1.0",
build_path: "../../_build",
config_path: "../../config/config.exs",
deps_path: "../../deps",
lockfile: "../../mix.lock",
elixir: "~> 1.9",
start_permanent: Mix.env() == :p... | 22.763158 | 59 | 0.519075 |
9e2606b596e23e9da0cab45e451bbb17bb8103dd | 6,122 | ex | Elixir | lib/sentry.ex | mbta/sentry-elixir | ce417a69efec0eeb968a3c8fdcd61d3115c69875 | [
"MIT"
] | null | null | null | lib/sentry.ex | mbta/sentry-elixir | ce417a69efec0eeb968a3c8fdcd61d3115c69875 | [
"MIT"
] | null | null | null | lib/sentry.ex | mbta/sentry-elixir | ce417a69efec0eeb968a3c8fdcd61d3115c69875 | [
"MIT"
] | null | null | null | defmodule Sentry do
use Application
import Supervisor.Spec
alias Sentry.{Event, Config}
require Logger
@moduledoc """
Provides the basic functionality to submit a `Sentry.Event` to the Sentry Service.
## Configuration
Add the following to your production config
config :sentry, dsn: "https://pu... | 38.024845 | 256 | 0.717903 |
9e2658f4019c0e83baf6d746dd068a43336dad92 | 1,386 | ex | Elixir | test/support/data_case.ex | MattIII/CastBug | aad9eabce5af4a80dd0f4383683746a1f518e377 | [
"MIT"
] | 1 | 2019-03-14T03:48:29.000Z | 2019-03-14T03:48:29.000Z | test/support/data_case.ex | MattIII/CastBug | aad9eabce5af4a80dd0f4383683746a1f518e377 | [
"MIT"
] | null | null | null | test/support/data_case.ex | MattIII/CastBug | aad9eabce5af4a80dd0f4383683746a1f518e377 | [
"MIT"
] | null | null | null | defmodule CastBug.DataCase do
@moduledoc """
This module defines the setup for tests requiring
access to the application's data layer.
You may define functions here to be used as helpers in
your tests.
Finally, if the test case interacts with the database,
it cannot be async. For this reason, every test... | 25.666667 | 77 | 0.680375 |
9e267958cecce5ed341a00a98e6c04124ad61570 | 85 | ex | Elixir | lib/team_vacation_tool/repo.ex | pchmiele/team-vacation-tool | 862243a94e6b95639629f4ed9653bc81b6522add | [
"Apache-2.0"
] | null | null | null | lib/team_vacation_tool/repo.ex | pchmiele/team-vacation-tool | 862243a94e6b95639629f4ed9653bc81b6522add | [
"Apache-2.0"
] | null | null | null | lib/team_vacation_tool/repo.ex | pchmiele/team-vacation-tool | 862243a94e6b95639629f4ed9653bc81b6522add | [
"Apache-2.0"
] | null | null | null | defmodule TeamVacationTool.Repo do
use Ecto.Repo, otp_app: :team_vacation_tool
end
| 21.25 | 45 | 0.823529 |
9e26a0df75bc8837a9110a4df5a15415b30301a0 | 420 | exs | Elixir | test/day05_test.exs | s22su/advent-of-code-2021 | 1cb0b9f08079641e32890e00b0a9b41c780724b4 | [
"MIT"
] | null | null | null | test/day05_test.exs | s22su/advent-of-code-2021 | 1cb0b9f08079641e32890e00b0a9b41c780724b4 | [
"MIT"
] | null | null | null | test/day05_test.exs | s22su/advent-of-code-2021 | 1cb0b9f08079641e32890e00b0a9b41c780724b4 | [
"MIT"
] | null | null | null | defmodule AdventOfCode.Day05Test do
use ExUnit.Case, async: true
describe "part1/1" do
test "solves the puzzle" do
input = File.read!("test/input_data/d05.txt")
assert AdventOfCode.Day05.part1(input) == 5
end
end
describe "part2/1" do
test "solves the puzzle" do
input = File.rea... | 21 | 51 | 0.661905 |
9e26e3e6b4cd80de39575aa70e49566f67d0c056 | 1,799 | ex | Elixir | clients/service_directory/lib/google_api/service_directory/v1beta1/model/set_iam_policy_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/service_directory/lib/google_api/service_directory/v1beta1/model/set_iam_policy_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/service_directory/lib/google_api/service_directory/v1beta1/model/set_iam_policy_request.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... | 38.276596 | 321 | 0.759311 |
9e26e8a8993c1cc11313e43ab51f654856863285 | 315 | ex | Elixir | web/views/tp_stat_view.ex | zombalo/cgrates_web_jsonapi | 47845be4311839fe180cc9f2c7c6795649da4430 | [
"MIT"
] | null | null | null | web/views/tp_stat_view.ex | zombalo/cgrates_web_jsonapi | 47845be4311839fe180cc9f2c7c6795649da4430 | [
"MIT"
] | null | null | null | web/views/tp_stat_view.ex | zombalo/cgrates_web_jsonapi | 47845be4311839fe180cc9f2c7c6795649da4430 | [
"MIT"
] | null | null | null | defmodule CgratesWebJsonapi.TpStatView do
use CgratesWebJsonapi.Web, :view
use JaSerializer.PhoenixView
attributes ~w[id tpid tenant custom_id filter_ids queue_length weight activation_interval
ttl metrics parameters blocker stored min_items threshold_ids]a
def id(stat), do: stat.pk
end
| 31.5 | 91 | 0.780952 |
9e275a756956a0d86ad9ddcb0200929ab0859c96 | 953 | exs | Elixir | test/file_store/adapters/disk_test.exs | warmwaffles/file_store | 6b6f4cf4ef036b616915ce0dffd5de05e0b021de | [
"MIT"
] | 17 | 2019-10-11T05:50:28.000Z | 2022-01-25T23:28:02.000Z | test/file_store/adapters/disk_test.exs | warmwaffles/file_store | 6b6f4cf4ef036b616915ce0dffd5de05e0b021de | [
"MIT"
] | 8 | 2019-10-25T04:19:42.000Z | 2022-01-27T02:32:47.000Z | test/file_store/adapters/disk_test.exs | warmwaffles/file_store | 6b6f4cf4ef036b616915ce0dffd5de05e0b021de | [
"MIT"
] | 3 | 2019-10-25T02:30:22.000Z | 2022-01-24T21:24:08.000Z | defmodule FileStore.Adapters.DiskTest do
use FileStore.AdapterCase
alias FileStore.Adapters.Disk
@url "http://localhost:4000/foo"
setup %{tmp: tmp} do
{:ok, store: Disk.new(storage_path: tmp, base_url: "http://localhost:4000")}
end
test "get_public_url/3 with query params", %{store: store} do
op... | 34.035714 | 80 | 0.687303 |
9e27910ba7c2c82bf482272d2b437df560cb9c9c | 1,689 | ex | Elixir | phoenix158/my-phoenix-json-api/lib/my_app_web/controllers/user_controller.ex | salbador/oldphp7_vs_laravel7_vs_phoenix1.5.8_vs_phalcon4 | 294b8668dc4940c07d6dde198f02b38100a1dc00 | [
"MIT"
] | null | null | null | phoenix158/my-phoenix-json-api/lib/my_app_web/controllers/user_controller.ex | salbador/oldphp7_vs_laravel7_vs_phoenix1.5.8_vs_phalcon4 | 294b8668dc4940c07d6dde198f02b38100a1dc00 | [
"MIT"
] | null | null | null | phoenix158/my-phoenix-json-api/lib/my_app_web/controllers/user_controller.ex | salbador/oldphp7_vs_laravel7_vs_phoenix1.5.8_vs_phalcon4 | 294b8668dc4940c07d6dde198f02b38100a1dc00 | [
"MIT"
] | null | null | null | defmodule MyAppWeb.UserController do
use MyAppWeb, :controller
alias MyApp.Account
alias MyApp.Account.User
action_fallback MyAppWeb.FallbackController
def index(conn, _params) do
users = Account.list_users()
render(conn, "index.json", users: users)
end
def create(conn, %{"user" => user_params... | 26.809524 | 75 | 0.612789 |
9e27c59b981527c6704f634a2fb22c72cb77438f | 3,148 | exs | Elixir | mix.exs | basbz/appsignal-elixir | 7c9869fd1f31032f3479baded8aff0fd16318dd3 | [
"MIT"
] | 1 | 2021-04-21T05:25:44.000Z | 2021-04-21T05:25:44.000Z | mix.exs | basbz/appsignal-elixir | 7c9869fd1f31032f3479baded8aff0fd16318dd3 | [
"MIT"
] | null | null | null | mix.exs | basbz/appsignal-elixir | 7c9869fd1f31032f3479baded8aff0fd16318dd3 | [
"MIT"
] | null | null | null | defmodule Mix.Tasks.Compile.Appsignal do
use Mix.Task
def run(_args) do
{_, _} = Code.eval_file("mix_helpers.exs")
Mix.Appsignal.Helper.install()
{:ok, []}
end
end
defmodule Appsignal.Mixfile do
use Mix.Project
def project do
[
app: :appsignal,
version: "1.12.0-beta.1",
na... | 27.373913 | 97 | 0.563215 |
9e27ea73880cf82572dcd2dd688a2a57818196ff | 71 | ex | Elixir | food_poisoning/web/views/page_view.ex | javflores/food-poison | 6b7503c5830c31044026655846e8009f933fe0f4 | [
"MIT"
] | null | null | null | food_poisoning/web/views/page_view.ex | javflores/food-poison | 6b7503c5830c31044026655846e8009f933fe0f4 | [
"MIT"
] | null | null | null | food_poisoning/web/views/page_view.ex | javflores/food-poison | 6b7503c5830c31044026655846e8009f933fe0f4 | [
"MIT"
] | null | null | null | defmodule FoodPoisoning.PageView do
use FoodPoisoning.Web, :view
end
| 17.75 | 35 | 0.816901 |
9e280635c80b9ef959850845ac1d3e803ff89669 | 2,154 | exs | Elixir | config/dev.exs | kriips/jalka2021 | f4d968e20cae116fd4056bff2f937cd036421977 | [
"MIT"
] | null | null | null | config/dev.exs | kriips/jalka2021 | f4d968e20cae116fd4056bff2f937cd036421977 | [
"MIT"
] | null | null | null | config/dev.exs | kriips/jalka2021 | f4d968e20cae116fd4056bff2f937cd036421977 | [
"MIT"
] | null | null | null | use Mix.Config
# Configure your database
config :jalka2021, Jalka2021.Repo,
username: "postgres",
password: "postgres",
database: "jalka2021_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... | 27.974026 | 68 | 0.693129 |
9e286e11f24eb733ee0d7d5aef4bb8118cb2262e | 1,409 | ex | Elixir | clients/service_networking/lib/google_api/service_networking/v1/model/partial_delete_connection_metadata.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/service_networking/lib/google_api/service_networking/v1/model/partial_delete_connection_metadata.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/service_networking/lib/google_api/service_networking/v1/model/partial_delete_connection_metadata.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... | 33.547619 | 103 | 0.782115 |
9e289b5903ce8c9436c9acbf0bec6dc16bf0b4a4 | 1,094 | ex | Elixir | test/fixtures/version_helper.ex | NFIBrokerage/spear | 611223d2cdba97daa63f2ddd81a08b4f55e72198 | [
"Apache-2.0"
] | 34 | 2021-04-15T22:16:38.000Z | 2022-03-11T10:20:11.000Z | test/fixtures/version_helper.ex | NFIBrokerage/spear | 611223d2cdba97daa63f2ddd81a08b4f55e72198 | [
"Apache-2.0"
] | 32 | 2021-04-05T18:07:35.000Z | 2021-11-04T19:32:58.000Z | test/fixtures/version_helper.ex | NFIBrokerage/spear | 611223d2cdba97daa63f2ddd81a08b4f55e72198 | [
"Apache-2.0"
] | 1 | 2021-10-11T15:53:42.000Z | 2021-10-11T15:53:42.000Z | defmodule VersionHelper do
@moduledoc """
Provides a function that tags tests depending on their compatibilty with the
EventStoreDB version declared in the env
"""
version =
case System.get_env("EVENTSTORE_VERSION") do
nil -> :error
version -> {:ok, version}
end
version =
with {:ok... | 22.326531 | 104 | 0.619744 |
9e28aefc9d075779bb43d45e8ab28838d4afffdb | 709 | exs | Elixir | mix.exs | bdanklin/cowlib | ed073545b95032a37117a5473d0d04b3fca1ed16 | [
"ISC"
] | null | null | null | mix.exs | bdanklin/cowlib | ed073545b95032a37117a5473d0d04b3fca1ed16 | [
"ISC"
] | null | null | null | mix.exs | bdanklin/cowlib | ed073545b95032a37117a5473d0d04b3fca1ed16 | [
"ISC"
] | null | null | null | defmodule Cowlib.Mixfile do
use Mix.Project
def project do
[
app: :cowlib,
version: "2.11.1",
description: description(),
deps: deps(),
package: package()
]
end
defp description do
"""
HTTP/1.1, HTTP/2 and Websocket client for Erlang/OTP.
"""
end
defp dep... | 18.657895 | 91 | 0.544429 |
9e28ff53484c92977e932d52967f2536924745ef | 2,537 | ex | Elixir | test/support/test_adapter.ex | surgeventures/spandex_phoenix | f77bc73b1718deb3d553fd6d171ac23191c09331 | [
"MIT"
] | null | null | null | test/support/test_adapter.ex | surgeventures/spandex_phoenix | f77bc73b1718deb3d553fd6d171ac23191c09331 | [
"MIT"
] | null | null | null | test/support/test_adapter.ex | surgeventures/spandex_phoenix | f77bc73b1718deb3d553fd6d171ac23191c09331 | [
"MIT"
] | null | null | null | defmodule TestAdapter do
@moduledoc false
@behaviour Spandex.Adapter
require Logger
alias Spandex.{SpanContext, Tracer}
@max_id 9_223_372_036_854_775_807
@impl Spandex.Adapter
def trace_id, do: :rand.uniform(@max_id)
@impl Spandex.Adapter
def span_id, do: trace_id()
@impl Spandex.Adapter
def ... | 28.188889 | 109 | 0.684667 |
9e290f4b10801ed4ee1c4637fff202dd4334358e | 126,097 | ex | Elixir | clients/game_services/lib/google_api/game_services/v1beta/api/projects.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/game_services/lib/google_api/game_services/v1beta/api/projects.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/game_services/lib/google_api/game_services/v1beta/api/projects.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... | 46.946016 | 802 | 0.62283 |
9e2923b04dee0d407ab414a1a070b324737b5535 | 2,677 | ex | Elixir | clients/cloud_functions/lib/google_api/cloud_functions/v1/model/operation_metadata_v1.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/cloud_functions/lib/google_api/cloud_functions/v1/model/operation_metadata_v1.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/cloud_functions/lib/google_api/cloud_functions/v1/model/operation_metadata_v1.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 41.184615 | 189 | 0.698917 |
9e2932abe501a6f1e2d7c3bf91b5d87257547d69 | 1,435 | ex | Elixir | clients/dataflow/lib/google_api/dataflow/v1b3/model/shell_task.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/dataflow/lib/google_api/dataflow/v1b3/model/shell_task.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/dataflow/lib/google_api/dataflow/v1b3/model/shell_task.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... | 29.895833 | 77 | 0.742857 |
9e293c64cff69a237c26d82d936f34d7746b4c3c | 1,562 | ex | Elixir | test/support/data_case.ex | dcdourado/hello_finance | ff7d3b67c0c39c3c60675d018b49f5c7e304610b | [
"MIT"
] | null | null | null | test/support/data_case.ex | dcdourado/hello_finance | ff7d3b67c0c39c3c60675d018b49f5c7e304610b | [
"MIT"
] | null | null | null | test/support/data_case.ex | dcdourado/hello_finance | ff7d3b67c0c39c3c60675d018b49f5c7e304610b | [
"MIT"
] | null | null | null | defmodule HelloFinance.DataCase do
@moduledoc """
This module defines the setup for tests requiring
access to the application's data layer.
You may define functions here to be used as helpers in
your tests.
Finally, if the test case interacts with the database,
we enable the SQL sandbox, so changes done... | 27.892857 | 77 | 0.694622 |
9e29605c33ade73f948b43baf1b71d2063ff6fc0 | 12,258 | ex | Elixir | lib/rexbug.ex | nietaki/rexbug | bc7e2c6a80975ee4d878df4a059f2f75e7e4eae3 | [
"MIT"
] | 198 | 2017-11-13T11:28:12.000Z | 2022-03-30T07:22:08.000Z | lib/rexbug.ex | nietaki/rexbug | bc7e2c6a80975ee4d878df4a059f2f75e7e4eae3 | [
"MIT"
] | 48 | 2017-11-02T14:30:38.000Z | 2021-04-19T00:49:50.000Z | lib/rexbug.ex | nietaki/rexbug | bc7e2c6a80975ee4d878df4a059f2f75e7e4eae3 | [
"MIT"
] | 11 | 2017-12-04T11:06:23.000Z | 2021-03-05T21:13:58.000Z | defmodule Rexbug do
@moduledoc """
A thin Elixir wrapper for the redbug Erlang tracing debugger.
"""
@help_message """
Rexbug - a thin Elixir wrapper for :redbug - the (sensibly) Restrictive
Debugger. It doesn't fork :redbug, only uses it under the hood.
You can use :redbug directly - run :redbug.help(... | 41.552542 | 130 | 0.569587 |
9e296d5be494ea97557d6d58ca164766c4056197 | 219 | exs | Elixir | test/fixtures/system_platform/nerves.exs | opencollective/nerves | 81f5d30de283e77f3720a87fa1435619f0da12de | [
"Apache-2.0"
] | 1 | 2019-06-12T17:34:10.000Z | 2019-06-12T17:34:10.000Z | test/fixtures/system_platform/nerves.exs | opencollective/nerves | 81f5d30de283e77f3720a87fa1435619f0da12de | [
"Apache-2.0"
] | null | null | null | test/fixtures/system_platform/nerves.exs | opencollective/nerves | 81f5d30de283e77f3720a87fa1435619f0da12de | [
"Apache-2.0"
] | null | null | null | use Mix.Config
version =
Path.join(__DIR__, "VERSION")
|> File.read!
|> String.trim
config :system_platform, :nerves_env,
type: :system_platform,
version: version,
checksum: [
"env.exs",
"lib"
]
| 14.6 | 37 | 0.639269 |
9e2984c3671059286e8b67f592cbf2da77a21bae | 9,157 | exs | Elixir | test/process_managers/process_manager_telemetry_test.exs | octowombat/commanded | 79a1965e276d3369dcf70ae65ef904d7e59f4a6a | [
"MIT"
] | 1,220 | 2017-10-31T10:56:40.000Z | 2022-03-31T17:40:19.000Z | test/process_managers/process_manager_telemetry_test.exs | octowombat/commanded | 79a1965e276d3369dcf70ae65ef904d7e59f4a6a | [
"MIT"
] | 294 | 2017-11-03T10:33:41.000Z | 2022-03-24T08:36:42.000Z | test/process_managers/process_manager_telemetry_test.exs | octowombat/commanded | 79a1965e276d3369dcf70ae65ef904d7e59f4a6a | [
"MIT"
] | 208 | 2017-11-03T10:56:47.000Z | 2022-03-14T05:49:38.000Z | defmodule Commanded.ProcessManagers.ProcessManagerTelemetryTest do
use ExUnit.Case
import Mox
alias Commanded.ProcessManagers.ProcessManagerInstance
setup :set_mox_global
setup :verify_on_exit!
defmodule Commands do
defmodule Ok do
defstruct [:message]
end
end
defmodule Event do
@... | 28.886435 | 98 | 0.596374 |
9e298b0be3a3951a6f38540c1e0dc2140637c7a9 | 885 | ex | Elixir | elixir/graphql/lib/graphql/user/user.ex | gilmoreg/learn | 0c4f34387f0d2235ecd88ac62fb86a51f87eb5c2 | [
"MIT"
] | null | null | null | elixir/graphql/lib/graphql/user/user.ex | gilmoreg/learn | 0c4f34387f0d2235ecd88ac62fb86a51f87eb5c2 | [
"MIT"
] | null | null | null | elixir/graphql/lib/graphql/user/user.ex | gilmoreg/learn | 0c4f34387f0d2235ecd88ac62fb86a51f87eb5c2 | [
"MIT"
] | null | null | null | defmodule Graphql.User do
use Ecto.Schema
@primary_key {:user_id, :integer, autogenerate: false, source: :UserId}
schema "Users" do
field :external_id, Tds.UUID, source: :ExternalId
field :email_identifier, :string, source: :EmailIdentifier
field :login_name, :string, source: :LoginName
field :co... | 42.142857 | 73 | 0.733333 |
9e29b7c9dd47e2d5477a2479ea36390faaaeb71f | 3,228 | ex | Elixir | lib/railway_ipc/adapters/rabbit_mq/consumer.ex | djeusette/railway_ipc | 30fb58726e43148fe72fbfe63fdf46161fc933cf | [
"MIT"
] | null | null | null | lib/railway_ipc/adapters/rabbit_mq/consumer.ex | djeusette/railway_ipc | 30fb58726e43148fe72fbfe63fdf46161fc933cf | [
"MIT"
] | null | null | null | lib/railway_ipc/adapters/rabbit_mq/consumer.ex | djeusette/railway_ipc | 30fb58726e43148fe72fbfe63fdf46161fc933cf | [
"MIT"
] | null | null | null | defmodule RailwayIpc.Adapters.RabbitMQ.Consumer do
@moduledoc false
use ExRabbitPool.Consumer
alias RailwayIpc.Adapters.RabbitMQ
alias RailwayIpc.Payload
@behaviour RailwayIpc.Consumer.Impl
@impl true
def validate_config!(config) do
queue_name = config[:queue_name]
unless queue_name do
... | 26.032258 | 98 | 0.636307 |
9e29d6e8ea10db81473dd897ab18e57486c32a41 | 878 | ex | Elixir | clients/pub_sub/lib/google_api/pub_sub/v1/metadata.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/pub_sub/lib/google_api/pub_sub/v1/metadata.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/pub_sub/lib/google_api/pub_sub/v1/metadata.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"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 |
9e2a0dde2c9b4324af1c6a68359b7614af56aa5b | 4,374 | ex | Elixir | clients/recommendation_engine/lib/google_api/recommendation_engine/v1beta1/model/google_cloud_recommendationengine_v1beta1_product_catalog_item.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/recommendation_engine/lib/google_api/recommendation_engine/v1beta1/model/google_cloud_recommendationengine_v1beta1_product_catalog_item.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/recommendation_engine/lib/google_api/recommendation_engine/v1beta1/model/google_cloud_recommendationengine_v1beta1_product_catalog_item.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... | 45.5625 | 332 | 0.73251 |
9e2a2e04acc2480ba281baab587ea4ea63be59be | 166 | exs | Elixir | implementations/elixir/ockam/ockam/config/config.exs | jjscheel/ockam | 04088346c5c11c0f2969422288ffd95404d9b00a | [
"Apache-2.0"
] | null | null | null | implementations/elixir/ockam/ockam/config/config.exs | jjscheel/ockam | 04088346c5c11c0f2969422288ffd95404d9b00a | [
"Apache-2.0"
] | null | null | null | implementations/elixir/ockam/ockam/config/config.exs | jjscheel/ockam | 04088346c5c11c0f2969422288ffd95404d9b00a | [
"Apache-2.0"
] | null | null | null | import Config
config :ockam, Ockam.Wire, default: Ockam.Wire.Binary.V2
config :logger, :console, metadata: [:module, :line, :pid]
import_config "#{Mix.env()}.exs"
| 20.75 | 58 | 0.710843 |
9e2a35c29051354908ffd0a802cb90175fd841c2 | 12,101 | exs | Elixir | test/pow/store/backend/mnesia_cache_test.exs | randaalex/pow | 2a8c8db4652f7cb2c58d3a897e02b1d47e76f27b | [
"MIT"
] | null | null | null | test/pow/store/backend/mnesia_cache_test.exs | randaalex/pow | 2a8c8db4652f7cb2c58d3a897e02b1d47e76f27b | [
"MIT"
] | null | null | null | test/pow/store/backend/mnesia_cache_test.exs | randaalex/pow | 2a8c8db4652f7cb2c58d3a897e02b1d47e76f27b | [
"MIT"
] | null | null | null | defmodule Pow.Store.Backend.MnesiaCacheTest do
use ExUnit.Case
doctest Pow.Store.Backend.MnesiaCache
alias Pow.{Config, Config.ConfigError, Store.Backend.MnesiaCache}
@default_config [namespace: "pow:test", ttl: :timer.hours(1)]
setup_all do
# Turn node into a distributed node with the given long name
... | 41.020339 | 134 | 0.647385 |
9e2a3db868eff9e01723040d57a16df5a7a508cf | 3,942 | ex | Elixir | lib/chat_api/browser_sessions.ex | Tiamat-Tech/papercups | f17d2b0ce080c0edab92a4b2e6d4afcef04aa291 | [
"MIT"
] | 1 | 2021-06-17T03:17:24.000Z | 2021-06-17T03:17:24.000Z | lib/chat_api/browser_sessions.ex | Tiamat-Tech/papercups | f17d2b0ce080c0edab92a4b2e6d4afcef04aa291 | [
"MIT"
] | 1 | 2021-01-17T10:42:34.000Z | 2021-01-17T10:42:34.000Z | lib/chat_api/browser_sessions.ex | Tiamat-Tech/papercups | f17d2b0ce080c0edab92a4b2e6d4afcef04aa291 | [
"MIT"
] | null | null | null | defmodule ChatApi.BrowserSessions do
@moduledoc """
The BrowserSessions context.
"""
import Ecto.Query, warn: false
alias ChatApi.Repo
alias ChatApi.BrowserSessions.BrowserSession
@spec list_browser_sessions(binary(), map()) :: [BrowserSession.t()]
def list_browser_sessions(account_id, filters \\ %{}... | 24.949367 | 88 | 0.647894 |
9e2a554af4056e57778b1bed6af3e7d82c61219a | 1,395 | ex | Elixir | lib/codes/codes_w03.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_w03.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_w03.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | defmodule IcdCode.ICDCode.Codes_W03 do
alias IcdCode.ICDCode
def _W03XXXA do
%ICDCode{full_code: "W03XXXA",
category_code: "W03",
short_code: "XXXA",
full_name: "Other fall on same level due to collision with another person, initial encounter",
short_name: "Other fall on s... | 41.029412 | 110 | 0.676703 |
9e2a780caa256a65ca2488aa3f1b741f3161dc7c | 2,343 | ex | Elixir | lib/chatbot/alias_entity.ex | mikehelmick/meme-bot | 52a84cfb3f5ddcdddadf59b0ba3976f9e3f23800 | [
"Apache-2.0"
] | 7 | 2019-04-05T06:12:56.000Z | 2021-04-03T11:39:40.000Z | lib/chatbot/alias_entity.ex | mikehelmick/meme-bot | 52a84cfb3f5ddcdddadf59b0ba3976f9e3f23800 | [
"Apache-2.0"
] | null | null | null | lib/chatbot/alias_entity.ex | mikehelmick/meme-bot | 52a84cfb3f5ddcdddadf59b0ba3976f9e3f23800 | [
"Apache-2.0"
] | 3 | 2019-04-20T13:05:48.000Z | 2019-06-05T16:52:46.000Z | defmodule Chatbot.AliasEntity do
@behaviour Chatbot.EntityBehviour
alias Chatbot.Properties, as: Properties
defstruct name: nil,
imageUrl: nil,
owner: nil,
createdAt: nil,
updatedAt: nil,
uses: nil
@type t :: %__MODULE__ {
name: String.t(),
i... | 28.573171 | 70 | 0.624413 |
9e2a9c1b8b1c2c1d2301c316034f1e6b3e059d94 | 324 | exs | Elixir | test/co2_offset/geo/great_circle_distance_test.exs | styx/co2_offset | ac4b2bce8142e2d33ea089322c8dade34839448b | [
"Apache-2.0"
] | 15 | 2018-12-26T10:31:16.000Z | 2020-12-01T09:27:01.000Z | test/co2_offset/geo/great_circle_distance_test.exs | styx/co2_offset | ac4b2bce8142e2d33ea089322c8dade34839448b | [
"Apache-2.0"
] | 267 | 2018-12-26T07:46:17.000Z | 2020-04-04T17:05:47.000Z | test/co2_offset/geo/great_circle_distance_test.exs | styx/co2_offset | ac4b2bce8142e2d33ea089322c8dade34839448b | [
"Apache-2.0"
] | 1 | 2019-07-12T13:53:25.000Z | 2019-07-12T13:53:25.000Z | defmodule Co2Offset.Geo.GreatCircleDistanceTest do
use Co2Offset.DataCase, async: true
alias Co2Offset.Geo.GreatCircleDistance
test "correct calculations" do
assert(GreatCircleDistance.call(-6.08, 145.39, -5.20, 145.78) == 107)
assert(GreatCircleDistance.call(38.15, 21.42, 64.19, -83.35) == 6899)
end
... | 29.454545 | 73 | 0.737654 |
9e2abe51922db2e44e626e2851557469f4800b64 | 872 | ex | Elixir | lib/multiverses.finch.ex | ityonemo/multiverses_finch | 200af83f02109ee9d1e51fac929a44c7c249c44c | [
"MIT"
] | null | null | null | lib/multiverses.finch.ex | ityonemo/multiverses_finch | 200af83f02109ee9d1e51fac929a44c7c249c44c | [
"MIT"
] | null | null | null | lib/multiverses.finch.ex | ityonemo/multiverses_finch | 200af83f02109ee9d1e51fac929a44c7c249c44c | [
"MIT"
] | null | null | null | defmodule Multiverses.Finch do
@moduledoc """
clones and instruments the Finch library with a substituted build
method that allows universe assignments to escape the BEAM vm via http
requests.
This is useful to test APIs and HTTP requests in integration or end-to-end
testing scenarios.
The http request... | 30.068966 | 79 | 0.713303 |
9e2b03fa3feb94a54db0eddef37338957d5d0c1c | 929 | exs | Elixir | ch14-03.exs | gabrielelana/programming-elixir | 475319123d21b03c3bfcc02a23178ab9db67a6b3 | [
"MIT"
] | 9 | 2016-01-22T17:28:27.000Z | 2020-06-07T01:38:44.000Z | ch14-03.exs | gabrielelana/programming-elixir | 475319123d21b03c3bfcc02a23178ab9db67a6b3 | [
"MIT"
] | null | null | null | ch14-03.exs | gabrielelana/programming-elixir | 475319123d21b03c3bfcc02a23178ab9db67a6b3 | [
"MIT"
] | 1 | 2019-04-18T10:08:38.000Z | 2019-04-18T10:08:38.000Z | # Use spawn_link to start a process, and have that process send a message to the
# parent and then exit immediately. Meanwhile, sleep for 500 ms in the parent,
# then receive as many messages as are waiting. Trace what you receive. Does it
# matter that you weren’t waiting for the notification from the child when it
# ... | 23.225 | 80 | 0.644779 |
9e2b07c3d4af9ee5751ce109943cf67f0b358c8c | 1,999 | exs | Elixir | config/prod.exs | elixir-sea/typo_paint | 61183f0a450e62ce1f561635ed39965fc9fe770d | [
"CC-BY-4.0"
] | 4 | 2019-07-31T03:34:19.000Z | 2019-08-03T04:53:48.000Z | config/prod.exs | elixir-sea/typo_kart | 61183f0a450e62ce1f561635ed39965fc9fe770d | [
"CC-BY-4.0"
] | 3 | 2019-07-31T04:18:58.000Z | 2019-08-05T00:00:07.000Z | config/prod.exs | elixir-sea/typo_paint | 61183f0a450e62ce1f561635ed39965fc9fe770d | [
"CC-BY-4.0"
] | 3 | 2019-07-31T05:55:25.000Z | 2019-09-15T22:31:32.000Z | use Mix.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,
# ... | 35.696429 | 66 | 0.712856 |
9e2b30a46e5eb0e9f8e6b58edbbdbb293d9ade07 | 789 | ex | Elixir | lib/elixir_mq/dynamo.ex | derekchiang/Elixir-Message-Queue | b979ad0cbdd38816587c7af337e7e048b59fd517 | [
"WTFPL"
] | 1 | 2019-10-29T17:56:34.000Z | 2019-10-29T17:56:34.000Z | lib/elixir_mq/dynamo.ex | derekchiang/Elixir-Message-Queue | b979ad0cbdd38816587c7af337e7e048b59fd517 | [
"WTFPL"
] | null | null | null | lib/elixir_mq/dynamo.ex | derekchiang/Elixir-Message-Queue | b979ad0cbdd38816587c7af337e7e048b59fd517 | [
"WTFPL"
] | null | null | null | defmodule ElixirMq.Dynamo do
use Dynamo
config :dynamo,
# The environment this Dynamo runs on
env: Mix.env,
# The OTP application associated to this Dynamo
otp_app: :elixir_mq,
# The endpoint to dispatch requests to
endpoint: ApplicationRouter,
# The route from where static assets ar... | 26.3 | 85 | 0.717364 |
9e2b4fe8a224783e50ac4319fd0bc87fa3efac87 | 6,922 | ex | Elixir | lib/ex_unit/lib/ex_unit.ex | hamiltop/elixir | 3b601660d4d4eb0c69f824fcebbbe93a3f2ba463 | [
"Apache-2.0"
] | null | null | null | lib/ex_unit/lib/ex_unit.ex | hamiltop/elixir | 3b601660d4d4eb0c69f824fcebbbe93a3f2ba463 | [
"Apache-2.0"
] | null | null | null | lib/ex_unit/lib/ex_unit.ex | hamiltop/elixir | 3b601660d4d4eb0c69f824fcebbbe93a3f2ba463 | [
"Apache-2.0"
] | null | null | null | defmodule ExUnit do
@moduledoc """
Unit testing framework for Elixir.
## Example
A basic setup for ExUnit is shown below:
# File: assertion_test.exs
# 1) Start ExUnit.
ExUnit.start
# 2) Create a new test module (test case) and use "ExUnit.Case".
defmodule AssertionTest do
... | 29.330508 | 91 | 0.6449 |
9e2b69c44b2615faca58d16e3335b735e2898087 | 1,625 | ex | Elixir | lib/globe_request_mapper_web/endpoint.ex | mrkurt/globe-request-mapper | 1270c7f69a0c1403b026508385fab54d2eaa685e | [
"Apache-2.0"
] | 1 | 2022-02-24T04:00:56.000Z | 2022-02-24T04:00:56.000Z | lib/globe_request_mapper_web/endpoint.ex | mrkurt/globe-request-mapper | 1270c7f69a0c1403b026508385fab54d2eaa685e | [
"Apache-2.0"
] | null | null | null | lib/globe_request_mapper_web/endpoint.ex | mrkurt/globe-request-mapper | 1270c7f69a0c1403b026508385fab54d2eaa685e | [
"Apache-2.0"
] | 4 | 2021-04-05T22:39:42.000Z | 2021-04-05T23:16:50.000Z | defmodule GlobeRequestMapperWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :globe_request_mapper
# The session will be stored in the cookie and signed,
# this means its contents can be read but not tampered with.
# Set :encryption_salt if you would also like to encrypt it.
@session_options [
store: :cook... | 30.092593 | 97 | 0.729231 |
9e2ba2cd88ae47d2bd6eb2a185c5ba0aa1ffd5df | 896 | ex | Elixir | clients/sas_portal/lib/google_api/sas_portal/v1alpha1/metadata.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/sas_portal/lib/google_api/sas_portal/v1alpha1/metadata.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/sas_portal/lib/google_api/sas_portal/v1alpha1/metadata.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 33.185185 | 74 | 0.762277 |
9e2bfeb32c8860e26ee0e062e868c84238987485 | 380 | ex | Elixir | plugins/one_webrtc/lib/one_webrtc_web/views/error_view.ex | smpallen99/ucx_ucc | 47225f205a6ac4aacdb9bb4f7512dcf4092576ad | [
"MIT"
] | 11 | 2017-05-15T18:35:05.000Z | 2018-02-05T18:27:40.000Z | plugins/one_webrtc/lib/one_webrtc_web/views/error_view.ex | anndream/infinity_one | 47225f205a6ac4aacdb9bb4f7512dcf4092576ad | [
"MIT"
] | 15 | 2017-11-27T10:38:05.000Z | 2018-02-09T20:42:08.000Z | plugins/one_webrtc/lib/one_webrtc_web/views/error_view.ex | anndream/infinity_one | 47225f205a6ac4aacdb9bb4f7512dcf4092576ad | [
"MIT"
] | 4 | 2017-09-13T11:34:16.000Z | 2018-02-26T13:37:06.000Z | defmodule OneWebrtcWeb.ErrorView do
use OneWebrtcWeb, :view
def render("404.html", _assigns) do
"Page not found"
end
def render("500.html", _assigns) do
"Internal server error"
end
# In case no render clause matches or no
# template is found, let's render it as 500
def template_not_found(_tem... | 21.111111 | 47 | 0.705263 |
9e2c3490854b7adc7ebc04305fbfa46e804e0ebd | 319 | exs | Elixir | config/prod.exs | aoswalt/portfolio-web-site | 9869da8caf9d1d31a1d82e60f437ec0513a84748 | [
"MIT"
] | 1 | 2020-07-23T12:54:25.000Z | 2020-07-23T12:54:25.000Z | config/prod.exs | aoswalt/adamoswalt.com | 9869da8caf9d1d31a1d82e60f437ec0513a84748 | [
"MIT"
] | null | null | null | config/prod.exs | aoswalt/adamoswalt.com | 9869da8caf9d1d31a1d82e60f437ec0513a84748 | [
"MIT"
] | null | null | null | use Mix.Config
config :home, HomeWeb.Endpoint,
url: [host: "adamoswalt.com", port: 80],
cache_static_manifest: "priv/static/cache_manifest.json",
http: [
port: String.to_integer(System.get_env("PORT") || "80"),
transport_options: [socket_opts: [:inet6]]
],
server: true
config :logger, level: :info
| 24.538462 | 60 | 0.68652 |
9e2c63be6665d2edd246fbeca795fa44946269e9 | 4,101 | ex | Elixir | lib/aws/generated/braket.ex | smanolloff/aws-elixir | c7cb6577802f5010be7e7b6ccb2c0f3c8c73ea84 | [
"Apache-2.0"
] | null | null | null | lib/aws/generated/braket.ex | smanolloff/aws-elixir | c7cb6577802f5010be7e7b6ccb2c0f3c8c73ea84 | [
"Apache-2.0"
] | null | null | null | lib/aws/generated/braket.ex | smanolloff/aws-elixir | c7cb6577802f5010be7e7b6ccb2c0f3c8c73ea84 | [
"Apache-2.0"
] | null | null | null | # WARNING: DO NOT EDIT, AUTO-GENERATED CODE!
# See https://github.com/aws-beam/aws-codegen for more details.
defmodule AWS.Braket do
@moduledoc """
The Amazon Braket API Reference provides information about the operations and
structures supported in Amazon Braket.
"""
@doc """
Cancels the specified task.
... | 30.604478 | 100 | 0.648622 |
9e2c7c203276423d3afc3c8c11c96ac32c86e18d | 1,156 | ex | Elixir | lib/plausible/session/clickhouse_schema.ex | lizlam/plausible | 886ba62cd814e5ca2d05c51a375bccc753c7c6ff | [
"MIT"
] | null | null | null | lib/plausible/session/clickhouse_schema.ex | lizlam/plausible | 886ba62cd814e5ca2d05c51a375bccc753c7c6ff | [
"MIT"
] | null | null | null | lib/plausible/session/clickhouse_schema.ex | lizlam/plausible | 886ba62cd814e5ca2d05c51a375bccc753c7c6ff | [
"MIT"
] | null | null | null | defmodule Plausible.ClickhouseSession do
use Ecto.Schema
import Ecto.Changeset
@primary_key false
schema "sessions" do
field :hostname, :string
field :domain, :string
field :user_id, :integer
field :session_id, :integer
field :start, :naive_datetime
field :duration, :integer
field ... | 28.9 | 195 | 0.698962 |
9e2c9e210c51d98d18ae81d426d7eee15cd6a702 | 3,227 | ex | Elixir | lib/ecto/adapters/postgres/worker.ex | TanYewWei/ecto | 916c6467d5f7368fa10ecd7cfcfd2d4a9924a282 | [
"Apache-2.0"
] | 1 | 2015-08-27T13:17:10.000Z | 2015-08-27T13:17:10.000Z | lib/ecto/adapters/postgres/worker.ex | TanYewWei/ecto | 916c6467d5f7368fa10ecd7cfcfd2d4a9924a282 | [
"Apache-2.0"
] | null | null | null | lib/ecto/adapters/postgres/worker.ex | TanYewWei/ecto | 916c6467d5f7368fa10ecd7cfcfd2d4a9924a282 | [
"Apache-2.0"
] | null | null | null | defmodule Ecto.Adapters.Postgres.Worker do
@moduledoc false
use GenServer.Behaviour
defrecordp :state, [ :conn, :params, :monitor ]
@timeout 5000
def start(args) do
:gen_server.start(__MODULE__, args, [])
end
def start_link(args) do
:gen_server.start_link(__MODULE__, args, [])
end
def qu... | 26.45082 | 92 | 0.618221 |
9e2cb81993e4754f5be92b5e0d9b7805c81a35da | 101 | ex | Elixir | lib/phoenix_absinthe_dataloader_kv_web/views/page_view.ex | alexandrubagu/phoenie_absinthe_dataloader_kv | b75ceabe6e384a56b40144e35624bcbd823af273 | [
"MIT"
] | null | null | null | lib/phoenix_absinthe_dataloader_kv_web/views/page_view.ex | alexandrubagu/phoenie_absinthe_dataloader_kv | b75ceabe6e384a56b40144e35624bcbd823af273 | [
"MIT"
] | 3 | 2020-05-08T21:01:07.000Z | 2020-05-08T21:01:07.000Z | lib/phoenix_absinthe_dataloader_kv_web/views/page_view.ex | alexandrubagu/phoenie_absinthe_dataloader_kv | b75ceabe6e384a56b40144e35624bcbd823af273 | [
"MIT"
] | 2 | 2019-02-14T13:43:45.000Z | 2020-02-28T22:04:33.000Z | defmodule PhoenixAbsintheDataloaderKvWeb.PageView do
use PhoenixAbsintheDataloaderKvWeb, :view
end
| 25.25 | 52 | 0.881188 |
9e2cbb4640487745027eadebe6d9c51c270ec0fd | 1,043 | ex | Elixir | lib/rasmus_app.ex | enter-haken/rasmus | aa4d474ef6c0c018409de82dad62435b74b7aac1 | [
"Apache-2.0"
] | 8 | 2018-03-01T11:58:50.000Z | 2018-11-30T02:50:57.000Z | lib/rasmus_app.ex | enter-haken/rasmus | aa4d474ef6c0c018409de82dad62435b74b7aac1 | [
"Apache-2.0"
] | null | null | null | lib/rasmus_app.ex | enter-haken/rasmus | aa4d474ef6c0c018409de82dad62435b74b7aac1 | [
"Apache-2.0"
] | null | null | null | defmodule RasmusApp do
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
use Application
require Logger
def start(_type, _args) do
Logger.info("start rasmus application")
credentials = Application.get_env(:rasmus, :pg_config)
... | 27.447368 | 116 | 0.651007 |
9e2cd907bf9ab29e2c28f1cf2ddfa3ac54c51689 | 4,512 | ex | Elixir | lib/kastlex/cg_cache.ex | zmstone/kastlex | 3478bc230f08bde99e768067787b0ef3f8e1c026 | [
"Apache-2.0"
] | 38 | 2016-10-21T08:26:15.000Z | 2021-03-19T23:10:40.000Z | lib/kastlex/cg_cache.ex | zmstone/kastlex | 3478bc230f08bde99e768067787b0ef3f8e1c026 | [
"Apache-2.0"
] | 32 | 2017-02-19T08:57:35.000Z | 2020-02-05T13:15:11.000Z | lib/kastlex/cg_cache.ex | zmstone/kastlex | 3478bc230f08bde99e768067787b0ef3f8e1c026 | [
"Apache-2.0"
] | 6 | 2017-11-24T16:02:20.000Z | 2022-02-22T07:44:36.000Z | defmodule Kastlex.CgCache do
@compile if Mix.env == :test, do: :export_all
require Logger
## ets tables
@offsets :cg_cache_offsets # ets table for offsets
@cgs :cg_cache_cgs # ets table for cg status
@progress :cg_cache_progress # ets table for cg data collection progress
## return all (active/inactive ... | 29.684211 | 95 | 0.583333 |
9e2cf3681f9fcf4ecfd11ed81e77ede95e7b85cb | 2,984 | ex | Elixir | clients/run/lib/google_api/run/v1/model/task_spec.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/run/lib/google_api/run/v1/model/task_spec.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/run/lib/google_api/run/v1/model/task_spec.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... | 50.576271 | 358 | 0.724196 |
9e2d0227c30c20d994c5bcdc7804e311d2d2defc | 253 | ex | Elixir | lib/geo_tasks.ex | Jesterovskiy/geo-tasks | 65fbfdc3d1604084aa288fefba9c548e087a387e | [
"MIT"
] | null | null | null | lib/geo_tasks.ex | Jesterovskiy/geo-tasks | 65fbfdc3d1604084aa288fefba9c548e087a387e | [
"MIT"
] | null | null | null | lib/geo_tasks.ex | Jesterovskiy/geo-tasks | 65fbfdc3d1604084aa288fefba9c548e087a387e | [
"MIT"
] | null | null | null | defmodule GeoTasks do
@moduledoc """
GeoTasks keeps the contexts that define your domain
and business logic.
Contexts are also responsible for managing your data, regardless
if it comes from the database, an external API or others.
"""
end
| 25.3 | 66 | 0.754941 |
9e2d437d6fd72b59964b9e177c9d7b8b83c6f37e | 1,815 | ex | Elixir | apps/blog_api_web/lib/blog_api_web.ex | yashin5/blog_api | 5dd6d0c9e43ca9c1dc555afd73713b62b4efa34e | [
"MIT"
] | null | null | null | apps/blog_api_web/lib/blog_api_web.ex | yashin5/blog_api | 5dd6d0c9e43ca9c1dc555afd73713b62b4efa34e | [
"MIT"
] | 5 | 2021-01-13T04:16:16.000Z | 2021-01-13T21:43:00.000Z | apps/blog_api_web/lib/blog_api_web.ex | yashin5/blog_api | 5dd6d0c9e43ca9c1dc555afd73713b62b4efa34e | [
"MIT"
] | null | null | null | defmodule BlogApiWeb do
@moduledoc """
The entrypoint for defining your web interface, such
as controllers, views, channels and so on.
This can be used in your application as:
use BlogApiWeb, :controller
use BlogApiWeb, :view
The definitions below will be executed for every view,
controller, ... | 22.974684 | 76 | 0.688154 |
9e2d6a0930fabd08be82da4fd2dbba0a17252fa7 | 359 | exs | Elixir | golf_phoenix/priv/repo/seeds.exs | RobertDober/golftour | 1a1187ef46be99532b41a08801c10541a9a84ab1 | [
"Apache-2.0"
] | null | null | null | golf_phoenix/priv/repo/seeds.exs | RobertDober/golftour | 1a1187ef46be99532b41a08801c10541a9a84ab1 | [
"Apache-2.0"
] | null | null | null | golf_phoenix/priv/repo/seeds.exs | RobertDober/golftour | 1a1187ef46be99532b41a08801c10541a9a84ab1 | [
"Apache-2.0"
] | null | null | null | # Script for populating the database. You can run it as:
#
# mix run priv/repo/seeds.exs
#
# Inside the script, you can read and write to any of your
# repositories directly:
#
# GolfPhoenix.Repo.insert!(%GolfPhoenix.SomeSchema{})
#
# We recommend using the bang functions (`insert!`, `update!`
# and so on) as t... | 29.916667 | 61 | 0.713092 |
9e2d82b7bc60686fd45c4b635c7ecdda9b495a33 | 167 | exs | Elixir | priv/repo/migrations/20191126095153_change_prompt_html_to_text.exs | topherhunt/reassembling-the-line | c6823b3394ee98d9b0149fa3d09448928ac5c0db | [
"MIT"
] | 1 | 2019-04-27T15:39:20.000Z | 2019-04-27T15:39:20.000Z | priv/repo/migrations/20191126095153_change_prompt_html_to_text.exs | topherhunt/reassembling-the-line | c6823b3394ee98d9b0149fa3d09448928ac5c0db | [
"MIT"
] | 11 | 2020-07-16T11:40:53.000Z | 2021-08-16T07:03:33.000Z | priv/repo/migrations/20191126095153_change_prompt_html_to_text.exs | topherhunt/reassembling-the-line | c6823b3394ee98d9b0149fa3d09448928ac5c0db | [
"MIT"
] | null | null | null | defmodule RTL.Repo.Migrations.ChangePromptHtmlToText do
use Ecto.Migration
def change do
alter table(:prompts) do
modify :html, :text
end
end
end
| 16.7 | 55 | 0.712575 |
9e2dc8b57b49b78e28572b2b76a287631120ec86 | 1,450 | ex | Elixir | lib/trademark_free_strategic_land_warfare_web/telemetry.ex | WizardOfOgz/trademark_free_strategic_land_warfare | a14287eab1f60c13d43f70ac2309391c291a6704 | [
"MIT"
] | 1 | 2020-06-30T16:37:50.000Z | 2020-06-30T16:37:50.000Z | lib/trademark_free_strategic_land_warfare_web/telemetry.ex | WizardOfOgz/trademark_free_strategic_land_warfare | a14287eab1f60c13d43f70ac2309391c291a6704 | [
"MIT"
] | null | null | null | lib/trademark_free_strategic_land_warfare_web/telemetry.ex | WizardOfOgz/trademark_free_strategic_land_warfare | a14287eab1f60c13d43f70ac2309391c291a6704 | [
"MIT"
] | 13 | 2020-06-04T23:10:19.000Z | 2020-06-05T01:25:26.000Z | defmodule TrademarkFreeStrategicLandWarfareWeb.Telemetry do
use Supervisor
import Telemetry.Metrics
def start_link(arg) do
Supervisor.start_link(__MODULE__, arg, name: __MODULE__)
end
@impl true
def init(_arg) do
children = [
# Telemetry poller will execute the given period measurements
... | 29.591837 | 86 | 0.682069 |
9e2dff86a5f34fb3801d7cc9b89549101e35cb30 | 35,512 | ex | Elixir | apps/language_server/lib/language_server/server.ex | zhenfeng-zhu/elixir-ls | b019a172646826ff5cc1536369535c115ab6085d | [
"Apache-2.0"
] | null | null | null | apps/language_server/lib/language_server/server.ex | zhenfeng-zhu/elixir-ls | b019a172646826ff5cc1536369535c115ab6085d | [
"Apache-2.0"
] | null | null | null | apps/language_server/lib/language_server/server.ex | zhenfeng-zhu/elixir-ls | b019a172646826ff5cc1536369535c115ab6085d | [
"Apache-2.0"
] | null | null | null | defmodule ElixirLS.LanguageServer.Server do
@moduledoc """
Language Server Protocol server
This server tracks open files, attempts to rebuild the project when a file changes, and handles
requests from the IDE (for things like autocompletion, hover, etc.)
Notifications from the IDE are handled synchronously,... | 28.824675 | 133 | 0.637249 |
9e2e28d227eae7000b486e1ae37c63b42676ecbd | 5,749 | ex | Elixir | apps/andi/lib/andi_web/controllers/edit_controller.ex | smartcitiesdata/smartcitiesdata | c926c25003a8ee2d09b933c521c49f674841c0b6 | [
"Apache-2.0"
] | 26 | 2019-09-20T23:54:45.000Z | 2020-08-20T14:23:32.000Z | apps/andi/lib/andi_web/controllers/edit_controller.ex | smartcitiesdata/smartcitiesdata | c926c25003a8ee2d09b933c521c49f674841c0b6 | [
"Apache-2.0"
] | 757 | 2019-08-15T18:15:07.000Z | 2020-09-18T20:55:31.000Z | apps/andi/lib/andi_web/controllers/edit_controller.ex | smartcitiesdata/smartcitiesdata | c926c25003a8ee2d09b933c521c49f674841c0b6 | [
"Apache-2.0"
] | 9 | 2019-11-12T16:43:46.000Z | 2020-03-25T16:23:16.000Z | defmodule AndiWeb.EditController do
use AndiWeb, :controller
use Properties, otp_app: :andi
alias Andi.InputSchemas.Datasets
alias Andi.InputSchemas.Organizations
alias Andi.InputSchemas.Ingestions
alias Andi.InputSchemas.AccessGroups
alias Andi.Schemas.DatasetDownload
alias Andi.Schemas.User
getter(... | 31.075676 | 119 | 0.665333 |
9e2e2a5d3cda98fffe9398426fee5f1d06bedc44 | 288 | exs | Elixir | test/integration/derive_test.exs | dvjoness/construct | e07ec8e776b0ef1a8fea94691d912cef03d76573 | [
"MIT"
] | 32 | 2017-12-26T18:08:41.000Z | 2022-03-24T21:18:11.000Z | test/integration/derive_test.exs | ExpressApp/struct | 301df7388b9283f39ee43bb209c06f3aa055c8e7 | [
"MIT"
] | 4 | 2018-01-17T11:56:08.000Z | 2022-03-24T21:16:27.000Z | test/integration/derive_test.exs | dvjoness/construct | e07ec8e776b0ef1a8fea94691d912cef03d76573 | [
"MIT"
] | 7 | 2017-12-29T13:06:31.000Z | 2022-03-24T05:56:56.000Z | defmodule Construct.Integration.DeriveTest do
use ExUnit.Case
test "derive inheritance and override" do
assert {:ok, structure} = Derive.make(a: "string")
assert ~s({"a":"string","b":{"ba":{"baa":"test"}},"d":{"da":{"daa":0}}})
== Jason.encode!(structure)
end
end
| 26.181818 | 76 | 0.621528 |
9e2e325dec5684d6f9795b12cda0cacf2ea966d8 | 1,721 | ex | Elixir | lib/trademark_free_strategic_land_warfare_web/endpoint.ex | WizardOfOgz/trademark_free_strategic_land_warfare | a14287eab1f60c13d43f70ac2309391c291a6704 | [
"MIT"
] | 1 | 2020-06-30T16:37:50.000Z | 2020-06-30T16:37:50.000Z | lib/trademark_free_strategic_land_warfare_web/endpoint.ex | WizardOfOgz/trademark_free_strategic_land_warfare | a14287eab1f60c13d43f70ac2309391c291a6704 | [
"MIT"
] | null | null | null | lib/trademark_free_strategic_land_warfare_web/endpoint.ex | WizardOfOgz/trademark_free_strategic_land_warfare | a14287eab1f60c13d43f70ac2309391c291a6704 | [
"MIT"
] | 13 | 2020-06-04T23:10:19.000Z | 2020-06-05T01:25:26.000Z | defmodule TrademarkFreeStrategicLandWarfareWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :trademark_free_strategic_land_warfare
# The session will be stored in the cookie and signed,
# this means its contents can be read but not tampered with.
# Set :encryption_salt if you would also like to encrypt it.
@se... | 31.87037 | 97 | 0.744335 |
9e2e50546030e150f147143472c46263d711bf73 | 552 | exs | Elixir | priv/repo/seeds.exs | sergey-nechaev/asciinema-server | 64f87acec9c9b45fefa8bed8f70b41f0068ccb2b | [
"Apache-2.0"
] | null | null | null | priv/repo/seeds.exs | sergey-nechaev/asciinema-server | 64f87acec9c9b45fefa8bed8f70b41f0068ccb2b | [
"Apache-2.0"
] | null | null | null | priv/repo/seeds.exs | sergey-nechaev/asciinema-server | 64f87acec9c9b45fefa8bed8f70b41f0068ccb2b | [
"Apache-2.0"
] | null | null | null | # Script for populating the database. You can run it as:
#
# mix run priv/repo/seeds.exs
#
# Inside the script, you can read and write to any of your
# repositories directly:
#
# Asciinema.Repo.insert!(%Asciinema.SomeModel{})
#
# We recommend using the bang functions (`insert!`, `update!`
# and so on) as they w... | 32.470588 | 93 | 0.762681 |
9e2f0d02229c24fb40008823c169fa2459dea369 | 770 | ex | Elixir | lib/espec/assertions/enum/have_max_by.ex | MeneDev/espec | ec4b3d579c5192999e930224a8a2650bb1fdf0bc | [
"Apache-2.0"
] | 807 | 2015-03-25T14:00:19.000Z | 2022-03-24T08:08:15.000Z | lib/espec/assertions/enum/have_max_by.ex | MeneDev/espec | ec4b3d579c5192999e930224a8a2650bb1fdf0bc | [
"Apache-2.0"
] | 254 | 2015-03-27T10:12:25.000Z | 2021-07-12T01:40:15.000Z | lib/espec/assertions/enum/have_max_by.ex | MeneDev/espec | ec4b3d579c5192999e930224a8a2650bb1fdf0bc | [
"Apache-2.0"
] | 85 | 2015-04-02T10:25:19.000Z | 2021-01-30T21:30:43.000Z | defmodule ESpec.Assertions.Enum.HaveMaxBy do
@moduledoc """
Defines 'have_max_by' assertion.
it do: expect(collection).to have_max_by(func, value)
"""
use ESpec.Assertions.Interface
defp match(enum, [func, val]) do
result = Enum.max_by(enum, func)
{result == val, result}
end
defp success_mess... | 28.518519 | 116 | 0.635065 |
9e2f51199dee1677a3d41d6aa31c06bd8a126ae3 | 1,785 | ex | Elixir | clients/spanner/lib/google_api/spanner/v1/model/list_instances_response.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/spanner/lib/google_api/spanner/v1/model/list_instances_response.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/spanner/lib/google_api/spanner/v1/model/list_instances_response.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... | 34.326923 | 126 | 0.731653 |
9e2f51382358ee7e18231c9b839fb589dade4934 | 746 | ex | Elixir | lib/central/logging/schemas/page_view_log.ex | icexuick/teiserver | 22f2e255e7e21f977e6b262acf439803626a506c | [
"MIT"
] | 6 | 2021-02-08T10:42:53.000Z | 2021-04-25T12:12:03.000Z | lib/central/logging/schemas/page_view_log.ex | icexuick/teiserver | 22f2e255e7e21f977e6b262acf439803626a506c | [
"MIT"
] | null | null | null | lib/central/logging/schemas/page_view_log.ex | icexuick/teiserver | 22f2e255e7e21f977e6b262acf439803626a506c | [
"MIT"
] | 2 | 2021-02-23T22:34:00.000Z | 2021-04-08T13:31:36.000Z | defmodule Central.Logging.PageViewLog do
use CentralWeb, :schema
schema "page_view_logs" do
field :path, :string
field :section, :string
field :method, :string
field :ip, :string
field :load_time, :integer
field :status, :integer
belongs_to :user, Central.Account.User
timestamps()... | 26.642857 | 83 | 0.66756 |
9e2f8686d0267b59e1bb92c2caefe08433635fb7 | 1,830 | exs | Elixir | mix.exs | manukall/phoenix_token_auth | 389deeda9e2dc8c93e9e5c066e9df72cff19cdff | [
"MIT"
] | 190 | 2015-03-11T14:05:44.000Z | 2021-11-13T03:42:59.000Z | mix.exs | manukall/phoenix_token_auth | 389deeda9e2dc8c93e9e5c066e9df72cff19cdff | [
"MIT"
] | 48 | 2015-03-14T17:41:25.000Z | 2016-08-16T11:37:37.000Z | mix.exs | manukall/phoenix_token_auth | 389deeda9e2dc8c93e9e5c066e9df72cff19cdff | [
"MIT"
] | 62 | 2015-03-20T04:31:34.000Z | 2020-08-24T05:05:12.000Z | defmodule PhoenixTokenAuth.Mixfile do
use Mix.Project
@repo_url "https://github.com/manukall/phoenix_token_auth"
def project do
[app: :phoenix_token_auth,
version: "0.4.0",
elixir: "~> 1.1",
package: package,
description: description,
source_url: @repo_url,
deps: deps]
end
... | 25.416667 | 99 | 0.548634 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.