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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c81b7015e97b5e90c156f5f3ce22136b9a578e20 | 351 | ex | Elixir | lib/mappers/h3_links/h3_link.ex | evandiewald/mappers | 7359cfb39a4d9d26c42f5917ee04a7e41d3291bc | [
"Apache-2.0"
] | 32 | 2021-04-22T01:55:31.000Z | 2022-02-25T13:17:21.000Z | lib/mappers/h3_links/h3_link.ex | evandiewald/mappers | 7359cfb39a4d9d26c42f5917ee04a7e41d3291bc | [
"Apache-2.0"
] | 58 | 2021-06-04T18:42:59.000Z | 2022-03-31T07:17:01.000Z | lib/mappers/h3_links/h3_link.ex | evandiewald/mappers | 7359cfb39a4d9d26c42f5917ee04a7e41d3291bc | [
"Apache-2.0"
] | 13 | 2021-04-10T06:09:15.000Z | 2022-03-23T13:07:37.000Z | defmodule Mappers.H3.Links.Link do
use Ecto.Schema
import Ecto.Changeset
schema "h3_links" do
field :uplink_id, Ecto.UUID
field :h3_res9_id, :string
timestamps()
end
@doc false
def changeset(link, attrs) do
link
|> cast(attrs, [:uplink_id, :h3_res9_id])
|> validate_required([:upli... | 18.473684 | 51 | 0.678063 |
c81b8da0979c51b5b14bfc4dbe025497876241ef | 2,305 | exs | Elixir | config/prod.exs | edwinthinks/semaphore-demo-elixir-phoenix | 16c60f1a37f204156a17628947a7dda552a76ee0 | [
"MIT"
] | 1 | 2020-03-19T13:26:01.000Z | 2020-03-19T13:26:01.000Z | config/prod.exs | edwinthinks/semaphore-demo-elixir-phoenix | 16c60f1a37f204156a17628947a7dda552a76ee0 | [
"MIT"
] | 6 | 2019-05-29T16:34:19.000Z | 2021-09-01T02:10:43.000Z | config/prod.exs | edwinthinks/semaphore-demo-elixir-phoenix | 16c60f1a37f204156a17628947a7dda552a76ee0 | [
"MIT"
] | 68 | 2019-05-16T15:40:51.000Z | 2022-03-20T06:30:53.000Z | use Mix.Config
# For production, don't forget to configure the url host
# to something meaningful, Phoenix uses this information
# when generating URLs.
#
# Note we also include the path to a cache manifest
# containing the digested version of static files. This
# manifest is generated by the `mix phx.digest` task,
# ... | 33.897059 | 66 | 0.705857 |
c81be6ba64e78706251a5ecfa4858e2a7bb9b3db | 319 | ex | Elixir | lib/exavier/mutators.ex | KingOfRostov/exavier | fe8020361db6295d9ec92cc71fb5170937c22833 | [
"MIT"
] | null | null | null | lib/exavier/mutators.ex | KingOfRostov/exavier | fe8020361db6295d9ec92cc71fb5170937c22833 | [
"MIT"
] | null | null | null | lib/exavier/mutators.ex | KingOfRostov/exavier | fe8020361db6295d9ec92cc71fb5170937c22833 | [
"MIT"
] | null | null | null | defmodule Exavier.Mutators do
@mutators [
__MODULE__.AOR1,
__MODULE__.AOR2,
__MODULE__.ROR1,
__MODULE__.ROR4,
__MODULE__.IfTrue,
]
def operators do
@mutators
|> Enum.flat_map(fn mutator ->
mutator.operators()
end)
|> Enum.uniq()
end
def mutators, do: @mutators
end
| 15.95 | 34 | 0.636364 |
c81bfa57cb531918344716e3cbf0e19f36981888 | 920 | ex | Elixir | lib/makeup/styles/html/pygments/algol_nu.ex | RudolfMan/makeup | 18d38e76f8a2fdb98ccee93f74a57a6430843e3a | [
"BSD-2-Clause"
] | 31 | 2020-10-02T09:01:30.000Z | 2022-03-18T14:58:01.000Z | lib/makeup/styles/html/pygments/algol_nu.ex | RudolfMan/makeup | 18d38e76f8a2fdb98ccee93f74a57a6430843e3a | [
"BSD-2-Clause"
] | 21 | 2020-09-29T12:59:58.000Z | 2022-03-07T15:21:48.000Z | lib/makeup/styles/html/pygments/algol_nu.ex | RudolfMan/makeup | 18d38e76f8a2fdb98ccee93f74a57a6430843e3a | [
"BSD-2-Clause"
] | 5 | 2020-12-01T20:17:51.000Z | 2022-03-07T09:10:13.000Z |
defmodule Makeup.Styles.HTML.Algol_NuStyle do
@moduledoc false
@styles %{
:error => "border:#FF0000",
:keyword => "bold",
:keyword_declaration => "italic",
:name_builtin => "bold italic",
:name_builtin_pseudo => "bold italic",
:name_class => "bold italic #666",
:name_constant => "bold ... | 25.555556 | 45 | 0.626087 |
c81c07e0ca25f9bc38110d331cff48d1ca555781 | 3,757 | ex | Elixir | clients/drive/lib/google_api/drive/v3/model/permission.ex | CertifiedrLi/elixir-google-api | 4e0e261dd06ee7753c356cca413783f3facd5f03 | [
"Apache-2.0"
] | null | null | null | clients/drive/lib/google_api/drive/v3/model/permission.ex | CertifiedrLi/elixir-google-api | 4e0e261dd06ee7753c356cca413783f3facd5f03 | [
"Apache-2.0"
] | null | null | null | clients/drive/lib/google_api/drive/v3/model/permission.ex | CertifiedrLi/elixir-google-api | 4e0e261dd06ee7753c356cca413783f3facd5f03 | [
"Apache-2.0"
] | 1 | 2018-07-28T20:50:50.000Z | 2018-07-28T20:50:50.000Z | # Copyright 2018 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... | 50.093333 | 313 | 0.737024 |
c81c1bbb205e7295035c6d817da937a2376feaae | 1,027 | ex | Elixir | lib/rem/consumer.ex | pyzlnar/rem-bot | 100b71949026eb191c1ebf80d64270406f237958 | [
"MIT"
] | 4 | 2022-02-20T13:33:48.000Z | 2022-03-31T00:48:52.000Z | lib/rem/consumer.ex | pyzlnar/rem-bot | 100b71949026eb191c1ebf80d64270406f237958 | [
"MIT"
] | 1 | 2022-02-22T05:42:05.000Z | 2022-02-22T05:42:05.000Z | lib/rem/consumer.ex | pyzlnar/rem-bot | 100b71949026eb191c1ebf80d64270406f237958 | [
"MIT"
] | null | null | null | defmodule Rem.Consumer do
use Nostrum.Consumer
use Rem.Consumer.Meta
def start_link do
Consumer.start_link(__MODULE__)
end
def handle_event({:MESSAGE_CREATE, message, _ws_state}) do
with :noop <- maybe_run_command(message) do
maybe_respond_session(message)
end
end
def handle_event(_ot... | 20.959184 | 68 | 0.609542 |
c81c233baa2e2f74555f16d32531c222046a1280 | 1,936 | ex | Elixir | lib/credo/check/refactor/function_arity.ex | rodrigues/credo | b4e08477a2141d5537d8fc9c5cc08ebf93a5ee23 | [
"MIT"
] | null | null | null | lib/credo/check/refactor/function_arity.ex | rodrigues/credo | b4e08477a2141d5537d8fc9c5cc08ebf93a5ee23 | [
"MIT"
] | null | null | null | lib/credo/check/refactor/function_arity.ex | rodrigues/credo | b4e08477a2141d5537d8fc9c5cc08ebf93a5ee23 | [
"MIT"
] | null | null | null | defmodule Credo.Check.Refactor.FunctionArity do
@moduledoc """
A function can take as many parameters as needed, but even in a functional
language there can be too many parameters.
Can optionally ignore private functions.
"""
@explanation [
check: @moduledoc,
params: [
max_arity: "The maximu... | 33.37931 | 131 | 0.683884 |
c81c4829add611493e0944af8fd1374636a01a69 | 862 | exs | Elixir | elixir/plug/mix.exs | AllanKlaus/web-frameworks | 87921eb8c90a006ffd4a70b01184ace495beabea | [
"MIT"
] | 3 | 2020-08-31T20:38:34.000Z | 2021-04-09T16:38:16.000Z | elixir/plug/mix.exs | armando170A/web-fraworks | 7efa26caa29edb93cc475e5b5b5942a815090f75 | [
"MIT"
] | 1 | 2019-08-15T12:24:32.000Z | 2019-08-15T12:24:32.000Z | elixir/plug/mix.exs | armando170A/web-fraworks | 7efa26caa29edb93cc475e5b5b5942a815090f75 | [
"MIT"
] | 2 | 2020-11-30T11:52:43.000Z | 2021-03-22T07:05:29.000Z | defmodule MyPlug.Mixfile do
use Mix.Project
def project do
[app: :my_plug,
version: "0.1.0",
elixir: "~> 1.7.1",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps()]
end
# Configuration for the OTP application
#
# Type "mix help compile.app" for m... | 23.297297 | 79 | 0.597448 |
c81c7af54fc7bd74119a3668e6df5c4503e525a7 | 1,891 | exs | Elixir | wasmcloud_host/mix.exs | mattwilkinsonn/wasmcloud-otp | 09b918e08cb566028c0fe9223ce9f0bdbc69b2cd | [
"Apache-2.0"
] | null | null | null | wasmcloud_host/mix.exs | mattwilkinsonn/wasmcloud-otp | 09b918e08cb566028c0fe9223ce9f0bdbc69b2cd | [
"Apache-2.0"
] | null | null | null | wasmcloud_host/mix.exs | mattwilkinsonn/wasmcloud-otp | 09b918e08cb566028c0fe9223ce9f0bdbc69b2cd | [
"Apache-2.0"
] | null | null | null | defmodule WasmcloudHost.MixProject do
use Mix.Project
@app_vsn "0.52.5"
def project do
[
app: :wasmcloud_host,
version: @app_vsn,
elixir: "~> 1.7",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix] ++ Mix.compilers(),
start_permanent: Mix.env() == :prod,
... | 27.405797 | 84 | 0.580116 |
c81c822b79a8805ea1897a4cf55c81f815571965 | 396 | ex | Elixir | lib/ex_bitmex/affiliate_status.ex | eduardoscottini/ex_bitmex | f8528bd635922e1777a5b01ea4941d625da7396e | [
"MIT"
] | 6 | 2019-02-13T04:05:19.000Z | 2020-12-31T07:40:09.000Z | lib/ex_bitmex/affiliate_status.ex | eduardoscottini/ex_bitmex | f8528bd635922e1777a5b01ea4941d625da7396e | [
"MIT"
] | 28 | 2021-03-29T06:46:42.000Z | 2022-03-28T11:03:38.000Z | lib/ex_bitmex/affiliate_status.ex | yurikoval/ex_bitmex | d9492789fb319fbdf78d90a99f7c0e40c95c1885 | [
"MIT"
] | 4 | 2019-05-03T21:27:10.000Z | 2021-01-12T09:26:34.000Z | defmodule ExBitmex.AffiliateStatus do
@type t :: %ExBitmex.AffiliateStatus{}
defstruct ~w(
account
currency
prev_payout
prev_turnover
prev_comm
prev_timestamp
exec_turnover
exec_comm
total_referrals
total_turnover
total_comm
payout_pcnt
pending_payout
timesta... | 16.5 | 40 | 0.712121 |
c81ca16b785a400e311a9518dc5f8ebc87ebd1ea | 6,007 | exs | Elixir | test/ex_pbkdf2_test.exs | ayrat555/ex_pbkdf2 | 9c4fd374ee6290e196e38dc363e12b8169c6a2cf | [
"MIT"
] | 2 | 2022-01-09T18:25:08.000Z | 2022-01-11T12:44:38.000Z | test/ex_pbkdf2_test.exs | ayrat555/ex_pbkdf2 | 9c4fd374ee6290e196e38dc363e12b8169c6a2cf | [
"MIT"
] | null | null | null | test/ex_pbkdf2_test.exs | ayrat555/ex_pbkdf2 | 9c4fd374ee6290e196e38dc363e12b8169c6a2cf | [
"MIT"
] | null | null | null | defmodule ExPbkdf2Test do
use ExUnit.Case, async: true
doctest ExPBKDF2
describe "pbkdf2/2" do
test "calculates pbkdf2 and format to b64" do
expected_formatted_result = "xeR41ZKIyEGqUw22hFxMjZYok6ABzk4RpJY4c6qYE0o"
opts = %{salt: "salt", alg: "sha256", iterations: 4096, length: 32}
asser... | 29.019324 | 96 | 0.612286 |
c81cabf42240428c82f778488ed1130b43c5a608 | 2,153 | ex | Elixir | clients/container/lib/google_api/container/v1/model/node_management.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/container/lib/google_api/container/v1/model/node_management.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/container/lib/google_api/container/v1/model/node_management.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... | 41.403846 | 279 | 0.762657 |
c81cbf2a37c4bb640a33608d043e1252b934e8d7 | 19,179 | ex | Elixir | lib/teiserver/data/user.ex | adelq/teiserver | 77140896df6b4e1ec9e680d64c31ffb528158d14 | [
"MIT"
] | null | null | null | lib/teiserver/data/user.ex | adelq/teiserver | 77140896df6b4e1ec9e680d64c31ffb528158d14 | [
"MIT"
] | null | null | null | lib/teiserver/data/user.ex | adelq/teiserver | 77140896df6b4e1ec9e680d64c31ffb528158d14 | [
"MIT"
] | null | null | null | defmodule Teiserver.User do
@moduledoc """
Users here are a combination of Central.Account.User and the data within. They are merged like this into a map as their expected use case is very different.
"""
alias Teiserver.Client
alias Teiserver.EmailHelper
alias Teiserver.Account
alias Teiserver.Account.{Us... | 29.23628 | 443 | 0.625736 |
c81cc3fa00f6e15695a8c0a4ac1baae19b48c7ff | 176 | ex | Elixir | ddd_counter/lib/ddd_counter/command.ex | mwindholtz/unit_tested_live_view_counter | 16e354cb3e4f6632e6d0ffec1c34778ba37df5e5 | [
"Apache-2.0"
] | null | null | null | ddd_counter/lib/ddd_counter/command.ex | mwindholtz/unit_tested_live_view_counter | 16e354cb3e4f6632e6d0ffec1c34778ba37df5e5 | [
"Apache-2.0"
] | 1 | 2021-05-10T17:10:32.000Z | 2021-05-10T17:10:32.000Z | ddd_counter/lib/ddd_counter/command.ex | mwindholtz/elixir_unit_testing_example | 16e354cb3e4f6632e6d0ffec1c34778ba37df5e5 | [
"Apache-2.0"
] | null | null | null | defmodule DddCounter.Command do
alias DddCounter.MutationGateway, as: Gateway
def inc(val) do
Gateway.inc(val)
end
def dec(val) do
Gateway.dec(val)
end
end
| 14.666667 | 47 | 0.704545 |
c81cc879558197cc55974305ef2e44011fb94c35 | 922 | ex | Elixir | apps/ewallet/lib/ewallet/policies/api_key_policy.ex | vanmil/ewallet | 6c1aca95a83e0a9d93007670a40d8c45764a8122 | [
"Apache-2.0"
] | 1 | 2018-12-07T06:21:21.000Z | 2018-12-07T06:21:21.000Z | apps/ewallet/lib/ewallet/policies/api_key_policy.ex | vanmil/ewallet | 6c1aca95a83e0a9d93007670a40d8c45764a8122 | [
"Apache-2.0"
] | null | null | null | apps/ewallet/lib/ewallet/policies/api_key_policy.ex | vanmil/ewallet | 6c1aca95a83e0a9d93007670a40d8c45764a8122 | [
"Apache-2.0"
] | null | null | null | defmodule EWallet.APIKeyPolicy do
@moduledoc """
The authorization policy for accounts.
"""
@behaviour Bodyguard.Policy
alias EWalletDB.{Account, User}
# API keys can only be managed from the master account,
# but can be seen and used by any account.
# Allowed for any role, filtering is
# handled at... | 30.733333 | 68 | 0.721258 |
c81cc886226ad364e9da84cbf8fb5b721fcb0a1e | 12,609 | exs | Elixir | test/eextoheex_test.exs | super-seguros/eextoheex | 85f53649c262de51d578ae93d80b134ed6312286 | [
"MIT"
] | null | null | null | test/eextoheex_test.exs | super-seguros/eextoheex | 85f53649c262de51d578ae93d80b134ed6312286 | [
"MIT"
] | null | null | null | test/eextoheex_test.exs | super-seguros/eextoheex | 85f53649c262de51d578ae93d80b134ed6312286 | [
"MIT"
] | null | null | null | defmodule EexToHeexTest do
use ExUnit.Case, async: true
doctest EexToHeex
require Logger
describe "eex_to_heex/1" do
test "plain html comes back unmodified" do
input_templ = """
<div class="class">
<p>Hey there!</p>
<form>
<input type="hidden" name="hidden" value="hid... | 34.45082 | 405 | 0.531287 |
c81cded30e8891f88973784bfe4a35d487a9e059 | 3,375 | ex | Elixir | lib/oli_web/controllers/collaborator_controller.ex | DevShashi1993/oli-torus | e6e0b66f0973f9790a5785731b22db6fb1c50a73 | [
"MIT"
] | 45 | 2020-04-17T15:40:27.000Z | 2022-03-25T00:13:30.000Z | lib/oli_web/controllers/collaborator_controller.ex | DevShashi1993/oli-torus | e6e0b66f0973f9790a5785731b22db6fb1c50a73 | [
"MIT"
] | 944 | 2020-02-13T02:37:01.000Z | 2022-03-31T17:50:07.000Z | lib/oli_web/controllers/collaborator_controller.ex | DevShashi1993/oli-torus | e6e0b66f0973f9790a5785731b22db6fb1c50a73 | [
"MIT"
] | 23 | 2020-07-28T03:36:13.000Z | 2022-03-17T14:29:02.000Z | defmodule OliWeb.CollaboratorController do
use OliWeb, :controller
alias Oli.Authoring.Collaborators
require Logger
@max_invitation_emails 20
def create(conn, %{
"collaborator_emails" => collaborator_emails,
"g-recaptcha-response" => g_recaptcha_response
}) do
project_id = conn.pa... | 34.438776 | 149 | 0.575704 |
c81cefd09ca62db253b537f41bd87ab17ec3a6e2 | 1,075 | ex | Elixir | lib/stormchat/application.ex | gautambaghel/stormchat | 1882467113158e7524d02d273e1f88439cc1f152 | [
"MIT"
] | null | null | null | lib/stormchat/application.ex | gautambaghel/stormchat | 1882467113158e7524d02d273e1f88439cc1f152 | [
"MIT"
] | 7 | 2019-06-25T17:21:41.000Z | 2022-02-10T12:09:08.000Z | lib/stormchat/application.ex | gautambaghel/stormchat | 1882467113158e7524d02d273e1f88439cc1f152 | [
"MIT"
] | null | null | null | defmodule Stormchat.Application do
use Application
# See https://hexdocs.pm/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 Ecto repository
... | 32.575758 | 87 | 0.71907 |
c81cf298e5bd923049c8ba8fec0b056aa8df32d1 | 2,049 | ex | Elixir | clients/sheets/lib/google_api/sheets/v4/model/dimension_range.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/sheets/lib/google_api/sheets/v4/model/dimension_range.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/sheets/lib/google_api/sheets/v4/model/dimension_range.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.589286 | 220 | 0.702782 |
c81cf57dc8b63f2614d5b7ed67e6e6a1c8a478f5 | 448 | ex | Elixir | web/views/error_view.ex | mfunaro/handiman-api | 66357caa55c2b1fb696471c04e602b5546879cf4 | [
"Unlicense",
"MIT"
] | null | null | null | web/views/error_view.ex | mfunaro/handiman-api | 66357caa55c2b1fb696471c04e602b5546879cf4 | [
"Unlicense",
"MIT"
] | null | null | null | web/views/error_view.ex | mfunaro/handiman-api | 66357caa55c2b1fb696471c04e602b5546879cf4 | [
"Unlicense",
"MIT"
] | null | null | null | defmodule HandimanApi.ErrorView do
use HandimanApi.Web, :view
def render("404.html", _assigns) do
"Page not found"
end
def render("500.html", _assigns) do
"Server internal error"
end
def render("403.html", _assigns) do
"Not Authorized"
end
# In case no render clause matches or no
# tem... | 20.363636 | 47 | 0.694196 |
c81cf79628605bf2d0bb57ed9384b8f31abaef57 | 7,971 | ex | Elixir | clients/cloud_tasks/lib/google_api/cloud_tasks/v2beta2/model/app_engine_http_request.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/cloud_tasks/lib/google_api/cloud_tasks/v2beta2/model/app_engine_http_request.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/cloud_tasks/lib/google_api/cloud_tasks/v2beta2/model/app_engine_http_request.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 42.398936 | 153 | 0.72287 |
c81d1134723d9ab6f508fb9c77f326aff1f98b9f | 6,415 | exs | Elixir | test/epicenter/phi_validation_test.exs | geometricservices/epi-viewpoin | ecb5316ea0f3f7299d5ff63e2de588539005ac1c | [
"Apache-2.0"
] | 5 | 2021-02-25T18:43:09.000Z | 2021-02-27T06:00:35.000Z | test/epicenter/phi_validation_test.exs | geometricservices/epi-viewpoint | ecb5316ea0f3f7299d5ff63e2de588539005ac1c | [
"Apache-2.0"
] | 3 | 2021-12-13T17:52:47.000Z | 2021-12-17T01:35:31.000Z | test/epicenter/phi_validation_test.exs | geometricservices/epi-viewpoint | ecb5316ea0f3f7299d5ff63e2de588539005ac1c | [
"Apache-2.0"
] | 1 | 2022-01-27T23:26:38.000Z | 2022-01-27T23:26:38.000Z | defmodule Epicenter.PhiValidationTest do
use Epicenter.DataCase, async: true
alias Ecto.Changeset
alias Epicenter.Cases.Address
alias Epicenter.Cases.Demographic
alias Epicenter.Cases.Phone
alias Epicenter.Cases.Email
alias Epicenter.PhiValidation
describe "validate_phi: person last_name" do
@vali... | 36.039326 | 90 | 0.695557 |
c81d1cd862baa9f03e0a8f43866f831ed62823fa | 4,063 | ex | Elixir | lib/monk.ex | niahoo/monk | c35d06f012f473698027ba7d2737826fa57f1287 | [
"MIT"
] | 10 | 2015-08-28T19:42:32.000Z | 2017-08-16T09:52:03.000Z | lib/monk.ex | niahoo/monk | c35d06f012f473698027ba7d2737826fa57f1287 | [
"MIT"
] | null | null | null | lib/monk.ex | niahoo/monk | c35d06f012f473698027ba7d2737826fa57f1287 | [
"MIT"
] | null | null | null | defmodule Monk do
@moduledoc """
Monk is your everyday `:ok | :error` monad.
The monk macro allows you to pipe functions that accept a mere value, and
returns wrapped values like `{ok:, val}` or `{:error, val}`.
If a function returns `{:error, reason}`, the subsequent functions in the pipe
will *not* be c... | 27.639456 | 80 | 0.614817 |
c81d8e8ef681a9557bf676667252ff05a2eef9c5 | 1,784 | ex | Elixir | clients/speech/lib/google_api/speech/v1/model/list_operations_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/speech/lib/google_api/speech/v1/model/list_operations_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/speech/lib/google_api/speech/v1/model/list_operations_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 35.68 | 165 | 0.737668 |
c81ded19d3e00f08a7d4a60bde675a2abab8944b | 4,407 | ex | Elixir | apps/url_dispatcher/lib/url_dispatcher/application.ex | jimpeebles/ewallet | ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405 | [
"Apache-2.0"
] | null | null | null | apps/url_dispatcher/lib/url_dispatcher/application.ex | jimpeebles/ewallet | ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405 | [
"Apache-2.0"
] | null | null | null | apps/url_dispatcher/lib/url_dispatcher/application.ex | jimpeebles/ewallet | ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405 | [
"Apache-2.0"
] | null | null | null | # Copyright 2018 OmiseGO Pte Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writi... | 30.184932 | 91 | 0.59587 |
c81ead729b1f2dadda4fb848c2b9a72d7248c6e4 | 931 | ex | Elixir | Microsoft.Azure.Management.Network/lib/microsoft/azure/management/network/model/azure_reachability_report_item.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/azure_reachability_report_item.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | null | null | null | Microsoft.Azure.Management.Network/lib/microsoft/azure/management/network/model/azure_reachability_report_item.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.AzureReachabilityReportItem do
@moduledoc """
Azure reachability report details for a given provider ... | 29.09375 | 125 | 0.741139 |
c81f087fd6a098dda7534c1d07096cc8de124ede | 1,014 | ex | Elixir | lib/hexpm/accounts/keys.ex | hubertpompecki/hexpm | 5cd4208b07a70bf2e1490930bf5d577978793b50 | [
"Apache-2.0"
] | null | null | null | lib/hexpm/accounts/keys.ex | hubertpompecki/hexpm | 5cd4208b07a70bf2e1490930bf5d577978793b50 | [
"Apache-2.0"
] | null | null | null | lib/hexpm/accounts/keys.ex | hubertpompecki/hexpm | 5cd4208b07a70bf2e1490930bf5d577978793b50 | [
"Apache-2.0"
] | null | null | null | defmodule Hexpm.Accounts.Keys do
use Hexpm.Web, :context
def all(user) do
Key.all(user)
|> Repo.all()
end
def get(id) do
Repo.get(Key, id)
end
def get(user, name) do
Repo.one(Key.get(user, name))
end
def add(user, params, audit: audit_data) do
Multi.new()
|> Multi.insert(:key... | 22.043478 | 67 | 0.618343 |
c81f10c5c372ccd8095a84da8f7344db27c24d6b | 1,436 | ex | Elixir | lib/codes/codes_a84.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_a84.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_a84.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | defmodule IcdCode.ICDCode.Codes_A84 do
alias IcdCode.ICDCode
def _A840 do
%ICDCode{full_code: "A840",
category_code: "A84",
short_code: "0",
full_name: "Far Eastern tick-borne encephalitis [Russian spring-summer encephalitis]",
short_name: "Far Eastern tick-borne encephali... | 33.395349 | 99 | 0.642061 |
c81f3f1c46f86c7d5c8693185ff0caf551ed70f6 | 1,540 | ex | Elixir | athasha_wui/test/support/data_case.ex | samuelventura/go-sdk | 7209256f70d39d142a2a9859061ac7ec6c19b2bc | [
"Unlicense"
] | null | null | null | athasha_wui/test/support/data_case.ex | samuelventura/go-sdk | 7209256f70d39d142a2a9859061ac7ec6c19b2bc | [
"Unlicense"
] | null | null | null | athasha_wui/test/support/data_case.ex | samuelventura/go-sdk | 7209256f70d39d142a2a9859061ac7ec6c19b2bc | [
"Unlicense"
] | null | null | null | defmodule Athasha.Wui.DataCase do
@moduledoc """
This module defines the setup for tests requiring
access to the application's data layer.
You may define functions here to be used as helpers in
your tests.
Finally, if the test case interacts with the database,
we enable the SQL sandbox, so changes done ... | 29.615385 | 92 | 0.696104 |
c81f7ec30e0acb0b623938d4bd829f744fc17c32 | 554 | ex | Elixir | lib/history/range_job.ex | fremantle-industries/history | a8a33744279ff4ca62620785f9a2e9c0c99e4de7 | [
"MIT"
] | 20 | 2021-08-06T01:09:48.000Z | 2022-03-28T18:44:56.000Z | lib/history/range_job.ex | fremantle-industries/history | a8a33744279ff4ca62620785f9a2e9c0c99e4de7 | [
"MIT"
] | 13 | 2021-08-21T21:17:02.000Z | 2022-03-27T06:33:51.000Z | lib/history/range_job.ex | fremantle-industries/history | a8a33744279ff4ca62620785f9a2e9c0c99e4de7 | [
"MIT"
] | 2 | 2021-09-23T11:31:59.000Z | 2022-01-09T16:19:35.000Z | defprotocol History.RangeJob do
@type t :: struct
@type date_time_result ::
{:ok, DateTime.t()}
| {:ambiguous, first_datetime :: t(), second_datetime :: t()}
| {:gap, t(), t()}
| {:error,
:incompatible_calendars
| :time_zone_not_found
| ... | 23.083333 | 71 | 0.557762 |
c81fc2f316785964567bbb49ca83cadfe8927ecb | 2,332 | ex | Elixir | ws_peer/lib/ws_peer_web/channels/peer_channel.ex | pastleo/bazaar | 422aefb7a4b6de720812689c57fc1d64a4204678 | [
"MIT"
] | 8 | 2019-05-09T05:30:17.000Z | 2020-12-27T12:17:55.000Z | ws_peer/lib/ws_peer_web/channels/peer_channel.ex | pastleo/bazaar | 422aefb7a4b6de720812689c57fc1d64a4204678 | [
"MIT"
] | 11 | 2019-05-05T15:48:26.000Z | 2019-06-09T01:44:22.000Z | ws_peer/lib/ws_peer_web/channels/peer_channel.ex | pastleo/bazaar | 422aefb7a4b6de720812689c57fc1d64a4204678 | [
"MIT"
] | null | null | null | defmodule WsPeerWeb.PeerChannel do
use Phoenix.Channel
def join("peer:" <> name, %{"params" => %{}}, socket = %{assigns: %{socket_id: socket_id}}) do
WsPeer.Peers.set(name, %{socket_id: socket_id, channel_pid: self()})
socket
|> assign(:name, name)
|> (&{:ok, &1}).()
end
def send(name, term, p... | 30.285714 | 150 | 0.608062 |
c81ff88335c1a05d84c3b2b7b673a68eee99a779 | 3,787 | ex | Elixir | lib/surface/components/form/error_tag.ex | jshmrtn/surface | 5ddbbc67b2c165ba53a85c68c0da8fce491472f2 | [
"MIT"
] | 1 | 2021-04-30T14:28:08.000Z | 2021-04-30T14:28:08.000Z | lib/surface/components/form/error_tag.ex | jshmrtn/surface | 5ddbbc67b2c165ba53a85c68c0da8fce491472f2 | [
"MIT"
] | null | null | null | lib/surface/components/form/error_tag.ex | jshmrtn/surface | 5ddbbc67b2c165ba53a85c68c0da8fce491472f2 | [
"MIT"
] | null | null | null | defmodule Surface.Components.Form.ErrorTag do
@moduledoc """
A component inspired by `error_tag/3` that ships with `mix phx.new` in
`MyAppWeb.ErrorHelpers`.
Renders error messages if any exist regarding the given field.
## Error Translation
Changeset errors are translated using the default error translat... | 27.442029 | 101 | 0.686823 |
c81ff8d699063250e4680dda746968c6a5a7719d | 4,019 | exs | Elixir | test/oli/delivery/attempts/can_access_test.exs | malav2110/oli-torus | 8af64e762a7c8a2058bd27a7ab8e96539ffc055f | [
"MIT"
] | 1 | 2022-03-17T20:35:47.000Z | 2022-03-17T20:35:47.000Z | test/oli/delivery/attempts/can_access_test.exs | malav2110/oli-torus | 8af64e762a7c8a2058bd27a7ab8e96539ffc055f | [
"MIT"
] | 9 | 2021-11-02T16:52:09.000Z | 2022-03-25T15:14:01.000Z | test/oli/delivery/attempts/can_access_test.exs | malav2110/oli-torus | 8af64e762a7c8a2058bd27a7ab8e96539ffc055f | [
"MIT"
] | null | null | null | defmodule Oli.Delivery.Attempts.CanAccessTest do
use Oli.DataCase
alias Oli.Delivery.Attempts.Core
alias Oli.Delivery.Sections
alias Oli.Seeder
alias Lti_1p3.Tool.ContextRoles
alias Oli.Delivery.Attempts.PageLifecycle
def create_attempt(revision, student, section) do
ra = Core.track_access(revision.r... | 31.645669 | 96 | 0.642697 |
c820123a7145ea2f8c4a61cc0d22946f423dc74d | 567 | exs | Elixir | day11/mix.exs | bjorng/advent-of-code-2017 | bd58a36864a4d82809253770f8a6d0c4e02cb59a | [
"Apache-2.0"
] | null | null | null | day11/mix.exs | bjorng/advent-of-code-2017 | bd58a36864a4d82809253770f8a6d0c4e02cb59a | [
"Apache-2.0"
] | null | null | null | day11/mix.exs | bjorng/advent-of-code-2017 | bd58a36864a4d82809253770f8a6d0c4e02cb59a | [
"Apache-2.0"
] | null | null | null | defmodule Day11.MixProject do
use Mix.Project
def project do
[
app: :day11,
version: "0.1.0",
elixir: "~> 1.8",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applica... | 19.551724 | 87 | 0.573192 |
c820155cfd56c85485f4dad2cf22ed636cf89706 | 892 | ex | Elixir | apps/evm/lib/evm.ex | wolflee/mana | db66dac85addfaad98d40da5bd4082b3a0198bb1 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 152 | 2018-10-27T04:52:03.000Z | 2022-03-26T10:34:00.000Z | apps/evm/lib/evm.ex | wolflee/mana | db66dac85addfaad98d40da5bd4082b3a0198bb1 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 270 | 2018-04-14T07:34:57.000Z | 2018-10-25T18:10:45.000Z | apps/evm/lib/evm.ex | wolflee/mana | db66dac85addfaad98d40da5bd4082b3a0198bb1 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 25 | 2018-10-27T12:15:13.000Z | 2022-01-25T20:31:14.000Z | defmodule EVM do
@moduledoc """
Documentation for EVM.
"""
# σ[a]
@type account :: %{
# σ[a]_n
nonce: integer(),
# σ[a]_b
balance: integer(),
# σ[a]_s
storage: MerklePatriciaTree.Trie.t(),
# σ[a]_c
code: binary()
}
# σ
... | 21.238095 | 56 | 0.560538 |
c8201e549b1d33297f0a4ff250155992e5397cec | 182 | ex | Elixir | phoenix/lib/mehr_schulferien_web/views/school_view.ex | komlanvi/www.mehr-schulferien.de | fe74772f2cc8ce430e04adf6e66023971456ce57 | [
"MIT"
] | null | null | null | phoenix/lib/mehr_schulferien_web/views/school_view.ex | komlanvi/www.mehr-schulferien.de | fe74772f2cc8ce430e04adf6e66023971456ce57 | [
"MIT"
] | null | null | null | phoenix/lib/mehr_schulferien_web/views/school_view.ex | komlanvi/www.mehr-schulferien.de | fe74772f2cc8ce430e04adf6e66023971456ce57 | [
"MIT"
] | null | null | null | defmodule MehrSchulferienWeb.SchoolView do
use MehrSchulferienWeb, :view
alias MehrSchulferienWeb.Formatter
alias MehrSchulferienWeb.CalendarHelper
import Number.Delimit
end
| 26 | 42 | 0.851648 |
c82025b9697865fce68fa16d8578bd29519e9fa0 | 960 | exs | Elixir | statusboard/config/config.exs | olanko/statusboard | ee5135b04ebc1492e9f0a0a96cdfb822bda62763 | [
"MIT"
] | null | null | null | statusboard/config/config.exs | olanko/statusboard | ee5135b04ebc1492e9f0a0a96cdfb822bda62763 | [
"MIT"
] | null | null | null | statusboard/config/config.exs | olanko/statusboard | ee5135b04ebc1492e9f0a0a96cdfb822bda62763 | [
"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 :statusboard,
ecto_repos: [Statusboard.R... | 34.285714 | 86 | 0.767708 |
c820490096fc00c893998f5cca1a93d432cc3872 | 60 | ex | Elixir | lib/powit_web/views/comment_view.ex | tenzil-rpx/powit | 0feebbfc11c7bd2a45ef0664632deb9b0537fb5c | [
"MIT"
] | null | null | null | lib/powit_web/views/comment_view.ex | tenzil-rpx/powit | 0feebbfc11c7bd2a45ef0664632deb9b0537fb5c | [
"MIT"
] | null | null | null | lib/powit_web/views/comment_view.ex | tenzil-rpx/powit | 0feebbfc11c7bd2a45ef0664632deb9b0537fb5c | [
"MIT"
] | null | null | null | defmodule PowitWeb.CommentView do
use PowitWeb, :view
end
| 15 | 33 | 0.8 |
c8206080b7a77ad306350600f4f3e6c0ad27418f | 4,925 | ex | Elixir | lib/phoenix_live_controller/live_view_callbacks.ex | thepeoplesbourgeois/phoenix_live_controller | 04286b79697e9a7a62abb37efd7725dd9124a6c3 | [
"MIT"
] | 35 | 2020-04-15T17:15:36.000Z | 2021-11-08T08:50:50.000Z | lib/phoenix_live_controller/live_view_callbacks.ex | thepeoplesbourgeois/phoenix_live_controller | 04286b79697e9a7a62abb37efd7725dd9124a6c3 | [
"MIT"
] | 3 | 2020-04-15T14:07:28.000Z | 2022-03-25T23:08:23.000Z | lib/phoenix_live_controller/live_view_callbacks.ex | thepeoplesbourgeois/phoenix_live_controller | 04286b79697e9a7a62abb37efd7725dd9124a6c3 | [
"MIT"
] | 3 | 2020-11-08T15:37:31.000Z | 2022-03-23T05:36:54.000Z | defmodule Phoenix.LiveController.LiveViewCallbacks do
@moduledoc false
import Phoenix.LiveController
alias Phoenix.LiveController.{ControllerState, Errors}
alias Phoenix.LiveView.Socket
def mount(module, _params, session, socket) do
action = socket.assigns[:live_action] || Errors.raise_no_action_assign(... | 33.053691 | 93 | 0.723249 |
c8206ebeda9779ba432bfa6a704b895aeefdd1bc | 108,897 | ex | Elixir | lib/wxDefines.ex | DwayneDibley/ElixirWx | cce79cebeeb8b9bcfe88a0663137db63fb0bec10 | [
"Apache-2.0"
] | 2 | 2018-10-26T21:12:02.000Z | 2019-08-15T14:48:37.000Z | lib/wxDefines.ex | DwayneDibley/ElixirWx | cce79cebeeb8b9bcfe88a0663137db63fb0bec10 | [
"Apache-2.0"
] | null | null | null | lib/wxDefines.ex | DwayneDibley/ElixirWx | cce79cebeeb8b9bcfe88a0663137db63fb0bec10 | [
"Apache-2.0"
] | null | null | null | defmodule WxDefines do
@moduledoc """
```
The definitions from the WxErlang header files, plus definitions of colours.
To use these definitions in your module, add "use WxDefines" at the top of the
module.
Note that the module also imports the Bitwise module so that the "|||" and "&&&"
binary operators ... | 31.033628 | 289 | 0.658448 |
c8209ba00181e0845165ee20fda61beb21886640 | 2,054 | ex | Elixir | clients/display_video/lib/google_api/display_video/v1/model/assigned_inventory_source.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/display_video/lib/google_api/display_video/v1/model/assigned_inventory_source.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/display_video/lib/google_api/display_video/v1/model/assigned_inventory_source.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... | 38.754717 | 232 | 0.734664 |
c820aaebff624f20175a47b02278badec89bffc6 | 728 | ex | Elixir | lib/aws_service/http_client.ex | shanelep/aws_service | a8bed4d1185218cd92fe529de5e57fa3bb566f6a | [
"MIT"
] | null | null | null | lib/aws_service/http_client.ex | shanelep/aws_service | a8bed4d1185218cd92fe529de5e57fa3bb566f6a | [
"MIT"
] | null | null | null | lib/aws_service/http_client.ex | shanelep/aws_service | a8bed4d1185218cd92fe529de5e57fa3bb566f6a | [
"MIT"
] | null | null | null | defmodule AWSService.HTTPClient do
## Types
@type http_method_t :: :get |
:post |
:put |
:delete |
:head |
:options
@type response_t :: {:ok | :error, any}
## AWSServiceClient.HTTPCl... | 19.675676 | 45 | 0.460165 |
c820bbd047cddc115798e005843977a99eae34da | 260 | ex | Elixir | lib/http/skill_tree_import.ex | antholord/poe_build_parser | 0be38bae35e0cf7945aba42b869db13f7ae72a52 | [
"MIT"
] | 1 | 2019-05-08T23:46:47.000Z | 2019-05-08T23:46:47.000Z | lib/http/skill_tree_import.ex | antholord/poe_build_parser | 0be38bae35e0cf7945aba42b869db13f7ae72a52 | [
"MIT"
] | null | null | null | lib/http/skill_tree_import.ex | antholord/poe_build_parser | 0be38bae35e0cf7945aba42b869db13f7ae72a52 | [
"MIT"
] | null | null | null | defmodule PoeBuildParser.Http.SkillTreeImporter do
import PoeBuildParser.Http.HttpService
@spec importSkillTree() :: any()
def importSkillTree do
get("https://s3.us-east-2.amazonaws.com/poebuilds/skilltree.json")
# add marshalling here
end
end
| 28.888889 | 70 | 0.761538 |
c820d39a3564443f6ba773467e4f596ee2288ad5 | 945 | ex | Elixir | lib/cforum_web/controllers/admin/setting_controller.ex | jrieger/cforum_ex | 61f6ce84708cb55bd0feedf69853dae64146a7a0 | [
"MIT"
] | 16 | 2019-04-04T06:33:33.000Z | 2021-08-16T19:34:31.000Z | lib/cforum_web/controllers/admin/setting_controller.ex | jrieger/cforum_ex | 61f6ce84708cb55bd0feedf69853dae64146a7a0 | [
"MIT"
] | 294 | 2019-02-10T11:10:27.000Z | 2022-03-30T04:52:53.000Z | lib/cforum_web/controllers/admin/setting_controller.ex | jrieger/cforum_ex | 61f6ce84708cb55bd0feedf69853dae64146a7a0 | [
"MIT"
] | 10 | 2019-02-10T10:39:24.000Z | 2021-07-06T11:46:05.000Z | defmodule CforumWeb.Admin.SettingController do
use CforumWeb, :controller
alias Cforum.Abilities
alias Cforum.Settings
alias Cforum.Settings.Setting
def edit(conn, _params) do
settings = conn.assigns[:global_config] || %Setting{}
changeset = Settings.change_setting(settings)
render(conn, "edit.h... | 31.5 | 88 | 0.687831 |
c8210cd419274ec6bbabcf3bd18d30a4de2e865a | 1,130 | ex | Elixir | test/support/channel_case.ex | carlosviana/blog | 1dcf58c3ca40bc3a7105d75de6f51954eb44bca8 | [
"MIT"
] | null | null | null | test/support/channel_case.ex | carlosviana/blog | 1dcf58c3ca40bc3a7105d75de6f51954eb44bca8 | [
"MIT"
] | 3 | 2021-06-20T14:51:14.000Z | 2021-06-25T00:56:11.000Z | test/support/channel_case.ex | carlosviana/blog | 1dcf58c3ca40bc3a7105d75de6f51954eb44bca8 | [
"MIT"
] | null | null | null | defmodule BlogWeb.ChannelCase do
@moduledoc """
This module defines the test case to be used by
channel tests.
Such tests rely on `Phoenix.ChannelTest` and also
import other functionality to make it easier
to build common data structures and query the data layer.
Finally, if the test case interacts with... | 25.681818 | 61 | 0.720354 |
c821120e54893a3e5f99b556020e476ae1c9f32d | 1,766 | exs | Elixir | apps/reaper/test/integration/reaper/reaper_yeet_test.exs | msomji/smartcitiesdata | fc96abc1ef1306f7af6bd42bbcb4ed041a6d922c | [
"Apache-2.0"
] | null | null | null | apps/reaper/test/integration/reaper/reaper_yeet_test.exs | msomji/smartcitiesdata | fc96abc1ef1306f7af6bd42bbcb4ed041a6d922c | [
"Apache-2.0"
] | null | null | null | apps/reaper/test/integration/reaper/reaper_yeet_test.exs | msomji/smartcitiesdata | fc96abc1ef1306f7af6bd42bbcb4ed041a6d922c | [
"Apache-2.0"
] | null | null | null | defmodule Reaper.YeetTest do
use ExUnit.Case
use Divo
use Tesla
require Logger
alias SmartCity.TestDataGenerator, as: TDG
import SmartCity.TestHelper
import SmartCity.Event, only: [dataset_update: 0]
@dataset_id "12345-6789"
@endpoints Application.get_env(:reaper, :elsa_brokers)
@success_topic Appl... | 25.970588 | 89 | 0.651755 |
c821294acec1869caff05e569ba0318bdcb1b886 | 1,909 | ex | Elixir | clients/data_labeling/lib/google_api/data_labeling/v1beta1/model/google_cloud_datalabeling_v1beta1_text_classification_annotation.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/data_labeling/lib/google_api/data_labeling/v1beta1/model/google_cloud_datalabeling_v1beta1_text_classification_annotation.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/data_labeling/lib/google_api/data_labeling/v1beta1/model/google_cloud_datalabeling_v1beta1_text_classification_annotation.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... | 32.913793 | 157 | 0.76637 |
c8216bb3ec3369eb68a3c5d2dc9a50bf98481c5b | 2,167 | exs | Elixir | server/config/releases.exs | samtgarson/realtime | 26a34c8e135564d544ecb79f5e983d661d893ace | [
"Apache-2.0"
] | 1 | 2021-05-30T14:57:16.000Z | 2021-05-30T14:57:16.000Z | server/config/releases.exs | dhenson02/realtime | c4d03a41b4ebd23f879feecddf9137e1ba15e405 | [
"Apache-2.0"
] | null | null | null | server/config/releases.exs | dhenson02/realtime | c4d03a41b4ebd23f879feecddf9137e1ba15e405 | [
"Apache-2.0"
] | null | null | null | import Config
# These defaults mirror the ones in config.exs, remember not to change one
# without changing the other.
app_hostname = System.get_env("HOSTNAME", "localhost")
app_port = String.to_integer(System.get_env("PORT", "4000"))
db_host = System.get_env("DB_HOST", "localhost")
db_port = String.to_integer(System.... | 38.017544 | 135 | 0.76419 |
c82170a3b6fc78f9488b1072ced40a75505edb9b | 894 | ex | Elixir | lib/konvex/implementation/riak/ability/to_put_any_value.ex | KosyanMedia/konvex | 03f538a7223bbfa85a82ebdbd77f1fd70dc23c2a | [
"MIT"
] | 1 | 2022-03-08T08:30:24.000Z | 2022-03-08T08:30:24.000Z | lib/konvex/implementation/riak/ability/to_put_any_value.ex | KosyanMedia/konvex | 03f538a7223bbfa85a82ebdbd77f1fd70dc23c2a | [
"MIT"
] | 1 | 2022-01-28T16:45:57.000Z | 2022-01-28T16:56:22.000Z | lib/konvex/implementation/riak/ability/to_put_any_value.ex | KosyanMedia/konvex | 03f538a7223bbfa85a82ebdbd77f1fd70dc23c2a | [
"MIT"
] | null | null | null | defmodule Konvex.Implementation.Riak.Ability.ToPutAnyValue do
defmacro __using__(
[
bucket_name: <<_, _ :: binary>> = bucket_name,
connection: quoted_riak_connection
]
) do
quote do
alias Konvex.Implementation.Riak.Connection
defmodul... | 33.111111 | 104 | 0.666667 |
c82179d4f6b0763c2acd9aadfb83f39d5be6c2dd | 2,006 | exs | Elixir | test/carguero_task_bunny/job_runner_test.exs | carguero/carguero_task_bunny | e6f4346904433a5ffe3b3b256a97f348839ab514 | [
"MIT"
] | 2 | 2020-12-03T18:09:00.000Z | 2021-01-17T22:44:50.000Z | test/carguero_task_bunny/job_runner_test.exs | carguero/carguero_task_bunny | e6f4346904433a5ffe3b3b256a97f348839ab514 | [
"MIT"
] | null | null | null | test/carguero_task_bunny/job_runner_test.exs | carguero/carguero_task_bunny | e6f4346904433a5ffe3b3b256a97f348839ab514 | [
"MIT"
] | null | null | null | defmodule CargueroTaskBunny.JobRunnerTest do
use ExUnit.Case
alias CargueroTaskBunny.JobRunner
defmodule SampleJobs do
defmodule CrashJob do
use CargueroTaskBunny.Job
def perform(_payload) do
raise "Oops"
end
end
defmodule TimeoutJob do
use CargueroTaskBunny.Job
... | 22.288889 | 89 | 0.640578 |
c821852e46d31c4805ad989e25fcb3b37a6493da | 499 | ex | Elixir | lib/jorb_demo/emitter.ex | appcues/jorb_demo | 377b93fb7ae31955326a3112ed4a9a360a06e6b3 | [
"MIT"
] | null | null | null | lib/jorb_demo/emitter.ex | appcues/jorb_demo | 377b93fb7ae31955326a3112ed4a9a360a06e6b3 | [
"MIT"
] | null | null | null | lib/jorb_demo/emitter.ex | appcues/jorb_demo | 377b93fb7ae31955326a3112ed4a9a360a06e6b3 | [
"MIT"
] | null | null | null | defmodule JorbDemo.Emitter do
require Logger
use GenServer
def start_link(opts) do
GenServer.start_link(__MODULE__, opts)
end
def init(_opts) do
emit_events()
{:ok, :ignored}
end
def emit_events() do
Process.send_after(self(), :emit_events, 100)
end
def handle_info(:emit_events, :i... | 18.481481 | 67 | 0.693387 |
c82189ce6559b4972f1cea277077ba73b7a8b07d | 18,228 | ex | Elixir | lib/simple_pool/v2/cluster_management_framework/provider/node/node_manager.ex | noizu/simple_pool | 59251a3391ff82152a31626072955b95f83c18ee | [
"MIT"
] | 12 | 2018-07-03T10:14:54.000Z | 2020-04-07T02:04:39.000Z | lib/simple_pool/v2/cluster_management_framework/provider/node/node_manager.ex | noizu/simple_pool | 59251a3391ff82152a31626072955b95f83c18ee | [
"MIT"
] | 1 | 2018-12-02T06:05:59.000Z | 2018-12-02T06:05:59.000Z | lib/simple_pool/v2/cluster_management_framework/provider/node/node_manager.ex | noizu/simple_pool | 59251a3391ff82152a31626072955b95f83c18ee | [
"MIT"
] | 2 | 2018-03-05T12:01:51.000Z | 2018-07-03T10:15:04.000Z | #-------------------------------------------------------------------------------
# Author: Keith Brings
# Copyright (C) 2020 Noizu Labs, Inc. All rights reserved.
#-------------------------------------------------------------------------------
defmodule Noizu.SimplePool.V2.ClusterManagementFramework.Cluster.NodeManager... | 50.774373 | 194 | 0.607417 |
c821a5e1f80ec68b93ff593ce90d32d5e3abfa67 | 49,673 | ex | Elixir | lib/elixir/lib/file.ex | tsutsu/elixir | f51865bd148d6d5f4fc02cfe441b2c1802dcc9ca | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/file.ex | tsutsu/elixir | f51865bd148d6d5f4fc02cfe441b2c1802dcc9ca | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/file.ex | tsutsu/elixir | f51865bd148d6d5f4fc02cfe441b2c1802dcc9ca | [
"Apache-2.0"
] | null | null | null | defmodule File do
@moduledoc ~S"""
This module contains functions to manipulate files.
Some of those functions are low-level, allowing the user
to interact with files or IO devices, like `open/2`,
`copy/3` and others. This module also provides higher
level functions that work with filenames and have their ... | 29.673238 | 101 | 0.623135 |
c821b0fbc0aacaa89f3c3e9487469140606c0604 | 265 | exs | Elixir | test/global_lazy_test.exs | whitfin/global-lazy | 5694c2ee8c2d2b078c1a897f7c5dfd79ac211859 | [
"MIT"
] | 2 | 2020-01-10T18:41:06.000Z | 2020-01-14T00:21:05.000Z | test/global_lazy_test.exs | whitfin/global-lazy | 5694c2ee8c2d2b078c1a897f7c5dfd79ac211859 | [
"MIT"
] | null | null | null | test/global_lazy_test.exs | whitfin/global-lazy | 5694c2ee8c2d2b078c1a897f7c5dfd79ac211859 | [
"MIT"
] | null | null | null | defmodule GlobalLazyTest do
use ExUnit.Case
doctest GlobalLazy
test "doesn't initialize multiple time" do
for _ <- 0..5 do
GlobalLazy.init("test", fn ->
{ :ok, _pid } = Agent.start(fn -> 1 end, [ name: :test ])
end)
end
end
end
| 20.384615 | 65 | 0.6 |
c821c0a35f04297687e5ebf4fa764b7bcf94e7ff | 14,274 | ex | Elixir | lib/farmbot/bot_state/bot_state.ex | pdgonzalez872/farmbot_os | a444248f05ee8f4fe57f6a4865b942131960f76c | [
"MIT"
] | null | null | null | lib/farmbot/bot_state/bot_state.ex | pdgonzalez872/farmbot_os | a444248f05ee8f4fe57f6a4865b942131960f76c | [
"MIT"
] | null | null | null | lib/farmbot/bot_state/bot_state.ex | pdgonzalez872/farmbot_os | a444248f05ee8f4fe57f6a4865b942131960f76c | [
"MIT"
] | null | null | null | defmodule Farmbot.BotState do
@moduledoc """
Central bot state that gets pushed out over transports.
* JSON Serializable
* Global
* Scary
"""
use GenStage
@version Farmbot.Project.version()
@commit Farmbot.Project.commit()
@arduino_commit Farmbot.Project.arduino_commit()
@target Farmbot.Pro... | 31.790646 | 112 | 0.668698 |
c82228d6f580f79339f64c0fcfe3603a586a348d | 949 | ex | Elixir | lib/backbone/achievements/achievement.ex | oestrich/gossip-backbone | 0bd926a6ad759486d4b14216d60c2653240be7da | [
"MIT"
] | 1 | 2018-10-23T04:13:39.000Z | 2018-10-23T04:13:39.000Z | lib/backbone/achievements/achievement.ex | oestrich/gossip-backbone | 0bd926a6ad759486d4b14216d60c2653240be7da | [
"MIT"
] | null | null | null | lib/backbone/achievements/achievement.ex | oestrich/gossip-backbone | 0bd926a6ad759486d4b14216d60c2653240be7da | [
"MIT"
] | null | null | null | defmodule Backbone.Achievements.Achievement do
@moduledoc """
Schema for remote achievements
"""
use Backbone.Schema
alias Backbone.Games.Game
schema "achievements" do
field(:remote_id, :integer)
field(:key, Ecto.UUID)
field(:title, :string)
field(:description, :string)
field(:display... | 19.367347 | 90 | 0.650158 |
c8222bd5d630d32100071c933d2d1bf2c7ed350e | 18,630 | ex | Elixir | clients/street_view_publish/lib/google_api/street_view_publish/v1/api/photo.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | 1 | 2021-10-01T09:20:41.000Z | 2021-10-01T09:20:41.000Z | clients/street_view_publish/lib/google_api/street_view_publish/v1/api/photo.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/street_view_publish/lib/google_api/street_view_publish/v1/api/photo.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 55.778443 | 766 | 0.650081 |
c8223257ef06b33e25c56f8d8b5a8f07a8c2d45e | 4,180 | ex | Elixir | clients/remote_build_execution/lib/google_api/remote_build_execution/v2/model/build_bazel_remote_execution_v2_execute_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/remote_build_execution/lib/google_api/remote_build_execution/v2/model/build_bazel_remote_execution_v2_execute_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/remote_build_execution/lib/google_api/remote_build_execution/v2/model/build_bazel_remote_execution_v2_execute_response.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... | 52.911392 | 706 | 0.740431 |
c822824a6421f9b847f0e94c9060ad26269d5b30 | 4,676 | ex | Elixir | debian/manpage.sgml.ex | jnidzwetzki/saslpolicyd | ee8fb3e91158105eafe23ecf7d745a88b60957a2 | [
"Apache-2.0"
] | 2 | 2018-03-02T12:05:30.000Z | 2021-04-20T19:15:16.000Z | debian/manpage.sgml.ex | jnidzwetzki/saslpolicyd | ee8fb3e91158105eafe23ecf7d745a88b60957a2 | [
"Apache-2.0"
] | null | null | null | debian/manpage.sgml.ex | jnidzwetzki/saslpolicyd | ee8fb3e91158105eafe23ecf7d745a88b60957a2 | [
"Apache-2.0"
] | null | null | null | <!doctype refentry PUBLIC "-//OASIS//DTD DocBook V4.1//EN" [
<!-- Process this file with docbook-to-man to generate an nroff manual
page: `docbook-to-man manpage.sgml > manpage.1'. You may view
the manual page with: `docbook-to-man manpage.sgml | nroff -man |
less'. A typical entry in a Makefile or Ma... | 30.167742 | 75 | 0.65911 |
c8228f0995cee3cfd9bcf5f38475bdac177b530d | 912 | ex | Elixir | clients/big_query_connection/lib/google_api/big_query_connection/v1beta1/metadata.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | 1 | 2021-10-01T09:20:41.000Z | 2021-10-01T09:20:41.000Z | clients/big_query_connection/lib/google_api/big_query_connection/v1beta1/metadata.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/big_query_connection/lib/google_api/big_query_connection/v1beta1/metadata.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"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.777778 | 74 | 0.766447 |
c822b147dcfb57e731f942a21ab4de19c857097f | 1,010 | ex | Elixir | Chapter06/apps/elixir_drip/lib/elixir_drip/storage/pipeline/notifier.ex | sthagen/Mastering-Elixir | 1b52ee79afe6b2ae80767a5e55c2be51df3c4c1d | [
"MIT"
] | 28 | 2018-08-09T05:05:29.000Z | 2022-03-14T06:59:07.000Z | Chapter06/apps/elixir_drip/lib/elixir_drip/storage/pipeline/notifier.ex | sthagen/Mastering-Elixir | 1b52ee79afe6b2ae80767a5e55c2be51df3c4c1d | [
"MIT"
] | 1 | 2019-02-11T09:11:33.000Z | 2019-05-06T06:40:19.000Z | Chapter06/apps/elixir_drip/lib/elixir_drip/storage/pipeline/notifier.ex | sthagen/Mastering-Elixir | 1b52ee79afe6b2ae80767a5e55c2be51df3c4c1d | [
"MIT"
] | 8 | 2018-08-09T14:53:02.000Z | 2020-12-14T19:31:21.000Z | defmodule ElixirDrip.Storage.Pipeline.Notifier do
@moduledoc false
require Logger
@dummy_state []
use ElixirDrip.Pipeliner.Consumer, type: :consumer
@impl ElixirDrip.Pipeliner.Consumer
def prepare_state([]) do
Logger.debug("#{inspect(self())}: Streamlined Pipeline Notifier started.")
@dummy_sta... | 28.857143 | 144 | 0.694059 |
c822c334595781f28ed56994a603618740bef853 | 108 | exs | Elixir | test/gil_test.exs | modalsoul/Gil | db85866a52ba1e99fdb2e83b54233197f128654d | [
"MIT"
] | null | null | null | test/gil_test.exs | modalsoul/Gil | db85866a52ba1e99fdb2e83b54233197f128654d | [
"MIT"
] | null | null | null | test/gil_test.exs | modalsoul/Gil | db85866a52ba1e99fdb2e83b54233197f128654d | [
"MIT"
] | null | null | null | defmodule GilTest do
use ExUnit.Case
doctest Gil
test "the truth" do
assert 1 + 1 == 2
end
end
| 12 | 21 | 0.648148 |
c822fb17beca0e7a74473d9741b7220b426ee5ab | 23,223 | ex | Elixir | kousa/lib/broth/socket_handler.ex | JustM3Dev/dogehouse | dbd7df1936aaf794246ff1c748a41d4c0c59e5d8 | [
"MIT"
] | 1 | 2021-03-20T16:48:41.000Z | 2021-03-20T16:48:41.000Z | kousa/lib/broth/socket_handler.ex | ArnavBansal11/dogehouse | ec20abca35583d092d1231fdb233be1c30c87c7a | [
"MIT"
] | null | null | null | kousa/lib/broth/socket_handler.ex | ArnavBansal11/dogehouse | ec20abca35583d092d1231fdb233be1c30c87c7a | [
"MIT"
] | null | null | null | defmodule Broth.SocketHandler do
require Logger
alias Kousa.Utils.RegUtils
alias Beef.Users
alias Beef.Rooms
alias Beef.Follows
alias Ecto.UUID
alias Beef.RoomPermissions
# TODO: just collapse this into its parent module.
defmodule State do
@type t :: %__MODULE__{
awaiting_init: bool... | 26.940835 | 99 | 0.553761 |
c822fb69d8ba86a992f0e643c6ec2ba5aeb7e10e | 1,795 | exs | Elixir | config/config.exs | d-led/d-zen | 25aec2d78e3053df055c0be9cdfac5673dc94f0f | [
"Unlicense"
] | null | null | null | config/config.exs | d-led/d-zen | 25aec2d78e3053df055c0be9cdfac5673dc94f0f | [
"Unlicense"
] | null | null | null | config/config.exs | d-led/d-zen | 25aec2d78e3053df055c0be9cdfac5673dc94f0f | [
"Unlicense"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Config module.
#
# This configuration file is loaded before any dependency and
# is restricted to this project.
# General application configuration
import Config
config :dzen, Dzen.Repo,
database: "dzen_repo",
u... | 30.948276 | 117 | 0.726462 |
c822fc2ecb9fd95c10dc4b34b178e31a6e9a60c7 | 1,311 | exs | Elixir | config/prod.secret.exs | Geekfish/random-user-points-service | d0416ef8fc1f2591023763c0078d15c62f5fba3c | [
"MIT"
] | null | null | null | config/prod.secret.exs | Geekfish/random-user-points-service | d0416ef8fc1f2591023763c0078d15c62f5fba3c | [
"MIT"
] | 4 | 2021-08-16T11:44:58.000Z | 2021-08-19T15:45:10.000Z | config/prod.secret.exs | Geekfish/user-points-manager | d0416ef8fc1f2591023763c0078d15c62f5fba3c | [
"MIT"
] | null | null | null | # In this file, we load production configuration and secrets
# from environment variables. You can also hardcode secrets,
# although such is generally not recommended and you have to
# remember to add this file to your .gitignore.
use Mix.Config
database_url =
System.get_env("DATABASE_URL") ||
raise """
envi... | 31.214286 | 78 | 0.733028 |
c823018a23d114361e7c3de7a74e6f1bde14ff06 | 1,489 | ex | Elixir | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_cx_v3beta1_event_input.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_cx_v3beta1_event_input.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_cx_v3beta1_event_input.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... | 30.387755 | 97 | 0.748153 |
c823113880b5a2f71b6759a5d981b448414adae5 | 899 | ex | Elixir | gussing_game.ex | moshedeitsch/gussing_game-Elixir | 40a9ea03c39ad9c9f052c322403a4631e632cfc7 | [
"MIT"
] | null | null | null | gussing_game.ex | moshedeitsch/gussing_game-Elixir | 40a9ea03c39ad9c9f052c322403a4631e632cfc7 | [
"MIT"
] | null | null | null | gussing_game.ex | moshedeitsch/gussing_game-Elixir | 40a9ea03c39ad9c9f052c322403a4631e632cfc7 | [
"MIT"
] | null | null | null | defmodule GuessingGame do
def guess(a, b) when a > b, do: guess(b, a)
def guess(low, high) do
name = "Hi there, whats your name"
case String.trim(name) do
"Moshe" ->
"thats My Name"
-IO.puts("welcome to elixir #{name}")
end
answer = IO.gets("Hmmm.... maybe you're thinking of... | 19.977778 | 78 | 0.551724 |
c8231212e475801668b6adfee0d6660a33e74995 | 976 | exs | Elixir | config/dev.exs | felipelincoln/branchpage | 6f3ca7dfafe884af40883f84f3eb825bb061c974 | [
"MIT"
] | 49 | 2021-06-06T05:40:30.000Z | 2021-08-23T04:50:46.000Z | config/dev.exs | felipelincoln/mvp | 6f3ca7dfafe884af40883f84f3eb825bb061c974 | [
"MIT"
] | 40 | 2021-01-09T16:50:50.000Z | 2021-10-01T16:27:35.000Z | config/dev.exs | felipelincoln/mvp | 6f3ca7dfafe884af40883f84f3eb825bb061c974 | [
"MIT"
] | 5 | 2021-02-20T12:58:39.000Z | 2022-02-01T02:23:23.000Z | import Config
config :web, Web.Endpoint,
http: [port: 4000],
debug_errors: true,
code_reloader: true,
check_origin: false,
live_reload: [
patterns: [
~r"apps/web/lib/web/(live|view|templates)/.*(ex)$",
~r"apps/web/priv/static/(css|js)/.*(css|js)$",
~r"apps/web/priv/static/.*png$"
]
... | 25.684211 | 92 | 0.670082 |
c8232e462415846d3425a6b391369828e427b15c | 2,476 | ex | Elixir | lib/falco/logger.ex | sleipnir/grpc | 5d4a2e3e721af4be64ad64fe473de4e584c2c0da | [
"Apache-2.0"
] | 5 | 2022-02-08T13:51:08.000Z | 2022-02-09T14:12:47.000Z | lib/falco/logger.ex | sleipnir/grpc | 5d4a2e3e721af4be64ad64fe473de4e584c2c0da | [
"Apache-2.0"
] | 1 | 2022-02-08T15:46:07.000Z | 2022-02-08T15:46:07.000Z | lib/falco/logger.ex | sleipnir/grpc | 5d4a2e3e721af4be64ad64fe473de4e584c2c0da | [
"Apache-2.0"
] | null | null | null | defmodule Falco.Logger.Server do
@moduledoc """
Print log around server rpc calls, like:
17:18:45.151 [info] Handled by HelloServer.say_hello
17:18:45.151 [info] Response :ok in 11µs
## Usage
defmodule Your.Endpoint do
use Falco.Endpoint
intercept Falco.Logger.Server, level... | 25.791667 | 112 | 0.620759 |
c8237114563d9b44ceaf4b81a84dee7fd8ef9a73 | 610 | exs | Elixir | mix.exs | twDuke/myopic | 74b2322eb638fc3a21d0d7f5578bf16f142a711b | [
"MIT"
] | null | null | null | mix.exs | twDuke/myopic | 74b2322eb638fc3a21d0d7f5578bf16f142a711b | [
"MIT"
] | null | null | null | mix.exs | twDuke/myopic | 74b2322eb638fc3a21d0d7f5578bf16f142a711b | [
"MIT"
] | null | null | null | defmodule Myopic.Mixfile do
use Mix.Project
def project do
[apps_path: "apps",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps()]
end
# Dependencies can be Hex packages:
#
# {:my_dep, "~> 0.3.0"}
#
# Or git/path repositories:
#
# {:my_dep, git... | 22.592593 | 79 | 0.639344 |
c823957cadc4cfb66e079e60713d5f6597a96fc2 | 5,131 | ex | Elixir | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_primitive_transformation.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | 1 | 2021-10-01T09:20:41.000Z | 2021-10-01T09:20:41.000Z | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_primitive_transformation.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_primitive_transformation.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 51.828283 | 156 | 0.756383 |
c8239735b575dafafd4b113cf4ed65d58aca8cc7 | 119,694 | ex | Elixir | clients/cloud_iot/lib/google_api/cloud_iot/v1/api/projects.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/cloud_iot/lib/google_api/cloud_iot/v1/api/projects.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/cloud_iot/lib/google_api/cloud_iot/v1/api/projects.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... | 46.994111 | 864 | 0.6601 |
c823ba80811376851dc91fef72d812f1cfe71850 | 568 | exs | Elixir | mix.exs | gabrielgatu/xmpp_mapper | 18f886aa61c6013ea77c6573f721b17d4421c55d | [
"MIT"
] | 1 | 2020-05-08T05:12:12.000Z | 2020-05-08T05:12:12.000Z | mix.exs | gabrielgatu/xmpp_mapper | 18f886aa61c6013ea77c6573f721b17d4421c55d | [
"MIT"
] | null | null | null | mix.exs | gabrielgatu/xmpp_mapper | 18f886aa61c6013ea77c6573f721b17d4421c55d | [
"MIT"
] | null | null | null | defmodule XmppMapper.Mixfile do
use Mix.Project
def project do
[app: :xmpp_mapper,
version: "0.0.1",
elixir: "~> 1.2",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps]
end
# Type "mix help compile.app" for more information
def application do
[... | 19.586207 | 54 | 0.580986 |
c823d9426d4a09b85369d467354b5b391b741c1b | 12,329 | exs | Elixir | test/axon/loop_test.exs | cristineguadelupe/axon | be4a625ad4ba7f7e175d14f311656e374f16f6d4 | [
"Apache-2.0"
] | null | null | null | test/axon/loop_test.exs | cristineguadelupe/axon | be4a625ad4ba7f7e175d14f311656e374f16f6d4 | [
"Apache-2.0"
] | null | null | null | test/axon/loop_test.exs | cristineguadelupe/axon | be4a625ad4ba7f7e175d14f311656e374f16f6d4 | [
"Apache-2.0"
] | null | null | null | defmodule Axon.LoopTest do
use ExUnit.Case, async: true
import ExUnit.CaptureLog
alias Axon.Loop
alias Axon.Loop.State
describe "factories" do
test "loop/3 creates a basic loop with defaults" do
step_fn = fn _, _ -> 1 end
assert %Loop{init: init_fn, step: update_fn, output_transform: transf... | 30.899749 | 101 | 0.562657 |
c823e05b2bf6f2ee0406fefe1417d2950091f9b9 | 49,459 | ex | Elixir | clients/jobs/lib/google_api/jobs/v3/api/projects.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/jobs/lib/google_api/jobs/v3/api/projects.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/jobs/lib/google_api/jobs/v3/api/projects.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... | 52.784418 | 686 | 0.632342 |
c82407aaedbe04f558a69d226ac3cc16827a5fcc | 2,312 | ex | Elixir | clients/content/lib/google_api/content/v2/model/merchant_order_return.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/content/lib/google_api/content/v2/model/merchant_order_return.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/model/merchant_order_return.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 ... | 37.290323 | 111 | 0.701125 |
c82416fb3ed5090c17097c79b14d05a1b63bdf47 | 945 | ex | Elixir | survey/lib/survey/kick_starter.ex | RamanBut-Husaim/pragstudio-elixir | 21c723c933966798ae944ca2fd72697e9d0f2fa2 | [
"MIT"
] | null | null | null | survey/lib/survey/kick_starter.ex | RamanBut-Husaim/pragstudio-elixir | 21c723c933966798ae944ca2fd72697e9d0f2fa2 | [
"MIT"
] | null | null | null | survey/lib/survey/kick_starter.ex | RamanBut-Husaim/pragstudio-elixir | 21c723c933966798ae944ca2fd72697e9d0f2fa2 | [
"MIT"
] | null | null | null | defmodule Survey.KickStarter do
use GenServer
require Logger
@name __MODULE__
def start_link(_arg) do
Logger.info "starting the kickstarter"
GenServer.start_link(__MODULE__, :ok, name: @name)
end
def init(_state) do
Process.flag(:trap_exit, true)
server_pid = start_server()
{:ok, se... | 23.04878 | 92 | 0.69418 |
c824186cccf52bad4506ad9da41f32e234557cb0 | 3,085 | exs | Elixir | mix.exs | adamkittelson/toml-elixir | 476136b47265e06cea0ced80d37602ec99fa5a7b | [
"Apache-2.0"
] | null | null | null | mix.exs | adamkittelson/toml-elixir | 476136b47265e06cea0ced80d37602ec99fa5a7b | [
"Apache-2.0"
] | null | null | null | mix.exs | adamkittelson/toml-elixir | 476136b47265e06cea0ced80d37602ec99fa5a7b | [
"Apache-2.0"
] | null | null | null | defmodule Toml.MixProject do
use Mix.Project
@version "0.6.0"
@source_url "https://github.com/bitwalker/toml-elixir"
def project do
[
app: :toml,
version: @version,
elixir: "~> 1.6",
start_permanent: Mix.env() == :prod,
consolidate_protocols: Mix.env() != :test,
descrip... | 25.495868 | 77 | 0.553323 |
c8242dcd9ab8969bb858e1fe442788c5e64bf9f0 | 3,420 | exs | Elixir | test/integration/telemetry_test.exs | darrenclark/oban | 5eb6abf66053af81a1f604cea5da08bdfb4b5440 | [
"Apache-2.0"
] | null | null | null | test/integration/telemetry_test.exs | darrenclark/oban | 5eb6abf66053af81a1f604cea5da08bdfb4b5440 | [
"Apache-2.0"
] | null | null | null | test/integration/telemetry_test.exs | darrenclark/oban | 5eb6abf66053af81a1f604cea5da08bdfb4b5440 | [
"Apache-2.0"
] | null | null | null | defmodule Oban.Integration.TelemetryTest do
use Oban.Case
import ExUnit.CaptureLog
alias Oban.Telemetry
@moduletag :integration
defmodule Handler do
def handle([:oban, :job, :start], %{system_time: start_time}, meta, pid) do
send(pid, {:event, :start, start_time, meta})
end
def handle([... | 27.36 | 97 | 0.593567 |
c8244e4c8a873077b465afa0eb47336f8cf4175b | 142 | exs | Elixir | apps/cms/config/test.exs | noisecapella/dotcom | d5ef869412102d2230fac3dcc216f01a29726227 | [
"MIT"
] | 42 | 2019-05-29T16:05:30.000Z | 2021-08-09T16:03:37.000Z | apps/cms/config/test.exs | noisecapella/dotcom | d5ef869412102d2230fac3dcc216f01a29726227 | [
"MIT"
] | 872 | 2019-05-29T17:55:50.000Z | 2022-03-30T09:28:43.000Z | apps/cms/config/test.exs | noisecapella/dotcom | d5ef869412102d2230fac3dcc216f01a29726227 | [
"MIT"
] | 12 | 2019-07-01T18:33:21.000Z | 2022-03-10T02:13:57.000Z | use Mix.Config
config :cms, :drupal,
root: "http://cms.test",
static_path: "/sites/default/files"
config :cms, :cms_api, CMS.API.Static
| 17.75 | 37 | 0.690141 |
c82457d8aed71cd998a78c3dc1586a15f2407864 | 28,061 | exs | Elixir | test/glimesh/channel_categories_test.exs | MemoryLeakDeath/glimesh.tv | 1462c4b939da899f5e3f67c3f28850025d59a10f | [
"MIT"
] | null | null | null | test/glimesh/channel_categories_test.exs | MemoryLeakDeath/glimesh.tv | 1462c4b939da899f5e3f67c3f28850025d59a10f | [
"MIT"
] | null | null | null | test/glimesh/channel_categories_test.exs | MemoryLeakDeath/glimesh.tv | 1462c4b939da899f5e3f67c3f28850025d59a10f | [
"MIT"
] | null | null | null | defmodule Glimesh.ChannelCategoriesTest do
use Glimesh.DataCase
use Bamboo.Test
import Glimesh.AccountsFixtures
import Glimesh.Factory
import Glimesh.Streams.Channel
alias Glimesh.AccountsFixtures
alias Glimesh.ChannelCategories
describe "categories" do
alias Glimesh.Streams.Category
@valid_... | 36.348446 | 108 | 0.66694 |
c8245e71ee381c4a6db7db7ca626870ce6f94f9c | 2,095 | ex | Elixir | clients/games_configuration/lib/google_api/games_configuration/v1configuration/model/image_configuration.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/games_configuration/lib/google_api/games_configuration/v1configuration/model/image_configuration.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/games_configuration/lib/google_api/games_configuration/v1configuration/model/image_configuration.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 ... | 37.410714 | 206 | 0.723628 |
c8248d9cae6db143292634c7ed4893375b63a881 | 1,911 | ex | Elixir | client/lib/collector/collector.ex | vfournie/rudp-playground | 33b72e69e9bfab75df2febeab0c8c3e9b5fffd16 | [
"MIT"
] | 1 | 2017-07-14T03:19:56.000Z | 2017-07-14T03:19:56.000Z | client/lib/collector/collector.ex | vfournie/rudp-playground | 33b72e69e9bfab75df2febeab0c8c3e9b5fffd16 | [
"MIT"
] | null | null | null | client/lib/collector/collector.ex | vfournie/rudp-playground | 33b72e69e9bfab75df2febeab0c8c3e9b5fffd16 | [
"MIT"
] | null | null | null | defmodule RudpClient.Collector do
use GenServer
require Logger
## Client API
def start_link() do
GenServer.start_link(__MODULE__, :ok, name: __MODULE__)
end
def inc_counter(counter) do
GenServer.call(__MODULE__, {:inc_counter, counter})
end
def get_raw_stats() do
GenServ... | 25.824324 | 99 | 0.544218 |
c824de0ff577149275534ec4ab8e2fec4c734d17 | 425 | exs | Elixir | combo/phxexibee/test/phxexibee_web/views/error_view_test.exs | exineris/shp_challenge2021 | 2a5447af681259d0ea699b670cf079bd31315cd8 | [
"Apache-2.0"
] | null | null | null | combo/phxexibee/test/phxexibee_web/views/error_view_test.exs | exineris/shp_challenge2021 | 2a5447af681259d0ea699b670cf079bd31315cd8 | [
"Apache-2.0"
] | null | null | null | combo/phxexibee/test/phxexibee_web/views/error_view_test.exs | exineris/shp_challenge2021 | 2a5447af681259d0ea699b670cf079bd31315cd8 | [
"Apache-2.0"
] | null | null | null | defmodule PhxexibeeWeb.ErrorViewTest do
use PhxexibeeWeb.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(PhxexibeeWeb.ErrorView, "404.html", []) == "Not Found"
end
test "renders 500.html" do
... | 28.333333 | 94 | 0.738824 |
c8250e834accd8650ebcf474c06a39886007ce55 | 91 | ex | Elixir | priv/template/web/views/layout_view.ex | wojtekmach/phoenix | a6b3bf301c7088b8824a39a165582dc85dfdd2a4 | [
"MIT"
] | null | null | null | priv/template/web/views/layout_view.ex | wojtekmach/phoenix | a6b3bf301c7088b8824a39a165582dc85dfdd2a4 | [
"MIT"
] | null | null | null | priv/template/web/views/layout_view.ex | wojtekmach/phoenix | a6b3bf301c7088b8824a39a165582dc85dfdd2a4 | [
"MIT"
] | null | null | null | defmodule <%= application_module %>.LayoutView do
use <%= application_module %>.View
end
| 22.75 | 49 | 0.736264 |
c8251333775eb6af1266b3e93814a6d93091d5cc | 151 | exs | Elixir | test/hedwig_flowdock_test.exs | massive/hedwig_flowdock | 36b0e880ae182b6335cc01ddcf39d0c906b05000 | [
"MIT"
] | null | null | null | test/hedwig_flowdock_test.exs | massive/hedwig_flowdock | 36b0e880ae182b6335cc01ddcf39d0c906b05000 | [
"MIT"
] | null | null | null | test/hedwig_flowdock_test.exs | massive/hedwig_flowdock | 36b0e880ae182b6335cc01ddcf39d0c906b05000 | [
"MIT"
] | null | null | null | defmodule Hedwig.Adapters.Flowdock.Test do
use ExUnit.Case
doctest Hedwig.Adapters.Flowdock
test "the truth" do
assert 1 + 1 == 2
end
end
| 16.777778 | 42 | 0.715232 |
c8251edfae1e08f837ecab111e11b13db4e52b63 | 1,149 | ex | Elixir | lib/level/resolvers/group_membership_connection.ex | denismitr/level | 0b01b0e46c252510dd50b3558d987c6f1e0b1da9 | [
"Apache-2.0"
] | 1 | 2019-06-11T20:20:32.000Z | 2019-06-11T20:20:32.000Z | lib/level/resolvers/group_membership_connection.ex | denismitr/level | 0b01b0e46c252510dd50b3558d987c6f1e0b1da9 | [
"Apache-2.0"
] | null | null | null | lib/level/resolvers/group_membership_connection.ex | denismitr/level | 0b01b0e46c252510dd50b3558d987c6f1e0b1da9 | [
"Apache-2.0"
] | null | null | null | defmodule Level.Resolvers.GroupMembershipConnection do
@moduledoc """
A paginated connection for fetching a group's memberships.
"""
import Ecto.Query
alias Level.Pagination
alias Level.Pagination.Args
alias Level.Schemas.GroupUser
defstruct first: nil,
last: nil,
before: nil,... | 26.72093 | 83 | 0.59443 |
c8252cf72c182057732ce5be0be3933d6524ab37 | 147 | ex | Elixir | lib/elixir_chat_web/controllers/page_controller.ex | mikebobadilla/elixir-chat | e0955f9048dd088da8850a05dae5850a4e1f6124 | [
"MIT"
] | null | null | null | lib/elixir_chat_web/controllers/page_controller.ex | mikebobadilla/elixir-chat | e0955f9048dd088da8850a05dae5850a4e1f6124 | [
"MIT"
] | 2 | 2021-03-10T18:12:02.000Z | 2021-05-11T14:11:28.000Z | lib/elixir_chat_web/controllers/page_controller.ex | mikebobadilla/elixir-chat | e0955f9048dd088da8850a05dae5850a4e1f6124 | [
"MIT"
] | null | null | null | defmodule ElixirChatWeb.PageController do
use ElixirChatWeb, :controller
def index(conn, _params) do
render(conn, "index.html")
end
end
| 18.375 | 41 | 0.748299 |
c82536dd60d46688df4a788be5dfca5caab9ae29 | 165 | exs | Elixir | test/ja_spex_test.exs | ReelCoaches/ja_spex | 9ad3bdb8525f7eee005724305fb579d9d7a1bb8a | [
"Apache-2.0"
] | 1 | 2021-05-10T22:38:00.000Z | 2021-05-10T22:38:00.000Z | test/ja_spex_test.exs | ReelCoaches/ja_spex | 9ad3bdb8525f7eee005724305fb579d9d7a1bb8a | [
"Apache-2.0"
] | null | null | null | test/ja_spex_test.exs | ReelCoaches/ja_spex | 9ad3bdb8525f7eee005724305fb579d9d7a1bb8a | [
"Apache-2.0"
] | null | null | null | defmodule JaSpexTest do
use ExUnit.Case
doctest JaSpex
test "returns the content type" do
assert JaSpex.jsonapi() == "application/vnd.api+json"
end
end
| 18.333333 | 57 | 0.727273 |
c8256530c78f580e59470ce88ebc87926c6598d4 | 550 | exs | Elixir | test/distrib_db/tcp/command_test.exs | svard/distrib_db | 3e688fb068395b5d8b7015030c3e49f9f73acd7a | [
"MIT"
] | null | null | null | test/distrib_db/tcp/command_test.exs | svard/distrib_db | 3e688fb068395b5d8b7015030c3e49f9f73acd7a | [
"MIT"
] | null | null | null | test/distrib_db/tcp/command_test.exs | svard/distrib_db | 3e688fb068395b5d8b7015030c3e49f9f73acd7a | [
"MIT"
] | null | null | null | defmodule DistribDb.Tcp.CommandTest do
use ExUnit.Case
import DistribDb.Tcp.Command
test "should parse CREATE command" do
assert parse("CREATE mydb") == {:ok, {:create, "mydb"}}
end
test "should parse GET command" do
assert parse("GET mydb key") == {:ok, {:get, "mydb", "key"}}
end
test "should ... | 26.190476 | 79 | 0.634545 |
c8257fc0734b411edcdbf1f271e554d328783d59 | 10,956 | ex | Elixir | lib/smppex/pdu.ex | MarkMagnus/smppex | 01d2ab76164dab0ba2a37c8344b697842574054d | [
"Apache-2.0"
] | null | null | null | lib/smppex/pdu.ex | MarkMagnus/smppex | 01d2ab76164dab0ba2a37c8344b697842574054d | [
"Apache-2.0"
] | null | null | null | lib/smppex/pdu.ex | MarkMagnus/smppex | 01d2ab76164dab0ba2a37c8344b697842574054d | [
"Apache-2.0"
] | null | null | null | defmodule SMPPEX.Pdu do
@moduledoc """
Module for working with Pdu struct representing parsed SMPP PDU
"""
alias SMPPEX.Protocol.TlvFormat
alias SMPPEX.Protocol.CommandNames
alias SMPPEX.Pdu
@type t :: %Pdu{
command_id: non_neg_integer,
command_status: non_neg_integer,
sequence_number: non_n... | 23.460385 | 148 | 0.61966 |
c825e0498d17aaecb9fd880aba46209feaf4612b | 3,301 | ex | Elixir | lib/mix/tasks/hex.retire.ex | hexpm/hex | e732ccb3daf13a7c271b3c8442b5db6832a7f298 | [
"Apache-2.0"
] | 824 | 2015-01-05T09:12:36.000Z | 2022-03-28T12:02:29.000Z | lib/mix/tasks/hex.retire.ex | hexpm/hex | e732ccb3daf13a7c271b3c8442b5db6832a7f298 | [
"Apache-2.0"
] | 737 | 2015-01-01T05:48:46.000Z | 2022-03-29T12:56:12.000Z | lib/mix/tasks/hex.retire.ex | hexpm/hex | e732ccb3daf13a7c271b3c8442b5db6832a7f298 | [
"Apache-2.0"
] | 220 | 2015-03-14T17:55:11.000Z | 2022-03-23T22:17:07.000Z | defmodule Mix.Tasks.Hex.Retire do
use Mix.Task
@shortdoc "Retires a package version"
@moduledoc """
Retires a package version.
$ mix hex.retire PACKAGE VERSION REASON
$ mix hex.retire PACKAGE VERSION --unretire
Mark a package as retired when you no longer recommend it's usage. A retired
pac... | 29.738739 | 96 | 0.667676 |
c825e273e67c3c1ee777b91b0a9cb20adee840bc | 302 | exs | Elixir | config/prod.exs | elixir-berlin/juntos | 64dd05888f357cf0c74da11d1eda69bab7f38e95 | [
"MIT"
] | 1 | 2019-11-15T15:39:24.000Z | 2019-11-15T15:39:24.000Z | config/prod.exs | elixir-berlin/juntos | 64dd05888f357cf0c74da11d1eda69bab7f38e95 | [
"MIT"
] | 166 | 2020-06-30T16:07:48.000Z | 2021-11-25T00:02:24.000Z | config/prod.exs | elixir-berlin/juntos | 64dd05888f357cf0c74da11d1eda69bab7f38e95 | [
"MIT"
] | null | null | null | use Mix.Config
config :juntos, JuntosWeb.Endpoint,
url: [host: System.get_env("HOSTNAME") || "localhost", port: 80],
force_ssl: [rewrite_on: [:x_forwarded_proto]],
cache_static_manifest: "priv/static/cache_manifest.json"
# Do not print debug messages in production
config :logger, level: :info
| 30.2 | 67 | 0.745033 |
c825f72b7ad73fcd129465842156b3ead4f91e91 | 1,492 | ex | Elixir | lib/cadet_web/views/assessments_view.ex | geshuming/cadet | 783cc84173b8f4b504db3d3b1ca91037d51b5c8e | [
"MIT"
] | null | null | null | lib/cadet_web/views/assessments_view.ex | geshuming/cadet | 783cc84173b8f4b504db3d3b1ca91037d51b5c8e | [
"MIT"
] | null | null | null | lib/cadet_web/views/assessments_view.ex | geshuming/cadet | 783cc84173b8f4b504db3d3b1ca91037d51b5c8e | [
"MIT"
] | null | null | null | defmodule CadetWeb.AssessmentsView do
use CadetWeb, :view
use Timex
import CadetWeb.AssessmentsHelpers
def render("index.json", %{assessments: assessments}) do
render_many(assessments, CadetWeb.AssessmentsView, "overview.json", as: :assessment)
end
def render("overview.json", %{assessment: assessment... | 27.127273 | 88 | 0.595174 |
c8260659a4246d390f92fbde3bcc17861a0cc1e2 | 13,805 | exs | Elixir | test/whisk_test.exs | gcpreston/whisk | ce67f12ac6fc62f42252b300669e3fe9e3713be9 | [
"MIT"
] | null | null | null | test/whisk_test.exs | gcpreston/whisk | ce67f12ac6fc62f42252b300669e3fe9e3713be9 | [
"MIT"
] | null | null | null | test/whisk_test.exs | gcpreston/whisk | ce67f12ac6fc62f42252b300669e3fe9e3713be9 | [
"MIT"
] | null | null | null | defmodule WhiskTest do
use ExUnit.Case
doctest Whisk, only: [puzzle_types: 0]
test "raises on unsupported puzzle type" do
assert_raise RuntimeError, ~s(Unsupported puzzle type: :"3x4x5"), fn ->
Whisk.scramble(:"3x4x5")
end
assert_raise RuntimeError, ~s(Unsupported puzzle type: "idk some string... | 29.186047 | 101 | 0.614777 |
c826084ae9249b73019e633dffabcb6b8d4f1fd1 | 400 | ex | Elixir | lib/upvest/tenancy/asset.ex | upvestco/upvest-elixir | 4c04e6428e5795b7be88af8e516e604d4ff7009a | [
"MIT"
] | null | null | null | lib/upvest/tenancy/asset.ex | upvestco/upvest-elixir | 4c04e6428e5795b7be88af8e516e604d4ff7009a | [
"MIT"
] | 6 | 2019-09-09T00:47:30.000Z | 2019-10-23T14:45:13.000Z | lib/upvest/tenancy/asset.ex | upvestco/upvest-elixir | 4c04e6428e5795b7be88af8e516e604d4ff7009a | [
"MIT"
] | 1 | 2019-09-16T13:08:06.000Z | 2019-09-16T13:08:06.000Z | defmodule Upvest.Tenancy.Asset do
@moduledoc """
Handles operations related to Assets.
You can:
- Retrieve an asset
- List all assets
- List specific number of assets
For more details see `https://doc.upvest.co/reference#assets`
"""
use Upvest.API, [:all, :retrieve]
defstruct [:id, :name, :symbo... | 20 | 66 | 0.6775 |
c82615052ba9df6754cf25dc958e805dd1cbcc3c | 312 | ex | Elixir | frameworks/Elixir/plug/lib/framework_benchmarks/handlers/json.ex | xsoheilalizadeh/FrameworkBenchmarks | 855527008f7488e4fd508d1e72dfa9953874a2c6 | [
"BSD-3-Clause"
] | 5,300 | 2015-01-02T08:04:20.000Z | 2022-03-31T10:08:33.000Z | frameworks/Elixir/plug/lib/framework_benchmarks/handlers/json.ex | xsoheilalizadeh/FrameworkBenchmarks | 855527008f7488e4fd508d1e72dfa9953874a2c6 | [
"BSD-3-Clause"
] | 3,075 | 2015-01-01T05:11:45.000Z | 2022-03-31T23:56:33.000Z | frameworks/Elixir/plug/lib/framework_benchmarks/handlers/json.ex | xsoheilalizadeh/FrameworkBenchmarks | 855527008f7488e4fd508d1e72dfa9953874a2c6 | [
"BSD-3-Clause"
] | 2,151 | 2015-01-02T14:16:09.000Z | 2022-03-30T00:15:26.000Z | defmodule FrameworkBenchmarks.Handlers.JSON do
@moduledoc """
This is the handle for the /json route
"""
def handle(conn) do
{:ok, json} = Eljiffy.encode(%{message: "Hello, World!"})
conn
|> Plug.Conn.put_resp_content_type("application/json")
|> Plug.Conn.send_resp(200, json)
end
end
| 24 | 61 | 0.673077 |
c82619b8c8efd6dd00de8c7314e1cb70e3d1c6cf | 1,250 | exs | Elixir | clients/jobs/mix.exs | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/jobs/mix.exs | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/jobs/mix.exs | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | defmodule GoogleApi.Jobs.V2.Mixfile do
use Mix.Project
@version "0.0.1"
def project do
[app: :google_api_jobs,
version: @version,
elixir: "~> 1.4",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
description: description(),
package: package(),
deps: de... | 25.510204 | 154 | 0.604 |
c826300a6505b4eb9d3e027734d58146af222447 | 1,731 | exs | Elixir | test/annex/annex_error_test.exs | arpieb/annex | 6f472a30361bf0a1646e256d6dfe478706427f64 | [
"MIT"
] | 1 | 2020-10-23T13:41:07.000Z | 2020-10-23T13:41:07.000Z | test/annex/annex_error_test.exs | arpieb/annex | 6f472a30361bf0a1646e256d6dfe478706427f64 | [
"MIT"
] | null | null | null | test/annex/annex_error_test.exs | arpieb/annex | 6f472a30361bf0a1646e256d6dfe478706427f64 | [
"MIT"
] | null | null | null | defmodule Annex.AnnexErrorTest do
use ExUnit.Case
alias Annex.AnnexError
describe "exception" do
test "can be raised" do
err = %AnnexError{
message: "Hello",
details: [to: "World"]
}
assert_raise(AnnexError, fn -> raise err end)
end
end
describe "build/2" do
te... | 24.380282 | 72 | 0.500289 |
c826aad91b0a43298bddc0f581ed1080d375df46 | 1,636 | exs | Elixir | Programming_elixir/collections_exercises.exs | hectorip/ErlangExercises | 4a1aa5de0504da1bfe5a6c31c1d20277524ab363 | [
"MIT"
] | 4 | 2016-09-22T03:47:56.000Z | 2017-02-02T17:42:57.000Z | Programming_elixir/collections_exercises.exs | hectorip/ErlangExercises | 4a1aa5de0504da1bfe5a6c31c1d20277524ab363 | [
"MIT"
] | null | null | null | Programming_elixir/collections_exercises.exs | hectorip/ErlangExercises | 4a1aa5de0504da1bfe5a6c31c1d20277524ab363 | [
"MIT"
] | null | null | null |
defmodule Enums do
def all?(list, _f \\ fn x -> !!x end )
def all?([],_f), do: false
def all?(list, f) do
_all(list, f, true)
end
defp _all([], _f, acc), do: acc
defp _all([head|tail], f, acc) do
_all(tail, f, f.(head) and acc)
end
def each([], _f), do: :ok
def each([head|tail], f) do
f.(... | 26.387097 | 97 | 0.550122 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.