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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
93fecfd72d5886208c985183d5c8b608d6206856 | 1,264 | exs | Elixir | test/test_helper.exs | YgorCastor/ravix-ecto | 63badc62e9ea2b38c7667d4ee1bfa8cb7c1cf371 | [
"Apache-2.0"
] | 1 | 2022-03-30T14:56:00.000Z | 2022-03-30T14:56:00.000Z | test/test_helper.exs | YgorCastor/ravix-ecto | 63badc62e9ea2b38c7667d4ee1bfa8cb7c1cf371 | [
"Apache-2.0"
] | null | null | null | test/test_helper.exs | YgorCastor/ravix-ecto | 63badc62e9ea2b38c7667d4ee1bfa8cb7c1cf371 | [
"Apache-2.0"
] | null | null | null | ExUnit.start(
exclude: [
:todo,
:aggregations
]
)
Application.put_env(:ecto, :primary_key_type, :binary_id)
Application.put_env(:ecto, :async_integration_tests, false)
defmodule Ecto.Integration.Repo do
defmacro __using__(opts) do
quote do
use Ecto.Repo, unquote(opts)
@query_event __MOD... | 22.175439 | 79 | 0.634494 |
93fee322874d560e61dd11e80239b63569efa552 | 312 | exs | Elixir | test/fixtures/system_v1/mix.exs | tverlaan/nerves | 515b9b7730a1b2934ac051b0e7075cd7987b6c4a | [
"Apache-2.0"
] | null | null | null | test/fixtures/system_v1/mix.exs | tverlaan/nerves | 515b9b7730a1b2934ac051b0e7075cd7987b6c4a | [
"Apache-2.0"
] | null | null | null | test/fixtures/system_v1/mix.exs | tverlaan/nerves | 515b9b7730a1b2934ac051b0e7075cd7987b6c4a | [
"Apache-2.0"
] | null | null | null | defmodule SystemV1.Fixture.Mixfile do
use Mix.Project
@version Path.join(__DIR__, "VERSION")
|> File.read!
|> String.strip
def project do
[app: :system_v1,
version: @version,
deps: deps()]
end
defp deps do
[{:toolchain_v1, path: "../toolchain_v1"}]
end
end
| 17.333333 | 46 | 0.599359 |
93ff1eece2d6944ddf16a79439b4e5e70583f7ae | 2,111 | ex | Elixir | clients/text_to_speech/lib/google_api/text_to_speech/v1beta1/model/voice.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/text_to_speech/lib/google_api/text_to_speech/v1beta1/model/voice.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/text_to_speech/lib/google_api/text_to_speech/v1beta1/model/voice.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 37.696429 | 226 | 0.700616 |
93ff200316dd9691161cb56e8670fbfc52e2865f | 1,454 | ex | Elixir | lib/magic_number.ex | ishikawa/elixir-magic-number | 7cd096f71a1bb890151ef383d5d8c9280061feef | [
"MIT"
] | 8 | 2016-03-30T13:42:48.000Z | 2021-12-10T15:03:37.000Z | lib/magic_number.ex | ishikawa/elixir-magic-number | 7cd096f71a1bb890151ef383d5d8c9280061feef | [
"MIT"
] | null | null | null | lib/magic_number.ex | ishikawa/elixir-magic-number | 7cd096f71a1bb890151ef383d5d8c9280061feef | [
"MIT"
] | 3 | 2020-04-18T13:41:28.000Z | 2021-10-03T15:17:42.000Z | defmodule MagicNumber do
@moduledoc """
The module to determine a file's type from its
[magic number](https://en.wikipedia.org/wiki/File_format#Magic_number).
"""
@typedoc """
A media type is a two-part identifier for file format. For example:
```elixir
{:application, :zip} # application/zip
{:image... | 25.068966 | 106 | 0.568776 |
93ff2ef4678f39b0d8beb89c1a83da85b5b4839e | 505 | ex | Elixir | lib/creek_dict_admin_web/views/error_view.ex | nativesintech/creek-dictionary-admin | 14bfd6c364010a1c905f97cd9388bad0a40589bc | [
"MIT"
] | null | null | null | lib/creek_dict_admin_web/views/error_view.ex | nativesintech/creek-dictionary-admin | 14bfd6c364010a1c905f97cd9388bad0a40589bc | [
"MIT"
] | 7 | 2019-09-20T02:00:23.000Z | 2019-10-07T04:22:51.000Z | lib/creek_dict_admin_web/views/error_view.ex | nativesintech/creek-dictionary-admin | 14bfd6c364010a1c905f97cd9388bad0a40589bc | [
"MIT"
] | null | null | null | defmodule CreekDictAdminWeb.ErrorView do
use CreekDictAdminWeb, :view
# If you want to customize a particular status code
# for a certain format, you may uncomment below.
# def render("500.html", _assigns) do
# "Internal Server Error"
# end
# By default, Phoenix returns the status message from
# the... | 29.705882 | 61 | 0.742574 |
93ff2fe955ba892742297c52dc53d513f483f03d | 21,772 | ex | Elixir | lib/event_store/subscriptions/subscription_fsm.ex | jsmestad/eventstore | 93660ce316ca174ff4694e211a7ac420253e4dac | [
"MIT"
] | null | null | null | lib/event_store/subscriptions/subscription_fsm.ex | jsmestad/eventstore | 93660ce316ca174ff4694e211a7ac420253e4dac | [
"MIT"
] | null | null | null | lib/event_store/subscriptions/subscription_fsm.ex | jsmestad/eventstore | 93660ce316ca174ff4694e211a7ac420253e4dac | [
"MIT"
] | null | null | null | defmodule EventStore.Subscriptions.SubscriptionFsm do
@moduledoc false
alias EventStore.{AdvisoryLocks, PubSub, RecordedEvent, Storage}
alias EventStore.Streams.Stream
alias EventStore.Subscriptions.{SubscriptionState, Subscriber}
use Fsm, initial_state: :initial, initial_data: %SubscriptionState{}
requi... | 31.326619 | 100 | 0.664294 |
93ff9d9e3c9ce7d6eb342cb32bcf2e981fb59f8b | 1,851 | exs | Elixir | clients/os_login/mix.exs | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/os_login/mix.exs | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/os_login/mix.exs | dazuma/elixir-google-api | 6a9897168008efe07a6081d2326735fe332e522c | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 27.626866 | 114 | 0.653701 |
93ffb10fca9634638c6de5e07eaa588b2f3f8b76 | 1,848 | ex | Elixir | lib/acmex/resource/challenge.ex | Wynteres/acmex | 3ec899673320d14fc127a80531adc8a54a7a3450 | [
"MIT"
] | null | null | null | lib/acmex/resource/challenge.ex | Wynteres/acmex | 3ec899673320d14fc127a80531adc8a54a7a3450 | [
"MIT"
] | null | null | null | lib/acmex/resource/challenge.ex | Wynteres/acmex | 3ec899673320d14fc127a80531adc8a54a7a3450 | [
"MIT"
] | null | null | null | defmodule Acmex.Resource.Challenge do
@moduledoc """
This structure represents a challenge to prove control of an identifier.
"""
alias JOSE.JWK
@enforce_keys ~w(status token type url)a
defstruct @enforce_keys
@type dns_response :: %{
key_authorization: String.t(),
record_name: Str... | 26.782609 | 98 | 0.624459 |
93ffb8187c0dffc61b5456bb8e41e7160fa509f5 | 11,533 | ex | Elixir | clients/android_management/lib/google_api/android_management/v1/model/device.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/android_management/lib/google_api/android_management/v1/model/device.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/android_management/lib/google_api/android_management/v1/model/device.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... | 71.191358 | 448 | 0.729299 |
93ffe84b7f7d14270614bf7b2c824454aa9cc3a6 | 3,311 | ex | Elixir | web/controllers/database_controller.ex | sahilpaudel/AfterGlow | 0859ec14b47c8c5704cc8e5cba86d39aa258fff5 | [
"MIT"
] | null | null | null | web/controllers/database_controller.ex | sahilpaudel/AfterGlow | 0859ec14b47c8c5704cc8e5cba86d39aa258fff5 | [
"MIT"
] | null | null | null | web/controllers/database_controller.ex | sahilpaudel/AfterGlow | 0859ec14b47c8c5704cc8e5cba86d39aa258fff5 | [
"MIT"
] | null | null | null | defmodule AfterGlow.DatabaseController do
use AfterGlow.Web, :controller
import Ecto.Query
alias AfterGlow.Database
alias JaSerializer.Params
alias AfterGlow.Async
alias AfterGlow.SchemaTasks
alias AfterGlow.DatabaseWithConfigView
alias AfterGlow.CacheWrapper
alias AfterGlow.CacheWrapper.Repo
import... | 29.04386 | 101 | 0.628813 |
9e00020b6477c3c45a59c18252d560a4e5357a53 | 3,178 | ex | Elixir | robotica_ui/lib/scenic_clock/digital.ex | brianmay/robotica-elixir | 8656510e54b7e32a547e3a54bf946f0e327911c9 | [
"RSA-MD"
] | 1 | 2019-04-23T09:16:44.000Z | 2019-04-23T09:16:44.000Z | robotica_ui/lib/scenic_clock/digital.ex | brianmay/robotica-elixir | 8656510e54b7e32a547e3a54bf946f0e327911c9 | [
"RSA-MD"
] | 107 | 2019-05-26T08:03:26.000Z | 2022-02-03T19:13:56.000Z | robotica_ui/lib/scenic_clock/digital.ex | brianmay/robotica-elixir | 8656510e54b7e32a547e3a54bf946f0e327911c9 | [
"RSA-MD"
] | 1 | 2019-08-10T20:44:24.000Z | 2019-08-10T20:44:24.000Z | #
# Created by Boyd Multerer on August 8, 2018.
# Copyright © 2018 Kry10 Industries. All rights reserved.
#
defmodule Scenic.Clock.Digital do
@moduledoc """
A component that runs an digital clock.
See the [Components](Scenic.Clock.Components.html#digital_clock/2) module for useage
"""
use Scenic.Compone... | 28.630631 | 86 | 0.559786 |
9e0006cda37f2bd1511cfc3d3cd7cae296f0752c | 2,226 | ex | Elixir | web/models/stripe_event.ex | superdev999/Phoenix-project | ab13ac9366cdd0aa9581da7faf993b11aaa5344c | [
"MIT"
] | null | null | null | web/models/stripe_event.ex | superdev999/Phoenix-project | ab13ac9366cdd0aa9581da7faf993b11aaa5344c | [
"MIT"
] | null | null | null | web/models/stripe_event.ex | superdev999/Phoenix-project | ab13ac9366cdd0aa9581da7faf993b11aaa5344c | [
"MIT"
] | null | null | null | defmodule CodeCorps.StripeEvent do
@moduledoc """
Represents a reference to single Stripe API Event object
## Fields
* `endpoint` - "connect" or "platform"
* `id_from_stripe` - Stripe's `id`
* `status` - "unprocessed", "processed", or "errored"
## Note on `status`
When the event is received via a we... | 30.493151 | 92 | 0.689128 |
9e0017fc951cce59bc61c5c90f02b10439afb0cc | 678 | ex | Elixir | lib/utils/triangle.ex | sorentwo/euler | 76244a0ef3dcfa17d6b9571daa5d0b46f09057f4 | [
"MIT"
] | 8 | 2015-11-04T05:03:05.000Z | 2022-01-25T19:34:46.000Z | lib/utils/triangle.ex | sorentwo/euler | 76244a0ef3dcfa17d6b9571daa5d0b46f09057f4 | [
"MIT"
] | null | null | null | lib/utils/triangle.ex | sorentwo/euler | 76244a0ef3dcfa17d6b9571daa5d0b46f09057f4 | [
"MIT"
] | null | null | null | defmodule Triangle do
def to_matrix(binary) do
String.split(binary, "\n", trim: true) |> Enum.map(&row_to_integers/1)
end
def row_to_integers(row) do
String.strip(row) |> String.split(" ") |> Enum.map(&String.to_integer/1)
end
def collapse([value]), do: value
def collapse([head | [next | tail]]) d... | 25.111111 | 78 | 0.616519 |
9e00469a0b195f267a2f7ff236ce1c585020bfdc | 3,503 | ex | Elixir | apps/kv_map_reduce/lib/aggregators/job.ex | WhiteRookPL/production-debugging-workshop.ex | 26e81d14ba39c33764ddaee5d6d65a6061f4e823 | [
"MIT"
] | 5 | 2017-05-03T08:05:54.000Z | 2022-03-11T04:11:00.000Z | apps/kv_map_reduce/lib/aggregators/job.ex | WhiteRookPL/production-debugging-workshop.ex | 26e81d14ba39c33764ddaee5d6d65a6061f4e823 | [
"MIT"
] | null | null | null | apps/kv_map_reduce/lib/aggregators/job.ex | WhiteRookPL/production-debugging-workshop.ex | 26e81d14ba39c33764ddaee5d6d65a6061f4e823 | [
"MIT"
] | null | null | null | defmodule KV.MapReduce.Job do
require Logger
defmodule State do
@moduledoc """
Module which represents state of the aggregation job.
"""
defstruct id: 0, type: nil, bucket: nil, result: [], start_time: 0
end
@moduledoc """
Module which represents aggregation jobs built on top of lightweight... | 26.141791 | 120 | 0.6503 |
9e006ff82e241cbd8caf04f8465c67d8363f656c | 1,556 | ex | Elixir | lib/xdr/transactions/operations/inflation_result.ex | einerzg/stellar_base | 2d10c5fc3b8159efc5de10b5c7c665e3b57b3d8f | [
"MIT"
] | 3 | 2021-08-17T20:32:45.000Z | 2022-03-13T20:26:02.000Z | lib/xdr/transactions/operations/inflation_result.ex | einerzg/stellar_base | 2d10c5fc3b8159efc5de10b5c7c665e3b57b3d8f | [
"MIT"
] | 45 | 2021-08-12T20:19:41.000Z | 2022-03-27T21:00:10.000Z | lib/xdr/transactions/operations/inflation_result.ex | einerzg/stellar_base | 2d10c5fc3b8159efc5de10b5c7c665e3b57b3d8f | [
"MIT"
] | 2 | 2021-09-22T23:11:13.000Z | 2022-01-23T03:19:11.000Z | defmodule StellarBase.XDR.Operations.InflationResult do
@moduledoc """
Representation of Stellar `InflationResult` type.
"""
alias StellarBase.XDR.{InflationPayoutList, Void}
alias StellarBase.XDR.Operations.InflationResultCode
@behaviour XDR.Declaration
@arms [INFLATION_SUCCESS: InflationPayoutList, de... | 25.508197 | 73 | 0.665167 |
9e007e48e3d0b58abbe27b728e585fa03aa960f8 | 1,374 | exs | Elixir | mix.exs | iilyak/httpotion | 8fe4da27f04121a3b0c5fc569f6625985e42f1c0 | [
"Unlicense"
] | null | null | null | mix.exs | iilyak/httpotion | 8fe4da27f04121a3b0c5fc569f6625985e42f1c0 | [
"Unlicense"
] | null | null | null | mix.exs | iilyak/httpotion | 8fe4da27f04121a3b0c5fc569f6625985e42f1c0 | [
"Unlicense"
] | null | null | null | defmodule HTTPotion.Mixfile do
use Mix.Project
def project do
if Mix.env == :dial, do: Application.ensure_all_started(:ex_unit)
[ app: :httpotion,
name: "httpotion",
source_url: "https://github.com/myfreeweb/httpotion",
version: "3.1.2",
elixir: "~> 1.3",
docs: [ extras: ["RE... | 28.625 | 82 | 0.607715 |
9e013a4aca7060b4ab7962be86b59f4143be6a07 | 2,715 | exs | Elixir | test/surface/integrations/slot_change_tracking_test.exs | inspired-consulting/surface | 3a6a3a454704a9aaf83cd23a6393cbd09bdca8bd | [
"MIT"
] | 1,161 | 2019-12-12T02:30:52.000Z | 2021-03-11T17:55:44.000Z | test/surface/integrations/slot_change_tracking_test.exs | inspired-consulting/surface | 3a6a3a454704a9aaf83cd23a6393cbd09bdca8bd | [
"MIT"
] | 244 | 2019-12-12T14:05:07.000Z | 2021-03-11T07:04:17.000Z | test/surface/integrations/slot_change_tracking_test.exs | inspired-consulting/surface | 3a6a3a454704a9aaf83cd23a6393cbd09bdca8bd | [
"MIT"
] | 73 | 2019-12-12T13:57:41.000Z | 2021-03-11T21:46:10.000Z | defmodule Surface.SlotChangeTrackingTest do
use ExUnit.Case, async: true
import Phoenix.ConnTest
import Phoenix.LiveViewTest
@endpoint Endpoint
defmodule Outer do
use Surface.LiveComponent
slot default, args: [:param]
def render(assigns) do
~F"""
<div><#slot :args={param: "Param f... | 23.405172 | 98 | 0.609945 |
9e013b7dd0b3b0a283117b601cd177b3c78591e0 | 1,247 | ex | Elixir | clients/iam/lib/google_api/iam/v1/model/create_service_account_request.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/iam/lib/google_api/iam/v1/model/create_service_account_request.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/iam/lib/google_api/iam/v1/model/create_service_account_request.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... | 31.175 | 94 | 0.752205 |
9e0170399ba915f3c9bded11b3a9f112972ed74b | 1,915 | exs | Elixir | clients/android_management/mix.exs | jamesvl/elixir-google-api | 6c87fb31d996f08fb42ce6066317e9d652a87acc | [
"Apache-2.0"
] | null | null | null | clients/android_management/mix.exs | jamesvl/elixir-google-api | 6c87fb31d996f08fb42ce6066317e9d652a87acc | [
"Apache-2.0"
] | null | null | null | clients/android_management/mix.exs | jamesvl/elixir-google-api | 6c87fb31d996f08fb42ce6066317e9d652a87acc | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 28.58209 | 136 | 0.667885 |
9e0175e76d25434dc5698cabe8f664d14cd10879 | 1,160 | exs | Elixir | apps/api/config/config.exs | norbu09/e_no_time | 16a0db136dd91cdcf38d4aab5f11b0684dae289d | [
"BSD-2-Clause"
] | null | null | null | apps/api/config/config.exs | norbu09/e_no_time | 16a0db136dd91cdcf38d4aab5f11b0684dae289d | [
"BSD-2-Clause"
] | null | null | null | apps/api/config/config.exs | norbu09/e_no_time | 16a0db136dd91cdcf38d4aab5f11b0684dae289d | [
"BSD-2-Clause"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on this project, this
# file won't be loaded nor affect the paren... | 34.117647 | 73 | 0.744828 |
9e0187960f85db2947fafcd4940528b43ae00ea3 | 840 | exs | Elixir | config/config.exs | underhilllabs/phx-bookmarks | 6c761ef0f602dbde267c337906a17f098f6bbe50 | [
"MIT"
] | null | null | null | config/config.exs | underhilllabs/phx-bookmarks | 6c761ef0f602dbde267c337906a17f098f6bbe50 | [
"MIT"
] | 2 | 2015-07-03T18:50:46.000Z | 2015-07-03T18:52:14.000Z | config/config.exs | underhilllabs/phx-bookmarks | 6c761ef0f602dbde267c337906a17f098f6bbe50 | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
#
# This configuration file is loaded before any dependency and
# is restricted to this project.
use Mix.Config
# Configures the endpoint
config :phx_bkmark, PhxBkmark.Endpoint,
url: [host: "loca... | 33.6 | 86 | 0.761905 |
9e01a06198b3d79ea91acd21058546ed3a8059f2 | 1,193 | exs | Elixir | test/inflator_web/controllers/inflation_controller_test.exs | astoica1986/inflator | ca0e99a8e114956edae0b0456eb8b8d97c67a342 | [
"Apache-2.0"
] | null | null | null | test/inflator_web/controllers/inflation_controller_test.exs | astoica1986/inflator | ca0e99a8e114956edae0b0456eb8b8d97c67a342 | [
"Apache-2.0"
] | null | null | null | test/inflator_web/controllers/inflation_controller_test.exs | astoica1986/inflator | ca0e99a8e114956edae0b0456eb8b8d97c67a342 | [
"Apache-2.0"
] | null | null | null | defmodule InflatorWeb.InflationControllerTest do
use InflatorWeb.ConnCase
alias Inflator.Price
alias Inflator.Price.Inflation
import Mock
@create_attrs %{borough: "some borough", date: "01/04/2010", index: 120.5}
@update_attrs %{borough: "some updated borough", date: "01/05/2011", index: 456.7}
@invalid... | 30.589744 | 115 | 0.668902 |
9e01acdc3d76a6b8caf1324a08c9de296be03155 | 400 | ex | Elixir | lib/rubber_band/client/drivers/httpoison.ex | tlux/rubberband | bece85cf8049ba487bba1d5df0906f6fbfa146eb | [
"MIT"
] | null | null | null | lib/rubber_band/client/drivers/httpoison.ex | tlux/rubberband | bece85cf8049ba487bba1d5df0906f6fbfa146eb | [
"MIT"
] | null | null | null | lib/rubber_band/client/drivers/httpoison.ex | tlux/rubberband | bece85cf8049ba487bba1d5df0906f6fbfa146eb | [
"MIT"
] | null | null | null | defmodule RubberBand.Client.Drivers.HTTPoison do
@moduledoc """
An adapter implementation that uses HTTPoison to dispatch requests to
Elasticsearch.
"""
@behaviour RubberBand.Client.Driver
@impl true
def request(verb, url, body, headers, opts) do
{:ok, _} = Application.ensure_all_started(:httpoison)... | 26.666667 | 71 | 0.7375 |
9e01b07689a61587dd323a5863df03feabf0b707 | 577 | ex | Elixir | web/router.ex | thluiz/quartoElugRJ | 4988fe0fd05ed92a43f92f5d43ebbc2983021c30 | [
"MIT"
] | 1 | 2016-05-06T00:00:10.000Z | 2016-05-06T00:00:10.000Z | web/router.ex | thluiz/quartoElugRJ | 4988fe0fd05ed92a43f92f5d43ebbc2983021c30 | [
"MIT"
] | null | null | null | web/router.ex | thluiz/quartoElugRJ | 4988fe0fd05ed92a43f92f5d43ebbc2983021c30 | [
"MIT"
] | null | null | null | defmodule QuartoElugRJ.Router do
use QuartoElugRJ.Web, :router
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_flash
plug :protect_from_forgery
plug :put_secure_browser_headers
end
pipeline :api do
plug :accepts, ["json"]
end
scope "/", QuartoElugRJ do... | 20.607143 | 57 | 0.684575 |
9e01d1d445d019ee9156c5fb2b0f46cf03bab8b1 | 3,248 | ex | Elixir | clients/data_fusion/lib/google_api/data_fusion/v1beta1/model/expr.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/data_fusion/lib/google_api/data_fusion/v1beta1/model/expr.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/data_fusion/lib/google_api/data_fusion/v1beta1/model/expr.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... | 58 | 1,092 | 0.734914 |
9e01de162c74b9519535eae3d777fbfcddd9a689 | 1,297 | ex | Elixir | lib/ibu/athlete.ex | ericgoodwin/ibu | 949ce9baf4f794ed74c0903f43e25c1f9caec840 | [
"Apache-2.0"
] | 1 | 2021-01-18T17:39:05.000Z | 2021-01-18T17:39:05.000Z | lib/ibu/athlete.ex | ericgoodwin/ibu | 949ce9baf4f794ed74c0903f43e25c1f9caec840 | [
"Apache-2.0"
] | null | null | null | lib/ibu/athlete.ex | ericgoodwin/ibu | 949ce9baf4f794ed74c0903f43e25c1f9caec840 | [
"Apache-2.0"
] | null | null | null | defmodule IBU.Athlete do
import IBU.DateHelper, only: [to_birth_date: 1]
alias IBU.Stats
defstruct([
:family_name,
:given_name,
:birth_date,
:gender,
:ibu_id,
:flag_uri,
:photo_uri,
:country_code,
:status,
:stats
])
@type t :: %__MODULE__{
family_name: binar... | 24.471698 | 53 | 0.598304 |
9e01ed754fa586d212d6e23de451091bb2dcecf7 | 20,150 | exs | Elixir | test/lib/bamboo/adapters/send_grid_adapter_test.exs | vpotapev/bamboo | c7efd8d83d7aaeb66e699a4b788a839eb8fa9633 | [
"MIT"
] | null | null | null | test/lib/bamboo/adapters/send_grid_adapter_test.exs | vpotapev/bamboo | c7efd8d83d7aaeb66e699a4b788a839eb8fa9633 | [
"MIT"
] | null | null | null | test/lib/bamboo/adapters/send_grid_adapter_test.exs | vpotapev/bamboo | c7efd8d83d7aaeb66e699a4b788a839eb8fa9633 | [
"MIT"
] | null | null | null | defmodule Bamboo.SendGridAdapterTest do
use ExUnit.Case
alias Bamboo.Email
alias Bamboo.SendGridAdapter
alias Bamboo.Test.User
@config %{adapter: SendGridAdapter, api_key: "123_abc"}
@config_with_bad_key %{adapter: SendGridAdapter, api_key: nil}
@config_with_env_var_key %{adapter: SendGridAdapter, api_k... | 31.337481 | 97 | 0.604069 |
9e01f77d37e906399b651bbfc797b6f83e88b03d | 1,410 | ex | Elixir | lib/tesla/middleware/tuples.ex | DNNX/tesla | a1a60ad74de1b88782ab50a7f52719d7cecef94a | [
"MIT"
] | null | null | null | lib/tesla/middleware/tuples.ex | DNNX/tesla | a1a60ad74de1b88782ab50a7f52719d7cecef94a | [
"MIT"
] | null | null | null | lib/tesla/middleware/tuples.ex | DNNX/tesla | a1a60ad74de1b88782ab50a7f52719d7cecef94a | [
"MIT"
] | null | null | null | defmodule Tesla.Middleware.Tuples do
@behaviour Tesla.Middleware
@moduledoc """
Return `:ok` / `:error` tuples for successful HTTP transations, i.e. when the request is completed
(no network errors etc) - but it can still be an application-level error (i.e. 404 or 500).
**NOTE**: This middleware must be inc... | 22.380952 | 100 | 0.626241 |
9e01f7fb1b6d0d590988494cd5ef884b6177f7dc | 12,632 | ex | Elixir | lib/reader.ex | kianmeng/monet | 6b148aa19721e13d84934a0dd16e911353312559 | [
"ISC"
] | null | null | null | lib/reader.ex | kianmeng/monet | 6b148aa19721e13d84934a0dd16e911353312559 | [
"ISC"
] | null | null | null | lib/reader.ex | kianmeng/monet | 6b148aa19721e13d84934a0dd16e911353312559 | [
"ISC"
] | null | null | null | defmodule Monet.Reader do
@moduledoc """
Reads and parses responses from the server. Should not be called directly from
outside this library.
"""
use Bitwise, only: [bsr: 2, band: 1]
import NimbleParsec
import Monet.Connection, only: [connection: 2]
alias Monet.{Error, Result, Prepared}
@doc "Reads the resu... | 31.422886 | 119 | 0.623179 |
9e020b92f2c192c0ce9088699444c07fce1e08b6 | 286 | exs | Elixir | priv/repo/migrations/20181220212927_create_playlists.exs | IamTheLime/listentothis | cc2b4ca3a11623e68f5657d8538a586fddeba85b | [
"Apache-2.0"
] | null | null | null | priv/repo/migrations/20181220212927_create_playlists.exs | IamTheLime/listentothis | cc2b4ca3a11623e68f5657d8538a586fddeba85b | [
"Apache-2.0"
] | null | null | null | priv/repo/migrations/20181220212927_create_playlists.exs | IamTheLime/listentothis | cc2b4ca3a11623e68f5657d8538a586fddeba85b | [
"Apache-2.0"
] | null | null | null | defmodule Listentothis.Repo.Migrations.CreatePlaylists do
use Ecto.Migration
def change do
create table("playlists") do
add :name, :string, size: 256
add :description, :string, size: 2048
add :user_id, references(:users)
timestamps()
end
end
end
| 20.428571 | 57 | 0.674825 |
9e02391464700e73da57fd027c32d2dc38544363 | 7,213 | exs | Elixir | test/bitcoin/protocol/messages/block_test.exs | coinscript/bitcoinsv-elixir | 2dda03c81edc5662743ed2922abb5b1910d9c09a | [
"Apache-2.0"
] | 2 | 2019-08-12T04:53:57.000Z | 2019-09-03T03:47:33.000Z | test/bitcoin/protocol/messages/block_test.exs | coinscript/bitcoinsv-elixir | 2dda03c81edc5662743ed2922abb5b1910d9c09a | [
"Apache-2.0"
] | null | null | null | test/bitcoin/protocol/messages/block_test.exs | coinscript/bitcoinsv-elixir | 2dda03c81edc5662743ed2922abb5b1910d9c09a | [
"Apache-2.0"
] | null | null | null | defmodule Bitcoin.Protocol.Messages.BlockTest do
use ExUnit.Case
alias Bitcoin.Protocol.Messages.Block
alias Bitcoin.Protocol.Messages.Tx
alias Bitcoin.Protocol.Types.TxInput
alias Bitcoin.Protocol.Types.TxOutput
alias Bitcoin.Protocol.Types.Outpoint
test "block 100_000" do
# Block no 100_000 from t... | 43.191617 | 98 | 0.435048 |
9e023f3be0f03cb9876787b19f20f13227de95e8 | 988 | ex | Elixir | config/dispatcher/dispatcher.ex | Youssef-98/dispatcher-error | 93fad82d8e4d30217a29500cceb681b5cf78a420 | [
"MIT"
] | 1 | 2021-08-02T21:24:18.000Z | 2021-08-02T21:24:18.000Z | config/dispatcher/dispatcher.ex | Youssef-98/dispatcher-error | 93fad82d8e4d30217a29500cceb681b5cf78a420 | [
"MIT"
] | null | null | null | config/dispatcher/dispatcher.ex | Youssef-98/dispatcher-error | 93fad82d8e4d30217a29500cceb681b5cf78a420 | [
"MIT"
] | null | null | null | defmodule Dispatcher do
use Matcher
define_accept_types [
html: [ "text/html", "application/xhtml+html" ],
json: [ "application/json", "application/vnd.api+json" ],
]
@any %{}
@json %{ accept: %{ json: true } }
@html %{ accept: %{ html: true } }
# In order to forward the 'themes' resource to th... | 24.7 | 72 | 0.63664 |
9e024972d744e8a0d67f9434e3422fb59f7de321 | 1,566 | exs | Elixir | test/chaos_spawn/time_test.exs | meadsteve/chaos-spawn | ca983ad96cb1e8541474e726f727d20636828c24 | [
"MIT"
] | 90 | 2015-09-29T16:40:17.000Z | 2022-02-20T18:45:54.000Z | test/chaos_spawn/time_test.exs | meadsteve/chaos-spawn | ca983ad96cb1e8541474e726f727d20636828c24 | [
"MIT"
] | 17 | 2015-09-29T15:37:43.000Z | 2015-12-09T08:46:41.000Z | test/chaos_spawn/time_test.exs | meadsteve/chaos-spawn | ca983ad96cb1e8541474e726f727d20636828c24 | [
"MIT"
] | 6 | 2015-12-03T16:03:35.000Z | 2018-06-28T00:54:08.000Z |
defmodule TimeTest do
use ExUnit.Case
alias ChaosSpawn.Time
# In DEV and TEST this is always the result of ChaosSpawn.Time.now
@fake_now_time {{2014, 12, 13}, {14, 50, 00}}
test "between? returns false for times lower than the bottom bound" do
time = {12, 0, 0}
result = time |> Time.between?({13, 0... | 29.54717 | 72 | 0.643678 |
9e024e90d58669b1f1ed88cee41ecffacafe3357 | 2,336 | ex | Elixir | lib/ggity/scale/fill_viridis.ex | srowley/ggity | e49f40141ea7b56e07cf9e00a20c04ed4d42df2f | [
"MIT"
] | 47 | 2020-06-21T15:23:54.000Z | 2022-03-13T01:24:19.000Z | lib/ggity/scale/fill_viridis.ex | srowley/ggity | e49f40141ea7b56e07cf9e00a20c04ed4d42df2f | [
"MIT"
] | 3 | 2020-11-28T11:00:59.000Z | 2020-11-30T18:20:37.000Z | lib/ggity/scale/fill_viridis.ex | srowley/ggity | e49f40141ea7b56e07cf9e00a20c04ed4d42df2f | [
"MIT"
] | 2 | 2020-11-28T10:40:10.000Z | 2021-05-28T06:44:47.000Z | defmodule GGity.Scale.Fill.Viridis do
@moduledoc false
alias GGity.{Draw, Labels}
alias GGity.Scale.{Color, Fill}
defstruct transform: nil,
levels: nil,
labels: :waivers,
guide: :legend,
option: :viridis
@type t() :: %__MODULE__{}
@spec new(keyword()) :: F... | 26.850575 | 98 | 0.590325 |
9e02611739d18b34b175a9ac655e9a99e0bfcf73 | 8,912 | exs | Elixir | test/shp_test.exs | ssbb/exshape | 7f0de9e7013cfc17d1e417bd2cf61b8be5259a63 | [
"MIT"
] | null | null | null | test/shp_test.exs | ssbb/exshape | 7f0de9e7013cfc17d1e417bd2cf61b8be5259a63 | [
"MIT"
] | null | null | null | test/shp_test.exs | ssbb/exshape | 7f0de9e7013cfc17d1e417bd2cf61b8be5259a63 | [
"MIT"
] | null | null | null | defmodule ShpTest do
use ExUnit.Case
import TestHelper
alias Exshape.Shp
alias Exshape.Shp.{Bbox,
Point, PointM,
Multipoint, MultipointM,
Polyline, PolylineM,
Polygon, PolygonM
}
doctest Exshape
test "can read points" do
[_header | points] = fixture("point.shp")
|> Shp.read
|>... | 22.004938 | 79 | 0.37399 |
9e02a2f16ac1beedf211241918d58054ea6cfacc | 1,026 | ex | Elixir | lib/changelog_web/views/news_issue_view.ex | PsOverflow/changelog.com | 53f4ecfc39b021c6b8cfcc0fa11f29aff8038a7f | [
"MIT"
] | 1 | 2020-05-20T16:58:17.000Z | 2020-05-20T16:58:17.000Z | lib/changelog_web/views/news_issue_view.ex | type1fool/changelog.com | fbec3528cc3f5adfdc75b008bb92b17efc4f248f | [
"MIT"
] | null | null | null | lib/changelog_web/views/news_issue_view.ex | type1fool/changelog.com | fbec3528cc3f5adfdc75b008bb92b17efc4f248f | [
"MIT"
] | null | null | null | defmodule ChangelogWeb.NewsIssueView do
use ChangelogWeb, :public_view
alias Changelog.{NewsItem, NewsAd}
alias ChangelogWeb.{NewsItemView, SponsorView, PodcastView}
def items_with_ads(items, []), do: items
def items_with_ads(items, ads), do: items_with_ads(items, ads, 3)
def items_with_ads(items, ads, ev... | 27 | 86 | 0.658869 |
9e02aa9f8b46509e64481fcc2e3e07bcc0224f2e | 6,219 | ex | Elixir | lib/codes/codes_g90.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_g90.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_g90.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | defmodule IcdCode.ICDCode.Codes_G90 do
alias IcdCode.ICDCode
def _G9001 do
%ICDCode{full_code: "G9001",
category_code: "G90",
short_code: "01",
full_name: "Carotid sinus syncope",
short_name: "Carotid sinus syncope",
category_name: "Carotid sinus syncope"
... | 36.798817 | 85 | 0.630809 |
9e02c199aecb562b9840af84be6c144949cf6b8b | 3,930 | ex | Elixir | clients/drive/lib/google_api/drive/v3/model/about.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/drive/lib/google_api/drive/v3/model/about.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/drive/lib/google_api/drive/v3/model/about.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 46.785714 | 158 | 0.708906 |
9e030fd4021f10a99c94dc0b301f9da2b24db6cd | 857 | exs | Elixir | priv/repo/1-seed-non-users.exs | marick/eecrit | 50b1ebeadc5cf21ea9f9df6add65e4d7037e2482 | [
"MIT"
] | 10 | 2016-07-15T15:57:33.000Z | 2018-06-09T00:40:46.000Z | priv/repo/1-seed-non-users.exs | marick/eecrit | 50b1ebeadc5cf21ea9f9df6add65e4d7037e2482 | [
"MIT"
] | null | null | null | priv/repo/1-seed-non-users.exs | marick/eecrit | 50b1ebeadc5cf21ea9f9df6add65e4d7037e2482 | [
"MIT"
] | 6 | 2016-07-15T15:57:41.000Z | 2018-03-22T16:38:00.000Z | # 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:
#
# Eecrit.Repo.insert!(%Eecrit.SomeModel{})
#
# We recommend using the bang functions (`insert!`, `update!`
# and so on) as they will fa... | 29.551724 | 79 | 0.736289 |
9e03214b2f3654cc7abe737e2bf6c1e7d40f61e9 | 1,487 | ex | Elixir | lib/glimesh/application.ex | MemoryLeakDeath/glimesh.tv | 1462c4b939da899f5e3f67c3f28850025d59a10f | [
"MIT"
] | null | null | null | lib/glimesh/application.ex | MemoryLeakDeath/glimesh.tv | 1462c4b939da899f5e3f67c3f28850025d59a10f | [
"MIT"
] | null | null | null | lib/glimesh/application.ex | MemoryLeakDeath/glimesh.tv | 1462c4b939da899f5e3f67c3f28850025d59a10f | [
"MIT"
] | null | null | null | defmodule Glimesh.Application do
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
use Application
def start(_type, _args) do
topologies = Application.get_env(:libcluster, :topologies)
children = [
Glimesh.PromEx,
{Cluster.Super... | 29.74 | 76 | 0.682582 |
9e032a3f2a7bb8c5759498bbd21fb96ff0810e2a | 826 | ex | Elixir | lib/crit_web/audit.ex | jesseshieh/crit19 | 0bba407fea09afed72cbb90ca579ba34c537edef | [
"MIT"
] | null | null | null | lib/crit_web/audit.ex | jesseshieh/crit19 | 0bba407fea09afed72cbb90ca579ba34c537edef | [
"MIT"
] | null | null | null | lib/crit_web/audit.ex | jesseshieh/crit19 | 0bba407fea09afed72cbb90ca579ba34c537edef | [
"MIT"
] | null | null | null | defmodule CritWeb.Audit do
import CritWeb.Plugs.Accessors
alias Crit.Audit.CreationStruct
alias Crit.Users.User
def events do
%{created_user: "created user",
created_animals: "created animals",
}
end
def created_user(conn, %User{} = user) do
log(conn, events().created_user, %{user... | 21.179487 | 80 | 0.612591 |
9e0335634d6562d5212b26854c59a042ed138fd0 | 668 | exs | Elixir | config/config.exs | noircir/website-1 | bfe43f5a7b022dfc009802d9d068d438e83e73f9 | [
"MIT"
] | null | null | null | config/config.exs | noircir/website-1 | bfe43f5a7b022dfc009802d9d068d438e83e73f9 | [
"MIT"
] | null | null | null | config/config.exs | noircir/website-1 | bfe43f5a7b022dfc009802d9d068d438e83e73f9 | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# By default, the umbrella project as well as each child
# application will require this configuration file, ensuring
# they all use the same configuration. While one could
# configu... | 35.157895 | 61 | 0.769461 |
9e033f62a8a2c66e6f145544391645398e7c5611 | 484 | ex | Elixir | test/fixtures/example_code/clean_redux.ex | codeclimate-community/credo | b960a25d604b4499a2577321f9d61b39dc4b0437 | [
"MIT"
] | 4,590 | 2015-09-28T06:01:43.000Z | 2022-03-29T08:48:57.000Z | test/fixtures/example_code/clean_redux.ex | codeclimate-community/credo | b960a25d604b4499a2577321f9d61b39dc4b0437 | [
"MIT"
] | 890 | 2015-11-16T21:07:07.000Z | 2022-03-29T08:52:07.000Z | test/fixtures/example_code/clean_redux.ex | codeclimate-community/credo | b960a25d604b4499a2577321f9d61b39dc4b0437 | [
"MIT"
] | 479 | 2015-11-17T19:42:40.000Z | 2022-03-29T00:09:21.000Z | defmodule X do
defp escape_charlist(reversed_result, [?" | remainder], needs_quote?),
do: escape_charlist('"\\' ++ reversed_result, remainder, needs_quote?)
@doc ~S"""
Escape a subsection name before saving.
"""
def escape_subsection(""), do: "\"\""
def escape_subsection(x) when is_binary(x) do
x
... | 24.2 | 74 | 0.644628 |
9e035414cb85d5c5c50c18b0c0d5ce449abeaaef | 521 | exs | Elixir | test/models/user_test.exs | everydayhoodie/phoenix-trello-notes | ca535a69c610f5edbfca85e34b06a679422d4ba2 | [
"MIT"
] | 1 | 2020-12-23T18:28:53.000Z | 2020-12-23T18:28:53.000Z | test/models/user_test.exs | everydayhoodie/phoenix-trello-notes | ca535a69c610f5edbfca85e34b06a679422d4ba2 | [
"MIT"
] | null | null | null | test/models/user_test.exs | everydayhoodie/phoenix-trello-notes | ca535a69c610f5edbfca85e34b06a679422d4ba2 | [
"MIT"
] | null | null | null | defmodule PhoenixTrello.UserTest do
use PhoenixTrello.ModelCase
alias PhoenixTrello.User
@valid_attrs %{email: "some content", encrypted_password: "some content", first_name: "some content", last_name: "some content"}
@invalid_attrs %{}
test "changeset with valid attributes" do
changeset = User.changes... | 27.421053 | 130 | 0.737044 |
9e0356c14928eb618f011733a583f00a952fb42e | 3,317 | ex | Elixir | lib/google_api/storage/v1/model/bucket_access_control.ex | albert-io/elixir-google-api-storage | 302144ec2c1261104d1a20942482796b2fc0905f | [
"Apache-2.0"
] | null | null | null | lib/google_api/storage/v1/model/bucket_access_control.ex | albert-io/elixir-google-api-storage | 302144ec2c1261104d1a20942482796b2fc0905f | [
"Apache-2.0"
] | null | null | null | lib/google_api/storage/v1/model/bucket_access_control.ex | albert-io/elixir-google-api-storage | 302144ec2c1261104d1a20942482796b2fc0905f | [
"Apache-2.0"
] | 1 | 2019-04-17T05:52:55.000Z | 2019-04-17T05:52:55.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... | 40.950617 | 517 | 0.706663 |
9e035be10eb889e44774522aa30d5982b7b31121 | 7,058 | ex | Elixir | lib/burette/name/en_us.ex | mememori/arand | 97813dfa877e95ed6a575f95defbed21b70a6fc4 | [
"Apache-2.0"
] | 8 | 2016-11-29T09:44:45.000Z | 2018-03-12T14:17:48.000Z | lib/burette/name/en_us.ex | mememori/arand | 97813dfa877e95ed6a575f95defbed21b70a6fc4 | [
"Apache-2.0"
] | 6 | 2017-03-20T18:41:45.000Z | 2017-10-31T19:12:00.000Z | lib/burette/name/en_us.ex | mememori/arand | 97813dfa877e95ed6a575f95defbed21b70a6fc4 | [
"Apache-2.0"
] | 3 | 2017-01-15T23:10:16.000Z | 2020-10-19T03:02:13.000Z | defmodule Burette.Name.En.Us do
alias Burette.Helper.Lexicon
@behaviour Burette.Name
@name Lexicon.build ~w/
Aaron
Abigail
Abbott
Abel
Abraham
Ada
Adam
Adelaide
Addison
Adrian
Agatha
Agnes
Alastair
Albert
Alexander
Alfred
Allan
Alice
A... | 11.74376 | 48 | 0.544914 |
9e0394b1e6deaf2070c567aceeda7e0849edf409 | 124 | ex | Elixir | debian/menu.ex | rzr/pfs | d0381a0366d0b42f58ea0e9cc54d02c73211be5f | [
"BSD-2-Clause"
] | 17 | 2016-02-19T14:47:33.000Z | 2022-02-18T01:12:59.000Z | debian/menu.ex | rzr/pfs | d0381a0366d0b42f58ea0e9cc54d02c73211be5f | [
"BSD-2-Clause"
] | 2 | 2015-02-20T23:06:39.000Z | 2017-10-03T11:33:04.000Z | debian/menu.ex | rzr/pfs | d0381a0366d0b42f58ea0e9cc54d02c73211be5f | [
"BSD-2-Clause"
] | 5 | 2015-10-13T20:20:39.000Z | 2019-10-24T06:12:13.000Z | ?package(pcloudfs):needs="X11|text|vc|wm" section="Applications/see-menu-manual"\
title="pcloudfs" command="/usr/bin/pfs"
| 41.333333 | 81 | 0.741935 |
9e03b405d700778f77b146a4a996fd5ead2ed0ac | 317 | exs | Elixir | config/config.exs | straw-hat-team/straw_hat_review | 342dbbfac0ac96287111babd59b5321efdd8728d | [
"MIT"
] | 11 | 2018-04-09T06:32:02.000Z | 2019-09-11T14:18:21.000Z | config/config.exs | straw-hat-labs/straw_hat_review | 342dbbfac0ac96287111babd59b5321efdd8728d | [
"MIT"
] | 64 | 2018-03-30T06:21:49.000Z | 2019-11-01T13:57:34.000Z | config/config.exs | straw-hat-labs/straw_hat_review | 342dbbfac0ac96287111babd59b5321efdd8728d | [
"MIT"
] | 1 | 2018-06-21T23:00:00.000Z | 2018-06-21T23:00:00.000Z | use Mix.Config
config :straw_hat_review, ecto_repos: [StrawHat.Review.Repo]
config :straw_hat_review, StrawHat.Review.Repo,
database: "straw_hat_review_test",
username: "postgres",
hostname: "localhost",
pool: Ecto.Adapters.SQL.Sandbox
config :arc, storage: Arc.Storage.Local
config :logger, level: :warn
| 22.642857 | 60 | 0.763407 |
9e03cf2fcf3e089dc897518d2e298e4443632778 | 981 | ex | Elixir | apps/astarte_housekeeping/lib/astarte_housekeeping_web/plug/metrics_plug.ex | Annopaolo/astarte | f8190e8bf044759a9b84bdeb5786a55b6f793a4f | [
"Apache-2.0"
] | 191 | 2018-03-30T13:23:08.000Z | 2022-03-02T12:05:32.000Z | apps/astarte_housekeeping/lib/astarte_housekeeping_web/plug/metrics_plug.ex | Annopaolo/astarte | f8190e8bf044759a9b84bdeb5786a55b6f793a4f | [
"Apache-2.0"
] | 402 | 2018-03-30T13:37:00.000Z | 2022-03-31T16:47:10.000Z | apps/astarte_housekeeping/lib/astarte_housekeeping_web/plug/metrics_plug.ex | Annopaolo/astarte | f8190e8bf044759a9b84bdeb5786a55b6f793a4f | [
"Apache-2.0"
] | 24 | 2018-03-30T13:29:48.000Z | 2022-02-28T11:10:26.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... | 28.028571 | 74 | 0.72579 |
9e03dfb7e575d0570d261b4e156721be838f7676 | 1,078 | exs | Elixir | mix.exs | Gimi/coders | 28e20558ac26709c62b8463dae963e4e41a759b2 | [
"MIT"
] | null | null | null | mix.exs | Gimi/coders | 28e20558ac26709c62b8463dae963e4e41a759b2 | [
"MIT"
] | null | null | null | mix.exs | Gimi/coders | 28e20558ac26709c62b8463dae963e4e41a759b2 | [
"MIT"
] | null | null | null | defmodule Coders.Mixfile do
use Mix.Project
def project do
[app: :coders,
version: "0.0.1",
elixir: "~> 1.0",
elixirc_paths: elixirc_paths(Mix.env),
compilers: [:phoenix] ++ Mix.compilers,
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps]
end
... | 26.95 | 75 | 0.585343 |
9e04323188a2467314879b49cd9714483a3c7733 | 2,947 | ex | Elixir | lib/crawler/monova.ex | milandzo/milandzotorismo | 51e92afbc776b8a60d8f9e79fc44d6669724dcf9 | [
"MIT"
] | null | null | null | lib/crawler/monova.ex | milandzo/milandzotorismo | 51e92afbc776b8a60d8f9e79fc44d6669724dcf9 | [
"MIT"
] | null | null | null | lib/crawler/monova.ex | milandzo/milandzotorismo | 51e92afbc776b8a60d8f9e79fc44d6669724dcf9 | [
"MIT"
] | 1 | 2020-10-05T14:16:08.000Z | 2020-10-05T14:16:08.000Z | defmodule Magnetissimo.Crawler.Monova do
use GenServer
alias Magnetissimo.Torrent
alias Magnetissimo.Crawler.Helper
require Logger
def start_link do
queue = initial_queue()
GenServer.start_link(__MODULE__, queue)
end
def init(queue) do
schedule_work()
{:ok, queue}
end
defp schedule_... | 23.576 | 85 | 0.601289 |
9e044fd424999d271ba142d9f6a391a97d6dccf0 | 13,911 | ex | Elixir | lib/remsign/backend.ex | trustcor/remsign | 5186675206654d950e15b718d68f655f03b135dd | [
"MIT"
] | 1 | 2017-09-27T16:13:12.000Z | 2017-09-27T16:13:12.000Z | lib/remsign/backend.ex | trustcor/remsign | 5186675206654d950e15b718d68f655f03b135dd | [
"MIT"
] | null | null | null | lib/remsign/backend.ex | trustcor/remsign | 5186675206654d950e15b718d68f655f03b135dd | [
"MIT"
] | null | null | null | defmodule Remsign.Backend do
@moduledoc """
Functionality for a backend server, which gets registered to one or more
brokers which then send signing requests to it.
"""
use GenServer
import Logger, only: [log: 2]
import Remsign.Utils, only: [get_in_default: 3]
def init([cfg = %{}, kl]... | 36.132468 | 149 | 0.53641 |
9e0451712c6b495cc20841ca723ea3433836f08b | 3,487 | ex | Elixir | clients/content/lib/google_api/content/v21/model/orders_return_refund_line_item_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/content/lib/google_api/content/v21/model/orders_return_refund_line_item_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/content/lib/google_api/content/v21/model/orders_return_refund_line_item_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 51.279412 | 456 | 0.704904 |
9e046d2b8bdeb6488a6aa41ca86e868f9754aff8 | 18,269 | exs | Elixir | apps/graphql/test/web/resolvers/reimbursement_contract_resolver_test.exs | ehealth-ua/ehealth.api | 4ffe26a464fe40c95fb841a4aa2e147068f65ca2 | [
"Apache-2.0"
] | 8 | 2019-06-14T11:34:49.000Z | 2021-08-05T19:14:24.000Z | apps/graphql/test/web/resolvers/reimbursement_contract_resolver_test.exs | edenlabllc/ehealth.api.public | 4ffe26a464fe40c95fb841a4aa2e147068f65ca2 | [
"Apache-2.0"
] | 1 | 2019-07-08T15:20:22.000Z | 2019-07-08T15:20:22.000Z | apps/graphql/test/web/resolvers/reimbursement_contract_resolver_test.exs | ehealth-ua/ehealth.api | 4ffe26a464fe40c95fb841a4aa2e147068f65ca2 | [
"Apache-2.0"
] | 6 | 2018-05-11T13:59:32.000Z | 2022-01-19T20:15:22.000Z | defmodule GraphQL.ReimbursementContractResolverTest do
@moduledoc false
use GraphQL.ConnCase, async: true
import Core.Factories, only: [insert: 2, insert: 3, build: 2]
import Core.Expectations.Mithril
import Core.Expectations.Signature, only: [edrpou_signed_content: 2]
import Mox
alias Absinthe.Relay.N... | 30.60134 | 115 | 0.621764 |
9e0488970b44f15cacd3ff62d502e8822d1ba24b | 463 | ex | Elixir | lib/ark_client/api/two/vote.ex | supaiku0/elixir-client | 2d5549ce3a876a18750a36a14ff769427688c5bb | [
"MIT"
] | null | null | null | lib/ark_client/api/two/vote.ex | supaiku0/elixir-client | 2d5549ce3a876a18750a36a14ff769427688c5bb | [
"MIT"
] | null | null | null | lib/ark_client/api/two/vote.ex | supaiku0/elixir-client | 2d5549ce3a876a18750a36a14ff769427688c5bb | [
"MIT"
] | null | null | null | defmodule ArkEcosystem.Client.API.Two.Account do
@moduledoc """
Documentation for ArkEcosystem.Client.API.One.Account.
"""
import ArkClient
@spec account(Tesla.Client.t(), List.t()) :: ArkEcosystem.Client.response()
def list(client, parameters \\ []) do
client |> get("votes", parameters)
end
@spe... | 25.722222 | 79 | 0.678186 |
9e04a79089c25c867d4298fb5e465cfbeaeef655 | 761 | exs | Elixir | config/test.exs | ysaito8015/communitex | d469447a62029d59883d95df4df3c9b09e0022e2 | [
"Apache-2.0"
] | 7 | 2021-07-14T15:45:55.000Z | 2022-01-25T11:13:01.000Z | config/test.exs | ysaito8015/communitex | d469447a62029d59883d95df4df3c9b09e0022e2 | [
"Apache-2.0"
] | 10 | 2021-08-09T15:54:05.000Z | 2022-02-17T04:18:38.000Z | config/test.exs | ysaito8015/communitex | d469447a62029d59883d95df4df3c9b09e0022e2 | [
"Apache-2.0"
] | 5 | 2021-07-23T05:54:35.000Z | 2022-01-28T04:14:51.000Z | use Mix.Config
# Only in tests, remove the complexity from the password hashing algorithm
config :pbkdf2_elixir, :rounds, 1
# Configure your database
#
# The MIX_TEST_PARTITION environment variable can be used
# to provide built-in test partitioning in CI environment.
# Run `mix help test` for more information.
confi... | 29.269231 | 74 | 0.751643 |
9e04af7f9fc7b2a59371f3e9310ba5260758f616 | 2,476 | ex | Elixir | clients/dlp/lib/google_api/dlp/v2beta1/model/google_longrunning_operation.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/dlp/lib/google_api/dlp/v2beta1/model/google_longrunning_operation.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/dlp/lib/google_api/dlp/v2beta1/model/google_longrunning_operation.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... | 42.689655 | 224 | 0.744346 |
9e04e1c64af1e424e5f1ca1c5c993c6a36e9cd28 | 578 | ex | Elixir | lib/scp_to_anywhere/password.ex | daph/scp_to_anywhere | dacdc1b273af694e3c5cba263e88118eb87fd964 | [
"BSD-3-Clause"
] | null | null | null | lib/scp_to_anywhere/password.ex | daph/scp_to_anywhere | dacdc1b273af694e3c5cba263e88118eb87fd964 | [
"BSD-3-Clause"
] | null | null | null | lib/scp_to_anywhere/password.ex | daph/scp_to_anywhere | dacdc1b273af694e3c5cba263e88118eb87fd964 | [
"BSD-3-Clause"
] | null | null | null | defmodule ScpToAnywhere.Password do
require Logger
def auth(user, pass, _info, _state) do
user = List.to_string(user)
pass = List.to_string(pass)
Logger.info("#{user} #{pass}")
case get_password(user) do
{:ok, user_pass} ->
pass == user_pass
{:error, :no_password} ->
fal... | 20.642857 | 51 | 0.579585 |
9e05367eb5e8b3805988a5307d654b5fbd6a9e35 | 2,938 | exs | Elixir | test/stripe_app_web/controllers/getplan_controller_test.exs | hotpyn/stripe_demo | 2a0ac3ab34a616ffcd6d7e979c25517b5f1636b5 | [
"MIT"
] | null | null | null | test/stripe_app_web/controllers/getplan_controller_test.exs | hotpyn/stripe_demo | 2a0ac3ab34a616ffcd6d7e979c25517b5f1636b5 | [
"MIT"
] | null | null | null | test/stripe_app_web/controllers/getplan_controller_test.exs | hotpyn/stripe_demo | 2a0ac3ab34a616ffcd6d7e979c25517b5f1636b5 | [
"MIT"
] | null | null | null | defmodule StripeAppWeb.GetplanControllerTest do
use StripeAppWeb.ConnCase
alias StripeApp.Products
@create_attrs %{plan_id: 42, price: 120.5, status: 42, stripe_sub_id: "some stripe_sub_id", user_id: 42}
@update_attrs %{plan_id: 43, price: 456.7, status: 43, stripe_sub_id: "some updated stripe_sub_id", user_i... | 33.011236 | 114 | 0.674609 |
9e05453770afe37a1975c9a9c1aa7addc44208e1 | 1,250 | ex | Elixir | lib/vutuv_web/endpoint.ex | hendri-tobing/vutuv | 50a3095e236fe96739a79954157b74b4c4025921 | [
"MIT"
] | null | null | null | lib/vutuv_web/endpoint.ex | hendri-tobing/vutuv | 50a3095e236fe96739a79954157b74b4c4025921 | [
"MIT"
] | null | null | null | lib/vutuv_web/endpoint.ex | hendri-tobing/vutuv | 50a3095e236fe96739a79954157b74b4c4025921 | [
"MIT"
] | null | null | null | defmodule VutuvWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :vutuv
socket "/socket", VutuvWeb.UserSocket,
websocket: true,
longpoll: false
# Serve at "/" the static files from "priv/static" directory.
#
# You should set gzip to true if you are running phx.digest
# when deploying your static file... | 26.595745 | 69 | 0.7064 |
9e0575d106d5f008d102684010f2c325b39d8699 | 637 | ex | Elixir | web/controllers/public_post_controller.ex | allen-garvey/artour | fce27b234d11a3e434c897b5fa3178b7c126245f | [
"MIT"
] | 4 | 2019-10-04T16:11:15.000Z | 2021-08-18T21:00:13.000Z | apps/artour/web/controllers/public_post_controller.ex | allen-garvey/phoenix-umbrella | 1d444bbd62a5e7b5f51d317ce2be71ee994125d5 | [
"MIT"
] | 5 | 2020-03-16T23:52:25.000Z | 2021-09-03T16:52:17.000Z | apps/artour/web/controllers/public_post_controller.ex | allen-garvey/phoenix-umbrella | 1d444bbd62a5e7b5f51d317ce2be71ee994125d5 | [
"MIT"
] | null | null | null | defmodule Artour.PublicPostController do
use Artour.Web, :controller
alias Artour.Public
@doc """
Used on public site to show all posts in reverse chronological order
"""
def index(conn, _params) do
posts = Public.list_posts()
render conn, "index.html", page_title: "Posts", posts: posts
end
@... | 26.541667 | 163 | 0.703297 |
9e0578e0537de361076ed3257e578799b5741d99 | 2,662 | ex | Elixir | clients/books/lib/google_api/books/v1/model/review.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | null | null | null | clients/books/lib/google_api/books/v1/model/review.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | null | null | null | clients/books/lib/google_api/books/v1/model/review.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... | 35.493333 | 134 | 0.684448 |
9e059bd36c21ce298dcff1dc07739113285825b7 | 6,720 | ex | Elixir | host_core/lib/host_core/host.ex | adobe-platform/wasmcloud-otp | bcfcdf9814bc529e67c954eacabdc9a05c772cfa | [
"Apache-2.0"
] | null | null | null | host_core/lib/host_core/host.ex | adobe-platform/wasmcloud-otp | bcfcdf9814bc529e67c954eacabdc9a05c772cfa | [
"Apache-2.0"
] | null | null | null | host_core/lib/host_core/host.ex | adobe-platform/wasmcloud-otp | bcfcdf9814bc529e67c954eacabdc9a05c772cfa | [
"Apache-2.0"
] | null | null | null | defmodule HostCore.Host do
@moduledoc false
use GenServer, restart: :transient
alias HostCore.CloudEvent
require Logger
# To set this value in a release, edit the `env.sh` file that is generated
# by a mix release.
defmodule State do
@moduledoc false
defstruct [:host_key, :lattice_prefix]
end
... | 28.595745 | 134 | 0.661905 |
9e05a3842e4a1fd40e5308b2227621c8b03fcd64 | 452 | ex | Elixir | apps/resource_manager/lib/identities/client_applications.ex | dcdourado/watcher_ex | ce80df81610a6e9b77612911aac2a6d6cf4de8d5 | [
"Apache-2.0"
] | 9 | 2020-10-13T14:11:37.000Z | 2021-08-12T18:40:08.000Z | apps/resource_manager/lib/identities/client_applications.ex | dcdourado/watcher_ex | ce80df81610a6e9b77612911aac2a6d6cf4de8d5 | [
"Apache-2.0"
] | 28 | 2020-10-04T14:43:48.000Z | 2021-12-07T16:54:22.000Z | apps/resource_manager/lib/identities/client_applications.ex | dcdourado/watcher_ex | ce80df81610a6e9b77612911aac2a6d6cf4de8d5 | [
"Apache-2.0"
] | 3 | 2020-11-25T20:59:47.000Z | 2021-08-30T10:36:58.000Z | defmodule ResourceManager.Identities.ClientApplications do
@moduledoc """
Client application are subject identities that are not impersonated by a person.
A client application is allowed to do certain actions by authenticating in the authentication
provider with success.
What a client application can do is ... | 34.769231 | 96 | 0.807522 |
9e05ec25e8605b4aa857fb1a183921b955710ed7 | 1,545 | ex | Elixir | lib/hive/vehicle/vehicle_supervisor.ex | hive-fleet/hive-state | 12478d8540cc93863237f6456ade0de68c56501e | [
"Apache-2.0"
] | 5 | 2020-05-05T17:10:44.000Z | 2021-03-24T20:37:48.000Z | lib/hive/vehicle/vehicle_supervisor.ex | hive-fleet/hive-state | 12478d8540cc93863237f6456ade0de68c56501e | [
"Apache-2.0"
] | 10 | 2020-05-09T22:06:07.000Z | 2020-05-09T22:10:14.000Z | lib/hive/vehicle/vehicle_supervisor.ex | hive-fleet/hive-state | 12478d8540cc93863237f6456ade0de68c56501e | [
"Apache-2.0"
] | 2 | 2020-05-06T14:47:33.000Z | 2021-06-11T21:12:29.000Z | defmodule Hive.VehicleSupervisor do
@moduledoc false
use DynamicSupervisor
require Logger
use Hive.Base
import Hive.Vehicle.Helpers
# Client
def start_link(arg) do
DynamicSupervisor.start_link(@mod, arg, name: @mod)
end
@doc """
Infleet `%Vehicle{}` and supervise in case if we need to
keep ... | 22.720588 | 82 | 0.644013 |
9e060941ecf270b79c4a9aa4c26882ce1e9acf95 | 896 | ex | Elixir | clients/health_care/lib/google_api/health_care/v1beta1/metadata.ex | MShaffar19/elixir-google-api | aac92cd85f423e6d08c9571ee97cf21545df163f | [
"Apache-2.0"
] | null | null | null | clients/health_care/lib/google_api/health_care/v1beta1/metadata.ex | MShaffar19/elixir-google-api | aac92cd85f423e6d08c9571ee97cf21545df163f | [
"Apache-2.0"
] | null | null | null | clients/health_care/lib/google_api/health_care/v1beta1/metadata.ex | MShaffar19/elixir-google-api | aac92cd85f423e6d08c9571ee97cf21545df163f | [
"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.185185 | 74 | 0.762277 |
9e064f6c7aa1ae8fae6505ca4aa1428bd25ac34e | 1,838 | ex | Elixir | clients/android_management/lib/google_api/android_management/v1/model/managed_configuration_template.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/android_management/lib/google_api/android_management/v1/model/managed_configuration_template.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/android_management/lib/google_api/android_management/v1/model/managed_configuration_template.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 36.76 | 163 | 0.749184 |
9e06986c0bf8080bfc0706cb779c617105861957 | 990 | ex | Elixir | lib/ikki/endpoint.ex | ulissesalmeida/ikki | a6f3104acea76a0eac917e98f2c8df910c668fdc | [
"MIT"
] | 15 | 2015-09-01T03:38:30.000Z | 2019-01-29T16:16:12.000Z | lib/ikki/endpoint.ex | ulissesalmeida/ikki | a6f3104acea76a0eac917e98f2c8df910c668fdc | [
"MIT"
] | null | null | null | lib/ikki/endpoint.ex | ulissesalmeida/ikki | a6f3104acea76a0eac917e98f2c8df910c668fdc | [
"MIT"
] | 3 | 2015-09-18T18:42:29.000Z | 2018-09-25T21:45:30.000Z | defmodule Ikki.Endpoint do
use Phoenix.Endpoint, otp_app: :ikki
socket "/socket", Ikki.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 Plug.Static,
at: "/... | 24.75 | 69 | 0.70404 |
9e06be6ce6f024357e0be2aff71481fbacb4f076 | 1,737 | ex | Elixir | lib/sentinel/web/controllers/html/account_controller.ex | suranyami/sentinel | aeb421e2e61a4bc14abe89b4a92cb1943a5965fb | [
"MIT"
] | null | null | null | lib/sentinel/web/controllers/html/account_controller.ex | suranyami/sentinel | aeb421e2e61a4bc14abe89b4a92cb1943a5965fb | [
"MIT"
] | null | null | null | lib/sentinel/web/controllers/html/account_controller.ex | suranyami/sentinel | aeb421e2e61a4bc14abe89b4a92cb1943a5965fb | [
"MIT"
] | null | null | null | defmodule Sentinel.Controllers.Html.AccountController do
@moduledoc """
Handles the account show and update actions
"""
use Phoenix.Controller
alias Sentinel.{Config, Update}
plug :put_layout, {Config.layout_view, Config.layout}
plug Sentinel.AuthenticatedPipeline
@doc """
Get the account data for... | 37.76087 | 110 | 0.70639 |
9e06c8fc80bf626a4ebd35f2ba4cb2e73ebf40dd | 6,635 | ex | Elixir | apps/omg_watcher/lib/omg_watcher/exit_processor/exit_info.ex | boolafish/elixir-omg | 46b568404972f6e4b4da3195d42d4fb622edb934 | [
"Apache-2.0"
] | null | null | null | apps/omg_watcher/lib/omg_watcher/exit_processor/exit_info.ex | boolafish/elixir-omg | 46b568404972f6e4b4da3195d42d4fb622edb934 | [
"Apache-2.0"
] | null | null | null | apps/omg_watcher/lib/omg_watcher/exit_processor/exit_info.ex | boolafish/elixir-omg | 46b568404972f6e4b4da3195d42d4fb622edb934 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019-2020 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 ... | 36.456044 | 118 | 0.695855 |
9e06dec6c9f1b6b8d0601e5d48cc51068102429b | 403 | exs | Elixir | Getting-Started-with-Phoenix/rsvp_umbrella/mix.exs | timothydang/elixir-phoenix-training | f21ca5b4b48bf8c7188897d09b9d6565f7a46f0e | [
"Apache-2.0"
] | null | null | null | Getting-Started-with-Phoenix/rsvp_umbrella/mix.exs | timothydang/elixir-phoenix-training | f21ca5b4b48bf8c7188897d09b9d6565f7a46f0e | [
"Apache-2.0"
] | 3 | 2020-07-17T15:52:56.000Z | 2021-05-09T22:33:57.000Z | Getting-Started-with-Phoenix/rsvp_umbrella/mix.exs | timothydang/elixir-phoenix-training | f21ca5b4b48bf8c7188897d09b9d6565f7a46f0e | [
"Apache-2.0"
] | null | null | null | defmodule RsvpUmbrella.MixProject do
use Mix.Project
def project do
[
apps_path: "apps",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Dependencies listed here are available only for this
# project and cannot be accessed from applications inside
# the apps folder.
#... | 19.190476 | 59 | 0.655087 |
9e06f5330a74fa13110b691acca0d914725c6dad | 617 | ex | Elixir | lib/sanbase_web/admin/model/contract_address.ex | sitedata/sanbase2 | 8da5e44a343288fbc41b68668c6c80ae8547d557 | [
"MIT"
] | 81 | 2017-11-20T01:20:22.000Z | 2022-03-05T12:04:25.000Z | lib/sanbase_web/admin/model/contract_address.ex | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | 359 | 2017-10-15T14:40:53.000Z | 2022-01-25T13:34:20.000Z | lib/sanbase_web/admin/model/contract_address.ex | sitedata/sanbase2 | 8da5e44a343288fbc41b68668c6c80ae8547d557 | [
"MIT"
] | 16 | 2017-11-19T13:57:40.000Z | 2022-02-07T08:13:02.000Z | defmodule SanbaseWeb.ExAdmin.Model.Project.ContractAddress do
use ExAdmin.Register
import Ecto.Query
register_resource Sanbase.Model.Project.ContractAddress do
controller do
after_filter(:set_defaults, only: [:new])
end
end
def set_defaults(conn, params, resource, :new) do
{conn, params, ... | 25.708333 | 76 | 0.721232 |
9e070ac13150823dfbd146b8affa3e4ff9d4176d | 557 | exs | Elixir | exercises/concept/chessboard/test/chessboard_test.exs | SaschaMann/elixir | 2489747bba72a0ba5efa27e7e00441a428fdf987 | [
"MIT"
] | 1 | 2021-06-09T06:57:02.000Z | 2021-06-09T06:57:02.000Z | exercises/concept/chessboard/test/chessboard_test.exs | SaschaMann/elixir | 2489747bba72a0ba5efa27e7e00441a428fdf987 | [
"MIT"
] | 6 | 2022-03-04T13:05:25.000Z | 2022-03-30T18:36:49.000Z | exercises/concept/chessboard/test/chessboard_test.exs | SaschaMann/elixir | 2489747bba72a0ba5efa27e7e00441a428fdf987 | [
"MIT"
] | null | null | null | defmodule ChessboardTest do
use ExUnit.Case
@task_id 1
test "rank_range is a range from 1 to 8" do
assert Chessboard.rank_range() == 1..8
end
@task_id 2
test "file_range is a range from ?A to ?H" do
assert Chessboard.file_range() == ?A..?H
end
@task_id 3
test "ranks is a list of integers fr... | 23.208333 | 73 | 0.612208 |
9e071abc85c503c26994d96c92c4be50d9522f3c | 2,624 | exs | Elixir | test/delivery/packages_test.exs | Simon-Initiative/proving-ground | ab6ba03051e55edbaa09535f11d9192776c8d901 | [
"MIT"
] | null | null | null | test/delivery/packages_test.exs | Simon-Initiative/proving-ground | ab6ba03051e55edbaa09535f11d9192776c8d901 | [
"MIT"
] | 4 | 2021-03-01T20:51:23.000Z | 2021-09-20T21:37:12.000Z | test/delivery/packages_test.exs | Simon-Initiative/proving-ground | ab6ba03051e55edbaa09535f11d9192776c8d901 | [
"MIT"
] | null | null | null | defmodule Delivery.PackagesTest do
use Delivery.DataCase
alias Delivery.Packages
describe "packages" do
alias Delivery.Packages.Package
@valid_attrs %{description: "some description", friendly: "some friendly", title: "some title", version: "some version"}
@update_attrs %{description: "some updated... | 36.957746 | 157 | 0.691692 |
9e07387e04f1e57ea7ae53bdb12409e72e50ffb3 | 1,294 | ex | Elixir | stats.ex | dcarneiro/etudes-for-elixir | 807d21942747817d84fc2890806582b59921bd59 | [
"MIT"
] | null | null | null | stats.ex | dcarneiro/etudes-for-elixir | 807d21942747817d84fc2890806582b59921bd59 | [
"MIT"
] | null | null | null | stats.ex | dcarneiro/etudes-for-elixir | 807d21942747817d84fc2890806582b59921bd59 | [
"MIT"
] | null | null | null | defmodule Stats do
def minimum(list) do
try do
[head|tail] = list
minimum(tail, head)
rescue
err -> err
end
end
defp minimum([], result) do
result
end
defp minimum([head|tail], result) when result < head do
minimum(tail, result)
end
defp minimum([head|tail], _resul... | 18.485714 | 74 | 0.578053 |
9e073ad408bd1a845d55c3bd263b542eec2e27eb | 1,995 | exs | Elixir | test/ai_web/controllers/api/v1/user_controller_test.exs | mirai-audio/- | 365c0fba614543bf40ebaae55de47bc541bd473f | [
"MIT"
] | null | null | null | test/ai_web/controllers/api/v1/user_controller_test.exs | mirai-audio/- | 365c0fba614543bf40ebaae55de47bc541bd473f | [
"MIT"
] | null | null | null | test/ai_web/controllers/api/v1/user_controller_test.exs | mirai-audio/- | 365c0fba614543bf40ebaae55de47bc541bd473f | [
"MIT"
] | null | null | null | defmodule AiWeb.API.V1.UserControllerTest do
use AiWeb.ConnCase
alias Ai.Accounts.Credential
@valid_attrs %{
email: "a@bb.cc",
password: "aaabbbcccddd",
"password-confirmation": "aaabbbcccddd"
}
@invalid_attrs %{}
setup %{conn: conn} do
conn =
conn
|> put_req_header("accept", ... | 25.909091 | 101 | 0.556391 |
9e074116fe6785d6257043396d05e5b6b82a8f2e | 167 | ex | Elixir | apps/discovery_api/lib/discovery_api_web/views/tableau_view.ex | calebcarroll1/smartcitiesdata | b0f03496f6c592c82ba14aebf6c5996311cf3cd0 | [
"Apache-2.0"
] | 26 | 2019-09-20T23:54:45.000Z | 2020-08-20T14:23:32.000Z | apps/discovery_api/lib/discovery_api_web/views/tableau_view.ex | calebcarroll1/smartcitiesdata | b0f03496f6c592c82ba14aebf6c5996311cf3cd0 | [
"Apache-2.0"
] | 757 | 2019-08-15T18:15:07.000Z | 2020-09-18T20:55:31.000Z | apps/discovery_api/lib/discovery_api_web/views/tableau_view.ex | calebcarroll1/smartcitiesdata | b0f03496f6c592c82ba14aebf6c5996311cf3cd0 | [
"Apache-2.0"
] | 9 | 2019-11-12T16:43:46.000Z | 2020-03-25T16:23:16.000Z | defmodule DiscoveryApiWeb.TableauView do
use DiscoveryApiWeb, :view
def render("fetch_table_info.json", %{table_infos: table_infos}) do
table_infos
end
end
| 20.875 | 69 | 0.772455 |
9e07567bda332648962121e228c4556271b182d0 | 928 | exs | Elixir | config/config.exs | albydarned/shorten | af4f870dbb0f9c3b0699712cc27370e83ed3a730 | [
"MIT"
] | 3 | 2018-09-14T16:16:11.000Z | 2019-07-12T22:25:50.000Z | config/config.exs | albydarned/shorten | af4f870dbb0f9c3b0699712cc27370e83ed3a730 | [
"MIT"
] | null | null | null | config/config.exs | albydarned/shorten | af4f870dbb0f9c3b0699712cc27370e83ed3a730 | [
"MIT"
] | 1 | 2019-07-12T22:25:53.000Z | 2019-07-12T22:25:53.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.
use Mix.Config
# General application configuration
config :shorten,
ecto_repos: [Shorten.Repo]
# ... | 33.142857 | 86 | 0.762931 |
9e079d7fb5593f3041c548ec3fe21968e25939d9 | 194 | ex | Elixir | lib/honeydew/please/events/list_made.ex | christian-fei/honeydew | af06f5778de164fd50979ae20e59b6aeb3092485 | [
"MIT"
] | 13 | 2022-02-13T18:43:20.000Z | 2022-03-19T11:53:48.000Z | lib/honeydew/please/events/list_made.ex | christian-fei/honeydew | af06f5778de164fd50979ae20e59b6aeb3092485 | [
"MIT"
] | 1 | 2022-02-23T13:57:19.000Z | 2022-02-23T13:57:19.000Z | lib/honeydew/please/events/list_made.ex | christian-fei/honeydew | af06f5778de164fd50979ae20e59b6aeb3092485 | [
"MIT"
] | 3 | 2022-02-13T19:25:19.000Z | 2022-02-22T17:56:52.000Z | defmodule Honeydew.Please.Events.ListMade do
@moduledoc """
Event that signals a new list was made.
"""
@derive Jason.Encoder
defstruct [
:list_id,
:name,
:notes
]
end
| 13.857143 | 44 | 0.64433 |
9e07a27516f7b77e609c655189c37b15cc661977 | 673 | ex | Elixir | test/support/net.ex | steveoliver/reactive-interaction-gateway | 59b6dc994fd0f098bed19b7bf1e699513ac87167 | [
"Apache-2.0"
] | 518 | 2017-11-09T13:10:49.000Z | 2022-03-28T14:29:50.000Z | test/support/net.ex | steveoliver/reactive-interaction-gateway | 59b6dc994fd0f098bed19b7bf1e699513ac87167 | [
"Apache-2.0"
] | 270 | 2017-11-10T00:11:34.000Z | 2022-02-27T13:08:16.000Z | test/support/net.ex | steveoliver/reactive-interaction-gateway | 59b6dc994fd0f098bed19b7bf1e699513ac87167 | [
"Apache-2.0"
] | 67 | 2017-12-19T20:16:37.000Z | 2022-03-31T10:43:04.000Z | defmodule RigInboundGatewayWeb.Net do
@moduledoc false
def tcp_port_free?(port_num) do
import Enum
:erlang.ports()
|> map(fn port ->
info =
case :erlang.port_info(port) do
info when is_list(info) -> info
_ -> []
end
{port, info}
end)
|> filter(f... | 19.794118 | 64 | 0.511144 |
9e07add9116a764f65222f6e63dc697d3a4939c2 | 1,729 | ex | Elixir | clients/container_analysis/lib/google_api/container_analysis/v1beta1/model/batch_create_occurrences_response.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/container_analysis/lib/google_api/container_analysis/v1beta1/model/batch_create_occurrences_response.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/container_analysis/lib/google_api/container_analysis/v1beta1/model/batch_create_occurrences_response.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 33.25 | 147 | 0.75882 |
9e07d5ed4bbc98daab3cbede513587d3cfa7e17b | 24 | exs | Elixir | HelloWorld/elixir/hello-word.exs | LarisseLima/BabySteps | 882b6f44895092c9b060019b14d9b850c1cc8083 | [
"MIT"
] | 37 | 2020-10-01T03:50:42.000Z | 2021-11-23T00:49:51.000Z | HelloWorld/elixir/hello-word.exs | LarisseLima/BabySteps | 882b6f44895092c9b060019b14d9b850c1cc8083 | [
"MIT"
] | 27 | 2020-10-03T23:16:13.000Z | 2021-11-19T19:53:01.000Z | HelloWorld/elixir/hello-word.exs | LarisseLima/BabySteps | 882b6f44895092c9b060019b14d9b850c1cc8083 | [
"MIT"
] | 97 | 2020-10-01T11:39:01.000Z | 2021-11-01T00:30:53.000Z | IO.puts "hello, world!"
| 12 | 23 | 0.666667 |
9e07d6a6f613469bc5f84c938b6a20c9df3374c1 | 521 | ex | Elixir | lib/changelog/regexp.ex | PsOverflow/changelog.com | 53f4ecfc39b021c6b8cfcc0fa11f29aff8038a7f | [
"MIT"
] | 2,599 | 2016-10-25T15:02:53.000Z | 2022-03-26T02:34:42.000Z | lib/changelog/regexp.ex | type1fool/changelog.com | fbec3528cc3f5adfdc75b008bb92b17efc4f248f | [
"MIT"
] | 253 | 2016-10-25T20:29:24.000Z | 2022-03-29T21:52:36.000Z | lib/changelog/regexp.ex | type1fool/changelog.com | fbec3528cc3f5adfdc75b008bb92b17efc4f248f | [
"MIT"
] | 298 | 2016-10-25T15:18:31.000Z | 2022-01-18T21:25:52.000Z | defmodule Changelog.Regexp do
def email, do: ~r/^\S+@\S+\.\S+$/
def http, do: ~r/^https?:\/\//
def http_message, do: "must include http(s)://"
def tag, do: ~r/(?<open><\/?)(?<tag>.*?)(?<close>>)/
def tag(name), do: ~r/(?<open><\/?)#{name}(?<close>>)/
def social, do: ~r/\A[a-z|A-Z|0-9|_|-]+\z/
def so... | 23.681818 | 57 | 0.514395 |
9e07f0963114a8ddb7910a02db47353f18440b25 | 4,643 | exs | Elixir | test/scenic_new_nerves_test.exs | grahamhay/scenic_new | 23bb1559878ed5e1cd66866b758a685306cbc1a8 | [
"Apache-2.0"
] | null | null | null | test/scenic_new_nerves_test.exs | grahamhay/scenic_new | 23bb1559878ed5e1cd66866b758a685306cbc1a8 | [
"Apache-2.0"
] | null | null | null | test/scenic_new_nerves_test.exs | grahamhay/scenic_new | 23bb1559878ed5e1cd66866b758a685306cbc1a8 | [
"Apache-2.0"
] | null | null | null | Code.require_file("mix_helper.exs", __DIR__)
defmodule Mix.Tasks.Scenic.New.NervesTest do
use ExUnit.Case, async: false
import ScenicNew.MixHelper
import ExUnit.CaptureIO
@app_name "scenic_demo"
@module_name "ScenicDemo"
test "new.example with defaults" do
in_tmp("new with defaults", fn ->
ass... | 36.849206 | 98 | 0.587767 |
9e07fa26ca94dfb023dd60b28248dc4b84e49f2d | 3,281 | exs | Elixir | test/lib/code_corps/model/project_user_test.exs | fikape/code-corps-api | c21674b0b2a19fa26945c94268db8894420ca181 | [
"MIT"
] | 275 | 2015-06-23T00:20:51.000Z | 2021-08-19T16:17:37.000Z | test/lib/code_corps/model/project_user_test.exs | fikape/code-corps-api | c21674b0b2a19fa26945c94268db8894420ca181 | [
"MIT"
] | 1,304 | 2015-06-26T02:11:54.000Z | 2019-12-12T21:08:00.000Z | test/lib/code_corps/model/project_user_test.exs | fikape/code-corps-api | c21674b0b2a19fa26945c94268db8894420ca181 | [
"MIT"
] | 140 | 2016-01-01T18:19:47.000Z | 2020-11-22T06:24:47.000Z | defmodule CodeCorps.ProjectUserTest do
use CodeCorps.ModelCase
alias CodeCorps.{ProjectUser, Repo}
describe "update_changeset role validation" do
test "includes pending" do
attrs = %{role: "pending"}
changeset = ProjectUser.update_changeset(%ProjectUser{}, attrs)
assert changeset.valid?
... | 32.166667 | 79 | 0.679976 |
9e082c7c5eb2743973a50e1a511b18cdd0117a6a | 3,909 | ex | Elixir | implementations/elixir/ockam/ockam/lib/ockam/messaging/ordering/strict/confirm_pipe.ex | Szymongib/ockam | b6d8c62ec2516c8e0dac243a02c1d1aaf9094622 | [
"Apache-2.0"
] | null | null | null | implementations/elixir/ockam/ockam/lib/ockam/messaging/ordering/strict/confirm_pipe.ex | Szymongib/ockam | b6d8c62ec2516c8e0dac243a02c1d1aaf9094622 | [
"Apache-2.0"
] | 108 | 2021-10-30T14:46:14.000Z | 2021-10-30T16:00:08.000Z | implementations/elixir/ockam/ockam/lib/ockam/messaging/ordering/strict/confirm_pipe.ex | frazar/ockam | 2229a22cb95fc40485304fac9b2236384b544ad4 | [
"Apache-2.0"
] | null | null | null | defmodule Ockam.Messaging.Ordering.Strict.ConfirmPipe do
@moduledoc """
Ockam pipe with receive queue and confirmations.
Next message is processed only after previous one was confirmed.
NOTE: Confirm pipe should go over backtraceable route
NOTE: Confirm pipe doesn't handle message loss. I will get stuck on m... | 25.383117 | 97 | 0.686109 |
9e0872cfe7e53f8330a5896c5fdda35c50fc1db0 | 93 | exs | Elixir | test/surface_bulma/form/multiple_select_test.exs | justin-m-morgan/surface_bulma | c31faebc818c39d06250574b913096504bd6eeec | [
"MIT"
] | 30 | 2021-02-05T18:50:38.000Z | 2022-03-12T22:42:29.000Z | test/surface_bulma/form/multiple_select_test.exs | justin-m-morgan/surface_bulma | c31faebc818c39d06250574b913096504bd6eeec | [
"MIT"
] | 19 | 2021-01-15T19:14:24.000Z | 2022-02-05T14:57:18.000Z | test/surface_bulma/form/multiple_select_test.exs | justin-m-morgan/surface_bulma | c31faebc818c39d06250574b913096504bd6eeec | [
"MIT"
] | 17 | 2021-02-01T20:57:51.000Z | 2022-03-20T17:06:57.000Z | defmodule SurfaceBulma.Components.Form.MultipleSelectTest do
use SurfaceBulma.ConnCase
end
| 23.25 | 60 | 0.870968 |
9e08aa580512086bce307daa1c6a80c9984ba3fa | 61 | ex | Elixir | test/support/mocks.ex | boonious/hui_mon | c88008c92c4a0977333c94f109ab6451af20cc9a | [
"Apache-2.0"
] | null | null | null | test/support/mocks.ex | boonious/hui_mon | c88008c92c4a0977333c94f109ab6451af20cc9a | [
"Apache-2.0"
] | 3 | 2021-04-22T10:10:04.000Z | 2021-05-14T15:21:13.000Z | test/support/mocks.ex | boonious/hui_mon | c88008c92c4a0977333c94f109ab6451af20cc9a | [
"Apache-2.0"
] | null | null | null | Mox.defmock(HuiMon.Source.SolrMock, for: HuiMon.Source.Solr)
| 30.5 | 60 | 0.803279 |
9e08cbfc765bbbb77fef19867e8f988ebd70a55a | 1,123 | exs | Elixir | config/config.exs | jbowtie/kowhai-ex | 7d81b4443f73f5b89ae88a963a964fa77c5829e8 | [
"Apache-2.0"
] | null | null | null | config/config.exs | jbowtie/kowhai-ex | 7d81b4443f73f5b89ae88a963a964fa77c5829e8 | [
"Apache-2.0"
] | null | null | null | config/config.exs | jbowtie/kowhai-ex | 7d81b4443f73f5b89ae88a963a964fa77c5829e8 | [
"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.
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.225806 | 73 | 0.751558 |
9e0912a4f6922015c834f31a704f2e36386b4a67 | 121 | ex | Elixir | programming/elixir-course/discuss/lib/discuss_web/controllers/topic_controller.ex | filippo-fonseca/learning | 426c7e3a904e2dcd389f1c4ecd5b1484571f937d | [
"MIT"
] | 1 | 2021-09-24T22:47:33.000Z | 2021-09-24T22:47:33.000Z | programming/elixir-course/discuss/lib/discuss_web/controllers/topic_controller.ex | filippo-fonseca/learning | 426c7e3a904e2dcd389f1c4ecd5b1484571f937d | [
"MIT"
] | null | null | null | programming/elixir-course/discuss/lib/discuss_web/controllers/topic_controller.ex | filippo-fonseca/learning | 426c7e3a904e2dcd389f1c4ecd5b1484571f937d | [
"MIT"
] | 1 | 2020-08-28T22:52:08.000Z | 2020-08-28T22:52:08.000Z | defmodule DiscussWeb.TopicController do
use DiscussWeb, :controller
def new(conn, params) do
end
end | 20.166667 | 39 | 0.68595 |
9e093a4f7cb9d635bc7bcd913a6601c1e253865b | 471 | ex | Elixir | test/support/components/investigation_note_form.ex | geometricservices/epi-viewpoin | ecb5316ea0f3f7299d5ff63e2de588539005ac1c | [
"Apache-2.0"
] | 5 | 2021-02-25T18:43:09.000Z | 2021-02-27T06:00:35.000Z | test/support/components/investigation_note_form.ex | geometricservices/epi-viewpoint | ecb5316ea0f3f7299d5ff63e2de588539005ac1c | [
"Apache-2.0"
] | 3 | 2021-12-13T17:52:47.000Z | 2021-12-17T01:35:31.000Z | test/support/components/investigation_note_form.ex | geometricservices/epi-viewpoint | ecb5316ea0f3f7299d5ff63e2de588539005ac1c | [
"Apache-2.0"
] | 1 | 2022-01-27T23:26:38.000Z | 2022-01-27T23:26:38.000Z | defmodule EpicenterWeb.Test.Components.InvestigationNoteForm do
import Phoenix.LiveViewTest
alias Phoenix.LiveViewTest.View
def change_note(%View{} = view, text) do
view
|> element("form[data-role=note-form]")
|> render_change(%{"form_field_data" => %{"text" => text}})
end
def submit_new_note(%... | 26.166667 | 63 | 0.666667 |
9e094394dd69278799c2d0750dcbe959c120b1a9 | 1,205 | ex | Elixir | lib/api_elixir_films_web/controllers/movie_controller.ex | brandaoplaster/api_elixir_films | 9594761bb0d2463132b904c5adbed6d9664bb7ff | [
"MIT"
] | null | null | null | lib/api_elixir_films_web/controllers/movie_controller.ex | brandaoplaster/api_elixir_films | 9594761bb0d2463132b904c5adbed6d9664bb7ff | [
"MIT"
] | null | null | null | lib/api_elixir_films_web/controllers/movie_controller.ex | brandaoplaster/api_elixir_films | 9594761bb0d2463132b904c5adbed6d9664bb7ff | [
"MIT"
] | null | null | null | defmodule ApiElixirFilmsWeb.MovieController do
use ApiElixirFilmsWeb, :controller
alias ApiElixirFilms.Collection
alias ApiElixirFilms.Collection.Movie
action_fallback ApiElixirFilmsWeb.FallbackController
def index(conn, _params) do
movies = Collection.list_movies()
render(conn, "index.json", movie... | 27.386364 | 83 | 0.663071 |
9e0944425487310b9bf9d39977b5ae5865cd69a7 | 2,989 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/instance_groups_list_instances.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/compute/lib/google_api/compute/v1/model/instance_groups_list_instances.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/instance_groups_list_instances.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 ... | 48.209677 | 393 | 0.731683 |
9e0945a1fd6e94c5763c6fdaaa8be7edbdf1d480 | 2,667 | ex | Elixir | lib/oli_web/live/delivery/table_model.ex | ehilfer/oli-torus | c2babe03047bfca2d3fe59ae3b7604597e34001e | [
"MIT"
] | null | null | null | lib/oli_web/live/delivery/table_model.ex | ehilfer/oli-torus | c2babe03047bfca2d3fe59ae3b7604597e34001e | [
"MIT"
] | null | null | null | lib/oli_web/live/delivery/table_model.ex | ehilfer/oli-torus | c2babe03047bfca2d3fe59ae3b7604597e34001e | [
"MIT"
] | null | null | null | defmodule OliWeb.Delivery.SelectSource.TableModel do
alias OliWeb.Common.Table.{ColumnSpec, SortableTableModel}
alias OliWeb.Router.Helpers, as: Routes
use Surface.LiveComponent
defp is_product?(item) do
Map.has_key?(item, :type) and Map.get(item, :type) == :blueprint
end
def new(products) do
Sort... | 25.160377 | 94 | 0.592426 |
9e094e74cb68da808487be05796d17025aa91438 | 1,087 | ex | Elixir | chapter_7/todo_worker_pool/lib/load_test.ex | librity/elixir_in_action | d2df441ceb7e6a0d3f18bc3ab3c59570125fcdec | [
"MIT"
] | 3 | 2021-04-22T11:55:58.000Z | 2021-08-22T13:19:56.000Z | chapter_7/todo_persistent/lib/load_test.ex | librity/elixir_in_action | d2df441ceb7e6a0d3f18bc3ab3c59570125fcdec | [
"MIT"
] | null | null | null | chapter_7/todo_persistent/lib/load_test.ex | librity/elixir_in_action | d2df441ceb7e6a0d3f18bc3ab3c59570125fcdec | [
"MIT"
] | 3 | 2021-04-22T21:19:45.000Z | 2021-08-22T13:20:03.000Z | # Very quick, inconclusive load test
#
# Start from command line with:
# elixir --erl "+P 2000000" -S mix run -e LoadTest.run
#
# Note: the +P 2000000 sets maximum number of processes to 2 millions
defmodule LoadTest do
@total_processes 1_000_000
@interval_size 100_000
def run do
{:ok, cache} = Todo.Cache.... | 26.512195 | 79 | 0.642134 |
9e0963ead8f54b7c5499f63f0df1ca5413081380 | 755 | exs | Elixir | mix.exs | spreedly/gentry | 3acf32549f539ba5d2cdb011fcccd95ea0a605dd | [
"MIT"
] | 3 | 2018-01-18T16:02:30.000Z | 2019-04-04T16:57:09.000Z | mix.exs | spreedly/gentry | 3acf32549f539ba5d2cdb011fcccd95ea0a605dd | [
"MIT"
] | null | null | null | mix.exs | spreedly/gentry | 3acf32549f539ba5d2cdb011fcccd95ea0a605dd | [
"MIT"
] | null | null | null | defmodule Gentry.Mixfile do
use Mix.Project
def project do
[
app: :gentry,
version: "0.1.1",
elixir: "~> 1.6",
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
deps: deps(),
description: "Generic retries with exponential backoff",
name: "G... | 20.972222 | 64 | 0.572185 |
9e097ce9bba2927d716d9ec8d6744add8556b5a4 | 1,134 | exs | Elixir | mix.exs | elixir-nx/scidata | 86ced1cbbb74710f7cbf3986e5c1b5468a0d175e | [
"Apache-2.0"
] | 107 | 2021-04-16T16:07:38.000Z | 2022-03-06T19:43:12.000Z | mix.exs | elixir-nx/scidata | 86ced1cbbb74710f7cbf3986e5c1b5468a0d175e | [
"Apache-2.0"
] | 19 | 2021-04-16T17:32:14.000Z | 2022-01-19T15:05:53.000Z | mix.exs | elixir-nx/scidata | 86ced1cbbb74710f7cbf3986e5c1b5468a0d175e | [
"Apache-2.0"
] | 9 | 2021-04-17T20:49:55.000Z | 2022-01-19T04:00:34.000Z | defmodule Scidata.MixProject do
use Mix.Project
@version "0.1.4"
@repo_url "https://github.com/elixir-nx/scidata"
def project do
[
app: :scidata,
version: @version,
elixir: "~> 1.11",
start_permanent: Mix.env() == :prod,
deps: deps(),
# Hex
package: package(),
... | 19.894737 | 114 | 0.564374 |
9e09d024809f121a8011f46a4ac12f3cfbdb928d | 2,146 | exs | Elixir | test/graphql/resolvers/collaborator_test.exs | isshindev/accent | ae4c13139b0a0dfd64ff536b94c940a4e2862150 | [
"BSD-3-Clause"
] | 806 | 2018-04-07T20:40:33.000Z | 2022-03-30T01:39:57.000Z | test/graphql/resolvers/collaborator_test.exs | isshindev/accent | ae4c13139b0a0dfd64ff536b94c940a4e2862150 | [
"BSD-3-Clause"
] | 194 | 2018-04-07T13:49:37.000Z | 2022-03-30T19:58:45.000Z | test/graphql/resolvers/collaborator_test.exs | isshindev/accent | ae4c13139b0a0dfd64ff536b94c940a4e2862150 | [
"BSD-3-Clause"
] | 89 | 2018-04-09T13:55:49.000Z | 2022-03-24T07:09:31.000Z | defmodule AccentTest.GraphQL.Resolvers.Collaborator do
use Accent.RepoCase
use Oban.Testing, repo: Accent.Repo
alias Accent.GraphQL.Resolvers.Collaborator, as: Resolver
alias Accent.{
Collaborator,
Project,
Repo,
User
}
defmodule PlugConn do
defstruct [:assigns]
end
@user %User{e... | 32.029851 | 119 | 0.637465 |
9e09d114664f0633fbd8c7739346d87dd880993a | 501 | ex | Elixir | lib/slack_inviter_web/views/error_view.ex | syracuseio/slack_inviter | a2bdf4ffc45b12db95aa74bf7a167ef4996a9b81 | [
"MIT"
] | null | null | null | lib/slack_inviter_web/views/error_view.ex | syracuseio/slack_inviter | a2bdf4ffc45b12db95aa74bf7a167ef4996a9b81 | [
"MIT"
] | 3 | 2021-03-08T19:58:55.000Z | 2021-09-01T03:46:56.000Z | lib/slack_inviter_web/views/error_view.ex | syracuseio/slack_inviter | a2bdf4ffc45b12db95aa74bf7a167ef4996a9b81 | [
"MIT"
] | 1 | 2018-08-15T01:52:40.000Z | 2018-08-15T01:52:40.000Z | defmodule SlackInviterWeb.ErrorView do
use SlackInviterWeb, :view
# If you want to customize a particular status code
# for a certain format, you may uncomment below.
# def render("500.html", _assigns) do
# "Internal Server Error"
# end
# By default, Phoenix returns the status message from
# the tem... | 29.470588 | 61 | 0.740519 |
9e09dd170ee38e18a55338fccc262c00f9f470d4 | 2,341 | exs | Elixir | implementations/elixir/ockam/ockam/mix.exs | plaxi0s/ockam | 2cc911dff720228bca950d83faf095ea84717981 | [
"Apache-2.0"
] | 1,912 | 2019-01-10T14:17:00.000Z | 2022-03-30T19:16:44.000Z | implementations/elixir/ockam/ockam/mix.exs | plaxi0s/ockam | 2cc911dff720228bca950d83faf095ea84717981 | [
"Apache-2.0"
] | 1,473 | 2019-01-16T15:14:47.000Z | 2022-03-31T23:44:50.000Z | implementations/elixir/ockam/ockam/mix.exs | plaxi0s/ockam | 2cc911dff720228bca950d83faf095ea84717981 | [
"Apache-2.0"
] | 219 | 2019-01-11T03:35:13.000Z | 2022-03-31T10:25:56.000Z | defmodule Ockam.MixProject do
use Mix.Project
@version "0.1.0"
@elixir_requirement "~> 1.10"
@ockam_github_repo "https://github.com/ockam-network/ockam"
@ockam_github_repo_path "implementations/elixir/ockam/ockam"
def project do
[
app: :ockam,
version: @version,
elixir: @elixir_req... | 24.642105 | 94 | 0.578812 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.