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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
97b13b54407ed2bf27a0280b2272a6d332afd528 | 1,807 | ex | Elixir | clients/cloud_debugger/lib/google_api/cloud_debugger/v2/model/list_debuggees_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/cloud_debugger/lib/google_api/cloud_debugger/v2/model/list_debuggees_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/cloud_debugger/lib/google_api/cloud_debugger/v2/model/list_debuggees_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 ... | 36.14 | 149 | 0.748755 |
97b162a654e6eef81119baaeb6acf3c5f1423d21 | 1,085 | ex | Elixir | lib/endpoints/login.ex | paperwork/service-users | 717463aa112fbb2d12ea23f672e18f4d39deb968 | [
"MIT"
] | 4 | 2019-03-17T15:27:31.000Z | 2020-05-19T17:35:21.000Z | lib/endpoints/login.ex | paperwork/service-users | 717463aa112fbb2d12ea23f672e18f4d39deb968 | [
"MIT"
] | null | null | null | lib/endpoints/login.ex | paperwork/service-users | 717463aa112fbb2d12ea23f672e18f4d39deb968 | [
"MIT"
] | 3 | 2019-02-15T21:48:51.000Z | 2019-04-08T06:43:38.000Z | defmodule Paperwork.Users.Endpoints.Login do
require Logger
use Paperwork.Users.Server
use Paperwork.Helpers.Response
pipeline do
end
namespace :login do
desc "Login User"
params do
requires :email, type: String
requires :password, type: String
e... | 31.911765 | 136 | 0.540092 |
97b1676f93fcf422027d8ca35eb0666a193c3ba0 | 1,959 | ex | Elixir | lib/ex_bitstamp/api.ex | fremantle-industries/ex_bitstamp | 05e4eb5d67358a7c3eca437bd2f315a93dbac3b6 | [
"MIT"
] | null | null | null | lib/ex_bitstamp/api.ex | fremantle-industries/ex_bitstamp | 05e4eb5d67358a7c3eca437bd2f315a93dbac3b6 | [
"MIT"
] | null | null | null | lib/ex_bitstamp/api.ex | fremantle-industries/ex_bitstamp | 05e4eb5d67358a7c3eca437bd2f315a93dbac3b6 | [
"MIT"
] | null | null | null | defmodule ExBitstamp.Api do
@moduledoc """
Manage HTTP requests to the Bitstamp REST API
"""
def get(path) do
path
|> build_url
|> HTTPoison.get([])
|> parse_response
end
def post(path, params \\ %{}) do
headers = %{"Content-Type": "application/x-www-form-urlencoded"}
nonce = gener... | 23.047059 | 88 | 0.608984 |
97b18e22776b20896ee3526f60197a546094e34e | 192 | exs | Elixir | priv/repo/migrations/20190123135704_add_community_in_mention_mails.exs | DavidAlphaFox/coderplanets_server | 3fd47bf3bba6cc04c9a34698201a60ad2f3e8254 | [
"Apache-2.0"
] | 1 | 2019-05-07T15:03:54.000Z | 2019-05-07T15:03:54.000Z | priv/repo/migrations/20190123135704_add_community_in_mention_mails.exs | DavidAlphaFox/coderplanets_server | 3fd47bf3bba6cc04c9a34698201a60ad2f3e8254 | [
"Apache-2.0"
] | null | null | null | priv/repo/migrations/20190123135704_add_community_in_mention_mails.exs | DavidAlphaFox/coderplanets_server | 3fd47bf3bba6cc04c9a34698201a60ad2f3e8254 | [
"Apache-2.0"
] | null | null | null | defmodule MastaniServer.Repo.Migrations.AddCommunityInMentionMails do
use Ecto.Migration
def change do
alter table(:mention_mails) do
add(:community, :string)
end
end
end
| 19.2 | 69 | 0.744792 |
97b1da39bf63999a89e9516515f96052da5d72f6 | 539 | ex | Elixir | lib/edgedb/protocol/datatypes/uint32.ex | f0lio/edgedb-elixir | b285bd8037b0b951aabfa1d1733889880f8bfd66 | [
"MIT"
] | null | null | null | lib/edgedb/protocol/datatypes/uint32.ex | f0lio/edgedb-elixir | b285bd8037b0b951aabfa1d1733889880f8bfd66 | [
"MIT"
] | null | null | null | lib/edgedb/protocol/datatypes/uint32.ex | f0lio/edgedb-elixir | b285bd8037b0b951aabfa1d1733889880f8bfd66 | [
"MIT"
] | null | null | null | defmodule EdgeDB.Protocol.Datatypes.UInt32 do
@moduledoc false
use EdgeDB.Protocol.Datatype
@uint32_max 0xFFFFFFFF
@uint32_min 0x0
defguard is_uint32(number)
when is_integer(number) and @uint32_min <= number and number <= @uint32_max
defdatatype(type: non_neg_integer())
@impl EdgeDB.Protoc... | 22.458333 | 86 | 0.729128 |
97b205f141b891a50a64c0f034e98d3b197f9199 | 19,861 | ex | Elixir | lib/livebook/session.ex | qrede/livebook | 5f3230f7aa6b638825bd43c6a84302a694240ddf | [
"Apache-2.0"
] | null | null | null | lib/livebook/session.ex | qrede/livebook | 5f3230f7aa6b638825bd43c6a84302a694240ddf | [
"Apache-2.0"
] | null | null | null | lib/livebook/session.ex | qrede/livebook | 5f3230f7aa6b638825bd43c6a84302a694240ddf | [
"Apache-2.0"
] | null | null | null | defmodule Livebook.Session do
@moduledoc false
# Server corresponding to a single notebook session.
#
# The process keeps the current notebook state and serves
# as a source of truth that multiple clients talk to.
# Receives update requests from the clients and notifies
# them of any changes applied to t... | 28.951895 | 96 | 0.68063 |
97b2069a0267686382253c3b4ddbdc7d133485e0 | 600 | ex | Elixir | .workshop/exercises/csv/solution/csv.ex | silesian-beamers/elixir-from-the-ground-up | 1ad8c2a4d429175461dc45e218849eb6a212c776 | [
"MIT"
] | 10 | 2015-12-13T07:29:08.000Z | 2016-09-22T03:47:35.000Z | .workshop/exercises/csv/solution/csv.ex | silesian-beamers/elixir-from-the-ground-up | 1ad8c2a4d429175461dc45e218849eb6a212c776 | [
"MIT"
] | 4 | 2015-12-02T12:12:14.000Z | 2016-01-11T07:33:24.000Z | .workshop/exercises/csv/solution/csv.ex | silesian-beamers/elixir-from-the-ground-up | 1ad8c2a4d429175461dc45e218849eb6a212c776 | [
"MIT"
] | null | null | null | defmodule Csv do
def parse(filename, opts \\ []) do
filename
|> File.stream!
|> Stream.map(&String.strip/1)
|> split_lines(Keyword.get(opts, :separator, ","))
|> with_header(Keyword.get(opts, :header, false))
|> Enum.to_list
end
defp split_lines(lines, separator) do
Enum.map(lines, &S... | 22.222222 | 54 | 0.616667 |
97b245d3c1b3f6e3f7b46ec749936abf5ba4a237 | 638 | exs | Elixir | test/use_cases/no_do_test.exs | chain-partners/definject | 3756551e5e80e07405bb45eacdd51b1482e11ca3 | [
"MIT"
] | 19 | 2020-03-03T14:53:48.000Z | 2020-04-01T16:18:34.000Z | test/use_cases/no_do_test.exs | nallwhy/definject | 806a4db449be28983f3b3cef37eb08863ee8d97a | [
"MIT"
] | 1 | 2020-10-19T11:22:15.000Z | 2020-10-20T05:14:17.000Z | test/use_cases/no_do_test.exs | nallwhy/definject | 806a4db449be28983f3b3cef37eb08863ee8d97a | [
"MIT"
] | 2 | 2020-11-19T17:34:19.000Z | 2021-05-16T05:46:22.000Z | defmodule Definject.NoDoTest do
use ExUnit.Case, async: true
import Definject
defmodule ForDocumentation do
definject add(a, b)
definject add(a, b), do: Calc.sum(a, b)
end
test "no do: for documentation" do
assert ForDocumentation.add(1, 1) == 2
assert ForDocumentation.add(1, 1, mock(%{&Cal... | 22 | 71 | 0.636364 |
97b2560908421bd0db8a51940daaa4b9ebdba986 | 414 | ex | Elixir | lib/keriex/derivation/code/code.ex | m00sey/keriex | cb1442b5793f2c3e2ea381eeb1cab9dea14c39a8 | [
"Apache-2.0"
] | null | null | null | lib/keriex/derivation/code/code.ex | m00sey/keriex | cb1442b5793f2c3e2ea381eeb1cab9dea14c39a8 | [
"Apache-2.0"
] | null | null | null | lib/keriex/derivation/code/code.ex | m00sey/keriex | cb1442b5793f2c3e2ea381eeb1cab9dea14c39a8 | [
"Apache-2.0"
] | null | null | null | defmodule Keriex.Derivation.Code do
@moduledoc false
defstruct name: "",
string: "",
data_length: 0,
prefix_base_64_length: 0,
prefix_data_length: 0,
basic: false,
self_addressing: false,
self_signing: false,
attached_s... | 23 | 37 | 0.567633 |
97b25af5bf7972bf9d5d69320ffa499b629e6039 | 1,664 | ex | Elixir | lib/graphql/mutations/integration.ex | isshindev/accent | ae4c13139b0a0dfd64ff536b94c940a4e2862150 | [
"BSD-3-Clause"
] | 806 | 2018-04-07T20:40:33.000Z | 2022-03-30T01:39:57.000Z | lib/graphql/mutations/integration.ex | isshindev/accent | ae4c13139b0a0dfd64ff536b94c940a4e2862150 | [
"BSD-3-Clause"
] | 194 | 2018-04-07T13:49:37.000Z | 2022-03-30T19:58:45.000Z | lib/graphql/mutations/integration.ex | doc-ai/accent | e337e16f3658cc0728364f952c0d9c13710ebb06 | [
"BSD-3-Clause"
] | 89 | 2018-04-09T13:55:49.000Z | 2022-03-24T07:09:31.000Z | defmodule Accent.GraphQL.Mutations.Integration do
use Absinthe.Schema.Notation
import Accent.GraphQL.Helpers.Authorization
import AbsintheErrorPayload.Payload
alias Accent.GraphQL.Resolvers.Integration, as: IntegrationResolver
input_object :project_integration_data_input do
field(:id, :id)
field(:u... | 34.666667 | 105 | 0.758413 |
97b26292486a1bbf6866274ed802a297ee524e8f | 11,264 | exs | Elixir | test/actions/pagination_test.exs | alexfreska/ash | b7ffc5495fd6d956199fb74cfc1f72f58bf8505a | [
"MIT"
] | null | null | null | test/actions/pagination_test.exs | alexfreska/ash | b7ffc5495fd6d956199fb74cfc1f72f58bf8505a | [
"MIT"
] | null | null | null | test/actions/pagination_test.exs | alexfreska/ash | b7ffc5495fd6d956199fb74cfc1f72f58bf8505a | [
"MIT"
] | null | null | null | defmodule Ash.Actions.PaginationTest do
use ExUnit.Case, async: true
require Ash.Query
defmodule User do
@moduledoc false
use Ash.Resource, data_layer: Ash.DataLayer.Ets
ets do
private?(true)
end
actions do
read :offset do
pagination offset?: true, countable: true
... | 29.333333 | 97 | 0.542436 |
97b27af5ce32825e18c2ee24ceba51368eac56bf | 978 | exs | Elixir | otapi/config/config.exs | MauriceReeves-usds/OpenTransplant | c0196ff8bc5b914ce07502a4b7a760c508854804 | [
"Apache-2.0"
] | 32 | 2021-05-15T15:03:39.000Z | 2022-03-30T01:19:43.000Z | otapi/config/config.exs | MauriceReeves-usds/OpenTransplant | c0196ff8bc5b914ce07502a4b7a760c508854804 | [
"Apache-2.0"
] | 3 | 2021-05-28T18:54:48.000Z | 2021-07-15T01:06:26.000Z | otapi/config/config.exs | MauriceReeves-usds/OpenTransplant | c0196ff8bc5b914ce07502a4b7a760c508854804 | [
"Apache-2.0"
] | 1 | 2021-06-25T20:40:30.000Z | 2021-06-25T20:40:30.000Z | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
#
# This configuration file is loaded before any dependency and
# is restricted to this project.
# General application configuration
use Mix.Config
# Configures the endpoint
config :otapi, OtapiWe... | 33.724138 | 86 | 0.768916 |
97b2bc8d307fe78cb117fca31cb99d6fc5ee57f0 | 62 | ex | Elixir | projects/standup/lib/standup_web/views/entry_view.ex | erik/sketches | 0a454ada58dee6db576e93cb2216dd750290329e | [
"MIT"
] | 1 | 2020-02-11T06:00:11.000Z | 2020-02-11T06:00:11.000Z | projects/standup/lib/standup_web/views/entry_view.ex | erik/sketches | 0a454ada58dee6db576e93cb2216dd750290329e | [
"MIT"
] | 1 | 2017-09-23T19:41:29.000Z | 2017-09-25T05:12:38.000Z | projects/standup/lib/standup_web/views/entry_view.ex | erik/sketches | 0a454ada58dee6db576e93cb2216dd750290329e | [
"MIT"
] | null | null | null | defmodule StandupWeb.EntryView do
use StandupWeb, :view
end
| 15.5 | 33 | 0.806452 |
97b2c6b313410378640cef8c6a865642d333429f | 1,026 | ex | Elixir | lib/orchestrator/orchestrator.ex | qwexvf/McProtocol | a9e243e2d6de7b51e049881c8ea8f12bff94feb1 | [
"MIT"
] | 21 | 2016-04-23T03:54:33.000Z | 2021-07-08T12:03:44.000Z | lib/orchestrator/orchestrator.ex | qwexvf/McProtocol | a9e243e2d6de7b51e049881c8ea8f12bff94feb1 | [
"MIT"
] | 2 | 2016-04-06T07:01:18.000Z | 2017-04-15T11:09:23.000Z | lib/orchestrator/orchestrator.ex | hansihe/elixir_mc_protocol | 4b3011338af573c6f583f541c410fb23574f4c10 | [
"MIT"
] | 9 | 2016-04-09T21:05:48.000Z | 2021-07-27T12:42:49.000Z | defmodule McProtocol.Orchestrator do
@moduledoc """
Orchestrates what Handler is active at what time.
While an orchestrator is not able to send or receive data directly on the
connection, it is able to activate handlers that does so. If you wanted
to implement something equivalent to BungeeCord, you would i... | 29.314286 | 79 | 0.714425 |
97b2d54f5f13abdd0abfec47e49b4a0f40c461a3 | 1,465 | exs | Elixir | config/dev.exs | booster-pocket-router/bpr-api | c2164aaa0de149a80f85712555f0e32bb45922ff | [
"MIT"
] | null | null | null | config/dev.exs | booster-pocket-router/bpr-api | c2164aaa0de149a80f85712555f0e32bb45922ff | [
"MIT"
] | null | null | null | config/dev.exs | booster-pocket-router/bpr-api | c2164aaa0de149a80f85712555f0e32bb45922ff | [
"MIT"
] | null | null | null | use Mix.Config
# For development, we disable any cache and enable
# debugging and code reloading.
#
# The watchers configuration can be used to run external
# watchers to your application. For example, we use it
# with webpack to recompile .js and .css sources.
config :bpr_api, BprApiWeb.Endpoint,
http: [port: 4000]... | 28.72549 | 68 | 0.721502 |
97b32c5a604aa2154e2f0b20c2dd0cba93495c67 | 1,682 | ex | Elixir | clients/app_engine/lib/google_api/app_engine/v1/model/batch_update_ingress_rules_request.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | null | null | null | clients/app_engine/lib/google_api/app_engine/v1/model/batch_update_ingress_rules_request.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | null | null | null | clients/app_engine/lib/google_api/app_engine/v1/model/batch_update_ingress_rules_request.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 35.041667 | 108 | 0.763377 |
97b35a62808dfd3e1aad0b207ca43243c77c58ca | 715 | exs | Elixir | test/battle_box_web/controllers/admin/page_controller_test.exs | GrantJamesPowell/battle_box | 301091955b68cd4672f6513d645eca4e3c4e17d0 | [
"Apache-2.0"
] | 2 | 2020-10-17T05:48:49.000Z | 2020-11-11T02:34:15.000Z | test/battle_box_web/controllers/admin/page_controller_test.exs | FlyingDutchmanGames/battle_box | 301091955b68cd4672f6513d645eca4e3c4e17d0 | [
"Apache-2.0"
] | 3 | 2020-05-18T05:52:21.000Z | 2020-06-09T07:24:14.000Z | test/battle_box_web/controllers/admin/page_controller_test.exs | FlyingDutchmanGames/battle_box | 301091955b68cd4672f6513d645eca4e3c4e17d0 | [
"Apache-2.0"
] | null | null | null | defmodule BattleBoxWeb.Admin.PageControllerTest do
use BattleBoxWeb.ConnCase
describe "GET /admin" do
test "If you're not logged in, it fails and redirects to /", %{conn: conn} do
conn = get(conn, "/admin")
assert redirected_to(conn, 302) =~ "/"
end
test "If you're not an admin, it fails a... | 24.655172 | 81 | 0.58042 |
97b36148da5202ab7ba6e0e65b1bafcdda41ee8d | 366 | exs | Elixir | test/ecto/types/erlang_test.exs | michaeljguarino/piazza_core | 9cb24c59687db068cd16d2de94066dc85f871bc0 | [
"MIT"
] | null | null | null | test/ecto/types/erlang_test.exs | michaeljguarino/piazza_core | 9cb24c59687db068cd16d2de94066dc85f871bc0 | [
"MIT"
] | null | null | null | test/ecto/types/erlang_test.exs | michaeljguarino/piazza_core | 9cb24c59687db068cd16d2de94066dc85f871bc0 | [
"MIT"
] | null | null | null | defmodule Piazza.Ecto.Types.ErlangTest do
use ExUnit.Case
alias Piazza.Ecto.Types.Erlang
describe "#load/1" do
test "It can decode encoded terms" do
{:ok, dump} = Erlang.dump(%{a: "map"})
{:ok, %{a: "map"}} = Erlang.load(dump)
end
test "It returns error for invalid binaries" do
:er... | 24.4 | 51 | 0.631148 |
97b373abefe177dbd21ac5043ec5f848ac37924b | 827 | ex | Elixir | lib/app/quote.ex | phaelar/hohenheim | f7347255d788b7656b31ac124f7f93428093c889 | [
"MIT"
] | null | null | null | lib/app/quote.ex | phaelar/hohenheim | f7347255d788b7656b31ac124f7f93428093c889 | [
"MIT"
] | 2 | 2016-11-30T08:57:20.000Z | 2016-12-05T06:59:41.000Z | lib/app/quote.ex | phaelar/hohenheim | f7347255d788b7656b31ac124f7f93428093c889 | [
"MIT"
] | null | null | null | defmodule App.Quote do
use Ecto.Schema
import Ecto.Changeset, only: [cast: 3]
import Ecto.Query, only: [from: 2]
alias App.Quote
alias App.Repo
schema "quotes" do
field :message, :string
field :author, :string
end
@required_fields ["message", "author"]
def insert_quote(%{} = quote) do
... | 16.54 | 40 | 0.620314 |
97b3771636889d4e7f3a46923f4876efd1a26b7d | 2,885 | ex | Elixir | clients/text_to_speech/lib/google_api/text_to_speech/v1beta1/model/voice_selection_params.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/text_to_speech/lib/google_api/text_to_speech/v1beta1/model/voice_selection_params.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/text_to_speech/lib/google_api/text_to_speech/v1beta1/model/voice_selection_params.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... | 54.433962 | 793 | 0.742808 |
97b3c83953dbdb49189780116044780f18d189e0 | 1,259 | ex | Elixir | apps/telemetry_event/lib/telemetry_event/helper/metrics_event.ex | calebcarroll1/smartcitiesdata | b0f03496f6c592c82ba14aebf6c5996311cf3cd0 | [
"Apache-2.0"
] | 26 | 2019-09-20T23:54:45.000Z | 2020-08-20T14:23:32.000Z | apps/telemetry_event/lib/telemetry_event/helper/metrics_event.ex | calebcarroll1/smartcitiesdata | b0f03496f6c592c82ba14aebf6c5996311cf3cd0 | [
"Apache-2.0"
] | 757 | 2019-08-15T18:15:07.000Z | 2020-09-18T20:55:31.000Z | apps/telemetry_event/lib/telemetry_event/helper/metrics_event.ex | calebcarroll1/smartcitiesdata | b0f03496f6c592c82ba14aebf6c5996311cf3cd0 | [
"Apache-2.0"
] | 9 | 2019-11-12T16:43:46.000Z | 2020-03-25T16:23:16.000Z | defmodule TelemetryEvent.Helper.MetricsEvent do
@moduledoc false
import Telemetry.Metrics
alias TelemetryEvent.Helper.AddMetrics
def metrics() do
AddMetrics.add_metrics_options()
|> Enum.map(fn metrics_option ->
Keyword.fetch!(metrics_option, :metric_type)
|> metrics_event(metrics_option)
... | 31.475 | 73 | 0.722796 |
97b3eb5cae0a531ca43d6b03667ff82500456502 | 131 | ex | Elixir | lib/extripe/transfer_reversal.ex | NarrativeApp/extripe | fc0c475e79fbf925c673ac4a67c27814c92839b6 | [
"MIT"
] | 28 | 2016-02-17T06:13:20.000Z | 2022-01-31T20:25:26.000Z | lib/extripe/transfer_reversal.ex | NarrativeApp/extripe | fc0c475e79fbf925c673ac4a67c27814c92839b6 | [
"MIT"
] | 17 | 2016-02-16T19:08:54.000Z | 2021-07-23T04:10:15.000Z | lib/extripe/transfer_reversal.ex | NarrativeApp/extripe | fc0c475e79fbf925c673ac4a67c27814c92839b6 | [
"MIT"
] | 6 | 2016-02-27T18:05:29.000Z | 2019-08-01T20:27:35.000Z | defmodule Extripe.TransferReversal do
use Extripe.Actions.CRUD, except: [:delete], scope: "transfers", resource: "reversals"
end
| 32.75 | 88 | 0.770992 |
97b428fb1c067710c41d416239ace5f3c8cdb625 | 4,072 | ex | Elixir | lib/ex_unit/lib/ex_unit/capture_io.ex | pap/elixir | c803afe90c766663823c74397fb23ed40ec52c5b | [
"Apache-2.0"
] | 1 | 2019-06-11T20:22:20.000Z | 2019-06-11T20:22:20.000Z | lib/ex_unit/lib/ex_unit/capture_io.ex | pap/elixir | c803afe90c766663823c74397fb23ed40ec52c5b | [
"Apache-2.0"
] | null | null | null | lib/ex_unit/lib/ex_unit/capture_io.ex | pap/elixir | c803afe90c766663823c74397fb23ed40ec52c5b | [
"Apache-2.0"
] | null | null | null | defmodule ExUnit.CaptureIO do
@moduledoc ~S"""
Functionality to capture IO for testing.
## Examples
defmodule AssertionTest do
use ExUnit.Case
import ExUnit.CaptureIO
test "example" do
assert capture_io(fn ->
IO.puts "a"
end) == "a\n"
end
... | 27.70068 | 106 | 0.625 |
97b4486d646c0e0235be1540bcaa31b763885b3e | 1,837 | ex | Elixir | clients/docs/lib/google_api/docs/v1/model/equation.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/docs/lib/google_api/docs/v1/model/equation.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/docs/lib/google_api/docs/v1/model/equation.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... | 34.018519 | 151 | 0.725095 |
97b45fcc3c839e517405f79a4859705ad9854ffe | 2,734 | ex | Elixir | lib/bamboo/plug/sent_email_viewer/email_preview_plug.ex | Raulkumar/bamboo | 0fcff1bf61e595eb821bc691ed9370b6a092afbf | [
"MIT"
] | null | null | null | lib/bamboo/plug/sent_email_viewer/email_preview_plug.ex | Raulkumar/bamboo | 0fcff1bf61e595eb821bc691ed9370b6a092afbf | [
"MIT"
] | null | null | null | lib/bamboo/plug/sent_email_viewer/email_preview_plug.ex | Raulkumar/bamboo | 0fcff1bf61e595eb821bc691ed9370b6a092afbf | [
"MIT"
] | 1 | 2020-04-21T12:36:34.000Z | 2020-04-21T12:36:34.000Z | defmodule Bamboo.SentEmailViewerPlug do
use Plug.Router
require EEx
alias Bamboo.SentEmail
no_emails_template = Path.join(__DIR__, "no_emails.html.eex")
EEx.function_from_file(:defp, :no_emails, no_emails_template)
index_template = Path.join(__DIR__, "index.html.eex")
EEx.function_from_file(:defp, :inde... | 24.19469 | 79 | 0.659108 |
97b46aa7a7f0e92bc402805fd1901ca323395239 | 583 | ex | Elixir | lib/ex_saferpay/request/alias_delete.ex | jshmrtn/ex-saferpay | 263fc6dacf5b2741eb3fff33cf8ed405637d170a | [
"MIT"
] | 1 | 2017-12-12T17:09:02.000Z | 2017-12-12T17:09:02.000Z | lib/ex_saferpay/request/alias_delete.ex | jshmrtn/ex-saferpay | 263fc6dacf5b2741eb3fff33cf8ed405637d170a | [
"MIT"
] | 4 | 2017-12-12T17:08:28.000Z | 2018-03-01T08:04:56.000Z | lib/ex_saferpay/request/alias_delete.ex | jshmrtn/ex-saferpay | 263fc6dacf5b2741eb3fff33cf8ed405637d170a | [
"MIT"
] | null | null | null | defmodule ExSaferpay.Request.AliasDelete do
@moduledoc """
See `AliasDelete` http://saferpay.github.io/jsonapi/1.2/
"""
use ExSaferpay.RequestNormalizer
alias ExSaferpay.Request
@type t :: %__MODULE__{
request_header: Request.RequestHeader.t(),
alias_id: String.t()
}
@enforc... | 19.433333 | 58 | 0.650086 |
97b47773022889c84afde8bc666da5e1b81a2620 | 1,556 | ex | Elixir | clients/content/lib/google_api/content/v21/model/account_image_improvements_settings.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v21/model/account_image_improvements_settings.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v21/model/account_image_improvements_settings.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 33.106383 | 119 | 0.760925 |
97b48787daa74724287aa7eba85e50f396f02ce4 | 1,337 | exs | Elixir | uderzo_demo_nerves/rel/config.exs | lehoff/uderzo_poncho | c7d03b07bf773301b5c9f856ffee377de3fa1abc | [
"Apache-2.0"
] | 46 | 2018-05-08T12:06:18.000Z | 2022-03-23T18:30:13.000Z | uderzo_demo_nerves/rel/config.exs | lehoff/uderzo_poncho | c7d03b07bf773301b5c9f856ffee377de3fa1abc | [
"Apache-2.0"
] | 13 | 2018-05-08T11:42:00.000Z | 2018-09-17T22:41:55.000Z | uderzo_demo_nerves/rel/config.exs | lehoff/uderzo_poncho | c7d03b07bf773301b5c9f856ffee377de3fa1abc | [
"Apache-2.0"
] | 4 | 2018-06-06T05:04:00.000Z | 2018-07-13T01:23:31.000Z | use Mix.Releases.Config,
# This sets the default release built by `mix release`
default_release: :default,
# This sets the default environment used by `mix release`
default_environment: :dev
# For a full list of config options for both releases
# and environments, visit https://hexdocs.pm/distillery/co... | 32.609756 | 81 | 0.744203 |
97b499f84ce4eb8772976cda781eb311b8b69809 | 384 | ex | Elixir | lib/elastix.ex | gharnly/elastix | ca61872cf67c539e833f1e0b438f7c93c30e0974 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | lib/elastix.ex | gharnly/elastix | ca61872cf67c539e833f1e0b438f7c93c30e0974 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 1 | 2017-07-19T15:35:03.000Z | 2017-07-19T15:35:03.000Z | lib/elastix.ex | gharnly/elastix | ca61872cf67c539e833f1e0b438f7c93c30e0974 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 4 | 2017-07-19T14:52:55.000Z | 2021-01-20T16:11:19.000Z | defmodule Elastix do
@moduledoc """
A module that provides a simple Interface to communicate with an Elastic server via REST.
"""
@doc false
def start do
:application.ensure_all_started(:elastix)
end
@doc false
def config, do: Application.get_all_env(:elastix)
@doc false
def config(key, defaul... | 24 | 91 | 0.71875 |
97b49cb5979db601e3f2ffec44d4bbc08159e39e | 1,940 | exs | Elixir | test/policr_mini/schemas/permission_test.exs | gchengyu/policr-mini | 5acd7d6609fcaea2dbd7276fa01ca334ef9f6e6a | [
"MIT"
] | null | null | null | test/policr_mini/schemas/permission_test.exs | gchengyu/policr-mini | 5acd7d6609fcaea2dbd7276fa01ca334ef9f6e6a | [
"MIT"
] | null | null | null | test/policr_mini/schemas/permission_test.exs | gchengyu/policr-mini | 5acd7d6609fcaea2dbd7276fa01ca334ef9f6e6a | [
"MIT"
] | null | null | null | defmodule PolicrMini.Schemas.PermissionTest do
use ExUnit.Case
alias PolicrMini.Factory
alias PolicrMini.Schemas.Permission
describe "schema" do
test "schema metadata" do
assert Permission.__schema__(:source) == "permissions"
assert Permission.__schema__(:fields) ==
[
... | 27.714286 | 91 | 0.628351 |
97b4a702503a2fab4214b85d222090ea0af3a93e | 355 | ex | Elixir | lib/inmana/restaurants/create.ex | ricktrovato/Trail_Elixir-Phoenix | 2cfc86a88a3992fbcea0b3905300f6727572e7a3 | [
"MIT"
] | null | null | null | lib/inmana/restaurants/create.ex | ricktrovato/Trail_Elixir-Phoenix | 2cfc86a88a3992fbcea0b3905300f6727572e7a3 | [
"MIT"
] | null | null | null | lib/inmana/restaurants/create.ex | ricktrovato/Trail_Elixir-Phoenix | 2cfc86a88a3992fbcea0b3905300f6727572e7a3 | [
"MIT"
] | null | null | null | defmodule Inmana.Restaurants.Create do
alias Inmana.{Repo, Restaurant}
def call(params) do
params
|> Restaurant.changeset()
|> Repo.insert()
|> handle_insert()
end
defp handle_insert({:ok, %Restaurant{}} = result), do: result
defp handle_insert({:error, result}),
do: {:error, %{result: ... | 22.1875 | 63 | 0.661972 |
97b4b4adfe2a8ba49a912517747bdd6633acf6e8 | 2,132 | ex | Elixir | csv_demo/lib/csv_demo/transformer.ex | rob-brown/ElixirTraining2018 | 9724cc4961d767a1ba2450240e026b46ad5a0f1b | [
"MIT"
] | 2 | 2018-02-01T22:56:09.000Z | 2020-01-20T19:57:48.000Z | csv_demo/lib/csv_demo/transformer.ex | rob-brown/ElixirTraining2018 | 9724cc4961d767a1ba2450240e026b46ad5a0f1b | [
"MIT"
] | null | null | null | csv_demo/lib/csv_demo/transformer.ex | rob-brown/ElixirTraining2018 | 9724cc4961d767a1ba2450240e026b46ad5a0f1b | [
"MIT"
] | null | null | null | defmodule CsvDemo.Transformer do
def in_state(input, output, state \\ "UT") do
process(input, output, fn stream ->
stream
|> Stream.filter(&(&1.state == state))
end)
end
def registration(input, output) do
process(input, output, fn stream ->
stream
|> Stream.filter(
&(&... | 23.688889 | 95 | 0.530488 |
97b4bc844fbb302cb02261b8f14917515e6b57c0 | 905 | exs | Elixir | examples/tutorial/mix.exs | mattbaker/riffed | 4a2bbe184713b8c3369af1b62f50aeb84d349c4a | [
"Apache-2.0"
] | null | null | null | examples/tutorial/mix.exs | mattbaker/riffed | 4a2bbe184713b8c3369af1b62f50aeb84d349c4a | [
"Apache-2.0"
] | 1 | 2018-06-19T01:12:29.000Z | 2018-06-20T19:22:17.000Z | examples/tutorial/mix.exs | mattbaker/riffed | 4a2bbe184713b8c3369af1b62f50aeb84d349c4a | [
"Apache-2.0"
] | 2 | 2018-06-18T20:14:19.000Z | 2021-05-25T23:20:36.000Z | defmodule RiffedTutorial.Mixfile do
use Mix.Project
def project do
[app: :riffed_tutorial,
version: "0.0.1",
elixir: "~> 1.0",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
compilers: [:thrift | Mix.compilers],
thrift_files: Mix.Utils.extract_files(["thrift"... | 23.815789 | 77 | 0.61547 |
97b4dfdeb3f31815c655eb0e102e3a1b990607fb | 2,512 | exs | Elixir | test/general_request_info_test.exs | idabmat/httparrot | 1bc15bf4c7330341b36f7dc7d933285cda7bbf67 | [
"MIT"
] | null | null | null | test/general_request_info_test.exs | idabmat/httparrot | 1bc15bf4c7330341b36f7dc7d933285cda7bbf67 | [
"MIT"
] | null | null | null | test/general_request_info_test.exs | idabmat/httparrot | 1bc15bf4c7330341b36f7dc7d933285cda7bbf67 | [
"MIT"
] | null | null | null | defmodule HTTParrot.GeneralRequestInfoTest do
use ExUnit.Case
import :meck
import HTTParrot.GeneralRequestInfo
setup do
new :cowboy_req
on_exit fn -> unload() end
:ok
end
doctest HTTParrot.GeneralRequestInfo
test "returns a list of args, headers, url and original ip" do
qs_vals = [{"a",... | 34.410959 | 116 | 0.602707 |
97b4f165663a1cd2a9f3b1965d5805bf991e7644 | 1,757 | exs | Elixir | test/arbor/ancestors_test.exs | herimedia/arbor | 957d9e0a0de67d9796ab6875aedf294f83f38d9f | [
"MIT"
] | 201 | 2016-11-07T03:13:21.000Z | 2022-03-22T20:57:17.000Z | test/arbor/ancestors_test.exs | chingan-tsc/arbor | 4f51f5f94261f048fac88782663e9501e033c33e | [
"MIT"
] | 30 | 2016-11-07T02:40:06.000Z | 2022-03-22T17:31:14.000Z | test/arbor/ancestors_test.exs | chingan-tsc/arbor | 4f51f5f94261f048fac88782663e9501e033c33e | [
"MIT"
] | 18 | 2017-02-22T08:10:54.000Z | 2021-11-03T18:07:24.000Z | defmodule Arbor.AncestorsTest do
use Arbor.TestCase
describe "ancestors/1 with an integer PK" do
test "given a struct w/ returns its ancestors" do
[root, branch1, _, leaf2, _, _] = create_chatter("pupperinos")
ancestors =
leaf2
|> Comment.ancestors()
|> Repo.all()
as... | 28.803279 | 72 | 0.619237 |
97b5135254c16b280eb80702bf2a0dcfa7bde40f | 1,637 | exs | Elixir | elixir/elixir-elm-playground/mix.exs | marcinbiegun/exercises | 36ad942e8d40d6471136326a3f6d09285bbd90aa | [
"MIT"
] | 1 | 2018-12-11T14:09:14.000Z | 2018-12-11T14:09:14.000Z | elixir/elixir-elm-playground/mix.exs | marcinbiegun/exercises | 36ad942e8d40d6471136326a3f6d09285bbd90aa | [
"MIT"
] | null | null | null | elixir/elixir-elm-playground/mix.exs | marcinbiegun/exercises | 36ad942e8d40d6471136326a3f6d09285bbd90aa | [
"MIT"
] | null | null | null | defmodule Playground.Mixfile do
use Mix.Project
def project do
[
app: :playground,
version: "0.0.1",
elixir: "~> 1.4",
elixirc_paths: elixirc_paths(Mix.env),
compilers: [:phoenix, :gettext] ++ Mix.compilers,
start_permanent: Mix.env == :prod,
aliases: aliases(),
... | 26.403226 | 79 | 0.583384 |
97b51dcbc541ed93ed5f79f3422ca42f56b3bb27 | 1,544 | ex | Elixir | lib/ex_urlscan/v1/base.ex | ninoseki/ExUrlscan | b714b132bd8f4be44553dcf272dc67e6db79aafa | [
"MIT"
] | 4 | 2019-07-22T13:13:14.000Z | 2021-11-16T20:07:57.000Z | lib/ex_urlscan/v1/base.ex | fja43/ExUrlscan | b714b132bd8f4be44553dcf272dc67e6db79aafa | [
"MIT"
] | 1 | 2020-08-07T02:32:49.000Z | 2020-08-07T02:32:49.000Z | lib/ex_urlscan/v1/base.ex | fja43/ExUrlscan | b714b132bd8f4be44553dcf272dc67e6db79aafa | [
"MIT"
] | 3 | 2020-01-31T02:53:32.000Z | 2021-11-16T04:07:59.000Z | defmodule ExUrlscan.V1.Base do
@moduledoc """
Basic HTTP interactions with urlscan.io
"""
alias ExUrlscan.UrlBuilder
@endpoint "https://urlscan.io/api/v1"
def request(method, path) do
do_request(method, path, "")
end
def request(method, path, params) do
payload =
params
|> Map.ne... | 20.864865 | 95 | 0.568005 |
97b54711d3936678bb12ea16f6213183e1fd7b1d | 38,950 | ex | Elixir | lib/ecto/adapters/myxql/connection.ex | xlgames-q5/ecto_sql | 3b01177aa3ce0f22f054fbd3d6794c68df352a50 | [
"Apache-2.0"
] | 1 | 2020-10-18T09:11:56.000Z | 2020-10-18T09:11:56.000Z | lib/ecto/adapters/myxql/connection.ex | xlgames-q5/ecto_sql | 3b01177aa3ce0f22f054fbd3d6794c68df352a50 | [
"Apache-2.0"
] | 1 | 2020-06-29T20:59:38.000Z | 2020-06-29T20:59:38.000Z | lib/ecto/adapters/myxql/connection.ex | adrianomitre/ecto_sql | 3b01177aa3ce0f22f054fbd3d6794c68df352a50 | [
"Apache-2.0"
] | 1 | 2019-05-31T02:43:25.000Z | 2019-05-31T02:43:25.000Z | if Code.ensure_loaded?(MyXQL) do
defmodule Ecto.Adapters.MyXQL.Connection do
@moduledoc false
alias Ecto.Adapters.SQL
@behaviour Ecto.Adapters.SQL.Connection
## Connection
@impl true
def child_spec(opts) do
MyXQL.child_spec(opts)
end
## Query
@impl true
def prepare_e... | 36.300093 | 135 | 0.604031 |
97b552dc277db18437cc29e54562ce72ad093ee6 | 2,263 | ex | Elixir | clients/you_tube/lib/google_api/you_tube/v3/model/video_statistics.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/you_tube/lib/google_api/you_tube/v3/model/video_statistics.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/you_tube/lib/google_api/you_tube/v3/model/video_statistics.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... | 38.355932 | 161 | 0.7057 |
97b5880193e48827798d550e7895a168c9eaf402 | 172 | ex | Elixir | lib/hergetto_web/components/logo_icon/logo_icon.ex | dusthijsvdh/hergetto | 87598d8023a68fdb23b0eeb7659f5c61113997c9 | [
"MIT"
] | 8 | 2021-03-07T16:24:05.000Z | 2022-02-28T02:36:35.000Z | lib/hergetto_web/components/logo_icon/logo_icon.ex | dusthijsvdh/hergetto | 87598d8023a68fdb23b0eeb7659f5c61113997c9 | [
"MIT"
] | 126 | 2021-02-15T10:51:07.000Z | 2022-03-28T02:25:01.000Z | lib/hergetto_web/components/logo_icon/logo_icon.ex | dusthijsvdh/hergetto | 87598d8023a68fdb23b0eeb7659f5c61113997c9 | [
"MIT"
] | null | null | null | defmodule HergettoWeb.Components.LogoIcon do
use Surface.Component
prop icon, :map, default: %{
type: "fontawesome",
value: "fab fa-phoenix-framework"
}
end
| 19.111111 | 44 | 0.703488 |
97b5a8d4aca038a7d4c040a448c995df6051dffc | 1,898 | exs | Elixir | test/digital_ocean/tag_test.exs | johnhidey/digital-ocean-elixir | 69fca5b61e4df773fd5d956bc1c80b89be3d7730 | [
"MIT"
] | 5 | 2020-09-20T19:35:32.000Z | 2021-12-15T08:57:22.000Z | test/digital_ocean/tag_test.exs | johnhidey/digital-ocean-elixir | 69fca5b61e4df773fd5d956bc1c80b89be3d7730 | [
"MIT"
] | 8 | 2020-09-25T14:30:03.000Z | 2022-02-21T18:04:48.000Z | test/digital_ocean/tag_test.exs | johnhidey/digital-ocean-elixir | 69fca5b61e4df773fd5d956bc1c80b89be3d7730 | [
"MIT"
] | 4 | 2020-09-25T14:26:11.000Z | 2021-08-09T06:43:18.000Z | defmodule DigitalOcean.TagTest do
use ExUnit.Case, async: true
alias DigitalOcean.{ Tag, Operation }
test "create/1" do
expected = %Operation{}
expected = Map.put(expected, :method, :post)
expected = Map.put(expected, :params, [name: "tag"])
expected = Map.put(expected, :path, "/tags")
asse... | 28.757576 | 109 | 0.640674 |
97b63e6ae5c4977d418f0f4e6812002df4fbe269 | 9,561 | ex | Elixir | deps/dialyxir/lib/dialyxir/project.ex | lgandersen/jocker_dist | b5e676f8d9e60bbc8bc7a82ccd1e05389f2cd5b5 | [
"BSD-2-Clause"
] | null | null | null | deps/dialyxir/lib/dialyxir/project.ex | lgandersen/jocker_dist | b5e676f8d9e60bbc8bc7a82ccd1e05389f2cd5b5 | [
"BSD-2-Clause"
] | null | null | null | deps/dialyxir/lib/dialyxir/project.ex | lgandersen/jocker_dist | b5e676f8d9e60bbc8bc7a82ccd1e05389f2cd5b5 | [
"BSD-2-Clause"
] | null | null | null | defmodule Dialyxir.Project do
@moduledoc false
import Dialyxir.Output, only: [info: 1, error: 1]
alias Dialyxir.FilterMap
def plts_list(deps, include_project \\ true, exclude_core \\ false) do
elixir_apps = [:elixir]
erlang_apps = [:erts, :kernel, :stdlib, :crypto]
core_plts =
if exclude_co... | 25.564171 | 129 | 0.623366 |
97b6406fd93966bc5a16b2f4a82cc7f3e5bce1b7 | 2,271 | exs | Elixir | config/prod.exs | wethanet/microsoft-graph-api | 5830eef0e631b2330bdc070fcd2359363a44b598 | [
"MIT"
] | 2 | 2020-01-28T14:19:38.000Z | 2021-07-03T00:33:11.000Z | config/prod.exs | wethanet/microsoft-graph-api | 5830eef0e631b2330bdc070fcd2359363a44b598 | [
"MIT"
] | null | null | null | config/prod.exs | wethanet/microsoft-graph-api | 5830eef0e631b2330bdc070fcd2359363a44b598 | [
"MIT"
] | 2 | 2019-07-25T06:43:05.000Z | 2020-01-28T14:19:41.000Z | use Mix.Config
# For production, we often load configuration from external
# sources, such as your system environment. For this reason,
# you won't find the :http configuration below, but set inside
# MicrosoftGraphApiWeb.Endpoint.init/2 when load_from_system_env is
# true. Any dynamic configuration should be done the... | 34.938462 | 78 | 0.733598 |
97b644a2be0620db58538afcf037131da77e0b32 | 14,663 | ex | Elixir | lib/live_element/utils.ex | gaslight/live_element | 78d4ab0a2daab470f2ffd25d446fbabb0d746afe | [
"MIT"
] | null | null | null | lib/live_element/utils.ex | gaslight/live_element | 78d4ab0a2daab470f2ffd25d446fbabb0d746afe | [
"MIT"
] | null | null | null | lib/live_element/utils.ex | gaslight/live_element | 78d4ab0a2daab470f2ffd25d446fbabb0d746afe | [
"MIT"
] | null | null | null | defmodule LiveElement.Utils do
# Shared helpers used mostly by Channel and Diff,
# but also Static, and LiveViewTest.
@moduledoc false
alias LiveElement.{Rendered, Socket, Lifecycle}
# All available mount options
@mount_opts [:temporary_assigns, :layout]
@max_flash_age :timer.seconds(60)
@doc """
... | 28.807466 | 106 | 0.639705 |
97b65025f657d8c8416c1bfc67d1a6c53f3e6858 | 423 | ex | Elixir | lib/siwapp_web/views/api/token_view.ex | jakon89/siwapp | b5f8fd43458deae72c76e434ed0c63b620cb97a4 | [
"MIT"
] | null | null | null | lib/siwapp_web/views/api/token_view.ex | jakon89/siwapp | b5f8fd43458deae72c76e434ed0c63b620cb97a4 | [
"MIT"
] | null | null | null | lib/siwapp_web/views/api/token_view.ex | jakon89/siwapp | b5f8fd43458deae72c76e434ed0c63b620cb97a4 | [
"MIT"
] | null | null | null | defmodule SiwappWeb.Api.TokenView do
use SiwappWeb, :view
@spec render(binary, map) :: map()
def render("token.json", %{token: token}) do
%{token: token}
end
def render("error.json", %{error_message: error_message}) do
%{error_message: error_message}
end
def render("valid_token.json", %{email: ... | 24.882353 | 81 | 0.678487 |
97b688d4520ba727bfc8a73c520d77cda64c3344 | 5,931 | ex | Elixir | clients/composer/lib/google_api/composer/v1beta1/model/software_config.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/composer/lib/google_api/composer/v1beta1/model/software_config.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/composer/lib/google_api/composer/v1beta1/model/software_config.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"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... | 98.85 | 1,506 | 0.736638 |
97b6b18c5986dd74fadaf439d02c195c28e2328e | 1,194 | exs | Elixir | config/config.exs | velimir0xff/alcsmg | 7f8845b4e4698009a44769fc593a551c5f9387ee | [
"MIT"
] | null | null | null | config/config.exs | velimir0xff/alcsmg | 7f8845b4e4698009a44769fc593a551c5f9387ee | [
"MIT"
] | null | null | null | config/config.exs | velimir0xff/alcsmg | 7f8845b4e4698009a44769fc593a551c5f9387ee | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
use Mix.Config
# Note this file is loaded before any dependency and is restricted
# to this project. If another project depends on this project, this
# file won't be loaded nor affect the parent project.
config :alcsmg, Alcsmg.Endpoint,
url: [host: "localh... | 26.533333 | 86 | 0.71608 |
97b6b457990eeb7131e121866a76f17dda572284 | 20,473 | ex | Elixir | lib/changelog/schema/news/news_item.ex | gustavoarmoa/changelog.com | e898a9979a237ae66962714821ed8633a4966f37 | [
"MIT"
] | 2,599 | 2016-10-25T15:02:53.000Z | 2022-03-26T02:34:42.000Z | lib/changelog/schema/news/news_item.ex | sdrees/changelog.com | 955cdcf93d74991062f19a03e34c9f083ade1705 | [
"MIT"
] | 253 | 2016-10-25T20:29:24.000Z | 2022-03-29T21:52:36.000Z | lib/changelog/schema/news/news_item.ex | sdrees/changelog.com | 955cdcf93d74991062f19a03e34c9f083ade1705 | [
"MIT"
] | 298 | 2016-10-25T15:18:31.000Z | 2022-01-18T21:25:52.000Z | defmodule Changelog.NewsItem do
use Changelog.Schema, default_sort: :published_at
require Logger
alias Changelog.{
Episode,
Files,
NewsItemComment,
NewsItemTopic,
NewsIssue,
NewsQueue,
NewsSource,
Person,
Post,
Regexp,
Subscription,
UrlKit
}
defenum(Status, d... | 30.786466 | 114 | 0.636155 |
97b6c65c7c4d5bcd103fdfe5558b013e01b822ac | 227,426 | ex | Elixir | clients/spanner/lib/google_api/spanner/v1/api/projects.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/spanner/lib/google_api/spanner/v1/api/projects.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/spanner/lib/google_api/spanner/v1/api/projects.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 49.46194 | 3,108 | 0.625584 |
97b6c889cda5b9f9e9478c2daed0e8f865471fd4 | 2,263 | ex | Elixir | lib/conversor/api_currency/currency_list.ex | wagncarv/CurrencyExchange | 3e626681d97a17a68385be31d8c8a82fd4bfcd59 | [
"MIT"
] | 1 | 2022-03-28T19:10:45.000Z | 2022-03-28T19:10:45.000Z | lib/conversor/api_currency/currency_list.ex | wagner-de-carvalho/currency_exchange | 6c784dcab0af3345c71a41ca606158298a447d49 | [
"MIT"
] | null | null | null | lib/conversor/api_currency/currency_list.ex | wagner-de-carvalho/currency_exchange | 6c784dcab0af3345c71a41ca606158298a447d49 | [
"MIT"
] | null | null | null | defmodule Conversor.ApiCurrency.CurrencyList do
alias Conversor.Database.DB
use Tesla
plug Tesla.Middleware.Headers, [{"content-type", "application/json"}]
plug Tesla.Middleware.JSON
plug Tesla.Middleware.Retry,
delay: 500,
max_retries: 5,
max_delay: 10_000
plug Tesla.Middleware.Timeout, time... | 26.623529 | 101 | 0.664163 |
97b6cc431586a7236f23afd5f0ed0840fee28bce | 605 | exs | Elixir | test/game_of_life_test.exs | xing/game_of_life | ee35f9c65fd3e70b69d3f2e9a88546ee66e803c8 | [
"MIT"
] | null | null | null | test/game_of_life_test.exs | xing/game_of_life | ee35f9c65fd3e70b69d3f2e9a88546ee66e803c8 | [
"MIT"
] | null | null | null | test/game_of_life_test.exs | xing/game_of_life | ee35f9c65fd3e70b69d3f2e9a88546ee66e803c8 | [
"MIT"
] | null | null | null | defmodule GameOfLifeTest do
alias GameOfLife.Board, as: Board
use ExUnit.Case
doctest GameOfLife
test "dead board" do
previous_board = %Board{size: {5,5}, alive_cells: MapSet.new([])}
new_board = %{previous_board | generation: 1}
assert new_board == GameOfLife.next_board_state(previous_board)
end... | 33.611111 | 84 | 0.712397 |
97b6ce295328182e8e9a73f2422495235aab9d1f | 3,964 | exs | Elixir | test/phoenix/template_test.exs | clickavia/phoenix | 60ff50fc7c8cf4fbac462961cbbdd370049df6b3 | [
"MIT"
] | null | null | null | test/phoenix/template_test.exs | clickavia/phoenix | 60ff50fc7c8cf4fbac462961cbbdd370049df6b3 | [
"MIT"
] | null | null | null | test/phoenix/template_test.exs | clickavia/phoenix | 60ff50fc7c8cf4fbac462961cbbdd370049df6b3 | [
"MIT"
] | null | null | null | defmodule Phoenix.TemplateTest do
use ExUnit.Case, async: true
doctest Phoenix.Template
alias Phoenix.Template
@templates Path.expand("../fixtures/templates", __DIR__)
test "engines/0" do
assert is_map Template.engines
end
test "template_path_to_name/2" do
path = "/var/www/templates/admin/user... | 31.712 | 163 | 0.650858 |
97b6d29b01fefdf41daa915b70dd87c4bb24f365 | 1,273 | exs | Elixir | test/benchmark.exs | itskoko/toniq | 1f96db00556bfac4a929c98fd7f9044906879492 | [
"MIT",
"Unlicense"
] | null | null | null | test/benchmark.exs | itskoko/toniq | 1f96db00556bfac4a929c98fd7f9044906879492 | [
"MIT",
"Unlicense"
] | null | null | null | test/benchmark.exs | itskoko/toniq | 1f96db00556bfac4a929c98fd7f9044906879492 | [
"MIT",
"Unlicense"
] | 3 | 2021-04-07T14:59:09.000Z | 2021-04-07T14:59:21.000Z | # Benchmark
# MIX_ENV=prod mix compile
# MIX_ENV=prod mix run test/benchmark.exs
job_count = 10000
# Wait for takeover to run
:timer.sleep 5000
IO.puts ""
defmodule BenchWorker do
use Toniq.Worker
def perform do
end
end
defmodule JobFinishedCounter do
def count(number, total) when number == total do
# ... | 19.584615 | 84 | 0.694423 |
97b77752e25672c1893fd0bbd939d8ddc877cc4b | 9,062 | exs | Elixir | test/cors_plug_test.exs | ST-Development/cors_plug | a90d5ea3d832b2a492e4b620e7a4f81e0432f60b | [
"Apache-2.0"
] | null | null | null | test/cors_plug_test.exs | ST-Development/cors_plug | a90d5ea3d832b2a492e4b620e7a4f81e0432f60b | [
"Apache-2.0"
] | null | null | null | test/cors_plug_test.exs | ST-Development/cors_plug | a90d5ea3d832b2a492e4b620e7a4f81e0432f60b | [
"Apache-2.0"
] | null | null | null | defmodule CORSPlugTest do
use ExUnit.Case, async: true
use Plug.Test
import Plug.Conn, only: [get_resp_header: 2, put_req_header: 3]
test "returns the right options for regular requests" do
opts = CORSPlug.init([])
conn =
:get
|> conn("/")
|> CORSPlug.call(opts)
assert ["*"] == ... | 27.969136 | 97 | 0.625579 |
97b77bbff35b8c63934f1edd5119ae6a12b5fdf0 | 554 | ex | Elixir | elixir/lib/homework/companies/companies.ex | menyx02/web-homework | efe99056a76c374bf9257ed0d16233febcd35524 | [
"MIT"
] | null | null | null | elixir/lib/homework/companies/companies.ex | menyx02/web-homework | efe99056a76c374bf9257ed0d16233febcd35524 | [
"MIT"
] | null | null | null | elixir/lib/homework/companies/companies.ex | menyx02/web-homework | efe99056a76c374bf9257ed0d16233febcd35524 | [
"MIT"
] | null | null | null | defmodule Homework.Companies.Company do
use Ecto.Schema
import Ecto.Changeset
alias Homework.Users.User
alias Homework.Transactions.Transaction
@primary_key {:id, :binary_id, autogenerate: true}
schema "companies" do
field(:name, :string)
field(:credit_line, :integer)
field(:available_credit,... | 22.16 | 66 | 0.711191 |
97b780cad5a79016565e48e18e041f2c72b866c7 | 1,151 | ex | Elixir | elixir/lib/storage/memory/memory_engine.ex | sndnv/nonamedb | e229ea19df94a89ddd135cf9e2b5bce5f1aa0f6f | [
"Apache-2.0"
] | 1 | 2019-04-21T05:29:54.000Z | 2019-04-21T05:29:54.000Z | elixir/lib/storage/memory/memory_engine.ex | sndnv/nonamedb | e229ea19df94a89ddd135cf9e2b5bce5f1aa0f6f | [
"Apache-2.0"
] | null | null | null | elixir/lib/storage/memory/memory_engine.ex | sndnv/nonamedb | e229ea19df94a89ddd135cf9e2b5bce5f1aa0f6f | [
"Apache-2.0"
] | null | null | null | defmodule Storage.Memory.MemoryEngine do
use GenServer
require Logger
@behaviour Storage.Engine
def start_link(options) do
GenServer.start_link(__MODULE__, :ok, options)
end
def get(engine, key) do
GenServer.call(engine, {:get, key})
end
def put(engine, key, value) do
GenServer.call(engi... | 21.716981 | 110 | 0.535187 |
97b7b02abf6c70f85b9237a273de1667de67bb69 | 2,693 | ex | Elixir | lib/noaa/cli.ex | Quanttek/noaa_cli | c9ba3bac9c9fc552cf85e9674875062585ab9601 | [
"Apache-2.0"
] | null | null | null | lib/noaa/cli.ex | Quanttek/noaa_cli | c9ba3bac9c9fc552cf85e9674875062585ab9601 | [
"Apache-2.0"
] | null | null | null | lib/noaa/cli.ex | Quanttek/noaa_cli | c9ba3bac9c9fc552cf85e9674875062585ab9601 | [
"Apache-2.0"
] | null | null | null | defmodule Noaa.CLI do
import Noaa, only: [decide_output: 1]
import Noaa.Station, only: [parse_keywords: 2]
import Noaa.Format, only: [create_table: 1]
alias Noaa.Station
def main(argv) do
argv
|> parse_args()
|> process()
end
#Users should be able to pass the following args: state, name, ab... | 32.841463 | 96 | 0.496844 |
97b7bcc587791012d6da05f1cb36e7eb0f62ac10 | 421 | exs | Elixir | test/fakepage_web/views/error_view_test.exs | murat/fakepagex | e98b4bfb9571ae19f2211542015a706568a755c7 | [
"MIT"
] | null | null | null | test/fakepage_web/views/error_view_test.exs | murat/fakepagex | e98b4bfb9571ae19f2211542015a706568a755c7 | [
"MIT"
] | null | null | null | test/fakepage_web/views/error_view_test.exs | murat/fakepagex | e98b4bfb9571ae19f2211542015a706568a755c7 | [
"MIT"
] | null | null | null | defmodule FakepageWeb.ErrorViewTest do
use FakepageWeb.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(FakepageWeb.ErrorView, "404.html", []) == "Not Found"
end
test "renders 500.html" do
... | 28.066667 | 93 | 0.736342 |
97b7e233d1684ae499be59f2f757db467d28dc75 | 2,657 | exs | Elixir | test/radiator_web/graphql/public/schema/query/networks_test.exs | bhtabor/radiator | 39c137a18d36d6f418f9d1ffb7aa2c99011d66cf | [
"MIT"
] | 92 | 2019-01-03T11:46:23.000Z | 2022-02-19T21:28:44.000Z | test/radiator_web/graphql/public/schema/query/networks_test.exs | bhtabor/radiator | 39c137a18d36d6f418f9d1ffb7aa2c99011d66cf | [
"MIT"
] | 350 | 2019-04-11T07:55:51.000Z | 2021-08-03T11:19:05.000Z | test/radiator_web/graphql/public/schema/query/networks_test.exs | bhtabor/radiator | 39c137a18d36d6f418f9d1ffb7aa2c99011d66cf | [
"MIT"
] | 10 | 2019-04-18T12:47:27.000Z | 2022-01-25T20:49:15.000Z | defmodule RadiatorWeb.GraphQL.Public.Schema.Query.NetworksTest do
use RadiatorWeb.ConnCase, async: true
import Radiator.Factory
@single_query """
query ($id: ID!) {
publishedNetwork(id: $id) {
id
title
}
}
"""
test "network returns a network", %{conn: conn} do
network = insert(:n... | 26.04902 | 91 | 0.509974 |
97b80ff489338c3a348ab701cc837a1fe0b141a6 | 338 | ex | Elixir | dojo/advent_rc/elxAdventMd5/lib/elxAdventMd5/solver.ex | friendlyantz/learning | c8beb342688f1c84d676125a91cc6cdb82c0166c | [
"Unlicense"
] | 1 | 2021-11-19T10:01:04.000Z | 2021-11-19T10:01:04.000Z | dojo/advent_rc/elxAdventMd5/lib/elxAdventMd5/solver.ex | friendlyantz/learning | c8beb342688f1c84d676125a91cc6cdb82c0166c | [
"Unlicense"
] | 59 | 2019-12-21T02:45:18.000Z | 2022-03-30T22:53:46.000Z | dojo/advent_rc/elxAdventMd5/lib/elxAdventMd5/solver.ex | friendlyantz/learning | c8beb342688f1c84d676125a91cc6cdb82c0166c | [
"Unlicense"
] | 1 | 2021-11-19T09:26:03.000Z | 2021-11-19T09:26:03.000Z | defmodule ElxAdventMd5.Solver do
def md5(key, number) do
:crypto.hash(:md5, "#{key}#{number}")
|> Base.encode16(case: :lower)
end
def do_md5(key, limit) do
Stream.iterate(0, &(&1+1))
|> Stream.map(&(md5(key, &1)))
|> Stream.filter(&(&1 =~ ~r/^00000/))
|> Enum.take(limit)
|> Enum.map... | 22.533333 | 41 | 0.559172 |
97b812c4dca8fcbf35cb5acb2af5f28a99e56555 | 55 | ex | Elixir | web/views/layout_view.ex | cjen07/lssn | a3b9f4998dc497935896657473b1c30a570c92e8 | [
"MIT"
] | null | null | null | web/views/layout_view.ex | cjen07/lssn | a3b9f4998dc497935896657473b1c30a570c92e8 | [
"MIT"
] | null | null | null | web/views/layout_view.ex | cjen07/lssn | a3b9f4998dc497935896657473b1c30a570c92e8 | [
"MIT"
] | null | null | null | defmodule Lssn.LayoutView do
use Lssn.Web, :view
end
| 13.75 | 28 | 0.763636 |
97b84a769e514e2bb65960e546b4bc5643214516 | 767 | ex | Elixir | test/support/prove.ex | hrzndhrn/geometry | bffdac0a9554f7f5fd05caceee0fa8f3c96d1c60 | [
"MIT"
] | null | null | null | test/support/prove.ex | hrzndhrn/geometry | bffdac0a9554f7f5fd05caceee0fa8f3c96d1c60 | [
"MIT"
] | 2 | 2020-10-25T10:06:07.000Z | 2020-10-26T18:15:20.000Z | test/support/prove.ex | hrzndhrn/geometry | bffdac0a9554f7f5fd05caceee0fa8f3c96d1c60 | [
"MIT"
] | null | null | null | defmodule Prove do
@moduledoc """
Prove provides the macro `prove` to write short tests.
"""
@operators [:==, :!=, :===, :!==, :<=, :>=, :<, :>, :=~]
@doc """
Prove
"""
@spec prove(String.t(), Macro.expr()) :: true | no_return
defmacro prove(description \\ "", expr)
defmacro prove(description, {o... | 25.566667 | 76 | 0.601043 |
97b850fb7b41f596cc765a86db8f01b8b66ec2ed | 10,623 | exs | Elixir | lib/mix/test/mix/tasks/archive_test.exs | felipelincoln/elixir | 6724c1d1819f2926dac561980b4beab281bbd3c2 | [
"Apache-2.0"
] | null | null | null | lib/mix/test/mix/tasks/archive_test.exs | felipelincoln/elixir | 6724c1d1819f2926dac561980b4beab281bbd3c2 | [
"Apache-2.0"
] | 1 | 2021-07-01T17:58:37.000Z | 2021-07-01T19:05:37.000Z | lib/mix/test/mix/tasks/archive_test.exs | felipelincoln/elixir | 6724c1d1819f2926dac561980b4beab281bbd3c2 | [
"Apache-2.0"
] | null | null | null | Code.require_file("../../test_helper.exs", __DIR__)
defmodule Mix.Tasks.ArchiveTest do
use MixTest.Case
defmodule ArchiveProject do
def project do
[app: :archive, version: "0.1.0", elixir: "~> 0.1.0"]
end
end
defmodule ArchiveProject2 do
def project do
[app: :archive, version: "0.2.0"... | 34.49026 | 93 | 0.642191 |
97b85114ba4774e11e7fdc0a2824deeb44f462bd | 5,245 | exs | Elixir | test/mix/tasks/hex.repo_test.exs | hrzndhrn/hex | f74e2ed979e74130bdc4a6974660aa986333f33f | [
"Apache-2.0"
] | 824 | 2015-01-05T09:12:36.000Z | 2022-03-28T12:02:29.000Z | test/mix/tasks/hex.repo_test.exs | hrzndhrn/hex | f74e2ed979e74130bdc4a6974660aa986333f33f | [
"Apache-2.0"
] | 737 | 2015-01-01T05:48:46.000Z | 2022-03-29T12:56:12.000Z | test/mix/tasks/hex.repo_test.exs | hrzndhrn/hex | f74e2ed979e74130bdc4a6974660aa986333f33f | [
"Apache-2.0"
] | 220 | 2015-03-14T17:55:11.000Z | 2022-03-23T22:17:07.000Z | defmodule Mix.Tasks.Hex.RepoTest do
use HexTest.Case
@public_key """
-----BEGIN PUBLIC KEY-----
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEApqREcFDt5vV21JVe2QNB
Edvzk6w36aNFhVGWN5toNJRjRJ6m4hIuG4KaXtDWVLjnvct6MYMfqhC79HAGwyF+
IqR6Q6a5bbFSsImgBJwz1oadoVKD6ZNetAuCIK84cjMrEFRkELtEIPNHblCzUkkM
3rS9+DPlnfG8hB... | 28.977901 | 95 | 0.564728 |
97b86e350de68c0c6cf00b54b7e0dbe2da41f3ba | 4,322 | ex | Elixir | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_cx_v3_fulfillment.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_v3_fulfillment.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_v3_fulfillment.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... | 51.452381 | 535 | 0.738084 |
97b879bb1fb6ec89903209a5079fc7a9fb4ed37c | 322 | exs | Elixir | Chapter07/apps/elixir_drip/config/dev.exs | sthagen/Mastering-Elixir | 1b52ee79afe6b2ae80767a5e55c2be51df3c4c1d | [
"MIT"
] | 28 | 2018-08-09T05:05:29.000Z | 2022-03-14T06:59:07.000Z | Chapter07/apps/elixir_drip/config/dev.exs | sthagen/Mastering-Elixir | 1b52ee79afe6b2ae80767a5e55c2be51df3c4c1d | [
"MIT"
] | 1 | 2019-02-11T09:11:33.000Z | 2019-05-06T06:40:19.000Z | Chapter07/apps/elixir_drip/config/dev.exs | sthagen/Mastering-Elixir | 1b52ee79afe6b2ae80767a5e55c2be51df3c4c1d | [
"MIT"
] | 8 | 2018-08-09T14:53:02.000Z | 2020-12-14T19:31:21.000Z | use Mix.Config
# Configure your database
config :elixir_drip, ElixirDrip.Repo,
adapter: Ecto.Adapters.Postgres,
username: System.get_env("DB_USER"),
password: System.get_env("DB_PASS"),
database: System.get_env("DB_NAME"),
hostname: System.get_env("DB_HOST"),
port: System.get_env("DB_PORT"),
pool_size: 1... | 26.833333 | 38 | 0.73913 |
97b880d330a719b98b4e1650f26950398196bdea | 1,258 | exs | Elixir | test/storage/auth_test.exs | g1ntas/ex-accio | 18f82b8dba1dbb0087505a3016259ae936a62fbe | [
"MIT"
] | null | null | null | test/storage/auth_test.exs | g1ntas/ex-accio | 18f82b8dba1dbb0087505a3016259ae936a62fbe | [
"MIT"
] | null | null | null | test/storage/auth_test.exs | g1ntas/ex-accio | 18f82b8dba1dbb0087505a3016259ae936a62fbe | [
"MIT"
] | null | null | null | defmodule Accio.Storage.AuthTest do
use ExUnit.Case
alias Accio.Storage.Auth
import ExUnit.CaptureIO
test "it should save credentials into the storage" do
defmodule StorageSaveMock do
def open_file(:auth), do: :ok
def insert(:auth, :auth, %Auth{username: "John", token: "test"}), do: :ok
... | 26.765957 | 91 | 0.635135 |
97b891178f17d45ee9c5e631f120036f9150bb45 | 358 | ex | Elixir | lib/cip/lessons/lesson.ex | fletchermoore/cip | 5dd1c6f105d6a4c8c34a9e824cbad2fcf78a0655 | [
"Unlicense"
] | null | null | null | lib/cip/lessons/lesson.ex | fletchermoore/cip | 5dd1c6f105d6a4c8c34a9e824cbad2fcf78a0655 | [
"Unlicense"
] | null | null | null | lib/cip/lessons/lesson.ex | fletchermoore/cip | 5dd1c6f105d6a4c8c34a9e824cbad2fcf78a0655 | [
"Unlicense"
] | null | null | null | defmodule Cip.Lessons.Lesson do
use Ecto.Schema
import Ecto.Changeset
alias Cip.Lessons.Lesson
schema "lessons" do
field :content, :string
field :title, :string
timestamps()
end
@doc false
def changeset(%Lesson{} = lesson, attrs) do
lesson
|> cast(attrs, [:title, :content])
|> ... | 17.047619 | 45 | 0.659218 |
97b8e4aba6854a662d8b0f7b0459d8a3d5535d74 | 3,139 | ex | Elixir | lib/sage/exceptions.ex | godfreydoo/sage | 8d0933748d195207eee25d6bf7a656c340901785 | [
"MIT"
] | 1 | 2022-03-13T10:57:05.000Z | 2022-03-13T10:57:05.000Z | lib/sage/exceptions.ex | godfreydoo/sage | 8d0933748d195207eee25d6bf7a656c340901785 | [
"MIT"
] | null | null | null | lib/sage/exceptions.ex | godfreydoo/sage | 8d0933748d195207eee25d6bf7a656c340901785 | [
"MIT"
] | null | null | null | defmodule Sage.EmptyError do
@moduledoc """
Raised at runtime when empty sage is executed.
"""
defexception [:message]
@impl true
def exception(_opts) do
message = "trying to execute empty Sage is not allowed"
%__MODULE__{message: message}
end
end
defmodule Sage.AsyncTransactionTimeoutError do
... | 24.523438 | 98 | 0.679516 |
97b8e4d439ebfa0fc25cc2e6e3230db6969a7f90 | 175 | exs | Elixir | priv/repo/migrations/20200211080841_add_raw_fingerprint.exs | wvffle/analytics | 2c0fd55bc67f74af1fe1e2641678d44e9fee61d5 | [
"MIT"
] | 984 | 2019-09-02T11:36:41.000Z | 2020-06-08T06:25:48.000Z | priv/repo/migrations/20200211080841_add_raw_fingerprint.exs | wvffle/analytics | 2c0fd55bc67f74af1fe1e2641678d44e9fee61d5 | [
"MIT"
] | 24 | 2019-09-10T09:53:17.000Z | 2020-06-08T07:35:26.000Z | priv/repo/migrations/20200211080841_add_raw_fingerprint.exs | wvffle/analytics | 2c0fd55bc67f74af1fe1e2641678d44e9fee61d5 | [
"MIT"
] | 51 | 2019-09-03T10:48:10.000Z | 2020-06-07T00:23:34.000Z | defmodule Plausible.Repo.Migrations.AddRawFingerprint do
use Ecto.Migration
def change do
alter table(:events) do
add :raw_fingerprint, :text
end
end
end
| 17.5 | 56 | 0.725714 |
97b906c4806a68da34956b75cf0d398ddd9d6586 | 189 | exs | Elixir | echo_server/config/config.exs | SteffenBauer/mia_elixir | 569388b1f9ddd09f8e21a4d9275c42a81d469857 | [
"MIT"
] | null | null | null | echo_server/config/config.exs | SteffenBauer/mia_elixir | 569388b1f9ddd09f8e21a4d9275c42a81d469857 | [
"MIT"
] | null | null | null | echo_server/config/config.exs | SteffenBauer/mia_elixir | 569388b1f9ddd09f8e21a4d9275c42a81d469857 | [
"MIT"
] | null | null | null | use Mix.Config
config :echo_server,
port: 4080
config :logger,
level: :debug
config :logger, :console,
format: "$date $time [$level] $levelpad$message\n",
colors: [info: :green]
| 15.75 | 53 | 0.677249 |
97b90d061f28d859a00de85642dfda3a16f4e10c | 927 | ex | Elixir | test/support/with_custom_changeset/repo_mock.ex | mitcheaton1/pow_assent | f3e9e6cc7dd16a3f2d9add885bd160d227abb713 | [
"MIT"
] | 193 | 2019-10-30T00:58:21.000Z | 2022-03-09T20:26:37.000Z | test/support/with_custom_changeset/repo_mock.ex | mitcheaton1/pow_assent | f3e9e6cc7dd16a3f2d9add885bd160d227abb713 | [
"MIT"
] | 82 | 2019-10-29T20:19:38.000Z | 2022-03-22T04:09:27.000Z | test/support/with_custom_changeset/repo_mock.ex | mitcheaton1/pow_assent | f3e9e6cc7dd16a3f2d9add885bd160d227abb713 | [
"MIT"
] | 28 | 2019-10-31T12:38:10.000Z | 2021-11-01T18:05:23.000Z | defmodule PowAssent.Test.WithCustomChangeset.RepoMock do
@moduledoc false
alias PowAssent.Test.RepoMock
alias PowAssent.Test.WithCustomChangeset.{UserIdentities.UserIdentity, Users.User}
def one(query, _opts) do
case inspect(query) =~ "left_join: u1 in assoc(u0, :user)" and inspect(query) =~ "where: u0.pr... | 40.304348 | 176 | 0.71521 |
97b911a6526629fd76661cc5e1938ac76c8be473 | 6,909 | ex | Elixir | lib/mongo_response.ex | frpaulas/elixir-mongo | 0e3fdef1ba988b092dc4f0681360e0cf6cdd72ec | [
"MIT"
] | null | null | null | lib/mongo_response.ex | frpaulas/elixir-mongo | 0e3fdef1ba988b092dc4f0681360e0cf6cdd72ec | [
"MIT"
] | null | null | null | lib/mongo_response.ex | frpaulas/elixir-mongo | 0e3fdef1ba988b092dc4f0681360e0cf6cdd72ec | [
"MIT"
] | null | null | null | defmodule Mongo.Response do
@moduledoc """
Receives, decode and parse MongoDB response from the server
"""
defstruct [
cursorID: nil,
startingFrom: nil,
nbdoc: nil,
buffer: nil,
requestID: nil,
decoder: nil]
@msg <<1, 0, 0, 0>> # 1 Opcode OP_REPLY : Reply to a client re... | 29.4 | 146 | 0.587929 |
97b950cbdf83db04f2e0b6841980b9fca03eeaf5 | 1,955 | ex | Elixir | test/support/job_test_helper.ex | sviik/task_bunny | 373836828289107b8ed917bd7dc5aeb5428af335 | [
"MIT"
] | 207 | 2017-02-03T12:23:24.000Z | 2022-03-22T17:03:23.000Z | test/support/job_test_helper.ex | sviik/task_bunny | 373836828289107b8ed917bd7dc5aeb5428af335 | [
"MIT"
] | 55 | 2020-05-12T05:18:41.000Z | 2022-03-24T04:04:17.000Z | test/support/job_test_helper.ex | sviik/task_bunny | 373836828289107b8ed917bd7dc5aeb5428af335 | [
"MIT"
] | 33 | 2017-02-06T08:16:37.000Z | 2021-09-13T00:38:16.000Z | defmodule TaskBunny.JobTestHelper do
defmodule Tracer do
def performed(_), do: nil
end
defmodule RetryInterval do
def interval, do: 60_000
end
defmodule TestJob do
use TaskBunny.Job
def perform(payload) do
Tracer.performed(payload)
if payload["sleep"], do: :timer.sleep(payload[... | 19.356436 | 96 | 0.556522 |
97b9621f980f2262548a78f3b733a0fc3b86bf42 | 1,873 | exs | Elixir | apps/api_web/config/config.exs | losvedir/api | a9bacff911704f53fac238c0eb23b7d6d6d3b70e | [
"MIT"
] | null | null | null | apps/api_web/config/config.exs | losvedir/api | a9bacff911704f53fac238c0eb23b7d6d6d3b70e | [
"MIT"
] | null | null | null | apps/api_web/config/config.exs | losvedir/api | a9bacff911704f53fac238c0eb23b7d6d6d3b70e | [
"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
# Configures the endpoint
config :api_web, ApiWeb.Endpoint,
url: [host: "localhost"... | 27.144928 | 86 | 0.722371 |
97b98bd1bed99bd4018965ea94a014e0f5ad77ef | 1,344 | exs | Elixir | test/program_test.exs | ElixiumNetwork/WaspVM | 7a313825ed50720256dda6e61e83356621357963 | [
"MIT"
] | 112 | 2018-12-14T23:43:38.000Z | 2019-03-22T22:02:27.000Z | test/program_test.exs | ElixiumNetwork/Elixium-Wasm | 7a313825ed50720256dda6e61e83356621357963 | [
"MIT"
] | 21 | 2018-12-22T23:53:14.000Z | 2019-02-21T00:18:05.000Z | test/program_test.exs | ElixiumNetwork/Elixium-Wasm | 7a313825ed50720256dda6e61e83356621357963 | [
"MIT"
] | 4 | 2019-05-11T16:37:19.000Z | 2021-05-18T13:45:06.000Z | defmodule AlchemyVM.ProgramTest do
use ExUnit.Case
require Bitwise
doctest AlchemyVM
test "32 bit div program works properly" do
{:ok, pid} = AlchemyVM.start()
AlchemyVM.load_file(pid, "test/fixtures/wasm/int_div.wasm")
{_status, _gas, result_1} = AlchemyVM.execute(pid, "main", [-4])
{_status,... | 24 | 81 | 0.622768 |
97b99ed7880fc6b8c6613aa45ad199e7932d96fd | 1,128 | exs | Elixir | config/dev.exs | digitalnatives/course_planner | 27b1c8067edc262685e9c4dcbfcf82633bc8b8dc | [
"MIT"
] | 38 | 2017-04-11T13:37:38.000Z | 2021-05-22T19:35:36.000Z | config/dev.exs | digitalnatives/course_planner | 27b1c8067edc262685e9c4dcbfcf82633bc8b8dc | [
"MIT"
] | 226 | 2017-04-07T13:14:14.000Z | 2018-03-08T16:50:11.000Z | config/dev.exs | digitalnatives/course_planner | 27b1c8067edc262685e9c4dcbfcf82633bc8b8dc | [
"MIT"
] | 7 | 2017-08-30T23:58:13.000Z | 2021-03-28T11:50:45.000Z | use Mix.Config
config :course_planner, CoursePlannerWeb.Endpoint,
http: [port: 4000],
debug_errors: true,
code_reloader: true,
check_origin: false,
watchers: [node: ["node_modules/gulp/bin/gulp.js", "default", "watch",
cd: Path.expand("../assets", __DIR__)]]
config :course_planner, Cour... | 27.512195 | 72 | 0.691489 |
97b9bb0febdbcdc87255a428ffeb204acee42e3f | 1,177 | ex | Elixir | directoalartista/settings/environment.py.ex | mpampols/directoalartista.com | 833eea7f4db5a2343dba4314793d593cd66cf1fb | [
"MIT"
] | null | null | null | directoalartista/settings/environment.py.ex | mpampols/directoalartista.com | 833eea7f4db5a2343dba4314793d593cd66cf1fb | [
"MIT"
] | null | null | null | directoalartista/settings/environment.py.ex | mpampols/directoalartista.com | 833eea7f4db5a2343dba4314793d593cd66cf1fb | [
"MIT"
] | 1 | 2018-03-29T02:16:18.000Z | 2018-03-29T02:16:18.000Z | # Django project environment-specific settings
from directoalartista.settings.base import *
DEBUG = False
TEMPLATE_DEBUG = DEBUG
SITE_ID = 1
#TODO: replace localhost with the domain name of the site
DEFAULT_FROM_EMAIL = 'info@directoalartista.com'
SERVER_EMAIL = DEFAULT_FROM_EMAIL
DATABASES = {
'default': {
... | 29.425 | 127 | 0.637213 |
97b9bd5ec02705307ed7c88fddd97bd86a8ad995 | 1,503 | ex | Elixir | lib/espec/assertions/change_to.ex | MeneDev/espec | ec4b3d579c5192999e930224a8a2650bb1fdf0bc | [
"Apache-2.0"
] | 807 | 2015-03-25T14:00:19.000Z | 2022-03-24T08:08:15.000Z | lib/espec/assertions/change_to.ex | MeneDev/espec | ec4b3d579c5192999e930224a8a2650bb1fdf0bc | [
"Apache-2.0"
] | 254 | 2015-03-27T10:12:25.000Z | 2021-07-12T01:40:15.000Z | lib/espec/assertions/change_to.ex | MeneDev/espec | ec4b3d579c5192999e930224a8a2650bb1fdf0bc | [
"Apache-2.0"
] | 85 | 2015-04-02T10:25:19.000Z | 2021-01-30T21:30:43.000Z | defmodule ESpec.Assertions.ChangeTo do
@moduledoc """
Defines 'change' assertion.
it do: expect(function1).to change(function2, to)
"""
use ESpec.Assertions.Interface
defp match(subject, [func, value]) do
initial = func.()
subject.()
then = func.()
result = initial != value && then == valu... | 32.673913 | 89 | 0.619428 |
97b9d713477948dbe4320c3274f4e79349633fae | 10,472 | exs | Elixir | test/lib/bamboo/adapters/test_adapter_test.exs | mrcasals/bamboo | c3b82436d9594d7838775fcc906cd4bd8516690e | [
"MIT"
] | 1,845 | 2016-03-29T23:36:36.000Z | 2022-03-31T19:23:38.000Z | test/lib/bamboo/adapters/test_adapter_test.exs | mrcasals/bamboo | c3b82436d9594d7838775fcc906cd4bd8516690e | [
"MIT"
] | 407 | 2016-03-29T14:55:19.000Z | 2022-02-02T13:53:50.000Z | test/lib/bamboo/adapters/test_adapter_test.exs | mrcasals/bamboo | c3b82436d9594d7838775fcc906cd4bd8516690e | [
"MIT"
] | 361 | 2016-03-31T13:33:22.000Z | 2022-02-25T12:38:43.000Z | defmodule Bamboo.TestAdapterTest do
use ExUnit.Case
use Bamboo.Test
import Bamboo.Email, only: [new_email: 0, new_email: 1]
alias Bamboo.TestAdapter
Application.put_env(
:bamboo,
__MODULE__.TestMailer,
adapter: Bamboo.TestAdapter
)
defmodule TestMailer do
use Bamboo.Mailer, otp_app: :bam... | 28.769231 | 92 | 0.655176 |
97b9e3ffb00599e9c313847607fdd347cad0ed4a | 6,515 | ex | Elixir | lib/membrane/core/parent/child_life_controller/link_handler.ex | eboskma/membrane_core | e216994fe1ba99c5d228a4b0959faa5fabb13b1c | [
"Apache-2.0"
] | null | null | null | lib/membrane/core/parent/child_life_controller/link_handler.ex | eboskma/membrane_core | e216994fe1ba99c5d228a4b0959faa5fabb13b1c | [
"Apache-2.0"
] | null | null | null | lib/membrane/core/parent/child_life_controller/link_handler.ex | eboskma/membrane_core | e216994fe1ba99c5d228a4b0959faa5fabb13b1c | [
"Apache-2.0"
] | null | null | null | defmodule Membrane.Core.Parent.ChildLifeController.LinkHandler do
@moduledoc false
use Bunch
alias Membrane.Core.{Bin, Child, Message, Parent, Telemetry}
alias Membrane.Core.Child.PadModel
alias Membrane.Core.Parent.{CrashGroup, Link, LinkParser}
alias Membrane.Core.Parent.Link.Endpoint
alias Membrane.L... | 36.80791 | 104 | 0.662164 |
97b9f88f6cb0d121365358798e9680ed09a35aa3 | 345 | ex | Elixir | lib/supervisor.ex | semeyon/ShortBot | 457c6ec5203fa18798b06f892625f5dfe0a3fba0 | [
"MIT"
] | 1 | 2017-07-18T15:22:06.000Z | 2017-07-18T15:22:06.000Z | lib/supervisor.ex | semeyon/ShortBot | 457c6ec5203fa18798b06f892625f5dfe0a3fba0 | [
"MIT"
] | null | null | null | lib/supervisor.ex | semeyon/ShortBot | 457c6ec5203fa18798b06f892625f5dfe0a3fba0 | [
"MIT"
] | null | null | null | defmodule Shortbot.Supervisor do
@moduledoc """
Supervisor for Shortbot.
"""
use Supervisor
def start_link do
Supervisor.start_link(__MODULE__, [])
end
def init(_) do
children = [
worker(Shortbot.Server, []),
worker(Shortbot.SlackRtm, [])
]
supervise(children, strategy:... | 16.428571 | 47 | 0.643478 |
97b9ff25e8e6e787e90937398c21493d0697aee5 | 1,869 | ex | Elixir | clients/service_management/lib/google_api/service_management/v1/model/metric_rule.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/service_management/lib/google_api/service_management/v1/model/metric_rule.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/service_management/lib/google_api/service_management/v1/model/metric_rule.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... | 38.9375 | 334 | 0.760835 |
97ba04f85d332046a1b0fc49d82e9293c88b8037 | 849 | exs | Elixir | mix.exs | gullintanni/gullintanni | 63c58b7ea438a4c6885a13842d8e33d3b1273ced | [
"0BSD"
] | 15 | 2016-08-09T21:27:54.000Z | 2020-12-03T11:21:10.000Z | mix.exs | gullintanni/gullintanni | 63c58b7ea438a4c6885a13842d8e33d3b1273ced | [
"0BSD"
] | 15 | 2016-08-04T21:11:05.000Z | 2017-08-02T17:46:17.000Z | mix.exs | gullintanni/gullintanni | 63c58b7ea438a4c6885a13842d8e33d3b1273ced | [
"0BSD"
] | null | null | null | defmodule Gullintanni.Platform.Mixfile do
use Mix.Project
def project() do
[
apps_path: "apps",
version: "0.1.0",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps(),
# Docs
name: "Gullintanni",
source_url: "https://github.com/gulli... | 23.583333 | 65 | 0.570082 |
97ba11f5ef5bcafc1d0c24fe528178b7b0f0de47 | 914 | ex | Elixir | fixtures/elixir/screenshot.ex | fibric/polis-nova-theme | 17997d64278f5c1e25b1e70fd735f2245bc6d787 | [
"MIT"
] | null | null | null | fixtures/elixir/screenshot.ex | fibric/polis-nova-theme | 17997d64278f5c1e25b1e70fd735f2245bc6d787 | [
"MIT"
] | null | null | null | fixtures/elixir/screenshot.ex | fibric/polis-nova-theme | 17997d64278f5c1e25b1e70fd735f2245bc6d787 | [
"MIT"
] | null | null | null | defrecord Person, first_name: nil, last_name: "Dudington" do
def name record do # huh ?
"#{record.first_name} #{record.last_name}"
end
end
defrecord User, name: "José", age: 25
guy = Person.new first_name: "Guy"
guy.name
defmodule ListServer do
@moduledoc """
This module provides an easy to use ListServe... | 18.653061 | 68 | 0.643326 |
97ba2090f07f274788597166403aca9320eb088f | 1,624 | ex | Elixir | lib/codes/codes_d15.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_d15.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_d15.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | defmodule IcdCode.ICDCode.Codes_D15 do
alias IcdCode.ICDCode
def _D150 do
%ICDCode{full_code: "D150",
category_code: "D15",
short_code: "0",
full_name: "Benign neoplasm of thymus",
short_name: "Benign neoplasm of thymus",
category_name: "Benign neoplasm of thymus... | 31.230769 | 82 | 0.62069 |
97ba36866446c249150ee110c2d667808f989f68 | 2,850 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/instance_group_manager_aggregated_list.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/instance_group_manager_aggregated_list.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/instance_group_manager_aggregated_list.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 45.238095 | 381 | 0.746316 |
97ba39356b1dbf8fe66a1f44da008ad2a213a134 | 958 | ex | Elixir | lib/tortoise311/connection/backoff.ex | jsmestad/tortoise311 | 146b4e5bcf967d0c07b43d0d029790f9f0a7d6a9 | [
"Apache-2.0"
] | null | null | null | lib/tortoise311/connection/backoff.ex | jsmestad/tortoise311 | 146b4e5bcf967d0c07b43d0d029790f9f0a7d6a9 | [
"Apache-2.0"
] | null | null | null | lib/tortoise311/connection/backoff.ex | jsmestad/tortoise311 | 146b4e5bcf967d0c07b43d0d029790f9f0a7d6a9 | [
"Apache-2.0"
] | null | null | null | defmodule Tortoise311.Connection.Backoff do
@moduledoc false
defstruct min_interval: 100, max_interval: 30_000, value: nil
alias __MODULE__, as: State
@doc """
Create an opaque data structure that describe a incremental
back-off.
"""
def new(opts) do
min_interval = Keyword.get(opts, :min_interval,... | 25.891892 | 66 | 0.688935 |
97ba3c0876eeb17d2ef3a663ba3659d8b5da8836 | 2,108 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/language.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/language.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/language.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 37.642857 | 256 | 0.708729 |
97ba4d69df501075af383975052832a5e9a95aa1 | 1,990 | ex | Elixir | lib/plug/request_id.ex | wojtekmach/plug | e9afab6c10f173d55b13bd78c64526fb21495b39 | [
"Apache-2.0"
] | null | null | null | lib/plug/request_id.ex | wojtekmach/plug | e9afab6c10f173d55b13bd78c64526fb21495b39 | [
"Apache-2.0"
] | null | null | null | lib/plug/request_id.ex | wojtekmach/plug | e9afab6c10f173d55b13bd78c64526fb21495b39 | [
"Apache-2.0"
] | null | null | null | defmodule Plug.RequestId do
@moduledoc """
A plug for generating a unique request id for each request. A generated
request id will in the format "uq8hs30oafhj5vve8ji5pmp7mtopc08f".
If a request id already exists as the "x-request-id" HTTP request header,
then that value will be used assuming it is between 20... | 31.09375 | 96 | 0.714573 |
97ba958e0bff773bf8469e2b80b517b67f5fd23e | 743 | ex | Elixir | lib/blackvue/application.ex | johnhamelink/blackvue | 4c36d18adf0d97d63fd212fc6b38cfc3ca856efe | [
"MIT"
] | 15 | 2018-03-06T16:39:23.000Z | 2021-05-27T06:11:11.000Z | lib/blackvue/application.ex | johnhamelink/blackvue | 4c36d18adf0d97d63fd212fc6b38cfc3ca856efe | [
"MIT"
] | 1 | 2018-06-25T14:38:18.000Z | 2018-06-25T14:38:18.000Z | lib/blackvue/application.ex | johnhamelink/blackvue | 4c36d18adf0d97d63fd212fc6b38cfc3ca856efe | [
"MIT"
] | 2 | 2019-10-07T22:07:23.000Z | 2020-01-23T03:18:44.000Z | defmodule Blackvue.Application do
# See http://elixir-lang.org/docs/stable/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
use Application
def start(_type, _args) do
import Supervisor.Spec, warn: false
# Define workers and child supervisors to be supervised
c... | 30.958333 | 80 | 0.713324 |
97bab0582c75df8148149d64f44e8b5732d3735f | 612 | exs | Elixir | priv/repo/migrations/20180928034909_add_oauth_support_to_amishi.exs | cruatta/cotoami | 29b7ef66c053cf4e381c6ff65d5fd599066ebabe | [
"Apache-2.0"
] | 337 | 2016-11-28T15:46:58.000Z | 2022-03-01T06:21:25.000Z | priv/repo/migrations/20180928034909_add_oauth_support_to_amishi.exs | cruatta/cotoami | 29b7ef66c053cf4e381c6ff65d5fd599066ebabe | [
"Apache-2.0"
] | 79 | 2017-02-27T05:44:36.000Z | 2021-12-09T00:28:11.000Z | priv/repo/migrations/20180928034909_add_oauth_support_to_amishi.exs | cruatta/cotoami | 29b7ef66c053cf4e381c6ff65d5fd599066ebabe | [
"Apache-2.0"
] | 47 | 2018-02-03T01:32:13.000Z | 2021-11-08T07:54:43.000Z | defmodule Cotoami.Repo.Migrations.AddOauthSupportToAmishi do
use Ecto.Migration
def change do
alter table(:amishis) do
modify :email, :string, null: true
add :auth_provider, :string, null: true
add :auth_id, :string, null: true
add :name, :string, null: true
add :avatar_url, :stri... | 34 | 105 | 0.694444 |
97bb148ca88c65b331d7aac8e95c1d1031028d26 | 1,800 | ex | Elixir | clients/genomics/lib/google_api/genomics/v1/model/dataset.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/genomics/lib/google_api/genomics/v1/model/dataset.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/genomics/lib/google_api/genomics/v1/model/dataset.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... | 34.615385 | 190 | 0.740556 |
97bb4a8aea74cca129247eb53ca0e6353644d44b | 2,339 | ex | Elixir | lib/livebook_web/helpers.ex | mcrumm/livebook | b1ceedc2205e64348212fbf7edce568cdb084e97 | [
"Apache-2.0"
] | 1 | 2021-04-16T05:42:12.000Z | 2021-04-16T05:42:12.000Z | lib/livebook_web/helpers.ex | cristina007-bot/livebook | 101f582196a161a06b62b38fe55c7f8c0a04b54d | [
"Apache-2.0"
] | null | null | null | lib/livebook_web/helpers.ex | cristina007-bot/livebook | 101f582196a161a06b62b38fe55c7f8c0a04b54d | [
"Apache-2.0"
] | null | null | null | defmodule LivebookWeb.Helpers do
import Phoenix.LiveView.Helpers
import Phoenix.HTML.Tag
@doc """
Renders a component inside the `Livebook.ModalComponent` component.
The rendered modal receives a `:return_to` option to properly update
the URL when the modal is closed.
"""
def live_modal(socket, compon... | 32.486111 | 95 | 0.667807 |
97bb7e587072a8bcc711ffadf22667d2c47f5c3a | 661 | exs | Elixir | mix.exs | avoceteditors/dion | 33198da25f77647630aeeeaf78959906d3a08c9f | [
"BSD-3-Clause"
] | null | null | null | mix.exs | avoceteditors/dion | 33198da25f77647630aeeeaf78959906d3a08c9f | [
"BSD-3-Clause"
] | 4 | 2021-12-06T01:44:47.000Z | 2021-12-12T21:45:21.000Z | mix.exs | avoceteditors/dion | 33198da25f77647630aeeeaf78959906d3a08c9f | [
"BSD-3-Clause"
] | null | null | null | defmodule Dion.MixProject do
use Mix.Project
def project do
[
app: :dion,
version: "0.1.0",
elixir: "~> 1.12",
escript: [main_module: Dion.CLI],
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def a... | 21.322581 | 87 | 0.570348 |
97bb83eef5511323bbb95cdc4078ecd0175c6697 | 240 | ex | Elixir | chapter14/spawn1.ex | ChristopheBelpaire/programmingElixir | 49e2226f2d4c4fe428a655bd48c119d52200ba07 | [
"MIT"
] | null | null | null | chapter14/spawn1.ex | ChristopheBelpaire/programmingElixir | 49e2226f2d4c4fe428a655bd48c119d52200ba07 | [
"MIT"
] | null | null | null | chapter14/spawn1.ex | ChristopheBelpaire/programmingElixir | 49e2226f2d4c4fe428a655bd48c119d52200ba07 | [
"MIT"
] | null | null | null | defmodule Spawn1 do
def greet do
receive do
{sender, msg} ->
send sender, {:ok, "Hello, #{msg}"}
end
end
end
pid = spawn(Spawn1, :greet, [])
send pid, {self, "World!"}
receive do
{:ok, message} ->
IO.puts message
end | 15 | 39 | 0.595833 |
97bba6279bdd93c80c2f99bb73de43d575f60c9c | 2,218 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/public_delegated_prefix_list_warning.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/public_delegated_prefix_list_warning.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/public_delegated_prefix_list_warning.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... | 40.327273 | 194 | 0.724076 |
97bba97cfec0c58e60e6ad225cb76de2a22f5c56 | 1,174 | ex | Elixir | lib/todo/endpoint.ex | robot-overlord/todo-example | 2877bf3dc94e857a576fdc922c040c6af2f68ec0 | [
"MIT"
] | 1 | 2017-07-20T17:41:13.000Z | 2017-07-20T17:41:13.000Z | lib/todo/endpoint.ex | robot-overlord/todo-example | 2877bf3dc94e857a576fdc922c040c6af2f68ec0 | [
"MIT"
] | null | null | null | lib/todo/endpoint.ex | robot-overlord/todo-example | 2877bf3dc94e857a576fdc922c040c6af2f68ec0 | [
"MIT"
] | null | null | null | defmodule Todo.Endpoint do
use Phoenix.Endpoint, otp_app: :todo
socket "/socket", Todo.EventSocket
# Serve at "/" the static files from "priv/static" directory.
#
# You should set gzip to true if you are running phoenix.digest
# when deploying your static files in production.
plug Plug.Static,
at: "... | 27.302326 | 69 | 0.710392 |
97bbc184487198bd2f3b6f5f4d95f441a85b3ea7 | 4,685 | exs | Elixir | lib/elixir/test/elixir/kernel/import_test.exs | bellthoven/elixir | 14610cb09b8d093d9513f97b7f4da82bdcbdd46d | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/kernel/import_test.exs | bellthoven/elixir | 14610cb09b8d093d9513f97b7f4da82bdcbdd46d | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/kernel/import_test.exs | bellthoven/elixir | 14610cb09b8d093d9513f97b7f4da82bdcbdd46d | [
"Apache-2.0"
] | null | null | null | Code.require_file "../test_helper.exs", __DIR__
defmodule Kernel.ImportTest do
use ExUnit.Case, async: true
# This should not warn due to the empty only
import URI, only: []
defmodule ImportAvailable do
defmacro flatten do
[flatten: 1]
end
end
test "multi-call" do
import Elixir.{List, ... | 24.274611 | 68 | 0.615582 |
97bbf251665fa29098586ae6b6d5cbde7d1687f8 | 4,156 | ex | Elixir | lib/control_node/namespace/initialize.ex | kianmeng/control-node | 76f96e09772a36a2aed23a5f7a5c909c4fc7f5df | [
"MIT"
] | null | null | null | lib/control_node/namespace/initialize.ex | kianmeng/control-node | 76f96e09772a36a2aed23a5f7a5c909c4fc7f5df | [
"MIT"
] | null | null | null | lib/control_node/namespace/initialize.ex | kianmeng/control-node | 76f96e09772a36a2aed23a5f7a5c909c4fc7f5df | [
"MIT"
] | null | null | null | defmodule ControlNode.Namespace.Initialize do
@moduledoc false
@state_name :initialize
# `Initialize` is the first state of the namespace fsm
# The name is can be in one of the following states,
# 1. Release is running on some or all hosts with same version
# 2. Release is not running any host
# 3. TODO... | 34.065574 | 94 | 0.692974 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.