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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1de6b63c729ba4d38f2f5ab798167362587ebfe3 | 421 | exs | Elixir | test/deriqArt_web/views/error_view_test.exs | Tass-Jomo/Art-for-deriq | df88debc0accab36976516a2c1cc49a98cd1dca4 | [
"MIT"
] | null | null | null | test/deriqArt_web/views/error_view_test.exs | Tass-Jomo/Art-for-deriq | df88debc0accab36976516a2c1cc49a98cd1dca4 | [
"MIT"
] | 1 | 2021-03-10T16:24:36.000Z | 2021-03-10T16:24:36.000Z | test/deriq_art_web/views/error_view_test.exs | Tass-Jomo/deriq_art | 2cd1c5f0de3c11f465e4cb29c2f146836f63ea36 | [
"MIT"
] | null | null | null | defmodule DeriqArtWeb.ErrorViewTest do
use DeriqArtWeb.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(DeriqArtWeb.ErrorView, "404.html", []) == "Not Found"
end
test "renders 500.html" do
... | 28.066667 | 93 | 0.736342 |
1de6c1cb458e6d8fa9f0e4c39ad0c4eadbc856b2 | 2,472 | ex | Elixir | lib/history_web/live/candle_job/show_live.ex | fremantle-industries/history | a8a33744279ff4ca62620785f9a2e9c0c99e4de7 | [
"MIT"
] | 20 | 2021-08-06T01:09:48.000Z | 2022-03-28T18:44:56.000Z | lib/history_web/live/candle_job/show_live.ex | fremantle-industries/history | a8a33744279ff4ca62620785f9a2e9c0c99e4de7 | [
"MIT"
] | 13 | 2021-08-21T21:17:02.000Z | 2022-03-27T06:33:51.000Z | lib/history_web/live/candle_job/show_live.ex | fremantle-industries/history | a8a33744279ff4ca62620785f9a2e9c0c99e4de7 | [
"MIT"
] | 2 | 2021-09-23T11:31:59.000Z | 2022-01-09T16:19:35.000Z | defmodule HistoryWeb.CandleJob.ShowLive do
use HistoryWeb, :live_view
alias History.{CandleHistoryJobs, CandleHistoryChunks}
@impl true
def mount(%{"id" => id}, _session, socket) do
CandleHistoryJobs.subscribe_by_id(id)
CandleHistoryChunks.subscribe_by_job_id(id)
socket =
socket
|> ass... | 25.484536 | 89 | 0.649676 |
1de6d08054778b9f540d968b7f2ad654fb729da8 | 3,169 | ex | Elixir | lib/sanbase_web/graphql/resolvers/chart_configuration/chart_configuration_resolver.ex | santiment/sanbase2 | 9ef6e2dd1e377744a6d2bba570ea6bd477a1db31 | [
"MIT"
] | 81 | 2017-11-20T01:20:22.000Z | 2022-03-05T12:04:25.000Z | lib/sanbase_web/graphql/resolvers/chart_configuration/chart_configuration_resolver.ex | santiment/sanbase2 | 9ef6e2dd1e377744a6d2bba570ea6bd477a1db31 | [
"MIT"
] | 359 | 2017-10-15T14:40:53.000Z | 2022-01-25T13:34:20.000Z | lib/sanbase_web/graphql/resolvers/chart_configuration/chart_configuration_resolver.ex | santiment/sanbase2 | 9ef6e2dd1e377744a6d2bba570ea6bd477a1db31 | [
"MIT"
] | 16 | 2017-11-19T13:57:40.000Z | 2022-02-07T08:13:02.000Z | defmodule SanbaseWeb.Graphql.Resolvers.ChartConfigurationResolver do
import Absinthe.Resolution.Helpers, except: [async: 1]
alias Sanbase.Chart.Configuration
alias Sanbase.Accounts.User
alias SanbaseWeb.Graphql.SanbaseDataloader
require Logger
# Queries
def chart_configuration(_root, %{id: id}, resolu... | 32.670103 | 99 | 0.673714 |
1de6d084e6a9b61256a6742b017e25d9d00045bf | 447 | ex | Elixir | lib/k8s/middleware/stack.ex | thephw/k8s | a4d157ad0191ac49b27ec9197f342d8d4d33e52a | [
"MIT"
] | 226 | 2019-02-03T00:49:32.000Z | 2022-03-30T15:02:22.000Z | lib/k8s/middleware/stack.ex | thephw/k8s | a4d157ad0191ac49b27ec9197f342d8d4d33e52a | [
"MIT"
] | 109 | 2019-01-20T20:39:33.000Z | 2022-03-31T20:21:34.000Z | lib/k8s/middleware/stack.ex | FreedomBen/k8s | 9cfd7bec869cd1f2d8a6c543923f3849710941a5 | [
"MIT"
] | 43 | 2019-02-07T01:18:31.000Z | 2022-03-08T04:15:33.000Z | defmodule K8s.Middleware.Stack do
@moduledoc "`K8s.Middlware` stacks to apply to a `K8s.Conn`"
alias K8s.Middleware.Request
defstruct [:request, :response]
@type t :: %__MODULE__{
request: list(module),
response: list(module)
}
@doc "The default middleware stack"
@spec default ... | 23.526316 | 62 | 0.639821 |
1de707914068ae9caca5dd837c225bdc8c7231cd | 3,485 | exs | Elixir | test/lib/code_corps_web/controllers/organization_github_app_installation_controller_test.exs | fikape/code-corps-api | c21674b0b2a19fa26945c94268db8894420ca181 | [
"MIT"
] | 275 | 2015-06-23T00:20:51.000Z | 2021-08-19T16:17:37.000Z | test/lib/code_corps_web/controllers/organization_github_app_installation_controller_test.exs | fikape/code-corps-api | c21674b0b2a19fa26945c94268db8894420ca181 | [
"MIT"
] | 1,304 | 2015-06-26T02:11:54.000Z | 2019-12-12T21:08:00.000Z | test/lib/code_corps_web/controllers/organization_github_app_installation_controller_test.exs | fikape/code-corps-api | c21674b0b2a19fa26945c94268db8894420ca181 | [
"MIT"
] | 140 | 2016-01-01T18:19:47.000Z | 2020-11-22T06:24:47.000Z | defmodule CodeCorpsWeb.OrganizationGithubAppInstallationControllerTest do
use CodeCorpsWeb.ApiCase, resource_name: :organization_github_app_installation
use Bamboo.Test
@attrs %{role: "contributor"}
describe "index" do
test "lists all resources", %{conn: conn} do
[record_1, record_2] = insert_pair(:... | 36.302083 | 115 | 0.699857 |
1de7613251bdf0253dbc1eabbb6b84a00fd30d82 | 1,054 | exs | Elixir | config/config.exs | ricksonoliveira/safe-finance | 3f318d10239a2e5ceea5a456024a3a90ee726af1 | [
"MIT"
] | 1 | 2021-02-05T18:57:18.000Z | 2021-02-05T18:57:18.000Z | config/config.exs | rik471/safe-finance | 3f318d10239a2e5ceea5a456024a3a90ee726af1 | [
"MIT"
] | 1 | 2021-05-29T15:56:49.000Z | 2021-05-29T15:56:49.000Z | config/config.exs | rik471/safe-finance | 3f318d10239a2e5ceea5a456024a3a90ee726af1 | [
"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 :safe_finance,
ecto_repos: [SafeFinance... | 32.9375 | 86 | 0.775142 |
1de7696296cea8a6238accbe99d4031a9d6cb333 | 178 | ex | Elixir | lib/sipper/file.ex | jordelver/rubytapas | 145b92a33e12c4b7f06d10819dafe309b395642d | [
"MIT"
] | 114 | 2015-09-18T10:55:37.000Z | 2021-02-20T01:49:49.000Z | lib/sipper/file.ex | jordelver/rubytapas | 145b92a33e12c4b7f06d10819dafe309b395642d | [
"MIT"
] | 26 | 2015-09-18T07:03:13.000Z | 2017-11-06T12:35:27.000Z | lib/sipper/file.ex | jordelver/rubytapas | 145b92a33e12c4b7f06d10819dafe309b395642d | [
"MIT"
] | 26 | 2015-09-19T03:46:16.000Z | 2018-10-14T21:39:22.000Z | # Files/attachments in the feed have a numeric ID and a filename.
# Both are required to generate a HTTP-authed URL.
defmodule Sipper.File do
defstruct id: nil, name: nil
end
| 25.428571 | 65 | 0.758427 |
1de778e545baab48b6c82fef3129e555e357cdd5 | 340 | ex | Elixir | lib/hl7/2.4/segments/qak.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | lib/hl7/2.4/segments/qak.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | lib/hl7/2.4/segments/qak.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | defmodule HL7.V2_4.Segments.QAK do
@moduledoc false
require Logger
alias HL7.V2_4.{DataTypes}
use HL7.Segment,
fields: [
segment: nil,
query_tag: nil,
query_response_status: nil,
message_query_name: DataTypes.Ce,
hit_count_total: nil,
this_payload: nil,
hits_remai... | 18.888889 | 39 | 0.658824 |
1de80ebf91bee7f7b7208da666c0cdc36d05df9b | 2,339 | ex | Elixir | lib/mix/tasks/compile/sugar.ex | pct/sugar | 772aa993dec98f26355991168186f30745dbc756 | [
"MIT"
] | 374 | 2015-01-03T00:16:25.000Z | 2022-02-02T21:08:48.000Z | lib/mix/tasks/compile/sugar.ex | pct/sugar | 772aa993dec98f26355991168186f30745dbc756 | [
"MIT"
] | 44 | 2015-01-01T11:38:12.000Z | 2020-11-18T19:48:01.000Z | lib/mix/tasks/compile/sugar.ex | pct/sugar | 772aa993dec98f26355991168186f30745dbc756 | [
"MIT"
] | 34 | 2015-01-04T13:42:41.000Z | 2020-07-18T17:27:27.000Z | defmodule Mix.Tasks.Compile.Sugar do
use Mix.Task
@hidden true
@shortdoc "Compile Sugar source files"
@recursive true
@manifest ".compile.sugar"
@moduledoc """
A task to compile Sugar source files.
## Command line options
* `--force` - forces compilation regardless of mod times
* `--path` - over... | 28.180723 | 81 | 0.637024 |
1de80ef824d736ef28cae1062402213c69f8fac6 | 2,227 | exs | Elixir | test/xdr/transactions/operation_result_code_test.exs | einerzg/stellar_base | 2d10c5fc3b8159efc5de10b5c7c665e3b57b3d8f | [
"MIT"
] | null | null | null | test/xdr/transactions/operation_result_code_test.exs | einerzg/stellar_base | 2d10c5fc3b8159efc5de10b5c7c665e3b57b3d8f | [
"MIT"
] | null | null | null | test/xdr/transactions/operation_result_code_test.exs | einerzg/stellar_base | 2d10c5fc3b8159efc5de10b5c7c665e3b57b3d8f | [
"MIT"
] | null | null | null | defmodule StellarBase.XDR.OperationResultCodeTest do
use ExUnit.Case
alias StellarBase.XDR.OperationResultCode
@codes [
:opINNER,
:opBAD_AUTH,
:opNO_ACCOUNT,
:opNOT_SUPPORTED,
:opTOO_MANY_SUBENTRIES,
:opEXCEEDED_WORK_LIMIT,
:opTOO_MANY_SPONSORING
]
@binaries [
<<0, 0, 0, 0>>... | 29.693333 | 97 | 0.626403 |
1de82044c3cbe16d5c3a7eb6e691d02ae2ab7a3d | 4,444 | ex | Elixir | clients/content/lib/google_api/content/v2/model/order_shipment.ex | kaaboaye/elixir-google-api | 1896784c4342151fd25becd089a5beb323eff567 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/model/order_shipment.ex | kaaboaye/elixir-google-api | 1896784c4342151fd25becd089a5beb323eff567 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/model/order_shipment.ex | kaaboaye/elixir-google-api | 1896784c4342151fd25becd089a5beb323eff567 | [
"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... | 42.730769 | 397 | 0.664716 |
1de8443d423efb4a372b5c48e512a1c0d6c252e9 | 75 | ex | Elixir | web/views/layout_view.ex | parndt/git_ecto_sandbox | 11855a7fc5cdf63594c8fdf2a5baa704d8badb0a | [
"MIT"
] | null | null | null | web/views/layout_view.ex | parndt/git_ecto_sandbox | 11855a7fc5cdf63594c8fdf2a5baa704d8badb0a | [
"MIT"
] | null | null | null | web/views/layout_view.ex | parndt/git_ecto_sandbox | 11855a7fc5cdf63594c8fdf2a5baa704d8badb0a | [
"MIT"
] | null | null | null | defmodule GitEctoSandbox.LayoutView do
use GitEctoSandbox.Web, :view
end
| 18.75 | 38 | 0.826667 |
1de84d83b74d6b0007c06a7c1d1f32223cd2a184 | 10,610 | ex | Elixir | lib/money/exchange_rates.ex | montebrown/money | 4a4dcccb37e00f8cfbf5094b8e089a1c13e923d7 | [
"Apache-2.0"
] | null | null | null | lib/money/exchange_rates.ex | montebrown/money | 4a4dcccb37e00f8cfbf5094b8e089a1c13e923d7 | [
"Apache-2.0"
] | null | null | null | lib/money/exchange_rates.ex | montebrown/money | 4a4dcccb37e00f8cfbf5094b8e089a1c13e923d7 | [
"Apache-2.0"
] | null | null | null | defmodule Money.ExchangeRates do
@moduledoc """
Implements a behaviour and functions to retrieve exchange rates
from an exchange rate service.
Configuration for the exchange rate service is defined
in a `Money.ExchangeRates.Config` struct. A default
configuration is returned by `Money.ExchangeRates.defaul... | 34.786885 | 99 | 0.702451 |
1de88589683ea5920234b9197f1ecbab968a724f | 1,200 | ex | Elixir | lib/brainfark/cmd_state.ex | bbugh/brainfark | 15197d004dc19ffb5da867a8df638614955d7e95 | [
"MIT"
] | null | null | null | lib/brainfark/cmd_state.ex | bbugh/brainfark | 15197d004dc19ffb5da867a8df638614955d7e95 | [
"MIT"
] | null | null | null | lib/brainfark/cmd_state.ex | bbugh/brainfark | 15197d004dc19ffb5da867a8df638614955d7e95 | [
"MIT"
] | null | null | null | defmodule CmdState do
@moduledoc """
The structure for keeping state of the interpreter.
"""
@type t :: %CmdState{code: ZipperList.t, data: ZipperList.t, stack: [],
input: list, output: list}
defstruct code: %ZipperList{},
data: %ZipperList{},
stack: [],
input: [],
... | 26.666667 | 73 | 0.588333 |
1de88ce3d96886077454ca5a3f3089c9fb6234c5 | 154 | exs | Elixir | apps/core/priv/repo/migrations/20220409153124_add_test_name.exs | michaeljguarino/forge | 50ee583ecb4aad5dee4ef08fce29a8eaed1a0824 | [
"Apache-2.0"
] | null | null | null | apps/core/priv/repo/migrations/20220409153124_add_test_name.exs | michaeljguarino/forge | 50ee583ecb4aad5dee4ef08fce29a8eaed1a0824 | [
"Apache-2.0"
] | 2 | 2019-12-13T23:55:50.000Z | 2019-12-17T05:49:58.000Z | apps/core/priv/repo/migrations/20220409153124_add_test_name.exs | michaeljguarino/chartmart | a34c949cc29d6a1ab91c04c5e4f797e6f0daabfc | [
"Apache-2.0"
] | null | null | null | defmodule Core.Repo.Migrations.AddTestName do
use Ecto.Migration
def change do
alter table(:tests) do
add :name, :string
end
end
end
| 15.4 | 45 | 0.688312 |
1de89da33582cbeccc71fc85e2f1bfa74cc9a717 | 1,646 | ex | Elixir | farmbot_firmware/lib/farmbot_firmware/side_effects.ex | SeppPenner/farmbot_os | 39ba5c5880f8aef71792e2c009514bed1177089c | [
"MIT"
] | 1 | 2019-08-06T11:51:48.000Z | 2019-08-06T11:51:48.000Z | farmbot_firmware/lib/farmbot_firmware/side_effects.ex | SeppPenner/farmbot_os | 39ba5c5880f8aef71792e2c009514bed1177089c | [
"MIT"
] | null | null | null | farmbot_firmware/lib/farmbot_firmware/side_effects.ex | SeppPenner/farmbot_os | 39ba5c5880f8aef71792e2c009514bed1177089c | [
"MIT"
] | null | null | null | defmodule FarmbotFirmware.SideEffects do
@moduledoc """
Callback functions that the firmware process will call on certain events.
"""
alias FarmbotFirmware.{GCODE, Param}
@type axis :: :x | :y | :z
@doc "While in state `:boot`, the firmware needs to load its params."
@callback load_params :: [{Param.t(... | 43.315789 | 97 | 0.650061 |
1de8a2d384945664378c3cc828b9e03d08efce4c | 894 | ex | Elixir | lib/liquio/application.ex | zan-kusterle/Liquio | 341556529633f9a99ad95b502f182d6644b9b1ed | [
"MIT"
] | 5 | 2016-09-12T08:31:14.000Z | 2018-03-12T23:40:08.000Z | lib/liquio/application.ex | zan-kusterle/Liquio | 341556529633f9a99ad95b502f182d6644b9b1ed | [
"MIT"
] | null | null | null | lib/liquio/application.ex | zan-kusterle/Liquio | 341556529633f9a99ad95b502f182d6644b9b1ed | [
"MIT"
] | null | null | null | defmodule Liquio.Application 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
children = [
# Start the endpoint when the application starts
supervisor(LiquioWeb.E... | 35.76 | 71 | 0.694631 |
1de8ae5f369f77bfc6a2883c7fb0666d98a40fb6 | 1,170 | exs | Elixir | test/bacen/sta/middlewares/xml_middleware_test.exs | aleDsz/bacen_sta | 372d05db8a1f2aa97bcec00b033481a9bc64f346 | [
"MIT"
] | 1 | 2021-11-28T21:52:29.000Z | 2021-11-28T21:52:29.000Z | test/bacen/sta/middlewares/xml_middleware_test.exs | aleDsz/bacen_sta | 372d05db8a1f2aa97bcec00b033481a9bc64f346 | [
"MIT"
] | 7 | 2021-11-18T00:39:23.000Z | 2022-03-24T08:25:46.000Z | test/bacen/sta/middlewares/xml_middleware_test.exs | aleDsz/bacen_sta | 372d05db8a1f2aa97bcec00b033481a9bc64f346 | [
"MIT"
] | null | null | null | defmodule Bacen.STA.XMLMiddlewareTest do
use Bacen.STA.EctoCase
import Bacen.STA.XMLMiddleware
alias Bacen.STA.ProtocolSerializer
alias Tesla.Env
describe "call/1" do
test "sends without encoding, decodes on response" do
protocol = build(:protocol)
assert {:ok, xml} = ProtocolSerializer.se... | 23.4 | 97 | 0.576923 |
1de8e66b25fcac34f8bee035c1eaae384c3686b0 | 3,617 | ex | Elixir | apps/rtmp/lib/rtmp/handshake/old_handshake_format.ex | Kabie/elixir-media-libs | 9750c6dcdffdf8014183a6a4f303c5d0d658f062 | [
"MIT"
] | 75 | 2016-12-23T14:37:18.000Z | 2021-04-26T14:07:20.000Z | apps/rtmp/lib/rtmp/handshake/old_handshake_format.ex | Kabie/elixir-media-libs | 9750c6dcdffdf8014183a6a4f303c5d0d658f062 | [
"MIT"
] | 19 | 2016-12-22T03:20:43.000Z | 2020-06-11T12:10:37.000Z | apps/rtmp/lib/rtmp/handshake/old_handshake_format.ex | Kabie/elixir-media-libs | 9750c6dcdffdf8014183a6a4f303c5d0d658f062 | [
"MIT"
] | 3 | 2018-03-29T06:40:40.000Z | 2019-02-13T09:37:19.000Z | defmodule Rtmp.Handshake.OldHandshakeFormat do
@moduledoc """
Functions to parse and validate RTMP handshakes as specified in the
official RTMP specification.
This handshake format does *NOT* work for h.264 video.
"""
@behaviour Rtmp.Handshake
require Logger
@type state :: %__MODULE__.State{}
def... | 28.936 | 97 | 0.616257 |
1de8f832e2c8efb43697459835591d9d736ae2e5 | 2,094 | ex | Elixir | lib/rocketseat_nlw_heat_impulse_elixir_web.ex | jobsonita/rocketseat_nlw_heat_impulse_elixir | 13b5dc0fe2137c1acbc42afee1d40c43e7f9883f | [
"MIT"
] | null | null | null | lib/rocketseat_nlw_heat_impulse_elixir_web.ex | jobsonita/rocketseat_nlw_heat_impulse_elixir | 13b5dc0fe2137c1acbc42afee1d40c43e7f9883f | [
"MIT"
] | null | null | null | lib/rocketseat_nlw_heat_impulse_elixir_web.ex | jobsonita/rocketseat_nlw_heat_impulse_elixir | 13b5dc0fe2137c1acbc42afee1d40c43e7f9883f | [
"MIT"
] | null | null | null | defmodule RocketseatNlwHeatImpulseElixirWeb 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 RocketseatNlwHeatImpulseElixirWeb, :controller
use RocketseatNlwHeatImpulseElixirWeb, :view
... | 26.506329 | 76 | 0.729704 |
1de8fb2dbe96367435dbd3df508354647050d6b6 | 1,223 | ex | Elixir | web/views/error_helpers.ex | frbaroni/budget | c8bd78eff0607f98ffa49265d9485d0c85a28ede | [
"MIT"
] | null | null | null | web/views/error_helpers.ex | frbaroni/budget | c8bd78eff0607f98ffa49265d9485d0c85a28ede | [
"MIT"
] | null | null | null | web/views/error_helpers.ex | frbaroni/budget | c8bd78eff0607f98ffa49265d9485d0c85a28ede | [
"MIT"
] | null | null | null | defmodule Budget.ErrorHelpers do
@moduledoc """
Conveniences for translating and building error messages.
"""
use Phoenix.HTML
@doc """
Generates tag for inlined form input errors.
"""
def error_tag(form, field) do
if error = form.errors[field] do
content_tag :span, translate_error(error), c... | 29.829268 | 72 | 0.666394 |
1de90065ef88272debd2da439498882dc5e12d20 | 1,669 | ex | Elixir | lib/swedbankpay_checkout/client/psp/payment_orders/post_request/payment_order_request.ex | hooplab/swedbank-pay-checkout-elixir | 91c9034d898907d15c513623519382a0648212c3 | [
"MIT"
] | null | null | null | lib/swedbankpay_checkout/client/psp/payment_orders/post_request/payment_order_request.ex | hooplab/swedbank-pay-checkout-elixir | 91c9034d898907d15c513623519382a0648212c3 | [
"MIT"
] | null | null | null | lib/swedbankpay_checkout/client/psp/payment_orders/post_request/payment_order_request.ex | hooplab/swedbank-pay-checkout-elixir | 91c9034d898907d15c513623519382a0648212c3 | [
"MIT"
] | null | null | null | defmodule SwedbankpayCheckout.Client.Psp.PaymentOrders.PostRequest.PaymentOrderRequest do
@moduledoc """
"""
@typedoc """
.payment_order.operation
"""
@type op :: :Purchase
@enforce_keys [
:operation,
:currency,
:amount,
:vat_amount,
:description,
:generate_recurrence_token,
... | 26.078125 | 96 | 0.622528 |
1de91945d889b76d5c5d01add1b25bc76210c19a | 945 | exs | Elixir | config/config.exs | cdale77/bart_scrape | 8696b303f1111a29cfdbea80f15823da3ea5747d | [
"MIT"
] | null | null | null | config/config.exs | cdale77/bart_scrape | 8696b303f1111a29cfdbea80f15823da3ea5747d | [
"MIT"
] | null | null | null | config/config.exs | cdale77/bart_scrape | 8696b303f1111a29cfdbea80f15823da3ea5747d | [
"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 :bart_scrape,
ecto_repos: [BartScrape.Re... | 33.75 | 86 | 0.766138 |
1de929c8fbb2d627c8054359dff14fbd6777bb82 | 2,310 | exs | Elixir | test/whatChat_web/controllers/session_controller_test.exs | Perfect-SoftwareEngineer/vue-elegant-chat | 4656bea123a6454584a163260899f0b4e59e073a | [
"MIT",
"BSD-3-Clause"
] | 52 | 2019-02-01T16:34:34.000Z | 2022-03-24T12:02:47.000Z | test/whatChat_web/controllers/session_controller_test.exs | mbuala/WhatChat | 44851a8b3afe0a8825b5e53e327c2f777065a60c | [
"MIT"
] | 30 | 2019-07-19T00:56:47.000Z | 2022-03-26T01:41:41.000Z | test/whatChat_web/controllers/session_controller_test.exs | mbuala/WhatChat | 44851a8b3afe0a8825b5e53e327c2f777065a60c | [
"MIT"
] | 23 | 2019-02-02T10:32:09.000Z | 2022-01-24T02:00:29.000Z | defmodule WhatChatWeb.SessionControllerTest do
use WhatChatWeb.ConnCase
alias WhatChat.Accounts
@valid_login_attrs %{
email: "someemail@whatchat.cm",
password: "SomePassword"
}
@invalid_login_attrs %{email: "nil", password: "nil"}
@create_attrs %{
email: "someemail@whatch... | 32.083333 | 100 | 0.558874 |
1de954e82aaaa31ab4ac844401bf430730df34ca | 4,637 | ex | Elixir | clients/tool_results/lib/google_api/tool_results/v1beta3/request_builder.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/tool_results/lib/google_api/tool_results/v1beta3/request_builder.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/tool_results/lib/google_api/tool_results/v1beta3/request_builder.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | 1 | 2018-07-28T20:50:50.000Z | 2018-07-28T20:50:50.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 28.801242 | 137 | 0.670045 |
1de9581f9d32b50914596e9e48527e6151b0fb9b | 199 | exs | Elixir | test/controllers/page_controller_test.exs | robinsonj/ptdb | a804b3eabd1026342089be6ed951642ee0a74dcb | [
"MIT"
] | null | null | null | test/controllers/page_controller_test.exs | robinsonj/ptdb | a804b3eabd1026342089be6ed951642ee0a74dcb | [
"MIT"
] | null | null | null | test/controllers/page_controller_test.exs | robinsonj/ptdb | a804b3eabd1026342089be6ed951642ee0a74dcb | [
"MIT"
] | null | null | null | defmodule PokeTeamDb.PageControllerTest do
use PokeTeamDb.ConnCase
test "GET /", %{conn: conn} do
conn = get conn, "/"
assert html_response(conn, 200) =~ "Welcome to Phoenix!"
end
end
| 22.111111 | 60 | 0.683417 |
1de99ba5cc8133eca7ca36d8d0574c659043b620 | 2,416 | ex | Elixir | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_risk_analysis_job_config.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_risk_analysis_job_config.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_risk_analysis_job_config.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 ... | 43.927273 | 178 | 0.756623 |
1de9b0e2c96e2cc655294e9cacaee9f6df44b65b | 843 | ex | Elixir | Microsoft.Azure.Management.Network/lib/microsoft/azure/management/network/model/http_configuration.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | 4 | 2018-09-29T03:43:15.000Z | 2021-04-01T18:30:46.000Z | Microsoft.Azure.Management.Network/lib/microsoft/azure/management/network/model/http_configuration.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | null | null | null | Microsoft.Azure.Management.Network/lib/microsoft/azure/management/network/model/http_configuration.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | null | null | null | # NOTE: This class is auto generated by the swagger code generator program.
# https://github.com/swagger-api/swagger-codegen.git
# Do not edit the class manually.
defmodule Microsoft.Azure.Management.Network.Model.HttpConfiguration do
@moduledoc """
HTTP configuration of the connectivity check.
"""
@derive [P... | 26.34375 | 99 | 0.714116 |
1de9d66530ac0befe5e7a24892c0d783555638df | 1,929 | ex | Elixir | test/support/digest_test_helpers.ex | willfore/bootleg_phoenix | ec49516ff9b3d3e2c3ad13fa6026fb614e8c527e | [
"MIT"
] | null | null | null | test/support/digest_test_helpers.ex | willfore/bootleg_phoenix | ec49516ff9b3d3e2c3ad13fa6026fb614e8c527e | [
"MIT"
] | null | null | null | test/support/digest_test_helpers.ex | willfore/bootleg_phoenix | ec49516ff9b3d3e2c3ad13fa6026fb614e8c527e | [
"MIT"
] | null | null | null | defmodule BootlegPhoenix.DigestTestHelpers do
@moduledoc false
@fixture_version_r ~r{_(?<major>\d+)_(?<minor>\d+)$}
defmacro digest_test(fixture) do
version = Regex.named_captures(@fixture_version_r, to_string(fixture))
version_string = version["major"] <> "." <> version["minor"]
quote do
@tag ... | 35.072727 | 98 | 0.557284 |
1de9fb33a7ad5c0ef3a1e1f5ea5c347f6a4aa220 | 799 | ex | Elixir | apps/routes/lib/routes.ex | noisecapella/dotcom | d5ef869412102d2230fac3dcc216f01a29726227 | [
"MIT"
] | 42 | 2019-05-29T16:05:30.000Z | 2021-08-09T16:03:37.000Z | apps/routes/lib/routes.ex | noisecapella/dotcom | d5ef869412102d2230fac3dcc216f01a29726227 | [
"MIT"
] | 872 | 2019-05-29T17:55:50.000Z | 2022-03-30T09:28:43.000Z | apps/routes/lib/routes.ex | noisecapella/dotcom | d5ef869412102d2230fac3dcc216f01a29726227 | [
"MIT"
] | 12 | 2019-07-01T18:33:21.000Z | 2022-03-10T02:13:57.000Z | defmodule Routes 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 = [
# Define workers and child supervisors to be supervised
# worker(Route... | 25.774194 | 67 | 0.654568 |
1dea05ba2bbc6d154548d5615fc3d4b1cba018f0 | 926 | exs | Elixir | apps/web_api/test/web_api_web/channels/api_channel_test.exs | makerdao/qa_backend_gateway | 38e9a3f3f4b66212f1ee9d38b3b698a2a1f9a809 | [
"Apache-2.0"
] | 1 | 2020-10-23T19:25:27.000Z | 2020-10-23T19:25:27.000Z | apps/web_api/test/web_api_web/channels/api_channel_test.exs | makerdao/qa_backend_gateway | 38e9a3f3f4b66212f1ee9d38b3b698a2a1f9a809 | [
"Apache-2.0"
] | 5 | 2019-01-11T11:48:08.000Z | 2019-01-16T17:29:23.000Z | apps/web_api/test/web_api_web/channels/api_channel_test.exs | makerdao/qa_backend_gateway | 38e9a3f3f4b66212f1ee9d38b3b698a2a1f9a809 | [
"Apache-2.0"
] | 7 | 2019-10-09T05:49:52.000Z | 2022-03-23T16:48:45.000Z | defmodule Staxx.WebApiWeb.ApiChannelTest do
use Staxx.WebApiWeb.ChannelCase
alias Staxx.WebApiWeb.UserSocket
alias Staxx.WebApiWeb.ApiChannel
@moduletag :api
@moduletag :api_channel
setup do
{:ok, _, socket} =
UserSocket
|> socket("user_id", %{some: :assign})
|> subscribe_and_join(Ap... | 26.457143 | 81 | 0.657667 |
1dea0623b0e0be944acf9aefbd38f3e5de0e74d9 | 4,411 | ex | Elixir | clients/game_services/lib/google_api/game_services/v1beta/model/binding.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/game_services/lib/google_api/game_services/v1beta/model/binding.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/game_services/lib/google_api/game_services/v1beta/model/binding.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 78.767857 | 1,970 | 0.747223 |
1dea0bb6d2a6ca0cfcd5fd6d8f1cb70e1854e9fc | 1,828 | exs | Elixir | phx/praxkit/mix.exs | zoosky/praxkit | 4b4fe1af274e79e1a4f728a94ff58468f0fe13e0 | [
"Apache-2.0"
] | null | null | null | phx/praxkit/mix.exs | zoosky/praxkit | 4b4fe1af274e79e1a4f728a94ff58468f0fe13e0 | [
"Apache-2.0"
] | 5 | 2021-02-28T14:39:51.000Z | 2021-02-28T14:43:10.000Z | phx/praxkit/mix.exs | zoosky/praxkit | 4b4fe1af274e79e1a4f728a94ff58468f0fe13e0 | [
"Apache-2.0"
] | 1 | 2018-09-19T17:53:28.000Z | 2018-09-19T17:53:28.000Z | defmodule Praxkit.MixProject do
use Mix.Project
def project do
[
app: :praxkit,
version: "0.1.0",
elixir: "~> 1.7",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix, :gettext] ++ Mix.compilers(),
start_permanent: Mix.env() == :prod,
aliases: aliases(),
... | 27.69697 | 84 | 0.579869 |
1dea3ff7de0a19881a560dac003a504c351855b3 | 898 | ex | Elixir | lib/hpdf/receiver.ex | garrinmf/hpdf | 9269f69006520b0282e6d98ddd074ec3cfe87751 | [
"MIT"
] | 10 | 2018-08-13T07:47:39.000Z | 2021-09-19T22:10:28.000Z | lib/hpdf/receiver.ex | garrinmf/hpdf | 9269f69006520b0282e6d98ddd074ec3cfe87751 | [
"MIT"
] | 2 | 2018-03-01T09:19:49.000Z | 2019-01-20T02:58:12.000Z | lib/hpdf/receiver.ex | garrinmf/hpdf | 9269f69006520b0282e6d98ddd074ec3cfe87751 | [
"MIT"
] | 2 | 2018-03-01T08:36:00.000Z | 2018-03-19T20:54:53.000Z | defmodule HPDF.Receiver do
@moduledoc false
# Receives messages from the raw web socket.
require Logger
def start_link({socket, owning_pid}, _opts \\ []) do
pid = spawn_link(__MODULE__, :listen, [socket, owning_pid, %{}])
{:ok, pid}
end
def listen(socket, owning_pid, state) do
case Socket.Web... | 29.933333 | 68 | 0.609131 |
1dea423c858501158cffb5636cd083ddb235b373 | 2,423 | exs | Elixir | test/controllers/project_controller_test.exs | nsarno/winter | a65a6aa61d2b1af39277338277f8b3f479643939 | [
"MIT"
] | 3 | 2015-08-24T11:44:19.000Z | 2016-10-01T21:37:05.000Z | test/controllers/project_controller_test.exs | nsarno/winter | a65a6aa61d2b1af39277338277f8b3f479643939 | [
"MIT"
] | null | null | null | test/controllers/project_controller_test.exs | nsarno/winter | a65a6aa61d2b1af39277338277f8b3f479643939 | [
"MIT"
] | null | null | null | defmodule Storm.ProjectControllerTest do
use Storm.ConnCase
alias Storm.Project
@valid_attrs %{name: "some project"}
@invalid_attrs %{name: nil}
setup do
user = factory(%Storm.User{}, :insert)
token = Storm.AuthToken.generate_token(user)
project = factory(%Project{user_id: user.id}, :insert)
... | 35.115942 | 116 | 0.680149 |
1dea8bc08e7416c0e797b37d02b2df937d5a9282 | 90 | exs | Elixir | divvy_tracker/test/divvy_tracker_web/views/page_view_test.exs | tpennock/divvy-tracker-app | 6896a19fd7380a827573231ff56ead8db04c66bf | [
"MIT"
] | null | null | null | divvy_tracker/test/divvy_tracker_web/views/page_view_test.exs | tpennock/divvy-tracker-app | 6896a19fd7380a827573231ff56ead8db04c66bf | [
"MIT"
] | 3 | 2018-12-11T00:07:41.000Z | 2018-12-11T00:09:36.000Z | divvy_tracker/test/divvy_tracker_web/views/page_view_test.exs | tpennock/divvy-tracker-app | 6896a19fd7380a827573231ff56ead8db04c66bf | [
"MIT"
] | null | null | null | defmodule DivvyTrackerWeb.PageViewTest do
use DivvyTrackerWeb.ConnCase, async: true
end
| 22.5 | 43 | 0.844444 |
1dea8eec4f00db24e5bc8ab88724ae2643913adf | 3,908 | exs | Elixir | test/acceptance/ast/links_images/img_test.exs | Hexlet/earmark | 3c465e5bc2473acd952721811002dad4bb6f9109 | [
"Apache-1.1"
] | null | null | null | test/acceptance/ast/links_images/img_test.exs | Hexlet/earmark | 3c465e5bc2473acd952721811002dad4bb6f9109 | [
"Apache-1.1"
] | null | null | null | test/acceptance/ast/links_images/img_test.exs | Hexlet/earmark | 3c465e5bc2473acd952721811002dad4bb6f9109 | [
"Apache-1.1"
] | 1 | 2020-03-31T19:53:15.000Z | 2020-03-31T19:53:15.000Z | defmodule Acceptance.Ast.LinkImages.ImgTest do
use ExUnit.Case, async: true
import Support.Helpers, only: [as_ast: 1, parse_html: 1]
@moduletag :ast
describe "Image reference definitions" do
test "img with title" do
markdown = "[foo]: /url \"title\"\n\n![foo]\n"
html = "<p><img src=\"/url\" ... | 28.115108 | 81 | 0.517912 |
1deab4c730640ce7759a5482fc8ce7194238e186 | 318 | exs | Elixir | priv/config_storage/migrations/20180412000009_fix_persistent_regimens_table.exs | pdgonzalez872/farmbot_os | a444248f05ee8f4fe57f6a4865b942131960f76c | [
"MIT"
] | 2 | 2018-08-01T23:07:52.000Z | 2018-10-17T12:49:21.000Z | priv/config_storage/migrations/20180412000009_fix_persistent_regimens_table.exs | pdgonzalez872/farmbot_os | a444248f05ee8f4fe57f6a4865b942131960f76c | [
"MIT"
] | null | null | null | priv/config_storage/migrations/20180412000009_fix_persistent_regimens_table.exs | pdgonzalez872/farmbot_os | a444248f05ee8f4fe57f6a4865b942131960f76c | [
"MIT"
] | 1 | 2017-07-22T21:51:14.000Z | 2017-07-22T21:51:14.000Z | defmodule Farmbot.System.ConfigStorage.Migrations.FixPersistentRegimensTable do
use Ecto.Migration
alias Farmbot.System.ConfigStorage
alias ConfigStorage.PersistentRegimen
import Ecto.Query
def change do
ConfigStorage.delete_all(from pr in PersistentRegimen, where: is_nil(pr.farm_event_id))
end
end
| 26.5 | 91 | 0.820755 |
1deb09aef6516d10f3fe532540d4377a9e5e0f58 | 492 | exs | Elixir | config/test.exs | sneako/distillery-aws-example | 75cd687791701aee17a19e48978a06495b102037 | [
"Apache-2.0"
] | null | null | null | config/test.exs | sneako/distillery-aws-example | 75cd687791701aee17a19e48978a06495b102037 | [
"Apache-2.0"
] | null | null | null | config/test.exs | sneako/distillery-aws-example | 75cd687791701aee17a19e48978a06495b102037 | [
"Apache-2.0"
] | null | null | null | use Mix.Config
# We don't run a server during test. If one is required,
# you can enable the server option below.
config :distillery_example, ExampleWeb.Endpoint,
http: [port: 4001],
server: false
# Print only warnings and errors during test
config :logger, level: :warn
# Configure your database
config :distille... | 25.894737 | 56 | 0.75 |
1deb13f041f310d6bc3398114ffc57ac4169b9c5 | 2,228 | ex | Elixir | clients/redis/lib/google_api/redis/v1/model/maintenance_schedule.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/redis/lib/google_api/redis/v1/model/maintenance_schedule.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/redis/lib/google_api/redis/v1/model/maintenance_schedule.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 39.785714 | 179 | 0.720826 |
1deb160be2b99b16ae1b3b9e537e42114dc14965 | 2,024 | exs | Elixir | apps/ello_v3/test/ello_v3/resolvers/user_love_stream_test.exs | ello/apex | 4acb096b3ce172ff4ef9a51e5d068d533007b920 | [
"MIT"
] | 16 | 2017-06-21T21:31:20.000Z | 2021-05-09T03:23:26.000Z | apps/ello_v3/test/ello_v3/resolvers/user_love_stream_test.exs | ello/apex | 4acb096b3ce172ff4ef9a51e5d068d533007b920 | [
"MIT"
] | 25 | 2017-06-07T12:18:28.000Z | 2018-06-08T13:27:43.000Z | apps/ello_v3/test/ello_v3/resolvers/user_love_stream_test.exs | ello/apex | 4acb096b3ce172ff4ef9a51e5d068d533007b920 | [
"MIT"
] | 3 | 2018-06-14T15:34:07.000Z | 2022-02-28T21:06:13.000Z | defmodule Ello.V3.Resolvers.UserLoveStreamTest do
use Ello.V3.Case
setup do
Ecto.Adapters.SQL.Sandbox.mode(Repo, {:shared, self()})
:ok
end
@query """
query($username: String!, $perPage: String, $before: String) {
userLoveStream(username: $username, perPage: $perPage, before: $before) {
... | 43.06383 | 119 | 0.603261 |
1deb530302fabf05af034426c8fb9ff85ce73992 | 7,093 | ex | Elixir | clients/area120_tables/lib/google_api/area120_tables/v1alpha1/api/workspaces.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/area120_tables/lib/google_api/area120_tables/v1alpha1/api/workspaces.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/area120_tables/lib/google_api/area120_tables/v1alpha1/api/workspaces.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.97351 | 270 | 0.644438 |
1deb7e9272e14038ab96b8e4220cb5247b8e2761 | 1,575 | ex | Elixir | clients/big_query/lib/google_api/big_query/v2/model/int_array_hparam_search_space.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/big_query/lib/google_api/big_query/v2/model/int_array_hparam_search_space.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/big_query/lib/google_api/big_query/v2/model/int_array_hparam_search_space.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"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.510638 | 135 | 0.747302 |
1deb98284af8dbfa139a56ecacf73309ce1c2797 | 8,792 | ex | Elixir | clients/double_click_search/lib/google_api/double_click_search/v2/api/reports.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/double_click_search/lib/google_api/double_click_search/v2/api/reports.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/double_click_search/lib/google_api/double_click_search/v2/api/reports.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | 1 | 2018-07-28T20:50:50.000Z | 2018-07-28T20:50:50.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 43.741294 | 217 | 0.687671 |
1debb4c1cb06476d02d9429dc045d61732ef0633 | 3,484 | ex | Elixir | lib/bsv/contract/p2rph.ex | libitx/bsv-ex | 95070d645fd61f9ea6ba8758e2e1b2367d0f9320 | [
"Apache-2.0"
] | 26 | 2019-08-31T13:39:50.000Z | 2022-01-18T10:23:26.000Z | lib/bsv/contract/p2rph.ex | libitx/bsv-ex | 95070d645fd61f9ea6ba8758e2e1b2367d0f9320 | [
"Apache-2.0"
] | 4 | 2020-04-24T18:24:01.000Z | 2021-06-15T10:59:33.000Z | lib/bsv/contract/p2rph.ex | libitx/bsv-ex | 95070d645fd61f9ea6ba8758e2e1b2367d0f9320 | [
"Apache-2.0"
] | 4 | 2020-05-21T15:27:31.000Z | 2021-06-13T05:26:47.000Z | defmodule BSV.Contract.P2RPH do
@moduledoc """
Pay to R-Puzzle Hash contract.
P2RPH scripts are used to lock Bitcoin to a hash puzzle based on the R value
of an ECDSA signature. The Bitcoin can later be unlocked with knowledge of the
corresponding K value used in that signature.
The technique allows for t... | 27.650794 | 221 | 0.585821 |
1debb5897efa7734a3f09c612e55d27becf6a0cc | 5,284 | ex | Elixir | apps/fz_http/lib/fz_http/users/user.ex | mdp/firezone | 53d8f0803a7ef005fdca3ae8c6fa9c3483ae5cbc | [
"Apache-2.0"
] | null | null | null | apps/fz_http/lib/fz_http/users/user.ex | mdp/firezone | 53d8f0803a7ef005fdca3ae8c6fa9c3483ae5cbc | [
"Apache-2.0"
] | null | null | null | apps/fz_http/lib/fz_http/users/user.ex | mdp/firezone | 53d8f0803a7ef005fdca3ae8c6fa9c3483ae5cbc | [
"Apache-2.0"
] | null | null | null | defmodule FzHttp.Users.User do
@moduledoc """
Represents a User.
"""
@min_password_length 12
@max_password_length 64
use Ecto.Schema
import Ecto.Changeset
import FzHttp.Users.PasswordHelpers
alias FzHttp.Devices.Device
schema "users" do
field :uuid, Ecto.UUID, autogenerate: true
field :r... | 29.519553 | 94 | 0.653671 |
1debc01c3e707f347e3a88dca947d6122f8c5cad | 1,352 | exs | Elixir | mix.exs | jgelens/b2_client | 568d33921b841ff6f363ab19bf79e13541e07557 | [
"MIT"
] | 12 | 2016-06-12T06:56:36.000Z | 2021-12-09T21:58:25.000Z | mix.exs | jgelens/b2_client | 568d33921b841ff6f363ab19bf79e13541e07557 | [
"MIT"
] | 9 | 2016-07-18T14:16:07.000Z | 2021-12-05T02:07:57.000Z | mix.exs | jgelens/b2_client | 568d33921b841ff6f363ab19bf79e13541e07557 | [
"MIT"
] | 12 | 2016-07-18T14:05:48.000Z | 2021-12-06T22:00:04.000Z | defmodule B2Client.Mixfile do
use Mix.Project
def project do
[
app: :b2_client,
version: "0.0.4",
elixir: "~> 1.4",
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
deps: deps(),
source_url: "https://github.com/keichan34/b2_client",
docs: ... | 19.594203 | 61 | 0.482249 |
1debfe75495273b084bc4ee53406d6c13949e94f | 63 | ex | Elixir | api_sample/web/views/page_view.ex | saiidalhalawi/phoenix-ansible | d03843256c20b74fd69bb48f058825785dd7fea2 | [
"Apache-2.0"
] | null | null | null | api_sample/web/views/page_view.ex | saiidalhalawi/phoenix-ansible | d03843256c20b74fd69bb48f058825785dd7fea2 | [
"Apache-2.0"
] | null | null | null | api_sample/web/views/page_view.ex | saiidalhalawi/phoenix-ansible | d03843256c20b74fd69bb48f058825785dd7fea2 | [
"Apache-2.0"
] | null | null | null | defmodule ApiSample.PageView do
use ApiSample.Web, :view
end
| 15.75 | 31 | 0.793651 |
1dec012697d13fa2baf95160f64b9dbd0665c25d | 20,250 | ex | Elixir | lib/elixir/lib/code.ex | mk/elixir | 2b2c66ecf7b1cc2167cae9cc3e88f950994223f1 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/code.ex | mk/elixir | 2b2c66ecf7b1cc2167cae9cc3e88f950994223f1 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/code.ex | mk/elixir | 2b2c66ecf7b1cc2167cae9cc3e88f950994223f1 | [
"Apache-2.0"
] | null | null | null | defmodule Code do
@moduledoc """
Utilities for managing code compilation, code evaluation and code loading.
This module complements Erlang's [`:code` module](http://www.erlang.org/doc/man/code.html)
to add behaviour which is specific to Elixir. Almost all of the functions in this module
have global side effe... | 30.405405 | 110 | 0.678617 |
1dec0ad2e4f97ee6bc5025587df7a819aa2e4b83 | 495 | ex | Elixir | lib/locations_web/views/error_view.ex | antp/locations | fe765fe78b896fe02e11b92e8d21e97f00744384 | [
"MIT"
] | 14 | 2020-09-16T14:10:35.000Z | 2021-10-30T22:05:48.000Z | lib/locations_web/views/error_view.ex | antp/locations | fe765fe78b896fe02e11b92e8d21e97f00744384 | [
"MIT"
] | null | null | null | lib/locations_web/views/error_view.ex | antp/locations | fe765fe78b896fe02e11b92e8d21e97f00744384 | [
"MIT"
] | null | null | null | defmodule LocationsWeb.ErrorView do
use LocationsWeb, :view
# If you want to customize a particular status code
# for a certain format, you may uncomment below.
# def render("500.html", _assigns) do
# "Internal Server Error"
# end
# By default, Phoenix returns the status message from
# the template ... | 29.117647 | 61 | 0.737374 |
1dec2be0b0864c10000e72ec6873e8ae157cc00e | 9,410 | exs | Elixir | lib/mix/test/test_helper.exs | ShPakvel/elixir | 75e5609364a2358f7eb475478ec8bdec98ddf07c | [
"Apache-2.0"
] | null | null | null | lib/mix/test/test_helper.exs | ShPakvel/elixir | 75e5609364a2358f7eb475478ec8bdec98ddf07c | [
"Apache-2.0"
] | null | null | null | lib/mix/test/test_helper.exs | ShPakvel/elixir | 75e5609364a2358f7eb475478ec8bdec98ddf07c | [
"Apache-2.0"
] | null | null | null | Mix.start()
Mix.shell(Mix.Shell.Process)
Application.put_env(:mix, :colors, enabled: false)
Logger.remove_backend(:console)
Application.put_env(:logger, :backends, [])
os_exclude = if match?({:win32, _}, :os.type()), do: [unix: true], else: [windows: true]
epmd_exclude = if match?({:win32, _}, :os.type()), do: [epmd:... | 22.141176 | 88 | 0.62593 |
1dec2e6ce6ae7a60be211fd1329679562ecf2001 | 1,768 | ex | Elixir | lib/seasonal.ex | lee-dohm/seasonal | 37eb03a6289d15f593dd8457ad7f4e8c96ba9239 | [
"MIT"
] | 2 | 2016-04-12T21:46:52.000Z | 2016-12-02T20:02:47.000Z | lib/seasonal.ex | lee-dohm/seasonal | 37eb03a6289d15f593dd8457ad7f4e8c96ba9239 | [
"MIT"
] | null | null | null | lib/seasonal.ex | lee-dohm/seasonal | 37eb03a6289d15f593dd8457ad7f4e8c96ba9239 | [
"MIT"
] | null | null | null | defmodule Seasonal do
@moduledoc """
A simple worker pool.
Allows for the creation of worker pools with a fixed number of concurrent
workers. Pools can be named or unnamed. Named pools can also be supervised. Jobs
are queued as either anonymous functions or `{module, function, arguments}`
tuples. Exception... | 33.358491 | 118 | 0.719457 |
1dec7e0405fe14720b3ea453c2afff78436d49a0 | 5,807 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/advertiser.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/v34/model/advertiser.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/v34/model/advertiser.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... | 61.776596 | 640 | 0.72447 |
1decf3151409a029a2269832dae66362eee2d7a0 | 1,664 | ex | Elixir | eal/alert_mailer.ex | sylph01/antikythera | 47a93f3d4c70975f7296725c9bde2ea823867436 | [
"Apache-2.0"
] | 144 | 2018-04-27T07:24:49.000Z | 2022-03-15T05:19:37.000Z | eal/alert_mailer.ex | sylph01/antikythera | 47a93f3d4c70975f7296725c9bde2ea823867436 | [
"Apache-2.0"
] | 123 | 2018-05-01T02:54:43.000Z | 2022-01-28T01:30:52.000Z | eal/alert_mailer.ex | sylph01/antikythera | 47a93f3d4c70975f7296725c9bde2ea823867436 | [
"Apache-2.0"
] | 14 | 2018-05-01T02:30:47.000Z | 2022-02-21T04:38:56.000Z | # Copyright(c) 2015-2021 ACCESS CO., LTD. All rights reserved.
use Croma
defmodule AntikytheraEal.AlertMailer do
defmodule Mail do
use Croma.Struct,
recursive_new?: true,
fields: [
from: Croma.String,
to: Croma.TypeGen.list_of(Croma.String),
subject: Croma.String,
bod... | 23.43662 | 98 | 0.634014 |
1ded2243276a6a90b14b7b93c286a8168cb6e62b | 1,194 | ex | Elixir | lib/ext/bootstrap/drop_password_task.ex | bahanni/custom_rpi4 | ddefa85d30bacaae40151a63a9a0ebbf4ad30ed5 | [
"MIT"
] | null | null | null | lib/ext/bootstrap/drop_password_task.ex | bahanni/custom_rpi4 | ddefa85d30bacaae40151a63a9a0ebbf4ad30ed5 | [
"MIT"
] | null | null | null | lib/ext/bootstrap/drop_password_task.ex | bahanni/custom_rpi4 | ddefa85d30bacaae40151a63a9a0ebbf4ad30ed5 | [
"MIT"
] | null | null | null | defmodule FarmbotOS.Bootstrap.DropPasswordTask do
@moduledoc """
Task to make sure the plaintext password is dropped form
the sqlite database.
"""
require FarmbotOS.Logger
alias FarmbotOS.Bootstrap.{
Authorization,
DropPasswordSupport
}
use GenServer
@doc false
def start_link(args, opts \... | 25.404255 | 82 | 0.680905 |
1ded259ce769e7ef5d56211aeaa3c4a8fc3b8949 | 7,496 | ex | Elixir | lib/ex_brace_expansion.ex | hez/ex_brace_expansion | 1466ede7b51cc0378acb12120de40543cf45f49d | [
"MIT"
] | 4 | 2015-04-03T11:00:25.000Z | 2021-01-13T00:16:48.000Z | lib/ex_brace_expansion.ex | hez/ex_brace_expansion | 1466ede7b51cc0378acb12120de40543cf45f49d | [
"MIT"
] | 1 | 2021-01-13T00:16:38.000Z | 2021-01-13T00:16:38.000Z | lib/ex_brace_expansion.ex | hez/ex_brace_expansion | 1466ede7b51cc0378acb12120de40543cf45f49d | [
"MIT"
] | 4 | 2018-03-30T14:47:10.000Z | 2021-01-13T00:17:07.000Z | defmodule ExBraceExpansion do
@esc_slash "\0SLASH#{:random.uniform}\0"
@esc_open "\0OPEN#{:random.uniform}\0"
@esc_close "\0CLOSE#{:random.uniform}\0"
@esc_comma "\0COMMA#{:random.uniform}\0"
@esc_period "\0PERIOD#{:random.uniform}\0"
@moduledoc """
[Brace expansion](https://www.gnu.org/software/bash/man... | 27.866171 | 231 | 0.57564 |
1ded2aee4d4bbdea1cb678b497b7f7439bbffbb6 | 573 | exs | Elixir | test/test_helper.exs | WhileHappy/elastic | 648fcaa4ecb772e05b1a0f1f6cb1f6961eb07932 | [
"MIT"
] | 63 | 2016-10-19T15:48:22.000Z | 2021-12-21T02:55:39.000Z | test/test_helper.exs | WhileHappy/elastic | 648fcaa4ecb772e05b1a0f1f6cb1f6961eb07932 | [
"MIT"
] | 33 | 2016-11-13T02:41:07.000Z | 2021-05-25T11:12:51.000Z | test/test_helper.exs | WhileHappy/elastic | 648fcaa4ecb772e05b1a0f1f6cb1f6961eb07932 | [
"MIT"
] | 27 | 2016-11-13T02:47:29.000Z | 2022-01-25T02:16:39.000Z | ExUnit.start(exclude: [integration: true])
defmodule Answer do
@es_type "answer"
@es_index "answer"
use Elastic.Document.API
defstruct [:id, :text, :comments]
end
defmodule Question do
@es_type "question"
@es_index "N/A"
use Elastic.Document.API
defstruct [:id, :index, :text, :comments]
end
defmodu... | 18.483871 | 53 | 0.687609 |
1ded643a56bf69387e1f5911d84f788af5bde9ed | 274 | exs | Elixir | priv/repo/migrations/20210422105846_create_restaurants_table.exs | wfercosta/nlw_05_elexir | a833f62c6a9985fe43a22f8450250b8ceea3dd34 | [
"MIT"
] | null | null | null | priv/repo/migrations/20210422105846_create_restaurants_table.exs | wfercosta/nlw_05_elexir | a833f62c6a9985fe43a22f8450250b8ceea3dd34 | [
"MIT"
] | null | null | null | priv/repo/migrations/20210422105846_create_restaurants_table.exs | wfercosta/nlw_05_elexir | a833f62c6a9985fe43a22f8450250b8ceea3dd34 | [
"MIT"
] | null | null | null | defmodule Nlw05Elixir.Repo.Migrations.CreateRestaurantsTable do
use Ecto.Migration
def change do
create table(:restaurants) do
add :email, :string
add :name, :string
timestamps()
end
create unique_index(:restaurants, [:email])
end
end
| 18.266667 | 63 | 0.689781 |
1ded6b72809d8e0fe0ef1a8341ccde4a6796e5ef | 279 | ex | Elixir | lib/components/select.ex | zgbjgg/quetzal | 4c71b76dce601560d176df96594a0a91fef79fd7 | [
"MIT"
] | 10 | 2019-10-04T17:45:42.000Z | 2022-03-27T23:58:52.000Z | lib/components/select.ex | zgbjgg/quetzal | 4c71b76dce601560d176df96594a0a91fef79fd7 | [
"MIT"
] | 3 | 2019-10-01T00:24:15.000Z | 2019-10-23T17:04:48.000Z | lib/components/select.ex | zgbjgg/quetzal | 4c71b76dce601560d176df96594a0a91fef79fd7 | [
"MIT"
] | 1 | 2020-02-12T23:08:43.000Z | 2020-02-12T23:08:43.000Z | defmodule Quetzal.Select do
@moduledoc """
Renders an html select as component
# Example
Use from `components/0` callback from your live view.
`{Quetzal.Select, [id: "myselect", children: "<option>1</option>"]}`
"""
use Quetzal.Component,
tag: "select"
end
| 18.6 | 70 | 0.670251 |
1ded8ed4eab9f2153b1993d9492f2b341266f633 | 1,694 | exs | Elixir | test/plug/adapters/translator_test.exs | codeadict/plug | c5e5cc04fe890054b0a03fbb9baeb2fcc49679a6 | [
"Apache-2.0"
] | null | null | null | test/plug/adapters/translator_test.exs | codeadict/plug | c5e5cc04fe890054b0a03fbb9baeb2fcc49679a6 | [
"Apache-2.0"
] | null | null | null | test/plug/adapters/translator_test.exs | codeadict/plug | c5e5cc04fe890054b0a03fbb9baeb2fcc49679a6 | [
"Apache-2.0"
] | null | null | null | defmodule Plug.Adapters.TranslatorTest do
use ExUnit.Case
import ExUnit.CaptureLog
def init(opts) do
opts
end
def call(%{path_info: ["warn"]}, _opts) do
raise Plug.Parsers.UnsupportedMediaTypeError, media_type: "foo/bar"
end
def call(%{path_info: ["error"]}, _opts) do
raise "oops"
end
... | 28.711864 | 97 | 0.623377 |
1ded92b8eccca16917eec0637e3bfd2749b76796 | 1,260 | ex | Elixir | installer/templates/phx_test/support/conn_case.ex | matthewp/phoenix | af86b95db365faada58d326e98de65c811690bc7 | [
"MIT"
] | 1 | 2020-07-23T18:03:42.000Z | 2020-07-23T18:03:42.000Z | installer/templates/phx_test/support/conn_case.ex | matthewp/phoenix | af86b95db365faada58d326e98de65c811690bc7 | [
"MIT"
] | 1 | 2020-05-26T19:38:18.000Z | 2020-05-26T19:38:18.000Z | installer/templates/phx_test/support/conn_case.ex | matthewp/phoenix | af86b95db365faada58d326e98de65c811690bc7 | [
"MIT"
] | 1 | 2020-08-31T15:29:31.000Z | 2020-08-31T15:29:31.000Z | defmodule <%= web_namespace %>.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.
Fina... | 29.302326 | 71 | 0.700794 |
1deda6330f2d1f79aa16636a0c2e413f11ef548c | 1,265 | ex | Elixir | lib/ewc.ex | nawada/ewc | 62ad4f795c7cd873bbffb7acd1eae58384eab5b3 | [
"MIT"
] | null | null | null | lib/ewc.ex | nawada/ewc | 62ad4f795c7cd873bbffb7acd1eae58384eab5b3 | [
"MIT"
] | null | null | null | lib/ewc.ex | nawada/ewc | 62ad4f795c7cd873bbffb7acd1eae58384eab5b3 | [
"MIT"
] | null | null | null | defmodule Ewc do
@moduledoc """
`Ewc` is a new implementation of UNIX `wc` command by Elixir.
"""
@doc """
main
"""
def main(argv) do
{opt, file_paths, err} = OptionParser.parse argv, aliases: [l: :line, c: :char, w: :word]
Enum.each(file_paths, fn file_path ->
case File.read file_path do
... | 20.737705 | 93 | 0.552569 |
1dedabe921233e527d148c31fc5a01d874caf9b7 | 78 | exs | Elixir | apps/jobex_web/test/jobex_web/views/layout_view_test.exs | andyl/jobex | a51d6ecc4e8e8d62ba7cdf3796305a5da369e4e2 | [
"MIT"
] | 10 | 2019-10-24T01:23:07.000Z | 2020-02-23T00:27:32.000Z | apps/jobex_web/test/jobex_web/views/layout_view_test.exs | andyl/crow | a51d6ecc4e8e8d62ba7cdf3796305a5da369e4e2 | [
"MIT"
] | 6 | 2021-03-09T18:41:09.000Z | 2021-05-27T13:02:42.000Z | apps/jobex_web/test/jobex_web/views/layout_view_test.exs | andyl/crow | a51d6ecc4e8e8d62ba7cdf3796305a5da369e4e2 | [
"MIT"
] | 1 | 2019-10-24T01:23:08.000Z | 2019-10-24T01:23:08.000Z | defmodule JobexWeb.LayoutViewTest do
use JobexWeb.ConnCase, async: true
end
| 19.5 | 36 | 0.820513 |
1dedb998129cce35daffb1ea8947917ab68cfa5f | 285 | ex | Elixir | lib/absinthe/language/field_definition.ex | scrogson/absinthe | aa7e9c83dc10603c72f80e09a60d12495bc1c6b7 | [
"Unlicense"
] | 1 | 2019-05-07T15:05:52.000Z | 2019-05-07T15:05:52.000Z | lib/absinthe/language/field_definition.ex | scrogson/absinthe | aa7e9c83dc10603c72f80e09a60d12495bc1c6b7 | [
"Unlicense"
] | null | null | null | lib/absinthe/language/field_definition.ex | scrogson/absinthe | aa7e9c83dc10603c72f80e09a60d12495bc1c6b7 | [
"Unlicense"
] | null | null | null | defmodule Absinthe.Language.FieldDefinition do
@moduledoc false
@type t :: %{name: binary, arguments: [Absinthe.Language.Argument.t], type: Absinthe.Language.type_reference_t, loc: Absinthe.Language.loc_t}
defstruct name: nil, arguments: [], type: nil, loc: %{start: nil}
end
| 31.666667 | 143 | 0.740351 |
1dedc5d2cf64779c3c4fc9760e94a357056587fa | 1,407 | ex | Elixir | tags/lib/tags_web/endpoint.ex | GustavoSrr/nlw-heat | 7d92dbd94d6db303d1c0d604b85707de2135c2dc | [
"MIT"
] | null | null | null | tags/lib/tags_web/endpoint.ex | GustavoSrr/nlw-heat | 7d92dbd94d6db303d1c0d604b85707de2135c2dc | [
"MIT"
] | null | null | null | tags/lib/tags_web/endpoint.ex | GustavoSrr/nlw-heat | 7d92dbd94d6db303d1c0d604b85707de2135c2dc | [
"MIT"
] | null | null | null | defmodule TagsWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :tags
# The session will be stored in the cookie and signed,
# this means its contents can be read but not tampered with.
# Set :encryption_salt if you would also like to encrypt it.
@session_options [
store: :cookie,
key: "_tags_key",
... | 28.714286 | 97 | 0.713575 |
1dedc8f390c16f9859c1082fd513c8fb1c2aa55e | 3,022 | exs | Elixir | test/ecto_adapters_dynamodb/query_test.exs | circles-learning-labs/ecto-adapters-dynamodb | 6ee42c68c350786aba3e5dbcbfbc07e70c72b4e6 | [
"Apache-2.0"
] | 50 | 2017-06-21T00:15:15.000Z | 2022-01-18T04:12:24.000Z | test/ecto_adapters_dynamodb/query_test.exs | circles-learning-labs/ecto-adapters-dynamodb | 6ee42c68c350786aba3e5dbcbfbc07e70c72b4e6 | [
"Apache-2.0"
] | 91 | 2018-01-10T19:29:25.000Z | 2022-02-24T16:12:26.000Z | test/ecto_adapters_dynamodb/query_test.exs | circles-learning-labs/ecto-adapters-dynamodb | 6ee42c68c350786aba3e5dbcbfbc07e70c72b4e6 | [
"Apache-2.0"
] | 11 | 2017-11-28T06:22:58.000Z | 2022-01-04T18:03:11.000Z | defmodule Ecto.Adapters.DynamoDB.Query.Test do
@moduledoc """
Unit tests for the query module.
"""
use ExUnit.Case
import Ecto.Adapters.DynamoDB.Query, only: [get_matching_secondary_index: 4]
alias Ecto.Adapters.DynamoDB.TestRepo
setup_all do
TestHelper.setup_all()
on_exit(fn ->
TestHelp... | 33.577778 | 156 | 0.641628 |
1dedd576835f5c91e3e353c8d05a0ccc37823d7e | 2,184 | ex | Elixir | lib/game/command/whisper.ex | stevegrossi/ex_venture | e02d5a63fdb882d92cfb4af3e15f7b48ad7054aa | [
"MIT"
] | null | null | null | lib/game/command/whisper.ex | stevegrossi/ex_venture | e02d5a63fdb882d92cfb4af3e15f7b48ad7054aa | [
"MIT"
] | null | null | null | lib/game/command/whisper.ex | stevegrossi/ex_venture | e02d5a63fdb882d92cfb4af3e15f7b48ad7054aa | [
"MIT"
] | null | null | null | defmodule Game.Command.Whisper do
@moduledoc """
The "whisper" command
"""
use Game.Command
import Game.Room.Helpers, only: [find_character: 3]
alias Game.Character
alias Game.Format.Channels, as: FormatChannels
alias Game.Utility
commands(["whisper"], parse: false)
@impl Game.Command
def hel... | 26.634146 | 96 | 0.647894 |
1dedeeef8a29314aeda39cd768f21cce08955d2b | 286 | ex | Elixir | lib/simpler_cache/application.ex | v-kat/simpler_cache | e8a40d504be12ba3f4eb7500d3fc19a8e4356384 | [
"MIT"
] | 17 | 2018-09-24T21:30:29.000Z | 2020-05-18T21:29:48.000Z | lib/simpler_cache/application.ex | v-kat/simpler_cache | e8a40d504be12ba3f4eb7500d3fc19a8e4356384 | [
"MIT"
] | 1 | 2019-01-31T04:17:31.000Z | 2019-02-05T00:52:14.000Z | lib/simpler_cache/application.ex | v-kat/simpler_cache | e8a40d504be12ba3f4eb7500d3fc19a8e4356384 | [
"MIT"
] | 1 | 2019-04-02T13:33:42.000Z | 2019-04-02T13:33:42.000Z | defmodule SimplerCache.Application do
@moduledoc false
use Application
def start(_type, _args) do
children = [
{SimplerCache.TableWorker, []}
]
opts = [strategy: :one_for_one, name: SimplerCache.Supervisor]
Supervisor.start_link(children, opts)
end
end
| 19.066667 | 66 | 0.699301 |
1dee06d83a00cbd7aa4104f75bb4a86f0a3f5bca | 154 | exs | Elixir | config/config.exs | audo-labs/exmq | 8a0b4cce663aec5844bbcd3c99771716ea9a6ab2 | [
"MIT"
] | null | null | null | config/config.exs | audo-labs/exmq | 8a0b4cce663aec5844bbcd3c99771716ea9a6ab2 | [
"MIT"
] | null | null | null | config/config.exs | audo-labs/exmq | 8a0b4cce663aec5844bbcd3c99771716ea9a6ab2 | [
"MIT"
] | null | null | null | use Mix.Config
config :exmq, Exmq,
amqp: [host: "localhost"],
root_topic: "exmq"
case Mix.env do
:test -> import_config "test.exs"
_ -> nil
end
| 14 | 35 | 0.649351 |
1dee0cfe8d04e71d863fcf5abb746ca6e2890a8e | 20,728 | exs | Elixir | test/assent/strategies/oauth2_test.exs | kianmeng/assent | 3ab2d7eeb32a6fbcf0e3cc03bdd1b6541a35f341 | [
"MIT"
] | 1 | 2021-11-10T04:48:07.000Z | 2021-11-10T04:48:07.000Z | test/assent/strategies/oauth2_test.exs | kianmeng/assent | 3ab2d7eeb32a6fbcf0e3cc03bdd1b6541a35f341 | [
"MIT"
] | null | null | null | test/assent/strategies/oauth2_test.exs | kianmeng/assent | 3ab2d7eeb32a6fbcf0e3cc03bdd1b6541a35f341 | [
"MIT"
] | null | null | null | defmodule Assent.Strategy.OAuth2Test do
use Assent.Test.OAuth2TestCase
alias Assent.{CallbackCSRFError, CallbackError, Config.MissingKeyError, JWTAdapter.AssentJWT, MissingParamError, RequestError, Strategy.OAuth2}
@client_id "s6BhdRkqt3"
@client_secret "7Fjfp0ZBr1KtDRbnfVdmIw"
@private_key_id "key_id"
@p... | 45.257642 | 186 | 0.682555 |
1dee14123f852065e75bfd78d1de5d1f09db6d56 | 1,412 | ex | Elixir | lib/exdis/resp/array.ex | g-andrade/exdis | 6cb6775b16a237718f10dc5177d9369279e2d528 | [
"MIT"
] | 2 | 2020-03-20T17:25:59.000Z | 2020-03-22T14:17:30.000Z | lib/exdis/resp/array.ex | g-andrade/exdis | 6cb6775b16a237718f10dc5177d9369279e2d528 | [
"MIT"
] | null | null | null | lib/exdis/resp/array.ex | g-andrade/exdis | 6cb6775b16a237718f10dc5177d9369279e2d528 | [
"MIT"
] | null | null | null | defmodule Exdis.RESP.Array do
## ------------------------------------------------------------------
## Public Function Definitions
## ------------------------------------------------------------------
def recv(fun) do
case Exdis.RESP.Integer.recv(fun) do
count when count >= 0 ->
recv_members(... | 25.672727 | 71 | 0.508499 |
1dee3b135cf3cd5982435a423843b68338e9d5c6 | 2,316 | ex | Elixir | clients/text_to_speech/lib/google_api/text_to_speech/v1beta1/model/synthesize_speech_request.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/text_to_speech/lib/google_api/text_to_speech/v1beta1/model/synthesize_speech_request.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/text_to_speech/lib/google_api/text_to_speech/v1beta1/model/synthesize_speech_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... | 43.698113 | 170 | 0.75734 |
1dee7c93a385899fd21c3ef502669df83f5f7550 | 717 | exs | Elixir | test/libcluster_ecs_test.exs | Genyes/libcluster_ecs | 26730ef9467de9adae40fd205c959c9c10fb164c | [
"MIT"
] | null | null | null | test/libcluster_ecs_test.exs | Genyes/libcluster_ecs | 26730ef9467de9adae40fd205c959c9c10fb164c | [
"MIT"
] | null | null | null | test/libcluster_ecs_test.exs | Genyes/libcluster_ecs | 26730ef9467de9adae40fd205c959c9c10fb164c | [
"MIT"
] | null | null | null | defmodule ClusterECSTest do
use ExUnit.Case
doctest ClusterECS
@json_parser Application.fetch_env!(:libcluster_ecs, :json_parser)
setup do
Tesla.Mock.mock(fn
%{method: :get, url: "https://169.254.169.254/"} ->
%Tesla.Env{status: 200, body: @json_parser.encode!(%{"ContainerARN" => "arn:invalid... | 27.576923 | 98 | 0.659693 |
1dee9671fd46a5bf755bd9f8026432766349f80f | 2,007 | ex | Elixir | clients/dataflow/lib/google_api/dataflow/v1b3/model/sdk_harness_container_image.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/dataflow/lib/google_api/dataflow/v1b3/model/sdk_harness_container_image.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/dataflow/lib/google_api/dataflow/v1b3/model/sdk_harness_container_image.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... | 37.166667 | 145 | 0.744893 |
1deebfbc7a0faa490ae0e0e9b6f0ec8cf5d2bc8a | 600 | exs | Elixir | strain/strain.exs | rpillar/Exercism_Elixir | b30adefe3aa58953c664085f9bdaa60d43953d1a | [
"MIT"
] | null | null | null | strain/strain.exs | rpillar/Exercism_Elixir | b30adefe3aa58953c664085f9bdaa60d43953d1a | [
"MIT"
] | null | null | null | strain/strain.exs | rpillar/Exercism_Elixir | b30adefe3aa58953c664085f9bdaa60d43953d1a | [
"MIT"
] | null | null | null | defmodule Strain do
@doc """
Given a `list` of items and a function `fun`, return the list of items where
`fun` returns true.
Do not use `Enum.filter`.
"""
@spec keep(list :: list(any), fun :: (any -> boolean)) :: list(any)
def keep(list, fun) do
for x <- list, fun.(x), do: x
end
@doc """
Given... | 24 | 78 | 0.6 |
1deecd08de89cf4aaec9be17b49f419abe383064 | 678 | exs | Elixir | thy_supervisor/mix.exs | bossiernesto/elixir_basics | 035e3c719b189c53a5ba7272fe106c6ad58da563 | [
"BSD-3-Clause"
] | null | null | null | thy_supervisor/mix.exs | bossiernesto/elixir_basics | 035e3c719b189c53a5ba7272fe106c6ad58da563 | [
"BSD-3-Clause"
] | 12 | 2017-01-24T20:40:26.000Z | 2017-01-25T02:19:42.000Z | thy_supervisor/mix.exs | bossiernesto/elixir_basics | 035e3c719b189c53a5ba7272fe106c6ad58da563 | [
"BSD-3-Clause"
] | 1 | 2018-12-30T15:59:45.000Z | 2018-12-30T15:59:45.000Z | defmodule ThyInspector.Mixfile do
use Mix.Project
def project do
[app: :thy_inspector,
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.ap... | 20.545455 | 77 | 0.615044 |
1deef518d00760734d334b336cdf5bc846453745 | 19,287 | ex | Elixir | clients/compute/lib/google_api/compute/v1/api/health_checks.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/api/health_checks.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/api/health_checks.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 53.132231 | 1,213 | 0.700524 |
1deef987ecfc6ac16d337b08be83734f8300224d | 4,339 | ex | Elixir | lib/distillery/releases/config/provider.ex | arikai/distillery | 65ddbcc143f2849a6ed5574e8c397a68ca92eb81 | [
"MIT"
] | 3,097 | 2016-07-18T13:59:00.000Z | 2022-03-29T00:27:23.000Z | lib/distillery/releases/config/provider.ex | arikai/distillery | 65ddbcc143f2849a6ed5574e8c397a68ca92eb81 | [
"MIT"
] | 672 | 2016-07-18T18:25:29.000Z | 2022-02-24T17:39:30.000Z | lib/distillery/releases/config/provider.ex | arikai/distillery | 65ddbcc143f2849a6ed5574e8c397a68ca92eb81 | [
"MIT"
] | 483 | 2016-07-22T14:08:49.000Z | 2022-03-21T09:35:23.000Z | defmodule Distillery.Releases.Config.Provider do
@moduledoc """
This defines the behaviour for custom configuration providers.
"""
alias Distillery.Releases.Utils
defmacro __using__(_) do
quote do
@behaviour unquote(__MODULE__)
alias unquote(__MODULE__)
end
end
@doc """
Called whe... | 25.982036 | 94 | 0.579627 |
1def095f89dffbfe69c839b6bc9c1481cc4bea91 | 1,824 | ex | Elixir | clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_nat_address.ex | jamesvl/elixir-google-api | 6c87fb31d996f08fb42ce6066317e9d652a87acc | [
"Apache-2.0"
] | null | null | null | clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_nat_address.ex | jamesvl/elixir-google-api | 6c87fb31d996f08fb42ce6066317e9d652a87acc | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_nat_address.ex | myskoach/elixir-google-api | 4f8cbc2fc38f70ffc120fd7ec48e27e46807b563 | [
"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.415094 | 130 | 0.718202 |
1def09c6d08ed792ce4891648472012ee864c43a | 425 | exs | Elixir | test/qrstorage_web/views/error_view_test.exs | b310-digital/qrstorage | 1a6ee58e87df5f9a3e6da4787e15afd2b83ba417 | [
"MIT"
] | 3 | 2021-12-12T22:18:45.000Z | 2021-12-29T12:05:40.000Z | test/qrstorage_web/views/error_view_test.exs | b310-digital/qrstorage | 1a6ee58e87df5f9a3e6da4787e15afd2b83ba417 | [
"MIT"
] | 13 | 2021-12-28T10:25:30.000Z | 2022-03-28T08:26:35.000Z | test/qrstorage_web/views/error_view_test.exs | b310-digital/qrstorage | 1a6ee58e87df5f9a3e6da4787e15afd2b83ba417 | [
"MIT"
] | 1 | 2022-03-17T09:24:48.000Z | 2022-03-17T09:24:48.000Z | defmodule QrstorageWeb.ErrorViewTest do
use QrstorageWeb.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(QrstorageWeb.ErrorView, "404.html", []) == "Not Found"
end
test "renders 500.html" do
... | 28.333333 | 94 | 0.738824 |
1def0cf761f379c328b9c2f146e37fd7a50c4714 | 95 | ex | Elixir | lib/sunshines_battleacademy/web/views/layout_view.ex | djdduty/sunshines_battleacademy | bcc085a3a6a519fc1591d00a39783523644f87a0 | [
"Apache-2.0"
] | null | null | null | lib/sunshines_battleacademy/web/views/layout_view.ex | djdduty/sunshines_battleacademy | bcc085a3a6a519fc1591d00a39783523644f87a0 | [
"Apache-2.0"
] | null | null | null | lib/sunshines_battleacademy/web/views/layout_view.ex | djdduty/sunshines_battleacademy | bcc085a3a6a519fc1591d00a39783523644f87a0 | [
"Apache-2.0"
] | null | null | null | defmodule SunshinesBattleacademy.Web.LayoutView do
use SunshinesBattleacademy.Web, :view
end
| 23.75 | 50 | 0.852632 |
1def1499a31ad8377884954bf748c0963b717e53 | 154 | exs | Elixir | bench/basic_bench.exs | zhangsoledad/alchemic_pinyin | 5426c62b1a37e6b134d285c8f5ace9a52b3c36cb | [
"MIT"
] | 22 | 2016-03-29T07:50:15.000Z | 2018-08-23T09:49:41.000Z | bench/basic_bench.exs | zhangsoledad/alchemic_pinyin | 5426c62b1a37e6b134d285c8f5ace9a52b3c36cb | [
"MIT"
] | 2 | 2016-11-02T08:06:47.000Z | 2021-12-23T13:22:38.000Z | bench/basic_bench.exs | zhangsoledad/alchemic_pinyin | 5426c62b1a37e6b134d285c8f5ace9a52b3c36cb | [
"MIT"
] | 4 | 2016-03-31T05:24:30.000Z | 2021-10-07T02:06:49.000Z | defmodule BasicBench do
use Benchfella
@test_string "99da龡龢da龣龤龥癩s什么鬼东西hah"
bench "hello pinyin" do
Pinyin.from_string @test_string
end
end
| 15.4 | 38 | 0.766234 |
1def2820c930b37e96f2ca3bfb85a982e0abf8e9 | 312 | ex | Elixir | app/phxfeeds/lib/phxfeeds_web/router.ex | chrispaynes/PhoenixFeeds | dd6451b96c8005eff94727da760a3716ecb18545 | [
"MIT"
] | null | null | null | app/phxfeeds/lib/phxfeeds_web/router.ex | chrispaynes/PhoenixFeeds | dd6451b96c8005eff94727da760a3716ecb18545 | [
"MIT"
] | null | null | null | app/phxfeeds/lib/phxfeeds_web/router.ex | chrispaynes/PhoenixFeeds | dd6451b96c8005eff94727da760a3716ecb18545 | [
"MIT"
] | null | null | null | defmodule PhxfeedsWeb.Router do
use PhxfeedsWeb, :router
pipeline :api do
plug :accepts, ["json"]
end
scope "/api", PhxfeedsWeb do
pipe_through :api
resources "/feeds", FeedController, except: [:new, :edit]
end
end
| 24 | 134 | 0.519231 |
1def3e541993bbb9367f87fb13b2802de54be9e8 | 68 | ex | Elixir | lib/retroflect_web/views/retro.ex | gaslight/retroflect | d98a52dbe4ef14dd50ef06970fba9c673e456647 | [
"MIT"
] | 3 | 2021-10-04T15:03:09.000Z | 2021-10-05T00:42:19.000Z | lib/retroflect_web/views/retro.ex | gaslight/retroflect | d98a52dbe4ef14dd50ef06970fba9c673e456647 | [
"MIT"
] | 29 | 2021-10-04T12:56:21.000Z | 2021-10-20T17:38:12.000Z | lib/retroflect_web/views/retro.ex | gaslight/retroflect | d98a52dbe4ef14dd50ef06970fba9c673e456647 | [
"MIT"
] | null | null | null | defmodule RetroflectWeb.RetroView do
use RetroflectWeb, :view
end
| 17 | 36 | 0.823529 |
1def5876f93b0ca56094fe2250d29a06af59d76b | 1,832 | ex | Elixir | clients/spanner/lib/google_api/spanner/v1/model/copy_backup_encryption_config.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/spanner/lib/google_api/spanner/v1/model/copy_backup_encryption_config.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/spanner/lib/google_api/spanner/v1/model/copy_backup_encryption_config.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 36.64 | 282 | 0.739083 |
1def5ed85dfc8dfd0c8374e7b399824b52bcf263 | 1,192 | exs | Elixir | test/xgit/file_content_source_test.exs | scouten/xgit | 0e2f849c83cdf39a9249b319d63ff3682c482c2f | [
"Apache-2.0"
] | 94 | 2019-05-28T05:29:54.000Z | 2022-02-18T20:03:20.000Z | test/xgit/file_content_source_test.exs | scouten/xgit | 0e2f849c83cdf39a9249b319d63ff3682c482c2f | [
"Apache-2.0"
] | 156 | 2019-05-26T03:27:24.000Z | 2020-10-08T05:44:26.000Z | test/xgit/file_content_source_test.exs | scouten/redo | 0e2f849c83cdf39a9249b319d63ff3682c482c2f | [
"Apache-2.0"
] | 5 | 2019-05-28T16:35:55.000Z | 2021-06-16T14:25:17.000Z | defmodule Xgit.FileContentSourceTest do
use ExUnit.Case, async: true
alias Xgit.ContentSource
alias Xgit.FileContentSource, as: FCS
alias Xgit.Test.TempDirTestCase
describe "implementation for file that exists" do
setup do
%{tmp_dir: t} = TempDirTestCase.tmp_dir!()
path = Path.join(t, "exam... | 22.490566 | 64 | 0.615772 |
1defc1c28a2a3f041e13008259db36b3f6f80680 | 1,547 | ex | Elixir | clients/content/lib/google_api/content/v21/model/product_shipping_dimension.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v21/model/product_shipping_dimension.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/content/lib/google_api/content/v21/model/product_shipping_dimension.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... | 30.94 | 131 | 0.721396 |
1defd74297e2e7445f28a748cde6971ac86293a1 | 13 | ex | Elixir | testData/org/elixir_lang/parser_definition/matched_qualified_alias_operation_parsing_test_case/MatchedQualifiedAliasOperation.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_qualified_alias_operation_parsing_test_case/MatchedQualifiedAliasOperation.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_qualified_alias_operation_parsing_test_case/MatchedQualifiedAliasOperation.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 145 | 2015-01-15T11:37:16.000Z | 2021-12-22T05:51:02.000Z | One.Two.Three | 13 | 13 | 0.846154 |
1defddc82aa8b1546e76712460613bf5079ee3fb | 6,887 | exs | Elixir | test/transaction_test.exs | ll1498/elixir_agent | a7b3bf1b49639c61d9eba3d4b91b30e0e856b54a | [
"Apache-2.0"
] | 1 | 2020-08-13T05:08:20.000Z | 2020-08-13T05:08:20.000Z | test/transaction_test.exs | ll1498/elixir_agent | a7b3bf1b49639c61d9eba3d4b91b30e0e856b54a | [
"Apache-2.0"
] | null | null | null | test/transaction_test.exs | ll1498/elixir_agent | a7b3bf1b49639c61d9eba3d4b91b30e0e856b54a | [
"Apache-2.0"
] | null | null | null | defmodule TransactionTest do
use ExUnit.Case
use Plug.Test
alias NewRelic.Harvest.Collector
defmodule HelperModule do
use NewRelic.Tracer
@trace :function
def function(n), do: Process.sleep(n)
end
defmodule ExternalService do
use NewRelic.Tracer
@trace {:query, category: :external}
... | 33.270531 | 100 | 0.623494 |
1defed209d82683c78009fc4dbdfc0275396d135 | 520 | exs | Elixir | priv/repo/migrations/20161003190952_add_team_id_to_oauth_tokens.exs | usecanvas/api-v2 | 59214db3a2cf12eb939f22fed320fd10cb47cdfe | [
"Apache-2.0"
] | 123 | 2017-04-04T18:15:48.000Z | 2021-04-26T08:04:22.000Z | priv/repo/migrations/20161003190952_add_team_id_to_oauth_tokens.exs | usecanvas/api-v2 | 59214db3a2cf12eb939f22fed320fd10cb47cdfe | [
"Apache-2.0"
] | null | null | null | priv/repo/migrations/20161003190952_add_team_id_to_oauth_tokens.exs | usecanvas/api-v2 | 59214db3a2cf12eb939f22fed320fd10cb47cdfe | [
"Apache-2.0"
] | 17 | 2017-04-04T18:58:29.000Z | 2021-05-10T21:39:16.000Z | defmodule CanvasAPI.Repo.Migrations.AddTeamIdToOauthTokens do
use Ecto.Migration
def up do
alter table(:oauth_tokens) do
modify :account_id, :binary_id, null: true
add :team_id, references(:teams, on_delete: :delete_all, type: :binary_id)
end
create index(:oauth_tokens, [:team_id])
cre... | 24.761905 | 80 | 0.698077 |
1df010042f8adce71f5c1117ef8b84c1f33e5ec2 | 757 | exs | Elixir | apps/ewallet_db/priv/repo/migrations/20180821075906_add_success_url_to_invite.exs | jimpeebles/ewallet | ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405 | [
"Apache-2.0"
] | null | null | null | apps/ewallet_db/priv/repo/migrations/20180821075906_add_success_url_to_invite.exs | jimpeebles/ewallet | ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405 | [
"Apache-2.0"
] | null | null | null | apps/ewallet_db/priv/repo/migrations/20180821075906_add_success_url_to_invite.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.541667 | 74 | 0.754293 |
1df0986459b2b03c0de996d0b0b0a59418e479c5 | 1,977 | ex | Elixir | lib/json5/decode/backend/combine/helper.ex | thomas9911/json5 | be16e6bcc1f64dd07143d48a21c37860cc8baa85 | [
"MIT"
] | null | null | null | lib/json5/decode/backend/combine/helper.ex | thomas9911/json5 | be16e6bcc1f64dd07143d48a21c37860cc8baa85 | [
"MIT"
] | null | null | null | lib/json5/decode/backend/combine/helper.ex | thomas9911/json5 | be16e6bcc1f64dd07143d48a21c37860cc8baa85 | [
"MIT"
] | null | null | null | defmodule Json5.Decode.Backend.Combine.Helper do
@moduledoc """
General helper functions
"""
import Combine.Helpers
import Combine.Parsers.Base
import Combine.Parsers.Text
alias Combine.ParserState
alias Json5.Decode.Backend.Combine, as: Decode
@elements [
:remove_white_space,
:single_line_c... | 19.969697 | 67 | 0.564997 |
1df0cb6ad124adba625f54909143ce8867433aa6 | 452 | exs | Elixir | priv/repo/migrations/20211014154250_create_keywords_table.exs | longnd/elixir-gscraper | 894570afd89e54b80ca591a56a182da55ac6ee61 | [
"MIT"
] | null | null | null | priv/repo/migrations/20211014154250_create_keywords_table.exs | longnd/elixir-gscraper | 894570afd89e54b80ca591a56a182da55ac6ee61 | [
"MIT"
] | 25 | 2021-03-23T07:27:21.000Z | 2021-10-31T15:09:52.000Z | priv/repo/migrations/20211014154250_create_keywords_table.exs | longnd/elixir-gscraper | 894570afd89e54b80ca591a56a182da55ac6ee61 | [
"MIT"
] | null | null | null | defmodule Gscraper.Repo.Migrations.CreateKeywordsTable do
use Ecto.Migration
def change do
create table(:keywords) do
add :keyword, :string, null: false
add :status, :string, size: 10, null: false
add :user_id, references(:users, on_delete: :delete_all), null: false
timestamps()
en... | 25.111111 | 75 | 0.672566 |
1df0cba869e569791b051d4019fb75996263b3ef | 916 | ex | Elixir | clients/android_device_provisioning/lib/google_api/android_device_provisioning/v1/metadata.ex | Contractbook/elixir-google-api | 342751041aaf8c2e7f76f9922cf24b9c5895802b | [
"Apache-2.0"
] | null | null | null | clients/android_device_provisioning/lib/google_api/android_device_provisioning/v1/metadata.ex | Contractbook/elixir-google-api | 342751041aaf8c2e7f76f9922cf24b9c5895802b | [
"Apache-2.0"
] | null | null | null | clients/android_device_provisioning/lib/google_api/android_device_provisioning/v1/metadata.ex | Contractbook/elixir-google-api | 342751041aaf8c2e7f76f9922cf24b9c5895802b | [
"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.925926 | 74 | 0.767467 |
1df0f8f593270aff1bae8e4c93ad6f2ccd34e1a1 | 4,934 | ex | Elixir | clients/firebase_dynamic_links/lib/google_api/firebase_dynamic_links/v1/model/dynamic_link_info.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/firebase_dynamic_links/lib/google_api/firebase_dynamic_links/v1/model/dynamic_link_info.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/firebase_dynamic_links/lib/google_api/firebase_dynamic_links/v1/model/dynamic_link_info.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... | 68.527778 | 346 | 0.749088 |
1df0fe3af9f39a88b1659932fe3174b56856a47f | 3,735 | ex | Elixir | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v2beta1/model/impression_metrics_row.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v2beta1/model/impression_metrics_row.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v2beta1/model/impression_metrics_row.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... | 60.241935 | 238 | 0.770013 |
1df123c7f2dcac274af1d3e1df9e95b741ebd1c6 | 134 | exs | Elixir | .formatter.exs | treebee/surface_catalogue | fc938a81deef099e88a977d5de62c3f0e86197b8 | [
"MIT"
] | 10 | 2020-06-14T01:40:19.000Z | 2020-11-17T05:39:37.000Z | .formatter.exs | treebee/surface_catalogue | fc938a81deef099e88a977d5de62c3f0e86197b8 | [
"MIT"
] | null | null | null | .formatter.exs | treebee/surface_catalogue | fc938a81deef099e88a977d5de62c3f0e86197b8 | [
"MIT"
] | 1 | 2020-06-14T01:40:22.000Z | 2020-06-14T01:40:22.000Z | # Used by "mix format"
[
import_deps: [:phoenix, :surface],
inputs: ["{mix,.formatter}.exs", "{config,lib,test}/**/*.{ex,exs}"]
]
| 22.333333 | 69 | 0.589552 |
1df1277703cb4d116532073d461bd18bb93cdbcb | 12,314 | ex | Elixir | lib/oli_web/live/projects/visibility.ex | ehilfer/oli-torus | c2babe03047bfca2d3fe59ae3b7604597e34001e | [
"MIT"
] | null | null | null | lib/oli_web/live/projects/visibility.ex | ehilfer/oli-torus | c2babe03047bfca2d3fe59ae3b7604597e34001e | [
"MIT"
] | null | null | null | lib/oli_web/live/projects/visibility.ex | ehilfer/oli-torus | c2babe03047bfca2d3fe59ae3b7604597e34001e | [
"MIT"
] | null | null | null | defmodule OliWeb.Projects.VisibilityLive do
use Phoenix.LiveView
alias Oli.Authoring.Course
alias Oli.Accounts
alias Oli.Institutions
alias Oli.Publishing
use Phoenix.HTML
def mount(
_params,
%{
"project_slug" => project_slug
},
socket
) do
project = Co... | 39.980519 | 167 | 0.467679 |
1df1394fc9f4eda893e29340f64c4549f71f135d | 685 | ex | Elixir | lib/free_fall_web/live/game_live.ex | Kimberly-Searle/free_fall | 3528a84ea4ce78d090850d92ff8d3552b3daa9f3 | [
"MIT"
] | null | null | null | lib/free_fall_web/live/game_live.ex | Kimberly-Searle/free_fall | 3528a84ea4ce78d090850d92ff8d3552b3daa9f3 | [
"MIT"
] | null | null | null | lib/free_fall_web/live/game_live.ex | Kimberly-Searle/free_fall | 3528a84ea4ce78d090850d92ff8d3552b3daa9f3 | [
"MIT"
] | null | null | null | defmodule FreeFallWeb.GameLive do
use FreeFallWeb, :live_view
alias FreeFall.Game.Tetro
@impl true
def render(assigns) do
~L"""
<pre>
<%= inspect @tetro %>
</pre>
<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg">
<rect id="square" x="100" width="10" height="10" fill="red"... | 24.464286 | 73 | 0.585401 |
1df180a1b771be8b853c704f44f01eb1284eca15 | 1,155 | exs | Elixir | apps/app_debug/test/test_helper.exs | niclaslind/signalbroker-server | afb80514dcbabe561ac2da42adc08843a15c37c5 | [
"Apache-2.0"
] | 17 | 2020-06-20T11:29:43.000Z | 2022-03-21T05:53:06.000Z | apps/app_debug/test/test_helper.exs | niclaslind/signalbroker-server | afb80514dcbabe561ac2da42adc08843a15c37c5 | [
"Apache-2.0"
] | 2 | 2020-07-09T10:22:50.000Z | 2020-09-01T14:46:40.000Z | apps/app_debug/test/test_helper.exs | niclaslind/signalbroker-server | afb80514dcbabe561ac2da42adc08843a15c37c5 | [
"Apache-2.0"
] | 3 | 2020-07-17T20:04:36.000Z | 2022-01-24T14:19:46.000Z | # Copyright 2019 Volvo Cars
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (t... | 33 | 71 | 0.750649 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.