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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f7b0bf3de781f7a222ccac2d21dbf1b4bee850be | 776 | exs | Elixir | priv/repo/migrations/20210412174903_create_admins_auth_tables.exs | RatioPBC/epi-contacts | 6c43eea52cbfe2097f48b02e3d0c8fce3b46f1ee | [
"Apache-2.0"
] | null | null | null | priv/repo/migrations/20210412174903_create_admins_auth_tables.exs | RatioPBC/epi-contacts | 6c43eea52cbfe2097f48b02e3d0c8fce3b46f1ee | [
"Apache-2.0"
] | 13 | 2021-06-29T04:35:41.000Z | 2022-02-09T04:25:39.000Z | priv/repo/migrations/20210412174903_create_admins_auth_tables.exs | RatioPBC/epi-contacts | 6c43eea52cbfe2097f48b02e3d0c8fce3b46f1ee | [
"Apache-2.0"
] | null | null | null | defmodule EpiContacts.Repo.Migrations.CreateAdminsAuthTables do
use Ecto.Migration
def change do
execute "CREATE EXTENSION IF NOT EXISTS citext", ""
create table(:admins) do
add :email, :citext, null: false
add :hashed_password, :string, null: false
add :totp_secret, :binary, null: false... | 27.714286 | 77 | 0.675258 |
f7b0e838cb71bef89e87c84ea83c4ed89255025d | 1,657 | ex | Elixir | clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/flags_list_response.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | 1 | 2021-10-01T09:20:41.000Z | 2021-10-01T09:20:41.000Z | clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/flags_list_response.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/flags_list_response.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... | 33.14 | 106 | 0.722993 |
f7b10a314b0575e0c18b76926ac4528e79cd566f | 378 | exs | Elixir | config/dev.exs | TheFirstAvenger/umbrella_streamline_formatter | 59cc735d45b11b5abce5fbb852ab2911836f8483 | [
"MIT"
] | 1 | 2019-09-27T02:40:01.000Z | 2019-09-27T02:40:01.000Z | config/dev.exs | TheFirstAvenger/umbrella_streamline_formatter | 59cc735d45b11b5abce5fbb852ab2911836f8483 | [
"MIT"
] | 4 | 2019-06-03T19:50:46.000Z | 2019-06-03T19:50:47.000Z | config/dev.exs | TheFirstAvenger/logic_sim | 07d3bfd4f940870f00f344bc8807cef49fafed31 | [
"MIT"
] | null | null | null | use Mix.Config
config :git_hooks,
hooks: [
pre_commit: [
verbose: true,
mix_tasks: [
"format --check-formatted --dry-run --check-equivalent"
]
],
pre_push: [
verbose: true,
mix_tasks: [
"clean",
"compile --warnings-as-errors",
"credo --strict"... | 18 | 63 | 0.507937 |
f7b11360bb3d00fd340eb7dc647f4fac2f1bb53b | 1,422 | ex | Elixir | apps/gitgud/lib/gitgud/application.ex | EdmondFrank/gitgud | 1952c16130564357aa6f23e35f48f19e3a50d4dd | [
"MIT"
] | 449 | 2018-03-06T01:05:55.000Z | 2022-03-23T21:03:56.000Z | apps/gitgud/lib/gitgud/application.ex | EdmondFrank/gitgud | 1952c16130564357aa6f23e35f48f19e3a50d4dd | [
"MIT"
] | 69 | 2018-03-06T09:26:41.000Z | 2022-03-21T22:43:09.000Z | apps/gitgud/lib/gitgud/application.ex | EdmondFrank/gitgud | 1952c16130564357aa6f23e35f48f19e3a50d4dd | [
"MIT"
] | 41 | 2018-03-06T01:06:07.000Z | 2021-11-21T17:55:04.000Z | defmodule GitGud.Application do
@moduledoc false
use Application
def start(_type, _args) do
import Supervisor.Spec, warn: false
telemetry_attach_git_agent()
telemetry_attach_git_wire_protocol()
telemetry_attach_graphql()
children = [
{Cluster.Supervisor, [Application.get_env(:libclust... | 27.346154 | 134 | 0.658228 |
f7b132ecb70498ac54117fe24d5585f843a780bb | 3,929 | exs | Elixir | test/blockchain/account_test.exs | poanetwork/blockchain | 408287adeab1b7dbb7d55fd7398dd9320e37b30f | [
"MIT"
] | null | null | null | test/blockchain/account_test.exs | poanetwork/blockchain | 408287adeab1b7dbb7d55fd7398dd9320e37b30f | [
"MIT"
] | null | null | null | test/blockchain/account_test.exs | poanetwork/blockchain | 408287adeab1b7dbb7d55fd7398dd9320e37b30f | [
"MIT"
] | null | null | null | defmodule Blockchain.AccountTest do
use ExUnit.Case, async: true
doctest Blockchain.Account
alias Blockchain.Account
test "serialize and deserialize" do
acct = %Account{nonce: 5, balance: 10, storage_root: <<0x00, 0x01>>, code_hash: <<0x01, 0x02>>}
assert acct == acct |> Account.serialize |> ExRLP.enc... | 40.505155 | 182 | 0.618987 |
f7b140bbac2c52df89b6fc14c17e33b9566cfb7a | 1,353 | ex | Elixir | lib/utils.ex | henry232323/NewsBot | 2bff23ecd5964913890d117dc87dba45e331f519 | [
"MIT"
] | 4 | 2018-08-11T01:42:41.000Z | 2021-06-28T10:37:54.000Z | lib/utils.ex | henry232323/NewsBot | 2bff23ecd5964913890d117dc87dba45e331f519 | [
"MIT"
] | 1 | 2018-07-22T21:03:09.000Z | 2018-07-22T23:00:43.000Z | lib/utils.ex | henry232323/NewsBot | 2bff23ecd5964913890d117dc87dba45e331f519 | [
"MIT"
] | null | null | null | defmodule Utils do
alias Nostrum.Api
def parse_name(text, guild_id) do
if String.starts_with?(text, "<@") and String.ends_with?(text, ">") do
id = text
|> String.replace_prefix("<@", "")
|> String.replace_suffix(">", "")
|> String.replace_prefix("!", "")
Api.get_m... | 28.1875 | 78 | 0.574279 |
f7b14a6e7a327439d9a4831f9ca9412f95799b29 | 1,355 | ex | Elixir | lib/ex_oauth2_provider/oauth2/authorization/utils.ex | heroinbob/ex_oauth2_provider | 80c21a53bba0955ab3b66f1bd32cc81db0f04f49 | [
"MIT"
] | null | null | null | lib/ex_oauth2_provider/oauth2/authorization/utils.ex | heroinbob/ex_oauth2_provider | 80c21a53bba0955ab3b66f1bd32cc81db0f04f49 | [
"MIT"
] | null | null | null | lib/ex_oauth2_provider/oauth2/authorization/utils.ex | heroinbob/ex_oauth2_provider | 80c21a53bba0955ab3b66f1bd32cc81db0f04f49 | [
"MIT"
] | null | null | null | defmodule ExOauth2Provider.Authorization.Utils do
@moduledoc false
alias ExOauth2Provider.{Applications, Utils.Error}
alias Ecto.Schema
@doc false
@spec prehandle_request(Schema.t() | nil, map(), keyword()) :: {:ok, map()} | {:error, map()}
def prehandle_request(resource_owner, request, config, opts \\ []... | 30.795455 | 95 | 0.664207 |
f7b179129951a49d21b1c82926589a27fc1c1abd | 329 | ex | Elixir | lib/Structs/Guild/guild_member.ex | BenAlbin/alchemy | c31bce54e13a692acdba3c3b581ff49090da7604 | [
"MIT"
] | 1 | 2019-02-24T03:13:22.000Z | 2019-02-24T03:13:22.000Z | lib/Structs/Guild/guild_member.ex | appositum/alchemy | 2e4c06e198fa8c824183782508610815395d7c0e | [
"MIT"
] | null | null | null | lib/Structs/Guild/guild_member.ex | appositum/alchemy | 2e4c06e198fa8c824183782508610815395d7c0e | [
"MIT"
] | null | null | null | defmodule Alchemy.Guild.GuildMember do
alias Alchemy.User
import Alchemy.Structs
@moduledoc false
defstruct [:user,
:nick,
:roles,
:joined_at,
:deaf,
:mute]
def from_map(map) do
map
|> field("user", User)
|> to_struct(__MODULE__)
... | 17.315789 | 38 | 0.547112 |
f7b190afe2d206ed75c0a5bba648f1ea79b9ee63 | 243 | exs | Elixir | catcasts/test/catcasts_web/templates/layout/navigation_test.exs | cashmann/phoenix-tutorial | ea37b9d54a79df9bc1351a948eb8f8400c5e62ff | [
"MIT"
] | null | null | null | catcasts/test/catcasts_web/templates/layout/navigation_test.exs | cashmann/phoenix-tutorial | ea37b9d54a79df9bc1351a948eb8f8400c5e62ff | [
"MIT"
] | 3 | 2021-03-09T20:36:45.000Z | 2021-05-10T17:47:02.000Z | catcasts/test/catcasts_web/templates/layout/navigation_test.exs | cashmann/phoenix-tutorial | ea37b9d54a79df9bc1351a948eb8f8400c5e62ff | [
"MIT"
] | null | null | null | defmodule CatcastsWeb.NavigationTest do
use CatcastsWeb.ConnCase
test "shows a sign in with Google link when not signed in", %{conn: conn} do
conn = get conn, "/"
assert html_response(conn, 200) =~ "Sign in with Google"
end
end | 27 | 78 | 0.707819 |
f7b1a53910ee1f1239d50f2add5447fd64c318e3 | 537 | ex | Elixir | todo/lib/todo_web/controllers/pokemon_controller.ex | mpeseke/literate-waffle | 1b8da264d841d9f1d076729936b060c79f93e1aa | [
"Apache-2.0"
] | null | null | null | todo/lib/todo_web/controllers/pokemon_controller.ex | mpeseke/literate-waffle | 1b8da264d841d9f1d076729936b060c79f93e1aa | [
"Apache-2.0"
] | null | null | null | todo/lib/todo_web/controllers/pokemon_controller.ex | mpeseke/literate-waffle | 1b8da264d841d9f1d076729936b060c79f93e1aa | [
"Apache-2.0"
] | null | null | null | defmodule TodoWeb.PokemonController do
@moduledoc """
Manages incoming pokemon information
"""
use TodoWeb, :controller
@manager Application.get_env(:todo, :pokemon_manager)
def get_pokemon(conn, %{"pokemon_name" => pokemon_name}) do
case @manager.get_info(String.downcase(pokemon_name)) do
{:ok... | 24.409091 | 61 | 0.627561 |
f7b1b033fa1bd5d85b0c4bb9da1dba3aab624467 | 722 | ex | Elixir | lib/boilerplate/web/gettext.ex | ivanmauricio/widget-spike | a084fb75904b81b360443de2910911cf1f98b1cf | [
"MIT"
] | 2 | 2017-07-24T09:35:32.000Z | 2018-03-04T05:35:54.000Z | lib/boilerplate/web/gettext.ex | ivanmauricio/phoenix-boilerplate | a084fb75904b81b360443de2910911cf1f98b1cf | [
"MIT"
] | null | null | null | lib/boilerplate/web/gettext.ex | ivanmauricio/phoenix-boilerplate | a084fb75904b81b360443de2910911cf1f98b1cf | [
"MIT"
] | null | null | null | defmodule Boilerplate.Web.Gettext do
@moduledoc """
A module providing Internationalization with a gettext-based API.
By using [Gettext](https://hexdocs.pm/gettext),
your module gains a set of macros for translations, for example:
import Boilerplate.Web.Gettext
# Simple translation
gettext ... | 28.88 | 72 | 0.684211 |
f7b1ca76f03a3ba085d6f6e13394a7c7f284f4a7 | 453 | ex | Elixir | lesson_06/demo/user_cats_umbrella/apps/user_cats/lib/user_cats/user_context/user.ex | martijnmeeldijk/ip_major | 867f09975aa8db0b308081216ace639c5677446b | [
"BSD-3-Clause"
] | 1 | 2021-09-22T09:56:35.000Z | 2021-09-22T09:56:35.000Z | lesson_06/demo/user_cats_umbrella/apps/user_cats/lib/user_cats/user_context/user.ex | martijnmeeldijk/ip_major | 867f09975aa8db0b308081216ace639c5677446b | [
"BSD-3-Clause"
] | 7 | 2020-03-14T19:30:29.000Z | 2022-02-27T01:20:40.000Z | lesson_06/demo/user_cats_umbrella/apps/user_cats/lib/user_cats/user_context/user.ex | martijnmeeldijk/ip_major | 867f09975aa8db0b308081216ace639c5677446b | [
"BSD-3-Clause"
] | 11 | 2020-02-13T14:52:45.000Z | 2020-08-03T12:18:56.000Z | defmodule UserCats.UserContext.User do
use Ecto.Schema
import Ecto.Changeset
alias UserCats.CatContext.Cat
schema "users" do
field :date_of_birth, :date
field :first_name, :string
field :last_name, :string
has_many :cats, Cat
end
@doc false
def changeset(user, attrs) do
user
|> ... | 21.571429 | 67 | 0.699779 |
f7b1f485d41eb9a5fb2ea40353449c0bd7498cfd | 1,067 | ex | Elixir | elixir/lib/homework_web/schema.ex | joenarus/web-homework | 9f5e1436ecc731807f9d28e9ab0bb28a72770bf2 | [
"MIT"
] | null | null | null | elixir/lib/homework_web/schema.ex | joenarus/web-homework | 9f5e1436ecc731807f9d28e9ab0bb28a72770bf2 | [
"MIT"
] | null | null | null | elixir/lib/homework_web/schema.ex | joenarus/web-homework | 9f5e1436ecc731807f9d28e9ab0bb28a72770bf2 | [
"MIT"
] | null | null | null | defmodule HomeworkWeb.Schema do
@moduledoc """
Defines the graphql schema for this project.
"""
use Absinthe.Schema
alias HomeworkWeb.Resolvers.MerchantsResolver
alias HomeworkWeb.Resolvers.TransactionsResolver
alias HomeworkWeb.Resolvers.UsersResolver
alias HomeworkWeb.Resolvers.CompaniesResolver
im... | 26.02439 | 51 | 0.733833 |
f7b1fb4cc57fd393d9f8ff0f8fef14a633a5d5aa | 180 | ex | Elixir | lib/cog/permissions/eval/var.ex | matusf/cog | 71708301c7dc570fb0d3498a50f47a70ef957788 | [
"Apache-2.0"
] | 1,003 | 2016-02-23T17:21:12.000Z | 2022-02-20T14:39:35.000Z | lib/cog/permissions/eval/var.ex | matusf/cog | 71708301c7dc570fb0d3498a50f47a70ef957788 | [
"Apache-2.0"
] | 906 | 2016-02-22T22:54:19.000Z | 2022-03-11T15:19:43.000Z | lib/cog/permissions/eval/var.ex | matusf/cog | 71708301c7dc570fb0d3498a50f47a70ef957788 | [
"Apache-2.0"
] | 95 | 2016-02-23T13:42:31.000Z | 2021-11-30T14:39:55.000Z | defimpl Cog.Eval, for: Piper.Permissions.Ast.Var do
alias Piper.Permissions.Ast
def value_of(%Ast.Var{name: "command"}, context) do
{context.command, context}
end
end
| 18 | 53 | 0.716667 |
f7b2013a11e5f8b686f4e452f4d4b37c1fcc9860 | 550 | exs | Elixir | programming/elixir/hello-world-elixir-web-app-in-3-variants/variant-1-cowboy/mix.exs | NomikOS/learning | 268f94605214f6861ef476ca7573e68c068ccbe5 | [
"Unlicense"
] | null | null | null | programming/elixir/hello-world-elixir-web-app-in-3-variants/variant-1-cowboy/mix.exs | NomikOS/learning | 268f94605214f6861ef476ca7573e68c068ccbe5 | [
"Unlicense"
] | null | null | null | programming/elixir/hello-world-elixir-web-app-in-3-variants/variant-1-cowboy/mix.exs | NomikOS/learning | 268f94605214f6861ef476ca7573e68c068ccbe5 | [
"Unlicense"
] | null | null | null | defmodule HelloWorld.Mixfile do
use Mix.Project
def project do
[
app: :hello_world,
version: "0.1.0",
elixir: "~> 1.3",
deps: deps()
]
end
def application do
[
mod: {HelloWorld, []},
applications: applications(Mix.env())
]
end
defp applications(:dev), d... | 18.333333 | 80 | 0.550909 |
f7b2151562247a51f3e2ee22a4a96c331db9e0df | 3,131 | ex | Elixir | clients/cloud_build/lib/google_api/cloud_build/v1/model/git_hub_enterprise_secrets.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/cloud_build/lib/google_api/cloud_build/v1/model/git_hub_enterprise_secrets.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/cloud_build/lib/google_api/cloud_build/v1/model/git_hub_enterprise_secrets.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... | 46.044118 | 152 | 0.717343 |
f7b2199ed52293bc9e4744671e80ee95a47818bc | 3,510 | ex | Elixir | lib/elixir_boilerplate_web/endpoint.ex | Vincent-Legros/mirego-boilerplate | 20d94568133b6dd67862d864a420296217bd7b81 | [
"BSD-3-Clause"
] | null | null | null | lib/elixir_boilerplate_web/endpoint.ex | Vincent-Legros/mirego-boilerplate | 20d94568133b6dd67862d864a420296217bd7b81 | [
"BSD-3-Clause"
] | null | null | null | lib/elixir_boilerplate_web/endpoint.ex | Vincent-Legros/mirego-boilerplate | 20d94568133b6dd67862d864a420296217bd7b81 | [
"BSD-3-Clause"
] | null | null | null | defmodule ElixirBoilerplateWeb.Endpoint do
use Sentry.PlugCapture
use Phoenix.Endpoint, otp_app: :elixir_boilerplate
alias Plug.Conn
@plug_ssl Plug.SSL.init(rewrite_on: [:x_forwarded_proto])
socket("/socket", ElixirBoilerplateWeb.Socket)
plug(:ping)
plug(:canonical_host)
plug(:force_ssl)
plug(:cor... | 28.306452 | 139 | 0.709402 |
f7b21c82056857d933574f3ce158a7ba71028188 | 176 | ex | Elixir | Chapter01/working_with_collections/multiply_with_tail_recursion.ex | sthagen/Mastering-Elixir | 1b52ee79afe6b2ae80767a5e55c2be51df3c4c1d | [
"MIT"
] | 28 | 2018-08-09T05:05:29.000Z | 2022-03-14T06:59:07.000Z | Chapter01/working_with_collections/multiply_with_tail_recursion.ex | sthagen/Mastering-Elixir | 1b52ee79afe6b2ae80767a5e55c2be51df3c4c1d | [
"MIT"
] | 1 | 2019-02-11T09:11:33.000Z | 2019-05-06T06:40:19.000Z | Chapter01/working_with_collections/multiply_with_tail_recursion.ex | sthagen/Mastering-Elixir | 1b52ee79afe6b2ae80767a5e55c2be51df3c4c1d | [
"MIT"
] | 8 | 2018-08-09T14:53:02.000Z | 2020-12-14T19:31:21.000Z | defmodule Recursion do
def multiply(list, accum \\ 1)
def multiply([], accum), do: accum
def multiply([head | tail], accum) do
multiply(tail, head * accum)
end
end
| 22 | 39 | 0.664773 |
f7b24b49c21124b4933cb636e5eba761c97892e6 | 1,604 | exs | Elixir | test/catalog_api/url_test.exs | mbramson/catalog_api | b7d1351196829b0bd58f4346610609da3cb5756c | [
"MIT"
] | 2 | 2018-03-03T18:23:07.000Z | 2018-05-03T00:36:02.000Z | test/catalog_api/url_test.exs | mbramson/catalog_api | b7d1351196829b0bd58f4346610609da3cb5756c | [
"MIT"
] | 1 | 2018-03-04T17:55:11.000Z | 2018-03-04T17:55:11.000Z | test/catalog_api/url_test.exs | mbramson/catalog_api | b7d1351196829b0bd58f4346610609da3cb5756c | [
"MIT"
] | null | null | null | defmodule CatalogApi.UrlTest do
use ExUnit.Case
doctest CatalogApi.Url, except: [url_for: 2], import: true
alias CatalogApi.Url
import CatalogApi.FormatHelper
describe "url_for/2" do
test "produces correct url with no extra parameters" do
url = Url.url_for("view_cart")
[base_url, params] = u... | 41.128205 | 98 | 0.699501 |
f7b24c5f1562913f9fd06d05286115db1e1bd3fe | 990 | ex | Elixir | lib/encryption.ex | danielberkompas/phoenix_ecto_encryption_sample | 1fd0f337eb214cb6a5b7348a70ad27e50968d851 | [
"MIT"
] | 4 | 2015-08-11T04:01:14.000Z | 2019-09-17T04:47:02.000Z | lib/encryption.ex | danielberkompas/phoenix_ecto_encryption_sample | 1fd0f337eb214cb6a5b7348a70ad27e50968d851 | [
"MIT"
] | null | null | null | lib/encryption.ex | danielberkompas/phoenix_ecto_encryption_sample | 1fd0f337eb214cb6a5b7348a70ad27e50968d851 | [
"MIT"
] | null | null | null | defmodule Encryption 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, warn: false
children = [
# Start the endpoint when the application starts
supervisor(Encryp... | 31.935484 | 71 | 0.715152 |
f7b25ac93f9c214715cbc8ddc04fdbc107b75d86 | 578 | exs | Elixir | test/event_bus/managers/topic_test.exs | yknx4/event_bus | 49027b459afc325ebf71a1e5001fb8718b4e7d80 | [
"MIT"
] | 557 | 2018-01-24T13:34:57.000Z | 2022-03-31T20:19:09.000Z | test/event_bus/managers/topic_test.exs | yknx4/event_bus | 49027b459afc325ebf71a1e5001fb8718b4e7d80 | [
"MIT"
] | 62 | 2018-02-05T05:14:11.000Z | 2022-02-26T13:04:24.000Z | test/event_bus/managers/topic_test.exs | yknx4/event_bus | 49027b459afc325ebf71a1e5001fb8718b4e7d80 | [
"MIT"
] | 37 | 2018-02-23T16:49:15.000Z | 2021-09-03T18:11:06.000Z | defmodule EventBus.Manager.TopicTest do
use ExUnit.Case, async: false
alias EventBus.Manager.Topic
doctest Topic
setup do
on_exit(fn ->
topics = [:t1, :t2]
Enum.each(topics, fn topic -> Topic.unregister(topic) end)
end)
:ok
end
test "exist?" do
topic = :metrics_received_1
... | 17 | 64 | 0.650519 |
f7b27838de04f4c090470f6dcfe47a005612dbb7 | 1,019 | ex | Elixir | lib/insta_api/application.ex | kevinmartiniano/elixir-insta-api | 5025e02f111a4952279839d92f64f960ca08026a | [
"Apache-2.0"
] | 2 | 2021-01-07T23:46:50.000Z | 2021-01-08T12:16:00.000Z | lib/insta_api/application.ex | kevinmartiniano/elixir-insta-api | 5025e02f111a4952279839d92f64f960ca08026a | [
"Apache-2.0"
] | null | null | null | lib/insta_api/application.ex | kevinmartiniano/elixir-insta-api | 5025e02f111a4952279839d92f64f960ca08026a | [
"Apache-2.0"
] | null | null | null | defmodule InstaApi.Application do
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
use Application
def start(_type, _args) do
children = [
# Start the Ecto repository
InstaApi.Repo,
# Start the Telemetry supervisor
Insta... | 29.114286 | 66 | 0.704612 |
f7b2b9dac20ba1267bdae55c84a99c8bd36197bf | 853 | ex | Elixir | lib/tw/v1_1/coordinates.ex | en30/tw | 10c705953e9b3bf97abf9b4c221486976eac32d4 | [
"MIT"
] | null | null | null | lib/tw/v1_1/coordinates.ex | en30/tw | 10c705953e9b3bf97abf9b4c221486976eac32d4 | [
"MIT"
] | null | null | null | lib/tw/v1_1/coordinates.ex | en30/tw | 10c705953e9b3bf97abf9b4c221486976eac32d4 | [
"MIT"
] | null | null | null | defmodule Tw.V1_1.Coordinates do
@moduledoc """
Coordinates data structure and related functions.
https://developer.twitter.com/en/docs/twitter-api/v1/data-dictionary/object-model/geo
"""
@enforce_keys [:coordinates, :type]
defstruct([:coordinates, :type])
@typedoc """
> | field | description |
> | ... | 35.541667 | 167 | 0.66823 |
f7b2d1a99ac79b94bb8654d4e3a3a20c8eb4fdd6 | 1,796 | ex | Elixir | phoenix0/test/support/model_case.ex | JacobOscarson/elexir-0 | f4e67bb4a68c6a0cba5b410d80427e721ac7826a | [
"MIT"
] | null | null | null | phoenix0/test/support/model_case.ex | JacobOscarson/elexir-0 | f4e67bb4a68c6a0cba5b410d80427e721ac7826a | [
"MIT"
] | null | null | null | phoenix0/test/support/model_case.ex | JacobOscarson/elexir-0 | f4e67bb4a68c6a0cba5b410d80427e721ac7826a | [
"MIT"
] | null | null | null | defmodule Phoenix0.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... | 27.212121 | 84 | 0.685969 |
f7b317ec69735d1f9b6e740bafa4f97ee39be892 | 1,957 | ex | Elixir | lib/credo/check/consistency/unused_variable_names/collector.ex | iagomoreira/credo | 0a2a89442d3633799b457a285aba851dd6b3d04f | [
"MIT"
] | null | null | null | lib/credo/check/consistency/unused_variable_names/collector.ex | iagomoreira/credo | 0a2a89442d3633799b457a285aba851dd6b3d04f | [
"MIT"
] | null | null | null | lib/credo/check/consistency/unused_variable_names/collector.ex | iagomoreira/credo | 0a2a89442d3633799b457a285aba851dd6b3d04f | [
"MIT"
] | 1 | 2020-09-25T11:48:49.000Z | 2020-09-25T11:48:49.000Z | defmodule Credo.Check.Consistency.UnusedVariableNames.Collector do
@moduledoc false
use Credo.Check.Consistency.Collector
alias Credo.Code
def collect_matches(source_file, _params) do
unused_variable_recorder = &record_unused_variable/2
Code.prewalk(source_file, &traverse(unused_variable_recorder, &... | 30.578125 | 93 | 0.659172 |
f7b321d5a8288b5405e74c82b6bdb967ce46dccf | 1,928 | ex | Elixir | lib/util.ex | srfsh/pointers | ed1b4d743c410ba192fc5b92385e2fe39c623780 | [
"Apache-2.0"
] | null | null | null | lib/util.ex | srfsh/pointers | ed1b4d743c410ba192fc5b92385e2fe39c623780 | [
"Apache-2.0"
] | null | null | null | lib/util.ex | srfsh/pointers | ed1b4d743c410ba192fc5b92385e2fe39c623780 | [
"Apache-2.0"
] | null | null | null | defmodule Pointers.Util do
@moduledoc false
@bad_source "You must provide a binary :source option."
@bad_otp_app "You must provide a valid atom :otp_app option."
# maps a tuple flip over a list
def flip(list) when is_list(list),
do: Enum.map(list, fn {k, v} -> {v, k} end)
def add_binaries(list) when ... | 28.776119 | 81 | 0.658195 |
f7b3434f109ad349b21455e287e98bf3979e8211 | 73 | ex | Elixir | lib/mysimplelist_web/views/layout_view.ex | ScorpionResponse/mysimplelist | 3c792373cc372ab5e196fe109b9dae68b97b7220 | [
"Apache-2.0"
] | null | null | null | lib/mysimplelist_web/views/layout_view.ex | ScorpionResponse/mysimplelist | 3c792373cc372ab5e196fe109b9dae68b97b7220 | [
"Apache-2.0"
] | null | null | null | lib/mysimplelist_web/views/layout_view.ex | ScorpionResponse/mysimplelist | 3c792373cc372ab5e196fe109b9dae68b97b7220 | [
"Apache-2.0"
] | null | null | null | defmodule MysimplelistWeb.LayoutView do
use MysimplelistWeb, :view
end
| 18.25 | 39 | 0.835616 |
f7b357ceeb93fedae1cea14a0c9968e66310c0b8 | 1,956 | ex | Elixir | clients/firestore/lib/google_api/firestore/v1beta1/model/google_firestore_admin_v1beta1_list_indexes_response.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/firestore/lib/google_api/firestore/v1beta1/model/google_firestore_admin_v1beta1_list_indexes_response.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/firestore/lib/google_api/firestore/v1beta1/model/google_firestore_admin_v1beta1_list_indexes_response.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 32.6 | 135 | 0.744888 |
f7b37d277bbbe8ee6937a10448f013a50119b47f | 928 | exs | Elixir | config/config.exs | Catharz/fireball | bb9f123c0d2d71b16eda01d3838565e6e762de20 | [
"MIT"
] | null | null | null | config/config.exs | Catharz/fireball | bb9f123c0d2d71b16eda01d3838565e6e762de20 | [
"MIT"
] | null | null | null | config/config.exs | Catharz/fireball | bb9f123c0d2d71b16eda01d3838565e6e762de20 | [
"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
# General application configuration
config :fireball, ecto_repos: [Fireball.Repo]
# ... | 35.692308 | 86 | 0.772629 |
f7b37d4ea3f4f5f0bc30cc0a48bf12afe83e5ab6 | 2,020 | ex | Elixir | clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p1beta1_color_info.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/google_cloud_vision_v1p1beta1_color_info.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p1beta1_color_info.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 36.727273 | 118 | 0.722772 |
f7b3842a3d5e903fe86db8e3ad61d996b4df7469 | 4,820 | ex | Elixir | web/controllers/ref_monitor_controller.ex | crosscloudci/ci_status_repository | 335e8b89bbf59e6cf63e49541ce3ea6b60167e52 | [
"Apache-2.0"
] | 2 | 2019-03-05T16:29:10.000Z | 2020-01-17T14:11:48.000Z | web/controllers/ref_monitor_controller.ex | crosscloudci/ci_status_repository | 335e8b89bbf59e6cf63e49541ce3ea6b60167e52 | [
"Apache-2.0"
] | 3 | 2019-03-18T20:26:48.000Z | 2020-06-25T14:31:13.000Z | web/controllers/ref_monitor_controller.ex | crosscloudci/ci_status_repository | 335e8b89bbf59e6cf63e49541ce3ea6b60167e52 | [
"Apache-2.0"
] | 1 | 2018-06-16T15:32:25.000Z | 2018-06-16T15:32:25.000Z | defmodule CncfDashboardApi.RefMonitorController do
use CncfDashboardApi.Web, :controller
alias CncfDashboardApi.RefMonitor
def index(conn, _params) do
# ref_monitor = Repo.all(RefMonitor)
ref_monitor = CncfDashboardApi.Repo.all(from ref_monitors in CncfDashboardApi.RefMonitor,
... | 51.827957 | 134 | 0.547095 |
f7b3bdaef385c6aad724849480e278a14912aa52 | 254 | exs | Elixir | priv/repo/migrations/20201028045249_update_character_sessions.exs | Bentheburrito/caidata | 31ee94691293b926de77194585714d75c80fea0d | [
"MIT"
] | null | null | null | priv/repo/migrations/20201028045249_update_character_sessions.exs | Bentheburrito/caidata | 31ee94691293b926de77194585714d75c80fea0d | [
"MIT"
] | null | null | null | priv/repo/migrations/20201028045249_update_character_sessions.exs | Bentheburrito/caidata | 31ee94691293b926de77194585714d75c80fea0d | [
"MIT"
] | null | null | null | defmodule CAIData.Repo.Migrations.UpdateCharacterSessions do
use Ecto.Migration
def change do
alter table(:character_sessions) do
add :nanites_destroyed, :integer
add :nanites_lost, :integer
add :br_ups, {:array, :string}
end
end
end
| 21.166667 | 60 | 0.748031 |
f7b3d1634e91830ce471ab57f15cd2fa226a47f2 | 583 | exs | Elixir | test/views/error_view_test.exs | davidgrupp/Option-Calc | 0b0e4607d827412e207d5fc5102aee001e93a821 | [
"Apache-2.0"
] | null | null | null | test/views/error_view_test.exs | davidgrupp/Option-Calc | 0b0e4607d827412e207d5fc5102aee001e93a821 | [
"Apache-2.0"
] | null | null | null | test/views/error_view_test.exs | davidgrupp/Option-Calc | 0b0e4607d827412e207d5fc5102aee001e93a821 | [
"Apache-2.0"
] | null | null | null | defmodule OptionCalc.ErrorViewTest do
use OptionCalc.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(OptionCalc.ErrorView, "404.html", []) ==
"Page not found"
end
test "render 500.... | 26.5 | 68 | 0.684391 |
f7b44ab65500564c3b35bb6e4cb1d861440597e0 | 130 | exs | Elixir | test/test_helper.exs | verrchu/gruf | dc70f09c82418aac02d3fe742098ef69b47cc59f | [
"MIT"
] | null | null | null | test/test_helper.exs | verrchu/gruf | dc70f09c82418aac02d3fe742098ef69b47cc59f | [
"MIT"
] | null | null | null | test/test_helper.exs | verrchu/gruf | dc70f09c82418aac02d3fe742098ef69b47cc59f | [
"MIT"
] | null | null | null | {:ok, _apps} = Application.ensure_all_started(:propcheck)
[{_mod, _bin}] = Code.require_file("util.exs", "./test")
ExUnit.start()
| 32.5 | 57 | 0.7 |
f7b4827e06ec05756a63045dfd8083cb6e8f77ce | 1,674 | ex | Elixir | template/$PROJECT_NAME$/test/support/data_case.ex | paridin/gen_template_dino | fa584b063558b3b38b7584fb951a7822a818b28b | [
"Apache-2.0"
] | null | null | null | template/$PROJECT_NAME$/test/support/data_case.ex | paridin/gen_template_dino | fa584b063558b3b38b7584fb951a7822a818b28b | [
"Apache-2.0"
] | null | null | null | template/$PROJECT_NAME$/test/support/data_case.ex | paridin/gen_template_dino | fa584b063558b3b38b7584fb951a7822a818b28b | [
"Apache-2.0"
] | null | null | null | defmodule <%= @project_name_camel_case %>.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 sandb... | 29.368421 | 82 | 0.685783 |
f7b4ba2635b60881f24b563b5129394df6300f5f | 1,248 | exs | Elixir | implementations/elixir/ockam/ockam/test/ockam/transport/tcp/address_test.exs | piotr-cla/ockam | 914cd3ec1620181ac64ad2fb13d843f3eb184464 | [
"Apache-2.0"
] | 1 | 2021-08-25T03:33:52.000Z | 2021-08-25T03:33:52.000Z | implementations/elixir/ockam/ockam/test/ockam/transport/tcp/address_test.exs | piotr-cla/ockam | 914cd3ec1620181ac64ad2fb13d843f3eb184464 | [
"Apache-2.0"
] | 110 | 2021-08-06T17:16:52.000Z | 2022-03-28T17:20:54.000Z | implementations/elixir/ockam/ockam/test/ockam/transport/tcp/address_test.exs | piotr-cla/ockam | 914cd3ec1620181ac64ad2fb13d843f3eb184464 | [
"Apache-2.0"
] | null | null | null | defmodule Ockam.Transport.TCPAddress.Tests do
use ExUnit.Case, async: true
doctest Ockam.Transport.TCPAddress
alias Ockam.Address
alias Ockam.Transport.TCPAddress
@tcp 1
@four_thousand_encoded <<160, 15>>
@localhost_binary <<0, 127, 0, 0, 1>>
describe "Ockam.Transport.TCPAddress" do
test "1 is the... | 32 | 94 | 0.673077 |
f7b4d4287f637a261c24fb153a0242d4b2d52775 | 9,658 | exs | Elixir | test/phoenix_live_view_test.exs | davydog187/phoenix_live_view | c15d2811a7e91f71f448f4d9d1b9a520e9d0bf91 | [
"MIT"
] | null | null | null | test/phoenix_live_view_test.exs | davydog187/phoenix_live_view | c15d2811a7e91f71f448f4d9d1b9a520e9d0bf91 | [
"MIT"
] | null | null | null | test/phoenix_live_view_test.exs | davydog187/phoenix_live_view | c15d2811a7e91f71f448f4d9d1b9a520e9d0bf91 | [
"MIT"
] | null | null | null | defmodule Phoenix.LiveViewUnitTest do
use ExUnit.Case, async: true
import Phoenix.LiveView
alias Phoenix.LiveView.{Utils, Socket}
alias Phoenix.LiveViewTest.Endpoint
@socket Utils.configure_socket(
%Socket{
endpoint: Endpoint,
router: Phoenix.LiveViewTest.Router,
... | 33.534722 | 126 | 0.591737 |
f7b4d9efcaf46b78fc58b60792c5104b265cc7a1 | 1,750 | ex | Elixir | clients/books/lib/google_api/books/v1/model/dictlayerdata.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/books/lib/google_api/books/v1/model/dictlayerdata.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/books/lib/google_api/books/v1/model/dictlayerdata.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... | 33.018868 | 94 | 0.713714 |
f7b4f2147a1f11fd9d1de2f8f2a5c2c9aabf1b02 | 656 | exs | Elixir | config/test.exs | jacrdn/web_dev_hw08 | 1727810bb56a9a30733cb93cd77a8db7f5f747ed | [
"MIT"
] | null | null | null | config/test.exs | jacrdn/web_dev_hw08 | 1727810bb56a9a30733cb93cd77a8db7f5f747ed | [
"MIT"
] | null | null | null | config/test.exs | jacrdn/web_dev_hw08 | 1727810bb56a9a30733cb93cd77a8db7f5f747ed | [
"MIT"
] | null | null | null | use Mix.Config
# Configure your database
#
# The MIX_TEST_PARTITION environment variable can be used
# to provide built-in test partitioning in CI environment.
# Run `mix help test` for more information.
config :events, Events.Repo,
username: "postgres",
password: "postgres",
database: "events_test#{System.get_e... | 28.521739 | 65 | 0.746951 |
f7b5612fd20781e2e49905d05f809678a1bbe4e2 | 1,669 | ex | Elixir | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v2beta1/model/video_content.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v2beta1/model/video_content.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v2beta1/model/video_content.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... | 33.38 | 171 | 0.726183 |
f7b5682e0cd42c9817e3c4b4fc15eb073d4debdf | 25,089 | exs | Elixir | integration_test/cases/repo.exs | rbishop/ecto | a8a3215c9e2e35f7556f54c8d47d78a3670796d8 | [
"Apache-2.0"
] | null | null | null | integration_test/cases/repo.exs | rbishop/ecto | a8a3215c9e2e35f7556f54c8d47d78a3670796d8 | [
"Apache-2.0"
] | null | null | null | integration_test/cases/repo.exs | rbishop/ecto | a8a3215c9e2e35f7556f54c8d47d78a3670796d8 | [
"Apache-2.0"
] | null | null | null | Code.require_file "../support/types.exs", __DIR__
defmodule Ecto.Integration.RepoTest do
use Ecto.Integration.Case
alias Ecto.Integration.TestRepo
import Ecto.Query
alias Ecto.Integration.Post
alias Ecto.Integration.User
alias Ecto.Integration.PostUsecTimestamps
alias Ecto.Integration.Comment
alias E... | 35.739316 | 101 | 0.645622 |
f7b56e8b5e3b7cb7c02a063c76d438eda16481f8 | 3,926 | ex | Elixir | lib/vintage_net_mobile/signal_monitor.ex | dognotdog/vintage_net_mobile | a709d8f8ce3af71c444d11ff07483b4be180c4c5 | [
"Apache-2.0"
] | 18 | 2020-03-08T21:06:10.000Z | 2022-02-05T00:44:55.000Z | lib/vintage_net_mobile/signal_monitor.ex | dognotdog/vintage_net_mobile | a709d8f8ce3af71c444d11ff07483b4be180c4c5 | [
"Apache-2.0"
] | 27 | 2020-02-28T16:07:07.000Z | 2022-01-19T03:51:02.000Z | lib/vintage_net_mobile/signal_monitor.ex | dognotdog/vintage_net_mobile | a709d8f8ce3af71c444d11ff07483b4be180c4c5 | [
"Apache-2.0"
] | 7 | 2020-03-25T20:08:22.000Z | 2021-10-22T03:20:17.000Z | defmodule VintageNetMobile.SignalMonitor do
@moduledoc """
Monitor the cell signal levels
This monitor queries the modem for cell signal level information and posts it to
VintageNet properties.
The following properties are reported:
| Property | Values | Description |
| --... | 34.13913 | 174 | 0.684921 |
f7b5b0c26b44e82934e7e0ec0e7436aa7ec9a7b0 | 894 | ex | Elixir | clients/private_ca/lib/google_api/private_ca/v1beta1/metadata.ex | myskoach/elixir-google-api | 4f8cbc2fc38f70ffc120fd7ec48e27e46807b563 | [
"Apache-2.0"
] | null | null | null | clients/private_ca/lib/google_api/private_ca/v1beta1/metadata.ex | myskoach/elixir-google-api | 4f8cbc2fc38f70ffc120fd7ec48e27e46807b563 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/private_ca/lib/google_api/private_ca/v1beta1/metadata.ex | myskoach/elixir-google-api | 4f8cbc2fc38f70ffc120fd7ec48e27e46807b563 | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 33.111111 | 74 | 0.761745 |
f7b5c0ca75675cc8850977b46042171f3abec9f4 | 5,696 | ex | Elixir | lib/elixir/priv/unicode.ex | bruce/elixir | d77ccf941541959079e5f677f8717da24b486fac | [
"Apache-2.0"
] | 1 | 2017-09-09T20:59:04.000Z | 2017-09-09T20:59:04.000Z | lib/elixir/priv/unicode.ex | bruce/elixir | d77ccf941541959079e5f677f8717da24b486fac | [
"Apache-2.0"
] | null | null | null | lib/elixir/priv/unicode.ex | bruce/elixir | d77ccf941541959079e5f677f8717da24b486fac | [
"Apache-2.0"
] | null | null | null | # This file has its own compilation step because
# it needs to parse String.Unicode data and
# compile a digested module.
defmodule String.Unicode do
@moduledoc false
def version, do: {6,2,0}
to_binary = fn
"" ->
nil
codepoints ->
codepoints = :binary.split(codepoints, " ", [:global])
... | 25.657658 | 109 | 0.630091 |
f7b5cb921ef8918f2eb0a2b44bdd803447a3ee15 | 8,477 | ex | Elixir | lib/format/datetime/formatters/default.ex | Adzz/timex | a9c97e2dd9cb5bed286d5a1d688f3eea8e73e6ea | [
"MIT"
] | null | null | null | lib/format/datetime/formatters/default.ex | Adzz/timex | a9c97e2dd9cb5bed286d5a1d688f3eea8e73e6ea | [
"MIT"
] | null | null | null | lib/format/datetime/formatters/default.ex | Adzz/timex | a9c97e2dd9cb5bed286d5a1d688f3eea8e73e6ea | [
"MIT"
] | null | null | null | defmodule Timex.Format.DateTime.Formatters.Default do
@moduledoc """
Date formatting language used by default by the formatting functions in Timex.
This is a novel formatting language introduced with `DateFormat`. Its main
advantage is simplicity and usage of mnemonics that are easy to memorize.
## Directiv... | 40.951691 | 106 | 0.600566 |
f7b5e0803deefb5b2d9f1ecf6100da0b64772a66 | 1,570 | ex | Elixir | lib/new_relixir/plug/phoenix.ex | nikhilbelchada/new-relixir | 6595b7ef713617e4c69ff414371c01c0e168a706 | [
"MIT"
] | 192 | 2016-03-18T23:58:14.000Z | 2022-02-04T13:41:32.000Z | lib/new_relixir/plug/phoenix.ex | nikhilbelchada/new-relixir | 6595b7ef713617e4c69ff414371c01c0e168a706 | [
"MIT"
] | 53 | 2016-05-06T17:57:06.000Z | 2019-01-25T21:11:52.000Z | lib/new_relixir/plug/phoenix.ex | nikhilbelchada/new-relixir | 6595b7ef713617e4c69ff414371c01c0e168a706 | [
"MIT"
] | 55 | 2016-04-29T09:45:36.000Z | 2020-05-27T23:35:04.000Z | defmodule NewRelixir.Plug.Phoenix do
@moduledoc """
WARNING: this module is deprecated.
A plug that instruments Phoenix controllers and records their response times in New Relic.
Inside an instrumented controller's actions, instrumented `Repo` calls will be scoped
under the current web transaction.
```
... | 23.787879 | 92 | 0.702548 |
f7b5f87048235cca43dcdad5d5a4ec05674e083b | 1,950 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/allocation_specific_sku_allocation_allocated_instance_properties_reserved_disk.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/compute/lib/google_api/compute/v1/model/allocation_specific_sku_allocation_allocated_instance_properties_reserved_disk.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/allocation_specific_sku_allocation_allocated_instance_properties_reserved_disk.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 ... | 34.210526 | 248 | 0.747692 |
f7b603b2df0f117077321015280beb2366e52789 | 6,262 | exs | Elixir | test/groupher_server_web/mutation/cms/flags/drink_flag_test.exs | coderplanets/coderplanets_server | 3663e56340d6d050e974c91f7e499d8424fc25e9 | [
"Apache-2.0"
] | 240 | 2018-11-06T09:36:54.000Z | 2022-02-20T07:12:36.000Z | test/groupher_server_web/mutation/cms/flags/drink_flag_test.exs | coderplanets/coderplanets_server | 3663e56340d6d050e974c91f7e499d8424fc25e9 | [
"Apache-2.0"
] | 363 | 2018-07-11T03:38:14.000Z | 2021-12-14T01:42:40.000Z | test/groupher_server_web/mutation/cms/flags/drink_flag_test.exs | mydearxym/mastani_server | f24034a4a5449200165cf4a547964a0961793eab | [
"Apache-2.0"
] | 22 | 2019-01-27T11:47:56.000Z | 2021-02-28T13:17:52.000Z | defmodule GroupherServer.Test.Mutation.Flags.DrinkFlag do
use GroupherServer.TestTools
alias GroupherServer.CMS
alias CMS.Model.Community
alias Helper.ORM
setup do
{:ok, user} = db_insert(:user)
{:ok, community} = db_insert(:community)
{:ok, drink} = CMS.create_article(community, :drink, mock_... | 34.98324 | 92 | 0.654104 |
f7b60c8fd15e71d6fb998ea06e7a1e9565ed95d5 | 562 | exs | Elixir | apps/neoscan_web/test/neoscan_web/controllers/blocks_controller_test.exs | vincentgeneste/neo-scan | 4a654575331eeb3eb12d4fd61696a7bd6dbca3ce | [
"MIT"
] | 75 | 2017-07-23T02:45:32.000Z | 2021-12-13T11:04:17.000Z | apps/neoscan_web/test/neoscan_web/controllers/blocks_controller_test.exs | vincentgeneste/neo-scan | 4a654575331eeb3eb12d4fd61696a7bd6dbca3ce | [
"MIT"
] | 252 | 2017-07-13T19:36:00.000Z | 2021-07-28T18:40:00.000Z | apps/neoscan_web/test/neoscan_web/controllers/blocks_controller_test.exs | vincentgeneste/neo-scan | 4a654575331eeb3eb12d4fd61696a7bd6dbca3ce | [
"MIT"
] | 87 | 2017-07-23T02:45:34.000Z | 2022-03-02T14:54:27.000Z | defmodule NeoscanWeb.BlocksControllerTest do
use NeoscanWeb.ConnCase
import NeoscanWeb.Factory
test "/blocks/:page", %{conn: conn} do
block = insert(:block)
insert(:block)
insert(:block)
conn = get(conn, "/blocks/1")
body = html_response(conn, 200)
assert body =~ Base.encode16(block.hash,... | 26.761905 | 64 | 0.645907 |
f7b634e400e2a4630d5ba75fff1d14b2766f78a4 | 3,704 | ex | Elixir | elixir_backend/clubhouse_data/lib/clubhouse_data/users.ex | yusufaine/nus-clubhouse | eae8223d26111bab5e981c95b539c964293908e8 | [
"MIT"
] | 1 | 2021-05-16T08:17:37.000Z | 2021-05-16T08:17:37.000Z | elixir_backend/clubhouse_data/lib/clubhouse_data/users.ex | yusufaine/nus-clubhouse | eae8223d26111bab5e981c95b539c964293908e8 | [
"MIT"
] | 116 | 2021-05-29T16:32:51.000Z | 2021-08-13T16:05:29.000Z | elixir_backend/clubhouse_data/lib/clubhouse_data/users.ex | yusufaine/nus-clubhouse | eae8223d26111bab5e981c95b539c964293908e8 | [
"MIT"
] | 2 | 2021-05-23T07:12:40.000Z | 2021-10-11T02:59:40.000Z | defmodule ClubhouseData.Users do
@moduledoc """
The Users context.
"""
import Ecto.Query, warn: false
alias ClubhouseData.{Users.User, Repo}
@type changeset_error :: {:error, Ecto.Changeset.t()}
@doc """
Returns the list of users.
"""
@spec list_users() :: [User.t()]
def li... | 28.060606 | 91 | 0.565065 |
f7b6882dcc744577d70eb307d66f319e5d47d607 | 689 | exs | Elixir | language-practice/Elixir/elixir-concurrency-basics/portal/mix.exs | cjschneider2/practice_code | 5d9b793eccca39262fb452fa1f3f53e6b54bc7aa | [
"Unlicense"
] | null | null | null | language-practice/Elixir/elixir-concurrency-basics/portal/mix.exs | cjschneider2/practice_code | 5d9b793eccca39262fb452fa1f3f53e6b54bc7aa | [
"Unlicense"
] | null | null | null | language-practice/Elixir/elixir-concurrency-basics/portal/mix.exs | cjschneider2/practice_code | 5d9b793eccca39262fb452fa1f3f53e6b54bc7aa | [
"Unlicense"
] | null | null | null | defmodule Portal.Mixfile do
use Mix.Project
def project do
[app: :portal,
version: "0.0.1",
elixir: "~> 1.0",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps]
end
# Configuration for the OTP application
#
# Type `mix help compile.app` for more i... | 20.264706 | 77 | 0.599419 |
f7b68babbc01ee5f71a9f40ea9d702fce71fc4d3 | 260 | ex | Elixir | lib/heat_tags/messages/get.ex | DPechetti/nlw-heat-elixir | c3fe71244a4c1d49bb28668f9334c5b4c803aa54 | [
"MIT"
] | 2 | 2021-10-30T11:53:58.000Z | 2022-02-06T02:17:06.000Z | lib/heat_tags/messages/get.ex | DPechetti/nlw-heat-elixir | c3fe71244a4c1d49bb28668f9334c5b4c803aa54 | [
"MIT"
] | 1 | 2021-10-30T14:24:28.000Z | 2021-10-30T14:24:28.000Z | lib/heat_tags/messages/get.ex | DPechetti/nlw-heat-elixir | c3fe71244a4c1d49bb28668f9334c5b4c803aa54 | [
"MIT"
] | null | null | null | defmodule HeatTags.Messages.Get do
import Ecto.Query
alias HeatTags.{Message, Repo}
def todayMessages do
today = Date.utc_today()
query = from message in Message, where: type(message.inserted_at, :date) == ^today
Repo.all(query)
end
end
| 20 | 86 | 0.707692 |
f7b6a8633c9e46724068515cce636e0145d7106f | 10,245 | ex | Elixir | lib/iex/lib/iex/evaluator.ex | wstrinz/elixir | 1048b34d6c816f8e5dbd4fdbaaf9baa41b4f0d95 | [
"Apache-2.0"
] | 1 | 2021-04-28T21:35:01.000Z | 2021-04-28T21:35:01.000Z | lib/iex/lib/iex/evaluator.ex | wstrinz/elixir | 1048b34d6c816f8e5dbd4fdbaaf9baa41b4f0d95 | [
"Apache-2.0"
] | 1 | 2018-09-10T23:36:45.000Z | 2018-09-10T23:36:45.000Z | lib/iex/lib/iex/evaluator.ex | wstrinz/elixir | 1048b34d6c816f8e5dbd4fdbaaf9baa41b4f0d95 | [
"Apache-2.0"
] | 1 | 2018-09-10T23:32:56.000Z | 2018-09-10T23:32:56.000Z | 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... | 29.781977 | 98 | 0.643631 |
f7b6c02a31eed6676bb7ae053be05a9f6dd73eea | 3,212 | exs | Elixir | config/runtime.exs | sergiotapia/ekeko | e7b8ea523a8ae7dd6983d099021c9790504bcc0c | [
"MIT"
] | 8 | 2022-02-21T00:34:21.000Z | 2022-03-12T08:13:26.000Z | config/runtime.exs | sergiotapia/ekeko | e7b8ea523a8ae7dd6983d099021c9790504bcc0c | [
"MIT"
] | null | null | null | config/runtime.exs | sergiotapia/ekeko | e7b8ea523a8ae7dd6983d099021c9790504bcc0c | [
"MIT"
] | null | null | null | import Config
# config/runtime.exs is executed for all environments, including
# during releases. It is executed after compilation and before the
# system starts, so it is typically used to load production configuration
# and secrets from environment variables or elsewhere. Do not define
# any compile-time configurati... | 37.348837 | 82 | 0.696762 |
f7b6ca88d8f7fe4987326a8936147b8ae4203fa3 | 134 | ex | Elixir | test/helpers/connections/not_found_connection.ex | qgadrian/instream | 3dc828fe476817d442b83dc5da58ceca56e9886f | [
"Apache-2.0"
] | null | null | null | test/helpers/connections/not_found_connection.ex | qgadrian/instream | 3dc828fe476817d442b83dc5da58ceca56e9886f | [
"Apache-2.0"
] | null | null | null | test/helpers/connections/not_found_connection.ex | qgadrian/instream | 3dc828fe476817d442b83dc5da58ceca56e9886f | [
"Apache-2.0"
] | null | null | null | defmodule Instream.TestHelpers.Connections.NotFoundConnection do
@moduledoc false
use Instream.Connection, otp_app: :instream
end
| 26.8 | 64 | 0.835821 |
f7b6f66247b919ce2d220ef214d5dc7853bbd736 | 3,274 | ex | Elixir | clients/sheets/lib/google_api/sheets/v4/model/histogram_chart_spec.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/sheets/lib/google_api/sheets/v4/model/histogram_chart_spec.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/sheets/lib/google_api/sheets/v4/model/histogram_chart_spec.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... | 55.491525 | 452 | 0.735492 |
f7b6fa55608e4ddb1fc0c3ab87bfa595b1ed17d1 | 1,531 | exs | Elixir | mix.exs | thestakeholdercompany/icalendar | 1e36af22a9ea07917f08a6350636e9cfcbf98f29 | [
"MIT"
] | 1 | 2020-06-09T10:42:58.000Z | 2020-06-09T10:42:58.000Z | mix.exs | thestakeholdercompany/icalendar | 1e36af22a9ea07917f08a6350636e9cfcbf98f29 | [
"MIT"
] | null | null | null | mix.exs | thestakeholdercompany/icalendar | 1e36af22a9ea07917f08a6350636e9cfcbf98f29 | [
"MIT"
] | null | null | null | defmodule ICalex.MixProject do
use Mix.Project
@version "0.1.0"
def project do
[
app: :icalex,
version: @version,
elixir: "~> 1.8",
description: description(),
package: package(),
aliases: aliases(),
start_permanent: Mix.env() == :prod,
deps: deps(),
docs... | 21.263889 | 94 | 0.563031 |
f7b737e64c42b4d9354a70fe9820feb9efcda6d3 | 284 | exs | Elixir | backend_initial/priv/repo/migrations/20200126100615_create_todos.exs | bego-talks/e2e-workshop | 75a1d2a691814539ddb8adfe9012483efc53cfe4 | [
"MIT"
] | 7 | 2021-05-08T13:37:05.000Z | 2022-02-16T17:54:00.000Z | backend_initial/priv/repo/migrations/20200126100615_create_todos.exs | bego-talks/e2e-workshop | 75a1d2a691814539ddb8adfe9012483efc53cfe4 | [
"MIT"
] | null | null | null | backend_initial/priv/repo/migrations/20200126100615_create_todos.exs | bego-talks/e2e-workshop | 75a1d2a691814539ddb8adfe9012483efc53cfe4 | [
"MIT"
] | null | null | null | defmodule TodoList.Repo.Migrations.CreateTodos do
use Ecto.Migration
def change do
create table(:todos) do
add(:title, :string)
add(:user_id, references(:users, on_delete: :delete_all))
timestamps()
end
create(index(:todos, [:user_id]))
end
end
| 18.933333 | 63 | 0.665493 |
f7b76d80201359bbc7a85405a79f239940efe871 | 7,168 | ex | Elixir | implementations/elixir/ockam/ockam/lib/ockam/stream/client/publisher.ex | plaxi0s/ockam | 2cc911dff720228bca950d83faf095ea84717981 | [
"Apache-2.0"
] | 1,912 | 2019-01-10T14:17:00.000Z | 2022-03-30T19:16:44.000Z | implementations/elixir/ockam/ockam/lib/ockam/stream/client/publisher.ex | plaxi0s/ockam | 2cc911dff720228bca950d83faf095ea84717981 | [
"Apache-2.0"
] | 1,473 | 2019-01-16T15:14:47.000Z | 2022-03-31T23:44:50.000Z | implementations/elixir/ockam/ockam/lib/ockam/stream/client/publisher.ex | plaxi0s/ockam | 2cc911dff720228bca950d83faf095ea84717981 | [
"Apache-2.0"
] | 219 | 2019-01-11T03:35:13.000Z | 2022-03-31T10:25:56.000Z | defmodule Ockam.Stream.Client.Publisher do
@moduledoc false
use Ockam.Worker
use Ockam.Protocol.Mapping
alias Ockam.Message
alias Ockam.Protocol.Stream, as: StreamProtocol
require Logger
defstruct address: nil,
stream_name: nil,
stream_route: nil,
last_message: 0,
... | 27.782946 | 99 | 0.626116 |
f7b7750e4ec219d0b8f7d3739d80dc18e7f0914b | 15,946 | ex | Elixir | lib/aws/generated/sfn.ex | qyon-brazil/aws-elixir | f7f21bebffc6776f95ffe9ef563cf368773438af | [
"Apache-2.0"
] | null | null | null | lib/aws/generated/sfn.ex | qyon-brazil/aws-elixir | f7f21bebffc6776f95ffe9ef563cf368773438af | [
"Apache-2.0"
] | null | null | null | lib/aws/generated/sfn.ex | qyon-brazil/aws-elixir | f7f21bebffc6776f95ffe9ef563cf368773438af | [
"Apache-2.0"
] | 1 | 2020-10-28T08:56:54.000Z | 2020-10-28T08:56:54.000Z | # WARNING: DO NOT EDIT, AUTO-GENERATED CODE!
# See https://github.com/aws-beam/aws-codegen for more details.
defmodule AWS.SFN do
@moduledoc """
AWS Step Functions
AWS Step Functions is a service that lets you coordinate the components of
distributed applications and microservices using visual workflows.
Y... | 42.981132 | 189 | 0.740875 |
f7b78603f4da18ec6d94c1327db621d2db734d4b | 447 | exs | Elixir | test/phoenix/live_dashboard/live/os_mon_live_test.exs | Blond11516/phoenix_live_dashboard | 9b70670d4ad1dc49ebe2eef45f2f082ff6b03a1b | [
"MIT"
] | null | null | null | test/phoenix/live_dashboard/live/os_mon_live_test.exs | Blond11516/phoenix_live_dashboard | 9b70670d4ad1dc49ebe2eef45f2f082ff6b03a1b | [
"MIT"
] | null | null | null | test/phoenix/live_dashboard/live/os_mon_live_test.exs | Blond11516/phoenix_live_dashboard | 9b70670d4ad1dc49ebe2eef45f2f082ff6b03a1b | [
"MIT"
] | 1 | 2021-02-04T03:06:20.000Z | 2021-02-04T03:06:20.000Z | defmodule Phoenix.LiveDashboard.OSMonLiveTest do
use ExUnit.Case, async: true
import Phoenix.ConnTest
import Phoenix.LiveViewTest
@endpoint Phoenix.LiveDashboardTest.Endpoint
describe "OS mon page" do
test "displays section titles" do
{:ok, _live, rendered} = live(build_conn(), "/dashboard/nonode@... | 26.294118 | 80 | 0.702461 |
f7b794e9b9e8a89bcf30d88ce95f558729e11a4d | 1,385 | ex | Elixir | lib/asciinema/file_store/cached.ex | AnotherKamila/asciinema-server | cafdba3c0461eb77ca0d1b66de07aa943b91f700 | [
"Apache-2.0"
] | null | null | null | lib/asciinema/file_store/cached.ex | AnotherKamila/asciinema-server | cafdba3c0461eb77ca0d1b66de07aa943b91f700 | [
"Apache-2.0"
] | null | null | null | lib/asciinema/file_store/cached.ex | AnotherKamila/asciinema-server | cafdba3c0461eb77ca0d1b66de07aa943b91f700 | [
"Apache-2.0"
] | null | null | null | defmodule Asciinema.FileStore.Cached do
use Asciinema.FileStore
def url(path) do
remote_store().url(path)
end
def put_file(dst_path, src_local_path, content_type, compress \\ false) do
with :ok <- remote_store().put_file(dst_path, src_local_path, content_type, compress),
:ok <- cache_store().... | 25.648148 | 91 | 0.636823 |
f7b79b952cda74691e6819f0d860f42f1a5769a4 | 1,650 | ex | Elixir | elixir-to-java/elixir_api_server/lib/elixir_api_server_web.ex | poad/grpc-example | d1b775f6d2e89279cd29191d5d4dbec265bf0bf0 | [
"Apache-2.0"
] | null | null | null | elixir-to-java/elixir_api_server/lib/elixir_api_server_web.ex | poad/grpc-example | d1b775f6d2e89279cd29191d5d4dbec265bf0bf0 | [
"Apache-2.0"
] | 64 | 2021-08-30T23:54:04.000Z | 2022-03-14T21:06:11.000Z | elixir-to-java/elixir_api_server/lib/elixir_api_server_web.ex | poad/grpc-example | d1b775f6d2e89279cd29191d5d4dbec265bf0bf0 | [
"Apache-2.0"
] | null | null | null | defmodule ElixirApiServerWeb 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 ElixirApiServerWeb, :controller
use ElixirApiServerWeb, :view
The definitions below will be executed for ev... | 24.626866 | 83 | 0.710303 |
f7b7b852f648bae2154ef0c29dc7efdfe8ecbe7d | 1,646 | exs | Elixir | strega/mix.exs | ThePeej/strega | b9146bb3b401e9c2d0c297ea62a0050415099b29 | [
"MIT"
] | null | null | null | strega/mix.exs | ThePeej/strega | b9146bb3b401e9c2d0c297ea62a0050415099b29 | [
"MIT"
] | null | null | null | strega/mix.exs | ThePeej/strega | b9146bb3b401e9c2d0c297ea62a0050415099b29 | [
"MIT"
] | null | null | null | defmodule Strega.MixProject do
use Mix.Project
def project do
[
app: :strega,
version: "0.1.0",
elixir: "~> 1.5",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix, :gettext] ++ Mix.compilers(),
start_permanent: Mix.env() == :prod,
aliases: aliases(),
... | 26.126984 | 79 | 0.575942 |
f7b7befe1bbde686b4e409dcea6fc2c9f2107e18 | 1,896 | exs | Elixir | config/dev.exs | r-frederick/inmytime | c5e6ad5d8c09d42dcd77ec74c09e6da8f044b929 | [
"MIT"
] | 1 | 2018-11-16T14:30:41.000Z | 2018-11-16T14:30:41.000Z | config/dev.exs | r-frederick/inmytime | c5e6ad5d8c09d42dcd77ec74c09e6da8f044b929 | [
"MIT"
] | 9 | 2018-05-17T14:02:04.000Z | 2018-10-03T21:57:18.000Z | config/dev.exs | r-frederick/inmytime | c5e6ad5d8c09d42dcd77ec74c09e6da8f044b929 | [
"MIT"
] | null | null | null | use Mix.Config
# For development, we disable any cache and enable
# debugging and code reloading.
#
# The watchers configuration can be used to run external
# watchers to your application. For example, we use it
# with brunch.io to recompile .js and .css sources.
config :inmytime, InmytimeWeb.Endpoint,
http: [port: ... | 31.6 | 170 | 0.690401 |
f7b7d6c3114b0dc4d347459a8dba7cbf42588c7d | 12,563 | ex | Elixir | lib/livebook/runtime.ex | apoorv-2204/elixir_learn_work_notebook_setup | 7ea75c1b53e0e9ce7ae89d386cc16b7277a1d86e | [
"Apache-2.0"
] | null | null | null | lib/livebook/runtime.ex | apoorv-2204/elixir_learn_work_notebook_setup | 7ea75c1b53e0e9ce7ae89d386cc16b7277a1d86e | [
"Apache-2.0"
] | null | null | null | lib/livebook/runtime.ex | apoorv-2204/elixir_learn_work_notebook_setup | 7ea75c1b53e0e9ce7ae89d386cc16b7277a1d86e | [
"Apache-2.0"
] | null | null | null | defprotocol Livebook.Runtime do
@moduledoc false
# This protocol defines an interface for code evaluation backends.
#
# Usually a runtime involves a set of processes responsible for
# evaluation, which could be running on a different node, however
# the protocol does not require that.
@typedoc """
An ... | 31.329177 | 97 | 0.672292 |
f7b7dcd12e939a8bff31e326822e69780326b3aa | 1,938 | ex | Elixir | day14/lib/day14.ex | bjorng/advent-of-code-2021 | 82c22dfa0ba7e9134e39b9dbc95227bb99f62c8d | [
"Apache-2.0"
] | 10 | 2021-12-01T08:49:00.000Z | 2022-03-24T13:24:50.000Z | day14/lib/day14.ex | bjorng/advent-of-code-2021 | 82c22dfa0ba7e9134e39b9dbc95227bb99f62c8d | [
"Apache-2.0"
] | null | null | null | day14/lib/day14.ex | bjorng/advent-of-code-2021 | 82c22dfa0ba7e9134e39b9dbc95227bb99f62c8d | [
"Apache-2.0"
] | 1 | 2021-12-16T07:09:11.000Z | 2021-12-16T07:09:11.000Z | defmodule Day14 do
def part1(input) do
{template, rules} = parse(input)
rules = Map.new(rules)
Stream.iterate(template, &(next_part1(&1, rules)))
|> Stream.drop(10)
|> Enum.take(1)
|> hd
|> Enum.frequencies
|> Enum.min_max_by(fn {_, freq} -> freq end)
|> result
end
def part2(... | 24.225 | 79 | 0.53612 |
f7b7faedde2e0168d446aeeb0d97f80d25702472 | 1,077 | ex | Elixir | lib/phoenixcicd_web/channels/user_socket.ex | JackMaarek/phoenix-cicd | 746c66a7b248e089b1c138a81f5e4169e73aac67 | [
"MIT"
] | 1 | 2021-05-20T12:03:40.000Z | 2021-05-20T12:03:40.000Z | lib/phoenixcicd_web/channels/user_socket.ex | JackMaarek/phoenix-cicd | 746c66a7b248e089b1c138a81f5e4169e73aac67 | [
"MIT"
] | null | null | null | lib/phoenixcicd_web/channels/user_socket.ex | JackMaarek/phoenix-cicd | 746c66a7b248e089b1c138a81f5e4169e73aac67 | [
"MIT"
] | 1 | 2021-05-20T12:04:10.000Z | 2021-05-20T12:04:10.000Z | defmodule PhoenixcicdWeb.UserSocket do
use Phoenix.Socket
## Channels
# channel "room:*", PhoenixcicdWeb.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 al... | 31.676471 | 86 | 0.700093 |
f7b7fc092d06fdc6690a053ee9151cafe384c009 | 613 | ex | Elixir | lib/phone/br.ex | net/phone | 18e1356d2f8d32fe3f95638c3c44bceab0164fb2 | [
"Apache-2.0"
] | null | null | null | lib/phone/br.ex | net/phone | 18e1356d2f8d32fe3f95638c3c44bceab0164fb2 | [
"Apache-2.0"
] | null | null | null | lib/phone/br.ex | net/phone | 18e1356d2f8d32fe3f95638c3c44bceab0164fb2 | [
"Apache-2.0"
] | null | null | null | defmodule Phone.BR do
@moduledoc false
use Helper.Country
def country, do: "Brazil"
def a2, do: "BR"
def a3, do: "BRA"
matcher :modules, [Phone.BR.AC, Phone.BR.AL, Phone.BR.AM, Phone.BR.AP, Phone.BR.BA,
Phone.BR.CE, Phone.BR.DF, Phone.BR.ES, Phone.BR.GO, Phone.BR.MA,
... | 36.058824 | 85 | 0.562806 |
f7b807a1c7fde25121b5800d3bc65a89447ac177 | 309 | exs | Elixir | todoapi/priv/repo/migrations/20180105203759_create_todos_users.exs | BruceBC/BakeOffElixirPhoenix | b674b0d2ddc9ba04ff00f21e0eb1586543002467 | [
"MIT"
] | null | null | null | todoapi/priv/repo/migrations/20180105203759_create_todos_users.exs | BruceBC/BakeOffElixirPhoenix | b674b0d2ddc9ba04ff00f21e0eb1586543002467 | [
"MIT"
] | null | null | null | todoapi/priv/repo/migrations/20180105203759_create_todos_users.exs | BruceBC/BakeOffElixirPhoenix | b674b0d2ddc9ba04ff00f21e0eb1586543002467 | [
"MIT"
] | null | null | null | defmodule Todoapi.Repo.Migrations.CreateTodosUsers do
use Ecto.Migration
def change do
create table(:todos_users) do
add :todo_id, references(:todos, type: :uuid)
add :user_id, references(:users, type: :uuid)
end
create unique_index(:todos_users, [:todo_id, :user_id])
end
end
| 23.769231 | 59 | 0.702265 |
f7b814e32c51e90d875f1a7b635e5c17d6d38d05 | 7,521 | exs | Elixir | test/sandbox_test.exs | ckruse/elixir_sandbox | 6c7f76754c84f184f852f408f6169b69440eddaa | [
"Apache-2.0"
] | 22 | 2019-08-08T02:48:15.000Z | 2022-01-23T14:04:07.000Z | test/sandbox_test.exs | ckruse/elixir_sandbox | 6c7f76754c84f184f852f408f6169b69440eddaa | [
"Apache-2.0"
] | 1 | 2020-05-27T00:37:00.000Z | 2020-08-27T02:20:32.000Z | test/sandbox_test.exs | ckruse/elixir_sandbox | 6c7f76754c84f184f852f408f6169b69440eddaa | [
"Apache-2.0"
] | 2 | 2020-11-15T18:20:12.000Z | 2022-03-09T13:58:01.000Z | defmodule SandboxTest do
use ExUnit.Case
doctest Sandbox
def mobility(state, _args) do
state
|> Sandbox.set!("x", 3)
|> Sandbox.set!("feeling", "poo")
|> Sandbox.set!("hunger", 7)
|> Sandbox.let_elixir_run!("move", &SandboxTest.move/2)
|> Sandbox.let_elixir_eval!("feels", fn _state, [p | ... | 26.024221 | 102 | 0.611089 |
f7b83adad44f8207d61fce92effbcb96862d4e8c | 11,862 | ex | Elixir | lib/aws/generated/sms.ex | onno-vos-dev/aws-elixir | 00f02c2bce689b932948b6a4d603fd44bb5fc0e9 | [
"Apache-2.0"
] | null | null | null | lib/aws/generated/sms.ex | onno-vos-dev/aws-elixir | 00f02c2bce689b932948b6a4d603fd44bb5fc0e9 | [
"Apache-2.0"
] | null | null | null | lib/aws/generated/sms.ex | onno-vos-dev/aws-elixir | 00f02c2bce689b932948b6a4d603fd44bb5fc0e9 | [
"Apache-2.0"
] | null | null | null | # WARNING: DO NOT EDIT, AUTO-GENERATED CODE!
# See https://github.com/aws-beam/aws-codegen for more details.
defmodule AWS.SMS do
@moduledoc """
## Product update
As of March 31, 2022, Amazon Web Services will discontinue Server Migration
Service (Amazon Web Services SMS).
Going forward, we recommend [Amaz... | 35.945455 | 147 | 0.721463 |
f7b841de540300a20407130c1da4bc47af99f7f5 | 20,503 | exs | Elixir | test/courtbot_web/workflows/idaho_test.exs | blakedietz/courtbot | b18d7eb84fd1405b359c8da980e1175bb1738841 | [
"ISC"
] | 6 | 2018-07-25T18:35:57.000Z | 2018-11-03T17:01:02.000Z | test/courtbot_web/workflows/idaho_test.exs | blakedietz/courtbot | b18d7eb84fd1405b359c8da980e1175bb1738841 | [
"ISC"
] | 19 | 2018-11-12T05:29:44.000Z | 2020-04-12T01:04:41.000Z | test/courtbot_web/workflows/idaho_test.exs | blakedietz/courtbot | b18d7eb84fd1405b359c8da980e1175bb1738841 | [
"ISC"
] | 1 | 2020-04-12T00:36:50.000Z | 2020-04-12T00:36:50.000Z | defmodule CourtbotWeb.Workflow.IdahoTest do
use CourtbotTest.Helper.Case
use ExUnitProperties
alias Courtbot.{Case, Repo}
setup do
Repo.insert(CourtbotTest.Helper.Configuration.idaho())
cases = %{
valid:
%Case{}
|> Case.changeset(%{
case_number: "CR01-16-00001",
... | 40.044922 | 241 | 0.628542 |
f7b861fe7b182ef20db5f5d53b49b38ba2422cd8 | 555 | ex | Elixir | test/support/bad_power_manager.ex | nerves-networking/vintage_net | 8d4251a0ec995babf8f4d7aa7cc1d74b70646c72 | [
"Apache-2.0"
] | 85 | 2019-05-09T14:54:38.000Z | 2022-02-08T16:52:04.000Z | test/support/bad_power_manager.ex | fhunleth/vintage_net | 215495533cb642eeb172daba08208a454f19b36f | [
"Apache-2.0"
] | 132 | 2019-05-09T15:57:59.000Z | 2022-02-28T16:31:22.000Z | test/support/bad_power_manager.ex | fhunleth/vintage_net | 215495533cb642eeb172daba08208a454f19b36f | [
"Apache-2.0"
] | 14 | 2019-07-08T19:18:23.000Z | 2022-02-08T16:52:05.000Z | defmodule VintageNetTest.BadPowerManager do
@moduledoc false
@behaviour VintageNet.PowerManager
@impl VintageNet.PowerManager
def init(_args) do
{:ok, :no_state}
end
@impl VintageNet.PowerManager
def power_on(_state) do
raise RuntimeError, "oops"
end
@impl VintageNet.PowerManager
def star... | 18.5 | 43 | 0.715315 |
f7b87461d39d26049ea5752354b92a7d64027037 | 2,520 | ex | Elixir | clients/content/lib/google_api/content/v2/model/orders_update_shipment_request.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/model/orders_update_shipment_request.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/model/orders_update_shipment_request.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.181818 | 211 | 0.696429 |
f7b87c7195ecae9d365b0dddb42b5fb870cbec90 | 1,062 | ex | Elixir | lib/uf/ap.ex | edmaarcosta/IEEx | fb457be8c03b7a147463cdd2736f9699a699e22d | [
"MIT"
] | null | null | null | lib/uf/ap.ex | edmaarcosta/IEEx | fb457be8c03b7a147463cdd2736f9699a699e22d | [
"MIT"
] | 1 | 2017-12-05T15:58:10.000Z | 2017-12-05T15:58:10.000Z | lib/uf/ap.ex | edmaarcosta/ieex | fb457be8c03b7a147463cdd2736f9699a699e22d | [
"MIT"
] | 1 | 2018-10-01T19:35:47.000Z | 2018-10-01T19:35:47.000Z | defmodule IEEx.UF.AP do
alias IEEx.Util
@peso [9, 8, 7, 6, 5, 4, 3, 2]
def is_valid?(input) do # 030123459
ie = Util.only_numbers(input)
if (String.at(ie, 0) == "0" && String.at(ie, 1) == "3") do
# transforma a IE em uma lista de inteiros
l_ie = Util.parse_ie(ie)
# digito verificador
... | 20.823529 | 62 | 0.498117 |
f7b880b5aa7f48428108319d259bd252086f20e1 | 1,737 | ex | Elixir | clients/cloud_debugger/lib/google_api/cloud_debugger/v2/model/update_active_breakpoint_request.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/cloud_debugger/lib/google_api/cloud_debugger/v2/model/update_active_breakpoint_request.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/cloud_debugger/lib/google_api/cloud_debugger/v2/model/update_active_breakpoint_request.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 35.44898 | 128 | 0.757628 |
f7b8fcbf0793b4c76b4676df0ab50ae2b500a65d | 1,968 | ex | Elixir | lib/job_board_web/controllers/state_controller.ex | TDogVoid/job_board | 23793917bd1cc4e68bccce737b971093030a31eb | [
"MIT"
] | null | null | null | lib/job_board_web/controllers/state_controller.ex | TDogVoid/job_board | 23793917bd1cc4e68bccce737b971093030a31eb | [
"MIT"
] | null | null | null | lib/job_board_web/controllers/state_controller.ex | TDogVoid/job_board | 23793917bd1cc4e68bccce737b971093030a31eb | [
"MIT"
] | null | null | null | defmodule JobBoardWeb.StateController do
use JobBoardWeb, :controller
alias JobBoard.States
alias JobBoard.States.State
plug JobBoardWeb.Plugs.RequireAuth
plug JobBoardWeb.Plugs.RequireAdmin
def index(conn, _params) do
states = States.list_states()
render(conn, "index.html", states: states, paget... | 30.75 | 94 | 0.647866 |
f7b92a638d70e9fa0e42e666eb97ab794cf9ae28 | 82 | ex | Elixir | testData/org/elixir_lang/parser_definition/matched_comparison_operation_parsing_test_case/UnaryNonNumericOperation.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 1,668 | 2015-01-03T05:54:27.000Z | 2022-03-25T08:01:20.000Z | testData/org/elixir_lang/parser_definition/matched_comparison_operation_parsing_test_case/UnaryNonNumericOperation.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 2,018 | 2015-01-01T22:43:39.000Z | 2022-03-31T20:13:08.000Z | testData/org/elixir_lang/parser_definition/matched_comparison_operation_parsing_test_case/UnaryNonNumericOperation.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 145 | 2015-01-15T11:37:16.000Z | 2021-12-22T05:51:02.000Z | !one != not two
!one == not two
!one =~ not two
!one !== not two
!one === not two
| 13.666667 | 16 | 0.54878 |
f7b941d70014b1f6d1a83bd83bf9f150080a9885 | 360 | exs | Elixir | 074.exs | jotakami/ex-euler | 0b7f1b2343c5339ccbaaaba9b8f8d0088b112df2 | [
"MIT"
] | null | null | null | 074.exs | jotakami/ex-euler | 0b7f1b2343c5339ccbaaaba9b8f8d0088b112df2 | [
"MIT"
] | null | null | null | 074.exs | jotakami/ex-euler | 0b7f1b2343c5339ccbaaaba9b8f8d0088b112df2 | [
"MIT"
] | null | null | null | target = 60
memo = Map.new([
{ 169, 3},
{ 871, 2},
{ 872, 2},
{ 1454, 3},
{ 45361, 2},
{ 45362, 2},
{363601, 3}
])
Euler.count_stream
|> Stream.take(999999)
|> Enum.reduce({0, memo}, fn x, {c, memo} ->
{n, memo} = Euler.digit_factorial_chain(x, memo)
if n == target, do: {c+1, memo}, else:... | 20 | 53 | 0.516667 |
f7b943dda6a47befa6f2b8a7f224303397ac723a | 118 | ex | Elixir | lib/cowguest/models/post.ex | cedretaber/cowguest | dd41ca95f19820de3707e4b1afa04f901a9e9670 | [
"MIT"
] | null | null | null | lib/cowguest/models/post.ex | cedretaber/cowguest | dd41ca95f19820de3707e4b1afa04f901a9e9670 | [
"MIT"
] | null | null | null | lib/cowguest/models/post.ex | cedretaber/cowguest | dd41ca95f19820de3707e4b1afa04f901a9e9670 | [
"MIT"
] | null | null | null | defmodule Cowguest.Models.Post do
@moduledoc false
@derive [Poison.Encoder]
defstruct [:id, :text, :name]
end
| 14.75 | 33 | 0.711864 |
f7b94fe932f6b36bd1e67c4f143a097948909409 | 433 | ex | Elixir | test/support/repo/postgres.ex | prehnRA/ecto_cellar | b3ff3ab4dd3932600b58df7f71ba2fdf4a20015a | [
"Apache-2.0"
] | 42 | 2022-03-18T21:54:17.000Z | 2022-03-31T22:03:19.000Z | test/support/repo/postgres.ex | prehnRA/ecto_cellar | b3ff3ab4dd3932600b58df7f71ba2fdf4a20015a | [
"Apache-2.0"
] | 8 | 2022-03-17T06:04:18.000Z | 2022-03-31T01:36:03.000Z | test/support/repo/postgres.ex | tashirosota/model_changes | 3ff04b676d9e7eafad177be1760216cd46d3d34a | [
"Apache-2.0"
] | 1 | 2022-03-29T14:24:39.000Z | 2022-03-29T14:24:39.000Z | defmodule Postgres.Repo do
use Ecto.Repo,
otp_app: :ecto_cellar,
adapter: Ecto.Adapters.Postgres
def init(_, opts) do
{:ok,
Keyword.merge(opts,
username: "postgres",
password: "postgres",
database: "ecto_cellar_postgres_test",
hostname: "localhost",
pool: Ecto.Ad... | 22.789474 | 53 | 0.644342 |
f7b956bd84910eb3c6e159123f8f6d15413c1ff7 | 557 | exs | Elixir | Elixir/elixirexamples/test/keywordslist_test.exs | kujua/erlang-elixir-imperative-bookcompanion | 7bc9f033bacd0f8744ec6bcee3932794d594fe69 | [
"Apache-2.0"
] | 8 | 2016-08-14T12:35:16.000Z | 2021-01-26T04:05:31.000Z | Elixir/elixirexamples/test/keywordslist_test.exs | kujua/erlang-elixir-imperative-bookcompanion | 7bc9f033bacd0f8744ec6bcee3932794d594fe69 | [
"Apache-2.0"
] | null | null | null | Elixir/elixirexamples/test/keywordslist_test.exs | kujua/erlang-elixir-imperative-bookcompanion | 7bc9f033bacd0f8744ec6bcee3932794d594fe69 | [
"Apache-2.0"
] | 5 | 2016-08-18T22:12:19.000Z | 2020-02-17T18:52:41.000Z | defmodule KeywordListsTest do
use ExUnit.Case
test "create_pizza_order" do
ret = KeywordLists.create_pizza_order
assert ret == [{:margerita, 1},{:calzone, 2}]
end
test "add_to_order" do
ret = KeywordLists.add_to_order
assert ret == [margerita: 1, calzone: 2, roma: 1]
end
test "jump_the_qu... | 23.208333 | 58 | 0.680431 |
f7b9784d17db33c7ed68b6a861c1742001e76a86 | 692 | exs | Elixir | mix.exs | ygunayer/potcu | d7b82ad9227161c93aedec03c4a1902c1d43780b | [
"MIT"
] | 1 | 2020-05-14T18:52:05.000Z | 2020-05-14T18:52:05.000Z | mix.exs | ygunayer/potcu | d7b82ad9227161c93aedec03c4a1902c1d43780b | [
"MIT"
] | null | null | null | mix.exs | ygunayer/potcu | d7b82ad9227161c93aedec03c4a1902c1d43780b | [
"MIT"
] | null | null | null | defmodule Potcu.MixProject do
use Mix.Project
def project do
[
app: :potcu,
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
[
mod: {Potcu.... | 21.625 | 87 | 0.567919 |
f7b97ba04451a0ad4feeb36429feee51d405f3ca | 128 | exs | Elixir | deps/mojito/.formatter.exs | PrecisionNutrition/frogger | 96374fe0ac0ea616205f6678fe088802572e922e | [
"MIT"
] | null | null | null | deps/mojito/.formatter.exs | PrecisionNutrition/frogger | 96374fe0ac0ea616205f6678fe088802572e922e | [
"MIT"
] | null | null | null | deps/mojito/.formatter.exs | PrecisionNutrition/frogger | 96374fe0ac0ea616205f6678fe088802572e922e | [
"MIT"
] | null | null | null | # Used by "mix format"
[
inputs: ["mix.exs", "{config,lib,test}/**/*.{ex,exs}"],
line_length: 80,
trailing_comma: true,
]
| 18.285714 | 57 | 0.59375 |
f7b9ce6443e69c40ec9d1f3f61be7526d1a5d1fc | 213 | exs | Elixir | create_fun_umbrella/apps/create_fun_endpoint/test/create_fun_endpoint/controllers/page_controller_test.exs | Vorzious/CreateFun | 5744c913ef706bc29062fa90a8ec5de12d267dab | [
"MIT"
] | null | null | null | create_fun_umbrella/apps/create_fun_endpoint/test/create_fun_endpoint/controllers/page_controller_test.exs | Vorzious/CreateFun | 5744c913ef706bc29062fa90a8ec5de12d267dab | [
"MIT"
] | 9 | 2018-06-17T09:54:03.000Z | 2018-06-17T09:55:20.000Z | create_fun_umbrella/apps/create_fun_endpoint/test/create_fun_endpoint/controllers/page_controller_test.exs | Vorzious/CreateFun | 5744c913ef706bc29062fa90a8ec5de12d267dab | [
"MIT"
] | 1 | 2018-06-05T18:38:01.000Z | 2018-06-05T18:38:01.000Z | defmodule CreateFunEndpoint.PageControllerTest do
use CreateFunEndpoint.ConnCase
test "GET /", %{conn: conn} do
conn = get conn, "/"
assert html_response(conn, 200) =~ "Welcome to Phoenix!"
end
end
| 23.666667 | 60 | 0.704225 |
f7b9dd4b93010cb7aab7a2f2f9d5d6c9a3816a43 | 4,517 | ex | Elixir | lib/grapevine/telnet/mssp_client.ex | shanesveller/grapevine | fe74ade1adff88dfe4c1ab55fee3902dbb4664fe | [
"MIT"
] | null | null | null | lib/grapevine/telnet/mssp_client.ex | shanesveller/grapevine | fe74ade1adff88dfe4c1ab55fee3902dbb4664fe | [
"MIT"
] | null | null | null | lib/grapevine/telnet/mssp_client.ex | shanesveller/grapevine | fe74ade1adff88dfe4c1ab55fee3902dbb4664fe | [
"MIT"
] | null | null | null | defmodule Grapevine.Telnet.MSSPClient do
@moduledoc """
Callbacks for specifically checking MSSP data
"""
require Logger
alias Grapevine.Telnet
alias Grapevine.Telnet.Client
alias Grapevine.Telnet.MSSP
alias Grapevine.Telnet.MSSPClient.Check
alias Grapevine.Telnet.MSSPClient.Record
alias Grapevine... | 23.773684 | 83 | 0.64534 |
f7b9f4c188cdcc4dfdc3c8fc450f0b48271d2614 | 710 | exs | Elixir | apps/dtask_codec/mix.exs | fehu/elixir-dtask | 93b39a1acb616cdc7b4fffb4950e82021ef5b0f6 | [
"MIT"
] | null | null | null | apps/dtask_codec/mix.exs | fehu/elixir-dtask | 93b39a1acb616cdc7b4fffb4950e82021ef5b0f6 | [
"MIT"
] | null | null | null | apps/dtask_codec/mix.exs | fehu/elixir-dtask | 93b39a1acb616cdc7b4fffb4950e82021ef5b0f6 | [
"MIT"
] | null | null | null | defmodule DTask.Task.Codec.MixProject do
use Mix.Project
def project do
[
app: :dtask_codec,
version: "0.2.1",
build_path: "../../_build",
config_path: "../../config/config.exs",
deps_path: "../../deps",
lockfile: "../../mix.lock",
elixir: "~> 1.12",
start_perman... | 20.882353 | 59 | 0.546479 |
f7b9fe84fd849ebde5af269f8e5af59ef87ecd5e | 4,057 | ex | Elixir | apps/nerves_hub_www/lib/nerves_hub_www_web/live/deployment_live/show.ex | acrogenesis/nerves_hub_web | 27f651dd64b40a034254b50805884f4efd679957 | [
"Apache-2.0"
] | null | null | null | apps/nerves_hub_www/lib/nerves_hub_www_web/live/deployment_live/show.ex | acrogenesis/nerves_hub_web | 27f651dd64b40a034254b50805884f4efd679957 | [
"Apache-2.0"
] | null | null | null | apps/nerves_hub_www/lib/nerves_hub_www_web/live/deployment_live/show.ex | acrogenesis/nerves_hub_web | 27f651dd64b40a034254b50805884f4efd679957 | [
"Apache-2.0"
] | null | null | null | defmodule NervesHubWWWWeb.DeploymentLive.Show do
use NervesHubWWWWeb, :live_view
alias NervesHubWebCore.{Accounts, Deployments, Products}
def render(assigns) do
NervesHubWWWWeb.DeploymentView.render("show.html", assigns)
end
def mount(
_params,
%{
"auth_user_id" => user_id,
... | 32.198413 | 96 | 0.643825 |
f7ba0a182f88b375131ee8ebcfe732b4d1d13df1 | 960 | ex | Elixir | lib/sbanken_monitor/agent.ex | entertainyou/sbanken_monitor | 6125a7d29c80b049233b2db74184091a9d67721a | [
"MIT"
] | null | null | null | lib/sbanken_monitor/agent.ex | entertainyou/sbanken_monitor | 6125a7d29c80b049233b2db74184091a9d67721a | [
"MIT"
] | 1 | 2018-11-28T10:48:41.000Z | 2018-11-28T12:49:05.000Z | lib/sbanken_monitor/agent.ex | entertainyou/sbanken_monitor | 6125a7d29c80b049233b2db74184091a9d67721a | [
"MIT"
] | null | null | null | defmodule SbankenMonitor.Agent do
@moduledoc false
defmacro __using__(opts) do
interval = Keyword.get(opts, :interval)
immediate = Keyword.get(opts, :immediate, false)
quote do
use GenServer
require Logger
def start_link(args) do
Logger.debug("#{__MODULE__} start_link args: #... | 23.414634 | 71 | 0.59375 |
f7ba18cea0fc560a1a0552e3ad17ae3605258dc6 | 80 | exs | Elixir | test/hexedio_web/views/page_view_test.exs | netsudo/hexedio | 3e0e1ff7cfffcd704ba60394d0a38c4d8608e100 | [
"MIT"
] | null | null | null | test/hexedio_web/views/page_view_test.exs | netsudo/hexedio | 3e0e1ff7cfffcd704ba60394d0a38c4d8608e100 | [
"MIT"
] | 3 | 2020-07-16T05:37:16.000Z | 2022-03-16T08:58:28.000Z | test/hexedio_web/views/page_view_test.exs | netsudo/hexedio | 3e0e1ff7cfffcd704ba60394d0a38c4d8608e100 | [
"MIT"
] | null | null | null | defmodule HexedioWeb.PageViewTest do
use HexedioWeb.ConnCase, async: true
end
| 20 | 38 | 0.825 |
f7ba268fa995f36ddaa4afa8941583a7dd967a24 | 37,849 | exs | Elixir | lib/elixir/test/elixir/enum_test.exs | ashneyderman/elixir | 9c4646848a0b57ce918e6c5dc7494e9b4e0a0ec2 | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/enum_test.exs | ashneyderman/elixir | 9c4646848a0b57ce918e6c5dc7494e9b4e0a0ec2 | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/enum_test.exs | ashneyderman/elixir | 9c4646848a0b57ce918e6c5dc7494e9b4e0a0ec2 | [
"Apache-2.0"
] | null | null | null | Code.require_file "test_helper.exs", __DIR__
defmodule EnumTest.List do
use ExUnit.Case, async: true
test :empty? do
assert Enum.empty?([])
refute Enum.empty?([1, 2, 3])
refute Enum.empty?(1..3)
end
test :member? do
assert Enum.member?([1, 2, 3], 2)
refute Enum.member?([], 0)
refute E... | 32.211915 | 114 | 0.505826 |
f7ba300e21c6e41441250eeb6f18c69e47534fba | 967 | ex | Elixir | lib/cforum_web/controllers/cite/vote_controller.ex | campingrider/cforum_ex | cf27684c47d6dc26c9c37a946f1c729a79d27c70 | [
"MIT"
] | null | null | null | lib/cforum_web/controllers/cite/vote_controller.ex | campingrider/cforum_ex | cf27684c47d6dc26c9c37a946f1c729a79d27c70 | [
"MIT"
] | null | null | null | lib/cforum_web/controllers/cite/vote_controller.ex | campingrider/cforum_ex | cf27684c47d6dc26c9c37a946f1c729a79d27c70 | [
"MIT"
] | null | null | null | defmodule CforumWeb.Cite.VoteController do
use CforumWeb, :controller
alias Cforum.Cites
def vote(conn, %{"type" => type}) when type in ["up", "down"] do
# take back the current vote in all cases; if the type is the same
# as already voted, we just take it back. If it is different, whe
# create a ne... | 38.68 | 97 | 0.701138 |
f7ba8ef4cee55f30974d0561ae0fd9761d3fb13b | 433 | exs | Elixir | test/twinkly_maha_web/views/error_view_test.exs | TraceyOnim/TwinklyMaHa | cb9d907d8807e00f1e6e44085fd6f39ae32370b6 | [
"MIT"
] | 1 | 2020-07-16T19:49:53.000Z | 2020-07-16T19:49:53.000Z | test/twinkly_maha_web/views/error_view_test.exs | TraceyOnim/TwinklyMaHa | cb9d907d8807e00f1e6e44085fd6f39ae32370b6 | [
"MIT"
] | 68 | 2021-06-16T15:30:11.000Z | 2022-03-07T08:38:19.000Z | test/twinkly_maha_web/views/error_view_test.exs | sFractal-Podii/TwinklyMaHa | cfcffc355aad7200bef3c4d8ab9b8e179f02b26c | [
"MIT"
] | 5 | 2020-07-14T05:03:08.000Z | 2021-06-15T18:21:19.000Z | defmodule TwinklyMahaWeb.ErrorViewTest do
use TwinklyMahaWeb.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(TwinklyMahaWeb.ErrorView, "404.html", []) == "Not Found"
end
test "renders 500.htm... | 28.866667 | 96 | 0.743649 |
f7ba9e5484629347a3f9fe1a28c9b28136afcb55 | 2,824 | ex | Elixir | lib/xslt.ex | samacs/xslt | 503f4ca7de86eb63643c8e6288dd961e2f4c167e | [
"MIT"
] | null | null | null | lib/xslt.ex | samacs/xslt | 503f4ca7de86eb63643c8e6288dd961e2f4c167e | [
"MIT"
] | null | null | null | lib/xslt.ex | samacs/xslt | 503f4ca7de86eb63643c8e6288dd961e2f4c167e | [
"MIT"
] | null | null | null | defmodule Xslt do
@moduledoc """
Xslt is a lightweight wrapper around xsltproc. If you need to transform
XML using XSLT this is probably the easiest way to do it.
Using Porcelain, this library calls the xsltproc binary with the pathnames to
your XML files. It will then return the transformed XML in response... | 34.439024 | 145 | 0.682011 |
f7bad383c5b1b2f0be2ee8d00fbaee0b46a07c8f | 6,067 | ex | Elixir | lib/elixir_ex_aliyun_ots_table_store_tunnel_get_rpo_request.ex | hou8/tablestore_protos | 1a3223326b92bbe196d57ce4dd19b5a8db1c728d | [
"MIT"
] | null | null | null | lib/elixir_ex_aliyun_ots_table_store_tunnel_get_rpo_request.ex | hou8/tablestore_protos | 1a3223326b92bbe196d57ce4dd19b5a8db1c728d | [
"MIT"
] | 1 | 2022-02-08T06:37:02.000Z | 2022-02-08T06:37:02.000Z | lib/elixir_ex_aliyun_ots_table_store_tunnel_get_rpo_request.ex | hou8/tablestore_protos | 1a3223326b92bbe196d57ce4dd19b5a8db1c728d | [
"MIT"
] | 2 | 2022-01-24T06:13:03.000Z | 2022-01-24T08:33:41.000Z | # credo:disable-for-this-file
defmodule(ExAliyunOts.TableStoreTunnel.GetRpoRequest) do
@moduledoc false
(
defstruct(tunnel_id: nil)
(
(
@spec encode(struct) :: {:ok, iodata} | {:error, any}
def(encode(msg)) do
try do
{:ok, encode!(msg)}
rescue
... | 25.817021 | 98 | 0.483435 |
f7bae28032b8ff60c34a39f54ab39d4f370f8156 | 2,878 | exs | Elixir | apps/nerves_hub_www/test/nerves_hub_www_web/controllers/device_controller_test.exs | verypossible/nerves_hub_web | 9c7e1fbb5232a43ee2706cd2a6b39a30fcb7dfed | [
"Apache-2.0"
] | 1 | 2020-08-04T14:13:24.000Z | 2020-08-04T14:13:24.000Z | apps/nerves_hub_www/test/nerves_hub_www_web/controllers/device_controller_test.exs | verypossible/nerves_hub_web | 9c7e1fbb5232a43ee2706cd2a6b39a30fcb7dfed | [
"Apache-2.0"
] | 1 | 2020-09-08T15:15:50.000Z | 2020-09-08T16:13:28.000Z | apps/nerves_hub_www/test/nerves_hub_www_web/controllers/device_controller_test.exs | verypossible/nerves_hub_web | 9c7e1fbb5232a43ee2706cd2a6b39a30fcb7dfed | [
"Apache-2.0"
] | null | null | null | defmodule NervesHubWWWWeb.DeviceControllerTest do
use NervesHubWWWWeb.ConnCase.Browser, async: false
alias NervesHubWebCore.Devices
alias NervesHubWebCore.Fixtures
alias NervesHubDevice.Presence
setup %{user: user, org: org} do
[product: Fixtures.product_fixture(user, org)]
end
describe "new device... | 32.337079 | 96 | 0.664698 |
f7baf3363690388c50f70ca66173d2af9b4e12c0 | 1,352 | exs | Elixir | test/subsets_test.exs | toddharding/subsets | c889e045edb21e99b9ab374c3d676fc910e09d4d | [
"BSD-3-Clause"
] | null | null | null | test/subsets_test.exs | toddharding/subsets | c889e045edb21e99b9ab374c3d676fc910e09d4d | [
"BSD-3-Clause"
] | null | null | null | test/subsets_test.exs | toddharding/subsets | c889e045edb21e99b9ab374c3d676fc910e09d4d | [
"BSD-3-Clause"
] | null | null | null | defmodule SubsetsTest do
use ExUnit.Case
doctest Subsets
test "number of subsets in [1, 2, 3]" do
assert Subsets.number_of_sets([1, 2, 3]) == 7
end
test "subsets of []" do
assert Subsets.generate([]) == []
end
test "subsets of [1]" do
assert Subsets.generate([1]) == [[1]]
end
test "sub... | 22.533333 | 82 | 0.516272 |
f7bb3405083512f9c3e97ee70049fc0781800a71 | 134 | exs | Elixir | test/line_notify_client_test.exs | takkanm/line_notify_client | 39a4de6c05cef6e82758f1a702464e41b4102475 | [
"MIT"
] | null | null | null | test/line_notify_client_test.exs | takkanm/line_notify_client | 39a4de6c05cef6e82758f1a702464e41b4102475 | [
"MIT"
] | null | null | null | test/line_notify_client_test.exs | takkanm/line_notify_client | 39a4de6c05cef6e82758f1a702464e41b4102475 | [
"MIT"
] | null | null | null | defmodule LineNotifyClientTest do
use ExUnit.Case
doctest LineNotifyClient
test "the truth" do
assert 1 + 1 == 2
end
end
| 14.888889 | 33 | 0.716418 |
f7bb517d183aad92259c159f495bce1ca56314fc | 1,747 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/frequency_cap.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/frequency_cap.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/frequency_cap.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.94 | 191 | 0.728678 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.