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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2d05506b8d490b4e035cc5106ea108d4477c1f41 | 1,770 | ex | Elixir | clients/test_client/lib/google_api/test_client/v1/model/date_container.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/test_client/lib/google_api/test_client/v1/model/date_container.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/test_client/lib/google_api/test_client/v1/model/date_container.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 32.777778 | 77 | 0.728249 |
2d056d924006ff45f03d90460e870a5e345f8b51 | 1,045 | ex | Elixir | lib/google_api/you_tube/v3/model/video_rating.ex | jesteracer/ytb | 67e3cab899e4f69e586383f7be2c3855c6beea49 | [
"Apache-2.0"
] | null | null | null | lib/google_api/you_tube/v3/model/video_rating.ex | jesteracer/ytb | 67e3cab899e4f69e586383f7be2c3855c6beea49 | [
"Apache-2.0"
] | null | null | null | lib/google_api/you_tube/v3/model/video_rating.ex | jesteracer/ytb | 67e3cab899e4f69e586383f7be2c3855c6beea49 | [
"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... | 27.5 | 77 | 0.738756 |
2d0585ac32824987dcc6b89350739f46e2846930 | 531 | ex | Elixir | lib/mongoose_push_web/schemas/response/send_notification/too_many_requests.ex | andrewvmail/MongoosePush | 538846e19a89c9ca4bc1583745131dc69d3d29f4 | [
"Apache-2.0"
] | 107 | 2017-02-10T00:26:05.000Z | 2022-02-23T00:50:07.000Z | lib/mongoose_push_web/schemas/response/send_notification/too_many_requests.ex | andrewvmail/MongoosePush | 538846e19a89c9ca4bc1583745131dc69d3d29f4 | [
"Apache-2.0"
] | 109 | 2017-02-09T14:40:20.000Z | 2021-04-30T22:01:20.000Z | lib/mongoose_push_web/schemas/response/send_notification/too_many_requests.ex | andrewvmail/MongoosePush | 538846e19a89c9ca4bc1583745131dc69d3d29f4 | [
"Apache-2.0"
] | 25 | 2017-08-21T20:55:33.000Z | 2022-03-06T10:01:13.000Z | defmodule MongoosePushWeb.Schemas.Response.SendNotification.TooManyRequests do
require OpenApiSpex
alias OpenApiSpex.Schema
OpenApiSpex.schema(%{
title: "Response.SendNotification.TooManyRequests",
description: "The user has sent too many requests in a given amount of time",
type: :object,
proper... | 26.55 | 81 | 0.664783 |
2d05b32433cbc9d1fa4da701f60d45609b4fcb5f | 864 | ex | Elixir | lib/tune/spotify/schema/device.ex | nickgnd/tune | 7244d2ff318c68b4712d24871ac26b009e0933ae | [
"MIT"
] | 206 | 2020-08-23T17:50:03.000Z | 2022-03-28T04:39:01.000Z | lib/tune/spotify/schema/device.ex | nickgnd/tune | 7244d2ff318c68b4712d24871ac26b009e0933ae | [
"MIT"
] | 112 | 2020-08-21T08:26:38.000Z | 2022-03-31T06:11:06.000Z | lib/tune/spotify/schema/device.ex | mateuszkwiatkowski/tune | 9a929e30fa20581349385ac8be0db5eb88036a36 | [
"MIT"
] | 15 | 2020-08-25T02:30:23.000Z | 2021-12-16T14:19:35.000Z | defmodule Tune.Spotify.Schema.Device do
@moduledoc """
Represents a device able to play.
"""
alias Tune.Spotify.Schema
alias Schema.Device.Name
@type id :: Schema.id()
@type volume_percent :: nil | 0..100
@type name :: String.t()
@enforce_keys [
:id,
:is_active,
:is_private_session,
... | 19.2 | 43 | 0.585648 |
2d05be48078ce299e4bd25cbda43d01bd9750ed4 | 3,890 | ex | Elixir | lib/ex_random_string.ex | smitparaggua/random_string | f6860f533cb49d1ad31c56c22910f3d303e268ec | [
"MIT"
] | null | null | null | lib/ex_random_string.ex | smitparaggua/random_string | f6860f533cb49d1ad31c56c22910f3d303e268ec | [
"MIT"
] | null | null | null | lib/ex_random_string.ex | smitparaggua/random_string | f6860f533cb49d1ad31c56c22910f3d303e268ec | [
"MIT"
] | null | null | null | defmodule ExRandomString do
@moduledoc """
Library for generating random strings. Based on NodeJS library
[randomstring](https://www.npmjs.com/package/randomstring).
## Installation
The package can be installed by adding `ex_random_string` to your list of
dependencies in `mix.exs`:
```elixir
def deps... | 26.283784 | 84 | 0.67018 |
2d05c39097f64f937bc17f5044a762aa969a9062 | 1,721 | exs | Elixir | implementations/elixir/ockam/ockam_services/test/services/discovery_test.exs | 0x00A5/ockam | 9710804e20606e70057d65c70d1af7236194aeeb | [
"Apache-2.0"
] | null | null | null | implementations/elixir/ockam/ockam_services/test/services/discovery_test.exs | 0x00A5/ockam | 9710804e20606e70057d65c70d1af7236194aeeb | [
"Apache-2.0"
] | null | null | null | implementations/elixir/ockam/ockam_services/test/services/discovery_test.exs | 0x00A5/ockam | 9710804e20606e70057d65c70d1af7236194aeeb | [
"Apache-2.0"
] | null | null | null | defmodule Test.Services.DiscoveryTest do
use ExUnit.Case
alias Ockam.API.Client.DiscoveryClient
alias Ockam.Services.API.Discovery
alias Ockam.Services.Discovery.Storage
test "in-memory register and list" do
{:ok, _pid, _address} =
Discovery.start_link(
address: "discovery_memory",
... | 27.758065 | 89 | 0.682743 |
2d05d3971252034e3909838c438571702a12cb02 | 1,647 | ex | Elixir | lib/instream/data/write.ex | mlooney/instream | f0cc072e8a780707c9cbf9e0711499082b0b396c | [
"Apache-2.0"
] | null | null | null | lib/instream/data/write.ex | mlooney/instream | f0cc072e8a780707c9cbf9e0711499082b0b396c | [
"Apache-2.0"
] | null | null | null | lib/instream/data/write.ex | mlooney/instream | f0cc072e8a780707c9cbf9e0711499082b0b396c | [
"Apache-2.0"
] | null | null | null | defmodule Instream.Data.Write do
@moduledoc false
alias Instream.Query
@doc """
Determines the proper database to write points to.
Later usage depends on the writer.
"""
@spec determine_database(map | [map], Keyword.t()) :: String.t() | nil
def determine_database([point | _], opts) do
determine_d... | 23.528571 | 72 | 0.641166 |
2d05eafc10dc12d8d8f055d76a1b07be08f9708b | 1,826 | ex | Elixir | clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/tcp_socket_action.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/tcp_socket_action.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/tcp_socket_action.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 36.52 | 218 | 0.736583 |
2d05f17623bd62a690ee20f7e038387178a4ccf7 | 2,784 | ex | Elixir | lib/membrane_aac_fdk_plugin/decoder.ex | membraneframework/membrane-element-fdk-aac | 3a7ce5ecec74883fcb73d971590bf6deabef97a8 | [
"Apache-2.0"
] | null | null | null | lib/membrane_aac_fdk_plugin/decoder.ex | membraneframework/membrane-element-fdk-aac | 3a7ce5ecec74883fcb73d971590bf6deabef97a8 | [
"Apache-2.0"
] | 6 | 2019-03-22T13:00:03.000Z | 2020-10-05T12:30:20.000Z | lib/membrane_aac_fdk_plugin/decoder.ex | membraneframework/membrane-element-aac | 3a7ce5ecec74883fcb73d971590bf6deabef97a8 | [
"Apache-2.0"
] | null | null | null | defmodule Membrane.AAC.FDK.Decoder do
@moduledoc """
Element for decoding AAC audio to raw data in S16LE format.
"""
use Bunch
use Membrane.Filter
alias __MODULE__.Native
alias Membrane.Buffer
alias Membrane.RawAudio
def_input_pad :input, caps: :any, demand_mode: :auto
def_output_pad :output, ca... | 30.26087 | 97 | 0.669181 |
2d05f56e5e0c8ca53138ba6b1f370fe7975ddbb7 | 337 | ex | Elixir | lib/phoenix_toggl/workspace_monitor/supervisor.ex | behrendtio/phoenix-toggl | dcaa2409ed8b53d3b56dc7ce02cdc4252dd19647 | [
"MIT"
] | 207 | 2016-02-24T06:43:04.000Z | 2021-03-05T02:26:47.000Z | lib/phoenix_toggl/workspace_monitor/supervisor.ex | behrendtio/phoenix-toggl | dcaa2409ed8b53d3b56dc7ce02cdc4252dd19647 | [
"MIT"
] | 6 | 2016-02-26T00:13:06.000Z | 2017-06-15T07:49:02.000Z | lib/phoenix_toggl/workspace_monitor/supervisor.ex | behrendtio/phoenix-toggl | dcaa2409ed8b53d3b56dc7ce02cdc4252dd19647 | [
"MIT"
] | 24 | 2016-02-24T18:02:21.000Z | 2019-11-11T12:47:06.000Z | defmodule PhoenixToggl.WorkspaceMonitor.Supervisor do
use Supervisor
def start_link do
Supervisor.start_link(__MODULE__, :ok, name: __MODULE__)
end
def init(:ok) do
children = [
worker(PhoenixToggl.WorkspaceMonitor, [], restart: :temporary)
]
supervise(children, strategy: :simple_one_fo... | 21.0625 | 68 | 0.724036 |
2d060528feeb251b6e0161245ae6a0d22ffeb15c | 88 | ex | Elixir | web/views/book_view.ex | beccanelson/8th-light-library | d0aa70371ca7645abf8609b53202ebb1808ca633 | [
"MIT"
] | null | null | null | web/views/book_view.ex | beccanelson/8th-light-library | d0aa70371ca7645abf8609b53202ebb1808ca633 | [
"MIT"
] | 9 | 2016-09-22T20:30:22.000Z | 2016-09-22T21:00:53.000Z | web/views/book_view.ex | beccanelson/library | d0aa70371ca7645abf8609b53202ebb1808ca633 | [
"MIT"
] | null | null | null | defmodule Bookish.BookView do
use Bookish.Web, :view
import Bookish.ViewHelpers
end
| 17.6 | 29 | 0.795455 |
2d06066c77467c2370cc4e2d1b1e032a7f1488a3 | 1,448 | ex | Elixir | clients/spanner/lib/google_api/spanner/v1/model/commit_response.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/spanner/lib/google_api/spanner/v1/model/commit_response.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/spanner/lib/google_api/spanner/v1/model/commit_response.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 30.808511 | 130 | 0.740331 |
2d060678f338f2562b2ff8c963497eb35cd823ef | 218 | ex | Elixir | lib/hl7/2.5.1/datatypes/mop.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | lib/hl7/2.5.1/datatypes/mop.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | lib/hl7/2.5.1/datatypes/mop.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | defmodule HL7.V2_5_1.DataTypes.Mop do
@moduledoc false
use HL7.DataType,
fields: [
money_or_percentage_indicator: nil,
money_or_percentage_quantity: nil,
currency_denomination: nil
]
end
| 19.818182 | 41 | 0.715596 |
2d0661a0b2f6ec11cfb101a5c5b7b41a8ac09b2a | 644 | exs | Elixir | string_calc/test/string_calc/day09_test.exs | alex-dukhno/elixir-tdd-katas | 57e25fc275c4274c889f2b3760276cc8a393de9e | [
"MIT"
] | null | null | null | string_calc/test/string_calc/day09_test.exs | alex-dukhno/elixir-tdd-katas | 57e25fc275c4274c889f2b3760276cc8a393de9e | [
"MIT"
] | null | null | null | string_calc/test/string_calc/day09_test.exs | alex-dukhno/elixir-tdd-katas | 57e25fc275c4274c889f2b3760276cc8a393de9e | [
"MIT"
] | null | null | null | defmodule StringCalc.Day09Test do
use ExUnit.Case, async: true
alias StringCalc.Day09, as: StringCalc
test "compute single number", do:
assert StringCalc.compute("5.0") == 5
test "compute addition", do:
assert StringCalc.compute("3.0+5.0") == 3 + 5
test "compute subtraction", do:
assert String... | 26.833333 | 75 | 0.645963 |
2d066bca69d73e881e33b557d0dbdb40dfb05012 | 1,362 | ex | Elixir | lib/ex_config/cache/persistent_term.ex | sega-yarkin/ex_config | bcb160c2414b08a59a5a5253bee0a8fee296cc3e | [
"MIT"
] | null | null | null | lib/ex_config/cache/persistent_term.ex | sega-yarkin/ex_config | bcb160c2414b08a59a5a5253bee0a8fee296cc3e | [
"MIT"
] | null | null | null | lib/ex_config/cache/persistent_term.ex | sega-yarkin/ex_config | bcb160c2414b08a59a5a5253bee0a8fee296cc3e | [
"MIT"
] | null | null | null | defmodule ExConfig.Cache.PersistentTerm do
@moduledoc """
OTP 21.2+
"""
@behaviour ExConfig.Cache
@impl true
@spec wrap(module, Keyword.t) :: {:ok, map}
def wrap(module, opts \\ []) do
cache = get_config_data(module)
:persistent_term.put(get_pt_id(opts), cache)
{:ok, cache}
end
@impl tru... | 22.327869 | 69 | 0.597651 |
2d068550d61be8513fd17ed98d56d30f1d16a7ab | 884 | ex | Elixir | clients/civic_info/lib/google_api/civic_info/v2/metadata.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-10-01T09:20:41.000Z | 2021-10-01T09:20:41.000Z | clients/civic_info/lib/google_api/civic_info/v2/metadata.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | clients/civic_info/lib/google_api/civic_info/v2/metadata.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 32.740741 | 74 | 0.75905 |
2d068982e04bf1236e403ccb13d177c2bd6a3c21 | 2,033 | exs | Elixir | test/lib/code_corps/model/user_task_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/user_task_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/user_task_test.exs | fikape/code-corps-api | c21674b0b2a19fa26945c94268db8894420ca181 | [
"MIT"
] | 140 | 2016-01-01T18:19:47.000Z | 2020-11-22T06:24:47.000Z | defmodule CodeCorps.UserTaskTest do
@moduledoc false
use CodeCorps.ModelCase
alias CodeCorps.UserTask
describe "create_changeset/2" do
@required_attrs ~w(task_id user_id)
test "requires #{@required_attrs}" do
changeset = UserTask.create_changeset(%UserTask{}, %{})
assert_validation_trig... | 31.276923 | 115 | 0.706345 |
2d06ab280b4c3824ab45e0f9fdb8c57f500b08d2 | 5,464 | exs | Elixir | apps/service_acquire/test/service_acquire_web/v2/data_controller_test.exs | rucker/hindsight | 876a5d344c5d8eebbea37684ee07e0a91e4430f0 | [
"Apache-2.0"
] | null | null | null | apps/service_acquire/test/service_acquire_web/v2/data_controller_test.exs | rucker/hindsight | 876a5d344c5d8eebbea37684ee07e0a91e4430f0 | [
"Apache-2.0"
] | null | null | null | apps/service_acquire/test/service_acquire_web/v2/data_controller_test.exs | rucker/hindsight | 876a5d344c5d8eebbea37684ee07e0a91e4430f0 | [
"Apache-2.0"
] | null | null | null | defmodule AcquireWeb.V2.DataControllerTest do
use AcquireWeb.ConnCase
import Checkov
use Placebo
require Temp.Env
Temp.Env.modify([
%{
app: :service_acquire,
key: AcquireWeb.V2.DataController,
set: [presto_client: Acquire.Db.Mock]
}
])
@instance Acquire.Application.instance()
... | 33.115152 | 216 | 0.531479 |
2d06cd95a2179921fc1b8231f4cea4318b3d4928 | 2,435 | ex | Elixir | lib/teiserver/telemetry/libs/property_type_lib.ex | icexuick/teiserver | 22f2e255e7e21f977e6b262acf439803626a506c | [
"MIT"
] | 6 | 2021-02-08T10:42:53.000Z | 2021-04-25T12:12:03.000Z | lib/teiserver/telemetry/libs/property_type_lib.ex | icexuick/teiserver | 22f2e255e7e21f977e6b262acf439803626a506c | [
"MIT"
] | 14 | 2021-08-01T02:36:14.000Z | 2022-01-30T21:15:03.000Z | lib/teiserver/telemetry/libs/property_type_lib.ex | icexuick/teiserver | 22f2e255e7e21f977e6b262acf439803626a506c | [
"MIT"
] | 7 | 2021-05-13T12:55:28.000Z | 2022-01-14T06:39:06.000Z | defmodule Teiserver.Telemetry.PropertyTypeLib do
use CentralWeb, :library
alias Teiserver.Telemetry.PropertyType
# Functions
@spec icon :: String.t()
def icon, do: "far fa-???"
@spec colours :: {String.t(), String.t(), String.t()}
def colours, do: Central.Helpers.StylingHelper.colours(:default)
# Quer... | 27.359551 | 77 | 0.662423 |
2d06dde14860c6e0b5efd7369f7414f45cc46671 | 9,184 | ex | Elixir | lib/pbuf/decoder.ex | karlseguin/pbuf | 744dd119f6331b8fd74239387ba9ff97acf6b385 | [
"0BSD"
] | 4 | 2018-10-28T16:35:31.000Z | 2021-08-17T05:49:55.000Z | lib/pbuf/decoder.ex | karlseguin/pbuf | 744dd119f6331b8fd74239387ba9ff97acf6b385 | [
"0BSD"
] | null | null | null | lib/pbuf/decoder.ex | karlseguin/pbuf | 744dd119f6331b8fd74239387ba9ff97acf6b385 | [
"0BSD"
] | null | null | null | defmodule Pbuf.Decoder do
import Bitwise, only: [bsr: 2, bsl: 2, band: 2]
defmodule Error do
defexception [:module, :tag, :message]
end
@spec decode!(module, iodata) :: any
def decode!(mod, data) do
case decode(mod, data) do
{:ok, decoded} -> decoded
{:error, err} -> raise err
end
... | 26.853801 | 119 | 0.595492 |
2d06fc3ce01118e44bf5f950b5b6e9faeac00eaf | 3,404 | ex | Elixir | lib/aws/generated/elastic_inference.ex | salemove/aws-elixir | debdf6482158a71a57636ac664c911e682093395 | [
"Apache-2.0"
] | null | null | null | lib/aws/generated/elastic_inference.ex | salemove/aws-elixir | debdf6482158a71a57636ac664c911e682093395 | [
"Apache-2.0"
] | null | null | null | lib/aws/generated/elastic_inference.ex | salemove/aws-elixir | debdf6482158a71a57636ac664c911e682093395 | [
"Apache-2.0"
] | null | null | null | # WARNING: DO NOT EDIT, AUTO-GENERATED CODE!
# See https://github.com/aws-beam/aws-codegen for more details.
defmodule AWS.ElasticInference do
@moduledoc """
Elastic Inference public APIs.
"""
alias AWS.Client
alias AWS.Request
def metadata do
%AWS.ServiceMetadata{
abbreviation: nil,
api_... | 21.012346 | 81 | 0.599589 |
2d0735b73aebf338e90754de2569852ac0a5602c | 143 | ex | Elixir | 1-testpackage/testpackage/debian/testpackage.cron.d.ex | hedzr/deb-build-tutor | 580dd8b7fdcd18d729c0c5d69d2f3f8538b1ac0a | [
"Apache-2.0"
] | null | null | null | 1-testpackage/testpackage/debian/testpackage.cron.d.ex | hedzr/deb-build-tutor | 580dd8b7fdcd18d729c0c5d69d2f3f8538b1ac0a | [
"Apache-2.0"
] | null | null | null | 1-testpackage/testpackage/debian/testpackage.cron.d.ex | hedzr/deb-build-tutor | 580dd8b7fdcd18d729c0c5d69d2f3f8538b1ac0a | [
"Apache-2.0"
] | null | null | null | #
# Regular cron jobs for the testpackage package
#
0 4 * * * root [ -x /usr/bin/testpackage_maintenance ] && /usr/bin/testpackage_maintenance
| 28.6 | 90 | 0.727273 |
2d0736a5ac339655e4f785d5d76acb442ab922cf | 1,639 | ex | Elixir | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v2beta1/model/contact_information.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v2beta1/model/contact_information.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v2beta1/model/contact_information.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 32.137255 | 90 | 0.739475 |
2d074a17d7f8bd0c52ecfae289f262cbd67518b3 | 1,668 | exs | Elixir | mix.exs | pivstone/Magic | bfc5bd862a34c9bbc64578d0c41833406079a51d | [
"MIT"
] | null | null | null | mix.exs | pivstone/Magic | bfc5bd862a34c9bbc64578d0c41833406079a51d | [
"MIT"
] | null | null | null | mix.exs | pivstone/Magic | bfc5bd862a34c9bbc64578d0c41833406079a51d | [
"MIT"
] | null | null | null | defmodule Magic.Mixfile do
use Mix.Project
def project do
[
app: :magic,
version: "0.3.7",
elixir: "~> 1.5",
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
package: package(),
description: description(),
test_coverage: [tool: ExCoveralls... | 24.529412 | 79 | 0.551559 |
2d075ac6d6b2811b8385a3d5947ce197cb2a6ffd | 698 | ex | Elixir | server/lib/echoppe_web/views/v1/mock_view.ex | d-exclaimation/echoppe | d430439a5fff28a15d44ccf9881caced89e7303f | [
"Apache-2.0"
] | 1 | 2021-05-13T00:53:52.000Z | 2021-05-13T00:53:52.000Z | server/lib/echoppe_web/views/v1/mock_view.ex | d-exclaimation/ez-cart | d430439a5fff28a15d44ccf9881caced89e7303f | [
"Apache-2.0"
] | 1 | 2021-06-02T19:18:10.000Z | 2021-06-07T16:44:36.000Z | server/lib/echoppe_web/views/v1/mock_view.ex | d-exclaimation/ez-cart | d430439a5fff28a15d44ccf9881caced89e7303f | [
"Apache-2.0"
] | null | null | null | #
# mock_view.ex
# ez_cart
#
# Created by d-exclaimation on 18:22.
#
defmodule EchoppeWeb.V1.MockView do
@moduledoc """
Echoppe Web View for Mocking
"""
use EchoppeWeb, :view
alias EchoppeWeb.V1.MockView
@doc """
Render JSON for mock data
"""
# TODO: Delete this one
def render("static.json", ... | 18.368421 | 64 | 0.578797 |
2d0764889d900038d36f7d51c1f12bd06cdf99c0 | 18,485 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/api/creative_field_values.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/api/creative_field_values.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/api/creative_field_values.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 ... | 41.261161 | 187 | 0.623316 |
2d07b9378ada4becb589b6c9cff64002fb92591b | 3,417 | exs | Elixir | test/runosaari_web/controllers/visitor_controller_test.exs | codevictory/runosaari.net | 2462409ccf49987fa562b0ae189247c1fe6f1ccc | [
"MIT"
] | 1 | 2021-11-02T07:43:13.000Z | 2021-11-02T07:43:13.000Z | test/runosaari_web/controllers/visitor_controller_test.exs | codevictory/runosaari.net | 2462409ccf49987fa562b0ae189247c1fe6f1ccc | [
"MIT"
] | null | null | null | test/runosaari_web/controllers/visitor_controller_test.exs | codevictory/runosaari.net | 2462409ccf49987fa562b0ae189247c1fe6f1ccc | [
"MIT"
] | 1 | 2021-05-19T18:43:09.000Z | 2021-05-19T18:43:09.000Z | defmodule RunosaariWeb.VisitorControllerTest do
use RunosaariWeb.ConnCase
alias Runosaari.Registration
@create_attrs %{
fname: "some fname",
lname: "some lname",
email: "some email",
tel: "some tel",
date1: true,
date2: true,
date3: true,
accom: true,
shared: true
}
@upda... | 28.239669 | 98 | 0.663155 |
2d07d042ad6ad7223535095266dcfcfc5f5d59bf | 1,601 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/tag_settings.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/tag_settings.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/tag_settings.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 32.02 | 112 | 0.730793 |
2d07e84ff94a29e19349433e212e79de22b5b37d | 209 | exs | Elixir | apps/core/priv/repo/migrations/20220324181607_add_invite_user.exs | michaeljguarino/forge | 50ee583ecb4aad5dee4ef08fce29a8eaed1a0824 | [
"Apache-2.0"
] | null | null | null | apps/core/priv/repo/migrations/20220324181607_add_invite_user.exs | michaeljguarino/forge | 50ee583ecb4aad5dee4ef08fce29a8eaed1a0824 | [
"Apache-2.0"
] | 2 | 2019-12-13T23:55:50.000Z | 2019-12-17T05:49:58.000Z | apps/core/priv/repo/migrations/20220324181607_add_invite_user.exs | michaeljguarino/chartmart | a34c949cc29d6a1ab91c04c5e4f797e6f0daabfc | [
"Apache-2.0"
] | null | null | null | defmodule Core.Repo.Migrations.AddInviteUser do
use Ecto.Migration
def change do
alter table(:invites) do
add :user_id, references(:users, type: :uuid, on_delete: :delete_all)
end
end
end
| 20.9 | 75 | 0.712919 |
2d07fabcd62b7ac5fc9ca36db76d2cbaa7dfd5d7 | 2,139 | ex | Elixir | apps/service_acquire/lib/acquire/query.ex | rucker/hindsight | 876a5d344c5d8eebbea37684ee07e0a91e4430f0 | [
"Apache-2.0"
] | null | null | null | apps/service_acquire/lib/acquire/query.ex | rucker/hindsight | 876a5d344c5d8eebbea37684ee07e0a91e4430f0 | [
"Apache-2.0"
] | null | null | null | apps/service_acquire/lib/acquire/query.ex | rucker/hindsight | 876a5d344c5d8eebbea37684ee07e0a91e4430f0 | [
"Apache-2.0"
] | null | null | null | defmodule Acquire.Query do
@moduledoc false
use Definition, schema: Acquire.Query.Schema
@type t :: %__MODULE__{
table: String.t(),
fields: [String.t()],
limit: pos_integer() | nil,
where: Acquire.Queryable.t()
}
defstruct table: nil,
fields: ["*"],... | 26.7375 | 87 | 0.620383 |
2d08080cd34ff102c7cc9b8f15f274bdf5f8fc5b | 22,864 | ex | Elixir | lib/gringotts/gateways/monei.ex | aashishsingh2803/gringotts | cf39d54d27e9a13cce97f9787f7bec606b82b83d | [
"MIT"
] | 4 | 2018-03-23T13:02:37.000Z | 2018-08-14T15:55:24.000Z | lib/gringotts/gateways/monei.ex | Siriusdark/gringotts | cf39d54d27e9a13cce97f9787f7bec606b82b83d | [
"MIT"
] | null | null | null | lib/gringotts/gateways/monei.ex | Siriusdark/gringotts | cf39d54d27e9a13cce97f9787f7bec606b82b83d | [
"MIT"
] | null | null | null | defmodule Gringotts.Gateways.Monei do
@moduledoc """
[MONEI][home] gateway implementation.
For reference see [MONEI's API (v1) documentation][docs].
The following features of MONEI are implemented:
| Action | Method | `type` |
| ------ | ------ | ... | 37.177236 | 174 | 0.626093 |
2d081939fa8c515c3ccfd3fcc966d2b7f1b659d1 | 928 | exs | Elixir | config/prod.secret.exs | krzysztofmo/hello | 8d317fd168bec46de698268e6ffce752c9fa4c94 | [
"MIT"
] | null | null | null | config/prod.secret.exs | krzysztofmo/hello | 8d317fd168bec46de698268e6ffce752c9fa4c94 | [
"MIT"
] | null | null | null | config/prod.secret.exs | krzysztofmo/hello | 8d317fd168bec46de698268e6ffce752c9fa4c94 | [
"MIT"
] | null | null | null | # In this file, we load production configuration and secrets
# from environment variables. You can also hardcode secrets,
# although such is generally not recommended and you have to
# remember to add this file to your .gitignore.
import Config
secret_key_base =
System.get_env("SECRET_KEY_BASE") ||
raise """
... | 30.933333 | 62 | 0.728448 |
2d081c947e4b217992f0cc0c0f5377d5775dbf70 | 176 | ex | Elixir | apps/janus/lib/janus/plugin.ex | bornmeyer/janus_signaling | cbab905aaa844a2762d4647f9363370cecd3db22 | [
"Apache-2.0"
] | null | null | null | apps/janus/lib/janus/plugin.ex | bornmeyer/janus_signaling | cbab905aaa844a2762d4647f9363370cecd3db22 | [
"Apache-2.0"
] | null | null | null | apps/janus/lib/janus/plugin.ex | bornmeyer/janus_signaling | cbab905aaa844a2762d4647f9363370cecd3db22 | [
"Apache-2.0"
] | null | null | null | defmodule Janus.Plugin do
defstruct handle_id: nil, session_id: nil, participant_id: nil, room_id: nil, publishing_stream: nil, subscribing_streams: [], type: :publisher
end
| 44 | 145 | 0.784091 |
2d085853caf017ca6bde10dab788783a70a76b56 | 156 | ex | Elixir | lib/osc/float.ex | camshaft/osc_ex | fe6c00fcee0da012cfdf836d4e8eec57dcaf5472 | [
"MIT"
] | 9 | 2016-01-28T09:48:14.000Z | 2022-01-04T08:10:39.000Z | lib/osc/float.ex | camshaft/osc_ex | fe6c00fcee0da012cfdf836d4e8eec57dcaf5472 | [
"MIT"
] | null | null | null | lib/osc/float.ex | camshaft/osc_ex | fe6c00fcee0da012cfdf836d4e8eec57dcaf5472 | [
"MIT"
] | 2 | 2020-10-24T06:35:53.000Z | 2020-12-08T01:54:39.000Z | defimpl OSC.Encoder, for: Float do
# TODO support 64 bit
def encode(float, _) do
<< float :: big-float-size(32) >>
end
def flag(_), do: ?f
end
| 17.333333 | 37 | 0.615385 |
2d086803537787aed2d5c739e9f386ad9c38aef6 | 395 | ex | Elixir | lib/extensions/reset_password/phoenix/router.ex | patrickbiermann/pow | ebc2ac7d6e15961dac4be38091ff75dae0d26554 | [
"MIT"
] | 4 | 2018-05-07T16:37:15.000Z | 2018-07-14T00:44:12.000Z | lib/extensions/reset_password/phoenix/router.ex | patrickbiermann/pow | ebc2ac7d6e15961dac4be38091ff75dae0d26554 | [
"MIT"
] | null | null | null | lib/extensions/reset_password/phoenix/router.ex | patrickbiermann/pow | ebc2ac7d6e15961dac4be38091ff75dae0d26554 | [
"MIT"
] | 1 | 2020-07-13T01:11:17.000Z | 2020-07-13T01:11:17.000Z | defmodule PowResetPassword.Phoenix.Router do
@moduledoc false
use Pow.Extension.Phoenix.Router.Base
alias Pow.Phoenix.Router
defmacro routes(_config) do
quote location: :keep do
Router.pow_resources "/reset-password", ResetPasswordController, only: [:new, :create, :update]
Router.pow_route :ge... | 28.214286 | 101 | 0.739241 |
2d087222e72d4c305987873edf99496068eb45b6 | 1,090 | exs | Elixir | test/api/jobs_test.exs | nipierre/ex_step_flow | 4345ee57bd4e5eb79138df68d10579ba1b9ec6a1 | [
"MIT"
] | null | null | null | test/api/jobs_test.exs | nipierre/ex_step_flow | 4345ee57bd4e5eb79138df68d10579ba1b9ec6a1 | [
"MIT"
] | null | null | null | test/api/jobs_test.exs | nipierre/ex_step_flow | 4345ee57bd4e5eb79138df68d10579ba1b9ec6a1 | [
"MIT"
] | null | null | null | defmodule StepFlow.Api.JobsTest do
use ExUnit.Case
use Plug.Test
alias Ecto.Adapters.SQL.Sandbox
alias StepFlow.Router
doctest StepFlow
@opts Router.init([])
setup do
# Explicitly get a connection before each test
:ok = Sandbox.checkout(StepFlow.Repo)
end
test "GET /jobs" do
{status, _... | 23.191489 | 67 | 0.575229 |
2d08ab6e022ce665bf22b80c1e7437987e036040 | 3,001 | ex | Elixir | apps/storage/lib/storage/schema/comment.ex | anyex-project/anyex | d04018337bcec621f2e2e8d17773fa2724e3c6e1 | [
"MIT"
] | 12 | 2019-02-21T21:29:08.000Z | 2019-05-14T11:41:10.000Z | apps/storage/lib/storage/schema/comment.ex | Hentioe/anyex | d04018337bcec621f2e2e8d17773fa2724e3c6e1 | [
"MIT"
] | 18 | 2019-02-05T17:19:33.000Z | 2019-03-13T13:38:08.000Z | apps/storage/lib/storage/schema/comment.ex | Hentioe/anyex | d04018337bcec621f2e2e8d17773fa2724e3c6e1 | [
"MIT"
] | null | null | null | defmodule Storage.Schema.Comment do
@moduledoc false
use Storage.Schema
alias Storage.Repo
alias Storage.Schema.{Article}
alias Ecto.{Changeset}
import Ecto.Query, only: [from: 2]
@derive {Jason.Encoder,
only:
[:id, :author_nickname, :author_email, :personal_site, :content, :own... | 22.395522 | 100 | 0.568477 |
2d08be8da49e9c13a1e6b8b3635a16dab210896b | 27 | ex | Elixir | examples/wordcount/lib/wordcount.ex | zackehh/vessel | 401b5139d4680c6065f4024214718019068bf74e | [
"MIT"
] | 14 | 2016-12-06T03:55:52.000Z | 2017-05-23T12:07:07.000Z | examples/wordcount/lib/wordcount.ex | whitfin/vessel | 401b5139d4680c6065f4024214718019068bf74e | [
"MIT"
] | 3 | 2016-11-28T20:58:05.000Z | 2017-05-31T23:51:52.000Z | examples/wordcount/lib/wordcount.ex | zackehh/vessel | 401b5139d4680c6065f4024214718019068bf74e | [
"MIT"
] | 1 | 2020-03-03T21:07:44.000Z | 2020-03-03T21:07:44.000Z | defmodule Wordcount do
end
| 9 | 22 | 0.851852 |
2d08c0ed20606a627f69af39bd58b05868a1158a | 6,697 | ex | Elixir | clients/service_user/lib/google_api/service_user/v1/model/metric_descriptor.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/service_user/lib/google_api/service_user/v1/model/metric_descriptor.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/service_user/lib/google_api/service_user/v1/model/metric_descriptor.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 90.5 | 2,383 | 0.670897 |
2d092e30890625ce76905fd34540ce6f3062e896 | 5,478 | ex | Elixir | lib/godaddy/api.ex | elixir-twister/godaddy | 17af9f021c1ba9065795f4a7b49ca05eb1c17ca9 | [
"MIT"
] | null | null | null | lib/godaddy/api.ex | elixir-twister/godaddy | 17af9f021c1ba9065795f4a7b49ca05eb1c17ca9 | [
"MIT"
] | null | null | null | lib/godaddy/api.ex | elixir-twister/godaddy | 17af9f021c1ba9065795f4a7b49ca05eb1c17ca9 | [
"MIT"
] | null | null | null | defmodule Godaddy.Api do
@moduledoc"""
Make generic HTTP calls a web service. Please
update (or remove) the tests to a sample service
in the examples below.
"""
def url, do: Application.get_env(:godaddy, :api_url)
def key, do: Application.get_env(:godaddy, :api_key)
def secret, do: Application.get_env... | 34.45283 | 104 | 0.626323 |
2d0941b63034fc063132c17ab939f76b8b62cec4 | 593 | exs | Elixir | phoenix/config/test.exs | Roc4rdho/docker-web-framework-examples | 445c36cf91278db95e0798eb9f94b254216a3d9f | [
"MIT"
] | null | null | null | phoenix/config/test.exs | Roc4rdho/docker-web-framework-examples | 445c36cf91278db95e0798eb9f94b254216a3d9f | [
"MIT"
] | null | null | null | phoenix/config/test.exs | Roc4rdho/docker-web-framework-examples | 445c36cf91278db95e0798eb9f94b254216a3d9f | [
"MIT"
] | null | null | null | use Mix.Config
# We don't run a server during test. If one is required,
# you can enable the server option below.
config :hello, HelloWeb.Endpoint,
http: [port: 4001],
server: false
# Print only warnings and errors during test
config :logger, level: :warn
# Configure your database
config :hello, Hello.Repo,
ad... | 28.238095 | 56 | 0.74199 |
2d095594c213a162bad04e1f4250f497026416ec | 410 | ex | Elixir | example/user.ex | scripbox/ex_audit | 6478d72816e9357c9ba4eb5eeafd0244010133b4 | [
"MIT"
] | null | null | null | example/user.ex | scripbox/ex_audit | 6478d72816e9357c9ba4eb5eeafd0244010133b4 | [
"MIT"
] | null | null | null | example/user.ex | scripbox/ex_audit | 6478d72816e9357c9ba4eb5eeafd0244010133b4 | [
"MIT"
] | null | null | null | defmodule ExAudit.Test.User do
use Ecto.Schema
import Ecto.Changeset
@derive {ExAudit.Tracker, except: [:transient_field]}
schema "users" do
field :email, :string
field :name, :string
field :transient_field, :integer
has_many :groups, ExAudit.Test.UserGroup
timestamps()
end
def cha... | 18.636364 | 55 | 0.668293 |
2d0969ddac15b9365e671f8f4200772fa12caf9f | 1,195 | exs | Elixir | test/features/page/jshandle_as_element_test.exs | Proporus/playwright-elixir | 639fea3c7076657a9104e6fd742b0c2f4e2f167f | [
"MIT"
] | null | null | null | test/features/page/jshandle_as_element_test.exs | Proporus/playwright-elixir | 639fea3c7076657a9104e6fd742b0c2f4e2f167f | [
"MIT"
] | null | null | null | test/features/page/jshandle_as_element_test.exs | Proporus/playwright-elixir | 639fea3c7076657a9104e6fd742b0c2f4e2f167f | [
"MIT"
] | null | null | null | # src: page/jshandle-as-element.spec.ts
defmodule Test.Features.Page.JSHandleAsElementTest do
use Playwright.TestCase, async: true
describe "JSHandle.as_element/1" do
alias Playwright.JSHandle
test "returns nil for non-elements", %{page: page} do
handle = Playwright.Page.evaluate_handle(page, "funct... | 38.548387 | 119 | 0.700418 |
2d09748b7e455d88292138b384bf6f4df02bd02f | 1,756 | ex | Elixir | apps/ehealth/lib/ehealth/web/controllers/cabinet/auth_controller.ex | ehealth-ua/ehealth.api | 4ffe26a464fe40c95fb841a4aa2e147068f65ca2 | [
"Apache-2.0"
] | 8 | 2019-06-14T11:34:49.000Z | 2021-08-05T19:14:24.000Z | apps/ehealth/lib/ehealth/web/controllers/cabinet/auth_controller.ex | edenlabllc/ehealth.api.public | 4ffe26a464fe40c95fb841a4aa2e147068f65ca2 | [
"Apache-2.0"
] | 1 | 2019-07-08T15:20:22.000Z | 2019-07-08T15:20:22.000Z | apps/ehealth/lib/ehealth/web/controllers/cabinet/auth_controller.ex | ehealth-ua/ehealth.api | 4ffe26a464fe40c95fb841a4aa2e147068f65ca2 | [
"Apache-2.0"
] | 6 | 2018-05-11T13:59:32.000Z | 2022-01-19T20:15:22.000Z | defmodule EHealth.Web.Cabinet.AuthController do
use EHealth.Web, :controller
alias Core.Cabinet.API, as: CabinetAPI
alias Core.Guardian.Plug
alias Scrivener.Page
action_fallback(EHealth.Web.FallbackController)
def email_verification(conn, params) do
with {:ok, jwt} <- CabinetAPI.send_email_verificati... | 30.807018 | 110 | 0.68508 |
2d0975af4af3be68b35c5355b36d02cac7454356 | 2,658 | ex | Elixir | lib/text_delta/application.ex | document-delta/text_delta | a37ccbcabf83c845a1040dd4fb4de9f45382aaf0 | [
"MIT"
] | 48 | 2017-05-29T19:39:42.000Z | 2022-03-28T15:53:29.000Z | lib/text_delta/application.ex | document-delta/text_delta | a37ccbcabf83c845a1040dd4fb4de9f45382aaf0 | [
"MIT"
] | 1 | 2017-05-26T15:03:30.000Z | 2017-05-26T15:37:16.000Z | lib/text_delta/application.ex | document-delta/text_delta | a37ccbcabf83c845a1040dd4fb4de9f45382aaf0 | [
"MIT"
] | 6 | 2017-11-30T16:54:27.000Z | 2021-05-19T10:27:12.000Z | defmodule TextDelta.Application do
@moduledoc """
The application of a delta onto a text state.
Text state is always represented as a set of `t:TextDelta.Operation.insert/0`
operations. This means that any application should always result in a set of
`insert` operations or produce an error tuple.
In simpl... | 30.906977 | 79 | 0.667043 |
2d09888b8d8118f93b6aacad3e26de4417aa5d05 | 1,226 | ex | Elixir | web/views/error_helpers.ex | slaily/discuss | 6f0eacd0f2c03d197f2cf9b6c27a03752c90e969 | [
"MIT"
] | 15 | 2017-09-19T08:09:01.000Z | 2019-04-29T00:37:51.000Z | web/views/error_helpers.ex | slaily/discuss | 6f0eacd0f2c03d197f2cf9b6c27a03752c90e969 | [
"MIT"
] | 1 | 2021-05-09T03:13:17.000Z | 2021-05-09T03:13:17.000Z | web/views/error_helpers.ex | slaily/discuss | 6f0eacd0f2c03d197f2cf9b6c27a03752c90e969 | [
"MIT"
] | 17 | 2018-02-27T03:15:54.000Z | 2019-04-24T09:26:46.000Z | defmodule Discuss.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
if error = form.errors[field] do
content_tag :span, translate_error(error), ... | 29.902439 | 73 | 0.66721 |
2d0997340b08ea1d81abe061a329b769b6f6f0d2 | 16,486 | ex | Elixir | lib/grizzly/inclusion.ex | pragdave/grizzly | bcd7b46ab2cff1797dac04bc3cd12a36209dd579 | [
"Apache-2.0"
] | null | null | null | lib/grizzly/inclusion.ex | pragdave/grizzly | bcd7b46ab2cff1797dac04bc3cd12a36209dd579 | [
"Apache-2.0"
] | null | null | null | lib/grizzly/inclusion.ex | pragdave/grizzly | bcd7b46ab2cff1797dac04bc3cd12a36209dd579 | [
"Apache-2.0"
] | null | null | null | defmodule Grizzly.Inclusion do
@moduledoc """
Z-Wave Inclusion Server
## Overview
When using this process inclusion and exclusion are
done asynchronously and information will be communicated
via message passing.
By default this process will send information about the
inclusion to the process that sta... | 27.61474 | 150 | 0.653585 |
2d0997d206c52e074664192c134f2e546f32db20 | 2,201 | ex | Elixir | lib/guards.ex | ojizero/rulex | f745624f1b924501ef8856727e0d5dc6b53d7661 | [
"MIT"
] | null | null | null | lib/guards.ex | ojizero/rulex | f745624f1b924501ef8856727e0d5dc6b53d7661 | [
"MIT"
] | null | null | null | lib/guards.ex | ojizero/rulex | f745624f1b924501ef8856727e0d5dc6b53d7661 | [
"MIT"
] | null | null | null | defmodule RulEx.Guards do
@moduledoc "Provide helper guards for use with RulEx."
@value_operands RulEx.Operands.value()
@variable_operands RulEx.Operands.variable()
@comparison_operands RulEx.Operands.comparison()
@reserved_operands RulEx.Operands.reserved()
@doc "Yield true if given expression is a valid... | 44.02 | 120 | 0.668333 |
2d09a354f1189e666db07b06ffd5b5446367d228 | 2,369 | exs | Elixir | test/web_driver_client/guards_test.exs | fimassuda/web_driver_client | 09d373c9a8a923c5e2860f107f84b16565e338f7 | [
"MIT"
] | 8 | 2019-11-24T18:33:12.000Z | 2020-12-09T10:20:09.000Z | test/web_driver_client/guards_test.exs | fimassuda/web_driver_client | 09d373c9a8a923c5e2860f107f84b16565e338f7 | [
"MIT"
] | 67 | 2019-12-20T16:33:30.000Z | 2021-09-14T03:50:10.000Z | test/web_driver_client/guards_test.exs | fimassuda/web_driver_client | 09d373c9a8a923c5e2860f107f84b16565e338f7 | [
"MIT"
] | 10 | 2020-06-19T16:15:03.000Z | 2021-09-13T17:56:25.000Z | defmodule WebDriverClient.GuardsTest do
use ExUnit.Case, async: true
use ExUnitProperties
alias WebDriverClient.Guards
require WebDriverClient.Guards
property "is_session_id/1 only returns true on binaries" do
check all term <- term() do
if is_binary(term) do
assert Guards.is_session_id(t... | 24.936842 | 75 | 0.654707 |
2d09bd019479a40a0a3b655fdd79c5205298da60 | 721 | ex | Elixir | lib/weather_api_web/gettext.ex | vegashat/weather-api | d06ce0bf809bd98710367c459920bc5cef384f94 | [
"MIT"
] | null | null | null | lib/weather_api_web/gettext.ex | vegashat/weather-api | d06ce0bf809bd98710367c459920bc5cef384f94 | [
"MIT"
] | null | null | null | lib/weather_api_web/gettext.ex | vegashat/weather-api | d06ce0bf809bd98710367c459920bc5cef384f94 | [
"MIT"
] | null | null | null | defmodule WeatherApiWeb.Gettext do
@moduledoc """
A module providing Internationalization with a gettext-based API.
By using [Gettext](https://hexdocs.pm/gettext),
your module gains a set of macros for translations, for example:
import WeatherApiWeb.Gettext
# Simple translation
gettext("Her... | 28.84 | 72 | 0.682386 |
2d09da6e15c907af8a02ddf0a305a98b3819ba6b | 395 | exs | Elixir | priv/repo/migrations/20190626174953_add-statistics.exs | spkane31/cc-rankings | 0acda9f3ca35abd4874ab06478ad22aa473811bf | [
"MIT"
] | 1 | 2020-06-28T19:31:07.000Z | 2020-06-28T19:31:07.000Z | priv/repo/migrations/20190626174953_add-statistics.exs | spkane31/rankings | 0acda9f3ca35abd4874ab06478ad22aa473811bf | [
"MIT"
] | 5 | 2019-07-25T17:00:39.000Z | 2019-07-25T17:12:07.000Z | priv/repo/migrations/20190626174953_add-statistics.exs | spkane31/rankings | 0acda9f3ca35abd4874ab06478ad22aa473811bf | [
"MIT"
] | null | null | null | defmodule :"Elixir.Rankings.Repo.Migrations.Add-statistics" do
use Ecto.Migration
def change do
alter table(:race_instances) do
add :average, :float, default: 0
add :std_dev, :float, default: 0
end
alter table(:results) do
add :scaled_time, :float, default: 0
end
alter table... | 20.789474 | 62 | 0.653165 |
2d09f211ede21198393de318faab9df8bcd2e654 | 3,857 | ex | Elixir | clients/identity_toolkit/lib/google_api/identity_toolkit/v3/model/identitytoolkit_relyingparty_signup_new_user_request.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/identity_toolkit/lib/google_api/identity_toolkit/v3/model/identitytoolkit_relyingparty_signup_new_user_request.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/identity_toolkit/lib/google_api/identity_toolkit/v3/model/identitytoolkit_relyingparty_signup_new_user_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.384615 | 218 | 0.675136 |
2d09fe08128fe9c99c3df47c2f3210c27d6684b3 | 356 | exs | Elixir | priv/repo/migrations/20160329232559_create_comment.exs | davepersing/blog_engine | 8605732f72c169d6cc2c2261a9acef0de7769403 | [
"MIT"
] | null | null | null | priv/repo/migrations/20160329232559_create_comment.exs | davepersing/blog_engine | 8605732f72c169d6cc2c2261a9acef0de7769403 | [
"MIT"
] | null | null | null | priv/repo/migrations/20160329232559_create_comment.exs | davepersing/blog_engine | 8605732f72c169d6cc2c2261a9acef0de7769403 | [
"MIT"
] | null | null | null | defmodule BlogEngine.Repo.Migrations.CreateComment do
use Ecto.Migration
def change do
create table(:comments) do
add :author, :string
add :body, :text
add :approved, :boolean, default: false
add :post_id, references(:posts, on_delete: :nothing)
timestamps
end
create inde... | 20.941176 | 59 | 0.668539 |
2d0a0a26235db2a392f72d587a50e320b245abc6 | 733 | ex | Elixir | year_2020/lib/day_15.ex | bschmeck/advent_of_code | cbec98019c6c00444e0f4c7e15e01b1ed9ae6145 | [
"MIT"
] | null | null | null | year_2020/lib/day_15.ex | bschmeck/advent_of_code | cbec98019c6c00444e0f4c7e15e01b1ed9ae6145 | [
"MIT"
] | null | null | null | year_2020/lib/day_15.ex | bschmeck/advent_of_code | cbec98019c6c00444e0f4c7e15e01b1ed9ae6145 | [
"MIT"
] | null | null | null | defmodule Day15 do
def part_one(numbers \\ [12, 20, 0, 6, 1, 17, 7]) do
play(numbers, 2020)
end
def part_two(numbers \\ [12, 20, 0, 6, 1, 17, 7]) do
play(numbers, 30_0000_000)
end
def play([speak | rest], goal), do: play(rest, 1, speak, %{}, goal)
def play(_, turn, speak, _spoken, goal) when goal ... | 26.178571 | 72 | 0.592087 |
2d0a184f0c9bb2d6e04659153eff10e4b4017704 | 347 | ex | Elixir | lib/hexpm/repository/repository.ex | findmypast/hexfmp | 38a50f5e1057833fd98748faac230bf4b9cc26a3 | [
"Apache-2.0"
] | null | null | null | lib/hexpm/repository/repository.ex | findmypast/hexfmp | 38a50f5e1057833fd98748faac230bf4b9cc26a3 | [
"Apache-2.0"
] | null | null | null | lib/hexpm/repository/repository.ex | findmypast/hexfmp | 38a50f5e1057833fd98748faac230bf4b9cc26a3 | [
"Apache-2.0"
] | null | null | null | defmodule Hexpm.Repository.Repository do
use Hexpm.Web, :schema
@derive {Phoenix.Param, key: :name}
schema "repositories" do
field :name, :string
field :public, :boolean
timestamps()
has_many :packages, Package
has_many :repository_user, RepositoryUser
has_many :users, through: [:reposit... | 23.133333 | 55 | 0.708934 |
2d0a2e97c070f88e1214e07ab4f0687bcbfe9658 | 1,090 | exs | Elixir | mix.exs | ohr486/process_mandara | 8507fd0f876a27d9e3ad8dbb927e0fd0b6eb9d75 | [
"MIT"
] | null | null | null | mix.exs | ohr486/process_mandara | 8507fd0f876a27d9e3ad8dbb927e0fd0b6eb9d75 | [
"MIT"
] | null | null | null | mix.exs | ohr486/process_mandara | 8507fd0f876a27d9e3ad8dbb927e0fd0b6eb9d75 | [
"MIT"
] | null | null | null | defmodule ProcessMandara.Mixfile do
use Mix.Project
def project do
[app: :process_mandara,
version: "0.0.1",
elixir: "~> 1.2",
elixirc_paths: elixirc_paths(Mix.env),
compilers: [:phoenix, :gettext] ++ Mix.compilers,
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :pr... | 27.948718 | 90 | 0.614679 |
2d0a54bf9d348cd6e548dcfba20e779c8b4af195 | 742 | ex | Elixir | lib/ambry_web/controllers/api/session_controller.ex | froseph/ambry | 86c1a8528b9f3cc7e4a7debd8005df4116a7d1b1 | [
"MIT"
] | null | null | null | lib/ambry_web/controllers/api/session_controller.ex | froseph/ambry | 86c1a8528b9f3cc7e4a7debd8005df4116a7d1b1 | [
"MIT"
] | null | null | null | lib/ambry_web/controllers/api/session_controller.ex | froseph/ambry | 86c1a8528b9f3cc7e4a7debd8005df4116a7d1b1 | [
"MIT"
] | null | null | null | defmodule AmbryWeb.API.SessionController do
@moduledoc """
Controller for logging in and out for the API.
"""
use AmbryWeb, :controller
alias Ambry.Accounts
def create(conn, %{"user" => user_params}) do
%{"email" => email, "password" => password} = user_params
if user = Accounts.get_user_by_emai... | 23.935484 | 73 | 0.67655 |
2d0a592ff2a6ebdb0cee41b9c5ad15c141835a8e | 220 | exs | Elixir | config/config.exs | wasi0013/tbud | 19b3931f758cd5c923296a7f64ffc74d320e2243 | [
"MIT"
] | null | null | null | config/config.exs | wasi0013/tbud | 19b3931f758cd5c923296a7f64ffc74d320e2243 | [
"MIT"
] | 2 | 2021-11-12T14:34:12.000Z | 2021-11-12T14:40:30.000Z | config/config.exs | wasi0013/tbud | 19b3931f758cd5c923296a7f64ffc74d320e2243 | [
"MIT"
] | null | null | null | import Config
config :app, App.Repo,
database: "app_repo",
username: "user",
password: "pass",
hostname: "localhost"
config :app,
bot_name: ""
config :nadia,
token: ""
import_config "#{config_env()}.exs"
| 13.75 | 35 | 0.654545 |
2d0a657579e14fe5aa23eb174024d60ab01ed42e | 245 | ex | Elixir | lib/algae/writer/apply.ex | doma-engineering/algae | da85c5a9e78591c707859f07f9d485ed68019349 | [
"MIT"
] | 191 | 2016-08-22T17:34:45.000Z | 2019-05-28T19:02:39.000Z | lib/algae/writer/apply.ex | doma-engineering/algae | da85c5a9e78591c707859f07f9d485ed68019349 | [
"MIT"
] | 35 | 2016-08-30T20:56:22.000Z | 2019-05-02T17:32:31.000Z | lib/algae/writer/apply.ex | doma-engineering/algae | da85c5a9e78591c707859f07f9d485ed68019349 | [
"MIT"
] | 10 | 2016-08-30T18:41:54.000Z | 2019-02-14T14:14:55.000Z | alias Algae.Writer
import TypeClass
use Quark
use Witchcraft
definst Witchcraft.Apply, for: Algae.Writer do
def convey(%Writer{writer: {value, log_a}}, %Writer{writer: {fun, log_b}}) do
Writer.new(fun.(value), log_b <> log_a)
end
end
| 20.416667 | 79 | 0.718367 |
2d0a843ea1c4009b0077b30b96775448e1570626 | 86 | exs | Elixir | test/findmeajob_web/views/page_view_test.exs | Adsidera/findmeajob | 5a2df0267bd29b7fd55441f7dd1de21dcd4c13ea | [
"MIT"
] | 1 | 2021-07-31T16:28:53.000Z | 2021-07-31T16:28:53.000Z | test/findmeajob_web/views/page_view_test.exs | Adsidera/findmeajob | 5a2df0267bd29b7fd55441f7dd1de21dcd4c13ea | [
"MIT"
] | null | null | null | test/findmeajob_web/views/page_view_test.exs | Adsidera/findmeajob | 5a2df0267bd29b7fd55441f7dd1de21dcd4c13ea | [
"MIT"
] | null | null | null | defmodule FindmeajobWeb.PageViewTest do
use FindmeajobWeb.ConnCase, async: true
end
| 21.5 | 41 | 0.837209 |
2d0a855c52d854e56dde34ccf36b309061ed31aa | 4,592 | exs | Elixir | test/built_with_elixir/posts/posts_test.exs | ospaarmann/built_with_elixir | 5919107c79f200b2035352c7ef9714f8a8f6ff4c | [
"MIT"
] | null | null | null | test/built_with_elixir/posts/posts_test.exs | ospaarmann/built_with_elixir | 5919107c79f200b2035352c7ef9714f8a8f6ff4c | [
"MIT"
] | null | null | null | test/built_with_elixir/posts/posts_test.exs | ospaarmann/built_with_elixir | 5919107c79f200b2035352c7ef9714f8a8f6ff4c | [
"MIT"
] | null | null | null | defmodule BuiltWithElixir.ProjectsTest do
use BuiltWithElixir.DataCase
alias BuiltWithElixir.Projects
describe "posts" do
alias BuiltWithElixir.Projects.Post
@valid_attrs %{
author: "some author",
description:
"some description some description some description some description some... | 34.268657 | 418 | 0.659408 |
2d0abca9a18e92ec37d90e620318b4a80aad998b | 1,989 | exs | Elixir | mix.exs | uralfrkn/covid19asi | 7fd8839980234cb78f4949c84efad6930210cade | [
"MIT"
] | null | null | null | mix.exs | uralfrkn/covid19asi | 7fd8839980234cb78f4949c84efad6930210cade | [
"MIT"
] | null | null | null | mix.exs | uralfrkn/covid19asi | 7fd8839980234cb78f4949c84efad6930210cade | [
"MIT"
] | null | null | null | defmodule VaccineTracker.MixProject do
use Mix.Project
def project do
[
app: :vaccine_tracker,
version: "0.1.0",
elixir: "~> 1.7",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix, :gettext] ++ Mix.compilers(),
start_permanent: Mix.env() == :prod,
aliases:... | 28.414286 | 84 | 0.573152 |
2d0abd507a9ec9e333f6ab9d6799dbd7e0d9bc9d | 1,742 | exs | Elixir | lib/elixir/test/elixir/kernel/lexical_tracker_test.exs | guilleiguaran/elixir | 952052869ff7af0e293d2a7160b1aebc68fc46be | [
"Apache-2.0"
] | 1 | 2015-11-12T19:23:45.000Z | 2015-11-12T19:23:45.000Z | lib/elixir/test/elixir/kernel/lexical_tracker_test.exs | guilleiguaran/elixir | 952052869ff7af0e293d2a7160b1aebc68fc46be | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/kernel/lexical_tracker_test.exs | guilleiguaran/elixir | 952052869ff7af0e293d2a7160b1aebc68fc46be | [
"Apache-2.0"
] | null | null | null | Code.require_file "../test_helper.exs", __DIR__
defmodule Kernel.LexicalTrackerTest do
use ExUnit.Case, async: true
alias Kernel.LexicalTracker, as: D
setup do
{ :ok, [pid: D.start_link] }
end
teardown config do
D.stop(config[:pid])
:ok
end
test "can add remote dispatches", config do
... | 27.21875 | 65 | 0.669346 |
2d0ac30800da7e6363ad4b37e65bb9ed516cb2d3 | 5,308 | ex | Elixir | lib/repo/schema.ex | INGCRENGIFO/ex_audit | a30918131fb6b23e7b09d1db38116cef66d91405 | [
"MIT"
] | null | null | null | lib/repo/schema.ex | INGCRENGIFO/ex_audit | a30918131fb6b23e7b09d1db38116cef66d91405 | [
"MIT"
] | null | null | null | lib/repo/schema.ex | INGCRENGIFO/ex_audit | a30918131fb6b23e7b09d1db38116cef66d91405 | [
"MIT"
] | null | null | null | defmodule ExAudit.Schema do
def insert_all(module, name, schema_or_source, entries, opts) do
opts = augment_opts(opts)
augment_transaction(module, fn ->
result =
Ecto.Repo.Schema.insert_all(
module,
name,
schema_or_source,
entries,
Keyword.put(o... | 25.76699 | 107 | 0.600038 |
2d0aede0c6a83c7a4ba37f0e0948df91bc3f2d65 | 1,691 | ex | Elixir | clients/display_video/lib/google_api/display_video/v1/model/household_income_targeting_option_details.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/display_video/lib/google_api/display_video/v1/model/household_income_targeting_option_details.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/display_video/lib/google_api/display_video/v1/model/household_income_targeting_option_details.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... | 33.82 | 114 | 0.765228 |
2d0b40651bac79d250878c3a45469d4fbc5cd83c | 254 | ex | Elixir | lib/gen_state_machine/application.ex | aaronrenner/gen_state_machine | fd39e7818d0de069f25a272e17e51b07fc1b2d74 | [
"Apache-2.0"
] | 164 | 2018-02-02T12:59:10.000Z | 2022-03-27T16:42:14.000Z | lib/gen_state_machine/application.ex | aaronrenner/gen_state_machine | fd39e7818d0de069f25a272e17e51b07fc1b2d74 | [
"Apache-2.0"
] | 13 | 2018-01-30T17:27:16.000Z | 2021-12-15T05:35:42.000Z | lib/gen_state_machine/application.ex | aaronrenner/gen_state_machine | fd39e7818d0de069f25a272e17e51b07fc1b2d74 | [
"Apache-2.0"
] | 14 | 2016-06-26T11:06:09.000Z | 2018-01-17T15:31:16.000Z | defmodule GenStateMachine.Application do
@moduledoc false
use Application
@doc false
def start(_type, _args) do
Logger.add_translator({GenStateMachine.Translator, :translate})
Supervisor.start_link([], strategy: :one_for_one)
end
end
| 21.166667 | 67 | 0.755906 |
2d0b6da325dc599265417213fd991fd181256879 | 902 | ex | Elixir | lib/deli/check/default.ex | rodrigues/deli | a5bdb3df6eb2a943069fa2e4658493f90730bd90 | [
"MIT"
] | 4 | 2019-01-30T11:51:44.000Z | 2019-10-14T02:38:26.000Z | lib/deli/check/default.ex | rodrigues/deli | a5bdb3df6eb2a943069fa2e4658493f90730bd90 | [
"MIT"
] | null | null | null | lib/deli/check/default.ex | rodrigues/deli | a5bdb3df6eb2a943069fa2e4658493f90730bd90 | [
"MIT"
] | null | null | null | defmodule Deli.Check.Default do
alias Deli.Config
@moduledoc false
@behaviour Deli.Check
@impl true
def run(env, host, running_good? \\ true, controller \\ nil, action \\ :running) do
controller = controller || Config.controller()
id = Config.host_id(env, host)
running_color = if running_good?... | 27.333333 | 85 | 0.645233 |
2d0b7df0d9fdb2d5c97f38da2ecf2382638b4eec | 496 | ex | Elixir | lib/telebrew/listener/state.ex | evanrupert/telebrew | 156ef186b59451715a5f1fbdac72973831c72555 | [
"MIT"
] | 1 | 2021-11-13T17:47:08.000Z | 2021-11-13T17:47:08.000Z | lib/telebrew/listener/state.ex | evanrupert/telebrew | 156ef186b59451715a5f1fbdac72973831c72555 | [
"MIT"
] | null | null | null | lib/telebrew/listener/state.ex | evanrupert/telebrew | 156ef186b59451715a5f1fbdac72973831c72555 | [
"MIT"
] | null | null | null | defmodule Telebrew.Listener.State do
@moduledoc """
Defines the struct used for storing the state of the chats
"""
defstruct initial: nil, all_chats: %{}, current_chat: nil
def update_current_chat_state(state_struct, chat_id, new_state) do
updated_all_chats = Map.put(state_struct.all_chats, chat_id, new... | 29.176471 | 75 | 0.756048 |
2d0bba30e6d421d29dfbac02a313b39620f74805 | 62 | ex | Elixir | lib/group/group.ex | trojanh/slack-bot-test | 763e3722b39cb2aeaf57b2e7c49d92f0c97a4fcf | [
"MIT"
] | 3 | 2017-03-14T12:26:35.000Z | 2022-02-19T20:17:09.000Z | lib/group/group.ex | trojanh/slack-bot-test | 763e3722b39cb2aeaf57b2e7c49d92f0c97a4fcf | [
"MIT"
] | 2 | 2018-01-08T11:37:51.000Z | 2018-01-08T12:43:16.000Z | lib/group/group.ex | trojanh/slack-bot-test | 763e3722b39cb2aeaf57b2e7c49d92f0c97a4fcf | [
"MIT"
] | 2 | 2017-09-30T17:07:41.000Z | 2018-01-08T11:20:38.000Z | defmodule Tasker.Group do
defstruct name: "", users: []
end
| 15.5 | 31 | 0.693548 |
2d0bc7e906ffef61899ad35974fc04f89624bd49 | 6,934 | ex | Elixir | lib/legacy/client.ex | prem-prakash/goth | 711adee6976096830bd56b862468cba4683ddfb9 | [
"MIT"
] | 239 | 2016-03-03T07:25:51.000Z | 2022-03-14T13:07:30.000Z | lib/legacy/client.ex | prem-prakash/goth | 711adee6976096830bd56b862468cba4683ddfb9 | [
"MIT"
] | 102 | 2016-03-04T12:53:45.000Z | 2022-03-16T14:09:58.000Z | lib/legacy/client.ex | prem-prakash/goth | 711adee6976096830bd56b862468cba4683ddfb9 | [
"MIT"
] | 106 | 2016-03-17T17:52:27.000Z | 2022-03-24T06:30:02.000Z | defmodule Goth.Client do
@moduledoc false
# `Goth.Client` is the module through which all interaction with Google's APIs flows.
# For the most part, you probably don't want to use this module directly, but instead
# use the other modules that cache and wrap the underlying API calls.
#
# ## Available Option... | 34.497512 | 119 | 0.6621 |
2d0bf6d86be70c56b2642c67067a6297695b408e | 1,924 | exs | Elixir | apps/datapio_cluster/test/datapio_cluster/application_test.exs | datapio/opencore | 6e766c3b3a2ad8b07295c7fd27cffc0923284197 | [
"Apache-2.0"
] | 5 | 2021-05-14T22:01:08.000Z | 2021-09-21T16:28:09.000Z | apps/datapio_cluster/test/datapio_cluster/application_test.exs | datapio/opencore | 6e766c3b3a2ad8b07295c7fd27cffc0923284197 | [
"Apache-2.0"
] | 198 | 2019-10-17T12:22:25.000Z | 2022-03-16T02:14:14.000Z | apps/datapio_cluster/test/datapio_cluster/application_test.exs | datapio/opencore | 6e766c3b3a2ad8b07295c7fd27cffc0923284197 | [
"Apache-2.0"
] | 1 | 2022-03-10T08:54:36.000Z | 2022-03-10T08:54:36.000Z | defmodule Datapio.Test.Cluster.Application do
use ExUnit.Case
import Mock
alias :mnesia, as: Mnesia
@table_success {:valid, [:attr1, :attr2]}
@table_exist {:exist, [:attr1, :attr2]}
@table_failed {:failed, [:attr1, :attr2]}
def application_mock(cache_tables) do
{Application, [:passthrough], [
... | 24.987013 | 84 | 0.594075 |
2d0bfae9241852e6abcfd6bfccbacfcca0a73f72 | 518 | exs | Elixir | FFANN/exs/dig.exs | taimish/FFANN | ff9bb2bc06c737756720b6a8af9d4977fd331c52 | [
"Apache-2.0"
] | 1 | 2019-10-16T09:01:36.000Z | 2019-10-16T09:01:36.000Z | FFANN/exs/dig.exs | taimish/FFANN | ff9bb2bc06c737756720b6a8af9d4977fd331c52 | [
"Apache-2.0"
] | null | null | null | FFANN/exs/dig.exs | taimish/FFANN | ff9bb2bc06c737756720b6a8af9d4977fd331c52 | [
"Apache-2.0"
] | null | null | null | Examples
10
15
10
0
1
0
1
0
1
1
0
1
1
0
1
0
1
0
1
0
0
0
0
0
0
0
0
0
0
1
0
1
1
0
0
1
0
0
1
0
0
1
0
0
1
0
0
0
0
0
0
0
0
0
1
0
1
0
1
0
0
1
0
1
0
1
1
1
0
0
1
0
0
0
0
0
0
0
1
1
0
0
0
1
0
1
0
0
0
1
1
1
0
0
0
0
1
0
0
0
0
0
0
1
0
1
1
0
1
1
1
1
0
0
1
0
0
1
0
0
0
0
1
0
0
0
0
0
1
1
1
1
0
0
1
1
1
0
0
1
1
1
1
0
0
0
0
0
1
0
0
0
0
0
... | 2.031373 | 8 | 0.509653 |
2d0c19de47bf0f541e0b2610ed0e060ca3c2ac2a | 878 | ex | Elixir | test/support/session.ex | stevegrossi/ex_venture | e02d5a63fdb882d92cfb4af3e15f7b48ad7054aa | [
"MIT"
] | 1 | 2019-02-10T10:22:39.000Z | 2019-02-10T10:22:39.000Z | test/support/session.ex | stevegrossi/ex_venture | e02d5a63fdb882d92cfb4af3e15f7b48ad7054aa | [
"MIT"
] | null | null | null | test/support/session.ex | stevegrossi/ex_venture | e02d5a63fdb882d92cfb4af3e15f7b48ad7054aa | [
"MIT"
] | null | null | null | defmodule Test.Session do
@moduledoc """
Helpers for session state
"""
def session_state(attributes) do
attributes = Map.merge(%{
socket: :socket,
state: "active",
mode: "commands",
}, attributes)
attributes =
attributes
|> maybe_characterize()
|> maybe_pull_out... | 20.904762 | 78 | 0.635535 |
2d0c421f4147d2fcc4fc030b43dfcafc263d6285 | 93,310 | ex | Elixir | lib/codes/codes_h40.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_h40.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_h40.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | defmodule IcdCode.ICDCode.Codes_H40 do
alias IcdCode.ICDCode
def _H40001 do
%ICDCode{full_code: "H40001",
category_code: "H40",
short_code: "001",
full_name: "Preglaucoma, unspecified, right eye",
short_name: "Preglaucoma, unspecified, right eye",
category_name: ... | 41.674855 | 113 | 0.64694 |
2d0c5cc9a26956ba27c8016cd5a9bde086db0112 | 668 | ex | Elixir | test/support/extensions/reset_password/repo_mock.ex | foggy1/pow | c46cf4c4c2d59d10861783faa46f3979d54343a9 | [
"MIT"
] | null | null | null | test/support/extensions/reset_password/repo_mock.ex | foggy1/pow | c46cf4c4c2d59d10861783faa46f3979d54343a9 | [
"MIT"
] | null | null | null | test/support/extensions/reset_password/repo_mock.ex | foggy1/pow | c46cf4c4c2d59d10861783faa46f3979d54343a9 | [
"MIT"
] | null | null | null | defmodule PowResetPassword.Test.RepoMock do
@moduledoc false
alias PowResetPassword.Test.Users.User
@user %User{id: 1}
def get_by(User, [email: "test@example.com"]), do: @user
def get_by(User, [email: "invalid@example.com"]), do: nil
def update(%{valid?: true} = changeset) do
user = Ecto.Changeset.ap... | 29.043478 | 88 | 0.664671 |
2d0c74b92a2cf63ae1e8052d1399b7fbcc3b2a5c | 1,127 | exs | Elixir | mix.exs | dnlserrano/spandex_datadog | 47646cbb870c1a6e83b42e18a97f2daf0a80e5ad | [
"MIT"
] | null | null | null | mix.exs | dnlserrano/spandex_datadog | 47646cbb870c1a6e83b42e18a97f2daf0a80e5ad | [
"MIT"
] | null | null | null | mix.exs | dnlserrano/spandex_datadog | 47646cbb870c1a6e83b42e18a97f2daf0a80e5ad | [
"MIT"
] | null | null | null | defmodule SpandexDatadog.MixProject do
use Mix.Project
def project do
[
app: :spandex_datadog,
description: description(),
version: "0.3.0",
elixir: "~> 1.6",
start_permanent: Mix.env() == :prod,
deps: deps(),
elixirc_paths: elixirc_paths(Mix.env()),
docs: docs()... | 18.783333 | 80 | 0.538598 |
2d0c9669ab61dd8ed91a7b852379b536ab8d9fa1 | 1,758 | ex | Elixir | clients/mirror/lib/google_api/mirror/v1/model/locations_list_response.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/mirror/lib/google_api/mirror/v1/model/locations_list_response.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/mirror/lib/google_api/mirror/v1/model/locations_list_response.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 35.16 | 129 | 0.730375 |
2d0ca931156ee016840d8cd2f4630bdc71842086 | 365 | exs | Elixir | priv/repo/migrations/20160622202524_create_skill_levels.exs | ClubNix/academy | 962be0defc1d8eedc5d19ac0a65e931c794c6538 | [
"MIT"
] | 3 | 2016-06-18T17:46:14.000Z | 2020-01-21T03:19:41.000Z | priv/repo/migrations/20160622202524_create_skill_levels.exs | ClubNix/academy | 962be0defc1d8eedc5d19ac0a65e931c794c6538 | [
"MIT"
] | 18 | 2016-06-18T18:05:43.000Z | 2018-03-06T08:19:41.000Z | priv/repo/migrations/20160622202524_create_skill_levels.exs | ClubNix/academy | 962be0defc1d8eedc5d19ac0a65e931c794c6538 | [
"MIT"
] | 3 | 2016-10-26T19:51:06.000Z | 2018-09-18T09:06:14.000Z | defmodule Academy.Repo.Migrations.CreateSkillLevels do
use Ecto.Migration
def change do
create table(:skill_levels) do
add :level, :integer
add :user_id, references(:users, on_delete: :delete_all)
add :skill_id, references(:skills, on_delete: :delete_all)
end
create unique_index(:ski... | 24.333333 | 64 | 0.712329 |
2d0cbc780104ef46d0f89d869209cd9c9ce781f9 | 497 | ex | Elixir | lib/exwordnet/config.ex | indocomsoft/exwordnet | bb9213ff85db43133a50f45fc103d90cd85906a0 | [
"MIT"
] | 3 | 2020-03-31T11:48:26.000Z | 2020-12-08T14:47:24.000Z | lib/exwordnet/config.ex | indocomsoft/exwordnet | bb9213ff85db43133a50f45fc103d90cd85906a0 | [
"MIT"
] | 23 | 2019-04-23T04:56:30.000Z | 2021-08-11T08:20:30.000Z | lib/exwordnet/config.ex | indocomsoft/exwordnet | bb9213ff85db43133a50f45fc103d90cd85906a0 | [
"MIT"
] | null | null | null | defmodule ExWordNet.Config do
@moduledoc """
Contains the configurable settings of ExWordNet
"""
@db_name "WordNet-3.0"
# TODO: Make the db location configurable
@doc """
Returns the the db location.
Also extracts the compressed database.
"""
def db do
priv = :exwordnet |> :code.priv_dir() |>... | 19.115385 | 69 | 0.613682 |
2d0d2f42b0e325676ca5b697b450fb7f4c2c278d | 241 | ex | Elixir | lib/docdog/editor/queries/line_query.ex | sobolevn/docdog-engine | 5f7ad60465063fac3d56574f2bf27a4a52d0a91e | [
"MIT"
] | null | null | null | lib/docdog/editor/queries/line_query.ex | sobolevn/docdog-engine | 5f7ad60465063fac3d56574f2bf27a4a52d0a91e | [
"MIT"
] | null | null | null | lib/docdog/editor/queries/line_query.ex | sobolevn/docdog-engine | 5f7ad60465063fac3d56574f2bf27a4a52d0a91e | [
"MIT"
] | null | null | null | defmodule Docdog.Editor.Queries.LineQuery do
import Ecto.Query, warn: false
def default_scope(query) do
from(
l in query,
preload: [:user, :project, document: :user],
order_by: [asc: :index_number]
)
end
end
| 20.083333 | 50 | 0.651452 |
2d0d323401d8a31be0bae19ec45ecb0b84bcbc6b | 1,613 | ex | Elixir | lib/chat_db/server/listener.ex | os-ex/chat_db_ex | 887aadaf6499bd214fd12af5410f5414672420a0 | [
"Apache-2.0"
] | null | null | null | lib/chat_db/server/listener.ex | os-ex/chat_db_ex | 887aadaf6499bd214fd12af5410f5414672420a0 | [
"Apache-2.0"
] | null | null | null | lib/chat_db/server/listener.ex | os-ex/chat_db_ex | 887aadaf6499bd214fd12af5410f5414672420a0 | [
"Apache-2.0"
] | null | null | null | defmodule ChatDb.Server.Listener do
@moduledoc """
SQLite connector for the iMessage chatdb.
"""
# alias Phoenix.PubSub
alias ChatDb
require Logger
@actions [:insert, :update, :delete]
@topic "user:*"
@type action() :: :insert | :update | :delete
@type table() :: iolist()
@type rowid() :: any... | 26.883333 | 77 | 0.634222 |
2d0d8c9f0d44f7be9000e265ba4b66eb9270a6e1 | 3,536 | ex | Elixir | clients/genomics/lib/google_api/genomics/v1/model/search_variants_request.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/genomics/lib/google_api/genomics/v1/model/search_variants_request.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/genomics/lib/google_api/genomics/v1/model/search_variants_request.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 49.111111 | 286 | 0.722285 |
2d0d9d535f880df06c10931fbd65bb1c1e4e26c9 | 2,109 | exs | Elixir | echo/config/dev.exs | mrjbj/liveview_sept_2021 | 1722a9527acef2b4584810976fecc507cc3eda8b | [
"MIT"
] | null | null | null | echo/config/dev.exs | mrjbj/liveview_sept_2021 | 1722a9527acef2b4584810976fecc507cc3eda8b | [
"MIT"
] | null | null | null | echo/config/dev.exs | mrjbj/liveview_sept_2021 | 1722a9527acef2b4584810976fecc507cc3eda8b | [
"MIT"
] | null | null | null | use Mix.Config
# Configure your database
config :echo, Echo.Repo,
username: "postgres",
password: "Ringo!@5",
database: "echo_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.
#
# The... | 27.38961 | 68 | 0.685633 |
2d0da8e66117a98d66eda461b21db105da135155 | 68 | ex | Elixir | web/views/admin_view.ex | the5fire/ex_admin_demo | 655540499a68670c7349974b47c5e0bfee29aa99 | [
"MIT"
] | 22 | 2016-03-31T02:58:09.000Z | 2020-06-16T02:37:16.000Z | web/views/admin_view.ex | the5fire/ex_admin_demo | 655540499a68670c7349974b47c5e0bfee29aa99 | [
"MIT"
] | 7 | 2016-03-27T14:22:59.000Z | 2021-04-27T14:33:51.000Z | web/views/admin_view.ex | the5fire/ex_admin_demo | 655540499a68670c7349974b47c5e0bfee29aa99 | [
"MIT"
] | 13 | 2016-04-21T06:05:32.000Z | 2018-08-23T06:38:54.000Z | defmodule ExAdminDemo.AdminView do
use ExAdminDemo.Web, :view
end
| 17 | 34 | 0.808824 |
2d0dc43a917b5ce5676aa3e460e70bd60fb4eaee | 707 | ex | Elixir | apps/astarte_housekeeping_api/lib/astarte_housekeeping_api/health/backend_health.ex | matt-mazzucato/astarte | 34d84941a5019efc42321052f7f34b7d907a38f2 | [
"Apache-2.0"
] | 191 | 2018-03-30T13:23:08.000Z | 2022-03-02T12:05:32.000Z | apps/astarte_housekeeping_api/lib/astarte_housekeeping_api/health/backend_health.ex | matt-mazzucato/astarte | 34d84941a5019efc42321052f7f34b7d907a38f2 | [
"Apache-2.0"
] | 402 | 2018-03-30T13:37:00.000Z | 2022-03-31T16:47:10.000Z | apps/astarte_housekeeping_api/lib/astarte_housekeeping_api/health/backend_health.ex | matt-mazzucato/astarte | 34d84941a5019efc42321052f7f34b7d907a38f2 | [
"Apache-2.0"
] | 24 | 2018-03-30T13:29:48.000Z | 2022-02-28T11:10:26.000Z | #
# This file is part of Astarte.
#
# Copyright 2018 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... | 29.458333 | 74 | 0.75389 |
2d0dd645148b446ba65c10f16aee152f856b56ae | 5,475 | ex | Elixir | priv/templates/coh.gen.controllers/controllers/coherence/invitation_controller.ex | lorenzosinisi/coherence | 956b6b7412951f452386cc5861d5cc5c7896be04 | [
"MIT"
] | null | null | null | priv/templates/coh.gen.controllers/controllers/coherence/invitation_controller.ex | lorenzosinisi/coherence | 956b6b7412951f452386cc5861d5cc5c7896be04 | [
"MIT"
] | null | null | null | priv/templates/coh.gen.controllers/controllers/coherence/invitation_controller.ex | lorenzosinisi/coherence | 956b6b7412951f452386cc5861d5cc5c7896be04 | [
"MIT"
] | 1 | 2019-09-11T10:21:21.000Z | 2019-09-11T10:21:21.000Z | defmodule <%= web_base %>.Coherence.InvitationController do
@moduledoc """
Handle invitation actions.
Handle the following actions:
* new - render the send invitation form.
* create - generate and send the invitation token.
* edit - render the form after user clicks the invitation email link.
* create_u... | 28.968254 | 94 | 0.606393 |
2d0dd94fc2def9ec96965e769e4b01901d0b732f | 1,188 | exs | Elixir | lib/mix/test/mix/tasks/clean_test.exs | jbcrail/elixir | f30ef15d9d028a6d0f74d10c2bb320d5f8501bdb | [
"Apache-2.0"
] | 1 | 2015-02-23T00:01:48.000Z | 2015-02-23T00:01:48.000Z | lib/mix/test/mix/tasks/clean_test.exs | jbcrail/elixir | f30ef15d9d028a6d0f74d10c2bb320d5f8501bdb | [
"Apache-2.0"
] | null | null | null | lib/mix/test/mix/tasks/clean_test.exs | jbcrail/elixir | f30ef15d9d028a6d0f74d10c2bb320d5f8501bdb | [
"Apache-2.0"
] | null | null | null | Code.require_file "../../test_helper.exs", __DIR__
defmodule Mix.Tasks.CleanTest do
use MixTest.Case
defmodule Sample do
def project do
[
app: :sample,
version: "0.1.0",
deps: [
{:ok, "0.1.0", path: "deps/ok"},
{:unknown, "0.1.0", git: "deps/unknown"}
... | 23.294118 | 53 | 0.591751 |
2d0e0018b9f2544ce76a9240aa08831b119677d7 | 2,459 | ex | Elixir | lib/noa_web/router.ex | handnot2/noa | c071798e2baf4649466ba37190070c3192c7c2c2 | [
"MIT"
] | 9 | 2017-08-16T14:55:48.000Z | 2019-03-06T15:06:49.000Z | lib/noa_web/router.ex | handnot2/noa | c071798e2baf4649466ba37190070c3192c7c2c2 | [
"MIT"
] | null | null | null | lib/noa_web/router.ex | handnot2/noa | c071798e2baf4649466ba37190070c3192c7c2c2 | [
"MIT"
] | 1 | 2022-03-17T18:32:59.000Z | 2022-03-17T18:32:59.000Z | defmodule NoaWeb.Router do
@moduledoc false
use NoaWeb, :router
alias NoaWeb.Plugs
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_flash
plug :protect_from_forgery
plug :put_secure_browser_headers
plug Plugs.DisableRespCache
end
pipeline :api do
pl... | 25.091837 | 73 | 0.699878 |
2d0e026d7a083d3a896eb34a5f73b0a8ba97bf82 | 2,525 | ex | Elixir | lib/credo/priority.ex | sevenseacat/credo | 48837401040d9c2340b5fb9c7d786d31f89f6426 | [
"MIT"
] | 1 | 2020-01-31T10:23:37.000Z | 2020-01-31T10:23:37.000Z | lib/credo/priority.ex | sevenseacat/credo | 48837401040d9c2340b5fb9c7d786d31f89f6426 | [
"MIT"
] | null | null | null | lib/credo/priority.ex | sevenseacat/credo | 48837401040d9c2340b5fb9c7d786d31f89f6426 | [
"MIT"
] | null | null | null | defmodule Credo.Priority do
@moduledoc """
In Credo each Issue is given a priority to differentiate issues by a second
dimension next to their Category.
"""
alias Credo.Code.Module
alias Credo.Code.Parameters
alias Credo.Code.Scope
alias Credo.SourceFile
@def_ops [:def, :defp, :defmacro]
@many_fun... | 24.754902 | 87 | 0.578614 |
2d0e2a773cc70390714b26aaa3f505a804baeb81 | 1,002 | ex | Elixir | lib/comredis/command/doc_test.ex | iurifq/comredis | 041b2d129d972c72f225ba0d6823d8fb940e3690 | [
"MIT"
] | 32 | 2016-03-26T08:55:26.000Z | 2021-12-05T17:40:15.000Z | lib/comredis/command/doc_test.ex | iurifq/comredis | 041b2d129d972c72f225ba0d6823d8fb940e3690 | [
"MIT"
] | 2 | 2016-05-10T13:04:45.000Z | 2016-06-26T23:22:58.000Z | lib/comredis/command/doc_test.ex | iurifq/comredis | 041b2d129d972c72f225ba0d6823d8fb940e3690 | [
"MIT"
] | 3 | 2016-03-29T11:18:48.000Z | 2018-10-03T20:21:19.000Z | defmodule Comredis.Command.DocTest do
@moduledoc """
Module that contains every doctest for commands. They will be included
both in the tests and in the documentation for each command function.
"""
@doc """
Function that returns the doctests for the command described with the given
`canonical_command_nam... | 21.782609 | 83 | 0.628743 |
2d0e88ca50d7b3db10f15e930756df501aebdcc5 | 2,017 | ex | Elixir | clients/content/lib/google_api/content/v2/model/order_customer.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/model/order_customer.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/model/order_customer.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 35.385965 | 118 | 0.741696 |
2d0e972ead2e53c318a7ee196b91a7454cd3c974 | 8,694 | exs | Elixir | web_finngen_r8/import_endpoint_csv.exs | vincent-octo/risteys | 5bb1e70b78988770048b91b42fad025faf98d84a | [
"MIT"
] | null | null | null | web_finngen_r8/import_endpoint_csv.exs | vincent-octo/risteys | 5bb1e70b78988770048b91b42fad025faf98d84a | [
"MIT"
] | null | null | null | web_finngen_r8/import_endpoint_csv.exs | vincent-octo/risteys | 5bb1e70b78988770048b91b42fad025faf98d84a | [
"MIT"
] | null | null | null | # Import endpoint (aka Phenocode) information.
#
# Usage
# -----
# mix run import_endpoint_csv.exs \
# <path-to-endpoints-file> \
# <path-to-tagged-ordered-endpoints-file> \
# <path-to-categories-file> \
# <path-to-icd10fi>
#
# <path-to-endpoints-file>
# Endpoint file in CSV format.
# Provided in th... | 27.687898 | 98 | 0.654359 |
2d0ea99c92281ceb853da501641cac540bf2a065 | 4,842 | ex | Elixir | lib/appsignal/phoenix/channel.ex | helijia-web/appsignal-elixir | d905c831f32dd8e9d88fdffbb4ce2c7efab5f9cb | [
"MIT"
] | null | null | null | lib/appsignal/phoenix/channel.ex | helijia-web/appsignal-elixir | d905c831f32dd8e9d88fdffbb4ce2c7efab5f9cb | [
"MIT"
] | null | null | null | lib/appsignal/phoenix/channel.ex | helijia-web/appsignal-elixir | d905c831f32dd8e9d88fdffbb4ce2c7efab5f9cb | [
"MIT"
] | 1 | 2020-10-08T20:22:54.000Z | 2020-10-08T20:22:54.000Z | if Appsignal.phoenix?() do
defmodule Appsignal.Phoenix.Channel do
@transaction Application.get_env(:appsignal, :appsignal_transaction, Appsignal.Transaction)
@moduledoc """
Instrumentation for channel events
## Instrumenting a channel's `handle_in/3`
Currently, incoming channel requests can be ... | 33.625 | 152 | 0.647253 |
2d0eb83c7644ffd6508e14aafc707109d76b1d46 | 3,981 | ex | Elixir | lib/ex_admin/paginate.ex | devonestes/ex_admin | e135ae7c28de78fc87baf519ff8a32da12e8bf66 | [
"MIT"
] | 1,347 | 2015-10-05T18:23:49.000Z | 2022-01-09T18:38:36.000Z | lib/ex_admin/paginate.ex | leonardzhou/ex_admin | c241e956503c548a472e3ee89751e64a16477638 | [
"MIT"
] | 402 | 2015-10-03T13:53:32.000Z | 2021-07-08T09:52:22.000Z | lib/ex_admin/paginate.ex | leonardzhou/ex_admin | c241e956503c548a472e3ee89751e64a16477638 | [
"MIT"
] | 333 | 2015-10-12T22:56:57.000Z | 2021-05-26T18:40:24.000Z | defmodule ExAdmin.Paginate do
@moduledoc false
use Xain
import ExAdmin.Theme.Helpers
import ExAdmin.Gettext
def paginate(_, nil, _, _, _, _, _), do: []
def paginate(link, page_number, page_size, total_pages, record_count, name) do
markup do
theme_module(Paginate).wrap_pagination1(fn ->
i... | 27.267123 | 94 | 0.619945 |
2d0eb94a32ec4fb09f4695113a24a89a4be60bbe | 51 | ex | Elixir | testData/org/elixir_lang/parser_definition/unmatched_expression_parsing_test_case/ExclamationPointQualifiedParenthesesCallBlock.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/unmatched_expression_parsing_test_case/ExclamationPointQualifiedParenthesesCallBlock.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/unmatched_expression_parsing_test_case/ExclamationPointQualifiedParenthesesCallBlock.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 145 | 2015-01-15T11:37:16.000Z | 2021-12-22T05:51:02.000Z | !One.two(three) do end
!One.two(three)(four) do end | 25.5 | 28 | 0.705882 |
2d0ee6b6992a989503dfa874f7327b3c4d2d5068 | 2,888 | ex | Elixir | deps/ecto/lib/ecto/adapters/sql/connection.ex | hallebadkapp/rumbl-ms | ae2ef9975658115f8c4d5c49c28d8bde00a74b83 | [
"MIT"
] | null | null | null | deps/ecto/lib/ecto/adapters/sql/connection.ex | hallebadkapp/rumbl-ms | ae2ef9975658115f8c4d5c49c28d8bde00a74b83 | [
"MIT"
] | null | null | null | deps/ecto/lib/ecto/adapters/sql/connection.ex | hallebadkapp/rumbl-ms | ae2ef9975658115f8c4d5c49c28d8bde00a74b83 | [
"MIT"
] | null | null | null | defmodule Ecto.Adapters.SQL.Connection do
@moduledoc """
Specifies the behaviour to be implemented by all SQL connections.
"""
@typedoc "The prepared query which is an SQL command"
@type prepared :: String.t
@typedoc "The cache query which is a DBConnection Query"
@type cached :: map
@doc """
Recei... | 32.088889 | 128 | 0.646814 |
2d0f1e9c95907be8b436f17f4832bd6b78bac3dc | 11,396 | ex | Elixir | lib/zxcvbn/data/adjacency_graphs.ex | ayonix/zxcvbn-ex | ce5f1a9f5ca3b7b17c895fc237e12cdede85da38 | [
"MIT"
] | null | null | null | lib/zxcvbn/data/adjacency_graphs.ex | ayonix/zxcvbn-ex | ce5f1a9f5ca3b7b17c895fc237e12cdede85da38 | [
"MIT"
] | null | null | null | lib/zxcvbn/data/adjacency_graphs.ex | ayonix/zxcvbn-ex | ce5f1a9f5ca3b7b17c895fc237e12cdede85da38 | [
"MIT"
] | null | null | null | defmodule Zxcvbn.AdjacencyGraphs do
@moduledoc false
def all do
%{
qwerty: qwerty(),
dvorak: dvorak(),
keypad: keypad(),
mac_keypad: mac_keypad()
}
end
def qwerty do
%{
"!" => ["`~", nil, nil, "2@", "qQ", nil],
"\"" => [";:", "[{", "]}", nil, nil, "/?"],
"... | 45.222222 | 54 | 0.241751 |
2d0f671e142ec5323f2a3138b9fa807fa93c1a02 | 1,106 | ex | Elixir | bowling_game/lib/iteration_02/bowling_game/day13.ex | alex-dukhno/elixir-tdd-katas | 57e25fc275c4274c889f2b3760276cc8a393de9e | [
"MIT"
] | null | null | null | bowling_game/lib/iteration_02/bowling_game/day13.ex | alex-dukhno/elixir-tdd-katas | 57e25fc275c4274c889f2b3760276cc8a393de9e | [
"MIT"
] | null | null | null | bowling_game/lib/iteration_02/bowling_game/day13.ex | alex-dukhno/elixir-tdd-katas | 57e25fc275c4274c889f2b3760276cc8a393de9e | [
"MIT"
] | null | null | null | defmodule BowlingGame.Day13 do
def new_game() do
{:ok, pid} = Agent.start_link(fn -> [] end)
pid
end
def roll(game, pins) do
Agent.update(game, fn rolls -> [pins | rolls] end)
game
end
def score(game) do
Agent.get(game, fn rolls -> score(Enum.reverse(rolls), 1) end)
end
defp score(_... | 18.745763 | 66 | 0.572333 |
2d0f734e99672e71ca36b6949d90f0e8573e051d | 7,180 | exs | Elixir | test/runosaari/registration_test.exs | codevictory/runosaari.net | 2462409ccf49987fa562b0ae189247c1fe6f1ccc | [
"MIT"
] | 1 | 2021-11-02T07:43:13.000Z | 2021-11-02T07:43:13.000Z | test/runosaari/registration_test.exs | codevictory/runosaari.net | 2462409ccf49987fa562b0ae189247c1fe6f1ccc | [
"MIT"
] | null | null | null | test/runosaari/registration_test.exs | codevictory/runosaari.net | 2462409ccf49987fa562b0ae189247c1fe6f1ccc | [
"MIT"
] | 1 | 2021-05-19T18:43:09.000Z | 2021-05-19T18:43:09.000Z | defmodule Runosaari.RegistrationTest do
use Runosaari.DataCase
alias Runosaari.Registration
describe "performers" do
alias Runosaari.Registration.Performer
@update_attrs %{
name: "some updated name",
paragraph1: "some updated paragraph 1",
paragraph2: "some updated paragraph 2",
... | 32.053571 | 95 | 0.65766 |
2d0f8ed0e19c583775dc5f439915fc1b900afcb8 | 1,211 | exs | Elixir | mix.exs | brettwise/norm | 0a2e908315195f098054aab1bec1ad65815dfe92 | [
"MIT"
] | null | null | null | mix.exs | brettwise/norm | 0a2e908315195f098054aab1bec1ad65815dfe92 | [
"MIT"
] | null | null | null | mix.exs | brettwise/norm | 0a2e908315195f098054aab1bec1ad65815dfe92 | [
"MIT"
] | null | null | null | defmodule Norm.MixProject do
use Mix.Project
@version "0.8.0"
def project do
[
app: :norm,
version: @version,
elixir: "~> 1.7",
start_permanent: Mix.env() == :prod,
deps: deps(),
description: description(),
package: package(),
name: "Norm",
source_url: "... | 20.87931 | 77 | 0.561519 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.