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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1c65852df350193c0e6aa1821ed3b9e1022322da | 2,461 | exs | Elixir | test/credo/check/warning/raise_inside_rescue_test.exs | hrzndhrn/credo | 71a7b24a5ca8e7a48416e0cdfb42cf8a0fef9593 | [
"MIT"
] | 4,590 | 2015-09-28T06:01:43.000Z | 2022-03-29T08:48:57.000Z | test/credo/check/warning/raise_inside_rescue_test.exs | hrzndhrn/credo | 71a7b24a5ca8e7a48416e0cdfb42cf8a0fef9593 | [
"MIT"
] | 890 | 2015-11-16T21:07:07.000Z | 2022-03-29T08:52:07.000Z | test/credo/check/warning/raise_inside_rescue_test.exs | hrzndhrn/credo | 71a7b24a5ca8e7a48416e0cdfb42cf8a0fef9593 | [
"MIT"
] | 479 | 2015-11-17T19:42:40.000Z | 2022-03-29T00:09:21.000Z | defmodule Credo.Check.Warning.RaiseInsideRescueTest do
use Credo.Test.Case
@described_check Credo.Check.Warning.RaiseInsideRescue
test "it should NOT report expected code" do
"""
defmodule CredoSampleModule do
use ExUnit.Case
def catcher do
try do
raise "oops"
resc... | 21.778761 | 104 | 0.584722 |
1c65920cd479b338503a41da1566aee19debf0e2 | 69 | ex | Elixir | testData/org/elixir_lang/parser_definition/matched_or_operation_parsing_test_case/List.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 1,668 | 2015-01-03T05:54:27.000Z | 2022-03-25T08:01:20.000Z | testData/org/elixir_lang/parser_definition/matched_or_operation_parsing_test_case/List.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 2,018 | 2015-01-01T22:43:39.000Z | 2022-03-31T20:13:08.000Z | testData/org/elixir_lang/parser_definition/matched_or_operation_parsing_test_case/List.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 145 | 2015-01-15T11:37:16.000Z | 2021-12-22T05:51:02.000Z | [one: ()] || [two: ()]
[one: ()] ||| [two: ()]
[one: ()] or [two: ()] | 23 | 23 | 0.289855 |
1c65952aa20e9a584a018c0d06145156181b9dff | 164 | exs | Elixir | test/cain_test.exs | pfitz/cain | c1038a9d80e51213ee665149c585231b16c11b3f | [
"Apache-2.0"
] | 6 | 2019-12-17T12:40:19.000Z | 2022-01-18T07:25:20.000Z | test/cain_test.exs | pfitz/cain | c1038a9d80e51213ee665149c585231b16c11b3f | [
"Apache-2.0"
] | 9 | 2019-12-18T13:01:11.000Z | 2021-02-12T14:24:43.000Z | test/cain_test.exs | pfitz/cain | c1038a9d80e51213ee665149c585231b16c11b3f | [
"Apache-2.0"
] | 1 | 2020-09-16T09:19:08.000Z | 2020-09-16T09:19:08.000Z | defmodule CainTest do
use ExUnit.Case
# doctest Cain
# test "Get all process definitions" do
# assert Cain.Rest.call(Cain.Rest.Task.GetList)
# end
end
| 18.222222 | 51 | 0.707317 |
1c6596d44cff6c556441482f0037406dacf437a3 | 1,190 | ex | Elixir | lib/transformation.ex | joedevivo/open_scad | c8981396b088e795a4269d1ac8a66ef7a1ecc744 | [
"MIT"
] | 16 | 2018-02-12T22:06:00.000Z | 2022-01-04T05:07:35.000Z | lib/transformation.ex | joedevivo/open_scad | c8981396b088e795a4269d1ac8a66ef7a1ecc744 | [
"MIT"
] | 2 | 2019-12-07T15:54:10.000Z | 2019-12-07T19:21:14.000Z | lib/transformation.ex | joedevivo/open_scad | c8981396b088e795a4269d1ac8a66ef7a1ecc744 | [
"MIT"
] | null | null | null | defmodule OpenSCAD.Transformation do
@moduledoc """
Transformations are only different from Objects in that they can contain child
Actions, and this module defines the generic functionallity for traversing the
children on render.
"""
alias OpenSCAD.Action
defmacro __using__(_opts) do
quote do
... | 25.869565 | 80 | 0.653782 |
1c65a331acd701313508070f7728cdae6bcd4cca | 123 | ex | Elixir | lib/teslamate/settings/units/temperature.ex | douglasevaristo/teslamate | d239023942b319e9446d2da316d0afbddf701b9d | [
"MIT"
] | 1 | 2020-08-31T10:21:12.000Z | 2020-08-31T10:21:12.000Z | lib/teslamate/settings/units/temperature.ex | douglasevaristo/teslamate | d239023942b319e9446d2da316d0afbddf701b9d | [
"MIT"
] | 94 | 2020-10-26T06:28:30.000Z | 2022-03-30T15:03:41.000Z | lib/teslamate/settings/units/temperature.ex | douglasevaristo/teslamate | d239023942b319e9446d2da316d0afbddf701b9d | [
"MIT"
] | 1 | 2021-03-26T15:46:37.000Z | 2021-03-26T15:46:37.000Z | defmodule TeslaMate.Settings.Units.Temperature do
use EctoEnum.Postgres, type: :unit_of_temperature, enums: [:C, :F]
end
| 30.75 | 68 | 0.780488 |
1c65a7d8efd6acbd6ddfbf17955c3dac72e11868 | 3,588 | ex | Elixir | kousa/lib/kousa/room_chat.ex | lazarospsa/dogehouse | 4400518f5b6bce929e40eada615356e8814a8d28 | [
"MIT"
] | 1 | 2021-04-19T19:32:51.000Z | 2021-04-19T19:32:51.000Z | kousa/lib/kousa/room_chat.ex | lazarospsa/dogehouse | 4400518f5b6bce929e40eada615356e8814a8d28 | [
"MIT"
] | 1 | 2022-03-25T19:20:22.000Z | 2022-03-25T19:20:22.000Z | kousa/lib/kousa/room_chat.ex | lazarospsa/dogehouse | 4400518f5b6bce929e40eada615356e8814a8d28 | [
"MIT"
] | 1 | 2021-11-24T04:01:49.000Z | 2021-11-24T04:01:49.000Z | defmodule Kousa.RoomChat do
alias Kousa.Utils.RegUtils
alias Beef.Rooms
@message_character_limit 512
@spec send_msg(String.t(), list(map), list(String.t())) :: any
def send_msg(user_id, tokens, whispered_to) do
tokens = validate_tokens(tokens)
# NB: length(list) is O(N) so use a match for stuff lik... | 26.189781 | 95 | 0.567447 |
1c65accb65709c112e8c9c8ae08524b8a9abfe0a | 13,732 | ex | Elixir | lib/phoenix/router/helpers.ex | jesseshieh/phoenix | 1776e9df0a71de67374ed488b3f00ccb434045b3 | [
"MIT"
] | 1 | 2020-04-14T09:49:46.000Z | 2020-04-14T09:49:46.000Z | lib/phoenix/router/helpers.ex | jesseshieh/phoenix | 1776e9df0a71de67374ed488b3f00ccb434045b3 | [
"MIT"
] | 1 | 2020-05-26T19:38:18.000Z | 2020-05-26T19:38:18.000Z | lib/phoenix/router/helpers.ex | jesseshieh/phoenix | 1776e9df0a71de67374ed488b3f00ccb434045b3 | [
"MIT"
] | null | null | null | defmodule Phoenix.Router.Helpers do
# Module that generates the routing helpers.
@moduledoc false
alias Phoenix.Router.Route
alias Plug.Conn
@anno (if :erlang.system_info(:otp_release) >= '19' do
[generated: true, unquote: false]
else
[line: -1, unquote: false]
end)
@doc """
Callback invoke... | 32.77327 | 147 | 0.631518 |
1c65b37c5da71fea62618a17981e09cba90778e8 | 6,139 | ex | Elixir | lib/client.ex | asonix/http-client-elixir | 5610dc572d0d0b45d0b1ce7c1dba62e9d4c17c7e | [
"MIT"
] | 4 | 2016-08-16T11:47:58.000Z | 2018-06-08T05:47:09.000Z | lib/client.ex | asonix/http-client-elixir | 5610dc572d0d0b45d0b1ce7c1dba62e9d4c17c7e | [
"MIT"
] | null | null | null | lib/client.ex | asonix/http-client-elixir | 5610dc572d0d0b45d0b1ce7c1dba62e9d4c17c7e | [
"MIT"
] | null | null | null | defmodule Client do
@moduledoc """
The client module contains two functions of note, `do_request/6` and
`do_request!/6` which perform HTTP actions as well as encoding and decoding
data and setting headers involved in the request.
## Actions
Actions are the part that actually make the HTTP Request, if th... | 31.80829 | 203 | 0.61655 |
1c65ce58ab95a6612034588b6d00d539b871654c | 2,027 | ex | Elixir | apps/kv_server/lib/kv_server/command.ex | jeremy-miller/mix-otp-guide | f949e3221f2ccbb604496c169a16715b73e3676b | [
"MIT"
] | null | null | null | apps/kv_server/lib/kv_server/command.ex | jeremy-miller/mix-otp-guide | f949e3221f2ccbb604496c169a16715b73e3676b | [
"MIT"
] | null | null | null | apps/kv_server/lib/kv_server/command.ex | jeremy-miller/mix-otp-guide | f949e3221f2ccbb604496c169a16715b73e3676b | [
"MIT"
] | null | null | null | defmodule KVServer.Command do
@doc """
Runs the given command.
"""
def run(command)
def run({:create, bucket}) do
KV.Registry.create(KV.Registry, bucket)
{:ok, "OK\r\n"}
end
def run({:get, bucket, key}) do
lookup(bucket, fn pid ->
value = KV.Bucket.get(pid, key)
{:ok, "#{value}\r... | 25.3375 | 80 | 0.579674 |
1c65d95b4540187bcf27837890ee6cca99a3a8bb | 2,016 | exs | Elixir | mix.exs | nelsonmfinda/discuss | 219144cd82240a6acd1335710a8f0a8d1b6b4a88 | [
"MIT"
] | null | null | null | mix.exs | nelsonmfinda/discuss | 219144cd82240a6acd1335710a8f0a8d1b6b4a88 | [
"MIT"
] | null | null | null | mix.exs | nelsonmfinda/discuss | 219144cd82240a6acd1335710a8f0a8d1b6b4a88 | [
"MIT"
] | null | null | null | defmodule Discuss.MixProject do
use Mix.Project
def project do
[
app: :discuss,
version: "0.1.0",
elixir: "~> 1.12",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:gettext] ++ Mix.compilers(),
start_permanent: Mix.env() == :prod,
aliases: aliases(),
deps: ... | 28.394366 | 84 | 0.565476 |
1c65e463b469d7b403e301fd6c0b6cb339644d83 | 1,882 | ex | Elixir | lib/accent/auth/user_remote/persister.ex | leonardocouy/accent | 29fb324395ff998cc5cdc6947c60070ffabe647c | [
"BSD-3-Clause"
] | null | null | null | lib/accent/auth/user_remote/persister.ex | leonardocouy/accent | 29fb324395ff998cc5cdc6947c60070ffabe647c | [
"BSD-3-Clause"
] | null | null | null | lib/accent/auth/user_remote/persister.ex | leonardocouy/accent | 29fb324395ff998cc5cdc6947c60070ffabe647c | [
"BSD-3-Clause"
] | null | null | null | defmodule Accent.UserRemote.Persister do
@moduledoc """
Manage user creation and provider creation.
This module makes sure that a user, returned from the Accent.UserRemote.Fetcher,
is persisted in the database with its provider infos and email.
3 cases can happen when a user is fetched.
- New user with n... | 34.218182 | 160 | 0.717853 |
1c661c348f9f88c2436aa1121835cc428e35d2d5 | 1,608 | exs | Elixir | mix.exs | saleyn/sorted_set | 2f0dc27c39637fa97413e1a8740b1ec12ef1653f | [
"MIT"
] | 534 | 2020-03-25T06:24:07.000Z | 2022-03-31T21:55:15.000Z | mix.exs | saleyn/sorted_set | 2f0dc27c39637fa97413e1a8740b1ec12ef1653f | [
"MIT"
] | 6 | 2020-09-08T11:21:02.000Z | 2021-07-23T23:29:27.000Z | mix.exs | saleyn/sorted_set | 2f0dc27c39637fa97413e1a8740b1ec12ef1653f | [
"MIT"
] | 50 | 2020-04-06T19:05:37.000Z | 2022-03-16T18:17:50.000Z | defmodule SortedSet.MixProject do
use Mix.Project
def project do
[
app: :sorted_set_nif,
name: "SortedSet",
version: "1.1.0",
elixir: "~> 1.5",
start_permanent: Mix.env() == :prod,
compilers: Mix.compilers(),
deps: deps(),
docs: docs(),
elixirc_paths: elixi... | 24 | 173 | 0.560323 |
1c663f9cac6adea147bad012ece3b269c0980ccb | 1,720 | exs | Elixir | config/dev.exs | francois2metz/asitext | 169b6488c4214012d5fc6ecafd4bcb5233008b20 | [
"MIT"
] | 2 | 2018-01-15T08:37:32.000Z | 2018-01-16T18:02:24.000Z | config/dev.exs | francois2metz/asitext | 169b6488c4214012d5fc6ecafd4bcb5233008b20 | [
"MIT"
] | 5 | 2018-07-24T15:42:04.000Z | 2021-09-10T10:07:38.000Z | config/dev.exs | francois2metz/asitext | 169b6488c4214012d5fc6ecafd4bcb5233008b20 | [
"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 brunch.io to recompile .js and .css sources.
config :asitext, AsitextWeb.Endpoint,
http: [port: 40... | 34.4 | 170 | 0.700581 |
1c669a9dadf0f39334342b3ce94fd1d5ecfd893c | 5,512 | ex | Elixir | lib/event_store/storage/appender.ex | MichalDolata/eventstore | 2a6725fcb4c398d81a74455b6077901189b75386 | [
"MIT"
] | null | null | null | lib/event_store/storage/appender.ex | MichalDolata/eventstore | 2a6725fcb4c398d81a74455b6077901189b75386 | [
"MIT"
] | 1 | 2018-08-23T16:47:17.000Z | 2018-08-23T19:56:42.000Z | lib/event_store/storage/appender.ex | MichalDolata/eventstore | 2a6725fcb4c398d81a74455b6077901189b75386 | [
"MIT"
] | 1 | 2018-07-30T18:25:06.000Z | 2018-07-30T18:25:06.000Z | defmodule EventStore.Storage.Appender do
@moduledoc false
require Logger
alias EventStore.RecordedEvent
alias EventStore.Sql.Statements
@all_stream_id 0
@doc """
Append the given list of events to storage.
Events are inserted atomically in batches of 1,000 within a single
transaction. This is due... | 26.373206 | 103 | 0.604499 |
1c669e68b8103c6964b2c66a37f9fd68bfa779b9 | 2,164 | exs | Elixir | config/prod.exs | jakewilkins/gexbot | b92cd5bae794becaedbee9c8884e4b66942198b7 | [
"WTFPL"
] | null | null | null | config/prod.exs | jakewilkins/gexbot | b92cd5bae794becaedbee9c8884e4b66942198b7 | [
"WTFPL"
] | null | null | null | config/prod.exs | jakewilkins/gexbot | b92cd5bae794becaedbee9c8884e4b66942198b7 | [
"WTFPL"
] | null | null | null | use Mix.Config
# For production, we often load configuration from external
# sources, such as your system environment. For this reason,
# you won't find the :http configuration below, but set inside
# GexbotWeb.Endpoint.init/2 when load_from_system_env is
# true. Any dynamic configuration should be done there.
#
# Don... | 33.292308 | 67 | 0.720425 |
1c66a5ea4d1fc93fab41cf598342fb1b43ab9c45 | 12,455 | exs | Elixir | test/clickhouse_ecto_test.exs | kundi/clickhouse_ecto | 3251221bd63a159c0e8af8336663b0bef855bbca | [
"Apache-2.0"
] | 1 | 2019-06-14T16:00:30.000Z | 2019-06-14T16:00:30.000Z | test/clickhouse_ecto_test.exs | kundi/clickhouse_ecto | 3251221bd63a159c0e8af8336663b0bef855bbca | [
"Apache-2.0"
] | null | null | null | test/clickhouse_ecto_test.exs | kundi/clickhouse_ecto | 3251221bd63a159c0e8af8336663b0bef855bbca | [
"Apache-2.0"
] | 2 | 2019-07-08T12:28:35.000Z | 2019-09-25T14:18:10.000Z | defmodule ClickhouseEctoTest do
use ExUnit.Case
doctest ClickhouseEcto
import Ecto.Query
alias ClickhouseEcto.Connection, as: SQL
defmodule Schema do
use Ecto.Schema
schema "schema" do
field :x, :integer
field :y, :integer
field :z, :integer
end
end
defp normalize(query,... | 40.836066 | 132 | 0.553673 |
1c66b3a986e52a7713b60c35cbe2624724797f42 | 1,078 | exs | Elixir | clients/policy_analyzer/test/test_helper.exs | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/policy_analyzer/test/test_helper.exs | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/policy_analyzer/test/test_helper.exs | dazuma/elixir-google-api | 6a9897168008efe07a6081d2326735fe332e522c | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 29.944444 | 83 | 0.742115 |
1c66b93c4678984125df10665d8ee2acb3338382 | 1,126 | exs | Elixir | clients/ad_sense/mix.exs | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/ad_sense/mix.exs | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/ad_sense/mix.exs | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | defmodule GoogleApi.AdSense.V14.Mixfile do
use Mix.Project
@version "0.2.0"
def project do
[app: :google_api_ad_sense,
version: @version,
elixir: "~> 1.4",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
description: description(),
package: package(),
... | 23.458333 | 108 | 0.604796 |
1c66bf974a807bfb1ac0c4fd48f52b7ca09f35be | 4,529 | ex | Elixir | apps/ewallet/lib/ewallet/web/v1/event_handlers/transaction_consumption_event_handler.ex | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 322 | 2018-02-28T07:38:44.000Z | 2020-05-27T23:09:55.000Z | apps/ewallet/lib/ewallet/web/v1/event_handlers/transaction_consumption_event_handler.ex | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 643 | 2018-02-28T12:05:20.000Z | 2020-05-22T08:34:38.000Z | apps/ewallet/lib/ewallet/web/v1/event_handlers/transaction_consumption_event_handler.ex | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 63 | 2018-02-28T10:57:06.000Z | 2020-05-27T23:10:38.000Z | # Copyright 2018-2019 OmiseGO Pte Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 34.572519 | 95 | 0.700155 |
1c66de03d106f37d5d55dbdd7c39ea8bca148f2a | 9,400 | ex | Elixir | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v14/api/budget.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v14/api/budget.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v14/api/budget.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... | 40.869565 | 187 | 0.62234 |
1c66f8f97c240841251731f8451cdfef7fa39fd8 | 1,744 | ex | Elixir | lib/limit_formatter.ex | LostKobrakai/extrace | cb569b491daa3ac2307b73b1b4b28943b49f65f7 | [
"Apache-2.0",
"BSD-3-Clause"
] | 33 | 2019-03-01T11:46:27.000Z | 2022-01-27T01:44:08.000Z | lib/limit_formatter.ex | LostKobrakai/extrace | cb569b491daa3ac2307b73b1b4b28943b49f65f7 | [
"Apache-2.0",
"BSD-3-Clause"
] | 17 | 2019-04-03T21:15:04.000Z | 2022-03-23T22:06:46.000Z | lib/limit_formatter.ex | LostKobrakai/extrace | cb569b491daa3ac2307b73b1b4b28943b49f65f7 | [
"Apache-2.0",
"BSD-3-Clause"
] | 4 | 2020-07-14T04:34:05.000Z | 2021-11-02T12:48:15.000Z | defmodule Extrace.LimitFormatter do
@moduledoc """
This module handles formatting `Map` & `Struct`.
more details can be found `:recon_map`.
"""
import Inspect.Algebra
alias Code.Identifier
@doc """
Formatting & Trimming output to selected fields.
"""
def limit_inspect(term, opts) when is_map(term) ... | 24.222222 | 98 | 0.584289 |
1c674b022523b6b4e066ec4b6c6afeb252e58a8b | 335 | ex | Elixir | backend/lib/windshield/mailer.ex | EOS-CSX/windshield-docker | 77769dfd16a0b2da09fef2a62b5d393647f0aa6b | [
"MIT"
] | 19 | 2018-06-07T23:28:34.000Z | 2019-04-23T18:57:43.000Z | backend/lib/windshield/mailer.ex | EOS-CSX/windshield-docker | 77769dfd16a0b2da09fef2a62b5d393647f0aa6b | [
"MIT"
] | 27 | 2018-06-10T14:38:55.000Z | 2018-10-10T23:28:43.000Z | backend/lib/windshield/mailer.ex | EOS-CSX/windshield-docker | 77769dfd16a0b2da09fef2a62b5d393647f0aa6b | [
"MIT"
] | 7 | 2018-06-08T01:38:46.000Z | 2022-01-12T18:25:34.000Z | defmodule Windshield.Mailer do
@moduledoc "Mailing Helpers"
use Bamboo.Mailer, otp_app: :windshield
def sender do
:windshield
|> Application.get_env(__MODULE__)
|> Keyword.get(:sender_email)
end
def recipients do
:windshield
|> Application.get_env(__MODULE__)
|> Keyword.get(:recipie... | 18.611111 | 41 | 0.701493 |
1c6798a361d79ad9145b5399c967cc1225d6aead | 90 | ex | Elixir | lib/structs/paged_pins.ex | MitjaBezensek/pinterex | 2c278212f17227d64c7402e65f0dad6563dea49f | [
"MIT"
] | 1 | 2018-01-29T17:52:47.000Z | 2018-01-29T17:52:47.000Z | lib/structs/paged_pins.ex | MitjaBezensek/pinterex | 2c278212f17227d64c7402e65f0dad6563dea49f | [
"MIT"
] | null | null | null | lib/structs/paged_pins.ex | MitjaBezensek/pinterex | 2c278212f17227d64c7402e65f0dad6563dea49f | [
"MIT"
] | null | null | null | defmodule Pinterex.Structs.PagedPins do
defstruct pins: nil, cursor: nil, next: nil
end
| 22.5 | 45 | 0.777778 |
1c67c182c3623ade6c8d06d35d9a8630dfe2fdd0 | 9,306 | ex | Elixir | lib/stripe/api.ex | roguesherlock/stripity_stripe | cc665f1b7751c71b5519acb46d8a6baf68f9e235 | [
"BSD-3-Clause"
] | null | null | null | lib/stripe/api.ex | roguesherlock/stripity_stripe | cc665f1b7751c71b5519acb46d8a6baf68f9e235 | [
"BSD-3-Clause"
] | null | null | null | lib/stripe/api.ex | roguesherlock/stripity_stripe | cc665f1b7751c71b5519acb46d8a6baf68f9e235 | [
"BSD-3-Clause"
] | null | null | null | defmodule Stripe.API do
@moduledoc """
Low-level utilities for interacting with the Stripe API.
Usually the utilities in `Stripe.Request` are a better way to write custom interactions with
the API.
"""
alias Stripe.{Config, Error}
@callback oauth_request(method, String.t(), map) :: {:ok, map}
@type m... | 28.811146 | 95 | 0.663335 |
1c6804a1136216f0b390d96b3fe57719674548b1 | 1,265 | ex | Elixir | lib/phoenix_sample_web/router.ex | TehSnappy/phoenix_sample | e43b32c754bb64f94e3f8a3348395241c3bf7317 | [
"Apache-2.0"
] | 1 | 2021-03-07T06:56:35.000Z | 2021-03-07T06:56:35.000Z | lib/phoenix_sample_web/router.ex | TehSnappy/phoenix_sample | e43b32c754bb64f94e3f8a3348395241c3bf7317 | [
"Apache-2.0"
] | null | null | null | lib/phoenix_sample_web/router.ex | TehSnappy/phoenix_sample | e43b32c754bb64f94e3f8a3348395241c3bf7317 | [
"Apache-2.0"
] | 2 | 2020-11-29T05:56:44.000Z | 2021-07-23T10:22:52.000Z | defmodule PhoenixSampleWeb.Router do
use PhoenixSampleWeb, :router
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_live_flash
plug :put_root_layout, {PhoenixSampleWeb.LayoutView, :root}
plug :protect_from_forgery
plug :put_secure_browser_headers
end
pipelin... | 27.5 | 87 | 0.711462 |
1c680f9f253597923aba25da78865f5e4d3dd0f0 | 1,515 | ex | Elixir | lib/ex_permissions.ex | mtwilliams/ex_permissions | 1842f27f41b5d404d2e2409ad3c421de08970843 | [
"Unlicense"
] | null | null | null | lib/ex_permissions.ex | mtwilliams/ex_permissions | 1842f27f41b5d404d2e2409ad3c421de08970843 | [
"Unlicense"
] | 3 | 2015-05-03T05:15:56.000Z | 2015-05-03T05:20:02.000Z | lib/ex_permissions.ex | mtwilliams/ex_permissions | 1842f27f41b5d404d2e2409ad3c421de08970843 | [
"Unlicense"
] | null | null | null | # ===----------------------------------------------------------------------=== #
#
# ExPermissions
#
# This is free and unencumbered software released into the public domain.
#
# Anyone is free to copy, modify, publish, use, compile, sell, or
# distribute this software, either in source code form or as a compiled
#... | 42.083333 | 80 | 0.673927 |
1c681b68d7cfedfc098370b74de57cd05883e030 | 851 | ex | Elixir | test/support/mock_socket.ex | adamvaughan/memcachir | dc7bede81384d936c1209c3b8e7729b4f78c1e22 | [
"MIT"
] | 6 | 2017-08-08T10:53:50.000Z | 2021-06-03T13:31:16.000Z | test/support/mock_socket.ex | adamvaughan/memcachir | dc7bede81384d936c1209c3b8e7729b4f78c1e22 | [
"MIT"
] | 13 | 2017-08-03T19:44:49.000Z | 2021-08-23T15:41:35.000Z | test/support/mock_socket.ex | adamvaughan/memcachir | dc7bede81384d936c1209c3b8e7729b4f78c1e22 | [
"MIT"
] | 10 | 2017-08-03T19:26:14.000Z | 2021-09-30T15:58:27.000Z | defmodule MockSocketModule do
def start_link() do
Agent.start_link(fn -> [] end, name: __MODULE__)
end
def connect(_host, _port, _timeout) do
case get() do
[] -> {:error, :econnrefused}
_ -> {:ok, :socket}
end
end
def close(_), do: :ok
def send_and_recv(_socket, command, _timeout)... | 21.820513 | 84 | 0.596945 |
1c6838573b35ee11adf3cc5bd44cd8e4e39ffd98 | 13,220 | ex | Elixir | lib/websockex/frame.ex | valiot/websockex | 569392dc1262395463ed97135e34ea519955ba93 | [
"MIT"
] | null | null | null | lib/websockex/frame.ex | valiot/websockex | 569392dc1262395463ed97135e34ea519955ba93 | [
"MIT"
] | null | null | null | lib/websockex/frame.ex | valiot/websockex | 569392dc1262395463ed97135e34ea519955ba93 | [
"MIT"
] | null | null | null | defmodule WebSockex.Frame do
@moduledoc """
Functions for parsing and encoding frames.
"""
@otp_vesion System.otp_release() |> Integer.parse() |> elem(0)
@type opcode :: :text | :binary | :close | :ping | :pong
@type close_code :: 1000..4999
@typedoc "The incomplete or unhandled remainder of a binary"
... | 32.243902 | 104 | 0.6059 |
1c68407fe5ddc523e878ca74d0b3d9444fbac925 | 635 | exs | Elixir | elixir/app/test/lasagna_test.exs | dangvanthanh/1984 | 984e632c49d2d90784576cfd31aa77375846827d | [
"MIT"
] | null | null | null | elixir/app/test/lasagna_test.exs | dangvanthanh/1984 | 984e632c49d2d90784576cfd31aa77375846827d | [
"MIT"
] | null | null | null | elixir/app/test/lasagna_test.exs | dangvanthanh/1984 | 984e632c49d2d90784576cfd31aa77375846827d | [
"MIT"
] | null | null | null | defmodule LasagnaTest do
use ExUnit.Case
doctest Lasagna
test "Define the expected oven time in minutes" do
assert Lasagna.expected_minutes_in_oven() == 40
end
test "Calculate the remaining oven time in minutes" do
assert Lasagna.remaining_minutes_in_oven(30) == 10
end
test "Calculate the prep... | 25.4 | 59 | 0.733858 |
1c6856be104fbc49bd846fb14c1c57616508490f | 1,358 | ex | Elixir | hello/lib/hello_web/endpoint.ex | ancaciascaiu/PhoenixApp | a7d18f76d69f445d11673144474e3e11855d298d | [
"MIT"
] | null | null | null | hello/lib/hello_web/endpoint.ex | ancaciascaiu/PhoenixApp | a7d18f76d69f445d11673144474e3e11855d298d | [
"MIT"
] | null | null | null | hello/lib/hello_web/endpoint.ex | ancaciascaiu/PhoenixApp | a7d18f76d69f445d11673144474e3e11855d298d | [
"MIT"
] | null | null | null | defmodule HelloWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :hello
socket("/live", Phoenix.LiveView.Socket)
socket("/socket", HelloWeb.UserSocket,
websocket: true,
longpoll: false
)
# Serve at "/" the static files from "priv/static" directory.
#
# You should set gzip to true if you are runnin... | 25.622642 | 70 | 0.69514 |
1c6869bd1b028f514285232422fdfb08d01e8ab6 | 2,639 | ex | Elixir | lib/sanbase/alerts/history/price_volume_diff_history.ex | santiment/sanbase2 | 9ef6e2dd1e377744a6d2bba570ea6bd477a1db31 | [
"MIT"
] | 81 | 2017-11-20T01:20:22.000Z | 2022-03-05T12:04:25.000Z | lib/sanbase/alerts/history/price_volume_diff_history.ex | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | 359 | 2017-10-15T14:40:53.000Z | 2022-01-25T13:34:20.000Z | lib/sanbase/alerts/history/price_volume_diff_history.ex | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | 16 | 2017-11-19T13:57:40.000Z | 2022-02-07T08:13:02.000Z | defmodule Sanbase.Alert.History.PriceVolumeDifferenceHistory do
@moduledoc """
Implementations of historical trigger points for price_volume_difference.
The history goes 180 days back.
"""
alias Sanbase.Alert.Trigger.PriceVolumeDifferenceTriggerSettings
require Logger
@type historical_trigger_points_ty... | 31.795181 | 93 | 0.632815 |
1c686e71b3072b6aa1aa82b1ca2c5ac0d3691a58 | 274 | exs | Elixir | ex_cubic_ingestion/config/test.exs | mbta/data_platform | 3fa66cb74134b2baa5234e908e147bf393c13926 | [
"MIT"
] | 1 | 2022-01-30T21:02:48.000Z | 2022-01-30T21:02:48.000Z | ex_cubic_ingestion/config/test.exs | mbta/data_platform | 3fa66cb74134b2baa5234e908e147bf393c13926 | [
"MIT"
] | 21 | 2022-01-25T16:35:50.000Z | 2022-03-31T19:42:52.000Z | ex_cubic_ingestion/config/test.exs | mbta/data_platform | 3fa66cb74134b2baa5234e908e147bf393c13926 | [
"MIT"
] | 1 | 2022-02-02T14:34:17.000Z | 2022-02-02T14:34:17.000Z | import Config
# only log warnings+ in test
config :logger, level: :warning
config :ex_cubic_ingestion,
start_app?: false
config :ex_cubic_ingestion, Oban, queues: false, plugins: false
config :ex_cubic_ingestion, ExCubicIngestion.Repo, pool: Ecto.Adapters.SQL.Sandbox
| 22.833333 | 82 | 0.788321 |
1c6870e6cc01011e53a49ead12a38f8aac7693dc | 4,700 | ex | Elixir | lib/mix/tasks/nerves_hub.org.ex | danielspofford/nerves_hub_cli | 3d12abe873e27448ba5c862a08f03d719cc40dc2 | [
"Apache-2.0"
] | null | null | null | lib/mix/tasks/nerves_hub.org.ex | danielspofford/nerves_hub_cli | 3d12abe873e27448ba5c862a08f03d719cc40dc2 | [
"Apache-2.0"
] | null | null | null | lib/mix/tasks/nerves_hub.org.ex | danielspofford/nerves_hub_cli | 3d12abe873e27448ba5c862a08f03d719cc40dc2 | [
"Apache-2.0"
] | null | null | null | defmodule Mix.Tasks.NervesHub.Org do
use Mix.Task
import Mix.NervesHubCLI.Utils
alias Mix.NervesHubCLI.Shell
@shortdoc "Manages an organization"
@moduledoc """
Manages an organization
# Managing user roles
The following functions allow the management of user roles within your organization.
Roles... | 24.479167 | 86 | 0.614894 |
1c6872dc388f622bd41206e0a871fb9ba48a14b1 | 2,476 | ex | Elixir | clients/firestore/lib/google_api/firestore/v1beta1/model/batch_get_documents_response.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/firestore/lib/google_api/firestore/v1beta1/model/batch_get_documents_response.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/firestore/lib/google_api/firestore/v1beta1/model/batch_get_documents_response.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... | 44.214286 | 266 | 0.735864 |
1c687543f7627aed7dc8c72bdfc1f0e21699172d | 1,783 | ex | Elixir | apps/engine/lib/engine/db/transaction/payment_v1/validators/merge.ex | omgnetwork/omg-childchain-v2 | 31cc9cf9e42718fc3b9bd6668f24a627cac80b4f | [
"Apache-2.0"
] | 4 | 2020-11-30T17:38:57.000Z | 2021-01-23T21:29:41.000Z | apps/engine/lib/engine/db/transaction/payment_v1/validators/merge.ex | omgnetwork/omg-childchain-v2 | 31cc9cf9e42718fc3b9bd6668f24a627cac80b4f | [
"Apache-2.0"
] | 24 | 2020-11-30T17:32:48.000Z | 2021-02-22T06:25:22.000Z | apps/engine/lib/engine/db/transaction/payment_v1/validators/merge.ex | omgnetwork/omg-childchain-v2 | 31cc9cf9e42718fc3b9bd6668f24a627cac80b4f | [
"Apache-2.0"
] | null | null | null | defmodule Engine.DB.Transaction.PaymentV1.Validator.Merge do
@moduledoc """
Decides whether transactions qualify as "merge" transactions that use a single token,
single recipient address and have fewer outputs than inputs. This decision is necessary
to know by the child chain to not require the transaction fees... | 35.66 | 115 | 0.684801 |
1c6884ff35be83584e9f4c3afd2ff2fd5406350c | 334 | exs | Elixir | lib/mix/templates/001_create_chat_rooms.exs | karabiner-inc/materia_chat | 6670c97e2bd6e677b4ac1234f2c9f10a7f0020b2 | [
"Apache-2.0"
] | null | null | null | lib/mix/templates/001_create_chat_rooms.exs | karabiner-inc/materia_chat | 6670c97e2bd6e677b4ac1234f2c9f10a7f0020b2 | [
"Apache-2.0"
] | 4 | 2019-04-01T01:35:25.000Z | 2019-06-06T05:36:31.000Z | priv/repo/migrations/20190319040732_materia_chat_1_create_chat_rooms.exs | karabiner-inc/materia_chat | 6670c97e2bd6e677b4ac1234f2c9f10a7f0020b2 | [
"Apache-2.0"
] | null | null | null | defmodule MateriaChat.Repo.Migrations.CreateChatRooms do
use Ecto.Migration
def change do
create table(:chat_rooms) do
add(:title, :string)
add(:access_poricy, :string)
add(:status, :integer)
add(:lock_version, :bigint)
timestamps()
end
create(index(:chat_rooms, [:status... | 19.647059 | 56 | 0.658683 |
1c68ae76ca133429c72f1ae7d5c93c40c0170c1a | 1,178 | ex | Elixir | phoenix_app/benchmarker/web/channels/user_socket.ex | ansrivas/phoenix-and-gin | c3ee9f2bc5db3bb41179bc7b8747455ae148b55b | [
"MIT"
] | null | null | null | phoenix_app/benchmarker/web/channels/user_socket.ex | ansrivas/phoenix-and-gin | c3ee9f2bc5db3bb41179bc7b8747455ae148b55b | [
"MIT"
] | null | null | null | phoenix_app/benchmarker/web/channels/user_socket.ex | ansrivas/phoenix-and-gin | c3ee9f2bc5db3bb41179bc7b8747455ae148b55b | [
"MIT"
] | null | null | null | defmodule Benchmarker.UserSocket do
use Phoenix.Socket
## Channels
# channel "room:*", Benchmarker.RoomChannel
## Transports
transport :websocket, Phoenix.Transports.WebSocket
# transport :longpoll, Phoenix.Transports.LongPoll
# Socket params are passed from the client and can
# be used to verify and... | 31 | 84 | 0.704584 |
1c68af4ffa9c58cf62656a18aae012a33fba333c | 516 | ex | Elixir | apps/elixir_ls_debugger/test/fixtures/mix_project/lib/mix_project.ex | maciej-szlosarczyk/elixir-ls | f9e3a969a32212482a7625deec9e0fd0f533f991 | [
"Apache-2.0"
] | 865 | 2018-10-31T20:29:13.000Z | 2022-03-29T11:13:39.000Z | apps/elixir_ls_debugger/test/fixtures/mix_project/lib/mix_project.ex | maciej-szlosarczyk/elixir-ls | f9e3a969a32212482a7625deec9e0fd0f533f991 | [
"Apache-2.0"
] | 441 | 2019-01-05T02:33:52.000Z | 2022-03-30T20:56:50.000Z | apps/elixir_ls_debugger/test/fixtures/mix_project/lib/mix_project.ex | maciej-szlosarczyk/elixir-ls | f9e3a969a32212482a7625deec9e0fd0f533f991 | [
"Apache-2.0"
] | 126 | 2018-11-12T19:16:53.000Z | 2022-03-26T13:27:50.000Z | defmodule MixProject do
def quadruple(x) do
double(double(x))
end
def double(y) do
2 * y
end
def exit do
Task.start(fn ->
Task.start_link(fn ->
Process.sleep(1000)
raise "Fixture MixProject expected error"
end)
Process.sleep(:infinity)
end)
Process.sle... | 16.125 | 54 | 0.620155 |
1c68cbc61bb5166a0dab68b078d00b7b1a3f6301 | 3,012 | ex | Elixir | clients/cloud_build/lib/google_api/cloud_build/v1/model/git_file_source.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/cloud_build/lib/google_api/cloud_build/v1/model/git_file_source.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/cloud_build/lib/google_api/cloud_build/v1/model/git_file_source.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... | 48.580645 | 410 | 0.715803 |
1c6900769106c0e48159a7a62c71b5c75598b427 | 796 | exs | Elixir | priv/repo/migrations/20191214212545_add_predecessor_host_to_performances.exs | richeterre/jumubase-phoenix | 7584f890af117d496971b5284bf9de798e22266f | [
"MIT"
] | 2 | 2019-01-20T07:03:30.000Z | 2019-04-11T10:20:14.000Z | priv/repo/migrations/20191214212545_add_predecessor_host_to_performances.exs | richeterre/jumubase-phoenix | 7584f890af117d496971b5284bf9de798e22266f | [
"MIT"
] | 6 | 2018-09-20T05:52:14.000Z | 2019-04-23T19:27:39.000Z | priv/repo/migrations/20191214212545_add_predecessor_host_to_performances.exs | richeterre/jumubase-phoenix | 7584f890af117d496971b5284bf9de798e22266f | [
"MIT"
] | null | null | null | defmodule Jumubase.Repo.Migrations.AddPredecessorHostToPerformances do
use Ecto.Migration
import Ecto.Query
alias Jumubase.Repo
def up do
alter table(:performances) do
add :predecessor_host_id, references(:hosts, on_delete: :nilify_all)
end
flush()
from(c in "contests",
join: h in... | 22.742857 | 86 | 0.650754 |
1c692ab9c7b8bbd857e4e106b76a713f1f345140 | 6,461 | ex | Elixir | apps/merkle_patricia_tree/lib/merkle_patricia_tree/trie/builder.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/merkle_patricia_tree/lib/merkle_patricia_tree/trie/builder.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/merkle_patricia_tree/lib/merkle_patricia_tree/trie/builder.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 MerklePatriciaTree.Trie.Builder do
@moduledoc """
Builder is responsible for adding keys to an
existing merkle trie. To add a key, we need to
make a delta to our trie that ends up as the canonical
form of the given tree as defined in http://gavwood.com/Paper.pdf.
Note: this algorithm is non-obvio... | 32.964286 | 93 | 0.62854 |
1c694212822aa69efbcecc2ce677b3f821989fa8 | 376 | ex | Elixir | web/views/error_view.ex | marcsugiyama/pinafore | a9ceae09118d07c56757340c4be6690aa6235ace | [
"Apache-2.0"
] | 2 | 2016-02-15T13:19:28.000Z | 2016-02-15T18:10:12.000Z | web/views/error_view.ex | marcsugiyama/pinafore | a9ceae09118d07c56757340c4be6690aa6235ace | [
"Apache-2.0"
] | 2 | 2016-02-14T22:01:49.000Z | 2016-02-14T22:02:46.000Z | web/views/error_view.ex | marcsugiyama/pinafore | a9ceae09118d07c56757340c4be6690aa6235ace | [
"Apache-2.0"
] | null | null | null | defmodule Pinafore.ErrorView do
use Pinafore.Web, :view
def render("404.html", _assigns) do
"Page not found"
end
def render("500.html", _assigns) do
"Server internal error"
end
# In case no render clause matches or no
# template is found, let's render it as 500
def template_not_found(_templat... | 20.888889 | 47 | 0.699468 |
1c694a1a74bba6a03940bfa6eb225931b005cb36 | 1,263 | ex | Elixir | examples/bloggy/lib/bloggy_web/views/error_helpers.ex | wojtekmach/resourceful | 8425140aa1e89dfababcb2faa7bc4e2f59722661 | [
"Apache-2.0"
] | 1 | 2020-01-06T00:38:43.000Z | 2020-01-06T00:38:43.000Z | examples/bloggy/lib/bloggy_web/views/error_helpers.ex | wojtekmach/resourceful | 8425140aa1e89dfababcb2faa7bc4e2f59722661 | [
"Apache-2.0"
] | null | null | null | examples/bloggy/lib/bloggy_web/views/error_helpers.ex | wojtekmach/resourceful | 8425140aa1e89dfababcb2faa7bc4e2f59722661 | [
"Apache-2.0"
] | null | null | null | defmodule BloggyWeb.ErrorHelpers do
@moduledoc """
Conveniences for translating and building error messages.
"""
use Phoenix.HTML
@doc """
Generates tag for inlined form input errors.
"""
def error_tag(form, field) do
Enum.map(Keyword.get_values(form.errors, field), fn (error) ->
content_tag... | 30.804878 | 75 | 0.669834 |
1c694ec101fe05c3a318bd301f44d9fd139d6cd8 | 6,759 | ex | Elixir | lib/bamboo/adapters/sendin_blue_adapter_v3.ex | maysam/bamboo_sendinblue | 882511499ce8088b46713dbae06eee1bd84c860a | [
"MIT"
] | null | null | null | lib/bamboo/adapters/sendin_blue_adapter_v3.ex | maysam/bamboo_sendinblue | 882511499ce8088b46713dbae06eee1bd84c860a | [
"MIT"
] | null | null | null | lib/bamboo/adapters/sendin_blue_adapter_v3.ex | maysam/bamboo_sendinblue | 882511499ce8088b46713dbae06eee1bd84c860a | [
"MIT"
] | null | null | null | defmodule Bamboo.SendinBlueAdapterV3 do
@moduledoc """
Sends email using SendinBlue's JSON API v3.0.
This module requires a v3 API key to work.
Based on https://github.com/biospank/bamboo_sendinblue (the SendinBlue V2 API adapter)
## Reply-To field
To set the reply-to field, use `put_header(email, "reply... | 27.144578 | 151 | 0.654091 |
1c695b05e46f432bf931a9890a0a4d91073481e2 | 312 | ex | Elixir | lib/elixir_google_scraper_web/controllers/api/error_handler.ex | junan/elixir_google_scraper | d032f3a9d5a30e354f1e6d607434670334936630 | [
"MIT"
] | null | null | null | lib/elixir_google_scraper_web/controllers/api/error_handler.ex | junan/elixir_google_scraper | d032f3a9d5a30e354f1e6d607434670334936630 | [
"MIT"
] | 25 | 2021-05-21T02:23:37.000Z | 2021-07-09T09:22:32.000Z | lib/elixir_google_scraper_web/controllers/api/error_handler.ex | junan/elixir_google_scraper | d032f3a9d5a30e354f1e6d607434670334936630 | [
"MIT"
] | null | null | null | defmodule ElixirGoogleScraperWeb.Api.ErrorHandler do
use ElixirGoogleScraperWeb, :controller
alias ElixirGoogleScraperWeb.V1.ErrorView
def unauthenticated(conn, _) do
conn
|> put_status(:unauthorized)
|> render(ErrorView, "error.json", errors: [%{detail: "Authentication failed"}])
end
end
| 26 | 84 | 0.75 |
1c6967ee7639e0fbeaa95790329b1c13821deaa5 | 2,196 | exs | Elixir | config/dev.exs | tyjet/taskmaster_api | 4ba670731717299b07abb5d56f3e068015826963 | [
"MIT"
] | null | null | null | config/dev.exs | tyjet/taskmaster_api | 4ba670731717299b07abb5d56f3e068015826963 | [
"MIT"
] | 1 | 2021-03-10T19:38:43.000Z | 2021-03-10T19:38:43.000Z | config/dev.exs | tyjet/taskmaster_api | 4ba670731717299b07abb5d56f3e068015826963 | [
"MIT"
] | null | null | null | use Mix.Config
# Configure your database
config :taskmaster_api, TaskmasterApi.Repo,
username: "postgres",
password: "postgres",
database: "taskmaster_api_dev",
hostname: "localhost",
show_sensitive_data_on_connection_error: true,
pool_size: 10
# For development, we disable any cache and enable
# debuggin... | 28.519481 | 68 | 0.698998 |
1c69950538406dd1f26f680a0f95d09085d1ab4f | 110 | exs | Elixir | test/fusion/utilities/socat_test.exs | elpddev/fusion | 7106ba4922786e1d79310074e46e6996d0c2f4aa | [
"MIT"
] | 2 | 2020-02-02T20:22:28.000Z | 2020-12-10T18:25:03.000Z | test/fusion/utilities/socat_test.exs | elpddev/fusion | 7106ba4922786e1d79310074e46e6996d0c2f4aa | [
"MIT"
] | null | null | null | test/fusion/utilities/socat_test.exs | elpddev/fusion | 7106ba4922786e1d79310074e46e6996d0c2f4aa | [
"MIT"
] | null | null | null | defmodule Fusion.Utilities.SocatTest do
use ExUnit.Case
doctest Fusion.Utilities.Socat, import: true
end
| 18.333333 | 46 | 0.8 |
1c6a06143b3ce0d8bf4e9f78708d5c85f66fc2c0 | 22,427 | ex | Elixir | lib/ecto/migration.ex | cnsa/ecto | a6e0eaaa5da1032fad571308c338eca1b5f77738 | [
"Apache-2.0"
] | null | null | null | lib/ecto/migration.ex | cnsa/ecto | a6e0eaaa5da1032fad571308c338eca1b5f77738 | [
"Apache-2.0"
] | null | null | null | lib/ecto/migration.ex | cnsa/ecto | a6e0eaaa5da1032fad571308c338eca1b5f77738 | [
"Apache-2.0"
] | null | null | null | defmodule Ecto.Migration do
@moduledoc """
Migrations are used to modify your database schema over time.
This module provides many helpers for migrating the database,
allowing developers to use Elixir to alter their storage in
a way that is database independent.
Here is an example:
defmodule MyRepo... | 28.938065 | 144 | 0.66139 |
1c6a0b4aac6da36bd8caf35bf9f04e39188d5c7a | 193 | ex | Elixir | elixir/codes-from-books/little-elixir/cap11/concuerror_playground/test/concurrency/stacky_test.ex | trxeste/wrk | 3e05e50ff621866f0361cc8494ce8f6bb4d97fae | [
"BSD-3-Clause"
] | 1 | 2017-10-16T03:00:50.000Z | 2017-10-16T03:00:50.000Z | elixir/codes-from-books/little-elixir/cap11/concuerror_playground/test/concurrency/stacky_test.ex | trxeste/wrk | 3e05e50ff621866f0361cc8494ce8f6bb4d97fae | [
"BSD-3-Clause"
] | null | null | null | elixir/codes-from-books/little-elixir/cap11/concuerror_playground/test/concurrency/stacky_test.ex | trxeste/wrk | 3e05e50ff621866f0361cc8494ce8f6bb4d97fae | [
"BSD-3-Clause"
] | null | null | null | Code.require_file "../test_helper.exs", __DIR__
defmodule Stacky.ConcurrencyTest do
def test do
{:ok, _pid} = Stacky.start_link
Stacky.tag(1)
Stacky.stop
:ok
end
end
| 12.866667 | 47 | 0.663212 |
1c6a9824123c7692480cfb0f1228bbab49a21e4a | 10,962 | ex | Elixir | lib/ecto/query/api.ex | jeregrine/ecto | 98b2dd4bf7b39738ab9a5ae3fa7e48e43a4af39b | [
"Apache-2.0"
] | null | null | null | lib/ecto/query/api.ex | jeregrine/ecto | 98b2dd4bf7b39738ab9a5ae3fa7e48e43a4af39b | [
"Apache-2.0"
] | null | null | null | lib/ecto/query/api.ex | jeregrine/ecto | 98b2dd4bf7b39738ab9a5ae3fa7e48e43a4af39b | [
"Apache-2.0"
] | null | null | null | defmodule Ecto.Query.API do
@moduledoc """
This module lists all functions allowed in the query API.
* Comparison operators: `==`, `!=`, `<=`, `>=`, `<`, `>`
* Boolean operators: `and`, `or`, `not`
* Inclusion operator: `in/2`
* Search functions: `like/2` and `ilike/2`
* Null check functions: `... | 29.54717 | 92 | 0.657544 |
1c6abb77dfa105700a59a240a544c0da1562ef57 | 3,295 | ex | Elixir | apps/bytepack/lib/bytepack/packages.ex | dashbitco/bytepack_archive | 79f8e62149d020f2afcc501592ed399f7ce7a60b | [
"Unlicense"
] | 313 | 2020-12-03T17:26:24.000Z | 2022-03-18T09:05:14.000Z | apps/bytepack/lib/bytepack/packages.ex | dashbitco/bytepack_archive | 79f8e62149d020f2afcc501592ed399f7ce7a60b | [
"Unlicense"
] | null | null | null | apps/bytepack/lib/bytepack/packages.ex | dashbitco/bytepack_archive | 79f8e62149d020f2afcc501592ed399f7ce7a60b | [
"Unlicense"
] | 57 | 2020-12-03T17:41:53.000Z | 2022-03-17T17:28:16.000Z | defmodule Bytepack.Packages do
import Ecto.Query
alias Bytepack.Repo
alias Bytepack.AuditLog
alias Bytepack.Orgs.{Org, Membership}
alias Bytepack.Packages.{Package, Release, PackageDownload}
def list_available_packages(%Org{} = org, clauses \\ []) do
from(Package, where: [org_id: ^org.id], where: ^clau... | 27.458333 | 84 | 0.621851 |
1c6ad8063b74a39f66502f4247d87c3e385876b3 | 2,077 | ex | Elixir | apps/nerves_hub_web_core/lib/nerves_hub_web_core/release/tasks.ex | sportalliance/nerves_hub_web | 97635506876a25a8eed06a0bc0412378684bf477 | [
"Apache-2.0"
] | null | null | null | apps/nerves_hub_web_core/lib/nerves_hub_web_core/release/tasks.ex | sportalliance/nerves_hub_web | 97635506876a25a8eed06a0bc0412378684bf477 | [
"Apache-2.0"
] | null | null | null | apps/nerves_hub_web_core/lib/nerves_hub_web_core/release/tasks.ex | sportalliance/nerves_hub_web | 97635506876a25a8eed06a0bc0412378684bf477 | [
"Apache-2.0"
] | null | null | null | defmodule NervesHubWebCore.Release.Tasks do
alias Ecto.Migrator
@otp_app :nerves_hub_web_core
@start_apps [:logger, :ssl, :postgrex, :ecto_sql]
def migrate_and_seed do
init(@otp_app, @start_apps)
run_migrations_for(@otp_app)
run_seed_script("#{seed_path(@otp_app)}/seeds.exs")
stop()
end
... | 22.333333 | 73 | 0.670679 |
1c6b1f7ea37b8a4409b874570b53d5f05196175f | 1,246 | ex | Elixir | apps/ello_notifications/lib/ello_notifications/stream.ex | ello/apex | 4acb096b3ce172ff4ef9a51e5d068d533007b920 | [
"MIT"
] | 16 | 2017-06-21T21:31:20.000Z | 2021-05-09T03:23:26.000Z | apps/ello_notifications/lib/ello_notifications/stream.ex | ello/apex | 4acb096b3ce172ff4ef9a51e5d068d533007b920 | [
"MIT"
] | 25 | 2017-06-07T12:18:28.000Z | 2018-06-08T13:27:43.000Z | apps/ello_notifications/lib/ello_notifications/stream.ex | ello/apex | 4acb096b3ce172ff4ef9a51e5d068d533007b920 | [
"MIT"
] | 3 | 2018-06-14T15:34:07.000Z | 2022-02-28T21:06:13.000Z | defmodule Ello.Notifications.Stream do
alias __MODULE__.{
Item,
Client,
Loader,
}
@moduledoc """
Public API for interacting with the Ello Notifications Streams (in app notifications) via elixir.
"""
defstruct [
current_user: nil,
allow_nsfw: false,
allow_nudity: false,
per_page:... | 19.777778 | 99 | 0.638042 |
1c6b5567fd2b6c0e5197e2fa63fa4972cc41665c | 2,646 | ex | Elixir | clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/o_auth_requirements.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/o_auth_requirements.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/o_auth_requirements.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... | 56.297872 | 967 | 0.776266 |
1c6b5d1024cb50e8dc502d7d60c86f8bde3f83c9 | 2,573 | ex | Elixir | lib/core/distribution.ex | jamcito/telemetry_metrics_prometheus_core | 8892adde76bf424573baee5ef5873910f4765aaa | [
"Apache-2.0"
] | 29 | 2019-09-20T05:33:26.000Z | 2021-11-12T12:09:12.000Z | lib/core/distribution.ex | jamcito/telemetry_metrics_prometheus_core | 8892adde76bf424573baee5ef5873910f4765aaa | [
"Apache-2.0"
] | 33 | 2019-09-15T04:27:04.000Z | 2022-01-30T15:58:59.000Z | lib/core/distribution.ex | jamcito/telemetry_metrics_prometheus_core | 8892adde76bf424573baee5ef5873910f4765aaa | [
"Apache-2.0"
] | 16 | 2019-10-22T12:53:10.000Z | 2022-02-24T11:31:24.000Z | defmodule TelemetryMetricsPrometheus.Core.Distribution do
@moduledoc false
alias Telemetry.Metrics
alias TelemetryMetricsPrometheus.Core.EventHandler
@typedoc """
Distribution metric bucket boundaries.
Bucket boundaries are represented by a non-empty list of increasing numbers.
## Examples
[0, 1... | 30.630952 | 91 | 0.579868 |
1c6b8bb810d737bbb142cb60c601d3d4262bb0f1 | 1,031 | ex | Elixir | lib/monero/request/http_client.ex | cwc/monero_ex | 6c63513ef2770c74c0bd840877732c54ad8678d8 | [
"Unlicense",
"MIT"
] | null | null | null | lib/monero/request/http_client.ex | cwc/monero_ex | 6c63513ef2770c74c0bd840877732c54ad8678d8 | [
"Unlicense",
"MIT"
] | null | null | null | lib/monero/request/http_client.ex | cwc/monero_ex | 6c63513ef2770c74c0bd840877732c54ad8678d8 | [
"Unlicense",
"MIT"
] | null | null | null | defmodule Monero.Request.HttpClient do
@moduledoc """
Specifies expected behaviour of an http client
Monero allows you to use your http client of choice, provided that
it can be coerced into complying with this module's specification.
The default is :hackney.
## Example
Here for example is the code req... | 29.457143 | 135 | 0.684772 |
1c6bf1d8ba6e7d13d72440e962c0b355d651061c | 1,855 | exs | Elixir | config/prod.exs | MNDL-27/midarr-server | b749707a1777205cea2d93349cde2ef922e527ec | [
"MIT"
] | 1 | 2022-02-14T16:40:55.000Z | 2022-02-14T16:40:55.000Z | config/prod.exs | MNDL-27/midarr-server | b749707a1777205cea2d93349cde2ef922e527ec | [
"MIT"
] | null | null | null | config/prod.exs | MNDL-27/midarr-server | b749707a1777205cea2d93349cde2ef922e527ec | [
"MIT"
] | null | null | null | import 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,
# w... | 35.673077 | 66 | 0.708356 |
1c6bf32120bf3a6b2b935fe74e04e3e1a20e23d6 | 9,158 | exs | Elixir | test/strategy/auth0_test.exs | maciej-szlosarczyk/ueberauth_auth0 | 54d03b9eca0502a5e55553d4db711371df3c59ce | [
"MIT"
] | null | null | null | test/strategy/auth0_test.exs | maciej-szlosarczyk/ueberauth_auth0 | 54d03b9eca0502a5e55553d4db711371df3c59ce | [
"MIT"
] | null | null | null | test/strategy/auth0_test.exs | maciej-szlosarczyk/ueberauth_auth0 | 54d03b9eca0502a5e55553d4db711371df3c59ce | [
"MIT"
] | null | null | null | defmodule Ueberauth.Strategy.Auth0Test do
# Test resources:
use ExUnit.Case, async: true
use ExVCR.Mock, adapter: ExVCR.Adapter.Hackney
use Plug.Test
# Custom data:
import Ueberauth.Strategy.Auth0, only: [info: 1, extra: 1]
alias Ueberauth.Auth.{Extra, Info}
# Initializing utils:
doctest Ueberauth.... | 30.939189 | 110 | 0.58124 |
1c6bf769ee16fe4eb21ae82b81614b8f3beb9dc9 | 989 | ex | Elixir | lib/utility/poisoned_decimal.ex | tyrchen/ex_bitcoin | f399a3d2bd27fac0a4ba5e91379d5492ab94292a | [
"MIT"
] | 1 | 2018-03-22T15:24:37.000Z | 2018-03-22T15:24:37.000Z | lib/utility/poisoned_decimal.ex | tyrchen/ex_bitcoin | f399a3d2bd27fac0a4ba5e91379d5492ab94292a | [
"MIT"
] | 26 | 2018-07-22T01:10:59.000Z | 2019-10-20T08:43:10.000Z | lib/utility/poisoned_decimal.ex | tyrchen/ex_bitcoin | f399a3d2bd27fac0a4ba5e91379d5492ab94292a | [
"MIT"
] | null | null | null | defmodule PoisonedDecimal do
@moduledoc """
Copied from https://github.com/solatis/gold.
Hacky wrapper for Decimal library to use different encoding than the one prepared for Decimal in Ecto (or different conflicting libraries)
"""
defstruct [:decimal]
def new(%Decimal{} = decimal) do
%PoisonedDecimal... | 21.5 | 140 | 0.67543 |
1c6c09e2388e083d33c5fe3fa91939494c3e456a | 408 | ex | Elixir | lib/pigpiox/supervisor.ex | coop/pigpiox | 618f8669673b1a36649b20d2874cce2873af67a2 | [
"Apache-2.0"
] | null | null | null | lib/pigpiox/supervisor.ex | coop/pigpiox | 618f8669673b1a36649b20d2874cce2873af67a2 | [
"Apache-2.0"
] | null | null | null | lib/pigpiox/supervisor.ex | coop/pigpiox | 618f8669673b1a36649b20d2874cce2873af67a2 | [
"Apache-2.0"
] | null | null | null | defmodule Pigpiox.Supervisor do
@moduledoc false
use Supervisor
def start_link(arg) do
Supervisor.start_link(__MODULE__, arg, name: __MODULE__)
end
def init(_arg) do
children = [
{Pigpiox.Port, [name: Pigpiox.Port]},
{Pigpiox.Socket, [name: Pigpiox.Socket]},
{Pigpiox.GPIO.WatcherS... | 19.428571 | 60 | 0.676471 |
1c6c14cf772798ff58fbd2bbf66c37d2e93b7443 | 1,533 | ex | Elixir | lib/day7/part2.ex | anamba/adventofcode2020 | 2a749140d5393f7c69c630102daae977be30afcc | [
"MIT"
] | null | null | null | lib/day7/part2.ex | anamba/adventofcode2020 | 2a749140d5393f7c69c630102daae977be30afcc | [
"MIT"
] | null | null | null | lib/day7/part2.ex | anamba/adventofcode2020 | 2a749140d5393f7c69c630102daae977be30afcc | [
"MIT"
] | null | null | null | defmodule Day7.Part2 do
@doc """
iex> Day7.Part2.part2("day7-sample.txt")
32
iex> Day7.Part2.part2("day7-sample2.txt")
126
"""
def part2(filename) do
(parse_input(filename) |> count_contents("shiny gold")) - 1
end
@doc """
iex> Day7.Part2.part2
35487
"""
def part2,... | 23.227273 | 87 | 0.567515 |
1c6c5e01545d3ade9f2d5d5c2064018f81c25859 | 211 | ex | Elixir | lib/easypost/api_key.ex | winestyr/ex_easypost | a8563ccbff429ad181280c438efeea65383ff852 | [
"MIT"
] | 6 | 2017-09-21T13:19:56.000Z | 2021-01-07T18:31:42.000Z | lib/easypost/api_key.ex | winestyr/ex_easypost | a8563ccbff429ad181280c438efeea65383ff852 | [
"MIT"
] | null | null | null | lib/easypost/api_key.ex | winestyr/ex_easypost | a8563ccbff429ad181280c438efeea65383ff852 | [
"MIT"
] | 2 | 2018-07-11T07:12:08.000Z | 2020-06-29T02:04:48.000Z | defmodule EasyPost.APIKey do
@doc """
Retrieve an API key.
"""
@spec get(String.t()) :: EasyPost.Operation.t()
def get(id) do
%EasyPost.Operation{ method: :get, path: "/api_keys/#{id}" }
end
end
| 21.1 | 64 | 0.625592 |
1c6cdacc87ede2d3d5ea7782c702dd15f05c3b39 | 56,484 | exs | Elixir | test/ecto/query/planner_test.exs | wojtekmach/ecto | dc43fbf40943c9d11bfda8c233b1adc1ff540f7e | [
"Apache-2.0"
] | 2 | 2021-02-25T15:51:16.000Z | 2021-02-25T18:42:35.000Z | test/ecto/query/planner_test.exs | mikestok/ecto | dc43fbf40943c9d11bfda8c233b1adc1ff540f7e | [
"Apache-2.0"
] | null | null | null | test/ecto/query/planner_test.exs | mikestok/ecto | dc43fbf40943c9d11bfda8c233b1adc1ff540f7e | [
"Apache-2.0"
] | 1 | 2021-02-25T15:28:45.000Z | 2021-02-25T15:28:45.000Z | Code.require_file "../../../integration_test/support/types.exs", __DIR__
defmodule Ecto.Query.PlannerTest do
use ExUnit.Case, async: true
import Ecto.Query
alias Ecto.Query.Planner
alias Ecto.Query.JoinExpr
defmodule Comment do
use Ecto.Schema
schema "comments" do
field :text, :string
... | 41.169096 | 193 | 0.589388 |
1c6d2e9d22c00cc36931010cd703e62aacf7ad26 | 2,011 | ex | Elixir | apps/bytepack_web/lib/bytepack_web/live/sale_live/revoke_component.ex | dashbitco/bytepack_archive | 79f8e62149d020f2afcc501592ed399f7ce7a60b | [
"Unlicense"
] | 313 | 2020-12-03T17:26:24.000Z | 2022-03-18T09:05:14.000Z | apps/bytepack_web/lib/bytepack_web/live/sale_live/revoke_component.ex | dashbitco/bytepack_archive | 79f8e62149d020f2afcc501592ed399f7ce7a60b | [
"Unlicense"
] | null | null | null | apps/bytepack_web/lib/bytepack_web/live/sale_live/revoke_component.ex | dashbitco/bytepack_archive | 79f8e62149d020f2afcc501592ed399f7ce7a60b | [
"Unlicense"
] | 57 | 2020-12-03T17:41:53.000Z | 2022-03-17T17:28:16.000Z | defmodule BytepackWeb.SaleLive.RevokeComponent do
use BytepackWeb, :live_component
alias Bytepack.Sales
@impl true
def render(assigns) do
~L"""
<div class="modal-header">
<h4 class="modal-title">Revoke <%= Sales.sale_state(@sale) %> sale</h4>
</div>
<div class="modal-body">
<div cla... | 32.435484 | 103 | 0.60368 |
1c6d332d0e7364f7e4d950e95e46cb6f2db2215e | 4,034 | ex | Elixir | hello/lib/hello/accounts/accounts.ex | Ogiwara-CostlierRain464/Elixir | 498d0aa7f1b66ed1674b89c0fec4a5cb34234a33 | [
"MIT"
] | null | null | null | hello/lib/hello/accounts/accounts.ex | Ogiwara-CostlierRain464/Elixir | 498d0aa7f1b66ed1674b89c0fec4a5cb34234a33 | [
"MIT"
] | null | null | null | hello/lib/hello/accounts/accounts.ex | Ogiwara-CostlierRain464/Elixir | 498d0aa7f1b66ed1674b89c0fec4a5cb34234a33 | [
"MIT"
] | null | null | null | defmodule Hello.Accounts do
@moduledoc """
The Accounts context.
"""
import Ecto.Query, warn: false
alias Hello.Repo
alias Hello.Accounts.{User, Credential}
@doc """
Returns the list of users.
## Examples
iex> list_users()
[%User{}, ...]
"""
def list_users do
User
|> Repo... | 18.253394 | 76 | 0.598661 |
1c6d40382e1dcf96a5847353fb59095a96d5a98b | 49 | ex | Elixir | lib/novel_reader/model/feed.ex | jinyeow/novel_reader | 090c1076110f441d82d99f27f82958b79bf73d63 | [
"MIT"
] | null | null | null | lib/novel_reader/model/feed.ex | jinyeow/novel_reader | 090c1076110f441d82d99f27f82958b79bf73d63 | [
"MIT"
] | null | null | null | lib/novel_reader/model/feed.ex | jinyeow/novel_reader | 090c1076110f441d82d99f27f82958b79bf73d63 | [
"MIT"
] | null | null | null | defmodule NovelReader.Model.Feed do
# TODO
end
| 12.25 | 35 | 0.77551 |
1c6d450b39a98929173cca8677d7aae2c747aff3 | 17,455 | exs | Elixir | test/swoosh/adapters/postmark_test.exs | taobojlen/swoosh | b454ead1ce52602e210acf20e28ed3dce4147341 | [
"MIT"
] | null | null | null | test/swoosh/adapters/postmark_test.exs | taobojlen/swoosh | b454ead1ce52602e210acf20e28ed3dce4147341 | [
"MIT"
] | null | null | null | test/swoosh/adapters/postmark_test.exs | taobojlen/swoosh | b454ead1ce52602e210acf20e28ed3dce4147341 | [
"MIT"
] | null | null | null | defmodule Swoosh.Adapters.PostmarkTest do
use Swoosh.AdapterCase, async: true
import Swoosh.Email
alias Swoosh.Adapters.Postmark
@success_response """
{
"ErrorCode": 0,
"Message": "OK",
"MessageID": "b7bc2f4a-e38e-4336-af7d-e6c392c2f817",
"SubmittedAt": "2010-11-26T12:01:05.1794748... | 31.003552 | 114 | 0.556631 |
1c6dc153c580269ec1e4eecdc3afbefc858d700c | 840 | exs | Elixir | test/data/script_test.exs | shanesveller/ex_venture | 68507da11442a9e0423073fcd305e9021f649ca1 | [
"MIT"
] | null | null | null | test/data/script_test.exs | shanesveller/ex_venture | 68507da11442a9e0423073fcd305e9021f649ca1 | [
"MIT"
] | null | null | null | test/data/script_test.exs | shanesveller/ex_venture | 68507da11442a9e0423073fcd305e9021f649ca1 | [
"MIT"
] | null | null | null | defmodule Data.ScriptTest do
use Data.ModelCase
doctest Data.Script
doctest Data.Script.Line
alias Data.Script
alias Data.Script.Line
describe "validate the script" do
test "must include a start key" do
script = [%Line{key: "start", message: "Hi"}]
assert Script.valid_script?(script)
... | 26.25 | 91 | 0.609524 |
1c6df87207d6fdf610ea0ae6034570168dbbd7cb | 2,342 | exs | Elixir | test/oli/editing/utils_test.exs | malav2110/oli-torus | 8af64e762a7c8a2058bd27a7ab8e96539ffc055f | [
"MIT"
] | 45 | 2020-04-17T15:40:27.000Z | 2022-03-25T00:13:30.000Z | test/oli/editing/utils_test.exs | malav2110/oli-torus | 8af64e762a7c8a2058bd27a7ab8e96539ffc055f | [
"MIT"
] | 944 | 2020-02-13T02:37:01.000Z | 2022-03-31T17:50:07.000Z | test/oli/editing/utils_test.exs | malav2110/oli-torus | 8af64e762a7c8a2058bd27a7ab8e96539ffc055f | [
"MIT"
] | 23 | 2020-07-28T03:36:13.000Z | 2022-03-17T14:29:02.000Z | defmodule Oli.Authoring.Editing.UtilsTest do
use ExUnit.Case, async: true
alias Oli.Authoring.Editing.Utils
describe "diffing content for activity reference changes" do
test "diff_activity_references/2 finds additions and removals", _ do
content1 = %{
"model" => [
%{"type" => "content... | 31.226667 | 81 | 0.535013 |
1c6e04c35ba0185ab0abbc6887f77be84ea29b52 | 935 | ex | Elixir | lib/doctor_schedule/accounts/services/send_forgot_password_to_email.ex | theguuholi/doctor_schedule | a92dfa92d1398c59718be2428d36bb326d6bc361 | [
"MIT"
] | 2 | 2022-03-11T12:15:01.000Z | 2022-03-11T13:53:21.000Z | lib/doctor_schedule/accounts/services/send_forgot_password_to_email.ex | theguuholi/doctor_schedule | a92dfa92d1398c59718be2428d36bb326d6bc361 | [
"MIT"
] | 3 | 2020-12-12T22:10:17.000Z | 2021-04-05T12:53:12.000Z | lib/doctor_schedule/accounts/services/send_forgot_password_to_email.ex | theguuholi/doctor_schedule | a92dfa92d1398c59718be2428d36bb326d6bc361 | [
"MIT"
] | 1 | 2021-02-26T04:24:34.000Z | 2021-02-26T04:24:34.000Z | defmodule DoctorSchedule.Accounts.Services.SendForgotPasswordToEmail do
use Bamboo.Phoenix, view: DoctorScheduleWeb.EmailView
import Bamboo.Email
alias DoctorSchedule.Accounts.Repositories.TokenRepository
alias DoctorSchedule.Shared.MailProvider.Mailer
@host "http://localhost:4000"
def execute(email) do... | 26.714286 | 71 | 0.664171 |
1c6e0e3ef66a94763ba25191f54e898c61e475d7 | 3,003 | ex | Elixir | lib/task_bunny/initializer.ex | DylanReile/task_bunny | 3c23eb345e18daf9c16c6c295a18499eb8584469 | [
"MIT"
] | 1 | 2021-03-01T20:31:33.000Z | 2021-03-01T20:31:33.000Z | lib/task_bunny/initializer.ex | DylanReile/task_bunny | 3c23eb345e18daf9c16c6c295a18499eb8584469 | [
"MIT"
] | null | null | null | lib/task_bunny/initializer.ex | DylanReile/task_bunny | 3c23eb345e18daf9c16c6c295a18499eb8584469 | [
"MIT"
] | null | null | null | defmodule TaskBunny.Initializer do
# Handles initialization concerns.
#
# This module is private to TaskBunny and should not be accessed directly.
#
@moduledoc false
use GenServer
require Logger
alias TaskBunny.{Config, Queue}
@doc false
@spec start_link(boolean) :: GenServer.on_start
def start_l... | 25.235294 | 100 | 0.662671 |
1c6e2082a11632f6a09fc6218b1739753c54b37a | 99 | ex | Elixir | rust-to-elixir/grpc_server/lib/message/repo.ex | poad/grpc-example | d1b775f6d2e89279cd29191d5d4dbec265bf0bf0 | [
"Apache-2.0"
] | null | null | null | rust-to-elixir/grpc_server/lib/message/repo.ex | poad/grpc-example | d1b775f6d2e89279cd29191d5d4dbec265bf0bf0 | [
"Apache-2.0"
] | 64 | 2021-08-30T23:54:04.000Z | 2022-03-14T21:06:11.000Z | rust-to-elixir/grpc_server/lib/message/repo.ex | poad/grpc-example | d1b775f6d2e89279cd29191d5d4dbec265bf0bf0 | [
"Apache-2.0"
] | null | null | null | defmodule Message.Repo do
use Ecto.Repo, adapter: Ecto.Adapters.MyXQL, otp_app: :grpc_server
end
| 24.75 | 68 | 0.787879 |
1c6e43776ec46c0a506956f2353e6c2b16e54eb9 | 2,872 | ex | Elixir | lib/docusign/model/title.ex | gaslight/docusign_elixir | d9d88d53dd85d32a39d537bade9db28d779414e6 | [
"MIT"
] | 4 | 2020-12-21T12:50:13.000Z | 2022-01-12T16:50:43.000Z | lib/docusign/model/title.ex | gaslight/docusign_elixir | d9d88d53dd85d32a39d537bade9db28d779414e6 | [
"MIT"
] | 12 | 2018-09-18T15:26:34.000Z | 2019-09-28T15:29:39.000Z | lib/docusign/model/title.ex | gaslight/docusign_elixir | d9d88d53dd85d32a39d537bade9db28d779414e6 | [
"MIT"
] | 15 | 2020-04-29T21:50:16.000Z | 2022-02-11T18:01:51.000Z | # NOTE: This class is auto generated by the swagger code generator program.
# https://github.com/swagger-api/swagger-codegen.git
# Do not edit the class manually.
defmodule DocuSign.Model.Title do
@moduledoc """
A tab that displays the recipient's title.
"""
@derive [Poison.Encoder]
defstruct [
:an... | 27.352381 | 80 | 0.571727 |
1c6e4dca133812612da5fc3aa98e2e876b54fe56 | 3,179 | ex | Elixir | lib/x509/certificate/validity.ex | mobileoverlord/x509 | fdca52a0a4e1142316c05481c3125cf915cbd8aa | [
"BSD-3-Clause"
] | null | null | null | lib/x509/certificate/validity.ex | mobileoverlord/x509 | fdca52a0a4e1142316c05481c3125cf915cbd8aa | [
"BSD-3-Clause"
] | null | null | null | lib/x509/certificate/validity.ex | mobileoverlord/x509 | fdca52a0a4e1142316c05481c3125cf915cbd8aa | [
"BSD-3-Clause"
] | null | null | null | defmodule X509.Certificate.Validity do
@moduledoc """
Convenience functions for creating `:Validity` records for use in
certificates. The `:Validity` record represents the X.509 Validity
type, defining the validity of a certificate in terms of `notBefore`
and `notAfter` timestamps.
"""
import X509.ASN1
... | 36.54023 | 79 | 0.685121 |
1c6e64b847cac895208f1b63e628ff4c1bb78b6b | 802 | ex | Elixir | lib/problem003.ex | lewapkon/eulixir | 990017cdccee7cd508269b7036e290ec777aea3d | [
"MIT"
] | null | null | null | lib/problem003.ex | lewapkon/eulixir | 990017cdccee7cd508269b7036e290ec777aea3d | [
"MIT"
] | null | null | null | lib/problem003.ex | lewapkon/eulixir | 990017cdccee7cd508269b7036e290ec777aea3d | [
"MIT"
] | null | null | null | defmodule Eulixir.Problem003 do
@moduledoc """
http://projecteuler.net/problem=3
The prime factors of 13195 are 5, 7, 13 and 29.
What is the largest prime factor of the number 600851475143 ?
"""
@doc """
iex> Eulixir.Problem003.solve(13_195)
29
"""
def solve(n) do
n
|> factorize
... | 19.560976 | 65 | 0.625935 |
1c6e667e2e1d764a16d1927686ca2df7d6c0bbec | 710 | ex | Elixir | lib/openflow/actions/set_nw_ttl.ex | shun159/tres | 1e3e7f78ba1aa4f184d4be70300e5f4703d50a2f | [
"Beerware"
] | 5 | 2019-05-25T02:25:13.000Z | 2020-10-06T17:00:03.000Z | lib/openflow/actions/set_nw_ttl.ex | shun159/tres | 1e3e7f78ba1aa4f184d4be70300e5f4703d50a2f | [
"Beerware"
] | 5 | 2018-03-29T14:42:10.000Z | 2019-11-19T07:03:09.000Z | lib/openflow/actions/set_nw_ttl.ex | shun159/tres | 1e3e7f78ba1aa4f184d4be70300e5f4703d50a2f | [
"Beerware"
] | 1 | 2019-03-30T20:48:27.000Z | 2019-03-30T20:48:27.000Z | defmodule Openflow.Action.SetNwTtl do
@moduledoc """
Set IP TTL
"""
defstruct(ttl: 0)
alias __MODULE__
@type t :: %SetNwTtl{ttl: 0..0xFF}
@spec ofpat() :: 23
def ofpat, do: 23
@doc """
Create a new set_nw_ttl action struct
## Options:
- IP TTL
```elixir
iex> %SetNwTtl{ttl: 64} = SetNw... | 17.75 | 60 | 0.550704 |
1c6ea1e6cbcdda5d2464f5115efc0951e5c8623a | 1,445 | ex | Elixir | apps/diet_web/lib/diet_web/channels/user_socket.ex | isavita/diet-umbrella | 0eee4d0dc4d9567888e4b69ccc7993e95d95ed29 | [
"MIT"
] | 1 | 2020-06-01T21:25:54.000Z | 2020-06-01T21:25:54.000Z | apps/diet_web/lib/diet_web/channels/user_socket.ex | isavita/diet-umbrella | 0eee4d0dc4d9567888e4b69ccc7993e95d95ed29 | [
"MIT"
] | 221 | 2019-07-20T17:20:49.000Z | 2021-08-02T06:21:10.000Z | apps/diet_web/lib/diet_web/channels/user_socket.ex | isavita/diet-umbrella | 0eee4d0dc4d9567888e4b69ccc7993e95d95ed29 | [
"MIT"
] | null | null | null | defmodule DietWeb.UserSocket do
use Phoenix.Socket
## Channels
# channel "room:*", DietWeb.RoomChannel
channel "videos:*", DietWeb.VideoChannel
# Socket params are passed from the client and can
# be used to verify and authenticate a user. After
# verification, you can put default assigns into
# the s... | 30.744681 | 83 | 0.67128 |
1c6ecc59c381bca3091ab81ad7019862cc9150f1 | 1,184 | ex | Elixir | lib/beanie.ex | anthonyfalzetti/beanie | 72ab49e6c058a21c24b0be151744fb8d525164aa | [
"MIT"
] | 2 | 2018-07-08T10:38:34.000Z | 2020-01-14T03:48:30.000Z | lib/beanie.ex | anthonyfalzetti/beanie | 72ab49e6c058a21c24b0be151744fb8d525164aa | [
"MIT"
] | 11 | 2016-09-29T20:41:59.000Z | 2017-11-13T04:03:14.000Z | lib/beanie.ex | anthonyfalzetti/beanie | 72ab49e6c058a21c24b0be151744fb8d525164aa | [
"MIT"
] | 8 | 2016-10-03T14:20:43.000Z | 2018-10-17T01:12:44.000Z | defmodule Beanie do
use Application
# See http://elixir-lang.org/docs/stable/elixir/Application.html
# for more information on OTP Applications
def start(_type, _args) do
import Supervisor.Spec
# Define workers and child supervisors to be supervised
children = [
# Start the Ecto repository
... | 32 | 84 | 0.711993 |
1c6eef56220ce67ca2551ee88e86d2ff23a9f742 | 2,027 | ex | Elixir | dpp/lib/collada/collada.ex | XiaoxiaoZ/Distributed-path-planner | a7467e08e60248793dc55624497fd91bdb45ca14 | [
"MIT"
] | null | null | null | dpp/lib/collada/collada.ex | XiaoxiaoZ/Distributed-path-planner | a7467e08e60248793dc55624497fd91bdb45ca14 | [
"MIT"
] | 6 | 2021-12-12T13:23:17.000Z | 2021-12-17T12:03:46.000Z | dpp/lib/collada/collada.ex | XiaoxiaoZ/Distributed-path-planner | a7467e08e60248793dc55624497fd91bdb45ca14 | [
"MIT"
] | null | null | null | defmodule COLLADA do
@moduledoc """
Provide funtions related to COLLADA .dae file import geomertries
"""
import SweetXml
@doc """
import robot(collada) file
TODO: develop information model for robot.
## Parameters
- path: COLLDA file path
## Examples
iex>... | 34.355932 | 143 | 0.52294 |
1c6eff1b2f134ad05501a371b3802f9bbec91e8c | 972 | ex | Elixir | lib/bot/structs.ex | ygunayer/potcu | d7b82ad9227161c93aedec03c4a1902c1d43780b | [
"MIT"
] | 1 | 2020-05-14T18:52:05.000Z | 2020-05-14T18:52:05.000Z | lib/bot/structs.ex | ygunayer/potcu | d7b82ad9227161c93aedec03c4a1902c1d43780b | [
"MIT"
] | null | null | null | lib/bot/structs.ex | ygunayer/potcu | d7b82ad9227161c93aedec03c4a1902c1d43780b | [
"MIT"
] | null | null | null | defmodule Potcu.Bot.Structs do
alias Nostrum.Snowflake
alias Nostrum.Struct.Guild.Voice
defmodule VoiceStatus do
defstruct [:status, :channel_id, :session_id, :server]
@type status :: :not_connected | :preparing | :connecting | :connected
@type channel_id :: Snowflake.t() | nil
@type session_id :... | 28.588235 | 74 | 0.639918 |
1c6f18f3eb4bf3332db56050754be998d63afd97 | 21,032 | ex | Elixir | elixir/codes-from-books/little-elixir/cap8/blitzy/deps/combine/lib/combine/parsers/base.ex | trxeste/wrk | 3e05e50ff621866f0361cc8494ce8f6bb4d97fae | [
"BSD-3-Clause"
] | 1 | 2017-10-16T03:00:50.000Z | 2017-10-16T03:00:50.000Z | elixir/codes-from-books/little-elixir/cap8/blitzy/deps/combine/lib/combine/parsers/base.ex | trxeste/wrk | 3e05e50ff621866f0361cc8494ce8f6bb4d97fae | [
"BSD-3-Clause"
] | null | null | null | elixir/codes-from-books/little-elixir/cap8/blitzy/deps/combine/lib/combine/parsers/base.ex | trxeste/wrk | 3e05e50ff621866f0361cc8494ce8f6bb4d97fae | [
"BSD-3-Clause"
] | null | null | null | defmodule Combine.Parsers.Base do
@moduledoc """
This module defines common abstract parsers, i.e. ignore, repeat, many, etc.
To use them, just add `import Combine.Parsers.Base` to your module, or
reference them directly.
"""
alias Combine.ParserState
use Combine.Helpers
@type predicate :: (term -> bo... | 35.829642 | 135 | 0.601132 |
1c6f25bd5b41ed3771376c2b0a44a72a76ca1f43 | 1,563 | exs | Elixir | test/base_image_sample_apps_test.exs | kayodeosagbemi/elixir-runtime | 1746adf362444e3e0cc2daa5e461be24f1cb624a | [
"Apache-2.0"
] | 170 | 2017-08-25T06:40:14.000Z | 2022-01-10T22:18:51.000Z | test/base_image_sample_apps_test.exs | kayodeosagbemi/elixir-runtime | 1746adf362444e3e0cc2daa5e461be24f1cb624a | [
"Apache-2.0"
] | 27 | 2017-09-07T05:57:37.000Z | 2022-03-22T13:40:47.000Z | test/base_image_sample_apps_test.exs | kayodeosagbemi/elixir-runtime | 1746adf362444e3e0cc2daa5e461be24f1cb624a | [
"Apache-2.0"
] | 16 | 2017-11-14T01:45:00.000Z | 2021-10-09T03:26:39.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 writing, ... | 26.491525 | 74 | 0.647473 |
1c6f4da4d6c9fdcef0d9fb43e52b767ba2b3ea15 | 936 | exs | Elixir | phoenix0/config/config.exs | JacobOscarson/elexir-0 | f4e67bb4a68c6a0cba5b410d80427e721ac7826a | [
"MIT"
] | null | null | null | phoenix0/config/config.exs | JacobOscarson/elexir-0 | f4e67bb4a68c6a0cba5b410d80427e721ac7826a | [
"MIT"
] | null | null | null | phoenix0/config/config.exs | JacobOscarson/elexir-0 | f4e67bb4a68c6a0cba5b410d80427e721ac7826a | [
"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 :phoenix0,
ecto_repos: [Phoenix0.Repo]
... | 33.428571 | 86 | 0.763889 |
1c6f62aa399d435eed8bd08b6cfd55e968011b4f | 4,998 | exs | Elixir | apps/banking_challenge/test/banking_challenge/accounts_test.exs | JoaoAngelojr/banking_challenge | eec2f8b15a0c7da7daeb157c76a52ce4639ddc7c | [
"Apache-2.0"
] | null | null | null | apps/banking_challenge/test/banking_challenge/accounts_test.exs | JoaoAngelojr/banking_challenge | eec2f8b15a0c7da7daeb157c76a52ce4639ddc7c | [
"Apache-2.0"
] | null | null | null | apps/banking_challenge/test/banking_challenge/accounts_test.exs | JoaoAngelojr/banking_challenge | eec2f8b15a0c7da7daeb157c76a52ce4639ddc7c | [
"Apache-2.0"
] | null | null | null | defmodule BankingChallenge.AccountsTest do
use BankingChallenge.DataCase, async: true
alias BankingChallenge.Accounts
alias BankingChallenge.Accounts.Inputs
alias BankingChallenge.Accounts.Schemas.Account
# Triple A: Arrange, Act and Assert
describe "create_new_accout/1" do
test "fail if email is alr... | 28.397727 | 97 | 0.582633 |
1c6f65071433d416fdfa64fd679fe18030bc659b | 34,692 | ex | Elixir | lib/elixir/lib/dynamic_supervisor.ex | doughsay/elixir | 7356a47047d0b54517bd6886603f09b1121dde2b | [
"Apache-2.0"
] | 19,291 | 2015-01-01T02:42:49.000Z | 2022-03-31T21:01:40.000Z | lib/elixir/lib/dynamic_supervisor.ex | doughsay/elixir | 7356a47047d0b54517bd6886603f09b1121dde2b | [
"Apache-2.0"
] | 8,082 | 2015-01-01T04:16:23.000Z | 2022-03-31T22:08:02.000Z | lib/elixir/lib/dynamic_supervisor.ex | doughsay/elixir | 7356a47047d0b54517bd6886603f09b1121dde2b | [
"Apache-2.0"
] | 3,472 | 2015-01-03T04:11:56.000Z | 2022-03-29T02:07:30.000Z | defmodule DynamicSupervisor do
@moduledoc ~S"""
A supervisor that starts children dynamically.
The `Supervisor` module was designed to handle mostly static children
that are started in the given order when the supervisor starts. A
`DynamicSupervisor` starts with no children. Instead, children are
started o... | 31.225923 | 100 | 0.642598 |
1c6f74e63d10477047bdb468614e4ec02827e7ea | 276 | ex | Elixir | lib/empex_cookbook/cookbook/ingredient.ex | ludwikbukowski/recipes | cac5711d32874c3011da8da3329b70d0e28e725e | [
"MIT"
] | 4 | 2019-02-11T12:15:36.000Z | 2021-03-22T16:23:47.000Z | lib/empex_cookbook/cookbook/ingredient.ex | ludwikbukowski/recipes | cac5711d32874c3011da8da3329b70d0e28e725e | [
"MIT"
] | null | null | null | lib/empex_cookbook/cookbook/ingredient.ex | ludwikbukowski/recipes | cac5711d32874c3011da8da3329b70d0e28e725e | [
"MIT"
] | null | null | null | defmodule EmpexCookbook.Cookbook.Ingredient do
@moduledoc """
The Ingredient Model
"""
use Ecto.Schema
import Ecto.Changeset
embedded_schema do
field(:name, :string)
end
def changeset(schema, params) do
schema
|> cast(params, [:name])
end
end
| 15.333333 | 46 | 0.681159 |
1c6f802448fe251d06d9b2cb958d662bcc3cb4dc | 270 | exs | Elixir | priv/test_repo/migrations/20190120203502_comments.exs | nickolaich/formex_ecto | 322907daa4924d1c297acc7f9e60f99bc8f2f6f3 | [
"MIT"
] | 20 | 2017-06-25T12:30:03.000Z | 2021-04-25T06:43:31.000Z | priv/test_repo/migrations/20190120203502_comments.exs | nickolaich/formex_ecto | 322907daa4924d1c297acc7f9e60f99bc8f2f6f3 | [
"MIT"
] | 8 | 2017-11-19T17:15:32.000Z | 2020-02-02T12:50:03.000Z | priv/test_repo/migrations/20190120203502_comments.exs | nickolaich/formex_ecto | 322907daa4924d1c297acc7f9e60f99bc8f2f6f3 | [
"MIT"
] | 9 | 2018-03-30T22:14:13.000Z | 2021-11-15T12:12:56.000Z | defmodule Formex.Ecto.TestRepo.Migrations.Comments do
use Ecto.Migration
def change do
create table(:article_comments) do
add :content, :string
add :assoc_id, references(:articles)
end
create index(:article_comments, [:assoc_id])
end
end
| 20.769231 | 53 | 0.711111 |
1c6f94bc3145e135f692f0fa65ae894b0c388a4b | 1,511 | exs | Elixir | mix.exs | axelson/priv_check | ba4228881edbf16ac61b0e006537de517c7f6f06 | [
"MIT"
] | 8 | 2020-03-15T19:22:02.000Z | 2021-09-28T11:00:18.000Z | mix.exs | axelson/priv_check | ba4228881edbf16ac61b0e006537de517c7f6f06 | [
"MIT"
] | 7 | 2020-03-11T06:21:57.000Z | 2020-11-15T19:48:54.000Z | mix.exs | axelson/priv_check | ba4228881edbf16ac61b0e006537de517c7f6f06 | [
"MIT"
] | null | null | null | defmodule PrivCheck.MixProject do
use Mix.Project
@version "0.2.2"
def project do
[
app: :priv_check,
version: @version,
elixir: ">= 1.10.0",
start_permanent: Mix.env() == :prod,
deps: deps(),
elixirc_paths: elixirc_paths(Mix.env()),
docs: docs(),
dialyzer: di... | 21.898551 | 70 | 0.555261 |
1c6fb1d66442f051e46a9813ebecdab574b5ea32 | 896 | exs | Elixir | mix.exs | bot-ex/botex-telegram | 7b41080b3fcb1736274b83fbf7237a884dd27f38 | [
"MIT"
] | 1 | 2021-11-08T08:03:41.000Z | 2021-11-08T08:03:41.000Z | mix.exs | bot-ex/botex-telegram | 7b41080b3fcb1736274b83fbf7237a884dd27f38 | [
"MIT"
] | null | null | null | mix.exs | bot-ex/botex-telegram | 7b41080b3fcb1736274b83fbf7237a884dd27f38 | [
"MIT"
] | 3 | 2020-04-11T10:32:52.000Z | 2020-08-25T14:49:36.000Z | defmodule BotexTelegram.MixProject do
use Mix.Project
def project do
[
app: :botex_telegram,
version: "0.4.0",
description: "Telegram module for https://github.com/bot-ex/bot_ex",
elixir: "~> 1.9",
start_permanent: Mix.env() == :prod,
deps: deps(),
package: [
l... | 22.974359 | 74 | 0.534598 |
1c6fc579e734c8362f086f0b02726ff2edd8da24 | 2,076 | exs | Elixir | test/lib/slack_coder/build_system/log_parser_test.exs | mgwidmann/slack_coder | 3ff4375777c1bdbc94ba1491fdf4e1c0fa465edf | [
"MIT"
] | 15 | 2015-09-23T16:03:28.000Z | 2018-12-04T21:48:04.000Z | test/lib/slack_coder/build_system/log_parser_test.exs | mgwidmann/slack_coder | 3ff4375777c1bdbc94ba1491fdf4e1c0fa465edf | [
"MIT"
] | 27 | 2016-01-12T16:44:31.000Z | 2017-10-13T16:09:36.000Z | test/lib/slack_coder/build_system/log_parser_test.exs | mgwidmann/slack_coder | 3ff4375777c1bdbc94ba1491fdf4e1c0fa465edf | [
"MIT"
] | 4 | 2016-09-01T12:08:24.000Z | 2017-09-21T15:07:57.000Z | defmodule SlackCoder.BuildSystem.LogParserTest do
use ExUnit.Case
alias SlackCoder.BuildSystem.{LogParser, File}
describe "#parse" do
test "finds the right seeds, files and type for each test" do
assert [
%File{
seed: 21452,
type: :rspec,
file: {
... | 30.086957 | 104 | 0.555877 |
1c6fcda9ce403250c0fceb25f20a6eb58ba22c68 | 730 | ex | Elixir | web/models/test.ex | chasm/trelm | 359d14f9b84193afbb0a9039792e9c49b2e55327 | [
"MIT"
] | null | null | null | web/models/test.ex | chasm/trelm | 359d14f9b84193afbb0a9039792e9c49b2e55327 | [
"MIT"
] | 1 | 2018-12-26T09:03:18.000Z | 2018-12-26T09:03:18.000Z | web/models/test.ex | chasm/trelm | 359d14f9b84193afbb0a9039792e9c49b2e55327 | [
"MIT"
] | null | null | null | defmodule Trelm.Test do
use Trelm.Web, :model
schema "tests" do
field :description, :string
field :test, :string
timestamps
end
@required_fields ~w(description test)
@optional_fields ~w()
@doc """
Creates a changeset based on the `model` and `params`.
If no params are provided, an inval... | 21.470588 | 61 | 0.671233 |
1c6fd4e093efef6dfedaef86975281048822a2e8 | 1,085 | ex | Elixir | lib/colly_web/channels/user_socket.ex | nidhindamodaran/colly | aaf5076afa24ea69ec084f19c5617f6808b40ade | [
"MIT"
] | null | null | null | lib/colly_web/channels/user_socket.ex | nidhindamodaran/colly | aaf5076afa24ea69ec084f19c5617f6808b40ade | [
"MIT"
] | 4 | 2020-05-30T13:25:44.000Z | 2021-05-11T13:32:44.000Z | lib/colly_web/channels/user_socket.ex | nidhinnambiar/colly | aaf5076afa24ea69ec084f19c5617f6808b40ade | [
"MIT"
] | null | null | null | defmodule CollyWeb.UserSocket do
use Phoenix.Socket
## Channels
# channel "room:*", CollyWeb.RoomChannel
# Socket params are passed from the client and can
# be used to verify and authenticate a user. After
# verification, you can put default assigns into
# the socket that will be set for all channels, ... | 30.138889 | 83 | 0.693088 |
1c6fdecbbef4f49dc9e4a3e05916fe70d72aafa8 | 76 | exs | Elixir | apps/theta_web/test/theta_web/views/page_view_test.exs | LangPham/thetaproject | c6479d1b761ff58fe6ae5f82e2d9de87a8658883 | [
"MIT"
] | null | null | null | apps/theta_web/test/theta_web/views/page_view_test.exs | LangPham/thetaproject | c6479d1b761ff58fe6ae5f82e2d9de87a8658883 | [
"MIT"
] | 11 | 2020-07-21T09:34:54.000Z | 2021-08-29T07:38:02.000Z | apps/theta_web/test/theta_web/views/page_view_test.exs | LangPham/thetaproject | c6479d1b761ff58fe6ae5f82e2d9de87a8658883 | [
"MIT"
] | null | null | null | defmodule ThetaWeb.PageViewTest do
use ThetaWeb.ConnCase, async: true
end
| 19 | 36 | 0.815789 |
1c6fe9a6bab70a4e372730de6b638485b1cd46f2 | 8,149 | exs | Elixir | test/ex_unit_properties_test.exs | Qqwy/stream_data | c912edb42a26da3ea5d9241ba174cdefc8dd0a29 | [
"Apache-2.0"
] | 689 | 2017-07-10T15:25:03.000Z | 2022-03-31T09:23:38.000Z | test/ex_unit_properties_test.exs | Qqwy/stream_data | c912edb42a26da3ea5d9241ba174cdefc8dd0a29 | [
"Apache-2.0"
] | 151 | 2017-07-23T15:19:49.000Z | 2022-01-31T09:33:59.000Z | test/ex_unit_properties_test.exs | Qqwy/stream_data | c912edb42a26da3ea5d9241ba174cdefc8dd0a29 | [
"Apache-2.0"
] | 67 | 2017-08-11T15:52:30.000Z | 2022-02-18T00:12:30.000Z | defmodule ExUnitPropertiesTest do
use ExUnit.Case
use ExUnitProperties
describe "gen all" do
test "supports generation and filtering clauses" do
data =
gen all [_ | _] = list <- list_of(integer()),
elem <- member_of(list),
elem != 5,
elem_not_five... | 27.43771 | 99 | 0.56105 |
1c6fecf050ae4c18f7ff55f769c709387c3dbb6a | 48,508 | ex | Elixir | lib/cldr/unit.ex | Zurga/cldr_units | d90ae5987608b741bd0f531fd760f1e142ff9293 | [
"Apache-2.0"
] | null | null | null | lib/cldr/unit.ex | Zurga/cldr_units | d90ae5987608b741bd0f531fd760f1e142ff9293 | [
"Apache-2.0"
] | null | null | null | lib/cldr/unit.ex | Zurga/cldr_units | d90ae5987608b741bd0f531fd760f1e142ff9293 | [
"Apache-2.0"
] | null | null | null | defmodule Cldr.Unit do
@moduledoc """
Supports the CLDR Units definitions which provide for the localization of many
unit types.
The primary public API defines:
* `Cldr.Unit.to_string/3` which, given a unit or unit list will
output a localized string
* `Cldr.Unit.known_units/0` identifies the availab... | 28.534118 | 104 | 0.65047 |
1c703a6cf10e8aa309de391559500cb0823e1a7b | 71 | ex | Elixir | lib/theme_preview_web/views/page_view.ex | lee-dohm/atom-theme-preview | be64d8be2c2cdaaffe9366b18ea0105f409bb492 | [
"MIT"
] | 1 | 2017-11-13T05:51:57.000Z | 2017-11-13T05:51:57.000Z | lib/theme_preview_web/views/page_view.ex | lee-dohm/atom-theme-preview | be64d8be2c2cdaaffe9366b18ea0105f409bb492 | [
"MIT"
] | null | null | null | lib/theme_preview_web/views/page_view.ex | lee-dohm/atom-theme-preview | be64d8be2c2cdaaffe9366b18ea0105f409bb492 | [
"MIT"
] | null | null | null | defmodule ThemePreviewWeb.PageView do
use ThemePreviewWeb, :view
end
| 17.75 | 37 | 0.830986 |
1c707878a0cca51b4c3dd63c309ebdf4a5058cc9 | 653 | ex | Elixir | lib/plug_utm.ex | honeypotio/plug_utm | 5eef21202b11018c1bb75527e8fd26f889ebc019 | [
"MIT"
] | 5 | 2016-03-01T17:25:04.000Z | 2020-01-09T16:33:56.000Z | lib/plug_utm.ex | honeypotio/plug_utm | 5eef21202b11018c1bb75527e8fd26f889ebc019 | [
"MIT"
] | null | null | null | lib/plug_utm.ex | honeypotio/plug_utm | 5eef21202b11018c1bb75527e8fd26f889ebc019 | [
"MIT"
] | 2 | 2019-07-02T06:40:22.000Z | 2019-12-22T10:47:19.000Z | defmodule PlugUtm do
import Plug.Conn
def init(options) do
options
end
def call(conn, _options) do
conn
|> fetch_cookies
|> fetch_query_params
|> store_utm_params
end
defp store_utm_params(conn) do
conn.query_params
|> Map.keys
|> Enum.filter(&starting_with_utm/1)
|> E... | 17.648649 | 42 | 0.638591 |
1c7083efff8b1700cf1144bb36c8f2cc5d517514 | 4,749 | exs | Elixir | apps/astarte_appengine_api/test/astarte_appengine_api_web/controllers/interface_values_controller_test.exs | matt-mazzucato/astarte | 34d84941a5019efc42321052f7f34b7d907a38f2 | [
"Apache-2.0"
] | 191 | 2018-03-30T13:23:08.000Z | 2022-03-02T12:05:32.000Z | apps/astarte_appengine_api/test/astarte_appengine_api_web/controllers/interface_values_controller_test.exs | matt-mazzucato/astarte | 34d84941a5019efc42321052f7f34b7d907a38f2 | [
"Apache-2.0"
] | 402 | 2018-03-30T13:37:00.000Z | 2022-03-31T16:47:10.000Z | apps/astarte_appengine_api/test/astarte_appengine_api_web/controllers/interface_values_controller_test.exs | matt-mazzucato/astarte | 34d84941a5019efc42321052f7f34b7d907a38f2 | [
"Apache-2.0"
] | 24 | 2018-03-30T13:29:48.000Z | 2022-02-28T11:10:26.000Z | #
# This file is part of Astarte.
#
# Copyright 2017 Ispirata Srl
#
# 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 appl... | 29.68125 | 121 | 0.57928 |
1c7090b6fe5e054c2e55e199eb0ae347574e2344 | 4,120 | exs | Elixir | test/features/grouping_stage_test.exs | octosteve/remote_retro | 3385b0db3c2daab934ce12a2f7642a5f10ac5147 | [
"MIT"
] | null | null | null | test/features/grouping_stage_test.exs | octosteve/remote_retro | 3385b0db3c2daab934ce12a2f7642a5f10ac5147 | [
"MIT"
] | null | null | null | test/features/grouping_stage_test.exs | octosteve/remote_retro | 3385b0db3c2daab934ce12a2f7642a5f10ac5147 | [
"MIT"
] | null | null | null | defmodule GroupingStageTest do
use RemoteRetro.IntegrationCase, async: false
alias RemoteRetro.Idea
import ShorterMaps
describe "ideas in the grouping stage" do
setup [:persist_ideas_for_retro]
@tag [
retro_stage: "grouping",
ideas: [%Idea{category: "sad", body: "splinters in the codebase"... | 35.213675 | 138 | 0.665777 |
1c7090e7f2fa067a0099d2fc04147047321cfba1 | 16,074 | ex | Elixir | lib/tesla/adapter/gun.ex | thiamsantos/tesla | af3707078b10793f6a534938e56b963aff82fe3c | [
"MIT"
] | 1 | 2019-06-25T07:01:01.000Z | 2019-06-25T07:01:01.000Z | lib/tesla/adapter/gun.ex | thiamsantos/tesla | af3707078b10793f6a534938e56b963aff82fe3c | [
"MIT"
] | null | null | null | lib/tesla/adapter/gun.ex | thiamsantos/tesla | af3707078b10793f6a534938e56b963aff82fe3c | [
"MIT"
] | null | null | null | if Code.ensure_loaded?(:gun) do
defmodule Tesla.Adapter.Gun do
@moduledoc """
Adapter for [gun](https://github.com/ninenines/gun).
Remember to add `{:gun, "~> 1.3"}`, `{:idna, "~> 6.0"}` and `{:castore, "~> 0.1"}` to dependencies.
In version 1.3 gun sends `host` header with port. Fixed in master bran... | 33.84 | 285 | 0.594687 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.