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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
385f0616585ade3fb537f0c4e2898f91fcba1605 | 161 | exs | Elixir | priv/repo/migrations/20180408190328_add_listen_to_rooms.exs | stevegrossi/ex_venture | e02d5a63fdb882d92cfb4af3e15f7b48ad7054aa | [
"MIT"
] | 2 | 2019-05-14T11:36:44.000Z | 2020-07-01T08:54:04.000Z | priv/repo/migrations/20180408190328_add_listen_to_rooms.exs | nickwalton/ex_venture | d8ff1b0181db03f9ddcb7610ae7ab533feecbfbb | [
"MIT"
] | null | null | null | priv/repo/migrations/20180408190328_add_listen_to_rooms.exs | nickwalton/ex_venture | d8ff1b0181db03f9ddcb7610ae7ab533feecbfbb | [
"MIT"
] | 1 | 2021-01-29T14:12:40.000Z | 2021-01-29T14:12:40.000Z | defmodule Data.Repo.Migrations.AddListenToRooms do
use Ecto.Migration
def change do
alter table(:rooms) do
add :listen, :string
end
end
end
| 16.1 | 50 | 0.701863 |
385f3d572275310bc9f92e761bc64bb8d448c4ff | 25,737 | ex | Elixir | lib/teiserver/tcp/tcp_server.ex | Teifion/teiserver | 131e002160e1e948cb55e56d62370ba66a972cba | [
"MIT"
] | 6 | 2021-02-08T10:42:53.000Z | 2021-04-25T12:12:03.000Z | lib/teiserver/tcp/tcp_server.ex | Teifion/teiserver | 131e002160e1e948cb55e56d62370ba66a972cba | [
"MIT"
] | null | null | null | lib/teiserver/tcp/tcp_server.ex | Teifion/teiserver | 131e002160e1e948cb55e56d62370ba66a972cba | [
"MIT"
] | 2 | 2021-02-23T22:34:00.000Z | 2021-04-08T13:31:36.000Z | defmodule Teiserver.TcpServer do
@moduledoc false
use GenServer
require Logger
alias Teiserver.{User, Client}
alias Teiserver.Tcp.{TcpLobby}
# Duration refers to how long it will track commands for
# Limit is the number of commands that can be sent in that time
@cmd_flood_duration 10
@cmd_flood_limi... | 30.675805 | 123 | 0.652524 |
385f64c0e821aad9c28c582dd9ee9a26f7b18ed9 | 249 | ex | Elixir | examples/server/lib/server.ex | charaku/phoenix_wings | b2881ecaea0841d6c27e903ca8965c3ccb6a39c9 | [
"MIT"
] | 132 | 2017-12-30T06:12:34.000Z | 2022-03-13T16:16:24.000Z | examples/server/lib/server.ex | charaku/phoenix_wings | b2881ecaea0841d6c27e903ca8965c3ccb6a39c9 | [
"MIT"
] | 25 | 2018-04-04T14:40:30.000Z | 2022-03-23T21:25:17.000Z | examples/server/lib/server.ex | charaku/phoenix_wings | b2881ecaea0841d6c27e903ca8965c3ccb6a39c9 | [
"MIT"
] | 46 | 2018-03-18T17:35:21.000Z | 2022-03-23T20:37:01.000Z | defmodule Server do
@moduledoc """
Server 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
| 24.9 | 66 | 0.751004 |
385f6b31f946d057c9379e916042a27493a34672 | 3,540 | ex | Elixir | lib/linkify/builder.ex | bonfire-networks/linkify | 76a4026f73a4593e0ec664d99220bb4e5dea6e34 | [
"MIT"
] | 1 | 2021-04-07T01:30:03.000Z | 2021-04-07T01:30:03.000Z | lib/linkify/builder.ex | bonfire-networks/linkify | 76a4026f73a4593e0ec664d99220bb4e5dea6e34 | [
"MIT"
] | null | null | null | lib/linkify/builder.ex | bonfire-networks/linkify | 76a4026f73a4593e0ec664d99220bb4e5dea6e34 | [
"MIT"
] | null | null | null | defmodule Linkify.Builder do
@moduledoc """
Module for building the auto generated link.
"""
@doc """
Create a link.
"""
def create_link(text, opts) do
url = add_scheme(text)
[]
|> build_attrs(url, opts, :rel)
|> build_attrs(url, opts, :target)
|> build_attrs(url, opts, :class)
|... | 24.246575 | 86 | 0.595763 |
385f86a630977a15336b0474f93bac4f2c33c438 | 835 | ex | Elixir | lib/pkg_deb/format/generators/sysvinit.ex | sblaisot/pkg_deb | a9ec11fa119d6005d935c1b629960c9697864d27 | [
"MIT"
] | null | null | null | lib/pkg_deb/format/generators/sysvinit.ex | sblaisot/pkg_deb | a9ec11fa119d6005d935c1b629960c9697864d27 | [
"MIT"
] | 12 | 2020-07-18T10:38:53.000Z | 2022-03-24T04:04:12.000Z | lib/pkg_deb/format/generators/sysvinit.ex | sblaisot/pkg_deb | a9ec11fa119d6005d935c1b629960c9697864d27 | [
"MIT"
] | 1 | 2020-11-28T21:08:54.000Z | 2020-11-28T21:08:54.000Z | defmodule PkgDeb.Format.Generators.Sysvinit do
@moduledoc """
This module produces a sysvinit file from the config and a template.
"""
alias PkgCore.TemplateFinder
def build(data_dir, config) do
# debug "Building Sysvinit File"
systemd_script =
["init_scripts", "sysvinit.eex"]
|> Templat... | 22.567568 | 70 | 0.611976 |
385fb80ddb0fa8dfc9d19c97625fad4eed82bbc7 | 1,296 | ex | Elixir | lib/nostrum/struct/application_command_interaction_data.ex | jos-b/nostrum | baf5c9de9f17c3bd99c5c06a454e03cc448aad1c | [
"MIT"
] | null | null | null | lib/nostrum/struct/application_command_interaction_data.ex | jos-b/nostrum | baf5c9de9f17c3bd99c5c06a454e03cc448aad1c | [
"MIT"
] | null | null | null | lib/nostrum/struct/application_command_interaction_data.ex | jos-b/nostrum | baf5c9de9f17c3bd99c5c06a454e03cc448aad1c | [
"MIT"
] | 1 | 2020-09-03T13:55:55.000Z | 2020-09-03T13:55:55.000Z | defmodule Nostrum.Struct.ApplicationCommandInteractionData do
@moduledoc "Struct for interaction data."
alias Nostrum.Snowflake
alias Nostrum.Struct.ApplicationCommandInteractionDataOption
alias Nostrum.Util
defstruct [:id, :name, :options]
@typedoc "ID of the invoked command"
@type id :: Snowflake.t()... | 26.44898 | 111 | 0.669753 |
385ff4aa63385a8363b8d0654a0414fdd19bb44f | 79 | ex | Elixir | athasha_wui/lib/athasha_wui/mailer.ex | samuelventura/go-sdk | 7209256f70d39d142a2a9859061ac7ec6c19b2bc | [
"Unlicense"
] | null | null | null | athasha_wui/lib/athasha_wui/mailer.ex | samuelventura/go-sdk | 7209256f70d39d142a2a9859061ac7ec6c19b2bc | [
"Unlicense"
] | null | null | null | athasha_wui/lib/athasha_wui/mailer.ex | samuelventura/go-sdk | 7209256f70d39d142a2a9859061ac7ec6c19b2bc | [
"Unlicense"
] | null | null | null | defmodule Athasha.Wui.Mailer do
use Swoosh.Mailer, otp_app: :athasha_wui
end
| 19.75 | 42 | 0.797468 |
38604d50f0d05d1f42c0685ac4f6526946a638a0 | 535 | exs | Elixir | day_3.2.exs | yggie/advent-of-code-2015 | 414d8910714a592e0811a70ff35a2dc4ec4c73f5 | [
"MIT"
] | null | null | null | day_3.2.exs | yggie/advent-of-code-2015 | 414d8910714a592e0811a70ff35a2dc4ec4c73f5 | [
"MIT"
] | null | null | null | day_3.2.exs | yggie/advent-of-code-2015 | 414d8910714a592e0811a70ff35a2dc4ec4c73f5 | [
"MIT"
] | null | null | null | input = Interface.read_input
{_, map} = input
|> String.to_char_list
|> Enum.reduce({{{0, 0}, {0, 0}}, %{ {0, 0} => 2 }}, fn(char, {{{x, y}, next_coord}, map}) ->
coord = case char do
?> -> {x + 1, y}
?^ -> {x, y + 1}
?< -> {x - 1, y}
?v -> {x, y - 1}
_ -> nil
end
if coor... | 22.291667 | 95 | 0.480374 |
38605e0d2b14c867bfd5268fc3e5b64dbe801872 | 1,180 | ex | Elixir | apps/ewallet/lib/ewallet/web/balance_loader.ex | jimpeebles/ewallet | ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405 | [
"Apache-2.0"
] | null | null | null | apps/ewallet/lib/ewallet/web/balance_loader.ex | jimpeebles/ewallet | ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405 | [
"Apache-2.0"
] | null | null | null | apps/ewallet/lib/ewallet/web/balance_loader.ex | jimpeebles/ewallet | ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405 | [
"Apache-2.0"
] | null | null | null | # Copyright 2018 OmiseGO Pte Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writi... | 31.052632 | 75 | 0.730508 |
38606038111e6be2bc4db74fb09335b66db40a34 | 60 | ex | Elixir | lib/hexpm_web/views/sitemap_view.ex | Benjamin-Philip/hexpm | 6f38244f81bbabd234c660f46ea973849ba77a7f | [
"Apache-2.0"
] | 691 | 2017-03-08T09:15:45.000Z | 2022-03-23T22:04:47.000Z | lib/hexpm_web/views/sitemap_view.ex | Benjamin-Philip/hexpm | 6f38244f81bbabd234c660f46ea973849ba77a7f | [
"Apache-2.0"
] | 491 | 2017-03-07T12:58:42.000Z | 2022-03-29T23:32:54.000Z | lib/hexpm_web/views/sitemap_view.ex | Benjamin-Philip/hexpm | 6f38244f81bbabd234c660f46ea973849ba77a7f | [
"Apache-2.0"
] | 200 | 2017-03-12T23:03:39.000Z | 2022-03-05T17:55:52.000Z | defmodule HexpmWeb.SitemapView do
use HexpmWeb, :view
end
| 15 | 33 | 0.8 |
3860826f03c59d4fba81fe21a9fd14b2f96dce49 | 601 | ex | Elixir | test/support/file_helpers.ex | tanweerdev/guardian_db | 00d775cb538db205b8e6d720bff941d53558b5d2 | [
"MIT"
] | null | null | null | test/support/file_helpers.ex | tanweerdev/guardian_db | 00d775cb538db205b8e6d720bff941d53558b5d2 | [
"MIT"
] | null | null | null | test/support/file_helpers.ex | tanweerdev/guardian_db | 00d775cb538db205b8e6d720bff941d53558b5d2 | [
"MIT"
] | null | null | null | defmodule Guardian.DB.Test.Support.FileHelpers do
@moduledoc false
def tmp_path do
Path.expand("../../priv/temp", __DIR__)
end
def tmp_path(path) do
Path.expand("../../#{path}", __DIR__)
end
def create_dir(path) do
run_if_abs_path(&File.mkdir_p!/1, path)
end
def destroy_dir(path) do
... | 18.78125 | 49 | 0.652246 |
3860953e452d4ba8aff6dcc4053b63b105b782fe | 603 | exs | Elixir | test/web/views/error_view_test.exs | awochna/quick_polls | b599918b795728feda338e6a00f295a97faba08a | [
"MIT"
] | null | null | null | test/web/views/error_view_test.exs | awochna/quick_polls | b599918b795728feda338e6a00f295a97faba08a | [
"MIT"
] | 6 | 2017-04-10T05:01:04.000Z | 2017-04-21T06:02:03.000Z | test/web/views/error_view_test.exs | awochna/quick_polls | b599918b795728feda338e6a00f295a97faba08a | [
"MIT"
] | null | null | null | defmodule QuickPolls.Web.ErrorViewTest do
use QuickPolls.Web.ConnCase, async: true
# Bring render/3 and render_to_string/3 for testing custom views
import Phoenix.View
test "renders 404.html" do
assert render_to_string(QuickPolls.Web.ErrorView, "404.html", []) ==
"Page not found"
end
test ... | 27.409091 | 72 | 0.686567 |
38609d725954cfd35cd1320dccbd23cc18248052 | 2,391 | ex | Elixir | todo/lib/todo_web.ex | mpeseke/literate-waffle | 1b8da264d841d9f1d076729936b060c79f93e1aa | [
"Apache-2.0"
] | null | null | null | todo/lib/todo_web.ex | mpeseke/literate-waffle | 1b8da264d841d9f1d076729936b060c79f93e1aa | [
"Apache-2.0"
] | null | null | null | todo/lib/todo_web.ex | mpeseke/literate-waffle | 1b8da264d841d9f1d076729936b060c79f93e1aa | [
"Apache-2.0"
] | null | null | null | defmodule TodoWeb do
@moduledoc """
The entrypoint for defining your web interface, such
as controllers, views, channels and so on.
This can be used in your application as:
use TodoWeb, :controller
use TodoWeb, :view
The definitions below will be executed for every view,
controller, etc, so k... | 21.540541 | 81 | 0.671685 |
3860b2c79b6bb20a0ce781106216d339a031cce6 | 2,302 | ex | Elixir | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_k_map_estimation_result.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_k_map_estimation_result.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_k_map_estimation_result.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 38.366667 | 214 | 0.749783 |
3860b8ae57fe6d9d758595a50941c88359baeade | 1,916 | ex | Elixir | lib/config_cat/cache_policy/helpers.ex | kianmeng/elixir-sdk | 89fb73f6249f82ac8415246519c17ad4ade54760 | [
"MIT"
] | 14 | 2020-10-15T09:15:12.000Z | 2022-03-18T19:42:28.000Z | lib/config_cat/cache_policy/helpers.ex | kianmeng/elixir-sdk | 89fb73f6249f82ac8415246519c17ad4ade54760 | [
"MIT"
] | 54 | 2020-10-14T05:08:21.000Z | 2021-05-28T13:00:22.000Z | lib/config_cat/cache_policy/helpers.ex | kianmeng/elixir-sdk | 89fb73f6249f82ac8415246519c17ad4ade54760 | [
"MIT"
] | 5 | 2020-10-13T10:24:17.000Z | 2021-11-30T17:47:11.000Z | defmodule ConfigCat.CachePolicy.Helpers do
@moduledoc false
alias ConfigCat.{CachePolicy, ConfigCache, ConfigFetcher}
@type state :: %{
:cache => module(),
:cache_key => ConfigCache.key(),
:fetcher => module(),
:fetcher_id => ConfigFetcher.id(),
:name => CachePo... | 26.611111 | 82 | 0.639875 |
3860b9f2f661ddf0e1125b78b9bcadc3054186a9 | 1,630 | ex | Elixir | clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_service_issuers_mapping.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_service_issuers_mapping.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_service_issuers_mapping.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 32.6 | 99 | 0.733742 |
3860c1f1c2f354a89ba4266efe5a51bba30b81dd | 1,017 | exs | Elixir | mix.exs | xpgdk/logger_sumologic_backend | 5dcca6a5d10fb1be28b8eb0a85e7fb26b37855bc | [
"MIT"
] | null | null | null | mix.exs | xpgdk/logger_sumologic_backend | 5dcca6a5d10fb1be28b8eb0a85e7fb26b37855bc | [
"MIT"
] | null | null | null | mix.exs | xpgdk/logger_sumologic_backend | 5dcca6a5d10fb1be28b8eb0a85e7fb26b37855bc | [
"MIT"
] | null | null | null | defmodule LoggerSumologicBackend.Mixfile do
use Mix.Project
def project do
[app: :logger_sumologic_backend,
version: "0.2.6",
elixir: "~> 1.4",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps()]
end
# Configuration for the OTP application
#
# Ty... | 24.804878 | 79 | 0.60177 |
3860ed18e1e17d5c8ecab29e0b00b927e2e81438 | 580 | ex | Elixir | lib/ash/type/term.ex | smt116/ash | 880a17f197873eb1c8dc8d81a8b4d6d9cb570b3f | [
"MIT"
] | 528 | 2019-12-08T01:51:54.000Z | 2022-03-30T10:09:45.000Z | lib/ash/type/term.ex | smt116/ash | 880a17f197873eb1c8dc8d81a8b4d6d9cb570b3f | [
"MIT"
] | 278 | 2019-12-04T15:25:06.000Z | 2022-03-31T03:40:51.000Z | lib/ash/type/term.ex | smt116/ash | 880a17f197873eb1c8dc8d81a8b4d6d9cb570b3f | [
"MIT"
] | 53 | 2020-08-17T22:08:09.000Z | 2022-03-24T01:58:59.000Z | defmodule Ash.Type.Term do
@moduledoc """
Represents a raw elixir term in the database
A builtin type that can be referenced via `:string`
"""
use Ash.Type
@impl true
def storage_type, do: :string
@impl true
def cast_input(value, _), do: {:ok, value}
@impl true
def cast_stored(nil, _), do: {:o... | 23.2 | 78 | 0.667241 |
3861006c0319af4d751a5f204b6c138749a18a3f | 203 | exs | Elixir | priv/repo/migrations/20201023144905_create_tests.exs | TomGrozev/SAD-Badges | a94331433ea21a0d719216ac8473e706166d6004 | [
"MIT"
] | null | null | null | priv/repo/migrations/20201023144905_create_tests.exs | TomGrozev/SAD-Badges | a94331433ea21a0d719216ac8473e706166d6004 | [
"MIT"
] | null | null | null | priv/repo/migrations/20201023144905_create_tests.exs | TomGrozev/SAD-Badges | a94331433ea21a0d719216ac8473e706166d6004 | [
"MIT"
] | null | null | null | defmodule Badges.Repo.Migrations.CreateTests do
use Ecto.Migration
def change do
create table(:tests) do
add :planned_date, :utc_datetime, null: true
timestamps()
end
end
end
| 16.916667 | 50 | 0.694581 |
386117239afe7af623b4bc39e533994498814980 | 1,341 | ex | Elixir | lib/utils/discord.ex | papey/o2m | 9b48d6ca49042911ef3118777d60d3ad0b1f8e6a | [
"Unlicense"
] | 6 | 2020-05-30T14:04:35.000Z | 2021-05-26T00:40:17.000Z | lib/utils/discord.ex | papey/o2m | 9b48d6ca49042911ef3118777d60d3ad0b1f8e6a | [
"Unlicense"
] | 4 | 2019-11-05T21:10:09.000Z | 2022-01-29T19:03:29.000Z | lib/utils/discord.ex | papey/o2m | 9b48d6ca49042911ef3118777d60d3ad0b1f8e6a | [
"Unlicense"
] | 1 | 2019-11-05T18:31:48.000Z | 2019-11-05T18:31:48.000Z | defmodule Discord do
@moduledoc """
Discord helpers
"""
use Nostrum.Consumer
@doc """
Check if a channel is public or private
Returns an atom indicating channel type
"""
def channel_type(channel_id) do
with {:ok, chan} <- Nostrum.Cache.ChannelCache.get(channel_id) do
if chan.type == 1 do
... | 20.318182 | 89 | 0.593587 |
38612739e7c6abe7c5acfae2f50fda27456a10cb | 17,042 | ex | Elixir | lib/vowpal_fleet.ex | jackdoe/elixir-vowpal-fleet | 47bd8e3ef3f403654c996aaf9b1056d79adc5c47 | [
"MIT"
] | 2 | 2018-12-04T23:13:47.000Z | 2021-07-25T03:38:04.000Z | lib/vowpal_fleet.ex | jackdoe/elixir-vowpal-fleet | 47bd8e3ef3f403654c996aaf9b1056d79adc5c47 | [
"MIT"
] | null | null | null | lib/vowpal_fleet.ex | jackdoe/elixir-vowpal-fleet | 47bd8e3ef3f403654c996aaf9b1056d79adc5c47 | [
"MIT"
] | null | null | null | defmodule VowpalFleet.Type do
@type feature() :: {integer(), float()} | {String.t(), float()} | String.t() | integer()
@type namespace() :: {String.t(), list(feature())}
@type action() :: {integer(), float(), float()}
end
defmodule VowpalFleet.Application do
@moduledoc false
use Application
def start(_typ... | 29.382759 | 217 | 0.620643 |
386130b862a23a2b75611912a10a888390d281ae | 4,016 | exs | Elixir | apps/graphql/test/mutations/recipe_mutation_test.exs | michaeljguarino/forge | 50ee583ecb4aad5dee4ef08fce29a8eaed1a0824 | [
"Apache-2.0"
] | null | null | null | apps/graphql/test/mutations/recipe_mutation_test.exs | michaeljguarino/forge | 50ee583ecb4aad5dee4ef08fce29a8eaed1a0824 | [
"Apache-2.0"
] | 2 | 2019-12-13T23:55:50.000Z | 2019-12-17T05:49:58.000Z | apps/graphql/test/mutations/recipe_mutation_test.exs | michaeljguarino/chartmart | a34c949cc29d6a1ab91c04c5e4f797e6f0daabfc | [
"Apache-2.0"
] | null | null | null | defmodule GraphQl.RecipeMutationsTest do
use Core.SchemaCase, async: true
import GraphQl.TestHelpers
describe "createRecipe" do
test "It can create a recipe and its sub records" do
%{publisher: %{owner: user}} = repo = insert(:repository)
chart = insert(:chart, repository: repo, dependencies: %{
... | 33.190083 | 119 | 0.535608 |
386131eed959ba323841946d918f83bee646aaec | 1,266 | ex | Elixir | lib/exsemantica_web/channels/user_socket.ex | ExSemantica/exsemantica | c2d72513195f44b6b5f73c8cc07394de0a1fd273 | [
"Apache-2.0"
] | null | null | null | lib/exsemantica_web/channels/user_socket.ex | ExSemantica/exsemantica | c2d72513195f44b6b5f73c8cc07394de0a1fd273 | [
"Apache-2.0"
] | 2 | 2020-07-21T20:53:13.000Z | 2020-07-21T20:54:15.000Z | lib/exsemantica_web/channels/user_socket.ex | Chlorophytus/eactivitypub | 469346b4d5cd7ad2b575c245ac50fd71b00c4864 | [
"Apache-2.0"
] | null | null | null | defmodule ExsemanticaWeb.UserSocket do
use Phoenix.Socket
# A Socket handler
#
# It's possible to control the websocket connection and
# assign values that can be accessed by your channel topics.
## Channels
channel "exsem_feed:*", ExsemanticaWeb.ExsemFeedChannel
# Socket params are passed from the ... | 30.142857 | 93 | 0.705371 |
38614ad4ed12dd7e769e819cf3682f1c7ebff61b | 3,061 | ex | Elixir | clients/jobs/lib/google_api/jobs/v3/model/compensation_entry.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/jobs/lib/google_api/jobs/v3/model/compensation_entry.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/jobs/lib/google_api/jobs/v3/model/compensation_entry.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... | 49.370968 | 365 | 0.725253 |
38618794bdea587a8710d199afbfd403ad86ee31 | 263 | ex | Elixir | elixir_phoenix/lib/elixir_phoenix.ex | kaibyao/rust-postgres-rest-benchmarks | 0a32719c37de3cb783b5e597bef7381ccb4e20f1 | [
"MIT"
] | null | null | null | elixir_phoenix/lib/elixir_phoenix.ex | kaibyao/rust-postgres-rest-benchmarks | 0a32719c37de3cb783b5e597bef7381ccb4e20f1 | [
"MIT"
] | null | null | null | elixir_phoenix/lib/elixir_phoenix.ex | kaibyao/rust-postgres-rest-benchmarks | 0a32719c37de3cb783b5e597bef7381ccb4e20f1 | [
"MIT"
] | null | null | null | defmodule ElixirPhoenix do
@moduledoc """
ElixirPhoenix 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.3 | 66 | 0.764259 |
38618dec9097b0c46e83688703c22745a1f17384 | 204 | ex | Elixir | lib/league_ex.ex | AmadorZcv/league_ex | 26ab9b392ebff67ca4e5036fc3fc37dc5db37b01 | [
"MIT"
] | null | null | null | lib/league_ex.ex | AmadorZcv/league_ex | 26ab9b392ebff67ca4e5036fc3fc37dc5db37b01 | [
"MIT"
] | null | null | null | lib/league_ex.ex | AmadorZcv/league_ex | 26ab9b392ebff67ca4e5036fc3fc37dc5db37b01 | [
"MIT"
] | null | null | null | defmodule LeagueEx do
@moduledoc """
Documentation for `LeagueEx`.
"""
@doc """
Hello world.
## Examples
iex> LeagueEx.hello()
:world
"""
def hello do
:world
end
end
| 10.736842 | 31 | 0.563725 |
386194d0cfca669d92909bb26c1560585a7915e3 | 1,645 | exs | Elixir | apps/thundermoon/mix.exs | grrrisu/thundermoon-umbrella | d7e4f063e28b8d20545f90d6cddc27527fe9efe0 | [
"MIT"
] | 10 | 2019-08-02T06:41:23.000Z | 2022-03-09T16:12:30.000Z | apps/thundermoon/mix.exs | grrrisu/thundermoon-umbrella | d7e4f063e28b8d20545f90d6cddc27527fe9efe0 | [
"MIT"
] | 319 | 2019-06-11T20:16:26.000Z | 2022-03-09T16:24:22.000Z | apps/thundermoon/mix.exs | grrrisu/thundermoon-umbrella | d7e4f063e28b8d20545f90d6cddc27527fe9efe0 | [
"MIT"
] | 4 | 2019-08-15T19:52:07.000Z | 2021-12-02T14:52:54.000Z | defmodule Thundermoon.MixProject do
use Mix.Project
def project do
[
app: :thundermoon,
version: "0.5.0",
build_path: "../../_build",
# config_path: "../../config/config.exs",
deps_path: "../../deps",
lockfile: "../../mix.lock",
elixir: "~> 1.10",
elixirc_paths: ... | 26.967213 | 88 | 0.592705 |
386197040a3042d3dfe11fd2060beb4b566be7ed | 779 | exs | Elixir | interop/mix.exs | prydonius/grpc | 485349728782a6e8e83fb3eab745860737eeef6f | [
"Apache-2.0"
] | 2 | 2019-06-18T18:31:24.000Z | 2020-12-31T07:24:12.000Z | interop/mix.exs | prydonius/grpc | 485349728782a6e8e83fb3eab745860737eeef6f | [
"Apache-2.0"
] | 4 | 2020-02-10T23:40:06.000Z | 2021-03-23T18:33:11.000Z | interop/mix.exs | prydonius/grpc | 485349728782a6e8e83fb3eab745860737eeef6f | [
"Apache-2.0"
] | 7 | 2019-08-14T21:46:56.000Z | 2021-03-23T18:09:21.000Z | defmodule Interop.MixProject do
use Mix.Project
def project do
[
app: :interop,
version: "0.1.0",
elixir: "~> 1.4",
start_permanent: true,
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
mod: {Interop.App, []},... | 21.638889 | 63 | 0.528883 |
3861b8dafc4db9a217ab3f4a8e5ae5ec3eea43ed | 3,049 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/external_vpn_gateway_list.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/external_vpn_gateway_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/external_vpn_gateway_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... | 46.907692 | 393 | 0.717612 |
3861d11c6414f568b00d341afa4d02f8a8a722db | 1,609 | ex | Elixir | clients/vision/lib/google_api/vision/v1/model/landmark.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/vision/lib/google_api/vision/v1/model/landmark.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/vision/lib/google_api/vision/v1/model/landmark.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 32.18 | 109 | 0.718459 |
3861d2a7a0427ec18a13972b8a4fb63420076446 | 11,307 | ex | Elixir | lib/logger_json.ex | tim2CF/logger_json | 0adea63e060c2a7bb89e69653163b77144918f8d | [
"MIT"
] | null | null | null | lib/logger_json.ex | tim2CF/logger_json | 0adea63e060c2a7bb89e69653163b77144918f8d | [
"MIT"
] | null | null | null | lib/logger_json.ex | tim2CF/logger_json | 0adea63e060c2a7bb89e69653163b77144918f8d | [
"MIT"
] | 1 | 2021-07-02T15:54:21.000Z | 2021-07-02T15:54:21.000Z | defmodule LoggerJSON do
@moduledoc """
JSON console back-end for Elixir Logger.
It can be used as drop-in replacement for default `:console` Logger back-end in cases where you use
use Google Cloud Logger or other JSON-based log collectors.
## Log Format
By-default, generated JSON is compatible with
[Go... | 29.755263 | 120 | 0.646679 |
3862126d85ce0942ce77de4c5ffcd94793fce71e | 2,303 | exs | Elixir | mix.exs | elixir-deploy/bootleg | be9b1766dbeb85aa4e7cd9c2132027c25ca29478 | [
"MIT"
] | null | null | null | mix.exs | elixir-deploy/bootleg | be9b1766dbeb85aa4e7cd9c2132027c25ca29478 | [
"MIT"
] | null | null | null | mix.exs | elixir-deploy/bootleg | be9b1766dbeb85aa4e7cd9c2132027c25ca29478 | [
"MIT"
] | null | null | null | defmodule Bootleg.Mixfile do
use Mix.Project
@version "0.13.0"
@source "https://github.com/labzero/bootleg"
@homepage "https://labzero.github.io/bootleg/"
def project do
[
app: :bootleg,
version: @version,
elixir: "~> 1.6",
build_embedded: Mix.env() == :prod,
start_permanen... | 25.307692 | 74 | 0.546678 |
38621d04ae825725336f723dc9edef12a73af5da | 1,114 | ex | Elixir | lib/bankapi/user/get_user_referrals.ex | guibes/bankapi | df43b30e7a845d0509b17c1086c70ab651b97c42 | [
"MIT"
] | null | null | null | lib/bankapi/user/get_user_referrals.ex | guibes/bankapi | df43b30e7a845d0509b17c1086c70ab651b97c42 | [
"MIT"
] | 24 | 2021-03-26T17:42:17.000Z | 2021-03-31T11:47:17.000Z | lib/bankapi/user/get_user_referrals.ex | guibes/bankapi | df43b30e7a845d0509b17c1086c70ab651b97c42 | [
"MIT"
] | 1 | 2021-03-26T17:49:53.000Z | 2021-03-26T17:49:53.000Z | defmodule Bankapi.User.GetUserReferrals do
@moduledoc """
Module to get user referrals, for example:
If call the function call(), with a user_code, if the user code is valid,
will return all users referrals.
"""
alias Bankapi.{Repo, User}
import Ecto.Query
@doc """
Function call to get all referrals
... | 27.170732 | 95 | 0.653501 |
38622b7482f1ecb538d068cdb36f444385cb07ec | 497 | ex | Elixir | lib/elixir/lib/kernel/parallel_require.ex | RyanBard/elixir | 3e0f3b47cf26aa121470141b9a1aa55a366c066e | [
"Apache-2.0"
] | 2 | 2018-11-15T06:38:14.000Z | 2018-11-17T18:03:14.000Z | lib/elixir/lib/kernel/parallel_require.ex | RyanBard/elixir | 3e0f3b47cf26aa121470141b9a1aa55a366c066e | [
"Apache-2.0"
] | 1 | 2018-09-10T23:36:45.000Z | 2018-09-10T23:36:45.000Z | lib/elixir/lib/kernel/parallel_require.ex | RyanBard/elixir | 3e0f3b47cf26aa121470141b9a1aa55a366c066e | [
"Apache-2.0"
] | 1 | 2018-09-10T23:32:56.000Z | 2018-09-10T23:32:56.000Z | defmodule Kernel.ParallelRequire do
# TODO: Remove on 2.0
@moduledoc false
@deprecated "Use Kernel.ParallelCompiler.require/2 instead"
def files(files, callbacks \\ [])
def files(files, callback) when is_function(callback, 1) do
files(files, each_file: callback)
end
def files(files, options) when i... | 26.157895 | 61 | 0.688129 |
38624511a05360d55da5167f52ecd4fbf07f4236 | 304 | exs | Elixir | chap6/modules_and_functions_7.exs | dkhroad/programming-elixir | e94e4f31740da459bc8243a4dcc2c2a8b3727cbd | [
"MIT"
] | null | null | null | chap6/modules_and_functions_7.exs | dkhroad/programming-elixir | e94e4f31740da459bc8243a4dcc2c2a8b3727cbd | [
"MIT"
] | null | null | null | chap6/modules_and_functions_7.exs | dkhroad/programming-elixir | e94e4f31740da459bc8243a4dcc2c2a8b3727cbd | [
"MIT"
] | null | null | null | # Convert float to a string with two decimal digits
:io.format("~.2f~n",[1024.1234])
# OS enviornment variable
System.get_env("PATH")
# extension component of the file name
Path.extname("dave/test.exs")
# Process's current working directory
System.cwd()
# execute a command
System.cmd("ls",["-l"])
| 20.266667 | 51 | 0.717105 |
38624946ce845b61bdb26ed1746050f1ed08c5ab | 3,165 | ex | Elixir | lib/erlef_web/views/page_view.ex | joaquinalcerro/website | 52dc89c70cd0b42127ab233a4c0d10f626d2b698 | [
"Apache-2.0"
] | 71 | 2019-07-02T18:06:15.000Z | 2022-03-09T15:30:08.000Z | lib/erlef_web/views/page_view.ex | joaquinalcerro/website | 52dc89c70cd0b42127ab233a4c0d10f626d2b698 | [
"Apache-2.0"
] | 157 | 2019-07-02T01:21:16.000Z | 2022-03-30T16:08:12.000Z | lib/erlef_web/views/page_view.ex | joaquinalcerro/website | 52dc89c70cd0b42127ab233a4c0d10f626d2b698 | [
"Apache-2.0"
] | 45 | 2019-07-04T05:51:11.000Z | 2022-02-27T11:56:02.000Z | defmodule ErlefWeb.PageView do
use ErlefWeb, :view
import ErlefWeb.ViewHelpers
def affiliate_card_wall(items) do
~E"""
<div class="row">
<%= for i <- items do %>
<div class="col-md-4 mb-5">
<div class="card affiliate-card h-100 shadow-sm">
<div class="card-he... | 29.858491 | 98 | 0.415482 |
3862495187b1fdf9c5ccfd43ee12b72fb21b03c5 | 1,982 | ex | Elixir | lib/zig/module.ex | jeremyowensboggs/zigler | d1ec07ae66db5c007ff7cfc8a820fb21c661bcea | [
"MIT"
] | 349 | 2019-10-02T07:21:17.000Z | 2022-03-21T17:50:06.000Z | lib/zig/module.ex | jeremyowensboggs/zigler | d1ec07ae66db5c007ff7cfc8a820fb21c661bcea | [
"MIT"
] | 223 | 2019-10-05T05:36:08.000Z | 2022-03-31T23:12:02.000Z | lib/zig/module.ex | jeremyowensboggs/zigler | d1ec07ae66db5c007ff7cfc8a820fb21c661bcea | [
"MIT"
] | 20 | 2019-10-08T16:29:39.000Z | 2022-03-31T15:07:20.000Z | defmodule Zig.Module do
@moduledoc """
this struct represents all information a zigler module bound to a
nif should have. WIP.
"""
@enforce_keys [:file, :module, :otp_app]
@default_imports [std: "std", e: "erl_nif.zig", beam: "beam.zig"]
# libc is required to be linked in the case of *bsd based syste... | 30.492308 | 73 | 0.524218 |
38629d975cee6a8cefe29a5cf378f0ece6c2abb5 | 106 | ex | Elixir | lib/bonfire/repo.ex | qhwa/bonfire | 4a368d6d5300539399dcaff167ac69e3165c2bff | [
"MIT"
] | 71 | 2020-03-09T02:09:30.000Z | 2022-03-09T06:10:23.000Z | lib/bonfire/repo.ex | qhwa/bonfire | 4a368d6d5300539399dcaff167ac69e3165c2bff | [
"MIT"
] | null | null | null | lib/bonfire/repo.ex | qhwa/bonfire | 4a368d6d5300539399dcaff167ac69e3165c2bff | [
"MIT"
] | 4 | 2020-04-03T02:28:05.000Z | 2021-11-24T20:07:25.000Z | defmodule Bonfire.Repo do
use Ecto.Repo,
otp_app: :bonfire,
adapter: Ecto.Adapters.Postgres
end
| 17.666667 | 35 | 0.726415 |
38629f2b4899e4d85868aabee1087b18906886a9 | 2,322 | exs | Elixir | test/ninescraft_web/controllers/user_controller_test.exs | drobertduke/ninescraft | 00a08e4f3433b1ffd8f0a8dc77927d043b4e3ce8 | [
"Apache-2.0"
] | null | null | null | test/ninescraft_web/controllers/user_controller_test.exs | drobertduke/ninescraft | 00a08e4f3433b1ffd8f0a8dc77927d043b4e3ce8 | [
"Apache-2.0"
] | null | null | null | test/ninescraft_web/controllers/user_controller_test.exs | drobertduke/ninescraft | 00a08e4f3433b1ffd8f0a8dc77927d043b4e3ce8 | [
"Apache-2.0"
] | null | null | null | defmodule NinescraftWeb.UserControllerTest do
use NinescraftWeb.ConnCase
alias Ninescraft.Accounts
alias Ninescraft.Accounts.User
@create_attrs %{username: "some username"}
@update_attrs %{username: "some updated username"}
@invalid_attrs %{username: nil}
def fixture(:user) do
{:ok, user} = Account... | 29.025 | 88 | 0.624892 |
3862a43a0e122c05316a33e10573638033ee0a29 | 6,941 | exs | Elixir | apps/jira_client/test/jira_client_test.exs | msk-access/seqosystem | 4d99c50a0b0bc74c7f9f899be4eda8eddf6e5a39 | [
"Apache-2.0"
] | 3 | 2020-11-24T07:45:26.000Z | 2021-07-29T13:37:02.000Z | apps/jira_client/test/jira_client_test.exs | mskcc/seqosystem | 4d99c50a0b0bc74c7f9f899be4eda8eddf6e5a39 | [
"Apache-2.0"
] | 52 | 2020-10-21T19:47:59.000Z | 2021-09-09T18:42:33.000Z | apps/jira_client/test/jira_client_test.exs | msk-access/seqosystem | 4d99c50a0b0bc74c7f9f899be4eda8eddf6e5a39 | [
"Apache-2.0"
] | 1 | 2020-12-15T03:33:31.000Z | 2020-12-15T03:33:31.000Z | defmodule JiraClientTest do
use ExUnit.Case
doctest JiraClient
import Tesla.Mock
setup do
mock(fn
%{method: :get} ->
%Tesla.Env{
status: 200,
body:
%{
"expand" => "schema,names",
"startAt" => 0,
"maxResults" => 250,
... | 42.582822 | 130 | 0.376027 |
3862ad4297b20f2affae9a9d063f22a67a9d369e | 23,712 | ex | Elixir | clients/compute/lib/google_api/compute/v1/api/global_public_delegated_prefixes.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/api/global_public_delegated_prefixes.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/api/global_public_delegated_prefixes.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 54.888889 | 2,276 | 0.648406 |
3862c045e21977a3ee912b0d8e29658f807e1f7c | 1,643 | exs | Elixir | apps/authorizer/test/rules/commands/public_access_test.exs | lcpojr/watcher_ex | bd5a9210b5b41a6c9b5d4255de19fc6967d29fb7 | [
"Apache-2.0"
] | 9 | 2020-10-13T14:11:37.000Z | 2021-08-12T18:40:08.000Z | apps/authorizer/test/rules/commands/public_access_test.exs | lcpojr/watcher_ex | bd5a9210b5b41a6c9b5d4255de19fc6967d29fb7 | [
"Apache-2.0"
] | 28 | 2020-10-04T14:43:48.000Z | 2021-12-07T16:54:22.000Z | apps/authorizer/test/rules/commands/public_access_test.exs | lcpojr/watcher_ex | bd5a9210b5b41a6c9b5d4255de19fc6967d29fb7 | [
"Apache-2.0"
] | 3 | 2020-11-25T20:59:47.000Z | 2021-08-30T10:36:58.000Z | defmodule Authorizer.Rules.Commands.PublicAccessTest do
@moduledoc false
use Authorizer.DataCase, async: true
alias Authorizer.Ports.ResourceManagerMock
alias Authorizer.Rules.Commands.PublicAccess
setup do
conn = %Plug.Conn{
private: %{
session: %{
id: Ecto.UUID.generate(),
... | 29.339286 | 74 | 0.626293 |
3862da44b2fea5e5e9e84c86632b73991b88fd6b | 2,125 | ex | Elixir | lib/packet/proto_def_types.ex | qwexvf/McProtocol | a9e243e2d6de7b51e049881c8ea8f12bff94feb1 | [
"MIT"
] | 21 | 2016-04-23T03:54:33.000Z | 2021-07-08T12:03:44.000Z | lib/packet/proto_def_types.ex | qwexvf/McProtocol | a9e243e2d6de7b51e049881c8ea8f12bff94feb1 | [
"MIT"
] | 2 | 2016-04-06T07:01:18.000Z | 2017-04-15T11:09:23.000Z | lib/packet/proto_def_types.ex | hansihe/elixir_mc_protocol | 4b3011338af573c6f583f541c410fb23574f4c10 | [
"MIT"
] | 9 | 2016-04-09T21:05:48.000Z | 2021-07-27T12:42:49.000Z | defmodule McProtocol.Packet.ProtoDefTypes do
def types, do: %{
"string" => {:inline, ["pstring", %{"countType" => "varint"}]},
"slot" => {:simple,
{__MODULE__, :encode_slot},
{__MODULE__, :decode_slot}},
"position" => {:simple,
{__MODULE__, :encode_position},
{__MODULE__, :decode_... | 31.716418 | 93 | 0.660235 |
3862ec7b7adcfbeb8d57395c95fe1bd999e1e48a | 504 | exs | Elixir | test/controllers/short_link_controller_test.exs | zcdunn/elixirstatus-web | 9df758dce01c676403effdeb3231db0529285e6c | [
"MIT"
] | 299 | 2015-06-24T09:14:27.000Z | 2022-03-03T13:31:59.000Z | test/controllers/short_link_controller_test.exs | zcdunn/elixirstatus-web | 9df758dce01c676403effdeb3231db0529285e6c | [
"MIT"
] | 63 | 2015-07-04T19:42:12.000Z | 2021-12-10T14:27:28.000Z | test/controllers/short_link_controller_test.exs | zcdunn/elixirstatus-web | 9df758dce01c676403effdeb3231db0529285e6c | [
"MIT"
] | 49 | 2015-07-06T13:42:43.000Z | 2021-12-22T21:38:04.000Z | defmodule ElixirStatus.ShortLinkControllerTest do
use ElixirStatus.ConnCase
alias ElixirStatus.LinkShortener
setup do
conn = build_conn()
{:ok, conn: conn}
end
test "shows chosen resource", %{conn: conn} do
url = "http://github.com"
uid = LinkShortener.to_uid(url)
conn = get(conn, "/=#{... | 21.913043 | 56 | 0.666667 |
3863066808b20610788719bb3786c90228251b97 | 197 | exs | Elixir | priv/repo/migrations/20201113213815_update_credentials.exs | alloverse/places_alloverse_com | 5c15ea08a88429378ce8f41047418e166cbde7e9 | [
"BSD-2-Clause"
] | null | null | null | priv/repo/migrations/20201113213815_update_credentials.exs | alloverse/places_alloverse_com | 5c15ea08a88429378ce8f41047418e166cbde7e9 | [
"BSD-2-Clause"
] | 1 | 2021-03-10T11:40:47.000Z | 2021-03-10T11:40:47.000Z | priv/repo/migrations/20201113213815_update_credentials.exs | alloverse/places_alloverse_com | 5c15ea08a88429378ce8f41047418e166cbde7e9 | [
"BSD-2-Clause"
] | null | null | null | defmodule PlacesAlloverseCom.Repo.Migrations.UpdateCredentials do
use Ecto.Migration
def change do
alter table(:credentials) do
add :confirmed_at, :naive_datetime
end
end
end
| 17.909091 | 65 | 0.751269 |
386318d018b396e1284a8148812d4621469e9d3c | 2,191 | ex | Elixir | lib/phoenix/endpoint/watcher.ex | bhicks/phoenix | 2c43d798c184f6085cd2765d6cb2b463c87edac7 | [
"MIT"
] | null | null | null | lib/phoenix/endpoint/watcher.ex | bhicks/phoenix | 2c43d798c184f6085cd2765d6cb2b463c87edac7 | [
"MIT"
] | 1 | 2021-11-17T12:10:06.000Z | 2021-11-24T12:53:45.000Z | lib/phoenix/endpoint/watcher.ex | bhicks/phoenix | 2c43d798c184f6085cd2765d6cb2b463c87edac7 | [
"MIT"
] | null | null | null | defmodule Phoenix.Endpoint.Watcher do
@moduledoc false
require Logger
def child_spec(args) do
%{
id: make_ref(),
start: {__MODULE__, :start_link, [args]},
restart: :transient
}
end
def start_link({cmd, args, opts}) do
Task.start_link(__MODULE__, :watch, [to_string(cmd), args, o... | 31.753623 | 125 | 0.620721 |
3863460c07f4c6a9a69aa6d3a0f066d71def8b93 | 295 | exs | Elixir | test/sample_project/mix.exs | Joe-noh/declaimer | b120e9c1367f42084abe06d5e753578fe768fff8 | [
"MIT"
] | null | null | null | test/sample_project/mix.exs | Joe-noh/declaimer | b120e9c1367f42084abe06d5e753578fe768fff8 | [
"MIT"
] | 2 | 2017-10-09T15:19:46.000Z | 2017-10-09T15:19:46.000Z | test/sample_project/mix.exs | Joe-noh/declaimer | b120e9c1367f42084abe06d5e753578fe768fff8 | [
"MIT"
] | null | null | null | defmodule SampleProject.Mixfile do
use Mix.Project
def project do
[app: :sample_project,
version: "0.0.1",
elixir: ">= 0.15.0",
deps: deps]
end
def application do
[applications: [:logger]]
end
defp deps do
[{:declaimer, path: "PROJECT_PATH"}]
end
end
| 15.526316 | 40 | 0.616949 |
386354d73d7e1b9a99bdbc1a34973c9a14bb7591 | 2,287 | ex | Elixir | clients/game_services/lib/google_api/game_services/v1beta/model/deployed_fleet_status.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/v1beta/model/deployed_fleet_status.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/v1beta/model/deployed_fleet_status.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 40.839286 | 230 | 0.726279 |
386360748cb86df66cf6522daf0cf0299e2514ca | 1,622 | ex | Elixir | clients/big_query_data_transfer/lib/google_api/big_query_data_transfer/v1/model/schedule_transfer_runs_response.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/big_query_data_transfer/lib/google_api/big_query_data_transfer/v1/model/schedule_transfer_runs_response.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/big_query_data_transfer/lib/google_api/big_query_data_transfer/v1/model/schedule_transfer_runs_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... | 33.791667 | 103 | 0.772503 |
3863853758a729f0240e65cb5b5adc1bf050b048 | 11,166 | exs | Elixir | test/scenic/primitive_test.exs | tiger808/scenic | 77abc6d891b7a1a9262cdc47d7c5fac3c8609d1f | [
"Apache-2.0"
] | 1 | 2020-09-20T14:07:49.000Z | 2020-09-20T14:07:49.000Z | test/scenic/primitive_test.exs | tiger808/scenic | 77abc6d891b7a1a9262cdc47d7c5fac3c8609d1f | [
"Apache-2.0"
] | null | null | null | test/scenic/primitive_test.exs | tiger808/scenic | 77abc6d891b7a1a9262cdc47d7c5fac3c8609d1f | [
"Apache-2.0"
] | null | null | null | #
# Created by Boyd Multerer on 2017-05-07.
# Copyright © 2017 Kry10 Industries. All rights reserved.
#
defmodule Scenic.PrimitiveTest do
use ExUnit.Case, async: true
doctest Scenic.Primitive
alias Scenic.Primitive
alias Scenic.Primitive.Group
# alias Scenic.Math.Matrix
# import IEx
defmodule TestS... | 29.618037 | 111 | 0.573169 |
3863acdb8dac0fbda0b2c8bbb2e53b248f529fff | 7,474 | exs | Elixir | test/fun_with_flags/ui/router_test.exs | Evernorth/fun_with_flags_ui | c04b852f686933546f75831abbab895ef2c44205 | [
"MIT"
] | 77 | 2017-04-24T20:38:08.000Z | 2022-03-29T12:14:08.000Z | test/fun_with_flags/ui/router_test.exs | Evernorth/fun_with_flags_ui | c04b852f686933546f75831abbab895ef2c44205 | [
"MIT"
] | 19 | 2017-06-27T01:06:39.000Z | 2022-03-20T10:26:57.000Z | test/fun_with_flags/ui/router_test.exs | Evernorth/fun_with_flags_ui | c04b852f686933546f75831abbab895ef2c44205 | [
"MIT"
] | 13 | 2017-06-26T09:53:15.000Z | 2022-03-07T14:29:16.000Z | defmodule FunWithFlags.UI.RouterTest do
use ExUnit.Case, async: false
use Plug.Test
import FunWithFlags.UI.TestUtils
alias FunWithFlags.UI.Router
alias FunWithFlags.{Flag, Gate}
setup do
clear_redis_test_db()
:ok
end
setup_all do
on_exit(__MODULE__, fn() -> clear_redis_test_db() end)
... | 33.666667 | 138 | 0.656141 |
3863c7c7ea3aecae782c264df8f5ad4a4d544444 | 914 | ex | Elixir | apps/backoffice/test/support/conn_case.ex | patrickdet/acme_bank | b9660d995ef8eea94f921511a3936bf354d2fbbc | [
"MIT"
] | 2 | 2020-04-07T20:02:24.000Z | 2021-02-27T13:32:13.000Z | apps/backoffice/test/support/conn_case.ex | patrickdet/acme_bank | b9660d995ef8eea94f921511a3936bf354d2fbbc | [
"MIT"
] | null | null | null | apps/backoffice/test/support/conn_case.ex | patrickdet/acme_bank | b9660d995ef8eea94f921511a3936bf354d2fbbc | [
"MIT"
] | null | null | null | defmodule Backoffice.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 and query models.
Finally, if the test case interacts with the ... | 24.052632 | 56 | 0.71663 |
3863c9088621e8d6597615de6523c0127ecffaa1 | 278 | exs | Elixir | priv/repo/migrations/20170122214623_create_tag.exs | allen-garvey/artour | fce27b234d11a3e434c897b5fa3178b7c126245f | [
"MIT"
] | 4 | 2019-10-04T16:11:15.000Z | 2021-08-18T21:00:13.000Z | apps/artour/priv/repo/migrations/20170122214623_create_tag.exs | allen-garvey/phoenix-umbrella | 1d444bbd62a5e7b5f51d317ce2be71ee994125d5 | [
"MIT"
] | 5 | 2020-03-16T23:52:25.000Z | 2021-09-03T16:52:17.000Z | apps/artour/priv/repo/migrations/20170122214623_create_tag.exs | allen-garvey/phoenix-umbrella | 1d444bbd62a5e7b5f51d317ce2be71ee994125d5 | [
"MIT"
] | null | null | null | defmodule Artour.Repo.Migrations.CreateTag do
use Ecto.Migration
def change do
create table(:tags) do
add :name, :string
add :slug, :string
timestamps()
end
create unique_index(:tags, [:name])
create unique_index(:tags, [:slug])
end
end
| 18.533333 | 45 | 0.651079 |
3863f9e29db2016e53f3bd3a500a0dc9f65f11e9 | 1,628 | exs | Elixir | mix.exs | sergey-chechaev/smppex | 7572c26faf0bca8ee26bd7ecfac9758bdaa13a2f | [
"MIT"
] | null | null | null | mix.exs | sergey-chechaev/smppex | 7572c26faf0bca8ee26bd7ecfac9758bdaa13a2f | [
"MIT"
] | null | null | null | mix.exs | sergey-chechaev/smppex | 7572c26faf0bca8ee26bd7ecfac9758bdaa13a2f | [
"MIT"
] | null | null | null | defmodule Smppex.Mixfile do
use Mix.Project
def project do
[
app: :smppex,
version: "2.3.1",
elixir: "~> 1.1",
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
source_url: "https://github.com/savonarola/smppex",
deps: deps(),
description: ... | 24.666667 | 62 | 0.539926 |
386408f47a2931f86dfa4586d26251f2cbb0bad9 | 746 | ex | Elixir | lib/ex_phone_number/constants/values.ex | balena/ex_phone_number | 93a53efa03fcb821fdaacb261384b84b172428f9 | [
"MIT"
] | 3 | 2018-07-21T10:44:45.000Z | 2021-05-28T20:43:07.000Z | lib/ex_phone_number/constants/values.ex | balena/ex_phone_number | 93a53efa03fcb821fdaacb261384b84b172428f9 | [
"MIT"
] | 2 | 2021-03-09T10:05:00.000Z | 2022-02-14T11:00:18.000Z | lib/ex_phone_number/constants/values.ex | balena/ex_phone_number | 93a53efa03fcb821fdaacb261384b84b172428f9 | [
"MIT"
] | 1 | 2021-12-14T04:31:40.000Z | 2021-12-14T04:31:40.000Z | defmodule ExPhoneNumber.Constants.Values do
def nanpa_country_code(), do: 1
def min_length_for_nsn(), do: 2
def max_length_for_nsn(), do: 17
def max_length_country_code(), do: 3
def max_input_string_length(), do: 250
def unknown_region(), do: "ZZ"
def colombia_mobile_to_fixed_line_prefix(), do: "3"
... | 20.722222 | 53 | 0.691689 |
386424bf7b7b9906a4ef4429a401332c38e9d1f0 | 11,100 | exs | Elixir | test/unit/property_map_test.exs | rdf-elixir/rdf-ex | 7d4280ec9a912ef6ee9fc96ecdfdf26647016d6a | [
"MIT"
] | 19 | 2020-06-05T16:55:54.000Z | 2022-03-22T10:30:11.000Z | test/unit/property_map_test.exs | rdf-elixir/rdf-ex | 7d4280ec9a912ef6ee9fc96ecdfdf26647016d6a | [
"MIT"
] | 4 | 2020-07-03T21:02:55.000Z | 2021-11-18T07:22:06.000Z | test/unit/property_map_test.exs | rdf-elixir/rdf-ex | 7d4280ec9a912ef6ee9fc96ecdfdf26647016d6a | [
"MIT"
] | 3 | 2020-07-03T13:25:36.000Z | 2021-04-04T12:33:51.000Z | defmodule RDF.PropertyMapTest do
use RDF.Test.Case
doctest RDF.PropertyMap
alias RDF.PropertyMap
defmodule TestNS do
use RDF.Vocabulary.Namespace
defvocab ExampleWithConflict,
base_iri: "http://example.com/",
terms: ~w[term],
alias: [alias_term: "term"]
end
@example_property_m... | 34.259259 | 124 | 0.574595 |
386439b7385cd40e48b2ef28776a5f9e8d3a54af | 1,496 | ex | Elixir | lib/human_readable_identifier_generator/storage.ex | jshmrtn/human_readable_identifier_generator | fe9fe5558554092ec91de3f73a31339a3992312f | [
"MIT"
] | null | null | null | lib/human_readable_identifier_generator/storage.ex | jshmrtn/human_readable_identifier_generator | fe9fe5558554092ec91de3f73a31339a3992312f | [
"MIT"
] | 1 | 2021-05-18T04:10:34.000Z | 2021-05-18T04:10:34.000Z | lib/human_readable_identifier_generator/storage.ex | jshmrtn/human_readable_identifier_generator | fe9fe5558554092ec91de3f73a31339a3992312f | [
"MIT"
] | null | null | null | defmodule HumanReadableIdentifierGenerator.Storage do
@moduledoc false
use Agent
@server __MODULE__
@spec start_link(options :: Keyword.t()) :: Agent.on_start()
def start_link(options) do
base_path = Keyword.get(options, :base_path, default_base_path())
Agent.start_link(
fn ->
base_p... | 22.328358 | 83 | 0.615642 |
38644cd2d4af0375090caecaad321b9c1bebb678 | 520 | exs | Elixir | mix.exs | allen-garvey/phoenix-umbrella | 1d444bbd62a5e7b5f51d317ce2be71ee994125d5 | [
"MIT"
] | 4 | 2019-10-04T16:11:15.000Z | 2021-08-18T21:00:13.000Z | mix.exs | allen-garvey/phoenix-umbrella | 1d444bbd62a5e7b5f51d317ce2be71ee994125d5 | [
"MIT"
] | 5 | 2020-03-16T23:52:25.000Z | 2021-09-03T16:52:17.000Z | mix.exs | allen-garvey/phoenix-umbrella | 1d444bbd62a5e7b5f51d317ce2be71ee994125d5 | [
"MIT"
] | null | null | null | defmodule Umbrella.MixProject do
use Mix.Project
def project do
[
apps_path: "apps",
start_permanent: Mix.env() == :prod,
aliases: aliases(),
deps: deps()
]
end
# Dependencies listed here are available only for this
# project and cannot be accessed from applications inside
... | 17.931034 | 59 | 0.615385 |
38645d6742590045c8e439216463d3fb03fd0789 | 514 | exs | Elixir | test/plug_test.exs | kianmeng/ex_health | f7311d5e23e8cfbb6dd91381a52a420345331535 | [
"MIT"
] | 9 | 2019-03-16T21:24:57.000Z | 2021-12-29T21:31:16.000Z | test/plug_test.exs | kianmeng/ex_health | f7311d5e23e8cfbb6dd91381a52a420345331535 | [
"MIT"
] | 13 | 2018-12-11T16:43:26.000Z | 2022-02-09T23:08:01.000Z | test/plug_test.exs | kianmeng/ex_health | f7311d5e23e8cfbb6dd91381a52a420345331535 | [
"MIT"
] | 4 | 2019-09-18T00:54:04.000Z | 2021-05-09T05:30:47.000Z | defmodule PlugTest do
use ExUnit.Case, async: true
test "call/2 returns the correct JSON payload" do
endpoint = "/_health"
result =
Plug.Adapters.Test.Conn.conn(%Plug.Conn{}, :get, endpoint, %{})
|> ExHealth.Plug.call([])
assert %Plug.Conn{
resp_body: body,
halte... | 23.363636 | 69 | 0.529183 |
3864a34c17d9778381be6231094f60bb62fe7b7f | 132 | exs | Elixir | test/sitar_test.exs | hmahal/sitar | c5c28db08bc29775b61b008a7724012f8e0c7290 | [
"MIT"
] | null | null | null | test/sitar_test.exs | hmahal/sitar | c5c28db08bc29775b61b008a7724012f8e0c7290 | [
"MIT"
] | null | null | null | test/sitar_test.exs | hmahal/sitar | c5c28db08bc29775b61b008a7724012f8e0c7290 | [
"MIT"
] | null | null | null | defmodule SitarTest do
use ExUnit.Case
doctest Sitar
test "greets the world" do
assert Sitar.hello() == :world
end
end
| 14.666667 | 34 | 0.69697 |
3864ae5334c2a9856212c6b63b35d6a31cff457b | 2,402 | ex | Elixir | clients/display_video/lib/google_api/display_video/v1/model/creative_config.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/display_video/lib/google_api/display_video/v1/model/creative_config.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/display_video/lib/google_api/display_video/v1/model/creative_config.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... | 39.377049 | 232 | 0.755204 |
3864b40aa2f71a65e5419f9d37f1af7da96063c0 | 1,488 | ex | Elixir | lib/ex_riak/secondary_index.ex | activeprospect/ex_riak | f0f084c3fe9bbf64eca70f0fde455c39e9c67ed8 | [
"MIT"
] | null | null | null | lib/ex_riak/secondary_index.ex | activeprospect/ex_riak | f0f084c3fe9bbf64eca70f0fde455c39e9c67ed8 | [
"MIT"
] | null | null | null | lib/ex_riak/secondary_index.ex | activeprospect/ex_riak | f0f084c3fe9bbf64eca70f0fde455c39e9c67ed8 | [
"MIT"
] | null | null | null | defmodule ExRiak.SecondaryIndex do
@moduledoc """
Data types used for working with secondary indexes.
"""
alias ExRiak.SecondaryIndex.Result
@binary_index_type :binary_index
@integer_index_type :integer_index
@secondary_index_types [@binary_index_type, @integer_index_type]
@type continuation :: bina... | 29.176471 | 91 | 0.724462 |
3864cbba817150e753b62d7251cd85c01803f4dc | 805 | exs | Elixir | test/handle0_test.exs | pressrelations/tds | a05120c6064b9561860695242ebff37037f01165 | [
"Apache-2.0"
] | null | null | null | test/handle0_test.exs | pressrelations/tds | a05120c6064b9561860695242ebff37037f01165 | [
"Apache-2.0"
] | null | null | null | test/handle0_test.exs | pressrelations/tds | a05120c6064b9561860695242ebff37037f01165 | [
"Apache-2.0"
] | 1 | 2021-09-07T15:25:40.000Z | 2021-09-07T15:25:40.000Z | defmodule Handle0Test do
use ExUnit.Case, async: true
import Tds.TestHelper
alias Tds
@tag timeout: 50000
@table "foo"
setup do
opts = Application.fetch_env!(:tds, :opts)
{:ok, pid} = Tds.start_link(opts)
{:ok, [pid: pid]}
end
test "Could not find prepared statement with handle 0.",
... | 17.888889 | 66 | 0.525466 |
3864eae9355d80f420ca5241a4eb08f5e3d4f0d7 | 1,112 | exs | Elixir | clients/games_management/mix.exs | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/games_management/mix.exs | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/games_management/mix.exs | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | defmodule GoogleApi.GamesManagement.V1management.Mixfile do
use Mix.Project
@version "0.3.0"
def project do
[app: :google_api_games_management,
version: @version,
elixir: "~> 1.4",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
description: description(),
... | 23.166667 | 105 | 0.603417 |
3864ebe4d561a70395ba3c680ddfe2b37c8a8dee | 245 | ex | Elixir | examples/users/users.ex | madebymany/lazy_context | 7786607a2e56ecd280851a7c3f8085a164ea15c1 | [
"Apache-2.0"
] | 3 | 2019-01-02T17:45:21.000Z | 2019-12-04T18:11:53.000Z | examples/users/users.ex | madebymany/lazy_context | 7786607a2e56ecd280851a7c3f8085a164ea15c1 | [
"Apache-2.0"
] | null | null | null | examples/users/users.ex | madebymany/lazy_context | 7786607a2e56ecd280851a7c3f8085a164ea15c1 | [
"Apache-2.0"
] | null | null | null | defmodule LazyContext.Examples.Users do
@moduledoc """
An example context to demonstrate basic use of the LazyContext library
"""
alias LazyContext.Examples.Users.Schemas.User
use LazyContext,
schema: User,
suffix: :user
end
| 20.416667 | 72 | 0.738776 |
38650e6efddb803c6e17433055ff94d11e629c50 | 6,457 | exs | Elixir | test/channels_handler_test.exs | robktek/poxa | 1c330789735f9bc1e91c3dfa7a10edb3aff50aab | [
"MIT"
] | null | null | null | test/channels_handler_test.exs | robktek/poxa | 1c330789735f9bc1e91c3dfa7a10edb3aff50aab | [
"MIT"
] | null | null | null | test/channels_handler_test.exs | robktek/poxa | 1c330789735f9bc1e91c3dfa7a10edb3aff50aab | [
"MIT"
] | null | null | null | defmodule Poxa.ChannelsHandlerTest do
use ExUnit.Case, async: true
alias Poxa.Channel
alias Poxa.PresenceChannel
use Mimic
import Poxa.ChannelsHandler
setup do
stub(Poison)
stub(:cowboy_req)
:ok
end
test "malformed_request on multiple channels with no attributes" do
expect(:cowboy_req,... | 47.82963 | 126 | 0.66486 |
38656d3a046911235d9e69e3a0116f39251015f7 | 6,755 | exs | Elixir | test/create_test.exs | WolfDan/ash_graphql | 5a1df9f95a6b18fd324dbacd73d4bcd2ee8421cc | [
"MIT"
] | null | null | null | test/create_test.exs | WolfDan/ash_graphql | 5a1df9f95a6b18fd324dbacd73d4bcd2ee8421cc | [
"MIT"
] | null | null | null | test/create_test.exs | WolfDan/ash_graphql | 5a1df9f95a6b18fd324dbacd73d4bcd2ee8421cc | [
"MIT"
] | null | null | null | defmodule AshGraphql.CreateTest do
use ExUnit.Case, async: false
setup do
on_exit(fn ->
try do
ETS.Set.delete(ETS.Set.wrap_existing!(AshGraphql.Test.Post))
ETS.Set.delete(ETS.Set.wrap_existing!(AshGraphql.Test.Comment))
rescue
_ ->
:ok
end
end)
end
t... | 21.720257 | 98 | 0.413916 |
3865d412dc268d265c2eeb67675e6fffe2e3f489 | 1,119 | exs | Elixir | config/config.exs | pkinney/distance | 6b21a0c5f3e26ef2d6b086c9d049e33ae5c8019d | [
"MIT"
] | 47 | 2016-03-26T14:38:09.000Z | 2021-12-10T22:46:17.000Z | config/config.exs | pkinney/distance | 6b21a0c5f3e26ef2d6b086c9d049e33ae5c8019d | [
"MIT"
] | 2 | 2017-05-01T17:40:42.000Z | 2019-03-20T01:55:23.000Z | config/config.exs | pkinney/distance | 6b21a0c5f3e26ef2d6b086c9d049e33ae5c8019d | [
"MIT"
] | 6 | 2016-08-17T13:01:42.000Z | 2021-01-19T17:27:46.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.096774 | 73 | 0.751564 |
3865d6fcb95bd36096ade3f04b37a8109a48b794 | 58,563 | ex | Elixir | lib/fixtures/fixtures.ex | ChannexIO/ex_open_travel | 51a1101f55bc2d12a093237bb9ef64ef8a4d3091 | [
"Apache-2.0"
] | null | null | null | lib/fixtures/fixtures.ex | ChannexIO/ex_open_travel | 51a1101f55bc2d12a093237bb9ef64ef8a4d3091 | [
"Apache-2.0"
] | null | null | null | lib/fixtures/fixtures.ex | ChannexIO/ex_open_travel | 51a1101f55bc2d12a093237bb9ef64ef8a4d3091 | [
"Apache-2.0"
] | null | null | null | defmodule ExOpenTravel.Request.PCIProxies.Fixtures do
@fixture %{
vb_response: ~s(
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:ns2="http://www.opentravel.org/OTA/2003/05">
... | 62.90333 | 226 | 0.380616 |
38661383ea2875229f9660091744447bbb2461d4 | 1,004 | exs | Elixir | test/cumulus_test.exs | mylanconnolly/cumulus | 99d07d4a7479fc236889650606861f306b0bb0b3 | [
"MIT"
] | 1 | 2018-01-04T05:46:53.000Z | 2018-01-04T05:46:53.000Z | test/cumulus_test.exs | mylanconnolly/cumulus | 99d07d4a7479fc236889650606861f306b0bb0b3 | [
"MIT"
] | null | null | null | test/cumulus_test.exs | mylanconnolly/cumulus | 99d07d4a7479fc236889650606861f306b0bb0b3 | [
"MIT"
] | null | null | null | defmodule CumulusTest do
use ExUnit.Case
import Cumulus
doctest Cumulus
describe "Cumulus.object_media_url/2" do
test "it returns a properly-formatted Google Cloud Storage URL" do
assert object_media_url("123", "456") == "https://www.googleapis.com/storage/v1/b/123/o/456?alt=media"
end
end
... | 31.375 | 132 | 0.710159 |
38661fc2b29510b6908947a847c6799a600371c8 | 1,180 | exs | Elixir | config/config.exs | adanselm/exgitd | db693f3507a09788ea1f45901b15233e650ccbaa | [
"MIT"
] | 3 | 2015-01-13T18:38:37.000Z | 2017-10-27T17:04:09.000Z | config/config.exs | adanselm/exgitd | db693f3507a09788ea1f45901b15233e650ccbaa | [
"MIT"
] | null | null | null | config/config.exs | adanselm/exgitd | db693f3507a09788ea1f45901b15233e650ccbaa | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
#
# This configuration file is loaded before any dependency and
# is restricted to this project.
use Mix.Config
# Configures the router
config :exgitd, Exgitd.Endpoint,
url: [host: "localhost"],
... | 31.891892 | 88 | 0.710169 |
38664b6570a02172cc7dd2a798e6f9dfe5fefd34 | 9,249 | ex | Elixir | lib/iex/lib/iex/evaluator.ex | xtian/elixir | c680eb1a3992309c272e8f808e15990ea5318d6e | [
"Apache-2.0"
] | null | null | null | lib/iex/lib/iex/evaluator.ex | xtian/elixir | c680eb1a3992309c272e8f808e15990ea5318d6e | [
"Apache-2.0"
] | null | null | null | lib/iex/lib/iex/evaluator.ex | xtian/elixir | c680eb1a3992309c272e8f808e15990ea5318d6e | [
"Apache-2.0"
] | null | null | null | defmodule IEx.Evaluator do
@moduledoc false
@doc """
Eval loop for an IEx session. Its responsibilities include:
* loading of .iex files
* evaluating code
* trapping exceptions in the code being evaluated
* keeping expression history
"""
def init(command, server, leader, opts) do
old_le... | 30.029221 | 110 | 0.644502 |
386670ffb80def9fd6c3c6c7fb5368069ca970cf | 253 | ex | Elixir | lib/skillset.ex | LunarLogic/skillset | fe7eda83506ce45e2a60fd77bd17c3981b2ef254 | [
"MIT"
] | null | null | null | lib/skillset.ex | LunarLogic/skillset | fe7eda83506ce45e2a60fd77bd17c3981b2ef254 | [
"MIT"
] | null | null | null | lib/skillset.ex | LunarLogic/skillset | fe7eda83506ce45e2a60fd77bd17c3981b2ef254 | [
"MIT"
] | null | null | null | defmodule Skillset do
@moduledoc """
Skillset 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
| 25.3 | 66 | 0.754941 |
38667a6e562e290f06c6e45c85eef658289cb8ac | 1,644 | ex | Elixir | clients/big_query_data_transfer/lib/google_api/big_query_data_transfer/v1/model/enroll_data_sources_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/big_query_data_transfer/lib/google_api/big_query_data_transfer/v1/model/enroll_data_sources_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/big_query_data_transfer/lib/google_api/big_query_data_transfer/v1/model/enroll_data_sources_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 34.978723 | 155 | 0.750608 |
38667be2f087e213df56c624bc5471a0aac125c0 | 17,945 | exs | Elixir | test/maxwell/multipart_test.exs | zhongwencool/maxwell | 0b04ec5d1aafedbeb00a4ec3e683c9b2216b7349 | [
"MIT"
] | 130 | 2016-03-24T02:48:26.000Z | 2021-04-10T19:29:06.000Z | test/maxwell/multipart_test.exs | zhongwencool/maxwell | 0b04ec5d1aafedbeb00a4ec3e683c9b2216b7349 | [
"MIT"
] | 78 | 2016-06-28T06:33:01.000Z | 2021-12-15T01:37:54.000Z | test/maxwell/multipart_test.exs | zhongwencool/maxwell | 0b04ec5d1aafedbeb00a4ec3e683c9b2216b7349 | [
"MIT"
] | 24 | 2016-04-09T16:44:19.000Z | 2020-12-01T10:57:22.000Z | defmodule Maxwell.MultipartTest do
use ExUnit.Case
alias Maxwell.Multipart
if Code.ensure_loaded?(:rand) do
setup do
:rand.seed(
:exs1024,
{:erlang.phash2([node()]), :erlang.monotonic_time(), :erlang.unique_integer()}
)
:ok
end
else
setup do
:random.seed(:e... | 39.526432 | 245 | 0.645249 |
3866dc539df8a5528649fb584daca54088a4582d | 2,546 | ex | Elixir | lib/bootloader/application/priv_dir.ex | nerves-project-attic/bootloader | 685ddff0641ee9287c8725bade822f9b5587b5a1 | [
"Apache-2.0"
] | 10 | 2017-06-13T00:20:01.000Z | 2019-08-02T13:52:51.000Z | lib/bootloader/application/priv_dir.ex | nerves-project-attic/bootloader | 685ddff0641ee9287c8725bade822f9b5587b5a1 | [
"Apache-2.0"
] | 6 | 2017-06-12T18:49:21.000Z | 2017-09-20T16:31:26.000Z | lib/bootloader/application/priv_dir.ex | mobileoverlord/bootloader | 685ddff0641ee9287c8725bade822f9b5587b5a1 | [
"Apache-2.0"
] | 1 | 2021-01-10T01:09:45.000Z | 2021-01-10T01:09:45.000Z | defmodule Bootloader.Application.PrivDir do
alias Bootloader.Utils
alias __MODULE__
defstruct [application: nil, hash: nil, path: nil, files: []]
@type t :: %__MODULE__{
application: atom,
hash: String.t,
path: String.t,
files: Bootloader.Application.PrivDir.File.t
}
def load(app) do
... | 22.333333 | 80 | 0.577376 |
3866f82032be385411dfb4642364615b8db78253 | 65,566 | ex | Elixir | lib/ecto/query/planner.ex | alco/ecto | 8972c318d8ed551395607b0d6e15e3c6cfbf425a | [
"Apache-2.0"
] | null | null | null | lib/ecto/query/planner.ex | alco/ecto | 8972c318d8ed551395607b0d6e15e3c6cfbf425a | [
"Apache-2.0"
] | null | null | null | lib/ecto/query/planner.ex | alco/ecto | 8972c318d8ed551395607b0d6e15e3c6cfbf425a | [
"Apache-2.0"
] | null | null | null | defmodule Ecto.Query.Planner do
# Normalizes a query and its parameters.
@moduledoc false
alias Ecto.Query.{BooleanExpr, DynamicExpr, FromExpr, JoinExpr, QueryExpr, SelectExpr}
if map_size(%Ecto.Query{}) != 21 do
raise "Ecto.Query match out of date in builder"
end
@parent_as 0
@doc """
Converts ... | 37.042938 | 147 | 0.629046 |
38670c28234fda3aa545904aeea3eebab5eb7cee | 794 | exs | Elixir | mix.exs | josecarlo-macariola/islands | 3bf34371114c76b20a4e85f35d4ff1de61ab7234 | [
"MIT"
] | null | null | null | mix.exs | josecarlo-macariola/islands | 3bf34371114c76b20a4e85f35d4ff1de61ab7234 | [
"MIT"
] | null | null | null | mix.exs | josecarlo-macariola/islands | 3bf34371114c76b20a4e85f35d4ff1de61ab7234 | [
"MIT"
] | null | null | null | defmodule IslandEngine.Mixfile do
use Mix.Project
def project do
[app: :island_engine,
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.... | 22.685714 | 79 | 0.629723 |
386743f325346fea650df65d4c850480d25204bd | 618 | ex | Elixir | lib/mix/tasks/docker_push.ex | carlo-colombo/webhook_me | ca5d8181faa4b5b317da336e091bec4499d059f1 | [
"MIT"
] | null | null | null | lib/mix/tasks/docker_push.ex | carlo-colombo/webhook_me | ca5d8181faa4b5b317da336e091bec4499d059f1 | [
"MIT"
] | 37 | 2019-04-22T06:59:31.000Z | 2021-06-25T15:18:47.000Z | lib/mix/tasks/docker_push.ex | carlo-colombo/webhook_me | ca5d8181faa4b5b317da336e091bec4499d059f1 | [
"MIT"
] | null | null | null | defmodule Mix.Tasks.DockerPush do
use Mix.Task
alias WebhookMe.Mixfile
alias Mix.Tasks.Edib
def run(_args) do
Edib.run(["--hex", "--strip"])
project = Enum.into(Mixfile.project, %{})
for cmd <- commands(project) do
Mix.Shell.IO.cmd(cmd, [])
end
end
defp commands(%{version: versio... | 23.769231 | 82 | 0.661812 |
38675de746c1a5d0cea756c7a4be04277e645d79 | 951 | exs | Elixir | apps/cli/mix.exs | rjdellecese/connect-four | b3ab59cffde8bed83382881a2cae567b0e383cc8 | [
"MIT"
] | 3 | 2020-05-03T04:35:05.000Z | 2020-09-06T19:19:47.000Z | apps/cli/mix.exs | rjdellecese/connect-four | b3ab59cffde8bed83382881a2cae567b0e383cc8 | [
"MIT"
] | 6 | 2019-09-02T13:36:55.000Z | 2021-11-19T10:13:38.000Z | apps/cli/mix.exs | rjdellecese/connect_four_umbrella | b3ab59cffde8bed83382881a2cae567b0e383cc8 | [
"MIT"
] | null | null | null | defmodule CLI.MixProject do
use Mix.Project
def project do
[
app: :cli,
version: "0.1.0",
build_path: "../../_build",
config_path: "../../config/config.exs",
deps_path: "../../deps",
lockfile: "../../mix.lock",
elixir: "~> 1.9",
start_permanent: Mix.env() == :pro... | 21.613636 | 67 | 0.547844 |
38676a1ee8674e186baa1cd5218d8c71d025e977 | 3,418 | ex | Elixir | lib/trans_bot.ex | q60/trans_bot | 48cc0990900d86dc5bb73b5ae039f7d3f37c2d6c | [
"MIT"
] | 7 | 2022-01-06T07:19:46.000Z | 2022-01-09T09:38:20.000Z | lib/trans_bot.ex | q60/trans_bot | 48cc0990900d86dc5bb73b5ae039f7d3f37c2d6c | [
"MIT"
] | null | null | null | lib/trans_bot.ex | q60/trans_bot | 48cc0990900d86dc5bb73b5ae039f7d3f37c2d6c | [
"MIT"
] | 1 | 2022-02-23T08:21:20.000Z | 2022-02-23T08:21:20.000Z | defmodule TransBot do
@moduledoc """
TransBot is a bot for testing VK API module.
"""
alias BalalaikaBear.Longpoll.GroupLongpoll, as: Longpoll
alias RolePlay, as: RP
require Logger
use Macros
@token Application.fetch_env!(:trans_bot, :token)
@group_id Application.fetch_env!(:trans_bot, :group_id)
... | 24.241135 | 88 | 0.608836 |
386775fe0dbe201177f8b0dfad2b7d9f7791799d | 691 | ex | Elixir | debian/preinst.ex | cato-/check_mem | e1ff7f6692e2dd3af2751022402033243b505f45 | [
"BSD-2-Clause"
] | null | null | null | debian/preinst.ex | cato-/check_mem | e1ff7f6692e2dd3af2751022402033243b505f45 | [
"BSD-2-Clause"
] | null | null | null | debian/preinst.ex | cato-/check_mem | e1ff7f6692e2dd3af2751022402033243b505f45 | [
"BSD-2-Clause"
] | null | null | null | #!/bin/sh
# preinst script for checkmem
#
# see: dh_installdeb(1)
set -e
# summary of how this script can be called:
# * <new-preinst> `install'
# * <new-preinst> `install' <old-version>
# * <new-preinst> `upgrade' <old-version>
# * <old-preinst> `abort-upgrade' <new-version>
# for details... | 19.194444 | 63 | 0.628075 |
38679e3893a5d96242636686ad5475ceb38b7dda | 5,774 | exs | Elixir | mix.exs | faheempatel/phoenix | a83318f2a2284b7ab29b0b86cdd9d2e1f4d0a7c9 | [
"MIT"
] | null | null | null | mix.exs | faheempatel/phoenix | a83318f2a2284b7ab29b0b86cdd9d2e1f4d0a7c9 | [
"MIT"
] | null | null | null | mix.exs | faheempatel/phoenix | a83318f2a2284b7ab29b0b86cdd9d2e1f4d0a7c9 | [
"MIT"
] | null | null | null | defmodule Phoenix.MixProject do
use Mix.Project
@version "1.6.0"
@scm_url "https://github.com/phoenixframework/phoenix"
# If the elixir requirement is updated, we need to make the installer
# use at least the minimum requirement used here. Although often the
# installer is ahead of Phoenix itself.
@elix... | 27.364929 | 100 | 0.585556 |
3867c89c777387aad2076c2bbe590fd75254ac51 | 512 | ex | Elixir | lib/blog_api/services/search.ex | gissandrogama/blog_api | 9378d7844a1535d0c9663cc07ca92fc5d282ee92 | [
"MIT"
] | null | null | null | lib/blog_api/services/search.ex | gissandrogama/blog_api | 9378d7844a1535d0c9663cc07ca92fc5d282ee92 | [
"MIT"
] | 5 | 2021-01-13T04:16:16.000Z | 2021-01-13T21:43:00.000Z | lib/blog_api/services/search.ex | gissandrogama/blog_api | 9378d7844a1535d0c9663cc07ca92fc5d282ee92 | [
"MIT"
] | null | null | null | defmodule BlogApi.Services.Search do
@moduledoc """
module has function to search posts
"""
import Ecto.Query, warn: false
alias BlogApi.Repo
alias BlogApi.Posts.Post
@doc """
Returns the list of posts, according to the parameter passed.
## Examples
iex> list_search(%{"q" => ""})
[%Po... | 17.655172 | 63 | 0.621094 |
3867e2d09d9719c044a81a9471022e0907c2a650 | 1,899 | ex | Elixir | lib/camino_challenge_web/telemetry.ex | kadmohardy/camino_challenge | 53117f763c0a51b0825cac18b799b7d772781671 | [
"MIT"
] | null | null | null | lib/camino_challenge_web/telemetry.ex | kadmohardy/camino_challenge | 53117f763c0a51b0825cac18b799b7d772781671 | [
"MIT"
] | null | null | null | lib/camino_challenge_web/telemetry.ex | kadmohardy/camino_challenge | 53117f763c0a51b0825cac18b799b7d772781671 | [
"MIT"
] | null | null | null | defmodule CaminoChallengeWeb.Telemetry do
@moduledoc false
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
... | 33.315789 | 88 | 0.682991 |
3868153c72f616f988a1f3dcae6f919d2b6b1357 | 1,742 | ex | Elixir | priv/templates/ptr.gen.html/view.ex | francocatena/ptr | 4c8a960cdcb1c8523334fcc0cddba6b7fb3b3e60 | [
"MIT"
] | null | null | null | priv/templates/ptr.gen.html/view.ex | francocatena/ptr | 4c8a960cdcb1c8523334fcc0cddba6b7fb3b3e60 | [
"MIT"
] | 2 | 2021-03-09T01:59:47.000Z | 2022-02-10T17:08:54.000Z | priv/templates/ptr.gen.html/view.ex | francocatena/ptr | 4c8a960cdcb1c8523334fcc0cddba6b7fb3b3e60 | [
"MIT"
] | null | null | null | defmodule <%= inspect context.web_module %>.<%= inspect Module.concat(schema.web_namespace, schema.alias) %>View do
use <%= inspect context.web_module %>, :view
use Scrivener.HTML
def link_to_show(conn, <%= schema.singular %>) do
icon_link(
"eye",
title: dgettext("<%= schema.plural %>", "Show"),
... | 35.55102 | 115 | 0.618829 |
38684ad160daa6cc9ebbd71744f6ecffbefa0e96 | 237 | ex | Elixir | lib/phone/es/cu.ex | ajmath/phone | 0c7c7033ea93d028d3bd2a9e445d3aa93a6bc2fa | [
"Apache-2.0"
] | null | null | null | lib/phone/es/cu.ex | ajmath/phone | 0c7c7033ea93d028d3bd2a9e445d3aa93a6bc2fa | [
"Apache-2.0"
] | null | null | null | lib/phone/es/cu.ex | ajmath/phone | 0c7c7033ea93d028d3bd2a9e445d3aa93a6bc2fa | [
"Apache-2.0"
] | null | null | null | defmodule Phone.ES.CU do
@moduledoc false
use Helper.Area
def regex, do: ~r/^(34)(969|869)(.{6})/
def area_name, do: "Cuenca"
def area_type, do: "province"
def area_abbreviation, do: "CU"
matcher(["34969", "34869"])
end
| 18.230769 | 41 | 0.64557 |
38685725d92630c17afa15ebbb0ea264fc01476d | 5,110 | ex | Elixir | lib/livebook/runtime/erl_dist/node_manager.ex | aleDsz/livebook | 3ad817ac69b8459b684ff8d00c879ae7787b6dcc | [
"Apache-2.0"
] | null | null | null | lib/livebook/runtime/erl_dist/node_manager.ex | aleDsz/livebook | 3ad817ac69b8459b684ff8d00c879ae7787b6dcc | [
"Apache-2.0"
] | null | null | null | lib/livebook/runtime/erl_dist/node_manager.ex | aleDsz/livebook | 3ad817ac69b8459b684ff8d00c879ae7787b6dcc | [
"Apache-2.0"
] | null | null | null | defmodule Livebook.Runtime.ErlDist.NodeManager do
@moduledoc false
# The primary Livebook process started on a remote node.
#
# This process is responsible for initializing the node
# with necessary runtime configuration and then starting
# runtime server processes, one per runtime.
# This approach allow... | 30.783133 | 91 | 0.710568 |
38687ddc0bb51c5020302016d1afe862ea0f3e00 | 1,923 | ex | Elixir | lib/blockchain_api/job/submit_gateway.ex | pakorn186c/blockchain-api | 3c9fbc892e645f9bb144414f3da36749603f37bc | [
"Apache-2.0"
] | 17 | 2019-11-03T03:02:41.000Z | 2022-01-13T17:03:32.000Z | lib/blockchain_api/job/submit_gateway.ex | AddressXception/blockchain-api | eea98fa78af2887cc84762f84532c602c3b8b666 | [
"Apache-2.0"
] | 5 | 2019-11-07T23:26:53.000Z | 2020-11-24T21:45:35.000Z | lib/blockchain_api/job/submit_gateway.ex | AddressXception/blockchain-api | eea98fa78af2887cc84762f84532c602c3b8b666 | [
"Apache-2.0"
] | 11 | 2019-12-04T07:03:16.000Z | 2022-01-13T17:03:50.000Z | defmodule BlockchainAPI.Job.SubmitGateway do
alias BlockchainAPI.{
Query.Hotspot,
Query.PendingGateway,
HotspotNotifier,
Util
}
require Logger
@blacklisted_owner BlockchainAPI.Util.string_to_bin("14CJX5YCRf94kbhL9PPn58SL9EzqUGsrALeaEar4UikM4EB3Mx7")
def run(id) do
Logger.debug("running p... | 28.701493 | 108 | 0.635985 |
386884fd909cae0f8c5724866c3562e2c1cd2a9a | 490 | exs | Elixir | machine_translation/MorpHIN/Learned/Resources/TrainingInstances/98.exs | AdityaPrasadMishra/NLP--Project-Group-16 | fb62cc6a1db4a494058171f11c14a2be3933a9a1 | [
"MIT"
] | null | null | null | machine_translation/MorpHIN/Learned/Resources/TrainingInstances/98.exs | AdityaPrasadMishra/NLP--Project-Group-16 | fb62cc6a1db4a494058171f11c14a2be3933a9a1 | [
"MIT"
] | null | null | null | machine_translation/MorpHIN/Learned/Resources/TrainingInstances/98.exs | AdityaPrasadMishra/NLP--Project-Group-16 | fb62cc6a1db4a494058171f11c14a2be3933a9a1 | [
"MIT"
] | null | null | null | **EXAMPLE FILE**
pnoun * noun conj * noun * pn;
conj * noun verb_aux a82 verb * pn;
conj * noun verb_aux a82 verb * pn;
particle * noun cm * verb * pn;
pnoun * noun conj * verb * pn;
cm * noun cm * quantifier * pn;
cm * ordinal pnoun * pnoun * pn;
noun * noun cm * P_wh * pn;
cm * noun noun a75 verb * pn;
cm ... | 28.823529 | 40 | 0.622449 |
38688746aca1f06ceb5bba21715b45c8b63b5e27 | 148 | ex | Elixir | lib/sitemap/exceptions.ex | mkarbowiak/sitemap | 9bfbc1d401da0ab486445c59c632d1227a6eb0c3 | [
"MIT"
] | 103 | 2016-04-26T17:31:58.000Z | 2022-02-15T12:26:06.000Z | lib/sitemap/exceptions.ex | mkarbowiak/sitemap | 9bfbc1d401da0ab486445c59c632d1227a6eb0c3 | [
"MIT"
] | 31 | 2016-06-02T17:26:56.000Z | 2021-11-17T13:19:26.000Z | lib/sitemap/exceptions.ex | mkarbowiak/sitemap | 9bfbc1d401da0ab486445c59c632d1227a6eb0c3 | [
"MIT"
] | 24 | 2016-09-09T23:45:25.000Z | 2021-02-15T16:36:43.000Z | defmodule Sitemap.DirNotExists do
defexception message: "no message"
end
defmodule Sitemap.NameError do
defexception message: "no message"
end
| 18.5 | 36 | 0.804054 |
3868aa8d24c8723030d7cfb72bd6a1ffbc7854a2 | 356 | ex | Elixir | apps/jetlog/lib/jetlog/logbook/entry/event/logbook_entry_created.ex | jvdvleuten/jetlog | 916ebaa4c163279c078ebe0a7c0e14f7d0a3c3f2 | [
"Apache-2.0"
] | null | null | null | apps/jetlog/lib/jetlog/logbook/entry/event/logbook_entry_created.ex | jvdvleuten/jetlog | 916ebaa4c163279c078ebe0a7c0e14f7d0a3c3f2 | [
"Apache-2.0"
] | null | null | null | apps/jetlog/lib/jetlog/logbook/entry/event/logbook_entry_created.ex | jvdvleuten/jetlog | 916ebaa4c163279c078ebe0a7c0e14f7d0a3c3f2 | [
"Apache-2.0"
] | null | null | null | defmodule Jetlog.Logbook.Entry.Event.LogbookEntryCreated do
use Ecto.Schema
use Jetlog.Logbook.Entry.EctoEvent
@primary_key false
embedded_schema do
field(:user_id, :binary_id)
end
def changeset(event, params \\ %{}) do
event
|> Ecto.Changeset.cast(params, [:user_id])
|> Ecto.Changeset.vali... | 23.733333 | 59 | 0.719101 |
3868dd23ae4fb19babaa9ac77af2ad58596b857a | 2,495 | ex | Elixir | clients/big_query/lib/google_api/big_query/v2/model/dataset_list_datasets.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/big_query/lib/google_api/big_query/v2/model/dataset_list_datasets.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/big_query/lib/google_api/big_query/v2/model/dataset_list_datasets.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... | 40.241935 | 224 | 0.702605 |
38690df09252fb756806d8fd02a362d9a9bd445c | 7,332 | exs | Elixir | test/mix/tasks/nbx.gen.cache_test.exs | alexandrubagu/nebulex | c8870a91644545f7a10a6af825ef6822a40fadf4 | [
"MIT"
] | 845 | 2017-02-14T14:16:11.000Z | 2022-03-30T04:13:08.000Z | test/mix/tasks/nbx.gen.cache_test.exs | alexandrubagu/nebulex | c8870a91644545f7a10a6af825ef6822a40fadf4 | [
"MIT"
] | 146 | 2017-04-29T16:11:14.000Z | 2022-03-29T08:49:05.000Z | test/mix/tasks/nbx.gen.cache_test.exs | alexandrubagu/nebulex | c8870a91644545f7a10a6af825ef6822a40fadf4 | [
"MIT"
] | 50 | 2017-08-17T13:44:06.000Z | 2022-03-30T11:29:59.000Z | defmodule Mix.Tasks.Nbx.Gen.CacheTest do
use ExUnit.Case
import Mix.Tasks.Nbx.Gen.Cache, only: [run: 1]
describe "nbx.gen.cache" do
test "generates a new cache" do
in_tmp("new_cache", fn ->
run(["-c", "Cache"])
assert_file("lib/cache.ex", """
defmodule Cache do
use N... | 29.445783 | 96 | 0.554419 |
38691c810f5772e2059db8e9bc4e61cc48515444 | 5,597 | ex | Elixir | lib/ex_trello/parser.ex | yammine/ex_trello | a252cb34a2c08500ba62ad2f86f9d55ca609170f | [
"MIT"
] | 1 | 2020-09-14T20:49:53.000Z | 2020-09-14T20:49:53.000Z | lib/ex_trello/parser.ex | yammine/ex_trello | a252cb34a2c08500ba62ad2f86f9d55ca609170f | [
"MIT"
] | null | null | null | lib/ex_trello/parser.ex | yammine/ex_trello | a252cb34a2c08500ba62ad2f86f9d55ca609170f | [
"MIT"
] | null | null | null | defmodule ExTrello.Parser do
@moduledoc """
Provides parser logic for API results.
"""
@nested_resources ~w(board boards labels card cards list lists actions organization
organizations member members checklist checklists notification
notifications)a
@doc """
... | 37.563758 | 160 | 0.675719 |
38694719dfc48c5ef5d38df5ac37d9f66a90c49f | 9,272 | exs | Elixir | test/fusion_auth/groups_test.exs | leo-technologies-llc/fusion_auth | 5ef033321e4bd070afeec9dc7201e9a233391f19 | [
"MIT"
] | 3 | 2021-11-04T05:30:01.000Z | 2022-03-03T18:03:33.000Z | test/fusion_auth/groups_test.exs | leo-technologies-llc/fusion_auth | 5ef033321e4bd070afeec9dc7201e9a233391f19 | [
"MIT"
] | 8 | 2021-09-21T18:59:46.000Z | 2022-03-24T15:22:01.000Z | test/fusion_auth/groups_test.exs | leo-technologies-llc/fusion_auth | 5ef033321e4bd070afeec9dc7201e9a233391f19 | [
"MIT"
] | null | null | null | defmodule FusionAuth.GroupsTest do
use FusionAuth.DataCase
alias FusionAuth.{Groups, Applications, Users, TestUtilities}
@role %{
"description" => "Test role description.",
"name" => "Test Role",
"is_default" => true,
"is_super_role" => true
}
@application %{
"active" => true,
"name... | 34.468401 | 96 | 0.635677 |
386961bfdffb2fc89b102d9b7dabaab397124088 | 22,782 | ex | Elixir | lib/mix/tasks/phx.gen.auth.ex | achalagarwal/phoenix | 6534f05beda6696c50ca007d02c922fa168083d7 | [
"MIT"
] | null | null | null | lib/mix/tasks/phx.gen.auth.ex | achalagarwal/phoenix | 6534f05beda6696c50ca007d02c922fa168083d7 | [
"MIT"
] | null | null | null | lib/mix/tasks/phx.gen.auth.ex | achalagarwal/phoenix | 6534f05beda6696c50ca007d02c922fa168083d7 | [
"MIT"
] | null | null | null | defmodule Mix.Tasks.Phx.Gen.Auth do
@shortdoc "Generates authentication logic for a resource"
@moduledoc """
Generates authentication logic for a resource.
$ mix phx.gen.auth Accounts User users
The first argument is the context module followed by the schema module
and its plural name (used as the sc... | 33.258394 | 159 | 0.677596 |
38697bb81a81baeec3b1f681e26e14ca88f5f836 | 2,159 | ex | Elixir | clients/document_ai/lib/google_api/document_ai/v1beta2/model/google_cloud_documentai_v1_human_review_status.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/document_ai/lib/google_api/document_ai/v1beta2/model/google_cloud_documentai_v1_human_review_status.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/document_ai/lib/google_api/document_ai/v1beta2/model/google_cloud_documentai_v1_human_review_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.224138 | 319 | 0.737842 |
386988e54ac844dc3291a25a392e910d4bfe38de | 10,377 | ex | Elixir | lib/statix.ex | LaudateCorpus1/statix | e075715d7f05bdf684442ff57638c4e2ab150b05 | [
"0BSD"
] | 5 | 2017-10-03T01:42:32.000Z | 2019-10-04T12:39:28.000Z | lib/statix.ex | LaudateCorpus1/statix | e075715d7f05bdf684442ff57638c4e2ab150b05 | [
"0BSD"
] | null | null | null | lib/statix.ex | LaudateCorpus1/statix | e075715d7f05bdf684442ff57638c4e2ab150b05 | [
"0BSD"
] | 3 | 2021-06-03T10:08:54.000Z | 2022-03-17T19:45:09.000Z | defmodule Statix do
@moduledoc """
Writer for [StatsD](https://github.com/etsy/statsd)-compatible servers.
To get started with Statix, you have to create a module that calls `use
Statix`, like this:
defmodule MyApp.Statix do
use Statix
end
This will make `MyApp.Statix` a Statix connecti... | 28.275204 | 90 | 0.6313 |
38698c9dd4ebd5bfb7c492550b86141a8518e486 | 9,396 | ex | Elixir | test/support/factory.ex | eddean/plaid-elixir | 2a0e33354ac910d413b4d292c81074b0376cfbd8 | [
"MIT"
] | null | null | null | test/support/factory.ex | eddean/plaid-elixir | 2a0e33354ac910d413b4d292c81074b0376cfbd8 | [
"MIT"
] | null | null | null | test/support/factory.ex | eddean/plaid-elixir | 2a0e33354ac910d413b4d292c81074b0376cfbd8 | [
"MIT"
] | null | null | null | defmodule Plaid.Factory do
@moduledoc false
def http_response_body(:accounts) do
%{
"accounts" => [
%{
"account_id" => "vzeNDwK7KQIm4yEog683uElbp9GRLEFXGK98D",
"balances" => %{
"available" => 100,
"current" => 110,
"limit" => nil
}... | 28.216216 | 90 | 0.478501 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.