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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
73c8d369417767f0988ceea14ccaaeb94fbd98df | 504 | ex | Elixir | lib/peek_code_graphql/schemas/types/customer_type.ex | itorisaias/peek_code | 4f748e45fddc9e817fd4a5ad4d5811451efaa11c | [
"BSD-Source-Code",
"Adobe-Glyph"
] | null | null | null | lib/peek_code_graphql/schemas/types/customer_type.ex | itorisaias/peek_code | 4f748e45fddc9e817fd4a5ad4d5811451efaa11c | [
"BSD-Source-Code",
"Adobe-Glyph"
] | null | null | null | lib/peek_code_graphql/schemas/types/customer_type.ex | itorisaias/peek_code | 4f748e45fddc9e817fd4a5ad4d5811451efaa11c | [
"BSD-Source-Code",
"Adobe-Glyph"
] | 1 | 2021-03-05T00:21:07.000Z | 2021-03-05T00:21:07.000Z | defmodule PeekCodeGraphql.Schema.Types.CustomerType do
use Absinthe.Schema.Notation
use Absinthe.Ecto, repo: PeekCode.Repo
object :customer_type do
field :id, :string
field :email, :string
field :first_name, :string
field :last_name, :string
field(:orders, list_of(:order_type), resolve: assoc... | 26.526316 | 65 | 0.724206 |
73c8dda2387d8843179b8dc7754a7833bf9b24d7 | 3,164 | exs | Elixir | test/html_test.exs | hez/excoveralls | a4c1140e3757df4c075f9f5918307b6e973e8d83 | [
"MIT"
] | 716 | 2015-01-04T20:41:01.000Z | 2022-03-29T08:44:09.000Z | test/html_test.exs | hez/excoveralls | a4c1140e3757df4c075f9f5918307b6e973e8d83 | [
"MIT"
] | 255 | 2015-01-03T23:41:58.000Z | 2022-03-19T23:06:06.000Z | test/html_test.exs | hez/excoveralls | a4c1140e3757df4c075f9f5918307b6e973e8d83 | [
"MIT"
] | 217 | 2015-03-31T20:17:58.000Z | 2022-02-20T23:46:41.000Z | defmodule ExCoveralls.HtmlTest do
use ExUnit.Case
import Mock
import ExUnit.CaptureIO
alias ExCoveralls.Html
@file_name "excoveralls.html"
@file_size 20191
@test_output_dir "cover_test/"
@test_template_path "lib/templates/html/htmlcov/"
@content "defmodule Test do\n def test do\n end\nend\n"
... | 31.019608 | 116 | 0.609987 |
73c94e6df81af70fc52606909e1e29446754aa99 | 7,464 | ex | Elixir | lib/instructions/io.ex | benfb/elixush | ab0797d4b39f510283d2230d46aa061bc3198bf7 | [
"MIT"
] | 13 | 2016-02-04T01:34:26.000Z | 2021-05-24T08:34:09.000Z | lib/instructions/io.ex | benfb/elixush | ab0797d4b39f510283d2230d46aa061bc3198bf7 | [
"MIT"
] | null | null | null | lib/instructions/io.ex | benfb/elixush | ab0797d4b39f510283d2230d46aa061bc3198bf7 | [
"MIT"
] | null | null | null | defmodule Elixush.Instructions.IO do
@moduledoc "Instructions that operate on the IO stack."
alias Elixir.String
import Elixush.PushState
import Elixush.Util
import Elixush.Globals.Agent
def print_exec(state) do
if Enum.empty?(state[:exec]) do
state
else
top_thing = top_item(:exec, stat... | 29.15625 | 169 | 0.613478 |
73c95b74547a8c86646834450a8885ce317d1afe | 29,927 | ex | Elixir | lib/phoenix_live_view/test/client_proxy.ex | getong/phoenix_live_view | 97d64e036c439b9b84df1699d0773199c562069a | [
"MIT"
] | null | null | null | lib/phoenix_live_view/test/client_proxy.ex | getong/phoenix_live_view | 97d64e036c439b9b84df1699d0773199c562069a | [
"MIT"
] | null | null | null | lib/phoenix_live_view/test/client_proxy.ex | getong/phoenix_live_view | 97d64e036c439b9b84df1699d0773199c562069a | [
"MIT"
] | null | null | null | defmodule Phoenix.LiveViewTest.ClientProxy do
@moduledoc false
use GenServer
defstruct session_token: nil,
static_token: nil,
module: nil,
endpoint: nil,
pid: nil,
proxy: nil,
topic: nil,
ref: nil,
rendered: nil,
... | 29.630693 | 108 | 0.599626 |
73c96edb9846f80b3e050190ec3d7de2b666a306 | 2,870 | exs | Elixir | test/playground/document_live/new_test.exs | begedin/philtre | 3fc92c097875942689aad97997a983c8a83b602f | [
"MIT"
] | 2 | 2022-01-28T13:56:13.000Z | 2022-03-20T12:17:54.000Z | test/playground/document_live/new_test.exs | begedin/philtre | 3fc92c097875942689aad97997a983c8a83b602f | [
"MIT"
] | null | null | null | test/playground/document_live/new_test.exs | begedin/philtre | 3fc92c097875942689aad97997a983c8a83b602f | [
"MIT"
] | null | null | null | defmodule Playground.DocumentLive.NewTest do
@moduledoc false
use Playground.ConnCase
import Phoenix.LiveViewTest
alias Editor.Block
alias Playground.Documents
@editor %Editor{
id: "-1",
blocks: [
%Block{id: "1", cells: [%Block.Cell{id: "1-1", text: "Foo", modifiers: []}], type: "h1"},
... | 31.538462 | 95 | 0.549477 |
73c972b27599b7c7a6c9f37653a478e5865db0c9 | 250 | ex | Elixir | lib/river/frame/window_update.ex | peburrows/river | e8968535d02a86e70a7942a690c8e461fed55913 | [
"MIT"
] | 86 | 2016-08-19T21:59:28.000Z | 2022-01-31T20:14:18.000Z | lib/river/frame/window_update.ex | peburrows/river | e8968535d02a86e70a7942a690c8e461fed55913 | [
"MIT"
] | 7 | 2016-09-27T14:44:16.000Z | 2017-08-08T14:57:45.000Z | lib/river/frame/window_update.ex | peburrows/river | e8968535d02a86e70a7942a690c8e461fed55913 | [
"MIT"
] | 4 | 2016-09-26T10:57:24.000Z | 2018-04-03T14:30:19.000Z | defmodule River.Frame.WindowUpdate do
alias River.Frame
defstruct [:increment]
def decode(%Frame{} = frame, <<_::1, inc::31>>) do
%{frame | payload: %__MODULE__{increment: inc}}
end
def decode(_, _), do: {:error, :invalid_frame}
end
| 20.833333 | 52 | 0.66 |
73c97b88d3f140dcf7dc99ce1eeae92ffef4808a | 11,623 | ex | Elixir | lib/zaryn/crypto/keystore/shared_secrets/software_impl.ex | ambareesha7/node-zaryn | 136e542801bf9b6fa4a015d3464609fdf3dacee8 | [
"Apache-2.0"
] | 1 | 2021-07-06T19:47:14.000Z | 2021-07-06T19:47:14.000Z | lib/zaryn/crypto/keystore/shared_secrets/software_impl.ex | ambareesha7/node-zaryn | 136e542801bf9b6fa4a015d3464609fdf3dacee8 | [
"Apache-2.0"
] | null | null | null | lib/zaryn/crypto/keystore/shared_secrets/software_impl.ex | ambareesha7/node-zaryn | 136e542801bf9b6fa4a015d3464609fdf3dacee8 | [
"Apache-2.0"
] | null | null | null | defmodule Zaryn.Crypto.SharedSecretsKeystore.SoftwareImpl do
@moduledoc false
alias Zaryn.Crypto
alias Zaryn.Crypto.SharedSecretsKeystore
alias Zaryn.SharedSecrets
alias Zaryn.TransactionChain
alias Zaryn.TransactionChain.Transaction
alias Zaryn.TransactionChain.Transaction.ValidationStamp
alias Zary... | 32.46648 | 97 | 0.69285 |
73c9becc209048c74784ad270e803774abb492e2 | 669 | ex | Elixir | test/support/exemplars/minimal.ex | jesseshieh/crit19 | 0bba407fea09afed72cbb90ca579ba34c537edef | [
"MIT"
] | null | null | null | test/support/exemplars/minimal.ex | jesseshieh/crit19 | 0bba407fea09afed72cbb90ca579ba34c537edef | [
"MIT"
] | null | null | null | test/support/exemplars/minimal.ex | jesseshieh/crit19 | 0bba407fea09afed72cbb90ca579ba34c537edef | [
"MIT"
] | null | null | null | defmodule Crit.Exemplars.Minimal do
@moduledoc """
This is for dirt-simple structures where only a few most obvious structure
fields are relevant. Typically, for example, associated records are not
created.
"""
use ExUnit.CaseTemplate
use Crit.Global.Constants
alias Crit.Factory
alias Crit.Users.{... | 26.76 | 76 | 0.714499 |
73c9c6dcbe3a26980c8030c6afae77814cbeb0d0 | 1,834 | exs | Elixir | test/membrane/integration/timer_test.exs | membraneframework/membrane-core | 096c2546869824c49ad1d7412ffe02d050164611 | [
"Apache-2.0"
] | 515 | 2018-06-18T11:09:44.000Z | 2020-07-31T07:54:35.000Z | test/membrane/integration/timer_test.exs | membraneframework/membrane-core | 096c2546869824c49ad1d7412ffe02d050164611 | [
"Apache-2.0"
] | 120 | 2018-06-07T08:34:06.000Z | 2020-07-30T07:09:50.000Z | test/membrane/integration/timer_test.exs | membraneframework/membrane-core | 096c2546869824c49ad1d7412ffe02d050164611 | [
"Apache-2.0"
] | 13 | 2018-07-27T11:58:15.000Z | 2020-05-06T15:19:55.000Z | defmodule Membrane.Integration.TimerTest do
use ExUnit.Case, async: true
import Membrane.Testing.Assertions
alias Membrane.{Pipeline, Testing, Time}
defmodule Element do
use Membrane.Source
@impl true
def handle_prepared_to_playing(_ctx, state) do
{{:ok, start_timer: {:timer, Time.millisecon... | 25.123288 | 67 | 0.660851 |
73c9eb9390f2bac7b64b473580d0dba71dc912f5 | 2,601 | ex | Elixir | clients/content/lib/google_api/content/v2/model/datafeedstatuses_custom_batch_request_entry.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/model/datafeedstatuses_custom_batch_request_entry.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/model/datafeedstatuses_custom_batch_request_entry.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 40.015385 | 239 | 0.704729 |
73ca0805f36207718dfbf370a13dd6f92a8ab1ec | 629 | ex | Elixir | lib/firmata/protocol/modes.ex | smedegaard/firmata | 080ef4f3be84c5e84a840da5e406cac8d9a92d72 | [
"ISC"
] | 30 | 2017-08-17T23:06:42.000Z | 2021-06-22T04:42:22.000Z | lib/firmata/protocol/modes.ex | smedegaard/firmata | 080ef4f3be84c5e84a840da5e406cac8d9a92d72 | [
"ISC"
] | 2 | 2017-08-17T23:11:22.000Z | 2020-09-17T14:21:48.000Z | lib/firmata/protocol/modes.ex | smedegaard/firmata | 080ef4f3be84c5e84a840da5e406cac8d9a92d72 | [
"ISC"
] | 7 | 2016-05-09T16:53:26.000Z | 2017-03-13T04:46:56.000Z | defmodule Firmata.Protocol.Modes do
defmacro __using__(_) do
quote location: :keep do
@input 0x00
@output 0x01
@analog 0x02
@pwm 0x03
@servo 0x04
@shift 0x05
@i2c 0x06
@onewire 0x07
@stepper 0x08
@serial 0x0a
@ignore 0x7f
@ping_read 0x75
... | 16.552632 | 35 | 0.476948 |
73ca08ff19778800879a0fe01accef66adfc2c68 | 5,926 | exs | Elixir | exercises/practice/state-of-tic-tac-toe/test/state_of_tic_tac_toe_test.exs | kwchang0831/elixir | 1b21ae1ca610de97db79e76db890503ba75ce466 | [
"MIT"
] | null | null | null | exercises/practice/state-of-tic-tac-toe/test/state_of_tic_tac_toe_test.exs | kwchang0831/elixir | 1b21ae1ca610de97db79e76db890503ba75ce466 | [
"MIT"
] | null | null | null | exercises/practice/state-of-tic-tac-toe/test/state_of_tic_tac_toe_test.exs | kwchang0831/elixir | 1b21ae1ca610de97db79e76db890503ba75ce466 | [
"MIT"
] | null | null | null | defmodule StateOfTicTacToeTest do
use ExUnit.Case
describe "Won games" do
# @tag :pending
test "Finished game where X won via column victory (1)" do
board = """
XOO
X..
X..
"""
assert StateOfTicTacToe.game_state(board) == {:ok, :win}
end
@tag :pending
test ... | 18.932907 | 93 | 0.520756 |
73ca178969bebe46f9bdebb67c8367c6d48ef7cc | 4,530 | ex | Elixir | clients/spanner/lib/google_api/spanner/v1/model/backup.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/spanner/lib/google_api/spanner/v1/model/backup.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/spanner/lib/google_api/spanner/v1/model/backup.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... | 63.802817 | 550 | 0.721854 |
73ca1ce4895fe0a0f887ced750bdc200607e8cd1 | 2,461 | ex | Elixir | lib/docusign/model/checkbox.ex | gaslight/docusign_elixir | d9d88d53dd85d32a39d537bade9db28d779414e6 | [
"MIT"
] | 4 | 2020-12-21T12:50:13.000Z | 2022-01-12T16:50:43.000Z | lib/docusign/model/checkbox.ex | gaslight/docusign_elixir | d9d88d53dd85d32a39d537bade9db28d779414e6 | [
"MIT"
] | 12 | 2018-09-18T15:26:34.000Z | 2019-09-28T15:29:39.000Z | lib/docusign/model/checkbox.ex | gaslight/docusign_elixir | d9d88d53dd85d32a39d537bade9db28d779414e6 | [
"MIT"
] | 15 | 2020-04-29T21:50:16.000Z | 2022-02-11T18:01:51.000Z | # 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 DocuSign.Model.Checkbox do
@moduledoc """
A tab that allows the recipient to select a yes/no (on/off) option.
"""
@derive [Poison.Encode... | 28.287356 | 80 | 0.595693 |
73ca4123ee613bfd0024d97723e2445f84f6c3c8 | 2,177 | ex | Elixir | clients/document_ai/lib/google_api/document_ai/v1beta3/model/google_cloud_documentai_v1_human_review_status.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/document_ai/lib/google_api/document_ai/v1beta3/model/google_cloud_documentai_v1_human_review_status.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/document_ai/lib/google_api/document_ai/v1beta3/model/google_cloud_documentai_v1_human_review_status.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 37.534483 | 319 | 0.735875 |
73ca7d488961582bbd9585515ffe1067eb4c3b76 | 2,540 | ex | Elixir | clients/health_care/lib/google_api/health_care/v1beta1/model/evaluate_annotation_store_response.ex | ukrbublik/elixir-google-api | 364cec36bc76f60bec94cbcad34844367a29d174 | [
"Apache-2.0"
] | null | null | null | clients/health_care/lib/google_api/health_care/v1beta1/model/evaluate_annotation_store_response.ex | ukrbublik/elixir-google-api | 364cec36bc76f60bec94cbcad34844367a29d174 | [
"Apache-2.0"
] | null | null | null | clients/health_care/lib/google_api/health_care/v1beta1/model/evaluate_annotation_store_response.ex | ukrbublik/elixir-google-api | 364cec36bc76f60bec94cbcad34844367a29d174 | [
"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... | 45.357143 | 270 | 0.74685 |
73ca8ed104c8dd2cba2dae0ea7849ee7f2cb9549 | 509 | exs | Elixir | config/config.exs | ivosequeros/minimal-graphql-elixir | 455996d230dd065fd2182f0950c191a2d880f4bf | [
"Apache-2.0"
] | null | null | null | config/config.exs | ivosequeros/minimal-graphql-elixir | 455996d230dd065fd2182f0950c191a2d880f4bf | [
"Apache-2.0"
] | null | null | null | config/config.exs | ivosequeros/minimal-graphql-elixir | 455996d230dd065fd2182f0950c191a2d880f4bf | [
"Apache-2.0"
] | null | null | null | use Mix.Config
config :outbound_engine,
ecto_repos: [BasicApp.Repo]
config :outbound_engine, BasicApp.API.Endpoint,
url: [host: "localhost"],
secret_key_base: "wOlxWYUmU0dJEoK+e89vPWiGaNJjHN9pxv3bk0zYqFD0Hh1I8TwaP3Eg5p9h/AWx",
render_errors: [view: BasicApp.API.ErrorView, accepts: ~w(json)],
pubsub: [name: ... | 28.277778 | 86 | 0.72888 |
73caa23510efa38007b2dffeaabd2848fb91ac6a | 253 | exs | Elixir | exercises/02-higher-order-functions/02-goodbye-loops/16-piping-3/solution.exs | DennisWinnepenninckx/distributed-applications | 06743e4e2a09dc52ff52be831e486bb073916173 | [
"BSD-3-Clause"
] | 1 | 2021-09-22T09:52:11.000Z | 2021-09-22T09:52:11.000Z | exercises/02-higher-order-functions/02-goodbye-loops/16-piping-3/solution.exs | DennisWinnepenninckx/distributed-applications | 06743e4e2a09dc52ff52be831e486bb073916173 | [
"BSD-3-Clause"
] | 22 | 2019-06-19T18:58:13.000Z | 2020-03-16T14:43:06.000Z | exercises/02-higher-order-functions/02-goodbye-loops/16-piping-3/solution.exs | DennisWinnepenninckx/distributed-applications | 06743e4e2a09dc52ff52be831e486bb073916173 | [
"BSD-3-Clause"
] | 32 | 2019-09-19T03:25:11.000Z | 2020-10-06T15:01:47.000Z | defmodule Bank do
def largest_expense_index(balance_history) do
balance_history
|> Enum.zip(tl(balance_history))
|> Enum.map(fn {x, y} -> y - x end)
|> Enum.with_index(0)
|> Enum.min_by(fn {x, _} -> x end)
|> elem(1)
end
end
| 23 | 47 | 0.612648 |
73cab55f15addb58c453aaf67e1bfed95236b4a9 | 1,199 | ex | Elixir | lib/dagex/operations/remove_edge.ex | jwilger/dagex | b6c0b660c6897ee1109e1d72937e993b7bfebb4f | [
"Apache-2.0"
] | null | null | null | lib/dagex/operations/remove_edge.ex | jwilger/dagex | b6c0b660c6897ee1109e1d72937e993b7bfebb4f | [
"Apache-2.0"
] | null | null | null | lib/dagex/operations/remove_edge.ex | jwilger/dagex | b6c0b660c6897ee1109e1d72937e993b7bfebb4f | [
"Apache-2.0"
] | null | null | null | defmodule Dagex.Operations.RemoveEdge do
@moduledoc """
Represents a database operation to remove an edge between two nodes.
See `c:Dagex.remove_edge/2`
"""
@type t() :: %__MODULE__{
node_type: String.t(),
parent: struct(),
parent_id: String.t(),
child: struct(),
... | 27.883721 | 92 | 0.622185 |
73cac7fb12dd7dd86ada9e22a0fcef1b7685d5c8 | 495 | ex | Elixir | lib/yggdrasil_web/views/error_view.ex | first-tree/yggdrasil | dfe1417822a04c8d8da24912d0b4a8271c24e7c9 | [
"MIT"
] | null | null | null | lib/yggdrasil_web/views/error_view.ex | first-tree/yggdrasil | dfe1417822a04c8d8da24912d0b4a8271c24e7c9 | [
"MIT"
] | 1 | 2018-05-31T02:43:11.000Z | 2018-05-31T02:43:11.000Z | lib/yggdrasil_web/views/error_view.ex | first-tree/yggdrasil | dfe1417822a04c8d8da24912d0b4a8271c24e7c9 | [
"MIT"
] | null | null | null | defmodule YggdrasilWeb.ErrorView do
use YggdrasilWeb, :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 |
73caf6d0ec58e9c82db94f670a2f3c325a71f83d | 3,383 | ex | Elixir | lib/mix/lib/mix/deps/converger.ex | joearms/elixir | 9a0f8107bd8bbd089acb96fe0041d61a05e88a9b | [
"Apache-2.0"
] | 4 | 2016-04-05T05:51:36.000Z | 2019-10-31T06:46:35.000Z | lib/mix/lib/mix/deps/converger.ex | joearms/elixir | 9a0f8107bd8bbd089acb96fe0041d61a05e88a9b | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/deps/converger.ex | joearms/elixir | 9a0f8107bd8bbd089acb96fe0041d61a05e88a9b | [
"Apache-2.0"
] | 5 | 2015-02-01T06:01:19.000Z | 2019-08-29T09:02:35.000Z | # This module is the one responsible for converging
# dependencies in a recursive fashion. This
# module and its functions are private to Mix.
defmodule Mix.Deps.Converger do
@moduledoc false
@doc """
Clear up the mixfile cache.
"""
def clear_cache do
Mix.Server.cast(:clear_mixfile_cache)
end
@doc "... | 30.754545 | 81 | 0.625185 |
73cb1a178662041d6fb2a3c2d74c76bb70cebfca | 321 | ex | Elixir | lib/idefix/refactor/extract_variable.ex | arjan/idefix | d6a2f074ed2b18b77c7058ce82ab73eed62feb26 | [
"MIT"
] | 1 | 2020-03-26T16:46:05.000Z | 2020-03-26T16:46:05.000Z | lib/idefix/refactor/extract_variable.ex | arjan/idefix | d6a2f074ed2b18b77c7058ce82ab73eed62feb26 | [
"MIT"
] | null | null | null | lib/idefix/refactor/extract_variable.ex | arjan/idefix | d6a2f074ed2b18b77c7058ce82ab73eed62feb26 | [
"MIT"
] | null | null | null | defmodule Idefix.Refactor.ExtractVariable do
@moduledoc """
Extract the current expression into a variable
"""
alias Idefix.AST
def extract_variable(input, {line, col}, newname) do
ast = AST.parse(input)
node = AST.find_node(ast, line, col)
block = AST.find_nearest_do_block(ast, node)
end
end... | 21.4 | 54 | 0.707165 |
73cb4133bb9a8db750a8e9e9f92d88a5bed9d0a5 | 1,454 | exs | Elixir | mix.exs | BleuShan/absinthe_phoenix | afdaf8b65a96aed6e9d64b9b11b10944e08bfc8a | [
"MIT"
] | null | null | null | mix.exs | BleuShan/absinthe_phoenix | afdaf8b65a96aed6e9d64b9b11b10944e08bfc8a | [
"MIT"
] | null | null | null | mix.exs | BleuShan/absinthe_phoenix | afdaf8b65a96aed6e9d64b9b11b10944e08bfc8a | [
"MIT"
] | null | null | null | defmodule Absinthe.Phoenix.Mixfile do
use Mix.Project
@version "1.4.3"
def project do
[
app: :absinthe_phoenix,
version: @version,
elixir: "~> 1.4",
elixirc_paths: elixirc_paths(Mix.env()),
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
doc... | 25.964286 | 96 | 0.559835 |
73cb79b4d8840530e97d295687869da3cd22b660 | 2,123 | exs | Elixir | proficionym_api/test/controllers/synonyms_controller_test.exs | appropont/proficionym-api-elixir | 37519691e04176490154d7d8205c7bf1f90ff8b3 | [
"Apache-2.0"
] | null | null | null | proficionym_api/test/controllers/synonyms_controller_test.exs | appropont/proficionym-api-elixir | 37519691e04176490154d7d8205c7bf1f90ff8b3 | [
"Apache-2.0"
] | null | null | null | proficionym_api/test/controllers/synonyms_controller_test.exs | appropont/proficionym-api-elixir | 37519691e04176490154d7d8205c7bf1f90ff8b3 | [
"Apache-2.0"
] | null | null | null | defmodule ProficionymApi.SynonymsControllerTest do
use ProficionymApi.ConnCase
alias ProficionymApi.Synonyms
@valid_attrs %{}
@invalid_attrs %{}
setup %{conn: conn} do
{:ok, conn: put_req_header(conn, "accept", "application/json")}
end
test "lists all entries on index", %{conn: conn} do
conn = ... | 35.383333 | 98 | 0.686293 |
73cb7be0aaaea7fee4e434d58f8792c850aad271 | 1,670 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/placement_tag.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/placement_tag.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/placement_tag.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 33.4 | 132 | 0.728743 |
73cb872a8203a9f30dc712d621391658866468f8 | 1,926 | exs | Elixir | mix.exs | smartrent/harald | 158a69bc2b70b3f51d67bd935d223a42a3633d68 | [
"MIT"
] | 3 | 2020-08-07T02:09:09.000Z | 2020-08-28T12:25:48.000Z | mix.exs | smartrent/harald | 158a69bc2b70b3f51d67bd935d223a42a3633d68 | [
"MIT"
] | null | null | null | mix.exs | smartrent/harald | 158a69bc2b70b3f51d67bd935d223a42a3633d68 | [
"MIT"
] | null | null | null | defmodule Harald.MixProject do
use Mix.Project
def application do
[
extra_applications: [:logger]
]
end
def project do
[
app: :harald,
deps: deps(),
description: description(),
dialyzer: [
flags: [:unmatched_returns, :error_handling, :race_conditions, :undersp... | 23.487805 | 96 | 0.541537 |
73cb8e3acfed206cfd2065e9841ed410921646b4 | 1,273 | ex | Elixir | example_app/web/controllers/user_management_controller.ex | moxley/addict | 9271c60d9a862edcefc31e8a764b3eb5a5905171 | [
"MIT"
] | 750 | 2015-01-18T23:00:36.000Z | 2021-03-24T22:11:09.000Z | example_app/web/controllers/user_management_controller.ex | moxley/addict | 9271c60d9a862edcefc31e8a764b3eb5a5905171 | [
"MIT"
] | 130 | 2015-01-19T12:39:42.000Z | 2021-09-28T22:40:52.000Z | example_app/web/controllers/user_management_controller.ex | moxley/addict | 9271c60d9a862edcefc31e8a764b3eb5a5905171 | [
"MIT"
] | 151 | 2015-01-19T09:24:44.000Z | 2020-09-21T13:52:46.000Z | defmodule ExampleApp.UserManagementController do
use ExampleApp.Web, :controller
alias ExampleApp.User
def index(conn, _params) do
users = Repo.all(User)
render(conn, "index.html", users: users)
end
def register(conn, _params) do
render(conn, "register.html", csrf_token: csrf_token(conn))
end
... | 27.085106 | 105 | 0.696779 |
73cb991a2168df240a66a6a9595653961d5731ca | 2,402 | ex | Elixir | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_batch_update_entities_request.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_batch_update_entities_request.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_batch_update_entities_request.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2021-03-04T13:43:47.000Z | 2021-03-04T13:43:47.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... | 38.126984 | 320 | 0.74438 |
73cbaba29e1ba993b8f1befe3fb146aa8552923c | 2,781 | exs | Elixir | test/apns/notification_test.exs | Frameio/pigeon | 7de765179f74dbf13fbcc9cbe9ae1de59fe953e2 | [
"MIT"
] | 1 | 2021-09-05T13:34:21.000Z | 2021-09-05T13:34:21.000Z | test/apns/notification_test.exs | Frameio/pigeon | 7de765179f74dbf13fbcc9cbe9ae1de59fe953e2 | [
"MIT"
] | null | null | null | test/apns/notification_test.exs | Frameio/pigeon | 7de765179f74dbf13fbcc9cbe9ae1de59fe953e2 | [
"MIT"
] | null | null | null | defmodule Pigeon.APNS.NotificationTest do
use ExUnit.Case
def test_device_token, do: "test1234"
def test_msg, do: "test"
def test_topic, do: "topic.Test"
test "new" do
expected_result = %Pigeon.APNS.Notification{
device_token: test_device_token(),
topic: test_topic(),
payload: %{"aps" ... | 25.75 | 78 | 0.574973 |
73cc12f49d96599c46fdd14cbe64385dbb7b0d11 | 393 | ex | Elixir | lib/cgrates_web_jsonapi/jsonapi_resource.ex | max-konin/cgrates_web_jsonapi | e82690e343d790b0f77dea6699483fcb6fd8a162 | [
"MIT"
] | 2 | 2018-10-03T07:41:32.000Z | 2021-03-21T11:27:27.000Z | lib/cgrates_web_jsonapi/jsonapi_resource.ex | max-konin/cgrates_web_jsonapi | e82690e343d790b0f77dea6699483fcb6fd8a162 | [
"MIT"
] | 1 | 2018-10-31T04:55:59.000Z | 2018-10-31T04:55:59.000Z | lib/cgrates_web_jsonapi/jsonapi_resource.ex | max-konin/cgrates_web_jsonapi | e82690e343d790b0f77dea6699483fcb6fd8a162 | [
"MIT"
] | 5 | 2018-09-27T11:30:44.000Z | 2021-01-16T08:28:58.000Z | defmodule CgratesWebJsonapi.JSONAPIResource do
@moduledoc """
Utils for building JSONAPI responsed and hande requests
"""
@spec pagination_meta(Scrivener.Page.t()) :: %{
"total-count": integer(),
"total-pages": integer()
}
def pagination_meta(page) do
%{
"total-count": p... | 23.117647 | 57 | 0.633588 |
73cc5069ecf1adbbbd73512871aa1af14bb93a58 | 419 | exs | Elixir | config/test.exs | enter-haken/storm | 9730508c119763bcf5efe852387603dcc7eeb648 | [
"MIT"
] | null | null | null | config/test.exs | enter-haken/storm | 9730508c119763bcf5efe852387603dcc7eeb648 | [
"MIT"
] | 1 | 2021-03-28T22:57:30.000Z | 2021-04-10T23:05:04.000Z | config/test.exs | enter-haken/storm | 9730508c119763bcf5efe852387603dcc7eeb648 | [
"MIT"
] | null | null | null | use Mix.Config
# We don't run a server during test. If one is required,
# you can enable the server option below.
config :storm, StormWeb.Endpoint,
http: [port: 4002],
server: false
# Print only warnings and errors during test
config :logger, :console, format: "[$level] $message\n"
config :storm, :pg_config,
... | 22.052632 | 56 | 0.706444 |
73cc55f1207f7e9e75f9dd5762244a7a554bb132 | 1,542 | ex | Elixir | lib/bank_account_web/endpoint.ex | gapfranco/bank_account | ffa60fd76b70b9243e7eb575d52f22bdc31d196e | [
"MIT"
] | null | null | null | lib/bank_account_web/endpoint.ex | gapfranco/bank_account | ffa60fd76b70b9243e7eb575d52f22bdc31d196e | [
"MIT"
] | null | null | null | lib/bank_account_web/endpoint.ex | gapfranco/bank_account | ffa60fd76b70b9243e7eb575d52f22bdc31d196e | [
"MIT"
] | null | null | null | defmodule BankAccountWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :bank_account
# 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: "_... | 29.09434 | 97 | 0.719844 |
73cc6263a487d9cf66b6c9b12ccd01c8861a5cc2 | 11,484 | ex | Elixir | lib/soap/request/params.ex | Liferenko/soap | 57a88052b7696d565f5597b2a50658bf20d01d3e | [
"MIT"
] | null | null | null | lib/soap/request/params.ex | Liferenko/soap | 57a88052b7696d565f5597b2a50658bf20d01d3e | [
"MIT"
] | null | null | null | lib/soap/request/params.ex | Liferenko/soap | 57a88052b7696d565f5597b2a50658bf20d01d3e | [
"MIT"
] | null | null | null | defmodule Soap.Request.Params do
@moduledoc """
Documentation for Soap.Request.Options.
"""
import XmlBuilder, only: [element: 3, document: 1, generate: 2]
# TODO Remove before flight
@our_hardcoded_schema_types %{
"xmlns:SOAP-ENV" => "http://schemas.xmlsoap.org/soap/envelope/",
"xmlns:SOAP-ENC" =>... | 35.226994 | 116 | 0.670759 |
73cc7f6c351c7b7b5b317022a9b69357bca4c7d7 | 71 | ex | Elixir | lib/siwapp_web/views/user_registration_view.ex | jakon89/siwapp | b5f8fd43458deae72c76e434ed0c63b620cb97a4 | [
"MIT"
] | null | null | null | lib/siwapp_web/views/user_registration_view.ex | jakon89/siwapp | b5f8fd43458deae72c76e434ed0c63b620cb97a4 | [
"MIT"
] | null | null | null | lib/siwapp_web/views/user_registration_view.ex | jakon89/siwapp | b5f8fd43458deae72c76e434ed0c63b620cb97a4 | [
"MIT"
] | null | null | null | defmodule SiwappWeb.UserRegistrationView do
use SiwappWeb, :view
end
| 17.75 | 43 | 0.830986 |
73cc882890199ebe2159c5399d1fd4cdee2c61be | 1,742 | exs | Elixir | lib/mix/test/mix/tasks/compile_test.exs | sunaku/elixir | 8aa43eaedd76be8ac0d495049eb9ecd56971f4fe | [
"Apache-2.0"
] | null | null | null | lib/mix/test/mix/tasks/compile_test.exs | sunaku/elixir | 8aa43eaedd76be8ac0d495049eb9ecd56971f4fe | [
"Apache-2.0"
] | null | null | null | lib/mix/test/mix/tasks/compile_test.exs | sunaku/elixir | 8aa43eaedd76be8ac0d495049eb9ecd56971f4fe | [
"Apache-2.0"
] | 1 | 2020-12-07T08:04:16.000Z | 2020-12-07T08:04:16.000Z | Code.require_file "../../test_helper.exs", __DIR__
defmodule Mix.Tasks.CompileTest do
use MixTest.Case
defmodule CustomCompilers do
def project do
[compilers: [:elixir, :app, :custom]]
end
end
setup do
Mix.Project.push MixTest.Case.Sample
:ok
end
test "mix compile --list with mixfi... | 29.033333 | 97 | 0.647532 |
73cc8ff54b33f1179a718002363c9b4c1f622fcd | 785 | exs | Elixir | mix.exs | cwbriones/stache | 51eb1435c81975a2ce680eca8263cd5a146d80f8 | [
"MIT"
] | 1 | 2016-05-02T10:47:45.000Z | 2016-05-02T10:47:45.000Z | mix.exs | cwbriones/stache | 51eb1435c81975a2ce680eca8263cd5a146d80f8 | [
"MIT"
] | null | null | null | mix.exs | cwbriones/stache | 51eb1435c81975a2ce680eca8263cd5a146d80f8 | [
"MIT"
] | null | null | null | defmodule Stache.Mixfile do
use Mix.Project
def project do
[app: :stache,
version: "0.2.1",
elixir: "~> 1.2",
deps: deps,
description: description,
package: package
]
end
defp description do
"Mustache templates in Elixir."
end
def package do
[
files: ["lib",... | 19.146341 | 93 | 0.549045 |
73ccd45fd53484c3b0b471c268aeda8b5ed1151a | 343 | exs | Elixir | priv/repo/seeds.exs | sudokid-software/12-day-mmo | 8b3038e754078a3361de6c9b516cb192f2ef0202 | [
"BSD-2-Clause"
] | 1 | 2021-01-04T21:25:35.000Z | 2021-01-04T21:25:35.000Z | priv/repo/seeds.exs | visheshc14/Prisonic-Fairytale | 91152fbf3662952146e29ff36a45ad20bebe4558 | [
"MIT"
] | null | null | null | priv/repo/seeds.exs | visheshc14/Prisonic-Fairytale | 91152fbf3662952146e29ff36a45ad20bebe4558 | [
"MIT"
] | null | null | null | # Script for populating the database. You can run it as:
#
# mix run priv/repo/seeds.exs
#
# Inside the script, you can read and write to any of your
# repositories directly:
#
# Mmo.Repo.insert!(%Mmo.SomeSchema{})
#
# We recommend using the bang functions (`insert!`, `update!`
# and so on) as they will fail if... | 28.583333 | 61 | 0.699708 |
73ccd511f75af55429b3ade16a19e1c62136e0cc | 5,156 | ex | Elixir | clients/logging/lib/google_api/logging/v2/model/log_sink.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/logging/lib/google_api/logging/v2/model/log_sink.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/logging/lib/google_api/logging/v2/model/log_sink.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 ... | 66.961039 | 785 | 0.736811 |
73ccdbcca17f43c70374733f32e32339219d9c31 | 2,279 | exs | Elixir | test/transaction_refund_test.exs | cas27/ex_taxjar | 507d474dbd7e72a21b2e14194b39170b535913bc | [
"MIT"
] | 6 | 2018-04-13T17:50:57.000Z | 2019-09-08T01:25:56.000Z | test/transaction_refund_test.exs | cas27/ex_taxjar | 507d474dbd7e72a21b2e14194b39170b535913bc | [
"MIT"
] | null | null | null | test/transaction_refund_test.exs | cas27/ex_taxjar | 507d474dbd7e72a21b2e14194b39170b535913bc | [
"MIT"
] | 1 | 2021-06-24T20:11:16.000Z | 2021-06-24T20:11:16.000Z | defmodule ExTaxjar.TransactionRefundTest do
use ExUnit.Case
use ExVCR.Mock, adapter: ExVCR.Adapter.Hackney
alias ExTaxjar.{TransactionRefund, Refund}
describe "ExTaxjar.TransactionRefund.list/1" do
test "with date range" do
use_cassette "transactions_refund#list-range" do
refunds = Transacti... | 28.848101 | 91 | 0.632295 |
73ccddc67b8fbd224519826c5150a3a4c5bd3de5 | 956 | exs | Elixir | test/elir_test.exs | azohra/elir | 45a7fcc051949d77a791cdad0b8f0b04576afd8b | [
"MIT"
] | 5 | 2017-09-23T19:35:30.000Z | 2017-09-27T20:00:02.000Z | test/elir_test.exs | azohra/elir | 45a7fcc051949d77a791cdad0b8f0b04576afd8b | [
"MIT"
] | 4 | 2017-10-02T15:43:21.000Z | 2017-10-03T01:21:26.000Z | test/elir_test.exs | azohra/elir | 45a7fcc051949d77a791cdad0b8f0b04576afd8b | [
"MIT"
] | null | null | null | defmodule ElirTest do
use ExUnit.Case
@elir_demo_project_path "rspec_demo"
@env %{"devices" => ["desktop", "mobile"], "languages" => ["en", "babylonian"]}
test "Elir can be configured from a YAML file in a relative path" do
assert {:ok, file} = Elir.configure(@elir_demo_project_path)
assert %{"elir"... | 34.142857 | 83 | 0.599372 |
73ccec57abc25d089c66a4fd291502396e5a3604 | 1,549 | ex | Elixir | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_cloud_storage_path.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_cloud_storage_path.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_cloud_storage_path.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.270833 | 120 | 0.742414 |
73ccff67c06777d6ff48965894914c838f93445c | 673 | ex | Elixir | fixtures/module_with_nested.ex | stephanos/rewire | 0dbbec223aa3fa667c9fe428f3f59c8c24a38b39 | [
"Apache-2.0"
] | 54 | 2020-10-06T09:11:06.000Z | 2022-03-14T12:47:49.000Z | fixtures/module_with_nested.ex | stephanos/rewire | 0dbbec223aa3fa667c9fe428f3f59c8c24a38b39 | [
"Apache-2.0"
] | 6 | 2020-10-07T04:15:37.000Z | 2021-11-15T18:46:10.000Z | fixtures/module_with_nested.ex | stephanos/rewire | 0dbbec223aa3fa667c9fe428f3f59c8c24a38b39 | [
"Apache-2.0"
] | 1 | 2020-10-05T19:36:19.000Z | 2020-10-05T19:36:19.000Z | defmodule Rewire.ModuleWithNested do
defmodule RedHerring do
end
defmodule Nested do
alias Rewire.ModuleWithNested.Nested.NestedNested
@nested Rewire.ModuleWithNested.Nested.NestedNested
def hello(), do: NestedNested.hello()
def hello_with_property(), do: @nested.hello_with_property()
defmo... | 24.925926 | 64 | 0.728083 |
73cd0ebd1fe813d20f9df01fba95a9c6110d8288 | 2,888 | exs | Elixir | mix.exs | gissandrogama/find_my_personal | 12f23b37e967949af9f3e511cf1ce684452d8f66 | [
"MIT"
] | null | null | null | mix.exs | gissandrogama/find_my_personal | 12f23b37e967949af9f3e511cf1ce684452d8f66 | [
"MIT"
] | 11 | 2022-01-12T02:39:42.000Z | 2022-02-09T02:17:04.000Z | mix.exs | gissandrogama/find_my_personal | 12f23b37e967949af9f3e511cf1ce684452d8f66 | [
"MIT"
] | null | null | null | defmodule FindMyPersonal.MixProject do
@moduledoc """
this mix
"""
use Mix.Project
@github_url "https://github.com/gissandrogama/find_my_personal.git"
def project do
[
app: :find_my_personal,
version: "0.1.0",
elixir: "~> 1.12",
description: "Aplicação find my personal, que lig... | 29.171717 | 84 | 0.567867 |
73cd2d3b993d39f69747ccfaba6448861bf45b07 | 625 | ex | Elixir | lib/stages/stage_munged_ops.ex | cyberpunk-ventures/ex_golos | 2a8f32488b84590ddbb58fd12aaa1cbb9f48efd1 | [
"MIT"
] | 5 | 2016-12-06T17:04:30.000Z | 2017-02-26T19:08:35.000Z | lib/stages/stage_munged_ops.ex | cyberpunk-ventures/ex_golos | 2a8f32488b84590ddbb58fd12aaa1cbb9f48efd1 | [
"MIT"
] | null | null | null | lib/stages/stage_munged_ops.ex | cyberpunk-ventures/ex_golos | 2a8f32488b84590ddbb58fd12aaa1cbb9f48efd1 | [
"MIT"
] | null | null | null | defmodule Golos.Stage.MungedOps do
use GenStage
require Logger
alias Golos.RawOps
def start_link(args, options) do
GenStage.start_link(__MODULE__, args, options)
end
def init(state) do
Logger.info("Golos structured ops producer initializing...")
{:producer_consumer, state,
subscribe_to: ... | 24.038462 | 82 | 0.712 |
73cd2e362da09e676b5323f5562d73a35014a76f | 2,580 | ex | Elixir | lib/pundit/default_policy.ex | nonrational/pundit-elixir | 5ca084c5457fa4f97ad1fd7ab9b2024b9900d805 | [
"MIT"
] | 24 | 2019-03-24T21:04:09.000Z | 2022-01-03T02:59:58.000Z | lib/pundit/default_policy.ex | nonrational/pundit-elixir | 5ca084c5457fa4f97ad1fd7ab9b2024b9900d805 | [
"MIT"
] | 1 | 2021-03-24T13:27:54.000Z | 2021-03-24T13:27:54.000Z | lib/pundit/default_policy.ex | nonrational/pundit-elixir | 5ca084c5457fa4f97ad1fd7ab9b2024b9900d805 | [
"MIT"
] | 4 | 2019-10-14T19:59:28.000Z | 2021-03-24T12:30:06.000Z | defmodule Pundit.DefaultPolicy do
@moduledoc """
Default access policies for a given type.
All of the functions here are named for actions in a [Phoenix controller](https://hexdocs.pm/phoenix/controllers.html#actions).
If you `use` this module, then default implementations will be added in your module that al... | 34.864865 | 129 | 0.627132 |
73cd3a2e01561d4ff6cccd5727ac0518c9ba4b38 | 612 | ex | Elixir | lib/banned_book_report/release.ex | LannyBose/banned-book-report | 38de7d6399609c104f4821dc06672e8f583ecaed | [
"MIT"
] | null | null | null | lib/banned_book_report/release.ex | LannyBose/banned-book-report | 38de7d6399609c104f4821dc06672e8f583ecaed | [
"MIT"
] | null | null | null | lib/banned_book_report/release.ex | LannyBose/banned-book-report | 38de7d6399609c104f4821dc06672e8f583ecaed | [
"MIT"
] | null | null | null | defmodule BannedBookReport.Release do
@moduledoc """
Used for executing DB release tasks when run in production without Mix
installed.
"""
@app :banned_book_report
def migrate do
load_app()
for repo <- repos() do
{:ok, _, _} = Ecto.Migrator.with_repo(repo, &Ecto.Migrator.run(&1, :up, all: tr... | 21.103448 | 91 | 0.660131 |
73cd6ce54985a269912e3691b4432259920e682e | 2,210 | exs | Elixir | test/server_tests/node_addition_deletion_test.exs | appoks/opcua-elixir-telemetry | 7f8d1f8190d4b647ced4b2a788f7fd20e87a767f | [
"MIT"
] | null | null | null | test/server_tests/node_addition_deletion_test.exs | appoks/opcua-elixir-telemetry | 7f8d1f8190d4b647ced4b2a788f7fd20e87a767f | [
"MIT"
] | null | null | null | test/server_tests/node_addition_deletion_test.exs | appoks/opcua-elixir-telemetry | 7f8d1f8190d4b647ced4b2a788f7fd20e87a767f | [
"MIT"
] | null | null | null | defmodule ServerNodeAdditionDeletionTest do
use ExUnit.Case
alias OpcUA.{NodeId, Server, QualifiedName}
setup do
{:ok, pid} = OpcUA.Server.start_link()
Server.set_default_config(pid)
%{pid: pid}
end
test "Add a namespace", state do
{:ok, ns_index} = OpcUA.Server.add_namespace(st... | 35.079365 | 98 | 0.69457 |
73cd725984ac67349dfc650be65bd856bc43a350 | 1,278 | ex | Elixir | lib/policr_mini_bot/plugs/handle_new_chat_photo_plug.ex | WOCyo/policr-mini | 23e5e9f927d083cba5993f39e9f122e3a0ad1be2 | [
"MIT"
] | 487 | 2020-06-08T03:04:21.000Z | 2022-03-31T14:51:36.000Z | lib/policr_mini_bot/plugs/handle_new_chat_photo_plug.ex | WOCyo/policr-mini | 23e5e9f927d083cba5993f39e9f122e3a0ad1be2 | [
"MIT"
] | 141 | 2020-06-11T01:03:29.000Z | 2022-03-30T20:23:32.000Z | lib/policr_mini_bot/plugs/handle_new_chat_photo_plug.ex | WOCyo/policr-mini | 23e5e9f927d083cba5993f39e9f122e3a0ad1be2 | [
"MIT"
] | 61 | 2020-06-10T05:25:03.000Z | 2022-03-23T15:54:26.000Z | defmodule PolicrMiniBot.HandleNewChatPhotoPlug do
@moduledoc """
新群组头像处理器。
"""
use PolicrMiniBot, plug: :message_handler
alias PolicrMini.Instances
alias PolicrMini.Instances.Chat
@doc """
匹配消息是否包含群组头像修改。
消息中的 `new_chat_photo` 为 `nil` 时,表示不匹配。否则匹配。
"""
@impl true
def match(%{new_chat_photo: ... | 22.421053 | 76 | 0.638498 |
73cd825f21efbc5adadcde66594a7d85e95bab30 | 5,970 | ex | Elixir | lib/ecto/adapters/mysql.ex | mschae/ecto | 00f85444c4f61080617179232c0d528381de5ec3 | [
"Apache-2.0"
] | 1 | 2019-05-07T15:05:52.000Z | 2019-05-07T15:05:52.000Z | lib/ecto/adapters/mysql.ex | mschae/ecto | 00f85444c4f61080617179232c0d528381de5ec3 | [
"Apache-2.0"
] | null | null | null | lib/ecto/adapters/mysql.ex | mschae/ecto | 00f85444c4f61080617179232c0d528381de5ec3 | [
"Apache-2.0"
] | null | null | null | defmodule Ecto.Adapters.MySQL do
@moduledoc """
Adapter module for MySQL.
It handles and pools the connections to the MySQL
database using `mariaex` and a connection pool,
such as `poolboy`.
## Options
MySQL options split in different categories described
below. All options should be given via the re... | 32.445652 | 108 | 0.653769 |
73cd856d42a9da869a6e3ecec4d5bf7be9129143 | 85 | exs | Elixir | astreu_k8s/test/astreu_k8s_test.exs | wesleimp/Astreu | 4d430733e7ecc8b3eba8e27811a152aa2c6d79c1 | [
"Apache-2.0"
] | null | null | null | astreu_k8s/test/astreu_k8s_test.exs | wesleimp/Astreu | 4d430733e7ecc8b3eba8e27811a152aa2c6d79c1 | [
"Apache-2.0"
] | null | null | null | astreu_k8s/test/astreu_k8s_test.exs | wesleimp/Astreu | 4d430733e7ecc8b3eba8e27811a152aa2c6d79c1 | [
"Apache-2.0"
] | null | null | null | defmodule AstreuK8sTest do
use ExUnit.Case
test "greets the world" do
end
end
| 12.142857 | 28 | 0.741176 |
73cd90dc3d1a5baeaec381ef3dc2b14aca92bfdb | 77 | ex | Elixir | lib/find_my_personal_web/views/member_view.ex | romenigld/find_my_personal | d3545d29cdf80c6e2a90b0bb784579bbd488120c | [
"MIT"
] | null | null | null | lib/find_my_personal_web/views/member_view.ex | romenigld/find_my_personal | d3545d29cdf80c6e2a90b0bb784579bbd488120c | [
"MIT"
] | 11 | 2022-01-12T02:39:42.000Z | 2022-02-09T02:17:04.000Z | lib/find_my_personal_web/views/member_view.ex | gissandrogama/find_my_personal | 12f23b37e967949af9f3e511cf1ce684452d8f66 | [
"MIT"
] | null | null | null | defmodule FindMyPersonalWeb.MemberView do
use FindMyPersonalWeb, :view
end
| 19.25 | 41 | 0.844156 |
73cd9bbd29d90eb386158bf8fb19109a71ad85ec | 2,298 | ex | Elixir | lib/winner_web/live/winner_resources_live.ex | manojsamanta/winner | 63293ff2f53e7dd271470bfb36498a303a2394b0 | [
"MIT"
] | null | null | null | lib/winner_web/live/winner_resources_live.ex | manojsamanta/winner | 63293ff2f53e7dd271470bfb36498a303a2394b0 | [
"MIT"
] | null | null | null | lib/winner_web/live/winner_resources_live.ex | manojsamanta/winner | 63293ff2f53e7dd271470bfb36498a303a2394b0 | [
"MIT"
] | null | null | null | defmodule WinnerWeb.WinnerResourcesLive do
use Phoenix.LiveView
alias WinnerWeb.RaffleState
def render(assigns) do
WinnerWeb.WinnerView.render("index.html", assigns)
end
def mount(session, socket) do
socket =
socket
|> new_raffle()
if connected?(socket) do
{:ok, schedule_tick... | 26.113636 | 185 | 0.660139 |
73cda9db5bc0072488a7f2cffaec6c18c665996a | 598 | exs | Elixir | test/vec3/vec3_creation_test.exs | crertel/graphmath | 798e51d21d509e397a86d9ca855ef18a92243583 | [
"Unlicense"
] | 70 | 2015-01-07T10:13:38.000Z | 2021-09-29T05:06:14.000Z | test/vec3/vec3_creation_test.exs | crertel/graphmath | 798e51d21d509e397a86d9ca855ef18a92243583 | [
"Unlicense"
] | 28 | 2015-01-22T22:38:24.000Z | 2021-06-24T06:15:38.000Z | test/vec3/vec3_creation_test.exs | crertel/graphmath | 798e51d21d509e397a86d9ca855ef18a92243583 | [
"Unlicense"
] | 17 | 2015-01-22T18:35:41.000Z | 2020-12-24T22:42:40.000Z | defmodule GraphmathTest.Vec3.CreateVec3 do
use ExUnit.Case
@tag :vec3
@tag :create
test "create returns {0,0,0}" do
assert {0, 0, 0} == Graphmath.Vec3.create()
end
@tag :vec3
@tag :create
test "create returns {x,y,z} given (x,y,z)" do
assert {4, 5, 6} == Graphmath.Vec3.create(4, 5, 6)
end
... | 21.357143 | 59 | 0.608696 |
73cdb8bcc8734ee0facfc9ef313edee31ea87bd9 | 4 | ex | Elixir | testData/org/elixir_lang/formatting/without_space_around_match_operator.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 21,008 | 2017-04-01T04:06:55.000Z | 2022-03-31T23:11:05.000Z | ecmascript/codegen/tests/test262-min/b5bc1ffd90912fb1.js | sventschui/swc | cd2a2777d9459ba0f67774ed8a37e2b070b51e81 | [
"Apache-2.0",
"MIT"
] | 2,309 | 2018-01-14T05:54:44.000Z | 2022-03-31T15:48:40.000Z | ecmascript/codegen/tests/test262-min/b5bc1ffd90912fb1.js | sventschui/swc | cd2a2777d9459ba0f67774ed8a37e2b070b51e81 | [
"Apache-2.0",
"MIT"
] | 768 | 2018-01-14T05:15:43.000Z | 2022-03-30T11:29:42.000Z | a=1
| 2 | 3 | 0.5 |
73ce006821c411bc4256b42865df30d4e82e5ae9 | 898 | exs | Elixir | test/open_exchange_rates/client_test.exs | venndr/open_exchange_rates | 1e679ac05d8ac924a7329543ec61bd92a0a646ba | [
"MIT"
] | 5 | 2016-08-07T13:57:56.000Z | 2020-10-05T17:17:17.000Z | test/open_exchange_rates/client_test.exs | venndr/open_exchange_rates | 1e679ac05d8ac924a7329543ec61bd92a0a646ba | [
"MIT"
] | null | null | null | test/open_exchange_rates/client_test.exs | venndr/open_exchange_rates | 1e679ac05d8ac924a7329543ec61bd92a0a646ba | [
"MIT"
] | 5 | 2018-07-01T17:41:40.000Z | 2021-03-31T19:06:47.000Z | defmodule OpenExchangeRates.ClientTest do
use ExUnit.Case
use ExVCR.Mock, adapter: ExVCR.Adapter.Hackney
test "it should get exchange rates" do
use_cassette "client/get_latest" do
assert {:ok, %{"base" => "USD"}} = OpenExchangeRates.Client.get_latest
end
end
test "it should handle api errors" ... | 29.933333 | 112 | 0.699332 |
73ce088ce5a3f274f97b40f191039b72138534b0 | 1,742 | ex | Elixir | clients/plus/lib/google_api/plus/v1/model/comment_actor_client_specific_actor_info.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/plus/lib/google_api/plus/v1/model/comment_actor_client_specific_actor_info.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/plus/lib/google_api/plus/v1/model/comment_actor_client_specific_actor_info.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... | 34.156863 | 174 | 0.764064 |
73ce0ebd9cc94984af7058e5a751c41c03d00e9c | 1,694 | ex | Elixir | lib/segment/hispas.ex | Ablu/fintex | 3dd2088c01a4e035478d09df1e09ec244b54cf87 | [
"MIT"
] | 27 | 2015-08-09T16:36:31.000Z | 2020-01-26T17:47:17.000Z | lib/segment/hispas.ex | Ablu/fintex | 3dd2088c01a4e035478d09df1e09ec244b54cf87 | [
"MIT"
] | 14 | 2015-07-31T07:28:07.000Z | 2018-09-06T18:32:37.000Z | lib/segment/hispas.ex | Ablu/fintex | 3dd2088c01a4e035478d09df1e09ec244b54cf87 | [
"MIT"
] | 19 | 2015-07-31T01:25:17.000Z | 2019-06-29T16:28:42.000Z | defmodule FinTex.Segment.HISPAS do
@moduledoc false
defstruct [segment: nil]
def new(segment = [["HISPAS", _, 1, _] | _]) do
%__MODULE__{
segment:
[
segment |> Enum.at(0),
segment |> Enum.at(1),
segment |> Enum.at(2),
segment |> Enum.at(3),
[
... | 23.527778 | 49 | 0.44451 |
73ce26936d77cff844f40fc0311aea0cc3b851ee | 22,069 | ex | Elixir | clients/compute/lib/google_api/compute/v1/api/target_tcp_proxies.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/api/target_tcp_proxies.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/api/target_tcp_proxies.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... | 50.385845 | 434 | 0.655308 |
73ce2eded3974fde878d97a300e008d3028cc165 | 268 | exs | Elixir | test/list_length_test.exs | felipe-jm/ignite-elixir-challenge-01 | b16a1728a76485bc8850b24797d52a483bdfa1db | [
"MIT"
] | null | null | null | test/list_length_test.exs | felipe-jm/ignite-elixir-challenge-01 | b16a1728a76485bc8850b24797d52a483bdfa1db | [
"MIT"
] | null | null | null | test/list_length_test.exs | felipe-jm/ignite-elixir-challenge-01 | b16a1728a76485bc8850b24797d52a483bdfa1db | [
"MIT"
] | null | null | null | defmodule ListLengthTest do
use ExUnit.Case
describe "call/1" do
test "returns the list length" do
list = [1, 2, 3, 5, 7]
response = ListLength.call(list)
expected_response = 5
assert response == expected_response
end
end
end
| 16.75 | 42 | 0.641791 |
73ce58cce38101c37de8a762e0b3b264d6079ce4 | 48,669 | ex | Elixir | lib/rummage_ecto/services/build_search_query.ex | acolin/rummage_ecto | 69b83579437c9d88de6b1951b6ee831424cfaec3 | [
"MIT"
] | 99 | 2018-08-19T10:31:42.000Z | 2021-10-31T03:36:53.000Z | lib/rummage_ecto/services/build_search_query.ex | acolin/rummage_ecto | 69b83579437c9d88de6b1951b6ee831424cfaec3 | [
"MIT"
] | 43 | 2017-03-14T02:00:41.000Z | 2018-07-05T16:28:39.000Z | lib/rummage_ecto/services/build_search_query.ex | acolin/rummage_ecto | 69b83579437c9d88de6b1951b6ee831424cfaec3 | [
"MIT"
] | 26 | 2018-08-23T06:13:42.000Z | 2021-10-19T06:57:18.000Z | defmodule Rummage.Ecto.Services.BuildSearchQuery do
@moduledoc """
`Rummage.Ecto.Services.BuildSearchQuery` is a service module which serves the
default search hook, `Rummage.Ecto.Hook.Search` that comes shipped with `Rummage.Ecto`.
## Module Attributes
```elixir
@search_types ~w{like ilike eq gt lt gteq ... | 31.098403 | 102 | 0.609443 |
73ceb240245a95ddb9970cd19d38795eb09a52ed | 3,253 | ex | Elixir | lib/ex_admin/themes/admin_lte2/layout.ex | andriybohdan/ex_admin | e31c725078ac4e7390204a87d96360a21ffe7b90 | [
"MIT"
] | 1 | 2018-08-30T20:20:56.000Z | 2018-08-30T20:20:56.000Z | lib/ex_admin/themes/admin_lte2/layout.ex | 8thlight/ex_admin | 314d4068270c47799ec54f719073a565222bcfad | [
"MIT"
] | null | null | null | lib/ex_admin/themes/admin_lte2/layout.ex | 8thlight/ex_admin | 314d4068270c47799ec54f719073a565222bcfad | [
"MIT"
] | 2 | 2018-07-12T07:44:50.000Z | 2018-07-19T11:45:09.000Z | defmodule ExAdmin.Theme.AdminLte2.Layout do
@moduledoc false
import ExAdmin.Navigation
import Phoenix.HTML.Tag, only: [content_tag: 2, content_tag: 3]
use Xain
require Logger
def link_to_active(conn, name, path, id, opts \\ []) do
wrapper = Keyword.get(opts, :wrapper, :li)
active_class = Keyword.ge... | 30.401869 | 89 | 0.599139 |
73cebd7728ff2505e1cdba2148df6269e3e97671 | 17,853 | ex | Elixir | lib/elixir/lib/kernel/parallel_compiler.ex | AsharDweedar/elixir | 2c5b3c8c362e301b9f074db38b62470050fe243d | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/kernel/parallel_compiler.ex | AsharDweedar/elixir | 2c5b3c8c362e301b9f074db38b62470050fe243d | [
"Apache-2.0"
] | 1 | 2018-09-10T23:36:45.000Z | 2018-09-10T23:36:45.000Z | lib/elixir/lib/kernel/parallel_compiler.ex | AsharDweedar/elixir | 2c5b3c8c362e301b9f074db38b62470050fe243d | [
"Apache-2.0"
] | 1 | 2018-09-10T23:32:56.000Z | 2018-09-10T23:32:56.000Z | defmodule Kernel.ParallelCompiler do
@moduledoc """
A module responsible for compiling and requiring files in parallel.
"""
@doc """
Starts a task for parallel compilation.
If you have a file that needs to compile other modules in parallel,
the spawned processes need to be aware of the compiler environm... | 34.266795 | 98 | 0.634963 |
73cef6ec36f36c0492c96d0f1fa6106afda60ffb | 567 | ex | Elixir | lib/extenant_web/controllers/fallback_controller.ex | ThinkForge/extenant | 70a73aed9a5db42a178919562d60861f9aa09bcb | [
"Apache-2.0"
] | null | null | null | lib/extenant_web/controllers/fallback_controller.ex | ThinkForge/extenant | 70a73aed9a5db42a178919562d60861f9aa09bcb | [
"Apache-2.0"
] | 1 | 2018-11-24T15:09:30.000Z | 2018-11-24T15:09:30.000Z | lib/extenant_web/controllers/fallback_controller.ex | ThinkForge/extenant | 70a73aed9a5db42a178919562d60861f9aa09bcb | [
"Apache-2.0"
] | null | null | null | defmodule ExtenantWeb.FallbackController do
@moduledoc """
Translates controller action results into valid `Plug.Conn` responses.
See `Phoenix.Controller.action_fallback/1` for more details.
"""
use ExtenantWeb, :controller
def call(conn, {:error, %Ecto.Changeset{} = changeset}) do
conn
|> put_sta... | 27 | 76 | 0.707231 |
73cf16d6d81f97d75027648f9c7e51cabb451db9 | 20,341 | exs | Elixir | test/remote_ip_test.exs | ajvondrak/remote_ip | 4826fc437976d7e8dca1ac0ed1ebc7459c6b1a33 | [
"MIT"
] | 178 | 2016-10-17T09:47:02.000Z | 2022-03-22T09:39:02.000Z | test/remote_ip_test.exs | ajvondrak/remote_ip | 4826fc437976d7e8dca1ac0ed1ebc7459c6b1a33 | [
"MIT"
] | 28 | 2016-12-14T09:01:56.000Z | 2022-03-22T16:16:46.000Z | test/remote_ip_test.exs | ajvondrak/remote_ip | 4826fc437976d7e8dca1ac0ed1ebc7459c6b1a33 | [
"MIT"
] | 35 | 2017-01-24T23:06:43.000Z | 2021-11-17T14:43:30.000Z | defmodule RemoteIpTest do
use ExUnit.Case, async: true
use Plug.Test
doctest RemoteIp
@unknown [
{"forwarded", "for=unknown"},
{"x-forwarded-for", "not_an_ip"},
{"x-client-ip", "_obf"},
{"x-real-ip", "1.2.3"},
{"custom", "::g"}
]
@loopback [
{"forwarded", "for=127.0.0.1"},
{"x... | 32.65008 | 89 | 0.550366 |
73cf38a90b336f0b58910a9b5cfc4a8f4230d070 | 1,412 | exs | Elixir | test/data_serialize_test/invertible_test.exs | thomas9911/data_serialize | d8c7bf962ba8aa4ef54bca4d720108df5fe9b2b9 | [
"Unlicense"
] | 2 | 2020-01-18T05:39:30.000Z | 2020-08-09T09:51:12.000Z | test/data_serialize_test/invertible_test.exs | thomas9911/data_serialize | d8c7bf962ba8aa4ef54bca4d720108df5fe9b2b9 | [
"Unlicense"
] | 1 | 2019-11-11T12:15:01.000Z | 2019-11-11T12:15:01.000Z | test/data_serialize_test/invertible_test.exs | thomas9911/data_serialize | d8c7bf962ba8aa4ef54bca4d720108df5fe9b2b9 | [
"Unlicense"
] | null | null | null | defmodule DataSerializeTest.Invertible do
use ExUnit.Case
test "cbor" do
start_map = %{
"nested" => %{
"nesting" => "oke",
"other" => "one"
},
"list" => [1, 2, 3, 4],
"key" => "value"
}
assert {:ok, cbor} = DataSerialize.map_to_cbor_hex(start_map)
assert {:o... | 21.074627 | 65 | 0.525496 |
73cf634ce16eab453ba9c359b723425728e5e669 | 781 | ex | Elixir | lib/ex338_web/views/draft_pick_view.ex | axelclark/ex338 | 3fb3c260d93bda61f7636ee1a677770d2dc1b89a | [
"MIT"
] | 17 | 2016-12-22T06:39:26.000Z | 2021-01-20T13:51:13.000Z | lib/ex338_web/views/draft_pick_view.ex | axelclark/ex338 | 3fb3c260d93bda61f7636ee1a677770d2dc1b89a | [
"MIT"
] | 608 | 2016-08-06T18:57:58.000Z | 2022-03-01T02:48:17.000Z | lib/ex338_web/views/draft_pick_view.ex | axelclark/ex338 | 3fb3c260d93bda61f7636ee1a677770d2dc1b89a | [
"MIT"
] | 6 | 2017-11-21T22:35:45.000Z | 2022-01-11T21:37:40.000Z | defmodule Ex338Web.DraftPickView do
use Ex338Web, :view
def current_picks(draft_picks, amount) when amount >= 0 do
next_pick_index = Enum.find_index(draft_picks, &(&1.fantasy_player_id == nil))
get_current_picks(draft_picks, next_pick_index, amount)
end
defp get_current_picks(draft_picks, nil, amount)... | 22.970588 | 82 | 0.696543 |
73cf6b5cc6fe4580c3a4ef3c5e866110a13b30bd | 2,868 | exs | Elixir | test/components/form/submit_test.exs | EddyLane/surface | 1f13259cbdf81b5a4740ee13349a48f8b6c54bb5 | [
"MIT"
] | null | null | null | test/components/form/submit_test.exs | EddyLane/surface | 1f13259cbdf81b5a4740ee13349a48f8b6c54bb5 | [
"MIT"
] | null | null | null | test/components/form/submit_test.exs | EddyLane/surface | 1f13259cbdf81b5a4740ee13349a48f8b6c54bb5 | [
"MIT"
] | null | null | null | defmodule Surface.Components.Form.SubmitTest do
use Surface.ConnCase, async: true
alias Surface.Components.Form.Submit
test "label only" do
html =
render_surface do
~H"""
<Submit label="Submit" />
"""
end
assert html =~ """
<button type="submit">Submit</bu... | 21.088235 | 77 | 0.514296 |
73cf7b8a1ae7401b44c8697af4ac4f486103f83f | 6,167 | ex | Elixir | clients/network_management/lib/google_api/network_management/v1/model/step.ex | jechol/elixir-google-api | 0290b683dfc6491ca2ef755a80bc329378738d03 | [
"Apache-2.0"
] | null | null | null | clients/network_management/lib/google_api/network_management/v1/model/step.ex | jechol/elixir-google-api | 0290b683dfc6491ca2ef755a80bc329378738d03 | [
"Apache-2.0"
] | null | null | null | clients/network_management/lib/google_api/network_management/v1/model/step.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... | 64.915789 | 301 | 0.721258 |
73d0017e8fb7767ed9c71f730807f4ef2dc2bc37 | 16,304 | ex | Elixir | lib/aws/generated/qldb.ex | andrewhr/aws-elixir | 861dc2fafca50a2b2f83badba4cdcb44b5b0c171 | [
"Apache-2.0"
] | null | null | null | lib/aws/generated/qldb.ex | andrewhr/aws-elixir | 861dc2fafca50a2b2f83badba4cdcb44b5b0c171 | [
"Apache-2.0"
] | null | null | null | lib/aws/generated/qldb.ex | andrewhr/aws-elixir | 861dc2fafca50a2b2f83badba4cdcb44b5b0c171 | [
"Apache-2.0"
] | null | null | null | # WARNING: DO NOT EDIT, AUTO-GENERATED CODE!
# See https://github.com/aws-beam/aws-codegen for more details.
defmodule AWS.QLDB do
@moduledoc """
The control plane for Amazon QLDB
"""
alias AWS.Client
alias AWS.Request
def metadata do
%AWS.ServiceMetadata{
abbreviation: nil,
api_version: ... | 25.160494 | 190 | 0.641438 |
73d004a921c9bea87e5e128b10d34d9e140b7648 | 139 | ex | Elixir | examples/nfq/lib/nfq/application.ex | shun159/brahman | dfa04d757c4e4422b00bdc97a694d2d6637708f9 | [
"Beerware"
] | null | null | null | examples/nfq/lib/nfq/application.ex | shun159/brahman | dfa04d757c4e4422b00bdc97a694d2d6637708f9 | [
"Beerware"
] | null | null | null | examples/nfq/lib/nfq/application.ex | shun159/brahman | dfa04d757c4e4422b00bdc97a694d2d6637708f9 | [
"Beerware"
] | null | null | null | defmodule NFQ.Application do
@moduledoc false
use Application
def start(_type, _args) do
NFQ.Supervisor.start_link()
end
end
| 13.9 | 31 | 0.733813 |
73d0193cf2e42aa48b57176d9085c796b597649e | 1,111 | exs | Elixir | test/doctor_schedule/appointments/repositories/provider_repository_test.exs | theguuholi/doctor_schedule | a92dfa92d1398c59718be2428d36bb326d6bc361 | [
"MIT"
] | 2 | 2022-03-11T12:15:01.000Z | 2022-03-11T13:53:21.000Z | test/doctor_schedule/appointments/repositories/provider_repository_test.exs | theguuholi/doctor_schedule | a92dfa92d1398c59718be2428d36bb326d6bc361 | [
"MIT"
] | 3 | 2020-12-12T22:10:17.000Z | 2021-04-05T12:53:12.000Z | test/doctor_schedule/appointments/repositories/provider_repository_test.exs | theguuholi/doctor_schedule | a92dfa92d1398c59718be2428d36bb326d6bc361 | [
"MIT"
] | 1 | 2021-02-26T04:24:34.000Z | 2021-02-26T04:24:34.000Z | defmodule DoctorSchedule.Appointments.Repositories.ProviderRepositoryTest do
use DoctorSchedule.DataCase
alias DoctorSchedule.AppointmentFixture
alias DoctorSchedule.Appointments.Repositories.ProviderRepository
alias DoctorSchedule.Repo
describe "Tests Provider in Appointments" do
test "all_day_fom_prov... | 38.310345 | 93 | 0.754275 |
73d0722d8394dd6fc891fef2a63ae344bdda508e | 147 | ex | Elixir | Chapter02/apps/elixir_drip_web/lib/elixir_drip_web/controllers/page_controller.ex | sthagen/Mastering-Elixir | 1b52ee79afe6b2ae80767a5e55c2be51df3c4c1d | [
"MIT"
] | 28 | 2018-08-09T05:05:29.000Z | 2022-03-14T06:59:07.000Z | Chapter02/apps/elixir_drip_web/lib/elixir_drip_web/controllers/page_controller.ex | sthagen/Mastering-Elixir | 1b52ee79afe6b2ae80767a5e55c2be51df3c4c1d | [
"MIT"
] | 1 | 2019-02-11T09:11:33.000Z | 2019-05-06T06:40:19.000Z | Chapter02/apps/elixir_drip_web/lib/elixir_drip_web/controllers/page_controller.ex | sthagen/Mastering-Elixir | 1b52ee79afe6b2ae80767a5e55c2be51df3c4c1d | [
"MIT"
] | 8 | 2018-08-09T14:53:02.000Z | 2020-12-14T19:31:21.000Z | defmodule ElixirDripWeb.PageController do
use ElixirDripWeb, :controller
def index(conn, _params) do
render(conn, "index.html")
end
end
| 18.375 | 41 | 0.748299 |
73d081016b788ffd852f8a41eeed53f883ce6b6c | 989 | exs | Elixir | mix.exs | lowks/currently | f5d884a242522a044907ab10947aa00f3dea4d83 | [
"MIT"
] | null | null | null | mix.exs | lowks/currently | f5d884a242522a044907ab10947aa00f3dea4d83 | [
"MIT"
] | null | null | null | mix.exs | lowks/currently | f5d884a242522a044907ab10947aa00f3dea4d83 | [
"MIT"
] | null | null | null | Code.ensure_loaded?(Hex) and Hex.start
defmodule Currently.Mixfile do
use Mix.Project
def project do
[ app: :currently,
version: "0.0.4",
elixir: "~> 1.0.0",
escript: escript,
escript_embed_elixir: true,
description: description,
package: package,
deps: deps ]
end
... | 21.042553 | 72 | 0.615774 |
73d0ce3c7854afec4855b67fef677539f57e5952 | 744 | ex | Elixir | lib/magirator_app_gui_vue_web/gettext.ex | Devotu/magirator_app_gui_vue | a2e3fddc99538df5988b87abd78d016e10a98c22 | [
"MIT"
] | null | null | null | lib/magirator_app_gui_vue_web/gettext.ex | Devotu/magirator_app_gui_vue | a2e3fddc99538df5988b87abd78d016e10a98c22 | [
"MIT"
] | null | null | null | lib/magirator_app_gui_vue_web/gettext.ex | Devotu/magirator_app_gui_vue | a2e3fddc99538df5988b87abd78d016e10a98c22 | [
"MIT"
] | null | null | null | defmodule MagiratorAppGuiVueWeb.Gettext do
@moduledoc """
A module providing Internationalization with a gettext-based API.
By using [Gettext](https://hexdocs.pm/gettext),
your module gains a set of macros for translations, for example:
import MagiratorAppGuiVueWeb.Gettext
# Simple translation
... | 29.76 | 72 | 0.696237 |
73d0cf502ce040798cdea9abf763d893c0a5da8d | 1,597 | exs | Elixir | bob/example.exs | wobh/xelixir | 63e5beec40d5c441cf6cf87f30c29848f481bb1b | [
"MIT"
] | null | null | null | bob/example.exs | wobh/xelixir | 63e5beec40d5c441cf6cf87f30c29848f481bb1b | [
"MIT"
] | null | null | null | bob/example.exs | wobh/xelixir | 63e5beec40d5c441cf6cf87f30c29848f481bb1b | [
"MIT"
] | null | null | null | defmodule Teenager do
@doc """
Answers to `hey` like a teenager.
## Examples
iex> Teenager.hey("")
"Fine. Be that way!"
iex> Teenager.hey("Do you like math?")
"Sure."
iex> Teenager.hey("HELLO!")
"Whoa, chill out!"
iex> Teenager.hey("Coding is cool.")
"Whatever."
"""
def hey(input) do
... | 27.067797 | 78 | 0.603006 |
73d0d933f90de9afc20c4f8b9d7dac926401b013 | 456 | ex | Elixir | lib/web/plugs/assign_current_user.ex | leonardocouy/accent | 29fb324395ff998cc5cdc6947c60070ffabe647c | [
"BSD-3-Clause"
] | null | null | null | lib/web/plugs/assign_current_user.ex | leonardocouy/accent | 29fb324395ff998cc5cdc6947c60070ffabe647c | [
"BSD-3-Clause"
] | null | null | null | lib/web/plugs/assign_current_user.ex | leonardocouy/accent | 29fb324395ff998cc5cdc6947c60070ffabe647c | [
"BSD-3-Clause"
] | null | null | null | defmodule Accent.Plugs.AssignCurrentUser do
import Plug.Conn
alias Accent.UserAuthFetcher
def init(_), do: nil
@doc """
Takes a Plug.Conn and fetch the associated user giving the Authorization header.
It assigns nil if any of the steps fails.
"""
def call(conn, _opts) do
user =
conn
|... | 20.727273 | 82 | 0.671053 |
73d0dc5276a6537cd017f58125e3ed70f81f1765 | 498 | ex | Elixir | backend/lib/kakeibo/accounts/balance.ex | makoto-engineer/kakeibo | d6882ccfa56d376a39dd307d28417d956ddc8584 | [
"MIT"
] | null | null | null | backend/lib/kakeibo/accounts/balance.ex | makoto-engineer/kakeibo | d6882ccfa56d376a39dd307d28417d956ddc8584 | [
"MIT"
] | null | null | null | backend/lib/kakeibo/accounts/balance.ex | makoto-engineer/kakeibo | d6882ccfa56d376a39dd307d28417d956ddc8584 | [
"MIT"
] | null | null | null | defmodule Kakeibo.Accounts.Balance do
use Ecto.Schema
import Ecto.Changeset
schema "balance" do
field :day, :date
field :expense, :integer
field :income, :integer
field :method, :string
field :title, :string
field :who, :string
timestamps()
end
@doc false
def changeset(balance... | 21.652174 | 74 | 0.646586 |
73d0e1e2dbc92ccc2a0f1144abcf04857b7e1269 | 6,070 | ex | Elixir | apps/mishka_html/lib/mishka_html_web/live/admin_notifs.ex | mojtaba-naseri/mishka-cms | 1fb35b49177b9b27f5e68c1b0bf9d72dc0ff9935 | [
"Apache-2.0"
] | null | null | null | apps/mishka_html/lib/mishka_html_web/live/admin_notifs.ex | mojtaba-naseri/mishka-cms | 1fb35b49177b9b27f5e68c1b0bf9d72dc0ff9935 | [
"Apache-2.0"
] | null | null | null | apps/mishka_html/lib/mishka_html_web/live/admin_notifs.ex | mojtaba-naseri/mishka-cms | 1fb35b49177b9b27f5e68c1b0bf9d72dc0ff9935 | [
"Apache-2.0"
] | null | null | null | defmodule MishkaHtmlWeb.AdminBlogNotifsLive do
use MishkaHtmlWeb, :live_view
alias MishkaContent.General.Notif
@section_title MishkaTranslator.Gettext.dgettext("html_live", "مدیریت اعلانات")
use MishkaHtml.Helpers.LiveCRUD,
module: MishkaContent.General.Notif,
redirect: __MODULE__,
router: R... | 38.176101 | 202 | 0.619934 |
73d0fb732c943fab51ba4531648acbfacda759d0 | 5,575 | ex | Elixir | clients/partners/lib/google_api/partners/v2/api/analytics.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/partners/lib/google_api/partners/v2/api/analytics.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/partners/lib/google_api/partners/v2/api/analytics.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... | 56.313131 | 428 | 0.715336 |
73d10d9ed7ff3fc62d11ebd13f54ff6218bccd06 | 102 | ex | Elixir | lib/bible/repo.ex | wbotelhos/crud-in-5-minutes-with-phoenix-and-elixir | f3218507d5c2ea7c23170d4316b41979beaa9aa6 | [
"MIT"
] | 2 | 2021-05-28T11:32:22.000Z | 2021-05-28T19:39:03.000Z | lib/bible/repo.ex | wbotelhos/crud-in-5-minutes-with-phoenix-and-elixir | f3218507d5c2ea7c23170d4316b41979beaa9aa6 | [
"MIT"
] | null | null | null | lib/bible/repo.ex | wbotelhos/crud-in-5-minutes-with-phoenix-and-elixir | f3218507d5c2ea7c23170d4316b41979beaa9aa6 | [
"MIT"
] | null | null | null | defmodule Bible.Repo do
use Ecto.Repo,
otp_app: :bible,
adapter: Ecto.Adapters.Postgres
end
| 17 | 35 | 0.715686 |
73d1133a21369ac65a879ecc7bd084d70d62582a | 283 | exs | Elixir | priv/config_storage/migrations/20171025231226_add_farmware_table.exs | pdgonzalez872/farmbot_os | a444248f05ee8f4fe57f6a4865b942131960f76c | [
"MIT"
] | 2 | 2018-08-01T23:07:52.000Z | 2018-10-17T12:49:21.000Z | priv/config_storage/migrations/20171025231226_add_farmware_table.exs | pdgonzalez872/farmbot_os | a444248f05ee8f4fe57f6a4865b942131960f76c | [
"MIT"
] | null | null | null | priv/config_storage/migrations/20171025231226_add_farmware_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.AddDevicesTable do
use Ecto.Migration
def change do
create table("farmware_repositories") do
add(:manifests, :text)
add(:url, :string)
end
create(unique_index("farmware_repositories", [:url]))
end
end
| 21.769231 | 68 | 0.713781 |
73d11f46d1aa0b5a81e158ce56a7cbc89206407d | 1,632 | exs | Elixir | bench/storage/subscribe_to_stream_bench.exs | MichalDolata/eventstore | 2a6725fcb4c398d81a74455b6077901189b75386 | [
"MIT"
] | null | null | null | bench/storage/subscribe_to_stream_bench.exs | MichalDolata/eventstore | 2a6725fcb4c398d81a74455b6077901189b75386 | [
"MIT"
] | null | null | null | bench/storage/subscribe_to_stream_bench.exs | MichalDolata/eventstore | 2a6725fcb4c398d81a74455b6077901189b75386 | [
"MIT"
] | null | null | null | defmodule SubscribeToStreamBench do
use Benchfella
alias EventStore.{EventFactory, ProcessHelper, StorageInitializer}
alias TestEventStore, as: EventStore
@await_timeout_ms 100_000
before_each_bench(_) do
StorageInitializer.reset_storage!()
{:ok, pid} = TestEventStore.start_link()
context = [... | 24.727273 | 92 | 0.678922 |
73d12a13b9d065e9e00ef108543fe340a497b029 | 1,024 | exs | Elixir | test/lucidboard_web/view_helper_test.exs | borodark/lucidboard | 487a9a54053977ea9704121d4a6a4343012d4421 | [
"MIT"
] | 86 | 2019-01-07T20:49:04.000Z | 2021-10-02T21:15:42.000Z | test/lucidboard_web/view_helper_test.exs | borodark/lucidboard | 487a9a54053977ea9704121d4a6a4343012d4421 | [
"MIT"
] | 26 | 2019-03-27T12:06:52.000Z | 2020-09-20T05:21:09.000Z | test/lucidboard_web/view_helper_test.exs | borodark/lucidboard | 487a9a54053977ea9704121d4a6a4343012d4421 | [
"MIT"
] | 19 | 2015-01-06T19:02:49.000Z | 2020-05-25T08:54:00.000Z | defmodule LucidboardWeb.ViewHelperTest do
use ExUnit.Case
alias Lucidboard.BoardRole
alias LucidboardWeb.ViewHelper
test "more_than_one_owner?" do
assert false == ViewHelper.more_than_one_owner?([])
assert true ==
ViewHelper.more_than_one_owner?([
%BoardRole{board_id: 1, us... | 31.030303 | 68 | 0.572266 |
73d134f0d7084ae4177e9a375bdf7f65eacb38bd | 207 | ex | Elixir | wabanex/lib/wabanex_web/schema.ex | shonorio/nlwt_elixir | 029b731c747e4b4954bc0197881b325fb80b4ab6 | [
"MIT"
] | null | null | null | wabanex/lib/wabanex_web/schema.ex | shonorio/nlwt_elixir | 029b731c747e4b4954bc0197881b325fb80b4ab6 | [
"MIT"
] | null | null | null | wabanex/lib/wabanex_web/schema.ex | shonorio/nlwt_elixir | 029b731c747e4b4954bc0197881b325fb80b4ab6 | [
"MIT"
] | null | null | null | defmodule WabanexWeb.Schema do
use Absinthe.Schema
import_types(WabanexWeb.Schema.Types.Root)
query do
import_fields(:root_query)
end
mutation do
import_fields(:root_mutation)
end
end
| 14.785714 | 44 | 0.753623 |
73d16dd6e432e5c6594f32fc5717d0f472214853 | 1,519 | exs | Elixir | test/scale/ggity_scale_size_discrete_test.exs | kianmeng/ggity | 75f0097464eae4086f8c70e4bea995d60571eba9 | [
"MIT"
] | null | null | null | test/scale/ggity_scale_size_discrete_test.exs | kianmeng/ggity | 75f0097464eae4086f8c70e4bea995d60571eba9 | [
"MIT"
] | null | null | null | test/scale/ggity_scale_size_discrete_test.exs | kianmeng/ggity | 75f0097464eae4086f8c70e4bea995d60571eba9 | [
"MIT"
] | null | null | null | defmodule GGityScaleSizeDiscreteTest do
use ExUnit.Case
import SweetXml
alias GGity.Scale.Size
setup do
%{scale: Size.Discrete.new() |> Size.Discrete.train(["beef", "chicken", "fish", "lamb"])}
end
describe "new/2" do
test "returns a proper scale for discrete values", %{scale: scale} do
as... | 31 | 93 | 0.581303 |
73d18a575b54f43ade0f4a7b68b88c1dfe6b0535 | 1,194 | ex | Elixir | proficionym_api/lib/proficionym_api.ex | appropont/proficionym-api-elixir | 37519691e04176490154d7d8205c7bf1f90ff8b3 | [
"Apache-2.0"
] | null | null | null | proficionym_api/lib/proficionym_api.ex | appropont/proficionym-api-elixir | 37519691e04176490154d7d8205c7bf1f90ff8b3 | [
"Apache-2.0"
] | null | null | null | proficionym_api/lib/proficionym_api.ex | appropont/proficionym-api-elixir | 37519691e04176490154d7d8205c7bf1f90ff8b3 | [
"Apache-2.0"
] | null | null | null | defmodule ProficionymApi do
use Application
# See http://elixir-lang.org/docs/stable/elixir/Application.html
# for more information on OTP Applications
def start(_type, _args) do
import Supervisor.Spec
# Define workers and child supervisors to be supervised
children = [
# Start the endpoint ... | 32.27027 | 92 | 0.703518 |
73d1ad822a60ac26d3d5ef67fe1440659011cffd | 1,117 | ex | Elixir | apps/cashtrail_web/lib/cashtrail_web/channels/user_socket.ex | maxmaccari/cashtrail | 74ec7ff1f8a41299a6086dc98719a32cbfbe9ee7 | [
"MIT"
] | 6 | 2020-05-02T01:12:24.000Z | 2020-06-23T12:31:32.000Z | apps/cashtrail_web/lib/cashtrail_web/channels/user_socket.ex | maxmaccari/cashtrail | 74ec7ff1f8a41299a6086dc98719a32cbfbe9ee7 | [
"MIT"
] | 16 | 2020-05-02T00:07:51.000Z | 2021-06-11T01:54:11.000Z | apps/cashtrail_web/lib/cashtrail_web/channels/user_socket.ex | maxmaccari/cashtrail | 74ec7ff1f8a41299a6086dc98719a32cbfbe9ee7 | [
"MIT"
] | null | null | null | defmodule CashtrailWeb.UserSocket do
@moduledoc false
use Phoenix.Socket
## Channels
# channel "room:*", CashtrailWeb.RoomChannel
# Socket params are passed from the client and can
# be used to verify and authenticate a user. After
# verification, you can put default assigns into
# the socket that wi... | 29.394737 | 84 | 0.696509 |
73d1b3e106e4df03afa3c9609f2e225c2c135a2a | 237 | exs | Elixir | priv/repo/migrations/20151106202916_add_bundle_id_to_commands.exs | matusf/cog | 71708301c7dc570fb0d3498a50f47a70ef957788 | [
"Apache-2.0"
] | 1,003 | 2016-02-23T17:21:12.000Z | 2022-02-20T14:39:35.000Z | priv/repo/migrations/20151106202916_add_bundle_id_to_commands.exs | matusf/cog | 71708301c7dc570fb0d3498a50f47a70ef957788 | [
"Apache-2.0"
] | 906 | 2016-02-22T22:54:19.000Z | 2022-03-11T15:19:43.000Z | priv/repo/migrations/20151106202916_add_bundle_id_to_commands.exs | matusf/cog | 71708301c7dc570fb0d3498a50f47a70ef957788 | [
"Apache-2.0"
] | 95 | 2016-02-23T13:42:31.000Z | 2021-11-30T14:39:55.000Z | defmodule Bishop.Repo.Migrations.AddBundleIdToCommands do
use Ecto.Migration
def change do
alter table(:commands) do
add :bundle_id, references(:bundles, type: :uuid, on_delete: :delete_all), null: false
end
end
end
| 23.7 | 92 | 0.729958 |
73d203f5d07987b3456597b84def2592ff750b51 | 116 | exs | Elixir | test/mb_tools_test.exs | burmajam/mb_tools | c254184d12cf8416fee98de514dd2d6bbba1a2d7 | [
"MIT"
] | null | null | null | test/mb_tools_test.exs | burmajam/mb_tools | c254184d12cf8416fee98de514dd2d6bbba1a2d7 | [
"MIT"
] | null | null | null | test/mb_tools_test.exs | burmajam/mb_tools | c254184d12cf8416fee98de514dd2d6bbba1a2d7 | [
"MIT"
] | null | null | null | defmodule MbToolsTest do
use ExUnit.Case
doctest MbTools
test "the truth" do
assert 1 + 1 == 2
end
end
| 12.888889 | 24 | 0.672414 |
73d22e59d2141deb48e65d30483c5ac7751ba802 | 1,599 | ex | Elixir | clients/big_query_connection/lib/google_api/big_query_connection/v1beta1/model/empty.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/big_query_connection/lib/google_api/big_query_connection/v1beta1/model/empty.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/big_query_connection/lib/google_api/big_query_connection/v1beta1/model/empty.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... | 31.98 | 80 | 0.751094 |
73d287458ace7d772b4dfe130dbf81a2868eb285 | 1,146 | ex | Elixir | lib/analyser.ex | thomasvolk/stressman | 7c1b62d262ea8f2c38854ce053fe2888aaacd5b6 | [
"Apache-2.0"
] | null | null | null | lib/analyser.ex | thomasvolk/stressman | 7c1b62d262ea8f2c38854ce053fe2888aaacd5b6 | [
"Apache-2.0"
] | null | null | null | lib/analyser.ex | thomasvolk/stressman | 7c1b62d262ea8f2c38854ce053fe2888aaacd5b6 | [
"Apache-2.0"
] | null | null | null |
defmodule StressMan.Analyser do
use GenServer
require Logger
def start_link() do
now = StressMan.Time.now()
GenServer.start_link(__MODULE__, {0,0,now,now}, name: via_tuple())
end
defp via_tuple, do: {:via, Registry, {:stress_man_process_registry, "analyser"}}
def add({_duration, {_status, _messa... | 26.651163 | 117 | 0.670157 |
73d2a7d07a9619d067d807ecd452369ee8b26921 | 2,239 | ex | Elixir | clients/display_video/lib/google_api/display_video/v1/model/carrier_and_isp_assigned_targeting_option_details.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/display_video/lib/google_api/display_video/v1/model/carrier_and_isp_assigned_targeting_option_details.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/display_video/lib/google_api/display_video/v1/model/carrier_and_isp_assigned_targeting_option_details.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... | 38.603448 | 223 | 0.744975 |
73d2ae18ab209f589c4614957218fe1b023562b2 | 1,476 | ex | Elixir | lib/yamm_web/live/user_live/form_component.ex | yammine/YAMM | c118eab5029b86c2caf24890dfffa8437684f5d1 | [
"MIT"
] | null | null | null | lib/yamm_web/live/user_live/form_component.ex | yammine/YAMM | c118eab5029b86c2caf24890dfffa8437684f5d1 | [
"MIT"
] | null | null | null | lib/yamm_web/live/user_live/form_component.ex | yammine/YAMM | c118eab5029b86c2caf24890dfffa8437684f5d1 | [
"MIT"
] | null | null | null | defmodule YAMMWeb.UserLive.FormComponent do
use YAMMWeb, :live_component
alias YAMM.Money
@impl true
def update(%{user: user} = assigns, socket) do
changeset = Money.change_user(user)
{:ok,
socket
|> assign(assigns)
|> assign(:changeset, changeset)}
end
@impl true
def handle_eve... | 26.357143 | 67 | 0.632791 |
73d2af5200dbed4dc06727ba79597fb1f494390f | 1,463 | ex | Elixir | lib/white_bread/runners/scenario_runner.ex | ejscunha/white-bread | 1c2eed1c98545beeb70b590426ce9026a8455e97 | [
"MIT"
] | 209 | 2015-03-03T14:14:28.000Z | 2020-10-26T03:23:48.000Z | lib/white_bread/runners/scenario_runner.ex | ejscunha/white-bread | 1c2eed1c98545beeb70b590426ce9026a8455e97 | [
"MIT"
] | 83 | 2015-03-23T11:46:51.000Z | 2020-11-04T09:47:06.000Z | lib/white_bread/runners/scenario_runner.ex | ejscunha/white-bread | 1c2eed1c98545beeb70b590426ce9026a8455e97 | [
"MIT"
] | 46 | 2015-06-12T17:37:21.000Z | 2020-10-30T09:52:45.000Z | defmodule WhiteBread.Runners.ScenarioRunner do
import WhiteBread.Runners.Utilities
alias WhiteBread.Runners.Setup
alias WhiteBread.Runners.StepsRunner
def run(scenario, context, %Setup{} = setup \\ Setup.new) do
start_trapping_exits()
starting_state = setup.starting_state
|> apply_scenario_sta... | 26.6 | 76 | 0.702666 |
73d2d26b39a1770b400f50688bbf2f67c0b0557f | 1,082 | ex | Elixir | lib/reservation_book/application.ex | chargio/reservation_book_phoenix | 87f07e390f0da2bed162d55b26d3c73c0f3aea4a | [
"MIT"
] | null | null | null | lib/reservation_book/application.ex | chargio/reservation_book_phoenix | 87f07e390f0da2bed162d55b26d3c73c0f3aea4a | [
"MIT"
] | null | null | null | lib/reservation_book/application.ex | chargio/reservation_book_phoenix | 87f07e390f0da2bed162d55b26d3c73c0f3aea4a | [
"MIT"
] | null | null | null | defmodule ReservationBook.Application do
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
use Application
def start(_type, _args) do
children = [
# Start the Ecto repository
ReservationBook.Repo,
# Start the Telemetry supervis... | 30.914286 | 73 | 0.721811 |
73d2d9bb6a5ff715f75ee3851c208686823647a0 | 7,305 | ex | Elixir | lib/ex_config.ex | djthread/ex_config | 6900ffe3c0cdc089a224621749bfd5d32cced562 | [
"MIT"
] | null | null | null | lib/ex_config.ex | djthread/ex_config | 6900ffe3c0cdc089a224621749bfd5d32cced562 | [
"MIT"
] | null | null | null | lib/ex_config.ex | djthread/ex_config | 6900ffe3c0cdc089a224621749bfd5d32cced562 | [
"MIT"
] | null | null | null | defmodule ExConfig do
@moduledoc """
Module enhancer for creating a nice place to get configuration data for
your application
To use, create a new module with something like
defmodule MyApp.Config do
use ExConfig
end
Configs under `:my_app` can be had via `MyApp.Config`'s `&fetch/2`,
... | 33.663594 | 79 | 0.650513 |
73d2f278b84aafd9e962a173870faee2b567a555 | 2,067 | ex | Elixir | clients/classroom/lib/google_api/classroom/v1/model/invitation.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/classroom/lib/google_api/classroom/v1/model/invitation.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/classroom/lib/google_api/classroom/v1/model/invitation.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... | 36.910714 | 313 | 0.700532 |
73d3352b671235103e59e9a6b88aff378249f0db | 1,959 | ex | Elixir | lib/absinthe/plug/types.ex | gialib/absinthe_plug | c5aa394a588823cf6b4eb39e347faa98bc373c11 | [
"MIT"
] | null | null | null | lib/absinthe/plug/types.ex | gialib/absinthe_plug | c5aa394a588823cf6b4eb39e347faa98bc373c11 | [
"MIT"
] | null | null | null | lib/absinthe/plug/types.ex | gialib/absinthe_plug | c5aa394a588823cf6b4eb39e347faa98bc373c11 | [
"MIT"
] | null | null | null | defmodule Absinthe.Plug.Types do
@moduledoc """
This module provides GraphQL types that may be useful in Absinthe schema
and type modules.
## `:upload`
Absinthe.Plug can be used to upload files via GraphQL.
For example, the following schema includes a mutation field that accepts
multiple uploaded files... | 25.115385 | 85 | 0.65952 |
73d338786c1dcb1585dd50c3db996e0d679bf66f | 9,769 | exs | Elixir | apps/theta/test/theta/cms_test.exs | LangPham/thetaproject | c6479d1b761ff58fe6ae5f82e2d9de87a8658883 | [
"MIT"
] | null | null | null | apps/theta/test/theta/cms_test.exs | LangPham/thetaproject | c6479d1b761ff58fe6ae5f82e2d9de87a8658883 | [
"MIT"
] | 11 | 2020-07-21T09:34:54.000Z | 2021-08-29T07:38:02.000Z | apps/theta/test/theta/cms_test.exs | LangPham/thetaproject | c6479d1b761ff58fe6ae5f82e2d9de87a8658883 | [
"MIT"
] | null | null | null | defmodule Theta.CMSTest do
use Theta.DataCase
alias Theta.CMS
describe "taxonomy" do
alias Theta.CMS.Taxonomy
@valid_attrs %{title: "some title"}
@update_attrs %{title: "some updated title"}
@invalid_attrs %{title: nil}
def taxonomy_fixture(attrs \\ %{}) do
{:ok, taxonomy} =
... | 30.817035 | 89 | 0.646125 |
73d35430aa52617ef24cd0f17b64d2878c34f125 | 350 | exs | Elixir | priv/repo/seeds.exs | Lugghawk/GameDex | 680d67a925e16ee5ba357d529542d4be4d4c1b99 | [
"MIT"
] | null | null | null | priv/repo/seeds.exs | Lugghawk/GameDex | 680d67a925e16ee5ba357d529542d4be4d4c1b99 | [
"MIT"
] | null | null | null | priv/repo/seeds.exs | Lugghawk/GameDex | 680d67a925e16ee5ba357d529542d4be4d4c1b99 | [
"MIT"
] | null | null | null | # Script for populating the database. You can run it as:
#
# mix run priv/repo/seeds.exs
#
# Inside the script, you can read and write to any of your
# repositories directly:
#
# Gamedex.Repo.insert!(%Gamedex.SomeModel{})
#
# We recommend using the bang functions (`insert!`, `update!`
# and so on) as they will ... | 29.166667 | 61 | 0.705714 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.