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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d5e25098d0e45019981e0a174615055238bee954 | 1,507 | ex | Elixir | lib/phoenix_events_live_web/views/error_helpers.ex | D-D-ing/phoenix-events-live | b68bdfdac1afc241574a0a8ffce25cf43bb71abe | [
"MIT"
] | null | null | null | lib/phoenix_events_live_web/views/error_helpers.ex | D-D-ing/phoenix-events-live | b68bdfdac1afc241574a0a8ffce25cf43bb71abe | [
"MIT"
] | null | null | null | lib/phoenix_events_live_web/views/error_helpers.ex | D-D-ing/phoenix-events-live | b68bdfdac1afc241574a0a8ffce25cf43bb71abe | [
"MIT"
] | null | null | null | defmodule PhoenixEventsLiveWeb.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 ->
co... | 33.488889 | 86 | 0.676841 |
d5e26fa8f10a7b9578c3cef757b46aa90664babf | 2,401 | exs | Elixir | config/prod.exs | MThomassen/graphql-server-benchmark-absinthe- | b2e0bdeeb135ffc2d83d67fe4aea19025dc9a6e6 | [
"Apache-2.0"
] | null | null | null | config/prod.exs | MThomassen/graphql-server-benchmark-absinthe- | b2e0bdeeb135ffc2d83d67fe4aea19025dc9a6e6 | [
"Apache-2.0"
] | null | null | null | config/prod.exs | MThomassen/graphql-server-benchmark-absinthe- | b2e0bdeeb135ffc2d83d67fe4aea19025dc9a6e6 | [
"Apache-2.0"
] | null | null | null | use Mix.Config
# For production, don't forget to configure the url host
# to something meaningful, Phoenix uses this information
# when generating URLs.
#
# Note we also include the path to a cache manifest
# containing the digested version of static files. This
# manifest is generated by the `mix phx.digest` task,
# ... | 34.3 | 69 | 0.7197 |
d5e28127a479929b5aaef4c87b064a1b25488836 | 20,100 | ex | Elixir | lib/elixir/lib/task/supervised.ex | NJichev/elixir | aef81d1aadfd9522ab4efb6d04103a73584ac9a1 | [
"Apache-2.0"
] | 2 | 2018-11-15T06:38:14.000Z | 2018-11-17T18:03:14.000Z | lib/elixir/lib/task/supervised.ex | NJichev/elixir | aef81d1aadfd9522ab4efb6d04103a73584ac9a1 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/task/supervised.ex | NJichev/elixir | aef81d1aadfd9522ab4efb6d04103a73584ac9a1 | [
"Apache-2.0"
] | null | null | null | defmodule Task.Supervised do
@moduledoc false
@ref_timeout 5000
def start(owner, fun) do
{:ok, :proc_lib.spawn(__MODULE__, :noreply, [owner, fun])}
end
def start_link(owner, fun) do
{:ok, :proc_lib.spawn_link(__MODULE__, :noreply, [owner, fun])}
end
def start_link(owner, monitor, fun) do
{:... | 33.059211 | 98 | 0.618856 |
d5e282c7273844126f746d0843e049feadeaa8a3 | 3,494 | ex | Elixir | apps/snitch_core/priv/repo/seed/orders.ex | saurabharch/avia | 74a82a95cf8bfe8143d1fce8136a3bb7ffc9467c | [
"MIT"
] | 1 | 2018-12-01T18:13:55.000Z | 2018-12-01T18:13:55.000Z | apps/snitch_core/priv/repo/seed/orders.ex | saurabharch/avia | 74a82a95cf8bfe8143d1fce8136a3bb7ffc9467c | [
"MIT"
] | null | null | null | apps/snitch_core/priv/repo/seed/orders.ex | saurabharch/avia | 74a82a95cf8bfe8143d1fce8136a3bb7ffc9467c | [
"MIT"
] | null | null | null | defmodule Snitch.Seed.Orders do
@moduledoc false
import Snitch.Tools.Helper.Order, only: [line_items_with_price: 2]
alias Ecto.DateTime
alias Snitch.Data.Schema.{LineItem, Order, ShippingCategory, User, Product, Taxon}
alias Snitch.Core.Tools.MultiTenancy.Repo
require Logger
@order %{
number: nil,... | 24.096552 | 84 | 0.57012 |
d5e283b6405a94cb50ca23a9340b437563a91fe3 | 373 | exs | Elixir | apps/sherbet_service/config/dev.exs | ScrimpyCat/sherbet | f245c994b15c47bb31b68d5af24de925c853c3d7 | [
"BSD-2-Clause"
] | 3 | 2017-05-02T12:52:54.000Z | 2017-05-28T11:53:17.000Z | apps/sherbet_service/config/dev.exs | ScrimpyCat/sherbet | f245c994b15c47bb31b68d5af24de925c853c3d7 | [
"BSD-2-Clause"
] | null | null | null | apps/sherbet_service/config/dev.exs | ScrimpyCat/sherbet | f245c994b15c47bb31b68d5af24de925c853c3d7 | [
"BSD-2-Clause"
] | 2 | 2017-05-02T13:13:25.000Z | 2019-10-24T11:55:39.000Z | use Mix.Config
# Do not include metadata nor timestamps in development logs
config :logger, :console, format: "[$level] $message\n"
# Configure database
config :sherbet_service, Sherbet.Service.Repo,
adapter: Ecto.Adapters.Postgres,
username: "postgres",
password: "postgres",
database: "sherbet_servic... | 26.642857 | 60 | 0.723861 |
d5e284ba3f5220328eb72f058ac8d6209a1ec3e6 | 353 | ex | Elixir | lib/noven_web/live/page_live.ex | ConnorRigby/noven | 2c34953490585b77b6c7ae8dd772da5028f6a948 | [
"Apache-2.0"
] | 8 | 2020-09-10T09:18:17.000Z | 2022-03-25T03:43:25.000Z | lib/noven_web/live/page_live.ex | ConnorRigby/noven | 2c34953490585b77b6c7ae8dd772da5028f6a948 | [
"Apache-2.0"
] | null | null | null | lib/noven_web/live/page_live.ex | ConnorRigby/noven | 2c34953490585b77b6c7ae8dd772da5028f6a948 | [
"Apache-2.0"
] | 4 | 2020-12-28T06:13:51.000Z | 2021-04-27T18:00:06.000Z | defmodule NovenWeb.PageLive do
use NovenWeb, :live_view
@impl true
def mount(_params, _session, socket) do
{:ok, assign(socket, results: %{})}
end
end
# <video id='hls-example' phx-hook="Video" class="video-js vjs-default-skin" controls>
# <source type="application/x-mpegURL" src="http://localhost:400... | 27.153846 | 89 | 0.694051 |
d5e28926f67ebd188068afba0a7ff41dc5d9b486 | 1,854 | ex | Elixir | clients/private_ca/lib/google_api/private_ca/v1/model/revoked_certificate.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/private_ca/lib/google_api/private_ca/v1/model/revoked_certificate.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/private_ca/lib/google_api/private_ca/v1/model/revoked_certificate.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... | 34.981132 | 163 | 0.720065 |
d5e29ebe4aa35e63c1f4140ed76446afefa0fb8b | 355 | exs | Elixir | priv/repo/seeds.exs | patatoid/kommissar | c6c06ba29257ba7641daf03e8e4a94fa967ecfd6 | [
"MIT"
] | null | null | null | priv/repo/seeds.exs | patatoid/kommissar | c6c06ba29257ba7641daf03e8e4a94fa967ecfd6 | [
"MIT"
] | null | null | null | priv/repo/seeds.exs | patatoid/kommissar | c6c06ba29257ba7641daf03e8e4a94fa967ecfd6 | [
"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:
#
# Kommissar.Repo.insert!(%Kommissar.SomeSchema{})
#
# We recommend using the bang functions (`insert!`, `update!`
# and so on) as they ... | 29.583333 | 61 | 0.709859 |
d5e2d82e0a94d5a9c46c5b3908c1c2ac5dccce04 | 20,314 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/api/placements.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/api/placements.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/api/placements.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... | 48.714628 | 496 | 0.641774 |
d5e2dbe56532ca25dca20c338ee8fc4850b83850 | 1,798 | ex | Elixir | DL-TRS12/DL-TRS12.ELEMENT-IoT.ex | johannesE/decentlab-decoders | c290ea1218de2c82d665fdc9f71f16682e12d917 | [
"MIT"
] | 1 | 2021-06-25T10:36:07.000Z | 2021-06-25T10:36:07.000Z | DL-TRS12/DL-TRS12.ELEMENT-IoT.ex | johannesE/decentlab-decoders | c290ea1218de2c82d665fdc9f71f16682e12d917 | [
"MIT"
] | null | null | null | DL-TRS12/DL-TRS12.ELEMENT-IoT.ex | johannesE/decentlab-decoders | c290ea1218de2c82d665fdc9f71f16682e12d917 | [
"MIT"
] | null | null | null |
# https://www.decentlab.com/support
defmodule Parser do
use Platform.Parsing.Behaviour
## test payloads
# 0210d3000346be813d00000c80
# 0210d300020c80
def fields do
[
%{field: "dielectric_permittivity", display: "Dielectric permittivity", unit: ""},
%{field: "volumetric_water_content", ... | 33.296296 | 158 | 0.571746 |
d5e318c62df3bc978ed9e870c6f03aeb6c4ea621 | 1,610 | ex | Elixir | clients/health_care/lib/google_api/health_care/v1beta1/model/consent_list.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/health_care/lib/google_api/health_care/v1beta1/model/consent_list.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/health_care/lib/google_api/health_care/v1beta1/model/consent_list.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 34.255319 | 257 | 0.743478 |
d5e33f300f6ada2866ea6ddb0536669fcc2d660e | 4,114 | ex | Elixir | apps/language_server/lib/language_server/diagnostics.ex | E14/elixir-ls | bfa468117d853a30e36e2d3009b7b755e2fca6bf | [
"Apache-2.0"
] | null | null | null | apps/language_server/lib/language_server/diagnostics.ex | E14/elixir-ls | bfa468117d853a30e36e2d3009b7b755e2fca6bf | [
"Apache-2.0"
] | null | null | null | apps/language_server/lib/language_server/diagnostics.ex | E14/elixir-ls | bfa468117d853a30e36e2d3009b7b755e2fca6bf | [
"Apache-2.0"
] | null | null | null | defmodule ElixirLS.LanguageServer.Diagnostics do
alias ElixirLS.LanguageServer.SourceFile
def normalize(diagnostics, root_path) do
for diagnostic <- diagnostics do
{type, file, line, description, stacktrace} =
extract_message_info(diagnostic.message, root_path)
diagnostic
|> update_m... | 25.874214 | 91 | 0.608653 |
d5e3ac51034352bf67d0dc7d8c3c28428ac48553 | 3,458 | ex | Elixir | lib/cforum/jobs/vote_badge_distributor_job.ex | jrieger/cforum_ex | 61f6ce84708cb55bd0feedf69853dae64146a7a0 | [
"MIT"
] | null | null | null | lib/cforum/jobs/vote_badge_distributor_job.ex | jrieger/cforum_ex | 61f6ce84708cb55bd0feedf69853dae64146a7a0 | [
"MIT"
] | null | null | null | lib/cforum/jobs/vote_badge_distributor_job.ex | jrieger/cforum_ex | 61f6ce84708cb55bd0feedf69853dae64146a7a0 | [
"MIT"
] | null | null | null | defmodule Cforum.Jobs.VoteBadgeDistributorJob do
use Oban.Worker, queue: :background, max_attempts: 5
alias Cforum.Votes
alias Cforum.Votes.Vote
alias Cforum.Messages
alias Cforum.Messages.MessageHelpers
alias Cforum.Users
alias Cforum.Badges
alias Cforum.Badges.{Badge, BadgeUser}
alias Cforum.Repo
... | 29.555556 | 102 | 0.664835 |
d5e3c27d63b611ec0aa31d75a123062d30eb33f2 | 2,358 | exs | Elixir | exercises/practice/luhn/test/luhn_test.exs | devtayls/elixir | 67824de8209ff1b6ed2f736deedfb5bd815130ca | [
"MIT"
] | null | null | null | exercises/practice/luhn/test/luhn_test.exs | devtayls/elixir | 67824de8209ff1b6ed2f736deedfb5bd815130ca | [
"MIT"
] | 9 | 2021-09-12T15:19:06.000Z | 2022-03-30T22:24:24.000Z | exercises/practice/luhn/test/luhn_test.exs | devtayls/elixir | 67824de8209ff1b6ed2f736deedfb5bd815130ca | [
"MIT"
] | null | null | null | defmodule LuhnTest do
use ExUnit.Case
# @tag :pending
test "single digit strings can not be valid" do
refute Luhn.valid?("1")
end
@tag :pending
test "A single zero is invalid" do
refute Luhn.valid?("0")
end
@tag :pending
test "a simple valid SIN that remains valid if reversed" do
assert... | 22.673077 | 101 | 0.675997 |
d5e40fb9ef9b89ff3fcb0a36a268faeddad9e4d8 | 931 | exs | Elixir | apps/expenses/mix.exs | evuez/genos | 3d919bc269566a5160f21a0290d41f11b0633d15 | [
"MIT"
] | null | null | null | apps/expenses/mix.exs | evuez/genos | 3d919bc269566a5160f21a0290d41f11b0633d15 | [
"MIT"
] | null | null | null | apps/expenses/mix.exs | evuez/genos | 3d919bc269566a5160f21a0290d41f11b0633d15 | [
"MIT"
] | null | null | null | defmodule Expenses.Mixfile do
use Mix.Project
def project do
[app: :expenses,
version: "0.0.1",
build_path: "../../_build",
config_path: "../../config/config.exs",
deps_path: "../../deps",
lockfile: "../../mix.lock",
elixir: "~> 1.3",
build_embedded: Mix.env == :prod,
st... | 22.707317 | 77 | 0.598281 |
d5e4613fbbda4b4e0ec075ba4de83f8a7fa38ca5 | 45 | exs | Elixir | config/test.exs | yuemori/elixir_logger_json_file_backend | 9a93876a22480e57c0b489587c812bad26205031 | [
"0BSD"
] | 49 | 2019-11-27T00:20:59.000Z | 2022-02-18T17:07:14.000Z | config/test.exs | yuemori/elixir_logger_json_file_backend | 9a93876a22480e57c0b489587c812bad26205031 | [
"0BSD"
] | 62 | 2016-05-19T17:11:02.000Z | 2019-11-21T16:47:15.000Z | config/test.exs | yuemori/elixir_logger_json_file_backend | 9a93876a22480e57c0b489587c812bad26205031 | [
"0BSD"
] | 25 | 2016-05-20T14:44:43.000Z | 2019-11-15T14:50:24.000Z | use Mix.Config
config :logger, backends: []
| 11.25 | 28 | 0.711111 |
d5e46a95ded07a67063912e67da0110e0c8c5b88 | 2,029 | exs | Elixir | test/coupled_to_model/get_test.exs | Q2Worlds/ecto_shortcuts | 45e1373d2ade79b909f515314db060f0ca7fd547 | [
"MIT"
] | 32 | 2016-09-01T19:09:54.000Z | 2021-04-08T21:35:00.000Z | test/coupled_to_model/get_test.exs | Q2Worlds/ecto_shortcuts | 45e1373d2ade79b909f515314db060f0ca7fd547 | [
"MIT"
] | 1 | 2016-09-28T18:06:40.000Z | 2016-09-28T18:06:40.000Z | test/coupled_to_model/get_test.exs | Q2Worlds/ecto_shortcuts | 45e1373d2ade79b909f515314db060f0ca7fd547 | [
"MIT"
] | 3 | 2016-09-28T07:14:39.000Z | 2017-07-02T14:03:22.000Z | defmodule GetTest do
use ExUnit.Case, async: false
doctest EctoShortcuts
test "get user 4 has name Turing" do
user = MyApp.User.get 4
assert "Turing" == user.name
end
test "get user 4 has name Turing and preloads user_status" do
user = MyApp.User.get 4, preload: [:user_status]
assert "Turing... | 28.985714 | 72 | 0.686545 |
d5e47f4c59ed0c344c9510f3cc2f08a286b5a404 | 1,282 | ex | Elixir | lib/kitting_system/harness.ex | rosetta-home/kitting_system | deb92ae1726e4140aefebb0d6841d109182d7282 | [
"Apache-2.0"
] | 3 | 2018-01-26T18:21:27.000Z | 2018-05-27T02:35:45.000Z | lib/kitting_system/harness.ex | rosetta-home/kitting_system | deb92ae1726e4140aefebb0d6841d109182d7282 | [
"Apache-2.0"
] | null | null | null | lib/kitting_system/harness.ex | rosetta-home/kitting_system | deb92ae1726e4140aefebb0d6841d109182d7282 | [
"Apache-2.0"
] | 1 | 2019-09-14T03:16:40.000Z | 2019-09-14T03:16:40.000Z | defmodule KittingSystem.Harness do
use GenServer
require Logger
alias KittingSystem.Flash.Arduino
alias KittingSystem.Compiler.HardwareVerification
defmodule State do
defstruct [devices: %{}, id: nil, verification_fw: nil, calling_process: nil]
end
def enumerate(id) do
GenServer.call(__MODULE__,... | 26.163265 | 92 | 0.673167 |
d5e4adf2b78549c9605403b0601151a7c5d61224 | 358 | ex | Elixir | examples/invoicing_app/lib/invoicing_app/sales/invoice_created_signal.ex | surgeventures/sea-elixir | a2f1b63c2c829713594997c08dc5bc5892edbf62 | [
"MIT"
] | 8 | 2018-11-27T09:59:27.000Z | 2021-06-03T17:51:53.000Z | examples/invoicing_app/lib/invoicing_app/sales/invoice_created_signal.ex | surgeventures/sea-elixir | a2f1b63c2c829713594997c08dc5bc5892edbf62 | [
"MIT"
] | 2 | 2019-03-19T13:38:10.000Z | 2019-03-20T12:28:39.000Z | examples/invoicing_app/lib/invoicing_app/sales/invoice_created_signal.ex | surgeventures/sea-elixir | a2f1b63c2c829713594997c08dc5bc5892edbf62 | [
"MIT"
] | 1 | 2021-10-07T12:49:57.000Z | 2021-10-07T12:49:57.000Z | defmodule InvoicingApp.Sales.InvoiceCreatedSignal do
use Sea.Signal
emit_to InvoicingApp.{Analytics, Customers, Inventory}
defstruct [:customer_id, :product_id]
def build(%InvoicingApp.Sales.Invoice{customer_id: customer_id, product_id: product_id}) do
%__MODULE__{
customer_id: customer_id,
p... | 23.866667 | 93 | 0.75419 |
d5e4b079e9cb3dbad4affb43e78cfef6a1ebf4b4 | 195 | exs | Elixir | installer/templates/new/test/test_helper.exs | doron2402/phoenix | 444a7a40c6595eb9afc976b5dad512664805fcb9 | [
"MIT"
] | null | null | null | installer/templates/new/test/test_helper.exs | doron2402/phoenix | 444a7a40c6595eb9afc976b5dad512664805fcb9 | [
"MIT"
] | null | null | null | installer/templates/new/test/test_helper.exs | doron2402/phoenix | 444a7a40c6595eb9afc976b5dad512664805fcb9 | [
"MIT"
] | null | null | null | ExUnit.start
<%= if ecto do %>
Mix.Task.run "ecto.create", ["--quiet"]
Mix.Task.run "ecto.migrate", ["--quiet"]
Ecto.Adapters.SQL.begin_test_transaction(<%= application_module %>.Repo)
<% end %>
| 27.857143 | 72 | 0.676923 |
d5e4e534f9bc647c91a45d9da1656fc99a8a8395 | 1,433 | ex | Elixir | clients/android_enterprise/lib/google_api/android_enterprise/v1/model/page_info.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/android_enterprise/lib/google_api/android_enterprise/v1/model/page_info.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/android_enterprise/lib/google_api/android_enterprise/v1/model/page_info.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... | 28.66 | 81 | 0.740405 |
d5e52d693b507ffd4814a799d80c59ca7c485ae2 | 142 | ex | Elixir | test/support/factory.ex | prefeitura-municipal-campos/kirby | 290835751a28cd7e39be2e721de243e495273be7 | [
"BSD-3-Clause"
] | null | null | null | test/support/factory.ex | prefeitura-municipal-campos/kirby | 290835751a28cd7e39be2e721de243e495273be7 | [
"BSD-3-Clause"
] | null | null | null | test/support/factory.ex | prefeitura-municipal-campos/kirby | 290835751a28cd7e39be2e721de243e495273be7 | [
"BSD-3-Clause"
] | null | null | null | defmodule Kirby.Factory do
@moduledoc false
use ExMachina.Ecto, repo: Kirby.Repo
use Kirby.ContatoFactory
use Kirby.UserFactory
end
| 15.777778 | 38 | 0.774648 |
d5e53c49436d7909d3441c92f95baed9471ea8ac | 1,969 | ex | Elixir | lib/saul/error.ex | wojtekmach/saul | 2a49bfefd08fbee889f912c53153cdf07fc40b83 | [
"ISC"
] | 73 | 2017-03-09T18:39:47.000Z | 2021-11-18T04:18:19.000Z | lib/saul/error.ex | wojtekmach/saul | 2a49bfefd08fbee889f912c53153cdf07fc40b83 | [
"ISC"
] | null | null | null | lib/saul/error.ex | wojtekmach/saul | 2a49bfefd08fbee889f912c53153cdf07fc40b83 | [
"ISC"
] | 2 | 2017-11-15T09:52:55.000Z | 2020-02-05T14:05:29.000Z | defmodule Saul.Error do
@moduledoc """
A struct representing a validation error.
When validation fails, `Saul.validate/2` always returns a `Saul.Error` struct
(even if the used validator doesn't return such a struct, see the
documentation for `Saul` for more information). This struct is a valid Elixir
exce... | 35.160714 | 86 | 0.674454 |
d5e553a1714b370eb1b0df8c2c98be757cd0ec31 | 1,644 | exs | Elixir | config/dev.exs | andrermartins/inmana | 19f36e3b7ab509ea72af2eff22981adf2ffcacab | [
"MIT"
] | null | null | null | config/dev.exs | andrermartins/inmana | 19f36e3b7ab509ea72af2eff22981adf2ffcacab | [
"MIT"
] | null | null | null | config/dev.exs | andrermartins/inmana | 19f36e3b7ab509ea72af2eff22981adf2ffcacab | [
"MIT"
] | null | null | null | use Mix.Config
# Configure your database
config :inmana, Inmana.Repo,
username: "postgres",
password: "docker",
database: "inmana_dev",
hostname: "localhost",
show_sensitive_data_on_connection_error: true,
pool_size: 10
# For development, we disable any cache and enable
# debugging and code reloading.
#
#... | 28.344828 | 68 | 0.725061 |
d5e5653c2904469f5f4440b173fa0a4336739b78 | 1,537 | ex | Elixir | test/support/data_case.ex | cciuenf/lovelaceccuenf_bot | 22a9d4e25d59cf3e5f1de4c4de8e257a6b44fba9 | [
"MIT"
] | null | null | null | test/support/data_case.ex | cciuenf/lovelaceccuenf_bot | 22a9d4e25d59cf3e5f1de4c4de8e257a6b44fba9 | [
"MIT"
] | null | null | null | test/support/data_case.ex | cciuenf/lovelaceccuenf_bot | 22a9d4e25d59cf3e5f1de4c4de8e257a6b44fba9 | [
"MIT"
] | null | null | null | defmodule Lovelace.DataCase do
@moduledoc """
This module defines the setup for tests requiring
access to the application's data layer.
You may define functions here to be used as helpers in
your tests.
Finally, if the test case interacts with the database,
we enable the SQL sandbox, so changes done to ... | 26.5 | 77 | 0.688354 |
d5e58831a64761ce2b724e0f5d1509d2e10a0d2a | 2,348 | ex | Elixir | clients/health_care/lib/google_api/health_care/v1beta1/model/status.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/health_care/lib/google_api/health_care/v1beta1/model/status.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/health_care/lib/google_api/health_care/v1beta1/model/status.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... | 44.301887 | 427 | 0.721891 |
d5e5e66611299757ed73ac845f917c2ca59c0925 | 1,285 | exs | Elixir | test/slipstream/configuration_test.exs | fhunleth/slipstream | cebd924384b93b7dd3c1aa6ae2ac8d237e942f18 | [
"Apache-2.0"
] | 63 | 2021-02-10T16:18:11.000Z | 2022-03-18T11:06:44.000Z | test/slipstream/configuration_test.exs | fhunleth/slipstream | cebd924384b93b7dd3c1aa6ae2ac8d237e942f18 | [
"Apache-2.0"
] | 21 | 2021-01-30T21:00:06.000Z | 2021-12-27T04:27:15.000Z | test/slipstream/configuration_test.exs | fhunleth/slipstream | cebd924384b93b7dd3c1aa6ae2ac8d237e942f18 | [
"Apache-2.0"
] | 6 | 2021-02-26T23:56:49.000Z | 2022-03-26T09:28:13.000Z | defmodule Slipstream.ConfigurationTest do
use ExUnit.Case, async: true
alias Slipstream.Configuration, as: Config
test "empty config fails validation" do
assert {:error, %NimbleOptions.ValidationError{}} = Config.validate([])
assert_raise NimbleOptions.ValidationError, fn -> Config.validate!([]) end
e... | 29.883721 | 78 | 0.637354 |
d5e5f8ef1167577feb387f650f7207968f5548b5 | 337 | ex | Elixir | deps/mazurka/lib/mazurka/mediatype/text.ex | conorfoley/dota_hero_combos | d75a3f0673fc1f1d0845c9d5c692c0605d3b445d | [
"MIT"
] | null | null | null | deps/mazurka/lib/mazurka/mediatype/text.ex | conorfoley/dota_hero_combos | d75a3f0673fc1f1d0845c9d5c692c0605d3b445d | [
"MIT"
] | null | null | null | deps/mazurka/lib/mazurka/mediatype/text.ex | conorfoley/dota_hero_combos | d75a3f0673fc1f1d0845c9d5c692c0605d3b445d | [
"MIT"
] | null | null | null | defmodule Mazurka.Mediatype.Text do
use Mazurka.Mediatype
def __content_types__ do
[{"text", "plain", %{}}]
end
defmacro __handle_action__(block) do
block
end
defmacro __handle_affordance__(affordance, props) do
quote location: :keep do
to_string(unquote(props) || unquote(affordance))
... | 18.722222 | 54 | 0.700297 |
d5e5fe4e94a5f5307b5f64cb70328a74a360abc4 | 363 | ex | Elixir | apps/wechat_base/lib/wechat_base/api.ex | secretworry/exwechat | 2d3a8bf03135eebd58452122c2f7b3718b5f5b3d | [
"Apache-2.0"
] | null | null | null | apps/wechat_base/lib/wechat_base/api.ex | secretworry/exwechat | 2d3a8bf03135eebd58452122c2f7b3718b5f5b3d | [
"Apache-2.0"
] | null | null | null | apps/wechat_base/lib/wechat_base/api.ex | secretworry/exwechat | 2d3a8bf03135eebd58452122c2f7b3718b5f5b3d | [
"Apache-2.0"
] | null | null | null | defmodule WechatBase.Api do
@type opts :: Map.t
@type args :: %{required(String.t) => any}
@type body :: any
@type invoke_result :: {:ok, any} | {:error, WechatBase.Error.t}
@callback invoke(api :: String.t, args :: args, opts :: opts) :: invoke_result
@callback invoke(api :: String.t, args :: args, body ... | 36.3 | 94 | 0.641873 |
d5e6136f7bcc8786e38746100b9595120af6617b | 1,644 | ex | Elixir | clients/fcm/lib/google_api/fcm/v1/model/webpush_fcm_options.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/fcm/lib/google_api/fcm/v1/model/webpush_fcm_options.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/fcm/lib/google_api/fcm/v1/model/webpush_fcm_options.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... | 32.235294 | 115 | 0.720803 |
d5e693fe66589aa3383694f01d2796e6ca11c2e2 | 1,694 | ex | Elixir | lib/execution/store.ex | ElixiumNetwork/WaspVM | 7a313825ed50720256dda6e61e83356621357963 | [
"MIT"
] | 112 | 2018-12-14T23:43:38.000Z | 2019-03-22T22:02:27.000Z | lib/execution/store.ex | ElixiumNetwork/Elixium-Wasm | 7a313825ed50720256dda6e61e83356621357963 | [
"MIT"
] | 21 | 2018-12-22T23:53:14.000Z | 2019-02-21T00:18:05.000Z | lib/execution/store.ex | ElixiumNetwork/Elixium-Wasm | 7a313825ed50720256dda6e61e83356621357963 | [
"MIT"
] | 4 | 2019-05-11T16:37:19.000Z | 2021-05-18T13:45:06.000Z | defmodule AlchemyVM.Store do
require IEx
alias AlchemyVM.Memory
alias AlchemyVM.Store
defstruct funcs: {},
mems: [],
globals: [],
tables: []
@moduledoc false
# The store represents all global state that can be manipulated
# by WebAssembly programs. It consists of the... | 28.711864 | 70 | 0.66588 |
d5e6aec48a02df423e76de01ada7d102648765c2 | 1,449 | exs | Elixir | architect/config/config.exs | VJftw/velocity | 8335c39c510dbde1446e6cde03eebb450339d212 | [
"Apache-2.0"
] | 3 | 2017-12-09T21:05:54.000Z | 2019-08-06T08:13:34.000Z | architect/config/config.exs | VJftw/velocity | 8335c39c510dbde1446e6cde03eebb450339d212 | [
"Apache-2.0"
] | 63 | 2017-09-09T15:44:24.000Z | 2022-03-03T22:16:24.000Z | architect/config/config.exs | VJftw/velocity | 8335c39c510dbde1446e6cde03eebb450339d212 | [
"Apache-2.0"
] | 5 | 2017-09-14T00:17:22.000Z | 2019-11-27T14:43:45.000Z | # 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
config :elixir, ansi_enabled: true
config :arch... | 28.411765 | 121 | 0.73499 |
d5e6ca810b56d4033fb7049e34b5d3810a2ca42d | 3,609 | ex | Elixir | clients/identity_toolkit/lib/google_api/identity_toolkit/v3/model/set_account_info_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/identity_toolkit/lib/google_api/identity_toolkit/v3/model/set_account_info_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/identity_toolkit/lib/google_api/identity_toolkit/v3/model/set_account_info_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... | 41.482759 | 182 | 0.672763 |
d5e6cb50e3650d37d26141adccbb258921d5ffcb | 490 | ex | Elixir | test/sample_files/behaviour_module.ex | balexandr/doctor | 9e6411e26fa2222a2da70271ac857f8049c77bd4 | [
"MIT"
] | 110 | 2018-10-03T06:44:31.000Z | 2022-03-06T20:20:10.000Z | test/sample_files/behaviour_module.ex | balexandr/doctor | 9e6411e26fa2222a2da70271ac857f8049c77bd4 | [
"MIT"
] | 34 | 2019-06-05T18:47:10.000Z | 2022-03-11T00:11:54.000Z | test/sample_files/behaviour_module.ex | balexandr/doctor | 9e6411e26fa2222a2da70271ac857f8049c77bd4 | [
"MIT"
] | 8 | 2019-06-16T22:10:00.000Z | 2022-02-23T19:30:33.000Z | defmodule Doctor.BehaviourModule do
@moduledoc """
This is a GenServer module that has 100% code coverage
"""
use GenServer
@impl true
def init(stack) do
{:ok, stack}
end
@impl GenServer
@doc "Something or other"
def handle_call(:pop, _from, [head | tail]) do
{:reply, head, tail}
end
... | 17.5 | 56 | 0.644898 |
d5e6ec06f55b2461cbb9362c7265ce5dfab5f951 | 15,459 | ex | Elixir | clients/street_view_publish/lib/google_api/street_view_publish/v1/api/photos.ex | rafaltrojanowski/elixir-google-api | 779f15166741b9cf57cb832228f1115bfb8edb13 | [
"Apache-2.0"
] | null | null | null | clients/street_view_publish/lib/google_api/street_view_publish/v1/api/photos.ex | rafaltrojanowski/elixir-google-api | 779f15166741b9cf57cb832228f1115bfb8edb13 | [
"Apache-2.0"
] | null | null | null | clients/street_view_publish/lib/google_api/street_view_publish/v1/api/photos.ex | rafaltrojanowski/elixir-google-api | 779f15166741b9cf57cb832228f1115bfb8edb13 | [
"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... | 54.433099 | 811 | 0.65677 |
d5e6f751046e1264cd637ec79737b58df9961e62 | 2,425 | exs | Elixir | deps/ecto/mix.exs | rpillar/Top5_Elixir | 9c450d2e9b291108ff1465dc066dfe442dbca822 | [
"MIT"
] | null | null | null | deps/ecto/mix.exs | rpillar/Top5_Elixir | 9c450d2e9b291108ff1465dc066dfe442dbca822 | [
"MIT"
] | null | null | null | deps/ecto/mix.exs | rpillar/Top5_Elixir | 9c450d2e9b291108ff1465dc066dfe442dbca822 | [
"MIT"
] | null | null | null | defmodule Ecto.MixProject do
use Mix.Project
@version "3.0.5"
def project do
[
app: :ecto,
version: @version,
elixir: "~> 1.4",
deps: deps(),
consolidate_protocols: Mix.env() != :test,
# Hex
description: "A toolkit for data mapping and language integr... | 23.543689 | 91 | 0.505567 |
d5e71e5ccf7b5d63a40eb367cbca4e22e6616cd6 | 3,268 | exs | Elixir | test/ex_datadog_plug_test.exs | tyrchen/ex-datadog-plug | 09b3a2e6ef3c4e5748039df934fa6148cbc4e7c5 | [
"MIT"
] | 22 | 2018-05-10T06:35:15.000Z | 2021-11-24T08:34:12.000Z | test/ex_datadog_plug_test.exs | tyrchen/ex-datadog-plug | 09b3a2e6ef3c4e5748039df934fa6148cbc4e7c5 | [
"MIT"
] | 1 | 2018-01-15T09:59:10.000Z | 2018-01-15T09:59:10.000Z | test/ex_datadog_plug_test.exs | tyrchen/ex-datadog-plug | 09b3a2e6ef3c4e5748039df934fa6148cbc4e7c5 | [
"MIT"
] | null | null | null | defmodule ExDatadogPlugTest do
use ExUnit.Case, async: false
use Plug.Test
import Mock
alias ExDatadog.Plug.Statix
test_with_mock "check prefix correctness", Statix, histogram: fn _, _, _ -> :ok end do
:get
|> conn("/hello/world")
|> ExDatadog.Plug.call(prefix: "service")
|> send_resp(200, "... | 28.666667 | 96 | 0.552938 |
d5e724997f6d7efa3dcd93ab9cbd49ca3ea03c50 | 3,770 | ex | Elixir | lib/mix/tasks/exreleasy.hot_reload.ex | nicktime/exreleasy | 12bb4ba1ca7343296fe8ae7718329423630d8fa8 | [
"Apache-2.0"
] | 12 | 2016-12-12T10:23:21.000Z | 2019-03-14T15:38:48.000Z | lib/mix/tasks/exreleasy.hot_reload.ex | nicktime/exreleasy | 12bb4ba1ca7343296fe8ae7718329423630d8fa8 | [
"Apache-2.0"
] | 9 | 2017-09-12T20:04:55.000Z | 2019-03-04T10:40:18.000Z | lib/mix/tasks/exreleasy.hot_reload.ex | nicktime/exreleasy | 12bb4ba1ca7343296fe8ae7718329423630d8fa8 | [
"Apache-2.0"
] | 4 | 2017-08-15T13:03:55.000Z | 2019-03-04T09:45:04.000Z | defmodule Mix.Tasks.Exreleasy.HotReload do
use Mix.Task
import Exreleasy.MixTask
alias Exreleasy.Manifests.Storage, as: ManifestStorage
alias Exreleasy.Manifests.Manifest
alias Exreleasy.HotReloader
@moduledoc """
Reloads given apps on running node
mix exreleasy.hotreload --upgrade --node you... | 27.720588 | 165 | 0.599735 |
d5e75292bbaaf98977aab3eead3532975d5ba234 | 686 | exs | Elixir | test/day18_test.exs | Lakret/aoc2018 | a09bfe7b9bc5faaada4a411d4d666f0626cd6562 | [
"MIT"
] | 1 | 2021-04-21T16:16:59.000Z | 2021-04-21T16:16:59.000Z | test/day18_test.exs | Lakret/aoc2018 | a09bfe7b9bc5faaada4a411d4d666f0626cd6562 | [
"MIT"
] | null | null | null | test/day18_test.exs | Lakret/aoc2018 | a09bfe7b9bc5faaada4a411d4d666f0626cd6562 | [
"MIT"
] | null | null | null | defmodule Day18Test do
use ExUnit.Case
@map_string """
|#.
##|
.#.
"""
@expected_parsed_map %{
{0, 0} => :trees,
{1, 0} => :lumberyard,
{2, 0} => :empty,
{0, 1} => :lumberyard,
{1, 1} => :lumberyard,
{2, 1} => :trees,
{0, 2} => :empty,
{1, 2} => :lumberyard,
{2, 2} =>... | 17.589744 | 63 | 0.565598 |
d5e78fc6ed2a9f4b04921425eb16ffdfe1ff5f89 | 4,589 | ex | Elixir | lib/scripts/translate.ex | Inouju/mambo | facc3b4bca4ce88ae1e65219d9342105108d97f3 | [
"MIT"
] | 15 | 2016-01-24T00:08:40.000Z | 2017-09-04T05:40:48.000Z | lib/scripts/translate.ex | Inouju/mambo | facc3b4bca4ce88ae1e65219d9342105108d97f3 | [
"MIT"
] | 7 | 2016-02-07T07:14:16.000Z | 2020-01-26T23:57:09.000Z | lib/scripts/translate.ex | Inouju/mambo | facc3b4bca4ce88ae1e65219d9342105108d97f3 | [
"MIT"
] | 2 | 2016-03-23T14:16:44.000Z | 2020-03-22T13:46:59.000Z | defmodule Translate do
@moduledoc """
Mambo is a polyglot, he will translate anything for you.
Examples:
.translate <non-english phrase>
.translate <input language> <target language> <phrase>
.tl <non-english phrase>
.tl <input language> <target language> <phrase>
"""
use GenEvent
@langua... | 26.526012 | 90 | 0.486598 |
d5e7b89db1af528c2ed9371cac27ca4f2443467c | 6,289 | ex | Elixir | apps/fetch/lib/fetch/worker.ex | pacebus/mbta-api-fork | 6bf1d3a16e8917c9cfac0001b184c443be1f3abd | [
"MIT"
] | null | null | null | apps/fetch/lib/fetch/worker.ex | pacebus/mbta-api-fork | 6bf1d3a16e8917c9cfac0001b184c443be1f3abd | [
"MIT"
] | null | null | null | apps/fetch/lib/fetch/worker.ex | pacebus/mbta-api-fork | 6bf1d3a16e8917c9cfac0001b184c443be1f3abd | [
"MIT"
] | 1 | 2019-09-09T20:40:13.000Z | 2019-09-09T20:40:13.000Z | defmodule Fetch.Worker do
@moduledoc """
A worker for fetching a particular URL. It can maintain a simple cache of
the file on the filesystem if :cache_directory is passed in as an option.
"""
use GenServer
use Timex
require Logger
def start_link(parent_opts \\ [], url) do
GenServer.start_link(_... | 24.566406 | 97 | 0.597551 |
d5e7e8432cbeed1dfe1b80c3debafcd66fe0450f | 1,121 | exs | Elixir | config/config.exs | merongivian/capuli | aebb93832055fb02cf9e660e2483ad89d0029e7f | [
"MIT"
] | 6 | 2018-06-10T20:41:50.000Z | 2019-10-13T01:43:06.000Z | config/config.exs | merongivian/capuli | aebb93832055fb02cf9e660e2483ad89d0029e7f | [
"MIT"
] | 1 | 2018-03-10T01:28:34.000Z | 2018-06-10T17:16:07.000Z | config/config.exs | merongivian/capuli | aebb93832055fb02cf9e660e2483ad89d0029e7f | [
"MIT"
] | 1 | 2022-01-01T20:19:18.000Z | 2022-01-01T20:19:18.000Z | # 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.16129 | 73 | 0.751115 |
d5e7f98d7a5e8d188fb375a9b109d1fdfae225a9 | 1,125 | ex | Elixir | {{cookiecutter.app_name}}/test/support/channel_case.ex | StephaneRob/cookiecutter-phoenix | c71a01a582fe8d57999d646cea7cbd820a4c73ca | [
"BSD-2-Clause"
] | 4 | 2018-01-16T15:40:04.000Z | 2020-01-11T19:34:42.000Z | {{cookiecutter.app_name}}/test/support/channel_case.ex | StephaneRob/cookiecutter-phoenix | c71a01a582fe8d57999d646cea7cbd820a4c73ca | [
"BSD-2-Clause"
] | 4 | 2018-03-10T14:18:37.000Z | 2018-03-13T20:43:06.000Z | {{cookiecutter.app_name}}/test/support/channel_case.ex | StephaneRob/cookiecutter-phoenix | c71a01a582fe8d57999d646cea7cbd820a4c73ca | [
"BSD-2-Clause"
] | 1 | 2019-10-11T20:52:31.000Z | 2019-10-11T20:52:31.000Z | defmodule {{cookiecutter.app_name.split('_')|map('title')|join}}Web.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 l... | 29.605263 | 116 | 0.706667 |
d5e8023f275f23c9a5c75bb33b7e563049b57b2a | 954 | ex | Elixir | test/support/channel_case.ex | superbogy/pande | 30ebb683febd1cd10711e562863fc73b87827c53 | [
"MIT"
] | 1 | 2016-08-17T11:39:26.000Z | 2016-08-17T11:39:26.000Z | test/support/channel_case.ex | superbogy/pande | 30ebb683febd1cd10711e562863fc73b87827c53 | [
"MIT"
] | null | null | null | test/support/channel_case.ex | superbogy/pande | 30ebb683febd1cd10711e562863fc73b87827c53 | [
"MIT"
] | null | null | null | defmodule Pande.ChannelCase do
@moduledoc """
This module defines the test case to be used by
channel tests.
Such tests rely on `Phoenix.ChannelTest` and also
imports other functionality to make it easier
to build and query models.
Finally, if the test case interacts with the database,
it cannot be as... | 22.714286 | 64 | 0.698113 |
d5e809d15870c83add443508f1a9083108e1412f | 155 | ex | Elixir | lib/bitpal/fsm/struct.ex | fstromback/bitpal | 2c50e6700d7383b4f025b3734ba37257c69ce47e | [
"BSD-3-Clause-Clear"
] | 5 | 2021-05-04T21:28:00.000Z | 2021-12-01T11:19:48.000Z | lib/bitpal/fsm/struct.ex | fstromback/bitpal | 2c50e6700d7383b4f025b3734ba37257c69ce47e | [
"BSD-3-Clause-Clear"
] | 71 | 2021-04-21T05:48:49.000Z | 2022-03-23T06:30:37.000Z | lib/bitpal/fsm/struct.ex | fstromback/bitpal | 2c50e6700d7383b4f025b3734ba37257c69ce47e | [
"BSD-3-Clause-Clear"
] | 1 | 2021-04-25T10:35:41.000Z | 2021-04-25T10:35:41.000Z | defmodule BitPal.FSM.Config do
defmacro __using__(opts) do
quote do
def __fsm__(opt), do: Keyword.fetch!(unquote(opts), opt)
end
end
end
| 19.375 | 62 | 0.683871 |
d5e8248e2f694c16b6fc29fac73e6caa52b54971 | 1,386 | ex | Elixir | lib/surface/components/form/range_input.ex | thorsten-de/surface | 67ebc2eadec22a22e043394f37d0d8d0e0e81b77 | [
"MIT"
] | null | null | null | lib/surface/components/form/range_input.ex | thorsten-de/surface | 67ebc2eadec22a22e043394f37d0d8d0e0e81b77 | [
"MIT"
] | null | null | null | lib/surface/components/form/range_input.ex | thorsten-de/surface | 67ebc2eadec22a22e043394f37d0d8d0e0e81b77 | [
"MIT"
] | null | null | null | defmodule Surface.Components.Form.RangeInput do
@moduledoc """
An input field that let the user specify a numeric value in a given **range**,
usually using a slider.
Provides a wrapper for Phoenix.HTML.Form's `range_input/3` function.
All options passed via `opts` will be sent to `range_input/3`, `value`, `... | 28.875 | 118 | 0.690476 |
d5e839018b079a8d77c2254585a775b78a3effdf | 1,172 | ex | Elixir | web/channels/user_socket.ex | shawn-mcginty/phoenix-webpack-skeleton | 311559c860da97157d643d06cd2601aee81c6a3a | [
"MIT"
] | null | null | null | web/channels/user_socket.ex | shawn-mcginty/phoenix-webpack-skeleton | 311559c860da97157d643d06cd2601aee81c6a3a | [
"MIT"
] | null | null | null | web/channels/user_socket.ex | shawn-mcginty/phoenix-webpack-skeleton | 311559c860da97157d643d06cd2601aee81c6a3a | [
"MIT"
] | null | null | null | defmodule TimeVoice.UserSocket do
use Phoenix.Socket
## Channels
# channel "room:*", TimeVoice.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 aut... | 30.842105 | 83 | 0.703072 |
d5e839dd31422a5ac48c989af40542bd7bc7d855 | 59 | exs | Elixir | test/frex_test.exs | littlelines/frex | e3d9005b782fa0c0aaff0c0368f154c45fb7a302 | [
"Apache-2.0"
] | 2 | 2017-02-10T16:46:21.000Z | 2020-05-04T11:50:50.000Z | test/frex_test.exs | littlelines/frex | e3d9005b782fa0c0aaff0c0368f154c45fb7a302 | [
"Apache-2.0"
] | null | null | null | test/frex_test.exs | littlelines/frex | e3d9005b782fa0c0aaff0c0368f154c45fb7a302 | [
"Apache-2.0"
] | 1 | 2019-11-27T15:43:55.000Z | 2019-11-27T15:43:55.000Z | defmodule FrexTest do
use ExUnit.Case
doctest Frex
end
| 11.8 | 21 | 0.779661 |
d5e84b95f757689f1421b4b4ffaf86ff64d56a5b | 1,859 | ex | Elixir | lib/blog_api_web/telemetry.ex | gissandrogama/blog_api | 9378d7844a1535d0c9663cc07ca92fc5d282ee92 | [
"MIT"
] | null | null | null | lib/blog_api_web/telemetry.ex | gissandrogama/blog_api | 9378d7844a1535d0c9663cc07ca92fc5d282ee92 | [
"MIT"
] | 5 | 2021-01-13T04:16:16.000Z | 2021-01-13T21:43:00.000Z | lib/blog_api_web/telemetry.ex | gissandrogama/blog_api | 9378d7844a1535d0c9663cc07ca92fc5d282ee92 | [
"MIT"
] | null | null | null | defmodule BlogApiWeb.Telemetry do
@moduledoc """
Telemetry
"""
use Supervisor
import Telemetry.Metrics
def start_link(arg) do
Supervisor.start_link(__MODULE__, arg, name: __MODULE__)
end
@impl true
def init(_arg) do
children = [
# Telemetry poller will execute the given period measurem... | 31.508475 | 86 | 0.669715 |
d5e84ca29af958ddd06676528416e3fc9dd4d69e | 2,051 | ex | Elixir | src/mbs/lib/toolchain/run_deploy.ex | visciang/mbs | 3f218b82f3097c03149b6a4a440804056d94c387 | [
"MIT"
] | null | null | null | src/mbs/lib/toolchain/run_deploy.ex | visciang/mbs | 3f218b82f3097c03149b6a4a440804056d94c387 | [
"MIT"
] | 1 | 2021-12-15T07:22:59.000Z | 2021-12-15T07:47:56.000Z | src/mbs/lib/toolchain/run_deploy.ex | visciang/mbs | 3f218b82f3097c03149b6a4a440804056d94c387 | [
"MIT"
] | null | null | null | defmodule MBS.Toolchain.RunDeploy do
@moduledoc false
alias MBS.{Const, Docker, Toolchain}
alias MBS.Manifest.BuildDeploy
@type opts :: [String.t()]
@type env_list :: [{String.t(), String.t()}]
@sh_sleep_forever_cmd ["-c", "while true; do sleep 2; done"]
@spec up(Path.t(), BuildDeploy.Component.t(), S... | 38.698113 | 110 | 0.667967 |
d5e852225a28794ac019c059e7e55212d51b069d | 7,280 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/api/operating_system_versions.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/api/operating_system_versions.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/api/operating_system_versions.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... | 40.670391 | 196 | 0.623764 |
d5e87926659b997ebeda41893f70fd3e4016cbff | 1,430 | ex | Elixir | test/support/faktory_test_helpers.ex | MValle21/faktory_worker | 47a2224778f7ff45800bff3cb2dd3de283f9cbd9 | [
"MIT"
] | 17 | 2019-04-14T21:35:33.000Z | 2019-10-26T10:36:35.000Z | test/support/faktory_test_helpers.ex | MValle21/faktory_worker | 47a2224778f7ff45800bff3cb2dd3de283f9cbd9 | [
"MIT"
] | 75 | 2019-03-12T12:09:34.000Z | 2020-01-04T14:19:11.000Z | test/support/faktory_test_helpers.ex | MValle21/faktory_worker | 47a2224778f7ff45800bff3cb2dd3de283f9cbd9 | [
"MIT"
] | 2 | 2021-11-18T16:38:33.000Z | 2022-01-14T17:34:10.000Z | defmodule FaktoryWorker.FaktoryTestHelpers do
@moduledoc false
import ExUnit.Assertions
def flush_faktory!(_context) do
{:ok, conn} = FaktoryWorker.Connection.open()
{:ok, "OK"} = FaktoryWorker.Connection.send_command(conn, :flush)
:ok
end
def assert_queue_size(queue_name, expected_size) do
... | 29.183673 | 89 | 0.704196 |
d5e88aa157d035adf04cc1cc7a76282ef9627c6e | 57 | ex | Elixir | lib/nerves_toolchain_arm_unknown_linux_gnueabihf.ex | strobe-audio/nerves_toolchain_arm_unknown_linux_gnueabihf | 166323f31ba00e6c15220aefc9d68d36d095eee0 | [
"Apache-2.0"
] | null | null | null | lib/nerves_toolchain_arm_unknown_linux_gnueabihf.ex | strobe-audio/nerves_toolchain_arm_unknown_linux_gnueabihf | 166323f31ba00e6c15220aefc9d68d36d095eee0 | [
"Apache-2.0"
] | null | null | null | lib/nerves_toolchain_arm_unknown_linux_gnueabihf.ex | strobe-audio/nerves_toolchain_arm_unknown_linux_gnueabihf | 166323f31ba00e6c15220aefc9d68d36d095eee0 | [
"Apache-2.0"
] | null | null | null | defmodule NervesToolchainArmUnknownLinuxGnueabihf do
end
| 19 | 52 | 0.929825 |
d5e89b57fc2a55d919ae5ca7500e781d072ebd3a | 82 | exs | Elixir | test/test_helper.exs | CTMoney/phoenix-postgres-react | b51c298fdcef339324a601dd874a82e1e0cc8e6e | [
"MIT"
] | null | null | null | test/test_helper.exs | CTMoney/phoenix-postgres-react | b51c298fdcef339324a601dd874a82e1e0cc8e6e | [
"MIT"
] | 1 | 2021-03-09T11:33:04.000Z | 2021-03-09T11:33:04.000Z | test/test_helper.exs | CTMoney/phoenix_ | b51c298fdcef339324a601dd874a82e1e0cc8e6e | [
"MIT"
] | null | null | null | ExUnit.start()
Ecto.Adapters.SQL.Sandbox.mode(PhoenixPostgresReact.Repo, :manual)
| 27.333333 | 66 | 0.817073 |
d5e8b4f6350d3b3c2c9b8c5737e129735d313b8c | 2,400 | ex | Elixir | lib/brodex/message.ex | chulkilee/brodex | 3061a8d522ef201da7b79b3b4427c678497ee2b1 | [
"Apache-2.0"
] | null | null | null | lib/brodex/message.ex | chulkilee/brodex | 3061a8d522ef201da7b79b3b4427c678497ee2b1 | [
"Apache-2.0"
] | null | null | null | lib/brodex/message.ex | chulkilee/brodex | 3061a8d522ef201da7b79b3b4427c678497ee2b1 | [
"Apache-2.0"
] | null | null | null | defmodule Brodex.Message do
@moduledoc """
Represents a Kafka message.
Wrapper of [`:brod.message`](https://hexdocs.pm/brod/brod.html#type-message).
"""
require Record
@type t :: %__MODULE__{
offset: Brodex.offest(),
key: Brodex.key(),
value: Brodex.value(),
ts_typ... | 28.915663 | 105 | 0.580833 |
d5e8c3cb7eb2de6be05ae6e10a2afcbf019786f1 | 468 | ex | Elixir | apps/core/lib/core/medication_dispenses/search.ex | ehealth-ua/ehealth.api | 4ffe26a464fe40c95fb841a4aa2e147068f65ca2 | [
"Apache-2.0"
] | 8 | 2019-06-14T11:34:49.000Z | 2021-08-05T19:14:24.000Z | apps/core/lib/core/medication_dispenses/search.ex | edenlabllc/ehealth.api.public | 4ffe26a464fe40c95fb841a4aa2e147068f65ca2 | [
"Apache-2.0"
] | 1 | 2019-07-08T15:20:22.000Z | 2019-07-08T15:20:22.000Z | apps/core/lib/core/medication_dispenses/search.ex | ehealth-ua/ehealth.api | 4ffe26a464fe40c95fb841a4aa2e147068f65ca2 | [
"Apache-2.0"
] | 6 | 2018-05-11T13:59:32.000Z | 2022-01-19T20:15:22.000Z | defmodule Core.MedicationDispenses.Search do
@moduledoc false
use Ecto.Schema
@primary_key false
embedded_schema do
field(:id, Ecto.UUID)
field(:medication_request_id, Ecto.UUID)
field(:legal_entity_id, Ecto.UUID)
field(:division_id, Ecto.UUID)
field(:status, :string)
field(:dispensed_... | 23.4 | 44 | 0.700855 |
d5e8c47c1bef4fcd6b83561d5cc1787e65f008c7 | 1,124 | ex | Elixir | lib/astarte_flow_web/router.ex | Pavinati/astarte_flow | 82b6bee82e23907f7623a94a072239591b19b9d8 | [
"Apache-2.0"
] | 11 | 2020-01-30T17:44:35.000Z | 2022-01-13T19:17:21.000Z | lib/astarte_flow_web/router.ex | Pavinati/astarte_flow | 82b6bee82e23907f7623a94a072239591b19b9d8 | [
"Apache-2.0"
] | 100 | 2020-02-11T10:01:35.000Z | 2022-02-17T10:39:35.000Z | lib/astarte_flow_web/router.ex | Pavinati/astarte_flow | 82b6bee82e23907f7623a94a072239591b19b9d8 | [
"Apache-2.0"
] | 7 | 2020-01-30T11:33:20.000Z | 2021-05-03T09:48:41.000Z | #
# 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.378378 | 93 | 0.720641 |
d5e8e26052f30092a64841aeed65e48eeb2ceaa7 | 1,652 | exs | Elixir | config/config.exs | ojizero/soulerl | 386fe71d2dd000571aa3bab284673be1ac77507b | [
"MIT"
] | null | null | null | config/config.exs | ojizero/soulerl | 386fe71d2dd000571aa3bab284673be1ac77507b | [
"MIT"
] | null | null | null | config/config.exs | ojizero/soulerl | 386fe71d2dd000571aa3bab284673be1ac77507b | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Config module.
#
# This configuration file is loaded before any dependency and
# is restricted to this project.
# General application configuration
import Config
# Configures the endpoint
config :soulerl, SoulerlWeb... | 33.04 | 117 | 0.733051 |
d5e90576999faea47dc6875340424feff070ce27 | 145 | exs | Elixir | .formatter.exs | NFIBrokerage/spear | 611223d2cdba97daa63f2ddd81a08b4f55e72198 | [
"Apache-2.0"
] | 34 | 2021-04-15T22:16:38.000Z | 2022-03-11T10:20:11.000Z | .formatter.exs | NFIBrokerage/spear | 611223d2cdba97daa63f2ddd81a08b4f55e72198 | [
"Apache-2.0"
] | 32 | 2021-04-05T18:07:35.000Z | 2021-11-04T19:32:58.000Z | .formatter.exs | NFIBrokerage/spear | 611223d2cdba97daa63f2ddd81a08b4f55e72198 | [
"Apache-2.0"
] | 1 | 2021-10-11T15:53:42.000Z | 2021-10-11T15:53:42.000Z | # Used by "mix format"
[
inputs: ["{mix,.formatter}.exs", "{config,lib,test}/**/*.{ex,exs}"],
import_deps: [],
locals_without_parens: []
]
| 20.714286 | 70 | 0.593103 |
d5e90b8564ed1055b60ac63407bb49b5e5552f50 | 3,310 | ex | Elixir | lib/web/controllers/export_jipt_controller.ex | raphpap/accent | 1669582c72f1e0f30e78f02ad2be3e674929a4cb | [
"BSD-3-Clause"
] | null | null | null | lib/web/controllers/export_jipt_controller.ex | raphpap/accent | 1669582c72f1e0f30e78f02ad2be3e674929a4cb | [
"BSD-3-Clause"
] | null | null | null | lib/web/controllers/export_jipt_controller.ex | raphpap/accent | 1669582c72f1e0f30e78f02ad2be3e674929a4cb | [
"BSD-3-Clause"
] | null | null | null | defmodule Accent.ExportJIPTController do
use Plug.Builder
import Canary.Plugs
alias Accent.Scopes.Document, as: DocumentScope
alias Accent.Scopes.Translation, as: Scope
alias Accent.Scopes.Version, as: VersionScope
alias Accent.{
Document,
Project,
Repo,
Translation,
Version
}
pl... | 25.461538 | 124 | 0.643505 |
d5e930c1c3c13514225bba445e0d0293e36930a5 | 765 | ex | Elixir | source/backend/api_app/lib/api_app/application.ex | edwinvautier/aio-group3-proj01 | 2ca3d834f358a38692e8ae4d6266bbea130a6cb5 | [
"MIT"
] | 3 | 2020-04-05T15:26:55.000Z | 2020-06-17T15:01:33.000Z | source/backend/api_app/lib/api_app/application.ex | edwinvautier/aio-group3-proj01 | 2ca3d834f358a38692e8ae4d6266bbea130a6cb5 | [
"MIT"
] | 48 | 2020-04-01T16:00:47.000Z | 2020-04-28T16:22:12.000Z | source/backend/api_app/lib/api_app/application.ex | edwinvautier/aio-group3-proj01 | 2ca3d834f358a38692e8ae4d6266bbea130a6cb5 | [
"MIT"
] | 4 | 2020-03-30T15:36:55.000Z | 2020-06-17T15:01:36.000Z | defmodule ApiApp.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 = [
ApiApp.Repo,
ApiAppWeb.Telemetry,
ApiAppW... | 26.37931 | 60 | 0.720261 |
d5e9734875ac1c2ef172824da507f3ecb4c78fb4 | 354 | exs | Elixir | apps/omg_watcher_info/priv/repo/migrations/20180813131000_create_block_table.exs | boolafish/elixir-omg | 46b568404972f6e4b4da3195d42d4fb622edb934 | [
"Apache-2.0"
] | 177 | 2018-08-24T03:51:02.000Z | 2020-05-30T13:29:25.000Z | apps/omg_watcher_info/priv/repo/migrations/20180813131000_create_block_table.exs | boolafish/elixir-omg | 46b568404972f6e4b4da3195d42d4fb622edb934 | [
"Apache-2.0"
] | 1,042 | 2018-08-25T00:52:39.000Z | 2020-06-01T05:15:17.000Z | apps/omg_watcher_info/priv/repo/migrations/20180813131000_create_block_table.exs | boolafish/elixir-omg | 46b568404972f6e4b4da3195d42d4fb622edb934 | [
"Apache-2.0"
] | 47 | 2018-08-24T12:06:33.000Z | 2020-04-28T11:49:25.000Z | defmodule OMG.WatcherInfo.Repo.Migrations.CreateBlockTable do
use Ecto.Migration
def change() do
create table(:blocks, primary_key: false) do
add :blknum, :bigint, null: false, primary_key: true
add :hash, :binary, null: false
add :timestamp, :integer, null: false
add :eth_height, :bigi... | 27.230769 | 61 | 0.686441 |
d5e9a84e950abac4fad13d916e04e22f5297a033 | 25 | ex | Elixir | lib/changex.ex | georgelima/changex | cb91da8c3b10c05acafd1fd49dae4ed6365a197b | [
"MIT"
] | 39 | 2015-02-12T11:49:52.000Z | 2021-09-04T06:18:00.000Z | lib/changex.ex | georgelima/changex | cb91da8c3b10c05acafd1fd49dae4ed6365a197b | [
"MIT"
] | 2 | 2017-06-22T11:34:52.000Z | 2022-03-20T13:32:23.000Z | lib/changex.ex | georgelima/changex | cb91da8c3b10c05acafd1fd49dae4ed6365a197b | [
"MIT"
] | 4 | 2016-05-19T15:01:27.000Z | 2022-03-14T15:46:31.000Z | defmodule Changex do
end
| 8.333333 | 20 | 0.84 |
d5e9bdf8bea3fa61eed2c19659f4af83f709a735 | 2,004 | exs | Elixir | mix.exs | fazibear/kiosk_system_amdgpu_x86_64 | ab083e14d13d1caa3a050960cdccdb43b47dfe1e | [
"Apache-2.0"
] | null | null | null | mix.exs | fazibear/kiosk_system_amdgpu_x86_64 | ab083e14d13d1caa3a050960cdccdb43b47dfe1e | [
"Apache-2.0"
] | null | null | null | mix.exs | fazibear/kiosk_system_amdgpu_x86_64 | ab083e14d13d1caa3a050960cdccdb43b47dfe1e | [
"Apache-2.0"
] | null | null | null | defmodule KioskSystemx8664.Mixfile do
use Mix.Project
@app :kiosk_system_amdgpu_x86_64
@version Path.join(__DIR__, "VERSION")
|> File.read!
|> String.trim
def project do
[
app: @app,
version: @version,
elixir: "~> 1.4",
compilers: Mix.compilers ++ [:nerves_package],
n... | 21.094737 | 81 | 0.565369 |
d5e9bf5f752d13e346f8ca0d5f6d175fd28751a6 | 579 | exs | Elixir | test/test_helper.exs | smedegaard/firmata | 080ef4f3be84c5e84a840da5e406cac8d9a92d72 | [
"ISC"
] | 30 | 2017-08-17T23:06:42.000Z | 2021-06-22T04:42:22.000Z | test/test_helper.exs | smedegaard/firmata | 080ef4f3be84c5e84a840da5e406cac8d9a92d72 | [
"ISC"
] | 2 | 2017-08-17T23:11:22.000Z | 2020-09-17T14:21:48.000Z | test/test_helper.exs | smedegaard/firmata | 080ef4f3be84c5e84a840da5e406cac8d9a92d72 | [
"ISC"
] | 7 | 2016-05-09T16:53:26.000Z | 2017-03-13T04:46:56.000Z | defmodule FirmataTest.Helper do
defmacro __using__(_) do
quote location: :keep do
use Firmata.Protocol.Mixin
@low_pins 1..20 |> Enum.map(fn(_) -> [value: 0] end)
@high_pins 1..20 |> Enum.map(fn(_) -> [value: 1] end)
@high 1
@low 0
defp high(pins, index), do: set_pin(pins, inde... | 25.173913 | 61 | 0.585492 |
d5e9d68ba9bfdc7561ce3dbea65f87bea1369cdb | 663 | exs | Elixir | src/basic/06_anonymous-function.exs | mkdika/learn-elixir | f66defe8c7255f2b36dcf668e10389b0f2b0985a | [
"MIT"
] | null | null | null | src/basic/06_anonymous-function.exs | mkdika/learn-elixir | f66defe8c7255f2b36dcf668e10389b0f2b0985a | [
"MIT"
] | null | null | null | src/basic/06_anonymous-function.exs | mkdika/learn-elixir | f66defe8c7255f2b36dcf668e10389b0f2b0985a | [
"MIT"
] | null | null | null | # pass function to variable and use it
# use syntax fn..end
sum = fn (a, b) -> a + b end
r1 = sum.(2,3)
IO.puts r1
# function without param
greet = fn -> IO.puts "Hello" end
greet.()
# function can be ommited the parentheses
fun1 = fn a,b -> a * b end
r2 = fun1.(3,4)
IO.puts r2
# function and pattern matching
swap ... | 21.387097 | 53 | 0.648567 |
d5e9e3431ff6cb0225b5055ff8d1e2f584466bfe | 13,305 | exs | Elixir | apps/graphql/test/mutations/repository_mutation_test.exs | michaeljguarino/forge | 50ee583ecb4aad5dee4ef08fce29a8eaed1a0824 | [
"Apache-2.0"
] | null | null | null | apps/graphql/test/mutations/repository_mutation_test.exs | michaeljguarino/forge | 50ee583ecb4aad5dee4ef08fce29a8eaed1a0824 | [
"Apache-2.0"
] | 2 | 2019-12-13T23:55:50.000Z | 2019-12-17T05:49:58.000Z | apps/graphql/test/mutations/repository_mutation_test.exs | michaeljguarino/chartmart | a34c949cc29d6a1ab91c04c5e4f797e6f0daabfc | [
"Apache-2.0"
] | null | null | null | defmodule GraphQl.RepositoryMutationsTest do
use Core.SchemaCase, async: true
import GraphQl.TestHelpers
use Mimic
describe "createRepository" do
test "A user can create a repo for his publisher" do
%{owner: user, id: id} = insert(:publisher)
{:ok, %{data: %{"createRepository" => repo}}} = run... | 31.754177 | 130 | 0.52687 |
d5ea284c67708b5e9f9afbf1c6c86e91b51c4f5d | 1,095 | exs | Elixir | mix.exs | juulSme/highlander | 67dce6d2379f4cd6c85bba6936a08c6c0fed905b | [
"MIT"
] | null | null | null | mix.exs | juulSme/highlander | 67dce6d2379f4cd6c85bba6936a08c6c0fed905b | [
"MIT"
] | null | null | null | mix.exs | juulSme/highlander | 67dce6d2379f4cd6c85bba6936a08c6c0fed905b | [
"MIT"
] | null | null | null | defmodule Highlander.MixProject do
use Mix.Project
def project do
[
app: :highlander,
version: "0.2.1",
elixir: "~> 1.9",
start_permanent: Mix.env() == :prod,
deps: deps(),
package: package(),
name: "Highlander",
source_url: "https://github.com/derekkraan/highlan... | 23.804348 | 70 | 0.585388 |
d5ea5a0f8ee95a984eaea414611eee3f2a541d69 | 1,105 | ex | Elixir | test/support/channel_case.ex | ramonlimaramos/phxpay | accf0ada9581a8f8f396849fdfe10e1a1c4ae2af | [
"MIT"
] | null | null | null | test/support/channel_case.ex | ramonlimaramos/phxpay | accf0ada9581a8f8f396849fdfe10e1a1c4ae2af | [
"MIT"
] | null | null | null | test/support/channel_case.ex | ramonlimaramos/phxpay | accf0ada9581a8f8f396849fdfe10e1a1c4ae2af | [
"MIT"
] | null | null | null | defmodule PhxpayWeb.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 data structures and query the data layer.
Finally, if the test case interacts wi... | 26.95122 | 68 | 0.725792 |
d5ea68f4c4897a59fa417538dac1cbb6974203c7 | 9,926 | ex | Elixir | lib/codes/codes_m40.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_m40.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_m40.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | defmodule IcdCode.ICDCode.Codes_M40 do
alias IcdCode.ICDCode
def _M4000 do
%ICDCode{full_code: "M4000",
category_code: "M40",
short_code: "00",
full_name: "Postural kyphosis, site unspecified",
short_name: "Postural kyphosis, site unspecified",
category_name: "Po... | 34.706294 | 75 | 0.621197 |
d5ea72241d7bf3d9fba26a24650272642fd99e13 | 6,563 | ex | Elixir | lib/repo/repo.ex | emaiax/ex_audit | c4c20392300499a927733cb755449c2484467bf6 | [
"MIT"
] | null | null | null | lib/repo/repo.ex | emaiax/ex_audit | c4c20392300499a927733cb755449c2484467bf6 | [
"MIT"
] | null | null | null | lib/repo/repo.ex | emaiax/ex_audit | c4c20392300499a927733cb755449c2484467bf6 | [
"MIT"
] | null | null | null | defmodule ExAudit.Repo do
@moduledoc """
Adds ExAudit version tracking to your Ecto.Repo actions. The following functions are
extended to detect if the given struct or changeset is in the list of :tracked_schemas
given in :ex_audit config:
insert: 2,
update: 2,
insert_or_update: 2,
delete: 2,
... | 27.345833 | 115 | 0.581289 |
d5ea802cb8062958fbcbd0d51500c05198f1fddc | 1,724 | exs | Elixir | test/cortex/reloader_test.exs | dmitrykleymenov/cortex | b2897306c6cda6683c80b3d4b24cbcdfd5bedd60 | [
"MIT"
] | 406 | 2017-06-23T23:44:28.000Z | 2022-01-11T14:07:22.000Z | test/cortex/reloader_test.exs | urbint/sentinel | b2897306c6cda6683c80b3d4b24cbcdfd5bedd60 | [
"MIT"
] | 33 | 2017-06-25T01:59:25.000Z | 2021-05-15T13:34:02.000Z | test/cortex/reloader_test.exs | dmitrykleymenov/cortex | b2897306c6cda6683c80b3d4b24cbcdfd5bedd60 | [
"MIT"
] | 20 | 2017-06-24T20:48:58.000Z | 2021-05-15T05:39:48.000Z | defmodule Cortex.ReloaderTest do
use ExUnit.Case
alias Cortex.Reloader
@fixture_path Application.get_env(:cortex, :fixture_path, "test/fixtures")
defp fixture_for(path) do
Path.join(@fixture_path, path)
end
setup do
{:ok, initial_state} = Reloader.init([])
{:ok, state: initial_state}
end
... | 26.121212 | 88 | 0.633991 |
d5ea9c4133fffb52e3b0ae100e13e83d0f28c2d5 | 2,987 | exs | Elixir | test/controllers/auth_controller_test.exs | dlederle/tilex | 63520eeb013a2a18174de0b6e41e8b99977dbc20 | [
"MIT"
] | 1 | 2018-11-20T15:23:59.000Z | 2018-11-20T15:23:59.000Z | test/controllers/auth_controller_test.exs | dlederle/tilex | 63520eeb013a2a18174de0b6e41e8b99977dbc20 | [
"MIT"
] | 14 | 2018-10-29T09:43:13.000Z | 2019-01-18T11:06:08.000Z | test/controllers/auth_controller_test.exs | dlederle/tilex | 63520eeb013a2a18174de0b6e41e8b99977dbc20 | [
"MIT"
] | 1 | 2019-12-02T08:59:45.000Z | 2019-12-02T08:59:45.000Z | defmodule Tilex.AuthControllerTest do
use TilexWeb.ConnCase
alias Tilex.Factory
test "GET /auth/google/callback with hashrocket email", %{conn: conn} do
ueberauth_auth =
ueberauth_struct("developer@hashrocket.com", "Ricky Rocketeer", "186823978541230597895")
conn = assign(conn, :ueberauth_auth, u... | 33.188889 | 94 | 0.696016 |
d5eac72a3b758d21e8b065c163ea9a6dbfdd79a7 | 1,179 | ex | Elixir | lib/bbb_lti_web/admin/logout_button_extension.ex | IBM/bbb_l | 01d2a2ad9a7056b02f6f0d85f17949126256c549 | [
"Apache-2.0"
] | null | null | null | lib/bbb_lti_web/admin/logout_button_extension.ex | IBM/bbb_l | 01d2a2ad9a7056b02f6f0d85f17949126256c549 | [
"Apache-2.0"
] | null | null | null | lib/bbb_lti_web/admin/logout_button_extension.ex | IBM/bbb_l | 01d2a2ad9a7056b02f6f0d85f17949126256c549 | [
"Apache-2.0"
] | null | null | null | defmodule BbbLtiWeb.Admin.LogoutButtonExtension do
@moduledoc """
Adds a 'Log Out' button to the Kaffy navbar, at the time of writing this
Kaffy does not support custom links in the navbar.
"""
use Phoenix.HTML
alias BbbLtiWeb.Router.Helpers, as: Routes
def javascripts(conn) do
~E"""
<script>
... | 23.58 | 110 | 0.592875 |
d5eac90d77cb0043d1ca86c89afa5c2d5bb032e6 | 620 | exs | Elixir | current/server/mix.exs | aosteraas/weather | 56bbf9e3dfa811860be2dd2b6cc801574983ef7e | [
"CC-BY-3.0"
] | null | null | null | current/server/mix.exs | aosteraas/weather | 56bbf9e3dfa811860be2dd2b6cc801574983ef7e | [
"CC-BY-3.0"
] | 7 | 2020-09-05T02:06:15.000Z | 2022-02-26T12:10:05.000Z | current/server/mix.exs | aosteraas/weather | 56bbf9e3dfa811860be2dd2b6cc801574983ef7e | [
"CC-BY-3.0"
] | null | null | null | defmodule Weather.MixProject do
use Mix.Project
def project do
[
app: :weather,
version: "0.1.0",
elixir: "~> 1.8",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_app... | 19.375 | 61 | 0.537097 |
d5ead334240dc70800ba64689c65418fdaee5cd6 | 1,084 | ex | Elixir | lib/jsonapi/utils/include_tree.ex | snewcomer/jsonapi | 3ed41d5c133fce5554b75a983daeb20e4f471c95 | [
"MIT"
] | 442 | 2015-06-22T00:24:07.000Z | 2021-12-07T21:09:38.000Z | lib/jsonapi/utils/include_tree.ex | snewcomer/jsonapi | 3ed41d5c133fce5554b75a983daeb20e4f471c95 | [
"MIT"
] | 202 | 2015-06-21T18:09:54.000Z | 2021-12-13T15:11:02.000Z | lib/jsonapi/utils/include_tree.ex | snewcomer/jsonapi | 3ed41d5c133fce5554b75a983daeb20e4f471c95 | [
"MIT"
] | 86 | 2015-06-22T16:04:25.000Z | 2021-07-25T08:39:03.000Z | defmodule JSONAPI.Utils.IncludeTree do
@moduledoc """
Internal utility for building trees of resource relationships
"""
@spec put_as_tree(term(), term(), term()) :: term()
def put_as_tree(acc, items, val) do
[head | tail] = Enum.reverse(items)
build_tree(Keyword.put(acc, head, val), tail)
end
de... | 27.1 | 80 | 0.667897 |
d5eae3a31a0a313953852d1c496f96bd8504623d | 1,766 | exs | Elixir | mix.exs | ProtoJazz/elixir-shopifyapi | 759e20baff5afdff235386193bc42b2ecd343f5d | [
"Apache-2.0"
] | null | null | null | mix.exs | ProtoJazz/elixir-shopifyapi | 759e20baff5afdff235386193bc42b2ecd343f5d | [
"Apache-2.0"
] | null | null | null | mix.exs | ProtoJazz/elixir-shopifyapi | 759e20baff5afdff235386193bc42b2ecd343f5d | [
"Apache-2.0"
] | null | null | null | defmodule Plug.ShopifyAPI.MixProject do
use Mix.Project
@version "0.9.1"
def project do
[
app: :shopify_api,
version: @version,
elixir: "~> 1.9",
start_permanent: Mix.env() == :prod,
deps: deps(),
dialyzer: [plt_add_deps: :transitive, plt_file: {:no_warn, "priv/plts/dialy... | 25.970588 | 92 | 0.535674 |
d5eb094679e809e342471409abeeadb7e6dab3f9 | 3,499 | ex | Elixir | lib/number/human.ex | aai/number | bb4598d62179a0870dc5a20dc0eefad0aa717fc3 | [
"MIT"
] | null | null | null | lib/number/human.ex | aai/number | bb4598d62179a0870dc5a20dc0eefad0aa717fc3 | [
"MIT"
] | null | null | null | lib/number/human.ex | aai/number | bb4598d62179a0870dc5a20dc0eefad0aa717fc3 | [
"MIT"
] | null | null | null | defmodule Number.Human do
@moduledoc """
Provides functions for converting numbers into more human readable strings.
"""
import Number.Delimit, only: [number_to_delimited: 2]
import Decimal, only: [cmp: 2]
@doc """
Formats and labels a number with the appropriate English word.
## Examples
iex>... | 26.709924 | 114 | 0.628465 |
d5eb3bdf8857012f9f56052a4102aa9341dfb69e | 12,057 | ex | Elixir | deps/gettext/lib/gettext/extractor.ex | rchervin/phoenixportfolio | a5a6a60168d7261647a10a8dbd395b440db8a4f9 | [
"MIT"
] | 1 | 2020-01-31T10:23:37.000Z | 2020-01-31T10:23:37.000Z | deps/gettext/lib/gettext/extractor.ex | rchervin/phoenixportfolio | a5a6a60168d7261647a10a8dbd395b440db8a4f9 | [
"MIT"
] | null | null | null | deps/gettext/lib/gettext/extractor.ex | rchervin/phoenixportfolio | a5a6a60168d7261647a10a8dbd395b440db8a4f9 | [
"MIT"
] | null | null | null | defmodule Gettext.Extractor do
@moduledoc false
# This module is responsible for extracting translations (it's called from the
# *gettext macros) and dumping those translations to POT files, merging with
# existing POT files if necessary.
#
# ## Ordering
#
# Ordering is mostly taken care of in merge_te... | 37.212963 | 112 | 0.68566 |
d5ebe9bea097e8eca6f3c4a0fe39f00fa562f574 | 1,486 | ex | Elixir | mindcrunch/lib/mindcrunch_web/views/error_helpers.ex | dtangster/cmpe210-project | bdc482e6dde315316d9aa05d13be7b0fe6959786 | [
"MIT"
] | null | null | null | mindcrunch/lib/mindcrunch_web/views/error_helpers.ex | dtangster/cmpe210-project | bdc482e6dde315316d9aa05d13be7b0fe6959786 | [
"MIT"
] | null | null | null | mindcrunch/lib/mindcrunch_web/views/error_helpers.ex | dtangster/cmpe210-project | bdc482e6dde315316d9aa05d13be7b0fe6959786 | [
"MIT"
] | null | null | null | defmodule MindcrunchWeb.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 |
d5ec0fab7a20f9aaf29a8ddbd7caeee7211eeb02 | 1,959 | exs | Elixir | mix.exs | glassechidna/MongooseICE | c2ea99f47460fd7293b51eaa72fbce122a60affe | [
"Apache-2.0"
] | null | null | null | mix.exs | glassechidna/MongooseICE | c2ea99f47460fd7293b51eaa72fbce122a60affe | [
"Apache-2.0"
] | null | null | null | mix.exs | glassechidna/MongooseICE | c2ea99f47460fd7293b51eaa72fbce122a60affe | [
"Apache-2.0"
] | null | null | null | defmodule MongooseICE.Mixfile do
use Mix.Project
def project do
[app: :mongooseice,
version: "0.4.1",
name: "MongooseICE",
description: "STUN/TURN server",
source_url: "https://github.com/esl/mongooseice",
homepage_url: "http://mongooseim.readthedocs.io",
elixir: "~> 1.6",
el... | 27.985714 | 64 | 0.600817 |
d5ec1476331aac608716fccc1c12c505592074fd | 3,383 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/router_status_nat_status.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | 1 | 2021-10-01T09:20:41.000Z | 2021-10-01T09:20:41.000Z | clients/compute/lib/google_api/compute/v1/model/router_status_nat_status.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/router_status_nat_status.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 49.75 | 294 | 0.69997 |
d5ec198e4427e22797cf2479e286d7683fb0057e | 1,771 | exs | Elixir | mix.exs | nativesintech/creek-dictionary-admin | 14bfd6c364010a1c905f97cd9388bad0a40589bc | [
"MIT"
] | null | null | null | mix.exs | nativesintech/creek-dictionary-admin | 14bfd6c364010a1c905f97cd9388bad0a40589bc | [
"MIT"
] | 7 | 2019-09-20T02:00:23.000Z | 2019-10-07T04:22:51.000Z | mix.exs | nativesintech/creek-dictionary-admin | 14bfd6c364010a1c905f97cd9388bad0a40589bc | [
"MIT"
] | null | null | null | defmodule CreekDictAdmin.MixProject do
use Mix.Project
def project do
[
app: :creek_dict_admin,
version: "0.1.0",
elixir: "~> 1.5",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix, :gettext] ++ Mix.compilers(),
start_permanent: Mix.env() == :prod,
aliases... | 26.833333 | 79 | 0.571993 |
d5ec29bd3d00a37296fa51d2c8c6f1e30a1297bd | 2,449 | ex | Elixir | lib/google_api/pub_sub/v1/model/expr.ex | balena/elixir-google-api-pubsub | 40a089e324effd7e17dac21279e4dd1bd3f8fe19 | [
"Apache-2.0"
] | null | null | null | lib/google_api/pub_sub/v1/model/expr.ex | balena/elixir-google-api-pubsub | 40a089e324effd7e17dac21279e4dd1bd3f8fe19 | [
"Apache-2.0"
] | null | null | null | lib/google_api/pub_sub/v1/model/expr.ex | balena/elixir-google-api-pubsub | 40a089e324effd7e17dac21279e4dd1bd3f8fe19 | [
"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... | 36.014706 | 131 | 0.699061 |
d5ec6470f5e35f162faaeb83b479813aed28b338 | 631 | ex | Elixir | lib/observables/combineLatest_n.ex | DriesDeBackker/observables-extended | c4f66384369e8a827337451ba9d10f5c9fc4701c | [
"MIT"
] | 2 | 2019-07-18T12:44:08.000Z | 2019-07-18T13:50:42.000Z | lib/observables/combineLatest_n.ex | DriesDeBackker/observables-extended | c4f66384369e8a827337451ba9d10f5c9fc4701c | [
"MIT"
] | null | null | null | lib/observables/combineLatest_n.ex | DriesDeBackker/observables-extended | c4f66384369e8a827337451ba9d10f5c9fc4701c | [
"MIT"
] | null | null | null | defmodule Observables.Operator.CombineLatestN do
@moduledoc false
use Observables.GenObservable
require Logger
def init([initials]) do
Logger.debug("CombineLatestN: #{inspect(self())}")
{:ok, initials}
end
def handle_event({index, value}, state) do
new_state = state |> List.replace_at(index, va... | 25.24 | 89 | 0.681458 |
d5ec651b59010ae456abf36282ead7b5fc387d9f | 86 | ex | Elixir | testData/org/elixir_lang/parser_definition/interpolated_words_line_parsing_test_case/EscapeSequences.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/interpolated_words_line_parsing_test_case/EscapeSequences.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/interpolated_words_line_parsing_test_case/EscapeSequences.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 145 | 2015-01-15T11:37:16.000Z | 2021-12-22T05:51:02.000Z | ~w'
\'
\#{}
\"
\0
\1
\a
\b
\d
\e
\f
\b
\r
\s
\v
\u1234
\u{100000}
\x12
\x{100000}
\
'
| 3.909091 | 10 | 0.395349 |
d5ec6a8fc162df4c46122e22d96cce81443e75bc | 846 | ex | Elixir | lib/mail_slurp_api/model/tracking_pixel_dto.ex | mailslurp/mailslurp-client-elixir | 5b98b91bb327de5216e873cd45b4fbb3c1b55c90 | [
"MIT"
] | 1 | 2021-06-17T18:07:49.000Z | 2021-06-17T18:07:49.000Z | lib/mail_slurp_api/model/tracking_pixel_dto.ex | mailslurp/mailslurp-client-elixir | 5b98b91bb327de5216e873cd45b4fbb3c1b55c90 | [
"MIT"
] | null | null | null | lib/mail_slurp_api/model/tracking_pixel_dto.ex | mailslurp/mailslurp-client-elixir | 5b98b91bb327de5216e873cd45b4fbb3c1b55c90 | [
"MIT"
] | 1 | 2021-03-16T18:55:56.000Z | 2021-03-16T18:55:56.000Z | # NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
# https://openapi-generator.tech
# Do not edit the class manually.
defmodule MailSlurpAPI.Model.TrackingPixelDto do
@moduledoc """
"""
@derive [Poison.Encoder]
defstruct [
:"createdAt",
:"html",
:"id",
... | 20.142857 | 91 | 0.593381 |
d5ecce9998110751211ae266221b4ad987e5e112 | 556 | exs | Elixir | priv/repo/migrations/20180411032348_create_communities_subscribers.exs | coderplanets/coderplanets_server | 3663e56340d6d050e974c91f7e499d8424fc25e9 | [
"Apache-2.0"
] | 240 | 2018-11-06T09:36:54.000Z | 2022-02-20T07:12:36.000Z | priv/repo/migrations/20180411032348_create_communities_subscribers.exs | coderplanets/coderplanets_server | 3663e56340d6d050e974c91f7e499d8424fc25e9 | [
"Apache-2.0"
] | 363 | 2018-07-11T03:38:14.000Z | 2021-12-14T01:42:40.000Z | priv/repo/migrations/20180411032348_create_communities_subscribers.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.CreateCommunitiesSubscribers do
use Ecto.Migration
def change do
create table(:communities_subscribers) do
add(:user_id, references(:users, on_delete: :delete_all), null: false)
add(:community_id, references(:communities, on_delete: :delete_all), null: false... | 32.705882 | 87 | 0.742806 |
d5ecd165961500c7e30c258a7652c095883e7809 | 118 | exs | Elixir | test/apiproxy_test.exs | cmilan/apiproxy | 9d53c246ae7a5941c1c979e773e56d89c57cc60e | [
"Apache-2.0"
] | 1 | 2015-07-26T13:05:24.000Z | 2015-07-26T13:05:24.000Z | test/apiproxy_test.exs | cmilan/apiproxy | 9d53c246ae7a5941c1c979e773e56d89c57cc60e | [
"Apache-2.0"
] | null | null | null | test/apiproxy_test.exs | cmilan/apiproxy | 9d53c246ae7a5941c1c979e773e56d89c57cc60e | [
"Apache-2.0"
] | null | null | null | defmodule ApiproxyTest do
use ExUnit.Case
doctest Apiproxy
test "the truth" do
assert 1 + 1 == 2
end
end
| 13.111111 | 25 | 0.677966 |
d5ecee687069b1ab7cf3027604f6b7b7c7e0cd23 | 1,361 | exs | Elixir | config/config.exs | kurtlenfesty/cross_validator_graphiql_demo | f609c19f71025cbd82f1ebebd952fed4e983d10d | [
"MIT"
] | null | null | null | config/config.exs | kurtlenfesty/cross_validator_graphiql_demo | f609c19f71025cbd82f1ebebd952fed4e983d10d | [
"MIT"
] | null | null | null | config/config.exs | kurtlenfesty/cross_validator_graphiql_demo | f609c19f71025cbd82f1ebebd952fed4e983d10d | [
"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
config :cross_validator, CrossValidator.Repo,
... | 34.025 | 102 | 0.773696 |
d5ecf34cb91cd5bde461d463cc9083720c00b177 | 3,081 | exs | Elixir | mix.exs | Youimmi/typed_struct | 7c26d1654097476ebae9944ba6675a0f3fd21e9d | [
"MIT"
] | null | null | null | mix.exs | Youimmi/typed_struct | 7c26d1654097476ebae9944ba6675a0f3fd21e9d | [
"MIT"
] | null | null | null | mix.exs | Youimmi/typed_struct | 7c26d1654097476ebae9944ba6675a0f3fd21e9d | [
"MIT"
] | null | null | null | defmodule TypedStruct.MixProject do
use Mix.Project
@version "0.3.0"
@repo_url "https://github.com/ejpcmac/typed_struct"
def project do
[
app: :typed_struct,
version: @version,
elixir: "~> 1.6",
start_permanent: Mix.env() == :prod,
deps: deps(),
# Tools
dialyzer:... | 25.04878 | 78 | 0.551444 |
d5ed2f01a07a2d6429dccd89de6c288f92e53e5d | 822 | exs | Elixir | lib/mix/test/mix/tasks/clean_test.exs | MSch/elixir | fc42dc9bb76ec1fdcfcbdbfb11fea6a845a62fca | [
"Apache-2.0"
] | null | null | null | lib/mix/test/mix/tasks/clean_test.exs | MSch/elixir | fc42dc9bb76ec1fdcfcbdbfb11fea6a845a62fca | [
"Apache-2.0"
] | null | null | null | lib/mix/test/mix/tasks/clean_test.exs | MSch/elixir | fc42dc9bb76ec1fdcfcbdbfb11fea6a845a62fca | [
"Apache-2.0"
] | null | null | null | Code.require_file "../../test_helper.exs", __DIR__
defmodule Mix.Tasks.CleanTest do
use MixTest.Case
defmodule DepsApp do
def project do
[
app: :sample,
version: "0.1.0",
deps: [
{ :tidy, "0.1.0", path: "elixir-lang/tidy" }
]
]
end
end
test "compi... | 21.631579 | 83 | 0.593674 |
d5ed323a2635710d18d2208d1fb1a4971b38631f | 2,837 | exs | Elixir | apps/playground_web/config/prod.exs | kimlindholm/elixir_playground | 2a44404996b98d88e40faaee4f6b3a546618a1fd | [
"MIT"
] | null | null | null | apps/playground_web/config/prod.exs | kimlindholm/elixir_playground | 2a44404996b98d88e40faaee4f6b3a546618a1fd | [
"MIT"
] | null | null | null | apps/playground_web/config/prod.exs | kimlindholm/elixir_playground | 2a44404996b98d88e40faaee4f6b3a546618a1fd | [
"MIT"
] | null | null | null | # Since configuration is shared in umbrella projects, this file
# should only configure the :playground_web application itself
# and only for organization purposes. All other config goes to
# the umbrella root.
use Mix.Config
# For production, don't forget to configure the url host
# to something meaningful, Phoenix u... | 35.024691 | 69 | 0.722947 |
d5ed5990d54f4cd4ff3d3524d0f5ff63697b9ba9 | 2,424 | exs | Elixir | scripts/rebuild_tarballs.exs | findmypast/hexfmp | 38a50f5e1057833fd98748faac230bf4b9cc26a3 | [
"Apache-2.0"
] | null | null | null | scripts/rebuild_tarballs.exs | findmypast/hexfmp | 38a50f5e1057833fd98748faac230bf4b9cc26a3 | [
"Apache-2.0"
] | null | null | null | scripts/rebuild_tarballs.exs | findmypast/hexfmp | 38a50f5e1057833fd98748faac230bf4b9cc26a3 | [
"Apache-2.0"
] | null | null | null | defmodule Hexpm.Scripts.Tarballs do
# NOTE: Remember to update checksums in releases table with new checksums
@tools [
{"mix.exs", "mix"},
{"rebar", "rebar"},
{"rebar.config", "rebar"},
{"Makefile", "make"},
{"Makefile.win", "make"},
]
def main([]) do
all_tars = Pat... | 27.862069 | 102 | 0.624175 |
d5edad520fd1a0ea5e61ec497ae946468416cca8 | 84 | ex | Elixir | lib/graphs/spanning_forest.ex | jeanGeorge/elixir-pbbs | df371b2ddbebd8118a49b2d2eac58d8702bdd2be | [
"MIT"
] | 4 | 2021-11-09T10:48:15.000Z | 2022-02-20T19:37:52.000Z | lib/graphs/spanning_forest.ex | jeanGeorge/elixir-pbbs | df371b2ddbebd8118a49b2d2eac58d8702bdd2be | [
"MIT"
] | null | null | null | lib/graphs/spanning_forest.ex | jeanGeorge/elixir-pbbs | df371b2ddbebd8118a49b2d2eac58d8702bdd2be | [
"MIT"
] | null | null | null | # Description: https://www.cs.cmu.edu/~pbbs/benchmarks/spanningForest.html
# to do
| 21 | 74 | 0.75 |
d5edc00aa3caf4e4aa7c7597f749717bb53c1748 | 5,629 | ex | Elixir | lib/sanbase/blockchain_address/metric_adapter.ex | santiment/sanbase2 | 9ef6e2dd1e377744a6d2bba570ea6bd477a1db31 | [
"MIT"
] | 81 | 2017-11-20T01:20:22.000Z | 2022-03-05T12:04:25.000Z | lib/sanbase/blockchain_address/metric_adapter.ex | santiment/sanbase2 | 9ef6e2dd1e377744a6d2bba570ea6bd477a1db31 | [
"MIT"
] | 359 | 2017-10-15T14:40:53.000Z | 2022-01-25T13:34:20.000Z | lib/sanbase/blockchain_address/metric_adapter.ex | santiment/sanbase2 | 9ef6e2dd1e377744a6d2bba570ea6bd477a1db31 | [
"MIT"
] | 16 | 2017-11-19T13:57:40.000Z | 2022-02-07T08:13:02.000Z | defmodule Sanbase.BlockchainAddress.MetricAdapter do
@behaviour Sanbase.Metric.Behaviour
import Sanbase.Utils.Transform, only: [maybe_apply_function: 2, rename_map_keys: 2]
alias Sanbase.Model.Project
alias Sanbase.Balance
@aggregations [:sum, :ohlc]
@default_aggregation :sum
@timeseries_metrics ["his... | 30.928571 | 97 | 0.695861 |
d5eddae8d9290b68a44da9a6a7dc494ab74e4feb | 1,420 | ex | Elixir | test/support/model_case.ex | marcaddeo/marc.cx | 2c858e640c2e19608495be8bf96e0a89b5e58ac7 | [
"MIT"
] | null | null | null | test/support/model_case.ex | marcaddeo/marc.cx | 2c858e640c2e19608495be8bf96e0a89b5e58ac7 | [
"MIT"
] | null | null | null | test/support/model_case.ex | marcaddeo/marc.cx | 2c858e640c2e19608495be8bf96e0a89b5e58ac7 | [
"MIT"
] | null | null | null | defmodule MarcCx.ModelCase do
@moduledoc """
This module defines the test case to be used by
model tests.
You may define functions here to be used as helpers in
your model tests. See `errors_on/2`'s definition as reference.
Finally, if the test case interacts with the database,
it cannot be async. For t... | 26.296296 | 81 | 0.690141 |
d5ee3164326a06ae78fb6b1f6315c684b920256e | 1,725 | exs | Elixir | test/dark_ecto/changesets_test.exs | dark-elixir/dark_ecto | 006a52e6d1a807e8f3c0f00a29780dc2967e57d9 | [
"Apache-2.0"
] | null | null | null | test/dark_ecto/changesets_test.exs | dark-elixir/dark_ecto | 006a52e6d1a807e8f3c0f00a29780dc2967e57d9 | [
"Apache-2.0"
] | null | null | null | test/dark_ecto/changesets_test.exs | dark-elixir/dark_ecto | 006a52e6d1a807e8f3c0f00a29780dc2967e57d9 | [
"Apache-2.0"
] | null | null | null | defmodule DarkEcto.ChangesetsTest do
@moduledoc """
Test for DarkEcto.Changesets
"""
use ExUnit.Case, async: true
import Ecto.Changeset
alias DarkEcto.Changesets
describe ".changes_on/1" do
test "with idempotent changeset" do
data = %{}
types = %{name: :string}
params = %{name: "... | 23 | 51 | 0.542029 |
d5ee33b6699cb864590609eadb545b6aa1b93a61 | 2,611 | ex | Elixir | clients/sheets/lib/google_api/sheets/v4/model/batch_update_spreadsheet_request.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/sheets/lib/google_api/sheets/v4/model/batch_update_spreadsheet_request.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/sheets/lib/google_api/sheets/v4/model/batch_update_spreadsheet_request.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 ... | 42.112903 | 143 | 0.73152 |
d5ee5666f712598595b078c971170fb0f928e2e5 | 1,793 | ex | Elixir | app/lib/noodl/image.ex | nathanjohnson320/noodl | 2e449aab15b54fc5a1dc45ebf4b79e7b64b7c967 | [
"MIT"
] | 1 | 2021-01-20T20:00:50.000Z | 2021-01-20T20:00:50.000Z | app/lib/noodl/image.ex | nathanjohnson320/noodl | 2e449aab15b54fc5a1dc45ebf4b79e7b64b7c967 | [
"MIT"
] | null | null | null | app/lib/noodl/image.ex | nathanjohnson320/noodl | 2e449aab15b54fc5a1dc45ebf4b79e7b64b7c967 | [
"MIT"
] | null | null | null | defmodule Noodl.Image do
@moduledoc ~S"""
Decode an image into waffle compatible contents
"""
use Waffle.Ecto.Schema
def decode("data:image/png;base64," <> raw), do: raw |> reformat("png")
def decode("data:image/gif;base64," <> raw), do: raw |> reformat("gif")
def decode("data:image/jpg;base64," <> ra... | 22.135802 | 75 | 0.54657 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.