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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
85f19d3470fbcc0bb8a07e5df6ffad3eef09caf1 | 871 | exs | Elixir | mix.exs | kianmeng/ExDocDash | d61cfc0b8f819f330ca1cdcf6d230dc237203b80 | [
"MIT"
] | 72 | 2015-01-06T16:28:49.000Z | 2021-10-01T03:07:46.000Z | mix.exs | kianmeng/ExDocDash | d61cfc0b8f819f330ca1cdcf6d230dc237203b80 | [
"MIT"
] | 7 | 2015-01-03T18:31:47.000Z | 2021-12-23T13:16:59.000Z | mix.exs | kianmeng/ExDocDash | d61cfc0b8f819f330ca1cdcf6d230dc237203b80 | [
"MIT"
] | 10 | 2015-08-31T19:41:38.000Z | 2021-08-11T13:10:53.000Z | defmodule ExDocDash.Mixfile do
use Mix.Project
def project do
[
app: :ex_doc_dash,
version: "0.3.1",
elixir: "~> 1.2",
deps: deps,
description: description,
package: package,
name: "ExDocDash",
docs: [extras: ["README.md"]],
source_url: "https://github.com/JonGretar/ExDocDash",
homepa... | 18.531915 | 75 | 0.634902 |
85f1c067dcef4d01d603f780785ee823752120c7 | 10,196 | ex | Elixir | lib/aws/snowball.ex | hosh/aws-elixir | 3ef18a94ed3b628b09ba1aaf297161f16c48867e | [
"Apache-2.0"
] | 2 | 2019-11-17T02:31:18.000Z | 2019-11-20T22:00:29.000Z | lib/aws/snowball.ex | hosh/aws-elixir | 3ef18a94ed3b628b09ba1aaf297161f16c48867e | [
"Apache-2.0"
] | null | null | null | lib/aws/snowball.ex | hosh/aws-elixir | 3ef18a94ed3b628b09ba1aaf297161f16c48867e | [
"Apache-2.0"
] | 1 | 2019-11-16T18:08:18.000Z | 2019-11-16T18:08:18.000Z | # WARNING: DO NOT EDIT, AUTO-GENERATED CODE!
# See https://github.com/jkakar/aws-codegen for more details.
defmodule AWS.Snowball do
@moduledoc """
AWS Snowball is a petabyte-scale data transport solution that uses secure
devices to transfer large amounts of data between your on-premises data
centers and Amazo... | 39.984314 | 87 | 0.713907 |
85f1ce08ec7ec2966091a6a77ec649f634028d1a | 1,874 | ex | Elixir | apps/extract_http/lib/extract/http/get.ex | rucker/hindsight | 876a5d344c5d8eebbea37684ee07e0a91e4430f0 | [
"Apache-2.0"
] | null | null | null | apps/extract_http/lib/extract/http/get.ex | rucker/hindsight | 876a5d344c5d8eebbea37684ee07e0a91e4430f0 | [
"Apache-2.0"
] | null | null | null | apps/extract_http/lib/extract/http/get.ex | rucker/hindsight | 876a5d344c5d8eebbea37684ee07e0a91e4430f0 | [
"Apache-2.0"
] | null | null | null | defmodule Extract.Http.Get do
use Definition, schema: Extract.Http.Get.V1
@type t :: %__MODULE__{
version: integer,
url: String.t(),
headers: map
}
@derive Jason.Encoder
defstruct version: 1,
url: nil,
headers: %{}
defimpl Extract.Step, for: __M... | 25.671233 | 90 | 0.602455 |
85f1ce22797d08f850818de40e51a5f5d7eca82d | 1,215 | ex | Elixir | lib/phoenix_api_auth_starter_web/channels/user_socket.ex | CMcDonald82/phoenix-api-auth-starter | 916db91ceba32399b8d30cc6a6e35804bc0d18b1 | [
"MIT"
] | null | null | null | lib/phoenix_api_auth_starter_web/channels/user_socket.ex | CMcDonald82/phoenix-api-auth-starter | 916db91ceba32399b8d30cc6a6e35804bc0d18b1 | [
"MIT"
] | null | null | null | lib/phoenix_api_auth_starter_web/channels/user_socket.ex | CMcDonald82/phoenix-api-auth-starter | 916db91ceba32399b8d30cc6a6e35804bc0d18b1 | [
"MIT"
] | null | null | null | defmodule PhoenixApiAuthStarterWeb.UserSocket do
use Phoenix.Socket
## Channels
# channel "room:*", PhoenixApiAuthStarterWeb.RoomChannel
## Transports
transport :websocket, Phoenix.Transports.WebSocket
# transport :longpoll, Phoenix.Transports.LongPoll
# Socket params are passed from the client and can... | 31.973684 | 96 | 0.71358 |
85f1d6341c85b47fdc713d91e76edce6cc2f1105 | 4,287 | ex | Elixir | lib/plug_live_reload.ex | kevinlang/plug_live_reload | 7b5b33ee3e662d97c75f8e9bbe95525940fc3944 | [
"MIT"
] | 4 | 2021-08-13T21:21:25.000Z | 2021-09-07T18:38:03.000Z | lib/plug_live_reload.ex | kevinlang/plug_live_reload | 7b5b33ee3e662d97c75f8e9bbe95525940fc3944 | [
"MIT"
] | 1 | 2021-08-13T16:45:21.000Z | 2021-08-13T18:36:54.000Z | lib/plug_live_reload.ex | kevinlang/plug_live_reload | 7b5b33ee3e662d97c75f8e9bbe95525940fc3944 | [
"MIT"
] | null | null | null | defmodule PlugLiveReload do
@moduledoc """
Plug for live-reload detection in development. Specifically, this plug
injects some Javascript at the bottom of each HTML page that listens to
websocket events from `PlugLiveReload.Socket`. That Javascript will
update the page.
## Usage
Add the `PlugLiveReload`... | 25.517857 | 95 | 0.632843 |
85f1e8440a14a8bd7501dbb32d46a59c0d564b0a | 1,982 | exs | Elixir | test/utils_test.exs | harlantwood/crawly | d57a1b97e4a909d20f03f063a27157c8209367c4 | [
"Apache-2.0"
] | null | null | null | test/utils_test.exs | harlantwood/crawly | d57a1b97e4a909d20f03f063a27157c8209367c4 | [
"Apache-2.0"
] | null | null | null | test/utils_test.exs | harlantwood/crawly | d57a1b97e4a909d20f03f063a27157c8209367c4 | [
"Apache-2.0"
] | null | null | null | defmodule UtilsTest do
use ExUnit.Case
setup do
on_exit(fn -> :meck.unload() end)
:ok
end
test "Request from url" do
requests = Crawly.Utils.request_from_url("https://test.com")
assert requests == %Crawly.Request{url: "https://test.com", headers: []}
end
test "Requests from urls" do
... | 21.78022 | 77 | 0.564581 |
85f211d1780f2ef6bec5a02839adfcb978042217 | 648 | exs | Elixir | getting-started/test/getting_started_elixir_web/views/error_view_test.exs | renovate-bot/elixir-samples | 91da795ecdfac83eb6fcac63bc532da98c69d520 | [
"Apache-2.0"
] | 274 | 2017-08-25T06:39:51.000Z | 2022-03-15T21:03:27.000Z | getting-started/test/getting_started_elixir_web/views/error_view_test.exs | renovate-bot/elixir-samples | 91da795ecdfac83eb6fcac63bc532da98c69d520 | [
"Apache-2.0"
] | 15 | 2017-10-03T17:05:48.000Z | 2021-11-23T00:33:23.000Z | getting-started/test/getting_started_elixir_web/views/error_view_test.exs | renovate-bot/elixir-samples | 91da795ecdfac83eb6fcac63bc532da98c69d520 | [
"Apache-2.0"
] | 42 | 2017-08-28T20:08:47.000Z | 2022-01-18T07:51:02.000Z | defmodule GettingStartedElixirWeb.ErrorViewTest do
use GettingStartedElixirWeb.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(GettingStartedElixirWeb.ErrorView, "404.html", []) ==
"Pag... | 29.454545 | 81 | 0.716049 |
85f24db49c4c0d0a3e5d26a6eec62598056b7643 | 1,717 | exs | Elixir | priv/repo/migrations/20170609231207_create_account_and_modify_user.exs | cedretaber/bibliotheca | 642ec9908d6d98f16e25b6a482c52e9cbaa21ad2 | [
"MIT"
] | null | null | null | priv/repo/migrations/20170609231207_create_account_and_modify_user.exs | cedretaber/bibliotheca | 642ec9908d6d98f16e25b6a482c52e9cbaa21ad2 | [
"MIT"
] | 22 | 2017-05-15T07:34:08.000Z | 2018-02-25T07:26:18.000Z | priv/repo/migrations/20170609231207_create_account_and_modify_user.exs | cedretaber/bibliotheca | 642ec9908d6d98f16e25b6a482c52e9cbaa21ad2 | [
"MIT"
] | null | null | null | defmodule Bibliotheca.Repo.Migrations.CreateAccountAndModifyUser do
use Ecto.Migration
def change do
alter table(:users) do
remove :deleted_at
end
create table(:accounts) do
add :name, :string, null: false
add :deleted_at, :naive_datetime
timestamps()
end
create unique... | 31.218182 | 104 | 0.699476 |
85f25faa9295401281840afb902aa799ff6f9e6c | 2,203 | exs | Elixir | mix.exs | TheFirstAvenger/ash_graphql | 64d2e241b71cb6a86a6f556a54a2507823261c19 | [
"MIT"
] | null | null | null | mix.exs | TheFirstAvenger/ash_graphql | 64d2e241b71cb6a86a6f556a54a2507823261c19 | [
"MIT"
] | null | null | null | mix.exs | TheFirstAvenger/ash_graphql | 64d2e241b71cb6a86a6f556a54a2507823261c19 | [
"MIT"
] | null | null | null | defmodule AshGraphql.MixProject do
use Mix.Project
@description """
An absinthe-backed graphql extension for Ash
"""
@version "0.2.0"
def project do
[
app: :ash_graphql,
version: @version,
elixir: "~> 1.10",
start_permanent: Mix.env() == :prod,
package: package(),
... | 24.208791 | 86 | 0.556968 |
85f27ad767347ea0f683269a0c1a99484b80738d | 3,405 | ex | Elixir | elixir/06_Retirement_Calculator/gui/lib/scenes/home.ex | lucifer1004/EFP | 3be9f22ef76957c0f3ebdc0dbb415cea1ede8da9 | [
"MIT"
] | 1 | 2021-11-04T11:49:46.000Z | 2021-11-04T11:49:46.000Z | elixir/06_Retirement_Calculator/gui/lib/scenes/home.ex | lucifer1004/EFP | 3be9f22ef76957c0f3ebdc0dbb415cea1ede8da9 | [
"MIT"
] | 8 | 2019-12-16T09:37:36.000Z | 2020-07-02T06:00:30.000Z | elixir/06_Retirement_Calculator/gui/lib/scenes/home.ex | lucifer1004/EFP | 3be9f22ef76957c0f3ebdc0dbb415cea1ede8da9 | [
"MIT"
] | null | null | null | defmodule Gui.Scene.Home do
use Scenic.Scene
require Logger
alias Scenic.Graph
alias Scenic.ViewPort
import Scenic.Primitives
import Scenic.Components
@text_size 24
@input_width 100
@graph Graph.build(font: :roboto, font_size: @text_size)
# Initialize the game scene
def init(_, opts) do
vi... | 24.673913 | 82 | 0.478708 |
85f28a31db74db5f1a7132e1aaa63325bd8d8e16 | 2,281 | ex | Elixir | lib/commanded/event_store/adapters/extreme/subscriptions_supervisor.ex | xshadowlegendx/commanded-extreme-adapter | a6833aa5763831c28971c18775f75cba66144783 | [
"MIT"
] | 4 | 2019-10-16T03:21:22.000Z | 2022-02-10T07:58:12.000Z | lib/commanded/event_store/adapters/extreme/subscriptions_supervisor.ex | xshadowlegendx/commanded-extreme-adapter | a6833aa5763831c28971c18775f75cba66144783 | [
"MIT"
] | 17 | 2018-02-23T17:13:01.000Z | 2021-10-06T13:36:54.000Z | lib/commanded/event_store/adapters/extreme/subscriptions_supervisor.ex | xshadowlegendx/commanded-extreme-adapter | a6833aa5763831c28971c18775f75cba66144783 | [
"MIT"
] | 10 | 2018-02-23T14:58:01.000Z | 2022-02-23T09:41:35.000Z | defmodule Commanded.EventStore.Adapters.Extreme.SubscriptionsSupervisor do
@moduledoc false
use DynamicSupervisor
require Logger
alias Commanded.EventStore.Adapters.Extreme.Subscription
def start_link(opts) do
DynamicSupervisor.start_link(__MODULE__, [], opts)
end
@impl DynamicSupervisor
def in... | 21.12037 | 74 | 0.570802 |
85f2c3b3ce28b7ec3372e09f628c4e134f586e7f | 1,360 | ex | Elixir | lib/go_champs_api_web/endpoint.ex | lairjr/go_champs_api | 01cb3ff2c655910839e5caf4282a8e50543e32a1 | [
"MIT"
] | null | null | null | lib/go_champs_api_web/endpoint.ex | lairjr/go_champs_api | 01cb3ff2c655910839e5caf4282a8e50543e32a1 | [
"MIT"
] | 5 | 2021-09-29T04:01:54.000Z | 2021-11-02T03:11:52.000Z | lib/go_champs_api_web/endpoint.ex | lairjr/tournamentsapi | dde8f8f659074527d3861391af3ab29f070179f2 | [
"MIT"
] | 1 | 2021-11-02T14:43:15.000Z | 2021-11-02T14:43:15.000Z | defmodule GoChampsApiWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :go_champs_api
socket "/socket", GoChampsApiWeb.UserSocket,
websocket: true,
longpoll: false
# Serve at "/" the static files from "priv/static" directory.
#
# You should set gzip to true if you are running phx.digest
# when deploy... | 26.666667 | 63 | 0.700735 |
85f2ea7ec766afe139fc4962aeb1d2949160c5d9 | 1,131 | exs | Elixir | mix.exs | vaxine-io/vax | 562a0b6c1dbac54ac45422a413a75a35f33644c6 | [
"Apache-2.0"
] | 21 | 2022-01-22T21:41:30.000Z | 2022-03-25T20:39:04.000Z | mix.exs | vaxine-io/vax | 562a0b6c1dbac54ac45422a413a75a35f33644c6 | [
"Apache-2.0"
] | 11 | 2022-01-18T15:56:37.000Z | 2022-03-21T23:26:37.000Z | mix.exs | vaxine-io/vax | 562a0b6c1dbac54ac45422a413a75a35f33644c6 | [
"Apache-2.0"
] | null | null | null | defmodule Vax.MixProject do
use Mix.Project
def project do
[
app: :vax,
version: "0.1.0",
elixir: "~> 1.7",
start_permanent: Mix.env() == :prod,
deps: deps(),
package: package(),
test_paths: ["test", "integration_test"]
] ++ docs()
end
# Run "mix help compile.... | 21.339623 | 84 | 0.555261 |
85f316fe8f531d97c7741ee4527aec12966f8608 | 5,000 | exs | Elixir | test/football_api_web/controllers/v1/protobuffer/match_controller_test.exs | afatsini/football_api | c17af14733fc7a649c38516045867c72ecab469f | [
"MIT"
] | null | null | null | test/football_api_web/controllers/v1/protobuffer/match_controller_test.exs | afatsini/football_api | c17af14733fc7a649c38516045867c72ecab469f | [
"MIT"
] | null | null | null | test/football_api_web/controllers/v1/protobuffer/match_controller_test.exs | afatsini/football_api | c17af14733fc7a649c38516045867c72ecab469f | [
"MIT"
] | null | null | null | defmodule FootballApiWeb.V1.Protobuffer.MatchControllerTest do
use FootballApiWeb.ConnCase
alias FootballApi.Protobuf.Match
alias FootballApi.Protobuf.Params
alias FootballApi.Protobuf.Error
import Mock
describe "GET index/2" do
test "return OK - 200 with json Protocol Buffer result", %{conn: conn} d... | 30.487805 | 94 | 0.5664 |
85f36fbdee2a424d3c4e5e971e6c6066c06dca2e | 2,292 | exs | Elixir | apps/local_ledger_db/test/local_ledger_db/transaction_test.exs | jimpeebles/ewallet | ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405 | [
"Apache-2.0"
] | null | null | null | apps/local_ledger_db/test/local_ledger_db/transaction_test.exs | jimpeebles/ewallet | ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405 | [
"Apache-2.0"
] | null | null | null | apps/local_ledger_db/test/local_ledger_db/transaction_test.exs | 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.833333 | 92 | 0.696771 |
85f3bea6a83d8e038ed2577a990d53d75b587f83 | 225 | exs | Elixir | test/we_reports_web/controllers/page_controller_test.exs | himrock922/we_reports | 04cffcd0e56f441e5087b65cf80a31602afae419 | [
"MIT"
] | null | null | null | test/we_reports_web/controllers/page_controller_test.exs | himrock922/we_reports | 04cffcd0e56f441e5087b65cf80a31602afae419 | [
"MIT"
] | 5 | 2020-09-09T01:41:39.000Z | 2021-05-11T00:18:38.000Z | test/we_reports_web/controllers/page_controller_test.exs | himrock922/we_reports | 04cffcd0e56f441e5087b65cf80a31602afae419 | [
"MIT"
] | null | null | null | defmodule WeReportsWeb.PageControllerTest do
use WeReportsWeb.ConnCase
test "GET /", %{conn: conn} do
conn = get(conn, "/")
assert html_response(conn, 200) =~ "WeReportsは、日々の振り返りをちょっぴりリッチに、提出できるシステムです"
end
end
| 25 | 81 | 0.72 |
85f3c11040a264ec3f58680927e2333a4c3f85b8 | 38,036 | ex | Elixir | lib/elixir/lib/inspect/algebra.ex | RudolfMan/elixir | b7a72ca3b5b9203185f866e913d7b372e72e9fab | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/inspect/algebra.ex | RudolfMan/elixir | b7a72ca3b5b9203185f866e913d7b372e72e9fab | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/inspect/algebra.ex | RudolfMan/elixir | b7a72ca3b5b9203185f866e913d7b372e72e9fab | [
"Apache-2.0"
] | null | null | null | defmodule Inspect.Opts do
@moduledoc """
Defines the options used by the `Inspect` protocol.
The following fields are available:
* `:base` - prints integers as `:binary`, `:octal`, `:decimal`, or `:hex`,
defaults to `:decimal`. When inspecting binaries any `:base` other than
`:decimal` implies `... | 33.364912 | 101 | 0.618099 |
85f3c64c179786f58a15e745bc1247dfb08f09dc | 717 | ex | Elixir | lib/ex_notification/format.ex | maxneuvians/ex_notification | 6d024bbd08d9875c918b044a3f49f62cf85842d0 | [
"MIT"
] | 1 | 2021-11-30T20:44:22.000Z | 2021-11-30T20:44:22.000Z | lib/ex_notification/format.ex | maxneuvians/ex_notification | 6d024bbd08d9875c918b044a3f49f62cf85842d0 | [
"MIT"
] | null | null | null | lib/ex_notification/format.ex | maxneuvians/ex_notification | 6d024bbd08d9875c918b044a3f49f62cf85842d0 | [
"MIT"
] | null | null | null | defmodule ExNotification.Format do
@moduledoc """
Middleware to format the body of the request
"""
@behaviour Tesla.Middleware
@doc """
Loops through the body and removes and params that have
no content
"""
def call(env = %{body: %{}}, next, _) do
body =
env.body
|> Enum.filter(fn {_k... | 20.485714 | 58 | 0.560669 |
85f3c90d2c0192bd24f8668475476fe93bc1fc0c | 1,537 | ex | Elixir | clients/docs/lib/google_api/docs/v1/model/optional_color.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/docs/lib/google_api/docs/v1/model/optional_color.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/docs/lib/google_api/docs/v1/model/optional_color.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... | 32.020833 | 149 | 0.731945 |
85f3cc16cd720451a6b9bfd2ce626f5b634a25fb | 1,662 | ex | Elixir | lib/noa_web/controllers/authorize/az_req.ex | handnot2/noa | c071798e2baf4649466ba37190070c3192c7c2c2 | [
"MIT"
] | 9 | 2017-08-16T14:55:48.000Z | 2019-03-06T15:06:49.000Z | lib/noa_web/controllers/authorize/az_req.ex | handnot2/noa | c071798e2baf4649466ba37190070c3192c7c2c2 | [
"MIT"
] | null | null | null | lib/noa_web/controllers/authorize/az_req.ex | handnot2/noa | c071798e2baf4649466ba37190070c3192c7c2c2 | [
"MIT"
] | 1 | 2022-03-17T18:32:59.000Z | 2022-03-17T18:32:59.000Z | defmodule NoaWeb.AuthorizeReq do
@moduledoc false
use Ecto.Schema
import Ecto.Changeset
alias Ecto.Changeset, as: CS
alias Noa.Actors.{Client, Clients}
embedded_schema do
field :client_id
field :response_type
field :redirect_uri
field :scope
field :state
field :provider
field :... | 30.218182 | 84 | 0.68231 |
85f3fb6ce8a2ba33ecd9065f4522a3bc6f1ecf6c | 45 | exs | Elixir | v02/ch09/anon1.edit1.exs | oiax/elixir-primer | c8b89a29f108cc335b8e1341b7a1e90ec12adc66 | [
"MIT"
] | null | null | null | v02/ch09/anon1.edit1.exs | oiax/elixir-primer | c8b89a29f108cc335b8e1341b7a1e90ec12adc66 | [
"MIT"
] | null | null | null | v02/ch09/anon1.edit1.exs | oiax/elixir-primer | c8b89a29f108cc335b8e1341b7a1e90ec12adc66 | [
"MIT"
] | null | null | null | double = &(&1 * &1)
x = double.(7)
IO.puts x
| 11.25 | 19 | 0.511111 |
85f472e25851d13ed3610ec46b1b915d5b185a6e | 1,625 | ex | Elixir | lib/blockchain_api_web.ex | pakorn186c/blockchain-api | 3c9fbc892e645f9bb144414f3da36749603f37bc | [
"Apache-2.0"
] | 17 | 2019-11-03T03:02:41.000Z | 2022-01-13T17:03:32.000Z | lib/blockchain_api_web.ex | AddressXception/blockchain-api | eea98fa78af2887cc84762f84532c602c3b8b666 | [
"Apache-2.0"
] | 5 | 2019-11-07T23:26:53.000Z | 2020-11-24T21:45:35.000Z | lib/blockchain_api_web.ex | AddressXception/blockchain-api | eea98fa78af2887cc84762f84532c602c3b8b666 | [
"Apache-2.0"
] | 11 | 2019-12-04T07:03:16.000Z | 2022-01-13T17:03:50.000Z | defmodule BlockchainAPIWeb 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 BlockchainAPIWeb, :controller
use BlockchainAPIWeb, :view
The definitions below will be executed for every vi... | 24.253731 | 83 | 0.705846 |
85f47a1f0d4c5526357f41b100a81a67ac18e70d | 129 | ex | Elixir | lib/not_a_blog_web/views/layout_view.ex | ARtoriouSs/not_a_blog | 7e2810d1ae6f9fd579d2964981dbbeead7df1e79 | [
"MIT"
] | null | null | null | lib/not_a_blog_web/views/layout_view.ex | ARtoriouSs/not_a_blog | 7e2810d1ae6f9fd579d2964981dbbeead7df1e79 | [
"MIT"
] | null | null | null | lib/not_a_blog_web/views/layout_view.ex | ARtoriouSs/not_a_blog | 7e2810d1ae6f9fd579d2964981dbbeead7df1e79 | [
"MIT"
] | null | null | null | defmodule NotABlogWeb.LayoutView do
use NotABlogWeb, :view
import NotABlog.Auth, only: [current_user: 1, logged_in?: 1]
end
| 21.5 | 62 | 0.75969 |
85f488b31a678de09472d53d7ccb23549991eb74 | 2,200 | exs | Elixir | config/prod.exs | hex337/attendance-phoenix | aaade35897b5910d00f2c047cc29bfe2d213f786 | [
"MIT"
] | null | null | null | config/prod.exs | hex337/attendance-phoenix | aaade35897b5910d00f2c047cc29bfe2d213f786 | [
"MIT"
] | null | null | null | config/prod.exs | hex337/attendance-phoenix | aaade35897b5910d00f2c047cc29bfe2d213f786 | [
"MIT"
] | null | null | null | use Mix.Config
# For production, we often load configuration from external
# sources, such as your system environment. For this reason,
# you won't find the :http configuration below, but set inside
# AttendanceWeb.Endpoint.init/2 when load_from_system_env is
# true. Any dynamic configuration should be done there.
#
#... | 33.846154 | 67 | 0.725 |
85f4b5cdf0f0fe348c5298c1c580e8b7cd232eb8 | 69 | ex | Elixir | 2021-09-15-elixir-australia-prom-ex/prom_ex_demo/lib/prom_ex_demo_web/views/layout_view.ex | rellen/talks | 97e123e6cb331b78fa737c90cedc2974a35243e4 | [
"CC-BY-4.0"
] | 1 | 2022-02-16T09:00:34.000Z | 2022-02-16T09:00:34.000Z | 2021-09-15-elixir-australia-prom-ex/prom_ex_demo/lib/prom_ex_demo_web/views/layout_view.ex | rellen/talks | 97e123e6cb331b78fa737c90cedc2974a35243e4 | [
"CC-BY-4.0"
] | null | null | null | 2021-09-15-elixir-australia-prom-ex/prom_ex_demo/lib/prom_ex_demo_web/views/layout_view.ex | rellen/talks | 97e123e6cb331b78fa737c90cedc2974a35243e4 | [
"CC-BY-4.0"
] | null | null | null | defmodule PromExDemoWeb.LayoutView do
use PromExDemoWeb, :view
end
| 17.25 | 37 | 0.826087 |
85f4d1c004f639540106622819a6237b1188f669 | 2,683 | exs | Elixir | test/suite/draft6/optional/bignum_test.exs | depressed-pho/xema | 56de4a5d3b3f37827c70f6052f895c59feb0bb51 | [
"MIT"
] | null | null | null | test/suite/draft6/optional/bignum_test.exs | depressed-pho/xema | 56de4a5d3b3f37827c70f6052f895c59feb0bb51 | [
"MIT"
] | null | null | null | test/suite/draft6/optional/bignum_test.exs | depressed-pho/xema | 56de4a5d3b3f37827c70f6052f895c59feb0bb51 | [
"MIT"
] | null | null | null | defmodule Draft6.Optional.BignumTest do
use ExUnit.Case, async: true
import Xema, only: [valid?: 2]
describe "integer (1)" do
setup do
%{schema: Xema.new(:integer)}
end
test "a bignum is an integer", %{schema: schema} do
data = 12_345_678_910_111_213_141_516_171_819_202_122_232_425_262_... | 24.390909 | 84 | 0.676854 |
85f4f21129a1e97e57c7af1f8adf592cd5255378 | 4,971 | ex | Elixir | lib/cat_on_duty/employees.ex | psolvy/cat_on_duty | b03ba225286c85407ca21576c39225f058b22b56 | [
"MIT"
] | 3 | 2020-11-23T15:30:04.000Z | 2020-12-01T17:11:49.000Z | lib/cat_on_duty/employees.ex | psolvy/cat_on_duty | b03ba225286c85407ca21576c39225f058b22b56 | [
"MIT"
] | 1 | 2020-12-29T09:09:03.000Z | 2020-12-29T09:09:03.000Z | lib/cat_on_duty/employees.ex | psolvy/cat_on_duty | b03ba225286c85407ca21576c39225f058b22b56 | [
"MIT"
] | 1 | 2021-08-11T10:10:16.000Z | 2021-08-11T10:10:16.000Z | defmodule CatOnDuty.Employees do
@moduledoc "Team and Sentry context"
import Ecto.Query, warn: false
alias CatOnDuty.Repo
alias CatOnDuty.Employees.{Sentry, Team}
@topic inspect(__MODULE__)
# Socket
@spec subscribe :: :ok | {:error, {:already_registered, pid}}
def subscribe do
Phoenix.PubSub.su... | 27.616667 | 101 | 0.621203 |
85f503f0735ea3e1221c9f870d5ba9c38256122c | 265 | ex | Elixir | lib/limitex/application.ex | pggalaviz/limitex | e8ad9d6cb14bbdd77c5c84090ddf5677a5c1be1a | [
"MIT"
] | 7 | 2020-01-29T03:18:18.000Z | 2021-07-29T09:05:04.000Z | lib/limitex/application.ex | pggalaviz/limitex | e8ad9d6cb14bbdd77c5c84090ddf5677a5c1be1a | [
"MIT"
] | null | null | null | lib/limitex/application.ex | pggalaviz/limitex | e8ad9d6cb14bbdd77c5c84090ddf5677a5c1be1a | [
"MIT"
] | null | null | null | defmodule Limitex.Application do
@moduledoc false
use Application
def start(_type, _args) do
children = [
Limitex.RateLimiter
]
opts = [strategy: :one_for_one, name: Limitex.Supervisor]
Supervisor.start_link(children, opts)
end
end
| 17.666667 | 61 | 0.698113 |
85f52f70909630c4ea7e6a5a902cf9d8a9a4aa68 | 3,119 | exs | Elixir | test/unit/hologram/compiler/js_encoders/binding_test.exs | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 40 | 2022-01-19T20:27:36.000Z | 2022-03-31T18:17:41.000Z | test/unit/hologram/compiler/js_encoders/binding_test.exs | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 42 | 2022-02-03T22:52:43.000Z | 2022-03-26T20:57:32.000Z | test/unit/hologram/compiler/js_encoders/binding_test.exs | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 3 | 2022-02-10T04:00:37.000Z | 2022-03-08T22:07:45.000Z | defmodule Hologram.Compiler.JSEncoder.BindingTest do
use Hologram.Test.UnitCase, async: true
alias Hologram.Compiler.{Config, Context, JSEncoder, Opts}
alias Hologram.Compiler.IR.{
AtomType,
Binding,
CaseConditionAccess,
ListIndexAccess,
ListTailAccess,
MapAccess,
MatchAccess,
Pa... | 26.210084 | 107 | 0.638987 |
85f598af6cb75c5bd990f93c87bfc9448d4a9946 | 2,426 | ex | Elixir | lib/cforum_web/views/view_helpers/relative_time.ex | jrieger/cforum_ex | 61f6ce84708cb55bd0feedf69853dae64146a7a0 | [
"MIT"
] | 16 | 2019-04-04T06:33:33.000Z | 2021-08-16T19:34:31.000Z | lib/cforum_web/views/view_helpers/relative_time.ex | jrieger/cforum_ex | 61f6ce84708cb55bd0feedf69853dae64146a7a0 | [
"MIT"
] | 294 | 2019-02-10T11:10:27.000Z | 2022-03-30T04:52:53.000Z | lib/cforum_web/views/view_helpers/relative_time.ex | jrieger/cforum_ex | 61f6ce84708cb55bd0feedf69853dae64146a7a0 | [
"MIT"
] | 10 | 2019-02-10T10:39:24.000Z | 2021-07-06T11:46:05.000Z | defmodule CforumWeb.Views.ViewHelpers.RelativeTime do
@moduledoc """
Provides functions to convert a time period to a relative text, e.g. „a year ago“
"""
import CforumWeb.Gettext
@doc """
Generates a relative time text, e.g. "less than 5 seconds" or "about an hour".
`time` may be a `%DateTime{}` or the... | 34.169014 | 104 | 0.680956 |
85f5a7604b28c08e60404eef0a13777607e646a8 | 777 | ex | Elixir | lib/microcrawler_webapp/transports/websocket.ex | AstridMN/elixir1 | f62347179628937cdb63fc14db0b0a32c689e0ae | [
"MIT"
] | 3 | 2017-04-18T06:23:18.000Z | 2018-01-05T04:14:57.000Z | lib/microcrawler_webapp/transports/websocket.ex | AstridMN/elixir1 | f62347179628937cdb63fc14db0b0a32c689e0ae | [
"MIT"
] | 27 | 2016-11-04T19:56:11.000Z | 2017-03-26T22:34:55.000Z | lib/microcrawler_webapp/transports/websocket.ex | AstridMN/elixir1 | f62347179628937cdb63fc14db0b0a32c689e0ae | [
"MIT"
] | 3 | 2016-10-05T11:56:42.000Z | 2017-03-05T14:37:10.000Z | defmodule MicrocrawlerWebapp.Transports.WebSocket do
alias Phoenix.Endpoint.CowboyWebSocket
alias Phoenix.Socket
alias Phoenix.Transports.WebSocket
@behaviour Phoenix.Socket.Transport
defdelegate ws_init(args), to: WebSocket
defdelegate ws_handle(opcode, payload, state), to: WebSocket
defdelegate ws_in... | 27.75 | 73 | 0.714286 |
85f5e659ba2d17adffad660c4eb4bce15b13c1b0 | 861 | exs | Elixir | kousa/test/database/scheduled_room_test.exs | larsverp/dogehouse | a433d4cd64512c4723cd019957b654ae4dc877b4 | [
"MIT"
] | 2 | 2021-03-15T22:53:51.000Z | 2021-03-22T09:34:06.000Z | kousa/test/database/scheduled_room_test.exs | larsverp/dogehouse | a433d4cd64512c4723cd019957b654ae4dc877b4 | [
"MIT"
] | 2 | 2021-09-01T19:42:51.000Z | 2021-12-09T03:56:38.000Z | kousa/test/database/scheduled_room_test.exs | larsverp/dogehouse | a433d4cd64512c4723cd019957b654ae4dc877b4 | [
"MIT"
] | 1 | 2021-03-13T20:31:49.000Z | 2021-03-13T20:31:49.000Z | defmodule Kousa.Database.ScheduledRoomTest do
# allow tests to run in parallel
use ExUnit.Case, async: true
use Kousa.Support.EctoSandbox
alias Kousa.Support.Factory
alias Beef.Repo
alias Beef.Schemas.User
alias Beef.Schemas.ScheduledRoom
alias Kousa.Data
defp create_user(_) do
{:ok, user: Facto... | 23.916667 | 96 | 0.662021 |
85f5f846f440d2e0fda375130a28696bf991f8c2 | 1,516 | ex | Elixir | clients/notebooks/lib/google_api/notebooks/v1/model/dataproc_parameters.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/notebooks/lib/google_api/notebooks/v1/model/dataproc_parameters.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/notebooks/lib/google_api/notebooks/v1/model/dataproc_parameters.ex | dazuma/elixir-google-api | 6a9897168008efe07a6081d2326735fe332e522c | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 32.255319 | 177 | 0.741425 |
85f6179a4bb4eab6bebb6579f132348e4d1a89c7 | 447 | ex | Elixir | Elixir/E6/wcd.ex | incursio26/MATA56 | 338898d45e54deb69f15dd35b2b327537a2e6266 | [
"Unlicense"
] | null | null | null | Elixir/E6/wcd.ex | incursio26/MATA56 | 338898d45e54deb69f15dd35b2b327537a2e6266 | [
"Unlicense"
] | null | null | null | Elixir/E6/wcd.ex | incursio26/MATA56 | 338898d45e54deb69f15dd35b2b327537a2e6266 | [
"Unlicense"
] | null | null | null | #Esse é um programa que conta palavras
IO.puts "Olá! Contaremos as palavras de um arquivo!"
filename = IO.gets("Insira o nome do arquivo para saber quantas palavras tem nele: ") |>String.trim
IO.puts "A quantidade de palavras do seu arquivo é: "
_ = filename
#Leitura do arquivo
|>File.read!
#Parâmetros de Filtro... | 31.928571 | 100 | 0.682327 |
85f6271e88837d97891af716df4d52cab5b44001 | 1,612 | ex | Elixir | exercises/practice/dot-dsl/.meta/example.ex | devtayls/elixir | 67824de8209ff1b6ed2f736deedfb5bd815130ca | [
"MIT"
] | 343 | 2017-06-22T16:28:28.000Z | 2022-03-25T21:33:32.000Z | exercises/practice/dot-dsl/.meta/example.ex | devtayls/elixir | 67824de8209ff1b6ed2f736deedfb5bd815130ca | [
"MIT"
] | 583 | 2017-06-19T10:48:40.000Z | 2022-03-28T21:43:12.000Z | exercises/practice/dot-dsl/.meta/example.ex | devtayls/elixir | 67824de8209ff1b6ed2f736deedfb5bd815130ca | [
"MIT"
] | 228 | 2017-07-05T07:09:32.000Z | 2022-03-27T08:59:08.000Z | defmodule Dot do
# Normally matching on keywords is a bad idea as keyword lists can have
# several orders (i.e. `[a: 1, b: 2]` and `[b: 2, a: 1]`). But in this case
# only one keyword is allowed, so it's safe.
defmacro graph(do: ast) do
g = do_graph(ast)
g |> Graph.canonical() |> Macro.escape()
end
... | 24.424242 | 77 | 0.60732 |
85f65bef8c3328b122a65dc00b06cc9a02869e61 | 2,524 | ex | Elixir | clients/document_ai/lib/google_api/document_ai/v1beta3/model/google_cloud_documentai_v1beta2_document_page_anchor_page_ref.ex | jechol/elixir-google-api | 0290b683dfc6491ca2ef755a80bc329378738d03 | [
"Apache-2.0"
] | null | null | null | clients/document_ai/lib/google_api/document_ai/v1beta3/model/google_cloud_documentai_v1beta2_document_page_anchor_page_ref.ex | jechol/elixir-google-api | 0290b683dfc6491ca2ef755a80bc329378738d03 | [
"Apache-2.0"
] | null | null | null | clients/document_ai/lib/google_api/document_ai/v1beta3/model/google_cloud_documentai_v1beta2_document_page_anchor_page_ref.ex | jechol/elixir-google-api | 0290b683dfc6491ca2ef755a80bc329378738d03 | [
"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.830769 | 205 | 0.737322 |
85f66c45cfe71816c0dde5f81bcb8b1e0cf4e90f | 4,959 | exs | Elixir | test/elixir/test/partition_ddoc_test.exs | aogier/couchdb | 0c7111c49932e742981145b88389f7bdcfda5ee6 | [
"Apache-2.0"
] | 1 | 2019-03-17T03:56:29.000Z | 2019-03-17T03:56:29.000Z | test/elixir/test/partition_ddoc_test.exs | aogier/couchdb | 0c7111c49932e742981145b88389f7bdcfda5ee6 | [
"Apache-2.0"
] | null | null | null | test/elixir/test/partition_ddoc_test.exs | aogier/couchdb | 0c7111c49932e742981145b88389f7bdcfda5ee6 | [
"Apache-2.0"
] | null | null | null | defmodule PartitionDDocTest do
use CouchTestCase
@moduledoc """
Test partition design doc interactions
"""
setup do
db_name = random_db_name()
{:ok, _} = create_db(db_name, query: %{partitioned: true, q: 1})
on_exit(fn -> delete_db(db_name) end)
{:ok, [db_name: db_name]}
end
test "PUT ... | 28.176136 | 86 | 0.593063 |
85f67f102dcfe55c654eafa283002e4c8a774f13 | 17,100 | exs | Elixir | lib/elixir/test/elixir/calendar/iso_test.exs | azizk/elixir | b2e33b428cea86579da22da58c3fedc2f3955170 | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/calendar/iso_test.exs | azizk/elixir | b2e33b428cea86579da22da58c3fedc2f3955170 | [
"Apache-2.0"
] | 1 | 2021-10-21T08:22:30.000Z | 2021-10-21T08:22:30.000Z | lib/elixir/test/elixir/calendar/iso_test.exs | azizk/elixir | b2e33b428cea86579da22da58c3fedc2f3955170 | [
"Apache-2.0"
] | null | null | null | Code.require_file("../test_helper.exs", __DIR__)
defmodule Calendar.ISOTest do
use ExUnit.Case, async: true
doctest Calendar.ISO
describe "date_from_iso_days" do
test "with positive dates" do
assert {0, 1, 1} == iso_day_roundtrip(0, 1, 1)
assert {0, 12, 31} == iso_day_roundtrip(0, 12, 31)
... | 40.909091 | 98 | 0.63152 |
85f6aa2e53af14c866d9a16c31aac0ef910dcb33 | 1,625 | ex | Elixir | lib/pbbuilder_web.ex | StBarCo/pbbuilder | 9d6eb47d6137a6a16cd746a0c1418493f94043d5 | [
"MIT"
] | null | null | null | lib/pbbuilder_web.ex | StBarCo/pbbuilder | 9d6eb47d6137a6a16cd746a0c1418493f94043d5 | [
"MIT"
] | null | null | null | lib/pbbuilder_web.ex | StBarCo/pbbuilder | 9d6eb47d6137a6a16cd746a0c1418493f94043d5 | [
"MIT"
] | null | null | null | defmodule PbbuilderWeb 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 PbbuilderWeb, :controller
use PbbuilderWeb, :view
The definitions below will be executed for every view,
contro... | 23.897059 | 69 | 0.691077 |
85f6b26ab35745da0c95679659da83cf17f93968 | 28,872 | exs | Elixir | test/arango/simple_test.exs | mpoeter/arangoex | 161ed0223f4e75ca47ca921660f162d01fdab863 | [
"Apache-2.0"
] | null | null | null | test/arango/simple_test.exs | mpoeter/arangoex | 161ed0223f4e75ca47ca921660f162d01fdab863 | [
"Apache-2.0"
] | null | null | null | test/arango/simple_test.exs | mpoeter/arangoex | 161ed0223f4e75ca47ca921660f162d01fdab863 | [
"Apache-2.0"
] | 3 | 2018-03-27T09:47:04.000Z | 2019-11-04T22:41:46.000Z | defmodule SimpleTest do
use Arango.TestCase
doctest Arango
alias Arango.Simple
alias Arango.Document
alias Arango.Index
setup do
%{
data1: %{"name" =>"Jim", "age" => 22, "fruit" => %{"apple" => 3, "pear" => 4}},
data2: %{"name" =>"John", "age" => 33, "cars" => %{"honda" => 5, "ford" => 6}}... | 38.140026 | 134 | 0.428374 |
85f6bd8cd7e514206dc7f9d21fe02f6447715734 | 3,023 | ex | Elixir | clients/storage/lib/google_api/storage/v1/model/notification.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/storage/lib/google_api/storage/v1/model/notification.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/storage/lib/google_api/storage/v1/model/notification.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 41.986111 | 214 | 0.712537 |
85f6e7919a320a5169d92b72f9ea1c6e4d545e45 | 2,084 | ex | Elixir | clients/health_care/lib/google_api/health_care/v1beta1/model/set_iam_policy_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-10-01T09:20:41.000Z | 2021-10-01T09:20:41.000Z | clients/health_care/lib/google_api/health_care/v1beta1/model/set_iam_policy_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/health_care/lib/google_api/health_care/v1beta1/model/set_iam_policy_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... | 41.68 | 315 | 0.742802 |
85f7154f5525e0d01221e3c3725ee4af49ff3952 | 832 | ex | Elixir | lib/surface/type_handler/style.ex | RudolfMan/surface | ee8c1546b77c91fe08e7360e64666c613bc5a900 | [
"MIT"
] | null | null | null | lib/surface/type_handler/style.ex | RudolfMan/surface | ee8c1546b77c91fe08e7360e64666c613bc5a900 | [
"MIT"
] | null | null | null | lib/surface/type_handler/style.ex | RudolfMan/surface | ee8c1546b77c91fe08e7360e64666c613bc5a900 | [
"MIT"
] | null | null | null | defmodule Surface.TypeHandler.Style do
@moduledoc false
use Surface.TypeHandler
@impl true
def expr_to_value([value], [], _ctx) when is_binary(value) do
styles =
for style <- String.split(value, ~r/;/, trim: true) do
[k, v] = String.split(style, ":", trim: true, parts: 2)
{String.tri... | 21.894737 | 70 | 0.592548 |
85f716f7ebc7323e30e6b32d88945baf3077a2f0 | 3,730 | exs | Elixir | test/nestru_to_map_test.exs | IvanRublev/Nestru | 4e65cdbeec812de718fc3373c2f1ab92c4fbcca7 | [
"MIT"
] | 15 | 2021-11-10T23:15:29.000Z | 2022-03-26T01:03:38.000Z | test/nestru_to_map_test.exs | IvanRublev/Nestru | 4e65cdbeec812de718fc3373c2f1ab92c4fbcca7 | [
"MIT"
] | null | null | null | test/nestru_to_map_test.exs | IvanRublev/Nestru | 4e65cdbeec812de718fc3373c2f1ab92c4fbcca7 | [
"MIT"
] | null | null | null | defmodule NestruToMapTest do
use ExUnit.Case, async: true
import ErrorRegex
describe "For a struct adopting Encoding protocol Nestru should" do
test "encode struct to map receiving customized map value from Nestru.Encoder.to_map/1" do
struct = %Order{id: "123785-558", max_total: 500.00}
assert ... | 34.220183 | 105 | 0.630563 |
85f732a1e6c8bf3fe47120a4b2796303023fe00f | 942 | ex | Elixir | debian/postrm.ex | mingw-deb/pdcurses | aa2dec102403fc95f433f22e856f5026557aba10 | [
"X11"
] | null | null | null | debian/postrm.ex | mingw-deb/pdcurses | aa2dec102403fc95f433f22e856f5026557aba10 | [
"X11"
] | null | null | null | debian/postrm.ex | mingw-deb/pdcurses | aa2dec102403fc95f433f22e856f5026557aba10 | [
"X11"
] | null | null | null | #!/bin/sh
# postrm script for mingw-w64-pdcurses
#
# see: dh_installdeb(1)
set -e
# summary of how this script can be called:
# * <postrm> `remove'
# * <postrm> `purge'
# * <old-postrm> `upgrade' <new-version>
# * <new-postrm> `failed-upgrade' <old-version>
# * <new-postrm> `abort-i... | 24.789474 | 78 | 0.630573 |
85f77067f7296648db1820ce648042484a3a9293 | 3,020 | ex | Elixir | lib/logger/lib/logger/watcher.ex | mk/elixir | 2b2c66ecf7b1cc2167cae9cc3e88f950994223f1 | [
"Apache-2.0"
] | 4 | 2015-12-22T02:46:39.000Z | 2016-04-26T06:11:09.000Z | lib/logger/lib/logger/watcher.ex | mk/elixir | 2b2c66ecf7b1cc2167cae9cc3e88f950994223f1 | [
"Apache-2.0"
] | null | null | null | lib/logger/lib/logger/watcher.ex | mk/elixir | 2b2c66ecf7b1cc2167cae9cc3e88f950994223f1 | [
"Apache-2.0"
] | null | null | null | defmodule Logger.Watcher do
@moduledoc false
require Logger
use GenServer
@name Logger.Watcher
@doc """
Starts the watcher supervisor.
"""
def start_link(m, f, a) do
import Supervisor.Spec
child = worker(__MODULE__, [],
[function: :watcher, restart: :transient])
options = [strategy:... | 27.454545 | 91 | 0.616225 |
85f790379b933e91efc24b921120d34d8157871b | 3,394 | exs | Elixir | mix.exs | edwardzhou/custom_rpi0 | 48a136f6a421d47d3b84f581bec1806c5d3eb5d6 | [
"Apache-2.0"
] | null | null | null | mix.exs | edwardzhou/custom_rpi0 | 48a136f6a421d47d3b84f581bec1806c5d3eb5d6 | [
"Apache-2.0"
] | null | null | null | mix.exs | edwardzhou/custom_rpi0 | 48a136f6a421d47d3b84f581bec1806c5d3eb5d6 | [
"Apache-2.0"
] | null | null | null | defmodule NervesSystemRpi0.MixProject do
use Mix.Project
@github_organization "nerves-project"
@app :nerves_system_rpi0
@source_url "https://github.com/#{@github_organization}/#{@app}"
@version Path.join(__DIR__, "VERSION")
|> File.read!()
|> String.trim()
def project do
[
... | 24.070922 | 79 | 0.584266 |
85f7c7048782941b1fcb1dab59c88b9761209de5 | 3,765 | exs | Elixir | apps/admin_api/test/admin_api/v1/views/token_view_test.exs | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 322 | 2018-02-28T07:38:44.000Z | 2020-05-27T23:09:55.000Z | apps/admin_api/test/admin_api/v1/views/token_view_test.exs | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 643 | 2018-02-28T12:05:20.000Z | 2020-05-22T08:34:38.000Z | apps/admin_api/test/admin_api/v1/views/token_view_test.exs | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 63 | 2018-02-28T10:57:06.000Z | 2020-05-27T23:10:38.000Z | # Copyright 2018-2019 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 ... | 30.362903 | 78 | 0.550066 |
85f7c7b6e318e9f28c029044810bd28f3fc6f565 | 1,025 | exs | Elixir | config/config.exs | caromo/bracketeer | 93b4fcaed0e4f6e83c49af6b3ed2573e3b44fac0 | [
"MIT"
] | 1 | 2019-06-20T20:29:10.000Z | 2019-06-20T20:29:10.000Z | config/config.exs | caromo/bracketeer | 93b4fcaed0e4f6e83c49af6b3ed2573e3b44fac0 | [
"MIT"
] | 3 | 2020-07-16T23:11:31.000Z | 2021-05-08T14:44:21.000Z | config/config.exs | caromo/bracketeer | 93b4fcaed0e4f6e83c49af6b3ed2573e3b44fac0 | [
"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.
# General application configuration
use Mix.Config
config :bracketeer,
ecto_repos: [Bracketeer.Re... | 33.064516 | 86 | 0.77561 |
85f7d3d9e2a6a6a39ee9c79ba637a9d8f6df4d9b | 648 | ex | Elixir | train_shunting/lib/listt.ex | lucas-larsson/ID1019 | b21a79bfa7fbbaaba0b4db88ec8b44fc5e9f291c | [
"MIT"
] | null | null | null | train_shunting/lib/listt.ex | lucas-larsson/ID1019 | b21a79bfa7fbbaaba0b4db88ec8b44fc5e9f291c | [
"MIT"
] | null | null | null | train_shunting/lib/listt.ex | lucas-larsson/ID1019 | b21a79bfa7fbbaaba0b4db88ec8b44fc5e9f291c | [
"MIT"
] | null | null | null | defmodule Listt do
#returns list containing first n elements
def take(list, n) do
Enum.take(list,n)
end
#returns list without its first n elements
def drop(list, n) do
Enum.drop(list,n)
end
def append(left,right) do
Enum.concat(left,right)
end
def member(list, n) do
Enum.member?... | 20.903226 | 107 | 0.612654 |
85f7e90004f642c68d4ae8f89f2f426b979c72a7 | 398 | ex | Elixir | web/views/error_view.ex | swarut/movies-elixir-phoenix | d88f28c0e8c43529d3a28f98cce6034213a93b0d | [
"MIT"
] | 25 | 2015-10-26T18:20:30.000Z | 2022-01-28T17:53:01.000Z | web/views/error_view.ex | swarut/movies-elixir-phoenix | d88f28c0e8c43529d3a28f98cce6034213a93b0d | [
"MIT"
] | 1 | 2015-10-28T08:43:36.000Z | 2015-10-28T08:43:36.000Z | web/views/error_view.ex | swarut/movies-elixir-phoenix | d88f28c0e8c43529d3a28f98cce6034213a93b0d | [
"MIT"
] | 8 | 2016-08-10T16:26:02.000Z | 2021-09-29T06:11:39.000Z | defmodule MoviesElixirPhoenix.ErrorView do
use MoviesElixirPhoenix.Web, :view
def render("404.html", _assigns) do
"Page not found"
end
def render("500.html", _assigns) do
"Server internal error"
end
# In case no render clause matches or no
# template is found, let's render it as 500
def templ... | 22.111111 | 47 | 0.71608 |
85f7f843db3da16e7c3cc3e80c83453c0c68c15e | 2,659 | ex | Elixir | clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/configuration_condition.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/configuration_condition.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/configuration_condition.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.536232 | 134 | 0.70252 |
85f80d135005f22bd8368be70740cfabcb240e8a | 2,773 | ex | Elixir | lib/espec_phoenix.ex | antonmi/espec_phoenix | 51c44b6b1ece9fb48438b93f9765dfe834ee5544 | [
"MIT"
] | 144 | 2015-04-30T15:12:46.000Z | 2022-01-07T03:40:26.000Z | lib/espec_phoenix.ex | antonmi/espec_phoenix | 51c44b6b1ece9fb48438b93f9765dfe834ee5544 | [
"MIT"
] | 57 | 2015-04-29T11:26:54.000Z | 2022-01-05T13:35:10.000Z | lib/espec_phoenix.ex | antonmi/espec_phoenix | 51c44b6b1ece9fb48438b93f9765dfe834ee5544 | [
"MIT"
] | 46 | 2015-06-12T11:26:15.000Z | 2021-12-15T00:38:26.000Z | defmodule ESpec.Phoenix do
@moduledoc """
ESpec Phoenix basic module. Imports core ESpec plus some Phoenix-related components.
One should `use` the module in spec modules.
"""
defmacro __using__(args) do
cond do
Keyword.has_key?(args, :model) ->
quote do
use ESpec, unquote(args)
... | 24.324561 | 86 | 0.605121 |
85f8361595d954e0b40ea03eb61859a8a7ea974b | 2,581 | exs | Elixir | config/prod.exs | GabrielMalakias/strto | 523731953a15a845751235fe112fd2a1a75d1e1b | [
"MIT"
] | null | null | null | config/prod.exs | GabrielMalakias/strto | 523731953a15a845751235fe112fd2a1a75d1e1b | [
"MIT"
] | null | null | null | config/prod.exs | GabrielMalakias/strto | 523731953a15a845751235fe112fd2a1a75d1e1b | [
"MIT"
] | null | null | null | use Mix.Config
# For production, don't forget to configure the url host
# to something meaningful, Phoenix uses this information
# when generating URLs.
#
# Note we also include the path to a cache manifest
# containing the digested version of static files. This
# manifest is generated by the `mix phx.digest` task,
# ... | 33.960526 | 69 | 0.709415 |
85f880d24138f268fd4b0beb41233b42083c8728 | 1,562 | ex | Elixir | lib/chat_api_web/views/browser_session_view.ex | kamilpikula/papercups | 9ff761368536ce36ac2c5da79def9266c4540650 | [
"MIT"
] | null | null | null | lib/chat_api_web/views/browser_session_view.ex | kamilpikula/papercups | 9ff761368536ce36ac2c5da79def9266c4540650 | [
"MIT"
] | null | null | null | lib/chat_api_web/views/browser_session_view.ex | kamilpikula/papercups | 9ff761368536ce36ac2c5da79def9266c4540650 | [
"MIT"
] | null | null | null | defmodule ChatApiWeb.BrowserSessionView do
use ChatApiWeb, :view
alias ChatApiWeb.{BrowserSessionView, BrowserReplayEventView, CustomerView}
def render("index.json", %{browser_sessions: browser_sessions}) do
%{data: render_many(browser_sessions, BrowserSessionView, "basic.json")}
end
def render("create.... | 33.956522 | 81 | 0.725352 |
85f884707537b66717b9f5e89a2d3ca3e5e60d3e | 758 | ex | Elixir | monitoring_hub/apps/metrics_reporter_ui/test/support/channel_case.ex | awesome-archive/wallaroo | 852c19ffad0ed75a767a658a9a72c355e3c4c1c8 | [
"Apache-2.0"
] | null | null | null | monitoring_hub/apps/metrics_reporter_ui/test/support/channel_case.ex | awesome-archive/wallaroo | 852c19ffad0ed75a767a658a9a72c355e3c4c1c8 | [
"Apache-2.0"
] | null | null | null | monitoring_hub/apps/metrics_reporter_ui/test/support/channel_case.ex | awesome-archive/wallaroo | 852c19ffad0ed75a767a658a9a72c355e3c4c1c8 | [
"Apache-2.0"
] | null | null | null | defmodule MetricsReporterUI.ChannelCase do
@moduledoc """
This module defines the test case to be used by
channel tests.
Such tests rely on `Phoenix.ChannelTest` and also
imports other functionality to make it easier
to build and query models.
Finally, if the test case interacts with the database,
it ... | 22.294118 | 56 | 0.725594 |
85f8913fb1643a45fb52f2fa1de2d2be392beb61 | 541 | ex | Elixir | lib/hello_world_web/views/error_view.ex | llamalogs/PhonixBlogExample | 61cf3760bf7758c4b5f4ed3d7f0da4646982f315 | [
"MIT"
] | null | null | null | lib/hello_world_web/views/error_view.ex | llamalogs/PhonixBlogExample | 61cf3760bf7758c4b5f4ed3d7f0da4646982f315 | [
"MIT"
] | null | null | null | lib/hello_world_web/views/error_view.ex | llamalogs/PhonixBlogExample | 61cf3760bf7758c4b5f4ed3d7f0da4646982f315 | [
"MIT"
] | null | null | null | defmodule HelloWorldWeb.ErrorView do
use HelloWorldWeb, :view
# If you want to customize a particular status code
# for a certain format, you may uncomment below.
# def render("500.json", _assigns) do
# %{errors: %{detail: "Internal Server Error"}}
# end
# By default, Phoenix returns the status messag... | 31.823529 | 83 | 0.722736 |
85f8a82226ec4ced7acbedda634c2aa0ba7b99e7 | 2,291 | exs | Elixir | mix.exs | sickill/quantum-elixir | c9a49f70f2c465980a8e14905ba08feecfc5fa1c | [
"Apache-2.0"
] | null | null | null | mix.exs | sickill/quantum-elixir | c9a49f70f2c465980a8e14905ba08feecfc5fa1c | [
"Apache-2.0"
] | null | null | null | mix.exs | sickill/quantum-elixir | c9a49f70f2c465980a8e14905ba08feecfc5fa1c | [
"Apache-2.0"
] | null | null | null | defmodule Quantum.Mixfile do
@moduledoc false
use Mix.Project
@version "2.2.5"
def project do
[
app: :quantum,
build_embedded: Mix.env() == :prod,
deps: deps(),
description: "Cron-like job scheduler for Elixir.",
docs: docs(),
elixir: ">= 1.5.1",
name: "Quantum",... | 26.333333 | 91 | 0.540812 |
85f8f1d4e6f033f0daedd15b145064eaa803972f | 2,384 | exs | Elixir | 15/part2.exs | seantanly/elixir-advent_of_code | 1e39ac46bc01f5c8cffd2d2f79f9af0b71767291 | [
"MIT"
] | 3 | 2016-01-18T01:14:45.000Z | 2017-05-11T09:14:49.000Z | 15/part2.exs | seantanly/elixir-advent_of_code | 1e39ac46bc01f5c8cffd2d2f79f9af0b71767291 | [
"MIT"
] | null | null | null | 15/part2.exs | seantanly/elixir-advent_of_code | 1e39ac46bc01f5c8cffd2d2f79f9af0b71767291 | [
"MIT"
] | null | null | null | defmodule Cookie do
def parse_ingredients(inputs) do
inputs
|> String.split("\n", trim: true)
|> Enum.reduce(%{}, fn input, spec_map ->
[name, rest] = String.split(input, ": ")
spec = rest
|> String.split(", ")
|> Enum.map(&String.split(&1, " ")) # attribute pairs
|> Enum.re... | 27.090909 | 91 | 0.600252 |
85f90bfc517e07c5d79d266742b16176798c6bab | 1,548 | ex | Elixir | clients/tool_results/lib/google_api/tool_results/v1beta3/model/tool_exit_code.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/tool_results/lib/google_api/tool_results/v1beta3/model/tool_exit_code.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/tool_results/lib/google_api/tool_results/v1beta3/model/tool_exit_code.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 ... | 31.591837 | 136 | 0.73708 |
85f913da8c610b87902c216cbbd1e5e4e9b722d0 | 2,073 | ex | Elixir | lib/elrondex/sc/wrap_egld_sc.ex | victorflx/elrondex | a90521ce5e39ad37453dcb53f527b8311ae1ae4f | [
"MIT"
] | 8 | 2021-10-02T16:25:19.000Z | 2022-02-03T17:50:34.000Z | lib/elrondex/sc/wrap_egld_sc.ex | victorflx/elrondex | a90521ce5e39ad37453dcb53f527b8311ae1ae4f | [
"MIT"
] | 1 | 2022-01-19T12:10:49.000Z | 2022-01-19T12:10:49.000Z | lib/elrondex/sc/wrap_egld_sc.ex | victorflx/elrondex | a90521ce5e39ad37453dcb53f527b8311ae1ae4f | [
"MIT"
] | 2 | 2022-01-10T07:48:16.000Z | 2022-02-06T17:05:57.000Z | defmodule Elrondex.Sc.WrapEgldSc do
alias Elrondex.{Transaction, Account, REST, ESDT, Network, Sc}
@doc """
Return wrapped ESDT token id associated to native EGLD token by SC
"""
# We can implement this as config or cached/genserver
def wrapped_egld_token_id() do
# PROD
"WEGLD-bd4d79"
# TEST
... | 30.043478 | 90 | 0.726483 |
85f929dd7bc84648d158b697673d02fc9ebe5159 | 2,838 | ex | Elixir | test/support/extensions/email_confirmation/repo_mock.ex | dweremeichik/pow | 8c45624c1bf40487680abf5a077549fad2de2141 | [
"MIT"
] | null | null | null | test/support/extensions/email_confirmation/repo_mock.ex | dweremeichik/pow | 8c45624c1bf40487680abf5a077549fad2de2141 | [
"MIT"
] | null | null | null | test/support/extensions/email_confirmation/repo_mock.ex | dweremeichik/pow | 8c45624c1bf40487680abf5a077549fad2de2141 | [
"MIT"
] | 1 | 2020-07-13T01:11:17.000Z | 2020-07-13T01:11:17.000Z | defmodule PowEmailConfirmation.Test.RepoMock do
@moduledoc false
alias Pow.Ecto.Schema.Password
alias PowEmailConfirmation.Test.Users.User
@user %User{
id: 1,
email: "test@example.com",
email_confirmation_token: "valid",
password_hash: Password.pbkdf2_hash("secret1234")
}
def one(query) do... | 32.25 | 132 | 0.684989 |
85f953a80f5e8921d9eb00b95156fd2d946fbbe7 | 423 | exs | Elixir | priv/repo/migrations/20190427133331_create_conversation_users.exs | lucasmelin/Chatter | 023595dab54bc86d94062a61628c344fa5d7f56d | [
"MIT"
] | null | null | null | priv/repo/migrations/20190427133331_create_conversation_users.exs | lucasmelin/Chatter | 023595dab54bc86d94062a61628c344fa5d7f56d | [
"MIT"
] | 1 | 2020-07-16T23:18:36.000Z | 2020-07-16T23:18:36.000Z | priv/repo/migrations/20190427133331_create_conversation_users.exs | lucasmelin/Chatter | 023595dab54bc86d94062a61628c344fa5d7f56d | [
"MIT"
] | null | null | null | defmodule Chatter.Repo.Migrations.CreateConversationUsers do
use Ecto.Migration
def change do
create table(:conversation_users) do
add :conversation_id, references(:conversations, on_delete: :nothing)
add :user_id, references(:users, on_delete: :nothing)
timestamps()
end
create inde... | 26.4375 | 75 | 0.732861 |
85f96f4724ff8fd29d973649f4a7c5dc559e8483 | 295 | exs | Elixir | priv/repo/migrations/20160425042813_create_user.exs | bcoop713/rumbl | 831982b86f8f4e6540b6d481e36e2e3c3470b5b1 | [
"MIT"
] | 1 | 2016-09-19T01:31:35.000Z | 2016-09-19T01:31:35.000Z | priv/repo/migrations/20160425042813_create_user.exs | bcoop713/rumbl | 831982b86f8f4e6540b6d481e36e2e3c3470b5b1 | [
"MIT"
] | null | null | null | priv/repo/migrations/20160425042813_create_user.exs | bcoop713/rumbl | 831982b86f8f4e6540b6d481e36e2e3c3470b5b1 | [
"MIT"
] | null | null | null | defmodule Rumbl.Repo.Migrations.CreateUser do
use Ecto.Migration
def change do
create table(:users) do
add :name, :string
add :username, :string, null: false
add :password_hash, :string
timestamps
end
create unique_index(:users, [:username])
end
end
| 18.4375 | 45 | 0.664407 |
85f9751c6bf59583c03aec762003f2773c0bc63a | 789 | ex | Elixir | lib/oli/interop/custom_activities/problem.ex | malav2110/oli-torus | 8af64e762a7c8a2058bd27a7ab8e96539ffc055f | [
"MIT"
] | 1 | 2022-03-17T20:35:47.000Z | 2022-03-17T20:35:47.000Z | lib/oli/interop/custom_activities/problem.ex | malav2110/oli-torus | 8af64e762a7c8a2058bd27a7ab8e96539ffc055f | [
"MIT"
] | 9 | 2021-11-02T16:52:09.000Z | 2022-03-25T15:14:01.000Z | lib/oli/interop/custom_activities/problem.ex | malav2110/oli-torus | 8af64e762a7c8a2058bd27a7ab8e96539ffc055f | [
"MIT"
] | null | null | null | defmodule Oli.Interop.CustomActivities.Problem do
import XmlBuilder
alias Oli.Interop.CustomActivities.{GradingAttributes, LaunchAttributes}
def setup(
%{
context: context
}
) do
element(
:problem,
%{
date_created: DateTime.to_unix(context.activity_attempt... | 23.205882 | 86 | 0.60076 |
85f99acd8efbac1ae163893b5ee2ac008cca6222 | 527 | ex | Elixir | lib/yggdrasil/postgres/application.ex | gmtprime/yggdrasil_postgres | b452753981e7eecad7d4bb3c77ed44ed7f0e3397 | [
"MIT"
] | 6 | 2020-02-13T13:32:20.000Z | 2020-05-28T00:48:54.000Z | lib/yggdrasil/postgres/application.ex | gmtprime/yggdrasil_postgres | b452753981e7eecad7d4bb3c77ed44ed7f0e3397 | [
"MIT"
] | null | null | null | lib/yggdrasil/postgres/application.ex | gmtprime/yggdrasil_postgres | b452753981e7eecad7d4bb3c77ed44ed7f0e3397 | [
"MIT"
] | 1 | 2021-07-26T18:42:54.000Z | 2021-07-26T18:42:54.000Z | defmodule Yggdrasil.Postgres.Application do
@moduledoc false
use Application
alias Yggdrasil.Adapter.Postgres
alias Yggdrasil.Postgres.Connection.Generator, as: ConnectionGen
@impl true
def start(_type, _args) do
children = [
Supervisor.child_spec({ConnectionGen, [name: ConnectionGen]},
... | 25.095238 | 72 | 0.705882 |
85f9e7864e818facb5d5eef0c6a60a31c33995a0 | 1,630 | ex | Elixir | lib/livevox/metrics/session_length.ex | justicedemocrats/livevox_layer | 2ead1d0ef7529e617de524391d3d19514815af18 | [
"MIT"
] | null | null | null | lib/livevox/metrics/session_length.ex | justicedemocrats/livevox_layer | 2ead1d0ef7529e617de524391d3d19514815af18 | [
"MIT"
] | 1 | 2018-01-25T21:49:40.000Z | 2018-01-25T21:49:40.000Z | lib/livevox/metrics/session_length.ex | justicedemocrats/livevox_layer | 2ead1d0ef7529e617de524391d3d19514815af18 | [
"MIT"
] | 2 | 2018-01-25T12:29:59.000Z | 2018-05-25T15:43:26.000Z | defmodule Livevox.Metrics.SessionLength do
alias Phoenix.{PubSub}
use GenServer
import ShortMaps
def start_link do
GenServer.start_link(
__MODULE__,
fn ->
%{}
end,
name: __MODULE__
)
end
def init(opts) do
PubSub.subscribe(:livevox, "agent_event")
{:ok, %{}}
... | 25.46875 | 94 | 0.609816 |
85fa0ea52d1b18b32440c051edb82c8139348a42 | 946 | exs | Elixir | test/map_extra_test.exs | fewlinesco/locale_names | 47fdaff15f81fead3dbfcc5988a075a6b50c3e27 | [
"MIT"
] | 1 | 2019-01-13T21:42:31.000Z | 2019-01-13T21:42:31.000Z | test/map_extra_test.exs | fewlinesco/locale_names | 47fdaff15f81fead3dbfcc5988a075a6b50c3e27 | [
"MIT"
] | null | null | null | test/map_extra_test.exs | fewlinesco/locale_names | 47fdaff15f81fead3dbfcc5988a075a6b50c3e27 | [
"MIT"
] | null | null | null | defmodule Map.ExtraTest do
use ExUnit.Case
doctest Map.Extra
test "fetch: should work like a fetch when key exists" do
map = %{
my_key: "my_value"
}
assert {:ok, "my_value"} == Map.Extra.fetch(map, :my_key, :key_does_not_exist)
end
test "fetch: should have a reason when key does not exist... | 27.028571 | 94 | 0.610994 |
85fa71d62b3e7563e408fa3901f228c028f57b2c | 57 | exs | Elixir | test/bom_test.exs | shufo/bom | c37735d5867b2d52996c073b70f9b8a349e5ad8c | [
"MIT"
] | 2 | 2019-11-19T12:48:55.000Z | 2020-01-12T18:59:41.000Z | test/bom_test.exs | shufo/bom | c37735d5867b2d52996c073b70f9b8a349e5ad8c | [
"MIT"
] | 1 | 2021-06-25T15:34:11.000Z | 2021-06-25T15:34:11.000Z | test/bom_test.exs | shufo/bom | c37735d5867b2d52996c073b70f9b8a349e5ad8c | [
"MIT"
] | null | null | null | defmodule BOMTest do
use ExUnit.Case
doctest BOM
end
| 11.4 | 20 | 0.77193 |
85fa955426251c9d691bb2c6d8c5445ad51a097b | 898 | ex | Elixir | lib/samples/autoencoder.ex | Markonis/BrainElixir | 7f1d193827b7ca8113424e7debedd920f75a0a10 | [
"MIT"
] | null | null | null | lib/samples/autoencoder.ex | Markonis/BrainElixir | 7f1d193827b7ca8113424e7debedd920f75a0a10 | [
"MIT"
] | null | null | null | lib/samples/autoencoder.ex | Markonis/BrainElixir | 7f1d193827b7ca8113424e7debedd920f75a0a10 | [
"MIT"
] | null | null | null | defmodule Samples.Autoencoder do
require Logger
def create_network do
NeuralNetwork.create([100, 24, 100])
end
def train do
alphabet = ImageProcessor.load("samples/alphabet.png")
letters = ImageProcessor.chunk(alphabet, width: 10, height: 10)
inputs = letters
|> Enum.map(&List.flatten/1)
... | 21.902439 | 67 | 0.648107 |
85faaabd130832a46a3b8e016d328424e7e40fde | 3,127 | ex | Elixir | test/support/handler_subscriber_collector.ex | fstromback/bitpal | 2c50e6700d7383b4f025b3734ba37257c69ce47e | [
"BSD-3-Clause-Clear"
] | null | null | null | test/support/handler_subscriber_collector.ex | fstromback/bitpal | 2c50e6700d7383b4f025b3734ba37257c69ce47e | [
"BSD-3-Clause-Clear"
] | null | null | null | test/support/handler_subscriber_collector.ex | fstromback/bitpal | 2c50e6700d7383b4f025b3734ba37257c69ce47e | [
"BSD-3-Clause-Clear"
] | null | null | null | defmodule HandlerSubscriberCollector do
use GenServer
alias BitPal.Addresses
alias BitPal.ExchangeRate
alias BitPal.InvoiceHandler
alias BitPal.InvoiceManager
alias BitPal.Invoices
alias BitPalSchemas.Invoice
# Client API
@spec create_invoice(keyword | map) :: {:ok, Invoice.t(), pid, pid}
def crea... | 26.956897 | 86 | 0.67221 |
85fab454e32078a3d00f1ba0ac5e3910a0ba9d56 | 1,572 | ex | Elixir | lib/elixir_jobs/core/fields/job_type.ex | odarriba/elixir_jobs | 514c0fd849f1579a80a98108d7ae58f76f3a330a | [
"MIT"
] | 86 | 2017-09-22T08:08:23.000Z | 2021-05-28T19:51:17.000Z | lib/elixir_jobs/core/fields/job_type.ex | odarriba/elixir_jobs | 514c0fd849f1579a80a98108d7ae58f76f3a330a | [
"MIT"
] | 24 | 2017-09-23T08:23:36.000Z | 2021-09-20T14:36:06.000Z | lib/elixir_jobs/core/fields/job_type.ex | odarriba/elixir_jobs | 514c0fd849f1579a80a98108d7ae58f76f3a330a | [
"MIT"
] | 21 | 2017-09-23T18:50:23.000Z | 2019-10-15T19:41:44.000Z | defmodule ElixirJobs.Core.Fields.JobType do
@moduledoc """
Field definition module to save in the database the type of an account
"""
use Ecto.Type
@values [
:unknown,
:full_time,
:part_time,
:freelance
]
def available_values, do: @values
@doc false
def type, do: :string
@doc ""... | 18.939759 | 86 | 0.590331 |
85fac660e6272d43148000db32be69ffb7e8d4d2 | 1,218 | ex | Elixir | lib/phoenix_base/endpoint.ex | bitriot/phoenix_base | 15ec83a9acf46202102f2b006d577972f5564b2f | [
"MIT"
] | null | null | null | lib/phoenix_base/endpoint.ex | bitriot/phoenix_base | 15ec83a9acf46202102f2b006d577972f5564b2f | [
"MIT"
] | null | null | null | lib/phoenix_base/endpoint.ex | bitriot/phoenix_base | 15ec83a9acf46202102f2b006d577972f5564b2f | [
"MIT"
] | null | null | null | defmodule PhoenixBase.Endpoint do
use Phoenix.Endpoint, otp_app: :phoenix_base
socket "/socket", PhoenixBase.UserSocket
# Serve at "/" the static files from "priv/static" directory.
#
# You should set gzip to true if you are running phoenix.digest
# when deploying your static files in production.
plug P... | 28.325581 | 69 | 0.720854 |
85faea8e1fea4d41ccb028cae5c3b611111225f7 | 2,933 | ex | Elixir | clients/gke_hub/lib/google_api/gke_hub/v1/model/audit_config.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/gke_hub/lib/google_api/gke_hub/v1/model/audit_config.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/gke_hub/lib/google_api/gke_hub/v1/model/audit_config.ex | dazuma/elixir-google-api | 6a9897168008efe07a6081d2326735fe332e522c | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 58.66 | 1,106 | 0.743266 |
85fb1f1dacad374503d4791707cd9917d2e4b19f | 63 | ex | Elixir | lib/videoke_web/views/layout_view.ex | ElixirLabOrg/videoke | 85873be94f17167c505c6d1066e30e30b8acd148 | [
"MIT"
] | null | null | null | lib/videoke_web/views/layout_view.ex | ElixirLabOrg/videoke | 85873be94f17167c505c6d1066e30e30b8acd148 | [
"MIT"
] | null | null | null | lib/videoke_web/views/layout_view.ex | ElixirLabOrg/videoke | 85873be94f17167c505c6d1066e30e30b8acd148 | [
"MIT"
] | null | null | null | defmodule VideokeWeb.LayoutView do
use VideokeWeb, :view
end
| 15.75 | 34 | 0.809524 |
85fb3103c9589412cfaacf2384b2d4ab348d85f2 | 6,701 | ex | Elixir | lib/html_test_helpers.ex | mirego/html_test_helpers | 8a05fe6d2ac4cc8b6635b84d8580b4d898d61082 | [
"BSD-3-Clause"
] | 3 | 2020-01-13T09:15:37.000Z | 2021-01-17T20:13:52.000Z | lib/html_test_helpers.ex | mirego/html_test_helpers | 8a05fe6d2ac4cc8b6635b84d8580b4d898d61082 | [
"BSD-3-Clause"
] | 5 | 2020-01-14T17:01:33.000Z | 2021-08-21T00:30:13.000Z | lib/html_test_helpers.ex | mirego/html_test_helpers | 8a05fe6d2ac4cc8b6635b84d8580b4d898d61082 | [
"BSD-3-Clause"
] | null | null | null | defmodule HTMLTestHelpers do
@moduledoc """
Functions helpers for unit testing.
Validate HTML tag identified by data-testid attributes
## Examples
Assuming that you have the following HTML:
```html
<!doctype html>
<html>
<body>
<section id="content">
<p data-testid="paragraph-id... | 30.049327 | 116 | 0.615431 |
85fb3ad83d7e93ff6ad856b3b6491fd7f7c76dac | 2,570 | ex | Elixir | lib/paseto_plug.ex | GrappigPanda/paseto_plug | d39e04b8709933a8efc2a990cc2c6934de48033e | [
"BSD-3-Clause"
] | null | null | null | lib/paseto_plug.ex | GrappigPanda/paseto_plug | d39e04b8709933a8efc2a990cc2c6934de48033e | [
"BSD-3-Clause"
] | 10 | 2020-09-28T08:51:48.000Z | 2021-08-03T04:49:06.000Z | lib/paseto_plug.ex | Ianleeclark/paseto_plug | d39e04b8709933a8efc2a990cc2c6934de48033e | [
"BSD-3-Clause"
] | 1 | 2019-05-22T19:06:47.000Z | 2019-05-22T19:06:47.000Z | defmodule PasetoPlug do
@moduledoc """
Documentation for PasetoPlug.
"""
import Plug.Conn
@type paseto_key :: {binary(), binary()} | binary()
@doc """
Main entrypoint for whenever the plug is loaded. It is expected that you will
pass in a function capable of returning a binary key (for local) or keyp... | 29.883721 | 240 | 0.642412 |
85fb433a77a7343624d3dbb18d1a29c567ec9f38 | 2,051 | exs | Elixir | test/grizzly/zwave/commands/schedule_entry_lock_year_day_report_test.exs | smartrent/grizzly | 65a397ea7bfedb5518fe63a3f058a0b6af473e39 | [
"Apache-2.0"
] | 76 | 2019-09-04T16:56:58.000Z | 2022-03-29T06:54:36.000Z | test/grizzly/zwave/commands/schedule_entry_lock_year_day_report_test.exs | smartrent/grizzly | 65a397ea7bfedb5518fe63a3f058a0b6af473e39 | [
"Apache-2.0"
] | 124 | 2019-09-05T14:01:24.000Z | 2022-02-28T22:58:14.000Z | test/grizzly/zwave/commands/schedule_entry_lock_year_day_report_test.exs | smartrent/grizzly | 65a397ea7bfedb5518fe63a3f058a0b6af473e39 | [
"Apache-2.0"
] | 10 | 2019-10-23T19:25:45.000Z | 2021-11-17T13:21:20.000Z | defmodule Grizzly.ZWave.Commands.ScheduleEntryLockYearDayReportTest do
use ExUnit.Case, async: true
alias Grizzly.ZWave.Commands.ScheduleEntryLockYearDayReport
test "creates the command and validates params" do
params = [
user_identifier: 20,
schedule_slot_id: 5,
start_year: 97,
star... | 32.555556 | 88 | 0.679668 |
85fb608859bc6561ebec6f8ea4c42ecdd0fcdc10 | 1,529 | exs | Elixir | config/config.exs | CableClub/cable-club-core | 70c67c7a105dea83f2c1a1e2ee75a1ee97713bfb | [
"Apache-2.0"
] | null | null | null | config/config.exs | CableClub/cable-club-core | 70c67c7a105dea83f2c1a1e2ee75a1ee97713bfb | [
"Apache-2.0"
] | null | null | null | config/config.exs | CableClub/cable-club-core | 70c67c7a105dea83f2c1a1e2ee75a1ee97713bfb | [
"Apache-2.0"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
#
# This configuration file is loaded before any dependency and
# is restricted to this project.
# General application configuration
use Mix.Config
config :cableclub,
namespace: CableClub,
ect... | 34.75 | 89 | 0.786789 |
85fb66b3a2ce6f1d263d1b843a6990c845c0f156 | 407 | exs | Elixir | priv/repo/migrations/20180126001949_local_flirt_db_profile.exs | ServusGameServer/Servus_Protobuf | cb870b7dccb6676e71045e231fd31547d63efa74 | [
"Apache-2.0"
] | 2 | 2018-10-19T06:14:08.000Z | 2018-11-23T00:56:09.000Z | priv/repo/migrations/20180126001949_local_flirt_db_profile.exs | ServusGameServer/Servus_Protobuf | cb870b7dccb6676e71045e231fd31547d63efa74 | [
"Apache-2.0"
] | null | null | null | priv/repo/migrations/20180126001949_local_flirt_db_profile.exs | ServusGameServer/Servus_Protobuf | cb870b7dccb6676e71045e231fd31547d63efa74 | [
"Apache-2.0"
] | null | null | null | defmodule Servus.Repo.Migrations.LocalFlirtDbProfile do
use Ecto.Migration
def change do
create table("LocalFlirtDbCampaign_User_Profile") do
add(:loginID_id, references("playerLogin"))
add(:gender, :integer)
add(:age, :integer)
add(:displayProfileName, :string)
timestamps()
e... | 27.133333 | 73 | 0.719902 |
85fb796e5720e2b22bfc2be5c8b1d722b0efe17d | 243 | exs | Elixir | test/apps_test.exs | ayrat-playground/balalaika_bear | bcccdd4a0caf075e133ef4f162eb13e3d28b2d65 | [
"MIT"
] | 5 | 2018-04-30T09:48:17.000Z | 2020-05-01T10:20:15.000Z | test/apps_test.exs | BalalaikaIndustries/balalaika_bear | bcccdd4a0caf075e133ef4f162eb13e3d28b2d65 | [
"MIT"
] | 7 | 2018-04-28T06:39:10.000Z | 2018-04-28T07:31:59.000Z | test/apps_test.exs | ayrat-playground/balalaika_bear | bcccdd4a0caf075e133ef4f162eb13e3d28b2d65 | [
"MIT"
] | 2 | 2018-04-27T19:42:04.000Z | 2020-05-01T10:20:02.000Z | defmodule BalalaikaBear.AppsTest do
use ExUnit.Case
use ExVCR.Mock, adapter: ExVCR.Adapter.Hackney
test "gets app catalog" do
use_cassette "apps_get_catalog" do
{:ok, _} = BalalaikaBear.Apps.get_catalog(%{})
end
end
end
| 22.090909 | 52 | 0.711934 |
85fba3ec36ebeb7ca19f959ac15ca36086b7c7b9 | 583 | exs | Elixir | test/fitaweb_web/views/error_view_test.exs | hugorifbjerg/fitaweb | 0d370d3f48905d936e7ee68d966d8ea287b152a8 | [
"MIT"
] | null | null | null | test/fitaweb_web/views/error_view_test.exs | hugorifbjerg/fitaweb | 0d370d3f48905d936e7ee68d966d8ea287b152a8 | [
"MIT"
] | null | null | null | test/fitaweb_web/views/error_view_test.exs | hugorifbjerg/fitaweb | 0d370d3f48905d936e7ee68d966d8ea287b152a8 | [
"MIT"
] | null | null | null | defmodule FitawebWeb.ErrorViewTest do
use FitawebWeb.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(FitawebWeb.ErrorView, "404.html", []) ==
"Page not found"
end
test "render 500.... | 26.5 | 68 | 0.684391 |
85fc1f0248d63cb2cce1c2f993998d1ca0406976 | 2,895 | exs | Elixir | test/fuentes/account_test.exs | christophermlne/fuentes | 9445ccdfd1c2f3707a39cf9bf63b4627581bc048 | [
"Apache-2.0"
] | 30 | 2016-05-26T23:30:03.000Z | 2022-03-10T18:44:37.000Z | test/fuentes/account_test.exs | christophermlne/fuentes | 9445ccdfd1c2f3707a39cf9bf63b4627581bc048 | [
"Apache-2.0"
] | 3 | 2016-05-20T14:55:40.000Z | 2020-03-18T11:59:47.000Z | test/fuentes/account_test.exs | christophermlne/fuentes | 9445ccdfd1c2f3707a39cf9bf63b4627581bc048 | [
"Apache-2.0"
] | 6 | 2016-09-27T11:19:56.000Z | 2019-09-26T07:30:30.000Z | defmodule Fuentes.AccountTest do
use Fuentes.EctoCase
:ok = Ecto.Adapters.SQL.Sandbox.checkout(Fuentes.TestRepo)
import Fuentes.TestFactory
alias Fuentes.{Account, TestRepo}
@valid_attrs params_for(:account)
@invalid_attrs %{}
test "changeset with valid attributes" do
changeset = Account.changeset... | 37.115385 | 108 | 0.656995 |
85fc29b5599e751487834601b28680c1f33e08fb | 1,066 | ex | Elixir | otapi/test/support/conn_case.ex | MauriceReeves-usds/OpenTransplant | c0196ff8bc5b914ce07502a4b7a760c508854804 | [
"Apache-2.0"
] | 32 | 2021-05-15T15:03:39.000Z | 2022-03-30T01:19:43.000Z | otapi/test/support/conn_case.ex | MauriceReeves-usds/OpenTransplant | c0196ff8bc5b914ce07502a4b7a760c508854804 | [
"Apache-2.0"
] | 3 | 2021-05-28T18:54:48.000Z | 2021-07-15T01:06:26.000Z | otapi/test/support/conn_case.ex | MauriceReeves-usds/OpenTransplant | c0196ff8bc5b914ce07502a4b7a760c508854804 | [
"Apache-2.0"
] | 1 | 2021-06-25T20:40:30.000Z | 2021-06-25T20:40:30.000Z | defmodule OtapiWeb.ConnCase do
@moduledoc """
This module defines the test case to be used by
tests that require setting up a connection.
Such tests rely on `Phoenix.ConnTest` and also
import other functionality to make it easier
to build common data structures and query the data layer.
Finally, if the ... | 28.052632 | 60 | 0.731707 |
85fc2eb2421440310aa024109c5e9059bed8d9d9 | 5,834 | exs | Elixir | test/hmouse_test.exs | Ninigi/plug_hmouse | d3fe3a7e412abbc4c94b8d487f2658939227485f | [
"MIT"
] | 2 | 2018-05-12T20:26:55.000Z | 2019-04-29T01:04:44.000Z | test/hmouse_test.exs | Ninigi/plug_hmouse | d3fe3a7e412abbc4c94b8d487f2658939227485f | [
"MIT"
] | 1 | 2019-04-29T01:05:35.000Z | 2019-05-08T14:43:09.000Z | test/hmouse_test.exs | Ninigi/plug_hmouse | d3fe3a7e412abbc4c94b8d487f2658939227485f | [
"MIT"
] | 1 | 2019-04-29T00:07:41.000Z | 2019-04-29T00:07:41.000Z | defmodule PlugHMouseTest do
use ExUnit.Case
use Plug.Test
@valid_options [validate: {"hmac-test", "MySecret-Key"}]
@valid_hash_options @valid_options ++ [hash_algo: :sha256, digest: &Base.encode64/1]
defmodule ErrorView do
@behaviour PlugHMouse.RenderStrategy
@behaviour PlugHMouse.ResponseStrategy
... | 37.883117 | 169 | 0.669866 |
85fc4142e703e07a748605b7e2eb2ce1878457e6 | 1,278 | ex | Elixir | lib/sahara/randomizers/randomizer.ex | ojizero/sahara | ee886ed1e3434cb1193770037e3c029773f0b192 | [
"MIT"
] | null | null | null | lib/sahara/randomizers/randomizer.ex | ojizero/sahara | ee886ed1e3434cb1193770037e3c029773f0b192 | [
"MIT"
] | null | null | null | lib/sahara/randomizers/randomizer.ex | ojizero/sahara | ee886ed1e3434cb1193770037e3c029773f0b192 | [
"MIT"
] | null | null | null | defmodule Sahara.Randomizer do
@spec seed_number(iodata) :: integer
def seed_number(seed) do
:sha
|> :crypto.hash(seed)
|> Base.encode16()
|> Integer.parse(16)
|> elem(0)
end
@spec bounded_number(iodata, integer) :: integer
def bounded_number(seed, upper) do
seed
|> seed_number()
... | 21.3 | 81 | 0.593114 |
85fc5aeef09ee95ffef038549a80ef8f8f27d568 | 1,675 | exs | Elixir | test/shikoba_web/graphql/accounts/user_schema/mutation_create_unverified_user_test.exs | vertico/vertico-test | af68000ff99450cf5686d7c5b803931f267c8e19 | [
"MIT"
] | 3 | 2021-11-23T23:07:34.000Z | 2021-11-24T01:40:01.000Z | test/shikoba_web/graphql/accounts/user_schema/mutation_create_unverified_user_test.exs | vertico/vertico-test | af68000ff99450cf5686d7c5b803931f267c8e19 | [
"MIT"
] | null | null | null | test/shikoba_web/graphql/accounts/user_schema/mutation_create_unverified_user_test.exs | vertico/vertico-test | af68000ff99450cf5686d7c5b803931f267c8e19 | [
"MIT"
] | 1 | 2021-07-19T11:48:30.000Z | 2021-07-19T11:48:30.000Z | defmodule ShikobaWeb.Graphql.Accounts.UserSchema.MutationCreateUnverifiedUserTest do
use ShikobaWeb.ConnCase, async: true
@password "12345678"
describe "when params is valid" do
test "should return token and user", %{conn: conn} do
assert %{
"data" => %{
"createUnverifiedUser" => tok... | 39.880952 | 140 | 0.685373 |
85fc67f8d6c8725e8e8114c4207ef44a89a4563f | 1,004 | exs | Elixir | mix.exs | thelastinuit/mix-fak | fe4290694bba64fce776a1631d7181bf6ef5ae2c | [
"Unlicense"
] | 1 | 2021-08-30T23:11:01.000Z | 2021-08-30T23:11:01.000Z | mix.exs | thelastinuit/mix_fak | fe4290694bba64fce776a1631d7181bf6ef5ae2c | [
"Unlicense"
] | null | null | null | mix.exs | thelastinuit/mix_fak | fe4290694bba64fce776a1631d7181bf6ef5ae2c | [
"Unlicense"
] | null | null | null | defmodule MixAdr.MixProject do
use Mix.Project
def project do
[
app: :mix_adr,
version: "1.0.1",
elixir: "~> 1.11",
start_permanent: Mix.env() == :prod,
description: description(),
package: package(),
deps: deps()
]
end
# Run "mix help compile.app" to learn ab... | 22.311111 | 177 | 0.587649 |
85fc6b513f0d0bd30492665ea95bc1f900ea0691 | 519 | ex | Elixir | ch04/exmeal/lib/exmeal/users/user.ex | arilsonsouza/rocketseat-ignite-elixir | 93e32d52d589336dfd2d81e755d6dd7f05ee40b8 | [
"MIT"
] | null | null | null | ch04/exmeal/lib/exmeal/users/user.ex | arilsonsouza/rocketseat-ignite-elixir | 93e32d52d589336dfd2d81e755d6dd7f05ee40b8 | [
"MIT"
] | null | null | null | ch04/exmeal/lib/exmeal/users/user.ex | arilsonsouza/rocketseat-ignite-elixir | 93e32d52d589336dfd2d81e755d6dd7f05ee40b8 | [
"MIT"
] | null | null | null | defmodule Exmeal.Users.User do
use Exmeal.Schema
alias Exmeal.Meals.Meal
@fields [:name, :tax_id, :email]
@derive {Jason.Encoder, only: [:id] ++ @fields}
schema "users" do
field(:name, :string)
field(:tax_id, :string)
field(:email, :string)
has_many(:meals, Meal)
timestamps()
end
... | 19.222222 | 49 | 0.633911 |
85fca327960ca60ba6901d738fb35359763a6bdc | 1,263 | ex | Elixir | lib/gear_application/g2g.ex | IvanPereyra-23/PaaS | 0179c7b57645473308b0a295a70b6284ed220fbf | [
"Apache-2.0"
] | 1 | 2020-08-27T18:43:11.000Z | 2020-08-27T18:43:11.000Z | lib/gear_application/g2g.ex | IvanPereyra-23/PaaS | 0179c7b57645473308b0a295a70b6284ed220fbf | [
"Apache-2.0"
] | null | null | null | lib/gear_application/g2g.ex | IvanPereyra-23/PaaS | 0179c7b57645473308b0a295a70b6284ed220fbf | [
"Apache-2.0"
] | 1 | 2020-08-27T18:43:21.000Z | 2020-08-27T18:43:21.000Z | # Copyright(c) 2015-2020 ACCESS CO., LTD. All rights reserved.
use Croma
defmodule Antikythera.GearApplication.G2g do
@moduledoc """
Helper module to define each gear's `G2g` module that contains interface for gear-to-gear communication.
"""
alias Antikythera.{Conn, Context, G2gRequest, G2gResponse}
defma... | 33.236842 | 106 | 0.678543 |
85fcb29323bfa9af508151d8688f302eb2a08d33 | 4,192 | exs | Elixir | test/ex_image_info_test/mocks/pnm_test.exs | Group4Layers/ex_image_info | d1d7f5c7b7b46c4286c71c2bb419cac7dcf84082 | [
"MIT"
] | 62 | 2018-01-10T05:23:14.000Z | 2022-03-30T22:26:17.000Z | test/ex_image_info_test/mocks/pnm_test.exs | Group4Layers/ex_image_info | d1d7f5c7b7b46c4286c71c2bb419cac7dcf84082 | [
"MIT"
] | 2 | 2018-05-20T16:09:34.000Z | 2018-11-26T21:46:08.000Z | test/ex_image_info_test/mocks/pnm_test.exs | Group4Layers/ex_image_info | d1d7f5c7b7b46c4286c71c2bb419cac7dcf84082 | [
"MIT"
] | 3 | 2017-11-04T13:22:05.000Z | 2018-11-16T18:31:03.000Z | defmodule ExImageInfoTest.Mocks.PNMTest do
use ExUnit.Case, async: true
import ExImageInfo
# doctest ExImageInfo.Detector
setup_all do
images = %{
"pbm" => << "P4", 0x0a,
"134", # width
0x20,
"457", # height
0x0a,
0x00,
>>,
"pgm" => << "P5", 0x0a,
"134"... | 36.452174 | 93 | 0.571088 |
85fcba27cc71d400b3cc48b765303d71a91281cd | 31,538 | ex | Elixir | lib/logger/lib/logger.ex | lau/elixir | 6cfe09c50b5f612e473725623d901080077ad6a6 | [
"Apache-2.0"
] | 1 | 2015-11-24T23:39:25.000Z | 2015-11-24T23:39:25.000Z | lib/logger/lib/logger.ex | lau/elixir | 6cfe09c50b5f612e473725623d901080077ad6a6 | [
"Apache-2.0"
] | null | null | null | lib/logger/lib/logger.ex | lau/elixir | 6cfe09c50b5f612e473725623d901080077ad6a6 | [
"Apache-2.0"
] | null | null | null | defmodule Logger do
@moduledoc ~S"""
A logger for Elixir applications.
It includes many features:
* Provides debug, info, warn, and error levels.
* Supports multiple backends which are automatically
supervised when plugged into `Logger`.
* Formats and truncates messages on the client
t... | 33.551064 | 96 | 0.678673 |
85fcc24c4c97e03f8be998a7ce23850ac7b763df | 1,505 | exs | Elixir | mix.exs | samidarko/exq | 9c5c15b13f8ae2ead1f6ed15af551aa41d92cd90 | [
"Apache-2.0"
] | null | null | null | mix.exs | samidarko/exq | 9c5c15b13f8ae2ead1f6ed15af551aa41d92cd90 | [
"Apache-2.0"
] | null | null | null | mix.exs | samidarko/exq | 9c5c15b13f8ae2ead1f6ed15af551aa41d92cd90 | [
"Apache-2.0"
] | null | null | null | defmodule Exq.Mixfile do
use Mix.Project
def project do
[
app: :exq,
version: "0.13.3",
elixir: "~> 1.6",
elixirc_paths: ["lib"],
package: [
maintainers: [
"Alex Kira",
"zhongwencool",
"Anantha Kumaran"
],
links: %{"GitHub" => ... | 26.875 | 96 | 0.524252 |
85fcc820fe9526b2d65bdb4a88162cdde10ebfc1 | 3,615 | ex | Elixir | lib/geopotion/angle.ex | TattdCodeMonkey/geopotion | 2ccda6ea2d0ad6159c3485f1c521aed43ca5fa37 | [
"MIT"
] | null | null | null | lib/geopotion/angle.ex | TattdCodeMonkey/geopotion | 2ccda6ea2d0ad6159c3485f1c521aed43ca5fa37 | [
"MIT"
] | null | null | null | lib/geopotion/angle.ex | TattdCodeMonkey/geopotion | 2ccda6ea2d0ad6159c3485f1c521aed43ca5fa37 | [
"MIT"
] | null | null | null | defmodule GeoPotion.Angle do
alias __MODULE__
@type units :: :degrees | :radians
@type t :: %__MODULE__{value: number, units: units}
defstruct value: 0.0, units: :degrees
@moduledoc """
Implements structure for holding a decimal angle value in degrees or radians
"""
@o... | 42.034884 | 144 | 0.665007 |
85fd149a396dd32fe2408eaebeb6d26b018b5941 | 82 | exs | Elixir | test_server/test/views/layout_view_test.exs | xaptum-eng/phoenix-channel-client | 6adcfe3cd18c867bbf9c6a7aa6a3ceb5e0b77495 | [
"MIT"
] | 2 | 2020-10-22T14:54:39.000Z | 2020-11-04T21:52:06.000Z | test_server/test/views/layout_view_test.exs | xaptum-eng/phoenix-channel-client | 6adcfe3cd18c867bbf9c6a7aa6a3ceb5e0b77495 | [
"MIT"
] | null | null | null | test_server/test/views/layout_view_test.exs | xaptum-eng/phoenix-channel-client | 6adcfe3cd18c867bbf9c6a7aa6a3ceb5e0b77495 | [
"MIT"
] | null | null | null | defmodule TestServer.LayoutViewTest do
use TestServer.ConnCase, async: true
end
| 20.5 | 38 | 0.829268 |
85fd3f41f4cd7d3cd0725be98f2725c9c82b574f | 837 | ex | Elixir | lib/advent/frequency/finder.ex | omsolem/AdventOfCode2018 | d0b8f3c9d12a0115ceef223eff1b79767deb9466 | [
"Unlicense"
] | 1 | 2018-12-04T19:55:07.000Z | 2018-12-04T19:55:07.000Z | lib/advent/frequency/finder.ex | omsolem/AdventOfCode2018 | d0b8f3c9d12a0115ceef223eff1b79767deb9466 | [
"Unlicense"
] | null | null | null | lib/advent/frequency/finder.ex | omsolem/AdventOfCode2018 | d0b8f3c9d12a0115ceef223eff1b79767deb9466 | [
"Unlicense"
] | null | null | null | defmodule Advent.Frequency.Finder do
def calculate_total() do
Advent.Frequency.Retriver.fetch()
|> Enum.sum()
end
def first_frequency_twice do
first_frequency_twice(0)
end
def first_frequency_twice(current_fequency)
when is_integer(current_fequency) do
first_frequency_twice(current_feq... | 26.15625 | 82 | 0.738351 |
85fd5700c72e41586c4c85fe020111c09c740b80 | 2,755 | ex | Elixir | server/lib/idai_field_server_web/controllers/user_settings_controller.ex | felixwolter/idai-field | 146ab8dbdedb23035a4ba19eac95f02a1fa2329f | [
"Apache-2.0"
] | null | null | null | server/lib/idai_field_server_web/controllers/user_settings_controller.ex | felixwolter/idai-field | 146ab8dbdedb23035a4ba19eac95f02a1fa2329f | [
"Apache-2.0"
] | null | null | null | server/lib/idai_field_server_web/controllers/user_settings_controller.ex | felixwolter/idai-field | 146ab8dbdedb23035a4ba19eac95f02a1fa2329f | [
"Apache-2.0"
] | null | null | null | defmodule IdaiFieldServerWeb.UserSettingsController do
use IdaiFieldServerWeb, :controller
alias IdaiFieldServer.CouchdbDatastore
alias IdaiFieldServer.Accounts
alias IdaiFieldServerWeb.UserAuth
plug :assign_email_and_password_changesets
def edit(conn, _params) do
render(conn, "edit.html")
end
d... | 31.306818 | 89 | 0.664973 |
85fde31b8a933e3ef1dfcc833596df0c1ab5f4b5 | 6,911 | ex | Elixir | lib/aws/generated/code_star_connections.ex | kw7oe/aws-elixir | 4ba60502dde270c83143822c9964018c7770bad7 | [
"Apache-2.0"
] | 341 | 2018-04-04T19:06:19.000Z | 2022-03-25T21:34:23.000Z | lib/aws/generated/code_star_connections.ex | kw7oe/aws-elixir | 4ba60502dde270c83143822c9964018c7770bad7 | [
"Apache-2.0"
] | 82 | 2018-04-04T17:32:33.000Z | 2022-03-24T15:12:04.000Z | lib/aws/generated/code_star_connections.ex | kw7oe/aws-elixir | 4ba60502dde270c83143822c9964018c7770bad7 | [
"Apache-2.0"
] | 76 | 2018-04-10T20:19:44.000Z | 2022-03-15T13:49:19.000Z | # WARNING: DO NOT EDIT, AUTO-GENERATED CODE!
# See https://github.com/aws-beam/aws-codegen for more details.
defmodule AWS.CodeStarConnections do
@moduledoc """
AWS CodeStar Connections
This AWS CodeStar Connections API Reference provides descriptions and usage
examples of the operations and data types for th... | 35.623711 | 90 | 0.725799 |
85fdf3a944e97f2528a31142f06d19dae9b06fcf | 40 | ex | Elixir | apps/web/lib/web.ex | pinpox/branchpage | e478ed9085c06cc3c5680b0ca4dc20eff2e74653 | [
"MIT"
] | 49 | 2021-06-06T05:40:30.000Z | 2021-08-23T04:50:46.000Z | apps/web/lib/web.ex | felipelincoln/mvp | 6f3ca7dfafe884af40883f84f3eb825bb061c974 | [
"MIT"
] | 40 | 2021-01-09T16:50:50.000Z | 2021-10-01T16:27:35.000Z | apps/web/lib/web.ex | felipelincoln/mvp | 6f3ca7dfafe884af40883f84f3eb825bb061c974 | [
"MIT"
] | 5 | 2021-02-20T12:58:39.000Z | 2022-02-01T02:23:23.000Z | defmodule Web do
@moduledoc false
end
| 10 | 18 | 0.775 |
85fdfdf0e6a794e9239a3729bbef33f59d4c4b4b | 240 | exs | Elixir | src/playground.exs | crissilvaeng/prickly-mclean | 074c655b34683d303d3d3cb3650bf29c877d08d9 | [
"MIT"
] | null | null | null | src/playground.exs | crissilvaeng/prickly-mclean | 074c655b34683d303d3d3cb3650bf29c877d08d9 | [
"MIT"
] | null | null | null | src/playground.exs | crissilvaeng/prickly-mclean | 074c655b34683d303d3d3cb3650bf29c877d08d9 | [
"MIT"
] | null | null | null | double = fn x -> x * 2 end
IO.inspect(double.(3))
twice = fn fun -> fn x -> fun.(fun.(x)) end end
IO.inspect(twice.(double).(3))
map = Map.new()
map = Map.put(map, :a, "value for a")
map = Map.put(map, :b, "value for b")
IO.inspect(map)
| 20 | 47 | 0.591667 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.