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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e98f6bf71fa4b883b166469085e2929250b7f354 | 265 | ex | Elixir | ros/ros_ui_supervisor/lib/ros_ui_supervisor.ex | kujua/elixir-handbook | 4185ad8da7f652fdb59c799dc58bcb33fda10475 | [
"Apache-2.0"
] | 1 | 2019-07-01T18:47:28.000Z | 2019-07-01T18:47:28.000Z | ros/ros_ui_supervisor/lib/ros_ui_supervisor.ex | kujua/elixir-handbook | 4185ad8da7f652fdb59c799dc58bcb33fda10475 | [
"Apache-2.0"
] | 4 | 2020-07-17T16:57:18.000Z | 2021-05-09T23:50:52.000Z | ros/ros_ui_supervisor/lib/ros_ui_supervisor.ex | kujua/elixir-handbook | 4185ad8da7f652fdb59c799dc58bcb33fda10475 | [
"Apache-2.0"
] | null | null | null | defmodule Ros.Supervisor do
@moduledoc """
Ros.Supervisor keeps the contexts that define your domain
and business logic.
Contexts are also responsible for managing your data, regardless
if it comes from the database, an external API or others.
"""
end
| 26.5 | 66 | 0.758491 |
e98f771ad7e880c0f0f96b19379c7bd463e432f6 | 459 | exs | Elixir | priv/repo/migrations/20181126231512_make_results_in_experiment_results_non_nullable.exs | b-a-b-e/ProComPrag | 50c6c87933e71cb69b5c95bc77bf591a34661410 | [
"MIT"
] | 1 | 2020-05-31T21:54:40.000Z | 2020-05-31T21:54:40.000Z | priv/repo/migrations/20181126231512_make_results_in_experiment_results_non_nullable.exs | b-a-b-e/ProComPrag | 50c6c87933e71cb69b5c95bc77bf591a34661410 | [
"MIT"
] | 64 | 2019-07-29T22:06:16.000Z | 2022-03-28T23:46:58.000Z | priv/repo/migrations/20181126231512_make_results_in_experiment_results_non_nullable.exs | babe-project/BABE | 50c6c87933e71cb69b5c95bc77bf591a34661410 | [
"MIT"
] | 1 | 2019-07-28T19:17:43.000Z | 2019-07-28T19:17:43.000Z | defmodule Magpie.Repo.Migrations.MakeResultsInExperimentResultsNonNullable do
use Ecto.Migration
# Actually I'm not even sure if this will stop empty JSONs. Probably will need to perform a check at controller level anyways.
def up do
alter table(:experiment_results) do
modify(:results, {:array, :map}, ... | 27 | 128 | 0.718954 |
e98f79efabfb71875af1476fc723a13ea3621268 | 683 | exs | Elixir | test/burger/integeration_test.exs | mbuhot/irateburgers | 3ea07805501c10ef9b04cee04c22c36582f26e1e | [
"MIT"
] | 1 | 2020-01-13T09:27:21.000Z | 2020-01-13T09:27:21.000Z | test/burger/integeration_test.exs | mbuhot/irateburgers | 3ea07805501c10ef9b04cee04c22c36582f26e1e | [
"MIT"
] | null | null | null | test/burger/integeration_test.exs | mbuhot/irateburgers | 3ea07805501c10ef9b04cee04c22c36582f26e1e | [
"MIT"
] | null | null | null | defmodule IntegrationTest do
alias Irateburgers.{
BurgerReviewed,
BurgerServer,
CreateBurger,
Event,
Repo,
TopBurgers
}
def run do
{:ok, cmd} = CreateBurger.new(name: "Big Mac", description: "Meat and cheese", price: "$6.50")
{:ok, burger} = BurgerServer.create(cmd)
{:ok, even... | 25.296296 | 98 | 0.648609 |
e98f9dd935824f4434bedeea2c52573cb88b4aa9 | 1,511 | ex | Elixir | clients/document_ai/lib/google_api/document_ai/v1beta3/model/google_cloud_documentai_v1beta3_disable_processor_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-10-01T09:20:41.000Z | 2021-10-01T09:20:41.000Z | clients/document_ai/lib/google_api/document_ai/v1beta3/model/google_cloud_documentai_v1beta3_disable_processor_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/document_ai/lib/google_api/document_ai/v1beta3/model/google_cloud_documentai_v1beta3_disable_processor_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... | 32.148936 | 107 | 0.780278 |
e98f9f8f6b814e7e542f657fde624c9192b49ff1 | 2,097 | exs | Elixir | installer/templates/phx_umbrella/apps/app_name_web/mix.exs | edwinbalani/phoenix | c030fb01276b806e62a6b1467c4dc57bd4f60d86 | [
"MIT"
] | null | null | null | installer/templates/phx_umbrella/apps/app_name_web/mix.exs | edwinbalani/phoenix | c030fb01276b806e62a6b1467c4dc57bd4f60d86 | [
"MIT"
] | null | null | null | installer/templates/phx_umbrella/apps/app_name_web/mix.exs | edwinbalani/phoenix | c030fb01276b806e62a6b1467c4dc57bd4f60d86 | [
"MIT"
] | 1 | 2021-06-22T08:06:06.000Z | 2021-06-22T08:06:06.000Z | defmodule <%= @web_namespace %>.MixProject do
use Mix.Project
def project do
[
app: :<%= @web_app_name %>,
version: "0.1.0",
build_path: "../../_build",
config_path: "../../config/config.exs",
deps_path: "../../deps",
lockfile: "../../mix.lock",
elixir: "~> 1.12",
... | 31.772727 | 109 | 0.549833 |
e98ff583bd0fc5e56befadc5fd85c42f8a5eedc8 | 1,248 | ex | Elixir | test/support/conn_case.ex | Matan18/bossaBoxChallengeElixir | b389144fe4f80a3e329a488def7d1e49ad1776e1 | [
"MIT"
] | null | null | null | test/support/conn_case.ex | Matan18/bossaBoxChallengeElixir | b389144fe4f80a3e329a488def7d1e49ad1776e1 | [
"MIT"
] | null | null | null | test/support/conn_case.ex | Matan18/bossaBoxChallengeElixir | b389144fe4f80a3e329a488def7d1e49ad1776e1 | [
"MIT"
] | null | null | null | defmodule BossaboxWeb.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 data structures and query the data layer.
Finally, if t... | 28.363636 | 70 | 0.725962 |
e990006ddb7d06c8bb80ba65d9d5302edc06f261 | 438 | ex | Elixir | lib/nectar/guardian.ex | harry-gao/ex-cart | 573e7f977bb3b710d11618dd215d4ddd8f819fb3 | [
"Apache-2.0"
] | null | null | null | lib/nectar/guardian.ex | harry-gao/ex-cart | 573e7f977bb3b710d11618dd215d4ddd8f819fb3 | [
"Apache-2.0"
] | null | null | null | lib/nectar/guardian.ex | harry-gao/ex-cart | 573e7f977bb3b710d11618dd215d4ddd8f819fb3 | [
"Apache-2.0"
] | null | null | null | defmodule Nectar.Guardian do
use Guardian, otp_app: :nectar
def subject_for_token(resource, _claims) do
{:ok, to_string(resource.id)}
end
def subject_for_token(_, _) do
{:error, :reason_for_error}
end
def resource_from_claims(claims) do
id = claims["sub"]
resource = Nectar.Repo.get(Nectar... | 21.9 | 47 | 0.696347 |
e99025419672b86b266eebc20be42a88a0a1f130 | 210 | exs | Elixir | priv/repo/migrations/20151007150624_create_user.exs | bus-detective/pro | d313f4facdb4c9229bd7a022eeabb85170000e18 | [
"MIT"
] | null | null | null | priv/repo/migrations/20151007150624_create_user.exs | bus-detective/pro | d313f4facdb4c9229bd7a022eeabb85170000e18 | [
"MIT"
] | null | null | null | priv/repo/migrations/20151007150624_create_user.exs | bus-detective/pro | d313f4facdb4c9229bd7a022eeabb85170000e18 | [
"MIT"
] | null | null | null | defmodule BdPro.Repo.Migrations.CreateUser do
use Ecto.Migration
def change do
create table(:users) do
add :email, :string
add :password_digest, :string
timestamps
end
end
end
| 16.153846 | 45 | 0.67619 |
e99044cef92ab06788d51ede34d5d5148432a95f | 392 | exs | Elixir | priv/repo/migrations/20180209153309_add_locales_columns_on_languages.exs | suryatmodulus/accent | 6aaf34075c33f3d9d84d38237af4a39b594eb808 | [
"BSD-3-Clause"
] | 806 | 2018-04-07T20:40:33.000Z | 2022-03-30T01:39:57.000Z | priv/repo/migrations/20180209153309_add_locales_columns_on_languages.exs | suryatmodulus/accent | 6aaf34075c33f3d9d84d38237af4a39b594eb808 | [
"BSD-3-Clause"
] | 194 | 2018-04-07T13:49:37.000Z | 2022-03-30T19:58:45.000Z | priv/repo/migrations/20180209153309_add_locales_columns_on_languages.exs | doc-ai/accent | e337e16f3658cc0728364f952c0d9c13710ebb06 | [
"BSD-3-Clause"
] | 89 | 2018-04-09T13:55:49.000Z | 2022-03-24T07:09:31.000Z | defmodule Accent.Repo.Migrations.AddLocalesColumnsOnLanguages do
use Ecto.Migration
def change do
alter table(:languages) do
add(:iso_639_1, :string)
add(:iso_639_3, :string)
add(:locale, :string)
add(:android_code, :string)
add(:osx_code, :string)
add(:osx_locale, :string)
... | 23.058824 | 64 | 0.658163 |
e990646ddc5d2e4a7bcfc06ea354cdd49098852d | 514 | exs | Elixir | config/test.exs | joekain/play_channel | 14450af4cfda4d59bc4e4157d4081b10941b5abf | [
"MIT"
] | 4 | 2016-03-25T08:10:23.000Z | 2018-11-13T22:11:11.000Z | config/test.exs | joekain/play_channel | 14450af4cfda4d59bc4e4157d4081b10941b5abf | [
"MIT"
] | null | null | null | config/test.exs | joekain/play_channel | 14450af4cfda4d59bc4e4157d4081b10941b5abf | [
"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 :play_channel, PlayChannel.Endpoint,
http: [port: 4001],
server: false
# Print only warnings and errors during test
config :logger, level: :warn
# Configure your database
config :play_channel,... | 25.7 | 56 | 0.745136 |
e990a941ded57f00c82953dc3e4781cc8e819a4f | 69 | ex | Elixir | lib/phenodata/repo.ex | kf8a/phenodata | 51370be0522f632a98df47c9d104c7a2cf2214c6 | [
"MIT"
] | null | null | null | lib/phenodata/repo.ex | kf8a/phenodata | 51370be0522f632a98df47c9d104c7a2cf2214c6 | [
"MIT"
] | null | null | null | lib/phenodata/repo.ex | kf8a/phenodata | 51370be0522f632a98df47c9d104c7a2cf2214c6 | [
"MIT"
] | null | null | null | defmodule Phenodata.Repo do
use Ecto.Repo, otp_app: :phenodata
end
| 17.25 | 36 | 0.782609 |
e990b2fb6fecb6a308d479fef5258a164b4983ea | 1,996 | exs | Elixir | test/protobuf/decoder_test.exs | koudelka/exprotobuf | 59784900dae2e78aa03ab3db0959ccfb1d5936ae | [
"Apache-2.0"
] | 1 | 2021-04-03T12:51:54.000Z | 2021-04-03T12:51:54.000Z | test/protobuf/decoder_test.exs | koudelka/exprotobuf | 59784900dae2e78aa03ab3db0959ccfb1d5936ae | [
"Apache-2.0"
] | null | null | null | test/protobuf/decoder_test.exs | koudelka/exprotobuf | 59784900dae2e78aa03ab3db0959ccfb1d5936ae | [
"Apache-2.0"
] | null | null | null | defmodule Protobuf.Decoder.Test do
use Protobuf.Case
alias Protobuf.Decoder, as: D
test "fix :undefined values to nil value" do
mod = def_proto_module "message Msg {
optional int32 f1 = 1;
required int32 f2 = 2;
}"
module = mod.Msg
assert %{:__struct__ => ^module, :f1 => nil, :f2 => ... | 26.263158 | 123 | 0.573647 |
e990d8fa3859fd8b4f2a7cd00c6ea9cdec14963f | 2,199 | exs | Elixir | test/phx_crud_users/users_test.exs | LeonardoSSev/phx-crud-users | 52dabaae0c81adeee39afa48eb17331de261d3c4 | [
"MIT"
] | null | null | null | test/phx_crud_users/users_test.exs | LeonardoSSev/phx-crud-users | 52dabaae0c81adeee39afa48eb17331de261d3c4 | [
"MIT"
] | null | null | null | test/phx_crud_users/users_test.exs | LeonardoSSev/phx-crud-users | 52dabaae0c81adeee39afa48eb17331de261d3c4 | [
"MIT"
] | null | null | null | defmodule PhxCrudUsers.UsersTest do
use PhxCrudUsers.DataCase
alias PhxCrudUsers.Users
describe "users" do
alias PhxCrudUsers.Users.User
@valid_attrs %{description: "some description", email: "some email", name: "some name"}
@update_attrs %{description: "some updated description", email: "some upda... | 31.869565 | 116 | 0.655753 |
e990e46640575a73e73e5d15bce5d5ff8810be1d | 2,009 | ex | Elixir | clients/source_repo/lib/google_api/source_repo/v1/model/project_config.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | null | null | null | clients/source_repo/lib/google_api/source_repo/v1/model/project_config.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | null | null | null | clients/source_repo/lib/google_api/source_repo/v1/model/project_config.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"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... | 37.203704 | 192 | 0.734694 |
e990e7ffd3ad5a9379560d6cba2cab5892fc318e | 3,865 | exs | Elixir | mix.exs | starbelly/website | 385c30eabbb2c4f1026147342a0d69fdadd20f4c | [
"Apache-2.0"
] | null | null | null | mix.exs | starbelly/website | 385c30eabbb2c4f1026147342a0d69fdadd20f4c | [
"Apache-2.0"
] | null | null | null | mix.exs | starbelly/website | 385c30eabbb2c4f1026147342a0d69fdadd20f4c | [
"Apache-2.0"
] | null | null | null | defmodule Erlef.MixProject do
use Mix.Project
def project do
[
app: :erlef,
version: "0.1.0",
elixir: "~> 1.11",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix, :gettext] ++ Mix.compilers(),
start_permanent: Mix.env() == :prod,
test_coverage: [tool: ExCo... | 26.292517 | 86 | 0.482536 |
e9912db16b9338e32107a88c855bac6789e0d3a7 | 1,299 | exs | Elixir | apps/astarte_pairing_api/test/astarte_pairing_api_web/views/error_view_test.exs | matt-mazzucato/astarte | 34d84941a5019efc42321052f7f34b7d907a38f2 | [
"Apache-2.0"
] | 191 | 2018-03-30T13:23:08.000Z | 2022-03-02T12:05:32.000Z | apps/astarte_pairing_api/test/astarte_pairing_api_web/views/error_view_test.exs | matt-mazzucato/astarte | 34d84941a5019efc42321052f7f34b7d907a38f2 | [
"Apache-2.0"
] | 402 | 2018-03-30T13:37:00.000Z | 2022-03-31T16:47:10.000Z | apps/astarte_pairing_api/test/astarte_pairing_api_web/views/error_view_test.exs | 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 2017 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... | 32.475 | 74 | 0.706697 |
e9913937b8d70da15ea36f526ddab79705a81830 | 2,342 | ex | Elixir | lib/date_helpers.ex | turnhub/expression | 51b857bc1d9f276a2bd8750892eddebd5f35f922 | [
"Apache-2.0"
] | 4 | 2020-12-13T21:11:13.000Z | 2022-01-18T19:20:30.000Z | lib/date_helpers.ex | turnhub/expression | 51b857bc1d9f276a2bd8750892eddebd5f35f922 | [
"Apache-2.0"
] | 31 | 2021-02-08T07:12:49.000Z | 2022-03-04T10:54:40.000Z | lib/date_helpers.ex | turnhub/expression | 51b857bc1d9f276a2bd8750892eddebd5f35f922 | [
"Apache-2.0"
] | null | null | null | defmodule Expression.DateHelpers do
@moduledoc false
import NimbleParsec
def date_separator do
choice([
string("-"),
string("/")
])
end
def us_date do
integer(2)
|> ignore(date_separator())
|> integer(2)
|> ignore(date_separator())
|> integer(4)
end
def us_time d... | 19.680672 | 85 | 0.531597 |
e9914f9299c0005fbb27d9acce4d8542fd847e23 | 1,533 | ex | Elixir | clients/os_config/lib/google_api/os_config/v1/model/one_time_schedule.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-10-01T09:20:41.000Z | 2021-10-01T09:20:41.000Z | clients/os_config/lib/google_api/os_config/v1/model/one_time_schedule.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/os_config/lib/google_api/os_config/v1/model/one_time_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... | 32.617021 | 125 | 0.737769 |
e991598fae0b4d44e52f08a80245f5c9e92b1ae2 | 3,927 | ex | Elixir | lib/teiserver/protocols/tachyon_v1/tachyon.ex | beyond-all-reason/teiserver | e394b5efe561eaf5700bca62e4e4263d8f720ac5 | [
"MIT"
] | 4 | 2021-07-29T16:23:20.000Z | 2022-02-23T05:34:36.000Z | lib/teiserver/protocols/tachyon_v1/tachyon.ex | beyond-all-reason/teiserver | e394b5efe561eaf5700bca62e4e4263d8f720ac5 | [
"MIT"
] | 14 | 2021-08-01T02:36:14.000Z | 2022-01-30T21:15:03.000Z | lib/teiserver/protocols/tachyon_v1/tachyon.ex | beyond-all-reason/teiserver | e394b5efe561eaf5700bca62e4e4263d8f720ac5 | [
"MIT"
] | 7 | 2021-05-13T12:55:28.000Z | 2022-01-14T06:39:06.000Z | defmodule Teiserver.Protocols.Tachyon.V1.Tachyon do
@moduledoc """
Used for library-like functions that are specific to a version.
"""
alias Teiserver.Client
alias Phoenix.PubSub
alias Teiserver.Data.Types, as: T
@spec protocol_in :: Teiserver.Protocols.Tachyon.V1.TachyonIn
def protocol_in(), do: Teis... | 44.123596 | 123 | 0.706901 |
e991a3d1fb2f773f9c86553972caaa23d21c0069 | 150 | exs | Elixir | test/status_watch_test.exs | r-frederick/status_watch | 54481d62121ca113a91766c03e8ffd13e3e7f88b | [
"MIT"
] | null | null | null | test/status_watch_test.exs | r-frederick/status_watch | 54481d62121ca113a91766c03e8ffd13e3e7f88b | [
"MIT"
] | null | null | null | test/status_watch_test.exs | r-frederick/status_watch | 54481d62121ca113a91766c03e8ffd13e3e7f88b | [
"MIT"
] | null | null | null | defmodule StatusWatchTest do
use ExUnit.Case
doctest StatusWatch
test "greets the world" do
assert StatusWatch.hello() == :world
end
end
| 16.666667 | 40 | 0.733333 |
e991b5b6b38c865a0a0fb2a0b062ea7e6ef7701d | 5,642 | ex | Elixir | rustler_mix/lib/rustler/compiler.ex | ericlathrop/rustler | 662e36b11703e590fdb21fd392e2c80b26225033 | [
"Apache-2.0",
"MIT"
] | 2,075 | 2019-03-10T02:30:23.000Z | 2022-03-31T21:34:49.000Z | rustler_mix/lib/rustler/compiler.ex | ericlathrop/rustler | 662e36b11703e590fdb21fd392e2c80b26225033 | [
"Apache-2.0",
"MIT"
] | 194 | 2019-03-10T00:14:16.000Z | 2022-03-30T13:37:00.000Z | rustler_mix/lib/rustler/compiler.ex | ericlathrop/rustler | 662e36b11703e590fdb21fd392e2c80b26225033 | [
"Apache-2.0",
"MIT"
] | 130 | 2019-03-13T05:31:10.000Z | 2022-03-27T15:34:05.000Z | defmodule Rustler.Compiler do
@moduledoc false
alias Rustler.Compiler.{Config, Messages, Rustup}
@doc false
def compile_crate(module, opts) do
otp_app = Keyword.fetch!(opts, :otp_app)
config = Config.from(otp_app, module, opts)
unless config.skip_compilation? do
crate_full_path = Path.expan... | 31.519553 | 139 | 0.6324 |
e991c0c153c43113f3d6e18af0ea90f296520e71 | 893 | ex | Elixir | lib/slack_inviter_web/router.ex | syracuseio/slack_inviter | a2bdf4ffc45b12db95aa74bf7a167ef4996a9b81 | [
"MIT"
] | null | null | null | lib/slack_inviter_web/router.ex | syracuseio/slack_inviter | a2bdf4ffc45b12db95aa74bf7a167ef4996a9b81 | [
"MIT"
] | 3 | 2021-03-08T19:58:55.000Z | 2021-09-01T03:46:56.000Z | lib/slack_inviter_web/router.ex | syracuseio/slack_inviter | a2bdf4ffc45b12db95aa74bf7a167ef4996a9b81 | [
"MIT"
] | 1 | 2018-08-15T01:52:40.000Z | 2018-08-15T01:52:40.000Z | defmodule SlackInviterWeb.Router do
use SlackInviterWeb, :router
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_flash
plug :protect_from_forgery
plug :put_secure_browser_headers
end
pipeline :api do
plug :accepts, ["json"]
end
scope "/", SlackInviterW... | 22.325 | 59 | 0.657335 |
e991ced235036c4481f76da5f748ed52802a106e | 884 | ex | Elixir | testserver/test/support/conn_case.ex | abhisheknigam/Phoenix-Twitter-Application | 9a793037e90a7abc6ced6979b0562ce45ece624a | [
"MIT"
] | null | null | null | testserver/test/support/conn_case.ex | abhisheknigam/Phoenix-Twitter-Application | 9a793037e90a7abc6ced6979b0562ce45ece624a | [
"MIT"
] | null | null | null | testserver/test/support/conn_case.ex | abhisheknigam/Phoenix-Twitter-Application | 9a793037e90a7abc6ced6979b0562ce45ece624a | [
"MIT"
] | null | null | null | defmodule TestserverWeb.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 ... | 25.257143 | 58 | 0.7319 |
e991f7a2b63edbc354cba80973fe2cb1aec571d8 | 1,362 | exs | Elixir | test/arkecosystem/crypto/transactions/transaction_test.exs | whitehat/elixir-crypto | 6347868ee15c7b79676df58bef54376a8dc6fd02 | [
"MIT"
] | null | null | null | test/arkecosystem/crypto/transactions/transaction_test.exs | whitehat/elixir-crypto | 6347868ee15c7b79676df58bef54376a8dc6fd02 | [
"MIT"
] | null | null | null | test/arkecosystem/crypto/transactions/transaction_test.exs | whitehat/elixir-crypto | 6347868ee15c7b79676df58bef54376a8dc6fd02 | [
"MIT"
] | null | null | null | defmodule ArkEcosystem.Crypto.Transactions.TransactionTest do
use ExUnit.Case, async: false
alias ArkEcosystem.Crypto.Transactions.{Deserializer, Transaction}
alias ArkEcosystem.Test.TestHelper
test "should return params if signed with a passphrase" do
fixture = TestHelper.read_transaction_fixture("transfe... | 27.24 | 82 | 0.70558 |
e9921c67c519e6ce21dcd4bb0b41759d1c19efbb | 245 | ex | Elixir | lib/maru/types/atom.ex | davidenko87/maru | 62b6ca0e42dd550683af8743f50e67048c4027d0 | [
"BSD-3-Clause"
] | 819 | 2016-11-25T07:12:04.000Z | 2022-03-16T06:59:36.000Z | lib/maru/types/atom.ex | davidenko87/maru | 62b6ca0e42dd550683af8743f50e67048c4027d0 | [
"BSD-3-Clause"
] | 71 | 2016-11-24T20:19:09.000Z | 2021-06-09T10:12:23.000Z | lib/maru/types/atom.ex | davidenko87/maru | 62b6ca0e42dd550683af8743f50e67048c4027d0 | [
"BSD-3-Clause"
] | 56 | 2015-01-10T23:34:12.000Z | 2016-11-17T00:13:56.000Z | defmodule Maru.Types.Atom do
@moduledoc """
Buildin Type: Atom
"""
use Maru.Type
@doc false
def parse(input, _) when is_atom(input), do: input
def parse(input, _) do
input |> to_string |> String.to_existing_atom()
end
end
| 16.333333 | 52 | 0.661224 |
e9921e8fd9cc13e02a1ca0317ca232b01e8d81cc | 8,740 | exs | Elixir | .credo.exs | jshmrtn/expo | 98459ed26833c1b05348bb80a66e78fc6d2e488d | [
"Apache-2.0"
] | 2 | 2022-03-31T21:12:35.000Z | 2022-03-31T21:44:59.000Z | .credo.exs | jshmrtn/expo | 98459ed26833c1b05348bb80a66e78fc6d2e488d | [
"Apache-2.0"
] | 13 | 2022-03-30T17:41:25.000Z | 2022-03-31T23:35:49.000Z | .credo.exs | jshmrtn/expo | 98459ed26833c1b05348bb80a66e78fc6d2e488d | [
"Apache-2.0"
] | null | null | null | # This file contains the configuration for Credo and you are probably reading
# this after creating it with `mix credo.gen.config`.
#
# If you find anything wrong or unclear in this file, please report an
# issue on GitHub: https://github.com/rrrene/credo/issues
#
%{
#
# You can have as many configs as you like in ... | 39.547511 | 99 | 0.5873 |
e9923b00f37fb6937efd16a225ee3ff41518759a | 1,647 | ex | Elixir | clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/local_object_reference.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/local_object_reference.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/local_object_reference.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 34.3125 | 153 | 0.757741 |
e99242a3b01431be0a7cd2906914152cf232e653 | 313 | ex | Elixir | lib/resonator.ex | rubencaro/resonator | b9ca4f752f553288dd92153e3a07a177e77bde73 | [
"MIT"
] | null | null | null | lib/resonator.ex | rubencaro/resonator | b9ca4f752f553288dd92153e3a07a177e77bde73 | [
"MIT"
] | null | null | null | lib/resonator.ex | rubencaro/resonator | b9ca4f752f553288dd92153e3a07a177e77bde73 | [
"MIT"
] | null | null | null | defmodule Resonator do
use Application
@moduledoc """
"""
@doc """
Start and supervise a single lonely worker
"""
def start(_,_) do
import Supervisor.Spec
opts = [strategy: :one_for_one, name: Resonator.Supervisor]
children = []
Supervisor.start_link(children, opts)
end
end
| 16.473684 | 63 | 0.658147 |
e9924e38acf0096d69700238c948fd8fbc3d4eaa | 4,362 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/target_vpn_gateway.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/target_vpn_gateway.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/target_vpn_gateway.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... | 55.21519 | 490 | 0.69624 |
e99259e8c94e997992a0aa841ed21c7e5da862ab | 619 | ex | Elixir | lib/opc_ua/nodestore/qualified_name.ex | appoks/opcua-elixir-telemetry | 7f8d1f8190d4b647ced4b2a788f7fd20e87a767f | [
"MIT"
] | null | null | null | lib/opc_ua/nodestore/qualified_name.ex | appoks/opcua-elixir-telemetry | 7f8d1f8190d4b647ced4b2a788f7fd20e87a767f | [
"MIT"
] | null | null | null | lib/opc_ua/nodestore/qualified_name.ex | appoks/opcua-elixir-telemetry | 7f8d1f8190d4b647ced4b2a788f7fd20e87a767f | [
"MIT"
] | null | null | null | defmodule OpcUA.QualifiedName do
use IsEnumerable
use IsAccessible
@moduledoc """
A name qualified by a namespace.
"""
alias OpcUA.QualifiedName
@enforce_keys [:ns_index, :name]
defstruct ns_index: nil,
name: nil
@doc """
Creates a structure for a name qualified by a nam... | 25.791667 | 91 | 0.670436 |
e99289169347f469d2bbe2d321515d32920b3a9f | 206 | exs | Elixir | priv/repo/migrations/20160402025606_add_indexes.exs | fcapovilla/exagg | abcd3cea76c120575a5a5c6d058c7f6f48381616 | [
"BSD-3-Clause"
] | 3 | 2015-12-26T02:36:50.000Z | 2016-05-19T16:29:57.000Z | priv/repo/migrations/20160402025606_add_indexes.exs | fcapovilla/exagg | abcd3cea76c120575a5a5c6d058c7f6f48381616 | [
"BSD-3-Clause"
] | null | null | null | priv/repo/migrations/20160402025606_add_indexes.exs | fcapovilla/exagg | abcd3cea76c120575a5a5c6d058c7f6f48381616 | [
"BSD-3-Clause"
] | null | null | null | defmodule Exagg.Repo.Migrations.AddIndexes do
use Ecto.Migration
def change do
create index(:folders, [:position])
create index(:feeds, [:position])
create index(:items, [:date])
end
end
| 20.6 | 45 | 0.694175 |
e9929c7b94153ce2edd8ffb87d268e2c6a3cbbc0 | 3,760 | ex | Elixir | lib/mix/lib/mix/tasks/archive.install.ex | ashneyderman/elixir | 9c4646848a0b57ce918e6c5dc7494e9b4e0a0ec2 | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/tasks/archive.install.ex | ashneyderman/elixir | 9c4646848a0b57ce918e6c5dc7494e9b4e0a0ec2 | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/tasks/archive.install.ex | ashneyderman/elixir | 9c4646848a0b57ce918e6c5dc7494e9b4e0a0ec2 | [
"Apache-2.0"
] | null | null | null | defmodule Mix.Tasks.Archive.Install do
use Mix.Task
@shortdoc "Install an archive locally"
@moduledoc """
Install an archive locally.
If no argument is supplied but there is an archive in the root
(created with mix archive), then the archive will be installed
locally. For example:
mix do archive... | 30.569106 | 95 | 0.66117 |
e992a342c3845a04a4a759126477f3b21d3af89e | 581 | exs | Elixir | nerves.exs | ejc123/nerves_system_xu4 | 8b02cf9e2432c299d190c08afb574a17585bb708 | [
"Apache-2.0"
] | null | null | null | nerves.exs | ejc123/nerves_system_xu4 | 8b02cf9e2432c299d190c08afb574a17585bb708 | [
"Apache-2.0"
] | null | null | null | nerves.exs | ejc123/nerves_system_xu4 | 8b02cf9e2432c299d190c08afb574a17585bb708 | [
"Apache-2.0"
] | null | null | null | use Mix.Config
version =
Path.join(__DIR__, "VERSION")
|> File.read!
|> String.trim
pkg = :nerves_system_xu4
config pkg, :nerves_env,
type: :system,
version: version,
compiler: :nerves_package,
artifact_url: [
"https://github.com/ejc123/#{pkg}/releases/download/v#{version}/#{pkg}-v#{version}.tar.gz... | 19.366667 | 95 | 0.638554 |
e992b24da000f91580e5a11563d6edd413d30026 | 413 | ex | Elixir | lib/mix/tasks/minor.ex | kianmeng/version_tasks | 9b07113ce5155bcadae47c49a0ecaec22b1d7c68 | [
"MIT"
] | 18 | 2017-07-09T23:47:38.000Z | 2021-09-30T09:24:37.000Z | lib/mix/tasks/minor.ex | kianmeng/version_tasks | 9b07113ce5155bcadae47c49a0ecaec22b1d7c68 | [
"MIT"
] | 1 | 2022-01-29T08:48:10.000Z | 2022-01-29T08:48:10.000Z | lib/mix/tasks/minor.ex | kianmeng/version_tasks | 9b07113ce5155bcadae47c49a0ecaec22b1d7c68 | [
"MIT"
] | 2 | 2019-09-24T11:09:28.000Z | 2021-11-02T00:40:05.000Z | defmodule Mix.Tasks.Version.Minor do
use Mix.Task
use VersionTasks.FnExpr
alias Mix.Tasks.Version.Current
@shortdoc "Return minor number (so return '2' for version '1.2.3'"
def run(_) do
calc() |> IO.puts()
end
def calc(), do: calc(Current.calc())
def calc(version) do
version
|> String.sp... | 18.772727 | 68 | 0.627119 |
e992b7d3e9658f043a1fb7f6409eaf2ad1d62494 | 526 | exs | Elixir | test/bencode/decode_eqc.exs | olof/elixir-bencode | e9bd497f22ef5f4c481378ca1efbfde4a453b472 | [
"Apache-2.0"
] | 19 | 2015-12-05T13:50:41.000Z | 2022-01-31T20:20:48.000Z | test/bencode/decode_eqc.exs | olof/elixir-bencode | e9bd497f22ef5f4c481378ca1efbfde4a453b472 | [
"Apache-2.0"
] | 7 | 2016-02-24T13:46:42.000Z | 2020-03-23T01:03:26.000Z | test/bencode/decode_eqc.exs | olof/elixir-bencode | e9bd497f22ef5f4c481378ca1efbfde4a453b472 | [
"Apache-2.0"
] | 5 | 2016-02-24T13:18:29.000Z | 2019-09-09T08:59:52.000Z | defmodule Bencode.DecodeEQC do
use ExUnit.Case, async: true
use EQC.ExUnit
# Decode
property "decode numbers" do
forall input <- int() do
encoded_input = "i#{input}e"
{:ok, decoded_result} = Bencode.decode(encoded_input)
ensure decoded_result == input
end
end
property "decode str... | 23.909091 | 59 | 0.659696 |
e992bd2749c4bdfb3d483ba7aadfc2b9d4013ca2 | 17,275 | ex | Elixir | lib/absinthe/schema.ex | zoldar/absinthe | 72ff9f91fcc0a261f9965cf8120c7c72ff6e4c7c | [
"MIT"
] | null | null | null | lib/absinthe/schema.ex | zoldar/absinthe | 72ff9f91fcc0a261f9965cf8120c7c72ff6e4c7c | [
"MIT"
] | null | null | null | lib/absinthe/schema.ex | zoldar/absinthe | 72ff9f91fcc0a261f9965cf8120c7c72ff6e4c7c | [
"MIT"
] | null | null | null | defmodule Absinthe.Schema do
alias Absinthe.Type
alias __MODULE__
@type t :: module
@moduledoc """
Build GraphQL Schemas
## Custom Schema Manipulation (in progress)
In Absinthe 1.5 schemas are built using the same process by which queries are
executed. All the macros in this module and in `Notation` ... | 26.134644 | 156 | 0.67699 |
e992cb9897325eadd53790f04fac8d0004d2c57d | 181 | ex | Elixir | apps/service_orchestrate/lib/orchestrate/scheduler.ex | jdenen/hindsight | ef69b4c1a74c94729dd838a9a0849a48c9b6e04c | [
"Apache-2.0"
] | 12 | 2020-01-27T19:43:02.000Z | 2021-07-28T19:46:29.000Z | apps/service_orchestrate/lib/orchestrate/scheduler.ex | jdenen/hindsight | ef69b4c1a74c94729dd838a9a0849a48c9b6e04c | [
"Apache-2.0"
] | 81 | 2020-01-28T18:07:23.000Z | 2021-11-22T02:12:13.000Z | apps/service_orchestrate/lib/orchestrate/scheduler.ex | jdenen/hindsight | ef69b4c1a74c94729dd838a9a0849a48c9b6e04c | [
"Apache-2.0"
] | 10 | 2020-02-13T21:24:09.000Z | 2020-05-21T18:39:35.000Z | defmodule Orchestrate.Scheduler do
@moduledoc """
See [Quantum](https://hexdocs.pm/quantum/configuration.html).
"""
use Quantum.Scheduler, otp_app: :service_orchestrate
end
| 25.857143 | 63 | 0.751381 |
e992d03bf1ef905659ed953a50ec00c7270727dd | 13,830 | ex | Elixir | lib/validation/validation.ex | kickinespresso/ex_gtin | 0f2b9692b19192676367eb81c099fbc847b80351 | [
"MIT"
] | 11 | 2018-02-19T06:33:53.000Z | 2021-05-28T01:41:33.000Z | lib/validation/validation.ex | kickinespresso/ex_gtin | 0f2b9692b19192676367eb81c099fbc847b80351 | [
"MIT"
] | null | null | null | lib/validation/validation.ex | kickinespresso/ex_gtin | 0f2b9692b19192676367eb81c099fbc847b80351 | [
"MIT"
] | 1 | 2020-08-04T16:26:46.000Z | 2020-08-04T16:26:46.000Z | defmodule ExGtin.Validation do
@moduledoc """
Documentation for ExGtin. This library provides
functionality for validating GTIN compliant codes.
"""
@moduledoc since: "1.0.0"
@doc """
Check for valid GTIN-8, GTIN-12, GTIN-13, GTIN-14, GSIN, SSCC codes
Returns `{atom, String.t()}`
## Examples
... | 35.012658 | 156 | 0.578163 |
e993041cba61f0d6ba46c38f1517883da1617950 | 51 | exs | Elixir | config/dev.exs | michaelkitson/chargen_server | 2125858f22fe4317591cf819ca68a2b6b2a5b0be | [
"MIT"
] | 1 | 2016-04-14T04:02:50.000Z | 2016-04-14T04:02:50.000Z | config/test.exs | michaelkitson/chargen_server | 2125858f22fe4317591cf819ca68a2b6b2a5b0be | [
"MIT"
] | null | null | null | config/test.exs | michaelkitson/chargen_server | 2125858f22fe4317591cf819ca68a2b6b2a5b0be | [
"MIT"
] | null | null | null | use Mix.Config
config :chargen_server, port: 8000
| 12.75 | 34 | 0.784314 |
e9932a91c632f215905916d01010a76415f88513 | 1,938 | ex | Elixir | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v14/model/creative_corrections.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | null | null | null | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v14/model/creative_corrections.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | null | null | null | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v14/model/creative_corrections.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 35.888889 | 121 | 0.742002 |
e99330317ecdd4cb5b296d8dd2125c133187251a | 2,213 | exs | Elixir | mix.exs | marpo60/ecto | 2c2e1b467ec5de87ee41508070f6670288cd2a32 | [
"Apache-2.0"
] | null | null | null | mix.exs | marpo60/ecto | 2c2e1b467ec5de87ee41508070f6670288cd2a32 | [
"Apache-2.0"
] | null | null | null | mix.exs | marpo60/ecto | 2c2e1b467ec5de87ee41508070f6670288cd2a32 | [
"Apache-2.0"
] | null | null | null | defmodule Ecto.MixProject do
use Mix.Project
@version "3.1.3"
def project do
[
app: :ecto,
version: @version,
elixir: "~> 1.5",
deps: deps(),
consolidate_protocols: Mix.env() != :test,
# Hex
description: "A toolkit for data mapping and language integrated query for... | 22.814433 | 90 | 0.532309 |
e99335ae29af303e2e0e7c58b6776d6b50d79e8a | 3,826 | exs | Elixir | test/error_test.exs | revelrylabs/exdr | 4a3a5d65e2d0ba2daba32c5f648cbe401176e2e1 | [
"MIT"
] | 3 | 2020-01-12T03:16:38.000Z | 2020-09-06T03:37:03.000Z | test/error_test.exs | revelrylabs/exdr | 4a3a5d65e2d0ba2daba32c5f648cbe401176e2e1 | [
"MIT"
] | 7 | 2019-10-14T14:27:31.000Z | 2020-05-01T22:27:52.000Z | test/error_test.exs | revelrylabs/exdr | 4a3a5d65e2d0ba2daba32c5f648cbe401176e2e1 | [
"MIT"
] | 1 | 2020-02-06T23:19:24.000Z | 2020-02-06T23:19:24.000Z | defmodule XDR.ErrorTest do
use ExUnit.Case
alias XDR.Error
@message "Something bad happened"
defmodule ErrorXDR do
use XDR.Base
define_type("name", XDR.Type.VariableOpaque)
define_type("short_acct_id", XDR.Type.Opaque, 8)
define_type("long_acct_id", XDR.Type.Opaque, 16)
define_type("five_na... | 29.430769 | 94 | 0.553842 |
e9935e5b96bc05ec135814551c4074dcacd2db2c | 5,617 | ex | Elixir | clients/container_analysis/lib/google_api/container_analysis/v1alpha1/model/note.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/container_analysis/lib/google_api/container_analysis/v1alpha1/model/note.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/container_analysis/lib/google_api/container_analysis/v1alpha1/model/note.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 59.755319 | 176 | 0.72245 |
e99369be2ac225200f39d0fe28221a7cca5d6799 | 12,161 | exs | Elixir | apps/re/priv/repo/seeds.exs | ruby2elixir/emcasa-backend | 70d7f4f233555417941ffa6ada84cf8740c21dd2 | [
"MIT"
] | 4 | 2019-11-01T16:29:31.000Z | 2020-10-10T21:20:12.000Z | apps/re/priv/repo/seeds.exs | eduardomartines/emcasa-backend | 70d7f4f233555417941ffa6ada84cf8740c21dd2 | [
"MIT"
] | null | null | null | apps/re/priv/repo/seeds.exs | eduardomartines/emcasa-backend | 70d7f4f233555417941ffa6ada84cf8740c21dd2 | [
"MIT"
] | 5 | 2019-11-04T21:25:45.000Z | 2020-02-13T23:49:36.000Z | alias Re.{
Address,
Calendars.TourAppointment,
Development,
Favorite,
Image,
Interest,
Interests.ContactRequest,
Listing,
Listings.PriceHistory,
Listings.StatusHistory,
ListingTag,
PriceSuggestions.Request,
Repo,
Tag,
Unit,
User
}
Repo.delete_all(Image)
Repo.delete_all(Interest)
Repo.de... | 22.313761 | 79 | 0.614341 |
e993770d5fa366cf5072e737f348fd0d89112344 | 1,479 | ex | Elixir | lib/mail_slurp_api/model/page_webhook_projection.ex | sumup-bank/mailslurp-client-elixir | 87ccdedf2f0f4cd3e50f5781ffb088142e3cf4e8 | [
"MIT"
] | null | null | null | lib/mail_slurp_api/model/page_webhook_projection.ex | sumup-bank/mailslurp-client-elixir | 87ccdedf2f0f4cd3e50f5781ffb088142e3cf4e8 | [
"MIT"
] | null | null | null | lib/mail_slurp_api/model/page_webhook_projection.ex | sumup-bank/mailslurp-client-elixir | 87ccdedf2f0f4cd3e50f5781ffb088142e3cf4e8 | [
"MIT"
] | null | null | null | # NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
# https://openapi-generator.tech
# Do not edit the class manually.
defmodule MailSlurpAPI.Model.PageWebhookProjection do
@moduledoc """
Paginated webhook results. Page index starts at zero. Projection results may omit large... | 29.58 | 190 | 0.648411 |
e993961a531de8725c7d6461c4b405c25a1d295f | 3,805 | ex | Elixir | lib/membrane/rtp/ssrc_router.ex | simoexpo/membrane_rtp_plugin | 925053eb6ad0befbfe79ab1dad51e40f3b68ae69 | [
"Apache-2.0"
] | null | null | null | lib/membrane/rtp/ssrc_router.ex | simoexpo/membrane_rtp_plugin | 925053eb6ad0befbfe79ab1dad51e40f3b68ae69 | [
"Apache-2.0"
] | null | null | null | lib/membrane/rtp/ssrc_router.ex | simoexpo/membrane_rtp_plugin | 925053eb6ad0befbfe79ab1dad51e40f3b68ae69 | [
"Apache-2.0"
] | null | null | null | defmodule Membrane.RTP.SSRCRouter do
@moduledoc """
A filter separating RTP packets from different SSRCs into different outpts.
When receiving a new SSRC, it creates a new pad and notifies its parent (`t:new_stream_notification_t/0`) that should link
the new output pad.
"""
use Membrane.Filter
alias Me... | 29.496124 | 124 | 0.645466 |
e993acdd880a3470347ba21364e48f1171c8d6f4 | 275 | exs | Elixir | config/dogma.exs | szTheory/bsoneach | deb0a6721518ed9712cef4fc952df5ae3ba23c69 | [
"MIT"
] | 8 | 2016-08-05T19:28:16.000Z | 2021-07-15T22:00:30.000Z | config/dogma.exs | szTheory/bsoneach | deb0a6721518ed9712cef4fc952df5ae3ba23c69 | [
"MIT"
] | 5 | 2016-08-29T13:07:15.000Z | 2016-11-24T16:58:01.000Z | config/dogma.exs | szTheory/bsoneach | deb0a6721518ed9712cef4fc952df5ae3ba23c69 | [
"MIT"
] | 5 | 2018-06-19T02:43:46.000Z | 2021-07-15T22:00:36.000Z | use Mix.Config
alias Dogma.Rule
config :dogma,
rule_set: Dogma.RuleSet.All,
override: [
%Rule.LineLength{ max_length: 120 },
%Rule.TakenName{ enabled: false }, # TODO: https://github.com/lpil/dogma/issues/201
%Rule.InfixOperatorPadding{ enabled: false }
]
| 25 | 87 | 0.698182 |
e993bb432b0fc0d049334db3c5807f924c1393ae | 701 | exs | Elixir | test/screens_web/ensure_screens_group.exs | mbta/screens | 4b586970f8844b19543bb2ffd4b032a89f6fa40a | [
"MIT"
] | 3 | 2021-07-27T14:11:00.000Z | 2022-01-03T14:16:43.000Z | test/screens_web/ensure_screens_group.exs | mbta/screens | 4b586970f8844b19543bb2ffd4b032a89f6fa40a | [
"MIT"
] | 444 | 2021-03-10T20:57:17.000Z | 2022-03-31T16:00:35.000Z | test/screens_web/ensure_screens_group.exs | mbta/screens | 4b586970f8844b19543bb2ffd4b032a89f6fa40a | [
"MIT"
] | null | null | null | defmodule ScreensWeb.EnsureScreensGroupTest do
use ScreensWeb.ConnCase
describe "init/1" do
test "passes options through unchanged" do
assert ScreensWeb.EnsureScreensGroup.init([]) == []
end
end
describe "call/2" do
@tag :authenticated
test "does nothing when user is in the screens-admin... | 28.04 | 82 | 0.691869 |
e993ed430c308eedb521a4738b0a747d60ac5c5b | 350 | exs | Elixir | config/config.exs | nacengineer/imagine_cms | 00a73790f9de6c409bb87e1fdfb3b41010a9d222 | [
"Apache-2.0"
] | 3 | 2022-03-05T13:46:23.000Z | 2022-03-07T13:15:29.000Z | config/config.exs | DevWasi/secruex | 5ae45935612e965fd0db682e510bf3d4dc14565e | [
"Apache-2.0"
] | null | null | null | config/config.exs | DevWasi/secruex | 5ae45935612e965fd0db682e510bf3d4dc14565e | [
"Apache-2.0"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
#
# This configuration file is loaded before any dependency and
# is restricted to this project.
# General application configuration
use Mix.Config
# Use Jason for JSON parsing in Phoenix
config :... | 29.166667 | 61 | 0.794286 |
e99417aa870c18df1f1fc0e62bc527f37a7925f2 | 1,840 | ex | Elixir | lib/libralyweb_web/telemetry.ex | acmfi/ACM-libraly-web | 0e41135aa8becdbe722a64098982d96e71fcc527 | [
"MIT"
] | null | null | null | lib/libralyweb_web/telemetry.ex | acmfi/ACM-libraly-web | 0e41135aa8becdbe722a64098982d96e71fcc527 | [
"MIT"
] | 5 | 2020-09-01T22:13:47.000Z | 2021-06-21T18:10:29.000Z | lib/libralyweb_web/telemetry.ex | acmfi/ACM-libraly-web | 0e41135aa8becdbe722a64098982d96e71fcc527 | [
"MIT"
] | null | null | null | defmodule LibralywebWeb.Telemetry do
use Supervisor
import Telemetry.Metrics
def start_link(arg) do
Supervisor.start_link(__MODULE__, arg, name: __MODULE__)
end
@impl true
def init(_arg) do
children = [
# Telemetry poller will execute the given period measurements
# every 10_000ms. Lea... | 32.857143 | 86 | 0.675543 |
e99420393dd5678a3e1376d12ab1d2bee5428e25 | 586 | ex | Elixir | lib/presto/application.ex | ijcd/presto | 6aa07267f2340d799939ce595fc199d1ad473562 | [
"Apache-2.0"
] | 12 | 2018-04-26T06:12:46.000Z | 2021-01-04T16:21:04.000Z | lib/presto/application.ex | ijcd/presto | 6aa07267f2340d799939ce595fc199d1ad473562 | [
"Apache-2.0"
] | 8 | 2020-06-10T07:45:19.000Z | 2020-06-10T07:45:30.000Z | lib/presto/application.ex | ijcd/presto | 6aa07267f2340d799939ce595fc199d1ad473562 | [
"Apache-2.0"
] | 1 | 2018-04-26T06:12:51.000Z | 2018-04-26T06:12:51.000Z | defmodule Presto.Application do
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
use Application
def start(_type, _args) do
# List all child processes to be supervised
children = [
{Registry, keys: :unique, name: Presto.ComponentRegis... | 27.904762 | 64 | 0.711604 |
e994633294d1ead217372b2ea2dfc65e87651f53 | 1,302 | ex | Elixir | backend/lib/bucoliq_web/endpoint.ex | antogon/bucoliq | 0fe4727c4312322862d30014bdfae2530cc49de1 | [
"MIT"
] | null | null | null | backend/lib/bucoliq_web/endpoint.ex | antogon/bucoliq | 0fe4727c4312322862d30014bdfae2530cc49de1 | [
"MIT"
] | 9 | 2019-12-01T18:31:31.000Z | 2021-03-10T00:38:48.000Z | backend/lib/bucoliq_web/endpoint.ex | antogon/bucoliq | 0fe4727c4312322862d30014bdfae2530cc49de1 | [
"MIT"
] | null | null | null | defmodule BucoliqWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :bucoliq
socket "/socket", BucoliqWeb.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 stati... | 27.702128 | 69 | 0.710445 |
e99477dc4e921eb2ad1b715a5759d16d28fd0606 | 168 | exs | Elixir | test/harald/data_type/manufacturer_data/apple_test.exs | smartrent/harald | 158a69bc2b70b3f51d67bd935d223a42a3633d68 | [
"MIT"
] | 3 | 2020-08-07T02:09:09.000Z | 2020-08-28T12:25:48.000Z | test/harald/data_type/manufacturer_data/apple_test.exs | smartrent/harald | 158a69bc2b70b3f51d67bd935d223a42a3633d68 | [
"MIT"
] | null | null | null | test/harald/data_type/manufacturer_data/apple_test.exs | smartrent/harald | 158a69bc2b70b3f51d67bd935d223a42a3633d68 | [
"MIT"
] | null | null | null | defmodule Harald.DataType.ManufacturerData.AppleTest do
use ExUnit.Case, async: true
alias Harald.DataType.ManufacturerData.Apple
doctest Apple, import: true
end
| 28 | 55 | 0.815476 |
e99490a2ff632ce7270570686764e7882142dc09 | 3,245 | ex | Elixir | lib/surface/components/context.ex | yusufyildirim/surface | 1cacafa275ec7fefa862af7fd86794a400652e9d | [
"MIT"
] | null | null | null | lib/surface/components/context.ex | yusufyildirim/surface | 1cacafa275ec7fefa862af7fd86794a400652e9d | [
"MIT"
] | null | null | null | lib/surface/components/context.ex | yusufyildirim/surface | 1cacafa275ec7fefa862af7fd86794a400652e9d | [
"MIT"
] | null | null | null | defmodule Surface.Components.Context do
@moduledoc """
A built-in component that allows users to set and retrieve values from the context.
"""
use Surface.Component
@doc """
Puts a value into the context.
## Usage
```
<Context put={scope, values}>
...
</Context>
```
Where:
* `scope... | 21.633333 | 85 | 0.588598 |
e9950477935af0ce57f09295cc5d41271779985e | 389 | ex | Elixir | lib/blog_web/controllers/plug/require_auth.ex | eltoncampos1/blog_elixir | 99fd5d5415192229cda749a88b30bf63d5817c4f | [
"MIT"
] | null | null | null | lib/blog_web/controllers/plug/require_auth.ex | eltoncampos1/blog_elixir | 99fd5d5415192229cda749a88b30bf63d5817c4f | [
"MIT"
] | null | null | null | lib/blog_web/controllers/plug/require_auth.ex | eltoncampos1/blog_elixir | 99fd5d5415192229cda749a88b30bf63d5817c4f | [
"MIT"
] | null | null | null | defmodule BlogWeb.Plug.RequireAuth do
@moduledoc """
Plug.RequireAuth module
"""
import Plug.Conn
use BlogWeb, :controller
def init(_), do: nil
def call(conn, _params) do
if conn.assigns[:user] do
conn
else
conn
|> put_flash(:error, "You are not logged in.")
|> redirect(t... | 18.52381 | 53 | 0.614396 |
e9950ac88400ec2cfcd5a7b287eb0c10e1d38ed4 | 2,601 | ex | Elixir | DL-GS3/DL-GS3.ex | Realscrat/decentlab-decoders | 3ca5006cd85e3772a15a1b3fff3922c50979eeb6 | [
"MIT"
] | 13 | 2020-01-18T22:08:44.000Z | 2022-02-06T14:19:57.000Z | DL-GS3/DL-GS3.ex | johannesE/decentlab-decoders | c290ea1218de2c82d665fdc9f71f16682e12d917 | [
"MIT"
] | 4 | 2019-05-10T07:17:41.000Z | 2021-10-20T16:24:04.000Z | DL-GS3/DL-GS3.ex | johannesE/decentlab-decoders | c290ea1218de2c82d665fdc9f71f16682e12d917 | [
"MIT"
] | 15 | 2019-06-04T06:13:32.000Z | 2022-02-15T07:28:52.000Z |
# https://www.decentlab.com/support
defmodule DecentlabDecoder do
@protocol_version 2
defp sensor_defs do
[
%{
length: 3,
values: [
%{
:name => "Dielectric permittivity",
:convert => fn x -> Enum.at(x, 0) / 100 end,
:unit => nil
},... | 26.814433 | 166 | 0.520953 |
e9951309a6513ebd6693a00ea2e81b5ad625180c | 991 | ex | Elixir | lib/hyper_potion.ex | selfup/hyper_potion | 6e4f3f393e4fd8d7ddf7e0dcbf8021e7dad18823 | [
"MIT"
] | null | null | null | lib/hyper_potion.ex | selfup/hyper_potion | 6e4f3f393e4fd8d7ddf7e0dcbf8021e7dad18823 | [
"MIT"
] | null | null | null | lib/hyper_potion.ex | selfup/hyper_potion | 6e4f3f393e4fd8d7ddf7e0dcbf8021e7dad18823 | [
"MIT"
] | null | null | null | defmodule HyperPotion do
use Application
# See http://elixir-lang.org/docs/stable/elixir/Application.html
# for more information on OTP Applications
def start(_type, _args) do
import Supervisor.Spec
# Define workers and child supervisors to be supervised
children = [
# Start the endpoint whe... | 33.033333 | 89 | 0.726539 |
e99525e9179e96c45ec311695e16281fbdbe0bed | 1,396 | ex | Elixir | 13-phoenix/chirp/lib/chirp_web/live/post_live/index.ex | kranfix/elixir-playground | 28f1314b137eb591946f501647e76d8017070ffa | [
"MIT"
] | null | null | null | 13-phoenix/chirp/lib/chirp_web/live/post_live/index.ex | kranfix/elixir-playground | 28f1314b137eb591946f501647e76d8017070ffa | [
"MIT"
] | null | null | null | 13-phoenix/chirp/lib/chirp_web/live/post_live/index.ex | kranfix/elixir-playground | 28f1314b137eb591946f501647e76d8017070ffa | [
"MIT"
] | 1 | 2020-11-17T07:06:17.000Z | 2020-11-17T07:06:17.000Z | defmodule ChirpWeb.PostLive.Index do
use ChirpWeb, :live_view
alias Chirp.Timeline
alias Chirp.Timeline.Post
@impl true
def mount(_params, _session, socket) do
if connected?(socket), do: Timeline.subscribe()
{:ok, assign(socket, :posts, list_posts()), temporary_assigns: [posts: []]}
end
@impl t... | 24.928571 | 79 | 0.654728 |
e9957871cf775f85a88aa41987c6feddbc3ed462 | 159 | ex | Elixir | lib/cadet/accounts/provider.ex | Hou-Rui/cadet | f9036d76005bf3b267b632dce176067ae1a19f71 | [
"Apache-2.0"
] | null | null | null | lib/cadet/accounts/provider.ex | Hou-Rui/cadet | f9036d76005bf3b267b632dce176067ae1a19f71 | [
"Apache-2.0"
] | 2 | 2020-04-22T09:06:38.000Z | 2020-04-22T09:15:33.000Z | lib/cadet/accounts/provider.ex | Hou-Rui/cadet | f9036d76005bf3b267b632dce176067ae1a19f71 | [
"Apache-2.0"
] | 1 | 2020-06-01T03:26:02.000Z | 2020-06-01T03:26:02.000Z | import EctoEnum
defenum(Cadet.Accounts.Provider, :provider, [
# An LumiNUS authentication token provides a NUSNET ID to track user identity
:nusnet_id
])
| 22.714286 | 79 | 0.773585 |
e9959b62d1c600153ea103b828b851b0c2f97ef8 | 1,336 | ex | Elixir | lib/wechat/work/agent.ex | hsieh/wechat | 6a49033d3a35a80358481778a0609f214c340a0c | [
"Apache-2.0"
] | null | null | null | lib/wechat/work/agent.ex | hsieh/wechat | 6a49033d3a35a80358481778a0609f214c340a0c | [
"Apache-2.0"
] | null | null | null | lib/wechat/work/agent.ex | hsieh/wechat | 6a49033d3a35a80358481778a0609f214c340a0c | [
"Apache-2.0"
] | null | null | null | defmodule WeChat.Work.Agent do
@moduledoc "应用"
import WeChat.Utils, only: [work_doc_link_prefix: 0]
@term_introduction_doc_link "#{work_doc_link_prefix()}/90000/90135/90665"
@typedoc """
每个应用都有唯一的 agentid -
[官方文档](#{@term_introduction_doc_link}#agentid)
在管理后台->“应用与小程序”->“应用”,点进某个应用,即可看到 agentid
"""
... | 25.207547 | 87 | 0.642964 |
e995a1d245cba30b0aebf6926f88d015c19e7e5d | 803 | ex | Elixir | lib/edantic/cast_error.ex | savonarola/edantic | e5db56ea61fc27edae4dcfa22afa232b3a954628 | [
"MIT"
] | 27 | 2019-12-27T15:43:50.000Z | 2021-11-15T11:17:07.000Z | lib/edantic/cast_error.ex | savonarola/edantic | e5db56ea61fc27edae4dcfa22afa232b3a954628 | [
"MIT"
] | 2 | 2020-02-06T10:02:25.000Z | 2020-02-06T11:28:12.000Z | lib/edantic/cast_error.ex | savonarola/edantic | e5db56ea61fc27edae4dcfa22afa232b3a954628 | [
"MIT"
] | null | null | null | defmodule Edantic.CastError do
defstruct type: nil,
data: nil,
message: "",
previous_error: nil
alias __MODULE__, as: CastError
@type t() :: %CastError{}
@spec new(String.t(), term(), term(), t() | nil) :: t()
def new(message, type, data, previous_error \\ nil) do
%C... | 25.09375 | 86 | 0.594022 |
e995ab1875960ed233683445e1450c0314d9bed5 | 1,473 | exs | Elixir | test/mix/tasks/triplex.migrations_test.exs | felipe-kosouski/triplex | daa68037217a17eedf9eef4c9e8ca88da4ad8870 | [
"MIT"
] | 344 | 2017-07-03T11:30:26.000Z | 2022-03-30T19:11:41.000Z | test/mix/tasks/triplex.migrations_test.exs | felipe-kosouski/triplex | daa68037217a17eedf9eef4c9e8ca88da4ad8870 | [
"MIT"
] | 56 | 2017-06-29T01:55:35.000Z | 2022-03-15T22:09:47.000Z | test/mix/tasks/triplex.migrations_test.exs | felipe-kosouski/triplex | daa68037217a17eedf9eef4c9e8ca88da4ad8870 | [
"MIT"
] | 45 | 2017-08-15T18:59:41.000Z | 2022-03-17T17:00:50.000Z | defmodule Mix.Tasks.Triplex.MigrationsTest do
use ExUnit.Case
alias Mix.Tasks.Triplex.Migrations
alias Ecto.Migrator
@repos [Triplex.PGTestRepo, Triplex.MSTestRepo]
setup do
for repo <- @repos do
Ecto.Adapters.SQL.Sandbox.mode(repo, :auto)
drop_tenants = fn ->
Triplex.drop("migrati... | 27.277778 | 69 | 0.513917 |
e995ad3cd0f6663e1a560aa40e8234b0b0447f06 | 1,968 | exs | Elixir | test/primitive_test.exs | norbertskakste/Elibuf | 6976eddfbbe9498a15fc6bfb587d7b53fb8845ce | [
"Apache-2.0"
] | 4 | 2017-04-11T14:31:23.000Z | 2019-06-04T20:08:02.000Z | test/primitive_test.exs | norbertskakste/Elibuf | 6976eddfbbe9498a15fc6bfb587d7b53fb8845ce | [
"Apache-2.0"
] | null | null | null | test/primitive_test.exs | norbertskakste/Elibuf | 6976eddfbbe9498a15fc6bfb587d7b53fb8845ce | [
"Apache-2.0"
] | null | null | null | defmodule ElibufTest.Primitives do
use ExUnit.Case
alias Elibuf.Primitives
defp check_repeating(%Primitives.Base{} = primitive) do
assert primitive.repeating == false
end
defp check_default(%Primitives.Base{} = primitive) do
assert primitive.default == nil
end
defp check_prim... | 24.296296 | 84 | 0.617378 |
e995d8ee0d76fd2cfd2d9d522cf0fdc9b5845f15 | 1,657 | exs | Elixir | apps/health/test/health/checkers/run_queue_test.exs | fjlanasa/api | c39bc393aea572bfb81754b2ea1adf9dda9ce24a | [
"MIT"
] | 62 | 2019-01-17T12:34:39.000Z | 2022-03-20T21:49:47.000Z | apps/health/test/health/checkers/run_queue_test.exs | fjlanasa/api | c39bc393aea572bfb81754b2ea1adf9dda9ce24a | [
"MIT"
] | 375 | 2019-02-13T15:30:50.000Z | 2022-03-30T18:50:41.000Z | apps/health/test/health/checkers/run_queue_test.exs | fjlanasa/api | c39bc393aea572bfb81754b2ea1adf9dda9ce24a | [
"MIT"
] | 14 | 2019-01-16T19:35:57.000Z | 2022-02-26T18:55:54.000Z | defmodule Health.Checkers.RunQueueTest do
use ExUnit.Case
import Health.Checkers.RunQueue
describe "log_processes/2" do
test "logs if we're not healthy and the log level is low enough" do
assert log_processes(false, :info) == :logged
assert log_processes(false, :debug) == :logged
end
tes... | 31.264151 | 153 | 0.662643 |
e995f1e04ee1f6668ca5879d683f25fea602a41a | 2,245 | ex | Elixir | clients/container_analysis/lib/google_api/container_analysis/v1alpha1/model/containeranalysis_google_devtools_cloudbuild_v1_inline_secret.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/container_analysis/lib/google_api/container_analysis/v1alpha1/model/containeranalysis_google_devtools_cloudbuild_v1_inline_secret.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/container_analysis/lib/google_api/container_analysis/v1alpha1/model/containeranalysis_google_devtools_cloudbuild_v1_inline_secret.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... | 39.385965 | 340 | 0.74833 |
e995fcaeaab4b76fa6239bd8391babaad810b9b6 | 576 | exs | Elixir | integration_test/cases/element/hover_test.exs | shiroyasha/wallaby | a81c66c143cd4827735c0d708ceae8bde91668c0 | [
"MIT"
] | null | null | null | integration_test/cases/element/hover_test.exs | shiroyasha/wallaby | a81c66c143cd4827735c0d708ceae8bde91668c0 | [
"MIT"
] | null | null | null | integration_test/cases/element/hover_test.exs | shiroyasha/wallaby | a81c66c143cd4827735c0d708ceae8bde91668c0 | [
"MIT"
] | null | null | null | defmodule Wallaby.Integration.Element.HoverTest do
use Wallaby.Integration.SessionCase, async: true
setup %{session: session} do
{:ok, page: visit(session, "hover.html")}
end
describe "hover/2" do
test "hovers over the specified element", %{page: page} do
page
|> find(Query.text("HI", visi... | 25.043478 | 62 | 0.602431 |
e996134bd85a56888d451ea5abbbe019caf99fd5 | 1,567 | ex | Elixir | test/support/model_case.ex | retrixer/retrixer | 5efeb9cd51fdf728cb06a4be5678ca824dc50568 | [
"MIT"
] | 3 | 2015-11-11T11:49:02.000Z | 2015-11-12T18:20:43.000Z | test/support/model_case.ex | retrixer/retrixer | 5efeb9cd51fdf728cb06a4be5678ca824dc50568 | [
"MIT"
] | null | null | null | test/support/model_case.ex | retrixer/retrixer | 5efeb9cd51fdf728cb06a4be5678ca824dc50568 | [
"MIT"
] | null | null | null | defmodule Retrixer.ModelCase do
@moduledoc """
This module defines the test case to be used by
model tests.
You may define functions here to be used as helpers in
your model tests. See `errors_on/2`'s definition as reference.
Finally, if the test case interacts with the database,
it cannot be async. For... | 26.116667 | 84 | 0.687301 |
e99620e584f35227b7b2872b9584b1fe7122a952 | 2,384 | ex | Elixir | lib/parsers/itunes_rss2.ex | kianmeng/elixir-feed-parser | 83302ea749d0de9bee3803a639663046e43dc8bd | [
"MIT"
] | null | null | null | lib/parsers/itunes_rss2.ex | kianmeng/elixir-feed-parser | 83302ea749d0de9bee3803a639663046e43dc8bd | [
"MIT"
] | null | null | null | lib/parsers/itunes_rss2.ex | kianmeng/elixir-feed-parser | 83302ea749d0de9bee3803a639663046e43dc8bd | [
"MIT"
] | null | null | null | defmodule ElixirFeedParser.Parsers.ITunesRSS2 do
import ElixirFeedParser.Parsers.Helper
alias ElixirFeedParser.XmlNode
alias ElixirFeedParser.Parsers.RSS2
# http://www.apple.com/itunes/whatson/podcasts/specs.html
def can_parse?(xml) do
RSS2.can_parse?(xml) && itunes_namespace?(xml)
end
def parse(xml... | 35.58209 | 78 | 0.666946 |
e99647f976281faef2baf96397fa416bed6820a0 | 450 | ex | Elixir | lib/zappa/helpers/unescaped_default.ex | fireproofsocks/zappa | d89d983b73652e761861bd7c2c5d03a45fc4badd | [
"Apache-2.0"
] | 1 | 2021-08-23T21:48:14.000Z | 2021-08-23T21:48:14.000Z | lib/zappa/helpers/unescaped_default.ex | fireproofsocks/zappa | d89d983b73652e761861bd7c2c5d03a45fc4badd | [
"Apache-2.0"
] | null | null | null | lib/zappa/helpers/unescaped_default.ex | fireproofsocks/zappa | d89d983b73652e761861bd7c2c5d03a45fc4badd | [
"Apache-2.0"
] | null | null | null | defmodule Zappa.Helpers.UnescapedDefault do
@moduledoc false
# This is the default helper used for escaped tags, e.g. `{{{tags}}}`.
alias Zappa.Tag
@spec parse(%Tag{}) :: {:ok, String.t()} | {:ok, String.t()}
def parse(%Tag{raw_options: ""} = tag),
do: {:ok, "<%= #{tag.name} %>"}
@spec parse(%Tag{}) ... | 28.125 | 72 | 0.597778 |
e9965988e81bbe2a2efae712178f469b61295770 | 1,315 | ex | Elixir | lib/phoenix/live_dashboard/components/row_component.ex | mattnenterprise/phoenix_live_dashboard | 4b8f9e7aa8fe1d0df062648254baa4aa6e8588cf | [
"MIT"
] | 1,733 | 2020-03-03T14:39:31.000Z | 2022-03-29T14:11:23.000Z | lib/phoenix/live_dashboard/components/row_component.ex | mattnenterprise/phoenix_live_dashboard | 4b8f9e7aa8fe1d0df062648254baa4aa6e8588cf | [
"MIT"
] | 306 | 2020-03-06T08:28:01.000Z | 2022-03-23T06:38:29.000Z | deps/phoenix_live_dashboard/lib/phoenix/live_dashboard/components/row_component.ex | adrianomota/blog | ef3b2d2ed54f038368ead8234d76c18983caa75b | [
"MIT"
] | 169 | 2020-03-05T05:04:10.000Z | 2022-03-28T18:36:27.000Z | defmodule Phoenix.LiveDashboard.RowComponent do
use Phoenix.LiveDashboard.Web, :live_component
@impl true
def mount(socket) do
{:ok, socket}
end
def normalize_params(params) do
params
|> validate_required([:components])
|> normalize_components()
end
defp validate_required(params, list) ... | 25.784314 | 94 | 0.663118 |
e9965fbc4f4e8bb96fefecc1b907072df7f1d751 | 2,107 | ex | Elixir | lib/samly/assertion.ex | gen1321/samly | fe87280369c666765c2eb92a0d5959cfe280e431 | [
"MIT"
] | null | null | null | lib/samly/assertion.ex | gen1321/samly | fe87280369c666765c2eb92a0d5959cfe280e431 | [
"MIT"
] | 1 | 2019-08-09T19:57:09.000Z | 2019-08-16T09:23:26.000Z | lib/samly/assertion.ex | gen1321/samly | fe87280369c666765c2eb92a0d5959cfe280e431 | [
"MIT"
] | 1 | 2020-07-28T18:33:30.000Z | 2020-07-28T18:33:30.000Z | defmodule Samly.Assertion do
@moduledoc """
SAML assertion returned from IDP upon successful user authentication.
The assertion attributes returned by the IdP are available in `attributes` field
as a map. Any computed attributes (using a Plug Pipeline by way of configuration)
are available in `computed` fiel... | 29.676056 | 94 | 0.616991 |
e9967497a75c65bb960e608bbb8c189f4c1db43d | 2,257 | ex | Elixir | clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_list_zones_response.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_list_zones_response.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_list_zones_response.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... | 38.254237 | 129 | 0.715995 |
e996874a7a573317bbdb3b77df6e8dd85787cc49 | 12,824 | ex | Elixir | resources/Color Settings Page Demo Text.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 1,668 | 2015-01-03T05:54:27.000Z | 2022-03-25T08:01:20.000Z | resources/Color Settings Page Demo Text.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 2,018 | 2015-01-01T22:43:39.000Z | 2022-03-31T20:13:08.000Z | resources/Color Settings Page Demo Text.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 145 | 2015-01-15T11:37:16.000Z | 2021-12-22T05:51:02.000Z | # Numbers
0b0101011
1234 ; 0x1A ; 0xbeef ; 0763 ; 0o123
3.14 ; 5.0e21 ; 0.5e-12
100_000_000
# these are not valid numbers
0b012 ; 0xboar ; 0o888
0B01 ; 0XAF ; 0O123
# Characters
?a ; ?1 ; ?<escape-sequence>\n</escape-sequence> ; ?<escape-sequence>\s</escape-sequence> ; ?<escape-sequence>\c</escape-sequence> ; ? ; ?,
... | 53.211618 | 454 | 0.695259 |
e996bdc2b972754fb1c5f1e937d51ae9d06bcab0 | 1,788 | ex | Elixir | lib/leather_web/controllers/user_controller.ex | nicksergeant/leather | 15b1c9403999737f7a6ee9a1c0349e047805bbe6 | [
"MIT"
] | 67 | 2016-10-24T04:11:40.000Z | 2021-11-25T16:46:51.000Z | lib/leather_web/controllers/user_controller.ex | nicksergeant/leather | 15b1c9403999737f7a6ee9a1c0349e047805bbe6 | [
"MIT"
] | 6 | 2017-08-17T21:43:50.000Z | 2021-11-03T13:13:49.000Z | lib/leather_web/controllers/user_controller.ex | nicksergeant/leather | 15b1c9403999737f7a6ee9a1c0349e047805bbe6 | [
"MIT"
] | 7 | 2017-08-13T01:43:37.000Z | 2022-01-11T04:38:27.000Z | defmodule LeatherWeb.UserController do
@moduledoc false
use LeatherWeb, :controller
plug(
:forbid_authenticated_users
when action in [:login, :login_form, :signup, :signup_form]
)
alias Leather.Auth
alias Leather.Repo
alias Leather.User
def login_form(conn, _params) do
render(conn, "logi... | 22.632911 | 77 | 0.606823 |
e996f0acd64df7f52b76f42dc62ddf6c458351e9 | 4,362 | ex | Elixir | lib/alods/record.ex | smeevil/alods | 284224bc63c668e1e273251c67614aa2e40b37eb | [
"WTFPL"
] | 1 | 2017-10-03T12:30:53.000Z | 2017-10-03T12:30:53.000Z | lib/alods/record.ex | smeevil/alods | 284224bc63c668e1e273251c67614aa2e40b37eb | [
"WTFPL"
] | null | null | null | lib/alods/record.ex | smeevil/alods | 284224bc63c668e1e273251c67614aa2e40b37eb | [
"WTFPL"
] | null | null | null | defmodule Alods.Record do
@moduledoc """
These are the records that are stored in the queue.
"""
use Ecto.Schema
import Ecto.Changeset
@primary_key {:id, :binary_id, []}
embedded_schema do
field :created_at, :utc_datetime
field :callback, Alods.EctoCallback
field :delivered_at, :utc_datetime... | 34.346457 | 116 | 0.655892 |
e996feb84670b2e9954613661041b18350191f83 | 1,133 | ex | Elixir | lib/live_gtn_web/router.ex | wasi0013/live_gtn | 8fde0cb34d41322a9c4e76abe75da4218afacf13 | [
"MIT"
] | null | null | null | lib/live_gtn_web/router.ex | wasi0013/live_gtn | 8fde0cb34d41322a9c4e76abe75da4218afacf13 | [
"MIT"
] | null | null | null | lib/live_gtn_web/router.ex | wasi0013/live_gtn | 8fde0cb34d41322a9c4e76abe75da4218afacf13 | [
"MIT"
] | null | null | null | defmodule LiveGtnWeb.Router do
use LiveGtnWeb, :router
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_live_flash
plug :put_root_layout, {LiveGtnWeb.LayoutView, :root}
plug :protect_from_forgery
plug :put_secure_browser_headers
end
pipeline :api do
plug... | 25.75 | 70 | 0.700794 |
e996ffabf53270b2a0179ac62fa8bd699d83e133 | 691 | exs | Elixir | gen_fsm_playground/mix.exs | enilsen16/elixir | b4d1d45858a25e4beb39e07de8685f3d93d6a520 | [
"MIT"
] | null | null | null | gen_fsm_playground/mix.exs | enilsen16/elixir | b4d1d45858a25e4beb39e07de8685f3d93d6a520 | [
"MIT"
] | null | null | null | gen_fsm_playground/mix.exs | enilsen16/elixir | b4d1d45858a25e4beb39e07de8685f3d93d6a520 | [
"MIT"
] | null | null | null | defmodule GenFsmPlayground.Mixfile do
use Mix.Project
def project do
[app: :gen_fsm_playground,
version: "0.0.1",
elixir: "~> 1.3-dev",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps]
end
# Configuration for the OTP application
#
# Type "mix he... | 20.939394 | 77 | 0.620839 |
e9971425706f227630ee960622b853e29c2ef722 | 370 | exs | Elixir | priv/repo/migrations/20170426142928_create_users_table.exs | zoosky/elixir-phoenix-realworld-example-app | 8620fb2829703051cdbd032f93be6cd941c4810e | [
"MIT"
] | 909 | 2017-11-16T08:41:08.000Z | 2022-03-31T21:59:17.000Z | priv/repo/migrations/20170426142928_create_users_table.exs | zoosky/elixir-phoenix-realworld-example-app | 8620fb2829703051cdbd032f93be6cd941c4810e | [
"MIT"
] | 36 | 2017-11-28T01:31:05.000Z | 2021-12-15T05:03:00.000Z | priv/repo/migrations/20170426142928_create_users_table.exs | zoosky/elixir-phoenix-realworld-example-app | 8620fb2829703051cdbd032f93be6cd941c4810e | [
"MIT"
] | 160 | 2017-11-16T06:00:37.000Z | 2022-01-20T13:50:42.000Z | defmodule RealWorld.Repo.Migrations.CreateUsersTable do
use Ecto.Migration
def change do
create table(:users) do
add(:username, :string)
add(:password, :string)
add(:email, :string)
add(:bio, :string)
add(:image, :string)
timestamps(inserted_at: :created_at)
end
cr... | 20.555556 | 55 | 0.648649 |
e9971f3ed92e9bdcedbb4bbd87ae2098542787ec | 20,549 | ex | Elixir | clients/content/lib/google_api/content/v2/model/product.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/model/product.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/model/product.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... | 73.128114 | 473 | 0.668354 |
e9973aaeccc5cc2fd9eaaa6b7617f62ce5113fec | 1,525 | ex | Elixir | imdb_data/test/support/data_case.ex | defndaines/eiga | 89adc25dd6c7a5be86d6dc6be9dffc62ad05bdd8 | [
"Apache-2.0"
] | null | null | null | imdb_data/test/support/data_case.ex | defndaines/eiga | 89adc25dd6c7a5be86d6dc6be9dffc62ad05bdd8 | [
"Apache-2.0"
] | 2 | 2016-03-10T03:04:11.000Z | 2017-02-11T17:43:44.000Z | imdb_data/test/support/data_case.ex | defndaines/eiga | 89adc25dd6c7a5be86d6dc6be9dffc62ad05bdd8 | [
"Apache-2.0"
] | null | null | null | defmodule IMDbData.DataCase do
@moduledoc """
This module defines the setup for tests requiring
access to the application's data layer.
You may define functions here to be used as helpers in
your tests.
Finally, if the test case interacts with the database,
we enable the SQL sandbox, so changes done to ... | 29.326923 | 89 | 0.696393 |
e9975e624cda34e45499c1ac784a2c8735bdfb18 | 2,992 | ex | Elixir | test/support/test_blocks.ex | cabol/ex_bits | 9cf85b33b2b5bbb240de7217dc6849cfd23a62e0 | [
"MIT"
] | 2 | 2020-09-06T20:34:45.000Z | 2020-09-07T12:42:21.000Z | test/support/test_blocks.ex | cabol/ex_bits | 9cf85b33b2b5bbb240de7217dc6849cfd23a62e0 | [
"MIT"
] | null | null | null | test/support/test_blocks.ex | cabol/ex_bits | 9cf85b33b2b5bbb240de7217dc6849cfd23a62e0 | [
"MIT"
] | null | null | null | defmodule Bitcraft.TestBlocks do
@moduledoc false
defmodule StaticBlock do
@moduledoc false
import Bitcraft.BitBlock
defblock "test-block-1" do
segment :header, 5, type: :binary
segment :a, 4, default: 1
segment :b, 8, default: 1
segment :c, 16, default: 1, sign: :signed
... | 21.839416 | 68 | 0.529078 |
e9976dc68d0a9c75268355c5f5d53b8d822d6c9b | 2,585 | ex | Elixir | kousa/lib/beef/schemas/room.ex | LeonardSSH/dogehouse | 584055ad407bc37fa35cdf36ebb271622e29d436 | [
"MIT"
] | 9 | 2021-03-17T03:56:18.000Z | 2021-09-24T22:45:14.000Z | kousa/lib/beef/schemas/room.ex | ActuallyTomas/dogehouse | 8c3d2cd1d7e99e173f0658759467a391c4a90c4e | [
"MIT"
] | 12 | 2021-07-06T12:51:13.000Z | 2022-03-16T12:38:18.000Z | kousa/lib/beef/schemas/room.ex | ActuallyTomas/dogehouse | 8c3d2cd1d7e99e173f0658759467a391c4a90c4e | [
"MIT"
] | 4 | 2021-07-15T20:33:50.000Z | 2022-03-27T12:46:47.000Z | defmodule Beef.Schemas.Room do
use Ecto.Schema
use Broth.Message.Push
import Ecto.Changeset
@timestamps_opts [type: :utc_datetime_usec]
alias Beef.Schemas.User
@type chatMode :: :default | :disabled | :follower_only
@type t :: %__MODULE__{
id: Ecto.UUID.t(),
name: String.t(),
... | 32.721519 | 98 | 0.628627 |
e997a98da71e3b58afeea0e85d7e8c0b0b5a0b87 | 2,275 | exs | Elixir | test/type/type_test.exs | kingshalaby1/ash | 1e23199bec1729d66d3fc64de18856525f638549 | [
"MIT"
] | null | null | null | test/type/type_test.exs | kingshalaby1/ash | 1e23199bec1729d66d3fc64de18856525f638549 | [
"MIT"
] | null | null | null | test/type/type_test.exs | kingshalaby1/ash | 1e23199bec1729d66d3fc64de18856525f638549 | [
"MIT"
] | null | null | null | defmodule Ash.Test.Type.TypeTest do
@moduledoc false
use ExUnit.Case, async: true
defmodule PostTitle do
@moduledoc false
use Ash.Type
def storage_type, do: :string
def constraints do
[
max_length: [
type: :pos_integer,
doc: "The maximum length of the title"
... | 22.524752 | 92 | 0.61011 |
e997afb310dc72e362a6a3c3c7c084f2404c83d4 | 158 | ex | Elixir | lib/mix/tasks/jorel.release.ex | G-Corp/jorel_mix | d3bea2e19a5b725bbc90532d74613e0fd5441461 | [
"Unlicense"
] | null | null | null | lib/mix/tasks/jorel.release.ex | G-Corp/jorel_mix | d3bea2e19a5b725bbc90532d74613e0fd5441461 | [
"Unlicense"
] | 1 | 2019-02-13T14:28:48.000Z | 2019-02-13T17:02:49.000Z | lib/mix/tasks/jorel.release.ex | G-Corp/jorel_mix | d3bea2e19a5b725bbc90532d74613e0fd5441461 | [
"Unlicense"
] | null | null | null | defmodule Mix.Tasks.Jorel.Release do
use Mix.Task
@shortdoc "Release your app"
def run(argv) do
JorelMix.Utils.jorel(argv, ["release"])
end
end
| 15.8 | 43 | 0.696203 |
e997cd2deb338a1b977b2bd71d97f89f8706950b | 1,123 | exs | Elixir | config/config.exs | julienmarie/ex_zendesk | 89ea1b5096083406ab3446f869f342c7779b9ed9 | [
"MIT"
] | null | null | null | config/config.exs | julienmarie/ex_zendesk | 89ea1b5096083406ab3446f869f342c7779b9ed9 | [
"MIT"
] | null | null | null | config/config.exs | julienmarie/ex_zendesk | 89ea1b5096083406ab3446f869f342c7779b9ed9 | [
"MIT"
] | 1 | 2020-05-11T06:37:05.000Z | 2020-05-11T06:37:05.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.225806 | 73 | 0.752449 |
e997fc1c59a22552bc50f8763d9c9a6789812062 | 569 | ex | Elixir | lib/broadway/batch_info.ex | coop/broadway | fd54452485103331a38cc7388387e19731fb8b5f | [
"Apache-2.0"
] | 1,004 | 2020-01-20T15:19:59.000Z | 2022-03-30T07:19:34.000Z | lib/broadway/batch_info.ex | coop/broadway | fd54452485103331a38cc7388387e19731fb8b5f | [
"Apache-2.0"
] | 130 | 2020-01-26T10:09:30.000Z | 2022-03-21T13:20:11.000Z | lib/broadway/batch_info.ex | coop/broadway | fd54452485103331a38cc7388387e19731fb8b5f | [
"Apache-2.0"
] | 90 | 2020-01-24T17:01:33.000Z | 2022-02-16T04:42:59.000Z | defmodule Broadway.BatchInfo do
@moduledoc """
A struct used to hold information about a generated batch.
An instance of this struct containing the related info will
be passed to the `c:Broadway.handle_batch/4` callback of the
module implementing the `Broadway` behaviour.
"""
@type t :: %__MODULE__{
... | 21.884615 | 62 | 0.634446 |
e997fed425c273f13b9946447a7b1af8a31af206 | 347 | exs | Elixir | test/crit_biz/view_models/reservation/after_the_fact_vm_1_initial_form_test.exs | brownt23/crit19 | c45c7b3ae580c193168d83144da0eeb9bc91c8a9 | [
"MIT"
] | 6 | 2019-07-16T19:31:23.000Z | 2021-06-05T19:01:05.000Z | test/crit_biz/view_models/reservation/after_the_fact_vm_1_initial_form_test.exs | brownt23/crit19 | c45c7b3ae580c193168d83144da0eeb9bc91c8a9 | [
"MIT"
] | null | null | null | test/crit_biz/view_models/reservation/after_the_fact_vm_1_initial_form_test.exs | brownt23/crit19 | c45c7b3ae580c193168d83144da0eeb9bc91c8a9 | [
"MIT"
] | 3 | 2020-02-24T23:38:27.000Z | 2020-08-01T23:50:17.000Z | defmodule CritBiz.ViewModels.Reservation.InitialFormTest do
use Crit.DataCase
alias CritBiz.ViewModels.Reservation.AfterTheFact, as: VM
alias Ecto.Changeset
@tag :skip
test "the starting changeset" do
VM.Forms.Context.empty
|> assert_shape(%Changeset{})
|> assert_data(species_id: @bovine_id)
... | 23.133333 | 59 | 0.731988 |
e998054976aba22beee67304c2104aa30072a191 | 4,496 | ex | Elixir | lib/coxir/struct/struct.ex | jano017/coxir | 81e89e0113a9219685be2b61af7d17c5fcd9e5fb | [
"Apache-2.0"
] | null | null | null | lib/coxir/struct/struct.ex | jano017/coxir | 81e89e0113a9219685be2b61af7d17c5fcd9e5fb | [
"Apache-2.0"
] | null | null | null | lib/coxir/struct/struct.ex | jano017/coxir | 81e89e0113a9219685be2b61af7d17c5fcd9e5fb | [
"Apache-2.0"
] | null | null | null | defmodule Coxir.Struct do
@moduledoc false
defmacro __using__(_opts) do
quote location: :keep do
alias Coxir.API
use GenServer
use Bitwise
@name __MODULE__
|> Module.split
|> List.last
|> String.downcase
|> String.to_atom
def creation_time(id) when is_int... | 25.83908 | 116 | 0.486432 |
e9980af50c8fd280ebeffa98281950df29297256 | 345 | exs | Elixir | priv/repo/migrations/20180627111327_create_pages.exs | dreamingechoes/retrospectivex | cad0df6cfde5376121d841f4a8b36861b6ec5d45 | [
"MIT"
] | 5 | 2018-06-27T17:51:51.000Z | 2020-10-05T09:59:04.000Z | priv/repo/migrations/20180627111327_create_pages.exs | dreamingechoes/retrospectivex | cad0df6cfde5376121d841f4a8b36861b6ec5d45 | [
"MIT"
] | 1 | 2018-10-08T11:33:12.000Z | 2018-10-08T11:33:12.000Z | priv/repo/migrations/20180627111327_create_pages.exs | dreamingechoes/retrospectivex | cad0df6cfde5376121d841f4a8b36861b6ec5d45 | [
"MIT"
] | 2 | 2018-10-08T11:31:55.000Z | 2020-10-05T09:59:05.000Z | defmodule Retrospectivex.Repo.Migrations.CreatePages do
use Ecto.Migration
def change do
create table(:pages) do
add(:body, :text)
add(:seo_info, :map)
add(:slug, :text)
add(:state, :integer)
add(:title, :text, null: false)
timestamps()
end
create(unique_index(:pag... | 19.166667 | 55 | 0.62029 |
e9981a32a29b11058092bd9cded022245778ecb5 | 465 | exs | Elixir | mix.exs | IanLuites/ecto-mariaex-issue-mysql5.5 | 2eb1a9abac46c5eca652a197c595536ccbb5f987 | [
"MIT"
] | null | null | null | mix.exs | IanLuites/ecto-mariaex-issue-mysql5.5 | 2eb1a9abac46c5eca652a197c595536ccbb5f987 | [
"MIT"
] | null | null | null | mix.exs | IanLuites/ecto-mariaex-issue-mysql5.5 | 2eb1a9abac46c5eca652a197c595536ccbb5f987 | [
"MIT"
] | null | null | null | defmodule MariaexIssue.Mixfile do
use Mix.Project
def project do
[app: :mariaex_issue,
version: "0.1.0",
elixir: "~> 1.4",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps()]
end
def application do
[
mod: {MariaexIssue, []},
extra_app... | 17.222222 | 52 | 0.539785 |
e9981a5dedb1046c908ad8401d05e136656592cd | 660 | ex | Elixir | lib/bs_web/views/api/death_view.ex | andersjanmyr/battlesnake-server-2018 | 091b4d1201d144de232be08fd7fb6df8156c5ee2 | [
"MIT"
] | 3 | 2018-07-14T22:55:23.000Z | 2019-02-25T06:11:55.000Z | lib/bs_web/views/api/death_view.ex | andersjanmyr/battlesnake-server-2018 | 091b4d1201d144de232be08fd7fb6df8156c5ee2 | [
"MIT"
] | 7 | 2020-02-12T03:22:59.000Z | 2022-02-10T20:23:52.000Z | lib/bs_web/views/api/death_view.ex | andersjanmyr/battlesnake-server-2018 | 091b4d1201d144de232be08fd7fb6df8156c5ee2 | [
"MIT"
] | 12 | 2018-03-27T05:27:20.000Z | 2019-04-02T08:19:04.000Z | defmodule BsWeb.Api.DeathView do
alias Bs.Death, as: D
use BsWeb, :view
def render("show.json", %{death: death}) do
%{
causes: render_many(death.causes, __MODULE__, "cause.json"),
turn: death.turn
}
end
def render("cause.json", %{death: death}) do
case death do
%D.BodyCollision... | 19.411765 | 66 | 0.574242 |
e99841b7fd476c18f5952a4bb929f9b299cb558e | 716 | exs | Elixir | mix.exs | dogwynn/tilex | 72a4c39eb1655fd3c7edbe21b7336912df70111d | [
"MIT"
] | 1 | 2021-01-20T04:40:50.000Z | 2021-01-20T04:40:50.000Z | mix.exs | dogwynn/tilex | 72a4c39eb1655fd3c7edbe21b7336912df70111d | [
"MIT"
] | null | null | null | mix.exs | dogwynn/tilex | 72a4c39eb1655fd3c7edbe21b7336912df70111d | [
"MIT"
] | null | null | null | defmodule Tilex.MixProject do
use Mix.Project
def project do
[
app: :tilex,
version: "0.1.0",
elixir: "~> 1.10",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applic... | 21.69697 | 87 | 0.546089 |
e998550de356fefdfa29068bee63770d8d7d39c0 | 1,088 | ex | Elixir | lib/starer_web/channels/user_socket.ex | girorme/starer | 4e3840291da6a7d47c0b94aacb456794fbee091b | [
"MIT"
] | null | null | null | lib/starer_web/channels/user_socket.ex | girorme/starer | 4e3840291da6a7d47c0b94aacb456794fbee091b | [
"MIT"
] | null | null | null | lib/starer_web/channels/user_socket.ex | girorme/starer | 4e3840291da6a7d47c0b94aacb456794fbee091b | [
"MIT"
] | null | null | null | defmodule StarerWeb.UserSocket do
use Phoenix.Socket
## Channels
# channel "room:*", StarerWeb.RoomChannel
# Socket params are passed from the client and can
# be used to verify and authenticate a user. After
# verification, you can put default assigns into
# the socket that will be set for all channels... | 30.222222 | 83 | 0.693934 |
e99869ab6915de1106f938b5eeab58ab3d63a9ec | 1,113 | ex | Elixir | lib/parsers/helper.ex | kianmeng/elixir-feed-parser | 83302ea749d0de9bee3803a639663046e43dc8bd | [
"MIT"
] | 51 | 2015-11-06T09:42:37.000Z | 2022-01-26T06:32:42.000Z | lib/parsers/helper.ex | kianmeng/elixir-feed-parser | 83302ea749d0de9bee3803a639663046e43dc8bd | [
"MIT"
] | 12 | 2015-11-06T16:11:42.000Z | 2021-02-19T07:03:09.000Z | lib/parsers/helper.ex | kianmeng/elixir-feed-parser | 83302ea749d0de9bee3803a639663046e43dc8bd | [
"MIT"
] | 16 | 2017-03-26T22:58:26.000Z | 2022-02-02T02:35:48.000Z | defmodule ElixirFeedParser.Parsers.Helper do
alias ElixirFeedParser.XmlNode
require Logger
def element(node, selector) do
node |> XmlNode.find(selector) |> XmlNode.text()
end
def element(node, selector, attr: attr) do
node |> XmlNode.find(selector) |> XmlNode.attr(attr)
end
def elements(node, ... | 25.883721 | 84 | 0.650494 |
e9987c650ddd4c65cb73a1845063af9a3bbddb9d | 480 | ex | Elixir | chapter_8/todo_supervised/lib/todo/database/client.ex | librity/elixir_in_action | d2df441ceb7e6a0d3f18bc3ab3c59570125fcdec | [
"MIT"
] | 3 | 2021-04-22T11:55:58.000Z | 2021-08-22T13:19:56.000Z | chapter_8/todo_supervised/lib/todo/database/client.ex | librity/elixir_in_action | d2df441ceb7e6a0d3f18bc3ab3c59570125fcdec | [
"MIT"
] | null | null | null | chapter_8/todo_supervised/lib/todo/database/client.ex | librity/elixir_in_action | d2df441ceb7e6a0d3f18bc3ab3c59570125fcdec | [
"MIT"
] | 3 | 2021-04-22T21:19:45.000Z | 2021-08-22T13:20:03.000Z | defmodule Todo.Database.Client do
alias Todo.Database.Worker.Client, as: WorkerClient
def start do
IO.puts("Starting todo database.")
GenServer.start(Todo.Database, nil, name: __MODULE__)
end
def store(key, data) do
key
|> choose_worker()
|> WorkerClient.store(key, data)
end
def get(... | 20 | 80 | 0.679167 |
e9987d994c80ad0b195c1cfb8ff051dd8c183b17 | 1,328 | ex | Elixir | lib/bank_account.ex | NullChronos/exercism | 1a30fa34e780303582c562e452534b9b45944f77 | [
"MIT"
] | null | null | null | lib/bank_account.ex | NullChronos/exercism | 1a30fa34e780303582c562e452534b9b45944f77 | [
"MIT"
] | null | null | null | lib/bank_account.ex | NullChronos/exercism | 1a30fa34e780303582c562e452534b9b45944f77 | [
"MIT"
] | null | null | null | defmodule BankAccount do
@moduledoc """
A bank account that supports access from multiple processes.
"""
defstruct balance: 0, open: true
@typedoc """
An account handle.
"""
@opaque account :: pid
@doc """
Open the bank. Makes the account available.
"""
@spec open_bank() :: account
def open... | 24.145455 | 113 | 0.656627 |
e9988385167d61a4c111e7db6464fff15923ddb2 | 195 | ex | Elixir | lib/game_api/id/uuid.ex | idabmat/game_api | c12eefb84ff5c9647ee2e06d7893e3aae1b48b2d | [
"MIT"
] | null | null | null | lib/game_api/id/uuid.ex | idabmat/game_api | c12eefb84ff5c9647ee2e06d7893e3aae1b48b2d | [
"MIT"
] | null | null | null | lib/game_api/id/uuid.ex | idabmat/game_api | c12eefb84ff5c9647ee2e06d7893e3aae1b48b2d | [
"MIT"
] | null | null | null | defmodule GameApi.ID.UUID do
@moduledoc """
Implementation of ID string generation based on UUIDv4
"""
alias GameApi.ID
@behaviour ID
@impl ID
def generate, do: UUID.uuid4()
end
| 15 | 56 | 0.697436 |
e998a63664a9d815c8af214e024c7169d97bfa07 | 990 | exs | Elixir | Rocketpay/test/rocketpay/users/create_test.exs | Daniel-Vinicius/Rocketpay | 2f5dc18e9313a85196f4871bf052b3e10469192c | [
"MIT"
] | 3 | 2021-02-22T20:12:57.000Z | 2021-11-08T08:56:17.000Z | Rocketpay/test/rocketpay/users/create_test.exs | Daniel-Vinicius/Rocketpay | 2f5dc18e9313a85196f4871bf052b3e10469192c | [
"MIT"
] | null | null | null | Rocketpay/test/rocketpay/users/create_test.exs | Daniel-Vinicius/Rocketpay | 2f5dc18e9313a85196f4871bf052b3e10469192c | [
"MIT"
] | 2 | 2021-03-04T12:07:52.000Z | 2021-06-04T12:36:49.000Z | defmodule Rocketpay.Users.CreateTest do
use Rocketpay.DataCase, async: true
alias Rocketpay.Repo
alias Rocketpay.User
alias Rocketpay.Users.Create
describe "call/1" do
test "when all params are valid, return an user" do
params = %{
name: "Daniel",
password: "123456",
nickna... | 23.023256 | 64 | 0.579798 |
e998afd262803af02d58b44491a3433e9f4c70fc | 1,884 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/instances_scoped_list.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/instances_scoped_list.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/compute/lib/google_api/compute/v1/model/instances_scoped_list.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... | 37.68 | 200 | 0.743631 |
e998b245c56de60aabbf7b46574a3eef527c42c6 | 934 | ex | Elixir | lib/postgrex/extensions/line_segment.ex | ivan/postgrex | dd377695fbe469bc3823116b9e4e8f498996b9a3 | [
"Apache-2.0"
] | null | null | null | lib/postgrex/extensions/line_segment.ex | ivan/postgrex | dd377695fbe469bc3823116b9e4e8f498996b9a3 | [
"Apache-2.0"
] | null | null | null | lib/postgrex/extensions/line_segment.ex | ivan/postgrex | dd377695fbe469bc3823116b9e4e8f498996b9a3 | [
"Apache-2.0"
] | null | null | null | defmodule Postgrex.Extensions.LineSegment do
@moduledoc false
import Postgrex.BinaryUtils, warn: false
use Postgrex.BinaryExtension, send: "lseg_send"
alias Postgrex.Extensions.Point
def encode(_) do
quote location: :keep do
%Postgrex.LineSegment{point1: p1, point2: p2} ->
encoded_p1 = Poin... | 32.206897 | 76 | 0.652034 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.