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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3f80c9c73b811ad3966e121a645d524d0fe3b58f | 2,467 | ex | Elixir | lib/google/protobuf/wrappers.pb.ex | SoftwareMansion/elixir-gcloud-speech-to-text | a2ee57e3961395b80fa35fc07ad9537b0086d984 | [
"Apache-2.0"
] | 1 | 2021-05-06T20:19:36.000Z | 2021-05-06T20:19:36.000Z | lib/google/protobuf/wrappers.pb.ex | SoftwareMansion/elixir-gcloud-speech-to-text | a2ee57e3961395b80fa35fc07ad9537b0086d984 | [
"Apache-2.0"
] | null | null | null | lib/google/protobuf/wrappers.pb.ex | SoftwareMansion/elixir-gcloud-speech-to-text | a2ee57e3961395b80fa35fc07ad9537b0086d984 | [
"Apache-2.0"
] | 2 | 2021-04-22T20:49:16.000Z | 2021-04-27T14:14:35.000Z | defmodule Google.Protobuf.DoubleValue do
@moduledoc "Auto-generated from `googleapis/google/protobuf/wrappers.proto`"
use Protobuf, syntax: :proto3
@type t :: %__MODULE__{
value: float
}
defstruct [:value]
field :value, 1, type: :double
end
defmodule Google.Protobuf.FloatValue do
@modul... | 22.842593 | 78 | 0.6818 |
3f80d43937131ab2897bdb630a09b6e34ed797db | 16,547 | ex | Elixir | lib/mongo/connection.ex | Talkdesk/mongodb | d6c240c4faf2f73d408b24a028e96f0b30fcb031 | [
"Apache-2.0"
] | null | null | null | lib/mongo/connection.ex | Talkdesk/mongodb | d6c240c4faf2f73d408b24a028e96f0b30fcb031 | [
"Apache-2.0"
] | null | null | null | lib/mongo/connection.ex | Talkdesk/mongodb | d6c240c4faf2f73d408b24a028e96f0b30fcb031 | [
"Apache-2.0"
] | null | null | null | defmodule Mongo.Connection do
@moduledoc """
A connection process to a MongoDB server.
"""
import Kernel, except: [send: 2]
import Mongo.Protocol
import Mongo.Connection.Utils
require Logger
alias Mongo.Connection.Auth
alias Mongo.ReadResult
alias Mongo.WriteResult
@behaviour Connection
@reque... | 30.250457 | 115 | 0.599142 |
3f80dcb4576e37b9657bfb04f76650d224c5148f | 1,363 | exs | Elixir | test/gpt3_first_flight_test.exs | kevinam99/GPT3-First-Steps | c9d259cf18b163c8f9e54a1fcecea2e5ef9ed06d | [
"MIT"
] | null | null | null | test/gpt3_first_flight_test.exs | kevinam99/GPT3-First-Steps | c9d259cf18b163c8f9e54a1fcecea2e5ef9ed06d | [
"MIT"
] | null | null | null | test/gpt3_first_flight_test.exs | kevinam99/GPT3-First-Steps | c9d259cf18b163c8f9e54a1fcecea2e5ef9ed06d | [
"MIT"
] | null | null | null | defmodule Gpt3FirstFlightTest do
use ExUnit.Case, async: true
doctest GPT3FirstFlight
# test "greets the world" do
# assert Gpt3FirstFlight.hello() == :world
# end
test "poll answer" do
assert GPT3FirstFlight.ClassificationPoll.start([
"good",
"The second logo B is clear. s... | 26.72549 | 84 | 0.602348 |
3f80ef0458c78f5739b4841f5a9d1f2fc071c261 | 2,535 | ex | Elixir | clients/game_services/lib/google_api/game_services/v1/model/schedule.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/game_services/lib/google_api/game_services/v1/model/schedule.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/game_services/lib/google_api/game_services/v1/model/schedule.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... | 45.267857 | 494 | 0.711243 |
3f80fe3b142f92b4919c45009e0c6909021d61d5 | 1,777 | ex | Elixir | clients/genomics/lib/google_api/genomics/v1/model/search_call_sets_response.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/genomics/lib/google_api/genomics/v1/model/search_call_sets_response.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/genomics/lib/google_api/genomics/v1/model/search_call_sets_response.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... | 35.54 | 269 | 0.756331 |
3f8108b7cf33f3c92f43c8e1573e008457e5b18b | 1,870 | exs | Elixir | tags_service/config/prod.exs | miguelriosoliveira/dowhile-mural | 3f616bf7d536f0442b41f6f8795af43ed54e61a0 | [
"MIT"
] | null | null | null | tags_service/config/prod.exs | miguelriosoliveira/dowhile-mural | 3f616bf7d536f0442b41f6f8795af43ed54e61a0 | [
"MIT"
] | null | null | null | tags_service/config/prod.exs | miguelriosoliveira/dowhile-mural | 3f616bf7d536f0442b41f6f8795af43ed54e61a0 | [
"MIT"
] | null | null | null | import Config
# For production, don't forget to configure the url host
# to something meaningful, Phoenix uses this information
# when generating URLs.
#
# Note we also include the path to a cache manifest
# containing the digested version of static files. This
# manifest is generated by the `mix phx.digest` task,
# w... | 35.961538 | 66 | 0.710695 |
3f811ff6fb2cb8e4d482b4a3fde97858cefe1f2b | 1,556 | exs | Elixir | test/mix/sentry.send_test_event_test.exs | mbta/sentry-elixir | ce417a69efec0eeb968a3c8fdcd61d3115c69875 | [
"MIT"
] | null | null | null | test/mix/sentry.send_test_event_test.exs | mbta/sentry-elixir | ce417a69efec0eeb968a3c8fdcd61d3115c69875 | [
"MIT"
] | null | null | null | test/mix/sentry.send_test_event_test.exs | mbta/sentry-elixir | ce417a69efec0eeb968a3c8fdcd61d3115c69875 | [
"MIT"
] | null | null | null | defmodule Mix.Tasks.Sentry.SendTestEventTest do
use ExUnit.Case
import ExUnit.CaptureIO
import Sentry.TestEnvironmentHelper
test "prints if environment_name is not in included_environments" do
modify_env(:sentry, [dsn: "http://public:secret@localhost:43/1", included_environments: []])
assert capture_io... | 31.12 | 104 | 0.670308 |
3f813d6cc3ca5c6984c4d0f126fa574d0a8760bf | 2,250 | ex | Elixir | lib/nodejs/supervisor.ex | mwojtul/elixir-nodejs | 54a99a56839b810c38407673cf6fbec666451f0a | [
"MIT"
] | null | null | null | lib/nodejs/supervisor.ex | mwojtul/elixir-nodejs | 54a99a56839b810c38407673cf6fbec666451f0a | [
"MIT"
] | null | null | null | lib/nodejs/supervisor.ex | mwojtul/elixir-nodejs | 54a99a56839b810c38407673cf6fbec666451f0a | [
"MIT"
] | null | null | null | defmodule NodeJS.Supervisor do
use Supervisor
@timeout 30_000
@pool_name :nodejs
@default_pool_size 4
@moduledoc """
NodeJS.Supervisor
"""
@doc """
Starts the Node.js supervisor and workers.
## Options
* `:path` - (required) The path to your Node.js code's root directory.
* `:pool_size` ... | 22.727273 | 89 | 0.598222 |
3f814505da845c99f37e362ae9c34b52215e12ae | 3,116 | ex | Elixir | lib/game/format/table.ex | jgsmith/ex_venture | 546adaa8fe80d45a72fde6de8d8d6906902c12d4 | [
"MIT"
] | 2 | 2019-05-14T11:36:44.000Z | 2020-07-01T08:54:04.000Z | lib/game/format/table.ex | nickwalton/ex_venture | d8ff1b0181db03f9ddcb7610ae7ab533feecbfbb | [
"MIT"
] | null | null | null | lib/game/format/table.ex | nickwalton/ex_venture | d8ff1b0181db03f9ddcb7610ae7ab533feecbfbb | [
"MIT"
] | 1 | 2021-01-29T14:12:40.000Z | 2021-01-29T14:12:40.000Z | defmodule Game.Format.Table do
@moduledoc """
Format a table
"""
import Game.Format.Context
alias Game.Color
alias Game.Format
@doc """
Format an ASCII table
"""
def format(legend, rows, column_sizes) do
width = total_width(column_sizes)
context()
|> assign_many(:rows, rows, &row(&1,... | 23.428571 | 92 | 0.616175 |
3f815d3fdcc77e73180eebb13aba3499a604b4ef | 1,786 | ex | Elixir | clients/remote_build_execution/lib/google_api/remote_build_execution/v2/model/build_bazel_remote_execution_v2_command_environment_variable.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/remote_build_execution/lib/google_api/remote_build_execution/v2/model/build_bazel_remote_execution_v2_command_environment_variable.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/remote_build_execution/lib/google_api/remote_build_execution/v2/model/build_bazel_remote_execution_v2_command_environment_variable.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... | 31.333333 | 106 | 0.735722 |
3f81c2af8991ab2d3cfa6b132c45cf615c4c007e | 2,897 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/health_checks_aggregated_list.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/health_checks_aggregated_list.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/health_checks_aggregated_list.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... | 45.265625 | 393 | 0.716949 |
3f81c33bb436d2a91263e14ef7de1d633f11e7bd | 1,121 | exs | Elixir | joshcrews+elixir/apps/cqrs_bank/config/config.exs | NashFP/cqrs-bank | 6071db4a0c5ec681554aea8bebe783310c5d1525 | [
"MIT"
] | 7 | 2017-05-17T00:36:50.000Z | 2021-11-02T03:02:03.000Z | nashelixir+elixir/apps/cqrs_bank/config/config.exs | NashFP/cqrs-bank | 6071db4a0c5ec681554aea8bebe783310c5d1525 | [
"MIT"
] | 3 | 2017-05-17T00:31:28.000Z | 2017-05-18T04:50:37.000Z | joshcrews+elixir/apps/cqrs_bank/config/config.exs | NashFP/cqrs-bank | 6071db4a0c5ec681554aea8bebe783310c5d1525 | [
"MIT"
] | 5 | 2017-05-16T23:13:19.000Z | 2021-12-02T06:45:25.000Z | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on this project, this
# file won't be loaded nor affect the paren... | 36.16129 | 73 | 0.752007 |
3f8203f4212a210146919665ce931cac22f4032e | 2,034 | exs | Elixir | test/models/record_test.exs | cribbles/discogs-shuffle | aa82f8f9bb0fbb1245da22bd2bc8ed37b7a56b22 | [
"MIT"
] | null | null | null | test/models/record_test.exs | cribbles/discogs-shuffle | aa82f8f9bb0fbb1245da22bd2bc8ed37b7a56b22 | [
"MIT"
] | null | null | null | test/models/record_test.exs | cribbles/discogs-shuffle | aa82f8f9bb0fbb1245da22bd2bc8ed37b7a56b22 | [
"MIT"
] | null | null | null | defmodule DiscogsTest.ModelsTest.RecordTest do
alias Discogs.Models.Record
alias Discogs.Repo
alias Ecto.Adapters.SQL.Sandbox
use ExUnit.Case
@valid_attrs %{
disc_number: 1,
release: %{
name: "Title of Release",
discogs_id: 15
}
}
@virtual_attrs MapSet.new([:release])
setup do... | 25.111111 | 75 | 0.615536 |
3f821e03cccec7f40a8c24ec146394e2183e43a3 | 1,703 | ex | Elixir | clients/health_care/lib/google_api/health_care/v1/model/ingest_message_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/health_care/lib/google_api/health_care/v1/model/ingest_message_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/health_care/lib/google_api/health_care/v1/model/ingest_message_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 34.06 | 113 | 0.732824 |
3f824631087f4fd2f5a13395cb2e6e43006a7d17 | 624 | ex | Elixir | lib/membrane_file/common_file.ex | nathanjohnson320/membrane_file_plugin | 1011a0a20b79962a84fc6129f96dd598b58c4abb | [
"Apache-2.0"
] | null | null | null | lib/membrane_file/common_file.ex | nathanjohnson320/membrane_file_plugin | 1011a0a20b79962a84fc6129f96dd598b58c4abb | [
"Apache-2.0"
] | null | null | null | lib/membrane_file/common_file.ex | nathanjohnson320/membrane_file_plugin | 1011a0a20b79962a84fc6129f96dd598b58c4abb | [
"Apache-2.0"
] | null | null | null | defmodule Membrane.File.CommonFile do
@moduledoc false
def open(location \\ nil, mode, state) do
location = location || state.location
path = Path.expand(location)
with {:ok, fd} <- File.open(path, [:binary, mode]) do
{:ok, %{state | fd: fd}}
else
{:error, reason} -> {{:error, {:open, ... | 23.111111 | 61 | 0.581731 |
3f82547b70ff63bd8d17b4be386f188e8e670be8 | 1,580 | ex | Elixir | web/controllers/user_controller.ex | kumanote/phoenix_vue_webpack_template | 1294eda8937c5eff4ea9ec2447b275b4a0d098fa | [
"MIT"
] | null | null | null | web/controllers/user_controller.ex | kumanote/phoenix_vue_webpack_template | 1294eda8937c5eff4ea9ec2447b275b4a0d098fa | [
"MIT"
] | null | null | null | web/controllers/user_controller.ex | kumanote/phoenix_vue_webpack_template | 1294eda8937c5eff4ea9ec2447b275b4a0d098fa | [
"MIT"
] | null | null | null | defmodule PhoenixVueWebpackTemplate.UserController do
use PhoenixVueWebpackTemplate.Web, :controller
alias PhoenixVueWebpackTemplate.User
def index(conn, _params) do
users = Repo.all(User)
render(conn, "index.json", users: users)
end
def create(conn, %{"user" => user_params}) do
changeset = Use... | 28.214286 | 94 | 0.629114 |
3f82776f4cbf4f5bf8c7bbd9a5f78fdd779a3d3d | 3,236 | exs | Elixir | test/sanbase_web/graphql/user/user_api_call_data_api_test.exs | santiment/sanbase2 | 9ef6e2dd1e377744a6d2bba570ea6bd477a1db31 | [
"MIT"
] | 81 | 2017-11-20T01:20:22.000Z | 2022-03-05T12:04:25.000Z | test/sanbase_web/graphql/user/user_api_call_data_api_test.exs | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | 359 | 2017-10-15T14:40:53.000Z | 2022-01-25T13:34:20.000Z | test/sanbase_web/graphql/user/user_api_call_data_api_test.exs | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | 16 | 2017-11-19T13:57:40.000Z | 2022-02-07T08:13:02.000Z | defmodule SanbaseWeb.Graphql.UserApiCallDataApiTest do
use SanbaseWeb.ConnCase, async: false
import Mock
import SanbaseWeb.Graphql.TestHelpers
import Sanbase.Factory
import Sanbase.DateTimeUtils, only: [from_iso8601!: 1]
setup do
user = insert(:user)
conn = setup_jwt_auth(build_conn(), user)
{... | 24.70229 | 79 | 0.532138 |
3f827d4569b76d0995a8fd94b1d30119abefccf0 | 841 | ex | Elixir | lib/progress_bar/bytes.ex | kelvinst/progress_bar | f1deb260b3e19cb56e70908e2220b241bb5c9800 | [
"MIT"
] | 5 | 2017-09-04T19:43:28.000Z | 2021-06-30T05:28:13.000Z | lib/progress_bar/bytes.ex | kelvinst/progress_bar | f1deb260b3e19cb56e70908e2220b241bb5c9800 | [
"MIT"
] | null | null | null | lib/progress_bar/bytes.ex | kelvinst/progress_bar | f1deb260b3e19cb56e70908e2220b241bb5c9800 | [
"MIT"
] | 1 | 2018-05-29T17:46:19.000Z | 2018-05-29T17:46:19.000Z | defmodule ProgressBar.Bytes do
@mb 1_000_000
@kb 1_000
def format(bytes) do
format_with_unit(bytes)
end
def format(current_bytes, total_bytes) do
format_without_unit(current_bytes, total_bytes) <> "/" <> format_with_unit(total_bytes)
end
defp format_with_unit(bytes) do
{_, unit} = divisor_a... | 27.129032 | 91 | 0.712247 |
3f828b62a3803038eca7a9b7f80c39dfa1260fc0 | 4,255 | ex | Elixir | lib/bakeware/assembler.ex | vans163/bakeware | 94ece18059868c0cd37ec6dadd2b6c6afcd83867 | [
"Apache-2.0"
] | null | null | null | lib/bakeware/assembler.ex | vans163/bakeware | 94ece18059868c0cd37ec6dadd2b6c6afcd83867 | [
"Apache-2.0"
] | null | null | null | lib/bakeware/assembler.ex | vans163/bakeware | 94ece18059868c0cd37ec6dadd2b6c6afcd83867 | [
"Apache-2.0"
] | null | null | null | defmodule Bakeware.Assembler do
@moduledoc false
defstruct [
:compress?,
:compression_level,
:cpio,
:launcher,
:name,
:output,
:path,
:release,
:rel_path,
:trailer
]
@type t() :: %__MODULE__{
compress?: boolean(),
compression_level: 1..19,
c... | 25.479042 | 119 | 0.607756 |
3f829684226a3642b4e0234a8f3c17d692497f46 | 1,045 | ex | Elixir | lib/rocketpay/user.ex | lucasliet/rocketpay-elixir | e0c202e2117b2aef72e7b4800c9322efa59c604a | [
"MIT"
] | null | null | null | lib/rocketpay/user.ex | lucasliet/rocketpay-elixir | e0c202e2117b2aef72e7b4800c9322efa59c604a | [
"MIT"
] | null | null | null | lib/rocketpay/user.ex | lucasliet/rocketpay-elixir | e0c202e2117b2aef72e7b4800c9322efa59c604a | [
"MIT"
] | null | null | null | defmodule Rocketpay.User do
use Ecto.Schema
import Ecto.Changeset
alias Ecto.Changeset
# @primary_key {:id, :binary_id, autogenerate: true}
@required_params [:name, :age, :email, :password, :nickname]
schema "users" do
field :name, :string
field :age, :integer
field :email, :string
field... | 26.125 | 92 | 0.676555 |
3f82ae72bf272887bafe2d0fe8d512184b0b16b6 | 186 | ex | Elixir | lib/brand/diners.ex | ingresse/card-bin-ex | 251bd8900ed2bca893fe89531f59c65d48bfc289 | [
"MIT"
] | 1 | 2019-07-10T18:32:20.000Z | 2019-07-10T18:32:20.000Z | lib/brand/diners.ex | ingresse/card-bin-ex | 251bd8900ed2bca893fe89531f59c65d48bfc289 | [
"MIT"
] | 1 | 2019-05-17T01:11:22.000Z | 2019-05-17T18:01:27.000Z | lib/brand/diners.ex | ingresse/card-bin-ex | 251bd8900ed2bca893fe89531f59c65d48bfc289 | [
"MIT"
] | null | null | null | defmodule CardBinEx.Brand.Diners do
@moduledoc false
@behaviour CardBinEx.Brand
@doc false
def patterns do
[
[300, 305],
36,
38,
39
]
end
end
| 11.625 | 35 | 0.575269 |
3f82be67d824f8224d0009f8164bb7f5f8bd8c6b | 2,109 | ex | Elixir | clients/content/lib/google_api/content/v2/model/product_status_destination_status.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/model/product_status_destination_status.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/content/lib/google_api/content/v2/model/product_status_destination_status.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... | 37.660714 | 209 | 0.711712 |
3f82c419b70bf1468e6d82ca879ded2afa4ae516 | 465 | ex | Elixir | lib/workers/archive_stale_free_tier_conversations.ex | ZmagoD/papercups | dff9a5822b809edc4fd8ecf198566f9b14ab613f | [
"MIT"
] | 4,942 | 2020-07-20T22:35:28.000Z | 2022-03-31T15:38:51.000Z | lib/workers/archive_stale_free_tier_conversations.ex | ZmagoD/papercups | dff9a5822b809edc4fd8ecf198566f9b14ab613f | [
"MIT"
] | 552 | 2020-07-22T01:39:04.000Z | 2022-02-01T00:26:35.000Z | lib/workers/archive_stale_free_tier_conversations.ex | ZmagoD/papercups | dff9a5822b809edc4fd8ecf198566f9b14ab613f | [
"MIT"
] | 396 | 2020-07-22T19:27:48.000Z | 2022-03-31T05:25:24.000Z | defmodule ChatApi.Workers.ArchiveStaleFreeTierConversations do
use Oban.Worker, queue: :default
require Logger
alias ChatApi.Conversations
@impl Oban.Worker
def perform(%Oban.Job{} = _job) do
conversations_query = Conversations.query_free_tier_conversations_inactive_for(days: 30)
{n, _} = Conversat... | 25.833333 | 92 | 0.769892 |
3f82e3e799c042515eee51cdd3f62d6259b12973 | 607 | ex | Elixir | lib/drunkard_web/live_view/ingredient/show.ex | shaddysignal/drunkard | 8365c75cd98414dfe38481956e90dda26a177bdd | [
"Unlicense"
] | 2 | 2020-07-05T21:27:33.000Z | 2021-12-12T22:56:00.000Z | lib/drunkard_web/live_view/ingredient/show.ex | shaddysignal/drunkard | 8365c75cd98414dfe38481956e90dda26a177bdd | [
"Unlicense"
] | 1 | 2021-05-11T08:14:48.000Z | 2021-05-11T08:14:48.000Z | lib/drunkard_web/live_view/ingredient/show.ex | shaddysignal/drunkard | 8365c75cd98414dfe38481956e90dda26a177bdd | [
"Unlicense"
] | 1 | 2020-07-05T21:27:46.000Z | 2020-07-05T21:27:46.000Z | defmodule DrunkardWeb.LiveView.Ingredient.Show do
use Phoenix.LiveView
alias Drunkard.Recipes
def mount(_session, socket) do
{:ok, socket}
end
def render(assigns) do
Phoenix.View.render(DrunkardWeb.IngredientView, "show.html", assigns)
end
def handle_params(%{"uuid" => uuid} = _params, _uri, s... | 27.590909 | 95 | 0.728171 |
3f82ffc75da731af2c8a6654f2a71953cc7038ef | 3,022 | ex | Elixir | apps/tai/lib/tai/markets/process_quote.ex | chrism2671/tai-1 | 847827bd23908adfad4a82c83d5295bdbc022796 | [
"MIT"
] | null | null | null | apps/tai/lib/tai/markets/process_quote.ex | chrism2671/tai-1 | 847827bd23908adfad4a82c83d5295bdbc022796 | [
"MIT"
] | null | null | null | apps/tai/lib/tai/markets/process_quote.ex | chrism2671/tai-1 | 847827bd23908adfad4a82c83d5295bdbc022796 | [
"MIT"
] | 1 | 2020-05-03T23:32:11.000Z | 2020-05-03T23:32:11.000Z | defmodule Tai.Markets.ProcessQuote do
use GenServer
alias Tai.Markets.{Quote, PricePoint}
defmodule State do
@type market_quote :: Tai.Markets.Quote.t()
@type t :: %State{
market_quote: market_quote | nil,
depth: pos_integer
}
@enforce_keys ~w(market_quote depth)a
... | 31.479167 | 84 | 0.701853 |
3f832f629718c1a4d28c228bdd72640c3a78660d | 2,055 | ex | Elixir | apps/ranking/lib/ranking/coin.ex | alejandrodnm/ranking_poller | f7d231e928f1c467bfbffd8bab2b6947bdb0b87a | [
"MIT"
] | null | null | null | apps/ranking/lib/ranking/coin.ex | alejandrodnm/ranking_poller | f7d231e928f1c467bfbffd8bab2b6947bdb0b87a | [
"MIT"
] | null | null | null | apps/ranking/lib/ranking/coin.ex | alejandrodnm/ranking_poller | f7d231e928f1c467bfbffd8bab2b6947bdb0b87a | [
"MIT"
] | null | null | null | defmodule Ranking.Coin do
@moduledoc """
Represents a virtual coin.
"""
alias Persistence.Repo
alias Ranking.Quote
import Ecto.Changeset
import Ecto.Query
use Ecto.Schema
@primary_key false
schema "ranking_coin" do
field(:id, :id, primary_key: true)
field(:name, :string)
field(:slug, :... | 24.759036 | 82 | 0.623844 |
3f835e5b9872d19e5fae004aa4615e40a7284c58 | 1,121 | exs | Elixir | config/config.exs | CodeDraken/elixir-bank-formatter | 21666f22df12de270c8190bec9a456668a021313 | [
"MIT"
] | null | null | null | config/config.exs | CodeDraken/elixir-bank-formatter | 21666f22df12de270c8190bec9a456668a021313 | [
"MIT"
] | null | null | null | config/config.exs | CodeDraken/elixir-bank-formatter | 21666f22df12de270c8190bec9a456668a021313 | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on this project, this
# file won't be loaded nor affect the paren... | 36.16129 | 73 | 0.751115 |
3f8361faa9e6c2bca25e3249d32252f3da6955e6 | 1,196 | exs | Elixir | test/wave_test.exs | celaxodon/waverly | 976d818db3987bb44869fb5de1f72e700a59ad05 | [
"MIT"
] | null | null | null | test/wave_test.exs | celaxodon/waverly | 976d818db3987bb44869fb5de1f72e700a59ad05 | [
"MIT"
] | null | null | null | test/wave_test.exs | celaxodon/waverly | 976d818db3987bb44869fb5de1f72e700a59ad05 | [
"MIT"
] | null | null | null | defmodule WaveTest do
use ExUnit.Case, async: true
doctest Wave
test "error messages on missing files or non WAV files" do
assert {:error, "test/fake_data.wav does not exist"} == Wave.read("test/fake_data.wav")
assert {:error, "This library only accepts WAV files"} == Wave.read("README.md")
end
test... | 37.375 | 91 | 0.669732 |
3f837262aa259ba41ec151c73a7d0d8598c969f7 | 332 | ex | Elixir | apps/datapio_play/lib/datapio_play/step_logger_collectable.ex | datapio/opencore | 6e766c3b3a2ad8b07295c7fd27cffc0923284197 | [
"Apache-2.0"
] | 5 | 2021-05-14T22:01:08.000Z | 2021-09-21T16:28:09.000Z | apps/datapio_play/lib/datapio_play/step_logger_collectable.ex | datapio/opencore | 6e766c3b3a2ad8b07295c7fd27cffc0923284197 | [
"Apache-2.0"
] | 198 | 2019-10-17T12:22:25.000Z | 2022-03-16T02:14:14.000Z | apps/datapio_play/lib/datapio_play/step_logger_collectable.ex | datapio/opencore | 6e766c3b3a2ad8b07295c7fd27cffc0923284197 | [
"Apache-2.0"
] | 1 | 2022-03-10T08:54:36.000Z | 2022-03-10T08:54:36.000Z | defimpl Collectable, for: Datapio.Play.StepLogger do
def into(logger) do
collector_fun = fn
acc, {:cont, elem} ->
logger |> Datapio.Play.StepLogger.print(elem)
acc
acc, :done ->
acc
_, :halt ->
:ok
end
initial_acc = logger
{initial_acc, collector_fu... | 18.444444 | 53 | 0.575301 |
3f8373e86a8a378588e800ae8d10e25b86c5e2c0 | 317 | ex | Elixir | lib/publishex/upload_strategy/async.ex | maartenvanvliet/publishex | 57fb9b60a6f451119377d94d998eaaccc833dcd5 | [
"MIT"
] | 5 | 2019-08-19T12:56:35.000Z | 2020-05-18T08:21:26.000Z | lib/publishex/upload_strategy/async.ex | maartenvanvliet/publishex | 57fb9b60a6f451119377d94d998eaaccc833dcd5 | [
"MIT"
] | 44 | 2019-10-04T04:47:40.000Z | 2022-03-24T04:02:52.000Z | lib/publishex/upload_strategy/async.ex | maartenvanvliet/publishex | 57fb9b60a6f451119377d94d998eaaccc833dcd5 | [
"MIT"
] | null | null | null | defmodule Publishex.UploadStrategy.Async do
@moduledoc false
@behaviour Publishex.UploadStrategy
@impl true
def run(files, upload_file, opts \\ [max_concurrency: 10]) do
Task.async_stream(
files,
fn file ->
upload_file.(file)
end,
opts
)
|> Stream.run()
end
end
| 18.647059 | 63 | 0.637224 |
3f838e8394f824cb5b03b43aa03363caf3d8293f | 312 | exs | Elixir | apps/admin_api/test/admin_api/global/controllers/status_controller_test.exs | vanmil/ewallet | 6c1aca95a83e0a9d93007670a40d8c45764a8122 | [
"Apache-2.0"
] | null | null | null | apps/admin_api/test/admin_api/global/controllers/status_controller_test.exs | vanmil/ewallet | 6c1aca95a83e0a9d93007670a40d8c45764a8122 | [
"Apache-2.0"
] | null | null | null | apps/admin_api/test/admin_api/global/controllers/status_controller_test.exs | vanmil/ewallet | 6c1aca95a83e0a9d93007670a40d8c45764a8122 | [
"Apache-2.0"
] | null | null | null | defmodule AdminAPI.StatusControllerTest do
use AdminAPI.ConnCase, async: true
describe "GET request to /" do
test "returns status ok" do
response =
build_conn()
|> get(@base_dir <> "/")
|> json_response(:ok)
assert response == %{"success" => true}
end
end
end
| 20.8 | 45 | 0.602564 |
3f83c7075224c678fbac04911b7754fec3182b40 | 313 | exs | Elixir | priv/repo/migrations/20180709200146_create_attachments.exs | fobo66/vuetaba | 629514acd9680190085e35ec497b68191115e508 | [
"MIT"
] | 9 | 2019-04-10T12:30:20.000Z | 2020-09-07T15:07:02.000Z | priv/repo/migrations/20180709200146_create_attachments.exs | fobo66/vuetaba | 629514acd9680190085e35ec497b68191115e508 | [
"MIT"
] | 3 | 2019-10-28T10:39:06.000Z | 2020-09-30T21:56:31.000Z | priv/repo/migrations/20180709200146_create_attachments.exs | fobo66/vuetaba | 629514acd9680190085e35ec497b68191115e508 | [
"MIT"
] | null | null | null | defmodule Vuetaba.Repo.Migrations.CreateAttachments do
use Ecto.Migration
def change do
create table(:attachments) do
add :url, :string, size: 512
add :comment_id, references(:comments, on_delete: :nothing)
timestamps()
end
create index(:attachments, [:comment_id])
end
end
| 20.866667 | 65 | 0.693291 |
3f83d6b3f57b287e6f47749b42588277e64e93c6 | 229 | ex | Elixir | advent-of-code-2016/day_11/lib/algorithm/algorithm.ex | Tmw/advent-of-code-2016 | 575952c0b22e20a73f6f5f5beba0daf93612b29e | [
"MIT"
] | 1 | 2017-01-04T21:28:13.000Z | 2017-01-04T21:28:13.000Z | advent-of-code-2016/day_11/lib/algorithm/algorithm.ex | Tmw/advent-of-code-2016 | 575952c0b22e20a73f6f5f5beba0daf93612b29e | [
"MIT"
] | null | null | null | advent-of-code-2016/day_11/lib/algorithm/algorithm.ex | Tmw/advent-of-code-2016 | 575952c0b22e20a73f6f5f5beba0daf93612b29e | [
"MIT"
] | null | null | null | defmodule Day11.Algorithm do
@type optional_visited_mapset() :: list(any()) | nil
@type root :: list(State.t())
@callback search(root(), optional_visited_mapset()) ::
{:found, State.t()} | :end_not_found
end
| 28.625 | 56 | 0.646288 |
3f83e77e2f0ac3b8ef7f1e90eff8067037d5b9ec | 1,191 | ex | Elixir | web/controllers/result_controller.ex | Namuraid/backend | 04a10248bfeb156eb291207931621b40585d8f7e | [
"MIT"
] | null | null | null | web/controllers/result_controller.ex | Namuraid/backend | 04a10248bfeb156eb291207931621b40585d8f7e | [
"MIT"
] | null | null | null | web/controllers/result_controller.ex | Namuraid/backend | 04a10248bfeb156eb291207931621b40585d8f7e | [
"MIT"
] | null | null | null | defmodule Namuraid.ResultsController do
use Namuraid.Web, :controller
require Logger
def index(conn, _params) do
_render(conn)
end
def create(conn, %{"result" => %{"file" => uploadedFile} = _result
} = _params) do
csv = uploadedFile.path
|> File.stream!()
|> CSV.decode(separator: ?;)
... | 25.340426 | 95 | 0.542401 |
3f842545f187c7fda0d0dfdcd1c530b1bd35f95a | 1,931 | ex | Elixir | clients/ad_sense/lib/google_api/ad_sense/v2/model/ad_client_ad_code.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/ad_sense/lib/google_api/ad_sense/v2/model/ad_client_ad_code.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/ad_sense/lib/google_api/ad_sense/v2/model/ad_client_ad_code.ex | dazuma/elixir-google-api | 6a9897168008efe07a6081d2326735fe332e522c | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 36.433962 | 162 | 0.709995 |
3f843026679d54400dbeebe33fa4de3cbed3ef49 | 1,551 | exs | Elixir | test/ex338_web/views/layout_view_test.exs | axelclark/ex338 | 3fb3c260d93bda61f7636ee1a677770d2dc1b89a | [
"MIT"
] | 17 | 2016-12-22T06:39:26.000Z | 2021-01-20T13:51:13.000Z | test/ex338_web/views/layout_view_test.exs | axelclark/ex338 | 3fb3c260d93bda61f7636ee1a677770d2dc1b89a | [
"MIT"
] | 608 | 2016-08-06T18:57:58.000Z | 2022-03-01T02:48:17.000Z | test/ex338_web/views/layout_view_test.exs | axelclark/ex338 | 3fb3c260d93bda61f7636ee1a677770d2dc1b89a | [
"MIT"
] | 6 | 2017-11-21T22:35:45.000Z | 2022-01-11T21:37:40.000Z | defmodule Ex338Web.LayoutViewTest do
use Ex338Web.ConnCase, async: true
alias Ex338Web.LayoutView
alias Ex338.{FantasyLeagues.FantasyLeague}
@leagues [
%FantasyLeague{
id: 6,
navbar_display: :primary,
draft_method: :keeper,
division: "B",
year: 2018
},
%FantasyLeague{... | 21.541667 | 80 | 0.594455 |
3f8440e7e46cad6a54a1ce6f67ab5d75d16e2a43 | 2,328 | ex | Elixir | clients/games/lib/google_api/games/v1/model/player_score.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/games/lib/google_api/games/v1/model/player_score.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/games/lib/google_api/games/v1/model/player_score.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... | 38.8 | 272 | 0.712629 |
3f844a8cf1494777e99f5b8533786592215df4b6 | 850 | ex | Elixir | src/lib/harald/hci/commands/le_controller/set_advertising_enable.ex | keeplabs/harald | 1c273a47e224032996a744b79c0525cfa967e878 | [
"MIT"
] | 59 | 2019-02-16T00:09:58.000Z | 2020-03-29T23:37:36.000Z | src/lib/harald/hci/commands/le_controller/set_advertising_enable.ex | keeplabs/harald | 1c273a47e224032996a744b79c0525cfa967e878 | [
"MIT"
] | 19 | 2019-02-15T22:41:43.000Z | 2020-02-15T19:20:57.000Z | src/lib/harald/hci/commands/le_controller/set_advertising_enable.ex | keeplabs/harald | 1c273a47e224032996a744b79c0525cfa967e878 | [
"MIT"
] | 9 | 2020-05-07T00:02:36.000Z | 2021-09-17T18:17:46.000Z | defmodule Harald.HCI.Commands.LEController.SetAdvertisingEnable do
@moduledoc """
Reference: version 5.2, Vol 4, Part E, 7.8.9.
"""
alias Harald.HCI.{Commands.Command, ErrorCodes}
@behaviour Command
@impl Command
def decode(<<0>>), do: {:ok, %{advertising_enable: false}}
def decode(<<1>>), do: {:ok, ... | 25.757576 | 66 | 0.665882 |
3f8468710844759abb51757a5fc78d1e24b438c6 | 3,751 | exs | Elixir | test/xema/cast/decimal_test.exs | kianmeng/xema | a990d64fb4bcd708249514daa55426ee003da25d | [
"MIT"
] | 49 | 2018-06-05T09:42:19.000Z | 2022-02-15T12:50:51.000Z | test/xema/cast/decimal_test.exs | kianmeng/xema | a990d64fb4bcd708249514daa55426ee003da25d | [
"MIT"
] | 152 | 2017-06-11T13:43:06.000Z | 2022-01-09T17:13:45.000Z | test/xema/cast/decimal_test.exs | kianmeng/xema | a990d64fb4bcd708249514daa55426ee003da25d | [
"MIT"
] | 6 | 2019-05-31T05:41:47.000Z | 2021-12-14T08:09:36.000Z | defmodule Xema.Cast.DecimalTest do
use ExUnit.Case, async: true
alias Xema.CastError
import Xema, only: [cast: 2, cast!: 2]
@set [:foo, [42], [], {:tuple}]
describe "cast/2 with a time schema" do
setup do
%{schema: Xema.new({:struct, module: Decimal})}
end
test "from a decimal", %{schem... | 29.077519 | 84 | 0.585977 |
3f84756cc1494725de97f5fb331d7c94559edcfd | 2,039 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/rich_media_exit_override.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/rich_media_exit_override.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/rich_media_exit_override.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 38.471698 | 206 | 0.731241 |
3f847c9e565be885edfbf1d62b6c99730fc161ba | 57 | ex | Elixir | otapi/lib/otapi_web/views/page_view.ex | MauriceReeves-usds/OpenTransplant | c0196ff8bc5b914ce07502a4b7a760c508854804 | [
"Apache-2.0"
] | 32 | 2021-05-15T15:03:39.000Z | 2022-03-30T01:19:43.000Z | otapi/lib/otapi_web/views/page_view.ex | MauriceReeves-usds/OpenTransplant | c0196ff8bc5b914ce07502a4b7a760c508854804 | [
"Apache-2.0"
] | 3 | 2021-05-28T18:54:48.000Z | 2021-07-15T01:06:26.000Z | otapi/lib/otapi_web/views/page_view.ex | MauriceReeves-usds/OpenTransplant | c0196ff8bc5b914ce07502a4b7a760c508854804 | [
"Apache-2.0"
] | 1 | 2021-06-25T20:40:30.000Z | 2021-06-25T20:40:30.000Z | defmodule OtapiWeb.PageView do
use OtapiWeb, :view
end
| 14.25 | 30 | 0.789474 |
3f84b33f52eea371fd5486055f24d0f6a17ac63f | 1,156 | ex | Elixir | lib/livevox_web/endpoint.ex | justicedemocrats/livevox_layer | 2ead1d0ef7529e617de524391d3d19514815af18 | [
"MIT"
] | null | null | null | lib/livevox_web/endpoint.ex | justicedemocrats/livevox_layer | 2ead1d0ef7529e617de524391d3d19514815af18 | [
"MIT"
] | 1 | 2018-01-25T21:49:40.000Z | 2018-01-25T21:49:40.000Z | lib/livevox_web/endpoint.ex | justicedemocrats/livevox_layer | 2ead1d0ef7529e617de524391d3d19514815af18 | [
"MIT"
] | 2 | 2018-01-25T12:29:59.000Z | 2018-05-25T15:43:26.000Z | defmodule LivevoxWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :livevox
socket("/socket", LivevoxWeb.UserSocket)
# Code reloading can be explicitly enabled under the
# :code_reloader configuration of your endpoint.
if code_reloading? do
plug(Phoenix.CodeReloader)
end
plug(Plug.RequestId)
plug(Pl... | 22.666667 | 95 | 0.675606 |
3f84bfe237bbb15a2c16b481cbd1f4119bcf297d | 830 | exs | Elixir | test/ds_plug_test.exs | alex-strizhakov/ds | d1279a89f449cd9b6a0475c92ed5e7f2ca2727b1 | [
"MIT"
] | 1 | 2020-04-20T11:56:08.000Z | 2020-04-20T11:56:08.000Z | test/ds_plug_test.exs | alex-strizhakov/ds | d1279a89f449cd9b6a0475c92ed5e7f2ca2727b1 | [
"MIT"
] | null | null | null | test/ds_plug_test.exs | alex-strizhakov/ds | d1279a89f449cd9b6a0475c92ed5e7f2ca2727b1 | [
"MIT"
] | null | null | null | defmodule DSPlugTest do
use DS.UACase, async: true
use Plug.Test
alias DSPlug
@opts DSPlug.init([])
test "return device info in connection" do
ua =
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_3) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.0.3 Safari/605.1.15"
conn =
conn(:get,... | 23.714286 | 127 | 0.528916 |
3f84d2ecc81ee0c353f37e2441ab445ee9e59cfc | 1,815 | ex | Elixir | clients/poly/lib/google_api/poly/v1/model/quaternion.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/poly/lib/google_api/poly/v1/model/quaternion.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/poly/lib/google_api/poly/v1/model/quaternion.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... | 31.842105 | 195 | 0.688705 |
3f84d9e8c4a663b9a98b8af1fd087ca2b7d2155c | 1,868 | ex | Elixir | lib/glimesh_web/channels/api_socket.ex | itsUnsmart/glimesh.tv | 22c532184bb5046f6c6d8232e8bd66ba534c01c1 | [
"MIT"
] | null | null | null | lib/glimesh_web/channels/api_socket.ex | itsUnsmart/glimesh.tv | 22c532184bb5046f6c6d8232e8bd66ba534c01c1 | [
"MIT"
] | null | null | null | lib/glimesh_web/channels/api_socket.ex | itsUnsmart/glimesh.tv | 22c532184bb5046f6c6d8232e8bd66ba534c01c1 | [
"MIT"
] | null | null | null | defmodule GlimeshWeb.ApiSocket do
@moduledoc """
Allow for connections to the API socket with either an API token or a client id.
Client ID is for read API access only.
"""
use Phoenix.Socket
use Absinthe.Phoenix.Socket,
schema: Glimesh.Schema
@impl true
def connect(%{"client_id" => client_id}, s... | 27.470588 | 83 | 0.610814 |
3f84f8cd0ac6aa11b3d3bda4181d687aa0950498 | 12,339 | ex | Elixir | clients/sql_admin/lib/google_api/sql_admin/v1beta4/api/ssl_certs.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/sql_admin/lib/google_api/sql_admin/v1beta4/api/ssl_certs.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/sql_admin/lib/google_api/sql_admin/v1beta4/api/ssl_certs.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... | 43.755319 | 231 | 0.687333 |
3f851a4364f2a14e6ef1afab63c817c6eb921658 | 1,305 | ex | Elixir | lesson_03/demo/a_demo_umbrella/apps/a_demo_web/lib/a_demo_web/endpoint.ex | martijnmeeldijk/ip_major | 867f09975aa8db0b308081216ace639c5677446b | [
"BSD-3-Clause"
] | 1 | 2021-09-22T09:56:35.000Z | 2021-09-22T09:56:35.000Z | lesson_03/demo/a_demo_umbrella/apps/a_demo_web/lib/a_demo_web/endpoint.ex | martijnmeeldijk/ip_major | 867f09975aa8db0b308081216ace639c5677446b | [
"BSD-3-Clause"
] | 7 | 2020-03-14T19:30:29.000Z | 2022-02-27T01:20:40.000Z | lesson_03/demo/a_demo_umbrella/apps/a_demo_web/lib/a_demo_web/endpoint.ex | martijnmeeldijk/ip_major | 867f09975aa8db0b308081216ace639c5677446b | [
"BSD-3-Clause"
] | 11 | 2020-02-13T14:52:45.000Z | 2020-08-03T12:18:56.000Z | defmodule ADemoWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :a_demo_web
socket "/socket", ADemoWeb.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... | 27.765957 | 69 | 0.711111 |
3f8528023139f5e9058670ab875dd7f81b081365 | 1,358 | ex | Elixir | lib/grovepi/ultrasonic.ex | asummers/grovepi | 8092fd704457265929e4d9676bedd8cf2176f48d | [
"Apache-2.0"
] | null | null | null | lib/grovepi/ultrasonic.ex | asummers/grovepi | 8092fd704457265929e4d9676bedd8cf2176f48d | [
"Apache-2.0"
] | null | null | null | lib/grovepi/ultrasonic.ex | asummers/grovepi | 8092fd704457265929e4d9676bedd8cf2176f48d | [
"Apache-2.0"
] | null | null | null | defmodule GrovePi.Ultrasonic do
@moduledoc """
Read distance from the Grove Ultrasonic sensor.
Example use:
```
iex> pin = 3
iex> {:ok, pid} = GrovePi.Ultrasonic.start_link(pin)
{:ok, #PID<0.205.0>}
iex> GrovePi.Ultrasonic.read_distance(pin)
20
iex> GrovePi.Ultrasonic.read_distance(pin)
23
```
... | 25.148148 | 86 | 0.656112 |
3f85507bddec5d5b6e0faa13ee3035b30667fea0 | 92 | exs | Elixir | test/hipchat_logger_backend_test.exs | fbcouch/hipchat_logger_backend | 6e0eca8bb9973525d1a86dfd0b4b2b7dea3085c7 | [
"MIT"
] | null | null | null | test/hipchat_logger_backend_test.exs | fbcouch/hipchat_logger_backend | 6e0eca8bb9973525d1a86dfd0b4b2b7dea3085c7 | [
"MIT"
] | null | null | null | test/hipchat_logger_backend_test.exs | fbcouch/hipchat_logger_backend | 6e0eca8bb9973525d1a86dfd0b4b2b7dea3085c7 | [
"MIT"
] | null | null | null | defmodule HipchatLoggerBackendTest do
use ExUnit.Case
doctest HipchatLoggerBackend
end
| 15.333333 | 37 | 0.847826 |
3f85711cde1042a4f8db3b5a7dc72967fe8e753e | 8,754 | ex | Elixir | lib/legacy/agent-parser.ex | massivefermion/jsonc | ff63c816b0e6199ab112eb568fcade1440473834 | [
"Apache-2.0"
] | null | null | null | lib/legacy/agent-parser.ex | massivefermion/jsonc | ff63c816b0e6199ab112eb568fcade1440473834 | [
"Apache-2.0"
] | null | null | null | lib/legacy/agent-parser.ex | massivefermion/jsonc | ff63c816b0e6199ab112eb568fcade1440473834 | [
"Apache-2.0"
] | null | null | null | defmodule JSONC.AgentParser do
@moduledoc false
import JSONC.AgentTokenizer
def parse!(content) when is_binary(content) do
case parse(content) do
{:ok, result} ->
result
{:error, reason} ->
raise reason
end
end
def parse(content) when is_binary(content) do
case star... | 29.083056 | 105 | 0.437629 |
3f857b4683bf8ecb3ba797fe8013a498a43d4235 | 309 | exs | Elixir | priv/repo/migrations/20210308100416_create_users.exs | andsleonardo/magnemite | 2a06c1520defeb193d718313ad3fc6a50349bc8d | [
"MIT"
] | null | null | null | priv/repo/migrations/20210308100416_create_users.exs | andsleonardo/magnemite | 2a06c1520defeb193d718313ad3fc6a50349bc8d | [
"MIT"
] | null | null | null | priv/repo/migrations/20210308100416_create_users.exs | andsleonardo/magnemite | 2a06c1520defeb193d718313ad3fc6a50349bc8d | [
"MIT"
] | null | null | null | defmodule Magnemite.Repo.Migrations.CreateUsers do
use Ecto.Migration
def change do
create table(:users, primary_key: false) do
add :id, :uuid, primary_key: true
add :username, :string, null: false
add :encrypted_password, :string, null: false
timestamps()
end
end
end
| 22.071429 | 51 | 0.682848 |
3f85c12ae6e3c0450d87578fcbe61a0af0634a9e | 5,543 | ex | Elixir | lib/mix/phoenix.ex | misfo/phoenix | 04464429d9b958e331b2ffe0f0f5926690ab3b56 | [
"MIT"
] | 1 | 2021-03-14T17:50:24.000Z | 2021-03-14T17:50:24.000Z | lib/mix/phoenix.ex | misfo/phoenix | 04464429d9b958e331b2ffe0f0f5926690ab3b56 | [
"MIT"
] | null | null | null | lib/mix/phoenix.ex | misfo/phoenix | 04464429d9b958e331b2ffe0f0f5926690ab3b56 | [
"MIT"
] | 2 | 2020-08-02T04:00:17.000Z | 2020-10-07T16:07:37.000Z | defmodule Mix.Phoenix do
# Conveniences for Phoenix tasks.
@moduledoc false
@valid_attributes [:integer, :float, :decimal, :boolean, :map, :string,
:array, :references, :text, :date, :time, :datetime,
:uuid, :binary]
@doc """
Copies files from source dir to target d... | 27.715 | 91 | 0.596248 |
3f85d276ee54c38f889dd11ecc78382e6571e293 | 2,531 | ex | Elixir | lib/buildable/collectable.ex | eksperimental/buildable | cf6be3dee76bf6dab39517b58bfa5de441b05427 | [
"MIT"
] | 9 | 2021-01-02T07:29:14.000Z | 2021-12-20T01:34:34.000Z | lib/buildable/collectable.ex | eksperimental/buildable | cf6be3dee76bf6dab39517b58bfa5de441b05427 | [
"MIT"
] | null | null | null | lib/buildable/collectable.ex | eksperimental/buildable | cf6be3dee76bf6dab39517b58bfa5de441b05427 | [
"MIT"
] | 2 | 2021-11-07T19:42:31.000Z | 2021-11-07T19:43:02.000Z | defprotocol Buildable.Collectable do
@moduledoc """
A protocol to traverse data structures.
Collectable protocol used by [`buildables`](`t:Buildable.t/0`).
The `Build.into/2` and `Build.into/3` functions use this protocol to insert an [buildable](`t:Buildable.t/0`) or a [range](`t:Range.t/0`) into a [`buildab... | 25.059406 | 180 | 0.652706 |
3f85fd641666293592abc5139c3ab823f16a0f92 | 1,559 | ex | Elixir | lib/shareveiga2_web/views/error_helpers.ex | veigaribo/shareveiga | eb6a231ad1d449e5de41222176c88e8dae666f6f | [
"MIT"
] | null | null | null | lib/shareveiga2_web/views/error_helpers.ex | veigaribo/shareveiga | eb6a231ad1d449e5de41222176c88e8dae666f6f | [
"MIT"
] | null | null | null | lib/shareveiga2_web/views/error_helpers.ex | veigaribo/shareveiga | eb6a231ad1d449e5de41222176c88e8dae666f6f | [
"MIT"
] | null | null | null | defmodule Shareveiga2Web.ErrorHelpers do
@moduledoc """
Conveniences for translating and building error messages.
"""
use Phoenix.HTML
@doc """
Generates tag for inlined form input errors.
"""
def error_tag(form, field) do
Enum.map(Keyword.get_values(form.errors, field), fn error ->
content_... | 32.479167 | 80 | 0.667736 |
3f860364856d9c084266d0302196dbf3bde290df | 917 | ex | Elixir | integration/elistrix_remote/lib/elistrix_remote/endpoint.ex | tobz/elistrix | c9dd8a8369000492240969ada2b763433768aafa | [
"MIT"
] | 15 | 2015-05-05T07:22:23.000Z | 2019-08-16T12:08:56.000Z | integration/elistrix_remote/lib/elistrix_remote/endpoint.ex | tobz/elistrix | c9dd8a8369000492240969ada2b763433768aafa | [
"MIT"
] | null | null | null | integration/elistrix_remote/lib/elistrix_remote/endpoint.ex | tobz/elistrix | c9dd8a8369000492240969ada2b763433768aafa | [
"MIT"
] | null | null | null | defmodule ElistrixRemote.Endpoint do
use Phoenix.Endpoint, otp_app: :elistrix_remote
# 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: "/", from: :elistr... | 25.472222 | 65 | 0.712105 |
3f861dd59a3f0d306dd08467d7fbbe1714178d37 | 34,288 | exs | Elixir | test/axon_test.exs | kamidev/axon | 2db36f4142f6b1ee66e8b24f5c83fd2f95b49f5e | [
"Apache-2.0"
] | null | null | null | test/axon_test.exs | kamidev/axon | 2db36f4142f6b1ee66e8b24f5c83fd2f95b49f5e | [
"Apache-2.0"
] | null | null | null | test/axon_test.exs | kamidev/axon | 2db36f4142f6b1ee66e8b24f5c83fd2f95b49f5e | [
"Apache-2.0"
] | null | null | null | defmodule AxonTest do
use ExUnit.Case
doctest Axon
import AxonTestUtil
import Nx.Defn
describe "input" do
test "works with defaults" do
assert %Axon{op: :input, parent: []} = Axon.input({32, 1, 28, 28})
end
end
describe "constant" do
test "works with defaults" do
assert %Axon{op... | 37.887293 | 194 | 0.524848 |
3f8623d21c74843b06c3b43366ca9dc9d70cf321 | 40 | ex | Elixir | examples/helloworld.ex | vardivm/vardi | d94ce9ec6b005f099776f21fb491ab940b776f6e | [
"MIT"
] | null | null | null | examples/helloworld.ex | vardivm/vardi | d94ce9ec6b005f099776f21fb491ab940b776f6e | [
"MIT"
] | 1 | 2018-01-15T14:29:11.000Z | 2018-01-15T14:29:11.000Z | examples/helloworld.ex | vardivm/vardi | d94ce9ec6b005f099776f21fb491ab940b776f6e | [
"MIT"
] | null | null | null |
H
e
l
l
o
,
w
o
r
l
d
!
| 2.666667 | 2 | 0.25 |
3f862e904f94c2e49fe8c7087c116ab8f5bfc15a | 1,243 | exs | Elixir | apps/tai/priv/repo_templates/order_repo/migrations/20210423034544_create_orders.exs | ccamateur/tai | 41c4b3e09dafc77987fa3f6b300c15461d981e16 | [
"MIT"
] | 276 | 2018-01-16T06:36:06.000Z | 2021-03-20T21:48:01.000Z | apps/tai/priv/repo_templates/order_repo/migrations/20210423034544_create_orders.exs | ccamateur/tai | 41c4b3e09dafc77987fa3f6b300c15461d981e16 | [
"MIT"
] | 73 | 2018-10-05T18:45:06.000Z | 2021-02-08T05:46:33.000Z | apps/tai/priv/repo_templates/order_repo/migrations/20210423034544_create_orders.exs | ccamateur/tai | 41c4b3e09dafc77987fa3f6b300c15461d981e16 | [
"MIT"
] | 43 | 2018-06-09T09:54:51.000Z | 2021-03-07T07:35:17.000Z | defmodule Tai.Orders.OrderRepo.Migrations.CreateOrders do
use Ecto.Migration
def change do
create table(:orders, primary_key: false) do
add(:client_id, :uuid, null: false, primary_key: true)
add(:close, :boolean)
add(:credential, :string, null: false)
add(:cumulative_qty, :decimal, null... | 35.514286 | 64 | 0.658085 |
3f864d54411b9c890f51288146aa836e85b45606 | 8,549 | ex | Elixir | web/controllers/controller_helpers.ex | harmon25/coherence | 5c4f26d3c87f6a16638adf623d041e2723ccf2b8 | [
"MIT"
] | 1 | 2022-03-06T16:30:21.000Z | 2022-03-06T16:30:21.000Z | web/controllers/controller_helpers.ex | ysbaddaden/coherence | 5c4f26d3c87f6a16638adf623d041e2723ccf2b8 | [
"MIT"
] | null | null | null | web/controllers/controller_helpers.ex | ysbaddaden/coherence | 5c4f26d3c87f6a16638adf623d041e2723ccf2b8 | [
"MIT"
] | 2 | 2017-09-22T16:54:36.000Z | 2021-11-09T20:55:58.000Z | defmodule Coherence.ControllerHelpers do
@moduledoc """
Common helper functions for Coherence Controllers.
"""
alias Coherence.Config
require Logger
import Phoenix.Controller, only: [put_flash: 3, redirect: 2, put_layout: 2, put_view: 2]
import Plug.Conn, only: [halt: 1]
alias Coherence.{ConfirmableServ... | 28.401993 | 110 | 0.673529 |
3f86590c2062c768feb8418cda9a5bfe267cce2b | 19,094 | exs | Elixir | deps/ecto/integration_test/cases/assoc.exs | hallebadkapp/rumbl-ms | ae2ef9975658115f8c4d5c49c28d8bde00a74b83 | [
"MIT"
] | null | null | null | deps/ecto/integration_test/cases/assoc.exs | hallebadkapp/rumbl-ms | ae2ef9975658115f8c4d5c49c28d8bde00a74b83 | [
"MIT"
] | null | null | null | deps/ecto/integration_test/cases/assoc.exs | hallebadkapp/rumbl-ms | ae2ef9975658115f8c4d5c49c28d8bde00a74b83 | [
"MIT"
] | null | null | null | Code.require_file "../support/types.exs", __DIR__
defmodule Ecto.Integration.AssocTest do
use Ecto.Integration.Case, async: Application.get_env(:ecto, :async_integration_tests, true)
alias Ecto.Integration.TestRepo
import Ecto.Query
alias Ecto.Integration.Custom
alias Ecto.Integration.Post
alias Ecto.Int... | 32.583618 | 94 | 0.620247 |
3f866002aed86a3633bfd8e404a43c57aee7eec6 | 4,491 | exs | Elixir | test/clients/jira/jira_test.exs | MatthewNielsen27/memo_generator | d11f6a7d6c2da3bbc21895c7ee8849f089b05492 | [
"MIT"
] | null | null | null | test/clients/jira/jira_test.exs | MatthewNielsen27/memo_generator | d11f6a7d6c2da3bbc21895c7ee8849f089b05492 | [
"MIT"
] | null | null | null | test/clients/jira/jira_test.exs | MatthewNielsen27/memo_generator | d11f6a7d6c2da3bbc21895c7ee8849f089b05492 | [
"MIT"
] | null | null | null | defmodule MemoGenerator.Clients.JiraTest do
use ExUnit.Case
import Tesla.Mock
@clean_issue %{
"comments" => [
%{
"avatar" => "https://jira.lblw.cloud/secure/useravatar?ownerId=yuxuan.hu&avatarId=25419",
"body" =>
"I believe is the query that jeanie use is outdated. Need to con... | 27.552147 | 109 | 0.512581 |
3f8677163e7f74f8e8ae89bab133bd074c9b4c0a | 1,820 | ex | Elixir | test/support/model_case.ex | jeojoe/catapalt-chat | 1a8c94bb38535d517837e1e9c53d2e8de0f2b7ae | [
"Apache-2.0"
] | null | null | null | test/support/model_case.ex | jeojoe/catapalt-chat | 1a8c94bb38535d517837e1e9c53d2e8de0f2b7ae | [
"Apache-2.0"
] | null | null | null | test/support/model_case.ex | jeojoe/catapalt-chat | 1a8c94bb38535d517837e1e9c53d2e8de0f2b7ae | [
"Apache-2.0"
] | null | null | null | defmodule CatapaltChat.ModelCase do
@moduledoc """
This module defines the test case to be used by
model tests.
You may define functions here to be used as helpers in
your model tests. See `errors_on/2`'s definition as reference.
Finally, if the test case interacts with the database,
it cannot be async.... | 27.575758 | 84 | 0.69011 |
3f86879d2f8d5a7eafa4a10ddff16e13ef0037a7 | 1,066 | exs | Elixir | apps/pingring/mix.exs | kanatohodets/phoenix-ricor-kv | cae24fd7fcbf7575241d2e541cc37c882c692d50 | [
"MIT"
] | 21 | 2016-06-25T16:10:16.000Z | 2021-04-03T05:06:07.000Z | apps/pingring/mix.exs | kanatohodets/ping-ring | cae24fd7fcbf7575241d2e541cc37c882c692d50 | [
"MIT"
] | 1 | 2016-12-09T20:01:34.000Z | 2016-12-09T23:06:03.000Z | apps/pingring/mix.exs | kanatohodets/ping-ring | cae24fd7fcbf7575241d2e541cc37c882c692d50 | [
"MIT"
] | 3 | 2016-10-10T16:52:40.000Z | 2018-01-25T16:44:55.000Z | defmodule Pingring.Mixfile do
use Mix.Project
def project do
[app: :pingring,
version: "0.0.1",
build_path: "../../_build",
config_path: "../../config/config.exs",
deps_path: "../../deps",
lockfile: "../../mix.lock",
elixir: "~> 1.0",
elixirc_paths: elixirc_paths(Mix.env),
... | 26 | 63 | 0.596623 |
3f86a7a65e9010c27d7bb694d07ae50b5151b72f | 150 | exs | Elixir | config/config.exs | hpopp/tarot-cup | cc358145d35e7a0cee2ea68ce00e2e374b83ab11 | [
"MIT"
] | 1 | 2020-12-31T22:23:00.000Z | 2020-12-31T22:23:00.000Z | config/config.exs | hpopp/tarot-cup | cc358145d35e7a0cee2ea68ce00e2e374b83ab11 | [
"MIT"
] | null | null | null | config/config.exs | hpopp/tarot-cup | cc358145d35e7a0cee2ea68ce00e2e374b83ab11 | [
"MIT"
] | null | null | null | import Config
config :logger, :console,
format: "$time $metadata[$level] $message\n",
metadata: [:request_id]
import_config("#{Mix.env()}.exs")
| 18.75 | 47 | 0.68 |
3f86a9639cc33dd4b563a311eaac19e87d25141f | 22,633 | exs | Elixir | test/broadway_rabbitmq/producer_test.exs | dashbitco/broadway_rabbitmq | 054b2b9dbdf78f98ec9f33fc0a4a701999377953 | [
"Apache-2.0"
] | 91 | 2020-01-22T11:07:51.000Z | 2022-03-30T08:39:15.000Z | test/broadway_rabbitmq/producer_test.exs | dashbitco/broadway_rabbitmq | 054b2b9dbdf78f98ec9f33fc0a4a701999377953 | [
"Apache-2.0"
] | 55 | 2020-01-24T17:11:29.000Z | 2022-03-24T15:14:28.000Z | test/broadway_rabbitmq/producer_test.exs | dashbitco/broadway_rabbitmq | 054b2b9dbdf78f98ec9f33fc0a4a701999377953 | [
"Apache-2.0"
] | 31 | 2020-01-24T17:01:52.000Z | 2022-03-19T13:17:17.000Z | defmodule BroadwayRabbitMQ.ProducerTest do
use ExUnit.Case
import ExUnit.CaptureLog
import ExUnit.CaptureIO
alias Broadway.Message
alias BroadwayRabbitMQ.Producer
defmodule FakeChannel do
use GenServer
def new(test_pid) do
fake_connection_pid = spawn(fn -> Process.sleep(:infinity) end)
... | 28.831847 | 110 | 0.637388 |
3f86b3903d275136d66e2aaf2eb3a47927f58c4f | 1,519 | ex | Elixir | clients/webmaster/lib/google_api/webmaster/v3/model/sitemaps_list_response.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/webmaster/lib/google_api/webmaster/v3/model/sitemaps_list_response.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/webmaster/lib/google_api/webmaster/v3/model/sitemaps_list_response.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.645833 | 127 | 0.758394 |
3f86cec7e29265eafa37d6f9d42d2b6fa6128ac6 | 18,628 | ex | Elixir | lib/ecto/repo.ex | rbishop/ecto | a8a3215c9e2e35f7556f54c8d47d78a3670796d8 | [
"Apache-2.0"
] | null | null | null | lib/ecto/repo.ex | rbishop/ecto | a8a3215c9e2e35f7556f54c8d47d78a3670796d8 | [
"Apache-2.0"
] | null | null | null | lib/ecto/repo.ex | rbishop/ecto | a8a3215c9e2e35f7556f54c8d47d78a3670796d8 | [
"Apache-2.0"
] | null | null | null | defmodule Ecto.Repo do
@moduledoc """
Defines a repository.
A repository maps to an underlying data store, controlled by the
adapter. For example, Ecto ships with a Postgres adapter that
stores data into a PostgreSQL database.
When used, the repository expects the `:otp_app` as option.
The `:otp_app` sh... | 31.046667 | 95 | 0.663517 |
3f86cfe06a9aa8311650b351121e4b7c2984fdc2 | 1,772 | exs | Elixir | test/crit_biz/view_models/setup/animal_vm_4_update_test.exs | brownt23/crit19 | c45c7b3ae580c193168d83144da0eeb9bc91c8a9 | [
"MIT"
] | 6 | 2019-07-16T19:31:23.000Z | 2021-06-05T19:01:05.000Z | test/crit_biz/view_models/setup/animal_vm_4_update_test.exs | brownt23/crit19 | c45c7b3ae580c193168d83144da0eeb9bc91c8a9 | [
"MIT"
] | null | null | null | test/crit_biz/view_models/setup/animal_vm_4_update_test.exs | brownt23/crit19 | c45c7b3ae580c193168d83144da0eeb9bc91c8a9 | [
"MIT"
] | 3 | 2020-02-24T23:38:27.000Z | 2020-08-01T23:50:17.000Z | defmodule CritBiz.ViewModels.Setup.AnimalVM.UpdateTest do
use Crit.DataCase, async: true
alias CritBiz.ViewModels.Setup, as: VM
alias Crit.Schemas
alias Crit.Exemplars, as: Ex
import Crit.RepoState
alias Ecto.Changeset
setup do
repo =
Ex.Bossie.create
|> animal("Not_bossie")
[repo: r... | 31.087719 | 80 | 0.660835 |
3f86da40352b2bbac9f7544971cdbec40c115e0e | 4,223 | exs | Elixir | test/file_top_to_bottom_test.exs | iautom8things/nicene | f3c7bdd7dbc678610c8a1dcb58eb0a89190f34d9 | [
"MIT"
] | 34 | 2020-01-16T09:55:27.000Z | 2021-11-12T12:09:19.000Z | test/file_top_to_bottom_test.exs | iautom8things/nicene | f3c7bdd7dbc678610c8a1dcb58eb0a89190f34d9 | [
"MIT"
] | 21 | 2020-02-06T09:08:29.000Z | 2021-04-12T12:57:23.000Z | test/file_top_to_bottom_test.exs | iautom8things/nicene | f3c7bdd7dbc678610c8a1dcb58eb0a89190f34d9 | [
"MIT"
] | 9 | 2020-01-27T10:46:45.000Z | 2021-02-22T19:27:09.000Z | defmodule Nicene.FileTopToBottomTest do
use Assertions.Case
alias Credo.{Issue, SourceFile}
alias Nicene.FileTopToBottom
test "warns with files that don't read top to bottom" do
"""
defmodule App.File do
def test_2(), do: test_3()
def test() do
IO.inspect("IN HERE")
test_... | 20.109524 | 95 | 0.545821 |
3f86ec1f21ad57d4a43cbfc14ab644a05edd99f2 | 911 | ex | Elixir | test/support/conn_case.ex | mirego/dispatch | 65f81e264e45676ece8a6dc5f203cf9f283d6ec7 | [
"BSD-3-Clause"
] | 21 | 2019-02-13T15:26:00.000Z | 2021-09-18T13:05:42.000Z | test/support/conn_case.ex | mirego/dispatch | 65f81e264e45676ece8a6dc5f203cf9f283d6ec7 | [
"BSD-3-Clause"
] | 26 | 2019-02-13T18:42:44.000Z | 2021-09-16T15:40:05.000Z | test/support/conn_case.ex | mirego/dispatch | 65f81e264e45676ece8a6dc5f203cf9f283d6ec7 | [
"BSD-3-Clause"
] | 2 | 2020-05-26T09:09:19.000Z | 2021-04-21T20:43:07.000Z | defmodule DispatchWeb.ConnCase do
@moduledoc """
This module defines the test case to be used by
tests that require setting up a connection.
Such tests rely on `Phoenix.ConnTest` and also
import other functionality to make it easier
to build common datastructures and query the data layer.
Finally, if th... | 25.305556 | 58 | 0.732162 |
3f872886a8d14c31fbec3bf5c382a0ce32d4e3a6 | 975 | ex | Elixir | clients/cloud_shell/lib/google_api/cloud_shell/v1/deserializer.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/cloud_shell/lib/google_api/cloud_shell/v1/deserializer.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/cloud_shell/lib/google_api/cloud_shell/v1/deserializer.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... | 37.5 | 77 | 0.766154 |
3f877efe870bda459ca7491733348d36cedb453e | 2,587 | ex | Elixir | clients/smart_device_management/lib/google_api/smart_device_management/v1/model/google_home_enterprise_sdm_v1_device.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/smart_device_management/lib/google_api/smart_device_management/v1/model/google_home_enterprise_sdm_v1_device.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/smart_device_management/lib/google_api/smart_device_management/v1/model/google_home_enterprise_sdm_v1_device.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"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.492754 | 299 | 0.721299 |
3f8782db362acfca84addd4a3e466315065cd370 | 326 | exs | Elixir | priv/repo/migrations/20150624143541_siglist.exs | houshuang/survey | 948acaf20840af82af1d9af3147acca94cb4fcf8 | [
"Apache-2.0"
] | 48 | 2015-06-29T21:20:25.000Z | 2021-05-09T04:27:41.000Z | priv/repo/migrations/20150624143541_siglist.exs | houshuang/survey | 948acaf20840af82af1d9af3147acca94cb4fcf8 | [
"Apache-2.0"
] | null | null | null | priv/repo/migrations/20150624143541_siglist.exs | houshuang/survey | 948acaf20840af82af1d9af3147acca94cb4fcf8 | [
"Apache-2.0"
] | 15 | 2015-06-29T21:13:57.000Z | 2021-07-27T10:02:40.000Z | defmodule Survey.Repo.Migrations.SigList do
use Ecto.Migration
def up do
Survey.Repo.delete_all(Survey.SIG)
File.stream!("data/sigs.txt")
|> Stream.map(&String.strip/1)
|> Enum.each(&add_sig/1)
end
def down do
end
def add_sig(sig) do
%Survey.SIG{name: sig} |> Survey.Repo.insert!
end... | 17.157895 | 49 | 0.662577 |
3f8786aba5998753ff6024cef608713ca1b9ce70 | 1,360 | exs | Elixir | config/config.exs | thebookofeveryone/cqrex | 0c5829e5fd21db5df53c4d3b93ea7a0975cdce3d | [
"MIT"
] | 6 | 2016-05-19T12:36:40.000Z | 2017-03-05T19:01:11.000Z | config/config.exs | thebookofeveryone/cqrs-elixir | 0c5829e5fd21db5df53c4d3b93ea7a0975cdce3d | [
"MIT"
] | 5 | 2016-05-23T09:30:22.000Z | 2016-05-23T09:35:47.000Z | config/config.exs | thebookofeveryone/cqrs-elixir | 0c5829e5fd21db5df53c4d3b93ea7a0975cdce3d | [
"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
config :cqrex, Cqrex.PostgresRepo,
adapter: Ecto.Adapters.Postgres,
database: "postgres",
username: "postgres",
password: "postgres",
hostname: "192.168.99.100"
config :cq... | 32.380952 | 73 | 0.741912 |
3f878a19a7f604956accd842256e8636121a08cd | 958 | exs | Elixir | mix.exs | ChrisYammine/ex_zen_hub | 79a5f216470d90355fb456a62cac5ae263c142bc | [
"MIT"
] | 2 | 2017-03-15T00:30:52.000Z | 2017-03-15T17:50:43.000Z | mix.exs | ChrisYammine/ex_zenhub | 79a5f216470d90355fb456a62cac5ae263c142bc | [
"MIT"
] | 11 | 2017-03-15T21:54:31.000Z | 2017-03-16T19:23:49.000Z | mix.exs | ChrisYammine/ex_zenhub | 79a5f216470d90355fb456a62cac5ae263c142bc | [
"MIT"
] | null | null | null | defmodule ExZenHub.Mixfile do
use Mix.Project
def project do
[app: :ex_zenhub,
version: "0.1.1",
elixir: "~> 1.4",
description: "Unofficial Elixir client for the ZenHub API",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
test_coverage: [tool: ExCoveralls],
... | 25.210526 | 97 | 0.56785 |
3f8790257d13890ece39c1a88389a415dcfa49ee | 5,151 | ex | Elixir | lib/ex_platform_web/controllers/user_auth.ex | joseph-lozano/ex_platform | 55208dfc50e1bd1ed232141798579fdcb6fc54af | [
"MIT"
] | null | null | null | lib/ex_platform_web/controllers/user_auth.ex | joseph-lozano/ex_platform | 55208dfc50e1bd1ed232141798579fdcb6fc54af | [
"MIT"
] | null | null | null | lib/ex_platform_web/controllers/user_auth.ex | joseph-lozano/ex_platform | 55208dfc50e1bd1ed232141798579fdcb6fc54af | [
"MIT"
] | null | null | null | defmodule ExPlatformWeb.UserAuth do
@moduledoc """
User authentication controller utilities, login and session management.
"""
import Plug.Conn
use ExPlatform.Controller
import ExPlatformWeb.Gettext
alias ExPlatform.Accounts
alias ExPlatformWeb.Router.Helpers, as: Routes
# Make the remember me co... | 29.947674 | 88 | 0.685692 |
3f87958a9e96a13833c5a72ac1706aceeb1fcb76 | 1,533 | exs | Elixir | mix.exs | cwc/monero_ex | 6c63513ef2770c74c0bd840877732c54ad8678d8 | [
"Unlicense",
"MIT"
] | null | null | null | mix.exs | cwc/monero_ex | 6c63513ef2770c74c0bd840877732c54ad8678d8 | [
"Unlicense",
"MIT"
] | null | null | null | mix.exs | cwc/monero_ex | 6c63513ef2770c74c0bd840877732c54ad8678d8 | [
"Unlicense",
"MIT"
] | null | null | null | defmodule Monero.Mixfile do
use Mix.Project
def project do
[
app: :monero,
version: version(),
elixir: "~> 1.5",
start_permanent: Mix.env == :prod,
elixirc_paths: elixirc_paths(Mix.env),
package: package(),
deps: deps(),
test_coverage: [tool: ExCoveralls],
... | 26.431034 | 123 | 0.524462 |
3f879bfb211ac1df567bb92fc5a0b29f479e2f7e | 732 | ex | Elixir | lib/teslamate_web/controllers/drive_controller.ex | tlj/teslamate | 2360f3d0d4e9942c37cee79e9dbc246ae910e1b4 | [
"MIT"
] | null | null | null | lib/teslamate_web/controllers/drive_controller.ex | tlj/teslamate | 2360f3d0d4e9942c37cee79e9dbc246ae910e1b4 | [
"MIT"
] | null | null | null | lib/teslamate_web/controllers/drive_controller.ex | tlj/teslamate | 2360f3d0d4e9942c37cee79e9dbc246ae910e1b4 | [
"MIT"
] | null | null | null | defmodule TeslaMateWeb.DriveController do
use TeslaMateWeb, :controller
require Logger
import Ecto.Query
alias TeslaMate.Log.Drive
alias TeslaMate.Repo
def gpx(conn, %{"id" => id}) do
drive =
Drive
|> Repo.get(id)
|> Repo.preload(positions: from(p in TeslaMate.Log.Position, order_by:... | 24.4 | 85 | 0.659836 |
3f879c9350d921bb56fa5a4acb4fb45469fbb4ee | 3,010 | exs | Elixir | lib/mix/test/mix/cli_test.exs | enokd/elixir | e39b32f235082b8a29fcb22d250c822cca98609f | [
"Apache-2.0"
] | 1 | 2015-11-12T19:23:45.000Z | 2015-11-12T19:23:45.000Z | lib/mix/test/mix/cli_test.exs | enokd/elixir | e39b32f235082b8a29fcb22d250c822cca98609f | [
"Apache-2.0"
] | null | null | null | lib/mix/test/mix/cli_test.exs | enokd/elixir | e39b32f235082b8a29fcb22d250c822cca98609f | [
"Apache-2.0"
] | null | null | null | Code.require_file "../test_helper.exs", __DIR__
defmodule Mix.CLITest do
use MixTest.Case
test "env" do
in_fixture "only_mixfile", fn ->
if match? { :win32, _ }, :os.type do
temp_env = "set MIX_ENV=prod &"
else
temp_env = "MIX_ENV=prod"
end
env = System.cmd ~s(#{temp_e... | 26.637168 | 131 | 0.601661 |
3f87d9da2536a3f660fc6295481c14b98741a237 | 775 | exs | Elixir | test/fixtures/pre_init/mix.exs | nerves-project-attic/bootloader | 685ddff0641ee9287c8725bade822f9b5587b5a1 | [
"Apache-2.0"
] | 10 | 2017-06-13T00:20:01.000Z | 2019-08-02T13:52:51.000Z | test/fixtures/pre_init/mix.exs | nerves-project-attic/bootloader | 685ddff0641ee9287c8725bade822f9b5587b5a1 | [
"Apache-2.0"
] | 6 | 2017-06-12T18:49:21.000Z | 2017-09-20T16:31:26.000Z | test/fixtures/pre_init/mix.exs | mobileoverlord/bootloader | 685ddff0641ee9287c8725bade822f9b5587b5a1 | [
"Apache-2.0"
] | 1 | 2021-01-10T01:09:45.000Z | 2021-01-10T01:09:45.000Z | defmodule PreInit.Mixfile do
use Mix.Project
def project do
[app: :pre_init,
version: "0.1.0",
elixir: "~> 1.4",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps()]
end
# Configuration for the OTP application
#
# Type "mix help compile.app" for m... | 22.794118 | 79 | 0.616774 |
3f87e18c2f91281ec2404240f5a80b1e844cb658 | 3,579 | ex | Elixir | apps/fping/lib/fping/server.ex | lowlandresearch/kudzu | f65da5061c436afb114a2e95bc6d115b6ec7be53 | [
"MIT"
] | null | null | null | apps/fping/lib/fping/server.ex | lowlandresearch/kudzu | f65da5061c436afb114a2e95bc6d115b6ec7be53 | [
"MIT"
] | 4 | 2020-05-16T16:05:33.000Z | 2020-05-16T19:52:12.000Z | apps/fping/lib/fping/server.ex | lowlandresearch/kudzu | f65da5061c436afb114a2e95bc6d115b6ec7be53 | [
"MIT"
] | null | null | null | defmodule Fping.Server do
use GenServer
require Logger
def start_link(opts) do
GenServer.start_link(__MODULE__, :ok, opts)
end
# ------------------------------------------------------------
# Client API
# ------------------------------------------------------------
def fetch(name) do
GenServe... | 24.682759 | 74 | 0.540933 |
3f87e2a5d3e01e04aa1f607aa8a1a30e30cfe845 | 1,250 | ex | Elixir | lib/rasa_sdk/model/event.ex | r26D/rasa-sdk-elixir | 65da9444add5da2e2c0989c36bcbdf902733c709 | [
"Apache-2.0"
] | 2 | 2020-09-24T09:58:52.000Z | 2021-02-08T12:35:55.000Z | lib/rasa_sdk/model/event.ex | r26D/rasa-sdk-elixir | 65da9444add5da2e2c0989c36bcbdf902733c709 | [
"Apache-2.0"
] | null | null | null | lib/rasa_sdk/model/event.ex | r26D/rasa-sdk-elixir | 65da9444add5da2e2c0989c36bcbdf902733c709 | [
"Apache-2.0"
] | null | null | null | defmodule RasaSDK.Model.Event do
@moduledoc """
"""
@derive [Poison.Encoder]
defstruct [
:event,
:timestamp,
:name,
:policy,
:confidence,
:text,
:data,
:parse_data,
:input_channel,
]
@type t :: %__MODULE__{
event: String.t(),
timestamp: i... | 25 | 99 | 0.6016 |
3f87f981f0ace42ae7b09fef5263c7836c0e781d | 2,560 | exs | Elixir | mix.exs | dkuku/nerves_system_orangepi_pc | 1a824c20ca13bf4cb27172d142487ddf51e6506a | [
"Apache-2.0"
] | null | null | null | mix.exs | dkuku/nerves_system_orangepi_pc | 1a824c20ca13bf4cb27172d142487ddf51e6506a | [
"Apache-2.0"
] | null | null | null | mix.exs | dkuku/nerves_system_orangepi_pc | 1a824c20ca13bf4cb27172d142487ddf51e6506a | [
"Apache-2.0"
] | null | null | null | defmodule NervesSystemOpiPC.MixProject do
use Mix.Project
@app :nerves_system_orangepi_pc
@version Path.join(__DIR__, "VERSION")
|> File.read!()
|> String.trim()
def project do
[
app: @app,
version: @version,
elixir: "~> 1.6",
compilers: Mix.compilers() ++ [:n... | 22.26087 | 79 | 0.578125 |
3f8858a05e1745e4e1e1bad5086a47a8665b7bea | 2,265 | ex | Elixir | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v2beta1/model/callout_status_row.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v2beta1/model/callout_status_row.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v2beta1/model/callout_status_row.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.735849 | 187 | 0.77351 |
3f885ad81a3574a1844223167f0ee19843fa4f5e | 333 | ex | Elixir | lib/mix/lib/mix/tasks/archive.uninstall.ex | tmbb/exdocs_makedown_demo | 6a0039c54d2fa10d79c080efcef8d70d359678f8 | [
"Apache-2.0"
] | 1 | 2017-07-25T21:46:25.000Z | 2017-07-25T21:46:25.000Z | lib/mix/lib/mix/tasks/archive.uninstall.ex | tmbb/exdocs_makedown_demo | 6a0039c54d2fa10d79c080efcef8d70d359678f8 | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/tasks/archive.uninstall.ex | tmbb/exdocs_makedown_demo | 6a0039c54d2fa10d79c080efcef8d70d359678f8 | [
"Apache-2.0"
] | 1 | 2017-07-25T21:46:48.000Z | 2017-07-25T21:46:48.000Z | defmodule Mix.Tasks.Archive.Uninstall do
use Mix.Task
@shortdoc "Uninstalls archives"
@moduledoc """
Uninstalls local archives.
mix archive.uninstall archive.ez
"""
@spec run(OptionParser.argv) :: :ok
def run(argv) do
Mix.Local.Installer.uninstall(Mix.Local.path_for(:archive), "archive", arg... | 19.588235 | 80 | 0.702703 |
3f886b65ff49bbfbfbd0679770e82ed325fdb0e1 | 332 | ex | Elixir | lib/commcare_api/commcare_client_behaviour.ex | RatioPBC/commcare_api | 94e6056521565a8d86269920a566a06cdf376645 | [
"Apache-2.0"
] | null | null | null | lib/commcare_api/commcare_client_behaviour.ex | RatioPBC/commcare_api | 94e6056521565a8d86269920a566a06cdf376645 | [
"Apache-2.0"
] | null | null | null | lib/commcare_api/commcare_client_behaviour.ex | RatioPBC/commcare_api | 94e6056521565a8d86269920a566a06cdf376645 | [
"Apache-2.0"
] | null | null | null | defmodule CommcareAPI.CommcareClientBehaviour do
@moduledoc """
Provides a mockable interface for the CommcareClient.
"""
@callback get_case(
commcare_domain :: String.t(),
case_id :: String.t(),
config :: CommcareAPI.Config.t()
) :: {:ok, map()} | {:error, ... | 30.181818 | 55 | 0.581325 |
3f88788ff5de3d7e0eb57b30710a28772f3fd797 | 4,423 | exs | Elixir | test/time_zone_info/data_config_test.exs | hrzndhrn/time_zone_info | 18fa4e7aefd68d256202de8e0f96b69b8a9dc618 | [
"MIT"
] | 5 | 2020-04-05T16:03:03.000Z | 2022-02-07T22:11:04.000Z | test/time_zone_info/data_config_test.exs | hrzndhrn/time_zone_info | 18fa4e7aefd68d256202de8e0f96b69b8a9dc618 | [
"MIT"
] | 16 | 2020-03-28T17:46:13.000Z | 2021-08-25T08:35:48.000Z | test/time_zone_info/data_config_test.exs | hrzndhrn/time_zone_info | 18fa4e7aefd68d256202de8e0f96b69b8a9dc618 | [
"MIT"
] | null | null | null | defmodule TimeZoneInfo.DataConfigTest do
use ExUnit.Case
alias TimeZoneInfo.{
DataConfig,
ExternalTermFormat
}
setup_all do
{:ok, data} =
"test/fixtures/data/2019c/data.etf"
|> File.read!()
|> ExternalTermFormat.decode()
%{data: data}
end
describe "update/2" do
test... | 31.592857 | 73 | 0.495139 |
3f8880b8c3debeebdb2a0f216211200422d7fb63 | 1,761 | ex | Elixir | apps/re_integrations/lib/google/calendars/calendars.ex | ruby2elixir/emcasa-backend | 70d7f4f233555417941ffa6ada84cf8740c21dd2 | [
"MIT"
] | 4 | 2019-11-01T16:29:31.000Z | 2020-10-10T21:20:12.000Z | apps/re_integrations/lib/google/calendars/calendars.ex | eduardomartines/emcasa-backend | 70d7f4f233555417941ffa6ada84cf8740c21dd2 | [
"MIT"
] | null | null | null | apps/re_integrations/lib/google/calendars/calendars.ex | eduardomartines/emcasa-backend | 70d7f4f233555417941ffa6ada84cf8740c21dd2 | [
"MIT"
] | 5 | 2019-11-04T21:25:45.000Z | 2020-02-13T23:49:36.000Z | defmodule ReIntegrations.Google.Calendars do
@moduledoc """
Module for handling requests on google calendars throught google's api
"""
alias GoogleApi.Calendar.V3.{
Api,
Connection,
Model
}
alias Re.{
Calendars,
Calendars.Calendar
}
@token Application.get_env(:re_integrations, :got... | 27.515625 | 79 | 0.679727 |
3f888f5119376e82333378c74dad5c531459c8da | 8,452 | exs | Elixir | test/cocktail/monthly_test.exs | good-monday/cocktail | 5d0178548e288dceeb8e90c521d35fe991a54233 | [
"MIT"
] | null | null | null | test/cocktail/monthly_test.exs | good-monday/cocktail | 5d0178548e288dceeb8e90c521d35fe991a54233 | [
"MIT"
] | null | null | null | test/cocktail/monthly_test.exs | good-monday/cocktail | 5d0178548e288dceeb8e90c521d35fe991a54233 | [
"MIT"
] | null | null | null | defmodule Cocktail.MonthlyTest do
use ExUnit.Case
alias Cocktail.Schedule
import Cocktail.TestSupport.DateTimeSigil
test "Monthly" do
times =
~Y[2017-01-01 06:00:00 UTC]
|> Cocktail.schedule()
|> Schedule.add_recurrence_rule(:monthly)
|> Cocktail.Schedule.occurrences()
|> En... | 28.748299 | 113 | 0.532773 |
3f88d5befff052e4f8a2d941aa0f626ff35ce99c | 1,129 | exs | Elixir | config/config.exs | mendrugory/ets_helper | af0b4dccc0fcae43abd859b6d57459d71c06f220 | [
"MIT"
] | 4 | 2017-09-18T17:31:10.000Z | 2018-01-09T12:45:10.000Z | config/config.exs | mendrugory/ets_helper | af0b4dccc0fcae43abd859b6d57459d71c06f220 | [
"MIT"
] | null | null | null | config/config.exs | mendrugory/ets_helper | af0b4dccc0fcae43abd859b6d57459d71c06f220 | [
"MIT"
] | 1 | 2022-02-01T21:53:14.000Z | 2022-02-01T21:53:14.000Z | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on this project, this
# file won't be loaded nor affect the paren... | 36.419355 | 73 | 0.752879 |
3f88e3a37b805bb88e8b2446ea343bb306134822 | 3,142 | exs | Elixir | test/controllers/variable_controller_test.exs | sahilpaudel/AfterGlow | 0859ec14b47c8c5704cc8e5cba86d39aa258fff5 | [
"MIT"
] | null | null | null | test/controllers/variable_controller_test.exs | sahilpaudel/AfterGlow | 0859ec14b47c8c5704cc8e5cba86d39aa258fff5 | [
"MIT"
] | null | null | null | test/controllers/variable_controller_test.exs | sahilpaudel/AfterGlow | 0859ec14b47c8c5704cc8e5cba86d39aa258fff5 | [
"MIT"
] | null | null | null | defmodule AfterGlow.VariableControllerTest do
use AfterGlow.ConnCase
alias AfterGlow.Variable
alias AfterGlow.Repo
@valid_attrs %{default: "some content", name: "some content"}
@invalid_attrs %{}
setup do
conn = build_conn()
|> put_req_header("accept", "application/vnd.api+json")
|> put_r... | 28.825688 | 98 | 0.610121 |
3f88f49a7cf6fa5d15cfd820a397c06c543e02e0 | 543 | exs | Elixir | apps/crm/priv/repo/migrations/20190821160623_create_updates.exs | jdambron/phoenix_crm | 6d17280e3a6655990840f4714a338f58b7d0c756 | [
"MIT"
] | null | null | null | apps/crm/priv/repo/migrations/20190821160623_create_updates.exs | jdambron/phoenix_crm | 6d17280e3a6655990840f4714a338f58b7d0c756 | [
"MIT"
] | 1 | 2020-04-06T07:42:36.000Z | 2020-04-06T07:42:36.000Z | apps/crm/priv/repo/migrations/20190821160623_create_updates.exs | jdambron/phoenix_crm | 6d17280e3a6655990840f4714a338f58b7d0c756 | [
"MIT"
] | null | null | null | defmodule Crm.Repo.Migrations.CreateUpdates do
use Ecto.Migration
def change do
create table("updates") do
add :activity, :string, null: false
add :start, :date, null: false
add :end, :date
add :note, :text
timestamps()
end
create table("updates_contacts", primary_key: fa... | 25.857143 | 69 | 0.674033 |
3f88f8d4f5d0afa577c11dac479a261f3a72f476 | 1,532 | exs | Elixir | mix.exs | pkinney/spatial_hash_ex | 0ae85781106ee291848a367d57ab720eb5c7d2c3 | [
"MIT"
] | 6 | 2017-10-27T09:45:50.000Z | 2021-08-25T10:46:56.000Z | mix.exs | pkinney/spatial_hash_ex | 0ae85781106ee291848a367d57ab720eb5c7d2c3 | [
"MIT"
] | null | null | null | mix.exs | pkinney/spatial_hash_ex | 0ae85781106ee291848a367d57ab720eb5c7d2c3 | [
"MIT"
] | 3 | 2017-04-29T02:51:34.000Z | 2018-06-21T14:09:05.000Z | defmodule SpatialHash.Mixfile do
use Mix.Project
def project do
[app: :spatial_hash,
version: "0.1.6",
elixir: "~> 1.4",
description: description(),
package: package(),
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
test_coverage: [tool: ExCoveralls],
... | 26.413793 | 79 | 0.598564 |
3f891c11faa10093b6301edddc104e0bc77354bf | 987 | ex | Elixir | lib/hl7/2.4/segments/ub1.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | lib/hl7/2.4/segments/ub1.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | lib/hl7/2.4/segments/ub1.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | defmodule HL7.V2_4.Segments.UB1 do
@moduledoc false
require Logger
alias HL7.V2_4.{DataTypes}
use HL7.Segment,
fields: [
segment: nil,
set_id_ub1: nil,
blood_deductible_43: nil,
blood_furnished_pints_of_40: nil,
blood_replaced_pints_41: nil,
blood_not_replaced_pints42: ... | 28.2 | 50 | 0.70618 |
3f8969be645f6aea8c3569c83b969ea2047b62e9 | 9,462 | ex | Elixir | lib/yesql.ex | zph/yesql | 08b3d83d01fa71da9e000896950d9a4c671e936a | [
"Apache-2.0"
] | null | null | null | lib/yesql.ex | zph/yesql | 08b3d83d01fa71da9e000896950d9a4c671e936a | [
"Apache-2.0"
] | null | null | null | lib/yesql.ex | zph/yesql | 08b3d83d01fa71da9e000896950d9a4c671e936a | [
"Apache-2.0"
] | 1 | 2020-02-04T17:48:37.000Z | 2020-02-04T17:48:37.000Z | defmodule Yesql do
@moduledoc """
defmodule Query do
use Yesql, driver: Postgrex, conn: MyApp.ConnectionPool
Yesql.defquery("some/where/select_users_by_country.sql")
end
Query.users_by_country(country_code: "gbr")
# => {:ok, [%{name: "Louis", country_code: "gbr"}]}
## Sup... | 25.642276 | 95 | 0.555591 |
3f89852942edf14109af39908489de180e3a3330 | 73 | exs | Elixir | test/diode_client_test.exs | diodechain/diode_client_ex | 0aec3aa7a2e3448cccfc255b4d4e8d2cbf475c7f | [
"Apache-2.0"
] | null | null | null | test/diode_client_test.exs | diodechain/diode_client_ex | 0aec3aa7a2e3448cccfc255b4d4e8d2cbf475c7f | [
"Apache-2.0"
] | null | null | null | test/diode_client_test.exs | diodechain/diode_client_ex | 0aec3aa7a2e3448cccfc255b4d4e8d2cbf475c7f | [
"Apache-2.0"
] | null | null | null | defmodule DiodeClientTest do
use ExUnit.Case
doctest DiodeClient
end
| 14.6 | 28 | 0.821918 |
3f89858673935c98ef7313d9076d2cf56eea0adc | 309 | exs | Elixir | test/exq_ui_web/live/dashboard_live_test.exs | snowflakes-network/ecq_ui | c6a9cef5ce10d501d2408bcd30e27f4e570d6fce | [
"Apache-2.0"
] | 125 | 2015-12-21T00:20:28.000Z | 2022-03-29T07:21:43.000Z | test/exq_ui_web/live/dashboard_live_test.exs | snowflakes-network/ecq_ui | c6a9cef5ce10d501d2408bcd30e27f4e570d6fce | [
"Apache-2.0"
] | 81 | 2015-12-20T06:00:43.000Z | 2022-02-05T13:53:22.000Z | test/exq_ui_web/live/dashboard_live_test.exs | snowflakes-network/ecq_ui | c6a9cef5ce10d501d2408bcd30e27f4e570d6fce | [
"Apache-2.0"
] | 87 | 2016-01-25T05:37:04.000Z | 2022-01-28T15:33:44.000Z | defmodule ExqUIWeb.DashboardLiveTest do
use ExqUI.ConnCase
test "/", %{conn: conn} do
{:ok, view, _} = live(conn, "/")
html = render(view)
assert html =~ ~r/5456.*Processed/
assert html =~ ~r/4949.*Failed/
assert html =~ ~r/1.*Enqueued/
assert html =~ ~r/1.*Scheduled/
end
end
| 22.071429 | 39 | 0.605178 |
3f8988c6ddd9756ff92878614ed156d7bb16e4a9 | 1,992 | ex | Elixir | clients/redis/lib/google_api/redis/v1/model/weekly_maintenance_window.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/redis/lib/google_api/redis/v1/model/weekly_maintenance_window.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/redis/lib/google_api/redis/v1/model/weekly_maintenance_window.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 37.584906 | 146 | 0.722892 |
3f89c7bb96cd168d0607935bb5529f11dd64112e | 2,113 | exs | Elixir | config/prod.exs | invault-team/backend | 1a79652be21f8ae0389378239a48881f78e61c58 | [
"Apache-2.0"
] | 2 | 2018-10-22T20:56:40.000Z | 2018-11-05T09:48:37.000Z | config/prod.exs | invault-team/backend | 1a79652be21f8ae0389378239a48881f78e61c58 | [
"Apache-2.0"
] | 8 | 2018-11-05T20:35:55.000Z | 2019-01-01T06:15:32.000Z | config/prod.exs | invault-team/backend | 1a79652be21f8ae0389378239a48881f78e61c58 | [
"Apache-2.0"
] | null | null | null | use Mix.Config
# For production, we often load configuration from external
# sources, such as your system environment. For this reason,
# you won't find the :http configuration below, but set inside
# InvaultWeb.Endpoint.init/2 when load_from_system_env is
# true. Any dynamic configuration should be done there.
#
# Do... | 33.015625 | 67 | 0.718883 |
3f89c9e59533732791bfac1f7c747e6026d7484a | 584 | exs | Elixir | mix.exs | enterprizing/pm | 8f0de759fe35db39d68620fa69a812139683dc3a | [
"0BSD"
] | null | null | null | mix.exs | enterprizing/pm | 8f0de759fe35db39d68620fa69a812139683dc3a | [
"0BSD"
] | null | null | null | mix.exs | enterprizing/pm | 8f0de759fe35db39d68620fa69a812139683dc3a | [
"0BSD"
] | null | null | null | defmodule PM.Mixfile do
use Mix.Project
def project() do
[
app: :pm,
version: "0.6.0",
elixir: "~> 1.7",
description: "PM Project Management",
package: package(),
deps: deps()
]
end
def package do
[
files: ~w(doc src mix.exs LICENSE),
licenses: ["ISC... | 16.685714 | 64 | 0.506849 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.