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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
973abf048f7d25211fe386519f76c88e6a6fc9fe | 611 | ex | Elixir | app/lib/ubg5_web/controllers/navigator_controller.ex | finalclass/ubg5 | 237c51f4a54668cc8164382a3895d9dcf07ae6e0 | [
"MIT"
] | null | null | null | app/lib/ubg5_web/controllers/navigator_controller.ex | finalclass/ubg5 | 237c51f4a54668cc8164382a3895d9dcf07ae6e0 | [
"MIT"
] | 2 | 2021-03-09T13:44:12.000Z | 2021-05-10T05:02:52.000Z | app/lib/ubg5_web/controllers/navigator_controller.ex | finalclass/ubg5 | 237c51f4a54668cc8164382a3895d9dcf07ae6e0 | [
"MIT"
] | null | null | null | defmodule Ubg5Web.NavigatorController do
use Ubg5Web, :controller
alias Ubg5.Bibles
plug(:put_layout, "navigate.html")
def index(conn, params.bible) do
conn = fetch_query_params(conn)
case Map.get(conn.query_params, "verse") do
nil ->
render(conn)
verse ->
search_and_redir... | 23.5 | 83 | 0.680851 |
973ae3898267a597f89f13dd206339a0e8ab4c23 | 1,287 | ex | Elixir | clients/genomics/lib/google_api/genomics/v1/model/cancel_operation_request.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/genomics/lib/google_api/genomics/v1/model/cancel_operation_request.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/genomics/lib/google_api/genomics/v1/model/cancel_operation_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... | 30.642857 | 82 | 0.7669 |
973af5be3f287ac9c97b916ec7e3f3b719d6e62c | 1,471 | exs | Elixir | chatourius/config/config.exs | Dmdv/ElixirPlayground | 02d9e8a7fdd6e8742e200430debc9f0ec7fd28a1 | [
"Apache-2.0"
] | null | null | null | chatourius/config/config.exs | Dmdv/ElixirPlayground | 02d9e8a7fdd6e8742e200430debc9f0ec7fd28a1 | [
"Apache-2.0"
] | null | null | null | chatourius/config/config.exs | Dmdv/ElixirPlayground | 02d9e8a7fdd6e8742e200430debc9f0ec7fd28a1 | [
"Apache-2.0"
] | 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
# General application configuration
config :chatourius,
ecto_repos: [Chatourius.Rep... | 34.209302 | 114 | 0.758668 |
973af80baa9ad75905cf33a54d11f9fda940ba3c | 3,709 | ex | Elixir | clients/dataflow/lib/google_api/dataflow/v1b3/model/work_item_service_state.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | null | null | null | clients/dataflow/lib/google_api/dataflow/v1b3/model/work_item_service_state.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | null | null | null | clients/dataflow/lib/google_api/dataflow/v1b3/model/work_item_service_state.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"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... | 53.753623 | 391 | 0.752224 |
973b06a09c52e4ba97ecb8cb3b5130ffe58330e9 | 2,953 | ex | Elixir | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_k_map_estimation_histogram_bucket.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_k_map_estimation_histogram_bucket.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_k_map_estimation_histogram_bucket.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 ... | 38.855263 | 195 | 0.733491 |
973b221a66fc92cc2d09bef36b2160732b494993 | 1,505 | ex | Elixir | lib/day1.ex | YoLung-Lu/aoc2019 | 07163ace3b05527c0fc639e3f293d88b6becd122 | [
"MIT"
] | null | null | null | lib/day1.ex | YoLung-Lu/aoc2019 | 07163ace3b05527c0fc639e3f293d88b6becd122 | [
"MIT"
] | null | null | null | lib/day1.ex | YoLung-Lu/aoc2019 | 07163ace3b05527c0fc639e3f293d88b6becd122 | [
"MIT"
] | null | null | null | # import Util
defmodule FuelCounter do
def fuelSum(massList) do
for n <- massList, do: fuelFromMass(n)
end
def fuelFromMass(mass) do
cond do
mass > 2 -> div(mass, 3) - 2
true -> 0
end
end
def fuelSumByFunction(massList) do
Enum.each massList, &FuelCounter.fuelFromMass/1
... | 23.888889 | 55 | 0.657807 |
973b33c182d50faf4ac0ea342db0a9b06a230f9b | 142 | ex | Elixir | lib/octopus_web/email/mailer.ex | ubudget/octopus | 84087fbb6bfd5e7611583d7c1098e18d4239f036 | [
"MIT"
] | null | null | null | lib/octopus_web/email/mailer.ex | ubudget/octopus | 84087fbb6bfd5e7611583d7c1098e18d4239f036 | [
"MIT"
] | null | null | null | lib/octopus_web/email/mailer.ex | ubudget/octopus | 84087fbb6bfd5e7611583d7c1098e18d4239f036 | [
"MIT"
] | null | null | null | defmodule OctopusWeb.Mailer do
@moduledoc """
Swoosh Mailer library wrapper for octopus.
"""
use Swoosh.Mailer, otp_app: :octopus
end
| 20.285714 | 44 | 0.732394 |
973b4500e951f15caf38b355aad4731983966f08 | 8,349 | ex | Elixir | lib/oli_web/live/users/user_detail_view.ex | ctipperCMU/oli-torus | 231e8afc9ec6179e6081f327f4ebeb497703bfb8 | [
"MIT"
] | null | null | null | lib/oli_web/live/users/user_detail_view.ex | ctipperCMU/oli-torus | 231e8afc9ec6179e6081f327f4ebeb497703bfb8 | [
"MIT"
] | null | null | null | lib/oli_web/live/users/user_detail_view.ex | ctipperCMU/oli-torus | 231e8afc9ec6179e6081f327f4ebeb497703bfb8 | [
"MIT"
] | null | null | null | defmodule OliWeb.Users.UsersDetailView do
use OliWeb, :surface_view
use OliWeb.Common.Modal
import OliWeb.Common.Properties.Utils
import OliWeb.Common.Utils
alias Oli.Accounts
alias Oli.Accounts.User
alias OliWeb.Accounts.Modals.{
LockAccountModal,
UnlockAccountModal,
DeleteAccountModal,
... | 29.501767 | 183 | 0.583663 |
973b51fc514ef50b14454f4d3557fa1adfaecd01 | 1,292 | exs | Elixir | apps/gitgud_web/config/dev.exs | chulkilee/gitgud | 7a9b1023ff986ca08fb821a5e7658904a6061ba3 | [
"MIT"
] | null | null | null | apps/gitgud_web/config/dev.exs | chulkilee/gitgud | 7a9b1023ff986ca08fb821a5e7658904a6061ba3 | [
"MIT"
] | null | null | null | apps/gitgud_web/config/dev.exs | chulkilee/gitgud | 7a9b1023ff986ca08fb821a5e7658904a6061ba3 | [
"MIT"
] | null | null | null | use Mix.Config
# For development, we disable any cache and enable
# debugging and code reloading.
#
# The watchers configuration can be used to run external
# watchers to your application. For example, we use it
# with brunch.io to recompile .js and .css sources.
config :gitgud_web, GitGud.Web.Endpoint,
http: [port:... | 30.046512 | 170 | 0.676471 |
973b6324a69900fb702fc6464677345eb2d104e1 | 1,675 | ex | Elixir | lib/queerlink_web/endpoint.ex | Queertoo/Queerlink | 0a7726460cda63fc4ab342a2fe1d1155caa3d6d4 | [
"MIT"
] | 38 | 2015-11-07T23:54:26.000Z | 2021-04-09T04:14:25.000Z | lib/queerlink_web/endpoint.ex | Queertoo/Queerlink | 0a7726460cda63fc4ab342a2fe1d1155caa3d6d4 | [
"MIT"
] | 2 | 2015-11-23T15:00:34.000Z | 2015-11-26T09:59:26.000Z | lib/queerlink_web/endpoint.ex | Queertoo/Queerlink | 0a7726460cda63fc4ab342a2fe1d1155caa3d6d4 | [
"MIT"
] | 6 | 2015-11-26T00:25:22.000Z | 2020-03-04T22:13:59.000Z | defmodule QueerlinkWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :queerlink
socket "/socket", QueerlinkWeb.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.
plug Pl... | 28.87931 | 95 | 0.709851 |
973b648a6625b5f59b4d46eca14fde900778eca1 | 2,586 | ex | Elixir | test/fixtures/value.ex | ojizero/rulex | f745624f1b924501ef8856727e0d5dc6b53d7661 | [
"MIT"
] | null | null | null | test/fixtures/value.ex | ojizero/rulex | f745624f1b924501ef8856727e0d5dc6b53d7661 | [
"MIT"
] | null | null | null | test/fixtures/value.ex | ojizero/rulex | f745624f1b924501ef8856727e0d5dc6b53d7661 | [
"MIT"
] | null | null | null | defmodule RulEx.Fixtures.Value do
def test_cases do
[
%{
expr: [:val, "number", 10],
db: %{},
expected: {:ok, 10},
message: "yields stored value correctly if typing is correct"
},
%{
expr: [:val, "string", ""],
db: %{},
expected: {:ok, ""},... | 31.156627 | 83 | 0.486852 |
973b77fa41d785d38f43cfc09540b1155b2a3ba4 | 3,249 | ex | Elixir | clients/machine_learning/lib/google_api/machine_learning/v1/model/google_cloud_ml_v1__auto_scaling.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/machine_learning/lib/google_api/machine_learning/v1/model/google_cloud_ml_v1__auto_scaling.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/machine_learning/lib/google_api/machine_learning/v1/model/google_cloud_ml_v1__auto_scaling.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... | 69.12766 | 1,860 | 0.766697 |
973b8369d2191dabd811979cc11c2da31fb36919 | 1,486 | ex | Elixir | lib/makeup_live_web/views/error_helpers.ex | axelson/makeup_live_format | 122cd01b6b8c89099ede56a8cadea43523d62c51 | [
"MIT"
] | 6 | 2020-01-18T15:57:42.000Z | 2020-07-05T08:28:56.000Z | lib/makeup_live_web/views/error_helpers.ex | axelson/makeup_live_format | 122cd01b6b8c89099ede56a8cadea43523d62c51 | [
"MIT"
] | 2 | 2020-01-17T18:26:24.000Z | 2020-02-04T01:34:48.000Z | lib/makeup_live_web/views/error_helpers.ex | axelson/makeup_live_format | 122cd01b6b8c89099ede56a8cadea43523d62c51 | [
"MIT"
] | 1 | 2020-01-13T17:56:00.000Z | 2020-01-13T17:56:00.000Z | defmodule MakeupLiveWeb.ErrorHelpers do
@moduledoc """
Conveniences for translating and building error messages.
"""
use Phoenix.HTML
@doc """
Generates tag for inlined form input errors.
"""
def error_tag(form, field) do
Enum.map(Keyword.get_values(form.errors, field), fn error ->
content_t... | 33.022222 | 79 | 0.672275 |
973bb43fd253bd6a6ff3cb41d6b1ba902aadbfb2 | 353 | exs | Elixir | learning/adopting_elixir/chapter_9/benchmark/mix.exs | Mdlkxzmcp/various_elixir | c87527b7118a0c74a042073c04d2228025888ddf | [
"MIT"
] | 2 | 2020-01-20T20:15:20.000Z | 2020-02-27T11:08:42.000Z | learning/adopting_elixir/chapter_9/benchmark/mix.exs | Mdlkxzmcp/various_elixir | c87527b7118a0c74a042073c04d2228025888ddf | [
"MIT"
] | null | null | null | learning/adopting_elixir/chapter_9/benchmark/mix.exs | Mdlkxzmcp/various_elixir | c87527b7118a0c74a042073c04d2228025888ddf | [
"MIT"
] | null | null | null | defmodule Benchmark.MixProject do
use Mix.Project
def project do
[
app: :benchmark,
version: "0.1.0",
elixir: "~> 1.6",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
def application do
[
extra_applications: [:logger]
]
end
defp deps do
[{:... | 14.708333 | 42 | 0.541076 |
973c007e7e9047aed2f9447b7dfc4634d115363b | 1,769 | exs | Elixir | config/dev.exs | mammenj/elixir-auction | 94941bb820a221e3917014919d97571784ac9388 | [
"Apache-2.0"
] | null | null | null | config/dev.exs | mammenj/elixir-auction | 94941bb820a221e3917014919d97571784ac9388 | [
"Apache-2.0"
] | null | null | null | config/dev.exs | mammenj/elixir-auction | 94941bb820a221e3917014919d97571784ac9388 | [
"Apache-2.0"
] | null | null | null | import Config
# For development, we disable any cache and enable
# debugging and code reloading.
#
# The watchers configuration can be used to run external
# watchers to your application. For example, we use it
# with esbuild to bundle .js and .css sources.
config :auction_web, AuctionWeb.Endpoint,
# Binding to loop... | 31.589286 | 86 | 0.69022 |
973c0d1afcfd0943805cae8d491c0d97ec95c9db | 2,591 | ex | Elixir | lib/game/channels.ex | stevegrossi/ex_venture | e02d5a63fdb882d92cfb4af3e15f7b48ad7054aa | [
"MIT"
] | 1 | 2019-02-10T10:22:39.000Z | 2019-02-10T10:22:39.000Z | lib/game/channels.ex | stevegrossi/ex_venture | e02d5a63fdb882d92cfb4af3e15f7b48ad7054aa | [
"MIT"
] | null | null | null | lib/game/channels.ex | stevegrossi/ex_venture | e02d5a63fdb882d92cfb4af3e15f7b48ad7054aa | [
"MIT"
] | null | null | null | defmodule Game.Channels do
@moduledoc """
Agent for keeping track of channels in the system
"""
use GenServer
alias Data.Channel
alias Data.Repo
@key :channels
@doc false
def start_link() do
GenServer.start_link(__MODULE__, [], name: __MODULE__)
end
def get(channel) do
_fetch_from_cac... | 18.912409 | 79 | 0.590892 |
973c0fb9455729532d1065868c3a49ee5e95acfc | 1,890 | ex | Elixir | lib/playground/scenario/counters/one.ex | evadne/ets-playground | de7f2e4d512be4de6510c8978c1f0b25d7720df2 | [
"MIT"
] | 27 | 2019-04-10T15:25:21.000Z | 2021-11-22T14:28:56.000Z | lib/playground/scenario/counters/one.ex | evadne/ets-playground | de7f2e4d512be4de6510c8978c1f0b25d7720df2 | [
"MIT"
] | null | null | null | lib/playground/scenario/counters/one.ex | evadne/ets-playground | de7f2e4d512be4de6510c8978c1f0b25d7720df2 | [
"MIT"
] | 2 | 2019-05-07T21:45:14.000Z | 2020-07-15T11:55:17.000Z | defmodule Playground.Scenario.Counters.One do
use Playground.Scenario
def scenario_type do
{:iterations, Stream.map(10..20, &round(:math.pow(2, &1)))}
end
def scenario_banner do
"""
Scenario: Comparison of Counters in ETS vs Atomics
Tasks:
- Sequentially update an ETS counter <count> tim... | 27 | 90 | 0.648677 |
973c376a8286a27383ee39b3e502645980933bf0 | 885 | exs | Elixir | test/ex_polygon/rest/forex/snapshot_all_test.exs | aai/ex_polygon | 3bd6d8d0f1fbe4cd3fa939751c5ff00813eeeba3 | [
"MIT"
] | null | null | null | test/ex_polygon/rest/forex/snapshot_all_test.exs | aai/ex_polygon | 3bd6d8d0f1fbe4cd3fa939751c5ff00813eeeba3 | [
"MIT"
] | null | null | null | test/ex_polygon/rest/forex/snapshot_all_test.exs | aai/ex_polygon | 3bd6d8d0f1fbe4cd3fa939751c5ff00813eeeba3 | [
"MIT"
] | null | null | null | defmodule ExPolygon.Rest.Forex.SnapshotAllTest do
use ExUnit.Case, async: false
use ExVCR.Mock, adapter: ExVCR.Adapter.Hackney
doctest ExPolygon.Rest.HTTPClient
setup_all do
HTTPoison.start()
:ok
end
@api_key System.get_env("POLYGON_API_KEY")
test ".query returns an ok tuple and a list of snaps... | 29.5 | 76 | 0.712994 |
973c4409e9d1a71cac9c6e3374c32be5092a8e0a | 2,486 | ex | Elixir | clients/page_speed_online/lib/google_api/page_speed_online/v5/model/lighthouse_category_v5.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/page_speed_online/lib/google_api/page_speed_online/v5/model/lighthouse_category_v5.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/page_speed_online/lib/google_api/page_speed_online/v5/model/lighthouse_category_v5.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... | 39.460317 | 168 | 0.701529 |
973c8ac350b0502f3f9a62a499875cc25605240e | 804 | ex | Elixir | lib/elixir_fake_im/user_agent.ex | philcallister/elixir-fake-im | e30cf2acd1e60c3f66ec16d234e74502c53c8b6f | [
"MIT"
] | 3 | 2016-05-25T01:58:15.000Z | 2016-06-28T13:07:56.000Z | lib/elixir_fake_im/user_agent.ex | philcallister/elixir-fake-im | e30cf2acd1e60c3f66ec16d234e74502c53c8b6f | [
"MIT"
] | null | null | null | lib/elixir_fake_im/user_agent.ex | philcallister/elixir-fake-im | e30cf2acd1e60c3f66ec16d234e74502c53c8b6f | [
"MIT"
] | null | null | null | defmodule ElixirFakeIm.UserAgent do
def start_link do
Agent.start_link(fn -> %{user_pid: nil, groups: []} end)
end
def get_user(ua) do
Agent.get(ua, &Map.get(&1, :user_pid))
end
def put_user(ua, value) do
Agent.update(ua, &Map.put(&1, :user_pid, value))
end
def get_groups(ua) do
Agent.... | 21.157895 | 60 | 0.608209 |
973c96700117630c006aeef934b7064f2851614e | 6,447 | ex | Elixir | priv/templates/coherence.install/views/coherence/coherence_view_helpers.ex | harmon25/coherence | 5c4f26d3c87f6a16638adf623d041e2723ccf2b8 | [
"MIT"
] | 1 | 2022-03-06T16:30:21.000Z | 2022-03-06T16:30:21.000Z | priv/templates/coherence.install/views/coherence/coherence_view_helpers.ex | ysbaddaden/coherence | 5c4f26d3c87f6a16638adf623d041e2723ccf2b8 | [
"MIT"
] | null | null | null | priv/templates/coherence.install/views/coherence/coherence_view_helpers.ex | ysbaddaden/coherence | 5c4f26d3c87f6a16638adf623d041e2723ccf2b8 | [
"MIT"
] | 2 | 2017-09-22T16:54:36.000Z | 2021-11-09T20:55:58.000Z | defmodule <%= base %>.Coherence.ViewHelpers do
@moduledoc """
Helper functions for Coherence Views.
"""
use Phoenix.HTML
alias Coherence.Config
@seperator {:safe, " | "}
@helpers Module.concat(Application.get_env(:coherence, :module), Router.Helpers)
@recover_link "Forgot your password?"
... | 35.816667 | 122 | 0.686056 |
973ca8d8a7378c94db5f5013e04e101c0c809ef0 | 5,591 | ex | Elixir | lib/vivid/font.ex | jamesotron/vivid | 01a0089384d8daced8f22a97c49e657fc245fb3c | [
"MIT"
] | 26 | 2017-01-03T01:18:38.000Z | 2019-02-21T09:26:20.000Z | lib/vivid/font.ex | jamesotron/vivid | 01a0089384d8daced8f22a97c49e657fc245fb3c | [
"MIT"
] | null | null | null | lib/vivid/font.ex | jamesotron/vivid | 01a0089384d8daced8f22a97c49e657fc245fb3c | [
"MIT"
] | 2 | 2017-03-18T22:45:49.000Z | 2017-05-08T07:24:58.000Z | defmodule Vivid.Font do
alias Vivid.{Hershey, Point, Group, Shape, Font.Char}
@font_vertical_offset 10
@moduledoc """
This module takes characters generated by the Hershey module and converts them
into groups of shapes using the character's specified left and right padding.
Specifically this module only ... | 30.38587 | 140 | 0.223395 |
973d5b781922e6183c159aef97ab2bfc27aa49f3 | 492 | ex | Elixir | lib/generate/add_object.ex | smiyabe/cwmp_ex | 9db322497aa3208b5985ccf496ada5286cde3925 | [
"Artistic-2.0"
] | 3 | 2017-11-29T05:07:35.000Z | 2019-12-18T17:16:41.000Z | lib/generate/add_object.ex | smiyabe/cwmp_ex | 9db322497aa3208b5985ccf496ada5286cde3925 | [
"Artistic-2.0"
] | 1 | 2021-12-02T19:35:28.000Z | 2022-03-29T09:40:52.000Z | lib/generate/add_object.ex | smiyabe/cwmp_ex | 9db322497aa3208b5985ccf496ada5286cde3925 | [
"Artistic-2.0"
] | 2 | 2017-11-29T05:07:30.000Z | 2020-11-10T07:10:42.000Z | defimpl CWMP.Protocol.Generate, for: CWMP.Protocol.Messages.AddObject do
import XmlBuilder
def generate(req) do
if String.last(req.object_name) != ".", do: raise "invalid object_name [#{req.object_name}] - must end in ."
p = [element(:ObjectName, req.object_name)]
p = cond do
req.parameter_key !=... | 32.8 | 112 | 0.660569 |
973d75ad114b7d9ef9d59269cb37f29c9355f7f6 | 3,661 | ex | Elixir | lib/mnemonic.ex | sausman/mnemonic | 2af64f360175e6d1ceab6ff8ae75b2c5931f2a34 | [
"MIT"
] | 16 | 2017-09-15T22:12:23.000Z | 2021-07-16T09:08:14.000Z | lib/mnemonic.ex | sausman/mnemonic | 2af64f360175e6d1ceab6ff8ae75b2c5931f2a34 | [
"MIT"
] | 13 | 2020-01-31T05:05:08.000Z | 2021-08-03T04:32:41.000Z | lib/mnemonic.ex | sausman/mnemonic | 2af64f360175e6d1ceab6ff8ae75b2c5931f2a34 | [
"MIT"
] | 7 | 2017-12-26T06:38:32.000Z | 2021-04-17T19:14:25.000Z | require IEx
defmodule Mnemonic do
@moduledoc """
Documentation for Mnemonic.
"""
@words Mnemonic.Words.all()
@invalid_entropy "Invalid entropy"
@invalid_mnemonic "Invalid mnemonic"
@invalid_checksum "Invalid mnemonic checksum"
def generate(strength \\ 256)
def generate(strength) when rem(strength, ... | 30.508333 | 123 | 0.649549 |
973d9102212bfe94ee3f1f3f2af64647383ae319 | 959 | ex | Elixir | lib/hex_licenses/rule/spdx_listed.ex | Cantido/hex_licenses | 4bb9c1135321fd133c3548eaddefccd2753195c7 | [
"MIT"
] | 4 | 2021-09-14T10:33:57.000Z | 2022-03-03T01:02:02.000Z | lib/hex_licenses/rule/spdx_listed.ex | Cantido/hex_licenses | 4bb9c1135321fd133c3548eaddefccd2753195c7 | [
"MIT"
] | 3 | 2021-09-19T08:06:19.000Z | 2021-09-22T17:28:13.000Z | lib/hex_licenses/rule/spdx_listed.ex | Cantido/hex_licenses | 4bb9c1135321fd133c3548eaddefccd2753195c7 | [
"MIT"
] | null | null | null | # SPDX-FileCopyrightText: 2021 Rosa Richter
#
# SPDX-License-Identifier: MIT
defmodule HexLicenses.Rule.SPDXListed do
@moduledoc """
A `HexLicenses.Rule` that makes sure licenses are listed in the SPDX License List.
"""
@enforce_keys [:spdx_data]
defstruct spdx_data: nil,
failed_licenses: []
d... | 24.589744 | 84 | 0.685089 |
973dc078897c9a0bf3a613e50cbfb9a89b7569b8 | 1,966 | ex | Elixir | lib/mint/core/transport/tcp.ex | vrcca/mint | ba347326a7e507bdadb8a00ec1f3bd24f2817ade | [
"Apache-2.0"
] | null | null | null | lib/mint/core/transport/tcp.ex | vrcca/mint | ba347326a7e507bdadb8a00ec1f3bd24f2817ade | [
"Apache-2.0"
] | null | null | null | lib/mint/core/transport/tcp.ex | vrcca/mint | ba347326a7e507bdadb8a00ec1f3bd24f2817ade | [
"Apache-2.0"
] | null | null | null | defmodule Mint.Core.Transport.TCP do
@moduledoc false
@behaviour Mint.Core.Transport
@transport_opts [
packet: :raw,
mode: :binary,
active: false
]
@default_timeout 30_000
@impl true
def connect(hostname, port, opts) do
hostname = String.to_charlist(hostname)
timeout = Keyword.get(... | 23.129412 | 84 | 0.664802 |
973dc3fffcf643c899c813caecf2022068213e68 | 1,224 | ex | Elixir | lib/small_url_web/live/modal_component.ex | AlexJuca/small-url | 25f4828ac3566a435b15e6b9581e1e1e508d6650 | [
"Apache-2.0"
] | 7 | 2021-06-28T14:43:10.000Z | 2021-09-21T21:00:30.000Z | lib/small_url_web/live/modal_component.ex | AlexJuca/small-url | 25f4828ac3566a435b15e6b9581e1e1e508d6650 | [
"Apache-2.0"
] | 2 | 2021-06-30T21:43:06.000Z | 2021-07-01T16:40:10.000Z | lib/small_url_web/live/modal_component.ex | AlexJuca/small-url | 25f4828ac3566a435b15e6b9581e1e1e508d6650 | [
"Apache-2.0"
] | null | null | null | defmodule SmallUrlWeb.ModalComponent do
use SmallUrlWeb, :live_component
def render(assigns) do
~L"""
<div class="fixed z-40 inset-0"
id="<%= @id %>">
<!-- Modal container -->
<div class="h-screen flex items-center justify-center p-4">
<!-- Overlay -->
<div class="absolut... | 29.853659 | 120 | 0.553105 |
973dcd2b3043ce9fc2acbf5c8f7efbc2544a3077 | 192 | exs | Elixir | streamers/macros.exs | guthb/fp | 2a754adfcf2eb60e80016a23de81fad83993bafe | [
"MIT"
] | null | null | null | streamers/macros.exs | guthb/fp | 2a754adfcf2eb60e80016a23de81fad83993bafe | [
"MIT"
] | null | null | null | streamers/macros.exs | guthb/fp | 2a754adfcf2eb60e80016a23de81fad83993bafe | [
"MIT"
] | null | null | null | defmodule MyMacros do
defmacro my_unless(expr, opts) do
quote do
if (!unquote(expr), unquote(opts))
end
end
end
# my_unless 1 + 2 + != 3 do
# IO.puts "it is false"
# end
| 14.769231 | 40 | 0.614583 |
973def893393b4cc016416308fec2ffe9d27cf08 | 6,060 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/api/user_role_permission_groups.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/api/user_role_permission_groups.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/api/user_role_permission_groups.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 ... | 39.096774 | 187 | 0.641419 |
973e301478f2c4a1d84eceef4575f39c921ab8cb | 303 | ex | Elixir | lib/open_telemetry/honeycomb/http/write_key_missing_backend.ex | software-opal/opentelemetry_honeycomb | 2393caa4025e8250549047d2975c00da84726b0b | [
"Apache-2.0"
] | null | null | null | lib/open_telemetry/honeycomb/http/write_key_missing_backend.ex | software-opal/opentelemetry_honeycomb | 2393caa4025e8250549047d2975c00da84726b0b | [
"Apache-2.0"
] | 11 | 2020-04-25T06:15:09.000Z | 2022-02-22T23:11:17.000Z | lib/open_telemetry/honeycomb/http/write_key_missing_backend.ex | software-opal/opentelemetry_honeycomb | 2393caa4025e8250549047d2975c00da84726b0b | [
"Apache-2.0"
] | 5 | 2020-09-28T10:51:18.000Z | 2021-03-16T01:29:19.000Z | defmodule OpenTelemetry.Honeycomb.Http.WriteKeyMissingBackend do
@moduledoc """
A no-op HTTP back end.
Installed instead of your configured back end if write_key is nil.
"""
@behaviour OpenTelemetry.Honeycomb.Http
@impl true
def request(_, _, _, _, _) do
{:ok, 204, [], ""}
end
end
| 23.307692 | 68 | 0.693069 |
973e4b464941718fc35c517b758f9aa83d789fb9 | 238 | exs | Elixir | priv/repo/migrations/20170720025341_create_npcs.exs | stevegrossi/ex_venture | e02d5a63fdb882d92cfb4af3e15f7b48ad7054aa | [
"MIT"
] | 2 | 2019-05-14T11:36:44.000Z | 2020-07-01T08:54:04.000Z | priv/repo/migrations/20170720025341_create_npcs.exs | nickwalton/ex_venture | d8ff1b0181db03f9ddcb7610ae7ab533feecbfbb | [
"MIT"
] | null | null | null | priv/repo/migrations/20170720025341_create_npcs.exs | nickwalton/ex_venture | d8ff1b0181db03f9ddcb7610ae7ab533feecbfbb | [
"MIT"
] | 1 | 2021-01-29T14:12:40.000Z | 2021-01-29T14:12:40.000Z | defmodule Data.Repo.Migrations.CreateNpcs do
use Ecto.Migration
def change do
create table(:npcs) do
add :name, :string, null: false
add :room_id, references(:rooms), null: false
timestamps()
end
end
end
| 18.307692 | 51 | 0.663866 |
973e58bcca746596448b01bab76fc03736b54b05 | 26,583 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/creative.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/creative.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/creative.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... | 105.071146 | 906 | 0.739006 |
973e981fc723a20bc32603d4bb9a11463514ac65 | 6,246 | ex | Elixir | lib/MOM/channel.ex | serverboards/elixir-mom | 840656bda40abf13a1e0058b780d2afc7f1efd5e | [
"Apache-2.0"
] | 2 | 2017-12-19T00:15:42.000Z | 2018-02-10T23:41:22.000Z | lib/MOM/channel.ex | serverboards/elixir-mom | 840656bda40abf13a1e0058b780d2afc7f1efd5e | [
"Apache-2.0"
] | null | null | null | lib/MOM/channel.ex | serverboards/elixir-mom | 840656bda40abf13a1e0058b780d2afc7f1efd5e | [
"Apache-2.0"
] | null | null | null | require Logger
defprotocol MOM.Channel do
@moduledoc ~S"""
A channel of communication. Subscribers are functions that will be
called when somebody sends a message.
There are several error conditions:
* If a function raises an exception it is sent to the `:invalid` channel,
* if there are no subscriber ... | 27.76 | 99 | 0.641851 |
973eb00435384dad90978ab39d0ce12cddf8438a | 4,159 | ex | Elixir | clients/jobs/lib/google_api/jobs/v4/model/search_jobs_response.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/jobs/lib/google_api/jobs/v4/model/search_jobs_response.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/jobs/lib/google_api/jobs/v4/model/search_jobs_response.ex | dazuma/elixir-google-api | 6a9897168008efe07a6081d2326735fe332e522c | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 61.161765 | 573 | 0.735994 |
973ece4c00c5edbe14dbfb5e41aba429f4b125d5 | 752 | exs | Elixir | test/yggdrasil/transformer_test.exs | jsangilve/yggdrasil | a2ee905e877b6a9d918d8858153a01aadf2d5d63 | [
"MIT"
] | null | null | null | test/yggdrasil/transformer_test.exs | jsangilve/yggdrasil | a2ee905e877b6a9d918d8858153a01aadf2d5d63 | [
"MIT"
] | null | null | null | test/yggdrasil/transformer_test.exs | jsangilve/yggdrasil | a2ee905e877b6a9d918d8858153a01aadf2d5d63 | [
"MIT"
] | null | null | null | defmodule Yggdrasil.TransformerTest do
use ExUnit.Case, async: true
alias Yggdrasil.Channel
defmodule TransformerTest do
use Yggdrasil.Transformer
def decode(channel, message) do
{:ok, {channel, message}}
end
def encode(channel, message) do
{:ok, "#{inspect channel} - #{message}"}
... | 23.5 | 71 | 0.658245 |
973ed7cdc68e9b33c7d2d49c41327cae0a762ba0 | 1,463 | ex | Elixir | lib/check/warning/cl_inspect.ex | kapilpipaliya/clouseau | 6672f2f48b149650906b2b5327a0562a93983fd4 | [
"MIT"
] | 7 | 2017-10-24T00:09:39.000Z | 2022-03-18T21:19:48.000Z | lib/check/warning/cl_inspect.ex | kapilpipaliya/clouseau | 6672f2f48b149650906b2b5327a0562a93983fd4 | [
"MIT"
] | 2 | 2018-11-23T21:35:26.000Z | 2018-12-31T23:47:22.000Z | lib/check/warning/cl_inspect.ex | kapilpipaliya/clouseau | 6672f2f48b149650906b2b5327a0562a93983fd4 | [
"MIT"
] | 2 | 2018-11-22T06:48:56.000Z | 2018-12-31T23:37:58.000Z | if Code.ensure_loaded?(Credo.Check) do
defmodule Clouseau.Check.Warning.ClInspect do
@moduledoc """
Cl.inspect is a IO.inspect enhancement meant for debugging and testing
session. Usage in production code is discuraged because of the extra debugging
stuff it adds in output and the extra processi... | 33.25 | 112 | 0.678742 |
973ed83c5f140800ece7931f6e8bcaeae0eb4857 | 3,336 | ex | Elixir | lib/cldr/backend/compiler.ex | tcitworld/cldr_dates_times | 4b2cff026b135caf840c471c42a0d27c4953e2e4 | [
"Apache-2.0"
] | null | null | null | lib/cldr/backend/compiler.ex | tcitworld/cldr_dates_times | 4b2cff026b135caf840c471c42a0d27c4953e2e4 | [
"Apache-2.0"
] | null | null | null | lib/cldr/backend/compiler.ex | tcitworld/cldr_dates_times | 4b2cff026b135caf840c471c42a0d27c4953e2e4 | [
"Apache-2.0"
] | null | null | null | defmodule Cldr.DateTime.Compiler do
@moduledoc """
Tokenizes and parses `Date`, `Time` and `DateTime` format strings.
During compilation, each of the date, time and datetime format
strings defined in CLDR are compiled into a list of
function bodies that are then grafted onto the function head
`format/3` in... | 28.271186 | 83 | 0.676559 |
973edd1513526060dea8b77f08916df82d2c7a1f | 610 | ex | Elixir | examples/lib/breadcrumbs.ex | omohokcoj/x_component | 0f51d78b80b7d54d238b7d0c2c3c2f93b9320108 | [
"MIT"
] | 53 | 2020-02-09T16:34:46.000Z | 2021-04-01T17:48:26.000Z | examples/lib/breadcrumbs.ex | omohokcoj/x_component | 0f51d78b80b7d54d238b7d0c2c3c2f93b9320108 | [
"MIT"
] | 1 | 2020-03-11T03:22:52.000Z | 2020-03-11T03:22:52.000Z | examples/lib/breadcrumbs.ex | omohokcoj/x_component | 0f51d78b80b7d54d238b7d0c2c3c2f93b9320108 | [
"MIT"
] | 1 | 2020-02-09T16:34:49.000Z | 2020-02-09T16:34:49.000Z | defmodule Breadcrumbs do
use X.Component,
assigns: %{
:crumbs => list()
},
template: ~X"""
<nav
:attrs="@attrs"
aria-label="breadcrumb"
>
<ol class="breadcrumb">
<li
x-for="item <- crumbs"
:class=[active: item.active]
class="breadcrumb-... | 20.333333 | 40 | 0.432787 |
973eddd8c05456c9e4911f8e9789ea9fed8738f7 | 2,206 | ex | Elixir | clients/content/lib/google_api/content/v21/model/shipment_invoice.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v21/model/shipment_invoice.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/content/lib/google_api/content/v21/model/shipment_invoice.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... | 37.389831 | 248 | 0.734814 |
973f1b34a37ba338751b300aa268f4dee5fb99d7 | 2,631 | exs | Elixir | test/parser_test.exs | chgeuer/ex_eval_arm | 93fc49280f7ee32cdcc842d3cfdb7be09f15a124 | [
"MIT"
] | null | null | null | test/parser_test.exs | chgeuer/ex_eval_arm | 93fc49280f7ee32cdcc842d3cfdb7be09f15a124 | [
"MIT"
] | null | null | null | test/parser_test.exs | chgeuer/ex_eval_arm | 93fc49280f7ee32cdcc842d3cfdb7be09f15a124 | [
"MIT"
] | null | null | null | defmodule Microsoft.Azure.TemplateLanguageExpressions.TLEParser.Test do
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
alias Microsoft.Azure.TemplateLanguageExpressions.{TLEParser, Function}
use ExUnit.Case
defp parse(input), do: input |> TLEParser.arm() |> unwrap
defp unwrap({:ok... | 30.952941 | 198 | 0.478145 |
973f366547b10a78cc64d7dfb9e9eb930d1f659c | 906 | ex | Elixir | clients/cloud_resource_manager/lib/google_api/cloud_resource_manager/v2/metadata.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/cloud_resource_manager/lib/google_api/cloud_resource_manager/v2/metadata.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/cloud_resource_manager/lib/google_api/cloud_resource_manager/v2/metadata.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # 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.555556 | 74 | 0.764901 |
973f430de7f7d91fc06ec6b957096e067f7c6e48 | 11,012 | ex | Elixir | lib/glimesh_web/controllers/gct_controller.ex | DeeRock94/glimesh.tv | e4517e4e3b03f98a3cab2d16b82f365e3b23fd9d | [
"MIT"
] | null | null | null | lib/glimesh_web/controllers/gct_controller.ex | DeeRock94/glimesh.tv | e4517e4e3b03f98a3cab2d16b82f365e3b23fd9d | [
"MIT"
] | null | null | null | lib/glimesh_web/controllers/gct_controller.ex | DeeRock94/glimesh.tv | e4517e4e3b03f98a3cab2d16b82f365e3b23fd9d | [
"MIT"
] | null | null | null | defmodule GlimeshWeb.GctController do
use GlimeshWeb, :controller
alias Glimesh.Accounts
alias Glimesh.ChannelCategories
alias Glimesh.ChannelLookups
alias Glimesh.CommunityTeam
alias Glimesh.Payments
alias Glimesh.Streams
action_fallback GlimeshWeb.GCTFallbackController
plug :put_layout, "gct-side... | 29.522788 | 100 | 0.625227 |
973f68e24026b436aaec24d6e7e4812e20d981ba | 233 | ex | Elixir | dh11_live_view_firware/lib/dh11_live_view_firware.ex | ayarhlaine/dh11_live_view | e52aebc14d7667772bd314f0a147347be0afb599 | [
"MIT"
] | null | null | null | dh11_live_view_firware/lib/dh11_live_view_firware.ex | ayarhlaine/dh11_live_view | e52aebc14d7667772bd314f0a147347be0afb599 | [
"MIT"
] | null | null | null | dh11_live_view_firware/lib/dh11_live_view_firware.ex | ayarhlaine/dh11_live_view | e52aebc14d7667772bd314f0a147347be0afb599 | [
"MIT"
] | null | null | null | defmodule Dh11LiveViewFirware do
@moduledoc """
Documentation for Dh11LiveViewFirware.
"""
@doc """
Hello world.
## Examples
iex> Dh11LiveViewFirware.hello
:world
"""
def hello do
:world
end
end
| 12.263158 | 40 | 0.635193 |
973f868f7912eb52e63d7870c0b629441bd99b56 | 32,883 | ex | Elixir | lib/mix/lib/releases/runtime/control.ex | heymackey/distillery | 3f1f00d9093931737eb0e5bafa8a3fde455620f4 | [
"MIT"
] | null | null | null | lib/mix/lib/releases/runtime/control.ex | heymackey/distillery | 3f1f00d9093931737eb0e5bafa8a3fde455620f4 | [
"MIT"
] | null | null | null | lib/mix/lib/releases/runtime/control.ex | heymackey/distillery | 3f1f00d9093931737eb0e5bafa8a3fde455620f4 | [
"MIT"
] | null | null | null | defmodule Mix.Releases.Runtime.Control do
@moduledoc """
This module defines the tooling for interacting with nodes, as well
as other utility functions of use.
"""
use Artificery
require Record
rec = Record.extract(:etop_proc_info, from_lib: "runtime_tools/include/observer_backend.hrl")
Record.defreco... | 28.544271 | 133 | 0.577745 |
973fd88299a7d0913308ca41a897a496d25011cc | 615 | exs | Elixir | test/surgex/data_pipe/foreign_data_wrapper_test.exs | surgeventures/surgex | b3acdd6a9a010c26f0081b9cb23aeb072459be30 | [
"MIT"
] | 10 | 2017-09-15T08:55:48.000Z | 2021-07-08T09:26:24.000Z | test/surgex/data_pipe/foreign_data_wrapper_test.exs | surgeventures/surgex | b3acdd6a9a010c26f0081b9cb23aeb072459be30 | [
"MIT"
] | 17 | 2017-07-24T11:27:22.000Z | 2022-01-24T22:28:18.000Z | test/surgex/data_pipe/foreign_data_wrapper_test.exs | surgeventures/surgex | b3acdd6a9a010c26f0081b9cb23aeb072459be30 | [
"MIT"
] | 2 | 2018-04-12T15:01:00.000Z | 2018-05-27T12:14:34.000Z | defmodule Surgex.DataPipe.ForeignDataWrapperTest do
use Surgex.DataCase
import ExUnit.CaptureLog
alias Surgex.DataPipe.ForeignDataWrapper
alias Surgex.{
ForeignFactory,
ForeignUser
}
@tag transaction: false
test "successfully connects to foreign repo" do
assert capture_log(fn ->
... | 25.625 | 74 | 0.704065 |
973fe165485df72a1cec1f4bd3fa9012105a79bd | 104 | exs | Elixir | misc/http_request.exs | feihong/elixir-examples | dda6128f729199dad21220925df3bae241911fbd | [
"Apache-2.0"
] | null | null | null | misc/http_request.exs | feihong/elixir-examples | dda6128f729199dad21220925df3bae241911fbd | [
"Apache-2.0"
] | null | null | null | misc/http_request.exs | feihong/elixir-examples | dda6128f729199dad21220925df3bae241911fbd | [
"Apache-2.0"
] | null | null | null | HTTPoison.start
res = HTTPoison.get! "http://ipecho.net/plain"
IO.puts "Your IP address is #{res.body}"
| 26 | 46 | 0.721154 |
97404cc68724ca26de01a3af563b80635ee85a96 | 605 | exs | Elixir | web_finngen_r8/priv/repo/migrations/20190812090720_create_cox_hrs.exs | vincent-octo/risteys | 5bb1e70b78988770048b91b42fad025faf98d84a | [
"MIT"
] | null | null | null | web_finngen_r8/priv/repo/migrations/20190812090720_create_cox_hrs.exs | vincent-octo/risteys | 5bb1e70b78988770048b91b42fad025faf98d84a | [
"MIT"
] | null | null | null | web_finngen_r8/priv/repo/migrations/20190812090720_create_cox_hrs.exs | vincent-octo/risteys | 5bb1e70b78988770048b91b42fad025faf98d84a | [
"MIT"
] | null | null | null | defmodule Risteys.Repo.Migrations.CreateCoxHrs do
use Ecto.Migration
def change do
create table(:cox_hrs) do
add :hr, :float, null: false
add :ci_min, :float, null: false
add :ci_max, :float, null: false
add :pvalue, :float, null: false
add :n_individuals, :integer, null: false
... | 30.25 | 83 | 0.677686 |
974060249dac07753c07e4a7c41b1d49681deff7 | 50 | exs | Elixir | test/chatops_rpc_test.exs | keathley/chatops_rpc | 028dbc564b9e13a65b933f4a7541a539611ede6e | [
"MIT"
] | 7 | 2020-03-04T20:18:57.000Z | 2022-02-28T09:25:07.000Z | test/chatops_rpc_test.exs | keathley/chatops_rpc | 028dbc564b9e13a65b933f4a7541a539611ede6e | [
"MIT"
] | 43 | 2020-04-13T10:45:29.000Z | 2022-03-23T10:42:21.000Z | test/chatops_rpc_test.exs | keathley/chatops_rpc | 028dbc564b9e13a65b933f4a7541a539611ede6e | [
"MIT"
] | null | null | null | defmodule ChatopsRPCTest do
use ExUnit.Case
end
| 12.5 | 27 | 0.82 |
974062bf1393c600b53d3847b6030c094afb7efd | 1,757 | exs | Elixir | examples/lambda.exs | naramore/ivy | 171c81a23e0657088c6c5156fb181f58313c03d7 | [
"MIT"
] | null | null | null | examples/lambda.exs | naramore/ivy | 171c81a23e0657088c6c5156fb181f58313c03d7 | [
"MIT"
] | null | null | null | examples/lambda.exs | naramore/ivy | 171c81a23e0657088c6c5156fb181f58313c03d7 | [
"MIT"
] | null | null | null | defmodule Ivy.Examples.Lambda do
use Ivy
defna find(x, [[y, :-, o] | _], o) do
project [x, y] do
unify(x == y, true)
end
end
defna find(x, [_ | c], o), do: find(x, c, o)
def typed(c, x, t) do
conda do
[lvar(x), find(x, c, t)]
matche [c, x, t] do
[_, [[y], :>>, a], [s, :... | 19.965909 | 75 | 0.36938 |
97406f7dcd63e0d4ddcdcfb0b7045e10a9bda95e | 2,184 | ex | Elixir | clients/recommendation_engine/lib/google_api/recommendation_engine/v1beta1/model/google_cloud_recommendationengine_v1beta1_catalog_item_level_config.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_catalog_item_level_config.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_catalog_item_level_config.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.315789 | 221 | 0.759615 |
9740a2b92098bd212e1c756f2bc15eb8f6a0e00f | 3,028 | ex | Elixir | lib/file_presenter/watcher.ex | altyaper/live-code | f935c41c0ed198a8eb49b99dc2d45d57e6f31e65 | [
"MIT"
] | null | null | null | lib/file_presenter/watcher.ex | altyaper/live-code | f935c41c0ed198a8eb49b99dc2d45d57e6f31e65 | [
"MIT"
] | 3 | 2020-07-17T06:07:38.000Z | 2021-05-09T02:50:05.000Z | lib/file_presenter/watcher.ex | echavezNS/live-code | f935c41c0ed198a8eb49b99dc2d45d57e6f31e65 | [
"MIT"
] | null | null | null | defmodule FilePresenter.Watcher do
use GenServer
@patterns [
~r{components/.*$},
~r{assets/.*$},
~r{lib/.*$},
~r{.babelrc$},
~r{index.html$},
~r{package.json$},
~r{README.md$},
~r{webpack.config.js$}
]
def get_tree() do
GenServer.call(__MODULE__, :tree)
end
... | 28.037037 | 92 | 0.622853 |
9740a88e459095dd9421d51b6904925d6ce7fac3 | 1,203 | ex | Elixir | lib/cforum_web/views/admin/search_section_view.ex | MatthiasApsel/cforum_ex | 52c621a583182d82692b74694b0b2792ac23b8ff | [
"MIT"
] | null | null | null | lib/cforum_web/views/admin/search_section_view.ex | MatthiasApsel/cforum_ex | 52c621a583182d82692b74694b0b2792ac23b8ff | [
"MIT"
] | null | null | null | lib/cforum_web/views/admin/search_section_view.ex | MatthiasApsel/cforum_ex | 52c621a583182d82692b74694b0b2792ac23b8ff | [
"MIT"
] | null | null | null | defmodule CforumWeb.Admin.SearchSectionView do
use CforumWeb, :view
alias Cforum.Helpers
alias CforumWeb.Views.ViewHelpers
alias CforumWeb.Views.ViewHelpers.Path
alias CforumWeb.ErrorHelpers
def page_title(:index, _), do: gettext("administrate search sections")
def page_title(action, _) when action in ... | 40.1 | 93 | 0.730673 |
9740df661945b29d4fd98b761ca1a5a71e77ab17 | 1,266 | ex | Elixir | lib/lab42/state_machine/types.ex | RobertDober/lab42_simple_state_machine | 947c092212fefea18c512a881c7ff25a898b9177 | [
"Apache-2.0"
] | null | null | null | lib/lab42/state_machine/types.ex | RobertDober/lab42_simple_state_machine | 947c092212fefea18c512a881c7ff25a898b9177 | [
"Apache-2.0"
] | null | null | null | lib/lab42/state_machine/types.ex | RobertDober/lab42_simple_state_machine | 947c092212fefea18c512a881c7ff25a898b9177 | [
"Apache-2.0"
] | null | null | null | defmodule Lab42.StateMachine.Types do
@moduledoc false
defmacro __using__(_opts \\ []) do
quote do
@type maybe(a_type) :: a_type | nil
@type ok_t :: {atom(), list(), any()}
@type error_t :: {:error, list()|String.t, state_t()}
@type result_t :: ok_t() | error_t()
@type empty_t ... | 37.235294 | 111 | 0.560032 |
97411c17c4bb420b83caa1ef73bc6582ac3bae0c | 1,803 | ex | Elixir | day02/elixir/aoc.ex | lexa7979/aoc-2021 | 37fdb32d810b44aaebd5fd7e889daf22ff605213 | [
"MIT"
] | null | null | null | day02/elixir/aoc.ex | lexa7979/aoc-2021 | 37fdb32d810b44aaebd5fd7e889daf22ff605213 | [
"MIT"
] | null | null | null | day02/elixir/aoc.ex | lexa7979/aoc-2021 | 37fdb32d810b44aaebd5fd7e889daf22ff605213 | [
"MIT"
] | null | null | null | defmodule AOC do
def start do
IO.puts "Elixir"
if System.get_env("part") == "part1" do
readlines() |> getSolutionPart1() |> IO.puts
else
readlines() |> getSolutionPart2() |> IO.puts
end
end
def getSolutionPart1(list) do
parsed = parseCommands(list)
getHorizontal(parsed) * getD... | 26.910448 | 89 | 0.590682 |
97414a0eebe33ce4e340d3038c8141994233c6b7 | 1,812 | ex | Elixir | clients/plus_domains/lib/google_api/plus_domains/v1/model/comment_actor_client_specific_actor_info.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/plus_domains/lib/google_api/plus_domains/v1/model/comment_actor_client_specific_actor_info.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/plus_domains/lib/google_api/plus_domains/v1/model/comment_actor_client_specific_actor_info.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 35.529412 | 181 | 0.770971 |
9741530ce8592b96c18650f6e6f62d11458881ec | 1,741 | ex | Elixir | clients/blogger/lib/google_api/blogger/v3/model/pageviews.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/blogger/lib/google_api/blogger/v3/model/pageviews.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/blogger/lib/google_api/blogger/v3/model/pageviews.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... | 32.849057 | 134 | 0.705916 |
97418e28ed8d2a553c9fc6dc30366d4ec98ff9b5 | 4,977 | ex | Elixir | lib/mix/lib/mix/tasks/compile.ex | steven-solomon/elixir | ee83248b8dd78ad67ef1282efc791006e8712d9e | [
"Apache-2.0"
] | 1 | 2019-10-11T01:36:26.000Z | 2019-10-11T01:36:26.000Z | lib/mix/lib/mix/tasks/compile.ex | hiro-riveros/elixir | c6da1cfaa83e420726be25617440fc09f118de52 | [
"Apache-2.0"
] | 1 | 2019-04-25T12:52:49.000Z | 2019-04-25T13:27:31.000Z | lib/mix/lib/mix/tasks/compile.ex | hiro-riveros/elixir | c6da1cfaa83e420726be25617440fc09f118de52 | [
"Apache-2.0"
] | null | null | null | defmodule Mix.Tasks.Compile do
use Mix.Task.Compiler
@shortdoc "Compiles source files"
@moduledoc """
A meta task that compiles source files.
It simply runs the compilers registered in your project and returns
a tuple with the compilation status and a list of diagnostics.
## Configuration
* `:com... | 27.804469 | 90 | 0.642757 |
9741a7c27fec0aba7329d6f4a70f6bcb66d7dd79 | 171 | ex | Elixir | ws_peer/lib/ws_peer_web/router.ex | pastleo/bazaar | 422aefb7a4b6de720812689c57fc1d64a4204678 | [
"MIT"
] | 8 | 2019-05-09T05:30:17.000Z | 2020-12-27T12:17:55.000Z | ws_peer/lib/ws_peer_web/router.ex | pastleo/bazaar | 422aefb7a4b6de720812689c57fc1d64a4204678 | [
"MIT"
] | 11 | 2019-05-05T15:48:26.000Z | 2019-06-09T01:44:22.000Z | ws_peer/lib/ws_peer_web/router.ex | pastleo/bazaar | 422aefb7a4b6de720812689c57fc1d64a4204678 | [
"MIT"
] | null | null | null | defmodule WsPeerWeb.Router do
use WsPeerWeb, :router
pipeline :api do
plug :accepts, ["json"]
end
scope "/api", WsPeerWeb do
pipe_through :api
end
end
| 14.25 | 29 | 0.672515 |
9741ce2b0cdc972a7f36a07e09728e8510add143 | 711 | ex | Elixir | lib/elastic/aws.ex | hpaul/elastic | fd7ec5084d8f1fc3b8e572ae889fdca33a47014b | [
"MIT"
] | null | null | null | lib/elastic/aws.ex | hpaul/elastic | fd7ec5084d8f1fc3b8e572ae889fdca33a47014b | [
"MIT"
] | null | null | null | lib/elastic/aws.ex | hpaul/elastic | fd7ec5084d8f1fc3b8e572ae889fdca33a47014b | [
"MIT"
] | null | null | null | defmodule Elastic.AWS do
@moduledoc false
def enabled? do
settings()[:enabled]
end
def sign_url(method, url, headers, body) do
AWSAuth.sign_url(
settings().access_key_id,
settings().secret_access_key,
to_string(method),
url,
settings().region,
"es",
process_hea... | 20.911765 | 48 | 0.624473 |
9741f4750195e935f94d9098647740684fda53a6 | 5,716 | ex | Elixir | lib/encoding.ex | ojizero/rulex | f745624f1b924501ef8856727e0d5dc6b53d7661 | [
"MIT"
] | null | null | null | lib/encoding.ex | ojizero/rulex | f745624f1b924501ef8856727e0d5dc6b53d7661 | [
"MIT"
] | null | null | null | lib/encoding.ex | ojizero/rulex | f745624f1b924501ef8856727e0d5dc6b53d7661 | [
"MIT"
] | null | null | null | defmodule RulEx.Encoding do
@moduledoc """
This behaviour defines how to translate RulEx expressions into any
encoding formats your application may want/need, e.g. converting
them into JSON values.
This is useful when you want to store RulEx expressions into database
and/or if you want to transfer the rule... | 32.477273 | 168 | 0.618614 |
9741f9be051b2b326374a1b15fbb620829a72a4d | 408 | exs | Elixir | priv/repo/migrations/20180706114458_create_user_activity_logs.exs | coderplanets/coderplanets_server | 3663e56340d6d050e974c91f7e499d8424fc25e9 | [
"Apache-2.0"
] | 240 | 2018-11-06T09:36:54.000Z | 2022-02-20T07:12:36.000Z | priv/repo/migrations/20180706114458_create_user_activity_logs.exs | coderplanets/coderplanets_server | 3663e56340d6d050e974c91f7e499d8424fc25e9 | [
"Apache-2.0"
] | 363 | 2018-07-11T03:38:14.000Z | 2021-12-14T01:42:40.000Z | priv/repo/migrations/20180706114458_create_user_activity_logs.exs | mydearxym/mastani_server | f24034a4a5449200165cf4a547964a0961793eab | [
"Apache-2.0"
] | 22 | 2019-01-27T11:47:56.000Z | 2021-02-28T13:17:52.000Z | defmodule GroupherServer.Repo.Migrations.CreateUserActivityLogs do
use Ecto.Migration
def change do
create table(:user_activity_logs) do
add(:source_id, :string)
add(:source_title, :string)
add(:source_type, :string)
add(:user_id, references(:users, on_delete: :nothing), null: false)
... | 24 | 73 | 0.693627 |
9742371cd4fe7b2fa620a06608796a984643bdb2 | 1,414 | ex | Elixir | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v2beta1/model/security_context.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v2beta1/model/security_context.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v2beta1/model/security_context.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | 1 | 2018-07-28T20:50:50.000Z | 2018-07-28T20:50:50.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 30.085106 | 87 | 0.756011 |
974245db29078d783c49b71b4fe238ab158f5c34 | 1,952 | exs | Elixir | elixir/mix.exs | hogiyogi597/web-homework | d394458b7e0761301451ed51f69fd6a9629fba76 | [
"MIT"
] | null | null | null | elixir/mix.exs | hogiyogi597/web-homework | d394458b7e0761301451ed51f69fd6a9629fba76 | [
"MIT"
] | null | null | null | elixir/mix.exs | hogiyogi597/web-homework | d394458b7e0761301451ed51f69fd6a9629fba76 | [
"MIT"
] | null | null | null | defmodule Homework.MixProject do
use Mix.Project
def project do
[
app: :homework,
version: "0.1.0",
elixir: "~> 1.10",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix, :gettext] ++ Mix.compilers(),
start_permanent: Mix.env() == :prod,
aliases: aliases(),
... | 26.739726 | 84 | 0.563012 |
97426d4a66cb3a502d43ffa1e9512882a95c35d4 | 247 | ex | Elixir | lib/yacco.ex | rengel-de/yacco | b8714165d2d1ace07f4116719b54e8ea077c3587 | [
"Apache-2.0"
] | null | null | null | lib/yacco.ex | rengel-de/yacco | b8714165d2d1ace07f4116719b54e8ea077c3587 | [
"Apache-2.0"
] | null | null | null | lib/yacco.ex | rengel-de/yacco | b8714165d2d1ace07f4116719b54e8ea077c3587 | [
"Apache-2.0"
] | null | null | null | defmodule Yacco do
@moduledoc """
Yacco 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
| 24.7 | 66 | 0.748988 |
974293854a75dd3d24998d19acc9990f5ab20e9f | 2,055 | ex | Elixir | lib/firmware/uart_detector.ex | bahanni/custom_rpi4 | ddefa85d30bacaae40151a63a9a0ebbf4ad30ed5 | [
"MIT"
] | null | null | null | lib/firmware/uart_detector.ex | bahanni/custom_rpi4 | ddefa85d30bacaae40151a63a9a0ebbf4ad30ed5 | [
"MIT"
] | null | null | null | lib/firmware/uart_detector.ex | bahanni/custom_rpi4 | ddefa85d30bacaae40151a63a9a0ebbf4ad30ed5 | [
"MIT"
] | null | null | null | defmodule FarmbotOS.Firmware.UARTDetector do
alias FarmbotOS.Firmware.UARTCoreSupport, as: Support
alias FarmbotOS.Asset
require FarmbotOS.Logger
@failure "UNABLE TO SELECT FARMDUINO! Please connect farmduino or set a valid firmware path."
@third_guess %{
"arduino" => "ttyACM0",
"express_k10" => "tt... | 27.4 | 95 | 0.672506 |
974298a36be9f3f490b885379679a02780e1d6d4 | 1,077 | ex | Elixir | example/reactive/api/lib/api_web/channels/user_socket.ex | farolanf/phoenix-socket-dart | 3fb441c53a25e2f7ea6f8f0ca9e7bfc25e45cdfd | [
"BSD-3-Clause"
] | 30 | 2020-11-10T07:32:36.000Z | 2022-02-06T20:34:34.000Z | example/reactive/api/lib/api_web/channels/user_socket.ex | farolanf/phoenix-socket-dart | 3fb441c53a25e2f7ea6f8f0ca9e7bfc25e45cdfd | [
"BSD-3-Clause"
] | 22 | 2020-11-28T20:23:34.000Z | 2022-03-23T22:32:52.000Z | example/reactive/api/lib/api_web/channels/user_socket.ex | farolanf/phoenix-socket-dart | 3fb441c53a25e2f7ea6f8f0ca9e7bfc25e45cdfd | [
"BSD-3-Clause"
] | 19 | 2020-11-10T14:22:05.000Z | 2022-02-15T10:22:43.000Z | defmodule ApiWeb.UserSocket do
use Phoenix.Socket
## Channels
channel "room:*", ApiWeb.RoomChannel
# Socket params are passed from the client and can
# be used to verify and authenticate a user. After
# verification, you can put default assigns into
# the socket that will be set for all channels, ie
#... | 29.916667 | 83 | 0.692665 |
9742adeb4062b3855a1e24030c135b57257d6b3a | 1,197 | ex | Elixir | lib/ex_twilio/resources/message.ex | mark-davenport-fountain/ex_twilio | 047676acbbdcb4c012d966356d9e7c32acaafb92 | [
"MIT"
] | null | null | null | lib/ex_twilio/resources/message.ex | mark-davenport-fountain/ex_twilio | 047676acbbdcb4c012d966356d9e7c32acaafb92 | [
"MIT"
] | null | null | null | lib/ex_twilio/resources/message.ex | mark-davenport-fountain/ex_twilio | 047676acbbdcb4c012d966356d9e7c32acaafb92 | [
"MIT"
] | null | null | null | defmodule ExTwilio.Message do
@moduledoc """
Represents an Message resource in the Twilio API.
- [Twilio docs](https://www.twilio.com/docs/sms/api/message-resource)
## Examples
Here is an example of sending an SMS message:
{target_number, twilio_number_you_own, body} = {"+12223334444", "+19223334444... | 23.470588 | 100 | 0.549708 |
9742b0cc10f53fe90be49897837fdae68b94b2ca | 4,574 | exs | Elixir | test/accounts_test.exs | nathanfaucett/ex-auth_api | 3b8959b2693c652fe2e3089f03e728107ec6ba70 | [
"MIT"
] | null | null | null | test/accounts_test.exs | nathanfaucett/ex-auth_api | 3b8959b2693c652fe2e3089f03e728107ec6ba70 | [
"MIT"
] | null | null | null | test/accounts_test.exs | nathanfaucett/ex-auth_api | 3b8959b2693c652fe2e3089f03e728107ec6ba70 | [
"MIT"
] | null | null | null | defmodule AuthApi.AccountsTest do
use AuthApi.DataCase
alias AuthApi.Accounts
alias AuthApi.Accounts.User
alias AuthApi.Accounts.Session
alias AuthApi.Accounts.Application
@create_user_attrs %{confirmed: true, email: "some@email.com", password: "some password"}
@update_user_attrs %{email: "some_updated@... | 37.186992 | 109 | 0.73568 |
9742b8bf50aa4343a21c9aeaf68f94070712570d | 67,983 | ex | Elixir | clients/sql_admin/lib/google_api/sql_admin/v1beta4/api/instances.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/sql_admin/lib/google_api/sql_admin/v1beta4/api/instances.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/sql_admin/lib/google_api/sql_admin/v1beta4/api/instances.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... | 47.047059 | 533 | 0.617243 |
9742bd11e65af414474dd35780b0353490e37fa4 | 300 | ex | Elixir | lib/rdf/xsd/datatypes/unsigned_byte.ex | pukkamustard/rdf-ex | c459d8e7fa548fdfad82643338b68decf380a296 | [
"MIT"
] | 53 | 2017-06-25T22:20:44.000Z | 2020-04-27T17:27:51.000Z | lib/rdf/xsd/datatypes/unsigned_byte.ex | pukkamustard/rdf-ex | c459d8e7fa548fdfad82643338b68decf380a296 | [
"MIT"
] | 7 | 2017-06-25T00:29:11.000Z | 2020-03-11T00:23:47.000Z | lib/rdf/xsd/datatypes/unsigned_byte.ex | pukkamustard/rdf-ex | c459d8e7fa548fdfad82643338b68decf380a296 | [
"MIT"
] | 3 | 2020-07-03T13:25:36.000Z | 2021-04-04T12:33:51.000Z | defmodule RDF.XSD.UnsignedByte do
use RDF.XSD.Datatype.Restriction,
name: "unsignedByte",
id: RDF.Utils.Bootstrapping.xsd_iri("unsignedByte"),
base: RDF.XSD.UnsignedShort
def_facet_constraint RDF.XSD.Facets.MinInclusive, 0
def_facet_constraint RDF.XSD.Facets.MaxInclusive, 255
end
| 30 | 56 | 0.776667 |
9742cbb6a1dbdd39600eae65c566f77d506f53a7 | 1,611 | ex | Elixir | apps/wuw_web/lib/wuw_web/web/web.ex | aforward/wuw | 8f41157aeb9fce738a402e757bf78a322a890b7a | [
"MIT"
] | null | null | null | apps/wuw_web/lib/wuw_web/web/web.ex | aforward/wuw | 8f41157aeb9fce738a402e757bf78a322a890b7a | [
"MIT"
] | null | null | null | apps/wuw_web/lib/wuw_web/web/web.ex | aforward/wuw | 8f41157aeb9fce738a402e757bf78a322a890b7a | [
"MIT"
] | null | null | null | defmodule WuwWeb.Web do
@moduledoc """
A module that keeps using definitions for controllers,
views and so on.
This can be used in your application as:
use WuwWeb.Web, :controller
use WuwWeb.Web, :view
The definitions below will be executed for every view,
controller, etc, so keep them short ... | 21.48 | 88 | 0.663563 |
9742d7a9f1b3da701a570cb2ba6ad47027136b2c | 14,633 | ex | Elixir | lib/xema/builder.ex | garret-smith/xema | f9629d66591644d53ad4cb9c7a97de8b10f6fa5e | [
"MIT"
] | null | null | null | lib/xema/builder.ex | garret-smith/xema | f9629d66591644d53ad4cb9c7a97de8b10f6fa5e | [
"MIT"
] | null | null | null | lib/xema/builder.ex | garret-smith/xema | f9629d66591644d53ad4cb9c7a97de8b10f6fa5e | [
"MIT"
] | null | null | null | defmodule Xema.Builder do
@moduledoc """
This module contains some convenience functions to generate schemas. Beside
the type-functions the module contains the combinator-functions `all_of/2`,
`any_of/2` and `one_of/2`.
## Examples
iex> import Xema.Builder
...> schema = Xema.new integer(minimum:... | 27.048059 | 93 | 0.590515 |
9742d809c4dc76e518aefbe7c76d1784b5d815a1 | 1,092 | exs | Elixir | apps/ewallet_db/priv/repo/migrations/20180629011942_create_account_user.exs | jimpeebles/ewallet | ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405 | [
"Apache-2.0"
] | null | null | null | apps/ewallet_db/priv/repo/migrations/20180629011942_create_account_user.exs | jimpeebles/ewallet | ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405 | [
"Apache-2.0"
] | null | null | null | apps/ewallet_db/priv/repo/migrations/20180629011942_create_account_user.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... | 36.4 | 86 | 0.733516 |
9742f80167b16f42460b6caeb8259d9dcdaace3f | 1,326 | exs | Elixir | mix.exs | mu-box/qwit | 556cb7dfcd6a8791176f82fdb37df377b4494491 | [
"MIT"
] | null | null | null | mix.exs | mu-box/qwit | 556cb7dfcd6a8791176f82fdb37df377b4494491 | [
"MIT"
] | null | null | null | mix.exs | mu-box/qwit | 556cb7dfcd6a8791176f82fdb37df377b4494491 | [
"MIT"
] | null | null | null | defmodule QWIT.MixProject do
use Mix.Project
def project do
[
app: :qwit,
version: "0.1.0",
description: "A library for building workflows out of queued worker jobs, and running them as transactions.",
elixir: "~> 1.9",
elixirc_paths: elixirc_paths(Mix.env()),
package: packa... | 25.018868 | 115 | 0.574661 |
9743260db6c1b6e1c52eaccf1b513089ba2f507e | 1,178 | exs | Elixir | farmbot_ext/test/farmbot_ext/bootstrap/drop_password_task_test.exs | adamswsk/farmbot_os | d177d3b74888c1e7bcbf8f8595818708ee97f73b | [
"MIT"
] | 1 | 2021-08-23T13:36:14.000Z | 2021-08-23T13:36:14.000Z | farmbot_ext/test/farmbot_ext/bootstrap/drop_password_task_test.exs | adamswsk/farmbot_os | d177d3b74888c1e7bcbf8f8595818708ee97f73b | [
"MIT"
] | null | null | null | farmbot_ext/test/farmbot_ext/bootstrap/drop_password_task_test.exs | adamswsk/farmbot_os | d177d3b74888c1e7bcbf8f8595818708ee97f73b | [
"MIT"
] | null | null | null | defmodule FarmbotExt.Bootstrap.DropPasswordTaskTest do
require Helpers
use ExUnit.Case
use Mimic
setup :verify_on_exit!
setup :set_mimic_global
alias FarmbotExt.Bootstrap.{
DropPasswordTask,
Authorization,
DropPasswordSupport
}
@fake_params %{email: "email", password: "password", server:... | 24.541667 | 84 | 0.672326 |
97432f0e894367848d4c437366dddefb9618a8a4 | 694 | ex | Elixir | lib/web/views/note_view.ex | smartlogic/smartnote | 2a87df6dfe0a9810f646fcaf9472d831028af6c5 | [
"MIT"
] | 1 | 2021-07-12T14:27:11.000Z | 2021-07-12T14:27:11.000Z | lib/web/views/note_view.ex | smartlogic/smartnote | 2a87df6dfe0a9810f646fcaf9472d831028af6c5 | [
"MIT"
] | 20 | 2020-07-01T14:54:13.000Z | 2021-08-02T15:35:31.000Z | lib/web/views/note_view.ex | smartlogic/smartnote | 2a87df6dfe0a9810f646fcaf9472d831028af6c5 | [
"MIT"
] | 2 | 2020-06-20T00:48:34.000Z | 2021-01-22T02:04:38.000Z | defmodule Web.NoteView do
use Web, :view
alias Web.PaginationView
def markdown(text) do
{:ok, html, _} = Earmark.as_html(text, %Earmark.Options{code_class_prefix: "language-"})
content_tag(:div, class: "markdown") do
raw(html)
end
end
def tags(%{tags: tags}) do
content_tag(:p, class:... | 20.411765 | 92 | 0.590778 |
974342494838e59b85c5d46e981e6cee77ca2ce8 | 257 | ex | Elixir | lib/ex_marshal/errors/encode_error.ex | luisgabrielroldan/ex_marshal | 9fc4087dc063e23a8371617f9a13e877c9ff2fef | [
"0BSD"
] | 43 | 2015-11-14T21:57:19.000Z | 2022-01-27T09:05:54.000Z | lib/ex_marshal/errors/encode_error.ex | luisgabrielroldan/ex_marshal | 9fc4087dc063e23a8371617f9a13e877c9ff2fef | [
"0BSD"
] | 16 | 2015-11-20T11:15:27.000Z | 2021-06-25T09:05:19.000Z | lib/ex_marshal/errors/encode_error.ex | luisgabrielroldan/ex_marshal | 9fc4087dc063e23a8371617f9a13e877c9ff2fef | [
"0BSD"
] | 15 | 2015-11-18T18:35:11.000Z | 2021-09-20T17:48:29.000Z | defmodule ExMarshal.Errors.EncodeError do
defexception [:reason]
def message(%__MODULE__{} = exception) do
case exception.reason() do
{:not_supported, term} ->
"the following type is not supported: #{inspect(term)}"
end
end
end
| 23.363636 | 63 | 0.677043 |
974354d88d7c295b74b2f6531cef8ed9621e3a95 | 149 | ex | Elixir | test/support/models/user_config.ex | mathieuprog/changeset_helpers | 70690b74dbd364488f1743a13f24798b88b97aac | [
"Apache-2.0"
] | 7 | 2020-09-22T04:44:56.000Z | 2022-03-24T22:15:25.000Z | test/support/models/user_config.ex | mathieuprog/changeset_helpers | 70690b74dbd364488f1743a13f24798b88b97aac | [
"Apache-2.0"
] | null | null | null | test/support/models/user_config.ex | mathieuprog/changeset_helpers | 70690b74dbd364488f1743a13f24798b88b97aac | [
"Apache-2.0"
] | null | null | null | defmodule ChangesetHelpers.UserConfig do
use Ecto.Schema
schema "users_configs" do
belongs_to(:address, ChangesetHelpers.Address)
end
end
| 18.625 | 50 | 0.785235 |
974374fb01e79ed931350c01a2d5249ee6132aca | 1,165 | ex | Elixir | web/channels/user_socket.ex | matthewphilyaw/basic_auth_test | 9bd6b62c8680ec603314adab940b8840e50b240c | [
"MIT"
] | null | null | null | web/channels/user_socket.ex | matthewphilyaw/basic_auth_test | 9bd6b62c8680ec603314adab940b8840e50b240c | [
"MIT"
] | null | null | null | web/channels/user_socket.ex | matthewphilyaw/basic_auth_test | 9bd6b62c8680ec603314adab940b8840e50b240c | [
"MIT"
] | null | null | null | defmodule FooApi.UserSocket do
use Phoenix.Socket
## Channels
# channel "rooms:*", FooApi.RoomChannel
## Transports
transport :websocket, Phoenix.Transports.WebSocket
# transport :longpoll, Phoenix.Transports.LongPoll
# Socket params are passed from the client and can
# be used to verify and authenti... | 30.657895 | 83 | 0.700429 |
974383134c57f06dc62b4a0a0dc854900a3bd586 | 1,390 | exs | Elixir | .formatter.exs | eboskma/membrane_core | e216994fe1ba99c5d228a4b0959faa5fabb13b1c | [
"Apache-2.0"
] | null | null | null | .formatter.exs | eboskma/membrane_core | e216994fe1ba99c5d228a4b0959faa5fabb13b1c | [
"Apache-2.0"
] | null | null | null | .formatter.exs | eboskma/membrane_core | e216994fe1ba99c5d228a4b0959faa5fabb13b1c | [
"Apache-2.0"
] | null | null | null | # FIXME: remove and import from espec once released
espec_locals_without_parens = [
## Test setup
before: 1,
before_all: 1,
after_all: 1,
finally: 1,
subject: :*,
subject!: :*,
let: :*,
let!: :*,
let_error: :*,
let_error!: :*,
let_ok: :*,
let_ok!: :*,
let_overridable: 1,
## Examples
foc... | 15.795455 | 51 | 0.610072 |
97439a2397a38e0fb7dde39156795410246f1f54 | 877 | exs | Elixir | test/nomex/ACL_test.exs | neojin/nomad-elixir | 95d169adcfe42549a4f7d8e939c7a47e211fbb04 | [
"ECL-2.0",
"Apache-2.0"
] | 5 | 2017-12-08T17:56:01.000Z | 2022-01-04T00:26:43.000Z | test/nomex/ACL_test.exs | neojin/nomad-elixir | 95d169adcfe42549a4f7d8e939c7a47e211fbb04 | [
"ECL-2.0",
"Apache-2.0"
] | 6 | 2017-11-24T18:10:47.000Z | 2017-11-26T17:58:11.000Z | test/nomex/ACL_test.exs | neojin/nomad-elixir | 95d169adcfe42549a4f7d8e939c7a47e211fbb04 | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2021-07-20T15:27:13.000Z | 2021-07-20T15:27:13.000Z | defmodule Nomex.ACLTest do
use ExUnit.Case
use ExVCR.Mock, adapter: ExVCR.Adapter.Hackney
describe "when ACL support is disabled" do
test "policies" do
use_cassette "ACL/policies/acl_disabled" do
{ :ok, response } = Nomex.ACL.policies
assert response.status_code == 500
assert r... | 25.794118 | 60 | 0.645382 |
9743a7f77c4154340bbffff4825ef7547408e849 | 748 | exs | Elixir | mix.exs | mpearson-11/kafka_es_cacher | 93be333029ca245411010ff77f1c4632ec49f8ca | [
"MIT"
] | null | null | null | mix.exs | mpearson-11/kafka_es_cacher | 93be333029ca245411010ff77f1c4632ec49f8ca | [
"MIT"
] | null | null | null | mix.exs | mpearson-11/kafka_es_cacher | 93be333029ca245411010ff77f1c4632ec49f8ca | [
"MIT"
] | null | null | null | defmodule TaskMgr.Mixfile do
use Mix.Project
def project do
[apps_path: "apps",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps()]
end
# Dependencies can be Hex packages:
#
# {:my_dep, "~> 0.3.0"}
#
# Or git/path repositories:
#
# {:my_dep, gi... | 24.129032 | 79 | 0.596257 |
9743bd9fd6cece91c95516e21f85950f7161f6e5 | 1,627 | exs | Elixir | test/lib/absinthe/language/operation_definition_test.exs | bruce/absinthe | 19b63d3aaa9fb75aad01ffd5e91d89e0b30d7f91 | [
"MIT"
] | 3 | 2017-06-22T16:33:58.000Z | 2021-07-07T15:21:09.000Z | test/lib/absinthe/language/operation_definition_test.exs | bruce/absinthe | 19b63d3aaa9fb75aad01ffd5e91d89e0b30d7f91 | [
"MIT"
] | null | null | null | test/lib/absinthe/language/operation_definition_test.exs | bruce/absinthe | 19b63d3aaa9fb75aad01ffd5e91d89e0b30d7f91 | [
"MIT"
] | null | null | null | defmodule Absinthe.Language.OperationDefinitionTest do
use Absinthe.Case, async: true
alias Absinthe.{Blueprint, Language}
@query """
query Foo($showFoo: Boolean = true) {
foo @include(if: $showFoo)
}
"""
context "converting to Blueprint" do
it "builds a Operation.t" do
assert %Blueprint... | 32.54 | 451 | 0.698218 |
9743bf956496c2b4746e97982d733ad9acc8c6db | 122 | exs | Elixir | ex/examples/echo_server/test/echo_server_test.exs | NorthIsUp/loqui | 8d394a7951fd3a82d109becc1aebbd9e7ccc894a | [
"MIT"
] | 147 | 2017-10-02T18:16:52.000Z | 2020-03-16T03:26:40.000Z | ex/examples/echo_server/test/echo_server_test.exs | NorthIsUp/loqui | 8d394a7951fd3a82d109becc1aebbd9e7ccc894a | [
"MIT"
] | 14 | 2017-09-19T16:13:32.000Z | 2019-06-25T21:18:47.000Z | ex/examples/echo_server/test/echo_server_test.exs | NorthIsUp/loqui | 8d394a7951fd3a82d109becc1aebbd9e7ccc894a | [
"MIT"
] | 25 | 2017-10-01T20:10:31.000Z | 2020-03-19T14:00:20.000Z | defmodule EchoServerTest do
use ExUnit.Case
doctest EchoServer
test "the truth" do
assert 1 + 1 == 2
end
end
| 13.555556 | 27 | 0.688525 |
9743d29ea89d5f4683a2781dbf485c51890e286d | 1,762 | ex | Elixir | lib/ogn_sim/aprs_log_reader.ex | SylwBar/ogn_sim | 8397fc4a38324db7d22de55bb31cb5b5975c2bae | [
"MIT"
] | null | null | null | lib/ogn_sim/aprs_log_reader.ex | SylwBar/ogn_sim | 8397fc4a38324db7d22de55bb31cb5b5975c2bae | [
"MIT"
] | null | null | null | lib/ogn_sim/aprs_log_reader.ex | SylwBar/ogn_sim | 8397fc4a38324db7d22de55bb31cb5b5975c2bae | [
"MIT"
] | null | null | null | defmodule APRSLog.Reader do
use GenStage
def start_link(file_name) do
case File.open(file_name, [:read, :compressed]) do
{:ok, file} ->
GenStage.start_link(__MODULE__, [file], name: __MODULE__)
{:error, reason} ->
IO.puts("Can't open file #{file_name}: #{reason}")
System.ha... | 26.298507 | 93 | 0.506243 |
9743e16a4c265e48792c47891a0b9e169ad065a5 | 458 | ex | Elixir | lib/legends/accounts/user.ex | DeathstarNovember/legends | 8354f83942f0275f484e66d883413f308c013793 | [
"Unlicense"
] | null | null | null | lib/legends/accounts/user.ex | DeathstarNovember/legends | 8354f83942f0275f484e66d883413f308c013793 | [
"Unlicense"
] | 6 | 2019-11-20T19:31:23.000Z | 2021-09-02T02:34:05.000Z | lib/legends/accounts/user.ex | DeathstarNovember/legends | 8354f83942f0275f484e66d883413f308c013793 | [
"Unlicense"
] | null | null | null | defmodule Legends.Accounts.User do
use Ecto.Schema
import Ecto.Changeset
alias Legends.Stories.Post
schema "users" do
field :email, :string
field :name, :string
has_many :posts, Post
timestamps()
end
@doc false
@required_fields ~w( name email )a
@optional_fields ~w( )a
def changes... | 18.32 | 56 | 0.68559 |
9743e8ded065f688995975fa70f1dab3220a9ba1 | 2,662 | exs | Elixir | mix.exs | tonnenpinguin/nerves_hub_link | a0cea7453da792243f970140a0560b5af99434a0 | [
"Apache-2.0"
] | null | null | null | mix.exs | tonnenpinguin/nerves_hub_link | a0cea7453da792243f970140a0560b5af99434a0 | [
"Apache-2.0"
] | null | null | null | mix.exs | tonnenpinguin/nerves_hub_link | a0cea7453da792243f970140a0560b5af99434a0 | [
"Apache-2.0"
] | null | null | null | defmodule NervesHubLink.MixProject do
use Mix.Project
@version "1.1.0"
@source_url "https://github.com/nerves-hub/nerves_hub_link"
Application.put_env(
:nerves_hub_link,
:nerves_provisioning,
Path.expand("provisioning.conf")
)
def project do
[
app: :nerves_hub_link,
deps: deps... | 23.981982 | 82 | 0.548084 |
9743f1b7142eb54f464179df805a81237237efba | 429 | ex | Elixir | elixir/codes-from-books/little-elixir/cap7/pooly/version-2/lib/pooly.ex | trxeste/wrk | 3e05e50ff621866f0361cc8494ce8f6bb4d97fae | [
"BSD-3-Clause"
] | 1 | 2017-10-16T03:00:50.000Z | 2017-10-16T03:00:50.000Z | elixir/codes-from-books/little-elixir/cap7/pooly/version-2/lib/pooly.ex | trxeste/wrk | 3e05e50ff621866f0361cc8494ce8f6bb4d97fae | [
"BSD-3-Clause"
] | null | null | null | elixir/codes-from-books/little-elixir/cap7/pooly/version-2/lib/pooly.ex | trxeste/wrk | 3e05e50ff621866f0361cc8494ce8f6bb4d97fae | [
"BSD-3-Clause"
] | null | null | null | defmodule Pooly do
use Application
def start(_type, _args) do
pool_config = [mfa: {SampleWorker, :start_link, []}, size: 5]
start_pool(pool_config)
end
def start_pool(pool_config) do
Pooly.Supervisor.start_link(pool_config)
end
def checkout do
Pooly.Server.checkout
end
def checkin(wo... | 15.888889 | 65 | 0.703963 |
9743f716c2a7304afad13b0504ec29deea029e93 | 5,819 | ex | Elixir | clients/docs/lib/google_api/docs/v1/model/document_style_suggestion_state.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/docs/lib/google_api/docs/v1/model/document_style_suggestion_state.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/docs/lib/google_api/docs/v1/model/document_style_suggestion_state.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... | 59.377551 | 211 | 0.733459 |
9744006cb909f512615aa80c02801e36cb6a438c | 1,999 | ex | Elixir | clients/calendar/lib/google_api/calendar/v3/model/event_creator.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/calendar/lib/google_api/calendar/v3/model/event_creator.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/calendar/lib/google_api/calendar/v3/model/event_creator.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 35.696429 | 178 | 0.695848 |
9744130f9fe871bcf39be29809bca28027df8111 | 7,271 | ex | Elixir | clients/document_ai/lib/google_api/document_ai/v1/model/google_type_postal_address.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/document_ai/lib/google_api/document_ai/v1/model/google_type_postal_address.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/document_ai/lib/google_api/document_ai/v1/model/google_type_postal_address.ex | dazuma/elixir-google-api | 6a9897168008efe07a6081d2326735fe332e522c | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 94.428571 | 1,279 | 0.738825 |
9744395f77403664c50944f9e7988311a57a38d6 | 1,629 | ex | Elixir | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_intent_message_basic_card_button_open_uri_action.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_intent_message_basic_card_button_open_uri_action.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_intent_message_basic_card_button_open_uri_action.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 ... | 30.166667 | 107 | 0.751381 |
974439f8e026e1b140e71350d727eb939bddb944 | 1,111 | ex | Elixir | lib/scarecrow/models/callbacks.ex | azukiapp/scarecrow | c5d500d36173c74ed8c7e6e4923293de8b39ea9b | [
"Apache-2.0"
] | 1 | 2015-06-13T03:35:02.000Z | 2015-06-13T03:35:02.000Z | lib/scarecrow/models/callbacks.ex | azukiapp/scarecrow | c5d500d36173c74ed8c7e6e4923293de8b39ea9b | [
"Apache-2.0"
] | null | null | null | lib/scarecrow/models/callbacks.ex | azukiapp/scarecrow | c5d500d36173c74ed8c7e6e4923293de8b39ea9b | [
"Apache-2.0"
] | null | null | null | defmodule Scarecrow.Models.Callbacks do
defmacro __using__(_opts) do
quote do
import unquote(__MODULE__)
Module.register_attribute __MODULE__, :callbacks, accumulate: true
@before_compile unquote(__MODULE__)
end
end
defmacro set_callback(functions, type, callback) do
quote bind_quo... | 26.452381 | 77 | 0.628263 |
97444455fcb11ad23d15f0b9d82e2afe25e61893 | 35,099 | ex | Elixir | clients/ad_sense_host/lib/google_api/ad_sense_host/v41/api/accounts.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/ad_sense_host/lib/google_api/ad_sense_host/v41/api/accounts.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/ad_sense_host/lib/google_api/ad_sense_host/v41/api/accounts.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... | 42.441354 | 246 | 0.616086 |
97446fd033b31148a3811d1d6076d7ff84b7b35d | 6,441 | ex | Elixir | lib/ex_double_entry/services/guard.ex | coinjar/ex_double_entry | e2fde666daac1b42e7a32f704dabb61f8283a70c | [
"MIT"
] | 9 | 2022-02-05T08:00:05.000Z | 2022-03-20T04:53:46.000Z | lib/ex_double_entry/services/guard.ex | coinjar/ex_double_entry | e2fde666daac1b42e7a32f704dabb61f8283a70c | [
"MIT"
] | 1 | 2022-02-24T06:14:07.000Z | 2022-02-24T06:14:07.000Z | lib/ex_double_entry/services/guard.ex | coinjar/ex_double_entry | e2fde666daac1b42e7a32f704dabb61f8283a70c | [
"MIT"
] | 1 | 2022-02-24T02:54:01.000Z | 2022-02-24T02:54:01.000Z | defmodule ExDoubleEntry.Guard do
alias ExDoubleEntry.Transfer
@doc """
## Examples
iex> %Transfer{money: Money.new(42, :USD), from: nil, to: nil, code: nil}
iex> |> Guard.positive_amount?()
{:ok, %Transfer{money: Money.new(42, :USD), from: nil, to: nil, code: nil}}
iex> %Transfer{money: Money.new(-42, ... | 32.862245 | 137 | 0.624748 |
9744776207ef16f0d18d879d3cf5dddab87123a5 | 1,221 | ex | Elixir | lib/astarte_flow_web/views/pipeline_view.ex | matt-mazzucato/astarte_flow | e8644b5a27edf325977f5bced9a919f20e289ee2 | [
"Apache-2.0"
] | null | null | null | lib/astarte_flow_web/views/pipeline_view.ex | matt-mazzucato/astarte_flow | e8644b5a27edf325977f5bced9a919f20e289ee2 | [
"Apache-2.0"
] | null | null | null | lib/astarte_flow_web/views/pipeline_view.ex | matt-mazzucato/astarte_flow | e8644b5a27edf325977f5bced9a919f20e289ee2 | [
"Apache-2.0"
] | null | null | null | #
# This file is part of Astarte.
#
# Copyright 2020 Ispirata Srl
#
# 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 appl... | 30.525 | 86 | 0.737101 |
97447fd2df9f08c203aea6718b0b09abbb94f059 | 5,719 | exs | Elixir | apps/aecore/test/multiple_transactions_test.exs | aeternity/epoch-elixir | d35613f5541a9bbebe61f90b8503a9b3416fe8b4 | [
"0BSD"
] | 131 | 2018-03-10T01:35:56.000Z | 2021-12-27T13:44:41.000Z | apps/aecore/test/multiple_transactions_test.exs | aeternity/elixir-node | d35613f5541a9bbebe61f90b8503a9b3416fe8b4 | [
"0BSD"
] | 445 | 2018-03-12T09:46:17.000Z | 2018-12-12T09:52:07.000Z | apps/aecore/test/multiple_transactions_test.exs | aeternity/epoch-elixir | d35613f5541a9bbebe61f90b8503a9b3416fe8b4 | [
"0BSD"
] | 23 | 2018-03-12T12:01:28.000Z | 2022-03-06T09:22:17.000Z | defmodule MultipleTransactionsTest do
@moduledoc """
Unit test for the pool worker module
"""
use ExUnit.Case
alias Aecore.Tx.Pool.Worker, as: Pool
alias Aecore.Miner.Worker, as: Miner
alias Aecore.Chain.Worker, as: Chain
alias Aecore.Keys
alias Aecore.Account.Account
alias Aecore.Persistence.Work... | 32.494318 | 97 | 0.717958 |
9744872d5168781d52e53bc019b4e5d8dff25e75 | 2,633 | exs | Elixir | test/credo/check/refactor/map_map_test.exs | hrzndhrn/credo | 71a7b24a5ca8e7a48416e0cdfb42cf8a0fef9593 | [
"MIT"
] | 4,590 | 2015-09-28T06:01:43.000Z | 2022-03-29T08:48:57.000Z | test/credo/check/refactor/map_map_test.exs | hrzndhrn/credo | 71a7b24a5ca8e7a48416e0cdfb42cf8a0fef9593 | [
"MIT"
] | 890 | 2015-11-16T21:07:07.000Z | 2022-03-29T08:52:07.000Z | test/credo/check/refactor/map_map_test.exs | hrzndhrn/credo | 71a7b24a5ca8e7a48416e0cdfb42cf8a0fef9593 | [
"MIT"
] | 479 | 2015-11-17T19:42:40.000Z | 2022-03-29T00:09:21.000Z | defmodule Credo.Check.Refactor.MapMapTest do
use Credo.Test.Case
@described_check Credo.Check.Refactor.MapMap
#
# cases NOT raising issues
#
test "it should NOT report expected code" do
"""
defmodule Credo.Sample.Module do
def some_function(p1, p2, p3, p4, p5) do
Enum.map([:a, :b, :... | 22.12605 | 74 | 0.559438 |
9744c8a22a7d1a469804787fc93a4fb550f0d8f2 | 469 | exs | Elixir | test/porter_stemmer_test.exs | frpaulas/porterstemmer | 193f69d966bb5eceff152d478662b5761c6160d7 | [
"MIT"
] | 6 | 2015-03-04T13:23:26.000Z | 2019-11-08T05:01:11.000Z | test/porter_stemmer_test.exs | frpaulas/porterstemmer | 193f69d966bb5eceff152d478662b5761c6160d7 | [
"MIT"
] | 1 | 2016-05-11T09:45:55.000Z | 2016-05-11T09:45:55.000Z | test/porter_stemmer_test.exs | frpaulas/porterstemmer | 193f69d966bb5eceff152d478662b5761c6160d7 | [
"MIT"
] | 4 | 2015-03-07T07:37:11.000Z | 2022-03-04T21:03:29.000Z | defmodule PorterStemmerTest do
use ExUnit.Case
test "sanity" do
assert(true)
file = File.open!("./test/test_data.csv", [:read])
process_file(file)
end
def process_file(file) do
row = IO.read(file, :line)
if (row != :eof) do
[word1, word2] = handle_row(row)
assert(PorterStemm... | 18.038462 | 54 | 0.624733 |
9744d603417278bcf834acfe234db53dc746c36c | 3,483 | exs | Elixir | apps/api/test/api/v1/controllers/transaction_controller_test.exs | omgnetwork/omg-childchain-v2 | 31cc9cf9e42718fc3b9bd6668f24a627cac80b4f | [
"Apache-2.0"
] | 4 | 2020-11-30T17:38:57.000Z | 2021-01-23T21:29:41.000Z | apps/api/test/api/v1/controllers/transaction_controller_test.exs | omgnetwork/omg-childchain-v2 | 31cc9cf9e42718fc3b9bd6668f24a627cac80b4f | [
"Apache-2.0"
] | 24 | 2020-11-30T17:32:48.000Z | 2021-02-22T06:25:22.000Z | apps/api/test/api/v1/controllers/transaction_controller_test.exs | omgnetwork/omg-childchain-v2 | 31cc9cf9e42718fc3b9bd6668f24a627cac80b4f | [
"Apache-2.0"
] | null | null | null | defmodule API.V1.Controllere.TransactionControllerTest do
use Engine.DB.DataCase, async: false
alias API.V1.Controller.TransactionController
alias Engine.DB.Block
alias Engine.DB.Transaction
alias Engine.Support.TestEntity
alias ExPlasma.Builder
alias ExPlasma.Encoding
setup do
_ = insert(:merged_... | 33.490385 | 111 | 0.667528 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.