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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
74b6605e59e76d380855830af07e1389a7748564 | 185 | exs | Elixir | test/test_helper.exs | fdietz/whistler_news_reader | 501f3f95e1ba3a684da8b34b60e426da85e7852d | [
"MIT"
] | 8 | 2016-06-12T20:11:26.000Z | 2017-05-02T04:36:41.000Z | test/test_helper.exs | fdietz/whistler_news_reader | 501f3f95e1ba3a684da8b34b60e426da85e7852d | [
"MIT"
] | 2 | 2016-06-12T15:49:06.000Z | 2016-06-12T20:00:02.000Z | test/test_helper.exs | fdietz/whistler_news_reader | 501f3f95e1ba3a684da8b34b60e426da85e7852d | [
"MIT"
] | null | null | null | {:ok, _} = Application.ensure_all_started(:ex_machina)
{:ok, _} = Application.ensure_all_started(:hound)
ExUnit.start
Ecto.Adapters.SQL.Sandbox.mode(WhistlerNewsReader.Repo, :manual)
| 26.428571 | 64 | 0.778378 |
74b662c18b48163243faaccc177203a78c14905b | 3,913 | exs | Elixir | test/bertex_test.exs | veyond-card/bertex | 81834ed84aeefe8c9b6a73aebf47c7abf940c2db | [
"MIT"
] | 20 | 2015-01-21T19:41:52.000Z | 2020-09-30T23:57:39.000Z | test/bertex_test.exs | veyond-card/bertex | 81834ed84aeefe8c9b6a73aebf47c7abf940c2db | [
"MIT"
] | 5 | 2015-05-23T22:14:21.000Z | 2020-12-21T19:27:07.000Z | test/bertex_test.exs | veyond-card/bertex | 81834ed84aeefe8c9b6a73aebf47c7abf940c2db | [
"MIT"
] | 5 | 2016-02-15T18:14:00.000Z | 2020-12-21T12:58:53.000Z | defmodule Bertex.Test do
use ExUnit.Case
import Bertex
import :erlang, only: [binary_to_term: 1, term_to_binary: 1]
doctest Bertex
defp assert_term(term) do
assert decode(encode(term)) == term
end
test "encode true" do
assert binary_to_term(encode(true)) == {:bert, true}
end
test "encode f... | 23.572289 | 95 | 0.635829 |
74b68023f4c741693c6ec855cf33ddb069c3d1e2 | 897 | ex | Elixir | bowman/lib/bowman_web/views/star_view.ex | mudphone/bowman | e916d0921f259f2c9dcba9313a64402b0bc43f9e | [
"MIT"
] | null | null | null | bowman/lib/bowman_web/views/star_view.ex | mudphone/bowman | e916d0921f259f2c9dcba9313a64402b0bc43f9e | [
"MIT"
] | 3 | 2020-07-17T01:30:50.000Z | 2021-05-08T20:23:35.000Z | bowman/lib/bowman_web/views/star_view.ex | mudphone/bowman | e916d0921f259f2c9dcba9313a64402b0bc43f9e | [
"MIT"
] | null | null | null | defmodule BowmanWeb.StarView do
use BowmanWeb, :view
alias StarPolygons.Plan
def min_points, do: Plan.min_points()
def max_points, do: Plan.max_points()
def enable_density_slider(max_density)
when max_density == 1,
do: "disabled"
def enable_density_slider(_), do: ""
def enable_density_dec... | 21.878049 | 54 | 0.662207 |
74b687ddaf6c7db55d4e275a1a2d5fa72501a651 | 1,841 | ex | Elixir | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2beta1_export_agent_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2beta1_export_agent_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2beta1_export_agent_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... | 33.472727 | 188 | 0.738729 |
74b690b46a0140a6b2913dcd349f289bfc33fd5f | 470 | exs | Elixir | test/rockelivery_web/views/error_view_test.exs | mCodex/rocketseat-ignite-rockelivery | 8592c95962acd6578f28583307df2ea4464d4750 | [
"MIT"
] | 1 | 2022-03-16T20:41:29.000Z | 2022-03-16T20:41:29.000Z | test/rockelivery_web/views/error_view_test.exs | mCodex/rocketseat-ignite-rockelivery | 8592c95962acd6578f28583307df2ea4464d4750 | [
"MIT"
] | null | null | null | test/rockelivery_web/views/error_view_test.exs | mCodex/rocketseat-ignite-rockelivery | 8592c95962acd6578f28583307df2ea4464d4750 | [
"MIT"
] | 1 | 2021-12-21T12:47:59.000Z | 2021-12-21T12:47:59.000Z | defmodule RockeliveryWeb.ErrorViewTest do
use RockeliveryWeb.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(RockeliveryWeb.ErrorView, "404.json", []) == %{errors: %{detail: "Not Found"}}
end
test "ren... | 29.375 | 96 | 0.693617 |
74b6a5ffc062c9147c626df2c0f90d381b29c2f8 | 1,290 | ex | Elixir | lib/publisher/topic_selector.ex | Yamilquery/kaufmann_ex | 5158ae8f524f8780647766ff35db88ebd761da29 | [
"MIT"
] | null | null | null | lib/publisher/topic_selector.ex | Yamilquery/kaufmann_ex | 5158ae8f524f8780647766ff35db88ebd761da29 | [
"MIT"
] | null | null | null | lib/publisher/topic_selector.ex | Yamilquery/kaufmann_ex | 5158ae8f524f8780647766ff35db88ebd761da29 | [
"MIT"
] | null | null | null | defmodule KaufmannEx.Publisher.TopicSelector do
@moduledoc """
Methods a Publisher may use to choose which topic to publish an event to
If a message context includes a callback_topic, the specified callback_topic will be used over :namespace
"""
@doc """
Chooses topic from metadata for publishing an event... | 32.25 | 107 | 0.713178 |
74b6ae78509463a034bc9f35b9e3d5bc56f1651e | 4,998 | ex | Elixir | lib/livebook/runtime/standalone_init.ex | kianmeng/livebook | 8fe8d27d3d46b64d22126d1b97157330b87e611c | [
"Apache-2.0"
] | 1,846 | 2021-04-13T14:46:36.000Z | 2021-07-14T20:37:40.000Z | lib/livebook/runtime/standalone_init.ex | kianmeng/livebook | 8fe8d27d3d46b64d22126d1b97157330b87e611c | [
"Apache-2.0"
] | 411 | 2021-07-15T07:41:54.000Z | 2022-03-31T21:34:22.000Z | lib/livebook/runtime/standalone_init.ex | kianmeng/livebook | 8fe8d27d3d46b64d22126d1b97157330b87e611c | [
"Apache-2.0"
] | 130 | 2021-04-13T15:43:55.000Z | 2021-07-12T16:57:46.000Z | defmodule Livebook.Runtime.StandaloneInit do
@moduledoc false
# Generic functionality related to starting and setting up
# a new Elixir system process. It's used by both ElixirStandalone
# and MixStandalone runtimes.
alias Livebook.Utils.Emitter
alias Livebook.Runtime.NodePool
@doc """
Returns a rand... | 34.232877 | 95 | 0.678071 |
74b6d1a1bbda805ce380d2084a41cd13b0fba239 | 90 | exs | Elixir | test/views/layout_view_test.exs | matsubara0507/pastry-chef-test | 05c0fc3a3864e5469690da980e7bf3d2dbdb3919 | [
"MIT"
] | 1 | 2017-09-20T23:46:35.000Z | 2017-09-20T23:46:35.000Z | test/views/layout_view_test.exs | matsubara0507/pastry-chef-test | 05c0fc3a3864e5469690da980e7bf3d2dbdb3919 | [
"MIT"
] | null | null | null | test/views/layout_view_test.exs | matsubara0507/pastry-chef-test | 05c0fc3a3864e5469690da980e7bf3d2dbdb3919 | [
"MIT"
] | null | null | null | defmodule PastryChefTest.LayoutViewTest do
use PastryChefTest.ConnCase, async: true
end
| 22.5 | 42 | 0.844444 |
74b6f2b1be6b4764431cac3989ca2fc32b694792 | 2,492 | ex | Elixir | clients/service_management/lib/google_api/service_management/v1/model/expr.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/service_management/lib/google_api/service_management/v1/model/expr.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/service_management/lib/google_api/service_management/v1/model/expr.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... | 43.719298 | 237 | 0.732343 |
74b6ff433d0ccbeae3c98fa6885686cb88568a4d | 9,059 | ex | Elixir | lib/sanbase_web/graphql/cache/cache.ex | santiment/sanbase2 | 9ef6e2dd1e377744a6d2bba570ea6bd477a1db31 | [
"MIT"
] | 81 | 2017-11-20T01:20:22.000Z | 2022-03-05T12:04:25.000Z | lib/sanbase_web/graphql/cache/cache.ex | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | 359 | 2017-10-15T14:40:53.000Z | 2022-01-25T13:34:20.000Z | lib/sanbase_web/graphql/cache/cache.ex | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | 16 | 2017-11-19T13:57:40.000Z | 2022-02-07T08:13:02.000Z | defmodule SanbaseWeb.Graphql.Cache do
@moduledoc ~s"""
Provides the macro `cache_resolve` that replaces the Absinthe's `resolve` and
caches the result of the resolver for a some time instead of precalculating itt
each time.
"""
alias __MODULE__, as: CacheMod
alias SanbaseWeb.Graphql.ConCacheProvider, as:... | 32.124113 | 89 | 0.667292 |
74b705143178c27515fa79e7f102b16c40fe0cac | 1,784 | ex | Elixir | clients/tool_results/lib/google_api/tool_results/v1beta3/model/batch_create_perf_samples_request.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/tool_results/lib/google_api/tool_results/v1beta3/model/batch_create_perf_samples_request.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/tool_results/lib/google_api/tool_results/v1beta3/model/batch_create_perf_samples_request.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... | 37.957447 | 178 | 0.766256 |
74b7125c43494450f636da69e3abdd9cb2c2fe0f | 669 | exs | Elixir | priv/repo/migrations/19700101000012_schemas_city_blocks_ip6r.exs | elixir-geolix/adapter_maxmind_csv | 0ef4109ef23cc61c62134b7bef4a8249d1a7c37e | [
"Apache-2.0"
] | 1 | 2020-06-20T14:40:16.000Z | 2020-06-20T14:40:16.000Z | priv/repo/migrations/19700101000012_schemas_city_blocks_ip6r.exs | elixir-geolix/adapter_maxmind_csv | 0ef4109ef23cc61c62134b7bef4a8249d1a7c37e | [
"Apache-2.0"
] | null | null | null | priv/repo/migrations/19700101000012_schemas_city_blocks_ip6r.exs | elixir-geolix/adapter_maxmind_csv | 0ef4109ef23cc61c62134b7bef4a8249d1a7c37e | [
"Apache-2.0"
] | null | null | null | defmodule Geolix.Adapter.MaxMindCSV.Repo.Migrations.SchemasCityBlocksIP6R do
use Ecto.Migration
def change do
create table("geolix_maxmind_csv_city_blocks_ip6r", primary_key: false) do
add :network, :ip6r
add :geoname_id, :integer
add :registered_country_geoname_id, :integer
add :repres... | 31.857143 | 81 | 0.726457 |
74b71a5ea727de80058183c90e99e0ffd3ce1419 | 5,142 | ex | Elixir | lib/livebook_web/live/home_live/session_list_component.ex | mgibowski/livebook | bfb9dc371e386597219a398a180d69c0bfa2f384 | [
"Apache-2.0"
] | null | null | null | lib/livebook_web/live/home_live/session_list_component.ex | mgibowski/livebook | bfb9dc371e386597219a398a180d69c0bfa2f384 | [
"Apache-2.0"
] | null | null | null | lib/livebook_web/live/home_live/session_list_component.ex | mgibowski/livebook | bfb9dc371e386597219a398a180d69c0bfa2f384 | [
"Apache-2.0"
] | 1 | 2021-12-18T03:42:04.000Z | 2021-12-18T03:42:04.000Z | defmodule LivebookWeb.HomeLive.SessionListComponent do
use LivebookWeb, :live_component
@impl true
def mount(socket) do
{:ok, assign(socket, order_by: "date")}
end
@impl true
def update(assigns, socket) do
{sessions, assigns} = Map.pop!(assigns, :sessions)
sessions = sort_sessions(sessions, s... | 34.510067 | 113 | 0.55387 |
74b79145a31c8ec8d17ef1e5f9856d7827cf935c | 958 | exs | Elixir | mix.exs | jschoch/trebant | ef544b8c2715c039c91b7ee88005810a2dfb1a88 | [
"MIT"
] | 2 | 2015-08-18T09:26:36.000Z | 2016-08-16T12:37:31.000Z | mix.exs | jschoch/trebant | ef544b8c2715c039c91b7ee88005810a2dfb1a88 | [
"MIT"
] | 7 | 2015-06-06T18:37:35.000Z | 2015-07-31T19:53:47.000Z | mix.exs | jschoch/trabant | ef544b8c2715c039c91b7ee88005810a2dfb1a88 | [
"MIT"
] | null | null | null | defmodule Trabant.Mixfile do
use Mix.Project
def project do
[app: :trabant,
version: "0.0.1",
elixir: "~> 1.0",
build_embedded: Mix.env == :prod || Mix.env == :gamma,
start_permanent: Mix.env == :prod,
deps: deps]
end
# Configuration for the OTP application
#
# Type `mix help ... | 23.95 | 77 | 0.59499 |
74b7d766b0651ad0e43e2ed033a9fe92c964d0af | 1,147 | exs | Elixir | config/config.exs | empex2019liveview/namedb | fd01151dd293f9740204435fed524bc364f81069 | [
"MIT"
] | null | null | null | config/config.exs | empex2019liveview/namedb | fd01151dd293f9740204435fed524bc364f81069 | [
"MIT"
] | null | null | null | config/config.exs | empex2019liveview/namedb | fd01151dd293f9740204435fed524bc364f81069 | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
#
# This configuration file is loaded before any dependency and
# is restricted to this project.
# General application configuration
use Mix.Config
# Configures the endpoint
config :namedb, Namedb... | 33.735294 | 86 | 0.776809 |
74b7e77623562fea967aa2ffa783547ea9590d15 | 73 | exs | Elixir | apps/memo_web/test/test_helper.exs | michaeljbishop/memo_app | 58a2a547a6e40eb518ea8b193514fea368e80704 | [
"MIT"
] | null | null | null | apps/memo_web/test/test_helper.exs | michaeljbishop/memo_app | 58a2a547a6e40eb518ea8b193514fea368e80704 | [
"MIT"
] | null | null | null | apps/memo_web/test/test_helper.exs | michaeljbishop/memo_app | 58a2a547a6e40eb518ea8b193514fea368e80704 | [
"MIT"
] | null | null | null | ExUnit.start()
# Ecto.Adapters.SQL.Sandbox.mode(MemoWeb.Repo, :manual)
| 14.6 | 55 | 0.739726 |
74b7fc54268e41f48e48ed450883b40b0eb82ce2 | 21,263 | exs | Elixir | test/telemetry_influx_db_test.exs | influxdata/telemetry_influxdb | d3ec2d2c4389e373890fdf4e36ebcb07cab12435 | [
"MIT"
] | null | null | null | test/telemetry_influx_db_test.exs | influxdata/telemetry_influxdb | d3ec2d2c4389e373890fdf4e36ebcb07cab12435 | [
"MIT"
] | 3 | 2020-07-15T18:12:34.000Z | 2021-10-09T02:04:36.000Z | test/telemetry_influx_db_test.exs | influxdata/telemetry_influxdb | d3ec2d2c4389e373890fdf4e36ebcb07cab12435 | [
"MIT"
] | 4 | 2020-01-27T05:42:17.000Z | 2022-03-25T10:32:44.000Z | defmodule TelemetryInfluxDBTest do
use ExUnit.Case, async: false
import ExUnit.CaptureLog
import Eventually
alias TelemetryInfluxDB.Test.FluxParser
alias TelemetryInfluxDB.Test.InfluxSimpleClient
alias TelemetryInfluxDB.UDP
@v1_config %{
version: :v1,
db: "myinflux",
username: "myuser",
... | 29.573018 | 101 | 0.569957 |
74b80ede6da264393c9bc2f4e5fa7a5478907eea | 448 | exs | Elixir | test/phoenix_html_simplified_helpers/number_with_delimiter_test.exs | ryochin/phoenix_html_simplified_helpers | 873c7b3eac9374f4805a3b1288d75496ee7b056b | [
"MIT"
] | 31 | 2016-02-27T18:15:12.000Z | 2022-02-23T11:34:09.000Z | test/phoenix_html_simplified_helpers/number_with_delimiter_test.exs | ryochin/phoenix_html_simplified_helpers | 873c7b3eac9374f4805a3b1288d75496ee7b056b | [
"MIT"
] | 13 | 2016-05-26T14:08:59.000Z | 2020-10-13T11:03:08.000Z | test/phoenix_html_simplified_helpers/number_with_delimiter_test.exs | ryochin/phoenix_html_simplified_helpers | 873c7b3eac9374f4805a3b1288d75496ee7b056b | [
"MIT"
] | 15 | 2016-05-21T09:54:32.000Z | 2021-09-23T01:43:03.000Z | Code.require_file("../../test_helper.exs", __ENV__.file)
defmodule Phoenix.HTML.SimplifiedHelpers.NumberWithDelimiterTest do
use ExUnit.Case
use Phoenix.HTML.SimplifiedHelpers
doctest Phoenix.HTML.SimplifiedHelpers
test "int into number_with_delimiter" do
assert number_with_delimiter(1_234_567) == "1,234... | 26.352941 | 67 | 0.772321 |
74b82dbd42bd7b7e8cc593324fcecd6d8fcbf259 | 2,036 | exs | Elixir | raspberry_phoenix/test/controllers/alarm_controller_test.exs | raymondboswel/raspberry_phoenix | ec0594c765db4405f2ec1f876ef9f76e685fcea4 | [
"Apache-2.0"
] | null | null | null | raspberry_phoenix/test/controllers/alarm_controller_test.exs | raymondboswel/raspberry_phoenix | ec0594c765db4405f2ec1f876ef9f76e685fcea4 | [
"Apache-2.0"
] | null | null | null | raspberry_phoenix/test/controllers/alarm_controller_test.exs | raymondboswel/raspberry_phoenix | ec0594c765db4405f2ec1f876ef9f76e685fcea4 | [
"Apache-2.0"
] | null | null | null | defmodule RaspberryPhoenix.AlarmControllerTest do
use RaspberryPhoenix.ConnCase
alias RaspberryPhoenix.Alarm
@valid_attrs %{}
@invalid_attrs %{}
setup %{conn: conn} do
{:ok, conn: put_req_header(conn, "accept", "application/json")}
end
test "lists all entries on index", %{conn: conn} do
conn = ... | 33.933333 | 98 | 0.672888 |
74b85fb4e56918191fb6be8a75b106944838f74b | 1,895 | ex | Elixir | apps/engine/lib/engine/ethereum/height_observer/alarm_handler.ex | omgnetwork/omg-childchain-v2 | 31cc9cf9e42718fc3b9bd6668f24a627cac80b4f | [
"Apache-2.0"
] | 4 | 2020-11-30T17:38:57.000Z | 2021-01-23T21:29:41.000Z | apps/engine/lib/engine/ethereum/height_observer/alarm_handler.ex | omgnetwork/omg-childchain-v2 | 31cc9cf9e42718fc3b9bd6668f24a627cac80b4f | [
"Apache-2.0"
] | 24 | 2020-11-30T17:32:48.000Z | 2021-02-22T06:25:22.000Z | apps/engine/lib/engine/ethereum/height_observer/alarm_handler.ex | omgnetwork/omg-childchain-v2 | 31cc9cf9e42718fc3b9bd6668f24a627cac80b4f | [
"Apache-2.0"
] | null | null | null | defmodule Engine.Ethereum.HeightObserver.AlarmHandler do
@moduledoc """
Listens for :ethereum_connection_error and :ethereum_stalled_sync alarms and reflect
the alarm's state back to the monitor.
"""
alias Engine.Ethereum.HeightObserver.AlarmManagement
require Logger
# The alarm reporter and monitor happ... | 37.9 | 104 | 0.720844 |
74b8700b54deca80f320b60f7e21276ea5d5101a | 147 | exs | Elixir | test/ingredient_test.exs | mpugach/ingredient | 7ba5efa45ac36d4f3ff50202a272af252f3ca383 | [
"MIT"
] | null | null | null | test/ingredient_test.exs | mpugach/ingredient | 7ba5efa45ac36d4f3ff50202a272af252f3ca383 | [
"MIT"
] | null | null | null | test/ingredient_test.exs | mpugach/ingredient | 7ba5efa45ac36d4f3ff50202a272af252f3ca383 | [
"MIT"
] | null | null | null | defmodule IngredientTest do
use ExUnit.Case
doctest Ingredient
test "greets the world" do
assert Ingredient.hello() == :world
end
end
| 16.333333 | 39 | 0.727891 |
74b8f66dea1d35223bd89914e0a163f96eb0dd4f | 11,040 | ex | Elixir | phoenix/lib/mehr_schulferien_web/controllers/school_controller.ex | komlanvi/www.mehr-schulferien.de | fe74772f2cc8ce430e04adf6e66023971456ce57 | [
"MIT"
] | null | null | null | phoenix/lib/mehr_schulferien_web/controllers/school_controller.ex | komlanvi/www.mehr-schulferien.de | fe74772f2cc8ce430e04adf6e66023971456ce57 | [
"MIT"
] | null | null | null | phoenix/lib/mehr_schulferien_web/controllers/school_controller.ex | komlanvi/www.mehr-schulferien.de | fe74772f2cc8ce430e04adf6e66023971456ce57 | [
"MIT"
] | null | null | null | defmodule MehrSchulferienWeb.SchoolController do
use MehrSchulferienWeb, :controller
alias MehrSchulferien.Locations
alias MehrSchulferien.Locations.Country
alias MehrSchulferien.Locations.FederalState
alias MehrSchulferien.Locations.City
alias MehrSchulferien.Locations.School
alias MehrSchulferien.Timet... | 43.125 | 132 | 0.570652 |
74b91031794bffcc54071d2939a4397604aa4823 | 1,963 | exs | Elixir | test/json_schema_test_suite/draft4/not_test.exs | romul/xema | 8273e10645cf54e8765a197b1ff0c097994275d9 | [
"MIT"
] | null | null | null | test/json_schema_test_suite/draft4/not_test.exs | romul/xema | 8273e10645cf54e8765a197b1ff0c097994275d9 | [
"MIT"
] | null | null | null | test/json_schema_test_suite/draft4/not_test.exs | romul/xema | 8273e10645cf54e8765a197b1ff0c097994275d9 | [
"MIT"
] | null | null | null | defmodule JsonSchemaTestSuite.Draft4.NotTest do
use ExUnit.Case
import Xema, only: [valid?: 2]
describe "not" do
setup do
%{
schema:
Xema.from_json_schema(
%{"not" => %{"type" => "integer"}},
draft: "draft4"
)
}
end
test "allowed", %{s... | 20.882979 | 97 | 0.497198 |
74b91a7f7d9d15812d67c4f673da96b75e944c9d | 3,465 | ex | Elixir | lib/codes/codes_r83.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_r83.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_r83.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | defmodule IcdCode.ICDCode.Codes_R83 do
alias IcdCode.ICDCode
def _R830 do
%ICDCode{full_code: "R830",
category_code: "R83",
short_code: "0",
full_name: "Abnormal level of enzymes in cerebrospinal fluid",
short_name: "Abnormal level of enzymes in cerebrospinal fluid",
... | 39.375 | 118 | 0.663781 |
74b9a92f02784851124cf289bfd34115755b1c78 | 164 | exs | Elixir | priv/repo/migrations/20190729160654_update_projects_table.exs | amacgregor/sibt | 9819a9de4735612ee59de00f71ca1a6dfa275860 | [
"MIT"
] | null | null | null | priv/repo/migrations/20190729160654_update_projects_table.exs | amacgregor/sibt | 9819a9de4735612ee59de00f71ca1a6dfa275860 | [
"MIT"
] | 2 | 2020-07-18T02:22:22.000Z | 2021-03-09T15:46:44.000Z | priv/repo/migrations/20190729160654_update_projects_table.exs | amacgregor/shouldibuildthat | 572b0ba95f93f6ea0dc7b250baaa1bc90efd521b | [
"MIT"
] | null | null | null | defmodule Sibt.Repo.Migrations.UpdateProjectsTable do
use Ecto.Migration
def up do
alter table(:projects) do
add :summary, :string
end
end
end
| 16.4 | 53 | 0.707317 |
74b9b29c232dc5e6a7088e3a931f89e38f72ec7a | 1,959 | ex | Elixir | lib/structs/voice_state.ex | Drahcirius/crux_structs | 53ba17c6ab0adfadbf69e236ec936fed8015420e | [
"MIT"
] | null | null | null | lib/structs/voice_state.ex | Drahcirius/crux_structs | 53ba17c6ab0adfadbf69e236ec936fed8015420e | [
"MIT"
] | null | null | null | lib/structs/voice_state.ex | Drahcirius/crux_structs | 53ba17c6ab0adfadbf69e236ec936fed8015420e | [
"MIT"
] | null | null | null | defmodule Crux.Structs.VoiceState do
@moduledoc """
Represents a Discord [Voice State Object](https://discordapp.com/developers/docs/resources/voice#voice-state-object-voice-state-structure)
"""
@behaviour Crux.Structs
alias Crux.Structs.{Snowflake, User, Util}
require Util
Util.modulesince("0.1.0")
... | 24.4875 | 142 | 0.623277 |
74b9b72d0a9ffd79870d9ea01507393afcd6ceae | 1,456 | ex | Elixir | clients/firebase_ml/lib/google_api/firebase_ml/v1/model/empty.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/firebase_ml/lib/google_api/firebase_ml/v1/model/empty.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/firebase_ml/lib/google_api/firebase_ml/v1/model/empty.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"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.666667 | 282 | 0.757555 |
74b9b77a30355e294de6d73a01f0dc77d6f2ef0c | 1,116 | ex | Elixir | lib/admissions_web/endpoint.ex | doomspork/admissions | a1fd7946dc980189f47a5b808c12e56655fdedfb | [
"Apache-2.0"
] | 18 | 2018-12-01T22:55:24.000Z | 2022-03-11T04:12:43.000Z | lib/admissions_web/endpoint.ex | doomspork/admissions | a1fd7946dc980189f47a5b808c12e56655fdedfb | [
"Apache-2.0"
] | 14 | 2018-12-01T01:00:33.000Z | 2021-06-24T00:40:39.000Z | lib/admissions_web/endpoint.ex | doomspork/admissions | a1fd7946dc980189f47a5b808c12e56655fdedfb | [
"Apache-2.0"
] | 1 | 2019-02-10T16:12:15.000Z | 2019-02-10T16:12:15.000Z | defmodule AdmissionsWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :admissions
use Appsignal.Phoenix
# Serve at "/" the static files from "priv/static" directory.
#
# You should set gzip to true if you are running phx.digest
# when deploying your static files in production.
plug Plug.Static,
at: "/",... | 26.571429 | 63 | 0.710573 |
74b9ccd64b53f0929944abafcea90300a6d293c7 | 199 | ex | Elixir | lib/esl_blog.ex | Hafizuddin-Darman/crawly_sample-esl_blog | a5c857d12c2eefdd383f9b1cf64f2260d8b3de5e | [
"MIT"
] | null | null | null | lib/esl_blog.ex | Hafizuddin-Darman/crawly_sample-esl_blog | a5c857d12c2eefdd383f9b1cf64f2260d8b3de5e | [
"MIT"
] | null | null | null | lib/esl_blog.ex | Hafizuddin-Darman/crawly_sample-esl_blog | a5c857d12c2eefdd383f9b1cf64f2260d8b3de5e | [
"MIT"
] | null | null | null | defmodule EslBlog do
@moduledoc """
Documentation for EslBlog.
"""
@doc """
Hello world.
## Examples
iex> EslBlog.hello()
:world
"""
def hello do
:world
end
end
| 10.473684 | 28 | 0.562814 |
74b9f3c38f1d8bb784b478629673b1dd200bce80 | 4,042 | ex | Elixir | lib/sneex/ops/decrement.ex | NickMcG/SNEEX | 901215dea41fa21314a4f4db46b51648158f1544 | [
"MIT"
] | 1 | 2019-11-16T00:33:02.000Z | 2019-11-16T00:33:02.000Z | lib/sneex/ops/decrement.ex | NickMcG/SNEEX | 901215dea41fa21314a4f4db46b51648158f1544 | [
"MIT"
] | 1 | 2019-08-11T23:02:15.000Z | 2019-08-11T23:02:15.000Z | lib/sneex/ops/decrement.ex | NickMcG/SNEEX | 901215dea41fa21314a4f4db46b51648158f1544 | [
"MIT"
] | null | null | null | defmodule Sneex.Ops.Decrement do
@moduledoc """
This represents the op codes for decrementing a value (DEC, DEX, and DEY).
"""
defstruct [:disasm_override, :bit_size, :cycle_mods, :address_mode]
alias Sneex.Address.{Absolute, CycleCalculator, DirectPage, Indexed, Mode, Register}
alias Sneex.{Cpu, CpuHelper... | 29.940741 | 86 | 0.650173 |
74ba02ac414a6d4ea1374a30f3d12d5403e11740 | 481 | ex | Elixir | lib/game/lobby.ex | idabmat/game_api | c12eefb84ff5c9647ee2e06d7893e3aae1b48b2d | [
"MIT"
] | null | null | null | lib/game/lobby.ex | idabmat/game_api | c12eefb84ff5c9647ee2e06d7893e3aae1b48b2d | [
"MIT"
] | null | null | null | lib/game/lobby.ex | idabmat/game_api | c12eefb84ff5c9647ee2e06d7893e3aae1b48b2d | [
"MIT"
] | null | null | null | defmodule Game.Lobby do
@moduledoc """
Lobby players can create or join to play or watch a game.
"""
alias Game.Player
use TypedStruct
@derive {Jason.Encoder, only: [:name, :players]}
typedstruct do
field(:uid, String.t(), enforce: true)
field(:name, String.t(), enforce: true)
field(:player... | 24.05 | 76 | 0.644491 |
74ba34655d9d445fd4ff3823c390ec7a987595cf | 1,139 | exs | Elixir | config/config.exs | terianil/elixir-monero-address | 73f24e3b4554252e11e3e73fa1910a32c25d2c21 | [
"MIT"
] | null | null | null | config/config.exs | terianil/elixir-monero-address | 73f24e3b4554252e11e3e73fa1910a32c25d2c21 | [
"MIT"
] | null | null | null | config/config.exs | terianil/elixir-monero-address | 73f24e3b4554252e11e3e73fa1910a32c25d2c21 | [
"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.741935 | 73 | 0.753292 |
74ba6bdfadbe6d9b2c3e2124bf7b80fdfeab0efe | 882 | ex | Elixir | clients/os_config/lib/google_api/os_config/v1/metadata.ex | ukrbublik/elixir-google-api | 364cec36bc76f60bec94cbcad34844367a29d174 | [
"Apache-2.0"
] | null | null | null | clients/os_config/lib/google_api/os_config/v1/metadata.ex | ukrbublik/elixir-google-api | 364cec36bc76f60bec94cbcad34844367a29d174 | [
"Apache-2.0"
] | null | null | null | clients/os_config/lib/google_api/os_config/v1/metadata.ex | ukrbublik/elixir-google-api | 364cec36bc76f60bec94cbcad34844367a29d174 | [
"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.666667 | 74 | 0.758503 |
74baac966e1657638d77a8289f4889955d7ccf5e | 207 | ex | Elixir | ELIXIR/my_project/lib/my_project.ex | lcr0815/iex | 0fc5eadd5a28e7ba2fb225b6117f6d540937ff78 | [
"MIT"
] | null | null | null | ELIXIR/my_project/lib/my_project.ex | lcr0815/iex | 0fc5eadd5a28e7ba2fb225b6117f6d540937ff78 | [
"MIT"
] | null | null | null | ELIXIR/my_project/lib/my_project.ex | lcr0815/iex | 0fc5eadd5a28e7ba2fb225b6117f6d540937ff78 | [
"MIT"
] | null | null | null | defmodule MyProject do
@moduledoc """
Documentation for `MyProject`.
"""
@doc """
Hello world.
## Examples
iex> MyProject.hello()
:world
"""
def hello do
:world
end
end
| 10.894737 | 32 | 0.570048 |
74bab04a61ed2269305367c82e7171461be1fef0 | 45 | exs | Elixir | test/power_test.exs | mobileoverlord/power_control | 5c9f1db78086de1653a9f66c54a89ef7ae50d904 | [
"Apache-2.0"
] | 31 | 2018-10-12T23:44:23.000Z | 2021-05-30T19:24:27.000Z | test/power_test.exs | mobileoverlord/power_control | 5c9f1db78086de1653a9f66c54a89ef7ae50d904 | [
"Apache-2.0"
] | null | null | null | test/power_test.exs | mobileoverlord/power_control | 5c9f1db78086de1653a9f66c54a89ef7ae50d904 | [
"Apache-2.0"
] | 5 | 2019-02-08T16:06:19.000Z | 2021-02-23T23:50:21.000Z | defmodule PowerTest do
use ExUnit.Case
end
| 11.25 | 22 | 0.8 |
74bb036251821918dea2e5d4a6820c5af62017b4 | 1,709 | ex | Elixir | lib/boilerplate_web/endpoint.ex | FelixWieland/phoenix-react-materialui-boilerplate | 64d1a797f71cfd5e9b77c0db6704fce305bfa5c4 | [
"MIT"
] | null | null | null | lib/boilerplate_web/endpoint.ex | FelixWieland/phoenix-react-materialui-boilerplate | 64d1a797f71cfd5e9b77c0db6704fce305bfa5c4 | [
"MIT"
] | 1 | 2020-09-06T11:01:40.000Z | 2020-09-06T11:01:40.000Z | lib/boilerplate_web/endpoint.ex | FelixWieland/phoenix-react-materialui-boilerplate | 64d1a797f71cfd5e9b77c0db6704fce305bfa5c4 | [
"MIT"
] | null | null | null | defmodule BoilerplateWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :boilerplate
#socket("/socket", BoilerplateWeb.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.
... | 26.292308 | 95 | 0.693973 |
74bb2d0a3001d4139dc22894a7dd972d93ab162e | 884 | ex | Elixir | lib/sentinel/changeset/password_validator.ex | suranyami/sentinel | aeb421e2e61a4bc14abe89b4a92cb1943a5965fb | [
"MIT"
] | null | null | null | lib/sentinel/changeset/password_validator.ex | suranyami/sentinel | aeb421e2e61a4bc14abe89b4a92cb1943a5965fb | [
"MIT"
] | null | null | null | lib/sentinel/changeset/password_validator.ex | suranyami/sentinel | aeb421e2e61a4bc14abe89b4a92cb1943a5965fb | [
"MIT"
] | null | null | null | defmodule Sentinel.PasswordValidator do
@moduledoc """
Module responsible for implementing password validations,
or pulling in the user's custom defined validations
"""
def changeset(changeset, %{credentials: %{other: %{password: password}}}) when password != "" and password != nil do
Sentinel.Helpers.In... | 27.625 | 118 | 0.697964 |
74bb3d2348ad85949e7b8c9d0b8fa5dd60224597 | 83 | exs | Elixir | test/job_board_web/views/user_view_test.exs | TDogVoid/job_board | 23793917bd1cc4e68bccce737b971093030a31eb | [
"MIT"
] | null | null | null | test/job_board_web/views/user_view_test.exs | TDogVoid/job_board | 23793917bd1cc4e68bccce737b971093030a31eb | [
"MIT"
] | null | null | null | test/job_board_web/views/user_view_test.exs | TDogVoid/job_board | 23793917bd1cc4e68bccce737b971093030a31eb | [
"MIT"
] | null | null | null | defmodule JobBoardWeb.UserViewTest do
use JobBoardWeb.ConnCase, async: true
end
| 16.6 | 39 | 0.819277 |
74bb7e2b9704a253fef7bbc85a912d49f7c65112 | 1,871 | exs | Elixir | kousa/test/broth/room/deafen_test.exs | MrDogeBro/dogehouse | f36024ab161745825054be5d1f7835afc9fc12ec | [
"MIT"
] | 1 | 2021-05-18T15:21:25.000Z | 2021-05-18T15:21:25.000Z | kousa/test/broth/room/deafen_test.exs | MrDogeBro/dogehouse | f36024ab161745825054be5d1f7835afc9fc12ec | [
"MIT"
] | null | null | null | kousa/test/broth/room/deafen_test.exs | MrDogeBro/dogehouse | f36024ab161745825054be5d1f7835afc9fc12ec | [
"MIT"
] | null | null | null | defmodule BrothTest.Room.DeafenTest do
use ExUnit.Case, async: true
use KousaTest.Support.EctoSandbox
alias Beef.Schemas.User
alias Beef.Users
alias BrothTest.WsClient
alias BrothTest.WsClientFactory
alias KousaTest.Support.Factory
require WsClient
setup do
user = Factory.create(User)
clien... | 32.258621 | 98 | 0.658471 |
74bb91d9899d2de46866e03f64131cb30cd8047b | 620 | ex | Elixir | lib/valve/application.ex | evuez/valve | ad12afb79fce978dd04fa7ad6a21aacf5275a8d7 | [
"MIT"
] | 1 | 2017-10-09T10:57:18.000Z | 2017-10-09T10:57:18.000Z | lib/valve/application.ex | evuez/valve | ad12afb79fce978dd04fa7ad6a21aacf5275a8d7 | [
"MIT"
] | 1 | 2017-12-26T11:15:26.000Z | 2017-12-26T11:15:26.000Z | lib/valve/application.ex | evuez/valve | ad12afb79fce978dd04fa7ad6a21aacf5275a8d7 | [
"MIT"
] | 2 | 2017-12-26T11:14:53.000Z | 2018-06-22T01:33:30.000Z | defmodule Valve.Application do
# See http://elixir-lang.org/docs/stable/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
use Application
def start(_type, _args) do
import Supervisor.Spec, warn: false
children = [
supervisor(Registry, [:unique, Valve.Registry... | 28.181818 | 66 | 0.679032 |
74bbb479e24ab9ec9bb191648736271e888e0c88 | 394 | exs | Elixir | priv/repo/migrations/20160419205650_create_reference.exs | shanethacker/reference_graphql | 189b86752cd859bbc0a51cd485940c0f5a29ddd6 | [
"MIT"
] | null | null | null | priv/repo/migrations/20160419205650_create_reference.exs | shanethacker/reference_graphql | 189b86752cd859bbc0a51cd485940c0f5a29ddd6 | [
"MIT"
] | null | null | null | priv/repo/migrations/20160419205650_create_reference.exs | shanethacker/reference_graphql | 189b86752cd859bbc0a51cd485940c0f5a29ddd6 | [
"MIT"
] | null | null | null | defmodule ReferenceGraphql.Repo.Migrations.CreateReference do
use Ecto.Migration
def change do
create table(:references) do
add :heroid, :integer
add :title, :string
add :authors, :string
add :year, :integer
add :journal, :string
add :pagenumbers, :string
add :volume, ... | 19.7 | 61 | 0.642132 |
74bbb6d267c173ce83095d7a9426bf13d2e438ca | 2,507 | ex | Elixir | lib/absinthe/phase/schema/decorate.ex | hauptbenutzer/absinthe | f1d76e5c249ca337187971b0c96b1870f53716ed | [
"MIT"
] | null | null | null | lib/absinthe/phase/schema/decorate.ex | hauptbenutzer/absinthe | f1d76e5c249ca337187971b0c96b1870f53716ed | [
"MIT"
] | null | null | null | lib/absinthe/phase/schema/decorate.ex | hauptbenutzer/absinthe | f1d76e5c249ca337187971b0c96b1870f53716ed | [
"MIT"
] | 1 | 2018-11-16T02:34:40.000Z | 2018-11-16T02:34:40.000Z | defmodule Absinthe.Phase.Schema.Decorate do
@moduledoc false
@behaviour __MODULE__.Decorator
use Absinthe.Phase
alias Absinthe.Blueprint
@decorate [
Blueprint.Schema.DirectiveDefinition,
Blueprint.Schema.EnumTypeDefinition,
Blueprint.Schema.EnumValueDefinition,
Blueprint.Schema.FieldDefiniti... | 29.151163 | 85 | 0.71081 |
74bbdce52218510ff758ce100863678d3955129e | 104 | ex | Elixir | lib/extripe/source.ex | NarrativeApp/extripe | fc0c475e79fbf925c673ac4a67c27814c92839b6 | [
"MIT"
] | 28 | 2016-02-17T06:13:20.000Z | 2022-01-31T20:25:26.000Z | lib/extripe/source.ex | NarrativeApp/extripe | fc0c475e79fbf925c673ac4a67c27814c92839b6 | [
"MIT"
] | 17 | 2016-02-16T19:08:54.000Z | 2021-07-23T04:10:15.000Z | lib/extripe/source.ex | NarrativeApp/extripe | fc0c475e79fbf925c673ac4a67c27814c92839b6 | [
"MIT"
] | 6 | 2016-02-27T18:05:29.000Z | 2019-08-01T20:27:35.000Z | defmodule Extripe.Source do
use Extripe.Actions.CRUD, only: [:create, :show], resource: "sources"
end
| 26 | 71 | 0.740385 |
74bbf4da11f13574662ea9fdfa550fb3650a0b5c | 803 | exs | Elixir | mix.exs | jarroput/mollie | 05360fffa34b541001ca58cc3950bcfacf1ce12c | [
"MIT"
] | 12 | 2018-11-27T13:51:07.000Z | 2020-07-14T18:57:15.000Z | mix.exs | jarroput/mollie | 05360fffa34b541001ca58cc3950bcfacf1ce12c | [
"MIT"
] | 7 | 2018-11-19T12:40:18.000Z | 2021-01-20T14:48:09.000Z | mix.exs | jarroput/mollie | 05360fffa34b541001ca58cc3950bcfacf1ce12c | [
"MIT"
] | 4 | 2019-03-08T09:52:59.000Z | 2021-01-18T17:47:49.000Z | defmodule Mollie.MixProject do
use Mix.Project
@description """
Elixir wrapper for the Mollie API
"""
def project do
[
app: :mollie,
version: "0.6.2",
elixir: "~> 1.7",
description: @description,
start_permanent: Mix.env() == :prod,
deps: deps(),
package: packag... | 18.25 | 64 | 0.518057 |
74bc6c7e4c239b6e68d7fb55107c585f4be39343 | 218 | ex | Elixir | lib/events_tools_web/controllers/signup_controller.ex | community-tools/community-tools | 40b0e6cc9234b44593d2ab60bb2303d7224deb30 | [
"Apache-2.0"
] | 2 | 2017-10-06T01:14:35.000Z | 2017-11-18T16:44:44.000Z | lib/events_tools_web/controllers/signup_controller.ex | community-tools/community-tools | 40b0e6cc9234b44593d2ab60bb2303d7224deb30 | [
"Apache-2.0"
] | 6 | 2017-10-06T00:04:59.000Z | 2017-10-06T00:09:27.000Z | lib/events_tools_web/controllers/signup_controller.ex | apps-team/community-tools | 40b0e6cc9234b44593d2ab60bb2303d7224deb30 | [
"Apache-2.0"
] | 1 | 2017-10-06T01:17:35.000Z | 2017-10-06T01:17:35.000Z | defmodule CommunityToolsWeb.SignupController do
use CommunityToolsWeb, :controller
def new(conn, _params, current_user, claims) do
render conn, "new.html", current_user: current_user, claims: claims
end
end
| 27.25 | 71 | 0.779817 |
74bc74dd1c3f3e9ce08cf22e09a28837c20bcb82 | 2,804 | ex | Elixir | clients/service_management/lib/google_api/service_management/v1/model/context.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/service_management/lib/google_api/service_management/v1/model/context.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/service_management/lib/google_api/service_management/v1/model/context.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... | 58.416667 | 1,147 | 0.739301 |
74bce176c8a88d8e248aeb3a6ef71efdf3b29308 | 937 | ex | Elixir | backend/test/support/channel_case.ex | ericgroom/gatorgoods | c78af60f463c6c8c6762101a2d8e7102d43bd804 | [
"MIT"
] | 3 | 2018-03-16T06:26:39.000Z | 2019-12-17T19:30:24.000Z | backend/test/support/channel_case.ex | s6o/elm-msgpack | 71e095eed28ae9803be6cb22f7ccc9f82d717c3d | [
"MIT"
] | 9 | 2020-02-12T00:40:03.000Z | 2021-12-09T01:11:33.000Z | backend/test/support/channel_case.ex | s6o/elm-msgpack | 71e095eed28ae9803be6cb22f7ccc9f82d717c3d | [
"MIT"
] | null | null | null | defmodule BackendWeb.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 common datastructures and query the data layer.
Finally, if the test case interacts wi... | 24.657895 | 69 | 0.716115 |
74bd0c53a3bee018e4a9c55beb3b3c652b201424 | 17,113 | ex | Elixir | clients/games_configuration/lib/google_api/games_configuration/v1configuration/api/leaderboard_configurations.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/games_configuration/lib/google_api/games_configuration/v1configuration/api/leaderboard_configurations.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/games_configuration/lib/google_api/games_configuration/v1configuration/api/leaderboard_configurations.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... | 43.214646 | 196 | 0.629814 |
74bd28d03052cb4a0bc8f793f8bdb2cfef11a9a3 | 62 | exs | Elixir | .formatter.exs | dnlserrano/elixir-thrift | 568de9f7bdfa43279c819cb50e16c33b4dc09146 | [
"Apache-2.0"
] | 209 | 2015-12-19T09:56:39.000Z | 2022-03-22T04:43:16.000Z | .formatter.exs | dnlserrano/elixir-thrift | 568de9f7bdfa43279c819cb50e16c33b4dc09146 | [
"Apache-2.0"
] | 312 | 2016-01-05T04:04:58.000Z | 2021-11-15T17:59:57.000Z | .formatter.exs | thecodeboss/elixir-thrift | 621a2039bcbcec62d1cedc85b01421813e0910e8 | [
"Apache-2.0"
] | 40 | 2015-12-21T19:46:03.000Z | 2022-02-10T08:34:58.000Z | [
inputs: ["mix.exs", "{example,lib,test}/**/*.{ex,exs}"]
]
| 15.5 | 57 | 0.5 |
74bd6b38cb79500fffb76d5dc695e801f4480d12 | 2,983 | exs | Elixir | apps/admin_api/test/admin_api/v1/plugs/admin_api_auth_plug_test.exs | jimpeebles/ewallet | ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405 | [
"Apache-2.0"
] | null | null | null | apps/admin_api/test/admin_api/v1/plugs/admin_api_auth_plug_test.exs | jimpeebles/ewallet | ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405 | [
"Apache-2.0"
] | null | null | null | apps/admin_api/test/admin_api/v1/plugs/admin_api_auth_plug_test.exs | jimpeebles/ewallet | ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405 | [
"Apache-2.0"
] | null | null | null | # Copyright 2018 OmiseGO Pte Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writi... | 32.423913 | 82 | 0.715387 |
74bd8c77e1652a37db6cd7d7898b1579f423fe7b | 12,890 | exs | Elixir | test/logbook_test.exs | VoiSmart/logbook | e8166c2f4ee20e5849947b3d0c1cf3a7915fc42a | [
"Apache-2.0"
] | 2 | 2021-09-02T13:44:48.000Z | 2021-09-08T12:28:55.000Z | test/logbook_test.exs | VoiSmart/logbook | e8166c2f4ee20e5849947b3d0c1cf3a7915fc42a | [
"Apache-2.0"
] | 2 | 2020-06-24T20:45:45.000Z | 2021-09-02T13:02:50.000Z | test/logbook_test.exs | VoiSmart/logbook | e8166c2f4ee20e5849947b3d0c1cf3a7915fc42a | [
"Apache-2.0"
] | 1 | 2019-06-07T16:32:53.000Z | 2019-06-07T16:32:53.000Z | defmodule LogbookTest do
@moduledoc false
use ExUnit.Case
doctest Logbook
import ExUnit.CaptureLog
require Logbook
setup do
Logbook.reset()
end
test "reset/0" do
:ok = Logbook.set_level(:baz, :debug)
assert capture_log(fn -> Logbook.debug(:baz, "foo") end) =~ "foo"
:ok = Logbook.res... | 28.021739 | 99 | 0.617611 |
74bdacf3b5704f41ab10bf7035b368d48f023c4c | 147 | exs | Elixir | atividade3/test/atividade3_test.exs | MatheusPSantos/seg-aud-sistemas | 0283a3f93dad74db1f6a50ee88ea5b042cc6f839 | [
"MIT"
] | null | null | null | atividade3/test/atividade3_test.exs | MatheusPSantos/seg-aud-sistemas | 0283a3f93dad74db1f6a50ee88ea5b042cc6f839 | [
"MIT"
] | null | null | null | atividade3/test/atividade3_test.exs | MatheusPSantos/seg-aud-sistemas | 0283a3f93dad74db1f6a50ee88ea5b042cc6f839 | [
"MIT"
] | null | null | null | defmodule Atividade3Test do
use ExUnit.Case
doctest Atividade3
test "greets the world" do
assert Atividade3.hello() == :world
end
end
| 16.333333 | 39 | 0.727891 |
74bdc84799e00bbf988e5526a2eeceee555e7994 | 1,694 | ex | Elixir | lib/serum/build/file_processor/post_list.ex | skunkwerks/serum | 45039417a101bf89f3a86a4aa3d42ce41df2d676 | [
"MIT"
] | 302 | 2016-08-01T05:16:06.000Z | 2022-03-26T07:20:46.000Z | lib/serum/build/file_processor/post_list.ex | skunkwerks/serum | 45039417a101bf89f3a86a4aa3d42ce41df2d676 | [
"MIT"
] | 206 | 2016-08-04T15:18:35.000Z | 2022-03-01T03:07:57.000Z | lib/serum/build/file_processor/post_list.ex | skunkwerks/serum | 45039417a101bf89f3a86a4aa3d42ce41df2d676 | [
"MIT"
] | 35 | 2016-10-29T13:59:34.000Z | 2022-03-01T01:50:31.000Z | defmodule Serum.Build.FileProcessor.PostList do
@moduledoc false
import Serum.IOProxy, only: [put_msg: 2]
alias Serum.PostList
alias Serum.Project
alias Serum.Result
@type tag_groups() :: [{Tag.t(), [Post.t()]}]
@type tag_counts() :: [{Tag.t(), integer()}]
@doc false
@spec generate_lists([map()], P... | 28.233333 | 88 | 0.620425 |
74bdf0b24a2b7571c7e74efa1d9b8d51cead7746 | 505 | exs | Elixir | config/prod.secret.exs | andy-c-jones/basic-phoenix-app | 7ebc473df5dd658ec4b7621e7e9ab0040d905394 | [
"MIT"
] | null | null | null | config/prod.secret.exs | andy-c-jones/basic-phoenix-app | 7ebc473df5dd658ec4b7621e7e9ab0040d905394 | [
"MIT"
] | null | null | null | config/prod.secret.exs | andy-c-jones/basic-phoenix-app | 7ebc473df5dd658ec4b7621e7e9ab0040d905394 | [
"MIT"
] | null | null | null | use Mix.Config
# In this file, we keep production configuration that
# you likely want to automate and keep it away from
# your version control system.
config :basic_phoenix_app, BasicPhoenixApp.Endpoint,
secret_key_base: "BaFBr42s4Nduym2jelHFU7VknBQ2ZiktIg7dfffFEkPpCvKrukU8eGYfcVuQudDg"
# Configure your database
c... | 31.5625 | 85 | 0.805941 |
74be25cb51f5dd785ed3b93ac99b338cd022be87 | 464 | exs | Elixir | test/backmath/lifecycle_tests/todo/add_rename_complete_test.exs | backmath/perspective | a0a577d0ffb06805b64e4dcb171a093e051884b0 | [
"MIT"
] | 2 | 2020-04-24T19:43:06.000Z | 2020-04-24T19:52:27.000Z | test/backmath/lifecycle_tests/todo/add_rename_complete_test.exs | backmath/perspective | a0a577d0ffb06805b64e4dcb171a093e051884b0 | [
"MIT"
] | null | null | null | test/backmath/lifecycle_tests/todo/add_rename_complete_test.exs | backmath/perspective | a0a577d0ffb06805b64e4dcb171a093e051884b0 | [
"MIT"
] | null | null | null | # defmodule Core.AddRenameCompleteTest do
# use ExUnit.Case
# test "lifecycle event" do
# [first | remaining] = Jason.decode!(load_data())
# Perspective.call("missing_token", first)
# # todo_id = "laskdjf"
# # remaining
# # |> Enum.map(fn json ->
# # put_in(json, [:data, :id], todo_id)... | 22.095238 | 82 | 0.614224 |
74be26215242c34ae2751d8b4d963f7aa7bb5630 | 1,068 | ex | Elixir | netaxs_sniff/suckmisic/lib/suckmisic/sync/sync_service.ex | TomasMadeja/santomet-playground | f4467233401756e276612b8a94421e7820ad67fc | [
"WTFPL"
] | null | null | null | netaxs_sniff/suckmisic/lib/suckmisic/sync/sync_service.ex | TomasMadeja/santomet-playground | f4467233401756e276612b8a94421e7820ad67fc | [
"WTFPL"
] | null | null | null | netaxs_sniff/suckmisic/lib/suckmisic/sync/sync_service.ex | TomasMadeja/santomet-playground | f4467233401756e276612b8a94421e7820ad67fc | [
"WTFPL"
] | null | null | null | defmodule Suckmisic.Sync.SyncService do
alias Suckmisic.Sync.ServerRegister
require Logger
def register_node(server_id) do
GenServer.call(ServerRegister, {:add, server_id})
end
def request_work(server_id) do
case GenServer.call(ServerRegister, {:ready, server_id}) do
{:ok, timeout} ->
... | 24.272727 | 69 | 0.606742 |
74be26c551f5bd61c5ac2d32b15f8bd81b528e81 | 1,019 | ex | Elixir | lib/ex_dag/dag/dag_run.ex | badubizzle/exdag | be5a4ec5ef45dad4193235cc064e4a74426b7de4 | [
"MIT"
] | null | null | null | lib/ex_dag/dag/dag_run.ex | badubizzle/exdag | be5a4ec5ef45dad4193235cc064e4a74426b7de4 | [
"MIT"
] | null | null | null | lib/ex_dag/dag/dag_run.ex | badubizzle/exdag | be5a4ec5ef45dad4193235cc064e4a74426b7de4 | [
"MIT"
] | 1 | 2022-01-20T19:17:42.000Z | 2022-01-20T19:17:42.000Z | defmodule ExDag.DAGRun do
@moduledoc """
Represents a running instance of a DAG
"""
@derive {Jason.Encoder, only: [:id, :dag, :updated_at, :started_at, :ended_at]}
@derive {Inspect, only: [:id, :dag, :updated_at, :started_at, :ended_at]}
@enforce_keys [:id, :dag]
defstruct id: nil,
dag: nil... | 22.644444 | 90 | 0.57998 |
74be3aa593c86c549e6f377a3c1a29745ce54200 | 91 | ex | Elixir | lib/banned_book_report_web/views/user_confirmation_view.ex | LannyBose/banned-book-report | 38de7d6399609c104f4821dc06672e8f583ecaed | [
"MIT"
] | null | null | null | lib/banned_book_report_web/views/user_confirmation_view.ex | LannyBose/banned-book-report | 38de7d6399609c104f4821dc06672e8f583ecaed | [
"MIT"
] | null | null | null | lib/banned_book_report_web/views/user_confirmation_view.ex | LannyBose/banned-book-report | 38de7d6399609c104f4821dc06672e8f583ecaed | [
"MIT"
] | null | null | null | defmodule BannedBookReportWeb.UserConfirmationView do
use BannedBookReportWeb, :view
end
| 22.75 | 53 | 0.868132 |
74be448b3fca71f8c0b69ce81bfca04e6717b07f | 2,961 | ex | Elixir | clients/home_graph/lib/google_api/home_graph/v1/model/report_state_and_notification_request.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/home_graph/lib/google_api/home_graph/v1/model/report_state_and_notification_request.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/home_graph/lib/google_api/home_graph/v1/model/report_state_and_notification_request.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 50.186441 | 496 | 0.723742 |
74be5469970c09873a35ff262d1b1af06d192003 | 6,461 | exs | Elixir | .credo.exs | fbettag/rrpproxy.ex | 37149fe32d8090bc1291e8a51d1200ffaf75c588 | [
"MIT"
] | null | null | null | .credo.exs | fbettag/rrpproxy.ex | 37149fe32d8090bc1291e8a51d1200ffaf75c588 | [
"MIT"
] | null | null | null | .credo.exs | fbettag/rrpproxy.ex | 37149fe32d8090bc1291e8a51d1200ffaf75c588 | [
"MIT"
] | null | null | null | # This file contains the configuration for Credo and you are probably reading
# this after creating it with `mix credo.gen.config`.
#
# If you find anything wrong or unclear in this file, please report an
# issue on GitHub: https://github.com/rrrene/credo/issues
#
%{
#
# You can have as many configs as you like in ... | 39.882716 | 149 | 0.616932 |
74beb3952c14517573a963e036dd3d8cda7bd1d1 | 661 | exs | Elixir | priv/repo/seeds.exs | juniornelson123/api_banking_teste | db263511d78fffe9e4081551817d006df2094316 | [
"MIT"
] | null | null | null | priv/repo/seeds.exs | juniornelson123/api_banking_teste | db263511d78fffe9e4081551817d006df2094316 | [
"MIT"
] | null | null | null | priv/repo/seeds.exs | juniornelson123/api_banking_teste | db263511d78fffe9e4081551817d006df2094316 | [
"MIT"
] | null | null | null | # Script for populating the database. You can run it as:
#
# mix run priv/repo/seeds.exs
#
# Inside the script, you can read and write to any of your
# repositories directly:
#
# ApiBanking.Repo.insert!(%ApiBanking.SomeSchema{})
#
# We recommend using the bang functions (`insert!`, `update!`
# and so on) as the... | 44.066667 | 109 | 0.72466 |
74becf93f2967cff7dfc02ea768b22b747d6bc00 | 1,898 | exs | Elixir | clients/android_publisher/mix.exs | jechol/elixir-google-api | 0290b683dfc6491ca2ef755a80bc329378738d03 | [
"Apache-2.0"
] | null | null | null | clients/android_publisher/mix.exs | jechol/elixir-google-api | 0290b683dfc6491ca2ef755a80bc329378738d03 | [
"Apache-2.0"
] | null | null | null | clients/android_publisher/mix.exs | jechol/elixir-google-api | 0290b683dfc6491ca2ef755a80bc329378738d03 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 28.328358 | 124 | 0.665964 |
74bee0ec150ba2e4ce8e46b059f9e9ff11d80377 | 849 | exs | Elixir | memory-master/config/config.exs | Wycode-fish/WEBDEV-MEMORY-GAME | 1b04f995fb1a545781206a7fd01de0a1bb75d86c | [
"MIT"
] | null | null | null | memory-master/config/config.exs | Wycode-fish/WEBDEV-MEMORY-GAME | 1b04f995fb1a545781206a7fd01de0a1bb75d86c | [
"MIT"
] | null | null | null | memory-master/config/config.exs | Wycode-fish/WEBDEV-MEMORY-GAME | 1b04f995fb1a545781206a7fd01de0a1bb75d86c | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
#
# This configuration file is loaded before any dependency and
# is restricted to this project.
use Mix.Config
# Configures the endpoint
config :memory, MemoryWeb.Endpoint,
url: [host: "localhos... | 35.375 | 86 | 0.759717 |
74befc6d6a31cb1accf5f4eeb0af5ca6f84c7277 | 923 | ex | Elixir | lib/chewie/application.ex | jordyvanvorselen/chewie-backend | b382ee0726f54d8ae45f2b41f43e38469cecc326 | [
"MIT"
] | null | null | null | lib/chewie/application.ex | jordyvanvorselen/chewie-backend | b382ee0726f54d8ae45f2b41f43e38469cecc326 | [
"MIT"
] | null | null | null | lib/chewie/application.ex | jordyvanvorselen/chewie-backend | b382ee0726f54d8ae45f2b41f43e38469cecc326 | [
"MIT"
] | null | null | null | defmodule Chewie.Application do
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
use Application
def start(_type, _args) do
# List all child processes to be supervised
children = [
# Start the Ecto repository
Chewie.Repo,
... | 28.84375 | 65 | 0.711809 |
74bf0fdca17c0e901267b414d61094064d9ed647 | 1,573 | ex | Elixir | clients/content/lib/google_api/content/v2/model/product_shipping_weight.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/model/product_shipping_weight.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/model/product_shipping_weight.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... | 30.843137 | 116 | 0.731087 |
74bf23b4b8cda79cb01ca1fa49559f7b4a282d4a | 3,102 | ex | Elixir | clients/content/lib/google_api/content/v21/model/regional_inventory.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v21/model/regional_inventory.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v21/model/regional_inventory.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... | 47.723077 | 253 | 0.717279 |
74bf35915e1ff2ab169e9bf602a19c4edd185163 | 853 | exs | Elixir | config/integration.exs | SmartColumbusOS/push-gateway | 4055ac0e320ba178a443336fa016f365745c6773 | [
"Apache-2.0"
] | null | null | null | config/integration.exs | SmartColumbusOS/push-gateway | 4055ac0e320ba178a443336fa016f365745c6773 | [
"Apache-2.0"
] | null | null | null | config/integration.exs | SmartColumbusOS/push-gateway | 4055ac0e320ba178a443336fa016f365745c6773 | [
"Apache-2.0"
] | null | null | null | use Mix.Config
host = "localhost"
endpoints = [{host, 9092}]
config :push_gateway,
divo: [
{DivoKafka, [create_topics: "event-stream:1:1", outside_host: host]},
DivoRedis
],
divo_wait: [dwell: 1000, max_tries: 120],
elsa_brokers: endpoints,
port: 5555,
processors: 2,
min_batch: 75,
max_batch: ... | 22.447368 | 73 | 0.650645 |
74bf527004bb2d876e5c8b0c239b7c29f151e659 | 120 | ex | Elixir | QWindowManager/debian/menu.ex | rkoyama1623/Quantum | 429d11f0b2c737164005ba70c98611baef69d1c5 | [
"Unlicense"
] | 35 | 2015-01-13T00:57:17.000Z | 2022-03-16T20:39:56.000Z | QWindowManager/debian/menu.ex | KR8T3R/Quantum | 429d11f0b2c737164005ba70c98611baef69d1c5 | [
"Unlicense"
] | null | null | null | QWindowManager/debian/menu.ex | KR8T3R/Quantum | 429d11f0b2c737164005ba70c98611baef69d1c5 | [
"Unlicense"
] | 31 | 2015-01-29T03:59:52.000Z | 2022-03-16T20:40:43.000Z | ?package(eggwm):needs="X11|text|vc|wm" section="Applications/see-menu-manual"\
title="eggwm" command="/usr/bin/eggwm"
| 40 | 78 | 0.733333 |
74bf74a643159095970e0f6b3eece6c360aaf5a8 | 480 | ex | Elixir | example/lib/example_api/router.ex | sebaughman/elixir_cqrs_tools | 3f226e23af568d0422765e8bb526d966d83d34da | [
"MIT"
] | 17 | 2021-05-04T09:27:48.000Z | 2022-02-02T00:53:28.000Z | example/lib/example_api/router.ex | sebaughman/elixir_cqrs_tools | 3f226e23af568d0422765e8bb526d966d83d34da | [
"MIT"
] | 18 | 2021-05-05T21:17:54.000Z | 2021-12-08T19:25:21.000Z | example/lib/example_api/router.ex | sebaughman/elixir_cqrs_tools | 3f226e23af568d0422765e8bb526d966d83d34da | [
"MIT"
] | 2 | 2021-05-04T13:35:00.000Z | 2021-07-08T22:28:32.000Z | defmodule ExampleApi.Router do
@moduledoc false
use Phoenix.Router
import Phoenix.Controller
pipeline :api do
plug Plug.Logger, log: :debug
plug :accepts, ["json"]
plug :put_secure_browser_headers
plug ExampleApi.Plug.AbsintheContext
end
scope "/" do
pipe_through :api
forward "/gr... | 20.869565 | 57 | 0.702083 |
74bf8ab18b0095793c3efd376736b0e38a694a27 | 67 | ex | Elixir | plugins/one_webrtc/lib/one_webrtc_web/views/layout_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/layout_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/layout_view.ex | anndream/infinity_one | 47225f205a6ac4aacdb9bb4f7512dcf4092576ad | [
"MIT"
] | 4 | 2017-09-13T11:34:16.000Z | 2018-02-26T13:37:06.000Z | defmodule OneWebrtcWeb.LayoutView do
use OneWebrtcWeb, :view
end
| 16.75 | 36 | 0.820896 |
74bfd130229c39d9ad10692e707ece4c94671d17 | 2,374 | ex | Elixir | lib/nerves_livebook/application.ex | djcarpe/nerves_livebook | 15da67d7b0dcb9e3b67696519ba671b2b477ae02 | [
"Apache-2.0"
] | null | null | null | lib/nerves_livebook/application.ex | djcarpe/nerves_livebook | 15da67d7b0dcb9e3b67696519ba671b2b477ae02 | [
"Apache-2.0"
] | 16 | 2021-09-10T21:35:13.000Z | 2022-03-18T13:41:54.000Z | lib/nerves_livebook/application.ex | djcarpe/nerves_livebook | 15da67d7b0dcb9e3b67696519ba671b2b477ae02 | [
"Apache-2.0"
] | null | null | null | defmodule NervesLivebook.Application do
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
use Application
def start(_type, _args) do
initialize_data_directory()
if target() != :host do
setup_wifi()
add_mix_install()
end
... | 26.087912 | 87 | 0.669756 |
74bfe6d253648d6423b6141404a6311237fe1a6e | 471 | exs | Elixir | config/test.exs | mvaal/teslamate | 057e15d69ca1ddc19366428ad6b47b8101277472 | [
"MIT"
] | null | null | null | config/test.exs | mvaal/teslamate | 057e15d69ca1ddc19366428ad6b47b8101277472 | [
"MIT"
] | null | null | null | config/test.exs | mvaal/teslamate | 057e15d69ca1ddc19366428ad6b47b8101277472 | [
"MIT"
] | null | null | null | import Config
# We don't run a server during test. If one is required,
# you can enable the server option below.
config :teslamate, TeslaMateWeb.Endpoint,
http: [port: 4002],
server: false
config :logger, level: :warn
config :teslamate, TeslaMate.Repo,
username: "postgres",
password: "postgres",
database: ... | 22.428571 | 56 | 0.721868 |
74c021dd95c86d310dec05f13c8a664763c48dd9 | 2,123 | ex | Elixir | clients/you_tube/lib/google_api/you_tube/v3/model/channel_status.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/you_tube/lib/google_api/you_tube/v3/model/channel_status.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/you_tube/lib/google_api/you_tube/v3/model/channel_status.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.983051 | 195 | 0.701366 |
74c03952cd48e03ebf9c5bd3a088193ec28a61b7 | 2,011 | ex | Elixir | clients/os_config/lib/google_api/os_config/v1/model/inventory.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/os_config/lib/google_api/os_config/v1/model/inventory.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/os_config/lib/google_api/os_config/v1/model/inventory.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.22 | 337 | 0.737941 |
74c03ba10c992f998ef80fb68c1753a41d739f4b | 617 | ex | Elixir | lib/utility_web/controllers/sink_controller.ex | dbernheisel/elixir-regex | 250258474396269e278d23c052e714d2bf80f763 | [
"MIT"
] | 25 | 2020-09-16T22:01:53.000Z | 2022-03-12T02:01:01.000Z | lib/utility_web/controllers/sink_controller.ex | dbernheisel/elixir-regex | 250258474396269e278d23c052e714d2bf80f763 | [
"MIT"
] | 2 | 2021-07-26T20:30:26.000Z | 2022-03-29T19:51:48.000Z | lib/utility_web/controllers/sink_controller.ex | zestcreative/elixir-utilities-web | 6d7545b61939a038bb277790bb9a9ccd683dd16a | [
"MIT"
] | null | null | null | defmodule UtilityWeb.SinkController do
use UtilityWeb, :controller
alias UtilityWeb.HttpSink
def any(conn, %{"foo_sink_id" => id}) when byte_size(id) == 36 do
start = System.monotonic_time()
HttpSink.broadcast(id, HttpSink.build(conn))
:telemetry.execute(
[:utility, :sink, :build],
%{dur... | 22.851852 | 67 | 0.636953 |
74c05ed1ff4d6a019f4aab96ab62159c57153698 | 115 | ex | Elixir | deps/db_connection/lib/db_connection/app.ex | scouten/crash_esqlite_case | 986f0b0721399c7ed520f6b9df133980906e3f51 | [
"MIT"
] | null | null | null | deps/db_connection/lib/db_connection/app.ex | scouten/crash_esqlite_case | 986f0b0721399c7ed520f6b9df133980906e3f51 | [
"MIT"
] | null | null | null | deps/db_connection/lib/db_connection/app.ex | scouten/crash_esqlite_case | 986f0b0721399c7ed520f6b9df133980906e3f51 | [
"MIT"
] | null | null | null | defmodule DBConnection.App do
use Application
def start(_, _) do
DBConnection.Task.start_link()
end
end
| 14.375 | 34 | 0.730435 |
74c0830ee8a69bc4f3194215f6d2b037895da164 | 721 | ex | Elixir | spec/support/factory/formations/squad_factory.ex | Squadster/squadster-api | cf04af79317148d7a08c649d5b5d0197722acb7a | [
"MIT"
] | null | null | null | spec/support/factory/formations/squad_factory.ex | Squadster/squadster-api | cf04af79317148d7a08c649d5b5d0197722acb7a | [
"MIT"
] | null | null | null | spec/support/factory/formations/squad_factory.ex | Squadster/squadster-api | cf04af79317148d7a08c649d5b5d0197722acb7a | [
"MIT"
] | null | null | null | defmodule Squadster.Support.Factory.Formations.SquadFactory do
defmacro __using__(_opts) do
quote do
def squad_factory do
%Squadster.Formations.Squad{
squad_number: "squad #{Faker.random_between(1, 1000)}",
advertisment: Faker.Lorem.Shakespeare.as_you_like_it(),
class_d... | 34.333333 | 122 | 0.660194 |
74c092276b46d036e839bd452f713ca3023d3eb6 | 1,652 | ex | Elixir | clients/firebase_rules/lib/google_api/firebase_rules/v1/model/arg.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/firebase_rules/lib/google_api/firebase_rules/v1/model/arg.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/firebase_rules/lib/google_api/firebase_rules/v1/model/arg.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... | 32.392157 | 88 | 0.737288 |
74c0a4d7a4dceec94028b82696a62345f154edff | 128 | exs | Elixir | apps/ello_dispatch/test/ello_dispatch_test.exs | ello/apex | 4acb096b3ce172ff4ef9a51e5d068d533007b920 | [
"MIT"
] | 16 | 2017-06-21T21:31:20.000Z | 2021-05-09T03:23:26.000Z | apps/ello_dispatch/test/ello_dispatch_test.exs | ello/apex | 4acb096b3ce172ff4ef9a51e5d068d533007b920 | [
"MIT"
] | 25 | 2017-06-07T12:18:28.000Z | 2018-06-08T13:27:43.000Z | apps/ello_dispatch/test/ello_dispatch_test.exs | ello/apex | 4acb096b3ce172ff4ef9a51e5d068d533007b920 | [
"MIT"
] | 3 | 2018-06-14T15:34:07.000Z | 2022-02-28T21:06:13.000Z | defmodule Ello.DispatchTest do
use ExUnit.Case
doctest Ello.Dispatch
test "the truth" do
assert 1 + 1 == 2
end
end
| 14.222222 | 30 | 0.6875 |
74c0ab853202fb823ef43207580bb5dc6d303292 | 468 | exs | Elixir | day22/test/day22_test.exs | the-shank/advent-of-code-2018 | 3be3958adad61e62e8a7ea6ec6a868f049c7a7e4 | [
"Apache-2.0"
] | 7 | 2018-12-12T01:08:24.000Z | 2019-12-09T19:50:36.000Z | day22/test/day22_test.exs | bjorng/advent-of-code-2018 | 5dd312b7473d7f2fe12f0de1fd771c3ee1931b97 | [
"Apache-2.0"
] | null | null | null | day22/test/day22_test.exs | bjorng/advent-of-code-2018 | 5dd312b7473d7f2fe12f0de1fd771c3ee1931b97 | [
"Apache-2.0"
] | null | null | null | defmodule Day22Test do
use ExUnit.Case
doctest Day22
test "part one, examples" do
assert Day22.part1(example1()) == 114
end
test "part one, real data" do
assert Day22.part1(input()) == 5622
end
test "part two, example" do
assert Day22.part2(example1()) == 45
end
test "part two real dat... | 15.6 | 41 | 0.626068 |
74c0ccf9c755249efa454548ee2f1957e2acd9dd | 270 | exs | Elixir | skippy/dashboard/config/test.exs | mashbytes/baby_zoo | 4554890242a2493d17d9b1c1f4cc90d7ad1e637e | [
"MIT"
] | 26 | 2020-09-13T13:54:59.000Z | 2022-03-30T08:12:55.000Z | apps/dashboard/config/test.exs | Arp-G/csv2sql | 21c7310d768afa38282708120af07bb66c8c3f42 | [
"MIT"
] | 11 | 2020-10-18T14:27:16.000Z | 2022-03-19T09:11:31.000Z | skippy/dashboard/config/test.exs | mashbytes/baby_zoo | 4554890242a2493d17d9b1c1f4cc90d7ad1e637e | [
"MIT"
] | 1 | 2021-12-22T14:10:16.000Z | 2021-12-22T14:10:16.000Z | use Mix.Config
# We don't run a server during test. If one is required,
# you can enable the server option below.
config :dashboard, DashboardWeb.Endpoint,
http: [port: 4002],
server: false
# Print only warnings and errors during test
config :logger, level: :warn
| 24.545455 | 56 | 0.740741 |
74c0db8f37298c1ddaa5fe6c805f1a22a5aa4d29 | 1,367 | ex | Elixir | lib/ecto_mnesia/table/stream.ex | szTheory/ecto_mnesia | 9d1fd3b2845ac3c2c12c669d68198dff9e82a322 | [
"MIT"
] | 245 | 2016-10-22T14:43:36.000Z | 2022-02-28T03:46:27.000Z | lib/ecto_mnesia/table/stream.ex | KushanChamindu/ecto_mnesia | bc0fb46d210eb1be63bcc8f0383212f0633b8c52 | [
"MIT"
] | 80 | 2016-10-22T16:09:19.000Z | 2021-03-03T10:45:01.000Z | lib/ecto_mnesia/table/stream.ex | KushanChamindu/ecto_mnesia | bc0fb46d210eb1be63bcc8f0383212f0633b8c52 | [
"MIT"
] | 53 | 2016-12-03T14:23:05.000Z | 2021-07-01T01:55:22.000Z | defmodule EctoMnesia.Table.Stream do
@moduledoc """
Stream implementation for Mnesia table.
"""
alias __MODULE__, as: Stream
alias EctoMnesia.Table
defstruct table: nil
def new(table) do
table = Table.get_name(table)
stream = %Stream{table: table}
case first(stream) do
[] -> []
... | 19.253521 | 72 | 0.618142 |
74c11177060e6f123a3098bc17f0414c67ce9375 | 221 | exs | Elixir | priv/repo/migrations/20170720144527_create_user.exs | kumanote/phoenix_vue_webpack_template | 1294eda8937c5eff4ea9ec2447b275b4a0d098fa | [
"MIT"
] | null | null | null | priv/repo/migrations/20170720144527_create_user.exs | kumanote/phoenix_vue_webpack_template | 1294eda8937c5eff4ea9ec2447b275b4a0d098fa | [
"MIT"
] | null | null | null | priv/repo/migrations/20170720144527_create_user.exs | kumanote/phoenix_vue_webpack_template | 1294eda8937c5eff4ea9ec2447b275b4a0d098fa | [
"MIT"
] | null | null | null | defmodule PhoenixVueWebpackTemplate.Repo.Migrations.CreateUser do
use Ecto.Migration
def change do
create table(:users) do
add :name, :string
add :age, :integer
timestamps()
end
end
end
| 15.785714 | 65 | 0.678733 |
74c129f25b12c47d409c27483a60993ca2bc091e | 3,382 | ex | Elixir | clients/blogger/lib/google_api/blogger/v3/model/comment.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/blogger/lib/google_api/blogger/v3/model/comment.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/blogger/lib/google_api/blogger/v3/model/comment.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 ... | 43.922078 | 139 | 0.679184 |
74c13cdf0bf04d524c611506eac48c3f6a7497f0 | 1,024 | ex | Elixir | lib/nestru/pre_decoder.ex | IvanRublev/Nestru | 4e65cdbeec812de718fc3373c2f1ab92c4fbcca7 | [
"MIT"
] | 15 | 2021-11-10T23:15:29.000Z | 2022-03-26T01:03:38.000Z | lib/nestru/pre_decoder.ex | IvanRublev/Nestru | 4e65cdbeec812de718fc3373c2f1ab92c4fbcca7 | [
"MIT"
] | null | null | null | lib/nestru/pre_decoder.ex | IvanRublev/Nestru | 4e65cdbeec812de718fc3373c2f1ab92c4fbcca7 | [
"MIT"
] | null | null | null | defprotocol Nestru.PreDecoder do
@fallback_to_any true
@doc """
Returns fields map to be decoded into the struct adopting the protocol.
`Nestru` calls this function as the first step of the decoding procedure.
Useful when the input map should be changed to match the field names
of the struct.
The first... | 32 | 90 | 0.75 |
74c17154afb6e8e9e43baad25c2ccc0bc6bc89bb | 257 | ex | Elixir | lib/leafblower.ex | aquap/leafblower | aa5f48dc99efef405af84de072199eaa3b13c02f | [
"Apache-2.0"
] | 31 | 2021-11-28T05:48:48.000Z | 2022-02-03T01:46:17.000Z | lib/leafblower.ex | aquap/leafblower | aa5f48dc99efef405af84de072199eaa3b13c02f | [
"Apache-2.0"
] | 8 | 2021-11-28T06:38:17.000Z | 2021-12-10T01:21:17.000Z | lib/leafblower.ex | aquap/leafblower | aa5f48dc99efef405af84de072199eaa3b13c02f | [
"Apache-2.0"
] | 2 | 2021-11-28T21:09:47.000Z | 2022-01-16T03:51:21.000Z | defmodule Leafblower do
@moduledoc """
Leafblower 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.7 | 66 | 0.758755 |
74c17b63ca2c40dc24222d370908d464dba6605f | 1,419 | exs | Elixir | mix.exs | bgentry/machinery | f4835da5977394b819cde785d52b0b93bf3beae1 | [
"Apache-2.0"
] | null | null | null | mix.exs | bgentry/machinery | f4835da5977394b819cde785d52b0b93bf3beae1 | [
"Apache-2.0"
] | null | null | null | mix.exs | bgentry/machinery | f4835da5977394b819cde785d52b0b93bf3beae1 | [
"Apache-2.0"
] | null | null | null | defmodule Machinery.Mixfile do
use Mix.Project
def project do
[
app: :machinery,
version: "0.16.0",
elixir: "~> 1.5",
start_permanent: Mix.env == :prod,
deps: deps(),
compilers: [:phoenix] ++ Mix.compilers,
description: description(),
package: package(),
so... | 24.894737 | 70 | 0.56871 |
74c19378c6ccc720727e9a43fdbcd58aa110a291 | 2,554 | ex | Elixir | clients/sql_admin/lib/google_api/sql_admin/v1/model/demote_master_my_sql_replica_configuration.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/sql_admin/lib/google_api/sql_admin/v1/model/demote_master_my_sql_replica_configuration.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/sql_admin/lib/google_api/sql_admin/v1/model/demote_master_my_sql_replica_configuration.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... | 41.193548 | 250 | 0.71065 |
74c19b81429282ace475351587578bba2353fc24 | 27 | ex | Elixir | testData/org/elixir_lang/parser_definition/matched_when_operation_parsing_test_case/MatchedMatchOperation.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 1,668 | 2015-01-03T05:54:27.000Z | 2022-03-25T08:01:20.000Z | testData/org/elixir_lang/parser_definition/matched_when_operation_parsing_test_case/MatchedMatchOperation.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 2,018 | 2015-01-01T22:43:39.000Z | 2022-03-31T20:13:08.000Z | testData/org/elixir_lang/parser_definition/matched_when_operation_parsing_test_case/MatchedMatchOperation.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 145 | 2015-01-15T11:37:16.000Z | 2021-12-22T05:51:02.000Z | one = two when three = four | 27 | 27 | 0.703704 |
74c1a9e0bad8e88eef2b64e66ba6998c3c9605dd | 520 | ex | Elixir | lib/surface/directive.ex | EddyLane/surface | 1f13259cbdf81b5a4740ee13349a48f8b6c54bb5 | [
"MIT"
] | 1 | 2020-12-29T10:43:19.000Z | 2020-12-29T10:43:19.000Z | lib/surface/directive.ex | EddyLane/surface | 1f13259cbdf81b5a4740ee13349a48f8b6c54bb5 | [
"MIT"
] | null | null | null | lib/surface/directive.ex | EddyLane/surface | 1f13259cbdf81b5a4740ee13349a48f8b6c54bb5 | [
"MIT"
] | null | null | null | defmodule Surface.Directive do
@callback extract(node :: any, meta :: Surface.AST.Meta.t()) ::
[Surface.AST.Directive.t()]
| Surface.AST.Directive.t()
@callback process(directive :: Surface.AST.Directive.t(), node :: Surface.AST.t()) ::
Surface.AST.t()
@optional_callback... | 26 | 87 | 0.630769 |
74c1af1692e625645f5ca3cdf8ff70cf0315d1c4 | 1,927 | ex | Elixir | clients/classroom/lib/google_api/classroom/v1/model/modify_individual_students_options.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/classroom/lib/google_api/classroom/v1/model/modify_individual_students_options.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/classroom/lib/google_api/classroom/v1/model/modify_individual_students_options.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 36.358491 | 128 | 0.74001 |
74c1dbbde015e3017e062025a5506bc31c96d0d5 | 49,359 | exs | Elixir | test/phoenix_live_view/diff_test.exs | gaslight/phoenix_live_view | 17a4c0790823e3c59eda8fca24a1604240f63811 | [
"MIT"
] | 4,659 | 2019-03-14T20:22:43.000Z | 2022-03-31T20:13:30.000Z | test/phoenix_live_view/diff_test.exs | gaslight/phoenix_live_view | 17a4c0790823e3c59eda8fca24a1604240f63811 | [
"MIT"
] | 1,745 | 2019-03-14T22:04:38.000Z | 2022-03-31T17:26:25.000Z | test/phoenix_live_view/diff_test.exs | gaslight/phoenix_live_view | 17a4c0790823e3c59eda8fca24a1604240f63811 | [
"MIT"
] | 744 | 2019-03-14T20:48:05.000Z | 2022-03-25T14:35:04.000Z | defmodule Phoenix.LiveView.DiffTest do
use ExUnit.Case, async: true
import Phoenix.LiveView.Helpers
alias Phoenix.LiveView.{Socket, Diff, Rendered, Component}
alias Phoenix.LiveComponent.CID
def basic_template(assigns) do
~H"""
<div>
<h2>It's <%= @time %></h2>
<%= @subtitle %>
</div... | 32.051299 | 133 | 0.477421 |
74c1ed92f124b2d1afaee4cd15a60054650d9231 | 5,276 | ex | Elixir | lib/decorator/decorate.ex | ktec/decorator | 2ceda1adc8beea7eb6d712034f9ae8d12ff3e46f | [
"MIT"
] | null | null | null | lib/decorator/decorate.ex | ktec/decorator | 2ceda1adc8beea7eb6d712034f9ae8d12ff3e46f | [
"MIT"
] | null | null | null | lib/decorator/decorate.ex | ktec/decorator | 2ceda1adc8beea7eb6d712034f9ae8d12ff3e46f | [
"MIT"
] | null | null | null | defmodule Decorator.Decorate do
@moduledoc false
defmodule Context do
@moduledoc """
Struct with information about the function that is being decorated.
"""
defstruct name: nil, arity: nil, module: nil, args: nil
end
def on_definition(env, kind, fun, args, guards, body) do
decorators =
... | 26.918367 | 85 | 0.607657 |
74c1fb48265c88065c3aed2f5657e86be6df115f | 598 | ex | Elixir | web/models/comment.ex | gilcierweb/appElixirPhoenix | 4c594b365ddc07e732bd421901620469a49b2395 | [
"MIT"
] | 1 | 2018-04-25T15:03:42.000Z | 2018-04-25T15:03:42.000Z | web/models/comment.ex | gilcierweb/appElixirPhoenix | 4c594b365ddc07e732bd421901620469a49b2395 | [
"MIT"
] | null | null | null | web/models/comment.ex | gilcierweb/appElixirPhoenix | 4c594b365ddc07e732bd421901620469a49b2395 | [
"MIT"
] | null | null | null | defmodule AppElixirPhoenix.Comment do
use AppElixirPhoenix.Web, :model
schema "comments" do
field :name, :string
field :content, :string
belongs_to :post, AppElixirPhoenix.Post, foreign_key: :post_id
timestamps
end
@required_fields ~w(name content post_id)
@optional_fields ~w()
@doc """
... | 23 | 66 | 0.70903 |
74c21497e336cc81b2e64ab084a1a1e0849346d3 | 2,374 | ex | Elixir | priv/templates/phx.gen.auth/reset_password_controller.ex | nickurban/phoenix | 116a0d4660248a09886e80da5e36dc6e395723d5 | [
"MIT"
] | 7 | 2021-01-31T04:51:08.000Z | 2022-01-09T06:59:28.000Z | priv/templates/phx.gen.auth/reset_password_controller.ex | nickurban/phoenix | 116a0d4660248a09886e80da5e36dc6e395723d5 | [
"MIT"
] | 2 | 2022-02-19T07:30:25.000Z | 2022-02-27T14:12:26.000Z | priv/templates/phx.gen.auth/reset_password_controller.ex | nickurban/phoenix | 116a0d4660248a09886e80da5e36dc6e395723d5 | [
"MIT"
] | 2 | 2021-02-06T08:40:23.000Z | 2021-03-20T16:35:47.000Z | defmodule <%= inspect context.web_module %>.<%= inspect Module.concat(schema.web_namespace, schema.alias) %>ResetPasswordController do
use <%= inspect context.web_module %>, :controller
alias <%= inspect context.module %>
plug :get_<%= schema.singular %>_by_reset_password_token when action in [:edit, :update]
... | 39.566667 | 146 | 0.639427 |
74c21895292354de63fcab13ea26fbb350833d5d | 962 | ex | Elixir | clients/app_engine/lib/google_api/app_engine/v1/request_builder.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/app_engine/lib/google_api/app_engine/v1/request_builder.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/app_engine/lib/google_api/app_engine/v1/request_builder.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... | 37 | 77 | 0.764033 |
74c23aa3769ee4e11261dfda45e92765abafcddb | 1,754 | ex | Elixir | lib/tentacat/organizations.ex | sandisk/tentacat | 523791d47d8454e87dc75cf77181b1fc78c125cf | [
"MIT"
] | null | null | null | lib/tentacat/organizations.ex | sandisk/tentacat | 523791d47d8454e87dc75cf77181b1fc78c125cf | [
"MIT"
] | null | null | null | lib/tentacat/organizations.ex | sandisk/tentacat | 523791d47d8454e87dc75cf77181b1fc78c125cf | [
"MIT"
] | 1 | 2018-11-02T15:59:28.000Z | 2018-11-02T15:59:28.000Z | defmodule Tentacat.Organizations do
import Tentacat
alias Tentacat.Client
@doc """
List all public organizations for a user
## Example
Tentacat.Organizations.list "edgurgel"
Tentacat.Organizations.list client, "edgurgel"
More info at: http://developer.github.com/v3/orgs/#list-user-organizati... | 24.704225 | 116 | 0.673888 |
74c2858c86faefd647c6d396afaa81c6b904d9db | 1,017 | ex | Elixir | lib/books/application.ex | nickagliano/books | eec595ed4add9d678278785d9ab10106e1e426d1 | [
"MIT"
] | null | null | null | lib/books/application.ex | nickagliano/books | eec595ed4add9d678278785d9ab10106e1e426d1 | [
"MIT"
] | null | null | null | lib/books/application.ex | nickagliano/books | eec595ed4add9d678278785d9ab10106e1e426d1 | [
"MIT"
] | null | null | null | defmodule Books.Application do
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
use Application
def start(_type, _args) do
children = [
# Start the Ecto repository
Books.Repo,
# Start the Telemetry supervisor
BooksWeb.Te... | 28.25 | 63 | 0.695182 |
74c2de8e772ec375cc56315bf117a225098b2e85 | 1,603 | exs | Elixir | test/smma_test.exs | wuhkuh/Talib | 41b6bb684a87bb3dd60e73fdbf4c0aa6207ba2e0 | [
"MIT"
] | 18 | 2017-12-27T22:23:24.000Z | 2021-09-10T14:08:19.000Z | test/smma_test.exs | wuhkuh/Talib | 41b6bb684a87bb3dd60e73fdbf4c0aa6207ba2e0 | [
"MIT"
] | 6 | 2017-07-29T13:06:52.000Z | 2021-04-11T10:58:36.000Z | test/smma_test.exs | wuhkuh/Talib | 41b6bb684a87bb3dd60e73fdbf4c0aa6207ba2e0 | [
"MIT"
] | 11 | 2018-01-01T16:04:48.000Z | 2021-08-17T02:26:40.000Z | defmodule Talib.SMMATest do
use ExUnit.Case
alias Talib.SMMA
doctest Talib.SMMA
defmodule Fixtures do
def numbers do
[
89, 77, 53, 64, 78, 67, 30, 6, 24, 53,
46, 30, 100, 48, 34, 69, 40, 44, 66, 89
]
end
def numbers_smma_2 do
[
nil, 83.00... | 24.661538 | 66 | 0.588272 |
74c2ee8a76cb84a638926e2420e180186924104a | 4,437 | ex | Elixir | lib/bitcoin/node/storage.ex | coinscript/bitcoinsv-elixir | 2dda03c81edc5662743ed2922abb5b1910d9c09a | [
"Apache-2.0"
] | 2 | 2019-08-12T04:53:57.000Z | 2019-09-03T03:47:33.000Z | lib/bitcoin/node/storage.ex | coinscript/bitcoinsv-elixir | 2dda03c81edc5662743ed2922abb5b1910d9c09a | [
"Apache-2.0"
] | null | null | null | lib/bitcoin/node/storage.ex | coinscript/bitcoinsv-elixir | 2dda03c81edc5662743ed2922abb5b1910d9c09a | [
"Apache-2.0"
] | null | null | null | defmodule Bitcoin.Node.Storage do
@moduledoc """
Handles blocks and transactions persistance.
This module is responsible for logic of storage, engine below should only do simple tasks.
TODO ponder we want validation to be done in the specific blockchain context, which
Storage GenServer could provide (at lea... | 33.360902 | 105 | 0.635339 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.